{"version":3,"file":"SmoothScroll.762ejGmt.mjs","names":[],"sources":["https:/framerusercontent.com/modules/UHjPCmjNS95iYFfCVbiP/xOKFqh5rpk5RM09kxL2k/SmoothScroll.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{RenderTarget}from\"framer\";/**\n * Site-wide inertia smooth scrolling (Lenis).\n * Drop ONE instance anywhere on a page (it renders nothing visible).\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n * @framerIntrinsicWidth 1\n * @framerIntrinsicHeight 1\n */export default function SmoothScroll(props){const{lerp,duration}=props;React.useEffect(()=>{if(RenderTarget.current()!==RenderTarget.preview)return;let lenis;let raf;let cancelled=false;import(\"https://esm.sh/lenis@1.1.14\").then(mod=>{if(cancelled)return;const Lenis=mod.default;lenis=new Lenis({lerp:lerp,duration:duration,smoothWheel:true,wheelMultiplier:1,touchMultiplier:1.5});const loop=t=>{lenis.raf(t);raf=requestAnimationFrame(loop);};raf=requestAnimationFrame(loop);});return()=>{cancelled=true;if(raf)cancelAnimationFrame(raf);if(lenis)lenis.destroy();};},[lerp,duration]);return /*#__PURE__*/_jsx(\"div\",{style:{width:1,height:1,opacity:0,pointerEvents:\"none\"}});}SmoothScroll.defaultProps={lerp:.1,duration:1.1};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SmoothScroll\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicHeight\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SmoothScroll.map"],"mappings":"mKAQG,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,OAAK,YAAU,EAAsgB,OAAhgB,MAAoB,CAAC,GAAG,EAAa,QAAQ,IAAI,EAAa,QAAQ,OAAO,IAAI,EAAU,EAAQ,EAAU,GAA0S,OAApS,OAAO,2BAA8B,CAAC,KAAK,GAAK,CAAC,GAAG,EAAU,OAAO,IAAM,EAAM,EAAI,QAAQ,EAAM,IAAI,EAAM,CAAM,OAAc,WAAS,YAAY,GAAK,gBAAgB,EAAE,gBAAgB,GAAG,CAAC,EAAE,IAAM,EAAK,GAAG,CAAC,EAAM,IAAI,CAAC,EAAE,EAAI,sBAAsB,CAAI,CAAE,EAAE,EAAI,sBAAsB,CAAI,CAAE,CAAC,MAAY,CAAC,EAAU,GAAQ,GAAI,qBAAqB,CAAG,EAAK,GAAM,EAAM,QAAQ,CAAE,CAAE,EAAE,CAAC,EAAK,CAAQ,CAAC,EAAsB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc,MAAM,CAAC,CAAC,CAAE,iBAR1nB,IAA4B,IAAiC,EAQ8jB,EAAa,aAAa,CAAC,KAAK,GAAG,SAAS,GAAG"}