import{a as N,g as L,i as x,A as R,j as e,_ as n,h as _,f as j,bD as u,aV as D,aF as P}from"./main-343.js";import{S,T as w,a as I,b as K}from"./bf-711-253.js";import{s as y}from"./bf-623-283.js";import{F as l}from"./bf-838-284.js";import{S as k}from"./bf-603-251.js";import{F as d}from"./bf-505-323.js";import{F as H,b as V}from"./bf-622-233.js";import"./bf-453-86.js";import"./bf-649-79.js";import"./bf-190-88.js";import"./bf-519-87.js";import"./bf-90-70.js";import"./bf-594-113.js";import"./bf-870-250.js";import"./bf-697-110.js";import"./bf-983-247.js";import"./bf-810-248.js";import"./bf-914-249.js";import"./bf-411-252.js";import"./bf-901-254.js";import"./bf-656-255.js";import"./bf-806-256.js";import"./bf-318-257.js";import"./bf-437-78.js";import"./bf-689-322.js";import"./bf-123-272.js";import"./bf-772-285.js";import"./bf-209-80.js";import"./bf-529-105.js";import"./bf-730-282.js";function ue(){var g;const{css:s}=N(),{fieldKey:i}=L(),[c,b]=x(D),[h,v]=x(P),a=R(h[i]),{theme:C,size:F}=a.config,z=(g=c==null?void 0:c.fields)==null?void 0:g[i],{fieldType:B,classes:T}=z,p=`.${i}-fld-wrp`,{"justify-content":A}=T[p]||"";function f(t,r){a.config[t]=r;const o=j(h,m=>{m[i]=a});v(o),u({event:`${t[0].toUpperCase()+t.slice(1)} changed to ${r} : ${a.adminLbl||i}`,type:`${t}_change`,state:{fields:o,fldKey:i}})}const $=(t,r)=>{const o=j(c,m=>{m.fields[i].classes[p].display="flex",m.fields[i].classes[p][r]=t});b(o),u({event:`Position alignment to "${t}" : ${a.adminLbl||i}`,type:"position_alignment_change",state:{styles:o,fldKey:i}})};return e.jsxs(e.Fragment,{children:[e.jsx(H,{title:"Field Settings",subtitle:a.typ,fieldKey:i}),e.jsx(V,{}),e.jsx(d,{}),e.jsx(S,{id:"thm-stng",title:n("Theme"),className:s(l.fieldSection),open:!0,children:e.jsx("div",{className:s(l.placeholder),children:e.jsxs("select",{"data-testid":"thm-slct",className:s(l.input),"aria-label":"Theme for ReCaptcha Field",placeholder:"Select Theme here...",value:C,onChange:t=>f("theme",t.target.value),children:[e.jsx("option",{value:"dark",children:n("Dark")}),e.jsx("option",{value:"light",children:n("Light")})]})})}),e.jsx(d,{}),e.jsx(S,{id:"siz-stng",title:n("Size"),className:s(l.fieldSection),open:!0,children:e.jsx("div",{className:s(l.placeholder),children:e.jsxs("select",{"data-testid":"siz-slct",className:s(l.input),"aria-label":"Size for ReCaptcha Field",placeholder:"Select Size here...",value:F,onChange:t=>f("size",t.target.value),children:[e.jsx("option",{value:"normal",children:n("Normal")}),e.jsx("option",{value:"compact",children:n("Compact")})]})})}),e.jsx(d,{}),e.jsx("div",{className:s(l.fieldSection),children:e.jsxs("div",{className:s(_.flxcb),children:[e.jsx("span",{className:s(y.label),children:"Position Alignment"}),e.jsx(k,{show:["icn"],tipPlace:"bottom",className:s(y.segment),options:[{icn:e.jsx(w,{size:"17"}),label:"left",tip:"Left"},{icn:e.jsx(I,{size:"17"}),label:"center",tip:"Center"},{icn:e.jsx(K,{size:"17"}),label:"right",tip:"Right"}],onChange:t=>$(t,"justify-content"),defaultActive:A})]})}),e.jsx(d,{})]})}export{ue as default};
