@thecb/components 4.0.3-beta-0 → 4.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -275,21 +275,47 @@ function __spreadArrays() {
275
275
  return r;
276
276
  }
277
277
 
278
+ /*! *****************************************************************************
279
+ Copyright (c) Microsoft Corporation. All rights reserved.
280
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
281
+ this file except in compliance with the License. You may obtain a copy of the
282
+ License at http://www.apache.org/licenses/LICENSE-2.0
283
+
284
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
285
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
286
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
287
+ MERCHANTABLITY OR NON-INFRINGEMENT.
288
+
289
+ See the Apache Version 2.0 License for specific language governing permissions
290
+ and limitations under the License.
291
+ ***************************************************************************** */
292
+
293
+ var __assign$1 = function() {
294
+ __assign$1 = Object.assign || function __assign(t) {
295
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
296
+ s = arguments[i];
297
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
298
+ }
299
+ return t;
300
+ };
301
+ return __assign$1.apply(this, arguments);
302
+ };
303
+
278
304
  var clamp = function (min, max) { return function (v) {
279
305
  return Math.max(Math.min(v, max), min);
280
306
  }; };
281
307
  var sanitize = function (v) { return (v % 1 ? Number(v.toFixed(5)) : v); };
282
308
  var floatRegex = /(-)?(\d[\d\.]*)/g;
283
- var colorRegex = /(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi;
284
- var singleColorRegex = /^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;
309
+ var colorRegex = /(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi;
310
+ var singleColorRegex = /^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))$/i;
285
311
 
286
312
  var number = {
287
313
  test: function (v) { return typeof v === 'number'; },
288
314
  parse: parseFloat,
289
315
  transform: function (v) { return v; }
290
316
  };
291
- var alpha = __assign(__assign({}, number), { transform: clamp(0, 1) });
292
- var scale = __assign(__assign({}, number), { default: 1 });
317
+ var alpha = __assign$1(__assign$1({}, number), { transform: clamp(0, 1) });
318
+ var scale = __assign$1(__assign$1({}, number), { default: 1 });
293
319
 
294
320
  var createUnitType = function (unit) { return ({
295
321
  test: function (v) {
@@ -303,7 +329,7 @@ var percent = createUnitType('%');
303
329
  var px = createUnitType('px');
304
330
  var vh = createUnitType('vh');
305
331
  var vw = createUnitType('vw');
306
- var progressPercentage = __assign(__assign({}, percent), { parse: function (v) { return percent.parse(v) / 100; }, transform: function (v) { return percent.transform(v * 100); } });
332
+ var progressPercentage = __assign$1(__assign$1({}, percent), { parse: function (v) { return percent.parse(v) / 100; }, transform: function (v) { return percent.transform(v * 100); } });
307
333
 
308
334
  var getValueFromFunctionString = function (value) {
309
335
  return value.substring(value.indexOf('(') + 1, value.lastIndexOf(')'));
@@ -311,17 +337,12 @@ var getValueFromFunctionString = function (value) {
311
337
  var clampRgbUnit = clamp(0, 255);
312
338
  var isRgba = function (v) { return v.red !== undefined; };
313
339
  var isHsla = function (v) { return v.hue !== undefined; };
314
- function getValuesAsArray(value) {
315
- return getValueFromFunctionString(value)
316
- .replace(/(,|\/)/g, ' ')
317
- .split(/ \s*/);
318
- }
319
340
  var splitColorValues = function (terms) {
320
341
  return function (v) {
321
342
  if (typeof v !== 'string')
322
343
  return v;
323
344
  var values = {};
324
- var valuesArray = getValuesAsArray(v);
345
+ var valuesArray = getValueFromFunctionString(v).split(/,\s*/);
325
346
  for (var i = 0; i < 4; i++) {
326
347
  values[terms[i]] =
327
348
  valuesArray[i] !== undefined ? parseFloat(valuesArray[i]) : 1;
@@ -330,14 +351,14 @@ var splitColorValues = function (terms) {
330
351
  };
331
352
  };
332
353
  var rgbaTemplate = function (_a) {
333
- var red = _a.red, green = _a.green, blue = _a.blue, _b = _a.alpha, alpha = _b === void 0 ? 1 : _b;
334
- return "rgba(" + red + ", " + green + ", " + blue + ", " + alpha + ")";
354
+ var red = _a.red, green = _a.green, blue = _a.blue, _b = _a.alpha, alpha$$1 = _b === void 0 ? 1 : _b;
355
+ return "rgba(" + red + ", " + green + ", " + blue + ", " + alpha$$1 + ")";
335
356
  };
336
357
  var hslaTemplate = function (_a) {
337
- var hue = _a.hue, saturation = _a.saturation, lightness = _a.lightness, _b = _a.alpha, alpha = _b === void 0 ? 1 : _b;
338
- return "hsla(" + hue + ", " + saturation + ", " + lightness + ", " + alpha + ")";
358
+ var hue = _a.hue, saturation = _a.saturation, lightness = _a.lightness, _b = _a.alpha, alpha$$1 = _b === void 0 ? 1 : _b;
359
+ return "hsla(" + hue + ", " + saturation + ", " + lightness + ", " + alpha$$1 + ")";
339
360
  };
340
- var rgbUnit = __assign(__assign({}, number), { transform: function (v) { return Math.round(clampRgbUnit(v)); } });
361
+ var rgbUnit = __assign$1(__assign$1({}, number), { transform: function (v) { return Math.round(clampRgbUnit(v)); } });
341
362
  function isColorString(color, colorType) {
342
363
  return color.startsWith(colorType) && singleColorRegex.test(color);
343
364
  }
@@ -345,12 +366,12 @@ var rgba = {
345
366
  test: function (v) { return (typeof v === 'string' ? isColorString(v, 'rgb') : isRgba(v)); },
346
367
  parse: splitColorValues(['red', 'green', 'blue', 'alpha']),
347
368
  transform: function (_a) {
348
- var red = _a.red, green = _a.green, blue = _a.blue, _b = _a.alpha, alpha$1 = _b === void 0 ? 1 : _b;
369
+ var red = _a.red, green = _a.green, blue = _a.blue, _b = _a.alpha, alpha$$1 = _b === void 0 ? 1 : _b;
349
370
  return rgbaTemplate({
350
371
  red: rgbUnit.transform(red),
351
372
  green: rgbUnit.transform(green),
352
373
  blue: rgbUnit.transform(blue),
353
- alpha: sanitize(alpha.transform(alpha$1))
374
+ alpha: sanitize(alpha.transform(alpha$$1))
354
375
  });
355
376
  }
356
377
  };
@@ -358,16 +379,16 @@ var hsla = {
358
379
  test: function (v) { return (typeof v === 'string' ? isColorString(v, 'hsl') : isHsla(v)); },
359
380
  parse: splitColorValues(['hue', 'saturation', 'lightness', 'alpha']),
360
381
  transform: function (_a) {
361
- var hue = _a.hue, saturation = _a.saturation, lightness = _a.lightness, _b = _a.alpha, alpha$1 = _b === void 0 ? 1 : _b;
382
+ var hue = _a.hue, saturation = _a.saturation, lightness = _a.lightness, _b = _a.alpha, alpha$$1 = _b === void 0 ? 1 : _b;
362
383
  return hslaTemplate({
363
384
  hue: Math.round(hue),
364
385
  saturation: percent.transform(sanitize(saturation)),
365
386
  lightness: percent.transform(sanitize(lightness)),
366
- alpha: sanitize(alpha.transform(alpha$1))
387
+ alpha: sanitize(alpha.transform(alpha$$1))
367
388
  });
368
389
  }
369
390
  };
370
- var hex = __assign(__assign({}, rgba), { test: function (v) { return typeof v === 'string' && isColorString(v, '#'); }, parse: function (v) {
391
+ var hex = __assign$1(__assign$1({}, rgba), { test: function (v) { return typeof v === 'string' && isColorString(v, '#'); }, parse: function (v) {
371
392
  var r = '';
372
393
  var g = '';
373
394
  var b = '';
@@ -501,134 +522,140 @@ if (process.env.NODE_ENV !== 'production') {
501
522
  };
502
523
  }
503
524
 
504
- var prevTime = 0;
505
- var onNextFrame = typeof window !== 'undefined' && window.requestAnimationFrame !== undefined ? function (callback) {
506
- return window.requestAnimationFrame(callback);
507
- } : function (callback) {
508
- var timestamp = Date.now();
509
- var timeToCall = Math.max(0, 16.7 - (timestamp - prevTime));
510
- prevTime = timestamp + timeToCall;
511
- setTimeout(function () {
512
- return callback(prevTime);
513
- }, timeToCall);
514
- };
515
-
516
- var createStep = function (setRunNextFrame) {
517
- var processToRun = [];
518
- var processToRunNextFrame = [];
519
- var numThisFrame = 0;
520
- var isProcessing = false;
521
- var i = 0;
522
- var cancelled = new WeakSet();
523
- var toKeepAlive = new WeakSet();
524
- var renderStep = {
525
- cancel: function (process) {
526
- var indexOfCallback = processToRunNextFrame.indexOf(process);
527
- cancelled.add(process);
528
- if (indexOfCallback !== -1) {
529
- processToRunNextFrame.splice(indexOfCallback, 1);
530
- }
531
- },
532
- process: function (frame) {
533
- var _a;
534
- isProcessing = true;
535
- _a = [processToRunNextFrame, processToRun], processToRun = _a[0], processToRunNextFrame = _a[1];
536
- processToRunNextFrame.length = 0;
537
- numThisFrame = processToRun.length;
538
- if (numThisFrame) {
539
- var process_1;
540
- for (i = 0; i < numThisFrame; i++) {
541
- process_1 = processToRun[i];
542
- process_1(frame);
543
- if (toKeepAlive.has(process_1) === true && !cancelled.has(process_1)) {
544
- renderStep.schedule(process_1);
545
- setRunNextFrame(true);
546
- }
547
- }
548
- }
549
- isProcessing = false;
550
- },
551
- schedule: function (process, keepAlive, immediate) {
552
- if (keepAlive === void 0) {
553
- keepAlive = false;
554
- }
555
- if (immediate === void 0) {
556
- immediate = false;
557
- }
558
- invariant(typeof process === "function", "Argument must be a function");
559
- var addToCurrentBuffer = immediate && isProcessing;
560
- var buffer = addToCurrentBuffer ? processToRun : processToRunNextFrame;
561
- cancelled.delete(process);
562
- if (keepAlive) toKeepAlive.add(process);
563
- if (buffer.indexOf(process) === -1) {
564
- buffer.push(process);
565
- if (addToCurrentBuffer) numThisFrame = processToRun.length;
566
- }
567
- }
525
+ var prevTime = 0;
526
+ var onNextFrame = typeof window !== 'undefined' && window.requestAnimationFrame !== undefined
527
+ ? function (callback) { return window.requestAnimationFrame(callback); }
528
+ : function (callback) {
529
+ var timestamp = Date.now();
530
+ var timeToCall = Math.max(0, 16.7 - (timestamp - prevTime));
531
+ prevTime = timestamp + timeToCall;
532
+ setTimeout(function () { return callback(prevTime); }, timeToCall);
568
533
  };
569
- return renderStep;
570
- };
571
534
 
572
- var maxElapsed = 40;
573
- var defaultElapsed = 1 / 60 * 1000;
574
- var useDefaultElapsed = true;
575
- var willRunNextFrame = false;
576
- var isProcessing = false;
577
- var frame = {
578
- delta: 0,
579
- timestamp: 0
580
- };
581
- var stepsOrder = ["read", "update", "preRender", "render", "postRender"];
582
- var setWillRunNextFrame = function (willRun) {
583
- return willRunNextFrame = willRun;
584
- };
585
- var steps = /*#__PURE__*/stepsOrder.reduce(function (acc, key) {
586
- acc[key] = createStep(setWillRunNextFrame);
587
- return acc;
588
- }, {});
589
- var sync = /*#__PURE__*/stepsOrder.reduce(function (acc, key) {
590
- var step = steps[key];
591
- acc[key] = function (process, keepAlive, immediate) {
592
- if (keepAlive === void 0) {
593
- keepAlive = false;
594
- }
595
- if (immediate === void 0) {
596
- immediate = false;
597
- }
598
- if (!willRunNextFrame) startLoop();
599
- step.schedule(process, keepAlive, immediate);
600
- return process;
601
- };
602
- return acc;
603
- }, {});
604
- var cancelSync = /*#__PURE__*/stepsOrder.reduce(function (acc, key) {
605
- acc[key] = steps[key].cancel;
606
- return acc;
607
- }, {});
608
- var processStep = function (stepId) {
609
- return steps[stepId].process(frame);
610
- };
611
- var processFrame = function (timestamp) {
612
- willRunNextFrame = false;
613
- frame.delta = useDefaultElapsed ? defaultElapsed : Math.max(Math.min(timestamp - frame.timestamp, maxElapsed), 1);
614
- if (!useDefaultElapsed) defaultElapsed = frame.delta;
615
- frame.timestamp = timestamp;
616
- isProcessing = true;
617
- stepsOrder.forEach(processStep);
618
- isProcessing = false;
619
- if (willRunNextFrame) {
620
- useDefaultElapsed = false;
621
- onNextFrame(processFrame);
622
- }
623
- };
624
- var startLoop = function () {
625
- willRunNextFrame = true;
626
- useDefaultElapsed = true;
627
- if (!isProcessing) onNextFrame(processFrame);
628
- };
629
- var getFrameData = function () {
630
- return frame;
631
- };
535
+ var createStep = (function (setRunNextFrame) {
536
+ var processToRun = [];
537
+ var processToRunNextFrame = [];
538
+ var numThisFrame = 0;
539
+ var isProcessing = false;
540
+ var i = 0;
541
+ var cancelled = new WeakSet();
542
+ var toKeepAlive = new WeakSet();
543
+ var renderStep = {
544
+ cancel: function (process) {
545
+ var indexOfCallback = processToRunNextFrame.indexOf(process);
546
+ cancelled.add(process);
547
+ if (indexOfCallback !== -1) {
548
+ processToRunNextFrame.splice(indexOfCallback, 1);
549
+ }
550
+ },
551
+ process: function (frame) {
552
+ var _a;
553
+ isProcessing = true;
554
+ _a = [
555
+ processToRunNextFrame,
556
+ processToRun
557
+ ], processToRun = _a[0], processToRunNextFrame = _a[1];
558
+ processToRunNextFrame.length = 0;
559
+ numThisFrame = processToRun.length;
560
+ if (numThisFrame) {
561
+ var process_1;
562
+ for (i = 0; i < numThisFrame; i++) {
563
+ process_1 = processToRun[i];
564
+ process_1(frame);
565
+ if (toKeepAlive.has(process_1) === true && !cancelled.has(process_1)) {
566
+ renderStep.schedule(process_1);
567
+ setRunNextFrame(true);
568
+ }
569
+ }
570
+ }
571
+ isProcessing = false;
572
+ },
573
+ schedule: function (process, keepAlive, immediate) {
574
+ if (keepAlive === void 0) { keepAlive = false; }
575
+ if (immediate === void 0) { immediate = false; }
576
+ invariant(typeof process === 'function', 'Argument must be a function');
577
+ var addToCurrentBuffer = immediate && isProcessing;
578
+ var buffer = addToCurrentBuffer ? processToRun : processToRunNextFrame;
579
+ cancelled.delete(process);
580
+ if (keepAlive)
581
+ toKeepAlive.add(process);
582
+ if (buffer.indexOf(process) === -1) {
583
+ buffer.push(process);
584
+ if (addToCurrentBuffer)
585
+ numThisFrame = processToRun.length;
586
+ }
587
+ }
588
+ };
589
+ return renderStep;
590
+ });
591
+
592
+ var StepId;
593
+ (function (StepId) {
594
+ StepId["Read"] = "read";
595
+ StepId["Update"] = "update";
596
+ StepId["Render"] = "render";
597
+ StepId["PostRender"] = "postRender";
598
+ StepId["FixedUpdate"] = "fixedUpdate";
599
+ })(StepId || (StepId = {}));
600
+
601
+ var maxElapsed = 40;
602
+ var defaultElapsed = (1 / 60) * 1000;
603
+ var useDefaultElapsed = true;
604
+ var willRunNextFrame = false;
605
+ var isProcessing = false;
606
+ var frame = {
607
+ delta: 0,
608
+ timestamp: 0
609
+ };
610
+ var stepsOrder = [
611
+ StepId.Read,
612
+ StepId.Update,
613
+ StepId.Render,
614
+ StepId.PostRender
615
+ ];
616
+ var setWillRunNextFrame = function (willRun) { return (willRunNextFrame = willRun); };
617
+ var _a = stepsOrder.reduce(function (acc, key) {
618
+ var step = createStep(setWillRunNextFrame);
619
+ acc.sync[key] = function (process, keepAlive, immediate) {
620
+ if (keepAlive === void 0) { keepAlive = false; }
621
+ if (immediate === void 0) { immediate = false; }
622
+ if (!willRunNextFrame)
623
+ startLoop();
624
+ step.schedule(process, keepAlive, immediate);
625
+ return process;
626
+ };
627
+ acc.cancelSync[key] = function (process) { return step.cancel(process); };
628
+ acc.steps[key] = step;
629
+ return acc;
630
+ }, {
631
+ steps: {},
632
+ sync: {},
633
+ cancelSync: {}
634
+ }), steps = _a.steps, sync = _a.sync, cancelSync = _a.cancelSync;
635
+ var processStep = function (stepId) { return steps[stepId].process(frame); };
636
+ var processFrame = function (timestamp) {
637
+ willRunNextFrame = false;
638
+ frame.delta = useDefaultElapsed
639
+ ? defaultElapsed
640
+ : Math.max(Math.min(timestamp - frame.timestamp, maxElapsed), 1);
641
+ if (!useDefaultElapsed)
642
+ defaultElapsed = frame.delta;
643
+ frame.timestamp = timestamp;
644
+ isProcessing = true;
645
+ stepsOrder.forEach(processStep);
646
+ isProcessing = false;
647
+ if (willRunNextFrame) {
648
+ useDefaultElapsed = false;
649
+ onNextFrame(processFrame);
650
+ }
651
+ };
652
+ var startLoop = function () {
653
+ willRunNextFrame = true;
654
+ useDefaultElapsed = true;
655
+ if (!isProcessing)
656
+ onNextFrame(processFrame);
657
+ };
658
+ var getFrameData = function () { return frame; };
632
659
 
633
660
  var DEFAULT_OVERSHOOT_STRENGTH = 1.525;
634
661
  var reversed = function (easing) {
@@ -903,15 +930,15 @@ See the Apache Version 2.0 License for specific language governing permissions
903
930
  and limitations under the License.
904
931
  ***************************************************************************** */
905
932
 
906
- var __assign$1 = function() {
907
- __assign$1 = Object.assign || function __assign(t) {
933
+ var __assign$2 = function() {
934
+ __assign$2 = Object.assign || function __assign(t) {
908
935
  for (var s, i = 1, n = arguments.length; i < n; i++) {
909
936
  s = arguments[i];
910
937
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
911
938
  }
912
939
  return t;
913
940
  };
914
- return __assign$1.apply(this, arguments);
941
+ return __assign$2.apply(this, arguments);
915
942
  };
916
943
 
917
944
  var mixLinearColor = function (from, to, v) {
@@ -934,7 +961,7 @@ var mixColor = (function (from, to) {
934
961
  invariant(fromColorType.transform === toColorType.transform, 'Both colors must be hex/RGBA, OR both must be HSLA.');
935
962
  var fromColor = fromColorType.parse(from);
936
963
  var toColor = toColorType.parse(to);
937
- var blended = __assign$1({}, fromColor);
964
+ var blended = __assign$2({}, fromColor);
938
965
  var mixFunc = fromColorType === hsla ? mix : mixLinearColor;
939
966
  return function (v) {
940
967
  for (var key in blended) {
@@ -979,7 +1006,7 @@ var mixArray = function (from, to) {
979
1006
  };
980
1007
  };
981
1008
  var mixObject = function (origin, target) {
982
- var output = __assign$1({}, origin, target);
1009
+ var output = __assign$2({}, origin, target);
983
1010
  var blendValue = {};
984
1011
  for (var key in output) {
985
1012
  if (origin[key] !== undefined && target[key] !== undefined) {
@@ -3369,15 +3396,15 @@ See the Apache Version 2.0 License for specific language governing permissions
3369
3396
  and limitations under the License.
3370
3397
  ***************************************************************************** */
3371
3398
 
3372
- var __assign$2 = function () {
3373
- __assign$2 = Object.assign || function __assign(t) {
3399
+ var __assign$3 = function () {
3400
+ __assign$3 = Object.assign || function __assign(t) {
3374
3401
  for (var s, i = 1, n = arguments.length; i < n; i++) {
3375
3402
  s = arguments[i];
3376
3403
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
3377
3404
  }
3378
3405
  return t;
3379
3406
  };
3380
- return __assign$2.apply(this, arguments);
3407
+ return __assign$3.apply(this, arguments);
3381
3408
  };
3382
3409
 
3383
3410
  function __rest$1(s, e) {
@@ -3497,12 +3524,12 @@ var intelligentTransition = {
3497
3524
  opacity: linearTween,
3498
3525
  default: tween
3499
3526
  };
3500
- var dragAction = /*#__PURE__*/__assign$2( /*#__PURE__*/__assign$2({}, intelligentTransition), { x: /*#__PURE__*/createPointer(pointerX, 'left', 'right', BoundingBoxDimension.width), y: /*#__PURE__*/createPointer(pointerY, 'top', 'bottom', BoundingBoxDimension.height) });
3527
+ var dragAction = /*#__PURE__*/__assign$3( /*#__PURE__*/__assign$3({}, intelligentTransition), { x: /*#__PURE__*/createPointer(pointerX, 'left', 'right', BoundingBoxDimension.width), y: /*#__PURE__*/createPointer(pointerY, 'top', 'bottom', BoundingBoxDimension.height) });
3501
3528
  var justAxis = function (_a) {
3502
3529
  var from = _a.from;
3503
3530
  return just(from);
3504
3531
  };
3505
- var intelligentDragEnd = /*#__PURE__*/__assign$2( /*#__PURE__*/__assign$2({}, intelligentTransition), { x: justAxis, y: justAxis });
3532
+ var intelligentDragEnd = /*#__PURE__*/__assign$3( /*#__PURE__*/__assign$3({}, intelligentTransition), { x: justAxis, y: justAxis });
3506
3533
  var defaultTransitions = /*#__PURE__*/new Map([['default', intelligentTransition], ['drag', dragAction], ['dragEnd', intelligentDragEnd]]);
3507
3534
 
3508
3535
  var animationLookup = {
@@ -3597,7 +3624,7 @@ var getAction = function (v, _a, _b) {
3597
3624
  velocity: velocity,
3598
3625
  ease: ease
3599
3626
  } : { ease: ease };
3600
- return animationLookup[type](__assign$2(__assign$2({}, baseProps), def));
3627
+ return animationLookup[type](__assign$3(__assign$3({}, baseProps), def));
3601
3628
  };
3602
3629
  var isAction = function (action$$1) {
3603
3630
  return typeof action$$1.start !== 'undefined';
@@ -3976,7 +4003,7 @@ var convertPositionalUnits = function (state, nextPose) {
3976
4003
  changedPositionalKeys.push(key);
3977
4004
  if (!applyAtEndHasBeenCopied) {
3978
4005
  applyAtEndHasBeenCopied = true;
3979
- nextPose.applyAtEnd = nextPose.applyAtEnd ? __assign$2({}, nextPose.applyAtEnd) : {};
4006
+ nextPose.applyAtEnd = nextPose.applyAtEnd ? __assign$3({}, nextPose.applyAtEnd) : {};
3980
4007
  }
3981
4008
  nextPose.applyAtEnd[key] = nextPose.applyAtEnd[key] || nextPose[key];
3982
4009
  setValue(state, key, to);
@@ -4033,7 +4060,7 @@ var createPoseConfig = function (element, _a) {
4033
4060
  pressable = _a.pressable,
4034
4061
  dragBounds = _a.dragBounds,
4035
4062
  config = __rest$1(_a, ["onDragStart", "onDragEnd", "onPressStart", "onPressEnd", "draggable", "hoverable", "focusable", "pressable", "dragBounds"]);
4036
- var poseConfig = __assign$2(__assign$2({ flip: {} }, config), { props: __assign$2(__assign$2({}, config.props), { onDragStart: onDragStart,
4063
+ var poseConfig = __assign$3(__assign$3({ flip: {} }, config), { props: __assign$3(__assign$3({}, config.props), { onDragStart: onDragStart,
4037
4064
  onDragEnd: onDragEnd,
4038
4065
  onPressStart: onPressStart,
4039
4066
  onPressEnd: onPressEnd,
@@ -4047,8 +4074,8 @@ var createPoseConfig = function (element, _a) {
4047
4074
  var _b = dragPoses(draggable),
4048
4075
  drag = _b.drag,
4049
4076
  dragEnd = _b.dragEnd;
4050
- poseConfig.drag = __assign$2(__assign$2({}, drag), poseConfig.drag);
4051
- poseConfig.dragEnd = __assign$2(__assign$2({}, dragEnd), poseConfig.dragEnd);
4077
+ poseConfig.drag = __assign$3(__assign$3({}, drag), poseConfig.drag);
4078
+ poseConfig.dragEnd = __assign$3(__assign$3({}, dragEnd), poseConfig.dragEnd);
4052
4079
  }
4053
4080
  return poseConfig;
4054
4081
  };
@@ -4094,7 +4121,7 @@ var domPose = /*#__PURE__*/pose({
4094
4121
  var props = _a.props,
4095
4122
  activeActions = _a.activeActions;
4096
4123
  var measure = props.dimensions.measure;
4097
- var poserApi = __assign$2(__assign$2({}, api), { addChild: function (element, childConfig) {
4124
+ var poserApi = __assign$3(__assign$3({}, api), { addChild: function (element, childConfig) {
4098
4125
  return api._addChild(createPoseConfig(element, childConfig), domPose);
4099
4126
  }, measure: measure, flip: function (op) {
4100
4127
  if (op) {
@@ -4164,7 +4191,7 @@ var pickAssign = function (shouldPick, sources) {
4164
4191
  }, {});
4165
4192
  };
4166
4193
 
4167
- var _a = React.createContext({}), PoseParentConsumer = _a.Consumer, PoseParentProvider = _a.Provider;
4194
+ var _a$1 = React.createContext({}), PoseParentConsumer = _a$1.Consumer, PoseParentProvider = _a$1.Provider;
4168
4195
  var calcPopFromFlowStyle = function (el) {
4169
4196
  var offsetTop = el.offsetTop, offsetLeft = el.offsetLeft, offsetWidth = el.offsetWidth, offsetHeight = el.offsetHeight;
4170
4197
  return {
@@ -6137,16 +6164,6 @@ var Text = function Text(_ref) {
6137
6164
 
6138
6165
  var Text$1 = themeComponent(Text, "Text", fallbackValues, "p");
6139
6166
 
6140
- function _templateObject7() {
6141
- var data = _taggedTemplateLiteral(["\n display: none;\n "]);
6142
-
6143
- _templateObject7 = function _templateObject7() {
6144
- return data;
6145
- };
6146
-
6147
- return data;
6148
- }
6149
-
6150
6167
  function _templateObject6() {
6151
6168
  var data = _taggedTemplateLiteral(["\n ", "\n "]);
6152
6169
 
@@ -6198,7 +6215,7 @@ function _templateObject2$1() {
6198
6215
  }
6199
6216
 
6200
6217
  function _templateObject$1() {
6201
- var data = _taggedTemplateLiteral(["\n position: relative;\n box-sizing: border-box;\n padding: ", ";\n border: ", ";\n box-shadow: ", ";\n background-color: ", ";\n min-height: ", ";\n ", "\n min-width: ", ";\n max-width: ", ";\n color: ", ";\n border-radius: ", ";\n border-width: ", ";\n border: ", ";\n text-align: ", ";\n\n &:hover, &:focus {\n ", "\n }\n\n &:active {\n ", "\n }\n\n &:disabled {\n ", "\n }\n\n & * {\n color: ", ";\n }\n\n ", "\n ", "\n\n ", "\n"]);
6218
+ var data = _taggedTemplateLiteral(["\n position: relative;\n box-sizing: border-box;\n padding: ", ";\n border: ", ";\n box-shadow: ", ";\n background-color: ", ";\n min-height: ", ";\n ", "\n min-width: ", ";\n max-width: ", ";\n color: ", ";\n border-radius: ", ";\n border-width: ", ";\n border: ", ";\n text-align: ", ";\n\n &:hover, &:focus {\n ", "\n }\n\n &:active {\n ", "\n }\n\n &:disabled {\n ", "\n }\n\n & * {\n color: ", ";\n }\n\n ", "\n ", "\n"]);
6202
6219
 
6203
6220
  _templateObject$1 = function _templateObject() {
6204
6221
  return data;
@@ -6232,9 +6249,14 @@ var BoxWrapper = styled__default(function (_ref) {
6232
6249
  maxWidth = _ref.maxWidth,
6233
6250
  padding = _ref.padding,
6234
6251
  hiddenStyles = _ref.hiddenStyles,
6235
- props = _objectWithoutProperties(_ref, ["activeStyles", "hoverStyles", "disabledStyles", "extraStyles", "borderSize", "borderColor", "borderWidthOverride", "borderRadius", "textAlign", "boxShadow", "minHeight", "minWidth", "maxWidth", "padding", "hiddenStyles"]);
6236
-
6237
- return /*#__PURE__*/React__default.createElement("div", props);
6252
+ ariaControls = _ref.ariaControls,
6253
+ ariaLabel = _ref.ariaLabel,
6254
+ props = _objectWithoutProperties(_ref, ["activeStyles", "hoverStyles", "disabledStyles", "extraStyles", "borderSize", "borderColor", "borderWidthOverride", "borderRadius", "textAlign", "boxShadow", "minHeight", "minWidth", "maxWidth", "padding", "hiddenStyles", "ariaControls", "ariaLabel"]);
6255
+
6256
+ return /*#__PURE__*/React__default.createElement("div", _extends({
6257
+ "aria-controls": ariaControls,
6258
+ "aria-label": ariaLabel
6259
+ }, props));
6238
6260
  })(_templateObject$1(), function (_ref2) {
6239
6261
  var padding = _ref2.padding;
6240
6262
  return padding;
@@ -6297,9 +6319,6 @@ var BoxWrapper = styled__default(function (_ref) {
6297
6319
  }, function (_ref20) {
6298
6320
  var extraStyles = _ref20.extraStyles;
6299
6321
  return styled.css(_templateObject6(), extraStyles);
6300
- }, function (_ref21) {
6301
- var hiddenStyles = _ref21.hiddenStyles;
6302
- return hiddenStyles && styled.css(_templateObject7());
6303
6322
  });
6304
6323
  /* eslint-enable no-unused-vars */
6305
6324
 
@@ -10042,11 +10061,9 @@ function usePanGesture(_a, ref) {
10042
10061
  onPanEnd && onPanEnd(event, info);
10043
10062
  },
10044
10063
  };
10045
- React.useEffect(function () {
10046
- if (panSession.current !== null) {
10047
- panSession.current.updateHandlers(handlers);
10048
- }
10049
- });
10064
+ if (panSession.current !== null) {
10065
+ panSession.current.updateHandlers(handlers);
10066
+ }
10050
10067
  function onPointerDown(event) {
10051
10068
  panSession.current = new PanSession(event, handlers, {
10052
10069
  transformPagePoint: transformPagePoint,
@@ -11087,7 +11104,7 @@ function useForceUpdate() {
11087
11104
 
11088
11105
  var SyncLayoutContext = React.createContext(null);
11089
11106
 
11090
- var _a$1;
11107
+ var _a$2;
11091
11108
  var StepName;
11092
11109
  (function (StepName) {
11093
11110
  StepName["Prepare"] = "prepare";
@@ -11125,12 +11142,12 @@ var createUseSyncEffect = function (stepName) { return function (callback) {
11125
11142
  jobsNeedProcessing = true;
11126
11143
  jobs[stepName].push(callback);
11127
11144
  }; };
11128
- var layoutSync = (_a$1 = {},
11129
- _a$1[StepName.Prepare] = createUseSyncEffect(StepName.Prepare),
11130
- _a$1[StepName.Read] = createUseSyncEffect(StepName.Read),
11131
- _a$1[StepName.Render] = createUseSyncEffect(StepName.Render),
11132
- _a$1.flush = flushAllJobs,
11133
- _a$1);
11145
+ var layoutSync = (_a$2 = {},
11146
+ _a$2[StepName.Prepare] = createUseSyncEffect(StepName.Prepare),
11147
+ _a$2[StepName.Read] = createUseSyncEffect(StepName.Read),
11148
+ _a$2[StepName.Render] = createUseSyncEffect(StepName.Render),
11149
+ _a$2.flush = flushAllJobs,
11150
+ _a$2);
11134
11151
 
11135
11152
  function isHTMLElement$1(element) {
11136
11153
  return element instanceof HTMLElement;
@@ -14347,15 +14364,12 @@ var Heading = function Heading(_ref) {
14347
14364
  className = _ref.className,
14348
14365
  _ref$variant = _ref.variant,
14349
14366
  variant = _ref$variant === void 0 ? "h1" : _ref$variant,
14350
- _ref$as = _ref.as,
14351
- as = _ref$as === void 0 ? "h1" : _ref$as,
14352
14367
  dataQa = _ref.dataQa,
14353
14368
  children = _ref.children,
14354
- rest = _objectWithoutProperties(_ref, ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"]);
14369
+ rest = _objectWithoutProperties(_ref, ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "dataQa", "children"]);
14355
14370
 
14356
14371
  return /*#__PURE__*/React__default.createElement(HeadingText, _extends({
14357
- variant: variant,
14358
- as: as,
14372
+ as: variant,
14359
14373
  weight: weight,
14360
14374
  color: color,
14361
14375
  margin: margin,
@@ -16366,10 +16380,10 @@ function _templateObject8() {
16366
16380
  return data;
16367
16381
  }
16368
16382
 
16369
- function _templateObject7$1() {
16383
+ function _templateObject7() {
16370
16384
  var data = _taggedTemplateLiteral(["\n display: inline-block;\n width: 24px;\n height: 24px;\n border-radius: 2px;\n transition: all 150ms;\n\n ", " {\n visibility: ", ";\n }\n\n ", ";\n"]);
16371
16385
 
16372
- _templateObject7$1 = function _templateObject7() {
16386
+ _templateObject7 = function _templateObject7() {
16373
16387
  return data;
16374
16388
  };
16375
16389
 
@@ -16446,7 +16460,7 @@ var CheckboxIcon = styled__default.svg(_templateObject3$3(), function (_ref) {
16446
16460
  var HiddenCheckbox = styled__default.input.attrs({
16447
16461
  type: "checkbox"
16448
16462
  })(_templateObject6$1());
16449
- var StyledCheckbox = styled__default.div(_templateObject7$1(), CheckboxIcon, function (_ref2) {
16463
+ var StyledCheckbox = styled__default.div(_templateObject7(), CheckboxIcon, function (_ref2) {
16450
16464
  var checked = _ref2.checked;
16451
16465
  return checked ? "visible" : "hidden";
16452
16466
  }, function (_ref3) {
@@ -18395,8 +18409,8 @@ var color$5 = {
18395
18409
  disabled: "".concat(DUSTY_GREY)
18396
18410
  };
18397
18411
  var labelColor = {
18398
- "default": "".concat(FIREFLY_GREY),
18399
- disabled: "".concat(FIREFLY_GREY)
18412
+ "default": "".concat(STORM_GREY),
18413
+ disabled: "".concat(STORM_GREY)
18400
18414
  };
18401
18415
  var borderColor = {
18402
18416
  "default": "".concat(GREY_CHATEAU),
@@ -18845,16 +18859,23 @@ var CCIconWrapper = styled__default.div(_templateObject2$e());
18845
18859
  var FormattedCreditCard = function FormattedCreditCard(_ref) {
18846
18860
  var lastFour = _ref.lastFour,
18847
18861
  autoPay = _ref.autoPay,
18862
+ expireDate = _ref.expireDate,
18848
18863
  themeValues = _ref.themeValues;
18849
18864
  return /*#__PURE__*/React__default.createElement(CreditCardWrapper, null, /*#__PURE__*/React__default.createElement(CCIconWrapper, null, /*#__PURE__*/React__default.createElement(GenericCard, null)), /*#__PURE__*/React__default.createElement(Stack, {
18850
18865
  childGap: "0"
18866
+ }, /*#__PURE__*/React__default.createElement(Box, {
18867
+ padding: "0"
18851
18868
  }, /*#__PURE__*/React__default.createElement(Text$1, {
18852
18869
  variant: "p",
18853
18870
  padding: "0 0 0 8px",
18854
18871
  color: themeValues.textColor,
18855
18872
  textAlign: "left",
18856
18873
  extraStyles: "display: inline-block;"
18857
- }, "Card ending in ".concat(lastFour)), autoPay && /*#__PURE__*/React__default.createElement(Text$1, {
18874
+ }, "Card ending in ".concat(lastFour)), expireDate && /*#__PURE__*/React__default.createElement(Paragraph$1, {
18875
+ variant: "pXS",
18876
+ color: ASH_GREY,
18877
+ textAlign: "left"
18878
+ }, "Exp ".concat(expireDate))), autoPay && /*#__PURE__*/React__default.createElement(Text$1, {
18858
18879
  variant: "p",
18859
18880
  color: themeValues.autopayTextColor,
18860
18881
  extraStyles: "font-style: italic;"
@@ -18993,19 +19014,16 @@ var LabeledAmount = function LabeledAmount(_ref) {
18993
19014
  variant = _ref$variant === void 0 ? "pL" : _ref$variant,
18994
19015
  label = _ref.label,
18995
19016
  amount = _ref.amount,
18996
- themeValues = _ref.themeValues,
18997
- as = _ref.as;
19017
+ themeValues = _ref.themeValues;
18998
19018
  var LabeledAmountText = variant === "h6" ? Heading$1 : Paragraph$1;
18999
19019
  return /*#__PURE__*/React__default.createElement(Stack, {
19000
19020
  direction: "row"
19001
19021
  }, /*#__PURE__*/React__default.createElement(LabeledAmountText, {
19002
19022
  variant: variant,
19003
- as: as,
19004
19023
  weight: themeValues.fontWeight,
19005
19024
  extraStyles: "text-align: start; flex: 3;"
19006
19025
  }, label, ":"), /*#__PURE__*/React__default.createElement(LabeledAmountText, {
19007
19026
  variant: variant,
19008
- as: as,
19009
19027
  weight: themeValues.fontWeight,
19010
19028
  extraStyles: "text-align: end; flex: 1;"
19011
19029
  }, amount));
@@ -19293,10 +19311,10 @@ function _templateObject8$1() {
19293
19311
  return data;
19294
19312
  }
19295
19313
 
19296
- function _templateObject7$2() {
19314
+ function _templateObject7$1() {
19297
19315
  var data = _taggedTemplateLiteral(["", " needs an uppercase letter"]);
19298
19316
 
19299
- _templateObject7$2 = function _templateObject7() {
19317
+ _templateObject7$1 = function _templateObject7() {
19300
19318
  return data;
19301
19319
  };
19302
19320
 
@@ -19402,7 +19420,7 @@ with interpolation.
19402
19420
  */
19403
19421
 
19404
19422
 
19405
- var DEFAULT_ERROR_MESSAGES = (_DEFAULT_ERROR_MESSAG = {}, _defineProperty(_DEFAULT_ERROR_MESSAG, MIN_LENGTH_ERROR, genErrorMessage(_templateObject$t(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, MAX_LENGTH_ERROR, genErrorMessage(_templateObject2$h(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, EXACT_LENGTH_ERROR, genErrorMessage(_templateObject3$9(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, MULTIPLE_LENGTHS_ERROR, genErrorMessage(_templateObject4$5(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, EMAIL_ERROR, genErrorMessage(_templateObject5$2(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, HAS_NUMBER_ERROR, genErrorMessage(_templateObject6$2(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, HAS_UPPERCASE_LETTER_ERROR, genErrorMessage(_templateObject7$2(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, HAS_LOWERCASE_LETTER_ERROR, genErrorMessage(_templateObject8$1(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, HAS_SPECIAL_CHARACTER_ERROR, genErrorMessage(_templateObject9$1(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, ONLY_NUMBERS_ERROR, genErrorMessage(_templateObject10$1(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, ONLY_LETTERS_ERROR, genErrorMessage(_templateObject11$1(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, REQUIRED_FIELD_ERROR, genErrorMessage(_templateObject12(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, NUM_GREATER_THAN_ERROR, genErrorMessage(_templateObject13(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, NUM_LESS_THAN_ERROR, genErrorMessage(_templateObject14(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, MATCHES_FIELD_ERROR, genErrorMessage(_templateObject15(), "fieldLabel", "matchField")), _defineProperty(_DEFAULT_ERROR_MESSAG, VALID_SELECT_OPTION_ERROR, genErrorMessage(_templateObject16(), "fieldLabel")), _DEFAULT_ERROR_MESSAG); // Constants to represent an input's state
19423
+ var DEFAULT_ERROR_MESSAGES = (_DEFAULT_ERROR_MESSAG = {}, _defineProperty(_DEFAULT_ERROR_MESSAG, MIN_LENGTH_ERROR, genErrorMessage(_templateObject$t(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, MAX_LENGTH_ERROR, genErrorMessage(_templateObject2$h(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, EXACT_LENGTH_ERROR, genErrorMessage(_templateObject3$9(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, MULTIPLE_LENGTHS_ERROR, genErrorMessage(_templateObject4$5(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, EMAIL_ERROR, genErrorMessage(_templateObject5$2(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, HAS_NUMBER_ERROR, genErrorMessage(_templateObject6$2(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, HAS_UPPERCASE_LETTER_ERROR, genErrorMessage(_templateObject7$1(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, HAS_LOWERCASE_LETTER_ERROR, genErrorMessage(_templateObject8$1(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, HAS_SPECIAL_CHARACTER_ERROR, genErrorMessage(_templateObject9$1(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, ONLY_NUMBERS_ERROR, genErrorMessage(_templateObject10$1(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, ONLY_LETTERS_ERROR, genErrorMessage(_templateObject11$1(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, REQUIRED_FIELD_ERROR, genErrorMessage(_templateObject12(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, NUM_GREATER_THAN_ERROR, genErrorMessage(_templateObject13(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, NUM_LESS_THAN_ERROR, genErrorMessage(_templateObject14(), "fieldLabel")), _defineProperty(_DEFAULT_ERROR_MESSAG, MATCHES_FIELD_ERROR, genErrorMessage(_templateObject15(), "fieldLabel", "matchField")), _defineProperty(_DEFAULT_ERROR_MESSAG, VALID_SELECT_OPTION_ERROR, genErrorMessage(_templateObject16(), "fieldLabel")), _DEFAULT_ERROR_MESSAG); // Constants to represent an input's state
19406
19424
  // Neutral - has not been validated
19407
19425
  // Invalid - has been validated and has an error
19408
19426
  // Valid - has been validated and has no error
@@ -32695,10 +32713,10 @@ function _templateObject8$2() {
32695
32713
  return data;
32696
32714
  }
32697
32715
 
32698
- function _templateObject7$3() {
32716
+ function _templateObject7$2() {
32699
32717
  var data = _taggedTemplateLiteral(["\n display: flex;\n ", ";\n ", ";\n ", ";\n font-size: ", ";\n color: ", ";\n"]);
32700
32718
 
32701
- _templateObject7$3 = function _templateObject7() {
32719
+ _templateObject7$2 = function _templateObject7() {
32702
32720
  return data;
32703
32721
  };
32704
32722
 
@@ -32791,7 +32809,7 @@ var ActionWrapper = styled__default.div(_templateObject6$3(), function (_ref7) {
32791
32809
  var isMobile = _ref7.isMobile;
32792
32810
  return isMobile && "display: none";
32793
32811
  });
32794
- var TableItemKey = styled__default.div(_templateObject7$3(), function (_ref8) {
32812
+ var TableItemKey = styled__default.div(_templateObject7$2(), function (_ref8) {
32795
32813
  var isMobile = _ref8.isMobile;
32796
32814
  return !isMobile && "flex: 1";
32797
32815
  }, function (_ref9) {
@@ -34374,7 +34392,7 @@ var textAlign = {
34374
34392
  };
34375
34393
  var titleType = {
34376
34394
  "default": "h5",
34377
- largeTitle: "h1"
34395
+ largeTitle: "h3"
34378
34396
  };
34379
34397
  var titleSpacing = {
34380
34398
  "default": "0.5rem",
@@ -34418,11 +34436,12 @@ var Module = function Module(_ref) {
34418
34436
  variant = _ref$variant === void 0 ? "default" : _ref$variant,
34419
34437
  children = _ref.children;
34420
34438
  return /*#__PURE__*/React__default.createElement(React.Fragment, null, heading && /*#__PURE__*/React__default.createElement(Heading$1, {
34421
- variant: variant === "default" ? "h5" : "h2",
34439
+ variant: variant === "default" ? "h5" : "h3",
34422
34440
  weight: themeValues.fontWeight,
34423
34441
  color: themeValues.fontColor,
34424
34442
  margin: "".concat(spacing, " 0 ").concat(themeValues.titleSpacing, " 0"),
34425
- textAlign: themeValues.textAlign
34443
+ textAlign: themeValues.textAlign,
34444
+ "aria-level": variant === "default" ? "3" : "1"
34426
34445
  }, heading), /*#__PURE__*/React__default.createElement(Box, {
34427
34446
  padding: "0 0 ".concat(spacingBottom)
34428
34447
  }, /*#__PURE__*/React__default.createElement(Box, {
@@ -36058,20 +36077,23 @@ var fallbackValues$t = {
36058
36077
  var AutopayModal = function AutopayModal(_ref) {
36059
36078
  var autoPayActive = _ref.autoPayActive,
36060
36079
  autoPaySchedule = _ref.autoPaySchedule,
36080
+ paymentPlanSchedule = _ref.paymentPlanSchedule,
36061
36081
  toggleModal = _ref.toggleModal,
36062
36082
  modalOpen = _ref.modalOpen,
36063
36083
  deactivatePaymentSchedule = _ref.deactivatePaymentSchedule,
36064
36084
  navigateToSettings = _ref.navigateToSettings,
36065
36085
  buttonLinkType = _ref.buttonLinkType,
36066
36086
  isMobile = _ref.isMobile,
36067
- themeValues = _ref.themeValues;
36087
+ themeValues = _ref.themeValues,
36088
+ isPaymentPlan = _ref.isPaymentPlan;
36089
+ var planType = isPaymentPlan ? "Payment Plan" : "Autopay";
36068
36090
  var modalExtraProps = {
36069
- modalHeaderText: autoPayActive ? "Deactivate Autopay" : "Set Up Autopay",
36070
- modalBodyText: autoPayActive ? "Are you sure you want to deactivate autopay? You will need to manually make your next payment." : "To set up autopay you must save a payment method and address in your profile. Do you want to save these now?",
36071
- continueButtonText: autoPayActive ? "Disable Autopay" : "Add to Profile",
36091
+ modalHeaderText: autoPayActive ? "Deactivate ".concat(planType) : "Set Up ".concat(planType),
36092
+ modalBodyText: autoPayActive ? "Are you sure you want to deactivate ".concat(isPaymentPlan ? "your payment plan" : "autopay", "? You will need to manually make your next payment.") : "To set up ".concat(isPaymentPlan ? "a payment plan" : "autopay", " you must save a payment method and address in your profile. Do you want to save these now?"),
36093
+ continueButtonText: autoPayActive ? "Disable ".concat(planType) : "Add to Profile",
36072
36094
  useDangerButton: autoPayActive,
36073
36095
  continueAction: autoPayActive ? function () {
36074
- deactivatePaymentSchedule(autoPaySchedule);
36096
+ deactivatePaymentSchedule(isPaymentPlan ? paymentPlanSchedule : autoPaySchedule, isPaymentPlan);
36075
36097
  toggleModal(false);
36076
36098
  } : navigateToSettings
36077
36099
  };
@@ -36081,7 +36103,7 @@ var AutopayModal = function AutopayModal(_ref) {
36081
36103
  return /*#__PURE__*/React__default.createElement(Modal$1, _extends({
36082
36104
  ModalLink: function ModalLink() {
36083
36105
  return buttonLinkType ? /*#__PURE__*/React__default.createElement(ButtonWithAction, {
36084
- text: autoPayActive ? "Manage Autopay" : "Set Up Autopay",
36106
+ text: autoPayActive ? "Manage ".concat(planType) : "Set Up ".concat(planType),
36085
36107
  variant: "tertiary",
36086
36108
  action: function action() {
36087
36109
  toggleModal(true);
@@ -36100,7 +36122,7 @@ var AutopayModal = function AutopayModal(_ref) {
36100
36122
  justify: isMobile ? "flex-start" : "flex-end",
36101
36123
  align: "center"
36102
36124
  }, /*#__PURE__*/React__default.createElement(AutopayOnIcon$1, null), /*#__PURE__*/React__default.createElement(ButtonWithAction, {
36103
- text: "Autopay On",
36125
+ text: "".concat(planType, " On"),
36104
36126
  variant: "smallGhost",
36105
36127
  dataQa: "Autopay On",
36106
36128
  textExtraStyles: "font-size: 0.875rem; ",
@@ -36125,7 +36147,9 @@ var AmountModule = function AmountModule(_ref) {
36125
36147
  isMobile = _ref.isMobile,
36126
36148
  deactivatePaymentSchedule = _ref.deactivatePaymentSchedule,
36127
36149
  navigateToSettings = _ref.navigateToSettings,
36128
- autoPaySchedule = _ref.autoPaySchedule;
36150
+ autoPaySchedule = _ref.autoPaySchedule,
36151
+ paymentPlanSchedule = _ref.paymentPlanSchedule,
36152
+ isPaymentPlan = _ref.isPaymentPlan;
36129
36153
 
36130
36154
  var _useState = React.useState(false),
36131
36155
  _useState2 = _slicedToArray(_useState, 2),
@@ -36150,7 +36174,9 @@ var AmountModule = function AmountModule(_ref) {
36150
36174
  modalOpen: modalOpen,
36151
36175
  navigateToSettings: navigateToSettings,
36152
36176
  deactivatePaymentSchedule: deactivatePaymentSchedule,
36153
- isMobile: isMobile
36177
+ isMobile: isMobile,
36178
+ paymentPlanSchedule: paymentPlanSchedule,
36179
+ isPaymentPlan: isPaymentPlan
36154
36180
  })));
36155
36181
  };
36156
36182
 
@@ -36164,7 +36190,10 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
36164
36190
  handleAutopayAction = _ref.handleAutopayAction,
36165
36191
  deactivatePaymentSchedule = _ref.deactivatePaymentSchedule,
36166
36192
  navigateToSettings = _ref.navigateToSettings,
36167
- autoPaySchedule = _ref.autoPaySchedule;
36193
+ autoPaySchedule = _ref.autoPaySchedule,
36194
+ paymentPlanSchedule = _ref.paymentPlanSchedule,
36195
+ isPaymentPlan = _ref.isPaymentPlan;
36196
+ var planType = isPaymentPlan ? "Payment Plan" : "Autopay";
36168
36197
 
36169
36198
  var _useState = React.useState(false),
36170
36199
  _useState2 = _slicedToArray(_useState, 2),
@@ -36216,7 +36245,9 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
36216
36245
  isMobile: isMobile,
36217
36246
  deactivatePaymentSchedule: deactivatePaymentSchedule,
36218
36247
  navigateToSettings: navigateToSettings,
36219
- autoPaySchedule: autoPaySchedule
36248
+ autoPaySchedule: autoPaySchedule,
36249
+ paymentPlanSchedule: paymentPlanSchedule,
36250
+ isPaymentPlan: isPaymentPlan
36220
36251
  }))), /*#__PURE__*/React__default.createElement(Box, {
36221
36252
  padding: isMobile ? "16px" : "0"
36222
36253
  }, /*#__PURE__*/React__default.createElement(Cluster, {
@@ -36237,7 +36268,7 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
36237
36268
  extraStyles: isMobile && "flex-grow: 1;"
36238
36269
  }, autoPayAvailable && !autoPayEnabled ? /*#__PURE__*/React__default.createElement(ButtonWithAction, {
36239
36270
  variant: "tertiary",
36240
- text: "Set Up Autopay",
36271
+ text: "Set Up ".concat(planType),
36241
36272
  action: function action() {
36242
36273
  setDetailedObligation(obligations, config);
36243
36274
  handleAutopayAction();
@@ -36252,7 +36283,9 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
36252
36283
  navigateToSettings: navigateToSettings,
36253
36284
  deactivatePaymentSchedule: deactivatePaymentSchedule,
36254
36285
  buttonLinkType: true,
36255
- isMobile: isMobile
36286
+ isMobile: isMobile,
36287
+ paymentPlanSchedule: paymentPlanSchedule,
36288
+ isPaymentPlan: isPaymentPlan
36256
36289
  })), !isMobile && /*#__PURE__*/React__default.createElement(Box, {
36257
36290
  padding: isMobile ? "0 0 0 8px" : "8px",
36258
36291
  extraStyles: isMobile && "flex-grow: 1;"
@@ -36289,8 +36322,10 @@ var Obligation = function Obligation(_ref) {
36289
36322
  handleAutopayAction = _ref.handleAutopayAction,
36290
36323
  deactivatePaymentSchedule = _ref.deactivatePaymentSchedule,
36291
36324
  autoPaySchedule = _ref.autoPaySchedule,
36325
+ paymentPlanSchedule = _ref.paymentPlanSchedule,
36292
36326
  navigateToSettings = _ref.navigateToSettings,
36293
- isMobile = _ref.isMobile;
36327
+ isMobile = _ref.isMobile,
36328
+ isPaymentPlan = _ref.isPaymentPlan;
36294
36329
  var obligation = obligations[0];
36295
36330
  var customAttributes = obligation.customAttributes;
36296
36331
  return /*#__PURE__*/React__default.createElement(Box, {
@@ -36334,7 +36369,9 @@ var Obligation = function Obligation(_ref) {
36334
36369
  isMobile: isMobile,
36335
36370
  deactivatePaymentSchedule: deactivatePaymentSchedule,
36336
36371
  navigateToSettings: navigateToSettings,
36337
- autoPaySchedule: autoPaySchedule
36372
+ autoPaySchedule: autoPaySchedule,
36373
+ paymentPlanSchedule: paymentPlanSchedule,
36374
+ isPaymentPlan: isPaymentPlan
36338
36375
  }))), !isMobile && /*#__PURE__*/React__default.createElement(PaymentDetailsActions, {
36339
36376
  obligations: obligations,
36340
36377
  autoPayEnabled: autoPayEnabled,
@@ -36342,10 +36379,12 @@ var Obligation = function Obligation(_ref) {
36342
36379
  handleAutopayAction: handleAutopayAction,
36343
36380
  deactivatePaymentSchedule: deactivatePaymentSchedule,
36344
36381
  autoPaySchedule: autoPaySchedule,
36382
+ paymentPlanSchedule: paymentPlanSchedule,
36345
36383
  navigateToSettings: navigateToSettings,
36346
36384
  config: config,
36347
36385
  actions: actions,
36348
- isMobile: isMobile
36386
+ isMobile: isMobile,
36387
+ isPaymentPlan: isPaymentPlan
36349
36388
  }))), isMobile && /*#__PURE__*/React__default.createElement(PaymentDetailsActions, {
36350
36389
  obligations: obligations,
36351
36390
  autoPayEnabled: autoPayEnabled,
@@ -36353,10 +36392,12 @@ var Obligation = function Obligation(_ref) {
36353
36392
  handleAutopayAction: handleAutopayAction,
36354
36393
  deactivatePaymentSchedule: deactivatePaymentSchedule,
36355
36394
  autoPaySchedule: autoPaySchedule,
36395
+ paymentPlanSchedule: paymentPlanSchedule,
36356
36396
  navigateToSettings: navigateToSettings,
36357
36397
  config: config,
36358
36398
  actions: actions,
36359
- isMobile: isMobile
36399
+ isMobile: isMobile,
36400
+ isPaymentPlan: isPaymentPlan
36360
36401
  }));
36361
36402
  };
36362
36403
 
@@ -36670,7 +36711,6 @@ var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
36670
36711
  label: "Subtotal",
36671
36712
  amount: displayCurrency(subtotal)
36672
36713
  }), feeElems), /*#__PURE__*/React__default.createElement(SolidDivider$1, null), /*#__PURE__*/React__default.createElement(LabeledAmount$1, {
36673
- as: "h2",
36674
36714
  variant: themeValues.labeledAmountTotal,
36675
36715
  label: "Total",
36676
36716
  amount: displayCurrency(total)
@@ -36792,11 +36832,9 @@ var PaymentDetails = function PaymentDetails(_ref4) {
36792
36832
  justify: "space-between",
36793
36833
  align: "center"
36794
36834
  }, /*#__PURE__*/React__default.createElement(Heading$1, {
36795
- variant: "h5",
36796
- weight: "700",
36797
- as: "h1"
36835
+ variant: "h6",
36836
+ weight: "700"
36798
36837
  }, titleText), displayCurrency(total))) : /*#__PURE__*/React__default.createElement(Heading$1, {
36799
- as: "h1",
36800
36838
  variant: "h3",
36801
36839
  weight: "700",
36802
36840
  margin: "1rem 0 0 0"
@@ -37458,8 +37496,7 @@ var RadioSection = function RadioSection(_ref) {
37458
37496
  src: icon.img,
37459
37497
  key: icon.img,
37460
37498
  fade: !icon.enabled,
37461
- isMobile: isMobile,
37462
- alt: icon.altText
37499
+ isMobile: isMobile
37463
37500
  });
37464
37501
  })))), /*#__PURE__*/React__default.createElement(AnimatePresence, {
37465
37502
  initial: false