{"version":3,"file":"Language_Display.D398WmsD.mjs","names":["_Fragment"],"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":"gUAEG,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,KAAG,KAAG,KAAG,KAAG,CAAC,EAAW,CAAC,EAAO,EAAU,CAAC,EAAS,KAAK,CAAoV,GAAnV,EAAU,IAAI,CAAC,IAAM,EAAa,aAAa,QAAQ,SAAS,EAAE,KAAK,EAAU,EAAa,CAAC,IAAM,EAAoB,IAAI,CAAC,IAAM,EAAc,aAAa,QAAQ,SAAS,EAAE,KAAK,EAAU,EAAc,AAAE,EAAwD,MAAvD,GAAO,iBAAiB,UAAU,EAAoB,CAAO,IAAI,EAAO,oBAAoB,UAAU,EAAoB,AAAE,EAAC,CAAE,EAAC,EAAK,EAAO,OAAO,KACtd,SAAS,GAAM,CAAC,OAAO,EAAP,CAAe,IAAI,KAAK,OAAO,EAAG,IAAI,KAAK,OAAO,EAAG,IAAI,KAAK,OAAO,EAAG,QAAQ,OAAO,CAAI,CAAC,KAAM,EAAU,CAAC,OAAO,OAAO,MAAM,MAAO,EAAO,EAAQ,GAAM,CAAO,EAAc,EAAM,SAAS,IAAI,EAAQ,GAAoB,EAAM,aAAa,EAAM,CAAC,MAAM,CAAU,EAAC,CAAC,CAAC,MAAoB,GAAKA,EAAU,CAAC,SAAS,CAAc,EAAC,AAC1V,cACD,IALA,GAAiE,IAAsC,IAAoD,CAK3J,EAAoB,EAAgB,CAAC,GAAG,CAAC,KAAK,EAAY,iBAAkB,EAAC,GAAG,CAAC,KAAK,EAAY,iBAAkB,CAAC,EAAC"}