{"version":3,"file":"VideoScrollProgress_launchv2.CsRrK0ME.mjs","names":[],"sources":["https:/framerusercontent.com/modules/fvK7OFKz7Enus4vQ3GJm/b4b7jBQgNzrYhaybHV4Y/VideoScrollProgress_launchv2.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useScroll,useTransform}from\"framer-motion\";export function videoScrollProgress(Component){const SCROLL_START=-3e3// Scroll position when animation starts\n;const SCROLL_DISTANCE=6e3// Scroll distance after which animation ends\n;const SCROLL_END=SCROLL_START+SCROLL_DISTANCE;return props=>{// useScroll() returns the current scroll position\nconst{scrollY}=useScroll();// Calculate the scroll progress from 0 to 1\nconst progress=useTransform(scrollY,[SCROLL_START,SCROLL_END],[0,1]);// Pass the progress as a prop to the original component\nreturn /*#__PURE__*/_jsx(Component,{...props,progress:progress});};}\nexport const __FramerMetadata__ = {\"exports\":{\"videoScrollProgress\":{\"type\":\"reactHoc\",\"name\":\"videoScrollProgress\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./VideoScrollProgress_launchv2.map"],"mappings":"4JAA6F,SAAgB,EAAoB,EAAU,CAAC,IAAM,EAAa,KAEhH,OAA7B,EADK,IAC+B,GAAO,CAC7D,GAAK,CAAC,WAAS,GAAW,CACpB,EAAS,EAAa,EAAQ,CAAC,EAAa,IAAW,CAAC,CAAC,EAAE,EAAE,CAAC,CACpE,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAe,WAAS,CAAC,mBALrB,IAAkD"}