{"version":3,"file":"LocaleField.bs95KorJ.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/jwNRFtzVeyekGjJPIJOJ/o2vcJ9Yn4hbQzXt7hBto/LocaleField.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function LocaleField(){const[lang,setLang]=useState(\"IT\");useEffect(()=>{const seg=window.location.pathname.split(\"/\")[1]?.toLowerCase();if(seg===\"en\"){setLang(\"EN\");return;}const htmlLang=document.documentElement.lang;setLang((htmlLang||\"it\").split(\"-\")[0].toUpperCase());},[]);return /*#__PURE__*/_jsx(\"div\",{style:{display:\"none\"},children:/*#__PURE__*/_jsx(\"input\",{name:\"language\",value:lang,readOnly:true})});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LocaleField\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LocaleField.map"],"mappings":"uIAGG,SAAwB,GAAa,CAAC,GAAK,CAAC,EAAK,GAASA,EAAS,IAAI,EAA+N,OAA7N,MAAc,CAAiE,GAAtD,EAAO,SAAS,SAAS,MAAM,GAAG,CAAC,CAAC,EAAE,EAAE,YAAY,IAAW,KAAK,CAAC,EAAQ,IAAI,EAAE,MAAO,CAAC,IAAM,EAAS,SAAS,gBAAgB,KAAK,GAAS,GAAU,KAAA,CAAM,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,YAAY,CAAC,CAAE,EAAE,CAAC,CAAC,EAAsB,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,MAAM,EAAE,SAAsB,EAAK,QAAQ,CAAC,KAAK,WAAW,MAAM,EAAK,SAAS,EAAI,CAAC,CAAC,CAAC,CAAE,qBAHvY,IAAsC"}