{"version":3,"file":"SectionReveal.B3PLWY2j.mjs","names":["React.useRef","React.useState","React.forwardRef","_Fragment"],"sources":["https:/framerusercontent.com/modules/l2t9yAOUVSotcpxzk8Sm/XeZQtYilI9mZABXt0CoL/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}})});});}const desktopHeroEntranceCSS=`\r\n@keyframes sidas-hero-desktop-reveal {\r\n    from { opacity: 0; filter: blur(7px); transform: translate3d(0, 12px, 0); }\r\n    to { opacity: 1; filter: blur(0); transform: translate3d(0, 0, 0); }\r\n}\r\n@media (min-width: 810px) and (prefers-reduced-motion: no-preference) {\r\n    [data-sidas-hero-entrance][data-sidas-hero-ready=\"false\"] {\r\n        opacity: 0;\r\n        filter: blur(7px);\r\n        transform: translate3d(0, 12px, 0);\r\n    }\r\n    [data-sidas-hero-entrance][data-sidas-hero-ready=\"true\"] {\r\n        animation-name: sidas-hero-desktop-reveal;\r\n        animation-duration: 700ms;\r\n        animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);\r\n        animation-fill-mode: backwards;\r\n        animation-iteration-count: 1;\r\n    }\r\n    [data-sidas-hero-entrance=\"headline\"] { animation-delay: 0ms; }\r\n    [data-sidas-hero-entrance=\"subhead\"] { animation-delay: 220ms; }\r\n    [data-sidas-hero-entrance=\"actions\"] { animation-delay: 380ms; }\r\n    [data-sidas-hero-entrance=\"note\"] { animation-delay: 500ms; }\r\n}\r\n`;// Start the sequence after hydration and font readiness, rather than letting\n// the server-rendered CSS animation finish before the interactive page appears.\nlet desktopHeroFontReady;function waitForDesktopHeroFonts(){if(!desktopHeroFontReady){desktopHeroFontReady=new Promise(resolve=>{let settled=false;const finish=()=>{if(settled)return;settled=true;window.clearTimeout(timeout);resolve();};const timeout=window.setTimeout(finish,700);if(document.fonts)document.fonts.ready.then(finish,finish);else finish();});}return desktopHeroFontReady;}function desktopHeroEntrance(Component,stage){const Entrance=/*#__PURE__*/React.forwardRef(function DesktopHeroEntrance(props,ref){const isStatic=useIsStaticRenderer();const[ready,setReady]=React.useState(false);React.useEffect(()=>{if(isStatic)return;if(!window.matchMedia(\"(min-width: 810px) and (prefers-reduced-motion: no-preference)\").matches){setReady(true);return;}let cancelled=false;let first=0;let second=0;waitForDesktopHeroFonts().then(()=>{if(cancelled)return;first=window.requestAnimationFrame(()=>{second=window.requestAnimationFrame(()=>{if(!cancelled)setReady(true);});});});return()=>{cancelled=true;window.cancelAnimationFrame(first);window.cancelAnimationFrame(second);};},[isStatic]);return /*#__PURE__*/_jsxs(_Fragment,{children:[stage===\"subhead\"&&!isStatic&&/*#__PURE__*/_jsx(\"style\",{\"data-sidas-hero-entrance-css\":true,children:desktopHeroEntranceCSS}),/*#__PURE__*/_jsx(Component,{...props,ref:ref,\"data-sidas-hero-entrance\":isStatic?undefined:stage,\"data-sidas-hero-ready\":isStatic?undefined:String(ready)})]});});return Entrance;}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\":{\"withDesktopHeroNote\":{\"type\":\"reactHoc\",\"name\":\"withDesktopHeroNote\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withDeferredImage\":{\"type\":\"reactHoc\",\"name\":\"withDeferredImage\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withDesktopHeroSubhead\":{\"type\":\"reactHoc\",\"name\":\"withDesktopHeroSubhead\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withDesktopHeroHeadline\":{\"type\":\"reactHoc\",\"name\":\"withDesktopHeroHeadline\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPageReveal\":{\"type\":\"reactHoc\",\"name\":\"withPageReveal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSectionReveal\":{\"type\":\"reactHoc\",\"name\":\"withSectionReveal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withDesktopHeroActions\":{\"type\":\"reactHoc\",\"name\":\"withDesktopHeroActions\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withLazyMotionCreative\":{\"type\":\"reactHoc\",\"name\":\"withLazyMotionCreative\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL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