@thecb/components 7.9.0-beta.2 → 7.9.1-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 +297 -189
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +297 -189
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/icons/{ExternalLinkicon.js → ExternalLinkIcon.js} +0 -0
- package/src/components/atoms/layouts/Box.styled.js +2 -2
- package/src/components/atoms/layouts/Cluster.d.ts +1 -0
- package/src/components/atoms/layouts/Cluster.js +2 -0
- package/src/components/molecules/pagination/Pagination.js +44 -20
- package/src/components/molecules/pagination/index.d.ts +1 -0
- package/src/components/molecules/payment-form-ach/PaymentFormACH.js +35 -8
- package/src/components/molecules/payment-form-card/PaymentFormCard.js +37 -10
- package/src/components/molecules/terms-and-conditions/TermsAndConditions.js +3 -1
- package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.js +3 -2
- package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.stories.js +10 -0
package/dist/index.esm.js
CHANGED
|
@@ -6464,8 +6464,9 @@ var BoxWrapper = styled(function (_ref) {
|
|
|
6464
6464
|
return textAlign;
|
|
6465
6465
|
}, function (_ref14) {
|
|
6466
6466
|
var hoverStyles = _ref14.hoverStyles,
|
|
6467
|
-
as = _ref14.as
|
|
6468
|
-
|
|
6467
|
+
as = _ref14.as,
|
|
6468
|
+
disabled = _ref14.disabled;
|
|
6469
|
+
return css(["", " ", ""], hoverStyles, as === "button" && !disabled ? "> * > span {\n ".concat(hoverStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
|
|
6469
6470
|
}, function (_ref15) {
|
|
6470
6471
|
var as = _ref15.as;
|
|
6471
6472
|
return css(["outline:3px solid ", ";outline-offset:2px;", ""], ROYAL_BLUE, as === "button" && "\n > * > span {\n border: none;\n outline: none;\n box-shadow: none;\n }");
|
|
@@ -6665,7 +6666,7 @@ var ClusterInnerWrapper = styled.div.withConfig({
|
|
|
6665
6666
|
return childGap;
|
|
6666
6667
|
});
|
|
6667
6668
|
|
|
6668
|
-
var _excluded$6 = ["justify", "align", "childGap", "minHeight", "minWidth", "nowrap", "overflow", "justifySelf", "alignSelf", "flexGrow", "extraStyles", "children"];
|
|
6669
|
+
var _excluded$6 = ["justify", "align", "childGap", "minHeight", "minWidth", "nowrap", "overflow", "justifySelf", "alignSelf", "flexGrow", "extraStyles", "children", "innerWrapperAs"];
|
|
6669
6670
|
/*
|
|
6670
6671
|
Cluster components suit any groups of elements that differ in
|
|
6671
6672
|
length and are liable to wrap. Buttons that appear together at the
|
|
@@ -6689,6 +6690,8 @@ var Cluster = function Cluster(_ref) {
|
|
|
6689
6690
|
flexGrow = _ref.flexGrow,
|
|
6690
6691
|
extraStyles = _ref.extraStyles,
|
|
6691
6692
|
children = _ref.children,
|
|
6693
|
+
_ref$innerWrapperAs = _ref.innerWrapperAs,
|
|
6694
|
+
innerWrapperAs = _ref$innerWrapperAs === void 0 ? "div" : _ref$innerWrapperAs,
|
|
6692
6695
|
rest = _objectWithoutProperties(_ref, _excluded$6);
|
|
6693
6696
|
|
|
6694
6697
|
return /*#__PURE__*/React.createElement(ClusterWrapper, _extends({
|
|
@@ -6704,7 +6707,8 @@ var Cluster = function Cluster(_ref) {
|
|
|
6704
6707
|
childGap: childGap,
|
|
6705
6708
|
minHeight: minHeight,
|
|
6706
6709
|
minWidth: minWidth,
|
|
6707
|
-
$nowrap: nowrap
|
|
6710
|
+
$nowrap: nowrap,
|
|
6711
|
+
as: innerWrapperAs
|
|
6708
6712
|
}, safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null))));
|
|
6709
6713
|
};
|
|
6710
6714
|
|
|
@@ -21321,7 +21325,7 @@ var check = function (it) {
|
|
|
21321
21325
|
|
|
21322
21326
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
21323
21327
|
var global_1 =
|
|
21324
|
-
// eslint-disable-next-line es
|
|
21328
|
+
// eslint-disable-next-line es/no-global-this -- safe
|
|
21325
21329
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
21326
21330
|
check(typeof window == 'object' && window) ||
|
|
21327
21331
|
// eslint-disable-next-line no-restricted-globals -- safe
|
|
@@ -21340,12 +21344,12 @@ var fails = function (exec) {
|
|
|
21340
21344
|
|
|
21341
21345
|
// Detect IE8's incomplete defineProperty implementation
|
|
21342
21346
|
var descriptors = !fails(function () {
|
|
21343
|
-
// eslint-disable-next-line es
|
|
21347
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
21344
21348
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
21345
21349
|
});
|
|
21346
21350
|
|
|
21347
21351
|
var functionBindNative = !fails(function () {
|
|
21348
|
-
// eslint-disable-next-line es
|
|
21352
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
21349
21353
|
var test = (function () { /* empty */ }).bind();
|
|
21350
21354
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
21351
21355
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
@@ -21358,7 +21362,7 @@ var functionCall = functionBindNative ? call.bind(call) : function () {
|
|
|
21358
21362
|
};
|
|
21359
21363
|
|
|
21360
21364
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
21361
|
-
// eslint-disable-next-line es
|
|
21365
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
21362
21366
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
21363
21367
|
|
|
21364
21368
|
// Nashorn ~ JDK8 bug
|
|
@@ -21385,25 +21389,29 @@ var createPropertyDescriptor = function (bitmap, value) {
|
|
|
21385
21389
|
};
|
|
21386
21390
|
|
|
21387
21391
|
var FunctionPrototype = Function.prototype;
|
|
21388
|
-
var bind$1 = FunctionPrototype.bind;
|
|
21389
21392
|
var call$1 = FunctionPrototype.call;
|
|
21390
|
-
var
|
|
21393
|
+
var uncurryThisWithBind = functionBindNative && FunctionPrototype.bind.bind(call$1, call$1);
|
|
21391
21394
|
|
|
21392
|
-
var
|
|
21393
|
-
return
|
|
21394
|
-
} : function (fn) {
|
|
21395
|
-
return fn && function () {
|
|
21395
|
+
var functionUncurryThisRaw = function (fn) {
|
|
21396
|
+
return functionBindNative ? uncurryThisWithBind(fn) : function () {
|
|
21396
21397
|
return call$1.apply(fn, arguments);
|
|
21397
21398
|
};
|
|
21398
21399
|
};
|
|
21399
21400
|
|
|
21400
|
-
var toString$2 =
|
|
21401
|
-
var stringSlice =
|
|
21401
|
+
var toString$2 = functionUncurryThisRaw({}.toString);
|
|
21402
|
+
var stringSlice = functionUncurryThisRaw(''.slice);
|
|
21402
21403
|
|
|
21403
21404
|
var classofRaw = function (it) {
|
|
21404
21405
|
return stringSlice(toString$2(it), 8, -1);
|
|
21405
21406
|
};
|
|
21406
21407
|
|
|
21408
|
+
var functionUncurryThis = function (fn) {
|
|
21409
|
+
// Nashorn bug:
|
|
21410
|
+
// https://github.com/zloirock/core-js/issues/1128
|
|
21411
|
+
// https://github.com/zloirock/core-js/issues/1130
|
|
21412
|
+
if (classofRaw(fn) === 'Function') return functionUncurryThisRaw(fn);
|
|
21413
|
+
};
|
|
21414
|
+
|
|
21407
21415
|
var $Object = Object;
|
|
21408
21416
|
var split = functionUncurryThis(''.split);
|
|
21409
21417
|
|
|
@@ -21416,12 +21424,18 @@ var indexedObject = fails(function () {
|
|
|
21416
21424
|
return classofRaw(it) == 'String' ? split(it, '') : $Object(it);
|
|
21417
21425
|
} : $Object;
|
|
21418
21426
|
|
|
21427
|
+
// we can't use just `it == null` since of `document.all` special case
|
|
21428
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
21429
|
+
var isNullOrUndefined = function (it) {
|
|
21430
|
+
return it === null || it === undefined;
|
|
21431
|
+
};
|
|
21432
|
+
|
|
21419
21433
|
var $TypeError = TypeError;
|
|
21420
21434
|
|
|
21421
21435
|
// `RequireObjectCoercible` abstract operation
|
|
21422
21436
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
21423
21437
|
var requireObjectCoercible = function (it) {
|
|
21424
|
-
if (it
|
|
21438
|
+
if (isNullOrUndefined(it)) throw $TypeError("Can't call method on " + it);
|
|
21425
21439
|
return it;
|
|
21426
21440
|
};
|
|
21427
21441
|
|
|
@@ -21433,13 +21447,31 @@ var toIndexedObject = function (it) {
|
|
|
21433
21447
|
return indexedObject(requireObjectCoercible(it));
|
|
21434
21448
|
};
|
|
21435
21449
|
|
|
21450
|
+
var documentAll = typeof document == 'object' && document.all;
|
|
21451
|
+
|
|
21452
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
21453
|
+
var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
|
|
21454
|
+
|
|
21455
|
+
var documentAll_1 = {
|
|
21456
|
+
all: documentAll,
|
|
21457
|
+
IS_HTMLDDA: IS_HTMLDDA
|
|
21458
|
+
};
|
|
21459
|
+
|
|
21460
|
+
var documentAll$1 = documentAll_1.all;
|
|
21461
|
+
|
|
21436
21462
|
// `IsCallable` abstract operation
|
|
21437
21463
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
21438
|
-
var isCallable = function (argument) {
|
|
21464
|
+
var isCallable = documentAll_1.IS_HTMLDDA ? function (argument) {
|
|
21465
|
+
return typeof argument == 'function' || argument === documentAll$1;
|
|
21466
|
+
} : function (argument) {
|
|
21439
21467
|
return typeof argument == 'function';
|
|
21440
21468
|
};
|
|
21441
21469
|
|
|
21442
|
-
var
|
|
21470
|
+
var documentAll$2 = documentAll_1.all;
|
|
21471
|
+
|
|
21472
|
+
var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
|
|
21473
|
+
return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
|
|
21474
|
+
} : function (it) {
|
|
21443
21475
|
return typeof it == 'object' ? it !== null : isCallable(it);
|
|
21444
21476
|
};
|
|
21445
21477
|
|
|
@@ -21480,12 +21512,12 @@ if (!version && engineUserAgent) {
|
|
|
21480
21512
|
|
|
21481
21513
|
var engineV8Version = version;
|
|
21482
21514
|
|
|
21483
|
-
/* eslint-disable es
|
|
21515
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
21484
21516
|
|
|
21485
21517
|
|
|
21486
21518
|
|
|
21487
|
-
// eslint-disable-next-line es
|
|
21488
|
-
var
|
|
21519
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
21520
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
21489
21521
|
var symbol = Symbol();
|
|
21490
21522
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
21491
21523
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -21494,10 +21526,10 @@ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
|
21494
21526
|
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
|
21495
21527
|
});
|
|
21496
21528
|
|
|
21497
|
-
/* eslint-disable es
|
|
21529
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
21498
21530
|
|
|
21499
21531
|
|
|
21500
|
-
var useSymbolAsUid =
|
|
21532
|
+
var useSymbolAsUid = symbolConstructorDetection
|
|
21501
21533
|
&& !Symbol.sham
|
|
21502
21534
|
&& typeof Symbol.iterator == 'symbol';
|
|
21503
21535
|
|
|
@@ -21532,7 +21564,7 @@ var aCallable = function (argument) {
|
|
|
21532
21564
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
21533
21565
|
var getMethod = function (V, P) {
|
|
21534
21566
|
var func = V[P];
|
|
21535
|
-
return func
|
|
21567
|
+
return isNullOrUndefined(func) ? undefined : aCallable(func);
|
|
21536
21568
|
};
|
|
21537
21569
|
|
|
21538
21570
|
var $TypeError$2 = TypeError;
|
|
@@ -21547,7 +21579,7 @@ var ordinaryToPrimitive = function (input, pref) {
|
|
|
21547
21579
|
throw $TypeError$2("Can't convert object to primitive value");
|
|
21548
21580
|
};
|
|
21549
21581
|
|
|
21550
|
-
// eslint-disable-next-line es
|
|
21582
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
21551
21583
|
var defineProperty = Object.defineProperty;
|
|
21552
21584
|
|
|
21553
21585
|
var defineGlobalProperty = function (key, value) {
|
|
@@ -21567,10 +21599,10 @@ var shared = createCommonjsModule(function (module) {
|
|
|
21567
21599
|
(module.exports = function (key, value) {
|
|
21568
21600
|
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
21569
21601
|
})('versions', []).push({
|
|
21570
|
-
version: '3.
|
|
21602
|
+
version: '3.25.5',
|
|
21571
21603
|
mode: 'global',
|
|
21572
21604
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
21573
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
21605
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE',
|
|
21574
21606
|
source: 'https://github.com/zloirock/core-js'
|
|
21575
21607
|
});
|
|
21576
21608
|
});
|
|
@@ -21587,7 +21619,7 @@ var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
|
|
|
21587
21619
|
|
|
21588
21620
|
// `HasOwnProperty` abstract operation
|
|
21589
21621
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
21590
|
-
// eslint-disable-next-line es
|
|
21622
|
+
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
21591
21623
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
21592
21624
|
return hasOwnProperty(toObject(it), key);
|
|
21593
21625
|
};
|
|
@@ -21606,9 +21638,9 @@ var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
|
21606
21638
|
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
|
21607
21639
|
|
|
21608
21640
|
var wellKnownSymbol = function (name) {
|
|
21609
|
-
if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(
|
|
21641
|
+
if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(symbolConstructorDetection || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
21610
21642
|
var description = 'Symbol.' + name;
|
|
21611
|
-
if (
|
|
21643
|
+
if (symbolConstructorDetection && hasOwnProperty_1(Symbol$1, name)) {
|
|
21612
21644
|
WellKnownSymbolsStore[name] = Symbol$1[name];
|
|
21613
21645
|
} else if (useSymbolAsUid && symbolFor) {
|
|
21614
21646
|
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
@@ -21654,13 +21686,13 @@ var documentCreateElement = function (it) {
|
|
|
21654
21686
|
|
|
21655
21687
|
// Thanks to IE8 for its funny defineProperty
|
|
21656
21688
|
var ie8DomDefine = !descriptors && !fails(function () {
|
|
21657
|
-
// eslint-disable-next-line es
|
|
21689
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
21658
21690
|
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
|
21659
21691
|
get: function () { return 7; }
|
|
21660
21692
|
}).a != 7;
|
|
21661
21693
|
});
|
|
21662
21694
|
|
|
21663
|
-
// eslint-disable-next-line es
|
|
21695
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
21664
21696
|
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
21665
21697
|
|
|
21666
21698
|
// `Object.getOwnPropertyDescriptor` method
|
|
@@ -21681,7 +21713,7 @@ var objectGetOwnPropertyDescriptor = {
|
|
|
21681
21713
|
// V8 ~ Chrome 36-
|
|
21682
21714
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
21683
21715
|
var v8PrototypeDefineBug = descriptors && fails(function () {
|
|
21684
|
-
// eslint-disable-next-line es
|
|
21716
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
21685
21717
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
21686
21718
|
value: 42,
|
|
21687
21719
|
writable: false
|
|
@@ -21698,9 +21730,9 @@ var anObject = function (argument) {
|
|
|
21698
21730
|
};
|
|
21699
21731
|
|
|
21700
21732
|
var $TypeError$5 = TypeError;
|
|
21701
|
-
// eslint-disable-next-line es
|
|
21733
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
21702
21734
|
var $defineProperty = Object.defineProperty;
|
|
21703
|
-
// eslint-disable-next-line es
|
|
21735
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
21704
21736
|
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
21705
21737
|
var ENUMERABLE = 'enumerable';
|
|
21706
21738
|
var CONFIGURABLE = 'configurable';
|
|
@@ -21747,7 +21779,7 @@ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
|
|
|
21747
21779
|
};
|
|
21748
21780
|
|
|
21749
21781
|
var FunctionPrototype$1 = Function.prototype;
|
|
21750
|
-
// eslint-disable-next-line es
|
|
21782
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
21751
21783
|
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
|
21752
21784
|
|
|
21753
21785
|
var EXISTS$1 = hasOwnProperty_1(FunctionPrototype$1, 'name');
|
|
@@ -21774,7 +21806,7 @@ var inspectSource = sharedStore.inspectSource;
|
|
|
21774
21806
|
|
|
21775
21807
|
var WeakMap$1 = global_1.WeakMap;
|
|
21776
21808
|
|
|
21777
|
-
var
|
|
21809
|
+
var weakMapBasicDetection = isCallable(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
21778
21810
|
|
|
21779
21811
|
var keys$1 = shared('keys');
|
|
21780
21812
|
|
|
@@ -21802,28 +21834,30 @@ var getterFor = function (TYPE) {
|
|
|
21802
21834
|
};
|
|
21803
21835
|
};
|
|
21804
21836
|
|
|
21805
|
-
if (
|
|
21837
|
+
if (weakMapBasicDetection || sharedStore.state) {
|
|
21806
21838
|
var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$2());
|
|
21807
|
-
|
|
21808
|
-
|
|
21809
|
-
|
|
21839
|
+
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
21840
|
+
store$1.get = store$1.get;
|
|
21841
|
+
store$1.has = store$1.has;
|
|
21842
|
+
store$1.set = store$1.set;
|
|
21843
|
+
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
21810
21844
|
set = function (it, metadata) {
|
|
21811
|
-
if (
|
|
21845
|
+
if (store$1.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
21812
21846
|
metadata.facade = it;
|
|
21813
|
-
|
|
21847
|
+
store$1.set(it, metadata);
|
|
21814
21848
|
return metadata;
|
|
21815
21849
|
};
|
|
21816
21850
|
get = function (it) {
|
|
21817
|
-
return
|
|
21851
|
+
return store$1.get(it) || {};
|
|
21818
21852
|
};
|
|
21819
21853
|
has = function (it) {
|
|
21820
|
-
return
|
|
21854
|
+
return store$1.has(it);
|
|
21821
21855
|
};
|
|
21822
21856
|
} else {
|
|
21823
21857
|
var STATE = sharedKey('state');
|
|
21824
21858
|
hiddenKeys[STATE] = true;
|
|
21825
21859
|
set = function (it, metadata) {
|
|
21826
|
-
if (hasOwnProperty_1(it, STATE)) throw
|
|
21860
|
+
if (hasOwnProperty_1(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
21827
21861
|
metadata.facade = it;
|
|
21828
21862
|
createNonEnumerableProperty(it, STATE, metadata);
|
|
21829
21863
|
return metadata;
|
|
@@ -21851,7 +21885,7 @@ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
|
21851
21885
|
|
|
21852
21886
|
var enforceInternalState = internalState.enforce;
|
|
21853
21887
|
var getInternalState = internalState.get;
|
|
21854
|
-
// eslint-disable-next-line es
|
|
21888
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
21855
21889
|
var defineProperty = Object.defineProperty;
|
|
21856
21890
|
|
|
21857
21891
|
var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
|
|
@@ -21920,7 +21954,7 @@ var floor = Math.floor;
|
|
|
21920
21954
|
|
|
21921
21955
|
// `Math.trunc` method
|
|
21922
21956
|
// https://tc39.es/ecma262/#sec-math.trunc
|
|
21923
|
-
// eslint-disable-next-line es
|
|
21957
|
+
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
21924
21958
|
var mathTrunc = Math.trunc || function trunc(x) {
|
|
21925
21959
|
var n = +x;
|
|
21926
21960
|
return (n > 0 ? floor : ceil)(n);
|
|
@@ -22021,7 +22055,7 @@ var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
|
|
|
22021
22055
|
|
|
22022
22056
|
// `Object.getOwnPropertyNames` method
|
|
22023
22057
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
22024
|
-
// eslint-disable-next-line es
|
|
22058
|
+
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
22025
22059
|
var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
22026
22060
|
return objectKeysInternal(O, hiddenKeys$1);
|
|
22027
22061
|
};
|
|
@@ -22030,7 +22064,7 @@ var objectGetOwnPropertyNames = {
|
|
|
22030
22064
|
f: f$3
|
|
22031
22065
|
};
|
|
22032
22066
|
|
|
22033
|
-
// eslint-disable-next-line es
|
|
22067
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
22034
22068
|
var f$4 = Object.getOwnPropertySymbols;
|
|
22035
22069
|
|
|
22036
22070
|
var objectGetOwnPropertySymbols = {
|
|
@@ -22174,7 +22208,7 @@ var toString_1 = function (argument) {
|
|
|
22174
22208
|
var charAt = functionUncurryThis(''.charAt);
|
|
22175
22209
|
|
|
22176
22210
|
var FORCED = fails(function () {
|
|
22177
|
-
// eslint-disable-next-line es
|
|
22211
|
+
// eslint-disable-next-line es/no-array-string-prototype-at -- safe
|
|
22178
22212
|
return '𠮷'.at(-2) !== '\uD842';
|
|
22179
22213
|
});
|
|
22180
22214
|
|
|
@@ -22192,14 +22226,14 @@ _export({ target: 'String', proto: true, forced: FORCED }, {
|
|
|
22192
22226
|
|
|
22193
22227
|
// `Object.keys` method
|
|
22194
22228
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
22195
|
-
// eslint-disable-next-line es
|
|
22229
|
+
// eslint-disable-next-line es/no-object-keys -- safe
|
|
22196
22230
|
var objectKeys = Object.keys || function keys(O) {
|
|
22197
22231
|
return objectKeysInternal(O, enumBugKeys);
|
|
22198
22232
|
};
|
|
22199
22233
|
|
|
22200
22234
|
// `Object.defineProperties` method
|
|
22201
22235
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
22202
|
-
// eslint-disable-next-line es
|
|
22236
|
+
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
22203
22237
|
var f$5 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
22204
22238
|
anObject(O);
|
|
22205
22239
|
var props = toIndexedObject(Properties);
|
|
@@ -22288,7 +22322,7 @@ hiddenKeys[IE_PROTO] = true;
|
|
|
22288
22322
|
|
|
22289
22323
|
// `Object.create` method
|
|
22290
22324
|
// https://tc39.es/ecma262/#sec-object.create
|
|
22291
|
-
// eslint-disable-next-line es
|
|
22325
|
+
// eslint-disable-next-line es/no-object-create -- safe
|
|
22292
22326
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
22293
22327
|
var result;
|
|
22294
22328
|
if (O !== null) {
|
|
@@ -22334,13 +22368,13 @@ _export({ target: 'Array', proto: true }, {
|
|
|
22334
22368
|
|
|
22335
22369
|
addToUnscopables('at');
|
|
22336
22370
|
|
|
22337
|
-
// eslint-disable-next-line es
|
|
22338
|
-
var
|
|
22371
|
+
// eslint-disable-next-line es/no-typed-arrays -- safe
|
|
22372
|
+
var arrayBufferBasicDetection = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
|
|
22339
22373
|
|
|
22340
22374
|
var correctPrototypeGetter = !fails(function () {
|
|
22341
22375
|
function F() { /* empty */ }
|
|
22342
22376
|
F.prototype.constructor = null;
|
|
22343
|
-
// eslint-disable-next-line es
|
|
22377
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
22344
22378
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
22345
22379
|
});
|
|
22346
22380
|
|
|
@@ -22350,7 +22384,7 @@ var ObjectPrototype = $Object$4.prototype;
|
|
|
22350
22384
|
|
|
22351
22385
|
// `Object.getPrototypeOf` method
|
|
22352
22386
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
22353
|
-
// eslint-disable-next-line es
|
|
22387
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
22354
22388
|
var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : function (O) {
|
|
22355
22389
|
var object = toObject(O);
|
|
22356
22390
|
if (hasOwnProperty_1(object, IE_PROTO$1)) return object[IE_PROTO$1];
|
|
@@ -22376,13 +22410,13 @@ var aPossiblePrototype = function (argument) {
|
|
|
22376
22410
|
// `Object.setPrototypeOf` method
|
|
22377
22411
|
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
22378
22412
|
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
22379
|
-
// eslint-disable-next-line es
|
|
22413
|
+
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
22380
22414
|
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
22381
22415
|
var CORRECT_SETTER = false;
|
|
22382
22416
|
var test = {};
|
|
22383
22417
|
var setter;
|
|
22384
22418
|
try {
|
|
22385
|
-
// eslint-disable-next-line es
|
|
22419
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22386
22420
|
setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
22387
22421
|
setter(test, []);
|
|
22388
22422
|
CORRECT_SETTER = test instanceof Array;
|
|
@@ -22419,7 +22453,7 @@ var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
|
|
|
22419
22453
|
var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
|
|
22420
22454
|
var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
|
|
22421
22455
|
// Fixing native typed arrays in Opera Presto crashes the browser, see #595
|
|
22422
|
-
var NATIVE_ARRAY_BUFFER_VIEWS =
|
|
22456
|
+
var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferBasicDetection && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
|
|
22423
22457
|
var TYPED_ARRAY_TAG_REQUIRED = false;
|
|
22424
22458
|
var NAME, Constructor, Prototype;
|
|
22425
22459
|
|
|
@@ -46555,6 +46589,7 @@ var PrevNextPlaceholder = function PrevNextPlaceholder(_ref) {
|
|
|
46555
46589
|
|
|
46556
46590
|
var PrevNextButton = function PrevNextButton(_ref2) {
|
|
46557
46591
|
var action = _ref2.action,
|
|
46592
|
+
ariaLabel = _ref2.ariaLabel,
|
|
46558
46593
|
arrowColor = _ref2.arrowColor,
|
|
46559
46594
|
borderRadius = _ref2.borderRadius,
|
|
46560
46595
|
buttonHeight = _ref2.buttonHeight,
|
|
@@ -46564,12 +46599,14 @@ var PrevNextButton = function PrevNextButton(_ref2) {
|
|
|
46564
46599
|
return /*#__PURE__*/React.createElement(Box, {
|
|
46565
46600
|
padding: "0",
|
|
46566
46601
|
minHeight: buttonHeight,
|
|
46567
|
-
extraStyles: "max-height: ".concat(buttonHeight, ";")
|
|
46602
|
+
extraStyles: "max-height: ".concat(buttonHeight, ";"),
|
|
46603
|
+
as: "li"
|
|
46568
46604
|
}, /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
46569
46605
|
action: action,
|
|
46570
46606
|
contentOverride: true,
|
|
46571
46607
|
dataQa: type,
|
|
46572
|
-
|
|
46608
|
+
"aria-label": ariaLabel,
|
|
46609
|
+
extraStyles: "\n background-color: ".concat(numberColor, ";\n border-color: ").concat(numberColor, ";\n border-radius: ").concat(borderRadius, ";\n margin: 0;\n max-height: ").concat(buttonHeight, ";\n min-height: 100%;\n min-width: ").concat(buttonWidth, ";\n padding: 0;\n ")
|
|
46573
46610
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
46574
46611
|
padding: "0",
|
|
46575
46612
|
extraStyles: type === "prev" && "transform: scaleX(-1)"
|
|
@@ -46593,26 +46630,30 @@ var getPagesPanel = function getPagesPanel(page, pagesCount) {
|
|
|
46593
46630
|
|
|
46594
46631
|
if (page > space + 1) {
|
|
46595
46632
|
pages.push({
|
|
46596
|
-
isDelimiter: true
|
|
46633
|
+
isDelimiter: true,
|
|
46634
|
+
id: "first-delimiter"
|
|
46597
46635
|
});
|
|
46598
46636
|
}
|
|
46599
46637
|
|
|
46600
46638
|
for (var j = Math.max(1, page - space) + 1; j < Math.min(lastPageNumber, page + space); j++) {
|
|
46601
46639
|
pages.push({
|
|
46602
46640
|
index: j,
|
|
46603
|
-
isButton: true
|
|
46641
|
+
isButton: true,
|
|
46642
|
+
id: "page-".concat(j)
|
|
46604
46643
|
});
|
|
46605
46644
|
}
|
|
46606
46645
|
|
|
46607
46646
|
if (page < lastPageNumber - space) {
|
|
46608
46647
|
pages.push({
|
|
46609
|
-
isDelimiter: true
|
|
46648
|
+
isDelimiter: true,
|
|
46649
|
+
id: "last-delimiter"
|
|
46610
46650
|
});
|
|
46611
46651
|
}
|
|
46612
46652
|
|
|
46613
46653
|
pages.push({
|
|
46614
46654
|
index: lastPageNumber,
|
|
46615
|
-
isButton: true
|
|
46655
|
+
isButton: true,
|
|
46656
|
+
id: "page-".concat(lastPageNumber)
|
|
46616
46657
|
});
|
|
46617
46658
|
var activePage = pages.find(function (p) {
|
|
46618
46659
|
return p.index === page;
|
|
@@ -46647,18 +46688,26 @@ var Pagination = function Pagination(_ref3) {
|
|
|
46647
46688
|
pageNext = _ref3.pageNext,
|
|
46648
46689
|
pagePrevious = _ref3.pagePrevious,
|
|
46649
46690
|
setCurrentPage = _ref3.setCurrentPage,
|
|
46691
|
+
ariaLabel = _ref3.ariaLabel,
|
|
46650
46692
|
themeValues = _ref3.themeValues;
|
|
46651
46693
|
|
|
46652
46694
|
var _useContext = useContext(ThemeContext),
|
|
46653
46695
|
isMobile = _useContext.isMobile;
|
|
46654
46696
|
|
|
46655
|
-
var extraStyles = "\n min-width: ".concat(buttonWidth, "; min-height: 100%; padding: 0;\n border-radius: ").concat(borderRadius, ";\n &:hover, &:focus {\n text-decoration: none;\n > * > span {\n text-decoration: none;\n }\n }\n > * > span {\n color: ").concat(numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor, "\n }\n margin: 0;\n &:hover {\n background-color: ").concat(themeValues.hoverBackgroundColor, "\n }\n
|
|
46656
|
-
var
|
|
46697
|
+
var extraStyles = "\n min-width: ".concat(buttonWidth, "; min-height: 100%; padding: 0;\n border-radius: ").concat(borderRadius, ";\n &:hover, &:focus {\n text-decoration: none;\n > * > span {\n text-decoration: none;\n }\n }\n > * > span {\n color: ").concat(numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor, "\n }\n margin: 0;\n &:hover {\n background-color: ").concat(themeValues.hoverBackgroundColor, "\n }\n ");
|
|
46698
|
+
var currentPageStyles = "\n border: ".concat(activeBorderWidth, " solid ").concat(numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor, ";\n color: ").concat(numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.activeColor, ";\n background-color: ").concat(themeValues.activeBackgroundColor, ";\n &:focus {\n box-shadow: none;\n }\n &:hover {\n background-color: initial;\n border: ").concat(activeBorderWidth, " solid ").concat(numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor, ";\n background-color: ").concat(themeValues.activeBackgroundColor, ";\n }\n ");
|
|
46657
46699
|
return /*#__PURE__*/React.createElement(Cluster, {
|
|
46658
46700
|
justify: "center",
|
|
46659
|
-
childGap: childGap
|
|
46701
|
+
childGap: childGap,
|
|
46702
|
+
overflow: true,
|
|
46703
|
+
as: "nav",
|
|
46704
|
+
role: "navigation",
|
|
46705
|
+
innerWrapperAs: "ul",
|
|
46706
|
+
"aria-label": ariaLabel,
|
|
46707
|
+
extraStyles: "> ul { padding: 0px; > li { list-style-type: none; } };"
|
|
46660
46708
|
}, currentPage > 1 ? /*#__PURE__*/React.createElement(PrevNextButton, {
|
|
46661
46709
|
action: pagePrevious,
|
|
46710
|
+
ariaLabel: "Previous Page",
|
|
46662
46711
|
arrowColor: arrowColor !== null && arrowColor !== void 0 ? arrowColor : themeValues.arrowColor,
|
|
46663
46712
|
borderRadius: borderRadius,
|
|
46664
46713
|
buttonHeight: buttonHeight,
|
|
@@ -46680,33 +46729,37 @@ var Pagination = function Pagination(_ref3) {
|
|
|
46680
46729
|
}, "".concat(currentPage, " of ").concat(pageCount)))) : getPagesPanel(currentPage, pageCount).map(function (item, index) {
|
|
46681
46730
|
return item.isButton ? /*#__PURE__*/React.createElement(Box, {
|
|
46682
46731
|
padding: "0",
|
|
46683
|
-
extraStyles: "max-height: ".concat(buttonHeight, ";")
|
|
46732
|
+
extraStyles: "max-height: ".concat(buttonHeight, ";"),
|
|
46733
|
+
as: "li",
|
|
46734
|
+
key: item.id
|
|
46684
46735
|
}, /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
46685
46736
|
variant: "ghost",
|
|
46686
|
-
key: item.index,
|
|
46687
46737
|
text: item.index,
|
|
46688
|
-
|
|
46689
|
-
|
|
46738
|
+
"aria-current": item.active ? "page" : undefined,
|
|
46739
|
+
"aria-label": "".concat(item.index == pageCount ? "Last Page, " : "", "page ").concat(item.index),
|
|
46690
46740
|
action: !item.active ? function () {
|
|
46691
46741
|
return setCurrentPage({
|
|
46692
46742
|
pageNumber: item.index
|
|
46693
46743
|
});
|
|
46694
46744
|
} : noop,
|
|
46695
46745
|
textExtraStyles: "font-size: ".concat(fontSize, "; font-weight: ").concat(fontWeight, ";"),
|
|
46696
|
-
extraStyles: extraStyles,
|
|
46746
|
+
extraStyles: "".concat(extraStyles).concat(item.active ? currentPageStyles : ""),
|
|
46697
46747
|
dataQa: index
|
|
46698
46748
|
}, item.index)) : /*#__PURE__*/React.createElement(Box, {
|
|
46699
|
-
padding: "0 10px"
|
|
46749
|
+
padding: "0 10px",
|
|
46750
|
+
as: "li",
|
|
46751
|
+
key: item.id
|
|
46700
46752
|
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
46701
46753
|
justify: "flex-end"
|
|
46702
46754
|
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
46703
|
-
key: index,
|
|
46704
46755
|
variant: "pXL",
|
|
46705
46756
|
weight: fontWeight,
|
|
46706
|
-
color: numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor
|
|
46707
|
-
|
|
46757
|
+
color: numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor,
|
|
46758
|
+
role: "presentation"
|
|
46759
|
+
}, "…")));
|
|
46708
46760
|
}), currentPage < pageCount ? /*#__PURE__*/React.createElement(PrevNextButton, {
|
|
46709
46761
|
action: pageNext,
|
|
46762
|
+
ariaLabel: "Next Page",
|
|
46710
46763
|
arrowColor: arrowColor !== null && arrowColor !== void 0 ? arrowColor : themeValues.arrowColor,
|
|
46711
46764
|
borderRadius: borderRadius,
|
|
46712
46765
|
buttonHeight: buttonHeight,
|
|
@@ -47126,6 +47179,101 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
47126
47179
|
|
|
47127
47180
|
var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$L, "default");
|
|
47128
47181
|
|
|
47182
|
+
var backgroundColor$c = {
|
|
47183
|
+
"default": "#ffffff",
|
|
47184
|
+
footer: "#ffffff"
|
|
47185
|
+
};
|
|
47186
|
+
var linkColor$6 = {
|
|
47187
|
+
"default": "#3176AA",
|
|
47188
|
+
footer: "#ffffff"
|
|
47189
|
+
};
|
|
47190
|
+
var border$3 = {
|
|
47191
|
+
"default": "#cdcdcd",
|
|
47192
|
+
footer: "#cdcdcd"
|
|
47193
|
+
};
|
|
47194
|
+
var fontSize$b = {
|
|
47195
|
+
"default": "1rem",
|
|
47196
|
+
footer: "0.875rem"
|
|
47197
|
+
};
|
|
47198
|
+
var lineHeight$5 = {
|
|
47199
|
+
"default": "1.5rem",
|
|
47200
|
+
footer: "1.25rem"
|
|
47201
|
+
};
|
|
47202
|
+
var fontWeight$8 = {
|
|
47203
|
+
"default": FONT_WEIGHT_REGULAR,
|
|
47204
|
+
footer: FONT_WEIGHT_SEMIBOLD
|
|
47205
|
+
};
|
|
47206
|
+
var standardInteractionStyles = "\n &:hover {\n outline: none; \n text-decoration: underline;\n }\n &:focus {\n outline: 3px solid #3181E3;\n outline-offset: 2px;\n }\n";
|
|
47207
|
+
var modalLinkHoverFocus$2 = {
|
|
47208
|
+
"default": standardInteractionStyles,
|
|
47209
|
+
footer: standardInteractionStyles
|
|
47210
|
+
};
|
|
47211
|
+
var fallbackValues$M = {
|
|
47212
|
+
backgroundColor: backgroundColor$c,
|
|
47213
|
+
linkColor: linkColor$6,
|
|
47214
|
+
border: border$3,
|
|
47215
|
+
fontSize: fontSize$b,
|
|
47216
|
+
lineHeight: lineHeight$5,
|
|
47217
|
+
fontWeight: fontWeight$8,
|
|
47218
|
+
modalLinkHoverFocus: modalLinkHoverFocus$2
|
|
47219
|
+
};
|
|
47220
|
+
|
|
47221
|
+
var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
47222
|
+
var link = _ref.link,
|
|
47223
|
+
_ref$title = _ref.title,
|
|
47224
|
+
title = _ref$title === void 0 ? "Terms & Conditions" : _ref$title,
|
|
47225
|
+
isOpen = _ref.isOpen,
|
|
47226
|
+
toggleOpen = _ref.toggleOpen,
|
|
47227
|
+
toggleAccepted = _ref.toggleAccepted,
|
|
47228
|
+
acceptText = _ref.acceptText,
|
|
47229
|
+
terms = _ref.terms,
|
|
47230
|
+
variant = _ref.variant,
|
|
47231
|
+
_ref$linkVariant = _ref.linkVariant,
|
|
47232
|
+
linkVariant = _ref$linkVariant === void 0 ? "p" : _ref$linkVariant,
|
|
47233
|
+
themeValues = _ref.themeValues;
|
|
47234
|
+
return /*#__PURE__*/React.createElement(Modal$1, {
|
|
47235
|
+
modalOpen: isOpen,
|
|
47236
|
+
hideModal: function hideModal() {
|
|
47237
|
+
return toggleOpen(false);
|
|
47238
|
+
},
|
|
47239
|
+
showModal: function showModal() {
|
|
47240
|
+
return toggleOpen(true);
|
|
47241
|
+
},
|
|
47242
|
+
modalHeaderText: title,
|
|
47243
|
+
modalBodyText: /*#__PURE__*/React.createElement(Box, {
|
|
47244
|
+
background: themeValues.backgroundColor,
|
|
47245
|
+
border: "1px solid ".concat(themeValues.border),
|
|
47246
|
+
borderRadius: "3px",
|
|
47247
|
+
extraStyles: "overflow: scroll; max-height: 20rem;"
|
|
47248
|
+
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
47249
|
+
variant: "p",
|
|
47250
|
+
extraStyles: "& a { text-decoration: underline; }"
|
|
47251
|
+
}, terms)),
|
|
47252
|
+
defaultWrapper: false,
|
|
47253
|
+
onlyCloseButton: !acceptText,
|
|
47254
|
+
continueButtonText: acceptText,
|
|
47255
|
+
continueAction: function continueAction() {
|
|
47256
|
+
toggleAccepted(true);
|
|
47257
|
+
toggleOpen(false);
|
|
47258
|
+
}
|
|
47259
|
+
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
47260
|
+
variant: linkVariant,
|
|
47261
|
+
onClick: function onClick() {
|
|
47262
|
+
return toggleOpen(true);
|
|
47263
|
+
},
|
|
47264
|
+
onKeyPress: function onKeyPress(e) {
|
|
47265
|
+
return e.key === "Enter" && toggleOpen(true);
|
|
47266
|
+
},
|
|
47267
|
+
tabIndex: "0",
|
|
47268
|
+
color: themeValues.linkColor,
|
|
47269
|
+
weight: themeValues.fontWeight,
|
|
47270
|
+
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
47271
|
+
extraStyles: "display: inline-block; width: fit-content; cursor: pointer"
|
|
47272
|
+
}, link));
|
|
47273
|
+
};
|
|
47274
|
+
|
|
47275
|
+
var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$M, "default");
|
|
47276
|
+
|
|
47129
47277
|
var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
47130
47278
|
var _routingNumberErrors, _accountNumberErrors;
|
|
47131
47279
|
|
|
@@ -47144,7 +47292,10 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47144
47292
|
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
47145
47293
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
47146
47294
|
saveToWallet = _ref.saveToWallet,
|
|
47147
|
-
walletCheckboxMarked = _ref.walletCheckboxMarked
|
|
47295
|
+
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
47296
|
+
termsContent = _ref.termsContent,
|
|
47297
|
+
_ref$termsTitle = _ref.termsTitle,
|
|
47298
|
+
termsTitle = _ref$termsTitle === void 0 ? "Terms & Conditions" : _ref$termsTitle;
|
|
47148
47299
|
|
|
47149
47300
|
if (clearOnDismount) {
|
|
47150
47301
|
useEffect$1(function () {
|
|
@@ -47164,6 +47315,14 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47164
47315
|
showAccount = _useState4[0],
|
|
47165
47316
|
toggleShowAccount = _useState4[1];
|
|
47166
47317
|
|
|
47318
|
+
var _useState5 = useState(false),
|
|
47319
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
47320
|
+
termsModalOpen = _useState6[0],
|
|
47321
|
+
setTermsModalOpen = _useState6[1];
|
|
47322
|
+
|
|
47323
|
+
var showTerms = !!termsContent;
|
|
47324
|
+
var showTermsLinkVariant = showWalletCheckbox ? "p" : "pS";
|
|
47325
|
+
|
|
47167
47326
|
var nameErrors = _defineProperty({}, required.error, "Name is required");
|
|
47168
47327
|
|
|
47169
47328
|
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);
|
|
@@ -47272,12 +47431,27 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47272
47431
|
onChange: toggleCheckbox,
|
|
47273
47432
|
checked: defaultMethod.value,
|
|
47274
47433
|
hidden: hideDefaultPayment
|
|
47275
|
-
}), showWalletCheckbox && /*#__PURE__*/React.createElement(
|
|
47434
|
+
}), (showWalletCheckbox || showTerms) && /*#__PURE__*/React.createElement(Cluster, {
|
|
47435
|
+
childGap: "4px"
|
|
47436
|
+
}, showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
47276
47437
|
name: "bank checkbox",
|
|
47277
|
-
title: "Save checking account to wallet",
|
|
47438
|
+
title: "Save checking account to wallet.",
|
|
47278
47439
|
checked: walletCheckboxMarked,
|
|
47279
47440
|
onChange: saveToWallet
|
|
47280
|
-
})
|
|
47441
|
+
}), showTerms && /*#__PURE__*/React.createElement(Cover, {
|
|
47442
|
+
singleChild: true
|
|
47443
|
+
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
47444
|
+
childGap: 0
|
|
47445
|
+
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
47446
|
+
variant: showTermsLinkVariant
|
|
47447
|
+
}, "View\xA0"), /*#__PURE__*/React.createElement(TermsAndConditionsModal$1, {
|
|
47448
|
+
link: termsTitle,
|
|
47449
|
+
linkVariant: showTermsLinkVariant,
|
|
47450
|
+
terms: termsContent,
|
|
47451
|
+
title: termsTitle,
|
|
47452
|
+
isOpen: termsModalOpen,
|
|
47453
|
+
toggleOpen: setTermsModalOpen
|
|
47454
|
+
}))))));
|
|
47281
47455
|
};
|
|
47282
47456
|
|
|
47283
47457
|
var formConfig$6 = {
|
|
@@ -47331,11 +47505,21 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
47331
47505
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
47332
47506
|
saveToWallet = _ref.saveToWallet,
|
|
47333
47507
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
47334
|
-
deniedCards = _ref.deniedCards
|
|
47508
|
+
deniedCards = _ref.deniedCards,
|
|
47509
|
+
termsContent = _ref.termsContent,
|
|
47510
|
+
_ref$termsTitle = _ref.termsTitle,
|
|
47511
|
+
termsTitle = _ref$termsTitle === void 0 ? "Terms & Conditions" : _ref$termsTitle;
|
|
47335
47512
|
|
|
47336
47513
|
var _useContext = useContext(ThemeContext),
|
|
47337
47514
|
isMobile = _useContext.isMobile;
|
|
47338
47515
|
|
|
47516
|
+
var _useState = useState(false),
|
|
47517
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
47518
|
+
termsModalOpen = _useState2[0],
|
|
47519
|
+
setTermsModalOpen = _useState2[1];
|
|
47520
|
+
|
|
47521
|
+
var showTerms = !!termsContent;
|
|
47522
|
+
var showTermsLinkVariant = showWalletCheckbox ? "p" : "pS";
|
|
47339
47523
|
useEffect$1(function () {
|
|
47340
47524
|
if (deniedCards) {
|
|
47341
47525
|
deniedCards.map(function (card) {
|
|
@@ -47444,12 +47628,27 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
47444
47628
|
return e.key === "Enter" && handleSubmit(e);
|
|
47445
47629
|
},
|
|
47446
47630
|
autocomplete: "billing postal-code"
|
|
47447
|
-
})), showWalletCheckbox && /*#__PURE__*/React.createElement(
|
|
47631
|
+
})), (showWalletCheckbox || showTerms) && /*#__PURE__*/React.createElement(Cluster, {
|
|
47632
|
+
childGap: "4px"
|
|
47633
|
+
}, showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
47448
47634
|
name: "credit card checkbox",
|
|
47449
|
-
title: "Save credit card to wallet",
|
|
47635
|
+
title: "Save credit card to wallet.",
|
|
47450
47636
|
checked: walletCheckboxMarked,
|
|
47451
47637
|
onChange: saveToWallet
|
|
47452
|
-
})
|
|
47638
|
+
}), showTerms && /*#__PURE__*/React.createElement(Cover, {
|
|
47639
|
+
singleChild: true
|
|
47640
|
+
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
47641
|
+
childGap: 0
|
|
47642
|
+
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
47643
|
+
variant: showTermsLinkVariant
|
|
47644
|
+
}, "View\xA0"), /*#__PURE__*/React.createElement(TermsAndConditionsModal$1, {
|
|
47645
|
+
link: termsTitle,
|
|
47646
|
+
linkVariant: showTermsLinkVariant,
|
|
47647
|
+
terms: termsContent,
|
|
47648
|
+
title: termsTitle,
|
|
47649
|
+
isOpen: termsModalOpen,
|
|
47650
|
+
toggleOpen: setTermsModalOpen
|
|
47651
|
+
}))))));
|
|
47453
47652
|
};
|
|
47454
47653
|
|
|
47455
47654
|
var PaymentFormCard$1 = withWindowSize(PaymentFormCard);
|
|
@@ -47730,7 +47929,7 @@ var headingDisabledColor = "".concat(ATHENS_GREY);
|
|
|
47730
47929
|
var bodyBackgroundColor$1 = "#eeeeee";
|
|
47731
47930
|
var borderColor$5 = "".concat(GREY_CHATEAU);
|
|
47732
47931
|
var focusStyles = "outline: none;";
|
|
47733
|
-
var fallbackValues$
|
|
47932
|
+
var fallbackValues$N = {
|
|
47734
47933
|
headingBackgroundColor: headingBackgroundColor$1,
|
|
47735
47934
|
headingDisabledColor: headingDisabledColor,
|
|
47736
47935
|
bodyBackgroundColor: bodyBackgroundColor$1,
|
|
@@ -47918,7 +48117,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
47918
48117
|
})));
|
|
47919
48118
|
};
|
|
47920
48119
|
|
|
47921
|
-
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$
|
|
48120
|
+
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$N);
|
|
47922
48121
|
|
|
47923
48122
|
var RegistrationForm = function RegistrationForm(_ref) {
|
|
47924
48123
|
var _emailErrorMessages, _passwordErrorMessage;
|
|
@@ -48215,7 +48414,7 @@ var ResetPasswordSuccess = withWindowSize(ResetConfirmationForm$2);
|
|
|
48215
48414
|
var activeTabBackground = "#FFFFFF";
|
|
48216
48415
|
var activeTabAccent = "#15749D";
|
|
48217
48416
|
var activeTabHover = "#B8D5E1";
|
|
48218
|
-
var fallbackValues$
|
|
48417
|
+
var fallbackValues$O = {
|
|
48219
48418
|
activeTabBackground: activeTabBackground,
|
|
48220
48419
|
activeTabAccent: activeTabAccent,
|
|
48221
48420
|
activeTabHover: activeTabHover
|
|
@@ -48294,12 +48493,12 @@ var Tabs = function Tabs(_ref) {
|
|
|
48294
48493
|
}))));
|
|
48295
48494
|
};
|
|
48296
48495
|
|
|
48297
|
-
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$
|
|
48496
|
+
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$O);
|
|
48298
48497
|
|
|
48299
48498
|
var activeTabBackground$1 = "#FFFFFF";
|
|
48300
48499
|
var activeTabAccent$1 = "#15749D";
|
|
48301
48500
|
var activeTabHover$1 = "#B8D5E1";
|
|
48302
|
-
var fallbackValues$
|
|
48501
|
+
var fallbackValues$P = {
|
|
48303
48502
|
activeTabBackground: activeTabBackground$1,
|
|
48304
48503
|
activeTabAccent: activeTabAccent$1,
|
|
48305
48504
|
activeTabHover: activeTabHover$1
|
|
@@ -48355,100 +48554,7 @@ var TabSidebar = function TabSidebar(_ref) {
|
|
|
48355
48554
|
})));
|
|
48356
48555
|
};
|
|
48357
48556
|
|
|
48358
|
-
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$
|
|
48359
|
-
|
|
48360
|
-
var backgroundColor$c = {
|
|
48361
|
-
"default": "#ffffff",
|
|
48362
|
-
footer: "#ffffff"
|
|
48363
|
-
};
|
|
48364
|
-
var linkColor$6 = {
|
|
48365
|
-
"default": "#3176AA",
|
|
48366
|
-
footer: "#ffffff"
|
|
48367
|
-
};
|
|
48368
|
-
var border$3 = {
|
|
48369
|
-
"default": "#cdcdcd",
|
|
48370
|
-
footer: "#cdcdcd"
|
|
48371
|
-
};
|
|
48372
|
-
var fontSize$b = {
|
|
48373
|
-
"default": "1rem",
|
|
48374
|
-
footer: "0.875rem"
|
|
48375
|
-
};
|
|
48376
|
-
var lineHeight$5 = {
|
|
48377
|
-
"default": "1.5rem",
|
|
48378
|
-
footer: "1.25rem"
|
|
48379
|
-
};
|
|
48380
|
-
var fontWeight$8 = {
|
|
48381
|
-
"default": FONT_WEIGHT_REGULAR,
|
|
48382
|
-
footer: FONT_WEIGHT_SEMIBOLD
|
|
48383
|
-
};
|
|
48384
|
-
var standardInteractionStyles = "\n &:hover {\n outline: none; \n text-decoration: underline;\n }\n &:focus {\n outline: 3px solid #3181E3;\n outline-offset: 2px;\n }\n";
|
|
48385
|
-
var modalLinkHoverFocus$2 = {
|
|
48386
|
-
"default": standardInteractionStyles,
|
|
48387
|
-
footer: standardInteractionStyles
|
|
48388
|
-
};
|
|
48389
|
-
var fallbackValues$P = {
|
|
48390
|
-
backgroundColor: backgroundColor$c,
|
|
48391
|
-
linkColor: linkColor$6,
|
|
48392
|
-
border: border$3,
|
|
48393
|
-
fontSize: fontSize$b,
|
|
48394
|
-
lineHeight: lineHeight$5,
|
|
48395
|
-
fontWeight: fontWeight$8,
|
|
48396
|
-
modalLinkHoverFocus: modalLinkHoverFocus$2
|
|
48397
|
-
};
|
|
48398
|
-
|
|
48399
|
-
var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
48400
|
-
var link = _ref.link,
|
|
48401
|
-
_ref$title = _ref.title,
|
|
48402
|
-
title = _ref$title === void 0 ? "Terms & Conditions" : _ref$title,
|
|
48403
|
-
isOpen = _ref.isOpen,
|
|
48404
|
-
toggleOpen = _ref.toggleOpen,
|
|
48405
|
-
toggleAccepted = _ref.toggleAccepted,
|
|
48406
|
-
acceptText = _ref.acceptText,
|
|
48407
|
-
terms = _ref.terms,
|
|
48408
|
-
variant = _ref.variant,
|
|
48409
|
-
themeValues = _ref.themeValues;
|
|
48410
|
-
return /*#__PURE__*/React.createElement(Modal$1, {
|
|
48411
|
-
modalOpen: isOpen,
|
|
48412
|
-
hideModal: function hideModal() {
|
|
48413
|
-
return toggleOpen(false);
|
|
48414
|
-
},
|
|
48415
|
-
showModal: function showModal() {
|
|
48416
|
-
return toggleOpen(true);
|
|
48417
|
-
},
|
|
48418
|
-
modalHeaderText: title,
|
|
48419
|
-
modalBodyText: /*#__PURE__*/React.createElement(Box, {
|
|
48420
|
-
background: themeValues.backgroundColor,
|
|
48421
|
-
border: "1px solid ".concat(themeValues.border),
|
|
48422
|
-
borderRadius: "3px",
|
|
48423
|
-
extraStyles: "overflow: scroll; max-height: 20rem;"
|
|
48424
|
-
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
48425
|
-
variant: "p",
|
|
48426
|
-
extraStyles: "& a { text-decoration: underline; }"
|
|
48427
|
-
}, terms)),
|
|
48428
|
-
defaultWrapper: false,
|
|
48429
|
-
onlyCloseButton: !acceptText,
|
|
48430
|
-
continueButtonText: acceptText,
|
|
48431
|
-
continueAction: function continueAction() {
|
|
48432
|
-
toggleAccepted(true);
|
|
48433
|
-
toggleOpen(false);
|
|
48434
|
-
}
|
|
48435
|
-
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
48436
|
-
variant: variant === "default" ? "pS" : "pXS",
|
|
48437
|
-
onClick: function onClick() {
|
|
48438
|
-
return toggleOpen(true);
|
|
48439
|
-
},
|
|
48440
|
-
onKeyPress: function onKeyPress(e) {
|
|
48441
|
-
return e.key === "Enter" && toggleOpen(true);
|
|
48442
|
-
},
|
|
48443
|
-
tabIndex: "0",
|
|
48444
|
-
color: themeValues.linkColor,
|
|
48445
|
-
weight: themeValues.fontWeight,
|
|
48446
|
-
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
48447
|
-
extraStyles: "display: inline-block; width: fit-content;"
|
|
48448
|
-
}, link));
|
|
48449
|
-
};
|
|
48450
|
-
|
|
48451
|
-
var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$P, "default");
|
|
48557
|
+
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$P);
|
|
48452
48558
|
|
|
48453
48559
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48454
48560
|
var onCheck = _ref.onCheck,
|
|
@@ -48456,7 +48562,8 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
|
48456
48562
|
html = _ref.html,
|
|
48457
48563
|
terms = _ref.terms,
|
|
48458
48564
|
_ref$error = _ref.error,
|
|
48459
|
-
error = _ref$error === void 0 ? false : _ref$error
|
|
48565
|
+
error = _ref$error === void 0 ? false : _ref$error,
|
|
48566
|
+
linkVariant = _ref.linkVariant;
|
|
48460
48567
|
|
|
48461
48568
|
var _useState = useState(false),
|
|
48462
48569
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -48477,7 +48584,8 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
|
48477
48584
|
link: "Learn More",
|
|
48478
48585
|
terms: terms,
|
|
48479
48586
|
isOpen: showTerms,
|
|
48480
|
-
toggleOpen: toggleShowTerms
|
|
48587
|
+
toggleOpen: toggleShowTerms,
|
|
48588
|
+
linkVariant: linkVariant
|
|
48481
48589
|
})))));
|
|
48482
48590
|
};
|
|
48483
48591
|
|