@thecb/components 9.1.4 → 9.1.6-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +202 -198
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +202 -198
- package/dist/index.esm.js.map +1 -1
- package/dist/src/apps/checkout/pages/payment/sub-pages/payment-amount/PaymentAmount_old.js +49322 -0
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/atoms/.DS_Store +0 -0
- package/src/components/atoms/country-dropdown/CountryDropdown.js +3 -1
- package/src/components/atoms/dropdown/Dropdown.js +3 -2
- package/src/components/atoms/form-layouts/FormInput.js +3 -0
- package/src/components/atoms/form-select/FormSelect.js +3 -1
- package/src/components/atoms/icons/.DS_Store +0 -0
- package/src/components/atoms/layouts/Motion.styled.js +1 -1
- package/src/components/atoms/state-province-dropdown/StateProvinceDropdown.js +3 -1
- package/src/components/molecules/address-form/AddressForm.js +10 -1
- package/src/components/molecules/payment-form-ach/PaymentFormACH.js +22 -3
- package/src/components/molecules/payment-form-ach/PaymentFormACH.state.js +2 -2
- package/src/components/molecules/payment-form-card/PaymentFormCard.js +18 -1
- package/src/components/molecules/radio-section/RadioSection.js +7 -3
- package/src/components/molecules/radio-section/RadioSection.stories.js +4 -3
- package/src/components/molecules/radio-section/radio-button/RadioButton.js +3 -1
- package/src/util/formUtils.js +9 -0
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-
|
|
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) {
|
|
12410
12410
|
var position = _ref.position;
|
|
12411
12411
|
return position;
|
|
12412
12412
|
}, function (_ref2) {
|
|
@@ -22423,18 +22423,17 @@ var DropdownIcon = function DropdownIcon() {
|
|
|
22423
22423
|
};
|
|
22424
22424
|
|
|
22425
22425
|
var check = function (it) {
|
|
22426
|
-
return it && it.Math
|
|
22426
|
+
return it && it.Math == Math && it;
|
|
22427
22427
|
};
|
|
22428
22428
|
|
|
22429
22429
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
22430
22430
|
var global_1 =
|
|
22431
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
|
22431
|
+
// eslint-disable-next-line es-x/no-global-this -- safe
|
|
22432
22432
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
22433
22433
|
check(typeof window == 'object' && window) ||
|
|
22434
22434
|
// eslint-disable-next-line no-restricted-globals -- safe
|
|
22435
22435
|
check(typeof self == 'object' && self) ||
|
|
22436
22436
|
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
22437
|
-
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
22438
22437
|
// eslint-disable-next-line no-new-func -- fallback
|
|
22439
22438
|
(function () { return this; })() || Function('return this')();
|
|
22440
22439
|
|
|
@@ -22448,12 +22447,12 @@ var fails = function (exec) {
|
|
|
22448
22447
|
|
|
22449
22448
|
// Detect IE8's incomplete defineProperty implementation
|
|
22450
22449
|
var descriptors = !fails(function () {
|
|
22451
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
22452
|
-
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1]
|
|
22450
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
22451
|
+
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
22453
22452
|
});
|
|
22454
22453
|
|
|
22455
22454
|
var functionBindNative = !fails(function () {
|
|
22456
|
-
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
22455
|
+
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
|
22457
22456
|
var test = (function () { /* empty */ }).bind();
|
|
22458
22457
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
22459
22458
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
@@ -22466,7 +22465,7 @@ var functionCall = functionBindNative ? call.bind(call) : function () {
|
|
|
22466
22465
|
};
|
|
22467
22466
|
|
|
22468
22467
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
22469
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22468
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
22470
22469
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
22471
22470
|
|
|
22472
22471
|
// Nashorn ~ JDK8 bug
|
|
@@ -22493,11 +22492,14 @@ var createPropertyDescriptor = function (bitmap, value) {
|
|
|
22493
22492
|
};
|
|
22494
22493
|
|
|
22495
22494
|
var FunctionPrototype = Function.prototype;
|
|
22495
|
+
var bind$1 = FunctionPrototype.bind;
|
|
22496
22496
|
var call$1 = FunctionPrototype.call;
|
|
22497
|
-
var
|
|
22497
|
+
var uncurryThis = functionBindNative && bind$1.bind(call$1, call$1);
|
|
22498
22498
|
|
|
22499
|
-
var functionUncurryThis = functionBindNative ?
|
|
22500
|
-
return
|
|
22499
|
+
var functionUncurryThis = functionBindNative ? function (fn) {
|
|
22500
|
+
return fn && uncurryThis(fn);
|
|
22501
|
+
} : function (fn) {
|
|
22502
|
+
return fn && function () {
|
|
22501
22503
|
return call$1.apply(fn, arguments);
|
|
22502
22504
|
};
|
|
22503
22505
|
};
|
|
@@ -22518,21 +22520,15 @@ var indexedObject = fails(function () {
|
|
|
22518
22520
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
22519
22521
|
return !$Object('z').propertyIsEnumerable(0);
|
|
22520
22522
|
}) ? function (it) {
|
|
22521
|
-
return classofRaw(it)
|
|
22523
|
+
return classofRaw(it) == 'String' ? split(it, '') : $Object(it);
|
|
22522
22524
|
} : $Object;
|
|
22523
22525
|
|
|
22524
|
-
// we can't use just `it == null` since of `document.all` special case
|
|
22525
|
-
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
22526
|
-
var isNullOrUndefined = function (it) {
|
|
22527
|
-
return it === null || it === undefined;
|
|
22528
|
-
};
|
|
22529
|
-
|
|
22530
22526
|
var $TypeError = TypeError;
|
|
22531
22527
|
|
|
22532
22528
|
// `RequireObjectCoercible` abstract operation
|
|
22533
22529
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
22534
22530
|
var requireObjectCoercible = function (it) {
|
|
22535
|
-
if (
|
|
22531
|
+
if (it == undefined) throw $TypeError("Can't call method on " + it);
|
|
22536
22532
|
return it;
|
|
22537
22533
|
};
|
|
22538
22534
|
|
|
@@ -22544,32 +22540,13 @@ var toIndexedObject = function (it) {
|
|
|
22544
22540
|
return indexedObject(requireObjectCoercible(it));
|
|
22545
22541
|
};
|
|
22546
22542
|
|
|
22547
|
-
var documentAll = typeof document == 'object' && document.all;
|
|
22548
|
-
|
|
22549
|
-
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
22550
|
-
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
22551
|
-
var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
|
|
22552
|
-
|
|
22553
|
-
var documentAll_1 = {
|
|
22554
|
-
all: documentAll,
|
|
22555
|
-
IS_HTMLDDA: IS_HTMLDDA
|
|
22556
|
-
};
|
|
22557
|
-
|
|
22558
|
-
var documentAll$1 = documentAll_1.all;
|
|
22559
|
-
|
|
22560
22543
|
// `IsCallable` abstract operation
|
|
22561
22544
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
22562
|
-
var isCallable =
|
|
22563
|
-
return typeof argument == 'function' || argument === documentAll$1;
|
|
22564
|
-
} : function (argument) {
|
|
22545
|
+
var isCallable = function (argument) {
|
|
22565
22546
|
return typeof argument == 'function';
|
|
22566
22547
|
};
|
|
22567
22548
|
|
|
22568
|
-
var
|
|
22569
|
-
|
|
22570
|
-
var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
|
|
22571
|
-
return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
|
|
22572
|
-
} : function (it) {
|
|
22549
|
+
var isObject = function (it) {
|
|
22573
22550
|
return typeof it == 'object' ? it !== null : isCallable(it);
|
|
22574
22551
|
};
|
|
22575
22552
|
|
|
@@ -22583,7 +22560,7 @@ var getBuiltIn = function (namespace, method) {
|
|
|
22583
22560
|
|
|
22584
22561
|
var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
|
|
22585
22562
|
|
|
22586
|
-
var engineUserAgent =
|
|
22563
|
+
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
|
|
22587
22564
|
|
|
22588
22565
|
var process$1 = global_1.process;
|
|
22589
22566
|
var Deno = global_1.Deno;
|
|
@@ -22610,29 +22587,24 @@ if (!version && engineUserAgent) {
|
|
|
22610
22587
|
|
|
22611
22588
|
var engineV8Version = version;
|
|
22612
22589
|
|
|
22613
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
22614
|
-
|
|
22615
|
-
|
|
22590
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
22616
22591
|
|
|
22617
22592
|
|
|
22618
|
-
var $String = global_1.String;
|
|
22619
22593
|
|
|
22620
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
22621
|
-
var
|
|
22622
|
-
var symbol = Symbol(
|
|
22594
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
|
22595
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
22596
|
+
var symbol = Symbol();
|
|
22623
22597
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
22624
22598
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
22625
|
-
|
|
22626
|
-
// of course, fail.
|
|
22627
|
-
return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
22599
|
+
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
22628
22600
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
22629
22601
|
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
|
22630
22602
|
});
|
|
22631
22603
|
|
|
22632
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
22604
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
22633
22605
|
|
|
22634
22606
|
|
|
22635
|
-
var useSymbolAsUid =
|
|
22607
|
+
var useSymbolAsUid = nativeSymbol
|
|
22636
22608
|
&& !Symbol.sham
|
|
22637
22609
|
&& typeof Symbol.iterator == 'symbol';
|
|
22638
22610
|
|
|
@@ -22645,11 +22617,11 @@ var isSymbol = useSymbolAsUid ? function (it) {
|
|
|
22645
22617
|
return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, $Object$1(it));
|
|
22646
22618
|
};
|
|
22647
22619
|
|
|
22648
|
-
var $String
|
|
22620
|
+
var $String = String;
|
|
22649
22621
|
|
|
22650
22622
|
var tryToString = function (argument) {
|
|
22651
22623
|
try {
|
|
22652
|
-
return $String
|
|
22624
|
+
return $String(argument);
|
|
22653
22625
|
} catch (error) {
|
|
22654
22626
|
return 'Object';
|
|
22655
22627
|
}
|
|
@@ -22660,14 +22632,14 @@ var $TypeError$1 = TypeError;
|
|
|
22660
22632
|
// `Assert: IsCallable(argument) is true`
|
|
22661
22633
|
var aCallable = function (argument) {
|
|
22662
22634
|
if (isCallable(argument)) return argument;
|
|
22663
|
-
throw
|
|
22635
|
+
throw $TypeError$1(tryToString(argument) + ' is not a function');
|
|
22664
22636
|
};
|
|
22665
22637
|
|
|
22666
22638
|
// `GetMethod` abstract operation
|
|
22667
22639
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
22668
22640
|
var getMethod = function (V, P) {
|
|
22669
22641
|
var func = V[P];
|
|
22670
|
-
return
|
|
22642
|
+
return func == null ? undefined : aCallable(func);
|
|
22671
22643
|
};
|
|
22672
22644
|
|
|
22673
22645
|
var $TypeError$2 = TypeError;
|
|
@@ -22679,10 +22651,10 @@ var ordinaryToPrimitive = function (input, pref) {
|
|
|
22679
22651
|
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
|
22680
22652
|
if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
|
|
22681
22653
|
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
|
22682
|
-
throw
|
|
22654
|
+
throw $TypeError$2("Can't convert object to primitive value");
|
|
22683
22655
|
};
|
|
22684
22656
|
|
|
22685
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
22657
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
22686
22658
|
var defineProperty = Object.defineProperty;
|
|
22687
22659
|
|
|
22688
22660
|
var defineGlobalProperty = function (key, value) {
|
|
@@ -22699,16 +22671,13 @@ var store = global_1[SHARED] || defineGlobalProperty(SHARED, {});
|
|
|
22699
22671
|
var sharedStore = store;
|
|
22700
22672
|
|
|
22701
22673
|
var shared = createCommonjsModule(function (module) {
|
|
22702
|
-
|
|
22703
|
-
|
|
22704
|
-
|
|
22705
22674
|
(module.exports = function (key, value) {
|
|
22706
22675
|
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
22707
22676
|
})('versions', []).push({
|
|
22708
|
-
version: '3.
|
|
22677
|
+
version: '3.24.1',
|
|
22709
22678
|
mode: 'global',
|
|
22710
|
-
copyright: '© 2014-
|
|
22711
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
22679
|
+
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
22680
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE',
|
|
22712
22681
|
source: 'https://github.com/zloirock/core-js'
|
|
22713
22682
|
});
|
|
22714
22683
|
});
|
|
@@ -22725,7 +22694,7 @@ var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
|
|
|
22725
22694
|
|
|
22726
22695
|
// `HasOwnProperty` abstract operation
|
|
22727
22696
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
22728
|
-
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
22697
|
+
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
|
22729
22698
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
22730
22699
|
return hasOwnProperty(toObject(it), key);
|
|
22731
22700
|
};
|
|
@@ -22738,15 +22707,21 @@ var uid = function (key) {
|
|
|
22738
22707
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
|
|
22739
22708
|
};
|
|
22740
22709
|
|
|
22741
|
-
var Symbol$1 = global_1.Symbol;
|
|
22742
22710
|
var WellKnownSymbolsStore = shared('wks');
|
|
22743
|
-
var
|
|
22711
|
+
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;
|
|
22744
22714
|
|
|
22745
22715
|
var wellKnownSymbol = function (name) {
|
|
22746
|
-
if (!hasOwnProperty_1(WellKnownSymbolsStore, name)) {
|
|
22747
|
-
|
|
22748
|
-
|
|
22749
|
-
|
|
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
22725
|
} return WellKnownSymbolsStore[name];
|
|
22751
22726
|
};
|
|
22752
22727
|
|
|
@@ -22763,7 +22738,7 @@ var toPrimitive = function (input, pref) {
|
|
|
22763
22738
|
if (pref === undefined) pref = 'default';
|
|
22764
22739
|
result = functionCall(exoticToPrim, input, pref);
|
|
22765
22740
|
if (!isObject(result) || isSymbol(result)) return result;
|
|
22766
|
-
throw
|
|
22741
|
+
throw $TypeError$3("Can't convert object to primitive value");
|
|
22767
22742
|
}
|
|
22768
22743
|
if (pref === undefined) pref = 'number';
|
|
22769
22744
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -22786,13 +22761,13 @@ var documentCreateElement = function (it) {
|
|
|
22786
22761
|
|
|
22787
22762
|
// Thanks to IE8 for its funny defineProperty
|
|
22788
22763
|
var ie8DomDefine = !descriptors && !fails(function () {
|
|
22789
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
22764
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
22790
22765
|
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
|
22791
22766
|
get: function () { return 7; }
|
|
22792
|
-
}).a
|
|
22767
|
+
}).a != 7;
|
|
22793
22768
|
});
|
|
22794
22769
|
|
|
22795
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22770
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
22796
22771
|
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
22797
22772
|
|
|
22798
22773
|
// `Object.getOwnPropertyDescriptor` method
|
|
@@ -22813,26 +22788,26 @@ var objectGetOwnPropertyDescriptor = {
|
|
|
22813
22788
|
// V8 ~ Chrome 36-
|
|
22814
22789
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
22815
22790
|
var v8PrototypeDefineBug = descriptors && fails(function () {
|
|
22816
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
22791
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
22817
22792
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
22818
22793
|
value: 42,
|
|
22819
22794
|
writable: false
|
|
22820
|
-
}).prototype
|
|
22795
|
+
}).prototype != 42;
|
|
22821
22796
|
});
|
|
22822
22797
|
|
|
22823
|
-
var $String$
|
|
22798
|
+
var $String$1 = String;
|
|
22824
22799
|
var $TypeError$4 = TypeError;
|
|
22825
22800
|
|
|
22826
22801
|
// `Assert: Type(argument) is Object`
|
|
22827
22802
|
var anObject = function (argument) {
|
|
22828
22803
|
if (isObject(argument)) return argument;
|
|
22829
|
-
throw
|
|
22804
|
+
throw $TypeError$4($String$1(argument) + ' is not an object');
|
|
22830
22805
|
};
|
|
22831
22806
|
|
|
22832
22807
|
var $TypeError$5 = TypeError;
|
|
22833
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
22808
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
22834
22809
|
var $defineProperty = Object.defineProperty;
|
|
22835
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22810
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
22836
22811
|
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
22837
22812
|
var ENUMERABLE = 'enumerable';
|
|
22838
22813
|
var CONFIGURABLE = 'configurable';
|
|
@@ -22862,7 +22837,7 @@ var f$2 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Att
|
|
|
22862
22837
|
if (ie8DomDefine) try {
|
|
22863
22838
|
return $defineProperty(O, P, Attributes);
|
|
22864
22839
|
} catch (error) { /* empty */ }
|
|
22865
|
-
if ('get' in Attributes || 'set' in Attributes) throw
|
|
22840
|
+
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$5('Accessors not supported');
|
|
22866
22841
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
22867
22842
|
return O;
|
|
22868
22843
|
};
|
|
@@ -22879,7 +22854,7 @@ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
|
|
|
22879
22854
|
};
|
|
22880
22855
|
|
|
22881
22856
|
var FunctionPrototype$1 = Function.prototype;
|
|
22882
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22857
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
22883
22858
|
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
|
22884
22859
|
|
|
22885
22860
|
var EXISTS$1 = hasOwnProperty_1(FunctionPrototype$1, 'name');
|
|
@@ -22906,7 +22881,7 @@ var inspectSource = sharedStore.inspectSource;
|
|
|
22906
22881
|
|
|
22907
22882
|
var WeakMap$1 = global_1.WeakMap;
|
|
22908
22883
|
|
|
22909
|
-
var
|
|
22884
|
+
var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
|
|
22910
22885
|
|
|
22911
22886
|
var keys$1 = shared('keys');
|
|
22912
22887
|
|
|
@@ -22929,29 +22904,27 @@ var getterFor = function (TYPE) {
|
|
|
22929
22904
|
return function (it) {
|
|
22930
22905
|
var state;
|
|
22931
22906
|
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
22932
|
-
throw
|
|
22907
|
+
throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
22933
22908
|
} return state;
|
|
22934
22909
|
};
|
|
22935
22910
|
};
|
|
22936
22911
|
|
|
22937
|
-
if (
|
|
22912
|
+
if (nativeWeakMap || sharedStore.state) {
|
|
22938
22913
|
var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$2());
|
|
22939
|
-
|
|
22940
|
-
|
|
22941
|
-
|
|
22942
|
-
store$1.set = store$1.set;
|
|
22943
|
-
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
22914
|
+
var wmget = functionUncurryThis(store$1.get);
|
|
22915
|
+
var wmhas = functionUncurryThis(store$1.has);
|
|
22916
|
+
var wmset = functionUncurryThis(store$1.set);
|
|
22944
22917
|
set = function (it, metadata) {
|
|
22945
|
-
if (store$1
|
|
22918
|
+
if (wmhas(store$1, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
22946
22919
|
metadata.facade = it;
|
|
22947
|
-
store$1
|
|
22920
|
+
wmset(store$1, it, metadata);
|
|
22948
22921
|
return metadata;
|
|
22949
22922
|
};
|
|
22950
22923
|
get = function (it) {
|
|
22951
|
-
return store$1
|
|
22924
|
+
return wmget(store$1, it) || {};
|
|
22952
22925
|
};
|
|
22953
22926
|
has = function (it) {
|
|
22954
|
-
return store$1
|
|
22927
|
+
return wmhas(store$1, it);
|
|
22955
22928
|
};
|
|
22956
22929
|
} else {
|
|
22957
22930
|
var STATE = sharedKey('state');
|
|
@@ -22979,23 +22952,14 @@ var internalState = {
|
|
|
22979
22952
|
};
|
|
22980
22953
|
|
|
22981
22954
|
var makeBuiltIn_1 = createCommonjsModule(function (module) {
|
|
22982
|
-
|
|
22983
|
-
|
|
22984
|
-
|
|
22985
|
-
|
|
22986
|
-
|
|
22987
22955
|
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
22988
22956
|
|
|
22989
22957
|
|
|
22990
22958
|
|
|
22991
22959
|
var enforceInternalState = internalState.enforce;
|
|
22992
22960
|
var getInternalState = internalState.get;
|
|
22993
|
-
|
|
22994
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
22961
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
22995
22962
|
var defineProperty = Object.defineProperty;
|
|
22996
|
-
var stringSlice = functionUncurryThis(''.slice);
|
|
22997
|
-
var replace = functionUncurryThis(''.replace);
|
|
22998
|
-
var join = functionUncurryThis([].join);
|
|
22999
22963
|
|
|
23000
22964
|
var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
|
|
23001
22965
|
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
@@ -23004,8 +22968,8 @@ var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
|
|
|
23004
22968
|
var TEMPLATE = String(String).split('String');
|
|
23005
22969
|
|
|
23006
22970
|
var makeBuiltIn = module.exports = function (value, name, options) {
|
|
23007
|
-
if (
|
|
23008
|
-
name = '[' +
|
|
22971
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
22972
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
23009
22973
|
}
|
|
23010
22974
|
if (options && options.getter) name = 'get ' + name;
|
|
23011
22975
|
if (options && options.setter) name = 'set ' + name;
|
|
@@ -23024,7 +22988,7 @@ var makeBuiltIn = module.exports = function (value, name, options) {
|
|
|
23024
22988
|
} catch (error) { /* empty */ }
|
|
23025
22989
|
var state = enforceInternalState(value);
|
|
23026
22990
|
if (!hasOwnProperty_1(state, 'source')) {
|
|
23027
|
-
state.source = join(
|
|
22991
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
23028
22992
|
} return value;
|
|
23029
22993
|
};
|
|
23030
22994
|
|
|
@@ -23063,7 +23027,7 @@ var floor = Math.floor;
|
|
|
23063
23027
|
|
|
23064
23028
|
// `Math.trunc` method
|
|
23065
23029
|
// https://tc39.es/ecma262/#sec-math.trunc
|
|
23066
|
-
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
23030
|
+
// eslint-disable-next-line es-x/no-math-trunc -- safe
|
|
23067
23031
|
var mathTrunc = Math.trunc || function trunc(x) {
|
|
23068
23032
|
var n = +x;
|
|
23069
23033
|
return (n > 0 ? floor : ceil)(n);
|
|
@@ -23111,10 +23075,10 @@ var createMethod = function (IS_INCLUDES) {
|
|
|
23111
23075
|
var value;
|
|
23112
23076
|
// Array#includes uses SameValueZero equality algorithm
|
|
23113
23077
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
23114
|
-
if (IS_INCLUDES && el
|
|
23078
|
+
if (IS_INCLUDES && el != el) while (length > index) {
|
|
23115
23079
|
value = O[index++];
|
|
23116
23080
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
23117
|
-
if (value
|
|
23081
|
+
if (value != value) return true;
|
|
23118
23082
|
// Array#indexOf ignores holes, Array#includes - not
|
|
23119
23083
|
} else for (;length > index; index++) {
|
|
23120
23084
|
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
@@ -23164,7 +23128,7 @@ var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
|
|
|
23164
23128
|
|
|
23165
23129
|
// `Object.getOwnPropertyNames` method
|
|
23166
23130
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
23167
|
-
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
23131
|
+
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
|
23168
23132
|
var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
23169
23133
|
return objectKeysInternal(O, hiddenKeys$1);
|
|
23170
23134
|
};
|
|
@@ -23173,7 +23137,7 @@ var objectGetOwnPropertyNames = {
|
|
|
23173
23137
|
f: f$3
|
|
23174
23138
|
};
|
|
23175
23139
|
|
|
23176
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
23140
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
|
23177
23141
|
var f$4 = Object.getOwnPropertySymbols;
|
|
23178
23142
|
|
|
23179
23143
|
var objectGetOwnPropertySymbols = {
|
|
@@ -23205,8 +23169,8 @@ var replacement = /#|\.prototype\./;
|
|
|
23205
23169
|
|
|
23206
23170
|
var isForced = function (feature, detection) {
|
|
23207
23171
|
var value = data[normalize(feature)];
|
|
23208
|
-
return value
|
|
23209
|
-
: value
|
|
23172
|
+
return value == POLYFILL ? true
|
|
23173
|
+
: value == NATIVE ? false
|
|
23210
23174
|
: isCallable(detection) ? fails(detection)
|
|
23211
23175
|
: !!detection;
|
|
23212
23176
|
};
|
|
@@ -23286,7 +23250,7 @@ var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
|
|
|
23286
23250
|
var $Object$3 = Object;
|
|
23287
23251
|
|
|
23288
23252
|
// ES3 wrong here
|
|
23289
|
-
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }())
|
|
23253
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
23290
23254
|
|
|
23291
23255
|
// fallback for IE11 Script Access Denied error
|
|
23292
23256
|
var tryGet = function (it, key) {
|
|
@@ -23304,25 +23268,25 @@ var classof = toStringTagSupport ? classofRaw : function (it) {
|
|
|
23304
23268
|
// builtinTag case
|
|
23305
23269
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
23306
23270
|
// ES3 arguments fallback
|
|
23307
|
-
: (result = classofRaw(O))
|
|
23271
|
+
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
23308
23272
|
};
|
|
23309
23273
|
|
|
23310
|
-
var $String$
|
|
23274
|
+
var $String$2 = String;
|
|
23311
23275
|
|
|
23312
23276
|
var toString_1 = function (argument) {
|
|
23313
|
-
if (classof(argument) === 'Symbol') throw
|
|
23314
|
-
return $String$
|
|
23277
|
+
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
23278
|
+
return $String$2(argument);
|
|
23315
23279
|
};
|
|
23316
23280
|
|
|
23317
23281
|
var charAt = functionUncurryThis(''.charAt);
|
|
23318
23282
|
|
|
23319
23283
|
var FORCED = fails(function () {
|
|
23320
|
-
// eslint-disable-next-line es/no-array-string-prototype-at -- safe
|
|
23284
|
+
// eslint-disable-next-line es-x/no-array-string-prototype-at -- safe
|
|
23321
23285
|
return '𠮷'.at(-2) !== '\uD842';
|
|
23322
23286
|
});
|
|
23323
23287
|
|
|
23324
23288
|
// `String.prototype.at` method
|
|
23325
|
-
// https://
|
|
23289
|
+
// https://github.com/tc39/proposal-relative-indexing-method
|
|
23326
23290
|
_export({ target: 'String', proto: true, forced: FORCED }, {
|
|
23327
23291
|
at: function at(index) {
|
|
23328
23292
|
var S = toString_1(requireObjectCoercible(this));
|
|
@@ -23335,14 +23299,14 @@ _export({ target: 'String', proto: true, forced: FORCED }, {
|
|
|
23335
23299
|
|
|
23336
23300
|
// `Object.keys` method
|
|
23337
23301
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
23338
|
-
// eslint-disable-next-line es/no-object-keys -- safe
|
|
23302
|
+
// eslint-disable-next-line es-x/no-object-keys -- safe
|
|
23339
23303
|
var objectKeys = Object.keys || function keys(O) {
|
|
23340
23304
|
return objectKeysInternal(O, enumBugKeys);
|
|
23341
23305
|
};
|
|
23342
23306
|
|
|
23343
23307
|
// `Object.defineProperties` method
|
|
23344
23308
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
23345
|
-
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
23309
|
+
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
|
23346
23310
|
var f$5 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
23347
23311
|
anObject(O);
|
|
23348
23312
|
var props = toIndexedObject(Properties);
|
|
@@ -23431,7 +23395,7 @@ hiddenKeys[IE_PROTO] = true;
|
|
|
23431
23395
|
|
|
23432
23396
|
// `Object.create` method
|
|
23433
23397
|
// https://tc39.es/ecma262/#sec-object.create
|
|
23434
|
-
// eslint-disable-next-line es/no-object-create -- safe
|
|
23398
|
+
// eslint-disable-next-line es-x/no-object-create -- safe
|
|
23435
23399
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
23436
23400
|
var result;
|
|
23437
23401
|
if (O !== null) {
|
|
@@ -23451,7 +23415,7 @@ var ArrayPrototype = Array.prototype;
|
|
|
23451
23415
|
|
|
23452
23416
|
// Array.prototype[@@unscopables]
|
|
23453
23417
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
23454
|
-
if (ArrayPrototype[UNSCOPABLES]
|
|
23418
|
+
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
23455
23419
|
defineProperty$1(ArrayPrototype, UNSCOPABLES, {
|
|
23456
23420
|
configurable: true,
|
|
23457
23421
|
value: objectCreate(null)
|
|
@@ -23464,7 +23428,7 @@ var addToUnscopables = function (key) {
|
|
|
23464
23428
|
};
|
|
23465
23429
|
|
|
23466
23430
|
// `Array.prototype.at` method
|
|
23467
|
-
// https://
|
|
23431
|
+
// https://github.com/tc39/proposal-relative-indexing-method
|
|
23468
23432
|
_export({ target: 'Array', proto: true }, {
|
|
23469
23433
|
at: function at(index) {
|
|
23470
23434
|
var O = toObject(this);
|
|
@@ -23477,19 +23441,13 @@ _export({ target: 'Array', proto: true }, {
|
|
|
23477
23441
|
|
|
23478
23442
|
addToUnscopables('at');
|
|
23479
23443
|
|
|
23480
|
-
// eslint-disable-next-line es/no-typed-arrays -- safe
|
|
23481
|
-
var
|
|
23482
|
-
|
|
23483
|
-
var defineBuiltInAccessor = function (target, name, descriptor) {
|
|
23484
|
-
if (descriptor.get) makeBuiltIn_1(descriptor.get, name, { getter: true });
|
|
23485
|
-
if (descriptor.set) makeBuiltIn_1(descriptor.set, name, { setter: true });
|
|
23486
|
-
return objectDefineProperty.f(target, name, descriptor);
|
|
23487
|
-
};
|
|
23444
|
+
// eslint-disable-next-line es-x/no-typed-arrays -- safe
|
|
23445
|
+
var arrayBufferNative = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
|
|
23488
23446
|
|
|
23489
23447
|
var correctPrototypeGetter = !fails(function () {
|
|
23490
23448
|
function F() { /* empty */ }
|
|
23491
23449
|
F.prototype.constructor = null;
|
|
23492
|
-
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
23450
|
+
// eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
|
|
23493
23451
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
23494
23452
|
});
|
|
23495
23453
|
|
|
@@ -23499,7 +23457,7 @@ var ObjectPrototype = $Object$4.prototype;
|
|
|
23499
23457
|
|
|
23500
23458
|
// `Object.getPrototypeOf` method
|
|
23501
23459
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
23502
|
-
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
23460
|
+
// eslint-disable-next-line es-x/no-object-getprototypeof -- safe
|
|
23503
23461
|
var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : function (O) {
|
|
23504
23462
|
var object = toObject(O);
|
|
23505
23463
|
if (hasOwnProperty_1(object, IE_PROTO$1)) return object[IE_PROTO$1];
|
|
@@ -23509,19 +23467,12 @@ var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : f
|
|
|
23509
23467
|
} return object instanceof $Object$4 ? ObjectPrototype : null;
|
|
23510
23468
|
};
|
|
23511
23469
|
|
|
23512
|
-
var
|
|
23513
|
-
try {
|
|
23514
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
23515
|
-
return functionUncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
23516
|
-
} catch (error) { /* empty */ }
|
|
23517
|
-
};
|
|
23518
|
-
|
|
23519
|
-
var $String$4 = String;
|
|
23470
|
+
var $String$3 = String;
|
|
23520
23471
|
var $TypeError$6 = TypeError;
|
|
23521
23472
|
|
|
23522
23473
|
var aPossiblePrototype = function (argument) {
|
|
23523
23474
|
if (typeof argument == 'object' || isCallable(argument)) return argument;
|
|
23524
|
-
throw
|
|
23475
|
+
throw $TypeError$6("Can't set " + $String$3(argument) + ' as a prototype');
|
|
23525
23476
|
};
|
|
23526
23477
|
|
|
23527
23478
|
/* eslint-disable no-proto -- safe */
|
|
@@ -23532,13 +23483,14 @@ var aPossiblePrototype = function (argument) {
|
|
|
23532
23483
|
// `Object.setPrototypeOf` method
|
|
23533
23484
|
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
23534
23485
|
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
23535
|
-
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
23486
|
+
// eslint-disable-next-line es-x/no-object-setprototypeof -- safe
|
|
23536
23487
|
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
23537
23488
|
var CORRECT_SETTER = false;
|
|
23538
23489
|
var test = {};
|
|
23539
23490
|
var setter;
|
|
23540
23491
|
try {
|
|
23541
|
-
|
|
23492
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
23493
|
+
setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
23542
23494
|
setter(test, []);
|
|
23543
23495
|
CORRECT_SETTER = test instanceof Array;
|
|
23544
23496
|
} catch (error) { /* empty */ }
|
|
@@ -23551,6 +23503,14 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
23551
23503
|
};
|
|
23552
23504
|
}() : undefined);
|
|
23553
23505
|
|
|
23506
|
+
var defineProperty$2 = objectDefineProperty.f;
|
|
23507
|
+
|
|
23508
|
+
|
|
23509
|
+
|
|
23510
|
+
|
|
23511
|
+
|
|
23512
|
+
|
|
23513
|
+
|
|
23554
23514
|
var enforceInternalState = internalState.enforce;
|
|
23555
23515
|
var getInternalState = internalState.get;
|
|
23556
23516
|
var Int8Array = global_1.Int8Array;
|
|
@@ -23566,7 +23526,7 @@ var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
|
|
|
23566
23526
|
var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
|
|
23567
23527
|
var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
|
|
23568
23528
|
// Fixing native typed arrays in Opera Presto crashes the browser, see #595
|
|
23569
|
-
var NATIVE_ARRAY_BUFFER_VIEWS =
|
|
23529
|
+
var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferNative && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
|
|
23570
23530
|
var TYPED_ARRAY_TAG_REQUIRED = false;
|
|
23571
23531
|
var NAME, Constructor, Prototype;
|
|
23572
23532
|
|
|
@@ -23611,12 +23571,12 @@ var isTypedArray = function (it) {
|
|
|
23611
23571
|
|
|
23612
23572
|
var aTypedArray = function (it) {
|
|
23613
23573
|
if (isTypedArray(it)) return it;
|
|
23614
|
-
throw
|
|
23574
|
+
throw TypeError$2('Target is not a typed array');
|
|
23615
23575
|
};
|
|
23616
23576
|
|
|
23617
23577
|
var aTypedArrayConstructor = function (C) {
|
|
23618
23578
|
if (isCallable(C) && (!objectSetPrototypeOf || objectIsPrototypeOf(TypedArray, C))) return C;
|
|
23619
|
-
throw
|
|
23579
|
+
throw TypeError$2(tryToString(C) + ' is not a typed array constructor');
|
|
23620
23580
|
};
|
|
23621
23581
|
|
|
23622
23582
|
var exportTypedArrayMethod = function (KEY, property, forced, options) {
|
|
@@ -23680,7 +23640,7 @@ for (NAME in BigIntArrayConstructorsList) {
|
|
|
23680
23640
|
if (!NATIVE_ARRAY_BUFFER_VIEWS || !isCallable(TypedArray) || TypedArray === Function.prototype) {
|
|
23681
23641
|
// eslint-disable-next-line no-shadow -- safe
|
|
23682
23642
|
TypedArray = function TypedArray() {
|
|
23683
|
-
throw
|
|
23643
|
+
throw TypeError$2('Incorrect invocation');
|
|
23684
23644
|
};
|
|
23685
23645
|
if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {
|
|
23686
23646
|
if (global_1[NAME]) objectSetPrototypeOf(global_1[NAME], TypedArray);
|
|
@@ -23701,12 +23661,9 @@ if (NATIVE_ARRAY_BUFFER_VIEWS && objectGetPrototypeOf(Uint8ClampedArrayPrototype
|
|
|
23701
23661
|
|
|
23702
23662
|
if (descriptors && !hasOwnProperty_1(TypedArrayPrototype, TO_STRING_TAG$2)) {
|
|
23703
23663
|
TYPED_ARRAY_TAG_REQUIRED = true;
|
|
23704
|
-
|
|
23705
|
-
|
|
23706
|
-
|
|
23707
|
-
return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
|
|
23708
|
-
}
|
|
23709
|
-
});
|
|
23664
|
+
defineProperty$2(TypedArrayPrototype, TO_STRING_TAG$2, { get: function () {
|
|
23665
|
+
return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
|
|
23666
|
+
} });
|
|
23710
23667
|
for (NAME in TypedArrayConstructorsList) if (global_1[NAME]) {
|
|
23711
23668
|
createNonEnumerableProperty(global_1[NAME], TYPED_ARRAY_TAG, NAME);
|
|
23712
23669
|
}
|
|
@@ -23730,7 +23687,7 @@ var aTypedArray$1 = arrayBufferViewCore.aTypedArray;
|
|
|
23730
23687
|
var exportTypedArrayMethod$1 = arrayBufferViewCore.exportTypedArrayMethod;
|
|
23731
23688
|
|
|
23732
23689
|
// `%TypedArray%.prototype.at` method
|
|
23733
|
-
// https://
|
|
23690
|
+
// https://github.com/tc39/proposal-relative-indexing-method
|
|
23734
23691
|
exportTypedArrayMethod$1('at', function at(index) {
|
|
23735
23692
|
var O = aTypedArray$1(this);
|
|
23736
23693
|
var len = lengthOfArrayLike(O);
|
|
@@ -23811,7 +23768,9 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
23811
23768
|
_ref8$smoothScroll = _ref8.smoothScroll,
|
|
23812
23769
|
smoothScroll = _ref8$smoothScroll === void 0 ? true : _ref8$smoothScroll,
|
|
23813
23770
|
_ref8$ariaInvalid = _ref8.ariaInvalid,
|
|
23814
|
-
ariaInvalid = _ref8$ariaInvalid === void 0 ? false : _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;
|
|
23815
23774
|
|
|
23816
23775
|
var _useState = React.useState(""),
|
|
23817
23776
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -24082,7 +24041,7 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
24082
24041
|
},
|
|
24083
24042
|
padding: "12px",
|
|
24084
24043
|
placeholder: getSelection(),
|
|
24085
|
-
required: options.required,
|
|
24044
|
+
required: options.required || isRequired,
|
|
24086
24045
|
role: "combobox",
|
|
24087
24046
|
themeValues: themeValues,
|
|
24088
24047
|
title: hasTitles ? getSelection() : null,
|
|
@@ -24246,7 +24205,9 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24246
24205
|
_ref$dataQa = _ref.dataQa,
|
|
24247
24206
|
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
|
|
24248
24207
|
_ref$widthFitOptions = _ref.widthFitOptions,
|
|
24249
|
-
widthFitOptions = _ref$widthFitOptions === void 0 ? false : _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;
|
|
24250
24211
|
|
|
24251
24212
|
var _useState = React.useState(false),
|
|
24252
24213
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -24308,7 +24269,8 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24308
24269
|
},
|
|
24309
24270
|
disabled: disabled,
|
|
24310
24271
|
autocompleteValue: autocompleteValue,
|
|
24311
|
-
smoothScroll: smoothScroll
|
|
24272
|
+
smoothScroll: smoothScroll,
|
|
24273
|
+
required: isRequired
|
|
24312
24274
|
}), /*#__PURE__*/React__default.createElement(Stack, {
|
|
24313
24275
|
direction: "row",
|
|
24314
24276
|
justify: "space-between"
|
|
@@ -25078,7 +25040,9 @@ var CountryDropdown = function CountryDropdown(_ref) {
|
|
|
25078
25040
|
showErrors = _ref.showErrors,
|
|
25079
25041
|
onChange = _ref.onChange,
|
|
25080
25042
|
_ref$dataQa = _ref.dataQa,
|
|
25081
|
-
dataQa = _ref$dataQa === void 0 ? null : _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;
|
|
25082
25046
|
return /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
25083
25047
|
options: options,
|
|
25084
25048
|
field: field,
|
|
@@ -25088,7 +25052,8 @@ var CountryDropdown = function CountryDropdown(_ref) {
|
|
|
25088
25052
|
errorMessages: errorMessages,
|
|
25089
25053
|
showErrors: showErrors,
|
|
25090
25054
|
onChange: onChange,
|
|
25091
|
-
autocompleteValue: "country-name"
|
|
25055
|
+
autocompleteValue: "country-name",
|
|
25056
|
+
isRequired: isRequired
|
|
25092
25057
|
});
|
|
25093
25058
|
};
|
|
25094
25059
|
|
|
@@ -25933,7 +25898,7 @@ var fallbackValues$k = {
|
|
|
25933
25898
|
};
|
|
25934
25899
|
|
|
25935
25900
|
var _excluded$p = ["showErrors", "themeValues"],
|
|
25936
|
-
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa"];
|
|
25901
|
+
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired"];
|
|
25937
25902
|
var InputField = styled__default.input.withConfig({
|
|
25938
25903
|
displayName: "FormInput__InputField",
|
|
25939
25904
|
componentId: "sc-l094r1-0"
|
|
@@ -26020,6 +25985,8 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26020
25985
|
removeFromValue = _ref15.removeFromValue,
|
|
26021
25986
|
_ref15$dataQa = _ref15.dataQa,
|
|
26022
25987
|
dataQa = _ref15$dataQa === void 0 ? null : _ref15$dataQa,
|
|
25988
|
+
_ref15$isRequired = _ref15.isRequired,
|
|
25989
|
+
isRequired = _ref15$isRequired === void 0 ? false : _ref15$isRequired,
|
|
26023
25990
|
props = _objectWithoutProperties(_ref15, _excluded2);
|
|
26024
25991
|
|
|
26025
25992
|
var _useState = React.useState(false),
|
|
@@ -26106,7 +26073,8 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26106
26073
|
$customHeight: customHeight,
|
|
26107
26074
|
$extraStyles: extraStyles,
|
|
26108
26075
|
"data-qa": dataQa || labelTextWhenNoError,
|
|
26109
|
-
autoComplete: autocompleteValue
|
|
26076
|
+
autoComplete: autocompleteValue,
|
|
26077
|
+
required: isRequired
|
|
26110
26078
|
}, props)) : /*#__PURE__*/React__default.createElement(InputField, _extends({
|
|
26111
26079
|
"aria-labelledby": createIdFromString(labelTextWhenNoError),
|
|
26112
26080
|
"aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
|
|
@@ -26125,7 +26093,8 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26125
26093
|
$customHeight: customHeight,
|
|
26126
26094
|
$extraStyles: extraStyles,
|
|
26127
26095
|
"data-qa": dataQa || labelTextWhenNoError,
|
|
26128
|
-
autoComplete: autocompleteValue
|
|
26096
|
+
autoComplete: autocompleteValue,
|
|
26097
|
+
required: isRequired
|
|
26129
26098
|
}, props))), /*#__PURE__*/React__default.createElement(Stack, {
|
|
26130
26099
|
direction: "row",
|
|
26131
26100
|
justify: "space-between",
|
|
@@ -27307,7 +27276,9 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
27307
27276
|
_ref2$ariaLabelledBy = _ref2.ariaLabelledBy,
|
|
27308
27277
|
ariaLabelledBy = _ref2$ariaLabelledBy === void 0 ? "" : _ref2$ariaLabelledBy,
|
|
27309
27278
|
_ref2$ariaLabel = _ref2.ariaLabel,
|
|
27310
|
-
ariaLabel = _ref2$ariaLabel === void 0 ? null : _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;
|
|
27311
27282
|
var buttonBorder = {
|
|
27312
27283
|
onFocused: {
|
|
27313
27284
|
borderColor: themeValues.activeColor,
|
|
@@ -27369,7 +27340,8 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
27369
27340
|
disabled: disabled,
|
|
27370
27341
|
onClick: toggleRadio,
|
|
27371
27342
|
"aria-describedby": ariaDescribedBy,
|
|
27372
|
-
tabIndex: "-1"
|
|
27343
|
+
tabIndex: "-1",
|
|
27344
|
+
required: required
|
|
27373
27345
|
}, extraProps)), /*#__PURE__*/React__default.createElement(Motion, {
|
|
27374
27346
|
borderWidth: "1px",
|
|
27375
27347
|
borderStyle: "solid",
|
|
@@ -38059,7 +38031,9 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
38059
38031
|
field = _ref.field,
|
|
38060
38032
|
fieldActions = _ref.fieldActions,
|
|
38061
38033
|
showErrors = _ref.showErrors,
|
|
38062
|
-
countryCode = _ref.countryCode
|
|
38034
|
+
countryCode = _ref.countryCode,
|
|
38035
|
+
_ref$isRequired = _ref.isRequired,
|
|
38036
|
+
isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
|
|
38063
38037
|
var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
|
|
38064
38038
|
var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
|
|
38065
38039
|
return /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
@@ -38069,7 +38043,8 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
38069
38043
|
labelTextWhenNoError: labelTextWhenNoError,
|
|
38070
38044
|
errorMessages: errorMessages,
|
|
38071
38045
|
showErrors: showErrors,
|
|
38072
|
-
autocompleteValue: "address-level1"
|
|
38046
|
+
autocompleteValue: "address-level1",
|
|
38047
|
+
isRequired: isRequired
|
|
38073
38048
|
});
|
|
38074
38049
|
};
|
|
38075
38050
|
|
|
@@ -39350,6 +39325,14 @@ const createFormState = (formConfig) => ({
|
|
|
39350
39325
|
mapStateToProps: mapStateToProps,
|
|
39351
39326
|
});
|
|
39352
39327
|
|
|
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
|
+
|
|
39353
39336
|
var AddressForm = function AddressForm(_ref) {
|
|
39354
39337
|
var _zipErrorMessages;
|
|
39355
39338
|
|
|
@@ -39408,7 +39391,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39408
39391
|
}
|
|
39409
39392
|
},
|
|
39410
39393
|
showErrors: showErrors,
|
|
39411
|
-
dataQa: "Country"
|
|
39394
|
+
dataQa: "Country",
|
|
39395
|
+
isRequired: getIsRequiredFromValidators(React.useCallback)(fields.city)
|
|
39412
39396
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
39413
39397
|
labelTextWhenNoError: "Address",
|
|
39414
39398
|
errorMessages: street1ErrorMessages,
|
|
@@ -39419,7 +39403,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39419
39403
|
return e.key === "Enter" && handleSubmit(e);
|
|
39420
39404
|
},
|
|
39421
39405
|
autocompleteValue: "address-line1",
|
|
39422
|
-
dataQa: "Address"
|
|
39406
|
+
dataQa: "Address",
|
|
39407
|
+
isRequired: getIsRequiredFromValidators(React.useCallback)(fields.street1)
|
|
39423
39408
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
39424
39409
|
labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
|
|
39425
39410
|
field: fields.street2,
|
|
@@ -39429,7 +39414,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39429
39414
|
return e.key === "Enter" && handleSubmit(e);
|
|
39430
39415
|
},
|
|
39431
39416
|
autocompleteValue: "address-line2",
|
|
39432
|
-
dataQa: "Address Line 2"
|
|
39417
|
+
dataQa: "Address Line 2",
|
|
39418
|
+
isRequired: getIsRequiredFromValidators(React.useCallback)(fields.street2)
|
|
39433
39419
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
39434
39420
|
labelTextWhenNoError: "City",
|
|
39435
39421
|
errorMessages: cityErrorMessages,
|
|
@@ -39440,7 +39426,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39440
39426
|
return e.key === "Enter" && handleSubmit(e);
|
|
39441
39427
|
},
|
|
39442
39428
|
autocompleteValue: "address-level2",
|
|
39443
|
-
dataQa: "City"
|
|
39429
|
+
dataQa: "City",
|
|
39430
|
+
isRequired: getIsRequiredFromValidators(React.useCallback)(fields.city)
|
|
39444
39431
|
}), /*#__PURE__*/React__default.createElement(FormStateDropdown, {
|
|
39445
39432
|
labelTextWhenNoError: isUS ? "State" : "State or Province",
|
|
39446
39433
|
errorMessages: stateProvinceErrorMessages,
|
|
@@ -39451,7 +39438,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39451
39438
|
onKeyDown: function onKeyDown(e) {
|
|
39452
39439
|
return e.key === "Enter" && handleSubmit(e);
|
|
39453
39440
|
},
|
|
39454
|
-
dataQa: "State or Province"
|
|
39441
|
+
dataQa: "State or Province",
|
|
39442
|
+
isRequired: getIsRequiredFromValidators(React.useCallback)(fields.stateProvince)
|
|
39455
39443
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
39456
39444
|
isNum: isUS,
|
|
39457
39445
|
formatter: isUS ? zipFormat : null,
|
|
@@ -39464,7 +39452,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39464
39452
|
return e.key === "Enter" && handleSubmit(e);
|
|
39465
39453
|
},
|
|
39466
39454
|
autocompleteValue: "postal-code",
|
|
39467
|
-
dataQa: "Zip code"
|
|
39455
|
+
dataQa: "Zip code",
|
|
39456
|
+
isRequired: getIsRequiredFromValidators(React.useCallback)(fields.zip)
|
|
39468
39457
|
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
39469
39458
|
name: "address checkbox",
|
|
39470
39459
|
title: "Save address to wallet",
|
|
@@ -47902,7 +47891,7 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
|
47902
47891
|
};
|
|
47903
47892
|
|
|
47904
47893
|
var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
47905
|
-
var _routingNumberErrors, _accountNumberErrors;
|
|
47894
|
+
var _routingNumberErrors, _confirmRoutingNumber, _accountNumberErrors, _confirmAccountNumber;
|
|
47906
47895
|
|
|
47907
47896
|
var _ref$variant = _ref.variant,
|
|
47908
47897
|
variant = _ref$variant === void 0 ? "default" : _ref$variant,
|
|
@@ -47945,12 +47934,9 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47945
47934
|
var nameErrors = _defineProperty({}, required.error, "Name is required");
|
|
47946
47935
|
|
|
47947
47936
|
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);
|
|
47948
|
-
|
|
47949
|
-
var confirmRoutingNumberErrors = _defineProperty({}, matchesField.error, "Confirm routing number field must match routing number");
|
|
47950
|
-
|
|
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);
|
|
47951
47938
|
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);
|
|
47952
|
-
|
|
47953
|
-
var confirmAccountNumberErrors = _defineProperty({}, matchesField.error, "Confirm account number field must match account number");
|
|
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);
|
|
47954
47940
|
|
|
47955
47941
|
var accountTypeErrors = _defineProperty({}, required.error, "Account type is required");
|
|
47956
47942
|
|
|
@@ -47968,7 +47954,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47968
47954
|
onKeyDown: function onKeyDown(e) {
|
|
47969
47955
|
return e.key === "Enter" && handleSubmit(e);
|
|
47970
47956
|
},
|
|
47971
|
-
autocompleteValue: "name"
|
|
47957
|
+
autocompleteValue: "name",
|
|
47958
|
+
isRequired: getIsRequiredFromValidators(React.useCallback)(fields.name)
|
|
47972
47959
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
47973
47960
|
labelTextWhenNoError: "Routing number",
|
|
47974
47961
|
dataQa: "Routing number",
|
|
@@ -47976,6 +47963,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47976
47963
|
field: fields.routingNumber,
|
|
47977
47964
|
fieldActions: actions.fields.routingNumber,
|
|
47978
47965
|
showErrors: showErrors,
|
|
47966
|
+
isRequired: getIsRequiredFromValidators(React.useCallback)(fields.routingNumber),
|
|
47979
47967
|
isNum: true,
|
|
47980
47968
|
helperModal: function helperModal() {
|
|
47981
47969
|
return /*#__PURE__*/React__default.createElement(AccountAndRoutingModal$1, {
|
|
@@ -48001,6 +47989,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48001
47989
|
onKeyDown: function onKeyDown(e) {
|
|
48002
47990
|
return e.key === "Enter" && handleSubmit(e);
|
|
48003
47991
|
},
|
|
47992
|
+
isRequired: getIsRequiredFromValidators(React.useCallback)(fields.confirmRoutingNumber),
|
|
48004
47993
|
isNum: true
|
|
48005
47994
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48006
47995
|
labelTextWhenNoError: "Account number",
|
|
@@ -48009,6 +47998,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48009
47998
|
field: fields.accountNumber,
|
|
48010
47999
|
fieldActions: actions.fields.accountNumber,
|
|
48011
48000
|
showErrors: showErrors,
|
|
48001
|
+
isRequired: getIsRequiredFromValidators(React.useCallback)(fields.accountNumber),
|
|
48012
48002
|
isNum: true,
|
|
48013
48003
|
helperModal: function helperModal() {
|
|
48014
48004
|
return /*#__PURE__*/React__default.createElement(AccountAndRoutingModal$1, {
|
|
@@ -48034,6 +48024,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48034
48024
|
onKeyDown: function onKeyDown(e) {
|
|
48035
48025
|
return e.key === "Enter" && handleSubmit(e);
|
|
48036
48026
|
},
|
|
48027
|
+
isRequired: getIsRequiredFromValidators(React.useCallback)(fields.confirmAccountNumber),
|
|
48037
48028
|
isNum: true
|
|
48038
48029
|
}), allowBankAccountType && /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
48039
48030
|
labelTextWhenNoError: "Account type",
|
|
@@ -48051,7 +48042,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48051
48042
|
fieldActions: actions.fields.accountType,
|
|
48052
48043
|
showErrors: showErrors,
|
|
48053
48044
|
errorMessages: accountTypeErrors,
|
|
48054
|
-
field: fields.accountType
|
|
48045
|
+
field: fields.accountType,
|
|
48046
|
+
isRequired: getIsRequiredFromValidators(React.useCallback)(fields.accountType)
|
|
48055
48047
|
}), !hideDefaultPayment && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48056
48048
|
title: "Save as Default Payment Method",
|
|
48057
48049
|
dataQa: "default-payment-ach",
|
|
@@ -48087,7 +48079,7 @@ var formConfig$6 = {
|
|
|
48087
48079
|
constraints: [onlyIntegers(), hasLength(0, 9)]
|
|
48088
48080
|
},
|
|
48089
48081
|
confirmRoutingNumber: {
|
|
48090
|
-
validators: [matchesField("routingNumber")],
|
|
48082
|
+
validators: [matchesField("routingNumber"), required()],
|
|
48091
48083
|
constraints: [onlyIntegers(), hasLength(0, 9)]
|
|
48092
48084
|
},
|
|
48093
48085
|
accountNumber: {
|
|
@@ -48095,7 +48087,7 @@ var formConfig$6 = {
|
|
|
48095
48087
|
constraints: [onlyIntegers(), hasLength(0, 17)]
|
|
48096
48088
|
},
|
|
48097
48089
|
confirmAccountNumber: {
|
|
48098
|
-
validators: [matchesField("accountNumber")],
|
|
48090
|
+
validators: [matchesField("accountNumber"), required()],
|
|
48099
48091
|
constraints: [onlyIntegers(), hasLength(0, 17)]
|
|
48100
48092
|
},
|
|
48101
48093
|
accountType: {
|
|
@@ -48178,7 +48170,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48178
48170
|
}
|
|
48179
48171
|
},
|
|
48180
48172
|
showErrors: showErrors,
|
|
48181
|
-
dataQa: "Country"
|
|
48173
|
+
dataQa: "Country",
|
|
48174
|
+
isRequired: getIsRequiredFromValidators(React.useCallback)(fields.country)
|
|
48182
48175
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48183
48176
|
labelTextWhenNoError: "Name on card",
|
|
48184
48177
|
dataQa: "Name on card",
|
|
@@ -48189,7 +48182,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48189
48182
|
onKeyDown: function onKeyDown(e) {
|
|
48190
48183
|
return e.key === "Enter" && handleSubmit(e);
|
|
48191
48184
|
},
|
|
48192
|
-
autocompleteValue: "cc-name"
|
|
48185
|
+
autocompleteValue: "cc-name",
|
|
48186
|
+
isRequired: getIsRequiredFromValidators(React.useCallback)(fields.nameOnCard)
|
|
48193
48187
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48194
48188
|
labelTextWhenNoError: "Credit card number",
|
|
48195
48189
|
dataQa: "Credit card number",
|
|
@@ -48202,7 +48196,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48202
48196
|
return e.key === "Enter" && handleSubmit(e);
|
|
48203
48197
|
},
|
|
48204
48198
|
isNum: true,
|
|
48205
|
-
autocompleteValue: "cc-number"
|
|
48199
|
+
autocompleteValue: "cc-number",
|
|
48200
|
+
isRequired: getIsRequiredFromValidators(React.useCallback)(fields.creditCardNumber)
|
|
48206
48201
|
}), /*#__PURE__*/React__default.createElement(FormInputRow, {
|
|
48207
48202
|
breakpoint: isMobile ? "1000rem" : "21rem",
|
|
48208
48203
|
childGap: isMobile ? "0rem" : "1rem"
|
|
@@ -48220,7 +48215,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48220
48215
|
isNum: true,
|
|
48221
48216
|
removeFromValue: /\// // removes "/" from browser autofill
|
|
48222
48217
|
,
|
|
48223
|
-
autocompleteValue: "cc-exp"
|
|
48218
|
+
autocompleteValue: "cc-exp",
|
|
48219
|
+
isRequired: getIsRequiredFromValidators(React.useCallback)(fields.expirationDate)
|
|
48224
48220
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48225
48221
|
labelTextWhenNoError: "CVV",
|
|
48226
48222
|
dataQa: "CVV",
|
|
@@ -48233,7 +48229,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48233
48229
|
onKeyDown: function onKeyDown(e) {
|
|
48234
48230
|
return e.key === "Enter" && handleSubmit(e);
|
|
48235
48231
|
},
|
|
48236
|
-
autocompleteValue: "cc-csc"
|
|
48232
|
+
autocompleteValue: "cc-csc",
|
|
48233
|
+
isRequired: getIsRequiredFromValidators(React.useCallback)(fields.cvv)
|
|
48237
48234
|
})), !hideZipCode && /*#__PURE__*/React__default.createElement(Box, {
|
|
48238
48235
|
padding: isMobile ? "0" : "0 0.5rem 0 0",
|
|
48239
48236
|
width: isMobile ? "100%" : "50%"
|
|
@@ -48249,7 +48246,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48249
48246
|
onKeyDown: function onKeyDown(e) {
|
|
48250
48247
|
return e.key === "Enter" && handleSubmit(e);
|
|
48251
48248
|
},
|
|
48252
|
-
autocompleteValue: "billing postal-code"
|
|
48249
|
+
autocompleteValue: "billing postal-code",
|
|
48250
|
+
isRequired: getIsRequiredFromValidators(React.useCallback)(fields.zipCode)
|
|
48253
48251
|
})), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48254
48252
|
childGap: "4px",
|
|
48255
48253
|
align: "center"
|
|
@@ -48602,7 +48600,9 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48602
48600
|
openHeight = _ref$openHeight === void 0 ? "auto" : _ref$openHeight,
|
|
48603
48601
|
_ref$containerStyles = _ref.containerStyles,
|
|
48604
48602
|
containerStyles = _ref$containerStyles === void 0 ? "" : _ref$containerStyles,
|
|
48605
|
-
ariaDescribedBy = _ref.ariaDescribedBy
|
|
48603
|
+
ariaDescribedBy = _ref.ariaDescribedBy,
|
|
48604
|
+
_ref$isRequired = _ref.isRequired,
|
|
48605
|
+
isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
|
|
48606
48606
|
|
|
48607
48607
|
var handleKeyDown = function handleKeyDown(id, e) {
|
|
48608
48608
|
if ((e === null || e === void 0 ? void 0 : e.keyCode) === 13 || (e === null || e === void 0 ? void 0 : e.keyCode) === 32) {
|
|
@@ -48658,7 +48658,8 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48658
48658
|
extraStyles: containerStyles
|
|
48659
48659
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
48660
48660
|
childGap: "0",
|
|
48661
|
-
role: "radiogroup"
|
|
48661
|
+
role: "radiogroup",
|
|
48662
|
+
required: isRequired
|
|
48662
48663
|
}, sections.filter(function (section) {
|
|
48663
48664
|
return !section.hidden;
|
|
48664
48665
|
}).map(function (section) {
|
|
@@ -48680,7 +48681,8 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48680
48681
|
extraStyles: borderStyles,
|
|
48681
48682
|
role: "radio",
|
|
48682
48683
|
"aria-checked": openSection === section.id,
|
|
48683
|
-
|
|
48684
|
+
disabled: section.disabled,
|
|
48685
|
+
required: section === null || section === void 0 ? void 0 : section.required
|
|
48684
48686
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
48685
48687
|
childGap: "0"
|
|
48686
48688
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -48710,6 +48712,8 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48710
48712
|
}, !section.hideRadioButton && /*#__PURE__*/React__default.createElement(Box, {
|
|
48711
48713
|
padding: "0"
|
|
48712
48714
|
}, /*#__PURE__*/React__default.createElement(RadioButton$2, {
|
|
48715
|
+
role: "radio",
|
|
48716
|
+
required: !!(section !== null && section !== void 0 && section.required),
|
|
48713
48717
|
id: "radio-input-".concat(idString(section)),
|
|
48714
48718
|
name: idString(section),
|
|
48715
48719
|
ariaDescribedBy: ariaDescribedBy,
|