import { __makeTemplateObject } from "tslib";
import styled, { css } from "styled-components";
import InputBase from "../../../InputBase";
import { IconStyled } from "../../../InputBase/style";
export var SelectContainerStyled = styled(InputBase)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n  min-width: 150px;\n  padding-right: 16px;\n\n  .select__placeholder {\n    ", "\n  }\n\n  ", "\n\n  .avatar_icon {\n    svg {\n      width: 7.5px;\n    }\n  }\n\n  ", " {\n    margin-left: 2px;\n  }\n\n  ", ";\n\n  ", ";\n\n  ", "\n"], ["\n  min-width: 150px;\n  padding-right: 16px;\n\n  .select__placeholder {\n    ", "\n  }\n\n  ", "\n\n  .avatar_icon {\n    svg {\n      width: 7.5px;\n    }\n  }\n\n  ", " {\n    margin-left: 2px;\n  }\n\n  ", ";\n\n  ", ";\n\n  ", "\n"])), function (_a) {
    var isFocused = _a.isFocused, isHasValue = _a.isHasValue;
    return (isFocused || isHasValue) && css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n        top: -2px;\n      "], ["\n        top: -2px;\n      "])));
}, function (_a) {
    var size = _a.size, isFocused = _a.isFocused, isHasValue = _a.isHasValue;
    return size === "m" && css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n      ", " {\n        display: none;\n      }\n      .select__placeholder {\n        left: 20px;\n      }\n      ", "\n    "], ["\n      ", " {\n        display: none;\n      }\n      .select__placeholder {\n        left: 20px;\n      }\n      ", "\n    "])), IconStyled, (isFocused || isHasValue) && css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n        .react-select__input-container {\n          margin: 0;\n          padding-bottom: 0;\n        }\n      "], ["\n        .react-select__input-container {\n          margin: 0;\n          padding-bottom: 0;\n        }\n      "]))));
}, IconStyled, function (_a) {
    var isFocused = _a.isFocused, isHasValue = _a.isHasValue, isMulti = _a.isMulti, isReadOnly = _a.isReadOnly;
    return (isFocused || isHasValue || isReadOnly) &&
        isMulti && css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n      .select__content {\n        margin-top: 0;\n      }\n    "], ["\n      .select__content {\n        margin-top: 0;\n      }\n    "])));
}, function (_a) {
    var isFocused = _a.isFocused, isHasValue = _a.isHasValue, isMulti = _a.isMulti, isReadOnly = _a.isReadOnly, size = _a.size;
    return (isFocused || isHasValue || isReadOnly) &&
        isMulti &&
        (size === "m"
            ? css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n          padding-left: 16px;\n          ", " {\n            margin-top: 7px;\n          }\n        "], ["\n          padding-left: 16px;\n          ", " {\n            margin-top: 7px;\n          }\n        "])), IconStyled) : css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n          ", " {\n            margin-top: 11px;\n          }\n        "], ["\n          ", " {\n            margin-top: 11px;\n          }\n        "])), IconStyled));
}, function (_a) {
    var isMulti = _a.isMulti;
    return isMulti && css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n      ", " {\n        margin-right: 8px;\n      }\n    "], ["\n      ", " {\n        margin-right: 8px;\n      }\n    "])), IconStyled);
});
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
