import './TextArea.styles_18hhjpn.css';
import { styled } from '@linaria/react';
import { tokens } from './TextArea.tokens.js';
import { component, mergeConfig } from '../../engines/common.js';
import { tooltipConfig } from '../Tooltip/Tooltip.js';

var mergedConfig = /*#__PURE__*/mergeConfig(tooltipConfig);
var Tooltip = /*#__PURE__*/component(mergedConfig);
var _exp = function _exp() {
  return Tooltip;
};
var Hint = /*#__PURE__*/styled(_exp())({
  name: "Hint",
  "class": "h1luq7vd",
  propsAsIs: true
});
var _exp2 = function _exp2() {
  return function (_ref) {
    var width = _ref.width;
    return width;
  };
};
var _exp3 = function _exp3() {
  return function (_ref2) {
    var isInnerLabel = _ref2.isInnerLabel;
    return isInnerLabel ? "var(".concat(tokens.titleCaptionInnerLabelOffset, ")") : "var(".concat(tokens.labelMarginBottom, ")");
  };
};
var OuterLabelWrapper = /*#__PURE__*/styled('div')({
  name: "OuterLabelWrapper",
  "class": "o1r1fvk8",
  propsAsIs: false,
  vars: {
    "o1r1fvk8-0": [/*#__PURE__*/_exp2()],
    "o1r1fvk8-1": [/*#__PURE__*/_exp3()]
  }
});
var StyledLabel = /*#__PURE__*/styled('div')({
  name: "StyledLabel",
  "class": "surmvwq",
  propsAsIs: false
});
var TitleCaption = /*#__PURE__*/styled('div')({
  name: "TitleCaption",
  "class": "t18bd513",
  propsAsIs: false
});
var StyledIndicatorWrapper = /*#__PURE__*/styled('div')({
  name: "StyledIndicatorWrapper",
  "class": "s7alcr2",
  propsAsIs: false
});
var _exp25 = function _exp25() {
  return function (_ref3) {
    var inheritFont = _ref3.inheritFont;
    return inheritFont ? 'inherit' : "var(".concat(tokens.labelOuterFontFamily, ", var(").concat(tokens.inputFontFamily, "))");
  };
};
var _exp26 = function _exp26() {
  return function (_ref4) {
    var inheritFont = _ref4.inheritFont;
    return inheritFont ? 'inherit' : "var(".concat(tokens.labelOuterFontSize, ", var(").concat(tokens.inputFontSize, "))");
  };
};
var _exp27 = function _exp27() {
  return function (_ref5) {
    var inheritFont = _ref5.inheritFont;
    return inheritFont ? 'inherit' : "var(".concat(tokens.labelOuterFontStyle, ", var(").concat(tokens.inputFontStyle, "))");
  };
};
var _exp28 = function _exp28() {
  return function (_ref6) {
    var inheritFont = _ref6.inheritFont;
    return inheritFont ? 'inherit' : "var(".concat(tokens.labelOuterFontWeight, ", var(").concat(tokens.inputFontWeight, "))");
  };
};
var _exp29 = function _exp29() {
  return function (_ref7) {
    var inheritFont = _ref7.inheritFont;
    return inheritFont ? 'inherit' : "var(".concat(tokens.labelOuterLetterSpacing, ", var(").concat(tokens.inputLetterSpacing, "))");
  };
};
var _exp30 = function _exp30() {
  return function (_ref8) {
    var inheritFont = _ref8.inheritFont;
    return inheritFont ? 'inherit' : "var(".concat(tokens.labelOuterLineHeight, ", var(").concat(tokens.inputLineHeight, "))");
  };
};
var StyledOptionalText = /*#__PURE__*/styled('span')({
  name: "StyledOptionalText",
  "class": "si9oz50",
  propsAsIs: false,
  vars: {
    "si9oz50-0": [/*#__PURE__*/_exp25()],
    "si9oz50-1": [/*#__PURE__*/_exp26()],
    "si9oz50-2": [/*#__PURE__*/_exp27()],
    "si9oz50-3": [/*#__PURE__*/_exp28()],
    "si9oz50-4": [/*#__PURE__*/_exp29()],
    "si9oz50-5": [/*#__PURE__*/_exp30()]
  }
});
var StyledHintWrapper = /*#__PURE__*/styled('div')({
  name: "StyledHintWrapper",
  "class": "s18tpn65",
  propsAsIs: false
});
var HintTargetWrapper = /*#__PURE__*/styled('div')({
  name: "HintTargetWrapper",
  "class": "h19sfsrt",
  propsAsIs: false
});
var HintIconWrapper = /*#__PURE__*/styled('div')({
  name: "HintIconWrapper",
  "class": "hfype23",
  propsAsIs: false
});
var _exp38 = function _exp38() {
  return function (_ref9) {
    var hasHeader = _ref9.hasHeader;
    return hasHeader ? 'unset' : "var(".concat(tokens.inputPaddingTop, ")");
  };
};
var _exp39 = function _exp39() {
  return function (_ref10) {
    var hasHelper = _ref10.hasHelper;
    return hasHelper ? "var(".concat(tokens.inputPaddingBottomWithHelpers, ")") : "var(".concat(tokens.inputPaddingBottom, ")");
  };
};
var _exp40 = function _exp40() {
  return function (_ref11) {
    var hasHelper = _ref11.hasHelper;
    return hasHelper ? "var(".concat(tokens.borderRadiusWithHelpers, ")") : "var(".concat(tokens.borderRadius, ")");
  };
};
var StyledTextAreaWrapper = /*#__PURE__*/styled('div')({
  name: "StyledTextAreaWrapper",
  "class": "s3wsw3p",
  propsAsIs: false,
  vars: {
    "s3wsw3p-0": [/*#__PURE__*/_exp38()],
    "s3wsw3p-1": [/*#__PURE__*/_exp39()],
    "s3wsw3p-2": [/*#__PURE__*/_exp40()]
  }
});
var _exp41 = function _exp41() {
  return function (_ref12) {
    var hasHeader = _ref12.hasHeader;
    return hasHeader ? "var(".concat(tokens.inputPaddingTop, ")") : 'unset';
  };
};
var StyledContentWrapper = /*#__PURE__*/styled('div')({
  name: "StyledContentWrapper",
  "class": "stc5t23",
  propsAsIs: false,
  vars: {
    "stc5t23-0": [/*#__PURE__*/_exp41()]
  }
});
var _exp43 = function _exp43() {
  return function (_ref13) {
    var hasHeader = _ref13.hasHeader;
    return hasHeader ? "var(".concat(tokens.inputPaddingTop, ")") : "var(".concat(tokens.rightContentTop, ")");
  };
};
var StyledContent = /*#__PURE__*/styled('div')({
  name: "StyledContent",
  "class": "salwx57",
  propsAsIs: false,
  vars: {
    "salwx57-0": [/*#__PURE__*/_exp43()]
  }
});
var StyledHeaderSlot = /*#__PURE__*/styled('div')({
  name: "StyledHeaderSlot",
  "class": "s18lndvq",
  propsAsIs: false
});
var _exp50 = function _exp50() {
  return function (_ref14) {
    var width = _ref14.width;
    return width;
  };
};
var StyledContainer = /*#__PURE__*/styled('div')({
  name: "StyledContainer",
  "class": "suev9vb",
  propsAsIs: false,
  vars: {
    "suev9vb-0": [/*#__PURE__*/_exp50()]
  }
});
var _exp53 = function _exp53() {
  return function (_ref15) {
    var resize = _ref15.resize;
    return resize || 'none';
  };
};
var _exp54 = function _exp54() {
  return function (_ref16) {
    var height = _ref16.height;
    return !Number.isNaN(Number(height)) ? "calc(".concat(height, "rem - 0.875rem)") : height || "var(".concat(tokens.inputHeight, ")");
  };
};
var _exp55 = function _exp55() {
  return function (_ref17) {
    var width = _ref17.width;
    return !Number.isNaN(Number(width)) ? "".concat(width, "rem") : width || "var(".concat(tokens.inputWidth, ")");
  };
};
var _exp56 = function _exp56() {
  return function (_ref18) {
    var rows = _ref18.rows;
    return rows ? 'unset' : 'var(--plasma_private-textarea-height)';
  };
};
var _exp57 = function _exp57() {
  return function (_ref19) {
    var cols = _ref19.cols;
    return cols ? 'unset' : 'var(--plasma_private-textarea-width)';
  };
};
var _exp59 = function _exp59() {
  return function (_ref20) {
    var applyCustomWidth = _ref20.applyCustomWidth;
    return applyCustomWidth ? 'var(--plasma_private-textarea-width)' : 'auto';
  };
};
var _exp61 = function _exp61() {
  return function (_ref21) {
    var hasContentRight = _ref21.hasContentRight;
    return hasContentRight ? "var(".concat(tokens.inputPaddingRightWithRightContent, ", 0)") : "var(".concat(tokens.inputPaddingRight, ", 0)");
  };
};
var _exp68 = function _exp68() {
  return function (_ref22) {
    var hasHelper = _ref22.hasHelper,
      rows = _ref22.rows;
    return hasHelper && !rows ? 'var(--plasma_private-textarea-input-with-helpers-height)' : 'var(--plasma_private-textarea-input-without-helpers-height)';
  };
};
var StyledTextArea = /*#__PURE__*/styled('textarea')({
  name: "StyledTextArea",
  "class": "s7jal92",
  propsAsIs: false,
  vars: {
    "s7jal92-0": [/*#__PURE__*/_exp53()],
    "s7jal92-1": [/*#__PURE__*/_exp54()],
    "s7jal92-2": [/*#__PURE__*/_exp55()],
    "s7jal92-3": [/*#__PURE__*/_exp56()],
    "s7jal92-4": [/*#__PURE__*/_exp57()],
    "s7jal92-5": [/*#__PURE__*/_exp59()],
    "s7jal92-6": [/*#__PURE__*/_exp61()],
    "s7jal92-7": [/*#__PURE__*/_exp68()]
  }
});
var _exp82 = function _exp82() {
  return function (_ref23) {
    var cols = _ref23.cols;
    return cols ? 'unset' : '0.0625rem !important';
  };
};
var _exp83 = function _exp83() {
  return function (_ref24) {
    var hasContentRight = _ref24.hasContentRight;
    return hasContentRight ? "var(".concat(tokens.inputPaddingRightWithRightContent, ", 0)") : "var(".concat(tokens.inputPaddingRight, ", 0)");
  };
};
var StyledHiddenTextArea = /*#__PURE__*/styled('textarea')({
  name: "StyledHiddenTextArea",
  "class": "s11kd6xq",
  propsAsIs: false,
  vars: {
    "s11kd6xq-0": [/*#__PURE__*/_exp82()],
    "s11kd6xq-1": [/*#__PURE__*/_exp83()]
  }
});
var StyledHelpers = /*#__PURE__*/styled('div')({
  name: "StyledHelpers",
  "class": "s14zw9ik",
  propsAsIs: false
});
var StyledOutsideHelpersWrapper = /*#__PURE__*/styled('div')({
  name: "StyledOutsideHelpersWrapper",
  "class": "sgr5lml",
  propsAsIs: false
});
var StyledLeftHelper = /*#__PURE__*/styled('span')({
  name: "StyledLeftHelper",
  "class": "s1etfemq",
  propsAsIs: false
});
var _exp110 = function _exp110() {
  return StyledLeftHelper;
};
var StyledRightHelper = /*#__PURE__*/styled(_exp110())({
  name: "StyledRightHelper",
  "class": "sf7nhlh",
  propsAsIs: true
});
var _exp115 = function _exp115() {
  return function (_ref25) {
    var hasContentRight = _ref25.hasContentRight;
    return hasContentRight ? "var(".concat(tokens.inputPaddingRightWithRightContent, ")") : "var(".concat(tokens.inputPaddingRight, ")");
  };
};
var StyledPlaceholder = /*#__PURE__*/styled('label')({
  name: "StyledPlaceholder",
  "class": "s4gk1z",
  propsAsIs: false,
  vars: {
    "s4gk1z-0": [/*#__PURE__*/_exp115()]
  }
});
var StyledIndicator = /*#__PURE__*/styled('div')({
  name: "StyledIndicator",
  "class": "s1h2xvub",
  propsAsIs: false
});

export { Hint, HintIconWrapper, HintTargetWrapper, OuterLabelWrapper, StyledContainer, StyledContent, StyledContentWrapper, StyledHeaderSlot, StyledHelpers, StyledHiddenTextArea, StyledHintWrapper, StyledIndicator, StyledIndicatorWrapper, StyledLabel, StyledLeftHelper, StyledOptionalText, StyledOutsideHelpersWrapper, StyledPlaceholder, StyledRightHelper, StyledTextArea, StyledTextAreaWrapper, TitleCaption };
//# sourceMappingURL=TextArea.styles.js.map
