@mx-cartographer/experiences 7.1.3-alpha.mm1 → 7.1.4
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/CHANGELOG.md +13 -0
- package/dist/{Account-DKy2na__.mjs → Account-8IUM_CLv.mjs} +1 -1
- package/dist/{AccountDetailsContent-CCOCsdoL.mjs → AccountDetailsContent-CuZSSAEc.mjs} +8 -8
- package/dist/{AccountDetailsHeader-Ca9SPAjA.mjs → AccountDetailsHeader-BZBsIKdF.mjs} +6 -6
- package/dist/{AccountFields-DDAr5SEq.mjs → AccountFields-BD_0GT68.mjs} +2 -2
- package/dist/{AccountListItem-CMes1Q7Z.mjs → AccountListItem-CllIBCao.mjs} +4 -4
- package/dist/{AccountStore-DYOG9MYj.mjs → AccountStore-BL0FE1QL.mjs} +53 -45
- package/dist/{Accounts-BNvFndCa.mjs → Accounts-Bvc9TJaO.mjs} +1 -1
- package/dist/{BudgetUtil-B2ZXyw-g.mjs → BudgetUtil-psfk-Amb.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-BmenK5bu.mjs} +1 -1
- package/dist/{ConnectDrawer-CHG5Lv_B.mjs → ConnectDrawer-CPTXh70j.mjs} +8 -8
- package/dist/{ConnectionsDrawer-BeB6ab8V.mjs → ConnectionsDrawer-Dkb4vBmt.mjs} +2 -2
- package/dist/{CurrencyInput-CsCy7uaS.mjs → CurrencyInput-C4xNRL2W.mjs} +1 -1
- package/dist/{DebtsStore-BblTVTMD.mjs → DebtsStore-D4grpB4m.mjs} +1 -1
- package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-CBJAfyAw.mjs} +3 -3
- package/dist/{GoalStore-CSsU4LR2.mjs → GoalStore-B5MZzPLZ.mjs} +2 -2
- package/dist/{Help-B6dIcujh.mjs → Help-CzBAsKA2.mjs} +1 -1
- package/dist/{LineChart-D4GI7nVh.mjs → LineChart-B35qvXik.mjs} +1 -1
- package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-DSrYDGAP.mjs} +1 -1
- package/dist/{ManageIncome-DqG75uQd.mjs → ManageIncome-DUuT-yMV.mjs} +34 -34
- package/dist/{MicroWidgetContainer-DpeqN9n3.mjs → MicroWidgetContainer-C4QQHfD7.mjs} +1 -1
- package/dist/{MiniWidgetContainer-D0gfmbaF.mjs → MiniWidgetContainer-DTQdRK-3.mjs} +1 -1
- package/dist/{NetWorthStore-BbA7H83o.mjs → NetWorthStore-Do1Gk8Te.mjs} +2 -2
- package/dist/{NotificationSettings-BRm_EJZV.mjs → NotificationSettings-BuShgjn6.mjs} +3 -3
- package/dist/{OriginalBalanceAction-CAaVbVMO.mjs → OriginalBalanceAction-BsxcvNEF.mjs} +3 -3
- package/dist/{RecurringSettings-B9l_Axnd.mjs → RecurringSettings-BVOt46uV.mjs} +3 -3
- package/dist/{TransactionDetails-DPvvi4Iu.mjs → TransactionDetails-_cXLXTd3.mjs} +5 -5
- package/dist/{TransactionStore-CBrJOY0H.mjs → TransactionStore-B-Tq_YFE.mjs} +2 -2
- package/dist/{TrendsStore-DCYbpXPO.mjs → TrendsStore-ZZ8X36lJ.mjs} +1 -1
- package/dist/{User-BQUxBeZV.mjs → User-DaJAQ09j.mjs} +1 -1
- package/dist/{WidgetContainer-BMWagbIl.mjs → WidgetContainer-DtPnPQZY.mjs} +10 -10
- package/dist/accounts/index.es.js +13 -13
- package/dist/accounts/stores/AccountStore.d.ts +2 -0
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +10 -10
- package/dist/cashflow/index.es.js +381 -387
- package/dist/categories/index.es.js +1 -1
- package/dist/common/context/GlobalDataProvider.d.ts +0 -1
- package/dist/common/context/hooks.d.ts +0 -3
- package/dist/common/context/index.d.ts +1 -1
- package/dist/common/index.es.js +49 -50
- package/dist/dashboard/index.es.js +77 -79
- package/dist/debts/index.es.js +9 -9
- package/dist/{exportTransactionsToCSV-7bVS7KXf.mjs → exportTransactionsToCSV-D8TTNrrE.mjs} +1 -1
- package/dist/finstrong/index.es.js +6 -6
- package/dist/goals/index.es.js +52 -52
- package/dist/help/index.es.js +3 -3
- package/dist/hooks-CE2TKk4a.mjs +74 -0
- package/dist/investments/index.es.js +3 -3
- package/dist/merchants/index.es.js +1 -1
- package/dist/networth/index.es.js +7 -7
- package/dist/notifications/index.es.js +2 -2
- package/dist/recurringtransactions/index.es.js +19 -19
- package/dist/settings/index.es.js +6 -6
- package/dist/spending/index.es.js +4 -4
- package/dist/transactions/index.es.js +13 -13
- package/dist/trends/index.es.js +449 -449
- package/dist/{useAccountDisplayName-BEorBm5u.mjs → useAccountDisplayName-BXGkZN5B.mjs} +2 -2
- package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-DSnpkUq0.mjs} +1 -1
- package/package.json +1 -1
- package/dist/hooks-D6XlXHf4.mjs +0 -77
package/dist/goals/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as ue, T as d, G as me, a as We, M as J, C as ye, b as Pe } from "../GoalStore-
|
|
2
|
-
import { c as Yn, d as Zn } from "../GoalStore-
|
|
1
|
+
import { g as ue, T as d, G as me, a as We, M as J, C as ye, b as Pe } from "../GoalStore-B5MZzPLZ.mjs";
|
|
2
|
+
import { c as Yn, d as Zn } from "../GoalStore-B5MZzPLZ.mjs";
|
|
3
3
|
import { jsxs as r, jsx as e, Fragment as U } from "react/jsx-runtime";
|
|
4
4
|
import y from "react";
|
|
5
5
|
import { observer as D } from "mobx-react-lite";
|
|
@@ -16,15 +16,15 @@ import Ce from "@mui/material/CardContent";
|
|
|
16
16
|
import ge from "@mui/material/Unstable_Grid2";
|
|
17
17
|
import oe from "@mui/material/Avatar";
|
|
18
18
|
import $e from "@mui/material/CardHeader";
|
|
19
|
-
import { Payments as Se, NoteStack as Re, Person as Ee, ChevronRight as M, DragHandle as Xe, CheckCircle as Ue, Icon as be, ExpandLess as Ye, ExpandMore as Ze, AddBox as
|
|
20
|
-
import { u as C, l as I, a as
|
|
19
|
+
import { Payments as Se, NoteStack as Re, Person as Ee, ChevronRight as M, DragHandle as Xe, CheckCircle as Ue, Icon as be, ExpandLess as Ye, ExpandMore as Ze, AddBox as xe, Trophy as qe } from "@mxenabled/mx-icons";
|
|
20
|
+
import { u as C, l as I, a as ve, d as V, o as Ie, g as Ge, b as Ne } from "../hooks-CE2TKk4a.mjs";
|
|
21
21
|
import { u as he } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
22
|
-
import { f as
|
|
22
|
+
import { f as x } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
23
23
|
import { S as Je } from "../StatusBar-BK_uYHAB.mjs";
|
|
24
24
|
import E from "@mui/material/Divider";
|
|
25
25
|
import L from "@mui/material/List";
|
|
26
|
-
import { L as ee } from "../ListItemAction-
|
|
27
|
-
import { C as ke } from "../CurrencyInput-
|
|
26
|
+
import { L as ee } from "../ListItemAction-DSrYDGAP.mjs";
|
|
27
|
+
import { C as ke } from "../CurrencyInput-C4xNRL2W.mjs";
|
|
28
28
|
import { fromUnixTime as Q } from "date-fns/fromUnixTime";
|
|
29
29
|
import N from "@mui/material/ListItem";
|
|
30
30
|
import k from "@mui/material/ListItemButton";
|
|
@@ -34,38 +34,38 @@ import { D as j } from "../Drawer-kEE73B87.mjs";
|
|
|
34
34
|
import { b as B } from "../Localization-2MODESHW.mjs";
|
|
35
35
|
import { f as ae, D as re, a as et } from "../Dialog-CWW597AF.mjs";
|
|
36
36
|
import P from "@mui/material/ListItemAvatar";
|
|
37
|
-
import { g as we, A as fe } from "../ConnectDrawer-
|
|
37
|
+
import { g as we, A as fe } from "../ConnectDrawer-CPTXh70j.mjs";
|
|
38
38
|
import tt from "@mui/material/Collapse";
|
|
39
39
|
import nt from "@mui/material/ListItemIcon";
|
|
40
40
|
import ot from "@mui/material/Checkbox";
|
|
41
|
-
import { u as at, A as rt } from "../AccountDetailsHeader-
|
|
42
|
-
import { A as it } from "../AccountDetailsContent-
|
|
43
|
-
import { u as st } from "../useAccountDisplayName-
|
|
41
|
+
import { u as at, A as rt } from "../AccountDetailsHeader-BZBsIKdF.mjs";
|
|
42
|
+
import { A as it } from "../AccountDetailsContent-CuZSSAEc.mjs";
|
|
43
|
+
import { u as st } from "../useAccountDisplayName-BXGkZN5B.mjs";
|
|
44
44
|
import De from "@mui/material/TextField";
|
|
45
|
-
import { M as lt, I as ct, O as dt } from "../OriginalBalanceAction-
|
|
45
|
+
import { M as lt, I as ct, O as dt } from "../OriginalBalanceAction-BsxcvNEF.mjs";
|
|
46
46
|
import { getUnixTime as mt } from "date-fns/getUnixTime";
|
|
47
47
|
import { isValid as ut } from "date-fns/isValid";
|
|
48
48
|
import { AdapterDateFns as _t } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
49
49
|
import { DatePicker as pt } from "@mui/x-date-pickers";
|
|
50
50
|
import { LocalizationProvider as ht } from "@mui/x-date-pickers/LocalizationProvider";
|
|
51
|
-
import { A as Y, W as gt } from "../WidgetContainer-
|
|
51
|
+
import { A as Y, W as gt } from "../WidgetContainer-DtPnPQZY.mjs";
|
|
52
52
|
import { L as Ke } from "../Loader-DUaFpDGv.mjs";
|
|
53
53
|
import { E as bt } from "../EmptyState-DA_lfRBv.mjs";
|
|
54
54
|
import ft from "@mui/material/Stack/Stack";
|
|
55
55
|
import yt from "@mui/material/Box";
|
|
56
56
|
import At from "@mui/material/styles/useTheme";
|
|
57
57
|
import { S as Tt } from "../SingleSegmentDonut-BgbLgwHi.mjs";
|
|
58
|
-
import { M as Ct } from "../MicroWidgetContainer-
|
|
58
|
+
import { M as Ct } from "../MicroWidgetContainer-C4QQHfD7.mjs";
|
|
59
59
|
function ce({ title: t, subtitle: n }) {
|
|
60
60
|
return /* @__PURE__ */ r(f, { children: [
|
|
61
61
|
/* @__PURE__ */ e(A, { bold: !0, variant: "Body", children: t }),
|
|
62
62
|
/* @__PURE__ */ e(A, { sx: { fontWeight: 400 }, variant: "Body", children: n })
|
|
63
63
|
] });
|
|
64
64
|
}
|
|
65
|
-
const St = (t, n) => n ?
|
|
65
|
+
const St = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
66
66
|
/(\d+)(?:\.0+|(\.\d*?[1-9])0*)([a-zA-Z]* ?\$?)/g,
|
|
67
67
|
"$1$2$3"
|
|
68
|
-
) :
|
|
68
|
+
) : x(t, "0,0.00"), Me = D(
|
|
69
69
|
({ goal: t, isInDrawer: n = !1, onClick: i }) => {
|
|
70
70
|
const { goals: s } = C(), { isMobile: p, isTablet: a } = he(), _ = p || a, {
|
|
71
71
|
backgroundColor: g,
|
|
@@ -85,7 +85,7 @@ const St = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
85
85
|
$e,
|
|
86
86
|
{
|
|
87
87
|
avatar: /* @__PURE__ */ e(oe, { sx: { bgcolor: g, color: l, height: 48, width: 48 }, variant: "rounded", children: b }),
|
|
88
|
-
subheader: /* @__PURE__ */ e(A, { variant: n || _ ? "H3" : "H2", children: `${
|
|
88
|
+
subheader: /* @__PURE__ */ e(A, { variant: n || _ ? "H3" : "H2", children: `${x(t.current_amount, _ ? "0,0" : "0,0.00")} / ${St(
|
|
89
89
|
c,
|
|
90
90
|
_
|
|
91
91
|
)}` }),
|
|
@@ -119,7 +119,7 @@ const St = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
119
119
|
onCancel: () => g(a),
|
|
120
120
|
onSave: l,
|
|
121
121
|
primaryText: n.contribution_label,
|
|
122
|
-
secondaryText:
|
|
122
|
+
secondaryText: x(a, "0,0.00"),
|
|
123
123
|
children: /* @__PURE__ */ e(
|
|
124
124
|
ke,
|
|
125
125
|
{
|
|
@@ -164,7 +164,7 @@ const St = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
164
164
|
minWidth: 140,
|
|
165
165
|
renderCell: (u) => {
|
|
166
166
|
const b = u.row;
|
|
167
|
-
return /* @__PURE__ */ e(A, { bold: !0, sx: { mr: 12 }, variant: "Body", children:
|
|
167
|
+
return /* @__PURE__ */ e(A, { bold: !0, sx: { mr: 12 }, variant: "Body", children: x(b.amount, "0,0.00") });
|
|
168
168
|
},
|
|
169
169
|
sortable: !1
|
|
170
170
|
}
|
|
@@ -232,7 +232,7 @@ const St = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
232
232
|
}
|
|
233
233
|
)
|
|
234
234
|
] });
|
|
235
|
-
},
|
|
235
|
+
}, xt = ({ goal: t, index: n }) => {
|
|
236
236
|
const { goals: i } = C(), { percentage: s } = ue(i, t), p = t.goal_type === me.KEEP_BALANCE_BELOW || t.has_been_spent ? i.goal_completed : B(i.goal_percentage_reached, `${s * 100}`);
|
|
237
237
|
return /* @__PURE__ */ e(N, { children: /* @__PURE__ */ r(k, { children: [
|
|
238
238
|
t.track_type !== d.RETIREMENT_TRACK && /* @__PURE__ */ e(
|
|
@@ -258,10 +258,10 @@ const St = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
258
258
|
)
|
|
259
259
|
) })
|
|
260
260
|
] }),
|
|
261
|
-
/* @__PURE__ */ e(A, { bold: !0, variant: "Body", children:
|
|
261
|
+
/* @__PURE__ */ e(A, { bold: !0, variant: "Body", children: x(t.amount, "0,0.00") })
|
|
262
262
|
] }) })
|
|
263
263
|
] }) });
|
|
264
|
-
},
|
|
264
|
+
}, vt = ({ goal: t }) => {
|
|
265
265
|
const { goals: n } = C();
|
|
266
266
|
return /* @__PURE__ */ e(N, { children: /* @__PURE__ */ r(k, { children: [
|
|
267
267
|
/* @__PURE__ */ e(P, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(Ue, { color: "success", filled: !0, size: 20 }) }),
|
|
@@ -276,7 +276,7 @@ const St = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
276
276
|
)
|
|
277
277
|
) })
|
|
278
278
|
] }),
|
|
279
|
-
/* @__PURE__ */ e(A, { bold: !0, variant: "Body", children:
|
|
279
|
+
/* @__PURE__ */ e(A, { bold: !0, variant: "Body", children: x(t.amount, "0,0.00") })
|
|
280
280
|
] }) })
|
|
281
281
|
] }) }, t.guid);
|
|
282
282
|
}, It = ({ trackType: t }) => {
|
|
@@ -306,7 +306,7 @@ const St = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
306
306
|
a.map((u, b) => {
|
|
307
307
|
const T = b >= a.length - 1;
|
|
308
308
|
return /* @__PURE__ */ r(f, { children: [
|
|
309
|
-
/* @__PURE__ */ e(
|
|
309
|
+
/* @__PURE__ */ e(xt, { goal: u, index: b }),
|
|
310
310
|
/* @__PURE__ */ e(
|
|
311
311
|
E,
|
|
312
312
|
{
|
|
@@ -325,7 +325,7 @@ const St = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
325
325
|
/* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: _.map((u, b) => {
|
|
326
326
|
const T = b > a.length - 1;
|
|
327
327
|
return /* @__PURE__ */ r(f, { children: [
|
|
328
|
-
/* @__PURE__ */ e(
|
|
328
|
+
/* @__PURE__ */ e(vt, { goal: u }),
|
|
329
329
|
/* @__PURE__ */ e(E, { variant: T ? "fullWidth" : "inset" })
|
|
330
330
|
] }, `complete-${u.guid}`);
|
|
331
331
|
}) })
|
|
@@ -397,7 +397,7 @@ const St = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
397
397
|
/* @__PURE__ */ e(He, { color: "success", fill: !0, name: "check_circle", size: 20 }),
|
|
398
398
|
/* @__PURE__ */ e(A, { color: "text.secondary", variant: "Body", children: o.name })
|
|
399
399
|
] }),
|
|
400
|
-
/* @__PURE__ */ e(A, { bold: !0, variant: "Body", children:
|
|
400
|
+
/* @__PURE__ */ e(A, { bold: !0, variant: "Body", children: x(o.amount, "0,0.00") })
|
|
401
401
|
] }) }) }) }, o.guid))
|
|
402
402
|
] })
|
|
403
403
|
] });
|
|
@@ -440,7 +440,7 @@ const St = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
440
440
|
onSave: s,
|
|
441
441
|
title: p
|
|
442
442
|
}) => {
|
|
443
|
-
const { goals: a, common: _ } = C(), { config: g } =
|
|
443
|
+
const { goals: a, common: _ } = C(), { config: g } = ve(), [l, h] = y.useState([]), o = (m) => {
|
|
444
444
|
const c = l.findIndex((b) => b.guid === m.guid), u = [...l];
|
|
445
445
|
c >= 0 ? u.splice(c, 1) : u.push(m), h(u);
|
|
446
446
|
};
|
|
@@ -471,7 +471,7 @@ const St = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
471
471
|
primary: we(m, {
|
|
472
472
|
allowNickname: g?.show_account_nicknames_in_master
|
|
473
473
|
}),
|
|
474
|
-
secondary:
|
|
474
|
+
secondary: x(m.balance || 0, "0,0.00")
|
|
475
475
|
}
|
|
476
476
|
),
|
|
477
477
|
/* @__PURE__ */ e(ot, { checked: l.some((u) => u.guid === m.guid) })
|
|
@@ -491,7 +491,7 @@ const St = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
491
491
|
}
|
|
492
492
|
);
|
|
493
493
|
}, Nt = ({ onClose: t }) => {
|
|
494
|
-
const { goals: n } = C(), { addGoal: i, debtGoals: s, setAlert: p, setSelectedGoal: a } = I(), { config: _ } =
|
|
494
|
+
const { goals: n } = C(), { addGoal: i, debtGoals: s, setAlert: p, setSelectedGoal: a } = I(), { config: _ } = ve(), { visibleDebtAccounts: g } = V(), [l, h] = y.useState(!1), o = Pe(n), m = (u, b, T) => {
|
|
495
495
|
T === d.DEBT_TRACK ? h(!0) : a({
|
|
496
496
|
amount: 0,
|
|
497
497
|
current_amount: 0,
|
|
@@ -551,7 +551,7 @@ const St = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
551
551
|
w,
|
|
552
552
|
{
|
|
553
553
|
primary: i,
|
|
554
|
-
secondary:
|
|
554
|
+
secondary: x(t.balance || 0, "0,0.00")
|
|
555
555
|
}
|
|
556
556
|
),
|
|
557
557
|
/* @__PURE__ */ e(M, {})
|
|
@@ -579,7 +579,7 @@ const St = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
579
579
|
onCancel: m,
|
|
580
580
|
onSave: o,
|
|
581
581
|
primaryText: n.details_amount_to_save,
|
|
582
|
-
secondaryText:
|
|
582
|
+
secondaryText: x(t.amount, "0,0"),
|
|
583
583
|
zeroStateText: g && t.amount === 0 ? n.add_amount : void 0,
|
|
584
584
|
children: /* @__PURE__ */ e(
|
|
585
585
|
ke,
|
|
@@ -603,7 +603,7 @@ const St = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
603
603
|
return /* @__PURE__ */ r(f, { children: [
|
|
604
604
|
l && !t.account_guid ? /* @__PURE__ */ e(N, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ r(k, { onClick: () => o(!0), children: [
|
|
605
605
|
/* @__PURE__ */ e(w, { children: /* @__PURE__ */ r(f, { alignItems: "center", color: "primary.main", direction: "row", gap: 8, children: [
|
|
606
|
-
/* @__PURE__ */ e(
|
|
606
|
+
/* @__PURE__ */ e(xe, { filled: !0 }),
|
|
607
607
|
p.details_add_account
|
|
608
608
|
] }) }),
|
|
609
609
|
/* @__PURE__ */ e(M, { color: "primary" })
|
|
@@ -633,7 +633,7 @@ const St = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
633
633
|
w,
|
|
634
634
|
{
|
|
635
635
|
primary: c?.name || c?.feed_name,
|
|
636
|
-
secondary:
|
|
636
|
+
secondary: x(c?.balance || 0, "0,0.00")
|
|
637
637
|
}
|
|
638
638
|
),
|
|
639
639
|
/* @__PURE__ */ e(M, {})
|
|
@@ -651,7 +651,7 @@ const St = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
651
651
|
w,
|
|
652
652
|
{
|
|
653
653
|
primary: c?.name || c?.feed_name,
|
|
654
|
-
secondary:
|
|
654
|
+
secondary: x(c?.balance || 0, "0,0.00")
|
|
655
655
|
}
|
|
656
656
|
),
|
|
657
657
|
/* @__PURE__ */ e(M, {})
|
|
@@ -758,7 +758,7 @@ const St = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
758
758
|
}
|
|
759
759
|
);
|
|
760
760
|
}), Bt = ({ goal: t }) => {
|
|
761
|
-
const { goals: n } = C(), {
|
|
761
|
+
const { goals: n } = C(), { visibleRetirementAccounts: i } = V(), {
|
|
762
762
|
addRetirementGoalAccount: s,
|
|
763
763
|
newRetirementGoalAccounts: p,
|
|
764
764
|
retirementGoalAccounts: a,
|
|
@@ -771,18 +771,18 @@ const St = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
771
771
|
), b = i.filter(
|
|
772
772
|
(S) => !a.find((R) => R.account_guid === S.guid)
|
|
773
773
|
), T = async (S) => {
|
|
774
|
-
const R = S.map((
|
|
775
|
-
account_guid:
|
|
774
|
+
const R = S.map((v) => ({
|
|
775
|
+
account_guid: v.guid,
|
|
776
776
|
retirement_goal_guid: t.guid
|
|
777
777
|
}));
|
|
778
778
|
if (c)
|
|
779
779
|
l(R);
|
|
780
780
|
else
|
|
781
|
-
for (const
|
|
782
|
-
await s(
|
|
781
|
+
for (const v of R)
|
|
782
|
+
await s(v), g(n.alert_account_added);
|
|
783
783
|
h({
|
|
784
784
|
..._,
|
|
785
|
-
current_amount: S.reduce((
|
|
785
|
+
current_amount: S.reduce((v, F) => v + (F.balance || 0), 0)
|
|
786
786
|
}), m(!1);
|
|
787
787
|
};
|
|
788
788
|
return /* @__PURE__ */ r(f, { children: [
|
|
@@ -792,7 +792,7 @@ const St = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
792
792
|
] }, S.guid)),
|
|
793
793
|
/* @__PURE__ */ e(N, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ r(k, { onClick: () => m(!0), children: [
|
|
794
794
|
/* @__PURE__ */ e(w, { children: /* @__PURE__ */ r(f, { alignItems: "center", color: "primary.main", direction: "row", gap: 8, children: [
|
|
795
|
-
/* @__PURE__ */ e(
|
|
795
|
+
/* @__PURE__ */ e(xe, { filled: !0 }),
|
|
796
796
|
n.details_add_account
|
|
797
797
|
] }) }),
|
|
798
798
|
/* @__PURE__ */ e(M, { color: "primary" })
|
|
@@ -854,7 +854,7 @@ const St = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
854
854
|
t.track_type === d.SAVINGS_TRACK && !t.is_complete && /* @__PURE__ */ e(wt, { goal: t })
|
|
855
855
|
] });
|
|
856
856
|
}), Ot = D(({ onClose: t }) => {
|
|
857
|
-
const {
|
|
857
|
+
const { visibleRetirementAccounts: n } = V(), { goals: i, common: s } = C(), {
|
|
858
858
|
addGoal: p,
|
|
859
859
|
addRetirementGoal: a,
|
|
860
860
|
deleteGoal: _,
|
|
@@ -865,17 +865,17 @@ const St = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
865
865
|
setAlert: m,
|
|
866
866
|
setSelectedGoal: c,
|
|
867
867
|
updateGoal: u
|
|
868
|
-
} = I(), { user: b } = Ie(), [T, S] = y.useState(!1), R = !o?.guid,
|
|
868
|
+
} = I(), { user: b } = Ie(), [T, S] = y.useState(!1), R = !o?.guid, v = o?.track_type === d.SAVINGS_TRACK && o.is_complete && !o.has_been_spent, F = y.useMemo(() => {
|
|
869
869
|
const G = R ? l : h;
|
|
870
870
|
return n.filter(($) => G.some((K) => K.account_guid === $.guid));
|
|
871
871
|
}, [R, n, l, h]), Z = y.useMemo(() => {
|
|
872
872
|
if (!o) return !1;
|
|
873
|
-
if (!R && !
|
|
873
|
+
if (!R && !v) return !0;
|
|
874
874
|
const { account_guid: G, track_type: $, name: K, amount: q, retirement_age: O } = o;
|
|
875
875
|
return $ === d.SAVINGS_TRACK ? G ? !!K && !!q : !1 : $ === d.RETIREMENT_TRACK ? F.length ? !!K && !!q && !!O && !!b.birthday : !1 : !0;
|
|
876
876
|
}, [o, F, b.birthday]);
|
|
877
877
|
let z = s.delete_button, H = () => S(!0);
|
|
878
|
-
R ? (H = () => te(), z = s.save_button) :
|
|
878
|
+
R ? (H = () => te(), z = s.save_button) : v && (H = () => se(), z = i.mark_as_complete_button);
|
|
879
879
|
const te = async () => {
|
|
880
880
|
if (o) {
|
|
881
881
|
const G = o.track_type;
|
|
@@ -900,7 +900,7 @@ const St = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
900
900
|
isPrimaryDisabled: !Z,
|
|
901
901
|
onClose: () => c(void 0),
|
|
902
902
|
onPrimaryAction: H,
|
|
903
|
-
primaryColor: R ||
|
|
903
|
+
primaryColor: R || v ? "primary" : "error",
|
|
904
904
|
primaryText: z,
|
|
905
905
|
secondaryColor: "primary",
|
|
906
906
|
title: i.goal_details,
|
|
@@ -922,15 +922,15 @@ const St = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
922
922
|
)
|
|
923
923
|
] });
|
|
924
924
|
}), Hn = D(({ onBackClick: t, sx: n }) => {
|
|
925
|
-
const { onEvent: i } = Ge(), { isMobile: s } = he(), { visibleAccounts: p } = V(), { isCopyLoaded: a, isInitialized: _, setSelectedAccounts: g } = Ne(), { goals: l, common: h } = C(), { alert: o, goals: m, goalsLoaded: c, loadGoals: u, monthlyCashFlowProfile: b, setAlert: T, retirmentGoals: S } = I(), [R,
|
|
925
|
+
const { onEvent: i } = Ge(), { isMobile: s } = he(), { visibleAccounts: p } = V(), { isCopyLoaded: a, isInitialized: _, setSelectedAccounts: g } = Ne(), { goals: l, common: h } = C(), { alert: o, goals: m, goalsLoaded: c, loadGoals: u, monthlyCashFlowProfile: b, setAlert: T, retirmentGoals: S } = I(), [R, v] = y.useState(0), [F, Z] = y.useState(!1), z = b?.amount_allocated_for_savings_goals || 0, H = b?.amount_allocated_for_debt_goals || 0, te = b?.amount_allocated_for_retirement_goals || 0, ie = a ? B(
|
|
926
926
|
s ? l.tab_subtitle_mobile : l.tab_subtitle,
|
|
927
|
-
|
|
927
|
+
x(z, "0,0")
|
|
928
928
|
) : "", se = a ? B(
|
|
929
929
|
s ? l.tab_subtitle_mobile : l.tab_subtitle,
|
|
930
|
-
|
|
930
|
+
x(H, "0,0")
|
|
931
931
|
) : "", G = a ? B(
|
|
932
932
|
s ? l.tab_subtitle_mobile : l.tab_subtitle,
|
|
933
|
-
|
|
933
|
+
x(te, "0,0")
|
|
934
934
|
) : "";
|
|
935
935
|
y.useEffect(() => {
|
|
936
936
|
g(p), i(Y.GOALS_VIEW);
|
|
@@ -942,7 +942,7 @@ const St = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
942
942
|
}, K = () => {
|
|
943
943
|
Z(!0), i(Y.GOALS_CLICK_ADD);
|
|
944
944
|
}, q = (X) => {
|
|
945
|
-
Z(!1), X === d.SAVINGS_TRACK ?
|
|
945
|
+
Z(!1), X === d.SAVINGS_TRACK ? v(0) : X === d.DEBT_TRACK ? v(1) : X === d.RETIREMENT_TRACK && v(2);
|
|
946
946
|
}, O = y.useMemo(
|
|
947
947
|
() => c && (m.length === 0 || m.every(({ track_type: X }) => !X) && S.length === 0),
|
|
948
948
|
[m, c, S]
|
|
@@ -967,7 +967,7 @@ const St = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
967
967
|
/* @__PURE__ */ r(
|
|
968
968
|
Fe,
|
|
969
969
|
{
|
|
970
|
-
onChange: (X, Oe) =>
|
|
970
|
+
onChange: (X, Oe) => v(Oe),
|
|
971
971
|
sx: { bgcolor: "background.paper" },
|
|
972
972
|
textColor: "primary",
|
|
973
973
|
value: O ? !1 : R,
|
package/dist/help/index.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { observer as m } from "mobx-react-lite";
|
|
3
|
-
import { H as s } from "../Help-
|
|
4
|
-
import { b as p } from "../hooks-
|
|
3
|
+
import { H as s } from "../Help-CzBAsKA2.mjs";
|
|
4
|
+
import { b as p } from "../hooks-CE2TKk4a.mjs";
|
|
5
5
|
import { L as a } from "../Loader-DUaFpDGv.mjs";
|
|
6
|
-
import { W as n } from "../WidgetContainer-
|
|
6
|
+
import { W as n } from "../WidgetContainer-DtPnPQZY.mjs";
|
|
7
7
|
const x = m(({ onBackClick: o, sx: i }) => {
|
|
8
8
|
const { isCopyLoaded: e, isInitialized: t } = p();
|
|
9
9
|
return !e || !t ? /* @__PURE__ */ r(a, {}) : /* @__PURE__ */ r(n, { onBackClick: o, sx: { p: 16 }, children: /* @__PURE__ */ r(s, { sx: i }) });
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import r from "react";
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
const a = r.createContext(null), b = ({
|
|
4
|
+
children: t,
|
|
5
|
+
globalStore: e,
|
|
6
|
+
onError: s,
|
|
7
|
+
onEvent: l,
|
|
8
|
+
onPageView: u
|
|
9
|
+
}) => /* @__PURE__ */ n(
|
|
10
|
+
a.Provider,
|
|
11
|
+
{
|
|
12
|
+
value: {
|
|
13
|
+
globalStore: e,
|
|
14
|
+
onError: s,
|
|
15
|
+
onEvent: l,
|
|
16
|
+
onPageView: u,
|
|
17
|
+
children: t
|
|
18
|
+
},
|
|
19
|
+
children: t
|
|
20
|
+
}
|
|
21
|
+
), S = r.createContext(null), C = ({ children: t, availableHeight: e, availableWidth: s }) => /* @__PURE__ */ n(
|
|
22
|
+
S.Provider,
|
|
23
|
+
{
|
|
24
|
+
value: {
|
|
25
|
+
availableHeight: e,
|
|
26
|
+
availableWidth: s,
|
|
27
|
+
children: t
|
|
28
|
+
},
|
|
29
|
+
children: t
|
|
30
|
+
}
|
|
31
|
+
), o = (t = "useGlobalStore") => {
|
|
32
|
+
const e = r.useContext(a);
|
|
33
|
+
if (!e)
|
|
34
|
+
throw new Error(`${t}() must be used within the GlobalDataContext`);
|
|
35
|
+
return e;
|
|
36
|
+
}, d = () => o("useAccountStore").globalStore.accountStore, p = () => o("useAppConfig").globalStore.appDataStore.appConfig, h = () => o("useAnalyticsStore").globalStore.analyticsStore, x = () => o("useBudgetsStore").globalStore.budgetsStore, f = () => o("useCashflowStore").globalStore.cashflowStore, w = () => o("useCategoryStore").globalStore.categoryStore, G = () => o("useConnectStore").globalStore.connectStore, v = () => o("useDebtsStore").globalStore.debtsStore, y = () => o("useFinstrongStore").globalStore.finstrongStore, W = () => o("useGlobalStore").globalStore, m = () => o("useGlobalUiStore").globalStore.globalUiStore, E = () => o("globalCopyStore").globalStore.copyStore.copy, P = () => o("useGoalStore").globalStore.goalStore, A = () => o("useHelpStore").globalStore.helpStore, D = () => o("useHoldingStore").globalStore.holdingStore, T = () => o("useMerchantStore").globalStore.merchantStore, U = () => o("useNetWorthStore").globalStore.netWorthStore, H = () => o("useNotificationStore").globalStore.notificationStore, N = () => o("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, B = () => o("useSettingsStore").globalStore.settingsStore, R = () => o("useTransactionStore").globalStore.transactionStore, V = () => o("useTrendsStore").globalStore.trendsStore, j = () => o("useUserStore").globalStore.userStore, F = () => ({ onError: o().onError }), M = () => ({ onEvent: o().onEvent }), $ = () => ({ onPageView: o().onPageView }), c = (t = "useWidgetContainerContext") => {
|
|
37
|
+
const e = r.useContext(S);
|
|
38
|
+
if (!e)
|
|
39
|
+
throw new Error(`${t}() must be used within the WidgetContainerContext`);
|
|
40
|
+
return e;
|
|
41
|
+
}, k = () => c();
|
|
42
|
+
export {
|
|
43
|
+
$ as A,
|
|
44
|
+
b as B,
|
|
45
|
+
S as C,
|
|
46
|
+
a as G,
|
|
47
|
+
C as W,
|
|
48
|
+
p as a,
|
|
49
|
+
m as b,
|
|
50
|
+
T as c,
|
|
51
|
+
d,
|
|
52
|
+
G as e,
|
|
53
|
+
W as f,
|
|
54
|
+
M as g,
|
|
55
|
+
R as h,
|
|
56
|
+
x as i,
|
|
57
|
+
N as j,
|
|
58
|
+
h as k,
|
|
59
|
+
P as l,
|
|
60
|
+
w as m,
|
|
61
|
+
H as n,
|
|
62
|
+
j as o,
|
|
63
|
+
k as p,
|
|
64
|
+
U as q,
|
|
65
|
+
B as r,
|
|
66
|
+
D as s,
|
|
67
|
+
f as t,
|
|
68
|
+
E as u,
|
|
69
|
+
V as v,
|
|
70
|
+
y as w,
|
|
71
|
+
v as x,
|
|
72
|
+
F as y,
|
|
73
|
+
A as z
|
|
74
|
+
};
|
|
@@ -4,7 +4,7 @@ import { observer as P } from "mobx-react-lite";
|
|
|
4
4
|
import _ from "@mui/material/Stack";
|
|
5
5
|
import Ee from "@mui/material/Tab";
|
|
6
6
|
import Ge from "@mui/material/Tabs";
|
|
7
|
-
import { C as ge } from "../ConnectionsDrawer-
|
|
7
|
+
import { C as ge } from "../ConnectionsDrawer-Dkb4vBmt.mjs";
|
|
8
8
|
import pe from "@mui/material/useMediaQuery";
|
|
9
9
|
import Me from "@mui/material/Box";
|
|
10
10
|
import Ne from "@mui/material/Collapse";
|
|
@@ -16,8 +16,8 @@ import xe from "@mui/material/ToggleButton";
|
|
|
16
16
|
import ye from "@mui/material/ToggleButtonGroup";
|
|
17
17
|
import { Text as r, H1 as fe, P as ve, InstitutionLogo as ne } from "@mxenabled/mxui";
|
|
18
18
|
import Ue from "@mui/material/Button";
|
|
19
|
-
import { u as E, g as be,
|
|
20
|
-
import { A as z, W as je } from "../WidgetContainer-
|
|
19
|
+
import { u as E, g as be, s as H, b as Q, d as se } from "../hooks-CE2TKk4a.mjs";
|
|
20
|
+
import { A as z, W as je } from "../WidgetContainer-DtPnPQZY.mjs";
|
|
21
21
|
import { a as ze, f as oe } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
22
22
|
import { u as U } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
23
23
|
import le from "@mui/material/styles/useTheme";
|
|
@@ -12,7 +12,7 @@ import k from "@mui/material/ListItemText";
|
|
|
12
12
|
import A from "@mui/material/Paper";
|
|
13
13
|
import d from "@mui/material/Stack";
|
|
14
14
|
import { MerchantLogo as V, Text as R } from "@mxenabled/mxui";
|
|
15
|
-
import { c as v, u as w, b as C } from "../hooks-
|
|
15
|
+
import { c as v, u as w, b as C } from "../hooks-CE2TKk4a.mjs";
|
|
16
16
|
import { L as p } from "../Loader-DUaFpDGv.mjs";
|
|
17
17
|
import { S as N } from "../SearchBox-B2_zLv8-.mjs";
|
|
18
18
|
import { M as ne } from "../MerchantStore-DrFvsUyy.mjs";
|
|
@@ -3,9 +3,9 @@ import { fromUnixTime as Se } from "date-fns/fromUnixTime";
|
|
|
3
3
|
import { observer as w } from "mobx-react-lite";
|
|
4
4
|
import { useTheme as z } from "@mui/material/styles";
|
|
5
5
|
import { u as Z } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { p as _e, u as T, d as J, g as Q, b as P, q as ee } from "../hooks-CE2TKk4a.mjs";
|
|
7
7
|
import { f as we, D as be } from "../Dialog-CWW597AF.mjs";
|
|
8
|
-
import { L as We } from "../LineChart-
|
|
8
|
+
import { L as We } from "../LineChart-B35qvXik.mjs";
|
|
9
9
|
import W from "@mui/material/Divider";
|
|
10
10
|
import B from "@mui/material/List";
|
|
11
11
|
import E from "@mui/material/ListSubheader";
|
|
@@ -19,15 +19,15 @@ import { i as ne } from "../DateUtil-BcuH7ErC.mjs";
|
|
|
19
19
|
import { C as y } from "../CurrencyText-kyC1aseI.mjs";
|
|
20
20
|
import { Button as Te, Stack as Le } from "@mui/material";
|
|
21
21
|
import { format as Ne, fromUnixTime as De, differenceInMonths as Ee } from "date-fns";
|
|
22
|
-
import { g as K } from "../NetWorthStore-
|
|
23
|
-
import { N as Ot } from "../NetWorthStore-
|
|
22
|
+
import { g as K } from "../NetWorthStore-Do1Gk8Te.mjs";
|
|
23
|
+
import { N as Ot } from "../NetWorthStore-Do1Gk8Te.mjs";
|
|
24
24
|
import { Icon as oe } from "@mxenabled/mx-icons";
|
|
25
25
|
import { f as U } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
26
|
-
import { A as b, W as ke } from "../WidgetContainer-
|
|
26
|
+
import { A as b, W as ke } from "../WidgetContainer-DtPnPQZY.mjs";
|
|
27
27
|
import { L as O } from "../Loader-DUaFpDGv.mjs";
|
|
28
|
-
import { M as Ae } from "../MicroWidgetContainer-
|
|
28
|
+
import { M as Ae } from "../MicroWidgetContainer-C4QQHfD7.mjs";
|
|
29
29
|
import re from "@mui/material/Box";
|
|
30
|
-
import { C as Me } from "../ConnectionsDrawer-
|
|
30
|
+
import { C as Me } from "../ConnectionsDrawer-Dkb4vBmt.mjs";
|
|
31
31
|
import He from "@mui/material/Collapse";
|
|
32
32
|
import V from "@mui/material/ListItemIcon";
|
|
33
33
|
import ie from "@mui/material/styles/useTheme";
|
|
@@ -11,13 +11,13 @@ import B from "@mui/material/List";
|
|
|
11
11
|
import { Text as m, InstitutionLogo as T, CategoryIcon as R } from "@mxenabled/mxui";
|
|
12
12
|
import { h as I } from "../DateUtil-BcuH7ErC.mjs";
|
|
13
13
|
import { useTheme as O, Card as G } from "@mui/material";
|
|
14
|
-
import { d as E, i as j, u as g,
|
|
14
|
+
import { d as E, i as j, u as g, n as N, b as S, a as z } from "../hooks-CE2TKk4a.mjs";
|
|
15
15
|
import { Icon as U, Settings as F } from "@mxenabled/mx-icons";
|
|
16
16
|
import P from "@mui/material/Button";
|
|
17
17
|
import W from "@mui/material/Stack";
|
|
18
18
|
import { L as w } from "../Loader-DUaFpDGv.mjs";
|
|
19
19
|
import $ from "@mui/material/IconButton";
|
|
20
|
-
import { N as H } from "../NotificationSettings-
|
|
20
|
+
import { N as H } from "../NotificationSettings-BuShgjn6.mjs";
|
|
21
21
|
import { D as C } from "../Drawer-kEE73B87.mjs";
|
|
22
22
|
const yt = (e) => {
|
|
23
23
|
switch (e) {
|
|
@@ -8,8 +8,8 @@ import { startOfToday as ue } from "date-fns/startOfToday";
|
|
|
8
8
|
import { subDays as me } from "date-fns/subDays";
|
|
9
9
|
import ae from "@mui/material/Skeleton";
|
|
10
10
|
import c from "@mui/material/Stack";
|
|
11
|
-
import { R as Ee } from "../RecurringSettings-
|
|
12
|
-
import { M as En } from "../RecurringSettings-
|
|
11
|
+
import { R as Ee } from "../RecurringSettings-BVOt46uV.mjs";
|
|
12
|
+
import { M as En } from "../RecurringSettings-BVOt46uV.mjs";
|
|
13
13
|
import { addMonths as ze } from "date-fns/addMonths";
|
|
14
14
|
import { subMonths as Fe } from "date-fns/subMonths";
|
|
15
15
|
import { isBefore as Ue } from "date-fns/isBefore";
|
|
@@ -17,8 +17,8 @@ import se from "@mui/material/Unstable_Grid2";
|
|
|
17
17
|
import Se from "@mui/material/IconButton";
|
|
18
18
|
import _e from "@mui/material/Tab";
|
|
19
19
|
import je from "@mui/material/Tabs";
|
|
20
|
-
import { Schedule as Ke, MonetizationOn as Ye, Cancel as Ge, CheckCircle as Ne, ChevronLeft as Ve, ChevronRight as Xe, CurrencyExchange as
|
|
21
|
-
import { Text as p, MerchantLogo as pe, InstitutionLogo as
|
|
20
|
+
import { Schedule as Ke, MonetizationOn as Ye, Cancel as Ge, CheckCircle as Ne, ChevronLeft as Ve, ChevronRight as Xe, CurrencyExchange as Ze } from "@mxenabled/mx-icons";
|
|
21
|
+
import { Text as p, MerchantLogo as pe, InstitutionLogo as qe, H3 as Je, P as ce } from "@mxenabled/mxui";
|
|
22
22
|
import { getWeeksInMonth as we } from "date-fns/getWeeksInMonth";
|
|
23
23
|
import ge from "@mui/material/styles/useTheme";
|
|
24
24
|
import { AdapterDateFns as Qe } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
@@ -27,12 +27,12 @@ import { LocalizationProvider as tt } from "@mui/x-date-pickers/LocalizationProv
|
|
|
27
27
|
import { isSameDay as nt } from "date-fns/isSameDay";
|
|
28
28
|
import it from "@mui/material/Badge";
|
|
29
29
|
import { PickersDay as rt } from "@mui/x-date-pickers/PickersDay";
|
|
30
|
-
import { I as
|
|
31
|
-
import { u as D, b as
|
|
30
|
+
import { I as Z } from "../IconBacking-B9oC6uL2.mjs";
|
|
31
|
+
import { u as D, b as q, j as I, g as J, p as Oe, d as he, h as fe } from "../hooks-CE2TKk4a.mjs";
|
|
32
32
|
import { c as M, a as S, g as Ie, f as ot } from "../RecurringTransactions-ej39mgA6.mjs";
|
|
33
33
|
import { T as B } from "../RecurringTransactionsStore-DrzS1LmF.mjs";
|
|
34
34
|
import { R as Nn } from "../RecurringTransactionsStore-DrzS1LmF.mjs";
|
|
35
|
-
import { A as w, W as at } from "../WidgetContainer-
|
|
35
|
+
import { A as w, W as at } from "../WidgetContainer-DtPnPQZY.mjs";
|
|
36
36
|
import st from "@mui/material/Button";
|
|
37
37
|
import le from "@mui/material/Divider";
|
|
38
38
|
import ve from "@mui/material/List";
|
|
@@ -41,8 +41,8 @@ import ct from "@mui/material/ListSubheader";
|
|
|
41
41
|
import lt from "@mui/material/ListItemAvatar";
|
|
42
42
|
import dt from "@mui/material/ListItemButton";
|
|
43
43
|
import ut from "@mui/material/ListItemText";
|
|
44
|
-
import { b as mt } from "../ManageIncome-
|
|
45
|
-
import { c as kn, M as Wn, S as $n } from "../ManageIncome-
|
|
44
|
+
import { b as mt } from "../ManageIncome-DUuT-yMV.mjs";
|
|
45
|
+
import { c as kn, M as Wn, S as $n } from "../ManageIncome-DUuT-yMV.mjs";
|
|
46
46
|
import { f as L } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
47
47
|
import { D as xe } from "../Drawer-kEE73B87.mjs";
|
|
48
48
|
import { b as N } from "../Localization-2MODESHW.mjs";
|
|
@@ -51,22 +51,22 @@ import O from "@mui/material/Box";
|
|
|
51
51
|
import { S as We } from "../StatusBar-BK_uYHAB.mjs";
|
|
52
52
|
import { u as ye } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
53
53
|
import { L as V } from "../Loader-DUaFpDGv.mjs";
|
|
54
|
-
import { M as pt } from "../MiniWidgetContainer-
|
|
54
|
+
import { M as pt } from "../MiniWidgetContainer-DTQdRK-3.mjs";
|
|
55
55
|
import { u as gt } from "../useDimensions-27p2evRx.mjs";
|
|
56
|
-
import { M as ht } from "../MicroWidgetContainer-
|
|
56
|
+
import { M as ht } from "../MicroWidgetContainer-C4QQHfD7.mjs";
|
|
57
57
|
const Q = {
|
|
58
58
|
gridRow: 1,
|
|
59
59
|
gridColumn: 1,
|
|
60
60
|
zIndex: 2
|
|
61
|
-
}, ee = (t) => t ? { margin: "0 0 -6px -4px" } : void 0, Ce = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(
|
|
61
|
+
}, ee = (t) => t ? { margin: "0 0 -6px -4px" } : void 0, Ce = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(Z, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Ke, { color: "primary", filled: !0, sx: { fontSize: n, ...Q } }) }), be = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(Z, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(
|
|
62
62
|
Ye,
|
|
63
63
|
{
|
|
64
64
|
filled: !0,
|
|
65
65
|
sx: { color: "categories.income", fontSize: n, ...Q }
|
|
66
66
|
}
|
|
67
|
-
) }), Re = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(
|
|
67
|
+
) }), Re = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(Z, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Ge, { color: "error", filled: !0, sx: { fontSize: n, ...Q } }) }), Te = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(Z, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Ne, { color: "success", filled: !0, sx: { fontSize: n, ...Q } }) }), ft = T(
|
|
68
68
|
({ day: t, outsideCurrentMonth: n, ...i }) => {
|
|
69
|
-
const { recurring: r } = D(), { selectedAccountGuids: o } =
|
|
69
|
+
const { recurring: r } = D(), { selectedAccountGuids: o } = q(), { recurrences: l, setSelectedDay: m } = I(), s = h.useMemo(
|
|
70
70
|
() => l.filter((d) => o.includes(d.accountGuid)),
|
|
71
71
|
[o, l]
|
|
72
72
|
).filter(
|
|
@@ -278,7 +278,7 @@ const Q = {
|
|
|
278
278
|
/* @__PURE__ */ e(p, { variant: "caption", children: Ct(t, o) })
|
|
279
279
|
] }) : /* @__PURE__ */ a(X, { children: [
|
|
280
280
|
t.institutionGuid && /* @__PURE__ */ e(
|
|
281
|
-
|
|
281
|
+
qe,
|
|
282
282
|
{
|
|
283
283
|
alt: t.institutionName,
|
|
284
284
|
institutionGuid: t.institutionGuid,
|
|
@@ -559,7 +559,7 @@ const Q = {
|
|
|
559
559
|
}
|
|
560
560
|
);
|
|
561
561
|
}), wn = T(({ onBackClick: t, sx: n = {} }) => {
|
|
562
|
-
const { accounts: i } = he(), { recurring: r } = D(), { isCopyLoaded: o, isInitialized: l, selectedAccountGuids: m, setSelectedAccounts: g } =
|
|
562
|
+
const { accounts: i } = he(), { recurring: r } = D(), { isCopyLoaded: o, isInitialized: l, selectedAccountGuids: m, setSelectedAccounts: g } = q(), { isDataLoaded: s, loadRepeatingTransactions: u, setDateRange: f } = I(), { setFilter: x } = fe(), { onEvent: C } = J(), { isMobile: y } = ye(), [d, b] = h.useState(!1);
|
|
563
563
|
return h.useEffect(() => {
|
|
564
564
|
g(i);
|
|
565
565
|
}, [i]), h.useEffect(() => {
|
|
@@ -626,7 +626,7 @@ const Q = {
|
|
|
626
626
|
] });
|
|
627
627
|
}), In = T(
|
|
628
628
|
({ onPrimaryCtaClick: t, sx: n }) => {
|
|
629
|
-
const { accounts: i } = he(), { recurring: r } = D(), { setFilter: o } = fe(), { isDataLoaded: l, loadRepeatingTransactions: m } = I(), { isCopyLoaded: g, isInitialized: s, setSelectedAccounts: u, selectedAccountGuids: f } =
|
|
629
|
+
const { accounts: i } = he(), { recurring: r } = D(), { setFilter: o } = fe(), { isDataLoaded: l, loadRepeatingTransactions: m } = I(), { isCopyLoaded: g, isInitialized: s, setSelectedAccounts: u, selectedAccountGuids: f } = q();
|
|
630
630
|
return h.useEffect(() => {
|
|
631
631
|
s && u(i);
|
|
632
632
|
}, [s]), h.useEffect(() => {
|
|
@@ -719,7 +719,7 @@ const Q = {
|
|
|
719
719
|
] }), _t = T(() => {
|
|
720
720
|
const { recurring: t } = D();
|
|
721
721
|
return /* @__PURE__ */ a(c, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
|
|
722
|
-
/* @__PURE__ */ e(
|
|
722
|
+
/* @__PURE__ */ e(Ze, { size: 32 }),
|
|
723
723
|
/* @__PURE__ */ a(c, { children: [
|
|
724
724
|
/* @__PURE__ */ e(ce, { fontWeight: 600, variant: "body1", children: t.zero_state_content_header }),
|
|
725
725
|
/* @__PURE__ */ e(ce, { color: "text.secondary", variant: "subtitle2", children: t.zero_state_content_description })
|
|
@@ -727,7 +727,7 @@ const Q = {
|
|
|
727
727
|
] });
|
|
728
728
|
}), vn = T(
|
|
729
729
|
({ onCTAClick: t }) => {
|
|
730
|
-
const [n, i] = h.useState(!1), { onEvent: r } = J(), o = ge(), { accounts: l } = he(), [m, { width: g }] = gt(), { isCopyLoaded: s, isInitialized: u, selectedAccountGuids: f, setSelectedAccounts: x } =
|
|
730
|
+
const [n, i] = h.useState(!1), { onEvent: r } = J(), o = ge(), { accounts: l } = he(), [m, { width: g }] = gt(), { isCopyLoaded: s, isInitialized: u, selectedAccountGuids: f, setSelectedAccounts: x } = q(), {
|
|
731
731
|
loadRepeatingTransactions: C,
|
|
732
732
|
upcomingRecurrences: y,
|
|
733
733
|
expenseTotal: d,
|