PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / V3.3.2
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder vV3.3.2
V3.3.2 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 All 139 releases
bit-form / assets / bf-95-322.js

bf-95-322.js in Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder V3.3.2, at assets/bf-95-322.js

2 lines 4.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import{g as T,i as O,a as N,j as e,_ as n,h as a,f as w,bI as P,b1 as S}from"./main-96.js";import{F as t}from"./bf-460-326.js";import{F as p}from"./bf-178-325.js";import{S as m}from"./bf-283-176.js";import{S as b}from"./bf-687-180.js";import"./bf-542-181.js";import"./bf-781-46.js";import"./bf-678-179.js";import"./bf-551-68.js";import"./bf-200-43.js";import"./bf-431-60.js";/* empty css */import"./bf-63-62.js";import"./bf-762-63.js";import"./bf-163-182.js";function U(){var u,x,f;const{fieldKey:r}=T(),[h,j]=O(S),{css:i}=N();if(!r)return null;const d=h[r],l=(d==null?void 0:d.config)||{},y=(u=d==null?void 0:d.lbl)!=null?u:r,o=(s,g)=>{const v=w(h,c=>{c[r].config=c[r].config||{},c[r].config[s]=g});j(v),P({event:`OTP ${s} changed to ${String(g)}: ${y}`,type:`otp_${s}_changed`,state:{fields:v,fldKey:r}})};return e.jsxs(e.Fragment,{children:[e.jsx(m,{id:"otp-btn-texts-stng",title:n("Button Texts"),className:i([t.fieldSection,t.hover_tip]),tip:n("Customize the label text shown on the Send, Resend, and Verify buttons."),open:!0,children:e.jsxs("div",{className:i([t.placeholder,a.pt1]),children:[e.jsxs("label",{htmlFor:"send-btn-txt",children:[e.jsx("span",{className:i(a.inputLabel),children:n("Send OTP")}),e.jsx("input",{id:"send-btn-txt",type:"text",className:i([t.input,a.mt1,a.mb3]),value:l.sendBtnTxt||"",onChange:s=>o("sendBtnTxt",s.target.value)})]}),e.jsxs("label",{htmlFor:"resend-btn-txt",children:[e.jsx("span",{className:i(a.inputLabel),children:n("Resend OTP")}),e.jsx("input",{id:"resend-btn-txt",type:"text",className:i([t.input,a.mt1,a.mb3]),value:l.resendBtnTxt||"",onChange:s=>o("resendBtnTxt",s.target.value)})]}),e.jsxs("label",{htmlFor:"verify-btn-txt",children:[e.jsx("span",{className:i(a.inputLabel),children:n("Verify OTP")}),e.jsx("input",{id:"verify-btn-txt",type:"text",className:i([t.input,a.mt1,a.mb3]),value:l.verifyBtnTxt||"",onChange:s=>o("verifyBtnTxt",s.target.value)})]})]})}),e.jsx(p,{}),e.jsx(m,{id:"otp-wait-txt-stng",title:n("Resend OTP Countdown Text"),className:i([t.fieldSection,t.hover_tip]),tip:n("Text shown while the user waits to resend. Use ${bf_resend_countdown} as a placeholder for the live countdown number."),open:!0,children:e.jsxs("div",{className:i(t.placeholder),children:[e.jsx("input",{id:"wait-txt",type:"text",className:i(t.input),value:l.waitTxt||"",onChange:s=>o("waitTxt",s.target.value)}),e.jsx("p",{className:i(a.helpText),children:n("Use ${bf_resend_countdown} as placeholder for the resend countdown number.")})]})}),e.jsx(p,{}),e.jsx(m,{id:"otp-max-attempts-stng",title:n("Maximum OTP Verification Attempts"),className:i([t.fieldSection,t.hover_tip]),open:!0,tip:n("Limits the number of OTP verification attempts on the frontend. Once the maximum limit is reached, the field will be locked until the page is reloaded."),children:e.jsxs("div",{className:i(t.placeholder),children:[e.jsx("input",{id:"max-attempts",type:"number",className:i([t.input,t.hover_tip]),value:(x=l.maxAttempts)!=null?x:5,onChange:s=>o("maxAttempts",Math.max(1,parseInt(s.target.value,10)||5))}),e.jsx("p",{className:i(a.helpText),children:n("Limits the number of OTP verification attempts on the frontend. Once the maximum limit is reached, the field will be locked until the page is reloaded.")})]})}),e.jsx(p,{}),e.jsx(m,{id:"otp-expiry-stng",title:n("OTP Expiration Time (Minutes)"),className:i([t.fieldSection,t.hover_tip]),tip:n("How long the OTP remains valid in minutes. The expiration is verified on the server during form submission."),open:!0,children:e.jsxs("div",{className:i(t.placeholder),children:[e.jsx("input",{id:"expiry-delay",type:"number",className:i(t.input),value:(f=l.expiryDelay)!=null?f:15,onChange:s=>o("expiryDelay",Math.max(1,parseInt(s.target.value,10)||15))}),e.jsx("p",{className:i(a.helpText),children:n("Defines how long the OTP remains valid. The expiration is verified on the server during form submission.")})]})}),e.jsx(p,{}),e.jsx("div",{className:i(t.fieldSection,t.hover_tip,t.singleOption),children:e.jsx(b,{id:"otp-send-on-validate-stng",tip:n('When enabled, the OTP will be automatically sent if the user attempts to submit the form or move to the next step without clicking "Send OTP" first.'),title:n("Automatically Send OTP on Validation"),action:()=>o("sendOnValidate",!l.sendOnValidate),isChecked:l.sendOnValidate,isPro:!0,proProperty:"sendOnValidate"})}),e.jsx(p,{}),e.jsx("div",{className:i(t.fieldSection,t.hover_tip,t.singleOption),children:e.jsx(b,{id:"otp-auto-verify-on-input-stng",tip:n("When enabled, OTP verification is triggered automatically once the user has entered all digits (via typing, pasting, or autofill)."),title:n("Automatically Verify OTP on Input"),action:()=>o("autoVerifyOnInput",!l.autoVerifyOnInput),isChecked:l.autoVerifyOnInput})})]})}export{U as default};
2