(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/style-utils", "../Button", "../Pallette/ZIndex", "./theme"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.ButtonStyled = exports.ActionsWrapper = exports.ContentWrapper = exports.BannerStyled = 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 style_utils_1 = require("../Pallette/style-utils");
    var Button_1 = (0, tslib_1.__importDefault)(require("../Button"));
    var ZIndex_1 = require("../Pallette/ZIndex");
    var theme_1 = require("./theme");
    var COMPONENT_NAME = "banner";
    exports.BannerStyled = styled_components_1.default.div.attrs(function (props) { return ({
        theme: (0, getTheme_1.getTheme)({
            theme: props.theme,
            componentName: COMPONENT_NAME,
            defaultTheme: theme_1.defaultTheme
        })
    }); })(templateObject_2 || (templateObject_2 = (0, tslib_1.__makeTemplateObject)(["\n  display: flex;\n  width: 100%;\n  ", "\n\n  background: ", ";\n  ", "\n  ", ";\n"], ["\n  display: flex;\n  width: 100%;\n  ", "\n\n  background: ", ";\n  ", "\n  ", ";\n"])), function (_a) {
        var type = _a.type;
        return type === "overlay" && (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = (0, tslib_1.__makeTemplateObject)(["\n      position: fixed;\n      top: 0;\n      z-index: ", ";\n    "], ["\n      position: fixed;\n      top: 0;\n      z-index: ", ";\n    "])), ZIndex_1.ZINDEX.tooltip);
    }, function (_a) {
        var theme = _a.theme;
        return theme.components.banner.background;
    }, function (_a) {
        var theme = _a.theme;
        return theme.dividers.secondary.bottom;
    }, style_utils_1.Padding.allSide(6, 10, 4));
    exports.BannerStyled.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    exports.ContentWrapper = styled_components_1.default.div.attrs(function (props) { return ({
        theme: (0, getTheme_1.getTheme)({
            theme: props.theme,
            componentName: COMPONENT_NAME,
            defaultTheme: theme_1.defaultTheme
        })
    }); })(templateObject_3 || (templateObject_3 = (0, tslib_1.__makeTemplateObject)(["\n  display: flex;\n  flex-direction: column;\n  align-items: flex-start;\n  gap: 12px;\n\n  .banner-message {\n    color: ", ";\n  }\n"], ["\n  display: flex;\n  flex-direction: column;\n  align-items: flex-start;\n  gap: 12px;\n\n  .banner-message {\n    color: ", ";\n  }\n"])), function (_a) {
        var theme = _a.theme;
        return theme.components.banner.color;
    });
    exports.ContentWrapper.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    exports.ActionsWrapper = styled_components_1.default.div(templateObject_4 || (templateObject_4 = (0, tslib_1.__makeTemplateObject)(["\n  display: flex;\n  gap: 48px;\n  margin-left: auto;\n"], ["\n  display: flex;\n  gap: 48px;\n  margin-left: auto;\n"])));
    exports.ButtonStyled = (0, styled_components_1.default)(Button_1.default)(templateObject_5 || (templateObject_5 = (0, tslib_1.__makeTemplateObject)(["\n  margin-top: auto;\n  p {\n    margin: 0;\n  }\n"], ["\n  margin-top: auto;\n  p {\n    margin: 0;\n  }\n"])));
    var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
});
