import _taggedTemplateLiteralLoose from "@babel/runtime/helpers/esm/taggedTemplateLiteralLoose";
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44, _templateObject45, _templateObject46, _templateObject47, _templateObject48, _templateObject49, _templateObject50, _templateObject51, _templateObject52, _templateObject53, _templateObject54, _templateObject55, _templateObject56, _templateObject57, _templateObject58, _templateObject59, _templateObject60, _templateObject61, _templateObject62;
import { css, memoizeStyle, prefix } from "../../../lib/theming/Emotion";
import { resetButton } from "../../../lib/styles/Mixins";
export var modalGlobalClasses = prefix('modal')({
  root: 'root',
  container: 'container'
});
export var styles = memoizeStyle({
  root: function root() {
    return css(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n      height: 100%;\n      left: 0;\n      position: fixed;\n      top: 0;\n      width: 100%;\n    "])));
  },
  bg: function bg(t) {
    return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n      bottom: 0;\n      left: 0;\n      position: absolute;\n      right: 0;\n      top: 0;\n      background: ", ";\n      opacity: ", ";\n    "])), t.modalBackBg, t.modalBackOpacity);
  },
  container: function container() {
    return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n      position: relative;\n      white-space: nowrap;\n      text-align: center;\n      height: 100%;\n      overflow-y: auto;\n      outline: none;\n    "])));
  },
  containerDesktop: function containerDesktop() {
    return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n      &::before {\n        content: '';\n        display: inline-block;\n        vertical-align: middle;\n        height: 80%; /* to vertical align modal 40%/60% of screen height */\n      }\n    "])));
  },
  container5_2: function container5_2() {
    return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["\n      min-height: 64px;\n    "])));
  },
  containerMobile: function containerMobile(t) {
    return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose(["\n      height: ", ";\n      margin-top: ", ";\n      margin-right: ", ";\n      margin-bottom: ", ";\n      margin-left: ", ";\n    "])), t.mobileModalContainerHeight, t.mobileModalContainerMarginTop, t.mobileModalContainerMarginRight, t.mobileModalContainerMarginBottom, t.mobileModalContainerMarginLeft);
  },
  mobileContainerFullscreen5_2: function mobileContainerFullscreen5_2() {
    return css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteralLoose(["\n      margin: 0;\n    "])));
  },
  mobileContainerSmall5_2: function mobileContainerSmall5_2() {
    return css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteralLoose(["\n      margin: 0;\n      display: flex;\n      flex-wrap: wrap;\n      align-content: center;\n    "])));
  },
  mobileContainerSmallTop5_2: function mobileContainerSmallTop5_2() {
    return css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteralLoose(["\n      align-content: start;\n    "])));
  },
  mobileContainerSmallBottom5_2: function mobileContainerSmallBottom5_2() {
    return css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteralLoose(["\n      align-content: end;\n    "])));
  },
  window: function window(t) {
    return css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteralLoose(["\n      position: relative;\n      white-space: normal;\n      margin: auto;\n      box-shadow: ", ";\n      background: ", ";\n      border-radius: ", ";\n    "])), t.modalWindowShadow, t.modalBg, t.modalBorderRadius);
  },
  mobileWindow: function mobileWindow() {
    return css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteralLoose(["\n      width: 100%;\n      height: 100%;\n      overflow: auto;\n    "])));
  },
  mobileWindowFullscreen5_2: function mobileWindowFullscreen5_2() {
    return css(_templateObject13 || (_templateObject13 = _taggedTemplateLiteralLoose(["\n      border-radius: 0;\n    "])));
  },
  centerContainer: function centerContainer() {
    return css(_templateObject14 || (_templateObject14 = _taggedTemplateLiteralLoose(["\n      position: relative;\n      display: inline-block;\n      text-align: left;\n      vertical-align: middle;\n      box-sizing: border-box;\n      z-index: 10;\n      margin: 40px 20px;\n    "])));
  },
  mobileCenterContainer: function mobileCenterContainer() {
    return css(_templateObject15 || (_templateObject15 = _taggedTemplateLiteralLoose(["\n      margin: 0;\n      width: 100%;\n      height: 100%;\n    "])));
  },
  mobileCenterContainer5_2: function mobileCenterContainer5_2(t) {
    return css(_templateObject16 || (_templateObject16 = _taggedTemplateLiteralLoose(["\n      padding: 0;\n      width: calc(100% - ", " - ", ");\n      display: inline-flex;\n      margin: ", " ", "\n        ", " ", ";\n      max-height: calc(100% - ", " - ", ");\n    "])), t.mobileModalContainerMarginLeft, t.mobileModalContainerMarginRight, t.mobileModalContainerMarginTop, t.mobileModalContainerMarginRight, t.mobileModalContainerMarginBottom, t.mobileModalContainerMarginLeft, t.mobileModalContainerMarginTop, t.mobileModalContainerMarginBottom);
  },
  mobileCenterContainerBig5_2: function mobileCenterContainerBig5_2(t) {
    return css(_templateObject17 || (_templateObject17 = _taggedTemplateLiteralLoose(["\n      height: calc(100% - ", " - ", ");\n    "])), t.mobileModalContainerMarginTop, t.mobileModalContainerMarginBottom);
  },
  mobileCenterContainerFullscreen5_2: function mobileCenterContainerFullscreen5_2() {
    return css(_templateObject18 || (_templateObject18 = _taggedTemplateLiteralLoose(["\n      margin: 0;\n      width: 100%;\n      height: 100%;\n      max-height: 100%;\n    "])));
  },
  alignTop: function alignTop() {
    return css(_templateObject19 || (_templateObject19 = _taggedTemplateLiteralLoose(["\n      vertical-align: top;\n    "])));
  },
  close: function close(t) {
    var padding = parseInt(t.modalCloseButtonPadding);
    return css(_templateObject20 || (_templateObject20 = _taggedTemplateLiteralLoose(["\n      ", ";\n      position: absolute;\n      display: flex;\n      right: ", "px;\n      top: ", "px;\n      background: transparent;\n      cursor: pointer;\n      color: ", ";\n      text-align: center;\n      vertical-align: middle;\n      padding: ", ";\n      margin: -", ";\n\n      &:hover {\n        color: ", ";\n      }\n\n      & > svg {\n        width: ", ";\n        height: ", ";\n        box-sizing: content-box;\n      }\n    "])), resetButton(), padding, padding, t.modalCloseButtonColor, t.modalCloseButtonClickArea, t.modalCloseButtonClickArea, t.modalCloseButtonHoverColor, t.modalCloseIconSize, t.modalCloseIconSize);
  },
  close5_1: function close5_1(t) {
    return css(_templateObject21 || (_templateObject21 = _taggedTemplateLiteralLoose(["\n      justify-content: center;\n      align-items: center;\n      right: ", ";\n      top: ", ";\n\n      padding-top: ", ";\n      margin-top: -", ";\n      padding-right: ", ";\n      margin-right: -", ";\n      padding-bottom: ", ";\n      margin-bottom: -", ";\n      padding-left: ", ";\n      margin-left: -", ";\n    "])), t.modalCloseButtonClickAreaRight, t.modalCloseButtonClickAreaTop, t.modalCloseButtonClickAreaTop, t.modalCloseButtonClickAreaTop, t.modalCloseButtonClickAreaRight, t.modalCloseButtonClickAreaRight, t.modalCloseButtonClickAreaBottom, t.modalCloseButtonClickAreaBottom, t.modalCloseButtonClickAreaLeft, t.modalCloseButtonClickAreaLeft);
  },
  closeMobile: function closeMobile(t) {
    return css(_templateObject22 || (_templateObject22 = _taggedTemplateLiteralLoose(["\n      right: ", ";\n      top: ", "px;\n      padding: ", ";\n      margin: -", ";\n\n      & > svg {\n        width: ", ";\n        height: ", ";\n      }\n    "])), t.mobileModalCloseButtonRightPadding, parseInt(t.mobileModalCloseButtonTopPadding) + parseInt(t.mobileModalHeaderPadding), t.mobileModalCloseButtonClickArea, t.mobileModalCloseButtonClickArea, t.mobileModalCloseIconSize, t.mobileModalCloseIconSize);
  },
  closeMobile5_1: function closeMobile5_1(t) {
    return css(_templateObject23 || (_templateObject23 = _taggedTemplateLiteralLoose(["\n      top: ", ";\n    "])), t.mobileModalCloseButtonTopPadding);
  },
  mobileCloseWithoutHeader: function mobileCloseWithoutHeader() {
    return css(_templateObject24 || (_templateObject24 = _taggedTemplateLiteralLoose(["\n      position: static;\n    "])));
  },
  mobileCloseWithoutHeader5_2: function mobileCloseWithoutHeader5_2(t) {
    return css(_templateObject25 || (_templateObject25 = _taggedTemplateLiteralLoose(["\n      position: absolute;\n      padding: ", ";\n      margin: -", ";\n      top: ", ";\n      right: ", ";\n    "])), t.mobileModalWithoutHeaderCloseButtonPadding, t.mobileModalWithoutHeaderCloseButtonPadding, t.mobileModalWithoutHeaderCloseButtonPadding, t.mobileModalWithoutHeaderCloseButtonPadding);
  },
  closeWrapper: function closeWrapper(t) {
    var padding = parseInt(t.modalCloseButtonPadding);
    var paddingBottom = parseInt(t.modalCloseButtonBottomPadding);
    var blockSizeX = parseInt(t.modalCloseIconSize) + 2 * padding;
    var blockSizeY = parseInt(t.modalCloseIconSize) + padding + paddingBottom;
    return css(_templateObject26 || (_templateObject26 = _taggedTemplateLiteralLoose(["\n      position: relative;\n      float: right;\n      width: ", "px;\n      height: ", "px;\n    "])), blockSizeX, blockSizeY);
  },
  mobileCloseWrapper: function mobileCloseWrapper(t) {
    var size = parseInt(t.mobileModalCloseIconSize) + parseInt(t.mobileModalCloseButtonClickArea) * 2;
    return css(_templateObject27 || (_templateObject27 = _taggedTemplateLiteralLoose(["\n      position: absolute;\n      right: ", ";\n      top: ", ";\n      padding: 0;\n      margin: 0;\n      display: flex;\n      justify-content: center;\n      align-items: center;\n      width: ", "px;\n      height: ", "px;\n      background: radial-gradient(50% 50% at 50% 50%, ", " 60%, rgba(255, 255, 255, 0) 100%);\n      border-radius: ", "px;\n    "])), t.mobileModalCloseButtonRightPadding, t.mobileModalCloseButtonTopPadding, size, size, t.bgDefault, size);
  },
  mobileCloseWrapper5_2: function mobileCloseWrapper5_2(t) {
    return css(_templateObject28 || (_templateObject28 = _taggedTemplateLiteralLoose(["\n      position: sticky;\n      right: 0;\n      top: 0;\n      margin-left: auto;\n      width: ", ";\n      height: 0;\n    "])), t.mobileModalWithoutHeaderCloseButtonWidth);
  },
  disabled: function disabled(t) {
    return css(_templateObject29 || (_templateObject29 = _taggedTemplateLiteralLoose(["\n      pointer-events: none;\n      cursor: default;\n      color: ", ";\n    "])), t.modalCloseButtonDisabledColor);
  },
  focus: function focus(t) {
    return css(_templateObject30 || (_templateObject30 = _taggedTemplateLiteralLoose(["\n      color: ", ";\n      outline: 2px solid ", ";\n    "])), t.modalCloseButtonHoverColor, t.borderColorFocus);
  },
  focus5_1: function focus5_1(t) {
    return css(_templateObject31 || (_templateObject31 = _taggedTemplateLiteralLoose(["\n      &:before {\n        content: '';\n        position: absolute;\n        width: calc(", " * 2);\n        height: calc(", " * 2);\n        box-shadow: inset 0 0 0 2px ", ";\n        border-radius: 4px;\n      }\n    "])), t.modalCloseIconSize, t.modalCloseIconSize, t.borderColorFocus);
  },
  header: function header(t) {
    return css(_templateObject32 || (_templateObject32 = _taggedTemplateLiteralLoose(["\n      font-size: ", ";\n      line-height: ", ";\n      padding: ", " ", " ", " ", ";\n      overflow-wrap: break-word;\n      word-wrap: break-word;\n      color: ", ";\n      font-weight: ", ";\n    "])), t.modalHeaderFontSize, t.modalHeaderLineHeight, t.modalHeaderPaddingTop, t.modalPaddingRight, t.modalHeaderPaddingBottom, t.modalPaddingLeft, t.modalHeaderTextColor, t.modalHeaderFontWeight);
  },
  header5_2: function header5_2(t) {
    return css(_templateObject33 || (_templateObject33 = _taggedTemplateLiteralLoose(["\n      border-radius: ", " ", " 0 0;\n    "])), t.modalBorderRadius, t.modalBorderRadius);
  },
  mobileHeader: function mobileHeader(t) {
    return css(_templateObject34 || (_templateObject34 = _taggedTemplateLiteralLoose(["\n      position: relative;\n      font-size: ", ";\n      line-height: ", ";\n      padding: ", ";\n    "])), t.mobileModalHeaderFontSize, t.mobileModalHeaderLineHeight, t.mobileModalHeaderPadding);
  },
  titleCut: function titleCut() {
    return css(_templateObject35 || (_templateObject35 = _taggedTemplateLiteralLoose(["\n      overflow: hidden;\n      text-overflow: ellipsis;\n      white-space: nowrap;\n    "])));
  },
  body: function body(t) {
    return css(_templateObject36 || (_templateObject36 = _taggedTemplateLiteralLoose(["\n      border-radius: ", ";\n      padding-top: ", ";\n      padding-right: ", ";\n      padding-bottom: ", ";\n      padding-left: ", ";\n      color: ", ";\n    "])), t.modalBodyBorderRadius, t.modalBodyPaddingTop, t.modalPaddingRight, t.modalBodyPaddingBottom, t.modalPaddingLeft, t.modalBodyTextColor);
  },
  mobileBody: function mobileBody(t) {
    return css(_templateObject37 || (_templateObject37 = _taggedTemplateLiteralLoose(["\n      padding: ", ";\n      display: flex;\n      flex-flow: column;\n      flex: 1;\n      font-size: ", ";\n    "])), t.mobileModalBodyPadding, t.mobileModalBodyFontSize);
  },
  headerWithClose: function headerWithClose(t) {
    var rightPadding = 2 * parseInt(t.modalCloseButtonPadding) + parseInt(t.modalCloseIconSize);
    return css(_templateObject38 || (_templateObject38 = _taggedTemplateLiteralLoose(["\n      padding-right: ", "px;\n    "])), rightPadding);
  },
  mobileHeaderWithClose: function mobileHeaderWithClose(t) {
    return css(_templateObject39 || (_templateObject39 = _taggedTemplateLiteralLoose(["\n      padding-right: ", "px;\n    "])), 2 * parseInt(t.mobileModalCloseButtonRightPadding) + parseInt(t.mobileModalCloseIconSize));
  },
  footer: function footer(t) {
    return css(_templateObject40 || (_templateObject40 = _taggedTemplateLiteralLoose(["\n      padding: ", " ", " ", " ", ";\n      color: ", ";\n      border-radius: 0 0 ", " ", ";\n    "])), t.modalFooterPaddingTop, t.modalPaddingRight, t.modalFooterPaddingBottom, t.modalPaddingLeft, t.modalFooterTextColor, t.modalBorderRadius, t.modalBorderRadius);
  },
  mobileFooter: function mobileFooter(t) {
    return css(_templateObject41 || (_templateObject41 = _taggedTemplateLiteralLoose(["\n      padding: ", ";\n    "])), t.mobileModalFooterPadding);
  },
  panel: function panel(t) {
    return css(_templateObject42 || (_templateObject42 = _taggedTemplateLiteralLoose(["\n      padding-top: ", ";\n      padding-bottom: ", ";\n      background: ", ";\n    "])), t.modalFooterPanelPaddingTop, t.modalFooterPanelPaddingBottom, t.modalFooterBg);
  },
  fixedHeader: function fixedHeader(t) {
    return css(_templateObject43 || (_templateObject43 = _taggedTemplateLiteralLoose(["\n      margin-bottom: ", ";\n      padding-bottom: ", ";\n      background: ", ";\n      border-bottom: ", ";\n\n      &:after {\n        bottom: 11px;\n        content: '';\n        position: absolute;\n        height: 1px;\n        width: 100%;\n        left: 0;\n        z-index: -1;\n        box-shadow: ", ";\n      }\n    "])), t.modalFixedHeaderMarginBottom, t.modalFixedHeaderPaddingBottom, t.modalFixedHeaderBg, t.modalFixedHeaderBorder, t.modalFixedHeaderShadow);
  },
  fixedHeader5_2: function fixedHeader5_2() {
    return css(_templateObject44 || (_templateObject44 = _taggedTemplateLiteralLoose(["\n      border-radius: 0;\n    "])));
  },
  mobileFixedHeader: function mobileFixedHeader(t) {
    return css(_templateObject45 || (_templateObject45 = _taggedTemplateLiteralLoose(["\n      padding-bottom: ", ";\n    "])), t.mobileModalHeaderPadding);
  },
  mobileFixedHeader5_2: function mobileFixedHeader5_2(t) {
    return css(_templateObject46 || (_templateObject46 = _taggedTemplateLiteralLoose(["\n      border-radius: ", " ", " 0 0;\n    "])), t.modalBorderRadius, t.modalBorderRadius);
  },
  fixedFooter: function fixedFooter(t) {
    return css(_templateObject47 || (_templateObject47 = _taggedTemplateLiteralLoose(["\n      padding-top: ", ";\n      margin-top: ", ";\n      background: ", ";\n      border-top: ", ";\n\n      &:before {\n        top: 11px;\n        content: '';\n        position: absolute;\n        height: 1px;\n        width: 100%;\n        left: 0;\n        z-index: -1;\n        box-shadow: ", ";\n      }\n    "])), t.modalFixedFooterPaddingTop, t.modalFixedFooterMarginTop, t.modalFixedHeaderBg, t.modalFixedFooterBorder, t.modalFixedFooterShadow);
  },
  fixedFooter5_2: function fixedFooter5_2() {
    return css(_templateObject48 || (_templateObject48 = _taggedTemplateLiteralLoose(["\n      border-radius: 0;\n    "])));
  },
  mobileFixedFooter5_2: function mobileFixedFooter5_2(t) {
    return css(_templateObject49 || (_templateObject49 = _taggedTemplateLiteralLoose(["\n      border-radius: 0 0 ", " ", ";\n    "])), t.modalBorderRadius, t.modalBorderRadius);
  },
  fixedPanel: function fixedPanel(t) {
    return css(_templateObject50 || (_templateObject50 = _taggedTemplateLiteralLoose(["\n      &:before {\n        box-shadow: ", ";\n      }\n    "])), t.modalFixedPanelShadow);
  },
  headerAddPadding: function headerAddPadding(t) {
    return css(_templateObject51 || (_templateObject51 = _taggedTemplateLiteralLoose(["\n      padding-bottom: ", ";\n    "])), t.modalHeaderAdditionalPaddingBottom);
  },
  bodyWithoutHeader: function bodyWithoutHeader(t) {
    return css(_templateObject52 || (_templateObject52 = _taggedTemplateLiteralLoose(["\n      padding-top: ", ";\n    "])), t.modalPaddingTop);
  },
  mobileBodyWithoutHeader: function mobileBodyWithoutHeader() {
    return css(_templateObject53 || (_templateObject53 = _taggedTemplateLiteralLoose(["\n      padding-top: 0;\n    "])));
  },
  mobileBodyWithoutHeader5_2: function mobileBodyWithoutHeader5_2(t) {
    return css(_templateObject54 || (_templateObject54 = _taggedTemplateLiteralLoose(["\n      padding-top: ", ";\n      padding-right: ", ";\n    "])), t.mobileModalBodyPaddingTop, t.mobileModalWithoutHeaderCloseButtonWidth);
  },
  bodyWithoutPadding: function bodyWithoutPadding() {
    return css(_templateObject55 || (_templateObject55 = _taggedTemplateLiteralLoose(["\n      padding: 0;\n    "])));
  },
  bodyAddPaddingForPanel: function bodyAddPaddingForPanel(t) {
    return css(_templateObject56 || (_templateObject56 = _taggedTemplateLiteralLoose(["\n      padding-bottom: ", ";\n    "])), t.modalPaddingBottom);
  },
  mobileBodyAddPaddingForPanel: function mobileBodyAddPaddingForPanel(t) {
    return css(_templateObject57 || (_templateObject57 = _taggedTemplateLiteralLoose(["\n      padding: ", ";\n    "])), t.mobileModalBodyPadding);
  },
  mobileBodyAddPaddingForPanel5_2: function mobileBodyAddPaddingForPanel5_2(t) {
    return css(_templateObject58 || (_templateObject58 = _taggedTemplateLiteralLoose(["\n      padding-bottom: ", ";\n    "])), t.mobileModalBodyPaddingBottom);
  },
  columnFlexContainer: function columnFlexContainer() {
    return css(_templateObject59 || (_templateObject59 = _taggedTemplateLiteralLoose(["\n      height: 100%;\n      display: flex;\n      flex-flow: column;\n      overflow-y: auto;\n    "])));
  },
  modalSeparatorWrapper: function modalSeparatorWrapper() {
    return css(_templateObject60 || (_templateObject60 = _taggedTemplateLiteralLoose(["\n      position: absolute;\n      width: 100%;\n    "])));
  },
  modalSeparator: function modalSeparator(t) {
    return css(_templateObject61 || (_templateObject61 = _taggedTemplateLiteralLoose(["\n      border-bottom: ", ";\n      margin: ", ";\n      transition: margin 0.3s;\n    "])), t.modalSeparatorBorderBottom, t.modalSeparatorMargin);
  },
  modalSeparatorFixed: function modalSeparatorFixed(t) {
    return css(_templateObject62 || (_templateObject62 = _taggedTemplateLiteralLoose(["\n      margin: ", ";\n    "])), t.modalSeparatorFixedMargin);
  }
});