import _taggedTemplateLiteralLoose from "@babel/runtime/helpers/esm/taggedTemplateLiteralLoose";
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
import { css, memoizeStyle } from "../../../lib/theming/Emotion";
var getVerticalPaddings = function getVerticalPaddings(theme) {
  var toastPaddingY = theme.toastPaddingY;
  var paddingY = parseInt(toastPaddingY);
  return [paddingY + "px", paddingY + "px"];
};
export var styles = memoizeStyle({
  root: function root(t) {
    var _getVerticalPaddings = getVerticalPaddings(t),
      paddingTop = _getVerticalPaddings[0],
      paddingBottom = _getVerticalPaddings[1];
    return css(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n      border-radius: ", ";\n      border: ", ";\n      display: inline-flex;\n      font-size: ", ";\n      line-height: ", ";\n      opacity: 1;\n      padding: ", " ", " ", ";\n      position: relative;\n      top: ", ";\n    "])), t.toastBorderRadius, t.toastBorder, t.toastFontSize, t.toastLineHeight, paddingTop, t.toastPaddingX, paddingBottom, t.toastTop);
  },
  "default": function _default(t) {
    return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n      background: ", ";\n      color: ", ";\n    "])), t.toastBg, t.toastColor);
  },
  error: function error(t) {
    return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n      background: ", ";\n      color: ", ";\n    "])), t.toastErrorBg, t.toastColorError);
  },
  wrapper: function wrapper(t) {
    return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n      position: fixed;\n      top: 0;\n      left: 0;\n      right: 0;\n      height: 0;\n      text-align: center;\n      border-radius: ", ";\n    "])), t.toastBorderRadius);
  },
  closeWrapper: function closeWrapper(t) {
    var _getVerticalPaddings2 = getVerticalPaddings(t),
      paddingTop = _getVerticalPaddings2[0],
      paddingBottom = _getVerticalPaddings2[1];
    return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["\n      display: flex;\n      margin: -", " -", " -", " 0;\n    "])), paddingTop, t.toastPaddingX, paddingBottom);
  },
  link: function link(t) {
    var _getVerticalPaddings3 = getVerticalPaddings(t),
      paddingTop = _getVerticalPaddings3[0],
      paddingBottom = _getVerticalPaddings3[1];
    var padding = paddingTop + " " + t.toastLinkPadding;
    return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose(["\n      border: none;\n      font: inherit;\n      cursor: pointer;\n      display: inline-block;\n      font-weight: 600;\n      background-color: transparent;\n\n      margin: -", " 0 -", " ", ";\n\n      padding: ", ";\n      transition: background ", " ", ";\n    "])), paddingTop, paddingBottom, t.toastPaddingX, padding, t.transitionDuration, t.transitionTimingFunction);
  },
  toastActionErrorColor: function toastActionErrorColor(t) {
    return css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteralLoose(["\n      color: ", ";\n\n      &:hover {\n        background: ", ";\n        text-decoration: ", ";\n      }\n\n      &:active {\n        background: ", ";\n        color: ", ";\n      }\n    "])), t.toastLinkColorError, t.toastLinkBgHoverError, t.toastLinkTextDecorationHover, t.toastLinkBgActiveError, t.toastLinkColorActiveError);
  },
  toastActionDefaultColor: function toastActionDefaultColor(t) {
    return css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteralLoose(["\n      color: ", ";\n\n      &:hover {\n        background: ", ";\n        text-decoration: ", ";\n      }\n\n      &:active {\n        background: ", ";\n      }\n    "])), t.toastLinkColor, t.toastLinkBgHover, t.toastLinkTextDecorationHover, t.toastLinkBgActive);
  }
});