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-634.js";import{F as i}from"./bf-767-388.js";import{S as C}from"./bf-982-242.js";import"./bf-25-81.js";import"./bf-497-246.js";import"./bf-641-107.js";import"./bf-400-72.js";import"./bf-438-114.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};
