{"version":3,"file":"CustomScrollBar.DF6qlzSp.mjs","names":[],"sources":["https:/framerusercontent.com/modules/mAkF9jIBqwaBtCG3sXef/gvczdg4GEKR7JBpoDyXb/CustomScrollBar.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * CustomScrollbar\n * ─────────────────────────────────────────────\n * Drop this component once onto any page (or your\n * root layout). It injects global CSS that replaces\n * the default browser scrollbar with your brand colours.\n * The component renders nothing visible itself.\n */export default function CustomScrollbar(props){const{thumbColor,trackColor,scrollbarWidth,thumbRadius,thumbHoverColor}=props;const thumb=thumbColor||\"#E3D9C4\";const track=trackColor||\"#1A2D2B\";const width=scrollbarWidth||6;const radius=thumbRadius||4;const thumbHover=thumbHoverColor||\"#f0e8d5\";useEffect(()=>{if(typeof document===\"undefined\")return;const styleId=\"barter-custom-scrollbar\";let existing=document.getElementById(styleId);if(existing)existing.remove();const style=document.createElement(\"style\");style.id=styleId;style.textContent=`\n            /* ── Webkit (Chrome, Safari, Edge) ── */\n            ::-webkit-scrollbar {\n                width: ${width}px;\n                height: ${width}px;\n            }\n\n            ::-webkit-scrollbar-track {\n                background: ${track};\n                border-radius: ${radius}px;\n            }\n\n            ::-webkit-scrollbar-thumb {\n                background: ${thumb};\n                border-radius: ${radius}px;\n                border: 2px solid ${track};\n                transition: background 0.2s ease;\n            }\n\n            ::-webkit-scrollbar-thumb:hover {\n                background: ${thumbHover};\n            }\n\n            ::-webkit-scrollbar-corner {\n                background: ${track};\n            }\n\n            /* ── Firefox ── */\n            * {\n                scrollbar-width: thin;\n                scrollbar-color: ${thumb} ${track};\n            }\n        `;document.head.appendChild(style);return()=>{const el=document.getElementById(styleId);if(el)el.remove();};},[thumb,track,width,radius,thumbHover]);// Framer requires a valid JSX element — render an invisible zero-size div\nreturn /*#__PURE__*/_jsx(\"div\",{style:{position:\"fixed\",width:0,height:0,overflow:\"hidden\",pointerEvents:\"none\",zIndex:-1}});}addPropertyControls(CustomScrollbar,{thumbColor:{type:ControlType.Color,title:\"Thumb Colour\",defaultValue:\"#E3D9C4\",description:\"The draggable scrollbar handle\"},thumbHoverColor:{type:ControlType.Color,title:\"Thumb Hover\",defaultValue:\"#f0e8d5\",description:\"Thumb colour on hover\"},trackColor:{type:ControlType.Color,title:\"Track Colour\",defaultValue:\"#1A2D2B\",description:\"The scrollbar rail/background\"},scrollbarWidth:{type:ControlType.Number,title:\"Width (px)\",defaultValue:6,min:2,max:20,step:1,description:\"Thickness of the scrollbar\"},thumbRadius:{type:ControlType.Number,title:\"Corner Radius\",defaultValue:4,min:0,max:20,step:1,description:\"Roundness of the thumb and track\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CustomScrollbar\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CustomScrollBar.map"],"mappings":"0KAOG,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,aAAW,aAAW,iBAAe,cAAY,mBAAiB,EAAY,EAAM,GAAY,UAAgB,EAAM,GAAY,UAAgB,EAAM,GAAgB,EAAQ,EAAO,GAAa,EAAQ,EAAW,GAAiB,UAiChS,OAjC0S,MAAc,CAAC,GAAG,OAAO,SAAW,IAAY,OAAO,IAAM,EAAQ,0BAA8B,EAAS,SAAS,eAAe,EAAQ,CAAI,GAAS,EAAS,QAAQ,CAAC,IAAM,EAAM,SAAS,cAAc,QAAQ,CAgCrd,MAhCsd,GAAM,GAAG,EAAQ,EAAM,YAAY;;;yBAG3gB,EAAM;0BACL,EAAM;;;;8BAIF,EAAM;iCACH,EAAO;;;;8BAIV,EAAM;iCACH,EAAO;oCACJ,EAAM;;;;;8BAKZ,EAAW;;;;8BAIX,EAAM;;;;;;mCAMD,EAAM,GAAG,EAAM;;UAExC,SAAS,KAAK,YAAY,EAAM,KAAW,CAAC,IAAM,EAAG,SAA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