(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/style-utils", "../../../Pallette/themes", "../../../SelectBase/themes", "../../../utils/theme/getTheme", "../../../SearchBox"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.SearchBoxStyled = exports.MenuItemsWrapper = exports.MenuButtonsWrapper = exports.MenuStyle = void 0;
    var tslib_1 = require("tslib");
    var styled_components_1 = (0, tslib_1.__importStar)(require("styled-components"));
    var style_utils_1 = require("../../../Pallette/style-utils");
    var themes_1 = require("../../../Pallette/themes");
    var themes_2 = require("../../../SelectBase/themes");
    var getTheme_1 = require("../../../utils/theme/getTheme");
    var SearchBox_1 = (0, tslib_1.__importDefault)(require("../../../SearchBox"));
    exports.MenuStyle = 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  position: absolute;\n  width: 100%;\n  top: calc(100% + 8px);\n  left: 0;\n  padding: 16px;\n\n  ", ";\n\n  ", ";\n  border-top: none;\n  box-sizing: border-box;\n  z-index: 5;\n\n  &.select-menu__top {\n    top: auto;\n    bottom: calc(100% + 8px);\n  }\n"], ["\n  position: absolute;\n  width: 100%;\n  top: calc(100% + 8px);\n  left: 0;\n  padding: 16px;\n\n  ", ";\n\n  ", ";\n  border-top: none;\n  box-sizing: border-box;\n  z-index: 5;\n\n  &.select-menu__top {\n    top: auto;\n    bottom: calc(100% + 8px);\n  }\n"])), function (_a) {
        var theme = _a.theme;
        return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = (0, tslib_1.__makeTemplateObject)(["\n    ", ";\n    background-color: ", ";\n    ", ";\n    color: ", ";\n  "], ["\n    ", ";\n    background-color: ", ";\n    ", ";\n    color: ", ";\n  "])), theme.shadows.sp.bottom, theme.components.select.backgroundMenu, style_utils_1.BorderRadius.roundBorder(theme.shape.borderRadiusMedium), theme.components.select.colorMenu);
    }, function (_a) {
        var isError = _a.isError, theme = _a.theme;
        return isError && (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = (0, tslib_1.__makeTemplateObject)(["\n      border-color: ", ";\n    "], ["\n      border-color: ", ";\n    "])), theme.components.select.colorError);
    });
    exports.MenuStyle.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    exports.MenuButtonsWrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = (0, tslib_1.__makeTemplateObject)(["\n  .select-menu__divider {\n    margin-top: 16px;\n    margin-bottom: 16px;\n  }\n"], ["\n  .select-menu__divider {\n    margin-top: 16px;\n    margin-bottom: 16px;\n  }\n"])));
    exports.MenuItemsWrapper = styled_components_1.default.div(templateObject_5 || (templateObject_5 = (0, tslib_1.__makeTemplateObject)(["\n  display: flex;\n  flex-direction: column;\n\n  .react-select__menu-list > label:not(:last-child) {\n    margin-bottom: 16px;\n  }\n"], ["\n  display: flex;\n  flex-direction: column;\n\n  .react-select__menu-list > label:not(:last-child) {\n    margin-bottom: 16px;\n  }\n"])));
    exports.SearchBoxStyled = (0, styled_components_1.default)(SearchBox_1.default)(templateObject_6 || (templateObject_6 = (0, tslib_1.__makeTemplateObject)(["\n  margin-bottom: 16px;\n"], ["\n  margin-bottom: 16px;\n"])));
    var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
});
