require('./CalendarGrid.styles_1cftdtr.css');
'use strict';

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

var react = require('@linaria/react');
var DateTimePicker_tokens = require('../../DateTimePicker.tokens.js');
var common = require('../../../../engines/common.js');
var CalendarBase = require('../../../Calendar/CalendarBase/CalendarBase.js');
var CalendarDouble$1 = require('../../../Calendar/CalendarDouble/CalendarDouble.js');

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

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

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