"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 StyledArrow () {
        return StyledArrow;
    },
    get StyledLeftHelper () {
        return StyledLeftHelper;
    },
    get StyledTextField () {
        return StyledTextField;
    },
    get sizeMap () {
        return sizeMap;
    }
});
const _styled = /*#__PURE__*/ _interop_require_default(require("@emotion/styled"));
const _engines = require("../../../../../../engines");
const _Icon = require("../../../../../_Icon");
const _TextField = require("../../../../../TextField");
const _Selecttokens = require("../../../../Select.tokens");
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
const mergedConfig = (0, _engines.mergeConfig)(_TextField.textFieldConfig);
const TextField = (0, _engines.component)(mergedConfig);
const StyledTextField = /*#__PURE__*/ (0, _styled.default)(TextField, {
    target: "e1k7wxib0",
    label: "StyledTextField"
})(_TextField.textFieldTokens.color, ":var(", _Selecttokens.tokens.textFieldColor, ");", _TextField.textFieldTokens.backgroundColor, ":", ({ opened })=>opened ? `var(${_Selecttokens.tokens.textFieldBackgroundColorFocus})` : `var(${_Selecttokens.tokens.textFieldBackgroundColor})`, ";", _TextField.textFieldTokens.borderColor, ":", ({ opened })=>opened ? `var(${_Selecttokens.tokens.textFieldBorderColorFocus})` : `var(${_Selecttokens.tokens.textFieldBorderColor})`, ";", _TextField.textFieldTokens.labelColor, ":var(", _Selecttokens.tokens.textFieldLabelColor, ");", _TextField.textFieldTokens.leftHelperColor, ":var(", _Selecttokens.tokens.textFieldLeftHelperColor, ");", _TextField.textFieldTokens.colorReadOnly, ":var(", _Selecttokens.tokens.textFieldColorReadOnly, ");", _TextField.textFieldTokens.backgroundColorReadOnly, ":var(", _Selecttokens.tokens.textFieldBackgroundColorReadOnly, ");", _TextField.textFieldTokens.placeholderColorReadOnly, ":var(", _Selecttokens.tokens.textFieldPlaceholderColorReadOnly, ");", _TextField.textFieldTokens.leftHelperColorReadOnly, ":var(", _Selecttokens.tokens.textFieldLeftHelperColor, ");", _TextField.textFieldTokens.labelColorReadOnly, ":var(", _Selecttokens.tokens.textFieldLabelColor, ");", _TextField.textFieldTokens.borderColorReadOnly, ":var(", _Selecttokens.tokens.textFieldBorderColorReadOnly, ");", _TextField.textFieldTokens.readOnlyOpacity, ":var(", _Selecttokens.tokens.textFieldReadOnlyOpacity, ");", _TextField.textFieldTokens.placeholderColor, ":", ({ opened })=>opened ? `var(${_Selecttokens.tokens.textFieldPlaceholderColorFocus})` : `var(${_Selecttokens.tokens.textFieldPlaceholderColor})`, ";", _TextField.textFieldTokens.placeholderColorFocus, ":", ({ opened })=>opened ? `var(${_Selecttokens.tokens.textFieldPlaceholderColorFocus})` : `var(${_Selecttokens.tokens.textFieldPlaceholderColor})`, ";", _TextField.textFieldTokens.backgroundColorHover, ":", ({ opened })=>opened ? `var(${_Selecttokens.tokens.textFieldBackgroundColorFocus})` : `var(${_Selecttokens.tokens.textFieldBackgroundColorHover})`, ";", _TextField.textFieldTokens.borderColorHover, ":", ({ opened })=>opened ? `var(${_Selecttokens.tokens.textFieldBorderColorFocus})` : `var(${_Selecttokens.tokens.textFieldBorderColorHover})`, ";", _TextField.textFieldTokens.borderColorFocus, ":var(", _Selecttokens.tokens.textFieldBorderColorFocus, ");", _TextField.textFieldTokens.optionalColor, ":var(", _Selecttokens.tokens.textFieldOptionalColor, ");", _TextField.textFieldTokens.height, ":var(", _Selecttokens.tokens.textFieldHeight, ");", _TextField.textFieldTokens.borderWidth, ":var(", _Selecttokens.tokens.textFieldBorderWidth, ");", _TextField.textFieldTokens.borderRadius, ":var(", _Selecttokens.tokens.textFieldBorderRadius, ");", _TextField.textFieldTokens.padding, ":var(", _Selecttokens.tokens.textFieldPadding, ");", _TextField.textFieldTokens.paddingWithChips, ":var(", _Selecttokens.tokens.textFieldPaddingWithChips, ");", _TextField.textFieldTokens.leftContentMargin, ":var(", _Selecttokens.tokens.textFieldLeftContentMargin, ");", _TextField.textFieldTokens.rightContentMargin, ":var(", _Selecttokens.tokens.textFieldRightContentMargin, ");", _TextField.textFieldTokens.rightContentWithHintMargin, ":var(", _Selecttokens.tokens.textFieldRightContentWithHintMargin, ");", _TextField.textFieldTokens.contentRightWrapperGap, ":var(", _Selecttokens.tokens.textFieldContentRightWrapperGap, ");", _TextField.textFieldTokens.contentRightWrapperMargin, ":var(", _Selecttokens.tokens.textFieldContentRightWrapperMargin, ");", _TextField.textFieldTokens.fontFamily, ":var(", _Selecttokens.tokens.textFieldFontFamily, ");", _TextField.textFieldTokens.fontStyle, ":var(", _Selecttokens.tokens.textFieldFontStyle, ");", _TextField.textFieldTokens.fontSize, ":var(", _Selecttokens.tokens.textFieldFontSize, ");", _TextField.textFieldTokens.fontWeight, ":var(", _Selecttokens.tokens.textFieldFontWeight, ");", _TextField.textFieldTokens.letterSpacing, ":var(", _Selecttokens.tokens.textFieldLetterSpacing, ");", _TextField.textFieldTokens.lineHeight, ":var(", _Selecttokens.tokens.textFieldLineHeight, ");", _TextField.textFieldTokens.contentSlotColor, ":var(", _Selecttokens.tokens.textFieldContentSlotColor, ");", _TextField.textFieldTokens.contentSlotColorHover, ":var(", _Selecttokens.tokens.textFieldContentSlotColorHover, ");", _TextField.textFieldTokens.contentSlotColorActive, ":var(", _Selecttokens.tokens.textFieldContentSlotColorActive, ");", _TextField.textFieldTokens.contentSlotRightColor, ":var(", _Selecttokens.tokens.textFieldContentSlotRightColor, ");", _TextField.textFieldTokens.contentSlotRightColorHover, ":var(", _Selecttokens.tokens.textFieldContentSlotRightColorHover, ");", _TextField.textFieldTokens.contentSlotRightColorActive, ":var(", _Selecttokens.tokens.textFieldContentSlotRightColorActive, ");", _TextField.textFieldTokens.labelOffset, ":var(", _Selecttokens.tokens.textFieldLabelOffset, ");", _TextField.textFieldTokens.labelFontFamily, ":var(", _Selecttokens.tokens.textFieldLabelFontFamily, ");", _TextField.textFieldTokens.labelFontStyle, ":var(", _Selecttokens.tokens.textFieldLabelFontStyle, ");", _TextField.textFieldTokens.labelFontSize, ":var(", _Selecttokens.tokens.textFieldLabelFontSize, ");", _TextField.textFieldTokens.labelFontWeight, ":var(", _Selecttokens.tokens.textFieldLabelFontWeight, ");", _TextField.textFieldTokens.labelLetterSpacing, ":var(", _Selecttokens.tokens.textFieldLabelLetterSpacing, ");", _TextField.textFieldTokens.labelLineHeight, ":var(", _Selecttokens.tokens.textFieldLabelLineHeight, ");", _TextField.textFieldTokens.labelInnerFontFamily, ":var(", _Selecttokens.tokens.textFieldLabelInnerFontFamily, ");", _TextField.textFieldTokens.labelInnerFontStyle, ":var(", _Selecttokens.tokens.textFieldLabelInnerFontStyle, ");", _TextField.textFieldTokens.labelInnerFontSize, ":var(", _Selecttokens.tokens.textFieldLabelInnerFontSize, ");", _TextField.textFieldTokens.labelInnerFontWeight, ":var(", _Selecttokens.tokens.textFieldLabelInnerFontWeight, ");", _TextField.textFieldTokens.labelInnerLetterSpacing, ":var(", _Selecttokens.tokens.textFieldLabelInnerLetterSpacing, ");", _TextField.textFieldTokens.labelInnerLineHeight, ":var(", _Selecttokens.tokens.textFieldLabelInnerLineHeight, ");", _TextField.textFieldTokens.labelInnerPadding, ":var(", _Selecttokens.tokens.textFieldLabelInnerPadding, ");", _TextField.textFieldTokens.contentLabelInnerPadding, ":var(", _Selecttokens.tokens.textFieldContentLabelInnerPadding, ");", _TextField.textFieldTokens.titleCaptionColor, ":var(", _Selecttokens.tokens.textFieldTitleCaptionColor, ");", _TextField.textFieldTokens.titleCaptionInnerLabelOffset, ":var(", _Selecttokens.tokens.textFieldTitleCaptionInnerLabelOffset, ");", _TextField.textFieldTokens.titleCaptionFontFamily, ":var(", _Selecttokens.tokens.textFieldTitleCaptionFontFamily, ");", _TextField.textFieldTokens.titleCaptionFontStyle, ":var(", _Selecttokens.tokens.textFieldTitleCaptionFontStyle, ");", _TextField.textFieldTokens.titleCaptionFontSize, ":var(", _Selecttokens.tokens.textFieldTitleCaptionFontSize, ");", _TextField.textFieldTokens.titleCaptionFontWeight, ":var(", _Selecttokens.tokens.textFieldTitleCaptionFontWeight, ");", _TextField.textFieldTokens.titleCaptionLetterSpacing, ":var(", _Selecttokens.tokens.textFieldTitleCaptionLetterSpacing, ");", _TextField.textFieldTokens.titleCaptionLineHeight, ":var(", _Selecttokens.tokens.textFieldTitleCaptionLineHeight, ");", _TextField.textFieldTokens.leftHelperOffset, ":var(", _Selecttokens.tokens.textFieldLeftHelperOffset, ");", _TextField.textFieldTokens.leftHelperFontFamily, ":var(", _Selecttokens.tokens.textFieldLeftHelperFontFamily, ");", _TextField.textFieldTokens.leftHelperFontStyle, ":var(", _Selecttokens.tokens.textFieldLeftHelperFontStyle, ");", _TextField.textFieldTokens.leftHelperFontSize, ":var(", _Selecttokens.tokens.textFieldLeftHelperFontSize, ");", _TextField.textFieldTokens.leftHelperFontWeight, ":var(", _Selecttokens.tokens.textFieldLeftHelperFontWeight, ");", _TextField.textFieldTokens.leftHelperLetterSpacing, ":var(", _Selecttokens.tokens.textFieldLeftHelperLetterSpacing, ");", _TextField.textFieldTokens.leftHelperLineHeight, ":var(", _Selecttokens.tokens.textFieldLeftHelperLineHeight, ");", _TextField.textFieldTokens.textBeforeColor, ":var(", _Selecttokens.tokens.textFieldTextBeforeColor, ");", _TextField.textFieldTokens.textAfterColor, ":var(", _Selecttokens.tokens.textFieldTextAfterColor, ");", _TextField.textFieldTokens.textBeforeMargin, ":var(", _Selecttokens.tokens.textFieldTextBeforeMargin, ");", _TextField.textFieldTokens.textAfterMargin, ":var(", _Selecttokens.tokens.textFieldTextAfterMargin, ");", _TextField.textFieldTokens.disabledOpacity, ":var(", _Selecttokens.tokens.textFieldDisabledOpacity, ");", _TextField.textFieldTokens.hintCustomIconTargetSize, ":var(", _Selecttokens.tokens.textFieldHintCustomIconTargetSize, ");", _TextField.textFieldTokens.hintMargin, ":var(", _Selecttokens.tokens.textFieldHintMargin, ");", _TextField.textFieldTokens.hintTargetSize, ":var(", _Selecttokens.tokens.textFieldHintTargetSize, ");", _TextField.textFieldTokens.hintIconColor, ":var(", _Selecttokens.tokens.textFieldHintIconColor, ");", _TextField.textFieldTokens.hintInnerLabelPlacementOffset, ":var(", _Selecttokens.tokens.textFieldHintInnerLabelPlacementOffset, ");", _TextField.textFieldTokens.clearHintInnerLabelPlacementOffset, ":var(", _Selecttokens.tokens.textFieldClearHintInnerLabelPlacementOffset, ");", _TextField.textFieldTokens.tooltipBackgroundColor, ":var(", _Selecttokens.tokens.textFieldTooltipBackgroundColor, ");", _TextField.textFieldTokens.tooltipBoxShadow, ":var(", _Selecttokens.tokens.textFieldTooltipBoxShadow, ");", _TextField.textFieldTokens.tooltipColor, ":var(", _Selecttokens.tokens.textFieldTooltipColor, ");", _TextField.textFieldTokens.tooltipPaddingTop, ":var(", _Selecttokens.tokens.textFieldTooltipPaddingTop, ");", _TextField.textFieldTokens.tooltipPaddingRight, ":var(", _Selecttokens.tokens.textFieldTooltipPaddingRight, ");", _TextField.textFieldTokens.tooltipPaddingBottom, ":var(", _Selecttokens.tokens.textFieldTooltipPaddingBottom, ");", _TextField.textFieldTokens.tooltipPaddingLeft, ":var(", _Selecttokens.tokens.textFieldTooltipPaddingLeft, ");", _TextField.textFieldTokens.tooltipMinHeight, ":var(", _Selecttokens.tokens.textFieldTooltipMinHeight, ");", _TextField.textFieldTokens.tooltipBorderRadius, ":var(", _Selecttokens.tokens.textFieldTooltipBorderRadius, ");", _TextField.textFieldTokens.tooltipTextFontFamily, ":var(", _Selecttokens.tokens.textFieldTooltipTextFontFamily, ");", _TextField.textFieldTokens.tooltipTextFontSize, ":var(", _Selecttokens.tokens.textFieldTooltipTextFontSize, ");", _TextField.textFieldTokens.tooltipTextFontStyle, ":var(", _Selecttokens.tokens.textFieldTooltipTextFontStyle, ");", _TextField.textFieldTokens.tooltipTextFontWeight, ":var(", _Selecttokens.tokens.textFieldTooltipTextFontWeight, ");", _TextField.textFieldTokens.tooltipTextFontLetterSpacing, ":var(", _Selecttokens.tokens.textFieldTooltipTextFontLetterSpacing, ");", _TextField.textFieldTokens.tooltipTextFontLineHeight, ":var(", _Selecttokens.tokens.textFieldTooltipTextFontLineHeight, ");", _TextField.textFieldTokens.tooltipContentLeftMargin, ":var(", _Selecttokens.tokens.textFieldTooltipContentLeftMargin, ");", _TextField.textFieldTokens.tooltipArrowMaskWidth, ":var(", _Selecttokens.tokens.textFieldTooltipArrowMaskWidth, ");", _TextField.textFieldTokens.tooltipArrowMaskHeight, ":var(", _Selecttokens.tokens.textFieldTooltipArrowMaskHeight, ");", _TextField.textFieldTokens.tooltipArrowMaskImage, ":var(", _Selecttokens.tokens.textFieldTooltipArrowMaskImage, ");", _TextField.textFieldTokens.tooltipArrowHeight, ":var(", _Selecttokens.tokens.textFieldTooltipArrowHeight, ");", _TextField.textFieldTokens.tooltipArrowEdgeMargin, ":var(", _Selecttokens.tokens.textFieldTooltipArrowEdgeMargin, ");", _TextField.textFieldTokens.tooltipArrowBackground, ":var(", _Selecttokens.tokens.textFieldTooltipArrowBackground, ");", _TextField.textFieldTokens.chipHeight, ":var(", _Selecttokens.tokens.textFieldChipHeight, ");", _TextField.textFieldTokens.chipBorderRadius, ":var(", _Selecttokens.tokens.textFieldChipBorderRadius, ");", _TextField.textFieldTokens.chipGap, ":var(", _Selecttokens.tokens.textFieldChipGap, ");", _TextField.textFieldTokens.chipColor, ":var(", _Selecttokens.tokens.textFieldChipColor, ");", _TextField.textFieldTokens.chipColorHover, ":var(", _Selecttokens.tokens.textFieldChipColorHover, ");", _TextField.textFieldTokens.chipBackground, ":var(", _Selecttokens.tokens.textFieldChipBackground, ");", _TextField.textFieldTokens.chipBackgroundHover, ":var(", _Selecttokens.tokens.textFieldChipBackgroundHover, ");", _TextField.textFieldTokens.chipBackgroundActive, ":var(", _Selecttokens.tokens.textFieldChipBackgroundActive, ");", _TextField.textFieldTokens.chipColorActive, ":var(", _Selecttokens.tokens.textFieldChipColorActive, ");", _TextField.textFieldTokens.chipCloseIconColor, ":var(", _Selecttokens.tokens.textFieldChipCloseIconColor, ");", _TextField.textFieldTokens.chipCloseIconColorHover, ":var(", _Selecttokens.tokens.textFieldChipCloseIconColorHover, ");", _TextField.textFieldTokens.chipCloseIconColorReadonly, ":var(", _Selecttokens.tokens.textFieldChipCloseIconColorReadonly, ");", _TextField.textFieldTokens.chipOutlineSize, ":var(", _Selecttokens.tokens.textFieldChipOutlineSize, ");", _TextField.textFieldTokens.chipWidth, ":var(", _Selecttokens.tokens.textFieldChipWidth, ");", _TextField.textFieldTokens.chipPadding, ":var(", _Selecttokens.tokens.textFieldChipPadding, ");", _TextField.textFieldTokens.chipCloseIconSize, ":var(", _Selecttokens.tokens.textFieldChipCloseIconSize, ");", _TextField.textFieldTokens.chipFontFamily, ":var(", _Selecttokens.tokens.textFieldChipFontFamily, ");", _TextField.textFieldTokens.chipFontSize, ":var(", _Selecttokens.tokens.textFieldChipFontSize, ");", _TextField.textFieldTokens.chipFontStyle, ":var(", _Selecttokens.tokens.textFieldChipFontStyle, ");", _TextField.textFieldTokens.chipFontWeight, ":var(", _Selecttokens.tokens.textFieldChipFontWeight, ");", _TextField.textFieldTokens.chipLetterSpacing, ":var(", _Selecttokens.tokens.textFieldChipLetterSpacing, ");", _TextField.textFieldTokens.chipLineHeight, ":var(", _Selecttokens.tokens.textFieldChipLineHeight, ");", _TextField.textFieldTokens.chipColorReadOnly, ":var(", _Selecttokens.tokens.textFieldChipColor, ");", _TextField.textFieldTokens.chipColorReadOnlyHover, ":var(", _Selecttokens.tokens.textFieldChipColor, ");", _TextField.textFieldTokens.chipBackgroundReadOnly, ":var(", _Selecttokens.tokens.textFieldChipBackground, ");", _TextField.textFieldTokens.chipBackgroundReadOnlyHover, ":var(", _Selecttokens.tokens.textFieldChipBackgroundHover, ");", _TextField.textFieldTokens.chipClearContentMarginLeft, ":var(", _Selecttokens.tokens.textFieldChipClearContentMarginLeft, ");", _TextField.textFieldTokens.chipClearContentMarginRight, ":var(", _Selecttokens.tokens.textFieldChipClearContentMarginRight, ");", _TextField.textFieldTokens.chipsFlexWrap, ":var(", _Selecttokens.tokens.textFieldChipsFlexWrap, ");", _TextField.textFieldTokens.scrollableWrapperOverflow, ":var(", _Selecttokens.tokens.textFieldScrollableWrapperOverflow, ");", _TextField.textFieldTokens.scrollableWrapperHeight, ":var(", _Selecttokens.tokens.textFieldScrollableWrapperHeight, ");", _TextField.textFieldTokens.inputContainerDisplay, ":var(", _Selecttokens.tokens.textFieldInputContainerDisplay, ");", _TextField.textFieldTokens.indicatorColor, ":var(", _Selecttokens.tokens.textFieldIndicatorColor, ");", _TextField.textFieldTokens.indicatorSizeInner, ":var(", _Selecttokens.tokens.textFieldIndicatorSizeInner, ");", _TextField.textFieldTokens.indicatorSizeOuter, ":var(", _Selecttokens.tokens.textFieldIndicatorSizeOuter, ");", _TextField.textFieldTokens.indicatorLabelPlacementInner, ":var(", _Selecttokens.tokens.textFieldIndicatorLabelPlacementInner, ");", _TextField.textFieldTokens.indicatorLabelPlacementOuter, ":var(", _Selecttokens.tokens.textFieldIndicatorLabelPlacementOuter, ");", _TextField.textFieldTokens.indicatorLabelPlacementInnerRight, ":var(", _Selecttokens.tokens.textFieldIndicatorLabelPlacementInnerRight, ");", _TextField.textFieldTokens.indicatorLabelPlacementOuterRight, ":var(", _Selecttokens.tokens.textFieldIndicatorLabelPlacementOuterRight, ");", _TextField.textFieldTokens.clearIndicatorLabelPlacementInner, ":var(", _Selecttokens.tokens.textFieldClearIndicatorLabelPlacementInner, ");", _TextField.textFieldTokens.clearIndicatorLabelPlacementInnerRight, ":var(", _Selecttokens.tokens.textFieldClearIndicatorLabelPlacementInnerRight, ");", _TextField.textFieldTokens.clearIndicatorHintInnerRight, ":var(", _Selecttokens.tokens.textFieldClearIndicatorHintInnerRight, ");", _TextField.textFieldTokens.focusColor, ":var(", _Selecttokens.tokens.textFieldFocusColor, ");", _TextField.textFieldTokens.boxShadow, ":var(", _Selecttokens.tokens.textFieldBoxShadow, ");", _TextField.textFieldTokens.boxShadowSecondary, ":var(", _Selecttokens.tokens.textFieldBoxShadowSecondary, ");&:not([readonly]),&:not([readonly]) input,&:not([readonly]) label{cursor:pointer;}");
const IconArrowWrapper = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1k7wxib1",
    label: "IconArrowWrapper"
})("line-height:0;color:var(", _Selecttokens.tokens.disclosureIconColor, ");cursor:", ({ disabled, readOnly })=>disabled || readOnly ? 'inherit' : 'pointer', ";.", _Selecttokens.classes.arrowInverse, "{transform:rotate(-180deg);}&:hover,&:active{color:", ({ disabled, readOnly })=>disabled || readOnly ? `var(${_Selecttokens.tokens.disclosureIconColor})` : `var(${_Selecttokens.tokens.disclosureIconColorHover})`, ";}opacity:", ({ readOnly })=>readOnly ? `var(${_Selecttokens.tokens.disclosureIconOpacityReadOnly})` : '', ";");
const sizeMap = {
    xs: '1rem',
    s: '1.5rem'
};
const StyledArrow = /*#__PURE__*/ (0, _styled.default)(_Icon.IconDisclosureDownCentered, {
    target: "e1k7wxib2",
    label: "StyledArrow"
})("width:", ({ size = 'xs' })=>`var(${_Selecttokens.tokens.disclosureIconSize}, ${sizeMap[size]})`, ";height:", ({ size = 'xs' })=>`var(${_Selecttokens.tokens.disclosureIconSize}, ${sizeMap[size]})`, ";");
const StyledLeftHelper = (0, /*#__PURE__*/ _styled.default)("span", {
    target: "e1k7wxib3",
    label: "StyledLeftHelper"
})("margin:0;padding:0;");
