{"version":3,"file":"VideoScrollProgress_7.C15s4Tpg.mjs","names":[],"sources":["https:/framerusercontent.com/modules/2L4pMEbIfZf4lhV4QxOz/uTJe2Oo3AWstihFhxXaC/VideoScrollProgress_7.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useScroll,useTransform}from\"framer-motion\";export function videoScrollProgress(Component){const SCROLL_START=7e3// Scroll position when animation starts\n;const SCROLL_DISTANCE=7050// 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_7.map"],"mappings":"4JAA6F,SAAgB,EAAoB,EAAU,CAAC,IAAM,EAAa,IAEhH,OAA7B,EADK,KAC+B,GAAO,CAC7D,GAAK,CAAC,WAAS,GAAW,CACpB,EAAS,EAAa,EAAQ,CAAC,EAAa,MAAW,CAAC,CAAC,EAAE,EAAE,CAAC,CACpE,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAe,WAAS,CAAC,mBALrB,IAAkD"}