@thecb/components 4.0.5 → 4.0.9

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,47 +275,21 @@ 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
-
304
278
  var clamp = function (min, max) { return function (v) {
305
279
  return Math.max(Math.min(v, max), min);
306
280
  }; };
307
281
  var sanitize = function (v) { return (v % 1 ? Number(v.toFixed(5)) : v); };
308
282
  var floatRegex = /(-)?(\d[\d\.]*)/g;
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;
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;
311
285
 
312
286
  var number = {
313
287
  test: function (v) { return typeof v === 'number'; },
314
288
  parse: parseFloat,
315
289
  transform: function (v) { return v; }
316
290
  };
317
- var alpha = __assign$1(__assign$1({}, number), { transform: clamp(0, 1) });
318
- var scale = __assign$1(__assign$1({}, number), { default: 1 });
291
+ var alpha = __assign(__assign({}, number), { transform: clamp(0, 1) });
292
+ var scale = __assign(__assign({}, number), { default: 1 });
319
293
 
320
294
  var createUnitType = function (unit) { return ({
321
295
  test: function (v) {
@@ -329,7 +303,7 @@ var percent = createUnitType('%');
329
303
  var px = createUnitType('px');
330
304
  var vh = createUnitType('vh');
331
305
  var vw = createUnitType('vw');
332
- var progressPercentage = __assign$1(__assign$1({}, percent), { parse: function (v) { return percent.parse(v) / 100; }, transform: function (v) { return percent.transform(v * 100); } });
306
+ var progressPercentage = __assign(__assign({}, percent), { parse: function (v) { return percent.parse(v) / 100; }, transform: function (v) { return percent.transform(v * 100); } });
333
307
 
334
308
  var getValueFromFunctionString = function (value) {
335
309
  return value.substring(value.indexOf('(') + 1, value.lastIndexOf(')'));
@@ -337,12 +311,17 @@ var getValueFromFunctionString = function (value) {
337
311
  var clampRgbUnit = clamp(0, 255);
338
312
  var isRgba = function (v) { return v.red !== undefined; };
339
313
  var isHsla = function (v) { return v.hue !== undefined; };
314
+ function getValuesAsArray(value) {
315
+ return getValueFromFunctionString(value)
316
+ .replace(/(,|\/)/g, ' ')
317
+ .split(/ \s*/);
318
+ }
340
319
  var splitColorValues = function (terms) {
341
320
  return function (v) {
342
321
  if (typeof v !== 'string')
343
322
  return v;
344
323
  var values = {};
345
- var valuesArray = getValueFromFunctionString(v).split(/,\s*/);
324
+ var valuesArray = getValuesAsArray(v);
346
325
  for (var i = 0; i < 4; i++) {
347
326
  values[terms[i]] =
348
327
  valuesArray[i] !== undefined ? parseFloat(valuesArray[i]) : 1;
@@ -351,14 +330,14 @@ var splitColorValues = function (terms) {
351
330
  };
352
331
  };
353
332
  var rgbaTemplate = function (_a) {
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 + ")";
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 + ")";
356
335
  };
357
336
  var hslaTemplate = function (_a) {
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 + ")";
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 + ")";
360
339
  };
361
- var rgbUnit = __assign$1(__assign$1({}, number), { transform: function (v) { return Math.round(clampRgbUnit(v)); } });
340
+ var rgbUnit = __assign(__assign({}, number), { transform: function (v) { return Math.round(clampRgbUnit(v)); } });
362
341
  function isColorString(color, colorType) {
363
342
  return color.startsWith(colorType) && singleColorRegex.test(color);
364
343
  }
@@ -366,12 +345,12 @@ var rgba = {
366
345
  test: function (v) { return (typeof v === 'string' ? isColorString(v, 'rgb') : isRgba(v)); },
367
346
  parse: splitColorValues(['red', 'green', 'blue', 'alpha']),
368
347
  transform: function (_a) {
369
- var red = _a.red, green = _a.green, blue = _a.blue, _b = _a.alpha, alpha$$1 = _b === void 0 ? 1 : _b;
348
+ var red = _a.red, green = _a.green, blue = _a.blue, _b = _a.alpha, alpha$1 = _b === void 0 ? 1 : _b;
370
349
  return rgbaTemplate({
371
350
  red: rgbUnit.transform(red),
372
351
  green: rgbUnit.transform(green),
373
352
  blue: rgbUnit.transform(blue),
374
- alpha: sanitize(alpha.transform(alpha$$1))
353
+ alpha: sanitize(alpha.transform(alpha$1))
375
354
  });
376
355
  }
377
356
  };
@@ -379,16 +358,16 @@ var hsla = {
379
358
  test: function (v) { return (typeof v === 'string' ? isColorString(v, 'hsl') : isHsla(v)); },
380
359
  parse: splitColorValues(['hue', 'saturation', 'lightness', 'alpha']),
381
360
  transform: function (_a) {
382
- var hue = _a.hue, saturation = _a.saturation, lightness = _a.lightness, _b = _a.alpha, alpha$$1 = _b === void 0 ? 1 : _b;
361
+ var hue = _a.hue, saturation = _a.saturation, lightness = _a.lightness, _b = _a.alpha, alpha$1 = _b === void 0 ? 1 : _b;
383
362
  return hslaTemplate({
384
363
  hue: Math.round(hue),
385
364
  saturation: percent.transform(sanitize(saturation)),
386
365
  lightness: percent.transform(sanitize(lightness)),
387
- alpha: sanitize(alpha.transform(alpha$$1))
366
+ alpha: sanitize(alpha.transform(alpha$1))
388
367
  });
389
368
  }
390
369
  };
391
- var hex = __assign$1(__assign$1({}, rgba), { test: function (v) { return typeof v === 'string' && isColorString(v, '#'); }, parse: function (v) {
370
+ var hex = __assign(__assign({}, rgba), { test: function (v) { return typeof v === 'string' && isColorString(v, '#'); }, parse: function (v) {
392
371
  var r = '';
393
372
  var g = '';
394
373
  var b = '';
@@ -522,140 +501,134 @@ if (process.env.NODE_ENV !== 'production') {
522
501
  };
523
502
  }
524
503
 
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);
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
+ }
533
568
  };
569
+ return renderStep;
570
+ };
534
571
 
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; };
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
+ };
659
632
 
660
633
  var DEFAULT_OVERSHOOT_STRENGTH = 1.525;
661
634
  var reversed = function (easing) {
@@ -930,15 +903,15 @@ See the Apache Version 2.0 License for specific language governing permissions
930
903
  and limitations under the License.
931
904
  ***************************************************************************** */
932
905
 
933
- var __assign$2 = function() {
934
- __assign$2 = Object.assign || function __assign(t) {
906
+ var __assign$1 = function() {
907
+ __assign$1 = Object.assign || function __assign(t) {
935
908
  for (var s, i = 1, n = arguments.length; i < n; i++) {
936
909
  s = arguments[i];
937
910
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
938
911
  }
939
912
  return t;
940
913
  };
941
- return __assign$2.apply(this, arguments);
914
+ return __assign$1.apply(this, arguments);
942
915
  };
943
916
 
944
917
  var mixLinearColor = function (from, to, v) {
@@ -961,7 +934,7 @@ var mixColor = (function (from, to) {
961
934
  invariant(fromColorType.transform === toColorType.transform, 'Both colors must be hex/RGBA, OR both must be HSLA.');
962
935
  var fromColor = fromColorType.parse(from);
963
936
  var toColor = toColorType.parse(to);
964
- var blended = __assign$2({}, fromColor);
937
+ var blended = __assign$1({}, fromColor);
965
938
  var mixFunc = fromColorType === hsla ? mix : mixLinearColor;
966
939
  return function (v) {
967
940
  for (var key in blended) {
@@ -1006,7 +979,7 @@ var mixArray = function (from, to) {
1006
979
  };
1007
980
  };
1008
981
  var mixObject = function (origin, target) {
1009
- var output = __assign$2({}, origin, target);
982
+ var output = __assign$1({}, origin, target);
1010
983
  var blendValue = {};
1011
984
  for (var key in output) {
1012
985
  if (origin[key] !== undefined && target[key] !== undefined) {
@@ -3396,15 +3369,15 @@ See the Apache Version 2.0 License for specific language governing permissions
3396
3369
  and limitations under the License.
3397
3370
  ***************************************************************************** */
3398
3371
 
3399
- var __assign$3 = function () {
3400
- __assign$3 = Object.assign || function __assign(t) {
3372
+ var __assign$2 = function () {
3373
+ __assign$2 = Object.assign || function __assign(t) {
3401
3374
  for (var s, i = 1, n = arguments.length; i < n; i++) {
3402
3375
  s = arguments[i];
3403
3376
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
3404
3377
  }
3405
3378
  return t;
3406
3379
  };
3407
- return __assign$3.apply(this, arguments);
3380
+ return __assign$2.apply(this, arguments);
3408
3381
  };
3409
3382
 
3410
3383
  function __rest$1(s, e) {
@@ -3524,12 +3497,12 @@ var intelligentTransition = {
3524
3497
  opacity: linearTween,
3525
3498
  default: tween
3526
3499
  };
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) });
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) });
3528
3501
  var justAxis = function (_a) {
3529
3502
  var from = _a.from;
3530
3503
  return just(from);
3531
3504
  };
3532
- var intelligentDragEnd = /*#__PURE__*/__assign$3( /*#__PURE__*/__assign$3({}, intelligentTransition), { x: justAxis, y: justAxis });
3505
+ var intelligentDragEnd = /*#__PURE__*/__assign$2( /*#__PURE__*/__assign$2({}, intelligentTransition), { x: justAxis, y: justAxis });
3533
3506
  var defaultTransitions = /*#__PURE__*/new Map([['default', intelligentTransition], ['drag', dragAction], ['dragEnd', intelligentDragEnd]]);
3534
3507
 
3535
3508
  var animationLookup = {
@@ -3624,7 +3597,7 @@ var getAction = function (v, _a, _b) {
3624
3597
  velocity: velocity,
3625
3598
  ease: ease
3626
3599
  } : { ease: ease };
3627
- return animationLookup[type](__assign$3(__assign$3({}, baseProps), def));
3600
+ return animationLookup[type](__assign$2(__assign$2({}, baseProps), def));
3628
3601
  };
3629
3602
  var isAction = function (action$$1) {
3630
3603
  return typeof action$$1.start !== 'undefined';
@@ -4003,7 +3976,7 @@ var convertPositionalUnits = function (state, nextPose) {
4003
3976
  changedPositionalKeys.push(key);
4004
3977
  if (!applyAtEndHasBeenCopied) {
4005
3978
  applyAtEndHasBeenCopied = true;
4006
- nextPose.applyAtEnd = nextPose.applyAtEnd ? __assign$3({}, nextPose.applyAtEnd) : {};
3979
+ nextPose.applyAtEnd = nextPose.applyAtEnd ? __assign$2({}, nextPose.applyAtEnd) : {};
4007
3980
  }
4008
3981
  nextPose.applyAtEnd[key] = nextPose.applyAtEnd[key] || nextPose[key];
4009
3982
  setValue(state, key, to);
@@ -4060,7 +4033,7 @@ var createPoseConfig = function (element, _a) {
4060
4033
  pressable = _a.pressable,
4061
4034
  dragBounds = _a.dragBounds,
4062
4035
  config = __rest$1(_a, ["onDragStart", "onDragEnd", "onPressStart", "onPressEnd", "draggable", "hoverable", "focusable", "pressable", "dragBounds"]);
4063
- var poseConfig = __assign$3(__assign$3({ flip: {} }, config), { props: __assign$3(__assign$3({}, config.props), { onDragStart: onDragStart,
4036
+ var poseConfig = __assign$2(__assign$2({ flip: {} }, config), { props: __assign$2(__assign$2({}, config.props), { onDragStart: onDragStart,
4064
4037
  onDragEnd: onDragEnd,
4065
4038
  onPressStart: onPressStart,
4066
4039
  onPressEnd: onPressEnd,
@@ -4074,8 +4047,8 @@ var createPoseConfig = function (element, _a) {
4074
4047
  var _b = dragPoses(draggable),
4075
4048
  drag = _b.drag,
4076
4049
  dragEnd = _b.dragEnd;
4077
- poseConfig.drag = __assign$3(__assign$3({}, drag), poseConfig.drag);
4078
- poseConfig.dragEnd = __assign$3(__assign$3({}, dragEnd), poseConfig.dragEnd);
4050
+ poseConfig.drag = __assign$2(__assign$2({}, drag), poseConfig.drag);
4051
+ poseConfig.dragEnd = __assign$2(__assign$2({}, dragEnd), poseConfig.dragEnd);
4079
4052
  }
4080
4053
  return poseConfig;
4081
4054
  };
@@ -4121,7 +4094,7 @@ var domPose = /*#__PURE__*/pose({
4121
4094
  var props = _a.props,
4122
4095
  activeActions = _a.activeActions;
4123
4096
  var measure = props.dimensions.measure;
4124
- var poserApi = __assign$3(__assign$3({}, api), { addChild: function (element, childConfig) {
4097
+ var poserApi = __assign$2(__assign$2({}, api), { addChild: function (element, childConfig) {
4125
4098
  return api._addChild(createPoseConfig(element, childConfig), domPose);
4126
4099
  }, measure: measure, flip: function (op) {
4127
4100
  if (op) {
@@ -4191,7 +4164,7 @@ var pickAssign = function (shouldPick, sources) {
4191
4164
  }, {});
4192
4165
  };
4193
4166
 
4194
- var _a$1 = React.createContext({}), PoseParentConsumer = _a$1.Consumer, PoseParentProvider = _a$1.Provider;
4167
+ var _a = React.createContext({}), PoseParentConsumer = _a.Consumer, PoseParentProvider = _a.Provider;
4195
4168
  var calcPopFromFlowStyle = function (el) {
4196
4169
  var offsetTop = el.offsetTop, offsetLeft = el.offsetLeft, offsetWidth = el.offsetWidth, offsetHeight = el.offsetHeight;
4197
4170
  return {
@@ -10061,9 +10034,11 @@ function usePanGesture(_a, ref) {
10061
10034
  onPanEnd && onPanEnd(event, info);
10062
10035
  },
10063
10036
  };
10064
- if (panSession.current !== null) {
10065
- panSession.current.updateHandlers(handlers);
10066
- }
10037
+ React.useEffect(function () {
10038
+ if (panSession.current !== null) {
10039
+ panSession.current.updateHandlers(handlers);
10040
+ }
10041
+ });
10067
10042
  function onPointerDown(event) {
10068
10043
  panSession.current = new PanSession(event, handlers, {
10069
10044
  transformPagePoint: transformPagePoint,
@@ -11104,7 +11079,7 @@ function useForceUpdate() {
11104
11079
 
11105
11080
  var SyncLayoutContext = React.createContext(null);
11106
11081
 
11107
- var _a$2;
11082
+ var _a$1;
11108
11083
  var StepName;
11109
11084
  (function (StepName) {
11110
11085
  StepName["Prepare"] = "prepare";
@@ -11142,12 +11117,12 @@ var createUseSyncEffect = function (stepName) { return function (callback) {
11142
11117
  jobsNeedProcessing = true;
11143
11118
  jobs[stepName].push(callback);
11144
11119
  }; };
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);
11120
+ var layoutSync = (_a$1 = {},
11121
+ _a$1[StepName.Prepare] = createUseSyncEffect(StepName.Prepare),
11122
+ _a$1[StepName.Read] = createUseSyncEffect(StepName.Read),
11123
+ _a$1[StepName.Render] = createUseSyncEffect(StepName.Render),
11124
+ _a$1.flush = flushAllJobs,
11125
+ _a$1);
11151
11126
 
11152
11127
  function isHTMLElement$1(element) {
11153
11128
  return element instanceof HTMLElement;
@@ -13150,10 +13125,7 @@ var PropertiesAddIcon = function PropertiesAddIcon(_ref) {
13150
13125
  return /*#__PURE__*/React__default.createElement("svg", {
13151
13126
  width: 100,
13152
13127
  height: 100,
13153
- viewBox: "0 0 100 100",
13154
- style: {
13155
- paddingLeft: "16px"
13156
- }
13128
+ viewBox: "0 0 84 100"
13157
13129
  }, /*#__PURE__*/React__default.createElement("title", null, "8330C897-662E-49C5-B716-3661563AA1FB@1.00x"), /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("path", {
13158
13130
  id: "prefix__a",
13159
13131
  d: "M0 0h100v100H0z"
@@ -14364,12 +14336,15 @@ var Heading = function Heading(_ref) {
14364
14336
  className = _ref.className,
14365
14337
  _ref$variant = _ref.variant,
14366
14338
  variant = _ref$variant === void 0 ? "h1" : _ref$variant,
14339
+ _ref$as = _ref.as,
14340
+ as = _ref$as === void 0 ? "h1" : _ref$as,
14367
14341
  dataQa = _ref.dataQa,
14368
14342
  children = _ref.children,
14369
- rest = _objectWithoutProperties(_ref, ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "dataQa", "children"]);
14343
+ rest = _objectWithoutProperties(_ref, ["themeValues", "weight", "color", "margin", "textAlign", "extraStyles", "className", "variant", "as", "dataQa", "children"]);
14370
14344
 
14371
14345
  return /*#__PURE__*/React__default.createElement(HeadingText, _extends({
14372
- as: variant,
14346
+ variant: variant,
14347
+ as: as,
14373
14348
  weight: weight,
14374
14349
  color: color,
14375
14350
  margin: margin,
@@ -16289,7 +16264,198 @@ var ButtonWithLink = function ButtonWithLink(_ref) {
16289
16264
  })));
16290
16265
  };
16291
16266
 
16292
- var backgroundColor$1 = {
16267
+ var backgroundColor$1 = WHITE;
16268
+ var iconBackgroundColor = GRECIAN_GREY;
16269
+ var fallbackValues$9 = {
16270
+ backgroundColor: backgroundColor$1,
16271
+ iconBackgroundColor: iconBackgroundColor
16272
+ };
16273
+
16274
+ var MOBILE_WIDTH = 768;
16275
+
16276
+ var throttle = function throttle(delay, fn) {
16277
+ var lastCall = 0;
16278
+ return function () {
16279
+ var now = new Date().getTime();
16280
+
16281
+ if (now - lastCall < delay) {
16282
+ return;
16283
+ }
16284
+
16285
+ lastCall = now;
16286
+ return fn.apply(void 0, arguments);
16287
+ };
16288
+ };
16289
+
16290
+ var withWindowSize = function withWindowSize(Child) {
16291
+ return function (_ref) {
16292
+ var props = _extends({}, _ref);
16293
+
16294
+ var _useState = React.useState({
16295
+ isMobile: window.innerWidth < MOBILE_WIDTH,
16296
+ mobileWidth: MOBILE_WIDTH,
16297
+ supportsTouch: "ontouchstart" in window || navigator.maxTouchPoints > 1
16298
+ }),
16299
+ _useState2 = _slicedToArray(_useState, 2),
16300
+ state = _useState2[0],
16301
+ setState = _useState2[1];
16302
+
16303
+ var isMobileRef = React.useRef(state.isMobile);
16304
+ var onResize = throttle(25, function () {
16305
+ var width = window.innerWidth;
16306
+ var newMobileState = width <= MOBILE_WIDTH;
16307
+
16308
+ if (newMobileState !== isMobileRef.current) {
16309
+ isMobileRef.current = newMobileState;
16310
+ setState({
16311
+ isMobile: width <= MOBILE_WIDTH,
16312
+ mobileWidth: MOBILE_WIDTH,
16313
+ supportsTouch: "ontouchstart" in window || navigator.maxTouchPoints > 1
16314
+ });
16315
+ }
16316
+ });
16317
+ React.useLayoutEffect(function () {
16318
+ window.addEventListener("resize", onResize);
16319
+ return function () {
16320
+ window.removeEventListener("resize", onResize);
16321
+ };
16322
+ }, []);
16323
+ return /*#__PURE__*/React__default.createElement(styled.ThemeProvider, {
16324
+ theme: state
16325
+ }, /*#__PURE__*/React__default.createElement(Child, props));
16326
+ };
16327
+ };
16328
+
16329
+ var CardVariantSwitcher = function CardVariantSwitcher(_ref) {
16330
+ var variant = _ref.variant,
16331
+ children = _ref.children;
16332
+ return variant === "vertical" ? /*#__PURE__*/React__default.createElement(React.Fragment, null, children) : /*#__PURE__*/React__default.createElement(Box, {
16333
+ padding: "0",
16334
+ extraStyles: "width: 100%"
16335
+ }, /*#__PURE__*/React__default.createElement(Stack, {
16336
+ childGap: "0",
16337
+ maxWidth: "100%",
16338
+ fullHeight: true
16339
+ }, children));
16340
+ };
16341
+
16342
+ var Card = function Card(_ref2) {
16343
+ var themeValues = _ref2.themeValues,
16344
+ icon = _ref2.icon,
16345
+ heading = _ref2.heading,
16346
+ text = _ref2.text,
16347
+ _ref2$cardAction = _ref2.cardAction,
16348
+ cardAction = _ref2$cardAction === void 0 ? "/profile" : _ref2$cardAction,
16349
+ buttonText = _ref2.buttonText,
16350
+ _ref2$variant = _ref2.variant,
16351
+ variant = _ref2$variant === void 0 ? "vertical" : _ref2$variant;
16352
+
16353
+ var _useContext = React.useContext(styled.ThemeContext),
16354
+ isMobile = _useContext.isMobile;
16355
+
16356
+ var navigate = reactRouterDom.useNavigate();
16357
+
16358
+ var renderIcon = function renderIcon(icon) {
16359
+ switch (icon) {
16360
+ case "accounts":
16361
+ return /*#__PURE__*/React__default.createElement(AccountsAddIcon$1, null);
16362
+
16363
+ case "properties":
16364
+ return /*#__PURE__*/React__default.createElement(PropertiesAddIcon$1, null);
16365
+
16366
+ case "payment":
16367
+ return /*#__PURE__*/React__default.createElement(PaymentMethodIcon$1, null);
16368
+
16369
+ default:
16370
+ return /*#__PURE__*/React__default.createElement(PaymentMethodIcon$1, null);
16371
+ }
16372
+ };
16373
+
16374
+ return /*#__PURE__*/React__default.createElement(Box, {
16375
+ background: themeValues.backgroundColor,
16376
+ borderRadius: "4px",
16377
+ boxShadow: " 0px 1px 10px 0px rgb(246, 246, 249), 0px 2px 5px 0px rgb(202, 206, 216)",
16378
+ padding: "0",
16379
+ maxWidth: "100%",
16380
+ minHeight: "100%",
16381
+ minWidth: variant !== "vertical" && "300px"
16382
+ }, /*#__PURE__*/React__default.createElement(Cover, {
16383
+ singleChild: true,
16384
+ fillCenter: true
16385
+ }, /*#__PURE__*/React__default.createElement(Stack, {
16386
+ direction: variant === "vertical" ? "column" : "row",
16387
+ justify: variant === "vertical" && "center",
16388
+ fullHeight: true,
16389
+ childGap: "0"
16390
+ }, icon && /*#__PURE__*/React__default.createElement(Box, {
16391
+ padding: "0",
16392
+ background: themeValues.iconBackgroundColor
16393
+ }, /*#__PURE__*/React__default.createElement(Stack, {
16394
+ direction: variant === "vertical" ? "row" : "column",
16395
+ justify: "center",
16396
+ fullHeight: true
16397
+ }, /*#__PURE__*/React__default.createElement(Box, {
16398
+ padding: variant === "vertical" ? "0.5rem 0" : isMobile ? "1rem 1.5rem" : "2rem 2.5rem"
16399
+ }, renderIcon(icon)))), /*#__PURE__*/React__default.createElement(CardVariantSwitcher, {
16400
+ variant: variant
16401
+ }, /*#__PURE__*/React__default.createElement(Box, {
16402
+ padding: "0.5rem 1rem",
16403
+ width: "100%",
16404
+ extraStyles: "flex-grow: 1; width: 100%;"
16405
+ }, /*#__PURE__*/React__default.createElement(Cover, {
16406
+ singleChild: true,
16407
+ fillCenter: true
16408
+ }, /*#__PURE__*/React__default.createElement(Box, {
16409
+ padding: "0"
16410
+ }, /*#__PURE__*/React__default.createElement(Heading$1, {
16411
+ variant: "h6"
16412
+ }, heading), /*#__PURE__*/React__default.createElement(Text$1, {
16413
+ variant: "pS"
16414
+ }, text)))), /*#__PURE__*/React__default.createElement(Box, {
16415
+ padding: "0.5rem 1rem 1rem"
16416
+ }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
16417
+ variant: "smallPrimary",
16418
+ text: buttonText,
16419
+ action: function action() {
16420
+ return navigate(cardAction);
16421
+ },
16422
+ extraStyles: "width: 100%;"
16423
+ }))))));
16424
+ };
16425
+
16426
+ var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$9);
16427
+
16428
+ var cardRegistry = {
16429
+ accounts: function accounts(props) {
16430
+ return /*#__PURE__*/React__default.createElement(Card$1, _extends({
16431
+ icon: "accounts",
16432
+ heading: "Add an Account",
16433
+ buttonText: "Add Account",
16434
+ text: "Add your accounts to this profile to make your payments simple.",
16435
+ cardAction: "/profile/accounts"
16436
+ }, props));
16437
+ },
16438
+ properties: function properties(props) {
16439
+ return /*#__PURE__*/React__default.createElement(Card$1, _extends({
16440
+ icon: "properties",
16441
+ heading: "Add a Property",
16442
+ buttonText: "Add Property",
16443
+ text: "Add a home, car, or other types of personal or business property.",
16444
+ cardAction: "/profile/properties"
16445
+ }, props));
16446
+ },
16447
+ payment: function payment(props) {
16448
+ return /*#__PURE__*/React__default.createElement(Card$1, _extends({
16449
+ icon: "payment",
16450
+ heading: "Add a Payment Method",
16451
+ buttonText: "Add Payment Method",
16452
+ text: "Save cards and/or bank accounts to your profile for fast future payments.",
16453
+ cardAction: "/profile/settings"
16454
+ }, props));
16455
+ }
16456
+ };
16457
+
16458
+ var backgroundColor$2 = {
16293
16459
  "default": "".concat(TRANSPARENT)
16294
16460
  };
16295
16461
  var textFontSize = {
@@ -16325,8 +16491,8 @@ var checkedStyles = {
16325
16491
  var defaultStyles = {
16326
16492
  "default": "\n background: ".concat(WHITE, "; \n border: 1px solid ").concat(GHOST_GREY, ";\n")
16327
16493
  };
16328
- var fallbackValues$9 = {
16329
- backgroundColor: backgroundColor$1,
16494
+ var fallbackValues$a = {
16495
+ backgroundColor: backgroundColor$2,
16330
16496
  textFontSize: textFontSize,
16331
16497
  textFontWeight: textFontWeight,
16332
16498
  textLineHeight: textLineHeight,
@@ -16530,7 +16696,7 @@ var Checkbox = function Checkbox(_ref4) {
16530
16696
  }, title)));
16531
16697
  };
16532
16698
 
16533
- var Checkbox$1 = themeComponent(Checkbox, "Checkbox", fallbackValues$9, "default");
16699
+ var Checkbox$1 = themeComponent(Checkbox, "Checkbox", fallbackValues$a, "default");
16534
16700
 
16535
16701
  var listBackgroundColor = {
16536
16702
  "default": "".concat(ATHENS_GREY),
@@ -16556,7 +16722,7 @@ var radioButtonInactive = {
16556
16722
  "default": "".concat(GHOST_GREY),
16557
16723
  disabled: "".concat(GHOST_GREY)
16558
16724
  };
16559
- var fallbackValues$a = {
16725
+ var fallbackValues$b = {
16560
16726
  listBackgroundColor: listBackgroundColor,
16561
16727
  listItemColor: listItemColor,
16562
16728
  listItemBackgroundColor: listItemBackgroundColor,
@@ -16760,7 +16926,7 @@ var CheckboxList = function CheckboxList(_ref2) {
16760
16926
  })));
16761
16927
  };
16762
16928
 
16763
- var CheckboxList$1 = themeComponent(CheckboxList, "CheckboxList", fallbackValues$a, "default");
16929
+ var CheckboxList$1 = themeComponent(CheckboxList, "CheckboxList", fallbackValues$b, "default");
16764
16930
 
16765
16931
  var DropdownIcon = function DropdownIcon() {
16766
16932
  return /*#__PURE__*/React__default.createElement("svg", {
@@ -16790,7 +16956,7 @@ var DropdownIcon = function DropdownIcon() {
16790
16956
 
16791
16957
  var selectedColor = "".concat(MATISSE_BLUE);
16792
16958
  var hoverColor$3 = "".concat(HOVER_LIGHT_BLUE);
16793
- var fallbackValues$b = {
16959
+ var fallbackValues$c = {
16794
16960
  selectedColor: selectedColor,
16795
16961
  hoverColor: hoverColor$3
16796
16962
  };
@@ -17067,7 +17233,7 @@ var Dropdown = function Dropdown(_ref7) {
17067
17233
  }))) : /*#__PURE__*/React__default.createElement(React.Fragment, null));
17068
17234
  };
17069
17235
 
17070
- var Dropdown$1 = themeComponent(Dropdown, "Dropdown", fallbackValues$b);
17236
+ var Dropdown$1 = themeComponent(Dropdown, "Dropdown", fallbackValues$c);
17071
17237
 
17072
17238
  function _templateObject4$3() {
17073
17239
  var data = _taggedTemplateLiteral([""]);
@@ -17943,10 +18109,10 @@ var CountryDropdown = function CountryDropdown(_ref) {
17943
18109
  });
17944
18110
  };
17945
18111
 
17946
- var backgroundColor$2 = WHITE;
18112
+ var backgroundColor$3 = WHITE;
17947
18113
  var boxShadow = "0px 2px 14px 0px ".concat(ATHENS_GREY, ", 0px 3px 8px 0px ").concat(GHOST_GREY);
17948
- var fallbackValues$c = {
17949
- backgroundColor: backgroundColor$2,
18114
+ var fallbackValues$d = {
18115
+ backgroundColor: backgroundColor$3,
17950
18116
  boxShadow: boxShadow
17951
18117
  };
17952
18118
 
@@ -17966,7 +18132,7 @@ var DisplayBox = function DisplayBox(_ref) {
17966
18132
  }, children));
17967
18133
  };
17968
18134
 
17969
- var DisplayBox$1 = themeComponent(DisplayBox, "DisplayBox", fallbackValues$c);
18135
+ var DisplayBox$1 = themeComponent(DisplayBox, "DisplayBox", fallbackValues$d);
17970
18136
 
17971
18137
  var fontFamily$3 = {
17972
18138
  p: "Public Sans",
@@ -17984,7 +18150,7 @@ var fontSize$4 = {
17984
18150
  pXXS: "0.65rem",
17985
18151
  pXL: "1.5rem"
17986
18152
  };
17987
- var fallbackValues$d = {
18153
+ var fallbackValues$e = {
17988
18154
  fontFamily: fontFamily$3,
17989
18155
  fontSize: fontSize$4
17990
18156
  };
@@ -18043,7 +18209,7 @@ var Paragraph = function Paragraph(_ref) {
18043
18209
  }, rest), safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
18044
18210
  };
18045
18211
 
18046
- var Paragraph$1 = themeComponent(Paragraph, "Paragraph", fallbackValues$d, "p");
18212
+ var Paragraph$1 = themeComponent(Paragraph, "Paragraph", fallbackValues$e, "p");
18047
18213
 
18048
18214
  var DisplayCard = function DisplayCard(_ref) {
18049
18215
  var title = _ref.title,
@@ -18409,8 +18575,8 @@ var color$5 = {
18409
18575
  disabled: "".concat(DUSTY_GREY)
18410
18576
  };
18411
18577
  var labelColor = {
18412
- "default": "".concat(STORM_GREY),
18413
- disabled: "".concat(STORM_GREY)
18578
+ "default": "".concat(FIREFLY_GREY),
18579
+ disabled: "".concat(FIREFLY_GREY)
18414
18580
  };
18415
18581
  var borderColor = {
18416
18582
  "default": "".concat(GREY_CHATEAU),
@@ -18436,7 +18602,7 @@ var hoverFocusStyles = {
18436
18602
  "default": "color: #0E506D; outline: none; text-decoration: underline; ",
18437
18603
  disabled: "color: #6E727E;"
18438
18604
  };
18439
- var fallbackValues$e = {
18605
+ var fallbackValues$f = {
18440
18606
  linkColor: linkColor,
18441
18607
  formBackgroundColor: formBackgroundColor,
18442
18608
  inputBackgroundColor: inputBackgroundColor,
@@ -18663,7 +18829,7 @@ var FormInput = function FormInput(_ref13) {
18663
18829
  }, decorator)));
18664
18830
  };
18665
18831
 
18666
- var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$e, "default");
18832
+ var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$f, "default");
18667
18833
 
18668
18834
  var FormInputRow = function FormInputRow(_ref) {
18669
18835
  var _ref$breakpoint = _ref.breakpoint,
@@ -18698,61 +18864,6 @@ var FormInputColumn = function FormInputColumn(_ref) {
18698
18864
  }, rest), children);
18699
18865
  };
18700
18866
 
18701
- var MOBILE_WIDTH = 768;
18702
-
18703
- var throttle = function throttle(delay, fn) {
18704
- var lastCall = 0;
18705
- return function () {
18706
- var now = new Date().getTime();
18707
-
18708
- if (now - lastCall < delay) {
18709
- return;
18710
- }
18711
-
18712
- lastCall = now;
18713
- return fn.apply(void 0, arguments);
18714
- };
18715
- };
18716
-
18717
- var withWindowSize = function withWindowSize(Child) {
18718
- return function (_ref) {
18719
- var props = _extends({}, _ref);
18720
-
18721
- var _useState = React.useState({
18722
- isMobile: window.innerWidth < MOBILE_WIDTH,
18723
- mobileWidth: MOBILE_WIDTH,
18724
- supportsTouch: "ontouchstart" in window || navigator.maxTouchPoints > 1
18725
- }),
18726
- _useState2 = _slicedToArray(_useState, 2),
18727
- state = _useState2[0],
18728
- setState = _useState2[1];
18729
-
18730
- var isMobileRef = React.useRef(state.isMobile);
18731
- var onResize = throttle(25, function () {
18732
- var width = window.innerWidth;
18733
- var newMobileState = width <= MOBILE_WIDTH;
18734
-
18735
- if (newMobileState !== isMobileRef.current) {
18736
- isMobileRef.current = newMobileState;
18737
- setState({
18738
- isMobile: width <= MOBILE_WIDTH,
18739
- mobileWidth: MOBILE_WIDTH,
18740
- supportsTouch: "ontouchstart" in window || navigator.maxTouchPoints > 1
18741
- });
18742
- }
18743
- });
18744
- React.useLayoutEffect(function () {
18745
- window.addEventListener("resize", onResize);
18746
- return function () {
18747
- window.removeEventListener("resize", onResize);
18748
- };
18749
- }, []);
18750
- return /*#__PURE__*/React__default.createElement(styled.ThemeProvider, {
18751
- theme: state
18752
- }, /*#__PURE__*/React__default.createElement(Child, props));
18753
- };
18754
- };
18755
-
18756
18867
  var FormContainer = function FormContainer(_ref) {
18757
18868
  var themeValues = _ref.themeValues,
18758
18869
  children = _ref.children,
@@ -18768,7 +18879,7 @@ var FormContainer = function FormContainer(_ref) {
18768
18879
  }, rest), children);
18769
18880
  };
18770
18881
 
18771
- var FormContainer$1 = themeComponent(withWindowSize(FormContainer), "FormContainer", fallbackValues$e, "default");
18882
+ var FormContainer$1 = themeComponent(withWindowSize(FormContainer), "FormContainer", fallbackValues$f, "default");
18772
18883
 
18773
18884
  var fontSize$6 = {
18774
18885
  "default": "1rem",
@@ -18782,7 +18893,7 @@ var color$6 = {
18782
18893
  "default": "".concat(CHARADE_GREY),
18783
18894
  radio: "".concat(MINESHAFT_GREY)
18784
18895
  };
18785
- var fallbackValues$f = {
18896
+ var fallbackValues$g = {
18786
18897
  fontSize: fontSize$6,
18787
18898
  padding: padding$1,
18788
18899
  color: color$6
@@ -18825,11 +18936,11 @@ var FormattedAddress = function FormattedAddress(_ref) {
18825
18936
  }, city, ", ", stateProvince, " ".concat(zip), country ? " ".concat(country) : "")));
18826
18937
  };
18827
18938
 
18828
- var FormattedAddress$1 = themeComponent(FormattedAddress, "FormattedAddress", fallbackValues$f, "default");
18939
+ var FormattedAddress$1 = themeComponent(FormattedAddress, "FormattedAddress", fallbackValues$g, "default");
18829
18940
 
18830
18941
  var textColor$1 = "".concat(CHARADE_GREY);
18831
18942
  var autopayTextColor = "".concat(REGENT_GREY);
18832
- var fallbackValues$g = {
18943
+ var fallbackValues$h = {
18833
18944
  textColor: textColor$1,
18834
18945
  autopayTextColor: autopayTextColor
18835
18946
  };
@@ -18882,7 +18993,7 @@ var FormattedCreditCard = function FormattedCreditCard(_ref) {
18882
18993
  }, "Autopay Enabled")));
18883
18994
  };
18884
18995
 
18885
- var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$g, "default");
18996
+ var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$h, "default");
18886
18997
 
18887
18998
  function _templateObject3$8() {
18888
18999
  var data = _taggedTemplateLiteral(["\n display: block;\n top: auto;\n bottom: 6px;\n left: 2px;\n transition-duration: 0.13s;\n transition-delay: 0.13s;\n transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);\n margin-top: 12px;\n background-color: ", ";\n\n &, &::before, &::after {\n background-color: ", ";\n width: 30px;\n height: 3px;\n position: absolute;\n transition-property: transform;\n transition-duration: 0.15s;\n transition-timing-function: ease;\n }\n\n &::before, &::after {\n content: \"\";\n display: block;\n }\n\n &::before {\n top: -10px;\n transition: top 0.12s 0.2s cubic-bezier(0.33333, 0.66667, 0.66667, 1), \n transform 0.13s cubic-bezier(0.55, 0.055, 0.675, 0.19);\n }\n\n &::after {\n bottom: -10px;\n top: -20px;\n transition: top 0.2s 0.2s cubic-bezier(0.33333, 0.66667, 0.66667, 1), \n opacity 0.1s linear;\n }\n\n &.active, &.active::before, &.active::after {\n background-color: ", ";\n }\n\n &.active {\n transform: translate3d(0, -10px, 0) rotate(-45deg);\n transition-delay: 0.22s;\n transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n\n &.active::after {\n top: 0;\n opacity: 0;\n transition: top 0.2s cubic-bezier(0.33333, 0, 0.66667, 0.33333), \n opacity: 0.1s 0.22s linear;\n }\n\n &.active::before {\n top: 0;\n transform: rotate(-90deg);\n transition: top 0.1s 0.16s cubic-bezier(0.33333, 0, 0.66667, 0.33333), \n transform 0.13s 0.25s cubic-bezier(0.215, 0.61, 0.355, 1);\n }\n"]);
@@ -19005,7 +19116,7 @@ var fontWeight$3 = {
19005
19116
  pL: "600",
19006
19117
  h6: "700"
19007
19118
  };
19008
- var fallbackValues$h = {
19119
+ var fallbackValues$i = {
19009
19120
  fontWeight: fontWeight$3
19010
19121
  };
19011
19122
 
@@ -19014,22 +19125,25 @@ var LabeledAmount = function LabeledAmount(_ref) {
19014
19125
  variant = _ref$variant === void 0 ? "pL" : _ref$variant,
19015
19126
  label = _ref.label,
19016
19127
  amount = _ref.amount,
19017
- themeValues = _ref.themeValues;
19128
+ themeValues = _ref.themeValues,
19129
+ as = _ref.as;
19018
19130
  var LabeledAmountText = variant === "h6" ? Heading$1 : Paragraph$1;
19019
19131
  return /*#__PURE__*/React__default.createElement(Stack, {
19020
19132
  direction: "row"
19021
19133
  }, /*#__PURE__*/React__default.createElement(LabeledAmountText, {
19022
19134
  variant: variant,
19135
+ as: as,
19023
19136
  weight: themeValues.fontWeight,
19024
19137
  extraStyles: "text-align: start; flex: 3;"
19025
19138
  }, label, ":"), /*#__PURE__*/React__default.createElement(LabeledAmountText, {
19026
19139
  variant: variant,
19140
+ as: as,
19027
19141
  weight: themeValues.fontWeight,
19028
19142
  extraStyles: "text-align: end; flex: 1;"
19029
19143
  }, amount));
19030
19144
  };
19031
19145
 
19032
- var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$h, "default");
19146
+ var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$i, "default");
19033
19147
 
19034
19148
  var weightTitle = {
19035
19149
  "default": "600",
@@ -19039,7 +19153,7 @@ var paragraphVariant = {
19039
19153
  "default": "pL",
19040
19154
  small: "p"
19041
19155
  };
19042
- var fallbackValues$i = {
19156
+ var fallbackValues$j = {
19043
19157
  weightTitle: weightTitle,
19044
19158
  paragraphVariant: paragraphVariant
19045
19159
  };
@@ -19068,10 +19182,10 @@ var LineItem = function LineItem(_ref) {
19068
19182
  }, amount));
19069
19183
  };
19070
19184
 
19071
- var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$i, "default");
19185
+ var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$j, "default");
19072
19186
 
19073
19187
  var color$7 = "#15749D";
19074
- var fallbackValues$j = {
19188
+ var fallbackValues$k = {
19075
19189
  color: color$7
19076
19190
  };
19077
19191
 
@@ -19123,7 +19237,7 @@ var Spinner$1 = function Spinner(_ref4) {
19123
19237
  })));
19124
19238
  };
19125
19239
 
19126
- var Spinner$2 = themeComponent(Spinner$1, "Spinner", fallbackValues$j);
19240
+ var Spinner$2 = themeComponent(Spinner$1, "Spinner", fallbackValues$k);
19127
19241
 
19128
19242
  var Loading = function Loading() {
19129
19243
  return /*#__PURE__*/React__default.createElement(Box, {
@@ -19537,6 +19651,818 @@ var PasswordRequirements = function PasswordRequirements(_ref) {
19537
19651
  }))));
19538
19652
  };
19539
19653
 
19654
+ function _extends$1() {
19655
+ _extends$1 = Object.assign || function (target) {
19656
+ for (var i = 1; i < arguments.length; i++) {
19657
+ var source = arguments[i];
19658
+
19659
+ for (var key in source) {
19660
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
19661
+ target[key] = source[key];
19662
+ }
19663
+ }
19664
+ }
19665
+
19666
+ return target;
19667
+ };
19668
+
19669
+ return _extends$1.apply(this, arguments);
19670
+ }
19671
+
19672
+ function _assertThisInitialized(self) {
19673
+ if (self === void 0) {
19674
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
19675
+ }
19676
+
19677
+ return self;
19678
+ }
19679
+
19680
+ function _inheritsLoose(subClass, superClass) {
19681
+ subClass.prototype = Object.create(superClass.prototype);
19682
+ subClass.prototype.constructor = subClass;
19683
+ subClass.__proto__ = superClass;
19684
+ }
19685
+
19686
+ function _getPrototypeOf(o) {
19687
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
19688
+ return o.__proto__ || Object.getPrototypeOf(o);
19689
+ };
19690
+ return _getPrototypeOf(o);
19691
+ }
19692
+
19693
+ function _setPrototypeOf(o, p) {
19694
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
19695
+ o.__proto__ = p;
19696
+ return o;
19697
+ };
19698
+
19699
+ return _setPrototypeOf(o, p);
19700
+ }
19701
+
19702
+ function _isNativeFunction(fn) {
19703
+ return Function.toString.call(fn).indexOf("[native code]") !== -1;
19704
+ }
19705
+
19706
+ function _isNativeReflectConstruct() {
19707
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
19708
+ if (Reflect.construct.sham) return false;
19709
+ if (typeof Proxy === "function") return true;
19710
+
19711
+ try {
19712
+ Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
19713
+ return true;
19714
+ } catch (e) {
19715
+ return false;
19716
+ }
19717
+ }
19718
+
19719
+ function _construct(Parent, args, Class) {
19720
+ if (_isNativeReflectConstruct()) {
19721
+ _construct = Reflect.construct;
19722
+ } else {
19723
+ _construct = function _construct(Parent, args, Class) {
19724
+ var a = [null];
19725
+ a.push.apply(a, args);
19726
+ var Constructor = Function.bind.apply(Parent, a);
19727
+ var instance = new Constructor();
19728
+ if (Class) _setPrototypeOf(instance, Class.prototype);
19729
+ return instance;
19730
+ };
19731
+ }
19732
+
19733
+ return _construct.apply(null, arguments);
19734
+ }
19735
+
19736
+ function _wrapNativeSuper(Class) {
19737
+ var _cache = typeof Map === "function" ? new Map() : undefined;
19738
+
19739
+ _wrapNativeSuper = function _wrapNativeSuper(Class) {
19740
+ if (Class === null || !_isNativeFunction(Class)) return Class;
19741
+
19742
+ if (typeof Class !== "function") {
19743
+ throw new TypeError("Super expression must either be null or a function");
19744
+ }
19745
+
19746
+ if (typeof _cache !== "undefined") {
19747
+ if (_cache.has(Class)) return _cache.get(Class);
19748
+
19749
+ _cache.set(Class, Wrapper);
19750
+ }
19751
+
19752
+ function Wrapper() {
19753
+ return _construct(Class, arguments, _getPrototypeOf(this).constructor);
19754
+ }
19755
+
19756
+ Wrapper.prototype = Object.create(Class.prototype, {
19757
+ constructor: {
19758
+ value: Wrapper,
19759
+ enumerable: false,
19760
+ writable: true,
19761
+ configurable: true
19762
+ }
19763
+ });
19764
+ return _setPrototypeOf(Wrapper, Class);
19765
+ };
19766
+
19767
+ return _wrapNativeSuper(Class);
19768
+ }
19769
+
19770
+ // based on https://github.com/styled-components/styled-components/blob/fcf6f3804c57a14dd7984dfab7bc06ee2edca044/src/utils/error.js
19771
+
19772
+ /**
19773
+ * Parse errors.md and turn it into a simple hash of code: message
19774
+ * @private
19775
+ */
19776
+ var ERRORS = {
19777
+ "1": "Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\n\n",
19778
+ "2": "Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n",
19779
+ "3": "Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n",
19780
+ "4": "Couldn't generate valid rgb string from %s, it returned %s.\n\n",
19781
+ "5": "Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\n\n",
19782
+ "6": "Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).\n\n",
19783
+ "7": "Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).\n\n",
19784
+ "8": "Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\n\n",
19785
+ "9": "Please provide a number of steps to the modularScale helper.\n\n",
19786
+ "10": "Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",
19787
+ "11": "Invalid value passed as base to modularScale, expected number or em string but got \"%s\"\n\n",
19788
+ "12": "Expected a string ending in \"px\" or a number passed as the first argument to %s(), got \"%s\" instead.\n\n",
19789
+ "13": "Expected a string ending in \"px\" or a number passed as the second argument to %s(), got \"%s\" instead.\n\n",
19790
+ "14": "Passed invalid pixel value (\"%s\") to %s(), please pass a value like \"12px\" or 12.\n\n",
19791
+ "15": "Passed invalid base value (\"%s\") to %s(), please pass a value like \"12px\" or 12.\n\n",
19792
+ "16": "You must provide a template to this method.\n\n",
19793
+ "17": "You passed an unsupported selector state to this method.\n\n",
19794
+ "18": "minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",
19795
+ "19": "fromSize and toSize must be provided as stringified numbers with the same units.\n\n",
19796
+ "20": "expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",
19797
+ "21": "expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",
19798
+ "22": "expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",
19799
+ "23": "fontFace expects a name of a font-family.\n\n",
19800
+ "24": "fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",
19801
+ "25": "fontFace expects localFonts to be an array.\n\n",
19802
+ "26": "fontFace expects fileFormats to be an array.\n\n",
19803
+ "27": "radialGradient requries at least 2 color-stops to properly render.\n\n",
19804
+ "28": "Please supply a filename to retinaImage() as the first argument.\n\n",
19805
+ "29": "Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",
19806
+ "30": "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",
19807
+ "31": "The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\n\n",
19808
+ "32": "To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')\n\n",
19809
+ "33": "The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\n\n",
19810
+ "34": "borderRadius expects a radius value as a string or number as the second argument.\n\n",
19811
+ "35": "borderRadius expects one of \"top\", \"bottom\", \"left\" or \"right\" as the first argument.\n\n",
19812
+ "36": "Property must be a string value.\n\n",
19813
+ "37": "Syntax Error at %s.\n\n",
19814
+ "38": "Formula contains a function that needs parentheses at %s.\n\n",
19815
+ "39": "Formula is missing closing parenthesis at %s.\n\n",
19816
+ "40": "Formula has too many closing parentheses at %s.\n\n",
19817
+ "41": "All values in a formula must have the same unit or be unitless.\n\n",
19818
+ "42": "Please provide a number of steps to the modularScale helper.\n\n",
19819
+ "43": "Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",
19820
+ "44": "Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\n\n",
19821
+ "45": "Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\n\n",
19822
+ "46": "Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\n\n",
19823
+ "47": "minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",
19824
+ "48": "fromSize and toSize must be provided as stringified numbers with the same units.\n\n",
19825
+ "49": "Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",
19826
+ "50": "Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\n\n",
19827
+ "51": "Expects the first argument object to have the properties prop, fromSize, and toSize.\n\n",
19828
+ "52": "fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",
19829
+ "53": "fontFace expects localFonts to be an array.\n\n",
19830
+ "54": "fontFace expects fileFormats to be an array.\n\n",
19831
+ "55": "fontFace expects a name of a font-family.\n\n",
19832
+ "56": "linearGradient requries at least 2 color-stops to properly render.\n\n",
19833
+ "57": "radialGradient requries at least 2 color-stops to properly render.\n\n",
19834
+ "58": "Please supply a filename to retinaImage() as the first argument.\n\n",
19835
+ "59": "Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",
19836
+ "60": "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",
19837
+ "61": "Property must be a string value.\n\n",
19838
+ "62": "borderRadius expects a radius value as a string or number as the second argument.\n\n",
19839
+ "63": "borderRadius expects one of \"top\", \"bottom\", \"left\" or \"right\" as the first argument.\n\n",
19840
+ "64": "The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\n\n",
19841
+ "65": "To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').\n\n",
19842
+ "66": "The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\n\n",
19843
+ "67": "You must provide a template to this method.\n\n",
19844
+ "68": "You passed an unsupported selector state to this method.\n\n",
19845
+ "69": "Expected a string ending in \"px\" or a number passed as the first argument to %s(), got %s instead.\n\n",
19846
+ "70": "Expected a string ending in \"px\" or a number passed as the second argument to %s(), got %s instead.\n\n",
19847
+ "71": "Passed invalid pixel value %s to %s(), please pass a value like \"12px\" or 12.\n\n",
19848
+ "72": "Passed invalid base value %s to %s(), please pass a value like \"12px\" or 12.\n\n",
19849
+ "73": "Please provide a valid CSS variable.\n\n",
19850
+ "74": "CSS variable not found and no default was provided.\n\n",
19851
+ "75": "important requires a valid style object, got a %s instead.\n\n",
19852
+ "76": "fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n"
19853
+ };
19854
+ /**
19855
+ * super basic version of sprintf
19856
+ * @private
19857
+ */
19858
+
19859
+ function format() {
19860
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
19861
+ args[_key] = arguments[_key];
19862
+ }
19863
+
19864
+ var a = args[0];
19865
+ var b = [];
19866
+ var c;
19867
+
19868
+ for (c = 1; c < args.length; c += 1) {
19869
+ b.push(args[c]);
19870
+ }
19871
+
19872
+ b.forEach(function (d) {
19873
+ a = a.replace(/%[a-z]/, d);
19874
+ });
19875
+ return a;
19876
+ }
19877
+ /**
19878
+ * Create an error file out of errors.md for development and a simple web link to the full errors
19879
+ * in production mode.
19880
+ * @private
19881
+ */
19882
+
19883
+
19884
+ var PolishedError = /*#__PURE__*/function (_Error) {
19885
+ _inheritsLoose(PolishedError, _Error);
19886
+
19887
+ function PolishedError(code) {
19888
+ var _this;
19889
+
19890
+ if (process.env.NODE_ENV === 'production') {
19891
+ _this = _Error.call(this, "An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#" + code + " for more information.") || this;
19892
+ } else {
19893
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
19894
+ args[_key2 - 1] = arguments[_key2];
19895
+ }
19896
+
19897
+ _this = _Error.call(this, format.apply(void 0, [ERRORS[code]].concat(args))) || this;
19898
+ }
19899
+
19900
+ return _assertThisInitialized(_this);
19901
+ }
19902
+
19903
+ return PolishedError;
19904
+ }( /*#__PURE__*/_wrapNativeSuper(Error));
19905
+
19906
+ function colorToInt(color) {
19907
+ return Math.round(color * 255);
19908
+ }
19909
+
19910
+ function convertToInt(red, green, blue) {
19911
+ return colorToInt(red) + "," + colorToInt(green) + "," + colorToInt(blue);
19912
+ }
19913
+
19914
+ function hslToRgb(hue, saturation, lightness, convert) {
19915
+ if (convert === void 0) {
19916
+ convert = convertToInt;
19917
+ }
19918
+
19919
+ if (saturation === 0) {
19920
+ // achromatic
19921
+ return convert(lightness, lightness, lightness);
19922
+ } // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV
19923
+
19924
+
19925
+ var huePrime = (hue % 360 + 360) % 360 / 60;
19926
+ var chroma = (1 - Math.abs(2 * lightness - 1)) * saturation;
19927
+ var secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));
19928
+ var red = 0;
19929
+ var green = 0;
19930
+ var blue = 0;
19931
+
19932
+ if (huePrime >= 0 && huePrime < 1) {
19933
+ red = chroma;
19934
+ green = secondComponent;
19935
+ } else if (huePrime >= 1 && huePrime < 2) {
19936
+ red = secondComponent;
19937
+ green = chroma;
19938
+ } else if (huePrime >= 2 && huePrime < 3) {
19939
+ green = chroma;
19940
+ blue = secondComponent;
19941
+ } else if (huePrime >= 3 && huePrime < 4) {
19942
+ green = secondComponent;
19943
+ blue = chroma;
19944
+ } else if (huePrime >= 4 && huePrime < 5) {
19945
+ red = secondComponent;
19946
+ blue = chroma;
19947
+ } else if (huePrime >= 5 && huePrime < 6) {
19948
+ red = chroma;
19949
+ blue = secondComponent;
19950
+ }
19951
+
19952
+ var lightnessModification = lightness - chroma / 2;
19953
+ var finalRed = red + lightnessModification;
19954
+ var finalGreen = green + lightnessModification;
19955
+ var finalBlue = blue + lightnessModification;
19956
+ return convert(finalRed, finalGreen, finalBlue);
19957
+ }
19958
+
19959
+ var namedColorMap = {
19960
+ aliceblue: 'f0f8ff',
19961
+ antiquewhite: 'faebd7',
19962
+ aqua: '00ffff',
19963
+ aquamarine: '7fffd4',
19964
+ azure: 'f0ffff',
19965
+ beige: 'f5f5dc',
19966
+ bisque: 'ffe4c4',
19967
+ black: '000',
19968
+ blanchedalmond: 'ffebcd',
19969
+ blue: '0000ff',
19970
+ blueviolet: '8a2be2',
19971
+ brown: 'a52a2a',
19972
+ burlywood: 'deb887',
19973
+ cadetblue: '5f9ea0',
19974
+ chartreuse: '7fff00',
19975
+ chocolate: 'd2691e',
19976
+ coral: 'ff7f50',
19977
+ cornflowerblue: '6495ed',
19978
+ cornsilk: 'fff8dc',
19979
+ crimson: 'dc143c',
19980
+ cyan: '00ffff',
19981
+ darkblue: '00008b',
19982
+ darkcyan: '008b8b',
19983
+ darkgoldenrod: 'b8860b',
19984
+ darkgray: 'a9a9a9',
19985
+ darkgreen: '006400',
19986
+ darkgrey: 'a9a9a9',
19987
+ darkkhaki: 'bdb76b',
19988
+ darkmagenta: '8b008b',
19989
+ darkolivegreen: '556b2f',
19990
+ darkorange: 'ff8c00',
19991
+ darkorchid: '9932cc',
19992
+ darkred: '8b0000',
19993
+ darksalmon: 'e9967a',
19994
+ darkseagreen: '8fbc8f',
19995
+ darkslateblue: '483d8b',
19996
+ darkslategray: '2f4f4f',
19997
+ darkslategrey: '2f4f4f',
19998
+ darkturquoise: '00ced1',
19999
+ darkviolet: '9400d3',
20000
+ deeppink: 'ff1493',
20001
+ deepskyblue: '00bfff',
20002
+ dimgray: '696969',
20003
+ dimgrey: '696969',
20004
+ dodgerblue: '1e90ff',
20005
+ firebrick: 'b22222',
20006
+ floralwhite: 'fffaf0',
20007
+ forestgreen: '228b22',
20008
+ fuchsia: 'ff00ff',
20009
+ gainsboro: 'dcdcdc',
20010
+ ghostwhite: 'f8f8ff',
20011
+ gold: 'ffd700',
20012
+ goldenrod: 'daa520',
20013
+ gray: '808080',
20014
+ green: '008000',
20015
+ greenyellow: 'adff2f',
20016
+ grey: '808080',
20017
+ honeydew: 'f0fff0',
20018
+ hotpink: 'ff69b4',
20019
+ indianred: 'cd5c5c',
20020
+ indigo: '4b0082',
20021
+ ivory: 'fffff0',
20022
+ khaki: 'f0e68c',
20023
+ lavender: 'e6e6fa',
20024
+ lavenderblush: 'fff0f5',
20025
+ lawngreen: '7cfc00',
20026
+ lemonchiffon: 'fffacd',
20027
+ lightblue: 'add8e6',
20028
+ lightcoral: 'f08080',
20029
+ lightcyan: 'e0ffff',
20030
+ lightgoldenrodyellow: 'fafad2',
20031
+ lightgray: 'd3d3d3',
20032
+ lightgreen: '90ee90',
20033
+ lightgrey: 'd3d3d3',
20034
+ lightpink: 'ffb6c1',
20035
+ lightsalmon: 'ffa07a',
20036
+ lightseagreen: '20b2aa',
20037
+ lightskyblue: '87cefa',
20038
+ lightslategray: '789',
20039
+ lightslategrey: '789',
20040
+ lightsteelblue: 'b0c4de',
20041
+ lightyellow: 'ffffe0',
20042
+ lime: '0f0',
20043
+ limegreen: '32cd32',
20044
+ linen: 'faf0e6',
20045
+ magenta: 'f0f',
20046
+ maroon: '800000',
20047
+ mediumaquamarine: '66cdaa',
20048
+ mediumblue: '0000cd',
20049
+ mediumorchid: 'ba55d3',
20050
+ mediumpurple: '9370db',
20051
+ mediumseagreen: '3cb371',
20052
+ mediumslateblue: '7b68ee',
20053
+ mediumspringgreen: '00fa9a',
20054
+ mediumturquoise: '48d1cc',
20055
+ mediumvioletred: 'c71585',
20056
+ midnightblue: '191970',
20057
+ mintcream: 'f5fffa',
20058
+ mistyrose: 'ffe4e1',
20059
+ moccasin: 'ffe4b5',
20060
+ navajowhite: 'ffdead',
20061
+ navy: '000080',
20062
+ oldlace: 'fdf5e6',
20063
+ olive: '808000',
20064
+ olivedrab: '6b8e23',
20065
+ orange: 'ffa500',
20066
+ orangered: 'ff4500',
20067
+ orchid: 'da70d6',
20068
+ palegoldenrod: 'eee8aa',
20069
+ palegreen: '98fb98',
20070
+ paleturquoise: 'afeeee',
20071
+ palevioletred: 'db7093',
20072
+ papayawhip: 'ffefd5',
20073
+ peachpuff: 'ffdab9',
20074
+ peru: 'cd853f',
20075
+ pink: 'ffc0cb',
20076
+ plum: 'dda0dd',
20077
+ powderblue: 'b0e0e6',
20078
+ purple: '800080',
20079
+ rebeccapurple: '639',
20080
+ red: 'f00',
20081
+ rosybrown: 'bc8f8f',
20082
+ royalblue: '4169e1',
20083
+ saddlebrown: '8b4513',
20084
+ salmon: 'fa8072',
20085
+ sandybrown: 'f4a460',
20086
+ seagreen: '2e8b57',
20087
+ seashell: 'fff5ee',
20088
+ sienna: 'a0522d',
20089
+ silver: 'c0c0c0',
20090
+ skyblue: '87ceeb',
20091
+ slateblue: '6a5acd',
20092
+ slategray: '708090',
20093
+ slategrey: '708090',
20094
+ snow: 'fffafa',
20095
+ springgreen: '00ff7f',
20096
+ steelblue: '4682b4',
20097
+ tan: 'd2b48c',
20098
+ teal: '008080',
20099
+ thistle: 'd8bfd8',
20100
+ tomato: 'ff6347',
20101
+ turquoise: '40e0d0',
20102
+ violet: 'ee82ee',
20103
+ wheat: 'f5deb3',
20104
+ white: 'fff',
20105
+ whitesmoke: 'f5f5f5',
20106
+ yellow: 'ff0',
20107
+ yellowgreen: '9acd32'
20108
+ };
20109
+ /**
20110
+ * Checks if a string is a CSS named color and returns its equivalent hex value, otherwise returns the original color.
20111
+ * @private
20112
+ */
20113
+
20114
+ function nameToHex(color) {
20115
+ if (typeof color !== 'string') return color;
20116
+ var normalizedColorName = color.toLowerCase();
20117
+ return namedColorMap[normalizedColorName] ? "#" + namedColorMap[normalizedColorName] : color;
20118
+ }
20119
+
20120
+ var hexRegex = /^#[a-fA-F0-9]{6}$/;
20121
+ var hexRgbaRegex = /^#[a-fA-F0-9]{8}$/;
20122
+ var reducedHexRegex = /^#[a-fA-F0-9]{3}$/;
20123
+ var reducedRgbaHexRegex = /^#[a-fA-F0-9]{4}$/;
20124
+ var rgbRegex = /^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i;
20125
+ var rgbaRegex = /^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;
20126
+ var hslRegex = /^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i;
20127
+ var hslaRegex = /^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;
20128
+ /**
20129
+ * Returns an RgbColor or RgbaColor object. This utility function is only useful
20130
+ * if want to extract a color component. With the color util `toColorString` you
20131
+ * can convert a RgbColor or RgbaColor object back to a string.
20132
+ *
20133
+ * @example
20134
+ * // Assigns `{ red: 255, green: 0, blue: 0 }` to color1
20135
+ * const color1 = parseToRgb('rgb(255, 0, 0)');
20136
+ * // Assigns `{ red: 92, green: 102, blue: 112, alpha: 0.75 }` to color2
20137
+ * const color2 = parseToRgb('hsla(210, 10%, 40%, 0.75)');
20138
+ */
20139
+
20140
+ function parseToRgb(color) {
20141
+ if (typeof color !== 'string') {
20142
+ throw new PolishedError(3);
20143
+ }
20144
+
20145
+ var normalizedColor = nameToHex(color);
20146
+
20147
+ if (normalizedColor.match(hexRegex)) {
20148
+ return {
20149
+ red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
20150
+ green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16),
20151
+ blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16)
20152
+ };
20153
+ }
20154
+
20155
+ if (normalizedColor.match(hexRgbaRegex)) {
20156
+ var alpha = parseFloat((parseInt("" + normalizedColor[7] + normalizedColor[8], 16) / 255).toFixed(2));
20157
+ return {
20158
+ red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
20159
+ green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16),
20160
+ blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16),
20161
+ alpha: alpha
20162
+ };
20163
+ }
20164
+
20165
+ if (normalizedColor.match(reducedHexRegex)) {
20166
+ return {
20167
+ red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
20168
+ green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16),
20169
+ blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16)
20170
+ };
20171
+ }
20172
+
20173
+ if (normalizedColor.match(reducedRgbaHexRegex)) {
20174
+ var _alpha = parseFloat((parseInt("" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2));
20175
+
20176
+ return {
20177
+ red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
20178
+ green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16),
20179
+ blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16),
20180
+ alpha: _alpha
20181
+ };
20182
+ }
20183
+
20184
+ var rgbMatched = rgbRegex.exec(normalizedColor);
20185
+
20186
+ if (rgbMatched) {
20187
+ return {
20188
+ red: parseInt("" + rgbMatched[1], 10),
20189
+ green: parseInt("" + rgbMatched[2], 10),
20190
+ blue: parseInt("" + rgbMatched[3], 10)
20191
+ };
20192
+ }
20193
+
20194
+ var rgbaMatched = rgbaRegex.exec(normalizedColor);
20195
+
20196
+ if (rgbaMatched) {
20197
+ return {
20198
+ red: parseInt("" + rgbaMatched[1], 10),
20199
+ green: parseInt("" + rgbaMatched[2], 10),
20200
+ blue: parseInt("" + rgbaMatched[3], 10),
20201
+ alpha: parseFloat("" + rgbaMatched[4])
20202
+ };
20203
+ }
20204
+
20205
+ var hslMatched = hslRegex.exec(normalizedColor);
20206
+
20207
+ if (hslMatched) {
20208
+ var hue = parseInt("" + hslMatched[1], 10);
20209
+ var saturation = parseInt("" + hslMatched[2], 10) / 100;
20210
+ var lightness = parseInt("" + hslMatched[3], 10) / 100;
20211
+ var rgbColorString = "rgb(" + hslToRgb(hue, saturation, lightness) + ")";
20212
+ var hslRgbMatched = rgbRegex.exec(rgbColorString);
20213
+
20214
+ if (!hslRgbMatched) {
20215
+ throw new PolishedError(4, normalizedColor, rgbColorString);
20216
+ }
20217
+
20218
+ return {
20219
+ red: parseInt("" + hslRgbMatched[1], 10),
20220
+ green: parseInt("" + hslRgbMatched[2], 10),
20221
+ blue: parseInt("" + hslRgbMatched[3], 10)
20222
+ };
20223
+ }
20224
+
20225
+ var hslaMatched = hslaRegex.exec(normalizedColor);
20226
+
20227
+ if (hslaMatched) {
20228
+ var _hue = parseInt("" + hslaMatched[1], 10);
20229
+
20230
+ var _saturation = parseInt("" + hslaMatched[2], 10) / 100;
20231
+
20232
+ var _lightness = parseInt("" + hslaMatched[3], 10) / 100;
20233
+
20234
+ var _rgbColorString = "rgb(" + hslToRgb(_hue, _saturation, _lightness) + ")";
20235
+
20236
+ var _hslRgbMatched = rgbRegex.exec(_rgbColorString);
20237
+
20238
+ if (!_hslRgbMatched) {
20239
+ throw new PolishedError(4, normalizedColor, _rgbColorString);
20240
+ }
20241
+
20242
+ return {
20243
+ red: parseInt("" + _hslRgbMatched[1], 10),
20244
+ green: parseInt("" + _hslRgbMatched[2], 10),
20245
+ blue: parseInt("" + _hslRgbMatched[3], 10),
20246
+ alpha: parseFloat("" + hslaMatched[4])
20247
+ };
20248
+ }
20249
+
20250
+ throw new PolishedError(5);
20251
+ }
20252
+
20253
+ /**
20254
+ * Reduces hex values if possible e.g. #ff8866 to #f86
20255
+ * @private
20256
+ */
20257
+ var reduceHexValue = function reduceHexValue(value) {
20258
+ if (value.length === 7 && value[1] === value[2] && value[3] === value[4] && value[5] === value[6]) {
20259
+ return "#" + value[1] + value[3] + value[5];
20260
+ }
20261
+
20262
+ return value;
20263
+ };
20264
+
20265
+ function numberToHex(value) {
20266
+ var hex = value.toString(16);
20267
+ return hex.length === 1 ? "0" + hex : hex;
20268
+ }
20269
+
20270
+ /**
20271
+ * Returns a string value for the color. The returned result is the smallest possible hex notation.
20272
+ *
20273
+ * @example
20274
+ * // Styles as object usage
20275
+ * const styles = {
20276
+ * background: rgb(255, 205, 100),
20277
+ * background: rgb({ red: 255, green: 205, blue: 100 }),
20278
+ * }
20279
+ *
20280
+ * // styled-components usage
20281
+ * const div = styled.div`
20282
+ * background: ${rgb(255, 205, 100)};
20283
+ * background: ${rgb({ red: 255, green: 205, blue: 100 })};
20284
+ * `
20285
+ *
20286
+ * // CSS in JS Output
20287
+ *
20288
+ * element {
20289
+ * background: "#ffcd64";
20290
+ * background: "#ffcd64";
20291
+ * }
20292
+ */
20293
+ function rgb(value, green, blue) {
20294
+ if (typeof value === 'number' && typeof green === 'number' && typeof blue === 'number') {
20295
+ return reduceHexValue("#" + numberToHex(value) + numberToHex(green) + numberToHex(blue));
20296
+ } else if (typeof value === 'object' && green === undefined && blue === undefined) {
20297
+ return reduceHexValue("#" + numberToHex(value.red) + numberToHex(value.green) + numberToHex(value.blue));
20298
+ }
20299
+
20300
+ throw new PolishedError(6);
20301
+ }
20302
+
20303
+ /**
20304
+ * Returns a string value for the color. The returned result is the smallest possible rgba or hex notation.
20305
+ *
20306
+ * Can also be used to fade a color by passing a hex value or named CSS color along with an alpha value.
20307
+ *
20308
+ * @example
20309
+ * // Styles as object usage
20310
+ * const styles = {
20311
+ * background: rgba(255, 205, 100, 0.7),
20312
+ * background: rgba({ red: 255, green: 205, blue: 100, alpha: 0.7 }),
20313
+ * background: rgba(255, 205, 100, 1),
20314
+ * background: rgba('#ffffff', 0.4),
20315
+ * background: rgba('black', 0.7),
20316
+ * }
20317
+ *
20318
+ * // styled-components usage
20319
+ * const div = styled.div`
20320
+ * background: ${rgba(255, 205, 100, 0.7)};
20321
+ * background: ${rgba({ red: 255, green: 205, blue: 100, alpha: 0.7 })};
20322
+ * background: ${rgba(255, 205, 100, 1)};
20323
+ * background: ${rgba('#ffffff', 0.4)};
20324
+ * background: ${rgba('black', 0.7)};
20325
+ * `
20326
+ *
20327
+ * // CSS in JS Output
20328
+ *
20329
+ * element {
20330
+ * background: "rgba(255,205,100,0.7)";
20331
+ * background: "rgba(255,205,100,0.7)";
20332
+ * background: "#ffcd64";
20333
+ * background: "rgba(255,255,255,0.4)";
20334
+ * background: "rgba(0,0,0,0.7)";
20335
+ * }
20336
+ */
20337
+ function rgba$1(firstValue, secondValue, thirdValue, fourthValue) {
20338
+ if (typeof firstValue === 'string' && typeof secondValue === 'number') {
20339
+ var rgbValue = parseToRgb(firstValue);
20340
+ return "rgba(" + rgbValue.red + "," + rgbValue.green + "," + rgbValue.blue + "," + secondValue + ")";
20341
+ } else if (typeof firstValue === 'number' && typeof secondValue === 'number' && typeof thirdValue === 'number' && typeof fourthValue === 'number') {
20342
+ return fourthValue >= 1 ? rgb(firstValue, secondValue, thirdValue) : "rgba(" + firstValue + "," + secondValue + "," + thirdValue + "," + fourthValue + ")";
20343
+ } else if (typeof firstValue === 'object' && secondValue === undefined && thirdValue === undefined && fourthValue === undefined) {
20344
+ return firstValue.alpha >= 1 ? rgb(firstValue.red, firstValue.green, firstValue.blue) : "rgba(" + firstValue.red + "," + firstValue.green + "," + firstValue.blue + "," + firstValue.alpha + ")";
20345
+ }
20346
+
20347
+ throw new PolishedError(7);
20348
+ }
20349
+
20350
+ // Type definitions taken from https://github.com/gcanti/flow-static-land/blob/master/src/Fun.js
20351
+ // eslint-disable-next-line no-unused-vars
20352
+ // eslint-disable-next-line no-unused-vars
20353
+ // eslint-disable-next-line no-redeclare
20354
+ function curried(f, length, acc) {
20355
+ return function fn() {
20356
+ // eslint-disable-next-line prefer-rest-params
20357
+ var combined = acc.concat(Array.prototype.slice.call(arguments));
20358
+ return combined.length >= length ? f.apply(this, combined) : curried(f, length, combined);
20359
+ };
20360
+ } // eslint-disable-next-line no-redeclare
20361
+
20362
+
20363
+ function curry(f) {
20364
+ // eslint-disable-line no-redeclare
20365
+ return curried(f, f.length, []);
20366
+ }
20367
+
20368
+ /**
20369
+ * Mixes the two provided colors together by calculating the average of each of the RGB components weighted to the first color by the provided weight.
20370
+ *
20371
+ * @example
20372
+ * // Styles as object usage
20373
+ * const styles = {
20374
+ * background: mix(0.5, '#f00', '#00f')
20375
+ * background: mix(0.25, '#f00', '#00f')
20376
+ * background: mix('0.5', 'rgba(255, 0, 0, 0.5)', '#00f')
20377
+ * }
20378
+ *
20379
+ * // styled-components usage
20380
+ * const div = styled.div`
20381
+ * background: ${mix(0.5, '#f00', '#00f')};
20382
+ * background: ${mix(0.25, '#f00', '#00f')};
20383
+ * background: ${mix('0.5', 'rgba(255, 0, 0, 0.5)', '#00f')};
20384
+ * `
20385
+ *
20386
+ * // CSS in JS Output
20387
+ *
20388
+ * element {
20389
+ * background: "#7f007f";
20390
+ * background: "#3f00bf";
20391
+ * background: "rgba(63, 0, 191, 0.75)";
20392
+ * }
20393
+ */
20394
+
20395
+ function mix$1(weight, color, otherColor) {
20396
+ if (color === 'transparent') return otherColor;
20397
+ if (otherColor === 'transparent') return color;
20398
+ if (weight === 0) return otherColor;
20399
+ var parsedColor1 = parseToRgb(color);
20400
+
20401
+ var color1 = _extends$1({}, parsedColor1, {
20402
+ alpha: typeof parsedColor1.alpha === 'number' ? parsedColor1.alpha : 1
20403
+ });
20404
+
20405
+ var parsedColor2 = parseToRgb(otherColor);
20406
+
20407
+ var color2 = _extends$1({}, parsedColor2, {
20408
+ alpha: typeof parsedColor2.alpha === 'number' ? parsedColor2.alpha : 1
20409
+ }); // The formula is copied from the original Sass implementation:
20410
+ // http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method
20411
+
20412
+
20413
+ var alphaDelta = color1.alpha - color2.alpha;
20414
+ var x = parseFloat(weight) * 2 - 1;
20415
+ var y = x * alphaDelta === -1 ? x : x + alphaDelta;
20416
+ var z = 1 + x * alphaDelta;
20417
+ var weight1 = (y / z + 1) / 2.0;
20418
+ var weight2 = 1 - weight1;
20419
+ var mixedColor = {
20420
+ red: Math.floor(color1.red * weight1 + color2.red * weight2),
20421
+ green: Math.floor(color1.green * weight1 + color2.green * weight2),
20422
+ blue: Math.floor(color1.blue * weight1 + color2.blue * weight2),
20423
+ alpha: color1.alpha * (parseFloat(weight) / 1.0) + color2.alpha * (1 - parseFloat(weight) / 1.0)
20424
+ };
20425
+ return rgba$1(mixedColor);
20426
+ } // prettier-ignore
20427
+
20428
+
20429
+ var curriedMix = /*#__PURE__*/curry
20430
+ /* ::<number | string, string, string, string> */
20431
+ (mix$1);
20432
+
20433
+ /**
20434
+ * Tints a color by mixing it with white. `tint` can produce
20435
+ * hue shifts, where as `lighten` manipulates the luminance channel and therefore
20436
+ * doesn't produce hue shifts.
20437
+ *
20438
+ * @example
20439
+ * // Styles as object usage
20440
+ * const styles = {
20441
+ * background: tint(0.25, '#00f')
20442
+ * }
20443
+ *
20444
+ * // styled-components usage
20445
+ * const div = styled.div`
20446
+ * background: ${tint(0.25, '#00f')};
20447
+ * `
20448
+ *
20449
+ * // CSS in JS Output
20450
+ *
20451
+ * element {
20452
+ * background: "#bfbfff";
20453
+ * }
20454
+ */
20455
+
20456
+ function tint(percentage, color) {
20457
+ if (color === 'transparent') return color;
20458
+ return curriedMix(parseFloat(percentage), 'rgb(255, 255, 255)', color);
20459
+ } // prettier-ignore
20460
+
20461
+
20462
+ var curriedTint = /*#__PURE__*/curry
20463
+ /* ::<number | string, string, string> */
20464
+ (tint);
20465
+
19540
20466
  var color$8 = {
19541
20467
  "default": "".concat(CHARADE_GREY),
19542
20468
  large: "".concat(BRIGHT_GREY)
@@ -19545,7 +20471,7 @@ var height$1 = {
19545
20471
  "default": "3rem",
19546
20472
  large: "192px"
19547
20473
  };
19548
- var fallbackValues$k = {
20474
+ var fallbackValues$l = {
19549
20475
  color: color$8,
19550
20476
  height: height$1
19551
20477
  };
@@ -19595,8 +20521,8 @@ var Placeholder = function Placeholder(_ref2) {
19595
20521
  border: "none",
19596
20522
  minHeight: themeValues.height,
19597
20523
  hiddenStyles: !visible,
19598
- extraStyles: "\n background: linear-gradient(\n to right,\n ".concat(STORM_GREY, " 40%,\n rgba(255, 255, 255, 0) 0%\n ),\n linear-gradient(").concat(STORM_GREY, " 40%, rgba(255, 255, 255, 0) 0%),\n linear-gradient(to right, ").concat(STORM_GREY, " 40%, rgba(255, 255, 255, 0) 0%),\n linear-gradient(").concat(STORM_GREY, " 40%, rgba(255, 255, 255, 0) 0%);\n background-position: top, right, bottom, left;\n background-repeat: repeat-x, repeat-y;\n background-size: 5px 1px, 1px 5px;\n display: flex;\n justify-content: center;\n align-items:center;"),
19599
- hoverStyles: "background-color: ".concat(GRECIAN_GREY, ";")
20524
+ extraStyles: "\n background: linear-gradient(\n to right,\n ".concat(variant === "large" ? STORM_GREY : themeValues.color, " 40%,\n rgba(255, 255, 255, 0) 0%\n ),\n linear-gradient(").concat(variant === "large" ? STORM_GREY : themeValues.color, " 40%, rgba(255, 255, 255, 0) 0%),\n linear-gradient(to right, ").concat(variant === "large" ? STORM_GREY : themeValues.color, " 40%, rgba(255, 255, 255, 0) 0%),\n linear-gradient(").concat(variant === "large" ? STORM_GREY : themeValues.color, " 40%, rgba(255, 255, 255, 0) 0%);\n background-position: top, right, bottom, left;\n background-repeat: repeat-x, repeat-y;\n background-size: 5px 1px, 1px 5px;\n display: flex;\n justify-content: center;\n align-items:center;"),
20525
+ hoverStyles: "background-color: ".concat(variant === "large" ? GRECIAN_GREY : curriedTint(0.9, themeValues.color), ";")
19600
20526
  }, /*#__PURE__*/React__default.createElement(Center, {
19601
20527
  maxWidth: "300px"
19602
20528
  }, /*#__PURE__*/React__default.createElement(Box, {
@@ -19610,7 +20536,7 @@ var Placeholder = function Placeholder(_ref2) {
19610
20536
  childGap: "0"
19611
20537
  }, variant === "large" && /*#__PURE__*/React__default.createElement("div", null), /*#__PURE__*/React__default.createElement(Box, {
19612
20538
  padding: "0",
19613
- extraStyles: ".fill { \n fill: ".concat(CHARADE_GREY, "; \n } .stroke { \n stroke: ").concat(CHARADE_GREY, "; \n }")
20539
+ extraStyles: ".fill { \n fill: ".concat(variant === "large" ? CHARADE_GREY : themeValues.color, "; \n } .stroke { \n stroke: ").concat(variant === "large" ? CHARADE_GREY : themeValues.color, "; \n }")
19614
20540
  }, variant === "large" ? /*#__PURE__*/React__default.createElement(Center, {
19615
20541
  intrinsic: true
19616
20542
  }, largeIcon === "accounts" ? /*#__PURE__*/React__default.createElement(AccountsAddIcon$1, null) : /*#__PURE__*/React__default.createElement(PropertiesAddIcon$1, null), /*#__PURE__*/React__default.createElement(Text$1, {
@@ -19634,13 +20560,13 @@ var Placeholder = function Placeholder(_ref2) {
19634
20560
  }, text)))))))))));
19635
20561
  };
19636
20562
 
19637
- var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$k, "default");
20563
+ var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$l, "default");
19638
20564
 
19639
- var backgroundColor$3 = {
20565
+ var backgroundColor$4 = {
19640
20566
  "default": "".concat(WHITE)
19641
20567
  };
19642
- var fallbackValues$l = {
19643
- backgroundColor: backgroundColor$3
20568
+ var fallbackValues$m = {
20569
+ backgroundColor: backgroundColor$4
19644
20570
  };
19645
20571
 
19646
20572
  var ProcessingFee = function ProcessingFee(_ref) {
@@ -19667,11 +20593,11 @@ var ProcessingFee = function ProcessingFee(_ref) {
19667
20593
  }));
19668
20594
  };
19669
20595
 
19670
- var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$l, "default");
20596
+ var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$m, "default");
19671
20597
 
19672
20598
  var activeColor$4 = "".concat(MATISSE_BLUE);
19673
20599
  var inactiveColor = "".concat(GREY_CHATEAU);
19674
- var fallbackValues$m = {
20600
+ var fallbackValues$n = {
19675
20601
  activeColor: activeColor$4,
19676
20602
  inactiveColor: inactiveColor
19677
20603
  };
@@ -19767,7 +20693,7 @@ var RadioButton$1 = function RadioButton(_ref2) {
19767
20693
  })));
19768
20694
  };
19769
20695
 
19770
- var RadioButton$2 = themeComponent(RadioButton$1, "RadioButton", fallbackValues$m);
20696
+ var RadioButton$2 = themeComponent(RadioButton$1, "RadioButton", fallbackValues$n);
19771
20697
 
19772
20698
  var borderColor$1 = {
19773
20699
  "default": "".concat(GREY_CHATEAU)
@@ -19775,7 +20701,7 @@ var borderColor$1 = {
19775
20701
  var borderSize = {
19776
20702
  "default": "1px"
19777
20703
  };
19778
- var fallbackValues$n = {
20704
+ var fallbackValues$o = {
19779
20705
  borderColor: borderColor$1,
19780
20706
  borderSize: borderSize
19781
20707
  };
@@ -19792,7 +20718,7 @@ var SolidDivider = function SolidDivider(_ref) {
19792
20718
  });
19793
20719
  };
19794
20720
 
19795
- var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$n, "default");
20721
+ var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$o, "default");
19796
20722
 
19797
20723
  var placeHolderOptionUS = {
19798
20724
  text: "Please select state",
@@ -30374,7 +31300,7 @@ var offBackground = "".concat(REGENT_GREY);
30374
31300
  var labelStyles = "\n display: flex;\n justify-content: flex-start;\n align-items: center;\n";
30375
31301
  var rightLabelStyles = "\n ".concat(labelStyles, "\n flex-direction: row;\n");
30376
31302
  var leftLabelStyles = "\n ".concat(labelStyles, "\n flex-direction: row-reverse;\n");
30377
- var fallbackValues$o = {
31303
+ var fallbackValues$p = {
30378
31304
  onBackground: onBackground,
30379
31305
  disabledBackground: disabledBackground,
30380
31306
  white: white,
@@ -30576,7 +31502,7 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
30576
31502
  }, label))));
30577
31503
  };
30578
31504
 
30579
- var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$o);
31505
+ var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$p);
30580
31506
 
30581
31507
  const validatorToPredicate = (validatorFn, emptyCase) => (
30582
31508
  value,
@@ -32402,7 +33328,7 @@ var titleColor = "#292A33";
32402
33328
  var headingBackgroundColor = "transparent";
32403
33329
  var bodyBackgroundColor = "transparent";
32404
33330
  var focusStyles = "outline: none;";
32405
- var fallbackValues$p = {
33331
+ var fallbackValues$q = {
32406
33332
  titleColor: titleColor,
32407
33333
  headingBackgroundColor: headingBackgroundColor,
32408
33334
  bodyBackgroundColor: bodyBackgroundColor,
@@ -32506,7 +33432,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
32506
33432
  }, children))));
32507
33433
  };
32508
33434
 
32509
- var CollapsibleSection$1 = themeComponent(CollapsibleSection, "CollapsibleSection", fallbackValues$p);
33435
+ var CollapsibleSection$1 = themeComponent(CollapsibleSection, "CollapsibleSection", fallbackValues$q);
32510
33436
 
32511
33437
  var EditNameForm = function EditNameForm(_ref) {
32512
33438
  var fields = _ref.fields,
@@ -32995,10 +33921,10 @@ ForgotPasswordForm.mapStateToProps = mapStateToProps$5;
32995
33921
  ForgotPasswordForm.mapDispatchToProps = mapDispatchToProps$4;
32996
33922
 
32997
33923
  var textColor$2 = "#ffffff";
32998
- var backgroundColor$4 = "#182848";
32999
- var fallbackValues$q = {
33924
+ var backgroundColor$5 = "#182848";
33925
+ var fallbackValues$r = {
33000
33926
  textColor: textColor$2,
33001
- backgroundColor: backgroundColor$4
33927
+ backgroundColor: backgroundColor$5
33002
33928
  };
33003
33929
 
33004
33930
  var HighlightTabRow = function HighlightTabRow(_ref) {
@@ -33028,7 +33954,8 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
33028
33954
  key: t,
33029
33955
  borderSize: "3px",
33030
33956
  borderColor: highlightIndex == i ? themeValues.textColor : "transparent",
33031
- borderWidthOverride: "0 0 3px 0"
33957
+ borderWidthOverride: "0 0 3px 0",
33958
+ extraStyles: "text-align: center;"
33032
33959
  }, /*#__PURE__*/React__default.createElement(Text$1, {
33033
33960
  variant: "p",
33034
33961
  textAlign: "center",
@@ -33039,7 +33966,7 @@ var HighlightTabRow = function HighlightTabRow(_ref) {
33039
33966
  }), repeat( /*#__PURE__*/React__default.createElement(Box, null), boxesAfter)));
33040
33967
  };
33041
33968
 
33042
- var HighlightTabRow$1 = /*#__PURE__*/React.memo(themeComponent(HighlightTabRow, "HighlightTabRow", fallbackValues$q));
33969
+ var HighlightTabRow$1 = /*#__PURE__*/React.memo(themeComponent(HighlightTabRow, "HighlightTabRow", fallbackValues$r));
33043
33970
 
33044
33971
  var LoginForm = function LoginForm(_ref) {
33045
33972
  var _emailErrorMessages;
@@ -33953,15 +34880,15 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
33953
34880
 
33954
34881
  function _createClass$2(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
33955
34882
 
33956
- function _possibleConstructorReturn$2(self, call) { if (call && (_typeof$1(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
34883
+ function _possibleConstructorReturn$2(self, call) { if (call && (_typeof$1(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized$1(self); }
33957
34884
 
33958
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
34885
+ function _getPrototypeOf$1(o) { _getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$1(o); }
33959
34886
 
33960
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
34887
+ function _assertThisInitialized$1(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
33961
34888
 
33962
- function _inherits$2(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
34889
+ function _inherits$2(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf$1(subClass, superClass); }
33963
34890
 
33964
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
34891
+ function _setPrototypeOf$1(o, p) { _setPrototypeOf$1 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$1(o, p); }
33965
34892
 
33966
34893
  function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
33967
34894
 
@@ -33989,27 +34916,27 @@ function (_React$Component) {
33989
34916
  args[_key] = arguments[_key];
33990
34917
  }
33991
34918
 
33992
- _this = _possibleConstructorReturn$2(this, (_getPrototypeOf2 = _getPrototypeOf(Modal)).call.apply(_getPrototypeOf2, [this].concat(args)));
34919
+ _this = _possibleConstructorReturn$2(this, (_getPrototypeOf2 = _getPrototypeOf$1(Modal)).call.apply(_getPrototypeOf2, [this].concat(args)));
33993
34920
 
33994
- _defineProperty$1(_assertThisInitialized(_this), "getApplicationNode", function () {
34921
+ _defineProperty$1(_assertThisInitialized$1(_this), "getApplicationNode", function () {
33995
34922
  if (_this.props.getApplicationNode) return _this.props.getApplicationNode();
33996
34923
  return _this.props.applicationNode;
33997
34924
  });
33998
34925
 
33999
- _defineProperty$1(_assertThisInitialized(_this), "checkUnderlayClick", function (event) {
34926
+ _defineProperty$1(_assertThisInitialized$1(_this), "checkUnderlayClick", function (event) {
34000
34927
  if (_this.dialogNode && _this.dialogNode.contains(event.target) || // If the click is on the scrollbar we don't want to close the modal.
34001
34928
  event.pageX > event.target.ownerDocument.documentElement.offsetWidth || event.pageY > event.target.ownerDocument.documentElement.offsetHeight) return;
34002
34929
 
34003
34930
  _this.exit(event);
34004
34931
  });
34005
34932
 
34006
- _defineProperty$1(_assertThisInitialized(_this), "checkDocumentKeyDown", function (event) {
34933
+ _defineProperty$1(_assertThisInitialized$1(_this), "checkDocumentKeyDown", function (event) {
34007
34934
  if (_this.props.escapeExits && (event.key === 'Escape' || event.key === 'Esc' || event.keyCode === 27)) {
34008
34935
  _this.exit(event);
34009
34936
  }
34010
34937
  });
34011
34938
 
34012
- _defineProperty$1(_assertThisInitialized(_this), "exit", function (event) {
34939
+ _defineProperty$1(_assertThisInitialized$1(_this), "exit", function (event) {
34013
34940
  if (_this.props.onExit) {
34014
34941
  _this.props.onExit(event);
34015
34942
  }
@@ -34392,7 +35319,7 @@ var textAlign = {
34392
35319
  };
34393
35320
  var titleType = {
34394
35321
  "default": "h5",
34395
- largeTitle: "h3"
35322
+ largeTitle: "h1"
34396
35323
  };
34397
35324
  var titleSpacing = {
34398
35325
  "default": "0.5rem",
@@ -34406,11 +35333,11 @@ var borderRadius = {
34406
35333
  "default": "0.25rem",
34407
35334
  largeTitle: "0.25rem"
34408
35335
  };
34409
- var backgroundColor$5 = {
35336
+ var backgroundColor$6 = {
34410
35337
  "default": WHITE,
34411
35338
  largeTitle: WHITE
34412
35339
  };
34413
- var fallbackValues$r = {
35340
+ var fallbackValues$s = {
34414
35341
  fontSize: fontSize$7,
34415
35342
  fontWeight: fontWeight$4,
34416
35343
  fontColor: fontColor,
@@ -34420,7 +35347,7 @@ var fallbackValues$r = {
34420
35347
  titleSpacing: titleSpacing,
34421
35348
  boxShadow: boxShadow$1,
34422
35349
  borderRadius: borderRadius,
34423
- backgroundColor: backgroundColor$5
35350
+ backgroundColor: backgroundColor$6
34424
35351
  };
34425
35352
 
34426
35353
  var Module = function Module(_ref) {
@@ -34436,12 +35363,11 @@ var Module = function Module(_ref) {
34436
35363
  variant = _ref$variant === void 0 ? "default" : _ref$variant,
34437
35364
  children = _ref.children;
34438
35365
  return /*#__PURE__*/React__default.createElement(React.Fragment, null, heading && /*#__PURE__*/React__default.createElement(Heading$1, {
34439
- variant: variant === "default" ? "h5" : "h3",
35366
+ variant: variant === "default" ? "h5" : "h2",
34440
35367
  weight: themeValues.fontWeight,
34441
35368
  color: themeValues.fontColor,
34442
35369
  margin: "".concat(spacing, " 0 ").concat(themeValues.titleSpacing, " 0"),
34443
- textAlign: themeValues.textAlign,
34444
- "aria-level": variant === "default" ? "3" : "1"
35370
+ textAlign: themeValues.textAlign
34445
35371
  }, heading), /*#__PURE__*/React__default.createElement(Box, {
34446
35372
  padding: "0 0 ".concat(spacingBottom)
34447
35373
  }, /*#__PURE__*/React__default.createElement(Box, {
@@ -34452,9 +35378,9 @@ var Module = function Module(_ref) {
34452
35378
  }, children)));
34453
35379
  };
34454
35380
 
34455
- var Module$1 = /*#__PURE__*/React.memo(themeComponent(Module, "Module", fallbackValues$r, "default"));
35381
+ var Module$1 = /*#__PURE__*/React.memo(themeComponent(Module, "Module", fallbackValues$s, "default"));
34456
35382
 
34457
- var backgroundColor$6 = {
35383
+ var backgroundColor$7 = {
34458
35384
  profile: "#3b414d",
34459
35385
  cms: "#3b414d"
34460
35386
  };
@@ -34462,8 +35388,8 @@ var shadowColor = {
34462
35388
  profile: "#292A33",
34463
35389
  cms: "#292A33"
34464
35390
  };
34465
- var fallbackValues$s = {
34466
- backgroundColor: backgroundColor$6,
35391
+ var fallbackValues$t = {
35392
+ backgroundColor: backgroundColor$7,
34467
35393
  shadowColor: shadowColor
34468
35394
  };
34469
35395
 
@@ -34503,7 +35429,7 @@ var NavMenuDesktop = function NavMenuDesktop(_ref) {
34503
35429
  }, menuContent));
34504
35430
  };
34505
35431
 
34506
- var NavMenuDesktop$1 = themeComponent(NavMenuDesktop, "NavMenu", fallbackValues$s, "profile");
35432
+ var NavMenuDesktop$1 = themeComponent(NavMenuDesktop, "NavMenu", fallbackValues$t, "profile");
34507
35433
 
34508
35434
  function _templateObject$y() {
34509
35435
  var data = _taggedTemplateLiteral(["\n position: fixed;\n top: 72px;\n"]);
@@ -34565,7 +35491,7 @@ var NavMenuMobile = function NavMenuMobile(_ref) {
34565
35491
  }, menuContent));
34566
35492
  };
34567
35493
 
34568
- var NavMenuMobile$1 = themeComponent(NavMenuMobile, "NavMenu", fallbackValues$s, "profile");
35494
+ var NavMenuMobile$1 = themeComponent(NavMenuMobile, "NavMenu", fallbackValues$t, "profile");
34569
35495
 
34570
35496
  var AccountBillIcon = function AccountBillIcon() {
34571
35497
  return /*#__PURE__*/React__default.createElement("svg", {
@@ -36068,7 +36994,7 @@ var TitleModule = function TitleModule(_ref) {
36068
36994
  var color$9 = "#15749D";
36069
36995
  var hoverColor$4 = "#116285";
36070
36996
  var activeColor$5 = "#0E506D";
36071
- var fallbackValues$t = {
36997
+ var fallbackValues$u = {
36072
36998
  color: color$9,
36073
36999
  hoverColor: hoverColor$4,
36074
37000
  activeColor: activeColor$5
@@ -36139,7 +37065,7 @@ var AutopayModal = function AutopayModal(_ref) {
36139
37065
  }, modalExtraProps));
36140
37066
  };
36141
37067
 
36142
- var AutopayModalModule = themeComponent(AutopayModal, "AutopayModal", fallbackValues$t);
37068
+ var AutopayModalModule = themeComponent(AutopayModal, "AutopayModal", fallbackValues$u);
36143
37069
 
36144
37070
  var AmountModule = function AmountModule(_ref) {
36145
37071
  var totalAmountDue = _ref.totalAmountDue,
@@ -36675,7 +37601,7 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
36675
37601
  }, backButton, forwardButton)));
36676
37602
  };
36677
37603
 
36678
- var backgroundColor$7 = {
37604
+ var backgroundColor$8 = {
36679
37605
  "default": "transparent",
36680
37606
  small: "transparent"
36681
37607
  };
@@ -36691,8 +37617,8 @@ var labeledAmountTotal = {
36691
37617
  "default": "h6",
36692
37618
  small: "pL"
36693
37619
  };
36694
- var fallbackValues$u = {
36695
- backgroundColor: backgroundColor$7,
37620
+ var fallbackValues$v = {
37621
+ backgroundColor: backgroundColor$8,
36696
37622
  lineItem: lineItem,
36697
37623
  labeledAmountSubtotal: labeledAmountSubtotal,
36698
37624
  labeledAmountTotal: labeledAmountTotal
@@ -36711,6 +37637,7 @@ var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
36711
37637
  label: "Subtotal",
36712
37638
  amount: displayCurrency(subtotal)
36713
37639
  }), feeElems), /*#__PURE__*/React__default.createElement(SolidDivider$1, null), /*#__PURE__*/React__default.createElement(LabeledAmount$1, {
37640
+ as: "h2",
36714
37641
  variant: themeValues.labeledAmountTotal,
36715
37642
  label: "Total",
36716
37643
  amount: displayCurrency(total)
@@ -36832,9 +37759,11 @@ var PaymentDetails = function PaymentDetails(_ref4) {
36832
37759
  justify: "space-between",
36833
37760
  align: "center"
36834
37761
  }, /*#__PURE__*/React__default.createElement(Heading$1, {
36835
- variant: "h6",
36836
- weight: "700"
37762
+ variant: "h5",
37763
+ weight: "700",
37764
+ as: "h1"
36837
37765
  }, titleText), displayCurrency(total))) : /*#__PURE__*/React__default.createElement(Heading$1, {
37766
+ as: "h1",
36838
37767
  variant: "h3",
36839
37768
  weight: "700",
36840
37769
  margin: "1rem 0 0 0"
@@ -36852,7 +37781,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
36852
37781
  });
36853
37782
  };
36854
37783
 
36855
- var PaymentDetails$1 = themeComponent(PaymentDetails, "PaymentDetails", fallbackValues$u, "default");
37784
+ var PaymentDetails$1 = themeComponent(PaymentDetails, "PaymentDetails", fallbackValues$v, "default");
36856
37785
 
36857
37786
  var linkColor$1 = {
36858
37787
  "default": "#357fb8",
@@ -36874,7 +37803,7 @@ var modalLinkHoverFocus = {
36874
37803
  "default": "",
36875
37804
  footer: "outline: none; text-decoration: underline;"
36876
37805
  };
36877
- var fallbackValues$v = {
37806
+ var fallbackValues$w = {
36878
37807
  linkColor: linkColor$1,
36879
37808
  fontSize: fontSize$8,
36880
37809
  lineHeight: lineHeight$4,
@@ -36937,7 +37866,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
36937
37866
  });
36938
37867
  };
36939
37868
 
36940
- var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$v, "default");
37869
+ var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$w, "default");
36941
37870
 
36942
37871
  function _templateObject$z() {
36943
37872
  var data = _taggedTemplateLiteral([""]);
@@ -37323,7 +38252,7 @@ var headingDisabledColor = "".concat(ATHENS_GREY);
37323
38252
  var bodyBackgroundColor$1 = "#eeeeee";
37324
38253
  var borderColor$2 = "".concat(GREY_CHATEAU);
37325
38254
  var focusStyles$1 = "outline: none;";
37326
- var fallbackValues$w = {
38255
+ var fallbackValues$x = {
37327
38256
  headingBackgroundColor: headingBackgroundColor$1,
37328
38257
  headingDisabledColor: headingDisabledColor,
37329
38258
  bodyBackgroundColor: bodyBackgroundColor$1,
@@ -37496,7 +38425,8 @@ var RadioSection = function RadioSection(_ref) {
37496
38425
  src: icon.img,
37497
38426
  key: icon.img,
37498
38427
  fade: !icon.enabled,
37499
- isMobile: isMobile
38428
+ isMobile: isMobile,
38429
+ alt: icon.altText
37500
38430
  });
37501
38431
  })))), /*#__PURE__*/React__default.createElement(AnimatePresence, {
37502
38432
  initial: false
@@ -37514,7 +38444,7 @@ var RadioSection = function RadioSection(_ref) {
37514
38444
  })));
37515
38445
  };
37516
38446
 
37517
- var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$w);
38447
+ var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$x);
37518
38448
 
37519
38449
  var RegistrationForm = function RegistrationForm(_ref) {
37520
38450
  var _emailErrorMessages, _passwordErrorMessage;
@@ -37801,7 +38731,7 @@ var ResetPasswordSuccess = withWindowSize(ResetConfirmationForm$2);
37801
38731
  var activeTabBackground = "#FFFFFF";
37802
38732
  var activeTabAccent = "#15749D";
37803
38733
  var activeTabHover = "#B8D5E1";
37804
- var fallbackValues$x = {
38734
+ var fallbackValues$y = {
37805
38735
  activeTabBackground: activeTabBackground,
37806
38736
  activeTabAccent: activeTabAccent,
37807
38737
  activeTabHover: activeTabHover
@@ -37857,9 +38787,9 @@ var TabSidebar = function TabSidebar(_ref) {
37857
38787
  })));
37858
38788
  };
37859
38789
 
37860
- var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$x);
38790
+ var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$y);
37861
38791
 
37862
- var backgroundColor$8 = {
38792
+ var backgroundColor$9 = {
37863
38793
  "default": "#ffffff",
37864
38794
  footer: "#ffffff"
37865
38795
  };
@@ -37887,8 +38817,8 @@ var modalLinkHoverFocus$1 = {
37887
38817
  "default": "",
37888
38818
  footer: "outline: none; text-decoration: underline;"
37889
38819
  };
37890
- var fallbackValues$y = {
37891
- backgroundColor: backgroundColor$8,
38820
+ var fallbackValues$z = {
38821
+ backgroundColor: backgroundColor$9,
37892
38822
  linkColor: linkColor$2,
37893
38823
  border: border$2,
37894
38824
  fontSize: fontSize$9,
@@ -37951,7 +38881,7 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
37951
38881
  });
37952
38882
  };
37953
38883
 
37954
- var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$y, "default");
38884
+ var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$z, "default");
37955
38885
 
37956
38886
  function _templateObject2$l() {
37957
38887
  var data = _taggedTemplateLiteral([""]);
@@ -38075,6 +39005,65 @@ var Timeout = function Timeout(_ref) {
38075
39005
 
38076
39006
  var Timeout$1 = withWindowSize(Timeout);
38077
39007
 
39008
+ var fontWeight$7 = "600";
39009
+ var fontColor$1 = WHITE;
39010
+ var textAlign$1 = "left";
39011
+ var headerBackgroundColor = BRIGHT_GREY;
39012
+ var imageBackgroundColor = MATISSE_BLUE;
39013
+ var fallbackValues$A = {
39014
+ fontWeight: fontWeight$7,
39015
+ fontColor: fontColor$1,
39016
+ textAlign: textAlign$1,
39017
+ headerBackgroundColor: headerBackgroundColor,
39018
+ imageBackgroundColor: imageBackgroundColor
39019
+ };
39020
+
39021
+ function _templateObject$C() {
39022
+ var data = _taggedTemplateLiteral(["\n width: 100%;\n height: auto;\n"]);
39023
+
39024
+ _templateObject$C = function _templateObject() {
39025
+ return data;
39026
+ };
39027
+
39028
+ return data;
39029
+ }
39030
+ var WelcomeImage = styled__default.img(_templateObject$C());
39031
+
39032
+ var WelcomeModule = function WelcomeModule(_ref) {
39033
+ var heading = _ref.heading,
39034
+ isMobile = _ref.isMobile,
39035
+ themeValues = _ref.themeValues;
39036
+ var welcomeImage = "https://cb-public-assets.s3-us-west-2.amazonaws.com/profile-assets/profile-welcome-image.png";
39037
+ return /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(Box, {
39038
+ padding: "0"
39039
+ }, isMobile && /*#__PURE__*/React__default.createElement(Box, {
39040
+ padding: "0",
39041
+ background: themeValues.imageBackgroundColor
39042
+ }, /*#__PURE__*/React__default.createElement(Cluster, {
39043
+ justify: "center"
39044
+ }, /*#__PURE__*/React__default.createElement(WelcomeImage, {
39045
+ src: welcomeImage
39046
+ }))), /*#__PURE__*/React__default.createElement(Box, {
39047
+ background: themeValues.headerBackgroundColor
39048
+ }, /*#__PURE__*/React__default.createElement(Heading$1, {
39049
+ variant: "h5",
39050
+ weight: themeValues.fontWeight,
39051
+ color: themeValues.fontColor,
39052
+ textAlign: themeValues.textAlign,
39053
+ "aria-level": "3"
39054
+ }, heading)), !isMobile && /*#__PURE__*/React__default.createElement(Box, {
39055
+ padding: "0",
39056
+ background: themeValues.imageBackgroundColor
39057
+ }, /*#__PURE__*/React__default.createElement(Cluster, {
39058
+ justify: "center",
39059
+ align: "flex-end"
39060
+ }, /*#__PURE__*/React__default.createElement(WelcomeImage, {
39061
+ src: welcomeImage
39062
+ })))));
39063
+ };
39064
+
39065
+ var WelcomeModule$1 = /*#__PURE__*/React.memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$A));
39066
+
38078
39067
  var WorkflowTile = function WorkflowTile(_ref) {
38079
39068
  var _ref$workflowName = _ref.workflowName,
38080
39069
  workflowName = _ref$workflowName === void 0 ? "Test Workflow" : _ref$workflowName,
@@ -38121,7 +39110,7 @@ var WorkflowTile = function WorkflowTile(_ref) {
38121
39110
  };
38122
39111
 
38123
39112
  var pageBackground = "#F6F6F9";
38124
- var fallbackValues$z = {
39113
+ var fallbackValues$B = {
38125
39114
  pageBackground: pageBackground
38126
39115
  };
38127
39116
 
@@ -38168,7 +39157,7 @@ var CenterSingle = function CenterSingle(_ref) {
38168
39157
  })));
38169
39158
  };
38170
39159
 
38171
- var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$z));
39160
+ var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$B));
38172
39161
 
38173
39162
  var CenterStack = function CenterStack(_ref) {
38174
39163
  var header = _ref.header,
@@ -38210,7 +39199,7 @@ var CenterStack = function CenterStack(_ref) {
38210
39199
  })));
38211
39200
  };
38212
39201
 
38213
- var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$z));
39202
+ var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$B));
38214
39203
 
38215
39204
  var CenterSingle$2 = function CenterSingle(_ref) {
38216
39205
  var header = _ref.header,
@@ -38250,7 +39239,7 @@ var CenterSingle$2 = function CenterSingle(_ref) {
38250
39239
  })));
38251
39240
  };
38252
39241
 
38253
- var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$z));
39242
+ var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$B));
38254
39243
 
38255
39244
  var SidebarSingleContent = function SidebarSingleContent(_ref) {
38256
39245
  var header = _ref.header,
@@ -38304,7 +39293,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
38304
39293
  })));
38305
39294
  };
38306
39295
 
38307
- var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$z));
39296
+ var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$B));
38308
39297
 
38309
39298
  var SidebarStackContent = function SidebarStackContent(_ref) {
38310
39299
  var header = _ref.header,
@@ -38375,7 +39364,7 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
38375
39364
  })));
38376
39365
  };
38377
39366
 
38378
- var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$z));
39367
+ var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$B));
38379
39368
 
38380
39369
 
38381
39370
 
@@ -38504,7 +39493,9 @@ exports.Timeout = Timeout$1;
38504
39493
  exports.TimeoutImage = TimeoutImage;
38505
39494
  exports.ToggleSwitch = ToggleSwitch$1;
38506
39495
  exports.VerifiedEmailIcon = VerifiedEmailIcon$1;
39496
+ exports.WelcomeModule = WelcomeModule$1;
38507
39497
  exports.WorkflowTile = WorkflowTile;
39498
+ exports.cardRegistry = cardRegistry;
38508
39499
  exports.constants = index$4;
38509
39500
  exports.createPartialAmountFormState = createPartialAmountFormState;
38510
39501
  exports.util = index$5;