{"version":3,"file":"ProjectHeroHeader.Du3NukPm.mjs","names":["React.useRef","React.useState","__esmMin","init_ssg_sandbox_shims","_e","de","c","init_jsx_runtime","init_npm_react_18_3_1","ce","window","ProjectHeroHeader","ref","state","setState","frame","update","r","enabled","over","old","queue","observer","style","init_ProjectHeroHeader"],"sources":["https:/framerusercontent.com/modules/WQiIB7kv1rXs0gBZtAAC/4jOuKxKjn2ILDN7RyBvJ/ProjectHeroHeader.js"],"sourcesContent":["// Purpose: Invisible helper: detects when the borderless 477 video hero sits under the header so the header can adapt.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";/** @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any */export default function ProjectHeroHeader({style}){const ref=React.useRef(null);const[state,setState]=React.useState({enabled:false,over:false});React.useEffect(()=>{let frame=0;const update=()=>{const hero=ref.current?.closest('[data-framer-name=\"477 \\xb7 Randloser Video-Hero\"]');const r=hero?.getBoundingClientRect();const enabled=!!r&&r.width>0&&r.height>0;const over=enabled&&r.bottom>98&&r.top<=180;setState(old=>old.enabled===enabled&&old.over===over?old:{enabled,over});};const queue=()=>{cancelAnimationFrame(frame);frame=requestAnimationFrame(update);};update();window.addEventListener(\"scroll\",queue,{passive:true});window.addEventListener(\"resize\",queue);const observer=new ResizeObserver(queue);if(ref.current?.parentElement)observer.observe(ref.current.parentElement);return()=>{cancelAnimationFrame(frame);observer.disconnect();window.removeEventListener(\"scroll\",queue);window.removeEventListener(\"resize\",queue);};},[]);return /*#__PURE__*/_jsx(\"span\",{ref:ref,\"aria-hidden\":\"true\",style:{...style,width:1,height:1,pointerEvents:\"none\"},children:state.enabled&&/*#__PURE__*/_jsx(\"style\",{children:`\n[data-framer-name=\"Header Clearance\"]{display:none!important;}\n[data-framer-name=\"Closed\"],[data-framer-name=\"Phone Closed\"]{background:${state.over?\"transparent\":\"#e5e1e7\"}!important;}\n :is([data-framer-name=\"Closed\"],[data-framer-name=\"Phone Closed\"]) [data-framer-name=\"Header Bar\"]{background:${state.over?\"linear-gradient(to bottom,rgba(0,0,0,.58),rgba(0,0,0,0))\":\"#e5e1e7\"}!important;}\n :is([data-framer-name=\"Closed\"],[data-framer-name=\"Phone Closed\"]) [data-framer-name=\"477 Wordmark\"]{filter:${state.over?\"invert(1)\":\"none\"};}\n :is([data-framer-name=\"Closed\"],[data-framer-name=\"Phone Closed\"]) [data-framer-name^=\"Burger Line\"]{background:${state.over?\"#ffffff\":\"#111111\"}!important;}\n`})});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ProjectHeroHeader\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ProjectHeroHeader.map"],"mappings":"A,8IAEsC,SAAwBW,EAAkB,CAAC,SAAO,CAAC,IAAMC,EAAIZ,EAAa,IAAI,EAAO,CAACa,EAAMC,GAAUb,EAAe,CAAC,QAAQ,GAAM,KAAK,EAAK,CAAC,EAA0xB,OAAxxBQ,MAAoB,CAAC,IAAIM,EAAM,EAAQC,MAAW,CAAuF,IAAMC,GAAjFL,EAAI,SAAS,QAAQ,iDAAoD,EAAA,EAAgB,sBAAsB,EAAQM,EAAQ,CAAC,CAACD,GAAGA,EAAE,MAAM,GAAGA,EAAE,OAAO,EAAQE,EAAKD,GAASD,EAAE,OAAO,IAAIA,EAAE,KAAK,IAAIH,EAAS,GAAKM,EAAI,UAAUF,GAASE,EAAI,OAAOD,EAAKC,EAAI,CAAC,UAAQ,MAAI,CAAC,CAAE,EAAQC,MAAU,CAAC,qBAAqBN,CAAK,EAAE,EAAM,sBAAsBC,CAAM,CAAE,EAAEA,EAAO,EAAEN,EAAO,iBAAiB,SAASW,EAAM,CAAC,QAAQ,EAAI,CAAC,EAAEX,EAAO,iBAAiB,SAASW,CAAK,EAAE,IAAMC,EAAS,IAAI,eAA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