@thecb/components 3.3.10 → 3.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +392 -103
- package/package.json +3 -3
- package/src/components/atoms/button-with-action/ButtonWithAction.theme.js +20 -6
- package/src/components/atoms/icons/AutopayOnIcon.js +28 -0
- package/src/components/atoms/icons/icons.stories.js +3 -1
- package/src/components/atoms/icons/index.js +3 -1
- package/src/components/molecules/obligation/Obligation.js +58 -21
- package/src/components/molecules/obligation/modules/AmountModule.js +38 -30
- package/src/components/molecules/obligation/modules/AutopayModalModule.js +99 -0
- package/src/components/molecules/obligation/modules/AutopayModalModule.theme.js +9 -0
- package/src/components/molecules/obligation/modules/PaymentDetailsActions.js +110 -31
- package/src/components/molecules/partial-amount-form/PartialAmountForm.js +6 -2
- package/src/components/molecules/partial-amount-form/PartialAmountForm.state.js +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -12283,6 +12283,7 @@ var padding = {
|
|
|
12283
12283
|
smallPrimary: "0.75rem 1rem",
|
|
12284
12284
|
smallSecondary: "0.75rem 1rem",
|
|
12285
12285
|
smallGhost: "0",
|
|
12286
|
+
tertiary: "1rem 1.25rem",
|
|
12286
12287
|
ghost: "0.65rem 0",
|
|
12287
12288
|
danger: "1rem 1.25rem",
|
|
12288
12289
|
whiteSecondary: "0.75rem 2rem",
|
|
@@ -12296,6 +12297,7 @@ var color$1 = {
|
|
|
12296
12297
|
smallSecondary: "#15749D",
|
|
12297
12298
|
smallGhost: "#15749D",
|
|
12298
12299
|
ghost: "#15749D",
|
|
12300
|
+
tertiary: "#15749D",
|
|
12299
12301
|
danger: "#FFFFFF",
|
|
12300
12302
|
whiteSecondary: "#FFFFFF",
|
|
12301
12303
|
whitePrimary: "#FFFFFF"
|
|
@@ -12308,6 +12310,7 @@ var fontSizeVariant = {
|
|
|
12308
12310
|
smallSecondary: "pS",
|
|
12309
12311
|
smallGhost: "p",
|
|
12310
12312
|
ghost: "pL",
|
|
12313
|
+
tertiary: "pS",
|
|
12311
12314
|
danger: "pS",
|
|
12312
12315
|
whiteSecondary: "pS",
|
|
12313
12316
|
whitePrimary: "pS"
|
|
@@ -12320,6 +12323,7 @@ var fontWeight = {
|
|
|
12320
12323
|
smallSecondary: "600",
|
|
12321
12324
|
smallGhost: "400",
|
|
12322
12325
|
ghost: "600",
|
|
12326
|
+
tertiary: "600",
|
|
12323
12327
|
danger: "600",
|
|
12324
12328
|
whiteSecondary: "600",
|
|
12325
12329
|
whitePrimary: "600"
|
|
@@ -12332,6 +12336,7 @@ var height = {
|
|
|
12332
12336
|
smallSecondary: "2.5rem",
|
|
12333
12337
|
smallGhost: "1.5rem",
|
|
12334
12338
|
ghost: "3rem",
|
|
12339
|
+
tertiary: "3rem",
|
|
12335
12340
|
danger: "3rem",
|
|
12336
12341
|
whiteSecondary: "3rem",
|
|
12337
12342
|
whitePrimary: "auto"
|
|
@@ -12344,6 +12349,7 @@ var minWidth = {
|
|
|
12344
12349
|
smallSecondary: "100px",
|
|
12345
12350
|
smallGhost: "100px",
|
|
12346
12351
|
ghost: "130px",
|
|
12352
|
+
tertiary: "130px",
|
|
12347
12353
|
danger: "130px",
|
|
12348
12354
|
whiteSecondary: "160px",
|
|
12349
12355
|
whitePrimary: "130px"
|
|
@@ -12356,6 +12362,7 @@ var backgroundColor = {
|
|
|
12356
12362
|
smallSecondary: "transparent",
|
|
12357
12363
|
smallGhost: "transparent",
|
|
12358
12364
|
ghost: "transparent",
|
|
12365
|
+
tertiary: "transparent",
|
|
12359
12366
|
danger: "#ED125F",
|
|
12360
12367
|
whiteSecondary: "transparent",
|
|
12361
12368
|
whitePrimary: "transparent"
|
|
@@ -12368,6 +12375,7 @@ var border = {
|
|
|
12368
12375
|
smallSecondary: "2px solid #15749D",
|
|
12369
12376
|
smallGhost: "none",
|
|
12370
12377
|
ghost: "none",
|
|
12378
|
+
tertiary: "none",
|
|
12371
12379
|
danger: "2px solid #ED125F",
|
|
12372
12380
|
whiteSecondary: "2px solid white",
|
|
12373
12381
|
whitePrimary: "2px solid transparent"
|
|
@@ -12378,8 +12386,9 @@ var hoverBackgroundColor = {
|
|
|
12378
12386
|
back: "transparent",
|
|
12379
12387
|
smallPrimary: "#116285",
|
|
12380
12388
|
smallSecondary: "transparent",
|
|
12381
|
-
ghost: "transparent",
|
|
12382
12389
|
smallGhost: "transparent",
|
|
12390
|
+
ghost: "transparent",
|
|
12391
|
+
tertiary: "transparent",
|
|
12383
12392
|
danger: "#BA002C",
|
|
12384
12393
|
whiteSecondary: "transparent",
|
|
12385
12394
|
whitePrimary: "transparent"
|
|
@@ -12390,8 +12399,9 @@ var hoverBorderColor = {
|
|
|
12390
12399
|
back: "#DCEAF1",
|
|
12391
12400
|
smallPrimary: "#116285",
|
|
12392
12401
|
smallSecondary: "#DCEAF1",
|
|
12393
|
-
ghost: "transparent",
|
|
12394
12402
|
smallGhost: "transparent",
|
|
12403
|
+
ghost: "transparent",
|
|
12404
|
+
tertiary: "transparent",
|
|
12395
12405
|
danger: "#BA002C",
|
|
12396
12406
|
whiteSecondary: "2px solid transparent",
|
|
12397
12407
|
whitePrimary: "2px solid transparent"
|
|
@@ -12402,8 +12412,9 @@ var hoverColor = {
|
|
|
12402
12412
|
back: "#116285",
|
|
12403
12413
|
smallPrimary: "#FFFFFF",
|
|
12404
12414
|
smallSecondary: "#116285",
|
|
12405
|
-
ghost: "#116285",
|
|
12406
12415
|
smallGhost: "#116285",
|
|
12416
|
+
ghost: "#116285",
|
|
12417
|
+
tertiary: "#116285",
|
|
12407
12418
|
danger: "#FFFFFF",
|
|
12408
12419
|
whiteSecondary: "#FFFFFF",
|
|
12409
12420
|
whitePrimary: "#FFFFFF"
|
|
@@ -12414,8 +12425,9 @@ var activeBackgroundColor = {
|
|
|
12414
12425
|
back: "transparent",
|
|
12415
12426
|
smallPrimary: "#0E506D",
|
|
12416
12427
|
smallSecondary: "transparent",
|
|
12417
|
-
ghost: "transparent",
|
|
12418
12428
|
smallGhost: "transparent",
|
|
12429
|
+
ghost: "transparent",
|
|
12430
|
+
tertiary: "transparent",
|
|
12419
12431
|
danger: "#870000",
|
|
12420
12432
|
whiteSecondary: "transparent",
|
|
12421
12433
|
whitePrimary: "transparent"
|
|
@@ -12426,8 +12438,9 @@ var activeBorderColor = {
|
|
|
12426
12438
|
back: "#0E506D",
|
|
12427
12439
|
smallPrimary: "#0E506D",
|
|
12428
12440
|
smallSecondary: "#0E506D",
|
|
12429
|
-
ghost: "transparent",
|
|
12430
12441
|
smallGhost: "transparent",
|
|
12442
|
+
ghost: "transparent",
|
|
12443
|
+
tertiary: "transparent",
|
|
12431
12444
|
danger: "#870000",
|
|
12432
12445
|
whiteSecondary: "2px solid transparent",
|
|
12433
12446
|
whitePrimary: "2px solid transparent"
|
|
@@ -12438,8 +12451,9 @@ var activeColor = {
|
|
|
12438
12451
|
back: "#0E506D",
|
|
12439
12452
|
smallPrimary: "#FFFFFF",
|
|
12440
12453
|
smallSecondary: "#0E506D",
|
|
12441
|
-
ghost: "#0E506D",
|
|
12442
12454
|
smallGhost: "#0E506D",
|
|
12455
|
+
ghost: "#0E506D",
|
|
12456
|
+
tertiary: "#0E506D",
|
|
12443
12457
|
danger: "#FFFFFF",
|
|
12444
12458
|
whiteSecondary: "#FFFFFF",
|
|
12445
12459
|
whitePrimary: "#FFFFFF"
|
|
@@ -13616,6 +13630,28 @@ var IconAdd = function IconAdd() {
|
|
|
13616
13630
|
}))))));
|
|
13617
13631
|
};
|
|
13618
13632
|
|
|
13633
|
+
var AutopayOnIcon = function AutopayOnIcon(_ref) {
|
|
13634
|
+
var themeValues = _ref.themeValues;
|
|
13635
|
+
return /*#__PURE__*/React__default.createElement("svg", {
|
|
13636
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13637
|
+
width: "12",
|
|
13638
|
+
height: "13",
|
|
13639
|
+
viewBox: "0 0 12 13"
|
|
13640
|
+
}, /*#__PURE__*/React__default.createElement("g", {
|
|
13641
|
+
fill: "none",
|
|
13642
|
+
fillRule: "evenodd",
|
|
13643
|
+
stroke: "none",
|
|
13644
|
+
strokeWidth: "1"
|
|
13645
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
13646
|
+
className: "autopayIcon",
|
|
13647
|
+
fill: themeValues.primaryColor,
|
|
13648
|
+
fillRule: "nonzero",
|
|
13649
|
+
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"
|
|
13650
|
+
})));
|
|
13651
|
+
};
|
|
13652
|
+
|
|
13653
|
+
var AutopayOnIcon$1 = themeComponent(AutopayOnIcon, "Icons", fallbackValues$2, "primary");
|
|
13654
|
+
|
|
13619
13655
|
var color$2 = "#15749D";
|
|
13620
13656
|
var hoverColor$1 = "#116285";
|
|
13621
13657
|
var activeColor$1 = "#0E506D";
|
|
@@ -30402,6 +30438,21 @@ validatorFns[NUMBER_LESS_THAN] = (value, args, form) => {
|
|
|
30402
30438
|
return Number(value) < args[0];
|
|
30403
30439
|
};
|
|
30404
30440
|
|
|
30441
|
+
const NUMBER_LESS_THAN_OR_EQUAL_TO =
|
|
30442
|
+
"validator/NUMBER_LESS_THAN_OR_EQUAL_TO";
|
|
30443
|
+
const NUMBER_LESS_THAN_OR_EQUAL_TO_ERROR =
|
|
30444
|
+
"error/NUMBER_LESS_THAN_OR_EQUAL_TO";
|
|
30445
|
+
const numberLessThanOrEqualTo = createValidator(
|
|
30446
|
+
NUMBER_LESS_THAN_OR_EQUAL_TO,
|
|
30447
|
+
NUMBER_LESS_THAN_OR_EQUAL_TO_ERROR
|
|
30448
|
+
);
|
|
30449
|
+
validatorFns[NUMBER_LESS_THAN_OR_EQUAL_TO] = (value, args, form) => {
|
|
30450
|
+
if (value === "") {
|
|
30451
|
+
return true;
|
|
30452
|
+
}
|
|
30453
|
+
return Number(value) <= args[0];
|
|
30454
|
+
};
|
|
30455
|
+
|
|
30405
30456
|
const NUMBER_GREATER_THAN = "validator/NUMBER_GREATER_THAN";
|
|
30406
30457
|
const NUMBER_GREATER_THAN_ERROR = "error/NUMBER_GREATER_THAN";
|
|
30407
30458
|
const numberGreaterThan = createValidator(
|
|
@@ -30415,6 +30466,21 @@ validatorFns[NUMBER_GREATER_THAN] = (value, args, form) => {
|
|
|
30415
30466
|
return Number(value) > args[0];
|
|
30416
30467
|
};
|
|
30417
30468
|
|
|
30469
|
+
const NUMBER_GREATER_THAN_OR_EQUAL_TO =
|
|
30470
|
+
"validator/NUMBER_GREATER_THAN_OR_EQUAL_TO";
|
|
30471
|
+
const NUMBER_GREATER_THAN_OR_EQUAL_TO_ERROR =
|
|
30472
|
+
"error/NUMBER_GREATER_THAN_OR_EQUAL_TO";
|
|
30473
|
+
const numberGreaterThanOrEqualTo = createValidator(
|
|
30474
|
+
NUMBER_GREATER_THAN_OR_EQUAL_TO,
|
|
30475
|
+
NUMBER_GREATER_THAN_OR_EQUAL_TO_ERROR
|
|
30476
|
+
);
|
|
30477
|
+
validatorFns[NUMBER_GREATER_THAN_OR_EQUAL_TO] = (value, args, form) => {
|
|
30478
|
+
if (value === "") {
|
|
30479
|
+
return true;
|
|
30480
|
+
}
|
|
30481
|
+
return Number(value) >= args[0];
|
|
30482
|
+
};
|
|
30483
|
+
|
|
30418
30484
|
const MATCHES_FIELD = "validator/MATCHES_FIELD";
|
|
30419
30485
|
const MATCHES_FIELD_ERROR$1 = "error/MATCHES_FIELD";
|
|
30420
30486
|
const matchesField = createValidator(MATCHES_FIELD, MATCHES_FIELD_ERROR$1);
|
|
@@ -30692,11 +30758,14 @@ function isDraft(value) {
|
|
|
30692
30758
|
return !!value && !!value[DRAFT_STATE];
|
|
30693
30759
|
}
|
|
30694
30760
|
function isDraftable(value) {
|
|
30761
|
+
if (!value) { return false; }
|
|
30762
|
+
return isPlainObject(value) || !!value[DRAFTABLE] || !!value.constructor[DRAFTABLE];
|
|
30763
|
+
}
|
|
30764
|
+
function isPlainObject(value) {
|
|
30695
30765
|
if (!value || typeof value !== "object") { return false; }
|
|
30696
30766
|
if (Array.isArray(value)) { return true; }
|
|
30697
30767
|
var proto = Object.getPrototypeOf(value);
|
|
30698
|
-
|
|
30699
|
-
return !!value[DRAFTABLE] || !!value.constructor[DRAFTABLE];
|
|
30768
|
+
return !proto || proto === Object.prototype;
|
|
30700
30769
|
}
|
|
30701
30770
|
var assign = Object.assign || function assign(target, value) {
|
|
30702
30771
|
for (var key in value) {
|
|
@@ -30763,6 +30832,15 @@ function is(x, y) {
|
|
|
30763
30832
|
return x !== x && y !== y;
|
|
30764
30833
|
}
|
|
30765
30834
|
}
|
|
30835
|
+
function clone(obj) {
|
|
30836
|
+
if (!isDraftable(obj)) { return obj; }
|
|
30837
|
+
if (Array.isArray(obj)) { return obj.map(clone); }
|
|
30838
|
+
var cloned = Object.create(Object.getPrototypeOf(obj));
|
|
30839
|
+
|
|
30840
|
+
for (var key in obj) { cloned[key] = clone(obj[key]); }
|
|
30841
|
+
|
|
30842
|
+
return cloned;
|
|
30843
|
+
}
|
|
30766
30844
|
|
|
30767
30845
|
/** Each scope represents a `produce` call. */
|
|
30768
30846
|
|
|
@@ -31071,8 +31149,8 @@ function createHiddenProperty(target, prop, value) {
|
|
|
31071
31149
|
}
|
|
31072
31150
|
|
|
31073
31151
|
var legacyProxy = /*#__PURE__*/Object.freeze({
|
|
31074
|
-
|
|
31075
|
-
|
|
31152
|
+
willFinalize: willFinalize,
|
|
31153
|
+
createProxy: createProxy
|
|
31076
31154
|
});
|
|
31077
31155
|
|
|
31078
31156
|
function willFinalize$1() {}
|
|
@@ -31220,6 +31298,9 @@ function deleteProperty(state, prop) {
|
|
|
31220
31298
|
if (peek$1(state.base, prop) !== undefined || prop in state.base) {
|
|
31221
31299
|
state.assigned[prop] = false;
|
|
31222
31300
|
markChanged$1(state);
|
|
31301
|
+
} else if (state.assigned[prop]) {
|
|
31302
|
+
// if an originally not assigned property was deleted
|
|
31303
|
+
delete state.assigned[prop];
|
|
31223
31304
|
}
|
|
31224
31305
|
|
|
31225
31306
|
if (state.copy) { delete state.copy[prop]; }
|
|
@@ -31250,8 +31331,8 @@ function markChanged$1(state) {
|
|
|
31250
31331
|
}
|
|
31251
31332
|
|
|
31252
31333
|
var modernProxy = /*#__PURE__*/Object.freeze({
|
|
31253
|
-
|
|
31254
|
-
|
|
31334
|
+
willFinalize: willFinalize$1,
|
|
31335
|
+
createProxy: createProxy$1
|
|
31255
31336
|
});
|
|
31256
31337
|
|
|
31257
31338
|
function generatePatches(state, basePath, patches, inversePatches) {
|
|
@@ -31302,7 +31383,6 @@ function generateArrayPatches(state, basePath, patches, inversePatches) {
|
|
|
31302
31383
|
}
|
|
31303
31384
|
}
|
|
31304
31385
|
|
|
31305
|
-
var useRemove = end != base.length;
|
|
31306
31386
|
var replaceCount = patches.length; // Process added indices.
|
|
31307
31387
|
|
|
31308
31388
|
for (var i$1 = end + delta - 1; i$1 >= end; --i$1) {
|
|
@@ -31312,21 +31392,9 @@ function generateArrayPatches(state, basePath, patches, inversePatches) {
|
|
|
31312
31392
|
path: path$1,
|
|
31313
31393
|
value: copy[i$1]
|
|
31314
31394
|
};
|
|
31315
|
-
|
|
31316
|
-
if (useRemove) {
|
|
31317
|
-
inversePatches.push({
|
|
31318
|
-
op: "remove",
|
|
31319
|
-
path: path$1
|
|
31320
|
-
});
|
|
31321
|
-
}
|
|
31322
|
-
} // One "replace" patch reverses all non-splicing "add" patches.
|
|
31323
|
-
|
|
31324
|
-
|
|
31325
|
-
if (!useRemove) {
|
|
31326
31395
|
inversePatches.push({
|
|
31327
|
-
op: "
|
|
31328
|
-
path:
|
|
31329
|
-
value: base.length
|
|
31396
|
+
op: "remove",
|
|
31397
|
+
path: path$1
|
|
31330
31398
|
});
|
|
31331
31399
|
}
|
|
31332
31400
|
}
|
|
@@ -31363,55 +31431,58 @@ function generateObjectPatches(state, basePath, patches, inversePatches) {
|
|
|
31363
31431
|
});
|
|
31364
31432
|
}
|
|
31365
31433
|
|
|
31366
|
-
function
|
|
31367
|
-
for (var i = 0; i <
|
|
31368
|
-
var patch =
|
|
31434
|
+
var applyPatches = function (draft, patches) {
|
|
31435
|
+
for (var i$1 = 0, list = patches; i$1 < list.length; i$1 += 1) {
|
|
31436
|
+
var patch = list[i$1];
|
|
31437
|
+
|
|
31369
31438
|
var path = patch.path;
|
|
31439
|
+
var op = patch.op;
|
|
31440
|
+
var value = clone(patch.value); // used to clone patch to ensure original patch is not modified, see #411
|
|
31370
31441
|
|
|
31371
|
-
if (path.length
|
|
31372
|
-
|
|
31373
|
-
} else {
|
|
31374
|
-
var base = draft;
|
|
31442
|
+
if (!path.length) { throw new Error("Illegal state"); }
|
|
31443
|
+
var base = draft;
|
|
31375
31444
|
|
|
31376
|
-
|
|
31377
|
-
|
|
31378
|
-
|
|
31379
|
-
|
|
31445
|
+
for (var i = 0; i < path.length - 1; i++) {
|
|
31446
|
+
base = base[path[i]];
|
|
31447
|
+
if (!base || typeof base !== "object") { throw new Error("Cannot apply patch, path doesn't resolve: " + path.join("/")); } // prettier-ignore
|
|
31448
|
+
}
|
|
31380
31449
|
|
|
31381
|
-
|
|
31450
|
+
var key = path[path.length - 1];
|
|
31382
31451
|
|
|
31383
|
-
|
|
31384
|
-
|
|
31385
|
-
|
|
31386
|
-
|
|
31452
|
+
switch (op) {
|
|
31453
|
+
case "replace":
|
|
31454
|
+
// if value is an object, then it's assigned by reference
|
|
31455
|
+
// in the following add or remove ops, the value field inside the patch will also be modifyed
|
|
31456
|
+
// so we use value from the cloned patch
|
|
31457
|
+
base[key] = value;
|
|
31458
|
+
break;
|
|
31387
31459
|
|
|
31388
|
-
|
|
31389
|
-
|
|
31390
|
-
|
|
31391
|
-
|
|
31392
|
-
|
|
31393
|
-
|
|
31394
|
-
|
|
31460
|
+
case "add":
|
|
31461
|
+
if (Array.isArray(base)) {
|
|
31462
|
+
// TODO: support "foo/-" paths for appending to an array
|
|
31463
|
+
base.splice(key, 0, value);
|
|
31464
|
+
} else {
|
|
31465
|
+
base[key] = value;
|
|
31466
|
+
}
|
|
31395
31467
|
|
|
31396
|
-
|
|
31468
|
+
break;
|
|
31397
31469
|
|
|
31398
|
-
|
|
31399
|
-
|
|
31400
|
-
|
|
31401
|
-
|
|
31402
|
-
|
|
31403
|
-
|
|
31470
|
+
case "remove":
|
|
31471
|
+
if (Array.isArray(base)) {
|
|
31472
|
+
base.splice(key, 1);
|
|
31473
|
+
} else {
|
|
31474
|
+
delete base[key];
|
|
31475
|
+
}
|
|
31404
31476
|
|
|
31405
|
-
|
|
31477
|
+
break;
|
|
31406
31478
|
|
|
31407
|
-
|
|
31408
|
-
|
|
31409
|
-
}
|
|
31479
|
+
default:
|
|
31480
|
+
throw new Error("Unsupported patch operation: " + op);
|
|
31410
31481
|
}
|
|
31411
31482
|
}
|
|
31412
31483
|
|
|
31413
31484
|
return draft;
|
|
31414
|
-
}
|
|
31485
|
+
};
|
|
31415
31486
|
|
|
31416
31487
|
function verifyMinified() {}
|
|
31417
31488
|
|
|
@@ -31490,6 +31561,28 @@ Immer.prototype.produce = function produce (base, recipe, patchListener) {
|
|
|
31490
31561
|
}
|
|
31491
31562
|
};
|
|
31492
31563
|
|
|
31564
|
+
Immer.prototype.produceWithPatches = function produceWithPatches (arg1, arg2, arg3) {
|
|
31565
|
+
var this$1 = this;
|
|
31566
|
+
|
|
31567
|
+
if (typeof arg1 === "function") {
|
|
31568
|
+
return function (state) {
|
|
31569
|
+
var args = [], len = arguments.length - 1;
|
|
31570
|
+
while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];
|
|
31571
|
+
|
|
31572
|
+
return this$1.produceWithPatches(state, function (draft) { return arg1.apply(void 0, [ draft ].concat( args )); });
|
|
31573
|
+
};
|
|
31574
|
+
} // non-curried form
|
|
31575
|
+
|
|
31576
|
+
|
|
31577
|
+
if (arg3) { throw new Error("A patch listener cannot be passed to produceWithPatches"); }
|
|
31578
|
+
var patches, inversePatches;
|
|
31579
|
+
var nextState = this.produce(arg1, arg2, function (p, ip) {
|
|
31580
|
+
patches = p;
|
|
31581
|
+
inversePatches = ip;
|
|
31582
|
+
});
|
|
31583
|
+
return [nextState, patches, inversePatches];
|
|
31584
|
+
};
|
|
31585
|
+
|
|
31493
31586
|
Immer.prototype.createDraft = function createDraft (base) {
|
|
31494
31587
|
if (!isDraftable(base)) {
|
|
31495
31588
|
throw new Error("First argument to `createDraft` must be a plain object, an array, or an immerable object"); // prettier-ignore
|
|
@@ -31528,13 +31621,26 @@ Immer.prototype.setUseProxies = function setUseProxies (value) {
|
|
|
31528
31621
|
};
|
|
31529
31622
|
|
|
31530
31623
|
Immer.prototype.applyPatches = function applyPatches$1 (base, patches) {
|
|
31531
|
-
//
|
|
31624
|
+
// If a patch replaces the entire state, take that replacement as base
|
|
31625
|
+
// before applying patches
|
|
31626
|
+
var i;
|
|
31627
|
+
|
|
31628
|
+
for (i = patches.length - 1; i >= 0; i--) {
|
|
31629
|
+
var patch = patches[i];
|
|
31630
|
+
|
|
31631
|
+
if (patch.path.length === 0 && patch.op === "replace") {
|
|
31632
|
+
base = patch.value;
|
|
31633
|
+
break;
|
|
31634
|
+
}
|
|
31635
|
+
}
|
|
31636
|
+
|
|
31532
31637
|
if (isDraft(base)) {
|
|
31638
|
+
// N.B: never hits if some patch a replacement, patches are never drafts
|
|
31533
31639
|
return applyPatches(base, patches);
|
|
31534
31640
|
} // Otherwise, produce a copy of the base state.
|
|
31535
31641
|
|
|
31536
31642
|
|
|
31537
|
-
return this.produce(base, function (draft) { return applyPatches(draft, patches); });
|
|
31643
|
+
return this.produce(base, function (draft) { return applyPatches(draft, patches.slice(i + 1)); });
|
|
31538
31644
|
};
|
|
31539
31645
|
/** @internal */
|
|
31540
31646
|
|
|
@@ -31733,6 +31839,12 @@ var immer = new Immer();
|
|
|
31733
31839
|
*/
|
|
31734
31840
|
|
|
31735
31841
|
var produce = immer.produce;
|
|
31842
|
+
/**
|
|
31843
|
+
* Like `produce`, but `produceWithPatches` always returns a tuple
|
|
31844
|
+
* [nextState, patches, inversePatches] (instead of just the next state)
|
|
31845
|
+
*/
|
|
31846
|
+
|
|
31847
|
+
var produceWithPatches = immer.produceWithPatches.bind(immer);
|
|
31736
31848
|
/**
|
|
31737
31849
|
* Pass true to automatically freeze all copies created by Immer.
|
|
31738
31850
|
*
|
|
@@ -35757,10 +35869,92 @@ var TitleModule = function TitleModule(_ref) {
|
|
|
35757
35869
|
}, subtitle)));
|
|
35758
35870
|
};
|
|
35759
35871
|
|
|
35872
|
+
var color$9 = "#15749D";
|
|
35873
|
+
var hoverColor$4 = "#116285";
|
|
35874
|
+
var activeColor$5 = "#0E506D";
|
|
35875
|
+
var fallbackValues$t = {
|
|
35876
|
+
color: color$9,
|
|
35877
|
+
hoverColor: hoverColor$4,
|
|
35878
|
+
activeColor: activeColor$5
|
|
35879
|
+
};
|
|
35880
|
+
|
|
35881
|
+
var AutopayModal = function AutopayModal(_ref) {
|
|
35882
|
+
var autoPayActive = _ref.autoPayActive,
|
|
35883
|
+
autoPaySchedule = _ref.autoPaySchedule,
|
|
35884
|
+
toggleModal = _ref.toggleModal,
|
|
35885
|
+
modalOpen = _ref.modalOpen,
|
|
35886
|
+
deactivatePaymentSchedule = _ref.deactivatePaymentSchedule,
|
|
35887
|
+
navigateToSettings = _ref.navigateToSettings,
|
|
35888
|
+
buttonLinkType = _ref.buttonLinkType,
|
|
35889
|
+
isMobile = _ref.isMobile,
|
|
35890
|
+
themeValues = _ref.themeValues;
|
|
35891
|
+
var modalExtraProps = {
|
|
35892
|
+
modalHeaderText: autoPayActive ? "Deactivate Autopay" : "Set Up Autopay",
|
|
35893
|
+
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?",
|
|
35894
|
+
continueButtonText: autoPayActive ? "Disable Autopay" : "Add to Profile",
|
|
35895
|
+
useDangerButton: autoPayActive,
|
|
35896
|
+
continueAction: autoPayActive ? function () {
|
|
35897
|
+
deactivatePaymentSchedule(autoPaySchedule);
|
|
35898
|
+
toggleModal(false);
|
|
35899
|
+
} : navigateToSettings
|
|
35900
|
+
};
|
|
35901
|
+
var hoverStyles = "\n &:hover {\n .autopayIcon { fill: ".concat(themeValues.hoverColor, "; text-decoration: underline; }\n }");
|
|
35902
|
+
var activeStyles = "\n &:active {\n .autopayIcon { fill: ".concat(themeValues.activeColor, "; text-decoration: underline; }\n }");
|
|
35903
|
+
var defaultStyles = "\n .autopayIcon { fill: ".concat(themeValues.color, "; text-decoration: underline; }\n ");
|
|
35904
|
+
return /*#__PURE__*/React__default.createElement(Modal$1, _extends({
|
|
35905
|
+
ModalLink: function ModalLink() {
|
|
35906
|
+
return buttonLinkType ? /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
35907
|
+
text: autoPayActive ? "Manage Autopay" : "Set Up Autopay",
|
|
35908
|
+
variant: "tertiary",
|
|
35909
|
+
action: function action() {
|
|
35910
|
+
toggleModal(true);
|
|
35911
|
+
},
|
|
35912
|
+
dataQa: "Manage Autopay",
|
|
35913
|
+
extraStyles: isMobile && "flex-grow: 1; width: 100%;"
|
|
35914
|
+
}) : /*#__PURE__*/React__default.createElement(Box, {
|
|
35915
|
+
padding: "0",
|
|
35916
|
+
onClick: function onClick() {
|
|
35917
|
+
toggleModal(true);
|
|
35918
|
+
},
|
|
35919
|
+
hoverStyles: hoverStyles,
|
|
35920
|
+
activeStyles: activeStyles,
|
|
35921
|
+
extraStyles: defaultStyles
|
|
35922
|
+
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
35923
|
+
justify: isMobile ? "flex-start" : "flex-end",
|
|
35924
|
+
align: "center"
|
|
35925
|
+
}, /*#__PURE__*/React__default.createElement(AutopayOnIcon$1, null), /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
35926
|
+
text: "Autopay On",
|
|
35927
|
+
variant: "smallGhost",
|
|
35928
|
+
dataQa: "Autopay On",
|
|
35929
|
+
textExtraStyles: "font-size: 0.875rem; ",
|
|
35930
|
+
extraStyles: "min-width: auto; padding: 0 0 0 6px;"
|
|
35931
|
+
})));
|
|
35932
|
+
},
|
|
35933
|
+
showModal: function showModal() {
|
|
35934
|
+
return toggleModal(true);
|
|
35935
|
+
},
|
|
35936
|
+
hideModal: function hideModal() {
|
|
35937
|
+
return toggleModal(false);
|
|
35938
|
+
},
|
|
35939
|
+
modalOpen: modalOpen
|
|
35940
|
+
}, modalExtraProps));
|
|
35941
|
+
};
|
|
35942
|
+
|
|
35943
|
+
var AutopayModalModule = themeComponent(AutopayModal, "AutopayModal", fallbackValues$t);
|
|
35944
|
+
|
|
35760
35945
|
var AmountModule = function AmountModule(_ref) {
|
|
35761
35946
|
var totalAmountDue = _ref.totalAmountDue,
|
|
35762
35947
|
autoPayEnabled = _ref.autoPayEnabled,
|
|
35763
|
-
isMobile = _ref.isMobile
|
|
35948
|
+
isMobile = _ref.isMobile,
|
|
35949
|
+
deactivatePaymentSchedule = _ref.deactivatePaymentSchedule,
|
|
35950
|
+
navigateToSettings = _ref.navigateToSettings,
|
|
35951
|
+
autoPaySchedule = _ref.autoPaySchedule;
|
|
35952
|
+
|
|
35953
|
+
var _useState = React.useState(false),
|
|
35954
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
35955
|
+
modalOpen = _useState2[0],
|
|
35956
|
+
toggleModal = _useState2[1];
|
|
35957
|
+
|
|
35764
35958
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
35765
35959
|
padding: "0 0.25rem 0 0"
|
|
35766
35960
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
@@ -35768,29 +35962,43 @@ var AmountModule = function AmountModule(_ref) {
|
|
|
35768
35962
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
35769
35963
|
variant: "pS",
|
|
35770
35964
|
weight: FONT_WEIGHT_SEMIBOLD,
|
|
35771
|
-
extraStyles: "text-align: right;"
|
|
35965
|
+
extraStyles: isMobile ? "text-align: left;" : "text-align: right;"
|
|
35772
35966
|
}, isMobile ? "Total Due" : "Total Amount Due"), /*#__PURE__*/React__default.createElement(AmountCallout$1, {
|
|
35773
35967
|
amount: displayCurrency(totalAmountDue),
|
|
35774
|
-
textAlign: "right"
|
|
35775
|
-
}), autoPayEnabled && /*#__PURE__*/React__default.createElement(
|
|
35776
|
-
|
|
35777
|
-
|
|
35778
|
-
|
|
35779
|
-
|
|
35780
|
-
|
|
35968
|
+
textAlign: isMobile ? "left" : "right"
|
|
35969
|
+
}), autoPayEnabled && /*#__PURE__*/React__default.createElement(AutopayModalModule, {
|
|
35970
|
+
autoPayActive: autoPayEnabled,
|
|
35971
|
+
autoPaySchedule: autoPaySchedule,
|
|
35972
|
+
toggleModal: toggleModal,
|
|
35973
|
+
modalOpen: modalOpen,
|
|
35974
|
+
navigateToSettings: navigateToSettings,
|
|
35975
|
+
deactivatePaymentSchedule: deactivatePaymentSchedule,
|
|
35976
|
+
isMobile: isMobile
|
|
35977
|
+
})));
|
|
35781
35978
|
};
|
|
35782
35979
|
|
|
35783
35980
|
var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
35784
35981
|
var isMobile = _ref.isMobile,
|
|
35785
35982
|
obligations = _ref.obligations,
|
|
35786
35983
|
config = _ref.config,
|
|
35787
|
-
actions = _ref.actions
|
|
35984
|
+
actions = _ref.actions,
|
|
35985
|
+
autoPayEnabled = _ref.autoPayEnabled,
|
|
35986
|
+
autoPayAvailable = _ref.autoPayAvailable,
|
|
35987
|
+
handleAutopayAction = _ref.handleAutopayAction,
|
|
35988
|
+
deactivatePaymentSchedule = _ref.deactivatePaymentSchedule,
|
|
35989
|
+
navigateToSettings = _ref.navigateToSettings,
|
|
35990
|
+
autoPaySchedule = _ref.autoPaySchedule;
|
|
35788
35991
|
|
|
35789
35992
|
var _useState = React.useState(false),
|
|
35790
35993
|
_useState2 = _slicedToArray(_useState, 2),
|
|
35791
35994
|
isLoading = _useState2[0],
|
|
35792
35995
|
setIsLoading = _useState2[1];
|
|
35793
35996
|
|
|
35997
|
+
var _useState3 = React.useState(false),
|
|
35998
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
35999
|
+
modalOpen = _useState4[0],
|
|
36000
|
+
toggleModal = _useState4[1];
|
|
36001
|
+
|
|
35794
36002
|
var obligationSlug = config.obligationSlug;
|
|
35795
36003
|
var createPaymentFromProfile = actions.createPaymentFromProfile,
|
|
35796
36004
|
setDetailedObligation = actions.setDetailedObligation;
|
|
@@ -35806,12 +36014,47 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
|
35806
36014
|
};
|
|
35807
36015
|
|
|
35808
36016
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
35809
|
-
padding: "16px 0 0",
|
|
36017
|
+
padding: isMobile ? "0" : "16px 0 0",
|
|
35810
36018
|
minWidth: "100%",
|
|
35811
36019
|
borderSize: "1px",
|
|
35812
36020
|
borderColor: GHOST_GREY,
|
|
35813
36021
|
borderWidthOverride: "1px 0 0 0",
|
|
35814
36022
|
key: "".concat(obligations[0].id, "-actions")
|
|
36023
|
+
}, isMobile && /*#__PURE__*/React__default.createElement(Box, {
|
|
36024
|
+
padding: "16px 24px",
|
|
36025
|
+
borderSize: "1px",
|
|
36026
|
+
borderColor: GHOST_GREY,
|
|
36027
|
+
borderWidthOverride: "0 0 1px 0"
|
|
36028
|
+
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
36029
|
+
justify: "space-between",
|
|
36030
|
+
align: "center",
|
|
36031
|
+
nowrap: true
|
|
36032
|
+
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
36033
|
+
padding: "0",
|
|
36034
|
+
width: "100%"
|
|
36035
|
+
}, /*#__PURE__*/React__default.createElement(AmountModule, {
|
|
36036
|
+
totalAmountDue: obligations.reduce(function (acc, curr) {
|
|
36037
|
+
return acc + curr.amountDue;
|
|
36038
|
+
}, 0),
|
|
36039
|
+
autoPayEnabled: autoPayEnabled,
|
|
36040
|
+
isMobile: isMobile,
|
|
36041
|
+
deactivatePaymentSchedule: deactivatePaymentSchedule,
|
|
36042
|
+
navigateToSettings: navigateToSettings,
|
|
36043
|
+
autoPaySchedule: autoPaySchedule
|
|
36044
|
+
})), /*#__PURE__*/React__default.createElement(Box, {
|
|
36045
|
+
padding: "0",
|
|
36046
|
+
width: "100%"
|
|
36047
|
+
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
36048
|
+
isLoading: isLoading,
|
|
36049
|
+
action: function action() {
|
|
36050
|
+
return handleClick(obligations);
|
|
36051
|
+
},
|
|
36052
|
+
text: "Pay Now",
|
|
36053
|
+
variant: isMobile ? "smallSecondary" : "secondary",
|
|
36054
|
+
dataQa: "Pay Now",
|
|
36055
|
+
extraStyles: isMobile && "flex-grow: 1; width: 100%;"
|
|
36056
|
+
})))), /*#__PURE__*/React__default.createElement(Box, {
|
|
36057
|
+
padding: isMobile ? "16px" : "0"
|
|
35815
36058
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
35816
36059
|
justify: isMobile ? "center" : "flex-end",
|
|
35817
36060
|
align: "center",
|
|
@@ -35820,12 +36063,30 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
|
35820
36063
|
padding: isMobile ? "0 8px 0 0" : "8px",
|
|
35821
36064
|
extraStyles: isMobile && "flex-grow: 1;"
|
|
35822
36065
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
35823
|
-
variant:
|
|
36066
|
+
variant: "tertiary",
|
|
35824
36067
|
text: config.type === "ACCOUNT" ? "Account Details" : "Property Details",
|
|
35825
36068
|
action: handleDetailsClick,
|
|
35826
36069
|
dataQa: "Account Details",
|
|
35827
36070
|
extraStyles: isMobile && "flex-grow: 1; width: 100%;"
|
|
35828
36071
|
})), /*#__PURE__*/React__default.createElement(Box, {
|
|
36072
|
+
padding: isMobile ? "0 8px 0 0" : "8px",
|
|
36073
|
+
extraStyles: isMobile && "flex-grow: 1;"
|
|
36074
|
+
}, autoPayAvailable && !autoPayEnabled ? /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
36075
|
+
variant: "tertiary",
|
|
36076
|
+
text: "Set Up Autopay",
|
|
36077
|
+
action: handleAutopayAction,
|
|
36078
|
+
dataQa: "Set Up Autopay",
|
|
36079
|
+
extraStyles: isMobile && "flex-grow: 1; width: 100%;"
|
|
36080
|
+
}) : /*#__PURE__*/React__default.createElement(AutopayModalModule, {
|
|
36081
|
+
autoPayActive: autoPayEnabled,
|
|
36082
|
+
autoPaySchedule: autoPaySchedule,
|
|
36083
|
+
toggleModal: toggleModal,
|
|
36084
|
+
modalOpen: modalOpen,
|
|
36085
|
+
navigateToSettings: navigateToSettings,
|
|
36086
|
+
deactivatePaymentSchedule: deactivatePaymentSchedule,
|
|
36087
|
+
buttonLinkType: true,
|
|
36088
|
+
isMobile: isMobile
|
|
36089
|
+
})), !isMobile && /*#__PURE__*/React__default.createElement(Box, {
|
|
35829
36090
|
padding: isMobile ? "0 0 0 8px" : "8px",
|
|
35830
36091
|
extraStyles: isMobile && "flex-grow: 1;"
|
|
35831
36092
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
@@ -35833,11 +36094,11 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
|
35833
36094
|
action: function action() {
|
|
35834
36095
|
return handleClick(obligations);
|
|
35835
36096
|
},
|
|
35836
|
-
text: "
|
|
35837
|
-
variant: isMobile ? "
|
|
35838
|
-
dataQa: "
|
|
36097
|
+
text: "Pay Now",
|
|
36098
|
+
variant: isMobile ? "smallSecondary" : "secondary",
|
|
36099
|
+
dataQa: "Pay Now",
|
|
35839
36100
|
extraStyles: isMobile && "flex-grow: 1; width: 100%;"
|
|
35840
|
-
}))));
|
|
36101
|
+
})))));
|
|
35841
36102
|
};
|
|
35842
36103
|
|
|
35843
36104
|
var Obligation = function Obligation(_ref) {
|
|
@@ -35845,13 +36106,20 @@ var Obligation = function Obligation(_ref) {
|
|
|
35845
36106
|
obligations = _ref.obligations,
|
|
35846
36107
|
actions = _ref.actions,
|
|
35847
36108
|
autoPayEnabled = _ref.autoPayEnabled,
|
|
36109
|
+
autoPayAvailable = _ref.autoPayAvailable,
|
|
36110
|
+
handleAutopayAction = _ref.handleAutopayAction,
|
|
36111
|
+
deactivatePaymentSchedule = _ref.deactivatePaymentSchedule,
|
|
36112
|
+
autoPaySchedule = _ref.autoPaySchedule,
|
|
36113
|
+
navigateToSettings = _ref.navigateToSettings,
|
|
35848
36114
|
isMobile = _ref.isMobile;
|
|
35849
36115
|
var obligation = obligations[0];
|
|
35850
36116
|
var customAttributes = obligation.customAttributes;
|
|
35851
36117
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
35852
|
-
|
|
36118
|
+
padding: "0",
|
|
35853
36119
|
borderRadius: "4px",
|
|
35854
36120
|
boxShadow: "0px 0px 5px 0px ".concat(GHOST_GREY)
|
|
36121
|
+
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
36122
|
+
background: WHITE
|
|
35855
36123
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
35856
36124
|
childGap: "14px"
|
|
35857
36125
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -35868,7 +36136,7 @@ var Obligation = function Obligation(_ref) {
|
|
|
35868
36136
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
35869
36137
|
justify: "flex-start",
|
|
35870
36138
|
align: "center"
|
|
35871
|
-
},
|
|
36139
|
+
}, /*#__PURE__*/React__default.createElement(IconsModule, {
|
|
35872
36140
|
icon: config.icon,
|
|
35873
36141
|
iconDefault: config.iconDefault,
|
|
35874
36142
|
configIconMap: config.iconMap,
|
|
@@ -35879,18 +36147,38 @@ var Obligation = function Obligation(_ref) {
|
|
|
35879
36147
|
subtitle: obligation.subDescription,
|
|
35880
36148
|
titleColor: BRIGHT_GREY,
|
|
35881
36149
|
isMobile: isMobile
|
|
35882
|
-
}))), /*#__PURE__*/React__default.createElement(AmountModule, {
|
|
36150
|
+
}))), !isMobile && /*#__PURE__*/React__default.createElement(AmountModule, {
|
|
35883
36151
|
totalAmountDue: obligations.reduce(function (acc, curr) {
|
|
35884
36152
|
return acc + curr.amountDue;
|
|
35885
36153
|
}, 0),
|
|
35886
36154
|
autoPayEnabled: autoPayEnabled,
|
|
36155
|
+
isMobile: isMobile,
|
|
36156
|
+
deactivatePaymentSchedule: deactivatePaymentSchedule,
|
|
36157
|
+
navigateToSettings: navigateToSettings,
|
|
36158
|
+
autoPaySchedule: autoPaySchedule
|
|
36159
|
+
}))), !isMobile && /*#__PURE__*/React__default.createElement(PaymentDetailsActions, {
|
|
36160
|
+
obligations: obligations,
|
|
36161
|
+
autoPayEnabled: autoPayEnabled,
|
|
36162
|
+
autoPayAvailable: autoPayAvailable,
|
|
36163
|
+
handleAutopayAction: handleAutopayAction,
|
|
36164
|
+
deactivatePaymentSchedule: deactivatePaymentSchedule,
|
|
36165
|
+
autoPaySchedule: autoPaySchedule,
|
|
36166
|
+
navigateToSettings: navigateToSettings,
|
|
36167
|
+
config: config,
|
|
36168
|
+
actions: actions,
|
|
35887
36169
|
isMobile: isMobile
|
|
35888
|
-
}))), /*#__PURE__*/React__default.createElement(PaymentDetailsActions, {
|
|
36170
|
+
}))), isMobile && /*#__PURE__*/React__default.createElement(PaymentDetailsActions, {
|
|
35889
36171
|
obligations: obligations,
|
|
36172
|
+
autoPayEnabled: autoPayEnabled,
|
|
36173
|
+
autoPayAvailable: autoPayAvailable,
|
|
36174
|
+
handleAutopayAction: handleAutopayAction,
|
|
36175
|
+
deactivatePaymentSchedule: deactivatePaymentSchedule,
|
|
36176
|
+
autoPaySchedule: autoPaySchedule,
|
|
36177
|
+
navigateToSettings: navigateToSettings,
|
|
35890
36178
|
config: config,
|
|
35891
36179
|
actions: actions,
|
|
35892
36180
|
isMobile: isMobile
|
|
35893
|
-
}))
|
|
36181
|
+
}));
|
|
35894
36182
|
};
|
|
35895
36183
|
|
|
35896
36184
|
var PartialAmountForm = function PartialAmountForm(_ref) {
|
|
@@ -35916,7 +36204,7 @@ var PartialAmountForm = function PartialAmountForm(_ref) {
|
|
|
35916
36204
|
}, []);
|
|
35917
36205
|
}
|
|
35918
36206
|
|
|
35919
|
-
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,
|
|
36207
|
+
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);
|
|
35920
36208
|
var lineItemsNew = Array.isArray(lineItems) ? lineItems : [];
|
|
35921
36209
|
return /*#__PURE__*/React__default.createElement(FormContainer$1, {
|
|
35922
36210
|
variant: variant,
|
|
@@ -35961,7 +36249,7 @@ var createPartialAmountFormState = function createPartialAmountFormState(lineIte
|
|
|
35961
36249
|
}, []))];
|
|
35962
36250
|
|
|
35963
36251
|
if (!!maximum) {
|
|
35964
|
-
validators.push(validateSum(
|
|
36252
|
+
validators.push(validateSum(numberLessThanOrEqualTo(maximum), lineItems.filter(function (lineItem) {
|
|
35965
36253
|
return lineItem != item;
|
|
35966
36254
|
}).reduce(function (acc, curr) {
|
|
35967
36255
|
return [].concat(_toConsumableArray(acc), [curr.id]);
|
|
@@ -36057,7 +36345,7 @@ var labeledAmountTotal = {
|
|
|
36057
36345
|
"default": "h6",
|
|
36058
36346
|
small: "pL"
|
|
36059
36347
|
};
|
|
36060
|
-
var fallbackValues$
|
|
36348
|
+
var fallbackValues$u = {
|
|
36061
36349
|
backgroundColor: backgroundColor$7,
|
|
36062
36350
|
lineItem: lineItem,
|
|
36063
36351
|
labeledAmountSubtotal: labeledAmountSubtotal,
|
|
@@ -36218,7 +36506,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
36218
36506
|
});
|
|
36219
36507
|
};
|
|
36220
36508
|
|
|
36221
|
-
var PaymentDetails$1 = themeComponent(PaymentDetails, "PaymentDetails", fallbackValues$
|
|
36509
|
+
var PaymentDetails$1 = themeComponent(PaymentDetails, "PaymentDetails", fallbackValues$u, "default");
|
|
36222
36510
|
|
|
36223
36511
|
var linkColor$1 = {
|
|
36224
36512
|
"default": "#357fb8",
|
|
@@ -36240,7 +36528,7 @@ var modalLinkHoverFocus = {
|
|
|
36240
36528
|
"default": "",
|
|
36241
36529
|
footer: "outline: none; text-decoration: underline;"
|
|
36242
36530
|
};
|
|
36243
|
-
var fallbackValues$
|
|
36531
|
+
var fallbackValues$v = {
|
|
36244
36532
|
linkColor: linkColor$1,
|
|
36245
36533
|
fontSize: fontSize$8,
|
|
36246
36534
|
lineHeight: lineHeight$4,
|
|
@@ -36303,7 +36591,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
36303
36591
|
});
|
|
36304
36592
|
};
|
|
36305
36593
|
|
|
36306
|
-
var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$
|
|
36594
|
+
var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$v, "default");
|
|
36307
36595
|
|
|
36308
36596
|
function _templateObject$z() {
|
|
36309
36597
|
var data = _taggedTemplateLiteral([""]);
|
|
@@ -36689,7 +36977,7 @@ var headingDisabledColor = "".concat(ATHENS_GREY);
|
|
|
36689
36977
|
var bodyBackgroundColor$1 = "#eeeeee";
|
|
36690
36978
|
var borderColor$2 = "".concat(GREY_CHATEAU);
|
|
36691
36979
|
var focusStyles$1 = "outline: none;";
|
|
36692
|
-
var fallbackValues$
|
|
36980
|
+
var fallbackValues$w = {
|
|
36693
36981
|
headingBackgroundColor: headingBackgroundColor$1,
|
|
36694
36982
|
headingDisabledColor: headingDisabledColor,
|
|
36695
36983
|
bodyBackgroundColor: bodyBackgroundColor$1,
|
|
@@ -36876,7 +37164,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
36876
37164
|
})));
|
|
36877
37165
|
};
|
|
36878
37166
|
|
|
36879
|
-
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$
|
|
37167
|
+
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$w);
|
|
36880
37168
|
|
|
36881
37169
|
var RegistrationForm = function RegistrationForm(_ref) {
|
|
36882
37170
|
var _emailErrorMessages, _passwordErrorMessage;
|
|
@@ -37163,7 +37451,7 @@ var ResetPasswordSuccess = withWindowSize(ResetConfirmationForm$2);
|
|
|
37163
37451
|
var activeTabBackground = "#FFFFFF";
|
|
37164
37452
|
var activeTabAccent = "#15749D";
|
|
37165
37453
|
var activeTabHover = "#B8D5E1";
|
|
37166
|
-
var fallbackValues$
|
|
37454
|
+
var fallbackValues$x = {
|
|
37167
37455
|
activeTabBackground: activeTabBackground,
|
|
37168
37456
|
activeTabAccent: activeTabAccent,
|
|
37169
37457
|
activeTabHover: activeTabHover
|
|
@@ -37219,7 +37507,7 @@ var TabSidebar = function TabSidebar(_ref) {
|
|
|
37219
37507
|
})));
|
|
37220
37508
|
};
|
|
37221
37509
|
|
|
37222
|
-
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$
|
|
37510
|
+
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$x);
|
|
37223
37511
|
|
|
37224
37512
|
var backgroundColor$8 = {
|
|
37225
37513
|
"default": "#ffffff",
|
|
@@ -37249,7 +37537,7 @@ var modalLinkHoverFocus$1 = {
|
|
|
37249
37537
|
"default": "",
|
|
37250
37538
|
footer: "outline: none; text-decoration: underline;"
|
|
37251
37539
|
};
|
|
37252
|
-
var fallbackValues$
|
|
37540
|
+
var fallbackValues$y = {
|
|
37253
37541
|
backgroundColor: backgroundColor$8,
|
|
37254
37542
|
linkColor: linkColor$2,
|
|
37255
37543
|
border: border$2,
|
|
@@ -37313,7 +37601,7 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
|
37313
37601
|
});
|
|
37314
37602
|
};
|
|
37315
37603
|
|
|
37316
|
-
var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$
|
|
37604
|
+
var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$y, "default");
|
|
37317
37605
|
|
|
37318
37606
|
function _templateObject2$l() {
|
|
37319
37607
|
var data = _taggedTemplateLiteral([""]);
|
|
@@ -37443,7 +37731,7 @@ var WorkflowTile = function WorkflowTile(_ref) {
|
|
|
37443
37731
|
};
|
|
37444
37732
|
|
|
37445
37733
|
var pageBackground = "#F6F6F9";
|
|
37446
|
-
var fallbackValues$
|
|
37734
|
+
var fallbackValues$z = {
|
|
37447
37735
|
pageBackground: pageBackground
|
|
37448
37736
|
};
|
|
37449
37737
|
|
|
@@ -37490,7 +37778,7 @@ var CenterSingle = function CenterSingle(_ref) {
|
|
|
37490
37778
|
})));
|
|
37491
37779
|
};
|
|
37492
37780
|
|
|
37493
|
-
var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$
|
|
37781
|
+
var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$z));
|
|
37494
37782
|
|
|
37495
37783
|
var CenterStack = function CenterStack(_ref) {
|
|
37496
37784
|
var header = _ref.header,
|
|
@@ -37532,7 +37820,7 @@ var CenterStack = function CenterStack(_ref) {
|
|
|
37532
37820
|
})));
|
|
37533
37821
|
};
|
|
37534
37822
|
|
|
37535
|
-
var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$
|
|
37823
|
+
var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$z));
|
|
37536
37824
|
|
|
37537
37825
|
var CenterSingle$2 = function CenterSingle(_ref) {
|
|
37538
37826
|
var header = _ref.header,
|
|
@@ -37572,7 +37860,7 @@ var CenterSingle$2 = function CenterSingle(_ref) {
|
|
|
37572
37860
|
})));
|
|
37573
37861
|
};
|
|
37574
37862
|
|
|
37575
|
-
var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$
|
|
37863
|
+
var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$z));
|
|
37576
37864
|
|
|
37577
37865
|
var SidebarSingleContent = function SidebarSingleContent(_ref) {
|
|
37578
37866
|
var header = _ref.header,
|
|
@@ -37626,7 +37914,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
|
|
|
37626
37914
|
})));
|
|
37627
37915
|
};
|
|
37628
37916
|
|
|
37629
|
-
var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$
|
|
37917
|
+
var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$z));
|
|
37630
37918
|
|
|
37631
37919
|
var SidebarStackContent = function SidebarStackContent(_ref) {
|
|
37632
37920
|
var header = _ref.header,
|
|
@@ -37697,7 +37985,7 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
|
|
|
37697
37985
|
})));
|
|
37698
37986
|
};
|
|
37699
37987
|
|
|
37700
|
-
var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$
|
|
37988
|
+
var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$z));
|
|
37701
37989
|
|
|
37702
37990
|
|
|
37703
37991
|
|
|
@@ -37724,6 +38012,7 @@ exports.AddObligation = AddObligation$1;
|
|
|
37724
38012
|
exports.AddressForm = AddressForm;
|
|
37725
38013
|
exports.Alert = Alert$1;
|
|
37726
38014
|
exports.AmountCallout = AmountCallout$1;
|
|
38015
|
+
exports.AutopayOnIcon = AutopayOnIcon$1;
|
|
37727
38016
|
exports.BankIcon = BankIcon;
|
|
37728
38017
|
exports.Box = Box;
|
|
37729
38018
|
exports.Breadcrumb = Breadcrumbs;
|