"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 _styledcomponents = /*#__PURE__*/ _interop_require_default(require("styled-components"));
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 = (0, _styledcomponents.default)(Tooltip).withConfig({
    displayName: "TextArea.styles__Hint",
    componentId: "sc-41c960b5-0"
})([
    ``
]);
const OuterLabelWrapper = _styledcomponents.default.div.withConfig({
    displayName: "TextArea.styles__OuterLabelWrapper",
    componentId: "sc-41c960b5-1"
})([
    `display:flex;align-items:center;margin-bottom:`,
    `;`
], ({ isInnerLabel })=>isInnerLabel ? `var(${_TextAreatokens.tokens.titleCaptionInnerLabelOffset})` : `var(${_TextAreatokens.tokens.labelMarginBottom})`);
const StyledLabel = _styledcomponents.default.div.withConfig({
    displayName: "TextArea.styles__StyledLabel",
    componentId: "sc-41c960b5-2"
})([
    `position:relative;display:inline-flex;color:var(`,
    `,var(`,
    `));font-family:var(`,
    `,var(`,
    `));font-size:var(`,
    `,var(`,
    `));font-style:var(`,
    `,var(`,
    `));font-weight:var(`,
    `,var(`,
    `));letter-spacing:var(`,
    `,var(`,
    `));line-height:var(`,
    `,var(`,
    `));`
], _TextAreatokens.tokens.labelOuterColor, _TextAreatokens.tokens.inputColor, _TextAreatokens.tokens.labelOuterFontFamily, _TextAreatokens.tokens.inputFontFamily, _TextAreatokens.tokens.labelOuterFontSize, _TextAreatokens.tokens.inputFontSize, _TextAreatokens.tokens.labelOuterFontStyle, _TextAreatokens.tokens.inputFontStyle, _TextAreatokens.tokens.labelOuterFontWeight, _TextAreatokens.tokens.inputFontWeight, _TextAreatokens.tokens.labelOuterLetterSpacing, _TextAreatokens.tokens.inputLetterSpacing, _TextAreatokens.tokens.labelOuterLineHeight, _TextAreatokens.tokens.inputLineHeight);
const TitleCaption = _styledcomponents.default.div.withConfig({
    displayName: "TextArea.styles__TitleCaption",
    componentId: "sc-41c960b5-3"
})([
    `display:inline-block;margin-left:auto;font-family:var(`,
    `);font-size:var(`,
    `);font-style:var(`,
    `);font-weight:var(`,
    `);letter-spacing:var(`,
    `);line-height:var(`,
    `);`
], _TextAreatokens.tokens.titleCaptionFontFamily, _TextAreatokens.tokens.titleCaptionFontSize, _TextAreatokens.tokens.titleCaptionFontStyle, _TextAreatokens.tokens.titleCaptionFontWeight, _TextAreatokens.tokens.titleCaptionLetterSpacing, _TextAreatokens.tokens.titleCaptionLineHeight);
const StyledIndicatorWrapper = _styledcomponents.default.div.withConfig({
    displayName: "TextArea.styles__StyledIndicatorWrapper",
    componentId: "sc-41c960b5-4"
})([
    `position:relative;display:inline-flex;align-items:center;`
]);
const StyledOptionalText = _styledcomponents.default.span.withConfig({
    displayName: "TextArea.styles__StyledOptionalText",
    componentId: "sc-41c960b5-5"
})([
    `color:var(`,
    `);font-family:`,
    `;font-size:`,
    `;font-style:`,
    `;font-weight:`,
    `;letter-spacing:`,
    `;line-height:`,
    `;`
], _TextAreatokens.tokens.optionalColor, ({ inheritFont })=>inheritFont ? 'inherit' : `var(${_TextAreatokens.tokens.labelOuterFontFamily}, var(${_TextAreatokens.tokens.inputFontFamily}))`, ({ inheritFont })=>inheritFont ? 'inherit' : `var(${_TextAreatokens.tokens.labelOuterFontSize}, var(${_TextAreatokens.tokens.inputFontSize}))`, ({ inheritFont })=>inheritFont ? 'inherit' : `var(${_TextAreatokens.tokens.labelOuterFontStyle}, var(${_TextAreatokens.tokens.inputFontStyle}))`, ({ inheritFont })=>inheritFont ? 'inherit' : `var(${_TextAreatokens.tokens.labelOuterFontWeight}, var(${_TextAreatokens.tokens.inputFontWeight}))`, ({ inheritFont })=>inheritFont ? 'inherit' : `var(${_TextAreatokens.tokens.labelOuterLetterSpacing}, var(${_TextAreatokens.tokens.inputLetterSpacing}))`, ({ inheritFont })=>inheritFont ? 'inherit' : `var(${_TextAreatokens.tokens.labelOuterLineHeight}, var(${_TextAreatokens.tokens.inputLineHeight}))`);
const StyledHintWrapper = _styledcomponents.default.div.withConfig({
    displayName: "TextArea.styles__StyledHintWrapper",
    componentId: "sc-41c960b5-6"
})([
    `display:inline-flex;line-height:0;margin:var(`,
    `);&.`,
    `{position:absolute;margin:0;inset:var(`,
    `);}`
], _TextAreatokens.tokens.hintMargin, _TextAreatokens.classes.innerLabelPlacement, _TextAreatokens.tokens.hintInnerLabelPlacementOffset);
const HintTargetWrapper = _styledcomponents.default.div.withConfig({
    displayName: "TextArea.styles__HintTargetWrapper",
    componentId: "sc-41c960b5-7"
})([
    `color:var(`,
    `);width:var(`,
    `);height:var(`,
    `);display:flex;justify-content:center;align-items:center;`
], _TextAreatokens.tokens.hintIconColor, _TextAreatokens.tokens.hintTargetSize, _TextAreatokens.tokens.hintTargetSize);
const HintIconWrapper = _styledcomponents.default.div.withConfig({
    displayName: "TextArea.styles__HintIconWrapper",
    componentId: "sc-41c960b5-8"
})([
    ``
]);
const StyledTextAreaWrapper = _styledcomponents.default.div.withConfig({
    displayName: "TextArea.styles__StyledTextAreaWrapper",
    componentId: "sc-41c960b5-9"
})([
    `display:flex;flex-direction:column;background-color:var(`,
    `);flex:`,
    `;min-height:0;`,
    `:`,
    `;padding-top:`,
    `;padding-bottom:`,
    `;border-radius:`,
    `;&:after{content:'';position:absolute;z-index:-2;inset:0;}`
], _TextAreatokens.tokens.inputBackgroundColor, ({ hasExplicitHeight })=>hasExplicitHeight ? '1' : 'unset', _TextAreatokens.privateTokens.wrapperPaddingBottomInnerLabel, ({ hasHelper, isClear })=>hasHelper && !isClear ? '0rem' : `var(${_TextAreatokens.tokens.inputPaddingBottomInnerLabel}, var(${_TextAreatokens.tokens.inputPaddingBottom}))`, ({ hasHeader })=>hasHeader ? 'unset' : `var(${_TextAreatokens.tokens.inputPaddingTop})`, ({ hasHelper, isClear })=>hasHelper && !isClear ? `var(${_TextAreatokens.tokens.inputPaddingBottomWithHelpers})` : `var(${_TextAreatokens.tokens.inputPaddingBottom})`, ({ hasHelper, isClear })=>hasHelper && !isClear ? `var(${_TextAreatokens.tokens.borderRadiusWithHelpers})` : `var(${_TextAreatokens.tokens.borderRadius})`);
const StyledContentWrapper = _styledcomponents.default.div.withConfig({
    displayName: "TextArea.styles__StyledContentWrapper",
    componentId: "sc-41c960b5-10"
})([
    `position:relative;width:100%;height:0;padding-top:`,
    `;`
], ({ hasHeader })=>hasHeader ? `var(${_TextAreatokens.tokens.inputPaddingTop})` : 'unset');
const StyledContent = _styledcomponents.default.div.withConfig({
    displayName: "TextArea.styles__StyledContent",
    componentId: "sc-41c960b5-11"
})([
    `position:absolute;display:flex;align-items:center;justify-content:center;z-index:1;color:var(`,
    `);top:`,
    `;right:var(`,
    `);height:var(`,
    `);width:var(`,
    `,auto);&:hover{color:var(`,
    `);}&:active{color:var(`,
    `);}`
], _TextAreatokens.tokens.rightContentColor, ({ hasHeader })=>hasHeader ? `var(${_TextAreatokens.tokens.inputPaddingTop})` : `var(${_TextAreatokens.tokens.rightContentTop})`, _TextAreatokens.tokens.rightContentRight, _TextAreatokens.tokens.rightContentHeight, _TextAreatokens.tokens.rightContentWidth, _TextAreatokens.tokens.rightContentColorHover, _TextAreatokens.tokens.rightContentColorActive);
const StyledHeaderSlot = _styledcomponents.default.div.withConfig({
    displayName: "TextArea.styles__StyledHeaderSlot",
    componentId: "sc-41c960b5-12"
})([
    `display:flex;flex-direction:column;`
]);
const DividerWrapper = _styledcomponents.default.div.withConfig({
    displayName: "TextArea.styles__DividerWrapper",
    componentId: "sc-41c960b5-13"
})([
    `background:var(`,
    `);`
], _TextAreatokens.tokens.backgroundColor);
const Divider = _styledcomponents.default.div.withConfig({
    displayName: "TextArea.styles__Divider",
    componentId: "sc-41c960b5-14"
})([
    `height:0.0625rem;background:var(`,
    `);`
], _TextAreatokens.tokens.dividerColor);
const StyledContainer = _styledcomponents.default.div.withConfig({
    displayName: "TextArea.styles__StyledContainer",
    componentId: "sc-41c960b5-15"
})([
    `display:flex;flex-direction:column;flex:`,
    `;min-height:0;width:100%;position:relative;`
], ({ hasExplicitHeight })=>hasExplicitHeight ? '1' : 'unset');
const StyledTextArea = _styledcomponents.default.textarea.withConfig({
    displayName: "TextArea.styles__StyledTextArea",
    componentId: "sc-41c960b5-16"
})([
    `display:block;box-sizing:border-box;outline:none;border:none;-webkit-appearance:none;background-color:transparent;color:var(`,
    `);caret-color:var(`,
    `);resize:`,
    `;width:`,
    `;`,
    `:`,
    `;height:`,
    `;min-height:var(`,
    `);padding-right:`,
    `;padding-left:var(`,
    `,0);padding-top:0;padding-bottom:0;font-family:var(`,
    `);font-size:var(`,
    `);font-style:var(`,
    `);font-weight:var(`,
    `);letter-spacing:var(`,
    `);line-height:var(`,
    `);&::placeholder{opacity:0;}&:read-only{cursor:default;}&:focus:not(:disabled){color:var(`,
    `);}&::-webkit-scrollbar{width:var(`,
    `);}&::-webkit-scrollbar-thumb{background-color:var(`,
    `);background-clip:content-box;border:var(`,
    `) solid transparent;border-radius:var(`,
    `,1rem);}&::-webkit-scrollbar-track{background-color:var(`,
    `);background-clip:content-box;border:var(`,
    `) solid transparent;border-radius:var(`,
    `,1rem);}`
], _TextAreatokens.tokens.inputColor, _TextAreatokens.tokens.inputCaretColor, ({ resize })=>resize || 'none', ({ cols })=>cols ? 'unset' : '100%', _TextAreatokens.privateTokens.inputActualHeight, ({ hasExplicitHeight })=>hasExplicitHeight ? '100%' : `calc(var(${_TextAreatokens.tokens.inputHeight}) - var(${_TextAreatokens.tokens.inputPaddingBottom}))`, ({ hasExplicitHeight, rows })=>rows || hasExplicitHeight ? 'unset' : `var(${_TextAreatokens.privateTokens.inputActualHeight})`, _TextAreatokens.tokens.inputMinHeight, ({ hasContentRight })=>hasContentRight ? `var(${_TextAreatokens.tokens.inputPaddingRightWithRightContent}, 0)` : `var(${_TextAreatokens.tokens.inputPaddingRight}, 0)`, _TextAreatokens.tokens.inputPaddingLeft, _TextAreatokens.tokens.inputFontFamily, _TextAreatokens.tokens.inputFontSize, _TextAreatokens.tokens.inputFontStyle, _TextAreatokens.tokens.inputFontWeight, _TextAreatokens.tokens.inputLetterSpacing, _TextAreatokens.tokens.inputLineHeight, _TextAreatokens.tokens.inputColorFocus, _TextAreatokens.tokens.scrollbarWidth, _TextAreatokens.tokens.scrollbarThumbBackgroundColor, _TextAreatokens.tokens.scrollbarBorderWidth, _TextAreatokens.tokens.scrollbarBorderRadius, _TextAreatokens.tokens.scrollbarTrackBackgroundColor, _TextAreatokens.tokens.scrollbarBorderWidth, _TextAreatokens.tokens.scrollbarBorderRadius);
const StyledHiddenTextArea = _styledcomponents.default.textarea.withConfig({
    displayName: "TextArea.styles__StyledHiddenTextArea",
    componentId: "sc-41c960b5-17"
})([
    ``,
    `:calc(var(`,
    `,0.0625rem) + var(`,
    `,0rem));width:`,
    `;max-height:none !important;min-height:var(`,
    `) !important;visibility:hidden !important;overflow:hidden !important;position:absolute !important;z-index:-1000 !important;top:0 !important;left:0 !important;right:`,
    `;border-width:0;padding-right:`,
    `;padding-left:var(`,
    `,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(`,
    `);font-size:var(`,
    `);font-style:var(`,
    `);font-weight:var(`,
    `);letter-spacing:var(`,
    `);line-height:var(`,
    `);`
], _TextAreatokens.privateTokens.scrollbarCompensationPadding, _TextAreatokens.tokens.borderSize, _TextAreatokens.tokens.scrollbarMarginRight, ({ cols })=>cols ? 'unset' : '100%', _TextAreatokens.tokens.inputMinHeight, ({ cols })=>cols ? 'unset' : '0.0625rem !important', ({ hasContentRight })=>hasContentRight ? `calc(var(${_TextAreatokens.privateTokens.scrollbarCompensationPadding}, 0) + var(${_TextAreatokens.tokens.inputPaddingRightWithRightContent}, 0))` : `calc(var(${_TextAreatokens.privateTokens.scrollbarCompensationPadding}, 0) + var(${_TextAreatokens.tokens.inputPaddingRight}, 0))`, _TextAreatokens.tokens.inputPaddingLeft, _TextAreatokens.tokens.inputFontFamily, _TextAreatokens.tokens.inputFontSize, _TextAreatokens.tokens.inputFontStyle, _TextAreatokens.tokens.inputFontWeight, _TextAreatokens.tokens.inputLetterSpacing, _TextAreatokens.tokens.inputLineHeight);
const StyledHelpers = _styledcomponents.default.div.withConfig({
    displayName: "TextArea.styles__StyledHelpers",
    componentId: "sc-41c960b5-18"
})([
    `box-sizing:border-box;display:flex;justify-content:space-between;transition:background-color 0.1s ease-in-out;background-color:var(`,
    `);padding-top:var(`,
    `);padding-right:var(`,
    `);padding-bottom:var(`,
    `);padding-left:var(`,
    `);border-bottom-left-radius:var(`,
    `);border-bottom-right-radius:var(`,
    `);`
], _TextAreatokens.tokens.helpersBackgroundColor, _TextAreatokens.tokens.helpersPaddingTop, _TextAreatokens.tokens.helpersPaddingRight, _TextAreatokens.tokens.helpersPaddingBottom, _TextAreatokens.tokens.helpersPaddingLeft, _TextAreatokens.tokens.borderRadius, _TextAreatokens.tokens.borderRadius);
const StyledOutsideHelpersWrapper = _styledcomponents.default.div.withConfig({
    displayName: "TextArea.styles__StyledOutsideHelpersWrapper",
    componentId: "sc-41c960b5-19"
})([
    `box-sizing:border-box;display:flex;justify-content:space-between;padding-top:var(`,
    `);padding-right:var(`,
    `);padding-bottom:var(`,
    `);padding-left:var(`,
    `);`
], _TextAreatokens.tokens.outsideHelpersPaddingTop, _TextAreatokens.tokens.outsideHelpersPaddingRight, _TextAreatokens.tokens.outsideHelpersPaddingBottom, _TextAreatokens.tokens.outsideHelpersPaddingLeft);
const StyledLeftHelper = _styledcomponents.default.span.withConfig({
    displayName: "TextArea.styles__StyledLeftHelper",
    componentId: "sc-41c960b5-20"
})([
    `overflow:var(`,
    `,hidden);text-overflow:var(`,
    `,ellipsis);white-space:var(`,
    `,nowrap);display:block;font-family:var(`,
    `);font-size:var(`,
    `);font-style:var(`,
    `);font-weight:var(`,
    `);letter-spacing:var(`,
    `);line-height:var(`,
    `);color:var(`,
    `);&.`,
    `{color:var(`,
    `,var(`,
    `));}`
], _TextAreatokens.tokens.leftHelperOverflow, _TextAreatokens.tokens.leftHelperTextOverflow, _TextAreatokens.tokens.leftHelperWhiteSpace, _TextAreatokens.tokens.helpersFontFamily, _TextAreatokens.tokens.helpersFontSize, _TextAreatokens.tokens.helpersFontStyle, _TextAreatokens.tokens.helpersFontWeight, _TextAreatokens.tokens.helpersLetterSpacing, _TextAreatokens.tokens.helpersLineHeight, _TextAreatokens.tokens.leftHelperColor, _TextAreatokens.classes.leftHelperFocus, _TextAreatokens.tokens.leftHelperColorFocus, _TextAreatokens.tokens.leftHelperColor);
const StyledRightHelper = (0, _styledcomponents.default)(StyledLeftHelper).withConfig({
    displayName: "TextArea.styles__StyledRightHelper",
    componentId: "sc-41c960b5-21"
})([
    `color:var(`,
    `);margin-left:auto;`
], _TextAreatokens.tokens.rightHelperColor);
const StyledPlaceholder = _styledcomponents.default.label.withConfig({
    displayName: "TextArea.styles__StyledPlaceholder",
    componentId: "sc-41c960b5-22"
})([
    `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(`,
    `,var(`,
    `));width:100%;height:auto;top:var(`,
    `);padding-left:var(`,
    `);padding-right:`,
    `;font-family:var(`,
    `);font-size:var(`,
    `);font-style:var(`,
    `);font-weight:var(`,
    `);letter-spacing:var(`,
    `);line-height:var(`,
    `);`
], _TextAreatokens.tokens.labelInnerColor, _TextAreatokens.tokens.placeholderColor, _TextAreatokens.tokens.inputPaddingTop, _TextAreatokens.tokens.inputPaddingLeft, ({ hasContentRight })=>hasContentRight ? `var(${_TextAreatokens.tokens.inputPaddingRightWithRightContent})` : `var(${_TextAreatokens.tokens.inputPaddingRight})`, _TextAreatokens.tokens.inputFontFamily, _TextAreatokens.tokens.inputFontSize, _TextAreatokens.tokens.inputFontStyle, _TextAreatokens.tokens.inputFontWeight, _TextAreatokens.tokens.inputLetterSpacing, _TextAreatokens.tokens.inputLineHeight);
const StyledIndicator = _styledcomponents.default.div.withConfig({
    displayName: "TextArea.styles__StyledIndicator",
    componentId: "sc-41c960b5-23"
})([
    `position:absolute;border-radius:50%;background-color:var(`,
    `);&.`,
    `{width:var(`,
    `);height:var(`,
    `);inset:var(`,
    `);&.`,
    `{inset:var(`,
    `);&.`,
    `{right:calc( -1 * var(`,
    `) + var(`,
    `,0px) );}}}&.`,
    `{width:var(`,
    `);height:var(`,
    `);inset:var(`,
    `);&.`,
    `{inset:var(`,
    `);}}`
], _TextAreatokens.tokens.indicatorColor, _TextAreatokens.classes.outerLabelPlacement, _TextAreatokens.tokens.indicatorSizeOuter, _TextAreatokens.tokens.indicatorSizeOuter, _TextAreatokens.tokens.indicatorLabelPlacementOuter, _TextAreatokens.classes.requiredAlignRight, _TextAreatokens.tokens.indicatorLabelPlacementOuterRight, _TextAreatokens.classes.hasHint, _TextAreatokens.tokens.indicatorSizeOuter, _TextAreatokens.tokens.indicatorLabelPlacementHintOuterRight, _TextAreatokens.classes.innerLabelPlacement, _TextAreatokens.tokens.indicatorSizeInner, _TextAreatokens.tokens.indicatorSizeInner, _TextAreatokens.tokens.indicatorLabelPlacementInner, _TextAreatokens.classes.requiredAlignRight, _TextAreatokens.tokens.indicatorLabelPlacementInnerRight);
