PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / V_3.0.0
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder vV_3.0.0
3.3.1 V-3.3.0 3.2.2 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 V3.0.3 V3.0.2 -3.0.1 V_3.0.0 1.1.1 1.1.8 1.2 1.3 1.4 1.4.18 1.5.2 1.9 2.0 2.10.0 2.10.1 All 138 releases
bit-form / assets / bf-444-370.js

bf-444-370.js in Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder V_3.0.0, at assets/bf-444-370.js

2 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import{i as T,aH as U,g as $,u as h,b2 as N,aX as C,r as y,a as L,z,j as o,_ as p,M as R,e5 as S,f as m,ba as c,bG as b,e7 as w,e8 as E,d4 as K}from"./main-294.js";import{t as V,F}from"./bf-384-383.js";import{F as d}from"./bf-821-385.js";import{A as q}from"./bf-446-382.js";import{I as G}from"./bf-766-384.js";import{S as X}from"./bf-908-241.js";import"./bf-663-270.js";import"./bf-957-268.js";import"./bf-176-80.js";import"./bf-934-246.js";import"./bf-22-244.js";import"./bf-764-245.js";import"./bf-5-86.js";import"./bf-487-72.js";import"./bf-867-113.js";function le(){const[l,a]=T(U),{fieldKey:t}=$(),I=h(N),j=h(C),[v,u]=y.useState(!1),[H,_]=y.useState(""),{css:r}=L(),e=z(l[t]),f=(e==null?void 0:e.undoBtn)||"",x=e.adminLbl||"",M=({target:{checked:n}})=>{n?(e.undoBtn=p("Undo"),e.undoBtnHide=!1,S(I,"undoBtn")):(delete e.undoBtn,delete e.undoPreIcn,delete e.undoSufIcn,e.undoBtnHide=!0);const s=n?"on":"off",i=m(l,A=>{A[t]=e});a(i),c(t),b({event:`Undo Button ${s}: ${f||x||t}`,type:`undo_btn_${s}`,state:{fields:i,fldKey:t}})},P=({target:{value:n}})=>{n===""?(delete e.undoBtn,c(t)):e.undoBtn=n;const s=m(l,i=>{i[t]=e});a(s),c(t),b({event:`Undo btn text updated: ${x||e.undoBtn||t}`,type:"change_undo_btn_txt",state:{fields:s,fldKey:t}})},g=n=>{w(j,t,K[n])||S(I,n),E(n,t),_(n),u(!0)},B=n=>{if(e[n]){delete e[n];const s=m(l,i=>{i[t]=e});a(s),c(t)}};return o.jsxs("div",{children:[o.jsxs(X,{id:"undo-button-stng",title:p("Undo Button"),className:r(d.fieldSection,d.hover_tip),switching:!0,tip:V.undoBtn,tipProps:{width:250,icnSize:17},toggleAction:M,toggleChecked:!(e!=null&&e.undoBtnHide),open:!(e!=null&&e.undoBtnHide),disable:e==null?void 0:e.undoBtnHide,children:[o.jsx("div",{className:r(d.placeholder),children:o.jsx(q,{id:"undo-btn-stng",ariaLabel:"Undo Button for this Field",placeholder:"Type undo button txt here...",value:f,changeAction:P})}),o.jsxs("div",{className:r(d.iconLayoutHorizontal),children:[o.jsx(F,{label:"Leading Icon",iconSrc:e==null?void 0:e.undoPreIcn,styleRoute:"undo-btn-pre-i",setIcon:()=>g("undoPreIcn"),removeIcon:()=>B("undoPreIcn"),proProperty:"leadingIcon",position:"prefix"}),o.jsx("span",{className:r(d.iconSeparator),children:"|"}),o.jsx(F,{label:"Trailing Icon",iconSrc:e==null?void 0:e.undoSufIcn,styleRoute:"undo-btn-suf-i",setIcon:()=>g("undoSufIcn"),removeIcon:()=>B("undoSufIcn"),proProperty:"trailingIcon",position:"suffix"})]})]}),o.jsxs(R,{md:!0,autoHeight:!0,show:v,setModal:u,className:"o-v",title:p("Icons"),children:[o.jsx("div",{className:"pos-rel"}),o.jsx(G,{iconType:H,setModal:u})]})]})}export{le as default};
2