{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/6wDIcFAeMHxu8ZpmDcnZ/BbDpWuFrtYMx0cCp4SMP/Scroll_bar.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect}from\"react\";const scrollbarWidth=8;const scrollbarBorderRadius=100;const scrollbarBackgroundColor=\"#e6e6e6\";const thumbBorderRadius=100;const thumbColor=\"#c4c4c4\";const hoverColor=\"#858585\";const focusColor=\"#787878\";export function customScrollbar(Component){return props=>{useEffect(()=>{const styleTag=document.createElement(\"style\");styleTag.innerHTML=`\n                /* Reserve space for scrollbar to prevent layout shift */\n                html {\n                    scrollbar-gutter: stable; /* Reserves space for the scrollbar */\n                }\n\n                /* Scrollbar Styles */\n                ::-webkit-scrollbar {\n                    width: ${scrollbarWidth}px; /* Custom scrollbar width */\n                }\n\n                ::-webkit-scrollbar-track {\n                    background: ${scrollbarBackgroundColor};\n                    border-radius: ${scrollbarBorderRadius}px;\n                }\n\n                ::-webkit-scrollbar-thumb {\n                    background-color: ${thumbColor};\n                    border-radius: ${thumbBorderRadius}px;\n                }\n\n                ::-webkit-scrollbar-thumb:hover {\n                    background-color: ${hoverColor};\n                }\n\n                ::-webkit-scrollbar-thumb:active {\n                    background-color: ${focusColor};\n                }\n            `;document.head.appendChild(styleTag);return()=>{document.head.removeChild(styleTag);};},[]);return /*#__PURE__*/_jsx(Component,{...props});};}customScrollbar.defaultProps={};addPropertyControls(customScrollbar,{thumbColor:{title:\"Thumb Color\",type:ControlType.Color,defaultValue:thumbColor},hoverColor:{title:\"Hover Color\",type:ControlType.Color,defaultValue:hoverColor},focusColor:{title:\"Focus Color\",type:ControlType.Color,defaultValue:focusColor},scrollbarWidth:{title:\"Scrollbar Width\",type:ControlType.Number,defaultValue:scrollbarWidth}});\nexport const __FramerMetadata__ = {\"exports\":{\"customScrollbar\":{\"type\":\"reactHoc\",\"name\":\"customScrollbar\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Scroll_bar.map"],
  "mappings": "8DAA4H,IAAMA,EAAe,EAAQC,EAAsB,IAAUC,EAAyB,UAAgBC,EAAkB,IAAUC,EAAW,UAAgBC,EAAW,UAAgBC,EAAW,UAAiB,SAASC,EAAgBC,EAAU,CAAC,OAAOC,IAAQC,EAAU,IAAI,CAAC,IAAMC,EAAS,SAAS,cAAc,OAAO,EAAE,OAAAA,EAAS,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAQvbX,CAAc;AAAA;AAAA;AAAA;AAAA,kCAITE,CAAwB;AAAA,qCACrBD,CAAqB;AAAA;AAAA;AAAA;AAAA,wCAIlBG,CAAU;AAAA,qCACbD,CAAiB;AAAA;AAAA;AAAA;AAAA,wCAIdE,CAAU;AAAA;AAAA;AAAA;AAAA,wCAIVC,CAAU;AAAA;AAAA,cAEpC,SAAS,KAAK,YAAYK,CAAQ,EAAQ,IAAI,CAAC,SAAS,KAAK,YAAYA,CAAQ,CAAE,CAAE,EAAE,CAAC,CAAC,EAAsBC,EAAKJ,EAAU,CAAC,GAAGC,CAAK,CAAC,EAAI,CAACF,EAAgB,aAAa,CAAC,EAAEM,EAAoBN,EAAgB,CAAC,WAAW,CAAC,MAAM,cAAc,KAAKO,EAAY,MAAM,aAAaV,CAAU,EAAE,WAAW,CAAC,MAAM,cAAc,KAAKU,EAAY,MAAM,aAAaT,CAAU,EAAE,WAAW,CAAC,MAAM,cAAc,KAAKS,EAAY,MAAM,aAAaR,CAAU,EAAE,eAAe,CAAC,MAAM,kBAAkB,KAAKQ,EAAY,OAAO,aAAad,CAAc,CAAC,CAAC",
  "names": ["scrollbarWidth", "scrollbarBorderRadius", "scrollbarBackgroundColor", "thumbBorderRadius", "thumbColor", "hoverColor", "focusColor", "customScrollbar", "Component", "props", "ue", "styleTag", "p", "addPropertyControls", "ControlType"]
}
