@thecb/components 9.1.1-beta.3 → 9.1.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 (28) hide show
  1. package/dist/index.cjs.js +279 -296
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +279 -296
  4. package/dist/index.esm.js.map +1 -1
  5. package/package.json +1 -1
  6. package/src/components/atoms/checkbox/Checkbox.js +1 -3
  7. package/src/components/atoms/country-dropdown/CountryDropdown.js +1 -3
  8. package/src/components/atoms/form-layouts/FormInput.js +3 -11
  9. package/src/components/atoms/radio-button-with-label/RadioButtonWithLabel.js +1 -3
  10. package/src/components/molecules/address-form/AddressForm.js +0 -6
  11. package/src/components/molecules/edit-name-form/EditNameForm.js +0 -2
  12. package/src/components/molecules/email-form/EmailForm.js +2 -5
  13. package/src/components/molecules/payment-form-ach/PaymentFormACH.js +0 -6
  14. package/src/components/molecules/payment-form-card/PaymentFormCard.js +0 -6
  15. package/src/components/molecules/phone-form/PhoneForm.js +1 -3
  16. package/src/components/molecules/radio-group/RadioGroup.js +7 -12
  17. package/src/components/molecules/radio-group/RadioGroup.stories.js +0 -2
  18. package/src/components/molecules/radio-section/RadioSection.js +2 -9
  19. package/src/components/molecules/radio-section/RadioSection.stories.js +4 -7
  20. package/src/components/molecules/radio-section/radio-button/RadioButton.js +1 -3
  21. package/src/components/templates/center-single/CenterSingle.js +2 -6
  22. package/src/components/templates/center-stack/CenterStack.js +4 -2
  23. package/src/components/templates/default-page-template/DefaultPageTemplate.js +1 -2
  24. package/dist/src/apps/checkout/pages/payment/sub-pages/payment-amount/PaymentAmount_old.js +0 -49322
  25. package/src/.DS_Store +0 -0
  26. package/src/components/.DS_Store +0 -0
  27. package/src/components/atoms/.DS_Store +0 -0
  28. package/src/components/atoms/icons/.DS_Store +0 -0
package/dist/index.esm.js CHANGED
@@ -22096,8 +22096,7 @@ var StyledCheckbox = styled.div.withConfig({
22096
22096
  focusedStyles = _ref3.focusedStyles,
22097
22097
  errorStyles = _ref3.errorStyles,
22098
22098
  disabledStyles = _ref3.disabledStyles,
22099
- disabledCheckedStyles = _ref3.disabledCheckedStyles,
22100
- _ref3$required = _ref3.required;
22099
+ disabledCheckedStyles = _ref3.disabledCheckedStyles;
22101
22100
  return error ? css(["", " ", ""], errorStyles, focused && focusedStyles) : disabled ? css(["", ""], checked ? disabledCheckedStyles : disabledStyles) : checked ? css(["", " ", ""], checkedStyles, focused && focusedStyles) : css(["", " ", ""], defaultStyles, focused && focusedStyles);
22102
22101
  });
22103
22102
 
@@ -22160,8 +22159,7 @@ var Checkbox = function Checkbox(_ref4) {
22160
22159
  onChange: onChange,
22161
22160
  tabIndex: "-1",
22162
22161
  "aria-invalid": error,
22163
- "aria-describedby": error ? "".concat(name, "-error-message") : "",
22164
- required: required
22162
+ "aria-describedby": error ? "".concat(name, "-error-message") : ""
22165
22163
  }), /*#__PURE__*/React.createElement(StyledCheckbox, {
22166
22164
  role: "checkbox",
22167
22165
  error: error,
@@ -22413,17 +22411,18 @@ var DropdownIcon = function DropdownIcon() {
22413
22411
  };
22414
22412
 
22415
22413
  var check = function (it) {
22416
- return it && it.Math == Math && it;
22414
+ return it && it.Math === Math && it;
22417
22415
  };
22418
22416
 
22419
22417
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
22420
22418
  var global_1 =
22421
- // eslint-disable-next-line es-x/no-global-this -- safe
22419
+ // eslint-disable-next-line es/no-global-this -- safe
22422
22420
  check(typeof globalThis == 'object' && globalThis) ||
22423
22421
  check(typeof window == 'object' && window) ||
22424
22422
  // eslint-disable-next-line no-restricted-globals -- safe
22425
22423
  check(typeof self == 'object' && self) ||
22426
22424
  check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
22425
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
22427
22426
  // eslint-disable-next-line no-new-func -- fallback
22428
22427
  (function () { return this; })() || Function('return this')();
22429
22428
 
@@ -22437,12 +22436,12 @@ var fails = function (exec) {
22437
22436
 
22438
22437
  // Detect IE8's incomplete defineProperty implementation
22439
22438
  var descriptors = !fails(function () {
22440
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
22441
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
22439
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
22440
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
22442
22441
  });
22443
22442
 
22444
22443
  var functionBindNative = !fails(function () {
22445
- // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
22444
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
22446
22445
  var test = (function () { /* empty */ }).bind();
22447
22446
  // eslint-disable-next-line no-prototype-builtins -- safe
22448
22447
  return typeof test != 'function' || test.hasOwnProperty('prototype');
@@ -22455,7 +22454,7 @@ var functionCall = functionBindNative ? call.bind(call) : function () {
22455
22454
  };
22456
22455
 
22457
22456
  var $propertyIsEnumerable = {}.propertyIsEnumerable;
22458
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22457
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22459
22458
  var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
22460
22459
 
22461
22460
  // Nashorn ~ JDK8 bug
@@ -22482,14 +22481,11 @@ var createPropertyDescriptor = function (bitmap, value) {
22482
22481
  };
22483
22482
 
22484
22483
  var FunctionPrototype = Function.prototype;
22485
- var bind$1 = FunctionPrototype.bind;
22486
22484
  var call$1 = FunctionPrototype.call;
22487
- var uncurryThis = functionBindNative && bind$1.bind(call$1, call$1);
22485
+ var uncurryThisWithBind = functionBindNative && FunctionPrototype.bind.bind(call$1, call$1);
22488
22486
 
22489
- var functionUncurryThis = functionBindNative ? function (fn) {
22490
- return fn && uncurryThis(fn);
22491
- } : function (fn) {
22492
- return fn && function () {
22487
+ var functionUncurryThis = functionBindNative ? uncurryThisWithBind : function (fn) {
22488
+ return function () {
22493
22489
  return call$1.apply(fn, arguments);
22494
22490
  };
22495
22491
  };
@@ -22510,15 +22506,21 @@ var indexedObject = fails(function () {
22510
22506
  // eslint-disable-next-line no-prototype-builtins -- safe
22511
22507
  return !$Object('z').propertyIsEnumerable(0);
22512
22508
  }) ? function (it) {
22513
- return classofRaw(it) == 'String' ? split(it, '') : $Object(it);
22509
+ return classofRaw(it) === 'String' ? split(it, '') : $Object(it);
22514
22510
  } : $Object;
22515
22511
 
22512
+ // we can't use just `it == null` since of `document.all` special case
22513
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
22514
+ var isNullOrUndefined = function (it) {
22515
+ return it === null || it === undefined;
22516
+ };
22517
+
22516
22518
  var $TypeError = TypeError;
22517
22519
 
22518
22520
  // `RequireObjectCoercible` abstract operation
22519
22521
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
22520
22522
  var requireObjectCoercible = function (it) {
22521
- if (it == undefined) throw $TypeError("Can't call method on " + it);
22523
+ if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
22522
22524
  return it;
22523
22525
  };
22524
22526
 
@@ -22530,13 +22532,32 @@ var toIndexedObject = function (it) {
22530
22532
  return indexedObject(requireObjectCoercible(it));
22531
22533
  };
22532
22534
 
22535
+ var documentAll = typeof document == 'object' && document.all;
22536
+
22537
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
22538
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
22539
+ var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
22540
+
22541
+ var documentAll_1 = {
22542
+ all: documentAll,
22543
+ IS_HTMLDDA: IS_HTMLDDA
22544
+ };
22545
+
22546
+ var documentAll$1 = documentAll_1.all;
22547
+
22533
22548
  // `IsCallable` abstract operation
22534
22549
  // https://tc39.es/ecma262/#sec-iscallable
22535
- var isCallable = function (argument) {
22550
+ var isCallable = documentAll_1.IS_HTMLDDA ? function (argument) {
22551
+ return typeof argument == 'function' || argument === documentAll$1;
22552
+ } : function (argument) {
22536
22553
  return typeof argument == 'function';
22537
22554
  };
22538
22555
 
22539
- var isObject = function (it) {
22556
+ var documentAll$2 = documentAll_1.all;
22557
+
22558
+ var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
22559
+ return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
22560
+ } : function (it) {
22540
22561
  return typeof it == 'object' ? it !== null : isCallable(it);
22541
22562
  };
22542
22563
 
@@ -22550,7 +22571,7 @@ var getBuiltIn = function (namespace, method) {
22550
22571
 
22551
22572
  var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
22552
22573
 
22553
- var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
22574
+ var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
22554
22575
 
22555
22576
  var process$1 = global_1.process;
22556
22577
  var Deno = global_1.Deno;
@@ -22577,24 +22598,29 @@ if (!version && engineUserAgent) {
22577
22598
 
22578
22599
  var engineV8Version = version;
22579
22600
 
22580
- /* eslint-disable es-x/no-symbol -- required for testing */
22601
+ /* eslint-disable es/no-symbol -- required for testing */
22581
22602
 
22582
22603
 
22583
22604
 
22584
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
22585
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
22586
- var symbol = Symbol();
22605
+
22606
+ var $String = global_1.String;
22607
+
22608
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
22609
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(function () {
22610
+ var symbol = Symbol('symbol detection');
22587
22611
  // Chrome 38 Symbol has incorrect toString conversion
22588
22612
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
22589
- return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
22613
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
22614
+ // of course, fail.
22615
+ return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
22590
22616
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
22591
22617
  !Symbol.sham && engineV8Version && engineV8Version < 41;
22592
22618
  });
22593
22619
 
22594
- /* eslint-disable es-x/no-symbol -- required for testing */
22620
+ /* eslint-disable es/no-symbol -- required for testing */
22595
22621
 
22596
22622
 
22597
- var useSymbolAsUid = nativeSymbol
22623
+ var useSymbolAsUid = symbolConstructorDetection
22598
22624
  && !Symbol.sham
22599
22625
  && typeof Symbol.iterator == 'symbol';
22600
22626
 
@@ -22607,11 +22633,11 @@ var isSymbol = useSymbolAsUid ? function (it) {
22607
22633
  return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, $Object$1(it));
22608
22634
  };
22609
22635
 
22610
- var $String = String;
22636
+ var $String$1 = String;
22611
22637
 
22612
22638
  var tryToString = function (argument) {
22613
22639
  try {
22614
- return $String(argument);
22640
+ return $String$1(argument);
22615
22641
  } catch (error) {
22616
22642
  return 'Object';
22617
22643
  }
@@ -22622,14 +22648,14 @@ var $TypeError$1 = TypeError;
22622
22648
  // `Assert: IsCallable(argument) is true`
22623
22649
  var aCallable = function (argument) {
22624
22650
  if (isCallable(argument)) return argument;
22625
- throw $TypeError$1(tryToString(argument) + ' is not a function');
22651
+ throw new $TypeError$1(tryToString(argument) + ' is not a function');
22626
22652
  };
22627
22653
 
22628
22654
  // `GetMethod` abstract operation
22629
22655
  // https://tc39.es/ecma262/#sec-getmethod
22630
22656
  var getMethod = function (V, P) {
22631
22657
  var func = V[P];
22632
- return func == null ? undefined : aCallable(func);
22658
+ return isNullOrUndefined(func) ? undefined : aCallable(func);
22633
22659
  };
22634
22660
 
22635
22661
  var $TypeError$2 = TypeError;
@@ -22641,10 +22667,10 @@ var ordinaryToPrimitive = function (input, pref) {
22641
22667
  if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
22642
22668
  if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
22643
22669
  if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
22644
- throw $TypeError$2("Can't convert object to primitive value");
22670
+ throw new $TypeError$2("Can't convert object to primitive value");
22645
22671
  };
22646
22672
 
22647
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
22673
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
22648
22674
  var defineProperty = Object.defineProperty;
22649
22675
 
22650
22676
  var defineGlobalProperty = function (key, value) {
@@ -22661,13 +22687,16 @@ var store = global_1[SHARED] || defineGlobalProperty(SHARED, {});
22661
22687
  var sharedStore = store;
22662
22688
 
22663
22689
  var shared = createCommonjsModule(function (module) {
22690
+
22691
+
22692
+
22664
22693
  (module.exports = function (key, value) {
22665
22694
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
22666
22695
  })('versions', []).push({
22667
- version: '3.24.1',
22696
+ version: '3.33.3',
22668
22697
  mode: 'global',
22669
- copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
22670
- license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE',
22698
+ copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
22699
+ license: 'https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE',
22671
22700
  source: 'https://github.com/zloirock/core-js'
22672
22701
  });
22673
22702
  });
@@ -22684,7 +22713,7 @@ var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
22684
22713
 
22685
22714
  // `HasOwnProperty` abstract operation
22686
22715
  // https://tc39.es/ecma262/#sec-hasownproperty
22687
- // eslint-disable-next-line es-x/no-object-hasown -- safe
22716
+ // eslint-disable-next-line es/no-object-hasown -- safe
22688
22717
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
22689
22718
  return hasOwnProperty(toObject(it), key);
22690
22719
  };
@@ -22697,21 +22726,15 @@ var uid = function (key) {
22697
22726
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
22698
22727
  };
22699
22728
 
22700
- var WellKnownSymbolsStore = shared('wks');
22701
22729
  var Symbol$1 = global_1.Symbol;
22702
- var symbolFor = Symbol$1 && Symbol$1['for'];
22703
- var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
22730
+ var WellKnownSymbolsStore = shared('wks');
22731
+ var createWellKnownSymbol = useSymbolAsUid ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
22704
22732
 
22705
22733
  var wellKnownSymbol = function (name) {
22706
- if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
22707
- var description = 'Symbol.' + name;
22708
- if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
22709
- WellKnownSymbolsStore[name] = Symbol$1[name];
22710
- } else if (useSymbolAsUid && symbolFor) {
22711
- WellKnownSymbolsStore[name] = symbolFor(description);
22712
- } else {
22713
- WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
22714
- }
22734
+ if (!hasOwnProperty_1(WellKnownSymbolsStore, name)) {
22735
+ WellKnownSymbolsStore[name] = symbolConstructorDetection && hasOwnProperty_1(Symbol$1, name)
22736
+ ? Symbol$1[name]
22737
+ : createWellKnownSymbol('Symbol.' + name);
22715
22738
  } return WellKnownSymbolsStore[name];
22716
22739
  };
22717
22740
 
@@ -22728,7 +22751,7 @@ var toPrimitive = function (input, pref) {
22728
22751
  if (pref === undefined) pref = 'default';
22729
22752
  result = functionCall(exoticToPrim, input, pref);
22730
22753
  if (!isObject(result) || isSymbol(result)) return result;
22731
- throw $TypeError$3("Can't convert object to primitive value");
22754
+ throw new $TypeError$3("Can't convert object to primitive value");
22732
22755
  }
22733
22756
  if (pref === undefined) pref = 'number';
22734
22757
  return ordinaryToPrimitive(input, pref);
@@ -22751,13 +22774,13 @@ var documentCreateElement = function (it) {
22751
22774
 
22752
22775
  // Thanks to IE8 for its funny defineProperty
22753
22776
  var ie8DomDefine = !descriptors && !fails(function () {
22754
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
22777
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
22755
22778
  return Object.defineProperty(documentCreateElement('div'), 'a', {
22756
22779
  get: function () { return 7; }
22757
- }).a != 7;
22780
+ }).a !== 7;
22758
22781
  });
22759
22782
 
22760
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22783
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22761
22784
  var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
22762
22785
 
22763
22786
  // `Object.getOwnPropertyDescriptor` method
@@ -22778,26 +22801,26 @@ var objectGetOwnPropertyDescriptor = {
22778
22801
  // V8 ~ Chrome 36-
22779
22802
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
22780
22803
  var v8PrototypeDefineBug = descriptors && fails(function () {
22781
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
22804
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
22782
22805
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
22783
22806
  value: 42,
22784
22807
  writable: false
22785
- }).prototype != 42;
22808
+ }).prototype !== 42;
22786
22809
  });
22787
22810
 
22788
- var $String$1 = String;
22811
+ var $String$2 = String;
22789
22812
  var $TypeError$4 = TypeError;
22790
22813
 
22791
22814
  // `Assert: Type(argument) is Object`
22792
22815
  var anObject = function (argument) {
22793
22816
  if (isObject(argument)) return argument;
22794
- throw $TypeError$4($String$1(argument) + ' is not an object');
22817
+ throw new $TypeError$4($String$2(argument) + ' is not an object');
22795
22818
  };
22796
22819
 
22797
22820
  var $TypeError$5 = TypeError;
22798
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
22821
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
22799
22822
  var $defineProperty = Object.defineProperty;
22800
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22823
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22801
22824
  var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
22802
22825
  var ENUMERABLE = 'enumerable';
22803
22826
  var CONFIGURABLE = 'configurable';
@@ -22827,7 +22850,7 @@ var f$2 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Att
22827
22850
  if (ie8DomDefine) try {
22828
22851
  return $defineProperty(O, P, Attributes);
22829
22852
  } catch (error) { /* empty */ }
22830
- if ('get' in Attributes || 'set' in Attributes) throw $TypeError$5('Accessors not supported');
22853
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$5('Accessors not supported');
22831
22854
  if ('value' in Attributes) O[P] = Attributes.value;
22832
22855
  return O;
22833
22856
  };
@@ -22844,7 +22867,7 @@ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
22844
22867
  };
22845
22868
 
22846
22869
  var FunctionPrototype$1 = Function.prototype;
22847
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22870
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22848
22871
  var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
22849
22872
 
22850
22873
  var EXISTS$1 = hasOwnProperty_1(FunctionPrototype$1, 'name');
@@ -22871,7 +22894,7 @@ var inspectSource = sharedStore.inspectSource;
22871
22894
 
22872
22895
  var WeakMap$1 = global_1.WeakMap;
22873
22896
 
22874
- var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
22897
+ var weakMapBasicDetection = isCallable(WeakMap$1) && /native code/.test(String(WeakMap$1));
22875
22898
 
22876
22899
  var keys$1 = shared('keys');
22877
22900
 
@@ -22894,27 +22917,29 @@ var getterFor = function (TYPE) {
22894
22917
  return function (it) {
22895
22918
  var state;
22896
22919
  if (!isObject(it) || (state = get(it)).type !== TYPE) {
22897
- throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
22920
+ throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
22898
22921
  } return state;
22899
22922
  };
22900
22923
  };
22901
22924
 
22902
- if (nativeWeakMap || sharedStore.state) {
22925
+ if (weakMapBasicDetection || sharedStore.state) {
22903
22926
  var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$2());
22904
- var wmget = functionUncurryThis(store$1.get);
22905
- var wmhas = functionUncurryThis(store$1.has);
22906
- var wmset = functionUncurryThis(store$1.set);
22927
+ /* eslint-disable no-self-assign -- prototype methods protection */
22928
+ store$1.get = store$1.get;
22929
+ store$1.has = store$1.has;
22930
+ store$1.set = store$1.set;
22931
+ /* eslint-enable no-self-assign -- prototype methods protection */
22907
22932
  set = function (it, metadata) {
22908
- if (wmhas(store$1, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
22933
+ if (store$1.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
22909
22934
  metadata.facade = it;
22910
- wmset(store$1, it, metadata);
22935
+ store$1.set(it, metadata);
22911
22936
  return metadata;
22912
22937
  };
22913
22938
  get = function (it) {
22914
- return wmget(store$1, it) || {};
22939
+ return store$1.get(it) || {};
22915
22940
  };
22916
22941
  has = function (it) {
22917
- return wmhas(store$1, it);
22942
+ return store$1.has(it);
22918
22943
  };
22919
22944
  } else {
22920
22945
  var STATE = sharedKey('state');
@@ -22942,14 +22967,23 @@ var internalState = {
22942
22967
  };
22943
22968
 
22944
22969
  var makeBuiltIn_1 = createCommonjsModule(function (module) {
22970
+
22971
+
22972
+
22973
+
22974
+
22945
22975
  var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
22946
22976
 
22947
22977
 
22948
22978
 
22949
22979
  var enforceInternalState = internalState.enforce;
22950
22980
  var getInternalState = internalState.get;
22951
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
22981
+ var $String = String;
22982
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
22952
22983
  var defineProperty = Object.defineProperty;
22984
+ var stringSlice = functionUncurryThis(''.slice);
22985
+ var replace = functionUncurryThis(''.replace);
22986
+ var join = functionUncurryThis([].join);
22953
22987
 
22954
22988
  var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
22955
22989
  return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
@@ -22958,8 +22992,8 @@ var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
22958
22992
  var TEMPLATE = String(String).split('String');
22959
22993
 
22960
22994
  var makeBuiltIn = module.exports = function (value, name, options) {
22961
- if (String(name).slice(0, 7) === 'Symbol(') {
22962
- name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
22995
+ if (stringSlice($String(name), 0, 7) === 'Symbol(') {
22996
+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
22963
22997
  }
22964
22998
  if (options && options.getter) name = 'get ' + name;
22965
22999
  if (options && options.setter) name = 'set ' + name;
@@ -22978,7 +23012,7 @@ var makeBuiltIn = module.exports = function (value, name, options) {
22978
23012
  } catch (error) { /* empty */ }
22979
23013
  var state = enforceInternalState(value);
22980
23014
  if (!hasOwnProperty_1(state, 'source')) {
22981
- state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
23015
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
22982
23016
  } return value;
22983
23017
  };
22984
23018
 
@@ -23017,7 +23051,7 @@ var floor = Math.floor;
23017
23051
 
23018
23052
  // `Math.trunc` method
23019
23053
  // https://tc39.es/ecma262/#sec-math.trunc
23020
- // eslint-disable-next-line es-x/no-math-trunc -- safe
23054
+ // eslint-disable-next-line es/no-math-trunc -- safe
23021
23055
  var mathTrunc = Math.trunc || function trunc(x) {
23022
23056
  var n = +x;
23023
23057
  return (n > 0 ? floor : ceil)(n);
@@ -23065,10 +23099,10 @@ var createMethod = function (IS_INCLUDES) {
23065
23099
  var value;
23066
23100
  // Array#includes uses SameValueZero equality algorithm
23067
23101
  // eslint-disable-next-line no-self-compare -- NaN check
23068
- if (IS_INCLUDES && el != el) while (length > index) {
23102
+ if (IS_INCLUDES && el !== el) while (length > index) {
23069
23103
  value = O[index++];
23070
23104
  // eslint-disable-next-line no-self-compare -- NaN check
23071
- if (value != value) return true;
23105
+ if (value !== value) return true;
23072
23106
  // Array#indexOf ignores holes, Array#includes - not
23073
23107
  } else for (;length > index; index++) {
23074
23108
  if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
@@ -23118,7 +23152,7 @@ var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
23118
23152
 
23119
23153
  // `Object.getOwnPropertyNames` method
23120
23154
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
23121
- // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
23155
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
23122
23156
  var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
23123
23157
  return objectKeysInternal(O, hiddenKeys$1);
23124
23158
  };
@@ -23127,7 +23161,7 @@ var objectGetOwnPropertyNames = {
23127
23161
  f: f$3
23128
23162
  };
23129
23163
 
23130
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
23164
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
23131
23165
  var f$4 = Object.getOwnPropertySymbols;
23132
23166
 
23133
23167
  var objectGetOwnPropertySymbols = {
@@ -23159,8 +23193,8 @@ var replacement = /#|\.prototype\./;
23159
23193
 
23160
23194
  var isForced = function (feature, detection) {
23161
23195
  var value = data[normalize(feature)];
23162
- return value == POLYFILL ? true
23163
- : value == NATIVE ? false
23196
+ return value === POLYFILL ? true
23197
+ : value === NATIVE ? false
23164
23198
  : isCallable(detection) ? fails(detection)
23165
23199
  : !!detection;
23166
23200
  };
@@ -23240,7 +23274,7 @@ var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
23240
23274
  var $Object$3 = Object;
23241
23275
 
23242
23276
  // ES3 wrong here
23243
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
23277
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
23244
23278
 
23245
23279
  // fallback for IE11 Script Access Denied error
23246
23280
  var tryGet = function (it, key) {
@@ -23258,25 +23292,25 @@ var classof = toStringTagSupport ? classofRaw : function (it) {
23258
23292
  // builtinTag case
23259
23293
  : CORRECT_ARGUMENTS ? classofRaw(O)
23260
23294
  // ES3 arguments fallback
23261
- : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
23295
+ : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
23262
23296
  };
23263
23297
 
23264
- var $String$2 = String;
23298
+ var $String$3 = String;
23265
23299
 
23266
23300
  var toString_1 = function (argument) {
23267
- if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
23268
- return $String$2(argument);
23301
+ if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
23302
+ return $String$3(argument);
23269
23303
  };
23270
23304
 
23271
23305
  var charAt = functionUncurryThis(''.charAt);
23272
23306
 
23273
23307
  var FORCED = fails(function () {
23274
- // eslint-disable-next-line es-x/no-array-string-prototype-at -- safe
23308
+ // eslint-disable-next-line es/no-array-string-prototype-at -- safe
23275
23309
  return '𠮷'.at(-2) !== '\uD842';
23276
23310
  });
23277
23311
 
23278
23312
  // `String.prototype.at` method
23279
- // https://github.com/tc39/proposal-relative-indexing-method
23313
+ // https://tc39.es/ecma262/#sec-string.prototype.at
23280
23314
  _export({ target: 'String', proto: true, forced: FORCED }, {
23281
23315
  at: function at(index) {
23282
23316
  var S = toString_1(requireObjectCoercible(this));
@@ -23289,14 +23323,14 @@ _export({ target: 'String', proto: true, forced: FORCED }, {
23289
23323
 
23290
23324
  // `Object.keys` method
23291
23325
  // https://tc39.es/ecma262/#sec-object.keys
23292
- // eslint-disable-next-line es-x/no-object-keys -- safe
23326
+ // eslint-disable-next-line es/no-object-keys -- safe
23293
23327
  var objectKeys = Object.keys || function keys(O) {
23294
23328
  return objectKeysInternal(O, enumBugKeys);
23295
23329
  };
23296
23330
 
23297
23331
  // `Object.defineProperties` method
23298
23332
  // https://tc39.es/ecma262/#sec-object.defineproperties
23299
- // eslint-disable-next-line es-x/no-object-defineproperties -- safe
23333
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
23300
23334
  var f$5 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
23301
23335
  anObject(O);
23302
23336
  var props = toIndexedObject(Properties);
@@ -23385,7 +23419,7 @@ hiddenKeys[IE_PROTO] = true;
23385
23419
 
23386
23420
  // `Object.create` method
23387
23421
  // https://tc39.es/ecma262/#sec-object.create
23388
- // eslint-disable-next-line es-x/no-object-create -- safe
23422
+ // eslint-disable-next-line es/no-object-create -- safe
23389
23423
  var objectCreate = Object.create || function create(O, Properties) {
23390
23424
  var result;
23391
23425
  if (O !== null) {
@@ -23405,7 +23439,7 @@ var ArrayPrototype = Array.prototype;
23405
23439
 
23406
23440
  // Array.prototype[@@unscopables]
23407
23441
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
23408
- if (ArrayPrototype[UNSCOPABLES] == undefined) {
23442
+ if (ArrayPrototype[UNSCOPABLES] === undefined) {
23409
23443
  defineProperty$1(ArrayPrototype, UNSCOPABLES, {
23410
23444
  configurable: true,
23411
23445
  value: objectCreate(null)
@@ -23418,7 +23452,7 @@ var addToUnscopables = function (key) {
23418
23452
  };
23419
23453
 
23420
23454
  // `Array.prototype.at` method
23421
- // https://github.com/tc39/proposal-relative-indexing-method
23455
+ // https://tc39.es/ecma262/#sec-array.prototype.at
23422
23456
  _export({ target: 'Array', proto: true }, {
23423
23457
  at: function at(index) {
23424
23458
  var O = toObject(this);
@@ -23431,13 +23465,19 @@ _export({ target: 'Array', proto: true }, {
23431
23465
 
23432
23466
  addToUnscopables('at');
23433
23467
 
23434
- // eslint-disable-next-line es-x/no-typed-arrays -- safe
23435
- var arrayBufferNative = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
23468
+ // eslint-disable-next-line es/no-typed-arrays -- safe
23469
+ var arrayBufferBasicDetection = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
23470
+
23471
+ var defineBuiltInAccessor = function (target, name, descriptor) {
23472
+ if (descriptor.get) makeBuiltIn_1(descriptor.get, name, { getter: true });
23473
+ if (descriptor.set) makeBuiltIn_1(descriptor.set, name, { setter: true });
23474
+ return objectDefineProperty.f(target, name, descriptor);
23475
+ };
23436
23476
 
23437
23477
  var correctPrototypeGetter = !fails(function () {
23438
23478
  function F() { /* empty */ }
23439
23479
  F.prototype.constructor = null;
23440
- // eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
23480
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
23441
23481
  return Object.getPrototypeOf(new F()) !== F.prototype;
23442
23482
  });
23443
23483
 
@@ -23447,7 +23487,7 @@ var ObjectPrototype = $Object$4.prototype;
23447
23487
 
23448
23488
  // `Object.getPrototypeOf` method
23449
23489
  // https://tc39.es/ecma262/#sec-object.getprototypeof
23450
- // eslint-disable-next-line es-x/no-object-getprototypeof -- safe
23490
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
23451
23491
  var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : function (O) {
23452
23492
  var object = toObject(O);
23453
23493
  if (hasOwnProperty_1(object, IE_PROTO$1)) return object[IE_PROTO$1];
@@ -23457,12 +23497,19 @@ var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : f
23457
23497
  } return object instanceof $Object$4 ? ObjectPrototype : null;
23458
23498
  };
23459
23499
 
23460
- var $String$3 = String;
23500
+ var functionUncurryThisAccessor = function (object, key, method) {
23501
+ try {
23502
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
23503
+ return functionUncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
23504
+ } catch (error) { /* empty */ }
23505
+ };
23506
+
23507
+ var $String$4 = String;
23461
23508
  var $TypeError$6 = TypeError;
23462
23509
 
23463
23510
  var aPossiblePrototype = function (argument) {
23464
23511
  if (typeof argument == 'object' || isCallable(argument)) return argument;
23465
- throw $TypeError$6("Can't set " + $String$3(argument) + ' as a prototype');
23512
+ throw new $TypeError$6("Can't set " + $String$4(argument) + ' as a prototype');
23466
23513
  };
23467
23514
 
23468
23515
  /* eslint-disable no-proto -- safe */
@@ -23473,14 +23520,13 @@ var aPossiblePrototype = function (argument) {
23473
23520
  // `Object.setPrototypeOf` method
23474
23521
  // https://tc39.es/ecma262/#sec-object.setprototypeof
23475
23522
  // Works with __proto__ only. Old v8 can't work with null proto objects.
23476
- // eslint-disable-next-line es-x/no-object-setprototypeof -- safe
23523
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
23477
23524
  var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
23478
23525
  var CORRECT_SETTER = false;
23479
23526
  var test = {};
23480
23527
  var setter;
23481
23528
  try {
23482
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
23483
- setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
23529
+ setter = functionUncurryThisAccessor(Object.prototype, '__proto__', 'set');
23484
23530
  setter(test, []);
23485
23531
  CORRECT_SETTER = test instanceof Array;
23486
23532
  } catch (error) { /* empty */ }
@@ -23493,14 +23539,6 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
23493
23539
  };
23494
23540
  }() : undefined);
23495
23541
 
23496
- var defineProperty$2 = objectDefineProperty.f;
23497
-
23498
-
23499
-
23500
-
23501
-
23502
-
23503
-
23504
23542
  var enforceInternalState = internalState.enforce;
23505
23543
  var getInternalState = internalState.get;
23506
23544
  var Int8Array = global_1.Int8Array;
@@ -23516,7 +23554,7 @@ var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
23516
23554
  var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
23517
23555
  var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
23518
23556
  // Fixing native typed arrays in Opera Presto crashes the browser, see #595
23519
- var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferNative && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
23557
+ var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferBasicDetection && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
23520
23558
  var TYPED_ARRAY_TAG_REQUIRED = false;
23521
23559
  var NAME, Constructor, Prototype;
23522
23560
 
@@ -23561,12 +23599,12 @@ var isTypedArray = function (it) {
23561
23599
 
23562
23600
  var aTypedArray = function (it) {
23563
23601
  if (isTypedArray(it)) return it;
23564
- throw TypeError$2('Target is not a typed array');
23602
+ throw new TypeError$2('Target is not a typed array');
23565
23603
  };
23566
23604
 
23567
23605
  var aTypedArrayConstructor = function (C) {
23568
23606
  if (isCallable(C) && (!objectSetPrototypeOf || objectIsPrototypeOf(TypedArray, C))) return C;
23569
- throw TypeError$2(tryToString(C) + ' is not a typed array constructor');
23607
+ throw new TypeError$2(tryToString(C) + ' is not a typed array constructor');
23570
23608
  };
23571
23609
 
23572
23610
  var exportTypedArrayMethod = function (KEY, property, forced, options) {
@@ -23630,7 +23668,7 @@ for (NAME in BigIntArrayConstructorsList) {
23630
23668
  if (!NATIVE_ARRAY_BUFFER_VIEWS || !isCallable(TypedArray) || TypedArray === Function.prototype) {
23631
23669
  // eslint-disable-next-line no-shadow -- safe
23632
23670
  TypedArray = function TypedArray() {
23633
- throw TypeError$2('Incorrect invocation');
23671
+ throw new TypeError$2('Incorrect invocation');
23634
23672
  };
23635
23673
  if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {
23636
23674
  if (global_1[NAME]) objectSetPrototypeOf(global_1[NAME], TypedArray);
@@ -23651,9 +23689,12 @@ if (NATIVE_ARRAY_BUFFER_VIEWS && objectGetPrototypeOf(Uint8ClampedArrayPrototype
23651
23689
 
23652
23690
  if (descriptors && !hasOwnProperty_1(TypedArrayPrototype, TO_STRING_TAG$2)) {
23653
23691
  TYPED_ARRAY_TAG_REQUIRED = true;
23654
- defineProperty$2(TypedArrayPrototype, TO_STRING_TAG$2, { get: function () {
23655
- return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
23656
- } });
23692
+ defineBuiltInAccessor(TypedArrayPrototype, TO_STRING_TAG$2, {
23693
+ configurable: true,
23694
+ get: function () {
23695
+ return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
23696
+ }
23697
+ });
23657
23698
  for (NAME in TypedArrayConstructorsList) if (global_1[NAME]) {
23658
23699
  createNonEnumerableProperty(global_1[NAME], TYPED_ARRAY_TAG, NAME);
23659
23700
  }
@@ -23677,7 +23718,7 @@ var aTypedArray$1 = arrayBufferViewCore.aTypedArray;
23677
23718
  var exportTypedArrayMethod$1 = arrayBufferViewCore.exportTypedArrayMethod;
23678
23719
 
23679
23720
  // `%TypedArray%.prototype.at` method
23680
- // https://github.com/tc39/proposal-relative-indexing-method
23721
+ // https://tc39.es/ecma262/#sec-%typedarray%.prototype.at
23681
23722
  exportTypedArrayMethod$1('at', function at(index) {
23682
23723
  var O = aTypedArray$1(this);
23683
23724
  var len = lengthOfArrayLike(O);
@@ -25025,9 +25066,7 @@ var CountryDropdown = function CountryDropdown(_ref) {
25025
25066
  showErrors = _ref.showErrors,
25026
25067
  onChange = _ref.onChange,
25027
25068
  _ref$dataQa = _ref.dataQa,
25028
- dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
25029
- _ref$isRequired = _ref.isRequired,
25030
- isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
25069
+ dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa;
25031
25070
  return /*#__PURE__*/React.createElement(FormSelect$1, {
25032
25071
  options: options,
25033
25072
  field: field,
@@ -25037,8 +25076,7 @@ var CountryDropdown = function CountryDropdown(_ref) {
25037
25076
  errorMessages: errorMessages,
25038
25077
  showErrors: showErrors,
25039
25078
  onChange: onChange,
25040
- autocompleteValue: "country-name",
25041
- required: isRequired
25079
+ autocompleteValue: "country-name"
25042
25080
  });
25043
25081
  };
25044
25082
 
@@ -25883,7 +25921,7 @@ var fallbackValues$k = {
25883
25921
  };
25884
25922
 
25885
25923
  var _excluded$p = ["showErrors", "themeValues"],
25886
- _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired"];
25924
+ _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa"];
25887
25925
  var InputField = styled.input.withConfig({
25888
25926
  displayName: "FormInput__InputField",
25889
25927
  componentId: "sc-l094r1-0"
@@ -25918,10 +25956,7 @@ var FormattedInputField = styled(function (_ref8) {
25918
25956
  themeValues = _ref8.themeValues,
25919
25957
  props = _objectWithoutProperties(_ref8, _excluded$p);
25920
25958
 
25921
- var isRequired = props.isRequired;
25922
- return /*#__PURE__*/React.createElement(FormattedInput, isRequired ? _objectSpread2(_objectSpread2({}, props), {}, {
25923
- required: true
25924
- }) : _objectSpread2({}, props));
25959
+ return /*#__PURE__*/React.createElement(FormattedInput, props);
25925
25960
  }).withConfig({
25926
25961
  displayName: "FormInput__FormattedInputField",
25927
25962
  componentId: "sc-l094r1-1"
@@ -25973,8 +26008,6 @@ var FormInput = function FormInput(_ref15) {
25973
26008
  removeFromValue = _ref15.removeFromValue,
25974
26009
  _ref15$dataQa = _ref15.dataQa,
25975
26010
  dataQa = _ref15$dataQa === void 0 ? null : _ref15$dataQa,
25976
- _ref15$isRequired = _ref15.isRequired,
25977
- isRequired = _ref15$isRequired === void 0 ? false : _ref15$isRequired,
25978
26011
  props = _objectWithoutProperties(_ref15, _excluded2);
25979
26012
 
25980
26013
  var _useState = useState(false),
@@ -26061,8 +26094,7 @@ var FormInput = function FormInput(_ref15) {
26061
26094
  $customHeight: customHeight,
26062
26095
  $extraStyles: extraStyles,
26063
26096
  "data-qa": dataQa || labelTextWhenNoError,
26064
- autoComplete: autocompleteValue,
26065
- required: isRequired
26097
+ autoComplete: autocompleteValue
26066
26098
  }, props)) : /*#__PURE__*/React.createElement(InputField, _extends({
26067
26099
  "aria-labelledby": createIdFromString(labelTextWhenNoError),
26068
26100
  "aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
@@ -26081,8 +26113,7 @@ var FormInput = function FormInput(_ref15) {
26081
26113
  $customHeight: customHeight,
26082
26114
  $extraStyles: extraStyles,
26083
26115
  "data-qa": dataQa || labelTextWhenNoError,
26084
- autoComplete: autocompleteValue,
26085
- required: isRequired
26116
+ autoComplete: autocompleteValue
26086
26117
  }, props))), /*#__PURE__*/React.createElement(Stack, {
26087
26118
  direction: "row",
26088
26119
  justify: "space-between",
@@ -27188,9 +27219,7 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
27188
27219
  _ref5$handleChange = _ref5.handleChange,
27189
27220
  handleChange = _ref5$handleChange === void 0 ? noop : _ref5$handleChange,
27190
27221
  field = _ref5.field,
27191
- config = _ref5.config,
27192
- _ref5$required = _ref5.required,
27193
- required = _ref5$required === void 0 ? false : _ref5$required;
27222
+ config = _ref5.config;
27194
27223
 
27195
27224
  var getDefaultChecked = function getDefaultChecked(value, idx) {
27196
27225
  var selectionExistsInConfig = config === null || config === void 0 ? void 0 : config.map(function (c) {
@@ -27223,8 +27252,7 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
27223
27252
  setValue(e.target.value);
27224
27253
  handleChange(e);
27225
27254
  },
27226
- defaultChecked: getDefaultChecked(value, index),
27227
- required: required
27255
+ defaultChecked: getDefaultChecked(value, index)
27228
27256
  }), /*#__PURE__*/React.createElement(Text$1, {
27229
27257
  as: "label",
27230
27258
  htmlFor: id,
@@ -27267,9 +27295,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
27267
27295
  _ref2$ariaLabelledBy = _ref2.ariaLabelledBy,
27268
27296
  ariaLabelledBy = _ref2$ariaLabelledBy === void 0 ? "" : _ref2$ariaLabelledBy,
27269
27297
  _ref2$ariaLabel = _ref2.ariaLabel,
27270
- ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel,
27271
- _ref2$isRequired = _ref2.isRequired,
27272
- isRequired = _ref2$isRequired === void 0 ? false : _ref2$isRequired;
27298
+ ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel;
27273
27299
  var buttonBorder = {
27274
27300
  onFocused: {
27275
27301
  borderColor: themeValues.activeColor,
@@ -27329,8 +27355,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
27329
27355
  disabled: disabled,
27330
27356
  onClick: toggleRadio,
27331
27357
  "aria-describedby": ariaDescribedBy,
27332
- tabIndex: "-1",
27333
- required: isRequired
27358
+ tabIndex: "-1"
27334
27359
  }, extraProps)), /*#__PURE__*/React.createElement(Motion, {
27335
27360
  borderWidth: "1px",
27336
27361
  borderStyle: "solid",
@@ -38723,7 +38748,7 @@ validatorFns[INCLUDED_IN] = (value, args, form) =>
38723
38748
 
38724
38749
  const REQUIRED = 'validator/REQUIRED';
38725
38750
  const REQUIRED_ERROR = 'error/REQUIRED';
38726
- const required$1 = createValidator(REQUIRED, REQUIRED_ERROR);
38751
+ const required = createValidator(REQUIRED, REQUIRED_ERROR);
38727
38752
  validatorFns[REQUIRED] = (value, args, form) => value !== '';
38728
38753
 
38729
38754
  const ONLY_INTEGERS = 'validator/ONLY_INTEGERS';
@@ -39336,15 +39361,15 @@ var AddressForm = function AddressForm(_ref) {
39336
39361
  }, []);
39337
39362
  }
39338
39363
 
39339
- var street1ErrorMessages = _defineProperty({}, required$1.error, "Street is required");
39364
+ var street1ErrorMessages = _defineProperty({}, required.error, "Street is required");
39340
39365
 
39341
- var cityErrorMessages = _defineProperty({}, required$1.error, "City is required");
39366
+ var cityErrorMessages = _defineProperty({}, required.error, "City is required");
39342
39367
 
39343
- var zipErrorMessages = (_zipErrorMessages = {}, _defineProperty(_zipErrorMessages, required$1.error, "Zip code is required"), _defineProperty(_zipErrorMessages, hasLength.error, "Zip code must be 5 or 9 digits"), _zipErrorMessages);
39368
+ var zipErrorMessages = (_zipErrorMessages = {}, _defineProperty(_zipErrorMessages, required.error, "Zip code is required"), _defineProperty(_zipErrorMessages, hasLength.error, "Zip code must be 5 or 9 digits"), _zipErrorMessages);
39344
39369
 
39345
- var stateProvinceErrorMessages = _defineProperty({}, required$1.error, "State or Province is required");
39370
+ var stateProvinceErrorMessages = _defineProperty({}, required.error, "State or Province is required");
39346
39371
 
39347
- var countryErrorMessages = _defineProperty({}, required$1.error, "Country is required");
39372
+ var countryErrorMessages = _defineProperty({}, required.error, "Country is required");
39348
39373
 
39349
39374
  var isUS = fields.country.rawValue === "US";
39350
39375
  return /*#__PURE__*/React.createElement(FormContainer$1, {
@@ -39369,8 +39394,7 @@ var AddressForm = function AddressForm(_ref) {
39369
39394
  }
39370
39395
  },
39371
39396
  showErrors: showErrors,
39372
- dataQa: "Country",
39373
- isRequired: true
39397
+ dataQa: "Country"
39374
39398
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39375
39399
  labelTextWhenNoError: "Address",
39376
39400
  errorMessages: street1ErrorMessages,
@@ -39381,8 +39405,7 @@ var AddressForm = function AddressForm(_ref) {
39381
39405
  return e.key === "Enter" && handleSubmit(e);
39382
39406
  },
39383
39407
  autocompleteValue: "address-line1",
39384
- dataQa: "Address",
39385
- required: true
39408
+ dataQa: "Address"
39386
39409
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39387
39410
  labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
39388
39411
  field: fields.street2,
@@ -39392,8 +39415,7 @@ var AddressForm = function AddressForm(_ref) {
39392
39415
  return e.key === "Enter" && handleSubmit(e);
39393
39416
  },
39394
39417
  autocompleteValue: "address-line2",
39395
- dataQa: "Address Line 2",
39396
- required: true
39418
+ dataQa: "Address Line 2"
39397
39419
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39398
39420
  labelTextWhenNoError: "City",
39399
39421
  errorMessages: cityErrorMessages,
@@ -39404,8 +39426,7 @@ var AddressForm = function AddressForm(_ref) {
39404
39426
  return e.key === "Enter" && handleSubmit(e);
39405
39427
  },
39406
39428
  autocompleteValue: "address-level2",
39407
- dataQa: "City",
39408
- required: true
39429
+ dataQa: "City"
39409
39430
  }), /*#__PURE__*/React.createElement(FormStateDropdown, {
39410
39431
  labelTextWhenNoError: isUS ? "State" : "State or Province",
39411
39432
  errorMessages: stateProvinceErrorMessages,
@@ -39416,8 +39437,7 @@ var AddressForm = function AddressForm(_ref) {
39416
39437
  onKeyDown: function onKeyDown(e) {
39417
39438
  return e.key === "Enter" && handleSubmit(e);
39418
39439
  },
39419
- dataQa: "State or Province",
39420
- required: true
39440
+ dataQa: "State or Province"
39421
39441
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39422
39442
  isNum: isUS,
39423
39443
  formatter: isUS ? zipFormat : null,
@@ -39430,8 +39450,7 @@ var AddressForm = function AddressForm(_ref) {
39430
39450
  return e.key === "Enter" && handleSubmit(e);
39431
39451
  },
39432
39452
  autocompleteValue: "postal-code",
39433
- dataQa: "Zip code",
39434
- required: true
39453
+ dataQa: "Zip code"
39435
39454
  }), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
39436
39455
  name: "address checkbox",
39437
39456
  title: "Save address to wallet",
@@ -39442,23 +39461,23 @@ var AddressForm = function AddressForm(_ref) {
39442
39461
 
39443
39462
  var formConfig = {
39444
39463
  street1: {
39445
- validators: [required$1()]
39464
+ validators: [required()]
39446
39465
  },
39447
39466
  street2: {
39448
39467
  validators: []
39449
39468
  },
39450
39469
  city: {
39451
- validators: [required$1()]
39470
+ validators: [required()]
39452
39471
  },
39453
39472
  stateProvince: {
39454
- validators: [required$1()]
39473
+ validators: [required()]
39455
39474
  },
39456
39475
  country: {
39457
39476
  defaultValue: "US",
39458
- validators: [required$1()]
39477
+ validators: [required()]
39459
39478
  },
39460
39479
  zip: {
39461
- validators: [required$1(), validateWhen(validateWhen(hasLength(5, 5), hasLength(0, 5)), matchesRegex("US"), "country"), validateWhen(validateWhen(hasLength(9, 9), hasLength(6, 9)), matchesRegex("US"), "country")],
39480
+ validators: [required(), validateWhen(validateWhen(hasLength(5, 5), hasLength(0, 5)), matchesRegex("US"), "country"), validateWhen(validateWhen(hasLength(9, 9), hasLength(6, 9)), matchesRegex("US"), "country")],
39462
39481
  constraints: [validateWhen(onlyIntegers(), matchesRegex("US"), "country"), validateWhen(hasLength(0, 9), matchesRegex("US"), "country")]
39463
39482
  }
39464
39483
  };
@@ -39550,9 +39569,9 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
39550
39569
  }, []);
39551
39570
  }
39552
39571
 
39553
- var currentPasswordErrorMessages = _defineProperty({}, required$1.error, "Current Password is required");
39572
+ var currentPasswordErrorMessages = _defineProperty({}, required.error, "Current Password is required");
39554
39573
 
39555
- var newPasswordErrorMessages = (_newPasswordErrorMess = {}, _defineProperty(_newPasswordErrorMess, required$1.error, "New Password field is required."), _defineProperty(_newPasswordErrorMess, hasLength.error, "Your new password must have at least 8 characters"), _defineProperty(_newPasswordErrorMess, hasNumber.error, "Your new password must contain at least one number"), _defineProperty(_newPasswordErrorMess, hasLowercaseLetter.error, "Your new password must contain at least one lowercase letter"), _defineProperty(_newPasswordErrorMess, hasUppercaseLetter.error, "Your new password must contain at least one uppercase letter"), _defineProperty(_newPasswordErrorMess, hasSpecialCharacter.error, "Your new password must contain at least one special character (!@#$%^&*.?)"), _newPasswordErrorMess);
39574
+ var newPasswordErrorMessages = (_newPasswordErrorMess = {}, _defineProperty(_newPasswordErrorMess, required.error, "New Password field is required."), _defineProperty(_newPasswordErrorMess, hasLength.error, "Your new password must have at least 8 characters"), _defineProperty(_newPasswordErrorMess, hasNumber.error, "Your new password must contain at least one number"), _defineProperty(_newPasswordErrorMess, hasLowercaseLetter.error, "Your new password must contain at least one lowercase letter"), _defineProperty(_newPasswordErrorMess, hasUppercaseLetter.error, "Your new password must contain at least one uppercase letter"), _defineProperty(_newPasswordErrorMess, hasSpecialCharacter.error, "Your new password must contain at least one special character (!@#$%^&*.?)"), _newPasswordErrorMess);
39556
39575
 
39557
39576
  var confirmNewPasswordErrorMessages = _defineProperty({}, matchesField.error, "Confirm password must match your new password");
39558
39577
 
@@ -39645,13 +39664,13 @@ var ChangePasswordForm = function ChangePasswordForm(_ref) {
39645
39664
 
39646
39665
  var formConfig$1 = {
39647
39666
  currentPassword: {
39648
- validators: [required$1()]
39667
+ validators: [required()]
39649
39668
  },
39650
39669
  newPassword: {
39651
- validators: [required$1(), hasLength(8, 100), hasNumber(), hasLowercaseLetter(), hasUppercaseLetter(), hasSpecialCharacter()]
39670
+ validators: [required(), hasLength(8, 100), hasNumber(), hasLowercaseLetter(), hasUppercaseLetter(), hasSpecialCharacter()]
39652
39671
  },
39653
39672
  confirmNewPassword: {
39654
- validators: [required$1(), matchesField("newPassword")]
39673
+ validators: [required(), matchesField("newPassword")]
39655
39674
  }
39656
39675
  };
39657
39676
 
@@ -39994,9 +40013,9 @@ var EditNameForm = function EditNameForm(_ref) {
39994
40013
  }, []);
39995
40014
  }
39996
40015
 
39997
- var firstNameErrorMessages = _defineProperty({}, required$1.error, "First name is required");
40016
+ var firstNameErrorMessages = _defineProperty({}, required.error, "First name is required");
39998
40017
 
39999
- var lastNameErrorMessages = _defineProperty({}, required$1.error, "Last name is required");
40018
+ var lastNameErrorMessages = _defineProperty({}, required.error, "Last name is required");
40000
40019
 
40001
40020
  return /*#__PURE__*/React.createElement(FormContainer$1, {
40002
40021
  role: "form",
@@ -40011,8 +40030,7 @@ var EditNameForm = function EditNameForm(_ref) {
40011
40030
  onKeyDown: function onKeyDown(e) {
40012
40031
  return e.key === "Enter" && handleSubmit(e);
40013
40032
  },
40014
- autocompleteValue: "given-name",
40015
- isRequired: true
40033
+ autocompleteValue: "given-name"
40016
40034
  }), /*#__PURE__*/React.createElement(FormInput$1, {
40017
40035
  labelTextWhenNoError: "Last Name",
40018
40036
  dataQa: "Edit Last Name",
@@ -40023,17 +40041,16 @@ var EditNameForm = function EditNameForm(_ref) {
40023
40041
  onKeyDown: function onKeyDown(e) {
40024
40042
  return e.key === "Enter" && handleSubmit(e);
40025
40043
  },
40026
- autocompleteValue: "family-name",
40027
- isRequired: true
40044
+ autocompleteValue: "family-name"
40028
40045
  })));
40029
40046
  };
40030
40047
 
40031
40048
  var formConfig$2 = {
40032
40049
  firstName: {
40033
- validators: [required$1()]
40050
+ validators: [required()]
40034
40051
  },
40035
40052
  lastName: {
40036
- validators: [required$1()]
40053
+ validators: [required()]
40037
40054
  }
40038
40055
  };
40039
40056
 
@@ -40336,9 +40353,7 @@ var EmailForm = function EmailForm(_ref) {
40336
40353
  handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
40337
40354
  showWalletCheckbox = _ref.showWalletCheckbox,
40338
40355
  saveToWallet = _ref.saveToWallet,
40339
- walletCheckboxMarked = _ref.walletCheckboxMarked,
40340
- _ref$isRequired = _ref.isRequired,
40341
- isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
40356
+ walletCheckboxMarked = _ref.walletCheckboxMarked;
40342
40357
 
40343
40358
  if (clearOnDismount) {
40344
40359
  useEffect$1(function () {
@@ -40348,14 +40363,13 @@ var EmailForm = function EmailForm(_ref) {
40348
40363
  }, []);
40349
40364
  }
40350
40365
 
40351
- var emailFieldErrorMessages = (_emailFieldErrorMessa = {}, _defineProperty(_emailFieldErrorMessa, required$1.error, "Email address is required"), _defineProperty(_emailFieldErrorMessa, isProbablyEmail.error, "Invalid email address"), _emailFieldErrorMessa);
40366
+ var emailFieldErrorMessages = (_emailFieldErrorMessa = {}, _defineProperty(_emailFieldErrorMessa, required.error, "Email address is required"), _defineProperty(_emailFieldErrorMessa, isProbablyEmail.error, "Invalid email address"), _emailFieldErrorMessa);
40352
40367
  return /*#__PURE__*/React.createElement(FormContainer$1, {
40353
40368
  variant: variant,
40354
40369
  role: "form",
40355
40370
  "aria-label": "Email address"
40356
40371
  }, guestCheckout && /*#__PURE__*/React.createElement(Paragraph$1, {
40357
- margin: "0 0 1.125rem 0",
40358
- id: "explanation"
40372
+ margin: "0 0 1.125rem 0"
40359
40373
  }, "If desired, you can create a wallet later for faster checkout"), /*#__PURE__*/React.createElement(FormInputColumn, null, /*#__PURE__*/React.createElement(FormInput$1, {
40360
40374
  labelTextWhenNoError: "Email address",
40361
40375
  errorMessages: emailFieldErrorMessages,
@@ -40368,20 +40382,18 @@ var EmailForm = function EmailForm(_ref) {
40368
40382
  },
40369
40383
  isEmail: true,
40370
40384
  autocompleteValue: "email",
40371
- dataQa: "Email address",
40372
- required: isRequired
40385
+ dataQa: "Email address"
40373
40386
  }), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
40374
40387
  name: "email checkbox",
40375
40388
  title: "Save email address to wallet",
40376
40389
  checked: walletCheckboxMarked,
40377
- onChange: saveToWallet,
40378
- "aria-describedby": "explanation"
40390
+ onChange: saveToWallet
40379
40391
  })));
40380
40392
  };
40381
40393
 
40382
40394
  var formConfig$3 = {
40383
40395
  email: {
40384
- validators: [required$1(), isProbablyEmail()]
40396
+ validators: [required(), isProbablyEmail()]
40385
40397
  }
40386
40398
  };
40387
40399
 
@@ -40448,7 +40460,7 @@ var ForgotPasswordForm = function ForgotPasswordForm(_ref) {
40448
40460
  }, []);
40449
40461
  }
40450
40462
 
40451
- var EmailErrorMessages = (_EmailErrorMessages = {}, _defineProperty(_EmailErrorMessages, required$1.error, "Email address is required"), _defineProperty(_EmailErrorMessages, isProbablyEmail.error, "Email address is not valid"), _EmailErrorMessages);
40463
+ var EmailErrorMessages = (_EmailErrorMessages = {}, _defineProperty(_EmailErrorMessages, required.error, "Email address is required"), _defineProperty(_EmailErrorMessages, isProbablyEmail.error, "Email address is not valid"), _EmailErrorMessages);
40452
40464
  return /*#__PURE__*/React.createElement(FormInput$1, {
40453
40465
  labelTextWhenNoError: "Email address",
40454
40466
  errorMessages: EmailErrorMessages,
@@ -40465,7 +40477,7 @@ var ForgotPasswordForm = function ForgotPasswordForm(_ref) {
40465
40477
 
40466
40478
  var formConfig$4 = {
40467
40479
  email: {
40468
- validators: [required$1(), isProbablyEmail()]
40480
+ validators: [required(), isProbablyEmail()]
40469
40481
  }
40470
40482
  };
40471
40483
 
@@ -42127,9 +42139,9 @@ var LoginForm = function LoginForm(_ref) {
42127
42139
  }, []);
42128
42140
  }
42129
42141
 
42130
- var emailErrorMessages = (_emailErrorMessages = {}, _defineProperty(_emailErrorMessages, required$1.error, "Email address is required"), _defineProperty(_emailErrorMessages, isProbablyEmail.error, "Invalid email address"), _emailErrorMessages);
42142
+ var emailErrorMessages = (_emailErrorMessages = {}, _defineProperty(_emailErrorMessages, required.error, "Email address is required"), _defineProperty(_emailErrorMessages, isProbablyEmail.error, "Invalid email address"), _emailErrorMessages);
42131
42143
 
42132
- var passwordErrorMessages = _defineProperty({}, required$1.error, "Password is required");
42144
+ var passwordErrorMessages = _defineProperty({}, required.error, "Password is required");
42133
42145
 
42134
42146
  return /*#__PURE__*/React.createElement(FormInputColumn, {
42135
42147
  role: "form",
@@ -42162,10 +42174,10 @@ var LoginForm = function LoginForm(_ref) {
42162
42174
 
42163
42175
  var formConfig$5 = {
42164
42176
  email: {
42165
- validators: [required$1(), isProbablyEmail()]
42177
+ validators: [required(), isProbablyEmail()]
42166
42178
  },
42167
42179
  password: {
42168
- validators: [required$1()]
42180
+ validators: [required()]
42169
42181
  }
42170
42182
  };
42171
42183
 
@@ -46770,7 +46782,7 @@ var PartialAmountForm = function PartialAmountForm(_ref) {
46770
46782
  }, []);
46771
46783
  }
46772
46784
 
46773
- var amountErrors = (_amountErrors = {}, _defineProperty(_amountErrors, required$1.error, "Amount is required"), _defineProperty(_amountErrors, numberGreaterThanOrEqualTo.error, "There is a minimum payment of ".concat(displayCurrency(minimum))), _defineProperty(_amountErrors, numberLessThanOrEqualTo.error, "There is a maximum payment of ".concat(displayCurrency(maximum))), _amountErrors);
46785
+ var amountErrors = (_amountErrors = {}, _defineProperty(_amountErrors, required.error, "Amount is required"), _defineProperty(_amountErrors, numberGreaterThanOrEqualTo.error, "There is a minimum payment of ".concat(displayCurrency(minimum))), _defineProperty(_amountErrors, numberLessThanOrEqualTo.error, "There is a maximum payment of ".concat(displayCurrency(maximum))), _amountErrors);
46774
46786
 
46775
46787
  var getPartialAmountFormErrors = function getPartialAmountFormErrors(itemAmount) {
46776
46788
  var errorMessages = amountErrors;
@@ -46844,7 +46856,7 @@ var createPartialAmountFormState = function createPartialAmountFormState(lineIte
46844
46856
  var createPartialAmountFormValidators = function createPartialAmountFormValidators(item, lineItems, maximum) {
46845
46857
  var minimum = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
46846
46858
  var blockPartialPaymentOverpay = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
46847
- var validators = [required$1(), validateSum(numberGreaterThanOrEqualTo(minimum), lineItems.filter(function (lineItem) {
46859
+ var validators = [required(), validateSum(numberGreaterThanOrEqualTo(minimum), lineItems.filter(function (lineItem) {
46848
46860
  return lineItem != item;
46849
46861
  }).reduce(function (acc, curr) {
46850
46862
  return [].concat(_toConsumableArray(acc), [curr.id]);
@@ -47906,17 +47918,17 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47906
47918
 
47907
47919
  var showTerms = !!termsContent;
47908
47920
 
47909
- var nameErrors = _defineProperty({}, required$1.error, "Name is required");
47921
+ var nameErrors = _defineProperty({}, required.error, "Name is required");
47910
47922
 
47911
- var routingNumberErrors = (_routingNumberErrors = {}, _defineProperty(_routingNumberErrors, required$1.error, "Routing number is required"), _defineProperty(_routingNumberErrors, hasLength.error, "Routing number must be 9 digits"), _defineProperty(_routingNumberErrors, isRoutingNumber.error, "Invalid routing number"), _routingNumberErrors);
47923
+ var routingNumberErrors = (_routingNumberErrors = {}, _defineProperty(_routingNumberErrors, required.error, "Routing number is required"), _defineProperty(_routingNumberErrors, hasLength.error, "Routing number must be 9 digits"), _defineProperty(_routingNumberErrors, isRoutingNumber.error, "Invalid routing number"), _routingNumberErrors);
47912
47924
 
47913
47925
  var confirmRoutingNumberErrors = _defineProperty({}, matchesField.error, "Confirm routing number field must match routing number");
47914
47926
 
47915
- var accountNumberErrors = (_accountNumberErrors = {}, _defineProperty(_accountNumberErrors, required$1.error, "Account number is required"), _defineProperty(_accountNumberErrors, hasLength.error, "Account number must be between 5 and 17 digits"), _accountNumberErrors);
47927
+ var accountNumberErrors = (_accountNumberErrors = {}, _defineProperty(_accountNumberErrors, required.error, "Account number is required"), _defineProperty(_accountNumberErrors, hasLength.error, "Account number must be between 5 and 17 digits"), _accountNumberErrors);
47916
47928
 
47917
47929
  var confirmAccountNumberErrors = _defineProperty({}, matchesField.error, "Confirm account number field must match account number");
47918
47930
 
47919
- var accountTypeErrors = _defineProperty({}, required$1.error, "Account type is required");
47931
+ var accountTypeErrors = _defineProperty({}, required.error, "Account type is required");
47920
47932
 
47921
47933
  return /*#__PURE__*/React.createElement(FormContainer$1, {
47922
47934
  variant: variant,
@@ -47932,8 +47944,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47932
47944
  onKeyDown: function onKeyDown(e) {
47933
47945
  return e.key === "Enter" && handleSubmit(e);
47934
47946
  },
47935
- autocompleteValue: "name",
47936
- isRequired: true
47947
+ autocompleteValue: "name"
47937
47948
  }), /*#__PURE__*/React.createElement(FormInput$1, {
47938
47949
  labelTextWhenNoError: "Routing number",
47939
47950
  dataQa: "Routing number",
@@ -47955,8 +47966,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47955
47966
  },
47956
47967
  onKeyDown: function onKeyDown(e) {
47957
47968
  return e.key === "Enter" && handleSubmit(e);
47958
- },
47959
- isRequired: true
47969
+ }
47960
47970
  }), /*#__PURE__*/React.createElement(FormInput$1, {
47961
47971
  labelTextWhenNoError: "Confirm routing number",
47962
47972
  dataQa: "Confirm routing number",
@@ -47967,7 +47977,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47967
47977
  onKeyDown: function onKeyDown(e) {
47968
47978
  return e.key === "Enter" && handleSubmit(e);
47969
47979
  },
47970
- isRequired: true,
47971
47980
  isNum: true
47972
47981
  }), /*#__PURE__*/React.createElement(FormInput$1, {
47973
47982
  labelTextWhenNoError: "Account number",
@@ -47976,7 +47985,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47976
47985
  field: fields.accountNumber,
47977
47986
  fieldActions: actions.fields.accountNumber,
47978
47987
  showErrors: showErrors,
47979
- isRequired: true,
47980
47988
  isNum: true,
47981
47989
  helperModal: function helperModal() {
47982
47990
  return /*#__PURE__*/React.createElement(AccountAndRoutingModal$1, {
@@ -47994,7 +48002,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47994
48002
  }
47995
48003
  }), /*#__PURE__*/React.createElement(FormInput$1, {
47996
48004
  labelTextWhenNoError: "Confirm account number",
47997
- isRequired: true,
47998
48005
  dataQa: "Confirm account number",
47999
48006
  errorMessages: confirmAccountNumberErrors,
48000
48007
  field: fields.confirmAccountNumber,
@@ -48023,7 +48030,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48023
48030
  field: fields.accountType
48024
48031
  }), !hideDefaultPayment && /*#__PURE__*/React.createElement(Checkbox$1, {
48025
48032
  title: "Save as Default Payment Method",
48026
- required: true,
48027
48033
  dataQa: "default-payment-ach",
48028
48034
  name: "default-payment-ach",
48029
48035
  onChange: toggleCheckbox,
@@ -48050,10 +48056,10 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48050
48056
 
48051
48057
  var formConfig$6 = {
48052
48058
  name: {
48053
- validators: [required$1()]
48059
+ validators: [required()]
48054
48060
  },
48055
48061
  routingNumber: {
48056
- validators: [required$1(), hasLength(9, 9), isRoutingNumber()],
48062
+ validators: [required(), hasLength(9, 9), isRoutingNumber()],
48057
48063
  constraints: [onlyIntegers(), hasLength(0, 9)]
48058
48064
  },
48059
48065
  confirmRoutingNumber: {
@@ -48061,7 +48067,7 @@ var formConfig$6 = {
48061
48067
  constraints: [onlyIntegers(), hasLength(0, 9)]
48062
48068
  },
48063
48069
  accountNumber: {
48064
- validators: [required$1(), hasLength(5, 17)],
48070
+ validators: [required(), hasLength(5, 17)],
48065
48071
  constraints: [onlyIntegers(), hasLength(0, 17)]
48066
48072
  },
48067
48073
  confirmAccountNumber: {
@@ -48070,7 +48076,7 @@ var formConfig$6 = {
48070
48076
  },
48071
48077
  accountType: {
48072
48078
  defaultValue: "CHECKING",
48073
- validators: [required$1()]
48079
+ validators: [required()]
48074
48080
  }
48075
48081
  };
48076
48082
 
@@ -48121,14 +48127,14 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48121
48127
  }
48122
48128
  }, []);
48123
48129
 
48124
- var nameOnCardErrors = _defineProperty({}, required$1.error, "Name is required");
48130
+ var nameOnCardErrors = _defineProperty({}, required.error, "Name is required");
48125
48131
 
48126
- var creditCardNumberErrors = (_creditCardNumberErro = {}, _defineProperty(_creditCardNumberErro, required$1.error, "Credit card number is required"), _defineProperty(_creditCardNumberErro, hasLength.error, "Credit card number is invalid"), _defineProperty(_creditCardNumberErro, matchesRegex.error, "".concat(displayCardBrand(fields.creditCardNumber.rawValue), " is not accepted")), _creditCardNumberErro);
48127
- var expirationDateErrors = (_expirationDateErrors = {}, _defineProperty(_expirationDateErrors, required$1.error, "Expiration date is required"), _defineProperty(_expirationDateErrors, hasLength.error, "Expiration date is invalid"), _defineProperty(_expirationDateErrors, isValidMonth.error, "Expiration month is invalid"), _defineProperty(_expirationDateErrors, dateAfterToday.error, "Expiration date is invalid"), _expirationDateErrors);
48128
- var cvvErrors = (_cvvErrors = {}, _defineProperty(_cvvErrors, required$1.error, "CVV is required"), _defineProperty(_cvvErrors, hasLength.error, "CVV is invalid"), _cvvErrors);
48129
- var zipCodeErrors = (_zipCodeErrors = {}, _defineProperty(_zipCodeErrors, required$1.error, "Zip code is required"), _defineProperty(_zipCodeErrors, hasLength.error, "Zip code is invalid"), _zipCodeErrors);
48132
+ var creditCardNumberErrors = (_creditCardNumberErro = {}, _defineProperty(_creditCardNumberErro, required.error, "Credit card number is required"), _defineProperty(_creditCardNumberErro, hasLength.error, "Credit card number is invalid"), _defineProperty(_creditCardNumberErro, matchesRegex.error, "".concat(displayCardBrand(fields.creditCardNumber.rawValue), " is not accepted")), _creditCardNumberErro);
48133
+ var expirationDateErrors = (_expirationDateErrors = {}, _defineProperty(_expirationDateErrors, required.error, "Expiration date is required"), _defineProperty(_expirationDateErrors, hasLength.error, "Expiration date is invalid"), _defineProperty(_expirationDateErrors, isValidMonth.error, "Expiration month is invalid"), _defineProperty(_expirationDateErrors, dateAfterToday.error, "Expiration date is invalid"), _expirationDateErrors);
48134
+ var cvvErrors = (_cvvErrors = {}, _defineProperty(_cvvErrors, required.error, "CVV is required"), _defineProperty(_cvvErrors, hasLength.error, "CVV is invalid"), _cvvErrors);
48135
+ var zipCodeErrors = (_zipCodeErrors = {}, _defineProperty(_zipCodeErrors, required.error, "Zip code is required"), _defineProperty(_zipCodeErrors, hasLength.error, "Zip code is invalid"), _zipCodeErrors);
48130
48136
 
48131
- var countryErrorMessages = _defineProperty({}, required$1.error, "Country is required");
48137
+ var countryErrorMessages = _defineProperty({}, required.error, "Country is required");
48132
48138
 
48133
48139
  var isUS = fields.country.rawValue === "US";
48134
48140
  return /*#__PURE__*/React.createElement(FormContainer$1, {
@@ -48148,8 +48154,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48148
48154
  }
48149
48155
  },
48150
48156
  showErrors: showErrors,
48151
- dataQa: "Country",
48152
- isRequired: true
48157
+ dataQa: "Country"
48153
48158
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48154
48159
  labelTextWhenNoError: "Name on card",
48155
48160
  dataQa: "Name on card",
@@ -48160,8 +48165,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48160
48165
  onKeyDown: function onKeyDown(e) {
48161
48166
  return e.key === "Enter" && handleSubmit(e);
48162
48167
  },
48163
- autocompleteValue: "cc-name",
48164
- required: true
48168
+ autocompleteValue: "cc-name"
48165
48169
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48166
48170
  labelTextWhenNoError: "Credit card number",
48167
48171
  dataQa: "Credit card number",
@@ -48174,8 +48178,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48174
48178
  return e.key === "Enter" && handleSubmit(e);
48175
48179
  },
48176
48180
  isNum: true,
48177
- autocompleteValue: "cc-number",
48178
- required: true
48181
+ autocompleteValue: "cc-number"
48179
48182
  }), /*#__PURE__*/React.createElement(FormInputRow, {
48180
48183
  breakpoint: isMobile ? "1000rem" : "21rem",
48181
48184
  childGap: isMobile ? "0rem" : "1rem"
@@ -48193,8 +48196,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48193
48196
  isNum: true,
48194
48197
  removeFromValue: /\// // removes "/" from browser autofill
48195
48198
  ,
48196
- autocompleteValue: "cc-exp",
48197
- required: true
48199
+ autocompleteValue: "cc-exp"
48198
48200
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48199
48201
  labelTextWhenNoError: "CVV",
48200
48202
  dataQa: "CVV",
@@ -48207,8 +48209,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48207
48209
  onKeyDown: function onKeyDown(e) {
48208
48210
  return e.key === "Enter" && handleSubmit(e);
48209
48211
  },
48210
- autocompleteValue: "cc-csc",
48211
- required: true
48212
+ autocompleteValue: "cc-csc"
48212
48213
  })), !hideZipCode && /*#__PURE__*/React.createElement(Box, {
48213
48214
  padding: isMobile ? "0" : "0 0.5rem 0 0",
48214
48215
  width: isMobile ? "100%" : "50%"
@@ -48224,8 +48225,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48224
48225
  onKeyDown: function onKeyDown(e) {
48225
48226
  return e.key === "Enter" && handleSubmit(e);
48226
48227
  },
48227
- autocompleteValue: "billing postal-code",
48228
- required: true
48228
+ autocompleteValue: "billing postal-code"
48229
48229
  })), (showWalletCheckbox || showTerms) && /*#__PURE__*/React.createElement(Cluster, {
48230
48230
  childGap: "4px",
48231
48231
  align: "center"
@@ -48250,25 +48250,25 @@ var PaymentFormCard$1 = withWindowSize(PaymentFormCard);
48250
48250
  var formConfig$7 = {
48251
48251
  country: {
48252
48252
  defaultValue: "US",
48253
- validators: [required$1()]
48253
+ validators: [required()]
48254
48254
  },
48255
48255
  nameOnCard: {
48256
- validators: [required$1()]
48256
+ validators: [required()]
48257
48257
  },
48258
48258
  creditCardNumber: {
48259
- validators: [required$1(), hasLength(15, 16)],
48259
+ validators: [required(), hasLength(15, 16)],
48260
48260
  constraints: [onlyIntegers(), hasLength(0, 16)]
48261
48261
  },
48262
48262
  expirationDate: {
48263
- validators: [required$1(), hasLength(4, 4), isValidMonth(0), dateAfterToday("MMYY", "month", true)],
48263
+ validators: [required(), hasLength(4, 4), isValidMonth(0), dateAfterToday("MMYY", "month", true)],
48264
48264
  constraints: [onlyExpirationDate(), hasLength(0, 4)]
48265
48265
  },
48266
48266
  cvv: {
48267
- validators: [required$1(), hasLength(3, 4)],
48267
+ validators: [required(), hasLength(3, 4)],
48268
48268
  constraints: [onlyIntegers(), hasLength(0, 4)]
48269
48269
  },
48270
48270
  zipCode: {
48271
- validators: [required$1(), validateWhen(validateWhen(hasLength(5, 5), hasLength(0, 5)), matchesRegex("US"), "country"), validateWhen(validateWhen(hasLength(9, 9), hasLength(6, 9)), matchesRegex("US"), "country")],
48271
+ validators: [required(), validateWhen(validateWhen(hasLength(5, 5), hasLength(0, 5)), matchesRegex("US"), "country"), validateWhen(validateWhen(hasLength(9, 9), hasLength(6, 9)), matchesRegex("US"), "country")],
48272
48272
  constraints: [validateWhen(onlyIntegers(), matchesRegex("US"), "country"), validateWhen(hasLength(0, 9), matchesRegex("US"), "country")]
48273
48273
  }
48274
48274
  };
@@ -48418,9 +48418,7 @@ var PhoneForm = function PhoneForm(_ref) {
48418
48418
  handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
48419
48419
  showWalletCheckbox = _ref.showWalletCheckbox,
48420
48420
  saveToWallet = _ref.saveToWallet,
48421
- walletCheckboxMarked = _ref.walletCheckboxMarked,
48422
- _ref$isRequired = _ref.isRequired,
48423
- isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
48421
+ walletCheckboxMarked = _ref.walletCheckboxMarked;
48424
48422
 
48425
48423
  if (clearOnDismount) {
48426
48424
  useEffect$1(function () {
@@ -48430,7 +48428,7 @@ var PhoneForm = function PhoneForm(_ref) {
48430
48428
  }, []);
48431
48429
  }
48432
48430
 
48433
- var phoneErrorMessage = (_phoneErrorMessage = {}, _defineProperty(_phoneErrorMessage, required$1.error, "Phone number is required"), _defineProperty(_phoneErrorMessage, hasLength.error, "Phone number must be 10 digits"), _phoneErrorMessage);
48431
+ var phoneErrorMessage = (_phoneErrorMessage = {}, _defineProperty(_phoneErrorMessage, required.error, "Phone number is required"), _defineProperty(_phoneErrorMessage, hasLength.error, "Phone number must be 10 digits"), _phoneErrorMessage);
48434
48432
  return /*#__PURE__*/React.createElement(FormContainer$1, {
48435
48433
  variant: variant,
48436
48434
  role: "form",
@@ -48447,8 +48445,7 @@ var PhoneForm = function PhoneForm(_ref) {
48447
48445
  },
48448
48446
  autocompleteValue: "tel-national",
48449
48447
  dataQa: "Phone number",
48450
- isNum: true,
48451
- required: isRequired
48448
+ isNum: true
48452
48449
  }), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
48453
48450
  name: "phone checkbox",
48454
48451
  title: "Save phone number to wallet",
@@ -48459,7 +48456,7 @@ var PhoneForm = function PhoneForm(_ref) {
48459
48456
 
48460
48457
  var formConfig$8 = {
48461
48458
  phone: {
48462
- validators: [required$1(), hasLength(10, 10)],
48459
+ validators: [required(), hasLength(10, 10)],
48463
48460
  constraints: [onlyIntegers(), hasLength(0, 10)]
48464
48461
  }
48465
48462
  };
@@ -48497,27 +48494,20 @@ var RadioGroup = function RadioGroup(_ref) {
48497
48494
  _ref$handleChange = _ref.handleChange,
48498
48495
  handleChange = _ref$handleChange === void 0 ? noop : _ref$handleChange,
48499
48496
  field = _ref.field,
48500
- fieldActions = _ref.fieldActions,
48501
- _ref$role = _ref.role,
48502
- role = _ref$role === void 0 ? "radiogroup" : _ref$role,
48503
- _ref$isRequired = _ref.isRequired,
48504
- isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
48497
+ fieldActions = _ref.fieldActions;
48505
48498
 
48506
48499
  var setValue = function setValue(value) {
48507
48500
  return fieldActions.set(value);
48508
48501
  };
48509
48502
 
48510
48503
  return /*#__PURE__*/React.createElement(StyledFieldset, {
48504
+ role: "radiogroup",
48505
+ "aria-labelledby": "radio-group-".concat(groupName, "-heading"),
48511
48506
  $extraStyles: extraStyles
48512
48507
  }, Heading !== null && Heading, /*#__PURE__*/React.createElement(Stack, {
48513
- childGap: "4px",
48514
- role: role,
48515
- required: isRequired,
48516
- "aria-labelledby": "radio-group-".concat(groupName, "-heading")
48508
+ childGap: "4px"
48517
48509
  }, config.map(function (c, idx) {
48518
48510
  return /*#__PURE__*/React.createElement(RadioButtonWithLabel$1, _extends({
48519
- required: isRequired,
48520
- role: "radio",
48521
48511
  index: idx,
48522
48512
  key: c.id
48523
48513
  }, c, {
@@ -48588,13 +48578,7 @@ var RadioSection = function RadioSection(_ref) {
48588
48578
  openHeight = _ref$openHeight === void 0 ? "auto" : _ref$openHeight,
48589
48579
  _ref$containerStyles = _ref.containerStyles,
48590
48580
  containerStyles = _ref$containerStyles === void 0 ? "" : _ref$containerStyles,
48591
- ariaDescribedBy = _ref.ariaDescribedBy,
48592
- _ref$role = _ref.role,
48593
- role = _ref$role === void 0 ? "radiogroup" : _ref$role,
48594
- _ref$required = _ref.required,
48595
- required = _ref$required === void 0 ? false : _ref$required,
48596
- _ref$label = _ref.label,
48597
- label = _ref$label === void 0 ? "" : _ref$label;
48581
+ ariaDescribedBy = _ref.ariaDescribedBy;
48598
48582
 
48599
48583
  var handleKeyDown = function handleKeyDown(id, e) {
48600
48584
  if ((e === null || e === void 0 ? void 0 : e.keyCode) === 13 || (e === null || e === void 0 ? void 0 : e.keyCode) === 32) {
@@ -48647,11 +48631,10 @@ var RadioSection = function RadioSection(_ref) {
48647
48631
  padding: "1px",
48648
48632
  border: "1px solid ".concat(themeValues.borderColor),
48649
48633
  borderRadius: "4px",
48650
- extraStyles: containerStyles,
48651
- role: role,
48652
- required: required
48634
+ extraStyles: containerStyles
48653
48635
  }, /*#__PURE__*/React.createElement(Stack, {
48654
- childGap: "0"
48636
+ childGap: "0",
48637
+ role: "radiogroup"
48655
48638
  }, sections.filter(function (section) {
48656
48639
  return !section.hidden;
48657
48640
  }).map(function (section) {
@@ -48673,8 +48656,7 @@ var RadioSection = function RadioSection(_ref) {
48673
48656
  extraStyles: borderStyles,
48674
48657
  role: "radio",
48675
48658
  "aria-checked": openSection === section.id,
48676
- "aria-disabled": section.disabled,
48677
- "aria-label": label || section.title
48659
+ "aria-disabled": section.disabled
48678
48660
  }, /*#__PURE__*/React.createElement(Stack, {
48679
48661
  childGap: "0"
48680
48662
  }, /*#__PURE__*/React.createElement(Box, {
@@ -48712,8 +48694,7 @@ var RadioSection = function RadioSection(_ref) {
48712
48694
  toggleRadio: section.disabled ? noop : function () {
48713
48695
  return toggleOpenSection(section.id);
48714
48696
  },
48715
- tabIndex: "-1",
48716
- isRequired: required
48697
+ tabIndex: "-1"
48717
48698
  })), section.titleIcon && /*#__PURE__*/React.createElement(Cluster, {
48718
48699
  align: "center"
48719
48700
  }, section.titleIcon), /*#__PURE__*/React.createElement(Box, {
@@ -48772,12 +48753,12 @@ var RegistrationForm = function RegistrationForm(_ref) {
48772
48753
  }, []);
48773
48754
  }
48774
48755
 
48775
- var firstNameErrorMessages = _defineProperty({}, required$1.error, "First name is required");
48756
+ var firstNameErrorMessages = _defineProperty({}, required.error, "First name is required");
48776
48757
 
48777
- var lastNameErrorMessages = _defineProperty({}, required$1.error, "Last name is required");
48758
+ var lastNameErrorMessages = _defineProperty({}, required.error, "Last name is required");
48778
48759
 
48779
- var emailErrorMessages = (_emailErrorMessages = {}, _defineProperty(_emailErrorMessages, required$1.error, "Email is required"), _defineProperty(_emailErrorMessages, isProbablyEmail.error, "Invalid email address"), _emailErrorMessages);
48780
- var passwordErrorMessages = (_passwordErrorMessage = {}, _defineProperty(_passwordErrorMessage, required$1.error, "Password is required"), _defineProperty(_passwordErrorMessage, hasLength.error, "Password must have at least 8 characters"), _defineProperty(_passwordErrorMessage, hasNumber.error, "Password must contain at least one number"), _defineProperty(_passwordErrorMessage, hasLowercaseLetter.error, "Password must contain at least one lowercase letter"), _defineProperty(_passwordErrorMessage, hasUppercaseLetter.error, "Password must contain at least one uppercase letter"), _defineProperty(_passwordErrorMessage, hasSpecialCharacter.error, "Password must contain at least one special character (!@#$%^&*.?)"), _passwordErrorMessage);
48760
+ var emailErrorMessages = (_emailErrorMessages = {}, _defineProperty(_emailErrorMessages, required.error, "Email is required"), _defineProperty(_emailErrorMessages, isProbablyEmail.error, "Invalid email address"), _emailErrorMessages);
48761
+ var passwordErrorMessages = (_passwordErrorMessage = {}, _defineProperty(_passwordErrorMessage, required.error, "Password is required"), _defineProperty(_passwordErrorMessage, hasLength.error, "Password must have at least 8 characters"), _defineProperty(_passwordErrorMessage, hasNumber.error, "Password must contain at least one number"), _defineProperty(_passwordErrorMessage, hasLowercaseLetter.error, "Password must contain at least one lowercase letter"), _defineProperty(_passwordErrorMessage, hasUppercaseLetter.error, "Password must contain at least one uppercase letter"), _defineProperty(_passwordErrorMessage, hasSpecialCharacter.error, "Password must contain at least one special character (!@#$%^&*.?)"), _passwordErrorMessage);
48781
48762
 
48782
48763
  var confirmPasswordErrorMessages = _defineProperty({}, matchesField.error, "Confirm password must match password");
48783
48764
 
@@ -48853,19 +48834,19 @@ var RegistrationForm = function RegistrationForm(_ref) {
48853
48834
 
48854
48835
  var formConfig$9 = {
48855
48836
  firstName: {
48856
- validators: [required$1()]
48837
+ validators: [required()]
48857
48838
  },
48858
48839
  lastName: {
48859
- validators: [required$1()]
48840
+ validators: [required()]
48860
48841
  },
48861
48842
  email: {
48862
- validators: [required$1(), isProbablyEmail()]
48843
+ validators: [required(), isProbablyEmail()]
48863
48844
  },
48864
48845
  password: {
48865
- validators: [required$1(), hasLength(8, 100), hasNumber(), hasLowercaseLetter(), hasUppercaseLetter(), hasSpecialCharacter()]
48846
+ validators: [required(), hasLength(8, 100), hasNumber(), hasLowercaseLetter(), hasUppercaseLetter(), hasSpecialCharacter()]
48866
48847
  },
48867
48848
  confirmPassword: {
48868
- validators: [required$1(), matchesField("password")]
48849
+ validators: [required(), matchesField("password")]
48869
48850
  }
48870
48851
  };
48871
48852
 
@@ -48946,7 +48927,7 @@ var ResetPasswordForm = function ResetPasswordForm(_ref) {
48946
48927
  }, []);
48947
48928
  }
48948
48929
 
48949
- var passwordErrorMessages = (_passwordErrorMessage = {}, _defineProperty(_passwordErrorMessage, required$1.error, "Password is required"), _defineProperty(_passwordErrorMessage, hasLength.error, "Password must have at least 8 characters"), _defineProperty(_passwordErrorMessage, hasNumber.error, "Password must contain at least one number"), _defineProperty(_passwordErrorMessage, hasLowercaseLetter.error, "Password must contain at least one lowercase letter"), _defineProperty(_passwordErrorMessage, hasUppercaseLetter.error, "Password must contain at least one uppercase letter"), _defineProperty(_passwordErrorMessage, hasSpecialCharacter.error, "Password must contain at least one special character (!@#$%^&*.?)"), _passwordErrorMessage);
48930
+ var passwordErrorMessages = (_passwordErrorMessage = {}, _defineProperty(_passwordErrorMessage, required.error, "Password is required"), _defineProperty(_passwordErrorMessage, hasLength.error, "Password must have at least 8 characters"), _defineProperty(_passwordErrorMessage, hasNumber.error, "Password must contain at least one number"), _defineProperty(_passwordErrorMessage, hasLowercaseLetter.error, "Password must contain at least one lowercase letter"), _defineProperty(_passwordErrorMessage, hasUppercaseLetter.error, "Password must contain at least one uppercase letter"), _defineProperty(_passwordErrorMessage, hasSpecialCharacter.error, "Password must contain at least one special character (!@#$%^&*.?)"), _passwordErrorMessage);
48950
48931
 
48951
48932
  var confirmPasswordErrorMessages = _defineProperty({}, matchesField.error, "Confirm password must match password");
48952
48933
 
@@ -48985,10 +48966,10 @@ var ResetPasswordForm = function ResetPasswordForm(_ref) {
48985
48966
 
48986
48967
  var formConfig$a = {
48987
48968
  password: {
48988
- validators: [required$1(), hasLength(8, 100), hasNumber(), hasLowercaseLetter(), hasUppercaseLetter(), hasSpecialCharacter()]
48969
+ validators: [required(), hasLength(8, 100), hasNumber(), hasLowercaseLetter(), hasUppercaseLetter(), hasSpecialCharacter()]
48989
48970
  },
48990
48971
  confirmPassword: {
48991
- validators: [required$1(), matchesField("password")]
48972
+ validators: [required(), matchesField("password")]
48992
48973
  }
48993
48974
  };
48994
48975
 
@@ -49373,11 +49354,11 @@ var CenterSingle = function CenterSingle(_ref) {
49373
49354
  }), /*#__PURE__*/React.createElement(Box, {
49374
49355
  padding: "0",
49375
49356
  minWidth: "100%",
49376
- extraStyles: "z-index: 1;",
49377
- role: "main"
49357
+ extraStyles: "z-index: 1;"
49378
49358
  }, subHeader && !(isMobile && hideMobileSubHeader) ? subHeader : /*#__PURE__*/React.createElement(Fragment$1, null), /*#__PURE__*/React.createElement(Center, {
49379
49359
  maxWidth: isMobile && fullWidthMobile ? "100%" : maxContentWidth,
49380
- intrinsic: !isMobile
49360
+ intrinsic: !isMobile,
49361
+ role: "main"
49381
49362
  }, centeredMobileContent ? /*#__PURE__*/React.createElement(Cover, {
49382
49363
  minHeight: "100%",
49383
49364
  singleChild: true
@@ -49403,7 +49384,9 @@ var CenterStack = function CenterStack(_ref) {
49403
49384
  _ref$fullWidthMobile = _ref.fullWidthMobile,
49404
49385
  fullWidthMobile = _ref$fullWidthMobile === void 0 ? true : _ref$fullWidthMobile,
49405
49386
  content = _ref.content,
49406
- themeValues = _ref.themeValues;
49387
+ themeValues = _ref.themeValues,
49388
+ _ref$role = _ref.role,
49389
+ role = _ref$role === void 0 ? "main" : _ref$role;
49407
49390
  var themeContext = useContext(ThemeContext);
49408
49391
  var isMobile = themeContext.isMobile;
49409
49392
  return /*#__PURE__*/React.createElement(Box, {
@@ -49415,11 +49398,11 @@ var CenterStack = function CenterStack(_ref) {
49415
49398
  padding: "0"
49416
49399
  }), /*#__PURE__*/React.createElement(Box, {
49417
49400
  padding: "0",
49418
- minWidth: "100%",
49419
- role: "main"
49401
+ minWidth: "100%"
49420
49402
  }, subHeader && !(isMobile && hideMobileSubHeader) ? subHeader : /*#__PURE__*/React.createElement(Fragment$1, null), /*#__PURE__*/React.createElement(Center, {
49421
49403
  maxWidth: isMobile && fullWidthMobile ? "100%" : maxContentWidth,
49422
- intrinsic: !isMobile
49404
+ intrinsic: !isMobile,
49405
+ role: role
49423
49406
  }, /*#__PURE__*/React.createElement(Cover, {
49424
49407
  minHeight: "100%",
49425
49408
  singleChild: true
@@ -49465,11 +49448,11 @@ var CenterSingle$2 = function CenterSingle(_ref) {
49465
49448
  padding: "0",
49466
49449
  minWidth: "100%",
49467
49450
  minHeight: "100%",
49468
- extraStyles: "z-index: 1;",
49469
- role: "main"
49451
+ extraStyles: "z-index: 1;"
49470
49452
  }, subHeader && !(isMobile && hideMobileSubHeader) ? subHeader : /*#__PURE__*/React.createElement(Fragment$1, null), /*#__PURE__*/React.createElement(Center, {
49471
49453
  maxWidth: maxWidth,
49472
- gutters: gutters
49454
+ gutters: gutters,
49455
+ role: "main"
49473
49456
  }, content)), footer ? footer : /*#__PURE__*/React.createElement(Box, {
49474
49457
  padding: "0"
49475
49458
  })));