{"version":3,"file":"Header_Fix.C666y8R5.mjs","names":["useState","__esmMin","init_ssg_sandbox_shims","window","_e","init_jsx_runtime","c","init_npm_react_18_3_1","ce","withStickyHeader","scrolled","setScrolled","handleScroll","Component","props","withStickyHeaderLight","init_Header_Fix"],"sources":["https:/framerusercontent.com/modules/4AhwReMJGKMCwoBh4QCL/73KkvY5dxi1hvRkMnqU5/Header_Fix.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";export function withStickyHeader(Component){return function StickyHeader(props){const[scrolled,setScrolled]=useState(false);useEffect(()=>{const handleScroll=()=>{setScrolled(window.scrollY>200);};window.addEventListener(\"scroll\",handleScroll,{passive:true});return()=>window.removeEventListener(\"scroll\",handleScroll);},[]);return /*#__PURE__*/_jsx(\"div\",{style:{backgroundColor:scrolled?\"rgba(0, 0, 0, 0.28)\":\"transparent\",backdropFilter:scrolled?\"blur(48px)\":\"none\",WebkitBackdropFilter:scrolled?\"blur(48px)\":\"none\",transition:\"background-color 0.3s ease, backdrop-filter 0.3s ease\"},children:/*#__PURE__*/_jsx(Component,{...props})});};}/**\n * Light variant for pages with a light background and a dark header:\n * after scrolling the header sits on a translucent cream band instead of a dark one.\n */export function withStickyHeaderLight(Component){return function StickyHeaderLight(props){const[scrolled,setScrolled]=useState(false);useEffect(()=>{const handleScroll=()=>{setScrolled(window.scrollY>40);};handleScroll();window.addEventListener(\"scroll\",handleScroll,{passive:true});return()=>window.removeEventListener(\"scroll\",handleScroll);},[]);return /*#__PURE__*/_jsx(\"div\",{style:{backgroundColor:scrolled?\"rgba(252, 248, 241, 0.86)\":\"transparent\",backdropFilter:scrolled?\"blur(24px)\":\"none\",WebkitBackdropFilter:scrolled?\"blur(24px)\":\"none\",boxShadow:scrolled?\"0 1px 0 rgba(48, 56, 50, 0.08)\":\"none\",transition:\"background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease\"},children:/*#__PURE__*/_jsx(Component,{...props})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withStickyHeader\":{\"type\":\"reactHoc\",\"name\":\"withStickyHeader\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withStickyHeaderLight\":{\"type\":\"reactHoc\",\"name\":\"withStickyHeaderLight\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Header_Fix.map"],"mappings":"A,uIAAiF,SAAgBS,EAAiB,EAAU,CAAC,OAAO,SAAsB,EAAM,CAAC,GAAK,CAACC,EAASC,GAAaX,EAAS,EAAK,EAA2M,OAAzMQ,MAAc,CAAC,IAAMI,MAAiB,CAACD,EAAYR,EAAO,QAAQ,GAAG,CAAE,EAAgE,OAA9DA,EAAO,iBAAiB,SAASS,EAAa,CAAC,QAAQ,EAAI,CAAC,MAAYT,EAAO,oBAAoB,SAASS,CAAY,CAAE,EAAE,CAAC,CAAC,EAAsB,gBAAK,MAAM,CAAC,MAAM,CAAC,gBAAgBF,EAAS,sBAAsB,cAAc,eAAeA,EAAS,aAAa,OAAO,qBAAqBA,EAAS,aAAa,OAAO,WAAW,uDAAuD,EAAE,SAAsB,gBAAKG,EAAU,CAAC,GAAGC,CAAK,CAAC,CAAC,CAAC,CAAE,CAAE,CAG9sB,SAAgBC,EAAsB,EAAU,CAAC,OAAO,SAA2B,EAAM,CAAC,GAAK,CAACL,EAASC,GAAaX,EAAS,EAAK,EAAyN,OAAvNQ,MAAc,CAAC,IAAMI,MAAiB,CAACD,EAAYR,EAAO,QAAQ,EAAE,CAAE,EAA+E,OAA7ES,EAAa,EAAET,EAAO,iBAAiB,SAASS,EAAa,CAAC,QAAQ,EAAI,CAAC,MAAYT,EAAO,oBAAoB,SAASS,CAAY,CAAE,EAAE,CAAC,CAAC,EAAsB,gBAAK,MAAM,CAAC,MAAM,CAAC,gBAAgBF,EAAS,4BAA4B,cAAc,eAAeA,EAAS,aAAa,OAAO,qBAAqBA,EAAS,aAAa,OAAO,UAAUA,EAAS,iCAAiC,OAAO,WAAW,6EAA6E,EAAE,SAAsB,gBAAKG,EAAU,CAAC,GAAGC,CAAK,CAAC,CAAC,CAAC,CAAE,CAAE,C"}