{"version":3,"file":"MW_ReloadOverride.Do4LXxEZ.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/pJwpyOLsDGLLwQiVyxzN/cE8bie0u9JMQTdeXco8p/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,QAAQ,CAAC,GAAG,CAAC,EAAU,CAAC,QAAQ,KAAK,uBAAuB,CAAC,OAAQ,IAAM,EAAe,EAAU,SAAS,SAAS,GAAG,EAAU,UAAU,MAAM,CAAC,SAAS,EAAQ,EAAY,eAAe,QAAQ,cAAc,GAAG,OAAU,GAAgB,CAAC,GAAa,QAAQ,KAAK,yBAAyB,CAAC,eAAe,QAAQ,cAAc,OAAO,CAAC,EAAO,SAAS,QAAQ,EAAU,GAAgB,EAAa,QAAQ,KAAK,gDAAgD,EAAO,eAAe,WAAW,cAAc,CAAC,QAAQ,IAAI,eAAe,CAAC,cAAc,EAAS,GAC3uB,IAAI,CACP,UAAU,cAAc,EAAS,EAAG,EAAE,CAAC,CAAO,EAAE,CAAqJ,SAAgB,EAAc,EAAE,CAAC,MAAO,KAAQ,EAA+BA,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAU,EAAM,CAAC,CAAC,uBAFhU,IAA6B,IAE8H,CAAyK,EAAc,YAAY"}