{"version":3,"file":"IntroOverrides.EEcnHF30.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/5kaXNfx1yZXxmyb3wJV6/ya5Sz5kYvHcVNeRHe5A3/IntroOverrides.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";// Run the init once. Framer can re-run module code on navigation or HMR.\n// Use a window-level init flag so we don't re-run timers and style changes.\nif(typeof window!==\"undefined\"&&!window.__introInitialized){window.__introInitialized=true;const hasPlayed=sessionStorage.getItem(\"introPlayed\");if(!hasPlayed){// show intro for this session\nwindow.__showIntro=true;sessionStorage.setItem(\"introPlayed\",\"true\");// disable scroll while intro is visible\ndocument.body.style.overflow=\"hidden\";// Hide it after 3.5s and restore scroll\nwindow.__introTimeout=window.setTimeout(()=>{window.__showIntro=false;document.body.style.overflow=\"\";},3500);}else{window.__showIntro=false;}// Safety: if the page is unloaded, clear the timeout to avoid leaks\nwindow.addEventListener(\"beforeunload\",()=>{if(window.__introTimeout){clearTimeout(window.__introTimeout);}});}// Exported overrides. Attach these to the intro wrapper and the main content respectively.\nexport function IntroVisibility(){return{visible:!!(window.__showIntro??false)};}export function MainContentVisibility(){return{visible:!(window.__showIntro??false)};}// Helper you can call from the console while testing.\n// window.clearIntroTest() will clear the stored flag so the intro will play again.\nif(typeof window!==\"undefined\"){window.clearIntroTest=()=>{sessionStorage.removeItem(\"introPlayed\");window.__showIntro=false;// If you want to immediately re-show it for testing:\n// window.__showIntro = true;\n};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withIntroVisibility(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...IntroVisibility(props)});};}withIntroVisibility.displayName=\"IntroVisibility\";export function withMainContentVisibility(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...MainContentVisibility(props)});};}withMainContentVisibility.displayName=\"MainContentVisibility\";\nexport const __FramerMetadata__ = {\"exports\":{\"MainContentVisibility\":{\"type\":\"override\",\"name\":\"MainContentVisibility\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withIntroVisibility\":{\"type\":\"reactHoc\",\"name\":\"withIntroVisibility\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMainContentVisibility\":{\"type\":\"reactHoc\",\"name\":\"withMainContentVisibility\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"IntroVisibility\":{\"type\":\"override\",\"name\":\"IntroVisibility\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./IntroOverrides.map"],"mappings":"iLAOA,SAAgB,GAAiB,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAO,aAAa,IAAO,CAAE,SAAgB,GAAuB,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAO,aAAa,IAAO,CAIf,SAAgB,EAAoB,EAAE,CAAC,MAAO,KAAQ,EAA+BA,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAgB,EAAM,CAAC,CAAC,EAAsD,SAAgB,EAA0B,EAAE,CAAC,MAAO,KAAQ,EAA+BD,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAsB,EAAM,CAAC,CAAC,uBAX/gB,IAWwB,IAAmF,CAT5I,IAAS,QAAa,CAAC,EAAO,qBAAoB,EAAO,mBAAmB,GAAqB,eAAe,QAAQ,cAAc,CAG5B,EAAO,YAAY,IAFvI,EAAO,YAAY,GAAK,eAAe,QAAQ,cAAc,OAAO,CACpE,SAAS,KAAK,MAAM,SAAS,SAC7B,EAAO,eAAe,EAAO,eAAe,CAAC,EAAO,YAAY,GAAM,SAAS,KAAK,MAAM,SAAS,IAAK,KAAK,EAC7G,EAAO,iBAAiB,mBAAmB,CAAI,EAAO,gBAAgB,aAAa,EAAO,eAAe,EAAI,EAGnG,IAAS,SAAa,EAAO,mBAAmB,CAAC,eAAe,WAAW,cAAc,CAAC,EAAO,YAAY,KAEoN,EAAoB,YAAY,kBAAmN,EAA0B,YAAY"}