PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 3.3.1
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v3.3.1
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-350-311.js

bf-350-311.js in Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder 3.3.1, at assets/bf-350-311.js

2 lines 2.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import{i as T,g as U,u as h,ay as $,at as N,r as y,a as C,H as L,j as n,_ as p,M as R,em as S,f as m,aY as c,bI as b,eo as w,dg as z,ep as E,b1 as K}from"./main-762.js";import{t as V,F}from"./bf-842-324.js";import{F as d}from"./bf-850-326.js";import{A as q}from"./bf-968-323.js";import{I as Y}from"./bf-466-325.js";import{S as k}from"./bf-45-176.js";import"./bf-747-208.js";import"./bf-537-206.js";import"./bf-685-46.js";import"./bf-610-181.js";import"./bf-734-179.js";import"./bf-111-180.js";import"./bf-848-68.js";import"./bf-81-43.js";import"./bf-871-60.js";/* empty css */import"./bf-435-62.js";import"./bf-653-63.js";import"./bf-775-182.js";function ue(){const[r,a]=T(K),{fieldKey:t}=U(),I=h($),j=h(N),[v,u]=y.useState(!1),[H,_]=y.useState(""),{css:l}=C(),e=L(r[t]),f=(e==null?void 0:e.undoBtn)||"",x=e.adminLbl||"",M=({target:{checked:o}})=>{o?(e.undoBtn=p("Undo"),e.undoBtnHide=!1,S(I,"undoBtn")):(delete e.undoBtn,delete e.undoPreIcn,delete e.undoSufIcn,e.undoBtnHide=!0);const s=o?"on":"off",i=m(r,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:o}})=>{o===""?(delete e.undoBtn,c(t)):e.undoBtn=o;const s=m(r,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=o=>{w(j,t,z[o])||S(I,o),E(o,t),_(o),u(!0)},B=o=>{if(e[o]){delete e[o];const s=m(r,i=>{i[t]=e});a(s),c(t)}};return n.jsxs("div",{children:[n.jsxs(k,{id:"undo-button-stng",title:p("Undo Button"),className:l(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:[n.jsx("div",{className:l(d.placeholder),children:n.jsx(q,{id:"undo-btn-stng",ariaLabel:"Undo Button for this Field",placeholder:"Type undo button txt here...",value:f,changeAction:P})}),n.jsxs("div",{className:l(d.iconLayoutHorizontal),children:[n.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"}),n.jsx("span",{className:l(d.iconSeparator),children:"|"}),n.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"})]})]}),n.jsxs(R,{md:!0,autoHeight:!0,show:v,setModal:u,className:"o-v",title:p("Icons"),children:[n.jsx("div",{className:"pos-rel"}),n.jsx(Y,{iconType:H,setModal:u})]})]})}export{ue as default};
2