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