{"version":3,"file":"SectionReveal.Be2PNonW.mjs","names":["React.useRef","React.useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/l2t9yAOUVSotcpxzk8Sm/MaeS6P1s5NWvL1lqN3vz/SectionReveal.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{useIsStaticRenderer}from\"framer\";import{useReducedMotion}from\"framer-motion\";function reveal(Component,blur,duration){return /*#__PURE__*/React.forwardRef(function SectionReveal(props,forwardedRef){const own=React.useRef(null);const completed=React.useRef(false);const isStatic=useIsStaticRenderer();const reducedMotion=useReducedMotion();React.useEffect(()=>{const element=own.current;// Critical page titles paint immediately; below-fold section reveals remain.\nif(element&&(element.matches(\"h1\")||element.querySelector(\"h1\")))return;if(!element||isStatic||reducedMotion||completed.current||typeof window===\"undefined\"||!window.IntersectionObserver||!element.animate)return;let animation;const observer=new IntersectionObserver(entries=>{if(!entries.some(entry=>entry.isIntersecting))return;completed.current=true;observer.disconnect();animation=element.animate([{filter:`blur(${blur}px)`,opacity:.68},{filter:\"blur(0px)\",opacity:1}],{duration,easing:\"cubic-bezier(0.16, 1, 0.3, 1)\",fill:\"none\"});},{threshold:.18,rootMargin:\"0px 0px -32px 0px\"});observer.observe(element);return()=>{observer.disconnect();animation?.cancel();};},[isStatic,reducedMotion]);return /*#__PURE__*/_jsx(Component,{...props,\"data-sv-blur-reveal\":\"heading\",ref:element=>{own.current=element;if(typeof forwardedRef===\"function\")forwardedRef(element);else if(forwardedRef)forwardedRef.current=element;}});});}export function withSectionReveal(Component){return reveal(Component,6,650);}export function withPageReveal(Component){return reveal(Component,4,550);}export function withLazyMotionCreative(Component){return /*#__PURE__*/React.forwardRef(function LazyMotionCreative(props,forwardedRef){const own=React.useRef(null);const isStatic=useIsStaticRenderer();const[nearViewport,setNearViewport]=React.useState(false);React.useEffect(()=>{const element=own.current;if(!element||isStatic)return;if(!window.IntersectionObserver){setNearViewport(true);return;}const observer=new IntersectionObserver(entries=>{setNearViewport(entries.some(entry=>entry.isIntersecting));},{rootMargin:\"250px 0px\"});observer.observe(element);return()=>observer.disconnect();},[isStatic]);return /*#__PURE__*/_jsx(\"div\",{ref:element=>{own.current=element;if(typeof forwardedRef===\"function\")forwardedRef(element);else if(forwardedRef)forwardedRef.current=element;},\"data-sv-lazy-motion\":\"true\",style:{...props.style,overflow:\"hidden\",background:\"transparent\"},children:(isStatic||nearViewport)&&/*#__PURE__*/_jsx(Component,{...props,style:{...props.style,position:\"relative\",inset:undefined,width:\"100%\",height:\"100%\",transform:undefined}})});});}// Preserve the native frame's CSS sizing and accessible image placeholder while\n// keeping its full-resolution image request out of the initial hero load.\nexport function withDeferredImage(Component){return /*#__PURE__*/React.forwardRef(function DeferredImage(props,forwardedRef){const own=React.useRef(null);const isStatic=useIsStaticRenderer();const[requested,setRequested]=React.useState(false);React.useEffect(()=>{const element=own.current;if(!element||isStatic||requested)return;if(!window.IntersectionObserver){setRequested(true);return;}const observer=new IntersectionObserver(entries=>{if(entries.some(entry=>entry.isIntersecting)){setRequested(true);observer.disconnect();}},{rootMargin:\"240px 0px\"});observer.observe(element);return()=>observer.disconnect();},[isStatic,requested]);const mounted=isStatic||requested;const label=String(props[\"data-framer-name\"]||\"\").includes(\"portrait\")?\"Client testimonial portrait\":\"Selected ad creative\";return /*#__PURE__*/_jsx(\"div\",{className:props.className,\"data-framer-name\":props[\"data-framer-name\"],\"data-sv-deferred-image\":mounted?\"loaded\":\"waiting\",role:mounted?undefined:\"img\",\"aria-label\":mounted?undefined:label,ref:element=>{own.current=element;if(typeof forwardedRef===\"function\")forwardedRef(element);else if(forwardedRef)forwardedRef.current=element;},style:{...props.style},children:mounted&&/*#__PURE__*/_jsx(Component,{...props,style:{...props.style,position:\"absolute\",inset:0,width:\"100%\",height:\"100%\",transform:undefined}})});});}// The entrance starts on the visible hero after hydration. It must not be\n// consumed by Framer's pre-render or by loading the page in a background tab.\nconst desktopHeroEntranceCSS=`\r\n@media (min-width: 810px) and (prefers-reduced-motion: no-preference) {\r\n    [data-sidas-hero-entrance][data-sidas-hero-state=\"pending\"] {\r\n        opacity: 0;\r\n        filter: blur(7px);\r\n        transform: translate3d(0, 12px, 0);\r\n    }\r\n}\r\n`;const desktopHeroDelays={headline:0,subhead:300,actions:560,note:740};function desktopHeroEntrance(Component,stage){return /*#__PURE__*/React.forwardRef(function DesktopHeroEntrance(props,forwardedRef){const isStatic=useIsStaticRenderer();const own=React.useRef(null);const[phase,setPhase]=React.useState(\"pending\");React.useEffect(()=>{const element=own.current;if(isStatic||!element)return;const media=window.matchMedia(\"(min-width: 810px) and (prefers-reduced-motion: no-preference)\");if(!media.matches||!element.animate){setPhase(\"skipped\");return;}let cancelled=false;let scheduled=false;let first=0;let second=0;let timeout=0;let animation;let observer;const start=()=>{if(cancelled||scheduled||document.visibilityState!==\"visible\")return;const opening=element.closest(\"#opening\")||element;const bounds=opening.getBoundingClientRect();if(bounds.bottom<=0||bounds.top>=window.innerHeight)return;scheduled=true;observer?.disconnect();// Wait for the text to be ready, with a bounded font wait.\nconst fonts=document.fonts?document.fonts.ready:Promise.resolve();Promise.race([fonts,new Promise(resolve=>{timeout=window.setTimeout(resolve,700);})]).then(()=>{window.clearTimeout(timeout);if(cancelled)return;first=window.requestAnimationFrame(()=>{second=window.requestAnimationFrame(()=>{if(cancelled)return;if(!media.matches){setPhase(\"skipped\");return;}if(document.visibilityState!==\"visible\"){scheduled=false;return;}animation=element.animate([{opacity:0,filter:\"blur(7px)\",transform:\"translate3d(0,12px,0)\"},{opacity:1,filter:\"blur(0px)\",transform:\"translate3d(0,0,0)\"}],{duration:750,delay:desktopHeroDelays[stage],easing:\"cubic-bezier(0.16,1,0.3,1)\",fill:\"backwards\"});setPhase(\"playing\");animation.onfinish=()=>{if(!cancelled)setPhase(\"complete\");};});});});};const skip=()=>{if(media.matches)return;animation?.cancel();setPhase(\"skipped\");};if(window.IntersectionObserver){observer=new IntersectionObserver(entries=>{if(entries.some(entry=>entry.isIntersecting))start();},{threshold:0});observer.observe(element.closest(\"#opening\")||element);}document.addEventListener(\"visibilitychange\",start);media.addEventListener(\"change\",skip);start();return()=>{cancelled=true;document.removeEventListener(\"visibilitychange\",start);media.removeEventListener(\"change\",skip);observer?.disconnect();window.clearTimeout(timeout);window.cancelAnimationFrame(first);window.cancelAnimationFrame(second);animation?.cancel();};},[isStatic]);return /*#__PURE__*/_jsxs(_Fragment,{children:[stage===\"headline\"&&/*#__PURE__*/_jsx(\"style\",{\"data-sidas-hero-entrance-css\":true,children:desktopHeroEntranceCSS}),/*#__PURE__*/_jsx(Component,{...props,ref:element=>{own.current=element;if(typeof forwardedRef===\"function\")forwardedRef(element);else if(forwardedRef)forwardedRef.current=element;},\"data-sidas-hero-entrance\":isStatic?undefined:stage,\"data-sidas-hero-state\":isStatic?undefined:phase})]});});}export function withDesktopHeroHeadline(Component){return desktopHeroEntrance(Component,\"headline\");}export function withDesktopHeroSubhead(Component){return desktopHeroEntrance(Component,\"subhead\");}export function withDesktopHeroActions(Component){return desktopHeroEntrance(Component,\"actions\");}export function withDesktopHeroNote(Component){return desktopHeroEntrance(Component,\"note\");}\nexport const __FramerMetadata__ = {\"exports\":{\"withDesktopHeroActions\":{\"type\":\"reactHoc\",\"name\":\"withDesktopHeroActions\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withDeferredImage\":{\"type\":\"reactHoc\",\"name\":\"withDeferredImage\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withLazyMotionCreative\":{\"type\":\"reactHoc\",\"name\":\"withLazyMotionCreative\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withDesktopHeroHeadline\":{\"type\":\"reactHoc\",\"name\":\"withDesktopHeroHeadline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withDesktopHeroNote\":{\"type\":\"reactHoc\",\"name\":\"withDesktopHeroNote\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withDesktopHeroSubhead\":{\"type\":\"reactHoc\",\"name\":\"withDesktopHeroSubhead\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPageReveal\":{\"type\":\"reactHoc\",\"name\":\"withPageReveal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSectionReveal\":{\"type\":\"reactHoc\",\"name\":\"withSectionReveal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SectionReveal.map"],"mappings":"sQAA+L,SAAS,EAAO,EAAU,EAAK,EAAS,CAAC,OAAoB,EAAiB,SAAuB,EAAM,EAAa,CAAC,IAAM,EAAIA,EAAa,IAAI,EAAQ,EAAUA,EAAa,EAAK,EAAQ,EAAS,EAAoB,EAAQ,EAAc,EAAiB,EACmP,OADjP,MAAoB,CAAC,IAAM,EAAQ,EAAI,QACpa,GAArE,IAAU,EAAQ,QAAQ,IAAI,GAAG,EAAQ,cAAc,IAAI,IAAa,CAAC,GAAS,GAAU,GAAe,EAAU,SAAgB,IAAS,QAAa,CAAC,EAAO,sBAAsB,CAAC,EAAQ,QAAQ,OAAO,IAAI,EAAgB,EAAS,IAAI,qBAAqB,GAAS,CAAK,EAAQ,KAAK,GAAO,EAAM,cAAc,IAAS,EAAU,QAAQ,GAAK,EAAS,WAAW,EAAE,EAAU,EAAQ,QAAQ,CAAC,CAAC,OAAO,QAAQ,EAAK,KAAK,QAAQ,GAAG,EAAE,CAAC,OAAO,YAAY,QAAQ,CAAC,CAAC,EAAE,CAAC,WAAS,OAAO,gCAAgC,KAAK,MAAM,CAAC,EAAE,EAAE,CAAC,UAAU,IAAI,WAAW,mBAAmB,CAAC,EAA4B,OAA1B,EAAS,QAAQ,CAAO,MAAY,CAAC,EAAS,WAAW,EAAE,GAAW,OAAO,CAAE,CAAE,EAAE,CAAC,EAAS,CAAa,CAAC,EAAsB,EAAK,EAAU,CAAC,GAAG,EAAM,sBAAsB,UAAU,IAAI,GAAS,CAAC,EAAI,QAAQ,EAAW,OAAO,GAAe,WAAW,EAA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