{"version":3,"file":"Parallax.DUVZ31Co.mjs","names":["useRef","useCallback"],"sources":["https:/framerusercontent.com/modules/VbNI1bmEmQx86iihMNQ0/WtoBIaegn8RteFR4Z5eG/Parallax.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useCallback,useRef}from\"react\";import{useScroll,useTransform}from\"framer-motion\";/**\n * Bleed Parallax Override for Framer\n *\n * Applies a 1:1 mapped parallax effect to an image based on its intersection\n * with the viewport. Runs consistently across desktop, tablet, and phone.\n */export function withBleedParallax(Component){return /*#__PURE__*/forwardRef(function WithBleedParallax(props,forwardedRef){const ref=useRef(null);// Track the element from entering the bottom of the viewport\n// until it leaves through the top.\nconst{scrollYProgress}=useScroll({target:ref,offset:[\"start end\",\"end start\"]});// Keep the existing bleed range on every breakpoint.\nconst yOffset=useTransform(scrollYProgress,[0,1],[\"-20%\",\"0%\"]);const mergedRef=useCallback(node=>{ref.current=node;if(typeof forwardedRef===\"function\"){forwardedRef(node);}else if(forwardedRef&&\"current\"in forwardedRef){const mutableRef=forwardedRef;mutableRef.current=node;}},[forwardedRef]);return /*#__PURE__*/_jsx(Component,{...props,ref:mergedRef,style:{...props.style,y:yOffset,willChange:\"transform\"}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withBleedParallax\":{\"type\":\"reactHoc\",\"name\":\"withBleedParallax\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Parallax.map"],"mappings":"0LAKG,SAAgB,EAAkB,EAAU,CAAC,OAAoB,EAAW,SAA2B,EAAM,EAAa,CAAC,IAAM,EAAIA,EAAO,IAAI,EAE9I,CAAC,mBAAiB,EAAU,CAAC,OAAO,EAAI,OAAO,CAAC,YAAY,WAAW,CAAC,CAAC,EACxE,EAAQ,EAAa,EAAgB,CAAC,EAAE,CAAC,EAAE,CAAC,OAAO,IAAI,CAAC,EAAQ,EAAUC,EAAY,GAAM,CAAkB,GAAjB,EAAI,QAAQ,EAAQ,OAAO,GAAe,WAAY,EAAa,CAAI,OAAQ,GAAG,GAAc,YAAY,EAAa,CAAC,IAAM,EAAW,EAAa,EAAW,QAAQ,CAAK,CAAC,EAAE,CAAC,CAAY,CAAC,EAAE,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,IAAI,EAAU,MAAM,CAAC,GAAG,EAAM,MAAM,EAAE,EAAQ,WAAW,WAAW,CAAC,CAAC,CAAE,CAAC,CAAE,iBARpX,IAAiD,IAAkD"}