@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.cjs.js CHANGED
@@ -12406,7 +12406,7 @@ if (typeof window !== "undefined") {
12406
12406
  var MotionWrapper = styled__default(motion.div).withConfig({
12407
12407
  displayName: "Motionstyled__MotionWrapper",
12408
12408
  componentId: "sc-1m6r1io-0"
12409
- })(["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) {
12409
+ })(["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) {
12410
12410
  var position = _ref.position;
12411
12411
  return position;
12412
12412
  }, function (_ref2) {
@@ -18739,6 +18739,10 @@ var generateShadows = function generateShadows() {
18739
18739
  overlay: overlay
18740
18740
  };
18741
18741
  };
18742
+ var addOpacity = function addOpacity(color, opacity, r, g, b) {
18743
+ var rgba = "rgba(".concat(r, ", ").concat(g, ", ").concat(b, ", ").concat(opacity, ")");
18744
+ return "linear-gradient(0deg, ".concat(rgba, ", ").concat(rgba, "), linear-gradient(0deg, ").concat(color, ", ").concat(color, ");");
18745
+ };
18742
18746
 
18743
18747
  var Alert = function Alert(_ref) {
18744
18748
  var _generateShadows, _generateShadows$inse;
@@ -22423,17 +22427,18 @@ var DropdownIcon = function DropdownIcon() {
22423
22427
  };
22424
22428
 
22425
22429
  var check = function (it) {
22426
- return it && it.Math == Math && it;
22430
+ return it && it.Math === Math && it;
22427
22431
  };
22428
22432
 
22429
22433
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
22430
22434
  var global_1 =
22431
- // eslint-disable-next-line es-x/no-global-this -- safe
22435
+ // eslint-disable-next-line es/no-global-this -- safe
22432
22436
  check(typeof globalThis == 'object' && globalThis) ||
22433
22437
  check(typeof window == 'object' && window) ||
22434
22438
  // eslint-disable-next-line no-restricted-globals -- safe
22435
22439
  check(typeof self == 'object' && self) ||
22436
22440
  check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
22441
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
22437
22442
  // eslint-disable-next-line no-new-func -- fallback
22438
22443
  (function () { return this; })() || Function('return this')();
22439
22444
 
@@ -22447,12 +22452,12 @@ var fails = function (exec) {
22447
22452
 
22448
22453
  // Detect IE8's incomplete defineProperty implementation
22449
22454
  var descriptors = !fails(function () {
22450
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
22451
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
22455
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
22456
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
22452
22457
  });
22453
22458
 
22454
22459
  var functionBindNative = !fails(function () {
22455
- // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
22460
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
22456
22461
  var test = (function () { /* empty */ }).bind();
22457
22462
  // eslint-disable-next-line no-prototype-builtins -- safe
22458
22463
  return typeof test != 'function' || test.hasOwnProperty('prototype');
@@ -22465,7 +22470,7 @@ var functionCall = functionBindNative ? call.bind(call) : function () {
22465
22470
  };
22466
22471
 
22467
22472
  var $propertyIsEnumerable = {}.propertyIsEnumerable;
22468
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22473
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22469
22474
  var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
22470
22475
 
22471
22476
  // Nashorn ~ JDK8 bug
@@ -22492,14 +22497,11 @@ var createPropertyDescriptor = function (bitmap, value) {
22492
22497
  };
22493
22498
 
22494
22499
  var FunctionPrototype = Function.prototype;
22495
- var bind$1 = FunctionPrototype.bind;
22496
22500
  var call$1 = FunctionPrototype.call;
22497
- var uncurryThis = functionBindNative && bind$1.bind(call$1, call$1);
22501
+ var uncurryThisWithBind = functionBindNative && FunctionPrototype.bind.bind(call$1, call$1);
22498
22502
 
22499
- var functionUncurryThis = functionBindNative ? function (fn) {
22500
- return fn && uncurryThis(fn);
22501
- } : function (fn) {
22502
- return fn && function () {
22503
+ var functionUncurryThis = functionBindNative ? uncurryThisWithBind : function (fn) {
22504
+ return function () {
22503
22505
  return call$1.apply(fn, arguments);
22504
22506
  };
22505
22507
  };
@@ -22520,15 +22522,21 @@ var indexedObject = fails(function () {
22520
22522
  // eslint-disable-next-line no-prototype-builtins -- safe
22521
22523
  return !$Object('z').propertyIsEnumerable(0);
22522
22524
  }) ? function (it) {
22523
- return classofRaw(it) == 'String' ? split(it, '') : $Object(it);
22525
+ return classofRaw(it) === 'String' ? split(it, '') : $Object(it);
22524
22526
  } : $Object;
22525
22527
 
22528
+ // we can't use just `it == null` since of `document.all` special case
22529
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
22530
+ var isNullOrUndefined = function (it) {
22531
+ return it === null || it === undefined;
22532
+ };
22533
+
22526
22534
  var $TypeError = TypeError;
22527
22535
 
22528
22536
  // `RequireObjectCoercible` abstract operation
22529
22537
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
22530
22538
  var requireObjectCoercible = function (it) {
22531
- if (it == undefined) throw $TypeError("Can't call method on " + it);
22539
+ if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
22532
22540
  return it;
22533
22541
  };
22534
22542
 
@@ -22540,13 +22548,32 @@ var toIndexedObject = function (it) {
22540
22548
  return indexedObject(requireObjectCoercible(it));
22541
22549
  };
22542
22550
 
22551
+ var documentAll = typeof document == 'object' && document.all;
22552
+
22553
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
22554
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
22555
+ var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
22556
+
22557
+ var documentAll_1 = {
22558
+ all: documentAll,
22559
+ IS_HTMLDDA: IS_HTMLDDA
22560
+ };
22561
+
22562
+ var documentAll$1 = documentAll_1.all;
22563
+
22543
22564
  // `IsCallable` abstract operation
22544
22565
  // https://tc39.es/ecma262/#sec-iscallable
22545
- var isCallable = function (argument) {
22566
+ var isCallable = documentAll_1.IS_HTMLDDA ? function (argument) {
22567
+ return typeof argument == 'function' || argument === documentAll$1;
22568
+ } : function (argument) {
22546
22569
  return typeof argument == 'function';
22547
22570
  };
22548
22571
 
22549
- var isObject = function (it) {
22572
+ var documentAll$2 = documentAll_1.all;
22573
+
22574
+ var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
22575
+ return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
22576
+ } : function (it) {
22550
22577
  return typeof it == 'object' ? it !== null : isCallable(it);
22551
22578
  };
22552
22579
 
@@ -22560,7 +22587,7 @@ var getBuiltIn = function (namespace, method) {
22560
22587
 
22561
22588
  var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
22562
22589
 
22563
- var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
22590
+ var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
22564
22591
 
22565
22592
  var process$1 = global_1.process;
22566
22593
  var Deno = global_1.Deno;
@@ -22587,24 +22614,29 @@ if (!version && engineUserAgent) {
22587
22614
 
22588
22615
  var engineV8Version = version;
22589
22616
 
22590
- /* eslint-disable es-x/no-symbol -- required for testing */
22617
+ /* eslint-disable es/no-symbol -- required for testing */
22618
+
22591
22619
 
22592
22620
 
22593
22621
 
22594
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
22595
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
22596
- var symbol = Symbol();
22622
+ var $String = global_1.String;
22623
+
22624
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
22625
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(function () {
22626
+ var symbol = Symbol('symbol detection');
22597
22627
  // Chrome 38 Symbol has incorrect toString conversion
22598
22628
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
22599
- return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
22629
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
22630
+ // of course, fail.
22631
+ return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
22600
22632
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
22601
22633
  !Symbol.sham && engineV8Version && engineV8Version < 41;
22602
22634
  });
22603
22635
 
22604
- /* eslint-disable es-x/no-symbol -- required for testing */
22636
+ /* eslint-disable es/no-symbol -- required for testing */
22605
22637
 
22606
22638
 
22607
- var useSymbolAsUid = nativeSymbol
22639
+ var useSymbolAsUid = symbolConstructorDetection
22608
22640
  && !Symbol.sham
22609
22641
  && typeof Symbol.iterator == 'symbol';
22610
22642
 
@@ -22617,11 +22649,11 @@ var isSymbol = useSymbolAsUid ? function (it) {
22617
22649
  return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, $Object$1(it));
22618
22650
  };
22619
22651
 
22620
- var $String = String;
22652
+ var $String$1 = String;
22621
22653
 
22622
22654
  var tryToString = function (argument) {
22623
22655
  try {
22624
- return $String(argument);
22656
+ return $String$1(argument);
22625
22657
  } catch (error) {
22626
22658
  return 'Object';
22627
22659
  }
@@ -22632,14 +22664,14 @@ var $TypeError$1 = TypeError;
22632
22664
  // `Assert: IsCallable(argument) is true`
22633
22665
  var aCallable = function (argument) {
22634
22666
  if (isCallable(argument)) return argument;
22635
- throw $TypeError$1(tryToString(argument) + ' is not a function');
22667
+ throw new $TypeError$1(tryToString(argument) + ' is not a function');
22636
22668
  };
22637
22669
 
22638
22670
  // `GetMethod` abstract operation
22639
22671
  // https://tc39.es/ecma262/#sec-getmethod
22640
22672
  var getMethod = function (V, P) {
22641
22673
  var func = V[P];
22642
- return func == null ? undefined : aCallable(func);
22674
+ return isNullOrUndefined(func) ? undefined : aCallable(func);
22643
22675
  };
22644
22676
 
22645
22677
  var $TypeError$2 = TypeError;
@@ -22651,10 +22683,10 @@ var ordinaryToPrimitive = function (input, pref) {
22651
22683
  if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
22652
22684
  if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
22653
22685
  if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
22654
- throw $TypeError$2("Can't convert object to primitive value");
22686
+ throw new $TypeError$2("Can't convert object to primitive value");
22655
22687
  };
22656
22688
 
22657
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
22689
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
22658
22690
  var defineProperty = Object.defineProperty;
22659
22691
 
22660
22692
  var defineGlobalProperty = function (key, value) {
@@ -22671,13 +22703,16 @@ var store = global_1[SHARED] || defineGlobalProperty(SHARED, {});
22671
22703
  var sharedStore = store;
22672
22704
 
22673
22705
  var shared = createCommonjsModule(function (module) {
22706
+
22707
+
22708
+
22674
22709
  (module.exports = function (key, value) {
22675
22710
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
22676
22711
  })('versions', []).push({
22677
- version: '3.24.1',
22712
+ version: '3.33.3',
22678
22713
  mode: 'global',
22679
- copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
22680
- license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE',
22714
+ copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
22715
+ license: 'https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE',
22681
22716
  source: 'https://github.com/zloirock/core-js'
22682
22717
  });
22683
22718
  });
@@ -22694,7 +22729,7 @@ var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
22694
22729
 
22695
22730
  // `HasOwnProperty` abstract operation
22696
22731
  // https://tc39.es/ecma262/#sec-hasownproperty
22697
- // eslint-disable-next-line es-x/no-object-hasown -- safe
22732
+ // eslint-disable-next-line es/no-object-hasown -- safe
22698
22733
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
22699
22734
  return hasOwnProperty(toObject(it), key);
22700
22735
  };
@@ -22707,21 +22742,15 @@ var uid = function (key) {
22707
22742
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
22708
22743
  };
22709
22744
 
22710
- var WellKnownSymbolsStore = shared('wks');
22711
22745
  var Symbol$1 = global_1.Symbol;
22712
- var symbolFor = Symbol$1 && Symbol$1['for'];
22713
- var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
22746
+ var WellKnownSymbolsStore = shared('wks');
22747
+ var createWellKnownSymbol = useSymbolAsUid ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
22714
22748
 
22715
22749
  var wellKnownSymbol = function (name) {
22716
- if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
22717
- var description = 'Symbol.' + name;
22718
- if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
22719
- WellKnownSymbolsStore[name] = Symbol$1[name];
22720
- } else if (useSymbolAsUid && symbolFor) {
22721
- WellKnownSymbolsStore[name] = symbolFor(description);
22722
- } else {
22723
- WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
22724
- }
22750
+ if (!hasOwnProperty_1(WellKnownSymbolsStore, name)) {
22751
+ WellKnownSymbolsStore[name] = symbolConstructorDetection && hasOwnProperty_1(Symbol$1, name)
22752
+ ? Symbol$1[name]
22753
+ : createWellKnownSymbol('Symbol.' + name);
22725
22754
  } return WellKnownSymbolsStore[name];
22726
22755
  };
22727
22756
 
@@ -22738,7 +22767,7 @@ var toPrimitive = function (input, pref) {
22738
22767
  if (pref === undefined) pref = 'default';
22739
22768
  result = functionCall(exoticToPrim, input, pref);
22740
22769
  if (!isObject(result) || isSymbol(result)) return result;
22741
- throw $TypeError$3("Can't convert object to primitive value");
22770
+ throw new $TypeError$3("Can't convert object to primitive value");
22742
22771
  }
22743
22772
  if (pref === undefined) pref = 'number';
22744
22773
  return ordinaryToPrimitive(input, pref);
@@ -22761,13 +22790,13 @@ var documentCreateElement = function (it) {
22761
22790
 
22762
22791
  // Thanks to IE8 for its funny defineProperty
22763
22792
  var ie8DomDefine = !descriptors && !fails(function () {
22764
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
22793
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
22765
22794
  return Object.defineProperty(documentCreateElement('div'), 'a', {
22766
22795
  get: function () { return 7; }
22767
- }).a != 7;
22796
+ }).a !== 7;
22768
22797
  });
22769
22798
 
22770
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22799
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22771
22800
  var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
22772
22801
 
22773
22802
  // `Object.getOwnPropertyDescriptor` method
@@ -22788,26 +22817,26 @@ var objectGetOwnPropertyDescriptor = {
22788
22817
  // V8 ~ Chrome 36-
22789
22818
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
22790
22819
  var v8PrototypeDefineBug = descriptors && fails(function () {
22791
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
22820
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
22792
22821
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
22793
22822
  value: 42,
22794
22823
  writable: false
22795
- }).prototype != 42;
22824
+ }).prototype !== 42;
22796
22825
  });
22797
22826
 
22798
- var $String$1 = String;
22827
+ var $String$2 = String;
22799
22828
  var $TypeError$4 = TypeError;
22800
22829
 
22801
22830
  // `Assert: Type(argument) is Object`
22802
22831
  var anObject = function (argument) {
22803
22832
  if (isObject(argument)) return argument;
22804
- throw $TypeError$4($String$1(argument) + ' is not an object');
22833
+ throw new $TypeError$4($String$2(argument) + ' is not an object');
22805
22834
  };
22806
22835
 
22807
22836
  var $TypeError$5 = TypeError;
22808
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
22837
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
22809
22838
  var $defineProperty = Object.defineProperty;
22810
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22839
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22811
22840
  var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
22812
22841
  var ENUMERABLE = 'enumerable';
22813
22842
  var CONFIGURABLE = 'configurable';
@@ -22837,7 +22866,7 @@ var f$2 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Att
22837
22866
  if (ie8DomDefine) try {
22838
22867
  return $defineProperty(O, P, Attributes);
22839
22868
  } catch (error) { /* empty */ }
22840
- if ('get' in Attributes || 'set' in Attributes) throw $TypeError$5('Accessors not supported');
22869
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$5('Accessors not supported');
22841
22870
  if ('value' in Attributes) O[P] = Attributes.value;
22842
22871
  return O;
22843
22872
  };
@@ -22854,7 +22883,7 @@ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
22854
22883
  };
22855
22884
 
22856
22885
  var FunctionPrototype$1 = Function.prototype;
22857
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22886
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22858
22887
  var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
22859
22888
 
22860
22889
  var EXISTS$1 = hasOwnProperty_1(FunctionPrototype$1, 'name');
@@ -22881,7 +22910,7 @@ var inspectSource = sharedStore.inspectSource;
22881
22910
 
22882
22911
  var WeakMap$1 = global_1.WeakMap;
22883
22912
 
22884
- var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
22913
+ var weakMapBasicDetection = isCallable(WeakMap$1) && /native code/.test(String(WeakMap$1));
22885
22914
 
22886
22915
  var keys$1 = shared('keys');
22887
22916
 
@@ -22904,27 +22933,29 @@ var getterFor = function (TYPE) {
22904
22933
  return function (it) {
22905
22934
  var state;
22906
22935
  if (!isObject(it) || (state = get(it)).type !== TYPE) {
22907
- throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
22936
+ throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
22908
22937
  } return state;
22909
22938
  };
22910
22939
  };
22911
22940
 
22912
- if (nativeWeakMap || sharedStore.state) {
22941
+ if (weakMapBasicDetection || sharedStore.state) {
22913
22942
  var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$2());
22914
- var wmget = functionUncurryThis(store$1.get);
22915
- var wmhas = functionUncurryThis(store$1.has);
22916
- var wmset = functionUncurryThis(store$1.set);
22943
+ /* eslint-disable no-self-assign -- prototype methods protection */
22944
+ store$1.get = store$1.get;
22945
+ store$1.has = store$1.has;
22946
+ store$1.set = store$1.set;
22947
+ /* eslint-enable no-self-assign -- prototype methods protection */
22917
22948
  set = function (it, metadata) {
22918
- if (wmhas(store$1, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
22949
+ if (store$1.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
22919
22950
  metadata.facade = it;
22920
- wmset(store$1, it, metadata);
22951
+ store$1.set(it, metadata);
22921
22952
  return metadata;
22922
22953
  };
22923
22954
  get = function (it) {
22924
- return wmget(store$1, it) || {};
22955
+ return store$1.get(it) || {};
22925
22956
  };
22926
22957
  has = function (it) {
22927
- return wmhas(store$1, it);
22958
+ return store$1.has(it);
22928
22959
  };
22929
22960
  } else {
22930
22961
  var STATE = sharedKey('state');
@@ -22952,14 +22983,23 @@ var internalState = {
22952
22983
  };
22953
22984
 
22954
22985
  var makeBuiltIn_1 = createCommonjsModule(function (module) {
22986
+
22987
+
22988
+
22989
+
22990
+
22955
22991
  var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
22956
22992
 
22957
22993
 
22958
22994
 
22959
22995
  var enforceInternalState = internalState.enforce;
22960
22996
  var getInternalState = internalState.get;
22961
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
22997
+ var $String = String;
22998
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
22962
22999
  var defineProperty = Object.defineProperty;
23000
+ var stringSlice = functionUncurryThis(''.slice);
23001
+ var replace = functionUncurryThis(''.replace);
23002
+ var join = functionUncurryThis([].join);
22963
23003
 
22964
23004
  var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
22965
23005
  return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
@@ -22968,8 +23008,8 @@ var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
22968
23008
  var TEMPLATE = String(String).split('String');
22969
23009
 
22970
23010
  var makeBuiltIn = module.exports = function (value, name, options) {
22971
- if (String(name).slice(0, 7) === 'Symbol(') {
22972
- name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
23011
+ if (stringSlice($String(name), 0, 7) === 'Symbol(') {
23012
+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
22973
23013
  }
22974
23014
  if (options && options.getter) name = 'get ' + name;
22975
23015
  if (options && options.setter) name = 'set ' + name;
@@ -22988,7 +23028,7 @@ var makeBuiltIn = module.exports = function (value, name, options) {
22988
23028
  } catch (error) { /* empty */ }
22989
23029
  var state = enforceInternalState(value);
22990
23030
  if (!hasOwnProperty_1(state, 'source')) {
22991
- state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
23031
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
22992
23032
  } return value;
22993
23033
  };
22994
23034
 
@@ -23027,7 +23067,7 @@ var floor = Math.floor;
23027
23067
 
23028
23068
  // `Math.trunc` method
23029
23069
  // https://tc39.es/ecma262/#sec-math.trunc
23030
- // eslint-disable-next-line es-x/no-math-trunc -- safe
23070
+ // eslint-disable-next-line es/no-math-trunc -- safe
23031
23071
  var mathTrunc = Math.trunc || function trunc(x) {
23032
23072
  var n = +x;
23033
23073
  return (n > 0 ? floor : ceil)(n);
@@ -23075,10 +23115,10 @@ var createMethod = function (IS_INCLUDES) {
23075
23115
  var value;
23076
23116
  // Array#includes uses SameValueZero equality algorithm
23077
23117
  // eslint-disable-next-line no-self-compare -- NaN check
23078
- if (IS_INCLUDES && el != el) while (length > index) {
23118
+ if (IS_INCLUDES && el !== el) while (length > index) {
23079
23119
  value = O[index++];
23080
23120
  // eslint-disable-next-line no-self-compare -- NaN check
23081
- if (value != value) return true;
23121
+ if (value !== value) return true;
23082
23122
  // Array#indexOf ignores holes, Array#includes - not
23083
23123
  } else for (;length > index; index++) {
23084
23124
  if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
@@ -23128,7 +23168,7 @@ var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
23128
23168
 
23129
23169
  // `Object.getOwnPropertyNames` method
23130
23170
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
23131
- // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
23171
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
23132
23172
  var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
23133
23173
  return objectKeysInternal(O, hiddenKeys$1);
23134
23174
  };
@@ -23137,7 +23177,7 @@ var objectGetOwnPropertyNames = {
23137
23177
  f: f$3
23138
23178
  };
23139
23179
 
23140
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
23180
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
23141
23181
  var f$4 = Object.getOwnPropertySymbols;
23142
23182
 
23143
23183
  var objectGetOwnPropertySymbols = {
@@ -23169,8 +23209,8 @@ var replacement = /#|\.prototype\./;
23169
23209
 
23170
23210
  var isForced = function (feature, detection) {
23171
23211
  var value = data[normalize(feature)];
23172
- return value == POLYFILL ? true
23173
- : value == NATIVE ? false
23212
+ return value === POLYFILL ? true
23213
+ : value === NATIVE ? false
23174
23214
  : isCallable(detection) ? fails(detection)
23175
23215
  : !!detection;
23176
23216
  };
@@ -23250,7 +23290,7 @@ var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
23250
23290
  var $Object$3 = Object;
23251
23291
 
23252
23292
  // ES3 wrong here
23253
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
23293
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
23254
23294
 
23255
23295
  // fallback for IE11 Script Access Denied error
23256
23296
  var tryGet = function (it, key) {
@@ -23268,25 +23308,25 @@ var classof = toStringTagSupport ? classofRaw : function (it) {
23268
23308
  // builtinTag case
23269
23309
  : CORRECT_ARGUMENTS ? classofRaw(O)
23270
23310
  // ES3 arguments fallback
23271
- : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
23311
+ : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
23272
23312
  };
23273
23313
 
23274
- var $String$2 = String;
23314
+ var $String$3 = String;
23275
23315
 
23276
23316
  var toString_1 = function (argument) {
23277
- if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
23278
- return $String$2(argument);
23317
+ if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
23318
+ return $String$3(argument);
23279
23319
  };
23280
23320
 
23281
23321
  var charAt = functionUncurryThis(''.charAt);
23282
23322
 
23283
23323
  var FORCED = fails(function () {
23284
- // eslint-disable-next-line es-x/no-array-string-prototype-at -- safe
23324
+ // eslint-disable-next-line es/no-array-string-prototype-at -- safe
23285
23325
  return '𠮷'.at(-2) !== '\uD842';
23286
23326
  });
23287
23327
 
23288
23328
  // `String.prototype.at` method
23289
- // https://github.com/tc39/proposal-relative-indexing-method
23329
+ // https://tc39.es/ecma262/#sec-string.prototype.at
23290
23330
  _export({ target: 'String', proto: true, forced: FORCED }, {
23291
23331
  at: function at(index) {
23292
23332
  var S = toString_1(requireObjectCoercible(this));
@@ -23299,14 +23339,14 @@ _export({ target: 'String', proto: true, forced: FORCED }, {
23299
23339
 
23300
23340
  // `Object.keys` method
23301
23341
  // https://tc39.es/ecma262/#sec-object.keys
23302
- // eslint-disable-next-line es-x/no-object-keys -- safe
23342
+ // eslint-disable-next-line es/no-object-keys -- safe
23303
23343
  var objectKeys = Object.keys || function keys(O) {
23304
23344
  return objectKeysInternal(O, enumBugKeys);
23305
23345
  };
23306
23346
 
23307
23347
  // `Object.defineProperties` method
23308
23348
  // https://tc39.es/ecma262/#sec-object.defineproperties
23309
- // eslint-disable-next-line es-x/no-object-defineproperties -- safe
23349
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
23310
23350
  var f$5 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
23311
23351
  anObject(O);
23312
23352
  var props = toIndexedObject(Properties);
@@ -23395,7 +23435,7 @@ hiddenKeys[IE_PROTO] = true;
23395
23435
 
23396
23436
  // `Object.create` method
23397
23437
  // https://tc39.es/ecma262/#sec-object.create
23398
- // eslint-disable-next-line es-x/no-object-create -- safe
23438
+ // eslint-disable-next-line es/no-object-create -- safe
23399
23439
  var objectCreate = Object.create || function create(O, Properties) {
23400
23440
  var result;
23401
23441
  if (O !== null) {
@@ -23415,7 +23455,7 @@ var ArrayPrototype = Array.prototype;
23415
23455
 
23416
23456
  // Array.prototype[@@unscopables]
23417
23457
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
23418
- if (ArrayPrototype[UNSCOPABLES] == undefined) {
23458
+ if (ArrayPrototype[UNSCOPABLES] === undefined) {
23419
23459
  defineProperty$1(ArrayPrototype, UNSCOPABLES, {
23420
23460
  configurable: true,
23421
23461
  value: objectCreate(null)
@@ -23428,7 +23468,7 @@ var addToUnscopables = function (key) {
23428
23468
  };
23429
23469
 
23430
23470
  // `Array.prototype.at` method
23431
- // https://github.com/tc39/proposal-relative-indexing-method
23471
+ // https://tc39.es/ecma262/#sec-array.prototype.at
23432
23472
  _export({ target: 'Array', proto: true }, {
23433
23473
  at: function at(index) {
23434
23474
  var O = toObject(this);
@@ -23441,13 +23481,19 @@ _export({ target: 'Array', proto: true }, {
23441
23481
 
23442
23482
  addToUnscopables('at');
23443
23483
 
23444
- // eslint-disable-next-line es-x/no-typed-arrays -- safe
23445
- var arrayBufferNative = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
23484
+ // eslint-disable-next-line es/no-typed-arrays -- safe
23485
+ var arrayBufferBasicDetection = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
23486
+
23487
+ var defineBuiltInAccessor = function (target, name, descriptor) {
23488
+ if (descriptor.get) makeBuiltIn_1(descriptor.get, name, { getter: true });
23489
+ if (descriptor.set) makeBuiltIn_1(descriptor.set, name, { setter: true });
23490
+ return objectDefineProperty.f(target, name, descriptor);
23491
+ };
23446
23492
 
23447
23493
  var correctPrototypeGetter = !fails(function () {
23448
23494
  function F() { /* empty */ }
23449
23495
  F.prototype.constructor = null;
23450
- // eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
23496
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
23451
23497
  return Object.getPrototypeOf(new F()) !== F.prototype;
23452
23498
  });
23453
23499
 
@@ -23457,7 +23503,7 @@ var ObjectPrototype = $Object$4.prototype;
23457
23503
 
23458
23504
  // `Object.getPrototypeOf` method
23459
23505
  // https://tc39.es/ecma262/#sec-object.getprototypeof
23460
- // eslint-disable-next-line es-x/no-object-getprototypeof -- safe
23506
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
23461
23507
  var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : function (O) {
23462
23508
  var object = toObject(O);
23463
23509
  if (hasOwnProperty_1(object, IE_PROTO$1)) return object[IE_PROTO$1];
@@ -23467,12 +23513,19 @@ var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : f
23467
23513
  } return object instanceof $Object$4 ? ObjectPrototype : null;
23468
23514
  };
23469
23515
 
23470
- var $String$3 = String;
23516
+ var functionUncurryThisAccessor = function (object, key, method) {
23517
+ try {
23518
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
23519
+ return functionUncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
23520
+ } catch (error) { /* empty */ }
23521
+ };
23522
+
23523
+ var $String$4 = String;
23471
23524
  var $TypeError$6 = TypeError;
23472
23525
 
23473
23526
  var aPossiblePrototype = function (argument) {
23474
23527
  if (typeof argument == 'object' || isCallable(argument)) return argument;
23475
- throw $TypeError$6("Can't set " + $String$3(argument) + ' as a prototype');
23528
+ throw new $TypeError$6("Can't set " + $String$4(argument) + ' as a prototype');
23476
23529
  };
23477
23530
 
23478
23531
  /* eslint-disable no-proto -- safe */
@@ -23483,14 +23536,13 @@ var aPossiblePrototype = function (argument) {
23483
23536
  // `Object.setPrototypeOf` method
23484
23537
  // https://tc39.es/ecma262/#sec-object.setprototypeof
23485
23538
  // Works with __proto__ only. Old v8 can't work with null proto objects.
23486
- // eslint-disable-next-line es-x/no-object-setprototypeof -- safe
23539
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
23487
23540
  var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
23488
23541
  var CORRECT_SETTER = false;
23489
23542
  var test = {};
23490
23543
  var setter;
23491
23544
  try {
23492
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
23493
- setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
23545
+ setter = functionUncurryThisAccessor(Object.prototype, '__proto__', 'set');
23494
23546
  setter(test, []);
23495
23547
  CORRECT_SETTER = test instanceof Array;
23496
23548
  } catch (error) { /* empty */ }
@@ -23503,14 +23555,6 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
23503
23555
  };
23504
23556
  }() : undefined);
23505
23557
 
23506
- var defineProperty$2 = objectDefineProperty.f;
23507
-
23508
-
23509
-
23510
-
23511
-
23512
-
23513
-
23514
23558
  var enforceInternalState = internalState.enforce;
23515
23559
  var getInternalState = internalState.get;
23516
23560
  var Int8Array = global_1.Int8Array;
@@ -23526,7 +23570,7 @@ var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
23526
23570
  var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
23527
23571
  var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
23528
23572
  // Fixing native typed arrays in Opera Presto crashes the browser, see #595
23529
- var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferNative && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
23573
+ var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferBasicDetection && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
23530
23574
  var TYPED_ARRAY_TAG_REQUIRED = false;
23531
23575
  var NAME, Constructor, Prototype;
23532
23576
 
@@ -23571,12 +23615,12 @@ var isTypedArray = function (it) {
23571
23615
 
23572
23616
  var aTypedArray = function (it) {
23573
23617
  if (isTypedArray(it)) return it;
23574
- throw TypeError$2('Target is not a typed array');
23618
+ throw new TypeError$2('Target is not a typed array');
23575
23619
  };
23576
23620
 
23577
23621
  var aTypedArrayConstructor = function (C) {
23578
23622
  if (isCallable(C) && (!objectSetPrototypeOf || objectIsPrototypeOf(TypedArray, C))) return C;
23579
- throw TypeError$2(tryToString(C) + ' is not a typed array constructor');
23623
+ throw new TypeError$2(tryToString(C) + ' is not a typed array constructor');
23580
23624
  };
23581
23625
 
23582
23626
  var exportTypedArrayMethod = function (KEY, property, forced, options) {
@@ -23640,7 +23684,7 @@ for (NAME in BigIntArrayConstructorsList) {
23640
23684
  if (!NATIVE_ARRAY_BUFFER_VIEWS || !isCallable(TypedArray) || TypedArray === Function.prototype) {
23641
23685
  // eslint-disable-next-line no-shadow -- safe
23642
23686
  TypedArray = function TypedArray() {
23643
- throw TypeError$2('Incorrect invocation');
23687
+ throw new TypeError$2('Incorrect invocation');
23644
23688
  };
23645
23689
  if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {
23646
23690
  if (global_1[NAME]) objectSetPrototypeOf(global_1[NAME], TypedArray);
@@ -23661,9 +23705,12 @@ if (NATIVE_ARRAY_BUFFER_VIEWS && objectGetPrototypeOf(Uint8ClampedArrayPrototype
23661
23705
 
23662
23706
  if (descriptors && !hasOwnProperty_1(TypedArrayPrototype, TO_STRING_TAG$2)) {
23663
23707
  TYPED_ARRAY_TAG_REQUIRED = true;
23664
- defineProperty$2(TypedArrayPrototype, TO_STRING_TAG$2, { get: function () {
23665
- return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
23666
- } });
23708
+ defineBuiltInAccessor(TypedArrayPrototype, TO_STRING_TAG$2, {
23709
+ configurable: true,
23710
+ get: function () {
23711
+ return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
23712
+ }
23713
+ });
23667
23714
  for (NAME in TypedArrayConstructorsList) if (global_1[NAME]) {
23668
23715
  createNonEnumerableProperty(global_1[NAME], TYPED_ARRAY_TAG, NAME);
23669
23716
  }
@@ -23687,7 +23734,7 @@ var aTypedArray$1 = arrayBufferViewCore.aTypedArray;
23687
23734
  var exportTypedArrayMethod$1 = arrayBufferViewCore.exportTypedArrayMethod;
23688
23735
 
23689
23736
  // `%TypedArray%.prototype.at` method
23690
- // https://github.com/tc39/proposal-relative-indexing-method
23737
+ // https://tc39.es/ecma262/#sec-%typedarray%.prototype.at
23691
23738
  exportTypedArrayMethod$1('at', function at(index) {
23692
23739
  var O = aTypedArray$1(this);
23693
23740
  var len = lengthOfArrayLike(O);
@@ -23723,10 +23770,10 @@ var DropdownContentWrapper = styled__default.div.withConfig({
23723
23770
  var DropdownItemWrapper = styled__default.li.withConfig({
23724
23771
  displayName: "Dropdown__DropdownItemWrapper",
23725
23772
  componentId: "sc-pn6m0h-2"
23726
- })(["background-color:", ";text-align:start;border-width:0px;border-color:transparent;box-shadow:none;padding:1rem;box-sizing:border-box;width:100%;list-style:none;cursor:", ";&:hover{background-color:", ";}&:focus{background-color:", ";outline:none;}"], function (_ref4) {
23773
+ })(["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) {
23727
23774
  var selected = _ref4.selected,
23728
23775
  themeValues = _ref4.themeValues;
23729
- return selected ? themeValues.selectedColor : WHITE;
23776
+ return selected ? themeValues.selectedColor : TRANSPARENT;
23730
23777
  }, function (_ref5) {
23731
23778
  var disabled = _ref5.disabled;
23732
23779
  return disabled ? "default" : "pointer";
@@ -23740,37 +23787,63 @@ var DropdownItemWrapper = styled__default.li.withConfig({
23740
23787
  disabled = _ref7.disabled,
23741
23788
  themeValues = _ref7.themeValues;
23742
23789
  return selected ? themeValues.selectedColor : disabled ? WHITE : themeValues.hoverColor;
23790
+ }, function (_ref8) {
23791
+ var themeValues = _ref8.themeValues;
23792
+ return themeValues.hoverColor;
23793
+ }, function (_ref9) {
23794
+ var selected = _ref9.selected,
23795
+ themeValues = _ref9.themeValues;
23796
+ return selected ? addOpacity(themeValues.selectedColor, 0.2, 0, 0, 0) : "";
23797
+ }, function (_ref10) {
23798
+ var selected = _ref10.selected,
23799
+ themeValues = _ref10.themeValues;
23800
+ return selected ? TRANSPARENT : themeValues.selectedColor;
23801
+ }, function (_ref11) {
23802
+ var selected = _ref11.selected,
23803
+ disabled = _ref11.disabled,
23804
+ themeValues = _ref11.themeValues;
23805
+ return selected ? addOpacity(themeValues.selectedColor, 0.2, 0, 0, 0) : disabled ? WHITE : themeValues.hoverColor;
23806
+ });
23807
+ var DropdownItemBorder = styled__default.div.withConfig({
23808
+ displayName: "Dropdown__DropdownItemBorder",
23809
+ componentId: "sc-pn6m0h-3"
23810
+ })(["background:", ";border-color:", ";border-width:2px;border-style:solid;padding:12px;"], function (_ref12) {
23811
+ var selected = _ref12.selected,
23812
+ themeValues = _ref12.themeValues;
23813
+ return selected ? themeValues.selectedColor : WHITE;
23814
+ }, function (_ref13) {
23815
+ var selected = _ref13.selected,
23816
+ themeValues = _ref13.themeValues;
23817
+ return selected ? themeValues.selectedColor : WHITE;
23743
23818
  });
23744
23819
 
23745
- var Dropdown = function Dropdown(_ref8) {
23746
- var placeholder = _ref8.placeholder,
23747
- options = _ref8.options,
23748
- value = _ref8.value,
23749
- isOpen = _ref8.isOpen,
23750
- isError = _ref8.isError,
23751
- onSelect = _ref8.onSelect,
23752
- _ref8$disabledValues = _ref8.disabledValues,
23753
- disabledValues = _ref8$disabledValues === void 0 ? [] : _ref8$disabledValues,
23754
- _ref8$onClick = _ref8.onClick,
23755
- _onClick = _ref8$onClick === void 0 ? noop : _ref8$onClick,
23756
- themeValues = _ref8.themeValues,
23757
- maxHeight = _ref8.maxHeight,
23758
- _ref8$widthFitOptions = _ref8.widthFitOptions,
23759
- widthFitOptions = _ref8$widthFitOptions === void 0 ? false : _ref8$widthFitOptions,
23760
- disabled = _ref8.disabled,
23761
- _ref8$hasTitles = _ref8.hasTitles,
23762
- hasTitles = _ref8$hasTitles === void 0 ? false : _ref8$hasTitles,
23763
- _ref8$autoEraseTypeAh = _ref8.autoEraseTypeAhead,
23764
- autoEraseTypeAhead = _ref8$autoEraseTypeAh === void 0 ? true : _ref8$autoEraseTypeAh,
23765
- ariaLabelledby = _ref8.ariaLabelledby,
23766
- ariaDescribedby = _ref8.ariaDescribedby,
23767
- autocompleteValue = _ref8.autocompleteValue,
23768
- _ref8$smoothScroll = _ref8.smoothScroll,
23769
- smoothScroll = _ref8$smoothScroll === void 0 ? true : _ref8$smoothScroll,
23770
- _ref8$ariaInvalid = _ref8.ariaInvalid,
23771
- ariaInvalid = _ref8$ariaInvalid === void 0 ? false : _ref8$ariaInvalid,
23772
- _ref8$isRequired = _ref8.isRequired,
23773
- isRequired = _ref8$isRequired === void 0 ? false : _ref8$isRequired;
23820
+ var Dropdown = function Dropdown(_ref14) {
23821
+ var placeholder = _ref14.placeholder,
23822
+ options = _ref14.options,
23823
+ value = _ref14.value,
23824
+ isOpen = _ref14.isOpen,
23825
+ isError = _ref14.isError,
23826
+ onSelect = _ref14.onSelect,
23827
+ _ref14$disabledValues = _ref14.disabledValues,
23828
+ disabledValues = _ref14$disabledValues === void 0 ? [] : _ref14$disabledValues,
23829
+ _ref14$onClick = _ref14.onClick,
23830
+ _onClick = _ref14$onClick === void 0 ? noop : _ref14$onClick,
23831
+ themeValues = _ref14.themeValues,
23832
+ maxHeight = _ref14.maxHeight,
23833
+ _ref14$widthFitOption = _ref14.widthFitOptions,
23834
+ widthFitOptions = _ref14$widthFitOption === void 0 ? false : _ref14$widthFitOption,
23835
+ disabled = _ref14.disabled,
23836
+ _ref14$hasTitles = _ref14.hasTitles,
23837
+ hasTitles = _ref14$hasTitles === void 0 ? false : _ref14$hasTitles,
23838
+ _ref14$autoEraseTypeA = _ref14.autoEraseTypeAhead,
23839
+ autoEraseTypeAhead = _ref14$autoEraseTypeA === void 0 ? true : _ref14$autoEraseTypeA,
23840
+ ariaLabelledby = _ref14.ariaLabelledby,
23841
+ ariaDescribedby = _ref14.ariaDescribedby,
23842
+ autocompleteValue = _ref14.autocompleteValue,
23843
+ _ref14$smoothScroll = _ref14.smoothScroll,
23844
+ smoothScroll = _ref14$smoothScroll === void 0 ? true : _ref14$smoothScroll,
23845
+ _ref14$ariaInvalid = _ref14.ariaInvalid,
23846
+ ariaInvalid = _ref14$ariaInvalid === void 0 ? false : _ref14$ariaInvalid;
23774
23847
 
23775
23848
  var _useState = React.useState(""),
23776
23849
  _useState2 = _slicedToArray(_useState, 2),
@@ -24041,7 +24114,7 @@ var Dropdown = function Dropdown(_ref8) {
24041
24114
  },
24042
24115
  padding: "12px",
24043
24116
  placeholder: getSelection(),
24044
- required: options.required || isRequired,
24117
+ required: options.required,
24045
24118
  role: "combobox",
24046
24119
  themeValues: themeValues,
24047
24120
  title: hasTitles ? getSelection() : null,
@@ -24092,11 +24165,15 @@ var Dropdown = function Dropdown(_ref8) {
24092
24165
  onFocus: function onFocus() {
24093
24166
  return setFocusedRef(optionRefs.current[i]);
24094
24167
  }
24168
+ }, /*#__PURE__*/React__default.createElement(DropdownItemBorder, {
24169
+ disabled: disabledValues.includes(choice.value),
24170
+ selected: choice.value === value,
24171
+ themeValues: themeValues
24095
24172
  }, /*#__PURE__*/React__default.createElement(Text$1, {
24096
24173
  variant: "p",
24097
24174
  color: choice.value === value ? WHITE : disabledValues.includes(choice.value) ? STORM_GREY : MINESHAFT_GREY,
24098
- extraStyles: "padding-left: 16px;\n cursor: ".concat(disabledValues.includes(choice.value) ? "default" : "pointer", ";\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;")
24099
- }, choice.text));
24175
+ extraStyles: "padding-left: 16px;\n cursor: ".concat(disabledValues.includes(choice.value) ? "default" : "pointer", ";\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;")
24176
+ }, choice.text)));
24100
24177
  }))) : /*#__PURE__*/React__default.createElement(React.Fragment, null)));
24101
24178
  };
24102
24179
 
@@ -24205,9 +24282,7 @@ var FormSelect = function FormSelect(_ref) {
24205
24282
  _ref$dataQa = _ref.dataQa,
24206
24283
  dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
24207
24284
  _ref$widthFitOptions = _ref.widthFitOptions,
24208
- widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions,
24209
- _ref$isRequired = _ref.isRequired,
24210
- isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
24285
+ widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions;
24211
24286
 
24212
24287
  var _useState = React.useState(false),
24213
24288
  _useState2 = _slicedToArray(_useState, 2),
@@ -24269,8 +24344,7 @@ var FormSelect = function FormSelect(_ref) {
24269
24344
  },
24270
24345
  disabled: disabled,
24271
24346
  autocompleteValue: autocompleteValue,
24272
- smoothScroll: smoothScroll,
24273
- required: isRequired
24347
+ smoothScroll: smoothScroll
24274
24348
  }), /*#__PURE__*/React__default.createElement(Stack, {
24275
24349
  direction: "row",
24276
24350
  justify: "space-between"
@@ -25040,9 +25114,7 @@ var CountryDropdown = function CountryDropdown(_ref) {
25040
25114
  showErrors = _ref.showErrors,
25041
25115
  onChange = _ref.onChange,
25042
25116
  _ref$dataQa = _ref.dataQa,
25043
- dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
25044
- _ref$isRequired = _ref.isRequired,
25045
- isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
25117
+ dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa;
25046
25118
  return /*#__PURE__*/React__default.createElement(FormSelect$1, {
25047
25119
  options: options,
25048
25120
  field: field,
@@ -25052,8 +25124,7 @@ var CountryDropdown = function CountryDropdown(_ref) {
25052
25124
  errorMessages: errorMessages,
25053
25125
  showErrors: showErrors,
25054
25126
  onChange: onChange,
25055
- autocompleteValue: "country-name",
25056
- isRequired: isRequired
25127
+ autocompleteValue: "country-name"
25057
25128
  });
25058
25129
  };
25059
25130
 
@@ -25898,7 +25969,7 @@ var fallbackValues$k = {
25898
25969
  };
25899
25970
 
25900
25971
  var _excluded$p = ["showErrors", "themeValues"],
25901
- _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired"];
25972
+ _excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa"];
25902
25973
  var InputField = styled__default.input.withConfig({
25903
25974
  displayName: "FormInput__InputField",
25904
25975
  componentId: "sc-l094r1-0"
@@ -25985,8 +26056,6 @@ var FormInput = function FormInput(_ref15) {
25985
26056
  removeFromValue = _ref15.removeFromValue,
25986
26057
  _ref15$dataQa = _ref15.dataQa,
25987
26058
  dataQa = _ref15$dataQa === void 0 ? null : _ref15$dataQa,
25988
- _ref15$isRequired = _ref15.isRequired,
25989
- isRequired = _ref15$isRequired === void 0 ? false : _ref15$isRequired,
25990
26059
  props = _objectWithoutProperties(_ref15, _excluded2);
25991
26060
 
25992
26061
  var _useState = React.useState(false),
@@ -26073,8 +26142,7 @@ var FormInput = function FormInput(_ref15) {
26073
26142
  $customHeight: customHeight,
26074
26143
  $extraStyles: extraStyles,
26075
26144
  "data-qa": dataQa || labelTextWhenNoError,
26076
- autoComplete: autocompleteValue,
26077
- required: isRequired
26145
+ autoComplete: autocompleteValue
26078
26146
  }, props)) : /*#__PURE__*/React__default.createElement(InputField, _extends({
26079
26147
  "aria-labelledby": createIdFromString(labelTextWhenNoError),
26080
26148
  "aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
@@ -26093,8 +26161,7 @@ var FormInput = function FormInput(_ref15) {
26093
26161
  $customHeight: customHeight,
26094
26162
  $extraStyles: extraStyles,
26095
26163
  "data-qa": dataQa || labelTextWhenNoError,
26096
- autoComplete: autocompleteValue,
26097
- required: isRequired
26164
+ autoComplete: autocompleteValue
26098
26165
  }, props))), /*#__PURE__*/React__default.createElement(Stack, {
26099
26166
  direction: "row",
26100
26167
  justify: "space-between",
@@ -27276,9 +27343,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
27276
27343
  _ref2$ariaLabelledBy = _ref2.ariaLabelledBy,
27277
27344
  ariaLabelledBy = _ref2$ariaLabelledBy === void 0 ? "" : _ref2$ariaLabelledBy,
27278
27345
  _ref2$ariaLabel = _ref2.ariaLabel,
27279
- ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel,
27280
- _ref2$required = _ref2.required,
27281
- required = _ref2$required === void 0 ? false : _ref2$required;
27346
+ ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel;
27282
27347
  var buttonBorder = {
27283
27348
  onFocused: {
27284
27349
  borderColor: themeValues.activeColor,
@@ -27340,8 +27405,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
27340
27405
  disabled: disabled,
27341
27406
  onClick: toggleRadio,
27342
27407
  "aria-describedby": ariaDescribedBy,
27343
- tabIndex: "-1",
27344
- required: required
27408
+ tabIndex: "-1"
27345
27409
  }, extraProps)), /*#__PURE__*/React__default.createElement(Motion, {
27346
27410
  borderWidth: "1px",
27347
27411
  borderStyle: "solid",
@@ -38031,9 +38095,7 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
38031
38095
  field = _ref.field,
38032
38096
  fieldActions = _ref.fieldActions,
38033
38097
  showErrors = _ref.showErrors,
38034
- countryCode = _ref.countryCode,
38035
- _ref$isRequired = _ref.isRequired,
38036
- isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
38098
+ countryCode = _ref.countryCode;
38037
38099
  var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
38038
38100
  var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
38039
38101
  return /*#__PURE__*/React__default.createElement(FormSelect$1, {
@@ -38043,8 +38105,7 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
38043
38105
  labelTextWhenNoError: labelTextWhenNoError,
38044
38106
  errorMessages: errorMessages,
38045
38107
  showErrors: showErrors,
38046
- autocompleteValue: "address-level1",
38047
- isRequired: isRequired
38108
+ autocompleteValue: "address-level1"
38048
38109
  });
38049
38110
  };
38050
38111
 
@@ -39325,14 +39386,6 @@ const createFormState = (formConfig) => ({
39325
39386
  mapStateToProps: mapStateToProps,
39326
39387
  });
39327
39388
 
39328
- var getIsRequiredFromValidators = function getIsRequiredFromValidators(callbackFn) {
39329
- return callbackFn(function (field) {
39330
- return !!field.validators.find(function (validator) {
39331
- return validator.type === "validator/REQUIRED";
39332
- });
39333
- }, []);
39334
- };
39335
-
39336
39389
  var AddressForm = function AddressForm(_ref) {
39337
39390
  var _zipErrorMessages;
39338
39391
 
@@ -39391,8 +39444,7 @@ var AddressForm = function AddressForm(_ref) {
39391
39444
  }
39392
39445
  },
39393
39446
  showErrors: showErrors,
39394
- dataQa: "Country",
39395
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.city)
39447
+ dataQa: "Country"
39396
39448
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
39397
39449
  labelTextWhenNoError: "Address",
39398
39450
  errorMessages: street1ErrorMessages,
@@ -39403,8 +39455,7 @@ var AddressForm = function AddressForm(_ref) {
39403
39455
  return e.key === "Enter" && handleSubmit(e);
39404
39456
  },
39405
39457
  autocompleteValue: "address-line1",
39406
- dataQa: "Address",
39407
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.street1)
39458
+ dataQa: "Address"
39408
39459
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
39409
39460
  labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
39410
39461
  field: fields.street2,
@@ -39414,8 +39465,7 @@ var AddressForm = function AddressForm(_ref) {
39414
39465
  return e.key === "Enter" && handleSubmit(e);
39415
39466
  },
39416
39467
  autocompleteValue: "address-line2",
39417
- dataQa: "Address Line 2",
39418
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.street2)
39468
+ dataQa: "Address Line 2"
39419
39469
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
39420
39470
  labelTextWhenNoError: "City",
39421
39471
  errorMessages: cityErrorMessages,
@@ -39426,8 +39476,7 @@ var AddressForm = function AddressForm(_ref) {
39426
39476
  return e.key === "Enter" && handleSubmit(e);
39427
39477
  },
39428
39478
  autocompleteValue: "address-level2",
39429
- dataQa: "City",
39430
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.city)
39479
+ dataQa: "City"
39431
39480
  }), /*#__PURE__*/React__default.createElement(FormStateDropdown, {
39432
39481
  labelTextWhenNoError: isUS ? "State" : "State or Province",
39433
39482
  errorMessages: stateProvinceErrorMessages,
@@ -39438,8 +39487,7 @@ var AddressForm = function AddressForm(_ref) {
39438
39487
  onKeyDown: function onKeyDown(e) {
39439
39488
  return e.key === "Enter" && handleSubmit(e);
39440
39489
  },
39441
- dataQa: "State or Province",
39442
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.stateProvince)
39490
+ dataQa: "State or Province"
39443
39491
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
39444
39492
  isNum: isUS,
39445
39493
  formatter: isUS ? zipFormat : null,
@@ -39452,8 +39500,7 @@ var AddressForm = function AddressForm(_ref) {
39452
39500
  return e.key === "Enter" && handleSubmit(e);
39453
39501
  },
39454
39502
  autocompleteValue: "postal-code",
39455
- dataQa: "Zip code",
39456
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.zip)
39503
+ dataQa: "Zip code"
39457
39504
  }), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
39458
39505
  name: "address checkbox",
39459
39506
  title: "Save address to wallet",
@@ -47891,7 +47938,7 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
47891
47938
  };
47892
47939
 
47893
47940
  var PaymentFormACH = function PaymentFormACH(_ref) {
47894
- var _routingNumberErrors, _confirmRoutingNumber, _accountNumberErrors, _confirmAccountNumber;
47941
+ var _routingNumberErrors, _accountNumberErrors;
47895
47942
 
47896
47943
  var _ref$variant = _ref.variant,
47897
47944
  variant = _ref$variant === void 0 ? "default" : _ref$variant,
@@ -47934,9 +47981,12 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47934
47981
  var nameErrors = _defineProperty({}, required.error, "Name is required");
47935
47982
 
47936
47983
  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);
47937
- 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);
47984
+
47985
+ var confirmRoutingNumberErrors = _defineProperty({}, matchesField.error, "Confirm routing number field must match routing number");
47986
+
47938
47987
  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);
47939
- 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);
47988
+
47989
+ var confirmAccountNumberErrors = _defineProperty({}, matchesField.error, "Confirm account number field must match account number");
47940
47990
 
47941
47991
  var accountTypeErrors = _defineProperty({}, required.error, "Account type is required");
47942
47992
 
@@ -47954,8 +48004,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47954
48004
  onKeyDown: function onKeyDown(e) {
47955
48005
  return e.key === "Enter" && handleSubmit(e);
47956
48006
  },
47957
- autocompleteValue: "name",
47958
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.name)
48007
+ autocompleteValue: "name"
47959
48008
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
47960
48009
  labelTextWhenNoError: "Routing number",
47961
48010
  dataQa: "Routing number",
@@ -47963,7 +48012,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47963
48012
  field: fields.routingNumber,
47964
48013
  fieldActions: actions.fields.routingNumber,
47965
48014
  showErrors: showErrors,
47966
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.routingNumber),
47967
48015
  isNum: true,
47968
48016
  helperModal: function helperModal() {
47969
48017
  return /*#__PURE__*/React__default.createElement(AccountAndRoutingModal$1, {
@@ -47989,7 +48037,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47989
48037
  onKeyDown: function onKeyDown(e) {
47990
48038
  return e.key === "Enter" && handleSubmit(e);
47991
48039
  },
47992
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.confirmRoutingNumber),
47993
48040
  isNum: true
47994
48041
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
47995
48042
  labelTextWhenNoError: "Account number",
@@ -47998,7 +48045,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47998
48045
  field: fields.accountNumber,
47999
48046
  fieldActions: actions.fields.accountNumber,
48000
48047
  showErrors: showErrors,
48001
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.accountNumber),
48002
48048
  isNum: true,
48003
48049
  helperModal: function helperModal() {
48004
48050
  return /*#__PURE__*/React__default.createElement(AccountAndRoutingModal$1, {
@@ -48024,7 +48070,6 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48024
48070
  onKeyDown: function onKeyDown(e) {
48025
48071
  return e.key === "Enter" && handleSubmit(e);
48026
48072
  },
48027
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.confirmAccountNumber),
48028
48073
  isNum: true
48029
48074
  }), allowBankAccountType && /*#__PURE__*/React__default.createElement(FormSelect$1, {
48030
48075
  labelTextWhenNoError: "Account type",
@@ -48042,8 +48087,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
48042
48087
  fieldActions: actions.fields.accountType,
48043
48088
  showErrors: showErrors,
48044
48089
  errorMessages: accountTypeErrors,
48045
- field: fields.accountType,
48046
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.accountType)
48090
+ field: fields.accountType
48047
48091
  }), !hideDefaultPayment && /*#__PURE__*/React__default.createElement(Checkbox$1, {
48048
48092
  title: "Save as Default Payment Method",
48049
48093
  dataQa: "default-payment-ach",
@@ -48079,7 +48123,7 @@ var formConfig$6 = {
48079
48123
  constraints: [onlyIntegers(), hasLength(0, 9)]
48080
48124
  },
48081
48125
  confirmRoutingNumber: {
48082
- validators: [matchesField("routingNumber"), required()],
48126
+ validators: [matchesField("routingNumber")],
48083
48127
  constraints: [onlyIntegers(), hasLength(0, 9)]
48084
48128
  },
48085
48129
  accountNumber: {
@@ -48087,7 +48131,7 @@ var formConfig$6 = {
48087
48131
  constraints: [onlyIntegers(), hasLength(0, 17)]
48088
48132
  },
48089
48133
  confirmAccountNumber: {
48090
- validators: [matchesField("accountNumber"), required()],
48134
+ validators: [matchesField("accountNumber")],
48091
48135
  constraints: [onlyIntegers(), hasLength(0, 17)]
48092
48136
  },
48093
48137
  accountType: {
@@ -48170,8 +48214,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48170
48214
  }
48171
48215
  },
48172
48216
  showErrors: showErrors,
48173
- dataQa: "Country",
48174
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.country)
48217
+ dataQa: "Country"
48175
48218
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
48176
48219
  labelTextWhenNoError: "Name on card",
48177
48220
  dataQa: "Name on card",
@@ -48182,8 +48225,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48182
48225
  onKeyDown: function onKeyDown(e) {
48183
48226
  return e.key === "Enter" && handleSubmit(e);
48184
48227
  },
48185
- autocompleteValue: "cc-name",
48186
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.nameOnCard)
48228
+ autocompleteValue: "cc-name"
48187
48229
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
48188
48230
  labelTextWhenNoError: "Credit card number",
48189
48231
  dataQa: "Credit card number",
@@ -48196,8 +48238,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48196
48238
  return e.key === "Enter" && handleSubmit(e);
48197
48239
  },
48198
48240
  isNum: true,
48199
- autocompleteValue: "cc-number",
48200
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.creditCardNumber)
48241
+ autocompleteValue: "cc-number"
48201
48242
  }), /*#__PURE__*/React__default.createElement(FormInputRow, {
48202
48243
  breakpoint: isMobile ? "1000rem" : "21rem",
48203
48244
  childGap: isMobile ? "0rem" : "1rem"
@@ -48215,8 +48256,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48215
48256
  isNum: true,
48216
48257
  removeFromValue: /\// // removes "/" from browser autofill
48217
48258
  ,
48218
- autocompleteValue: "cc-exp",
48219
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.expirationDate)
48259
+ autocompleteValue: "cc-exp"
48220
48260
  }), /*#__PURE__*/React__default.createElement(FormInput$1, {
48221
48261
  labelTextWhenNoError: "CVV",
48222
48262
  dataQa: "CVV",
@@ -48229,8 +48269,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48229
48269
  onKeyDown: function onKeyDown(e) {
48230
48270
  return e.key === "Enter" && handleSubmit(e);
48231
48271
  },
48232
- autocompleteValue: "cc-csc",
48233
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.cvv)
48272
+ autocompleteValue: "cc-csc"
48234
48273
  })), !hideZipCode && /*#__PURE__*/React__default.createElement(Box, {
48235
48274
  padding: isMobile ? "0" : "0 0.5rem 0 0",
48236
48275
  width: isMobile ? "100%" : "50%"
@@ -48246,8 +48285,7 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
48246
48285
  onKeyDown: function onKeyDown(e) {
48247
48286
  return e.key === "Enter" && handleSubmit(e);
48248
48287
  },
48249
- autocompleteValue: "billing postal-code",
48250
- isRequired: getIsRequiredFromValidators(React.useCallback)(fields.zipCode)
48288
+ autocompleteValue: "billing postal-code"
48251
48289
  })), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
48252
48290
  childGap: "4px",
48253
48291
  align: "center"
@@ -48600,9 +48638,7 @@ var RadioSection = function RadioSection(_ref) {
48600
48638
  openHeight = _ref$openHeight === void 0 ? "auto" : _ref$openHeight,
48601
48639
  _ref$containerStyles = _ref.containerStyles,
48602
48640
  containerStyles = _ref$containerStyles === void 0 ? "" : _ref$containerStyles,
48603
- ariaDescribedBy = _ref.ariaDescribedBy,
48604
- _ref$isRequired = _ref.isRequired,
48605
- isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
48641
+ ariaDescribedBy = _ref.ariaDescribedBy;
48606
48642
 
48607
48643
  var handleKeyDown = function handleKeyDown(id, e) {
48608
48644
  if ((e === null || e === void 0 ? void 0 : e.keyCode) === 13 || (e === null || e === void 0 ? void 0 : e.keyCode) === 32) {
@@ -48658,8 +48694,7 @@ var RadioSection = function RadioSection(_ref) {
48658
48694
  extraStyles: containerStyles
48659
48695
  }, /*#__PURE__*/React__default.createElement(Stack, {
48660
48696
  childGap: "0",
48661
- role: "radiogroup",
48662
- required: isRequired
48697
+ role: "radiogroup"
48663
48698
  }, sections.filter(function (section) {
48664
48699
  return !section.hidden;
48665
48700
  }).map(function (section) {
@@ -48681,8 +48716,7 @@ var RadioSection = function RadioSection(_ref) {
48681
48716
  extraStyles: borderStyles,
48682
48717
  role: "radio",
48683
48718
  "aria-checked": openSection === section.id,
48684
- disabled: section.disabled,
48685
- required: section === null || section === void 0 ? void 0 : section.required
48719
+ "aria-disabled": section.disabled
48686
48720
  }, /*#__PURE__*/React__default.createElement(Stack, {
48687
48721
  childGap: "0"
48688
48722
  }, /*#__PURE__*/React__default.createElement(Box, {
@@ -48712,8 +48746,6 @@ var RadioSection = function RadioSection(_ref) {
48712
48746
  }, !section.hideRadioButton && /*#__PURE__*/React__default.createElement(Box, {
48713
48747
  padding: "0"
48714
48748
  }, /*#__PURE__*/React__default.createElement(RadioButton$2, {
48715
- role: "radio",
48716
- required: !!(section !== null && section !== void 0 && section.required),
48717
48749
  id: "radio-input-".concat(idString(section)),
48718
48750
  name: idString(section),
48719
48751
  ariaDescribedBy: ariaDescribedBy,