{"version":3,"file":"Motion.DvyofuDL.mjs","names":["useRef","__esmMin","de","c","init_jsx_runtime","init_npm_react_18_3_1","useMotionValue","useSpring","useScroll","useTransform","init_framer_motion_DhsWWWsN","RenderTarget","init_framer_D6uXRwWs","useIsStaticRenderer","useStill","isStatic","withSectionReveal","ref","still","p","scrollYProgress","clip","i","v","Component","props","withParallax","y","withZoomIn","scale","withHeroExit","opacity","withHeroImage","withMagnetic","mx","my","x","r","init_Motion"],"sources":["https:/framerusercontent.com/modules/k2BsPtWCbsLYXZqole0n/qTpkVdtM8tNLnRlhmnjv/Motion.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useRef}from\"react\";import{RenderTarget,useIsStaticRenderer}from\"framer\";import{useScroll,useTransform,useSpring,useMotionValue}from\"framer-motion\";function useStill(){const isStatic=useIsStaticRenderer();const t=RenderTarget.current();return isStatic||t===RenderTarget.canvas||t===RenderTarget.thumbnail||t===RenderTarget.export;}// Section opens from an inset rounded card to full bleed as it scrolls in\nexport function withSectionReveal(Component){return props=>{const ref=useRef(null);const still=useStill();const{scrollYProgress}=useScroll({target:ref,offset:[\"start end\",\"start 0.15\"]});const p=useSpring(scrollYProgress,{stiffness:140,damping:30,mass:.4});const clip=useTransform(p,v=>{const i=(1-v)*5;const r=(1-v)*40;return`inset(0% ${i}% 0% ${i}% round ${r}px)`;});if(still)return /*#__PURE__*/_jsx(Component,{...props});return /*#__PURE__*/_jsx(Component,{...props,ref:ref,style:{...props.style,clipPath:clip,willChange:\"clip-path\"}});};}// Content rises softly while the section scrolls into view\nexport function withRise(Component){return props=>{const ref=useRef(null);const still=useStill();const{scrollYProgress}=useScroll({target:ref,offset:[\"start end\",\"start 0.35\"]});const y=useTransform(scrollYProgress,[0,1],[90,0]);const opacity=useTransform(scrollYProgress,[0,.6,1],[.2,.85,1]);if(still)return /*#__PURE__*/_jsx(Component,{...props});return /*#__PURE__*/_jsx(Component,{...props,ref:ref,style:{...props.style,y,opacity}});};}// Image drifts inside its clipped frame (apply to the image layer)\nexport function withParallax(Component){return props=>{const ref=useRef(null);const still=useStill();const{scrollYProgress}=useScroll({target:ref,offset:[\"start end\",\"end start\"]});const y=useTransform(scrollYProgress,[0,1],[\"-7%\",\"7%\"]);if(still)return /*#__PURE__*/_jsx(Component,{...props});return /*#__PURE__*/_jsx(Component,{...props,ref:ref,style:{...props.style,y,scale:1.16}});};}// Image zooms from 1.25 to 1 as it enters\nexport function withZoomIn(Component){return props=>{const ref=useRef(null);const still=useStill();const{scrollYProgress}=useScroll({target:ref,offset:[\"start end\",\"center center\"]});const scale=useTransform(scrollYProgress,[0,1],[1.28,1]);if(still)return /*#__PURE__*/_jsx(Component,{...props});return /*#__PURE__*/_jsx(Component,{...props,ref:ref,style:{...props.style,scale}});};}// Hero content sinks and fades as the page scrolls away\nexport function withHeroExit(Component){return props=>{const ref=useRef(null);const still=useStill();const{scrollYProgress}=useScroll({target:ref,offset:[\"start start\",\"end start\"]});const y=useTransform(scrollYProgress,[0,1],[0,220]);const opacity=useTransform(scrollYProgress,[0,.8],[1,0]);const scale=useTransform(scrollYProgress,[0,1],[1,.94]);if(still)return /*#__PURE__*/_jsx(Component,{...props});return /*#__PURE__*/_jsx(Component,{...props,ref:ref,style:{...props.style,y,opacity,scale}});};}// Hero background slowly zooms out as you scroll\nexport function withHeroImage(Component){return props=>{const ref=useRef(null);const still=useStill();const{scrollYProgress}=useScroll({target:ref,offset:[\"start start\",\"end start\"]});const scale=useTransform(scrollYProgress,[0,1],[1.08,1.22]);const y=useTransform(scrollYProgress,[0,1],[\"0%\",\"18%\"]);if(still)return /*#__PURE__*/_jsx(Component,{...props});return /*#__PURE__*/_jsx(Component,{...props,ref:ref,style:{...props.style,scale,y}});};}// Wide text slides sideways with scroll (marquee feel)\nexport function withSlideLeft(Component){return props=>{const ref=useRef(null);const still=useStill();const{scrollYProgress}=useScroll({target:ref,offset:[\"start end\",\"end start\"]});const x=useTransform(scrollYProgress,[0,1],[\"8%\",\"-18%\"]);if(still)return /*#__PURE__*/_jsx(Component,{...props});return /*#__PURE__*/_jsx(Component,{...props,ref:ref,style:{...props.style,x}});};}// Element follows the cursor slightly (magnetic buttons)\nexport function withMagnetic(Component){return props=>{const still=useStill();const mx=useMotionValue(0);const my=useMotionValue(0);const x=useSpring(mx,{stiffness:220,damping:18});const y=useSpring(my,{stiffness:220,damping:18});if(still)return /*#__PURE__*/_jsx(Component,{...props});return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,x,y},onMouseMove:e=>{const r=e.currentTarget.getBoundingClientRect();mx.set((e.clientX-r.left-r.width/2)*.22);my.set((e.clientY-r.top-r.height/2)*.3);},onMouseLeave:()=>{mx.set(0);my.set(0);}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withParallax\":{\"type\":\"reactHoc\",\"name\":\"withParallax\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSectionReveal\":{\"type\":\"reactHoc\",\"name\":\"withSectionReveal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHeroImage\":{\"type\":\"reactHoc\",\"name\":\"withHeroImage\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMagnetic\":{\"type\":\"reactHoc\",\"name\":\"withMagnetic\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSlideLeft\":{\"type\":\"reactHoc\",\"name\":\"withSlideLeft\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHeroExit\":{\"type\":\"reactHoc\",\"name\":\"withHeroExit\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRise\":{\"type\":\"reactHoc\",\"name\":\"withRise\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withZoomIn\":{\"type\":\"reactHoc\",\"name\":\"withZoomIn\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Motion.map"],"mappings":"A,kPAAqM,SAASc,GAAU,CAAC,IAAMC,EAASF,EAAoB,EAAQ,EAAEF,EAAa,QAA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