PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / V_3.0.0
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder vV_3.0.0
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-444-324.js

bf-444-324.js in Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder V_3.0.0, at assets/bf-444-324.js

2 lines 1.4 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 k,aH as F,a as S,j as l,_ as p,f as L,bG as $}from"./main-294.js";import{F as i}from"./bf-821-385.js";import{S as C}from"./bf-908-241.js";import"./bf-176-80.js";import"./bf-764-245.js";import"./bf-5-86.js";import"./bf-487-72.js";import"./bf-867-113.js";function O({className:g=""}){var c,o,n,h,m;const{fieldKey:t}=j(),[r,v]=k(F),{css:s}=S();if(!t)return null;const e=r[t],b=(c=e==null?void 0:e.typ)!=null?c:"recaptcha",f=(n=(o=e==null?void 0:e.config)==null?void 0:o.theme)!=null?n:"light",T=(h=e==null?void 0:e.adminLbl)!=null?h:"",x=a=>{const{value:d}=a.target,u=L(r,y=>{y[t].config.theme=d});v(u),$({event:`Theme changed to ${d} : ${T||t}`,type:"theme_change",state:{fields:u,fldKey:t}})};return l.jsx(C,{id:"thm-stng",title:p("Theme"),className:`${s(i.fieldSection)} ${g}`,open:!0,children:l.jsx("div",{className:s(i.placeholder),children:l.jsx("select",{"data-testid":"thm-slct",className:s(i.input),"aria-label":"Theme for Captcha Field",placeholder:"Select Theme here...",value:f,onChange:x,children:(m=_[b])==null?void 0:m.map(a=>l.jsx("option",{value:a.value,children:p(a.label)},a.value))})})})}const _={recaptcha:[{value:"light",label:"Light"},{value:"dark",label:"Dark"}],turnstile:[{value:"auto",label:"Auto"},{value:"light",label:"Light"},{value:"dark",label:"Dark"}],hcaptcha:[{value:"light",label:"Light"},{value:"dark",label:"Dark"}]};export{O as default};
2