@thecb/components 7.9.0 → 7.9.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 CHANGED
@@ -6472,8 +6472,9 @@ var BoxWrapper = styled__default(function (_ref) {
6472
6472
  return textAlign;
6473
6473
  }, function (_ref14) {
6474
6474
  var hoverStyles = _ref14.hoverStyles,
6475
- as = _ref14.as;
6476
- return styled.css(["", " ", ""], hoverStyles, as === "button" ? "> * > span {\n ".concat(hoverStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
6475
+ as = _ref14.as,
6476
+ disabled = _ref14.disabled;
6477
+ return styled.css(["", " ", ""], hoverStyles, as === "button" && !disabled ? "> * > span {\n ".concat(hoverStyles, "\n border: none;\n outline: none;\n box-shadow: none;\n }") : "");
6477
6478
  }, function (_ref15) {
6478
6479
  var as = _ref15.as;
6479
6480
  return styled.css(["outline:3px solid ", ";outline-offset:2px;", ""], ROYAL_BLUE, as === "button" && "\n > * > span {\n border: none;\n outline: none;\n box-shadow: none;\n }");
@@ -6673,7 +6674,7 @@ var ClusterInnerWrapper = styled__default.div.withConfig({
6673
6674
  return childGap;
6674
6675
  });
6675
6676
 
6676
- var _excluded$6 = ["justify", "align", "childGap", "minHeight", "minWidth", "nowrap", "overflow", "justifySelf", "alignSelf", "flexGrow", "extraStyles", "children"];
6677
+ var _excluded$6 = ["justify", "align", "childGap", "minHeight", "minWidth", "nowrap", "overflow", "justifySelf", "alignSelf", "flexGrow", "extraStyles", "children", "innerWrapperAs"];
6677
6678
  /*
6678
6679
  Cluster components suit any groups of elements that differ in
6679
6680
  length and are liable to wrap. Buttons that appear together at the
@@ -6697,6 +6698,8 @@ var Cluster = function Cluster(_ref) {
6697
6698
  flexGrow = _ref.flexGrow,
6698
6699
  extraStyles = _ref.extraStyles,
6699
6700
  children = _ref.children,
6701
+ _ref$innerWrapperAs = _ref.innerWrapperAs,
6702
+ innerWrapperAs = _ref$innerWrapperAs === void 0 ? "div" : _ref$innerWrapperAs,
6700
6703
  rest = _objectWithoutProperties(_ref, _excluded$6);
6701
6704
 
6702
6705
  return /*#__PURE__*/React__default.createElement(ClusterWrapper, _extends({
@@ -6712,7 +6715,8 @@ var Cluster = function Cluster(_ref) {
6712
6715
  childGap: childGap,
6713
6716
  minHeight: minHeight,
6714
6717
  minWidth: minWidth,
6715
- $nowrap: nowrap
6718
+ $nowrap: nowrap,
6719
+ as: innerWrapperAs
6716
6720
  }, safeChildren(children, /*#__PURE__*/React__default.createElement(React.Fragment, null))));
6717
6721
  };
6718
6722
 
@@ -21329,7 +21333,7 @@ var check = function (it) {
21329
21333
 
21330
21334
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
21331
21335
  var global_1 =
21332
- // eslint-disable-next-line es-x/no-global-this -- safe
21336
+ // eslint-disable-next-line es/no-global-this -- safe
21333
21337
  check(typeof globalThis == 'object' && globalThis) ||
21334
21338
  check(typeof window == 'object' && window) ||
21335
21339
  // eslint-disable-next-line no-restricted-globals -- safe
@@ -21348,12 +21352,12 @@ var fails = function (exec) {
21348
21352
 
21349
21353
  // Detect IE8's incomplete defineProperty implementation
21350
21354
  var descriptors = !fails(function () {
21351
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
21355
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
21352
21356
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
21353
21357
  });
21354
21358
 
21355
21359
  var functionBindNative = !fails(function () {
21356
- // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
21360
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
21357
21361
  var test = (function () { /* empty */ }).bind();
21358
21362
  // eslint-disable-next-line no-prototype-builtins -- safe
21359
21363
  return typeof test != 'function' || test.hasOwnProperty('prototype');
@@ -21366,7 +21370,7 @@ var functionCall = functionBindNative ? call.bind(call) : function () {
21366
21370
  };
21367
21371
 
21368
21372
  var $propertyIsEnumerable = {}.propertyIsEnumerable;
21369
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
21373
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
21370
21374
  var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
21371
21375
 
21372
21376
  // Nashorn ~ JDK8 bug
@@ -21393,25 +21397,29 @@ var createPropertyDescriptor = function (bitmap, value) {
21393
21397
  };
21394
21398
 
21395
21399
  var FunctionPrototype = Function.prototype;
21396
- var bind$1 = FunctionPrototype.bind;
21397
21400
  var call$1 = FunctionPrototype.call;
21398
- var uncurryThis = functionBindNative && bind$1.bind(call$1, call$1);
21401
+ var uncurryThisWithBind = functionBindNative && FunctionPrototype.bind.bind(call$1, call$1);
21399
21402
 
21400
- var functionUncurryThis = functionBindNative ? function (fn) {
21401
- return fn && uncurryThis(fn);
21402
- } : function (fn) {
21403
- return fn && function () {
21403
+ var functionUncurryThisRaw = function (fn) {
21404
+ return functionBindNative ? uncurryThisWithBind(fn) : function () {
21404
21405
  return call$1.apply(fn, arguments);
21405
21406
  };
21406
21407
  };
21407
21408
 
21408
- var toString$2 = functionUncurryThis({}.toString);
21409
- var stringSlice = functionUncurryThis(''.slice);
21409
+ var toString$2 = functionUncurryThisRaw({}.toString);
21410
+ var stringSlice = functionUncurryThisRaw(''.slice);
21410
21411
 
21411
21412
  var classofRaw = function (it) {
21412
21413
  return stringSlice(toString$2(it), 8, -1);
21413
21414
  };
21414
21415
 
21416
+ var functionUncurryThis = function (fn) {
21417
+ // Nashorn bug:
21418
+ // https://github.com/zloirock/core-js/issues/1128
21419
+ // https://github.com/zloirock/core-js/issues/1130
21420
+ if (classofRaw(fn) === 'Function') return functionUncurryThisRaw(fn);
21421
+ };
21422
+
21415
21423
  var $Object = Object;
21416
21424
  var split = functionUncurryThis(''.split);
21417
21425
 
@@ -21424,12 +21432,18 @@ var indexedObject = fails(function () {
21424
21432
  return classofRaw(it) == 'String' ? split(it, '') : $Object(it);
21425
21433
  } : $Object;
21426
21434
 
21435
+ // we can't use just `it == null` since of `document.all` special case
21436
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
21437
+ var isNullOrUndefined = function (it) {
21438
+ return it === null || it === undefined;
21439
+ };
21440
+
21427
21441
  var $TypeError = TypeError;
21428
21442
 
21429
21443
  // `RequireObjectCoercible` abstract operation
21430
21444
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
21431
21445
  var requireObjectCoercible = function (it) {
21432
- if (it == undefined) throw $TypeError("Can't call method on " + it);
21446
+ if (isNullOrUndefined(it)) throw $TypeError("Can't call method on " + it);
21433
21447
  return it;
21434
21448
  };
21435
21449
 
@@ -21441,13 +21455,31 @@ var toIndexedObject = function (it) {
21441
21455
  return indexedObject(requireObjectCoercible(it));
21442
21456
  };
21443
21457
 
21458
+ var documentAll = typeof document == 'object' && document.all;
21459
+
21460
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
21461
+ var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
21462
+
21463
+ var documentAll_1 = {
21464
+ all: documentAll,
21465
+ IS_HTMLDDA: IS_HTMLDDA
21466
+ };
21467
+
21468
+ var documentAll$1 = documentAll_1.all;
21469
+
21444
21470
  // `IsCallable` abstract operation
21445
21471
  // https://tc39.es/ecma262/#sec-iscallable
21446
- var isCallable = function (argument) {
21472
+ var isCallable = documentAll_1.IS_HTMLDDA ? function (argument) {
21473
+ return typeof argument == 'function' || argument === documentAll$1;
21474
+ } : function (argument) {
21447
21475
  return typeof argument == 'function';
21448
21476
  };
21449
21477
 
21450
- var isObject = function (it) {
21478
+ var documentAll$2 = documentAll_1.all;
21479
+
21480
+ var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
21481
+ return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
21482
+ } : function (it) {
21451
21483
  return typeof it == 'object' ? it !== null : isCallable(it);
21452
21484
  };
21453
21485
 
@@ -21488,12 +21520,12 @@ if (!version && engineUserAgent) {
21488
21520
 
21489
21521
  var engineV8Version = version;
21490
21522
 
21491
- /* eslint-disable es-x/no-symbol -- required for testing */
21523
+ /* eslint-disable es/no-symbol -- required for testing */
21492
21524
 
21493
21525
 
21494
21526
 
21495
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
21496
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
21527
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
21528
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails(function () {
21497
21529
  var symbol = Symbol();
21498
21530
  // Chrome 38 Symbol has incorrect toString conversion
21499
21531
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -21502,10 +21534,10 @@ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
21502
21534
  !Symbol.sham && engineV8Version && engineV8Version < 41;
21503
21535
  });
21504
21536
 
21505
- /* eslint-disable es-x/no-symbol -- required for testing */
21537
+ /* eslint-disable es/no-symbol -- required for testing */
21506
21538
 
21507
21539
 
21508
- var useSymbolAsUid = nativeSymbol
21540
+ var useSymbolAsUid = symbolConstructorDetection
21509
21541
  && !Symbol.sham
21510
21542
  && typeof Symbol.iterator == 'symbol';
21511
21543
 
@@ -21540,7 +21572,7 @@ var aCallable = function (argument) {
21540
21572
  // https://tc39.es/ecma262/#sec-getmethod
21541
21573
  var getMethod = function (V, P) {
21542
21574
  var func = V[P];
21543
- return func == null ? undefined : aCallable(func);
21575
+ return isNullOrUndefined(func) ? undefined : aCallable(func);
21544
21576
  };
21545
21577
 
21546
21578
  var $TypeError$2 = TypeError;
@@ -21555,7 +21587,7 @@ var ordinaryToPrimitive = function (input, pref) {
21555
21587
  throw $TypeError$2("Can't convert object to primitive value");
21556
21588
  };
21557
21589
 
21558
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
21590
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
21559
21591
  var defineProperty = Object.defineProperty;
21560
21592
 
21561
21593
  var defineGlobalProperty = function (key, value) {
@@ -21575,10 +21607,10 @@ var shared = createCommonjsModule(function (module) {
21575
21607
  (module.exports = function (key, value) {
21576
21608
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
21577
21609
  })('versions', []).push({
21578
- version: '3.24.1',
21610
+ version: '3.25.5',
21579
21611
  mode: 'global',
21580
21612
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
21581
- license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE',
21613
+ license: 'https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE',
21582
21614
  source: 'https://github.com/zloirock/core-js'
21583
21615
  });
21584
21616
  });
@@ -21595,7 +21627,7 @@ var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
21595
21627
 
21596
21628
  // `HasOwnProperty` abstract operation
21597
21629
  // https://tc39.es/ecma262/#sec-hasownproperty
21598
- // eslint-disable-next-line es-x/no-object-hasown -- safe
21630
+ // eslint-disable-next-line es/no-object-hasown -- safe
21599
21631
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
21600
21632
  return hasOwnProperty(toObject(it), key);
21601
21633
  };
@@ -21614,9 +21646,9 @@ var symbolFor = Symbol$1 && Symbol$1['for'];
21614
21646
  var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
21615
21647
 
21616
21648
  var wellKnownSymbol = function (name) {
21617
- if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
21649
+ if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(symbolConstructorDetection || typeof WellKnownSymbolsStore[name] == 'string')) {
21618
21650
  var description = 'Symbol.' + name;
21619
- if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
21651
+ if (symbolConstructorDetection && hasOwnProperty_1(Symbol$1, name)) {
21620
21652
  WellKnownSymbolsStore[name] = Symbol$1[name];
21621
21653
  } else if (useSymbolAsUid && symbolFor) {
21622
21654
  WellKnownSymbolsStore[name] = symbolFor(description);
@@ -21662,13 +21694,13 @@ var documentCreateElement = function (it) {
21662
21694
 
21663
21695
  // Thanks to IE8 for its funny defineProperty
21664
21696
  var ie8DomDefine = !descriptors && !fails(function () {
21665
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
21697
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
21666
21698
  return Object.defineProperty(documentCreateElement('div'), 'a', {
21667
21699
  get: function () { return 7; }
21668
21700
  }).a != 7;
21669
21701
  });
21670
21702
 
21671
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
21703
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
21672
21704
  var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
21673
21705
 
21674
21706
  // `Object.getOwnPropertyDescriptor` method
@@ -21689,7 +21721,7 @@ var objectGetOwnPropertyDescriptor = {
21689
21721
  // V8 ~ Chrome 36-
21690
21722
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
21691
21723
  var v8PrototypeDefineBug = descriptors && fails(function () {
21692
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
21724
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
21693
21725
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
21694
21726
  value: 42,
21695
21727
  writable: false
@@ -21706,9 +21738,9 @@ var anObject = function (argument) {
21706
21738
  };
21707
21739
 
21708
21740
  var $TypeError$5 = TypeError;
21709
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
21741
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
21710
21742
  var $defineProperty = Object.defineProperty;
21711
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
21743
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
21712
21744
  var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
21713
21745
  var ENUMERABLE = 'enumerable';
21714
21746
  var CONFIGURABLE = 'configurable';
@@ -21755,7 +21787,7 @@ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
21755
21787
  };
21756
21788
 
21757
21789
  var FunctionPrototype$1 = Function.prototype;
21758
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
21790
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
21759
21791
  var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
21760
21792
 
21761
21793
  var EXISTS$1 = hasOwnProperty_1(FunctionPrototype$1, 'name');
@@ -21782,7 +21814,7 @@ var inspectSource = sharedStore.inspectSource;
21782
21814
 
21783
21815
  var WeakMap$1 = global_1.WeakMap;
21784
21816
 
21785
- var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
21817
+ var weakMapBasicDetection = isCallable(WeakMap$1) && /native code/.test(String(WeakMap$1));
21786
21818
 
21787
21819
  var keys$1 = shared('keys');
21788
21820
 
@@ -21810,28 +21842,30 @@ var getterFor = function (TYPE) {
21810
21842
  };
21811
21843
  };
21812
21844
 
21813
- if (nativeWeakMap || sharedStore.state) {
21845
+ if (weakMapBasicDetection || sharedStore.state) {
21814
21846
  var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$2());
21815
- var wmget = functionUncurryThis(store$1.get);
21816
- var wmhas = functionUncurryThis(store$1.has);
21817
- var wmset = functionUncurryThis(store$1.set);
21847
+ /* eslint-disable no-self-assign -- prototype methods protection */
21848
+ store$1.get = store$1.get;
21849
+ store$1.has = store$1.has;
21850
+ store$1.set = store$1.set;
21851
+ /* eslint-enable no-self-assign -- prototype methods protection */
21818
21852
  set = function (it, metadata) {
21819
- if (wmhas(store$1, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
21853
+ if (store$1.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
21820
21854
  metadata.facade = it;
21821
- wmset(store$1, it, metadata);
21855
+ store$1.set(it, metadata);
21822
21856
  return metadata;
21823
21857
  };
21824
21858
  get = function (it) {
21825
- return wmget(store$1, it) || {};
21859
+ return store$1.get(it) || {};
21826
21860
  };
21827
21861
  has = function (it) {
21828
- return wmhas(store$1, it);
21862
+ return store$1.has(it);
21829
21863
  };
21830
21864
  } else {
21831
21865
  var STATE = sharedKey('state');
21832
21866
  hiddenKeys[STATE] = true;
21833
21867
  set = function (it, metadata) {
21834
- if (hasOwnProperty_1(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
21868
+ if (hasOwnProperty_1(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
21835
21869
  metadata.facade = it;
21836
21870
  createNonEnumerableProperty(it, STATE, metadata);
21837
21871
  return metadata;
@@ -21859,7 +21893,7 @@ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
21859
21893
 
21860
21894
  var enforceInternalState = internalState.enforce;
21861
21895
  var getInternalState = internalState.get;
21862
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
21896
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
21863
21897
  var defineProperty = Object.defineProperty;
21864
21898
 
21865
21899
  var CONFIGURABLE_LENGTH = descriptors && !fails(function () {
@@ -21928,7 +21962,7 @@ var floor = Math.floor;
21928
21962
 
21929
21963
  // `Math.trunc` method
21930
21964
  // https://tc39.es/ecma262/#sec-math.trunc
21931
- // eslint-disable-next-line es-x/no-math-trunc -- safe
21965
+ // eslint-disable-next-line es/no-math-trunc -- safe
21932
21966
  var mathTrunc = Math.trunc || function trunc(x) {
21933
21967
  var n = +x;
21934
21968
  return (n > 0 ? floor : ceil)(n);
@@ -22029,7 +22063,7 @@ var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
22029
22063
 
22030
22064
  // `Object.getOwnPropertyNames` method
22031
22065
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
22032
- // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
22066
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
22033
22067
  var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
22034
22068
  return objectKeysInternal(O, hiddenKeys$1);
22035
22069
  };
@@ -22038,7 +22072,7 @@ var objectGetOwnPropertyNames = {
22038
22072
  f: f$3
22039
22073
  };
22040
22074
 
22041
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
22075
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
22042
22076
  var f$4 = Object.getOwnPropertySymbols;
22043
22077
 
22044
22078
  var objectGetOwnPropertySymbols = {
@@ -22182,7 +22216,7 @@ var toString_1 = function (argument) {
22182
22216
  var charAt = functionUncurryThis(''.charAt);
22183
22217
 
22184
22218
  var FORCED = fails(function () {
22185
- // eslint-disable-next-line es-x/no-array-string-prototype-at -- safe
22219
+ // eslint-disable-next-line es/no-array-string-prototype-at -- safe
22186
22220
  return '𠮷'.at(-2) !== '\uD842';
22187
22221
  });
22188
22222
 
@@ -22200,14 +22234,14 @@ _export({ target: 'String', proto: true, forced: FORCED }, {
22200
22234
 
22201
22235
  // `Object.keys` method
22202
22236
  // https://tc39.es/ecma262/#sec-object.keys
22203
- // eslint-disable-next-line es-x/no-object-keys -- safe
22237
+ // eslint-disable-next-line es/no-object-keys -- safe
22204
22238
  var objectKeys = Object.keys || function keys(O) {
22205
22239
  return objectKeysInternal(O, enumBugKeys);
22206
22240
  };
22207
22241
 
22208
22242
  // `Object.defineProperties` method
22209
22243
  // https://tc39.es/ecma262/#sec-object.defineproperties
22210
- // eslint-disable-next-line es-x/no-object-defineproperties -- safe
22244
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
22211
22245
  var f$5 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
22212
22246
  anObject(O);
22213
22247
  var props = toIndexedObject(Properties);
@@ -22296,7 +22330,7 @@ hiddenKeys[IE_PROTO] = true;
22296
22330
 
22297
22331
  // `Object.create` method
22298
22332
  // https://tc39.es/ecma262/#sec-object.create
22299
- // eslint-disable-next-line es-x/no-object-create -- safe
22333
+ // eslint-disable-next-line es/no-object-create -- safe
22300
22334
  var objectCreate = Object.create || function create(O, Properties) {
22301
22335
  var result;
22302
22336
  if (O !== null) {
@@ -22342,13 +22376,13 @@ _export({ target: 'Array', proto: true }, {
22342
22376
 
22343
22377
  addToUnscopables('at');
22344
22378
 
22345
- // eslint-disable-next-line es-x/no-typed-arrays -- safe
22346
- var arrayBufferNative = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
22379
+ // eslint-disable-next-line es/no-typed-arrays -- safe
22380
+ var arrayBufferBasicDetection = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
22347
22381
 
22348
22382
  var correctPrototypeGetter = !fails(function () {
22349
22383
  function F() { /* empty */ }
22350
22384
  F.prototype.constructor = null;
22351
- // eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
22385
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
22352
22386
  return Object.getPrototypeOf(new F()) !== F.prototype;
22353
22387
  });
22354
22388
 
@@ -22358,7 +22392,7 @@ var ObjectPrototype = $Object$4.prototype;
22358
22392
 
22359
22393
  // `Object.getPrototypeOf` method
22360
22394
  // https://tc39.es/ecma262/#sec-object.getprototypeof
22361
- // eslint-disable-next-line es-x/no-object-getprototypeof -- safe
22395
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
22362
22396
  var objectGetPrototypeOf = correctPrototypeGetter ? $Object$4.getPrototypeOf : function (O) {
22363
22397
  var object = toObject(O);
22364
22398
  if (hasOwnProperty_1(object, IE_PROTO$1)) return object[IE_PROTO$1];
@@ -22384,13 +22418,13 @@ var aPossiblePrototype = function (argument) {
22384
22418
  // `Object.setPrototypeOf` method
22385
22419
  // https://tc39.es/ecma262/#sec-object.setprototypeof
22386
22420
  // Works with __proto__ only. Old v8 can't work with null proto objects.
22387
- // eslint-disable-next-line es-x/no-object-setprototypeof -- safe
22421
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
22388
22422
  var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
22389
22423
  var CORRECT_SETTER = false;
22390
22424
  var test = {};
22391
22425
  var setter;
22392
22426
  try {
22393
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
22427
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
22394
22428
  setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
22395
22429
  setter(test, []);
22396
22430
  CORRECT_SETTER = test instanceof Array;
@@ -22427,7 +22461,7 @@ var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
22427
22461
  var TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');
22428
22462
  var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
22429
22463
  // Fixing native typed arrays in Opera Presto crashes the browser, see #595
22430
- var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferNative && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
22464
+ var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferBasicDetection && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
22431
22465
  var TYPED_ARRAY_TAG_REQUIRED = false;
22432
22466
  var NAME, Constructor, Prototype;
22433
22467
 
@@ -46563,6 +46597,7 @@ var PrevNextPlaceholder = function PrevNextPlaceholder(_ref) {
46563
46597
 
46564
46598
  var PrevNextButton = function PrevNextButton(_ref2) {
46565
46599
  var action = _ref2.action,
46600
+ ariaLabel = _ref2.ariaLabel,
46566
46601
  arrowColor = _ref2.arrowColor,
46567
46602
  borderRadius = _ref2.borderRadius,
46568
46603
  buttonHeight = _ref2.buttonHeight,
@@ -46572,12 +46607,14 @@ var PrevNextButton = function PrevNextButton(_ref2) {
46572
46607
  return /*#__PURE__*/React__default.createElement(Box, {
46573
46608
  padding: "0",
46574
46609
  minHeight: buttonHeight,
46575
- extraStyles: "max-height: ".concat(buttonHeight, ";")
46610
+ extraStyles: "max-height: ".concat(buttonHeight, ";"),
46611
+ as: "li"
46576
46612
  }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
46577
46613
  action: action,
46578
46614
  contentOverride: true,
46579
46615
  dataQa: type,
46580
- 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 &:focus {\n outline: none\n }\n ")
46616
+ "aria-label": ariaLabel,
46617
+ 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 ")
46581
46618
  }, /*#__PURE__*/React__default.createElement(Box, {
46582
46619
  padding: "0",
46583
46620
  extraStyles: type === "prev" && "transform: scaleX(-1)"
@@ -46601,26 +46638,30 @@ var getPagesPanel = function getPagesPanel(page, pagesCount) {
46601
46638
 
46602
46639
  if (page > space + 1) {
46603
46640
  pages.push({
46604
- isDelimiter: true
46641
+ isDelimiter: true,
46642
+ id: "first-delimiter"
46605
46643
  });
46606
46644
  }
46607
46645
 
46608
46646
  for (var j = Math.max(1, page - space) + 1; j < Math.min(lastPageNumber, page + space); j++) {
46609
46647
  pages.push({
46610
46648
  index: j,
46611
- isButton: true
46649
+ isButton: true,
46650
+ id: "page-".concat(j)
46612
46651
  });
46613
46652
  }
46614
46653
 
46615
46654
  if (page < lastPageNumber - space) {
46616
46655
  pages.push({
46617
- isDelimiter: true
46656
+ isDelimiter: true,
46657
+ id: "last-delimiter"
46618
46658
  });
46619
46659
  }
46620
46660
 
46621
46661
  pages.push({
46622
46662
  index: lastPageNumber,
46623
- isButton: true
46663
+ isButton: true,
46664
+ id: "page-".concat(lastPageNumber)
46624
46665
  });
46625
46666
  var activePage = pages.find(function (p) {
46626
46667
  return p.index === page;
@@ -46655,18 +46696,26 @@ var Pagination = function Pagination(_ref3) {
46655
46696
  pageNext = _ref3.pageNext,
46656
46697
  pagePrevious = _ref3.pagePrevious,
46657
46698
  setCurrentPage = _ref3.setCurrentPage,
46699
+ ariaLabel = _ref3.ariaLabel,
46658
46700
  themeValues = _ref3.themeValues;
46659
46701
 
46660
46702
  var _useContext = React.useContext(styled.ThemeContext),
46661
46703
  isMobile = _useContext.isMobile;
46662
46704
 
46663
- 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 &:focus {\n outline: none\n }\n ");
46664
- var extraDisabledStyles = "\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 }\n ");
46705
+ 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 ");
46706
+ 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 ");
46665
46707
  return /*#__PURE__*/React__default.createElement(Cluster, {
46666
46708
  justify: "center",
46667
- childGap: childGap
46709
+ childGap: childGap,
46710
+ overflow: true,
46711
+ as: "nav",
46712
+ role: "navigation",
46713
+ innerWrapperAs: "ul",
46714
+ "aria-label": ariaLabel,
46715
+ extraStyles: "> ul { padding: 0px; > li { list-style-type: none; } };"
46668
46716
  }, currentPage > 1 ? /*#__PURE__*/React__default.createElement(PrevNextButton, {
46669
46717
  action: pagePrevious,
46718
+ ariaLabel: "Previous Page",
46670
46719
  arrowColor: arrowColor !== null && arrowColor !== void 0 ? arrowColor : themeValues.arrowColor,
46671
46720
  borderRadius: borderRadius,
46672
46721
  buttonHeight: buttonHeight,
@@ -46688,33 +46737,37 @@ var Pagination = function Pagination(_ref3) {
46688
46737
  }, "".concat(currentPage, " of ").concat(pageCount)))) : getPagesPanel(currentPage, pageCount).map(function (item, index) {
46689
46738
  return item.isButton ? /*#__PURE__*/React__default.createElement(Box, {
46690
46739
  padding: "0",
46691
- extraStyles: "max-height: ".concat(buttonHeight, ";")
46740
+ extraStyles: "max-height: ".concat(buttonHeight, ";"),
46741
+ as: "li",
46742
+ key: item.id
46692
46743
  }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
46693
46744
  variant: "ghost",
46694
- key: item.index,
46695
46745
  text: item.index,
46696
- disabled: item.active,
46697
- extraDisabledStyles: extraDisabledStyles,
46746
+ "aria-current": item.active ? "page" : undefined,
46747
+ "aria-label": "".concat(item.index == pageCount ? "Last Page, " : "", "page ").concat(item.index),
46698
46748
  action: !item.active ? function () {
46699
46749
  return setCurrentPage({
46700
46750
  pageNumber: item.index
46701
46751
  });
46702
46752
  } : noop,
46703
46753
  textExtraStyles: "font-size: ".concat(fontSize, "; font-weight: ").concat(fontWeight, ";"),
46704
- extraStyles: extraStyles,
46754
+ extraStyles: "".concat(extraStyles).concat(item.active ? currentPageStyles : ""),
46705
46755
  dataQa: index
46706
46756
  }, item.index)) : /*#__PURE__*/React__default.createElement(Box, {
46707
- padding: "0 10px"
46757
+ padding: "0 10px",
46758
+ as: "li",
46759
+ key: item.id
46708
46760
  }, /*#__PURE__*/React__default.createElement(Cluster, {
46709
46761
  justify: "flex-end"
46710
46762
  }, /*#__PURE__*/React__default.createElement(Text$1, {
46711
- key: index,
46712
46763
  variant: "pXL",
46713
46764
  weight: fontWeight,
46714
- color: numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor
46715
- }, "...")));
46765
+ color: numberColor !== null && numberColor !== void 0 ? numberColor : themeValues.numberColor,
46766
+ role: "presentation"
46767
+ }, "…")));
46716
46768
  }), currentPage < pageCount ? /*#__PURE__*/React__default.createElement(PrevNextButton, {
46717
46769
  action: pageNext,
46770
+ ariaLabel: "Next Page",
46718
46771
  arrowColor: arrowColor !== null && arrowColor !== void 0 ? arrowColor : themeValues.arrowColor,
46719
46772
  borderRadius: borderRadius,
46720
46773
  buttonHeight: buttonHeight,
@@ -47134,6 +47187,101 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
47134
47187
 
47135
47188
  var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$L, "default");
47136
47189
 
47190
+ var backgroundColor$c = {
47191
+ "default": "#ffffff",
47192
+ footer: "#ffffff"
47193
+ };
47194
+ var linkColor$6 = {
47195
+ "default": "#3176AA",
47196
+ footer: "#ffffff"
47197
+ };
47198
+ var border$3 = {
47199
+ "default": "#cdcdcd",
47200
+ footer: "#cdcdcd"
47201
+ };
47202
+ var fontSize$b = {
47203
+ "default": "1rem",
47204
+ footer: "0.875rem"
47205
+ };
47206
+ var lineHeight$5 = {
47207
+ "default": "1.5rem",
47208
+ footer: "1.25rem"
47209
+ };
47210
+ var fontWeight$8 = {
47211
+ "default": FONT_WEIGHT_REGULAR,
47212
+ footer: FONT_WEIGHT_SEMIBOLD
47213
+ };
47214
+ 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";
47215
+ var modalLinkHoverFocus$2 = {
47216
+ "default": standardInteractionStyles,
47217
+ footer: standardInteractionStyles
47218
+ };
47219
+ var fallbackValues$M = {
47220
+ backgroundColor: backgroundColor$c,
47221
+ linkColor: linkColor$6,
47222
+ border: border$3,
47223
+ fontSize: fontSize$b,
47224
+ lineHeight: lineHeight$5,
47225
+ fontWeight: fontWeight$8,
47226
+ modalLinkHoverFocus: modalLinkHoverFocus$2
47227
+ };
47228
+
47229
+ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
47230
+ var link = _ref.link,
47231
+ _ref$title = _ref.title,
47232
+ title = _ref$title === void 0 ? "Terms & Conditions" : _ref$title,
47233
+ isOpen = _ref.isOpen,
47234
+ toggleOpen = _ref.toggleOpen,
47235
+ toggleAccepted = _ref.toggleAccepted,
47236
+ acceptText = _ref.acceptText,
47237
+ terms = _ref.terms,
47238
+ variant = _ref.variant,
47239
+ _ref$linkVariant = _ref.linkVariant,
47240
+ linkVariant = _ref$linkVariant === void 0 ? "p" : _ref$linkVariant,
47241
+ themeValues = _ref.themeValues;
47242
+ return /*#__PURE__*/React__default.createElement(Modal$1, {
47243
+ modalOpen: isOpen,
47244
+ hideModal: function hideModal() {
47245
+ return toggleOpen(false);
47246
+ },
47247
+ showModal: function showModal() {
47248
+ return toggleOpen(true);
47249
+ },
47250
+ modalHeaderText: title,
47251
+ modalBodyText: /*#__PURE__*/React__default.createElement(Box, {
47252
+ background: themeValues.backgroundColor,
47253
+ border: "1px solid ".concat(themeValues.border),
47254
+ borderRadius: "3px",
47255
+ extraStyles: "overflow: scroll; max-height: 20rem;"
47256
+ }, /*#__PURE__*/React__default.createElement(Text$1, {
47257
+ variant: "p",
47258
+ extraStyles: "& a { text-decoration: underline; }"
47259
+ }, terms)),
47260
+ defaultWrapper: false,
47261
+ onlyCloseButton: !acceptText,
47262
+ continueButtonText: acceptText,
47263
+ continueAction: function continueAction() {
47264
+ toggleAccepted(true);
47265
+ toggleOpen(false);
47266
+ }
47267
+ }, /*#__PURE__*/React__default.createElement(Text$1, {
47268
+ variant: linkVariant,
47269
+ onClick: function onClick() {
47270
+ return toggleOpen(true);
47271
+ },
47272
+ onKeyPress: function onKeyPress(e) {
47273
+ return e.key === "Enter" && toggleOpen(true);
47274
+ },
47275
+ tabIndex: "0",
47276
+ color: themeValues.linkColor,
47277
+ weight: themeValues.fontWeight,
47278
+ hoverStyles: themeValues.modalLinkHoverFocus,
47279
+ extraStyles: "display: inline-block; width: fit-content; cursor: pointer"
47280
+ }, link));
47281
+ };
47282
+
47283
+ var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$M, "default");
47284
+
47137
47285
  var PaymentFormACH = function PaymentFormACH(_ref) {
47138
47286
  var _routingNumberErrors, _accountNumberErrors;
47139
47287
 
@@ -47152,7 +47300,10 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47152
47300
  handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
47153
47301
  showWalletCheckbox = _ref.showWalletCheckbox,
47154
47302
  saveToWallet = _ref.saveToWallet,
47155
- walletCheckboxMarked = _ref.walletCheckboxMarked;
47303
+ walletCheckboxMarked = _ref.walletCheckboxMarked,
47304
+ termsContent = _ref.termsContent,
47305
+ _ref$termsTitle = _ref.termsTitle,
47306
+ termsTitle = _ref$termsTitle === void 0 ? "Terms &amp; Conditions" : _ref$termsTitle;
47156
47307
 
47157
47308
  if (clearOnDismount) {
47158
47309
  React.useEffect(function () {
@@ -47172,6 +47323,14 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47172
47323
  showAccount = _useState4[0],
47173
47324
  toggleShowAccount = _useState4[1];
47174
47325
 
47326
+ var _useState5 = React.useState(false),
47327
+ _useState6 = _slicedToArray(_useState5, 2),
47328
+ termsModalOpen = _useState6[0],
47329
+ setTermsModalOpen = _useState6[1];
47330
+
47331
+ var showTerms = !!termsContent;
47332
+ var showTermsLinkVariant = showWalletCheckbox ? "p" : "pS";
47333
+
47175
47334
  var nameErrors = _defineProperty({}, required.error, "Name is required");
47176
47335
 
47177
47336
  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);
@@ -47280,12 +47439,27 @@ var PaymentFormACH = function PaymentFormACH(_ref) {
47280
47439
  onChange: toggleCheckbox,
47281
47440
  checked: defaultMethod.value,
47282
47441
  hidden: hideDefaultPayment
47283
- }), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
47442
+ }), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
47443
+ childGap: "4px"
47444
+ }, showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
47284
47445
  name: "bank checkbox",
47285
- title: "Save checking account to wallet",
47446
+ title: "Save checking account to wallet.",
47286
47447
  checked: walletCheckboxMarked,
47287
47448
  onChange: saveToWallet
47288
- })));
47449
+ }), showTerms && /*#__PURE__*/React__default.createElement(Cover, {
47450
+ singleChild: true
47451
+ }, /*#__PURE__*/React__default.createElement(Cluster, {
47452
+ childGap: 0
47453
+ }, /*#__PURE__*/React__default.createElement(Text$1, {
47454
+ variant: showTermsLinkVariant
47455
+ }, "View\xA0"), /*#__PURE__*/React__default.createElement(TermsAndConditionsModal$1, {
47456
+ link: termsTitle,
47457
+ linkVariant: showTermsLinkVariant,
47458
+ terms: termsContent,
47459
+ title: termsTitle,
47460
+ isOpen: termsModalOpen,
47461
+ toggleOpen: setTermsModalOpen
47462
+ }))))));
47289
47463
  };
47290
47464
 
47291
47465
  var formConfig$6 = {
@@ -47339,11 +47513,21 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
47339
47513
  showWalletCheckbox = _ref.showWalletCheckbox,
47340
47514
  saveToWallet = _ref.saveToWallet,
47341
47515
  walletCheckboxMarked = _ref.walletCheckboxMarked,
47342
- deniedCards = _ref.deniedCards;
47516
+ deniedCards = _ref.deniedCards,
47517
+ termsContent = _ref.termsContent,
47518
+ _ref$termsTitle = _ref.termsTitle,
47519
+ termsTitle = _ref$termsTitle === void 0 ? "Terms &amp; Conditions" : _ref$termsTitle;
47343
47520
 
47344
47521
  var _useContext = React.useContext(styled.ThemeContext),
47345
47522
  isMobile = _useContext.isMobile;
47346
47523
 
47524
+ var _useState = React.useState(false),
47525
+ _useState2 = _slicedToArray(_useState, 2),
47526
+ termsModalOpen = _useState2[0],
47527
+ setTermsModalOpen = _useState2[1];
47528
+
47529
+ var showTerms = !!termsContent;
47530
+ var showTermsLinkVariant = showWalletCheckbox ? "p" : "pS";
47347
47531
  React.useEffect(function () {
47348
47532
  if (deniedCards) {
47349
47533
  deniedCards.map(function (card) {
@@ -47452,12 +47636,27 @@ var PaymentFormCard = function PaymentFormCard(_ref) {
47452
47636
  return e.key === "Enter" && handleSubmit(e);
47453
47637
  },
47454
47638
  autocomplete: "billing postal-code"
47455
- })), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
47639
+ })), (showWalletCheckbox || showTerms) && /*#__PURE__*/React__default.createElement(Cluster, {
47640
+ childGap: "4px"
47641
+ }, showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
47456
47642
  name: "credit card checkbox",
47457
- title: "Save credit card to wallet",
47643
+ title: "Save credit card to wallet.",
47458
47644
  checked: walletCheckboxMarked,
47459
47645
  onChange: saveToWallet
47460
- })));
47646
+ }), showTerms && /*#__PURE__*/React__default.createElement(Cover, {
47647
+ singleChild: true
47648
+ }, /*#__PURE__*/React__default.createElement(Cluster, {
47649
+ childGap: 0
47650
+ }, /*#__PURE__*/React__default.createElement(Text$1, {
47651
+ variant: showTermsLinkVariant
47652
+ }, "View\xA0"), /*#__PURE__*/React__default.createElement(TermsAndConditionsModal$1, {
47653
+ link: termsTitle,
47654
+ linkVariant: showTermsLinkVariant,
47655
+ terms: termsContent,
47656
+ title: termsTitle,
47657
+ isOpen: termsModalOpen,
47658
+ toggleOpen: setTermsModalOpen
47659
+ }))))));
47461
47660
  };
47462
47661
 
47463
47662
  var PaymentFormCard$1 = withWindowSize(PaymentFormCard);
@@ -47738,7 +47937,7 @@ var headingDisabledColor = "".concat(ATHENS_GREY);
47738
47937
  var bodyBackgroundColor$1 = "#eeeeee";
47739
47938
  var borderColor$5 = "".concat(GREY_CHATEAU);
47740
47939
  var focusStyles = "outline: none;";
47741
- var fallbackValues$M = {
47940
+ var fallbackValues$N = {
47742
47941
  headingBackgroundColor: headingBackgroundColor$1,
47743
47942
  headingDisabledColor: headingDisabledColor,
47744
47943
  bodyBackgroundColor: bodyBackgroundColor$1,
@@ -47926,7 +48125,7 @@ var RadioSection = function RadioSection(_ref) {
47926
48125
  })));
47927
48126
  };
47928
48127
 
47929
- var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$M);
48128
+ var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$N);
47930
48129
 
47931
48130
  var RegistrationForm = function RegistrationForm(_ref) {
47932
48131
  var _emailErrorMessages, _passwordErrorMessage;
@@ -48223,7 +48422,7 @@ var ResetPasswordSuccess = withWindowSize(ResetConfirmationForm$2);
48223
48422
  var activeTabBackground = "#FFFFFF";
48224
48423
  var activeTabAccent = "#15749D";
48225
48424
  var activeTabHover = "#B8D5E1";
48226
- var fallbackValues$N = {
48425
+ var fallbackValues$O = {
48227
48426
  activeTabBackground: activeTabBackground,
48228
48427
  activeTabAccent: activeTabAccent,
48229
48428
  activeTabHover: activeTabHover
@@ -48302,12 +48501,12 @@ var Tabs = function Tabs(_ref) {
48302
48501
  }))));
48303
48502
  };
48304
48503
 
48305
- var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$N);
48504
+ var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$O);
48306
48505
 
48307
48506
  var activeTabBackground$1 = "#FFFFFF";
48308
48507
  var activeTabAccent$1 = "#15749D";
48309
48508
  var activeTabHover$1 = "#B8D5E1";
48310
- var fallbackValues$O = {
48509
+ var fallbackValues$P = {
48311
48510
  activeTabBackground: activeTabBackground$1,
48312
48511
  activeTabAccent: activeTabAccent$1,
48313
48512
  activeTabHover: activeTabHover$1
@@ -48363,100 +48562,7 @@ var TabSidebar = function TabSidebar(_ref) {
48363
48562
  })));
48364
48563
  };
48365
48564
 
48366
- var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$O);
48367
-
48368
- var backgroundColor$c = {
48369
- "default": "#ffffff",
48370
- footer: "#ffffff"
48371
- };
48372
- var linkColor$6 = {
48373
- "default": "#3176AA",
48374
- footer: "#ffffff"
48375
- };
48376
- var border$3 = {
48377
- "default": "#cdcdcd",
48378
- footer: "#cdcdcd"
48379
- };
48380
- var fontSize$b = {
48381
- "default": "1rem",
48382
- footer: "0.875rem"
48383
- };
48384
- var lineHeight$5 = {
48385
- "default": "1.5rem",
48386
- footer: "1.25rem"
48387
- };
48388
- var fontWeight$8 = {
48389
- "default": FONT_WEIGHT_REGULAR,
48390
- footer: FONT_WEIGHT_SEMIBOLD
48391
- };
48392
- 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";
48393
- var modalLinkHoverFocus$2 = {
48394
- "default": standardInteractionStyles,
48395
- footer: standardInteractionStyles
48396
- };
48397
- var fallbackValues$P = {
48398
- backgroundColor: backgroundColor$c,
48399
- linkColor: linkColor$6,
48400
- border: border$3,
48401
- fontSize: fontSize$b,
48402
- lineHeight: lineHeight$5,
48403
- fontWeight: fontWeight$8,
48404
- modalLinkHoverFocus: modalLinkHoverFocus$2
48405
- };
48406
-
48407
- var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
48408
- var link = _ref.link,
48409
- _ref$title = _ref.title,
48410
- title = _ref$title === void 0 ? "Terms & Conditions" : _ref$title,
48411
- isOpen = _ref.isOpen,
48412
- toggleOpen = _ref.toggleOpen,
48413
- toggleAccepted = _ref.toggleAccepted,
48414
- acceptText = _ref.acceptText,
48415
- terms = _ref.terms,
48416
- variant = _ref.variant,
48417
- themeValues = _ref.themeValues;
48418
- return /*#__PURE__*/React__default.createElement(Modal$1, {
48419
- modalOpen: isOpen,
48420
- hideModal: function hideModal() {
48421
- return toggleOpen(false);
48422
- },
48423
- showModal: function showModal() {
48424
- return toggleOpen(true);
48425
- },
48426
- modalHeaderText: title,
48427
- modalBodyText: /*#__PURE__*/React__default.createElement(Box, {
48428
- background: themeValues.backgroundColor,
48429
- border: "1px solid ".concat(themeValues.border),
48430
- borderRadius: "3px",
48431
- extraStyles: "overflow: scroll; max-height: 20rem;"
48432
- }, /*#__PURE__*/React__default.createElement(Text$1, {
48433
- variant: "p",
48434
- extraStyles: "& a { text-decoration: underline; }"
48435
- }, terms)),
48436
- defaultWrapper: false,
48437
- onlyCloseButton: !acceptText,
48438
- continueButtonText: acceptText,
48439
- continueAction: function continueAction() {
48440
- toggleAccepted(true);
48441
- toggleOpen(false);
48442
- }
48443
- }, /*#__PURE__*/React__default.createElement(Text$1, {
48444
- variant: variant === "default" ? "pS" : "pXS",
48445
- onClick: function onClick() {
48446
- return toggleOpen(true);
48447
- },
48448
- onKeyPress: function onKeyPress(e) {
48449
- return e.key === "Enter" && toggleOpen(true);
48450
- },
48451
- tabIndex: "0",
48452
- color: themeValues.linkColor,
48453
- weight: themeValues.fontWeight,
48454
- hoverStyles: themeValues.modalLinkHoverFocus,
48455
- extraStyles: "display: inline-block; width: fit-content;"
48456
- }, link));
48457
- };
48458
-
48459
- var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$P, "default");
48565
+ var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$P);
48460
48566
 
48461
48567
  var TermsAndConditions = function TermsAndConditions(_ref) {
48462
48568
  var onCheck = _ref.onCheck,
@@ -48464,7 +48570,8 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
48464
48570
  html = _ref.html,
48465
48571
  terms = _ref.terms,
48466
48572
  _ref$error = _ref.error,
48467
- error = _ref$error === void 0 ? false : _ref$error;
48573
+ error = _ref$error === void 0 ? false : _ref$error,
48574
+ linkVariant = _ref.linkVariant;
48468
48575
 
48469
48576
  var _useState = React.useState(false),
48470
48577
  _useState2 = _slicedToArray(_useState, 2),
@@ -48485,7 +48592,8 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
48485
48592
  link: "Learn More",
48486
48593
  terms: terms,
48487
48594
  isOpen: showTerms,
48488
- toggleOpen: toggleShowTerms
48595
+ toggleOpen: toggleShowTerms,
48596
+ linkVariant: linkVariant
48489
48597
  })))));
48490
48598
  };
48491
48599