require('./RangeDatePopover.styles_1gz2vm.css');
'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var react = require('@linaria/react');
var DatePicker_tokens = require('../../DatePicker.tokens.js');
var withRange = require('../../../Calendar/hoc/withRange.js');
var common = require('../../../../engines/common.js');
var CalendarDouble$1 = require('../../../Calendar/CalendarDouble/CalendarDouble.js');
var CalendarBase = require('../../../Calendar/CalendarBase/CalendarBase.js');

var mergedCalendarDoubleConfig = /*#__PURE__*/common.mergeConfig(CalendarDouble$1.calendarDoubleConfig);
var CalendarDouble = /*#__PURE__*/common.component(mergedCalendarDoubleConfig);
var mergedCalendarConfig = /*#__PURE__*/common.mergeConfig(CalendarBase.calendarBaseConfig);
var Calendar = /*#__PURE__*/common.component(mergedCalendarConfig);
var CalendarDoubleRange = /*#__PURE__*/withRange.withRange(CalendarDouble);
var CalendarRange = /*#__PURE__*/withRange.withRange(Calendar);

// NOTE: переопределение токенов Calendar
var _exp = function _exp() {
  return CalendarDoubleRange;
};
var _exp4 = function _exp4() {
  return function (_ref) {
    var innerWidth = _ref.innerWidth;
    return innerWidth && innerWidth !== '0' ? '1' : '0';
  };
};
var _exp5 = function _exp5() {
  return function (_ref2) {
    var innerWidth = _ref2.innerWidth;
    return innerWidth && innerWidth !== '0' ? '100%' : "var(".concat(DatePicker_tokens.privateTokens.calendarDoubleWidth, ")");
  };
};
var _exp6 = function _exp6() {
  return function (_ref3) {
    var innerHeight = _ref3.innerHeight;
    return innerHeight && innerHeight !== '0' ? '100%' : "var(".concat(DatePicker_tokens.tokens.calendarHeight, ")");
  };
};
var StyledCalendarDouble = /*#__PURE__*/react.styled(_exp())({
  name: "StyledCalendarDouble",
  "class": "sf5aytd",
  propsAsIs: true,
  vars: {
    "sf5aytd-0": [/*#__PURE__*/_exp4()],
    "sf5aytd-1": [/*#__PURE__*/_exp5()],
    "sf5aytd-2": [/*#__PURE__*/_exp6()]
  }
});
var _exp0 = function _exp0() {
  return CalendarRange;
};
var _exp1 = function _exp1() {
  return function (_ref4) {
    var innerWidth = _ref4.innerWidth;
    return innerWidth && innerWidth !== '0' ? '1' : '0';
  };
};
var _exp10 = function _exp10() {
  return function (_ref5) {
    var innerWidth = _ref5.innerWidth;
    return innerWidth && innerWidth !== '0' ? '100%' : "var(".concat(DatePicker_tokens.tokens.calendarWidth, ")");
  };
};
var _exp11 = function _exp11() {
  return function (_ref6) {
    var innerHeight = _ref6.innerHeight;
    return innerHeight && innerHeight !== '0' ? '100%' : "var(".concat(DatePicker_tokens.tokens.calendarHeight, ")");
  };
};
var StyledCalendar = /*#__PURE__*/react.styled(_exp0())({
  name: "StyledCalendar",
  "class": "s1qixf8a",
  propsAsIs: true,
  vars: {
    "s1qixf8a-0": [/*#__PURE__*/_exp1()],
    "s1qixf8a-1": [/*#__PURE__*/_exp10()],
    "s1qixf8a-2": [/*#__PURE__*/_exp11()]
  }
});

exports.StyledCalendar = StyledCalendar;
exports.StyledCalendarDouble = StyledCalendarDouble;
