import{g,a as h,i as p,aH as f,H as C,j as o,_ as F,f as S,bG as j}from"./main-634.js";import{F as s}from"./bf-767-388.js";import{S as k}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";var x=[{code:"auto",name:"Default"},{code:"ar-eg",name:"Arabic (Egypt)"},{code:"ar",name:"Arabic"},{code:"de",name:"German"},{code:"en",name:"English"},{code:"es",name:"Spanish"},{code:"fa",name:"Farsi"},{code:"fr",name:"French"},{code:"id",name:"Indonesian"},{code:"it",name:"Italian"},{code:"ja",name:"Japanese"},{code:"ko",name:"Korean"},{code:"nl",name:"Dutch"},{code:"pl",name:"Polish"},{code:"pt",name:"Portuguese"},{code:"pt-br",name:"Portuguese (Brazil)"},{code:"ru",name:"Russian"},{code:"tlh",name:"Klingon"},{code:"tr",name:"Turkish"},{code:"uk",name:"Ukrainian"},{code:"uk-ua",name:"Ukrainian (Ukraine)"},{code:"zh",name:"Chinese"},{code:"zh-cn",name:"Chinese (Simplified)"},{code:"zh-tw",name:"Chinese (Traditional)"}];function P(){const{fieldKey:a}=g(),{css:i}=h(),[t,l]=p(f),n=C(t[a]),{language:r}=n.config,m=(e,c)=>{n.config[e]=c;const d=S(t,u=>{u[a]=n});l(d),j({event:`${e[0].toUpperCase()+e.slice(1)} changed to ${c} : ${n.adminLbl||a}`,type:`${e}_change`,state:{fields:d,fldKey:a}})};return o.jsx(k,{id:"language-stng",title:F("Language"),className:i(s.fieldSection),open:!0,children:o.jsx("div",{className:i(s.placeholder),children:o.jsx("select",{"data-testid":"turnstile-language",className:i(s.input),"aria-label":"Language for Turnstile Field",placeholder:"Select Language here...",value:r,onChange:e=>m("language",e.target.value),children:x.map(e=>o.jsx("option",{value:e.code,children:e.name},e.code))})})})}export{P as default};
