{"version":3,"file":"Scroll.BTTKBtLf.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/zfOp7bQ3fUM2Wr5FXf67/QXQy5LYJff7VTtDB69WA/Scroll.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useRef}from\"react\";import{useScroll}from\"framer-motion\";// Scrub through a video or drive a Lottie animation by scrolling while it is in view\nexport function withScrolledProgressInView(Component){return props=>{const ref=useRef(null);const{scrollYProgress}=useScroll({target:ref,offset:[\"start 0.95\",\"end 0.1\"],layoutEffect:false});// const smoothProgress = useSpring(scrollYProgress, {\n//     stiffness: 100,\n//     damping: 30,\n//     restDelta: 0.001,\n// })\nreturn /*#__PURE__*/_jsx(\"div\",{ref:ref,style:props.style,children:/*#__PURE__*/_jsx(Component,{...props,progress:scrollYProgress})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withScrolledProgressInView\":{\"type\":\"reactHoc\",\"name\":\"withScrolledProgressInView\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Scroll.map"],"mappings":"oKACA,SAAgB,EAA2B,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAIA,EAAO,KAAK,CAAM,CAAC,mBAAiB,EAAU,CAAC,OAAO,EAAI,OAAO,CAAC,aAAa,UAAU,CAAC,aAAa,GAAM,CAAC,CAK7L,OAAoB,EAAK,MAAM,CAAK,MAAI,MAAM,EAAM,MAAM,SAAsB,EAAK,EAAU,CAAC,GAAG,EAAM,SAAS,EAAgB,CAAC,CAAC,CAAC,mBAN1F,IAA0B,IAAqC"}