(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", "@greenatom/icons", "../../../Pallette/themes", "../../../SelectBase/themes", "../../../utils/theme/getTheme"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.SelectDrawerIcon = exports.SelectDropdownIndicatorStyled = void 0;
    var tslib_1 = require("tslib");
    var styled_components_1 = (0, tslib_1.__importStar)(require("styled-components"));
    var icons_1 = require("@greenatom/icons");
    var themes_1 = require("../../../Pallette/themes");
    var themes_2 = require("../../../SelectBase/themes");
    var getTheme_1 = require("../../../utils/theme/getTheme");
    exports.SelectDropdownIndicatorStyled = styled_components_1.default.div.attrs(function (props) { return ({
        theme: (0, getTheme_1.getTheme)({
            theme: props.theme,
            defaultTheme: themes_2.defaultThemeSelect,
            componentName: "select"
        })
    }); })(templateObject_3 || (templateObject_3 = (0, tslib_1.__makeTemplateObject)(["\n  padding: 6px;\n  display: flex;\n  background: ", ";\n\n  .select-dropdown-icon {\n    color: ", ";\n  }\n\n  border-radius: ", ";\n\n  ", "\n\n  ", "\n"], ["\n  padding: 6px;\n  display: flex;\n  background: ", ";\n\n  .select-dropdown-icon {\n    color: ", ";\n  }\n\n  border-radius: ", ";\n\n  ", "\n\n  ", "\n"])), function (_a) {
        var theme = _a.theme;
        return theme.components.select.backgroundDropdownIndicator;
    }, function (_a) {
        var theme = _a.theme;
        return theme.components.select.iconColorDropdownIndicator;
    }, function (_a) {
        var theme = _a.theme;
        return theme.shape.borderRadiusDefault;
    }, function (_a) {
        var isFocused = _a.isFocused, theme = _a.theme;
        return isFocused && (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = (0, tslib_1.__makeTemplateObject)(["\n      background: ", ";\n      .select-dropdown-icon {\n        svg {\n          color: ", " !important;\n        }\n      }\n    "], ["\n      background: ", ";\n      .select-dropdown-icon {\n        svg {\n          color: ", " !important;\n        }\n      }\n    "])), theme.components.select.backgroundDropdownIndicatorFocused, theme.components.select
            .iconColorDropdownIndicatorFocused);
    }, function (_a) {
        var isDisabled = _a.isDisabled;
        return isDisabled && (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = (0, tslib_1.__makeTemplateObject)(["\n      background: ", ";\n      .select-dropdown-icon {\n        svg {\n          color: ", ";\n        }\n      }\n    "], ["\n      background: ", ";\n      .select-dropdown-icon {\n        svg {\n          color: ", ";\n        }\n      }\n    "])), function (_a) {
            var theme = _a.theme;
            return theme.components.select.backgroundDropdownIndicatorDisabled;
        }, function (_a) {
            var theme = _a.theme;
            return theme.components.select.iconColorDropdownIndicatorDisabled;
        });
    });
    exports.SelectDropdownIndicatorStyled.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    exports.SelectDrawerIcon = (0, styled_components_1.default)(icons_1.IconBrokenMoreSquare).attrs(function (props) { return ({
        theme: (0, getTheme_1.getTheme)({
            theme: props.theme,
            defaultTheme: themes_2.defaultThemeSelect,
            componentName: "select"
        })
    }); })(templateObject_4 || (templateObject_4 = (0, tslib_1.__makeTemplateObject)(["\n  color: ", ";\n"], ["\n  color: ", ";\n"])), function (_a) {
        var theme = _a.theme;
        return theme.components.select.iconColorDropdownIndicator;
    });
    exports.SelectDrawerIcon.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
});
