@thecb/components 3.4.1 → 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/.tool-versions +1 -0
- package/dist/index.cjs.js +624 -664
- package/package.json +1 -1
- 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/dist/index.cjs.js
CHANGED
|
@@ -215,63 +215,6 @@ function _nonIterableRest() {
|
|
|
215
215
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
219
|
-
var it;
|
|
220
|
-
|
|
221
|
-
if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
|
|
222
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
223
|
-
if (it) o = it;
|
|
224
|
-
var i = 0;
|
|
225
|
-
|
|
226
|
-
var F = function () {};
|
|
227
|
-
|
|
228
|
-
return {
|
|
229
|
-
s: F,
|
|
230
|
-
n: function () {
|
|
231
|
-
if (i >= o.length) return {
|
|
232
|
-
done: true
|
|
233
|
-
};
|
|
234
|
-
return {
|
|
235
|
-
done: false,
|
|
236
|
-
value: o[i++]
|
|
237
|
-
};
|
|
238
|
-
},
|
|
239
|
-
e: function (e) {
|
|
240
|
-
throw e;
|
|
241
|
-
},
|
|
242
|
-
f: F
|
|
243
|
-
};
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
var normalCompletion = true,
|
|
250
|
-
didErr = false,
|
|
251
|
-
err;
|
|
252
|
-
return {
|
|
253
|
-
s: function () {
|
|
254
|
-
it = o[Symbol.iterator]();
|
|
255
|
-
},
|
|
256
|
-
n: function () {
|
|
257
|
-
var step = it.next();
|
|
258
|
-
normalCompletion = step.done;
|
|
259
|
-
return step;
|
|
260
|
-
},
|
|
261
|
-
e: function (e) {
|
|
262
|
-
didErr = true;
|
|
263
|
-
err = e;
|
|
264
|
-
},
|
|
265
|
-
f: function () {
|
|
266
|
-
try {
|
|
267
|
-
if (!normalCompletion && it.return != null) it.return();
|
|
268
|
-
} finally {
|
|
269
|
-
if (didErr) throw err;
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
};
|
|
273
|
-
}
|
|
274
|
-
|
|
275
218
|
/*! *****************************************************************************
|
|
276
219
|
Copyright (c) Microsoft Corporation.
|
|
277
220
|
|
|
@@ -13687,6 +13630,28 @@ var IconAdd = function IconAdd() {
|
|
|
13687
13630
|
}))))));
|
|
13688
13631
|
};
|
|
13689
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
|
+
|
|
13690
13655
|
var color$2 = "#15749D";
|
|
13691
13656
|
var hoverColor$1 = "#116285";
|
|
13692
13657
|
var activeColor$1 = "#0E506D";
|
|
@@ -30430,401 +30395,378 @@ var ToggleSwitch = function ToggleSwitch(_ref6) {
|
|
|
30430
30395
|
|
|
30431
30396
|
var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$o);
|
|
30432
30397
|
|
|
30433
|
-
|
|
30434
|
-
|
|
30435
|
-
|
|
30436
|
-
|
|
30437
|
-
}
|
|
30398
|
+
const validatorToPredicate = (validatorFn, emptyCase) => (
|
|
30399
|
+
value,
|
|
30400
|
+
...rest
|
|
30401
|
+
) => (value === "" ? emptyCase : validatorFn(value, ...rest));
|
|
30438
30402
|
|
|
30439
|
-
return value === "" ? emptyCase : validatorFn.apply(void 0, [value].concat(rest));
|
|
30440
|
-
};
|
|
30441
|
-
};
|
|
30442
30403
|
/* eslint-disable no-unused-vars */
|
|
30443
30404
|
|
|
30444
|
-
|
|
30445
|
-
|
|
30446
|
-
var validator = function validator() {
|
|
30447
|
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
30448
|
-
args[_key2] = arguments[_key2];
|
|
30449
|
-
}
|
|
30450
|
-
|
|
30451
|
-
return {
|
|
30452
|
-
type: type,
|
|
30453
|
-
args: args,
|
|
30454
|
-
error: error
|
|
30455
|
-
};
|
|
30456
|
-
};
|
|
30457
|
-
|
|
30405
|
+
const createValidator = (type, error) => {
|
|
30406
|
+
let validator = (...args) => ({ type, args, error });
|
|
30458
30407
|
validator.error = error;
|
|
30459
30408
|
return validator;
|
|
30460
30409
|
};
|
|
30461
30410
|
|
|
30462
|
-
|
|
30463
|
-
var REQUIRED = "validator/REQUIRED";
|
|
30464
|
-
var REQUIRED_ERROR = "error/REQUIRED";
|
|
30465
|
-
var required = createValidator(REQUIRED, REQUIRED_ERROR);
|
|
30411
|
+
let validatorFns = {};
|
|
30466
30412
|
|
|
30467
|
-
|
|
30468
|
-
|
|
30469
|
-
|
|
30470
|
-
|
|
30471
|
-
var ONLY_INTEGERS = "validator/ONLY_INTEGERS";
|
|
30472
|
-
var ONLY_INTEGERS_ERROR = "error/ONLY_INTEGERS";
|
|
30473
|
-
var onlyIntegers = createValidator(ONLY_INTEGERS, ONLY_INTEGERS_ERROR);
|
|
30474
|
-
|
|
30475
|
-
validatorFns[ONLY_INTEGERS] = function (value, args, form) {
|
|
30476
|
-
return /^(-?\d+)?$/.test(value);
|
|
30477
|
-
};
|
|
30478
|
-
|
|
30479
|
-
var ONLY_NATURALS = "validator/ONLY_NATURALS";
|
|
30480
|
-
var ONLY_NATURALS_ERROR = "error/ONLY_NATURALS";
|
|
30481
|
-
var onlyNaturals = createValidator(ONLY_NATURALS, ONLY_NATURALS_ERROR);
|
|
30413
|
+
const REQUIRED = "validator/REQUIRED";
|
|
30414
|
+
const REQUIRED_ERROR = "error/REQUIRED";
|
|
30415
|
+
const required = createValidator(REQUIRED, REQUIRED_ERROR);
|
|
30416
|
+
validatorFns[REQUIRED] = (value, args, form) => value !== "";
|
|
30482
30417
|
|
|
30483
|
-
|
|
30484
|
-
|
|
30485
|
-
|
|
30418
|
+
const ONLY_INTEGERS = "validator/ONLY_INTEGERS";
|
|
30419
|
+
const ONLY_INTEGERS_ERROR = "error/ONLY_INTEGERS";
|
|
30420
|
+
const onlyIntegers = createValidator(ONLY_INTEGERS, ONLY_INTEGERS_ERROR);
|
|
30421
|
+
validatorFns[ONLY_INTEGERS] = (value, args, form) => /^(-?\d+)?$/.test(value);
|
|
30486
30422
|
|
|
30487
|
-
|
|
30488
|
-
|
|
30489
|
-
|
|
30423
|
+
const ONLY_NATURALS = "validator/ONLY_NATURALS";
|
|
30424
|
+
const ONLY_NATURALS_ERROR = "error/ONLY_NATURALS";
|
|
30425
|
+
const onlyNaturals = createValidator(ONLY_NATURALS, ONLY_NATURALS_ERROR);
|
|
30426
|
+
validatorFns[ONLY_NATURALS] = (value, args, form) => /^(\d+)?$/.test(value);
|
|
30490
30427
|
|
|
30491
|
-
|
|
30428
|
+
const NUMBER_LESS_THAN = "validator/NUMBER_LESS_THAN";
|
|
30429
|
+
const NUMBER_LESS_THAN_ERROR = "error/NUMBER_LESS_THAN";
|
|
30430
|
+
const numberLessThan = createValidator(
|
|
30431
|
+
NUMBER_LESS_THAN,
|
|
30432
|
+
NUMBER_LESS_THAN_ERROR
|
|
30433
|
+
);
|
|
30434
|
+
validatorFns[NUMBER_LESS_THAN] = (value, args, form) => {
|
|
30492
30435
|
if (value === "") {
|
|
30493
30436
|
return true;
|
|
30494
30437
|
}
|
|
30495
|
-
|
|
30496
30438
|
return Number(value) < args[0];
|
|
30497
30439
|
};
|
|
30498
30440
|
|
|
30499
|
-
|
|
30500
|
-
|
|
30501
|
-
|
|
30502
|
-
|
|
30503
|
-
|
|
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) => {
|
|
30504
30450
|
if (value === "") {
|
|
30505
30451
|
return true;
|
|
30506
30452
|
}
|
|
30507
|
-
|
|
30508
30453
|
return Number(value) <= args[0];
|
|
30509
30454
|
};
|
|
30510
30455
|
|
|
30511
|
-
|
|
30512
|
-
|
|
30513
|
-
|
|
30514
|
-
|
|
30515
|
-
|
|
30456
|
+
const NUMBER_GREATER_THAN = "validator/NUMBER_GREATER_THAN";
|
|
30457
|
+
const NUMBER_GREATER_THAN_ERROR = "error/NUMBER_GREATER_THAN";
|
|
30458
|
+
const numberGreaterThan = createValidator(
|
|
30459
|
+
NUMBER_GREATER_THAN,
|
|
30460
|
+
NUMBER_GREATER_THAN_ERROR
|
|
30461
|
+
);
|
|
30462
|
+
validatorFns[NUMBER_GREATER_THAN] = (value, args, form) => {
|
|
30516
30463
|
if (value === "") {
|
|
30517
30464
|
return true;
|
|
30518
30465
|
}
|
|
30519
|
-
|
|
30520
30466
|
return Number(value) > args[0];
|
|
30521
30467
|
};
|
|
30522
30468
|
|
|
30523
|
-
|
|
30524
|
-
|
|
30525
|
-
|
|
30526
|
-
|
|
30527
|
-
|
|
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) => {
|
|
30528
30478
|
if (value === "") {
|
|
30529
30479
|
return true;
|
|
30530
30480
|
}
|
|
30531
|
-
|
|
30532
30481
|
return Number(value) >= args[0];
|
|
30533
30482
|
};
|
|
30534
30483
|
|
|
30535
|
-
|
|
30536
|
-
|
|
30537
|
-
|
|
30538
|
-
|
|
30539
|
-
validatorFns[MATCHES_FIELD] = function (value, args, form) {
|
|
30484
|
+
const MATCHES_FIELD = "validator/MATCHES_FIELD";
|
|
30485
|
+
const MATCHES_FIELD_ERROR$1 = "error/MATCHES_FIELD";
|
|
30486
|
+
const matchesField = createValidator(MATCHES_FIELD, MATCHES_FIELD_ERROR$1);
|
|
30487
|
+
validatorFns[MATCHES_FIELD] = (value, args, form) => {
|
|
30540
30488
|
if (value === "") {
|
|
30541
30489
|
return true;
|
|
30542
30490
|
}
|
|
30543
|
-
|
|
30544
30491
|
if (form[args[0]] === undefined) {
|
|
30545
|
-
throw new Error(
|
|
30492
|
+
throw new Error(
|
|
30493
|
+
`${args[0]} was passed to matchesField, but that field does not exist in the form`
|
|
30494
|
+
);
|
|
30546
30495
|
}
|
|
30547
|
-
|
|
30548
30496
|
return value === form[args[0]].rawValue;
|
|
30549
30497
|
};
|
|
30550
30498
|
|
|
30551
|
-
|
|
30552
|
-
|
|
30553
|
-
|
|
30554
|
-
|
|
30555
|
-
|
|
30556
|
-
|
|
30557
|
-
|
|
30558
|
-
|
|
30559
|
-
|
|
30560
|
-
|
|
30561
|
-
|
|
30562
|
-
|
|
30563
|
-
|
|
30564
|
-
|
|
30565
|
-
|
|
30499
|
+
const validateWhenErrorMessage = type =>
|
|
30500
|
+
`${type} was passed to validateWhen, but that validator type does not exist.
|
|
30501
|
+
Please check that you are only calling validator creator functions exported from
|
|
30502
|
+
redux-freeform in your form config and that you didn't forget to
|
|
30503
|
+
invoke the validator creator (you cannot pass the functions themselves to
|
|
30504
|
+
createFormState). Also make sure you aren't passing validateWhen() to validateWhen
|
|
30505
|
+
as the primary validator.`;
|
|
30506
|
+
|
|
30507
|
+
const VALIDATE_WHEN = "validator/VALIDATE_WHEN";
|
|
30508
|
+
const VALIDATE_WHEN_ERROR = "error/VALIDATE_WHEN";
|
|
30509
|
+
const validateWhen = (
|
|
30510
|
+
dependentValidator,
|
|
30511
|
+
primaryValidator,
|
|
30512
|
+
optionalFieldName
|
|
30513
|
+
) => ({
|
|
30514
|
+
type: VALIDATE_WHEN,
|
|
30515
|
+
args: [dependentValidator, primaryValidator, optionalFieldName],
|
|
30516
|
+
error: dependentValidator.error
|
|
30517
|
+
});
|
|
30566
30518
|
validateWhen.error = VALIDATE_WHEN_ERROR;
|
|
30519
|
+
validatorFns[VALIDATE_WHEN] = (value, args, form) => {
|
|
30520
|
+
const [dependentValidator, primaryValidator, optionalFieldName] = args;
|
|
30521
|
+
const dependsOnOtherField = typeof optionalFieldName === "string";
|
|
30567
30522
|
|
|
30568
|
-
|
|
30569
|
-
|
|
30570
|
-
|
|
30571
|
-
|
|
30572
|
-
optionalFieldName = _args[2];
|
|
30573
|
-
|
|
30574
|
-
var dependsOnOtherField = typeof optionalFieldName === "string";
|
|
30575
|
-
|
|
30576
|
-
if (primaryValidator.type === undefined || typeof validatorFns[primaryValidator.type] !== "function") {
|
|
30523
|
+
if (
|
|
30524
|
+
primaryValidator.type === undefined ||
|
|
30525
|
+
typeof validatorFns[primaryValidator.type] !== "function"
|
|
30526
|
+
) {
|
|
30577
30527
|
throw new Error(validateWhenErrorMessage(primaryValidator.type));
|
|
30578
30528
|
}
|
|
30579
|
-
|
|
30580
30529
|
if (dependsOnOtherField && form[optionalFieldName] === undefined) {
|
|
30581
|
-
throw new Error(
|
|
30530
|
+
throw new Error(
|
|
30531
|
+
`${args[2]} was passed to matchesField, but that field does not exist in the form`
|
|
30532
|
+
);
|
|
30582
30533
|
}
|
|
30583
30534
|
|
|
30584
|
-
|
|
30585
|
-
|
|
30586
|
-
|
|
30587
|
-
|
|
30588
|
-
|
|
30589
|
-
|
|
30590
|
-
|
|
30591
|
-
|
|
30592
|
-
|
|
30593
|
-
|
|
30594
|
-
|
|
30595
|
-
|
|
30596
|
-
|
|
30597
|
-
var validateSum = function validateSum(validator, fieldNamesArray) {
|
|
30598
|
-
return {
|
|
30599
|
-
type: VALIDATE_SUM,
|
|
30600
|
-
args: [validator, fieldNamesArray],
|
|
30601
|
-
error: validator.error
|
|
30602
|
-
};
|
|
30603
|
-
};
|
|
30535
|
+
const primaryPredicate = validatorToPredicate(
|
|
30536
|
+
validatorFns[primaryValidator.type],
|
|
30537
|
+
false
|
|
30538
|
+
);
|
|
30539
|
+
const primaryValue = dependsOnOtherField
|
|
30540
|
+
? form[optionalFieldName].rawValue
|
|
30541
|
+
: value;
|
|
30542
|
+
const primaryPredicatePassed = primaryPredicate(
|
|
30543
|
+
primaryValue,
|
|
30544
|
+
primaryValidator.args,
|
|
30545
|
+
form
|
|
30546
|
+
);
|
|
30604
30547
|
|
|
30548
|
+
return primaryPredicatePassed
|
|
30549
|
+
? validatorFns[dependentValidator.type](
|
|
30550
|
+
value,
|
|
30551
|
+
dependentValidator.args,
|
|
30552
|
+
form
|
|
30553
|
+
)
|
|
30554
|
+
: true;
|
|
30555
|
+
};
|
|
30556
|
+
|
|
30557
|
+
const validateSumErrorMessage = type =>
|
|
30558
|
+
`${type} was passed to validateSum, but that validator type does not exist.
|
|
30559
|
+
Please check that you are only calling validator creator functions exported from
|
|
30560
|
+
redux-freeform in your form config and that you didn't forget to
|
|
30561
|
+
invoke the validator creator (you cannot pass the functions themselves to
|
|
30562
|
+
createFormState).`;
|
|
30563
|
+
const VALIDATE_SUM = "validator/VALIDATE_SUM";
|
|
30564
|
+
const VALIDATE_SUM_ERROR = "error/VALIDATE_SUM";
|
|
30565
|
+
const validateSum = (validator, fieldNamesArray) => ({
|
|
30566
|
+
type: VALIDATE_SUM,
|
|
30567
|
+
args: [validator, fieldNamesArray],
|
|
30568
|
+
error: validator.error
|
|
30569
|
+
});
|
|
30605
30570
|
validateSum.error = VALIDATE_SUM_ERROR;
|
|
30571
|
+
validatorFns[VALIDATE_SUM] = (value, args, form) => {
|
|
30572
|
+
const [validator, fieldNamesArray] = args;
|
|
30606
30573
|
|
|
30607
|
-
|
|
30608
|
-
|
|
30609
|
-
|
|
30610
|
-
|
|
30611
|
-
|
|
30612
|
-
if (validator.type === undefined || typeof validatorFns[validator.type] !== "function") {
|
|
30574
|
+
if (
|
|
30575
|
+
validator.type === undefined ||
|
|
30576
|
+
typeof validatorFns[validator.type] !== "function"
|
|
30577
|
+
) {
|
|
30613
30578
|
throw new Error(validateSumErrorMessage(validator.type));
|
|
30614
30579
|
}
|
|
30615
30580
|
|
|
30616
|
-
|
|
30617
|
-
|
|
30618
|
-
|
|
30619
|
-
|
|
30620
|
-
|
|
30621
|
-
var fieldName = _step.value;
|
|
30622
|
-
|
|
30623
|
-
if (form[fieldName] === undefined) {
|
|
30624
|
-
throw new Error("".concat(fieldName, " was passed to matchesField, but that field does not exist in the form"));
|
|
30625
|
-
}
|
|
30581
|
+
for (const fieldName of fieldNamesArray) {
|
|
30582
|
+
if (form[fieldName] === undefined) {
|
|
30583
|
+
throw new Error(
|
|
30584
|
+
`${fieldName} was passed to matchesField, but that field does not exist in the form`
|
|
30585
|
+
);
|
|
30626
30586
|
}
|
|
30627
|
-
} catch (err) {
|
|
30628
|
-
_iterator.e(err);
|
|
30629
|
-
} finally {
|
|
30630
|
-
_iterator.f();
|
|
30631
30587
|
}
|
|
30632
30588
|
|
|
30633
|
-
|
|
30634
|
-
|
|
30635
|
-
|
|
30589
|
+
const sum = fieldNamesArray.reduce(
|
|
30590
|
+
(acc, curr) => acc + Number(form[curr].rawValue),
|
|
30591
|
+
Number(value)
|
|
30592
|
+
);
|
|
30593
|
+
|
|
30636
30594
|
return validatorFns[validator.type](sum, validator.args, form);
|
|
30637
30595
|
};
|
|
30638
30596
|
|
|
30639
|
-
|
|
30640
|
-
|
|
30641
|
-
|
|
30642
|
-
|
|
30643
|
-
validatorFns[HAS_LENGTH] = function (value, args, form) {
|
|
30597
|
+
const HAS_LENGTH = "validator/HAS_LENGTH";
|
|
30598
|
+
const HAS_LENGTH_ERROR = "error/HAS_LENGTH";
|
|
30599
|
+
const hasLength = createValidator(HAS_LENGTH, HAS_LENGTH_ERROR);
|
|
30600
|
+
validatorFns[HAS_LENGTH] = (value, args, form) => {
|
|
30644
30601
|
if (value === "") {
|
|
30645
30602
|
return true;
|
|
30646
30603
|
}
|
|
30647
|
-
|
|
30648
|
-
|
|
30649
|
-
var max = args[1];
|
|
30650
|
-
|
|
30604
|
+
const min = args[0];
|
|
30605
|
+
const max = args[1];
|
|
30651
30606
|
if (max == undefined || min == undefined) {
|
|
30652
|
-
throw new Error(
|
|
30607
|
+
throw new Error(
|
|
30608
|
+
"Max and min need to be defined for hasLength, both or one of them is undefined"
|
|
30609
|
+
);
|
|
30653
30610
|
}
|
|
30654
|
-
|
|
30655
30611
|
if (max < min) {
|
|
30656
|
-
throw new Error(
|
|
30612
|
+
throw new Error(
|
|
30613
|
+
"hasLength validator was passed a min greater than the max"
|
|
30614
|
+
);
|
|
30657
30615
|
}
|
|
30658
|
-
|
|
30659
|
-
var valueLength = value.length;
|
|
30616
|
+
const valueLength = value.length;
|
|
30660
30617
|
return max >= valueLength && valueLength >= min;
|
|
30661
30618
|
};
|
|
30662
30619
|
|
|
30663
|
-
|
|
30664
|
-
|
|
30665
|
-
|
|
30666
|
-
|
|
30667
|
-
validatorFns[MATCHES_REGEX] = function (value, args, form) {
|
|
30620
|
+
const MATCHES_REGEX = "validator/MATCHES_REGEX";
|
|
30621
|
+
const MATCHES_REGEX_ERROR = "error/MATCHES_REGEX";
|
|
30622
|
+
const matchesRegex = createValidator(MATCHES_REGEX, MATCHES_REGEX_ERROR);
|
|
30623
|
+
validatorFns[MATCHES_REGEX] = (value, args, form) => {
|
|
30668
30624
|
if (value === "") {
|
|
30669
30625
|
return true;
|
|
30670
30626
|
}
|
|
30671
|
-
|
|
30672
30627
|
return new RegExp(args[0]).test(value); // new RexExp never throws an error, no matter the input
|
|
30673
|
-
};
|
|
30674
|
-
|
|
30675
|
-
|
|
30676
|
-
var IS_ROUTING_NUMBER = "validator/IS_ROUTING_NUMBER";
|
|
30677
|
-
var IS_ROUTING_NUMBER_ERROR = "error/IS_ROUTING_NUMBER";
|
|
30678
|
-
var isRoutingNumber = createValidator(IS_ROUTING_NUMBER, IS_ROUTING_NUMBER_ERROR);
|
|
30628
|
+
};
|
|
30679
30629
|
|
|
30680
|
-
|
|
30630
|
+
// based on http://www.brainjar.com/js/validation/
|
|
30631
|
+
const IS_ROUTING_NUMBER = "validator/IS_ROUTING_NUMBER";
|
|
30632
|
+
const IS_ROUTING_NUMBER_ERROR = "error/IS_ROUTING_NUMBER";
|
|
30633
|
+
const isRoutingNumber = createValidator(
|
|
30634
|
+
IS_ROUTING_NUMBER,
|
|
30635
|
+
IS_ROUTING_NUMBER_ERROR
|
|
30636
|
+
);
|
|
30637
|
+
validatorFns[IS_ROUTING_NUMBER] = (value, args, form) => {
|
|
30681
30638
|
if (value === "") {
|
|
30682
30639
|
return true;
|
|
30683
30640
|
}
|
|
30684
|
-
|
|
30685
30641
|
if (value.length != 9) {
|
|
30686
30642
|
return false;
|
|
30687
30643
|
}
|
|
30688
|
-
|
|
30689
|
-
|
|
30690
|
-
|
|
30691
|
-
|
|
30692
|
-
|
|
30693
|
-
|
|
30694
|
-
|
|
30695
|
-
|
|
30696
|
-
|
|
30697
|
-
|
|
30698
|
-
|
|
30699
|
-
|
|
30700
|
-
|
|
30701
|
-
}
|
|
30702
|
-
}, 0);
|
|
30644
|
+
const sum = value
|
|
30645
|
+
.split("")
|
|
30646
|
+
.map(ch => parseInt(ch))
|
|
30647
|
+
.reduce((acc, cur, idx) => {
|
|
30648
|
+
switch (idx % 3) {
|
|
30649
|
+
case 0:
|
|
30650
|
+
return acc + 3 * cur;
|
|
30651
|
+
case 1:
|
|
30652
|
+
return acc + 7 * cur;
|
|
30653
|
+
case 2:
|
|
30654
|
+
return acc + 1 * cur;
|
|
30655
|
+
}
|
|
30656
|
+
}, 0);
|
|
30703
30657
|
return sum != 0 && sum % 10 == 0;
|
|
30704
30658
|
};
|
|
30705
30659
|
|
|
30706
|
-
|
|
30707
|
-
|
|
30708
|
-
|
|
30709
|
-
|
|
30710
|
-
validatorFns[HAS_NUMBER] = function (value, args, form) {
|
|
30660
|
+
const HAS_NUMBER = "validator/HAS_NUMBER";
|
|
30661
|
+
const HAS_NUMBER_ERROR$1 = "error/HAS_NUMBER";
|
|
30662
|
+
const hasNumber = createValidator(HAS_NUMBER, HAS_NUMBER_ERROR$1);
|
|
30663
|
+
validatorFns[HAS_NUMBER] = (value, args, form) => {
|
|
30711
30664
|
if (value === "") {
|
|
30712
30665
|
return true;
|
|
30713
30666
|
}
|
|
30714
|
-
|
|
30715
30667
|
return new RegExp(/[0-9]/).test(value);
|
|
30716
30668
|
};
|
|
30717
30669
|
|
|
30718
|
-
|
|
30719
|
-
|
|
30720
|
-
|
|
30721
|
-
|
|
30722
|
-
|
|
30670
|
+
const HAS_LOWERCASE_LETTER = "validator/HAS_LOWERCASE_LETTER";
|
|
30671
|
+
const HAS_LOWERCASE_LETTER_ERROR$1 = "error/HAS_LOWERCASE_LETTER";
|
|
30672
|
+
const hasLowercaseLetter = createValidator(
|
|
30673
|
+
HAS_LOWERCASE_LETTER,
|
|
30674
|
+
HAS_LOWERCASE_LETTER_ERROR$1
|
|
30675
|
+
);
|
|
30676
|
+
validatorFns[HAS_LOWERCASE_LETTER] = (value, args, form) => {
|
|
30723
30677
|
if (value === "") {
|
|
30724
30678
|
return true;
|
|
30725
30679
|
}
|
|
30726
|
-
|
|
30727
30680
|
return new RegExp(/[a-z]/).test(value);
|
|
30728
30681
|
};
|
|
30729
30682
|
|
|
30730
|
-
|
|
30731
|
-
|
|
30732
|
-
|
|
30733
|
-
|
|
30734
|
-
|
|
30683
|
+
const HAS_UPPERCASE_LETTER = "validator/HAS_UPPERCASE_LETTER";
|
|
30684
|
+
const HAS_UPPERCASE_LETTER_ERROR$1 = "error/HAS_UPPERCASE_LETTER";
|
|
30685
|
+
const hasUppercaseLetter = createValidator(
|
|
30686
|
+
HAS_UPPERCASE_LETTER,
|
|
30687
|
+
HAS_UPPERCASE_LETTER_ERROR$1
|
|
30688
|
+
);
|
|
30689
|
+
validatorFns[HAS_UPPERCASE_LETTER] = (value, args, form) => {
|
|
30735
30690
|
if (value === "") {
|
|
30736
30691
|
return true;
|
|
30737
30692
|
}
|
|
30738
|
-
|
|
30739
30693
|
return new RegExp(/[A-Z]/).test(value);
|
|
30740
30694
|
};
|
|
30741
30695
|
|
|
30742
|
-
|
|
30743
|
-
|
|
30744
|
-
|
|
30745
|
-
|
|
30746
|
-
|
|
30696
|
+
const HAS_SPECIAL_CHARACTER = "validator/HAS_SPECIAL_CHARACTER";
|
|
30697
|
+
const HAS_SPECIAL_CHARACTER_ERROR$1 = "error/HAS_SPECIAL_CHARACTER";
|
|
30698
|
+
const hasSpecialCharacter = createValidator(
|
|
30699
|
+
HAS_SPECIAL_CHARACTER,
|
|
30700
|
+
HAS_SPECIAL_CHARACTER_ERROR$1
|
|
30701
|
+
);
|
|
30702
|
+
validatorFns[HAS_SPECIAL_CHARACTER] = (value, args, form) => {
|
|
30747
30703
|
if (value === "") {
|
|
30748
30704
|
return true;
|
|
30749
30705
|
}
|
|
30750
|
-
|
|
30751
30706
|
return new RegExp(/[!@#$%^&*.?]/).test(value);
|
|
30752
30707
|
};
|
|
30753
30708
|
|
|
30754
|
-
|
|
30755
|
-
|
|
30756
|
-
|
|
30757
|
-
|
|
30758
|
-
|
|
30709
|
+
const IS_PROBABLY_EMAIL = "validator/IS_PROBABLY_EMAIL";
|
|
30710
|
+
const IS_PROBABLY_EMAIL_ERROR = "error/IS_PROBABLY_EMAIL";
|
|
30711
|
+
const isProbablyEmail = createValidator(
|
|
30712
|
+
IS_PROBABLY_EMAIL,
|
|
30713
|
+
IS_PROBABLY_EMAIL_ERROR
|
|
30714
|
+
);
|
|
30715
|
+
validatorFns[IS_PROBABLY_EMAIL] = (value, args, form) => {
|
|
30759
30716
|
if (value === "") {
|
|
30760
30717
|
return true;
|
|
30761
30718
|
}
|
|
30762
|
-
|
|
30763
30719
|
return new RegExp(/^\S+@\S+\.\S+$/).test(value);
|
|
30764
30720
|
};
|
|
30765
30721
|
|
|
30766
|
-
|
|
30767
|
-
|
|
30768
|
-
|
|
30769
|
-
|
|
30770
|
-
|
|
30771
|
-
|
|
30722
|
+
const runValidatorErrorMessage = type =>
|
|
30723
|
+
`${type} was passed to runValidator, but that validator type does not exist.
|
|
30724
|
+
Please check that you are only calling validator creator functions exported from
|
|
30725
|
+
redux-freeform in your form config and that you didn't forget to
|
|
30726
|
+
invoke the validator creator (you cannot pass the functions themselves to
|
|
30727
|
+
createFormState)`;
|
|
30772
30728
|
|
|
30729
|
+
const runValidator = (validator, value, form) => {
|
|
30730
|
+
const validatorFn = validatorFns[validator.type];
|
|
30773
30731
|
if (validatorFn === undefined) {
|
|
30774
30732
|
throw new Error(runValidatorErrorMessage(validator.type));
|
|
30775
30733
|
}
|
|
30776
|
-
|
|
30777
30734
|
return validatorFn(value, validator.args, form) ? null : validator.error;
|
|
30778
30735
|
};
|
|
30779
30736
|
|
|
30780
|
-
|
|
30781
|
-
return validators
|
|
30782
|
-
|
|
30783
|
-
|
|
30784
|
-
return x !== null;
|
|
30785
|
-
});
|
|
30737
|
+
const _computeErrors = (fieldName, form, validators) => {
|
|
30738
|
+
return validators
|
|
30739
|
+
.map(v => runValidator(v, form[fieldName].rawValue, form))
|
|
30740
|
+
.filter(x => x !== null);
|
|
30786
30741
|
};
|
|
30787
30742
|
|
|
30788
|
-
|
|
30789
|
-
|
|
30743
|
+
const computeConstraints = (fieldName, form) => {
|
|
30744
|
+
const constraints = form[fieldName].constraints;
|
|
30790
30745
|
return _computeErrors(fieldName, form, constraints);
|
|
30791
30746
|
};
|
|
30792
30747
|
|
|
30793
|
-
|
|
30794
|
-
|
|
30748
|
+
const computeErrors = (fieldName, form) => {
|
|
30749
|
+
const validators = form[fieldName].validators;
|
|
30795
30750
|
return _computeErrors(fieldName, form, validators);
|
|
30796
30751
|
};
|
|
30797
30752
|
|
|
30798
30753
|
var obj;
|
|
30799
|
-
var NOTHING = typeof Symbol !== "undefined" ? Symbol("immer-nothing") : (obj = {}, obj["immer-nothing"] = true, obj);
|
|
30800
|
-
var DRAFTABLE = typeof Symbol !== "undefined" && Symbol
|
|
30801
|
-
var DRAFT_STATE = typeof Symbol !== "undefined" && Symbol
|
|
30802
|
-
|
|
30754
|
+
var NOTHING = typeof Symbol !== "undefined" ? Symbol("immer-nothing") : ( obj = {}, obj["immer-nothing"] = true, obj );
|
|
30755
|
+
var DRAFTABLE = typeof Symbol !== "undefined" && Symbol.for ? Symbol.for("immer-draftable") : "__$immer_draftable";
|
|
30756
|
+
var DRAFT_STATE = typeof Symbol !== "undefined" && Symbol.for ? Symbol.for("immer-state") : "__$immer_state";
|
|
30803
30757
|
function isDraft(value) {
|
|
30804
30758
|
return !!value && !!value[DRAFT_STATE];
|
|
30805
30759
|
}
|
|
30806
|
-
|
|
30807
30760
|
function isDraftable(value) {
|
|
30808
|
-
if (!value) {
|
|
30809
|
-
return false;
|
|
30810
|
-
}
|
|
30811
|
-
|
|
30761
|
+
if (!value) { return false; }
|
|
30812
30762
|
return isPlainObject(value) || !!value[DRAFTABLE] || !!value.constructor[DRAFTABLE];
|
|
30813
30763
|
}
|
|
30814
|
-
|
|
30815
30764
|
function isPlainObject(value) {
|
|
30816
|
-
if (!value ||
|
|
30817
|
-
|
|
30818
|
-
}
|
|
30819
|
-
|
|
30820
|
-
if (Array.isArray(value)) {
|
|
30821
|
-
return true;
|
|
30822
|
-
}
|
|
30823
|
-
|
|
30765
|
+
if (!value || typeof value !== "object") { return false; }
|
|
30766
|
+
if (Array.isArray(value)) { return true; }
|
|
30824
30767
|
var proto = Object.getPrototypeOf(value);
|
|
30825
30768
|
return !proto || proto === Object.prototype;
|
|
30826
30769
|
}
|
|
30827
|
-
|
|
30828
30770
|
var assign = Object.assign || function assign(target, value) {
|
|
30829
30771
|
for (var key in value) {
|
|
30830
30772
|
if (has(value, key)) {
|
|
@@ -30834,18 +30776,11 @@ var assign = Object.assign || function assign(target, value) {
|
|
|
30834
30776
|
|
|
30835
30777
|
return target;
|
|
30836
30778
|
};
|
|
30837
|
-
|
|
30838
|
-
var ownKeys$1 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownKeys : typeof Object.getOwnPropertySymbols !== "undefined" ? function (obj) {
|
|
30839
|
-
return Object.getOwnPropertyNames(obj).concat(Object.getOwnPropertySymbols(obj));
|
|
30840
|
-
} : Object.getOwnPropertyNames;
|
|
30841
|
-
|
|
30779
|
+
var ownKeys$1 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownKeys : typeof Object.getOwnPropertySymbols !== "undefined" ? function (obj) { return Object.getOwnPropertyNames(obj).concat(Object.getOwnPropertySymbols(obj)); } : Object.getOwnPropertyNames;
|
|
30842
30780
|
function shallowCopy(base, invokeGetters) {
|
|
30843
|
-
if (invokeGetters === void 0) invokeGetters = false;
|
|
30844
|
-
|
|
30845
|
-
if (Array.isArray(base)) {
|
|
30846
|
-
return base.slice();
|
|
30847
|
-
}
|
|
30781
|
+
if ( invokeGetters === void 0 ) invokeGetters = false;
|
|
30848
30782
|
|
|
30783
|
+
if (Array.isArray(base)) { return base.slice(); }
|
|
30849
30784
|
var clone = Object.create(Object.getPrototypeOf(base));
|
|
30850
30785
|
ownKeys$1(base).forEach(function (key) {
|
|
30851
30786
|
if (key === DRAFT_STATE) {
|
|
@@ -30875,28 +30810,20 @@ function shallowCopy(base, invokeGetters) {
|
|
|
30875
30810
|
});
|
|
30876
30811
|
return clone;
|
|
30877
30812
|
}
|
|
30878
|
-
|
|
30879
30813
|
function each(value, cb) {
|
|
30880
30814
|
if (Array.isArray(value)) {
|
|
30881
|
-
for (var i = 0; i < value.length; i++) {
|
|
30882
|
-
cb(i, value[i], value);
|
|
30883
|
-
}
|
|
30815
|
+
for (var i = 0; i < value.length; i++) { cb(i, value[i], value); }
|
|
30884
30816
|
} else {
|
|
30885
|
-
ownKeys$1(value).forEach(function (key) {
|
|
30886
|
-
return cb(key, value[key], value);
|
|
30887
|
-
});
|
|
30817
|
+
ownKeys$1(value).forEach(function (key) { return cb(key, value[key], value); });
|
|
30888
30818
|
}
|
|
30889
30819
|
}
|
|
30890
|
-
|
|
30891
30820
|
function isEnumerable(base, prop) {
|
|
30892
30821
|
var desc = Object.getOwnPropertyDescriptor(base, prop);
|
|
30893
30822
|
return !!desc && desc.enumerable;
|
|
30894
30823
|
}
|
|
30895
|
-
|
|
30896
30824
|
function has(thing, prop) {
|
|
30897
30825
|
return Object.prototype.hasOwnProperty.call(thing, prop);
|
|
30898
30826
|
}
|
|
30899
|
-
|
|
30900
30827
|
function is(x, y) {
|
|
30901
30828
|
// From: https://github.com/facebook/fbjs/blob/c69904a511b900266935168223063dd8772dfc40/packages/fbjs/src/core/shallowEqual.js
|
|
30902
30829
|
if (x === y) {
|
|
@@ -30905,26 +30832,17 @@ function is(x, y) {
|
|
|
30905
30832
|
return x !== x && y !== y;
|
|
30906
30833
|
}
|
|
30907
30834
|
}
|
|
30908
|
-
|
|
30909
30835
|
function clone(obj) {
|
|
30910
|
-
if (!isDraftable(obj)) {
|
|
30911
|
-
|
|
30912
|
-
}
|
|
30913
|
-
|
|
30914
|
-
if (Array.isArray(obj)) {
|
|
30915
|
-
return obj.map(clone);
|
|
30916
|
-
}
|
|
30917
|
-
|
|
30836
|
+
if (!isDraftable(obj)) { return obj; }
|
|
30837
|
+
if (Array.isArray(obj)) { return obj.map(clone); }
|
|
30918
30838
|
var cloned = Object.create(Object.getPrototypeOf(obj));
|
|
30919
30839
|
|
|
30920
|
-
for (var key in obj) {
|
|
30921
|
-
cloned[key] = clone(obj[key]);
|
|
30922
|
-
}
|
|
30840
|
+
for (var key in obj) { cloned[key] = clone(obj[key]); }
|
|
30923
30841
|
|
|
30924
30842
|
return cloned;
|
|
30925
30843
|
}
|
|
30926
|
-
/** Each scope represents a `produce` call. */
|
|
30927
30844
|
|
|
30845
|
+
/** Each scope represents a `produce` call. */
|
|
30928
30846
|
|
|
30929
30847
|
var ImmerScope = function ImmerScope(parent) {
|
|
30930
30848
|
this.drafts = [];
|
|
@@ -30936,7 +30854,7 @@ var ImmerScope = function ImmerScope(parent) {
|
|
|
30936
30854
|
this.patches = null;
|
|
30937
30855
|
};
|
|
30938
30856
|
|
|
30939
|
-
ImmerScope.prototype.usePatches = function usePatches(patchListener) {
|
|
30857
|
+
ImmerScope.prototype.usePatches = function usePatches (patchListener) {
|
|
30940
30858
|
if (patchListener) {
|
|
30941
30859
|
this.patches = [];
|
|
30942
30860
|
this.inversePatches = [];
|
|
@@ -30944,18 +30862,17 @@ ImmerScope.prototype.usePatches = function usePatches(patchListener) {
|
|
|
30944
30862
|
}
|
|
30945
30863
|
};
|
|
30946
30864
|
|
|
30947
|
-
ImmerScope.prototype.revoke = function revoke$1() {
|
|
30865
|
+
ImmerScope.prototype.revoke = function revoke$1 () {
|
|
30948
30866
|
this.leave();
|
|
30949
30867
|
this.drafts.forEach(revoke);
|
|
30950
30868
|
this.drafts = null; // Make draft-related methods throw.
|
|
30951
30869
|
};
|
|
30952
30870
|
|
|
30953
|
-
ImmerScope.prototype.leave = function leave() {
|
|
30871
|
+
ImmerScope.prototype.leave = function leave () {
|
|
30954
30872
|
if (this === ImmerScope.current) {
|
|
30955
30873
|
ImmerScope.current = this.parent;
|
|
30956
30874
|
}
|
|
30957
30875
|
};
|
|
30958
|
-
|
|
30959
30876
|
ImmerScope.current = null;
|
|
30960
30877
|
|
|
30961
30878
|
ImmerScope.enter = function () {
|
|
@@ -30964,11 +30881,11 @@ ImmerScope.enter = function () {
|
|
|
30964
30881
|
|
|
30965
30882
|
function revoke(draft) {
|
|
30966
30883
|
draft[DRAFT_STATE].revoke();
|
|
30967
|
-
}
|
|
30884
|
+
}
|
|
30968
30885
|
|
|
30886
|
+
// but share them all instead
|
|
30969
30887
|
|
|
30970
30888
|
var descriptors = {};
|
|
30971
|
-
|
|
30972
30889
|
function willFinalize(scope, result, isReplaced) {
|
|
30973
30890
|
scope.drafts.forEach(function (draft) {
|
|
30974
30891
|
draft[DRAFT_STATE].finalizing = true;
|
|
@@ -30986,7 +30903,6 @@ function willFinalize(scope, result, isReplaced) {
|
|
|
30986
30903
|
markChangesSweep(scope.drafts);
|
|
30987
30904
|
}
|
|
30988
30905
|
}
|
|
30989
|
-
|
|
30990
30906
|
function createProxy(base, parent) {
|
|
30991
30907
|
var isArray = Array.isArray(base);
|
|
30992
30908
|
var draft = clonePotentialDraft(base);
|
|
@@ -31040,11 +30956,7 @@ function peek(draft, prop) {
|
|
|
31040
30956
|
function get(state, prop) {
|
|
31041
30957
|
assertUnrevoked(state);
|
|
31042
30958
|
var value = peek(source(state), prop);
|
|
31043
|
-
|
|
31044
|
-
if (state.finalizing) {
|
|
31045
|
-
return value;
|
|
31046
|
-
} // Create a draft if the value is unmodified.
|
|
31047
|
-
|
|
30959
|
+
if (state.finalizing) { return value; } // Create a draft if the value is unmodified.
|
|
31048
30960
|
|
|
31049
30961
|
if (value === peek(state.base, prop) && isDraftable(value)) {
|
|
31050
30962
|
prepareCopy(state);
|
|
@@ -31059,10 +30971,7 @@ function set(state, prop, value) {
|
|
|
31059
30971
|
state.assigned[prop] = true;
|
|
31060
30972
|
|
|
31061
30973
|
if (!state.modified) {
|
|
31062
|
-
if (is(value, peek(source(state), prop))) {
|
|
31063
|
-
return;
|
|
31064
|
-
}
|
|
31065
|
-
|
|
30974
|
+
if (is(value, peek(source(state), prop))) { return; }
|
|
31066
30975
|
markChanged(state);
|
|
31067
30976
|
prepareCopy(state);
|
|
31068
30977
|
}
|
|
@@ -31073,17 +30982,12 @@ function set(state, prop, value) {
|
|
|
31073
30982
|
function markChanged(state) {
|
|
31074
30983
|
if (!state.modified) {
|
|
31075
30984
|
state.modified = true;
|
|
31076
|
-
|
|
31077
|
-
if (state.parent) {
|
|
31078
|
-
markChanged(state.parent);
|
|
31079
|
-
}
|
|
30985
|
+
if (state.parent) { markChanged(state.parent); }
|
|
31080
30986
|
}
|
|
31081
30987
|
}
|
|
31082
30988
|
|
|
31083
30989
|
function prepareCopy(state) {
|
|
31084
|
-
if (!state.copy) {
|
|
31085
|
-
state.copy = clonePotentialDraft(state.base);
|
|
31086
|
-
}
|
|
30990
|
+
if (!state.copy) { state.copy = clonePotentialDraft(state.base); }
|
|
31087
30991
|
}
|
|
31088
30992
|
|
|
31089
30993
|
function clonePotentialDraft(base) {
|
|
@@ -31108,12 +31012,15 @@ function proxyProperty(draft, prop, enumerable) {
|
|
|
31108
31012
|
descriptors[prop] = desc = {
|
|
31109
31013
|
configurable: true,
|
|
31110
31014
|
enumerable: enumerable,
|
|
31015
|
+
|
|
31111
31016
|
get: function get$1() {
|
|
31112
31017
|
return get(this[DRAFT_STATE], prop);
|
|
31113
31018
|
},
|
|
31019
|
+
|
|
31114
31020
|
set: function set$1(value) {
|
|
31115
31021
|
set(this[DRAFT_STATE], prop, value);
|
|
31116
31022
|
}
|
|
31023
|
+
|
|
31117
31024
|
};
|
|
31118
31025
|
}
|
|
31119
31026
|
|
|
@@ -31121,9 +31028,7 @@ function proxyProperty(draft, prop, enumerable) {
|
|
|
31121
31028
|
}
|
|
31122
31029
|
|
|
31123
31030
|
function assertUnrevoked(state) {
|
|
31124
|
-
if (state.revoked === true) {
|
|
31125
|
-
throw new Error("Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? " + JSON.stringify(source(state)));
|
|
31126
|
-
}
|
|
31031
|
+
if (state.revoked === true) { throw new Error("Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? " + JSON.stringify(source(state))); }
|
|
31127
31032
|
} // This looks expensive, but only proxies are visited, and only objects without known changes are scanned.
|
|
31128
31033
|
|
|
31129
31034
|
|
|
@@ -31137,27 +31042,16 @@ function markChangesSweep(drafts) {
|
|
|
31137
31042
|
|
|
31138
31043
|
if (!state.modified) {
|
|
31139
31044
|
if (Array.isArray(state.base)) {
|
|
31140
|
-
if (hasArrayChanges(state)) {
|
|
31141
|
-
|
|
31142
|
-
}
|
|
31143
|
-
} else if (hasObjectChanges(state)) {
|
|
31144
|
-
markChanged(state);
|
|
31145
|
-
}
|
|
31045
|
+
if (hasArrayChanges(state)) { markChanged(state); }
|
|
31046
|
+
} else if (hasObjectChanges(state)) { markChanged(state); }
|
|
31146
31047
|
}
|
|
31147
31048
|
}
|
|
31148
31049
|
}
|
|
31149
31050
|
|
|
31150
31051
|
function markChangesRecursively(object) {
|
|
31151
|
-
if (!object ||
|
|
31152
|
-
return;
|
|
31153
|
-
}
|
|
31154
|
-
|
|
31052
|
+
if (!object || typeof object !== "object") { return; }
|
|
31155
31053
|
var state = object[DRAFT_STATE];
|
|
31156
|
-
|
|
31157
|
-
if (!state) {
|
|
31158
|
-
return;
|
|
31159
|
-
}
|
|
31160
|
-
|
|
31054
|
+
if (!state) { return; }
|
|
31161
31055
|
var base = state.base;
|
|
31162
31056
|
var draft = state.draft;
|
|
31163
31057
|
var assigned = state.assigned;
|
|
@@ -31187,20 +31081,14 @@ function markChangesRecursively(object) {
|
|
|
31187
31081
|
assigned.length = true;
|
|
31188
31082
|
|
|
31189
31083
|
if (draft.length < base.length) {
|
|
31190
|
-
for (var i = draft.length; i < base.length; i++) {
|
|
31191
|
-
assigned[i] = false;
|
|
31192
|
-
}
|
|
31084
|
+
for (var i = draft.length; i < base.length; i++) { assigned[i] = false; }
|
|
31193
31085
|
} else {
|
|
31194
|
-
for (var i$1 = base.length; i$1 < draft.length; i$1++) {
|
|
31195
|
-
assigned[i$1] = true;
|
|
31196
|
-
}
|
|
31086
|
+
for (var i$1 = base.length; i$1 < draft.length; i$1++) { assigned[i$1] = true; }
|
|
31197
31087
|
}
|
|
31198
31088
|
|
|
31199
31089
|
for (var i$2 = 0; i$2 < draft.length; i$2++) {
|
|
31200
31090
|
// Only untouched indices trigger recursion.
|
|
31201
|
-
if (assigned[i$2] === undefined) {
|
|
31202
|
-
markChangesRecursively(draft[i$2]);
|
|
31203
|
-
}
|
|
31091
|
+
if (assigned[i$2] === undefined) { markChangesRecursively(draft[i$2]); }
|
|
31204
31092
|
}
|
|
31205
31093
|
}
|
|
31206
31094
|
}
|
|
@@ -31237,10 +31125,7 @@ function hasObjectChanges(state) {
|
|
|
31237
31125
|
|
|
31238
31126
|
function hasArrayChanges(state) {
|
|
31239
31127
|
var draft = state.draft;
|
|
31240
|
-
|
|
31241
|
-
if (draft.length !== state.base.length) {
|
|
31242
|
-
return true;
|
|
31243
|
-
} // See #116
|
|
31128
|
+
if (draft.length !== state.base.length) { return true; } // See #116
|
|
31244
31129
|
// If we first shorten the length, our array interceptors will be removed.
|
|
31245
31130
|
// If after that new items are added, result in the same original length,
|
|
31246
31131
|
// those last items will have no intercepting property.
|
|
@@ -31248,13 +31133,9 @@ function hasArrayChanges(state) {
|
|
|
31248
31133
|
// N.B.: splice, unshift, etc only shift values around, but not prop descriptors, so we only have to check
|
|
31249
31134
|
// the last one
|
|
31250
31135
|
|
|
31251
|
-
|
|
31252
31136
|
var descriptor = Object.getOwnPropertyDescriptor(draft, draft.length - 1); // descriptor can be null, but only for newly created sparse arrays, eg. new Array(10)
|
|
31253
31137
|
|
|
31254
|
-
if (descriptor && !descriptor.get) {
|
|
31255
|
-
return true;
|
|
31256
|
-
} // For all other cases, we don't have to compare, as they would have been picked up by the index setters
|
|
31257
|
-
|
|
31138
|
+
if (descriptor && !descriptor.get) { return true; } // For all other cases, we don't have to compare, as they would have been picked up by the index setters
|
|
31258
31139
|
|
|
31259
31140
|
return false;
|
|
31260
31141
|
}
|
|
@@ -31268,12 +31149,11 @@ function createHiddenProperty(target, prop, value) {
|
|
|
31268
31149
|
}
|
|
31269
31150
|
|
|
31270
31151
|
var legacyProxy = /*#__PURE__*/Object.freeze({
|
|
31271
|
-
|
|
31272
|
-
|
|
31152
|
+
willFinalize: willFinalize,
|
|
31153
|
+
createProxy: createProxy
|
|
31273
31154
|
});
|
|
31274
31155
|
|
|
31275
31156
|
function willFinalize$1() {}
|
|
31276
|
-
|
|
31277
31157
|
function createProxy$1(base, parent) {
|
|
31278
31158
|
var scope = parent ? parent.scope : ImmerScope.current;
|
|
31279
31159
|
var state = {
|
|
@@ -31308,27 +31188,33 @@ function createProxy$1(base, parent) {
|
|
|
31308
31188
|
scope.drafts.push(proxy);
|
|
31309
31189
|
return proxy;
|
|
31310
31190
|
}
|
|
31311
|
-
|
|
31312
31191
|
var objectTraps = {
|
|
31313
31192
|
get: get$1,
|
|
31193
|
+
|
|
31314
31194
|
has: function has(target, prop) {
|
|
31315
31195
|
return prop in source$1(target);
|
|
31316
31196
|
},
|
|
31197
|
+
|
|
31317
31198
|
ownKeys: function ownKeys(target) {
|
|
31318
31199
|
return Reflect.ownKeys(source$1(target));
|
|
31319
31200
|
},
|
|
31201
|
+
|
|
31320
31202
|
set: set$1,
|
|
31321
31203
|
deleteProperty: deleteProperty,
|
|
31322
31204
|
getOwnPropertyDescriptor: getOwnPropertyDescriptor,
|
|
31205
|
+
|
|
31323
31206
|
defineProperty: function defineProperty() {
|
|
31324
31207
|
throw new Error("Object.defineProperty() cannot be used on an Immer draft"); // prettier-ignore
|
|
31325
31208
|
},
|
|
31209
|
+
|
|
31326
31210
|
getPrototypeOf: function getPrototypeOf(target) {
|
|
31327
31211
|
return Object.getPrototypeOf(target.base);
|
|
31328
31212
|
},
|
|
31213
|
+
|
|
31329
31214
|
setPrototypeOf: function setPrototypeOf() {
|
|
31330
31215
|
throw new Error("Object.setPrototypeOf() cannot be used on an Immer draft"); // prettier-ignore
|
|
31331
31216
|
}
|
|
31217
|
+
|
|
31332
31218
|
};
|
|
31333
31219
|
var arrayTraps = {};
|
|
31334
31220
|
each(objectTraps, function (key, fn) {
|
|
@@ -31367,10 +31253,7 @@ function peek$1(draft, prop) {
|
|
|
31367
31253
|
}
|
|
31368
31254
|
|
|
31369
31255
|
function get$1(state, prop) {
|
|
31370
|
-
if (prop === DRAFT_STATE) {
|
|
31371
|
-
return state;
|
|
31372
|
-
}
|
|
31373
|
-
|
|
31256
|
+
if (prop === DRAFT_STATE) { return state; }
|
|
31374
31257
|
var drafts = state.drafts; // Check for existing draft in unmodified state.
|
|
31375
31258
|
|
|
31376
31259
|
if (!state.modified && has(drafts, prop)) {
|
|
@@ -31386,10 +31269,7 @@ function get$1(state, prop) {
|
|
|
31386
31269
|
|
|
31387
31270
|
if (state.modified) {
|
|
31388
31271
|
// Assigned values are never drafted. This catches any drafts we created, too.
|
|
31389
|
-
if (value !== peek$1(state.base, prop)) {
|
|
31390
|
-
return value;
|
|
31391
|
-
} // Store drafts on the copy (when one exists).
|
|
31392
|
-
|
|
31272
|
+
if (value !== peek$1(state.base, prop)) { return value; } // Store drafts on the copy (when one exists).
|
|
31393
31273
|
|
|
31394
31274
|
drafts = state.copy;
|
|
31395
31275
|
}
|
|
@@ -31404,11 +31284,7 @@ function set$1(state, prop, value) {
|
|
|
31404
31284
|
// values may be drafts, but falsy values are never drafts.
|
|
31405
31285
|
|
|
31406
31286
|
var isUnchanged = value ? is(baseValue, value) || value === state.drafts[prop] : is(baseValue, value) && prop in state.base;
|
|
31407
|
-
|
|
31408
|
-
if (isUnchanged) {
|
|
31409
|
-
return true;
|
|
31410
|
-
}
|
|
31411
|
-
|
|
31287
|
+
if (isUnchanged) { return true; }
|
|
31412
31288
|
markChanged$1(state);
|
|
31413
31289
|
}
|
|
31414
31290
|
|
|
@@ -31427,10 +31303,7 @@ function deleteProperty(state, prop) {
|
|
|
31427
31303
|
delete state.assigned[prop];
|
|
31428
31304
|
}
|
|
31429
31305
|
|
|
31430
|
-
if (state.copy) {
|
|
31431
|
-
delete state.copy[prop];
|
|
31432
|
-
}
|
|
31433
|
-
|
|
31306
|
+
if (state.copy) { delete state.copy[prop]; }
|
|
31434
31307
|
return true;
|
|
31435
31308
|
} // Note: We never coerce `desc.value` into an Immer draft, because we can't make
|
|
31436
31309
|
// the same guarantee in ES5 mode.
|
|
@@ -31453,16 +31326,13 @@ function markChanged$1(state) {
|
|
|
31453
31326
|
state.modified = true;
|
|
31454
31327
|
state.copy = assign(shallowCopy(state.base), state.drafts);
|
|
31455
31328
|
state.drafts = null;
|
|
31456
|
-
|
|
31457
|
-
if (state.parent) {
|
|
31458
|
-
markChanged$1(state.parent);
|
|
31459
|
-
}
|
|
31329
|
+
if (state.parent) { markChanged$1(state.parent); }
|
|
31460
31330
|
}
|
|
31461
31331
|
}
|
|
31462
31332
|
|
|
31463
31333
|
var modernProxy = /*#__PURE__*/Object.freeze({
|
|
31464
|
-
|
|
31465
|
-
|
|
31334
|
+
willFinalize: willFinalize$1,
|
|
31335
|
+
createProxy: createProxy$1
|
|
31466
31336
|
});
|
|
31467
31337
|
|
|
31468
31338
|
function generatePatches(state, basePath, patches, inversePatches) {
|
|
@@ -31471,13 +31341,14 @@ function generatePatches(state, basePath, patches, inversePatches) {
|
|
|
31471
31341
|
|
|
31472
31342
|
function generateArrayPatches(state, basePath, patches, inversePatches) {
|
|
31473
31343
|
var assign, assign$1;
|
|
31344
|
+
|
|
31474
31345
|
var base = state.base;
|
|
31475
31346
|
var copy = state.copy;
|
|
31476
31347
|
var assigned = state.assigned; // Reduce complexity by ensuring `base` is never longer.
|
|
31477
31348
|
|
|
31478
31349
|
if (copy.length < base.length) {
|
|
31479
|
-
assign = [copy, base], base = assign[0], copy = assign[1];
|
|
31480
|
-
assign$1 = [inversePatches, patches], patches = assign$1[0], inversePatches = assign$1[1];
|
|
31350
|
+
(assign = [copy, base], base = assign[0], copy = assign[1]);
|
|
31351
|
+
(assign$1 = [inversePatches, patches], patches = assign$1[0], inversePatches = assign$1[1]);
|
|
31481
31352
|
}
|
|
31482
31353
|
|
|
31483
31354
|
var delta = copy.length - base.length; // Find the first replaced index.
|
|
@@ -31535,11 +31406,7 @@ function generateObjectPatches(state, basePath, patches, inversePatches) {
|
|
|
31535
31406
|
var origValue = base[key];
|
|
31536
31407
|
var value = copy[key];
|
|
31537
31408
|
var op = !assignedValue ? "remove" : key in base ? "replace" : "add";
|
|
31538
|
-
|
|
31539
|
-
if (origValue === value && op === "replace") {
|
|
31540
|
-
return;
|
|
31541
|
-
}
|
|
31542
|
-
|
|
31409
|
+
if (origValue === value && op === "replace") { return; }
|
|
31543
31410
|
var path = basePath.concat(key);
|
|
31544
31411
|
patches.push(op === "remove" ? {
|
|
31545
31412
|
op: op,
|
|
@@ -31564,26 +31431,20 @@ function generateObjectPatches(state, basePath, patches, inversePatches) {
|
|
|
31564
31431
|
});
|
|
31565
31432
|
}
|
|
31566
31433
|
|
|
31567
|
-
var applyPatches = function
|
|
31434
|
+
var applyPatches = function (draft, patches) {
|
|
31568
31435
|
for (var i$1 = 0, list = patches; i$1 < list.length; i$1 += 1) {
|
|
31569
31436
|
var patch = list[i$1];
|
|
31437
|
+
|
|
31570
31438
|
var path = patch.path;
|
|
31571
31439
|
var op = patch.op;
|
|
31572
31440
|
var value = clone(patch.value); // used to clone patch to ensure original patch is not modified, see #411
|
|
31573
31441
|
|
|
31574
|
-
if (!path.length) {
|
|
31575
|
-
throw new Error("Illegal state");
|
|
31576
|
-
}
|
|
31577
|
-
|
|
31442
|
+
if (!path.length) { throw new Error("Illegal state"); }
|
|
31578
31443
|
var base = draft;
|
|
31579
31444
|
|
|
31580
31445
|
for (var i = 0; i < path.length - 1; i++) {
|
|
31581
31446
|
base = base[path[i]];
|
|
31582
|
-
|
|
31583
|
-
if (!base || _typeof(base) !== "object") {
|
|
31584
|
-
throw new Error("Cannot apply patch, path doesn't resolve: " + path.join("/"));
|
|
31585
|
-
} // prettier-ignore
|
|
31586
|
-
|
|
31447
|
+
if (!base || typeof base !== "object") { throw new Error("Cannot apply patch, path doesn't resolve: " + path.join("/")); } // prettier-ignore
|
|
31587
31448
|
}
|
|
31588
31449
|
|
|
31589
31450
|
var key = path[path.length - 1];
|
|
@@ -31632,33 +31493,27 @@ var configDefaults = {
|
|
|
31632
31493
|
onDelete: null,
|
|
31633
31494
|
onCopy: null
|
|
31634
31495
|
};
|
|
31635
|
-
|
|
31636
31496
|
var Immer = function Immer(config) {
|
|
31637
31497
|
assign(this, configDefaults, config);
|
|
31638
31498
|
this.setUseProxies(this.useProxies);
|
|
31639
31499
|
this.produce = this.produce.bind(this);
|
|
31640
31500
|
};
|
|
31641
31501
|
|
|
31642
|
-
Immer.prototype.produce = function produce(base, recipe, patchListener) {
|
|
31643
|
-
|
|
31502
|
+
Immer.prototype.produce = function produce (base, recipe, patchListener) {
|
|
31503
|
+
var this$1 = this;
|
|
31644
31504
|
|
|
31505
|
+
// curried invocation
|
|
31645
31506
|
if (typeof base === "function" && typeof recipe !== "function") {
|
|
31646
31507
|
var defaultBase = recipe;
|
|
31647
31508
|
recipe = base;
|
|
31648
31509
|
var self = this;
|
|
31649
31510
|
return function curriedProduce(base) {
|
|
31650
|
-
|
|
31651
|
-
|
|
31652
|
-
|
|
31653
|
-
|
|
31511
|
+
var this$1 = this;
|
|
31512
|
+
if ( base === void 0 ) base = defaultBase;
|
|
31513
|
+
var args = [], len = arguments.length - 1;
|
|
31514
|
+
while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];
|
|
31654
31515
|
|
|
31655
|
-
|
|
31656
|
-
args[len] = arguments[len + 1];
|
|
31657
|
-
}
|
|
31658
|
-
|
|
31659
|
-
return self.produce(base, function (draft) {
|
|
31660
|
-
return recipe.call.apply(recipe, [this$1, draft].concat(args));
|
|
31661
|
-
}); // prettier-ignore
|
|
31516
|
+
return self.produce(base, function (draft) { return recipe.call.apply(recipe, [ this$1, draft ].concat( args )); }); // prettier-ignore
|
|
31662
31517
|
};
|
|
31663
31518
|
} // prettier-ignore
|
|
31664
31519
|
|
|
@@ -31684,11 +31539,7 @@ Immer.prototype.produce = function produce(base, recipe, patchListener) {
|
|
|
31684
31539
|
hasError = false;
|
|
31685
31540
|
} finally {
|
|
31686
31541
|
// finally instead of catch + rethrow better preserves original stack
|
|
31687
|
-
if (hasError) {
|
|
31688
|
-
scope.revoke();
|
|
31689
|
-
} else {
|
|
31690
|
-
scope.leave();
|
|
31691
|
-
}
|
|
31542
|
+
if (hasError) { scope.revoke(); }else { scope.leave(); }
|
|
31692
31543
|
}
|
|
31693
31544
|
|
|
31694
31545
|
if (result instanceof Promise) {
|
|
@@ -31705,38 +31556,25 @@ Immer.prototype.produce = function produce(base, recipe, patchListener) {
|
|
|
31705
31556
|
return this.processResult(result, scope);
|
|
31706
31557
|
} else {
|
|
31707
31558
|
result = recipe(base);
|
|
31708
|
-
|
|
31709
|
-
if (result === undefined) {
|
|
31710
|
-
return base;
|
|
31711
|
-
}
|
|
31712
|
-
|
|
31559
|
+
if (result === undefined) { return base; }
|
|
31713
31560
|
return result !== NOTHING ? result : undefined;
|
|
31714
31561
|
}
|
|
31715
31562
|
};
|
|
31716
31563
|
|
|
31717
|
-
Immer.prototype.produceWithPatches = function produceWithPatches(arg1, arg2, arg3) {
|
|
31718
|
-
|
|
31564
|
+
Immer.prototype.produceWithPatches = function produceWithPatches (arg1, arg2, arg3) {
|
|
31565
|
+
var this$1 = this;
|
|
31719
31566
|
|
|
31720
31567
|
if (typeof arg1 === "function") {
|
|
31721
31568
|
return function (state) {
|
|
31722
|
-
|
|
31723
|
-
|
|
31724
|
-
|
|
31725
|
-
while (len-- > 0) {
|
|
31726
|
-
args[len] = arguments[len + 1];
|
|
31727
|
-
}
|
|
31569
|
+
var args = [], len = arguments.length - 1;
|
|
31570
|
+
while ( len-- > 0 ) args[ len ] = arguments[ len + 1 ];
|
|
31728
31571
|
|
|
31729
|
-
|
|
31730
|
-
|
|
31731
|
-
});
|
|
31732
|
-
};
|
|
31572
|
+
return this$1.produceWithPatches(state, function (draft) { return arg1.apply(void 0, [ draft ].concat( args )); });
|
|
31573
|
+
};
|
|
31733
31574
|
} // non-curried form
|
|
31734
31575
|
|
|
31735
31576
|
|
|
31736
|
-
if (arg3) {
|
|
31737
|
-
throw new Error("A patch listener cannot be passed to produceWithPatches");
|
|
31738
|
-
}
|
|
31739
|
-
|
|
31577
|
+
if (arg3) { throw new Error("A patch listener cannot be passed to produceWithPatches"); }
|
|
31740
31578
|
var patches, inversePatches;
|
|
31741
31579
|
var nextState = this.produce(arg1, arg2, function (p, ip) {
|
|
31742
31580
|
patches = p;
|
|
@@ -31745,7 +31583,7 @@ Immer.prototype.produceWithPatches = function produceWithPatches(arg1, arg2, arg
|
|
|
31745
31583
|
return [nextState, patches, inversePatches];
|
|
31746
31584
|
};
|
|
31747
31585
|
|
|
31748
|
-
Immer.prototype.createDraft = function createDraft(base) {
|
|
31586
|
+
Immer.prototype.createDraft = function createDraft (base) {
|
|
31749
31587
|
if (!isDraftable(base)) {
|
|
31750
31588
|
throw new Error("First argument to `createDraft` must be a plain object, an array, or an immerable object"); // prettier-ignore
|
|
31751
31589
|
}
|
|
@@ -31757,7 +31595,7 @@ Immer.prototype.createDraft = function createDraft(base) {
|
|
|
31757
31595
|
return proxy;
|
|
31758
31596
|
};
|
|
31759
31597
|
|
|
31760
|
-
Immer.prototype.finishDraft = function finishDraft(draft, patchListener) {
|
|
31598
|
+
Immer.prototype.finishDraft = function finishDraft (draft, patchListener) {
|
|
31761
31599
|
var state = draft && draft[DRAFT_STATE];
|
|
31762
31600
|
|
|
31763
31601
|
if (!state || !state.isManual) {
|
|
@@ -31773,16 +31611,16 @@ Immer.prototype.finishDraft = function finishDraft(draft, patchListener) {
|
|
|
31773
31611
|
return this.processResult(undefined, scope);
|
|
31774
31612
|
};
|
|
31775
31613
|
|
|
31776
|
-
Immer.prototype.setAutoFreeze = function setAutoFreeze(value) {
|
|
31614
|
+
Immer.prototype.setAutoFreeze = function setAutoFreeze (value) {
|
|
31777
31615
|
this.autoFreeze = value;
|
|
31778
31616
|
};
|
|
31779
31617
|
|
|
31780
|
-
Immer.prototype.setUseProxies = function setUseProxies(value) {
|
|
31618
|
+
Immer.prototype.setUseProxies = function setUseProxies (value) {
|
|
31781
31619
|
this.useProxies = value;
|
|
31782
31620
|
assign(this, value ? modernProxy : legacyProxy);
|
|
31783
31621
|
};
|
|
31784
31622
|
|
|
31785
|
-
Immer.prototype.applyPatches = function applyPatches$1(base, patches) {
|
|
31623
|
+
Immer.prototype.applyPatches = function applyPatches$1 (base, patches) {
|
|
31786
31624
|
// If a patch replaces the entire state, take that replacement as base
|
|
31787
31625
|
// before applying patches
|
|
31788
31626
|
var i;
|
|
@@ -31802,14 +31640,12 @@ Immer.prototype.applyPatches = function applyPatches$1(base, patches) {
|
|
|
31802
31640
|
} // Otherwise, produce a copy of the base state.
|
|
31803
31641
|
|
|
31804
31642
|
|
|
31805
|
-
return this.produce(base, function (draft) {
|
|
31806
|
-
return applyPatches(draft, patches.slice(i + 1));
|
|
31807
|
-
});
|
|
31643
|
+
return this.produce(base, function (draft) { return applyPatches(draft, patches.slice(i + 1)); });
|
|
31808
31644
|
};
|
|
31809
31645
|
/** @internal */
|
|
31810
31646
|
|
|
31811
31647
|
|
|
31812
|
-
Immer.prototype.processResult = function processResult(result, scope) {
|
|
31648
|
+
Immer.prototype.processResult = function processResult (result, scope) {
|
|
31813
31649
|
var baseDraft = scope.drafts[0];
|
|
31814
31650
|
var isReplaced = result !== undefined && result !== baseDraft;
|
|
31815
31651
|
this.willFinalize(scope, result, isReplaced);
|
|
@@ -31857,15 +31693,13 @@ Immer.prototype.processResult = function processResult(result, scope) {
|
|
|
31857
31693
|
*/
|
|
31858
31694
|
|
|
31859
31695
|
|
|
31860
|
-
Immer.prototype.finalize = function finalize(draft, path, scope) {
|
|
31861
|
-
|
|
31696
|
+
Immer.prototype.finalize = function finalize (draft, path, scope) {
|
|
31697
|
+
var this$1 = this;
|
|
31698
|
+
|
|
31862
31699
|
var state = draft[DRAFT_STATE];
|
|
31863
31700
|
|
|
31864
31701
|
if (!state) {
|
|
31865
|
-
if (Object.isFrozen(draft)) {
|
|
31866
|
-
return draft;
|
|
31867
|
-
}
|
|
31868
|
-
|
|
31702
|
+
if (Object.isFrozen(draft)) { return draft; }
|
|
31869
31703
|
return this.finalizeTree(draft, null, scope);
|
|
31870
31704
|
} // Never finalize drafts owned by another scope.
|
|
31871
31705
|
|
|
@@ -31888,17 +31722,13 @@ Immer.prototype.finalize = function finalize(draft, path, scope) {
|
|
|
31888
31722
|
var assigned = state.assigned;
|
|
31889
31723
|
|
|
31890
31724
|
for (var prop in assigned) {
|
|
31891
|
-
if (!assigned[prop]) {
|
|
31892
|
-
this.onDelete(state, prop);
|
|
31893
|
-
}
|
|
31725
|
+
if (!assigned[prop]) { this.onDelete(state, prop); }
|
|
31894
31726
|
}
|
|
31895
31727
|
} else {
|
|
31896
31728
|
var base = state.base;
|
|
31897
|
-
|
|
31729
|
+
var copy = state.copy;
|
|
31898
31730
|
each(base, function (prop) {
|
|
31899
|
-
if (!has(copy, prop)) {
|
|
31900
|
-
this$1.onDelete(state, prop);
|
|
31901
|
-
}
|
|
31731
|
+
if (!has(copy, prop)) { this$1.onDelete(state, prop); }
|
|
31902
31732
|
});
|
|
31903
31733
|
}
|
|
31904
31734
|
}
|
|
@@ -31926,8 +31756,9 @@ Immer.prototype.finalize = function finalize(draft, path, scope) {
|
|
|
31926
31756
|
*/
|
|
31927
31757
|
|
|
31928
31758
|
|
|
31929
|
-
Immer.prototype.finalizeTree = function finalizeTree(root, rootPath, scope) {
|
|
31930
|
-
|
|
31759
|
+
Immer.prototype.finalizeTree = function finalizeTree (root, rootPath, scope) {
|
|
31760
|
+
var this$1 = this;
|
|
31761
|
+
|
|
31931
31762
|
var state = root[DRAFT_STATE];
|
|
31932
31763
|
|
|
31933
31764
|
if (state) {
|
|
@@ -31941,7 +31772,7 @@ Immer.prototype.finalizeTree = function finalizeTree(root, rootPath, scope) {
|
|
|
31941
31772
|
|
|
31942
31773
|
var needPatches = !!rootPath && !!scope.patches;
|
|
31943
31774
|
|
|
31944
|
-
var finalizeProperty = function
|
|
31775
|
+
var finalizeProperty = function (prop, value, parent) {
|
|
31945
31776
|
if (value === parent) {
|
|
31946
31777
|
throw Error("Immer forbids circular references");
|
|
31947
31778
|
} // In the `finalizeTree` method, only the `root` object may be a draft.
|
|
@@ -31968,9 +31799,7 @@ Immer.prototype.finalizeTree = function finalizeTree(root, rootPath, scope) {
|
|
|
31968
31799
|
} // Unchanged drafts are never passed to the `onAssign` hook.
|
|
31969
31800
|
|
|
31970
31801
|
|
|
31971
|
-
if (isDraftProp && value === state.base[prop]) {
|
|
31972
|
-
return;
|
|
31973
|
-
}
|
|
31802
|
+
if (isDraftProp && value === state.base[prop]) { return; }
|
|
31974
31803
|
} // Unchanged draft properties are ignored.
|
|
31975
31804
|
else if (isDraftProp && is(value, state.base[prop])) {
|
|
31976
31805
|
return;
|
|
@@ -32055,149 +31884,103 @@ var createDraft = immer.createDraft.bind(immer);
|
|
|
32055
31884
|
|
|
32056
31885
|
var finishDraft = immer.finishDraft.bind(immer);
|
|
32057
31886
|
|
|
32058
|
-
|
|
32059
|
-
|
|
32060
|
-
|
|
32061
|
-
|
|
32062
|
-
for (var _i = 0, _formConfigKeys = formConfigKeys; _i < _formConfigKeys.length; _i++) {
|
|
32063
|
-
var formKey = _formConfigKeys[_i];
|
|
31887
|
+
const createInitialState = formConfig => {
|
|
31888
|
+
let initialForm = {};
|
|
31889
|
+
const formConfigKeys = Object.keys(formConfig);
|
|
31890
|
+
for (let formKey of formConfigKeys) {
|
|
32064
31891
|
initialForm[formKey] = {
|
|
32065
31892
|
dirty: false,
|
|
32066
31893
|
rawValue: formConfig[formKey].defaultValue || "",
|
|
32067
31894
|
validators: formConfig[formKey].validators || [],
|
|
32068
31895
|
constraints: formConfig[formKey].constraints || []
|
|
32069
31896
|
};
|
|
32070
|
-
}
|
|
31897
|
+
}
|
|
31898
|
+
// Because validators require the entire form we have to do a
|
|
32071
31899
|
// second pass to add errors once the initial form has been
|
|
32072
31900
|
// constructed
|
|
32073
|
-
|
|
32074
|
-
|
|
32075
|
-
|
|
32076
|
-
|
|
32077
|
-
var errors = computeErrors(_formKey, initialForm);
|
|
32078
|
-
initialForm[_formKey].errors = errors;
|
|
32079
|
-
initialForm[_formKey].hasErrors = errors.length > 0;
|
|
31901
|
+
for (let formKey of formConfigKeys) {
|
|
31902
|
+
let errors = computeErrors(formKey, initialForm);
|
|
31903
|
+
initialForm[formKey].errors = errors;
|
|
31904
|
+
initialForm[formKey].hasErrors = errors.length > 0;
|
|
32080
31905
|
}
|
|
32081
|
-
|
|
32082
31906
|
return initialForm;
|
|
32083
31907
|
};
|
|
32084
31908
|
|
|
32085
|
-
|
|
32086
|
-
|
|
32087
|
-
|
|
32088
|
-
|
|
32089
|
-
|
|
32090
|
-
type: SET,
|
|
32091
|
-
payload: {
|
|
32092
|
-
fieldName: fieldName,
|
|
32093
|
-
value: value
|
|
32094
|
-
}
|
|
32095
|
-
};
|
|
32096
|
-
};
|
|
32097
|
-
};
|
|
32098
|
-
|
|
32099
|
-
var CLEAR = "form/CLEAR";
|
|
32100
|
-
|
|
32101
|
-
var _clear = function clear() {
|
|
32102
|
-
return {
|
|
32103
|
-
type: CLEAR
|
|
32104
|
-
};
|
|
32105
|
-
};
|
|
32106
|
-
|
|
32107
|
-
var createFormReducer = function createFormReducer(formConfig) {
|
|
32108
|
-
return function () {
|
|
32109
|
-
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : createInitialState(formConfig);
|
|
32110
|
-
var action = arguments.length > 1 ? arguments[1] : undefined;
|
|
32111
|
-
|
|
32112
|
-
switch (action.type) {
|
|
32113
|
-
case SET:
|
|
32114
|
-
var changedFieldName = action.payload.fieldName;
|
|
32115
|
-
var newRawValue = action.payload.value;
|
|
32116
|
-
return produce(state, function (draftState) {
|
|
32117
|
-
var originalValue = draftState[changedFieldName].rawValue;
|
|
32118
|
-
draftState[changedFieldName].rawValue = newRawValue;
|
|
32119
|
-
|
|
32120
|
-
if (computeConstraints(changedFieldName, draftState).length > 0) {
|
|
32121
|
-
// If the change violates constraints, revert the change
|
|
32122
|
-
draftState[changedFieldName].rawValue = originalValue;
|
|
32123
|
-
return draftState;
|
|
32124
|
-
}
|
|
32125
|
-
|
|
32126
|
-
var fields = Object.entries(draftState);
|
|
32127
|
-
|
|
32128
|
-
for (var _i3 = 0, _fields = fields; _i3 < _fields.length; _i3++) {
|
|
32129
|
-
var entry = _fields[_i3];
|
|
32130
|
-
var fieldName = entry[0];
|
|
32131
|
-
var field = entry[1];
|
|
32132
|
-
var errors = computeErrors(fieldName, draftState);
|
|
32133
|
-
var dirty = fieldName === changedFieldName ? true : field.dirty;
|
|
32134
|
-
draftState[fieldName].errors = errors;
|
|
32135
|
-
draftState[fieldName].dirty = dirty;
|
|
32136
|
-
draftState[fieldName].hasErrors = errors.length > 0;
|
|
32137
|
-
}
|
|
32138
|
-
});
|
|
31909
|
+
const SET = "field/SET";
|
|
31910
|
+
const set$2 = fieldName => value => ({
|
|
31911
|
+
type: SET,
|
|
31912
|
+
payload: { fieldName, value }
|
|
31913
|
+
});
|
|
32139
31914
|
|
|
32140
|
-
|
|
32141
|
-
|
|
31915
|
+
const CLEAR = "form/CLEAR";
|
|
31916
|
+
const clear = () => ({ type: CLEAR });
|
|
31917
|
+
|
|
31918
|
+
const createFormReducer = formConfig => (
|
|
31919
|
+
state = createInitialState(formConfig),
|
|
31920
|
+
action
|
|
31921
|
+
) => {
|
|
31922
|
+
switch (action.type) {
|
|
31923
|
+
case SET:
|
|
31924
|
+
const changedFieldName = action.payload.fieldName;
|
|
31925
|
+
const newRawValue = action.payload.value;
|
|
31926
|
+
|
|
31927
|
+
return produce(state, draftState => {
|
|
31928
|
+
let originalValue = draftState[changedFieldName].rawValue;
|
|
31929
|
+
draftState[changedFieldName].rawValue = newRawValue;
|
|
31930
|
+
if (computeConstraints(changedFieldName, draftState).length > 0) {
|
|
31931
|
+
// If the change violates constraints, revert the change
|
|
31932
|
+
draftState[changedFieldName].rawValue = originalValue;
|
|
31933
|
+
return draftState;
|
|
31934
|
+
}
|
|
32142
31935
|
|
|
32143
|
-
|
|
32144
|
-
|
|
32145
|
-
|
|
32146
|
-
|
|
31936
|
+
const fields = Object.entries(draftState);
|
|
31937
|
+
for (let entry of fields) {
|
|
31938
|
+
let fieldName = entry[0];
|
|
31939
|
+
let field = entry[1];
|
|
31940
|
+
let errors = computeErrors(fieldName, draftState);
|
|
31941
|
+
let dirty = fieldName === changedFieldName ? true : field.dirty;
|
|
31942
|
+
draftState[fieldName].errors = errors;
|
|
31943
|
+
draftState[fieldName].dirty = dirty;
|
|
31944
|
+
draftState[fieldName].hasErrors = errors.length > 0;
|
|
31945
|
+
}
|
|
31946
|
+
});
|
|
31947
|
+
case CLEAR:
|
|
31948
|
+
return createInitialState(formConfig);
|
|
31949
|
+
default:
|
|
31950
|
+
return state;
|
|
31951
|
+
}
|
|
32147
31952
|
};
|
|
32148
31953
|
|
|
32149
|
-
|
|
31954
|
+
const createMapDispatchToProps = formConfig => {
|
|
32150
31955
|
// Do memo-ization
|
|
32151
|
-
|
|
32152
|
-
|
|
32153
|
-
return
|
|
31956
|
+
let cachedDispatch;
|
|
31957
|
+
let cacheValue;
|
|
31958
|
+
return dispatch => {
|
|
32154
31959
|
if (dispatch == cachedDispatch) {
|
|
32155
31960
|
return cacheValue;
|
|
32156
31961
|
}
|
|
32157
|
-
|
|
32158
|
-
var dispatchObj = {};
|
|
31962
|
+
let dispatchObj = {};
|
|
32159
31963
|
dispatchObj.fields = {};
|
|
32160
|
-
|
|
32161
|
-
|
|
32162
|
-
var _loop = function _loop() {
|
|
32163
|
-
var fieldName = _keys[_i4];
|
|
31964
|
+
const keys = Object.keys(formConfig);
|
|
31965
|
+
for (let fieldName of keys) {
|
|
32164
31966
|
dispatchObj.fields[fieldName] = {
|
|
32165
|
-
set:
|
|
32166
|
-
return dispatch(set$2(fieldName)(value));
|
|
32167
|
-
}
|
|
31967
|
+
set: value => dispatch(set$2(fieldName)(value))
|
|
32168
31968
|
};
|
|
32169
|
-
};
|
|
32170
|
-
|
|
32171
|
-
for (var _i4 = 0, _keys = keys; _i4 < _keys.length; _i4++) {
|
|
32172
|
-
_loop();
|
|
32173
31969
|
}
|
|
32174
|
-
|
|
32175
|
-
dispatchObj.form = {
|
|
32176
|
-
clear: function clear() {
|
|
32177
|
-
return dispatch(_clear());
|
|
32178
|
-
}
|
|
32179
|
-
};
|
|
31970
|
+
dispatchObj.form = { clear: () => dispatch(clear()) };
|
|
32180
31971
|
cachedDispatch = dispatch;
|
|
32181
|
-
cacheValue = {
|
|
32182
|
-
actions: dispatchObj
|
|
32183
|
-
};
|
|
31972
|
+
cacheValue = { actions: dispatchObj };
|
|
32184
31973
|
return cacheValue;
|
|
32185
31974
|
};
|
|
32186
31975
|
};
|
|
32187
31976
|
|
|
32188
|
-
|
|
32189
|
-
return {
|
|
32190
|
-
fields: state
|
|
32191
|
-
};
|
|
32192
|
-
};
|
|
31977
|
+
const mapStateToProps = state => ({ fields: state });
|
|
32193
31978
|
|
|
32194
|
-
|
|
32195
|
-
|
|
32196
|
-
|
|
32197
|
-
|
|
32198
|
-
|
|
32199
|
-
};
|
|
32200
|
-
};
|
|
31979
|
+
const createFormState = formConfig => ({
|
|
31980
|
+
reducer: createFormReducer(formConfig),
|
|
31981
|
+
mapDispatchToProps: createMapDispatchToProps(formConfig),
|
|
31982
|
+
mapStateToProps: mapStateToProps
|
|
31983
|
+
});
|
|
32201
31984
|
|
|
32202
31985
|
var formatDelimiter = "_";
|
|
32203
31986
|
var phoneFormats = ["", "_", "__", "(___) ", "(___) _", "(___) __", "(___) ___-", "(___) ___-_", "(___) ___-__", "(___) ___-___", "(___) ___-____"];
|
|
@@ -36086,10 +35869,92 @@ var TitleModule = function TitleModule(_ref) {
|
|
|
36086
35869
|
}, subtitle)));
|
|
36087
35870
|
};
|
|
36088
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
|
+
|
|
36089
35945
|
var AmountModule = function AmountModule(_ref) {
|
|
36090
35946
|
var totalAmountDue = _ref.totalAmountDue,
|
|
36091
35947
|
autoPayEnabled = _ref.autoPayEnabled,
|
|
36092
|
-
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
|
+
|
|
36093
35958
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
36094
35959
|
padding: "0 0.25rem 0 0"
|
|
36095
35960
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
@@ -36097,29 +35962,43 @@ var AmountModule = function AmountModule(_ref) {
|
|
|
36097
35962
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
36098
35963
|
variant: "pS",
|
|
36099
35964
|
weight: FONT_WEIGHT_SEMIBOLD,
|
|
36100
|
-
extraStyles: "text-align: right;"
|
|
35965
|
+
extraStyles: isMobile ? "text-align: left;" : "text-align: right;"
|
|
36101
35966
|
}, isMobile ? "Total Due" : "Total Amount Due"), /*#__PURE__*/React__default.createElement(AmountCallout$1, {
|
|
36102
35967
|
amount: displayCurrency(totalAmountDue),
|
|
36103
|
-
textAlign: "right"
|
|
36104
|
-
}), autoPayEnabled && /*#__PURE__*/React__default.createElement(
|
|
36105
|
-
|
|
36106
|
-
|
|
36107
|
-
|
|
36108
|
-
|
|
36109
|
-
|
|
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
|
+
})));
|
|
36110
35978
|
};
|
|
36111
35979
|
|
|
36112
35980
|
var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
36113
35981
|
var isMobile = _ref.isMobile,
|
|
36114
35982
|
obligations = _ref.obligations,
|
|
36115
35983
|
config = _ref.config,
|
|
36116
|
-
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;
|
|
36117
35991
|
|
|
36118
35992
|
var _useState = React.useState(false),
|
|
36119
35993
|
_useState2 = _slicedToArray(_useState, 2),
|
|
36120
35994
|
isLoading = _useState2[0],
|
|
36121
35995
|
setIsLoading = _useState2[1];
|
|
36122
35996
|
|
|
35997
|
+
var _useState3 = React.useState(false),
|
|
35998
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
35999
|
+
modalOpen = _useState4[0],
|
|
36000
|
+
toggleModal = _useState4[1];
|
|
36001
|
+
|
|
36123
36002
|
var obligationSlug = config.obligationSlug;
|
|
36124
36003
|
var createPaymentFromProfile = actions.createPaymentFromProfile,
|
|
36125
36004
|
setDetailedObligation = actions.setDetailedObligation;
|
|
@@ -36135,12 +36014,47 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
|
36135
36014
|
};
|
|
36136
36015
|
|
|
36137
36016
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
36138
|
-
padding: "16px 0 0",
|
|
36017
|
+
padding: isMobile ? "0" : "16px 0 0",
|
|
36139
36018
|
minWidth: "100%",
|
|
36140
36019
|
borderSize: "1px",
|
|
36141
36020
|
borderColor: GHOST_GREY,
|
|
36142
36021
|
borderWidthOverride: "1px 0 0 0",
|
|
36143
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"
|
|
36144
36058
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
36145
36059
|
justify: isMobile ? "center" : "flex-end",
|
|
36146
36060
|
align: "center",
|
|
@@ -36149,12 +36063,30 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
|
36149
36063
|
padding: isMobile ? "0 8px 0 0" : "8px",
|
|
36150
36064
|
extraStyles: isMobile && "flex-grow: 1;"
|
|
36151
36065
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
36152
|
-
variant:
|
|
36066
|
+
variant: "tertiary",
|
|
36153
36067
|
text: config.type === "ACCOUNT" ? "Account Details" : "Property Details",
|
|
36154
36068
|
action: handleDetailsClick,
|
|
36155
36069
|
dataQa: "Account Details",
|
|
36156
36070
|
extraStyles: isMobile && "flex-grow: 1; width: 100%;"
|
|
36157
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, {
|
|
36158
36090
|
padding: isMobile ? "0 0 0 8px" : "8px",
|
|
36159
36091
|
extraStyles: isMobile && "flex-grow: 1;"
|
|
36160
36092
|
}, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
|
|
@@ -36162,11 +36094,11 @@ var PaymentDetailsActions = function PaymentDetailsActions(_ref) {
|
|
|
36162
36094
|
action: function action() {
|
|
36163
36095
|
return handleClick(obligations);
|
|
36164
36096
|
},
|
|
36165
|
-
text: "
|
|
36166
|
-
variant: isMobile ? "
|
|
36167
|
-
dataQa: "
|
|
36097
|
+
text: "Pay Now",
|
|
36098
|
+
variant: isMobile ? "smallSecondary" : "secondary",
|
|
36099
|
+
dataQa: "Pay Now",
|
|
36168
36100
|
extraStyles: isMobile && "flex-grow: 1; width: 100%;"
|
|
36169
|
-
}))));
|
|
36101
|
+
})))));
|
|
36170
36102
|
};
|
|
36171
36103
|
|
|
36172
36104
|
var Obligation = function Obligation(_ref) {
|
|
@@ -36174,13 +36106,20 @@ var Obligation = function Obligation(_ref) {
|
|
|
36174
36106
|
obligations = _ref.obligations,
|
|
36175
36107
|
actions = _ref.actions,
|
|
36176
36108
|
autoPayEnabled = _ref.autoPayEnabled,
|
|
36109
|
+
autoPayAvailable = _ref.autoPayAvailable,
|
|
36110
|
+
handleAutopayAction = _ref.handleAutopayAction,
|
|
36111
|
+
deactivatePaymentSchedule = _ref.deactivatePaymentSchedule,
|
|
36112
|
+
autoPaySchedule = _ref.autoPaySchedule,
|
|
36113
|
+
navigateToSettings = _ref.navigateToSettings,
|
|
36177
36114
|
isMobile = _ref.isMobile;
|
|
36178
36115
|
var obligation = obligations[0];
|
|
36179
36116
|
var customAttributes = obligation.customAttributes;
|
|
36180
36117
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
36181
|
-
|
|
36118
|
+
padding: "0",
|
|
36182
36119
|
borderRadius: "4px",
|
|
36183
36120
|
boxShadow: "0px 0px 5px 0px ".concat(GHOST_GREY)
|
|
36121
|
+
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
36122
|
+
background: WHITE
|
|
36184
36123
|
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
36185
36124
|
childGap: "14px"
|
|
36186
36125
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -36197,7 +36136,7 @@ var Obligation = function Obligation(_ref) {
|
|
|
36197
36136
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
36198
36137
|
justify: "flex-start",
|
|
36199
36138
|
align: "center"
|
|
36200
|
-
},
|
|
36139
|
+
}, /*#__PURE__*/React__default.createElement(IconsModule, {
|
|
36201
36140
|
icon: config.icon,
|
|
36202
36141
|
iconDefault: config.iconDefault,
|
|
36203
36142
|
configIconMap: config.iconMap,
|
|
@@ -36208,18 +36147,38 @@ var Obligation = function Obligation(_ref) {
|
|
|
36208
36147
|
subtitle: obligation.subDescription,
|
|
36209
36148
|
titleColor: BRIGHT_GREY,
|
|
36210
36149
|
isMobile: isMobile
|
|
36211
|
-
}))), /*#__PURE__*/React__default.createElement(AmountModule, {
|
|
36150
|
+
}))), !isMobile && /*#__PURE__*/React__default.createElement(AmountModule, {
|
|
36212
36151
|
totalAmountDue: obligations.reduce(function (acc, curr) {
|
|
36213
36152
|
return acc + curr.amountDue;
|
|
36214
36153
|
}, 0),
|
|
36215
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,
|
|
36216
36169
|
isMobile: isMobile
|
|
36217
|
-
}))), /*#__PURE__*/React__default.createElement(PaymentDetailsActions, {
|
|
36170
|
+
}))), isMobile && /*#__PURE__*/React__default.createElement(PaymentDetailsActions, {
|
|
36218
36171
|
obligations: obligations,
|
|
36172
|
+
autoPayEnabled: autoPayEnabled,
|
|
36173
|
+
autoPayAvailable: autoPayAvailable,
|
|
36174
|
+
handleAutopayAction: handleAutopayAction,
|
|
36175
|
+
deactivatePaymentSchedule: deactivatePaymentSchedule,
|
|
36176
|
+
autoPaySchedule: autoPaySchedule,
|
|
36177
|
+
navigateToSettings: navigateToSettings,
|
|
36219
36178
|
config: config,
|
|
36220
36179
|
actions: actions,
|
|
36221
36180
|
isMobile: isMobile
|
|
36222
|
-
}))
|
|
36181
|
+
}));
|
|
36223
36182
|
};
|
|
36224
36183
|
|
|
36225
36184
|
var PartialAmountForm = function PartialAmountForm(_ref) {
|
|
@@ -36386,7 +36345,7 @@ var labeledAmountTotal = {
|
|
|
36386
36345
|
"default": "h6",
|
|
36387
36346
|
small: "pL"
|
|
36388
36347
|
};
|
|
36389
|
-
var fallbackValues$
|
|
36348
|
+
var fallbackValues$u = {
|
|
36390
36349
|
backgroundColor: backgroundColor$7,
|
|
36391
36350
|
lineItem: lineItem,
|
|
36392
36351
|
labeledAmountSubtotal: labeledAmountSubtotal,
|
|
@@ -36547,7 +36506,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
|
|
|
36547
36506
|
});
|
|
36548
36507
|
};
|
|
36549
36508
|
|
|
36550
|
-
var PaymentDetails$1 = themeComponent(PaymentDetails, "PaymentDetails", fallbackValues$
|
|
36509
|
+
var PaymentDetails$1 = themeComponent(PaymentDetails, "PaymentDetails", fallbackValues$u, "default");
|
|
36551
36510
|
|
|
36552
36511
|
var linkColor$1 = {
|
|
36553
36512
|
"default": "#357fb8",
|
|
@@ -36569,7 +36528,7 @@ var modalLinkHoverFocus = {
|
|
|
36569
36528
|
"default": "",
|
|
36570
36529
|
footer: "outline: none; text-decoration: underline;"
|
|
36571
36530
|
};
|
|
36572
|
-
var fallbackValues$
|
|
36531
|
+
var fallbackValues$v = {
|
|
36573
36532
|
linkColor: linkColor$1,
|
|
36574
36533
|
fontSize: fontSize$8,
|
|
36575
36534
|
lineHeight: lineHeight$4,
|
|
@@ -36632,7 +36591,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
36632
36591
|
});
|
|
36633
36592
|
};
|
|
36634
36593
|
|
|
36635
|
-
var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$
|
|
36594
|
+
var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$v, "default");
|
|
36636
36595
|
|
|
36637
36596
|
function _templateObject$z() {
|
|
36638
36597
|
var data = _taggedTemplateLiteral([""]);
|
|
@@ -37018,7 +36977,7 @@ var headingDisabledColor = "".concat(ATHENS_GREY);
|
|
|
37018
36977
|
var bodyBackgroundColor$1 = "#eeeeee";
|
|
37019
36978
|
var borderColor$2 = "".concat(GREY_CHATEAU);
|
|
37020
36979
|
var focusStyles$1 = "outline: none;";
|
|
37021
|
-
var fallbackValues$
|
|
36980
|
+
var fallbackValues$w = {
|
|
37022
36981
|
headingBackgroundColor: headingBackgroundColor$1,
|
|
37023
36982
|
headingDisabledColor: headingDisabledColor,
|
|
37024
36983
|
bodyBackgroundColor: bodyBackgroundColor$1,
|
|
@@ -37205,7 +37164,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
37205
37164
|
})));
|
|
37206
37165
|
};
|
|
37207
37166
|
|
|
37208
|
-
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$
|
|
37167
|
+
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$w);
|
|
37209
37168
|
|
|
37210
37169
|
var RegistrationForm = function RegistrationForm(_ref) {
|
|
37211
37170
|
var _emailErrorMessages, _passwordErrorMessage;
|
|
@@ -37492,7 +37451,7 @@ var ResetPasswordSuccess = withWindowSize(ResetConfirmationForm$2);
|
|
|
37492
37451
|
var activeTabBackground = "#FFFFFF";
|
|
37493
37452
|
var activeTabAccent = "#15749D";
|
|
37494
37453
|
var activeTabHover = "#B8D5E1";
|
|
37495
|
-
var fallbackValues$
|
|
37454
|
+
var fallbackValues$x = {
|
|
37496
37455
|
activeTabBackground: activeTabBackground,
|
|
37497
37456
|
activeTabAccent: activeTabAccent,
|
|
37498
37457
|
activeTabHover: activeTabHover
|
|
@@ -37548,7 +37507,7 @@ var TabSidebar = function TabSidebar(_ref) {
|
|
|
37548
37507
|
})));
|
|
37549
37508
|
};
|
|
37550
37509
|
|
|
37551
|
-
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$
|
|
37510
|
+
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$x);
|
|
37552
37511
|
|
|
37553
37512
|
var backgroundColor$8 = {
|
|
37554
37513
|
"default": "#ffffff",
|
|
@@ -37578,7 +37537,7 @@ var modalLinkHoverFocus$1 = {
|
|
|
37578
37537
|
"default": "",
|
|
37579
37538
|
footer: "outline: none; text-decoration: underline;"
|
|
37580
37539
|
};
|
|
37581
|
-
var fallbackValues$
|
|
37540
|
+
var fallbackValues$y = {
|
|
37582
37541
|
backgroundColor: backgroundColor$8,
|
|
37583
37542
|
linkColor: linkColor$2,
|
|
37584
37543
|
border: border$2,
|
|
@@ -37642,7 +37601,7 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
|
|
|
37642
37601
|
});
|
|
37643
37602
|
};
|
|
37644
37603
|
|
|
37645
|
-
var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$
|
|
37604
|
+
var TermsAndConditionsModal$1 = themeComponent(TermsAndConditionsModal, "TermsAndConditionsModal", fallbackValues$y, "default");
|
|
37646
37605
|
|
|
37647
37606
|
function _templateObject2$l() {
|
|
37648
37607
|
var data = _taggedTemplateLiteral([""]);
|
|
@@ -37772,7 +37731,7 @@ var WorkflowTile = function WorkflowTile(_ref) {
|
|
|
37772
37731
|
};
|
|
37773
37732
|
|
|
37774
37733
|
var pageBackground = "#F6F6F9";
|
|
37775
|
-
var fallbackValues$
|
|
37734
|
+
var fallbackValues$z = {
|
|
37776
37735
|
pageBackground: pageBackground
|
|
37777
37736
|
};
|
|
37778
37737
|
|
|
@@ -37819,7 +37778,7 @@ var CenterSingle = function CenterSingle(_ref) {
|
|
|
37819
37778
|
})));
|
|
37820
37779
|
};
|
|
37821
37780
|
|
|
37822
|
-
var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$
|
|
37781
|
+
var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$z));
|
|
37823
37782
|
|
|
37824
37783
|
var CenterStack = function CenterStack(_ref) {
|
|
37825
37784
|
var header = _ref.header,
|
|
@@ -37861,7 +37820,7 @@ var CenterStack = function CenterStack(_ref) {
|
|
|
37861
37820
|
})));
|
|
37862
37821
|
};
|
|
37863
37822
|
|
|
37864
|
-
var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$
|
|
37823
|
+
var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$z));
|
|
37865
37824
|
|
|
37866
37825
|
var CenterSingle$2 = function CenterSingle(_ref) {
|
|
37867
37826
|
var header = _ref.header,
|
|
@@ -37901,7 +37860,7 @@ var CenterSingle$2 = function CenterSingle(_ref) {
|
|
|
37901
37860
|
})));
|
|
37902
37861
|
};
|
|
37903
37862
|
|
|
37904
|
-
var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$
|
|
37863
|
+
var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$z));
|
|
37905
37864
|
|
|
37906
37865
|
var SidebarSingleContent = function SidebarSingleContent(_ref) {
|
|
37907
37866
|
var header = _ref.header,
|
|
@@ -37955,7 +37914,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
|
|
|
37955
37914
|
})));
|
|
37956
37915
|
};
|
|
37957
37916
|
|
|
37958
|
-
var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$
|
|
37917
|
+
var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$z));
|
|
37959
37918
|
|
|
37960
37919
|
var SidebarStackContent = function SidebarStackContent(_ref) {
|
|
37961
37920
|
var header = _ref.header,
|
|
@@ -38026,7 +37985,7 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
|
|
|
38026
37985
|
})));
|
|
38027
37986
|
};
|
|
38028
37987
|
|
|
38029
|
-
var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$
|
|
37988
|
+
var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$z));
|
|
38030
37989
|
|
|
38031
37990
|
|
|
38032
37991
|
|
|
@@ -38053,6 +38012,7 @@ exports.AddObligation = AddObligation$1;
|
|
|
38053
38012
|
exports.AddressForm = AddressForm;
|
|
38054
38013
|
exports.Alert = Alert$1;
|
|
38055
38014
|
exports.AmountCallout = AmountCallout$1;
|
|
38015
|
+
exports.AutopayOnIcon = AutopayOnIcon$1;
|
|
38056
38016
|
exports.BankIcon = BankIcon;
|
|
38057
38017
|
exports.Box = Box;
|
|
38058
38018
|
exports.Breadcrumb = Breadcrumbs;
|