PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / 3.1.1
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder v3.1.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-604-382.js

bf-604-382.js in Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder 3.1.1, at assets/bf-604-382.js

2 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import{g as j,i as v,aH as S,a as b,j as e,_ as a,h as F,f as N,bG as T}from"./main-634.js";import{F as t}from"./bf-767-388.js";import{F as _}from"./bf-457-387.js";import{S as f}from"./bf-982-242.js";import"./bf-534-247.js";import"./bf-25-81.js";import"./bf-299-245.js";import"./bf-497-246.js";import"./bf-641-107.js";import"./bf-400-72.js";import"./bf-438-114.js";function K(){var m,g,h;const{fieldKey:s}=j(),[d,x]=v(S),{css:i}=b();if(!s)return null;const o=d[s],c=(o==null?void 0:o.config)||{},y=(m=o==null?void 0:o.lbl)!=null?m:s,p=(n,l)=>{const u=N(d,r=>{r[s].config=r[s].config||{},r[s].config[n]=l});x(u),T({event:`OTP ${n} changed to ${l}: ${y}`,type:`otp_${n}_changed`,state:{fields:u,fldKey:s}})};return e.jsxs(e.Fragment,{children:[e.jsx(f,{id:"otp-digit-len-stng",title:a("OTP Code Length"),className:i([t.fieldSection,t.hover_tip]),tip:a("Set how many digits the OTP code will contain. Accepted range: 4 – 8."),open:!0,children:e.jsxs("div",{className:i(t.placeholder),children:[e.jsx("input",{id:"otp-length",type:"number",className:i(t.input),value:(g=c.otpLength)!=null?g:6,onChange:n=>{const l=Math.min(8,Math.max(4,parseInt(n.target.value,10)||6));p("otpLength",l)}}),e.jsx("p",{className:i(F.helpText),children:a("Allowed range: 4 to 8 digits.")})]})}),e.jsx(_,{}),e.jsx(f,{id:"otp-resend-delay-stng",title:a("OTP Resend Delay (Seconds)"),className:i([t.fieldSection,t.hover_tip]),tip:a('Sets the waiting time (in seconds) before the "Resend OTP" button becomes active again.'),open:!0,children:e.jsx("div",{className:i(t.placeholder),children:e.jsx("input",{id:"resend-delay",type:"number",className:i(t.input),value:(h=c.resendDelay)!=null?h:60,onChange:n=>p("resendDelay",parseInt(n.target.value,10)||60)})})})]})}export{K as default};
2