"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 IconArrowWrapper () {
        return IconArrowWrapper;
    },
    get ListWrapper () {
        return ListWrapper;
    },
    get StyledArrow () {
        return StyledArrow;
    },
    get StyledEmptyState () {
        return StyledEmptyState;
    },
    get StyledLeftHelper () {
        return StyledLeftHelper;
    },
    get Ul () {
        return Ul;
    },
    get base () {
        return base;
    },
    get sizeMap () {
        return sizeMap;
    }
});
const _styled = /*#__PURE__*/ _interop_require_default(require("@emotion/styled"));
const _react = require("@emotion/react");
const _engines = require("../../engines");
const _EmptyState = require("../EmptyState");
const _Icon = require("../_Icon");
const _Comboboxtokens = require("./Combobox.tokens");
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
const mergedConfig = (0, _engines.mergeConfig)(_EmptyState.emptyStateConfig);
const EmptyState = (0, _engines.component)(mergedConfig);
const ListWrapper = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "ea7hd800",
    label: "ListWrapper"
})("width:", ({ listWidth })=>listWidth || '100%', ";padding:calc(var(", _Comboboxtokens.tokens.padding, ") + var(", _Comboboxtokens.tokens.dropdownBorderWidth, ",0rem));border-radius:var(", _Comboboxtokens.tokens.borderRadius, ");box-sizing:border-box;background:var(", _Comboboxtokens.constants.background, ");box-shadow:", _Comboboxtokens.constants.boxShadow, ",inset 0 0 0 var(", _Comboboxtokens.tokens.dropdownBorderWidth, ",0rem) var(", _Comboboxtokens.tokens.dropdownBorderColor, ",transparent);");
const Ul = (0, /*#__PURE__*/ _styled.default)("ul", {
    target: "ea7hd801",
    label: "Ul"
})("max-height:", ({ virtual, listMaxHeight })=>virtual ? 'auto' : listMaxHeight || 'auto', ";overflow-x:hidden;overflow-y:", ({ virtual })=>virtual ? 'visible' : 'auto', ";border-radius:calc(var(", _Comboboxtokens.tokens.borderRadius, ") - 0.125rem - var(", _Comboboxtokens.tokens.dropdownBorderWidth, ",0rem));margin:0;padding:0;.", _Comboboxtokens.classes.emptyStateWrapper, "{box-shadow:none;}");
const IconArrowWrapper = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "ea7hd802",
    label: "IconArrowWrapper"
})("line-height:0;color:var(", _Comboboxtokens.tokens.disclosureIconColor, ");cursor:", ({ disabled, readOnly })=>disabled || readOnly ? 'inherit' : 'pointer', ";.", _Comboboxtokens.classes.arrowInverse, "{transform:rotate(-180deg);}&:hover,&:active{color:", ({ disabled, readOnly })=>disabled || readOnly ? `var(${_Comboboxtokens.tokens.disclosureIconColor})` : `var(${_Comboboxtokens.tokens.disclosureIconColorHover})`, ";}");
const sizeMap = {
    xs: '1rem',
    s: '1.5rem'
};
const StyledArrow = /*#__PURE__*/ (0, _styled.default)(_Icon.IconDisclosureDownCentered, {
    target: "ea7hd803",
    label: "StyledArrow"
})("width:", ({ size = 'xs' })=>`var(${_Comboboxtokens.tokens.disclosureIconSize}, ${sizeMap[size]})`, ";height:", ({ size = 'xs' })=>`var(${_Comboboxtokens.tokens.disclosureIconSize}, ${sizeMap[size]})`, ";");
const base = (0, /*#__PURE__*/ _react.css)("base");
const StyledEmptyState = /*#__PURE__*/ (0, _styled.default)(EmptyState, {
    target: "ea7hd804",
    label: "StyledEmptyState"
})(_EmptyState.emptyStateTokens.borderRadius, ":var(", _Comboboxtokens.tokens.textFieldBorderRadius, ");", _EmptyState.emptyStateTokens.padding, ":var(", _Comboboxtokens.tokens.emptyStatePadding, ");", _EmptyState.emptyStateTokens.fontFamily, ":var(", _Comboboxtokens.tokens.textFieldFontFamily, ");", _EmptyState.emptyStateTokens.fontSize, ":var(", _Comboboxtokens.tokens.textFieldFontSize, ");", _EmptyState.emptyStateTokens.fontStyle, ":var(", _Comboboxtokens.tokens.textFieldFontStyle, ");", _EmptyState.emptyStateTokens.fontWeight, ":var(", _Comboboxtokens.tokens.textFieldFontWeight, ");", _EmptyState.emptyStateTokens.fontLetterSpacing, ":var(", _Comboboxtokens.tokens.textFieldLetterSpacing, ");", _EmptyState.emptyStateTokens.fontLineHeight, ":var(", _Comboboxtokens.tokens.textFieldLineHeight, ");");
const StyledLeftHelper = (0, /*#__PURE__*/ _styled.default)("span", {
    target: "ea7hd805",
    label: "StyledLeftHelper"
})("margin:0;padding:0;");
