import _taggedTemplateLiteralLoose from "@babel/runtime/helpers/esm/taggedTemplateLiteralLoose";
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
import { css, memoizeStyle } from "../../../lib/theming/Emotion";
import { CalendarDataTids } from "../../Calendar";
export var styles = memoizeStyle({
  root: function root(t) {
    return css(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n      display: inline-flex;\n      align-items: center;\n      color: ", ";\n\n      & > * {\n        flex: 1 1 50%;\n      }\n    "])), t.textColorDefault);
  },
  inputWrapperWidth: function inputWrapperWidth(t) {
    return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n      min-width: ", "px;\n    "])), parseInt(t.calendarCellWidth) * 7 + parseInt(t.calendarPaddingX) * 2);
  },
  inputWrapperWidthFull: function inputWrapperWidthFull() {
    return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n      width: 100%;\n    "])));
  },
  inputVisuallyFocus: function inputVisuallyFocus(t) {
    return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n      box-shadow: ", ";\n    "])), t.inputFocusShadow);
  },
  calendarWrapper: function calendarWrapper(t) {
    return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["\n      box-shadow: ", ";\n      display: inline-block;\n      font-size: 0;\n      z-index: 1000;\n      touch-action: none;\n    "])), t.pickerShadow);
  },
  calendarWidthAuto: function calendarWidthAuto() {
    return css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose(["\n      width: auto;\n    "])));
  },
  rangeCalendarDay: function rangeCalendarDay() {
    return css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteralLoose(["\n      width: 100%;\n      height: 100%;\n    "])));
  },
  rangeCalendarDayEnd: function rangeCalendarDayEnd(t) {
    return css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteralLoose(["\n      position: relative;\n\n      &:before {\n        content: '';\n        position: absolute;\n        top: 0;\n        left: 0;\n        width: 100%;\n        height: 100%;\n        background: ", ";\n        border-radius: ", ";\n      }\n\n      [data-tid=", "] {\n        color: ", ";\n\n        @media (hover: hover) {\n          &:hover {\n            color: ", ";\n            background: none;\n          }\n        }\n      }\n    "])), t.rangeCalendarCellEndBg, t.calendarCellBorderRadius, CalendarDataTids.dayCell, t.rangeCalendarCellEndColor, t.rangeCalendarCellEndColor);
  },
  rangeCalendarDayInHoveredPeriod: function rangeCalendarDayInHoveredPeriod(t) {
    return css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteralLoose(["\n      background: ", ";\n    "])), t.rangeCalendarCellBg);
  },
  rangeCalendarDayHoverInPeriod: function rangeCalendarDayHoverInPeriod(t) {
    return css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteralLoose(["\n      @media (hover: hover) {\n        &:hover [data-tid=", "] {\n          background: ", ";\n        }\n      }\n    "])), CalendarDataTids.dayCell, t.rangeCalendarCellHoverBg);
  },
  buttonWrap: function buttonWrap() {
    return css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteralLoose(["\n      display: flex;\n      margin: 8px;\n\n      > * {\n        flex-grow: 1;\n      }\n\n      > *:not(:first-child) {\n        margin-left: 8px;\n      }\n    "])));
  }
});
export function getFontSize(t, size) {
  switch (size) {
    case 'large':
      return t.fontSizeLarge;
    case 'medium':
      return t.fontSizeMedium;
    case 'small':
    default:
      return t.fontSizeSmall;
  }
}