(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", "../typography/P2", "../Pallette/themes", "../utils/theme/getTheme", "../InputBase/themes", "../utils/defineResponsibleSize", "./components/InputDate"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.Error = exports.StyledInputDate = exports.CalendarWrapper = exports.InputDateWrapper = exports.DatePickerWrapper = void 0;
    var tslib_1 = require("tslib");
    var styled_components_1 = (0, tslib_1.__importDefault)(require("styled-components"));
    var P2_1 = (0, tslib_1.__importDefault)(require("../typography/P2"));
    var themes_1 = require("../Pallette/themes");
    var getTheme_1 = require("../utils/theme/getTheme");
    var themes_2 = require("../InputBase/themes");
    var defineResponsibleSize_1 = require("../utils/defineResponsibleSize");
    var InputDate_1 = (0, tslib_1.__importDefault)(require("./components/InputDate"));
    exports.DatePickerWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = (0, tslib_1.__makeTemplateObject)(["\n  position: relative;\n  display: block;\n  ", ";\n"], ["\n  position: relative;\n  display: block;\n  ", ";\n"])), function (_a) {
        var width = _a.width;
        return (0, defineResponsibleSize_1.defineResponsibleWidth)(width);
    });
    exports.InputDateWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = (0, tslib_1.__makeTemplateObject)(["\n  display: block;\n"], ["\n  display: block;\n"])));
    exports.InputDateWrapper.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    exports.CalendarWrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = (0, tslib_1.__makeTemplateObject)(["\n  position: absolute;\n  left: 0;\n  margin-top: 4px;\n  z-index: 3;\n"], ["\n  position: absolute;\n  left: 0;\n  margin-top: 4px;\n  z-index: 3;\n"])));
    exports.StyledInputDate = (0, styled_components_1.default)(InputDate_1.default)(templateObject_4 || (templateObject_4 = (0, tslib_1.__makeTemplateObject)(["\n  pointer-events: ", ";\n"], ["\n  pointer-events: ", ";\n"])), function (p) { return (p.isReadOnly || p.isDisabled ? "none" : "auto"); });
    exports.StyledInputDate.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    exports.Error = (0, styled_components_1.default)(P2_1.default).attrs(function (props) { return ({
        theme: (0, getTheme_1.getTheme)({
            theme: props.theme,
            defaultTheme: themes_2.defaultThemeInput,
            componentName: "input"
        })
    }); })(templateObject_5 || (templateObject_5 = (0, tslib_1.__makeTemplateObject)(["\n  display: inline-flex;\n  margin-top: 9px;\n  margin-left: 20px;\n  max-height: max-content;\n  overflow: hidden;\n  ", "\n"], ["\n  display: inline-flex;\n  margin-top: 9px;\n  margin-left: 20px;\n  max-height: max-content;\n  overflow: hidden;\n  ", "\n"])), function (_a) {
        var theme = _a.theme;
        return "\n    color: " + theme.components.input.colorError + ";\n  ";
    });
    exports.Error.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
});
