"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: Object.getOwnPropertyDescriptor(all, name).get
    });
}
_export(exports, {
    get StyledCalendar () {
        return StyledCalendar;
    },
    get StyledCalendarDouble () {
        return StyledCalendarDouble;
    },
    get baseCalendarTokens () {
        return baseCalendarTokens;
    }
});
const _styled = /*#__PURE__*/ _interop_require_default(require("@emotion/styled"));
const _Calendar = require("../../../Calendar");
const _engines = require("../../../../engines");
const _DateTimePickertokens = require("../../DateTimePicker.tokens");
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
const mergedCalendarConfig = (0, _engines.mergeConfig)(_Calendar.calendarBaseConfig);
const Calendar = (0, _engines.component)(mergedCalendarConfig);
const mergedCalendarDoubleConfig = (0, _engines.mergeConfig)(_Calendar.calendarDoubleConfig);
const CalendarDouble = (0, _engines.component)(mergedCalendarDoubleConfig);
const baseCalendarTokens = `
    ${_Calendar.calendarBaseTokens.calendarSeparatorBackground}: var(${_DateTimePickertokens.tokens.calendarSeparatorBackground});
    ${_Calendar.calendarBaseTokens.calendarSelectedItemBackground}: var(${_DateTimePickertokens.tokens.calendarSelectedItemBackground});
    ${_Calendar.calendarBaseTokens.calendarSelectedItemColor}: var(${_DateTimePickertokens.tokens.calendarSelectedItemColor});
    ${_Calendar.calendarBaseTokens.calendarSelectableItemBackgroundHover}: var(${_DateTimePickertokens.tokens.calendarSelectableItemBackgroundHover});
    ${_Calendar.calendarBaseTokens.calendarCurrentItemBorderColor}: var(${_DateTimePickertokens.tokens.calendarCurrentItemBorderColor});
    ${_Calendar.calendarBaseTokens.calendarCurrentItemBorderWidth}: var(${_DateTimePickertokens.tokens.calendarCurrentItemBorderWidth});
    ${_Calendar.calendarBaseTokens.calendarCurrentItemBackgroundHover}: var(${_DateTimePickertokens.tokens.calendarCurrentItemBackgroundHover});
    ${_Calendar.calendarBaseTokens.calendarCurrentItemColorHover}: var(${_DateTimePickertokens.tokens.calendarCurrentItemColorHover});
    ${_Calendar.calendarBaseTokens.calendarCurrentItemChildBackgroundHover}: var(${_DateTimePickertokens.tokens.calendarCurrentItemChildBackgroundHover});
    ${_Calendar.calendarBaseTokens.calendarActiveItemBackground}: var(${_DateTimePickertokens.tokens.calendarActiveItemBackground});
    ${_Calendar.calendarBaseTokens.calendarActiveItemColor}: var(${_DateTimePickertokens.tokens.calendarActiveItemColor});
    ${_Calendar.calendarBaseTokens.calendarHoveredItemBackground}: var(${_DateTimePickertokens.tokens.calendarHoveredItemBackground});
    ${_Calendar.calendarBaseTokens.calendarHoveredItemColor}: var(${_DateTimePickertokens.tokens.calendarHoveredItemColor});
    ${_Calendar.calendarBaseTokens.calendarRangeBackground}: var(${_DateTimePickertokens.tokens.calendarRangeBackground});
    ${_Calendar.calendarBaseTokens.calendarOutlineFocusColor}: var(${_DateTimePickertokens.tokens.calendarOutlineFocusColor});
    ${_Calendar.calendarBaseTokens.calendarContentPrimaryColor}: var(${_DateTimePickertokens.tokens.calendarContentPrimaryColor});
    ${_Calendar.calendarBaseTokens.calendarContentPrimaryDisabledColor}: var(${_DateTimePickertokens.tokens.calendarContentPrimaryDisabledColor});
    ${_Calendar.calendarBaseTokens.calendarContentSecondaryColor}: var(${_DateTimePickertokens.tokens.calendarContentSecondaryColor});
    ${_Calendar.calendarBaseTokens.calendarContentSecondaryDisabledColor}: var(${_DateTimePickertokens.tokens.calendarContentSecondaryDisabledColor});
    ${_Calendar.calendarBaseTokens.calendarDisabledOpacity}: var(${_DateTimePickertokens.tokens.calendarDisabledOpacity});

    ${_Calendar.calendarBaseTokens.iconButtonColor}: var(${_DateTimePickertokens.tokens.iconButtonColor});
    ${_Calendar.calendarBaseTokens.iconButtonBackgroundColor}: var(${_DateTimePickertokens.tokens.iconButtonBackgroundColor});
    ${_Calendar.calendarBaseTokens.iconButtonColorHover}: var(${_DateTimePickertokens.tokens.iconButtonColorHover});
    ${_Calendar.calendarBaseTokens.iconButtonBackgroundColorHover}: var(${_DateTimePickertokens.tokens.iconButtonBackgroundColorHover});
    ${_Calendar.calendarBaseTokens.iconButtonColorActive}: var(${_DateTimePickertokens.tokens.iconButtonColorActive});
    ${_Calendar.calendarBaseTokens.iconButtonBackgroundColorActive}: var(${_DateTimePickertokens.tokens.iconButtonBackgroundColorActive});

    ${_Calendar.calendarBaseTokens.calendarBorderWidth}: var(${_DateTimePickertokens.tokens.calendarBorderWidth});
    ${_Calendar.calendarBaseTokens.calendarBorderColor}: var(${_DateTimePickertokens.tokens.calendarBorderColor});

    ${_Calendar.calendarBaseTokens.calendarYearsPadding}: var(${_DateTimePickertokens.tokens.calendarYearsPadding});
    ${_Calendar.calendarBaseTokens.calendarYearItemBorderRadius}: var(${_DateTimePickertokens.tokens.calendarYearItemBorderRadius});
    ${_Calendar.calendarBaseTokens.calendarYearFontFamily}: var(${_DateTimePickertokens.tokens.calendarYearFontFamily});
    ${_Calendar.calendarBaseTokens.calendarYearFontSize}: var(${_DateTimePickertokens.tokens.calendarYearFontSize});
    ${_Calendar.calendarBaseTokens.calendarYearFontStyle}: var(${_DateTimePickertokens.tokens.calendarYearFontStyle});
    ${_Calendar.calendarBaseTokens.calendarYearFontLetterSpacing}: var(${_DateTimePickertokens.tokens.calendarYearFontLetterSpacing});
    ${_Calendar.calendarBaseTokens.calendarYearFontLineHeight}: var(${_DateTimePickertokens.tokens.calendarYearFontLineHeight});
    ${_Calendar.calendarBaseTokens.calendarYearFontWeight}: var(${_DateTimePickertokens.tokens.calendarYearFontWeight});
    ${_Calendar.calendarBaseTokens.calendarYearSelectedFontWeight}: var(${_DateTimePickertokens.tokens.calendarYearSelectedFontWeight});

    ${_Calendar.calendarBaseTokens.calendarMonthsPadding}: var(${_DateTimePickertokens.tokens.calendarMonthsPadding});
    ${_Calendar.calendarBaseTokens.calendarMonthItemBorderRadius}: var(${_DateTimePickertokens.tokens.calendarMonthItemBorderRadius});
    ${_Calendar.calendarBaseTokens.calendarMonthFontFamily}: var(${_DateTimePickertokens.tokens.calendarMonthFontFamily});
    ${_Calendar.calendarBaseTokens.calendarMonthFontSize}: var(${_DateTimePickertokens.tokens.calendarMonthFontSize});
    ${_Calendar.calendarBaseTokens.calendarMonthFontStyle}: var(${_DateTimePickertokens.tokens.calendarMonthFontStyle});
    ${_Calendar.calendarBaseTokens.calendarMonthFontLetterSpacing}: var(${_DateTimePickertokens.tokens.calendarMonthFontLetterSpacing});
    ${_Calendar.calendarBaseTokens.calendarMonthFontLineHeight}: var(${_DateTimePickertokens.tokens.calendarMonthFontLineHeight});
    ${_Calendar.calendarBaseTokens.calendarMonthFontWeight}: var(${_DateTimePickertokens.tokens.calendarMonthFontWeight});
    ${_Calendar.calendarBaseTokens.calendarMonthSelectedFontWeight}: var(${_DateTimePickertokens.tokens.calendarMonthSelectedFontWeight});

    ${_Calendar.calendarBaseTokens.calendarQuartersPadding}: var(${_DateTimePickertokens.tokens.calendarQuartersPadding});
    ${_Calendar.calendarBaseTokens.calendarQuarterItemBorderRadius}: var(${_DateTimePickertokens.tokens.calendarQuarterItemBorderRadius});
    ${_Calendar.calendarBaseTokens.calendarQuarterFontFamily}: var(${_DateTimePickertokens.tokens.calendarQuarterFontFamily});
    ${_Calendar.calendarBaseTokens.calendarQuarterFontSize}: var(${_DateTimePickertokens.tokens.calendarQuarterFontSize});
    ${_Calendar.calendarBaseTokens.calendarQuarterFontStyle}: var(${_DateTimePickertokens.tokens.calendarQuarterFontStyle});
    ${_Calendar.calendarBaseTokens.calendarQuarterFontLetterSpacing}: var(${_DateTimePickertokens.tokens.calendarQuarterFontLetterSpacing});
    ${_Calendar.calendarBaseTokens.calendarQuarterFontLineHeight}: var(${_DateTimePickertokens.tokens.calendarQuarterFontLineHeight});
    ${_Calendar.calendarBaseTokens.calendarQuarterFontWeight}: var(${_DateTimePickertokens.tokens.calendarQuarterFontWeight});
    ${_Calendar.calendarBaseTokens.calendarQuarterSelectedFontWeight}: var(${_DateTimePickertokens.tokens.calendarQuarterSelectedFontWeight});
    
    ${_Calendar.calendarBaseTokens.calendarDaysPadding}: var(${_DateTimePickertokens.tokens.calendarDaysPadding});
    ${_Calendar.calendarBaseTokens.calendarDayItemBorderRadius}: var(${_DateTimePickertokens.tokens.calendarDayItemBorderRadius});
    ${_Calendar.calendarBaseTokens.calendarDayFontFamily}: var(${_DateTimePickertokens.tokens.calendarDayFontFamily});
    ${_Calendar.calendarBaseTokens.calendarDayFontSize}: var(${_DateTimePickertokens.tokens.calendarDayFontSize});
    ${_Calendar.calendarBaseTokens.calendarDayFontStyle}: var(${_DateTimePickertokens.tokens.calendarDayFontStyle});
    ${_Calendar.calendarBaseTokens.calendarDayFontLetterSpacing}: var(${_DateTimePickertokens.tokens.calendarDayFontLetterSpacing});
    ${_Calendar.calendarBaseTokens.calendarDayFontLineHeight}: var(${_DateTimePickertokens.tokens.calendarDayFontLineHeight});
    ${_Calendar.calendarBaseTokens.calendarDayFontWeight}: var(${_DateTimePickertokens.tokens.calendarDayFontWeight});
    ${_Calendar.calendarBaseTokens.calendarDaySelectedFontWeight}: var(${_DateTimePickertokens.tokens.calendarDaySelectedFontWeight});
    ${_Calendar.calendarBaseTokens.calendarDayOfWeekColor}: var(${_DateTimePickertokens.tokens.calendarDayOfWeekColor});
    
    ${_Calendar.calendarBaseTokens.calendarEventItemBottom}: var(${_DateTimePickertokens.tokens.calendarEventItemBottom});
    
    ${_Calendar.calendarBaseTokens.calendarHeaderWrapperPadding}: var(${_DateTimePickertokens.tokens.calendarHeaderWrapperPadding});
    ${_Calendar.calendarBaseTokens.calendarHeaderArrowGap}: var(${_DateTimePickertokens.tokens.calendarHeaderArrowGap});
    ${_Calendar.calendarBaseTokens.calendarHeaderArrowPadding}: var(${_DateTimePickertokens.tokens.calendarHeaderArrowPadding});
    ${_Calendar.calendarBaseTokens.calendarHeaderPadding}: var(${_DateTimePickertokens.tokens.calendarHeaderPadding});
    ${_Calendar.calendarBaseTokens.calendarHeaderDateGap}: var(${_DateTimePickertokens.tokens.calendarHeaderDateGap});
    ${_Calendar.calendarBaseTokens.calendarHeaderFontFamily}: var(${_DateTimePickertokens.tokens.calendarHeaderFontFamily});
    ${_Calendar.calendarBaseTokens.calendarHeaderFontSize}: var(${_DateTimePickertokens.tokens.calendarHeaderFontSize});
    ${_Calendar.calendarBaseTokens.calendarHeaderFontStyle}: var(${_DateTimePickertokens.tokens.calendarHeaderFontStyle});
    ${_Calendar.calendarBaseTokens.calendarHeaderFontLetterSpacing}: var(${_DateTimePickertokens.tokens.calendarHeaderFontLetterSpacing});
    ${_Calendar.calendarBaseTokens.calendarHeaderFontLineHeight}: var(${_DateTimePickertokens.tokens.calendarHeaderFontLineHeight});
    ${_Calendar.calendarBaseTokens.calendarHeaderFontWeight}: var(${_DateTimePickertokens.tokens.calendarHeaderFontWeight});
    ${_Calendar.calendarBaseTokens.calendarHeaderFontWeightBold}: var(${_DateTimePickertokens.tokens.calendarHeaderFontWeightBold});
    ${_Calendar.calendarBaseTokens.calendarHeaderArrowColor}: var(${_DateTimePickertokens.tokens.calendarHeaderArrowColor});
    ${_Calendar.calendarBaseTokens.calendarArrowHeaderCustomSize}: var(${_DateTimePickertokens.tokens.calendarHeaderArrowCustomSize});
    
    ${_Calendar.calendarBaseTokens.iconButtonHeight}: var(${_DateTimePickertokens.tokens.iconButtonHeight});
    ${_Calendar.calendarBaseTokens.iconButtonWidth}: var(${_DateTimePickertokens.tokens.iconButtonWidth});
    ${_Calendar.calendarBaseTokens.iconButtonPadding}: var(${_DateTimePickertokens.tokens.iconButtonPadding});
    ${_Calendar.calendarBaseTokens.iconButtonRadius}: var(${_DateTimePickertokens.tokens.iconButtonRadius});
    ${_Calendar.calendarBaseTokens.iconButtonFocusColor}: var(${_DateTimePickertokens.tokens.iconButtonFocusColor});
    
    ${_Calendar.calendarBaseTokens.tooltipPaddingTop} var(${_DateTimePickertokens.tokens.tooltipPaddingTop});
    ${_Calendar.calendarBaseTokens.tooltipPaddingRight} var(${_DateTimePickertokens.tokens.tooltipPaddingRight});
    ${_Calendar.calendarBaseTokens.tooltipPaddingBottom} var(${_DateTimePickertokens.tokens.tooltipPaddingBottom});
    ${_Calendar.calendarBaseTokens.tooltipPaddingLeft} var(${_DateTimePickertokens.tokens.tooltipPaddingLeft});
    ${_Calendar.calendarBaseTokens.tooltipMinHeight} var(${_DateTimePickertokens.tokens.tooltipMinHeight});
    ${_Calendar.calendarBaseTokens.tooltipBackgroundColor} var(${_DateTimePickertokens.tokens.tooltipBackgroundColor});
    ${_Calendar.calendarBaseTokens.tooltipBoxShadow} var(${_DateTimePickertokens.tokens.tooltipBoxShadow});
    ${_Calendar.calendarBaseTokens.tooltipBorderRadius} var(${_DateTimePickertokens.tokens.tooltipBorderRadius});
    ${_Calendar.calendarBaseTokens.tooltipColor} var(${_DateTimePickertokens.tokens.tooltipColor});
    ${_Calendar.calendarBaseTokens.tooltipTextFontFamily} var(${_DateTimePickertokens.tokens.tooltipTextFontFamily});
    ${_Calendar.calendarBaseTokens.tooltipTextFontSize} var(${_DateTimePickertokens.tokens.tooltipTextFontSize});
    ${_Calendar.calendarBaseTokens.tooltipTextFontStyle} var(${_DateTimePickertokens.tokens.tooltipTextFontStyle});
    ${_Calendar.calendarBaseTokens.tooltipTextFontWeight} var(${_DateTimePickertokens.tokens.tooltipTextFontWeight});
    ${_Calendar.calendarBaseTokens.tooltipTextFontLetterSpacing} var(${_DateTimePickertokens.tokens.tooltipTextFontLetterSpacing});
    ${_Calendar.calendarBaseTokens.tooltipTextFontLineHeight} var(${_DateTimePickertokens.tokens.tooltipTextFontLineHeight});
    ${_Calendar.calendarBaseTokens.tooltipContentLeftMargin} var(${_DateTimePickertokens.tokens.tooltipContentLeftMargin});
    ${_Calendar.calendarBaseTokens.tooltipArrowMaskWidth} var(${_DateTimePickertokens.tokens.tooltipArrowMaskWidth});
    ${_Calendar.calendarBaseTokens.tooltipArrowMaskHeight} var(${_DateTimePickertokens.tokens.tooltipArrowMaskHeight});
    ${_Calendar.calendarBaseTokens.tooltipArrowMaskImage} var(${_DateTimePickertokens.tokens.tooltipArrowMaskImage});
    ${_Calendar.calendarBaseTokens.tooltipArrowBackground} var(${_DateTimePickertokens.tokens.tooltipArrowBackground});
    ${_Calendar.calendarBaseTokens.tooltipArrowHeight} var(${_DateTimePickertokens.tokens.tooltipArrowHeight});
    ${_Calendar.calendarBaseTokens.tooltipArrowEdgeMargin} var(${_DateTimePickertokens.tokens.tooltipArrowEdgeMargin});
`;
const StyledCalendar = /*#__PURE__*/ (0, _styled.default)(Calendar, {
    target: "ev2uym90",
    label: "StyledCalendar"
})("flex-shrink:", ({ innerWidth })=>innerWidth && innerWidth !== '0' ? '1' : '0', ";width:", ({ innerWidth })=>innerWidth && innerWidth !== '0' ? '100%' : `var(${_DateTimePickertokens.tokens.calendarWidth})`, ";height:", ({ innerHeight })=>innerHeight && innerHeight !== '0' ? '100%' : `var(${_DateTimePickertokens.tokens.calendarHeight})`, ";", baseCalendarTokens);
const StyledCalendarDouble = /*#__PURE__*/ (0, _styled.default)(CalendarDouble, {
    target: "ev2uym91",
    label: "StyledCalendarDouble"
})(_DateTimePickertokens.privateTokens.calendarDoubleWidth, ":calc(var(", _DateTimePickertokens.tokens.calendarWidth, ") * 2 + 2.063rem);flex-shrink:", ({ innerWidth })=>innerWidth && innerWidth !== '0' ? '1' : '0', ";width:", ({ innerWidth })=>innerWidth && innerWidth !== '0' ? '100%' : `var(${_DateTimePickertokens.privateTokens.calendarDoubleWidth})`, ";height:", ({ innerHeight })=>innerHeight && innerHeight !== '0' ? '100%' : `var(${_DateTimePickertokens.tokens.calendarHeight})`, ";", baseCalendarTokens);
