"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 ChildItems () {
        return ChildItems;
    },
    get DisclosureIconWrapper () {
        return DisclosureIconWrapper;
    },
    get ItemWrapper () {
        return ItemWrapper;
    },
    get Offset () {
        return Offset;
    },
    get StyledArrowLeft () {
        return StyledArrowLeft;
    },
    get StyledArrowRight () {
        return StyledArrowRight;
    },
    get Wrapper () {
        return Wrapper;
    },
    get sizeMap () {
        return sizeMap;
    }
});
const _styled = /*#__PURE__*/ _interop_require_default(require("@emotion/styled"));
const _mixins = require("../../../../../../mixins");
const _Icon = require("../../../../../_Icon");
const _Comboboxtokens = require("../../../../Combobox.tokens");
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
const ItemWrapper = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1pl4fe20",
    label: "ItemWrapper"
})();
const sizeMap = {
    xs: '1rem',
    s: '1.5rem'
};
const StyledArrowLeft = /*#__PURE__*/ (0, _styled.default)(_Icon.IconDisclosureRightCentered, {
    target: "e1pl4fe21",
    label: "StyledArrowLeft"
})("width:", ({ size = 'xs' })=>`var(${_Comboboxtokens.tokens.disclosureIconSize}, ${sizeMap[size]})`, ";height:", ({ size = 'xs' })=>`var(${_Comboboxtokens.tokens.disclosureIconSize}, ${sizeMap[size]})`, ";&.", _Comboboxtokens.classes.arrowInverse, "{transform:rotate(90deg);}");
const StyledArrowRight = /*#__PURE__*/ (0, _styled.default)(_Icon.IconDisclosureRightCentered, {
    target: "e1pl4fe22",
    label: "StyledArrowRight"
})("width:", ({ size = 'xs' })=>`var(${_Comboboxtokens.tokens.disclosureIconSize}, ${sizeMap[size]})`, ";height:", ({ size = 'xs' })=>`var(${_Comboboxtokens.tokens.disclosureIconSize}, ${sizeMap[size]})`, ";transform:rotate(90deg);&.", _Comboboxtokens.classes.arrowInverse, "{transform:rotate(-90deg);}");
const DisclosureIconWrapper = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1pl4fe23",
    label: "DisclosureIconWrapper"
})("line-height:0;color:var(", _Comboboxtokens.tokens.disclosureIconColor, ");visibility:", ({ visibility })=>visibility || 'visible', ";&:hover{color:var(", _Comboboxtokens.tokens.disclosureIconColorHover, ");}");
const Wrapper = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1pl4fe24",
    label: "Wrapper"
})("display:flex;align-items:center;gap:var(", _Comboboxtokens.tokens.itemGap, ");min-height:var(", _Comboboxtokens.tokens.itemHeight, ");margin:0;box-sizing:content-box;padding:", ({ variant })=>`var(${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(${_Comboboxtokens.constants.focusColor})`,
    outlineRadius: `calc(var(${_Comboboxtokens.tokens.borderRadius}) - 0.125rem - var(${_Comboboxtokens.tokens.dropdownBorderWidth}, 0rem))`,
    hasTransition: false,
    customFocusRules: `
            &.${_Comboboxtokens.classes.dropdownItemIsFocused}:before {
                outline: none;
                box-shadow: inset 0 0 0 0.0625rem var(${_Comboboxtokens.constants.focusColor});
            }
        `
}), ";");
const ChildItems = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1pl4fe25",
    label: "ChildItems"
})();
const Offset = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1pl4fe26",
    label: "Offset"
})("width:calc(", ({ depth })=>depth || 0, " * var(", _Comboboxtokens.tokens.itemTreeOffsetWidth, "));flex:none;margin-right:calc(var(", _Comboboxtokens.tokens.itemGap, ") * -1);");
