require('./DatePickerBase.styles_1ls1ef8.css');
'use strict';

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

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

var mergedCalendarConfig = /*#__PURE__*/common.mergeConfig(CalendarBase.calendarBaseConfig);
var Calendar = /*#__PURE__*/common.component(mergedCalendarConfig);
var FloatingWrapper = /*#__PURE__*/react.styled('div')({
  name: "FloatingWrapper",
  "class": "f15fkoqd",
  propsAsIs: false
});
var FloatingTarget = /*#__PURE__*/react.styled('div')({
  name: "FloatingTarget",
  "class": "fpo7dh3",
  propsAsIs: false
});
var FloatingContent = /*#__PURE__*/react.styled('div')({
  name: "FloatingContent",
  "class": "ftvb046",
  propsAsIs: false
});
var _exp8 = function _exp8() {
  return function (_ref) {
    var innerWidth = _ref.innerWidth;
    return innerWidth || 'fit-content';
  };
};
var _exp9 = function _exp9() {
  return function (_ref2) {
    var innerHeight = _ref2.innerHeight;
    return innerHeight || 'fit-content';
  };
};
var StyledCalendarContent = /*#__PURE__*/react.styled('div')({
  name: "StyledCalendarContent",
  "class": "swlhasj",
  propsAsIs: false,
  vars: {
    "swlhasj-0": [/*#__PURE__*/_exp8()],
    "swlhasj-1": [/*#__PURE__*/_exp9()]
  }
});

// NOTE: переопределение токенов Calendar
var _exp0 = function _exp0() {
  return Calendar;
};
var _exp1 = function _exp1() {
  return function (_ref3) {
    var innerWidth = _ref3.innerWidth;
    return innerWidth && innerWidth !== '0' ? '1' : '0';
  };
};
var _exp10 = function _exp10() {
  return function (_ref4) {
    var innerWidth = _ref4.innerWidth;
    return innerWidth && innerWidth !== '0' ? '100%' : "var(".concat(DatePicker_tokens.tokens.calendarWidth, ")");
  };
};
var _exp11 = function _exp11() {
  return function (_ref5) {
    var innerHeight = _ref5.innerHeight;
    return innerHeight && innerHeight !== '0' ? '100%' : "var(".concat(DatePicker_tokens.tokens.calendarHeight, ")");
  };
};
var StyledCalendar = /*#__PURE__*/react.styled(_exp0())({
  name: "StyledCalendar",
  "class": "sribcf6",
  propsAsIs: true,
  vars: {
    "sribcf6-0": [/*#__PURE__*/_exp1()],
    "sribcf6-1": [/*#__PURE__*/_exp10()],
    "sribcf6-2": [/*#__PURE__*/_exp11()]
  }
});
var InputHidden = /*#__PURE__*/react.styled('input')({
  name: "InputHidden",
  "class": "id2fi6k",
  propsAsIs: false
});

exports.FloatingContent = FloatingContent;
exports.FloatingTarget = FloatingTarget;
exports.FloatingWrapper = FloatingWrapper;
exports.InputHidden = InputHidden;
exports.StyledCalendar = StyledCalendar;
exports.StyledCalendarContent = StyledCalendarContent;
