{"version":3,"file":"Examples.DgSywUha.mjs","names":["useState","useRef"],"sources":["https:/framerusercontent.com/modules/7TPVvxnZ8GYn2t99cT9I/jWZZz4qyhpjQitYInCUz/Examples.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useState,useEffect,useRef}from\"react\";import{motion,useInView}from\"framer-motion\";export function withHideOnFooter(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[hidden,setHidden]=useState(false);useEffect(()=>{let ticking=false;const check=()=>{const el=document.querySelector(\"[data-numflow-footer]\");if(!el)return;const rect=el.getBoundingClientRect();setHidden(rect.top<window.innerHeight-40);ticking=false;};const onScroll=()=>{if(!ticking){ticking=true;requestAnimationFrame(check);}};window.addEventListener(\"scroll\",onScroll,{passive:true});check();return()=>window.removeEventListener(\"scroll\",onScroll);},[]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props,style:{...props.style||{},transform:hidden?\"translateY(-100%)\":\"translateY(0%)\",opacity:hidden?0:1,transition:\"transform 1.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1)\"}});});}export function withScrollFromLeft(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const inViewRef=useRef(null);const inView=useInView(inViewRef,{once:true,amount:.2});return /*#__PURE__*/_jsx(motion.div,{ref:inViewRef,initial:{opacity:0,x:-80},animate:inView?{opacity:1,x:0}:{opacity:0,x:-80},transition:{duration:.8,ease:\"easeOut\"},style:{width:\"100%\",height:\"fit-content\"},children:/*#__PURE__*/_jsx(Component,{ref:ref,...props})});});}// Delayed 0.5s — use on Section 1 content so it starts after the HeroHeading finishes\nexport function withScrollFromLeftDelayed(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const inViewRef=useRef(null);const inView=useInView(inViewRef,{once:true,amount:.2});return /*#__PURE__*/_jsx(motion.div,{ref:inViewRef,initial:{opacity:0,x:-80},animate:inView?{opacity:1,x:0}:{opacity:0,x:-80},transition:{duration:.8,delay:.5,ease:\"easeOut\"},style:{width:\"100%\",height:\"fit-content\"},children:/*#__PURE__*/_jsx(Component,{ref:ref,...props})});});}export function withScrollFromRight(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const inViewRef=useRef(null);const inView=useInView(inViewRef,{once:true,amount:.2});return /*#__PURE__*/_jsx(motion.div,{ref:inViewRef,initial:{opacity:0,x:80},animate:inView?{opacity:1,x:0}:{opacity:0,x:80},transition:{duration:.8,ease:\"easeOut\"},style:{width:\"100%\",height:\"fit-content\"},children:/*#__PURE__*/_jsx(Component,{ref:ref,...props})});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withScrollFromLeftDelayed\":{\"type\":\"reactHoc\",\"name\":\"withScrollFromLeftDelayed\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHideOnFooter\":{\"type\":\"reactHoc\",\"name\":\"withHideOnFooter\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withScrollFromLeft\":{\"type\":\"reactHoc\",\"name\":\"withScrollFromLeft\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withScrollFromRight\":{\"type\":\"reactHoc\",\"name\":\"withScrollFromRight\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Examples.map"],"mappings":"6MAA+I,SAAgB,EAAiB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,EAAO,GAAWA,EAAS,GAAM,CAAwa,OAAva,MAAc,CAAC,IAAI,EAAQ,GAAY,MAAU,CAAC,IAAM,EAAG,SAAS,cAAc,wBAAwB,CAAK,IAAgD,EAA3B,EAAG,uBAAuB,CAAgB,IAAI,EAAO,YAAY,GAAG,CAAC,EAAQ,KAAc,MAAa,CAAK,IAAS,EAAQ,GAAK,sBAAsB,EAAM,GAAsE,OAAlE,EAAO,iBAAiB,SAAS,EAAS,CAAC,QAAQ,GAAK,CAAC,CAAC,GAAO,KAAW,EAAO,oBAAoB,SAAS,EA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