@mx-cartographer/experiences 4.1.2-alpha.mega20 → 4.1.2-alpha.mega21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +152 -154
- 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 Q } 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 Y, reaction as Rs, computed as Hs, observable as Bs } from "mobx";
|
|
84
84
|
import { differenceInDays as zs } from "date-fns/differenceInDays";
|
|
85
85
|
import pn from "@mui/icons-material/ChevronRight";
|
|
86
86
|
import oa from "@mui/icons-material/ExpandMore";
|
|
@@ -342,7 +342,7 @@ const Ic = 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 W = /* @__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))(W || {}), Dc = /* @__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))(Dc || {}), 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 xc = [
|
|
347
347
|
0,
|
|
348
348
|
15,
|
|
@@ -443,28 +443,28 @@ const g8 = {
|
|
|
443
443
|
8: "sports_baseball",
|
|
444
444
|
9: "monetization_on"
|
|
445
445
|
}, Ca = [
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
446
|
+
W.ANY,
|
|
447
|
+
W.CASH,
|
|
448
|
+
W.CHECKING,
|
|
449
|
+
W.DIGITAL_WALLET,
|
|
450
|
+
W.PREPAID,
|
|
451
|
+
W.SAVINGS
|
|
452
452
|
], pa = [
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
453
|
+
W.CHECKING_LINE_OF_CREDIT,
|
|
454
|
+
W.CREDIT_CARD,
|
|
455
|
+
W.LINE_OF_CREDIT,
|
|
456
|
+
W.LOAN,
|
|
457
|
+
W.MORTGAGE
|
|
458
458
|
], fa = [
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
459
|
+
W.ANY,
|
|
460
|
+
W.CASH,
|
|
461
|
+
W.CHECKING,
|
|
462
|
+
W.CHECKING_LINE_OF_CREDIT,
|
|
463
|
+
W.CREDIT_CARD,
|
|
464
|
+
W.DIGITAL_WALLET,
|
|
465
|
+
W.LINE_OF_CREDIT,
|
|
466
|
+
W.PREPAID,
|
|
467
|
+
W.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 dl = ({
|
|
|
1876
1876
|
] });
|
|
1877
1877
|
}, pl = (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(Q, { children: [
|
|
1880
1880
|
n && /* @__PURE__ */ t(
|
|
1881
1881
|
"text",
|
|
1882
1882
|
{
|
|
@@ -1914,7 +1914,7 @@ const dl = ({
|
|
|
1914
1914
|
}
|
|
1915
1915
|
)
|
|
1916
1916
|
] });
|
|
1917
|
-
}, fl = (e) => /* @__PURE__ */ l(
|
|
1917
|
+
}, fl = (e) => /* @__PURE__ */ l(Q, { 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", Rl = ({
|
|
|
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(Q, { 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 Kl {
|
|
|
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), Y(() => {
|
|
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
|
+
Y(() => {
|
|
3691
3691
|
this.copy = a[A];
|
|
3692
3692
|
});
|
|
3693
3693
|
} catch (a) {
|
|
@@ -3720,7 +3720,7 @@ class ql {
|
|
|
3720
3720
|
loadAppData = async () => {
|
|
3721
3721
|
try {
|
|
3722
3722
|
const A = await this.api.getAppData();
|
|
3723
|
-
|
|
3723
|
+
Y(() => {
|
|
3724
3724
|
this.appData = A;
|
|
3725
3725
|
});
|
|
3726
3726
|
} catch (A) {
|
|
@@ -3741,7 +3741,7 @@ class kl {
|
|
|
3741
3741
|
};
|
|
3742
3742
|
loadBeats = async () => {
|
|
3743
3743
|
const A = await this.api.getBeats();
|
|
3744
|
-
|
|
3744
|
+
Y(() => {
|
|
3745
3745
|
this.beats = A;
|
|
3746
3746
|
});
|
|
3747
3747
|
};
|
|
@@ -3871,7 +3871,7 @@ class jl {
|
|
|
3871
3871
|
addBudget = async (A, n, a = null) => {
|
|
3872
3872
|
try {
|
|
3873
3873
|
const r = await this.api.addBudget(A, n, a);
|
|
3874
|
-
|
|
3874
|
+
Y(() => {
|
|
3875
3875
|
this.budgets.push(r);
|
|
3876
3876
|
});
|
|
3877
3877
|
} catch (r) {
|
|
@@ -3880,7 +3880,7 @@ class jl {
|
|
|
3880
3880
|
};
|
|
3881
3881
|
deleteBudget = async (A) => {
|
|
3882
3882
|
try {
|
|
3883
|
-
await this.api.deleteBudget(A),
|
|
3883
|
+
await this.api.deleteBudget(A), Y(() => {
|
|
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 jl {
|
|
|
3891
3891
|
loadBudgets = async () => {
|
|
3892
3892
|
try {
|
|
3893
3893
|
const A = await this.api.getBudgets();
|
|
3894
|
-
|
|
3894
|
+
Y(() => {
|
|
3895
3895
|
this.budgets = A;
|
|
3896
3896
|
});
|
|
3897
3897
|
} catch (A) {
|
|
@@ -3922,7 +3922,7 @@ class jl {
|
|
|
3922
3922
|
updateBudget = async (A) => {
|
|
3923
3923
|
try {
|
|
3924
3924
|
const n = await this.api.updateBudget(A);
|
|
3925
|
-
|
|
3925
|
+
Y(() => {
|
|
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 Ea().uiStore;
|
|
3938
3938
|
}, Ul = ({ remaining: e }) => {
|
|
3939
3939
|
const { cashflow: A } = L();
|
|
3940
|
-
return /* @__PURE__ */ l(
|
|
3940
|
+
return /* @__PURE__ */ l(Q, { 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(Q, { 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 cd {
|
|
|
4691
4691
|
};
|
|
4692
4692
|
addTransaction = async (A) => {
|
|
4693
4693
|
const n = await this.api.addTransaction(A);
|
|
4694
|
-
n &&
|
|
4694
|
+
n && Y(
|
|
4695
4695
|
() => this.transactions = this.augmentTransactions([n, ...this.transactions])
|
|
4696
4696
|
);
|
|
4697
4697
|
};
|
|
@@ -4703,19 +4703,19 @@ class cd {
|
|
|
4703
4703
|
);
|
|
4704
4704
|
loadAssociatedBeats = async (A) => {
|
|
4705
4705
|
const n = A ? ca(A, { representation: "date" }) : void 0, a = await this.beatApi.getBeatsWithAssociatedTransaction(n);
|
|
4706
|
-
|
|
4706
|
+
Y(() => this.associatedBeats = a);
|
|
4707
4707
|
};
|
|
4708
4708
|
loadTags = async () => {
|
|
4709
4709
|
const A = await this.api.getTags();
|
|
4710
|
-
|
|
4710
|
+
Y(() => this.tags = A);
|
|
4711
4711
|
};
|
|
4712
4712
|
loadTaggings = async () => {
|
|
4713
4713
|
const A = await this.api.getTaggings();
|
|
4714
|
-
|
|
4714
|
+
Y(() => this.taggings = A);
|
|
4715
4715
|
};
|
|
4716
4716
|
loadTransactionRules = async () => {
|
|
4717
4717
|
const A = await this.api.getTransactionRules();
|
|
4718
|
-
|
|
4718
|
+
Y(() => 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 cd {
|
|
|
4724
4724
|
pe(A),
|
|
4725
4725
|
pe(n)
|
|
4726
4726
|
);
|
|
4727
|
-
|
|
4727
|
+
Y(() => {
|
|
4728
4728
|
this.transactions = this.augmentTransactions(a);
|
|
4729
4729
|
});
|
|
4730
4730
|
} catch (a) {
|
|
@@ -4750,7 +4750,7 @@ class cd {
|
|
|
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), Y(() => this.transactions = a);
|
|
4754
4754
|
}
|
|
4755
4755
|
};
|
|
4756
4756
|
setFilter = (A) => {
|
|
@@ -4769,7 +4769,7 @@ class cd {
|
|
|
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 && Y(
|
|
4773
4773
|
() => this.transactions = this.augmentTransactions([
|
|
4774
4774
|
...this.transactions.slice(0, i),
|
|
4775
4775
|
a,
|
|
@@ -4787,7 +4787,7 @@ class cd {
|
|
|
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 && Y(
|
|
4791
4791
|
() => this.transactions = [
|
|
4792
4792
|
...a.slice(0, r),
|
|
4793
4793
|
i,
|
|
@@ -4811,7 +4811,7 @@ class cd {
|
|
|
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 && Y(
|
|
4815
4815
|
() => this.transactions = this.augmentTransactions([
|
|
4816
4816
|
...this.transactions.slice(0, a),
|
|
4817
4817
|
n,
|
|
@@ -5598,7 +5598,7 @@ class Vd {
|
|
|
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
|
+
Y(() => {
|
|
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 Vd {
|
|
|
5616
5616
|
pe(a),
|
|
5617
5617
|
A
|
|
5618
5618
|
);
|
|
5619
|
-
|
|
5619
|
+
Y(() => {
|
|
5620
5620
|
this.dateRangeCategoryTotals = r, this.setIsLoadingCategoryTotals(!1);
|
|
5621
5621
|
});
|
|
5622
5622
|
} catch (r) {
|
|
@@ -5627,7 +5627,7 @@ class Vd {
|
|
|
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
|
+
Y(() => {
|
|
5631
5631
|
this.monthlyCategoryTotals = o;
|
|
5632
5632
|
});
|
|
5633
5633
|
} catch (o) {
|
|
@@ -5646,7 +5646,7 @@ class Vd {
|
|
|
5646
5646
|
pe(Re(a)),
|
|
5647
5647
|
A
|
|
5648
5648
|
);
|
|
5649
|
-
|
|
5649
|
+
Y(() => {
|
|
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(Q, { 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(Q, { 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(Q, { 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(Q, { 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
|
zu(e),
|
|
7439
7439
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: Bu(e, r) })
|
|
7440
|
-
] }) : /* @__PURE__ */ l(
|
|
7440
|
+
] }) : /* @__PURE__ */ l(Q, { 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(Q, { 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(Q, { 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(Q, { 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(Q, { 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(Q, { 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 hh {
|
|
|
8468
8468
|
addCashflowEvent = async (A) => {
|
|
8469
8469
|
try {
|
|
8470
8470
|
const n = await this.cashflowApi.addCashflowEvent(A);
|
|
8471
|
-
|
|
8471
|
+
Y(() => {
|
|
8472
8472
|
this.cashflowEvents = [...this.cashflowEvents, n];
|
|
8473
8473
|
});
|
|
8474
8474
|
} catch (n) {
|
|
@@ -8489,7 +8489,7 @@ class hh {
|
|
|
8489
8489
|
await this.globalStore.transactionStore.updateTransaction({
|
|
8490
8490
|
...n,
|
|
8491
8491
|
scheduled_payment_guid: a.guid
|
|
8492
|
-
}),
|
|
8492
|
+
}), Y(() => {
|
|
8493
8493
|
this.scheduledPayments = [...this.scheduledPayments, a];
|
|
8494
8494
|
});
|
|
8495
8495
|
} catch (a) {
|
|
@@ -8505,7 +8505,7 @@ class hh {
|
|
|
8505
8505
|
};
|
|
8506
8506
|
deleteScheduledPayment = async (A) => {
|
|
8507
8507
|
try {
|
|
8508
|
-
await this.api.deleteScheduledPayment(A),
|
|
8508
|
+
await this.api.deleteScheduledPayment(A), Y(() => {
|
|
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 hh {
|
|
|
8515
8515
|
};
|
|
8516
8516
|
loadActivity = () => {
|
|
8517
8517
|
this.isLoading = !0, Promise.all([this.loadExpenseActivity(), this.loadIncomeActivity()]).finally(
|
|
8518
|
-
() =>
|
|
8518
|
+
() => Y(() => {
|
|
8519
8519
|
this.isLoading = !1;
|
|
8520
8520
|
})
|
|
8521
8521
|
);
|
|
@@ -8528,7 +8528,7 @@ class hh {
|
|
|
8528
8528
|
};
|
|
8529
8529
|
loadCashflowSequences = async () => {
|
|
8530
8530
|
const A = await this.cashflowApi.getCashflowSequences();
|
|
8531
|
-
|
|
8531
|
+
Y(() => {
|
|
8532
8532
|
this.cashflowSequences = A.filter(
|
|
8533
8533
|
(n) => n.transaction_type === AA.CREDIT
|
|
8534
8534
|
);
|
|
@@ -8540,7 +8540,7 @@ class hh {
|
|
|
8540
8540
|
xe(ie()),
|
|
8541
8541
|
OA(ie(), 30)
|
|
8542
8542
|
);
|
|
8543
|
-
|
|
8543
|
+
Y(() => {
|
|
8544
8544
|
this.projectedEvents = A.filter(
|
|
8545
8545
|
(n) => n.transaction_type === AA.CREDIT
|
|
8546
8546
|
);
|
|
@@ -8555,7 +8555,7 @@ class hh {
|
|
|
8555
8555
|
TA(ie(), 90),
|
|
8556
8556
|
Re(ie())
|
|
8557
8557
|
);
|
|
8558
|
-
|
|
8558
|
+
Y(() => {
|
|
8559
8559
|
this.cashflowEvents = A.filter(
|
|
8560
8560
|
(n) => n.transaction_type === AA.CREDIT
|
|
8561
8561
|
);
|
|
@@ -8567,7 +8567,7 @@ class hh {
|
|
|
8567
8567
|
loadScheduledPayments = async () => {
|
|
8568
8568
|
try {
|
|
8569
8569
|
const A = await this.api.getScheduledPayments();
|
|
8570
|
-
|
|
8570
|
+
Y(() => {
|
|
8571
8571
|
this.scheduledPayments = A;
|
|
8572
8572
|
});
|
|
8573
8573
|
} catch (A) {
|
|
@@ -8601,7 +8601,7 @@ class hh {
|
|
|
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
|
+
Y(() => {
|
|
8605
8605
|
this.scheduledPayments = [
|
|
8606
8606
|
...this.scheduledPayments.slice(0, a),
|
|
8607
8607
|
n,
|
|
@@ -8617,7 +8617,7 @@ const gh = {
|
|
|
8617
8617
|
gridRow: 1,
|
|
8618
8618
|
gridColumn: 1,
|
|
8619
8619
|
zIndex: 2
|
|
8620
|
-
}, mh = ({ size: e = 20 }) => /* @__PURE__ */ t(VA, { size: e, children: /* @__PURE__ */ t(yn, { color: "error", sx: { fontSize: e, ...gh } }) }), Pa = (e) => e && (e.account_type ===
|
|
8620
|
+
}, mh = ({ size: e = 20 }) => /* @__PURE__ */ t(VA, { size: e, children: /* @__PURE__ */ t(yn, { color: "error", sx: { fontSize: e, ...gh } }) }), Pa = (e) => e && (e.account_type === W.CREDIT_CARD || e.account_type === W.LOAN || e.account_type === W.MORTGAGE || e.account_type === W.LINE_OF_CREDIT || e.account_type === W.CHECKING_LINE_OF_CREDIT), Ch = (e) => e.is_manual || !e.guid, ph = (e) => e.account_type === W.LINE_OF_CREDIT || e.account_type === W.CREDIT_CARD || e.account_type === W.CHECKING_LINE_OF_CREDIT, fh = (e) => e.account_type === W.SAVINGS || e.account_type === W.CHECKING || e.account_type === W.LINE_OF_CREDIT || e.account_type === W.CREDIT_CARD || e.account_type === W.LOAN || e.account_type === W.MORTGAGE, vh = (e) => e.account_type === W.LOAN || e.account_type === W.MORTGAGE, yh = (e, A) => {
|
|
8621
8621
|
const n = [
|
|
8622
8622
|
{
|
|
8623
8623
|
event: "account_details_click_account_name",
|
|
@@ -8637,7 +8637,7 @@ const gh = {
|
|
|
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(W).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 gh = {
|
|
|
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 === W.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 gh = {
|
|
|
8752
8752
|
);
|
|
8753
8753
|
let d;
|
|
8754
8754
|
(e.connectionStatus === it.Error || e.connectionStatus === it.RequiresMfa) && (d = /* @__PURE__ */ t(mh, { size: 16 }));
|
|
8755
|
-
const u = /* @__PURE__ */ l(
|
|
8755
|
+
const u = /* @__PURE__ */ l(Q, { children: [
|
|
8756
8756
|
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(
|
|
8757
8757
|
hi,
|
|
8758
8758
|
{
|
|
@@ -8775,7 +8775,7 @@ const gh = {
|
|
|
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(Q, { 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 gh = {
|
|
|
8806
8806
|
}
|
|
8807
8807
|
);
|
|
8808
8808
|
var jt = /* @__PURE__ */ ((e) => (e.EXPENSE = "expense", e.INCOME = "income", e))(jt || {});
|
|
8809
|
-
const wh = ({ activity: e }) => /* @__PURE__ */ l(
|
|
8809
|
+
const wh = ({ activity: e }) => /* @__PURE__ */ l(Q, { 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 wh = ({ activity: e }) => /* @__PURE__ */ l(W, { children: [
|
|
|
8825
8825
|
/* @__PURE__ */ t(H, {})
|
|
8826
8826
|
] }), Nr = T(wh), Sh = ({ total: e, type: A }) => {
|
|
8827
8827
|
const { cashflow: n } = L();
|
|
8828
|
-
return /* @__PURE__ */ l(
|
|
8828
|
+
return /* @__PURE__ */ l(Q, { children: [
|
|
8829
8829
|
/* @__PURE__ */ l(
|
|
8830
8830
|
SA,
|
|
8831
8831
|
{
|
|
@@ -9272,9 +9272,9 @@ const wh = ({ activity: e }) => /* @__PURE__ */ l(W, { children: [
|
|
|
9272
9272
|
)
|
|
9273
9273
|
}
|
|
9274
9274
|
)
|
|
9275
|
-
] }) : /* @__PURE__ */ l(
|
|
9275
|
+
] }) : /* @__PURE__ */ l(Q, { children: [
|
|
9276
9276
|
/* @__PURE__ */ t(XA, { amount: m, label: a.cash_and_bank }),
|
|
9277
|
-
E ? /* @__PURE__ */ l(
|
|
9277
|
+
E ? /* @__PURE__ */ l(Q, { children: [
|
|
9278
9278
|
/* @__PURE__ */ t(p, { sx: { fontSize: 25, lineHeight: 1 }, children: "+" }),
|
|
9279
9279
|
/* @__PURE__ */ t(
|
|
9280
9280
|
XA,
|
|
@@ -9474,7 +9474,7 @@ const wh = ({ activity: e }) => /* @__PURE__ */ l(W, { 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(Q, { 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 wh = ({ activity: e }) => /* @__PURE__ */ l(W, { 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(Q, { children: [
|
|
9512
9512
|
/* @__PURE__ */ t(
|
|
9513
9513
|
to,
|
|
9514
9514
|
{
|
|
@@ -10200,7 +10200,7 @@ const tn = {
|
|
|
10200
10200
|
}
|
|
10201
10201
|
return s;
|
|
10202
10202
|
}, ig = () => {
|
|
10203
|
-
const e = cA(), { selectedAccount: A } = lA(), { monthlyCategoryTotals: n } = _e(), { trends: a } = L(), r = [e.palette.chart?.chart1, e.palette.chart?.chart2], i = ag(n, A.account_type), o = rg(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 = ag(n, A.account_type), o = rg(i, A.account_type, a), s = [W.LOAN, W.MORTGAGE].includes(A.account_type);
|
|
10204
10204
|
return /* @__PURE__ */ t("div", { "data-testid": "TrendsChart", children: /* @__PURE__ */ t(
|
|
10205
10205
|
ya,
|
|
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
|
}, hg = () => {
|
|
10411
10411
|
const e = GA(), { selectedDebtChartData: A } = dt();
|
|
10412
|
-
return /* @__PURE__ */ l(
|
|
10412
|
+
return /* @__PURE__ */ l(Q, { 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(Q, { 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
|
}), yg = () => {
|
|
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(Q, { 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(Q, { children: [
|
|
10716
10716
|
/* @__PURE__ */ t(fg, { debt: A }),
|
|
10717
10717
|
/* @__PURE__ */ t(H, { variant: "inset" }),
|
|
10718
10718
|
/* @__PURE__ */ t(pg, { 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(Q, {}) : /* @__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(Q, {}),
|
|
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
|
}, Sg = () => {
|
|
10781
10781
|
const { showError: e, showCompleted: A } = dt(), [n, a] = g.useState(0);
|
|
10782
|
-
return /* @__PURE__ */ l(
|
|
10782
|
+
return /* @__PURE__ */ l(Q, { children: [
|
|
10783
10783
|
(e || A) && /* @__PURE__ */ t(wg, { 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
|
}, Ig = ({ 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(Q, {}) : /* @__PURE__ */ t(gg, {});
|
|
10820
10820
|
return /* @__PURE__ */ l(
|
|
10821
10821
|
re,
|
|
10822
10822
|
{
|
|
@@ -11130,7 +11130,7 @@ const Ng = ({
|
|
|
11130
11130
|
unnamed_label: "Unnamed Debt"
|
|
11131
11131
|
};
|
|
11132
11132
|
function Bg(e, A) {
|
|
11133
|
-
const n = e.filter((i) => i.account_type ===
|
|
11133
|
+
const n = e.filter((i) => i.account_type === W.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 === W.LOAN ? f = eA.LOANS : C.account_type === W.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(Zg, { 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(Q, { children: [
|
|
12020
12020
|
/* @__PURE__ */ t(Vg, { 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(Q, { 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(Q, { children: [
|
|
12032
12032
|
/* @__PURE__ */ t($g, { goal: e }),
|
|
12033
12033
|
/* @__PURE__ */ t(H, { variant: "inset" }),
|
|
12034
12034
|
/* @__PURE__ */ t(e1, { 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(Q, { 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(Q, { children: [
|
|
12044
12044
|
/* @__PURE__ */ t(A1, { goal: e }),
|
|
12045
12045
|
/* @__PURE__ */ t(H, {})
|
|
12046
12046
|
] }),
|
|
@@ -12217,7 +12217,7 @@ class a1 {
|
|
|
12217
12217
|
addGoal = async (A) => {
|
|
12218
12218
|
try {
|
|
12219
12219
|
const n = await this.api.addGoal(A);
|
|
12220
|
-
|
|
12220
|
+
Y(() => {
|
|
12221
12221
|
this.goals = [...this.goals, n];
|
|
12222
12222
|
});
|
|
12223
12223
|
} catch (n) {
|
|
@@ -12231,7 +12231,7 @@ class a1 {
|
|
|
12231
12231
|
const i = await this.api.addRetirementGoalAccount(r);
|
|
12232
12232
|
a.push(i);
|
|
12233
12233
|
}
|
|
12234
|
-
this.setNewRetirementGoalAccounts([]),
|
|
12234
|
+
this.setNewRetirementGoalAccounts([]), Y(() => {
|
|
12235
12235
|
this.goals = [...this.goals, n], this.retirementGoalAccounts = a;
|
|
12236
12236
|
});
|
|
12237
12237
|
} catch (n) {
|
|
@@ -12241,7 +12241,7 @@ class a1 {
|
|
|
12241
12241
|
addRetirementGoalAccount = async (A) => {
|
|
12242
12242
|
try {
|
|
12243
12243
|
const n = await this.api.addRetirementGoalAccount(A);
|
|
12244
|
-
|
|
12244
|
+
Y(() => {
|
|
12245
12245
|
this.retirementGoalAccounts = [...this.retirementGoalAccounts, n];
|
|
12246
12246
|
});
|
|
12247
12247
|
} catch (n) {
|
|
@@ -12260,7 +12260,7 @@ class a1 {
|
|
|
12260
12260
|
track_type: ee.RETIREMENT_TRACK
|
|
12261
12261
|
}))
|
|
12262
12262
|
];
|
|
12263
|
-
|
|
12263
|
+
Y(() => {
|
|
12264
12264
|
this.goals = o, this.retirementGoalAccounts = r, this.monthlyCashFlowProfile = i;
|
|
12265
12265
|
});
|
|
12266
12266
|
} catch (n) {
|
|
@@ -12269,7 +12269,7 @@ class a1 {
|
|
|
12269
12269
|
};
|
|
12270
12270
|
deleteGoal = async (A) => {
|
|
12271
12271
|
try {
|
|
12272
|
-
await this.api.removeGoal(A),
|
|
12272
|
+
await this.api.removeGoal(A), Y(() => {
|
|
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 a1 {
|
|
|
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), Y(() => {
|
|
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 a1 {
|
|
|
12294
12294
|
};
|
|
12295
12295
|
deleteRetirementGoalAccount = async (A) => {
|
|
12296
12296
|
try {
|
|
12297
|
-
await this.api.removeRetirementGoalAccount(A),
|
|
12297
|
+
await this.api.removeRetirementGoalAccount(A), Y(() => {
|
|
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 a1 {
|
|
|
12305
12305
|
reorderGoals = async (A) => {
|
|
12306
12306
|
try {
|
|
12307
12307
|
const n = await this.api.reorderGoals(A);
|
|
12308
|
-
|
|
12308
|
+
Y(() => {
|
|
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 a1 {
|
|
|
12323
12323
|
updateGoal = async (A) => {
|
|
12324
12324
|
try {
|
|
12325
12325
|
const n = await this.api.updateGoal(A);
|
|
12326
|
-
|
|
12326
|
+
Y(() => {
|
|
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 a1 {
|
|
|
12334
12334
|
updateMonthlyCashFlowProfile = async (A) => {
|
|
12335
12335
|
try {
|
|
12336
12336
|
const n = await this.api.updateMonthlyCashFlowProfile(A);
|
|
12337
|
-
|
|
12337
|
+
Y(() => {
|
|
12338
12338
|
this.monthlyCashFlowProfile = n;
|
|
12339
12339
|
});
|
|
12340
12340
|
} catch (n) {
|
|
@@ -12600,9 +12600,7 @@ class s1 {
|
|
|
12600
12600
|
});
|
|
12601
12601
|
}
|
|
12602
12602
|
setAppConfig(A) {
|
|
12603
|
-
|
|
12604
|
-
this.appConfig = A;
|
|
12605
|
-
});
|
|
12603
|
+
this.appConfig = A;
|
|
12606
12604
|
}
|
|
12607
12605
|
get helpCategories() {
|
|
12608
12606
|
const {
|
|
@@ -12613,7 +12611,7 @@ class s1 {
|
|
|
12613
12611
|
...A,
|
|
12614
12612
|
...n
|
|
12615
12613
|
},
|
|
12616
|
-
":::cli:
|
|
12614
|
+
":::cli:proff",
|
|
12617
12615
|
this.globalStore.appDataStore.appData
|
|
12618
12616
|
), console.log(this.appConfig), o1({
|
|
12619
12617
|
...A,
|
|
@@ -12703,13 +12701,13 @@ class u1 {
|
|
|
12703
12701
|
loadMerchants = async (A = "") => {
|
|
12704
12702
|
this.isLoading = !0;
|
|
12705
12703
|
const n = await this.api.getMerchants([A]);
|
|
12706
|
-
|
|
12704
|
+
Y(() => {
|
|
12707
12705
|
this.merchants = n, this.isLoading = !1;
|
|
12708
12706
|
});
|
|
12709
12707
|
};
|
|
12710
12708
|
loadMerchantByGuid = async (A) => {
|
|
12711
12709
|
const n = await this.api.getMerchantByGuid(A);
|
|
12712
|
-
|
|
12710
|
+
Y(() => this.merchant = n);
|
|
12713
12711
|
};
|
|
12714
12712
|
}
|
|
12715
12713
|
const fo = 13, h1 = (e, A) => e.filter((n) => {
|
|
@@ -12805,7 +12803,7 @@ class y1 {
|
|
|
12805
12803
|
const n = this.globalStore.accountStore.members, a = h1(A, n), i = await (await Promise.all(
|
|
12806
12804
|
a.map((o) => this.globalStore.accountStore.api.getMonthlyAccountBalances(o.guid))
|
|
12807
12805
|
)).reduce(g1, []).sort(m1);
|
|
12808
|
-
|
|
12806
|
+
Y(() => {
|
|
12809
12807
|
this.netWorthData = {
|
|
12810
12808
|
accounts: a,
|
|
12811
12809
|
monthlyAccountBalances: i
|
|
@@ -12818,7 +12816,7 @@ class y1 {
|
|
|
12818
12816
|
loadChartData = async (A) => {
|
|
12819
12817
|
try {
|
|
12820
12818
|
const { accounts: n, monthlyAccountBalances: a } = this.netWorthData, r = await p1(n, a, A), i = Fr(r);
|
|
12821
|
-
|
|
12819
|
+
Y(() => {
|
|
12822
12820
|
this.netWorthChartData = r, this.selectedData = i;
|
|
12823
12821
|
});
|
|
12824
12822
|
} catch (n) {
|
|
@@ -12841,12 +12839,12 @@ class y1 {
|
|
|
12841
12839
|
};
|
|
12842
12840
|
}
|
|
12843
12841
|
setSelectedData = (A) => {
|
|
12844
|
-
|
|
12842
|
+
Y(() => {
|
|
12845
12843
|
this.selectedData = this.netWorthChartData[A];
|
|
12846
12844
|
});
|
|
12847
12845
|
};
|
|
12848
12846
|
setHoveredData = (A) => {
|
|
12849
|
-
|
|
12847
|
+
Y(() => {
|
|
12850
12848
|
this.hoveredData = A !== null ? this.netWorthChartData[A] : void 0;
|
|
12851
12849
|
});
|
|
12852
12850
|
};
|
|
@@ -13006,7 +13004,7 @@ const E1 = ({
|
|
|
13006
13004
|
] });
|
|
13007
13005
|
}, x1 = T(D1), O1 = ({ accounts: e, name: A, icon: n }) => {
|
|
13008
13006
|
const [a, r] = g.useState(!1);
|
|
13009
|
-
return /* @__PURE__ */ l(
|
|
13007
|
+
return /* @__PURE__ */ l(Q, { children: [
|
|
13010
13008
|
/* @__PURE__ */ t(j, { sx: (i) => ({ backgroundColor: i.palette.background.paper }), children: /* @__PURE__ */ l(ae, { onClick: () => r(!a), children: [
|
|
13011
13009
|
n && /* @__PURE__ */ t(nA, { children: /* @__PURE__ */ t(B, { name: n, size: 24, sx: { mr: 12 } }) }),
|
|
13012
13010
|
/* @__PURE__ */ t(
|
|
@@ -13032,7 +13030,7 @@ const E1 = ({
|
|
|
13032
13030
|
o < e.length - 1 ? /* @__PURE__ */ t(H, { variant: "inset" }) : /* @__PURE__ */ t(H, {})
|
|
13033
13031
|
] }, i.accountName)) })
|
|
13034
13032
|
] });
|
|
13035
|
-
}, jr = ({ groupedAccounts: e }) => /* @__PURE__ */ t(
|
|
13033
|
+
}, jr = ({ groupedAccounts: e }) => /* @__PURE__ */ t(Q, { children: e.map(({ accounts: A, icon: n, name: a }) => /* @__PURE__ */ t(O1, { accounts: A, icon: n, name: a }, a)) }), _1 = ({
|
|
13036
13034
|
netWorth: e,
|
|
13037
13035
|
assets: A,
|
|
13038
13036
|
liabilities: n,
|
|
@@ -13040,7 +13038,7 @@ const E1 = ({
|
|
|
13040
13038
|
totalLiabilities: r
|
|
13041
13039
|
}) => {
|
|
13042
13040
|
const { net_worth: i } = L(), o = fe();
|
|
13043
|
-
return /* @__PURE__ */ l(
|
|
13041
|
+
return /* @__PURE__ */ l(Q, { children: [
|
|
13044
13042
|
/* @__PURE__ */ l(
|
|
13045
13043
|
N,
|
|
13046
13044
|
{
|
|
@@ -13098,7 +13096,7 @@ const E1 = ({
|
|
|
13098
13096
|
totalLosses: r
|
|
13099
13097
|
}) => {
|
|
13100
13098
|
const { net_worth: i } = L(), o = fe();
|
|
13101
|
-
return /* @__PURE__ */ l(
|
|
13099
|
+
return /* @__PURE__ */ l(Q, { children: [
|
|
13102
13100
|
/* @__PURE__ */ l(y, { alignItems: "center", justifyContent: "space-between", mb: 8, pt: 24, children: [
|
|
13103
13101
|
/* @__PURE__ */ t(p, { variant: "Small", children: Di(e?.x) }),
|
|
13104
13102
|
/* @__PURE__ */ t(p, { variant: "Body", children: i.total_change }),
|
|
@@ -13143,7 +13141,7 @@ const E1 = ({
|
|
|
13143
13141
|
] })
|
|
13144
13142
|
}
|
|
13145
13143
|
) }),
|
|
13146
|
-
n?.map((s) => /* @__PURE__ */ l(
|
|
13144
|
+
n?.map((s) => /* @__PURE__ */ l(Q, { children: [
|
|
13147
13145
|
/* @__PURE__ */ t(
|
|
13148
13146
|
j,
|
|
13149
13147
|
{
|
|
@@ -13219,7 +13217,7 @@ const E1 = ({
|
|
|
13219
13217
|
showDividerAboveDateSelector: !1,
|
|
13220
13218
|
sx: { p: v ? 0 : 48 },
|
|
13221
13219
|
title: r.net_worth,
|
|
13222
|
-
children: I && /* @__PURE__ */ l(
|
|
13220
|
+
children: I && /* @__PURE__ */ l(Q, { children: [
|
|
13223
13221
|
m && /* @__PURE__ */ t(x1, { hoveredData: c, selectedData: m }),
|
|
13224
13222
|
/* @__PURE__ */ l(
|
|
13225
13223
|
y,
|
|
@@ -13304,7 +13302,7 @@ class H1 {
|
|
|
13304
13302
|
try {
|
|
13305
13303
|
this.isLoading = !0;
|
|
13306
13304
|
const A = await this.api.getNotifications();
|
|
13307
|
-
|
|
13305
|
+
Y(() => {
|
|
13308
13306
|
this.notifications = A, this.recentNotifications = R1(A), this.isLoading = !1;
|
|
13309
13307
|
});
|
|
13310
13308
|
} catch (A) {
|
|
@@ -13473,7 +13471,7 @@ const Fn = ({
|
|
|
13473
13471
|
onClick: n,
|
|
13474
13472
|
primaryText: a,
|
|
13475
13473
|
secondaryText: r
|
|
13476
|
-
}) => /* @__PURE__ */ l(
|
|
13474
|
+
}) => /* @__PURE__ */ l(Q, { children: [
|
|
13477
13475
|
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ l(ae, { onClick: n, children: [
|
|
13478
13476
|
/* @__PURE__ */ t(J, { primary: a, secondary: r }),
|
|
13479
13477
|
e
|
|
@@ -13495,7 +13493,7 @@ const Fn = ({
|
|
|
13495
13493
|
() => a(!1)
|
|
13496
13494
|
);
|
|
13497
13495
|
};
|
|
13498
|
-
return /* @__PURE__ */ l(
|
|
13496
|
+
return /* @__PURE__ */ l(Q, { children: [
|
|
13499
13497
|
/* @__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 }) }),
|
|
13500
13498
|
/* @__PURE__ */ t(
|
|
13501
13499
|
Fn,
|
|
@@ -13771,7 +13769,7 @@ const Fn = ({
|
|
|
13771
13769
|
mainMessage: o.statusName,
|
|
13772
13770
|
secondaryMessage: o.title
|
|
13773
13771
|
};
|
|
13774
|
-
return /* @__PURE__ */ l(
|
|
13772
|
+
return /* @__PURE__ */ l(Q, { children: [
|
|
13775
13773
|
/* @__PURE__ */ t(SA, { sx: { mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(p, { bold: !0, component: "h2", variant: "XSmall", children: r.connection_status }) }),
|
|
13776
13774
|
/* @__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: [
|
|
13777
13775
|
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(VA, { backingSx: { backgroundColor: s.color, borderRadius: 1 }, size: 32, children: s.icon }) }),
|
|
@@ -13782,7 +13780,7 @@ const Fn = ({
|
|
|
13782
13780
|
J,
|
|
13783
13781
|
{
|
|
13784
13782
|
primary: s.mainMessage,
|
|
13785
|
-
secondary: s.secondaryMessage && /* @__PURE__ */ l(
|
|
13783
|
+
secondary: s.secondaryMessage && /* @__PURE__ */ l(Q, { children: [
|
|
13786
13784
|
s.secondaryMessage,
|
|
13787
13785
|
" ",
|
|
13788
13786
|
/* @__PURE__ */ t(p, { bold: !0, sx: { color: "action.active" }, variant: "XSmall", children: s.ctaCopy })
|
|
@@ -13792,7 +13790,7 @@ const Fn = ({
|
|
|
13792
13790
|
/* @__PURE__ */ t(B, { name: "chevron_right" })
|
|
13793
13791
|
] }) }),
|
|
13794
13792
|
/* @__PURE__ */ t(H, { sx: { ml: a.is_manual || !a.institution_url ? 0 : 24 } }),
|
|
13795
|
-
!a.is_manual && a.institution_url && /* @__PURE__ */ l(
|
|
13793
|
+
!a.is_manual && a.institution_url && /* @__PURE__ */ l(Q, { children: [
|
|
13796
13794
|
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ l(ae, { component: "a", href: a.institution_url, target: "_blank", children: [
|
|
13797
13795
|
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(
|
|
13798
13796
|
VA,
|
|
@@ -13918,7 +13916,7 @@ const Fn = ({
|
|
|
13918
13916
|
const e = window.app?.config, { onEvent: A } = $(), { selectedAccount: n } = lA(), { accounts: a } = L(), r = yh(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(
|
|
13919
13917
|
(h) => i || n[h.name] || n[h.name] === 0
|
|
13920
13918
|
);
|
|
13921
|
-
return /* @__PURE__ */ l(
|
|
13919
|
+
return /* @__PURE__ */ l(Q, { children: [
|
|
13922
13920
|
u.map((h) => {
|
|
13923
13921
|
const m = n[h.name] || n[h.name] === 0, C = u.indexOf(h) === u.length - 1, f = /* @__PURE__ */ t(
|
|
13924
13922
|
J,
|
|
@@ -13928,7 +13926,7 @@ const Fn = ({
|
|
|
13928
13926
|
secondary: /* @__PURE__ */ t(p, { bold: !0, sx: { fontSize: 15 }, children: m ? h.valueFormatter(n[h.name]) : h.placeholder })
|
|
13929
13927
|
}
|
|
13930
13928
|
);
|
|
13931
|
-
return /* @__PURE__ */ t(g.Fragment, { children: i ? /* @__PURE__ */ l(
|
|
13929
|
+
return /* @__PURE__ */ t(g.Fragment, { children: i ? /* @__PURE__ */ l(Q, { children: [
|
|
13932
13930
|
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper", px: 0 }, children: /* @__PURE__ */ l(
|
|
13933
13931
|
ae,
|
|
13934
13932
|
{
|
|
@@ -13942,7 +13940,7 @@ const Fn = ({
|
|
|
13942
13940
|
}
|
|
13943
13941
|
) }),
|
|
13944
13942
|
/* @__PURE__ */ t(H, { sx: { ml: C ? 0 : 24 } })
|
|
13945
|
-
] }) : m && /* @__PURE__ */ l(
|
|
13943
|
+
] }) : m && /* @__PURE__ */ l(Q, { children: [
|
|
13946
13944
|
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper", px: 24 }, children: f }),
|
|
13947
13945
|
/* @__PURE__ */ t(H, { sx: { ml: C ? 0 : 24 } })
|
|
13948
13946
|
] }) }, h.name);
|
|
@@ -13969,7 +13967,7 @@ const Fn = ({
|
|
|
13969
13967
|
o && e(1);
|
|
13970
13968
|
}, [o]), !o) return;
|
|
13971
13969
|
const s = vo(a, i);
|
|
13972
|
-
return /* @__PURE__ */ l(
|
|
13970
|
+
return /* @__PURE__ */ l(Q, { children: [
|
|
13973
13971
|
/* @__PURE__ */ t(
|
|
13974
13972
|
gA,
|
|
13975
13973
|
{
|
|
@@ -14026,7 +14024,7 @@ const Fn = ({
|
|
|
14026
14024
|
dateRange: { start: Xs(js(), 90), end: Us() },
|
|
14027
14025
|
accounts: [a.guid]
|
|
14028
14026
|
});
|
|
14029
|
-
}, [a]), g.useEffect(() => n(G.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ l(
|
|
14027
|
+
}, [a]), g.useEffect(() => n(G.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ l(Q, { children: [
|
|
14030
14028
|
/* @__PURE__ */ t(tt, { onClick: A }),
|
|
14031
14029
|
s && /* @__PURE__ */ t(
|
|
14032
14030
|
re,
|
|
@@ -14041,7 +14039,7 @@ const Fn = ({
|
|
|
14041
14039
|
] });
|
|
14042
14040
|
}, am = T(nm), rm = () => {
|
|
14043
14041
|
const [e, A] = g.useState(0), { accounts: n } = L();
|
|
14044
|
-
return /* @__PURE__ */ l(
|
|
14042
|
+
return /* @__PURE__ */ l(Q, { children: [
|
|
14045
14043
|
/* @__PURE__ */ t(tm, { setTabValue: A }),
|
|
14046
14044
|
/* @__PURE__ */ l(
|
|
14047
14045
|
_A,
|
|
@@ -14221,7 +14219,7 @@ const Fn = ({
|
|
|
14221
14219
|
onBackClick: e,
|
|
14222
14220
|
sx: A,
|
|
14223
14221
|
title: c.title,
|
|
14224
|
-
children: r ? /* @__PURE__ */ t(Ve, {}) : /* @__PURE__ */ l(
|
|
14222
|
+
children: r ? /* @__PURE__ */ t(Ve, {}) : /* @__PURE__ */ l(Q, { children: [
|
|
14225
14223
|
/* @__PURE__ */ l(N, { sx: { px: h ? 24 : 12 }, children: [
|
|
14226
14224
|
u.length < 1 && /* @__PURE__ */ t(p, { display: "flex", justifyContent: "center", my: 24, children: c.no_accounts }),
|
|
14227
14225
|
/* @__PURE__ */ t(om, {})
|
|
@@ -14792,32 +14790,32 @@ class fm {
|
|
|
14792
14790
|
};
|
|
14793
14791
|
get cashAccounts() {
|
|
14794
14792
|
return this.accounts.filter(
|
|
14795
|
-
(A) => A.account_type ===
|
|
14793
|
+
(A) => A.account_type === W.CASH || A.account_type === W.CHECKING || A.account_type === W.PREPAID || A.account_type === W.SAVINGS || A.account_type === W.CHECKING_LINE_OF_CREDIT
|
|
14796
14794
|
);
|
|
14797
14795
|
}
|
|
14798
14796
|
get checkingAccounts() {
|
|
14799
|
-
return this.accounts.filter((A) => A.account_type ===
|
|
14797
|
+
return this.accounts.filter((A) => A.account_type === W.CHECKING);
|
|
14800
14798
|
}
|
|
14801
14799
|
get debtAccounts() {
|
|
14802
14800
|
return this.accounts.filter(
|
|
14803
|
-
(A) => A.account_type ===
|
|
14801
|
+
(A) => A.account_type === W.CREDIT_CARD || A.account_type === W.LOAN || A.account_type === W.MORTGAGE || A.account_type === W.LINE_OF_CREDIT || A.account_type === W.CHECKING_LINE_OF_CREDIT
|
|
14804
14802
|
);
|
|
14805
14803
|
}
|
|
14806
14804
|
get investmentAccounts() {
|
|
14807
14805
|
return this.accounts.filter(
|
|
14808
|
-
(A) => A.account_type ===
|
|
14806
|
+
(A) => A.account_type === W.INVESTMENT
|
|
14809
14807
|
);
|
|
14810
14808
|
}
|
|
14811
14809
|
get cashBalance() {
|
|
14812
14810
|
return this.cashAccounts.reduce((A, n) => A + (n?.balance || 0), 0);
|
|
14813
14811
|
}
|
|
14814
14812
|
get savingsAccounts() {
|
|
14815
|
-
return this.accounts.filter((A) => A.account_type ===
|
|
14813
|
+
return this.accounts.filter((A) => A.account_type === W.SAVINGS);
|
|
14816
14814
|
}
|
|
14817
14815
|
addAccount = async (A) => {
|
|
14818
14816
|
try {
|
|
14819
14817
|
const n = await this.api.createAccount(A);
|
|
14820
|
-
|
|
14818
|
+
Y(() => {
|
|
14821
14819
|
this.accounts = [...this.accounts, n];
|
|
14822
14820
|
});
|
|
14823
14821
|
} catch (n) {
|
|
@@ -14845,7 +14843,7 @@ class fm {
|
|
|
14845
14843
|
await this.loadMembers();
|
|
14846
14844
|
try {
|
|
14847
14845
|
const A = await this.api.getAccounts();
|
|
14848
|
-
|
|
14846
|
+
Y(() => {
|
|
14849
14847
|
this.accounts = this.sortAccounts(this.augmentAccounts(A));
|
|
14850
14848
|
});
|
|
14851
14849
|
} catch (A) {
|
|
@@ -14855,7 +14853,7 @@ class fm {
|
|
|
14855
14853
|
loadInstitutions = async () => {
|
|
14856
14854
|
try {
|
|
14857
14855
|
const A = await this.api.getInstitutions();
|
|
14858
|
-
|
|
14856
|
+
Y(() => {
|
|
14859
14857
|
this.institutions = A;
|
|
14860
14858
|
});
|
|
14861
14859
|
} catch (A) {
|
|
@@ -14865,7 +14863,7 @@ class fm {
|
|
|
14865
14863
|
loadMembers = async () => {
|
|
14866
14864
|
try {
|
|
14867
14865
|
const A = await this.api.getMembers();
|
|
14868
|
-
|
|
14866
|
+
Y(() => {
|
|
14869
14867
|
this.members = A;
|
|
14870
14868
|
});
|
|
14871
14869
|
} catch (A) {
|
|
@@ -14875,7 +14873,7 @@ class fm {
|
|
|
14875
14873
|
mergeAccounts = async (A) => {
|
|
14876
14874
|
try {
|
|
14877
14875
|
const n = await this.api.mergeAccounts(A), a = n[Object.keys(n)[0]];
|
|
14878
|
-
|
|
14876
|
+
Y(() => {
|
|
14879
14877
|
const r = this.accounts.findIndex((o) => o.guid === A[1]);
|
|
14880
14878
|
this.accounts.splice(r, 1);
|
|
14881
14879
|
const i = this.accounts.findIndex((o) => o.guid === A[0]);
|
|
@@ -14898,7 +14896,7 @@ class fm {
|
|
|
14898
14896
|
};
|
|
14899
14897
|
removeAccount = async (A) => {
|
|
14900
14898
|
try {
|
|
14901
|
-
await this.api.deleteAccount(A),
|
|
14899
|
+
await this.api.deleteAccount(A), Y(() => {
|
|
14902
14900
|
const n = this.accounts.findIndex((a) => a.guid === A);
|
|
14903
14901
|
this.accounts.splice(n, 1);
|
|
14904
14902
|
});
|
|
@@ -14909,7 +14907,7 @@ class fm {
|
|
|
14909
14907
|
updateAccount = async (A) => {
|
|
14910
14908
|
try {
|
|
14911
14909
|
const n = await this.api.updateAccount(A);
|
|
14912
|
-
|
|
14910
|
+
Y(() => {
|
|
14913
14911
|
const a = this.accounts.findIndex(
|
|
14914
14912
|
(r) => r.guid === n.guid
|
|
14915
14913
|
);
|
|
@@ -15870,7 +15868,7 @@ const Wm = () => {
|
|
|
15870
15868
|
onTopicSelect: i
|
|
15871
15869
|
}) => {
|
|
15872
15870
|
const [o, s] = EA(null), c = Math.ceil(A.length / 2);
|
|
15873
|
-
return /* @__PURE__ */ l(
|
|
15871
|
+
return /* @__PURE__ */ l(Q, { children: [
|
|
15874
15872
|
/* @__PURE__ */ l(QA, { container: !0, sx: { alignItems: "center", mb: 24 }, children: [
|
|
15875
15873
|
/* @__PURE__ */ l(QA, { item: !0, md: 6, sm: 6, xs: 12, children: [
|
|
15876
15874
|
/* @__PURE__ */ t($A, { children: a }),
|
|
@@ -16067,7 +16065,7 @@ const Wm = () => {
|
|
|
16067
16065
|
] });
|
|
16068
16066
|
}, wo = ({ Icon: e, label: A, onClick: n, itemCount: a }) => {
|
|
16069
16067
|
const r = fe();
|
|
16070
|
-
return /* @__PURE__ */ l(
|
|
16068
|
+
return /* @__PURE__ */ l(Q, { children: [
|
|
16071
16069
|
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ l(ae, { onClick: n, children: [
|
|
16072
16070
|
/* @__PURE__ */ t(e, { sx: { fontSize: 22, marginRight: "16px" } }),
|
|
16073
16071
|
/* @__PURE__ */ t(
|
|
@@ -16100,7 +16098,7 @@ const Wm = () => {
|
|
|
16100
16098
|
] });
|
|
16101
16099
|
}, Y8 = ({ content: e, manageAccountsStore: A }) => {
|
|
16102
16100
|
const { groupedAccounts: n, toggleAccount: a } = A, [r, i] = g.useState(!1);
|
|
16103
|
-
return /* @__PURE__ */ l(
|
|
16101
|
+
return /* @__PURE__ */ l(Q, { children: [
|
|
16104
16102
|
/* @__PURE__ */ t(
|
|
16105
16103
|
wo,
|
|
16106
16104
|
{
|
|
@@ -16531,7 +16529,7 @@ const Io = ({
|
|
|
16531
16529
|
}, K = (q, F) => {
|
|
16532
16530
|
a(q), F && E(!1), m(q.length > 1 ? e.insights_unhidden : e.insight_unhidden);
|
|
16533
16531
|
};
|
|
16534
|
-
return /* @__PURE__ */ l(
|
|
16532
|
+
return /* @__PURE__ */ l(Q, { children: [
|
|
16535
16533
|
/* @__PURE__ */ t(
|
|
16536
16534
|
wo,
|
|
16537
16535
|
{
|
|
@@ -16685,7 +16683,7 @@ class cC {
|
|
|
16685
16683
|
};
|
|
16686
16684
|
loadCopy = async () => {
|
|
16687
16685
|
const A = await this.copyApi.getGlobalCopy(this.namespace, this.translationKey);
|
|
16688
|
-
|
|
16686
|
+
Y(() => {
|
|
16689
16687
|
this.copyObject = A[this.translationKey];
|
|
16690
16688
|
});
|
|
16691
16689
|
};
|
|
@@ -16881,7 +16879,7 @@ class gC {
|
|
|
16881
16879
|
this.copyStore = new cC(), this.insightsMicroWidgetStore = new hC(), De(this);
|
|
16882
16880
|
}
|
|
16883
16881
|
initialize = async (A, n, a) => {
|
|
16884
|
-
await this.copyStore.initialize(A, n), await this.insightsMicroWidgetStore.initialize(A, n, a), this.session = await Ic(A, n, "1.0.0", "Micro Insights Carousel"),
|
|
16882
|
+
await this.copyStore.initialize(A, n), await this.insightsMicroWidgetStore.initialize(A, n, a), this.session = await Ic(A, n, "1.0.0", "Micro Insights Carousel"), Y(() => {
|
|
16885
16883
|
this.isInitialized = !0;
|
|
16886
16884
|
});
|
|
16887
16885
|
};
|
|
@@ -19402,7 +19400,7 @@ export {
|
|
|
19402
19400
|
Oc as AccountIconVariants,
|
|
19403
19401
|
fm as AccountStore,
|
|
19404
19402
|
Dc as AccountSubType,
|
|
19405
|
-
|
|
19403
|
+
W as AccountType,
|
|
19406
19404
|
ma as AccountTypeName,
|
|
19407
19405
|
F8 as AccountsMiniWidget,
|
|
19408
19406
|
G8 as AccountsWidget,
|