{"version":3,"file":"Scroll.s7PLrIMc.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/fnUIQ7lPV7uNDTYprOms/4qVLnj61i3Yvh9ImUkw4/Scroll.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{motion,useViewportScroll}from\"framer-motion\";import{useEffect,useState}from\"react\";export default function Scroll(){const{scrollYProgress}=useViewportScroll();const[initialScale,setInitialScale]=useState(0)// Updated initial scale to 0\n;useEffect(()=>{const updateInitialScale=()=>{setInitialScale(scrollYProgress.current*100)// Adjusted calculation for initial scale\n;};// Listen for changes in scrollYProgress and update the initial scale\nscrollYProgress.onChange(updateInitialScale);// Initialize the initial scale\nupdateInitialScale();},[scrollYProgress]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n          .progress-bar-container {\n            position: fixed;\n            top: 0;\n            left: 0;\n            right: 0;\n            height: 2px;\n            width: ${initialScale}%;\n            border-radius: 4px;\n            overflow: hidden;    \n            filter: drop-shadow(0px 0px 4px #FD4C00);\n            margin:0 auto;\n          }\n\n          .progress-bar {\n            height: 100%;\n            width:100%;\n            background: #FD4C00;\n            transform-origin: 0%;\n          }\n        `}),/*#__PURE__*/_jsx(\"div\",{className:\"progress-bar-container\",children:/*#__PURE__*/_jsx(motion.div,{className:\"progress-bar\",style:{originX:.5}})})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Scroll\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Scroll.map"],"mappings":"wRAAyK,SAAwB,GAAQ,CAAC,GAAK,CAAC,kBAAgB,CAAC,GAAmB,CAAM,CAAC,EAAa,EAAgB,CAAC,EAAS,EAAE,CAI1P,MAHzC,GAAU,IAAI,CAAC,IAAM,EAAmB,IAAI,CAAC,EAAgB,EAAgB,QAAQ,IAAI,AACxF,EAEF,AADA,EAAgB,SAAS,EAAmB,CAC5C,GAAoB,AAAE,EAAC,CAAC,CAAgB,EAAC,CAAqB,EAAMA,EAAU,CAAC,SAAS,CAAc,EAAK,QAAQ,CAAC,UAAU;;;;;;;qBAOzG,EAAa;;;;;;;;;;;;;SAaxB,EAAC,CAAc,EAAK,MAAM,CAAC,UAAU,yBAAyB,SAAsB,EAAK,EAAO,IAAI,CAAC,UAAU,eAAe,MAAM,CAAC,QAAQ,EAAG,CAAC,EAAC,AAAC,EAAC,AAAC,CAAC,EAAC,AAAE,cAxBnK,GAA+E,IAAoD,IAAsC"}