(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", "../typography/P2", "../typography/H", "../utils/theme/getTheme", "../utils/defineResponsibleSize", "./themes"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.TextStyled = exports.HeaderStyled = exports.IconBox = exports.EmptyStateWrapper = 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 P2_1 = (0, tslib_1.__importDefault)(require("../typography/P2"));
    var H_1 = (0, tslib_1.__importDefault)(require("../typography/H"));
    var getTheme_1 = require("../utils/theme/getTheme");
    var defineResponsibleSize_1 = require("../utils/defineResponsibleSize");
    var themes_2 = require("./themes");
    var COMPONENT_NAME = "emptyState";
    exports.EmptyStateWrapper = styled_components_1.default.div.attrs(function (props) { return ({
        theme: (0, getTheme_1.getTheme)({
            theme: props.theme,
            componentName: COMPONENT_NAME,
            defaultTheme: themes_2.defaultThemeEmptyState
        })
    }); })(templateObject_1 || (templateObject_1 = (0, tslib_1.__makeTemplateObject)(["\n  max-width: 100%;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  flex-direction: column;\n  padding: 24px;\n  ", ";\n"], ["\n  max-width: 100%;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  flex-direction: column;\n  padding: 24px;\n  ", ";\n"])), function (_a) {
        var width = _a.width;
        return (0, defineResponsibleSize_1.defineResponsibleWidth)(width);
    });
    exports.EmptyStateWrapper.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    exports.IconBox = styled_components_1.default.div.attrs(function (props) { return ({
        theme: (0, getTheme_1.getTheme)({
            theme: props.theme,
            componentName: COMPONENT_NAME,
            defaultTheme: themes_2.defaultThemeEmptyState
        })
    }); })(templateObject_3 || (templateObject_3 = (0, tslib_1.__makeTemplateObject)(["\n  ", "\n  display: flex;\n  width: 48px;\n  height: 48px;\n  align-items: center;\n  justify-content: center;\n  border-radius: 50%;\n  margin-bottom: 24px;\n"], ["\n  ", "\n  display: flex;\n  width: 48px;\n  height: 48px;\n  align-items: center;\n  justify-content: center;\n  border-radius: 50%;\n  margin-bottom: 24px;\n"])), function (_a) {
        var theme = _a.theme;
        return (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = (0, tslib_1.__makeTemplateObject)(["\n      background: ", ";\n      svg {\n        width: 32px;\n        height: 32px;\n      }\n    "], ["\n      background: ", ";\n      svg {\n        width: 32px;\n        height: 32px;\n      }\n    "])), theme.components.emptyState.backgroundIcon);
    });
    exports.IconBox.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    exports.HeaderStyled = (0, styled_components_1.default)(H_1.default).attrs(function (props) { return ({
        theme: (0, getTheme_1.getTheme)({
            theme: props.theme,
            componentName: COMPONENT_NAME,
            defaultTheme: themes_2.defaultThemeEmptyState
        })
    }); })(templateObject_5 || (templateObject_5 = (0, tslib_1.__makeTemplateObject)(["\n  ", ";\n  padding: 4px;\n  line-height: 24px;\n  margin-bottom: 8px;\n"], ["\n  ", ";\n  padding: 4px;\n  line-height: 24px;\n  margin-bottom: 8px;\n"])), function (_a) {
        var theme = _a.theme;
        return (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = (0, tslib_1.__makeTemplateObject)(["\n    color: ", ";\n  "], ["\n    color: ", ";\n  "])), theme.components.emptyState.headerColor);
    });
    exports.HeaderStyled.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    exports.TextStyled = (0, styled_components_1.default)(P2_1.default).attrs(function (props) { return ({
        theme: (0, getTheme_1.getTheme)({
            theme: props.theme,
            componentName: COMPONENT_NAME,
            defaultTheme: themes_2.defaultThemeEmptyState
        })
    }); })(templateObject_7 || (templateObject_7 = (0, tslib_1.__makeTemplateObject)(["\n  ", ";\n  padding: 4px;\n  margin-bottom: 24px;\n  line-height: 24px;\n"], ["\n  ", ";\n  padding: 4px;\n  margin-bottom: 24px;\n  line-height: 24px;\n"])), function (_a) {
        var theme = _a.theme;
        return (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = (0, tslib_1.__makeTemplateObject)(["\n    font-weight: ", ";\n    font-size: ", ";\n    font-family: ", ";\n    color: ", ";\n  "], ["\n    font-weight: ", ";\n    font-size: ", ";\n    font-family: ", ";\n    color: ", ";\n  "])), theme.typography.fontWeightRegular, theme.typography.fontSizeM, theme.typography.fontFamily, theme.components.emptyState.textColor);
    });
    exports.TextStyled.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
});
