@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.esm.js
CHANGED
|
@@ -12398,7 +12398,7 @@ if (typeof window !== "undefined") {
|
|
|
12398
12398
|
var MotionWrapper = styled(motion.div).withConfig({
|
|
12399
12399
|
displayName: "Motionstyled__MotionWrapper",
|
|
12400
12400
|
componentId: "sc-1m6r1io-0"
|
|
12401
|
-
})(["position:", ";display:", ";box-sizing:border-box;padding:", ";border:", ";border-color:", ";border-
|
|
12401
|
+
})(["position:", ";display:", ";box-sizing:border-box;padding:", ";border:", ";border-color:", ";border-width:", ";border-style:", ";border-width:", ";border-radius:", ";background-color:", ";box-shadow:", ";min-height:", ";min-width:", ";height:", ";width:", ";text-align:", ";margin:", ";&:hover,&:focus{", ";}&:active{", ";}&:disabled{", ";}", ";"], function (_ref) {
|
|
12402
12402
|
var position = _ref.position;
|
|
12403
12403
|
return position;
|
|
12404
12404
|
}, function (_ref2) {
|
|
@@ -22415,18 +22415,17 @@ var DropdownIcon = function DropdownIcon() {
|
|
|
22415
22415
|
};
|
|
22416
22416
|
|
|
22417
22417
|
var check = function (it) {
|
|
22418
|
-
return it && it.Math
|
|
22418
|
+
return it && it.Math == Math && it;
|
|
22419
22419
|
};
|
|
22420
22420
|
|
|
22421
22421
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
22422
22422
|
var global_1 =
|
|
22423
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
|
22423
|
+
// eslint-disable-next-line es-x/no-global-this -- safe
|
|
22424
22424
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
22425
22425
|
check(typeof window == 'object' && window) ||
|
|
22426
22426
|
// eslint-disable-next-line no-restricted-globals -- safe
|
|
22427
22427
|
check(typeof self == 'object' && self) ||
|
|
22428
22428
|
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
22429
|
-
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
22430
22429
|
// eslint-disable-next-line no-new-func -- fallback
|
|
22431
22430
|
(function () { return this; })() || Function('return this')();
|
|
22432
22431
|
|
|
@@ -22440,12 +22439,12 @@ var fails = function (exec) {
|
|
|
22440
22439
|
|
|
22441
22440
|
// Detect IE8's incomplete defineProperty implementation
|
|
22442
22441
|
var descriptors = !fails(function () {
|
|
22443
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
22444
|
-
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1]
|
|
22442
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
22443
|
+
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
22445
22444
|
});
|
|
22446
22445
|
|
|
22447
22446
|
var functionBindNative = !fails(function () {
|
|
22448
|
-
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
22447
|
+
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
|
22449
22448
|
var test = (function () { /* empty */ }).bind();
|
|
22450
22449
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
22451
22450
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
@@ -22458,7 +22457,7 @@ var functionCall = functionBindNative ? call.bind(call) : function () {
|
|
|
22458
22457
|
};
|
|
22459
22458
|
|
|
22460
22459
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
22461
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22460
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
22462
22461
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
22463
22462
|
|
|
22464
22463
|
// Nashorn ~ JDK8 bug
|
|
@@ -22485,11 +22484,14 @@ var createPropertyDescriptor = function (bitmap, value) {
|
|
|
22485
22484
|
};
|
|
22486
22485
|
|
|
22487
22486
|
var FunctionPrototype = Function.prototype;
|
|
22487
|
+
var bind$1 = FunctionPrototype.bind;
|
|
22488
22488
|
var call$1 = FunctionPrototype.call;
|
|
22489
|
-
var
|
|
22489
|
+
var uncurryThis = functionBindNative && bind$1.bind(call$1, call$1);
|
|
22490
22490
|
|
|
22491
|
-
var functionUncurryThis = functionBindNative ?
|
|
22492
|
-
return
|
|
22491
|
+
var functionUncurryThis = functionBindNative ? function (fn) {
|
|
22492
|
+
return fn && uncurryThis(fn);
|
|
22493
|
+
} : function (fn) {
|
|
22494
|
+
return fn && function () {
|
|
22493
22495
|
return call$1.apply(fn, arguments);
|
|
22494
22496
|
};
|
|
22495
22497
|
};
|
|
@@ -22510,21 +22512,15 @@ var indexedObject = fails(function () {
|
|
|
22510
22512
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
22511
22513
|
return !$Object('z').propertyIsEnumerable(0);
|
|
22512
22514
|
}) ? function (it) {
|
|
22513
|
-
return classofRaw(it)
|
|
22515
|
+
return classofRaw(it) == 'String' ? split(it, '') : $Object(it);
|
|
22514
22516
|
} : $Object;
|
|
22515
22517
|
|
|
22516
|
-
// we can't use just `it == null` since of `document.all` special case
|
|
22517
|
-
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
22518
|
-
var isNullOrUndefined = function (it) {
|
|
22519
|
-
return it === null || it === undefined;
|
|
22520
|
-
};
|
|
22521
|
-
|
|
22522
22518
|
var $TypeError = TypeError;
|
|
22523
22519
|
|
|
22524
22520
|
// `RequireObjectCoercible` abstract operation
|
|
22525
22521
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
22526
22522
|
var requireObjectCoercible = function (it) {
|
|
22527
|
-
if (
|
|
22523
|
+
if (it == undefined) throw $TypeError("Can't call method on " + it);
|
|
22528
22524
|
return it;
|
|
22529
22525
|
};
|
|
22530
22526
|
|
|
@@ -22536,32 +22532,13 @@ var toIndexedObject = function (it) {
|
|
|
22536
22532
|
return indexedObject(requireObjectCoercible(it));
|
|
22537
22533
|
};
|
|
22538
22534
|
|
|
22539
|
-
var documentAll = typeof document == 'object' && document.all;
|
|
22540
|
-
|
|
22541
|
-
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
22542
|
-
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
22543
|
-
var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
|
|
22544
|
-
|
|
22545
|
-
var documentAll_1 = {
|
|
22546
|
-
all: documentAll,
|
|
22547
|
-
IS_HTMLDDA: IS_HTMLDDA
|
|
22548
|
-
};
|
|
22549
|
-
|
|
22550
|
-
var documentAll$1 = documentAll_1.all;
|
|
22551
|
-
|
|
22552
22535
|
// `IsCallable` abstract operation
|
|
22553
22536
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
22554
|
-
var isCallable =
|
|
22555
|
-
return typeof argument == 'function' || argument === documentAll$1;
|
|
22556
|
-
} : function (argument) {
|
|
22537
|
+
var isCallable = function (argument) {
|
|
22557
22538
|
return typeof argument == 'function';
|
|
22558
22539
|
};
|
|
22559
22540
|
|
|
22560
|
-
var
|
|
22561
|
-
|
|
22562
|
-
var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
|
|
22563
|
-
return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
|
|
22564
|
-
} : function (it) {
|
|
22541
|
+
var isObject = function (it) {
|
|
22565
22542
|
return typeof it == 'object' ? it !== null : isCallable(it);
|
|
22566
22543
|
};
|
|
22567
22544
|
|
|
@@ -22575,7 +22552,7 @@ var getBuiltIn = function (namespace, method) {
|
|
|
22575
22552
|
|
|
22576
22553
|
var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
|
|
22577
22554
|
|
|
22578
|
-
var engineUserAgent =
|
|
22555
|
+
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
|
|
22579
22556
|
|
|
22580
22557
|
var process$1 = global_1.process;
|
|
22581
22558
|
var Deno = global_1.Deno;
|
|
@@ -22602,29 +22579,24 @@ if (!version && engineUserAgent) {
|
|
|
22602
22579
|
|
|
22603
22580
|
var engineV8Version = version;
|
|
22604
22581
|
|
|
22605
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
22606
|
-
|
|
22607
|
-
|
|
22582
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
22608
22583
|
|
|
22609
22584
|
|
|
22610
|
-
var $String = global_1.String;
|
|
22611
22585
|
|
|
22612
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
22613
|
-
var
|
|
22614
|
-
var symbol = Symbol(
|
|
22586
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
|
22587
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
22588
|
+
var symbol = Symbol();
|
|
22615
22589
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
22616
22590
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
22617
|
-
|
|
22618
|
-
// of course, fail.
|
|
22619
|
-
return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
22591
|
+
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
22620
22592
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
22621
22593
|
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
|
22622
22594
|
});
|
|
22623
22595
|
|
|
22624
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
22596
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
22625
22597
|
|
|
22626
22598
|
|
|
22627
|
-
var useSymbolAsUid =
|
|
22599
|
+
var useSymbolAsUid = nativeSymbol
|
|
22628
22600
|
&& !Symbol.sham
|
|
22629
22601
|
&& typeof Symbol.iterator == 'symbol';
|
|
22630
22602
|
|
|
@@ -22637,11 +22609,11 @@ var isSymbol = useSymbolAsUid ? function (it) {
|
|
|
22637
22609
|
return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, $Object$1(it));
|
|
22638
22610
|
};
|
|
22639
22611
|
|
|
22640
|
-
var $String
|
|
22612
|
+
var $String = String;
|
|
22641
22613
|
|
|
22642
22614
|
var tryToString = function (argument) {
|
|
22643
22615
|
try {
|
|
22644
|
-
return $String
|
|
22616
|
+
return $String(argument);
|
|
22645
22617
|
} catch (error) {
|
|
22646
22618
|
return 'Object';
|
|
22647
22619
|
}
|
|
@@ -22652,14 +22624,14 @@ var $TypeError$1 = TypeError;
|
|
|
22652
22624
|
// `Assert: IsCallable(argument) is true`
|
|
22653
22625
|
var aCallable = function (argument) {
|
|
22654
22626
|
if (isCallable(argument)) return argument;
|
|
22655
|
-
throw
|
|
22627
|
+
throw $TypeError$1(tryToString(argument) + ' is not a function');
|
|
22656
22628
|
};
|
|
22657
22629
|
|
|
22658
22630
|
// `GetMethod` abstract operation
|
|
22659
22631
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
22660
22632
|
var getMethod = function (V, P) {
|
|
22661
22633
|
var func = V[P];
|
|
22662
|
-
return
|
|
22634
|
+
return func == null ? undefined : aCallable(func);
|
|
22663
22635
|
};
|
|
22664
22636
|
|
|
22665
22637
|
var $TypeError$2 = TypeError;
|
|
@@ -22671,10 +22643,10 @@ var ordinaryToPrimitive = function (input, pref) {
|
|
|
22671
22643
|
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
|
22672
22644
|
if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
|
|
22673
22645
|
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
|
22674
|
-
throw
|
|
22646
|
+
throw $TypeError$2("Can't convert object to primitive value");
|
|
22675
22647
|
};
|
|
22676
22648
|
|
|
22677
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
22649
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
22678
22650
|
var defineProperty = Object.defineProperty;
|
|
22679
22651
|
|
|
22680
22652
|
var defineGlobalProperty = function (key, value) {
|
|
@@ -22691,16 +22663,13 @@ var store = global_1[SHARED] || defineGlobalProperty(SHARED, {});
|
|
|
22691
22663
|
var sharedStore = store;
|
|
22692
22664
|
|
|
22693
22665
|
var shared = createCommonjsModule(function (module) {
|
|
22694
|
-
|
|
22695
|
-
|
|
22696
|
-
|
|
22697
22666
|
(module.exports = function (key, value) {
|
|
22698
22667
|
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
22699
22668
|
})('versions', []).push({
|
|
22700
|
-
version: '3.
|
|
22669
|
+
version: '3.24.1',
|
|
22701
22670
|
mode: 'global',
|
|
22702
|
-
copyright: '© 2014-
|
|
22703
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
22671
|
+
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
22672
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE',
|
|
22704
22673
|
source: 'https://github.com/zloirock/core-js'
|
|
22705
22674
|
});
|
|
22706
22675
|
});
|
|
@@ -22717,7 +22686,7 @@ var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
|
|
|
22717
22686
|
|
|
22718
22687
|
// `HasOwnProperty` abstract operation
|
|
22719
22688
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
22720
|
-
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
22689
|
+
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
|
22721
22690
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
22722
22691
|
return hasOwnProperty(toObject(it), key);
|
|
22723
22692
|
};
|
|
@@ -22730,15 +22699,21 @@ var uid = function (key) {
|
|
|
22730
22699
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
|
|
22731
22700
|
};
|
|
22732
22701
|
|
|
22733
|
-
var Symbol$1 = global_1.Symbol;
|
|
22734
22702
|
var WellKnownSymbolsStore = shared('wks');
|
|
22735
|
-
var
|
|
22703
|
+
var Symbol$1 = global_1.Symbol;
|
|
22704
|
+
var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
22705
|
+
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
|
22736
22706
|
|
|
22737
22707
|
var wellKnownSymbol = function (name) {
|
|
22738
|
-
if (!hasOwnProperty_1(WellKnownSymbolsStore, name)) {
|
|
22739
|
-
|
|
22740
|
-
|
|
22741
|
-
|
|
22708
|
+
if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
22709
|
+
var description = 'Symbol.' + name;
|
|
22710
|
+
if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
|
|
22711
|
+
WellKnownSymbolsStore[name] = Symbol$1[name];
|
|
22712
|
+
} else if (useSymbolAsUid && symbolFor) {
|
|
22713
|
+
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
22714
|
+
} else {
|
|
22715
|
+
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
|
22716
|
+
}
|
|
22742
22717
|
} return WellKnownSymbolsStore[name];
|
|
22743
22718
|
};
|
|
22744
22719
|
|
|
@@ -22755,7 +22730,7 @@ var toPrimitive = function (input, pref) {
|
|
|
22755
22730
|
if (pref === undefined) pref = 'default';
|
|
22756
22731
|
result = functionCall(exoticToPrim, input, pref);
|
|
22757
22732
|
if (!isObject(result) || isSymbol(result)) return result;
|
|
22758
|
-
throw
|
|
22733
|
+
throw $TypeError$3("Can't convert object to primitive value");
|
|
22759
22734
|
}
|
|
22760
22735
|
if (pref === undefined) pref = 'number';
|
|
22761
22736
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -22778,13 +22753,13 @@ var documentCreateElement = function (it) {
|
|
|
22778
22753
|
|
|
22779
22754
|
// Thanks to IE8 for its funny defineProperty
|
|
22780
22755
|
var ie8DomDefine = !descriptors && !fails(function () {
|
|
22781
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
22756
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
22782
22757
|
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
|
22783
22758
|
get: function () { return 7; }
|
|
22784
|
-
}).a
|
|
22759
|
+
}).a != 7;
|
|
22785
22760
|
});
|
|
22786
22761
|
|
|
22787
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22762
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
22788
22763
|
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
22789
22764
|
|
|
22790
22765
|
// `Object.getOwnPropertyDescriptor` method
|
|
@@ -22805,26 +22780,26 @@ var objectGetOwnPropertyDescriptor = {
|
|
|
22805
22780
|
// V8 ~ Chrome 36-
|
|
22806
22781
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
22807
22782
|
var v8PrototypeDefineBug = descriptors && fails(function () {
|
|
22808
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
22783
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
22809
22784
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
22810
22785
|
value: 42,
|
|
22811
22786
|
writable: false
|
|
22812
|
-
}).prototype
|
|
22787
|
+
}).prototype != 42;
|
|
22813
22788
|
});
|
|
22814
22789
|
|
|
22815
|
-
var $String$
|
|
22790
|
+
var $String$1 = String;
|
|
22816
22791
|
var $TypeError$4 = TypeError;
|
|
22817
22792
|
|
|
22818
22793
|
// `Assert: Type(argument) is Object`
|
|
22819
22794
|
var anObject = function (argument) {
|
|
22820
22795
|
if (isObject(argument)) return argument;
|
|
22821
|
-
throw
|
|
22796
|
+
throw $TypeError$4($String$1(argument) + ' is not an object');
|
|
22822
22797
|
};
|
|
22823
22798
|
|
|
22824
22799
|
var $TypeError$5 = TypeError;
|
|
22825
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
22800
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
22826
22801
|
var $defineProperty = Object.defineProperty;
|
|
22827
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22802
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
22828
22803
|
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
22829
22804
|
var ENUMERABLE = 'enumerable';
|
|
22830
22805
|
var CONFIGURABLE = 'configurable';
|
|
@@ -22854,7 +22829,7 @@ var f$2 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Att
|
|
|
22854
22829
|
if (ie8DomDefine) try {
|
|
22855
22830
|
return $defineProperty(O, P, Attributes);
|
|
22856
22831
|
} catch (error) { /* empty */ }
|
|
22857
|
-
if ('get' in Attributes || 'set' in Attributes) throw
|
|
22832
|
+
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$5('Accessors not supported');
|
|
22858
22833
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
22859
22834
|
return O;
|
|
22860
22835
|
};
|
|
@@ -22871,7 +22846,7 @@ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
|
|
|
22871
22846
|
};
|
|
22872
22847
|
|
|
22873
22848
|
var FunctionPrototype$1 = Function.prototype;
|
|
22874
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22849
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
22875
22850
|
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
|
22876
22851
|
|
|
22877
22852
|
var EXISTS$1 = hasOwnProperty_1(FunctionPrototype$1, 'name');
|
|
@@ -22898,7 +22873,7 @@ var inspectSource = sharedStore.inspectSource;
|
|
|
22898
22873
|
|
|
22899
22874
|
var WeakMap$1 = global_1.WeakMap;
|
|
22900
22875
|
|
|
22901
|
-
var
|
|
22876
|
+
var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
|
|
22902
22877
|
|
|
22903
22878
|
var keys$1 = shared('keys');
|
|
22904
22879
|
|
|
@@ -22921,29 +22896,27 @@ var getterFor = function (TYPE) {
|
|
|
22921
22896
|
return function (it) {
|
|
22922
22897
|
var state;
|
|
22923
22898
|
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
22924
|
-
throw
|
|
22899
|
+
throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
22925
22900
|
} return state;
|
|
22926
22901
|
};
|
|
22927
22902
|
};
|
|
22928
22903
|
|
|
22929
|
-
if (
|
|
22904
|
+
if (nativeWeakMap || sharedStore.state) {
|
|
22930
22905
|
var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$2());
|
|
22931
|
-
|
|
22932
|
-
|
|
22933
|
-
|
|
22934
|
-
store$1.set = store$1.set;
|
|
22935
|
-
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
22906
|
+
var wmget = functionUncurryThis(store$1.get);
|
|
22907
|
+
var wmhas = functionUncurryThis(store$1.has);
|
|
22908
|
+
var wmset = functionUncurryThis(store$1.set);
|
|
22936
22909
|
set = function (it, metadata) {
|
|
22937
|
-
if (store$1
|
|
22910
|
+
if (wmhas(store$1, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
22938
22911
|
metadata.facade = it;
|
|
22939
|
-
store$1
|
|
22912
|
+
wmset(store$1, it, metadata);
|
|
22940
22913
|
return metadata;
|
|
22941
22914
|
};
|
|
22942
22915
|
get = function (it) {
|
|
22943
|
-
return store$1
|
|
22916
|
+
return wmget(store$1, it) || {};
|
|
22944
22917
|
};
|
|
22945
22918
|
has = function (it) {
|
|
22946
|
-
return store$1
|
|
22919
|
+
return wmhas(store$1, it);
|
|
22947
22920
|
};
|
|
22948
22921
|
} else {
|
|
22949
22922
|
var STATE = sharedKey('state');
|
|
@@ -22971,23 +22944,14 @@ var internalState = {
|
|
|
22971
22944
|
};
|
|
22972
22945
|
|
|
22973
22946
|
var makeBuiltIn_1 = createCommonjsModule(function (module) {
|
|
22974
|
-
|
|
22975
|
-
|
|
22976
|
-
|
|
22977
|
-
|
|
22978
|
-
|
|
22979
22947
|
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
22980
22948
|
|
|
22981
22949
|
|
|
22982
22950
|
|
|
22983
22951
|
var enforceInternalState = internalState.enforce;
|
|
22984
22952
|
var getInternalState = internalState.get;
|
|
22985
|
-
|
|
22986
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
22953
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
22987
22954
|
var defineProperty = Object.defineProperty;
|
|
22988
|
-
var stringSlice = functionUncurryThis(''.slice);
|
|
22989
|
-
var replace = functionUncurryThis(''.replace);
|
|
22990
|
-
var join = functionUncurryThis([].join);
|
|
22991
22955
|
|
|
22992
22956
|
var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
|
|
22993
22957
|
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
@@ -22996,8 +22960,8 @@ var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
|
|
|
22996
22960
|
var TEMPLATE = String(String).split('String');
|
|
22997
22961
|
|
|
22998
22962
|
var makeBuiltIn = module.exports = function (value, name, options) {
|
|
22999
|
-
if (
|
|
23000
|
-
name = '[' +
|
|
22963
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
22964
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
23001
22965
|
}
|
|
23002
22966
|
if (options && options.getter) name = 'get ' + name;
|
|
23003
22967
|
if (options && options.setter) name = 'set ' + name;
|
|
@@ -23016,7 +22980,7 @@ var makeBuiltIn = module.exports = function (value, name, options) {
|
|
|
23016
22980
|
} catch (error) { /* empty */ }
|
|
23017
22981
|
var state = enforceInternalState(value);
|
|
23018
22982
|
if (!hasOwnProperty_1(state, 'source')) {
|
|
23019
|
-
state.source = join(
|
|
22983
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
23020
22984
|
} return value;
|
|
23021
22985
|
};
|
|
23022
22986
|
|
|
@@ -23055,7 +23019,7 @@ var floor = Math.floor;
|
|
|
23055
23019
|
|
|
23056
23020
|
// `Math.trunc` method
|
|
23057
23021
|
// https://tc39.es/ecma262/#sec-math.trunc
|
|
23058
|
-
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
23022
|
+
// eslint-disable-next-line es-x/no-math-trunc -- safe
|
|
23059
23023
|
var mathTrunc = Math.trunc || function trunc(x) {
|
|
23060
23024
|
var n = +x;
|
|
23061
23025
|
return (n > 0 ? floor : ceil)(n);
|
|
@@ -23103,10 +23067,10 @@ var createMethod = function (IS_INCLUDES) {
|
|
|
23103
23067
|
var value;
|
|
23104
23068
|
// Array#includes uses SameValueZero equality algorithm
|
|
23105
23069
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
23106
|
-
if (IS_INCLUDES && el
|
|
23070
|
+
if (IS_INCLUDES && el != el) while (length > index) {
|
|
23107
23071
|
value = O[index++];
|
|
23108
23072
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
23109
|
-
if (value
|
|
23073
|
+
if (value != value) return true;
|
|
23110
23074
|
// Array#indexOf ignores holes, Array#includes - not
|
|
23111
23075
|
} else for (;length > index; index++) {
|
|
23112
23076
|
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
@@ -23156,7 +23120,7 @@ var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
|
|
|
23156
23120
|
|
|
23157
23121
|
// `Object.getOwnPropertyNames` method
|
|
23158
23122
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
23159
|
-
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
23123
|
+
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
|
23160
23124
|
var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
23161
23125
|
return objectKeysInternal(O, hiddenKeys$1);
|
|
23162
23126
|
};
|
|
@@ -23165,7 +23129,7 @@ var objectGetOwnPropertyNames = {
|
|
|
23165
23129
|
f: f$3
|
|
23166
23130
|
};
|
|
23167
23131
|
|
|
23168
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
23132
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
|
23169
23133
|
var f$4 = Object.getOwnPropertySymbols;
|
|
23170
23134
|
|
|
23171
23135
|
var objectGetOwnPropertySymbols = {
|
|
@@ -23197,8 +23161,8 @@ var replacement = /#|\.prototype\./;
|
|
|
23197
23161
|
|
|
23198
23162
|
var isForced = function (feature, detection) {
|
|
23199
23163
|
var value = data[normalize(feature)];
|
|
23200
|
-
return value
|
|
23201
|
-
: value
|
|
23164
|
+
return value == POLYFILL ? true
|
|
23165
|
+
: value == NATIVE ? false
|
|
23202
23166
|
: isCallable(detection) ? fails(detection)
|
|
23203
23167
|
: !!detection;
|
|
23204
23168
|
};
|
|
@@ -23278,7 +23242,7 @@ var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
|
|
|
23278
23242
|
var $Object$3 = Object;
|
|
23279
23243
|
|
|
23280
23244
|
// ES3 wrong here
|
|
23281
|
-
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }())
|
|
23245
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
23282
23246
|
|
|
23283
23247
|
// fallback for IE11 Script Access Denied error
|
|
23284
23248
|
var tryGet = function (it, key) {
|
|
@@ -23296,25 +23260,25 @@ var classof = toStringTagSupport ? classofRaw : function (it) {
|
|
|
23296
23260
|
// builtinTag case
|
|
23297
23261
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
23298
23262
|
// ES3 arguments fallback
|
|
23299
|
-
: (result = classofRaw(O))
|
|
23263
|
+
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
23300
23264
|
};
|
|
23301
23265
|
|
|
23302
|
-
var $String$
|
|
23266
|
+
var $String$2 = String;
|
|
23303
23267
|
|
|
23304
23268
|
var toString_1 = function (argument) {
|
|
23305
|
-
if (classof(argument) === 'Symbol') throw
|
|
23306
|
-
return $String$
|
|
23269
|
+
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
23270
|
+
return $String$2(argument);
|
|
23307
23271
|
};
|
|
23308
23272
|
|
|
23309
23273
|
var charAt = functionUncurryThis(''.charAt);
|
|
23310
23274
|
|
|
23311
23275
|
var FORCED = fails(function () {
|
|
23312
|
-
// eslint-disable-next-line es/no-array-string-prototype-at -- safe
|
|
23276
|
+
// eslint-disable-next-line es-x/no-array-string-prototype-at -- safe
|
|
23313
23277
|
return '𠮷'.at(-2) !== '\uD842';
|
|
23314
23278
|
});
|
|
23315
23279
|
|
|
23316
23280
|
// `String.prototype.at` method
|
|
23317
|
-
// https://
|
|
23281
|
+
// https://github.com/tc39/proposal-relative-indexing-method
|
|
23318
23282
|
_export({ target: 'String', proto: true, forced: FORCED }, {
|
|
23319
23283
|
at: function at(index) {
|
|
23320
23284
|
var S = toString_1(requireObjectCoercible(this));
|
|
@@ -23327,14 +23291,14 @@ _export({ target: 'String', proto: true, forced: FORCED }, {
|
|
|
23327
23291
|
|
|
23328
23292
|
// `Object.keys` method
|
|
23329
23293
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
23330
|
-
// eslint-disable-next-line es/no-object-keys -- safe
|
|
23294
|
+
// eslint-disable-next-line es-x/no-object-keys -- safe
|
|
23331
23295
|
var objectKeys = Object.keys || function keys(O) {
|
|
23332
23296
|
return objectKeysInternal(O, enumBugKeys);
|
|
23333
23297
|
};
|
|
23334
23298
|
|
|
23335
23299
|
// `Object.defineProperties` method
|
|
23336
23300
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
23337
|
-
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
23301
|
+
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
|
23338
23302
|
var f$5 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
23339
23303
|
anObject(O);
|
|
23340
23304
|
var props = toIndexedObject(Properties);
|
|
@@ -23423,7 +23387,7 @@ hiddenKeys[IE_PROTO] = true;
|
|
|
23423
23387
|
|
|
23424
23388
|
// `Object.create` method
|
|
23425
23389
|
// https://tc39.es/ecma262/#sec-object.create
|
|
23426
|
-
// eslint-disable-next-line es/no-object-create -- safe
|
|
23390
|
+
// eslint-disable-next-line es-x/no-object-create -- safe
|
|
23427
23391
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
23428
23392
|
var result;
|
|
23429
23393
|
if (O !== null) {
|
|
@@ -23443,7 +23407,7 @@ var ArrayPrototype = Array.prototype;
|
|
|
23443
23407
|
|
|
23444
23408
|
// Array.prototype[@@unscopables]
|
|
23445
23409
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
23446
|
-
if (ArrayPrototype[UNSCOPABLES]
|
|
23410
|
+
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
23447
23411
|
defineProperty$1(ArrayPrototype, UNSCOPABLES, {
|
|
23448
23412
|
configurable: true,
|
|
23449
23413
|
value: objectCreate(null)
|
|
@@ -23456,7 +23420,7 @@ var addToUnscopables = function (key) {
|
|
|
23456
23420
|
};
|
|
23457
23421
|
|
|
23458
23422
|
// `Array.prototype.at` method
|
|
23459
|
-
// https://
|
|
23423
|
+
// https://github.com/tc39/proposal-relative-indexing-method
|
|
23460
23424
|
_export({ target: 'Array', proto: true }, {
|
|
23461
23425
|
at: function at(index) {
|
|
23462
23426
|
var O = toObject(this);
|
|
@@ -23469,19 +23433,13 @@ _export({ target: 'Array', proto: true }, {
|
|
|
23469
23433
|
|
|
23470
23434
|
addToUnscopables('at');
|
|
23471
23435
|
|
|
23472
|
-
// eslint-disable-next-line es/no-typed-arrays -- safe
|
|
23473
|
-
var
|
|
23474
|
-
|
|
23475
|
-
var defineBuiltInAccessor = function (target, name, descriptor) {
|
|
23476
|
-
if (descriptor.get) makeBuiltIn_1(descriptor.get, name, { getter: true });
|
|
23477
|
-
if (descriptor.set) makeBuiltIn_1(descriptor.set, name, { setter: true });
|
|
23478
|
-
return objectDefineProperty.f(target, name, descriptor);
|
|
23479
|
-
};
|
|
23436
|
+
// eslint-disable-next-line es-x/no-typed-arrays -- safe
|
|
23437
|
+
var arrayBufferNative = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
|
|
23480
23438
|
|
|
23481
23439
|
var correctPrototypeGetter = !fails(function () {
|
|
23482
23440
|
function F() { /* empty */ }
|
|
23483
23441
|
F.prototype.constructor = null;
|
|
23484
|
-
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
23442
|
+
// eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
|
|
23485
23443
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
23486
23444
|
});
|
|
23487
23445
|
|
|
@@ -23491,7 +23449,7 @@ var ObjectPrototype = $Object$4.prototype;
|
|
|
23491
23449
|
|
|
23492
23450
|
// `Object.getPrototypeOf` method
|
|
23493
23451
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
23494
|
-
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
23452
|
+
// eslint-disable-next-line es-x/no-object-getprototypeof -- safe
|
|
23495
23453
|
var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : function (O) {
|
|
23496
23454
|
var object = toObject(O);
|
|
23497
23455
|
if (hasOwnProperty_1(object, IE_PROTO$1)) return object[IE_PROTO$1];
|
|
@@ -23501,19 +23459,12 @@ var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : f
|
|
|
23501
23459
|
} return object instanceof $Object$4 ? ObjectPrototype : null;
|
|
23502
23460
|
};
|
|
23503
23461
|
|
|
23504
|
-
var
|
|
23505
|
-
try {
|
|
23506
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
23507
|
-
return functionUncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
23508
|
-
} catch (error) { /* empty */ }
|
|
23509
|
-
};
|
|
23510
|
-
|
|
23511
|
-
var $String$4 = String;
|
|
23462
|
+
var $String$3 = String;
|
|
23512
23463
|
var $TypeError$6 = TypeError;
|
|
23513
23464
|
|
|
23514
23465
|
var aPossiblePrototype = function (argument) {
|
|
23515
23466
|
if (typeof argument == 'object' || isCallable(argument)) return argument;
|
|
23516
|
-
throw
|
|
23467
|
+
throw $TypeError$6("Can't set " + $String$3(argument) + ' as a prototype');
|
|
23517
23468
|
};
|
|
23518
23469
|
|
|
23519
23470
|
/* eslint-disable no-proto -- safe */
|
|
@@ -23524,13 +23475,14 @@ var aPossiblePrototype = function (argument) {
|
|
|
23524
23475
|
// `Object.setPrototypeOf` method
|
|
23525
23476
|
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
23526
23477
|
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
23527
|
-
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
23478
|
+
// eslint-disable-next-line es-x/no-object-setprototypeof -- safe
|
|
23528
23479
|
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
23529
23480
|
var CORRECT_SETTER = false;
|
|
23530
23481
|
var test = {};
|
|
23531
23482
|
var setter;
|
|
23532
23483
|
try {
|
|
23533
|
-
|
|
23484
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
23485
|
+
setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
23534
23486
|
setter(test, []);
|
|
23535
23487
|
CORRECT_SETTER = test instanceof Array;
|
|
23536
23488
|
} catch (error) { /* empty */ }
|
|
@@ -23543,6 +23495,14 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
23543
23495
|
};
|
|
23544
23496
|
}() : undefined);
|
|
23545
23497
|
|
|
23498
|
+
var defineProperty$2 = objectDefineProperty.f;
|
|
23499
|
+
|
|
23500
|
+
|
|
23501
|
+
|
|
23502
|
+
|
|
23503
|
+
|
|
23504
|
+
|
|
23505
|
+
|
|
23546
23506
|
var enforceInternalState = internalState.enforce;
|
|
23547
23507
|
var getInternalState = internalState.get;
|
|
23548
23508
|
var Int8Array = global_1.Int8Array;
|
|
@@ -23558,7 +23518,7 @@ var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
|
|
|
23558
23518
|
var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
|
|
23559
23519
|
var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
|
|
23560
23520
|
// Fixing native typed arrays in Opera Presto crashes the browser, see #595
|
|
23561
|
-
var NATIVE_ARRAY_BUFFER_VIEWS =
|
|
23521
|
+
var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferNative && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
|
|
23562
23522
|
var TYPED_ARRAY_TAG_REQUIRED = false;
|
|
23563
23523
|
var NAME, Constructor, Prototype;
|
|
23564
23524
|
|
|
@@ -23603,12 +23563,12 @@ var isTypedArray = function (it) {
|
|
|
23603
23563
|
|
|
23604
23564
|
var aTypedArray = function (it) {
|
|
23605
23565
|
if (isTypedArray(it)) return it;
|
|
23606
|
-
throw
|
|
23566
|
+
throw TypeError$2('Target is not a typed array');
|
|
23607
23567
|
};
|
|
23608
23568
|
|
|
23609
23569
|
var aTypedArrayConstructor = function (C) {
|
|
23610
23570
|
if (isCallable(C) && (!objectSetPrototypeOf || objectIsPrototypeOf(TypedArray, C))) return C;
|
|
23611
|
-
throw
|
|
23571
|
+
throw TypeError$2(tryToString(C) + ' is not a typed array constructor');
|
|
23612
23572
|
};
|
|
23613
23573
|
|
|
23614
23574
|
var exportTypedArrayMethod = function (KEY, property, forced, options) {
|
|
@@ -23672,7 +23632,7 @@ for (NAME in BigIntArrayConstructorsList) {
|
|
|
23672
23632
|
if (!NATIVE_ARRAY_BUFFER_VIEWS || !isCallable(TypedArray) || TypedArray === Function.prototype) {
|
|
23673
23633
|
// eslint-disable-next-line no-shadow -- safe
|
|
23674
23634
|
TypedArray = function TypedArray() {
|
|
23675
|
-
throw
|
|
23635
|
+
throw TypeError$2('Incorrect invocation');
|
|
23676
23636
|
};
|
|
23677
23637
|
if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {
|
|
23678
23638
|
if (global_1[NAME]) objectSetPrototypeOf(global_1[NAME], TypedArray);
|
|
@@ -23693,12 +23653,9 @@ if (NATIVE_ARRAY_BUFFER_VIEWS && objectGetPrototypeOf(Uint8ClampedArrayPrototype
|
|
|
23693
23653
|
|
|
23694
23654
|
if (descriptors && !hasOwnProperty_1(TypedArrayPrototype, TO_STRING_TAG$2)) {
|
|
23695
23655
|
TYPED_ARRAY_TAG_REQUIRED = true;
|
|
23696
|
-
|
|
23697
|
-
|
|
23698
|
-
|
|
23699
|
-
return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
|
|
23700
|
-
}
|
|
23701
|
-
});
|
|
23656
|
+
defineProperty$2(TypedArrayPrototype, TO_STRING_TAG$2, { get: function () {
|
|
23657
|
+
return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
|
|
23658
|
+
} });
|
|
23702
23659
|
for (NAME in TypedArrayConstructorsList) if (global_1[NAME]) {
|
|
23703
23660
|
createNonEnumerableProperty(global_1[NAME], TYPED_ARRAY_TAG, NAME);
|
|
23704
23661
|
}
|
|
@@ -23722,7 +23679,7 @@ var aTypedArray$1 = arrayBufferViewCore.aTypedArray;
|
|
|
23722
23679
|
var exportTypedArrayMethod$1 = arrayBufferViewCore.exportTypedArrayMethod;
|
|
23723
23680
|
|
|
23724
23681
|
// `%TypedArray%.prototype.at` method
|
|
23725
|
-
// https://
|
|
23682
|
+
// https://github.com/tc39/proposal-relative-indexing-method
|
|
23726
23683
|
exportTypedArrayMethod$1('at', function at(index) {
|
|
23727
23684
|
var O = aTypedArray$1(this);
|
|
23728
23685
|
var len = lengthOfArrayLike(O);
|
|
@@ -23803,7 +23760,9 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
23803
23760
|
_ref8$smoothScroll = _ref8.smoothScroll,
|
|
23804
23761
|
smoothScroll = _ref8$smoothScroll === void 0 ? true : _ref8$smoothScroll,
|
|
23805
23762
|
_ref8$ariaInvalid = _ref8.ariaInvalid,
|
|
23806
|
-
ariaInvalid = _ref8$ariaInvalid === void 0 ? false : _ref8$ariaInvalid
|
|
23763
|
+
ariaInvalid = _ref8$ariaInvalid === void 0 ? false : _ref8$ariaInvalid,
|
|
23764
|
+
_ref8$isRequired = _ref8.isRequired,
|
|
23765
|
+
isRequired = _ref8$isRequired === void 0 ? false : _ref8$isRequired;
|
|
23807
23766
|
|
|
23808
23767
|
var _useState = useState(""),
|
|
23809
23768
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -24074,7 +24033,7 @@ var Dropdown = function Dropdown(_ref8) {
|
|
|
24074
24033
|
},
|
|
24075
24034
|
padding: "12px",
|
|
24076
24035
|
placeholder: getSelection(),
|
|
24077
|
-
required: options.required,
|
|
24036
|
+
required: options.required || isRequired,
|
|
24078
24037
|
role: "combobox",
|
|
24079
24038
|
themeValues: themeValues,
|
|
24080
24039
|
title: hasTitles ? getSelection() : null,
|
|
@@ -24238,7 +24197,9 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24238
24197
|
_ref$dataQa = _ref.dataQa,
|
|
24239
24198
|
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
|
|
24240
24199
|
_ref$widthFitOptions = _ref.widthFitOptions,
|
|
24241
|
-
widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions
|
|
24200
|
+
widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions,
|
|
24201
|
+
_ref$isRequired = _ref.isRequired,
|
|
24202
|
+
isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
|
|
24242
24203
|
|
|
24243
24204
|
var _useState = useState(false),
|
|
24244
24205
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -24300,7 +24261,8 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24300
24261
|
},
|
|
24301
24262
|
disabled: disabled,
|
|
24302
24263
|
autocompleteValue: autocompleteValue,
|
|
24303
|
-
smoothScroll: smoothScroll
|
|
24264
|
+
smoothScroll: smoothScroll,
|
|
24265
|
+
required: isRequired
|
|
24304
24266
|
}), /*#__PURE__*/React.createElement(Stack, {
|
|
24305
24267
|
direction: "row",
|
|
24306
24268
|
justify: "space-between"
|
|
@@ -25070,7 +25032,9 @@ var CountryDropdown = function CountryDropdown(_ref) {
|
|
|
25070
25032
|
showErrors = _ref.showErrors,
|
|
25071
25033
|
onChange = _ref.onChange,
|
|
25072
25034
|
_ref$dataQa = _ref.dataQa,
|
|
25073
|
-
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa
|
|
25035
|
+
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
|
|
25036
|
+
_ref$isRequired = _ref.isRequired,
|
|
25037
|
+
isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
|
|
25074
25038
|
return /*#__PURE__*/React.createElement(FormSelect$1, {
|
|
25075
25039
|
options: options,
|
|
25076
25040
|
field: field,
|
|
@@ -25080,7 +25044,8 @@ var CountryDropdown = function CountryDropdown(_ref) {
|
|
|
25080
25044
|
errorMessages: errorMessages,
|
|
25081
25045
|
showErrors: showErrors,
|
|
25082
25046
|
onChange: onChange,
|
|
25083
|
-
autocompleteValue: "country-name"
|
|
25047
|
+
autocompleteValue: "country-name",
|
|
25048
|
+
isRequired: isRequired
|
|
25084
25049
|
});
|
|
25085
25050
|
};
|
|
25086
25051
|
|
|
@@ -25925,7 +25890,7 @@ var fallbackValues$k = {
|
|
|
25925
25890
|
};
|
|
25926
25891
|
|
|
25927
25892
|
var _excluded$p = ["showErrors", "themeValues"],
|
|
25928
|
-
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa"];
|
|
25893
|
+
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired"];
|
|
25929
25894
|
var InputField = styled.input.withConfig({
|
|
25930
25895
|
displayName: "FormInput__InputField",
|
|
25931
25896
|
componentId: "sc-l094r1-0"
|
|
@@ -26012,6 +25977,8 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26012
25977
|
removeFromValue = _ref15.removeFromValue,
|
|
26013
25978
|
_ref15$dataQa = _ref15.dataQa,
|
|
26014
25979
|
dataQa = _ref15$dataQa === void 0 ? null : _ref15$dataQa,
|
|
25980
|
+
_ref15$isRequired = _ref15.isRequired,
|
|
25981
|
+
isRequired = _ref15$isRequired === void 0 ? false : _ref15$isRequired,
|
|
26015
25982
|
props = _objectWithoutProperties(_ref15, _excluded2);
|
|
26016
25983
|
|
|
26017
25984
|
var _useState = useState(false),
|
|
@@ -26098,7 +26065,8 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26098
26065
|
$customHeight: customHeight,
|
|
26099
26066
|
$extraStyles: extraStyles,
|
|
26100
26067
|
"data-qa": dataQa || labelTextWhenNoError,
|
|
26101
|
-
autoComplete: autocompleteValue
|
|
26068
|
+
autoComplete: autocompleteValue,
|
|
26069
|
+
required: isRequired
|
|
26102
26070
|
}, props)) : /*#__PURE__*/React.createElement(InputField, _extends({
|
|
26103
26071
|
"aria-labelledby": createIdFromString(labelTextWhenNoError),
|
|
26104
26072
|
"aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
|
|
@@ -26117,7 +26085,8 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26117
26085
|
$customHeight: customHeight,
|
|
26118
26086
|
$extraStyles: extraStyles,
|
|
26119
26087
|
"data-qa": dataQa || labelTextWhenNoError,
|
|
26120
|
-
autoComplete: autocompleteValue
|
|
26088
|
+
autoComplete: autocompleteValue,
|
|
26089
|
+
required: isRequired
|
|
26121
26090
|
}, props))), /*#__PURE__*/React.createElement(Stack, {
|
|
26122
26091
|
direction: "row",
|
|
26123
26092
|
justify: "space-between",
|
|
@@ -27299,7 +27268,9 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
27299
27268
|
_ref2$ariaLabelledBy = _ref2.ariaLabelledBy,
|
|
27300
27269
|
ariaLabelledBy = _ref2$ariaLabelledBy === void 0 ? "" : _ref2$ariaLabelledBy,
|
|
27301
27270
|
_ref2$ariaLabel = _ref2.ariaLabel,
|
|
27302
|
-
ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel
|
|
27271
|
+
ariaLabel = _ref2$ariaLabel === void 0 ? null : _ref2$ariaLabel,
|
|
27272
|
+
_ref2$required = _ref2.required,
|
|
27273
|
+
required = _ref2$required === void 0 ? false : _ref2$required;
|
|
27303
27274
|
var buttonBorder = {
|
|
27304
27275
|
onFocused: {
|
|
27305
27276
|
borderColor: themeValues.activeColor,
|
|
@@ -27361,7 +27332,8 @@ var RadioButton$1 = function RadioButton(_ref2) {
|
|
|
27361
27332
|
disabled: disabled,
|
|
27362
27333
|
onClick: toggleRadio,
|
|
27363
27334
|
"aria-describedby": ariaDescribedBy,
|
|
27364
|
-
tabIndex: "-1"
|
|
27335
|
+
tabIndex: "-1",
|
|
27336
|
+
required: required
|
|
27365
27337
|
}, extraProps)), /*#__PURE__*/React.createElement(Motion, {
|
|
27366
27338
|
borderWidth: "1px",
|
|
27367
27339
|
borderStyle: "solid",
|
|
@@ -38051,7 +38023,9 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
38051
38023
|
field = _ref.field,
|
|
38052
38024
|
fieldActions = _ref.fieldActions,
|
|
38053
38025
|
showErrors = _ref.showErrors,
|
|
38054
|
-
countryCode = _ref.countryCode
|
|
38026
|
+
countryCode = _ref.countryCode,
|
|
38027
|
+
_ref$isRequired = _ref.isRequired,
|
|
38028
|
+
isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
|
|
38055
38029
|
var placeholder = countryCode === "US" ? placeHolderOptionUS : placeHolderOption;
|
|
38056
38030
|
var options = [placeholder].concat(_toConsumableArray(getOptions(countryCode)));
|
|
38057
38031
|
return /*#__PURE__*/React.createElement(FormSelect$1, {
|
|
@@ -38061,7 +38035,8 @@ var FormStateDropdown = function FormStateDropdown(_ref) {
|
|
|
38061
38035
|
labelTextWhenNoError: labelTextWhenNoError,
|
|
38062
38036
|
errorMessages: errorMessages,
|
|
38063
38037
|
showErrors: showErrors,
|
|
38064
|
-
autocompleteValue: "address-level1"
|
|
38038
|
+
autocompleteValue: "address-level1",
|
|
38039
|
+
isRequired: isRequired
|
|
38065
38040
|
});
|
|
38066
38041
|
};
|
|
38067
38042
|
|
|
@@ -39342,6 +39317,14 @@ const createFormState = (formConfig) => ({
|
|
|
39342
39317
|
mapStateToProps: mapStateToProps,
|
|
39343
39318
|
});
|
|
39344
39319
|
|
|
39320
|
+
var getIsRequiredFromValidators = function getIsRequiredFromValidators(callbackFn) {
|
|
39321
|
+
return callbackFn(function (field) {
|
|
39322
|
+
return !!field.validators.find(function (validator) {
|
|
39323
|
+
return validator.type === "validator/REQUIRED";
|
|
39324
|
+
});
|
|
39325
|
+
}, []);
|
|
39326
|
+
};
|
|
39327
|
+
|
|
39345
39328
|
var AddressForm = function AddressForm(_ref) {
|
|
39346
39329
|
var _zipErrorMessages;
|
|
39347
39330
|
|
|
@@ -39400,7 +39383,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39400
39383
|
}
|
|
39401
39384
|
},
|
|
39402
39385
|
showErrors: showErrors,
|
|
39403
|
-
dataQa: "Country"
|
|
39386
|
+
dataQa: "Country",
|
|
39387
|
+
isRequired: getIsRequiredFromValidators(useCallback)(fields.city)
|
|
39404
39388
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
39405
39389
|
labelTextWhenNoError: "Address",
|
|
39406
39390
|
errorMessages: street1ErrorMessages,
|
|
@@ -39411,7 +39395,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39411
39395
|
return e.key === "Enter" && handleSubmit(e);
|
|
39412
39396
|
},
|
|
39413
39397
|
autocompleteValue: "address-line1",
|
|
39414
|
-
dataQa: "Address"
|
|
39398
|
+
dataQa: "Address",
|
|
39399
|
+
isRequired: getIsRequiredFromValidators(useCallback)(fields.street1)
|
|
39415
39400
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
39416
39401
|
labelTextWhenNoError: "Apt, Suite, Unit, Floor, etc. (Optional)",
|
|
39417
39402
|
field: fields.street2,
|
|
@@ -39421,7 +39406,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39421
39406
|
return e.key === "Enter" && handleSubmit(e);
|
|
39422
39407
|
},
|
|
39423
39408
|
autocompleteValue: "address-line2",
|
|
39424
|
-
dataQa: "Address Line 2"
|
|
39409
|
+
dataQa: "Address Line 2",
|
|
39410
|
+
isRequired: getIsRequiredFromValidators(useCallback)(fields.street2)
|
|
39425
39411
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
39426
39412
|
labelTextWhenNoError: "City",
|
|
39427
39413
|
errorMessages: cityErrorMessages,
|
|
@@ -39432,7 +39418,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39432
39418
|
return e.key === "Enter" && handleSubmit(e);
|
|
39433
39419
|
},
|
|
39434
39420
|
autocompleteValue: "address-level2",
|
|
39435
|
-
dataQa: "City"
|
|
39421
|
+
dataQa: "City",
|
|
39422
|
+
isRequired: getIsRequiredFromValidators(useCallback)(fields.city)
|
|
39436
39423
|
}), /*#__PURE__*/React.createElement(FormStateDropdown, {
|
|
39437
39424
|
labelTextWhenNoError: isUS ? "State" : "State or Province",
|
|
39438
39425
|
errorMessages: stateProvinceErrorMessages,
|
|
@@ -39443,7 +39430,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39443
39430
|
onKeyDown: function onKeyDown(e) {
|
|
39444
39431
|
return e.key === "Enter" && handleSubmit(e);
|
|
39445
39432
|
},
|
|
39446
|
-
dataQa: "State or Province"
|
|
39433
|
+
dataQa: "State or Province",
|
|
39434
|
+
isRequired: getIsRequiredFromValidators(useCallback)(fields.stateProvince)
|
|
39447
39435
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
39448
39436
|
isNum: isUS,
|
|
39449
39437
|
formatter: isUS ? zipFormat : null,
|
|
@@ -39456,7 +39444,8 @@ var AddressForm = function AddressForm(_ref) {
|
|
|
39456
39444
|
return e.key === "Enter" && handleSubmit(e);
|
|
39457
39445
|
},
|
|
39458
39446
|
autocompleteValue: "postal-code",
|
|
39459
|
-
dataQa: "Zip code"
|
|
39447
|
+
dataQa: "Zip code",
|
|
39448
|
+
isRequired: getIsRequiredFromValidators(useCallback)(fields.zip)
|
|
39460
39449
|
}), showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
39461
39450
|
name: "address checkbox",
|
|
39462
39451
|
title: "Save address to wallet",
|
|
@@ -47894,7 +47883,7 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
|
47894
47883
|
};
|
|
47895
47884
|
|
|
47896
47885
|
var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
47897
|
-
var _routingNumberErrors, _accountNumberErrors;
|
|
47886
|
+
var _routingNumberErrors, _confirmRoutingNumber, _accountNumberErrors, _confirmAccountNumber;
|
|
47898
47887
|
|
|
47899
47888
|
var _ref$variant = _ref.variant,
|
|
47900
47889
|
variant = _ref$variant === void 0 ? "default" : _ref$variant,
|
|
@@ -47937,12 +47926,9 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47937
47926
|
var nameErrors = _defineProperty({}, required.error, "Name is required");
|
|
47938
47927
|
|
|
47939
47928
|
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);
|
|
47940
|
-
|
|
47941
|
-
var confirmRoutingNumberErrors = _defineProperty({}, matchesField.error, "Confirm routing number field must match routing number");
|
|
47942
|
-
|
|
47929
|
+
var confirmRoutingNumberErrors = (_confirmRoutingNumber = {}, _defineProperty(_confirmRoutingNumber, matchesField.error, "Confirm routing number field must match routing number"), _defineProperty(_confirmRoutingNumber, required.error, "Confirm routing number is required"), _confirmRoutingNumber);
|
|
47943
47930
|
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);
|
|
47944
|
-
|
|
47945
|
-
var confirmAccountNumberErrors = _defineProperty({}, matchesField.error, "Confirm account number field must match account number");
|
|
47931
|
+
var confirmAccountNumberErrors = (_confirmAccountNumber = {}, _defineProperty(_confirmAccountNumber, matchesField.error, "Confirm account number field must match account number"), _defineProperty(_confirmAccountNumber, required.error, "Confirm account number is required"), _confirmAccountNumber);
|
|
47946
47932
|
|
|
47947
47933
|
var accountTypeErrors = _defineProperty({}, required.error, "Account type is required");
|
|
47948
47934
|
|
|
@@ -47960,7 +47946,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47960
47946
|
onKeyDown: function onKeyDown(e) {
|
|
47961
47947
|
return e.key === "Enter" && handleSubmit(e);
|
|
47962
47948
|
},
|
|
47963
|
-
autocompleteValue: "name"
|
|
47949
|
+
autocompleteValue: "name",
|
|
47950
|
+
isRequired: getIsRequiredFromValidators(useCallback)(fields.name)
|
|
47964
47951
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
47965
47952
|
labelTextWhenNoError: "Routing number",
|
|
47966
47953
|
dataQa: "Routing number",
|
|
@@ -47968,6 +47955,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47968
47955
|
field: fields.routingNumber,
|
|
47969
47956
|
fieldActions: actions.fields.routingNumber,
|
|
47970
47957
|
showErrors: showErrors,
|
|
47958
|
+
isRequired: getIsRequiredFromValidators(useCallback)(fields.routingNumber),
|
|
47971
47959
|
isNum: true,
|
|
47972
47960
|
helperModal: function helperModal() {
|
|
47973
47961
|
return /*#__PURE__*/React.createElement(AccountAndRoutingModal$1, {
|
|
@@ -47993,6 +47981,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47993
47981
|
onKeyDown: function onKeyDown(e) {
|
|
47994
47982
|
return e.key === "Enter" && handleSubmit(e);
|
|
47995
47983
|
},
|
|
47984
|
+
isRequired: getIsRequiredFromValidators(useCallback)(fields.confirmRoutingNumber),
|
|
47996
47985
|
isNum: true
|
|
47997
47986
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
47998
47987
|
labelTextWhenNoError: "Account number",
|
|
@@ -48001,6 +47990,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48001
47990
|
field: fields.accountNumber,
|
|
48002
47991
|
fieldActions: actions.fields.accountNumber,
|
|
48003
47992
|
showErrors: showErrors,
|
|
47993
|
+
isRequired: getIsRequiredFromValidators(useCallback)(fields.accountNumber),
|
|
48004
47994
|
isNum: true,
|
|
48005
47995
|
helperModal: function helperModal() {
|
|
48006
47996
|
return /*#__PURE__*/React.createElement(AccountAndRoutingModal$1, {
|
|
@@ -48026,6 +48016,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48026
48016
|
onKeyDown: function onKeyDown(e) {
|
|
48027
48017
|
return e.key === "Enter" && handleSubmit(e);
|
|
48028
48018
|
},
|
|
48019
|
+
isRequired: getIsRequiredFromValidators(useCallback)(fields.confirmAccountNumber),
|
|
48029
48020
|
isNum: true
|
|
48030
48021
|
}), allowBankAccountType && /*#__PURE__*/React.createElement(FormSelect$1, {
|
|
48031
48022
|
labelTextWhenNoError: "Account type",
|
|
@@ -48043,7 +48034,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48043
48034
|
fieldActions: actions.fields.accountType,
|
|
48044
48035
|
showErrors: showErrors,
|
|
48045
48036
|
errorMessages: accountTypeErrors,
|
|
48046
|
-
field: fields.accountType
|
|
48037
|
+
field: fields.accountType,
|
|
48038
|
+
isRequired: getIsRequiredFromValidators(useCallback)(fields.accountType)
|
|
48047
48039
|
}), !hideDefaultPayment && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
48048
48040
|
title: "Save as Default Payment Method",
|
|
48049
48041
|
dataQa: "default-payment-ach",
|
|
@@ -48079,7 +48071,7 @@ var formConfig$6 = {
|
|
|
48079
48071
|
constraints: [onlyIntegers(), hasLength(0, 9)]
|
|
48080
48072
|
},
|
|
48081
48073
|
confirmRoutingNumber: {
|
|
48082
|
-
validators: [matchesField("routingNumber")],
|
|
48074
|
+
validators: [matchesField("routingNumber"), required()],
|
|
48083
48075
|
constraints: [onlyIntegers(), hasLength(0, 9)]
|
|
48084
48076
|
},
|
|
48085
48077
|
accountNumber: {
|
|
@@ -48087,7 +48079,7 @@ var formConfig$6 = {
|
|
|
48087
48079
|
constraints: [onlyIntegers(), hasLength(0, 17)]
|
|
48088
48080
|
},
|
|
48089
48081
|
confirmAccountNumber: {
|
|
48090
|
-
validators: [matchesField("accountNumber")],
|
|
48082
|
+
validators: [matchesField("accountNumber"), required()],
|
|
48091
48083
|
constraints: [onlyIntegers(), hasLength(0, 17)]
|
|
48092
48084
|
},
|
|
48093
48085
|
accountType: {
|
|
@@ -48170,7 +48162,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48170
48162
|
}
|
|
48171
48163
|
},
|
|
48172
48164
|
showErrors: showErrors,
|
|
48173
|
-
dataQa: "Country"
|
|
48165
|
+
dataQa: "Country",
|
|
48166
|
+
isRequired: getIsRequiredFromValidators(useCallback)(fields.country)
|
|
48174
48167
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
48175
48168
|
labelTextWhenNoError: "Name on card",
|
|
48176
48169
|
dataQa: "Name on card",
|
|
@@ -48181,7 +48174,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48181
48174
|
onKeyDown: function onKeyDown(e) {
|
|
48182
48175
|
return e.key === "Enter" && handleSubmit(e);
|
|
48183
48176
|
},
|
|
48184
|
-
autocompleteValue: "cc-name"
|
|
48177
|
+
autocompleteValue: "cc-name",
|
|
48178
|
+
isRequired: getIsRequiredFromValidators(useCallback)(fields.nameOnCard)
|
|
48185
48179
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
48186
48180
|
labelTextWhenNoError: "Credit card number",
|
|
48187
48181
|
dataQa: "Credit card number",
|
|
@@ -48194,7 +48188,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48194
48188
|
return e.key === "Enter" && handleSubmit(e);
|
|
48195
48189
|
},
|
|
48196
48190
|
isNum: true,
|
|
48197
|
-
autocompleteValue: "cc-number"
|
|
48191
|
+
autocompleteValue: "cc-number",
|
|
48192
|
+
isRequired: getIsRequiredFromValidators(useCallback)(fields.creditCardNumber)
|
|
48198
48193
|
}), /*#__PURE__*/React.createElement(FormInputRow, {
|
|
48199
48194
|
breakpoint: isMobile ? "1000rem" : "21rem",
|
|
48200
48195
|
childGap: isMobile ? "0rem" : "1rem"
|
|
@@ -48212,7 +48207,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48212
48207
|
isNum: true,
|
|
48213
48208
|
removeFromValue: /\// // removes "/" from browser autofill
|
|
48214
48209
|
,
|
|
48215
|
-
autocompleteValue: "cc-exp"
|
|
48210
|
+
autocompleteValue: "cc-exp",
|
|
48211
|
+
isRequired: getIsRequiredFromValidators(useCallback)(fields.expirationDate)
|
|
48216
48212
|
}), /*#__PURE__*/React.createElement(FormInput$1, {
|
|
48217
48213
|
labelTextWhenNoError: "CVV",
|
|
48218
48214
|
dataQa: "CVV",
|
|
@@ -48225,7 +48221,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48225
48221
|
onKeyDown: function onKeyDown(e) {
|
|
48226
48222
|
return e.key === "Enter" && handleSubmit(e);
|
|
48227
48223
|
},
|
|
48228
|
-
autocompleteValue: "cc-csc"
|
|
48224
|
+
autocompleteValue: "cc-csc",
|
|
48225
|
+
isRequired: getIsRequiredFromValidators(useCallback)(fields.cvv)
|
|
48229
48226
|
})), !hideZipCode && /*#__PURE__*/React.createElement(Box, {
|
|
48230
48227
|
padding: isMobile ? "0" : "0 0.5rem 0 0",
|
|
48231
48228
|
width: isMobile ? "100%" : "50%"
|
|
@@ -48241,7 +48238,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48241
48238
|
onKeyDown: function onKeyDown(e) {
|
|
48242
48239
|
return e.key === "Enter" && handleSubmit(e);
|
|
48243
48240
|
},
|
|
48244
|
-
autocompleteValue: "billing postal-code"
|
|
48241
|
+
autocompleteValue: "billing postal-code",
|
|
48242
|
+
isRequired: getIsRequiredFromValidators(useCallback)(fields.zipCode)
|
|
48245
48243
|
})), (showWalletCheckbox || showTerms) && /*#__PURE__*/React.createElement(Cluster, {
|
|
48246
48244
|
childGap: "4px",
|
|
48247
48245
|
align: "center"
|
|
@@ -48594,7 +48592,9 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48594
48592
|
openHeight = _ref$openHeight === void 0 ? "auto" : _ref$openHeight,
|
|
48595
48593
|
_ref$containerStyles = _ref.containerStyles,
|
|
48596
48594
|
containerStyles = _ref$containerStyles === void 0 ? "" : _ref$containerStyles,
|
|
48597
|
-
ariaDescribedBy = _ref.ariaDescribedBy
|
|
48595
|
+
ariaDescribedBy = _ref.ariaDescribedBy,
|
|
48596
|
+
_ref$isRequired = _ref.isRequired,
|
|
48597
|
+
isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
|
|
48598
48598
|
|
|
48599
48599
|
var handleKeyDown = function handleKeyDown(id, e) {
|
|
48600
48600
|
if ((e === null || e === void 0 ? void 0 : e.keyCode) === 13 || (e === null || e === void 0 ? void 0 : e.keyCode) === 32) {
|
|
@@ -48650,7 +48650,8 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48650
48650
|
extraStyles: containerStyles
|
|
48651
48651
|
}, /*#__PURE__*/React.createElement(Stack, {
|
|
48652
48652
|
childGap: "0",
|
|
48653
|
-
role: "radiogroup"
|
|
48653
|
+
role: "radiogroup",
|
|
48654
|
+
required: isRequired
|
|
48654
48655
|
}, sections.filter(function (section) {
|
|
48655
48656
|
return !section.hidden;
|
|
48656
48657
|
}).map(function (section) {
|
|
@@ -48672,7 +48673,8 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48672
48673
|
extraStyles: borderStyles,
|
|
48673
48674
|
role: "radio",
|
|
48674
48675
|
"aria-checked": openSection === section.id,
|
|
48675
|
-
|
|
48676
|
+
disabled: section.disabled,
|
|
48677
|
+
required: section === null || section === void 0 ? void 0 : section.required
|
|
48676
48678
|
}, /*#__PURE__*/React.createElement(Stack, {
|
|
48677
48679
|
childGap: "0"
|
|
48678
48680
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
@@ -48702,6 +48704,8 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48702
48704
|
}, !section.hideRadioButton && /*#__PURE__*/React.createElement(Box, {
|
|
48703
48705
|
padding: "0"
|
|
48704
48706
|
}, /*#__PURE__*/React.createElement(RadioButton$2, {
|
|
48707
|
+
role: "radio",
|
|
48708
|
+
required: !!(section !== null && section !== void 0 && section.required),
|
|
48705
48709
|
id: "radio-input-".concat(idString(section)),
|
|
48706
48710
|
name: idString(section),
|
|
48707
48711
|
ariaDescribedBy: ariaDescribedBy,
|