"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 StyledArrow () {
        return StyledArrow;
    },
    get StyledChips () {
        return StyledChips;
    },
    get StyledComboboxInput () {
        return StyledComboboxInput;
    },
    get StyledComboboxInputHelper () {
        return StyledComboboxInputHelper;
    },
    get StyledComboboxTarget () {
        return StyledComboboxTarget;
    },
    get StyledContent () {
        return StyledContent;
    },
    get StyledLabel () {
        return StyledLabel;
    },
    get StyledText () {
        return StyledText;
    }
});
var _styled = /*#__PURE__*/ _interop_require_default(require("@emotion/styled"));
var _Icon = require("../../../../_Icon");
var _mixins = require("../../../../../mixins");
var _Comboboxtokens = require("../../Combobox.tokens");
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
var hasChips = _Comboboxtokens.classes.hasChips, innerLabelUp = _Comboboxtokens.classes.innerLabelUp, arrowInverse = _Comboboxtokens.classes.arrowInverse, comboboxTargetArrow = _Comboboxtokens.classes.comboboxTargetArrow, comboboxTargeText = _Comboboxtokens.classes.comboboxTargeText, comboboxTargetInput = _Comboboxtokens.classes.comboboxTargetInput, comboboxTargetLabel = _Comboboxtokens.classes.comboboxTargetLabel;
var StyledComboboxTarget = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e149tate0",
    label: "StyledComboboxTarget"
})("display:flex;align-items:center;gap:0.5rem;cursor:pointer;box-sizing:border-box;height:var(", _Comboboxtokens.tokens.targetHeight, ");width:var(", _Comboboxtokens.tokens.targetWidth, ");overflow:hidden;border-radius:var(", _Comboboxtokens.tokens.targetRadius, ");font-family:var(", _Comboboxtokens.tokens.targetFontFamily, ");font-size:var(", _Comboboxtokens.tokens.targetFontStyle, ");font-weight:var(", _Comboboxtokens.tokens.targetFontWeight, ");letter-spacing:var(", _Comboboxtokens.tokens.targetLetterSpacing, ");line-height:var(", _Comboboxtokens.tokens.targetLineHeight, ");color:var(", _Comboboxtokens.tokens.targetColor, ");background-color:", function(param) {
    var opened = param.opened;
    return opened ? "var(".concat(_Comboboxtokens.tokens.targetBackgroundColorOpen, ")") : "var(".concat(_Comboboxtokens.tokens.targetBackgroundColor, ")");
}, ";box-shadow:inset 0 0 0 0.0625rem\n        ", function(param) {
    var opened = param.opened;
    return opened ? "var(".concat(_Comboboxtokens.tokens.targetBorderColorOpen, ")") : "var(".concat(_Comboboxtokens.tokens.targetBorderColor, ")");
}, ";&:hover:not([disabled]):not([readonly]){background-color:", function(param) {
    var opened = param.opened;
    return opened ? "var(".concat(_Comboboxtokens.tokens.targetBackgroundColorOpen, ")") : "var(".concat(_Comboboxtokens.tokens.targetBackgroundColorHover, ")");
}, ";box-shadow:inset 0 0 0 0.0625rem\n            ", function(param) {
    var opened = param.opened;
    return opened ? "var(".concat(_Comboboxtokens.tokens.targetBorderColorOpen, ")") : "var(".concat(_Comboboxtokens.tokens.targetBorderColorHover, ")");
}, ";}&:active:not([disabled]):not([readonly]){background-color:", function(param) {
    var opened = param.opened;
    return opened ? "var(".concat(_Comboboxtokens.tokens.targetBackgroundColorOpen, ")") : "var(".concat(_Comboboxtokens.tokens.targetBackgroundColorActive, ")");
}, ";box-shadow:inset 0 0 0 0.0625rem\n            ", function(param) {
    var opened = param.opened;
    return opened ? "var(".concat(_Comboboxtokens.tokens.targetBorderColorOpen, ")") : "var(".concat(_Comboboxtokens.tokens.targetBorderColorActive, ")");
}, ";}padding:var(", _Comboboxtokens.tokens.targetPaddingWithInput, ");display:flex;justify-content:flex-start;&[disabled]{cursor:not-allowed;opacity:var(", _Comboboxtokens.tokens.disabledOpacity, ");}&[readonly]{cursor:default;.", String(comboboxTargetArrow), "{opacity:0.4;}}.", String(arrowInverse), "{transform:rotate(-180deg);}&.", String(hasChips), "{padding:var(", _Comboboxtokens.tokens.targetPaddingHasChips, ");}&.", String(innerLabelUp), "{.", String(comboboxTargetInput), ",.", String(comboboxTargeText), "{top:var(", _Comboboxtokens.tokens.targetInnerTop, ");}.", String(comboboxTargetLabel), "{top:var(", _Comboboxtokens.tokens.targetLabelInnerTop, ");font-family:var(", _Comboboxtokens.tokens.targetLabelInnerFontFamily, ");font-size:var(", _Comboboxtokens.tokens.targetLabelInnerFontSize, ");font-style:var(", _Comboboxtokens.tokens.targetLabelInnerFontStyle, ");font-weight:var(", _Comboboxtokens.tokens.targetLabelInnerFontWeight, ");letter-spacing:var(", _Comboboxtokens.tokens.targetLabelInnerLetterSpacing, ");line-height:var(", _Comboboxtokens.tokens.targetLabelInnerLineHeight, ");}}overflow:visible;--plasma_private-combobox-focus-size:0.0625rem;", (0, _mixins.addFocus)({
    hasTransition: false,
    outlineOffset: 'calc(-1 * var(--plasma_private-combobox-focus-size))',
    outlineRadius: "calc(var(".concat(_Comboboxtokens.tokens.targetRadius, ") + var(--plasma_private-combobox-focus-size))"),
    outlineSize: 'var(--plasma_private-combobox-focus-size)',
    customFocusRules: "\n            &:focus-within {\n                box-shadow: none;\n                background-color: var(".concat(_Comboboxtokens.tokens.targetBackgroundColorOpen, ");\n\n                &::before {\n                    box-shadow: inset 0 0 0 var(--plasma_private-combobox-focus-size) var(").concat(_Comboboxtokens.tokens.targetBorderColorOpen, ");\n                }\n            }\n        ")
}));
var StyledArrow = /*#__PURE__*/ (0, _styled.default)(_Icon.IconChevronDown, {
    target: "e149tate1",
    label: "StyledArrow"
})("transition:color 0.3s ease-in,transform 0.15s ease-in;pointer-events:none;user-select:none;position:absolute;right:var(", _Comboboxtokens.tokens.targetArrowRight, ");color:var(", _Comboboxtokens.tokens.targetArrowColor, ");");
var StyledContent = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e149tate2",
    label: "StyledContent"
})("&.", String(hasChips), "{border-radius:var(", _Comboboxtokens.tokens.chipBorderRadius, ");}font-family:var(", _Comboboxtokens.tokens.targetFontFamily, ");font-size:var(", _Comboboxtokens.tokens.targetFontSize, ");font-style:var(", _Comboboxtokens.tokens.targetFontStyle, ");font-weight:var(", _Comboboxtokens.tokens.targetFontWeight, ");letter-spacing:var(", _Comboboxtokens.tokens.targetLetterSpacing, ");line-height:var(", _Comboboxtokens.tokens.targetLineHeight, ");overflow:scroll;position:relative;width:100%;height:var(", _Comboboxtokens.tokens.chipHeight, ");display:inline-flex;align-items:center;gap:0.5rem;::-webkit-scrollbar{display:none;}scrollbar-width:none;overscroll-behavior:contain;");
var StyledComboboxInput = (0, /*#__PURE__*/ _styled.default)("input", {
    target: "e149tate3",
    label: "StyledComboboxInput"
})("position:relative;color:var(", _Comboboxtokens.tokens.targetColor, ");border:none;outline:none;caret-color:var(", _Comboboxtokens.tokens.focusColor, ");margin:0;padding:0;background:transparent;flex:1;min-width:50%;font-family:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;&::placeholder{color:var(", _Comboboxtokens.tokens.targetLabelColor, ");}&:disabled{cursor:not-allowed;}");
var StyledComboboxInputHelper = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e149tate4",
    label: "StyledComboboxInputHelper"
})("position:absolute;font-family:inherit;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;white-space:pre-wrap;visibility:hidden;overflow:hidden;");
var StyledText = (0, /*#__PURE__*/ _styled.default)("span", {
    target: "e149tate5",
    label: "StyledText"
})("white-space:nowrap;position:relative;user-select:none;color:var(", _Comboboxtokens.tokens.targetColor, ");");
var StyledChips = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e149tate6",
    label: "StyledChips"
})("display:flex;gap:var(", _Comboboxtokens.tokens.chipGap, ");user-select:none;");
var StyledLabel = (0, /*#__PURE__*/ _styled.default)("label", {
    target: "e149tate7",
    label: "StyledLabel"
})((0, _mixins.applyEllipsis)(), ";box-sizing:border-box;position:absolute;pointer-events:none;display:inline-flex;align-items:center;transition:all 0.1s ease-in-out;transform-origin:top left;width:100%;height:auto;color:var(", _Comboboxtokens.tokens.targetLabelColor, ");font-family:var(", _Comboboxtokens.tokens.targetFontFamily, ");font-size:var(", _Comboboxtokens.tokens.targetFontSize, ");font-style:var(", _Comboboxtokens.tokens.targetFontStyle, ");font-weight:var(", _Comboboxtokens.tokens.targetFontWeight, ");letter-spacing:var(", _Comboboxtokens.tokens.targetLetterSpacing, ");line-height:var(", _Comboboxtokens.tokens.targetLineHeight, ");");
