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-856-312.js

bf-856-312.js in Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder 3.3.1, at assets/bf-856-312.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 A,g as T,u as h,ay as $,at as N,r as y,a as C,H as L,j as s,_ as m,M as w,em as S,f as u,aY as c,bI as b,eo as z,dg as E,ep as K,b1 as V}from"./main-762.js";import{t as q,F}from"./bf-842-324.js";import{F as i}from"./bf-850-326.js";import{A as Y}from"./bf-968-323.js";import{I as k}from"./bf-466-325.js";import{S as G}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 pe(){const[d,a]=A(V),{fieldKey:t}=T(),I=h($),j=h(N),[v,p]=y.useState(!1),[H,R]=y.useState(""),{css:l}=C(),e=L(d[t]),f=(e==null?void 0:e.redoBtn)||"",x=e.adminLbl||"",_=({target:{checked:o}})=>{o?(e.redoBtn=m("Redo"),e.redoBtnHide=!1,S(I,"redoBtn")):(delete e.redoBtn,delete e.redoPreIcn,delete e.redoSufIcn,e.redoBtnHide=!0);const n=o?"on":"off",r=u(d,P=>{P[t]=e});a(r),c(t),b({event:`Redo Button ${n}: ${f||x||t}`,type:`redo_btn_${n}`,state:{fields:r,fldKey:t}})},M=({target:{value:o}})=>{o===""?(delete e.redoBtn,c(t)):e.redoBtn=o;const n=u(d,r=>{r[t]=e});a(n),c(t),b({event:`Redo btn text updated: ${x||e.redoBtn||t}`,type:"change_redo_btn_txt",state:{fields:n,fldKey:t}})},g=o=>{z(j,t,E[o])||S(I,o),K(o,t),R(o),p(!0)},B=o=>{if(e[o]){delete e[o];const n=u(d,r=>{r[t]=e});a(n),c(t)}};return s.jsxs("div",{children:[s.jsxs(G,{id:"redo-button-stng",title:m("Redo Button"),className:l(i.fieldSection,i.hover_tip),switching:!0,tip:q.redoBtn,tipProps:{width:250,icnSize:17},toggleAction:_,toggleChecked:!(e!=null&&e.redoBtnHide),open:!(e!=null&&e.redoBtnHide),disable:e==null?void 0:e.redoBtnHide,children:[s.jsx("div",{className:l(i.placeholder),children:s.jsx(Y,{id:"redo-btn-stng",ariaLabel:"Redo Button for this Field",placeholder:"Type redo button txt here...",value:f,changeAction:M})}),s.jsxs("div",{className:l(i.iconLayoutHorizontal),children:[s.jsx(F,{label:"Leading Icon",iconSrc:e==null?void 0:e.redoPreIcn,styleRoute:"redo-btn-pre-i",setIcon:()=>g("redoPreIcn"),removeIcon:()=>B("redoPreIcn"),proProperty:"leadingIcon",position:"prefix"}),s.jsx("span",{className:l(i.iconSeparator),children:"|"}),s.jsx(F,{label:"Trailing Icon",iconSrc:e==null?void 0:e.redoSufIcn,styleRoute:"redo-btn-suf-i",setIcon:()=>g("redoSufIcn"),removeIcon:()=>B("redoSufIcn"),proProperty:"trailingIcon",position:"suffix"})]})]}),s.jsxs(w,{md:!0,autoHeight:!0,show:v,setModal:p,className:"o-v",title:m("Icons"),children:[s.jsx("div",{className:"pos-rel"}),s.jsx(k,{iconType:H,setModal:p})]})]})}export{pe as default};
2