"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.datePickerStyles = void 0;

var _styledComponents = require("styled-components");

var _branding = require("../../mixins/branding");

var _typography = require("../../mixins/typography");

var _color = require("../../utils/color");

var f2FontSize = function f2FontSize(_ref) {
  var theme = _ref.theme;
  return (0, _typography.getFontSize)({
    theme: theme,
    fontSize: 'f2'
  });
};

var f1FontSize = function f1FontSize(_ref2) {
  var theme = _ref2.theme;
  return (0, _typography.getFontSize)({
    theme: theme,
    fontSize: 'f1'
  });
};

var f0FontSize = function f0FontSize(_ref3) {
  var theme = _ref3.theme;
  return (0, _typography.getFontSize)({
    theme: theme,
    fontSize: 'f0'
  });
};

var boldFontWeight = function boldFontWeight() {
  return (0, _typography.getFontWeight)({
    bold: true
  });
};

var datePickerBoxShadow = function datePickerBoxShadow(_ref4) {
  var theme = _ref4.theme;
  return (0, _color.fadeColor)((0, _branding.getPaletteColor)('greyscale-black')({
    theme: theme
  }), 0.95);
};

var datePickerStyles = (0, _styledComponents.css)([".DayPicker{display:inline-block;}.DayPicker-wrapper{position:relative;user-select:none;padding-bottom:1rem;flex-direction:row;}.DayPicker-Months{display:flex;flex-wrap:wrap;justify-content:center;}.DayPicker-Month{display:table;border-collapse:collapse;border-spacing:0;user-select:none;margin:0 1rem;margin-top:1rem;}.DayPicker-NavButton{position:absolute;cursor:pointer;top:1rem;right:1.5rem;margin-top:2px;color:", ";width:1.25rem;height:1.25rem;display:inline-block;background-size:50%;background-repeat:no-repeat;background-position:center;}.DayPicker-NavButton:hover{opacity:0.8;}.DayPicker-NavButton--prev{margin-right:1.5rem;background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAwCAYAAAB5R9gVAAAABGdBTUEAALGPC/xhBQAAAVVJREFUWAnN2G0KgjAYwPHpGfRkaZeqvgQaK+hY3SUHrk1YzNLay/OiEFp92I+/Mp2F2Mh2lLISWnflFjzH263RQjzMZ19wgs73ez0o1WmtW+dgA01VxrE3p6l2GLsnBy1VYQOtVSEH/atCCgqpQgKKqYIOiq2CBkqtggLKqQIKgqgCBjpJ2Y5CdJ+zrT9A7HHSTA1dxUdHgzCqJIEwq0SDsKsEg6iqBIEoq/wEcVRZBXFV+QJxV5mBtlDFB5VjYTaGZ2sf4R9PM7U9ZU+lLuaetPP/5Die3ToO1+u+MKtHs06qODB2zBnI/jBd4MPQm1VkY79Tb18gB+C62FdBFsZR6yeIo1YQiLJWMIiqVjQIu1YSCLNWFgijVjYIuhYYCKoWKAiiFgoopxYaKLUWOii2FgkophYp6F3r42W5A9s9OcgNvva8xQaysKXlFytoqdYmQH6tF3toSUo0INq9AAAAAElFTkSuQmCC');}.DayPicker-NavButton--next{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAwCAYAAAB5R9gVAAAABGdBTUEAALGPC/xhBQAAAXRJREFUWAnN119ugjAcwPHWzJ1gnmxzB/BBE0n24m4xfNkTaOL7wOtsl3AXMMb+Vjaa1BG00N8fSEibPpAP3xAKKs2yjzTPH9RAjhEo9WzPr/Vm8zgE0+gXATAxxuxtqeJ9t5tIwv5AtQAApsfT6TPdbp+kUBcgVwvO51KqVhMkXKsVJFXrOkigVhCIs1Y4iKlWZxB1rX4gwlpRIIpa8SDkWmggrFq4IIRaJKCYWnSgnrXIQV1r8YD+1Vrn+bReagysIFfLABRt31v8oBu1xEBttfRbltmfjgEcWh9snUS2kNdBK6WN1vrOWxObWsz+fjxevsxmB1GQDfINWiev83nhaoiB/CoOU438oPrhXS0WpQ9xc1ZQWxWHqUYe0I0qrKCQKjygDlXIQV2r0IF6ViEBxVTBBSFUQQNhVYkHIVeJAtkNsbQ7c1LtzP6FsObhb2rCKv7NBIGoq4SDmKoEgTirXAcJVGkFSVVpgoSrXICGUMUH/QBZNSUy5XWUhwAAAABJRU5ErkJggg==');}.DayPicker-NavButton--interactionDisabled{display:none;}.DayPicker-Caption{padding:0 0.5rem;display:table-caption;text-align:left;margin-bottom:0.5rem;}.DayPicker-Caption > div{font-size:", ";font-weight:", ";color:", ";}.DayPicker-Weekdays{margin-top:1rem;display:table-header-group;}.DayPicker-WeekdaysRow{display:table-row;}.DayPicker-Weekday{display:table-cell;font-size:", ";text-align:center;color:", ";}.DayPicker-Weekday abbr[title]{border-bottom:none;text-decoration:none;}.DayPicker-Body{display:table-row-group;}.DayPicker-Week{display:table-row;}.DayPicker-Day{display:table-cell;height:37px;width:37px;text-align:center;cursor:pointer;vertical-align:middle;border-radius:50%;color:", ";}.DayPicker-WeekNumber{display:table-cell;text-align:right;vertical-align:middle;min-width:1rem;font-size:", ";cursor:pointer;color:", ";border-right:1px solid ", ";}.DayPicker--interactionDisabled .DayPicker-Day{cursor:default;}.DayPicker-Footer{padding-top:0.5rem;}.DayPicker-TodayButton{border:none;background-image:none;background-color:transparent;box-shadow:none;cursor:pointer;color:", ";font-size:", ";}.DayPicker-Day--today{color:", ";font-family:", ";font-weight:", ";}.DayPicker-Day--outside{cursor:default;color:", ";}.DayPicker-Day--disabled{color:", ";cursor:default;}.DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside){position:relative;color:", ";background-color:", ";}.DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(.DayPicker-Day--outside):hover{background-color:", ";}.DayPicker:not(.DayPicker--interactionDisabled) .DayPicker-Day:not(.DayPicker-Day--disabled):not(.DayPicker-Day--selected):not(.DayPicker-Day--outside):hover{background-color:", ";}.DayPickerInput{display:inline-block;}.DayPickerInput > input{width:100%;height:40px;border-radius:6px;background-color:", ";border:solid 1px ", ";padding:14px 30px 14px 20px;color:", ";font-size:", ";line-height:1;font-family:", ";}.DayPickerInput-OverlayWrapper{position:relative;}.DayPickerInput-Overlay{left:0;z-index:2;position:absolute;background:", ";box-shadow:0 5px 15px ", ";border:solid 1px ", ";border-radius:3px;}"], (0, _branding.getPaletteColor)('greyscale-darker') || '', f2FontSize, _typography.getFontWeight, (0, _branding.getPaletteColor)('greyscale-black'), f0FontSize, (0, _branding.getPaletteColor)('greyscale-darker'), (0, _branding.getPaletteColor)('greyscale-black'), f0FontSize, (0, _branding.getPaletteColor)('greyscale-darker'), (0, _branding.getPaletteColor)('greyscale-light'), (0, _branding.getPaletteColor)('brand-secondary-base'), f0FontSize, (0, _branding.getPaletteColor)('brand-secondary-base'), _typography.getFontFamily, boldFontWeight, (0, _branding.getPaletteColor)('greyscale-darker'), (0, _branding.getPaletteColor)('greyscale-medium'), (0, _branding.getPaletteColor)('white'), (0, _branding.getPaletteColor)('brand-primary-base'), (0, _branding.getPaletteColor)('brand-primary-base'), (0, _branding.getPaletteColor)('greyscale-light'), (0, _branding.getPaletteColor)('white'), (0, _branding.getPaletteColor)('greyscale-light'), (0, _branding.getPaletteColor)('greyscale-black'), f1FontSize, _typography.getFontFamily, (0, _branding.getPaletteColor)('white'), datePickerBoxShadow, (0, _branding.getPaletteColor)('greyscale-light'));
exports.datePickerStyles = datePickerStyles;