(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", "../Pallette/Shape", "./themes"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.StatusStyled = 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 Shape_1 = require("../Pallette/Shape");
    var themes_2 = require("./themes");
    var COMPONENT_NAME = "status";
    exports.StatusStyled = styled_components_1.default.div.attrs(function (props) { return ({
        theme: (0, getTheme_1.getTheme)({
            theme: props.theme,
            defaultTheme: themes_2.defaultThemeStatus,
            componentName: COMPONENT_NAME
        })
    }); })(templateObject_4 || (templateObject_4 = (0, tslib_1.__makeTemplateObject)(["\n  ", ";\n\n  ", ";\n\n  ", ";\n\n  display: flex;\n  position: relative;\n  align-items: center;\n  width: max-content;\n  border-radius: ", ";\n  font-size: 16px;\n  gap: 13px;\n  padding: 4px 12px 4px 12px;\n  height: 28px;\n\n  .status__icon {\n    color: unset;\n  }\n"], ["\n  ", ";\n\n  ", ";\n\n  ", ";\n\n  display: flex;\n  position: relative;\n  align-items: center;\n  width: max-content;\n  border-radius: ", ";\n  font-size: 16px;\n  gap: 13px;\n  padding: 4px 12px 4px 12px;\n  height: 28px;\n\n  .status__icon {\n    color: unset;\n  }\n"])), function (_a) {
        var theme = _a.theme, status = _a.status, isFilled = _a.isFilled;
        return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = (0, tslib_1.__makeTemplateObject)(["\n      color: ", ";\n    "], ["\n      color: ", ";\n    "])), isFilled
            ? theme.components[COMPONENT_NAME]["color" + (status.charAt(0).toUpperCase() + status.slice(1)) + "Filled"]
            : theme.components[COMPONENT_NAME]["color" + (status.charAt(0).toUpperCase() + status.slice(1))]);
    }, function (_a) {
        var theme = _a.theme, status = _a.status, isFilled = _a.isFilled;
        return !isFilled && (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = (0, tslib_1.__makeTemplateObject)(["\n      border: 1px solid\n        ", ";\n    "], ["\n      border: 1px solid\n        ", ";\n    "])), theme.components[COMPONENT_NAME]["borderColor" + (status.charAt(0).toUpperCase() + status.slice(1))]);
    }, function (_a) {
        var isFilled = _a.isFilled, theme = _a.theme, status = _a.status;
        return isFilled && (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = (0, tslib_1.__makeTemplateObject)(["\n      background-color: ", ";\n      border: none;\n    "], ["\n      background-color: ", ";\n      border: none;\n    "])), theme.components[COMPONENT_NAME]["background" + (status.charAt(0).toUpperCase() + status.slice(1))]);
    }, Shape_1.Shape.borderRadiusDefault);
    exports.StatusStyled.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
});
