@thecb/components 7.8.2 → 7.8.3-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +214 -197
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +214 -197
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/payment-form-ach/PaymentFormACH.js +33 -8
- package/src/components/molecules/payment-form-card/PaymentFormCard.js +35 -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/dist/index.cjs.js
CHANGED
|
@@ -21329,7 +21329,7 @@ var check = function (it) {
|
|
|
21329
21329
|
|
|
21330
21330
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
21331
21331
|
var global_1 =
|
|
21332
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
|
21332
|
+
// eslint-disable-next-line es-x/no-global-this -- safe
|
|
21333
21333
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
21334
21334
|
check(typeof window == 'object' && window) ||
|
|
21335
21335
|
// eslint-disable-next-line no-restricted-globals -- safe
|
|
@@ -21348,12 +21348,12 @@ var fails = function (exec) {
|
|
|
21348
21348
|
|
|
21349
21349
|
// Detect IE8's incomplete defineProperty implementation
|
|
21350
21350
|
var descriptors = !fails(function () {
|
|
21351
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
21351
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
21352
21352
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
21353
21353
|
});
|
|
21354
21354
|
|
|
21355
21355
|
var functionBindNative = !fails(function () {
|
|
21356
|
-
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
21356
|
+
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
|
21357
21357
|
var test = (function () { /* empty */ }).bind();
|
|
21358
21358
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
21359
21359
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
@@ -21366,7 +21366,7 @@ var functionCall = functionBindNative ? call.bind(call) : function () {
|
|
|
21366
21366
|
};
|
|
21367
21367
|
|
|
21368
21368
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
21369
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
21369
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
21370
21370
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
21371
21371
|
|
|
21372
21372
|
// Nashorn ~ JDK8 bug
|
|
@@ -21393,29 +21393,25 @@ var createPropertyDescriptor = function (bitmap, value) {
|
|
|
21393
21393
|
};
|
|
21394
21394
|
|
|
21395
21395
|
var FunctionPrototype = Function.prototype;
|
|
21396
|
+
var bind$1 = FunctionPrototype.bind;
|
|
21396
21397
|
var call$1 = FunctionPrototype.call;
|
|
21397
|
-
var
|
|
21398
|
+
var uncurryThis = functionBindNative && bind$1.bind(call$1, call$1);
|
|
21398
21399
|
|
|
21399
|
-
var
|
|
21400
|
-
return
|
|
21400
|
+
var functionUncurryThis = functionBindNative ? function (fn) {
|
|
21401
|
+
return fn && uncurryThis(fn);
|
|
21402
|
+
} : function (fn) {
|
|
21403
|
+
return fn && function () {
|
|
21401
21404
|
return call$1.apply(fn, arguments);
|
|
21402
21405
|
};
|
|
21403
21406
|
};
|
|
21404
21407
|
|
|
21405
|
-
var toString$2 =
|
|
21406
|
-
var stringSlice =
|
|
21408
|
+
var toString$2 = functionUncurryThis({}.toString);
|
|
21409
|
+
var stringSlice = functionUncurryThis(''.slice);
|
|
21407
21410
|
|
|
21408
21411
|
var classofRaw = function (it) {
|
|
21409
21412
|
return stringSlice(toString$2(it), 8, -1);
|
|
21410
21413
|
};
|
|
21411
21414
|
|
|
21412
|
-
var functionUncurryThis = function (fn) {
|
|
21413
|
-
// Nashorn bug:
|
|
21414
|
-
// https://github.com/zloirock/core-js/issues/1128
|
|
21415
|
-
// https://github.com/zloirock/core-js/issues/1130
|
|
21416
|
-
if (classofRaw(fn) === 'Function') return functionUncurryThisRaw(fn);
|
|
21417
|
-
};
|
|
21418
|
-
|
|
21419
21415
|
var $Object = Object;
|
|
21420
21416
|
var split = functionUncurryThis(''.split);
|
|
21421
21417
|
|
|
@@ -21428,18 +21424,12 @@ var indexedObject = fails(function () {
|
|
|
21428
21424
|
return classofRaw(it) == 'String' ? split(it, '') : $Object(it);
|
|
21429
21425
|
} : $Object;
|
|
21430
21426
|
|
|
21431
|
-
// we can't use just `it == null` since of `document.all` special case
|
|
21432
|
-
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
21433
|
-
var isNullOrUndefined = function (it) {
|
|
21434
|
-
return it === null || it === undefined;
|
|
21435
|
-
};
|
|
21436
|
-
|
|
21437
21427
|
var $TypeError = TypeError;
|
|
21438
21428
|
|
|
21439
21429
|
// `RequireObjectCoercible` abstract operation
|
|
21440
21430
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
21441
21431
|
var requireObjectCoercible = function (it) {
|
|
21442
|
-
if (
|
|
21432
|
+
if (it == undefined) throw $TypeError("Can't call method on " + it);
|
|
21443
21433
|
return it;
|
|
21444
21434
|
};
|
|
21445
21435
|
|
|
@@ -21451,31 +21441,13 @@ var toIndexedObject = function (it) {
|
|
|
21451
21441
|
return indexedObject(requireObjectCoercible(it));
|
|
21452
21442
|
};
|
|
21453
21443
|
|
|
21454
|
-
var documentAll = typeof document == 'object' && document.all;
|
|
21455
|
-
|
|
21456
|
-
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
21457
|
-
var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
|
|
21458
|
-
|
|
21459
|
-
var documentAll_1 = {
|
|
21460
|
-
all: documentAll,
|
|
21461
|
-
IS_HTMLDDA: IS_HTMLDDA
|
|
21462
|
-
};
|
|
21463
|
-
|
|
21464
|
-
var documentAll$1 = documentAll_1.all;
|
|
21465
|
-
|
|
21466
21444
|
// `IsCallable` abstract operation
|
|
21467
21445
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
21468
|
-
var isCallable =
|
|
21469
|
-
return typeof argument == 'function' || argument === documentAll$1;
|
|
21470
|
-
} : function (argument) {
|
|
21446
|
+
var isCallable = function (argument) {
|
|
21471
21447
|
return typeof argument == 'function';
|
|
21472
21448
|
};
|
|
21473
21449
|
|
|
21474
|
-
var
|
|
21475
|
-
|
|
21476
|
-
var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
|
|
21477
|
-
return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
|
|
21478
|
-
} : function (it) {
|
|
21450
|
+
var isObject = function (it) {
|
|
21479
21451
|
return typeof it == 'object' ? it !== null : isCallable(it);
|
|
21480
21452
|
};
|
|
21481
21453
|
|
|
@@ -21516,12 +21488,12 @@ if (!version && engineUserAgent) {
|
|
|
21516
21488
|
|
|
21517
21489
|
var engineV8Version = version;
|
|
21518
21490
|
|
|
21519
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
21491
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
21520
21492
|
|
|
21521
21493
|
|
|
21522
21494
|
|
|
21523
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
21524
|
-
var
|
|
21495
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
|
21496
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
21525
21497
|
var symbol = Symbol();
|
|
21526
21498
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
21527
21499
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -21530,10 +21502,10 @@ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(functi
|
|
|
21530
21502
|
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
|
21531
21503
|
});
|
|
21532
21504
|
|
|
21533
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
21505
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
21534
21506
|
|
|
21535
21507
|
|
|
21536
|
-
var useSymbolAsUid =
|
|
21508
|
+
var useSymbolAsUid = nativeSymbol
|
|
21537
21509
|
&& !Symbol.sham
|
|
21538
21510
|
&& typeof Symbol.iterator == 'symbol';
|
|
21539
21511
|
|
|
@@ -21568,7 +21540,7 @@ var aCallable = function (argument) {
|
|
|
21568
21540
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
21569
21541
|
var getMethod = function (V, P) {
|
|
21570
21542
|
var func = V[P];
|
|
21571
|
-
return
|
|
21543
|
+
return func == null ? undefined : aCallable(func);
|
|
21572
21544
|
};
|
|
21573
21545
|
|
|
21574
21546
|
var $TypeError$2 = TypeError;
|
|
@@ -21583,7 +21555,7 @@ var ordinaryToPrimitive = function (input, pref) {
|
|
|
21583
21555
|
throw $TypeError$2("Can't convert object to primitive value");
|
|
21584
21556
|
};
|
|
21585
21557
|
|
|
21586
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
21558
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
21587
21559
|
var defineProperty = Object.defineProperty;
|
|
21588
21560
|
|
|
21589
21561
|
var defineGlobalProperty = function (key, value) {
|
|
@@ -21603,10 +21575,10 @@ var shared = createCommonjsModule(function (module) {
|
|
|
21603
21575
|
(module.exports = function (key, value) {
|
|
21604
21576
|
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
21605
21577
|
})('versions', []).push({
|
|
21606
|
-
version: '3.
|
|
21578
|
+
version: '3.24.1',
|
|
21607
21579
|
mode: 'global',
|
|
21608
21580
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
21609
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
21581
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE',
|
|
21610
21582
|
source: 'https://github.com/zloirock/core-js'
|
|
21611
21583
|
});
|
|
21612
21584
|
});
|
|
@@ -21623,7 +21595,7 @@ var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
|
|
|
21623
21595
|
|
|
21624
21596
|
// `HasOwnProperty` abstract operation
|
|
21625
21597
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
21626
|
-
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
21598
|
+
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
|
21627
21599
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
21628
21600
|
return hasOwnProperty(toObject(it), key);
|
|
21629
21601
|
};
|
|
@@ -21642,9 +21614,9 @@ var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
|
21642
21614
|
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
|
21643
21615
|
|
|
21644
21616
|
var wellKnownSymbol = function (name) {
|
|
21645
|
-
if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(
|
|
21617
|
+
if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
21646
21618
|
var description = 'Symbol.' + name;
|
|
21647
|
-
if (
|
|
21619
|
+
if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
|
|
21648
21620
|
WellKnownSymbolsStore[name] = Symbol$1[name];
|
|
21649
21621
|
} else if (useSymbolAsUid && symbolFor) {
|
|
21650
21622
|
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
@@ -21690,13 +21662,13 @@ var documentCreateElement = function (it) {
|
|
|
21690
21662
|
|
|
21691
21663
|
// Thanks to IE8 for its funny defineProperty
|
|
21692
21664
|
var ie8DomDefine = !descriptors && !fails(function () {
|
|
21693
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
21665
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
21694
21666
|
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
|
21695
21667
|
get: function () { return 7; }
|
|
21696
21668
|
}).a != 7;
|
|
21697
21669
|
});
|
|
21698
21670
|
|
|
21699
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
21671
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
21700
21672
|
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
21701
21673
|
|
|
21702
21674
|
// `Object.getOwnPropertyDescriptor` method
|
|
@@ -21717,7 +21689,7 @@ var objectGetOwnPropertyDescriptor = {
|
|
|
21717
21689
|
// V8 ~ Chrome 36-
|
|
21718
21690
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
21719
21691
|
var v8PrototypeDefineBug = descriptors && fails(function () {
|
|
21720
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
21692
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
21721
21693
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
21722
21694
|
value: 42,
|
|
21723
21695
|
writable: false
|
|
@@ -21734,9 +21706,9 @@ var anObject = function (argument) {
|
|
|
21734
21706
|
};
|
|
21735
21707
|
|
|
21736
21708
|
var $TypeError$5 = TypeError;
|
|
21737
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
21709
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
21738
21710
|
var $defineProperty = Object.defineProperty;
|
|
21739
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
21711
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
21740
21712
|
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
21741
21713
|
var ENUMERABLE = 'enumerable';
|
|
21742
21714
|
var CONFIGURABLE = 'configurable';
|
|
@@ -21783,7 +21755,7 @@ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
|
|
|
21783
21755
|
};
|
|
21784
21756
|
|
|
21785
21757
|
var FunctionPrototype$1 = Function.prototype;
|
|
21786
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
21758
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
21787
21759
|
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
|
21788
21760
|
|
|
21789
21761
|
var EXISTS$1 = hasOwnProperty_1(FunctionPrototype$1, 'name');
|
|
@@ -21810,7 +21782,7 @@ var inspectSource = sharedStore.inspectSource;
|
|
|
21810
21782
|
|
|
21811
21783
|
var WeakMap$1 = global_1.WeakMap;
|
|
21812
21784
|
|
|
21813
|
-
var
|
|
21785
|
+
var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
|
|
21814
21786
|
|
|
21815
21787
|
var keys$1 = shared('keys');
|
|
21816
21788
|
|
|
@@ -21838,30 +21810,28 @@ var getterFor = function (TYPE) {
|
|
|
21838
21810
|
};
|
|
21839
21811
|
};
|
|
21840
21812
|
|
|
21841
|
-
if (
|
|
21813
|
+
if (nativeWeakMap || sharedStore.state) {
|
|
21842
21814
|
var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$2());
|
|
21843
|
-
|
|
21844
|
-
|
|
21845
|
-
|
|
21846
|
-
store$1.set = store$1.set;
|
|
21847
|
-
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
21815
|
+
var wmget = functionUncurryThis(store$1.get);
|
|
21816
|
+
var wmhas = functionUncurryThis(store$1.has);
|
|
21817
|
+
var wmset = functionUncurryThis(store$1.set);
|
|
21848
21818
|
set = function (it, metadata) {
|
|
21849
|
-
if (store$1
|
|
21819
|
+
if (wmhas(store$1, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
21850
21820
|
metadata.facade = it;
|
|
21851
|
-
store$1
|
|
21821
|
+
wmset(store$1, it, metadata);
|
|
21852
21822
|
return metadata;
|
|
21853
21823
|
};
|
|
21854
21824
|
get = function (it) {
|
|
21855
|
-
return store$1
|
|
21825
|
+
return wmget(store$1, it) || {};
|
|
21856
21826
|
};
|
|
21857
21827
|
has = function (it) {
|
|
21858
|
-
return store$1
|
|
21828
|
+
return wmhas(store$1, it);
|
|
21859
21829
|
};
|
|
21860
21830
|
} else {
|
|
21861
21831
|
var STATE = sharedKey('state');
|
|
21862
21832
|
hiddenKeys[STATE] = true;
|
|
21863
21833
|
set = function (it, metadata) {
|
|
21864
|
-
if (hasOwnProperty_1(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
21834
|
+
if (hasOwnProperty_1(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
21865
21835
|
metadata.facade = it;
|
|
21866
21836
|
createNonEnumerableProperty(it, STATE, metadata);
|
|
21867
21837
|
return metadata;
|
|
@@ -21889,7 +21859,7 @@ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
|
21889
21859
|
|
|
21890
21860
|
var enforceInternalState = internalState.enforce;
|
|
21891
21861
|
var getInternalState = internalState.get;
|
|
21892
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
21862
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
21893
21863
|
var defineProperty = Object.defineProperty;
|
|
21894
21864
|
|
|
21895
21865
|
var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
|
|
@@ -21958,7 +21928,7 @@ var floor = Math.floor;
|
|
|
21958
21928
|
|
|
21959
21929
|
// `Math.trunc` method
|
|
21960
21930
|
// https://tc39.es/ecma262/#sec-math.trunc
|
|
21961
|
-
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
21931
|
+
// eslint-disable-next-line es-x/no-math-trunc -- safe
|
|
21962
21932
|
var mathTrunc = Math.trunc || function trunc(x) {
|
|
21963
21933
|
var n = +x;
|
|
21964
21934
|
return (n > 0 ? floor : ceil)(n);
|
|
@@ -22059,7 +22029,7 @@ var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
|
|
|
22059
22029
|
|
|
22060
22030
|
// `Object.getOwnPropertyNames` method
|
|
22061
22031
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
22062
|
-
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
22032
|
+
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
|
22063
22033
|
var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
22064
22034
|
return objectKeysInternal(O, hiddenKeys$1);
|
|
22065
22035
|
};
|
|
@@ -22068,7 +22038,7 @@ var objectGetOwnPropertyNames = {
|
|
|
22068
22038
|
f: f$3
|
|
22069
22039
|
};
|
|
22070
22040
|
|
|
22071
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
22041
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
|
22072
22042
|
var f$4 = Object.getOwnPropertySymbols;
|
|
22073
22043
|
|
|
22074
22044
|
var objectGetOwnPropertySymbols = {
|
|
@@ -22212,7 +22182,7 @@ var toString_1 = function (argument) {
|
|
|
22212
22182
|
var charAt = functionUncurryThis(''.charAt);
|
|
22213
22183
|
|
|
22214
22184
|
var FORCED = fails(function () {
|
|
22215
|
-
// eslint-disable-next-line es/no-array-string-prototype-at -- safe
|
|
22185
|
+
// eslint-disable-next-line es-x/no-array-string-prototype-at -- safe
|
|
22216
22186
|
return '𠮷'.at(-2) !== '\uD842';
|
|
22217
22187
|
});
|
|
22218
22188
|
|
|
@@ -22230,14 +22200,14 @@ _export({ target: 'String', proto: true, forced: FORCED }, {
|
|
|
22230
22200
|
|
|
22231
22201
|
// `Object.keys` method
|
|
22232
22202
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
22233
|
-
// eslint-disable-next-line es/no-object-keys -- safe
|
|
22203
|
+
// eslint-disable-next-line es-x/no-object-keys -- safe
|
|
22234
22204
|
var objectKeys = Object.keys || function keys(O) {
|
|
22235
22205
|
return objectKeysInternal(O, enumBugKeys);
|
|
22236
22206
|
};
|
|
22237
22207
|
|
|
22238
22208
|
// `Object.defineProperties` method
|
|
22239
22209
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
22240
|
-
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
22210
|
+
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
|
22241
22211
|
var f$5 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
22242
22212
|
anObject(O);
|
|
22243
22213
|
var props = toIndexedObject(Properties);
|
|
@@ -22326,7 +22296,7 @@ hiddenKeys[IE_PROTO] = true;
|
|
|
22326
22296
|
|
|
22327
22297
|
// `Object.create` method
|
|
22328
22298
|
// https://tc39.es/ecma262/#sec-object.create
|
|
22329
|
-
// eslint-disable-next-line es/no-object-create -- safe
|
|
22299
|
+
// eslint-disable-next-line es-x/no-object-create -- safe
|
|
22330
22300
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
22331
22301
|
var result;
|
|
22332
22302
|
if (O !== null) {
|
|
@@ -22372,13 +22342,13 @@ _export({ target: 'Array', proto: true }, {
|
|
|
22372
22342
|
|
|
22373
22343
|
addToUnscopables('at');
|
|
22374
22344
|
|
|
22375
|
-
// eslint-disable-next-line es/no-typed-arrays -- safe
|
|
22376
|
-
var
|
|
22345
|
+
// eslint-disable-next-line es-x/no-typed-arrays -- safe
|
|
22346
|
+
var arrayBufferNative = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
|
|
22377
22347
|
|
|
22378
22348
|
var correctPrototypeGetter = !fails(function () {
|
|
22379
22349
|
function F() { /* empty */ }
|
|
22380
22350
|
F.prototype.constructor = null;
|
|
22381
|
-
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
22351
|
+
// eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
|
|
22382
22352
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
22383
22353
|
});
|
|
22384
22354
|
|
|
@@ -22388,7 +22358,7 @@ var ObjectPrototype = $Object$4.prototype;
|
|
|
22388
22358
|
|
|
22389
22359
|
// `Object.getPrototypeOf` method
|
|
22390
22360
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
22391
|
-
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
22361
|
+
// eslint-disable-next-line es-x/no-object-getprototypeof -- safe
|
|
22392
22362
|
var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : function (O) {
|
|
22393
22363
|
var object = toObject(O);
|
|
22394
22364
|
if (hasOwnProperty_1(object, IE_PROTO$1)) return object[IE_PROTO$1];
|
|
@@ -22414,13 +22384,13 @@ var aPossiblePrototype = function (argument) {
|
|
|
22414
22384
|
// `Object.setPrototypeOf` method
|
|
22415
22385
|
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
22416
22386
|
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
22417
|
-
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
22387
|
+
// eslint-disable-next-line es-x/no-object-setprototypeof -- safe
|
|
22418
22388
|
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
22419
22389
|
var CORRECT_SETTER = false;
|
|
22420
22390
|
var test = {};
|
|
22421
22391
|
var setter;
|
|
22422
22392
|
try {
|
|
22423
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22393
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
22424
22394
|
setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
22425
22395
|
setter(test, []);
|
|
22426
22396
|
CORRECT_SETTER = test instanceof Array;
|
|
@@ -22457,7 +22427,7 @@ var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
|
|
|
22457
22427
|
var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
|
|
22458
22428
|
var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
|
|
22459
22429
|
// Fixing native typed arrays in Opera Presto crashes the browser, see #595
|
|
22460
|
-
var NATIVE_ARRAY_BUFFER_VIEWS =
|
|
22430
|
+
var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferNative && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
|
|
22461
22431
|
var TYPED_ARRAY_TAG_REQUIRED = false;
|
|
22462
22432
|
var NAME, Constructor, Prototype;
|
|
22463
22433
|
|
|
@@ -47159,6 +47129,101 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
47159
47129
|
|
|
47160
47130
|
var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$L, "default");
|
|
47161
47131
|
|
|
47132
|
+
var backgroundColor$c = {
|
|
47133
|
+
"default": "#ffffff",
|
|
47134
|
+
footer: "#ffffff"
|
|
47135
|
+
};
|
|
47136
|
+
var linkColor$6 = {
|
|
47137
|
+
"default": "#3176AA",
|
|
47138
|
+
footer: "#ffffff"
|
|
47139
|
+
};
|
|
47140
|
+
var border$3 = {
|
|
47141
|
+
"default": "#cdcdcd",
|
|
47142
|
+
footer: "#cdcdcd"
|
|
47143
|
+
};
|
|
47144
|
+
var fontSize$b = {
|
|
47145
|
+
"default": "1rem",
|
|
47146
|
+
footer: "0.875rem"
|
|
47147
|
+
};
|
|
47148
|
+
var lineHeight$5 = {
|
|
47149
|
+
"default": "1.5rem",
|
|
47150
|
+
footer: "1.25rem"
|
|
47151
|
+
};
|
|
47152
|
+
var fontWeight$8 = {
|
|
47153
|
+
"default": FONT_WEIGHT_REGULAR,
|
|
47154
|
+
footer: FONT_WEIGHT_SEMIBOLD
|
|
47155
|
+
};
|
|
47156
|
+
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";
|
|
47157
|
+
var modalLinkHoverFocus$2 = {
|
|
47158
|
+
"default": standardInteractionStyles,
|
|
47159
|
+
footer: standardInteractionStyles
|
|
47160
|
+
};
|
|
47161
|
+
var fallbackValues$M = {
|
|
47162
|
+
backgroundColor: backgroundColor$c,
|
|
47163
|
+
linkColor: linkColor$6,
|
|
47164
|
+
border: border$3,
|
|
47165
|
+
fontSize: fontSize$b,
|
|
47166
|
+
lineHeight: lineHeight$5,
|
|
47167
|
+
fontWeight: fontWeight$8,
|
|
47168
|
+
modalLinkHoverFocus: modalLinkHoverFocus$2
|
|
47169
|
+
};
|
|
47170
|
+
|
|
47171
|
+
var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
47172
|
+
var link = _ref.link,
|
|
47173
|
+
_ref$title = _ref.title,
|
|
47174
|
+
title = _ref$title === void 0 ? "Terms & Conditions" : _ref$title,
|
|
47175
|
+
isOpen = _ref.isOpen,
|
|
47176
|
+
toggleOpen = _ref.toggleOpen,
|
|
47177
|
+
toggleAccepted = _ref.toggleAccepted,
|
|
47178
|
+
acceptText = _ref.acceptText,
|
|
47179
|
+
terms = _ref.terms,
|
|
47180
|
+
variant = _ref.variant,
|
|
47181
|
+
_ref$linkVariant = _ref.linkVariant,
|
|
47182
|
+
linkVariant = _ref$linkVariant === void 0 ? "p" : _ref$linkVariant,
|
|
47183
|
+
themeValues = _ref.themeValues;
|
|
47184
|
+
return /*#__PURE__*/React__default.createElement(Modal$1, {
|
|
47185
|
+
modalOpen: isOpen,
|
|
47186
|
+
hideModal: function hideModal() {
|
|
47187
|
+
return toggleOpen(false);
|
|
47188
|
+
},
|
|
47189
|
+
showModal: function showModal() {
|
|
47190
|
+
return toggleOpen(true);
|
|
47191
|
+
},
|
|
47192
|
+
modalHeaderText: title,
|
|
47193
|
+
modalBodyText: /*#__PURE__*/React__default.createElement(Box, {
|
|
47194
|
+
background: themeValues.backgroundColor,
|
|
47195
|
+
border: "1px solid ".concat(themeValues.border),
|
|
47196
|
+
borderRadius: "3px",
|
|
47197
|
+
extraStyles: "overflow: scroll; max-height: 20rem;"
|
|
47198
|
+
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
47199
|
+
variant: "p",
|
|
47200
|
+
extraStyles: "& a { text-decoration: underline; }"
|
|
47201
|
+
}, terms)),
|
|
47202
|
+
defaultWrapper: false,
|
|
47203
|
+
onlyCloseButton: !acceptText,
|
|
47204
|
+
continueButtonText: acceptText,
|
|
47205
|
+
continueAction: function continueAction() {
|
|
47206
|
+
toggleAccepted(true);
|
|
47207
|
+
toggleOpen(false);
|
|
47208
|
+
}
|
|
47209
|
+
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
47210
|
+
variant: linkVariant,
|
|
47211
|
+
onClick: function onClick() {
|
|
47212
|
+
return toggleOpen(true);
|
|
47213
|
+
},
|
|
47214
|
+
onKeyPress: function onKeyPress(e) {
|
|
47215
|
+
return e.key === "Enter" && toggleOpen(true);
|
|
47216
|
+
},
|
|
47217
|
+
tabIndex: "0",
|
|
47218
|
+
color: themeValues.linkColor,
|
|
47219
|
+
weight: themeValues.fontWeight,
|
|
47220
|
+
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
47221
|
+
extraStyles: "display: inline-block; width: fit-content; cursor: pointer"
|
|
47222
|
+
}, link));
|
|
47223
|
+
};
|
|
47224
|
+
|
|
47225
|
+
var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$M, "default");
|
|
47226
|
+
|
|
47162
47227
|
var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
47163
47228
|
var _routingNumberErrors, _accountNumberErrors;
|
|
47164
47229
|
|
|
@@ -47177,7 +47242,10 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47177
47242
|
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
47178
47243
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
47179
47244
|
saveToWallet = _ref.saveToWallet,
|
|
47180
|
-
walletCheckboxMarked = _ref.walletCheckboxMarked
|
|
47245
|
+
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
47246
|
+
termsContent = _ref.termsContent,
|
|
47247
|
+
_ref$termsTitle = _ref.termsTitle,
|
|
47248
|
+
termsTitle = _ref$termsTitle === void 0 ? "Terms & Conditions" : _ref$termsTitle;
|
|
47181
47249
|
|
|
47182
47250
|
if (clearOnDismount) {
|
|
47183
47251
|
React.useEffect(function () {
|
|
@@ -47197,6 +47265,13 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47197
47265
|
showAccount = _useState4[0],
|
|
47198
47266
|
toggleShowAccount = _useState4[1];
|
|
47199
47267
|
|
|
47268
|
+
var _useState5 = React.useState(false),
|
|
47269
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
47270
|
+
termsModalOpen = _useState6[0],
|
|
47271
|
+
setTermsModalOpen = _useState6[1];
|
|
47272
|
+
|
|
47273
|
+
var showTerms = !!termsContent;
|
|
47274
|
+
|
|
47200
47275
|
var nameErrors = _defineProperty({}, required.error, "Name is required");
|
|
47201
47276
|
|
|
47202
47277
|
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);
|
|
@@ -47305,12 +47380,24 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47305
47380
|
onChange: toggleCheckbox,
|
|
47306
47381
|
checked: defaultMethod.value,
|
|
47307
47382
|
hidden: hideDefaultPayment
|
|
47308
|
-
}), showWalletCheckbox && /*#__PURE__*/React__default.createElement(
|
|
47383
|
+
}), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
47384
|
+
childGap: "4px"
|
|
47385
|
+
}, showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
47309
47386
|
name: "bank checkbox",
|
|
47310
|
-
title: "Save checking account to wallet",
|
|
47387
|
+
title: "Save checking account to wallet.",
|
|
47311
47388
|
checked: walletCheckboxMarked,
|
|
47312
47389
|
onChange: saveToWallet
|
|
47313
|
-
})
|
|
47390
|
+
}), showTerms && /*#__PURE__*/React__default.createElement(Cover, {
|
|
47391
|
+
singleChild: true
|
|
47392
|
+
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
47393
|
+
childGap: 0
|
|
47394
|
+
}, /*#__PURE__*/React__default.createElement(Text$1, null, "View\xA0"), /*#__PURE__*/React__default.createElement(TermsAndConditionsModal$1, {
|
|
47395
|
+
link: termsTitle,
|
|
47396
|
+
terms: termsContent,
|
|
47397
|
+
title: termsTitle,
|
|
47398
|
+
isOpen: termsModalOpen,
|
|
47399
|
+
toggleOpen: setTermsModalOpen
|
|
47400
|
+
}))))));
|
|
47314
47401
|
};
|
|
47315
47402
|
|
|
47316
47403
|
var formConfig$6 = {
|
|
@@ -47364,11 +47451,20 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
47364
47451
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
47365
47452
|
saveToWallet = _ref.saveToWallet,
|
|
47366
47453
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
47367
|
-
deniedCards = _ref.deniedCards
|
|
47454
|
+
deniedCards = _ref.deniedCards,
|
|
47455
|
+
termsContent = _ref.termsContent,
|
|
47456
|
+
_ref$termsTitle = _ref.termsTitle,
|
|
47457
|
+
termsTitle = _ref$termsTitle === void 0 ? "Terms & Conditions" : _ref$termsTitle;
|
|
47368
47458
|
|
|
47369
47459
|
var _useContext = React.useContext(styled.ThemeContext),
|
|
47370
47460
|
isMobile = _useContext.isMobile;
|
|
47371
47461
|
|
|
47462
|
+
var _useState = React.useState(false),
|
|
47463
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
47464
|
+
termsModalOpen = _useState2[0],
|
|
47465
|
+
setTermsModalOpen = _useState2[1];
|
|
47466
|
+
|
|
47467
|
+
var showTerms = !!termsContent;
|
|
47372
47468
|
React.useEffect(function () {
|
|
47373
47469
|
if (deniedCards) {
|
|
47374
47470
|
deniedCards.map(function (card) {
|
|
@@ -47477,12 +47573,24 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
47477
47573
|
return e.key === "Enter" && handleSubmit(e);
|
|
47478
47574
|
},
|
|
47479
47575
|
autocomplete: "billing postal-code"
|
|
47480
|
-
})), showWalletCheckbox && /*#__PURE__*/React__default.createElement(
|
|
47576
|
+
})), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
47577
|
+
childGap: "4px"
|
|
47578
|
+
}, showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
47481
47579
|
name: "credit card checkbox",
|
|
47482
|
-
title: "Save credit card to wallet",
|
|
47580
|
+
title: "Save credit card to wallet.",
|
|
47483
47581
|
checked: walletCheckboxMarked,
|
|
47484
47582
|
onChange: saveToWallet
|
|
47485
|
-
})
|
|
47583
|
+
}), showTerms && /*#__PURE__*/React__default.createElement(Cover, {
|
|
47584
|
+
singleChild: true
|
|
47585
|
+
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
47586
|
+
childGap: 0
|
|
47587
|
+
}, /*#__PURE__*/React__default.createElement(Text$1, null, "View\xA0"), /*#__PURE__*/React__default.createElement(TermsAndConditionsModal$1, {
|
|
47588
|
+
link: termsTitle,
|
|
47589
|
+
terms: termsContent,
|
|
47590
|
+
title: termsTitle,
|
|
47591
|
+
isOpen: termsModalOpen,
|
|
47592
|
+
toggleOpen: setTermsModalOpen
|
|
47593
|
+
}))))));
|
|
47486
47594
|
};
|
|
47487
47595
|
|
|
47488
47596
|
var PaymentFormCard$1 = withWindowSize(PaymentFormCard);
|
|
@@ -47763,7 +47871,7 @@ var headingDisabledColor = "".concat(ATHENS_GREY);
|
|
|
47763
47871
|
var bodyBackgroundColor$1 = "#eeeeee";
|
|
47764
47872
|
var borderColor$5 = "".concat(GREY_CHATEAU);
|
|
47765
47873
|
var focusStyles = "outline: none;";
|
|
47766
|
-
var fallbackValues$
|
|
47874
|
+
var fallbackValues$N = {
|
|
47767
47875
|
headingBackgroundColor: headingBackgroundColor$1,
|
|
47768
47876
|
headingDisabledColor: headingDisabledColor,
|
|
47769
47877
|
bodyBackgroundColor: bodyBackgroundColor$1,
|
|
@@ -47951,7 +48059,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
47951
48059
|
})));
|
|
47952
48060
|
};
|
|
47953
48061
|
|
|
47954
|
-
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$
|
|
48062
|
+
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$N);
|
|
47955
48063
|
|
|
47956
48064
|
var RegistrationForm = function RegistrationForm(_ref) {
|
|
47957
48065
|
var _emailErrorMessages, _passwordErrorMessage;
|
|
@@ -48248,7 +48356,7 @@ var ResetPasswordSuccess = withWindowSize(ResetConfirmationForm$2);
|
|
|
48248
48356
|
var activeTabBackground = "#FFFFFF";
|
|
48249
48357
|
var activeTabAccent = "#15749D";
|
|
48250
48358
|
var activeTabHover = "#B8D5E1";
|
|
48251
|
-
var fallbackValues$
|
|
48359
|
+
var fallbackValues$O = {
|
|
48252
48360
|
activeTabBackground: activeTabBackground,
|
|
48253
48361
|
activeTabAccent: activeTabAccent,
|
|
48254
48362
|
activeTabHover: activeTabHover
|
|
@@ -48327,12 +48435,12 @@ var Tabs = function Tabs(_ref) {
|
|
|
48327
48435
|
}))));
|
|
48328
48436
|
};
|
|
48329
48437
|
|
|
48330
|
-
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$
|
|
48438
|
+
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$O);
|
|
48331
48439
|
|
|
48332
48440
|
var activeTabBackground$1 = "#FFFFFF";
|
|
48333
48441
|
var activeTabAccent$1 = "#15749D";
|
|
48334
48442
|
var activeTabHover$1 = "#B8D5E1";
|
|
48335
|
-
var fallbackValues$
|
|
48443
|
+
var fallbackValues$P = {
|
|
48336
48444
|
activeTabBackground: activeTabBackground$1,
|
|
48337
48445
|
activeTabAccent: activeTabAccent$1,
|
|
48338
48446
|
activeTabHover: activeTabHover$1
|
|
@@ -48388,100 +48496,7 @@ var TabSidebar = function TabSidebar(_ref) {
|
|
|
48388
48496
|
})));
|
|
48389
48497
|
};
|
|
48390
48498
|
|
|
48391
|
-
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$
|
|
48392
|
-
|
|
48393
|
-
var backgroundColor$c = {
|
|
48394
|
-
"default": "#ffffff",
|
|
48395
|
-
footer: "#ffffff"
|
|
48396
|
-
};
|
|
48397
|
-
var linkColor$6 = {
|
|
48398
|
-
"default": "#3176AA",
|
|
48399
|
-
footer: "#ffffff"
|
|
48400
|
-
};
|
|
48401
|
-
var border$3 = {
|
|
48402
|
-
"default": "#cdcdcd",
|
|
48403
|
-
footer: "#cdcdcd"
|
|
48404
|
-
};
|
|
48405
|
-
var fontSize$b = {
|
|
48406
|
-
"default": "1rem",
|
|
48407
|
-
footer: "0.875rem"
|
|
48408
|
-
};
|
|
48409
|
-
var lineHeight$5 = {
|
|
48410
|
-
"default": "1.5rem",
|
|
48411
|
-
footer: "1.25rem"
|
|
48412
|
-
};
|
|
48413
|
-
var fontWeight$8 = {
|
|
48414
|
-
"default": FONT_WEIGHT_REGULAR,
|
|
48415
|
-
footer: FONT_WEIGHT_SEMIBOLD
|
|
48416
|
-
};
|
|
48417
|
-
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";
|
|
48418
|
-
var modalLinkHoverFocus$2 = {
|
|
48419
|
-
"default": standardInteractionStyles,
|
|
48420
|
-
footer: standardInteractionStyles
|
|
48421
|
-
};
|
|
48422
|
-
var fallbackValues$P = {
|
|
48423
|
-
backgroundColor: backgroundColor$c,
|
|
48424
|
-
linkColor: linkColor$6,
|
|
48425
|
-
border: border$3,
|
|
48426
|
-
fontSize: fontSize$b,
|
|
48427
|
-
lineHeight: lineHeight$5,
|
|
48428
|
-
fontWeight: fontWeight$8,
|
|
48429
|
-
modalLinkHoverFocus: modalLinkHoverFocus$2
|
|
48430
|
-
};
|
|
48431
|
-
|
|
48432
|
-
var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
48433
|
-
var link = _ref.link,
|
|
48434
|
-
_ref$title = _ref.title,
|
|
48435
|
-
title = _ref$title === void 0 ? "Terms & Conditions" : _ref$title,
|
|
48436
|
-
isOpen = _ref.isOpen,
|
|
48437
|
-
toggleOpen = _ref.toggleOpen,
|
|
48438
|
-
toggleAccepted = _ref.toggleAccepted,
|
|
48439
|
-
acceptText = _ref.acceptText,
|
|
48440
|
-
terms = _ref.terms,
|
|
48441
|
-
variant = _ref.variant,
|
|
48442
|
-
themeValues = _ref.themeValues;
|
|
48443
|
-
return /*#__PURE__*/React__default.createElement(Modal$1, {
|
|
48444
|
-
modalOpen: isOpen,
|
|
48445
|
-
hideModal: function hideModal() {
|
|
48446
|
-
return toggleOpen(false);
|
|
48447
|
-
},
|
|
48448
|
-
showModal: function showModal() {
|
|
48449
|
-
return toggleOpen(true);
|
|
48450
|
-
},
|
|
48451
|
-
modalHeaderText: title,
|
|
48452
|
-
modalBodyText: /*#__PURE__*/React__default.createElement(Box, {
|
|
48453
|
-
background: themeValues.backgroundColor,
|
|
48454
|
-
border: "1px solid ".concat(themeValues.border),
|
|
48455
|
-
borderRadius: "3px",
|
|
48456
|
-
extraStyles: "overflow: scroll; max-height: 20rem;"
|
|
48457
|
-
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
48458
|
-
variant: "p",
|
|
48459
|
-
extraStyles: "& a { text-decoration: underline; }"
|
|
48460
|
-
}, terms)),
|
|
48461
|
-
defaultWrapper: false,
|
|
48462
|
-
onlyCloseButton: !acceptText,
|
|
48463
|
-
continueButtonText: acceptText,
|
|
48464
|
-
continueAction: function continueAction() {
|
|
48465
|
-
toggleAccepted(true);
|
|
48466
|
-
toggleOpen(false);
|
|
48467
|
-
}
|
|
48468
|
-
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
48469
|
-
variant: variant === "default" ? "pS" : "pXS",
|
|
48470
|
-
onClick: function onClick() {
|
|
48471
|
-
return toggleOpen(true);
|
|
48472
|
-
},
|
|
48473
|
-
onKeyPress: function onKeyPress(e) {
|
|
48474
|
-
return e.key === "Enter" && toggleOpen(true);
|
|
48475
|
-
},
|
|
48476
|
-
tabIndex: "0",
|
|
48477
|
-
color: themeValues.linkColor,
|
|
48478
|
-
weight: themeValues.fontWeight,
|
|
48479
|
-
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
48480
|
-
extraStyles: "display: inline-block; width: fit-content;"
|
|
48481
|
-
}, link));
|
|
48482
|
-
};
|
|
48483
|
-
|
|
48484
|
-
var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$P, "default");
|
|
48499
|
+
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$P);
|
|
48485
48500
|
|
|
48486
48501
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48487
48502
|
var onCheck = _ref.onCheck,
|
|
@@ -48489,7 +48504,8 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
|
48489
48504
|
html = _ref.html,
|
|
48490
48505
|
terms = _ref.terms,
|
|
48491
48506
|
_ref$error = _ref.error,
|
|
48492
|
-
error = _ref$error === void 0 ? false : _ref$error
|
|
48507
|
+
error = _ref$error === void 0 ? false : _ref$error,
|
|
48508
|
+
linkVariant = _ref.linkVariant;
|
|
48493
48509
|
|
|
48494
48510
|
var _useState = React.useState(false),
|
|
48495
48511
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -48510,7 +48526,8 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
|
48510
48526
|
link: "Learn More",
|
|
48511
48527
|
terms: terms,
|
|
48512
48528
|
isOpen: showTerms,
|
|
48513
|
-
toggleOpen: toggleShowTerms
|
|
48529
|
+
toggleOpen: toggleShowTerms,
|
|
48530
|
+
linkVariant: linkVariant
|
|
48514
48531
|
})))));
|
|
48515
48532
|
};
|
|
48516
48533
|
|