{"version":3,"file":"MW_ReloadOverride.GSZeglG3.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/bUmCQetPvo6RzmnaT3GY/p8lO7CM0ZtXd75KCCh9O/MW_ReloadOverride.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";export function MW_Reload(){useEffect(()=>{const interval=setInterval(()=>{const container=document.getElementById(\"SFctr\");if(!container){console.warn(\"SFctr not found yet.\");return;}const isVisiblyEmpty=container.children.length===0&&container.innerHTML.trim().length===0;const hasReloaded=sessionStorage.getItem(\"MW_reloaded\")===\"true\";if(isVisiblyEmpty&&!hasReloaded){console.warn(\"MW empty. Reloading...\");sessionStorage.setItem(\"MW_reloaded\",\"true\");window.location.reload();}else if(isVisiblyEmpty&&hasReloaded){console.warn(\"Still empty after reload. Will keep checking.\");}else{sessionStorage.removeItem(\"MW_reloaded\");console.log(\"✅ MW loaded.\");clearInterval(interval)// Stop checking once it's loaded\n;}},2e3)// check every 2 seconds\n;return()=>clearInterval(interval);},[]);return{};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withMW_Reload(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...MW_Reload(props)});};}withMW_Reload.displayName=\"MW_Reload\";\nexport const __FramerMetadata__ = {\"exports\":{\"MW_Reload\":{\"type\":\"override\",\"name\":\"MW_Reload\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMW_Reload\":{\"type\":\"reactHoc\",\"name\":\"withMW_Reload\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MW_ReloadOverride.map"],"mappings":"wLAAwE,SAAgB,GAAW,CAE1D,OAF2D,MAAc,CAAC,IAAM,EAAS,gBAAgB,CAAC,IAAM,EAAU,SAAS,eAAe,OAAO,EAAE,GAAG,CAAC,EAAU,CAAC,QAAQ,KAAK,sBAAsB,EAAE,MAAO,CAAC,IAAM,EAAe,EAAU,SAAS,SAAS,GAAG,EAAU,UAAU,KAAK,CAAC,CAAC,SAAS,EAAQ,EAAY,eAAe,QAAQ,aAAa,IAAI,OAAU,GAAgB,CAAC,GAAa,QAAQ,KAAK,wBAAwB,EAAE,eAAe,QAAQ,cAAc,MAAM,EAAE,EAAO,SAAS,OAAO,GAAW,GAAgB,EAAa,QAAQ,KAAK,+CAA+C,GAAQ,eAAe,WAAW,aAAa,EAAE,QAAQ,IAAI,cAAc,EAAE,cAAc,CAAQ,EAC5uB,EAAE,GAAG,EACN,UAAU,cAAc,CAAQ,CAAE,EAAE,CAAC,CAAC,EAAQ,CAAC,CAAE,CAAoJ,SAAgB,EAAc,EAAE,CAAC,MAAO,KAAQ,EAA+BA,CAAuC,EAASC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAU,CAAK,CAAC,CAAC,EAAI,qBAFpU,IAA6B,IAE8H,EAA0K,EAAc,YAAY"}