(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports", "tslib", "styled-components", "../Pallette/themes", "../utils/theme/getTheme", "./theme"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var tslib_1 = require("tslib");
    var styled_components_1 = require("styled-components");
    var themes_1 = require("../Pallette/themes");
    var getTheme_1 = require("../utils/theme/getTheme");
    var theme_1 = require("./theme");
    var COMPONENT_NAME = "scroll";
    var ScrollStyle = (0, styled_components_1.createGlobalStyle)(templateObject_2 || (templateObject_2 = (0, tslib_1.__makeTemplateObject)(["\n  ::-webkit-scrollbar {\n    background-color: transparent;\n    width: 12px;\n    height: 12px;\n    z-index: 999999;\n  }\n\n  ::-webkit-scrollbar-track {\n    background-color: transparent;\n    border-radius: 50%;\n  }\n\n  ::-webkit-scrollbar-track:hover {\n    background-color: transparent;\n  }\n\n  ::-webkit-scrollbar-track-piece {\n    background-color: transparent;\n  }\n\n  ::-webkit-scrollbar-corner {\n    background: transparent;\n  }\n  \n  ", "\n"], ["\n  ::-webkit-scrollbar {\n    background-color: transparent;\n    width: 12px;\n    height: 12px;\n    z-index: 999999;\n  }\n\n  ::-webkit-scrollbar-track {\n    background-color: transparent;\n    border-radius: 50%;\n  }\n\n  ::-webkit-scrollbar-track:hover {\n    background-color: transparent;\n  }\n\n  ::-webkit-scrollbar-track-piece {\n    background-color: transparent;\n  }\n\n  ::-webkit-scrollbar-corner {\n    background: transparent;\n  }\n  \n  ", "\n"])), function (props) {
        var theme = (0, getTheme_1.getTheme)({
            theme: props.theme,
            componentName: COMPONENT_NAME,
            defaultTheme: theme_1.defaultTheme
        });
        return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = (0, tslib_1.__makeTemplateObject)(["\n      ::-webkit-scrollbar-thumb {\n        background-color: ", ";\n        border: 4px solid transparent;\n        background-clip: padding-box;\n        border-radius: 8px;\n\n        &:hover {\n          background-color: ", ";\n        }\n\n        &:active {\n          background-color: ", ";\n        }\n\n        &:disabled {\n          background-color: ", ";\n        }\n      }\n    "], ["\n      ::-webkit-scrollbar-thumb {\n        background-color: ", ";\n        border: 4px solid transparent;\n        background-clip: padding-box;\n        border-radius: 8px;\n\n        &:hover {\n          background-color: ", ";\n        }\n\n        &:active {\n          background-color: ", ";\n        }\n\n        &:disabled {\n          background-color: ", ";\n        }\n      }\n    "])), theme.components.scroll.background, theme.components.scroll.backgroundHover, theme.components.scroll.backgroundActive, theme.components.scroll.backgroundDisabled);
    });
    ScrollStyle.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    exports.default = ScrollStyle;
    var templateObject_1, templateObject_2;
});
