{"version":3,"sources":["webpack:////home/jenkins/agent/workspace/rAlWnROk32481EutLuZS/node_modules/@paypalcorp/pp-react-checkbox/dist/@paypalcorp/pp-react-checkbox.esm.js","webpack:////home/jenkins/agent/workspace/rAlWnROk32481EutLuZS/node_modules/@paypalcorp/pp-react-radio/dist/@paypalcorp/pp-react-radio.esm.js"],"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","styles","tokens","screenReader","Object","keys","length","console","warn","sysBorderRadiusSm","sysBorderThicknessNormal","sysSizeCircleXs","sysColorBackgroundSurface","sysColorSelectedContrast","sysBorderThicknessEmphasis","sysColorStructureBorderHighContrast","sysColorSelectedMain","sysColorErrorMain","sysColorSuccessMain","sysColorBackgroundMediumContrast","sysSpaceXs","sysSpaceMd","sysSpaceTiny","sysSizeIconXs","sysSizeIconLg","sysSpaceSm","sysBorderRadiusXs","sysSpaceXl","checkboxItemTextSpacing","concat","_textStyles","textBody","body","textCaption","caption","focusStyles","focusAfter","stateErrorFocusBorderColorOuter","stateFocusBorderColorInner","stateFocusBorderWidthInner","stateErrorFocusBorderColorInner","checkboxBase","checkboxGroup","groupBase","checkboxLabel","groupLabel","color","iconLabel","checkIcon","partialIcon","checkboxInput","radius","width","height","top","left","border","checkboxErrorState","boxShadowColor","errorCheckIconContainer","checkboxMessageText","errorIcon","successIcon","labelError","helper","groupHelper","checkboxItems","itemThumbnail","itemThumbnailDecoration","itemText","itemSecondaryText","groupBaseWithSecText","legalConsentLabel","legalConsentText","legalConsentSupportingTextWrapper","legalConsentSupportingTextWrapperWhenNoLabel","legalConsentLinksWrapper","legalConsentLinksWrapperWhenNoLabel","checkIconContainer","isDecoration","legalConsentGroupSpacing","_excluded","Checkbox","_ref","ref","message","_checkboxStyles$check","thumbnail","labelIconElm","checkboxCheckIcon","checkboxPartialIcon","helperTextElm","iconContainerCssVal","labelContainerCssVal","checkboxItemsIcon","checkboxItemsElm","id","label","ariaLabel","decoration","secondaryText","labelIcon","helperText","errorText","_ref$errorIconAriaLab","errorIconAriaLabel","error","successText","_ref$successIconAriaL","successIconAriaLabel","partial","_ref$name","name","dir","className","onChange","inCheckboxGroup","rest","checkboxStyles","cssVal","checkboxId","checkboxErrorIcon","css","size","role","checkboxSuccessIcon","type","evt","stopPropagation","call","_ref2","cx","cloneElement","props","as","htmlFor","_excluded$1","ownKeys","object","enumerableOnly","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","source","forEach","key","getOwnPropertyDescriptors","defineProperties","defineProperty","LegalConsent","componentMarkup","_styles$checkIconCont","_ref$links","links","children","_styles","linkComponents","map","index","link","createElement","legalConsentSupportingTextWrapperCssVal","legalConsentLinksWrapperCssVal","Tag","Fragment","_excluded$2","LegalConsentGroup","_excluded$3","CheckboxGroup","isError","isSuccess","helperCssVal","childProps","checkboxList","Children","toArray","child","sysBorderRadiusInteractive","sysColorBackgroundSurfaceActive","sysSizeTapTargetSm","radiobuttonItemTextSpacing","fieldLabelLg","fieldValueSm","radioGroupBase","radioBase","radioGroupLabel","radioGroupLabelWithIcon","radioGroupLabelIcon","radioLabel","input","inputWithError","centeredLabelCheckIconContainer","centeredLabelInput","errorCenteredLabelInput","groupHelperText","RadioCheckIcon","checkIconCssVals","viewBox","xmlns","r","cy","strokeWidth","fill","Radio","_ref$value","value","inferValue","_ref$id","_ref$centeredLabel","centeredLabel","labelClassName","_ref$checked","checked","valueProps","text","helperTextCssVals","inputCssVals","checkIconContainerCssVals","FieldGroupLabel","componentProps","FieldGroupMessage","msgId","radioErrorIcon","ownKeys$1","_objectSpread$1","RadioButton","optionsList","componentName","currentValue","changeHandler","radioLabelClassName","icon","_ref$options","options","radioId","fieldGroupLabelCssVal","listProps","checkedPropName","radioProps"],"mappings":"2FAAA,iLAYIA,EAAiBC,EAAkBC,EAAkBC,EAAkBC,EAAkBC,EAAkBC,EAAkBC,EAAkBC,EAAkBC,EAAmBC,EAAmBC,EAAmBC,EAAmBC,EAAmBC,EAAmBC,EAAmBC,EAAmBC,EAAmBC,EAAmBC,EAAmBC,EAAmBC,EAAmBC,EAAmBC,EAAmBC,EAAmBC,EAAmBC,EAAmBC,EAAmBC,EAAmBC,EAAmBC,EAAmBC,EAZvkB,oGAaA,SAASC,EAAOC,GACd,IACIC,EADc,YAAWD,GACEC,aAI/B,IAAKC,OAAOC,KAAKH,GAAQI,OAGvB,OADAC,QAAQC,KAAK,qGACN,GAGT,IAAIC,EAAoBP,EAAOO,kBAC3BC,EAA2BR,EAAOQ,yBAClCC,EAAkBT,EAAOS,gBACzBC,EAA4BV,EAAOU,0BACnCC,EAA2BX,EAAOW,yBAClCC,EAA6BZ,EAAOY,2BACpCC,EAAsCb,EAAOa,oCAC7CC,EAAuBd,EAAOc,qBAC9BC,EAAoBf,EAAOe,kBAC3BC,EAAsBhB,EAAOgB,oBAC7BC,EAAmCjB,EAAOiB,iCAC1CC,EAAalB,EAAOkB,WACpBC,EAAanB,EAAOmB,WACpBC,EAAepB,EAAOoB,aACtBC,EAAgBrB,EAAOqB,cACvBC,GAAgBtB,EAAOsB,cACvBC,GAAavB,EAAOuB,WACpBC,GAAoBxB,EAAOwB,kBAC3BC,GAAazB,EAAOyB,WACpBC,GAA0B,YAAK,GAAGC,OAAOlB,EAAiB,OAAOkB,OAAOR,EAAY,OAAOQ,OAAOP,IAElGQ,GAAc,YAAW5B,GACzB6B,GAAWD,GAAYE,KACvBC,GAAcH,GAAYI,QAG1BC,GADe,YAAWjC,GACCiC,YAE3BC,GAAaD,GAAYC,WACzBC,GAAkCF,GAAYE,gCAC9CC,GAA6BH,GAAYG,2BACzCC,GAA6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3H,EA1BK,KADIwH,EA2B/BO,GA1BgB5O,OACP,YAAI,IAAK,CACd,YAAa,QACZ,eAGEqO,EAAYrE,KAAI,SAAU+E,EAAW9E,GAC1C,IAAI+E,EAAkBR,EAAgB,UAAY,iBAE9CS,EAAad,EAAgBA,EAAgB,GAAIY,GAAY,GAAI,CACnE1B,eAAgBoB,IAOlB,OAJIF,IAAiBQ,EAAU/B,QAC7BiC,EAAWD,IAAmB,GAGzB,YAAIlC,EAAO,YAAS,CACzB1D,IAAK,YAAY7H,OAAO0I,GACxBvD,KAAM4H,EACNzH,SAAU2H,EACVvI,UAAWA,GACVgJ,EAAYlI,EAAM,CACnB,YAAa,cAGgB,YAAIgH,EAAmB,CACxD9H,UAAWA,EACXD,WAAYA,EACZG,mBAAoBA,EACpB6H,MAAOA,EACPlE,QAASA,EACT,YAAa","file":"default~funding-option-selector~guest~request-page~request-preview~send-page~universal-preview.esm.js","sourcesContent":["import _taggedTemplateLiteral from '@babel/runtime/helpers/esm/taggedTemplateLiteral';\nimport { css, useTheme, jsx, ClassNames } from '@emotion/react';\nimport { math } from 'polished';\nimport { textStyles, BodyText, CaptionText } from '@paypalcorp/pp-react-text';\nimport { utilStyles, uniqueId } from '@paypalcorp/pp-react-utils';\nimport _extends from '@babel/runtime/helpers/esm/extends';\nimport _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';\nimport React, { forwardRef, useMemo } from 'react';\nimport { CriticalIcon, CheckmarkBackgroundIcon, CheckmarkSmIcon } from '@paypalcorp/pp-react-icons';\nimport _defineProperty from '@babel/runtime/helpers/esm/defineProperty';\nimport { Link } from '@paypalcorp/pp-react-links';\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;\nfunction styles(tokens) {\n var _utilStyles = utilStyles(tokens),\n screenReader = _utilStyles.screenReader;\n /* istanbul ignore next */\n\n\n if (!Object.keys(tokens).length) {\n // eslint-disable-next-line no-console\n console.warn('Missing Emotion theme. Use ThemeProvider from @emotion/react to pass a valid theme from pp-react.');\n return {};\n }\n\n var sysBorderRadiusSm = tokens.sysBorderRadiusSm,\n sysBorderThicknessNormal = tokens.sysBorderThicknessNormal,\n sysSizeCircleXs = tokens.sysSizeCircleXs,\n sysColorBackgroundSurface = tokens.sysColorBackgroundSurface,\n sysColorSelectedContrast = tokens.sysColorSelectedContrast,\n sysBorderThicknessEmphasis = tokens.sysBorderThicknessEmphasis,\n sysColorStructureBorderHighContrast = tokens.sysColorStructureBorderHighContrast,\n sysColorSelectedMain = tokens.sysColorSelectedMain,\n sysColorErrorMain = tokens.sysColorErrorMain,\n sysColorSuccessMain = tokens.sysColorSuccessMain,\n sysColorBackgroundMediumContrast = tokens.sysColorBackgroundMediumContrast,\n sysSpaceXs = tokens.sysSpaceXs,\n sysSpaceMd = tokens.sysSpaceMd,\n sysSpaceTiny = tokens.sysSpaceTiny,\n sysSizeIconXs = tokens.sysSizeIconXs,\n sysSizeIconLg = tokens.sysSizeIconLg,\n sysSpaceSm = tokens.sysSpaceSm,\n sysBorderRadiusXs = tokens.sysBorderRadiusXs,\n sysSpaceXl = tokens.sysSpaceXl;\n var checkboxItemTextSpacing = math(\"\".concat(sysSizeCircleXs, \" + \").concat(sysSpaceMd, \" + \").concat(sysSpaceTiny)); // tokens not available so created variables\n\n var _textStyles = textStyles(tokens),\n textBody = _textStyles.body,\n textCaption = _textStyles.caption;\n\n var _utilStyles2 = utilStyles(tokens),\n focusStyles = _utilStyles2.focusStyles;\n\n var focusAfter = focusStyles.focusAfter,\n stateErrorFocusBorderColorOuter = focusStyles.stateErrorFocusBorderColorOuter,\n stateFocusBorderColorInner = focusStyles.stateFocusBorderColorInner,\n stateFocusBorderWidthInner = focusStyles.stateFocusBorderWidthInner,\n stateErrorFocusBorderColorInner = focusStyles.stateErrorFocusBorderColorInner;\n\n var labelCheckedCommon = function () {\n return css(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n border-color: \", \";\\n background-color: \", \";\\n color: \", \";\\n border-radius: \", \";\\n \"])), sysColorSelectedMain, sysColorSelectedMain, sysColorSelectedContrast, sysBorderRadiusSm);\n }; // Checkbox base class\n\n\n var checkboxBase = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral([\"\\n label: checkbox_base;\\n position: relative;\\n text-align: start;\\n margin-bottom: 0;\\n \"]))); // Checkbox group class\n\n var checkboxGroup = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral([\"\\n label: checkbox_group;\\n display: flex;\\n flex-direction: column;\\n margin: 0;\\n padding: 0;\\n border: none;\\n text-align: start;\\n \"]))); // Checkbox inside group class\n\n var groupBase = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral([\"\\n label: group_base;\\n padding: \", \" 0;\\n \"])), sysSpaceMd); // Checkbox label class\n\n var checkboxLabel = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral([\"\\n label: label;\\n -moz-osx-font-smoothing: grayscale;\\n cursor: pointer;\\n display: block;\\n padding-inline-start: \", \";\\n \", \"\\n position: relative;\\n text-align: start;\\n span:first-of-type {\\n inset-inline-start: 0;\\n }\\n -webkit-tap-highlight-color: transparent;\\n \"])), checkboxItemTextSpacing, textBody());\n var groupLabel = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral([\"\\n label: group_label;\\n \", \"\\n padding: 0 0 \", \" 0;\\n margin-bottom: \", \";\\n text-align: start;\\n \"])), textBody({\n color: sysColorBackgroundMediumContrast\n }), sysSpaceMd, sysSpaceXs); // Checkbox icon label class\n\n var iconLabel = css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral([\"\\n label: icon_label;\\n position: relative;\\n top: 0.125rem;\\n margin-left: \", \";\\n \"])), sysSpaceMd); // Checkbox icon container class\n\n var checkIconContainer = function (isDecoration) {\n return css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral([\"\\n label: checkmark_container;\\n border-radius: \", \";\\n border: \", \" solid\\n \", \";\\n box-sizing: border-box;\\n height: \", \";\\n left: 0;\\n position: absolute;\\n top: \", \";\\n width: \", \";\\n line-height: \", \";\\n text-align: center;\\n background-color: \", \";\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n \"])), sysBorderRadiusSm, sysBorderThicknessNormal, sysColorStructureBorderHighContrast, sysSizeCircleXs, isDecoration ? 'auto' : 0, sysSizeCircleXs, 1.3, sysColorBackgroundSurface);\n };\n\n var checkIcon = css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral([\"\\n label: check_icon;\\n display: none;\\n font-size: \", \";\\n \"])), sysSizeIconXs);\n var partialIcon = css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral([\"\\n label: partial_icon;\\n height: \", \";\\n width: \", \";\\n background-color: \", \";\\n border-radius: \", \";\\n \"])), sysSpaceTiny, \"0.875rem\", sysColorSelectedContrast, sysBorderRadiusXs);\n var checkboxInput = css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral([\"\\n label: checkbox_input;\\n cursor: pointer;\\n opacity: 0;\\n position: absolute;\\n &:checked + label > span > span:first-of-type {\\n \", \"\\n span:first-of-type {\\n display: inline;\\n }\\n }\\n &:focus + label > span > span:first-of-type:after {\\n \", \"\\n [dir='rtl'] & {\\n left: 0;\\n right: -\", \";\\n }\\n }\\n \"])), labelCheckedCommon(), focusAfter({\n radius: sysBorderRadiusSm,\n width: sysSizeCircleXs,\n height: sysSizeCircleXs,\n top: \"-\".concat(sysBorderThicknessNormal),\n left: \"-\".concat(sysBorderThicknessNormal),\n border: \"\".concat(sysBorderThicknessEmphasis, \" solid \").concat(stateFocusBorderColorInner)\n }), sysBorderThicknessNormal); // Checkbox error class\n\n var checkboxErrorState = css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral([\"\\n label: error;\\n &:checked + label > span > span:first-of-type {\\n border-width: \", \";\\n border-color: \", \";\\n }\\n &:focus + label > span > span:first-of-type:after {\\n \", \";\\n [dir='rtl'] & {\\n left: 0;\\n right: -\", \";\\n }\\n }\\n \"])), sysBorderThicknessEmphasis, sysColorErrorMain, focusAfter({\n radius: sysBorderRadiusSm,\n width: sysSizeCircleXs,\n height: sysSizeCircleXs,\n border: \"\".concat(stateFocusBorderWidthInner, \" solid\\n \").concat(stateErrorFocusBorderColorInner),\n boxShadowColor: stateErrorFocusBorderColorOuter,\n top: \"-\".concat(sysBorderThicknessEmphasis),\n left: \"-\".concat(sysBorderThicknessEmphasis)\n }), sysBorderThicknessEmphasis);\n var errorCheckIconContainer = css(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral([\"\\n label: error_checkbox;\\n border-width: \", \";\\n border-color: \", \";\\n line-height: \", \";\\n \"])), sysBorderThicknessEmphasis, sysColorErrorMain, 1.1);\n var checkboxMessageText = css(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral([\"\\n label: error_text;\\n \", \"\\n display: flex;\\n align-items: center;\\n margin: 0;\\n \"])), textCaption({\n color: sysColorBackgroundMediumContrast\n }));\n var errorIcon = css(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral([\"\\n label: error_icon;\\n color: \", \";\\n margin-inline-end: \", \";\\n \"])), sysColorErrorMain, sysSpaceXs);\n var successIcon = css(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral([\"\\n label: success_icon;\\n color: \", \";\\n margin-inline-end: \", \";\\n \"])), sysColorSuccessMain, sysSpaceXs);\n var labelError = css(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral([\"\\n padding-bottom: \", \";\\n \"])), sysSpaceMd);\n var helper = css(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral([\"\\n label: helper_text;\\n \", \"\\n margin: \", \" 0 0;\\n \"])), textCaption({\n color: sysColorBackgroundMediumContrast\n }), sysSpaceXs);\n var groupHelper = css(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral([\"\\n label: group_helper_text;\\n margin: 0;\\n \"])));\n var checkboxItems = css(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral([\"\\n label: checkbox_items;\\n display: flex;\\n align-items: center;\\n min-height: \", \";\\n margin: 0;\\n \"])), \"1.5rem\");\n var itemThumbnail = css(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral([\"\\n label: thumbnail;\\n display: flex;\\n align-items: center;\\n margin-inline-end: \", \";\\n min-height: auto;\\n pointer-events: none;\\n \"])), sysSpaceSm);\n var itemThumbnailDecoration = css(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral([\"\\n label: thumbnail_decoration;\\n width: \", \";\\n height: \", \";\\n \"])), sysSizeIconLg, sysSizeIconLg);\n var itemText = css(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral([\"\\n label: item_text;\\n margin: 0; /* overwrite default margin */\\n pointer-events: none;\\n \"])));\n var itemSecondaryText = css(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral([\"\\n label: item_secondary_text;\\n display: block;\\n padding-top: \", \";\\n pointer-events: none;\\n \", \";\\n \"])), sysSpaceXs, textCaption({\n color: sysColorBackgroundMediumContrast\n }));\n var groupBaseWithSecText = css(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral([\"\\n label: group_base_with_sec_text;\\n padding: \", \" 0;\\n \"])), sysSpaceSm);\n var legalConsentLabel = css(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral([\"\\n label: legal_consent_label;\\n margin-bottom: \", \";\\n > span:first-of-type {\\n display: flex;\\n }\\n \"])), sysSpaceMd);\n var legalConsentText = css(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral([\"\\n label: legal_consent_text;\\n \", \";\\n \"])), textCaption({\n color: sysColorBackgroundMediumContrast\n }));\n var legalConsentSupportingTextWrapper = css(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral([\"\\n label: legal_consent_supporting_text_wrapper;\\n padding-inline-start: \", \";\\n \", \";\\n margin: 0;\\n \"])), checkboxItemTextSpacing, textCaption({\n color: sysColorBackgroundMediumContrast\n }));\n var legalConsentSupportingTextWrapperWhenNoLabel = css(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral([\"\\n label: legal_consent_supporting_text_wrapper_when_no_label;\\n padding-inline-start: 0;\\n \"])));\n var legalConsentLinksWrapper = css(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral([\"\\n label: legal_consent_links_wrapper;\\n padding: \", \" 0 0 0;\\n margin: 0;\\n list-style-type: none;\\n \"])), sysSpaceMd);\n var legalConsentLinksWrapperWhenNoLabel = css(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral([\"\\n label: legal_consent_links_wrapper_when_no_label;\\n padding-top: 0;\\n \"])));\n var legalConsentGroupSpacing = css(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral([\"\\n label: legal_consent_group_spacing;\\n display: flex;\\n flex-direction: column;\\n row-gap: \", \";\\n align-items: flex-start;\\n \"])), sysSpaceXl);\n return {\n checkboxBase: checkboxBase,\n checkboxGroup: checkboxGroup,\n groupBase: groupBase,\n checkboxLabel: checkboxLabel,\n groupLabel: groupLabel,\n iconLabel: iconLabel,\n checkIconContainer: checkIconContainer,\n checkIcon: checkIcon,\n checkboxInput: checkboxInput,\n checkboxErrorState: checkboxErrorState,\n errorCheckIconContainer: errorCheckIconContainer,\n checkboxMessageText: checkboxMessageText,\n errorIcon: errorIcon,\n partialIcon: partialIcon,\n successIcon: successIcon,\n labelError: labelError,\n helper: helper,\n groupHelper: groupHelper,\n checkboxItems: checkboxItems,\n itemThumbnail: itemThumbnail,\n itemThumbnailDecoration: itemThumbnailDecoration,\n itemText: itemText,\n itemSecondaryText: itemSecondaryText,\n groupBaseWithSecText: groupBaseWithSecText,\n screenReader: screenReader,\n legalConsentLabel: legalConsentLabel,\n legalConsentText: legalConsentText,\n legalConsentSupportingTextWrapper: legalConsentSupportingTextWrapper,\n legalConsentSupportingTextWrapperWhenNoLabel: legalConsentSupportingTextWrapperWhenNoLabel,\n legalConsentLinksWrapper: legalConsentLinksWrapper,\n legalConsentGroupSpacing: legalConsentGroupSpacing,\n legalConsentLinksWrapperWhenNoLabel: legalConsentLinksWrapperWhenNoLabel\n };\n}\n\nvar _excluded = [\"id\", \"label\", \"aria-label\", \"decoration\", \"secondaryText\", \"labelIcon\", \"helperText\", \"errorText\", \"errorIconAriaLabel\", \"error\", \"successText\", \"successIconAriaLabel\", \"partial\", \"name\", \"dir\", \"className\", \"onChange\", \"inCheckboxGroup\"];\nvar Checkbox = forwardRef(function (_ref, ref) {\n var id = _ref.id,\n label = _ref.label,\n ariaLabel = _ref['aria-label'],\n decoration = _ref.decoration,\n secondaryText = _ref.secondaryText,\n labelIcon = _ref.labelIcon,\n helperText = _ref.helperText,\n errorText = _ref.errorText,\n _ref$errorIconAriaLab = _ref.errorIconAriaLabel,\n errorIconAriaLabel = _ref$errorIconAriaLab === void 0 ? 'Error' : _ref$errorIconAriaLab,\n error = _ref.error,\n successText = _ref.successText,\n _ref$successIconAriaL = _ref.successIconAriaLabel,\n successIconAriaLabel = _ref$successIconAriaL === void 0 ? 'Success' : _ref$successIconAriaL,\n partial = _ref.partial,\n _ref$name = _ref.name,\n name = _ref$name === void 0 ? 'default' : _ref$name,\n dir = _ref.dir,\n className = _ref.className,\n onChange = _ref.onChange,\n inCheckboxGroup = _ref.inCheckboxGroup,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n var tokens = useTheme();\n var checkboxStyles = useMemo(function () {\n return styles(tokens);\n }, [tokens]);\n var cssVal = [checkboxStyles.checkboxBase, error && checkboxStyles.checkboxErrorState, inCheckboxGroup && checkboxStyles.groupBase, inCheckboxGroup && secondaryText && checkboxStyles.groupBaseWithSecText];\n\n var checkboxTextItemsElm = function () {\n var thumbnail = decoration && jsx(\"span\", {\n css: checkboxStyles.itemThumbnail,\n \"data-ppui\": \"true\"\n }, jsx(ClassNames, {\n \"data-ppui\": \"true\"\n }, function (_ref2) {\n var css = _ref2.css,\n cx = _ref2.cx;\n return React.cloneElement(decoration, {\n className: cx(decoration.props.className, css(checkboxStyles.itemThumbnailDecoration))\n });\n }));\n var itemText = jsx(\"span\", {\n css: checkboxStyles.itemText,\n \"data-ppui\": \"true\"\n }, jsx(BodyText, {\n as: \"span\",\n css: [!label && checkboxStyles.screenReader],\n \"data-ppui\": \"true\"\n }, label !== null && label !== void 0 ? label : ariaLabel), secondaryText && jsx(CaptionText, {\n css: checkboxStyles.itemSecondaryText,\n as: \"span\",\n \"data-ppui\": \"true\"\n }, secondaryText));\n return jsx(\"span\", {\n css: checkboxStyles.checkboxItems,\n \"data-ppui\": \"true\"\n }, thumbnail, itemText);\n };\n\n var checkboxId = id !== null && id !== void 0 ? id : uniqueId('Checkbox_');\n var checkboxErrorIcon = jsx(CriticalIcon, {\n css: checkboxStyles.errorIcon,\n size: \"sm\",\n role: \"img\",\n \"aria-label\": errorIconAriaLabel,\n \"data-ppui\": \"true\"\n });\n var checkboxSuccessIcon = jsx(CheckmarkBackgroundIcon, {\n css: checkboxStyles.successIcon,\n size: \"sm\",\n role: \"img\",\n \"aria-label\": successIconAriaLabel,\n \"data-ppui\": \"true\"\n });\n var message;\n\n if (error && !successText) {\n message = errorText && jsx(\"p\", {\n css: checkboxStyles.checkboxMessageText,\n id: name,\n \"data-ppui\": \"true\"\n }, checkboxErrorIcon, errorText);\n } else if (successText && !error) {\n message = successText && jsx(\"p\", {\n css: checkboxStyles.checkboxMessageText,\n id: name,\n \"data-ppui\": \"true\"\n }, checkboxSuccessIcon, successText);\n }\n\n return jsx(\"div\", {\n css: cssVal,\n className: className,\n \"data-id\": \"checkbox\",\n dir: dir,\n \"data-ppui-info\": \"checkbox_4.6.0\"\n }, jsx(\"input\", _extends({\n css: [checkboxStyles.checkboxInput, error && checkboxStyles.checkboxErrorState],\n type: \"checkbox\",\n id: checkboxId,\n name: name,\n ref: ref,\n onChange: function handleChange(evt) {\n // stop the propagation to the parent if onChange exists\n\n /* istanbul ignore next */\n if (onChange) {\n evt.stopPropagation();\n onChange(evt);\n }\n }\n }, rest, error && errorText && {\n 'aria-describedby': name,\n 'aria-invalid': true\n }, {\n \"data-ppui\": \"true\"\n })), function renderLabel() {\n var _checkboxStyles$check;\n\n var labelIconElm = labelIcon && jsx(\"span\", {\n css: checkboxStyles.iconLabel,\n \"data-ppui\": \"true\"\n }, labelIcon);\n var checkboxCheckIcon = jsx(CheckmarkSmIcon, {\n css: checkboxStyles.checkIcon,\n size: \"xs\",\n \"data-ppui\": \"true\"\n });\n var checkboxPartialIcon = jsx(\"span\", {\n css: checkboxStyles.partialIcon,\n \"data-ppui\": \"true\"\n });\n var helperTextElm = !error && !successText && helperText && jsx(\"p\", {\n css: checkboxStyles.helper,\n \"data-ppui\": \"true\"\n }, helperText);\n var iconContainerCssVal = [(_checkboxStyles$check = checkboxStyles.checkIconContainer) === null || _checkboxStyles$check === void 0 ? void 0 : _checkboxStyles$check.call(checkboxStyles, !!decoration), error && checkboxStyles.errorCheckIconContainer];\n var labelContainerCssVal = [checkboxStyles.checkboxLabel, (error || successText) && !inCheckboxGroup && checkboxStyles.labelError];\n var checkboxItemsIcon = partial ? checkboxPartialIcon : checkboxCheckIcon;\n var checkboxItemsElm = jsx(\"span\", {\n css: checkboxStyles.checkboxItems,\n \"data-ppui\": \"true\"\n }, jsx(\"span\", {\n css: iconContainerCssVal,\n \"data-ppui\": \"true\"\n }, checkboxItemsIcon), checkboxTextItemsElm());\n return jsx(\"label\", {\n css: labelContainerCssVal,\n htmlFor: checkboxId,\n \"data-ppui\": \"true\"\n }, checkboxItemsElm, labelIconElm, helperTextElm);\n }(), message);\n});\n\nvar _excluded$1 = [\"id\", \"name\", \"label\", \"links\", \"onChange\", \"errorText\", \"errorIconAriaLabel\", \"className\", \"children\"];\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; }\nvar LegalConsent = forwardRef(function (_ref, ref) {\n var id = _ref.id,\n name = _ref.name,\n label = _ref.label,\n _ref$links = _ref.links,\n links = _ref$links === void 0 ? [] : _ref$links,\n onChange = _ref.onChange,\n errorText = _ref.errorText,\n _ref$errorIconAriaLab = _ref.errorIconAriaLabel,\n errorIconAriaLabel = _ref$errorIconAriaLab === void 0 ? 'Error' : _ref$errorIconAriaLab,\n className = _ref.className,\n children = _ref.children,\n rest = _objectWithoutProperties(_ref, _excluded$1);\n\n var tokens = useTheme();\n\n var _styles = useMemo(function () {\n return styles(tokens);\n }, [tokens]);\n\n var linkComponents = links.map(function (props, index) {\n var link = React.createElement(Link, _objectSpread(_objectSpread({}, props), {}, {\n size: 'sm'\n }));\n return jsx(\"li\", {\n key: index,\n \"data-ppui\": \"true\"\n }, link);\n });\n var checkboxId = id !== null && id !== void 0 ? id : uniqueId('LegalConsent_');\n var cssVal = [_styles.checkboxBase, errorText && _styles.checkboxErrorState];\n var legalConsentSupportingTextWrapperCssVal = [_styles.legalConsentSupportingTextWrapper, label && errorText && _styles.labelError, !(label === null || label === void 0 ? void 0 : label.length) && _styles.legalConsentSupportingTextWrapperWhenNoLabel];\n var legalConsentLinksWrapperCssVal = [_styles.legalConsentGroupSpacing, _styles.legalConsentLinksWrapper, !(label === null || label === void 0 ? void 0 : label.length) && _styles.legalConsentLinksWrapperWhenNoLabel];\n var componentMarkup;\n var Tag = 'p';\n\n if (linkComponents.length) {\n componentMarkup = jsx(\"ul\", {\n css: legalConsentLinksWrapperCssVal,\n \"data-ppui\": \"true\"\n }, linkComponents);\n Tag = 'div';\n } else {\n componentMarkup = children;\n }\n\n return jsx(\"div\", {\n css: cssVal,\n className: className,\n \"data-ppui-info\": \"checkbox_4.6.0\"\n }, label && jsx(React.Fragment, null, jsx(\"input\", _extends({\n css: [_styles.checkboxInput, errorText && _styles.checkboxErrorState],\n type: \"checkbox\",\n id: checkboxId,\n name: name,\n ref: ref,\n onChange: function handleChange(evt) {\n // stop the propagation to the parent if onChange exists\n\n /* istanbul ignore next */\n if (onChange) {\n evt.stopPropagation();\n onChange(evt);\n }\n }\n }, rest, errorText && {\n 'aria-describedby': name,\n 'aria-invalid': true\n }, {\n \"data-ppui\": \"true\"\n })), function renderLabel() {\n var _styles$checkIconCont;\n\n var iconContainerCssVal = [(_styles$checkIconCont = _styles.checkIconContainer) === null || _styles$checkIconCont === void 0 ? void 0 : _styles$checkIconCont.call(_styles, false), errorText && _styles.errorCheckIconContainer];\n var checkboxItemsElm = jsx(\"span\", {\n \"data-ppui\": \"true\"\n }, jsx(\"span\", {\n css: iconContainerCssVal,\n \"data-ppui\": \"true\"\n }, jsx(CheckmarkSmIcon, {\n css: _styles.checkIcon,\n size: \"xs\",\n \"data-ppui\": \"true\"\n })), jsx(CaptionText, {\n css: _styles.legalConsentText,\n as: \"span\",\n \"data-ppui\": \"true\"\n }, label));\n var labelContainerCssVal = [_styles.checkboxLabel, _styles.checkboxItems, _styles.legalConsentLabel];\n return jsx(\"label\", {\n css: labelContainerCssVal,\n htmlFor: checkboxId,\n \"data-ppui\": \"true\"\n }, checkboxItemsElm);\n }()), jsx(Tag, {\n css: legalConsentSupportingTextWrapperCssVal,\n \"data-ppui\": \"true\"\n }, componentMarkup), label && errorText && jsx(\"p\", {\n css: _styles.checkboxMessageText,\n id: name,\n \"data-ppui\": \"true\"\n }, jsx(CriticalIcon, {\n css: _styles.errorIcon,\n size: \"sm\",\n role: \"img\",\n \"aria-label\": errorIconAriaLabel,\n \"data-ppui\": \"true\"\n }), errorText));\n});\n\nvar _excluded$2 = [\"children\", \"className\"];\n\nvar LegalConsentGroup = function (_ref) {\n var children = _ref.children,\n className = _ref.className,\n rest = _objectWithoutProperties(_ref, _excluded$2);\n\n var tokens = useTheme();\n\n var _styles = useMemo(function () {\n return styles(tokens);\n }, [tokens]);\n\n return jsx(\"div\", _extends({\n css: _styles.legalConsentGroupSpacing,\n className: className\n }, rest, {\n \"data-ppui\": \"true\"\n }), children);\n};\n\nvar _excluded$3 = [\"label\", \"labelIcon\", \"helperText\", \"errorText\", \"error\", \"successText\", \"className\", \"children\"];\n\n// eslint-disable-next-line complexity\nvar CheckboxGroup = function (_ref) {\n var label = _ref.label,\n labelIcon = _ref.labelIcon,\n helperText = _ref.helperText,\n errorText = _ref.errorText,\n error = _ref.error,\n successText = _ref.successText,\n className = _ref.className,\n children = _ref.children,\n rest = _objectWithoutProperties(_ref, _excluded$3);\n\n var tokens = useTheme();\n\n var _styles = useMemo(function () {\n return styles(tokens);\n }, [tokens]);\n\n var isError = error && !successText;\n var isSuccess = successText && !error;\n var checkboxErrorIcon = jsx(CriticalIcon, {\n css: _styles.errorIcon,\n size: \"sm\",\n \"data-ppui\": \"true\"\n });\n var checkboxSuccessIcon = jsx(CheckmarkBackgroundIcon, {\n css: _styles.successIcon,\n size: \"sm\",\n \"data-ppui\": \"true\"\n });\n var helperCssVal = [!error && _styles.helper, (isError || isSuccess) && _styles.checkboxMessageText, _styles.groupHelper];\n var message = (errorText || helperText || successText) && jsx(\"p\", {\n css: helperCssVal,\n \"data-ppui\": \"true\"\n }, isError && checkboxErrorIcon, isSuccess && checkboxSuccessIcon, isError && errorText, isSuccess && successText, !isError && !isSuccess && helperText);\n var labelIconElm = labelIcon && jsx(\"span\", {\n css: _styles.iconLabel,\n \"data-ppui\": \"true\"\n }, labelIcon);\n var childProps = {\n error: error,\n inCheckboxGroup: true\n };\n var checkboxList = React.Children.toArray(children).map(function (child) {\n return React.cloneElement(child, childProps);\n });\n return jsx(\"fieldset\", _extends({\n css: [_styles.checkboxGroup, error && _styles.checkboxErrorState],\n className: className,\n \"data-ppui-info\": \"checkbox_4.6.0\"\n }, rest), jsx(\"legend\", {\n css: _styles.groupLabel,\n \"data-ppui\": \"true\"\n }, label, labelIconElm), checkboxList, message);\n};\n\nexport { Checkbox, CheckboxGroup, LegalConsent, LegalConsentGroup, styles as checkboxStyles };\n","import _taggedTemplateLiteral from '@babel/runtime/helpers/esm/taggedTemplateLiteral';\nimport { css, useTheme, jsx } from '@emotion/react';\nimport { math } from 'polished';\nimport { textStyles } from '@paypalcorp/pp-react-text';\nimport { utilStyles, uniqueId } from '@paypalcorp/pp-react-utils';\nimport _extends from '@babel/runtime/helpers/esm/extends';\nimport _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';\nimport React, { forwardRef, useMemo } from 'react';\nimport _defineProperty from '@babel/runtime/helpers/esm/defineProperty';\nimport { CriticalIcon } from '@paypalcorp/pp-react-icons';\n\nvar _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18;\nfunction styles(tokens) {\n /* istanbul ignore next */\n if (!Object.keys(tokens).length) {\n console.warn('Missing Emotion theme. Use ThemeProvider from @emotion/react to pass a valid theme from pp-react.');\n return {};\n }\n\n var sysBorderRadiusInteractive = tokens.sysBorderRadiusInteractive,\n sysBorderThicknessEmphasis = tokens.sysBorderThicknessEmphasis,\n sysBorderThicknessNormal = tokens.sysBorderThicknessNormal,\n sysColorBackgroundMediumContrast = tokens.sysColorBackgroundMediumContrast,\n sysColorBackgroundSurface = tokens.sysColorBackgroundSurface,\n sysColorBackgroundSurfaceActive = tokens.sysColorBackgroundSurfaceActive,\n sysColorErrorMain = tokens.sysColorErrorMain,\n sysColorSelectedMain = tokens.sysColorSelectedMain,\n sysColorStructureBorderHighContrast = tokens.sysColorStructureBorderHighContrast,\n sysSizeCircleXs = tokens.sysSizeCircleXs,\n sysSizeTapTargetSm = tokens.sysSizeTapTargetSm,\n sysSpaceSm = tokens.sysSpaceSm,\n sysSpaceMd = tokens.sysSpaceMd,\n sysSpaceXl = tokens.sysSpaceXl,\n sysSpaceXs = tokens.sysSpaceXs;\n var radiobuttonItemTextSpacing = math(\"\".concat(sysSpaceXl, \" + \").concat(sysSpaceMd));\n\n var _textStyles = textStyles(tokens),\n textCaption = _textStyles.caption,\n fieldLabelLg = _textStyles.fieldLabelLg,\n fieldValueSm = _textStyles.fieldValueSm;\n\n var _utilStyles = utilStyles(tokens),\n focusStyles = _utilStyles.focusStyles;\n\n var focusAfter = focusStyles.focusAfter,\n stateErrorFocusBorderColorInner = focusStyles.stateErrorFocusBorderColorInner,\n stateErrorFocusBorderColorOuter = focusStyles.stateErrorFocusBorderColorOuter,\n stateFocusBorderColorInner = focusStyles.stateFocusBorderColorInner,\n stateFocusBorderWidthInner = focusStyles.stateFocusBorderWidthInner; // Base Class for radio-group\n\n var radioGroupBase = css(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n label: radio_group_base;\\n display: flex; // to avoid collapsing margins\\n flex-direction: column;\\n margin: 0;\\n padding: 0;\\n border: none;\\n text-align: left;\\n\\n [dir='rtl'] & {\\n text-align: right;\\n }\\n \"]))); // Base Class for radio\n\n var radioBase = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral([\"\\n label: radio_base;\\n position: relative;\\n padding: \", \" 0;\\n text-align: left;\\n\\n [dir='rtl'] & {\\n text-align: right;\\n }\\n \"])), sysSpaceMd);\n var radioGroupLabel = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral([\"\\n label: radio_group_label;\\n \", \";\\n display: block;\\n padding-bottom: \", \";\\n margin-bottom: \", \";\\n \"])), fieldLabelLg({\n color: sysColorBackgroundMediumContrast\n }), sysSpaceMd, sysSpaceXs);\n var radioGroupLabelWithIcon = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral([\"\\n label: with_icon;\\n display: flex;\\n align-items: center;\\n min-height: \", \";\\n padding-bottom: 0;\\n \"])), sysSizeTapTargetSm);\n var radioGroupLabelIcon = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral([\"\\n label: radio_group_label-icon;\\n margin-inline-start: \", \";\\n \"])), sysSpaceSm);\n var radioLabel = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral([\"\\n label: radio_label;\\n -moz-osx-font-smoothing: grayscale;\\n cursor: pointer;\\n display: inline-block;\\n padding-left: \", \";\\n \", \"\\n position: relative;\\n -webkit-tap-highlight-color: transparent;\\n\\n [dir='rtl'] & {\\n padding-right: \", \";\\n padding-left: 0;\\n }\\n \"])), radiobuttonItemTextSpacing, fieldValueSm(), radiobuttonItemTextSpacing);\n var checkIconContainer = css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral([\"\\n label: check_icon_container;\\n border-radius: \", \";\\n border: \", \" solid\\n \", \";\\n height: \", \";\\n position: absolute;\\n top: 0;\\n left: 0;\\n width: \", \";\\n background-color: \", \";\\n\\n [dir='rtl'] & {\\n right: 0;\\n }\\n \"])), sysBorderRadiusInteractive, sysBorderThicknessNormal, sysColorStructureBorderHighContrast, sysSizeCircleXs, sysSizeCircleXs, sysColorBackgroundSurface);\n var errorCheckIconContainer = css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral([\"\\n label: error_check_icon_container;\\n border: \", \" solid \", \";\\n \"])), sysBorderThicknessEmphasis, sysColorErrorMain);\n var checkIcon = css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral([\"\\n label: check_icon;\\n display: none;\\n \"])));\n var input = css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral([\"\\n label: input;\\n cursor: pointer;\\n opacity: 0;\\n position: absolute;\\n margin: 0;\\n\\n &:checked + label > span:first-of-type {\\n border-color: \", \";\\n background-color: \", \";\\n color: \", \";\\n\\n span:first-of-type {\\n display: inline;\\n }\\n }\\n\\n &:focus + label:after {\\n \", \"\\n }\\n\\n &:active:not(:checked) + label > span:first-of-type {\\n background: \", \";\\n }\\n\\n [dir='rtl'] & {\\n &:focus + label:after {\\n left: 0;\\n }\\n }\\n \"])), sysColorSelectedMain, sysColorSelectedMain, sysColorBackgroundSurface, focusAfter({\n radius: sysBorderRadiusInteractive,\n width: sysSizeCircleXs,\n height: sysSizeCircleXs,\n border: \"\".concat(sysBorderThicknessEmphasis, \" solid \").concat(stateFocusBorderColorInner)\n }), sysColorBackgroundSurfaceActive);\n var inputWithError = css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral([\"\\n label: input_with_error;\\n &:checked + label > span:first-of-type {\\n border: \", \" solid \", \";\\n }\\n\\n &:focus + label > span:first-of-type {\\n outline: none;\\n }\\n\\n &:focus + label:after {\\n \", \"\\n }\\n \"])), sysBorderThicknessEmphasis, sysColorErrorMain, focusAfter({\n radius: sysBorderRadiusInteractive,\n width: sysSizeCircleXs,\n height: sysSizeCircleXs,\n border: \"\".concat(stateFocusBorderWidthInner, \" solid \").concat(stateErrorFocusBorderColorInner),\n boxShadowColor: stateErrorFocusBorderColorOuter\n }));\n var centeredLabelCheckIconContainer = css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral([\"\\n label: centered_label_check_icon_container;\\n top: 50%;\\n transform: translateY(-50%);\\n \"])));\n var centeredLabelInput = css(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral([\"\\n label: centered_label_input;\\n &:focus + label:after {\\n \", \";\\n top: 50%;\\n transform: translateY(-50%);\\n }\\n \"])), focusAfter({\n radius: sysBorderRadiusInteractive,\n width: sysSizeCircleXs,\n height: sysSizeCircleXs\n }));\n var errorCenteredLabelInput = css(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral([\"\\n label: error_centered_label_input;\\n &:focus + label:after {\\n \", \";\\n top: 50%;\\n transform: translateY(-50%);\\n }\\n \"])), focusAfter({\n radius: sysBorderRadiusInteractive,\n width: sysSizeCircleXs,\n height: sysSizeCircleXs,\n border: \"\".concat(stateFocusBorderWidthInner, \" solid \").concat(stateErrorFocusBorderColorInner),\n boxShadowColor: stateErrorFocusBorderColorOuter\n }));\n var helperText = css(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral([\"\\n label: helper_text;\\n \", \";\\n margin: 0;\\n list-style: none; // In case it's a list of helper texts\\n margin-top: \", \";\\n \"])), textCaption({\n color: sysColorBackgroundMediumContrast\n }), sysSpaceXs);\n var groupHelperText = css(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral([\"\\n label: group_helper_text;\\n \", \";\\n margin: 0;\\n list-style: none; // In case it's a list of helper texts\\n \"])), textCaption({\n color: sysColorBackgroundMediumContrast\n }));\n var errorText = css(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral([\"\\n label: error_text;\\n \", \";\\n display: flex;\\n margin: 0;\\n align-items: center;\\n \"])), textCaption({\n color: sysColorBackgroundMediumContrast\n }));\n var errorIcon = css(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral([\"\\n label: error_icon;\\n color: \", \";\\n margin-right: \", \";\\n\\n [dir='rtl'] & {\\n margin-left: \", \";\\n margin-right: 0;\\n }\\n \"])), sysColorErrorMain, sysSpaceXs, sysSpaceXs);\n return {\n radioGroupBase: radioGroupBase,\n radioBase: radioBase,\n radioGroupLabel: radioGroupLabel,\n radioGroupLabelWithIcon: radioGroupLabelWithIcon,\n radioGroupLabelIcon: radioGroupLabelIcon,\n radioLabel: radioLabel,\n checkIconContainer: checkIconContainer,\n errorCheckIconContainer: errorCheckIconContainer,\n checkIcon: checkIcon,\n input: input,\n inputWithError: inputWithError,\n centeredLabelCheckIconContainer: centeredLabelCheckIconContainer,\n centeredLabelInput: centeredLabelInput,\n errorCenteredLabelInput: errorCenteredLabelInput,\n helperText: helperText,\n groupHelperText: groupHelperText,\n errorText: errorText,\n errorIcon: errorIcon\n };\n}\n\nvar _excluded = [\"label\", \"name\", \"value\", \"id\", \"centeredLabel\", \"helperText\", \"className\", \"labelClassName\", \"onChange\", \"checked\", \"errorText\"];\n\nvar renderHelperText = function (text, helperTextCssVals) {\n return text && jsx(\"p\", {\n css: helperTextCssVals,\n \"data-ppui\": \"true\"\n }, text);\n};\n\nvar inferValue = function (label) {\n if (typeof label === 'string') {\n return label;\n }\n\n return 'value_not_set';\n};\n\nvar RadioCheckIcon = function (props) {\n return jsx(\"span\", {\n css: props.checkIconCssVals,\n \"aria-hidden\": \"true\",\n \"data-ppui\": \"true\"\n }, jsx(\"svg\", {\n viewBox: \"0 0 100 100\",\n xmlns: \"http://www.w3.org/2000/svg\",\n \"data-ppui\": \"true\"\n }, jsx(\"circle\", {\n r: \"18\",\n cy: \"50\",\n cx: \"50\",\n strokeWidth: \"0\",\n fill: \"currentColor\",\n \"data-ppui\": \"true\"\n })));\n};\n\nvar Radio = forwardRef(function (_ref, ref) {\n var label = _ref.label,\n _ref$name = _ref.name,\n name = _ref$name === void 0 ? uniqueId() : _ref$name,\n _ref$value = _ref.value,\n value = _ref$value === void 0 ? inferValue(label) : _ref$value,\n _ref$id = _ref.id,\n id = _ref$id === void 0 ? \"Radio_\".concat(name, \"_\").concat(value) : _ref$id,\n _ref$centeredLabel = _ref.centeredLabel,\n centeredLabel = _ref$centeredLabel === void 0 ? false : _ref$centeredLabel,\n helperText = _ref.helperText,\n className = _ref.className,\n labelClassName = _ref.labelClassName,\n onChange = _ref.onChange,\n _ref$checked = _ref.checked,\n checked = _ref$checked === void 0 ? false : _ref$checked,\n errorText = _ref.errorText,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n var tokens = useTheme();\n\n var _styles = useMemo(function () {\n return styles(tokens);\n }, [tokens]);\n\n var checkedPropName = onChange ? 'checked' : 'defaultChecked';\n var valueProps = {\n onChange: onChange\n };\n valueProps[checkedPropName] = checked;\n var inputCssVals = [_styles.input, !!errorText && _styles.inputWithError, centeredLabel && _styles.centeredLabelInput,\n /* istanbul ignore next */\n !!errorText && centeredLabel && _styles.errorCenteredLabelInput];\n var checkIconContainerCssVals = [_styles.checkIconContainer, !!errorText && _styles.errorCheckIconContainer, centeredLabel && _styles.centeredLabelCheckIconContainer];\n return jsx(\"div\", {\n css: _styles.radioBase,\n className: className,\n \"data-ppui-info\": \"radio_3.5.0\"\n }, jsx(\"input\", _extends({\n css: inputCssVals,\n type: \"radio\",\n name: name,\n value: value,\n id: id,\n ref: ref\n }, valueProps, rest, {\n \"data-ppui\": \"true\"\n })), jsx(\"label\", {\n css: _styles.radioLabel,\n className: labelClassName,\n htmlFor: id,\n \"data-ppui\": \"true\"\n }, jsx(\"span\", {\n css: checkIconContainerCssVals,\n \"data-ppui\": \"true\"\n }, jsx(RadioCheckIcon, {\n checkIconCssVals: _styles.checkIcon,\n \"data-ppui\": \"true\"\n })), label, renderHelperText(helperText, _styles.helperText)));\n});\n\nvar _excluded$1 = [\"as\", \"children\", \"className\"];\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; }\nvar FieldGroupLabel = function (_ref) {\n var as = _ref.as,\n children = _ref.children,\n className = _ref.className,\n rest = _objectWithoutProperties(_ref, _excluded$1);\n\n var componentProps = _objectSpread({\n className: className,\n children: children\n }, rest);\n\n return /*#__PURE__*/React.createElement(as || 'legend', _extends({}, componentProps, {\n \"data-ppui\": \"true\"\n }));\n};\n\nvar FieldGroupMessage = function (_ref) {\n var errorText = _ref.errorText,\n helperText = _ref.helperText,\n errorIconAriaLabel = _ref.errorIconAriaLabel,\n msgId = _ref.msgId,\n _styles = _ref._styles;\n // Get either the error message or helper text or... nothing\n var radioErrorIcon = jsx(CriticalIcon, {\n css: _styles.errorIcon,\n size: \"sm\",\n role: \"img\",\n \"aria-label\": errorIconAriaLabel,\n \"data-ppui\": \"true\"\n });\n return errorText && jsx(\"p\", {\n css: _styles.errorText,\n id: msgId,\n \"data-ppui\": \"true\"\n }, radioErrorIcon, errorText) || helperText && jsx(\"p\", {\n css: _styles.groupHelperText,\n id: msgId,\n \"data-ppui\": \"true\"\n }, helperText) || null;\n};\n\nvar _excluded$2 = [\"className\", \"radioLabelClassName\", \"errorText\", \"errorIconAriaLabel\", \"helperText\", \"id\", \"label\", \"name\", \"value\", \"icon\", \"options\", \"onChange\"];\n\nfunction ownKeys$1(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$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nvar RadioButton = function (_ref) {\n var className = _ref.className,\n radioLabelClassName = _ref.radioLabelClassName,\n errorText = _ref.errorText,\n _ref$errorIconAriaLab = _ref.errorIconAriaLabel,\n errorIconAriaLabel = _ref$errorIconAriaLab === void 0 ? 'Error' : _ref$errorIconAriaLab,\n helperText = _ref.helperText,\n id = _ref.id,\n label = _ref.label,\n _ref$name = _ref.name,\n name = _ref$name === void 0 ? 'radioButton' : _ref$name,\n _ref$value = _ref.value,\n value = _ref$value === void 0 ? '' : _ref$value,\n icon = _ref.icon,\n _ref$options = _ref.options,\n options = _ref$options === void 0 ? [] : _ref$options,\n onChange = _ref.onChange,\n rest = _objectWithoutProperties(_ref, _excluded$2);\n\n var tokens = useTheme();\n\n var _styles = useMemo(function () {\n return styles(tokens);\n }, [tokens]);\n\n var radioId = id !== null && id !== void 0 ? id : uniqueId('RadioButtton_');\n var msgId = \"message_\".concat(radioId);\n var fieldGroupLabelCssVal = [_styles.radioGroupLabel, icon && _styles.radioGroupLabelWithIcon];\n return (//@ts-ignore\n jsx(\"fieldset\", _extends({\n css: _styles.radioGroupBase,\n className: className,\n \"data-ppui-info\": \"radio_3.5.0\"\n }, rest), jsx(FieldGroupLabel, {\n css: fieldGroupLabelCssVal,\n \"data-ppui\": \"true\"\n }, label, icon && jsx(\"span\", {\n css: _styles.radioGroupLabelIcon,\n \"data-ppui\": \"true\"\n }, icon)), function renderRadios(optionsList, componentName, currentValue, changeHandler) {\n if (optionsList.length === 0) {\n return jsx(\"i\", {\n \"data-ppui\": \"true\"\n }, \"No Options!\");\n }\n\n return optionsList.map(function (listProps, index) {\n var checkedPropName = changeHandler ? 'checked' : 'defaultChecked';\n\n var radioProps = _objectSpread$1(_objectSpread$1({}, listProps), {}, {\n labelClassName: radioLabelClassName\n });\n\n if (currentValue === listProps.value) {\n radioProps[checkedPropName] = true;\n }\n\n return jsx(Radio, _extends({\n key: \"rbtn-item\".concat(index),\n name: componentName,\n onChange: changeHandler,\n errorText: errorText\n }, radioProps, rest, {\n \"data-ppui\": \"true\"\n }));\n });\n }(options, name, value, onChange), jsx(FieldGroupMessage, {\n errorText: errorText,\n helperText: helperText,\n errorIconAriaLabel: errorIconAriaLabel,\n msgId: msgId,\n _styles: _styles,\n \"data-ppui\": \"true\"\n }))\n );\n};\n\nexport { Radio, RadioButton, styles as radioStyles };\n"],"sourceRoot":""}