@thecb/components 9.3.1-beta.0 → 9.3.4-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/dist/index.cjs.js +865 -583
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.d.ts +171 -60
  4. package/dist/index.esm.js +862 -583
  5. package/dist/index.esm.js.map +1 -1
  6. package/package.json +1 -1
  7. package/src/.DS_Store +0 -0
  8. package/src/components/atoms/button-with-action/ButtonWithAction.js +76 -70
  9. package/src/components/atoms/checkbox/Checkbox.js +8 -1
  10. package/src/components/atoms/checkbox/Checkbox.stories.js +1 -0
  11. package/src/components/atoms/country-dropdown/CountryDropdown.js +2 -0
  12. package/src/components/atoms/dropdown/Dropdown.js +78 -41
  13. package/src/components/atoms/dropdown/Dropdown.theme.js +8 -2
  14. package/src/components/atoms/form-layouts/FormInput.js +3 -0
  15. package/src/components/atoms/form-select/FormSelect.js +19 -15
  16. package/src/components/atoms/icons/AccountNumberImage.js +2 -0
  17. package/src/components/atoms/icons/BankIcon.js +2 -0
  18. package/src/components/atoms/icons/CheckmarkIcon.js +2 -0
  19. package/src/components/atoms/icons/GenericCard.js +2 -0
  20. package/src/components/atoms/icons/GenericCardLarge.js +2 -0
  21. package/src/components/atoms/icons/KebabMenuIcon.d.ts +1 -0
  22. package/src/components/atoms/icons/KebabMenuIcon.js +38 -0
  23. package/src/components/atoms/icons/RoutingNumberImage.js +2 -0
  24. package/src/components/atoms/icons/TrashIcon.js +42 -40
  25. package/src/components/atoms/icons/icons.stories.js +3 -1
  26. package/src/components/atoms/icons/index.d.ts +1 -0
  27. package/src/components/atoms/icons/index.js +3 -1
  28. package/src/components/atoms/state-province-dropdown/StateProvinceDropdown.js +3 -1
  29. package/src/components/molecules/address-form/AddressForm.js +5 -0
  30. package/src/components/molecules/email-form/EmailForm.js +3 -1
  31. package/src/components/molecules/index.d.ts +1 -0
  32. package/src/components/molecules/index.js +1 -0
  33. package/src/components/molecules/modal/Modal.js +2 -1
  34. package/src/components/molecules/payment-form-ach/PaymentFormACH.js +6 -0
  35. package/src/components/molecules/payment-form-card/PaymentFormCard.js +5 -0
  36. package/src/components/molecules/phone-form/PhoneForm.js +3 -1
  37. package/src/components/molecules/popover/Popover.js +1 -1
  38. package/src/components/molecules/popup-menu/PopupMenu.js +152 -0
  39. package/src/components/molecules/popup-menu/PopupMenu.stories.js +40 -0
  40. package/src/components/molecules/popup-menu/PopupMenu.styled.js +20 -0
  41. package/src/components/molecules/popup-menu/PopupMenu.theme.js +11 -0
  42. package/src/components/molecules/popup-menu/index.d.ts +25 -0
  43. package/src/components/molecules/popup-menu/index.js +3 -0
  44. package/src/components/molecules/popup-menu/popup-menu-item/PopupMenuItem.js +79 -0
  45. package/src/components/molecules/popup-menu/popup-menu-item/PopupMenuItem.styled.js +27 -0
  46. package/src/components/molecules/popup-menu/popup-menu-item/PopupMenuItem.theme.js +23 -0
  47. package/src/components/molecules/radio-section/RadioSection.js +8 -2
  48. package/src/components/molecules/radio-section/RadioSection.stories.js +4 -2
  49. package/src/components/molecules/radio-section/radio-button/RadioButton.js +3 -1
  50. package/src/components/molecules/terms-and-conditions/TermsAndConditions.stories.js +3 -1
  51. package/src/components/molecules/terms-and-conditions/TermsAndConditionsControlV2.js +5 -1
  52. package/src/components/molecules/toast-notification/ToastNotification.js +75 -0
  53. package/src/components/molecules/toast-notification/ToastNotification.stories.js +67 -0
  54. package/src/components/molecules/toast-notification/index.d.ts +18 -0
  55. package/src/components/molecules/toast-notification/index.js +3 -0
  56. package/src/constants/colors.d.ts +1 -0
  57. package/src/constants/colors.js +5 -1
  58. package/src/hooks/index.js +3 -0
  59. package/src/hooks/use-toast-notification/index.d.ts +23 -0
  60. package/src/hooks/use-toast-notification/index.js +38 -0
  61. package/src/index.d.ts +2 -1
  62. package/src/index.js +2 -1
  63. package/src/types/common/ToastVariants.ts +6 -0
  64. package/src/types/common/index.ts +1 -0
  65. package/src/util/index.js +10 -2
  66. package/dist/src/apps/checkout/pages/payment/sub-pages/payment-amount/PaymentAmount_old.js +0 -49322
  67. package/src/components/.DS_Store +0 -0
  68. package/src/components/atoms/.DS_Store +0 -0
  69. package/src/components/atoms/icons/.DS_Store +0 -0
  70. /package/src/{util/useOutsideClick.js → hooks/use-outside-click/index.js} +0 -0
  71. /package/src/{util/useScrollTo.js → hooks/use-scroll-to/index.js} +0 -0
package/dist/index.cjs.js CHANGED
@@ -5019,6 +5019,7 @@ var INFO_BLUE = "#E4F4FD";
5019
5019
  var CORNFLOWER_BLUE = "#EBEFFB";
5020
5020
  var HOVER_LIGHT_BLUE = "#EFFAFF";
5021
5021
  var MATISSE_BLUE = "#15749D";
5022
+ var MATISSE_BLUE_DARK = "#105C7D";
5022
5023
  var ROYAL_BLUE = "#3181E3";
5023
5024
  var ROYAL_BLUE_VIVID = "#3B5BDB";
5024
5025
  var ASTRAL_BLUE = "#3176AA";
@@ -5051,7 +5052,8 @@ var FANTASY_RED = "#FCF4F4";
5051
5052
  var COSMOS_RED = "#FFD0D3";
5052
5053
  var BLUSH_RED = "#FFF0F5"; // Second level color constants
5053
5054
 
5054
- var ERROR_COLOR = RAZZMATAZZ_RED; // These colors are sequestered so that the alert component can reference them // by type of alert
5055
+ var ERROR_COLOR = RAZZMATAZZ_RED;
5056
+ var ERROR_BACKGROUND_COLOR = "#FFF4F8"; // These colors are sequestered so that the alert component can reference them // by type of alert
5055
5057
 
5056
5058
  var ALERT_COLORS = {
5057
5059
  warn: {
@@ -5153,6 +5155,7 @@ var colors = /*#__PURE__*/Object.freeze({
5153
5155
  BOSTON_BLUE: BOSTON_BLUE,
5154
5156
  HOVER_LIGHT_BLUE: HOVER_LIGHT_BLUE,
5155
5157
  MATISSE_BLUE: MATISSE_BLUE,
5158
+ MATISSE_BLUE_DARK: MATISSE_BLUE_DARK,
5156
5159
  ROYAL_BLUE: ROYAL_BLUE,
5157
5160
  ROYAL_BLUE_VIVID: ROYAL_BLUE_VIVID,
5158
5161
  ASTRAL_BLUE: ASTRAL_BLUE,
@@ -5182,7 +5185,8 @@ var colors = /*#__PURE__*/Object.freeze({
5182
5185
  RASPBERRY: RASPBERRY,
5183
5186
  ALERT_COLORS: ALERT_COLORS,
5184
5187
  PILL_COLORS: PILL_COLORS,
5185
- ERROR_COLOR: ERROR_COLOR
5188
+ ERROR_COLOR: ERROR_COLOR,
5189
+ ERROR_BACKGROUND_COLOR: ERROR_BACKGROUND_COLOR
5186
5190
  });
5187
5191
 
5188
5192
  var TextSpan = styled__default.span.withConfig({
@@ -12922,7 +12926,7 @@ var Spinner = function Spinner(_ref) {
12922
12926
  */
12923
12927
 
12924
12928
 
12925
- var ButtonWithAction = function ButtonWithAction(_ref2) {
12929
+ var ButtonWithAction = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
12926
12930
  var _ref2$action = _ref2.action,
12927
12931
  action = _ref2$action === void 0 ? noop : _ref2$action,
12928
12932
  _ref2$variant = _ref2.variant,
@@ -12953,6 +12957,7 @@ var ButtonWithAction = function ButtonWithAction(_ref2) {
12953
12957
  var activeStyles = "\n outline: none;\n background-color: ".concat(themeValues.activeBackgroundColor, ";\n border-color: ").concat(themeValues.activeBorderColor, ";\n color: ").concat(themeValues.activeColor, ";\n text-decoration: ").concat(variant === "ghost" || variant === "smallGhost" ? "underline" : "none", ";\n ");
12954
12958
  var disabledStyles = "\n background-color: #6D717E;\n border-color: #6D717E;\n color: #FFFFFF;\n cursor: default;\n &:focus {\n box-shadow: 0 0 10px #6D717E;\n outline: none;\n }\n ".concat(extraDisabledStyles, "\n ");
12955
12959
  return /*#__PURE__*/React__default.createElement(Box, _extends({
12960
+ ref: ref,
12956
12961
  variant: variant,
12957
12962
  padding: themeValues.padding,
12958
12963
  minHeight: themeValues.height,
@@ -12981,7 +12986,7 @@ var ButtonWithAction = function ButtonWithAction(_ref2) {
12981
12986
  textWrap: textWrap,
12982
12987
  extraStyles: textExtraStyles
12983
12988
  }, text)));
12984
- };
12989
+ });
12985
12990
 
12986
12991
  var primaryColor = {
12987
12992
  info: "".concat(WHITE),
@@ -13679,7 +13684,9 @@ var AccountNumberImage = function AccountNumberImage() {
13679
13684
  xmlns: "http://www.w3.org/2000/svg",
13680
13685
  width: "371",
13681
13686
  height: "164",
13682
- viewBox: "0 0 371 164"
13687
+ viewBox: "0 0 371 164",
13688
+ role: "img",
13689
+ "aria-label": "A check with the account number highlighted in the bottom center"
13683
13690
  }, /*#__PURE__*/React__default.createElement("g", {
13684
13691
  fill: "none",
13685
13692
  fillRule: "evenodd",
@@ -13760,7 +13767,9 @@ var RoutingNumberImage = function RoutingNumberImage() {
13760
13767
  xmlns: "http://www.w3.org/2000/svg",
13761
13768
  width: "371",
13762
13769
  height: "164",
13763
- viewBox: "0 0 371 164"
13770
+ viewBox: "0 0 371 164",
13771
+ role: "img",
13772
+ "aria-label": "A check with the routing number highlighted in the lower left hand corner"
13764
13773
  }, /*#__PURE__*/React__default.createElement("g", {
13765
13774
  fill: "none",
13766
13775
  fillRule: "evenodd",
@@ -13843,7 +13852,9 @@ var CheckmarkIcon = function CheckmarkIcon() {
13843
13852
  viewBox: "0 0 98 98",
13844
13853
  version: "1.1",
13845
13854
  xmlns: "http://www.w3.org/2000/svg",
13846
- xmlnsXlink: "http://www.w3.org/1999/xlink"
13855
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
13856
+ role: "img",
13857
+ "aria-label": "Successful payment, green checkmark"
13847
13858
  }, /*#__PURE__*/React__default.createElement("g", {
13848
13859
  id: "Cityville-Checkout---Desktop---Logged-In",
13849
13860
  stroke: "none",
@@ -13888,7 +13899,9 @@ var BankIcon = function BankIcon() {
13888
13899
  height: "18",
13889
13900
  viewBox: "0 0 28 18",
13890
13901
  fill: "none",
13891
- xmlns: "http://www.w3.org/2000/svg"
13902
+ xmlns: "http://www.w3.org/2000/svg",
13903
+ role: "img",
13904
+ "aria-label": "Check Payment"
13892
13905
  }, /*#__PURE__*/React__default.createElement("path", {
13893
13906
  d: "M0 2.25C0 1.00736 1.04467 0 2.33333 0H25.6667C26.9553 0 28 1.00736 28 2.25V15.75C28 16.9926 26.9553 18 25.6667 18H2.33333C1.04467 18 0 16.9926 0 15.75V2.25Z",
13894
13907
  fill: "#E4F4FD"
@@ -13935,7 +13948,9 @@ var GenericCard = function GenericCard() {
13935
13948
  height: "18",
13936
13949
  viewBox: "0 0 28 18",
13937
13950
  fill: "none",
13938
- xmlns: "http://www.w3.org/2000/svg"
13951
+ xmlns: "http://www.w3.org/2000/svg",
13952
+ role: "img",
13953
+ "aria-label": "Card Payment"
13939
13954
  }, /*#__PURE__*/React__default.createElement("rect", {
13940
13955
  width: "28",
13941
13956
  height: "18",
@@ -15194,7 +15209,9 @@ var GenericCardLarge = function GenericCardLarge() {
15194
15209
  height: "24",
15195
15210
  viewBox: "0 0 36 24",
15196
15211
  fill: "none",
15197
- xmlns: "http://www.w3.org/2000/svg"
15212
+ xmlns: "http://www.w3.org/2000/svg",
15213
+ role: "img",
15214
+ "aria-label": "Card Payment"
15198
15215
  }, /*#__PURE__*/React__default.createElement("rect", {
15199
15216
  width: "36",
15200
15217
  height: "24",
@@ -15283,7 +15300,8 @@ var ShoppingCartIcon = function ShoppingCartIcon() {
15283
15300
  };
15284
15301
 
15285
15302
  var TrashIcon = function TrashIcon(_ref) {
15286
- var themeValues = _ref.themeValues;
15303
+ var themeValues = _ref.themeValues,
15304
+ iconFill = _ref.iconFill;
15287
15305
  return /*#__PURE__*/React__default.createElement("svg", {
15288
15306
  width: "20px",
15289
15307
  height: "20px",
@@ -15307,12 +15325,12 @@ var TrashIcon = function TrashIcon(_ref) {
15307
15325
  xlinkHref: "#trash-path-1"
15308
15326
  })), /*#__PURE__*/React__default.createElement("use", {
15309
15327
  id: "trash-Mask",
15310
- fill: themeValues.singleIconColor,
15328
+ fill: iconFill !== null && iconFill !== void 0 ? iconFill : themeValues.singleIconColor,
15311
15329
  fillRule: "nonzero",
15312
15330
  xlinkHref: "#trash-path-1"
15313
15331
  }), /*#__PURE__*/React__default.createElement("polygon", {
15314
15332
  id: "trash-Path",
15315
- fill: themeValues.singleIconColor,
15333
+ fill: iconFill !== null && iconFill !== void 0 ? iconFill : themeValues.singleIconColor,
15316
15334
  fillRule: "nonzero",
15317
15335
  mask: "url(#trash-mask-2)",
15318
15336
  points: "0 0 20 0 20 20 0 20"
@@ -18243,6 +18261,34 @@ var PlusCircleIcon = function PlusCircleIcon(_ref) {
18243
18261
  }));
18244
18262
  };
18245
18263
 
18264
+ var KebabMenuIcon = function KebabMenuIcon() {
18265
+ return /*#__PURE__*/React__default.createElement("svg", {
18266
+ xmlns: "http://www.w3.org/2000/svg",
18267
+ width: "21",
18268
+ height: "32",
18269
+ viewBox: "0 0 21 32",
18270
+ fill: "none"
18271
+ }, /*#__PURE__*/React__default.createElement("path", {
18272
+ d: "M0 4C0 1.79086 1.79086 0 4 0L17 0C19.2091 0 21 1.79086 21 4V28C21 30.2091 19.2091 32 17 32H4C1.79086 32 0 30.2091 0 28L0 4Z",
18273
+ fill: "none"
18274
+ }), /*#__PURE__*/React__default.createElement("path", {
18275
+ fillRule: "evenodd",
18276
+ clipRule: "evenodd",
18277
+ d: "M10.5 6C9.39333 6 8.5 6.89333 8.5 8C8.5 9.10667 9.39333 10 10.5 10C11.6067 10 12.5 9.10667 12.5 8C12.5 6.89333 11.6067 6 10.5 6Z",
18278
+ fill: "#3B5BDB"
18279
+ }), /*#__PURE__*/React__default.createElement("path", {
18280
+ fillRule: "evenodd",
18281
+ clipRule: "evenodd",
18282
+ d: "M10.5 14C9.39333 14 8.5 14.8933 8.5 16C8.5 17.1067 9.39333 18 10.5 18C11.6067 18 12.5 17.1067 12.5 16C12.5 14.8933 11.6067 14 10.5 14Z",
18283
+ fill: "#3B5BDB"
18284
+ }), /*#__PURE__*/React__default.createElement("path", {
18285
+ fillRule: "evenodd",
18286
+ clipRule: "evenodd",
18287
+ d: "M10.5 22C9.39333 22 8.5 22.9067 8.5 24C8.5 25.0933 9.40667 26 10.5 26C11.5933 26 12.5 25.0933 12.5 24C12.5 22.9067 11.6067 22 10.5 22Z",
18288
+ fill: "#3B5BDB"
18289
+ }));
18290
+ };
18291
+
18246
18292
  var color$2 = "#15749D";
18247
18293
  var hoverColor$1 = "#116285";
18248
18294
  var activeColor$1 = "#0E506D";
@@ -22129,6 +22175,7 @@ var Checkbox = function Checkbox(_ref4) {
22129
22175
  checkboxMargin = _ref4$checkboxMargin === void 0 ? "0 16px 0 0" : _ref4$checkboxMargin,
22130
22176
  extraStyles = _ref4.extraStyles,
22131
22177
  textExtraStyles = _ref4.textExtraStyles,
22178
+ labelledById = _ref4.labelledById,
22132
22179
  _ref4$dataQa = _ref4.dataQa,
22133
22180
  dataQa = _ref4$dataQa === void 0 ? null : _ref4$dataQa;
22134
22181
 
@@ -22143,6 +22190,9 @@ var Checkbox = function Checkbox(_ref4) {
22143
22190
  }
22144
22191
  };
22145
22192
 
22193
+ var titleId = title ? "checkboxlabel-".concat(name) : undefined;
22194
+ var ariaLabelledById = labelledById !== null && labelledById !== void 0 ? labelledById : titleId;
22195
+ var ariaLabel = ariaLabelledById ? undefined : name;
22146
22196
  return /*#__PURE__*/React__default.createElement(Box, {
22147
22197
  padding: "0",
22148
22198
  tabIndex: "0",
@@ -22166,7 +22216,8 @@ var Checkbox = function Checkbox(_ref4) {
22166
22216
  id: "checkbox-".concat(name),
22167
22217
  disabled: disabled,
22168
22218
  name: name,
22169
- "aria-label": name,
22219
+ "aria-label": ariaLabel,
22220
+ "aria-labelledby": ariaLabelledById,
22170
22221
  checked: checked,
22171
22222
  onChange: onChange,
22172
22223
  tabIndex: "-1",
@@ -22193,6 +22244,7 @@ var Checkbox = function Checkbox(_ref4) {
22193
22244
  }, /*#__PURE__*/React__default.createElement("polyline", {
22194
22245
  points: "20 6 9 17 4 12"
22195
22246
  })))), title && /*#__PURE__*/React__default.createElement(Text$1, {
22247
+ id: titleId,
22196
22248
  variant: "p",
22197
22249
  weight: themeValues.textFontWeight,
22198
22250
  color: themeValues.textColor,
@@ -22423,17 +22475,18 @@ var DropdownIcon = function DropdownIcon() {
22423
22475
  };
22424
22476
 
22425
22477
  var check = function (it) {
22426
- return it && it.Math == Math && it;
22478
+ return it && it.Math === Math && it;
22427
22479
  };
22428
22480
 
22429
22481
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
22430
22482
  var global_1 =
22431
- // eslint-disable-next-line es-x/no-global-this -- safe
22483
+ // eslint-disable-next-line es/no-global-this -- safe
22432
22484
  check(typeof globalThis == 'object' && globalThis) ||
22433
22485
  check(typeof window == 'object' && window) ||
22434
22486
  // eslint-disable-next-line no-restricted-globals -- safe
22435
22487
  check(typeof self == 'object' && self) ||
22436
22488
  check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
22489
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
22437
22490
  // eslint-disable-next-line no-new-func -- fallback
22438
22491
  (function () { return this; })() || Function('return this')();
22439
22492
 
@@ -22447,12 +22500,12 @@ var fails = function (exec) {
22447
22500
 
22448
22501
  // Detect IE8's incomplete defineProperty implementation
22449
22502
  var descriptors = !fails(function () {
22450
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
22451
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
22503
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
22504
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
22452
22505
  });
22453
22506
 
22454
22507
  var functionBindNative = !fails(function () {
22455
- // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
22508
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
22456
22509
  var test = (function () { /* empty */ }).bind();
22457
22510
  // eslint-disable-next-line no-prototype-builtins -- safe
22458
22511
  return typeof test != 'function' || test.hasOwnProperty('prototype');
@@ -22465,7 +22518,7 @@ var functionCall = functionBindNative ? call.bind(call) : function () {
22465
22518
  };
22466
22519
 
22467
22520
  var $propertyIsEnumerable = {}.propertyIsEnumerable;
22468
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22521
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22469
22522
  var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
22470
22523
 
22471
22524
  // Nashorn ~ JDK8 bug
@@ -22492,14 +22545,11 @@ var createPropertyDescriptor = function (bitmap, value) {
22492
22545
  };
22493
22546
 
22494
22547
  var FunctionPrototype = Function.prototype;
22495
- var bind$1 = FunctionPrototype.bind;
22496
22548
  var call$1 = FunctionPrototype.call;
22497
- var uncurryThis = functionBindNative && bind$1.bind(call$1, call$1);
22549
+ var uncurryThisWithBind = functionBindNative && FunctionPrototype.bind.bind(call$1, call$1);
22498
22550
 
22499
- var functionUncurryThis = functionBindNative ? function (fn) {
22500
- return fn && uncurryThis(fn);
22501
- } : function (fn) {
22502
- return fn && function () {
22551
+ var functionUncurryThis = functionBindNative ? uncurryThisWithBind : function (fn) {
22552
+ return function () {
22503
22553
  return call$1.apply(fn, arguments);
22504
22554
  };
22505
22555
  };
@@ -22520,15 +22570,21 @@ var indexedObject = fails(function () {
22520
22570
  // eslint-disable-next-line no-prototype-builtins -- safe
22521
22571
  return !$Object('z').propertyIsEnumerable(0);
22522
22572
  }) ? function (it) {
22523
- return classofRaw(it) == 'String' ? split(it, '') : $Object(it);
22573
+ return classofRaw(it) === 'String' ? split(it, '') : $Object(it);
22524
22574
  } : $Object;
22525
22575
 
22576
+ // we can't use just `it == null` since of `document.all` special case
22577
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
22578
+ var isNullOrUndefined = function (it) {
22579
+ return it === null || it === undefined;
22580
+ };
22581
+
22526
22582
  var $TypeError = TypeError;
22527
22583
 
22528
22584
  // `RequireObjectCoercible` abstract operation
22529
22585
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
22530
22586
  var requireObjectCoercible = function (it) {
22531
- if (it == undefined) throw $TypeError("Can't call method on " + it);
22587
+ if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
22532
22588
  return it;
22533
22589
  };
22534
22590
 
@@ -22540,13 +22596,32 @@ var toIndexedObject = function (it) {
22540
22596
  return indexedObject(requireObjectCoercible(it));
22541
22597
  };
22542
22598
 
22599
+ var documentAll = typeof document == 'object' && document.all;
22600
+
22601
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
22602
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
22603
+ var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
22604
+
22605
+ var documentAll_1 = {
22606
+ all: documentAll,
22607
+ IS_HTMLDDA: IS_HTMLDDA
22608
+ };
22609
+
22610
+ var documentAll$1 = documentAll_1.all;
22611
+
22543
22612
  // `IsCallable` abstract operation
22544
22613
  // https://tc39.es/ecma262/#sec-iscallable
22545
- var isCallable = function (argument) {
22614
+ var isCallable = documentAll_1.IS_HTMLDDA ? function (argument) {
22615
+ return typeof argument == 'function' || argument === documentAll$1;
22616
+ } : function (argument) {
22546
22617
  return typeof argument == 'function';
22547
22618
  };
22548
22619
 
22549
- var isObject = function (it) {
22620
+ var documentAll$2 = documentAll_1.all;
22621
+
22622
+ var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
22623
+ return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
22624
+ } : function (it) {
22550
22625
  return typeof it == 'object' ? it !== null : isCallable(it);
22551
22626
  };
22552
22627
 
@@ -22560,7 +22635,7 @@ var getBuiltIn = function (namespace, method) {
22560
22635
 
22561
22636
  var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
22562
22637
 
22563
- var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
22638
+ var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
22564
22639
 
22565
22640
  var process$1 = global_1.process;
22566
22641
  var Deno = global_1.Deno;
@@ -22587,24 +22662,29 @@ if (!version && engineUserAgent) {
22587
22662
 
22588
22663
  var engineV8Version = version;
22589
22664
 
22590
- /* eslint-disable es-x/no-symbol -- required for testing */
22665
+ /* eslint-disable es/no-symbol -- required for testing */
22666
+
22591
22667
 
22592
22668
 
22593
22669
 
22594
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
22595
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
22596
- var symbol = Symbol();
22670
+ var $String = global_1.String;
22671
+
22672
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
22673
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(function () {
22674
+ var symbol = Symbol('symbol detection');
22597
22675
  // Chrome 38 Symbol has incorrect toString conversion
22598
22676
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
22599
- return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
22677
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
22678
+ // of course, fail.
22679
+ return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
22600
22680
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
22601
22681
  !Symbol.sham && engineV8Version && engineV8Version < 41;
22602
22682
  });
22603
22683
 
22604
- /* eslint-disable es-x/no-symbol -- required for testing */
22684
+ /* eslint-disable es/no-symbol -- required for testing */
22605
22685
 
22606
22686
 
22607
- var useSymbolAsUid = nativeSymbol
22687
+ var useSymbolAsUid = symbolConstructorDetection
22608
22688
  && !Symbol.sham
22609
22689
  && typeof Symbol.iterator == 'symbol';
22610
22690
 
@@ -22617,11 +22697,11 @@ var isSymbol = useSymbolAsUid ? function (it) {
22617
22697
  return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, $Object$1(it));
22618
22698
  };
22619
22699
 
22620
- var $String = String;
22700
+ var $String$1 = String;
22621
22701
 
22622
22702
  var tryToString = function (argument) {
22623
22703
  try {
22624
- return $String(argument);
22704
+ return $String$1(argument);
22625
22705
  } catch (error) {
22626
22706
  return 'Object';
22627
22707
  }
@@ -22632,14 +22712,14 @@ var $TypeError$1 = TypeError;
22632
22712
  // `Assert: IsCallable(argument) is true`
22633
22713
  var aCallable = function (argument) {
22634
22714
  if (isCallable(argument)) return argument;
22635
- throw $TypeError$1(tryToString(argument) + ' is not a function');
22715
+ throw new $TypeError$1(tryToString(argument) + ' is not a function');
22636
22716
  };
22637
22717
 
22638
22718
  // `GetMethod` abstract operation
22639
22719
  // https://tc39.es/ecma262/#sec-getmethod
22640
22720
  var getMethod = function (V, P) {
22641
22721
  var func = V[P];
22642
- return func == null ? undefined : aCallable(func);
22722
+ return isNullOrUndefined(func) ? undefined : aCallable(func);
22643
22723
  };
22644
22724
 
22645
22725
  var $TypeError$2 = TypeError;
@@ -22651,10 +22731,10 @@ var ordinaryToPrimitive = function (input, pref) {
22651
22731
  if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
22652
22732
  if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
22653
22733
  if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
22654
- throw $TypeError$2("Can't convert object to primitive value");
22734
+ throw new $TypeError$2("Can't convert object to primitive value");
22655
22735
  };
22656
22736
 
22657
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
22737
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
22658
22738
  var defineProperty = Object.defineProperty;
22659
22739
 
22660
22740
  var defineGlobalProperty = function (key, value) {
@@ -22671,13 +22751,16 @@ var store = global_1[SHARED] || defineGlobalProperty(SHARED, {});
22671
22751
  var sharedStore = store;
22672
22752
 
22673
22753
  var shared = createCommonjsModule(function (module) {
22754
+
22755
+
22756
+
22674
22757
  (module.exports = function (key, value) {
22675
22758
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
22676
22759
  })('versions', []).push({
22677
- version: '3.24.1',
22760
+ version: '3.33.3',
22678
22761
  mode: 'global',
22679
- copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
22680
- license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE',
22762
+ copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
22763
+ license: 'https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE',
22681
22764
  source: 'https://github.com/zloirock/core-js'
22682
22765
  });
22683
22766
  });
@@ -22694,7 +22777,7 @@ var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
22694
22777
 
22695
22778
  // `HasOwnProperty` abstract operation
22696
22779
  // https://tc39.es/ecma262/#sec-hasownproperty
22697
- // eslint-disable-next-line es-x/no-object-hasown -- safe
22780
+ // eslint-disable-next-line es/no-object-hasown -- safe
22698
22781
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
22699
22782
  return hasOwnProperty(toObject(it), key);
22700
22783
  };
@@ -22707,21 +22790,15 @@ var uid = function (key) {
22707
22790
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
22708
22791
  };
22709
22792
 
22710
- var WellKnownSymbolsStore = shared('wks');
22711
22793
  var Symbol$1 = global_1.Symbol;
22712
- var symbolFor = Symbol$1 && Symbol$1['for'];
22713
- var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
22794
+ var WellKnownSymbolsStore = shared('wks');
22795
+ var createWellKnownSymbol = useSymbolAsUid ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
22714
22796
 
22715
22797
  var wellKnownSymbol = function (name) {
22716
- if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
22717
- var description = 'Symbol.' + name;
22718
- if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
22719
- WellKnownSymbolsStore[name] = Symbol$1[name];
22720
- } else if (useSymbolAsUid && symbolFor) {
22721
- WellKnownSymbolsStore[name] = symbolFor(description);
22722
- } else {
22723
- WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
22724
- }
22798
+ if (!hasOwnProperty_1(WellKnownSymbolsStore, name)) {
22799
+ WellKnownSymbolsStore[name] = symbolConstructorDetection && hasOwnProperty_1(Symbol$1, name)
22800
+ ? Symbol$1[name]
22801
+ : createWellKnownSymbol('Symbol.' + name);
22725
22802
  } return WellKnownSymbolsStore[name];
22726
22803
  };
22727
22804
 
@@ -22738,7 +22815,7 @@ var toPrimitive = function (input, pref) {
22738
22815
  if (pref === undefined) pref = 'default';
22739
22816
  result = functionCall(exoticToPrim, input, pref);
22740
22817
  if (!isObject(result) || isSymbol(result)) return result;
22741
- throw $TypeError$3("Can't convert object to primitive value");
22818
+ throw new $TypeError$3("Can't convert object to primitive value");
22742
22819
  }
22743
22820
  if (pref === undefined) pref = 'number';
22744
22821
  return ordinaryToPrimitive(input, pref);
@@ -22761,13 +22838,13 @@ var documentCreateElement = function (it) {
22761
22838
 
22762
22839
  // Thanks to IE8 for its funny defineProperty
22763
22840
  var ie8DomDefine = !descriptors && !fails(function () {
22764
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
22841
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
22765
22842
  return Object.defineProperty(documentCreateElement('div'), 'a', {
22766
22843
  get: function () { return 7; }
22767
- }).a != 7;
22844
+ }).a !== 7;
22768
22845
  });
22769
22846
 
22770
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22847
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22771
22848
  var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
22772
22849
 
22773
22850
  // `Object.getOwnPropertyDescriptor` method
@@ -22788,26 +22865,26 @@ var objectGetOwnPropertyDescriptor = {
22788
22865
  // V8 ~ Chrome 36-
22789
22866
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
22790
22867
  var v8PrototypeDefineBug = descriptors && fails(function () {
22791
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
22868
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
22792
22869
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
22793
22870
  value: 42,
22794
22871
  writable: false
22795
- }).prototype != 42;
22872
+ }).prototype !== 42;
22796
22873
  });
22797
22874
 
22798
- var $String$1 = String;
22875
+ var $String$2 = String;
22799
22876
  var $TypeError$4 = TypeError;
22800
22877
 
22801
22878
  // `Assert: Type(argument) is Object`
22802
22879
  var anObject = function (argument) {
22803
22880
  if (isObject(argument)) return argument;
22804
- throw $TypeError$4($String$1(argument) + ' is not an object');
22881
+ throw new $TypeError$4($String$2(argument) + ' is not an object');
22805
22882
  };
22806
22883
 
22807
22884
  var $TypeError$5 = TypeError;
22808
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
22885
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
22809
22886
  var $defineProperty = Object.defineProperty;
22810
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22887
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22811
22888
  var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
22812
22889
  var ENUMERABLE = 'enumerable';
22813
22890
  var CONFIGURABLE = 'configurable';
@@ -22837,7 +22914,7 @@ var f$2 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Att
22837
22914
  if (ie8DomDefine) try {
22838
22915
  return $defineProperty(O, P, Attributes);
22839
22916
  } catch (error) { /* empty */ }
22840
- if ('get' in Attributes || 'set' in Attributes) throw $TypeError$5('Accessors not supported');
22917
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$5('Accessors not supported');
22841
22918
  if ('value' in Attributes) O[P] = Attributes.value;
22842
22919
  return O;
22843
22920
  };
@@ -22854,7 +22931,7 @@ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
22854
22931
  };
22855
22932
 
22856
22933
  var FunctionPrototype$1 = Function.prototype;
22857
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22934
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22858
22935
  var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
22859
22936
 
22860
22937
  var EXISTS$1 = hasOwnProperty_1(FunctionPrototype$1, 'name');
@@ -22881,7 +22958,7 @@ var inspectSource = sharedStore.inspectSource;
22881
22958
 
22882
22959
  var WeakMap$1 = global_1.WeakMap;
22883
22960
 
22884
- var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
22961
+ var weakMapBasicDetection = isCallable(WeakMap$1) && /native code/.test(String(WeakMap$1));
22885
22962
 
22886
22963
  var keys$1 = shared('keys');
22887
22964
 
@@ -22904,27 +22981,29 @@ var getterFor = function (TYPE) {
22904
22981
  return function (it) {
22905
22982
  var state;
22906
22983
  if (!isObject(it) || (state = get(it)).type !== TYPE) {
22907
- throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
22984
+ throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
22908
22985
  } return state;
22909
22986
  };
22910
22987
  };
22911
22988
 
22912
- if (nativeWeakMap || sharedStore.state) {
22989
+ if (weakMapBasicDetection || sharedStore.state) {
22913
22990
  var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$2());
22914
- var wmget = functionUncurryThis(store$1.get);
22915
- var wmhas = functionUncurryThis(store$1.has);
22916
- var wmset = functionUncurryThis(store$1.set);
22991
+ /* eslint-disable no-self-assign -- prototype methods protection */
22992
+ store$1.get = store$1.get;
22993
+ store$1.has = store$1.has;
22994
+ store$1.set = store$1.set;
22995
+ /* eslint-enable no-self-assign -- prototype methods protection */
22917
22996
  set = function (it, metadata) {
22918
- if (wmhas(store$1, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
22997
+ if (store$1.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
22919
22998
  metadata.facade = it;
22920
- wmset(store$1, it, metadata);
22999
+ store$1.set(it, metadata);
22921
23000
  return metadata;
22922
23001
  };
22923
23002
  get = function (it) {
22924
- return wmget(store$1, it) || {};
23003
+ return store$1.get(it) || {};
22925
23004
  };
22926
23005
  has = function (it) {
22927
- return wmhas(store$1, it);
23006
+ return store$1.has(it);
22928
23007
  };
22929
23008
  } else {
22930
23009
  var STATE = sharedKey('state');
@@ -22952,14 +23031,23 @@ var internalState = {
22952
23031
  };
22953
23032
 
22954
23033
  var makeBuiltIn_1 = createCommonjsModule(function (module) {
23034
+
23035
+
23036
+
23037
+
23038
+
22955
23039
  var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
22956
23040
 
22957
23041
 
22958
23042
 
22959
23043
  var enforceInternalState = internalState.enforce;
22960
23044
  var getInternalState = internalState.get;
22961
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
23045
+ var $String = String;
23046
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
22962
23047
  var defineProperty = Object.defineProperty;
23048
+ var stringSlice = functionUncurryThis(''.slice);
23049
+ var replace = functionUncurryThis(''.replace);
23050
+ var join = functionUncurryThis([].join);
22963
23051
 
22964
23052
  var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
22965
23053
  return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
@@ -22968,8 +23056,8 @@ var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
22968
23056
  var TEMPLATE = String(String).split('String');
22969
23057
 
22970
23058
  var makeBuiltIn = module.exports = function (value, name, options) {
22971
- if (String(name).slice(0, 7) === 'Symbol(') {
22972
- name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
23059
+ if (stringSlice($String(name), 0, 7) === 'Symbol(') {
23060
+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
22973
23061
  }
22974
23062
  if (options && options.getter) name = 'get ' + name;
22975
23063
  if (options && options.setter) name = 'set ' + name;
@@ -22988,7 +23076,7 @@ var makeBuiltIn = module.exports = function (value, name, options) {
22988
23076
  } catch (error) { /* empty */ }
22989
23077
  var state = enforceInternalState(value);
22990
23078
  if (!hasOwnProperty_1(state, 'source')) {
22991
- state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
23079
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
22992
23080
  } return value;
22993
23081
  };
22994
23082
 
@@ -23027,7 +23115,7 @@ var floor = Math.floor;
23027
23115
 
23028
23116
  // `Math.trunc` method
23029
23117
  // https://tc39.es/ecma262/#sec-math.trunc
23030
- // eslint-disable-next-line es-x/no-math-trunc -- safe
23118
+ // eslint-disable-next-line es/no-math-trunc -- safe
23031
23119
  var mathTrunc = Math.trunc || function trunc(x) {
23032
23120
  var n = +x;
23033
23121
  return (n > 0 ? floor : ceil)(n);
@@ -23075,10 +23163,10 @@ var createMethod = function (IS_INCLUDES) {
23075
23163
  var value;
23076
23164
  // Array#includes uses SameValueZero equality algorithm
23077
23165
  // eslint-disable-next-line no-self-compare -- NaN check
23078
- if (IS_INCLUDES && el != el) while (length > index) {
23166
+ if (IS_INCLUDES && el !== el) while (length > index) {
23079
23167
  value = O[index++];
23080
23168
  // eslint-disable-next-line no-self-compare -- NaN check
23081
- if (value != value) return true;
23169
+ if (value !== value) return true;
23082
23170
  // Array#indexOf ignores holes, Array#includes - not
23083
23171
  } else for (;length > index; index++) {
23084
23172
  if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
@@ -23128,7 +23216,7 @@ var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
23128
23216
 
23129
23217
  // `Object.getOwnPropertyNames` method
23130
23218
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
23131
- // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
23219
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
23132
23220
  var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
23133
23221
  return objectKeysInternal(O, hiddenKeys$1);
23134
23222
  };
@@ -23137,7 +23225,7 @@ var objectGetOwnPropertyNames = {
23137
23225
  f: f$3
23138
23226
  };
23139
23227
 
23140
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
23228
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
23141
23229
  var f$4 = Object.getOwnPropertySymbols;
23142
23230
 
23143
23231
  var objectGetOwnPropertySymbols = {
@@ -23169,8 +23257,8 @@ var replacement = /#|\.prototype\./;
23169
23257
 
23170
23258
  var isForced = function (feature, detection) {
23171
23259
  var value = data[normalize(feature)];
23172
- return value == POLYFILL ? true
23173
- : value == NATIVE ? false
23260
+ return value === POLYFILL ? true
23261
+ : value === NATIVE ? false
23174
23262
  : isCallable(detection) ? fails(detection)
23175
23263
  : !!detection;
23176
23264
  };
@@ -23250,7 +23338,7 @@ var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
23250
23338
  var $Object$3 = Object;
23251
23339
 
23252
23340
  // ES3 wrong here
23253
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
23341
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
23254
23342
 
23255
23343
  // fallback for IE11 Script Access Denied error
23256
23344
  var tryGet = function (it, key) {
@@ -23268,25 +23356,25 @@ var classof = toStringTagSupport ? classofRaw : function (it) {
23268
23356
  // builtinTag case
23269
23357
  : CORRECT_ARGUMENTS ? classofRaw(O)
23270
23358
  // ES3 arguments fallback
23271
- : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
23359
+ : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
23272
23360
  };
23273
23361
 
23274
- var $String$2 = String;
23362
+ var $String$3 = String;
23275
23363
 
23276
23364
  var toString_1 = function (argument) {
23277
- if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
23278
- return $String$2(argument);
23365
+ if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
23366
+ return $String$3(argument);
23279
23367
  };
23280
23368
 
23281
23369
  var charAt = functionUncurryThis(''.charAt);
23282
23370
 
23283
23371
  var FORCED = fails(function () {
23284
- // eslint-disable-next-line es-x/no-array-string-prototype-at -- safe
23372
+ // eslint-disable-next-line es/no-array-string-prototype-at -- safe
23285
23373
  return '𠮷'.at(-2) !== '\uD842';
23286
23374
  });
23287
23375
 
23288
23376
  // `String.prototype.at` method
23289
- // https://github.com/tc39/proposal-relative-indexing-method
23377
+ // https://tc39.es/ecma262/#sec-string.prototype.at
23290
23378
  _export({ target: 'String', proto: true, forced: FORCED }, {
23291
23379
  at: function at(index) {
23292
23380
  var S = toString_1(requireObjectCoercible(this));
@@ -23299,14 +23387,14 @@ _export({ target: 'String', proto: true, forced: FORCED }, {
23299
23387
 
23300
23388
  // `Object.keys` method
23301
23389
  // https://tc39.es/ecma262/#sec-object.keys
23302
- // eslint-disable-next-line es-x/no-object-keys -- safe
23390
+ // eslint-disable-next-line es/no-object-keys -- safe
23303
23391
  var objectKeys = Object.keys || function keys(O) {
23304
23392
  return objectKeysInternal(O, enumBugKeys);
23305
23393
  };
23306
23394
 
23307
23395
  // `Object.defineProperties` method
23308
23396
  // https://tc39.es/ecma262/#sec-object.defineproperties
23309
- // eslint-disable-next-line es-x/no-object-defineproperties -- safe
23397
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
23310
23398
  var f$5 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
23311
23399
  anObject(O);
23312
23400
  var props = toIndexedObject(Properties);
@@ -23395,7 +23483,7 @@ hiddenKeys[IE_PROTO] = true;
23395
23483
 
23396
23484
  // `Object.create` method
23397
23485
  // https://tc39.es/ecma262/#sec-object.create
23398
- // eslint-disable-next-line es-x/no-object-create -- safe
23486
+ // eslint-disable-next-line es/no-object-create -- safe
23399
23487
  var objectCreate = Object.create || function create(O, Properties) {
23400
23488
  var result;
23401
23489
  if (O !== null) {
@@ -23415,7 +23503,7 @@ var ArrayPrototype = Array.prototype;
23415
23503
 
23416
23504
  // Array.prototype[@@unscopables]
23417
23505
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
23418
- if (ArrayPrototype[UNSCOPABLES] == undefined) {
23506
+ if (ArrayPrototype[UNSCOPABLES] === undefined) {
23419
23507
  defineProperty$1(ArrayPrototype, UNSCOPABLES, {
23420
23508
  configurable: true,
23421
23509
  value: objectCreate(null)
@@ -23428,7 +23516,7 @@ var addToUnscopables = function (key) {
23428
23516
  };
23429
23517
 
23430
23518
  // `Array.prototype.at` method
23431
- // https://github.com/tc39/proposal-relative-indexing-method
23519
+ // https://tc39.es/ecma262/#sec-array.prototype.at
23432
23520
  _export({ target: 'Array', proto: true }, {
23433
23521
  at: function at(index) {
23434
23522
  var O = toObject(this);
@@ -23441,13 +23529,19 @@ _export({ target: 'Array', proto: true }, {
23441
23529
 
23442
23530
  addToUnscopables('at');
23443
23531
 
23444
- // eslint-disable-next-line es-x/no-typed-arrays -- safe
23445
- var arrayBufferNative = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
23532
+ // eslint-disable-next-line es/no-typed-arrays -- safe
23533
+ var arrayBufferBasicDetection = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
23534
+
23535
+ var defineBuiltInAccessor = function (target, name, descriptor) {
23536
+ if (descriptor.get) makeBuiltIn_1(descriptor.get, name, { getter: true });
23537
+ if (descriptor.set) makeBuiltIn_1(descriptor.set, name, { setter: true });
23538
+ return objectDefineProperty.f(target, name, descriptor);
23539
+ };
23446
23540
 
23447
23541
  var correctPrototypeGetter = !fails(function () {
23448
23542
  function F() { /* empty */ }
23449
23543
  F.prototype.constructor = null;
23450
- // eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
23544
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
23451
23545
  return Object.getPrototypeOf(new F()) !== F.prototype;
23452
23546
  });
23453
23547
 
@@ -23457,7 +23551,7 @@ var ObjectPrototype = $Object$4.prototype;
23457
23551
 
23458
23552
  // `Object.getPrototypeOf` method
23459
23553
  // https://tc39.es/ecma262/#sec-object.getprototypeof
23460
- // eslint-disable-next-line es-x/no-object-getprototypeof -- safe
23554
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
23461
23555
  var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : function (O) {
23462
23556
  var object = toObject(O);
23463
23557
  if (hasOwnProperty_1(object, IE_PROTO$1)) return object[IE_PROTO$1];
@@ -23467,12 +23561,19 @@ var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : f
23467
23561
  } return object instanceof $Object$4 ? ObjectPrototype : null;
23468
23562
  };
23469
23563
 
23470
- var $String$3 = String;
23564
+ var functionUncurryThisAccessor = function (object, key, method) {
23565
+ try {
23566
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
23567
+ return functionUncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
23568
+ } catch (error) { /* empty */ }
23569
+ };
23570
+
23571
+ var $String$4 = String;
23471
23572
  var $TypeError$6 = TypeError;
23472
23573
 
23473
23574
  var aPossiblePrototype = function (argument) {
23474
23575
  if (typeof argument == 'object' || isCallable(argument)) return argument;
23475
- throw $TypeError$6("Can't set " + $String$3(argument) + ' as a prototype');
23576
+ throw new $TypeError$6("Can't set " + $String$4(argument) + ' as a prototype');
23476
23577
  };
23477
23578
 
23478
23579
  /* eslint-disable no-proto -- safe */
@@ -23483,14 +23584,13 @@ var aPossiblePrototype = function (argument) {
23483
23584
  // `Object.setPrototypeOf` method
23484
23585
  // https://tc39.es/ecma262/#sec-object.setprototypeof
23485
23586
  // Works with __proto__ only. Old v8 can't work with null proto objects.
23486
- // eslint-disable-next-line es-x/no-object-setprototypeof -- safe
23587
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
23487
23588
  var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
23488
23589
  var CORRECT_SETTER = false;
23489
23590
  var test = {};
23490
23591
  var setter;
23491
23592
  try {
23492
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
23493
- setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
23593
+ setter = functionUncurryThisAccessor(Object.prototype, '__proto__', 'set');
23494
23594
  setter(test, []);
23495
23595
  CORRECT_SETTER = test instanceof Array;
23496
23596
  } catch (error) { /* empty */ }
@@ -23503,14 +23603,6 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
23503
23603
  };
23504
23604
  }() : undefined);
23505
23605
 
23506
- var defineProperty$2 = objectDefineProperty.f;
23507
-
23508
-
23509
-
23510
-
23511
-
23512
-
23513
-
23514
23606
  var enforceInternalState = internalState.enforce;
23515
23607
  var getInternalState = internalState.get;
23516
23608
  var Int8Array = global_1.Int8Array;
@@ -23526,7 +23618,7 @@ var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
23526
23618
  var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
23527
23619
  var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
23528
23620
  // Fixing native typed arrays in Opera Presto crashes the browser, see #595
23529
- var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferNative && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
23621
+ var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferBasicDetection && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
23530
23622
  var TYPED_ARRAY_TAG_REQUIRED = false;
23531
23623
  var NAME, Constructor, Prototype;
23532
23624
 
@@ -23571,12 +23663,12 @@ var isTypedArray = function (it) {
23571
23663
 
23572
23664
  var aTypedArray = function (it) {
23573
23665
  if (isTypedArray(it)) return it;
23574
- throw TypeError$2('Target is not a typed array');
23666
+ throw new TypeError$2('Target is not a typed array');
23575
23667
  };
23576
23668
 
23577
23669
  var aTypedArrayConstructor = function (C) {
23578
23670
  if (isCallable(C) && (!objectSetPrototypeOf || objectIsPrototypeOf(TypedArray, C))) return C;
23579
- throw TypeError$2(tryToString(C) + ' is not a typed array constructor');
23671
+ throw new TypeError$2(tryToString(C) + ' is not a typed array constructor');
23580
23672
  };
23581
23673
 
23582
23674
  var exportTypedArrayMethod = function (KEY, property, forced, options) {
@@ -23640,7 +23732,7 @@ for (NAME in BigIntArrayConstructorsList) {
23640
23732
  if (!NATIVE_ARRAY_BUFFER_VIEWS || !isCallable(TypedArray) || TypedArray === Function.prototype) {
23641
23733
  // eslint-disable-next-line no-shadow -- safe
23642
23734
  TypedArray = function TypedArray() {
23643
- throw TypeError$2('Incorrect invocation');
23735
+ throw new TypeError$2('Incorrect invocation');
23644
23736
  };
23645
23737
  if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {
23646
23738
  if (global_1[NAME]) objectSetPrototypeOf(global_1[NAME], TypedArray);
@@ -23661,9 +23753,12 @@ if (NATIVE_ARRAY_BUFFER_VIEWS && objectGetPrototypeOf(Uint8ClampedArrayPrototype
23661
23753
 
23662
23754
  if (descriptors && !hasOwnProperty_1(TypedArrayPrototype, TO_STRING_TAG$2)) {
23663
23755
  TYPED_ARRAY_TAG_REQUIRED = true;
23664
- defineProperty$2(TypedArrayPrototype, TO_STRING_TAG$2, { get: function () {
23665
- return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
23666
- } });
23756
+ defineBuiltInAccessor(TypedArrayPrototype, TO_STRING_TAG$2, {
23757
+ configurable: true,
23758
+ get: function () {
23759
+ return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
23760
+ }
23761
+ });
23667
23762
  for (NAME in TypedArrayConstructorsList) if (global_1[NAME]) {
23668
23763
  createNonEnumerableProperty(global_1[NAME], TYPED_ARRAY_TAG, NAME);
23669
23764
  }
@@ -23687,7 +23782,7 @@ var aTypedArray$1 = arrayBufferViewCore.aTypedArray;
23687
23782
  var exportTypedArrayMethod$1 = arrayBufferViewCore.exportTypedArrayMethod;
23688
23783
 
23689
23784
  // `%TypedArray%.prototype.at` method
23690
- // https://github.com/tc39/proposal-relative-indexing-method
23785
+ // https://tc39.es/ecma262/#sec-%typedarray%.prototype.at
23691
23786
  exportTypedArrayMethod$1('at', function at(index) {
23692
23787
  var O = aTypedArray$1(this);
23693
23788
  var len = lengthOfArrayLike(O);
@@ -23698,9 +23793,11 @@ exportTypedArrayMethod$1('at', function at(index) {
23698
23793
 
23699
23794
  var selectedColor = "".concat(MATISSE_BLUE);
23700
23795
  var hoverColor$3 = "".concat(HOVER_LIGHT_BLUE);
23796
+ var focusColor = "".concat(MATISSE_BLUE_DARK);
23701
23797
  var fallbackValues$f = {
23702
23798
  selectedColor: selectedColor,
23703
- hoverColor: hoverColor$3
23799
+ hoverColor: hoverColor$3,
23800
+ focusColor: focusColor
23704
23801
  };
23705
23802
 
23706
23803
  var IconWrapper = styled__default.div.withConfig({
@@ -23723,7 +23820,7 @@ var DropdownContentWrapper = styled__default.div.withConfig({
23723
23820
  var DropdownItemWrapper = styled__default.li.withConfig({
23724
23821
  displayName: "Dropdown__DropdownItemWrapper",
23725
23822
  componentId: "sc-pn6m0h-2"
23726
- })(["background-color:", ";text-align:start;border-width:0px;border-color:transparent;box-shadow:none;padding:1rem;box-sizing:border-box;width:100%;list-style:none;cursor:", ";&:hover{background-color:", ";}&:focus{background-color:", ";outline:none;}"], function (_ref4) {
23823
+ })(["text-align:start;border-width:2px;border-style:solid;border-color:", ";box-shadow:none;box-sizing:border-box;width:100%;list-style:none;cursor:", ";&:hover{border-color:", ";> *{background:", ";border-color:", ";}}&:focus{outline:none;border-color:", ";> *{background:", ";border-color:white;outline:none;}}"], function (_ref4) {
23727
23824
  var selected = _ref4.selected,
23728
23825
  themeValues = _ref4.themeValues;
23729
23826
  return selected ? themeValues.selectedColor : WHITE;
@@ -23731,44 +23828,71 @@ var DropdownItemWrapper = styled__default.li.withConfig({
23731
23828
  var disabled = _ref5.disabled;
23732
23829
  return disabled ? "default" : "pointer";
23733
23830
  }, function (_ref6) {
23734
- var selected = _ref6.selected,
23735
- disabled = _ref6.disabled,
23831
+ var disabled = _ref6.disabled,
23832
+ selected = _ref6.selected,
23736
23833
  themeValues = _ref6.themeValues;
23737
- return selected ? themeValues.selectedColor : disabled ? WHITE : themeValues.hoverColor;
23834
+ return selected ? themeValues.focusColor : disabled ? WHITE : themeValues.hoverColor;
23738
23835
  }, function (_ref7) {
23739
23836
  var selected = _ref7.selected,
23740
23837
  disabled = _ref7.disabled,
23741
23838
  themeValues = _ref7.themeValues;
23742
- return selected ? themeValues.selectedColor : disabled ? WHITE : themeValues.hoverColor;
23839
+ return selected ? themeValues.focusColor : disabled ? WHITE : themeValues.hoverColor;
23840
+ }, function (_ref8) {
23841
+ var selected = _ref8.selected,
23842
+ disabled = _ref8.disabled,
23843
+ themeValues = _ref8.themeValues;
23844
+ return selected ? themeValues.focusColor : disabled ? WHITE : themeValues.hoverColor;
23845
+ }, function (_ref9) {
23846
+ var themeValues = _ref9.themeValues;
23847
+ return themeValues.selectedColor;
23848
+ }, function (_ref10) {
23849
+ var selected = _ref10.selected,
23850
+ disabled = _ref10.disabled,
23851
+ themeValues = _ref10.themeValues;
23852
+ return selected ? themeValues.focusColor : disabled ? WHITE : themeValues.hoverColor;
23853
+ });
23854
+ var DropdownItemBorder = styled__default.div.withConfig({
23855
+ displayName: "Dropdown__DropdownItemBorder",
23856
+ componentId: "sc-pn6m0h-3"
23857
+ })(["background:", ";border-color:", ";border-width:2px;border-style:solid;padding:12px;"], function (_ref11) {
23858
+ var selected = _ref11.selected,
23859
+ themeValues = _ref11.themeValues;
23860
+ return selected ? themeValues.selectedColor : WHITE;
23861
+ }, function (_ref12) {
23862
+ var selected = _ref12.selected,
23863
+ themeValues = _ref12.themeValues;
23864
+ return selected ? themeValues.selectedColor : WHITE;
23743
23865
  });
23744
23866
 
23745
- var Dropdown = function Dropdown(_ref8) {
23746
- var placeholder = _ref8.placeholder,
23747
- options = _ref8.options,
23748
- value = _ref8.value,
23749
- isOpen = _ref8.isOpen,
23750
- isError = _ref8.isError,
23751
- onSelect = _ref8.onSelect,
23752
- _ref8$disabledValues = _ref8.disabledValues,
23753
- disabledValues = _ref8$disabledValues === void 0 ? [] : _ref8$disabledValues,
23754
- _ref8$onClick = _ref8.onClick,
23755
- _onClick = _ref8$onClick === void 0 ? noop : _ref8$onClick,
23756
- themeValues = _ref8.themeValues,
23757
- maxHeight = _ref8.maxHeight,
23758
- _ref8$widthFitOptions = _ref8.widthFitOptions,
23759
- widthFitOptions = _ref8$widthFitOptions === void 0 ? false : _ref8$widthFitOptions,
23760
- disabled = _ref8.disabled,
23761
- _ref8$hasTitles = _ref8.hasTitles,
23762
- hasTitles = _ref8$hasTitles === void 0 ? false : _ref8$hasTitles,
23763
- _ref8$autoEraseTypeAh = _ref8.autoEraseTypeAhead,
23764
- autoEraseTypeAhead = _ref8$autoEraseTypeAh === void 0 ? true : _ref8$autoEraseTypeAh,
23765
- ariaLabelledby = _ref8.ariaLabelledby,
23766
- ariaDescribedby = _ref8.ariaDescribedby,
23767
- autocompleteValue = _ref8.autocompleteValue,
23768
- _ref8$smoothScroll = _ref8.smoothScroll,
23769
- smoothScroll = _ref8$smoothScroll === void 0 ? true : _ref8$smoothScroll,
23770
- _ref8$ariaInvalid = _ref8.ariaInvalid,
23771
- ariaInvalid = _ref8$ariaInvalid === void 0 ? false : _ref8$ariaInvalid;
23867
+ var Dropdown = function Dropdown(_ref13) {
23868
+ var placeholder = _ref13.placeholder,
23869
+ options = _ref13.options,
23870
+ value = _ref13.value,
23871
+ isOpen = _ref13.isOpen,
23872
+ isError = _ref13.isError,
23873
+ onSelect = _ref13.onSelect,
23874
+ _ref13$disabledValues = _ref13.disabledValues,
23875
+ disabledValues = _ref13$disabledValues === void 0 ? [] : _ref13$disabledValues,
23876
+ _ref13$onClick = _ref13.onClick,
23877
+ _onClick = _ref13$onClick === void 0 ? noop : _ref13$onClick,
23878
+ themeValues = _ref13.themeValues,
23879
+ maxHeight = _ref13.maxHeight,
23880
+ _ref13$widthFitOption = _ref13.widthFitOptions,
23881
+ widthFitOptions = _ref13$widthFitOption === void 0 ? false : _ref13$widthFitOption,
23882
+ disabled = _ref13.disabled,
23883
+ _ref13$hasTitles = _ref13.hasTitles,
23884
+ hasTitles = _ref13$hasTitles === void 0 ? false : _ref13$hasTitles,
23885
+ _ref13$autoEraseTypeA = _ref13.autoEraseTypeAhead,
23886
+ autoEraseTypeAhead = _ref13$autoEraseTypeA === void 0 ? true : _ref13$autoEraseTypeA,
23887
+ ariaLabelledby = _ref13.ariaLabelledby,
23888
+ ariaDescribedby = _ref13.ariaDescribedby,
23889
+ autocompleteValue = _ref13.autocompleteValue,
23890
+ _ref13$smoothScroll = _ref13.smoothScroll,
23891
+ smoothScroll = _ref13$smoothScroll === void 0 ? true : _ref13$smoothScroll,
23892
+ _ref13$ariaInvalid = _ref13.ariaInvalid,
23893
+ ariaInvalid = _ref13$ariaInvalid === void 0 ? false : _ref13$ariaInvalid,
23894
+ _ref13$isRequired = _ref13.isRequired,
23895
+ isRequired = _ref13$isRequired === void 0 ? false : _ref13$isRequired;
23772
23896
 
23773
23897
  var _useState = React.useState(""),
23774
23898
  _useState2 = _slicedToArray(_useState, 2),
@@ -23961,11 +24085,13 @@ var Dropdown = function Dropdown(_ref8) {
23961
24085
  clearTimeout(timer);
23962
24086
  setTimer(setTimeout(function () {
23963
24087
  return setInputValue("");
23964
- }, 3000));
24088
+ }, 20000));
23965
24089
  }
23966
24090
 
23967
24091
  setFilteredOptions(options.filter(function (option) {
23968
- return option.value.toLowerCase().startsWith(inputValue.toLowerCase()) || option.text.toLowerCase().startsWith(inputValue.toLowerCase());
24092
+ var _option$value, _option$value$toLower, _option$text, _option$text$toLowerC;
24093
+
24094
+ return (option === null || option === void 0 ? void 0 : (_option$value = option.value) === null || _option$value === void 0 ? void 0 : (_option$value$toLower = _option$value.toLowerCase()) === null || _option$value$toLower === void 0 ? void 0 : _option$value$toLower.indexOf(inputValue === null || inputValue === void 0 ? void 0 : inputValue.toLowerCase())) >= 0 || ((_option$text = option.text) === null || _option$text === void 0 ? void 0 : (_option$text$toLowerC = _option$text.toLowerCase()) === null || _option$text$toLowerC === void 0 ? void 0 : _option$text$toLowerC.indexOf(inputValue === null || inputValue === void 0 ? void 0 : inputValue.toLowerCase())) >= 0;
23969
24095
  }));
23970
24096
  }, [inputValue]);
23971
24097
  React.useEffect(function () {
@@ -24039,7 +24165,7 @@ var Dropdown = function Dropdown(_ref8) {
24039
24165
  },
24040
24166
  padding: "12px",
24041
24167
  placeholder: getSelection(),
24042
- required: options.required,
24168
+ required: options.required || isRequired,
24043
24169
  role: "combobox",
24044
24170
  themeValues: themeValues,
24045
24171
  title: hasTitles ? getSelection() : null,
@@ -24090,11 +24216,15 @@ var Dropdown = function Dropdown(_ref8) {
24090
24216
  onFocus: function onFocus() {
24091
24217
  return setFocusedRef(optionRefs.current[i]);
24092
24218
  }
24219
+ }, /*#__PURE__*/React__default.createElement(DropdownItemBorder, {
24220
+ disabled: disabledValues.includes(choice.value),
24221
+ selected: choice.value === value,
24222
+ themeValues: themeValues
24093
24223
  }, /*#__PURE__*/React__default.createElement(Text$1, {
24094
24224
  variant: "p",
24095
24225
  color: choice.value === value ? WHITE : disabledValues.includes(choice.value) ? STORM_GREY : MINESHAFT_GREY,
24096
- extraStyles: "padding-left: 16px;\n cursor: ".concat(disabledValues.includes(choice.value) ? "default" : "pointer", ";\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;")
24097
- }, choice.text));
24226
+ extraStyles: "padding-left: 16px;\n cursor: ".concat(disabledValues.includes(choice.value) ? "default" : "pointer", ";\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;")
24227
+ }, choice.text)));
24098
24228
  }))) : /*#__PURE__*/React__default.createElement(React.Fragment, null)));
24099
24229
  };
24100
24230
 
@@ -24203,7 +24333,9 @@ var FormSelect = function FormSelect(_ref) {
24203
24333
  _ref$dataQa = _ref.dataQa,
24204
24334
  dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
24205
24335
  _ref$widthFitOptions = _ref.widthFitOptions,
24206
- widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions;
24336
+ widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions,
24337
+ _ref$isRequired = _ref.isRequired,
24338
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
24207
24339
 
24208
24340
  var _useState = React.useState(false),
24209
24341
  _useState2 = _slicedToArray(_useState, 2),
@@ -24265,11 +24397,12 @@ var FormSelect = function FormSelect(_ref) {
24265
24397
  },
24266
24398
  disabled: disabled,
24267
24399
  autocompleteValue: autocompleteValue,
24268
- smoothScroll: smoothScroll
24400
+ smoothScroll: smoothScroll,
24401
+ isRequired: isRequired
24269
24402
  }), /*#__PURE__*/React__default.createElement(Stack, {
24270
24403
  direction: "row",
24271
24404
  justify: "space-between"
24272
- }, /*#__PURE__*/React__default.createElement(Text$1, {
24405
+ }, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React__default.createElement(Text$1, {
24273
24406
  color: ERROR_COLOR,
24274
24407
  variant: "pXS",
24275
24408
  weight: themeValues.fontWeight,
@@ -24278,7 +24411,9 @@ var FormSelect = function FormSelect(_ref) {
24278
24411
  "aria-live": "polite",
24279
24412
  "aria-atomic": true,
24280
24413
  "data-qa": createIdFromString(labelTextWhenNoError, "error message")
24281
- }, field.hasErrors && field.dirty || field.hasErrors && showErrors ? errorMessages[field.errors[0]] : "")));
24414
+ }, errorMessages[field.errors[0]]) : /*#__PURE__*/React__default.createElement(Text$1, {
24415
+ extraStyles: "height: ".concat(themeValues.lineHeight, ";")
24416
+ })));
24282
24417
  };
24283
24418
 
24284
24419
  var FormSelect$1 = themeComponent(FormSelect, "FormSelect", fallbackValues$g, "default");
@@ -25034,6 +25169,8 @@ var CountryDropdown = function CountryDropdown(_ref) {
25034
25169
  fieldActions = _ref.fieldActions,
25035
25170
  showErrors = _ref.showErrors,
25036
25171
  onChange = _ref.onChange,
25172
+ _ref$isRequired = _ref.isRequired,
25173
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired,
25037
25174
  _ref$dataQa = _ref.dataQa,
25038
25175
  dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa;
25039
25176
  return /*#__PURE__*/React__default.createElement(FormSelect$1, {
@@ -25045,7 +25182,8 @@ var CountryDropdown = function CountryDropdown(_ref) {
25045
25182
  errorMessages: errorMessages,
25046
25183
  showErrors: showErrors,
25047
25184
  onChange: onChange,
25048
- autocompleteValue: "country-name"
25185
+ autocompleteValue: "country-name",
25186
+ isRequired: isRequired
25049
25187
  });
25050
25188
  };
25051
25189
 
@@ -25209,6 +25347,346 @@ var DisplayBox = function DisplayBox(_ref) {
25209
25347
 
25210
25348
  var DisplayBox$1 = themeComponent(DisplayBox, "DisplayBox", fallbackValues$i);
25211
25349
 
25350
+ /*
25351
+ Hook that assigns a click event listener to the main document element
25352
+ Returns a ref to attach to another element (like an icon/button that triggers a popover)
25353
+ If a click event gets captured by the document and the assigned element isn't the target
25354
+ hook will run whatever handler is passed (eg a function that closes a popover)
25355
+
25356
+ See popover component for implementation
25357
+
25358
+ */
25359
+
25360
+ var useOutsideClickHook = function useOutsideClickHook(handler) {
25361
+ var ref = React.useRef();
25362
+ React.useEffect(function () {
25363
+ }, [ref]);
25364
+ return ref;
25365
+ };
25366
+
25367
+ /*
25368
+ Hook that takes an ID selector for an element on the screen
25369
+ And optionally values for top position, left position, smooth behavior
25370
+ Finds element on screen and scrolls it to the provided coordinates
25371
+
25372
+ (string, number, number, string, number) => undefined;
25373
+ */
25374
+ var useScrollTo = function useScrollTo(id) {
25375
+ var top = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
25376
+ var left = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
25377
+ var behavior = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "auto";
25378
+ var delay = arguments.length > 4 ? arguments[4] : undefined;
25379
+ var scrollItem;
25380
+
25381
+ if (delay) {
25382
+ setTimeout(function () {
25383
+ var _scrollItem;
25384
+
25385
+ scrollItem = document.getElementById(id);
25386
+ (_scrollItem = scrollItem) === null || _scrollItem === void 0 ? void 0 : _scrollItem.scrollTo({
25387
+ top: top,
25388
+ left: left,
25389
+ behavior: behavior
25390
+ });
25391
+ }, delay);
25392
+ } else {
25393
+ var _scrollItem2;
25394
+
25395
+ scrollItem = document.getElementById(id);
25396
+ (_scrollItem2 = scrollItem) === null || _scrollItem2 === void 0 ? void 0 : _scrollItem2.scrollTo({
25397
+ top: top,
25398
+ left: left,
25399
+ behavior: behavior
25400
+ });
25401
+ }
25402
+ };
25403
+
25404
+ var initialToastState = {
25405
+ isOpen: false,
25406
+ variant: "",
25407
+ message: ""
25408
+ };
25409
+
25410
+ var useToastNotification = function useToastNotification() {
25411
+ var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
25412
+ _ref$timeout = _ref.timeout,
25413
+ timeout = _ref$timeout === void 0 ? 5000 : _ref$timeout;
25414
+
25415
+ var _useState = React.useState(initialToastState),
25416
+ _useState2 = _slicedToArray(_useState, 2),
25417
+ toastState = _useState2[0],
25418
+ setToastState = _useState2[1];
25419
+
25420
+ React.useEffect(function () {
25421
+ if (toastState.isOpen) {
25422
+ setTimeout(function () {
25423
+ setToastState(initialToastState);
25424
+ }, timeout);
25425
+ }
25426
+ }, [timeout, toastState.isOpen]);
25427
+
25428
+ var showToast = function showToast(_ref2) {
25429
+ var message = _ref2.message,
25430
+ variant = _ref2.variant;
25431
+ return setToastState({
25432
+ isOpen: true,
25433
+ variant: variant,
25434
+ message: message
25435
+ });
25436
+ };
25437
+
25438
+ var hideToast = function hideToast() {
25439
+ return setToastState(initialToastState);
25440
+ };
25441
+
25442
+ return {
25443
+ isToastOpen: toastState.isOpen,
25444
+ toastVariant: toastState.variant,
25445
+ toastMessage: toastState.message,
25446
+ showToast: showToast,
25447
+ hideToast: hideToast
25448
+ };
25449
+ };
25450
+
25451
+
25452
+
25453
+ var index$4 = /*#__PURE__*/Object.freeze({
25454
+ __proto__: null,
25455
+ useOutsideClick: useOutsideClickHook,
25456
+ useScrollTo: useScrollTo,
25457
+ useToastNotification: useToastNotification
25458
+ });
25459
+
25460
+ var hoverColor$4 = "#116285";
25461
+ var activeColor$4 = "#0E506D";
25462
+ var popoverTriggerColor = "#15749D";
25463
+ var fallbackValues$j = {
25464
+ hoverColor: hoverColor$4,
25465
+ activeColor: activeColor$4,
25466
+ popoverTriggerColor: popoverTriggerColor
25467
+ };
25468
+
25469
+ var arrowBorder = function arrowBorder(borderColor, direction) {
25470
+ var width = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "8px";
25471
+ var angle = "".concat(width, " solid transparent");
25472
+ var straight = "".concat(width, " solid ").concat(borderColor);
25473
+
25474
+ if (direction == "down") {
25475
+ return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-top: ").concat(straight);
25476
+ } else if (direction == "up") {
25477
+ return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-bottom: ").concat(straight);
25478
+ } else if (direction == "left") {
25479
+ return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-right: ").concat(straight);
25480
+ } else if (direction == "right") {
25481
+ return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-left: ").concat(straight);
25482
+ }
25483
+ };
25484
+
25485
+ var Popover = function Popover(_ref) {
25486
+ var themeValues = _ref.themeValues,
25487
+ _ref$triggerText = _ref.triggerText,
25488
+ triggerText = _ref$triggerText === void 0 ? "" : _ref$triggerText,
25489
+ _ref$content = _ref.content,
25490
+ content = _ref$content === void 0 ? "" : _ref$content,
25491
+ _ref$hasIcon = _ref.hasIcon,
25492
+ hasIcon = _ref$hasIcon === void 0 ? false : _ref$hasIcon,
25493
+ Icon = _ref.icon,
25494
+ _ref$iconHelpText = _ref.iconHelpText,
25495
+ iconHelpText = _ref$iconHelpText === void 0 ? "" : _ref$iconHelpText,
25496
+ _ref$popoverID = _ref.popoverID,
25497
+ popoverID = _ref$popoverID === void 0 ? 0 : _ref$popoverID,
25498
+ _ref$popoverFocus = _ref.popoverFocus,
25499
+ popoverFocus = _ref$popoverFocus === void 0 ? false : _ref$popoverFocus,
25500
+ extraStyles = _ref.extraStyles,
25501
+ textExtraStyles = _ref.textExtraStyles,
25502
+ _ref$minWidth = _ref.minWidth,
25503
+ minWidth = _ref$minWidth === void 0 ? "250px" : _ref$minWidth,
25504
+ _ref$maxWidth = _ref.maxWidth,
25505
+ maxWidth = _ref$maxWidth === void 0 ? "300px" : _ref$maxWidth,
25506
+ _ref$height = _ref.height,
25507
+ height = _ref$height === void 0 ? "auto" : _ref$height,
25508
+ position = _ref.position,
25509
+ arrowPosition = _ref.arrowPosition,
25510
+ _ref$arrowDirection = _ref.arrowDirection,
25511
+ arrowDirection = _ref$arrowDirection === void 0 ? "down" : _ref$arrowDirection,
25512
+ _ref$transform = _ref.transform,
25513
+ transform = _ref$transform === void 0 ? "none" : _ref$transform,
25514
+ buttonExtraStyles = _ref.buttonExtraStyles,
25515
+ _ref$backgroundColor = _ref.backgroundColor,
25516
+ backgroundColor = _ref$backgroundColor === void 0 ? "white" : _ref$backgroundColor,
25517
+ _ref$borderColor = _ref.borderColor,
25518
+ borderColor = _ref$borderColor === void 0 ? "rgba(255, 255, 255, 0.85)" : _ref$borderColor,
25519
+ popoverExtraStyles = _ref.popoverExtraStyles;
25520
+ var hoverColor = themeValues.hoverColor,
25521
+ activeColor = themeValues.activeColor,
25522
+ popoverTriggerColor = themeValues.popoverTriggerColor;
25523
+
25524
+ var _ref2 = position !== null && position !== void 0 ? position : {},
25525
+ _ref2$top = _ref2.top,
25526
+ top = _ref2$top === void 0 ? "-110px" : _ref2$top,
25527
+ _ref2$right = _ref2.right,
25528
+ right = _ref2$right === void 0 ? "auto" : _ref2$right,
25529
+ _ref2$bottom = _ref2.bottom,
25530
+ bottom = _ref2$bottom === void 0 ? "auto" : _ref2$bottom,
25531
+ _ref2$left = _ref2.left,
25532
+ left = _ref2$left === void 0 ? "-225px" : _ref2$left;
25533
+
25534
+ var _ref3 = arrowPosition !== null && arrowPosition !== void 0 ? arrowPosition : {},
25535
+ _ref3$arrowTop = _ref3.arrowTop,
25536
+ arrowTop = _ref3$arrowTop === void 0 ? "auto" : _ref3$arrowTop,
25537
+ _ref3$arrowRight = _ref3.arrowRight,
25538
+ arrowRight = _ref3$arrowRight === void 0 ? "10px" : _ref3$arrowRight,
25539
+ _ref3$arrowBottom = _ref3.arrowBottom,
25540
+ arrowBottom = _ref3$arrowBottom === void 0 ? "-8px" : _ref3$arrowBottom,
25541
+ _ref3$arrowLeft = _ref3.arrowLeft,
25542
+ arrowLeft = _ref3$arrowLeft === void 0 ? "auto" : _ref3$arrowLeft;
25543
+
25544
+ var _useState = React.useState(false),
25545
+ _useState2 = _slicedToArray(_useState, 2),
25546
+ popoverOpen = _useState2[0],
25547
+ togglePopover = _useState2[1];
25548
+
25549
+ var handleTogglePopover = function handleTogglePopover(popoverState) {
25550
+ if (popoverOpen !== popoverState) {
25551
+ togglePopover(popoverState);
25552
+ }
25553
+ };
25554
+
25555
+ var triggerRef = useOutsideClickHook();
25556
+ return /*#__PURE__*/React__default.createElement(Box, {
25557
+ padding: "0",
25558
+ extraStyles: "position: relative; ".concat(extraStyles)
25559
+ }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
25560
+ action: function action() {
25561
+ return noop;
25562
+ },
25563
+ onFocus: function onFocus() {
25564
+ handleTogglePopover(true);
25565
+ },
25566
+ onBlur: function onBlur() {
25567
+ handleTogglePopover(false);
25568
+ },
25569
+ onKeyDown: function onKeyDown(e) {
25570
+ if (e.keyCode === 27) {
25571
+ handleTogglePopover(false);
25572
+ }
25573
+ },
25574
+ onTouchStart: function onTouchStart() {
25575
+ return handleTogglePopover(true);
25576
+ },
25577
+ onTouchEnd: function onTouchEnd() {
25578
+ return handleTogglePopover(false);
25579
+ },
25580
+ onMouseEnter: function onMouseEnter() {
25581
+ return handleTogglePopover(true);
25582
+ },
25583
+ onMouseLeave: function onMouseLeave() {
25584
+ return handleTogglePopover(false);
25585
+ },
25586
+ contentOverride: true,
25587
+ variant: "smallGhost",
25588
+ tabIndex: "0",
25589
+ id: "btnPopover".concat(popoverID),
25590
+ "aria-expanded": popoverOpen,
25591
+ "aria-labelledby": "btnPopover".concat(popoverID, "_info Disclosure").concat(popoverID),
25592
+ "aria-describedby": "Disclosure".concat(popoverID),
25593
+ "aria-controls": "Disclosed".concat(popoverID),
25594
+ ref: triggerRef,
25595
+ extraStyles: buttonExtraStyles
25596
+ }, hasIcon && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Icon, null), /*#__PURE__*/React__default.createElement(Box, {
25597
+ padding: "0",
25598
+ srOnly: true
25599
+ }, /*#__PURE__*/React__default.createElement(Text$1, {
25600
+ id: "btnPopover".concat(popoverID, "_info")
25601
+ }, iconHelpText))), !hasIcon && /*#__PURE__*/React__default.createElement(Text$1, {
25602
+ color: popoverTriggerColor,
25603
+ extraStyles: "&:active { color: ".concat(activeColor, "; } &:hover { color: ").concat(hoverColor, " }; ").concat(textExtraStyles)
25604
+ }, triggerText)), /*#__PURE__*/React__default.createElement(Box, {
25605
+ background: backgroundColor,
25606
+ borderRadius: "4px",
25607
+ boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)",
25608
+ id: "Disclosed".concat(popoverID),
25609
+ role: "region",
25610
+ "aria-describedby": "Disclosure".concat(popoverID),
25611
+ tabIndex: popoverFocus && popoverOpen ? "0" : "-1",
25612
+ minWidth: minWidth,
25613
+ maxWidth: maxWidth,
25614
+ extraStyles: "\n display: ".concat(popoverOpen ? "block" : "none", "; \n position: absolute; \n top: ").concat(top, "; \n right: ").concat(right, "; \n bottom: ").concat(bottom, "; \n left: ").concat(left, ";\n height: ").concat(height, ";\n transform: ").concat(transform, ";\n ").concat(popoverExtraStyles, ";\n ")
25615
+ }, /*#__PURE__*/React__default.createElement(Paragraph$1, null, content), /*#__PURE__*/React__default.createElement(Box, {
25616
+ padding: "0",
25617
+ extraStyles: "\n position: absolute;\n content: \"\";\n width: 0;\n height: 0;\n ".concat(arrowBorder(borderColor, arrowDirection, "8px"), ";\n filter: drop-shadow(2px 8px 14px black);\n bottom: ").concat(arrowBottom, ";\n right: ").concat(arrowRight, ";\n top: ").concat(arrowTop, ";\n left: ").concat(arrowLeft, ";\n ")
25618
+ })));
25619
+ };
25620
+
25621
+ var Popover$1 = themeComponent(Popover, "Popover", fallbackValues$j);
25622
+
25623
+ var DisplayCard = function DisplayCard(_ref) {
25624
+ var title = _ref.title,
25625
+ item = _ref.item,
25626
+ buttonText = _ref.buttonText,
25627
+ buttonAction = _ref.buttonAction,
25628
+ url = _ref.url,
25629
+ _ref$link = _ref.link,
25630
+ link = _ref$link === void 0 ? false : _ref$link,
25631
+ helpText = _ref.helpText,
25632
+ _ref$hasPopover = _ref.hasPopover,
25633
+ hasPopover = _ref$hasPopover === void 0 ? false : _ref$hasPopover,
25634
+ _ref$popoverTriggerTe = _ref.popoverTriggerText,
25635
+ popoverTriggerText = _ref$popoverTriggerTe === void 0 ? "" : _ref$popoverTriggerTe,
25636
+ _ref$popoverContent = _ref.popoverContent,
25637
+ popoverContent = _ref$popoverContent === void 0 ? "" : _ref$popoverContent,
25638
+ popoverExtraStyles = _ref.popoverExtraStyles,
25639
+ popoverTextExtraStyles = _ref.popoverTextExtraStyles;
25640
+ return /*#__PURE__*/React__default.createElement(Box, {
25641
+ padding: "0 0 16px"
25642
+ }, /*#__PURE__*/React__default.createElement(Stack, {
25643
+ childGap: "0rem"
25644
+ }, /*#__PURE__*/React__default.createElement(Box, {
25645
+ padding: "0 0 8px 0"
25646
+ }, /*#__PURE__*/React__default.createElement(Cluster, {
25647
+ justify: "space-between",
25648
+ align: "center",
25649
+ overflow: true
25650
+ }, /*#__PURE__*/React__default.createElement(Paragraph$1, {
25651
+ variant: "pL",
25652
+ color: CHARADE_GREY,
25653
+ extraStyles: "letter-spacing: 0.29px"
25654
+ }, title), hasPopover && /*#__PURE__*/React__default.createElement(Popover$1, {
25655
+ triggerText: popoverTriggerText,
25656
+ content: popoverContent,
25657
+ popoverExtraStyles: popoverExtraStyles,
25658
+ popoverTextExtraStyles: popoverTextExtraStyles
25659
+ }))), /*#__PURE__*/React__default.createElement(Box, {
25660
+ padding: "0"
25661
+ }, /*#__PURE__*/React__default.createElement(Box, {
25662
+ padding: "24px",
25663
+ borderSize: "1px",
25664
+ borderRadius: "4px",
25665
+ background: WHITE,
25666
+ boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)"
25667
+ }, /*#__PURE__*/React__default.createElement(Cluster, {
25668
+ justify: "space-between",
25669
+ align: "center"
25670
+ }, /*#__PURE__*/React__default.createElement(Text$1, {
25671
+ color: CHARADE_GREY
25672
+ }, item), link ? /*#__PURE__*/React__default.createElement(ButtonWithLink, {
25673
+ text: buttonText,
25674
+ url: url,
25675
+ variant: "smallGhost",
25676
+ dataQa: buttonText,
25677
+ extraStyles: "min-width: 0;"
25678
+ }) : buttonAction ? /*#__PURE__*/React__default.createElement(ButtonWithAction, {
25679
+ text: buttonText,
25680
+ action: buttonAction,
25681
+ variant: "smallGhost",
25682
+ dataQa: buttonText,
25683
+ extraStyles: "min-width: 0;"
25684
+ }) : helpText ? /*#__PURE__*/React__default.createElement(Text$1, {
25685
+ color: STORM_GREY,
25686
+ extraStyles: "font-style: italic;"
25687
+ }, helpText) : /*#__PURE__*/React__default.createElement(React.Fragment, null))))));
25688
+ };
25689
+
25212
25690
  function _extends$2() {
25213
25691
  _extends$2 = Object.assign || function (target) {
25214
25692
  for (var i = 1; i < arguments.length; i++) {
@@ -25487,344 +25965,6 @@ var FormattedInput = function FormattedInput(_ref) {
25487
25965
  }));
25488
25966
  };
25489
25967
 
25490
- var formatDelimiter = "_";
25491
- var phoneFormats = ["", "_", "__", "(___) ", "(___) _", "(___) __", "(___) ___-", "(___) ___-_", "(___) ___-__", "(___) ___-___", "(___) ___-____"];
25492
- var zipFormats = ["", "_", "__", "___", "____", "_____", "______", "_____-__", "_____-___", "_____-____"];
25493
- var creditCardFormats = ["", "_", "__", "___", "____", "____ _", "____ __", "____ ___", "____ ____", "____ ____ _", "____ ____ __", "____ ____ ___", "____ ____ ____", "____ ____ ____ _", "____ ____ ____ __", "____ ____ ____ ___", "____ ____ ____ ____"];
25494
- var moneyFormats = ["", "$0.0_", "$0.__", "$_.__", "$__.__", "$___.__", "$_,___.__", "$__,___.__", "$___,___.__", "$_,___,___.__", "$__,___,___.__", "$___,___,___.__", "$_,___,___,___.__", "$__,___,___,___.__", "$___,___,___,___.__", "$_,___,___,___,___.__"];
25495
- var expirationDateFormats = ["", "_", "__/", "__/_", "__/__"];
25496
- var zipFormat = createFormat(zipFormats, formatDelimiter);
25497
- var creditCardFormat = createFormat(creditCardFormats, formatDelimiter);
25498
- var expirationDateFormat = createFormat(expirationDateFormats, formatDelimiter);
25499
- var phoneFormat = createFormat(phoneFormats, formatDelimiter);
25500
- var moneyFormat = createFormat(moneyFormats, formatDelimiter);
25501
- var renderCardStatus = function renderCardStatus(expirationStatus, expireDate) {
25502
- var textAlign = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "right";
25503
- var as = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "span";
25504
- var ACTIVE = "ACTIVE";
25505
- var EXPIRING_SOON = "EXPIRING_SOON";
25506
- var EXPIRED = "EXPIRED";
25507
- var textMargin = textAlign === "right" ? "auto" : "0";
25508
-
25509
- switch (expirationStatus) {
25510
- case ACTIVE:
25511
- return /*#__PURE__*/React__default.createElement(Text$1, {
25512
- as: as,
25513
- variant: "pXS",
25514
- color: ASH_GREY,
25515
- extraStyles: "text-align: ".concat(textAlign, "; margin: ").concat(textMargin, ";")
25516
- }, "Exp Date ", expireDate);
25517
-
25518
- case EXPIRING_SOON:
25519
- return /*#__PURE__*/React__default.createElement(Text$1, {
25520
- as: as,
25521
- variant: "pXS",
25522
- color: FIRE_YELLOW,
25523
- extraStyles: "text-align: ".concat(textAlign, "; margin: ").concat(textMargin, ";")
25524
- }, "Expiring Soon ", expireDate);
25525
-
25526
- case EXPIRED:
25527
- return /*#__PURE__*/React__default.createElement(Text$1, {
25528
- as: as,
25529
- variant: "pXS",
25530
- color: ASH_GREY,
25531
- extraStyles: "text-align: ".concat(textAlign, "; margin: ").concat(textMargin, ";")
25532
- }, "Expired");
25533
- }
25534
- };
25535
-
25536
- var formats = /*#__PURE__*/Object.freeze({
25537
- __proto__: null,
25538
- formatDelimiter: formatDelimiter,
25539
- phoneFormats: phoneFormats,
25540
- moneyFormats: moneyFormats,
25541
- expirationDateFormats: expirationDateFormats,
25542
- zipFormat: zipFormat,
25543
- creditCardFormat: creditCardFormat,
25544
- expirationDateFormat: expirationDateFormat,
25545
- phoneFormat: phoneFormat,
25546
- moneyFormat: moneyFormat,
25547
- renderCardStatus: renderCardStatus
25548
- });
25549
-
25550
- var useFocusInvalidInput = function useFocusInvalidInput(hasErrors) {
25551
- var resetHasErrors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
25552
- // Only move focus when "hasErrors" is true
25553
- // "hasErrors" is managed by container page of form
25554
- // typically set to "true" on attempted form submission, if errors exist
25555
- // Reset errors, if provided, resets the error state tracking in order to properly re-run
25556
- React.useEffect(function () {
25557
- if (hasErrors) {
25558
- var _inputsWithErrors$;
25559
-
25560
- var inputsWithErrors = document.querySelectorAll("input[aria-invalid=true]");
25561
- inputsWithErrors === null || inputsWithErrors === void 0 ? void 0 : (_inputsWithErrors$ = inputsWithErrors[0]) === null || _inputsWithErrors$ === void 0 ? void 0 : _inputsWithErrors$.focus();
25562
- }
25563
-
25564
- return function () {
25565
- return resetHasErrors(false);
25566
- };
25567
- });
25568
- };
25569
-
25570
- /*
25571
- Hook that assigns a click event listener to the main document element
25572
- Returns a ref to attach to another element (like an icon/button that triggers a popover)
25573
- If a click event gets captured by the document and the assigned element isn't the target
25574
- hook will run whatever handler is passed (eg a function that closes a popover)
25575
-
25576
- See popover component for implementation
25577
-
25578
- */
25579
-
25580
- var useOutsideClickHook = function useOutsideClickHook(handler) {
25581
- var ref = React.useRef();
25582
- React.useEffect(function () {
25583
- }, [ref]);
25584
- return ref;
25585
- };
25586
-
25587
-
25588
-
25589
- var index$4 = /*#__PURE__*/Object.freeze({
25590
- __proto__: null,
25591
- formats: formats,
25592
- general: general,
25593
- theme: themeUtils,
25594
- useFocusInvalidInput: useFocusInvalidInput,
25595
- useOutsideClick: useOutsideClickHook
25596
- });
25597
-
25598
- var hoverColor$4 = "#116285";
25599
- var activeColor$4 = "#0E506D";
25600
- var popoverTriggerColor = "#15749D";
25601
- var fallbackValues$j = {
25602
- hoverColor: hoverColor$4,
25603
- activeColor: activeColor$4,
25604
- popoverTriggerColor: popoverTriggerColor
25605
- };
25606
-
25607
- var arrowBorder = function arrowBorder(borderColor, direction) {
25608
- var width = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "8px";
25609
- var angle = "".concat(width, " solid transparent");
25610
- var straight = "".concat(width, " solid ").concat(borderColor);
25611
-
25612
- if (direction == "down") {
25613
- return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-top: ").concat(straight);
25614
- } else if (direction == "up") {
25615
- return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-bottom: ").concat(straight);
25616
- } else if (direction == "left") {
25617
- return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-right: ").concat(straight);
25618
- } else if (direction == "right") {
25619
- return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-left: ").concat(straight);
25620
- }
25621
- };
25622
-
25623
- var Popover = function Popover(_ref) {
25624
- var themeValues = _ref.themeValues,
25625
- _ref$triggerText = _ref.triggerText,
25626
- triggerText = _ref$triggerText === void 0 ? "" : _ref$triggerText,
25627
- _ref$content = _ref.content,
25628
- content = _ref$content === void 0 ? "" : _ref$content,
25629
- _ref$hasIcon = _ref.hasIcon,
25630
- hasIcon = _ref$hasIcon === void 0 ? false : _ref$hasIcon,
25631
- Icon = _ref.icon,
25632
- _ref$iconHelpText = _ref.iconHelpText,
25633
- iconHelpText = _ref$iconHelpText === void 0 ? "" : _ref$iconHelpText,
25634
- _ref$popoverID = _ref.popoverID,
25635
- popoverID = _ref$popoverID === void 0 ? 0 : _ref$popoverID,
25636
- _ref$popoverFocus = _ref.popoverFocus,
25637
- popoverFocus = _ref$popoverFocus === void 0 ? false : _ref$popoverFocus,
25638
- extraStyles = _ref.extraStyles,
25639
- textExtraStyles = _ref.textExtraStyles,
25640
- _ref$minWidth = _ref.minWidth,
25641
- minWidth = _ref$minWidth === void 0 ? "250px" : _ref$minWidth,
25642
- _ref$maxWidth = _ref.maxWidth,
25643
- maxWidth = _ref$maxWidth === void 0 ? "300px" : _ref$maxWidth,
25644
- _ref$height = _ref.height,
25645
- height = _ref$height === void 0 ? "auto" : _ref$height,
25646
- position = _ref.position,
25647
- arrowPosition = _ref.arrowPosition,
25648
- _ref$arrowDirection = _ref.arrowDirection,
25649
- arrowDirection = _ref$arrowDirection === void 0 ? "down" : _ref$arrowDirection,
25650
- _ref$transform = _ref.transform,
25651
- transform = _ref$transform === void 0 ? "none" : _ref$transform,
25652
- buttonExtraStyles = _ref.buttonExtraStyles,
25653
- _ref$backgroundColor = _ref.backgroundColor,
25654
- backgroundColor = _ref$backgroundColor === void 0 ? "white" : _ref$backgroundColor,
25655
- _ref$borderColor = _ref.borderColor,
25656
- borderColor = _ref$borderColor === void 0 ? "rgba(255, 255, 255, 0.85)" : _ref$borderColor,
25657
- popoverExtraStyles = _ref.popoverExtraStyles;
25658
- var hoverColor = themeValues.hoverColor,
25659
- activeColor = themeValues.activeColor,
25660
- popoverTriggerColor = themeValues.popoverTriggerColor;
25661
-
25662
- var _ref2 = position !== null && position !== void 0 ? position : {},
25663
- _ref2$top = _ref2.top,
25664
- top = _ref2$top === void 0 ? "-110px" : _ref2$top,
25665
- _ref2$right = _ref2.right,
25666
- right = _ref2$right === void 0 ? "auto" : _ref2$right,
25667
- _ref2$bottom = _ref2.bottom,
25668
- bottom = _ref2$bottom === void 0 ? "auto" : _ref2$bottom,
25669
- _ref2$left = _ref2.left,
25670
- left = _ref2$left === void 0 ? "-225px" : _ref2$left;
25671
-
25672
- var _ref3 = arrowPosition !== null && arrowPosition !== void 0 ? arrowPosition : {},
25673
- _ref3$arrowTop = _ref3.arrowTop,
25674
- arrowTop = _ref3$arrowTop === void 0 ? "auto" : _ref3$arrowTop,
25675
- _ref3$arrowRight = _ref3.arrowRight,
25676
- arrowRight = _ref3$arrowRight === void 0 ? "10px" : _ref3$arrowRight,
25677
- _ref3$arrowBottom = _ref3.arrowBottom,
25678
- arrowBottom = _ref3$arrowBottom === void 0 ? "-8px" : _ref3$arrowBottom,
25679
- _ref3$arrowLeft = _ref3.arrowLeft,
25680
- arrowLeft = _ref3$arrowLeft === void 0 ? "auto" : _ref3$arrowLeft;
25681
-
25682
- var _useState = React.useState(false),
25683
- _useState2 = _slicedToArray(_useState, 2),
25684
- popoverOpen = _useState2[0],
25685
- togglePopover = _useState2[1];
25686
-
25687
- var handleTogglePopover = function handleTogglePopover(popoverState) {
25688
- if (popoverOpen !== popoverState) {
25689
- togglePopover(popoverState);
25690
- }
25691
- };
25692
-
25693
- var triggerRef = useOutsideClickHook();
25694
- return /*#__PURE__*/React__default.createElement(Box, {
25695
- padding: "0",
25696
- extraStyles: "position: relative; ".concat(extraStyles)
25697
- }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
25698
- action: function action() {
25699
- return noop;
25700
- },
25701
- onFocus: function onFocus() {
25702
- handleTogglePopover(true);
25703
- },
25704
- onBlur: function onBlur() {
25705
- handleTogglePopover(false);
25706
- },
25707
- onKeyDown: function onKeyDown(e) {
25708
- if (e.keyCode === 27) {
25709
- handleTogglePopover(false);
25710
- }
25711
- },
25712
- onTouchStart: function onTouchStart() {
25713
- return handleTogglePopover(true);
25714
- },
25715
- onTouchEnd: function onTouchEnd() {
25716
- return handleTogglePopover(false);
25717
- },
25718
- onMouseEnter: function onMouseEnter() {
25719
- return handleTogglePopover(true);
25720
- },
25721
- onMouseLeave: function onMouseLeave() {
25722
- return handleTogglePopover(false);
25723
- },
25724
- contentOverride: true,
25725
- variant: "smallGhost",
25726
- tabIndex: "0",
25727
- id: "btnPopover".concat(popoverID),
25728
- "aria-expanded": popoverOpen,
25729
- "aria-labelledby": "btnPopover".concat(popoverID, "_info Disclosure").concat(popoverID),
25730
- "aria-describedby": "Disclosure".concat(popoverID),
25731
- "aria-controls": "Disclosed".concat(popoverID),
25732
- ref: triggerRef,
25733
- extraStyles: buttonExtraStyles
25734
- }, hasIcon && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Icon, null), /*#__PURE__*/React__default.createElement(Box, {
25735
- padding: "0",
25736
- srOnly: true
25737
- }, /*#__PURE__*/React__default.createElement(Text$1, {
25738
- id: "btnPopover".concat(popoverID, "_info")
25739
- }, iconHelpText))), !hasIcon && /*#__PURE__*/React__default.createElement(Text$1, {
25740
- color: popoverTriggerColor,
25741
- extraStyles: "&:active { color: ".concat(activeColor, "; } &:hover { color: ").concat(hoverColor, " }; ").concat(textExtraStyles)
25742
- }, triggerText)), /*#__PURE__*/React__default.createElement(Box, {
25743
- background: backgroundColor,
25744
- borderRadius: "4px",
25745
- boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)",
25746
- id: "Disclosed".concat(popoverID),
25747
- role: "region",
25748
- "aria-describedby": "Disclosure".concat(popoverID),
25749
- tabIndex: popoverFocus && popoverOpen ? "0" : "-1",
25750
- minWidth: minWidth,
25751
- maxWidth: maxWidth,
25752
- extraStyles: "\n display: ".concat(popoverOpen ? "block" : "none", "; \n position: absolute; \n top: ").concat(top, "; \n right: ").concat(right, "; \n bottom: ").concat(bottom, "; \n left: ").concat(left, ";\n height: ").concat(height, ";\n transform: ").concat(transform, ";\n ").concat(popoverExtraStyles, ";\n ")
25753
- }, /*#__PURE__*/React__default.createElement(Paragraph$1, null, content), /*#__PURE__*/React__default.createElement(Box, {
25754
- padding: "0",
25755
- extraStyles: "\n position: absolute;\n content: \"\";\n width: 0;\n height: 0;\n ".concat(arrowBorder(borderColor, arrowDirection, "8px"), ";\n filter: drop-shadow(2px 8px 14px black);\n bottom: ").concat(arrowBottom, ";\n right: ").concat(arrowRight, ";\n top: ").concat(arrowTop, ";\n left: ").concat(arrowLeft, ";\n ")
25756
- })));
25757
- };
25758
-
25759
- var Popover$1 = themeComponent(Popover, "Popover", fallbackValues$j);
25760
-
25761
- var DisplayCard = function DisplayCard(_ref) {
25762
- var title = _ref.title,
25763
- item = _ref.item,
25764
- buttonText = _ref.buttonText,
25765
- buttonAction = _ref.buttonAction,
25766
- url = _ref.url,
25767
- _ref$link = _ref.link,
25768
- link = _ref$link === void 0 ? false : _ref$link,
25769
- helpText = _ref.helpText,
25770
- _ref$hasPopover = _ref.hasPopover,
25771
- hasPopover = _ref$hasPopover === void 0 ? false : _ref$hasPopover,
25772
- _ref$popoverTriggerTe = _ref.popoverTriggerText,
25773
- popoverTriggerText = _ref$popoverTriggerTe === void 0 ? "" : _ref$popoverTriggerTe,
25774
- _ref$popoverContent = _ref.popoverContent,
25775
- popoverContent = _ref$popoverContent === void 0 ? "" : _ref$popoverContent,
25776
- popoverExtraStyles = _ref.popoverExtraStyles,
25777
- popoverTextExtraStyles = _ref.popoverTextExtraStyles;
25778
- return /*#__PURE__*/React__default.createElement(Box, {
25779
- padding: "0 0 16px"
25780
- }, /*#__PURE__*/React__default.createElement(Stack, {
25781
- childGap: "0rem"
25782
- }, /*#__PURE__*/React__default.createElement(Box, {
25783
- padding: "0 0 8px 0"
25784
- }, /*#__PURE__*/React__default.createElement(Cluster, {
25785
- justify: "space-between",
25786
- align: "center",
25787
- overflow: true
25788
- }, /*#__PURE__*/React__default.createElement(Paragraph$1, {
25789
- variant: "pL",
25790
- color: CHARADE_GREY,
25791
- extraStyles: "letter-spacing: 0.29px"
25792
- }, title), hasPopover && /*#__PURE__*/React__default.createElement(Popover$1, {
25793
- triggerText: popoverTriggerText,
25794
- content: popoverContent,
25795
- popoverExtraStyles: popoverExtraStyles,
25796
- popoverTextExtraStyles: popoverTextExtraStyles
25797
- }))), /*#__PURE__*/React__default.createElement(Box, {
25798
- padding: "0"
25799
- }, /*#__PURE__*/React__default.createElement(Box, {
25800
- padding: "24px",
25801
- borderSize: "1px",
25802
- borderRadius: "4px",
25803
- background: WHITE,
25804
- boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)"
25805
- }, /*#__PURE__*/React__default.createElement(Cluster, {
25806
- justify: "space-between",
25807
- align: "center"
25808
- }, /*#__PURE__*/React__default.createElement(Text$1, {
25809
- color: CHARADE_GREY
25810
- }, item), link ? /*#__PURE__*/React__default.createElement(ButtonWithLink, {
25811
- text: buttonText,
25812
- url: url,
25813
- variant: "smallGhost",
25814
- dataQa: buttonText,
25815
- extraStyles: "min-width: 0;"
25816
- }) : buttonAction ? /*#__PURE__*/React__default.createElement(ButtonWithAction, {
25817
- text: buttonText,
25818
- action: buttonAction,
25819
- variant: "smallGhost",
25820
- dataQa: buttonText,
25821
- extraStyles: "min-width: 0;"
25822
- }) : helpText ? /*#__PURE__*/React__default.createElement(Text$1, {
25823
- color: STORM_GREY,
25824
- extraStyles: "font-style: italic;"
25825
- }, helpText) : /*#__PURE__*/React__default.createElement(React.Fragment, null))))));
25826
- };
25827
-
25828
25968
  var linkColor$2 = {
25829
25969
  "default": "".concat(MATISSE_BLUE),
25830
25970
  disabled: "".concat(MATISSE_BLUE)
@@ -25890,7 +26030,7 @@ var fallbackValues$k = {
25890
26030
  };
25891
26031
 
25892
26032
  var _excluded$p = ["showErrors", "themeValues"],
25893
- _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa"];
26033
+ _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired"];
25894
26034
  var InputField = styled__default.input.withConfig({
25895
26035
  displayName: "FormInput__InputField",
25896
26036
  componentId: "sc-l094r1-0"
@@ -25977,6 +26117,8 @@ var FormInput = function FormInput(_ref15) {
25977
26117
  removeFromValue = _ref15.removeFromValue,
25978
26118
  _ref15$dataQa = _ref15.dataQa,
25979
26119
  dataQa = _ref15$dataQa === void 0 ? null : _ref15$dataQa,
26120
+ _ref15$isRequired = _ref15.isRequired,
26121
+ isRequired = _ref15$isRequired === void 0 ? false : _ref15$isRequired,
25980
26122
  props = _objectWithoutProperties(_ref15, _excluded2);
25981
26123
 
25982
26124
  var _useState = React.useState(false),
@@ -26063,7 +26205,8 @@ var FormInput = function FormInput(_ref15) {
26063
26205
  $customHeight: customHeight,
26064
26206
  $extraStyles: extraStyles,
26065
26207
  "data-qa": dataQa || labelTextWhenNoError,
26066
- autoComplete: autocompleteValue
26208
+ autoComplete: autocompleteValue,
26209
+ required: isRequired
26067
26210
  }, props)) : /*#__PURE__*/React__default.createElement(InputField, _extends({
26068
26211
  "aria-labelledby": createIdFromString(labelTextWhenNoError),
26069
26212
  "aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
@@ -26082,7 +26225,8 @@ var FormInput = function FormInput(_ref15) {
26082
26225
  $customHeight: customHeight,
26083
26226
  $extraStyles: extraStyles,
26084
26227
  "data-qa": dataQa || labelTextWhenNoError,
26085
- autoComplete: autocompleteValue
26228
+ autoComplete: autocompleteValue,
26229
+ required: isRequired
26086
26230
  }, props))), /*#__PURE__*/React__default.createElement(Stack, {
26087
26231
  direction: "row",
26088
26232
  justify: "space-between",
@@ -26291,6 +26435,66 @@ var fallbackValues$n = {
26291
26435
  autopayTextColor: autopayTextColor$1
26292
26436
  };
26293
26437
 
26438
+ var formatDelimiter = "_";
26439
+ var phoneFormats = ["", "_", "__", "(___) ", "(___) _", "(___) __", "(___) ___-", "(___) ___-_", "(___) ___-__", "(___) ___-___", "(___) ___-____"];
26440
+ var zipFormats = ["", "_", "__", "___", "____", "_____", "______", "_____-__", "_____-___", "_____-____"];
26441
+ var creditCardFormats = ["", "_", "__", "___", "____", "____ _", "____ __", "____ ___", "____ ____", "____ ____ _", "____ ____ __", "____ ____ ___", "____ ____ ____", "____ ____ ____ _", "____ ____ ____ __", "____ ____ ____ ___", "____ ____ ____ ____"];
26442
+ var moneyFormats = ["", "$0.0_", "$0.__", "$_.__", "$__.__", "$___.__", "$_,___.__", "$__,___.__", "$___,___.__", "$_,___,___.__", "$__,___,___.__", "$___,___,___.__", "$_,___,___,___.__", "$__,___,___,___.__", "$___,___,___,___.__", "$_,___,___,___,___.__"];
26443
+ var expirationDateFormats = ["", "_", "__/", "__/_", "__/__"];
26444
+ var zipFormat = createFormat(zipFormats, formatDelimiter);
26445
+ var creditCardFormat = createFormat(creditCardFormats, formatDelimiter);
26446
+ var expirationDateFormat = createFormat(expirationDateFormats, formatDelimiter);
26447
+ var phoneFormat = createFormat(phoneFormats, formatDelimiter);
26448
+ var moneyFormat = createFormat(moneyFormats, formatDelimiter);
26449
+ var renderCardStatus = function renderCardStatus(expirationStatus, expireDate) {
26450
+ var textAlign = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "right";
26451
+ var as = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "span";
26452
+ var ACTIVE = "ACTIVE";
26453
+ var EXPIRING_SOON = "EXPIRING_SOON";
26454
+ var EXPIRED = "EXPIRED";
26455
+ var textMargin = textAlign === "right" ? "auto" : "0";
26456
+
26457
+ switch (expirationStatus) {
26458
+ case ACTIVE:
26459
+ return /*#__PURE__*/React__default.createElement(Text$1, {
26460
+ as: as,
26461
+ variant: "pXS",
26462
+ color: ASH_GREY,
26463
+ extraStyles: "text-align: ".concat(textAlign, "; margin: ").concat(textMargin, ";")
26464
+ }, "Exp Date ", expireDate);
26465
+
26466
+ case EXPIRING_SOON:
26467
+ return /*#__PURE__*/React__default.createElement(Text$1, {
26468
+ as: as,
26469
+ variant: "pXS",
26470
+ color: FIRE_YELLOW,
26471
+ extraStyles: "text-align: ".concat(textAlign, "; margin: ").concat(textMargin, ";")
26472
+ }, "Expiring Soon ", expireDate);
26473
+
26474
+ case EXPIRED:
26475
+ return /*#__PURE__*/React__default.createElement(Text$1, {
26476
+ as: as,
26477
+ variant: "pXS",
26478
+ color: ASH_GREY,
26479
+ extraStyles: "text-align: ".concat(textAlign, "; margin: ").concat(textMargin, ";")
26480
+ }, "Expired");
26481
+ }
26482
+ };
26483
+
26484
+ var formats = /*#__PURE__*/Object.freeze({
26485
+ __proto__: null,
26486
+ formatDelimiter: formatDelimiter,
26487
+ phoneFormats: phoneFormats,
26488
+ moneyFormats: moneyFormats,
26489
+ expirationDateFormats: expirationDateFormats,
26490
+ zipFormat: zipFormat,
26491
+ creditCardFormat: creditCardFormat,
26492
+ expirationDateFormat: expirationDateFormat,
26493
+ phoneFormat: phoneFormat,
26494
+ moneyFormat: moneyFormat,
26495
+ renderCardStatus: renderCardStatus
26496
+ });
26497
+
26294
26498
  var CreditCardWrapper = styled__default.div.withConfig({
26295
26499
  displayName: "FormattedCreditCard__CreditCardWrapper",
26296
26500
  componentId: "sc-s0ta5l-0"
@@ -27264,7 +27468,9 @@ var RadioButton$1 = function RadioButton(_ref2) {
27264
27468
  _ref2$ariaLabelledBy = _ref2.ariaLabelledBy,
27265
27469
  ariaLabelledBy = _ref2$ariaLabelledBy === void 0 ? "" : _ref2$ariaLabelledBy,
27266
27470
  _ref2$ariaLabel = _ref2.ariaLabel,
27267
- ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel;
27471
+ ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel,
27472
+ _ref2$isRequired = _ref2.isRequired,
27473
+ isRequired = _ref2$isRequired === void 0 ? false : _ref2$isRequired;
27268
27474
  var buttonBorder = {
27269
27475
  onFocused: {
27270
27476
  borderColor: themeValues.activeColor,
@@ -27326,7 +27532,8 @@ var RadioButton$1 = function RadioButton(_ref2) {
27326
27532
  disabled: disabled,
27327
27533
  onClick: toggleRadio,
27328
27534
  "aria-describedby": ariaDescribedBy,
27329
- tabIndex: "-1"
27535
+ tabIndex: "-1",
27536
+ required: isRequired
27330
27537
  }, extraProps)), /*#__PURE__*/React__default.createElement(Motion, {
27331
27538
  borderWidth: "1px",
27332
27539
  borderStyle: "solid",
@@ -38016,7 +38223,9 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
38016
38223
  field = _ref.field,
38017
38224
  fieldActions = _ref.fieldActions,
38018
38225
  showErrors = _ref.showErrors,
38019
- countryCode = _ref.countryCode;
38226
+ countryCode = _ref.countryCode,
38227
+ _ref$isRequired = _ref.isRequired,
38228
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
38020
38229
  var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
38021
38230
  var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
38022
38231
  return /*#__PURE__*/React__default.createElement(FormSelect$1, {
@@ -38026,7 +38235,8 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
38026
38235
  labelTextWhenNoError: labelTextWhenNoError,
38027
38236
  errorMessages: errorMessages,
38028
38237
  showErrors: showErrors,
38029
- autocompleteValue: "address-level1"
38238
+ autocompleteValue: "address-level1",
38239
+ isRequired: isRequired
38030
38240
  });
38031
38241
  };
38032
38242
 
@@ -39365,7 +39575,8 @@ var AddressForm = function AddressForm(_ref) {
39365
39575
  }
39366
39576
  },
39367
39577
  showErrors: showErrors,
39368
- dataQa: "Country"
39578
+ dataQa: "Country",
39579
+ isRequired: true
39369
39580
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
39370
39581
  labelTextWhenNoError: "Address",
39371
39582
  errorMessages: street1ErrorMessages,
@@ -39376,7 +39587,8 @@ var AddressForm = function AddressForm(_ref) {
39376
39587
  return e.key === "Enter" && handleSubmit(e);
39377
39588
  },
39378
39589
  autocompleteValue: "address-line1",
39379
- dataQa: "Address"
39590
+ dataQa: "Address",
39591
+ isRequired: true
39380
39592
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
39381
39593
  labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
39382
39594
  field: fields.street2,
@@ -39397,7 +39609,8 @@ var AddressForm = function AddressForm(_ref) {
39397
39609
  return e.key === "Enter" && handleSubmit(e);
39398
39610
  },
39399
39611
  autocompleteValue: "address-level2",
39400
- dataQa: "City"
39612
+ dataQa: "City",
39613
+ isRequired: true
39401
39614
  }), /*#__PURE__*/React__default.createElement(FormStateDropdown, {
39402
39615
  labelTextWhenNoError: isUS ? "State" : "State or Province",
39403
39616
  errorMessages: stateProvinceErrorMessages,
@@ -39408,7 +39621,8 @@ var AddressForm = function AddressForm(_ref) {
39408
39621
  onKeyDown: function onKeyDown(e) {
39409
39622
  return e.key === "Enter" && handleSubmit(e);
39410
39623
  },
39411
- dataQa: "State or Province"
39624
+ dataQa: "State or Province",
39625
+ isRequired: true
39412
39626
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
39413
39627
  isNum: isUS,
39414
39628
  formatter: isUS ? zipFormat : null,
@@ -39421,7 +39635,8 @@ var AddressForm = function AddressForm(_ref) {
39421
39635
  return e.key === "Enter" && handleSubmit(e);
39422
39636
  },
39423
39637
  autocompleteValue: "postal-code",
39424
- dataQa: "Zip code"
39638
+ dataQa: "Zip code",
39639
+ isRequired: true
39425
39640
  }), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
39426
39641
  name: "address checkbox",
39427
39642
  title: "Save address to wallet",
@@ -40324,7 +40539,9 @@ var EmailForm = function EmailForm(_ref) {
40324
40539
  handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
40325
40540
  showWalletCheckbox = _ref.showWalletCheckbox,
40326
40541
  saveToWallet = _ref.saveToWallet,
40327
- walletCheckboxMarked = _ref.walletCheckboxMarked;
40542
+ walletCheckboxMarked = _ref.walletCheckboxMarked,
40543
+ _ref$isRequired = _ref.isRequired,
40544
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
40328
40545
 
40329
40546
  if (clearOnDismount) {
40330
40547
  React.useEffect(function () {
@@ -40353,7 +40570,8 @@ var EmailForm = function EmailForm(_ref) {
40353
40570
  },
40354
40571
  isEmail: true,
40355
40572
  autocompleteValue: "email",
40356
- dataQa: "Email address"
40573
+ dataQa: "Email address",
40574
+ isRequired: isRequired
40357
40575
  }), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
40358
40576
  name: "email checkbox",
40359
40577
  title: "Save email address to wallet",
@@ -45650,7 +45868,8 @@ var Modal$1 = function Modal(_ref) {
45650
45868
  alignItems: "center"
45651
45869
  },
45652
45870
  dialogStyle: {
45653
- width: customWidth || "615px"
45871
+ width: customWidth || "615px",
45872
+ overflow: "auto"
45654
45873
  },
45655
45874
  underlayClickExits: underlayClickExits
45656
45875
  }, /*#__PURE__*/React__default.createElement(Box, {
@@ -47720,42 +47939,7 @@ var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
47720
47939
  })))));
47721
47940
  };
47722
47941
 
47723
- /*
47724
- Hook that takes an ID selector for an element on the screen
47725
- And optionally values for top position, left position, smooth behavior
47726
- Finds element on screen and scrolls it to the provided coordinates
47727
-
47728
- (string, number, number, string, number) => undefined;
47729
- */
47730
- var useScrollTo = function useScrollTo(id) {
47731
- var top = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
47732
- var left = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
47733
- var behavior = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "auto";
47734
- var delay = arguments.length > 4 ? arguments[4] : undefined;
47735
- var scrollItem;
47736
-
47737
- if (delay) {
47738
- setTimeout(function () {
47739
- var _scrollItem;
47740
-
47741
- scrollItem = document.getElementById(id);
47742
- (_scrollItem = scrollItem) === null || _scrollItem === void 0 ? void 0 : _scrollItem.scrollTo({
47743
- top: top,
47744
- left: left,
47745
- behavior: behavior
47746
- });
47747
- }, delay);
47748
- } else {
47749
- var _scrollItem2;
47750
-
47751
- scrollItem = document.getElementById(id);
47752
- (_scrollItem2 = scrollItem) === null || _scrollItem2 === void 0 ? void 0 : _scrollItem2.scrollTo({
47753
- top: top,
47754
- left: left,
47755
- behavior: behavior
47756
- });
47757
- }
47758
- };
47942
+ var TermsAndConditionsTitleDivId = "terms-and-conditions-title";
47759
47943
 
47760
47944
  var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
47761
47945
  var _ref$showCheckbox = _ref.showCheckbox,
@@ -47819,7 +48003,8 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
47819
48003
  checked: isChecked,
47820
48004
  onChange: onCheck,
47821
48005
  checkboxMargin: checkboxMargin,
47822
- extraStyles: "align-self: flex-start;"
48006
+ extraStyles: "align-self: flex-start;",
48007
+ labelledById: TermsAndConditionsTitleDivId
47823
48008
  }), /*#__PURE__*/React__default.createElement(Stack, {
47824
48009
  childGap: "0.25rem",
47825
48010
  fullHeight: true
@@ -47827,7 +48012,8 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
47827
48012
  justify: "flex-start",
47828
48013
  align: "center",
47829
48014
  nowrap: true,
47830
- extraStyles: "padding-right: 2px; > div > * { margin: 4px 2px; };"
48015
+ extraStyles: "padding-right: 2px; > div > * { margin: 4px 2px; };",
48016
+ id: TermsAndConditionsTitleDivId
47831
48017
  }, description && /*#__PURE__*/React__default.createElement(Text$1, {
47832
48018
  color: CHARADE_GREY
47833
48019
  }, description), terms && /*#__PURE__*/React__default.createElement(TermsAndConditionsModal$1, {
@@ -47925,7 +48111,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47925
48111
  onKeyDown: function onKeyDown(e) {
47926
48112
  return e.key === "Enter" && handleSubmit(e);
47927
48113
  },
47928
- autocompleteValue: "name"
48114
+ autocompleteValue: "name",
48115
+ isRequired: true
47929
48116
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
47930
48117
  labelTextWhenNoError: "Routing number",
47931
48118
  dataQa: "Routing number",
@@ -47947,7 +48134,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47947
48134
  },
47948
48135
  onKeyDown: function onKeyDown(e) {
47949
48136
  return e.key === "Enter" && handleSubmit(e);
47950
- }
48137
+ },
48138
+ isRequired: true
47951
48139
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
47952
48140
  labelTextWhenNoError: "Confirm routing number",
47953
48141
  dataQa: "Confirm routing number",
@@ -47958,7 +48146,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47958
48146
  onKeyDown: function onKeyDown(e) {
47959
48147
  return e.key === "Enter" && handleSubmit(e);
47960
48148
  },
47961
- isNum: true
48149
+ isNum: true,
48150
+ isRequired: true
47962
48151
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
47963
48152
  labelTextWhenNoError: "Account number",
47964
48153
  dataQa: "Account number",
@@ -47980,7 +48169,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47980
48169
  },
47981
48170
  onKeyDown: function onKeyDown(e) {
47982
48171
  return e.key === "Enter" && handleSubmit(e);
47983
- }
48172
+ },
48173
+ isRequired: true
47984
48174
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
47985
48175
  labelTextWhenNoError: "Confirm account number",
47986
48176
  dataQa: "Confirm account number",
@@ -47991,6 +48181,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47991
48181
  onKeyDown: function onKeyDown(e) {
47992
48182
  return e.key === "Enter" && handleSubmit(e);
47993
48183
  },
48184
+ isRequired: true,
47994
48185
  isNum: true
47995
48186
  }), allowBankAccountType && /*#__PURE__*/React__default.createElement(FormSelect$1, {
47996
48187
  labelTextWhenNoError: "Account type",
@@ -48008,7 +48199,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48008
48199
  fieldActions: actions.fields.accountType,
48009
48200
  showErrors: showErrors,
48010
48201
  errorMessages: accountTypeErrors,
48011
- field: fields.accountType
48202
+ field: fields.accountType,
48203
+ isRequired: true
48012
48204
  }), !hideDefaultPayment && /*#__PURE__*/React__default.createElement(Checkbox$1, {
48013
48205
  title: "Save as Default Payment Method",
48014
48206
  dataQa: "default-payment-ach",
@@ -48146,7 +48338,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48146
48338
  onKeyDown: function onKeyDown(e) {
48147
48339
  return e.key === "Enter" && handleSubmit(e);
48148
48340
  },
48149
- autocompleteValue: "cc-name"
48341
+ autocompleteValue: "cc-name",
48342
+ isRequired: true
48150
48343
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
48151
48344
  labelTextWhenNoError: "Credit card number",
48152
48345
  dataQa: "Credit card number",
@@ -48159,7 +48352,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48159
48352
  return e.key === "Enter" && handleSubmit(e);
48160
48353
  },
48161
48354
  isNum: true,
48162
- autocompleteValue: "cc-number"
48355
+ autocompleteValue: "cc-number",
48356
+ isRequired: true
48163
48357
  }), /*#__PURE__*/React__default.createElement(FormInputRow, {
48164
48358
  breakpoint: isMobile ? "1000rem" : "21rem",
48165
48359
  childGap: isMobile ? "0rem" : "1rem"
@@ -48177,7 +48371,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48177
48371
  isNum: true,
48178
48372
  removeFromValue: /\// // removes "/" from browser autofill
48179
48373
  ,
48180
- autocompleteValue: "cc-exp"
48374
+ autocompleteValue: "cc-exp",
48375
+ isRequired: true
48181
48376
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
48182
48377
  labelTextWhenNoError: "CVV",
48183
48378
  dataQa: "CVV",
@@ -48190,7 +48385,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48190
48385
  onKeyDown: function onKeyDown(e) {
48191
48386
  return e.key === "Enter" && handleSubmit(e);
48192
48387
  },
48193
- autocompleteValue: "cc-csc"
48388
+ autocompleteValue: "cc-csc",
48389
+ isRequired: true
48194
48390
  })), !hideZipCode && /*#__PURE__*/React__default.createElement(Box, {
48195
48391
  padding: isMobile ? "0" : "0 0.5rem 0 0",
48196
48392
  width: isMobile ? "100%" : "50%"
@@ -48206,7 +48402,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48206
48402
  onKeyDown: function onKeyDown(e) {
48207
48403
  return e.key === "Enter" && handleSubmit(e);
48208
48404
  },
48209
- autocompleteValue: "billing postal-code"
48405
+ autocompleteValue: "billing postal-code",
48406
+ isRequired: true
48210
48407
  })), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
48211
48408
  childGap: "4px",
48212
48409
  align: "center"
@@ -48399,7 +48596,9 @@ var PhoneForm = function PhoneForm(_ref) {
48399
48596
  handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
48400
48597
  showWalletCheckbox = _ref.showWalletCheckbox,
48401
48598
  saveToWallet = _ref.saveToWallet,
48402
- walletCheckboxMarked = _ref.walletCheckboxMarked;
48599
+ walletCheckboxMarked = _ref.walletCheckboxMarked,
48600
+ _ref$isRequired = _ref.isRequired,
48601
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
48403
48602
 
48404
48603
  if (clearOnDismount) {
48405
48604
  React.useEffect(function () {
@@ -48426,7 +48625,8 @@ var PhoneForm = function PhoneForm(_ref) {
48426
48625
  },
48427
48626
  autocompleteValue: "tel-national",
48428
48627
  dataQa: "Phone number",
48429
- isNum: true
48628
+ isNum: true,
48629
+ isRequired: isRequired
48430
48630
  }), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
48431
48631
  name: "phone checkbox",
48432
48632
  title: "Save phone number to wallet",
@@ -48560,8 +48760,8 @@ var RadioSection = function RadioSection(_ref) {
48560
48760
  _ref$containerStyles = _ref.containerStyles,
48561
48761
  containerStyles = _ref$containerStyles === void 0 ? "" : _ref$containerStyles,
48562
48762
  ariaDescribedBy = _ref.ariaDescribedBy,
48563
- _ref$ariaLabel = _ref.ariaLabel,
48564
- ariaLabel = _ref$ariaLabel === void 0 ? "Please select an option." : _ref$ariaLabel;
48763
+ _ref$isSectionRequire = _ref.isSectionRequired,
48764
+ isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire;
48565
48765
 
48566
48766
  var handleKeyDown = function handleKeyDown(id, e) {
48567
48767
  if ((e === null || e === void 0 ? void 0 : e.keyCode) === 13 || (e === null || e === void 0 ? void 0 : e.keyCode) === 32) {
@@ -48617,8 +48817,8 @@ var RadioSection = function RadioSection(_ref) {
48617
48817
  extraStyles: containerStyles
48618
48818
  }, /*#__PURE__*/React__default.createElement(Stack, {
48619
48819
  childGap: "0",
48620
- role: "radiogroup",
48621
- "aria-label": ariaLabel
48820
+ "aria-role": "radiogroup",
48821
+ "aria-required": isSectionRequired
48622
48822
  }, sections.filter(function (section) {
48623
48823
  return !section.hidden;
48624
48824
  }).map(function (section) {
@@ -48640,7 +48840,8 @@ var RadioSection = function RadioSection(_ref) {
48640
48840
  extraStyles: borderStyles,
48641
48841
  role: "radio",
48642
48842
  "aria-checked": openSection === section.id,
48643
- "aria-disabled": section.disabled
48843
+ "aria-disabled": section.disabled,
48844
+ "aria-required": section === null || section === void 0 ? void 0 : section.required
48644
48845
  }, /*#__PURE__*/React__default.createElement(Stack, {
48645
48846
  childGap: "0"
48646
48847
  }, /*#__PURE__*/React__default.createElement(Box, {
@@ -48678,7 +48879,8 @@ var RadioSection = function RadioSection(_ref) {
48678
48879
  toggleRadio: section.disabled ? noop : function () {
48679
48880
  return toggleOpenSection(section.id);
48680
48881
  },
48681
- tabIndex: "-1"
48882
+ tabIndex: "-1",
48883
+ isRequired: section === null || section === void 0 ? void 0 : section.required
48682
48884
  })), section.titleIcon && /*#__PURE__*/React__default.createElement(Cluster, {
48683
48885
  align: "center"
48684
48886
  }, section.titleIcon), /*#__PURE__*/React__default.createElement(Box, {
@@ -49197,6 +49399,51 @@ var Timeout = function Timeout(_ref) {
49197
49399
 
49198
49400
  var Timeout$1 = withWindowSize(Timeout);
49199
49401
 
49402
+ var VARIANTS = {
49403
+ SUCCESS: "success",
49404
+ ERROR: "error"
49405
+ };
49406
+
49407
+ var ToastNotification = function ToastNotification(_ref) {
49408
+ var _ref$variant = _ref.variant,
49409
+ variant = _ref$variant === void 0 ? VARIANTS.SUCCESS : _ref$variant,
49410
+ _ref$message = _ref.message,
49411
+ message = _ref$message === void 0 ? "" : _ref$message,
49412
+ toastOpen = _ref.toastOpen,
49413
+ closeToastNotification = _ref.closeToastNotification,
49414
+ extraStyles = _ref.extraStyles,
49415
+ _ref$minWidth = _ref.minWidth,
49416
+ minWidth = _ref$minWidth === void 0 ? "112px" : _ref$minWidth,
49417
+ _ref$maxWidth = _ref.maxWidth,
49418
+ maxWidth = _ref$maxWidth === void 0 ? "350px" : _ref$maxWidth,
49419
+ _ref$height = _ref.height,
49420
+ height = _ref$height === void 0 ? "56px" : _ref$height,
49421
+ _ref$childGap = _ref.childGap,
49422
+ childGap = _ref$childGap === void 0 ? "1rem" : _ref$childGap,
49423
+ backgroundColor = _ref.backgroundColor;
49424
+ return /*#__PURE__*/React__default.createElement(Box, {
49425
+ onClick: closeToastNotification,
49426
+ background: backgroundColor ? backgroundColor : variant === VARIANTS.SUCCESS ? HINT_GREEN : variant === VARIANTS.ERROR ? ERROR_BACKGROUND_COLOR : WHITE,
49427
+ minWidth: minWidth,
49428
+ minHeight: height && parseInt(height) < 100 ? height : "100px",
49429
+ height: height ? height : "auto",
49430
+ tabIndex: toastOpen ? "-1" : "0",
49431
+ padding: "0rem 1rem",
49432
+ borderRadius: "4px",
49433
+ boxShadow: generateShadows().standard.base,
49434
+ extraStyles: "\n display: ".concat(toastOpen ? "block" : "none", ";\n position: fixed; bottom: 4rem; left: 4rem;\n ").concat(extraStyles, ";\n cursor: pointer;\n ")
49435
+ }, /*#__PURE__*/React__default.createElement(Cluster, {
49436
+ align: "center",
49437
+ childGap: childGap
49438
+ }, variant === VARIANTS.SUCCESS && /*#__PURE__*/React__default.createElement(SuccessfulIconMedium, null), variant === VARIANTS.ERROR && /*#__PURE__*/React__default.createElement(ErroredIcon, null), /*#__PURE__*/React__default.createElement(Box, {
49439
+ padding: "1rem 0",
49440
+ maxWidth: maxWidth
49441
+ }, /*#__PURE__*/React__default.createElement(Paragraph$1, {
49442
+ weight: FONT_WEIGHT_SEMIBOLD,
49443
+ extraStyles: "word-break: break-word;"
49444
+ }, message)), /*#__PURE__*/React__default.createElement(IconQuitLarge, null)));
49445
+ };
49446
+
49200
49447
  var fontWeight$9 = "600";
49201
49448
  var fontColor$1 = WHITE;
49202
49449
  var textAlign$1 = "left";
@@ -49569,6 +49816,38 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
49569
49816
 
49570
49817
  var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$U));
49571
49818
 
49819
+ var useFocusInvalidInput = function useFocusInvalidInput(hasErrors) {
49820
+ var resetHasErrors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
49821
+ // Only move focus when "hasErrors" is true
49822
+ // "hasErrors" is managed by container page of form
49823
+ // typically set to "true" on attempted form submission, if errors exist
49824
+ // Reset errors, if provided, resets the error state tracking in order to properly re-run
49825
+ React.useEffect(function () {
49826
+ if (hasErrors) {
49827
+ var _inputsWithErrors$;
49828
+
49829
+ var inputsWithErrors = document.querySelectorAll("input[aria-invalid=true]");
49830
+ inputsWithErrors === null || inputsWithErrors === void 0 ? void 0 : (_inputsWithErrors$ = inputsWithErrors[0]) === null || _inputsWithErrors$ === void 0 ? void 0 : _inputsWithErrors$.focus();
49831
+ }
49832
+
49833
+ return function () {
49834
+ return resetHasErrors(false);
49835
+ };
49836
+ });
49837
+ };
49838
+
49839
+
49840
+
49841
+ var index$6 = /*#__PURE__*/Object.freeze({
49842
+ __proto__: null,
49843
+ formats: formats,
49844
+ general: general,
49845
+ theme: themeUtils,
49846
+ useFocusInvalidInput: useFocusInvalidInput,
49847
+ useOutsideClick: useOutsideClickHook,
49848
+ useToastNotification: useToastNotification
49849
+ });
49850
+
49572
49851
  exports.AccountNumberImage = AccountNumberImage;
49573
49852
  exports.AccountsAddIcon = AccountsAddIcon$1;
49574
49853
  exports.AccountsIcon = AccountsIcon$1;
@@ -49666,6 +49945,7 @@ exports.ImageBox = ImageBox;
49666
49945
  exports.Imposter = Imposter;
49667
49946
  exports.InternalLink = InternalLink;
49668
49947
  exports.Jumbo = Jumbo$1;
49948
+ exports.KebabMenuIcon = KebabMenuIcon;
49669
49949
  exports.KioskImage = KioskImage;
49670
49950
  exports.LabeledAmount = LabeledAmount$1;
49671
49951
  exports.LineItem = LineItem$1;
@@ -49762,6 +50042,7 @@ exports.Text = Text$1;
49762
50042
  exports.Timeout = Timeout$1;
49763
50043
  exports.TimeoutImage = TimeoutImage;
49764
50044
  exports.Title = Title$1;
50045
+ exports.ToastNotification = ToastNotification;
49765
50046
  exports.ToggleSwitch = ToggleSwitch$1;
49766
50047
  exports.TrashIcon = TrashIcon$1;
49767
50048
  exports.TypeaheadInput = TypeaheadInput;
@@ -49779,6 +50060,7 @@ exports.cardRegistry = cardRegistry;
49779
50060
  exports.constants = index$5;
49780
50061
  exports.createPartialAmountFormState = createPartialAmountFormState;
49781
50062
  exports.createPartialAmountFormValidators = createPartialAmountFormValidators;
49782
- exports.util = index$4;
50063
+ exports.hooks = index$4;
50064
+ exports.util = index$6;
49783
50065
  exports.withWindowSize = withWindowSize;
49784
50066
  //# sourceMappingURL=index.cjs.js.map