@mx-cartographer/experiences 4.1.2-alpha.mega12 → 4.1.2-alpha.mega14
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/help/store/HelpStore.d.ts +1 -1
- package/dist/index.es.js +154 -153
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as t, jsxs as l, Fragment as
|
|
1
|
+
import { jsx as t, jsxs as l, Fragment as W } from "react/jsx-runtime";
|
|
2
2
|
import g, { useMemo as zo, useRef as ri, useEffect as xA, useState as EA, createContext as Ko, useContext as qo } from "react";
|
|
3
3
|
import { observer as T } from "mobx-react-lite";
|
|
4
4
|
import N from "@mui/material/Box";
|
|
@@ -80,7 +80,7 @@ import vA from "@mui/material/Avatar";
|
|
|
80
80
|
import be from "@mui/material/ListItemAvatar";
|
|
81
81
|
import nA from "@mui/material/ListItemIcon";
|
|
82
82
|
import { ChevronRight as wA, Payments as Ds, NoteStack as xs, Person as Os, CheckCircle as _s, Icon as Wa, ExpandLess as Ns, ExpandMore as Ps, AccountBalance as Ms, AddBox as li } from "@mxenabled/mx-icons";
|
|
83
|
-
import { makeAutoObservable as De, runInAction as
|
|
83
|
+
import { makeAutoObservable as De, runInAction as Q, reaction as Rs, observable as Hs } from "mobx";
|
|
84
84
|
import { differenceInDays as Bs } from "date-fns/differenceInDays";
|
|
85
85
|
import pn from "@mui/icons-material/ChevronRight";
|
|
86
86
|
import ia from "@mui/icons-material/ExpandMore";
|
|
@@ -342,7 +342,7 @@ const Tc = async (e, A, n = "1.0.0", a = "Experiences") => {
|
|
|
342
342
|
year: "numeric"
|
|
343
343
|
}
|
|
344
344
|
}, ne = (e, A) => Wo(new Date(e), Object.assign(A), { locale: ZA() });
|
|
345
|
-
var
|
|
345
|
+
var Y = /* @__PURE__ */ ((e) => (e[e.ANY = 0] = "ANY", e[e.CHECKING = 1] = "CHECKING", e[e.SAVINGS = 2] = "SAVINGS", e[e.LOAN = 3] = "LOAN", e[e.CREDIT_CARD = 4] = "CREDIT_CARD", e[e.INVESTMENT = 5] = "INVESTMENT", e[e.LINE_OF_CREDIT = 6] = "LINE_OF_CREDIT", e[e.MORTGAGE = 7] = "MORTGAGE", e[e.PROPERTY = 8] = "PROPERTY", e[e.CASH = 9] = "CASH", e[e.INSURANCE = 10] = "INSURANCE", e[e.PREPAID = 11] = "PREPAID", e[e.CHECKING_LINE_OF_CREDIT = 12] = "CHECKING_LINE_OF_CREDIT", e[e.DIGITAL_WALLET = 13] = "DIGITAL_WALLET", e))(Y || {}), Lc = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.MONEY_MARKET = 1] = "MONEY_MARKET", e[e.CERTIFICATE_OF_DEPOSIT = 2] = "CERTIFICATE_OF_DEPOSIT", e[e.AUTO = 3] = "AUTO", e[e.STUDENT = 4] = "STUDENT", e[e.SMALL_BUSINESS = 5] = "SMALL_BUSINESS", e[e.PERSONAL = 6] = "PERSONAL", e[e.PERSONAL_WITH_COLLATERAL = 7] = "PERSONAL_WITH_COLLATERAL", e[e.HOME_EQUITY = 8] = "HOME_EQUITY", e[e.PLAN_401_K = 9] = "PLAN_401_K", e[e.PLAN_403_B = 10] = "PLAN_403_B", e[e.PLAN_529 = 11] = "PLAN_529", e[e.IRA = 12] = "IRA", e[e.ROLLOVER_IRA = 13] = "ROLLOVER_IRA", e[e.ROTH_IRA = 14] = "ROTH_IRA", e[e.TAXABLE = 15] = "TAXABLE", e[e.NON_TAXABLE = 16] = "NON_TAXABLE", e[e.BROKERAGE = 17] = "BROKERAGE", e[e.TRUST = 18] = "TRUST", e[e.UNIFORM_GIFTS_TO_MINORS_ACT = 19] = "UNIFORM_GIFTS_TO_MINORS_ACT", e[e.PLAN_457 = 20] = "PLAN_457", e[e.PENSION = 21] = "PENSION", e[e.EMPLOYEE_STOCK_OWNERSHIP_PLAN = 22] = "EMPLOYEE_STOCK_OWNERSHIP_PLAN", e[e.SIMPLIFIED_EMPLOYEE_PENSION = 23] = "SIMPLIFIED_EMPLOYEE_PENSION", e[e.SIMPLE_IRA = 24] = "SIMPLE_IRA", e[e.BOAT = 25] = "BOAT", e[e.POWERSPORTS = 26] = "POWERSPORTS", e[e.RV = 27] = "RV", e[e.HELOC = 28] = "HELOC", e[e.PLAN_ROTH_401_K = 29] = "PLAN_ROTH_401_K", e[e.FIXED_ANNUITY = 30] = "FIXED_ANNUITY", e[e.VARIABLE_ANNUITY = 31] = "VARIABLE_ANNUITY", e[e.VEHICLE_INSURANCE = 32] = "VEHICLE_INSURANCE", e[e.DISABILITY = 33] = "DISABILITY", e[e.HEALTH = 34] = "HEALTH", e[e.LONG_TERM_CARE = 35] = "LONG_TERM_CARE", e[e.PROPERTY_AND_CASUALTY = 36] = "PROPERTY_AND_CASUALTY", e[e.UNIVERSAL_LIFE = 37] = "UNIVERSAL_LIFE", e[e.TERM_LIFE = 38] = "TERM_LIFE", e[e.WHOLE_LIFE = 39] = "WHOLE_LIFE", e[e.ACCIDENTAL_DEATH_AND_DISMEMBERMENT = 40] = "ACCIDENTAL_DEATH_AND_DISMEMBERMENT", e[e.VARIABLE_UNIVERSAL_LIFE = 41] = "VARIABLE_UNIVERSAL_LIFE", e[e.HSA = 42] = "HSA", e[e.TAX_FREE_SAVINGS_ACCOUNT = 43] = "TAX_FREE_SAVINGS_ACCOUNT", e[e.INDIVIDUAL = 44] = "INDIVIDUAL", e[e.REGISTERED_RETIREMENT_INCOME_FUND = 45] = "REGISTERED_RETIREMENT_INCOME_FUND", e[e.CASH_MANAGEMENT_ACCOUNT = 46] = "CASH_MANAGEMENT_ACCOUNT", e[e.EMPLOYEE_STOCK_PURCHASE_PLAN = 47] = "EMPLOYEE_STOCK_PURCHASE_PLAN", e[e.REGISTERED_EDUCATION_SAVINGS_PLAN = 48] = "REGISTERED_EDUCATION_SAVINGS_PLAN", e[e.PROFIT_SHARING_PLAN = 49] = "PROFIT_SHARING_PLAN", e[e.UNIFORM_TRANSFER_TO_MINORS_ACT = 50] = "UNIFORM_TRANSFER_TO_MINORS_ACT", e[e.PLAN_401_A = 51] = "PLAN_401_A", e[e.SARSEP_IRA = 52] = "SARSEP_IRA", e[e.FIXED_ANNUITY_TRADITIONAL_IRA = 53] = "FIXED_ANNUITY_TRADITIONAL_IRA", e[e.VARIABLE_ANNUITY_TRADITIONAL_IRA = 54] = "VARIABLE_ANNUITY_TRADITIONAL_IRA", e[e.SEPP_IRA = 55] = "SEPP_IRA", e[e.INHERITED_TRADITIONAL_IRA = 56] = "INHERITED_TRADITIONAL_IRA", e[e.FIXED_ANNUITY_ROTH_IRA = 57] = "FIXED_ANNUITY_ROTH_IRA", e[e.VARIABLE_ANNUITY_ROTH_IRA = 58] = "VARIABLE_ANNUITY_ROTH_IRA", e[e.INHERITED_ROTH_IRA = 59] = "INHERITED_ROTH_IRA", e[e.COVERDELL = 60] = "COVERDELL", e[e.ADVISORY_ACCOUNT = 61] = "ADVISORY_ACCOUNT", e[e.BROKERAGE_MARGIN = 62] = "BROKERAGE_MARGIN", e[e.CHARITABLE_GIFT_ACCOUNT = 63] = "CHARITABLE_GIFT_ACCOUNT", e[e.CHURCH_ACCOUNT = 64] = "CHURCH_ACCOUNT", e[e.CONSERVATORSHIP = 65] = "CONSERVATORSHIP", e[e.CUSTODIAL = 66] = "CUSTODIAL", e[e.DEFINED_BENEFIT_PLAN = 67] = "DEFINED_BENEFIT_PLAN", e[e.DEFINED_CONTRIBUTION_PLAN = 68] = "DEFINED_CONTRIBUTION_PLAN", e[e.EDUCATIONAL = 69] = "EDUCATIONAL", e[e.ESTATE = 70] = "ESTATE", e[e.EXECUTOR = 71] = "EXECUTOR", e[e.GROUP_RETIREMENT_SAVINGS_PLAN = 72] = "GROUP_RETIREMENT_SAVINGS_PLAN", e[e.GUARANTEED_INVESTMENT_CERTIFICATE = 73] = "GUARANTEED_INVESTMENT_CERTIFICATE", e[e.HRA = 74] = "HRA", e[e.INDEXED_ANNUITY = 75] = "INDEXED_ANNUITY", e[e.INVESTMENT_CLUB = 76] = "INVESTMENT_CLUB", e[e.IRREVOCABLE_TRUST = 77] = "IRREVOCABLE_TRUST", e[e.JOINT_TENANTS_BY_ENTIRITY = 78] = "JOINT_TENANTS_BY_ENTIRITY", e[e.JOINT_TENANTS_COMMUNITY_PROPERTY = 79] = "JOINT_TENANTS_COMMUNITY_PROPERTY", e[e.JOINT_TENANTS_IN_COMMON = 80] = "JOINT_TENANTS_IN_COMMON", e[e.JOINT_TENANTS_WITH_RIGHTS_OF_SURVIVORSHIP = 81] = "JOINT_TENANTS_WITH_RIGHTS_OF_SURVIVORSHIP", e[e.KEOUGH_PLAN = 82] = "KEOUGH_PLAN", e[e.LIFE_INCOME_FUND = 83] = "LIFE_INCOME_FUND", e[e.LIVING_TRUST = 84] = "LIVING_TRUST", e[e.LOCKED_IN_RETIREMENT_ACCOUNT = 85] = "LOCKED_IN_RETIREMENT_ACCOUNT", e[e.LOCKED_IN_RETIREMENT_INVESTMENT_FUND = 86] = "LOCKED_IN_RETIREMENT_INVESTMENT_FUND", e[e.LOCKED_IN_RETIREMENT_SAVINGS_ACCOUNT = 87] = "LOCKED_IN_RETIREMENT_SAVINGS_ACCOUNT", e[e.MONEY_PURCHASE_PLAN = 88] = "MONEY_PURCHASE_PLAN", e[e.PARTNERSHIP = 89] = "PARTNERSHIP", e[e.PLAN_409_A = 90] = "PLAN_409_A", e[e.PLAN_ROTH_403_B = 91] = "PLAN_ROTH_403_B", e[e.REGISTERED_DISABILITY_SAVINGS_PLAN = 92] = "REGISTERED_DISABILITY_SAVINGS_PLAN", e[e.REGISTERED_LOCKED_IN_SAVINGS_PLAN = 93] = "REGISTERED_LOCKED_IN_SAVINGS_PLAN", e[e.REGISTERED_PENSION_PLAN = 94] = "REGISTERED_PENSION_PLAN", e[e.REGISTERED_RETIREMENT_SAVINGS_PLAN = 95] = "REGISTERED_RETIREMENT_SAVINGS_PLAN", e[e.REVOCABLE_TRUST = 96] = "REVOCABLE_TRUST", e[e.ROTH_CONVERSION = 97] = "ROTH_CONVERSION", e[e.SOLE_PROPRIETORSHIP = 98] = "SOLE_PROPRIETORSHIP", e[e.SPOUSAL_IRA = 99] = "SPOUSAL_IRA", e[e.SPOUSAL_ROTH_IRA = 100] = "SPOUSAL_ROTH_IRA", e[e.TESTAMENTARY_TRUST = 101] = "TESTAMENTARY_TRUST", e[e.THRIFT_SAVINGS_PLAN = 102] = "THRIFT_SAVINGS_PLAN", e[e.INHERITED_ANNUITY = 103] = "INHERITED_ANNUITY", e[e.CORPORATE_ACCOUNT = 104] = "CORPORATE_ACCOUNT", e[e.LIMITED_LIABILITY_ACCOUNT = 105] = "LIMITED_LIABILITY_ACCOUNT", e[e.HSA_SAVINGS = 106] = "HSA_SAVINGS", e[e.HSA_CHECKING = 107] = "HSA_CHECKING", e))(Lc || {}), yi = /* @__PURE__ */ ((e) => (e[e.REAL_ESTATE = 0] = "REAL_ESTATE", e[e.VEHICLE = 1] = "VEHICLE", e[e.ART = 2] = "ART", e[e.JEWELRY = 3] = "JEWELRY", e[e.FURNITURE = 4] = "FURNITURE", e[e.APPLIANCES = 5] = "APPLIANCES", e[e.COMPUTER = 6] = "COMPUTER", e[e.ELECTRONICS = 7] = "ELECTRONICS", e[e.SPORTS_EQUIPMENT = 8] = "SPORTS_EQUIPMENT", e[e.MISCELLANEOUS = 9] = "MISCELLANEOUS", e))(yi || {}), je = /* @__PURE__ */ ((e) => (e[e.CREATED = 0] = "CREATED", e[e.PREVENTED = 1] = "PREVENTED", e[e.DENIED = 2] = "DENIED", e[e.CHALLENGED = 3] = "CHALLENGED", e[e.REJECTED = 4] = "REJECTED", e[e.LOCKED = 5] = "LOCKED", e[e.CONNECTED = 6] = "CONNECTED", e[e.IMPEDED = 7] = "IMPEDED", e[e.RECONNECTED = 8] = "RECONNECTED", e[e.DEGRADED = 9] = "DEGRADED", e[e.DISCONNECTED = 10] = "DISCONNECTED", e[e.DISCONTINUED = 11] = "DISCONTINUED", e[e.CLOSED = 12] = "CLOSED", e[e.DELAYED = 13] = "DELAYED", e[e.FAILED = 14] = "FAILED", e[e.UPDATED = 15] = "UPDATED", e[e.DISABLED = 16] = "DISABLED", e[e.IMPORTED = 17] = "IMPORTED", e[e.RESUMED = 18] = "RESUMED", e[e.EXPIRED = 19] = "EXPIRED", e[e.IMPAIRED = 20] = "IMPAIRED", e[e.PENDING = 21] = "PENDING", e))(je || {});
|
|
346
346
|
const Dc = [
|
|
347
347
|
0,
|
|
348
348
|
15,
|
|
@@ -443,28 +443,28 @@ const u8 = {
|
|
|
443
443
|
8: "sports_baseball",
|
|
444
444
|
9: "monetization_on"
|
|
445
445
|
}, ma = [
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
446
|
+
Y.ANY,
|
|
447
|
+
Y.CASH,
|
|
448
|
+
Y.CHECKING,
|
|
449
|
+
Y.DIGITAL_WALLET,
|
|
450
|
+
Y.PREPAID,
|
|
451
|
+
Y.SAVINGS
|
|
452
452
|
], Ca = [
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
453
|
+
Y.CHECKING_LINE_OF_CREDIT,
|
|
454
|
+
Y.CREDIT_CARD,
|
|
455
|
+
Y.LINE_OF_CREDIT,
|
|
456
|
+
Y.LOAN,
|
|
457
|
+
Y.MORTGAGE
|
|
458
458
|
], pa = [
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
459
|
+
Y.ANY,
|
|
460
|
+
Y.CASH,
|
|
461
|
+
Y.CHECKING,
|
|
462
|
+
Y.CHECKING_LINE_OF_CREDIT,
|
|
463
|
+
Y.CREDIT_CARD,
|
|
464
|
+
Y.DIGITAL_WALLET,
|
|
465
|
+
Y.LINE_OF_CREDIT,
|
|
466
|
+
Y.PREPAID,
|
|
467
|
+
Y.SAVINGS
|
|
468
468
|
], b = {
|
|
469
469
|
// Top-level categories
|
|
470
470
|
AUTO_AND_TRANSPORT: "CAT-7829f71c-2e8c-afa5-2f55-fa3634b89874",
|
|
@@ -1876,7 +1876,7 @@ const ll = ({
|
|
|
1876
1876
|
] });
|
|
1877
1877
|
}, Cl = (e) => {
|
|
1878
1878
|
const A = cA(), n = e.showLabel, a = e.style, r = Number(e.x), i = Number(e.y), o = e.handlers?.onMarkClick, s = e.handlers?.onMouseEnter, c = e.handlers?.onMouseLeave;
|
|
1879
|
-
return /* @__PURE__ */ l(
|
|
1879
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
1880
1880
|
n && /* @__PURE__ */ t(
|
|
1881
1881
|
"text",
|
|
1882
1882
|
{
|
|
@@ -1914,7 +1914,7 @@ const ll = ({
|
|
|
1914
1914
|
}
|
|
1915
1915
|
)
|
|
1916
1916
|
] });
|
|
1917
|
-
}, pl = (e) => /* @__PURE__ */ l(
|
|
1917
|
+
}, pl = (e) => /* @__PURE__ */ l(W, { children: [
|
|
1918
1918
|
/* @__PURE__ */ t("clipPath", { id: e.id, children: /* @__PURE__ */ t("rect", { height: e.height, width: e.width, x: "0", y: "0" }) }),
|
|
1919
1919
|
/* @__PURE__ */ t("g", { children: /* @__PURE__ */ t(
|
|
1920
1920
|
"path",
|
|
@@ -3544,7 +3544,7 @@ const hr = "connect_widget", gr = "connections_widget", Ml = ({
|
|
|
3544
3544
|
]
|
|
3545
3545
|
}
|
|
3546
3546
|
), dn = ({ iconName: e, label: A, onClick: n, value: a }) => {
|
|
3547
|
-
const r = /* @__PURE__ */ l(
|
|
3547
|
+
const r = /* @__PURE__ */ l(W, { children: [
|
|
3548
3548
|
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(vA, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(B, { name: e, sx: { color: "text.primary" }, weight: Qe.Dark }) }) }),
|
|
3549
3549
|
/* @__PURE__ */ t(
|
|
3550
3550
|
J,
|
|
@@ -3680,14 +3680,14 @@ class zl {
|
|
|
3680
3680
|
De(this);
|
|
3681
3681
|
}
|
|
3682
3682
|
initialize = async (A, n) => {
|
|
3683
|
-
this.api = new cn(A, n), await this.getCopy(this.featureNamespace),
|
|
3683
|
+
this.api = new cn(A, n), await this.getCopy(this.featureNamespace), Q(() => {
|
|
3684
3684
|
this.isInitialized = !0;
|
|
3685
3685
|
});
|
|
3686
3686
|
};
|
|
3687
3687
|
getCopy = async (A, n = "") => {
|
|
3688
3688
|
try {
|
|
3689
3689
|
const a = await this.api.getGlobalCopy(A, n);
|
|
3690
|
-
|
|
3690
|
+
Q(() => {
|
|
3691
3691
|
this.copy = a[A];
|
|
3692
3692
|
});
|
|
3693
3693
|
} catch (a) {
|
|
@@ -3720,7 +3720,7 @@ class Kl {
|
|
|
3720
3720
|
loadAppData = async () => {
|
|
3721
3721
|
try {
|
|
3722
3722
|
const A = await this.api.getAppData();
|
|
3723
|
-
|
|
3723
|
+
Q(() => {
|
|
3724
3724
|
this.appData = A;
|
|
3725
3725
|
});
|
|
3726
3726
|
} catch (A) {
|
|
@@ -3741,7 +3741,7 @@ class ql {
|
|
|
3741
3741
|
};
|
|
3742
3742
|
loadBeats = async () => {
|
|
3743
3743
|
const A = await this.api.getBeats();
|
|
3744
|
-
|
|
3744
|
+
Q(() => {
|
|
3745
3745
|
this.beats = A;
|
|
3746
3746
|
});
|
|
3747
3747
|
};
|
|
@@ -3871,7 +3871,7 @@ class Xl {
|
|
|
3871
3871
|
addBudget = async (A, n, a = null) => {
|
|
3872
3872
|
try {
|
|
3873
3873
|
const r = await this.api.addBudget(A, n, a);
|
|
3874
|
-
|
|
3874
|
+
Q(() => {
|
|
3875
3875
|
this.budgets.push(r);
|
|
3876
3876
|
});
|
|
3877
3877
|
} catch (r) {
|
|
@@ -3880,7 +3880,7 @@ class Xl {
|
|
|
3880
3880
|
};
|
|
3881
3881
|
deleteBudget = async (A) => {
|
|
3882
3882
|
try {
|
|
3883
|
-
await this.api.deleteBudget(A),
|
|
3883
|
+
await this.api.deleteBudget(A), Q(() => {
|
|
3884
3884
|
const n = this.budgets.findIndex((a) => a.guid === A);
|
|
3885
3885
|
n >= 0 && this.budgets.splice(n, 1);
|
|
3886
3886
|
});
|
|
@@ -3891,7 +3891,7 @@ class Xl {
|
|
|
3891
3891
|
loadBudgets = async () => {
|
|
3892
3892
|
try {
|
|
3893
3893
|
const A = await this.api.getBudgets();
|
|
3894
|
-
|
|
3894
|
+
Q(() => {
|
|
3895
3895
|
this.budgets = A;
|
|
3896
3896
|
});
|
|
3897
3897
|
} catch (A) {
|
|
@@ -3922,7 +3922,7 @@ class Xl {
|
|
|
3922
3922
|
updateBudget = async (A) => {
|
|
3923
3923
|
try {
|
|
3924
3924
|
const n = await this.api.updateBudget(A);
|
|
3925
|
-
|
|
3925
|
+
Q(() => {
|
|
3926
3926
|
const a = this.budgets.findIndex((r) => r.guid === A.guid);
|
|
3927
3927
|
a >= 0 && (this.budgets[a] = n);
|
|
3928
3928
|
});
|
|
@@ -3937,7 +3937,7 @@ const Tt = () => {
|
|
|
3937
3937
|
return ya().uiStore;
|
|
3938
3938
|
}, jl = ({ remaining: e }) => {
|
|
3939
3939
|
const { cashflow: A } = L();
|
|
3940
|
-
return /* @__PURE__ */ l(
|
|
3940
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
3941
3941
|
/* @__PURE__ */ t(
|
|
3942
3942
|
N,
|
|
3943
3943
|
{
|
|
@@ -4007,7 +4007,7 @@ const Tt = () => {
|
|
|
4007
4007
|
/* @__PURE__ */ t(un, { body: o.tooltip_body, title: o.tooltip_title })
|
|
4008
4008
|
] })
|
|
4009
4009
|
] }),
|
|
4010
|
-
/* @__PURE__ */ t(y, { borderLeft: `1px solid ${A.palette.border.light}`, pb: 12, pl: 24, pt: 12, children: w ? /* @__PURE__ */ l(
|
|
4010
|
+
/* @__PURE__ */ t(y, { borderLeft: `1px solid ${A.palette.border.light}`, pb: 12, pl: 24, pt: 12, children: w ? /* @__PURE__ */ l(W, { children: [
|
|
4011
4011
|
/* @__PURE__ */ t(p, { variant: "H2", children: P(o.days, c) }),
|
|
4012
4012
|
/* @__PURE__ */ t(Me, { variant: "XSmall", whiteSpace: "nowrap", children: o.next_paycheck })
|
|
4013
4013
|
] }) : /* @__PURE__ */ t(
|
|
@@ -4691,7 +4691,7 @@ class sd {
|
|
|
4691
4691
|
};
|
|
4692
4692
|
addTransaction = async (A) => {
|
|
4693
4693
|
const n = await this.api.addTransaction(A);
|
|
4694
|
-
n &&
|
|
4694
|
+
n && Q(
|
|
4695
4695
|
() => this.transactions = this.augmentTransactions([n, ...this.transactions])
|
|
4696
4696
|
);
|
|
4697
4697
|
};
|
|
@@ -4703,19 +4703,19 @@ class sd {
|
|
|
4703
4703
|
);
|
|
4704
4704
|
loadAssociatedBeats = async (A) => {
|
|
4705
4705
|
const n = A ? sa(A, { representation: "date" }) : void 0, a = await this.beatApi.getBeatsWithAssociatedTransaction(n);
|
|
4706
|
-
|
|
4706
|
+
Q(() => this.associatedBeats = a);
|
|
4707
4707
|
};
|
|
4708
4708
|
loadTags = async () => {
|
|
4709
4709
|
const A = await this.api.getTags();
|
|
4710
|
-
|
|
4710
|
+
Q(() => this.tags = A);
|
|
4711
4711
|
};
|
|
4712
4712
|
loadTaggings = async () => {
|
|
4713
4713
|
const A = await this.api.getTaggings();
|
|
4714
|
-
|
|
4714
|
+
Q(() => this.taggings = A);
|
|
4715
4715
|
};
|
|
4716
4716
|
loadTransactionRules = async () => {
|
|
4717
4717
|
const A = await this.api.getTransactionRules();
|
|
4718
|
-
|
|
4718
|
+
Q(() => this.transactionRules = A);
|
|
4719
4719
|
};
|
|
4720
4720
|
loadTransactions = async (A = this.cachedStartDate, n = ot()) => {
|
|
4721
4721
|
this.setIsLoading(!0), this.transactions = [];
|
|
@@ -4724,7 +4724,7 @@ class sd {
|
|
|
4724
4724
|
pe(A),
|
|
4725
4725
|
pe(n)
|
|
4726
4726
|
);
|
|
4727
|
-
|
|
4727
|
+
Q(() => {
|
|
4728
4728
|
this.transactions = this.augmentTransactions(a);
|
|
4729
4729
|
});
|
|
4730
4730
|
} catch (a) {
|
|
@@ -4750,7 +4750,7 @@ class sd {
|
|
|
4750
4750
|
const n = this.transactions.findIndex((a) => a.guid === A);
|
|
4751
4751
|
if (n >= 0) {
|
|
4752
4752
|
const a = [...this.transactions];
|
|
4753
|
-
a.splice(n, 1),
|
|
4753
|
+
a.splice(n, 1), Q(() => this.transactions = a);
|
|
4754
4754
|
}
|
|
4755
4755
|
};
|
|
4756
4756
|
setFilter = (A) => {
|
|
@@ -4769,7 +4769,7 @@ class sd {
|
|
|
4769
4769
|
r.push(s);
|
|
4770
4770
|
}
|
|
4771
4771
|
const i = this.transactions.findIndex((o) => o.guid === A.guid);
|
|
4772
|
-
i >= 0 &&
|
|
4772
|
+
i >= 0 && Q(
|
|
4773
4773
|
() => this.transactions = this.augmentTransactions([
|
|
4774
4774
|
...this.transactions.slice(0, i),
|
|
4775
4775
|
a,
|
|
@@ -4787,7 +4787,7 @@ class sd {
|
|
|
4787
4787
|
s >= 0 && a.splice(s, 1);
|
|
4788
4788
|
});
|
|
4789
4789
|
const r = a.findIndex((o) => o.guid === A), i = a[r];
|
|
4790
|
-
i.has_been_split = !1, r >= 0 &&
|
|
4790
|
+
i.has_been_split = !1, r >= 0 && Q(
|
|
4791
4791
|
() => this.transactions = [
|
|
4792
4792
|
...a.slice(0, r),
|
|
4793
4793
|
i,
|
|
@@ -4811,7 +4811,7 @@ class sd {
|
|
|
4811
4811
|
};
|
|
4812
4812
|
updateTransaction = async (A) => {
|
|
4813
4813
|
const n = await this.api.updateTransaction(A), a = this.transactions.findIndex((r) => r.guid === A.guid);
|
|
4814
|
-
a >= 0 &&
|
|
4814
|
+
a >= 0 && Q(
|
|
4815
4815
|
() => this.transactions = this.augmentTransactions([
|
|
4816
4816
|
...this.transactions.slice(0, a),
|
|
4817
4817
|
n,
|
|
@@ -5598,7 +5598,7 @@ class Yd {
|
|
|
5598
5598
|
loadCategories = async () => {
|
|
5599
5599
|
try {
|
|
5600
5600
|
const A = await this.api.getCategories(), { default_categories: n } = this.globalStore.copyStore.copy.categories;
|
|
5601
|
-
|
|
5601
|
+
Q(() => {
|
|
5602
5602
|
this.categories = A.map((a) => ({
|
|
5603
5603
|
...a,
|
|
5604
5604
|
name: n[a.guid] ? n[a.guid].replace(/&/g, "&") : a.name
|
|
@@ -5616,7 +5616,7 @@ class Yd {
|
|
|
5616
5616
|
pe(a),
|
|
5617
5617
|
A
|
|
5618
5618
|
);
|
|
5619
|
-
|
|
5619
|
+
Q(() => {
|
|
5620
5620
|
this.dateRangeCategoryTotals = r, this.setIsLoadingCategoryTotals(!1);
|
|
5621
5621
|
});
|
|
5622
5622
|
} catch (r) {
|
|
@@ -5627,7 +5627,7 @@ class Yd {
|
|
|
5627
5627
|
const r = pe(xe(n ?? bA(/* @__PURE__ */ new Date(), 11))), i = pe(Re(a ?? /* @__PURE__ */ new Date()));
|
|
5628
5628
|
try {
|
|
5629
5629
|
const o = await this.api.getMonthlyCategoryTotals(r, i, A);
|
|
5630
|
-
|
|
5630
|
+
Q(() => {
|
|
5631
5631
|
this.monthlyCategoryTotals = o;
|
|
5632
5632
|
});
|
|
5633
5633
|
} catch (o) {
|
|
@@ -5646,7 +5646,7 @@ class Yd {
|
|
|
5646
5646
|
pe(Re(a)),
|
|
5647
5647
|
A
|
|
5648
5648
|
);
|
|
5649
|
-
|
|
5649
|
+
Q(() => {
|
|
5650
5650
|
this.dateRangeCategoryTotals = r, this.monthlyCategoryTotals = i, this.setIsLoadingCategoryTotals(!1);
|
|
5651
5651
|
});
|
|
5652
5652
|
} catch (r) {
|
|
@@ -7149,7 +7149,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
7149
7149
|
}
|
|
7150
7150
|
);
|
|
7151
7151
|
}, C = u.find((f) => f.id === e.recurrenceType);
|
|
7152
|
-
return /* @__PURE__ */ l(
|
|
7152
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
7153
7153
|
/* @__PURE__ */ t(
|
|
7154
7154
|
dn,
|
|
7155
7155
|
{
|
|
@@ -7207,7 +7207,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
7207
7207
|
}
|
|
7208
7208
|
c(!1);
|
|
7209
7209
|
};
|
|
7210
|
-
return /* @__PURE__ */ l(
|
|
7210
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
7211
7211
|
/* @__PURE__ */ t(
|
|
7212
7212
|
dn,
|
|
7213
7213
|
{
|
|
@@ -7285,7 +7285,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
7285
7285
|
] })
|
|
7286
7286
|
] }),
|
|
7287
7287
|
/* @__PURE__ */ l(Ae, { sx: { bgcolor: "background.paper" }, children: [
|
|
7288
|
-
e.institution && /* @__PURE__ */ l(
|
|
7288
|
+
e.institution && /* @__PURE__ */ l(W, { children: [
|
|
7289
7289
|
/* @__PURE__ */ t(
|
|
7290
7290
|
dn,
|
|
7291
7291
|
{
|
|
@@ -7296,7 +7296,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
7296
7296
|
),
|
|
7297
7297
|
/* @__PURE__ */ t(H, { color: "secondary", variant: "inset" })
|
|
7298
7298
|
] }),
|
|
7299
|
-
E && /* @__PURE__ */ l(
|
|
7299
|
+
E && /* @__PURE__ */ l(W, { children: [
|
|
7300
7300
|
/* @__PURE__ */ t(
|
|
7301
7301
|
dn,
|
|
7302
7302
|
{
|
|
@@ -7437,7 +7437,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
7437
7437
|
/* @__PURE__ */ t(y, { alignItems: "center", direction: "row", gap: 6, children: A ? /* @__PURE__ */ l(y, { direction: "row", gap: 4, children: [
|
|
7438
7438
|
Bu(e),
|
|
7439
7439
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: Hu(e, r) })
|
|
7440
|
-
] }) : /* @__PURE__ */ l(
|
|
7440
|
+
] }) : /* @__PURE__ */ l(W, { children: [
|
|
7441
7441
|
e.institutionGuid && /* @__PURE__ */ t(
|
|
7442
7442
|
CA,
|
|
7443
7443
|
{
|
|
@@ -8022,7 +8022,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
8022
8022
|
return /* @__PURE__ */ t(
|
|
8023
8023
|
hi,
|
|
8024
8024
|
{
|
|
8025
|
-
badgeContent: c.length > 0 && /* @__PURE__ */ l(
|
|
8025
|
+
badgeContent: c.length > 0 && /* @__PURE__ */ l(W, { children: [
|
|
8026
8026
|
u && /* @__PURE__ */ t(Oa, { isOffset: !0 }),
|
|
8027
8027
|
h && /* @__PURE__ */ t(_a, { isOffset: !0 }),
|
|
8028
8028
|
d && /* @__PURE__ */ t(Da, { isOffset: !0 }),
|
|
@@ -8160,7 +8160,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
8160
8160
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: i }),
|
|
8161
8161
|
n && /* @__PURE__ */ t(oe, { onClick: n, sx: { mt: -12 }, variant: "text", children: o.reset })
|
|
8162
8162
|
] }),
|
|
8163
|
-
e.length === 0 ? /* @__PURE__ */ t(p, { fontStyle: "italic", py: 24, sx: { textAlign: "center" }, children: o.no_activities }) : /* @__PURE__ */ t(Ae, { children: A ? e.map((c, d) => /* @__PURE__ */ l(
|
|
8163
|
+
e.length === 0 ? /* @__PURE__ */ t(p, { fontStyle: "italic", py: 24, sx: { textAlign: "center" }, children: o.no_activities }) : /* @__PURE__ */ t(Ae, { children: A ? e.map((c, d) => /* @__PURE__ */ l(W, { children: [
|
|
8164
8164
|
/* @__PURE__ */ t(
|
|
8165
8165
|
hn,
|
|
8166
8166
|
{
|
|
@@ -8171,7 +8171,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
8171
8171
|
c.expectedDate.toString() + d
|
|
8172
8172
|
),
|
|
8173
8173
|
/* @__PURE__ */ t(H, { sx: { mx: 24 } })
|
|
8174
|
-
] })) : s.map((c) => /* @__PURE__ */ l(
|
|
8174
|
+
] })) : s.map((c) => /* @__PURE__ */ l(W, { children: [
|
|
8175
8175
|
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ t(
|
|
8176
8176
|
Ae,
|
|
8177
8177
|
{
|
|
@@ -8180,7 +8180,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
8180
8180
|
Z.DAY_OF_WEEK_MONTH_DAY
|
|
8181
8181
|
) }) }),
|
|
8182
8182
|
sx: { width: "100%" },
|
|
8183
|
-
children: c.activities.map((d, u) => /* @__PURE__ */ l(
|
|
8183
|
+
children: c.activities.map((d, u) => /* @__PURE__ */ l(W, { children: [
|
|
8184
8184
|
/* @__PURE__ */ t(
|
|
8185
8185
|
hn,
|
|
8186
8186
|
{
|
|
@@ -8216,7 +8216,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
8216
8216
|
/* @__PURE__ */ l(y, { direction: "row", gap: 2, mb: 8, children: [
|
|
8217
8217
|
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: R(n, "0,0.00") }),
|
|
8218
8218
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: o.paid?.toLowerCase() }),
|
|
8219
|
-
a !== void 0 && /* @__PURE__ */ l(
|
|
8219
|
+
a !== void 0 && /* @__PURE__ */ l(W, { children: [
|
|
8220
8220
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: "/" }),
|
|
8221
8221
|
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: R(a, "0,0.00") }),
|
|
8222
8222
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: o.missed?.toLowerCase() })
|
|
@@ -8468,7 +8468,7 @@ class uh {
|
|
|
8468
8468
|
addCashflowEvent = async (A) => {
|
|
8469
8469
|
try {
|
|
8470
8470
|
const n = await this.cashflowApi.addCashflowEvent(A);
|
|
8471
|
-
|
|
8471
|
+
Q(() => {
|
|
8472
8472
|
this.cashflowEvents = [...this.cashflowEvents, n];
|
|
8473
8473
|
});
|
|
8474
8474
|
} catch (n) {
|
|
@@ -8489,7 +8489,7 @@ class uh {
|
|
|
8489
8489
|
await this.globalStore.transactionStore.updateTransaction({
|
|
8490
8490
|
...n,
|
|
8491
8491
|
scheduled_payment_guid: a.guid
|
|
8492
|
-
}),
|
|
8492
|
+
}), Q(() => {
|
|
8493
8493
|
this.scheduledPayments = [...this.scheduledPayments, a];
|
|
8494
8494
|
});
|
|
8495
8495
|
} catch (a) {
|
|
@@ -8505,7 +8505,7 @@ class uh {
|
|
|
8505
8505
|
};
|
|
8506
8506
|
deleteScheduledPayment = async (A) => {
|
|
8507
8507
|
try {
|
|
8508
|
-
await this.api.deleteScheduledPayment(A),
|
|
8508
|
+
await this.api.deleteScheduledPayment(A), Q(() => {
|
|
8509
8509
|
const n = this.scheduledPayments.findIndex((a) => a.guid === A);
|
|
8510
8510
|
n >= 0 && this.scheduledPayments.splice(n, 1);
|
|
8511
8511
|
});
|
|
@@ -8515,7 +8515,7 @@ class uh {
|
|
|
8515
8515
|
};
|
|
8516
8516
|
loadActivity = () => {
|
|
8517
8517
|
this.isLoading = !0, Promise.all([this.loadExpenseActivity(), this.loadIncomeActivity()]).finally(
|
|
8518
|
-
() =>
|
|
8518
|
+
() => Q(() => {
|
|
8519
8519
|
this.isLoading = !1;
|
|
8520
8520
|
})
|
|
8521
8521
|
);
|
|
@@ -8528,7 +8528,7 @@ class uh {
|
|
|
8528
8528
|
};
|
|
8529
8529
|
loadCashflowSequences = async () => {
|
|
8530
8530
|
const A = await this.cashflowApi.getCashflowSequences();
|
|
8531
|
-
|
|
8531
|
+
Q(() => {
|
|
8532
8532
|
this.cashflowSequences = A.filter(
|
|
8533
8533
|
(n) => n.transaction_type === AA.CREDIT
|
|
8534
8534
|
);
|
|
@@ -8540,7 +8540,7 @@ class uh {
|
|
|
8540
8540
|
xe(ie()),
|
|
8541
8541
|
OA(ie(), 30)
|
|
8542
8542
|
);
|
|
8543
|
-
|
|
8543
|
+
Q(() => {
|
|
8544
8544
|
this.projectedEvents = A.filter(
|
|
8545
8545
|
(n) => n.transaction_type === AA.CREDIT
|
|
8546
8546
|
);
|
|
@@ -8555,7 +8555,7 @@ class uh {
|
|
|
8555
8555
|
TA(ie(), 90),
|
|
8556
8556
|
Re(ie())
|
|
8557
8557
|
);
|
|
8558
|
-
|
|
8558
|
+
Q(() => {
|
|
8559
8559
|
this.cashflowEvents = A.filter(
|
|
8560
8560
|
(n) => n.transaction_type === AA.CREDIT
|
|
8561
8561
|
);
|
|
@@ -8567,7 +8567,7 @@ class uh {
|
|
|
8567
8567
|
loadScheduledPayments = async () => {
|
|
8568
8568
|
try {
|
|
8569
8569
|
const A = await this.api.getScheduledPayments();
|
|
8570
|
-
|
|
8570
|
+
Q(() => {
|
|
8571
8571
|
this.scheduledPayments = A;
|
|
8572
8572
|
});
|
|
8573
8573
|
} catch (A) {
|
|
@@ -8601,7 +8601,7 @@ class uh {
|
|
|
8601
8601
|
try {
|
|
8602
8602
|
const n = await this.api.updateScheduledPayment(A), a = this.scheduledPayments.findIndex((r) => r.guid === A.guid);
|
|
8603
8603
|
if (a < 0) return;
|
|
8604
|
-
|
|
8604
|
+
Q(() => {
|
|
8605
8605
|
this.scheduledPayments = [
|
|
8606
8606
|
...this.scheduledPayments.slice(0, a),
|
|
8607
8607
|
n,
|
|
@@ -8617,7 +8617,7 @@ const hh = {
|
|
|
8617
8617
|
gridRow: 1,
|
|
8618
8618
|
gridColumn: 1,
|
|
8619
8619
|
zIndex: 2
|
|
8620
|
-
}, gh = ({ size: e = 20 }) => /* @__PURE__ */ t(VA, { size: e, children: /* @__PURE__ */ t(yn, { color: "error", sx: { fontSize: e, ...hh } }) }), Pa = (e) => e && (e.account_type ===
|
|
8620
|
+
}, gh = ({ size: e = 20 }) => /* @__PURE__ */ t(VA, { size: e, children: /* @__PURE__ */ t(yn, { color: "error", sx: { fontSize: e, ...hh } }) }), Pa = (e) => e && (e.account_type === Y.CREDIT_CARD || e.account_type === Y.LOAN || e.account_type === Y.MORTGAGE || e.account_type === Y.LINE_OF_CREDIT || e.account_type === Y.CHECKING_LINE_OF_CREDIT), mh = (e) => e.is_manual || !e.guid, Ch = (e) => e.account_type === Y.LINE_OF_CREDIT || e.account_type === Y.CREDIT_CARD || e.account_type === Y.CHECKING_LINE_OF_CREDIT, ph = (e) => e.account_type === Y.SAVINGS || e.account_type === Y.CHECKING || e.account_type === Y.LINE_OF_CREDIT || e.account_type === Y.CREDIT_CARD || e.account_type === Y.LOAN || e.account_type === Y.MORTGAGE, fh = (e) => e.account_type === Y.LOAN || e.account_type === Y.MORTGAGE, vh = (e, A) => {
|
|
8621
8621
|
const n = [
|
|
8622
8622
|
{
|
|
8623
8623
|
event: "account_details_click_account_name",
|
|
@@ -8637,7 +8637,7 @@ const hh = {
|
|
|
8637
8637
|
type: Ze.Currency,
|
|
8638
8638
|
valueFormatter: (r) => R(r, "0,0.00")
|
|
8639
8639
|
});
|
|
8640
|
-
const a = Object.keys(
|
|
8640
|
+
const a = Object.keys(Y).filter((r) => Number(r)).map((r) => ({
|
|
8641
8641
|
label: A.account_types[r],
|
|
8642
8642
|
value: Number(r),
|
|
8643
8643
|
icon: /* @__PURE__ */ t(B, { name: Si[r] })
|
|
@@ -8651,7 +8651,7 @@ const hh = {
|
|
|
8651
8651
|
valueFormatter: (r) => a.find((i) => i.value === r)?.label
|
|
8652
8652
|
});
|
|
8653
8653
|
}
|
|
8654
|
-
if (e.account_type ===
|
|
8654
|
+
if (e.account_type === Y.PROPERTY) {
|
|
8655
8655
|
const a = Object.keys(yi).filter((r) => Number(r)).map((r) => ({
|
|
8656
8656
|
label: A.property_types[r],
|
|
8657
8657
|
value: Number(r),
|
|
@@ -8752,7 +8752,7 @@ const hh = {
|
|
|
8752
8752
|
);
|
|
8753
8753
|
let d;
|
|
8754
8754
|
(e.connectionStatus === it.Error || e.connectionStatus === it.RequiresMfa) && (d = /* @__PURE__ */ t(gh, { size: 16 }));
|
|
8755
|
-
const u = /* @__PURE__ */ l(
|
|
8755
|
+
const u = /* @__PURE__ */ l(W, { children: [
|
|
8756
8756
|
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(
|
|
8757
8757
|
hi,
|
|
8758
8758
|
{
|
|
@@ -8775,7 +8775,7 @@ const hh = {
|
|
|
8775
8775
|
e.is_hidden && !e.is_closed && r.is_hidden,
|
|
8776
8776
|
e.is_closed && r.is_closed
|
|
8777
8777
|
] }),
|
|
8778
|
-
secondary: /* @__PURE__ */ l(
|
|
8778
|
+
secondary: /* @__PURE__ */ l(W, { children: [
|
|
8779
8779
|
/* @__PURE__ */ l(N, { sx: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
|
|
8780
8780
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: i }),
|
|
8781
8781
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Small", children: R(o, "0,0.00") })
|
|
@@ -8806,7 +8806,7 @@ const hh = {
|
|
|
8806
8806
|
}
|
|
8807
8807
|
);
|
|
8808
8808
|
var jt = /* @__PURE__ */ ((e) => (e.EXPENSE = "expense", e.INCOME = "income", e))(jt || {});
|
|
8809
|
-
const bh = ({ activity: e }) => /* @__PURE__ */ l(
|
|
8809
|
+
const bh = ({ activity: e }) => /* @__PURE__ */ l(W, { children: [
|
|
8810
8810
|
/* @__PURE__ */ l(j, { sx: { display: "flex", alignItems: "center", gap: 16, px: 24, py: 12 }, children: [
|
|
8811
8811
|
/* @__PURE__ */ l(y, { alignItems: "center", height: 32, width: 32, children: [
|
|
8812
8812
|
/* @__PURE__ */ t(p, { bold: !0, sx: { fontSize: 11 }, children: ne(e.expectedDate, Z.MONTH) }),
|
|
@@ -8825,7 +8825,7 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(Q, { children: [
|
|
|
8825
8825
|
/* @__PURE__ */ t(H, {})
|
|
8826
8826
|
] }), Nr = T(bh), wh = ({ total: e, type: A }) => {
|
|
8827
8827
|
const { cashflow: n } = L();
|
|
8828
|
-
return /* @__PURE__ */ l(
|
|
8828
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
8829
8829
|
/* @__PURE__ */ l(
|
|
8830
8830
|
SA,
|
|
8831
8831
|
{
|
|
@@ -9272,9 +9272,9 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(Q, { children: [
|
|
|
9272
9272
|
)
|
|
9273
9273
|
}
|
|
9274
9274
|
)
|
|
9275
|
-
] }) : /* @__PURE__ */ l(
|
|
9275
|
+
] }) : /* @__PURE__ */ l(W, { children: [
|
|
9276
9276
|
/* @__PURE__ */ t(XA, { amount: m, label: a.cash_and_bank }),
|
|
9277
|
-
E ? /* @__PURE__ */ l(
|
|
9277
|
+
E ? /* @__PURE__ */ l(W, { children: [
|
|
9278
9278
|
/* @__PURE__ */ t(p, { sx: { fontSize: 25, lineHeight: 1 }, children: "+" }),
|
|
9279
9279
|
/* @__PURE__ */ t(
|
|
9280
9280
|
XA,
|
|
@@ -9474,7 +9474,7 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(Q, { children: [
|
|
|
9474
9474
|
children: [
|
|
9475
9475
|
/* @__PURE__ */ t(kA, { pb: 12, children: a.add_income_title }),
|
|
9476
9476
|
/* @__PURE__ */ t(Me, { mb: 24, children: a.add_income_description }),
|
|
9477
|
-
x.length > 0 && !F && /* @__PURE__ */ l(
|
|
9477
|
+
x.length > 0 && !F && /* @__PURE__ */ l(W, { children: [
|
|
9478
9478
|
/* @__PURE__ */ t(Ae, { children: x.map((he, we) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
9479
9479
|
/* @__PURE__ */ t(Ta, { bgcolor: "background.paper", children: wn(
|
|
9480
9480
|
pe(he.nextDate || he.date)
|
|
@@ -9508,7 +9508,7 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(Q, { children: [
|
|
|
9508
9508
|
}
|
|
9509
9509
|
),
|
|
9510
9510
|
!V && o && /* @__PURE__ */ t(Me, { color: "error", mt: 16, children: a.confirm_error }),
|
|
9511
|
-
F && /* @__PURE__ */ l(
|
|
9511
|
+
F && /* @__PURE__ */ l(W, { children: [
|
|
9512
9512
|
/* @__PURE__ */ t(
|
|
9513
9513
|
to,
|
|
9514
9514
|
{
|
|
@@ -10200,7 +10200,7 @@ const tn = {
|
|
|
10200
10200
|
}
|
|
10201
10201
|
return s;
|
|
10202
10202
|
}, rg = () => {
|
|
10203
|
-
const e = cA(), { selectedAccount: A } = lA(), { monthlyCategoryTotals: n } = _e(), { trends: a } = L(), r = [e.palette.chart?.chart1, e.palette.chart?.chart2], i = ng(n, A.account_type), o = ag(i, A.account_type, a), s = [
|
|
10203
|
+
const e = cA(), { selectedAccount: A } = lA(), { monthlyCategoryTotals: n } = _e(), { trends: a } = L(), r = [e.palette.chart?.chart1, e.palette.chart?.chart2], i = ng(n, A.account_type), o = ag(i, A.account_type, a), s = [Y.LOAN, Y.MORTGAGE].includes(A.account_type);
|
|
10204
10204
|
return /* @__PURE__ */ t("div", { "data-testid": "TrendsChart", children: /* @__PURE__ */ t(
|
|
10205
10205
|
va,
|
|
10206
10206
|
{
|
|
@@ -10409,7 +10409,7 @@ const lo = ({
|
|
|
10409
10409
|
details_description: "This schedule is calculated based on the borrowing details and paydown amount you entered."
|
|
10410
10410
|
}, ug = () => {
|
|
10411
10411
|
const e = GA(), { selectedDebtChartData: A } = dt();
|
|
10412
|
-
return /* @__PURE__ */ l(
|
|
10412
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
10413
10413
|
/* @__PURE__ */ l(
|
|
10414
10414
|
fA,
|
|
10415
10415
|
{
|
|
@@ -10453,7 +10453,7 @@ const lo = ({
|
|
|
10453
10453
|
variant: "Small",
|
|
10454
10454
|
children: r ? ht.error_message : ht.complete_message
|
|
10455
10455
|
}
|
|
10456
|
-
) : /* @__PURE__ */ l(
|
|
10456
|
+
) : /* @__PURE__ */ l(W, { children: [
|
|
10457
10457
|
/* @__PURE__ */ l(y, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
|
|
10458
10458
|
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: ht.payment_month_heading }),
|
|
10459
10459
|
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: ht.payment_amount_heading })
|
|
@@ -10704,7 +10704,7 @@ const lo = ({
|
|
|
10704
10704
|
}), vg = () => {
|
|
10705
10705
|
const { onEvent: e } = $(), { selectedDebtChartData: A } = dt();
|
|
10706
10706
|
return g.useEffect(() => e(G.DEBT_DETAILS_VIEW), []), /* @__PURE__ */ l(Ae, { children: [
|
|
10707
|
-
A?.goal && /* @__PURE__ */ l(
|
|
10707
|
+
A?.goal && /* @__PURE__ */ l(W, { children: [
|
|
10708
10708
|
/* @__PURE__ */ t(ho, { goal: A.goal }),
|
|
10709
10709
|
/* @__PURE__ */ t(H, { variant: "inset" }),
|
|
10710
10710
|
/* @__PURE__ */ t(uo, { goal: A.goal }),
|
|
@@ -10712,7 +10712,7 @@ const lo = ({
|
|
|
10712
10712
|
/* @__PURE__ */ t(go, { goal: A.goal }),
|
|
10713
10713
|
/* @__PURE__ */ t(H, {})
|
|
10714
10714
|
] }),
|
|
10715
|
-
!A?.goal && A?.account && /* @__PURE__ */ l(
|
|
10715
|
+
!A?.goal && A?.account && /* @__PURE__ */ l(W, { children: [
|
|
10716
10716
|
/* @__PURE__ */ t(pg, { debt: A }),
|
|
10717
10717
|
/* @__PURE__ */ t(H, { variant: "inset" }),
|
|
10718
10718
|
/* @__PURE__ */ t(Cg, { debt: A }),
|
|
@@ -10732,7 +10732,7 @@ const lo = ({
|
|
|
10732
10732
|
const { showError: n, showCompleted: a } = dt();
|
|
10733
10733
|
return g.useEffect(() => {
|
|
10734
10734
|
n && e(1);
|
|
10735
|
-
}, [n]), !n && !a ? /* @__PURE__ */ t(
|
|
10735
|
+
}, [n]), !n && !a ? /* @__PURE__ */ t(W, {}) : /* @__PURE__ */ l(de, { gap: 16, children: [
|
|
10736
10736
|
/* @__PURE__ */ t(gA, { sx: { my: 16, mx: 24, ...A }, children: /* @__PURE__ */ l(
|
|
10737
10737
|
vt,
|
|
10738
10738
|
{
|
|
@@ -10758,7 +10758,7 @@ const lo = ({
|
|
|
10758
10758
|
n && /* @__PURE__ */ t(gA, { sx: { mb: 16, mt: 100, mx: 24, ...A }, children: /* @__PURE__ */ l(
|
|
10759
10759
|
vt,
|
|
10760
10760
|
{
|
|
10761
|
-
icon: /* @__PURE__ */ t(
|
|
10761
|
+
icon: /* @__PURE__ */ t(W, {}),
|
|
10762
10762
|
severity: "error",
|
|
10763
10763
|
sx: {
|
|
10764
10764
|
color: "text.primary",
|
|
@@ -10779,7 +10779,7 @@ const lo = ({
|
|
|
10779
10779
|
details_tab_label: "Details"
|
|
10780
10780
|
}, wg = () => {
|
|
10781
10781
|
const { showError: e, showCompleted: A } = dt(), [n, a] = g.useState(0);
|
|
10782
|
-
return /* @__PURE__ */ l(
|
|
10782
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
10783
10783
|
(e || A) && /* @__PURE__ */ t(bg, { setTabValue: a, sx: { mt: -24 } }),
|
|
10784
10784
|
/* @__PURE__ */ l(
|
|
10785
10785
|
_A,
|
|
@@ -10816,7 +10816,7 @@ const lo = ({
|
|
|
10816
10816
|
title: "Debt Details",
|
|
10817
10817
|
close_debt_details_aria: ""
|
|
10818
10818
|
}, Tg = ({ isOpen: e, onClose: A, sx: n }) => {
|
|
10819
|
-
const { showError: a, showCompleted: r } = dt(), i = a || r ? /* @__PURE__ */ t(
|
|
10819
|
+
const { showError: a, showCompleted: r } = dt(), i = a || r ? /* @__PURE__ */ t(W, {}) : /* @__PURE__ */ t(hg, {});
|
|
10820
10820
|
return /* @__PURE__ */ l(
|
|
10821
10821
|
re,
|
|
10822
10822
|
{
|
|
@@ -11130,7 +11130,7 @@ const _g = ({
|
|
|
11130
11130
|
unnamed_label: "Unnamed Debt"
|
|
11131
11131
|
};
|
|
11132
11132
|
function Hg(e, A) {
|
|
11133
|
-
const n = e.filter((i) => i.account_type ===
|
|
11133
|
+
const n = e.filter((i) => i.account_type === Y.CHECKING_LINE_OF_CREDIT ? Number(i.balance) <= 0 : i.is_excluded_from_debts !== !0), a = A.filter((i) => n.some((o) => o.guid === i.account_guid)).map(
|
|
11134
11134
|
(i) => Kr(n.find((o) => o.guid === i.account_guid), i)
|
|
11135
11135
|
), r = n.filter((i) => !a.some((o) => o.account.guid === i.guid)).map((i) => Kr(i));
|
|
11136
11136
|
return [...a, ...r];
|
|
@@ -11715,7 +11715,7 @@ const mo = T(
|
|
|
11715
11715
|
}, h = async (m) => {
|
|
11716
11716
|
for (const C of m) {
|
|
11717
11717
|
let f = eA.CREDIT_CARD;
|
|
11718
|
-
C.account_type ===
|
|
11718
|
+
C.account_type === Y.LOAN ? f = eA.LOANS : C.account_type === Y.LINE_OF_CREDIT && (f = eA.LINE_OF_CREDIT), await n({
|
|
11719
11719
|
account_guid: C.guid,
|
|
11720
11720
|
amount: 0,
|
|
11721
11721
|
current_amount: 0,
|
|
@@ -12016,11 +12016,11 @@ const mo = T(
|
|
|
12016
12016
|
/* @__PURE__ */ l(Ae, { sx: { bgcolor: "background.paper" }, children: [
|
|
12017
12017
|
/* @__PURE__ */ t(Jg, { goal: e }),
|
|
12018
12018
|
/* @__PURE__ */ t(H, { variant: "inset" }),
|
|
12019
|
-
(r === ee.SAVINGS_TRACK || r === ee.RETIREMENT_TRACK) && /* @__PURE__ */ l(
|
|
12019
|
+
(r === ee.SAVINGS_TRACK || r === ee.RETIREMENT_TRACK) && /* @__PURE__ */ l(W, { children: [
|
|
12020
12020
|
/* @__PURE__ */ t(Yg, { goal: e }),
|
|
12021
12021
|
/* @__PURE__ */ t(H, { variant: r === ee.RETIREMENT_TRACK ? "inset" : "fullWidth" })
|
|
12022
12022
|
] }),
|
|
12023
|
-
e.track_type === ee.DEBT_TRACK && /* @__PURE__ */ l(
|
|
12023
|
+
e.track_type === ee.DEBT_TRACK && /* @__PURE__ */ l(W, { children: [
|
|
12024
12024
|
/* @__PURE__ */ t(ho, { goal: e }),
|
|
12025
12025
|
/* @__PURE__ */ t(H, { variant: "inset" }),
|
|
12026
12026
|
/* @__PURE__ */ t(uo, { goal: e }),
|
|
@@ -12028,7 +12028,7 @@ const mo = T(
|
|
|
12028
12028
|
/* @__PURE__ */ t(go, { goal: e }),
|
|
12029
12029
|
/* @__PURE__ */ t(H, { variant: "fullWidth" })
|
|
12030
12030
|
] }),
|
|
12031
|
-
e.track_type === ee.RETIREMENT_TRACK && /* @__PURE__ */ l(
|
|
12031
|
+
e.track_type === ee.RETIREMENT_TRACK && /* @__PURE__ */ l(W, { children: [
|
|
12032
12032
|
/* @__PURE__ */ t(Zg, { goal: e }),
|
|
12033
12033
|
/* @__PURE__ */ t(H, { variant: "inset" }),
|
|
12034
12034
|
/* @__PURE__ */ t($g, { goal: e }),
|
|
@@ -12036,11 +12036,11 @@ const mo = T(
|
|
|
12036
12036
|
] })
|
|
12037
12037
|
] }),
|
|
12038
12038
|
/* @__PURE__ */ t(p, { color: "text.secondary", sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: e.track_type === ee.RETIREMENT_TRACK ? A.details_accounts : A.details_account }),
|
|
12039
|
-
a && /* @__PURE__ */ l(
|
|
12039
|
+
a && /* @__PURE__ */ l(W, { children: [
|
|
12040
12040
|
/* @__PURE__ */ t(po, { account: a }),
|
|
12041
12041
|
/* @__PURE__ */ t(H, {})
|
|
12042
12042
|
] }),
|
|
12043
|
-
e.track_type === ee.RETIREMENT_TRACK && /* @__PURE__ */ l(
|
|
12043
|
+
e.track_type === ee.RETIREMENT_TRACK && /* @__PURE__ */ l(W, { children: [
|
|
12044
12044
|
/* @__PURE__ */ t(e1, { goal: e }),
|
|
12045
12045
|
/* @__PURE__ */ t(H, {})
|
|
12046
12046
|
] }),
|
|
@@ -12217,7 +12217,7 @@ class n1 {
|
|
|
12217
12217
|
addGoal = async (A) => {
|
|
12218
12218
|
try {
|
|
12219
12219
|
const n = await this.api.addGoal(A);
|
|
12220
|
-
|
|
12220
|
+
Q(() => {
|
|
12221
12221
|
this.goals = [...this.goals, n];
|
|
12222
12222
|
});
|
|
12223
12223
|
} catch (n) {
|
|
@@ -12231,7 +12231,7 @@ class n1 {
|
|
|
12231
12231
|
const i = await this.api.addRetirementGoalAccount(r);
|
|
12232
12232
|
a.push(i);
|
|
12233
12233
|
}
|
|
12234
|
-
this.setNewRetirementGoalAccounts([]),
|
|
12234
|
+
this.setNewRetirementGoalAccounts([]), Q(() => {
|
|
12235
12235
|
this.goals = [...this.goals, n], this.retirementGoalAccounts = a;
|
|
12236
12236
|
});
|
|
12237
12237
|
} catch (n) {
|
|
@@ -12241,7 +12241,7 @@ class n1 {
|
|
|
12241
12241
|
addRetirementGoalAccount = async (A) => {
|
|
12242
12242
|
try {
|
|
12243
12243
|
const n = await this.api.addRetirementGoalAccount(A);
|
|
12244
|
-
|
|
12244
|
+
Q(() => {
|
|
12245
12245
|
this.retirementGoalAccounts = [...this.retirementGoalAccounts, n];
|
|
12246
12246
|
});
|
|
12247
12247
|
} catch (n) {
|
|
@@ -12260,7 +12260,7 @@ class n1 {
|
|
|
12260
12260
|
track_type: ee.RETIREMENT_TRACK
|
|
12261
12261
|
}))
|
|
12262
12262
|
];
|
|
12263
|
-
|
|
12263
|
+
Q(() => {
|
|
12264
12264
|
this.goals = o, this.retirementGoalAccounts = r, this.monthlyCashFlowProfile = i;
|
|
12265
12265
|
});
|
|
12266
12266
|
} catch (n) {
|
|
@@ -12269,7 +12269,7 @@ class n1 {
|
|
|
12269
12269
|
};
|
|
12270
12270
|
deleteGoal = async (A) => {
|
|
12271
12271
|
try {
|
|
12272
|
-
await this.api.removeGoal(A),
|
|
12272
|
+
await this.api.removeGoal(A), Q(() => {
|
|
12273
12273
|
const n = this.goals.findIndex((a) => a.guid === A);
|
|
12274
12274
|
n >= 0 && this.goals.splice(n, 1);
|
|
12275
12275
|
});
|
|
@@ -12284,7 +12284,7 @@ class n1 {
|
|
|
12284
12284
|
);
|
|
12285
12285
|
for (const a of n)
|
|
12286
12286
|
await this.deleteRetirementGoalAccount(a.guid);
|
|
12287
|
-
await this.api.removeRetirementGoalAccount(A.guid),
|
|
12287
|
+
await this.api.removeRetirementGoalAccount(A.guid), Q(() => {
|
|
12288
12288
|
const a = this.goals.findIndex((r) => r.guid === A.guid);
|
|
12289
12289
|
a >= 0 && this.goals.splice(a, 1);
|
|
12290
12290
|
});
|
|
@@ -12294,7 +12294,7 @@ class n1 {
|
|
|
12294
12294
|
};
|
|
12295
12295
|
deleteRetirementGoalAccount = async (A) => {
|
|
12296
12296
|
try {
|
|
12297
|
-
await this.api.removeRetirementGoalAccount(A),
|
|
12297
|
+
await this.api.removeRetirementGoalAccount(A), Q(() => {
|
|
12298
12298
|
const n = this.retirementGoalAccounts.findIndex((a) => a.guid === A);
|
|
12299
12299
|
n >= 0 && this.retirementGoalAccounts.splice(n, 1);
|
|
12300
12300
|
});
|
|
@@ -12305,7 +12305,7 @@ class n1 {
|
|
|
12305
12305
|
reorderGoals = async (A) => {
|
|
12306
12306
|
try {
|
|
12307
12307
|
const n = await this.api.reorderGoals(A);
|
|
12308
|
-
|
|
12308
|
+
Q(() => {
|
|
12309
12309
|
for (const a of n) {
|
|
12310
12310
|
const r = this.goals.findIndex((i) => i.guid === a.guid);
|
|
12311
12311
|
r >= 0 && (this.goals[r].position = a.position);
|
|
@@ -12323,7 +12323,7 @@ class n1 {
|
|
|
12323
12323
|
updateGoal = async (A) => {
|
|
12324
12324
|
try {
|
|
12325
12325
|
const n = await this.api.updateGoal(A);
|
|
12326
|
-
|
|
12326
|
+
Q(() => {
|
|
12327
12327
|
const a = this.goals.findIndex((r) => r.guid === A.guid);
|
|
12328
12328
|
a >= 0 && (this.goals[a] = n), this.selectedGoal?.guid === A.guid && this.setSelectedGoal(n);
|
|
12329
12329
|
});
|
|
@@ -12334,7 +12334,7 @@ class n1 {
|
|
|
12334
12334
|
updateMonthlyCashFlowProfile = async (A) => {
|
|
12335
12335
|
try {
|
|
12336
12336
|
const n = await this.api.updateMonthlyCashFlowProfile(A);
|
|
12337
|
-
|
|
12337
|
+
Q(() => {
|
|
12338
12338
|
this.monthlyCashFlowProfile = n;
|
|
12339
12339
|
});
|
|
12340
12340
|
} catch (n) {
|
|
@@ -12598,14 +12598,15 @@ class o1 {
|
|
|
12598
12598
|
console.log("start::"), this.globalStore = A, De(this);
|
|
12599
12599
|
}
|
|
12600
12600
|
setAppConfig(A) {
|
|
12601
|
-
|
|
12601
|
+
Q(() => {
|
|
12602
|
+
this.appConfig = A;
|
|
12603
|
+
});
|
|
12602
12604
|
}
|
|
12603
12605
|
get helpCategories() {
|
|
12604
|
-
if (!this.appConfig) return [];
|
|
12605
12606
|
const {
|
|
12606
12607
|
appData: { client_communication_profile: A, client_profile: n }
|
|
12607
12608
|
} = this.globalStore.appDataStore;
|
|
12608
|
-
return console.log(A, n, ":::cli:prof"), console.log(this.appConfig), i1({
|
|
12609
|
+
return console.log(A, n, ":::cli:prof", this.globalStore.appDataStore), console.log(this.appConfig), i1({
|
|
12609
12610
|
...A,
|
|
12610
12611
|
...n
|
|
12611
12612
|
});
|
|
@@ -12693,13 +12694,13 @@ class d1 {
|
|
|
12693
12694
|
loadMerchants = async (A = "") => {
|
|
12694
12695
|
this.isLoading = !0;
|
|
12695
12696
|
const n = await this.api.getMerchants([A]);
|
|
12696
|
-
|
|
12697
|
+
Q(() => {
|
|
12697
12698
|
this.merchants = n, this.isLoading = !1;
|
|
12698
12699
|
});
|
|
12699
12700
|
};
|
|
12700
12701
|
loadMerchantByGuid = async (A) => {
|
|
12701
12702
|
const n = await this.api.getMerchantByGuid(A);
|
|
12702
|
-
|
|
12703
|
+
Q(() => this.merchant = n);
|
|
12703
12704
|
};
|
|
12704
12705
|
}
|
|
12705
12706
|
const fo = 13, u1 = (e, A) => e.filter((n) => {
|
|
@@ -12795,7 +12796,7 @@ class v1 {
|
|
|
12795
12796
|
const n = this.globalStore.accountStore.members, a = u1(A, n), i = await (await Promise.all(
|
|
12796
12797
|
a.map((o) => this.globalStore.accountStore.api.getMonthlyAccountBalances(o.guid))
|
|
12797
12798
|
)).reduce(h1, []).sort(g1);
|
|
12798
|
-
|
|
12799
|
+
Q(() => {
|
|
12799
12800
|
this.netWorthData = {
|
|
12800
12801
|
accounts: a,
|
|
12801
12802
|
monthlyAccountBalances: i
|
|
@@ -12808,7 +12809,7 @@ class v1 {
|
|
|
12808
12809
|
loadChartData = async (A) => {
|
|
12809
12810
|
try {
|
|
12810
12811
|
const { accounts: n, monthlyAccountBalances: a } = this.netWorthData, r = await C1(n, a, A), i = Fr(r);
|
|
12811
|
-
|
|
12812
|
+
Q(() => {
|
|
12812
12813
|
this.netWorthChartData = r, this.selectedData = i;
|
|
12813
12814
|
});
|
|
12814
12815
|
} catch (n) {
|
|
@@ -12831,12 +12832,12 @@ class v1 {
|
|
|
12831
12832
|
};
|
|
12832
12833
|
}
|
|
12833
12834
|
setSelectedData = (A) => {
|
|
12834
|
-
|
|
12835
|
+
Q(() => {
|
|
12835
12836
|
this.selectedData = this.netWorthChartData[A];
|
|
12836
12837
|
});
|
|
12837
12838
|
};
|
|
12838
12839
|
setHoveredData = (A) => {
|
|
12839
|
-
|
|
12840
|
+
Q(() => {
|
|
12840
12841
|
this.hoveredData = A !== null ? this.netWorthChartData[A] : void 0;
|
|
12841
12842
|
});
|
|
12842
12843
|
};
|
|
@@ -12996,7 +12997,7 @@ const y1 = ({
|
|
|
12996
12997
|
] });
|
|
12997
12998
|
}, D1 = T(L1), x1 = ({ accounts: e, name: A, icon: n }) => {
|
|
12998
12999
|
const [a, r] = g.useState(!1);
|
|
12999
|
-
return /* @__PURE__ */ l(
|
|
13000
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
13000
13001
|
/* @__PURE__ */ t(j, { sx: (i) => ({ backgroundColor: i.palette.background.paper }), children: /* @__PURE__ */ l(ae, { onClick: () => r(!a), children: [
|
|
13001
13002
|
n && /* @__PURE__ */ t(nA, { children: /* @__PURE__ */ t(B, { name: n, size: 24, sx: { mr: 12 } }) }),
|
|
13002
13003
|
/* @__PURE__ */ t(
|
|
@@ -13022,7 +13023,7 @@ const y1 = ({
|
|
|
13022
13023
|
o < e.length - 1 ? /* @__PURE__ */ t(H, { variant: "inset" }) : /* @__PURE__ */ t(H, {})
|
|
13023
13024
|
] }, i.accountName)) })
|
|
13024
13025
|
] });
|
|
13025
|
-
}, jr = ({ groupedAccounts: e }) => /* @__PURE__ */ t(
|
|
13026
|
+
}, jr = ({ groupedAccounts: e }) => /* @__PURE__ */ t(W, { children: e.map(({ accounts: A, icon: n, name: a }) => /* @__PURE__ */ t(x1, { accounts: A, icon: n, name: a }, a)) }), O1 = ({
|
|
13026
13027
|
netWorth: e,
|
|
13027
13028
|
assets: A,
|
|
13028
13029
|
liabilities: n,
|
|
@@ -13030,7 +13031,7 @@ const y1 = ({
|
|
|
13030
13031
|
totalLiabilities: r
|
|
13031
13032
|
}) => {
|
|
13032
13033
|
const { net_worth: i } = L(), o = fe();
|
|
13033
|
-
return /* @__PURE__ */ l(
|
|
13034
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
13034
13035
|
/* @__PURE__ */ l(
|
|
13035
13036
|
N,
|
|
13036
13037
|
{
|
|
@@ -13088,7 +13089,7 @@ const y1 = ({
|
|
|
13088
13089
|
totalLosses: r
|
|
13089
13090
|
}) => {
|
|
13090
13091
|
const { net_worth: i } = L(), o = fe();
|
|
13091
|
-
return /* @__PURE__ */ l(
|
|
13092
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
13092
13093
|
/* @__PURE__ */ l(y, { alignItems: "center", justifyContent: "space-between", mb: 8, pt: 24, children: [
|
|
13093
13094
|
/* @__PURE__ */ t(p, { variant: "Small", children: Di(e?.x) }),
|
|
13094
13095
|
/* @__PURE__ */ t(p, { variant: "Body", children: i.total_change }),
|
|
@@ -13133,7 +13134,7 @@ const y1 = ({
|
|
|
13133
13134
|
] })
|
|
13134
13135
|
}
|
|
13135
13136
|
) }),
|
|
13136
|
-
n?.map((s) => /* @__PURE__ */ l(
|
|
13137
|
+
n?.map((s) => /* @__PURE__ */ l(W, { children: [
|
|
13137
13138
|
/* @__PURE__ */ t(
|
|
13138
13139
|
j,
|
|
13139
13140
|
{
|
|
@@ -13209,7 +13210,7 @@ const y1 = ({
|
|
|
13209
13210
|
showDividerAboveDateSelector: !1,
|
|
13210
13211
|
sx: { p: v ? 0 : 48 },
|
|
13211
13212
|
title: r.net_worth,
|
|
13212
|
-
children: I && /* @__PURE__ */ l(
|
|
13213
|
+
children: I && /* @__PURE__ */ l(W, { children: [
|
|
13213
13214
|
m && /* @__PURE__ */ t(D1, { hoveredData: c, selectedData: m }),
|
|
13214
13215
|
/* @__PURE__ */ l(
|
|
13215
13216
|
y,
|
|
@@ -13294,7 +13295,7 @@ class R1 {
|
|
|
13294
13295
|
try {
|
|
13295
13296
|
this.isLoading = !0;
|
|
13296
13297
|
const A = await this.api.getNotifications();
|
|
13297
|
-
|
|
13298
|
+
Q(() => {
|
|
13298
13299
|
this.notifications = A, this.recentNotifications = M1(A), this.isLoading = !1;
|
|
13299
13300
|
});
|
|
13300
13301
|
} catch (A) {
|
|
@@ -13463,7 +13464,7 @@ const Gn = ({
|
|
|
13463
13464
|
onClick: n,
|
|
13464
13465
|
primaryText: a,
|
|
13465
13466
|
secondaryText: r
|
|
13466
|
-
}) => /* @__PURE__ */ l(
|
|
13467
|
+
}) => /* @__PURE__ */ l(W, { children: [
|
|
13467
13468
|
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ l(ae, { onClick: n, children: [
|
|
13468
13469
|
/* @__PURE__ */ t(J, { primary: a, secondary: r }),
|
|
13469
13470
|
e
|
|
@@ -13485,7 +13486,7 @@ const Gn = ({
|
|
|
13485
13486
|
() => a(!1)
|
|
13486
13487
|
);
|
|
13487
13488
|
};
|
|
13488
|
-
return /* @__PURE__ */ l(
|
|
13489
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
13489
13490
|
/* @__PURE__ */ t(SA, { sx: { backgroundColor: "transparent", mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(p, { bold: !0, component: "h2", variant: "XSmall", children: h.actions }) }),
|
|
13490
13491
|
/* @__PURE__ */ t(
|
|
13491
13492
|
Gn,
|
|
@@ -13761,7 +13762,7 @@ const Gn = ({
|
|
|
13761
13762
|
mainMessage: o.statusName,
|
|
13762
13763
|
secondaryMessage: o.title
|
|
13763
13764
|
};
|
|
13764
|
-
return /* @__PURE__ */ l(
|
|
13765
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
13765
13766
|
/* @__PURE__ */ t(SA, { sx: { mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(p, { bold: !0, component: "h2", variant: "XSmall", children: r.connection_status }) }),
|
|
13766
13767
|
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: a.is_manual || !s.ctaCopy ? /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", px: 24, py: 12, children: [
|
|
13767
13768
|
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(VA, { backingSx: { backgroundColor: s.color, borderRadius: 1 }, size: 32, children: s.icon }) }),
|
|
@@ -13772,7 +13773,7 @@ const Gn = ({
|
|
|
13772
13773
|
J,
|
|
13773
13774
|
{
|
|
13774
13775
|
primary: s.mainMessage,
|
|
13775
|
-
secondary: s.secondaryMessage && /* @__PURE__ */ l(
|
|
13776
|
+
secondary: s.secondaryMessage && /* @__PURE__ */ l(W, { children: [
|
|
13776
13777
|
s.secondaryMessage,
|
|
13777
13778
|
" ",
|
|
13778
13779
|
/* @__PURE__ */ t(p, { bold: !0, sx: { color: "action.active" }, variant: "XSmall", children: s.ctaCopy })
|
|
@@ -13782,7 +13783,7 @@ const Gn = ({
|
|
|
13782
13783
|
/* @__PURE__ */ t(B, { name: "chevron_right" })
|
|
13783
13784
|
] }) }),
|
|
13784
13785
|
/* @__PURE__ */ t(H, { sx: { ml: a.is_manual || !a.institution_url ? 0 : 24 } }),
|
|
13785
|
-
!a.is_manual && a.institution_url && /* @__PURE__ */ l(
|
|
13786
|
+
!a.is_manual && a.institution_url && /* @__PURE__ */ l(W, { children: [
|
|
13786
13787
|
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ l(ae, { component: "a", href: a.institution_url, target: "_blank", children: [
|
|
13787
13788
|
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(
|
|
13788
13789
|
VA,
|
|
@@ -13908,7 +13909,7 @@ const Gn = ({
|
|
|
13908
13909
|
const e = window.app?.config, { onEvent: A } = $(), { selectedAccount: n } = lA(), { accounts: a } = L(), r = vh(n, a), i = n.member_is_managed_by_user || !n.member_is_managed_by_user && e.enable_renaming_home_accounts, [o, s] = g.useState(!1), [c, d] = g.useState(r[0]), u = r.filter(
|
|
13909
13910
|
(h) => i || n[h.name] || n[h.name] === 0
|
|
13910
13911
|
);
|
|
13911
|
-
return /* @__PURE__ */ l(
|
|
13912
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
13912
13913
|
u.map((h) => {
|
|
13913
13914
|
const m = n[h.name] || n[h.name] === 0, C = u.indexOf(h) === u.length - 1, f = /* @__PURE__ */ t(
|
|
13914
13915
|
J,
|
|
@@ -13918,7 +13919,7 @@ const Gn = ({
|
|
|
13918
13919
|
secondary: /* @__PURE__ */ t(p, { bold: !0, sx: { fontSize: 15 }, children: m ? h.valueFormatter(n[h.name]) : h.placeholder })
|
|
13919
13920
|
}
|
|
13920
13921
|
);
|
|
13921
|
-
return /* @__PURE__ */ t(g.Fragment, { children: i ? /* @__PURE__ */ l(
|
|
13922
|
+
return /* @__PURE__ */ t(g.Fragment, { children: i ? /* @__PURE__ */ l(W, { children: [
|
|
13922
13923
|
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper", px: 0 }, children: /* @__PURE__ */ l(
|
|
13923
13924
|
ae,
|
|
13924
13925
|
{
|
|
@@ -13932,7 +13933,7 @@ const Gn = ({
|
|
|
13932
13933
|
}
|
|
13933
13934
|
) }),
|
|
13934
13935
|
/* @__PURE__ */ t(H, { sx: { ml: C ? 0 : 24 } })
|
|
13935
|
-
] }) : m && /* @__PURE__ */ l(
|
|
13936
|
+
] }) : m && /* @__PURE__ */ l(W, { children: [
|
|
13936
13937
|
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper", px: 24 }, children: f }),
|
|
13937
13938
|
/* @__PURE__ */ t(H, { sx: { ml: C ? 0 : 24 } })
|
|
13938
13939
|
] }) }, h.name);
|
|
@@ -13959,7 +13960,7 @@ const Gn = ({
|
|
|
13959
13960
|
o && e(1);
|
|
13960
13961
|
}, [o]), !o) return;
|
|
13961
13962
|
const s = vo(a, i);
|
|
13962
|
-
return /* @__PURE__ */ l(
|
|
13963
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
13963
13964
|
/* @__PURE__ */ t(
|
|
13964
13965
|
gA,
|
|
13965
13966
|
{
|
|
@@ -14016,7 +14017,7 @@ const Gn = ({
|
|
|
14016
14017
|
dateRange: { start: Fs(Xs(), 90), end: js() },
|
|
14017
14018
|
accounts: [a.guid]
|
|
14018
14019
|
});
|
|
14019
|
-
}, [a]), g.useEffect(() => n(G.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ l(
|
|
14020
|
+
}, [a]), g.useEffect(() => n(G.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ l(W, { children: [
|
|
14020
14021
|
/* @__PURE__ */ t(tt, { onClick: A }),
|
|
14021
14022
|
s && /* @__PURE__ */ t(
|
|
14022
14023
|
re,
|
|
@@ -14031,7 +14032,7 @@ const Gn = ({
|
|
|
14031
14032
|
] });
|
|
14032
14033
|
}, nm = T(tm), am = () => {
|
|
14033
14034
|
const [e, A] = g.useState(0), { accounts: n } = L();
|
|
14034
|
-
return /* @__PURE__ */ l(
|
|
14035
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
14035
14036
|
/* @__PURE__ */ t(Am, { setTabValue: A }),
|
|
14036
14037
|
/* @__PURE__ */ l(
|
|
14037
14038
|
_A,
|
|
@@ -14211,7 +14212,7 @@ const Gn = ({
|
|
|
14211
14212
|
onBackClick: e,
|
|
14212
14213
|
sx: A,
|
|
14213
14214
|
title: c.title,
|
|
14214
|
-
children: r ? /* @__PURE__ */ t(Ve, {}) : /* @__PURE__ */ l(
|
|
14215
|
+
children: r ? /* @__PURE__ */ t(Ve, {}) : /* @__PURE__ */ l(W, { children: [
|
|
14215
14216
|
/* @__PURE__ */ l(N, { sx: { px: h ? 24 : 12 }, children: [
|
|
14216
14217
|
u.length < 1 && /* @__PURE__ */ t(p, { display: "flex", justifyContent: "center", my: 24, children: c.no_accounts }),
|
|
14217
14218
|
/* @__PURE__ */ t(im, {})
|
|
@@ -14782,32 +14783,32 @@ class pm {
|
|
|
14782
14783
|
};
|
|
14783
14784
|
get cashAccounts() {
|
|
14784
14785
|
return this.accounts.filter(
|
|
14785
|
-
(A) => A.account_type ===
|
|
14786
|
+
(A) => A.account_type === Y.CASH || A.account_type === Y.CHECKING || A.account_type === Y.PREPAID || A.account_type === Y.SAVINGS || A.account_type === Y.CHECKING_LINE_OF_CREDIT
|
|
14786
14787
|
);
|
|
14787
14788
|
}
|
|
14788
14789
|
get checkingAccounts() {
|
|
14789
|
-
return this.accounts.filter((A) => A.account_type ===
|
|
14790
|
+
return this.accounts.filter((A) => A.account_type === Y.CHECKING);
|
|
14790
14791
|
}
|
|
14791
14792
|
get debtAccounts() {
|
|
14792
14793
|
return this.accounts.filter(
|
|
14793
|
-
(A) => A.account_type ===
|
|
14794
|
+
(A) => A.account_type === Y.CREDIT_CARD || A.account_type === Y.LOAN || A.account_type === Y.MORTGAGE || A.account_type === Y.LINE_OF_CREDIT || A.account_type === Y.CHECKING_LINE_OF_CREDIT
|
|
14794
14795
|
);
|
|
14795
14796
|
}
|
|
14796
14797
|
get investmentAccounts() {
|
|
14797
14798
|
return this.accounts.filter(
|
|
14798
|
-
(A) => A.account_type ===
|
|
14799
|
+
(A) => A.account_type === Y.INVESTMENT
|
|
14799
14800
|
);
|
|
14800
14801
|
}
|
|
14801
14802
|
get cashBalance() {
|
|
14802
14803
|
return this.cashAccounts.reduce((A, n) => A + (n?.balance || 0), 0);
|
|
14803
14804
|
}
|
|
14804
14805
|
get savingsAccounts() {
|
|
14805
|
-
return this.accounts.filter((A) => A.account_type ===
|
|
14806
|
+
return this.accounts.filter((A) => A.account_type === Y.SAVINGS);
|
|
14806
14807
|
}
|
|
14807
14808
|
addAccount = async (A) => {
|
|
14808
14809
|
try {
|
|
14809
14810
|
const n = await this.api.createAccount(A);
|
|
14810
|
-
|
|
14811
|
+
Q(() => {
|
|
14811
14812
|
this.accounts = [...this.accounts, n];
|
|
14812
14813
|
});
|
|
14813
14814
|
} catch (n) {
|
|
@@ -14835,7 +14836,7 @@ class pm {
|
|
|
14835
14836
|
await this.loadMembers();
|
|
14836
14837
|
try {
|
|
14837
14838
|
const A = await this.api.getAccounts();
|
|
14838
|
-
|
|
14839
|
+
Q(() => {
|
|
14839
14840
|
this.accounts = this.sortAccounts(this.augmentAccounts(A));
|
|
14840
14841
|
});
|
|
14841
14842
|
} catch (A) {
|
|
@@ -14845,7 +14846,7 @@ class pm {
|
|
|
14845
14846
|
loadInstitutions = async () => {
|
|
14846
14847
|
try {
|
|
14847
14848
|
const A = await this.api.getInstitutions();
|
|
14848
|
-
|
|
14849
|
+
Q(() => {
|
|
14849
14850
|
this.institutions = A;
|
|
14850
14851
|
});
|
|
14851
14852
|
} catch (A) {
|
|
@@ -14855,7 +14856,7 @@ class pm {
|
|
|
14855
14856
|
loadMembers = async () => {
|
|
14856
14857
|
try {
|
|
14857
14858
|
const A = await this.api.getMembers();
|
|
14858
|
-
|
|
14859
|
+
Q(() => {
|
|
14859
14860
|
this.members = A;
|
|
14860
14861
|
});
|
|
14861
14862
|
} catch (A) {
|
|
@@ -14865,7 +14866,7 @@ class pm {
|
|
|
14865
14866
|
mergeAccounts = async (A) => {
|
|
14866
14867
|
try {
|
|
14867
14868
|
const n = await this.api.mergeAccounts(A), a = n[Object.keys(n)[0]];
|
|
14868
|
-
|
|
14869
|
+
Q(() => {
|
|
14869
14870
|
const r = this.accounts.findIndex((o) => o.guid === A[1]);
|
|
14870
14871
|
this.accounts.splice(r, 1);
|
|
14871
14872
|
const i = this.accounts.findIndex((o) => o.guid === A[0]);
|
|
@@ -14888,7 +14889,7 @@ class pm {
|
|
|
14888
14889
|
};
|
|
14889
14890
|
removeAccount = async (A) => {
|
|
14890
14891
|
try {
|
|
14891
|
-
await this.api.deleteAccount(A),
|
|
14892
|
+
await this.api.deleteAccount(A), Q(() => {
|
|
14892
14893
|
const n = this.accounts.findIndex((a) => a.guid === A);
|
|
14893
14894
|
this.accounts.splice(n, 1);
|
|
14894
14895
|
});
|
|
@@ -14899,7 +14900,7 @@ class pm {
|
|
|
14899
14900
|
updateAccount = async (A) => {
|
|
14900
14901
|
try {
|
|
14901
14902
|
const n = await this.api.updateAccount(A);
|
|
14902
|
-
|
|
14903
|
+
Q(() => {
|
|
14903
14904
|
const a = this.accounts.findIndex(
|
|
14904
14905
|
(r) => r.guid === n.guid
|
|
14905
14906
|
);
|
|
@@ -15860,7 +15861,7 @@ const Qm = () => {
|
|
|
15860
15861
|
onTopicSelect: i
|
|
15861
15862
|
}) => {
|
|
15862
15863
|
const [o, s] = EA(null), c = Math.ceil(A.length / 2);
|
|
15863
|
-
return /* @__PURE__ */ l(
|
|
15864
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
15864
15865
|
/* @__PURE__ */ l(QA, { container: !0, sx: { alignItems: "center", mb: 24 }, children: [
|
|
15865
15866
|
/* @__PURE__ */ l(QA, { item: !0, md: 6, sm: 6, xs: 12, children: [
|
|
15866
15867
|
/* @__PURE__ */ t($A, { children: a }),
|
|
@@ -16057,7 +16058,7 @@ const Qm = () => {
|
|
|
16057
16058
|
] });
|
|
16058
16059
|
}, wo = ({ Icon: e, label: A, onClick: n, itemCount: a }) => {
|
|
16059
16060
|
const r = fe();
|
|
16060
|
-
return /* @__PURE__ */ l(
|
|
16061
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
16061
16062
|
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ l(ae, { onClick: n, children: [
|
|
16062
16063
|
/* @__PURE__ */ t(e, { sx: { fontSize: 22, marginRight: "16px" } }),
|
|
16063
16064
|
/* @__PURE__ */ t(
|
|
@@ -16090,7 +16091,7 @@ const Qm = () => {
|
|
|
16090
16091
|
] });
|
|
16091
16092
|
}, Q8 = ({ content: e, manageAccountsStore: A }) => {
|
|
16092
16093
|
const { groupedAccounts: n, toggleAccount: a } = A, [r, i] = g.useState(!1);
|
|
16093
|
-
return /* @__PURE__ */ l(
|
|
16094
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
16094
16095
|
/* @__PURE__ */ t(
|
|
16095
16096
|
wo,
|
|
16096
16097
|
{
|
|
@@ -16521,7 +16522,7 @@ const Io = ({
|
|
|
16521
16522
|
}, K = (q, F) => {
|
|
16522
16523
|
a(q), F && E(!1), m(q.length > 1 ? e.insights_unhidden : e.insight_unhidden);
|
|
16523
16524
|
};
|
|
16524
|
-
return /* @__PURE__ */ l(
|
|
16525
|
+
return /* @__PURE__ */ l(W, { children: [
|
|
16525
16526
|
/* @__PURE__ */ t(
|
|
16526
16527
|
wo,
|
|
16527
16528
|
{
|
|
@@ -16675,7 +16676,7 @@ class oC {
|
|
|
16675
16676
|
};
|
|
16676
16677
|
loadCopy = async () => {
|
|
16677
16678
|
const A = await this.copyApi.getGlobalCopy(this.namespace, this.translationKey);
|
|
16678
|
-
|
|
16679
|
+
Q(() => {
|
|
16679
16680
|
this.copyObject = A[this.translationKey];
|
|
16680
16681
|
});
|
|
16681
16682
|
};
|
|
@@ -16871,7 +16872,7 @@ class uC {
|
|
|
16871
16872
|
this.copyStore = new oC(), this.insightsMicroWidgetStore = new dC(), De(this);
|
|
16872
16873
|
}
|
|
16873
16874
|
initialize = async (A, n, a) => {
|
|
16874
|
-
await this.copyStore.initialize(A, n), await this.insightsMicroWidgetStore.initialize(A, n, a), this.session = await Tc(A, n, "1.0.0", "Micro Insights Carousel"),
|
|
16875
|
+
await this.copyStore.initialize(A, n), await this.insightsMicroWidgetStore.initialize(A, n, a), this.session = await Tc(A, n, "1.0.0", "Micro Insights Carousel"), Q(() => {
|
|
16875
16876
|
this.isInitialized = !0;
|
|
16876
16877
|
});
|
|
16877
16878
|
};
|
|
@@ -19392,7 +19393,7 @@ export {
|
|
|
19392
19393
|
xc as AccountIconVariants,
|
|
19393
19394
|
pm as AccountStore,
|
|
19394
19395
|
Lc as AccountSubType,
|
|
19395
|
-
|
|
19396
|
+
Y as AccountType,
|
|
19396
19397
|
ga as AccountTypeName,
|
|
19397
19398
|
k8 as AccountsMiniWidget,
|
|
19398
19399
|
q8 as AccountsWidget,
|