{"version":3,"file":"Smooth_Scroll.DCkx3wne.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/V7DPbxSF5LQrJYOPSQhL/lU2zviR0L5deOJ5f83AB/Smooth_Scroll.js"],"sourcesContent":["import{jsx as _jsx,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect}from\"react\";import Lenis from\"@studio-freight/lenis\";import{addPropertyControls,ControlType}from\"framer\";export default function SmoothScroll({intensity}){const duration=intensity/10*2;useEffect(()=>{const lenis=new Lenis({duration,easing:n=>1-Math.pow(1-n,4),smoothWheel:true,smoothTouch:false});function raf(time){lenis.raf(time);requestAnimationFrame(raf);}requestAnimationFrame(raf);return()=>{lenis.destroy();};},[intensity]);return /*#__PURE__*/_jsx(_Fragment,{});}addPropertyControls(SmoothScroll,{intensity:{type:ControlType.Number,title:\"Intensidade\",defaultValue:5,min:1,max:10,step:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SmoothScroll\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Smooth_Scroll.map"],"mappings":"iOAA2L,SAAwB,EAAa,CAAC,aAAW,CAAC,IAAM,EAAS,EAAU,GAAG,EAAwP,OAAtP,MAAc,CAAC,IAAM,EAAM,IAAI,EAAM,CAAC,WAAS,OAAO,GAAG,GAAW,EAAE,IAAE,EAAG,YAAY,GAAK,YAAY,GAAM,CAAC,CAAC,SAAS,EAAI,EAAK,CAAC,EAAM,IAAI,EAAK,CAAC,sBAAsB,EAAI,CAA6B,OAA3B,sBAAsB,EAAI,KAAW,CAAC,EAAM,SAAS,GAAK,CAAC,EAAU,CAAC,CAAqB,EAAKA,EAAU,EAAE,CAAC,kBAAte,IAA6B,IAAyC,IAAoD,CAA8W,EAAoB,EAAa,CAAC,UAAU,CAAC,KAAK,EAAY,OAAO,MAAM,cAAc,aAAa,EAAE,IAAI,EAAE,IAAI,GAAG,KAAK,EAAE,CAAC,CAAC"}