"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;
    }
});
var _styled = /*#__PURE__*/ _interop_require_default(require("@emotion/styled"));
var _react = require("@emotion/react");
var _EmptyState = require("../../EmptyState");
var _Icon = require("../../_Icon");
var _engines = require("../../../engines");
var _Comboboxtokens = require("./Combobox.tokens");
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
var mergedConfig = (0, _engines.mergeConfig)(_EmptyState.emptyStateConfig);
var EmptyState = (0, _engines.component)(mergedConfig);
var ListWrapper = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1vxrg40",
    label: "ListWrapper"
})("width:", function(param) {
    var listWidth = param.listWidth;
    return 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);");
var Ul = (0, /*#__PURE__*/ _styled.default)("ul", {
    target: "e1vxrg41",
    label: "Ul"
})("max-height:", function(param) {
    var virtual = param.virtual, listMaxHeight = param.listMaxHeight;
    return virtual ? 'auto' : listMaxHeight || 'auto';
}, ";overflow-x:hidden;overflow-y:", function(param) {
    var virtual = param.virtual;
    return 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;}");
var IconArrowWrapper = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1vxrg42",
    label: "IconArrowWrapper"
})("line-height:0;color:var(", _Comboboxtokens.tokens.disclosureIconColor, ");cursor:", function(param) {
    var disabled = param.disabled, readOnly = param.readOnly;
    return disabled || readOnly ? 'inherit' : 'pointer';
}, ";.", _Comboboxtokens.classes.arrowInverse, "{transform:rotate(-180deg);}&:hover,&:active{color:", function(param) {
    var disabled = param.disabled, readOnly = param.readOnly;
    return disabled || readOnly ? "var(".concat(_Comboboxtokens.tokens.disclosureIconColor, ")") : "var(".concat(_Comboboxtokens.tokens.disclosureIconColorHover, ")");
}, ";}");
var sizeMap = {
    xs: '1rem',
    s: '1.5rem'
};
var StyledArrow = /*#__PURE__*/ (0, _styled.default)(_Icon.IconDisclosureDownCentered, {
    target: "e1vxrg43",
    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 base = (0, /*#__PURE__*/ _react.css)("base");
var StyledEmptyState = /*#__PURE__*/ (0, _styled.default)(EmptyState, {
    target: "e1vxrg44",
    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, ");");
var StyledLeftHelper = (0, /*#__PURE__*/ _styled.default)("span", {
    target: "e1vxrg45",
    label: "StyledLeftHelper"
})("margin:0;padding:0;");
