{"version":3,"file":"Custom_Scroll_Press.Cp6nC9GY.mjs","names":[],"sources":["https:/framerusercontent.com/modules/MpxFjeQ996Nhl8WB6O4G/7wnR6pWfJHpBmeH2LrU8/Custom_Scroll_Press.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";const scrollbarWidth=10;const scrollbarBorderRadius=10;const scrollbarBackgroundColor=\"#ebebeb\";const thumbBorderRadius=10;const thumbColor=\"#813dff\";const hoverColor=\"#7866ff\";const focusColor=\"#a538ff\";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=./Custom_Scroll_Press.map"],"mappings":"kHAAoR,SAAgB,EAAgB,EAAU,CAAC,MAAO,KAAQ,MAAc,CAAC,IAAM,EAAS,SAAS,cAAc,OAAO,EAqBxV,MArB0V,GAAS,UAAU;;;6BAGlY,EAAe;;;kCAGV,EAAyB;;qCAEtB,EAAsB;;;wCAGnB,EAAW;;qCAEd,EAAkB;;;wCAGf,EAAW;;;wCAGX,EAAW;;cAErC,SAAS,KAAK,YAAY,CAAQ,MAAY,CAAC,SAAS,KAAK,YAAY,CAAQ,CAAE,CAAE,EAAE,CAAC,EAAe,EAAW,EAAyB,EAAsB,EAAkB,EAAW,CAAU,CAAC,EAAsB,EAAK,EAAU,CAAC,GAAG,CAAK,CAAC,EAAI,+BArBhO,IAAyO,EAAlO,EAAe,GAAS,EAAsB,GAAS,EAAyB,UAAgB,EAAkB,GAAS,EAAW,UAAgB,EAAW,UAAgB,EAAW"}