"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 DisclosureIconWrapper () {
        return DisclosureIconWrapper;
    },
    get IconWrapper () {
        return IconWrapper;
    },
    get StyledArrow () {
        return StyledArrow;
    },
    get StyledCell () {
        return StyledCell;
    },
    get StyledCheckbox () {
        return StyledCheckbox;
    },
    get StyledCheckboxWrapper () {
        return StyledCheckboxWrapper;
    },
    get StyledContentLeft () {
        return StyledContentLeft;
    },
    get StyledContentRight () {
        return StyledContentRight;
    },
    get StyledIconDone () {
        return StyledIconDone;
    },
    get StyledIndicator () {
        return StyledIndicator;
    },
    get StyledText () {
        return StyledText;
    },
    get Wrapper () {
        return Wrapper;
    },
    get sizeMap () {
        return sizeMap;
    }
});
var _styled = /*#__PURE__*/ _interop_require_default(require("@emotion/styled"));
var _Comboboxtokens = require("../../../../Combobox.tokens");
var _mixins = require("../../../../../../../mixins");
var _engines = require("../../../../../../../engines");
var _Checkbox = require("../../../../../../Checkbox");
var _Indicator = require("../../../../../../Indicator");
var _Cell = require("../../../../../../Cell");
var _Icon = require("../../../../../../_Icon");
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
var mergedCheckboxConfig = (0, _engines.mergeConfig)(_Checkbox.checkboxConfig);
var Checkbox = (0, _engines.component)(mergedCheckboxConfig);
var mergedCellConfig = (0, _engines.mergeConfig)(_Cell.cellConfig);
var Cell = (0, _engines.component)(mergedCellConfig);
var StyledCell = /*#__PURE__*/ (0, _styled.default)(Cell, {
    target: "eu7l9y70",
    label: "StyledCell"
})(_Cell.cellTokens.cellTitleColor, ":var(", _Comboboxtokens.constants.cellTitleColor, ");", _Cell.cellTokens.cellBackgroundColor, ":var(", _Comboboxtokens.constants.cellBackgroundColor, ");", _Cell.cellTokens.cellPadding, ":var(", _Comboboxtokens.tokens.cellPadding, ");", _Cell.cellTokens.cellPaddingLeftContent, ":var(", _Comboboxtokens.tokens.cellPaddingLeftContent, ");", _Cell.cellTokens.cellPaddingContent, ":var(", _Comboboxtokens.tokens.cellPaddingContent, ");", _Cell.cellTokens.cellPaddingRightContent, ":var(", _Comboboxtokens.tokens.cellPaddingRightContent, ");", _Cell.cellTokens.cellTextboxGap, ":var(", _Comboboxtokens.tokens.cellTextboxGap, ");", _Cell.cellTokens.cellGap, ":var(", _Comboboxtokens.tokens.cellGap, ");", _Cell.cellTokens.cellTitleFontFamily, ":var(", _Comboboxtokens.tokens.cellTitleFontFamily, ");", _Cell.cellTokens.cellTitleFontSize, ":var(", _Comboboxtokens.tokens.cellTitleFontSize, ");", _Cell.cellTokens.cellTitleFontStyle, ":var(", _Comboboxtokens.tokens.cellTitleFontStyle, ");", _Cell.cellTokens.cellTitleFontWeight, ":var(", _Comboboxtokens.tokens.cellTitleFontWeight, ");", _Cell.cellTokens.cellTitleLetterSpacing, ":var(", _Comboboxtokens.tokens.cellTitleLetterSpacing, ");", _Cell.cellTokens.cellTitleLineHeight, ":var(", _Comboboxtokens.tokens.cellTitleLineHeight, ");flex:1;min-width:0;& *{min-width:0;}&.", _Comboboxtokens.classes.singleLineMode, " .cell-textbox-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;}");
var StyledCheckbox = /*#__PURE__*/ (0, _styled.default)(Checkbox, {
    target: "eu7l9y71",
    label: "StyledCheckbox"
})(_Checkbox.checkboxTokens.triggerSize, ":var(", _Comboboxtokens.tokens.checkboxTriggerSize, ");", _Checkbox.checkboxTokens.triggerBorderRadius, ":var(", _Comboboxtokens.tokens.checkboxTriggerBorderRadius, ");", _Checkbox.checkboxTokens.fillColor, ":var(", _Comboboxtokens.tokens.checkboxFillColor, ");", _Checkbox.checkboxTokens.iconColor, ":var(", _Comboboxtokens.tokens.checkboxIconColor, ");", _Checkbox.checkboxTokens.triggerBorderColor, ":var(", _Comboboxtokens.tokens.checkboxTriggerBorderColor, ");", _Checkbox.checkboxTokens.triggerBorderCheckedColor, ":var(", _Comboboxtokens.tokens.checkboxTriggerBorderCheckedColor, ");", _Checkbox.checkboxTokens.triggerBorderWidth, ":var(", _Comboboxtokens.tokens.checkboxTriggerBorderWidth, ");");
var mergedIndicatorConfig = (0, _engines.mergeConfig)(_Indicator.indicatorConfig);
var Indicator = (0, _engines.component)(mergedIndicatorConfig);
var StyledIndicator = /*#__PURE__*/ (0, _styled.default)(Indicator, {
    target: "eu7l9y72",
    label: "StyledIndicator"
})(_Indicator.indicatorTokens.size, ":var(", _Comboboxtokens.tokens.indicatorSize, ");", _Indicator.indicatorTokens.color, ":var(", _Comboboxtokens.tokens.itemIconColor, ");");
var sizeMap = {
    xs: '1rem',
    s: '1.5rem'
};
var StyledArrow = /*#__PURE__*/ (0, _styled.default)(_Icon.IconDisclosureRightCentered, {
    target: "eu7l9y73",
    label: "StyledArrow"
})("width:", function(param) {
    var _param_size = param.size, size = _param_size === void 0 ? 'xs' : _param_size;
    return "var(".concat(_Comboboxtokens.tokens.disclosureIconSize, ", ").concat(sizeMap[size], ")");
}, ";height:", function(param) {
    var _param_size = param.size, size = _param_size === void 0 ? 'xs' : _param_size;
    return "var(".concat(_Comboboxtokens.tokens.disclosureIconSize, ", ").concat(sizeMap[size], ")");
}, ";");
var StyledIconDone = /*#__PURE__*/ (0, _styled.default)(_Icon.IconDone, {
    target: "eu7l9y74",
    label: "StyledIconDone"
})("width:", function(param) {
    var _param_size = param.size, size = _param_size === void 0 ? 'xs' : _param_size;
    return "var(".concat(_Comboboxtokens.tokens.disclosureIconSize, ", ").concat(sizeMap[size], ")");
}, ";height:", function(param) {
    var _param_size = param.size, size = _param_size === void 0 ? 'xs' : _param_size;
    return "var(".concat(_Comboboxtokens.tokens.disclosureIconSize, ", ").concat(sizeMap[size], ")");
}, ";");
var StyledContentLeft = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "eu7l9y75",
    label: "StyledContentLeft"
})("display:inline-flex;");
var StyledContentRight = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "eu7l9y76",
    label: "StyledContentRight"
})("margin-left:auto;display:inline-flex;");
var DisclosureIconWrapper = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "eu7l9y77",
    label: "DisclosureIconWrapper"
})("line-height:0;margin:var(", _Comboboxtokens.tokens.disclosureIconMargin, ");color:var(", _Comboboxtokens.tokens.disclosureIconColor, ");&:hover{color:var(", _Comboboxtokens.tokens.disclosureIconColorHover, ");}");
var IconWrapper = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "eu7l9y78",
    label: "IconWrapper"
})("display:flex;align-items:center;justify-content:center;flex:none;width:", function(param) {
    var variant = param.variant;
    return "var(".concat(variant === 'tight' ? _Comboboxtokens.tokens.itemIconSizeTight : _Comboboxtokens.tokens.itemIconSize, ")");
}, ";height:", function(param) {
    var variant = param.variant;
    return "var(".concat(variant === 'tight' ? _Comboboxtokens.tokens.itemIconSizeTight : _Comboboxtokens.tokens.itemIconSize, ")");
}, ";margin:var(", _Comboboxtokens.tokens.itemIconMargin, ");line-height:0;color:var(", _Comboboxtokens.tokens.itemIconColor, ");");
var StyledText = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "eu7l9y79",
    label: "StyledText"
})((0, _mixins.applyEllipsis)(), ";flex:1;");
var Wrapper = (0, /*#__PURE__*/ _styled.default)("li", {
    target: "eu7l9y710",
    label: "Wrapper"
})("display:flex;align-items:center;min-height:var(", _Comboboxtokens.tokens.itemHeight, ");margin:0;box-sizing:content-box;padding:", function(param) {
    var variant = param.variant;
    return "var(".concat(variant === 'tight' ? _Comboboxtokens.tokens.itemPaddingTight : _Comboboxtokens.tokens.itemPadding, ")");
}, ";font-family:var(", _Comboboxtokens.tokens.fontFamily, ");font-size:var(", _Comboboxtokens.tokens.fontSize, ");font-style:var(", _Comboboxtokens.tokens.fontStyle, ");font-weight:var(", _Comboboxtokens.tokens.fontWeight, ");letter-spacing:var(", _Comboboxtokens.tokens.fontLetterSpacing, ");line-height:var(", _Comboboxtokens.tokens.fontLineHeight, ");background-color:var(", _Comboboxtokens.constants.itemBackground, ");color:var(--text-primary);border-radius:calc(var(", _Comboboxtokens.tokens.borderRadius, ") - 0.125rem - var(", _Comboboxtokens.tokens.dropdownBorderWidth, ",0rem));user-select:none;background-clip:padding-box;&:hover:not(.", _Comboboxtokens.classes.dropdownItemIsDisabled, "){cursor:pointer;background-color:var(", _Comboboxtokens.tokens.itemBackgroundHover, ");}&.", _Comboboxtokens.classes.dropdownItemIsActive, "{background-color:var(", _Comboboxtokens.tokens.itemBackgroundHover, ");}&.", _Comboboxtokens.classes.dropdownItemIsDisabled, "{opacity:", _Comboboxtokens.constants.opacity, ";cursor:not-allowed;}:focus{outline:none;}", (0, _mixins.addFocus)({
    outlineSize: '0',
    outlineOffset: '0',
    outlineColor: "var(".concat(_Comboboxtokens.constants.focusColor, ")"),
    outlineRadius: "calc(var(".concat(_Comboboxtokens.tokens.borderRadius, ") - 0.125rem - var(").concat(_Comboboxtokens.tokens.dropdownBorderWidth, ", 0rem))"),
    hasTransition: false,
    customFocusRules: "\n            &.".concat(_Comboboxtokens.classes.dropdownItemIsFocused, ":before {\n                outline: none;\n                box-shadow: inset 0 0 0 0.0625rem var(").concat(_Comboboxtokens.constants.focusColor, ");\n            }\n        ")
}), ";");
var StyledCheckboxWrapper = (0, /*#__PURE__*/ _styled.default)("span", {
    target: "eu7l9y711",
    label: "StyledCheckboxWrapper"
})();
