{"version":3,"file":"ScrollGlassHeader.DQM3hBrR.mjs","names":["React.useState","React.useRef","React.useCallback"],"sources":["https:/framerusercontent.com/modules/pe7WyraW7eKI3TP5lRf5/RVjIgtXhUDPAGGC4WRgz/ScrollGlassHeader.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{RenderTarget}from\"framer\";// Section links retain their targets; ordinary internal page links start at the top.\nlet navigationHasAnchor=false;let pendingSection=null;const sectionTargets=new Map;function usePageStart(){React.useEffect(()=>{if(typeof window===\"undefined\"||RenderTarget.current()!==RenderTarget.preview)return;let frame=0;let timers=[];const cancelReset=()=>{window.cancelAnimationFrame(frame);timers.forEach(window.clearTimeout);timers=[];};const reset=()=>{if(pendingSection){const section=sectionTargets.get(pendingSection);if(section?.isConnected){pendingSection=null;section.scrollIntoView({block:\"start\",behavior:window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches?\"auto\":\"smooth\"});}}else if(!navigationHasAnchor)window.scrollTo({top:0,left:0,behavior:\"instant\"});};const scheduleReset=()=>{cancelReset();// Bounded checks cover mounting and the existing page-transition duration.\ntimers=(pendingSection?[180,360,700,1200]:[180,360]).map(delay=>window.setTimeout(()=>{frame=window.requestAnimationFrame(reset);},delay));};const rememberDestination=event=>{if(event.button!==0||event.metaKey||event.ctrlKey||event.shiftKey||event.altKey)return;const target=event.target;const link=target instanceof Element?target.closest(\"a[href]\"):null;if(!(link instanceof HTMLAnchorElement)||link.target===\"_blank\"||link.hasAttribute(\"download\"))return;const destination=new URL(link.href,window.location.href);if(destination.origin!==window.location.origin)return;const sectionLink=link.closest(\"[data-vantage-section-link]\");pendingSection=sectionLink?.getAttribute(\"data-vantage-section-target\")||null;navigationHasAnchor=Boolean(destination.hash||sectionLink);if(pendingSection||!navigationHasAnchor)scheduleReset();else cancelReset();};const hash=window.location.hash;const directAnchor=Boolean(hash&&!hash.startsWith(\"#services=\"));if(pendingSection||!navigationHasAnchor&&!directAnchor)scheduleReset();document.addEventListener(\"click\",rememberDestination,true);return()=>{cancelReset();document.removeEventListener(\"click\",rememberDestination,true);};},[]);}export function withScrollGlass(Component){return /*#__PURE__*/React.forwardRef(function ScrollGlass(props,ref){usePageStart();const[scrolled,setScrolled]=React.useState(false);const[wide,setWide]=React.useState(false);React.useEffect(()=>{if(typeof window===\"undefined\")return;const updateScroll=()=>setScrolled(window.scrollY>24);const updateWidth=()=>setWide(window.innerWidth>=1280);updateScroll();updateWidth();window.addEventListener(\"scroll\",updateScroll,{passive:true});window.addEventListener(\"resize\",updateWidth);return()=>{window.removeEventListener(\"scroll\",updateScroll);window.removeEventListener(\"resize\",updateWidth);};},[]);if(!wide)return /*#__PURE__*/_jsx(Component,{...props,ref:ref});return /*#__PURE__*/_jsx(Component,{...props,ref:ref,style:{...props.style,backgroundColor:scrolled?\"rgba(247, 250, 253, 0.78)\":\"transparent\",backdropFilter:scrolled?\"blur(18px) saturate(1.25)\":\"blur(0px)\",WebkitBackdropFilter:scrolled?\"blur(18px) saturate(1.25)\":\"blur(0px)\",border:\"none\",borderRadius:\"0px\",boxShadow:\"none\",marginTop:scrolled?\"-16px\":\"0px\",transition:\"background-color 360ms ease, backdrop-filter 360ms ease, -webkit-backdrop-filter 360ms ease, margin-top 360ms ease\"}});});}export function withMergedMenu(Component){return /*#__PURE__*/React.forwardRef(function MergedMenu(props,ref){const[scrolled,setScrolled]=React.useState(false);const[wide,setWide]=React.useState(false);React.useEffect(()=>{if(typeof window===\"undefined\")return;const update=()=>{setScrolled(window.scrollY>24);setWide(window.innerWidth>=1280);};update();window.addEventListener(\"scroll\",update,{passive:true});window.addEventListener(\"resize\",update);return()=>{window.removeEventListener(\"scroll\",update);window.removeEventListener(\"resize\",update);};},[]);if(!wide)return /*#__PURE__*/_jsx(Component,{...props,ref:ref});return /*#__PURE__*/_jsx(Component,{...props,ref:ref,style:{...props.style,backgroundColor:scrolled?\"transparent\":undefined,backdropFilter:scrolled?\"none\":undefined,WebkitBackdropFilter:scrolled?\"none\":undefined,border:scrolled?\"none\":undefined,borderRadius:scrolled?\"0px\":undefined,boxShadow:scrolled?\"none\":undefined,\"--border-top-width\":scrolled?\"0px\":undefined,\"--border-right-width\":scrolled?\"0px\":undefined,\"--border-bottom-width\":scrolled?\"0px\":undefined,\"--border-left-width\":scrolled?\"0px\":undefined,transition:\"background-color 360ms ease, backdrop-filter 360ms ease, -webkit-backdrop-filter 360ms ease, border-radius 360ms ease, box-shadow 360ms ease\"}});});}export function withSectionNavigation(Component){return /*#__PURE__*/React.forwardRef(function SectionNavigation(props,ref){return /*#__PURE__*/_jsx(Component,{...props,ref:ref,\"data-vantage-section-link\":\"true\"});});}function sectionLink(Component,target){return /*#__PURE__*/React.forwardRef(function SectionLink(props,ref){return /*#__PURE__*/_jsx(Component,{...props,ref:ref,\"data-vantage-section-link\":\"true\",\"data-vantage-section-target\":target});});}function sectionTarget(Component,target){return /*#__PURE__*/React.forwardRef(function SectionTarget(props,forwardedRef){const localRef=React.useRef(null);const setRef=React.useCallback(element=>{const previous=localRef.current;localRef.current=element;if(typeof forwardedRef===\"function\")forwardedRef(element);else if(forwardedRef)forwardedRef.current=element;if(element&&RenderTarget.current()===RenderTarget.preview)sectionTargets.set(target,element);else if(sectionTargets.get(target)===previous)sectionTargets.delete(target);},[forwardedRef]);React.useEffect(()=>()=>{if(sectionTargets.get(target)===localRef.current)sectionTargets.delete(target);},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:setRef});});}export function withFeaturesLink(Component){return sectionLink(Component,\"features\");}export function withHowItWorksLink(Component){return sectionLink(Component,\"how-it-works\");}export function withPlatformLink(Component){return sectionLink(Component,\"platform\");}export function withIntegrationsLink(Component){return sectionLink(Component,\"integrations\");}export function withOpenRolesLink(Component){return sectionLink(Component,\"open-roles\");}export function withFeaturesTarget(Component){return sectionTarget(Component,\"features\");}export function withHowItWorksTarget(Component){return sectionTarget(Component,\"how-it-works\");}export function withPlatformTarget(Component){return sectionTarget(Component,\"platform\");}export function withIntegrationsTarget(Component){return sectionTarget(Component,\"integrations\");}export function withOpenRolesTarget(Component){return sectionTarget(Component,\"open-roles\");}\nexport const __FramerMetadata__ = {\"exports\":{\"withScrollGlass\":{\"type\":\"reactHoc\",\"name\":\"withScrollGlass\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHowItWorksLink\":{\"type\":\"reactHoc\",\"name\":\"withHowItWorksLink\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withOpenRolesLink\":{\"type\":\"reactHoc\",\"name\":\"withOpenRolesLink\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHowItWorksTarget\":{\"type\":\"reactHoc\",\"name\":\"withHowItWorksTarget\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFeaturesLink\":{\"type\":\"reactHoc\",\"name\":\"withFeaturesLink\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFeaturesTarget\":{\"type\":\"reactHoc\",\"name\":\"withFeaturesTarget\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMergedMenu\":{\"type\":\"reactHoc\",\"name\":\"withMergedMenu\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPlatformTarget\":{\"type\":\"reactHoc\",\"name\":\"withPlatformTarget\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withOpenRolesTarget\":{\"type\":\"reactHoc\",\"name\":\"withOpenRolesTarget\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPlatformLink\":{\"type\":\"reactHoc\",\"name\":\"withPlatformLink\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withIntegrationsTarget\":{\"type\":\"reactHoc\",\"name\":\"withIntegrationsTarget\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withIntegrationsLink\":{\"type\":\"reactHoc\",\"name\":\"withIntegrationsLink\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSectionNavigation\":{\"type\":\"reactHoc\",\"name\":\"withSectionNavigation\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"vari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