"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 ShortcutItem () {
        return ShortcutItem;
    },
    get ShortcutList () {
        return ShortcutList;
    },
    get ShortcutTitle () {
        return ShortcutTitle;
    },
    get ShortcutTitleWrapper () {
        return ShortcutTitleWrapper;
    },
    get ShortcutsWrapper () {
        return ShortcutsWrapper;
    },
    get StyledCell () {
        return StyledCell;
    }
});
var _styled = /*#__PURE__*/ _interop_require_default(require("@emotion/styled"));
var _mixins = require("../../../../mixins");
var _Cell = require("../../../Cell");
var _engines = require("../../../../engines");
var _DateTimePickertokens = require("../../DateTimePicker.tokens");
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
var mergedCellConfig = (0, _engines.mergeConfig)(_Cell.cellConfig);
var Cell = (0, _engines.component)(mergedCellConfig);
var ShortcutsWrapper = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "em5s8mh0",
    label: "ShortcutsWrapper"
})("order:", function(param) {
    var dateShortcutsPlacement = param.dateShortcutsPlacement;
    return dateShortcutsPlacement === 'left' ? 'unset' : '999';
}, ";display:flex;flex-direction:", function(param) {
    var dateShortcutsPlacement = param.dateShortcutsPlacement;
    return dateShortcutsPlacement === 'left' ? 'row-reverse' : 'row';
}, ";gap:var(", _DateTimePickertokens.tokens.popoverGap, ");flex-shrink:", function(param) {
    var innerWidth = param.innerWidth;
    return innerWidth && innerWidth !== '0' ? '2' : '0';
}, ";overflow-y:hidden;height:", function(param) {
    var innerHeight = param.innerHeight;
    return innerHeight && innerHeight !== '0' ? "calc(".concat(innerHeight, " - var(").concat(_DateTimePickertokens.tokens.popoverVerticalPadding, "))") : "var(".concat(_DateTimePickertokens.tokens.calendarHeight, ")");
}, ";");
var ShortcutList = (0, /*#__PURE__*/ _styled.default)("ul", {
    target: "em5s8mh1",
    label: "ShortcutList"
})("width:", function(param) {
    var width = param.width;
    return width || 'fit-content';
}, ";list-style:none;margin:0;padding:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;::-webkit-scrollbar{display:none;}");
var ShortcutItem = (0, /*#__PURE__*/ _styled.default)("li", {
    target: "em5s8mh2",
    label: "ShortcutItem"
})("padding:var(", _DateTimePickertokens.tokens.shortcutPadding, ");border-radius:var(", _DateTimePickertokens.tokens.shortcutBorderRadius, ");&:hover:not(.", _DateTimePickertokens.classes.shortcutItemDisabled, "){cursor:pointer;background:var(", _DateTimePickertokens.tokens.shortcutBackgroundHover, ");}&.", _DateTimePickertokens.classes.shortcutItemDisabled, "{opacity:", _DateTimePickertokens.tokens.disabledOpacity, ";cursor:not-allowed;}:focus{outline:none;}", (0, _mixins.addFocus)({
    outlineSize: '0.063rem',
    outlineOffset: '0.063rem',
    outlineColor: "var(".concat(_DateTimePickertokens.tokens.outlineFocusColor, ")"),
    outlineRadius: "var(".concat(_DateTimePickertokens.tokens.shortcutBorderRadius, ")"),
    hasTransition: false,
    customFocusRules: "\n                &.focus-visible:focus,\n                &[data-focus-visible-added] {\n                    &::before {\n                        z-index: 1;\n                        outline: none;\n                        box-shadow: 0 0 0 0.063rem var(".concat(_DateTimePickertokens.tokens.outlineFocusColor, ");\n                    }\n                }\n            ")
}), ";");
var StyledCell = /*#__PURE__*/ (0, _styled.default)(Cell, {
    target: "em5s8mh3",
    label: "StyledCell"
})(_Cell.cellTokens.cellTitleColor, ":var(", _DateTimePickertokens.tokens.shortcutColor, ");", _Cell.cellTokens.cellPadding, ":var(", _DateTimePickertokens.tokens.shortcutPadding, ");", _Cell.cellTokens.cellPaddingContent, ":var(", _DateTimePickertokens.tokens.shortcutPaddingContent, ");", _Cell.cellTokens.cellPaddingLeftContent, ":var(", _DateTimePickertokens.tokens.shortcutPaddingLeftContent, ");", _Cell.cellTokens.cellPaddingRightContent, ":var(", _DateTimePickertokens.tokens.shortcutPaddingRightContent, ");", _Cell.cellTokens.cellGap, ":var(", _DateTimePickertokens.tokens.shortcutGap, ");");
var ShortcutTitleWrapper = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "em5s8mh4",
    label: "ShortcutTitleWrapper"
})("display:grid;");
var ShortcutTitle = (0, /*#__PURE__*/ _styled.default)("span", {
    target: "em5s8mh5",
    label: "ShortcutTitle"
})("font-family:var(", _DateTimePickertokens.tokens.shortcutFontFamily, ");font-size:var(", _DateTimePickertokens.tokens.shortcutFontSize, ");font-style:var(", _DateTimePickertokens.tokens.shortcutFontStyle, ");font-weight:var(", _DateTimePickertokens.tokens.shortcutFontWeight, ");letter-spacing:var(", _DateTimePickertokens.tokens.shortcutLetterSpacing, ");line-height:var(", _DateTimePickertokens.tokens.shortcutLineHeight, ");", (0, _mixins.applyEllipsis)());
