"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;
    }
});
var _styledcomponents = /*#__PURE__*/ _interop_require_wildcard(require("styled-components"));
var _engines = require("../../../engines");
var _Button = require("../../Button");
var _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;
}
var mergedButtonConfig = (0, _engines.mergeConfig)(_Button.buttonConfig);
var Button = (0, _engines.component)(mergedButtonConfig);
var base = (0, _styledcomponents.css)([
    ""
]);
var Toast = _styledcomponents.default.div.withConfig({
    displayName: "ToastNew.styles__Toast",
    componentId: "sc-7489e6cc-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, function(param) {
    var textColor = param.textColor;
    return textColor || "var(".concat(_ToastNewtokens.tokens.color, ")");
}, _ToastNewtokens.tokens.padding, _ToastNewtokens.tokens.borderRadius, _ToastNewtokens.tokens.maxWidth, function(param) {
    var width = param.width;
    return width || 'auto';
}, _ToastNewtokens.tokens.boxShadow, _ToastNewtokens.tokens.fontFamily, _ToastNewtokens.tokens.fontSize, _ToastNewtokens.tokens.fontStyle, _ToastNewtokens.tokens.fontWeight, _ToastNewtokens.tokens.letterSpacing, _ToastNewtokens.tokens.lineHeight);
var CloseIconWrapper = (0, _styledcomponents.default)(Button).withConfig({
    displayName: "ToastNew.styles__CloseIconWrapper",
    componentId: "sc-7489e6cc-1"
})([
    "height:var(",
    ");margin:var(",
    ");color:var(",
    ");:hover{color:var(",
    ");}"
], _ToastNewtokens.tokens.closeIconButtonSize, _ToastNewtokens.tokens.closeIconMargin, _ToastNewtokens.tokens.closeIconColor, _ToastNewtokens.tokens.closeIconColorOnHover);
var StyledContentLeft = _styledcomponents.default.div.withConfig({
    displayName: "ToastNew.styles__StyledContentLeft",
    componentId: "sc-7489e6cc-2"
})([
    "margin:var(",
    ");color:var(",
    ");line-height:0;"
], _ToastNewtokens.tokens.contentLeftMargin, _ToastNewtokens.tokens.contentLeftColor);
