@thecb/components 9.3.0-beta.2 → 9.3.2-beta.1

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 (49) hide show
  1. package/dist/index.cjs.js +753 -631
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.d.ts +169 -60
  4. package/dist/index.esm.js +751 -631
  5. package/dist/index.esm.js.map +1 -1
  6. package/package.json +1 -1
  7. package/src/components/atoms/checkbox/Checkbox.js +1 -3
  8. package/src/components/atoms/checkbox/Checkbox.stories.js +2 -3
  9. package/src/components/atoms/country-dropdown/CountryDropdown.js +1 -3
  10. package/src/components/atoms/country-dropdown/CountryDropdown.stories.js +0 -1
  11. package/src/components/atoms/dropdown/Dropdown.js +73 -43
  12. package/src/components/atoms/dropdown/Dropdown.theme.js +8 -2
  13. package/src/components/atoms/form-layouts/FormInput.js +0 -4
  14. package/src/components/atoms/form-select/FormSelect.js +25 -36
  15. package/src/components/atoms/form-select/FormSelect.stories.js +2 -2
  16. package/src/components/atoms/state-province-dropdown/StateProvinceDropdown.js +1 -4
  17. package/src/components/atoms/state-province-dropdown/StateProvinceDropdown.stories.js +0 -1
  18. package/src/components/molecules/address-form/AddressForm.js +0 -6
  19. package/src/components/molecules/index.d.ts +1 -0
  20. package/src/components/molecules/index.js +1 -0
  21. package/src/components/molecules/payment-form-ach/PaymentFormACH.js +0 -7
  22. package/src/components/molecules/payment-form-card/PaymentFormCard.js +0 -7
  23. package/src/components/molecules/popover/Popover.js +1 -1
  24. package/src/components/molecules/radio-section/RadioSection.js +1 -2
  25. package/src/components/molecules/radio-section/RadioSection.stories.js +2 -3
  26. package/src/components/molecules/radio-section/radio-button/RadioButton.js +1 -4
  27. package/src/components/molecules/terms-and-conditions/TermsAndConditionsControlV1.js +0 -1
  28. package/src/components/molecules/terms-and-conditions/TermsAndConditionsControlV2.js +1 -2
  29. package/src/components/molecules/toast-notification/ToastNotification.js +75 -0
  30. package/src/components/molecules/toast-notification/ToastNotification.stories.js +67 -0
  31. package/src/components/molecules/toast-notification/index.d.ts +18 -0
  32. package/src/components/molecules/toast-notification/index.js +3 -0
  33. package/src/constants/colors.d.ts +1 -0
  34. package/src/constants/colors.js +5 -1
  35. package/src/hooks/index.js +3 -0
  36. package/src/hooks/use-toast-notification/index.d.ts +23 -0
  37. package/src/hooks/use-toast-notification/index.js +38 -0
  38. package/src/index.d.ts +2 -1
  39. package/src/index.js +2 -1
  40. package/src/types/common/ToastVariants.ts +6 -0
  41. package/src/types/common/index.ts +1 -0
  42. package/src/util/index.js +10 -2
  43. package/dist/src/apps/checkout/pages/payment/sub-pages/payment-amount/PaymentAmount_old.js +0 -49322
  44. package/src/.DS_Store +0 -0
  45. package/src/components/.DS_Store +0 -0
  46. package/src/components/atoms/.DS_Store +0 -0
  47. package/src/components/atoms/icons/.DS_Store +0 -0
  48. /package/src/{util/useOutsideClick.js → hooks/use-outside-click/index.js} +0 -0
  49. /package/src/{util/useScrollTo.js → hooks/use-scroll-to/index.js} +0 -0
package/dist/index.esm.js CHANGED
@@ -5011,6 +5011,7 @@ var INFO_BLUE = "#E4F4FD";
5011
5011
  var CORNFLOWER_BLUE = "#EBEFFB";
5012
5012
  var HOVER_LIGHT_BLUE = "#EFFAFF";
5013
5013
  var MATISSE_BLUE = "#15749D";
5014
+ var MATISSE_BLUE_DARK = "#105C7D";
5014
5015
  var ROYAL_BLUE = "#3181E3";
5015
5016
  var ROYAL_BLUE_VIVID = "#3B5BDB";
5016
5017
  var ASTRAL_BLUE = "#3176AA";
@@ -5043,7 +5044,8 @@ var FANTASY_RED = "#FCF4F4";
5043
5044
  var COSMOS_RED = "#FFD0D3";
5044
5045
  var BLUSH_RED = "#FFF0F5"; // Second level color constants
5045
5046
 
5046
- var ERROR_COLOR = RAZZMATAZZ_RED; // These colors are sequestered so that the alert component can reference them // by type of alert
5047
+ var ERROR_COLOR = RAZZMATAZZ_RED;
5048
+ var ERROR_BACKGROUND_COLOR = "#FFF4F8"; // These colors are sequestered so that the alert component can reference them // by type of alert
5047
5049
 
5048
5050
  var ALERT_COLORS = {
5049
5051
  warn: {
@@ -5145,6 +5147,7 @@ var colors = /*#__PURE__*/Object.freeze({
5145
5147
  BOSTON_BLUE: BOSTON_BLUE,
5146
5148
  HOVER_LIGHT_BLUE: HOVER_LIGHT_BLUE,
5147
5149
  MATISSE_BLUE: MATISSE_BLUE,
5150
+ MATISSE_BLUE_DARK: MATISSE_BLUE_DARK,
5148
5151
  ROYAL_BLUE: ROYAL_BLUE,
5149
5152
  ROYAL_BLUE_VIVID: ROYAL_BLUE_VIVID,
5150
5153
  ASTRAL_BLUE: ASTRAL_BLUE,
@@ -5174,7 +5177,8 @@ var colors = /*#__PURE__*/Object.freeze({
5174
5177
  RASPBERRY: RASPBERRY,
5175
5178
  ALERT_COLORS: ALERT_COLORS,
5176
5179
  PILL_COLORS: PILL_COLORS,
5177
- ERROR_COLOR: ERROR_COLOR
5180
+ ERROR_COLOR: ERROR_COLOR,
5181
+ ERROR_BACKGROUND_COLOR: ERROR_BACKGROUND_COLOR
5178
5182
  });
5179
5183
 
5180
5184
  var TextSpan = styled.span.withConfig({
@@ -22122,9 +22126,7 @@ var Checkbox = function Checkbox(_ref4) {
22122
22126
  extraStyles = _ref4.extraStyles,
22123
22127
  textExtraStyles = _ref4.textExtraStyles,
22124
22128
  _ref4$dataQa = _ref4.dataQa,
22125
- dataQa = _ref4$dataQa === void 0 ? null : _ref4$dataQa,
22126
- _ref4$isRequired = _ref4.isRequired,
22127
- isRequired = _ref4$isRequired === void 0 ? false : _ref4$isRequired;
22129
+ dataQa = _ref4$dataQa === void 0 ? null : _ref4$dataQa;
22128
22130
 
22129
22131
  var _useState = useState(false),
22130
22132
  _useState2 = _slicedToArray(_useState, 2),
@@ -22178,8 +22180,7 @@ var Checkbox = function Checkbox(_ref4) {
22178
22180
  errorStyles: themeValues.errorStyles,
22179
22181
  disabledStyles: themeValues.disabledStyles,
22180
22182
  disabledCheckedStyles: themeValues.disabledCheckedStyles,
22181
- focusedStyles: themeValues.focusedStyles,
22182
- "aria-required": isRequired
22183
+ focusedStyles: themeValues.focusedStyles
22183
22184
  }, /*#__PURE__*/React.createElement(CheckboxIcon, {
22184
22185
  viewBox: "0 0 24 24",
22185
22186
  disabled: disabled,
@@ -22418,17 +22419,18 @@ var DropdownIcon = function DropdownIcon() {
22418
22419
  };
22419
22420
 
22420
22421
  var check = function (it) {
22421
- return it && it.Math == Math && it;
22422
+ return it && it.Math === Math && it;
22422
22423
  };
22423
22424
 
22424
22425
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
22425
22426
  var global_1 =
22426
- // eslint-disable-next-line es-x/no-global-this -- safe
22427
+ // eslint-disable-next-line es/no-global-this -- safe
22427
22428
  check(typeof globalThis == 'object' && globalThis) ||
22428
22429
  check(typeof window == 'object' && window) ||
22429
22430
  // eslint-disable-next-line no-restricted-globals -- safe
22430
22431
  check(typeof self == 'object' && self) ||
22431
22432
  check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
22433
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
22432
22434
  // eslint-disable-next-line no-new-func -- fallback
22433
22435
  (function () { return this; })() || Function('return this')();
22434
22436
 
@@ -22442,12 +22444,12 @@ var fails = function (exec) {
22442
22444
 
22443
22445
  // Detect IE8's incomplete defineProperty implementation
22444
22446
  var descriptors = !fails(function () {
22445
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
22446
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
22447
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
22448
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
22447
22449
  });
22448
22450
 
22449
22451
  var functionBindNative = !fails(function () {
22450
- // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
22452
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
22451
22453
  var test = (function () { /* empty */ }).bind();
22452
22454
  // eslint-disable-next-line no-prototype-builtins -- safe
22453
22455
  return typeof test != 'function' || test.hasOwnProperty('prototype');
@@ -22460,7 +22462,7 @@ var functionCall = functionBindNative ? call.bind(call) : function () {
22460
22462
  };
22461
22463
 
22462
22464
  var $propertyIsEnumerable = {}.propertyIsEnumerable;
22463
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22465
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22464
22466
  var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
22465
22467
 
22466
22468
  // Nashorn ~ JDK8 bug
@@ -22487,14 +22489,11 @@ var createPropertyDescriptor = function (bitmap, value) {
22487
22489
  };
22488
22490
 
22489
22491
  var FunctionPrototype = Function.prototype;
22490
- var bind$1 = FunctionPrototype.bind;
22491
22492
  var call$1 = FunctionPrototype.call;
22492
- var uncurryThis = functionBindNative && bind$1.bind(call$1, call$1);
22493
+ var uncurryThisWithBind = functionBindNative && FunctionPrototype.bind.bind(call$1, call$1);
22493
22494
 
22494
- var functionUncurryThis = functionBindNative ? function (fn) {
22495
- return fn && uncurryThis(fn);
22496
- } : function (fn) {
22497
- return fn && function () {
22495
+ var functionUncurryThis = functionBindNative ? uncurryThisWithBind : function (fn) {
22496
+ return function () {
22498
22497
  return call$1.apply(fn, arguments);
22499
22498
  };
22500
22499
  };
@@ -22515,15 +22514,21 @@ var indexedObject = fails(function () {
22515
22514
  // eslint-disable-next-line no-prototype-builtins -- safe
22516
22515
  return !$Object('z').propertyIsEnumerable(0);
22517
22516
  }) ? function (it) {
22518
- return classofRaw(it) == 'String' ? split(it, '') : $Object(it);
22517
+ return classofRaw(it) === 'String' ? split(it, '') : $Object(it);
22519
22518
  } : $Object;
22520
22519
 
22520
+ // we can't use just `it == null` since of `document.all` special case
22521
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
22522
+ var isNullOrUndefined = function (it) {
22523
+ return it === null || it === undefined;
22524
+ };
22525
+
22521
22526
  var $TypeError = TypeError;
22522
22527
 
22523
22528
  // `RequireObjectCoercible` abstract operation
22524
22529
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
22525
22530
  var requireObjectCoercible = function (it) {
22526
- if (it == undefined) throw $TypeError("Can't call method on " + it);
22531
+ if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
22527
22532
  return it;
22528
22533
  };
22529
22534
 
@@ -22535,13 +22540,32 @@ var toIndexedObject = function (it) {
22535
22540
  return indexedObject(requireObjectCoercible(it));
22536
22541
  };
22537
22542
 
22543
+ var documentAll = typeof document == 'object' && document.all;
22544
+
22545
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
22546
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
22547
+ var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
22548
+
22549
+ var documentAll_1 = {
22550
+ all: documentAll,
22551
+ IS_HTMLDDA: IS_HTMLDDA
22552
+ };
22553
+
22554
+ var documentAll$1 = documentAll_1.all;
22555
+
22538
22556
  // `IsCallable` abstract operation
22539
22557
  // https://tc39.es/ecma262/#sec-iscallable
22540
- var isCallable = function (argument) {
22558
+ var isCallable = documentAll_1.IS_HTMLDDA ? function (argument) {
22559
+ return typeof argument == 'function' || argument === documentAll$1;
22560
+ } : function (argument) {
22541
22561
  return typeof argument == 'function';
22542
22562
  };
22543
22563
 
22544
- var isObject = function (it) {
22564
+ var documentAll$2 = documentAll_1.all;
22565
+
22566
+ var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
22567
+ return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
22568
+ } : function (it) {
22545
22569
  return typeof it == 'object' ? it !== null : isCallable(it);
22546
22570
  };
22547
22571
 
@@ -22555,7 +22579,7 @@ var getBuiltIn = function (namespace, method) {
22555
22579
 
22556
22580
  var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
22557
22581
 
22558
- var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
22582
+ var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
22559
22583
 
22560
22584
  var process$1 = global_1.process;
22561
22585
  var Deno = global_1.Deno;
@@ -22582,24 +22606,29 @@ if (!version && engineUserAgent) {
22582
22606
 
22583
22607
  var engineV8Version = version;
22584
22608
 
22585
- /* eslint-disable es-x/no-symbol -- required for testing */
22609
+ /* eslint-disable es/no-symbol -- required for testing */
22610
+
22586
22611
 
22587
22612
 
22588
22613
 
22589
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
22590
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
22591
- var symbol = Symbol();
22614
+ var $String = global_1.String;
22615
+
22616
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
22617
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(function () {
22618
+ var symbol = Symbol('symbol detection');
22592
22619
  // Chrome 38 Symbol has incorrect toString conversion
22593
22620
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
22594
- return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
22621
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
22622
+ // of course, fail.
22623
+ return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
22595
22624
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
22596
22625
  !Symbol.sham && engineV8Version && engineV8Version < 41;
22597
22626
  });
22598
22627
 
22599
- /* eslint-disable es-x/no-symbol -- required for testing */
22628
+ /* eslint-disable es/no-symbol -- required for testing */
22600
22629
 
22601
22630
 
22602
- var useSymbolAsUid = nativeSymbol
22631
+ var useSymbolAsUid = symbolConstructorDetection
22603
22632
  && !Symbol.sham
22604
22633
  && typeof Symbol.iterator == 'symbol';
22605
22634
 
@@ -22612,11 +22641,11 @@ var isSymbol = useSymbolAsUid ? function (it) {
22612
22641
  return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, $Object$1(it));
22613
22642
  };
22614
22643
 
22615
- var $String = String;
22644
+ var $String$1 = String;
22616
22645
 
22617
22646
  var tryToString = function (argument) {
22618
22647
  try {
22619
- return $String(argument);
22648
+ return $String$1(argument);
22620
22649
  } catch (error) {
22621
22650
  return 'Object';
22622
22651
  }
@@ -22627,14 +22656,14 @@ var $TypeError$1 = TypeError;
22627
22656
  // `Assert: IsCallable(argument) is true`
22628
22657
  var aCallable = function (argument) {
22629
22658
  if (isCallable(argument)) return argument;
22630
- throw $TypeError$1(tryToString(argument) + ' is not a function');
22659
+ throw new $TypeError$1(tryToString(argument) + ' is not a function');
22631
22660
  };
22632
22661
 
22633
22662
  // `GetMethod` abstract operation
22634
22663
  // https://tc39.es/ecma262/#sec-getmethod
22635
22664
  var getMethod = function (V, P) {
22636
22665
  var func = V[P];
22637
- return func == null ? undefined : aCallable(func);
22666
+ return isNullOrUndefined(func) ? undefined : aCallable(func);
22638
22667
  };
22639
22668
 
22640
22669
  var $TypeError$2 = TypeError;
@@ -22646,10 +22675,10 @@ var ordinaryToPrimitive = function (input, pref) {
22646
22675
  if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
22647
22676
  if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
22648
22677
  if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
22649
- throw $TypeError$2("Can't convert object to primitive value");
22678
+ throw new $TypeError$2("Can't convert object to primitive value");
22650
22679
  };
22651
22680
 
22652
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
22681
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
22653
22682
  var defineProperty = Object.defineProperty;
22654
22683
 
22655
22684
  var defineGlobalProperty = function (key, value) {
@@ -22666,13 +22695,16 @@ var store = global_1[SHARED] || defineGlobalProperty(SHARED, {});
22666
22695
  var sharedStore = store;
22667
22696
 
22668
22697
  var shared = createCommonjsModule(function (module) {
22698
+
22699
+
22700
+
22669
22701
  (module.exports = function (key, value) {
22670
22702
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
22671
22703
  })('versions', []).push({
22672
- version: '3.24.1',
22704
+ version: '3.33.3',
22673
22705
  mode: 'global',
22674
- copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
22675
- license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE',
22706
+ copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
22707
+ license: 'https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE',
22676
22708
  source: 'https://github.com/zloirock/core-js'
22677
22709
  });
22678
22710
  });
@@ -22689,7 +22721,7 @@ var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
22689
22721
 
22690
22722
  // `HasOwnProperty` abstract operation
22691
22723
  // https://tc39.es/ecma262/#sec-hasownproperty
22692
- // eslint-disable-next-line es-x/no-object-hasown -- safe
22724
+ // eslint-disable-next-line es/no-object-hasown -- safe
22693
22725
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
22694
22726
  return hasOwnProperty(toObject(it), key);
22695
22727
  };
@@ -22702,21 +22734,15 @@ var uid = function (key) {
22702
22734
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
22703
22735
  };
22704
22736
 
22705
- var WellKnownSymbolsStore = shared('wks');
22706
22737
  var Symbol$1 = global_1.Symbol;
22707
- var symbolFor = Symbol$1 && Symbol$1['for'];
22708
- var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
22738
+ var WellKnownSymbolsStore = shared('wks');
22739
+ var createWellKnownSymbol = useSymbolAsUid ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
22709
22740
 
22710
22741
  var wellKnownSymbol = function (name) {
22711
- if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
22712
- var description = 'Symbol.' + name;
22713
- if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
22714
- WellKnownSymbolsStore[name] = Symbol$1[name];
22715
- } else if (useSymbolAsUid && symbolFor) {
22716
- WellKnownSymbolsStore[name] = symbolFor(description);
22717
- } else {
22718
- WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
22719
- }
22742
+ if (!hasOwnProperty_1(WellKnownSymbolsStore, name)) {
22743
+ WellKnownSymbolsStore[name] = symbolConstructorDetection && hasOwnProperty_1(Symbol$1, name)
22744
+ ? Symbol$1[name]
22745
+ : createWellKnownSymbol('Symbol.' + name);
22720
22746
  } return WellKnownSymbolsStore[name];
22721
22747
  };
22722
22748
 
@@ -22733,7 +22759,7 @@ var toPrimitive = function (input, pref) {
22733
22759
  if (pref === undefined) pref = 'default';
22734
22760
  result = functionCall(exoticToPrim, input, pref);
22735
22761
  if (!isObject(result) || isSymbol(result)) return result;
22736
- throw $TypeError$3("Can't convert object to primitive value");
22762
+ throw new $TypeError$3("Can't convert object to primitive value");
22737
22763
  }
22738
22764
  if (pref === undefined) pref = 'number';
22739
22765
  return ordinaryToPrimitive(input, pref);
@@ -22756,13 +22782,13 @@ var documentCreateElement = function (it) {
22756
22782
 
22757
22783
  // Thanks to IE8 for its funny defineProperty
22758
22784
  var ie8DomDefine = !descriptors && !fails(function () {
22759
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
22785
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
22760
22786
  return Object.defineProperty(documentCreateElement('div'), 'a', {
22761
22787
  get: function () { return 7; }
22762
- }).a != 7;
22788
+ }).a !== 7;
22763
22789
  });
22764
22790
 
22765
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22791
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22766
22792
  var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
22767
22793
 
22768
22794
  // `Object.getOwnPropertyDescriptor` method
@@ -22783,26 +22809,26 @@ var objectGetOwnPropertyDescriptor = {
22783
22809
  // V8 ~ Chrome 36-
22784
22810
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
22785
22811
  var v8PrototypeDefineBug = descriptors && fails(function () {
22786
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
22812
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
22787
22813
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
22788
22814
  value: 42,
22789
22815
  writable: false
22790
- }).prototype != 42;
22816
+ }).prototype !== 42;
22791
22817
  });
22792
22818
 
22793
- var $String$1 = String;
22819
+ var $String$2 = String;
22794
22820
  var $TypeError$4 = TypeError;
22795
22821
 
22796
22822
  // `Assert: Type(argument) is Object`
22797
22823
  var anObject = function (argument) {
22798
22824
  if (isObject(argument)) return argument;
22799
- throw $TypeError$4($String$1(argument) + ' is not an object');
22825
+ throw new $TypeError$4($String$2(argument) + ' is not an object');
22800
22826
  };
22801
22827
 
22802
22828
  var $TypeError$5 = TypeError;
22803
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
22829
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
22804
22830
  var $defineProperty = Object.defineProperty;
22805
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22831
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22806
22832
  var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
22807
22833
  var ENUMERABLE = 'enumerable';
22808
22834
  var CONFIGURABLE = 'configurable';
@@ -22832,7 +22858,7 @@ var f$2 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Att
22832
22858
  if (ie8DomDefine) try {
22833
22859
  return $defineProperty(O, P, Attributes);
22834
22860
  } catch (error) { /* empty */ }
22835
- if ('get' in Attributes || 'set' in Attributes) throw $TypeError$5('Accessors not supported');
22861
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$5('Accessors not supported');
22836
22862
  if ('value' in Attributes) O[P] = Attributes.value;
22837
22863
  return O;
22838
22864
  };
@@ -22849,7 +22875,7 @@ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
22849
22875
  };
22850
22876
 
22851
22877
  var FunctionPrototype$1 = Function.prototype;
22852
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22878
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22853
22879
  var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
22854
22880
 
22855
22881
  var EXISTS$1 = hasOwnProperty_1(FunctionPrototype$1, 'name');
@@ -22876,7 +22902,7 @@ var inspectSource = sharedStore.inspectSource;
22876
22902
 
22877
22903
  var WeakMap$1 = global_1.WeakMap;
22878
22904
 
22879
- var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
22905
+ var weakMapBasicDetection = isCallable(WeakMap$1) && /native code/.test(String(WeakMap$1));
22880
22906
 
22881
22907
  var keys$1 = shared('keys');
22882
22908
 
@@ -22899,27 +22925,29 @@ var getterFor = function (TYPE) {
22899
22925
  return function (it) {
22900
22926
  var state;
22901
22927
  if (!isObject(it) || (state = get(it)).type !== TYPE) {
22902
- throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
22928
+ throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
22903
22929
  } return state;
22904
22930
  };
22905
22931
  };
22906
22932
 
22907
- if (nativeWeakMap || sharedStore.state) {
22933
+ if (weakMapBasicDetection || sharedStore.state) {
22908
22934
  var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$2());
22909
- var wmget = functionUncurryThis(store$1.get);
22910
- var wmhas = functionUncurryThis(store$1.has);
22911
- var wmset = functionUncurryThis(store$1.set);
22935
+ /* eslint-disable no-self-assign -- prototype methods protection */
22936
+ store$1.get = store$1.get;
22937
+ store$1.has = store$1.has;
22938
+ store$1.set = store$1.set;
22939
+ /* eslint-enable no-self-assign -- prototype methods protection */
22912
22940
  set = function (it, metadata) {
22913
- if (wmhas(store$1, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
22941
+ if (store$1.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
22914
22942
  metadata.facade = it;
22915
- wmset(store$1, it, metadata);
22943
+ store$1.set(it, metadata);
22916
22944
  return metadata;
22917
22945
  };
22918
22946
  get = function (it) {
22919
- return wmget(store$1, it) || {};
22947
+ return store$1.get(it) || {};
22920
22948
  };
22921
22949
  has = function (it) {
22922
- return wmhas(store$1, it);
22950
+ return store$1.has(it);
22923
22951
  };
22924
22952
  } else {
22925
22953
  var STATE = sharedKey('state');
@@ -22947,14 +22975,23 @@ var internalState = {
22947
22975
  };
22948
22976
 
22949
22977
  var makeBuiltIn_1 = createCommonjsModule(function (module) {
22978
+
22979
+
22980
+
22981
+
22982
+
22950
22983
  var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
22951
22984
 
22952
22985
 
22953
22986
 
22954
22987
  var enforceInternalState = internalState.enforce;
22955
22988
  var getInternalState = internalState.get;
22956
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
22989
+ var $String = String;
22990
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
22957
22991
  var defineProperty = Object.defineProperty;
22992
+ var stringSlice = functionUncurryThis(''.slice);
22993
+ var replace = functionUncurryThis(''.replace);
22994
+ var join = functionUncurryThis([].join);
22958
22995
 
22959
22996
  var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
22960
22997
  return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
@@ -22963,8 +23000,8 @@ var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
22963
23000
  var TEMPLATE = String(String).split('String');
22964
23001
 
22965
23002
  var makeBuiltIn = module.exports = function (value, name, options) {
22966
- if (String(name).slice(0, 7) === 'Symbol(') {
22967
- name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
23003
+ if (stringSlice($String(name), 0, 7) === 'Symbol(') {
23004
+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
22968
23005
  }
22969
23006
  if (options && options.getter) name = 'get ' + name;
22970
23007
  if (options && options.setter) name = 'set ' + name;
@@ -22983,7 +23020,7 @@ var makeBuiltIn = module.exports = function (value, name, options) {
22983
23020
  } catch (error) { /* empty */ }
22984
23021
  var state = enforceInternalState(value);
22985
23022
  if (!hasOwnProperty_1(state, 'source')) {
22986
- state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
23023
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
22987
23024
  } return value;
22988
23025
  };
22989
23026
 
@@ -23022,7 +23059,7 @@ var floor = Math.floor;
23022
23059
 
23023
23060
  // `Math.trunc` method
23024
23061
  // https://tc39.es/ecma262/#sec-math.trunc
23025
- // eslint-disable-next-line es-x/no-math-trunc -- safe
23062
+ // eslint-disable-next-line es/no-math-trunc -- safe
23026
23063
  var mathTrunc = Math.trunc || function trunc(x) {
23027
23064
  var n = +x;
23028
23065
  return (n > 0 ? floor : ceil)(n);
@@ -23070,10 +23107,10 @@ var createMethod = function (IS_INCLUDES) {
23070
23107
  var value;
23071
23108
  // Array#includes uses SameValueZero equality algorithm
23072
23109
  // eslint-disable-next-line no-self-compare -- NaN check
23073
- if (IS_INCLUDES && el != el) while (length > index) {
23110
+ if (IS_INCLUDES && el !== el) while (length > index) {
23074
23111
  value = O[index++];
23075
23112
  // eslint-disable-next-line no-self-compare -- NaN check
23076
- if (value != value) return true;
23113
+ if (value !== value) return true;
23077
23114
  // Array#indexOf ignores holes, Array#includes - not
23078
23115
  } else for (;length > index; index++) {
23079
23116
  if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
@@ -23123,7 +23160,7 @@ var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
23123
23160
 
23124
23161
  // `Object.getOwnPropertyNames` method
23125
23162
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
23126
- // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
23163
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
23127
23164
  var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
23128
23165
  return objectKeysInternal(O, hiddenKeys$1);
23129
23166
  };
@@ -23132,7 +23169,7 @@ var objectGetOwnPropertyNames = {
23132
23169
  f: f$3
23133
23170
  };
23134
23171
 
23135
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
23172
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
23136
23173
  var f$4 = Object.getOwnPropertySymbols;
23137
23174
 
23138
23175
  var objectGetOwnPropertySymbols = {
@@ -23164,8 +23201,8 @@ var replacement = /#|\.prototype\./;
23164
23201
 
23165
23202
  var isForced = function (feature, detection) {
23166
23203
  var value = data[normalize(feature)];
23167
- return value == POLYFILL ? true
23168
- : value == NATIVE ? false
23204
+ return value === POLYFILL ? true
23205
+ : value === NATIVE ? false
23169
23206
  : isCallable(detection) ? fails(detection)
23170
23207
  : !!detection;
23171
23208
  };
@@ -23245,7 +23282,7 @@ var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
23245
23282
  var $Object$3 = Object;
23246
23283
 
23247
23284
  // ES3 wrong here
23248
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
23285
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
23249
23286
 
23250
23287
  // fallback for IE11 Script Access Denied error
23251
23288
  var tryGet = function (it, key) {
@@ -23263,25 +23300,25 @@ var classof = toStringTagSupport ? classofRaw : function (it) {
23263
23300
  // builtinTag case
23264
23301
  : CORRECT_ARGUMENTS ? classofRaw(O)
23265
23302
  // ES3 arguments fallback
23266
- : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
23303
+ : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
23267
23304
  };
23268
23305
 
23269
- var $String$2 = String;
23306
+ var $String$3 = String;
23270
23307
 
23271
23308
  var toString_1 = function (argument) {
23272
- if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
23273
- return $String$2(argument);
23309
+ if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
23310
+ return $String$3(argument);
23274
23311
  };
23275
23312
 
23276
23313
  var charAt = functionUncurryThis(''.charAt);
23277
23314
 
23278
23315
  var FORCED = fails(function () {
23279
- // eslint-disable-next-line es-x/no-array-string-prototype-at -- safe
23316
+ // eslint-disable-next-line es/no-array-string-prototype-at -- safe
23280
23317
  return '𠮷'.at(-2) !== '\uD842';
23281
23318
  });
23282
23319
 
23283
23320
  // `String.prototype.at` method
23284
- // https://github.com/tc39/proposal-relative-indexing-method
23321
+ // https://tc39.es/ecma262/#sec-string.prototype.at
23285
23322
  _export({ target: 'String', proto: true, forced: FORCED }, {
23286
23323
  at: function at(index) {
23287
23324
  var S = toString_1(requireObjectCoercible(this));
@@ -23294,14 +23331,14 @@ _export({ target: 'String', proto: true, forced: FORCED }, {
23294
23331
 
23295
23332
  // `Object.keys` method
23296
23333
  // https://tc39.es/ecma262/#sec-object.keys
23297
- // eslint-disable-next-line es-x/no-object-keys -- safe
23334
+ // eslint-disable-next-line es/no-object-keys -- safe
23298
23335
  var objectKeys = Object.keys || function keys(O) {
23299
23336
  return objectKeysInternal(O, enumBugKeys);
23300
23337
  };
23301
23338
 
23302
23339
  // `Object.defineProperties` method
23303
23340
  // https://tc39.es/ecma262/#sec-object.defineproperties
23304
- // eslint-disable-next-line es-x/no-object-defineproperties -- safe
23341
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
23305
23342
  var f$5 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
23306
23343
  anObject(O);
23307
23344
  var props = toIndexedObject(Properties);
@@ -23390,7 +23427,7 @@ hiddenKeys[IE_PROTO] = true;
23390
23427
 
23391
23428
  // `Object.create` method
23392
23429
  // https://tc39.es/ecma262/#sec-object.create
23393
- // eslint-disable-next-line es-x/no-object-create -- safe
23430
+ // eslint-disable-next-line es/no-object-create -- safe
23394
23431
  var objectCreate = Object.create || function create(O, Properties) {
23395
23432
  var result;
23396
23433
  if (O !== null) {
@@ -23410,7 +23447,7 @@ var ArrayPrototype = Array.prototype;
23410
23447
 
23411
23448
  // Array.prototype[@@unscopables]
23412
23449
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
23413
- if (ArrayPrototype[UNSCOPABLES] == undefined) {
23450
+ if (ArrayPrototype[UNSCOPABLES] === undefined) {
23414
23451
  defineProperty$1(ArrayPrototype, UNSCOPABLES, {
23415
23452
  configurable: true,
23416
23453
  value: objectCreate(null)
@@ -23423,7 +23460,7 @@ var addToUnscopables = function (key) {
23423
23460
  };
23424
23461
 
23425
23462
  // `Array.prototype.at` method
23426
- // https://github.com/tc39/proposal-relative-indexing-method
23463
+ // https://tc39.es/ecma262/#sec-array.prototype.at
23427
23464
  _export({ target: 'Array', proto: true }, {
23428
23465
  at: function at(index) {
23429
23466
  var O = toObject(this);
@@ -23436,13 +23473,19 @@ _export({ target: 'Array', proto: true }, {
23436
23473
 
23437
23474
  addToUnscopables('at');
23438
23475
 
23439
- // eslint-disable-next-line es-x/no-typed-arrays -- safe
23440
- var arrayBufferNative = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
23476
+ // eslint-disable-next-line es/no-typed-arrays -- safe
23477
+ var arrayBufferBasicDetection = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
23478
+
23479
+ var defineBuiltInAccessor = function (target, name, descriptor) {
23480
+ if (descriptor.get) makeBuiltIn_1(descriptor.get, name, { getter: true });
23481
+ if (descriptor.set) makeBuiltIn_1(descriptor.set, name, { setter: true });
23482
+ return objectDefineProperty.f(target, name, descriptor);
23483
+ };
23441
23484
 
23442
23485
  var correctPrototypeGetter = !fails(function () {
23443
23486
  function F() { /* empty */ }
23444
23487
  F.prototype.constructor = null;
23445
- // eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
23488
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
23446
23489
  return Object.getPrototypeOf(new F()) !== F.prototype;
23447
23490
  });
23448
23491
 
@@ -23452,7 +23495,7 @@ var ObjectPrototype = $Object$4.prototype;
23452
23495
 
23453
23496
  // `Object.getPrototypeOf` method
23454
23497
  // https://tc39.es/ecma262/#sec-object.getprototypeof
23455
- // eslint-disable-next-line es-x/no-object-getprototypeof -- safe
23498
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
23456
23499
  var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : function (O) {
23457
23500
  var object = toObject(O);
23458
23501
  if (hasOwnProperty_1(object, IE_PROTO$1)) return object[IE_PROTO$1];
@@ -23462,12 +23505,19 @@ var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : f
23462
23505
  } return object instanceof $Object$4 ? ObjectPrototype : null;
23463
23506
  };
23464
23507
 
23465
- var $String$3 = String;
23508
+ var functionUncurryThisAccessor = function (object, key, method) {
23509
+ try {
23510
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
23511
+ return functionUncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
23512
+ } catch (error) { /* empty */ }
23513
+ };
23514
+
23515
+ var $String$4 = String;
23466
23516
  var $TypeError$6 = TypeError;
23467
23517
 
23468
23518
  var aPossiblePrototype = function (argument) {
23469
23519
  if (typeof argument == 'object' || isCallable(argument)) return argument;
23470
- throw $TypeError$6("Can't set " + $String$3(argument) + ' as a prototype');
23520
+ throw new $TypeError$6("Can't set " + $String$4(argument) + ' as a prototype');
23471
23521
  };
23472
23522
 
23473
23523
  /* eslint-disable no-proto -- safe */
@@ -23478,14 +23528,13 @@ var aPossiblePrototype = function (argument) {
23478
23528
  // `Object.setPrototypeOf` method
23479
23529
  // https://tc39.es/ecma262/#sec-object.setprototypeof
23480
23530
  // Works with __proto__ only. Old v8 can't work with null proto objects.
23481
- // eslint-disable-next-line es-x/no-object-setprototypeof -- safe
23531
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
23482
23532
  var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
23483
23533
  var CORRECT_SETTER = false;
23484
23534
  var test = {};
23485
23535
  var setter;
23486
23536
  try {
23487
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
23488
- setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
23537
+ setter = functionUncurryThisAccessor(Object.prototype, '__proto__', 'set');
23489
23538
  setter(test, []);
23490
23539
  CORRECT_SETTER = test instanceof Array;
23491
23540
  } catch (error) { /* empty */ }
@@ -23498,14 +23547,6 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
23498
23547
  };
23499
23548
  }() : undefined);
23500
23549
 
23501
- var defineProperty$2 = objectDefineProperty.f;
23502
-
23503
-
23504
-
23505
-
23506
-
23507
-
23508
-
23509
23550
  var enforceInternalState = internalState.enforce;
23510
23551
  var getInternalState = internalState.get;
23511
23552
  var Int8Array = global_1.Int8Array;
@@ -23521,7 +23562,7 @@ var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
23521
23562
  var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
23522
23563
  var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
23523
23564
  // Fixing native typed arrays in Opera Presto crashes the browser, see #595
23524
- var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferNative && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
23565
+ var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferBasicDetection && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
23525
23566
  var TYPED_ARRAY_TAG_REQUIRED = false;
23526
23567
  var NAME, Constructor, Prototype;
23527
23568
 
@@ -23566,12 +23607,12 @@ var isTypedArray = function (it) {
23566
23607
 
23567
23608
  var aTypedArray = function (it) {
23568
23609
  if (isTypedArray(it)) return it;
23569
- throw TypeError$2('Target is not a typed array');
23610
+ throw new TypeError$2('Target is not a typed array');
23570
23611
  };
23571
23612
 
23572
23613
  var aTypedArrayConstructor = function (C) {
23573
23614
  if (isCallable(C) && (!objectSetPrototypeOf || objectIsPrototypeOf(TypedArray, C))) return C;
23574
- throw TypeError$2(tryToString(C) + ' is not a typed array constructor');
23615
+ throw new TypeError$2(tryToString(C) + ' is not a typed array constructor');
23575
23616
  };
23576
23617
 
23577
23618
  var exportTypedArrayMethod = function (KEY, property, forced, options) {
@@ -23635,7 +23676,7 @@ for (NAME in BigIntArrayConstructorsList) {
23635
23676
  if (!NATIVE_ARRAY_BUFFER_VIEWS || !isCallable(TypedArray) || TypedArray === Function.prototype) {
23636
23677
  // eslint-disable-next-line no-shadow -- safe
23637
23678
  TypedArray = function TypedArray() {
23638
- throw TypeError$2('Incorrect invocation');
23679
+ throw new TypeError$2('Incorrect invocation');
23639
23680
  };
23640
23681
  if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {
23641
23682
  if (global_1[NAME]) objectSetPrototypeOf(global_1[NAME], TypedArray);
@@ -23656,9 +23697,12 @@ if (NATIVE_ARRAY_BUFFER_VIEWS && objectGetPrototypeOf(Uint8ClampedArrayPrototype
23656
23697
 
23657
23698
  if (descriptors && !hasOwnProperty_1(TypedArrayPrototype, TO_STRING_TAG$2)) {
23658
23699
  TYPED_ARRAY_TAG_REQUIRED = true;
23659
- defineProperty$2(TypedArrayPrototype, TO_STRING_TAG$2, { get: function () {
23660
- return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
23661
- } });
23700
+ defineBuiltInAccessor(TypedArrayPrototype, TO_STRING_TAG$2, {
23701
+ configurable: true,
23702
+ get: function () {
23703
+ return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
23704
+ }
23705
+ });
23662
23706
  for (NAME in TypedArrayConstructorsList) if (global_1[NAME]) {
23663
23707
  createNonEnumerableProperty(global_1[NAME], TYPED_ARRAY_TAG, NAME);
23664
23708
  }
@@ -23682,7 +23726,7 @@ var aTypedArray$1 = arrayBufferViewCore.aTypedArray;
23682
23726
  var exportTypedArrayMethod$1 = arrayBufferViewCore.exportTypedArrayMethod;
23683
23727
 
23684
23728
  // `%TypedArray%.prototype.at` method
23685
- // https://github.com/tc39/proposal-relative-indexing-method
23729
+ // https://tc39.es/ecma262/#sec-%typedarray%.prototype.at
23686
23730
  exportTypedArrayMethod$1('at', function at(index) {
23687
23731
  var O = aTypedArray$1(this);
23688
23732
  var len = lengthOfArrayLike(O);
@@ -23693,9 +23737,11 @@ exportTypedArrayMethod$1('at', function at(index) {
23693
23737
 
23694
23738
  var selectedColor = "".concat(MATISSE_BLUE);
23695
23739
  var hoverColor$3 = "".concat(HOVER_LIGHT_BLUE);
23740
+ var focusColor = "".concat(MATISSE_BLUE_DARK);
23696
23741
  var fallbackValues$f = {
23697
23742
  selectedColor: selectedColor,
23698
- hoverColor: hoverColor$3
23743
+ hoverColor: hoverColor$3,
23744
+ focusColor: focusColor
23699
23745
  };
23700
23746
 
23701
23747
  var IconWrapper = styled.div.withConfig({
@@ -23718,7 +23764,7 @@ var DropdownContentWrapper = styled.div.withConfig({
23718
23764
  var DropdownItemWrapper = styled.li.withConfig({
23719
23765
  displayName: "Dropdown__DropdownItemWrapper",
23720
23766
  componentId: "sc-pn6m0h-2"
23721
- })(["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) {
23767
+ })(["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) {
23722
23768
  var selected = _ref4.selected,
23723
23769
  themeValues = _ref4.themeValues;
23724
23770
  return selected ? themeValues.selectedColor : WHITE;
@@ -23726,48 +23772,69 @@ var DropdownItemWrapper = styled.li.withConfig({
23726
23772
  var disabled = _ref5.disabled;
23727
23773
  return disabled ? "default" : "pointer";
23728
23774
  }, function (_ref6) {
23729
- var selected = _ref6.selected,
23730
- disabled = _ref6.disabled,
23775
+ var disabled = _ref6.disabled,
23776
+ selected = _ref6.selected,
23731
23777
  themeValues = _ref6.themeValues;
23732
- return selected ? themeValues.selectedColor : disabled ? WHITE : themeValues.hoverColor;
23778
+ return selected ? themeValues.focusColor : disabled ? WHITE : themeValues.hoverColor;
23733
23779
  }, function (_ref7) {
23734
23780
  var selected = _ref7.selected,
23735
23781
  disabled = _ref7.disabled,
23736
23782
  themeValues = _ref7.themeValues;
23737
- return selected ? themeValues.selectedColor : disabled ? WHITE : themeValues.hoverColor;
23783
+ return selected ? themeValues.focusColor : disabled ? WHITE : themeValues.hoverColor;
23784
+ }, function (_ref8) {
23785
+ var selected = _ref8.selected,
23786
+ disabled = _ref8.disabled,
23787
+ themeValues = _ref8.themeValues;
23788
+ return selected ? themeValues.focusColor : disabled ? WHITE : themeValues.hoverColor;
23789
+ }, function (_ref9) {
23790
+ var themeValues = _ref9.themeValues;
23791
+ return themeValues.selectedColor;
23792
+ }, function (_ref10) {
23793
+ var selected = _ref10.selected,
23794
+ disabled = _ref10.disabled,
23795
+ themeValues = _ref10.themeValues;
23796
+ return selected ? themeValues.focusColor : disabled ? WHITE : themeValues.hoverColor;
23797
+ });
23798
+ var DropdownItemBorder = styled.div.withConfig({
23799
+ displayName: "Dropdown__DropdownItemBorder",
23800
+ componentId: "sc-pn6m0h-3"
23801
+ })(["background:", ";border-color:", ";border-width:2px;border-style:solid;padding:12px;"], function (_ref11) {
23802
+ var selected = _ref11.selected,
23803
+ themeValues = _ref11.themeValues;
23804
+ return selected ? themeValues.selectedColor : WHITE;
23805
+ }, function (_ref12) {
23806
+ var selected = _ref12.selected,
23807
+ themeValues = _ref12.themeValues;
23808
+ return selected ? themeValues.selectedColor : WHITE;
23738
23809
  });
23739
23810
 
23740
- var Dropdown = function Dropdown(_ref8) {
23741
- var placeholder = _ref8.placeholder,
23742
- options = _ref8.options,
23743
- value = _ref8.value,
23744
- isOpen = _ref8.isOpen,
23745
- isError = _ref8.isError,
23746
- onSelect = _ref8.onSelect,
23747
- _ref8$disabledValues = _ref8.disabledValues,
23748
- disabledValues = _ref8$disabledValues === void 0 ? [] : _ref8$disabledValues,
23749
- _ref8$onClick = _ref8.onClick,
23750
- _onClick = _ref8$onClick === void 0 ? noop : _ref8$onClick,
23751
- themeValues = _ref8.themeValues,
23752
- maxHeight = _ref8.maxHeight,
23753
- _ref8$widthFitOptions = _ref8.widthFitOptions,
23754
- widthFitOptions = _ref8$widthFitOptions === void 0 ? false : _ref8$widthFitOptions,
23755
- disabled = _ref8.disabled,
23756
- _ref8$hasTitles = _ref8.hasTitles,
23757
- hasTitles = _ref8$hasTitles === void 0 ? false : _ref8$hasTitles,
23758
- _ref8$autoEraseTypeAh = _ref8.autoEraseTypeAhead,
23759
- autoEraseTypeAhead = _ref8$autoEraseTypeAh === void 0 ? true : _ref8$autoEraseTypeAh,
23760
- ariaLabelledby = _ref8.ariaLabelledby,
23761
- ariaDescribedby = _ref8.ariaDescribedby,
23762
- autocompleteValue = _ref8.autocompleteValue,
23763
- _ref8$smoothScroll = _ref8.smoothScroll,
23764
- smoothScroll = _ref8$smoothScroll === void 0 ? true : _ref8$smoothScroll,
23765
- _ref8$ariaInvalid = _ref8.ariaInvalid,
23766
- ariaInvalid = _ref8$ariaInvalid === void 0 ? false : _ref8$ariaInvalid,
23767
- _ref8$isRequired = _ref8.isRequired,
23768
- isRequired = _ref8$isRequired === void 0 ? false : _ref8$isRequired;
23769
-
23770
- var required = options.required || isRequired;
23811
+ var Dropdown = function Dropdown(_ref13) {
23812
+ var placeholder = _ref13.placeholder,
23813
+ options = _ref13.options,
23814
+ value = _ref13.value,
23815
+ isOpen = _ref13.isOpen,
23816
+ isError = _ref13.isError,
23817
+ onSelect = _ref13.onSelect,
23818
+ _ref13$disabledValues = _ref13.disabledValues,
23819
+ disabledValues = _ref13$disabledValues === void 0 ? [] : _ref13$disabledValues,
23820
+ _ref13$onClick = _ref13.onClick,
23821
+ _onClick = _ref13$onClick === void 0 ? noop : _ref13$onClick,
23822
+ themeValues = _ref13.themeValues,
23823
+ maxHeight = _ref13.maxHeight,
23824
+ _ref13$widthFitOption = _ref13.widthFitOptions,
23825
+ widthFitOptions = _ref13$widthFitOption === void 0 ? false : _ref13$widthFitOption,
23826
+ disabled = _ref13.disabled,
23827
+ _ref13$hasTitles = _ref13.hasTitles,
23828
+ hasTitles = _ref13$hasTitles === void 0 ? false : _ref13$hasTitles,
23829
+ _ref13$autoEraseTypeA = _ref13.autoEraseTypeAhead,
23830
+ autoEraseTypeAhead = _ref13$autoEraseTypeA === void 0 ? true : _ref13$autoEraseTypeA,
23831
+ ariaLabelledby = _ref13.ariaLabelledby,
23832
+ ariaDescribedby = _ref13.ariaDescribedby,
23833
+ autocompleteValue = _ref13.autocompleteValue,
23834
+ _ref13$smoothScroll = _ref13.smoothScroll,
23835
+ smoothScroll = _ref13$smoothScroll === void 0 ? true : _ref13$smoothScroll,
23836
+ _ref13$ariaInvalid = _ref13.ariaInvalid,
23837
+ ariaInvalid = _ref13$ariaInvalid === void 0 ? false : _ref13$ariaInvalid;
23771
23838
 
23772
23839
  var _useState = useState(""),
23773
23840
  _useState2 = _slicedToArray(_useState, 2),
@@ -24016,8 +24083,7 @@ var Dropdown = function Dropdown(_ref8) {
24016
24083
  "aria-labelledby": ariaLabelledby,
24017
24084
  "aria-describedby": ariaDescribedby,
24018
24085
  "aria-expanded": isOpen,
24019
- "aria-required": required,
24020
- required: required,
24086
+ "aria-required": options.required,
24021
24087
  "aria-invalid": ariaInvalid,
24022
24088
  background: isOpen ? themeValues.hoverColor : WHITE,
24023
24089
  borderRadius: "2px",
@@ -24039,14 +24105,14 @@ var Dropdown = function Dropdown(_ref8) {
24039
24105
  },
24040
24106
  padding: "12px",
24041
24107
  placeholder: getSelection(),
24108
+ required: options.required,
24042
24109
  role: "combobox",
24043
24110
  themeValues: themeValues,
24044
24111
  title: hasTitles ? getSelection() : null,
24045
24112
  type: "text",
24046
24113
  tabIndex: 0,
24047
24114
  value: inputValue,
24048
- width: "100%",
24049
- disabled: disabledValues.includes(inputValue)
24115
+ width: "100%"
24050
24116
  }), /*#__PURE__*/React.createElement(IconWrapper, {
24051
24117
  open: isOpen,
24052
24118
  onClick: _onClick
@@ -24057,8 +24123,7 @@ var Dropdown = function Dropdown(_ref8) {
24057
24123
  widthFitOptions: widthFitOptions,
24058
24124
  tabIndex: 0,
24059
24125
  role: "listbox",
24060
- id: "".concat(ariaLabelledby, "_listbox"),
24061
- required: required
24126
+ id: "".concat(ariaLabelledby, "_listbox")
24062
24127
  }, /*#__PURE__*/React.createElement(Stack, {
24063
24128
  childGap: "0",
24064
24129
  as: "ul"
@@ -24091,11 +24156,15 @@ var Dropdown = function Dropdown(_ref8) {
24091
24156
  onFocus: function onFocus() {
24092
24157
  return setFocusedRef(optionRefs.current[i]);
24093
24158
  }
24159
+ }, /*#__PURE__*/React.createElement(DropdownItemBorder, {
24160
+ disabled: disabledValues.includes(choice.value),
24161
+ selected: choice.value === value,
24162
+ themeValues: themeValues
24094
24163
  }, /*#__PURE__*/React.createElement(Text$1, {
24095
24164
  variant: "p",
24096
24165
  color: choice.value === value ? WHITE : disabledValues.includes(choice.value) ? STORM_GREY : MINESHAFT_GREY,
24097
- extraStyles: "padding-left: 16px;\n cursor: ".concat(disabledValues.includes(choice.value) ? "default" : "pointer", ";\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;")
24098
- }, choice.text));
24166
+ extraStyles: "padding-left: 16px;\n cursor: ".concat(disabledValues.includes(choice.value) ? "default" : "pointer", ";\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;")
24167
+ }, choice.text)));
24099
24168
  }))) : /*#__PURE__*/React.createElement(Fragment$1, null)));
24100
24169
  };
24101
24170
 
@@ -24204,9 +24273,7 @@ var FormSelect = function FormSelect(_ref) {
24204
24273
  _ref$dataQa = _ref.dataQa,
24205
24274
  dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
24206
24275
  _ref$widthFitOptions = _ref.widthFitOptions,
24207
- widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions,
24208
- _ref$isRequired = _ref.isRequired,
24209
- isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
24276
+ widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions;
24210
24277
 
24211
24278
  var _useState = useState(false),
24212
24279
  _useState2 = _slicedToArray(_useState, 2),
@@ -24214,17 +24281,6 @@ var FormSelect = function FormSelect(_ref) {
24214
24281
  setOpen = _useState2[1];
24215
24282
 
24216
24283
  var dropdownRef = useRef(null);
24217
- var required = (options === null || options === void 0 ? void 0 : options.required) || isRequired;
24218
- var labelId = useMemo(function () {
24219
- return function (labelTextWhenNoError) {
24220
- return createIdFromString(labelTextWhenNoError);
24221
- };
24222
- }, [labelTextWhenNoError]);
24223
- var descriptionId = useMemo(function () {
24224
- return function (field, labelTextWhenNoError) {
24225
- return field.hasErrors && field.dirty ? labelId(labelTextWhenNoError) + "error-message" : "";
24226
- };
24227
- }, [field, labelTextWhenNoError]);
24228
24284
 
24229
24285
  var handleClickAway = function handleClickAway(event) {
24230
24286
  if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {
@@ -24240,8 +24296,8 @@ var FormSelect = function FormSelect(_ref) {
24240
24296
  });
24241
24297
  return /*#__PURE__*/React.createElement(SelectContainer, {
24242
24298
  ref: dropdownRef,
24243
- "aria-role": "group",
24244
24299
  disabled: disabled,
24300
+ "aria-disabled": disabled,
24245
24301
  "data-qa": dataQa
24246
24302
  }, /*#__PURE__*/React.createElement(Box, {
24247
24303
  padding: "0",
@@ -24255,10 +24311,10 @@ var FormSelect = function FormSelect(_ref) {
24255
24311
  color: themeValues.labelColor,
24256
24312
  weight: themeValues.fontWeight,
24257
24313
  extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
24258
- id: labelId(labelTextWhenNoError)
24314
+ id: createIdFromString(labelTextWhenNoError)
24259
24315
  }, labelTextWhenNoError))), /*#__PURE__*/React.createElement(Dropdown$1, {
24260
- ariaLabelledby: labelId(labelTextWhenNoError),
24261
- ariaDescribedby: descriptionId(field, labelTextWhenNoError),
24316
+ ariaLabelledby: createIdFromString(labelTextWhenNoError),
24317
+ ariaDescribedby: createIdFromString(labelTextWhenNoError, "error message"),
24262
24318
  maxHeight: dropdownMaxHeight,
24263
24319
  widthFitOptions: widthFitOptions,
24264
24320
  hasTitles: hasTitles,
@@ -24279,12 +24335,11 @@ var FormSelect = function FormSelect(_ref) {
24279
24335
  },
24280
24336
  disabled: disabled,
24281
24337
  autocompleteValue: autocompleteValue,
24282
- smoothScroll: smoothScroll,
24283
- isRequired: required
24338
+ smoothScroll: smoothScroll
24284
24339
  }), /*#__PURE__*/React.createElement(Stack, {
24285
24340
  direction: "row",
24286
24341
  justify: "space-between"
24287
- }, /*#__PURE__*/React.createElement(Text$1, {
24342
+ }, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React.createElement(Text$1, {
24288
24343
  color: ERROR_COLOR,
24289
24344
  variant: "pXS",
24290
24345
  weight: themeValues.fontWeight,
@@ -24293,7 +24348,9 @@ var FormSelect = function FormSelect(_ref) {
24293
24348
  "aria-live": "polite",
24294
24349
  "aria-atomic": true,
24295
24350
  "data-qa": createIdFromString(labelTextWhenNoError, "error message")
24296
- }, field.hasErrors && field.dirty || field.hasErrors && showErrors ? errorMessages[field.errors[0]] : "")));
24351
+ }, errorMessages[field.errors[0]]) : /*#__PURE__*/React.createElement(Text$1, {
24352
+ extraStyles: "height: ".concat(themeValues.lineHeight, ";")
24353
+ })));
24297
24354
  };
24298
24355
 
24299
24356
  var FormSelect$1 = themeComponent(FormSelect, "FormSelect", fallbackValues$g, "default");
@@ -25050,9 +25107,7 @@ var CountryDropdown = function CountryDropdown(_ref) {
25050
25107
  showErrors = _ref.showErrors,
25051
25108
  onChange = _ref.onChange,
25052
25109
  _ref$dataQa = _ref.dataQa,
25053
- dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
25054
- _ref$isRequired = _ref.isRequired,
25055
- isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
25110
+ dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa;
25056
25111
  return /*#__PURE__*/React.createElement(FormSelect$1, {
25057
25112
  options: options,
25058
25113
  field: field,
@@ -25062,8 +25117,7 @@ var CountryDropdown = function CountryDropdown(_ref) {
25062
25117
  errorMessages: errorMessages,
25063
25118
  showErrors: showErrors,
25064
25119
  onChange: onChange,
25065
- autocompleteValue: "country-name",
25066
- isRequired: isRequired
25120
+ autocompleteValue: "country-name"
25067
25121
  });
25068
25122
  };
25069
25123
 
@@ -25227,6 +25281,346 @@ var DisplayBox = function DisplayBox(_ref) {
25227
25281
 
25228
25282
  var DisplayBox$1 = themeComponent(DisplayBox, "DisplayBox", fallbackValues$i);
25229
25283
 
25284
+ /*
25285
+ Hook that assigns a click event listener to the main document element
25286
+ Returns a ref to attach to another element (like an icon/button that triggers a popover)
25287
+ If a click event gets captured by the document and the assigned element isn't the target
25288
+ hook will run whatever handler is passed (eg a function that closes a popover)
25289
+
25290
+ See popover component for implementation
25291
+
25292
+ */
25293
+
25294
+ var useOutsideClickHook = function useOutsideClickHook(handler) {
25295
+ var ref = useRef();
25296
+ useEffect$1(function () {
25297
+ }, [ref]);
25298
+ return ref;
25299
+ };
25300
+
25301
+ /*
25302
+ Hook that takes an ID selector for an element on the screen
25303
+ And optionally values for top position, left position, smooth behavior
25304
+ Finds element on screen and scrolls it to the provided coordinates
25305
+
25306
+ (string, number, number, string, number) => undefined;
25307
+ */
25308
+ var useScrollTo = function useScrollTo(id) {
25309
+ var top = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
25310
+ var left = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
25311
+ var behavior = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "auto";
25312
+ var delay = arguments.length > 4 ? arguments[4] : undefined;
25313
+ var scrollItem;
25314
+
25315
+ if (delay) {
25316
+ setTimeout(function () {
25317
+ var _scrollItem;
25318
+
25319
+ scrollItem = document.getElementById(id);
25320
+ (_scrollItem = scrollItem) === null || _scrollItem === void 0 ? void 0 : _scrollItem.scrollTo({
25321
+ top: top,
25322
+ left: left,
25323
+ behavior: behavior
25324
+ });
25325
+ }, delay);
25326
+ } else {
25327
+ var _scrollItem2;
25328
+
25329
+ scrollItem = document.getElementById(id);
25330
+ (_scrollItem2 = scrollItem) === null || _scrollItem2 === void 0 ? void 0 : _scrollItem2.scrollTo({
25331
+ top: top,
25332
+ left: left,
25333
+ behavior: behavior
25334
+ });
25335
+ }
25336
+ };
25337
+
25338
+ var initialToastState = {
25339
+ isOpen: false,
25340
+ variant: "",
25341
+ message: ""
25342
+ };
25343
+
25344
+ var useToastNotification = function useToastNotification() {
25345
+ var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
25346
+ _ref$timeout = _ref.timeout,
25347
+ timeout = _ref$timeout === void 0 ? 5000 : _ref$timeout;
25348
+
25349
+ var _useState = useState(initialToastState),
25350
+ _useState2 = _slicedToArray(_useState, 2),
25351
+ toastState = _useState2[0],
25352
+ setToastState = _useState2[1];
25353
+
25354
+ useEffect$1(function () {
25355
+ if (toastState.isOpen) {
25356
+ setTimeout(function () {
25357
+ setToastState(initialToastState);
25358
+ }, timeout);
25359
+ }
25360
+ }, [timeout, toastState.isOpen]);
25361
+
25362
+ var showToast = function showToast(_ref2) {
25363
+ var message = _ref2.message,
25364
+ variant = _ref2.variant;
25365
+ return setToastState({
25366
+ isOpen: true,
25367
+ variant: variant,
25368
+ message: message
25369
+ });
25370
+ };
25371
+
25372
+ var hideToast = function hideToast() {
25373
+ return setToastState(initialToastState);
25374
+ };
25375
+
25376
+ return {
25377
+ isToastOpen: toastState.isOpen,
25378
+ toastVariant: toastState.variant,
25379
+ toastMessage: toastState.message,
25380
+ showToast: showToast,
25381
+ hideToast: hideToast
25382
+ };
25383
+ };
25384
+
25385
+
25386
+
25387
+ var index$4 = /*#__PURE__*/Object.freeze({
25388
+ __proto__: null,
25389
+ useOutsideClick: useOutsideClickHook,
25390
+ useScrollTo: useScrollTo,
25391
+ useToastNotification: useToastNotification
25392
+ });
25393
+
25394
+ var hoverColor$4 = "#116285";
25395
+ var activeColor$4 = "#0E506D";
25396
+ var popoverTriggerColor = "#15749D";
25397
+ var fallbackValues$j = {
25398
+ hoverColor: hoverColor$4,
25399
+ activeColor: activeColor$4,
25400
+ popoverTriggerColor: popoverTriggerColor
25401
+ };
25402
+
25403
+ var arrowBorder = function arrowBorder(borderColor, direction) {
25404
+ var width = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "8px";
25405
+ var angle = "".concat(width, " solid transparent");
25406
+ var straight = "".concat(width, " solid ").concat(borderColor);
25407
+
25408
+ if (direction == "down") {
25409
+ return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-top: ").concat(straight);
25410
+ } else if (direction == "up") {
25411
+ return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-bottom: ").concat(straight);
25412
+ } else if (direction == "left") {
25413
+ return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-right: ").concat(straight);
25414
+ } else if (direction == "right") {
25415
+ return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-left: ").concat(straight);
25416
+ }
25417
+ };
25418
+
25419
+ var Popover = function Popover(_ref) {
25420
+ var themeValues = _ref.themeValues,
25421
+ _ref$triggerText = _ref.triggerText,
25422
+ triggerText = _ref$triggerText === void 0 ? "" : _ref$triggerText,
25423
+ _ref$content = _ref.content,
25424
+ content = _ref$content === void 0 ? "" : _ref$content,
25425
+ _ref$hasIcon = _ref.hasIcon,
25426
+ hasIcon = _ref$hasIcon === void 0 ? false : _ref$hasIcon,
25427
+ Icon = _ref.icon,
25428
+ _ref$iconHelpText = _ref.iconHelpText,
25429
+ iconHelpText = _ref$iconHelpText === void 0 ? "" : _ref$iconHelpText,
25430
+ _ref$popoverID = _ref.popoverID,
25431
+ popoverID = _ref$popoverID === void 0 ? 0 : _ref$popoverID,
25432
+ _ref$popoverFocus = _ref.popoverFocus,
25433
+ popoverFocus = _ref$popoverFocus === void 0 ? false : _ref$popoverFocus,
25434
+ extraStyles = _ref.extraStyles,
25435
+ textExtraStyles = _ref.textExtraStyles,
25436
+ _ref$minWidth = _ref.minWidth,
25437
+ minWidth = _ref$minWidth === void 0 ? "250px" : _ref$minWidth,
25438
+ _ref$maxWidth = _ref.maxWidth,
25439
+ maxWidth = _ref$maxWidth === void 0 ? "300px" : _ref$maxWidth,
25440
+ _ref$height = _ref.height,
25441
+ height = _ref$height === void 0 ? "auto" : _ref$height,
25442
+ position = _ref.position,
25443
+ arrowPosition = _ref.arrowPosition,
25444
+ _ref$arrowDirection = _ref.arrowDirection,
25445
+ arrowDirection = _ref$arrowDirection === void 0 ? "down" : _ref$arrowDirection,
25446
+ _ref$transform = _ref.transform,
25447
+ transform = _ref$transform === void 0 ? "none" : _ref$transform,
25448
+ buttonExtraStyles = _ref.buttonExtraStyles,
25449
+ _ref$backgroundColor = _ref.backgroundColor,
25450
+ backgroundColor = _ref$backgroundColor === void 0 ? "white" : _ref$backgroundColor,
25451
+ _ref$borderColor = _ref.borderColor,
25452
+ borderColor = _ref$borderColor === void 0 ? "rgba(255, 255, 255, 0.85)" : _ref$borderColor,
25453
+ popoverExtraStyles = _ref.popoverExtraStyles;
25454
+ var hoverColor = themeValues.hoverColor,
25455
+ activeColor = themeValues.activeColor,
25456
+ popoverTriggerColor = themeValues.popoverTriggerColor;
25457
+
25458
+ var _ref2 = position !== null && position !== void 0 ? position : {},
25459
+ _ref2$top = _ref2.top,
25460
+ top = _ref2$top === void 0 ? "-110px" : _ref2$top,
25461
+ _ref2$right = _ref2.right,
25462
+ right = _ref2$right === void 0 ? "auto" : _ref2$right,
25463
+ _ref2$bottom = _ref2.bottom,
25464
+ bottom = _ref2$bottom === void 0 ? "auto" : _ref2$bottom,
25465
+ _ref2$left = _ref2.left,
25466
+ left = _ref2$left === void 0 ? "-225px" : _ref2$left;
25467
+
25468
+ var _ref3 = arrowPosition !== null && arrowPosition !== void 0 ? arrowPosition : {},
25469
+ _ref3$arrowTop = _ref3.arrowTop,
25470
+ arrowTop = _ref3$arrowTop === void 0 ? "auto" : _ref3$arrowTop,
25471
+ _ref3$arrowRight = _ref3.arrowRight,
25472
+ arrowRight = _ref3$arrowRight === void 0 ? "10px" : _ref3$arrowRight,
25473
+ _ref3$arrowBottom = _ref3.arrowBottom,
25474
+ arrowBottom = _ref3$arrowBottom === void 0 ? "-8px" : _ref3$arrowBottom,
25475
+ _ref3$arrowLeft = _ref3.arrowLeft,
25476
+ arrowLeft = _ref3$arrowLeft === void 0 ? "auto" : _ref3$arrowLeft;
25477
+
25478
+ var _useState = useState(false),
25479
+ _useState2 = _slicedToArray(_useState, 2),
25480
+ popoverOpen = _useState2[0],
25481
+ togglePopover = _useState2[1];
25482
+
25483
+ var handleTogglePopover = function handleTogglePopover(popoverState) {
25484
+ if (popoverOpen !== popoverState) {
25485
+ togglePopover(popoverState);
25486
+ }
25487
+ };
25488
+
25489
+ var triggerRef = useOutsideClickHook();
25490
+ return /*#__PURE__*/React.createElement(Box, {
25491
+ padding: "0",
25492
+ extraStyles: "position: relative; ".concat(extraStyles)
25493
+ }, /*#__PURE__*/React.createElement(ButtonWithAction, {
25494
+ action: function action() {
25495
+ return noop;
25496
+ },
25497
+ onFocus: function onFocus() {
25498
+ handleTogglePopover(true);
25499
+ },
25500
+ onBlur: function onBlur() {
25501
+ handleTogglePopover(false);
25502
+ },
25503
+ onKeyDown: function onKeyDown(e) {
25504
+ if (e.keyCode === 27) {
25505
+ handleTogglePopover(false);
25506
+ }
25507
+ },
25508
+ onTouchStart: function onTouchStart() {
25509
+ return handleTogglePopover(true);
25510
+ },
25511
+ onTouchEnd: function onTouchEnd() {
25512
+ return handleTogglePopover(false);
25513
+ },
25514
+ onMouseEnter: function onMouseEnter() {
25515
+ return handleTogglePopover(true);
25516
+ },
25517
+ onMouseLeave: function onMouseLeave() {
25518
+ return handleTogglePopover(false);
25519
+ },
25520
+ contentOverride: true,
25521
+ variant: "smallGhost",
25522
+ tabIndex: "0",
25523
+ id: "btnPopover".concat(popoverID),
25524
+ "aria-expanded": popoverOpen,
25525
+ "aria-labelledby": "btnPopover".concat(popoverID, "_info Disclosure").concat(popoverID),
25526
+ "aria-describedby": "Disclosure".concat(popoverID),
25527
+ "aria-controls": "Disclosed".concat(popoverID),
25528
+ ref: triggerRef,
25529
+ extraStyles: buttonExtraStyles
25530
+ }, hasIcon && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Icon, null), /*#__PURE__*/React.createElement(Box, {
25531
+ padding: "0",
25532
+ srOnly: true
25533
+ }, /*#__PURE__*/React.createElement(Text$1, {
25534
+ id: "btnPopover".concat(popoverID, "_info")
25535
+ }, iconHelpText))), !hasIcon && /*#__PURE__*/React.createElement(Text$1, {
25536
+ color: popoverTriggerColor,
25537
+ extraStyles: "&:active { color: ".concat(activeColor, "; } &:hover { color: ").concat(hoverColor, " }; ").concat(textExtraStyles)
25538
+ }, triggerText)), /*#__PURE__*/React.createElement(Box, {
25539
+ background: backgroundColor,
25540
+ borderRadius: "4px",
25541
+ boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)",
25542
+ id: "Disclosed".concat(popoverID),
25543
+ role: "region",
25544
+ "aria-describedby": "Disclosure".concat(popoverID),
25545
+ tabIndex: popoverFocus && popoverOpen ? "0" : "-1",
25546
+ minWidth: minWidth,
25547
+ maxWidth: maxWidth,
25548
+ 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 ")
25549
+ }, /*#__PURE__*/React.createElement(Paragraph$1, null, content), /*#__PURE__*/React.createElement(Box, {
25550
+ padding: "0",
25551
+ 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 ")
25552
+ })));
25553
+ };
25554
+
25555
+ var Popover$1 = themeComponent(Popover, "Popover", fallbackValues$j);
25556
+
25557
+ var DisplayCard = function DisplayCard(_ref) {
25558
+ var title = _ref.title,
25559
+ item = _ref.item,
25560
+ buttonText = _ref.buttonText,
25561
+ buttonAction = _ref.buttonAction,
25562
+ url = _ref.url,
25563
+ _ref$link = _ref.link,
25564
+ link = _ref$link === void 0 ? false : _ref$link,
25565
+ helpText = _ref.helpText,
25566
+ _ref$hasPopover = _ref.hasPopover,
25567
+ hasPopover = _ref$hasPopover === void 0 ? false : _ref$hasPopover,
25568
+ _ref$popoverTriggerTe = _ref.popoverTriggerText,
25569
+ popoverTriggerText = _ref$popoverTriggerTe === void 0 ? "" : _ref$popoverTriggerTe,
25570
+ _ref$popoverContent = _ref.popoverContent,
25571
+ popoverContent = _ref$popoverContent === void 0 ? "" : _ref$popoverContent,
25572
+ popoverExtraStyles = _ref.popoverExtraStyles,
25573
+ popoverTextExtraStyles = _ref.popoverTextExtraStyles;
25574
+ return /*#__PURE__*/React.createElement(Box, {
25575
+ padding: "0 0 16px"
25576
+ }, /*#__PURE__*/React.createElement(Stack, {
25577
+ childGap: "0rem"
25578
+ }, /*#__PURE__*/React.createElement(Box, {
25579
+ padding: "0 0 8px 0"
25580
+ }, /*#__PURE__*/React.createElement(Cluster, {
25581
+ justify: "space-between",
25582
+ align: "center",
25583
+ overflow: true
25584
+ }, /*#__PURE__*/React.createElement(Paragraph$1, {
25585
+ variant: "pL",
25586
+ color: CHARADE_GREY,
25587
+ extraStyles: "letter-spacing: 0.29px"
25588
+ }, title), hasPopover && /*#__PURE__*/React.createElement(Popover$1, {
25589
+ triggerText: popoverTriggerText,
25590
+ content: popoverContent,
25591
+ popoverExtraStyles: popoverExtraStyles,
25592
+ popoverTextExtraStyles: popoverTextExtraStyles
25593
+ }))), /*#__PURE__*/React.createElement(Box, {
25594
+ padding: "0"
25595
+ }, /*#__PURE__*/React.createElement(Box, {
25596
+ padding: "24px",
25597
+ borderSize: "1px",
25598
+ borderRadius: "4px",
25599
+ background: WHITE,
25600
+ boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)"
25601
+ }, /*#__PURE__*/React.createElement(Cluster, {
25602
+ justify: "space-between",
25603
+ align: "center"
25604
+ }, /*#__PURE__*/React.createElement(Text$1, {
25605
+ color: CHARADE_GREY
25606
+ }, item), link ? /*#__PURE__*/React.createElement(ButtonWithLink, {
25607
+ text: buttonText,
25608
+ url: url,
25609
+ variant: "smallGhost",
25610
+ dataQa: buttonText,
25611
+ extraStyles: "min-width: 0;"
25612
+ }) : buttonAction ? /*#__PURE__*/React.createElement(ButtonWithAction, {
25613
+ text: buttonText,
25614
+ action: buttonAction,
25615
+ variant: "smallGhost",
25616
+ dataQa: buttonText,
25617
+ extraStyles: "min-width: 0;"
25618
+ }) : helpText ? /*#__PURE__*/React.createElement(Text$1, {
25619
+ color: STORM_GREY,
25620
+ extraStyles: "font-style: italic;"
25621
+ }, helpText) : /*#__PURE__*/React.createElement(Fragment$1, null))))));
25622
+ };
25623
+
25230
25624
  function _extends$2() {
25231
25625
  _extends$2 = Object.assign || function (target) {
25232
25626
  for (var i = 1; i < arguments.length; i++) {
@@ -25505,344 +25899,6 @@ var FormattedInput = function FormattedInput(_ref) {
25505
25899
  }));
25506
25900
  };
25507
25901
 
25508
- var formatDelimiter = "_";
25509
- var phoneFormats = ["", "_", "__", "(___) ", "(___) _", "(___) __", "(___) ___-", "(___) ___-_", "(___) ___-__", "(___) ___-___", "(___) ___-____"];
25510
- var zipFormats = ["", "_", "__", "___", "____", "_____", "______", "_____-__", "_____-___", "_____-____"];
25511
- var creditCardFormats = ["", "_", "__", "___", "____", "____ _", "____ __", "____ ___", "____ ____", "____ ____ _", "____ ____ __", "____ ____ ___", "____ ____ ____", "____ ____ ____ _", "____ ____ ____ __", "____ ____ ____ ___", "____ ____ ____ ____"];
25512
- var moneyFormats = ["", "$0.0_", "$0.__", "$_.__", "$__.__", "$___.__", "$_,___.__", "$__,___.__", "$___,___.__", "$_,___,___.__", "$__,___,___.__", "$___,___,___.__", "$_,___,___,___.__", "$__,___,___,___.__", "$___,___,___,___.__", "$_,___,___,___,___.__"];
25513
- var expirationDateFormats = ["", "_", "__/", "__/_", "__/__"];
25514
- var zipFormat = createFormat(zipFormats, formatDelimiter);
25515
- var creditCardFormat = createFormat(creditCardFormats, formatDelimiter);
25516
- var expirationDateFormat = createFormat(expirationDateFormats, formatDelimiter);
25517
- var phoneFormat = createFormat(phoneFormats, formatDelimiter);
25518
- var moneyFormat = createFormat(moneyFormats, formatDelimiter);
25519
- var renderCardStatus = function renderCardStatus(expirationStatus, expireDate) {
25520
- var textAlign = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "right";
25521
- var as = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "span";
25522
- var ACTIVE = "ACTIVE";
25523
- var EXPIRING_SOON = "EXPIRING_SOON";
25524
- var EXPIRED = "EXPIRED";
25525
- var textMargin = textAlign === "right" ? "auto" : "0";
25526
-
25527
- switch (expirationStatus) {
25528
- case ACTIVE:
25529
- return /*#__PURE__*/React.createElement(Text$1, {
25530
- as: as,
25531
- variant: "pXS",
25532
- color: ASH_GREY,
25533
- extraStyles: "text-align: ".concat(textAlign, "; margin: ").concat(textMargin, ";")
25534
- }, "Exp Date ", expireDate);
25535
-
25536
- case EXPIRING_SOON:
25537
- return /*#__PURE__*/React.createElement(Text$1, {
25538
- as: as,
25539
- variant: "pXS",
25540
- color: FIRE_YELLOW,
25541
- extraStyles: "text-align: ".concat(textAlign, "; margin: ").concat(textMargin, ";")
25542
- }, "Expiring Soon ", expireDate);
25543
-
25544
- case EXPIRED:
25545
- return /*#__PURE__*/React.createElement(Text$1, {
25546
- as: as,
25547
- variant: "pXS",
25548
- color: ASH_GREY,
25549
- extraStyles: "text-align: ".concat(textAlign, "; margin: ").concat(textMargin, ";")
25550
- }, "Expired");
25551
- }
25552
- };
25553
-
25554
- var formats = /*#__PURE__*/Object.freeze({
25555
- __proto__: null,
25556
- formatDelimiter: formatDelimiter,
25557
- phoneFormats: phoneFormats,
25558
- moneyFormats: moneyFormats,
25559
- expirationDateFormats: expirationDateFormats,
25560
- zipFormat: zipFormat,
25561
- creditCardFormat: creditCardFormat,
25562
- expirationDateFormat: expirationDateFormat,
25563
- phoneFormat: phoneFormat,
25564
- moneyFormat: moneyFormat,
25565
- renderCardStatus: renderCardStatus
25566
- });
25567
-
25568
- var useFocusInvalidInput = function useFocusInvalidInput(hasErrors) {
25569
- var resetHasErrors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
25570
- // Only move focus when "hasErrors" is true
25571
- // "hasErrors" is managed by container page of form
25572
- // typically set to "true" on attempted form submission, if errors exist
25573
- // Reset errors, if provided, resets the error state tracking in order to properly re-run
25574
- useEffect$1(function () {
25575
- if (hasErrors) {
25576
- var _inputsWithErrors$;
25577
-
25578
- var inputsWithErrors = document.querySelectorAll("input[aria-invalid=true]");
25579
- inputsWithErrors === null || inputsWithErrors === void 0 ? void 0 : (_inputsWithErrors$ = inputsWithErrors[0]) === null || _inputsWithErrors$ === void 0 ? void 0 : _inputsWithErrors$.focus();
25580
- }
25581
-
25582
- return function () {
25583
- return resetHasErrors(false);
25584
- };
25585
- });
25586
- };
25587
-
25588
- /*
25589
- Hook that assigns a click event listener to the main document element
25590
- Returns a ref to attach to another element (like an icon/button that triggers a popover)
25591
- If a click event gets captured by the document and the assigned element isn't the target
25592
- hook will run whatever handler is passed (eg a function that closes a popover)
25593
-
25594
- See popover component for implementation
25595
-
25596
- */
25597
-
25598
- var useOutsideClickHook = function useOutsideClickHook(handler) {
25599
- var ref = useRef();
25600
- useEffect$1(function () {
25601
- }, [ref]);
25602
- return ref;
25603
- };
25604
-
25605
-
25606
-
25607
- var index$4 = /*#__PURE__*/Object.freeze({
25608
- __proto__: null,
25609
- formats: formats,
25610
- general: general,
25611
- theme: themeUtils,
25612
- useFocusInvalidInput: useFocusInvalidInput,
25613
- useOutsideClick: useOutsideClickHook
25614
- });
25615
-
25616
- var hoverColor$4 = "#116285";
25617
- var activeColor$4 = "#0E506D";
25618
- var popoverTriggerColor = "#15749D";
25619
- var fallbackValues$j = {
25620
- hoverColor: hoverColor$4,
25621
- activeColor: activeColor$4,
25622
- popoverTriggerColor: popoverTriggerColor
25623
- };
25624
-
25625
- var arrowBorder = function arrowBorder(borderColor, direction) {
25626
- var width = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "8px";
25627
- var angle = "".concat(width, " solid transparent");
25628
- var straight = "".concat(width, " solid ").concat(borderColor);
25629
-
25630
- if (direction == "down") {
25631
- return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-top: ").concat(straight);
25632
- } else if (direction == "up") {
25633
- return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-bottom: ").concat(straight);
25634
- } else if (direction == "left") {
25635
- return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-right: ").concat(straight);
25636
- } else if (direction == "right") {
25637
- return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-left: ").concat(straight);
25638
- }
25639
- };
25640
-
25641
- var Popover = function Popover(_ref) {
25642
- var themeValues = _ref.themeValues,
25643
- _ref$triggerText = _ref.triggerText,
25644
- triggerText = _ref$triggerText === void 0 ? "" : _ref$triggerText,
25645
- _ref$content = _ref.content,
25646
- content = _ref$content === void 0 ? "" : _ref$content,
25647
- _ref$hasIcon = _ref.hasIcon,
25648
- hasIcon = _ref$hasIcon === void 0 ? false : _ref$hasIcon,
25649
- Icon = _ref.icon,
25650
- _ref$iconHelpText = _ref.iconHelpText,
25651
- iconHelpText = _ref$iconHelpText === void 0 ? "" : _ref$iconHelpText,
25652
- _ref$popoverID = _ref.popoverID,
25653
- popoverID = _ref$popoverID === void 0 ? 0 : _ref$popoverID,
25654
- _ref$popoverFocus = _ref.popoverFocus,
25655
- popoverFocus = _ref$popoverFocus === void 0 ? false : _ref$popoverFocus,
25656
- extraStyles = _ref.extraStyles,
25657
- textExtraStyles = _ref.textExtraStyles,
25658
- _ref$minWidth = _ref.minWidth,
25659
- minWidth = _ref$minWidth === void 0 ? "250px" : _ref$minWidth,
25660
- _ref$maxWidth = _ref.maxWidth,
25661
- maxWidth = _ref$maxWidth === void 0 ? "300px" : _ref$maxWidth,
25662
- _ref$height = _ref.height,
25663
- height = _ref$height === void 0 ? "auto" : _ref$height,
25664
- position = _ref.position,
25665
- arrowPosition = _ref.arrowPosition,
25666
- _ref$arrowDirection = _ref.arrowDirection,
25667
- arrowDirection = _ref$arrowDirection === void 0 ? "down" : _ref$arrowDirection,
25668
- _ref$transform = _ref.transform,
25669
- transform = _ref$transform === void 0 ? "none" : _ref$transform,
25670
- buttonExtraStyles = _ref.buttonExtraStyles,
25671
- _ref$backgroundColor = _ref.backgroundColor,
25672
- backgroundColor = _ref$backgroundColor === void 0 ? "white" : _ref$backgroundColor,
25673
- _ref$borderColor = _ref.borderColor,
25674
- borderColor = _ref$borderColor === void 0 ? "rgba(255, 255, 255, 0.85)" : _ref$borderColor,
25675
- popoverExtraStyles = _ref.popoverExtraStyles;
25676
- var hoverColor = themeValues.hoverColor,
25677
- activeColor = themeValues.activeColor,
25678
- popoverTriggerColor = themeValues.popoverTriggerColor;
25679
-
25680
- var _ref2 = position !== null && position !== void 0 ? position : {},
25681
- _ref2$top = _ref2.top,
25682
- top = _ref2$top === void 0 ? "-110px" : _ref2$top,
25683
- _ref2$right = _ref2.right,
25684
- right = _ref2$right === void 0 ? "auto" : _ref2$right,
25685
- _ref2$bottom = _ref2.bottom,
25686
- bottom = _ref2$bottom === void 0 ? "auto" : _ref2$bottom,
25687
- _ref2$left = _ref2.left,
25688
- left = _ref2$left === void 0 ? "-225px" : _ref2$left;
25689
-
25690
- var _ref3 = arrowPosition !== null && arrowPosition !== void 0 ? arrowPosition : {},
25691
- _ref3$arrowTop = _ref3.arrowTop,
25692
- arrowTop = _ref3$arrowTop === void 0 ? "auto" : _ref3$arrowTop,
25693
- _ref3$arrowRight = _ref3.arrowRight,
25694
- arrowRight = _ref3$arrowRight === void 0 ? "10px" : _ref3$arrowRight,
25695
- _ref3$arrowBottom = _ref3.arrowBottom,
25696
- arrowBottom = _ref3$arrowBottom === void 0 ? "-8px" : _ref3$arrowBottom,
25697
- _ref3$arrowLeft = _ref3.arrowLeft,
25698
- arrowLeft = _ref3$arrowLeft === void 0 ? "auto" : _ref3$arrowLeft;
25699
-
25700
- var _useState = useState(false),
25701
- _useState2 = _slicedToArray(_useState, 2),
25702
- popoverOpen = _useState2[0],
25703
- togglePopover = _useState2[1];
25704
-
25705
- var handleTogglePopover = function handleTogglePopover(popoverState) {
25706
- if (popoverOpen !== popoverState) {
25707
- togglePopover(popoverState);
25708
- }
25709
- };
25710
-
25711
- var triggerRef = useOutsideClickHook();
25712
- return /*#__PURE__*/React.createElement(Box, {
25713
- padding: "0",
25714
- extraStyles: "position: relative; ".concat(extraStyles)
25715
- }, /*#__PURE__*/React.createElement(ButtonWithAction, {
25716
- action: function action() {
25717
- return noop;
25718
- },
25719
- onFocus: function onFocus() {
25720
- handleTogglePopover(true);
25721
- },
25722
- onBlur: function onBlur() {
25723
- handleTogglePopover(false);
25724
- },
25725
- onKeyDown: function onKeyDown(e) {
25726
- if (e.keyCode === 27) {
25727
- handleTogglePopover(false);
25728
- }
25729
- },
25730
- onTouchStart: function onTouchStart() {
25731
- return handleTogglePopover(true);
25732
- },
25733
- onTouchEnd: function onTouchEnd() {
25734
- return handleTogglePopover(false);
25735
- },
25736
- onMouseEnter: function onMouseEnter() {
25737
- return handleTogglePopover(true);
25738
- },
25739
- onMouseLeave: function onMouseLeave() {
25740
- return handleTogglePopover(false);
25741
- },
25742
- contentOverride: true,
25743
- variant: "smallGhost",
25744
- tabIndex: "0",
25745
- id: "btnPopover".concat(popoverID),
25746
- "aria-expanded": popoverOpen,
25747
- "aria-labelledby": "btnPopover".concat(popoverID, "_info Disclosure").concat(popoverID),
25748
- "aria-describedby": "Disclosure".concat(popoverID),
25749
- "aria-controls": "Disclosed".concat(popoverID),
25750
- ref: triggerRef,
25751
- extraStyles: buttonExtraStyles
25752
- }, hasIcon && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Icon, null), /*#__PURE__*/React.createElement(Box, {
25753
- padding: "0",
25754
- srOnly: true
25755
- }, /*#__PURE__*/React.createElement(Text$1, {
25756
- id: "btnPopover".concat(popoverID, "_info")
25757
- }, iconHelpText))), !hasIcon && /*#__PURE__*/React.createElement(Text$1, {
25758
- color: popoverTriggerColor,
25759
- extraStyles: "&:active { color: ".concat(activeColor, "; } &:hover { color: ").concat(hoverColor, " }; ").concat(textExtraStyles)
25760
- }, triggerText)), /*#__PURE__*/React.createElement(Box, {
25761
- background: backgroundColor,
25762
- borderRadius: "4px",
25763
- boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)",
25764
- id: "Disclosed".concat(popoverID),
25765
- role: "region",
25766
- "aria-describedby": "Disclosure".concat(popoverID),
25767
- tabIndex: popoverFocus && popoverOpen ? "0" : "-1",
25768
- minWidth: minWidth,
25769
- maxWidth: maxWidth,
25770
- 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 ")
25771
- }, /*#__PURE__*/React.createElement(Paragraph$1, null, content), /*#__PURE__*/React.createElement(Box, {
25772
- padding: "0",
25773
- 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 ")
25774
- })));
25775
- };
25776
-
25777
- var Popover$1 = themeComponent(Popover, "Popover", fallbackValues$j);
25778
-
25779
- var DisplayCard = function DisplayCard(_ref) {
25780
- var title = _ref.title,
25781
- item = _ref.item,
25782
- buttonText = _ref.buttonText,
25783
- buttonAction = _ref.buttonAction,
25784
- url = _ref.url,
25785
- _ref$link = _ref.link,
25786
- link = _ref$link === void 0 ? false : _ref$link,
25787
- helpText = _ref.helpText,
25788
- _ref$hasPopover = _ref.hasPopover,
25789
- hasPopover = _ref$hasPopover === void 0 ? false : _ref$hasPopover,
25790
- _ref$popoverTriggerTe = _ref.popoverTriggerText,
25791
- popoverTriggerText = _ref$popoverTriggerTe === void 0 ? "" : _ref$popoverTriggerTe,
25792
- _ref$popoverContent = _ref.popoverContent,
25793
- popoverContent = _ref$popoverContent === void 0 ? "" : _ref$popoverContent,
25794
- popoverExtraStyles = _ref.popoverExtraStyles,
25795
- popoverTextExtraStyles = _ref.popoverTextExtraStyles;
25796
- return /*#__PURE__*/React.createElement(Box, {
25797
- padding: "0 0 16px"
25798
- }, /*#__PURE__*/React.createElement(Stack, {
25799
- childGap: "0rem"
25800
- }, /*#__PURE__*/React.createElement(Box, {
25801
- padding: "0 0 8px 0"
25802
- }, /*#__PURE__*/React.createElement(Cluster, {
25803
- justify: "space-between",
25804
- align: "center",
25805
- overflow: true
25806
- }, /*#__PURE__*/React.createElement(Paragraph$1, {
25807
- variant: "pL",
25808
- color: CHARADE_GREY,
25809
- extraStyles: "letter-spacing: 0.29px"
25810
- }, title), hasPopover && /*#__PURE__*/React.createElement(Popover$1, {
25811
- triggerText: popoverTriggerText,
25812
- content: popoverContent,
25813
- popoverExtraStyles: popoverExtraStyles,
25814
- popoverTextExtraStyles: popoverTextExtraStyles
25815
- }))), /*#__PURE__*/React.createElement(Box, {
25816
- padding: "0"
25817
- }, /*#__PURE__*/React.createElement(Box, {
25818
- padding: "24px",
25819
- borderSize: "1px",
25820
- borderRadius: "4px",
25821
- background: WHITE,
25822
- boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)"
25823
- }, /*#__PURE__*/React.createElement(Cluster, {
25824
- justify: "space-between",
25825
- align: "center"
25826
- }, /*#__PURE__*/React.createElement(Text$1, {
25827
- color: CHARADE_GREY
25828
- }, item), link ? /*#__PURE__*/React.createElement(ButtonWithLink, {
25829
- text: buttonText,
25830
- url: url,
25831
- variant: "smallGhost",
25832
- dataQa: buttonText,
25833
- extraStyles: "min-width: 0;"
25834
- }) : buttonAction ? /*#__PURE__*/React.createElement(ButtonWithAction, {
25835
- text: buttonText,
25836
- action: buttonAction,
25837
- variant: "smallGhost",
25838
- dataQa: buttonText,
25839
- extraStyles: "min-width: 0;"
25840
- }) : helpText ? /*#__PURE__*/React.createElement(Text$1, {
25841
- color: STORM_GREY,
25842
- extraStyles: "font-style: italic;"
25843
- }, helpText) : /*#__PURE__*/React.createElement(Fragment$1, null))))));
25844
- };
25845
-
25846
25902
  var linkColor$2 = {
25847
25903
  "default": "".concat(MATISSE_BLUE),
25848
25904
  disabled: "".concat(MATISSE_BLUE)
@@ -25908,7 +25964,7 @@ var fallbackValues$k = {
25908
25964
  };
25909
25965
 
25910
25966
  var _excluded$p = ["showErrors", "themeValues"],
25911
- _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired"];
25967
+ _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa"];
25912
25968
  var InputField = styled.input.withConfig({
25913
25969
  displayName: "FormInput__InputField",
25914
25970
  componentId: "sc-l094r1-0"
@@ -25995,12 +26051,8 @@ var FormInput = function FormInput(_ref15) {
25995
26051
  removeFromValue = _ref15.removeFromValue,
25996
26052
  _ref15$dataQa = _ref15.dataQa,
25997
26053
  dataQa = _ref15$dataQa === void 0 ? null : _ref15$dataQa,
25998
- _ref15$isRequired = _ref15.isRequired,
25999
- isRequired = _ref15$isRequired === void 0 ? false : _ref15$isRequired,
26000
26054
  props = _objectWithoutProperties(_ref15, _excluded2);
26001
26055
 
26002
- var required = isRequired || (props === null || props === void 0 ? void 0 : props.required);
26003
-
26004
26056
  var _useState = useState(false),
26005
26057
  _useState2 = _slicedToArray(_useState, 2),
26006
26058
  showPassword = _useState2[0],
@@ -26085,8 +26137,7 @@ var FormInput = function FormInput(_ref15) {
26085
26137
  $customHeight: customHeight,
26086
26138
  $extraStyles: extraStyles,
26087
26139
  "data-qa": dataQa || labelTextWhenNoError,
26088
- autoComplete: autocompleteValue,
26089
- required: required
26140
+ autoComplete: autocompleteValue
26090
26141
  }, props)) : /*#__PURE__*/React.createElement(InputField, _extends({
26091
26142
  "aria-labelledby": createIdFromString(labelTextWhenNoError),
26092
26143
  "aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
@@ -26105,8 +26156,7 @@ var FormInput = function FormInput(_ref15) {
26105
26156
  $customHeight: customHeight,
26106
26157
  $extraStyles: extraStyles,
26107
26158
  "data-qa": dataQa || labelTextWhenNoError,
26108
- autoComplete: autocompleteValue,
26109
- required: required
26159
+ autoComplete: autocompleteValue
26110
26160
  }, props))), /*#__PURE__*/React.createElement(Stack, {
26111
26161
  direction: "row",
26112
26162
  justify: "space-between",
@@ -26315,6 +26365,66 @@ var fallbackValues$n = {
26315
26365
  autopayTextColor: autopayTextColor$1
26316
26366
  };
26317
26367
 
26368
+ var formatDelimiter = "_";
26369
+ var phoneFormats = ["", "_", "__", "(___) ", "(___) _", "(___) __", "(___) ___-", "(___) ___-_", "(___) ___-__", "(___) ___-___", "(___) ___-____"];
26370
+ var zipFormats = ["", "_", "__", "___", "____", "_____", "______", "_____-__", "_____-___", "_____-____"];
26371
+ var creditCardFormats = ["", "_", "__", "___", "____", "____ _", "____ __", "____ ___", "____ ____", "____ ____ _", "____ ____ __", "____ ____ ___", "____ ____ ____", "____ ____ ____ _", "____ ____ ____ __", "____ ____ ____ ___", "____ ____ ____ ____"];
26372
+ var moneyFormats = ["", "$0.0_", "$0.__", "$_.__", "$__.__", "$___.__", "$_,___.__", "$__,___.__", "$___,___.__", "$_,___,___.__", "$__,___,___.__", "$___,___,___.__", "$_,___,___,___.__", "$__,___,___,___.__", "$___,___,___,___.__", "$_,___,___,___,___.__"];
26373
+ var expirationDateFormats = ["", "_", "__/", "__/_", "__/__"];
26374
+ var zipFormat = createFormat(zipFormats, formatDelimiter);
26375
+ var creditCardFormat = createFormat(creditCardFormats, formatDelimiter);
26376
+ var expirationDateFormat = createFormat(expirationDateFormats, formatDelimiter);
26377
+ var phoneFormat = createFormat(phoneFormats, formatDelimiter);
26378
+ var moneyFormat = createFormat(moneyFormats, formatDelimiter);
26379
+ var renderCardStatus = function renderCardStatus(expirationStatus, expireDate) {
26380
+ var textAlign = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "right";
26381
+ var as = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "span";
26382
+ var ACTIVE = "ACTIVE";
26383
+ var EXPIRING_SOON = "EXPIRING_SOON";
26384
+ var EXPIRED = "EXPIRED";
26385
+ var textMargin = textAlign === "right" ? "auto" : "0";
26386
+
26387
+ switch (expirationStatus) {
26388
+ case ACTIVE:
26389
+ return /*#__PURE__*/React.createElement(Text$1, {
26390
+ as: as,
26391
+ variant: "pXS",
26392
+ color: ASH_GREY,
26393
+ extraStyles: "text-align: ".concat(textAlign, "; margin: ").concat(textMargin, ";")
26394
+ }, "Exp Date ", expireDate);
26395
+
26396
+ case EXPIRING_SOON:
26397
+ return /*#__PURE__*/React.createElement(Text$1, {
26398
+ as: as,
26399
+ variant: "pXS",
26400
+ color: FIRE_YELLOW,
26401
+ extraStyles: "text-align: ".concat(textAlign, "; margin: ").concat(textMargin, ";")
26402
+ }, "Expiring Soon ", expireDate);
26403
+
26404
+ case EXPIRED:
26405
+ return /*#__PURE__*/React.createElement(Text$1, {
26406
+ as: as,
26407
+ variant: "pXS",
26408
+ color: ASH_GREY,
26409
+ extraStyles: "text-align: ".concat(textAlign, "; margin: ").concat(textMargin, ";")
26410
+ }, "Expired");
26411
+ }
26412
+ };
26413
+
26414
+ var formats = /*#__PURE__*/Object.freeze({
26415
+ __proto__: null,
26416
+ formatDelimiter: formatDelimiter,
26417
+ phoneFormats: phoneFormats,
26418
+ moneyFormats: moneyFormats,
26419
+ expirationDateFormats: expirationDateFormats,
26420
+ zipFormat: zipFormat,
26421
+ creditCardFormat: creditCardFormat,
26422
+ expirationDateFormat: expirationDateFormat,
26423
+ phoneFormat: phoneFormat,
26424
+ moneyFormat: moneyFormat,
26425
+ renderCardStatus: renderCardStatus
26426
+ });
26427
+
26318
26428
  var CreditCardWrapper = styled.div.withConfig({
26319
26429
  displayName: "FormattedCreditCard__CreditCardWrapper",
26320
26430
  componentId: "sc-s0ta5l-0"
@@ -27288,9 +27398,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
27288
27398
  _ref2$ariaLabelledBy = _ref2.ariaLabelledBy,
27289
27399
  ariaLabelledBy = _ref2$ariaLabelledBy === void 0 ? "" : _ref2$ariaLabelledBy,
27290
27400
  _ref2$ariaLabel = _ref2.ariaLabel,
27291
- ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel,
27292
- _ref2$required = _ref2.required,
27293
- required = _ref2$required === void 0 ? false : _ref2$required;
27401
+ ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel;
27294
27402
  var buttonBorder = {
27295
27403
  onFocused: {
27296
27404
  borderColor: themeValues.activeColor,
@@ -27350,8 +27458,6 @@ var RadioButton$1 = function RadioButton(_ref2) {
27350
27458
  type: "radio",
27351
27459
  id: "radio-".concat(name),
27352
27460
  disabled: disabled,
27353
- required: required,
27354
- "aria-required": required,
27355
27461
  onClick: toggleRadio,
27356
27462
  "aria-describedby": ariaDescribedBy,
27357
27463
  tabIndex: "-1"
@@ -38044,9 +38150,7 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
38044
38150
  field = _ref.field,
38045
38151
  fieldActions = _ref.fieldActions,
38046
38152
  showErrors = _ref.showErrors,
38047
- countryCode = _ref.countryCode,
38048
- _ref$isRequired = _ref.isRequired,
38049
- isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
38153
+ countryCode = _ref.countryCode;
38050
38154
  var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
38051
38155
  var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
38052
38156
  return /*#__PURE__*/React.createElement(FormSelect$1, {
@@ -38056,8 +38160,7 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
38056
38160
  labelTextWhenNoError: labelTextWhenNoError,
38057
38161
  errorMessages: errorMessages,
38058
38162
  showErrors: showErrors,
38059
- autocompleteValue: "address-level1",
38060
- isRequired: isRequired
38163
+ autocompleteValue: "address-level1"
38061
38164
  });
38062
38165
  };
38063
38166
 
@@ -39383,7 +39486,6 @@ var AddressForm = function AddressForm(_ref) {
39383
39486
  labelTextWhenNoError: "Country",
39384
39487
  errorMessages: countryErrorMessages,
39385
39488
  field: fields.country,
39386
- isRequired: true,
39387
39489
  onChange: function onChange(value) {
39388
39490
  actions.fields.country.set(value); // temporary measure to not dirty fields until
39389
39491
  // we can write a reset function for fields
@@ -39408,8 +39510,7 @@ var AddressForm = function AddressForm(_ref) {
39408
39510
  return e.key === "Enter" && handleSubmit(e);
39409
39511
  },
39410
39512
  autocompleteValue: "address-line1",
39411
- dataQa: "Address",
39412
- isRequired: true
39513
+ dataQa: "Address"
39413
39514
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39414
39515
  labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
39415
39516
  field: fields.street2,
@@ -39419,8 +39520,7 @@ var AddressForm = function AddressForm(_ref) {
39419
39520
  return e.key === "Enter" && handleSubmit(e);
39420
39521
  },
39421
39522
  autocompleteValue: "address-line2",
39422
- dataQa: "Address Line 2",
39423
- isRequired: false
39523
+ dataQa: "Address Line 2"
39424
39524
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39425
39525
  labelTextWhenNoError: "City",
39426
39526
  errorMessages: cityErrorMessages,
@@ -39431,8 +39531,7 @@ var AddressForm = function AddressForm(_ref) {
39431
39531
  return e.key === "Enter" && handleSubmit(e);
39432
39532
  },
39433
39533
  autocompleteValue: "address-level2",
39434
- dataQa: "City",
39435
- isRequired: true
39534
+ dataQa: "City"
39436
39535
  }), /*#__PURE__*/React.createElement(FormStateDropdown, {
39437
39536
  labelTextWhenNoError: isUS ? "State" : "State or Province",
39438
39537
  errorMessages: stateProvinceErrorMessages,
@@ -39443,8 +39542,7 @@ var AddressForm = function AddressForm(_ref) {
39443
39542
  onKeyDown: function onKeyDown(e) {
39444
39543
  return e.key === "Enter" && handleSubmit(e);
39445
39544
  },
39446
- dataQa: "State or Province",
39447
- isRequired: true
39545
+ dataQa: "State or Province"
39448
39546
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39449
39547
  isNum: isUS,
39450
39548
  formatter: isUS ? zipFormat : null,
@@ -39457,8 +39555,7 @@ var AddressForm = function AddressForm(_ref) {
39457
39555
  return e.key === "Enter" && handleSubmit(e);
39458
39556
  },
39459
39557
  autocompleteValue: "postal-code",
39460
- dataQa: "Zip code",
39461
- isRequired: true
39558
+ dataQa: "Zip code"
39462
39559
  }), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
39463
39560
  name: "address checkbox",
39464
39561
  title: "Save address to wallet",
@@ -47743,8 +47840,7 @@ var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
47743
47840
  title: "Terms and Conditions",
47744
47841
  error: error,
47745
47842
  checked: isChecked,
47746
- onChange: onCheck,
47747
- isRequired: true
47843
+ onChange: onCheck
47748
47844
  }), /*#__PURE__*/React.createElement(Box, {
47749
47845
  padding: "0 0 0 58px"
47750
47846
  }, /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(Box, {
@@ -47758,43 +47854,6 @@ var TermsAndConditionsControlV1 = function TermsAndConditionsControlV1(_ref) {
47758
47854
  })))));
47759
47855
  };
47760
47856
 
47761
- /*
47762
- Hook that takes an ID selector for an element on the screen
47763
- And optionally values for top position, left position, smooth behavior
47764
- Finds element on screen and scrolls it to the provided coordinates
47765
-
47766
- (string, number, number, string, number) => undefined;
47767
- */
47768
- var useScrollTo = function useScrollTo(id) {
47769
- var top = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
47770
- var left = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
47771
- var behavior = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "auto";
47772
- var delay = arguments.length > 4 ? arguments[4] : undefined;
47773
- var scrollItem;
47774
-
47775
- if (delay) {
47776
- setTimeout(function () {
47777
- var _scrollItem;
47778
-
47779
- scrollItem = document.getElementById(id);
47780
- (_scrollItem = scrollItem) === null || _scrollItem === void 0 ? void 0 : _scrollItem.scrollTo({
47781
- top: top,
47782
- left: left,
47783
- behavior: behavior
47784
- });
47785
- }, delay);
47786
- } else {
47787
- var _scrollItem2;
47788
-
47789
- scrollItem = document.getElementById(id);
47790
- (_scrollItem2 = scrollItem) === null || _scrollItem2 === void 0 ? void 0 : _scrollItem2.scrollTo({
47791
- top: top,
47792
- left: left,
47793
- behavior: behavior
47794
- });
47795
- }
47796
- };
47797
-
47798
47857
  var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
47799
47858
  var _ref$showCheckbox = _ref.showCheckbox,
47800
47859
  showCheckbox = _ref$showCheckbox === void 0 ? true : _ref$showCheckbox,
@@ -47857,8 +47916,7 @@ var TermsAndConditionsControlV2 = function TermsAndConditionsControlV2(_ref) {
47857
47916
  checked: isChecked,
47858
47917
  onChange: onCheck,
47859
47918
  checkboxMargin: checkboxMargin,
47860
- extraStyles: "align-self: flex-start;",
47861
- isRequired: true
47919
+ extraStyles: "align-self: flex-start;"
47862
47920
  }), /*#__PURE__*/React.createElement(Stack, {
47863
47921
  childGap: "0.25rem",
47864
47922
  fullHeight: true
@@ -47964,8 +48022,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47964
48022
  onKeyDown: function onKeyDown(e) {
47965
48023
  return e.key === "Enter" && handleSubmit(e);
47966
48024
  },
47967
- autocompleteValue: "name",
47968
- isRequired: true
48025
+ autocompleteValue: "name"
47969
48026
  }), /*#__PURE__*/React.createElement(FormInput$1, {
47970
48027
  labelTextWhenNoError: "Routing number",
47971
48028
  dataQa: "Routing number",
@@ -47987,8 +48044,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47987
48044
  },
47988
48045
  onKeyDown: function onKeyDown(e) {
47989
48046
  return e.key === "Enter" && handleSubmit(e);
47990
- },
47991
- isRequired: true
48047
+ }
47992
48048
  }), /*#__PURE__*/React.createElement(FormInput$1, {
47993
48049
  labelTextWhenNoError: "Confirm routing number",
47994
48050
  dataQa: "Confirm routing number",
@@ -47999,7 +48055,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47999
48055
  onKeyDown: function onKeyDown(e) {
48000
48056
  return e.key === "Enter" && handleSubmit(e);
48001
48057
  },
48002
- isRequired: true,
48003
48058
  isNum: true
48004
48059
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48005
48060
  labelTextWhenNoError: "Account number",
@@ -48008,7 +48063,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48008
48063
  field: fields.accountNumber,
48009
48064
  fieldActions: actions.fields.accountNumber,
48010
48065
  showErrors: showErrors,
48011
- isRequired: true,
48012
48066
  isNum: true,
48013
48067
  helperModal: function helperModal() {
48014
48068
  return /*#__PURE__*/React.createElement(AccountAndRoutingModal$1, {
@@ -48027,7 +48081,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48027
48081
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48028
48082
  labelTextWhenNoError: "Confirm account number",
48029
48083
  dataQa: "Confirm account number",
48030
- isRequired: true,
48031
48084
  errorMessages: confirmAccountNumberErrors,
48032
48085
  field: fields.confirmAccountNumber,
48033
48086
  fieldActions: actions.fields.confirmAccountNumber,
@@ -48038,7 +48091,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48038
48091
  isNum: true
48039
48092
  }), allowBankAccountType && /*#__PURE__*/React.createElement(FormSelect$1, {
48040
48093
  labelTextWhenNoError: "Account type",
48041
- isRequired: true,
48042
48094
  dataQa: "Account type",
48043
48095
  options: [{
48044
48096
  text: "Select account type",
@@ -48076,8 +48128,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48076
48128
  version: "v2",
48077
48129
  showCheckbox: false,
48078
48130
  description: "View",
48079
- terms: termsContent,
48080
- isRequired: true
48131
+ terms: termsContent
48081
48132
  })))));
48082
48133
  };
48083
48134
 
@@ -48170,7 +48221,6 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48170
48221
  "aria-label": "Card payment"
48171
48222
  }, /*#__PURE__*/React.createElement(FormInputColumn, null, !hideZipCode && /*#__PURE__*/React.createElement(CountryDropdown, {
48172
48223
  labelTextWhenNoError: "Country",
48173
- isRequired: true,
48174
48224
  errorMessages: countryErrorMessages,
48175
48225
  field: fields.country,
48176
48226
  onChange: function onChange(value) {
@@ -48193,8 +48243,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48193
48243
  onKeyDown: function onKeyDown(e) {
48194
48244
  return e.key === "Enter" && handleSubmit(e);
48195
48245
  },
48196
- autocompleteValue: "cc-name",
48197
- isRequired: true
48246
+ autocompleteValue: "cc-name"
48198
48247
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48199
48248
  labelTextWhenNoError: "Credit card number",
48200
48249
  dataQa: "Credit card number",
@@ -48207,8 +48256,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48207
48256
  return e.key === "Enter" && handleSubmit(e);
48208
48257
  },
48209
48258
  isNum: true,
48210
- autocompleteValue: "cc-number",
48211
- isRequired: true
48259
+ autocompleteValue: "cc-number"
48212
48260
  }), /*#__PURE__*/React.createElement(FormInputRow, {
48213
48261
  breakpoint: isMobile ? "1000rem" : "21rem",
48214
48262
  childGap: isMobile ? "0rem" : "1rem"
@@ -48226,8 +48274,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48226
48274
  isNum: true,
48227
48275
  removeFromValue: /\// // removes "/" from browser autofill
48228
48276
  ,
48229
- autocompleteValue: "cc-exp",
48230
- isRequired: true
48277
+ autocompleteValue: "cc-exp"
48231
48278
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48232
48279
  labelTextWhenNoError: "CVV",
48233
48280
  dataQa: "CVV",
@@ -48240,8 +48287,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48240
48287
  onKeyDown: function onKeyDown(e) {
48241
48288
  return e.key === "Enter" && handleSubmit(e);
48242
48289
  },
48243
- autocompleteValue: "cc-csc",
48244
- isRequired: true
48290
+ autocompleteValue: "cc-csc"
48245
48291
  })), !hideZipCode && /*#__PURE__*/React.createElement(Box, {
48246
48292
  padding: isMobile ? "0" : "0 0.5rem 0 0",
48247
48293
  width: isMobile ? "100%" : "50%"
@@ -48257,8 +48303,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48257
48303
  onKeyDown: function onKeyDown(e) {
48258
48304
  return e.key === "Enter" && handleSubmit(e);
48259
48305
  },
48260
- autocompleteValue: "billing postal-code",
48261
- isRequired: true
48306
+ autocompleteValue: "billing postal-code"
48262
48307
  })), (showWalletCheckbox || showTerms) && /*#__PURE__*/React.createElement(Cluster, {
48263
48308
  childGap: "4px",
48264
48309
  align: "center"
@@ -48274,8 +48319,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48274
48319
  version: "v2",
48275
48320
  showCheckbox: false,
48276
48321
  description: "View",
48277
- terms: termsContent,
48278
- isRequired: true
48322
+ terms: termsContent
48279
48323
  })))));
48280
48324
  };
48281
48325
 
@@ -48728,8 +48772,7 @@ var RadioSection = function RadioSection(_ref) {
48728
48772
  toggleRadio: section.disabled ? noop : function () {
48729
48773
  return toggleOpenSection(section.id);
48730
48774
  },
48731
- tabIndex: "-1",
48732
- required: section === null || section === void 0 ? void 0 : section.required
48775
+ tabIndex: "-1"
48733
48776
  })), section.titleIcon && /*#__PURE__*/React.createElement(Cluster, {
48734
48777
  align: "center"
48735
48778
  }, section.titleIcon), /*#__PURE__*/React.createElement(Box, {
@@ -48741,7 +48784,7 @@ var RadioSection = function RadioSection(_ref) {
48741
48784
  }, section.title))), section.rightIcons && /*#__PURE__*/React.createElement(Cluster, {
48742
48785
  childGap: "0.5rem",
48743
48786
  "aria-label": (section === null || section === void 0 ? void 0 : section.rightIconsLabel) || null,
48744
- role: (section === null || section === void 0 ? void 0 : section.rightIconsRole) || "group"
48787
+ role: (section === null || section === void 0 ? void 0 : section.rightIconsRole) || null
48745
48788
  }, section.rightIcons.map(function (icon) {
48746
48789
  return /*#__PURE__*/React.createElement(RightIcon, {
48747
48790
  src: icon.img,
@@ -49248,6 +49291,51 @@ var Timeout = function Timeout(_ref) {
49248
49291
 
49249
49292
  var Timeout$1 = withWindowSize(Timeout);
49250
49293
 
49294
+ var VARIANTS = {
49295
+ SUCCESS: "success",
49296
+ ERROR: "error"
49297
+ };
49298
+
49299
+ var ToastNotification = function ToastNotification(_ref) {
49300
+ var _ref$variant = _ref.variant,
49301
+ variant = _ref$variant === void 0 ? VARIANTS.SUCCESS : _ref$variant,
49302
+ _ref$message = _ref.message,
49303
+ message = _ref$message === void 0 ? "" : _ref$message,
49304
+ toastOpen = _ref.toastOpen,
49305
+ closeToastNotification = _ref.closeToastNotification,
49306
+ extraStyles = _ref.extraStyles,
49307
+ _ref$minWidth = _ref.minWidth,
49308
+ minWidth = _ref$minWidth === void 0 ? "112px" : _ref$minWidth,
49309
+ _ref$maxWidth = _ref.maxWidth,
49310
+ maxWidth = _ref$maxWidth === void 0 ? "350px" : _ref$maxWidth,
49311
+ _ref$height = _ref.height,
49312
+ height = _ref$height === void 0 ? "56px" : _ref$height,
49313
+ _ref$childGap = _ref.childGap,
49314
+ childGap = _ref$childGap === void 0 ? "1rem" : _ref$childGap,
49315
+ backgroundColor = _ref.backgroundColor;
49316
+ return /*#__PURE__*/React.createElement(Box, {
49317
+ onClick: closeToastNotification,
49318
+ background: backgroundColor ? backgroundColor : variant === VARIANTS.SUCCESS ? HINT_GREEN : variant === VARIANTS.ERROR ? ERROR_BACKGROUND_COLOR : WHITE,
49319
+ minWidth: minWidth,
49320
+ minHeight: height && parseInt(height) < 100 ? height : "100px",
49321
+ height: height ? height : "auto",
49322
+ tabIndex: toastOpen ? "-1" : "0",
49323
+ padding: "0rem 1rem",
49324
+ borderRadius: "4px",
49325
+ boxShadow: generateShadows().standard.base,
49326
+ extraStyles: "\n display: ".concat(toastOpen ? "block" : "none", ";\n position: fixed; bottom: 4rem; left: 4rem;\n ").concat(extraStyles, ";\n cursor: pointer;\n ")
49327
+ }, /*#__PURE__*/React.createElement(Cluster, {
49328
+ align: "center",
49329
+ childGap: childGap
49330
+ }, variant === VARIANTS.SUCCESS && /*#__PURE__*/React.createElement(SuccessfulIconMedium, null), variant === VARIANTS.ERROR && /*#__PURE__*/React.createElement(ErroredIcon, null), /*#__PURE__*/React.createElement(Box, {
49331
+ padding: "1rem 0",
49332
+ maxWidth: maxWidth
49333
+ }, /*#__PURE__*/React.createElement(Paragraph$1, {
49334
+ weight: FONT_WEIGHT_SEMIBOLD,
49335
+ extraStyles: "word-break: break-word;"
49336
+ }, message)), /*#__PURE__*/React.createElement(IconQuitLarge, null)));
49337
+ };
49338
+
49251
49339
  var fontWeight$9 = "600";
49252
49340
  var fontColor$1 = WHITE;
49253
49341
  var textAlign$1 = "left";
@@ -49620,5 +49708,37 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
49620
49708
 
49621
49709
  var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$U));
49622
49710
 
49623
- export { AccountNumberImage, AccountsAddIcon$1 as AccountsAddIcon, AccountsIcon$1 as AccountsIcon, AccountsIconSmall$1 as AccountsIconSmall, AchReturnIcon, AddObligation$1 as AddObligation, AddressForm, Alert$1 as Alert, AllocatedIcon, AmountCallout$1 as AmountCallout, ArrowDownCircleIconSmall, ArrowLeftCircleIconMedium, ArrowLeftCircleIconSmall, ArrowRightCircleIconSmall, ArrowRightIcon, ArrowUpCircleIconSmall, AutopayIcon, AutopayOnIcon, Badge$1 as Badge, BankIcon, BankIconLarge, Banner$1 as Banner, Box, BoxWithShadow$1 as BoxWithShadow, Breadcrumbs as Breadcrumb, ButtonWithAction, ButtonWithLink, CalendarIcon, Card$1 as Card, CarrotIcon$1 as CarrotIcon, CashIcon, Center, CenterSingle$1 as CenterSingle, CenterStack$1 as CenterStack, ChangePasswordForm, ChargebackIcon, ChargebackIconMedium, ChargebackIconSmall, ChargebackReversalIcon, ChargebackReversalIconMedium, ChargebackReversalIconSmall, CheckIcon, Checkbox$1 as Checkbox, CheckboxList$1 as CheckboxList, CheckmarkIcon, ChevronIcon$1 as ChevronIcon, Cluster, CollapsibleSection$1 as CollapsibleSection, Copyable, CountryDropdown, Cover, CustomerSearchIcon, DefaultPageTemplate, Detail$1 as Detail, DisplayBox$1 as DisplayBox, DisplayCard, Dropdown$1 as Dropdown, DuplicateIcon, EditNameForm, EditableList, EditableTable, EmailForm, EmptyCartIcon$1 as EmptyCartIcon, ErroredIcon, ExternalLink, ExternalLinkIcon, FailedIcon, FindIconSmall$1 as FindIconSmall, FooterWithSubfooter$1 as FooterWithSubfooter, ForgotPasswordForm, ForgotPasswordIcon$1 as ForgotPasswordIcon, FormContainer$1 as FormContainer, FormFooterPanel$1 as FormFooterPanel, FormInput$1 as FormInput, FormInputColumn, FormInputRow, FormSelect$1 as FormSelect, FormattedAddress$1 as FormattedAddress, FormattedBankAccount$1 as FormattedBankAccount, FormattedCreditCard$1 as FormattedCreditCard, Frame, GenericCard, GenericCardLarge, GenericErrorIcon, GoToEmailIcon$1 as GoToEmailIcon, Grid, GuidedCheckoutImage, HamburgerButton, Heading$1 as Heading, HighlightTabRow$1 as HighlightTabRow, HistoryIconSmall$1 as HistoryIconSmall, IconAdd, IconQuitLarge, ImageBox, Imposter, InternalLink, Jumbo$1 as Jumbo, KioskImage, LabeledAmount$1 as LabeledAmount, LineItem$1 as LineItem, LinkCard$1 as LinkCard, Loading, LoadingLine, LoginForm, Modal$1 as Modal, Module$1 as Module, Motion, NavFooter, NavHeader, NavMenuDesktop$1 as NavMenuDesktop, NavMenuMobile$1 as NavMenuMobile, NavTabs, NoCustomerResultsIcon, NoPaymentResultsIcon, NotFoundIcon, Obligation, iconsMap as ObligationIcons, Pagination$1 as Pagination, Paragraph$1 as Paragraph, PartialAmountForm, PasswordRequirements, PaymentButtonBar, PaymentDetails$1 as PaymentDetails, PaymentFormACH, PaymentFormCard$1 as PaymentFormCard, PaymentMethodAddIcon$1 as PaymentMethodAddIcon, PaymentMethodIcon$1 as PaymentMethodIcon, PaymentSearchIcon, PaymentsIconSmall$1 as PaymentsIconSmall, PencilIcon$1 as PencilIcon, PendingIcon, PeriscopeDashboardIframe, PeriscopeFailedIcon, PhoneForm, Placeholder$1 as Placeholder, PlusCircleIcon, PointOfSaleImage, Popover$1 as Popover, ProcessingFee$1 as ProcessingFee, ProfileIcon$1 as ProfileIcon, ProfileIconSmall$1 as ProfileIconSmall, ProfileImage, PropertiesAddIcon$1 as PropertiesAddIcon, PropertiesIconSmall$1 as PropertiesIconSmall, RadioButton$2 as RadioButton, RadioButtonWithLabel$1 as RadioButtonWithLabel, RadioGroup, RadioSection$1 as RadioSection, Reel, RefundIcon, RefundIconMedium, RefundIconSmall, RegistrationForm, RejectedIcon, RejectedVelocityIcon, ResetConfirmationForm$1 as ResetConfirmationForm, ResetPasswordForm, ResetPasswordIcon, ResetPasswordSuccess, RevenueManagementImage, RoutingNumberImage, SearchIcon, SearchableSelect$1 as SearchableSelect, SettingsIconSmall$1 as SettingsIconSmall, ShoppingCartIcon, Sidebar, SidebarSingleContent$1 as SidebarSingleContent, SidebarStackContent$1 as SidebarStackContent, SolidDivider$1 as SolidDivider, Spinner$2 as Spinner, Stack, StandardCheckoutImage, FormStateDropdown as StateProvinceDropdown, StatusUnknownIcon, SuccessfulIcon, SuccessfulIconMedium, SuccessfulIconSmall, Switcher, TabSidebar$1 as TabSidebar, Table_styled as Table, TableBody_styled as TableBody, TableCell_styled as TableCell, TableHead$1 as TableHead, TableHeading_styled as TableHeading, TableListItem, TableRow$1 as TableRow, Tabs$1 as Tabs, TermsAndConditions, TermsAndConditionsModal$1 as TermsAndConditionsModal, Text$1 as Text, Timeout$1 as Timeout, TimeoutImage, Title$1 as Title, ToggleSwitch$1 as ToggleSwitch, TrashIcon$1 as TrashIcon, TypeaheadInput, VerifiedEmailIcon$1 as VerifiedEmailIcon, VoidedIcon, WalletBannerIcon$1 as WalletBannerIcon, WalletIcon$1 as WalletIcon, WalletIconSmall$1 as WalletIconSmall, WarningIconXS, WelcomeModule$1 as WelcomeModule, WorkflowTile, XCircleIconMedium, XCircleIconSmall, cardRegistry, index$5 as constants, createPartialAmountFormState, createPartialAmountFormValidators, index$4 as util, withWindowSize };
49711
+ var useFocusInvalidInput = function useFocusInvalidInput(hasErrors) {
49712
+ var resetHasErrors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
49713
+ // Only move focus when "hasErrors" is true
49714
+ // "hasErrors" is managed by container page of form
49715
+ // typically set to "true" on attempted form submission, if errors exist
49716
+ // Reset errors, if provided, resets the error state tracking in order to properly re-run
49717
+ useEffect$1(function () {
49718
+ if (hasErrors) {
49719
+ var _inputsWithErrors$;
49720
+
49721
+ var inputsWithErrors = document.querySelectorAll("input[aria-invalid=true]");
49722
+ inputsWithErrors === null || inputsWithErrors === void 0 ? void 0 : (_inputsWithErrors$ = inputsWithErrors[0]) === null || _inputsWithErrors$ === void 0 ? void 0 : _inputsWithErrors$.focus();
49723
+ }
49724
+
49725
+ return function () {
49726
+ return resetHasErrors(false);
49727
+ };
49728
+ });
49729
+ };
49730
+
49731
+
49732
+
49733
+ var index$6 = /*#__PURE__*/Object.freeze({
49734
+ __proto__: null,
49735
+ formats: formats,
49736
+ general: general,
49737
+ theme: themeUtils,
49738
+ useFocusInvalidInput: useFocusInvalidInput,
49739
+ useOutsideClick: useOutsideClickHook,
49740
+ useToastNotification: useToastNotification
49741
+ });
49742
+
49743
+ export { AccountNumberImage, AccountsAddIcon$1 as AccountsAddIcon, AccountsIcon$1 as AccountsIcon, AccountsIconSmall$1 as AccountsIconSmall, AchReturnIcon, AddObligation$1 as AddObligation, AddressForm, Alert$1 as Alert, AllocatedIcon, AmountCallout$1 as AmountCallout, ArrowDownCircleIconSmall, ArrowLeftCircleIconMedium, ArrowLeftCircleIconSmall, ArrowRightCircleIconSmall, ArrowRightIcon, ArrowUpCircleIconSmall, AutopayIcon, AutopayOnIcon, Badge$1 as Badge, BankIcon, BankIconLarge, Banner$1 as Banner, Box, BoxWithShadow$1 as BoxWithShadow, Breadcrumbs as Breadcrumb, ButtonWithAction, ButtonWithLink, CalendarIcon, Card$1 as Card, CarrotIcon$1 as CarrotIcon, CashIcon, Center, CenterSingle$1 as CenterSingle, CenterStack$1 as CenterStack, ChangePasswordForm, ChargebackIcon, ChargebackIconMedium, ChargebackIconSmall, ChargebackReversalIcon, ChargebackReversalIconMedium, ChargebackReversalIconSmall, CheckIcon, Checkbox$1 as Checkbox, CheckboxList$1 as CheckboxList, CheckmarkIcon, ChevronIcon$1 as ChevronIcon, Cluster, CollapsibleSection$1 as CollapsibleSection, Copyable, CountryDropdown, Cover, CustomerSearchIcon, DefaultPageTemplate, Detail$1 as Detail, DisplayBox$1 as DisplayBox, DisplayCard, Dropdown$1 as Dropdown, DuplicateIcon, EditNameForm, EditableList, EditableTable, EmailForm, EmptyCartIcon$1 as EmptyCartIcon, ErroredIcon, ExternalLink, ExternalLinkIcon, FailedIcon, FindIconSmall$1 as FindIconSmall, FooterWithSubfooter$1 as FooterWithSubfooter, ForgotPasswordForm, ForgotPasswordIcon$1 as ForgotPasswordIcon, FormContainer$1 as FormContainer, FormFooterPanel$1 as FormFooterPanel, FormInput$1 as FormInput, FormInputColumn, FormInputRow, FormSelect$1 as FormSelect, FormattedAddress$1 as FormattedAddress, FormattedBankAccount$1 as FormattedBankAccount, FormattedCreditCard$1 as FormattedCreditCard, Frame, GenericCard, GenericCardLarge, GenericErrorIcon, GoToEmailIcon$1 as GoToEmailIcon, Grid, GuidedCheckoutImage, HamburgerButton, Heading$1 as Heading, HighlightTabRow$1 as HighlightTabRow, HistoryIconSmall$1 as HistoryIconSmall, IconAdd, IconQuitLarge, ImageBox, Imposter, InternalLink, Jumbo$1 as Jumbo, KioskImage, LabeledAmount$1 as LabeledAmount, LineItem$1 as LineItem, LinkCard$1 as LinkCard, Loading, LoadingLine, LoginForm, Modal$1 as Modal, Module$1 as Module, Motion, NavFooter, NavHeader, NavMenuDesktop$1 as NavMenuDesktop, NavMenuMobile$1 as NavMenuMobile, NavTabs, NoCustomerResultsIcon, NoPaymentResultsIcon, NotFoundIcon, Obligation, iconsMap as ObligationIcons, Pagination$1 as Pagination, Paragraph$1 as Paragraph, PartialAmountForm, PasswordRequirements, PaymentButtonBar, PaymentDetails$1 as PaymentDetails, PaymentFormACH, PaymentFormCard$1 as PaymentFormCard, PaymentMethodAddIcon$1 as PaymentMethodAddIcon, PaymentMethodIcon$1 as PaymentMethodIcon, PaymentSearchIcon, PaymentsIconSmall$1 as PaymentsIconSmall, PencilIcon$1 as PencilIcon, PendingIcon, PeriscopeDashboardIframe, PeriscopeFailedIcon, PhoneForm, Placeholder$1 as Placeholder, PlusCircleIcon, PointOfSaleImage, Popover$1 as Popover, ProcessingFee$1 as ProcessingFee, ProfileIcon$1 as ProfileIcon, ProfileIconSmall$1 as ProfileIconSmall, ProfileImage, PropertiesAddIcon$1 as PropertiesAddIcon, PropertiesIconSmall$1 as PropertiesIconSmall, RadioButton$2 as RadioButton, RadioButtonWithLabel$1 as RadioButtonWithLabel, RadioGroup, RadioSection$1 as RadioSection, Reel, RefundIcon, RefundIconMedium, RefundIconSmall, RegistrationForm, RejectedIcon, RejectedVelocityIcon, ResetConfirmationForm$1 as ResetConfirmationForm, ResetPasswordForm, ResetPasswordIcon, ResetPasswordSuccess, RevenueManagementImage, RoutingNumberImage, SearchIcon, SearchableSelect$1 as SearchableSelect, SettingsIconSmall$1 as SettingsIconSmall, ShoppingCartIcon, Sidebar, SidebarSingleContent$1 as SidebarSingleContent, SidebarStackContent$1 as SidebarStackContent, SolidDivider$1 as SolidDivider, Spinner$2 as Spinner, Stack, StandardCheckoutImage, FormStateDropdown as StateProvinceDropdown, StatusUnknownIcon, SuccessfulIcon, SuccessfulIconMedium, SuccessfulIconSmall, Switcher, TabSidebar$1 as TabSidebar, Table_styled as Table, TableBody_styled as TableBody, TableCell_styled as TableCell, TableHead$1 as TableHead, TableHeading_styled as TableHeading, TableListItem, TableRow$1 as TableRow, Tabs$1 as Tabs, TermsAndConditions, TermsAndConditionsModal$1 as TermsAndConditionsModal, Text$1 as Text, Timeout$1 as Timeout, TimeoutImage, Title$1 as Title, ToastNotification, ToggleSwitch$1 as ToggleSwitch, TrashIcon$1 as TrashIcon, TypeaheadInput, VerifiedEmailIcon$1 as VerifiedEmailIcon, VoidedIcon, WalletBannerIcon$1 as WalletBannerIcon, WalletIcon$1 as WalletIcon, WalletIconSmall$1 as WalletIconSmall, WarningIconXS, WelcomeModule$1 as WelcomeModule, WorkflowTile, XCircleIconMedium, XCircleIconSmall, cardRegistry, index$5 as constants, createPartialAmountFormState, createPartialAmountFormValidators, index$4 as hooks, index$6 as util, withWindowSize };
49624
49744
  //# sourceMappingURL=index.esm.js.map