{"version":3,"file":"SplashScreenControl.CMVuBVbj.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,GAAM,CAAkN,OAAjN,MAAc,CAAqB,eAAe,QAAQ,sBAAsB,GAAoB,EAAc,GAAK,CAAC,eAAe,QAAQ,sBAAsB,OAAO,GAAI,EAAE,CAAC,CAAK,EAA6C,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,CAApD,MAEvT,SAAgB,EAAoB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAa,GAAiBA,EAAS,GAAK,CAAqO,OAApO,MAAc,CAAqB,eAAe,QAAQ,sBAAsB,EAAmB,EAAgB,GAAM,EAAI,EAAE,CAAC,CAAK,EAAmH,EAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,WAAW,CAAC,MAAM,GAAG,SAAS,GAAG,CAAC,CAAC,CAArL,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,QAAQ,EAAE,CAAC,CAAC,EAEnV,SAAgB,EAAoB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAa,GAAiBA,EAAS,GAAK,CAAqO,OAApO,MAAc,CAAqB,eAAe,QAAQ,sBAAsB,EAAmB,EAAgB,GAAM,EAAI,EAAE,CAAC,CAAK,EAAmH,EAAK,EAAU,CAAC,GAAG,EAAM,QAAQ,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,WAAW,CAAC,MAAM,GAAG,SAAS,GAAG,CAAC,CAAC,CAArL,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,QAAQ,EAAE,CAAC,CAAC,mBANxS,IAAsC"}