{"version":3,"file":"REDSCROLL.DR3IynDD.mjs","names":["useRef","_Fragment"],"sources":["https:/framerusercontent.com/modules/dgYSq3TbB8YpHzC7ZIf8/JddwyFyxRgK2D4ZlSg3e/REDSCROLL.js"],"sourcesContent":["import{jsx as _jsx,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{addPropertyControls}from\"framer\";export default function CustomScrollbar(){const barRef=useRef(null);useEffect(()=>{// Hides the default browser scrollbar for a cleaner look\nconst style=document.createElement(\"style\");style.id=\"custom-scrollbar-hide\";style.textContent=`\n            ::-webkit-scrollbar { width: 0px; background: transparent; }\n            * { scrollbar-width: none; }\n        `;document.head.appendChild(style);const onScroll=()=>{if(!barRef.current)return;// Calculate how far down the page we are\nconst scrollTop=window.scrollY;const docHeight=document.documentElement.scrollHeight-window.innerHeight;const pct=docHeight>0?scrollTop/docHeight*100:0;// Update the height of the fill bar\nbarRef.current.style.height=`${Math.min(pct,100)}%`;};window.addEventListener(\"scroll\",onScroll,{passive:true});onScroll()// Initial check\n;return()=>{window.removeEventListener(\"scroll\",onScroll);const el=document.getElementById(\"custom-scrollbar-hide\");if(el)el.remove();};},[]);return /*#__PURE__*/_jsx(_Fragment,{children:/*#__PURE__*/_jsx(\"div\",{style:{position:\"fixed\",top:0,right:0,width:4,height:\"100vh\",background:\"rgba(255,255,255,0.05)\",zIndex:99997,pointerEvents:\"none\"},children:/*#__PURE__*/_jsx(\"div\",{ref:barRef,style:{width:\"100%\",height:\"0%\",background:\"linear-gradient(180deg, #FF4500 0%, #FF8C00 50%, #FFD700 100%)\",borderRadius:2,transition:\"height 0.1s linear\",boxShadow:\"0 0 8px rgba(255,69,0,0.6)\"}})})});}// Allows you to see the component in the Framer UI\naddPropertyControls(CustomScrollbar,{});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CustomScrollbar\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./REDSCROLL.map"],"mappings":"+LAA6I,SAAwB,GAAiB,CAAC,IAAM,EAAOA,EAAO,KAAK,CAOlE,OAPmE,MAAc,CAC/N,IAAM,EAAM,SAAS,cAAc,QAAQ,CAAC,EAAM,GAAG,wBAAwB,EAAM,YAAY;;;UAGrF,SAAS,KAAK,YAAY,EAAM,CAAC,IAAM,MAAa,CAAC,GAAG,CAAC,EAAO,QAAQ,OAClF,IAAM,EAAU,EAAO,QAAc,EAAU,SAAS,gBAAgB,aAAa,EAAO,YAAkB,EAAI,EAAU,EAAE,EAAU,EAAU,IAAI,EACtJ,EAAO,QAAQ,MAAM,OAAO,GAAG,KAAK,IAAI,EAAI,IAAI,CAAC,IAChD,OADqD,EAAO,iBAAiB,SAAS,EAAS,CAAC,QAAQ,GAAK,CAAC,CAAC,GAAU,KAC/G,CAAC,EAAO,oBAAoB,SAAS,EAAS,CAAC,IAAM,EAAG,SAAS,eAAe,wBAAwB,CAAI,GAAG,EAAG,QAAQ,GAAK,EAAE,CAAC,CAAqB,EAAKC,EAAU,CAAC,SAAsB,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,QAAQ,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,QAAQ,WAAW,yBAAyB,OAAO,MAAM,cAAc,OAAO,CAAC,SAAsB,EAAK,MAAM,CAAC,IAAI,EAAO,MAAM,CAAC,MAAM,OAAO,OAAO,KAAK,WAAW,iEAAiE,aAAa,EAAE,WAAW,qBAAqB,UAAU,6BAA6B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,sBAP5gB,IAAoC,IAAwC,CAQ7I,EAAoB,EAAgB,EAAE,CAAC"}