(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", "../../../InputBase/themes"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.ValueContainerStyle = void 0;
    var tslib_1 = require("tslib");
    var styled_components_1 = (0, tslib_1.__importStar)(require("styled-components"));
    var themes_1 = require("../../../Pallette/themes");
    var getTheme_1 = require("../../../utils/theme/getTheme");
    var themes_2 = require("../../../InputBase/themes");
    exports.ValueContainerStyle = styled_components_1.default.div.attrs(function (props) { return ({
        theme: (0, getTheme_1.getTheme)({
            theme: props.theme,
            componentName: "input",
            defaultTheme: themes_2.defaultThemeInput
        })
    }); })(templateObject_5 || (templateObject_5 = (0, tslib_1.__makeTemplateObject)(["\n  -webkit-overflow-scrolling: touch;\n  align-items: ", ";\n  box-sizing: border-box;\n  display: flex;\n  flex: 1;\n  flex-wrap: nowrap;\n  overflow-x: auto;\n  position: relative;\n\n  ::-webkit-scrollbar {\n    display: none;\n  }\n\n  ", ";\n\n  div:not(:last-child) {\n    margin-right: 4px;\n  }\n\n  input {\n    width: 1px;\n  }\n\n  .text-readonly {\n    color: ", ";\n  }\n\n  ", "\n"], ["\n  -webkit-overflow-scrolling: touch;\n  align-items: ", ";\n  box-sizing: border-box;\n  display: flex;\n  flex: 1;\n  flex-wrap: nowrap;\n  overflow-x: auto;\n  position: relative;\n\n  ::-webkit-scrollbar {\n    display: none;\n  }\n\n  ", ";\n\n  div:not(:last-child) {\n    margin-right: 4px;\n  }\n\n  input {\n    width: 1px;\n  }\n\n  .text-readonly {\n    color: ", ";\n  }\n\n  ", "\n"])), function (_a) {
        var size = _a.size;
        return (size === "l" ? "center" : "end");
    }, function (_a) {
        var isReadOnly = _a.isReadOnly, isDisabled = _a.isDisabled;
        return isReadOnly || isDisabled
            ? (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = (0, tslib_1.__makeTemplateObject)(["\n          margin-right: 16px;\n        "], ["\n          margin-right: 16px;\n        "]))) : (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = (0, tslib_1.__makeTemplateObject)(["\n          margin-right: 19px;\n        "], ["\n          margin-right: 19px;\n        "])));
    }, function (_a) {
        var theme = _a.theme;
        return theme.components.input.colorReadOnly;
    }, 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"
                ? (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = (0, tslib_1.__makeTemplateObject)(["\n          margin-top: 7px;\n        "], ["\n          margin-top: 7px;\n        "]))) : (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = (0, tslib_1.__makeTemplateObject)(["\n          margin-top: 11px;\n        "], ["\n          margin-top: 11px;\n        "]))));
    });
    exports.ValueContainerStyle.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
});
