{"version":3,"file":"Translate.DuvOCOv8.mjs","names":[],"sources":["https:/framerusercontent.com/modules/XmSdT6EffGymXgz9U6SU/vcKPTag1m1c3U8cN6HI7/Translate.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";export default function GoogleTranslate(){useEffect(()=>{// Remove any stored language preference\nlocalStorage.removeItem(\"glang\");document.cookie=\"googtrans=/auto/en; path=/; domain=\"+window.location.hostname;// Load the GTranslate script dynamically\nconst script=document.createElement(\"script\");script.src=\"https://cdn.gtranslate.net/widgets/latest/float.js\";script.defer=true;document.body.appendChild(script);// Ensure that English is set as the default after the script loads\nscript.onload=()=>{const applyTranslation=()=>{const langCode=\"en\";if(window.gt_translate_element){window.gt_translate_element.changeLanguage(langCode);}else if(window.gtranslate){window.gtranslate(langCode);}else{const select=document.querySelector(\".gtranslate_wrapper select\");if(select){select.value=langCode;select.dispatchEvent(new Event(\"change\"));}}};setTimeout(applyTranslation,500)// Delay to ensure script loads\n;};// Set global settings for GTranslate\nwindow.gtranslateSettings={default_language:\"en\",native_language_names:true,languages:[\"en\",\"hi\"],wrapper_selector:\".gtranslate_wrapper\"};return()=>{document.body.removeChild(script);};},[]);return /*#__PURE__*/_jsx(\"div\",{className:\"gtranslate_wrapper\",style:{position:\"fixed\",bottom:\"20px\",right:\"20px\",zIndex:1e3}});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GoogleTranslate\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Translate.map"],"mappings":"mMAAwE,SAAwB,GAAiB,CAK8E,OAL7E,MAAc,CAChI,aAAa,WAAW,QAAQ,CAAC,SAAS,OAAO,sCAAsC,EAAO,SAAS,SACvG,IAAM,EAAO,SAAS,cAAc,SAAS,CAG6F,MAH5F,GAAO,IAAI,qDAAqD,EAAO,MAAM,GAAK,SAAS,KAAK,YAAY,EAAO,CACjK,EAAO,WAAW,CAAqV,eAAzT,CAAqB,GAAG,EAAO,qBAAsB,EAAO,qBAAqB,eAAe,KAAS,SAAU,EAAO,WAAY,EAAO,WAAW,KAAS,KAAM,CAAC,IAAM,EAAO,SAAS,cAAc,6BAA6B,CAAI,IAAQ,EAAO,MAAM,KAAS,EAAO,cAAc,IAAI,MAAM,SAAS,CAAC,IAAiC,IAAI,EAEvY,EAAO,mBAAmB,CAAC,iBAAiB,KAAK,sBAAsB,GAAK,UAAU,CAAC,KAAK,KAAK,CAAC,iBAAiB,sBAAsB,KAAW,CAAC,SAAS,KAAK,YAAY,EAAO,GAAK,EAAE,CAAC,CAAqB,EAAK,MAAM,CAAC,UAAU,qBAAqB,MAAM,CAAC,SAAS,QAAQ,OAAO,OAAO,MAAM,OAAO,OAAO,IAAI,CAAC,CAAC,sBALnR,IAA6B"}