{"version":3,"file":"SplashScreenControl.DI_mQNTC.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/qIZeqiS8lrxXFr9r9zwh/SNy7CjNqsARwrcErcffR/SplashScreenControl.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";// 1. SPLASH SCREEN CONTROLLER\n// Apply to: \"splash-image 4\"\nexport function withSessionSplash(Component){return props=>{const[shouldShow,setShouldShow]=useState(false);useEffect(()=>{const hasSeenSplash=sessionStorage.getItem(\"hasSeenUprivaSplash\");if(!hasSeenSplash){setShouldShow(true);sessionStorage.setItem(\"hasSeenUprivaSplash\",\"true\");}},[]);if(!shouldShow){return null;}return /*#__PURE__*/_jsx(Component,{...props});};}// 2. SMART SECTION REVEAL\n// Apply to: \"section-hero\", \"section-stat\", and \"section-image-ticker\"\nexport function withSmartHeroReveal(Component){return props=>{const[isFirstVisit,setIsFirstVisit]=useState(true);useEffect(()=>{const hasSeenSplash=sessionStorage.getItem(\"hasSeenUprivaSplash\");if(hasSeenSplash){setIsFirstVisit(false);}},[]);if(!isFirstVisit){return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,opacity:1}});}return /*#__PURE__*/_jsx(Component,{...props,animate:{opacity:1},initial:{opacity:0},transition:{delay:.5,duration:.3}});};}// 3. SAFE NAV CONTENT REVEAL (CSS-Driven to avoid component crashes)\n// Apply to: \"left-container\" and \"right-container\" INSIDE the nav-bar component\nexport function withSmartNavContent(Component){return props=>{const[isFirstVisit,setIsFirstVisit]=useState(true);useEffect(()=>{const hasSeenSplash=sessionStorage.getItem(\"hasSeenUprivaSplash\");if(hasSeenSplash){setIsFirstVisit(false);}},[]);if(!isFirstVisit){return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,opacity:1}});}return /*#__PURE__*/_jsx(Component,{...props,animate:{opacity:1},initial:{opacity:0},transition:{delay:.5,duration:.3}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withSessionSplash\":{\"type\":\"reactHoc\",\"name\":\"withSessionSplash\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSmartHeroReveal\":{\"type\":\"reactHoc\",\"name\":\"withSmartHeroReveal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSmartNavContent\":{\"type\":\"reactHoc\",\"name\":\"withSmartNavContent\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SplashScreenControl.map"],"mappings":"yHAEA,SAAgB,EAAkB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAW,GAAeA,EAAS,EAAK,EAAmN,OAAjN,MAAc,CAAqB,eAAe,QAAQ,qBAAuC,IAAG,EAAc,EAAI,EAAE,eAAe,QAAQ,sBAAsB,MAAM,EAAG,EAAE,CAAC,CAAC,EAAM,EAA6C,EAAK,EAAU,CAAC,GAAG,CAAK,CAAC,EAAnD,IAAqD,CAAE,CAE9W,SAAgB,EAAoB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAa,GAAiBA,EAAS,EAAI,EAAsO,OAApO,MAAc,CAAqB,eAAe,QAAQ,qBAAsC,GAAG,EAAgB,EAAK,CAAG,EAAE,CAAC,CAAC,EAAM,EAAmH,EAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,WAAW,CAAC,MAAM,GAAG,SAAS,EAAE,CAAC,CAAC,EAApL,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,QAAQ,CAAC,CAAC,CAAC,CAA4H,CAAE,CAEhd,SAAgB,EAAoB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAa,GAAiBA,EAAS,EAAI,EAAsO,OAApO,MAAc,CAAqB,eAAe,QAAQ,qBAAsC,GAAG,EAAgB,EAAK,CAAG,EAAE,CAAC,CAAC,EAAM,EAAmH,EAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,WAAW,CAAC,MAAM,GAAG,SAAS,EAAE,CAAC,CAAC,EAApL,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,QAAQ,CAAC,CAAC,CAAC,CAA4H,CAAE,iBANta,IAAsC"}