{"version":3,"file":"Language_Display.BrdKAaCy.mjs","names":["useState","_Fragment","React"],"sources":["https:/framerusercontent.com/modules/fo6WrWbQpr9fIwVDG4ZO/gFTJVgCArgFJGC4h8IWL/Language_Display.js"],"sourcesContent":["import{jsx as _jsx,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{ControlType,addPropertyControls}from\"framer\";import React from\"react\";/**\n * Render Component - Displays Content Based on Selected Language\n */export default function LanguageDisplay(props){const{en,ge,ru,ch}=props;const[chosen,setChosen]=useState(null);useEffect(()=>{const storedLocale=localStorage.getItem(\"locale\")||\"en\";setChosen(storedLocale);const handleStorageChange=()=>{const updatedLocale=localStorage.getItem(\"locale\")||\"en\";setChosen(updatedLocale);};window.addEventListener(\"storage\",handleStorageChange);return()=>window.removeEventListener(\"storage\",handleStorageChange);},[]);if(!chosen)return null// Prevent hydration errors\n;function lang(){switch(chosen){case\"ge\":return ge;case\"ru\":return ru;case\"ch\":return ch;default:return en;}}const holaStyle={height:\"100%\",width:\"100%\"};const display=lang();const styledDisplay=React.Children.map(display,child=>/*#__PURE__*/React.cloneElement(child,{style:holaStyle}));return /*#__PURE__*/_jsx(_Fragment,{children:styledDisplay});// return <div className=\"hola\">{display}</div>\n}// Property Controls for Framer\naddPropertyControls(LanguageDisplay,{en:{type:ControlType.ComponentInstance},ge:{type:ControlType.ComponentInstance}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LanguageDisplay\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Language_Display.map"],"mappings":"yMAEG,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,KAAG,KAAG,KAAG,MAAI,EAAW,CAAC,EAAO,GAAWA,EAAS,IAAI,EAAqV,GAAnV,MAAc,CAAC,IAAM,EAAa,aAAa,QAAQ,QAAQ,GAAG,KAAK,EAAU,CAAY,EAAE,IAAM,MAAwB,CAAC,IAAM,EAAc,aAAa,QAAQ,QAAQ,GAAG,KAAK,EAAU,CAAa,CAAE,EAAyD,OAAvD,EAAO,iBAAiB,UAAU,CAAmB,MAAY,EAAO,oBAAoB,UAAU,CAAmB,CAAE,EAAE,CAAC,CAAC,EAAK,CAAC,EAAO,OAAO,KACtd,SAAS,GAAM,CAAC,OAAO,EAAP,CAAe,IAAI,KAAK,OAAO,EAAG,IAAI,KAAK,OAAO,EAAG,IAAI,KAAK,OAAO,EAAG,QAAQ,OAAO,CAAG,CAAC,CAAC,IAAM,EAAU,CAAC,OAAO,OAAO,MAAM,MAAM,EAAQ,EAAQ,EAAK,EAAkH,OAAoB,EAAKC,EAAU,CAAC,SAAhIC,EAAM,SAAS,IAAI,EAAQ,GAAoB,EAAM,aAAa,EAAM,CAAC,MAAM,CAAS,CAAC,CAA4D,CAAC,CAAC,CAC1V,qBAJgE,IAAsC,IAAoD,EAK1J,EAAoB,EAAgB,CAAC,GAAG,CAAC,KAAK,EAAY,iBAAiB,EAAE,GAAG,CAAC,KAAK,EAAY,iBAAiB,CAAC,CAAC"}