(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", "../../../Pallette/style-utils", "../../themes", "../../../utils/theme/getTheme"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.SnackBarCounterStyled = exports.SnackBarStyled = void 0;
    var tslib_1 = require("tslib");
    var styled_components_1 = (0, tslib_1.__importStar)(require("styled-components"));
    var P2_1 = (0, tslib_1.__importDefault)(require("../../../typography/P2"));
    var themes_1 = require("../../../Pallette/themes");
    var style_utils_1 = require("../../../Pallette/style-utils");
    var themes_2 = require("../../themes");
    var getTheme_1 = require("../../../utils/theme/getTheme");
    var COMPONENT_NAME = "snackBar";
    exports.SnackBarStyled = styled_components_1.default.div.attrs(function (props) { return ({
        theme: (0, getTheme_1.getTheme)({
            theme: props.theme,
            defaultTheme: themes_2.defaultThemeSnackBar,
            componentName: COMPONENT_NAME
        })
    }); })(templateObject_6 || (templateObject_6 = (0, tslib_1.__makeTemplateObject)(["\n  ", ";\n  ", ";\n  ", ";\n  ", ";\n  ", ";\n  ", ";\n  display: flex;\n  align-items: center;\n  pointer-events: all;\n  transition: all 0.3s;\n  height: 48px;\n  .snack-bar__text {\n    word-break: break-all;\n  }\n\n  &.snack-bar-enter,\n  &.snack-bar-exit {\n    opacity: 0;\n    transform: translateY(100%);\n  }\n\n  &.snack-bar-enter-done {\n    opacity: 1;\n    transform: translateY(0);\n  }\n\n  &.snack-bar-exit-active {\n    position: absolute;\n  }\n\n  .action-button {\n    margin-left: auto;\n  }\n"], ["\n  ", ";\n  ", ";\n  ", ";\n  ", ";\n  ", ";\n  ", ";\n  display: flex;\n  align-items: center;\n  pointer-events: all;\n  transition: all 0.3s;\n  height: 48px;\n  .snack-bar__text {\n    word-break: break-all;\n  }\n\n  &.snack-bar-enter,\n  &.snack-bar-exit {\n    opacity: 0;\n    transform: translateY(100%);\n  }\n\n  &.snack-bar-enter-done {\n    opacity: 1;\n    transform: translateY(0);\n  }\n\n  &.snack-bar-exit-active {\n    position: absolute;\n  }\n\n  .action-button {\n    margin-left: auto;\n  }\n"])), function (_a) {
        var theme = _a.theme;
        return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = (0, tslib_1.__makeTemplateObject)(["\n    background: ", ";\n    color: ", ";\n    ", ";\n    ", ";\n  "], ["\n    background: ", ";\n    color: ", ";\n    ", ";\n    ", ";\n  "])), theme.components[COMPONENT_NAME].background, theme.components[COMPONENT_NAME].color, style_utils_1.BorderRadius.roundBorder(theme.shape.borderRadiusMedium), theme.shadows.sp.bottom);
    }, style_utils_1.Padding.allSide(3, 5), style_utils_1.MEDIA.desktopXl(templateObject_2 || (templateObject_2 = (0, tslib_1.__makeTemplateObject)(["width: 1290px"], ["width: 1290px"]))), style_utils_1.MEDIA.desktopL(templateObject_3 || (templateObject_3 = (0, tslib_1.__makeTemplateObject)(["width: 960px"], ["width: 960px"]))), style_utils_1.MEDIA.desktopM(templateObject_4 || (templateObject_4 = (0, tslib_1.__makeTemplateObject)(["width: 678px"], ["width: 678px"]))), style_utils_1.MEDIA.mobile(templateObject_5 || (templateObject_5 = (0, tslib_1.__makeTemplateObject)(["width: calc(100vw - 48px)"], ["width: calc(100vw - 48px)"]))));
    exports.SnackBarStyled.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    exports.SnackBarCounterStyled = (0, styled_components_1.default)(P2_1.default).attrs(function (props) { return ({
        as: "div",
        type: "corvus",
        theme: (0, getTheme_1.getTheme)({
            theme: props.theme,
            defaultTheme: themes_2.defaultThemeSnackBar,
            componentName: COMPONENT_NAME
        })
    }); })(templateObject_8 || (templateObject_8 = (0, tslib_1.__makeTemplateObject)(["\n  position: absolute;\n  width: 30px;\n  height: 32px;\n  right: -15px;\n  top: -16px;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n\n  ", "\n"], ["\n  position: absolute;\n  width: 30px;\n  height: 32px;\n  right: -15px;\n  top: -16px;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n\n  ", "\n"])), function (_a) {
        var theme = _a.theme;
        return (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = (0, tslib_1.__makeTemplateObject)(["\n    background: ", ";\n    ", ";\n    ", ";\n    color: ", ";\n  "], ["\n    background: ", ";\n    ", ";\n    ", ";\n    color: ", ";\n  "])), theme.components[COMPONENT_NAME].backgroundCounter, style_utils_1.BorderRadius.roundBorder(theme.shape.borderRadiusMedium), style_utils_1.Padding.allSide(1, 2), theme.components[COMPONENT_NAME].color);
    });
    exports.SnackBarCounterStyled.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
});
