@thecb/components 9.1.6-beta.0 → 9.1.7-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/index.cjs.js +264 -232
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +264 -232
  4. package/dist/index.esm.js.map +1 -1
  5. package/package.json +1 -1
  6. package/src/components/atoms/alert/Alert.js +1 -1
  7. package/src/components/atoms/country-dropdown/CountryDropdown.js +1 -3
  8. package/src/components/atoms/dropdown/Dropdown.js +71 -38
  9. package/src/components/atoms/form-layouts/FormInput.js +0 -3
  10. package/src/components/atoms/form-select/FormSelect.js +1 -3
  11. package/src/components/atoms/layouts/Motion.styled.js +1 -1
  12. package/src/components/atoms/state-province-dropdown/StateProvinceDropdown.js +1 -3
  13. package/src/components/molecules/address-form/AddressForm.js +1 -10
  14. package/src/components/molecules/payment-form-ach/PaymentFormACH.js +3 -22
  15. package/src/components/molecules/payment-form-ach/PaymentFormACH.state.js +2 -2
  16. package/src/components/molecules/payment-form-card/PaymentFormCard.js +1 -18
  17. package/src/components/molecules/radio-section/RadioSection.js +3 -7
  18. package/src/components/molecules/radio-section/RadioSection.stories.js +3 -4
  19. package/src/components/molecules/radio-section/radio-button/RadioButton.js +1 -3
  20. package/src/components/molecules/terms-and-conditions/TermsAndConditionsControlV2.js +1 -1
  21. package/src/util/{generateShadows.js → colorUtils.js} +6 -0
  22. package/dist/src/apps/checkout/pages/payment/sub-pages/payment-amount/PaymentAmount_old.js +0 -49322
  23. package/src/.DS_Store +0 -0
  24. package/src/components/.DS_Store +0 -0
  25. package/src/components/atoms/.DS_Store +0 -0
  26. package/src/components/atoms/icons/.DS_Store +0 -0
  27. package/src/util/formUtils.js +0 -9
package/dist/index.esm.js CHANGED
@@ -12398,7 +12398,7 @@ if (typeof window !== "undefined") {
12398
12398
  var MotionWrapper = styled(motion.div).withConfig({
12399
12399
  displayName: "Motionstyled__MotionWrapper",
12400
12400
  componentId: "sc-1m6r1io-0"
12401
- })(["position:", ";display:", ";box-sizing:border-box;padding:", ";border:", ";border-color:", ";border-width:", ";border-style:", ";border-width:", ";border-radius:", ";background-color:", ";box-shadow:", ";min-height:", ";min-width:", ";height:", ";width:", ";text-align:", ";margin:", ";&:hover,&:focus{", ";}&:active{", ";}&:disabled{", ";}", ";"], function (_ref) {
12401
+ })(["position:", ";display:", ";box-sizing:border-box;padding:", ";border:", ";border-color:", ";border-size:", ";border-style:", ";border-width:", ";border-radius:", ";background-color:", ";box-shadow:", ";min-height:", ";min-width:", ";height:", ";width:", ";text-align:", ";margin:", ";&:hover,&:focus{", ";}&:active{", ";}&:disabled{", ";}", ";"], function (_ref) {
12402
12402
  var position = _ref.position;
12403
12403
  return position;
12404
12404
  }, function (_ref2) {
@@ -18731,6 +18731,10 @@ var generateShadows = function generateShadows() {
18731
18731
  overlay: overlay
18732
18732
  };
18733
18733
  };
18734
+ var addOpacity = function addOpacity(color, opacity, r, g, b) {
18735
+ var rgba = "rgba(".concat(r, ", ").concat(g, ", ").concat(b, ", ").concat(opacity, ")");
18736
+ return "linear-gradient(0deg, ".concat(rgba, ", ").concat(rgba, "), linear-gradient(0deg, ").concat(color, ", ").concat(color, ");");
18737
+ };
18734
18738
 
18735
18739
  var Alert = function Alert(_ref) {
18736
18740
  var _generateShadows, _generateShadows$inse;
@@ -22415,17 +22419,18 @@ var DropdownIcon = function DropdownIcon() {
22415
22419
  };
22416
22420
 
22417
22421
  var check = function (it) {
22418
- return it && it.Math == Math && it;
22422
+ return it && it.Math === Math && it;
22419
22423
  };
22420
22424
 
22421
22425
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
22422
22426
  var global_1 =
22423
- // eslint-disable-next-line es-x/no-global-this -- safe
22427
+ // eslint-disable-next-line es/no-global-this -- safe
22424
22428
  check(typeof globalThis == 'object' && globalThis) ||
22425
22429
  check(typeof window == 'object' && window) ||
22426
22430
  // eslint-disable-next-line no-restricted-globals -- safe
22427
22431
  check(typeof self == 'object' && self) ||
22428
22432
  check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
22433
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
22429
22434
  // eslint-disable-next-line no-new-func -- fallback
22430
22435
  (function () { return this; })() || Function('return this')();
22431
22436
 
@@ -22439,12 +22444,12 @@ var fails = function (exec) {
22439
22444
 
22440
22445
  // Detect IE8's incomplete defineProperty implementation
22441
22446
  var descriptors = !fails(function () {
22442
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
22443
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
22447
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
22448
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
22444
22449
  });
22445
22450
 
22446
22451
  var functionBindNative = !fails(function () {
22447
- // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
22452
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
22448
22453
  var test = (function () { /* empty */ }).bind();
22449
22454
  // eslint-disable-next-line no-prototype-builtins -- safe
22450
22455
  return typeof test != 'function' || test.hasOwnProperty('prototype');
@@ -22457,7 +22462,7 @@ var functionCall = functionBindNative ? call.bind(call) : function () {
22457
22462
  };
22458
22463
 
22459
22464
  var $propertyIsEnumerable = {}.propertyIsEnumerable;
22460
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22465
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22461
22466
  var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
22462
22467
 
22463
22468
  // Nashorn ~ JDK8 bug
@@ -22484,14 +22489,11 @@ var createPropertyDescriptor = function (bitmap, value) {
22484
22489
  };
22485
22490
 
22486
22491
  var FunctionPrototype = Function.prototype;
22487
- var bind$1 = FunctionPrototype.bind;
22488
22492
  var call$1 = FunctionPrototype.call;
22489
- var uncurryThis = functionBindNative && bind$1.bind(call$1, call$1);
22493
+ var uncurryThisWithBind = functionBindNative && FunctionPrototype.bind.bind(call$1, call$1);
22490
22494
 
22491
- var functionUncurryThis = functionBindNative ? function (fn) {
22492
- return fn && uncurryThis(fn);
22493
- } : function (fn) {
22494
- return fn && function () {
22495
+ var functionUncurryThis = functionBindNative ? uncurryThisWithBind : function (fn) {
22496
+ return function () {
22495
22497
  return call$1.apply(fn, arguments);
22496
22498
  };
22497
22499
  };
@@ -22512,15 +22514,21 @@ var indexedObject = fails(function () {
22512
22514
  // eslint-disable-next-line no-prototype-builtins -- safe
22513
22515
  return !$Object('z').propertyIsEnumerable(0);
22514
22516
  }) ? function (it) {
22515
- return classofRaw(it) == 'String' ? split(it, '') : $Object(it);
22517
+ return classofRaw(it) === 'String' ? split(it, '') : $Object(it);
22516
22518
  } : $Object;
22517
22519
 
22520
+ // we can't use just `it == null` since of `document.all` special case
22521
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
22522
+ var isNullOrUndefined = function (it) {
22523
+ return it === null || it === undefined;
22524
+ };
22525
+
22518
22526
  var $TypeError = TypeError;
22519
22527
 
22520
22528
  // `RequireObjectCoercible` abstract operation
22521
22529
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
22522
22530
  var requireObjectCoercible = function (it) {
22523
- if (it == undefined) throw $TypeError("Can't call method on " + it);
22531
+ if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
22524
22532
  return it;
22525
22533
  };
22526
22534
 
@@ -22532,13 +22540,32 @@ var toIndexedObject = function (it) {
22532
22540
  return indexedObject(requireObjectCoercible(it));
22533
22541
  };
22534
22542
 
22543
+ var documentAll = typeof document == 'object' && document.all;
22544
+
22545
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
22546
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
22547
+ var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
22548
+
22549
+ var documentAll_1 = {
22550
+ all: documentAll,
22551
+ IS_HTMLDDA: IS_HTMLDDA
22552
+ };
22553
+
22554
+ var documentAll$1 = documentAll_1.all;
22555
+
22535
22556
  // `IsCallable` abstract operation
22536
22557
  // https://tc39.es/ecma262/#sec-iscallable
22537
- var isCallable = function (argument) {
22558
+ var isCallable = documentAll_1.IS_HTMLDDA ? function (argument) {
22559
+ return typeof argument == 'function' || argument === documentAll$1;
22560
+ } : function (argument) {
22538
22561
  return typeof argument == 'function';
22539
22562
  };
22540
22563
 
22541
- var isObject = function (it) {
22564
+ var documentAll$2 = documentAll_1.all;
22565
+
22566
+ var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
22567
+ return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
22568
+ } : function (it) {
22542
22569
  return typeof it == 'object' ? it !== null : isCallable(it);
22543
22570
  };
22544
22571
 
@@ -22552,7 +22579,7 @@ var getBuiltIn = function (namespace, method) {
22552
22579
 
22553
22580
  var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
22554
22581
 
22555
- var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
22582
+ var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
22556
22583
 
22557
22584
  var process$1 = global_1.process;
22558
22585
  var Deno = global_1.Deno;
@@ -22579,24 +22606,29 @@ if (!version && engineUserAgent) {
22579
22606
 
22580
22607
  var engineV8Version = version;
22581
22608
 
22582
- /* eslint-disable es-x/no-symbol -- required for testing */
22609
+ /* eslint-disable es/no-symbol -- required for testing */
22610
+
22583
22611
 
22584
22612
 
22585
22613
 
22586
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
22587
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
22588
- var symbol = Symbol();
22614
+ var $String = global_1.String;
22615
+
22616
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
22617
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(function () {
22618
+ var symbol = Symbol('symbol detection');
22589
22619
  // Chrome 38 Symbol has incorrect toString conversion
22590
22620
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
22591
- return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
22621
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
22622
+ // of course, fail.
22623
+ return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
22592
22624
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
22593
22625
  !Symbol.sham && engineV8Version && engineV8Version < 41;
22594
22626
  });
22595
22627
 
22596
- /* eslint-disable es-x/no-symbol -- required for testing */
22628
+ /* eslint-disable es/no-symbol -- required for testing */
22597
22629
 
22598
22630
 
22599
- var useSymbolAsUid = nativeSymbol
22631
+ var useSymbolAsUid = symbolConstructorDetection
22600
22632
  && !Symbol.sham
22601
22633
  && typeof Symbol.iterator == 'symbol';
22602
22634
 
@@ -22609,11 +22641,11 @@ var isSymbol = useSymbolAsUid ? function (it) {
22609
22641
  return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, $Object$1(it));
22610
22642
  };
22611
22643
 
22612
- var $String = String;
22644
+ var $String$1 = String;
22613
22645
 
22614
22646
  var tryToString = function (argument) {
22615
22647
  try {
22616
- return $String(argument);
22648
+ return $String$1(argument);
22617
22649
  } catch (error) {
22618
22650
  return 'Object';
22619
22651
  }
@@ -22624,14 +22656,14 @@ var $TypeError$1 = TypeError;
22624
22656
  // `Assert: IsCallable(argument) is true`
22625
22657
  var aCallable = function (argument) {
22626
22658
  if (isCallable(argument)) return argument;
22627
- throw $TypeError$1(tryToString(argument) + ' is not a function');
22659
+ throw new $TypeError$1(tryToString(argument) + ' is not a function');
22628
22660
  };
22629
22661
 
22630
22662
  // `GetMethod` abstract operation
22631
22663
  // https://tc39.es/ecma262/#sec-getmethod
22632
22664
  var getMethod = function (V, P) {
22633
22665
  var func = V[P];
22634
- return func == null ? undefined : aCallable(func);
22666
+ return isNullOrUndefined(func) ? undefined : aCallable(func);
22635
22667
  };
22636
22668
 
22637
22669
  var $TypeError$2 = TypeError;
@@ -22643,10 +22675,10 @@ var ordinaryToPrimitive = function (input, pref) {
22643
22675
  if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
22644
22676
  if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
22645
22677
  if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
22646
- throw $TypeError$2("Can't convert object to primitive value");
22678
+ throw new $TypeError$2("Can't convert object to primitive value");
22647
22679
  };
22648
22680
 
22649
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
22681
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
22650
22682
  var defineProperty = Object.defineProperty;
22651
22683
 
22652
22684
  var defineGlobalProperty = function (key, value) {
@@ -22663,13 +22695,16 @@ var store = global_1[SHARED] || defineGlobalProperty(SHARED, {});
22663
22695
  var sharedStore = store;
22664
22696
 
22665
22697
  var shared = createCommonjsModule(function (module) {
22698
+
22699
+
22700
+
22666
22701
  (module.exports = function (key, value) {
22667
22702
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
22668
22703
  })('versions', []).push({
22669
- version: '3.24.1',
22704
+ version: '3.33.3',
22670
22705
  mode: 'global',
22671
- copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
22672
- license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE',
22706
+ copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
22707
+ license: 'https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE',
22673
22708
  source: 'https://github.com/zloirock/core-js'
22674
22709
  });
22675
22710
  });
@@ -22686,7 +22721,7 @@ var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
22686
22721
 
22687
22722
  // `HasOwnProperty` abstract operation
22688
22723
  // https://tc39.es/ecma262/#sec-hasownproperty
22689
- // eslint-disable-next-line es-x/no-object-hasown -- safe
22724
+ // eslint-disable-next-line es/no-object-hasown -- safe
22690
22725
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
22691
22726
  return hasOwnProperty(toObject(it), key);
22692
22727
  };
@@ -22699,21 +22734,15 @@ var uid = function (key) {
22699
22734
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
22700
22735
  };
22701
22736
 
22702
- var WellKnownSymbolsStore = shared('wks');
22703
22737
  var Symbol$1 = global_1.Symbol;
22704
- var symbolFor = Symbol$1 && Symbol$1['for'];
22705
- var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
22738
+ var WellKnownSymbolsStore = shared('wks');
22739
+ var createWellKnownSymbol = useSymbolAsUid ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
22706
22740
 
22707
22741
  var wellKnownSymbol = function (name) {
22708
- if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
22709
- var description = 'Symbol.' + name;
22710
- if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
22711
- WellKnownSymbolsStore[name] = Symbol$1[name];
22712
- } else if (useSymbolAsUid && symbolFor) {
22713
- WellKnownSymbolsStore[name] = symbolFor(description);
22714
- } else {
22715
- WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
22716
- }
22742
+ if (!hasOwnProperty_1(WellKnownSymbolsStore, name)) {
22743
+ WellKnownSymbolsStore[name] = symbolConstructorDetection && hasOwnProperty_1(Symbol$1, name)
22744
+ ? Symbol$1[name]
22745
+ : createWellKnownSymbol('Symbol.' + name);
22717
22746
  } return WellKnownSymbolsStore[name];
22718
22747
  };
22719
22748
 
@@ -22730,7 +22759,7 @@ var toPrimitive = function (input, pref) {
22730
22759
  if (pref === undefined) pref = 'default';
22731
22760
  result = functionCall(exoticToPrim, input, pref);
22732
22761
  if (!isObject(result) || isSymbol(result)) return result;
22733
- throw $TypeError$3("Can't convert object to primitive value");
22762
+ throw new $TypeError$3("Can't convert object to primitive value");
22734
22763
  }
22735
22764
  if (pref === undefined) pref = 'number';
22736
22765
  return ordinaryToPrimitive(input, pref);
@@ -22753,13 +22782,13 @@ var documentCreateElement = function (it) {
22753
22782
 
22754
22783
  // Thanks to IE8 for its funny defineProperty
22755
22784
  var ie8DomDefine = !descriptors && !fails(function () {
22756
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
22785
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
22757
22786
  return Object.defineProperty(documentCreateElement('div'), 'a', {
22758
22787
  get: function () { return 7; }
22759
- }).a != 7;
22788
+ }).a !== 7;
22760
22789
  });
22761
22790
 
22762
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22791
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22763
22792
  var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
22764
22793
 
22765
22794
  // `Object.getOwnPropertyDescriptor` method
@@ -22780,26 +22809,26 @@ var objectGetOwnPropertyDescriptor = {
22780
22809
  // V8 ~ Chrome 36-
22781
22810
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
22782
22811
  var v8PrototypeDefineBug = descriptors && fails(function () {
22783
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
22812
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
22784
22813
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
22785
22814
  value: 42,
22786
22815
  writable: false
22787
- }).prototype != 42;
22816
+ }).prototype !== 42;
22788
22817
  });
22789
22818
 
22790
- var $String$1 = String;
22819
+ var $String$2 = String;
22791
22820
  var $TypeError$4 = TypeError;
22792
22821
 
22793
22822
  // `Assert: Type(argument) is Object`
22794
22823
  var anObject = function (argument) {
22795
22824
  if (isObject(argument)) return argument;
22796
- throw $TypeError$4($String$1(argument) + ' is not an object');
22825
+ throw new $TypeError$4($String$2(argument) + ' is not an object');
22797
22826
  };
22798
22827
 
22799
22828
  var $TypeError$5 = TypeError;
22800
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
22829
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
22801
22830
  var $defineProperty = Object.defineProperty;
22802
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22831
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22803
22832
  var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
22804
22833
  var ENUMERABLE = 'enumerable';
22805
22834
  var CONFIGURABLE = 'configurable';
@@ -22829,7 +22858,7 @@ var f$2 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Att
22829
22858
  if (ie8DomDefine) try {
22830
22859
  return $defineProperty(O, P, Attributes);
22831
22860
  } catch (error) { /* empty */ }
22832
- if ('get' in Attributes || 'set' in Attributes) throw $TypeError$5('Accessors not supported');
22861
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$5('Accessors not supported');
22833
22862
  if ('value' in Attributes) O[P] = Attributes.value;
22834
22863
  return O;
22835
22864
  };
@@ -22846,7 +22875,7 @@ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
22846
22875
  };
22847
22876
 
22848
22877
  var FunctionPrototype$1 = Function.prototype;
22849
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22878
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22850
22879
  var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
22851
22880
 
22852
22881
  var EXISTS$1 = hasOwnProperty_1(FunctionPrototype$1, 'name');
@@ -22873,7 +22902,7 @@ var inspectSource = sharedStore.inspectSource;
22873
22902
 
22874
22903
  var WeakMap$1 = global_1.WeakMap;
22875
22904
 
22876
- var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
22905
+ var weakMapBasicDetection = isCallable(WeakMap$1) && /native code/.test(String(WeakMap$1));
22877
22906
 
22878
22907
  var keys$1 = shared('keys');
22879
22908
 
@@ -22896,27 +22925,29 @@ var getterFor = function (TYPE) {
22896
22925
  return function (it) {
22897
22926
  var state;
22898
22927
  if (!isObject(it) || (state = get(it)).type !== TYPE) {
22899
- throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
22928
+ throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
22900
22929
  } return state;
22901
22930
  };
22902
22931
  };
22903
22932
 
22904
- if (nativeWeakMap || sharedStore.state) {
22933
+ if (weakMapBasicDetection || sharedStore.state) {
22905
22934
  var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$2());
22906
- var wmget = functionUncurryThis(store$1.get);
22907
- var wmhas = functionUncurryThis(store$1.has);
22908
- var wmset = functionUncurryThis(store$1.set);
22935
+ /* eslint-disable no-self-assign -- prototype methods protection */
22936
+ store$1.get = store$1.get;
22937
+ store$1.has = store$1.has;
22938
+ store$1.set = store$1.set;
22939
+ /* eslint-enable no-self-assign -- prototype methods protection */
22909
22940
  set = function (it, metadata) {
22910
- if (wmhas(store$1, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
22941
+ if (store$1.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
22911
22942
  metadata.facade = it;
22912
- wmset(store$1, it, metadata);
22943
+ store$1.set(it, metadata);
22913
22944
  return metadata;
22914
22945
  };
22915
22946
  get = function (it) {
22916
- return wmget(store$1, it) || {};
22947
+ return store$1.get(it) || {};
22917
22948
  };
22918
22949
  has = function (it) {
22919
- return wmhas(store$1, it);
22950
+ return store$1.has(it);
22920
22951
  };
22921
22952
  } else {
22922
22953
  var STATE = sharedKey('state');
@@ -22944,14 +22975,23 @@ var internalState = {
22944
22975
  };
22945
22976
 
22946
22977
  var makeBuiltIn_1 = createCommonjsModule(function (module) {
22978
+
22979
+
22980
+
22981
+
22982
+
22947
22983
  var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
22948
22984
 
22949
22985
 
22950
22986
 
22951
22987
  var enforceInternalState = internalState.enforce;
22952
22988
  var getInternalState = internalState.get;
22953
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
22989
+ var $String = String;
22990
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
22954
22991
  var defineProperty = Object.defineProperty;
22992
+ var stringSlice = functionUncurryThis(''.slice);
22993
+ var replace = functionUncurryThis(''.replace);
22994
+ var join = functionUncurryThis([].join);
22955
22995
 
22956
22996
  var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
22957
22997
  return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
@@ -22960,8 +23000,8 @@ var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
22960
23000
  var TEMPLATE = String(String).split('String');
22961
23001
 
22962
23002
  var makeBuiltIn = module.exports = function (value, name, options) {
22963
- if (String(name).slice(0, 7) === 'Symbol(') {
22964
- name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
23003
+ if (stringSlice($String(name), 0, 7) === 'Symbol(') {
23004
+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
22965
23005
  }
22966
23006
  if (options && options.getter) name = 'get ' + name;
22967
23007
  if (options && options.setter) name = 'set ' + name;
@@ -22980,7 +23020,7 @@ var makeBuiltIn = module.exports = function (value, name, options) {
22980
23020
  } catch (error) { /* empty */ }
22981
23021
  var state = enforceInternalState(value);
22982
23022
  if (!hasOwnProperty_1(state, 'source')) {
22983
- state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
23023
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
22984
23024
  } return value;
22985
23025
  };
22986
23026
 
@@ -23019,7 +23059,7 @@ var floor = Math.floor;
23019
23059
 
23020
23060
  // `Math.trunc` method
23021
23061
  // https://tc39.es/ecma262/#sec-math.trunc
23022
- // eslint-disable-next-line es-x/no-math-trunc -- safe
23062
+ // eslint-disable-next-line es/no-math-trunc -- safe
23023
23063
  var mathTrunc = Math.trunc || function trunc(x) {
23024
23064
  var n = +x;
23025
23065
  return (n > 0 ? floor : ceil)(n);
@@ -23067,10 +23107,10 @@ var createMethod = function (IS_INCLUDES) {
23067
23107
  var value;
23068
23108
  // Array#includes uses SameValueZero equality algorithm
23069
23109
  // eslint-disable-next-line no-self-compare -- NaN check
23070
- if (IS_INCLUDES && el != el) while (length > index) {
23110
+ if (IS_INCLUDES && el !== el) while (length > index) {
23071
23111
  value = O[index++];
23072
23112
  // eslint-disable-next-line no-self-compare -- NaN check
23073
- if (value != value) return true;
23113
+ if (value !== value) return true;
23074
23114
  // Array#indexOf ignores holes, Array#includes - not
23075
23115
  } else for (;length > index; index++) {
23076
23116
  if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
@@ -23120,7 +23160,7 @@ var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
23120
23160
 
23121
23161
  // `Object.getOwnPropertyNames` method
23122
23162
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
23123
- // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
23163
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
23124
23164
  var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
23125
23165
  return objectKeysInternal(O, hiddenKeys$1);
23126
23166
  };
@@ -23129,7 +23169,7 @@ var objectGetOwnPropertyNames = {
23129
23169
  f: f$3
23130
23170
  };
23131
23171
 
23132
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
23172
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
23133
23173
  var f$4 = Object.getOwnPropertySymbols;
23134
23174
 
23135
23175
  var objectGetOwnPropertySymbols = {
@@ -23161,8 +23201,8 @@ var replacement = /#|\.prototype\./;
23161
23201
 
23162
23202
  var isForced = function (feature, detection) {
23163
23203
  var value = data[normalize(feature)];
23164
- return value == POLYFILL ? true
23165
- : value == NATIVE ? false
23204
+ return value === POLYFILL ? true
23205
+ : value === NATIVE ? false
23166
23206
  : isCallable(detection) ? fails(detection)
23167
23207
  : !!detection;
23168
23208
  };
@@ -23242,7 +23282,7 @@ var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
23242
23282
  var $Object$3 = Object;
23243
23283
 
23244
23284
  // ES3 wrong here
23245
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
23285
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
23246
23286
 
23247
23287
  // fallback for IE11 Script Access Denied error
23248
23288
  var tryGet = function (it, key) {
@@ -23260,25 +23300,25 @@ var classof = toStringTagSupport ? classofRaw : function (it) {
23260
23300
  // builtinTag case
23261
23301
  : CORRECT_ARGUMENTS ? classofRaw(O)
23262
23302
  // ES3 arguments fallback
23263
- : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
23303
+ : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
23264
23304
  };
23265
23305
 
23266
- var $String$2 = String;
23306
+ var $String$3 = String;
23267
23307
 
23268
23308
  var toString_1 = function (argument) {
23269
- if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
23270
- return $String$2(argument);
23309
+ if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
23310
+ return $String$3(argument);
23271
23311
  };
23272
23312
 
23273
23313
  var charAt = functionUncurryThis(''.charAt);
23274
23314
 
23275
23315
  var FORCED = fails(function () {
23276
- // eslint-disable-next-line es-x/no-array-string-prototype-at -- safe
23316
+ // eslint-disable-next-line es/no-array-string-prototype-at -- safe
23277
23317
  return '𠮷'.at(-2) !== '\uD842';
23278
23318
  });
23279
23319
 
23280
23320
  // `String.prototype.at` method
23281
- // https://github.com/tc39/proposal-relative-indexing-method
23321
+ // https://tc39.es/ecma262/#sec-string.prototype.at
23282
23322
  _export({ target: 'String', proto: true, forced: FORCED }, {
23283
23323
  at: function at(index) {
23284
23324
  var S = toString_1(requireObjectCoercible(this));
@@ -23291,14 +23331,14 @@ _export({ target: 'String', proto: true, forced: FORCED }, {
23291
23331
 
23292
23332
  // `Object.keys` method
23293
23333
  // https://tc39.es/ecma262/#sec-object.keys
23294
- // eslint-disable-next-line es-x/no-object-keys -- safe
23334
+ // eslint-disable-next-line es/no-object-keys -- safe
23295
23335
  var objectKeys = Object.keys || function keys(O) {
23296
23336
  return objectKeysInternal(O, enumBugKeys);
23297
23337
  };
23298
23338
 
23299
23339
  // `Object.defineProperties` method
23300
23340
  // https://tc39.es/ecma262/#sec-object.defineproperties
23301
- // eslint-disable-next-line es-x/no-object-defineproperties -- safe
23341
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
23302
23342
  var f$5 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
23303
23343
  anObject(O);
23304
23344
  var props = toIndexedObject(Properties);
@@ -23387,7 +23427,7 @@ hiddenKeys[IE_PROTO] = true;
23387
23427
 
23388
23428
  // `Object.create` method
23389
23429
  // https://tc39.es/ecma262/#sec-object.create
23390
- // eslint-disable-next-line es-x/no-object-create -- safe
23430
+ // eslint-disable-next-line es/no-object-create -- safe
23391
23431
  var objectCreate = Object.create || function create(O, Properties) {
23392
23432
  var result;
23393
23433
  if (O !== null) {
@@ -23407,7 +23447,7 @@ var ArrayPrototype = Array.prototype;
23407
23447
 
23408
23448
  // Array.prototype[@@unscopables]
23409
23449
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
23410
- if (ArrayPrototype[UNSCOPABLES] == undefined) {
23450
+ if (ArrayPrototype[UNSCOPABLES] === undefined) {
23411
23451
  defineProperty$1(ArrayPrototype, UNSCOPABLES, {
23412
23452
  configurable: true,
23413
23453
  value: objectCreate(null)
@@ -23420,7 +23460,7 @@ var addToUnscopables = function (key) {
23420
23460
  };
23421
23461
 
23422
23462
  // `Array.prototype.at` method
23423
- // https://github.com/tc39/proposal-relative-indexing-method
23463
+ // https://tc39.es/ecma262/#sec-array.prototype.at
23424
23464
  _export({ target: 'Array', proto: true }, {
23425
23465
  at: function at(index) {
23426
23466
  var O = toObject(this);
@@ -23433,13 +23473,19 @@ _export({ target: 'Array', proto: true }, {
23433
23473
 
23434
23474
  addToUnscopables('at');
23435
23475
 
23436
- // eslint-disable-next-line es-x/no-typed-arrays -- safe
23437
- var arrayBufferNative = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
23476
+ // eslint-disable-next-line es/no-typed-arrays -- safe
23477
+ var arrayBufferBasicDetection = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
23478
+
23479
+ var defineBuiltInAccessor = function (target, name, descriptor) {
23480
+ if (descriptor.get) makeBuiltIn_1(descriptor.get, name, { getter: true });
23481
+ if (descriptor.set) makeBuiltIn_1(descriptor.set, name, { setter: true });
23482
+ return objectDefineProperty.f(target, name, descriptor);
23483
+ };
23438
23484
 
23439
23485
  var correctPrototypeGetter = !fails(function () {
23440
23486
  function F() { /* empty */ }
23441
23487
  F.prototype.constructor = null;
23442
- // eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
23488
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
23443
23489
  return Object.getPrototypeOf(new F()) !== F.prototype;
23444
23490
  });
23445
23491
 
@@ -23449,7 +23495,7 @@ var ObjectPrototype = $Object$4.prototype;
23449
23495
 
23450
23496
  // `Object.getPrototypeOf` method
23451
23497
  // https://tc39.es/ecma262/#sec-object.getprototypeof
23452
- // eslint-disable-next-line es-x/no-object-getprototypeof -- safe
23498
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
23453
23499
  var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : function (O) {
23454
23500
  var object = toObject(O);
23455
23501
  if (hasOwnProperty_1(object, IE_PROTO$1)) return object[IE_PROTO$1];
@@ -23459,12 +23505,19 @@ var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : f
23459
23505
  } return object instanceof $Object$4 ? ObjectPrototype : null;
23460
23506
  };
23461
23507
 
23462
- var $String$3 = String;
23508
+ var functionUncurryThisAccessor = function (object, key, method) {
23509
+ try {
23510
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
23511
+ return functionUncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
23512
+ } catch (error) { /* empty */ }
23513
+ };
23514
+
23515
+ var $String$4 = String;
23463
23516
  var $TypeError$6 = TypeError;
23464
23517
 
23465
23518
  var aPossiblePrototype = function (argument) {
23466
23519
  if (typeof argument == 'object' || isCallable(argument)) return argument;
23467
- throw $TypeError$6("Can't set " + $String$3(argument) + ' as a prototype');
23520
+ throw new $TypeError$6("Can't set " + $String$4(argument) + ' as a prototype');
23468
23521
  };
23469
23522
 
23470
23523
  /* eslint-disable no-proto -- safe */
@@ -23475,14 +23528,13 @@ var aPossiblePrototype = function (argument) {
23475
23528
  // `Object.setPrototypeOf` method
23476
23529
  // https://tc39.es/ecma262/#sec-object.setprototypeof
23477
23530
  // Works with __proto__ only. Old v8 can't work with null proto objects.
23478
- // eslint-disable-next-line es-x/no-object-setprototypeof -- safe
23531
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
23479
23532
  var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
23480
23533
  var CORRECT_SETTER = false;
23481
23534
  var test = {};
23482
23535
  var setter;
23483
23536
  try {
23484
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
23485
- setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
23537
+ setter = functionUncurryThisAccessor(Object.prototype, '__proto__', 'set');
23486
23538
  setter(test, []);
23487
23539
  CORRECT_SETTER = test instanceof Array;
23488
23540
  } catch (error) { /* empty */ }
@@ -23495,14 +23547,6 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
23495
23547
  };
23496
23548
  }() : undefined);
23497
23549
 
23498
- var defineProperty$2 = objectDefineProperty.f;
23499
-
23500
-
23501
-
23502
-
23503
-
23504
-
23505
-
23506
23550
  var enforceInternalState = internalState.enforce;
23507
23551
  var getInternalState = internalState.get;
23508
23552
  var Int8Array = global_1.Int8Array;
@@ -23518,7 +23562,7 @@ var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
23518
23562
  var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
23519
23563
  var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
23520
23564
  // Fixing native typed arrays in Opera Presto crashes the browser, see #595
23521
- var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferNative && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
23565
+ var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferBasicDetection && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
23522
23566
  var TYPED_ARRAY_TAG_REQUIRED = false;
23523
23567
  var NAME, Constructor, Prototype;
23524
23568
 
@@ -23563,12 +23607,12 @@ var isTypedArray = function (it) {
23563
23607
 
23564
23608
  var aTypedArray = function (it) {
23565
23609
  if (isTypedArray(it)) return it;
23566
- throw TypeError$2('Target is not a typed array');
23610
+ throw new TypeError$2('Target is not a typed array');
23567
23611
  };
23568
23612
 
23569
23613
  var aTypedArrayConstructor = function (C) {
23570
23614
  if (isCallable(C) && (!objectSetPrototypeOf || objectIsPrototypeOf(TypedArray, C))) return C;
23571
- throw TypeError$2(tryToString(C) + ' is not a typed array constructor');
23615
+ throw new TypeError$2(tryToString(C) + ' is not a typed array constructor');
23572
23616
  };
23573
23617
 
23574
23618
  var exportTypedArrayMethod = function (KEY, property, forced, options) {
@@ -23632,7 +23676,7 @@ for (NAME in BigIntArrayConstructorsList) {
23632
23676
  if (!NATIVE_ARRAY_BUFFER_VIEWS || !isCallable(TypedArray) || TypedArray === Function.prototype) {
23633
23677
  // eslint-disable-next-line no-shadow -- safe
23634
23678
  TypedArray = function TypedArray() {
23635
- throw TypeError$2('Incorrect invocation');
23679
+ throw new TypeError$2('Incorrect invocation');
23636
23680
  };
23637
23681
  if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {
23638
23682
  if (global_1[NAME]) objectSetPrototypeOf(global_1[NAME], TypedArray);
@@ -23653,9 +23697,12 @@ if (NATIVE_ARRAY_BUFFER_VIEWS && objectGetPrototypeOf(Uint8ClampedArrayPrototype
23653
23697
 
23654
23698
  if (descriptors && !hasOwnProperty_1(TypedArrayPrototype, TO_STRING_TAG$2)) {
23655
23699
  TYPED_ARRAY_TAG_REQUIRED = true;
23656
- defineProperty$2(TypedArrayPrototype, TO_STRING_TAG$2, { get: function () {
23657
- return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
23658
- } });
23700
+ defineBuiltInAccessor(TypedArrayPrototype, TO_STRING_TAG$2, {
23701
+ configurable: true,
23702
+ get: function () {
23703
+ return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
23704
+ }
23705
+ });
23659
23706
  for (NAME in TypedArrayConstructorsList) if (global_1[NAME]) {
23660
23707
  createNonEnumerableProperty(global_1[NAME], TYPED_ARRAY_TAG, NAME);
23661
23708
  }
@@ -23679,7 +23726,7 @@ var aTypedArray$1 = arrayBufferViewCore.aTypedArray;
23679
23726
  var exportTypedArrayMethod$1 = arrayBufferViewCore.exportTypedArrayMethod;
23680
23727
 
23681
23728
  // `%TypedArray%.prototype.at` method
23682
- // https://github.com/tc39/proposal-relative-indexing-method
23729
+ // https://tc39.es/ecma262/#sec-%typedarray%.prototype.at
23683
23730
  exportTypedArrayMethod$1('at', function at(index) {
23684
23731
  var O = aTypedArray$1(this);
23685
23732
  var len = lengthOfArrayLike(O);
@@ -23715,10 +23762,10 @@ var DropdownContentWrapper = styled.div.withConfig({
23715
23762
  var DropdownItemWrapper = styled.li.withConfig({
23716
23763
  displayName: "Dropdown__DropdownItemWrapper",
23717
23764
  componentId: "sc-pn6m0h-2"
23718
- })(["background-color:", ";text-align:start;border-width:0px;border-color:transparent;box-shadow:none;padding:1rem;box-sizing:border-box;width:100%;list-style:none;cursor:", ";&:hover{background-color:", ";}&:focus{background-color:", ";outline:none;}"], function (_ref4) {
23765
+ })(["text-align:start;border-width:2px;border-style:solid;border-color:", ";box-shadow:none;box-sizing:border-box;width:100%;list-style:none;cursor:", ";&:hover{background:", ";> *{background:", ";border-color:", ";}}&:focus{outline:none;background:", ";border-color:", ";> *{background:", ";border-color:white;outline:none;}}"], function (_ref4) {
23719
23766
  var selected = _ref4.selected,
23720
23767
  themeValues = _ref4.themeValues;
23721
- return selected ? themeValues.selectedColor : WHITE;
23768
+ return selected ? themeValues.selectedColor : TRANSPARENT;
23722
23769
  }, function (_ref5) {
23723
23770
  var disabled = _ref5.disabled;
23724
23771
  return disabled ? "default" : "pointer";
@@ -23732,37 +23779,63 @@ var DropdownItemWrapper = styled.li.withConfig({
23732
23779
  disabled = _ref7.disabled,
23733
23780
  themeValues = _ref7.themeValues;
23734
23781
  return selected ? themeValues.selectedColor : disabled ? WHITE : themeValues.hoverColor;
23782
+ }, function (_ref8) {
23783
+ var themeValues = _ref8.themeValues;
23784
+ return themeValues.hoverColor;
23785
+ }, function (_ref9) {
23786
+ var selected = _ref9.selected,
23787
+ themeValues = _ref9.themeValues;
23788
+ return selected ? addOpacity(themeValues.selectedColor, 0.2, 0, 0, 0) : "";
23789
+ }, function (_ref10) {
23790
+ var selected = _ref10.selected,
23791
+ themeValues = _ref10.themeValues;
23792
+ return selected ? TRANSPARENT : themeValues.selectedColor;
23793
+ }, function (_ref11) {
23794
+ var selected = _ref11.selected,
23795
+ disabled = _ref11.disabled,
23796
+ themeValues = _ref11.themeValues;
23797
+ return selected ? addOpacity(themeValues.selectedColor, 0.2, 0, 0, 0) : disabled ? WHITE : themeValues.hoverColor;
23798
+ });
23799
+ var DropdownItemBorder = styled.div.withConfig({
23800
+ displayName: "Dropdown__DropdownItemBorder",
23801
+ componentId: "sc-pn6m0h-3"
23802
+ })(["background:", ";border-color:", ";border-width:2px;border-style:solid;padding:12px;"], function (_ref12) {
23803
+ var selected = _ref12.selected,
23804
+ themeValues = _ref12.themeValues;
23805
+ return selected ? themeValues.selectedColor : WHITE;
23806
+ }, function (_ref13) {
23807
+ var selected = _ref13.selected,
23808
+ themeValues = _ref13.themeValues;
23809
+ return selected ? themeValues.selectedColor : WHITE;
23735
23810
  });
23736
23811
 
23737
- var Dropdown = function Dropdown(_ref8) {
23738
- var placeholder = _ref8.placeholder,
23739
- options = _ref8.options,
23740
- value = _ref8.value,
23741
- isOpen = _ref8.isOpen,
23742
- isError = _ref8.isError,
23743
- onSelect = _ref8.onSelect,
23744
- _ref8$disabledValues = _ref8.disabledValues,
23745
- disabledValues = _ref8$disabledValues === void 0 ? [] : _ref8$disabledValues,
23746
- _ref8$onClick = _ref8.onClick,
23747
- _onClick = _ref8$onClick === void 0 ? noop : _ref8$onClick,
23748
- themeValues = _ref8.themeValues,
23749
- maxHeight = _ref8.maxHeight,
23750
- _ref8$widthFitOptions = _ref8.widthFitOptions,
23751
- widthFitOptions = _ref8$widthFitOptions === void 0 ? false : _ref8$widthFitOptions,
23752
- disabled = _ref8.disabled,
23753
- _ref8$hasTitles = _ref8.hasTitles,
23754
- hasTitles = _ref8$hasTitles === void 0 ? false : _ref8$hasTitles,
23755
- _ref8$autoEraseTypeAh = _ref8.autoEraseTypeAhead,
23756
- autoEraseTypeAhead = _ref8$autoEraseTypeAh === void 0 ? true : _ref8$autoEraseTypeAh,
23757
- ariaLabelledby = _ref8.ariaLabelledby,
23758
- ariaDescribedby = _ref8.ariaDescribedby,
23759
- autocompleteValue = _ref8.autocompleteValue,
23760
- _ref8$smoothScroll = _ref8.smoothScroll,
23761
- smoothScroll = _ref8$smoothScroll === void 0 ? true : _ref8$smoothScroll,
23762
- _ref8$ariaInvalid = _ref8.ariaInvalid,
23763
- ariaInvalid = _ref8$ariaInvalid === void 0 ? false : _ref8$ariaInvalid,
23764
- _ref8$isRequired = _ref8.isRequired,
23765
- isRequired = _ref8$isRequired === void 0 ? false : _ref8$isRequired;
23812
+ var Dropdown = function Dropdown(_ref14) {
23813
+ var placeholder = _ref14.placeholder,
23814
+ options = _ref14.options,
23815
+ value = _ref14.value,
23816
+ isOpen = _ref14.isOpen,
23817
+ isError = _ref14.isError,
23818
+ onSelect = _ref14.onSelect,
23819
+ _ref14$disabledValues = _ref14.disabledValues,
23820
+ disabledValues = _ref14$disabledValues === void 0 ? [] : _ref14$disabledValues,
23821
+ _ref14$onClick = _ref14.onClick,
23822
+ _onClick = _ref14$onClick === void 0 ? noop : _ref14$onClick,
23823
+ themeValues = _ref14.themeValues,
23824
+ maxHeight = _ref14.maxHeight,
23825
+ _ref14$widthFitOption = _ref14.widthFitOptions,
23826
+ widthFitOptions = _ref14$widthFitOption === void 0 ? false : _ref14$widthFitOption,
23827
+ disabled = _ref14.disabled,
23828
+ _ref14$hasTitles = _ref14.hasTitles,
23829
+ hasTitles = _ref14$hasTitles === void 0 ? false : _ref14$hasTitles,
23830
+ _ref14$autoEraseTypeA = _ref14.autoEraseTypeAhead,
23831
+ autoEraseTypeAhead = _ref14$autoEraseTypeA === void 0 ? true : _ref14$autoEraseTypeA,
23832
+ ariaLabelledby = _ref14.ariaLabelledby,
23833
+ ariaDescribedby = _ref14.ariaDescribedby,
23834
+ autocompleteValue = _ref14.autocompleteValue,
23835
+ _ref14$smoothScroll = _ref14.smoothScroll,
23836
+ smoothScroll = _ref14$smoothScroll === void 0 ? true : _ref14$smoothScroll,
23837
+ _ref14$ariaInvalid = _ref14.ariaInvalid,
23838
+ ariaInvalid = _ref14$ariaInvalid === void 0 ? false : _ref14$ariaInvalid;
23766
23839
 
23767
23840
  var _useState = useState(""),
23768
23841
  _useState2 = _slicedToArray(_useState, 2),
@@ -24033,7 +24106,7 @@ var Dropdown = function Dropdown(_ref8) {
24033
24106
  },
24034
24107
  padding: "12px",
24035
24108
  placeholder: getSelection(),
24036
- required: options.required || isRequired,
24109
+ required: options.required,
24037
24110
  role: "combobox",
24038
24111
  themeValues: themeValues,
24039
24112
  title: hasTitles ? getSelection() : null,
@@ -24084,11 +24157,15 @@ var Dropdown = function Dropdown(_ref8) {
24084
24157
  onFocus: function onFocus() {
24085
24158
  return setFocusedRef(optionRefs.current[i]);
24086
24159
  }
24160
+ }, /*#__PURE__*/React.createElement(DropdownItemBorder, {
24161
+ disabled: disabledValues.includes(choice.value),
24162
+ selected: choice.value === value,
24163
+ themeValues: themeValues
24087
24164
  }, /*#__PURE__*/React.createElement(Text$1, {
24088
24165
  variant: "p",
24089
24166
  color: choice.value === value ? WHITE : disabledValues.includes(choice.value) ? STORM_GREY : MINESHAFT_GREY,
24090
- extraStyles: "padding-left: 16px;\n cursor: ".concat(disabledValues.includes(choice.value) ? "default" : "pointer", ";\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;")
24091
- }, choice.text));
24167
+ extraStyles: "padding-left: 16px;\n cursor: ".concat(disabledValues.includes(choice.value) ? "default" : "pointer", ";\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;")
24168
+ }, choice.text)));
24092
24169
  }))) : /*#__PURE__*/React.createElement(Fragment$1, null)));
24093
24170
  };
24094
24171
 
@@ -24197,9 +24274,7 @@ var FormSelect = function FormSelect(_ref) {
24197
24274
  _ref$dataQa = _ref.dataQa,
24198
24275
  dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
24199
24276
  _ref$widthFitOptions = _ref.widthFitOptions,
24200
- widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions,
24201
- _ref$isRequired = _ref.isRequired,
24202
- isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
24277
+ widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions;
24203
24278
 
24204
24279
  var _useState = useState(false),
24205
24280
  _useState2 = _slicedToArray(_useState, 2),
@@ -24261,8 +24336,7 @@ var FormSelect = function FormSelect(_ref) {
24261
24336
  },
24262
24337
  disabled: disabled,
24263
24338
  autocompleteValue: autocompleteValue,
24264
- smoothScroll: smoothScroll,
24265
- required: isRequired
24339
+ smoothScroll: smoothScroll
24266
24340
  }), /*#__PURE__*/React.createElement(Stack, {
24267
24341
  direction: "row",
24268
24342
  justify: "space-between"
@@ -25032,9 +25106,7 @@ var CountryDropdown = function CountryDropdown(_ref) {
25032
25106
  showErrors = _ref.showErrors,
25033
25107
  onChange = _ref.onChange,
25034
25108
  _ref$dataQa = _ref.dataQa,
25035
- dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
25036
- _ref$isRequired = _ref.isRequired,
25037
- isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
25109
+ dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa;
25038
25110
  return /*#__PURE__*/React.createElement(FormSelect$1, {
25039
25111
  options: options,
25040
25112
  field: field,
@@ -25044,8 +25116,7 @@ var CountryDropdown = function CountryDropdown(_ref) {
25044
25116
  errorMessages: errorMessages,
25045
25117
  showErrors: showErrors,
25046
25118
  onChange: onChange,
25047
- autocompleteValue: "country-name",
25048
- isRequired: isRequired
25119
+ autocompleteValue: "country-name"
25049
25120
  });
25050
25121
  };
25051
25122
 
@@ -25890,7 +25961,7 @@ var fallbackValues$k = {
25890
25961
  };
25891
25962
 
25892
25963
  var _excluded$p = ["showErrors", "themeValues"],
25893
- _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired"];
25964
+ _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa"];
25894
25965
  var InputField = styled.input.withConfig({
25895
25966
  displayName: "FormInput__InputField",
25896
25967
  componentId: "sc-l094r1-0"
@@ -25977,8 +26048,6 @@ var FormInput = function FormInput(_ref15) {
25977
26048
  removeFromValue = _ref15.removeFromValue,
25978
26049
  _ref15$dataQa = _ref15.dataQa,
25979
26050
  dataQa = _ref15$dataQa === void 0 ? null : _ref15$dataQa,
25980
- _ref15$isRequired = _ref15.isRequired,
25981
- isRequired = _ref15$isRequired === void 0 ? false : _ref15$isRequired,
25982
26051
  props = _objectWithoutProperties(_ref15, _excluded2);
25983
26052
 
25984
26053
  var _useState = useState(false),
@@ -26065,8 +26134,7 @@ var FormInput = function FormInput(_ref15) {
26065
26134
  $customHeight: customHeight,
26066
26135
  $extraStyles: extraStyles,
26067
26136
  "data-qa": dataQa || labelTextWhenNoError,
26068
- autoComplete: autocompleteValue,
26069
- required: isRequired
26137
+ autoComplete: autocompleteValue
26070
26138
  }, props)) : /*#__PURE__*/React.createElement(InputField, _extends({
26071
26139
  "aria-labelledby": createIdFromString(labelTextWhenNoError),
26072
26140
  "aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
@@ -26085,8 +26153,7 @@ var FormInput = function FormInput(_ref15) {
26085
26153
  $customHeight: customHeight,
26086
26154
  $extraStyles: extraStyles,
26087
26155
  "data-qa": dataQa || labelTextWhenNoError,
26088
- autoComplete: autocompleteValue,
26089
- required: isRequired
26156
+ autoComplete: autocompleteValue
26090
26157
  }, props))), /*#__PURE__*/React.createElement(Stack, {
26091
26158
  direction: "row",
26092
26159
  justify: "space-between",
@@ -27268,9 +27335,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
27268
27335
  _ref2$ariaLabelledBy = _ref2.ariaLabelledBy,
27269
27336
  ariaLabelledBy = _ref2$ariaLabelledBy === void 0 ? "" : _ref2$ariaLabelledBy,
27270
27337
  _ref2$ariaLabel = _ref2.ariaLabel,
27271
- ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel,
27272
- _ref2$required = _ref2.required,
27273
- required = _ref2$required === void 0 ? false : _ref2$required;
27338
+ ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel;
27274
27339
  var buttonBorder = {
27275
27340
  onFocused: {
27276
27341
  borderColor: themeValues.activeColor,
@@ -27332,8 +27397,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
27332
27397
  disabled: disabled,
27333
27398
  onClick: toggleRadio,
27334
27399
  "aria-describedby": ariaDescribedBy,
27335
- tabIndex: "-1",
27336
- required: required
27400
+ tabIndex: "-1"
27337
27401
  }, extraProps)), /*#__PURE__*/React.createElement(Motion, {
27338
27402
  borderWidth: "1px",
27339
27403
  borderStyle: "solid",
@@ -38023,9 +38087,7 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
38023
38087
  field = _ref.field,
38024
38088
  fieldActions = _ref.fieldActions,
38025
38089
  showErrors = _ref.showErrors,
38026
- countryCode = _ref.countryCode,
38027
- _ref$isRequired = _ref.isRequired,
38028
- isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
38090
+ countryCode = _ref.countryCode;
38029
38091
  var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
38030
38092
  var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
38031
38093
  return /*#__PURE__*/React.createElement(FormSelect$1, {
@@ -38035,8 +38097,7 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
38035
38097
  labelTextWhenNoError: labelTextWhenNoError,
38036
38098
  errorMessages: errorMessages,
38037
38099
  showErrors: showErrors,
38038
- autocompleteValue: "address-level1",
38039
- isRequired: isRequired
38100
+ autocompleteValue: "address-level1"
38040
38101
  });
38041
38102
  };
38042
38103
 
@@ -39317,14 +39378,6 @@ const createFormState = (formConfig) => ({
39317
39378
  mapStateToProps: mapStateToProps,
39318
39379
  });
39319
39380
 
39320
- var getIsRequiredFromValidators = function getIsRequiredFromValidators(callbackFn) {
39321
- return callbackFn(function (field) {
39322
- return !!field.validators.find(function (validator) {
39323
- return validator.type === "validator/REQUIRED";
39324
- });
39325
- }, []);
39326
- };
39327
-
39328
39381
  var AddressForm = function AddressForm(_ref) {
39329
39382
  var _zipErrorMessages;
39330
39383
 
@@ -39383,8 +39436,7 @@ var AddressForm = function AddressForm(_ref) {
39383
39436
  }
39384
39437
  },
39385
39438
  showErrors: showErrors,
39386
- dataQa: "Country",
39387
- isRequired: getIsRequiredFromValidators(useCallback)(fields.city)
39439
+ dataQa: "Country"
39388
39440
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39389
39441
  labelTextWhenNoError: "Address",
39390
39442
  errorMessages: street1ErrorMessages,
@@ -39395,8 +39447,7 @@ var AddressForm = function AddressForm(_ref) {
39395
39447
  return e.key === "Enter" && handleSubmit(e);
39396
39448
  },
39397
39449
  autocompleteValue: "address-line1",
39398
- dataQa: "Address",
39399
- isRequired: getIsRequiredFromValidators(useCallback)(fields.street1)
39450
+ dataQa: "Address"
39400
39451
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39401
39452
  labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
39402
39453
  field: fields.street2,
@@ -39406,8 +39457,7 @@ var AddressForm = function AddressForm(_ref) {
39406
39457
  return e.key === "Enter" && handleSubmit(e);
39407
39458
  },
39408
39459
  autocompleteValue: "address-line2",
39409
- dataQa: "Address Line 2",
39410
- isRequired: getIsRequiredFromValidators(useCallback)(fields.street2)
39460
+ dataQa: "Address Line 2"
39411
39461
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39412
39462
  labelTextWhenNoError: "City",
39413
39463
  errorMessages: cityErrorMessages,
@@ -39418,8 +39468,7 @@ var AddressForm = function AddressForm(_ref) {
39418
39468
  return e.key === "Enter" && handleSubmit(e);
39419
39469
  },
39420
39470
  autocompleteValue: "address-level2",
39421
- dataQa: "City",
39422
- isRequired: getIsRequiredFromValidators(useCallback)(fields.city)
39471
+ dataQa: "City"
39423
39472
  }), /*#__PURE__*/React.createElement(FormStateDropdown, {
39424
39473
  labelTextWhenNoError: isUS ? "State" : "State or Province",
39425
39474
  errorMessages: stateProvinceErrorMessages,
@@ -39430,8 +39479,7 @@ var AddressForm = function AddressForm(_ref) {
39430
39479
  onKeyDown: function onKeyDown(e) {
39431
39480
  return e.key === "Enter" && handleSubmit(e);
39432
39481
  },
39433
- dataQa: "State or Province",
39434
- isRequired: getIsRequiredFromValidators(useCallback)(fields.stateProvince)
39482
+ dataQa: "State or Province"
39435
39483
  }), /*#__PURE__*/React.createElement(FormInput$1, {
39436
39484
  isNum: isUS,
39437
39485
  formatter: isUS ? zipFormat : null,
@@ -39444,8 +39492,7 @@ var AddressForm = function AddressForm(_ref) {
39444
39492
  return e.key === "Enter" && handleSubmit(e);
39445
39493
  },
39446
39494
  autocompleteValue: "postal-code",
39447
- dataQa: "Zip code",
39448
- isRequired: getIsRequiredFromValidators(useCallback)(fields.zip)
39495
+ dataQa: "Zip code"
39449
39496
  }), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
39450
39497
  name: "address checkbox",
39451
39498
  title: "Save address to wallet",
@@ -47883,7 +47930,7 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
47883
47930
  };
47884
47931
 
47885
47932
  var PaymentFormACH = function PaymentFormACH(_ref) {
47886
- var _routingNumberErrors, _confirmRoutingNumber, _accountNumberErrors, _confirmAccountNumber;
47933
+ var _routingNumberErrors, _accountNumberErrors;
47887
47934
 
47888
47935
  var _ref$variant = _ref.variant,
47889
47936
  variant = _ref$variant === void 0 ? "default" : _ref$variant,
@@ -47926,9 +47973,12 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47926
47973
  var nameErrors = _defineProperty({}, required.error, "Name is required");
47927
47974
 
47928
47975
  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);
47929
- var confirmRoutingNumberErrors = (_confirmRoutingNumber = {}, _defineProperty(_confirmRoutingNumber, matchesField.error, "Confirm routing number field must match routing number"), _defineProperty(_confirmRoutingNumber, required.error, "Confirm routing number is required"), _confirmRoutingNumber);
47976
+
47977
+ var confirmRoutingNumberErrors = _defineProperty({}, matchesField.error, "Confirm routing number field must match routing number");
47978
+
47930
47979
  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);
47931
- var confirmAccountNumberErrors = (_confirmAccountNumber = {}, _defineProperty(_confirmAccountNumber, matchesField.error, "Confirm account number field must match account number"), _defineProperty(_confirmAccountNumber, required.error, "Confirm account number is required"), _confirmAccountNumber);
47980
+
47981
+ var confirmAccountNumberErrors = _defineProperty({}, matchesField.error, "Confirm account number field must match account number");
47932
47982
 
47933
47983
  var accountTypeErrors = _defineProperty({}, required.error, "Account type is required");
47934
47984
 
@@ -47946,8 +47996,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47946
47996
  onKeyDown: function onKeyDown(e) {
47947
47997
  return e.key === "Enter" && handleSubmit(e);
47948
47998
  },
47949
- autocompleteValue: "name",
47950
- isRequired: getIsRequiredFromValidators(useCallback)(fields.name)
47999
+ autocompleteValue: "name"
47951
48000
  }), /*#__PURE__*/React.createElement(FormInput$1, {
47952
48001
  labelTextWhenNoError: "Routing number",
47953
48002
  dataQa: "Routing number",
@@ -47955,7 +48004,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47955
48004
  field: fields.routingNumber,
47956
48005
  fieldActions: actions.fields.routingNumber,
47957
48006
  showErrors: showErrors,
47958
- isRequired: getIsRequiredFromValidators(useCallback)(fields.routingNumber),
47959
48007
  isNum: true,
47960
48008
  helperModal: function helperModal() {
47961
48009
  return /*#__PURE__*/React.createElement(AccountAndRoutingModal$1, {
@@ -47981,7 +48029,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47981
48029
  onKeyDown: function onKeyDown(e) {
47982
48030
  return e.key === "Enter" && handleSubmit(e);
47983
48031
  },
47984
- isRequired: getIsRequiredFromValidators(useCallback)(fields.confirmRoutingNumber),
47985
48032
  isNum: true
47986
48033
  }), /*#__PURE__*/React.createElement(FormInput$1, {
47987
48034
  labelTextWhenNoError: "Account number",
@@ -47990,7 +48037,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47990
48037
  field: fields.accountNumber,
47991
48038
  fieldActions: actions.fields.accountNumber,
47992
48039
  showErrors: showErrors,
47993
- isRequired: getIsRequiredFromValidators(useCallback)(fields.accountNumber),
47994
48040
  isNum: true,
47995
48041
  helperModal: function helperModal() {
47996
48042
  return /*#__PURE__*/React.createElement(AccountAndRoutingModal$1, {
@@ -48016,7 +48062,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48016
48062
  onKeyDown: function onKeyDown(e) {
48017
48063
  return e.key === "Enter" && handleSubmit(e);
48018
48064
  },
48019
- isRequired: getIsRequiredFromValidators(useCallback)(fields.confirmAccountNumber),
48020
48065
  isNum: true
48021
48066
  }), allowBankAccountType && /*#__PURE__*/React.createElement(FormSelect$1, {
48022
48067
  labelTextWhenNoError: "Account type",
@@ -48034,8 +48079,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48034
48079
  fieldActions: actions.fields.accountType,
48035
48080
  showErrors: showErrors,
48036
48081
  errorMessages: accountTypeErrors,
48037
- field: fields.accountType,
48038
- isRequired: getIsRequiredFromValidators(useCallback)(fields.accountType)
48082
+ field: fields.accountType
48039
48083
  }), !hideDefaultPayment && /*#__PURE__*/React.createElement(Checkbox$1, {
48040
48084
  title: "Save as Default Payment Method",
48041
48085
  dataQa: "default-payment-ach",
@@ -48071,7 +48115,7 @@ var formConfig$6 = {
48071
48115
  constraints: [onlyIntegers(), hasLength(0, 9)]
48072
48116
  },
48073
48117
  confirmRoutingNumber: {
48074
- validators: [matchesField("routingNumber"), required()],
48118
+ validators: [matchesField("routingNumber")],
48075
48119
  constraints: [onlyIntegers(), hasLength(0, 9)]
48076
48120
  },
48077
48121
  accountNumber: {
@@ -48079,7 +48123,7 @@ var formConfig$6 = {
48079
48123
  constraints: [onlyIntegers(), hasLength(0, 17)]
48080
48124
  },
48081
48125
  confirmAccountNumber: {
48082
- validators: [matchesField("accountNumber"), required()],
48126
+ validators: [matchesField("accountNumber")],
48083
48127
  constraints: [onlyIntegers(), hasLength(0, 17)]
48084
48128
  },
48085
48129
  accountType: {
@@ -48162,8 +48206,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48162
48206
  }
48163
48207
  },
48164
48208
  showErrors: showErrors,
48165
- dataQa: "Country",
48166
- isRequired: getIsRequiredFromValidators(useCallback)(fields.country)
48209
+ dataQa: "Country"
48167
48210
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48168
48211
  labelTextWhenNoError: "Name on card",
48169
48212
  dataQa: "Name on card",
@@ -48174,8 +48217,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48174
48217
  onKeyDown: function onKeyDown(e) {
48175
48218
  return e.key === "Enter" && handleSubmit(e);
48176
48219
  },
48177
- autocompleteValue: "cc-name",
48178
- isRequired: getIsRequiredFromValidators(useCallback)(fields.nameOnCard)
48220
+ autocompleteValue: "cc-name"
48179
48221
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48180
48222
  labelTextWhenNoError: "Credit card number",
48181
48223
  dataQa: "Credit card number",
@@ -48188,8 +48230,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48188
48230
  return e.key === "Enter" && handleSubmit(e);
48189
48231
  },
48190
48232
  isNum: true,
48191
- autocompleteValue: "cc-number",
48192
- isRequired: getIsRequiredFromValidators(useCallback)(fields.creditCardNumber)
48233
+ autocompleteValue: "cc-number"
48193
48234
  }), /*#__PURE__*/React.createElement(FormInputRow, {
48194
48235
  breakpoint: isMobile ? "1000rem" : "21rem",
48195
48236
  childGap: isMobile ? "0rem" : "1rem"
@@ -48207,8 +48248,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48207
48248
  isNum: true,
48208
48249
  removeFromValue: /\// // removes "/" from browser autofill
48209
48250
  ,
48210
- autocompleteValue: "cc-exp",
48211
- isRequired: getIsRequiredFromValidators(useCallback)(fields.expirationDate)
48251
+ autocompleteValue: "cc-exp"
48212
48252
  }), /*#__PURE__*/React.createElement(FormInput$1, {
48213
48253
  labelTextWhenNoError: "CVV",
48214
48254
  dataQa: "CVV",
@@ -48221,8 +48261,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48221
48261
  onKeyDown: function onKeyDown(e) {
48222
48262
  return e.key === "Enter" && handleSubmit(e);
48223
48263
  },
48224
- autocompleteValue: "cc-csc",
48225
- isRequired: getIsRequiredFromValidators(useCallback)(fields.cvv)
48264
+ autocompleteValue: "cc-csc"
48226
48265
  })), !hideZipCode && /*#__PURE__*/React.createElement(Box, {
48227
48266
  padding: isMobile ? "0" : "0 0.5rem 0 0",
48228
48267
  width: isMobile ? "100%" : "50%"
@@ -48238,8 +48277,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48238
48277
  onKeyDown: function onKeyDown(e) {
48239
48278
  return e.key === "Enter" && handleSubmit(e);
48240
48279
  },
48241
- autocompleteValue: "billing postal-code",
48242
- isRequired: getIsRequiredFromValidators(useCallback)(fields.zipCode)
48280
+ autocompleteValue: "billing postal-code"
48243
48281
  })), (showWalletCheckbox || showTerms) && /*#__PURE__*/React.createElement(Cluster, {
48244
48282
  childGap: "4px",
48245
48283
  align: "center"
@@ -48592,9 +48630,7 @@ var RadioSection = function RadioSection(_ref) {
48592
48630
  openHeight = _ref$openHeight === void 0 ? "auto" : _ref$openHeight,
48593
48631
  _ref$containerStyles = _ref.containerStyles,
48594
48632
  containerStyles = _ref$containerStyles === void 0 ? "" : _ref$containerStyles,
48595
- ariaDescribedBy = _ref.ariaDescribedBy,
48596
- _ref$isRequired = _ref.isRequired,
48597
- isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
48633
+ ariaDescribedBy = _ref.ariaDescribedBy;
48598
48634
 
48599
48635
  var handleKeyDown = function handleKeyDown(id, e) {
48600
48636
  if ((e === null || e === void 0 ? void 0 : e.keyCode) === 13 || (e === null || e === void 0 ? void 0 : e.keyCode) === 32) {
@@ -48650,8 +48686,7 @@ var RadioSection = function RadioSection(_ref) {
48650
48686
  extraStyles: containerStyles
48651
48687
  }, /*#__PURE__*/React.createElement(Stack, {
48652
48688
  childGap: "0",
48653
- role: "radiogroup",
48654
- required: isRequired
48689
+ role: "radiogroup"
48655
48690
  }, sections.filter(function (section) {
48656
48691
  return !section.hidden;
48657
48692
  }).map(function (section) {
@@ -48673,8 +48708,7 @@ var RadioSection = function RadioSection(_ref) {
48673
48708
  extraStyles: borderStyles,
48674
48709
  role: "radio",
48675
48710
  "aria-checked": openSection === section.id,
48676
- disabled: section.disabled,
48677
- required: section === null || section === void 0 ? void 0 : section.required
48711
+ "aria-disabled": section.disabled
48678
48712
  }, /*#__PURE__*/React.createElement(Stack, {
48679
48713
  childGap: "0"
48680
48714
  }, /*#__PURE__*/React.createElement(Box, {
@@ -48704,8 +48738,6 @@ var RadioSection = function RadioSection(_ref) {
48704
48738
  }, !section.hideRadioButton && /*#__PURE__*/React.createElement(Box, {
48705
48739
  padding: "0"
48706
48740
  }, /*#__PURE__*/React.createElement(RadioButton$2, {
48707
- role: "radio",
48708
- required: !!(section !== null && section !== void 0 && section.required),
48709
48741
  id: "radio-input-".concat(idString(section)),
48710
48742
  name: idString(section),
48711
48743
  ariaDescribedBy: ariaDescribedBy,