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I,GAAgB,QAAgB,CAAC,EAAGlB,EAAIP,EAAQ9C,kBAAkB,IACrFuG,SAAU,WACVzB,KAAMA,EACNjB,GAAIA,EACJQ,SAAUA,EACViD,SAAU8D,EACV9E,SAAUA,EACVpB,YAAaA,EACbnH,MAAOA,EACPyG,eAAgB0I,EAAG1I,GAAgB,QAAgB,CAAC,EAAGnB,EAAIP,EAAQ7C,uBAAuB,IAAO,QAAgB,CAAC,EAAGoD,EAAIP,EAAQ5C,2BAA4BoG,KAC5JD,EAAY,CACb,YAAa,SAEjB,IACI8G,EAAa,CAACrK,EAAQ3C,gBAAiBmG,GAAYxD,EAAQzC,6BAE/D,GAAI0J,EAAsB,CACxB,IAAIqD,EAAe,GAEfpD,IACFoD,EAAelC,EAAQ,GAAGrO,OAAOmN,EAAe,KAAO,IAAInN,OAAOmN,IAGpE,IAAIqD,EAAcnC,EAAQ,GAAGrO,OAAOuQ,GAAcvQ,OAAOiO,GAAa,GAAGjO,OAAOiO,GAAWjO,OAAOuQ,GAC9FE,GAAuB,SAAoBjC,EAAa,GAAGxO,OAAOiO,EAAW,YAAYjO,OAAOmN,EAAe,oBAAqBC,EAAmB,CACzJa,UAAWA,EACXd,cAAeA,IAEbuD,EAAiB,CAACzK,EAAQ1C,oBAAqBkG,GAAYxD,EAAQxC,0BACvE,OAAO,QAAI,MAAO,CAChB+C,IAAK8J,EACLnE,QAAS+D,EACT,YAAa,QACZC,GAAkB,QAAI,MAAO,CAC9B3J,IAAKkK,EACL7J,KAAM,SACN,YAAa,SACb,cAAe,OACf,aAAc4J,EACd,YAAa,QACZD,GACL,CAEA,OAAO,QAAI,MAAO,CAChBhK,IAAK8J,EACLnE,QAAS+D,EACT,YAAa,QACZC,EACL,EACA9N,UAAWA,EACXyD,YAAaA,EACb,iBAAkB,mBACjBqD,GACL,G","sources":["webpack://nocodenodeweb/./node_modules/@paypalcorp/pp-react-text-input/dist/@paypalcorp/pp-react-text-input.esm.js"],"sourcesContent":["import _extends from '@babel/runtime/helpers/esm/extends';\nimport _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';\nimport React, { useMemo, useEffect, forwardRef, useRef, useState, useContext } from 'react';\nimport _defineProperty from '@babel/runtime/helpers/esm/defineProperty';\nimport { CriticalIcon, CheckmarkBackgroundIcon } from '@paypalcorp/pp-react-icons';\nimport { css, useTheme, jsx, ClassNames } from '@emotion/react';\nimport _taggedTemplateLiteral from '@babel/runtime/helpers/esm/taggedTemplateLiteral';\nimport { math, remToPx } from 'polished';\nimport { textStyles } from '@paypalcorp/pp-react-text';\nimport { devWarning, utilStyles } from '@paypalcorp/pp-react-utils';\nimport _slicedToArray from '@babel/runtime/helpers/esm/slicedToArray';\nimport { IntlContext, getFormattedMessage } from '@paypalcorp/pp-react-intl';\n\nvar _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44, _templateObject45, _templateObject46, _templateObject47, _templateObject48, _templateObject49, _templateObject50;\nfunction styles(tokens) {\n /* istanbul ignore next */\n if (!Object.keys(tokens).length) {\n devWarning('Missing Emotion theme. Use ThemeProvider from @emotion/react to pass a valid theme from pp-react.');\n return {};\n }\n\n var sysBorderThicknessNormal = tokens.sysBorderThicknessNormal,\n sysBorderThicknessEmphasis = tokens.sysBorderThicknessEmphasis,\n sysBorderRadiusSm = tokens.sysBorderRadiusSm,\n sysColorBackgroundSurface = tokens.sysColorBackgroundSurface,\n sysColorBackgroundMediumContrast = tokens.sysColorBackgroundMediumContrast,\n sysSpaceTiny = tokens.sysSpaceTiny,\n sysSpaceXs = tokens.sysSpaceXs,\n sysSpaceSm = tokens.sysSpaceSm,\n sysSpaceMd = tokens.sysSpaceMd,\n sysSpaceXl = tokens.sysSpaceXl,\n sysMotionDurationMoveSmall = tokens.sysMotionDurationMoveSmall,\n sysSizeTapTargetDefault = tokens.sysSizeTapTargetDefault,\n sysColorStructureBorderHighContrast = tokens.sysColorStructureBorderHighContrast,\n sysColorErrorMain = tokens.sysColorErrorMain,\n sysColorSuccessMain = tokens.sysColorSuccessMain,\n sysTypographyBodyLineHeight = tokens.sysTypographyBodyLineHeight,\n sysTypographyCaptionLineHeight = tokens.sysTypographyCaptionLineHeight,\n sysColorBackgroundHighContrast = tokens.sysColorBackgroundHighContrast,\n sysSizeFieldLg = tokens.sysSizeFieldLg,\n sysSizeFieldSm = tokens.sysSizeFieldSm;\n var backgroundSpaceTop = math(\"(\".concat(sysSizeFieldLg, \" - \").concat(sysTypographyBodyLineHeight, \") / 2\"));\n var backgroundSpaceBottom = math(\"(\".concat(sysSizeFieldLg, \" - \").concat(sysTypographyBodyLineHeight, \") / 2\")); // 64px - 8px - 20px - 2px - 24px\n\n var backgroundSpaceBottomEntered = math(\"\".concat(sysSizeFieldLg, \" - \").concat(sysSpaceSm, \" - \").concat(sysTypographyCaptionLineHeight, \" - \").concat(sysSpaceTiny, \" - \").concat(sysTypographyBodyLineHeight));\n var ppuiV2CurrencyInputMinHeight = math('4rem - 0.125rem'); //subtract borders in currency input\n\n var _utilStyles = utilStyles(tokens),\n focusStyles = _utilStyles.focusStyles,\n ellipsis = _utilStyles.ellipsis,\n screenReader = _utilStyles.screenReader,\n variables = _utilStyles.variables;\n\n var _textStyles = textStyles(tokens),\n caption = _textStyles.caption,\n body = _textStyles.body,\n fieldLabelSm = _textStyles.fieldLabelSm;\n\n var focusOffsetElement = focusStyles.focusOffsetElement;\n var ppuiEaseMoveSmall = variables.ppuiEaseMoveSmall;\n\n function info() {\n return css(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n \", \";\\n display: flex;\\n margin: \", \" 0 0;\\n \"])), caption({\n color: sysColorBackgroundMediumContrast\n }), sysSpaceXs);\n }\n\n function fieldIcon() {\n return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral([\"\\n text-decoration: none;\\n position: absolute;\\n \"])));\n }\n\n var label = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral([\"\\n label: label;\\n \", \"\\n \", \";\\n pointer-events: none;\\n position: absolute;\\n top: \", \";\\n transition: font-size \", \" \", \",\\n top \", \" \", \",\\n background-color \", \" \", \";\\n right: \", \";\\n left: \", \";\\n background-clip: padding-box;\\n \"])), fieldLabelSm({\n color: sysColorBackgroundMediumContrast\n }), ellipsis, sysSpaceSm, sysMotionDurationMoveSmall, ppuiEaseMoveSmall, sysMotionDurationMoveSmall, ppuiEaseMoveSmall, sysMotionDurationMoveSmall, ppuiEaseMoveSmall, sysSpaceMd, sysSpaceMd);\n var labelWhenPlaceholderShownAndInputNotFocused = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral([\"\\n label: label_placeholder_shown_and_not_focused;\\n :placeholder-shown:not(:focus) ~ label {\\n \", \";\\n top: \", \";\\n background-color: transparent;\\n margin-bottom: 0;\\n }\\n \"])), body({\n color: sysColorBackgroundMediumContrast\n }), backgroundSpaceTop);\n var labelWithScreenreader = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral([\"\\n label: label_screenreader;\\n \", \"\\n \"])), screenReader);\n var helperText = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral([\"\\n label: helper_text;\\n \", \"\\n display: block;\\n list-style: none;\\n padding: 0;\\n overflow-wrap: break-word;\\n \"])), info());\n var base = css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral([\"\\n label: text_input_base;\\n \", \";\\n padding: 0;\\n position: relative;\\n text-align: left;\\n [dir='rtl'] & {\\n text-align: right;\\n }\\n \"])), body());\n var iconRight = css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral([\"\\n label: icon_right;\\n \", \"\\n width: \", \";\\n height: \", \";\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n top: \", \";\\n right: \", \";\\n left: auto;\\n [dir='rtl'] & {\\n left: \", \";\\n right: auto;\\n }\\n \"])), fieldIcon(), sysSizeTapTargetDefault, sysSizeTapTargetDefault, sysSpaceSm, sysSpaceSm, sysSpaceSm);\n var iconLeft = css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral([\"\\n label: icon_left;\\n pointer-events: none;\\n z-index: 1;\\n \", \"\\n inset: \", \" auto \", \" \", \";\\n color: \", \";\\n [dir='rtl'] & {\\n inset: \", \" \", \" \", \" auto;\\n }\\n \"])), fieldIcon(), backgroundSpaceTop, backgroundSpaceTop, sysSpaceMd, sysColorBackgroundMediumContrast, backgroundSpaceTop, sysSpaceMd, backgroundSpaceTop);\n var control = css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral([\"\\n label: text_input_control;\\n padding: \", \"\\n \", \"\\n \", \"\\n \", \";\\n \", \";\\n text-overflow: ellipsis;\\n box-sizing: border-box;\\n width: 100%;\\n border: \", \" solid\\n \", \";\\n border-radius: \", \";\\n background-color: \", \";\\n &::placeholder {\\n color: \", \";\\n }\\n &:placeholder-shown:not(:focus)::-webkit-input-placeholder {\\n opacity: 0;\\n transition: opacity \", \" \", \";\\n }\\n &:placeholder-shown:not(:focus)::-moz-placeholder {\\n opacity: 0;\\n transition: opacity \", \" \", \";\\n }\\n &:first-line {\\n line-height: \", \";\\n }\\n &::-ms-reveal,\\n &::-ms-clear {\\n display: none;\\n }\\n\\n margin: 0;\\n outline: none;\\n position: relative;\\n\\n &:focus {\\n \", \";\\n }\\n\\n -webkit-appearance: none;\\n -moz-appearance: none;\\n\\n min-height: \", \"; // Replace later\\n &::-webkit-input-placeholder {\\n color: \", \";\\n opacity: 1;\\n }\\n &:-moz-placeholder {\\n color: \", \";\\n opacity: 1;\\n transition: opacity \", \" \", \";\\n }\\n \"])), math(\"\".concat(backgroundSpaceTop, \" + \").concat(sysSpaceSm)), math(\"\".concat(sysSpaceMd, \" - \").concat(sysBorderThicknessNormal)), backgroundSpaceBottomEntered, math(\"\".concat(sysSpaceMd, \" - \").concat(sysBorderThicknessNormal)), body(), sysColorStructureBorderHighContrast, sysBorderThicknessNormal, sysBorderRadiusSm, sysColorBackgroundSurface, sysColorBackgroundMediumContrast, sysMotionDurationMoveSmall, ppuiEaseMoveSmall, sysMotionDurationMoveSmall, ppuiEaseMoveSmall, sysTypographyBodyLineHeight, focusOffsetElement, sysSizeFieldLg, sysColorBackgroundMediumContrast, sysColorBackgroundMediumContrast, sysMotionDurationMoveSmall, ppuiEaseMoveSmall);\n var nolabelControl = css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral([\"\\n label: no_label_text_input_control;\\n padding: \", \"\\n \", \"\\n \", \"\\n \", \";\\n &:placeholder-shown:not(:focus)::placeholder {\\n opacity: 1;\\n }\\n \"])), math(\"\".concat(backgroundSpaceTop, \" - \").concat(sysBorderThicknessNormal)), math(\"\".concat(sysSpaceMd, \" - \").concat(sysBorderThicknessNormal)), math(\"\".concat(backgroundSpaceBottom, \" - \").concat(sysBorderThicknessNormal)), math(\"\".concat(sysSpaceMd, \" - \").concat(sysBorderThicknessNormal)));\n var errorControl = css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral([\"\\n label: error_text_input_control;\\n border: \", \" solid \", \";\\n padding: \", \"\\n \", \"\\n \", \"\\n \", \";\\n \"])), sysBorderThicknessEmphasis, sysColorErrorMain, math(\"\".concat(backgroundSpaceTop, \" + \").concat(sysSpaceSm, \" - \").concat(sysBorderThicknessEmphasis, \" / 2\")), math(\"\".concat(sysSpaceMd, \" - \").concat(sysBorderThicknessEmphasis)), math(\"\".concat(backgroundSpaceBottomEntered, \" - \").concat(sysBorderThicknessEmphasis, \" / 2\")), math(\"\".concat(sysSpaceMd, \" - \").concat(sysBorderThicknessEmphasis)));\n var controlErrorWithIconRight = css(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral([\"\\n label: text_input_control_error_with_icon_right;\\n padding-right: \", \";\\n padding-left: \", \";\\n [dir='rtl'] & {\\n padding-left: \", \";\\n padding-right: \", \";\\n }\\n \"])), math(\"\".concat(sysSpaceMd, \" +\\n \").concat(sysSizeTapTargetDefault, \" - \").concat(sysBorderThicknessEmphasis)), math(\"\".concat(sysSpaceMd, \" -\\n \").concat(sysBorderThicknessEmphasis)), math(\"\".concat(sysSpaceMd, \" +\\n \").concat(sysSizeTapTargetDefault, \" - \").concat(sysBorderThicknessEmphasis)), math(\"\".concat(sysSpaceMd, \" -\\n \").concat(sysBorderThicknessEmphasis)));\n var controlErrorWithIconLeft = css(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral([\"\\n label: text_input_control_error_with_icon_left;\\n padding-left: \", \";\\n padding-right: \", \";\\n [dir='rtl'] & {\\n padding-right: \", \";\\n padding-left: \", \";\\n }\\n \"])), math(\"2 * \".concat(sysSpaceMd, \" + \").concat(sysSpaceXl, \" -\\n \").concat(sysBorderThicknessEmphasis)), math(\"\".concat(sysSpaceMd, \" -\\n \").concat(sysBorderThicknessEmphasis)), math(\"2 * \".concat(sysSpaceMd, \" + \").concat(sysSpaceXl, \" -\\n \").concat(sysBorderThicknessEmphasis)), math(\"\".concat(sysSpaceMd, \" -\\n \").concat(sysBorderThicknessEmphasis)));\n var controlErrorWithIconLeftAndRight = css(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral([\"\\n label: text_input_control_error_with_icon_left_and_right;\\n padding-right: \", \";\\n padding-left: \", \";\\n [dir='rtl'] & {\\n padding-right: \", \";\\n padding-left: \", \";\\n }\\n \"])), math(\"\".concat(sysSpaceMd, \" +\\n \").concat(sysSizeTapTargetDefault, \" - \").concat(sysBorderThicknessEmphasis)), math(\"2 * \".concat(sysSpaceMd, \" + \").concat(sysSpaceXl, \" -\\n \").concat(sysBorderThicknessEmphasis)), math(\"2 * \".concat(sysSpaceMd, \" + \").concat(sysSpaceXl, \" -\\n \").concat(sysBorderThicknessEmphasis)), math(\"\".concat(sysSpaceMd, \" +\\n \").concat(sysSizeTapTargetDefault, \" - \").concat(sysBorderThicknessEmphasis)));\n var noLabelControlError = css(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral([\"\\n label: no_label_text_input_control_error;\\n padding: \", \"\\n \", \"\\n \", \"\\n \", \";\\n \"])), math(\"\".concat(backgroundSpaceTop, \" - \").concat(sysBorderThicknessEmphasis)), math(\"\".concat(sysSpaceMd, \" - \").concat(sysBorderThicknessEmphasis)), math(\"\".concat(backgroundSpaceBottom, \" - \").concat(sysBorderThicknessEmphasis)), math(\"\".concat(sysSpaceMd, \" - \").concat(sysBorderThicknessEmphasis)));\n var controlWithIconRight = css(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral([\"\\n label: text_input_control_with_icon_right;\\n padding-right: \", \";\\n padding-left: \", \";\\n [dir='rtl'] & {\\n padding-left: \", \";\\n padding-right: \", \";\\n }\\n \"])), math(\"\".concat(sysSpaceMd, \" + \").concat(sysSpaceSm, \" + \").concat(sysSizeTapTargetDefault, \" - \").concat(sysBorderThicknessNormal)), math(\"\".concat(sysSpaceMd, \" - \").concat(sysBorderThicknessNormal)), math(\"\".concat(sysSpaceMd, \" + \").concat(sysSpaceSm, \" + \").concat(sysSizeTapTargetDefault, \" - \").concat(sysBorderThicknessNormal)), math(\"\".concat(sysSpaceMd, \" - \").concat(sysBorderThicknessNormal)));\n var controlWithIconLeft = css(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral([\"\\n label: text_input_control_with_icon_left;\\n padding-left: \", \";\\n padding-right: \", \";\\n [dir='rtl'] & {\\n padding-right: \", \";\\n padding-left: \", \";\\n }\\n \"])), math(\"2 * \".concat(sysSpaceMd, \" + \").concat(sysSpaceXl, \" -\\n \").concat(sysBorderThicknessNormal)), math(\"\".concat(sysSpaceMd, \" -\\n \").concat(sysBorderThicknessNormal)), math(\"2 * \".concat(sysSpaceMd, \" + \").concat(sysSpaceXl, \" -\\n \").concat(sysBorderThicknessNormal)), math(\"\".concat(sysSpaceMd, \" -\\n \").concat(sysBorderThicknessNormal)));\n var controlWithIconLeftAndRight = css(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral([\"\\n label: text_input_control_with_icon_left_and_right;\\n padding-left: \", \";\\n padding-right: \", \";\\n [dir='rtl'] & {\\n padding-right: \", \";\\n padding-left: \", \";\\n }\\n \"])), math(\"2 * \".concat(sysSpaceMd, \" + \").concat(sysSpaceXl, \" -\\n \").concat(sysBorderThicknessNormal)), math(\"\".concat(sysSpaceMd, \" +\\n \").concat(sysSizeTapTargetDefault, \" - \").concat(sysBorderThicknessNormal)), math(\"2 * \".concat(sysSpaceMd, \" + \").concat(sysSpaceXl, \" -\\n \").concat(sysBorderThicknessNormal)), math(\"\".concat(sysSpaceMd, \" +\\n \").concat(sysSizeTapTargetDefault, \" - \").concat(sysBorderThicknessNormal)));\n var labelWithIconRight = css(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral([\"\\n label: label_with_icon_right;\\n left: \", \";\\n right: \", \";\\n [dir='rtl'] & {\\n left: \", \";\\n right: \", \";\\n }\\n \"])), sysSpaceMd, math(\"\".concat(sysSpaceMd, \" +\\n \").concat(sysSizeTapTargetDefault)), math(\"\".concat(sysSpaceMd, \" + \").concat(sysSizeTapTargetDefault)), sysSpaceMd);\n var labelWithIconLeft = css(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral([\"\\n label: label_with_icon_left;\\n left: \", \";\\n right: \", \";\\n [dir='rtl'] & {\\n right: \", \";\\n left: \", \";\\n }\\n \"])), math(\"2 * \".concat(sysSpaceMd, \" + \").concat(sysSpaceXl)), sysSpaceMd, math(\"2 * \".concat(sysSpaceMd, \" + \").concat(sysSpaceXl)), sysSpaceMd);\n var errorText = css(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral([\"\\n label: error_text;\\n \", \"\\n align-items: center;\\n \"])), info());\n var errorIcon = css(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([\"\\n label: error_icon;\\n color: \", \";\\n margin-right: \", \";\\n margin-left: 0;\\n align-self: flex-start;\\n [dir='rtl'] & {\\n margin-left: \", \";\\n margin-right: 0;\\n }\\n \"])), sysColorErrorMain, sysSpaceXs, sysSpaceXs);\n var successIcon = css(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral([\"\\n label: success_icon;\\n color: \", \";\\n margin-right: \", \";\\n margin-left: initial;\\n align-self: flex-start;\\n [dir='rtl'] & {\\n margin-left: \", \";\\n margin-right: 0;\\n }\\n \"])), sysColorSuccessMain, sysSpaceXs, sysSpaceXs);\n var multiLineError = css(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral([\"\\n label: multi_line_error;\\n list-style: none;\\n padding: 0;\\n margin: 0;\\n \"])));\n var prefixWrapper = css(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral([\"\\n label: prefix_wrapper;\\n position: relative;\\n display: flex;\\n background-color: \", \";\\n &:after {\\n content: ' ';\\n position: absolute;\\n height: 100%;\\n width: 100%;\\n top: 0;\\n left: 0;\\n border: \", \" solid\\n \", \";\\n border-radius: \", \";\\n pointer-events: none;\\n }\\n &:focus-within {\\n border-radius: \", \";\\n \", \";\\n }\\n padding: \", \";\\n \"])), sysColorBackgroundSurface, sysBorderThicknessNormal, sysColorStructureBorderHighContrast, sysBorderRadiusSm, sysBorderRadiusSm, focusOffsetElement, sysBorderThicknessNormal);\n var prefixWrapperError = css(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral([\"\\n label: prefix_wrapper_error;\\n &:after {\\n border: \", \" solid \", \";\\n }\\n padding: \", \" \", \";\\n \"])), sysBorderThicknessEmphasis, sysColorErrorMain, sysBorderThicknessNormal, sysBorderThicknessEmphasis);\n var prefixSuffix = css(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral([\"\\n label: prefix_suffix;\\n white-space: nowrap;\\n color: \", \";\\n padding: \", \" \", \"\\n \", \" \", \";\\n \"])), sysColorBackgroundHighContrast, math(\"\".concat(backgroundSpaceTop, \" + \").concat(sysSpaceSm)), sysSpaceTiny, backgroundSpaceBottomEntered, sysSpaceTiny);\n var PrefixWrapperControl = css(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral([\"\\n label: prefix_wrapper_control;\\n border: none;\\n min-height: \", \";\\n &:focus {\\n box-shadow: none;\\n outline: none;\\n }\\n &:placeholder-shown:not(:focus) ~ div {\\n opacity: 0;\\n }\\n \"])), ppuiV2CurrencyInputMinHeight);\n var prefix = css(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral([\"\\n label: prefix;\\n order: -1;\\n \", \"\\n padding-left: \", \";\\n [dir='rtl'] & {\\n \", \"\\n padding-right: \", \";\\n }\\n \"])), prefixSuffix, sysSpaceMd, prefixSuffix, sysSpaceMd);\n var suffix = css(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral([\"\\n label: suffix;\\n \", \"\\n padding-right: \", \";\\n [dir='rtl'] & {\\n \", \"\\n padding-left: \", \";\\n }\\n \"])), prefixSuffix, sysSpaceMd, prefixSuffix, sysSpaceMd);\n var noLabelSuffixOrPrefix = css(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral([\"\\n label: no_label_suffix_or_prefix;\\n padding-top: \", \";\\n padding-bottom: \", \";\\n [dir='rtl'] & {\\n padding-top: \", \";\\n padding-bottom: \", \";\\n }\\n \"])), math(\"\".concat(backgroundSpaceTop, \" - \").concat(sysBorderThicknessNormal)), math(\"\".concat(backgroundSpaceBottom, \" - \").concat(sysBorderThicknessNormal)), math(\"\".concat(backgroundSpaceTop, \" - \").concat(sysBorderThicknessNormal)), math(\"\".concat(backgroundSpaceBottom, \" - \").concat(sysBorderThicknessNormal)));\n var prefixWrapperControlWithPrefix = css(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral([\"\\n label: prefix_wrapper_control_with_prefix;\\n padding-left: 0;\\n [dir='rtl'] & {\\n padding-right: 0;\\n padding-left: \", \";\\n }\\n \"])), sysSpaceMd);\n var prefixWrapperControlWithSuffix = css(_templateObject34 || (_templateObject34 = _taggedTemplateLiteral([\"\\n label: prefix_wrapper_control_with_prefix;\\n padding-right: 0;\\n [dir='rtl'] & {\\n padding-left: 0;\\n padding-right: \", \";\\n }\\n \"])), sysSpaceMd);\n var prefixWrapperControlWithPrefixSuffix = css(_templateObject35 || (_templateObject35 = _taggedTemplateLiteral([\"\\n label: prefix_wrapper_control_with_prefix_suffix;\\n padding-left: 0;\\n padding-right: 0;\\n [dir='rtl'] & {\\n padding-left: 0;\\n padding-right: 0;\\n }\\n \"])));\n /********* TextArea ************/\n\n var textAreaControl = css(_templateObject36 || (_templateObject36 = _taggedTemplateLiteral([\"\\n label: text_area_control;\\n background-color: \", \";\\n outline: none;\\n box-shadow: none;\\n resize: none;\\n display: block;\\n &:placeholder-shown:not(:focus) {\\n ~ label {\\n padding-top: 0;\\n }\\n }\\n \"])), sysColorBackgroundSurface);\n var textAreaControlLabel = css(_templateObject37 || (_templateObject37 = _taggedTemplateLiteral([\"\\n label: text_area_control_label;\\n background-color: \", \";\\n top: \", \";\\n padding-top: \", \";\\n \"])), sysColorBackgroundSurface, sysBorderThicknessNormal, math(\"\".concat(sysSpaceSm, \" -\\n \").concat(sysBorderThicknessNormal)));\n var textAreaControlErrorLabel = css(_templateObject38 || (_templateObject38 = _taggedTemplateLiteral([\"\\n label: text_area_control_error_label;\\n top: \", \";\\n padding-top: \", \";\\n \"])), sysBorderThicknessEmphasis, math(\"\".concat(sysSpaceSm, \" -\\n \").concat(sysBorderThicknessEmphasis)));\n var textAreaWrapper = css(_templateObject39 || (_templateObject39 = _taggedTemplateLiteral([\"\\n label: text_area_counter_wrapper;\\n cursor: text;\\n position: relative;\\n padding: \", \";\\n &:after {\\n content: ' ';\\n position: absolute;\\n height: 100%;\\n width: 100%;\\n top: 0;\\n left: 0;\\n border: \", \" solid\\n \", \";\\n border-radius: \", \";\\n pointer-events: none;\\n }\\n textarea:focus,\\n textarea:not(:focus) {\\n border: none;\\n outline: none;\\n box-shadow: none;\\n margin-top: \", \";\\n padding-top: 0;\\n padding-bottom: \", \";\\n min-height: \", \";\\n }\\n\\n &:focus-within {\\n border-radius: \", \";\\n \", \";\\n }\\n \"])), sysBorderThicknessNormal, sysBorderThicknessNormal, sysColorStructureBorderHighContrast, sysBorderRadiusSm, math(\"\".concat(backgroundSpaceTop, \" + \").concat(sysSpaceSm)), backgroundSpaceBottomEntered, math(\"\".concat(sysSizeFieldSm, \" - \").concat(sysSpaceMd, \" - \").concat(sysBorderThicknessEmphasis)), sysBorderRadiusSm, focusOffsetElement);\n var textAreaCounterText = css(_templateObject40 || (_templateObject40 = _taggedTemplateLiteral([\"\\n label: text_area_counter_text;\\n \", \"\\n padding: \", \"\\n \", \"\\n \", \"\\n \", \";\\n text-align: right;\\n background-color: \", \";\\n [dir='rtl'] & {\\n text-align: left;\\n }\\n \"])), caption({\n color: sysColorBackgroundMediumContrast\n }), sysSpaceSm, math(\"\".concat(sysSpaceMd, \" - \").concat(sysBorderThicknessNormal)), math(\"\".concat(sysSpaceSm, \" - \").concat(sysBorderThicknessNormal)), math(\"\".concat(sysSpaceMd, \" - \").concat(sysBorderThicknessNormal)), sysColorBackgroundSurface);\n var textAreaErrorCounterWrapper = css(_templateObject41 || (_templateObject41 = _taggedTemplateLiteral([\"\\n label: text_area_error_counter_wrapper;\\n padding-left: \", \";\\n padding-right: \", \";\\n\\n &:after {\\n border: \", \" solid \", \";\\n }\\n \"])), sysBorderThicknessEmphasis, sysBorderThicknessEmphasis, sysBorderThicknessEmphasis, sysColorErrorMain);\n var textAreaErrorCounterText = css(_templateObject42 || (_templateObject42 = _taggedTemplateLiteral([\"\\n label: text_area_error_counter_text;\\n color: \", \";\\n padding-left: \", \";\\n padding-right: \", \";\\n \"])), sysColorErrorMain, math(\"\".concat(sysSpaceMd, \" -\\n \").concat(sysBorderThicknessEmphasis)), math(\"\".concat(sysSpaceMd, \" -\\n \").concat(sysBorderThicknessEmphasis)));\n /********** Text Display ************/\n\n var ppuiTextInputDisplayRightIconSpaceRight = math(\"\".concat(sysSizeTapTargetDefault, \" + \").concat(sysSpaceMd)); // 48px + 12px\n\n var ppuiTextInputDisplayValueSpaceTop = math(\"\".concat(sysTypographyCaptionLineHeight, \" + \").concat(sysSpaceTiny)); // 20px (letter space) + 2px\n\n // 46px\n var textDisplayNoLabelControl = css(_templateObject43 || (_templateObject43 = _taggedTemplateLiteral([\"\\n label: text_display_no_label_control;\\n padding-top: \", \";\\n padding-bottom: \", \";\\n padding-left: 0;\\n [dir='rtl'] & {\\n padding-left: \", \";\\n }\\n \"])), sysSpaceMd, sysSpaceMd, ppuiTextInputDisplayRightIconSpaceRight);\n var textDisplayControl = css(_templateObject44 || (_templateObject44 = _taggedTemplateLiteral([\"\\n label: text_display_control;\\n border: 0;\\n padding-left: 0;\\n padding-top: \", \";\\n padding-bottom: 0;\\n min-height: \", \";\\n display: block;\\n background-color: transparent;\\n overflow-wrap: break-word;\\n [dir='rtl'] & {\\n padding-right: 0;\\n }\\n \"])), ppuiTextInputDisplayValueSpaceTop, '2.875rem');\n var textDisplayLabel = css(_templateObject45 || (_templateObject45 = _taggedTemplateLiteral([\"\\n label: text_display_label;\\n top: 0;\\n left: 0;\\n [dir='rtl'] & {\\n left: \", \";\\n right: 0;\\n }\\n \"])), ppuiTextInputDisplayRightIconSpaceRight);\n var textDisplayIconRight = css(_templateObject46 || (_templateObject46 = _taggedTemplateLiteral([\"\\n label: text_display_icon_right;\\n top: 0;\\n \"])));\n var textDisplaylabelIconRight = css(_templateObject47 || (_templateObject47 = _taggedTemplateLiteral([\"\\n label: text_display_label_icon_right;\\n right: \", \";\\n \"])), ppuiTextInputDisplayRightIconSpaceRight);\n var textDisplayControlIconRight = css(_templateObject48 || (_templateObject48 = _taggedTemplateLiteral([\"\\n label: text_display_control_icon_right;\\n padding-right: \", \";\\n\\n [dir='rtl'] & {\\n padding-left: \", \";\\n }\\n \"])), math(\"\".concat(ppuiTextInputDisplayRightIconSpaceRight, \" - \").concat(sysBorderThicknessNormal)), math(\"\".concat(ppuiTextInputDisplayRightIconSpaceRight, \" - \").concat(sysBorderThicknessNormal)));\n var placemat = css(_templateObject49 || (_templateObject49 = _taggedTemplateLiteral([\"\\n label: placemat;\\n \", \"\\n position: absolute;\\n top: 0;\\n right: 0;\\n left: 0;\\n padding: \", \"\\n \", \"\\n \", \"\\n \", \";\\n background-color: \", \";\\n white-space: nowrap;\\n & + input:focus {\\n background-color: transparent;\\n }\\n [dir='rtl'] & {\\n transform: translateX(-\", \");\\n }\\n \"])), body({\n color: sysColorBackgroundMediumContrast\n }), math(\"\".concat(backgroundSpaceTop, \" + \").concat(sysSpaceSm, \" + \").concat(sysBorderThicknessNormal)), sysSpaceMd, math(\"\".concat(backgroundSpaceBottomEntered, \" + \").concat(sysBorderThicknessNormal)), sysSpaceMd, sysColorBackgroundSurface, sysBorderThicknessNormal);\n var noLabelPlacemat = css(_templateObject50 || (_templateObject50 = _taggedTemplateLiteral([\"\\n label: no_label_placemat;\\n padding-top: \", \";\\n \"])), backgroundSpaceTop);\n return {\n label: label,\n labelWithScreenreader: labelWithScreenreader,\n helperText: helperText,\n base: base,\n iconRight: iconRight,\n iconLeft: iconLeft,\n control: control,\n nolabelControl: nolabelControl,\n errorControl: errorControl,\n prefixWrapperError: prefixWrapperError,\n controlErrorWithIconRight: controlErrorWithIconRight,\n controlErrorWithIconLeft: controlErrorWithIconLeft,\n controlErrorWithIconLeftAndRight: controlErrorWithIconLeftAndRight,\n noLabelControlError: noLabelControlError,\n placemat: placemat,\n noLabelPlacemat: noLabelPlacemat,\n controlWithIconRight: controlWithIconRight,\n controlWithIconLeft: controlWithIconLeft,\n controlWithIconLeftAndRight: controlWithIconLeftAndRight,\n labelWithIconRight: labelWithIconRight,\n labelWithIconLeft: labelWithIconLeft,\n errorText: errorText,\n errorIcon: errorIcon,\n successIcon: successIcon,\n multiLineError: multiLineError,\n prefixWrapper: prefixWrapper,\n prefixSuffix: prefixSuffix,\n PrefixWrapperControl: PrefixWrapperControl,\n prefix: prefix,\n suffix: suffix,\n noLabelSuffixOrPrefix: noLabelSuffixOrPrefix,\n prefixWrapperControlWithPrefix: prefixWrapperControlWithPrefix,\n prefixWrapperControlWithSuffix: prefixWrapperControlWithSuffix,\n prefixWrapperControlWithPrefixSuffix: prefixWrapperControlWithPrefixSuffix,\n labelWhenPlaceholderShownAndInputNotFocused: labelWhenPlaceholderShownAndInputNotFocused,\n textAreaControl: textAreaControl,\n textAreaControlLabel: textAreaControlLabel,\n textAreaControlErrorLabel: textAreaControlErrorLabel,\n textAreaWrapper: textAreaWrapper,\n textAreaCounterText: textAreaCounterText,\n textAreaErrorCounterWrapper: textAreaErrorCounterWrapper,\n textAreaErrorCounterText: textAreaErrorCounterText,\n textDisplayNoLabelControl: textDisplayNoLabelControl,\n textDisplayControl: textDisplayControl,\n textDisplayLabel: textDisplayLabel,\n textDisplayIconRight: textDisplayIconRight,\n textDisplaylabelIconRight: textDisplaylabelIconRight,\n textDisplayControlIconRight: textDisplayControlIconRight\n };\n}\n\nvar _excluded = [\"setFocus\", \"className\", \"inputClassName\", \"labelClassName\", \"successText\", \"successIconAriaLabel\", \"errorText\", \"error\", \"errorIconAriaLabel\", \"helperText\", \"value\", \"name\", \"id\", \"label\", \"isLabelHidden\", \"placeholder\", \"placemat\", \"leftIcon\", \"rightIcon\", \"onChange\", \"children\", \"renderContent\", \"removeBorderRadiusLeft\", \"removeBorderRadiusRight\", \"removeBorderRadiusBoth\", \"dir\", \"leftIconCSS\", \"rightIconCSS\"];\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nvar FormMessage = function (_ref) {\n var messageId = _ref.messageId,\n helperText = _ref.helperText,\n errorText = _ref.errorText,\n errorIconAriaLabel = _ref.errorIconAriaLabel,\n successText = _ref.successText,\n successIconAriaLabel = _ref.successIconAriaLabel;\n var tokens = useTheme(); // Fetch tokens from Emotion context\n\n var _styles = useMemo(function () {\n return styles(tokens);\n }, [tokens]); // errorText takes higher priority over helperText\n\n\n if (errorText || successText) {\n var _errorIcon;\n\n var text = errorText ? errorText : successText;\n var processText = Array.isArray(text) ? jsx(\"ul\", {\n css: _styles.multiLineError,\n \"data-ppui\": \"true\"\n }, text.map(function (msg, index) {\n return jsx(\"li\", {\n key: \"msg\".concat(messageId, \"-\").concat(index),\n \"data-ppui\": \"true\"\n }, msg);\n })) : text;\n var errorIcon, successIcon;\n\n if (errorText) {\n var errorProps = {\n css: _styles.errorIcon,\n role: 'img',\n 'aria-label': errorIconAriaLabel\n };\n errorIcon = jsx(CriticalIcon, _extends({\n size: \"sm\"\n }, errorProps, {\n \"data-ppui\": \"true\"\n }));\n }\n\n if (!errorText) {\n var successProps = {\n css: _styles.successIcon,\n role: 'img',\n 'aria-label': successIconAriaLabel\n };\n successIcon = jsx(CheckmarkBackgroundIcon, _extends({\n size: \"sm\"\n }, successProps, {\n \"data-ppui\": \"true\"\n }));\n }\n\n return jsx(\"div\", {\n css: _styles.errorText,\n id: messageId,\n role: \"alert\",\n \"data-ppui\": \"true\"\n }, (_errorIcon = errorIcon) !== null && _errorIcon !== void 0 ? _errorIcon : successIcon, processText);\n }\n\n if (helperText) {\n var helperTextCssVal = [_styles.helperText];\n\n var _processText = Array.isArray(helperText) ? jsx(\"ul\", {\n css: helperTextCssVal,\n id: messageId,\n \"data-ppui\": \"true\"\n }, helperText.map(function (msg, index) {\n return jsx(\"li\", {\n key: \"msg\".concat(messageId, \"-\").concat(index),\n \"data-ppui\": \"true\"\n }, msg);\n })) : jsx(\"div\", {\n css: helperTextCssVal,\n id: messageId,\n \"data-ppui\": \"true\"\n }, helperText);\n\n return _processText;\n }\n\n return null;\n};\n\nvar renderIcon = function (icon, side, customIconCSS, _styles) {\n return icon ? jsx(\"div\", {\n css: [side === 'left' && _styles.iconLeft, side === 'right' && _styles.iconRight, customIconCSS],\n key: \"icon-\".concat(side),\n \"data-ppui\": \"true\"\n }, icon) : null;\n};\n\nvar TextInputWrapper = function (_ref2) {\n var setFocus = _ref2.setFocus,\n className = _ref2.className,\n inputClassName = _ref2.inputClassName,\n labelClassName = _ref2.labelClassName,\n successText = _ref2.successText,\n _ref2$successIconAria = _ref2.successIconAriaLabel,\n successIconAriaLabel = _ref2$successIconAria === void 0 ? 'Success' : _ref2$successIconAria,\n errorText = _ref2.errorText,\n _ref2$error = _ref2.error,\n error = _ref2$error === void 0 ? !!errorText : _ref2$error,\n _ref2$errorIconAriaLa = _ref2.errorIconAriaLabel,\n errorIconAriaLabel = _ref2$errorIconAriaLa === void 0 ? 'Error' : _ref2$errorIconAriaLa,\n helperText = _ref2.helperText,\n value = _ref2.value,\n name = _ref2.name,\n _ref2$id = _ref2.id,\n id = _ref2$id === void 0 ? \"text-input-\".concat(name) : _ref2$id,\n label = _ref2.label,\n isLabelHidden = _ref2.isLabelHidden,\n _ref2$placeholder = _ref2.placeholder,\n placeholder = _ref2$placeholder === void 0 ? ' ' : _ref2$placeholder,\n placemat = _ref2.placemat,\n _ref2$leftIcon = _ref2.leftIcon,\n leftIcon = _ref2$leftIcon === void 0 ? null : _ref2$leftIcon,\n _ref2$rightIcon = _ref2.rightIcon,\n rightIcon = _ref2$rightIcon === void 0 ? null : _ref2$rightIcon,\n onChange = _ref2.onChange,\n children = _ref2.children,\n renderContent = _ref2.renderContent,\n removeBorderRadiusLeft = _ref2.removeBorderRadiusLeft,\n removeBorderRadiusRight = _ref2.removeBorderRadiusRight,\n removeBorderRadiusBoth = _ref2.removeBorderRadiusBoth,\n dir = _ref2.dir,\n leftIconCSS = _ref2.leftIconCSS,\n rightIconCSS = _ref2.rightIconCSS,\n rest = _objectWithoutProperties(_ref2, _excluded);\n\n var tokens = useTheme(); // Fetch tokens from Emotion context\n\n var _styles = useMemo(function () {\n return styles(tokens);\n }, [tokens]);\n\n var mainCSS = [_styles.base];\n var msgId = \"message_\".concat(id);\n var valueProps = onChange ? {\n onChange: onChange,\n value: value\n } : {\n defaultValue: value\n };\n var ariaDescribedByProp = helperText || errorText ? {\n 'aria-describedby': msgId\n } : {};\n\n var otherProps = _objectSpread(_objectSpread(_objectSpread({}, ariaDescribedByProp), valueProps), rest);\n\n return jsx(\"div\", {\n className: className,\n css: mainCSS,\n dir: dir,\n \"data-ppui-info\": \"text-input_5.5.4\"\n }, renderIcon(leftIcon, 'left', leftIconCSS, _styles), renderContent(_objectSpread({\n inputClassName: inputClassName,\n name: name,\n id: id,\n setFocus: setFocus,\n hasError: error,\n placeholder: placeholder,\n placemat: placemat,\n label: label,\n labelClassName: labelClassName,\n isLabelHidden: isLabelHidden,\n inputTag: 'input',\n leftIcon: leftIcon,\n rightIcon: rightIcon\n }, otherProps)), jsx(FormMessage, {\n errorText: errorText,\n errorIconAriaLabel: errorIconAriaLabel,\n successText: successText,\n successIconAriaLabel: successIconAriaLabel,\n helperText: helperText,\n messageId: msgId,\n \"data-ppui\": \"true\"\n }), renderIcon(rightIcon, 'right', rightIconCSS, _styles));\n};\n\nvar _excluded$1 = [\"inputClassName\", \"inputTag\", \"name\", \"id\", \"setFocus\", \"inputRef\", \"hasError\", \"placeholder\", \"placemat\", \"label\", \"labelClassName\", \"isLabelHidden\", \"rightIcon\", \"leftIcon\", \"prefix\", \"suffix\"];\n\nvar overlayValue = function () {\n var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var mask = arguments.length > 1 ? arguments[1] : undefined;\n var vLen = value.length;\n var mLen = mask.length;\n\n if (vLen >= mLen) {\n return value;\n }\n\n return value.concat(mask.substring(vLen));\n};\n\nvar Placemat = function (_ref) {\n var placeholder = _ref.placeholder,\n _ref$value = _ref.value,\n value = _ref$value === void 0 ? '' : _ref$value,\n _ref$isLabelHidden = _ref.isLabelHidden,\n isLabelHidden = _ref$isLabelHidden === void 0 ? false : _ref$isLabelHidden,\n _styles = _ref.styles;\n var combinedText = overlayValue(value, placeholder);\n var cssVal = [_styles.placemat, isLabelHidden && _styles.noLabelPlacemat];\n return jsx(\"div\", {\n css: cssVal,\n \"data-ppui\": \"true\"\n }, combinedText);\n};\n\nvar normalizePlaceholder = function (placeholder) {\n var normalized = placeholder !== null && placeholder !== void 0 ? placeholder : ' ';\n return normalized === '' ? ' ' : normalized;\n}; // eslint-disable-next-line complexity\n\n\nvar TextInputContent = function (_ref2) {\n var inputClassName = _ref2.inputClassName,\n inputTag = _ref2.inputTag,\n name = _ref2.name,\n id = _ref2.id,\n setFocus = _ref2.setFocus,\n inputRef = _ref2.inputRef,\n hasError = _ref2.hasError,\n placeholder = _ref2.placeholder,\n placemat = _ref2.placemat,\n label = _ref2.label,\n labelClassName = _ref2.labelClassName,\n isLabelHidden = _ref2.isLabelHidden,\n rightIcon = _ref2.rightIcon,\n leftIcon = _ref2.leftIcon,\n prefix = _ref2.prefix,\n suffix = _ref2.suffix,\n rest = _objectWithoutProperties(_ref2, _excluded$1);\n\n var tokens = useTheme(); // Fetch tokens from Emotion context\n\n var _styles = useMemo(function () {\n return styles(tokens);\n }, [tokens]);\n\n var isLabelHiddenFinal = !label || label === '' || isLabelHidden; // DO NOT CHANGE THE ORDER OF THE STYLES BELOW\n\n var inputTagCSS = [_styles.control, isLabelHiddenFinal && _styles.nolabelControl, rightIcon && _styles.controlWithIconRight, leftIcon && _styles.controlWithIconLeft, rightIcon && leftIcon && _styles.controlWithIconLeftAndRight, _styles.labelWhenPlaceholderShownAndInputNotFocused, hasError && _styles.errorControl, hasError && isLabelHiddenFinal && _styles.noLabelControlError, hasError && rightIcon && _styles.controlErrorWithIconRight, hasError && leftIcon && _styles.controlErrorWithIconLeft, hasError && leftIcon && rightIcon && _styles.controlErrorWithIconLeftAndRight, prefix || suffix ? _styles.PrefixWrapperControl : null, hasError && isLabelHiddenFinal && (prefix || suffix) ? _styles.noLabelControlError : null, prefix && _styles.prefixWrapperControlWithPrefix, suffix && _styles.prefixWrapperControlWithSuffix, prefix && suffix && _styles.prefixWrapperControlWithPrefixSuffix];\n var labelCSS = [_styles.label, rightIcon && _styles.labelWithIconRight, leftIcon && _styles.labelWithIconLeft, isLabelHiddenFinal && _styles.labelWithScreenreader];\n // @ts-ignore\n var value = rest.value;\n useEffect(function () {\n var elem = inputRef.current;\n\n if (setFocus && elem) {\n elem.focus();\n }\n }, [setFocus]);\n return jsx(React.Fragment, null, !!placemat && jsx(Placemat, {\n placeholder: placemat,\n value: value,\n isLabelHidden: isLabelHiddenFinal,\n styles: _styles,\n \"data-ppui\": \"true\"\n }), jsx(inputTag, _extends({\n className: inputClassName,\n css: inputTagCSS,\n name: name,\n id: id,\n ref: inputRef,\n \"aria-invalid\": hasError,\n placeholder: normalizePlaceholder(placeholder)\n }, rest, {\n \"data-ppui\": \"true\"\n })), label && jsx(\"label\", {\n htmlFor: id,\n id: \"\".concat(id, \"-label\"),\n className: labelClassName,\n css: labelCSS,\n \"data-ppui\": \"true\"\n }, label));\n};\n\nvar _excluded$2 = [\"label\", \"id\", \"prefix\", \"suffix\", \"prefixClassName\", \"suffixClassName\", \"inputClassName\", \"inputRef\", \"onBlur\", \"onFocus\", \"hasError\", \"isLabelHidden\"];\n\nvar TextInputContentWithPrefixSuffix = function (_ref) {\n var label = _ref.label,\n id = _ref.id,\n prefix = _ref.prefix,\n suffix = _ref.suffix,\n prefixClassName = _ref.prefixClassName,\n suffixClassName = _ref.suffixClassName,\n inputClassName = _ref.inputClassName,\n inputRef = _ref.inputRef,\n _ref$onBlur = _ref.onBlur,\n onBlur = _ref$onBlur === void 0 ? null : _ref$onBlur,\n _ref$onFocus = _ref.onFocus,\n onFocus = _ref$onFocus === void 0 ? null : _ref$onFocus,\n hasError = _ref.hasError,\n isLabelHidden = _ref.isLabelHidden,\n rest = _objectWithoutProperties(_ref, _excluded$2);\n\n var tokens = useTheme(); // Fetch tokens from Emotion context\n\n var _styles = useMemo(function () {\n return styles(tokens);\n }, [tokens]);\n\n var textInputRef = inputRef;\n var isLabelHiddenFinal = !label || label === '' || isLabelHidden;\n var prefixClass = [_styles.prefix, isLabelHiddenFinal && _styles.noLabelSuffixOrPrefix];\n var suffixClass = [_styles.suffix, isLabelHiddenFinal && _styles.noLabelSuffixOrPrefix];\n var prefixWrapperClass = [_styles.prefixWrapper, hasError && _styles.prefixWrapperError];\n var labelId = label ? \"\".concat(id, \"-label \") : '';\n var prefixEleId = prefix ? \"\".concat(id, \"-prefix \") : '';\n var suffixEleId = suffix ? \"\".concat(id, \"-suffix\") : '';\n var ariaLabelledByIds = \"\".concat(labelId).concat(prefixEleId).concat(suffixEleId);\n return jsx(\"div\", {\n css: prefixWrapperClass,\n onClick: function handlePrefixWrapperClick() {\n /* istanbul ignore else */\n if (textInputRef.current) {\n var textInputElm = textInputRef.current;\n textInputElm.focus();\n }\n },\n \"data-ppui\": \"true\"\n }, jsx(TextInputContent, _extends({\n label: label,\n id: id,\n prefix: prefix,\n suffix: suffix,\n inputClassName: inputClassName,\n inputRef: inputRef,\n onFocus: function handleFocus(event) {\n /* istanbul ignore else */\n if (onFocus) {\n onFocus(event);\n }\n },\n onBlur: function handleBlur(event) {\n /* istanbul ignore else */\n if (onBlur) {\n onBlur(event);\n }\n },\n \"aria-labelledby\": ariaLabelledByIds.trim(),\n hasError: hasError,\n isLabelHidden: isLabelHiddenFinal\n }, rest, {\n \"data-ppui\": \"true\"\n })), prefix && jsx(\"div\", {\n id: prefixEleId.trim(),\n css: prefixClass,\n className: prefixClassName,\n \"data-ppui\": \"true\"\n }, prefix), suffix && jsx(\"div\", {\n id: suffixEleId.trim(),\n css: suffixClass,\n className: suffixClassName,\n \"data-ppui\": \"true\"\n }, suffix));\n};\n\nvar _excluded$3 = [\"prefix\", \"suffix\", \"prefixClassName\", \"suffixClassName\"],\n _excluded2 = [\"inputClassName\", \"name\", \"id\", \"setFocus\", \"hasError\", \"placeholder\", \"placemat\", \"label\", \"labelClassName\", \"inputTag\"];\nvar TextInput = forwardRef(function (_ref, ref) {\n var prefix = _ref.prefix,\n suffix = _ref.suffix,\n prefixClassName = _ref.prefixClassName,\n suffixClassName = _ref.suffixClassName,\n props = _objectWithoutProperties(_ref, _excluded$3);\n\n var internalRef = useRef();\n var textInputRef = ref || internalRef;\n return /*#__PURE__*/React.createElement(TextInputWrapper, _extends({\n renderContent: function renderContent(_ref2) {\n var inputClassName = _ref2.inputClassName,\n name = _ref2.name,\n id = _ref2.id,\n setFocus = _ref2.setFocus,\n hasError = _ref2.hasError,\n placeholder = _ref2.placeholder,\n placemat = _ref2.placemat,\n label = _ref2.label,\n labelClassName = _ref2.labelClassName,\n inputTag = _ref2.inputTag,\n otherProps = _objectWithoutProperties(_ref2, _excluded2);\n\n if (prefix || suffix) {\n return /*#__PURE__*/React.createElement(TextInputContentWithPrefixSuffix, _extends({\n inputClassName: inputClassName,\n inputTag: inputTag,\n name: name,\n id: id,\n setFocus: setFocus,\n inputRef: textInputRef,\n hasError: hasError,\n placeholder: placeholder\n /*placemat={placemat} placemat is currently not supported with prefix and suffix*/\n ,\n label: label,\n labelClassName: labelClassName,\n prefix: prefix,\n suffix: suffix,\n prefixClassName: prefixClassName,\n suffixClassName: suffixClassName\n }, otherProps, {\n \"data-ppui\": \"true\"\n }));\n }\n\n return /*#__PURE__*/React.createElement(TextInputContent, _extends({\n inputClassName: inputClassName,\n inputTag: inputTag,\n name: name,\n id: id,\n setFocus: setFocus,\n inputRef: textInputRef,\n hasError: hasError,\n placeholder: placeholder,\n placemat: placemat,\n label: label,\n labelClassName: labelClassName\n }, otherProps, {\n \"data-ppui\": \"true\"\n }));\n }\n }, props, {\n \"data-ppui\": \"true\"\n }));\n});\n\nvar _excluded$4 = [\"className\", \"minRows\", \"maxRows\", \"showCharacterCounter\", \"maxCharacters\", \"counterStatusText\", \"onChange\", \"onBlur\", \"onFocus\", \"value\", \"errorText\", \"successText\"],\n _excluded2$1 = [\"inputClassName\", \"name\", \"id\", \"setFocus\", \"hasError\", \"placeholder\", \"label\", \"labelClassName\", \"inputTag\", \"placemat\"];\n// The default should still be 2 rows.\n\nvar MIN_ROWS = 1;\nvar DEFAULT_ROWS = 2;\nvar MAX_ROWS = 6;\nvar TextArea = forwardRef(function (_ref, ref) {\n var className = _ref.className,\n minRows = _ref.minRows,\n maxRows = _ref.maxRows,\n _ref$showCharacterCou = _ref.showCharacterCounter,\n showCharacterCounter = _ref$showCharacterCou === void 0 ? false : _ref$showCharacterCou,\n maxCharacters = _ref.maxCharacters,\n counterStatusText = _ref.counterStatusText,\n _ref$onChange = _ref.onChange,\n onChange = _ref$onChange === void 0 ? null : _ref$onChange,\n _ref$onBlur = _ref.onBlur,\n onBlur = _ref$onBlur === void 0 ? null : _ref$onBlur,\n _ref$onFocus = _ref.onFocus,\n onFocus = _ref$onFocus === void 0 ? null : _ref$onFocus,\n value = _ref.value,\n errorText = _ref.errorText,\n successText = _ref.successText,\n rest = _objectWithoutProperties(_ref, _excluded$4);\n\n var tokens = useTheme(); // Fetch tokens from Emotion context\n\n var _styles = useMemo(function () {\n return styles(tokens);\n }, [tokens]);\n\n var textLineHeight = remToPx( // @ts-ignore\n tokens.sysTypographyFieldLabelLgLineHeight).split('px')[0];\n var maxAllowedRows = maxRows > MIN_ROWS ? Math.min(maxRows, MAX_ROWS) : MAX_ROWS;\n var minAllowedRows = minRows >= MIN_ROWS ? Math.max(minRows, MIN_ROWS) : DEFAULT_ROWS;\n\n var _useState = useState(value ? value.length : 0),\n _useState2 = _slicedToArray(_useState, 2),\n charCount = _useState2[0],\n setCharCount = _useState2[1];\n\n var _useState3 = useState(false),\n _useState4 = _slicedToArray(_useState3, 2),\n isRTL = _useState4[0],\n setRTL = _useState4[1];\n\n var internalRef = useRef();\n var textAreaRef = ref || internalRef;\n var intlContext = useContext(IntlContext);\n var bordersOffset = useRef(0);\n var maxHeight = useRef(textLineHeight * maxAllowedRows);\n var minHeight = useRef(textLineHeight * minAllowedRows);\n\n var computeHeight = function () {\n var textAreaElm = textAreaRef.current; // reset height to min height before setting it again\n\n textAreaElm.style.height = \"\".concat(minHeight.current, \"px\");\n var newHeight = textAreaElm.scrollHeight + bordersOffset.current;\n /* istanbul ignore next */\n\n if (newHeight > maxHeight.current) {\n textAreaElm.style.height = \"\".concat(maxHeight.current, \"px\");\n } else if (newHeight > minHeight.current) {\n textAreaElm.style.height = \"\".concat(newHeight, \"px\");\n } else {\n textAreaElm.style.height = \"\".concat(minHeight.current, \"px\");\n }\n };\n\n useEffect(function () {\n /* istanbul ignore next */\n if (textAreaRef.current) {\n var textAreaElm = textAreaRef.current;\n var offsetHeight = textAreaElm.offsetHeight,\n clientHeight = textAreaElm.clientHeight;\n var computedStyle = window.getComputedStyle(textAreaElm);\n var lineHeightValue = Number(computedStyle.getPropertyValue('line-height').split('px')[0]);\n var paddingBottomValue = Number(computedStyle.getPropertyValue('padding-bottom').split('px')[0]);\n var paddingTopValue = Number(computedStyle.getPropertyValue('padding-top').split('px')[0]);\n var lineHeight = Number.isNaN(lineHeightValue) ? textLineHeight : lineHeightValue;\n var paddingBottom = Number.isNaN(paddingBottomValue) ? 0 : paddingBottomValue;\n var paddingTop = Number.isNaN(paddingTopValue) ? 0 : paddingTopValue;\n bordersOffset.current = offsetHeight - clientHeight;\n maxHeight.current = bordersOffset.current + paddingTop + paddingBottom + lineHeight * maxAllowedRows;\n minHeight.current = bordersOffset.current + paddingTop + paddingBottom + lineHeight * minAllowedRows;\n computeHeight();\n setRTL(computedStyle.direction === 'rtl');\n }\n }, [minAllowedRows, maxAllowedRows, value]);\n\n var handleCounterWrapperClick = function () {\n /* istanbul ignore else */\n if (textAreaRef.current) {\n var textAreaElm = textAreaRef.current;\n textAreaElm.focus();\n }\n };\n\n return jsx(TextInputWrapper, _extends({\n className: className,\n value: value,\n onChange: function handleChange(event) {\n var textAreaElm = event.target;\n setCharCount(textAreaElm.value.length);\n /* istanbul ignore else */\n\n if (onChange) {\n onChange(event);\n }\n },\n onFocus: function handleFocus(event) {\n /* istanbul ignore else */\n if (onFocus) {\n onFocus(event);\n }\n },\n onBlur: function handleBlur(event) {\n /* istanbul ignore else */\n if (onBlur) {\n onBlur(event);\n }\n },\n renderContent: function renderContent(_ref2) {\n var inputClassName = _ref2.inputClassName,\n name = _ref2.name,\n id = _ref2.id,\n setFocus = _ref2.setFocus,\n hasError = _ref2.hasError,\n placeholder = _ref2.placeholder,\n label = _ref2.label,\n labelClassName = _ref2.labelClassName,\n inputTag = _ref2.inputTag,\n placemat = _ref2.placemat,\n otherProps = _objectWithoutProperties(_ref2, _excluded2$1);\n\n var textInputContent = jsx(ClassNames, {\n \"data-ppui\": \"true\"\n }, function (_ref3) {\n var css = _ref3.css,\n cx = _ref3.cx;\n return jsx(TextInputContent, _extends({\n inputClassName: cx(inputClassName, _defineProperty({}, css(_styles.textAreaControl), true)),\n inputTag: \"textarea\",\n name: name,\n id: id,\n setFocus: setFocus,\n inputRef: textAreaRef,\n hasError: hasError,\n placeholder: placeholder,\n label: label,\n labelClassName: cx(labelClassName, _defineProperty({}, css(_styles.textAreaControlLabel), true), _defineProperty({}, css(_styles.textAreaControlErrorLabel), hasError))\n }, otherProps, {\n \"data-ppui\": \"true\"\n }));\n });\n var wrapperCSS = [_styles.textAreaWrapper, hasError && _styles.textAreaErrorCounterWrapper];\n\n if (showCharacterCounter) {\n var maxCharsText = '';\n\n if (maxCharacters) {\n maxCharsText = isRTL ? \"\".concat(maxCharacters, \"/\") : \"/\".concat(maxCharacters);\n }\n\n var counterText = isRTL ? \"\".concat(maxCharsText).concat(charCount) : \"\".concat(charCount).concat(maxCharsText);\n var counterStatusMessage = getFormattedMessage(intlContext, \"\".concat(charCount, \" out of \").concat(maxCharacters, \" characters used\"), counterStatusText, {\n charCount: charCount,\n maxCharacters: maxCharacters\n });\n var counterTextCSS = [_styles.textAreaCounterText, hasError && _styles.textAreaErrorCounterText];\n return jsx(\"div\", {\n css: wrapperCSS,\n onClick: handleCounterWrapperClick,\n \"data-ppui\": \"true\"\n }, textInputContent, jsx(\"div\", {\n css: counterTextCSS,\n role: \"status\",\n \"aria-live\": \"polite\",\n \"aria-atomic\": \"true\",\n \"aria-label\": counterStatusMessage,\n \"data-ppui\": \"true\"\n }, counterText));\n }\n\n return jsx(\"div\", {\n css: wrapperCSS,\n onClick: handleCounterWrapperClick,\n \"data-ppui\": \"true\"\n }, textInputContent);\n },\n errorText: errorText,\n successText: successText,\n \"data-ppui-info\": \"text-area_5.5.4\"\n }, rest));\n});\n\nvar _excluded$5 = [\"className\", \"valueClassName\", \"labelClassName\", \"name\", \"id\", \"label\", \"value\", \"rightIcon\", \"helperText\", \"isLabelHidden\"];\n\nvar TextDisplay = function (_ref) {\n var className = _ref.className,\n valueClassName = _ref.valueClassName,\n labelClassName = _ref.labelClassName,\n _ref$name = _ref.name,\n name = _ref$name === void 0 ? 'textDisplay' : _ref$name,\n id = _ref.id,\n _ref$label = _ref.label,\n label = _ref$label === void 0 ? 'TextDisplay' : _ref$label,\n _ref$value = _ref.value,\n value = _ref$value === void 0 ? '' : _ref$value,\n rightIcon = _ref.rightIcon,\n helperText = _ref.helperText,\n isLabelHidden = _ref.isLabelHidden,\n rest = _objectWithoutProperties(_ref, _excluded$5);\n\n var tokens = useTheme();\n\n var _styles = useMemo(function () {\n return styles(tokens);\n }, [tokens]);\n\n var controlStyles = [_styles.control, _styles.textDisplayControl, rightIcon && _styles.textDisplayControlIconRight];\n var labelStyles = [_styles.label, _styles.textDisplayLabel, rightIcon && _styles.textDisplaylabelIconRight, isLabelHidden && _styles.textDisplayNoLabelControl, isLabelHidden && _styles.labelWithScreenreader];\n var labelId = \"txtDsplyLbl_\".concat(name);\n var valueId = \"txtDsplyVlu_\".concat(name);\n return jsx(TextInputWrapper, _extends({\n className: className,\n label: label,\n name: name,\n isLabelHidden: isLabelHidden,\n helperText: helperText,\n renderContent: function renderContent() {\n return jsx(\"div\", {\n \"aria-labelledby\": \"\".concat(labelId, \" \").concat(valueId),\n id: id,\n \"data-ppui-info\": \"text-display_5.5.4\"\n }, jsx(\"input\", {\n type: \"hidden\",\n name: name,\n value: value,\n \"data-ppui\": \"true\"\n }), jsx(\"span\", {\n css: controlStyles,\n className: valueClassName,\n id: valueId,\n \"data-ppui\": \"true\"\n }, value), jsx(\"span\", {\n css: labelStyles,\n className: labelClassName,\n id: labelId,\n \"data-ppui\": \"true\"\n }, label));\n },\n rightIcon: rightIcon,\n rightIconCSS: _styles.textDisplayIconRight\n }, rest, {\n \"data-ppui\": \"true\"\n }));\n};\n\nexport { TextArea, TextDisplay, TextInput, styles as textInputStyles };\n"],"names":["_templateObject","_templateObject2","_templateObject3","_templateObject4","_templateObject5","_templateObject6","_templateObject7","_templateObject8","_templateObject9","_templateObject10","_templateObject11","_templateObject12","_templateObject13","_templateObject14","_templateObject15","_templateObject16","_templateObject17","_templateObject18","_templateObject19","_templateObject20","_templateObject21","_templateObject22","_templateObject23","_templateObject24","_templateObject25","_templateObject26","_templateObject27","_templateObject28","_templateObject29","_templateObject30","_templateObject31","_templateObject32","_templateObject33","_templateObject34","_templateObject35","_templateObject36","_templateObject37","_templateObject38","_templateObject39","_templateObject40","_templateObject41","_templateObject42","_templateObject43","_templateObject44","_templateObject45","_templateObject46","_templateObject47","_templateObject48","_templateObject49","_templateObject50","styles","tokens","Object","keys","length","sysBorderThicknessNormal","sysBorderThicknessEmphasis","sysBorderRadiusSm","sysColorBackgroundSurface","sysColorBackgroundMediumContrast","sysSpaceTiny","sysSpaceXs","sysSpaceSm","sysSpaceMd","sysSpaceXl","sysMotionDurationMoveSmall","sysSizeTapTargetDefault","sysColorStructureBorderHighContrast","sysColorErrorMain","sysColorSuccessMain","sysTypographyBodyLineHeight","sysTypographyCaptionLineHeight","sysColorBackgroundHighContrast","sysSizeFieldLg","sysSizeFieldSm","backgroundSpaceTop","concat","backgroundSpaceBottom","backgroundSpaceBottomEntered","ppuiV2CurrencyInputMinHeight","_utilStyles","focusStyles","ellipsis","screenReader","variables","_textStyles","caption","body","fieldLabelSm","focusOffsetElement","ppuiEaseMoveSmall","info","color","fieldIcon","label","labelWhenPlaceholderShownAndInputNotFocused","labelWithScreenreader","helperText","base","iconRight","iconLeft","control","nolabelControl","errorControl","controlErrorWithIconRight","controlErrorWithIconLeft","controlErrorWithIconLeftAndRight","noLabelControlError","controlWithIconRight","controlWithIconLeft","controlWithIconLeftAndRight","labelWithIconRight","labelWithIconLeft","errorText","errorIcon","successIcon","multiLineError","prefixWrapper","prefixWrapperError","prefixSuffix","PrefixWrapperControl","prefix","suffix","noLabelSuffixOrPrefix","prefixWrapperControlWithPrefix","prefixWrapperControlWithSuffix","prefixWrapperControlWithPrefixSuffix","textAreaControl","textAreaControlLabel","textAreaControlErrorLabel","textAreaWrapper","textAreaCounterText","textAreaErrorCounterWrapper","textAreaErrorCounterText","ppuiTextInputDisplayRightIconSpaceRight","ppuiTextInputDisplayValueSpaceTop","textDisplayNoLabelControl","textDisplayControl","textDisplayLabel","textDisplayIconRight","textDisplaylabelIconRight","textDisplayControlIconRight","placemat","noLabelPlacemat","_excluded","ownKeys","object","enumerableOnly","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","source","forEach","key","getOwnPropertyDescriptors","defineProperties","defineProperty","FormMessage","_ref","messageId","errorIconAriaLabel","successText","successIconAriaLabel","u","_styles","useMemo","_errorIcon","text","processText","Array","isArray","css","map","msg","index","errorProps","role","size","successProps","id","helperTextCssVal","renderIcon","icon","side","customIconCSS","TextInputWrapper","_ref2","setFocus","className","inputClassName","labelClassName","_ref2$successIconAria","_ref2$error","error","_ref2$errorIconAriaLa","value","name","_ref2$id","isLabelHidden","_ref2$placeholder","placeholder","_ref2$leftIcon","leftIcon","_ref2$rightIcon","rightIcon","onChange","renderContent","children","dir","removeBorderRadiusLeft","removeBorderRadiusRight","removeBorderRadiusBoth","leftIconCSS","rightIconCSS","rest","mainCSS","msgId","valueProps","defaultValue","otherProps","hasError","inputTag","_excluded$1","Placemat","_ref$value","_ref$isLabelHidden","combinedText","undefined","mask","vLen","substring","overlayValue","cssVal","normalizePlaceholder","normalized","TextInputContent","inputRef","isLabelHiddenFinal","inputTagCSS","labelCSS","useEffect","elem","current","focus","ref","htmlFor","_excluded$2","TextInputContentWithPrefixSuffix","prefixClassName","suffixClassName","_ref$onBlur","onBlur","_ref$onFocus","onFocus","textInputRef","prefixClass","suffixClass","prefixWrapperClass","labelId","prefixEleId","suffixEleId","ariaLabelledByIds","onClick","event","trim","_excluded$3","_excluded2","TextInput","forwardRef","props","internalRef","useRef","_excluded$4","_excluded2$1","minRows","maxRows","_ref$showCharacterCou","showCharacterCounter","maxCharacters","counterStatusText","_ref$onChange","textLineHeight","sysTypographyFieldLabelLgLineHeight","split","maxAllowedRows","Math","min","minAllowedRows","max","_useState","useState","_useState2","charCount","setCharCount","_useState3","_useState4","isRTL","setRTL","textAreaRef","intlContext","useContext","bordersOffset","maxHeight","minHeight","textAreaElm","offsetHeight","clientHeight","computedStyle","window","getComputedStyle","lineHeightValue","Number","getPropertyValue","paddingBottomValue","paddingTopValue","lineHeight","isNaN","paddingBottom","paddingTop","style","height","newHeight","scrollHeight","computeHeight","direction","handleCounterWrapperClick","textInputContent","_ref3","cx","wrapperCSS","maxCharsText","counterText","counterStatusMessage","counterTextCSS"],"sourceRoot":""}