"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 FloatingContent () {
        return FloatingContent;
    },
    get FloatingTarget () {
        return FloatingTarget;
    },
    get FloatingWrapper () {
        return FloatingWrapper;
    },
    get InputHidden () {
        return InputHidden;
    },
    get StyledCalendar () {
        return StyledCalendar;
    },
    get StyledCalendarContent () {
        return StyledCalendarContent;
    },
    get baseCalendarTokens () {
        return baseCalendarTokens;
    }
});
const _styledcomponents = /*#__PURE__*/ _interop_require_default(require("styled-components"));
const _engines = require("../../engines");
const _mixins = require("../../mixins");
const _Calendar = require("../Calendar");
const _DatePickertokens = require("./DatePicker.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 FloatingWrapper = _styledcomponents.default.div.withConfig({
    displayName: "DatePickerBase.styles__FloatingWrapper",
    componentId: "sc-bf81bfba-0"
})([
    `position:relative;width:100%;`
]);
const FloatingTarget = _styledcomponents.default.div.withConfig({
    displayName: "DatePickerBase.styles__FloatingTarget",
    componentId: "sc-bf81bfba-1"
})([
    ``
]);
const FloatingContent = _styledcomponents.default.div.withConfig({
    displayName: "DatePickerBase.styles__FloatingContent",
    componentId: "sc-bf81bfba-2"
})([
    ``
]);
const StyledCalendarContent = _styledcomponents.default.div.withConfig({
    displayName: "DatePickerBase.styles__StyledCalendarContent",
    componentId: "sc-bf81bfba-3"
})([
    `box-sizing:border-box;display:flex;gap:var(`,
    `);border-radius:var(`,
    `);padding:var(`,
    `);border:var(`,
    `) solid var(`,
    `);background:var(`,
    `);box-shadow:var(`,
    `);overflow:hidden;width:`,
    `;height:`,
    `;`
], _DatePickertokens.tokens.popoverGap, _DatePickertokens.tokens.popoverBorderRadius, _DatePickertokens.tokens.popoverPadding, _DatePickertokens.tokens.calendarBorderWidth, _DatePickertokens.tokens.calendarBorderColor, _DatePickertokens.tokens.popoverBackgroundColor, _DatePickertokens.tokens.popoverShadow, ({ innerWidth })=>innerWidth || 'fit-content', ({ innerHeight })=>innerHeight || 'fit-content');
const baseCalendarTokens = `
    ${_Calendar.calendarBaseTokens.calendarSelectedItemBackground}: var(${_DatePickertokens.tokens.calendarSelectedItemBackground});
    ${_Calendar.calendarBaseTokens.calendarSelectedItemColor}: var(${_DatePickertokens.tokens.calendarSelectedItemColor});
    ${_Calendar.calendarBaseTokens.calendarSelectableItemBackgroundHover}: var(${_DatePickertokens.tokens.calendarSelectableItemBackgroundHover});
    ${_Calendar.calendarBaseTokens.calendarCurrentItemBorderColor}: var(${_DatePickertokens.tokens.calendarCurrentItemBorderColor});
    ${_Calendar.calendarBaseTokens.calendarCurrentItemBorderWidth}: var(${_DatePickertokens.tokens.calendarCurrentItemBorderWidth});
    ${_Calendar.calendarBaseTokens.calendarCurrentItemBackgroundHover}: var(${_DatePickertokens.tokens.calendarCurrentItemBackgroundHover});
    ${_Calendar.calendarBaseTokens.calendarCurrentItemColorHover}: var(${_DatePickertokens.tokens.calendarCurrentItemColorHover});
    ${_Calendar.calendarBaseTokens.calendarCurrentItemChildBackgroundHover}: var(${_DatePickertokens.tokens.calendarCurrentItemChildBackgroundHover});
    ${_Calendar.calendarBaseTokens.calendarActiveItemBackground}: var(${_DatePickertokens.tokens.calendarActiveItemBackground});
    ${_Calendar.calendarBaseTokens.calendarActiveItemColor}: var(${_DatePickertokens.tokens.calendarActiveItemColor});
    ${_Calendar.calendarBaseTokens.calendarHoveredItemBackground}: var(${_DatePickertokens.tokens.calendarHoveredItemBackground});
    ${_Calendar.calendarBaseTokens.calendarHoveredItemColor}: var(${_DatePickertokens.tokens.calendarHoveredItemColor});
    ${_Calendar.calendarBaseTokens.calendarRangeBackground}: var(${_DatePickertokens.tokens.calendarRangeBackground});
    ${_Calendar.calendarBaseTokens.calendarOutlineFocusColor}: var(${_DatePickertokens.tokens.calendarOutlineFocusColor});
    ${_Calendar.calendarBaseTokens.calendarContentPrimaryColor}: var(${_DatePickertokens.tokens.calendarContentPrimaryColor});
    ${_Calendar.calendarBaseTokens.calendarContentPrimaryDisabledColor}: var(${_DatePickertokens.tokens.calendarContentPrimaryDisabledColor});
    ${_Calendar.calendarBaseTokens.calendarContentSecondaryColor}: var(${_DatePickertokens.tokens.calendarContentSecondaryColor});
    ${_Calendar.calendarBaseTokens.calendarContentSecondaryDisabledColor}: var(${_DatePickertokens.tokens.calendarContentSecondaryDisabledColor});
    ${_Calendar.calendarBaseTokens.calendarDisabledOpacity}: var(${_DatePickertokens.tokens.calendarDisabledOpacity});

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

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

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

    ${_Calendar.calendarBaseTokens.calendarQuartersPadding}: var(${_DatePickertokens.tokens.calendarQuartersPadding});
    ${_Calendar.calendarBaseTokens.calendarQuarterItemBorderRadius}: var(${_DatePickertokens.tokens.calendarQuarterItemBorderRadius});
    ${_Calendar.calendarBaseTokens.calendarQuarterFontFamily}: var(${_DatePickertokens.tokens.calendarQuarterFontFamily});
    ${_Calendar.calendarBaseTokens.calendarQuarterFontSize}: var(${_DatePickertokens.tokens.calendarQuarterFontSize});
    ${_Calendar.calendarBaseTokens.calendarQuarterFontStyle}: var(${_DatePickertokens.tokens.calendarQuarterFontStyle});
    ${_Calendar.calendarBaseTokens.calendarQuarterFontLetterSpacing}: var(${_DatePickertokens.tokens.calendarQuarterFontLetterSpacing});
    ${_Calendar.calendarBaseTokens.calendarQuarterFontLineHeight}: var(${_DatePickertokens.tokens.calendarQuarterFontLineHeight});
    ${_Calendar.calendarBaseTokens.calendarQuarterFontWeight}: var(${_DatePickertokens.tokens.calendarQuarterFontWeight});
    ${_Calendar.calendarBaseTokens.calendarQuarterSelectedFontWeight}: var(${_DatePickertokens.tokens.calendarQuarterSelectedFontWeight});
    
    ${_Calendar.calendarBaseTokens.calendarDaysPadding}: var(${_DatePickertokens.tokens.calendarDaysPadding});
    ${_Calendar.calendarBaseTokens.calendarDayItemBorderRadius}: var(${_DatePickertokens.tokens.calendarDayItemBorderRadius});
    ${_Calendar.calendarBaseTokens.calendarDayFontFamily}: var(${_DatePickertokens.tokens.calendarDayFontFamily});
    ${_Calendar.calendarBaseTokens.calendarDayFontSize}: var(${_DatePickertokens.tokens.calendarDayFontSize});
    ${_Calendar.calendarBaseTokens.calendarDayFontStyle}: var(${_DatePickertokens.tokens.calendarDayFontStyle});
    ${_Calendar.calendarBaseTokens.calendarDayFontLetterSpacing}: var(${_DatePickertokens.tokens.calendarDayFontLetterSpacing});
    ${_Calendar.calendarBaseTokens.calendarDayFontLineHeight}: var(${_DatePickertokens.tokens.calendarDayFontLineHeight});
    ${_Calendar.calendarBaseTokens.calendarDayFontWeight}: var(${_DatePickertokens.tokens.calendarDayFontWeight});
    ${_Calendar.calendarBaseTokens.calendarDaySelectedFontWeight}: var(${_DatePickertokens.tokens.calendarDaySelectedFontWeight});
    ${_Calendar.calendarBaseTokens.calendarDayOfWeekColor}: var(${_DatePickertokens.tokens.calendarDayOfWeekColor});
    
    ${_Calendar.calendarBaseTokens.calendarEventItemBottom}: var(${_DatePickertokens.tokens.calendarEventItemBottom});
    
    ${_Calendar.calendarBaseTokens.calendarHeaderWrapperPadding}: var(${_DatePickertokens.tokens.calendarHeaderWrapperPadding});
    ${_Calendar.calendarBaseTokens.calendarHeaderArrowGap}: var(${_DatePickertokens.tokens.calendarHeaderArrowGap});
    ${_Calendar.calendarBaseTokens.calendarHeaderArrowPadding}: var(${_DatePickertokens.tokens.calendarHeaderArrowPadding});
    ${_Calendar.calendarBaseTokens.calendarHeaderPadding}: var(${_DatePickertokens.tokens.calendarHeaderPadding});
    ${_Calendar.calendarBaseTokens.calendarHeaderDateGap}: var(${_DatePickertokens.tokens.calendarHeaderDateGap});
    ${_Calendar.calendarBaseTokens.calendarHeaderFontFamily}: var(${_DatePickertokens.tokens.calendarHeaderFontFamily});
    ${_Calendar.calendarBaseTokens.calendarHeaderFontSize}: var(${_DatePickertokens.tokens.calendarHeaderFontSize});
    ${_Calendar.calendarBaseTokens.calendarHeaderFontStyle}: var(${_DatePickertokens.tokens.calendarHeaderFontStyle});
    ${_Calendar.calendarBaseTokens.calendarHeaderFontLetterSpacing}: var(${_DatePickertokens.tokens.calendarHeaderFontLetterSpacing});
    ${_Calendar.calendarBaseTokens.calendarHeaderFontLineHeight}: var(${_DatePickertokens.tokens.calendarHeaderFontLineHeight});
    ${_Calendar.calendarBaseTokens.calendarHeaderFontWeight}: var(${_DatePickertokens.tokens.calendarHeaderFontWeight});
    ${_Calendar.calendarBaseTokens.calendarHeaderFontWeightBold}: var(${_DatePickertokens.tokens.calendarHeaderFontWeightBold});
    ${_Calendar.calendarBaseTokens.calendarHeaderArrowColor}: var(${_DatePickertokens.tokens.calendarHeaderArrowColor});
    ${_Calendar.calendarBaseTokens.calendarArrowHeaderCustomSize}: var(${_DatePickertokens.tokens.calendarHeaderArrowCustomSize});
    
    ${_Calendar.calendarBaseTokens.iconButtonHeight}: var(${_DatePickertokens.tokens.iconButtonHeight});
    ${_Calendar.calendarBaseTokens.iconButtonWidth}: var(${_DatePickertokens.tokens.iconButtonWidth});
    ${_Calendar.calendarBaseTokens.iconButtonPadding}: var(${_DatePickertokens.tokens.iconButtonPadding});
    ${_Calendar.calendarBaseTokens.iconButtonRadius}: var(${_DatePickertokens.tokens.iconButtonRadius});
    ${_Calendar.calendarBaseTokens.iconButtonFocusColor}: var(${_DatePickertokens.tokens.iconButtonFocusColor});

    ${_Calendar.calendarBaseTokens.tooltipPaddingTop} var(${_DatePickertokens.tokens.tooltipPaddingTop});
    ${_Calendar.calendarBaseTokens.tooltipPaddingRight} var(${_DatePickertokens.tokens.tooltipPaddingRight});
    ${_Calendar.calendarBaseTokens.tooltipPaddingBottom} var(${_DatePickertokens.tokens.tooltipPaddingBottom});
    ${_Calendar.calendarBaseTokens.tooltipPaddingLeft} var(${_DatePickertokens.tokens.tooltipPaddingLeft});
    ${_Calendar.calendarBaseTokens.tooltipMinHeight} var(${_DatePickertokens.tokens.tooltipMinHeight});
    ${_Calendar.calendarBaseTokens.tooltipBackgroundColor} var(${_DatePickertokens.tokens.tooltipBackgroundColor});
    ${_Calendar.calendarBaseTokens.tooltipBoxShadow} var(${_DatePickertokens.tokens.tooltipBoxShadow});
    ${_Calendar.calendarBaseTokens.tooltipBorderRadius} var(${_DatePickertokens.tokens.tooltipBorderRadius});
    ${_Calendar.calendarBaseTokens.tooltipColor} var(${_DatePickertokens.tokens.tooltipColor});
    ${_Calendar.calendarBaseTokens.tooltipTextFontFamily} var(${_DatePickertokens.tokens.tooltipTextFontFamily});
    ${_Calendar.calendarBaseTokens.tooltipTextFontSize} var(${_DatePickertokens.tokens.tooltipTextFontSize});
    ${_Calendar.calendarBaseTokens.tooltipTextFontStyle} var(${_DatePickertokens.tokens.tooltipTextFontStyle});
    ${_Calendar.calendarBaseTokens.tooltipTextFontWeight} var(${_DatePickertokens.tokens.tooltipTextFontWeight});
    ${_Calendar.calendarBaseTokens.tooltipTextFontLetterSpacing} var(${_DatePickertokens.tokens.tooltipTextFontLetterSpacing});
    ${_Calendar.calendarBaseTokens.tooltipTextFontLineHeight} var(${_DatePickertokens.tokens.tooltipTextFontLineHeight});
    ${_Calendar.calendarBaseTokens.tooltipContentLeftMargin} var(${_DatePickertokens.tokens.tooltipContentLeftMargin});
    ${_Calendar.calendarBaseTokens.tooltipArrowMaskWidth} var(${_DatePickertokens.tokens.tooltipArrowMaskWidth});
    ${_Calendar.calendarBaseTokens.tooltipArrowMaskHeight} var(${_DatePickertokens.tokens.tooltipArrowMaskHeight});
    ${_Calendar.calendarBaseTokens.tooltipArrowMaskImage} var(${_DatePickertokens.tokens.tooltipArrowMaskImage});
    ${_Calendar.calendarBaseTokens.tooltipArrowBackground} var(${_DatePickertokens.tokens.tooltipArrowBackground});
    ${_Calendar.calendarBaseTokens.tooltipArrowHeight} var(${_DatePickertokens.tokens.tooltipArrowHeight});
    ${_Calendar.calendarBaseTokens.tooltipArrowEdgeMargin} var(${_DatePickertokens.tokens.tooltipArrowEdgeMargin});
`;
const StyledCalendar = (0, _styledcomponents.default)(Calendar).withConfig({
    displayName: "DatePickerBase.styles__StyledCalendar",
    componentId: "sc-bf81bfba-4"
})([
    `flex-shrink:`,
    `;width:`,
    `;height:`,
    `;`,
    ``
], ({ innerWidth })=>innerWidth && innerWidth !== '0' ? '1' : '0', ({ innerWidth })=>innerWidth && innerWidth !== '0' ? '100%' : `var(${_DatePickertokens.tokens.calendarWidth})`, ({ innerHeight })=>innerHeight && innerHeight !== '0' ? '100%' : `var(${_DatePickertokens.tokens.calendarHeight})`, baseCalendarTokens);
const InputHidden = _styledcomponents.default.input.withConfig({
    displayName: "DatePickerBase.styles__InputHidden",
    componentId: "sc-bf81bfba-5"
})([
    ``,
    `;`
], (0, _mixins.applyHidden)());
