@mx-cartographer/experiences 6.2.1-alpha.al2 → 6.2.1-alpha.al4
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 +218 -221
- 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 ja 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 Xa } 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 sr 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 cr 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";
|
100
99
|
import { AdapterDateFns as gn } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
101
|
-
import { DatePicker as
|
100
|
+
import { DatePicker as la } from "@mui/x-date-pickers";
|
102
101
|
import { LocalizationProvider as Nn } from "@mui/x-date-pickers/LocalizationProvider";
|
103
102
|
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 da 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 ua 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 _a 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 qa from "@mui/material/AlertTitle";
|
134
|
+
import ha 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
|
+
], ga = {
|
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
|
+
}, ma = (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 = ma(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 = ma(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
|
+
}, Za = (e) => e != null && e !== "" && isFinite(e), Jd = {
|
966
966
|
style: "percent",
|
967
967
|
minimumFractionDigits: 2,
|
968
968
|
maximumFractionDigits: 2
|
969
|
-
},
|
969
|
+
}, pa = (e, n = Jd) => Za(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 Ga {
|
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 Pa = (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 Ba = (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
|
+
ja,
|
1272
1272
|
{
|
1273
1273
|
control: /* @__PURE__ */ t(
|
1274
1274
|
Ki,
|
@@ -1339,7 +1339,7 @@ const Ba = (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
|
+
ja,
|
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
|
+
Pa(e, r)
|
1439
1439
|
);
|
1440
1440
|
g.useEffect(() => {
|
1441
|
-
m(
|
1441
|
+
m(Pa(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(Pa(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, Ca = () => 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, fa = () => je("useDebtsStore").globalStore.debtsStore, ba = () => 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), Ra = _n && se?.dataIndex !== void 0, Oa = _n && se?.dataIndex === void 0;
|
2464
|
+
if (Ra)
|
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 (Oa) {
|
2472
|
+
const di = _n?.data.map((La, Ma) => ({
|
2473
|
+
x: H[Ma],
|
2474
|
+
y: La
|
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 ? Xa(Xr(we), 1) : ei(Xr(we), 1), Z[1] = Se ? Xa(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
|
+
sr,
|
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(cr, { 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(cr, { 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
|
+
ja,
|
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 } = Ca(), [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
|
+
}, Qa = ({
|
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
|
+
}, Ja = (e, n) => e.find((i) => i.guid === n), Ju = (e, n, i) => {
|
4193
|
+
const a = Ja(e, i);
|
4194
4194
|
if (a)
|
4195
|
-
return
|
4195
|
+
return Ja(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 = Ja(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]), er = {
|
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 === er.DATE || n === er.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 || {}), tr = /* @__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))(tr || {}), 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 = er.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": ga[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
|
+
}, ya = A(T_), Ea = ({
|
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(Ea, { bgcolor: e, children: Oi(w.date) }),
|
5360
|
+
/* @__PURE__ */ t(ya, { 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 Sa = /* @__PURE__ */ ((e) => (e.ADD = "add", e.EDIT = "edit", e.DELETE = "delete", e))(Sa || {});
|
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: Sa.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: Sa.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: Sa.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(ua, { 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
|
+
_a,
|
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
|
+
}, Ta = 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 ?? ga[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
|
+
Ta,
|
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
|
+
Ta,
|
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(da, { 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
|
+
Ta,
|
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((ka) => ka.guid),
|
7312
|
+
custom: (ka) => !ka.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, Ra = (at) => {
|
7327
7327
|
re(at[0], at[1]);
|
7328
|
-
},
|
7328
|
+
}, Oa = (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
|
+
}, La = () => {
|
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
|
+
}, Ma = 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: La
|
7367
7367
|
}
|
7368
7368
|
],
|
7369
7369
|
calendarActions: {
|
7370
|
-
onRangeChanged:
|
7370
|
+
onRangeChanged: Ra
|
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: Oa,
|
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: Ma,
|
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), Aa = {
|
7758
7758
|
gridRow: 1,
|
7759
7759
|
gridColumn: 1,
|
7760
7760
|
zIndex: 2
|
7761
|
-
},
|
7762
|
-
let a = n &&
|
7761
|
+
}, Ia = (e) => e ? { margin: "0 0 -6px -4px" } : void 0, Ar = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Ia(e) }, children: /* @__PURE__ */ t(Td, { color: "primary", sx: { fontSize: n, ...Aa } }) }), Ir = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Ia(e) }, children: /* @__PURE__ */ t(Ad, { sx: { color: "categories.income", fontSize: n, ...Aa } }) }), xr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Ia(e) }, children: /* @__PURE__ */ t(Yi, { color: "error", sx: { fontSize: n, ...Aa } }) }), vr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Ia(e) }, children: /* @__PURE__ */ t(ua, { color: "success", sx: { fontSize: n, ...Aa } }) }), No = ({ copy: e, date: n, type: i }) => {
|
7762
|
+
let a = n && lr(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(ma(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(Ea, { bgcolor: e, children: Oi(s.date) }),
|
8058
|
+
/* @__PURE__ */ t(ya, { 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(da, { value: u.id, children: u.label }, u.id))
|
8076
8076
|
}
|
8077
8077
|
),
|
8078
8078
|
/* @__PURE__ */ t(Nn, { dateAdapter: gn, children: /* @__PURE__ */ t(
|
8079
|
-
|
8079
|
+
la,
|
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), nr = (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
|
+
}, ir = (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 ? nr(C) : void 0,
|
8221
8221
|
institutionGuid: C?.institution_guid,
|
8222
8222
|
merchantGuid: m?.merchant_guid || void 0,
|
8223
|
-
recurrenceType:
|
8223
|
+
recurrenceType: ir(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 ? nr(f) : void 0,
|
8251
8251
|
institutionGuid: f?.institution_guid,
|
8252
8252
|
merchantGuid: C?.merchant_guid || void 0,
|
8253
|
-
recurrenceType:
|
8253
|
+
recurrenceType: ir(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 ? nr(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: ir(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, Ba = (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
|
+
}), Ha = (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(Ha), f = o.filter(Ha), E = r.filter(Ha), 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(Ba).reduce(_i, 0), R = f.filter(Ba).reduce(_i, 0), D = C.filter(Ba).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(ha, { 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) => Za(o) ? "" : n.error_amount_is_invalid,
|
9135
|
+
valueFormatter: (o) => Za(o) ? pa(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(Ea, { bgcolor: "background.paper", children: Oi(
|
9965
9965
|
Ne(_e.nextDate || _e.date)
|
9966
9966
|
) }),
|
9967
|
-
/* @__PURE__ */ t(
|
9967
|
+
/* @__PURE__ */ t(ya, { 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 fa().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
|
+
}, xa = (e) => e.top_level_category_guid === N.INCOME || e.category_guid === N.INCOME, tm = (e) => !xa(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) => !xa(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(xa);
|
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 } = ba(), { 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: pa(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: pa(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(ha, {}) : /* @__PURE__ */ t(ua, { 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(qa, { 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(qa, { 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 } = fa(), { 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(ua, { 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 } = fa(), { 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 } = fa(), 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 $a({ 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
|
+
pa(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
|
+
}, Fa = 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(_a, { 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: tr.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: tr.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 && lr(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
|
+
la,
|
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($a, { 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($a, { 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($a, { 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(Fa, { onAddGoals: Z, trackType: U.SAVINGS_TRACK }),
|
12931
|
+
T === 1 && /* @__PURE__ */ t(Fa, { onAddGoals: Z, trackType: U.DEBT_TRACK }),
|
12932
|
+
T === 2 && /* @__PURE__ */ t(Fa, { 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(_a, { 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
|
+
}, ar = ({
|
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
|
+
ar,
|
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
|
+
ar,
|
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
|
+
ar,
|
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
|
+
}, Wa = {
|
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(Wa), 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(Wa), 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(Wa));
|
17334
17334
|
},
|
17335
17335
|
secondaryColor: "primary",
|
17336
17336
|
title: e.request_support,
|
@@ -17877,13 +17877,9 @@ 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 } = Ca(), { 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
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 () => {
|
17882
|
+
), O = f && !_.email_is_verified, M = b && !_.phone_is_verified, X = async () => {
|
17887
17883
|
const W = {
|
17888
17884
|
..._,
|
17889
17885
|
first_name: u,
|
@@ -17964,10 +17960,10 @@ const l1 = ({
|
|
17964
17960
|
] }),
|
17965
17961
|
/* @__PURE__ */ l(y, { direction: r ? "column" : "row", spacing: r ? 44 : 24, sx: { mb: 44 }, children: [
|
17966
17962
|
/* @__PURE__ */ t(Nn, { dateAdapter: gn, children: /* @__PURE__ */ t(
|
17967
|
-
|
17963
|
+
la,
|
17968
17964
|
{
|
17969
17965
|
label: i.birthdate,
|
17970
|
-
onChange:
|
17966
|
+
onChange: H,
|
17971
17967
|
slotProps: {
|
17972
17968
|
nextIconButton: {
|
17973
17969
|
sx: {
|
@@ -17989,6 +17985,7 @@ const l1 = ({
|
|
17989
17985
|
"&:hover": { backgroundColor: Tn(e.palette.primary.light, 0.1) }
|
17990
17986
|
}
|
17991
17987
|
},
|
17988
|
+
timezone: "UTC",
|
17992
17989
|
value: D
|
17993
17990
|
}
|
17994
17991
|
) }),
|
@@ -18433,7 +18430,7 @@ const X1 = ({
|
|
18433
18430
|
}
|
18434
18431
|
),
|
18435
18432
|
/* @__PURE__ */ t(
|
18436
|
-
|
18433
|
+
Ta,
|
18437
18434
|
{
|
18438
18435
|
initialSelected: i?.category_guid ? i.category_guid : void 0,
|
18439
18436
|
onClose: s,
|
@@ -18638,7 +18635,7 @@ const X1 = ({
|
|
18638
18635
|
};
|
18639
18636
|
return /* @__PURE__ */ l(y, { children: [
|
18640
18637
|
/* @__PURE__ */ t(
|
18641
|
-
|
18638
|
+
Qa,
|
18642
18639
|
{
|
18643
18640
|
isChecked: n.is_enabled,
|
18644
18641
|
onClick: () => c(!0),
|
@@ -18781,7 +18778,7 @@ const X1 = ({
|
|
18781
18778
|
] }),
|
18782
18779
|
/* @__PURE__ */ t(mt, { mb: 24, children: n.accounts_title }),
|
18783
18780
|
a.map((m) => /* @__PURE__ */ t(
|
18784
|
-
|
18781
|
+
Qa,
|
18785
18782
|
{
|
18786
18783
|
isChecked: m.is_enabled,
|
18787
18784
|
isDisabled: !m.is_enabled,
|
@@ -18798,7 +18795,7 @@ const X1 = ({
|
|
18798
18795
|
/* @__PURE__ */ t(k, { sx: { my: 24 } }),
|
18799
18796
|
/* @__PURE__ */ t(mt, { mb: 24, children: n.budgets_title }),
|
18800
18797
|
r.map((m) => /* @__PURE__ */ t(
|
18801
|
-
|
18798
|
+
Qa,
|
18802
18799
|
{
|
18803
18800
|
isChecked: m.is_enabled,
|
18804
18801
|
isDisabled: !m.is_enabled,
|
@@ -18824,7 +18821,7 @@ const X1 = ({
|
|
18824
18821
|
)
|
18825
18822
|
] });
|
18826
18823
|
}), IE = A(({ onBackClick: e, sx: n }) => {
|
18827
|
-
const { settings: i } = I(), { isCopyLoaded: a, isInitialized: r } = ce(), { config: o } =
|
18824
|
+
const { settings: i } = I(), { isCopyLoaded: a, isInitialized: r } = ce(), { config: o } = Ca(), { alert: s, setAlert: c } = Bt(), { isMobile: d } = xe(), {
|
18828
18825
|
display_user_profile_in_settings: _,
|
18829
18826
|
display_mobile_devices_in_settings: u,
|
18830
18827
|
display_notification_settings_in_settings: h,
|
@@ -19155,7 +19152,7 @@ const lC = (e) => {
|
|
19155
19152
|
return a;
|
19156
19153
|
}, CC = (e, n, i) => {
|
19157
19154
|
const a = [], r = e.expectedDate;
|
19158
|
-
let o = Te(r, i) ? r :
|
19155
|
+
let o = Te(r, i) ? r : Xa(r, 1);
|
19159
19156
|
for (; Te(o, i); )
|
19160
19157
|
Zt(o, n) && a.push({ ...e, expectedDate: o }), o = ei(o, 1);
|
19161
19158
|
return a;
|
@@ -19168,7 +19165,7 @@ const lC = (e) => {
|
|
19168
19165
|
return n.sort(
|
19169
19166
|
(i, a) => Ne(i.occurredOnDate || i.expectedDate) - Ne(a.occurredOnDate || a.expectedDate)
|
19170
19167
|
);
|
19171
|
-
},
|
19168
|
+
}, Ua = (e, n, i) => {
|
19172
19169
|
const a = [];
|
19173
19170
|
for (const r of n) {
|
19174
19171
|
const o = i.filter(
|
@@ -19190,8 +19187,8 @@ const lC = (e) => {
|
|
19190
19187
|
id: `date-${a}`,
|
19191
19188
|
recurrences: [i]
|
19192
19189
|
}), n;
|
19193
|
-
}, []),
|
19194
|
-
let a = n &&
|
19190
|
+
}, []), rr = (e, n, i) => {
|
19191
|
+
let a = n && lr(n) ? S(e.monthly_ordinal, On(n, Ln)) : e.monthly;
|
19195
19192
|
switch (i) {
|
19196
19193
|
case Ae.EveryQuarter:
|
19197
19194
|
a = n ? S(e.quarterly_ordinal, On(n, Ln)) : e.quarterly;
|
@@ -19297,7 +19294,7 @@ class yC {
|
|
19297
19294
|
try {
|
19298
19295
|
const n = await this.api.getRepeatingTransactions();
|
19299
19296
|
K(() => {
|
19300
|
-
this.repeatingTransactions =
|
19297
|
+
this.repeatingTransactions = Ua(
|
19301
19298
|
this.globalStore.accountStore.visibleAccounts,
|
19302
19299
|
n,
|
19303
19300
|
this.globalStore.transactionStore.transactions
|
@@ -19316,7 +19313,7 @@ class yC {
|
|
19316
19313
|
}), K(() => {
|
19317
19314
|
this.repeatingTransactions = [
|
19318
19315
|
...this.repeatingTransactions,
|
19319
|
-
...
|
19316
|
+
...Ua(
|
19320
19317
|
this.globalStore.accountStore.visibleAccounts,
|
19321
19318
|
[a],
|
19322
19319
|
this.globalStore.transactionStore.transactions
|
@@ -19347,7 +19344,7 @@ class yC {
|
|
19347
19344
|
K(() => {
|
19348
19345
|
this.repeatingTransactions = [
|
19349
19346
|
...this.repeatingTransactions.slice(0, a),
|
19350
|
-
...
|
19347
|
+
...Ua(
|
19351
19348
|
this.globalStore.accountStore.visibleAccounts,
|
19352
19349
|
[i],
|
19353
19350
|
this.globalStore.transactionStore.transactions
|
@@ -19473,15 +19470,15 @@ class TC {
|
|
19473
19470
|
}
|
19474
19471
|
class AC {
|
19475
19472
|
globalStore;
|
19476
|
-
api = new
|
19473
|
+
api = new Ga("/", "");
|
19477
19474
|
userFeatures = [];
|
19478
19475
|
constructor(n) {
|
19479
|
-
this.globalStore = n, this.api = new
|
19476
|
+
this.globalStore = n, this.api = new Ga(n.endpoint, n.sessionToken), Ge(this);
|
19480
19477
|
}
|
19481
19478
|
// DEPRECATED: Initialize api in constructor and use loadUserFeatures instead
|
19482
19479
|
// TODO: Remove this function
|
19483
19480
|
initialize = async (n, i) => {
|
19484
|
-
this.api = new
|
19481
|
+
this.api = new Ga(n, i), await this.loadUserFeatures();
|
19485
19482
|
};
|
19486
19483
|
get userProfile() {
|
19487
19484
|
return this.globalStore.appDataStore.userProfile;
|
@@ -19564,7 +19561,7 @@ class vE {
|
|
19564
19561
|
]), this.globalUiStore.setInitialized(!0);
|
19565
19562
|
};
|
19566
19563
|
}
|
19567
|
-
const
|
19564
|
+
const Va = ({
|
19568
19565
|
children: e,
|
19569
19566
|
isLast: n = !1,
|
19570
19567
|
onClick: i,
|
@@ -19595,7 +19592,7 @@ const Ka = ({
|
|
19595
19592
|
return /* @__PURE__ */ l(j, { children: [
|
19596
19593
|
/* @__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 }) }),
|
19597
19594
|
/* @__PURE__ */ t(
|
19598
|
-
|
19595
|
+
Va,
|
19599
19596
|
{
|
19600
19597
|
onClick: () => {
|
19601
19598
|
E({ is_hidden: !d.is_hidden }), C(F.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: d.guid });
|
@@ -19606,7 +19603,7 @@ const Ka = ({
|
|
19606
19603
|
}
|
19607
19604
|
),
|
19608
19605
|
/* @__PURE__ */ t(
|
19609
|
-
|
19606
|
+
Va,
|
19610
19607
|
{
|
19611
19608
|
onClick: () => {
|
19612
19609
|
n(!0), C(F.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
|
@@ -19619,7 +19616,7 @@ const Ka = ({
|
|
19619
19616
|
}
|
19620
19617
|
),
|
19621
19618
|
m.length > 0 && /* @__PURE__ */ t(
|
19622
|
-
|
19619
|
+
Va,
|
19623
19620
|
{
|
19624
19621
|
isLast: !0,
|
19625
19622
|
onClick: () => {
|
@@ -19847,7 +19844,7 @@ const Ka = ({
|
|
19847
19844
|
};
|
19848
19845
|
}
|
19849
19846
|
}
|
19850
|
-
},
|
19847
|
+
}, Ka = {
|
19851
19848
|
color: "background.default",
|
19852
19849
|
fontSize: 20,
|
19853
19850
|
gridRow: 1,
|
@@ -19859,12 +19856,12 @@ const Ka = ({
|
|
19859
19856
|
} = he(), { selectedMember: a } = Ht(), { accounts: r, connect: o } = I(), s = kc(a, o), c = Os.includes(a.connection_status) ? {
|
19860
19857
|
color: "error.main",
|
19861
19858
|
ctaCopy: s.cta ?? "",
|
19862
|
-
icon: /* @__PURE__ */ t(
|
19859
|
+
icon: /* @__PURE__ */ t(ha, { sx: { ...Ka } }),
|
19863
19860
|
mainMessage: s.statusName,
|
19864
19861
|
secondaryMessage: `${s.title}.`
|
19865
19862
|
} : {
|
19866
19863
|
color: "success.main",
|
19867
|
-
icon: /* @__PURE__ */ t(wd, { sx: { ...
|
19864
|
+
icon: /* @__PURE__ */ t(wd, { sx: { ...Ka } }),
|
19868
19865
|
mainMessage: s.statusName,
|
19869
19866
|
secondaryMessage: s.title
|
19870
19867
|
};
|
@@ -19903,7 +19900,7 @@ const Ka = ({
|
|
19903
19900
|
Nd,
|
19904
19901
|
{
|
19905
19902
|
sx: {
|
19906
|
-
...
|
19903
|
+
...Ka,
|
19907
19904
|
color: i === Vr.LIGHT ? "grey.900" : "common.white"
|
19908
19905
|
}
|
19909
19906
|
}
|
@@ -19947,7 +19944,7 @@ const Ka = ({
|
|
19947
19944
|
onChange: (b) => c(b.target.value),
|
19948
19945
|
placeholder: e.placeholder,
|
19949
19946
|
value: s,
|
19950
|
-
children: e.options?.map((b) => /* @__PURE__ */ t(
|
19947
|
+
children: e.options?.map((b) => /* @__PURE__ */ t(da, { value: b.value, children: b.label }, b.value))
|
19951
19948
|
}
|
19952
19949
|
)
|
19953
19950
|
] });
|
@@ -20089,7 +20086,7 @@ const Ka = ({
|
|
20089
20086
|
children: /* @__PURE__ */ l(
|
20090
20087
|
xn,
|
20091
20088
|
{
|
20092
|
-
icon: /* @__PURE__ */ t(
|
20089
|
+
icon: /* @__PURE__ */ t(ha, {}),
|
20093
20090
|
severity: "error",
|
20094
20091
|
sx: {
|
20095
20092
|
borderLeft: 5,
|
@@ -20102,7 +20099,7 @@ const Ka = ({
|
|
20102
20099
|
}
|
20103
20100
|
},
|
20104
20101
|
children: [
|
20105
|
-
c.title && /* @__PURE__ */ t(
|
20102
|
+
c.title && /* @__PURE__ */ t(qa, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: c.title }),
|
20106
20103
|
/* @__PURE__ */ t(p, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: c.main }),
|
20107
20104
|
c.cta && /* @__PURE__ */ t(
|
20108
20105
|
vs,
|
@@ -20328,7 +20325,7 @@ const Ka = ({
|
|
20328
20325
|
)
|
20329
20326
|
] });
|
20330
20327
|
}, WC = A(FC), UC = ({ onBackClick: e, sx: n = {} }) => {
|
20331
|
-
const [i, a] = g.useState(!1), [r, o] = g.useState(!1), { config: s } =
|
20328
|
+
const [i, a] = g.useState(!1), [r, o] = g.useState(!1), { config: s } = Ca(), { accounts: c, refreshMembers: d } = ve(), { accounts: _ } = I(), { isCopyLoaded: u, isInitialized: h, setSelectedAccounts: m, selectedAccountGuids: C } = ce(), { isDesktop: f } = xe(), { onEvent: E } = V();
|
20332
20329
|
g.useEffect(() => {
|
20333
20330
|
m(c);
|
20334
20331
|
}, [c]);
|
@@ -21104,7 +21101,7 @@ const ZC = () => {
|
|
21104
21101
|
};
|
21105
21102
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
21106
21103
|
/* @__PURE__ */ t(
|
21107
|
-
|
21104
|
+
sr,
|
21108
21105
|
{
|
21109
21106
|
exclusive: !0,
|
21110
21107
|
onChange: s,
|
@@ -21636,7 +21633,7 @@ const gf = ({
|
|
21636
21633
|
}
|
21637
21634
|
)
|
21638
21635
|
] });
|
21639
|
-
},
|
21636
|
+
}, va = ({
|
21640
21637
|
amount: e,
|
21641
21638
|
categoryName: n,
|
21642
21639
|
onAmountChanged: i
|
@@ -21687,7 +21684,7 @@ const gf = ({
|
|
21687
21684
|
onClose: () => o(!1),
|
21688
21685
|
onPrimaryAction: () => n(e, Number(s)),
|
21689
21686
|
primaryText: i.add_save_button,
|
21690
|
-
children: /* @__PURE__ */ t(
|
21687
|
+
children: /* @__PURE__ */ t(va, { amount: s, categoryName: e.name, onAmountChanged: c })
|
21691
21688
|
}
|
21692
21689
|
)
|
21693
21690
|
] });
|
@@ -21797,7 +21794,7 @@ const gf = ({
|
|
21797
21794
|
onPrimaryAction: b,
|
21798
21795
|
primaryText: i.add_save_button,
|
21799
21796
|
children: /* @__PURE__ */ t(
|
21800
|
-
|
21797
|
+
va,
|
21801
21798
|
{
|
21802
21799
|
amount: h,
|
21803
21800
|
categoryName: C?.name || "",
|
@@ -21864,7 +21861,7 @@ const gf = ({
|
|
21864
21861
|
onPrimaryAction: T,
|
21865
21862
|
primaryText: a.edit_save_button,
|
21866
21863
|
children: /* @__PURE__ */ t(
|
21867
|
-
|
21864
|
+
va,
|
21868
21865
|
{
|
21869
21866
|
amount: E,
|
21870
21867
|
categoryName: s.category.name,
|
@@ -22007,7 +22004,7 @@ const gf = ({
|
|
22007
22004
|
onPrimaryAction: w,
|
22008
22005
|
primaryText: n.edit_save_button,
|
22009
22006
|
children: /* @__PURE__ */ t(
|
22010
|
-
|
22007
|
+
va,
|
22011
22008
|
{
|
22012
22009
|
amount: T,
|
22013
22010
|
categoryName: o.category.name,
|
@@ -22274,7 +22271,7 @@ const gf = ({
|
|
22274
22271
|
}), Of = A(() => {
|
22275
22272
|
const e = he(), {
|
22276
22273
|
appDataStore: { banner: n, loadBanner: i, user: a }
|
22277
|
-
} =
|
22274
|
+
} = ba();
|
22278
22275
|
return g.useEffect(() => {
|
22279
22276
|
i().finally();
|
22280
22277
|
}, [a]), n?.image_url ? /* @__PURE__ */ t(
|
@@ -22350,9 +22347,9 @@ const gf = ({
|
|
22350
22347
|
)
|
22351
22348
|
] }) });
|
22352
22349
|
}, Mf = A(Lf);
|
22353
|
-
var
|
22350
|
+
var or = /* @__PURE__ */ ((e) => (e[e.Main = 0] = "Main", e[e.RightSide = 1] = "RightSide", e))(or || {});
|
22354
22351
|
const kf = ({ widgets: e, isLoading: n }) => {
|
22355
|
-
const { isDesktop: i, isMobile: a } = xe(), { copyStore: r } =
|
22352
|
+
const { isDesktop: i, isMobile: a } = xe(), { copyStore: r } = ba(), { setSelectedAccounts: o } = ce(), { visibleAccounts: s } = ve();
|
22356
22353
|
g.useEffect(() => {
|
22357
22354
|
o(s);
|
22358
22355
|
}, [s]);
|
@@ -22360,10 +22357,10 @@ const kf = ({ widgets: e, isLoading: n }) => {
|
|
22360
22357
|
() => e.sort((u, h) => u.index - h.index),
|
22361
22358
|
[e]
|
22362
22359
|
), d = g.useMemo(
|
22363
|
-
() => c.filter((u) => u.location ===
|
22360
|
+
() => c.filter((u) => u.location === or.Main),
|
22364
22361
|
[c]
|
22365
22362
|
), _ = g.useMemo(
|
22366
|
-
() => c.filter((u) => u.location ===
|
22363
|
+
() => c.filter((u) => u.location === or.RightSide),
|
22367
22364
|
[c]
|
22368
22365
|
);
|
22369
22366
|
return /* @__PURE__ */ l(zt, { container: !0, spacing: a ? 0 : 24, sx: { overflow: "scroll" }, children: [
|
@@ -23084,7 +23081,7 @@ const kf = ({ widgets: e, isLoading: n }) => {
|
|
23084
23081
|
}
|
23085
23082
|
)
|
23086
23083
|
] });
|
23087
|
-
}, Hf = A(Bf),
|
23084
|
+
}, Hf = A(Bf), za = ({ title: e }) => /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e }), kE = A(({ onBackClick: e, sx: n }) => {
|
23088
23085
|
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();
|
23089
23086
|
g.useEffect(() => {
|
23090
23087
|
c && u().finally();
|
@@ -23112,21 +23109,21 @@ const kf = ({ widgets: e, isLoading: n }) => {
|
|
23112
23109
|
/* @__PURE__ */ t(
|
23113
23110
|
Le,
|
23114
23111
|
{
|
23115
|
-
label: /* @__PURE__ */ t(
|
23112
|
+
label: /* @__PURE__ */ t(za, { title: o.tab_overview_title }),
|
23116
23113
|
sx: { "&.Mui-selected": { color: "primary.light" } }
|
23117
23114
|
}
|
23118
23115
|
),
|
23119
23116
|
/* @__PURE__ */ t(
|
23120
23117
|
Le,
|
23121
23118
|
{
|
23122
|
-
label: /* @__PURE__ */ t(
|
23119
|
+
label: /* @__PURE__ */ t(za, { title: o.tab_allocation_title }),
|
23123
23120
|
sx: { "&.Mui-selected": { color: "primary.light" } }
|
23124
23121
|
}
|
23125
23122
|
),
|
23126
23123
|
/* @__PURE__ */ t(
|
23127
23124
|
Le,
|
23128
23125
|
{
|
23129
|
-
label: /* @__PURE__ */ t(
|
23126
|
+
label: /* @__PURE__ */ t(za, { title: o.tab_analysis_title }),
|
23130
23127
|
sx: { "&.Mui-selected": { color: "primary.light" } }
|
23131
23128
|
}
|
23132
23129
|
)
|
@@ -23364,7 +23361,7 @@ const Gi = g.createContext(null), zf = ({
|
|
23364
23361
|
onPageview: n,
|
23365
23362
|
store: i,
|
23366
23363
|
children: a
|
23367
|
-
}) => /* @__PURE__ */ t(Gi.Provider, { value: { onEvent: e, onPageview: n, store: i, children: a }, children: a }),
|
23364
|
+
}) => /* @__PURE__ */ t(Gi.Provider, { value: { onEvent: e, onPageview: n, store: i, children: a }, children: a }), wa = g.forwardRef(
|
23368
23365
|
function({
|
23369
23366
|
actionText: n,
|
23370
23367
|
ariaLabel: i,
|
@@ -24433,7 +24430,7 @@ const Gi = g.createContext(null), zf = ({
|
|
24433
24430
|
});
|
24434
24431
|
};
|
24435
24432
|
return /* @__PURE__ */ t(
|
24436
|
-
|
24433
|
+
wa,
|
24437
24434
|
{
|
24438
24435
|
actionText: i.micro_call_to_action || E.micro_card_cta,
|
24439
24436
|
ariaLabel: e,
|
@@ -24780,7 +24777,7 @@ const Gi = g.createContext(null), zf = ({
|
|
24780
24777
|
});
|
24781
24778
|
};
|
24782
24779
|
return /* @__PURE__ */ t(
|
24783
|
-
|
24780
|
+
wa,
|
24784
24781
|
{
|
24785
24782
|
actionText: u.micro_card_cta,
|
24786
24783
|
ariaLabel: e,
|
@@ -24827,7 +24824,7 @@ const Gi = g.createContext(null), zf = ({
|
|
24827
24824
|
return g.useEffect(() => {
|
24828
24825
|
_(Mn.MICRO_WIDGET_CAROUSEL_ZERO_STATE);
|
24829
24826
|
}, []), /* @__PURE__ */ t(
|
24830
|
-
|
24827
|
+
wa,
|
24831
24828
|
{
|
24832
24829
|
ariaLabel: e,
|
24833
24830
|
description: u.carousel_zero_state_description,
|
@@ -24864,7 +24861,7 @@ const Gi = g.createContext(null), zf = ({
|
|
24864
24861
|
justifyContent: "center",
|
24865
24862
|
width: "100%"
|
24866
24863
|
},
|
24867
|
-
children: /* @__PURE__ */ t(
|
24864
|
+
children: /* @__PURE__ */ t(cr, {})
|
24868
24865
|
}
|
24869
24866
|
), fn = new Kf(), h0 = ({
|
24870
24867
|
areBeatsLoading: e,
|
@@ -24972,7 +24969,7 @@ const Gi = g.createContext(null), zf = ({
|
|
24972
24969
|
});
|
24973
24970
|
};
|
24974
24971
|
return /* @__PURE__ */ t(
|
24975
|
-
|
24972
|
+
wa,
|
24976
24973
|
{
|
24977
24974
|
actionText: m.micro_card_cta,
|
24978
24975
|
ariaLabel: n,
|
@@ -25199,7 +25196,7 @@ const Gi = g.createContext(null), zf = ({
|
|
25199
25196
|
const { recurring: i } = I(), [a, r] = g.useState(!1), o = g.useMemo(
|
25200
25197
|
() => n.transactions.length === 0 ? "" : n.transactions[0].category_guid || "",
|
25201
25198
|
[n]
|
25202
|
-
), s = n.account?.institutionName || "", c = n.repeating_transaction_type === on.Income, d =
|
25199
|
+
), s = n.account?.institutionName || "", c = n.repeating_transaction_type === on.Income, d = rr(
|
25203
25200
|
i,
|
25204
25201
|
Ri(n.predicted_occurs_on),
|
25205
25202
|
n.recurrence_type
|
@@ -25338,7 +25335,7 @@ const Gi = g.createContext(null), zf = ({
|
|
25338
25335
|
const h = Oe(s.date);
|
25339
25336
|
switch (Number(u.target.value)) {
|
25340
25337
|
case Ae.EveryWeek:
|
25341
|
-
o(
|
25338
|
+
o(ma(h));
|
25342
25339
|
break;
|
25343
25340
|
case Ae.EveryOtherWeek:
|
25344
25341
|
o(Gs(h));
|
@@ -25363,8 +25360,8 @@ const Gi = g.createContext(null), zf = ({
|
|
25363
25360
|
};
|
25364
25361
|
return /* @__PURE__ */ l(y, { bgcolor: e, gap: 24, height: "100%", children: [
|
25365
25362
|
/* @__PURE__ */ l(y, { children: [
|
25366
|
-
/* @__PURE__ */ t(
|
25367
|
-
/* @__PURE__ */ t(
|
25363
|
+
/* @__PURE__ */ t(Ea, { bgcolor: e, children: Oi(s.date) }),
|
25364
|
+
/* @__PURE__ */ t(ya, { transaction: s })
|
25368
25365
|
] }),
|
25369
25366
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mx: 24 }, variant: "Body", children: i ? c.income_schedule : c.expense_schedule }),
|
25370
25367
|
/* @__PURE__ */ t(
|
@@ -25381,11 +25378,11 @@ const Gi = g.createContext(null), zf = ({
|
|
25381
25378
|
sx: { mx: 24 },
|
25382
25379
|
value: n,
|
25383
25380
|
variant: "outlined",
|
25384
|
-
children: d.map((u) => /* @__PURE__ */ t(
|
25381
|
+
children: d.map((u) => /* @__PURE__ */ t(da, { value: u.id, children: u.label }, u.id))
|
25385
25382
|
}
|
25386
25383
|
),
|
25387
25384
|
/* @__PURE__ */ t(Nn, { dateAdapter: gn, children: /* @__PURE__ */ t(
|
25388
|
-
|
25385
|
+
la,
|
25389
25386
|
{
|
25390
25387
|
disablePast: !0,
|
25391
25388
|
label: i ? c.income_date_label : c.expense_date_label,
|
@@ -25542,17 +25539,17 @@ const Gi = g.createContext(null), zf = ({
|
|
25542
25539
|
e === 0 && /* @__PURE__ */ t(y0, {}),
|
25543
25540
|
e === 1 && /* @__PURE__ */ t(E0, {})
|
25544
25541
|
] });
|
25545
|
-
}),
|
25542
|
+
}), Na = {
|
25546
25543
|
gridRow: 1,
|
25547
25544
|
gridColumn: 1,
|
25548
25545
|
zIndex: 2
|
25549
|
-
},
|
25546
|
+
}, Da = (e) => e ? { margin: "0 0 -6px -4px" } : void 0, Br = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Da(e) }, children: /* @__PURE__ */ t(Zl, { color: "primary", filled: !0, sx: { fontSize: n, ...Na } }) }), Hr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Da(e) }, children: /* @__PURE__ */ t(
|
25550
25547
|
Ql,
|
25551
25548
|
{
|
25552
25549
|
filled: !0,
|
25553
|
-
sx: { color: "categories.income", fontSize: n, ...
|
25550
|
+
sx: { color: "categories.income", fontSize: n, ...Na }
|
25554
25551
|
}
|
25555
|
-
) }), $r = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...
|
25552
|
+
) }), $r = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Da(e) }, children: /* @__PURE__ */ t(Es, { color: "error", filled: !0, sx: { fontSize: n, ...Na } }) }), Fr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Da(e) }, children: /* @__PURE__ */ t(ra, { color: "success", filled: !0, sx: { fontSize: n, ...Na } }) }), T0 = A(
|
25556
25553
|
({ day: e, outsideCurrentMonth: n, ...i }) => {
|
25557
25554
|
const { recurring: a } = I(), { selectedAccountGuids: r } = ce(), { recurrences: o, setSelectedDay: s } = Pt(), d = g.useMemo(
|
25558
25555
|
() => o.filter((f) => r.includes(f.accountGuid)),
|
@@ -25731,7 +25728,7 @@ const Gi = g.createContext(null), zf = ({
|
|
25731
25728
|
[e]
|
25732
25729
|
), _ = e.type === Yt.Income, u = e.status === Je.Paid, h = e.status === Je.Missed, m = e.status === Je.Upcoming;
|
25733
25730
|
let C = r.paid?.toLowerCase();
|
25734
|
-
return h ? C = r.missed?.toLowerCase() : m && (C = a ?
|
25731
|
+
return h ? C = r.missed?.toLowerCase() : m && (C = a ? rr(r, e.expectedDate, e.frequency) : rr(r, null, e.frequency)), /* @__PURE__ */ l(Y, { disableGutters: !0, disablePadding: !0, children: [
|
25735
25732
|
/* @__PURE__ */ l(de, { onClick: () => {
|
25736
25733
|
c(!0), i(e);
|
25737
25734
|
}, children: [
|
@@ -26077,7 +26074,7 @@ const Gi = g.createContext(null), zf = ({
|
|
26077
26074
|
}
|
26078
26075
|
);
|
26079
26076
|
}
|
26080
|
-
),
|
26077
|
+
), Ya = 5, N0 = (e, n) => n.reduce((i, a) => {
|
26081
26078
|
if (a.total > 0) {
|
26082
26079
|
const r = e.find((_) => _.guid === a.category_guid);
|
26083
26080
|
if (!r) return i;
|
@@ -26102,14 +26099,14 @@ const Gi = g.createContext(null), zf = ({
|
|
26102
26099
|
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(
|
26103
26100
|
(d, _) => d + _.amount,
|
26104
26101
|
0
|
26105
|
-
), o = a.length >
|
26102
|
+
), o = a.length > Ya ? Ya : a.length, s = a.slice(0, o), c = s.map((d) => ({
|
26106
26103
|
id: d.guid,
|
26107
26104
|
color: d.color,
|
26108
26105
|
label: d.name,
|
26109
26106
|
value: d.amount / r * 100
|
26110
26107
|
}));
|
26111
26108
|
if (a.length > 5) {
|
26112
|
-
const d = a.slice(
|
26109
|
+
const d = a.slice(Ya, i.length), _ = d.reduce(
|
26113
26110
|
(u, h) => u + h.amount,
|
26114
26111
|
0
|
26115
26112
|
);
|
@@ -26396,7 +26393,7 @@ const Gi = g.createContext(null), zf = ({
|
|
26396
26393
|
}
|
26397
26394
|
),
|
26398
26395
|
/* @__PURE__ */ t(k, {}),
|
26399
|
-
s.categoryTotals && s.categoryTotals.length > 0 && /* @__PURE__ */ t(
|
26396
|
+
s.categoryTotals && s.categoryTotals.length > 0 && /* @__PURE__ */ t(_a, { in: o?.guid === s.guid, unmountOnExit: !0, children: /* @__PURE__ */ l(ie, { children: [
|
26400
26397
|
o?.categoryTotals?.map((c) => /* @__PURE__ */ t(
|
26401
26398
|
Y,
|
26402
26399
|
{
|
@@ -26615,7 +26612,7 @@ const Gi = g.createContext(null), zf = ({
|
|
26615
26612
|
children: /* @__PURE__ */ t(L, { height: "calc(100dvh - 150px)", overflow: "scroll", width: "100%", children: /* @__PURE__ */ t(H0, {}) })
|
26616
26613
|
}
|
26617
26614
|
);
|
26618
|
-
}, WE = A($0), F0 = (e) => kn[e] ?? kn.default, W0 = (e) =>
|
26615
|
+
}, WE = A($0), F0 = (e) => kn[e] ?? kn.default, W0 = (e) => ga[e];
|
26619
26616
|
function U0(e, n) {
|
26620
26617
|
const i = [], a = new Date(e);
|
26621
26618
|
for (; a <= n; ) {
|
@@ -26654,7 +26651,7 @@ const V0 = (e) => e.reduce((i, a) => {
|
|
26654
26651
|
const n = e.row[e.field];
|
26655
26652
|
return /* @__PURE__ */ t(y, { alignItems: "flex-end", tabIndex: e.tabIndex, children: /* @__PURE__ */ t(Ue, { amount: n, variant: "Small" }) });
|
26656
26653
|
}, j0 = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
26657
|
-
const { categories: i } = I(), a =
|
26654
|
+
const { categories: i } = I(), a = ga[e];
|
26658
26655
|
return /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "center", children: [
|
26659
26656
|
/* @__PURE__ */ t(
|
26660
26657
|
L,
|
@@ -26814,7 +26811,7 @@ const V0 = (e) => e.reduce((i, a) => {
|
|
26814
26811
|
) : im(Re);
|
26815
26812
|
return {
|
26816
26813
|
stackedDatasets: ut.filter(tm),
|
26817
|
-
unstackedDatasets: ut.filter(
|
26814
|
+
unstackedDatasets: ut.filter(xa)
|
26818
26815
|
};
|
26819
26816
|
}, [_, O, X]), we = g.useMemo(() => {
|
26820
26817
|
const Re = ne(
|
@@ -26890,7 +26887,7 @@ const V0 = (e) => e.reduce((i, a) => {
|
|
26890
26887
|
/* @__PURE__ */ t(p, { variant: r ? "Body" : "Small", children: we })
|
26891
26888
|
] }),
|
26892
26889
|
/* @__PURE__ */ t(
|
26893
|
-
|
26890
|
+
sr,
|
26894
26891
|
{
|
26895
26892
|
exclusive: !0,
|
26896
26893
|
onChange: re,
|
@@ -26992,7 +26989,7 @@ const V0 = (e) => e.reduce((i, a) => {
|
|
26992
26989
|
}
|
26993
26990
|
);
|
26994
26991
|
}, ab = A(ib), rb = ({ onPrimaryCtaClick: e, sx: n }) => {
|
26995
|
-
const { loadMonthlyCategoryTotals: i, monthlyTotalsLoaded: a } = We(), { isInitialized: r } =
|
26992
|
+
const { loadMonthlyCategoryTotals: i, monthlyTotalsLoaded: a } = We(), { isInitialized: r } = ba(), { trends: o } = I(), { isCopyLoaded: s, selectedAccounts: c } = ce();
|
26996
26993
|
return g.useEffect(() => {
|
26997
26994
|
r && i(c).finally();
|
26998
26995
|
}, [r, c]), s ? /* @__PURE__ */ t(
|
@@ -27045,12 +27042,12 @@ export {
|
|
27045
27042
|
fE as CashflowWidget,
|
27046
27043
|
oo as CategoryApi,
|
27047
27044
|
kn as CategoryColors,
|
27048
|
-
|
27045
|
+
ga as CategoryGuidToName,
|
27049
27046
|
N as CategoryGuids,
|
27050
27047
|
Kd as CategoryIcon,
|
27051
27048
|
ic as CategoryRow,
|
27052
27049
|
J_ as CategorySelector,
|
27053
|
-
|
27050
|
+
Ta as CategorySelectorDrawer,
|
27054
27051
|
ah as CategoryStore,
|
27055
27052
|
Zf as ChartFilledIcon,
|
27056
27053
|
Js as ConnectCard,
|
@@ -27065,7 +27062,7 @@ export {
|
|
27065
27062
|
Ms as DEFAULT_DONUT_SIZE,
|
27066
27063
|
ks as DEFAULT_STROKE_WIDTH,
|
27067
27064
|
ME as Dashboard,
|
27068
|
-
|
27065
|
+
or as DashboardLocation,
|
27069
27066
|
Bn as DataRow,
|
27070
27067
|
go as DateRangeSelector,
|
27071
27068
|
Ic as DebtsChart,
|
@@ -27089,7 +27086,7 @@ export {
|
|
27089
27086
|
vE as GlobalStore,
|
27090
27087
|
Ho as GoalApi,
|
27091
27088
|
pp as GoalStore,
|
27092
|
-
|
27089
|
+
tr as GoalType,
|
27093
27090
|
EE as GoalsWidget,
|
27094
27091
|
x1 as HelpContent,
|
27095
27092
|
v1 as HelpList,
|
@@ -27114,7 +27111,7 @@ export {
|
|
27114
27111
|
At as MetaType,
|
27115
27112
|
Ds as MfaStatuses,
|
27116
27113
|
s0 as MicroBeatCarousel,
|
27117
|
-
|
27114
|
+
wa as MicroInsightCard,
|
27118
27115
|
Dn as MiniWidgetContainer,
|
27119
27116
|
e0 as MonthlySpendComparisonIcon,
|
27120
27117
|
dE as MultiSegmentDonut,
|
@@ -27172,14 +27169,14 @@ export {
|
|
27172
27169
|
hn as TOUCH_TARGET,
|
27173
27170
|
z as TRANSACTION_EVENTS,
|
27174
27171
|
ri as TabContentContainer,
|
27175
|
-
|
27172
|
+
Qa as ToggleButtonListItem,
|
27176
27173
|
Jn as ToggleListItem,
|
27177
27174
|
gi as TopActions,
|
27178
27175
|
U as TrackType,
|
27179
27176
|
Ji as TransactionApi,
|
27180
27177
|
Yn as TransactionDetails,
|
27181
27178
|
mn as TransactionList,
|
27182
|
-
|
27179
|
+
ya as TransactionRow,
|
27183
27180
|
rC as TransactionRulesTab,
|
27184
27181
|
Sr as TransactionStatus,
|
27185
27182
|
f_ as TransactionStore,
|
@@ -27188,7 +27185,7 @@ export {
|
|
27188
27185
|
mE as TransactionWidget,
|
27189
27186
|
UE as TrendsFullWidget,
|
27190
27187
|
VE as TrendsMiniWidget,
|
27191
|
-
|
27188
|
+
Ga as UserApi,
|
27192
27189
|
AC as UserStore,
|
27193
27190
|
h_ as UserVerification,
|
27194
27191
|
m0 as ViewMoreMicroCard,
|
@@ -27205,7 +27202,7 @@ export {
|
|
27205
27202
|
P as formatCurrency,
|
27206
27203
|
ne as formatDate,
|
27207
27204
|
Fs as formatOrdinal,
|
27208
|
-
|
27205
|
+
pa as formatPercentage,
|
27209
27206
|
$s as fromTimestampToMonthYear,
|
27210
27207
|
yc as getAccountBalanceDetails,
|
27211
27208
|
vg as getAccountDetailFields,
|
@@ -27218,21 +27215,21 @@ export {
|
|
27218
27215
|
Pn as getLocale,
|
27219
27216
|
AE as getNotificationDetailRoute,
|
27220
27217
|
nE as isIncome,
|
27221
|
-
|
27218
|
+
Za as isValidNumber,
|
27222
27219
|
ve as useAccountStore,
|
27223
27220
|
Ht as useAccountUiStore,
|
27224
|
-
|
27221
|
+
Ca as useAppConfig,
|
27225
27222
|
st as useBudgetsStore,
|
27226
27223
|
br as useCashflowStore,
|
27227
27224
|
We as useCategoryStore,
|
27228
27225
|
pn as useCategoryUiStore,
|
27229
27226
|
iu as useCombineEvents,
|
27230
27227
|
au as useCombinePageviews,
|
27231
|
-
|
27228
|
+
fa as useDebtStore,
|
27232
27229
|
V as useEvent,
|
27233
27230
|
IC as useGetMergeableAccounts,
|
27234
27231
|
I as useGlobalCopyStore,
|
27235
|
-
|
27232
|
+
ba as useGlobalStore,
|
27236
27233
|
ce as useGlobalUiStore,
|
27237
27234
|
nt as useGoalStore,
|
27238
27235
|
yr as useHelpStore,
|