"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 Divider () {
        return Divider;
    },
    get DividerWrapper () {
        return DividerWrapper;
    },
    get Hint () {
        return Hint;
    },
    get HintIconWrapper () {
        return HintIconWrapper;
    },
    get HintTargetWrapper () {
        return HintTargetWrapper;
    },
    get OuterLabelWrapper () {
        return OuterLabelWrapper;
    },
    get StyledContainer () {
        return StyledContainer;
    },
    get StyledContent () {
        return StyledContent;
    },
    get StyledContentWrapper () {
        return StyledContentWrapper;
    },
    get StyledHeaderSlot () {
        return StyledHeaderSlot;
    },
    get StyledHelpers () {
        return StyledHelpers;
    },
    get StyledHiddenTextArea () {
        return StyledHiddenTextArea;
    },
    get StyledHintWrapper () {
        return StyledHintWrapper;
    },
    get StyledIndicator () {
        return StyledIndicator;
    },
    get StyledIndicatorWrapper () {
        return StyledIndicatorWrapper;
    },
    get StyledLabel () {
        return StyledLabel;
    },
    get StyledLeftHelper () {
        return StyledLeftHelper;
    },
    get StyledOptionalText () {
        return StyledOptionalText;
    },
    get StyledOutsideHelpersWrapper () {
        return StyledOutsideHelpersWrapper;
    },
    get StyledPlaceholder () {
        return StyledPlaceholder;
    },
    get StyledRightHelper () {
        return StyledRightHelper;
    },
    get StyledTextArea () {
        return StyledTextArea;
    },
    get StyledTextAreaWrapper () {
        return StyledTextAreaWrapper;
    },
    get TitleCaption () {
        return TitleCaption;
    }
});
const _styled = /*#__PURE__*/ _interop_require_default(require("@emotion/styled"));
const _mixins = require("../../mixins");
const _Tooltip = require("../Tooltip");
const _engines = require("../../engines");
const _TextAreatokens = require("./TextArea.tokens");
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
const mergedConfig = (0, _engines.mergeConfig)(_Tooltip.tooltipConfig);
const Tooltip = (0, _engines.component)(mergedConfig);
const Hint = /*#__PURE__*/ (0, _styled.default)(Tooltip, {
    target: "e1wd9wtc0",
    label: "Hint"
})();
const OuterLabelWrapper = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1wd9wtc1",
    label: "OuterLabelWrapper"
})("display:flex;align-items:center;margin-bottom:", ({ isInnerLabel })=>isInnerLabel ? `var(${_TextAreatokens.tokens.titleCaptionInnerLabelOffset})` : `var(${_TextAreatokens.tokens.labelMarginBottom})`, ";");
const StyledLabel = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1wd9wtc2",
    label: "StyledLabel"
})("position:relative;display:inline-flex;color:var(", _TextAreatokens.tokens.labelOuterColor, ",var(", _TextAreatokens.tokens.inputColor, "));font-family:var(", _TextAreatokens.tokens.labelOuterFontFamily, ",var(", _TextAreatokens.tokens.inputFontFamily, "));font-size:var(", _TextAreatokens.tokens.labelOuterFontSize, ",var(", _TextAreatokens.tokens.inputFontSize, "));font-style:var(", _TextAreatokens.tokens.labelOuterFontStyle, ",var(", _TextAreatokens.tokens.inputFontStyle, "));font-weight:var(", _TextAreatokens.tokens.labelOuterFontWeight, ",var(", _TextAreatokens.tokens.inputFontWeight, "));letter-spacing:var(", _TextAreatokens.tokens.labelOuterLetterSpacing, ",var(", _TextAreatokens.tokens.inputLetterSpacing, "));line-height:var(", _TextAreatokens.tokens.labelOuterLineHeight, ",var(", _TextAreatokens.tokens.inputLineHeight, "));");
const TitleCaption = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1wd9wtc3",
    label: "TitleCaption"
})("display:inline-block;margin-left:auto;font-family:var(", _TextAreatokens.tokens.titleCaptionFontFamily, ");font-size:var(", _TextAreatokens.tokens.titleCaptionFontSize, ");font-style:var(", _TextAreatokens.tokens.titleCaptionFontStyle, ");font-weight:var(", _TextAreatokens.tokens.titleCaptionFontWeight, ");letter-spacing:var(", _TextAreatokens.tokens.titleCaptionLetterSpacing, ");line-height:var(", _TextAreatokens.tokens.titleCaptionLineHeight, ");");
const StyledIndicatorWrapper = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1wd9wtc4",
    label: "StyledIndicatorWrapper"
})("position:relative;display:inline-flex;align-items:center;");
const StyledOptionalText = (0, /*#__PURE__*/ _styled.default)("span", {
    target: "e1wd9wtc5",
    label: "StyledOptionalText"
})("color:var(", _TextAreatokens.tokens.optionalColor, ");font-family:", ({ inheritFont })=>inheritFont ? 'inherit' : `var(${_TextAreatokens.tokens.labelOuterFontFamily}, var(${_TextAreatokens.tokens.inputFontFamily}))`, ";font-size:", ({ inheritFont })=>inheritFont ? 'inherit' : `var(${_TextAreatokens.tokens.labelOuterFontSize}, var(${_TextAreatokens.tokens.inputFontSize}))`, ";font-style:", ({ inheritFont })=>inheritFont ? 'inherit' : `var(${_TextAreatokens.tokens.labelOuterFontStyle}, var(${_TextAreatokens.tokens.inputFontStyle}))`, ";font-weight:", ({ inheritFont })=>inheritFont ? 'inherit' : `var(${_TextAreatokens.tokens.labelOuterFontWeight}, var(${_TextAreatokens.tokens.inputFontWeight}))`, ";letter-spacing:", ({ inheritFont })=>inheritFont ? 'inherit' : `var(${_TextAreatokens.tokens.labelOuterLetterSpacing}, var(${_TextAreatokens.tokens.inputLetterSpacing}))`, ";line-height:", ({ inheritFont })=>inheritFont ? 'inherit' : `var(${_TextAreatokens.tokens.labelOuterLineHeight}, var(${_TextAreatokens.tokens.inputLineHeight}))`, ";");
const StyledHintWrapper = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1wd9wtc6",
    label: "StyledHintWrapper"
})("display:inline-flex;line-height:0;margin:var(", _TextAreatokens.tokens.hintMargin, ");&.", _TextAreatokens.classes.innerLabelPlacement, "{position:absolute;margin:0;inset:var(", _TextAreatokens.tokens.hintInnerLabelPlacementOffset, ");}");
const HintTargetWrapper = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1wd9wtc7",
    label: "HintTargetWrapper"
})("color:var(", _TextAreatokens.tokens.hintIconColor, ");width:var(", _TextAreatokens.tokens.hintTargetSize, ");height:var(", _TextAreatokens.tokens.hintTargetSize, ");display:flex;justify-content:center;align-items:center;");
const HintIconWrapper = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1wd9wtc8",
    label: "HintIconWrapper"
})();
const StyledTextAreaWrapper = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1wd9wtc9",
    label: "StyledTextAreaWrapper"
})("display:flex;flex-direction:column;background-color:var(", _TextAreatokens.tokens.inputBackgroundColor, ");flex:", ({ hasExplicitHeight })=>hasExplicitHeight ? '1' : 'unset', ";min-height:0;padding-top:", ({ hasHeader })=>hasHeader ? 'unset' : `var(${_TextAreatokens.tokens.inputPaddingTop})`, ";padding-bottom:", ({ hasHelper })=>hasHelper ? `var(${_TextAreatokens.tokens.inputPaddingBottomWithHelpers})` : `var(${_TextAreatokens.tokens.inputPaddingBottom})`, ";border-radius:", ({ hasHelper })=>hasHelper ? `var(${_TextAreatokens.tokens.borderRadiusWithHelpers})` : `var(${_TextAreatokens.tokens.borderRadius})`, ";&:after{content:'';position:absolute;z-index:-2;inset:0;}");
const StyledContentWrapper = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1wd9wtc10",
    label: "StyledContentWrapper"
})("position:relative;width:100%;height:0;padding-top:", ({ hasHeader })=>hasHeader ? `var(${_TextAreatokens.tokens.inputPaddingTop})` : 'unset', ";");
const StyledContent = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1wd9wtc11",
    label: "StyledContent"
})("position:absolute;display:flex;align-items:center;z-index:1;color:var(", _TextAreatokens.tokens.rightContentColor, ");top:", ({ hasHeader })=>hasHeader ? `var(${_TextAreatokens.tokens.inputPaddingTop})` : `var(${_TextAreatokens.tokens.rightContentTop})`, ";right:var(", _TextAreatokens.tokens.rightContentRight, ");height:var(", _TextAreatokens.tokens.rightContentHeight, ");&:hover{color:var(", _TextAreatokens.tokens.rightContentColorHover, ");}&:active{color:var(", _TextAreatokens.tokens.rightContentColorActive, ");}");
const StyledHeaderSlot = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1wd9wtc12",
    label: "StyledHeaderSlot"
})("display:flex;flex-direction:column;");
const DividerWrapper = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1wd9wtc13",
    label: "DividerWrapper"
})("background:var(", _TextAreatokens.tokens.backgroundColor, ");");
const Divider = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1wd9wtc14",
    label: "Divider"
})("height:0.0625rem;background:var(", _TextAreatokens.tokens.dividerColor, ");");
const StyledContainer = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1wd9wtc15",
    label: "StyledContainer"
})("display:flex;flex-direction:column;flex:", ({ hasExplicitHeight })=>hasExplicitHeight ? '1' : 'unset', ";min-height:0;width:100%;position:relative;");
const StyledTextArea = (0, /*#__PURE__*/ _styled.default)("textarea", {
    target: "e1wd9wtc16",
    label: "StyledTextArea"
})("display:block;box-sizing:border-box;outline:none;border:none;-webkit-appearance:none;background-color:transparent;color:var(", _TextAreatokens.tokens.inputColor, ");caret-color:var(", _TextAreatokens.tokens.inputCaretColor, ");resize:", ({ resize })=>resize || 'none', ";width:", ({ cols })=>cols ? 'unset' : '100%', ";--plasma_private-textarea-input-actual-height:", ({ hasExplicitHeight })=>hasExplicitHeight ? '100%' : `calc(var(${_TextAreatokens.tokens.inputHeight}) - var(${_TextAreatokens.tokens.inputPaddingBottom}))`, ";height:", ({ hasExplicitHeight, rows })=>rows || hasExplicitHeight ? 'unset' : 'var(--plasma_private-textarea-input-actual-height)', ";min-height:var(", _TextAreatokens.tokens.inputMinHeight, ");padding-right:", ({ hasContentRight })=>hasContentRight ? `var(${_TextAreatokens.tokens.inputPaddingRightWithRightContent}, 0)` : `var(${_TextAreatokens.tokens.inputPaddingRight}, 0)`, ";padding-left:var(", _TextAreatokens.tokens.inputPaddingLeft, ",0);padding-top:0;padding-bottom:0;font-family:var(", _TextAreatokens.tokens.inputFontFamily, ");font-size:var(", _TextAreatokens.tokens.inputFontSize, ");font-style:var(", _TextAreatokens.tokens.inputFontStyle, ");font-weight:var(", _TextAreatokens.tokens.inputFontWeight, ");letter-spacing:var(", _TextAreatokens.tokens.inputLetterSpacing, ");line-height:var(", _TextAreatokens.tokens.inputLineHeight, ");&::placeholder{opacity:0;}&:read-only{cursor:default;}&:focus:not(:disabled){color:var(", _TextAreatokens.tokens.inputColorFocus, ");}&::-webkit-scrollbar{width:var(", _TextAreatokens.tokens.scrollbarWidth, ");}&::-webkit-scrollbar-thumb{background-color:var(", _TextAreatokens.tokens.scrollbarThumbBackgroundColor, ");background-clip:content-box;border:var(", _TextAreatokens.tokens.scrollbarBorderWidth, ") solid transparent;border-radius:1rem;}&::-webkit-scrollbar-track{background-color:var(", _TextAreatokens.tokens.scrollbarTrackBackgroundColor, ");background-clip:content-box;border:var(", _TextAreatokens.tokens.scrollbarBorderWidth, ") solid transparent;border-radius:1rem;}");
const StyledHiddenTextArea = (0, /*#__PURE__*/ _styled.default)("textarea", {
    target: "e1wd9wtc17",
    label: "StyledHiddenTextArea"
})("max-height:none !important;min-height:var(", _TextAreatokens.tokens.inputMinHeight, ") !important;visibility:hidden !important;overflow:hidden !important;position:absolute !important;z-index:-1000 !important;top:0 !important;left:0 !important;right:", ({ cols })=>cols ? 'unset' : '0.0625rem !important', ";border-width:0;padding-right:", ({ hasContentRight })=>hasContentRight ? `var(${_TextAreatokens.tokens.inputPaddingRightWithRightContent}, 0)` : `var(${_TextAreatokens.tokens.inputPaddingRight}, 0)`, ";padding-left:var(", _TextAreatokens.tokens.inputPaddingLeft, ",0);padding-top:0;padding-bottom:0;box-sizing:border-box;text-indent:0;text-rendering:auto;text-transform:none;tab-size:8;font-family:var(", _TextAreatokens.tokens.inputFontFamily, ");font-size:var(", _TextAreatokens.tokens.inputFontSize, ");font-style:var(", _TextAreatokens.tokens.inputFontStyle, ");font-weight:var(", _TextAreatokens.tokens.inputFontWeight, ");letter-spacing:var(", _TextAreatokens.tokens.inputLetterSpacing, ");line-height:var(", _TextAreatokens.tokens.inputLineHeight, ");");
const StyledHelpers = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1wd9wtc18",
    label: "StyledHelpers"
})("box-sizing:border-box;display:flex;justify-content:space-between;transition:background-color 0.1s ease-in-out;background-color:var(", _TextAreatokens.tokens.helpersBackgroundColor, ");padding-top:var(", _TextAreatokens.tokens.helpersPaddingTop, ");padding-right:var(", _TextAreatokens.tokens.helpersPaddingRight, ");padding-bottom:var(", _TextAreatokens.tokens.helpersPaddingBottom, ");padding-left:var(", _TextAreatokens.tokens.helpersPaddingLeft, ");border-bottom-left-radius:var(", _TextAreatokens.tokens.borderRadius, ");border-bottom-right-radius:var(", _TextAreatokens.tokens.borderRadius, ");");
const StyledOutsideHelpersWrapper = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1wd9wtc19",
    label: "StyledOutsideHelpersWrapper"
})("box-sizing:border-box;display:flex;justify-content:space-between;padding-top:var(", _TextAreatokens.tokens.clearHelpersPaddingTop, ");");
const StyledLeftHelper = (0, /*#__PURE__*/ _styled.default)("span", {
    target: "e1wd9wtc20",
    label: "StyledLeftHelper"
})((0, _mixins.applyEllipsis)(), ";display:block;font-family:var(", _TextAreatokens.tokens.helpersFontFamily, ");font-size:var(", _TextAreatokens.tokens.helpersFontSize, ");font-style:var(", _TextAreatokens.tokens.helpersFontStyle, ");font-weight:var(", _TextAreatokens.tokens.helpersFontWeight, ");letter-spacing:var(", _TextAreatokens.tokens.helpersLetterSpacing, ");line-height:var(", _TextAreatokens.tokens.helpersLineHeight, ");color:var(", _TextAreatokens.tokens.leftHelperColor, ");&.", _TextAreatokens.classes.leftHelperFocus, "{color:var(", _TextAreatokens.tokens.leftHelperColorFocus, ",var(", _TextAreatokens.tokens.leftHelperColor, "));}");
const StyledRightHelper = /*#__PURE__*/ (0, _styled.default)(StyledLeftHelper, {
    target: "e1wd9wtc21",
    label: "StyledRightHelper"
})("color:var(", _TextAreatokens.tokens.rightHelperColor, ");margin-left:auto;");
const StyledPlaceholder = (0, /*#__PURE__*/ _styled.default)("label", {
    target: "e1wd9wtc22",
    label: "StyledPlaceholder"
})("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;color:var(", _TextAreatokens.tokens.placeholderColor, ");width:100%;height:auto;top:var(", _TextAreatokens.tokens.inputPaddingTop, ");padding-left:var(", _TextAreatokens.tokens.inputPaddingLeft, ");padding-right:", ({ hasContentRight })=>hasContentRight ? `var(${_TextAreatokens.tokens.inputPaddingRightWithRightContent})` : `var(${_TextAreatokens.tokens.inputPaddingRight})`, ";font-family:var(", _TextAreatokens.tokens.inputFontFamily, ");font-size:var(", _TextAreatokens.tokens.inputFontSize, ");font-style:var(", _TextAreatokens.tokens.inputFontStyle, ");font-weight:var(", _TextAreatokens.tokens.inputFontWeight, ");letter-spacing:var(", _TextAreatokens.tokens.inputLetterSpacing, ");line-height:var(", _TextAreatokens.tokens.inputLineHeight, ");");
const StyledIndicator = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1wd9wtc23",
    label: "StyledIndicator"
})("position:absolute;border-radius:50%;background-color:var(", _TextAreatokens.tokens.indicatorColor, ");&.", _TextAreatokens.classes.outerLabelPlacement, "{width:var(", _TextAreatokens.tokens.indicatorSizeOuter, ");height:var(", _TextAreatokens.tokens.indicatorSizeOuter, ");inset:var(", _TextAreatokens.tokens.indicatorLabelPlacementOuter, ");&.", _TextAreatokens.classes.requiredAlignRight, "{inset:var(", _TextAreatokens.tokens.indicatorLabelPlacementOuterRight, ");&.", _TextAreatokens.classes.hasHint, "{right:calc(\n                    -1 * var(", _TextAreatokens.tokens.indicatorSizeOuter, ") + var(", _TextAreatokens.tokens.indicatorLabelPlacementHintOuterRight, ",0px)\n                );}}}&.", _TextAreatokens.classes.innerLabelPlacement, "{width:var(", _TextAreatokens.tokens.indicatorSizeInner, ");height:var(", _TextAreatokens.tokens.indicatorSizeInner, ");inset:var(", _TextAreatokens.tokens.indicatorLabelPlacementInner, ");&.", _TextAreatokens.classes.requiredAlignRight, "{inset:var(", _TextAreatokens.tokens.indicatorLabelPlacementInnerRight, ");}}");
