@thecb/components 7.8.2 → 7.8.3-beta.2
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 +222 -197
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +222 -197
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- 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/payment-form-card/index.d.ts +21 -0
- 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
|
@@ -21321,7 +21321,7 @@ var check = function (it) {
|
|
|
21321
21321
|
|
|
21322
21322
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
21323
21323
|
var global_1 =
|
|
21324
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
|
21324
|
+
// eslint-disable-next-line es-x/no-global-this -- safe
|
|
21325
21325
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
21326
21326
|
check(typeof window == 'object' && window) ||
|
|
21327
21327
|
// eslint-disable-next-line no-restricted-globals -- safe
|
|
@@ -21340,12 +21340,12 @@ var fails = function (exec) {
|
|
|
21340
21340
|
|
|
21341
21341
|
// Detect IE8's incomplete defineProperty implementation
|
|
21342
21342
|
var descriptors = !fails(function () {
|
|
21343
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
21343
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
21344
21344
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
21345
21345
|
});
|
|
21346
21346
|
|
|
21347
21347
|
var functionBindNative = !fails(function () {
|
|
21348
|
-
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
21348
|
+
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
|
21349
21349
|
var test = (function () { /* empty */ }).bind();
|
|
21350
21350
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
21351
21351
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
@@ -21358,7 +21358,7 @@ var functionCall = functionBindNative ? call.bind(call) : function () {
|
|
|
21358
21358
|
};
|
|
21359
21359
|
|
|
21360
21360
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
21361
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
21361
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
21362
21362
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
21363
21363
|
|
|
21364
21364
|
// Nashorn ~ JDK8 bug
|
|
@@ -21385,29 +21385,25 @@ var createPropertyDescriptor = function (bitmap, value) {
|
|
|
21385
21385
|
};
|
|
21386
21386
|
|
|
21387
21387
|
var FunctionPrototype = Function.prototype;
|
|
21388
|
+
var bind$1 = FunctionPrototype.bind;
|
|
21388
21389
|
var call$1 = FunctionPrototype.call;
|
|
21389
|
-
var
|
|
21390
|
+
var uncurryThis = functionBindNative && bind$1.bind(call$1, call$1);
|
|
21390
21391
|
|
|
21391
|
-
var
|
|
21392
|
-
return
|
|
21392
|
+
var functionUncurryThis = functionBindNative ? function (fn) {
|
|
21393
|
+
return fn && uncurryThis(fn);
|
|
21394
|
+
} : function (fn) {
|
|
21395
|
+
return fn && function () {
|
|
21393
21396
|
return call$1.apply(fn, arguments);
|
|
21394
21397
|
};
|
|
21395
21398
|
};
|
|
21396
21399
|
|
|
21397
|
-
var toString$2 =
|
|
21398
|
-
var stringSlice =
|
|
21400
|
+
var toString$2 = functionUncurryThis({}.toString);
|
|
21401
|
+
var stringSlice = functionUncurryThis(''.slice);
|
|
21399
21402
|
|
|
21400
21403
|
var classofRaw = function (it) {
|
|
21401
21404
|
return stringSlice(toString$2(it), 8, -1);
|
|
21402
21405
|
};
|
|
21403
21406
|
|
|
21404
|
-
var functionUncurryThis = function (fn) {
|
|
21405
|
-
// Nashorn bug:
|
|
21406
|
-
// https://github.com/zloirock/core-js/issues/1128
|
|
21407
|
-
// https://github.com/zloirock/core-js/issues/1130
|
|
21408
|
-
if (classofRaw(fn) === 'Function') return functionUncurryThisRaw(fn);
|
|
21409
|
-
};
|
|
21410
|
-
|
|
21411
21407
|
var $Object = Object;
|
|
21412
21408
|
var split = functionUncurryThis(''.split);
|
|
21413
21409
|
|
|
@@ -21420,18 +21416,12 @@ var indexedObject = fails(function () {
|
|
|
21420
21416
|
return classofRaw(it) == 'String' ? split(it, '') : $Object(it);
|
|
21421
21417
|
} : $Object;
|
|
21422
21418
|
|
|
21423
|
-
// we can't use just `it == null` since of `document.all` special case
|
|
21424
|
-
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
21425
|
-
var isNullOrUndefined = function (it) {
|
|
21426
|
-
return it === null || it === undefined;
|
|
21427
|
-
};
|
|
21428
|
-
|
|
21429
21419
|
var $TypeError = TypeError;
|
|
21430
21420
|
|
|
21431
21421
|
// `RequireObjectCoercible` abstract operation
|
|
21432
21422
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
21433
21423
|
var requireObjectCoercible = function (it) {
|
|
21434
|
-
if (
|
|
21424
|
+
if (it == undefined) throw $TypeError("Can't call method on " + it);
|
|
21435
21425
|
return it;
|
|
21436
21426
|
};
|
|
21437
21427
|
|
|
@@ -21443,31 +21433,13 @@ var toIndexedObject = function (it) {
|
|
|
21443
21433
|
return indexedObject(requireObjectCoercible(it));
|
|
21444
21434
|
};
|
|
21445
21435
|
|
|
21446
|
-
var documentAll = typeof document == 'object' && document.all;
|
|
21447
|
-
|
|
21448
|
-
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
21449
|
-
var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
|
|
21450
|
-
|
|
21451
|
-
var documentAll_1 = {
|
|
21452
|
-
all: documentAll,
|
|
21453
|
-
IS_HTMLDDA: IS_HTMLDDA
|
|
21454
|
-
};
|
|
21455
|
-
|
|
21456
|
-
var documentAll$1 = documentAll_1.all;
|
|
21457
|
-
|
|
21458
21436
|
// `IsCallable` abstract operation
|
|
21459
21437
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
21460
|
-
var isCallable =
|
|
21461
|
-
return typeof argument == 'function' || argument === documentAll$1;
|
|
21462
|
-
} : function (argument) {
|
|
21438
|
+
var isCallable = function (argument) {
|
|
21463
21439
|
return typeof argument == 'function';
|
|
21464
21440
|
};
|
|
21465
21441
|
|
|
21466
|
-
var
|
|
21467
|
-
|
|
21468
|
-
var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
|
|
21469
|
-
return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
|
|
21470
|
-
} : function (it) {
|
|
21442
|
+
var isObject = function (it) {
|
|
21471
21443
|
return typeof it == 'object' ? it !== null : isCallable(it);
|
|
21472
21444
|
};
|
|
21473
21445
|
|
|
@@ -21508,12 +21480,12 @@ if (!version && engineUserAgent) {
|
|
|
21508
21480
|
|
|
21509
21481
|
var engineV8Version = version;
|
|
21510
21482
|
|
|
21511
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
21483
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
21512
21484
|
|
|
21513
21485
|
|
|
21514
21486
|
|
|
21515
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
21516
|
-
var
|
|
21487
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
|
21488
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
21517
21489
|
var symbol = Symbol();
|
|
21518
21490
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
21519
21491
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -21522,10 +21494,10 @@ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(functi
|
|
|
21522
21494
|
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
|
21523
21495
|
});
|
|
21524
21496
|
|
|
21525
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
21497
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
21526
21498
|
|
|
21527
21499
|
|
|
21528
|
-
var useSymbolAsUid =
|
|
21500
|
+
var useSymbolAsUid = nativeSymbol
|
|
21529
21501
|
&& !Symbol.sham
|
|
21530
21502
|
&& typeof Symbol.iterator == 'symbol';
|
|
21531
21503
|
|
|
@@ -21560,7 +21532,7 @@ var aCallable = function (argument) {
|
|
|
21560
21532
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
21561
21533
|
var getMethod = function (V, P) {
|
|
21562
21534
|
var func = V[P];
|
|
21563
|
-
return
|
|
21535
|
+
return func == null ? undefined : aCallable(func);
|
|
21564
21536
|
};
|
|
21565
21537
|
|
|
21566
21538
|
var $TypeError$2 = TypeError;
|
|
@@ -21575,7 +21547,7 @@ var ordinaryToPrimitive = function (input, pref) {
|
|
|
21575
21547
|
throw $TypeError$2("Can't convert object to primitive value");
|
|
21576
21548
|
};
|
|
21577
21549
|
|
|
21578
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
21550
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
21579
21551
|
var defineProperty = Object.defineProperty;
|
|
21580
21552
|
|
|
21581
21553
|
var defineGlobalProperty = function (key, value) {
|
|
@@ -21595,10 +21567,10 @@ var shared = createCommonjsModule(function (module) {
|
|
|
21595
21567
|
(module.exports = function (key, value) {
|
|
21596
21568
|
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
|
21597
21569
|
})('versions', []).push({
|
|
21598
|
-
version: '3.
|
|
21570
|
+
version: '3.24.1',
|
|
21599
21571
|
mode: 'global',
|
|
21600
21572
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
21601
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
21573
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE',
|
|
21602
21574
|
source: 'https://github.com/zloirock/core-js'
|
|
21603
21575
|
});
|
|
21604
21576
|
});
|
|
@@ -21615,7 +21587,7 @@ var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
|
|
|
21615
21587
|
|
|
21616
21588
|
// `HasOwnProperty` abstract operation
|
|
21617
21589
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
21618
|
-
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
21590
|
+
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
|
21619
21591
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
21620
21592
|
return hasOwnProperty(toObject(it), key);
|
|
21621
21593
|
};
|
|
@@ -21634,9 +21606,9 @@ var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
|
21634
21606
|
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
|
21635
21607
|
|
|
21636
21608
|
var wellKnownSymbol = function (name) {
|
|
21637
|
-
if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(
|
|
21609
|
+
if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
21638
21610
|
var description = 'Symbol.' + name;
|
|
21639
|
-
if (
|
|
21611
|
+
if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
|
|
21640
21612
|
WellKnownSymbolsStore[name] = Symbol$1[name];
|
|
21641
21613
|
} else if (useSymbolAsUid && symbolFor) {
|
|
21642
21614
|
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
@@ -21682,13 +21654,13 @@ var documentCreateElement = function (it) {
|
|
|
21682
21654
|
|
|
21683
21655
|
// Thanks to IE8 for its funny defineProperty
|
|
21684
21656
|
var ie8DomDefine = !descriptors && !fails(function () {
|
|
21685
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
21657
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
21686
21658
|
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
|
21687
21659
|
get: function () { return 7; }
|
|
21688
21660
|
}).a != 7;
|
|
21689
21661
|
});
|
|
21690
21662
|
|
|
21691
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
21663
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
21692
21664
|
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
21693
21665
|
|
|
21694
21666
|
// `Object.getOwnPropertyDescriptor` method
|
|
@@ -21709,7 +21681,7 @@ var objectGetOwnPropertyDescriptor = {
|
|
|
21709
21681
|
// V8 ~ Chrome 36-
|
|
21710
21682
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
21711
21683
|
var v8PrototypeDefineBug = descriptors && fails(function () {
|
|
21712
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
21684
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
21713
21685
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
21714
21686
|
value: 42,
|
|
21715
21687
|
writable: false
|
|
@@ -21726,9 +21698,9 @@ var anObject = function (argument) {
|
|
|
21726
21698
|
};
|
|
21727
21699
|
|
|
21728
21700
|
var $TypeError$5 = TypeError;
|
|
21729
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
21701
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
21730
21702
|
var $defineProperty = Object.defineProperty;
|
|
21731
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
21703
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
21732
21704
|
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
21733
21705
|
var ENUMERABLE = 'enumerable';
|
|
21734
21706
|
var CONFIGURABLE = 'configurable';
|
|
@@ -21775,7 +21747,7 @@ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
|
|
|
21775
21747
|
};
|
|
21776
21748
|
|
|
21777
21749
|
var FunctionPrototype$1 = Function.prototype;
|
|
21778
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
21750
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
21779
21751
|
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
|
21780
21752
|
|
|
21781
21753
|
var EXISTS$1 = hasOwnProperty_1(FunctionPrototype$1, 'name');
|
|
@@ -21802,7 +21774,7 @@ var inspectSource = sharedStore.inspectSource;
|
|
|
21802
21774
|
|
|
21803
21775
|
var WeakMap$1 = global_1.WeakMap;
|
|
21804
21776
|
|
|
21805
|
-
var
|
|
21777
|
+
var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
|
|
21806
21778
|
|
|
21807
21779
|
var keys$1 = shared('keys');
|
|
21808
21780
|
|
|
@@ -21830,30 +21802,28 @@ var getterFor = function (TYPE) {
|
|
|
21830
21802
|
};
|
|
21831
21803
|
};
|
|
21832
21804
|
|
|
21833
|
-
if (
|
|
21805
|
+
if (nativeWeakMap || sharedStore.state) {
|
|
21834
21806
|
var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$2());
|
|
21835
|
-
|
|
21836
|
-
|
|
21837
|
-
|
|
21838
|
-
store$1.set = store$1.set;
|
|
21839
|
-
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
21807
|
+
var wmget = functionUncurryThis(store$1.get);
|
|
21808
|
+
var wmhas = functionUncurryThis(store$1.has);
|
|
21809
|
+
var wmset = functionUncurryThis(store$1.set);
|
|
21840
21810
|
set = function (it, metadata) {
|
|
21841
|
-
if (store$1
|
|
21811
|
+
if (wmhas(store$1, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
21842
21812
|
metadata.facade = it;
|
|
21843
|
-
store$1
|
|
21813
|
+
wmset(store$1, it, metadata);
|
|
21844
21814
|
return metadata;
|
|
21845
21815
|
};
|
|
21846
21816
|
get = function (it) {
|
|
21847
|
-
return store$1
|
|
21817
|
+
return wmget(store$1, it) || {};
|
|
21848
21818
|
};
|
|
21849
21819
|
has = function (it) {
|
|
21850
|
-
return store$1
|
|
21820
|
+
return wmhas(store$1, it);
|
|
21851
21821
|
};
|
|
21852
21822
|
} else {
|
|
21853
21823
|
var STATE = sharedKey('state');
|
|
21854
21824
|
hiddenKeys[STATE] = true;
|
|
21855
21825
|
set = function (it, metadata) {
|
|
21856
|
-
if (hasOwnProperty_1(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
21826
|
+
if (hasOwnProperty_1(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
21857
21827
|
metadata.facade = it;
|
|
21858
21828
|
createNonEnumerableProperty(it, STATE, metadata);
|
|
21859
21829
|
return metadata;
|
|
@@ -21881,7 +21851,7 @@ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
|
21881
21851
|
|
|
21882
21852
|
var enforceInternalState = internalState.enforce;
|
|
21883
21853
|
var getInternalState = internalState.get;
|
|
21884
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
21854
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
21885
21855
|
var defineProperty = Object.defineProperty;
|
|
21886
21856
|
|
|
21887
21857
|
var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
|
|
@@ -21950,7 +21920,7 @@ var floor = Math.floor;
|
|
|
21950
21920
|
|
|
21951
21921
|
// `Math.trunc` method
|
|
21952
21922
|
// https://tc39.es/ecma262/#sec-math.trunc
|
|
21953
|
-
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
21923
|
+
// eslint-disable-next-line es-x/no-math-trunc -- safe
|
|
21954
21924
|
var mathTrunc = Math.trunc || function trunc(x) {
|
|
21955
21925
|
var n = +x;
|
|
21956
21926
|
return (n > 0 ? floor : ceil)(n);
|
|
@@ -22051,7 +22021,7 @@ var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
|
|
|
22051
22021
|
|
|
22052
22022
|
// `Object.getOwnPropertyNames` method
|
|
22053
22023
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
22054
|
-
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
22024
|
+
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
|
22055
22025
|
var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
22056
22026
|
return objectKeysInternal(O, hiddenKeys$1);
|
|
22057
22027
|
};
|
|
@@ -22060,7 +22030,7 @@ var objectGetOwnPropertyNames = {
|
|
|
22060
22030
|
f: f$3
|
|
22061
22031
|
};
|
|
22062
22032
|
|
|
22063
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
22033
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
|
22064
22034
|
var f$4 = Object.getOwnPropertySymbols;
|
|
22065
22035
|
|
|
22066
22036
|
var objectGetOwnPropertySymbols = {
|
|
@@ -22204,7 +22174,7 @@ var toString_1 = function (argument) {
|
|
|
22204
22174
|
var charAt = functionUncurryThis(''.charAt);
|
|
22205
22175
|
|
|
22206
22176
|
var FORCED = fails(function () {
|
|
22207
|
-
// eslint-disable-next-line es/no-array-string-prototype-at -- safe
|
|
22177
|
+
// eslint-disable-next-line es-x/no-array-string-prototype-at -- safe
|
|
22208
22178
|
return '𠮷'.at(-2) !== '\uD842';
|
|
22209
22179
|
});
|
|
22210
22180
|
|
|
@@ -22222,14 +22192,14 @@ _export({ target: 'String', proto: true, forced: FORCED }, {
|
|
|
22222
22192
|
|
|
22223
22193
|
// `Object.keys` method
|
|
22224
22194
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
22225
|
-
// eslint-disable-next-line es/no-object-keys -- safe
|
|
22195
|
+
// eslint-disable-next-line es-x/no-object-keys -- safe
|
|
22226
22196
|
var objectKeys = Object.keys || function keys(O) {
|
|
22227
22197
|
return objectKeysInternal(O, enumBugKeys);
|
|
22228
22198
|
};
|
|
22229
22199
|
|
|
22230
22200
|
// `Object.defineProperties` method
|
|
22231
22201
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
22232
|
-
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
22202
|
+
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
|
22233
22203
|
var f$5 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
22234
22204
|
anObject(O);
|
|
22235
22205
|
var props = toIndexedObject(Properties);
|
|
@@ -22318,7 +22288,7 @@ hiddenKeys[IE_PROTO] = true;
|
|
|
22318
22288
|
|
|
22319
22289
|
// `Object.create` method
|
|
22320
22290
|
// https://tc39.es/ecma262/#sec-object.create
|
|
22321
|
-
// eslint-disable-next-line es/no-object-create -- safe
|
|
22291
|
+
// eslint-disable-next-line es-x/no-object-create -- safe
|
|
22322
22292
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
22323
22293
|
var result;
|
|
22324
22294
|
if (O !== null) {
|
|
@@ -22364,13 +22334,13 @@ _export({ target: 'Array', proto: true }, {
|
|
|
22364
22334
|
|
|
22365
22335
|
addToUnscopables('at');
|
|
22366
22336
|
|
|
22367
|
-
// eslint-disable-next-line es/no-typed-arrays -- safe
|
|
22368
|
-
var
|
|
22337
|
+
// eslint-disable-next-line es-x/no-typed-arrays -- safe
|
|
22338
|
+
var arrayBufferNative = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
|
|
22369
22339
|
|
|
22370
22340
|
var correctPrototypeGetter = !fails(function () {
|
|
22371
22341
|
function F() { /* empty */ }
|
|
22372
22342
|
F.prototype.constructor = null;
|
|
22373
|
-
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
22343
|
+
// eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
|
|
22374
22344
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
22375
22345
|
});
|
|
22376
22346
|
|
|
@@ -22380,7 +22350,7 @@ var ObjectPrototype = $Object$4.prototype;
|
|
|
22380
22350
|
|
|
22381
22351
|
// `Object.getPrototypeOf` method
|
|
22382
22352
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
22383
|
-
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
22353
|
+
// eslint-disable-next-line es-x/no-object-getprototypeof -- safe
|
|
22384
22354
|
var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : function (O) {
|
|
22385
22355
|
var object = toObject(O);
|
|
22386
22356
|
if (hasOwnProperty_1(object, IE_PROTO$1)) return object[IE_PROTO$1];
|
|
@@ -22406,13 +22376,13 @@ var aPossiblePrototype = function (argument) {
|
|
|
22406
22376
|
// `Object.setPrototypeOf` method
|
|
22407
22377
|
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
22408
22378
|
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
22409
|
-
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
22379
|
+
// eslint-disable-next-line es-x/no-object-setprototypeof -- safe
|
|
22410
22380
|
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
22411
22381
|
var CORRECT_SETTER = false;
|
|
22412
22382
|
var test = {};
|
|
22413
22383
|
var setter;
|
|
22414
22384
|
try {
|
|
22415
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
22385
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
22416
22386
|
setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
22417
22387
|
setter(test, []);
|
|
22418
22388
|
CORRECT_SETTER = test instanceof Array;
|
|
@@ -22449,7 +22419,7 @@ var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
|
|
|
22449
22419
|
var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
|
|
22450
22420
|
var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
|
|
22451
22421
|
// Fixing native typed arrays in Opera Presto crashes the browser, see #595
|
|
22452
|
-
var NATIVE_ARRAY_BUFFER_VIEWS =
|
|
22422
|
+
var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferNative && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
|
|
22453
22423
|
var TYPED_ARRAY_TAG_REQUIRED = false;
|
|
22454
22424
|
var NAME, Constructor, Prototype;
|
|
22455
22425
|
|
|
@@ -47151,6 +47121,101 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
47151
47121
|
|
|
47152
47122
|
var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$L, "default");
|
|
47153
47123
|
|
|
47124
|
+
var backgroundColor$c = {
|
|
47125
|
+
"default": "#ffffff",
|
|
47126
|
+
footer: "#ffffff"
|
|
47127
|
+
};
|
|
47128
|
+
var linkColor$6 = {
|
|
47129
|
+
"default": "#3176AA",
|
|
47130
|
+
footer: "#ffffff"
|
|
47131
|
+
};
|
|
47132
|
+
var border$3 = {
|
|
47133
|
+
"default": "#cdcdcd",
|
|
47134
|
+
footer: "#cdcdcd"
|
|
47135
|
+
};
|
|
47136
|
+
var fontSize$b = {
|
|
47137
|
+
"default": "1rem",
|
|
47138
|
+
footer: "0.875rem"
|
|
47139
|
+
};
|
|
47140
|
+
var lineHeight$5 = {
|
|
47141
|
+
"default": "1.5rem",
|
|
47142
|
+
footer: "1.25rem"
|
|
47143
|
+
};
|
|
47144
|
+
var fontWeight$8 = {
|
|
47145
|
+
"default": FONT_WEIGHT_REGULAR,
|
|
47146
|
+
footer: FONT_WEIGHT_SEMIBOLD
|
|
47147
|
+
};
|
|
47148
|
+
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";
|
|
47149
|
+
var modalLinkHoverFocus$2 = {
|
|
47150
|
+
"default": standardInteractionStyles,
|
|
47151
|
+
footer: standardInteractionStyles
|
|
47152
|
+
};
|
|
47153
|
+
var fallbackValues$M = {
|
|
47154
|
+
backgroundColor: backgroundColor$c,
|
|
47155
|
+
linkColor: linkColor$6,
|
|
47156
|
+
border: border$3,
|
|
47157
|
+
fontSize: fontSize$b,
|
|
47158
|
+
lineHeight: lineHeight$5,
|
|
47159
|
+
fontWeight: fontWeight$8,
|
|
47160
|
+
modalLinkHoverFocus: modalLinkHoverFocus$2
|
|
47161
|
+
};
|
|
47162
|
+
|
|
47163
|
+
var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
47164
|
+
var link = _ref.link,
|
|
47165
|
+
_ref$title = _ref.title,
|
|
47166
|
+
title = _ref$title === void 0 ? "Terms & Conditions" : _ref$title,
|
|
47167
|
+
isOpen = _ref.isOpen,
|
|
47168
|
+
toggleOpen = _ref.toggleOpen,
|
|
47169
|
+
toggleAccepted = _ref.toggleAccepted,
|
|
47170
|
+
acceptText = _ref.acceptText,
|
|
47171
|
+
terms = _ref.terms,
|
|
47172
|
+
variant = _ref.variant,
|
|
47173
|
+
_ref$linkVariant = _ref.linkVariant,
|
|
47174
|
+
linkVariant = _ref$linkVariant === void 0 ? "p" : _ref$linkVariant,
|
|
47175
|
+
themeValues = _ref.themeValues;
|
|
47176
|
+
return /*#__PURE__*/React.createElement(Modal$1, {
|
|
47177
|
+
modalOpen: isOpen,
|
|
47178
|
+
hideModal: function hideModal() {
|
|
47179
|
+
return toggleOpen(false);
|
|
47180
|
+
},
|
|
47181
|
+
showModal: function showModal() {
|
|
47182
|
+
return toggleOpen(true);
|
|
47183
|
+
},
|
|
47184
|
+
modalHeaderText: title,
|
|
47185
|
+
modalBodyText: /*#__PURE__*/React.createElement(Box, {
|
|
47186
|
+
background: themeValues.backgroundColor,
|
|
47187
|
+
border: "1px solid ".concat(themeValues.border),
|
|
47188
|
+
borderRadius: "3px",
|
|
47189
|
+
extraStyles: "overflow: scroll; max-height: 20rem;"
|
|
47190
|
+
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
47191
|
+
variant: "p",
|
|
47192
|
+
extraStyles: "& a { text-decoration: underline; }"
|
|
47193
|
+
}, terms)),
|
|
47194
|
+
defaultWrapper: false,
|
|
47195
|
+
onlyCloseButton: !acceptText,
|
|
47196
|
+
continueButtonText: acceptText,
|
|
47197
|
+
continueAction: function continueAction() {
|
|
47198
|
+
toggleAccepted(true);
|
|
47199
|
+
toggleOpen(false);
|
|
47200
|
+
}
|
|
47201
|
+
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
47202
|
+
variant: linkVariant,
|
|
47203
|
+
onClick: function onClick() {
|
|
47204
|
+
return toggleOpen(true);
|
|
47205
|
+
},
|
|
47206
|
+
onKeyPress: function onKeyPress(e) {
|
|
47207
|
+
return e.key === "Enter" && toggleOpen(true);
|
|
47208
|
+
},
|
|
47209
|
+
tabIndex: "0",
|
|
47210
|
+
color: themeValues.linkColor,
|
|
47211
|
+
weight: themeValues.fontWeight,
|
|
47212
|
+
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
47213
|
+
extraStyles: "display: inline-block; width: fit-content; cursor: pointer"
|
|
47214
|
+
}, link));
|
|
47215
|
+
};
|
|
47216
|
+
|
|
47217
|
+
var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$M, "default");
|
|
47218
|
+
|
|
47154
47219
|
var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
47155
47220
|
var _routingNumberErrors, _accountNumberErrors;
|
|
47156
47221
|
|
|
@@ -47169,7 +47234,10 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47169
47234
|
handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
|
|
47170
47235
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
47171
47236
|
saveToWallet = _ref.saveToWallet,
|
|
47172
|
-
walletCheckboxMarked = _ref.walletCheckboxMarked
|
|
47237
|
+
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
47238
|
+
termsContent = _ref.termsContent,
|
|
47239
|
+
_ref$termsTitle = _ref.termsTitle,
|
|
47240
|
+
termsTitle = _ref$termsTitle === void 0 ? "Terms & Conditions" : _ref$termsTitle;
|
|
47173
47241
|
|
|
47174
47242
|
if (clearOnDismount) {
|
|
47175
47243
|
useEffect$1(function () {
|
|
@@ -47189,6 +47257,14 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47189
47257
|
showAccount = _useState4[0],
|
|
47190
47258
|
toggleShowAccount = _useState4[1];
|
|
47191
47259
|
|
|
47260
|
+
var _useState5 = useState(false),
|
|
47261
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
47262
|
+
termsModalOpen = _useState6[0],
|
|
47263
|
+
setTermsModalOpen = _useState6[1];
|
|
47264
|
+
|
|
47265
|
+
var showTerms = !!termsContent;
|
|
47266
|
+
var showTermsLinkVariant = showWalletCheckbox ? "p" : "pS";
|
|
47267
|
+
|
|
47192
47268
|
var nameErrors = _defineProperty({}, required.error, "Name is required");
|
|
47193
47269
|
|
|
47194
47270
|
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);
|
|
@@ -47297,12 +47373,27 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
|
|
|
47297
47373
|
onChange: toggleCheckbox,
|
|
47298
47374
|
checked: defaultMethod.value,
|
|
47299
47375
|
hidden: hideDefaultPayment
|
|
47300
|
-
}), showWalletCheckbox && /*#__PURE__*/React.createElement(
|
|
47376
|
+
}), (showWalletCheckbox || showTerms) && /*#__PURE__*/React.createElement(Cluster, {
|
|
47377
|
+
childGap: "4px"
|
|
47378
|
+
}, showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
47301
47379
|
name: "bank checkbox",
|
|
47302
|
-
title: "Save checking account to wallet",
|
|
47380
|
+
title: "Save checking account to wallet.",
|
|
47303
47381
|
checked: walletCheckboxMarked,
|
|
47304
47382
|
onChange: saveToWallet
|
|
47305
|
-
})
|
|
47383
|
+
}), showTerms && /*#__PURE__*/React.createElement(Cover, {
|
|
47384
|
+
singleChild: true
|
|
47385
|
+
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
47386
|
+
childGap: 0
|
|
47387
|
+
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
47388
|
+
variant: showTermsLinkVariant
|
|
47389
|
+
}, "View\xA0"), /*#__PURE__*/React.createElement(TermsAndConditionsModal$1, {
|
|
47390
|
+
link: termsTitle,
|
|
47391
|
+
linkVariant: showTermsLinkVariant,
|
|
47392
|
+
terms: termsContent,
|
|
47393
|
+
title: termsTitle,
|
|
47394
|
+
isOpen: termsModalOpen,
|
|
47395
|
+
toggleOpen: setTermsModalOpen
|
|
47396
|
+
}))))));
|
|
47306
47397
|
};
|
|
47307
47398
|
|
|
47308
47399
|
var formConfig$6 = {
|
|
@@ -47356,11 +47447,21 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
47356
47447
|
showWalletCheckbox = _ref.showWalletCheckbox,
|
|
47357
47448
|
saveToWallet = _ref.saveToWallet,
|
|
47358
47449
|
walletCheckboxMarked = _ref.walletCheckboxMarked,
|
|
47359
|
-
deniedCards = _ref.deniedCards
|
|
47450
|
+
deniedCards = _ref.deniedCards,
|
|
47451
|
+
termsContent = _ref.termsContent,
|
|
47452
|
+
_ref$termsTitle = _ref.termsTitle,
|
|
47453
|
+
termsTitle = _ref$termsTitle === void 0 ? "Terms & Conditions" : _ref$termsTitle;
|
|
47360
47454
|
|
|
47361
47455
|
var _useContext = useContext(ThemeContext),
|
|
47362
47456
|
isMobile = _useContext.isMobile;
|
|
47363
47457
|
|
|
47458
|
+
var _useState = useState(false),
|
|
47459
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
47460
|
+
termsModalOpen = _useState2[0],
|
|
47461
|
+
setTermsModalOpen = _useState2[1];
|
|
47462
|
+
|
|
47463
|
+
var showTerms = !!termsContent;
|
|
47464
|
+
var showTermsLinkVariant = showWalletCheckbox ? "p" : "pS";
|
|
47364
47465
|
useEffect$1(function () {
|
|
47365
47466
|
if (deniedCards) {
|
|
47366
47467
|
deniedCards.map(function (card) {
|
|
@@ -47469,12 +47570,27 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
|
|
|
47469
47570
|
return e.key === "Enter" && handleSubmit(e);
|
|
47470
47571
|
},
|
|
47471
47572
|
autocomplete: "billing postal-code"
|
|
47472
|
-
})), showWalletCheckbox && /*#__PURE__*/React.createElement(
|
|
47573
|
+
})), (showWalletCheckbox || showTerms) && /*#__PURE__*/React.createElement(Cluster, {
|
|
47574
|
+
childGap: "4px"
|
|
47575
|
+
}, showWalletCheckbox && /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
47473
47576
|
name: "credit card checkbox",
|
|
47474
|
-
title: "Save credit card to wallet",
|
|
47577
|
+
title: "Save credit card to wallet.",
|
|
47475
47578
|
checked: walletCheckboxMarked,
|
|
47476
47579
|
onChange: saveToWallet
|
|
47477
|
-
})
|
|
47580
|
+
}), showTerms && /*#__PURE__*/React.createElement(Cover, {
|
|
47581
|
+
singleChild: true
|
|
47582
|
+
}, /*#__PURE__*/React.createElement(Cluster, {
|
|
47583
|
+
childGap: 0
|
|
47584
|
+
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
47585
|
+
variant: showTermsLinkVariant
|
|
47586
|
+
}, "View\xA0"), /*#__PURE__*/React.createElement(TermsAndConditionsModal$1, {
|
|
47587
|
+
link: termsTitle,
|
|
47588
|
+
linkVariant: showTermsLinkVariant,
|
|
47589
|
+
terms: termsContent,
|
|
47590
|
+
title: termsTitle,
|
|
47591
|
+
isOpen: termsModalOpen,
|
|
47592
|
+
toggleOpen: setTermsModalOpen
|
|
47593
|
+
}))))));
|
|
47478
47594
|
};
|
|
47479
47595
|
|
|
47480
47596
|
var PaymentFormCard$1 = withWindowSize(PaymentFormCard);
|
|
@@ -47755,7 +47871,7 @@ var headingDisabledColor = "".concat(ATHENS_GREY);
|
|
|
47755
47871
|
var bodyBackgroundColor$1 = "#eeeeee";
|
|
47756
47872
|
var borderColor$5 = "".concat(GREY_CHATEAU);
|
|
47757
47873
|
var focusStyles = "outline: none;";
|
|
47758
|
-
var fallbackValues$
|
|
47874
|
+
var fallbackValues$N = {
|
|
47759
47875
|
headingBackgroundColor: headingBackgroundColor$1,
|
|
47760
47876
|
headingDisabledColor: headingDisabledColor,
|
|
47761
47877
|
bodyBackgroundColor: bodyBackgroundColor$1,
|
|
@@ -47943,7 +48059,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
47943
48059
|
})));
|
|
47944
48060
|
};
|
|
47945
48061
|
|
|
47946
|
-
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$
|
|
48062
|
+
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$N);
|
|
47947
48063
|
|
|
47948
48064
|
var RegistrationForm = function RegistrationForm(_ref) {
|
|
47949
48065
|
var _emailErrorMessages, _passwordErrorMessage;
|
|
@@ -48240,7 +48356,7 @@ var ResetPasswordSuccess = withWindowSize(ResetConfirmationForm$2);
|
|
|
48240
48356
|
var activeTabBackground = "#FFFFFF";
|
|
48241
48357
|
var activeTabAccent = "#15749D";
|
|
48242
48358
|
var activeTabHover = "#B8D5E1";
|
|
48243
|
-
var fallbackValues$
|
|
48359
|
+
var fallbackValues$O = {
|
|
48244
48360
|
activeTabBackground: activeTabBackground,
|
|
48245
48361
|
activeTabAccent: activeTabAccent,
|
|
48246
48362
|
activeTabHover: activeTabHover
|
|
@@ -48319,12 +48435,12 @@ var Tabs = function Tabs(_ref) {
|
|
|
48319
48435
|
}))));
|
|
48320
48436
|
};
|
|
48321
48437
|
|
|
48322
|
-
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$
|
|
48438
|
+
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$O);
|
|
48323
48439
|
|
|
48324
48440
|
var activeTabBackground$1 = "#FFFFFF";
|
|
48325
48441
|
var activeTabAccent$1 = "#15749D";
|
|
48326
48442
|
var activeTabHover$1 = "#B8D5E1";
|
|
48327
|
-
var fallbackValues$
|
|
48443
|
+
var fallbackValues$P = {
|
|
48328
48444
|
activeTabBackground: activeTabBackground$1,
|
|
48329
48445
|
activeTabAccent: activeTabAccent$1,
|
|
48330
48446
|
activeTabHover: activeTabHover$1
|
|
@@ -48380,100 +48496,7 @@ var TabSidebar = function TabSidebar(_ref) {
|
|
|
48380
48496
|
})));
|
|
48381
48497
|
};
|
|
48382
48498
|
|
|
48383
|
-
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$
|
|
48384
|
-
|
|
48385
|
-
var backgroundColor$c = {
|
|
48386
|
-
"default": "#ffffff",
|
|
48387
|
-
footer: "#ffffff"
|
|
48388
|
-
};
|
|
48389
|
-
var linkColor$6 = {
|
|
48390
|
-
"default": "#3176AA",
|
|
48391
|
-
footer: "#ffffff"
|
|
48392
|
-
};
|
|
48393
|
-
var border$3 = {
|
|
48394
|
-
"default": "#cdcdcd",
|
|
48395
|
-
footer: "#cdcdcd"
|
|
48396
|
-
};
|
|
48397
|
-
var fontSize$b = {
|
|
48398
|
-
"default": "1rem",
|
|
48399
|
-
footer: "0.875rem"
|
|
48400
|
-
};
|
|
48401
|
-
var lineHeight$5 = {
|
|
48402
|
-
"default": "1.5rem",
|
|
48403
|
-
footer: "1.25rem"
|
|
48404
|
-
};
|
|
48405
|
-
var fontWeight$8 = {
|
|
48406
|
-
"default": FONT_WEIGHT_REGULAR,
|
|
48407
|
-
footer: FONT_WEIGHT_SEMIBOLD
|
|
48408
|
-
};
|
|
48409
|
-
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";
|
|
48410
|
-
var modalLinkHoverFocus$2 = {
|
|
48411
|
-
"default": standardInteractionStyles,
|
|
48412
|
-
footer: standardInteractionStyles
|
|
48413
|
-
};
|
|
48414
|
-
var fallbackValues$P = {
|
|
48415
|
-
backgroundColor: backgroundColor$c,
|
|
48416
|
-
linkColor: linkColor$6,
|
|
48417
|
-
border: border$3,
|
|
48418
|
-
fontSize: fontSize$b,
|
|
48419
|
-
lineHeight: lineHeight$5,
|
|
48420
|
-
fontWeight: fontWeight$8,
|
|
48421
|
-
modalLinkHoverFocus: modalLinkHoverFocus$2
|
|
48422
|
-
};
|
|
48423
|
-
|
|
48424
|
-
var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
48425
|
-
var link = _ref.link,
|
|
48426
|
-
_ref$title = _ref.title,
|
|
48427
|
-
title = _ref$title === void 0 ? "Terms & Conditions" : _ref$title,
|
|
48428
|
-
isOpen = _ref.isOpen,
|
|
48429
|
-
toggleOpen = _ref.toggleOpen,
|
|
48430
|
-
toggleAccepted = _ref.toggleAccepted,
|
|
48431
|
-
acceptText = _ref.acceptText,
|
|
48432
|
-
terms = _ref.terms,
|
|
48433
|
-
variant = _ref.variant,
|
|
48434
|
-
themeValues = _ref.themeValues;
|
|
48435
|
-
return /*#__PURE__*/React.createElement(Modal$1, {
|
|
48436
|
-
modalOpen: isOpen,
|
|
48437
|
-
hideModal: function hideModal() {
|
|
48438
|
-
return toggleOpen(false);
|
|
48439
|
-
},
|
|
48440
|
-
showModal: function showModal() {
|
|
48441
|
-
return toggleOpen(true);
|
|
48442
|
-
},
|
|
48443
|
-
modalHeaderText: title,
|
|
48444
|
-
modalBodyText: /*#__PURE__*/React.createElement(Box, {
|
|
48445
|
-
background: themeValues.backgroundColor,
|
|
48446
|
-
border: "1px solid ".concat(themeValues.border),
|
|
48447
|
-
borderRadius: "3px",
|
|
48448
|
-
extraStyles: "overflow: scroll; max-height: 20rem;"
|
|
48449
|
-
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
48450
|
-
variant: "p",
|
|
48451
|
-
extraStyles: "& a { text-decoration: underline; }"
|
|
48452
|
-
}, terms)),
|
|
48453
|
-
defaultWrapper: false,
|
|
48454
|
-
onlyCloseButton: !acceptText,
|
|
48455
|
-
continueButtonText: acceptText,
|
|
48456
|
-
continueAction: function continueAction() {
|
|
48457
|
-
toggleAccepted(true);
|
|
48458
|
-
toggleOpen(false);
|
|
48459
|
-
}
|
|
48460
|
-
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
48461
|
-
variant: variant === "default" ? "pS" : "pXS",
|
|
48462
|
-
onClick: function onClick() {
|
|
48463
|
-
return toggleOpen(true);
|
|
48464
|
-
},
|
|
48465
|
-
onKeyPress: function onKeyPress(e) {
|
|
48466
|
-
return e.key === "Enter" && toggleOpen(true);
|
|
48467
|
-
},
|
|
48468
|
-
tabIndex: "0",
|
|
48469
|
-
color: themeValues.linkColor,
|
|
48470
|
-
weight: themeValues.fontWeight,
|
|
48471
|
-
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
48472
|
-
extraStyles: "display: inline-block; width: fit-content;"
|
|
48473
|
-
}, link));
|
|
48474
|
-
};
|
|
48475
|
-
|
|
48476
|
-
var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$P, "default");
|
|
48499
|
+
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$P);
|
|
48477
48500
|
|
|
48478
48501
|
var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
48479
48502
|
var onCheck = _ref.onCheck,
|
|
@@ -48481,7 +48504,8 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
|
48481
48504
|
html = _ref.html,
|
|
48482
48505
|
terms = _ref.terms,
|
|
48483
48506
|
_ref$error = _ref.error,
|
|
48484
|
-
error = _ref$error === void 0 ? false : _ref$error
|
|
48507
|
+
error = _ref$error === void 0 ? false : _ref$error,
|
|
48508
|
+
linkVariant = _ref.linkVariant;
|
|
48485
48509
|
|
|
48486
48510
|
var _useState = useState(false),
|
|
48487
48511
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -48502,7 +48526,8 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
|
|
|
48502
48526
|
link: "Learn More",
|
|
48503
48527
|
terms: terms,
|
|
48504
48528
|
isOpen: showTerms,
|
|
48505
|
-
toggleOpen: toggleShowTerms
|
|
48529
|
+
toggleOpen: toggleShowTerms,
|
|
48530
|
+
linkVariant: linkVariant
|
|
48506
48531
|
})))));
|
|
48507
48532
|
};
|
|
48508
48533
|
|