{"version":3,"file":"Cusmtom_scroll.DtNnt2hn.mjs","names":[],"sources":["https:/framerusercontent.com/modules/NlxIPb507uLnmoK6uSzs/lU4phoR2XuJpmOvYVkhE/Cusmtom_scroll.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";const scrollbarWidth=12;const scrollbarBorderRadius=20;const scrollbarBackgroundColor=\"#000000\";const thumbBorderRadius=20;const thumbColor=\"#7b7b7b\";const hoverColor=\"#7b7b7b\";const focusColor=\"#7b7b7b\";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                }\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            `;document.head.appendChild(styleTag);return()=>{document.head.removeChild(styleTag);};},[scrollbarWidth,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=./Cusmtom_scroll.map"],"mappings":"2JAAoR,SAAgB,EAAgB,EAAU,CAAC,MAAO,CAAA,IAAQ,EAAU,IAAI,CAAC,IAAM,EAAS,SAAS,cAAc,QAAQ,CAqBzV,OArB0V,EAAS,WAAW;;;6BAGnY,EAAe;;;kCAGV,EAAyB;;qCAEtB,EAAsB;;;wCAGnB,EAAW;;qCAEd,EAAkB;;;wCAGf,EAAW;;;wCAGX,EAAW;;cAErC,SAAS,KAAK,YAAY,EAAS,CAAO,IAAI,CAAC,SAAS,KAAK,YAAY,EAAS,AAAE,CAAE,EAAC,CAAC,EAAe,EAAW,EAAyB,EAAsB,EAAkB,EAAW,CAAW,EAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,CAAM,EAAC,CAAI,4BArBzC,AAAlO,GAA2C,CAA4M,GAA6B,CAAnO,EAAe,GAAS,EAAsB,GAAS,EAAyB,UAAgB,EAAkB,GAAS,EAAW,UAAgB,EAAW,UAAgB,EAAW"}