{"version":3,"file":"Barra_customizada_.FzlsIvTu.mjs","names":["__esmMin","init_npm_react_18_3_1","init_jsx_runtime","c","ce","addPropertyControls","init_framer_Bf4_tcb2","ControlType","ScrollbarCustomizer","props","style","enableScrollbar","scrollbarWidth","borderRadius","trackBackground","thumbBackground","thumbBorderColor","thumbHoverBackground","thumbHoverBorderColor","init_Barra_customizada_"],"sources":["https:/framerusercontent.com/modules/2Z2HiVOzu5RlkwA4jqpb/DlxhqHo10lUqk8kAQ71S/Barra_customizada_.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth auto-prefer-fixed\n * @framerSupportedLayoutHeight auto-prefer-fixed\n *//**\n * @framerDisableUnlink\n */export default function ScrollbarCustomizer(props){const{enableScrollbar,scrollbarWidth,borderRadius,trackBackground,thumbBackground,thumbHoverBackground,thumbBorderColor,thumbHoverBorderColor}=props;useEffect(()=>{const style=document.createElement(\"style\");style.innerHTML=`\n            ::-webkit-scrollbar {\n                width: ${enableScrollbar?scrollbarWidth+\"px\":\"0px\"};\n                border-radius: ${borderRadius}px;\n            }\n            ::-webkit-scrollbar-track {\n                background: ${trackBackground};\n            }\n            ::-webkit-scrollbar-thumb {\n                background: ${thumbBackground};\n                border: 3px solid ${thumbBorderColor};\n                border-radius: ${borderRadius}px;\n            }\n            ::-webkit-scrollbar-thumb:hover {\n                background: ${thumbHoverBackground};\n                border: 3px solid ${thumbHoverBorderColor};\n                border-radius: ${borderRadius}px;\n            }\n            /* Estilos para Firefox */\n            * {\n                scrollbar-width: ${enableScrollbar?scrollbarWidth+\"px\":\"none\"};\n                scrollbar-color: ${thumbBackground} ${trackBackground};\n            }\n            *::-webkit-scrollbar {\n                width: ${enableScrollbar?scrollbarWidth+\"px\":\"0px\"};\n                border-radius: ${borderRadius}px;\n            }\n            *::-webkit-scrollbar-track {\n                background: ${trackBackground};\n            }\n            *::-webkit-scrollbar-thumb {\n                background: ${thumbBackground};\n                border: 3px solid ${thumbBorderColor};\n                border-radius: ${borderRadius}px;\n            }\n            *::-webkit-scrollbar-thumb:hover {\n                background: ${thumbHoverBackground};\n                border: 3px solid ${thumbHoverBorderColor};\n                border-radius: ${borderRadius}px;\n            }\n        `;document.head.appendChild(style);// Função de limpeza para remover os estilos quando o componente for desmontado\nreturn()=>{document.head.removeChild(style);};},[enableScrollbar,scrollbarWidth,borderRadius,trackBackground,thumbBackground,thumbHoverBackground,thumbBorderColor,thumbHoverBorderColor]);return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",backgroundColor:\"transparent\"},children:\"Scrollbar Customizer\"});}// Adicionando propriedades customizáveis no painel do Framer\naddPropertyControls(ScrollbarCustomizer,{enableScrollbar:{type:ControlType.Boolean,title:\"Enable Scrollbar\",defaultValue:true,description:\"Enable or disable the scrollbar / Habilitar ou desabilitar a barra de rolagem\"},scrollbarWidth:{type:ControlType.Number,title:\"Width\",defaultValue:14,min:0,unit:\"px\",description:\"Set the width of the scrollbar / Definir a largura da barra de rolagem\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:100,min:0,unit:\"px\",description:\"Set the border radius of the scrollbar / Definir o raio da borda da barra de rolagem\"},trackBackground:{type:ControlType.Color,title:\"Track Background\",defaultValue:\"#FFFFFF\",description:\"Set the background color of the scrollbar track / Definir a cor de fundo do track da barra de rolagem\"},thumbBackground:{type:ControlType.Color,title:\"Thumb Background\",defaultValue:\"#39B49E\",description:\"Set the background color of the scrollbar thumb / Definir a cor de fundo do thumb da barra de rolagem\"},thumbHoverBackground:{type:ControlType.Color,title:\"Thumb Hover Background\",defaultValue:\"#285888\",description:\"Set the hover background color of the scrollbar thumb / Definir a cor de fundo hover do thumb da barra de rolagem\"},thumbBorderColor:{type:ControlType.Color,title:\"Thumb Border Color\",defaultValue:\"#FFFFFF\",description:\"Set the border color of the scrollbar thumb / Definir a cor da borda do thumb da barra de rolagem\"},thumbHoverBorderColor:{type:ControlType.Color,title:\"Thumb Hover Border Color\",defaultValue:\"#FFFFFF\",description:\"Set the hover border color of the scrollbar thumb / Definir a cor hover da borda do thumb da barra de rolagem\"},codeBy:{type:ControlType.String,title:\" \",defaultValue:\"Code by @omatusaelhorch\",readOnly:true,description:\"This component was created by @omatusaelhorch / Este componente foi criado por @omatusaelhorch.\"}})/**\n * Code by @omatusaelhorch\n */;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ScrollbarCustomizer\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto-prefer-fixed\",\"framerDisableUnlink\":\"\",\"framerSupportedLayoutHeight\":\"auto-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Barra_customizada_.map"],"mappings":"A,0KAKG,SAAwBQ,EAAoB,EAAM,CAAC,GAAK,CAAC,kBAAgB,iBAAe,eAAa,kBAAgB,kBAAgB,uBAAqB,mBAAiB,yBAAuBC,EAyCV,OAzCgBL,MAAc,CAAC,IAAMM,EAAM,SAAS,cAAc,OAAO,EAyCpQ,MAzCsQ,GAAM,UAAU;;yBAE7PC,EAAgBC,EAAe,KAAK,MAAM;iCAClCC,EAAa;;;8BAGhBC,EAAgB;;;8BAGhBC,EAAgB;oCACVC,EAAiB;iCACpBH,EAAa;;;8BAGhBI,EAAqB;oCACfC,EAAsB;iCACzBL,EAAa;;;;mCAIXF,EAAgBC,EAAe,KAAK,OAAO;mCAC3CG,EAAgB,GAAGD,EAAgB;;;yBAG7CH,EAAgBC,EAAe,KAAK,MAAM;iCAClCC,EAAa;;;8BAGhBC,EAAgB;;;8BAGhBC,EAAgB;oCACVC,EAAiB;iCACpBH,EAAa;;;8BAGhBI,EAAqB;oCACfC,EAAsB;iCACzBL,EAAa;;UAEpC,SAAS,KAAK,YAAYH,CAAK,MAC/B,CAAC,SAAS,KAAK,YAAYA,CAAK,CAAE,CAA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