{"version":3,"file":"ScrollColor.CIYH1VRJ.mjs","names":[],"sources":["https:/framerusercontent.com/modules/wLuVsA5vmmuFdbfNnEzh/BfjLZXRz6nsW5PYkyE0a/ScrollColor.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";const scrollbarWidth=5;const scrollbarHeight=0;const scrollbarBorderRadius=6;const scrollbarBackgroundColor=\"#7B7B7B\";const thumbBorderRadius=27;const thumbColor=\"#2A2A2A\";const hoverColor=\"#1C1C1C\";const focusColor=\"#000000\";import{useEffect}from\"react\";export function customScrollbar(Component){return props=>{useEffect(()=>{const styleTag=document.createElement(\"style\");styleTag.innerHTML=`\n                \n                ::-webkit-scrollbar {\n                    width: ${scrollbarWidth}px;\n                    height: ${scrollbarHeight}px;\n                }\n                ::-webkit-scrollbar-track {\n                    background: ${scrollbarBackgroundColor};\n                    padding: 4px;\n                    border-radius: ${scrollbarBorderRadius}px;,\n                }\n                ::-webkit-scrollbar-thumb {\n                    background-color: ${thumbColor};\n                    border: transparent;\n                    border-radius: ${thumbBorderRadius}px;\n                }\n                ::-webkit-scrollbar-thumb:hover {\n                    background-color: ${hoverColor};\n                }\n                ::-webkit-scrollbar-thumb:active {\n                    background-color: ${focusColor};\n                }\n                }\n            `;document.head.appendChild(styleTag);return()=>{document.head.removeChild(styleTag);};},[scrollbarWidth,scrollbarHeight,thumbColor,scrollbarBackgroundColor,scrollbarBorderRadius,thumbBorderRadius,hoverColor,focusColor]);return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"customScrollbar\":{\"type\":\"reactHoc\",\"name\":\"customScrollbar\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ScrollColor.map"],"mappings":"2JAA0S,SAAgB,EAAgB,EAAU,CAAC,MAAO,CAAA,IAAQ,EAAU,IAAI,CAAC,IAAM,EAAS,SAAS,cAAc,QAAQ,CAuB/W,OAvBgX,EAAS,WAAW;;;6BAGzZ,EAAe;8BACd,EAAgB;;;kCAGZ,EAAyB;;qCAEtB,EAAsB;;;wCAGnB,EAAW;;qCAEd,EAAkB;;;wCAGf,EAAW;;;wCAGX,EAAW;;;cAGrC,SAAS,KAAK,YAAY,EAAS,CAAO,IAAI,CAAC,SAAS,KAAK,YAAY,EAAS,AAAE,CAAE,EAAC,CAAC,EAAe,EAAgB,EAAW,EAAyB,EAAsB,EAAkB,EAAW,CAAW,EAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,CAAM,EAAC,CAAI,8BAvBnC,AAAxP,GAA2C,CAAkO,GAA6B,CAAzP,EAAe,EAAQ,EAAgB,EAAQ,EAAsB,EAAQ,EAAyB,UAAgB,EAAkB,GAAS,EAAW,UAAgB,EAAW,UAAgB,EAAW"}