@thecb/components 9.1.4-beta.0 → 9.1.4-beta.5
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 +197 -190
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +197 -190
- 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/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/line-item/LineItem.js +1 -1
- package/src/components/molecules/payment-button-bar/PaymentButtonBar.js +10 -0
- package/src/components/molecules/payment-form-ach/PaymentFormACH.js +19 -3
- package/src/components/molecules/payment-form-ach/PaymentFormACH.state.js +2 -2
- package/src/components/molecules/payment-form-card/PaymentFormCard.js +15 -1
- package/src/components/molecules/radio-section/RadioSection.js +4 -1
- package/src/util/general.js +4 -0
package/dist/index.cjs.js
CHANGED
|
@@ -6364,6 +6364,9 @@ var titleCaseString = function titleCaseString(string) {
|
|
|
6364
6364
|
return index === 0 || index === string.length - 1 || word.length > 3 ? titleCaseWord(word.toLowerCase()) : word;
|
|
6365
6365
|
}).join(" ");
|
|
6366
6366
|
};
|
|
6367
|
+
var kebabCaseString = function kebabCaseString(string) {
|
|
6368
|
+
return string === null || string === void 0 ? void 0 : string.replaceAll(" ", "-").toLowerCase();
|
|
6369
|
+
};
|
|
6367
6370
|
|
|
6368
6371
|
var general = /*#__PURE__*/Object.freeze({
|
|
6369
6372
|
__proto__: null,
|
|
@@ -6383,7 +6386,8 @@ var general = /*#__PURE__*/Object.freeze({
|
|
|
6383
6386
|
MOBILE_WIDTH: MOBILE_WIDTH,
|
|
6384
6387
|
throttle: throttle,
|
|
6385
6388
|
titleCaseWord: titleCaseWord,
|
|
6386
|
-
titleCaseString: titleCaseString
|
|
6389
|
+
titleCaseString: titleCaseString,
|
|
6390
|
+
kebabCaseString: kebabCaseString
|
|
6387
6391
|
});
|
|
6388
6392
|
|
|
6389
6393
|
var _excluded$1 = ["themeValues", "weight", "color", "textWrap", "extraStyles", "hoverStyles", "onClick", "onKeyPress", "as", "dataQa", "children", "variant"];
|
|
@@ -12402,7 +12406,7 @@ if (typeof window !== "undefined") {
|
|
|
12402
12406
|
var MotionWrapper = styled__default(motion.div).withConfig({
|
|
12403
12407
|
displayName: "Motionstyled__MotionWrapper",
|
|
12404
12408
|
componentId: "sc-1m6r1io-0"
|
|
12405
|
-
})(["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) {
|
|
12406
12410
|
var position = _ref.position;
|
|
12407
12411
|
return position;
|
|
12408
12412
|
}, function (_ref2) {
|
|
@@ -22419,18 +22423,17 @@ var DropdownIcon = function DropdownIcon() {
|
|
|
22419
22423
|
};
|
|
22420
22424
|
|
|
22421
22425
|
var check = function (it) {
|
|
22422
|
-
return it && it.Math
|
|
22426
|
+
return it && it.Math == Math && it;
|
|
22423
22427
|
};
|
|
22424
22428
|
|
|
22425
22429
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
22426
22430
|
var global_1 =
|
|
22427
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
|
22431
|
+
// eslint-disable-next-line es-x/no-global-this -- safe
|
|
22428
22432
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
22429
22433
|
check(typeof window == 'object' && window) ||
|
|
22430
22434
|
// eslint-disable-next-line no-restricted-globals -- safe
|
|
22431
22435
|
check(typeof self == 'object' && self) ||
|
|
22432
22436
|
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
22433
|
-
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
22434
22437
|
// eslint-disable-next-line no-new-func -- fallback
|
|
22435
22438
|
(function () { return this; })() || Function('return this')();
|
|
22436
22439
|
|
|
@@ -22444,12 +22447,12 @@ var fails = function (exec) {
|
|
|
22444
22447
|
|
|
22445
22448
|
// Detect IE8's incomplete defineProperty implementation
|
|
22446
22449
|
var descriptors = !fails(function () {
|
|
22447
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
22448
|
-
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;
|
|
22449
22452
|
});
|
|
22450
22453
|
|
|
22451
22454
|
var functionBindNative = !fails(function () {
|
|
22452
|
-
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
22455
|
+
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
|
22453
22456
|
var test = (function () { /* empty */ }).bind();
|
|
22454
22457
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
22455
22458
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
@@ -22462,7 +22465,7 @@ var functionCall = functionBindNative ? call.bind(call) : function () {
|
|
|
22462
22465
|
};
|
|
22463
22466
|
|
|
22464
22467
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
22465
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22468
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
22466
22469
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
22467
22470
|
|
|
22468
22471
|
// Nashorn ~ JDK8 bug
|
|
@@ -22489,11 +22492,14 @@ var createPropertyDescriptor = function (bitmap, value) {
|
|
|
22489
22492
|
};
|
|
22490
22493
|
|
|
22491
22494
|
var FunctionPrototype = Function.prototype;
|
|
22495
|
+
var bind$1 = FunctionPrototype.bind;
|
|
22492
22496
|
var call$1 = FunctionPrototype.call;
|
|
22493
|
-
var
|
|
22497
|
+
var uncurryThis = functionBindNative && bind$1.bind(call$1, call$1);
|
|
22494
22498
|
|
|
22495
|
-
var functionUncurryThis = functionBindNative ?
|
|
22496
|
-
return
|
|
22499
|
+
var functionUncurryThis = functionBindNative ? function (fn) {
|
|
22500
|
+
return fn && uncurryThis(fn);
|
|
22501
|
+
} : function (fn) {
|
|
22502
|
+
return fn && function () {
|
|
22497
22503
|
return call$1.apply(fn, arguments);
|
|
22498
22504
|
};
|
|
22499
22505
|
};
|
|
@@ -22514,21 +22520,15 @@ var indexedObject = fails(function () {
|
|
|
22514
22520
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
22515
22521
|
return !$Object('z').propertyIsEnumerable(0);
|
|
22516
22522
|
}) ? function (it) {
|
|
22517
|
-
return classofRaw(it)
|
|
22523
|
+
return classofRaw(it) == 'String' ? split(it, '') : $Object(it);
|
|
22518
22524
|
} : $Object;
|
|
22519
22525
|
|
|
22520
|
-
// we can't use just `it == null` since of `document.all` special case
|
|
22521
|
-
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
22522
|
-
var isNullOrUndefined = function (it) {
|
|
22523
|
-
return it === null || it === undefined;
|
|
22524
|
-
};
|
|
22525
|
-
|
|
22526
22526
|
var $TypeError = TypeError;
|
|
22527
22527
|
|
|
22528
22528
|
// `RequireObjectCoercible` abstract operation
|
|
22529
22529
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
22530
22530
|
var requireObjectCoercible = function (it) {
|
|
22531
|
-
if (
|
|
22531
|
+
if (it == undefined) throw $TypeError("Can't call method on " + it);
|
|
22532
22532
|
return it;
|
|
22533
22533
|
};
|
|
22534
22534
|
|
|
@@ -22540,32 +22540,13 @@ var toIndexedObject = function (it) {
|
|
|
22540
22540
|
return indexedObject(requireObjectCoercible(it));
|
|
22541
22541
|
};
|
|
22542
22542
|
|
|
22543
|
-
var documentAll = typeof document == 'object' && document.all;
|
|
22544
|
-
|
|
22545
|
-
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
22546
|
-
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
22547
|
-
var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
|
|
22548
|
-
|
|
22549
|
-
var documentAll_1 = {
|
|
22550
|
-
all: documentAll,
|
|
22551
|
-
IS_HTMLDDA: IS_HTMLDDA
|
|
22552
|
-
};
|
|
22553
|
-
|
|
22554
|
-
var documentAll$1 = documentAll_1.all;
|
|
22555
|
-
|
|
22556
22543
|
// `IsCallable` abstract operation
|
|
22557
22544
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
22558
|
-
var isCallable =
|
|
22559
|
-
return typeof argument == 'function' || argument === documentAll$1;
|
|
22560
|
-
} : function (argument) {
|
|
22545
|
+
var isCallable = function (argument) {
|
|
22561
22546
|
return typeof argument == 'function';
|
|
22562
22547
|
};
|
|
22563
22548
|
|
|
22564
|
-
var
|
|
22565
|
-
|
|
22566
|
-
var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
|
|
22567
|
-
return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
|
|
22568
|
-
} : function (it) {
|
|
22549
|
+
var isObject = function (it) {
|
|
22569
22550
|
return typeof it == 'object' ? it !== null : isCallable(it);
|
|
22570
22551
|
};
|
|
22571
22552
|
|
|
@@ -22579,7 +22560,7 @@ var getBuiltIn = function (namespace, method) {
|
|
|
22579
22560
|
|
|
22580
22561
|
var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
|
|
22581
22562
|
|
|
22582
|
-
var engineUserAgent =
|
|
22563
|
+
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
|
|
22583
22564
|
|
|
22584
22565
|
var process$1 = global_1.process;
|
|
22585
22566
|
var Deno = global_1.Deno;
|
|
@@ -22606,29 +22587,24 @@ if (!version && engineUserAgent) {
|
|
|
22606
22587
|
|
|
22607
22588
|
var engineV8Version = version;
|
|
22608
22589
|
|
|
22609
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
22610
|
-
|
|
22590
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
22611
22591
|
|
|
22612
22592
|
|
|
22613
22593
|
|
|
22614
|
-
|
|
22615
|
-
|
|
22616
|
-
|
|
22617
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
22618
|
-
var symbol = Symbol('symbol detection');
|
|
22594
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
|
22595
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
22596
|
+
var symbol = Symbol();
|
|
22619
22597
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
22620
22598
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
22621
|
-
|
|
22622
|
-
// of course, fail.
|
|
22623
|
-
return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
22599
|
+
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
22624
22600
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
22625
22601
|
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
|
22626
22602
|
});
|
|
22627
22603
|
|
|
22628
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
22604
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
22629
22605
|
|
|
22630
22606
|
|
|
22631
|
-
var useSymbolAsUid =
|
|
22607
|
+
var useSymbolAsUid = nativeSymbol
|
|
22632
22608
|
&& !Symbol.sham
|
|
22633
22609
|
&& typeof Symbol.iterator == 'symbol';
|
|
22634
22610
|
|
|
@@ -22641,11 +22617,11 @@ var isSymbol = useSymbolAsUid ? function (it) {
|
|
|
22641
22617
|
return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, $Object$1(it));
|
|
22642
22618
|
};
|
|
22643
22619
|
|
|
22644
|
-
var $String
|
|
22620
|
+
var $String = String;
|
|
22645
22621
|
|
|
22646
22622
|
var tryToString = function (argument) {
|
|
22647
22623
|
try {
|
|
22648
|
-
return $String
|
|
22624
|
+
return $String(argument);
|
|
22649
22625
|
} catch (error) {
|
|
22650
22626
|
return 'Object';
|
|
22651
22627
|
}
|
|
@@ -22656,14 +22632,14 @@ var $TypeError$1 = TypeError;
|
|
|
22656
22632
|
// `Assert: IsCallable(argument) is true`
|
|
22657
22633
|
var aCallable = function (argument) {
|
|
22658
22634
|
if (isCallable(argument)) return argument;
|
|
22659
|
-
throw
|
|
22635
|
+
throw $TypeError$1(tryToString(argument) + ' is not a function');
|
|
22660
22636
|
};
|
|
22661
22637
|
|
|
22662
22638
|
// `GetMethod` abstract operation
|
|
22663
22639
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
22664
22640
|
var getMethod = function (V, P) {
|
|
22665
22641
|
var func = V[P];
|
|
22666
|
-
return
|
|
22642
|
+
return func == null ? undefined : aCallable(func);
|
|
22667
22643
|
};
|
|
22668
22644
|
|
|
22669
22645
|
var $TypeError$2 = TypeError;
|
|
@@ -22675,10 +22651,10 @@ var ordinaryToPrimitive = function (input, pref) {
|
|
|
22675
22651
|
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
|
22676
22652
|
if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
|
|
22677
22653
|
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
|
22678
|
-
throw
|
|
22654
|
+
throw $TypeError$2("Can't convert object to primitive value");
|
|
22679
22655
|
};
|
|
22680
22656
|
|
|
22681
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
22657
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
22682
22658
|
var defineProperty = Object.defineProperty;
|
|
22683
22659
|
|
|
22684
22660
|
var defineGlobalProperty = function (key, value) {
|
|
@@ -22695,16 +22671,13 @@ var store = global_1[SHARED] || defineGlobalProperty(SHARED, {});
|
|
|
22695
22671
|
var sharedStore = store;
|
|
22696
22672
|
|
|
22697
22673
|
var shared = createCommonjsModule(function (module) {
|
|
22698
|
-
|
|
22699
|
-
|
|
22700
|
-
|
|
22701
22674
|
(module.exports = function (key, value) {
|
|
22702
22675
|
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
22703
22676
|
})('versions', []).push({
|
|
22704
|
-
version: '3.
|
|
22677
|
+
version: '3.24.1',
|
|
22705
22678
|
mode: 'global',
|
|
22706
|
-
copyright: '© 2014-
|
|
22707
|
-
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',
|
|
22708
22681
|
source: 'https://github.com/zloirock/core-js'
|
|
22709
22682
|
});
|
|
22710
22683
|
});
|
|
@@ -22721,7 +22694,7 @@ var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
|
|
|
22721
22694
|
|
|
22722
22695
|
// `HasOwnProperty` abstract operation
|
|
22723
22696
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
22724
|
-
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
22697
|
+
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
|
22725
22698
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
22726
22699
|
return hasOwnProperty(toObject(it), key);
|
|
22727
22700
|
};
|
|
@@ -22734,15 +22707,21 @@ var uid = function (key) {
|
|
|
22734
22707
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
|
|
22735
22708
|
};
|
|
22736
22709
|
|
|
22737
|
-
var Symbol$1 = global_1.Symbol;
|
|
22738
22710
|
var WellKnownSymbolsStore = shared('wks');
|
|
22739
|
-
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;
|
|
22740
22714
|
|
|
22741
22715
|
var wellKnownSymbol = function (name) {
|
|
22742
|
-
if (!hasOwnProperty_1(WellKnownSymbolsStore, name)) {
|
|
22743
|
-
|
|
22744
|
-
|
|
22745
|
-
|
|
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
|
+
}
|
|
22746
22725
|
} return WellKnownSymbolsStore[name];
|
|
22747
22726
|
};
|
|
22748
22727
|
|
|
@@ -22759,7 +22738,7 @@ var toPrimitive = function (input, pref) {
|
|
|
22759
22738
|
if (pref === undefined) pref = 'default';
|
|
22760
22739
|
result = functionCall(exoticToPrim, input, pref);
|
|
22761
22740
|
if (!isObject(result) || isSymbol(result)) return result;
|
|
22762
|
-
throw
|
|
22741
|
+
throw $TypeError$3("Can't convert object to primitive value");
|
|
22763
22742
|
}
|
|
22764
22743
|
if (pref === undefined) pref = 'number';
|
|
22765
22744
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -22782,13 +22761,13 @@ var documentCreateElement = function (it) {
|
|
|
22782
22761
|
|
|
22783
22762
|
// Thanks to IE8 for its funny defineProperty
|
|
22784
22763
|
var ie8DomDefine = !descriptors && !fails(function () {
|
|
22785
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
22764
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
22786
22765
|
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
|
22787
22766
|
get: function () { return 7; }
|
|
22788
|
-
}).a
|
|
22767
|
+
}).a != 7;
|
|
22789
22768
|
});
|
|
22790
22769
|
|
|
22791
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22770
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
22792
22771
|
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
22793
22772
|
|
|
22794
22773
|
// `Object.getOwnPropertyDescriptor` method
|
|
@@ -22809,26 +22788,26 @@ var objectGetOwnPropertyDescriptor = {
|
|
|
22809
22788
|
// V8 ~ Chrome 36-
|
|
22810
22789
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
22811
22790
|
var v8PrototypeDefineBug = descriptors && fails(function () {
|
|
22812
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
22791
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
22813
22792
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
22814
22793
|
value: 42,
|
|
22815
22794
|
writable: false
|
|
22816
|
-
}).prototype
|
|
22795
|
+
}).prototype != 42;
|
|
22817
22796
|
});
|
|
22818
22797
|
|
|
22819
|
-
var $String$
|
|
22798
|
+
var $String$1 = String;
|
|
22820
22799
|
var $TypeError$4 = TypeError;
|
|
22821
22800
|
|
|
22822
22801
|
// `Assert: Type(argument) is Object`
|
|
22823
22802
|
var anObject = function (argument) {
|
|
22824
22803
|
if (isObject(argument)) return argument;
|
|
22825
|
-
throw
|
|
22804
|
+
throw $TypeError$4($String$1(argument) + ' is not an object');
|
|
22826
22805
|
};
|
|
22827
22806
|
|
|
22828
22807
|
var $TypeError$5 = TypeError;
|
|
22829
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
22808
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
22830
22809
|
var $defineProperty = Object.defineProperty;
|
|
22831
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22810
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
22832
22811
|
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
22833
22812
|
var ENUMERABLE = 'enumerable';
|
|
22834
22813
|
var CONFIGURABLE = 'configurable';
|
|
@@ -22858,7 +22837,7 @@ var f$2 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Att
|
|
|
22858
22837
|
if (ie8DomDefine) try {
|
|
22859
22838
|
return $defineProperty(O, P, Attributes);
|
|
22860
22839
|
} catch (error) { /* empty */ }
|
|
22861
|
-
if ('get' in Attributes || 'set' in Attributes) throw
|
|
22840
|
+
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$5('Accessors not supported');
|
|
22862
22841
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
22863
22842
|
return O;
|
|
22864
22843
|
};
|
|
@@ -22875,7 +22854,7 @@ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
|
|
|
22875
22854
|
};
|
|
22876
22855
|
|
|
22877
22856
|
var FunctionPrototype$1 = Function.prototype;
|
|
22878
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22857
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
22879
22858
|
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
|
22880
22859
|
|
|
22881
22860
|
var EXISTS$1 = hasOwnProperty_1(FunctionPrototype$1, 'name');
|
|
@@ -22902,7 +22881,7 @@ var inspectSource = sharedStore.inspectSource;
|
|
|
22902
22881
|
|
|
22903
22882
|
var WeakMap$1 = global_1.WeakMap;
|
|
22904
22883
|
|
|
22905
|
-
var
|
|
22884
|
+
var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
|
|
22906
22885
|
|
|
22907
22886
|
var keys$1 = shared('keys');
|
|
22908
22887
|
|
|
@@ -22925,29 +22904,27 @@ var getterFor = function (TYPE) {
|
|
|
22925
22904
|
return function (it) {
|
|
22926
22905
|
var state;
|
|
22927
22906
|
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
|
22928
|
-
throw
|
|
22907
|
+
throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
22929
22908
|
} return state;
|
|
22930
22909
|
};
|
|
22931
22910
|
};
|
|
22932
22911
|
|
|
22933
|
-
if (
|
|
22912
|
+
if (nativeWeakMap || sharedStore.state) {
|
|
22934
22913
|
var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$2());
|
|
22935
|
-
|
|
22936
|
-
|
|
22937
|
-
|
|
22938
|
-
store$1.set = store$1.set;
|
|
22939
|
-
/* 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);
|
|
22940
22917
|
set = function (it, metadata) {
|
|
22941
|
-
if (store$1
|
|
22918
|
+
if (wmhas(store$1, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
22942
22919
|
metadata.facade = it;
|
|
22943
|
-
store$1
|
|
22920
|
+
wmset(store$1, it, metadata);
|
|
22944
22921
|
return metadata;
|
|
22945
22922
|
};
|
|
22946
22923
|
get = function (it) {
|
|
22947
|
-
return store$1
|
|
22924
|
+
return wmget(store$1, it) || {};
|
|
22948
22925
|
};
|
|
22949
22926
|
has = function (it) {
|
|
22950
|
-
return store$1
|
|
22927
|
+
return wmhas(store$1, it);
|
|
22951
22928
|
};
|
|
22952
22929
|
} else {
|
|
22953
22930
|
var STATE = sharedKey('state');
|
|
@@ -22975,23 +22952,14 @@ var internalState = {
|
|
|
22975
22952
|
};
|
|
22976
22953
|
|
|
22977
22954
|
var makeBuiltIn_1 = createCommonjsModule(function (module) {
|
|
22978
|
-
|
|
22979
|
-
|
|
22980
|
-
|
|
22981
|
-
|
|
22982
|
-
|
|
22983
22955
|
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
22984
22956
|
|
|
22985
22957
|
|
|
22986
22958
|
|
|
22987
22959
|
var enforceInternalState = internalState.enforce;
|
|
22988
22960
|
var getInternalState = internalState.get;
|
|
22989
|
-
|
|
22990
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
22961
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
22991
22962
|
var defineProperty = Object.defineProperty;
|
|
22992
|
-
var stringSlice = functionUncurryThis(''.slice);
|
|
22993
|
-
var replace = functionUncurryThis(''.replace);
|
|
22994
|
-
var join = functionUncurryThis([].join);
|
|
22995
22963
|
|
|
22996
22964
|
var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
|
|
22997
22965
|
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
@@ -23000,8 +22968,8 @@ var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
|
|
|
23000
22968
|
var TEMPLATE = String(String).split('String');
|
|
23001
22969
|
|
|
23002
22970
|
var makeBuiltIn = module.exports = function (value, name, options) {
|
|
23003
|
-
if (
|
|
23004
|
-
name = '[' +
|
|
22971
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
22972
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
23005
22973
|
}
|
|
23006
22974
|
if (options && options.getter) name = 'get ' + name;
|
|
23007
22975
|
if (options && options.setter) name = 'set ' + name;
|
|
@@ -23020,7 +22988,7 @@ var makeBuiltIn = module.exports = function (value, name, options) {
|
|
|
23020
22988
|
} catch (error) { /* empty */ }
|
|
23021
22989
|
var state = enforceInternalState(value);
|
|
23022
22990
|
if (!hasOwnProperty_1(state, 'source')) {
|
|
23023
|
-
state.source = join(
|
|
22991
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
23024
22992
|
} return value;
|
|
23025
22993
|
};
|
|
23026
22994
|
|
|
@@ -23059,7 +23027,7 @@ var floor = Math.floor;
|
|
|
23059
23027
|
|
|
23060
23028
|
// `Math.trunc` method
|
|
23061
23029
|
// https://tc39.es/ecma262/#sec-math.trunc
|
|
23062
|
-
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
23030
|
+
// eslint-disable-next-line es-x/no-math-trunc -- safe
|
|
23063
23031
|
var mathTrunc = Math.trunc || function trunc(x) {
|
|
23064
23032
|
var n = +x;
|
|
23065
23033
|
return (n > 0 ? floor : ceil)(n);
|
|
@@ -23107,10 +23075,10 @@ var createMethod = function (IS_INCLUDES) {
|
|
|
23107
23075
|
var value;
|
|
23108
23076
|
// Array#includes uses SameValueZero equality algorithm
|
|
23109
23077
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
23110
|
-
if (IS_INCLUDES && el
|
|
23078
|
+
if (IS_INCLUDES && el != el) while (length > index) {
|
|
23111
23079
|
value = O[index++];
|
|
23112
23080
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
23113
|
-
if (value
|
|
23081
|
+
if (value != value) return true;
|
|
23114
23082
|
// Array#indexOf ignores holes, Array#includes - not
|
|
23115
23083
|
} else for (;length > index; index++) {
|
|
23116
23084
|
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
@@ -23160,7 +23128,7 @@ var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
|
|
|
23160
23128
|
|
|
23161
23129
|
// `Object.getOwnPropertyNames` method
|
|
23162
23130
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
23163
|
-
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
23131
|
+
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
|
23164
23132
|
var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
23165
23133
|
return objectKeysInternal(O, hiddenKeys$1);
|
|
23166
23134
|
};
|
|
@@ -23169,7 +23137,7 @@ var objectGetOwnPropertyNames = {
|
|
|
23169
23137
|
f: f$3
|
|
23170
23138
|
};
|
|
23171
23139
|
|
|
23172
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
23140
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
|
23173
23141
|
var f$4 = Object.getOwnPropertySymbols;
|
|
23174
23142
|
|
|
23175
23143
|
var objectGetOwnPropertySymbols = {
|
|
@@ -23201,8 +23169,8 @@ var replacement = /#|\.prototype\./;
|
|
|
23201
23169
|
|
|
23202
23170
|
var isForced = function (feature, detection) {
|
|
23203
23171
|
var value = data[normalize(feature)];
|
|
23204
|
-
return value
|
|
23205
|
-
: value
|
|
23172
|
+
return value == POLYFILL ? true
|
|
23173
|
+
: value == NATIVE ? false
|
|
23206
23174
|
: isCallable(detection) ? fails(detection)
|
|
23207
23175
|
: !!detection;
|
|
23208
23176
|
};
|
|
@@ -23282,7 +23250,7 @@ var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
|
|
|
23282
23250
|
var $Object$3 = Object;
|
|
23283
23251
|
|
|
23284
23252
|
// ES3 wrong here
|
|
23285
|
-
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }())
|
|
23253
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
|
23286
23254
|
|
|
23287
23255
|
// fallback for IE11 Script Access Denied error
|
|
23288
23256
|
var tryGet = function (it, key) {
|
|
@@ -23300,25 +23268,25 @@ var classof = toStringTagSupport ? classofRaw : function (it) {
|
|
|
23300
23268
|
// builtinTag case
|
|
23301
23269
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
23302
23270
|
// ES3 arguments fallback
|
|
23303
|
-
: (result = classofRaw(O))
|
|
23271
|
+
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
|
23304
23272
|
};
|
|
23305
23273
|
|
|
23306
|
-
var $String$
|
|
23274
|
+
var $String$2 = String;
|
|
23307
23275
|
|
|
23308
23276
|
var toString_1 = function (argument) {
|
|
23309
|
-
if (classof(argument) === 'Symbol') throw
|
|
23310
|
-
return $String$
|
|
23277
|
+
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
23278
|
+
return $String$2(argument);
|
|
23311
23279
|
};
|
|
23312
23280
|
|
|
23313
23281
|
var charAt = functionUncurryThis(''.charAt);
|
|
23314
23282
|
|
|
23315
23283
|
var FORCED = fails(function () {
|
|
23316
|
-
// eslint-disable-next-line es/no-array-string-prototype-at -- safe
|
|
23284
|
+
// eslint-disable-next-line es-x/no-array-string-prototype-at -- safe
|
|
23317
23285
|
return '𠮷'.at(-2) !== '\uD842';
|
|
23318
23286
|
});
|
|
23319
23287
|
|
|
23320
23288
|
// `String.prototype.at` method
|
|
23321
|
-
// https://
|
|
23289
|
+
// https://github.com/tc39/proposal-relative-indexing-method
|
|
23322
23290
|
_export({ target: 'String', proto: true, forced: FORCED }, {
|
|
23323
23291
|
at: function at(index) {
|
|
23324
23292
|
var S = toString_1(requireObjectCoercible(this));
|
|
@@ -23331,14 +23299,14 @@ _export({ target: 'String', proto: true, forced: FORCED }, {
|
|
|
23331
23299
|
|
|
23332
23300
|
// `Object.keys` method
|
|
23333
23301
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
23334
|
-
// eslint-disable-next-line es/no-object-keys -- safe
|
|
23302
|
+
// eslint-disable-next-line es-x/no-object-keys -- safe
|
|
23335
23303
|
var objectKeys = Object.keys || function keys(O) {
|
|
23336
23304
|
return objectKeysInternal(O, enumBugKeys);
|
|
23337
23305
|
};
|
|
23338
23306
|
|
|
23339
23307
|
// `Object.defineProperties` method
|
|
23340
23308
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
23341
|
-
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
23309
|
+
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
|
23342
23310
|
var f$5 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
23343
23311
|
anObject(O);
|
|
23344
23312
|
var props = toIndexedObject(Properties);
|
|
@@ -23427,7 +23395,7 @@ hiddenKeys[IE_PROTO] = true;
|
|
|
23427
23395
|
|
|
23428
23396
|
// `Object.create` method
|
|
23429
23397
|
// https://tc39.es/ecma262/#sec-object.create
|
|
23430
|
-
// eslint-disable-next-line es/no-object-create -- safe
|
|
23398
|
+
// eslint-disable-next-line es-x/no-object-create -- safe
|
|
23431
23399
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
23432
23400
|
var result;
|
|
23433
23401
|
if (O !== null) {
|
|
@@ -23447,7 +23415,7 @@ var ArrayPrototype = Array.prototype;
|
|
|
23447
23415
|
|
|
23448
23416
|
// Array.prototype[@@unscopables]
|
|
23449
23417
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
23450
|
-
if (ArrayPrototype[UNSCOPABLES]
|
|
23418
|
+
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
23451
23419
|
defineProperty$1(ArrayPrototype, UNSCOPABLES, {
|
|
23452
23420
|
configurable: true,
|
|
23453
23421
|
value: objectCreate(null)
|
|
@@ -23460,7 +23428,7 @@ var addToUnscopables = function (key) {
|
|
|
23460
23428
|
};
|
|
23461
23429
|
|
|
23462
23430
|
// `Array.prototype.at` method
|
|
23463
|
-
// https://
|
|
23431
|
+
// https://github.com/tc39/proposal-relative-indexing-method
|
|
23464
23432
|
_export({ target: 'Array', proto: true }, {
|
|
23465
23433
|
at: function at(index) {
|
|
23466
23434
|
var O = toObject(this);
|
|
@@ -23473,19 +23441,13 @@ _export({ target: 'Array', proto: true }, {
|
|
|
23473
23441
|
|
|
23474
23442
|
addToUnscopables('at');
|
|
23475
23443
|
|
|
23476
|
-
// eslint-disable-next-line es/no-typed-arrays -- safe
|
|
23477
|
-
var
|
|
23478
|
-
|
|
23479
|
-
var defineBuiltInAccessor = function (target, name, descriptor) {
|
|
23480
|
-
if (descriptor.get) makeBuiltIn_1(descriptor.get, name, { getter: true });
|
|
23481
|
-
if (descriptor.set) makeBuiltIn_1(descriptor.set, name, { setter: true });
|
|
23482
|
-
return objectDefineProperty.f(target, name, descriptor);
|
|
23483
|
-
};
|
|
23444
|
+
// eslint-disable-next-line es-x/no-typed-arrays -- safe
|
|
23445
|
+
var arrayBufferNative = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
|
|
23484
23446
|
|
|
23485
23447
|
var correctPrototypeGetter = !fails(function () {
|
|
23486
23448
|
function F() { /* empty */ }
|
|
23487
23449
|
F.prototype.constructor = null;
|
|
23488
|
-
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
23450
|
+
// eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
|
|
23489
23451
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
23490
23452
|
});
|
|
23491
23453
|
|
|
@@ -23495,7 +23457,7 @@ var ObjectPrototype = $Object$4.prototype;
|
|
|
23495
23457
|
|
|
23496
23458
|
// `Object.getPrototypeOf` method
|
|
23497
23459
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
23498
|
-
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
23460
|
+
// eslint-disable-next-line es-x/no-object-getprototypeof -- safe
|
|
23499
23461
|
var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : function (O) {
|
|
23500
23462
|
var object = toObject(O);
|
|
23501
23463
|
if (hasOwnProperty_1(object, IE_PROTO$1)) return object[IE_PROTO$1];
|
|
@@ -23505,19 +23467,12 @@ var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : f
|
|
|
23505
23467
|
} return object instanceof $Object$4 ? ObjectPrototype : null;
|
|
23506
23468
|
};
|
|
23507
23469
|
|
|
23508
|
-
var
|
|
23509
|
-
try {
|
|
23510
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
23511
|
-
return functionUncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
23512
|
-
} catch (error) { /* empty */ }
|
|
23513
|
-
};
|
|
23514
|
-
|
|
23515
|
-
var $String$4 = String;
|
|
23470
|
+
var $String$3 = String;
|
|
23516
23471
|
var $TypeError$6 = TypeError;
|
|
23517
23472
|
|
|
23518
23473
|
var aPossiblePrototype = function (argument) {
|
|
23519
23474
|
if (typeof argument == 'object' || isCallable(argument)) return argument;
|
|
23520
|
-
throw
|
|
23475
|
+
throw $TypeError$6("Can't set " + $String$3(argument) + ' as a prototype');
|
|
23521
23476
|
};
|
|
23522
23477
|
|
|
23523
23478
|
/* eslint-disable no-proto -- safe */
|
|
@@ -23528,13 +23483,14 @@ var aPossiblePrototype = function (argument) {
|
|
|
23528
23483
|
// `Object.setPrototypeOf` method
|
|
23529
23484
|
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
23530
23485
|
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
23531
|
-
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
23486
|
+
// eslint-disable-next-line es-x/no-object-setprototypeof -- safe
|
|
23532
23487
|
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
23533
23488
|
var CORRECT_SETTER = false;
|
|
23534
23489
|
var test = {};
|
|
23535
23490
|
var setter;
|
|
23536
23491
|
try {
|
|
23537
|
-
|
|
23492
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
23493
|
+
setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
23538
23494
|
setter(test, []);
|
|
23539
23495
|
CORRECT_SETTER = test instanceof Array;
|
|
23540
23496
|
} catch (error) { /* empty */ }
|
|
@@ -23547,6 +23503,14 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
23547
23503
|
};
|
|
23548
23504
|
}() : undefined);
|
|
23549
23505
|
|
|
23506
|
+
var defineProperty$2 = objectDefineProperty.f;
|
|
23507
|
+
|
|
23508
|
+
|
|
23509
|
+
|
|
23510
|
+
|
|
23511
|
+
|
|
23512
|
+
|
|
23513
|
+
|
|
23550
23514
|
var enforceInternalState = internalState.enforce;
|
|
23551
23515
|
var getInternalState = internalState.get;
|
|
23552
23516
|
var Int8Array = global_1.Int8Array;
|
|
@@ -23562,7 +23526,7 @@ var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
|
|
|
23562
23526
|
var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
|
|
23563
23527
|
var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
|
|
23564
23528
|
// Fixing native typed arrays in Opera Presto crashes the browser, see #595
|
|
23565
|
-
var NATIVE_ARRAY_BUFFER_VIEWS =
|
|
23529
|
+
var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferNative && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
|
|
23566
23530
|
var TYPED_ARRAY_TAG_REQUIRED = false;
|
|
23567
23531
|
var NAME, Constructor, Prototype;
|
|
23568
23532
|
|
|
@@ -23607,12 +23571,12 @@ var isTypedArray = function (it) {
|
|
|
23607
23571
|
|
|
23608
23572
|
var aTypedArray = function (it) {
|
|
23609
23573
|
if (isTypedArray(it)) return it;
|
|
23610
|
-
throw
|
|
23574
|
+
throw TypeError$2('Target is not a typed array');
|
|
23611
23575
|
};
|
|
23612
23576
|
|
|
23613
23577
|
var aTypedArrayConstructor = function (C) {
|
|
23614
23578
|
if (isCallable(C) && (!objectSetPrototypeOf || objectIsPrototypeOf(TypedArray, C))) return C;
|
|
23615
|
-
throw
|
|
23579
|
+
throw TypeError$2(tryToString(C) + ' is not a typed array constructor');
|
|
23616
23580
|
};
|
|
23617
23581
|
|
|
23618
23582
|
var exportTypedArrayMethod = function (KEY, property, forced, options) {
|
|
@@ -23676,7 +23640,7 @@ for (NAME in BigIntArrayConstructorsList) {
|
|
|
23676
23640
|
if (!NATIVE_ARRAY_BUFFER_VIEWS || !isCallable(TypedArray) || TypedArray === Function.prototype) {
|
|
23677
23641
|
// eslint-disable-next-line no-shadow -- safe
|
|
23678
23642
|
TypedArray = function TypedArray() {
|
|
23679
|
-
throw
|
|
23643
|
+
throw TypeError$2('Incorrect invocation');
|
|
23680
23644
|
};
|
|
23681
23645
|
if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {
|
|
23682
23646
|
if (global_1[NAME]) objectSetPrototypeOf(global_1[NAME], TypedArray);
|
|
@@ -23697,12 +23661,9 @@ if (NATIVE_ARRAY_BUFFER_VIEWS && objectGetPrototypeOf(Uint8ClampedArrayPrototype
|
|
|
23697
23661
|
|
|
23698
23662
|
if (descriptors && !hasOwnProperty_1(TypedArrayPrototype, TO_STRING_TAG$2)) {
|
|
23699
23663
|
TYPED_ARRAY_TAG_REQUIRED = true;
|
|
23700
|
-
|
|
23701
|
-
|
|
23702
|
-
|
|
23703
|
-
return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
|
|
23704
|
-
}
|
|
23705
|
-
});
|
|
23664
|
+
defineProperty$2(TypedArrayPrototype, TO_STRING_TAG$2, { get: function () {
|
|
23665
|
+
return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;
|
|
23666
|
+
} });
|
|
23706
23667
|
for (NAME in TypedArrayConstructorsList) if (global_1[NAME]) {
|
|
23707
23668
|
createNonEnumerableProperty(global_1[NAME], TYPED_ARRAY_TAG, NAME);
|
|
23708
23669
|
}
|
|
@@ -23726,7 +23687,7 @@ var aTypedArray$1 = arrayBufferViewCore.aTypedArray;
|
|
|
23726
23687
|
var exportTypedArrayMethod$1 = arrayBufferViewCore.exportTypedArrayMethod;
|
|
23727
23688
|
|
|
23728
23689
|
// `%TypedArray%.prototype.at` method
|
|
23729
|
-
// https://
|
|
23690
|
+
// https://github.com/tc39/proposal-relative-indexing-method
|
|
23730
23691
|
exportTypedArrayMethod$1('at', function at(index) {
|
|
23731
23692
|
var O = aTypedArray$1(this);
|
|
23732
23693
|
var len = lengthOfArrayLike(O);
|
|
@@ -24242,7 +24203,9 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24242
24203
|
_ref$dataQa = _ref.dataQa,
|
|
24243
24204
|
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
|
|
24244
24205
|
_ref$widthFitOptions = _ref.widthFitOptions,
|
|
24245
|
-
widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions
|
|
24206
|
+
widthFitOptions = _ref$widthFitOptions === void 0 ? false : _ref$widthFitOptions,
|
|
24207
|
+
_ref$isRequired = _ref.isRequired,
|
|
24208
|
+
isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
|
|
24246
24209
|
|
|
24247
24210
|
var _useState = React.useState(false),
|
|
24248
24211
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -24304,7 +24267,8 @@ var FormSelect = function FormSelect(_ref) {
|
|
|
24304
24267
|
},
|
|
24305
24268
|
disabled: disabled,
|
|
24306
24269
|
autocompleteValue: autocompleteValue,
|
|
24307
|
-
smoothScroll: smoothScroll
|
|
24270
|
+
smoothScroll: smoothScroll,
|
|
24271
|
+
required: isRequired
|
|
24308
24272
|
}), /*#__PURE__*/React__default.createElement(Stack, {
|
|
24309
24273
|
direction: "row",
|
|
24310
24274
|
justify: "space-between"
|
|
@@ -25074,7 +25038,9 @@ var CountryDropdown = function CountryDropdown(_ref) {
|
|
|
25074
25038
|
showErrors = _ref.showErrors,
|
|
25075
25039
|
onChange = _ref.onChange,
|
|
25076
25040
|
_ref$dataQa = _ref.dataQa,
|
|
25077
|
-
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa
|
|
25041
|
+
dataQa = _ref$dataQa === void 0 ? null : _ref$dataQa,
|
|
25042
|
+
_ref$isRequired = _ref.isRequired,
|
|
25043
|
+
isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired;
|
|
25078
25044
|
return /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
25079
25045
|
options: options,
|
|
25080
25046
|
field: field,
|
|
@@ -25084,7 +25050,8 @@ var CountryDropdown = function CountryDropdown(_ref) {
|
|
|
25084
25050
|
errorMessages: errorMessages,
|
|
25085
25051
|
showErrors: showErrors,
|
|
25086
25052
|
onChange: onChange,
|
|
25087
|
-
autocompleteValue: "country-name"
|
|
25053
|
+
autocompleteValue: "country-name",
|
|
25054
|
+
isRequired: isRequired
|
|
25088
25055
|
});
|
|
25089
25056
|
};
|
|
25090
25057
|
|
|
@@ -25929,7 +25896,7 @@ var fallbackValues$k = {
|
|
|
25929
25896
|
};
|
|
25930
25897
|
|
|
25931
25898
|
var _excluded$p = ["showErrors", "themeValues"],
|
|
25932
|
-
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa"];
|
|
25899
|
+
_excluded2 = ["type", "labelTextWhenNoError", "errorMessages", "isNum", "isEmail", "helperModal", "field", "fieldActions", "showErrors", "formatter", "decorator", "themeValues", "background", "customHeight", "autocompleteValue", "extraStyles", "removeFromValue", "dataQa", "isRequired"];
|
|
25933
25900
|
var InputField = styled__default.input.withConfig({
|
|
25934
25901
|
displayName: "FormInput__InputField",
|
|
25935
25902
|
componentId: "sc-l094r1-0"
|
|
@@ -26016,6 +25983,8 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26016
25983
|
removeFromValue = _ref15.removeFromValue,
|
|
26017
25984
|
_ref15$dataQa = _ref15.dataQa,
|
|
26018
25985
|
dataQa = _ref15$dataQa === void 0 ? null : _ref15$dataQa,
|
|
25986
|
+
_ref15$isRequired = _ref15.isRequired,
|
|
25987
|
+
isRequired = _ref15$isRequired === void 0 ? false : _ref15$isRequired,
|
|
26019
25988
|
props = _objectWithoutProperties(_ref15, _excluded2);
|
|
26020
25989
|
|
|
26021
25990
|
var _useState = React.useState(false),
|
|
@@ -26102,7 +26071,8 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26102
26071
|
$customHeight: customHeight,
|
|
26103
26072
|
$extraStyles: extraStyles,
|
|
26104
26073
|
"data-qa": dataQa || labelTextWhenNoError,
|
|
26105
|
-
autoComplete: autocompleteValue
|
|
26074
|
+
autoComplete: autocompleteValue,
|
|
26075
|
+
required: isRequired
|
|
26106
26076
|
}, props)) : /*#__PURE__*/React__default.createElement(InputField, _extends({
|
|
26107
26077
|
"aria-labelledby": createIdFromString(labelTextWhenNoError),
|
|
26108
26078
|
"aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
|
|
@@ -26121,7 +26091,8 @@ var FormInput = function FormInput(_ref15) {
|
|
|
26121
26091
|
$customHeight: customHeight,
|
|
26122
26092
|
$extraStyles: extraStyles,
|
|
26123
26093
|
"data-qa": dataQa || labelTextWhenNoError,
|
|
26124
|
-
autoComplete: autocompleteValue
|
|
26094
|
+
autoComplete: autocompleteValue,
|
|
26095
|
+
required: isRequired
|
|
26125
26096
|
}, props))), /*#__PURE__*/React__default.createElement(Stack, {
|
|
26126
26097
|
direction: "row",
|
|
26127
26098
|
justify: "space-between",
|
|
@@ -26678,7 +26649,7 @@ var LineItem = function LineItem(_ref) {
|
|
|
26678
26649
|
};
|
|
26679
26650
|
|
|
26680
26651
|
var visibleCustomAttrs = customAttributes === null || customAttributes === void 0 ? void 0 : (_customAttributes$fil = customAttributes.filter(function (attr) {
|
|
26681
|
-
return visibleFields.includes(attr.key) && attr.key !== "description";
|
|
26652
|
+
return (visibleFields === null || visibleFields === void 0 ? void 0 : visibleFields.includes(attr.key)) && attr.key !== "description";
|
|
26682
26653
|
})) === null || _customAttributes$fil === void 0 ? void 0 : _customAttributes$fil.map(function (attr) {
|
|
26683
26654
|
return /*#__PURE__*/React__default.createElement(Paragraph$1, {
|
|
26684
26655
|
variant: "pS",
|
|
@@ -47109,6 +47080,8 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
47109
47080
|
forwardButtonLoading = _ref.forwardButtonLoading,
|
|
47110
47081
|
_ref$forwardButtonVar = _ref.forwardButtonVariant,
|
|
47111
47082
|
forwardButtonVariant = _ref$forwardButtonVar === void 0 ? "primary" : _ref$forwardButtonVar,
|
|
47083
|
+
_ref$forwardButtonAri = _ref.forwardButtonAriaRole,
|
|
47084
|
+
forwardButtonAriaRole = _ref$forwardButtonAri === void 0 ? "button" : _ref$forwardButtonAri,
|
|
47112
47085
|
_ref$backButtonVarian = _ref.backButtonVariant,
|
|
47113
47086
|
backButtonVariant = _ref$backButtonVarian === void 0 ? "secondary" : _ref$backButtonVarian,
|
|
47114
47087
|
backButtonAction = _ref.backButtonAction,
|
|
@@ -47132,13 +47105,17 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
47132
47105
|
url: cancelURL,
|
|
47133
47106
|
variant: backButtonVariant,
|
|
47134
47107
|
extraStyles: isMobile && "flex-grow: 1",
|
|
47135
|
-
dataQa: cancelText
|
|
47108
|
+
dataQa: cancelText,
|
|
47109
|
+
"aria-labelledby": "".concat(kebabCaseString(cancelText), "-button"),
|
|
47110
|
+
role: "link"
|
|
47136
47111
|
}) : backButtonAction && /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
47137
47112
|
text: "Back",
|
|
47138
47113
|
variant: backButtonVariant,
|
|
47139
47114
|
action: backButtonAction,
|
|
47140
47115
|
extraStyles: isMobile && "flex-grow: 1",
|
|
47141
|
-
dataQa: "Back"
|
|
47116
|
+
dataQa: "Back",
|
|
47117
|
+
"aria-labelledby": "back-button",
|
|
47118
|
+
role: "link"
|
|
47142
47119
|
});
|
|
47143
47120
|
var forwardButton = !!redirectURL ? /*#__PURE__*/React__default.createElement(ButtonWithLink, {
|
|
47144
47121
|
url: redirectURL,
|
|
@@ -47146,7 +47123,9 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
47146
47123
|
variant: forwardButtonVariant,
|
|
47147
47124
|
extraStyles: isMobile && "flex-grow: 1",
|
|
47148
47125
|
dataQa: redirectText,
|
|
47149
|
-
disabled: isForwardButtonDisabled
|
|
47126
|
+
disabled: isForwardButtonDisabled,
|
|
47127
|
+
"aria-labelledby": "".concat(kebabCaseString(redirectText), "-button"),
|
|
47128
|
+
role: forwardButtonAriaRole
|
|
47150
47129
|
}) : forwardButtonAction && /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
47151
47130
|
text: forwardButtonText,
|
|
47152
47131
|
variant: forwardButtonVariant,
|
|
@@ -47154,7 +47133,9 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
|
|
|
47154
47133
|
isLoading: forwardButtonLoading,
|
|
47155
47134
|
extraStyles: isMobile && "flex-grow: 1",
|
|
47156
47135
|
dataQa: forwardButtonText,
|
|
47157
|
-
disabled: isForwardButtonDisabled
|
|
47136
|
+
disabled: isForwardButtonDisabled,
|
|
47137
|
+
"aria-labelledby": "".concat(kebabCaseString(forwardButtonText), "-button"),
|
|
47138
|
+
role: forwardButtonAriaRole
|
|
47158
47139
|
});
|
|
47159
47140
|
return /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(Box, {
|
|
47160
47141
|
padding: "1.25rem 0"
|
|
@@ -47886,7 +47867,7 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
|
47886
47867
|
};
|
|
47887
47868
|
|
|
47888
47869
|
var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
47889
|
-
var _routingNumberErrors, _accountNumberErrors;
|
|
47870
|
+
var _routingNumberErrors, _confirmRoutingNumber, _accountNumberErrors, _confirmAccountNumber;
|
|
47890
47871
|
|
|
47891
47872
|
var _ref$variant = _ref.variant,
|
|
47892
47873
|
variant = _ref$variant === void 0 ? "default" : _ref$variant,
|
|
@@ -47929,15 +47910,19 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47929
47910
|
var nameErrors = _defineProperty({}, required.error, "Name is required");
|
|
47930
47911
|
|
|
47931
47912
|
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);
|
|
47932
|
-
|
|
47933
|
-
var confirmRoutingNumberErrors = _defineProperty({}, matchesField.error, "Confirm routing number field must match routing number");
|
|
47934
|
-
|
|
47913
|
+
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);
|
|
47935
47914
|
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);
|
|
47936
|
-
|
|
47937
|
-
var confirmAccountNumberErrors = _defineProperty({}, matchesField.error, "Confirm account number field must match account number");
|
|
47915
|
+
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);
|
|
47938
47916
|
|
|
47939
47917
|
var accountTypeErrors = _defineProperty({}, required.error, "Account type is required");
|
|
47940
47918
|
|
|
47919
|
+
var getIsRequiredFromValidators = React.useCallback(function (field) {
|
|
47920
|
+
var _field$validators;
|
|
47921
|
+
|
|
47922
|
+
return !!(field !== null && field !== void 0 && (_field$validators = field.validators) !== null && _field$validators !== void 0 && _field$validators.find(function (validator) {
|
|
47923
|
+
return validator.type === "validator/REQUIRED";
|
|
47924
|
+
}));
|
|
47925
|
+
}, []);
|
|
47941
47926
|
return /*#__PURE__*/React__default.createElement(FormContainer$1, {
|
|
47942
47927
|
variant: variant,
|
|
47943
47928
|
role: "form",
|
|
@@ -47952,7 +47937,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47952
47937
|
onKeyDown: function onKeyDown(e) {
|
|
47953
47938
|
return e.key === "Enter" && handleSubmit(e);
|
|
47954
47939
|
},
|
|
47955
|
-
autocompleteValue: "name"
|
|
47940
|
+
autocompleteValue: "name",
|
|
47941
|
+
isRequired: getIsRequiredFromValidators(fields.name)
|
|
47956
47942
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
47957
47943
|
labelTextWhenNoError: "Routing number",
|
|
47958
47944
|
dataQa: "Routing number",
|
|
@@ -47960,6 +47946,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47960
47946
|
field: fields.routingNumber,
|
|
47961
47947
|
fieldActions: actions.fields.routingNumber,
|
|
47962
47948
|
showErrors: showErrors,
|
|
47949
|
+
isRequired: getIsRequiredFromValidators(fields.routingNumber),
|
|
47963
47950
|
isNum: true,
|
|
47964
47951
|
helperModal: function helperModal() {
|
|
47965
47952
|
return /*#__PURE__*/React__default.createElement(AccountAndRoutingModal$1, {
|
|
@@ -47985,6 +47972,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47985
47972
|
onKeyDown: function onKeyDown(e) {
|
|
47986
47973
|
return e.key === "Enter" && handleSubmit(e);
|
|
47987
47974
|
},
|
|
47975
|
+
isRequired: getIsRequiredFromValidators(fields.confirmRoutingNumber),
|
|
47988
47976
|
isNum: true
|
|
47989
47977
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
47990
47978
|
labelTextWhenNoError: "Account number",
|
|
@@ -47993,6 +47981,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47993
47981
|
field: fields.accountNumber,
|
|
47994
47982
|
fieldActions: actions.fields.accountNumber,
|
|
47995
47983
|
showErrors: showErrors,
|
|
47984
|
+
isRequired: getIsRequiredFromValidators(fields.accountNumber),
|
|
47996
47985
|
isNum: true,
|
|
47997
47986
|
helperModal: function helperModal() {
|
|
47998
47987
|
return /*#__PURE__*/React__default.createElement(AccountAndRoutingModal$1, {
|
|
@@ -48018,6 +48007,7 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48018
48007
|
onKeyDown: function onKeyDown(e) {
|
|
48019
48008
|
return e.key === "Enter" && handleSubmit(e);
|
|
48020
48009
|
},
|
|
48010
|
+
isRequired: getIsRequiredFromValidators(fields.confirmAccountNumber),
|
|
48021
48011
|
isNum: true
|
|
48022
48012
|
}), allowBankAccountType && /*#__PURE__*/React__default.createElement(FormSelect$1, {
|
|
48023
48013
|
labelTextWhenNoError: "Account type",
|
|
@@ -48035,7 +48025,8 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
48035
48025
|
fieldActions: actions.fields.accountType,
|
|
48036
48026
|
showErrors: showErrors,
|
|
48037
48027
|
errorMessages: accountTypeErrors,
|
|
48038
|
-
field: fields.accountType
|
|
48028
|
+
field: fields.accountType,
|
|
48029
|
+
isRequired: getIsRequiredFromValidators(fields.accountType)
|
|
48039
48030
|
}), !hideDefaultPayment && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
48040
48031
|
title: "Save as Default Payment Method",
|
|
48041
48032
|
dataQa: "default-payment-ach",
|
|
@@ -48071,7 +48062,7 @@ var formConfig$6 = {
|
|
|
48071
48062
|
constraints: [onlyIntegers(), hasLength(0, 9)]
|
|
48072
48063
|
},
|
|
48073
48064
|
confirmRoutingNumber: {
|
|
48074
|
-
validators: [matchesField("routingNumber")],
|
|
48065
|
+
validators: [matchesField("routingNumber"), required()],
|
|
48075
48066
|
constraints: [onlyIntegers(), hasLength(0, 9)]
|
|
48076
48067
|
},
|
|
48077
48068
|
accountNumber: {
|
|
@@ -48079,7 +48070,7 @@ var formConfig$6 = {
|
|
|
48079
48070
|
constraints: [onlyIntegers(), hasLength(0, 17)]
|
|
48080
48071
|
},
|
|
48081
48072
|
confirmAccountNumber: {
|
|
48082
|
-
validators: [matchesField("accountNumber")],
|
|
48073
|
+
validators: [matchesField("accountNumber"), required()],
|
|
48083
48074
|
constraints: [onlyIntegers(), hasLength(0, 17)]
|
|
48084
48075
|
},
|
|
48085
48076
|
accountType: {
|
|
@@ -48120,6 +48111,13 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48120
48111
|
isMobile = _useContext.isMobile;
|
|
48121
48112
|
|
|
48122
48113
|
var showTerms = !!termsContent;
|
|
48114
|
+
var getIsRequiredFromValidators = React.useCallback(function (field) {
|
|
48115
|
+
var _field$validators;
|
|
48116
|
+
|
|
48117
|
+
return !!(field !== null && field !== void 0 && (_field$validators = field.validators) !== null && _field$validators !== void 0 && _field$validators.find(function (validator) {
|
|
48118
|
+
return validator.type === "validator/REQUIRED";
|
|
48119
|
+
}));
|
|
48120
|
+
}, []);
|
|
48123
48121
|
React.useEffect(function () {
|
|
48124
48122
|
if (deniedCards) {
|
|
48125
48123
|
deniedCards.map(function (card) {
|
|
@@ -48162,7 +48160,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48162
48160
|
}
|
|
48163
48161
|
},
|
|
48164
48162
|
showErrors: showErrors,
|
|
48165
|
-
dataQa: "Country"
|
|
48163
|
+
dataQa: "Country",
|
|
48164
|
+
isRequired: getIsRequiredFromValidators(fields.country)
|
|
48166
48165
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48167
48166
|
labelTextWhenNoError: "Name on card",
|
|
48168
48167
|
dataQa: "Name on card",
|
|
@@ -48173,7 +48172,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48173
48172
|
onKeyDown: function onKeyDown(e) {
|
|
48174
48173
|
return e.key === "Enter" && handleSubmit(e);
|
|
48175
48174
|
},
|
|
48176
|
-
autocompleteValue: "cc-name"
|
|
48175
|
+
autocompleteValue: "cc-name",
|
|
48176
|
+
isRequired: getIsRequiredFromValidators(fields.nameOnCard)
|
|
48177
48177
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48178
48178
|
labelTextWhenNoError: "Credit card number",
|
|
48179
48179
|
dataQa: "Credit card number",
|
|
@@ -48186,7 +48186,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48186
48186
|
return e.key === "Enter" && handleSubmit(e);
|
|
48187
48187
|
},
|
|
48188
48188
|
isNum: true,
|
|
48189
|
-
autocompleteValue: "cc-number"
|
|
48189
|
+
autocompleteValue: "cc-number",
|
|
48190
|
+
isRequired: getIsRequiredFromValidators(fields.creditCardNumber)
|
|
48190
48191
|
}), /*#__PURE__*/React__default.createElement(FormInputRow, {
|
|
48191
48192
|
breakpoint: isMobile ? "1000rem" : "21rem",
|
|
48192
48193
|
childGap: isMobile ? "0rem" : "1rem"
|
|
@@ -48204,7 +48205,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48204
48205
|
isNum: true,
|
|
48205
48206
|
removeFromValue: /\// // removes "/" from browser autofill
|
|
48206
48207
|
,
|
|
48207
|
-
autocompleteValue: "cc-exp"
|
|
48208
|
+
autocompleteValue: "cc-exp",
|
|
48209
|
+
isRequired: getIsRequiredFromValidators(fields.expirationDate)
|
|
48208
48210
|
}), /*#__PURE__*/React__default.createElement(FormInput$1, {
|
|
48209
48211
|
labelTextWhenNoError: "CVV",
|
|
48210
48212
|
dataQa: "CVV",
|
|
@@ -48217,7 +48219,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48217
48219
|
onKeyDown: function onKeyDown(e) {
|
|
48218
48220
|
return e.key === "Enter" && handleSubmit(e);
|
|
48219
48221
|
},
|
|
48220
|
-
autocompleteValue: "cc-csc"
|
|
48222
|
+
autocompleteValue: "cc-csc",
|
|
48223
|
+
isRequired: getIsRequiredFromValidators(fields.cvv)
|
|
48221
48224
|
})), !hideZipCode && /*#__PURE__*/React__default.createElement(Box, {
|
|
48222
48225
|
padding: isMobile ? "0" : "0 0.5rem 0 0",
|
|
48223
48226
|
width: isMobile ? "100%" : "50%"
|
|
@@ -48233,7 +48236,8 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
48233
48236
|
onKeyDown: function onKeyDown(e) {
|
|
48234
48237
|
return e.key === "Enter" && handleSubmit(e);
|
|
48235
48238
|
},
|
|
48236
|
-
autocompleteValue: "billing postal-code"
|
|
48239
|
+
autocompleteValue: "billing postal-code",
|
|
48240
|
+
isRequired: getIsRequiredFromValidators(fields.zipCode)
|
|
48237
48241
|
})), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48238
48242
|
childGap: "4px",
|
|
48239
48243
|
align: "center"
|
|
@@ -48664,7 +48668,8 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48664
48668
|
extraStyles: borderStyles,
|
|
48665
48669
|
role: "radio",
|
|
48666
48670
|
"aria-checked": openSection === section.id,
|
|
48667
|
-
|
|
48671
|
+
disabled: section.disabled,
|
|
48672
|
+
required: section === null || section === void 0 ? void 0 : section.required
|
|
48668
48673
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
48669
48674
|
childGap: "0"
|
|
48670
48675
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -48694,6 +48699,8 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48694
48699
|
}, !section.hideRadioButton && /*#__PURE__*/React__default.createElement(Box, {
|
|
48695
48700
|
padding: "0"
|
|
48696
48701
|
}, /*#__PURE__*/React__default.createElement(RadioButton$2, {
|
|
48702
|
+
role: "radio",
|
|
48703
|
+
required: !!(section !== null && section !== void 0 && section.required),
|
|
48697
48704
|
id: "radio-input-".concat(idString(section)),
|
|
48698
48705
|
name: idString(section),
|
|
48699
48706
|
ariaDescribedBy: ariaDescribedBy,
|