@mx-cartographer/experiences 6.2.0 → 6.2.1-alpha.al2
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 +222 -216
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -25,7 +25,7 @@ import Kr from "numeral";
|
|
25
25
|
import J from "@mui/material/Button";
|
26
26
|
import oi from "@mui/material/Tooltip";
|
27
27
|
import Ke from "@mui/material/IconButton";
|
28
|
-
import
|
28
|
+
import Xa from "@mui/material/FormControlLabel";
|
29
29
|
import Y from "@mui/material/ListItem";
|
30
30
|
import de from "@mui/material/ListItemButton";
|
31
31
|
import ae from "@mui/material/ListItemText";
|
@@ -61,19 +61,19 @@ import { endOfToday as In } from "date-fns/endOfToday";
|
|
61
61
|
import { endOfYear as jr } from "date-fns/endOfYear";
|
62
62
|
import { startOfYear as Xr } from "date-fns/startOfYear";
|
63
63
|
import { subDays as dt } from "date-fns/subDays";
|
64
|
-
import { subYears as
|
64
|
+
import { subYears as qa } from "date-fns/subYears";
|
65
65
|
import Hl from "@mui/material/ButtonGroup";
|
66
66
|
import Le from "@mui/material/Tab";
|
67
67
|
import Dt from "@mui/material/Tabs";
|
68
68
|
import aa from "@mui/material/ToggleButton";
|
69
|
-
import
|
69
|
+
import cr from "@mui/material/ToggleButtonGroup";
|
70
70
|
import $l from "@mui/material/Dialog";
|
71
71
|
import bs from "@mui/material/DialogContent";
|
72
72
|
import Fl from "@mui/icons-material/ArrowBackOutlined";
|
73
73
|
import wn from "@mui/material/CardHeader";
|
74
74
|
import { Icon as Rt, AccountBalance as Wl, ChevronRight as Et, Payments as Ul, NoteStack as Vl, Person as Kl, CheckCircle as ra, ExpandLess as zl, ExpandMore as Yl, AddBox as ys, Star as jl, Settings as Xl, Delete as ql, Schedule as Zl, MonetizationOn as Ql, Cancel as Es, Add as Jl } from "@mxenabled/mx-icons";
|
75
75
|
import { ConnectWidget as ed, ConnectionsWidget as td } from "@mxenabled/web-widget-sdk";
|
76
|
-
import
|
76
|
+
import lr from "@mui/material/CircularProgress";
|
77
77
|
import { v4 as nd } from "uuid";
|
78
78
|
import zi from "@mui/material/InputAdornment";
|
79
79
|
import id from "@mui/material/Radio";
|
@@ -96,11 +96,11 @@ import Wt from "@mui/material/Skeleton";
|
|
96
96
|
import { isAfter as Zt } from "date-fns/isAfter";
|
97
97
|
import { subWeeks as Jr } from "date-fns/subWeeks";
|
98
98
|
import { formatISO as si } from "date-fns/formatISO";
|
99
|
+
import { isValid as la } from "date-fns/isValid";
|
99
100
|
import { AdapterDateFns as gn } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
100
|
-
import { DatePicker as
|
101
|
+
import { DatePicker as da } from "@mui/x-date-pickers";
|
101
102
|
import { LocalizationProvider as Nn } from "@mui/x-date-pickers/LocalizationProvider";
|
102
103
|
import rt from "@mui/material/TextField";
|
103
|
-
import { isValid as lr } from "date-fns/isValid";
|
104
104
|
import { subQuarters as Ts } from "date-fns/subQuarters";
|
105
105
|
import { getMonth as Zn } from "date-fns/getMonth";
|
106
106
|
import { DateCalendar as ci } from "@mui/x-date-pickers/DateCalendar";
|
@@ -109,7 +109,7 @@ import Ti from "@mui/material/Accordion";
|
|
109
109
|
import Ai from "@mui/material/AccordionDetails";
|
110
110
|
import Ii from "@mui/material/AccordionSummary";
|
111
111
|
import md from "@mui/material/Breadcrumbs";
|
112
|
-
import
|
112
|
+
import ua from "@mui/material/MenuItem";
|
113
113
|
import pd from "@mui/material/RadioGroup";
|
114
114
|
import xi from "@mui/icons-material/DeleteOutlined";
|
115
115
|
import Yi from "@mui/icons-material/Cancel";
|
@@ -124,14 +124,14 @@ import dr from "@mui/material/Badge";
|
|
124
124
|
import { PickersDay as Is } from "@mui/x-date-pickers/PickersDay";
|
125
125
|
import Td from "@mui/icons-material/AccessTimeFilled";
|
126
126
|
import Ad from "@mui/icons-material/MonetizationOn";
|
127
|
-
import
|
127
|
+
import _a from "@mui/icons-material/CheckCircle";
|
128
128
|
import { getDate as Qn } from "date-fns/getDate";
|
129
129
|
import zt from "@mui/material/Unstable_Grid2";
|
130
|
-
import
|
130
|
+
import ha from "@mui/material/Collapse";
|
131
131
|
import xs from "@mui/material/CardActionArea";
|
132
132
|
import Id from "@mui/icons-material/DragHandle";
|
133
|
-
import
|
134
|
-
import
|
133
|
+
import Za from "@mui/material/AlertTitle";
|
134
|
+
import ga from "@mui/icons-material/Error";
|
135
135
|
import xd from "@mui/material/Chip";
|
136
136
|
import vd from "@mui/icons-material/EditOutlined";
|
137
137
|
import { isToday as ur } from "date-fns/isToday";
|
@@ -621,7 +621,7 @@ const Z2 = {
|
|
621
621
|
N.CREDIT_CARD_PAYMENT,
|
622
622
|
N.MORTGAGE_PAYMENT,
|
623
623
|
N.AUTO_PAYMENT
|
624
|
-
],
|
624
|
+
], ma = {
|
625
625
|
// Top-level categories
|
626
626
|
[N.AUTO_AND_TRANSPORT]: "Auto & Transport",
|
627
627
|
[N.BILLS_AND_UTILITIES]: "Bills & Utilities",
|
@@ -835,14 +835,14 @@ const hn = 44, ao = (e, n) => e.find((i) => i.guid === n), Xd = (e, n) => e.find
|
|
835
835
|
}, nE = (e, n) => {
|
836
836
|
const i = e.find((a) => a.guid === n);
|
837
837
|
return i ? i.guid === N.INCOME || i.parent_guid === N.INCOME : !1;
|
838
|
-
},
|
838
|
+
}, pa = (e) => {
|
839
839
|
const n = ti(e);
|
840
840
|
let i = Ei(e, n);
|
841
841
|
for (; Te(i, le()); )
|
842
842
|
i = qn(i, 1);
|
843
843
|
return i;
|
844
844
|
}, Gs = (e) => {
|
845
|
-
const n =
|
845
|
+
const n = pa(e);
|
846
846
|
return qn(n, 1);
|
847
847
|
}, qi = (e) => {
|
848
848
|
let n = Vi(le(), e.getDate());
|
@@ -850,7 +850,7 @@ const hn = 44, ao = (e, n) => e.find((i) => i.guid === n), Xd = (e, n) => e.find
|
|
850
850
|
n = gt(n, 1);
|
851
851
|
return n;
|
852
852
|
}, Ps = (e) => {
|
853
|
-
const n =
|
853
|
+
const n = pa(e);
|
854
854
|
return gt(n, 1);
|
855
855
|
}, pr = (e) => {
|
856
856
|
let n = Sn(e, 1);
|
@@ -962,11 +962,11 @@ const P = (e, n, i) => {
|
|
962
962
|
default:
|
963
963
|
return Xi.USD;
|
964
964
|
}
|
965
|
-
},
|
965
|
+
}, Qa = (e) => e != null && e !== "" && isFinite(e), Jd = {
|
966
966
|
style: "percent",
|
967
967
|
minimumFractionDigits: 2,
|
968
968
|
maximumFractionDigits: 2
|
969
|
-
},
|
969
|
+
}, Ca = (e, n = Jd) => Qa(e) ? new Intl.NumberFormat(Pn(), n).format(Number(e)) : e, eu = (e) => new Intl.PluralRules(Pn(), e), Fs = (e, n = { type: "ordinal" }, i = {
|
970
970
|
one: "st",
|
971
971
|
two: "nd",
|
972
972
|
few: "rd",
|
@@ -1168,7 +1168,7 @@ class co {
|
|
1168
1168
|
updateScheduledPayment = async (n) => this.fetchInstance.put(`${G.SCHEDULED_PAYMENTS}/${n.guid}`, n).then((i) => i.scheduled_payment);
|
1169
1169
|
deleteScheduledPayment = async (n) => this.fetchInstance.delete(`${G.SCHEDULED_PAYMENTS}/${n}`).then((i) => i);
|
1170
1170
|
}
|
1171
|
-
class
|
1171
|
+
class Pa {
|
1172
1172
|
fetchInstance;
|
1173
1173
|
constructor(n, i) {
|
1174
1174
|
this.fetchInstance = new tt(n, i);
|
@@ -1184,7 +1184,7 @@ class lo {
|
|
1184
1184
|
}
|
1185
1185
|
requestWidgetUrl = async (n) => this.fetchInstance.post(G.WIDGET_URLS, n).then((i) => i.widget_url);
|
1186
1186
|
}
|
1187
|
-
const
|
1187
|
+
const Ba = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}), nu = (e) => e.reduce((n, i) => {
|
1188
1188
|
const a = _r[i.account_type], r = {
|
1189
1189
|
accountNumber: i.account_number,
|
1190
1190
|
name: i.name || i.feed_name,
|
@@ -1268,7 +1268,7 @@ const Pa = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
1268
1268
|
},
|
1269
1269
|
children: [
|
1270
1270
|
/* @__PURE__ */ t(Y, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(
|
1271
|
-
|
1271
|
+
Xa,
|
1272
1272
|
{
|
1273
1273
|
control: /* @__PURE__ */ t(
|
1274
1274
|
Ki,
|
@@ -1339,7 +1339,7 @@ const Pa = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
1339
1339
|
disableGutters: !0,
|
1340
1340
|
disablePadding: !0,
|
1341
1341
|
children: /* @__PURE__ */ t(
|
1342
|
-
|
1342
|
+
Xa,
|
1343
1343
|
{
|
1344
1344
|
control: /* @__PURE__ */ t(
|
1345
1345
|
Ki,
|
@@ -1435,10 +1435,10 @@ const iu = (e, n) => {
|
|
1435
1435
|
variant: c = "outlined"
|
1436
1436
|
}) => {
|
1437
1437
|
const { isMobile: d } = xe(), [_, u] = g.useState(null), [h, m] = g.useState(
|
1438
|
-
|
1438
|
+
Ba(e, r)
|
1439
1439
|
);
|
1440
1440
|
g.useEffect(() => {
|
1441
|
-
m(
|
1441
|
+
m(Ba(e, r));
|
1442
1442
|
}, [e, r]);
|
1443
1443
|
const C = (E) => {
|
1444
1444
|
u(E.currentTarget);
|
@@ -1488,7 +1488,7 @@ const iu = (e, n) => {
|
|
1488
1488
|
}), m(x);
|
1489
1489
|
},
|
1490
1490
|
onCancelClick: () => {
|
1491
|
-
m(
|
1491
|
+
m(Ba(e, r)), f();
|
1492
1492
|
},
|
1493
1493
|
onConnectAccountClick: a,
|
1494
1494
|
onFilterClick: () => {
|
@@ -2253,7 +2253,7 @@ const bu = ({
|
|
2253
2253
|
if (!n)
|
2254
2254
|
throw new Error(`${e}() must be used within the GlobalDataContext`);
|
2255
2255
|
return n;
|
2256
|
-
}, ve = () => je("useAccountStore").globalStore.accountStore,
|
2256
|
+
}, ve = () => je("useAccountStore").globalStore.accountStore, fa = () => je("useAppConfig").globalStore.appDataStore.appConfig, fr = () => je("useAnalyticsStore").globalStore.analyticsStore, st = () => je("useBudgetsStore").globalStore.budgetsStore, br = () => je("useCashflowStore").globalStore.cashflowStore, We = () => je("useCategoryStore").globalStore.categoryStore, Ys = () => je("useConnectStore").globalStore.connectStore, ba = () => je("useDebtsStore").globalStore.debtsStore, ya = () => je("useGlobalStore").globalStore, ce = () => je("useGlobalUiStore").globalStore.globalUiStore, I = () => je("globalCopyStore").globalStore.copyStore.copy, nt = () => je("useGoalStore").globalStore.goalStore, yr = () => je("useHelpStore").globalStore.helpStore, js = () => je("useHoldingStore").globalStore.holdingStore, Nu = () => je("useMerchantStore").globalStore.merchantStore, Du = () => je("useNetWorthStore").globalStore.netWorthStore, Xs = () => je("useNotificationStore").globalStore.notificationStore, Qe = () => je("useRecurringActivityStore").globalStore.recurringActivityStore, Pt = () => je("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, Bt = () => je("useSettingsStore").globalStore.settingsStore, Ce = () => je("useTransactionStore").globalStore.transactionStore, dn = () => je("useUserStore").globalStore.userStore, V = () => ({ onEvent: je().onEvent }), lE = () => ({ onPageView: je().onPageView }), Ru = (e = "useWidgetContainerContext") => {
|
2257
2257
|
const n = g.useContext(Ks);
|
2258
2258
|
if (!n)
|
2259
2259
|
throw new Error(`${e}() must be used within the WidgetContainerContext`);
|
@@ -2460,18 +2460,18 @@ const bu = ({
|
|
2460
2460
|
const se = $e(String(E)).guid;
|
2461
2461
|
se && a?.(se);
|
2462
2462
|
}, Re = (se) => {
|
2463
|
-
const Be = String(se?.seriesId), Fe = $e(Be).guid, _n = Pe.find((di) => di.id === Be),
|
2464
|
-
if (
|
2463
|
+
const Be = String(se?.seriesId), Fe = $e(Be).guid, _n = Pe.find((di) => di.id === Be), Oa = _n && se?.dataIndex !== void 0, La = _n && se?.dataIndex === void 0;
|
2464
|
+
if (Oa)
|
2465
2465
|
f({
|
2466
2466
|
hoveredSeriesId: Be,
|
2467
2467
|
hoveredAreaData: null,
|
2468
2468
|
isAreaHovered: !1,
|
2469
2469
|
cursorPos: x
|
2470
2470
|
}), n?.(Fe);
|
2471
|
-
else if (
|
2472
|
-
const di = _n?.data.map((
|
2473
|
-
x: H[
|
2474
|
-
y:
|
2471
|
+
else if (La) {
|
2472
|
+
const di = _n?.data.map((Ma, ka) => ({
|
2473
|
+
x: H[ka],
|
2474
|
+
y: Ma
|
2475
2475
|
})) ?? [];
|
2476
2476
|
f({
|
2477
2477
|
hoveredSeriesId: Be,
|
@@ -2818,7 +2818,7 @@ const bu = ({
|
|
2818
2818
|
if (m === i.dateRangePickerCopy.dateRangeThisMonth)
|
2819
2819
|
Z[0] = Se ? jt(we, 1) : gt(we, 1), Z[1] = ze(Se ? jt(re, 1) : gt(re, 1));
|
2820
2820
|
else if (m === i.dateRangePickerCopy.dateRangeYTD || m === i.dateRangePickerCopy.dateRangeLastYear)
|
2821
|
-
Z[0] = Se ?
|
2821
|
+
Z[0] = Se ? qa(Xr(we), 1) : ei(Xr(we), 1), Z[1] = Se ? qa(jr(we), 1) : ei(jr(we), 1);
|
2822
2822
|
else {
|
2823
2823
|
const Pe = Bl(re, we);
|
2824
2824
|
Z[0] = W === "previous" ? dt(we, Pe) : Lt(we, Pe), Z[1] = W === "previous" ? dt(re, Pe) : Lt(re, Pe);
|
@@ -2924,7 +2924,7 @@ const bu = ({
|
|
2924
2924
|
}
|
2925
2925
|
),
|
2926
2926
|
s === "timeframebuttons" && /* @__PURE__ */ t(
|
2927
|
-
|
2927
|
+
cr,
|
2928
2928
|
{
|
2929
2929
|
color: n,
|
2930
2930
|
exclusive: !0,
|
@@ -3222,7 +3222,7 @@ const Dn = ({
|
|
3222
3222
|
}, ue = ({ height: e = 250, label: n = "", size: i = 32 }) => {
|
3223
3223
|
const a = Ct();
|
3224
3224
|
return /* @__PURE__ */ l(y, { alignItems: "center", gap: a.Spacing.XLarge, height: e, justifyContent: "center", children: [
|
3225
|
-
/* @__PURE__ */ t(
|
3225
|
+
/* @__PURE__ */ t(lr, { size: i }),
|
3226
3226
|
n && /* @__PURE__ */ t(p, { children: n })
|
3227
3227
|
] });
|
3228
3228
|
}, $u = ({
|
@@ -3400,7 +3400,7 @@ const Dn = ({
|
|
3400
3400
|
width: "100%"
|
3401
3401
|
},
|
3402
3402
|
children: /* @__PURE__ */ l(y, { alignItems: "center", direction: "column", justifyContent: "center", sx: { height: "100%" }, children: [
|
3403
|
-
e === Gn.Loading && /* @__PURE__ */ t(
|
3403
|
+
e === Gn.Loading && /* @__PURE__ */ t(lr, { color: "primary", size: 48 }),
|
3404
3404
|
/* @__PURE__ */ t(
|
3405
3405
|
p,
|
3406
3406
|
{
|
@@ -3619,7 +3619,7 @@ const mo = "connect_widget", po = "connections_widget", Wu = ({
|
|
3619
3619
|
py: 4,
|
3620
3620
|
sx: { "&:hover": { borderColor: o.palette.action.active }, ...i },
|
3621
3621
|
children: /* @__PURE__ */ t(oi, { title: a, children: /* @__PURE__ */ t(
|
3622
|
-
|
3622
|
+
Xa,
|
3623
3623
|
{
|
3624
3624
|
control: /* @__PURE__ */ t(
|
3625
3625
|
id,
|
@@ -3734,7 +3734,7 @@ const mo = "connect_widget", po = "connections_widget", Wu = ({
|
|
3734
3734
|
)
|
3735
3735
|
}
|
3736
3736
|
), Js = ({ description: e, label: n, title: i }) => {
|
3737
|
-
const { config: a } =
|
3737
|
+
const { config: a } = fa(), [r, o] = g.useState(!1);
|
3738
3738
|
if (a.show_connections_widget_in_master)
|
3739
3739
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
3740
3740
|
/* @__PURE__ */ l(kt, { sx: { m: 24 }, children: [
|
@@ -3898,7 +3898,7 @@ const mo = "connect_widget", po = "connections_widget", Wu = ({
|
|
3898
3898
|
children: e
|
3899
3899
|
}
|
3900
3900
|
);
|
3901
|
-
},
|
3901
|
+
}, Ja = ({
|
3902
3902
|
isChecked: e,
|
3903
3903
|
isDisabled: n = !1,
|
3904
3904
|
onClick: i,
|
@@ -4189,10 +4189,10 @@ const bo = (e, n) => !e && !n ? 0 : !e && n ? 101 : n / e * 100, yo = (e, n) =>
|
|
4189
4189
|
});
|
4190
4190
|
}
|
4191
4191
|
return r;
|
4192
|
-
},
|
4193
|
-
const a =
|
4192
|
+
}, er = (e, n) => e.find((i) => i.guid === n), Ju = (e, n, i) => {
|
4193
|
+
const a = er(e, i);
|
4194
4194
|
if (a)
|
4195
|
-
return
|
4195
|
+
return er(a.subBudgets, n);
|
4196
4196
|
};
|
4197
4197
|
class e_ {
|
4198
4198
|
api = new fo("/", "");
|
@@ -4213,7 +4213,7 @@ class e_ {
|
|
4213
4213
|
(n) => {
|
4214
4214
|
if (n) {
|
4215
4215
|
const i = this.selectedBudget;
|
4216
|
-
i && (this.selectedBudget =
|
4216
|
+
i && (this.selectedBudget = er(n, i.guid));
|
4217
4217
|
const a = this.selectedSubBudget;
|
4218
4218
|
a && a.parent_guid && (this.selectedSubBudget = Ju(
|
4219
4219
|
n,
|
@@ -4905,7 +4905,7 @@ const r_ = [
|
|
4905
4905
|
category: be.TRANSACTIONS_WIDGET,
|
4906
4906
|
label: ye.DELETE_TRANSACTION
|
4907
4907
|
}
|
4908
|
-
}, c_ = async (e, n) => !n || !Eo[e] ? null : n.sendAnalyticEvent(Eo[e]),
|
4908
|
+
}, c_ = async (e, n) => !n || !Eo[e] ? null : n.sendAnalyticEvent(Eo[e]), tr = {
|
4909
4909
|
FLAG: "flag",
|
4910
4910
|
DATE: "date",
|
4911
4911
|
PAYEE: "payee",
|
@@ -4938,12 +4938,12 @@ const r_ = [
|
|
4938
4938
|
}, __ = (e, n, i) => [...e].sort((a, r) => {
|
4939
4939
|
const o = n, s = (a[o] || "") > (r[o] || "");
|
4940
4940
|
let c = s ? -1 : 1, d = s ? 1 : -1;
|
4941
|
-
return (n ===
|
4941
|
+
return (n === tr.DATE || n === tr.AMOUNT) && (c = s ? 1 : -1, d = s ? -1 : 1), i === ec.ASC ? c : d;
|
4942
4942
|
}), Ft = (e, n) => {
|
4943
4943
|
const i = e.toLowerCase().split(" "), a = n?.toString().toLowerCase() ?? "";
|
4944
4944
|
return i.every((r) => a.indexOf(r) > -1);
|
4945
4945
|
};
|
4946
|
-
var Xe = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Xe || {}), Ze = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(Ze || {}), h_ = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(h_ || {}), g_ = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(g_ || {}), m_ = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(m_ || {}), U = /* @__PURE__ */ ((e) => (e[e.DEBT_TRACK = 1] = "DEBT_TRACK", e[e.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", e[e.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", e[e.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", e))(U || {}),
|
4946
|
+
var Xe = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Xe || {}), Ze = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(Ze || {}), h_ = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(h_ || {}), g_ = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(g_ || {}), m_ = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(m_ || {}), U = /* @__PURE__ */ ((e) => (e[e.DEBT_TRACK = 1] = "DEBT_TRACK", e[e.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", e[e.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", e[e.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", e))(U || {}), nr = /* @__PURE__ */ ((e) => (e[e.SAVE_AMOUNT = 1] = "SAVE_AMOUNT", e[e.KEEP_BALANCE_BELOW = 2] = "KEEP_BALANCE_BELOW", e[e.KEEP_BALANCE_ABOVE = 3] = "KEEP_BALANCE_ABOVE", e[e.ACTION = 4] = "ACTION", e))(nr || {}), At = /* @__PURE__ */ ((e) => (e[e.AUTOMOBILE = 1] = "AUTOMOBILE", e[e.COLLEGE = 2] = "COLLEGE", e[e.HOUSE = 3] = "HOUSE", e[e.RECREATIONAL_VEHICLE = 4] = "RECREATIONAL_VEHICLE", e[e.VACATION = 5] = "VACATION", e[e.ELECTRONIC = 6] = "ELECTRONIC", e[e.OTHER = 7] = "OTHER", e[e.RETIREMENT = 8] = "RETIREMENT", e[e.EMERGENCY_FUND = 9] = "EMERGENCY_FUND", e[e.SETUP_BUDGETS = 10] = "SETUP_BUDGETS", e[e.START_MONEY_MANAGEMENT = 11] = "START_MONEY_MANAGEMENT", e[e.CREDIT_CARD = 12] = "CREDIT_CARD", e[e.LINE_OF_CREDIT = 13] = "LINE_OF_CREDIT", e[e.LOANS = 14] = "LOANS", e))(At || {}), Ve = /* @__PURE__ */ ((e) => (e[e.BudgetExceeded = 1] = "BudgetExceeded", e[e.BudgetOffTarget = 2] = "BudgetOffTarget", e[e.DebtPaymentReminder = 3] = "DebtPaymentReminder", e[e.AccountBalanceLow = 6] = "AccountBalanceLow", e[e.AccountDepositLarge = 7] = "AccountDepositLarge", e[e.TransactionExpenseLarge = 8] = "TransactionExpenseLarge", e[e.TransactionFeeCharge = 9] = "TransactionFeeCharge", e[e.InternationalTransaction = 23] = "InternationalTransaction", e))(Ve || {}), bt = /* @__PURE__ */ ((e) => (e[e.CREDIT = 1] = "CREDIT", e[e.DEBIT = 2] = "DEBIT", e))(bt || {}), Sr = /* @__PURE__ */ ((e) => (e[e.POSTED = 1] = "POSTED", e[e.PENDING = 2] = "PENDING", e))(Sr || {}), p_ = /* @__PURE__ */ ((e) => (e.Desktop = "Desktop", e.Mobile = "Mobile", e))(p_ || {}), Ae = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.EveryWeek = 1] = "EveryWeek", e[e.EveryOtherWeek = 2] = "EveryOtherWeek", e[e.EveryMonth = 3] = "EveryMonth", e[e.EveryOtherMonth = 4] = "EveryOtherMonth", e[e.EveryQuarter = 5] = "EveryQuarter", e[e.EveryOtherQuarter = 6] = "EveryOtherQuarter", e[e.EveryYear = 7] = "EveryYear", e))(Ae || {}), Je = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(Je || {}), Yt = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Yt || {}), on = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e[e.Income = 3] = "Income", e[e.Transfer = 4] = "Transfer", e))(on || {});
|
4947
4947
|
const tc = {
|
4948
4948
|
account_guid: "",
|
4949
4949
|
amount: 0,
|
@@ -5023,7 +5023,7 @@ class f_ {
|
|
5023
5023
|
transactions = [];
|
5024
5024
|
associatedBeats = [];
|
5025
5025
|
cachedStartDate = dt(le(), 90);
|
5026
|
-
sortColumn =
|
5026
|
+
sortColumn = tr.DATE;
|
5027
5027
|
sortDirection = ec.DESC;
|
5028
5028
|
filter = {};
|
5029
5029
|
onAnalyticEvent = c_;
|
@@ -5224,7 +5224,7 @@ const St = () => {
|
|
5224
5224
|
"Original Description": i.feed_description,
|
5225
5225
|
Amount: `${i.amount}`,
|
5226
5226
|
Type: i.transaction_type === bt.CREDIT ? "Credit" : "Debit",
|
5227
|
-
"Parent Category":
|
5227
|
+
"Parent Category": ma[i.top_level_category_guid || ""],
|
5228
5228
|
Category: i.category,
|
5229
5229
|
Account: i.account,
|
5230
5230
|
Tags: S_(i, n),
|
@@ -5289,7 +5289,7 @@ const St = () => {
|
|
5289
5289
|
]
|
5290
5290
|
}
|
5291
5291
|
);
|
5292
|
-
},
|
5292
|
+
}, Ea = A(T_), Sa = ({
|
5293
5293
|
bgcolor: e = "background.default",
|
5294
5294
|
children: n
|
5295
5295
|
}) => /* @__PURE__ */ t(L, { display: "inline-block", pb: 4, pl: 24, pt: 4, sx: { bgcolor: e, width: "100%" }, children: /* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: n }) }), A_ = ({ showIcon: e = !0, showSubtitle: n = !0 }) => {
|
@@ -5356,8 +5356,8 @@ const St = () => {
|
|
5356
5356
|
width: "100%"
|
5357
5357
|
},
|
5358
5358
|
children: [
|
5359
|
-
v && /* @__PURE__ */ t(
|
5360
|
-
/* @__PURE__ */ t(
|
5359
|
+
v && /* @__PURE__ */ t(Sa, { bgcolor: e, children: Oi(w.date) }),
|
5360
|
+
/* @__PURE__ */ t(Ea, { onClick: E, transaction: w }),
|
5361
5361
|
/* @__PURE__ */ t(k, { sx: { ml: R ? 24 : 0 } })
|
5362
5362
|
]
|
5363
5363
|
},
|
@@ -5537,7 +5537,7 @@ const St = () => {
|
|
5537
5537
|
ON_SUBCATEGORY_DELETED: "onSubcategoryDeleted",
|
5538
5538
|
ON_SUBCATEGORY_SAVED: "onSubcategorySaved"
|
5539
5539
|
};
|
5540
|
-
var
|
5540
|
+
var Ta = /* @__PURE__ */ ((e) => (e.ADD = "add", e.EDIT = "edit", e.DELETE = "delete", e))(Ta || {});
|
5541
5541
|
const B_ = ({
|
5542
5542
|
categoryName: e = "",
|
5543
5543
|
onClose: n,
|
@@ -5611,7 +5611,7 @@ const B_ = ({
|
|
5611
5611
|
isOpen: n,
|
5612
5612
|
onClose: _,
|
5613
5613
|
onSave: c,
|
5614
|
-
type:
|
5614
|
+
type: Ta.ADD
|
5615
5615
|
}
|
5616
5616
|
)
|
5617
5617
|
] });
|
@@ -5632,7 +5632,7 @@ const B_ = ({
|
|
5632
5632
|
isOpen: i,
|
5633
5633
|
onClose: s,
|
5634
5634
|
onSave: o,
|
5635
|
-
type:
|
5635
|
+
type: Ta.EDIT
|
5636
5636
|
}
|
5637
5637
|
);
|
5638
5638
|
}, W_ = A(F_), U_ = ({
|
@@ -5653,7 +5653,7 @@ const B_ = ({
|
|
5653
5653
|
isOpen: n,
|
5654
5654
|
onClose: s,
|
5655
5655
|
onSave: c,
|
5656
|
-
type:
|
5656
|
+
type: Ta.DELETE
|
5657
5657
|
}
|
5658
5658
|
);
|
5659
5659
|
}, V_ = A(U_), K_ = ({ parentCategory: e, subCategory: n }) => {
|
@@ -5691,7 +5691,7 @@ const B_ = ({
|
|
5691
5691
|
primaryTypographyProps: { fontWeight: "normal", variant: "Body" }
|
5692
5692
|
}
|
5693
5693
|
),
|
5694
|
-
s && b && /* @__PURE__ */ t(
|
5694
|
+
s && b && /* @__PURE__ */ t(_a, { fontSize: "small" }),
|
5695
5695
|
!T && /* @__PURE__ */ t(xd, { label: d })
|
5696
5696
|
]
|
5697
5697
|
}
|
@@ -5742,7 +5742,7 @@ const B_ = ({
|
|
5742
5742
|
}, z_ = A(K_), Y_ = ({ categories: e, parentCategory: n }) => {
|
5743
5743
|
const { expandedGuid: i, searchValue: a } = pn(), r = n.guid === i, o = !!a;
|
5744
5744
|
return /* @__PURE__ */ t(
|
5745
|
-
|
5745
|
+
ha,
|
5746
5746
|
{
|
5747
5747
|
in: r || o,
|
5748
5748
|
sx: { backgroundColor: "background.default" },
|
@@ -5877,7 +5877,7 @@ const B_ = ({
|
|
5877
5877
|
children: /* @__PURE__ */ t(J_, { ...r })
|
5878
5878
|
}
|
5879
5879
|
) : /* @__PURE__ */ t(ue, {});
|
5880
|
-
},
|
5880
|
+
}, Aa = A(eh), th = 3, Io = 12, nh = (e, n, i) => e.filter((a) => !a.parent_guid).map(
|
5881
5881
|
(a) => ac(
|
5882
5882
|
a,
|
5883
5883
|
n,
|
@@ -6070,7 +6070,7 @@ class ah {
|
|
6070
6070
|
}
|
6071
6071
|
};
|
6072
6072
|
// TODO: Remove this after refactoring Trends components to use detailedCategories
|
6073
|
-
getCategoryName = (n) => this.categories.find((a) => a.guid === n)?.name ??
|
6073
|
+
getCategoryName = (n) => this.categories.find((a) => a.guid === n)?.name ?? ma[n];
|
6074
6074
|
}
|
6075
6075
|
const rc = ({ transaction: e }) => {
|
6076
6076
|
const { addOrUpdateTransactionRule: n, updateTransaction: i } = Ce(), { categories: a } = We(), { onEvent: r } = V(), { setShouldDisableDrawerScroll: o, updateManualTransaction: s } = St(), { transactions: c } = I(), [d, _] = g.useState(!1), [u, h] = g.useState(""), m = async (b) => {
|
@@ -6125,7 +6125,7 @@ const rc = ({ transaction: e }) => {
|
|
6125
6125
|
}
|
6126
6126
|
) }),
|
6127
6127
|
/* @__PURE__ */ t(
|
6128
|
-
|
6128
|
+
Aa,
|
6129
6129
|
{
|
6130
6130
|
initialSelected: e.category_guid,
|
6131
6131
|
onClose: f,
|
@@ -6540,7 +6540,7 @@ const rc = ({ transaction: e }) => {
|
|
6540
6540
|
] }) })
|
6541
6541
|
] }),
|
6542
6542
|
/* @__PURE__ */ t(
|
6543
|
-
|
6543
|
+
Aa,
|
6544
6544
|
{
|
6545
6545
|
initialSelected: r.category_guid,
|
6546
6546
|
onClose: () => h(!1),
|
@@ -7219,7 +7219,7 @@ const rc = ({ transaction: e }) => {
|
|
7219
7219
|
placeholder: i.manual_transaction_select,
|
7220
7220
|
select: !0,
|
7221
7221
|
sx: { bgcolor: "background.paper" },
|
7222
|
-
children: u.map((b) => /* @__PURE__ */ t(
|
7222
|
+
children: u.map((b) => /* @__PURE__ */ t(ua, { value: b.value, children: b.label }, b.value))
|
7223
7223
|
}
|
7224
7224
|
)
|
7225
7225
|
] }),
|
@@ -7240,7 +7240,7 @@ const rc = ({ transaction: e }) => {
|
|
7240
7240
|
};
|
7241
7241
|
return /* @__PURE__ */ l(L, { className: "mx-txn-edit-category-action", children: [
|
7242
7242
|
/* @__PURE__ */ t(
|
7243
|
-
|
7243
|
+
Aa,
|
7244
7244
|
{
|
7245
7245
|
initialSelected: n.category_guid,
|
7246
7246
|
onClose: e,
|
@@ -7308,8 +7308,8 @@ const rc = ({ transaction: e }) => {
|
|
7308
7308
|
const at = He(le()), Wr = ze(le());
|
7309
7309
|
re(at, Wr), T({
|
7310
7310
|
dateRange: { start: at, end: Wr },
|
7311
|
-
accounts: we.map((
|
7312
|
-
custom: (
|
7311
|
+
accounts: we.map((Ga) => Ga.guid),
|
7312
|
+
custom: (Ga) => !Ga.accountIsClosed
|
7313
7313
|
}), se(!0), O(F.TRANSACTIONS_VIEW);
|
7314
7314
|
}, []), g.useEffect(() => {
|
7315
7315
|
un && (T({
|
@@ -7323,16 +7323,16 @@ const rc = ({ transaction: e }) => {
|
|
7323
7323
|
const Be = g.useMemo(
|
7324
7324
|
() => r.filter((at) => at.is_manual),
|
7325
7325
|
[r]
|
7326
|
-
), Fe = $e ? w.find((at) => at.guid === $e) : void 0, _n = _ && !!d.payee && !!d.account_guid && !!d.category_guid,
|
7326
|
+
), Fe = $e ? w.find((at) => at.guid === $e) : void 0, _n = _ && !!d.payee && !!d.account_guid && !!d.category_guid, Oa = (at) => {
|
7327
7327
|
re(at[0], at[1]);
|
7328
|
-
},
|
7328
|
+
}, La = (at) => {
|
7329
7329
|
h(at), T({
|
7330
7330
|
...E,
|
7331
7331
|
searchTerm: at
|
7332
7332
|
}), O(F.TRANSACTIONS_CLICK_SEARCH, { search_term: at });
|
7333
7333
|
}, di = () => {
|
7334
7334
|
nc(w, x), O(F.TRANSACTIONS_CLICK_EXPORT);
|
7335
|
-
},
|
7335
|
+
}, Ma = () => {
|
7336
7336
|
Be.length > 0 ? (C({
|
7337
7337
|
...tc,
|
7338
7338
|
date: Ne(le()),
|
@@ -7341,7 +7341,7 @@ const rc = ({ transaction: e }) => {
|
|
7341
7341
|
"addTransaction"
|
7342
7342
|
/* AddTransaction */
|
7343
7343
|
), O(F.TRANSACTIONS_CLICK_ADD)) : (ct(!0), O(F.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
|
7344
|
-
},
|
7344
|
+
}, ka = async () => {
|
7345
7345
|
_n && await f(d), _e("");
|
7346
7346
|
}, tl = () => {
|
7347
7347
|
ct(!1), ut(!0);
|
@@ -7363,11 +7363,11 @@ const rc = ({ transaction: e }) => {
|
|
7363
7363
|
{
|
7364
7364
|
iconName: "add",
|
7365
7365
|
label: D.add_transaction_btn,
|
7366
|
-
onClick:
|
7366
|
+
onClick: Ma
|
7367
7367
|
}
|
7368
7368
|
],
|
7369
7369
|
calendarActions: {
|
7370
|
-
onRangeChanged:
|
7370
|
+
onRangeChanged: Oa
|
7371
7371
|
},
|
7372
7372
|
onAccountsFilterClick: () => O(F.ACCOUNTS_CLICK_FILTER),
|
7373
7373
|
onBackClick: e,
|
@@ -7377,7 +7377,7 @@ const rc = ({ transaction: e }) => {
|
|
7377
7377
|
/* @__PURE__ */ t(L, { mt: 16, children: /* @__PURE__ */ t(
|
7378
7378
|
Mi,
|
7379
7379
|
{
|
7380
|
-
onChange:
|
7380
|
+
onChange: La,
|
7381
7381
|
placeholder: D.action_bar_search_placeholder,
|
7382
7382
|
searchValue: u
|
7383
7383
|
}
|
@@ -7458,7 +7458,7 @@ const rc = ({ transaction: e }) => {
|
|
7458
7458
|
isOpen: Pe === "addTransaction",
|
7459
7459
|
isPrimaryDisabled: !_n,
|
7460
7460
|
onClose: () => _e(""),
|
7461
|
-
onPrimaryAction:
|
7461
|
+
onPrimaryAction: ka,
|
7462
7462
|
title: D.add_transaction_title,
|
7463
7463
|
children: /* @__PURE__ */ t(kh, {})
|
7464
7464
|
}
|
@@ -7754,12 +7754,12 @@ const rc = ({ transaction: e }) => {
|
|
7754
7754
|
}
|
7755
7755
|
)
|
7756
7756
|
] });
|
7757
|
-
}, Vh = A(Uh),
|
7757
|
+
}, Vh = A(Uh), Ia = {
|
7758
7758
|
gridRow: 1,
|
7759
7759
|
gridColumn: 1,
|
7760
7760
|
zIndex: 2
|
7761
|
-
},
|
7762
|
-
let a = n &&
|
7761
|
+
}, xa = (e) => e ? { margin: "0 0 -6px -4px" } : void 0, Ar = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...xa(e) }, children: /* @__PURE__ */ t(Td, { color: "primary", sx: { fontSize: n, ...Ia } }) }), Ir = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...xa(e) }, children: /* @__PURE__ */ t(Ad, { sx: { color: "categories.income", fontSize: n, ...Ia } }) }), xr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...xa(e) }, children: /* @__PURE__ */ t(Yi, { color: "error", sx: { fontSize: n, ...Ia } }) }), vr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...xa(e) }, children: /* @__PURE__ */ t(_a, { color: "success", sx: { fontSize: n, ...Ia } }) }), No = ({ copy: e, date: n, type: i }) => {
|
7762
|
+
let a = n && la(n) ? S(e.monthly_ordinal, It(n, "do")) : e.monthly;
|
7763
7763
|
switch (i) {
|
7764
7764
|
case q.EveryQuarter:
|
7765
7765
|
a = n ? S(e.quarterly_ordinal, It(n, "do")) : e.quarterly;
|
@@ -8029,7 +8029,7 @@ const rc = ({ transaction: e }) => {
|
|
8029
8029
|
const h = Oe(s.date);
|
8030
8030
|
switch (Number(u.target.value)) {
|
8031
8031
|
case q.EveryWeek:
|
8032
|
-
o(
|
8032
|
+
o(pa(h));
|
8033
8033
|
break;
|
8034
8034
|
case q.EveryOtherWeek:
|
8035
8035
|
o(Gs(h));
|
@@ -8054,8 +8054,8 @@ const rc = ({ transaction: e }) => {
|
|
8054
8054
|
};
|
8055
8055
|
return /* @__PURE__ */ l(y, { bgcolor: e, gap: 24, height: "100%", children: [
|
8056
8056
|
/* @__PURE__ */ l(y, { children: [
|
8057
|
-
/* @__PURE__ */ t(
|
8058
|
-
/* @__PURE__ */ t(
|
8057
|
+
/* @__PURE__ */ t(Sa, { bgcolor: e, children: Oi(s.date) }),
|
8058
|
+
/* @__PURE__ */ t(Ea, { transaction: s })
|
8059
8059
|
] }),
|
8060
8060
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mx: 24 }, variant: "Body", children: i ? c.income_schedule : c.expense_schedule }),
|
8061
8061
|
/* @__PURE__ */ t(
|
@@ -8072,11 +8072,11 @@ const rc = ({ transaction: e }) => {
|
|
8072
8072
|
sx: { mx: 24 },
|
8073
8073
|
value: n,
|
8074
8074
|
variant: "outlined",
|
8075
|
-
children: d.map((u) => /* @__PURE__ */ t(
|
8075
|
+
children: d.map((u) => /* @__PURE__ */ t(ua, { value: u.id, children: u.label }, u.id))
|
8076
8076
|
}
|
8077
8077
|
),
|
8078
8078
|
/* @__PURE__ */ t(Nn, { dateAdapter: gn, children: /* @__PURE__ */ t(
|
8079
|
-
|
8079
|
+
da,
|
8080
8080
|
{
|
8081
8081
|
disablePast: !0,
|
8082
8082
|
label: i ? c.income_date_label : c.expense_date_label,
|
@@ -8199,10 +8199,10 @@ const rc = ({ transaction: e }) => {
|
|
8199
8199
|
] }, d.scheduledPaymentGuid)),
|
8200
8200
|
/* @__PURE__ */ t(Cc, { label: e.add_expense, onAddActivity: c })
|
8201
8201
|
] });
|
8202
|
-
}, eg = A(Jh),
|
8202
|
+
}, eg = A(Jh), ir = (e) => {
|
8203
8203
|
let n = e.user_name || e.feed_name || "";
|
8204
8204
|
return e.account_number && (n = `${n} *${e.account_number}`), n;
|
8205
|
-
},
|
8205
|
+
}, ar = (e) => e ? e.repeat_interval === "1" ? q.EveryWeek : e.repeat_interval === "2" ? q.EveryOtherWeek : e.repeat_day && !e.repeat_month && !e.repeat_interval ? q.EveryMonth : e.repeat_day && e.repeat_interval === "3" ? q.EveryQuarter : e.repeat_day && e.repeat_month ? q.EveryYear : q.Unknown : q.Unknown, tg = (e, n, i, a, r, o) => {
|
8206
8206
|
const s = n.filter((u) => {
|
8207
8207
|
const h = r.find((C) => C.guid === u.cashflow_sequence_guid), m = o.find((C) => C.guid === u.transaction_guid);
|
8208
8208
|
return h?.end_date === null && m;
|
@@ -8217,10 +8217,10 @@ const rc = ({ transaction: e }) => {
|
|
8217
8217
|
expectedDate: Ci(u.expected_date),
|
8218
8218
|
occurredOnDate: u.occurred_on ? Ci(u.occurred_on) : void 0,
|
8219
8219
|
name: u.name,
|
8220
|
-
institution: C ?
|
8220
|
+
institution: C ? ir(C) : void 0,
|
8221
8221
|
institutionGuid: C?.institution_guid,
|
8222
8222
|
merchantGuid: m?.merchant_guid || void 0,
|
8223
|
-
recurrenceType:
|
8223
|
+
recurrenceType: ar(h),
|
8224
8224
|
recurrenceDay: h?.repeat_day ? Number(h?.repeat_day) : void 0,
|
8225
8225
|
sequenceGuid: h?.guid,
|
8226
8226
|
transactionGuid: u.transaction_guid
|
@@ -8247,10 +8247,10 @@ const rc = ({ transaction: e }) => {
|
|
8247
8247
|
categoryGuid: u.category_guid,
|
8248
8248
|
expectedDate: Ci(u.expected_date),
|
8249
8249
|
name: u.name,
|
8250
|
-
institution: f ?
|
8250
|
+
institution: f ? ir(f) : void 0,
|
8251
8251
|
institutionGuid: f?.institution_guid,
|
8252
8252
|
merchantGuid: C?.merchant_guid || void 0,
|
8253
|
-
recurrenceType:
|
8253
|
+
recurrenceType: ar(h),
|
8254
8254
|
recurrenceDay: h?.repeat_day ? Number(h?.repeat_day) : void 0,
|
8255
8255
|
sequenceGuid: h?.guid,
|
8256
8256
|
transactionGuid: void 0
|
@@ -8270,7 +8270,7 @@ const rc = ({ transaction: e }) => {
|
|
8270
8270
|
categoryGuid: r?.category_guid,
|
8271
8271
|
expectedDate: s,
|
8272
8272
|
name: n.description,
|
8273
|
-
institution: o ?
|
8273
|
+
institution: o ? ir(o) : void 0,
|
8274
8274
|
institutionGuid: o?.institution_guid,
|
8275
8275
|
merchantGuid: n.merchant_guid,
|
8276
8276
|
recurrenceType: n.recurrence_type,
|
@@ -8375,7 +8375,7 @@ const rc = ({ transaction: e }) => {
|
|
8375
8375
|
institution: _?.user_name,
|
8376
8376
|
institutionGuid: _?.institution_guid,
|
8377
8377
|
merchantGuid: d?.merchant_guid,
|
8378
|
-
recurrenceType:
|
8378
|
+
recurrenceType: ar(o),
|
8379
8379
|
recurrenceDay: Number(o.repeat_day),
|
8380
8380
|
sequenceGuid: o.guid
|
8381
8381
|
};
|
@@ -8435,13 +8435,13 @@ const rc = ({ transaction: e }) => {
|
|
8435
8435
|
e === 0 && /* @__PURE__ */ t(eg, {}),
|
8436
8436
|
e === 1 && /* @__PURE__ */ t(Nr, {})
|
8437
8437
|
] });
|
8438
|
-
}, fc = A(rg), _i = (e, n) => e + n.amount,
|
8438
|
+
}, fc = A(rg), _i = (e, n) => e + n.amount, Ha = (e) => e.activityType === Xe.Income && ni(e.expectedDate, {
|
8439
8439
|
start: He(le()),
|
8440
8440
|
end: ze(le())
|
8441
8441
|
}), Hi = (e) => e.activityType === Xe.Expense && ni(e.expectedDate, {
|
8442
8442
|
start: He(le()),
|
8443
8443
|
end: ze(le())
|
8444
|
-
}),
|
8444
|
+
}), $a = (e) => e.occurredOnDate && ni(e.occurredOnDate, {
|
8445
8445
|
start: He(/* @__PURE__ */ new Date()),
|
8446
8446
|
end: Lt(le(), 30)
|
8447
8447
|
}) || ni(e.expectedDate, {
|
@@ -8689,7 +8689,7 @@ const rc = ({ transaction: e }) => {
|
|
8689
8689
|
selectedDayActivities: c,
|
8690
8690
|
setSelectedDay: d,
|
8691
8691
|
upcomingActivities: _
|
8692
|
-
} = Qe(), [u, h] = g.useState(0), { onEvent: m } = V(), C = a.filter(
|
8692
|
+
} = Qe(), [u, h] = g.useState(0), { onEvent: m } = V(), C = a.filter($a), f = o.filter($a), E = r.filter($a), b = C.filter(Hi).reduce(_i, 0), T = f.filter(Hi).reduce(_i, 0), x = E.filter(Hi).reduce(_i, 0), w = C.filter(Hi).length, v = C.filter(Ha).reduce(_i, 0), R = f.filter(Ha).reduce(_i, 0), D = C.filter(Ha).length, H = (X, W) => {
|
8693
8693
|
h(W);
|
8694
8694
|
}, O = (X) => {
|
8695
8695
|
m(F.RECURRING_ACTIVITY_CLICK_UPCOMING, {
|
@@ -9074,7 +9074,7 @@ const Eg = {
|
|
9074
9074
|
gridRow: 1,
|
9075
9075
|
gridColumn: 1,
|
9076
9076
|
zIndex: 2
|
9077
|
-
}, Sg = ({ size: e = 20 }) => /* @__PURE__ */ t(Xt, { size: e, children: /* @__PURE__ */ t(
|
9077
|
+
}, Sg = ({ size: e = 20 }) => /* @__PURE__ */ t(Xt, { size: e, children: /* @__PURE__ */ t(ga, { color: "error", sx: { fontSize: e, ...Eg } }) }), Dr = (e) => e && (e.account_type === oe.CREDIT_CARD || e.account_type === oe.LOAN || e.account_type === oe.MORTGAGE || e.account_type === oe.LINE_OF_CREDIT || e.account_type === oe.CHECKING_LINE_OF_CREDIT), Tg = (e) => e.is_manual || !e.guid, Ag = (e) => e.account_type === oe.LINE_OF_CREDIT || e.account_type === oe.CREDIT_CARD || e.account_type === oe.CHECKING_LINE_OF_CREDIT, Ig = (e) => e.account_type === oe.SAVINGS || e.account_type === oe.CHECKING || e.account_type === oe.LINE_OF_CREDIT || e.account_type === oe.CREDIT_CARD || e.account_type === oe.LOAN || e.account_type === oe.MORTGAGE, xg = (e) => e.account_type === oe.LOAN || e.account_type === oe.MORTGAGE, vg = (e, n) => {
|
9078
9078
|
const i = [
|
9079
9079
|
{
|
9080
9080
|
event: "account_details_click_account_name",
|
@@ -9131,8 +9131,8 @@ const Eg = {
|
|
9131
9131
|
name: r,
|
9132
9132
|
placeholder: S(n.enter_value, a),
|
9133
9133
|
type: Tt.Input,
|
9134
|
-
validation: (o) =>
|
9135
|
-
valueFormatter: (o) =>
|
9134
|
+
validation: (o) => Qa(o) ? "" : n.error_amount_is_invalid,
|
9135
|
+
valueFormatter: (o) => Qa(o) ? Ca(o / 100) : o
|
9136
9136
|
});
|
9137
9137
|
}
|
9138
9138
|
return Dr(e) && (i.push({
|
@@ -9961,10 +9961,10 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(j, { children: [
|
|
9961
9961
|
/* @__PURE__ */ t(De, { mb: 24, children: a.add_income_description }),
|
9962
9962
|
O.length > 0 && !Z && /* @__PURE__ */ l(j, { children: [
|
9963
9963
|
/* @__PURE__ */ t(ie, { children: O.map((_e, $e) => /* @__PURE__ */ l(g.Fragment, { children: [
|
9964
|
-
/* @__PURE__ */ t(
|
9964
|
+
/* @__PURE__ */ t(Sa, { bgcolor: "background.paper", children: Oi(
|
9965
9965
|
Ne(_e.nextDate || _e.date)
|
9966
9966
|
) }),
|
9967
|
-
/* @__PURE__ */ t(
|
9967
|
+
/* @__PURE__ */ t(Ea, { transaction: _e }),
|
9968
9968
|
$e !== O.length - 1 && /* @__PURE__ */ t(k, {})
|
9969
9969
|
] }, _e.guid)) }),
|
9970
9970
|
/* @__PURE__ */ l(y, { alignItems: "center", direction: "row", children: [
|
@@ -10240,7 +10240,7 @@ function qg(e, n, i = 0) {
|
|
10240
10240
|
const Cn = () => {
|
10241
10241
|
if (!g.useContext(zn))
|
10242
10242
|
throw new Error("useCateUiStore() must be used within the GlobalDataContext");
|
10243
|
-
return
|
10243
|
+
return ba().uiStore;
|
10244
10244
|
}, Zg = ({ debts: e, onClickCta: n, sx: i }) => {
|
10245
10245
|
const a = vn(), { isMobile: r } = xe(), { debts: o } = I(), { selectedDebtPriority: s } = Cn(), { monthlyCashFlowProfile: c } = nt(), { payoffDate: d, payoffSavings: _, payoffDuration: u } = g.useMemo(() => {
|
10246
10246
|
const h = c?.extra_payment ?? 0;
|
@@ -10659,7 +10659,7 @@ const Cn = () => {
|
|
10659
10659
|
if (!g.useContext(zn))
|
10660
10660
|
throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
|
10661
10661
|
return ve().uiStore;
|
10662
|
-
},
|
10662
|
+
}, va = (e) => e.top_level_category_guid === N.INCOME || e.category_guid === N.INCOME, tm = (e) => !va(e) && !Ac(e), Tc = (e) => no.includes(e.top_level_category_guid) || no.includes(e.category_guid), Ac = (e) => e.top_level_category_guid === N.TRANSFER || e.category_guid === N.TRANSFER, nm = (e) => !va(e) && !Tc(e) && !Ac(e), im = (e) => e.filter((n) => n.category_guid === n.top_level_category_guid), Rr = (e, n) => {
|
10663
10663
|
const i = [];
|
10664
10664
|
let a = He(jt(/* @__PURE__ */ new Date(), 5));
|
10665
10665
|
const r = /* @__PURE__ */ new Date();
|
@@ -10670,7 +10670,7 @@ const Cn = () => {
|
|
10670
10670
|
}), a = gt(a, 1);
|
10671
10671
|
return i;
|
10672
10672
|
}, am = (e, n) => {
|
10673
|
-
const i = e.filter(
|
10673
|
+
const i = e.filter(va);
|
10674
10674
|
return Rr(i).map((a) => ({ ...a, y: Math.abs(a.y) }));
|
10675
10675
|
}, rm = (e, n) => {
|
10676
10676
|
const i = e.filter(Tc);
|
@@ -10721,7 +10721,7 @@ const Cn = () => {
|
|
10721
10721
|
}
|
10722
10722
|
) });
|
10723
10723
|
}, um = A(dm), _m = ({ sx: e }) => {
|
10724
|
-
const { loadMonthlyCategoryTotals: n } = We(), { isInitialized: i } =
|
10724
|
+
const { loadMonthlyCategoryTotals: n } = We(), { isInitialized: i } = ya(), { selectedAccount: a } = Ht(), [r, o] = g.useState(!1);
|
10725
10725
|
return g.useEffect(() => {
|
10726
10726
|
i && n([a]).finally(() => {
|
10727
10727
|
o(!0);
|
@@ -11022,7 +11022,7 @@ const Ic = ({
|
|
11022
11022
|
onCancel: u,
|
11023
11023
|
onSave: _,
|
11024
11024
|
primaryText: n.details_interest_rate,
|
11025
|
-
secondaryText:
|
11025
|
+
secondaryText: Ca(Number(e.interest_rate) / 100),
|
11026
11026
|
zeroStateText: e.interest_rate ? void 0 : n.add_interest_rate,
|
11027
11027
|
children: /* @__PURE__ */ t(
|
11028
11028
|
rt,
|
@@ -11121,7 +11121,7 @@ const Ic = ({
|
|
11121
11121
|
onCancel: d,
|
11122
11122
|
onSave: c,
|
11123
11123
|
primaryText: n.details_interest_rate,
|
11124
|
-
secondaryText:
|
11124
|
+
secondaryText: Ca(Number(e.interest_rate) / 100),
|
11125
11125
|
zeroStateText: e.interest_rate ? void 0 : n.add_interest_rate,
|
11126
11126
|
children: /* @__PURE__ */ t(
|
11127
11127
|
rt,
|
@@ -11227,7 +11227,7 @@ const Ic = ({
|
|
11227
11227
|
/* @__PURE__ */ t(yt, { sx: { my: 16, mx: 24, ...n }, children: /* @__PURE__ */ l(
|
11228
11228
|
xn,
|
11229
11229
|
{
|
11230
|
-
icon: a ? /* @__PURE__ */ t(
|
11230
|
+
icon: a ? /* @__PURE__ */ t(ga, {}) : /* @__PURE__ */ t(_a, { color: "success" }),
|
11231
11231
|
severity: "error",
|
11232
11232
|
sx: {
|
11233
11233
|
alignItems: "start",
|
@@ -11240,7 +11240,7 @@ const Ic = ({
|
|
11240
11240
|
}
|
11241
11241
|
},
|
11242
11242
|
children: [
|
11243
|
-
/* @__PURE__ */ t(
|
11243
|
+
/* @__PURE__ */ t(Za, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: a ? i.status_error_title : i.status_complete_title }),
|
11244
11244
|
/* @__PURE__ */ t(p, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: a ? i.status_error_description : i.status_complete_description })
|
11245
11245
|
]
|
11246
11246
|
}
|
@@ -11258,7 +11258,7 @@ const Ic = ({
|
|
11258
11258
|
}
|
11259
11259
|
},
|
11260
11260
|
children: [
|
11261
|
-
/* @__PURE__ */ t(
|
11261
|
+
/* @__PURE__ */ t(Za, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: i.status_info_title }),
|
11262
11262
|
/* @__PURE__ */ t(p, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: i.status_info_description })
|
11263
11263
|
]
|
11264
11264
|
}
|
@@ -11352,7 +11352,7 @@ const Ic = ({
|
|
11352
11352
|
}
|
11353
11353
|
);
|
11354
11354
|
}), Om = () => {
|
11355
|
-
const { debts: e } = I(), { totalMonthlyPayments: n } =
|
11355
|
+
const { debts: e } = I(), { totalMonthlyPayments: n } = ba(), { monthlyCashFlowProfile: i } = nt(), a = n + Number(i?.extra_payment);
|
11356
11356
|
return /* @__PURE__ */ l(y, { sx: { backgroundColor: "background.default", height: "100%" }, children: [
|
11357
11357
|
/* @__PURE__ */ l(y, { p: 24, children: [
|
11358
11358
|
/* @__PURE__ */ l(y, { alignItems: "center", gap: 4, mb: 24, children: [
|
@@ -11668,7 +11668,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11668
11668
|
},
|
11669
11669
|
children: [
|
11670
11670
|
/* @__PURE__ */ t(p, { color: "inherit", variant: "Small", children: u }),
|
11671
|
-
r === _ && /* @__PURE__ */ t(
|
11671
|
+
r === _ && /* @__PURE__ */ t(_a, { color: "inherit", fontSize: "small" })
|
11672
11672
|
]
|
11673
11673
|
},
|
11674
11674
|
_
|
@@ -11727,7 +11727,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11727
11727
|
d.priority = !d.is_paid_off && !d.is_impossible ? c++ : void 0;
|
11728
11728
|
}), o;
|
11729
11729
|
}, Km = A(({ onClick: e }) => {
|
11730
|
-
const { debts: n } = I(), { isDesktop: i } = xe(), { totalMonthlyPayments: a } =
|
11730
|
+
const { debts: n } = I(), { isDesktop: i } = xe(), { totalMonthlyPayments: a } = ba(), { monthlyCashFlowProfile: r } = nt(), o = a + Number(r?.extra_payment), s = i ? n.paydown_button_long : n.paydown_button_short;
|
11731
11731
|
return /* @__PURE__ */ t(
|
11732
11732
|
J,
|
11733
11733
|
{
|
@@ -11741,7 +11741,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11741
11741
|
}
|
11742
11742
|
);
|
11743
11743
|
}), zm = ({ onBackClick: e, sx: n }) => {
|
11744
|
-
const [i, a] = g.useState(!1), [r, o] = g.useState(!1), [s, c] = g.useState(!1), [d, _] = g.useState(""), { isDesktop: u, isMobile: h } = xe(), { debts: m } = I(), { onEvent: C } = V(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: b } = ce(), { setSelectedAccount: T } = Ht(), { selectedDebtPriority: x, setSelectedDebtChartData: w } = Cn(), { visibleDebtAccounts: v } = ve(), { goalsLoaded: R, loadGoals: D, monthlyCashFlowProfile: H } = nt(), { debts: O } =
|
11744
|
+
const [i, a] = g.useState(!1), [r, o] = g.useState(!1), [s, c] = g.useState(!1), [d, _] = g.useState(""), { isDesktop: u, isMobile: h } = xe(), { debts: m } = I(), { onEvent: C } = V(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: b } = ce(), { setSelectedAccount: T } = Ht(), { selectedDebtPriority: x, setSelectedDebtChartData: w } = Cn(), { visibleDebtAccounts: v } = ve(), { goalsLoaded: R, loadGoals: D, monthlyCashFlowProfile: H } = nt(), { debts: O } = ba(), M = g.useMemo(() => {
|
11745
11745
|
const Se = H?.extra_payment ?? 0;
|
11746
11746
|
return Vm(O, x, Se);
|
11747
11747
|
}, [O, x, H]);
|
@@ -11900,7 +11900,7 @@ class Ho {
|
|
11900
11900
|
updateMonthlyCashFlowProfile = async (n) => this.fetchInstance.put(`${G.MONTHLY_CASH_FLOW_PROFILE}`, n).then((i) => i.monthly_cash_flow_profile);
|
11901
11901
|
updateRetirementGoal = async (n) => this.fetchInstance.put(`${G.RETIREMENT_GOALS}/${n.guid}`, n).then((i) => i.retirement_goal);
|
11902
11902
|
}
|
11903
|
-
function
|
11903
|
+
function Fa({ title: e, subtitle: n }) {
|
11904
11904
|
return /* @__PURE__ */ l(y, { children: [
|
11905
11905
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e }),
|
11906
11906
|
/* @__PURE__ */ t(p, { sx: { fontWeight: 400 }, variant: "Body", children: n })
|
@@ -11918,7 +11918,7 @@ function Zm(e, n) {
|
|
11918
11918
|
maximumFractionDigits: 0
|
11919
11919
|
}, c = n.is_complete ? n.completed_at : n.projected_to_complete_at, d = c ? Oe(c) : /* @__PURE__ */ new Date(), _ = S(
|
11920
11920
|
e.goal_percentage,
|
11921
|
-
|
11921
|
+
Ca(a, s)
|
11922
11922
|
), u = S(
|
11923
11923
|
n.is_complete ? e.completed_label : e.goal_projection,
|
11924
11924
|
ne(d, ee.MONTH_SHORT_YEAR)
|
@@ -12265,7 +12265,7 @@ const Jm = (e, n) => {
|
|
12265
12265
|
}
|
12266
12266
|
)
|
12267
12267
|
] });
|
12268
|
-
},
|
12268
|
+
}, Wa = A(({ trackType: e, onAddGoals: n }) => {
|
12269
12269
|
const { isMobile: i } = xe(), { goals: a } = I(), { orderedGoals: r, setSelectedGoal: o } = nt(), s = r.filter((u) => u.track_type === e), c = s.filter(
|
12270
12270
|
(u) => u.track_type === U.SAVINGS_TRACK && !u.has_been_spent || u.track_type !== U.SAVINGS_TRACK && !u.is_complete
|
12271
12271
|
), d = s.filter(
|
@@ -12352,7 +12352,7 @@ const Jm = (e, n) => {
|
|
12352
12352
|
}
|
12353
12353
|
) }),
|
12354
12354
|
/* @__PURE__ */ t(k, { variant: "inset" }),
|
12355
|
-
h && /* @__PURE__ */ t(
|
12355
|
+
h && /* @__PURE__ */ t(ha, { in: _, children: /* @__PURE__ */ t(ie, { sx: { bgcolor: "background.default" }, children: c.map((m, C) => /* @__PURE__ */ t(Y, { sx: { pl: 48 }, children: /* @__PURE__ */ l(de, { onClick: () => n(m.label, m.metaType, d), children: [
|
12356
12356
|
/* @__PURE__ */ t(pt, { sx: { mr: 8 }, children: /* @__PURE__ */ t(Rt, { name: m.icon }) }),
|
12357
12357
|
/* @__PURE__ */ t(
|
12358
12358
|
ae,
|
@@ -12424,7 +12424,7 @@ const Jm = (e, n) => {
|
|
12424
12424
|
f === U.DEBT_TRACK ? d(!0) : o({
|
12425
12425
|
amount: 0,
|
12426
12426
|
current_amount: 0,
|
12427
|
-
goal_type:
|
12427
|
+
goal_type: nr.SAVE_AMOUNT,
|
12428
12428
|
initial_amount: 0,
|
12429
12429
|
meta_type: C,
|
12430
12430
|
name: m,
|
@@ -12437,7 +12437,7 @@ const Jm = (e, n) => {
|
|
12437
12437
|
account_guid: C.guid,
|
12438
12438
|
amount: 0,
|
12439
12439
|
current_amount: 0,
|
12440
|
-
goal_type:
|
12440
|
+
goal_type: nr.KEEP_BALANCE_BELOW,
|
12441
12441
|
initial_amount: C.balance || 0,
|
12442
12442
|
interest_rate: C.interest_rate || 0,
|
12443
12443
|
meta_type: f,
|
@@ -12660,7 +12660,7 @@ const Jm = (e, n) => {
|
|
12660
12660
|
);
|
12661
12661
|
}, _p = A(({ goal: e }) => {
|
12662
12662
|
const { goals: n } = I(), { user: i, updateUser: a } = dn(), { setAlert: r } = nt(), [o, s] = g.useState(Oe(i.birthday ?? 0)), [c, d] = g.useState(null), _ = e.is_complete, u = async () => {
|
12663
|
-
o &&
|
12663
|
+
o && la(o) && (await a({ ...i, birthday: Ne(o) }), r(n.alert_goal_updated_birthday));
|
12664
12664
|
};
|
12665
12665
|
return /* @__PURE__ */ t(
|
12666
12666
|
tn,
|
@@ -12673,7 +12673,7 @@ const Jm = (e, n) => {
|
|
12673
12673
|
secondaryText: `${ne(Oe(i.birthday ?? 0), ee.MONTH_DAY_YEAR)}`,
|
12674
12674
|
zeroStateText: !e.guid && !i.birthday ? n.add_birthday : void 0,
|
12675
12675
|
children: /* @__PURE__ */ t(Nn, { dateAdapter: gn, children: /* @__PURE__ */ t(
|
12676
|
-
|
12676
|
+
da,
|
12677
12677
|
{
|
12678
12678
|
label: n.details_birthday,
|
12679
12679
|
onChange: s,
|
@@ -12888,7 +12888,7 @@ const Jm = (e, n) => {
|
|
12888
12888
|
Le,
|
12889
12889
|
{
|
12890
12890
|
disabled: re,
|
12891
|
-
label: /* @__PURE__ */ t(
|
12891
|
+
label: /* @__PURE__ */ t(Fa, { subtitle: O, title: d.tab_saving_title }),
|
12892
12892
|
sx: { "&.Mui-selected": { color: "primary.light" } }
|
12893
12893
|
}
|
12894
12894
|
),
|
@@ -12896,7 +12896,7 @@ const Jm = (e, n) => {
|
|
12896
12896
|
Le,
|
12897
12897
|
{
|
12898
12898
|
disabled: re,
|
12899
|
-
label: /* @__PURE__ */ t(
|
12899
|
+
label: /* @__PURE__ */ t(Fa, { subtitle: M, title: d.tab_debt_title }),
|
12900
12900
|
sx: { "&.Mui-selected": { color: "primary.light" } }
|
12901
12901
|
}
|
12902
12902
|
),
|
@@ -12904,7 +12904,7 @@ const Jm = (e, n) => {
|
|
12904
12904
|
Le,
|
12905
12905
|
{
|
12906
12906
|
disabled: re,
|
12907
|
-
label: /* @__PURE__ */ t(
|
12907
|
+
label: /* @__PURE__ */ t(Fa, { subtitle: X, title: d.tab_retirement_title }),
|
12908
12908
|
sx: { "&.Mui-selected": { color: "primary.light" } }
|
12909
12909
|
}
|
12910
12910
|
)
|
@@ -12927,9 +12927,9 @@ const Jm = (e, n) => {
|
|
12927
12927
|
}
|
12928
12928
|
}
|
12929
12929
|
) : /* @__PURE__ */ l(j, { children: [
|
12930
|
-
T === 0 && /* @__PURE__ */ t(
|
12931
|
-
T === 1 && /* @__PURE__ */ t(
|
12932
|
-
T === 2 && /* @__PURE__ */ t(
|
12930
|
+
T === 0 && /* @__PURE__ */ t(Wa, { onAddGoals: Z, trackType: U.SAVINGS_TRACK }),
|
12931
|
+
T === 1 && /* @__PURE__ */ t(Wa, { onAddGoals: Z, trackType: U.DEBT_TRACK }),
|
12932
|
+
T === 2 && /* @__PURE__ */ t(Wa, { onAddGoals: Z, trackType: U.RETIREMENT_TRACK })
|
12933
12933
|
] })
|
12934
12934
|
] }),
|
12935
12935
|
/* @__PURE__ */ t(mp, { onClose: we }),
|
@@ -13846,7 +13846,7 @@ const Mp = ({
|
|
13846
13846
|
/* @__PURE__ */ t(pt, { children: a ? /* @__PURE__ */ t(B, { name: "expand_less", size: 24 }) : /* @__PURE__ */ t(B, { name: "expand_more", size: 24 }) })
|
13847
13847
|
] }) }),
|
13848
13848
|
/* @__PURE__ */ t(k, {}),
|
13849
|
-
/* @__PURE__ */ t(
|
13849
|
+
/* @__PURE__ */ t(ha, { in: a, timeout: "auto", unmountOnExit: !0, children: e.map((o, s) => /* @__PURE__ */ l(ie, { children: [
|
13850
13850
|
/* @__PURE__ */ t(Y, { sx: () => ({ py: 14 }), children: /* @__PURE__ */ t(
|
13851
13851
|
ae,
|
13852
13852
|
{
|
@@ -14561,7 +14561,7 @@ const l1 = ({
|
|
14561
14561
|
] }),
|
14562
14562
|
/* @__PURE__ */ t(Hn, { color: "text.primary", sx: { mt: 24, whiteSpace: { sm: "nowrap", xs: "wrap" } }, children: o })
|
14563
14563
|
] });
|
14564
|
-
},
|
14564
|
+
}, rr = ({
|
14565
14565
|
altImage: e,
|
14566
14566
|
content: n,
|
14567
14567
|
hasDivider: i = !0,
|
@@ -15450,7 +15450,7 @@ const l1 = ({
|
|
15450
15450
|
}
|
15451
15451
|
),
|
15452
15452
|
"why-are-some-of-my-transactions-uncategorized": /* @__PURE__ */ t(
|
15453
|
-
|
15453
|
+
rr,
|
15454
15454
|
{
|
15455
15455
|
altImage: e,
|
15456
15456
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -16404,7 +16404,7 @@ const l1 = ({
|
|
16404
16404
|
}
|
16405
16405
|
),
|
16406
16406
|
/* @__PURE__ */ t(
|
16407
|
-
|
16407
|
+
rr,
|
16408
16408
|
{
|
16409
16409
|
altImage: e.transactions_widget_overview.categorizing_transactions_alt_image,
|
16410
16410
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -16447,7 +16447,7 @@ const l1 = ({
|
|
16447
16447
|
}
|
16448
16448
|
),
|
16449
16449
|
/* @__PURE__ */ t(
|
16450
|
-
|
16450
|
+
rr,
|
16451
16451
|
{
|
16452
16452
|
altImage: e.transactions_widget_overview.transaction_rules_alt_image,
|
16453
16453
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -17295,13 +17295,13 @@ const l1 = ({
|
|
17295
17295
|
}), Xo = {
|
17296
17296
|
institutionName: "",
|
17297
17297
|
institutionWebsite: ""
|
17298
|
-
},
|
17298
|
+
}, Ua = {
|
17299
17299
|
institutionName: "",
|
17300
17300
|
institutionLoginPage: "",
|
17301
17301
|
institutionWebsite: ""
|
17302
17302
|
}, L1 = A(
|
17303
17303
|
({ copy: e, isOpen: n, onClose: i, onSave: a }) => {
|
17304
|
-
const { alert: r, isLoading: o, setAlert: s } = yr(), [c, d] = g.useState(Xo), [_, u] = g.useState(
|
17304
|
+
const { alert: r, isLoading: o, setAlert: s } = yr(), [c, d] = g.useState(Xo), [_, u] = g.useState(Ua), h = [
|
17305
17305
|
{ name: "institutionName", required: !0 },
|
17306
17306
|
{ name: "institutionWebsite", required: !0 },
|
17307
17307
|
{ name: "institutionLoginPage", required: !1 }
|
@@ -17309,7 +17309,7 @@ const l1 = ({
|
|
17309
17309
|
...E,
|
17310
17310
|
label: e.popular_topics_missing_institution_fields[b.toString()]
|
17311
17311
|
})), m = () => {
|
17312
|
-
d(Xo), u(
|
17312
|
+
d(Xo), u(Ua), i();
|
17313
17313
|
}, C = (E) => {
|
17314
17314
|
const {
|
17315
17315
|
target: { name: b, value: T }
|
@@ -17330,7 +17330,7 @@ const l1 = ({
|
|
17330
17330
|
h.forEach(({ label: T, name: x, required: w }) => {
|
17331
17331
|
const v = _[x];
|
17332
17332
|
w && !v && (E[x] = `${T} ${e.request_support_required_message}`, b = !1), (x === "institutionWebsite" || x === "institutionLoginPage") && v && !/(.+)\.(.{2,})/g.test(v) && (E[x] = e.request_support_valid_url_message, b = !1);
|
17333
|
-
}), d(E), b && (a(_), u(
|
17333
|
+
}), d(E), b && (a(_), u(Ua));
|
17334
17334
|
},
|
17335
17335
|
secondaryColor: "primary",
|
17336
17336
|
title: e.request_support,
|
@@ -17877,7 +17877,13 @@ const l1 = ({
|
|
17877
17877
|
)
|
17878
17878
|
] });
|
17879
17879
|
}), Y1 = () => {
|
17880
|
-
const e = et(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: r, isSmallMobile: o, isTablet: s } = xe(), { config: c } =
|
17880
|
+
const e = et(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: r, isSmallMobile: o, isTablet: s } = xe(), { config: c } = fa(), { updateUser: d } = Bt(), { user: _ } = dn(), [u, h] = g.useState(_.first_name), [m, C] = g.useState(_.last_name), [f, E] = g.useState(_.email), [b, T] = g.useState(_.phone), [x, w] = g.useState(_.postal_code), [v, R] = g.useState(_.credit_score), [D, H] = g.useState(
|
17881
|
+
_.birthday && _.birthday > 0 ? Oe(_.birthday) : null
|
17882
|
+
), O = f && !_.email_is_verified, M = b && !_.phone_is_verified;
|
17883
|
+
g.useEffect(() => {
|
17884
|
+
console.log(_);
|
17885
|
+
});
|
17886
|
+
const X = async () => {
|
17881
17887
|
const W = {
|
17882
17888
|
..._,
|
17883
17889
|
first_name: u,
|
@@ -17958,10 +17964,10 @@ const l1 = ({
|
|
17958
17964
|
] }),
|
17959
17965
|
/* @__PURE__ */ l(y, { direction: r ? "column" : "row", spacing: r ? 44 : 24, sx: { mb: 44 }, children: [
|
17960
17966
|
/* @__PURE__ */ t(Nn, { dateAdapter: gn, children: /* @__PURE__ */ t(
|
17961
|
-
|
17967
|
+
da,
|
17962
17968
|
{
|
17963
17969
|
label: i.birthdate,
|
17964
|
-
onChange: H,
|
17970
|
+
onChange: (W) => H(la(W) ? W : null),
|
17965
17971
|
slotProps: {
|
17966
17972
|
nextIconButton: {
|
17967
17973
|
sx: {
|
@@ -18427,7 +18433,7 @@ const X1 = ({
|
|
18427
18433
|
}
|
18428
18434
|
),
|
18429
18435
|
/* @__PURE__ */ t(
|
18430
|
-
|
18436
|
+
Aa,
|
18431
18437
|
{
|
18432
18438
|
initialSelected: i?.category_guid ? i.category_guid : void 0,
|
18433
18439
|
onClose: s,
|
@@ -18632,7 +18638,7 @@ const X1 = ({
|
|
18632
18638
|
};
|
18633
18639
|
return /* @__PURE__ */ l(y, { children: [
|
18634
18640
|
/* @__PURE__ */ t(
|
18635
|
-
|
18641
|
+
Ja,
|
18636
18642
|
{
|
18637
18643
|
isChecked: n.is_enabled,
|
18638
18644
|
onClick: () => c(!0),
|
@@ -18775,7 +18781,7 @@ const X1 = ({
|
|
18775
18781
|
] }),
|
18776
18782
|
/* @__PURE__ */ t(mt, { mb: 24, children: n.accounts_title }),
|
18777
18783
|
a.map((m) => /* @__PURE__ */ t(
|
18778
|
-
|
18784
|
+
Ja,
|
18779
18785
|
{
|
18780
18786
|
isChecked: m.is_enabled,
|
18781
18787
|
isDisabled: !m.is_enabled,
|
@@ -18792,7 +18798,7 @@ const X1 = ({
|
|
18792
18798
|
/* @__PURE__ */ t(k, { sx: { my: 24 } }),
|
18793
18799
|
/* @__PURE__ */ t(mt, { mb: 24, children: n.budgets_title }),
|
18794
18800
|
r.map((m) => /* @__PURE__ */ t(
|
18795
|
-
|
18801
|
+
Ja,
|
18796
18802
|
{
|
18797
18803
|
isChecked: m.is_enabled,
|
18798
18804
|
isDisabled: !m.is_enabled,
|
@@ -18818,7 +18824,7 @@ const X1 = ({
|
|
18818
18824
|
)
|
18819
18825
|
] });
|
18820
18826
|
}), IE = A(({ onBackClick: e, sx: n }) => {
|
18821
|
-
const { settings: i } = I(), { isCopyLoaded: a, isInitialized: r } = ce(), { config: o } =
|
18827
|
+
const { settings: i } = I(), { isCopyLoaded: a, isInitialized: r } = ce(), { config: o } = fa(), { alert: s, setAlert: c } = Bt(), { isMobile: d } = xe(), {
|
18822
18828
|
display_user_profile_in_settings: _,
|
18823
18829
|
display_mobile_devices_in_settings: u,
|
18824
18830
|
display_notification_settings_in_settings: h,
|
@@ -19149,7 +19155,7 @@ const lC = (e) => {
|
|
19149
19155
|
return a;
|
19150
19156
|
}, CC = (e, n, i) => {
|
19151
19157
|
const a = [], r = e.expectedDate;
|
19152
|
-
let o = Te(r, i) ? r :
|
19158
|
+
let o = Te(r, i) ? r : qa(r, 1);
|
19153
19159
|
for (; Te(o, i); )
|
19154
19160
|
Zt(o, n) && a.push({ ...e, expectedDate: o }), o = ei(o, 1);
|
19155
19161
|
return a;
|
@@ -19162,7 +19168,7 @@ const lC = (e) => {
|
|
19162
19168
|
return n.sort(
|
19163
19169
|
(i, a) => Ne(i.occurredOnDate || i.expectedDate) - Ne(a.occurredOnDate || a.expectedDate)
|
19164
19170
|
);
|
19165
|
-
},
|
19171
|
+
}, Va = (e, n, i) => {
|
19166
19172
|
const a = [];
|
19167
19173
|
for (const r of n) {
|
19168
19174
|
const o = i.filter(
|
@@ -19184,8 +19190,8 @@ const lC = (e) => {
|
|
19184
19190
|
id: `date-${a}`,
|
19185
19191
|
recurrences: [i]
|
19186
19192
|
}), n;
|
19187
|
-
}, []),
|
19188
|
-
let a = n &&
|
19193
|
+
}, []), or = (e, n, i) => {
|
19194
|
+
let a = n && la(n) ? S(e.monthly_ordinal, On(n, Ln)) : e.monthly;
|
19189
19195
|
switch (i) {
|
19190
19196
|
case Ae.EveryQuarter:
|
19191
19197
|
a = n ? S(e.quarterly_ordinal, On(n, Ln)) : e.quarterly;
|
@@ -19291,7 +19297,7 @@ class yC {
|
|
19291
19297
|
try {
|
19292
19298
|
const n = await this.api.getRepeatingTransactions();
|
19293
19299
|
K(() => {
|
19294
|
-
this.repeatingTransactions =
|
19300
|
+
this.repeatingTransactions = Va(
|
19295
19301
|
this.globalStore.accountStore.visibleAccounts,
|
19296
19302
|
n,
|
19297
19303
|
this.globalStore.transactionStore.transactions
|
@@ -19310,7 +19316,7 @@ class yC {
|
|
19310
19316
|
}), K(() => {
|
19311
19317
|
this.repeatingTransactions = [
|
19312
19318
|
...this.repeatingTransactions,
|
19313
|
-
...
|
19319
|
+
...Va(
|
19314
19320
|
this.globalStore.accountStore.visibleAccounts,
|
19315
19321
|
[a],
|
19316
19322
|
this.globalStore.transactionStore.transactions
|
@@ -19341,7 +19347,7 @@ class yC {
|
|
19341
19347
|
K(() => {
|
19342
19348
|
this.repeatingTransactions = [
|
19343
19349
|
...this.repeatingTransactions.slice(0, a),
|
19344
|
-
...
|
19350
|
+
...Va(
|
19345
19351
|
this.globalStore.accountStore.visibleAccounts,
|
19346
19352
|
[i],
|
19347
19353
|
this.globalStore.transactionStore.transactions
|
@@ -19467,15 +19473,15 @@ class TC {
|
|
19467
19473
|
}
|
19468
19474
|
class AC {
|
19469
19475
|
globalStore;
|
19470
|
-
api = new
|
19476
|
+
api = new Pa("/", "");
|
19471
19477
|
userFeatures = [];
|
19472
19478
|
constructor(n) {
|
19473
|
-
this.globalStore = n, this.api = new
|
19479
|
+
this.globalStore = n, this.api = new Pa(n.endpoint, n.sessionToken), Ge(this);
|
19474
19480
|
}
|
19475
19481
|
// DEPRECATED: Initialize api in constructor and use loadUserFeatures instead
|
19476
19482
|
// TODO: Remove this function
|
19477
19483
|
initialize = async (n, i) => {
|
19478
|
-
this.api = new
|
19484
|
+
this.api = new Pa(n, i), await this.loadUserFeatures();
|
19479
19485
|
};
|
19480
19486
|
get userProfile() {
|
19481
19487
|
return this.globalStore.appDataStore.userProfile;
|
@@ -19558,7 +19564,7 @@ class vE {
|
|
19558
19564
|
]), this.globalUiStore.setInitialized(!0);
|
19559
19565
|
};
|
19560
19566
|
}
|
19561
|
-
const
|
19567
|
+
const Ka = ({
|
19562
19568
|
children: e,
|
19563
19569
|
isLast: n = !1,
|
19564
19570
|
onClick: i,
|
@@ -19589,7 +19595,7 @@ const Va = ({
|
|
19589
19595
|
return /* @__PURE__ */ l(j, { children: [
|
19590
19596
|
/* @__PURE__ */ t(wt, { sx: { backgroundColor: "transparent", mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(p, { bold: !0, component: "h2", variant: "XSmall", children: h.actions }) }),
|
19591
19597
|
/* @__PURE__ */ t(
|
19592
|
-
|
19598
|
+
Ka,
|
19593
19599
|
{
|
19594
19600
|
onClick: () => {
|
19595
19601
|
E({ is_hidden: !d.is_hidden }), C(F.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: d.guid });
|
@@ -19600,7 +19606,7 @@ const Va = ({
|
|
19600
19606
|
}
|
19601
19607
|
),
|
19602
19608
|
/* @__PURE__ */ t(
|
19603
|
-
|
19609
|
+
Ka,
|
19604
19610
|
{
|
19605
19611
|
onClick: () => {
|
19606
19612
|
n(!0), C(F.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
|
@@ -19613,7 +19619,7 @@ const Va = ({
|
|
19613
19619
|
}
|
19614
19620
|
),
|
19615
19621
|
m.length > 0 && /* @__PURE__ */ t(
|
19616
|
-
|
19622
|
+
Ka,
|
19617
19623
|
{
|
19618
19624
|
isLast: !0,
|
19619
19625
|
onClick: () => {
|
@@ -19841,7 +19847,7 @@ const Va = ({
|
|
19841
19847
|
};
|
19842
19848
|
}
|
19843
19849
|
}
|
19844
|
-
},
|
19850
|
+
}, za = {
|
19845
19851
|
color: "background.default",
|
19846
19852
|
fontSize: 20,
|
19847
19853
|
gridRow: 1,
|
@@ -19853,12 +19859,12 @@ const Va = ({
|
|
19853
19859
|
} = he(), { selectedMember: a } = Ht(), { accounts: r, connect: o } = I(), s = kc(a, o), c = Os.includes(a.connection_status) ? {
|
19854
19860
|
color: "error.main",
|
19855
19861
|
ctaCopy: s.cta ?? "",
|
19856
|
-
icon: /* @__PURE__ */ t(
|
19862
|
+
icon: /* @__PURE__ */ t(ga, { sx: { ...za } }),
|
19857
19863
|
mainMessage: s.statusName,
|
19858
19864
|
secondaryMessage: `${s.title}.`
|
19859
19865
|
} : {
|
19860
19866
|
color: "success.main",
|
19861
|
-
icon: /* @__PURE__ */ t(wd, { sx: { ...
|
19867
|
+
icon: /* @__PURE__ */ t(wd, { sx: { ...za } }),
|
19862
19868
|
mainMessage: s.statusName,
|
19863
19869
|
secondaryMessage: s.title
|
19864
19870
|
};
|
@@ -19897,7 +19903,7 @@ const Va = ({
|
|
19897
19903
|
Nd,
|
19898
19904
|
{
|
19899
19905
|
sx: {
|
19900
|
-
...
|
19906
|
+
...za,
|
19901
19907
|
color: i === Vr.LIGHT ? "grey.900" : "common.white"
|
19902
19908
|
}
|
19903
19909
|
}
|
@@ -19941,7 +19947,7 @@ const Va = ({
|
|
19941
19947
|
onChange: (b) => c(b.target.value),
|
19942
19948
|
placeholder: e.placeholder,
|
19943
19949
|
value: s,
|
19944
|
-
children: e.options?.map((b) => /* @__PURE__ */ t(
|
19950
|
+
children: e.options?.map((b) => /* @__PURE__ */ t(ua, { value: b.value, children: b.label }, b.value))
|
19945
19951
|
}
|
19946
19952
|
)
|
19947
19953
|
] });
|
@@ -20083,7 +20089,7 @@ const Va = ({
|
|
20083
20089
|
children: /* @__PURE__ */ l(
|
20084
20090
|
xn,
|
20085
20091
|
{
|
20086
|
-
icon: /* @__PURE__ */ t(
|
20092
|
+
icon: /* @__PURE__ */ t(ga, {}),
|
20087
20093
|
severity: "error",
|
20088
20094
|
sx: {
|
20089
20095
|
borderLeft: 5,
|
@@ -20096,7 +20102,7 @@ const Va = ({
|
|
20096
20102
|
}
|
20097
20103
|
},
|
20098
20104
|
children: [
|
20099
|
-
c.title && /* @__PURE__ */ t(
|
20105
|
+
c.title && /* @__PURE__ */ t(Za, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: c.title }),
|
20100
20106
|
/* @__PURE__ */ t(p, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: c.main }),
|
20101
20107
|
c.cta && /* @__PURE__ */ t(
|
20102
20108
|
vs,
|
@@ -20322,7 +20328,7 @@ const Va = ({
|
|
20322
20328
|
)
|
20323
20329
|
] });
|
20324
20330
|
}, WC = A(FC), UC = ({ onBackClick: e, sx: n = {} }) => {
|
20325
|
-
const [i, a] = g.useState(!1), [r, o] = g.useState(!1), { config: s } =
|
20331
|
+
const [i, a] = g.useState(!1), [r, o] = g.useState(!1), { config: s } = fa(), { accounts: c, refreshMembers: d } = ve(), { accounts: _ } = I(), { isCopyLoaded: u, isInitialized: h, setSelectedAccounts: m, selectedAccountGuids: C } = ce(), { isDesktop: f } = xe(), { onEvent: E } = V();
|
20326
20332
|
g.useEffect(() => {
|
20327
20333
|
m(c);
|
20328
20334
|
}, [c]);
|
@@ -21098,7 +21104,7 @@ const ZC = () => {
|
|
21098
21104
|
};
|
21099
21105
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
21100
21106
|
/* @__PURE__ */ t(
|
21101
|
-
|
21107
|
+
cr,
|
21102
21108
|
{
|
21103
21109
|
exclusive: !0,
|
21104
21110
|
onChange: s,
|
@@ -21630,7 +21636,7 @@ const gf = ({
|
|
21630
21636
|
}
|
21631
21637
|
)
|
21632
21638
|
] });
|
21633
|
-
},
|
21639
|
+
}, wa = ({
|
21634
21640
|
amount: e,
|
21635
21641
|
categoryName: n,
|
21636
21642
|
onAmountChanged: i
|
@@ -21681,7 +21687,7 @@ const gf = ({
|
|
21681
21687
|
onClose: () => o(!1),
|
21682
21688
|
onPrimaryAction: () => n(e, Number(s)),
|
21683
21689
|
primaryText: i.add_save_button,
|
21684
|
-
children: /* @__PURE__ */ t(
|
21690
|
+
children: /* @__PURE__ */ t(wa, { amount: s, categoryName: e.name, onAmountChanged: c })
|
21685
21691
|
}
|
21686
21692
|
)
|
21687
21693
|
] });
|
@@ -21791,7 +21797,7 @@ const gf = ({
|
|
21791
21797
|
onPrimaryAction: b,
|
21792
21798
|
primaryText: i.add_save_button,
|
21793
21799
|
children: /* @__PURE__ */ t(
|
21794
|
-
|
21800
|
+
wa,
|
21795
21801
|
{
|
21796
21802
|
amount: h,
|
21797
21803
|
categoryName: C?.name || "",
|
@@ -21858,7 +21864,7 @@ const gf = ({
|
|
21858
21864
|
onPrimaryAction: T,
|
21859
21865
|
primaryText: a.edit_save_button,
|
21860
21866
|
children: /* @__PURE__ */ t(
|
21861
|
-
|
21867
|
+
wa,
|
21862
21868
|
{
|
21863
21869
|
amount: E,
|
21864
21870
|
categoryName: s.category.name,
|
@@ -22001,7 +22007,7 @@ const gf = ({
|
|
22001
22007
|
onPrimaryAction: w,
|
22002
22008
|
primaryText: n.edit_save_button,
|
22003
22009
|
children: /* @__PURE__ */ t(
|
22004
|
-
|
22010
|
+
wa,
|
22005
22011
|
{
|
22006
22012
|
amount: T,
|
22007
22013
|
categoryName: o.category.name,
|
@@ -22268,7 +22274,7 @@ const gf = ({
|
|
22268
22274
|
}), Of = A(() => {
|
22269
22275
|
const e = he(), {
|
22270
22276
|
appDataStore: { banner: n, loadBanner: i, user: a }
|
22271
|
-
} =
|
22277
|
+
} = ya();
|
22272
22278
|
return g.useEffect(() => {
|
22273
22279
|
i().finally();
|
22274
22280
|
}, [a]), n?.image_url ? /* @__PURE__ */ t(
|
@@ -22344,9 +22350,9 @@ const gf = ({
|
|
22344
22350
|
)
|
22345
22351
|
] }) });
|
22346
22352
|
}, Mf = A(Lf);
|
22347
|
-
var
|
22353
|
+
var sr = /* @__PURE__ */ ((e) => (e[e.Main = 0] = "Main", e[e.RightSide = 1] = "RightSide", e))(sr || {});
|
22348
22354
|
const kf = ({ widgets: e, isLoading: n }) => {
|
22349
|
-
const { isDesktop: i, isMobile: a } = xe(), { copyStore: r } =
|
22355
|
+
const { isDesktop: i, isMobile: a } = xe(), { copyStore: r } = ya(), { setSelectedAccounts: o } = ce(), { visibleAccounts: s } = ve();
|
22350
22356
|
g.useEffect(() => {
|
22351
22357
|
o(s);
|
22352
22358
|
}, [s]);
|
@@ -22354,10 +22360,10 @@ const kf = ({ widgets: e, isLoading: n }) => {
|
|
22354
22360
|
() => e.sort((u, h) => u.index - h.index),
|
22355
22361
|
[e]
|
22356
22362
|
), d = g.useMemo(
|
22357
|
-
() => c.filter((u) => u.location ===
|
22363
|
+
() => c.filter((u) => u.location === sr.Main),
|
22358
22364
|
[c]
|
22359
22365
|
), _ = g.useMemo(
|
22360
|
-
() => c.filter((u) => u.location ===
|
22366
|
+
() => c.filter((u) => u.location === sr.RightSide),
|
22361
22367
|
[c]
|
22362
22368
|
);
|
22363
22369
|
return /* @__PURE__ */ l(zt, { container: !0, spacing: a ? 0 : 24, sx: { overflow: "scroll" }, children: [
|
@@ -23078,7 +23084,7 @@ const kf = ({ widgets: e, isLoading: n }) => {
|
|
23078
23084
|
}
|
23079
23085
|
)
|
23080
23086
|
] });
|
23081
|
-
}, Hf = A(Bf),
|
23087
|
+
}, Hf = A(Bf), Ya = ({ title: e }) => /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e }), kE = A(({ onBackClick: e, sx: n }) => {
|
23082
23088
|
const { onEvent: i } = V(), { isMobile: a } = xe(), { visibleInvestmentAccounts: r } = ve(), { investments: o } = I(), { isCopyLoaded: s, isInitialized: c } = ce(), [d, _] = g.useState(0), { loadHoldings: u } = js();
|
23083
23089
|
g.useEffect(() => {
|
23084
23090
|
c && u().finally();
|
@@ -23106,21 +23112,21 @@ const kf = ({ widgets: e, isLoading: n }) => {
|
|
23106
23112
|
/* @__PURE__ */ t(
|
23107
23113
|
Le,
|
23108
23114
|
{
|
23109
|
-
label: /* @__PURE__ */ t(
|
23115
|
+
label: /* @__PURE__ */ t(Ya, { title: o.tab_overview_title }),
|
23110
23116
|
sx: { "&.Mui-selected": { color: "primary.light" } }
|
23111
23117
|
}
|
23112
23118
|
),
|
23113
23119
|
/* @__PURE__ */ t(
|
23114
23120
|
Le,
|
23115
23121
|
{
|
23116
|
-
label: /* @__PURE__ */ t(
|
23122
|
+
label: /* @__PURE__ */ t(Ya, { title: o.tab_allocation_title }),
|
23117
23123
|
sx: { "&.Mui-selected": { color: "primary.light" } }
|
23118
23124
|
}
|
23119
23125
|
),
|
23120
23126
|
/* @__PURE__ */ t(
|
23121
23127
|
Le,
|
23122
23128
|
{
|
23123
|
-
label: /* @__PURE__ */ t(
|
23129
|
+
label: /* @__PURE__ */ t(Ya, { title: o.tab_analysis_title }),
|
23124
23130
|
sx: { "&.Mui-selected": { color: "primary.light" } }
|
23125
23131
|
}
|
23126
23132
|
)
|
@@ -23358,7 +23364,7 @@ const Gi = g.createContext(null), zf = ({
|
|
23358
23364
|
onPageview: n,
|
23359
23365
|
store: i,
|
23360
23366
|
children: a
|
23361
|
-
}) => /* @__PURE__ */ t(Gi.Provider, { value: { onEvent: e, onPageview: n, store: i, children: a }, children: a }),
|
23367
|
+
}) => /* @__PURE__ */ t(Gi.Provider, { value: { onEvent: e, onPageview: n, store: i, children: a }, children: a }), Na = g.forwardRef(
|
23362
23368
|
function({
|
23363
23369
|
actionText: n,
|
23364
23370
|
ariaLabel: i,
|
@@ -24427,7 +24433,7 @@ const Gi = g.createContext(null), zf = ({
|
|
24427
24433
|
});
|
24428
24434
|
};
|
24429
24435
|
return /* @__PURE__ */ t(
|
24430
|
-
|
24436
|
+
Na,
|
24431
24437
|
{
|
24432
24438
|
actionText: i.micro_call_to_action || E.micro_card_cta,
|
24433
24439
|
ariaLabel: e,
|
@@ -24774,7 +24780,7 @@ const Gi = g.createContext(null), zf = ({
|
|
24774
24780
|
});
|
24775
24781
|
};
|
24776
24782
|
return /* @__PURE__ */ t(
|
24777
|
-
|
24783
|
+
Na,
|
24778
24784
|
{
|
24779
24785
|
actionText: u.micro_card_cta,
|
24780
24786
|
ariaLabel: e,
|
@@ -24821,7 +24827,7 @@ const Gi = g.createContext(null), zf = ({
|
|
24821
24827
|
return g.useEffect(() => {
|
24822
24828
|
_(Mn.MICRO_WIDGET_CAROUSEL_ZERO_STATE);
|
24823
24829
|
}, []), /* @__PURE__ */ t(
|
24824
|
-
|
24830
|
+
Na,
|
24825
24831
|
{
|
24826
24832
|
ariaLabel: e,
|
24827
24833
|
description: u.carousel_zero_state_description,
|
@@ -24858,7 +24864,7 @@ const Gi = g.createContext(null), zf = ({
|
|
24858
24864
|
justifyContent: "center",
|
24859
24865
|
width: "100%"
|
24860
24866
|
},
|
24861
|
-
children: /* @__PURE__ */ t(
|
24867
|
+
children: /* @__PURE__ */ t(lr, {})
|
24862
24868
|
}
|
24863
24869
|
), fn = new Kf(), h0 = ({
|
24864
24870
|
areBeatsLoading: e,
|
@@ -24966,7 +24972,7 @@ const Gi = g.createContext(null), zf = ({
|
|
24966
24972
|
});
|
24967
24973
|
};
|
24968
24974
|
return /* @__PURE__ */ t(
|
24969
|
-
|
24975
|
+
Na,
|
24970
24976
|
{
|
24971
24977
|
actionText: m.micro_card_cta,
|
24972
24978
|
ariaLabel: n,
|
@@ -25193,7 +25199,7 @@ const Gi = g.createContext(null), zf = ({
|
|
25193
25199
|
const { recurring: i } = I(), [a, r] = g.useState(!1), o = g.useMemo(
|
25194
25200
|
() => n.transactions.length === 0 ? "" : n.transactions[0].category_guid || "",
|
25195
25201
|
[n]
|
25196
|
-
), s = n.account?.institutionName || "", c = n.repeating_transaction_type === on.Income, d =
|
25202
|
+
), s = n.account?.institutionName || "", c = n.repeating_transaction_type === on.Income, d = or(
|
25197
25203
|
i,
|
25198
25204
|
Ri(n.predicted_occurs_on),
|
25199
25205
|
n.recurrence_type
|
@@ -25332,7 +25338,7 @@ const Gi = g.createContext(null), zf = ({
|
|
25332
25338
|
const h = Oe(s.date);
|
25333
25339
|
switch (Number(u.target.value)) {
|
25334
25340
|
case Ae.EveryWeek:
|
25335
|
-
o(
|
25341
|
+
o(pa(h));
|
25336
25342
|
break;
|
25337
25343
|
case Ae.EveryOtherWeek:
|
25338
25344
|
o(Gs(h));
|
@@ -25357,8 +25363,8 @@ const Gi = g.createContext(null), zf = ({
|
|
25357
25363
|
};
|
25358
25364
|
return /* @__PURE__ */ l(y, { bgcolor: e, gap: 24, height: "100%", children: [
|
25359
25365
|
/* @__PURE__ */ l(y, { children: [
|
25360
|
-
/* @__PURE__ */ t(
|
25361
|
-
/* @__PURE__ */ t(
|
25366
|
+
/* @__PURE__ */ t(Sa, { bgcolor: e, children: Oi(s.date) }),
|
25367
|
+
/* @__PURE__ */ t(Ea, { transaction: s })
|
25362
25368
|
] }),
|
25363
25369
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mx: 24 }, variant: "Body", children: i ? c.income_schedule : c.expense_schedule }),
|
25364
25370
|
/* @__PURE__ */ t(
|
@@ -25375,11 +25381,11 @@ const Gi = g.createContext(null), zf = ({
|
|
25375
25381
|
sx: { mx: 24 },
|
25376
25382
|
value: n,
|
25377
25383
|
variant: "outlined",
|
25378
|
-
children: d.map((u) => /* @__PURE__ */ t(
|
25384
|
+
children: d.map((u) => /* @__PURE__ */ t(ua, { value: u.id, children: u.label }, u.id))
|
25379
25385
|
}
|
25380
25386
|
),
|
25381
25387
|
/* @__PURE__ */ t(Nn, { dateAdapter: gn, children: /* @__PURE__ */ t(
|
25382
|
-
|
25388
|
+
da,
|
25383
25389
|
{
|
25384
25390
|
disablePast: !0,
|
25385
25391
|
label: i ? c.income_date_label : c.expense_date_label,
|
@@ -25536,17 +25542,17 @@ const Gi = g.createContext(null), zf = ({
|
|
25536
25542
|
e === 0 && /* @__PURE__ */ t(y0, {}),
|
25537
25543
|
e === 1 && /* @__PURE__ */ t(E0, {})
|
25538
25544
|
] });
|
25539
|
-
}),
|
25545
|
+
}), Da = {
|
25540
25546
|
gridRow: 1,
|
25541
25547
|
gridColumn: 1,
|
25542
25548
|
zIndex: 2
|
25543
|
-
},
|
25549
|
+
}, Ra = (e) => e ? { margin: "0 0 -6px -4px" } : void 0, Br = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Ra(e) }, children: /* @__PURE__ */ t(Zl, { color: "primary", filled: !0, sx: { fontSize: n, ...Da } }) }), Hr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Ra(e) }, children: /* @__PURE__ */ t(
|
25544
25550
|
Ql,
|
25545
25551
|
{
|
25546
25552
|
filled: !0,
|
25547
|
-
sx: { color: "categories.income", fontSize: n, ...
|
25553
|
+
sx: { color: "categories.income", fontSize: n, ...Da }
|
25548
25554
|
}
|
25549
|
-
) }), $r = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...
|
25555
|
+
) }), $r = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Ra(e) }, children: /* @__PURE__ */ t(Es, { color: "error", filled: !0, sx: { fontSize: n, ...Da } }) }), Fr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Ra(e) }, children: /* @__PURE__ */ t(ra, { color: "success", filled: !0, sx: { fontSize: n, ...Da } }) }), T0 = A(
|
25550
25556
|
({ day: e, outsideCurrentMonth: n, ...i }) => {
|
25551
25557
|
const { recurring: a } = I(), { selectedAccountGuids: r } = ce(), { recurrences: o, setSelectedDay: s } = Pt(), d = g.useMemo(
|
25552
25558
|
() => o.filter((f) => r.includes(f.accountGuid)),
|
@@ -25725,7 +25731,7 @@ const Gi = g.createContext(null), zf = ({
|
|
25725
25731
|
[e]
|
25726
25732
|
), _ = e.type === Yt.Income, u = e.status === Je.Paid, h = e.status === Je.Missed, m = e.status === Je.Upcoming;
|
25727
25733
|
let C = r.paid?.toLowerCase();
|
25728
|
-
return h ? C = r.missed?.toLowerCase() : m && (C = a ?
|
25734
|
+
return h ? C = r.missed?.toLowerCase() : m && (C = a ? or(r, e.expectedDate, e.frequency) : or(r, null, e.frequency)), /* @__PURE__ */ l(Y, { disableGutters: !0, disablePadding: !0, children: [
|
25729
25735
|
/* @__PURE__ */ l(de, { onClick: () => {
|
25730
25736
|
c(!0), i(e);
|
25731
25737
|
}, children: [
|
@@ -26071,7 +26077,7 @@ const Gi = g.createContext(null), zf = ({
|
|
26071
26077
|
}
|
26072
26078
|
);
|
26073
26079
|
}
|
26074
|
-
),
|
26080
|
+
), ja = 5, N0 = (e, n) => n.reduce((i, a) => {
|
26075
26081
|
if (a.total > 0) {
|
26076
26082
|
const r = e.find((_) => _.guid === a.category_guid);
|
26077
26083
|
if (!r) return i;
|
@@ -26096,14 +26102,14 @@ const Gi = g.createContext(null), zf = ({
|
|
26096
26102
|
const i = N0(e, n), a = i.filter((d) => d.guid !== N.INCOME && d.guid !== N.TRANSFER).sort((d, _) => _.amount - d.amount), r = a.reduce(
|
26097
26103
|
(d, _) => d + _.amount,
|
26098
26104
|
0
|
26099
|
-
), o = a.length >
|
26105
|
+
), o = a.length > ja ? ja : a.length, s = a.slice(0, o), c = s.map((d) => ({
|
26100
26106
|
id: d.guid,
|
26101
26107
|
color: d.color,
|
26102
26108
|
label: d.name,
|
26103
26109
|
value: d.amount / r * 100
|
26104
26110
|
}));
|
26105
26111
|
if (a.length > 5) {
|
26106
|
-
const d = a.slice(
|
26112
|
+
const d = a.slice(ja, i.length), _ = d.reduce(
|
26107
26113
|
(u, h) => u + h.amount,
|
26108
26114
|
0
|
26109
26115
|
);
|
@@ -26390,7 +26396,7 @@ const Gi = g.createContext(null), zf = ({
|
|
26390
26396
|
}
|
26391
26397
|
),
|
26392
26398
|
/* @__PURE__ */ t(k, {}),
|
26393
|
-
s.categoryTotals && s.categoryTotals.length > 0 && /* @__PURE__ */ t(
|
26399
|
+
s.categoryTotals && s.categoryTotals.length > 0 && /* @__PURE__ */ t(ha, { in: o?.guid === s.guid, unmountOnExit: !0, children: /* @__PURE__ */ l(ie, { children: [
|
26394
26400
|
o?.categoryTotals?.map((c) => /* @__PURE__ */ t(
|
26395
26401
|
Y,
|
26396
26402
|
{
|
@@ -26609,7 +26615,7 @@ const Gi = g.createContext(null), zf = ({
|
|
26609
26615
|
children: /* @__PURE__ */ t(L, { height: "calc(100dvh - 150px)", overflow: "scroll", width: "100%", children: /* @__PURE__ */ t(H0, {}) })
|
26610
26616
|
}
|
26611
26617
|
);
|
26612
|
-
}, WE = A($0), F0 = (e) => kn[e] ?? kn.default, W0 = (e) =>
|
26618
|
+
}, WE = A($0), F0 = (e) => kn[e] ?? kn.default, W0 = (e) => ma[e];
|
26613
26619
|
function U0(e, n) {
|
26614
26620
|
const i = [], a = new Date(e);
|
26615
26621
|
for (; a <= n; ) {
|
@@ -26648,7 +26654,7 @@ const V0 = (e) => e.reduce((i, a) => {
|
|
26648
26654
|
const n = e.row[e.field];
|
26649
26655
|
return /* @__PURE__ */ t(y, { alignItems: "flex-end", tabIndex: e.tabIndex, children: /* @__PURE__ */ t(Ue, { amount: n, variant: "Small" }) });
|
26650
26656
|
}, j0 = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
26651
|
-
const { categories: i } = I(), a =
|
26657
|
+
const { categories: i } = I(), a = ma[e];
|
26652
26658
|
return /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "center", children: [
|
26653
26659
|
/* @__PURE__ */ t(
|
26654
26660
|
L,
|
@@ -26808,7 +26814,7 @@ const V0 = (e) => e.reduce((i, a) => {
|
|
26808
26814
|
) : im(Re);
|
26809
26815
|
return {
|
26810
26816
|
stackedDatasets: ut.filter(tm),
|
26811
|
-
unstackedDatasets: ut.filter(
|
26817
|
+
unstackedDatasets: ut.filter(va)
|
26812
26818
|
};
|
26813
26819
|
}, [_, O, X]), we = g.useMemo(() => {
|
26814
26820
|
const Re = ne(
|
@@ -26884,7 +26890,7 @@ const V0 = (e) => e.reduce((i, a) => {
|
|
26884
26890
|
/* @__PURE__ */ t(p, { variant: r ? "Body" : "Small", children: we })
|
26885
26891
|
] }),
|
26886
26892
|
/* @__PURE__ */ t(
|
26887
|
-
|
26893
|
+
cr,
|
26888
26894
|
{
|
26889
26895
|
exclusive: !0,
|
26890
26896
|
onChange: re,
|
@@ -26986,7 +26992,7 @@ const V0 = (e) => e.reduce((i, a) => {
|
|
26986
26992
|
}
|
26987
26993
|
);
|
26988
26994
|
}, ab = A(ib), rb = ({ onPrimaryCtaClick: e, sx: n }) => {
|
26989
|
-
const { loadMonthlyCategoryTotals: i, monthlyTotalsLoaded: a } = We(), { isInitialized: r } =
|
26995
|
+
const { loadMonthlyCategoryTotals: i, monthlyTotalsLoaded: a } = We(), { isInitialized: r } = ya(), { trends: o } = I(), { isCopyLoaded: s, selectedAccounts: c } = ce();
|
26990
26996
|
return g.useEffect(() => {
|
26991
26997
|
r && i(c).finally();
|
26992
26998
|
}, [r, c]), s ? /* @__PURE__ */ t(
|
@@ -27039,12 +27045,12 @@ export {
|
|
27039
27045
|
fE as CashflowWidget,
|
27040
27046
|
oo as CategoryApi,
|
27041
27047
|
kn as CategoryColors,
|
27042
|
-
|
27048
|
+
ma as CategoryGuidToName,
|
27043
27049
|
N as CategoryGuids,
|
27044
27050
|
Kd as CategoryIcon,
|
27045
27051
|
ic as CategoryRow,
|
27046
27052
|
J_ as CategorySelector,
|
27047
|
-
|
27053
|
+
Aa as CategorySelectorDrawer,
|
27048
27054
|
ah as CategoryStore,
|
27049
27055
|
Zf as ChartFilledIcon,
|
27050
27056
|
Js as ConnectCard,
|
@@ -27059,7 +27065,7 @@ export {
|
|
27059
27065
|
Ms as DEFAULT_DONUT_SIZE,
|
27060
27066
|
ks as DEFAULT_STROKE_WIDTH,
|
27061
27067
|
ME as Dashboard,
|
27062
|
-
|
27068
|
+
sr as DashboardLocation,
|
27063
27069
|
Bn as DataRow,
|
27064
27070
|
go as DateRangeSelector,
|
27065
27071
|
Ic as DebtsChart,
|
@@ -27083,7 +27089,7 @@ export {
|
|
27083
27089
|
vE as GlobalStore,
|
27084
27090
|
Ho as GoalApi,
|
27085
27091
|
pp as GoalStore,
|
27086
|
-
|
27092
|
+
nr as GoalType,
|
27087
27093
|
EE as GoalsWidget,
|
27088
27094
|
x1 as HelpContent,
|
27089
27095
|
v1 as HelpList,
|
@@ -27108,7 +27114,7 @@ export {
|
|
27108
27114
|
At as MetaType,
|
27109
27115
|
Ds as MfaStatuses,
|
27110
27116
|
s0 as MicroBeatCarousel,
|
27111
|
-
|
27117
|
+
Na as MicroInsightCard,
|
27112
27118
|
Dn as MiniWidgetContainer,
|
27113
27119
|
e0 as MonthlySpendComparisonIcon,
|
27114
27120
|
dE as MultiSegmentDonut,
|
@@ -27166,14 +27172,14 @@ export {
|
|
27166
27172
|
hn as TOUCH_TARGET,
|
27167
27173
|
z as TRANSACTION_EVENTS,
|
27168
27174
|
ri as TabContentContainer,
|
27169
|
-
|
27175
|
+
Ja as ToggleButtonListItem,
|
27170
27176
|
Jn as ToggleListItem,
|
27171
27177
|
gi as TopActions,
|
27172
27178
|
U as TrackType,
|
27173
27179
|
Ji as TransactionApi,
|
27174
27180
|
Yn as TransactionDetails,
|
27175
27181
|
mn as TransactionList,
|
27176
|
-
|
27182
|
+
Ea as TransactionRow,
|
27177
27183
|
rC as TransactionRulesTab,
|
27178
27184
|
Sr as TransactionStatus,
|
27179
27185
|
f_ as TransactionStore,
|
@@ -27182,7 +27188,7 @@ export {
|
|
27182
27188
|
mE as TransactionWidget,
|
27183
27189
|
UE as TrendsFullWidget,
|
27184
27190
|
VE as TrendsMiniWidget,
|
27185
|
-
|
27191
|
+
Pa as UserApi,
|
27186
27192
|
AC as UserStore,
|
27187
27193
|
h_ as UserVerification,
|
27188
27194
|
m0 as ViewMoreMicroCard,
|
@@ -27199,7 +27205,7 @@ export {
|
|
27199
27205
|
P as formatCurrency,
|
27200
27206
|
ne as formatDate,
|
27201
27207
|
Fs as formatOrdinal,
|
27202
|
-
|
27208
|
+
Ca as formatPercentage,
|
27203
27209
|
$s as fromTimestampToMonthYear,
|
27204
27210
|
yc as getAccountBalanceDetails,
|
27205
27211
|
vg as getAccountDetailFields,
|
@@ -27212,21 +27218,21 @@ export {
|
|
27212
27218
|
Pn as getLocale,
|
27213
27219
|
AE as getNotificationDetailRoute,
|
27214
27220
|
nE as isIncome,
|
27215
|
-
|
27221
|
+
Qa as isValidNumber,
|
27216
27222
|
ve as useAccountStore,
|
27217
27223
|
Ht as useAccountUiStore,
|
27218
|
-
|
27224
|
+
fa as useAppConfig,
|
27219
27225
|
st as useBudgetsStore,
|
27220
27226
|
br as useCashflowStore,
|
27221
27227
|
We as useCategoryStore,
|
27222
27228
|
pn as useCategoryUiStore,
|
27223
27229
|
iu as useCombineEvents,
|
27224
27230
|
au as useCombinePageviews,
|
27225
|
-
|
27231
|
+
ba as useDebtStore,
|
27226
27232
|
V as useEvent,
|
27227
27233
|
IC as useGetMergeableAccounts,
|
27228
27234
|
I as useGlobalCopyStore,
|
27229
|
-
|
27235
|
+
ya as useGlobalStore,
|
27230
27236
|
ce as useGlobalUiStore,
|
27231
27237
|
nt as useGoalStore,
|
27232
27238
|
yr as useHelpStore,
|