"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 ListWrapper () {
        return ListWrapper;
    },
    get StyledEmptyState () {
        return StyledEmptyState;
    },
    get Ul () {
        return Ul;
    },
    get base () {
        return base;
    }
});
const _styledcomponents = /*#__PURE__*/ _interop_require_wildcard(require("styled-components"));
const _engines = require("../../engines");
const _EmptyState = require("../EmptyState");
const _utils = require("./utils");
const _Selecttokens = require("./Select.tokens");
function _getRequireWildcardCache(nodeInterop) {
    if (typeof WeakMap !== "function") return null;
    var cacheBabelInterop = new WeakMap();
    var cacheNodeInterop = new WeakMap();
    return (_getRequireWildcardCache = function(nodeInterop) {
        return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
    })(nodeInterop);
}
function _interop_require_wildcard(obj, nodeInterop) {
    if (!nodeInterop && obj && obj.__esModule) {
        return obj;
    }
    if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
        return {
            default: obj
        };
    }
    var cache = _getRequireWildcardCache(nodeInterop);
    if (cache && cache.has(obj)) {
        return cache.get(obj);
    }
    var newObj = {
        __proto__: null
    };
    var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
    for(var key in obj){
        if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
            var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
            if (desc && (desc.get || desc.set)) {
                Object.defineProperty(newObj, key, desc);
            } else {
                newObj[key] = obj[key];
            }
        }
    }
    newObj.default = obj;
    if (cache) {
        cache.set(obj, newObj);
    }
    return newObj;
}
const mergedConfig = (0, _engines.mergeConfig)(_EmptyState.emptyStateConfig);
const EmptyState = (0, _engines.component)(mergedConfig);
const ListWrapper = _styledcomponents.default.div.withConfig({
    displayName: "Select.styles__ListWrapper",
    componentId: "sc-cc08f8f1-0"
})([
    `width:`,
    `;padding:calc(var(`,
    `) + var(`,
    `,0rem));border-radius:var(`,
    `);box-sizing:border-box;background:var(`,
    `);box-shadow:`,
    `,inset 0 0 0 var(`,
    `,0rem) var(`,
    `,transparent);`
], ({ listWidth })=>listWidth || '100%', _Selecttokens.tokens.padding, _Selecttokens.tokens.dropdownBorderWidth, _Selecttokens.tokens.borderRadius, _Selecttokens.constants.background, _Selecttokens.constants.boxShadow, _Selecttokens.tokens.dropdownBorderWidth, _Selecttokens.tokens.dropdownBorderColor);
const Ul = _styledcomponents.default.ul.withConfig({
    displayName: "Select.styles__Ul",
    componentId: "sc-cc08f8f1-1"
})([
    `max-height:`,
    `;overflow-x:hidden;overflow-y:`,
    `;border-radius:calc(var(`,
    `) - 0.125rem - var(`,
    `,0rem));margin:0;padding:0;.`,
    `{box-shadow:none;}`
], ({ virtual, listMaxHeight })=>// eslint-disable-next-line no-nested-ternary
    virtual ? 'auto' : listMaxHeight ? (0, _utils.getCorrectHeight)(listMaxHeight) : 'auto', ({ virtual })=>virtual ? 'visible' : 'auto', _Selecttokens.tokens.borderRadius, _Selecttokens.tokens.dropdownBorderWidth, _Selecttokens.classes.emptyStateWrapper);
const StyledEmptyState = (0, _styledcomponents.default)(EmptyState).withConfig({
    displayName: "Select.styles__StyledEmptyState",
    componentId: "sc-cc08f8f1-2"
})([
    ``,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`
], _EmptyState.emptyStateTokens.borderRadius, _Selecttokens.tokens.textFieldBorderRadius, _EmptyState.emptyStateTokens.padding, _Selecttokens.tokens.emptyStatePadding, _EmptyState.emptyStateTokens.fontFamily, _Selecttokens.tokens.textFieldFontFamily, _EmptyState.emptyStateTokens.fontSize, _Selecttokens.tokens.textFieldFontSize, _EmptyState.emptyStateTokens.fontStyle, _Selecttokens.tokens.textFieldFontStyle, _EmptyState.emptyStateTokens.fontWeight, _Selecttokens.tokens.textFieldFontWeight, _EmptyState.emptyStateTokens.fontLetterSpacing, _Selecttokens.tokens.textFieldLetterSpacing, _EmptyState.emptyStateTokens.fontLineHeight, _Selecttokens.tokens.textFieldLineHeight);
const base = (0, _styledcomponents.css)([
    ``
]);
