{"version":3,"file":"Testing.C82S3aAV.mjs","names":[],"sources":["https:/framerusercontent.com/modules/cAwMsg3yEOCIougrwgs6/ZMPMacXp2kVVDcFU5B1p/Testing.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";export function withLenis(Component){return props=>{useEffect(()=>{const script=document.createElement(\"script\");script.src=\"https://cdn.jsdelivr.net/gh/studio-freight/lenis@1.0.29/bundled/lenis.min.js\";document.head.appendChild(script);// Code that depends on the lenis library\nscript.onload=()=>{const lenis=new window.Lenis// Assuming Lenis is attached to the window object\n;lenis.on(\"scroll\",e=>{console.log(e);});function raf(time){lenis.raf(time);requestAnimationFrame(raf);}requestAnimationFrame(raf);};// Cleanup function\nreturn()=>{// Remove the script when component unmounts\ndocument.head.removeChild(script);};},[]);return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withLenis\":{\"type\":\"reactHoc\",\"name\":\"withLenis\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Testing.map"],"mappings":"gIAAwE,SAAgB,EAAU,EAAU,CAAC,MAAO,KAAQ,MAAc,CAAC,IAAM,EAAO,SAAS,cAAc,SAAS,CAGxL,MAHyL,GAAO,IAAI,+EAA+E,SAAS,KAAK,YAAY,EAAO,CACpT,EAAO,WAAW,CAAC,IAAM,EAAM,IAAI,EAAO,MACzC,EAAM,GAAG,SAAS,GAAG,CAAC,QAAQ,IAAI,EAAE,EAAG,CAAC,SAAS,EAAI,EAAK,CAAC,EAAM,IAAI,EAAK,CAAC,sBAAsB,EAAI,CAAE,sBAAsB,EAAI,MACxH,CACV,SAAS,KAAK,YAAY,EAAO,GAAK,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,uBAJ7C,IAA6B"}