| 1 |
import{g as j,i as v,a as S,j as e,_ as a,h as b,f as F,bI as N,b1 as T}from"./main-96.js";import{F as t}from"./bf-460-326.js";import{F as _}from"./bf-178-325.js";import{S as f}from"./bf-283-176.js";import"./bf-542-181.js";import"./bf-781-46.js";import"./bf-678-179.js";import"./bf-687-180.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 k(){var m,g,h;const{fieldKey:s}=j(),[d,x]=v(T),{css:i}=S();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,r)=>{const u=F(d,l=>{l[s].config=l[s].config||{},l[s].config[n]=r});x(u),N({event:`OTP ${n} changed to ${r}: ${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 r=Math.min(8,Math.max(4,parseInt(n.target.value,10)||6));p("otpLength",r)}}),e.jsx("p",{className:i(b.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}; |