"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: Object.getOwnPropertyDescriptor(all, name).get
    });
}
_export(exports, {
    get CloseIconWrapper () {
        return CloseIconWrapper;
    },
    get StyledContentLeft () {
        return StyledContentLeft;
    },
    get Toast () {
        return Toast;
    },
    get base () {
        return base;
    }
});
const _styledcomponents = /*#__PURE__*/ _interop_require_wildcard(require("styled-components"));
const _engines = require("../../../engines");
const _Button = require("../../Button");
const _ToastNewtokens = require("./ToastNew.tokens");
function _getRequireWildcardCache(nodeInterop) {
    if (typeof WeakMap !== "function") return null;
    var cacheBabelInterop = new WeakMap();
    var cacheNodeInterop = new WeakMap();
    return (_getRequireWildcardCache = function(nodeInterop) {
        return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
    })(nodeInterop);
}
function _interop_require_wildcard(obj, nodeInterop) {
    if (!nodeInterop && obj && obj.__esModule) {
        return obj;
    }
    if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
        return {
            default: obj
        };
    }
    var cache = _getRequireWildcardCache(nodeInterop);
    if (cache && cache.has(obj)) {
        return cache.get(obj);
    }
    var newObj = {
        __proto__: null
    };
    var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
    for(var key in obj){
        if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
            var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
            if (desc && (desc.get || desc.set)) {
                Object.defineProperty(newObj, key, desc);
            } else {
                newObj[key] = obj[key];
            }
        }
    }
    newObj.default = obj;
    if (cache) {
        cache.set(obj, newObj);
    }
    return newObj;
}
const mergedButtonConfig = (0, _engines.mergeConfig)(_Button.buttonConfig);
const Button = (0, _engines.component)(mergedButtonConfig);
const base = (0, _styledcomponents.css)([
    ``
]);
const Toast = _styledcomponents.default.div.withConfig({
    displayName: "ToastNew.styles__Toast",
    componentId: "sc-366beb73-0"
})([
    `display:flex;align-items:center;background:var(`,
    `);color:`,
    `;padding:var(`,
    `);border-radius:var(`,
    `);max-width:var(`,
    `);width:`,
    `;box-shadow:var(`,
    `);font-family:var(`,
    `);font-size:var(`,
    `);font-style:var(`,
    `);font-weight:var(`,
    `);letter-spacing:var(`,
    `);line-height:var(`,
    `);`
], _ToastNewtokens.tokens.background, ({ textColor })=>textColor || `var(${_ToastNewtokens.tokens.color})`, _ToastNewtokens.tokens.padding, _ToastNewtokens.tokens.borderRadius, _ToastNewtokens.tokens.maxWidth, ({ width })=>width || 'auto', _ToastNewtokens.tokens.boxShadow, _ToastNewtokens.tokens.fontFamily, _ToastNewtokens.tokens.fontSize, _ToastNewtokens.tokens.fontStyle, _ToastNewtokens.tokens.fontWeight, _ToastNewtokens.tokens.letterSpacing, _ToastNewtokens.tokens.lineHeight);
const CloseIconWrapper = (0, _styledcomponents.default)(Button).withConfig({
    displayName: "ToastNew.styles__CloseIconWrapper",
    componentId: "sc-366beb73-1"
})([
    `height:var(`,
    `);margin:var(`,
    `);color:var(`,
    `);:hover{color:var(`,
    `);}`
], _ToastNewtokens.tokens.closeIconButtonSize, _ToastNewtokens.tokens.closeIconMargin, _ToastNewtokens.tokens.closeIconColor, _ToastNewtokens.tokens.closeIconColorOnHover);
const StyledContentLeft = _styledcomponents.default.div.withConfig({
    displayName: "ToastNew.styles__StyledContentLeft",
    componentId: "sc-366beb73-2"
})([
    `margin:var(`,
    `);color:var(`,
    `);line-height:0;`
], _ToastNewtokens.tokens.contentLeftMargin, _ToastNewtokens.tokens.contentLeftColor);
