@thecb/components 3.4.0 → 3.5.0

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
@@ -13630,6 +13630,149 @@ var IconAdd = function IconAdd() {
13630
13630
  }))))));
13631
13631
  };
13632
13632
 
13633
+ var TimeoutImage = function TimeoutImage() {
13634
+ return /*#__PURE__*/React__default.createElement("svg", {
13635
+ xmlns: "http://www.w3.org/2000/svg",
13636
+ width: "458",
13637
+ height: "308",
13638
+ viewBox: "0 0 458 308"
13639
+ }, /*#__PURE__*/React__default.createElement("g", {
13640
+ fill: "none",
13641
+ fillRule: "evenodd",
13642
+ stroke: "none",
13643
+ strokeWidth: "1"
13644
+ }, /*#__PURE__*/React__default.createElement("g", {
13645
+ transform: "translate(-492 -168)"
13646
+ }, /*#__PURE__*/React__default.createElement("g", {
13647
+ transform: "translate(492 168)"
13648
+ }, /*#__PURE__*/React__default.createElement("path", {
13649
+ fill: "#EAF4EB",
13650
+ d: "M286.327 294.916c0 7.133-26.041 12.916-58.164 12.916-32.123 0-58.163-5.783-58.163-12.916S196.04 282 228.163 282s58.164 5.783 58.164 12.916"
13651
+ }), /*#__PURE__*/React__default.createElement("g", {
13652
+ stroke: "#45B770",
13653
+ strokeLinecap: "round",
13654
+ strokeLinejoin: "round",
13655
+ strokeWidth: "8.362",
13656
+ transform: "translate(204 268)"
13657
+ }, /*#__PURE__*/React__default.createElement("path", {
13658
+ d: "M15.817 -2.13162821e-14L15.817 24.795 3.55271368e-15 24.795"
13659
+ }), /*#__PURE__*/React__default.createElement("path", {
13660
+ d: "M31.3102 -2.30926389e-14L31.3102 25.574 47.1272 25.574"
13661
+ })), /*#__PURE__*/React__default.createElement("path", {
13662
+ fill: "#FEFEFE",
13663
+ d: "M107.968 73h239.721a6.969 6.969 0 016.969 6.968v178.398a6.969 6.969 0 01-6.969 6.968H107.968a6.968 6.968 0 01-6.968-6.968V79.968A6.968 6.968 0 01107.968 73"
13664
+ }), /*#__PURE__*/React__default.createElement("path", {
13665
+ fill: "#E4E6EB",
13666
+ d: "M101 99L355 99 355 73 101 73z"
13667
+ }), /*#__PURE__*/React__default.createElement("g", {
13668
+ stroke: "#3B414D",
13669
+ strokeLinecap: "round",
13670
+ strokeWidth: "5.575",
13671
+ transform: "translate(197.811 141.913)"
13672
+ }, /*#__PURE__*/React__default.createElement("path", {
13673
+ strokeLinejoin: "round",
13674
+ d: "M0 5.575C1.168 2.317 4.16 0 7.666 0c3.505 0 6.497 2.317 7.665 5.575"
13675
+ }), /*#__PURE__*/React__default.createElement("path", {
13676
+ strokeLinejoin: "round",
13677
+ d: "M46 5.575C47.168 2.317 50.16 0 53.666 0c3.505 0 6.497 2.317 7.665 5.575"
13678
+ }), /*#__PURE__*/React__default.createElement("path", {
13679
+ d: "M50.38 44.087h0a6.886 6.886 0 01-6.886 6.886h-26.42a6.886 6.886 0 01-6.885-6.886",
13680
+ transform: "matrix(1 0 0 -1 0 95.06)"
13681
+ })), /*#__PURE__*/React__default.createElement("path", {
13682
+ fill: "#3B414D",
13683
+ d: "M124 83a3 3 0 110 6 3 3 0 010-6zm-10 0a3 3 0 110 6 3 3 0 010-6zm20 0a3 3 0 110 6 3 3 0 010-6z"
13684
+ }), /*#__PURE__*/React__default.createElement("path", {
13685
+ stroke: "#45B770",
13686
+ strokeLinecap: "round",
13687
+ strokeLinejoin: "round",
13688
+ strokeWidth: "8",
13689
+ d: "M99.441 205.181L77.181 224.512"
13690
+ }), /*#__PURE__*/React__default.createElement("path", {
13691
+ stroke: "#45B770",
13692
+ strokeLinecap: "round",
13693
+ strokeLinejoin: "round",
13694
+ strokeWidth: "8",
13695
+ d: "M412.8955 190.764648L381.126953 224.790039 356 205.267859"
13696
+ }), /*#__PURE__*/React__default.createElement("path", {
13697
+ stroke: "#45B770",
13698
+ strokeLinecap: "round",
13699
+ strokeWidth: "8",
13700
+ d: "M396.5 189.5L429.5 189.5"
13701
+ }), /*#__PURE__*/React__default.createElement("path", {
13702
+ stroke: "#45B770",
13703
+ strokeLinecap: "round",
13704
+ strokeLinejoin: "round",
13705
+ strokeWidth: "8",
13706
+ d: "M137.079 231.103a7.605 7.605 0 000 15.211h6.644"
13707
+ }), /*#__PURE__*/React__default.createElement("g", {
13708
+ transform: "translate(377 63)"
13709
+ }, /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("path", {
13710
+ fill: "#FFF",
13711
+ d: "M66.669 116.462H5.122a5.122 5.122 0 110-10.243h61.547a5.122 5.122 0 110 10.243"
13712
+ }), /*#__PURE__*/React__default.createElement("path", {
13713
+ fill: "#E4F4FD",
13714
+ d: "M15.126 71.521l20.77-13.29 20.769 13.29a19.123 19.123 0 018.815 16.106v18.591H6.311v-18.59c0-6.52 3.323-12.592 8.815-16.107z"
13715
+ }), /*#__PURE__*/React__default.createElement("path", {
13716
+ fill: "#E4F4FD",
13717
+ d: "M56.665 44.94l-20.77 13.292L15.126 44.94a19.12 19.12 0 01-8.815-16.106V10.244H65.48v18.59a19.12 19.12 0 01-8.815 16.107z"
13718
+ }), /*#__PURE__*/React__default.createElement("path", {
13719
+ fill: "#FFF",
13720
+ d: "M66.669 10.244H5.122A5.122 5.122 0 115.122 0h61.547a5.122 5.122 0 110 10.244z"
13721
+ })), /*#__PURE__*/React__default.createElement("g", {
13722
+ stroke: "#3B414D",
13723
+ strokeLinecap: "round",
13724
+ strokeWidth: "6"
13725
+ }, /*#__PURE__*/React__default.createElement("path", {
13726
+ d: "M66.669 116.462H5.122a5.122 5.122 0 110-10.243h61.547a5.122 5.122 0 110 10.243z"
13727
+ }), /*#__PURE__*/React__default.createElement("path", {
13728
+ d: "M15.126 71.521l20.77-13.29 20.769 13.29a19.123 19.123 0 018.815 16.106v18.591H6.311v-18.59c0-6.52 3.323-12.592 8.815-16.107z"
13729
+ }), /*#__PURE__*/React__default.createElement("path", {
13730
+ d: "M56.665 44.94l-20.77 13.292L15.126 44.94a19.12 19.12 0 01-8.815-16.106V10.244H65.48v18.59a19.12 19.12 0 01-8.815 16.107z"
13731
+ }), /*#__PURE__*/React__default.createElement("path", {
13732
+ d: "M66.669 10.244H5.122A5.122 5.122 0 115.122 0h61.547a5.122 5.122 0 110 10.244z"
13733
+ }))), /*#__PURE__*/React__default.createElement("path", {
13734
+ stroke: "#3B414D",
13735
+ strokeLinecap: "round",
13736
+ strokeWidth: "8",
13737
+ d: "M27.663 247.376l-15.18.348M401 248l-44.96-.276m-256.445-.348l-52.372.348M454 248h-34"
13738
+ }), /*#__PURE__*/React__default.createElement("path", {
13739
+ stroke: "#3B414D",
13740
+ strokeWidth: "6",
13741
+ d: "M107.969 73H347.69a6.969 6.969 0 016.968 6.969v178.397a6.968 6.968 0 01-6.968 6.968H107.969a6.969 6.969 0 01-6.969-6.968V79.969A6.969 6.969 0 01107.969 73zM104 99h248"
13742
+ }), /*#__PURE__*/React__default.createElement("path", {
13743
+ stroke: "#45B770",
13744
+ strokeLinecap: "round",
13745
+ strokeLinejoin: "round",
13746
+ strokeWidth: "8",
13747
+ d: "M77.181 224.512L127.905 236.375"
13748
+ }), /*#__PURE__*/React__default.createElement("path", {
13749
+ fill: "#B8E4F4",
13750
+ d: "M95.74 141.218c5.753 0 10.652 3.602 12.599 8.67a5.733 5.733 0 016.092 1.987 8.512 8.512 0 013.505-.757 8.557 8.557 0 110 17.114H81.002a8.557 8.557 0 111.69-16.945c1.523-5.792 6.78-10.069 13.049-10.069zM365.823 82c9.17 0 16.7 7.01 17.532 15.963a10.567 10.567 0 016.175-1.99c5.868 0 10.625 4.757 10.625 10.625 0 5.869-4.757 10.625-10.625 10.625h-48.094c-6.868 0-12.435-5.566-12.435-12.434 0-6.868 5.567-12.435 12.435-12.435 2.791 0 5.36.931 7.435 2.484C350.952 87.432 357.75 82 365.822 82zM23.296 75.456c5.752 0 10.651 3.602 12.598 8.669a5.733 5.733 0 011.559-.22c1.84 0 3.476.866 4.532 2.208a8.52 8.52 0 013.506-.757 8.557 8.557 0 110 17.114H8.557a8.557 8.557 0 111.69-16.945c1.523-5.792 6.78-10.07 13.049-10.07zM170.219 8.845c10.946 0 19.935 8.367 20.927 19.054a12.618 12.618 0 017.372-2.375c7.004 0 12.683 5.679 12.683 12.684 0 7.004-5.68 12.683-12.683 12.683h-57.41c-8.197 0-14.843-6.646-14.843-14.844 0-8.197 6.646-14.843 14.843-14.843 3.333 0 6.398 1.112 8.876 2.966 2.485-8.841 10.599-15.325 20.235-15.325zM297.892 0c5.752 0 10.651 3.602 12.598 8.669a5.728 5.728 0 011.56-.219c1.84 0 3.475.865 4.531 2.207a8.516 8.516 0 013.506-.757 8.557 8.557 0 110 17.114h-36.935a8.557 8.557 0 01-8.556-8.557 8.557 8.557 0 0110.248-8.388C286.366 4.277 291.622 0 297.892 0z"
13751
+ })))));
13752
+ };
13753
+
13754
+ var AutopayOnIcon = function AutopayOnIcon(_ref) {
13755
+ var themeValues = _ref.themeValues;
13756
+ return /*#__PURE__*/React__default.createElement("svg", {
13757
+ xmlns: "http://www.w3.org/2000/svg",
13758
+ width: "12",
13759
+ height: "13",
13760
+ viewBox: "0 0 12 13"
13761
+ }, /*#__PURE__*/React__default.createElement("g", {
13762
+ fill: "none",
13763
+ fillRule: "evenodd",
13764
+ stroke: "none",
13765
+ strokeWidth: "1"
13766
+ }, /*#__PURE__*/React__default.createElement("path", {
13767
+ className: "autopayIcon",
13768
+ fill: themeValues.primaryColor,
13769
+ fillRule: "nonzero",
13770
+ d: "M1.898 5.75c.079 0 .141-.02.188-.059a.281.281 0 00.094-.152 3.825 3.825 0 011.394-2.144A3.838 3.838 0 016 2.563c.5 0 .98.09 1.441.27.461.179.88.44 1.254.784l-.984.985A.542.542 0 007.547 5c0 .156.055.29.164.398.11.11.242.165.398.165h3.141c.156 0 .289-.055.398-.165A.542.542 0 0011.812 5V1.86a.542.542 0 00-.164-.399.542.542 0 00-.398-.164.542.542 0 00-.398.164l-.844.844A5.699 5.699 0 006 .688c-.938 0-1.809.207-2.613.62-.805.415-1.48.981-2.028 1.7A5.726 5.726 0 00.281 5.422a.265.265 0 00.059.223c.055.07.129.105.222.105h1.336zM6 12.312c.937 0 1.809-.207 2.613-.62a5.919 5.919 0 002.028-1.7 5.726 5.726 0 001.078-2.414.265.265 0 00-.059-.223.267.267 0 00-.223-.105h-1.335c-.079 0-.141.02-.188.059a.281.281 0 00-.094.152 3.825 3.825 0 01-1.394 2.144c-.711.555-1.52.833-2.426.833-.5 0-.98-.09-1.441-.27a3.985 3.985 0 01-1.254-.785l.984-.985A.542.542 0 004.453 8a.542.542 0 00-.164-.398.542.542 0 00-.398-.164H.75a.542.542 0 00-.398.164A.542.542 0 00.187 8v3.14c0 .157.055.29.165.4.109.108.242.163.398.163.156 0 .29-.055.398-.164l.844-.844A5.699 5.699 0 006 12.312z"
13771
+ })));
13772
+ };
13773
+
13774
+ var AutopayOnIcon$1 = themeComponent(AutopayOnIcon, "Icons", fallbackValues$2, "primary");
13775
+
13633
13776
  var color$2 = "#15749D";
13634
13777
  var hoverColor$1 = "#116285";
13635
13778
  var activeColor$1 = "#0E506D";
@@ -30416,6 +30559,21 @@ validatorFns[NUMBER_LESS_THAN] = (value, args, form) => {
30416
30559
  return Number(value) < args[0];
30417
30560
  };
30418
30561
 
30562
+ const NUMBER_LESS_THAN_OR_EQUAL_TO =
30563
+ "validator/NUMBER_LESS_THAN_OR_EQUAL_TO";
30564
+ const NUMBER_LESS_THAN_OR_EQUAL_TO_ERROR =
30565
+ "error/NUMBER_LESS_THAN_OR_EQUAL_TO";
30566
+ const numberLessThanOrEqualTo = createValidator(
30567
+ NUMBER_LESS_THAN_OR_EQUAL_TO,
30568
+ NUMBER_LESS_THAN_OR_EQUAL_TO_ERROR
30569
+ );
30570
+ validatorFns[NUMBER_LESS_THAN_OR_EQUAL_TO] = (value, args, form) => {
30571
+ if (value === "") {
30572
+ return true;
30573
+ }
30574
+ return Number(value) <= args[0];
30575
+ };
30576
+
30419
30577
  const NUMBER_GREATER_THAN = "validator/NUMBER_GREATER_THAN";
30420
30578
  const NUMBER_GREATER_THAN_ERROR = "error/NUMBER_GREATER_THAN";
30421
30579
  const numberGreaterThan = createValidator(
@@ -30429,6 +30587,21 @@ validatorFns[NUMBER_GREATER_THAN] = (value, args, form) => {
30429
30587
  return Number(value) > args[0];
30430
30588
  };
30431
30589
 
30590
+ const NUMBER_GREATER_THAN_OR_EQUAL_TO =
30591
+ "validator/NUMBER_GREATER_THAN_OR_EQUAL_TO";
30592
+ const NUMBER_GREATER_THAN_OR_EQUAL_TO_ERROR =
30593
+ "error/NUMBER_GREATER_THAN_OR_EQUAL_TO";
30594
+ const numberGreaterThanOrEqualTo = createValidator(
30595
+ NUMBER_GREATER_THAN_OR_EQUAL_TO,
30596
+ NUMBER_GREATER_THAN_OR_EQUAL_TO_ERROR
30597
+ );
30598
+ validatorFns[NUMBER_GREATER_THAN_OR_EQUAL_TO] = (value, args, form) => {
30599
+ if (value === "") {
30600
+ return true;
30601
+ }
30602
+ return Number(value) >= args[0];
30603
+ };
30604
+
30432
30605
  const MATCHES_FIELD = "validator/MATCHES_FIELD";
30433
30606
  const MATCHES_FIELD_ERROR$1 = "error/MATCHES_FIELD";
30434
30607
  const matchesField = createValidator(MATCHES_FIELD, MATCHES_FIELD_ERROR$1);
@@ -30706,11 +30879,14 @@ function isDraft(value) {
30706
30879
  return !!value && !!value[DRAFT_STATE];
30707
30880
  }
30708
30881
  function isDraftable(value) {
30882
+ if (!value) { return false; }
30883
+ return isPlainObject(value) || !!value[DRAFTABLE] || !!value.constructor[DRAFTABLE];
30884
+ }
30885
+ function isPlainObject(value) {
30709
30886
  if (!value || typeof value !== "object") { return false; }
30710
30887
  if (Array.isArray(value)) { return true; }
30711
30888
  var proto = Object.getPrototypeOf(value);
30712
- if (!proto || proto === Object.prototype) { return true; }
30713
- return !!value[DRAFTABLE] || !!value.constructor[DRAFTABLE];
30889
+ return !proto || proto === Object.prototype;
30714
30890
  }
30715
30891
  var assign = Object.assign || function assign(target, value) {
30716
30892
  for (var key in value) {
@@ -30777,6 +30953,15 @@ function is(x, y) {
30777
30953
  return x !== x && y !== y;
30778
30954
  }
30779
30955
  }
30956
+ function clone(obj) {
30957
+ if (!isDraftable(obj)) { return obj; }
30958
+ if (Array.isArray(obj)) { return obj.map(clone); }
30959
+ var cloned = Object.create(Object.getPrototypeOf(obj));
30960
+
30961
+ for (var key in obj) { cloned[key] = clone(obj[key]); }
30962
+
30963
+ return cloned;
30964
+ }
30780
30965
 
30781
30966
  /** Each scope represents a `produce` call. */
30782
30967
 
@@ -31085,8 +31270,8 @@ function createHiddenProperty(target, prop, value) {
31085
31270
  }
31086
31271
 
31087
31272
  var legacyProxy = /*#__PURE__*/Object.freeze({
31088
- willFinalize: willFinalize,
31089
- createProxy: createProxy
31273
+ willFinalize: willFinalize,
31274
+ createProxy: createProxy
31090
31275
  });
31091
31276
 
31092
31277
  function willFinalize$1() {}
@@ -31234,6 +31419,9 @@ function deleteProperty(state, prop) {
31234
31419
  if (peek$1(state.base, prop) !== undefined || prop in state.base) {
31235
31420
  state.assigned[prop] = false;
31236
31421
  markChanged$1(state);
31422
+ } else if (state.assigned[prop]) {
31423
+ // if an originally not assigned property was deleted
31424
+ delete state.assigned[prop];
31237
31425
  }
31238
31426
 
31239
31427
  if (state.copy) { delete state.copy[prop]; }
@@ -31264,8 +31452,8 @@ function markChanged$1(state) {
31264
31452
  }
31265
31453
 
31266
31454
  var modernProxy = /*#__PURE__*/Object.freeze({
31267
- willFinalize: willFinalize$1,
31268
- createProxy: createProxy$1
31455
+ willFinalize: willFinalize$1,
31456
+ createProxy: createProxy$1
31269
31457
  });
31270
31458
 
31271
31459
  function generatePatches(state, basePath, patches, inversePatches) {
@@ -31316,7 +31504,6 @@ function generateArrayPatches(state, basePath, patches, inversePatches) {
31316
31504
  }
31317
31505
  }
31318
31506
 
31319
- var useRemove = end != base.length;
31320
31507
  var replaceCount = patches.length; // Process added indices.
31321
31508
 
31322
31509
  for (var i$1 = end + delta - 1; i$1 >= end; --i$1) {
@@ -31326,21 +31513,9 @@ function generateArrayPatches(state, basePath, patches, inversePatches) {
31326
31513
  path: path$1,
31327
31514
  value: copy[i$1]
31328
31515
  };
31329
-
31330
- if (useRemove) {
31331
- inversePatches.push({
31332
- op: "remove",
31333
- path: path$1
31334
- });
31335
- }
31336
- } // One "replace" patch reverses all non-splicing "add" patches.
31337
-
31338
-
31339
- if (!useRemove) {
31340
31516
  inversePatches.push({
31341
- op: "replace",
31342
- path: basePath.concat(["length"]),
31343
- value: base.length
31517
+ op: "remove",
31518
+ path: path$1
31344
31519
  });
31345
31520
  }
31346
31521
  }
@@ -31377,55 +31552,58 @@ function generateObjectPatches(state, basePath, patches, inversePatches) {
31377
31552
  });
31378
31553
  }
31379
31554
 
31380
- function applyPatches(draft, patches) {
31381
- for (var i = 0; i < patches.length; i++) {
31382
- var patch = patches[i];
31555
+ var applyPatches = function (draft, patches) {
31556
+ for (var i$1 = 0, list = patches; i$1 < list.length; i$1 += 1) {
31557
+ var patch = list[i$1];
31558
+
31383
31559
  var path = patch.path;
31560
+ var op = patch.op;
31561
+ var value = clone(patch.value); // used to clone patch to ensure original patch is not modified, see #411
31384
31562
 
31385
- if (path.length === 0 && patch.op === "replace") {
31386
- draft = patch.value;
31387
- } else {
31388
- var base = draft;
31563
+ if (!path.length) { throw new Error("Illegal state"); }
31564
+ var base = draft;
31389
31565
 
31390
- for (var i$1 = 0; i$1 < path.length - 1; i$1++) {
31391
- base = base[path[i$1]];
31392
- if (!base || typeof base !== "object") { throw new Error("Cannot apply patch, path doesn't resolve: " + path.join("/")); } // prettier-ignore
31393
- }
31566
+ for (var i = 0; i < path.length - 1; i++) {
31567
+ base = base[path[i]];
31568
+ if (!base || typeof base !== "object") { throw new Error("Cannot apply patch, path doesn't resolve: " + path.join("/")); } // prettier-ignore
31569
+ }
31394
31570
 
31395
- var key = path[path.length - 1];
31571
+ var key = path[path.length - 1];
31396
31572
 
31397
- switch (patch.op) {
31398
- case "replace":
31399
- base[key] = patch.value;
31400
- break;
31573
+ switch (op) {
31574
+ case "replace":
31575
+ // if value is an object, then it's assigned by reference
31576
+ // in the following add or remove ops, the value field inside the patch will also be modifyed
31577
+ // so we use value from the cloned patch
31578
+ base[key] = value;
31579
+ break;
31401
31580
 
31402
- case "add":
31403
- if (Array.isArray(base)) {
31404
- // TODO: support "foo/-" paths for appending to an array
31405
- base.splice(key, 0, patch.value);
31406
- } else {
31407
- base[key] = patch.value;
31408
- }
31581
+ case "add":
31582
+ if (Array.isArray(base)) {
31583
+ // TODO: support "foo/-" paths for appending to an array
31584
+ base.splice(key, 0, value);
31585
+ } else {
31586
+ base[key] = value;
31587
+ }
31409
31588
 
31410
- break;
31589
+ break;
31411
31590
 
31412
- case "remove":
31413
- if (Array.isArray(base)) {
31414
- base.splice(key, 1);
31415
- } else {
31416
- delete base[key];
31417
- }
31591
+ case "remove":
31592
+ if (Array.isArray(base)) {
31593
+ base.splice(key, 1);
31594
+ } else {
31595
+ delete base[key];
31596
+ }
31418
31597
 
31419
- break;
31598
+ break;
31420
31599
 
31421
- default:
31422
- throw new Error("Unsupported patch operation: " + patch.op);
31423
- }
31600
+ default:
31601
+ throw new Error("Unsupported patch operation: " + op);
31424
31602
  }
31425
31603
  }
31426
31604
 
31427
31605
  return draft;
31428
- }
31606
+ };
31429
31607
 
31430
31608
  function verifyMinified() {}
31431
31609
 
@@ -31504,6 +31682,28 @@ Immer.prototype.produce = function produce (base, recipe, patchListener) {
31504
31682
  }
31505
31683
  };
31506
31684
 
31685
+ Immer.prototype.produceWithPatches = function produceWithPatches (arg1, arg2, arg3) {
31686
+ var this$1 = this;
31687
+
31688
+ if (typeof arg1 === "function") {
31689
+ return function (state) {
31690
+ var args = [], len = arguments.length - 1;
31691
+ while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];
31692
+
31693
+ return this$1.produceWithPatches(state, function (draft) { return arg1.apply(void 0, [ draft ].concat( args )); });
31694
+ };
31695
+ } // non-curried form
31696
+
31697
+
31698
+ if (arg3) { throw new Error("A patch listener cannot be passed to produceWithPatches"); }
31699
+ var patches, inversePatches;
31700
+ var nextState = this.produce(arg1, arg2, function (p, ip) {
31701
+ patches = p;
31702
+ inversePatches = ip;
31703
+ });
31704
+ return [nextState, patches, inversePatches];
31705
+ };
31706
+
31507
31707
  Immer.prototype.createDraft = function createDraft (base) {
31508
31708
  if (!isDraftable(base)) {
31509
31709
  throw new Error("First argument to `createDraft` must be a plain object, an array, or an immerable object"); // prettier-ignore
@@ -31542,13 +31742,26 @@ Immer.prototype.setUseProxies = function setUseProxies (value) {
31542
31742
  };
31543
31743
 
31544
31744
  Immer.prototype.applyPatches = function applyPatches$1 (base, patches) {
31545
- // Mutate the base state when a draft is passed.
31745
+ // If a patch replaces the entire state, take that replacement as base
31746
+ // before applying patches
31747
+ var i;
31748
+
31749
+ for (i = patches.length - 1; i >= 0; i--) {
31750
+ var patch = patches[i];
31751
+
31752
+ if (patch.path.length === 0 && patch.op === "replace") {
31753
+ base = patch.value;
31754
+ break;
31755
+ }
31756
+ }
31757
+
31546
31758
  if (isDraft(base)) {
31759
+ // N.B: never hits if some patch a replacement, patches are never drafts
31547
31760
  return applyPatches(base, patches);
31548
31761
  } // Otherwise, produce a copy of the base state.
31549
31762
 
31550
31763
 
31551
- return this.produce(base, function (draft) { return applyPatches(draft, patches); });
31764
+ return this.produce(base, function (draft) { return applyPatches(draft, patches.slice(i + 1)); });
31552
31765
  };
31553
31766
  /** @internal */
31554
31767
 
@@ -31747,6 +31960,12 @@ var immer = new Immer();
31747
31960
  */
31748
31961
 
31749
31962
  var produce = immer.produce;
31963
+ /**
31964
+ * Like `produce`, but `produceWithPatches` always returns a tuple
31965
+ * [nextState, patches, inversePatches] (instead of just the next state)
31966
+ */
31967
+
31968
+ var produceWithPatches = immer.produceWithPatches.bind(immer);
31750
31969
  /**
31751
31970
  * Pass true to automatically freeze all copies created by Immer.
31752
31971
  *
@@ -35771,10 +35990,92 @@ var TitleModule = function TitleModule(_ref) {
35771
35990
  }, subtitle)));
35772
35991
  };
35773
35992
 
35993
+ var color$9 = "#15749D";
35994
+ var hoverColor$4 = "#116285";
35995
+ var activeColor$5 = "#0E506D";
35996
+ var fallbackValues$t = {
35997
+ color: color$9,
35998
+ hoverColor: hoverColor$4,
35999
+ activeColor: activeColor$5
36000
+ };
36001
+
36002
+ var AutopayModal = function AutopayModal(_ref) {
36003
+ var autoPayActive = _ref.autoPayActive,
36004
+ autoPaySchedule = _ref.autoPaySchedule,
36005
+ toggleModal = _ref.toggleModal,
36006
+ modalOpen = _ref.modalOpen,
36007
+ deactivatePaymentSchedule = _ref.deactivatePaymentSchedule,
36008
+ navigateToSettings = _ref.navigateToSettings,
36009
+ buttonLinkType = _ref.buttonLinkType,
36010
+ isMobile = _ref.isMobile,
36011
+ themeValues = _ref.themeValues;
36012
+ var modalExtraProps = {
36013
+ modalHeaderText: autoPayActive ? "Deactivate Autopay" : "Set Up Autopay",
36014
+ modalBodyText: autoPayActive ? "Are you sure you want to deactivate autopay? You will need to manually make your next payment." : "To set up autopay you must save a payment method and address in your profile. Do you want to save these now?",
36015
+ continueButtonText: autoPayActive ? "Disable Autopay" : "Add to Profile",
36016
+ useDangerButton: autoPayActive,
36017
+ continueAction: autoPayActive ? function () {
36018
+ deactivatePaymentSchedule(autoPaySchedule);
36019
+ toggleModal(false);
36020
+ } : navigateToSettings
36021
+ };
36022
+ var hoverStyles = "\n &:hover {\n .autopayIcon { fill: ".concat(themeValues.hoverColor, "; text-decoration: underline; cursor: pointer; }\n }");
36023
+ var activeStyles = "\n &:active {\n .autopayIcon { fill: ".concat(themeValues.activeColor, "; text-decoration: underline; }\n }");
36024
+ var defaultStyles = "\n .autopayIcon { fill: ".concat(themeValues.color, "; text-decoration: underline; }\n ");
36025
+ return /*#__PURE__*/React__default.createElement(Modal$1, _extends({
36026
+ ModalLink: function ModalLink() {
36027
+ return buttonLinkType ? /*#__PURE__*/React__default.createElement(ButtonWithAction, {
36028
+ text: autoPayActive ? "Manage Autopay" : "Set Up Autopay",
36029
+ variant: "tertiary",
36030
+ action: function action() {
36031
+ toggleModal(true);
36032
+ },
36033
+ dataQa: "Manage Autopay",
36034
+ extraStyles: isMobile && "flex-grow: 1; width: 100%;"
36035
+ }) : /*#__PURE__*/React__default.createElement(Box, {
36036
+ padding: "0",
36037
+ onClick: function onClick() {
36038
+ toggleModal(true);
36039
+ },
36040
+ hoverStyles: hoverStyles,
36041
+ activeStyles: activeStyles,
36042
+ extraStyles: defaultStyles
36043
+ }, /*#__PURE__*/React__default.createElement(Cluster, {
36044
+ justify: isMobile ? "flex-start" : "flex-end",
36045
+ align: "center"
36046
+ }, /*#__PURE__*/React__default.createElement(AutopayOnIcon$1, null), /*#__PURE__*/React__default.createElement(ButtonWithAction, {
36047
+ text: "Autopay On",
36048
+ variant: "smallGhost",
36049
+ dataQa: "Autopay On",
36050
+ textExtraStyles: "font-size: 0.875rem; ",
36051
+ extraStyles: "min-width: auto; padding: 0 0 0 6px;"
36052
+ })));
36053
+ },
36054
+ showModal: function showModal() {
36055
+ return toggleModal(true);
36056
+ },
36057
+ hideModal: function hideModal() {
36058
+ return toggleModal(false);
36059
+ },
36060
+ modalOpen: modalOpen
36061
+ }, modalExtraProps));
36062
+ };
36063
+
36064
+ var AutopayModalModule = themeComponent(AutopayModal, "AutopayModal", fallbackValues$t);
36065
+
35774
36066
  var AmountModule = function AmountModule(_ref) {
35775
36067
  var totalAmountDue = _ref.totalAmountDue,
35776
36068
  autoPayEnabled = _ref.autoPayEnabled,
35777
- isMobile = _ref.isMobile;
36069
+ isMobile = _ref.isMobile,
36070
+ deactivatePaymentSchedule = _ref.deactivatePaymentSchedule,
36071
+ navigateToSettings = _ref.navigateToSettings,
36072
+ autoPaySchedule = _ref.autoPaySchedule;
36073
+
36074
+ var _useState = React.useState(false),
36075
+ _useState2 = _slicedToArray(_useState, 2),
36076
+ modalOpen = _useState2[0],
36077
+ toggleModal = _useState2[1];
36078
+
35778
36079
  return /*#__PURE__*/React__default.createElement(Box, {
35779
36080
  padding: "0 0.25rem 0 0"
35780
36081
  }, /*#__PURE__*/React__default.createElement(Stack, {
@@ -35782,29 +36083,43 @@ var AmountModule = function AmountModule(_ref) {
35782
36083
  }, /*#__PURE__*/React__default.createElement(Text$1, {
35783
36084
  variant: "pS",
35784
36085
  weight: FONT_WEIGHT_SEMIBOLD,
35785
- extraStyles: "text-align: right;"
36086
+ extraStyles: isMobile ? "text-align: left;" : "text-align: right;"
35786
36087
  }, isMobile ? "Total Due" : "Total Amount Due"), /*#__PURE__*/React__default.createElement(AmountCallout$1, {
35787
36088
  amount: displayCurrency(totalAmountDue),
35788
- textAlign: "right"
35789
- }), autoPayEnabled && /*#__PURE__*/React__default.createElement(Text$1, {
35790
- variant: "p",
35791
- weight: FONT_WEIGHT_REGULAR,
35792
- color: REGENT_GREY,
35793
- extraStyles: "font-style: italic; text-align: right;"
35794
- }, isMobile ? "Autopay On" : "Autopay Enabled")));
36089
+ textAlign: isMobile ? "left" : "right"
36090
+ }), autoPayEnabled && /*#__PURE__*/React__default.createElement(AutopayModalModule, {
36091
+ autoPayActive: autoPayEnabled,
36092
+ autoPaySchedule: autoPaySchedule,
36093
+ toggleModal: toggleModal,
36094
+ modalOpen: modalOpen,
36095
+ navigateToSettings: navigateToSettings,
36096
+ deactivatePaymentSchedule: deactivatePaymentSchedule,
36097
+ isMobile: isMobile
36098
+ })));
35795
36099
  };
35796
36100
 
35797
36101
  var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
35798
36102
  var isMobile = _ref.isMobile,
35799
36103
  obligations = _ref.obligations,
35800
36104
  config = _ref.config,
35801
- actions = _ref.actions;
36105
+ actions = _ref.actions,
36106
+ autoPayEnabled = _ref.autoPayEnabled,
36107
+ autoPayAvailable = _ref.autoPayAvailable,
36108
+ handleAutopayAction = _ref.handleAutopayAction,
36109
+ deactivatePaymentSchedule = _ref.deactivatePaymentSchedule,
36110
+ navigateToSettings = _ref.navigateToSettings,
36111
+ autoPaySchedule = _ref.autoPaySchedule;
35802
36112
 
35803
36113
  var _useState = React.useState(false),
35804
36114
  _useState2 = _slicedToArray(_useState, 2),
35805
36115
  isLoading = _useState2[0],
35806
36116
  setIsLoading = _useState2[1];
35807
36117
 
36118
+ var _useState3 = React.useState(false),
36119
+ _useState4 = _slicedToArray(_useState3, 2),
36120
+ modalOpen = _useState4[0],
36121
+ toggleModal = _useState4[1];
36122
+
35808
36123
  var obligationSlug = config.obligationSlug;
35809
36124
  var createPaymentFromProfile = actions.createPaymentFromProfile,
35810
36125
  setDetailedObligation = actions.setDetailedObligation;
@@ -35820,12 +36135,47 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
35820
36135
  };
35821
36136
 
35822
36137
  return /*#__PURE__*/React__default.createElement(Box, {
35823
- padding: "16px 0 0",
36138
+ padding: isMobile ? "0" : "16px 0 0",
35824
36139
  minWidth: "100%",
35825
36140
  borderSize: "1px",
35826
36141
  borderColor: GHOST_GREY,
35827
36142
  borderWidthOverride: "1px 0 0 0",
35828
36143
  key: "".concat(obligations[0].id, "-actions")
36144
+ }, isMobile && /*#__PURE__*/React__default.createElement(Box, {
36145
+ padding: "16px 24px",
36146
+ borderSize: "1px",
36147
+ borderColor: GHOST_GREY,
36148
+ borderWidthOverride: "0 0 1px 0"
36149
+ }, /*#__PURE__*/React__default.createElement(Cluster, {
36150
+ justify: "space-between",
36151
+ align: "center",
36152
+ nowrap: true
36153
+ }, /*#__PURE__*/React__default.createElement(Box, {
36154
+ padding: "0",
36155
+ width: "100%"
36156
+ }, /*#__PURE__*/React__default.createElement(AmountModule, {
36157
+ totalAmountDue: obligations.reduce(function (acc, curr) {
36158
+ return acc + curr.amountDue;
36159
+ }, 0),
36160
+ autoPayEnabled: autoPayEnabled,
36161
+ isMobile: isMobile,
36162
+ deactivatePaymentSchedule: deactivatePaymentSchedule,
36163
+ navigateToSettings: navigateToSettings,
36164
+ autoPaySchedule: autoPaySchedule
36165
+ })), /*#__PURE__*/React__default.createElement(Box, {
36166
+ padding: "0",
36167
+ width: "100%"
36168
+ }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
36169
+ isLoading: isLoading,
36170
+ action: function action() {
36171
+ return handleClick(obligations);
36172
+ },
36173
+ text: "Pay Now",
36174
+ variant: isMobile ? "smallSecondary" : "secondary",
36175
+ dataQa: "Pay Now",
36176
+ extraStyles: isMobile && "flex-grow: 1; width: 100%;"
36177
+ })))), /*#__PURE__*/React__default.createElement(Box, {
36178
+ padding: isMobile ? "16px" : "0"
35829
36179
  }, /*#__PURE__*/React__default.createElement(Cluster, {
35830
36180
  justify: isMobile ? "center" : "flex-end",
35831
36181
  align: "center",
@@ -35834,12 +36184,30 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
35834
36184
  padding: isMobile ? "0 8px 0 0" : "8px",
35835
36185
  extraStyles: isMobile && "flex-grow: 1;"
35836
36186
  }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
35837
- variant: isMobile ? "smallSecondary" : "secondary",
36187
+ variant: "tertiary",
35838
36188
  text: config.type === "ACCOUNT" ? "Account Details" : "Property Details",
35839
36189
  action: handleDetailsClick,
35840
36190
  dataQa: "Account Details",
35841
36191
  extraStyles: isMobile && "flex-grow: 1; width: 100%;"
35842
36192
  })), /*#__PURE__*/React__default.createElement(Box, {
36193
+ padding: isMobile ? "0 8px 0 0" : "8px",
36194
+ extraStyles: isMobile && "flex-grow: 1;"
36195
+ }, autoPayAvailable && !autoPayEnabled ? /*#__PURE__*/React__default.createElement(ButtonWithAction, {
36196
+ variant: "tertiary",
36197
+ text: "Set Up Autopay",
36198
+ action: handleAutopayAction,
36199
+ dataQa: "Set Up Autopay",
36200
+ extraStyles: isMobile && "flex-grow: 1; width: 100%;"
36201
+ }) : /*#__PURE__*/React__default.createElement(AutopayModalModule, {
36202
+ autoPayActive: autoPayEnabled,
36203
+ autoPaySchedule: autoPaySchedule,
36204
+ toggleModal: toggleModal,
36205
+ modalOpen: modalOpen,
36206
+ navigateToSettings: navigateToSettings,
36207
+ deactivatePaymentSchedule: deactivatePaymentSchedule,
36208
+ buttonLinkType: true,
36209
+ isMobile: isMobile
36210
+ })), !isMobile && /*#__PURE__*/React__default.createElement(Box, {
35843
36211
  padding: isMobile ? "0 0 0 8px" : "8px",
35844
36212
  extraStyles: isMobile && "flex-grow: 1;"
35845
36213
  }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
@@ -35847,11 +36215,11 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
35847
36215
  action: function action() {
35848
36216
  return handleClick(obligations);
35849
36217
  },
35850
- text: "Make Payment",
35851
- variant: isMobile ? "smallPrimary" : "primary",
35852
- dataQa: "Make Payment",
36218
+ text: "Pay Now",
36219
+ variant: isMobile ? "smallSecondary" : "secondary",
36220
+ dataQa: "Pay Now",
35853
36221
  extraStyles: isMobile && "flex-grow: 1; width: 100%;"
35854
- }))));
36222
+ })))));
35855
36223
  };
35856
36224
 
35857
36225
  var Obligation = function Obligation(_ref) {
@@ -35859,13 +36227,20 @@ var Obligation = function Obligation(_ref) {
35859
36227
  obligations = _ref.obligations,
35860
36228
  actions = _ref.actions,
35861
36229
  autoPayEnabled = _ref.autoPayEnabled,
36230
+ autoPayAvailable = _ref.autoPayAvailable,
36231
+ handleAutopayAction = _ref.handleAutopayAction,
36232
+ deactivatePaymentSchedule = _ref.deactivatePaymentSchedule,
36233
+ autoPaySchedule = _ref.autoPaySchedule,
36234
+ navigateToSettings = _ref.navigateToSettings,
35862
36235
  isMobile = _ref.isMobile;
35863
36236
  var obligation = obligations[0];
35864
36237
  var customAttributes = obligation.customAttributes;
35865
36238
  return /*#__PURE__*/React__default.createElement(Box, {
35866
- background: WHITE,
36239
+ padding: "0",
35867
36240
  borderRadius: "4px",
35868
36241
  boxShadow: "0px 0px 5px 0px ".concat(GHOST_GREY)
36242
+ }, /*#__PURE__*/React__default.createElement(Box, {
36243
+ background: WHITE
35869
36244
  }, /*#__PURE__*/React__default.createElement(Stack, {
35870
36245
  childGap: "14px"
35871
36246
  }, /*#__PURE__*/React__default.createElement(Box, {
@@ -35882,7 +36257,7 @@ var Obligation = function Obligation(_ref) {
35882
36257
  }, /*#__PURE__*/React__default.createElement(Cluster, {
35883
36258
  justify: "flex-start",
35884
36259
  align: "center"
35885
- }, !isMobile && /*#__PURE__*/React__default.createElement(IconsModule, {
36260
+ }, /*#__PURE__*/React__default.createElement(IconsModule, {
35886
36261
  icon: config.icon,
35887
36262
  iconDefault: config.iconDefault,
35888
36263
  configIconMap: config.iconMap,
@@ -35893,18 +36268,38 @@ var Obligation = function Obligation(_ref) {
35893
36268
  subtitle: obligation.subDescription,
35894
36269
  titleColor: BRIGHT_GREY,
35895
36270
  isMobile: isMobile
35896
- }))), /*#__PURE__*/React__default.createElement(AmountModule, {
36271
+ }))), !isMobile && /*#__PURE__*/React__default.createElement(AmountModule, {
35897
36272
  totalAmountDue: obligations.reduce(function (acc, curr) {
35898
36273
  return acc + curr.amountDue;
35899
36274
  }, 0),
35900
36275
  autoPayEnabled: autoPayEnabled,
36276
+ isMobile: isMobile,
36277
+ deactivatePaymentSchedule: deactivatePaymentSchedule,
36278
+ navigateToSettings: navigateToSettings,
36279
+ autoPaySchedule: autoPaySchedule
36280
+ }))), !isMobile && /*#__PURE__*/React__default.createElement(PaymentDetailsActions, {
36281
+ obligations: obligations,
36282
+ autoPayEnabled: autoPayEnabled,
36283
+ autoPayAvailable: autoPayAvailable,
36284
+ handleAutopayAction: handleAutopayAction,
36285
+ deactivatePaymentSchedule: deactivatePaymentSchedule,
36286
+ autoPaySchedule: autoPaySchedule,
36287
+ navigateToSettings: navigateToSettings,
36288
+ config: config,
36289
+ actions: actions,
35901
36290
  isMobile: isMobile
35902
- }))), /*#__PURE__*/React__default.createElement(PaymentDetailsActions, {
36291
+ }))), isMobile && /*#__PURE__*/React__default.createElement(PaymentDetailsActions, {
35903
36292
  obligations: obligations,
36293
+ autoPayEnabled: autoPayEnabled,
36294
+ autoPayAvailable: autoPayAvailable,
36295
+ handleAutopayAction: handleAutopayAction,
36296
+ deactivatePaymentSchedule: deactivatePaymentSchedule,
36297
+ autoPaySchedule: autoPaySchedule,
36298
+ navigateToSettings: navigateToSettings,
35904
36299
  config: config,
35905
36300
  actions: actions,
35906
36301
  isMobile: isMobile
35907
- })));
36302
+ }));
35908
36303
  };
35909
36304
 
35910
36305
  var PartialAmountForm = function PartialAmountForm(_ref) {
@@ -35930,7 +36325,7 @@ var PartialAmountForm = function PartialAmountForm(_ref) {
35930
36325
  }, []);
35931
36326
  }
35932
36327
 
35933
- var amountErrors = (_amountErrors = {}, _defineProperty(_amountErrors, required.error, "Amount is required"), _defineProperty(_amountErrors, numberGreaterThan.error, "Your total payment must be greater than ".concat(displayCurrency(minimum))), _defineProperty(_amountErrors, numberLessThan.error, "Your total payment must be less than ".concat(displayCurrency(maximum))), _amountErrors);
36328
+ var amountErrors = (_amountErrors = {}, _defineProperty(_amountErrors, required.error, "Amount is required"), _defineProperty(_amountErrors, numberGreaterThan.error, "Your total payment must be greater than ".concat(displayCurrency(minimum))), _defineProperty(_amountErrors, numberLessThanOrEqualTo.error, "Your total payment must be less than ".concat(displayCurrency(maximum))), _amountErrors);
35934
36329
  var lineItemsNew = Array.isArray(lineItems) ? lineItems : [];
35935
36330
  return /*#__PURE__*/React__default.createElement(FormContainer$1, {
35936
36331
  variant: variant,
@@ -35975,7 +36370,7 @@ var createPartialAmountFormState = function createPartialAmountFormState(lineIte
35975
36370
  }, []))];
35976
36371
 
35977
36372
  if (!!maximum) {
35978
- validators.push(validateSum(numberLessThan(maximum), lineItems.filter(function (lineItem) {
36373
+ validators.push(validateSum(numberLessThanOrEqualTo(maximum), lineItems.filter(function (lineItem) {
35979
36374
  return lineItem != item;
35980
36375
  }).reduce(function (acc, curr) {
35981
36376
  return [].concat(_toConsumableArray(acc), [curr.id]);
@@ -36071,7 +36466,7 @@ var labeledAmountTotal = {
36071
36466
  "default": "h6",
36072
36467
  small: "pL"
36073
36468
  };
36074
- var fallbackValues$t = {
36469
+ var fallbackValues$u = {
36075
36470
  backgroundColor: backgroundColor$7,
36076
36471
  lineItem: lineItem,
36077
36472
  labeledAmountSubtotal: labeledAmountSubtotal,
@@ -36232,7 +36627,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
36232
36627
  });
36233
36628
  };
36234
36629
 
36235
- var PaymentDetails$1 = themeComponent(PaymentDetails, "PaymentDetails", fallbackValues$t, "default");
36630
+ var PaymentDetails$1 = themeComponent(PaymentDetails, "PaymentDetails", fallbackValues$u, "default");
36236
36631
 
36237
36632
  var linkColor$1 = {
36238
36633
  "default": "#357fb8",
@@ -36254,7 +36649,7 @@ var modalLinkHoverFocus = {
36254
36649
  "default": "",
36255
36650
  footer: "outline: none; text-decoration: underline;"
36256
36651
  };
36257
- var fallbackValues$u = {
36652
+ var fallbackValues$v = {
36258
36653
  linkColor: linkColor$1,
36259
36654
  fontSize: fontSize$8,
36260
36655
  lineHeight: lineHeight$4,
@@ -36317,7 +36712,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
36317
36712
  });
36318
36713
  };
36319
36714
 
36320
- var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$u, "default");
36715
+ var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$v, "default");
36321
36716
 
36322
36717
  function _templateObject$z() {
36323
36718
  var data = _taggedTemplateLiteral([""]);
@@ -36703,7 +37098,7 @@ var headingDisabledColor = "".concat(ATHENS_GREY);
36703
37098
  var bodyBackgroundColor$1 = "#eeeeee";
36704
37099
  var borderColor$2 = "".concat(GREY_CHATEAU);
36705
37100
  var focusStyles$1 = "outline: none;";
36706
- var fallbackValues$v = {
37101
+ var fallbackValues$w = {
36707
37102
  headingBackgroundColor: headingBackgroundColor$1,
36708
37103
  headingDisabledColor: headingDisabledColor,
36709
37104
  bodyBackgroundColor: bodyBackgroundColor$1,
@@ -36890,7 +37285,7 @@ var RadioSection = function RadioSection(_ref) {
36890
37285
  })));
36891
37286
  };
36892
37287
 
36893
- var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$v);
37288
+ var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$w);
36894
37289
 
36895
37290
  var RegistrationForm = function RegistrationForm(_ref) {
36896
37291
  var _emailErrorMessages, _passwordErrorMessage;
@@ -37177,7 +37572,7 @@ var ResetPasswordSuccess = withWindowSize(ResetConfirmationForm$2);
37177
37572
  var activeTabBackground = "#FFFFFF";
37178
37573
  var activeTabAccent = "#15749D";
37179
37574
  var activeTabHover = "#B8D5E1";
37180
- var fallbackValues$w = {
37575
+ var fallbackValues$x = {
37181
37576
  activeTabBackground: activeTabBackground,
37182
37577
  activeTabAccent: activeTabAccent,
37183
37578
  activeTabHover: activeTabHover
@@ -37233,7 +37628,7 @@ var TabSidebar = function TabSidebar(_ref) {
37233
37628
  })));
37234
37629
  };
37235
37630
 
37236
- var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$w);
37631
+ var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$x);
37237
37632
 
37238
37633
  var backgroundColor$8 = {
37239
37634
  "default": "#ffffff",
@@ -37263,7 +37658,7 @@ var modalLinkHoverFocus$1 = {
37263
37658
  "default": "",
37264
37659
  footer: "outline: none; text-decoration: underline;"
37265
37660
  };
37266
- var fallbackValues$x = {
37661
+ var fallbackValues$y = {
37267
37662
  backgroundColor: backgroundColor$8,
37268
37663
  linkColor: linkColor$2,
37269
37664
  border: border$2,
@@ -37327,7 +37722,7 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
37327
37722
  });
37328
37723
  };
37329
37724
 
37330
- var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$x, "default");
37725
+ var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$y, "default");
37331
37726
 
37332
37727
  function _templateObject2$l() {
37333
37728
  var data = _taggedTemplateLiteral([""]);
@@ -37414,6 +37809,37 @@ var TermsAndConditions = function TermsAndConditions(_ref) {
37414
37809
  })))));
37415
37810
  };
37416
37811
 
37812
+ var Timeout = function Timeout(_ref) {
37813
+ var onLogout = _ref.onLogout;
37814
+ return /*#__PURE__*/React__default.createElement(Cover, null, /*#__PURE__*/React__default.createElement(Center, {
37815
+ intrinsic: true
37816
+ }, /*#__PURE__*/React__default.createElement(Box, {
37817
+ padding: "0",
37818
+ maxWidth: "500px"
37819
+ }, /*#__PURE__*/React__default.createElement(Stack, {
37820
+ childGap: "32px",
37821
+ justify: "center"
37822
+ }, /*#__PURE__*/React__default.createElement(Center, {
37823
+ intrinsic: true
37824
+ }, /*#__PURE__*/React__default.createElement(TimeoutImage, null)), /*#__PURE__*/React__default.createElement(Box, {
37825
+ padding: "0"
37826
+ }, /*#__PURE__*/React__default.createElement(Heading$1, {
37827
+ textAlign: "center",
37828
+ weight: FONT_WEIGHT_BOLD
37829
+ }, "Request Timed Out"), /*#__PURE__*/React__default.createElement(Paragraph$1, {
37830
+ variant: "pL",
37831
+ extraStyles: "text-align: center;"
37832
+ }, "That was taking longer than we expected and your request timed out. Please log out, log back in, and then try again.")), /*#__PURE__*/React__default.createElement(Center, {
37833
+ intrinsic: true
37834
+ }, /*#__PURE__*/React__default.createElement(Box, {
37835
+ padding: "0"
37836
+ }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
37837
+ variant: "primary",
37838
+ text: "Log out",
37839
+ action: onLogout
37840
+ })))))));
37841
+ };
37842
+
37417
37843
  var WorkflowTile = function WorkflowTile(_ref) {
37418
37844
  var _ref$workflowName = _ref.workflowName,
37419
37845
  workflowName = _ref$workflowName === void 0 ? "Test Workflow" : _ref$workflowName,
@@ -37457,7 +37883,7 @@ var WorkflowTile = function WorkflowTile(_ref) {
37457
37883
  };
37458
37884
 
37459
37885
  var pageBackground = "#F6F6F9";
37460
- var fallbackValues$y = {
37886
+ var fallbackValues$z = {
37461
37887
  pageBackground: pageBackground
37462
37888
  };
37463
37889
 
@@ -37504,7 +37930,7 @@ var CenterSingle = function CenterSingle(_ref) {
37504
37930
  })));
37505
37931
  };
37506
37932
 
37507
- var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$y));
37933
+ var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$z));
37508
37934
 
37509
37935
  var CenterStack = function CenterStack(_ref) {
37510
37936
  var header = _ref.header,
@@ -37546,7 +37972,7 @@ var CenterStack = function CenterStack(_ref) {
37546
37972
  })));
37547
37973
  };
37548
37974
 
37549
- var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$y));
37975
+ var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$z));
37550
37976
 
37551
37977
  var CenterSingle$2 = function CenterSingle(_ref) {
37552
37978
  var header = _ref.header,
@@ -37586,7 +38012,7 @@ var CenterSingle$2 = function CenterSingle(_ref) {
37586
38012
  })));
37587
38013
  };
37588
38014
 
37589
- var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$y));
38015
+ var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$z));
37590
38016
 
37591
38017
  var SidebarSingleContent = function SidebarSingleContent(_ref) {
37592
38018
  var header = _ref.header,
@@ -37640,7 +38066,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
37640
38066
  })));
37641
38067
  };
37642
38068
 
37643
- var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$y));
38069
+ var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$z));
37644
38070
 
37645
38071
  var SidebarStackContent = function SidebarStackContent(_ref) {
37646
38072
  var header = _ref.header,
@@ -37711,7 +38137,7 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
37711
38137
  })));
37712
38138
  };
37713
38139
 
37714
- var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$y));
38140
+ var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$z));
37715
38141
 
37716
38142
 
37717
38143
 
@@ -37738,6 +38164,7 @@ exports.AddObligation = AddObligation$1;
37738
38164
  exports.AddressForm = AddressForm;
37739
38165
  exports.Alert = Alert$1;
37740
38166
  exports.AmountCallout = AmountCallout$1;
38167
+ exports.AutopayOnIcon = AutopayOnIcon$1;
37741
38168
  exports.BankIcon = BankIcon;
37742
38169
  exports.Box = Box;
37743
38170
  exports.Breadcrumb = Breadcrumbs;
@@ -37834,6 +38261,8 @@ exports.TableListItem = TableListItem;
37834
38261
  exports.TermsAndConditions = TermsAndConditions;
37835
38262
  exports.TermsAndConditionsModal = TermsAndConditionsModal$1;
37836
38263
  exports.Text = Text$1;
38264
+ exports.Timeout = Timeout;
38265
+ exports.TimeoutImage = TimeoutImage;
37837
38266
  exports.ToggleSwitch = ToggleSwitch$1;
37838
38267
  exports.VerifiedEmailIcon = VerifiedEmailIcon$1;
37839
38268
  exports.WorkflowTile = WorkflowTile;