@mx-cartographer/experiences 9.2.1 → 9.2.3
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 +8 -0
- package/dist/ManageIncome-Czs7daKV.mjs.map +1 -1
- package/dist/{UserStore-BBceqFxh.mjs → UserStore-Cp-2Jtnw.mjs} +49 -50
- package/dist/UserStore-Cp-2Jtnw.mjs.map +1 -0
- package/dist/{WidgetContainer-CjdCY4sj.mjs → WidgetContainer-CoHQ75sR.mjs} +26 -22
- package/dist/WidgetContainer-CoHQ75sR.mjs.map +1 -0
- package/dist/accounts/index.es.js +1 -1
- package/dist/budgets/index.es.js +1 -1
- package/dist/cashflow/index.es.js +333 -311
- package/dist/cashflow/index.es.js.map +1 -1
- package/dist/common/index.es.js +2 -2
- package/dist/core/index.es.js +1 -1
- package/dist/core/stores/RecurringTransactionsStore.d.ts +3 -3
- package/dist/core/types/localization/RecurringCopy.d.ts +6 -0
- package/dist/debts/index.es.js +1 -1
- package/dist/finstrong/index.es.js +1 -1
- package/dist/goals/index.es.js +1 -1
- package/dist/help/index.es.js +1 -1
- package/dist/investments/index.es.js +1 -1
- package/dist/networth/index.es.js +1 -1
- package/dist/recurringtransactions/index.es.js +121 -111
- package/dist/recurringtransactions/index.es.js.map +1 -1
- package/dist/settings/index.es.js +1 -1
- package/dist/spending/index.es.js +1 -1
- package/dist/transactions/index.es.js +1 -1
- package/dist/trends/index.es.js +1 -1
- package/package.json +1 -1
- package/dist/UserStore-BBceqFxh.mjs.map +0 -1
- package/dist/WidgetContainer-CjdCY4sj.mjs.map +0 -1
|
@@ -8,7 +8,7 @@ import { startOfToday as Q } from "date-fns/startOfToday";
|
|
|
8
8
|
import { subDays as ee } from "date-fns/subDays";
|
|
9
9
|
import Be from "@mui/material/Alert";
|
|
10
10
|
import Fe from "@mui/material/Snackbar";
|
|
11
|
-
import { R as
|
|
11
|
+
import { R as De } from "../RecurringSettings-CcS5b1xA.mjs";
|
|
12
12
|
import { M as Jn } from "../RecurringSettings-CcS5b1xA.mjs";
|
|
13
13
|
import { addMonths as Ue } from "date-fns/addMonths";
|
|
14
14
|
import { subMonths as Ye } from "date-fns/subMonths";
|
|
@@ -35,22 +35,22 @@ import { isSameDay as dt } from "date-fns/isSameDay";
|
|
|
35
35
|
import ut from "@mui/material/Badge";
|
|
36
36
|
import { PickersDay as mt } from "@mui/x-date-pickers/PickersDay";
|
|
37
37
|
import { I as F } from "../IconBacking-DgT8DCeh.mjs";
|
|
38
|
-
import { u as b, a as U, h as
|
|
39
|
-
import { b as E, a as
|
|
40
|
-
import { f as I, D as
|
|
38
|
+
import { u as b, a as U, h as D, f as Y, D as Ie, g as re } from "../hooks-97sNJ_lf.mjs";
|
|
39
|
+
import { b as E, a as _, g as ye, e as pt, R as gt } from "../RecurringTransactionsUtil-CfWviBh1.mjs";
|
|
40
|
+
import { f as I, D as v } from "../DateFormats-HudZ3Bjs.mjs";
|
|
41
41
|
import { T as W } from "../Sizes-DISGrlUg.mjs";
|
|
42
|
-
import { A as
|
|
42
|
+
import { A as M } from "../Analytics-D-jdcL72.mjs";
|
|
43
43
|
import ht from "@mui/material/Button";
|
|
44
44
|
import X from "@mui/material/Divider";
|
|
45
45
|
import Ce from "@mui/material/List";
|
|
46
|
-
import
|
|
46
|
+
import ve from "@mui/material/ListItem";
|
|
47
47
|
import ft from "@mui/material/ListSubheader";
|
|
48
48
|
import xt from "@mui/material/ListItemAvatar";
|
|
49
49
|
import bt from "@mui/material/ListItemButton";
|
|
50
50
|
import yt from "@mui/material/ListItemText";
|
|
51
|
-
import { f as
|
|
51
|
+
import { f as A } from "../NumberFormatting--XMeeBfr.mjs";
|
|
52
52
|
import N from "@mui/material/Box";
|
|
53
|
-
import { u as
|
|
53
|
+
import { u as Me } from "../useScreenSize-mWpmnh5w.mjs";
|
|
54
54
|
import { S as Le } from "../StatusBar-CPfSXe80.mjs";
|
|
55
55
|
import { d as Ct } from "../ManageIncome-Czs7daKV.mjs";
|
|
56
56
|
import { c as er, M as tr, S as nr } from "../ManageIncome-Czs7daKV.mjs";
|
|
@@ -58,10 +58,10 @@ import { D as ie } from "../Drawer-DsnW2o0v.mjs";
|
|
|
58
58
|
import { S as Ae } from "../SkeletonLoader-BaNboJjD.mjs";
|
|
59
59
|
import { u as oe } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
|
|
60
60
|
import { L as ae } from "../Loader-CxeBwuPG.mjs";
|
|
61
|
-
import { W as Rt } from "../WidgetContainer-
|
|
61
|
+
import { W as Rt } from "../WidgetContainer-CoHQ75sR.mjs";
|
|
62
62
|
import { M as Tt } from "../MiniWidgetContainer-Bmv_WeUd.mjs";
|
|
63
|
-
import { u as
|
|
64
|
-
import { M as
|
|
63
|
+
import { u as _t } from "../useDimensions-CeDR9V8N.mjs";
|
|
64
|
+
import { M as Dt } from "../MicroWidgetContainer-B2NnKBgW.mjs";
|
|
65
65
|
const j = {
|
|
66
66
|
gridRow: 1,
|
|
67
67
|
gridColumn: 1,
|
|
@@ -106,28 +106,28 @@ const j = {
|
|
|
106
106
|
}
|
|
107
107
|
), St = T(
|
|
108
108
|
({ day: t, outsideCurrentMonth: n, ...r }) => {
|
|
109
|
-
const { recurring: i } = b(), { selectedAccountGuids: o } = U(), { recurrences: s, setSelectedDay:
|
|
109
|
+
const { recurring: i } = b(), { selectedAccountGuids: o } = U(), { recurrences: s, setSelectedDay: u } = D(), a = x.useMemo(
|
|
110
110
|
() => s.filter((f) => o.includes(f.accountGuid)),
|
|
111
111
|
[o, s]
|
|
112
112
|
).filter(
|
|
113
113
|
(f) => dt(f.occurredOnDate || f.expectedDate, t)
|
|
114
114
|
), l = a.some(
|
|
115
|
-
(f) => f.type !== E.Income && f.status ===
|
|
116
|
-
),
|
|
117
|
-
(f) => f.type !== E.Income && f.status ===
|
|
115
|
+
(f) => f.type !== E.Income && f.status === _.Upcoming
|
|
116
|
+
), m = a.some(
|
|
117
|
+
(f) => f.type !== E.Income && f.status === _.Missed
|
|
118
118
|
), g = a.some(
|
|
119
|
-
(f) => f.type !== E.Income && f.status ===
|
|
120
|
-
), y = a.some((f) => f.type === E.Income), C = (l ? 1 : 0) + (
|
|
119
|
+
(f) => f.type !== E.Income && f.status === _.Paid
|
|
120
|
+
), y = a.some((f) => f.type === E.Income), C = (l ? 1 : 0) + (m ? 1 : 0) + (g ? 1 : 0) + (y ? 1 : 0), S = [
|
|
121
121
|
g && i.paid,
|
|
122
|
-
|
|
122
|
+
m && i.missed,
|
|
123
123
|
l && i.upcoming,
|
|
124
124
|
y && i.income
|
|
125
|
-
].filter(Boolean),
|
|
125
|
+
].filter(Boolean), L = S.length > 0 ? `${I(t, v.MONTH_DAY_YEAR)}, ${S.join(", ")}` : I(t, v.MONTH_DAY_YEAR);
|
|
126
126
|
return /* @__PURE__ */ e(
|
|
127
127
|
ut,
|
|
128
128
|
{
|
|
129
129
|
badgeContent: a.length > 0 && /* @__PURE__ */ c(B, { children: [
|
|
130
|
-
|
|
130
|
+
m && /* @__PURE__ */ e(le, { isOffset: !0 }),
|
|
131
131
|
g && /* @__PURE__ */ e(de, { isOffset: !0 }),
|
|
132
132
|
l && /* @__PURE__ */ e(se, { isOffset: !0 }),
|
|
133
133
|
y && /* @__PURE__ */ e(ce, { isOffset: !0 })
|
|
@@ -143,9 +143,9 @@ const j = {
|
|
|
143
143
|
children: /* @__PURE__ */ e(
|
|
144
144
|
mt,
|
|
145
145
|
{
|
|
146
|
-
"aria-label":
|
|
146
|
+
"aria-label": L,
|
|
147
147
|
day: t,
|
|
148
|
-
onClick: () =>
|
|
148
|
+
onClick: () => u(t),
|
|
149
149
|
outsideCurrentMonth: n,
|
|
150
150
|
sx: {
|
|
151
151
|
"&.MuiPickersDay-root": {
|
|
@@ -195,15 +195,15 @@ const j = {
|
|
|
195
195
|
[O.ES]: it
|
|
196
196
|
}[t] || be;
|
|
197
197
|
}, Ee = T(() => {
|
|
198
|
-
const t = ne(), { onEvent: n } = Y(), { recurring: r } = b(), { selectedDay: i, setDateRange: o } =
|
|
198
|
+
const t = ne(), { onEvent: n } = Y(), { recurring: r } = b(), { selectedDay: i, setDateRange: o } = D(), [s, u] = x.useState(
|
|
199
199
|
xe(/* @__PURE__ */ new Date()) * W + Re
|
|
200
|
-
), p = (
|
|
201
|
-
|
|
202
|
-
start: k(
|
|
203
|
-
end: z(
|
|
204
|
-
}), a(
|
|
205
|
-
}, a = (
|
|
206
|
-
|
|
200
|
+
), p = (m) => {
|
|
201
|
+
u(xe(m) * W + Re), o({
|
|
202
|
+
start: k(m),
|
|
203
|
+
end: z(m)
|
|
204
|
+
}), a(m), n(M.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
|
|
205
|
+
}, a = (m) => {
|
|
206
|
+
m && requestAnimationFrame(() => {
|
|
207
207
|
const g = document.getElementById("recurrence-list");
|
|
208
208
|
g?.setAttribute("tabindex", "-1"), g?.focus();
|
|
209
209
|
});
|
|
@@ -270,36 +270,36 @@ const j = {
|
|
|
270
270
|
/* @__PURE__ */ e(h, { id: "calendar-label", sx: { alignSelf: "center" }, variant: "body2", children: r.calendar_tooltip }),
|
|
271
271
|
/* @__PURE__ */ e(wt, {})
|
|
272
272
|
] }) });
|
|
273
|
-
}),
|
|
273
|
+
}), vt = (t) => {
|
|
274
274
|
if (t.type === E.Income)
|
|
275
275
|
return /* @__PURE__ */ e(ce, {});
|
|
276
276
|
switch (t.status) {
|
|
277
|
-
case
|
|
277
|
+
case _.Missed:
|
|
278
278
|
return /* @__PURE__ */ e(le, {});
|
|
279
|
-
case
|
|
279
|
+
case _.Paid:
|
|
280
280
|
return /* @__PURE__ */ e(de, {});
|
|
281
281
|
default:
|
|
282
282
|
return /* @__PURE__ */ e(se, {});
|
|
283
283
|
}
|
|
284
|
-
},
|
|
284
|
+
}, Mt = (t, n) => {
|
|
285
285
|
switch (t.status) {
|
|
286
|
-
case
|
|
286
|
+
case _.Paid:
|
|
287
287
|
return t.expectedDate ? G(
|
|
288
288
|
n.paid_on,
|
|
289
289
|
I(
|
|
290
290
|
t.occurredOnDate || t.expectedDate,
|
|
291
|
-
|
|
291
|
+
v.MONTH_DAY
|
|
292
292
|
)
|
|
293
293
|
) : n.paid;
|
|
294
|
-
case
|
|
294
|
+
case _.Missed:
|
|
295
295
|
return G(
|
|
296
296
|
n.missed_on,
|
|
297
|
-
I(t.expectedDate,
|
|
297
|
+
I(t.expectedDate, v.MONTH_DAY)
|
|
298
298
|
);
|
|
299
|
-
case
|
|
299
|
+
case _.Upcoming:
|
|
300
300
|
return G(
|
|
301
301
|
n.upcoming_on,
|
|
302
|
-
I(t.expectedDate,
|
|
302
|
+
I(t.expectedDate, v.MONTH_DAY)
|
|
303
303
|
);
|
|
304
304
|
default:
|
|
305
305
|
return n.unknown;
|
|
@@ -311,13 +311,13 @@ const j = {
|
|
|
311
311
|
},
|
|
312
312
|
showOrdinal: i = !1
|
|
313
313
|
}) => {
|
|
314
|
-
const { recurring: o } = b(), { detailedRepeatingTransactions: s } =
|
|
314
|
+
const { recurring: o } = b(), { detailedRepeatingTransactions: s } = D(), u = x.useMemo(
|
|
315
315
|
() => s.find((C) => C.guid === t.repeatingTransactionGuid),
|
|
316
316
|
[t, s]
|
|
317
|
-
), p = t.type === E.Income, a = t.status ===
|
|
317
|
+
), p = t.type === E.Income, a = t.status === _.Paid, l = t.status === _.Missed, m = t.status === _.Upcoming;
|
|
318
318
|
let g = o.paid?.toLowerCase();
|
|
319
|
-
return l ? g = o.missed?.toLowerCase() :
|
|
320
|
-
/* @__PURE__ */ e(
|
|
319
|
+
return l ? g = o.missed?.toLowerCase() : m && (g = i ? ye(o, u || {}, !0) : ye(o, u || {}, !1)), //TODO: implement common/components/ListItemRow.tsx
|
|
320
|
+
/* @__PURE__ */ e(ve, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ c(bt, { onClick: () => {
|
|
321
321
|
r(t);
|
|
322
322
|
}, children: [
|
|
323
323
|
/* @__PURE__ */ e(xt, { children: /* @__PURE__ */ e(
|
|
@@ -337,8 +337,8 @@ const j = {
|
|
|
337
337
|
/* @__PURE__ */ c(d, { direction: "column", width: "50%", children: [
|
|
338
338
|
/* @__PURE__ */ e(h, { bold: !0, variant: "body1", children: t.name }),
|
|
339
339
|
/* @__PURE__ */ e(d, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */ c(d, { direction: "row", gap: 4, children: [
|
|
340
|
-
|
|
341
|
-
/* @__PURE__ */ e(h, { variant: "caption", children:
|
|
340
|
+
vt(t),
|
|
341
|
+
/* @__PURE__ */ e(h, { variant: "caption", children: Mt(t, o) })
|
|
342
342
|
] }) : /* @__PURE__ */ c(B, { children: [
|
|
343
343
|
t.institutionGuid && /* @__PURE__ */ e(
|
|
344
344
|
Qe,
|
|
@@ -354,7 +354,7 @@ const j = {
|
|
|
354
354
|
/* @__PURE__ */ c(d, { alignItems: "flex-end", width: "100%", children: [
|
|
355
355
|
/* @__PURE__ */ c(h, { bold: !0, color: p ? "success.main" : "text.primary", variant: "body1", children: [
|
|
356
356
|
p ? "+" : "",
|
|
357
|
-
|
|
357
|
+
A(t.amount, "0,0.00")
|
|
358
358
|
] }),
|
|
359
359
|
!n && /* @__PURE__ */ c(
|
|
360
360
|
d,
|
|
@@ -388,7 +388,7 @@ const j = {
|
|
|
388
388
|
sx: o = {},
|
|
389
389
|
title: s
|
|
390
390
|
}) => {
|
|
391
|
-
const { recurring:
|
|
391
|
+
const { recurring: u } = b(), p = x.useMemo(() => pt(t), [t]);
|
|
392
392
|
return /* @__PURE__ */ c(d, { id: "recurrence-list", sx: { gap: 8, mt: 4, ...o }, tabIndex: -1, children: [
|
|
393
393
|
s && /* @__PURE__ */ c(
|
|
394
394
|
d,
|
|
@@ -401,11 +401,11 @@ const j = {
|
|
|
401
401
|
},
|
|
402
402
|
children: [
|
|
403
403
|
/* @__PURE__ */ e(et, { bold: !0, variant: "body1", children: s }),
|
|
404
|
-
r && /* @__PURE__ */ e(ht, { onClick: r, size: "small", variant: "text", children:
|
|
404
|
+
r && /* @__PURE__ */ e(ht, { onClick: r, size: "small", variant: "text", children: u.reset })
|
|
405
405
|
]
|
|
406
406
|
}
|
|
407
407
|
),
|
|
408
|
-
t.length === 0 ? /* @__PURE__ */ e(h, { fontStyle: "italic", sx: { py: 24, textAlign: "center" }, children:
|
|
408
|
+
t.length === 0 ? /* @__PURE__ */ e(h, { fontStyle: "italic", sx: { py: 24, textAlign: "center" }, children: u.no_activities }) : /* @__PURE__ */ e(Ce, { "aria-label": s, children: n ? t.map((a, l) => /* @__PURE__ */ c(x.Fragment, { children: [
|
|
409
409
|
/* @__PURE__ */ e(
|
|
410
410
|
Te,
|
|
411
411
|
{
|
|
@@ -416,7 +416,7 @@ const j = {
|
|
|
416
416
|
),
|
|
417
417
|
/* @__PURE__ */ e(X, { sx: { mx: 24 } })
|
|
418
418
|
] }, `recurrence-${l}`)) : p.map((a, l) => /* @__PURE__ */ c(x.Fragment, { children: [
|
|
419
|
-
/* @__PURE__ */ e(
|
|
419
|
+
/* @__PURE__ */ e(ve, { children: /* @__PURE__ */ e(
|
|
420
420
|
Ce,
|
|
421
421
|
{
|
|
422
422
|
"aria-labelledby": `date-group-header-${a.id}`,
|
|
@@ -427,16 +427,16 @@ const j = {
|
|
|
427
427
|
id: `date-group-header-${a.id}`,
|
|
428
428
|
role: "presentation",
|
|
429
429
|
sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 },
|
|
430
|
-
children: /* @__PURE__ */ e(h, { bold: !0, variant: "caption", children: I(a.date,
|
|
430
|
+
children: /* @__PURE__ */ e(h, { bold: !0, variant: "caption", children: I(a.date, v.DAY_OF_WEEK_MONTH_DAY) })
|
|
431
431
|
}
|
|
432
432
|
),
|
|
433
433
|
sx: { width: "100%" },
|
|
434
|
-
children: a.recurrences.map((
|
|
434
|
+
children: a.recurrences.map((m, g) => /* @__PURE__ */ e(x.Fragment, { children: /* @__PURE__ */ e(
|
|
435
435
|
Te,
|
|
436
436
|
{
|
|
437
437
|
isMini: n,
|
|
438
438
|
onRecurrenceClick: i,
|
|
439
|
-
recurrence:
|
|
439
|
+
recurrence: m
|
|
440
440
|
}
|
|
441
441
|
) }, `day-recurrence-${g}`))
|
|
442
442
|
}
|
|
@@ -445,29 +445,29 @@ const j = {
|
|
|
445
445
|
] }, `recurrence-${l}`)) })
|
|
446
446
|
] });
|
|
447
447
|
}
|
|
448
|
-
),
|
|
449
|
-
({ expected: t, isExpense: n = !0, missed: r, paid: i, title: o, total: s, upcoming:
|
|
450
|
-
const p = ne(), { isSmallMobile: a } =
|
|
448
|
+
), _e = T(
|
|
449
|
+
({ expected: t, isExpense: n = !0, missed: r, paid: i, title: o, total: s, upcoming: u }) => {
|
|
450
|
+
const p = ne(), { isSmallMobile: a } = Me(), { recurring: l } = b(), m = x.useMemo(() => {
|
|
451
451
|
const g = [{ color: p.palette.success.main, percentage: `${i / t}` }];
|
|
452
452
|
return r && g.push({ color: p.palette.error.main, percentage: `${r / t}` }), g;
|
|
453
453
|
}, [i, t, r]);
|
|
454
454
|
return /* @__PURE__ */ c(d, { children: [
|
|
455
455
|
/* @__PURE__ */ c(d, { sx: { flexDirection: "row", justifyContent: "space-between", pb: 12 }, children: [
|
|
456
456
|
/* @__PURE__ */ e(h, { bold: !0, variant: "body1", children: `${o} (${s})` }),
|
|
457
|
-
/* @__PURE__ */ e(h, { bold: !0, color: n ? "text.primary" : "success.main", variant: "body1", children: `${n ? "-" : "+"}${
|
|
457
|
+
/* @__PURE__ */ e(h, { bold: !0, color: n ? "text.primary" : "success.main", variant: "body1", children: `${n ? "-" : "+"}${A(t, "0,0.00")}` })
|
|
458
458
|
] }),
|
|
459
|
-
/* @__PURE__ */ e(Le, { data:
|
|
459
|
+
/* @__PURE__ */ e(Le, { data: m, height: 12 }),
|
|
460
460
|
/* @__PURE__ */ c(d, { sx: { alignItems: "center", flexDirection: "row", gap: 2, my: 8 }, children: [
|
|
461
461
|
/* @__PURE__ */ e(N, { sx: { bgcolor: "success.main", height: 8, mr: 8, width: 8 } }),
|
|
462
|
-
!a && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children:
|
|
462
|
+
!a && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children: A(i, "0,0.00") }),
|
|
463
463
|
/* @__PURE__ */ e(h, { variant: "caption", children: l.paid?.toLowerCase() }),
|
|
464
464
|
r !== void 0 && /* @__PURE__ */ c(B, { children: [
|
|
465
465
|
/* @__PURE__ */ e(N, { sx: { bgcolor: "error.main", height: 8, ml: 16, mr: 8, width: 8 } }),
|
|
466
|
-
!a && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children:
|
|
466
|
+
!a && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children: A(r, "0,0.00") }),
|
|
467
467
|
/* @__PURE__ */ e(h, { variant: "caption", children: l.missed?.toLowerCase() })
|
|
468
468
|
] }),
|
|
469
469
|
/* @__PURE__ */ e(N, { sx: { bgcolor: "divider", height: 8, ml: 16, mr: 8, width: 8 } }),
|
|
470
|
-
!a && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children:
|
|
470
|
+
!a && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children: A(u, "0,0.00") }),
|
|
471
471
|
/* @__PURE__ */ e(h, { variant: "caption", children: l.upcoming?.toLowerCase() })
|
|
472
472
|
] })
|
|
473
473
|
] });
|
|
@@ -478,7 +478,7 @@ const j = {
|
|
|
478
478
|
selectedRepeatingTransaction: r,
|
|
479
479
|
setSelectedRecurrence: i,
|
|
480
480
|
setSelectedRepeatingTransactionGuid: o
|
|
481
|
-
} =
|
|
481
|
+
} = D(), s = () => {
|
|
482
482
|
o(null), i(null);
|
|
483
483
|
};
|
|
484
484
|
return /* @__PURE__ */ e(
|
|
@@ -499,17 +499,17 @@ const j = {
|
|
|
499
499
|
}
|
|
500
500
|
);
|
|
501
501
|
}), Lt = T(() => {
|
|
502
|
-
const { recurring: t } = b(), { availableWidth: n } = Ie(), { isDesktop: r, isSmallMobile: i, isMobile: o } =
|
|
503
|
-
currentMonthExpenses:
|
|
502
|
+
const { recurring: t } = b(), { availableWidth: n } = Ie(), { isDesktop: r, isSmallMobile: i, isMobile: o } = Me(n), { onEvent: s } = Y(), {
|
|
503
|
+
currentMonthExpenses: u,
|
|
504
504
|
currentMonthIncome: p,
|
|
505
505
|
dateRange: a,
|
|
506
506
|
expenseTotal: l,
|
|
507
|
-
incomeTotal:
|
|
507
|
+
incomeTotal: m,
|
|
508
508
|
missedExpenseTotal: g,
|
|
509
509
|
pastRecurrences: y,
|
|
510
510
|
paidExpenseTotal: C,
|
|
511
511
|
paidIncomeTotal: S,
|
|
512
|
-
selectedDay:
|
|
512
|
+
selectedDay: L,
|
|
513
513
|
selectedDayRecurrences: f,
|
|
514
514
|
setDateRange: w,
|
|
515
515
|
setSelectedRecurrence: H,
|
|
@@ -517,14 +517,14 @@ const j = {
|
|
|
517
517
|
upcomingExpenseTotal: Ne,
|
|
518
518
|
upcomingIncomeTotal: ke,
|
|
519
519
|
upcomingRecurrences: me
|
|
520
|
-
} =
|
|
520
|
+
} = D(), [V, Oe] = x.useState(0), We = je(a.start, /* @__PURE__ */ new Date()), Pe = (R, $e) => {
|
|
521
521
|
Oe($e);
|
|
522
522
|
}, pe = (R) => {
|
|
523
|
-
ue(R.repeatingTransactionGuid), H(R), s(
|
|
523
|
+
ue(R.repeatingTransactionGuid), H(R), s(M.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
|
|
524
524
|
transaction_guid: R.transaction?.guid
|
|
525
525
|
});
|
|
526
526
|
}, ge = (R) => {
|
|
527
|
-
ue(R.repeatingTransactionGuid), H(R), s(
|
|
527
|
+
ue(R.repeatingTransactionGuid), H(R), s(M.RECURRING_TRANSACTIONS_CLICK_PAID, {
|
|
528
528
|
transaction_guid: R.transaction?.guid
|
|
529
529
|
});
|
|
530
530
|
}, ze = () => {
|
|
@@ -553,7 +553,7 @@ const j = {
|
|
|
553
553
|
/* @__PURE__ */ c(d, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
554
554
|
/* @__PURE__ */ e(tt, { variant: "h3", children: G(
|
|
555
555
|
t.header_title,
|
|
556
|
-
I(a.start,
|
|
556
|
+
I(a.start, v.MONTH_LONG)
|
|
557
557
|
) }),
|
|
558
558
|
!r && /* @__PURE__ */ c(d, { direction: "row", gap: 4, children: [
|
|
559
559
|
/* @__PURE__ */ e(
|
|
@@ -569,20 +569,20 @@ const j = {
|
|
|
569
569
|
] })
|
|
570
570
|
] }),
|
|
571
571
|
/* @__PURE__ */ e(
|
|
572
|
-
|
|
572
|
+
_e,
|
|
573
573
|
{
|
|
574
574
|
expected: l,
|
|
575
575
|
missed: g,
|
|
576
576
|
paid: C,
|
|
577
577
|
title: t.expenses,
|
|
578
|
-
total:
|
|
578
|
+
total: u.length,
|
|
579
579
|
upcoming: Ne
|
|
580
580
|
}
|
|
581
581
|
),
|
|
582
582
|
/* @__PURE__ */ e(
|
|
583
|
-
|
|
583
|
+
_e,
|
|
584
584
|
{
|
|
585
|
-
expected:
|
|
585
|
+
expected: m,
|
|
586
586
|
isExpense: !1,
|
|
587
587
|
paid: S,
|
|
588
588
|
title: t.deposits,
|
|
@@ -637,9 +637,9 @@ const j = {
|
|
|
637
637
|
{
|
|
638
638
|
onRecurrenceClick: ge,
|
|
639
639
|
recurrences: f || y,
|
|
640
|
-
title:
|
|
640
|
+
title: L ? G(
|
|
641
641
|
t.day_transactions,
|
|
642
|
-
I(
|
|
642
|
+
I(L, v.MONTH_DAY)
|
|
643
643
|
) : t.past_transactions
|
|
644
644
|
}
|
|
645
645
|
)
|
|
@@ -650,7 +650,7 @@ const j = {
|
|
|
650
650
|
);
|
|
651
651
|
}), jn = T(
|
|
652
652
|
({ onBackClick: t, onMenuClick: n, sx: r = {} }) => {
|
|
653
|
-
const { recurring: i } = b(), { isInitialized: o, selectedAccountGuids: s } = U(), { alert:
|
|
653
|
+
const { recurring: i } = b(), { isInitialized: o, selectedAccountGuids: s } = U(), { alert: u, isDataLoaded: p, loadRepeatingTransactionData: a, setAlert: l, setDateRange: m } = D(), { setFilter: g } = re(), { onEvent: y } = Y(), [C, S] = x.useState(!1);
|
|
654
654
|
return oe({
|
|
655
655
|
widgetName: "RecurringTransactionsWidget",
|
|
656
656
|
isLoaded: p
|
|
@@ -660,7 +660,7 @@ const j = {
|
|
|
660
660
|
g({
|
|
661
661
|
dateRange: { start: ee(Q(), 90), end: J() },
|
|
662
662
|
accounts: s
|
|
663
|
-
}),
|
|
663
|
+
}), m({ start: k(/* @__PURE__ */ new Date()), end: z(/* @__PURE__ */ new Date()) });
|
|
664
664
|
}, [s]), o ? /* @__PURE__ */ c(
|
|
665
665
|
Rt,
|
|
666
666
|
{
|
|
@@ -669,12 +669,12 @@ const j = {
|
|
|
669
669
|
label: i.action_title,
|
|
670
670
|
iconName: "credit_card_gear",
|
|
671
671
|
onClick: () => {
|
|
672
|
-
S(!0), y(
|
|
672
|
+
S(!0), y(M.RECURRING_TRANSACTIONS_CLICK_SETTINGS);
|
|
673
673
|
}
|
|
674
674
|
}
|
|
675
675
|
],
|
|
676
676
|
hasDivider: !0,
|
|
677
|
-
onAccountsFilterClick: () => y(
|
|
677
|
+
onAccountsFilterClick: () => y(M.RECURRING_TRANSACTIONS_CLICK_FILTER),
|
|
678
678
|
onBackClick: t,
|
|
679
679
|
onMenuClick: n,
|
|
680
680
|
sx: r,
|
|
@@ -689,7 +689,7 @@ const j = {
|
|
|
689
689
|
onClose: () => S(!1),
|
|
690
690
|
shouldShowHeaderBorders: !1,
|
|
691
691
|
title: i.action_title,
|
|
692
|
-
children: /* @__PURE__ */ e(
|
|
692
|
+
children: /* @__PURE__ */ e(De, {})
|
|
693
693
|
}
|
|
694
694
|
),
|
|
695
695
|
/* @__PURE__ */ e(
|
|
@@ -697,9 +697,19 @@ const j = {
|
|
|
697
697
|
{
|
|
698
698
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
699
699
|
autoHideDuration: 3500,
|
|
700
|
-
onClose: () =>
|
|
701
|
-
|
|
702
|
-
|
|
700
|
+
onClose: (L, f) => {
|
|
701
|
+
f !== "clickaway" && l("", u.severity);
|
|
702
|
+
},
|
|
703
|
+
open: !!u.message,
|
|
704
|
+
children: /* @__PURE__ */ e(
|
|
705
|
+
Be,
|
|
706
|
+
{
|
|
707
|
+
onClose: () => l("", u.severity),
|
|
708
|
+
severity: u.severity,
|
|
709
|
+
variant: "filled",
|
|
710
|
+
children: u.message
|
|
711
|
+
}
|
|
712
|
+
)
|
|
703
713
|
}
|
|
704
714
|
)
|
|
705
715
|
]
|
|
@@ -712,10 +722,10 @@ const j = {
|
|
|
712
722
|
selectedDayRecurrences: i,
|
|
713
723
|
setSelectedDay: o,
|
|
714
724
|
setSelectedRecurrence: s,
|
|
715
|
-
setSelectedRepeatingTransactionGuid:
|
|
725
|
+
setSelectedRepeatingTransactionGuid: u,
|
|
716
726
|
upcomingRecurrences: p
|
|
717
|
-
} =
|
|
718
|
-
m
|
|
727
|
+
} = D(), a = (m) => {
|
|
728
|
+
u(m.repeatingTransactionGuid), s(m);
|
|
719
729
|
}, l = n < 750;
|
|
720
730
|
return /* @__PURE__ */ c(d, { flexDirection: l ? "column" : "row", width: "100%", children: [
|
|
721
731
|
/* @__PURE__ */ e(Ee, {}),
|
|
@@ -730,14 +740,14 @@ const j = {
|
|
|
730
740
|
sx: { width: l ? "100%" : "calc(100% - 336px)", mt: 12 },
|
|
731
741
|
title: r ? G(
|
|
732
742
|
t.day_transactions,
|
|
733
|
-
I(r,
|
|
743
|
+
I(r, v.MONTH_DAY)
|
|
734
744
|
) : t.upcoming_activity
|
|
735
745
|
}
|
|
736
746
|
)
|
|
737
747
|
] });
|
|
738
748
|
}), Kn = T(
|
|
739
749
|
({ onPrimaryCtaClick: t, sx: n }) => {
|
|
740
|
-
const { recurring: r } = b(), { setFilter: i } = re(), { isDataLoaded: o, loadRepeatingTransactionData: s } =
|
|
750
|
+
const { recurring: r } = b(), { setFilter: i } = re(), { isDataLoaded: o, loadRepeatingTransactionData: s } = D(), { isInitialized: u, selectedAccountGuids: p } = U();
|
|
741
751
|
return oe({
|
|
742
752
|
widgetName: "RecurringTransactionsMiniWidget",
|
|
743
753
|
isLoaded: o
|
|
@@ -748,7 +758,7 @@ const j = {
|
|
|
748
758
|
dateRange: { start: ee(Q(), 90), end: J() },
|
|
749
759
|
accounts: p
|
|
750
760
|
});
|
|
751
|
-
}, [p]),
|
|
761
|
+
}, [p]), u ? /* @__PURE__ */ c(
|
|
752
762
|
Tt,
|
|
753
763
|
{
|
|
754
764
|
className: "mx-exp-recurring-transactions-miniwidget",
|
|
@@ -793,7 +803,7 @@ const j = {
|
|
|
793
803
|
}
|
|
794
804
|
),
|
|
795
805
|
/* @__PURE__ */ c(d, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
|
|
796
|
-
!i && /* @__PURE__ */ e(h, { bold: !0, variant: "caption", children:
|
|
806
|
+
!i && /* @__PURE__ */ e(h, { bold: !0, variant: "caption", children: A(t, t === 0 || !r ? "0,0" : "0,0.00") }),
|
|
797
807
|
/* @__PURE__ */ e(h, { variant: "caption", children: o })
|
|
798
808
|
] })
|
|
799
809
|
] }), Nt = ({
|
|
@@ -844,27 +854,27 @@ const j = {
|
|
|
844
854
|
},
|
|
845
855
|
`${r.categoryGuid}-${r.merchantGuid}-${i}`
|
|
846
856
|
)) }), Ot = T(() => {
|
|
847
|
-
const t = ne(), [n, { width: r }] =
|
|
857
|
+
const t = ne(), [n, { width: r }] = _t(), {
|
|
848
858
|
upcomingRecurrences: i,
|
|
849
859
|
expenseTotal: o,
|
|
850
860
|
missedExpenseTotal: s,
|
|
851
|
-
paidExpenseTotal:
|
|
861
|
+
paidExpenseTotal: u,
|
|
852
862
|
upcomingExpenseTotal: p
|
|
853
|
-
} =
|
|
863
|
+
} = D(), { recurring: a } = b(), l = r <= 288, m = r >= 450, g = 32, y = i.length > 0, C = x.useMemo(() => A(o, o === 0 ? "0,0" : "0,0.00"), [o]), S = x.useMemo(() => {
|
|
854
864
|
const w = [
|
|
855
|
-
{ color: t.palette.success.main, percentage: `${
|
|
865
|
+
{ color: t.palette.success.main, percentage: `${u / o}` }
|
|
856
866
|
];
|
|
857
867
|
return s && w.push({
|
|
858
868
|
color: t.palette.error.main,
|
|
859
869
|
percentage: `${s / o}`
|
|
860
870
|
}), w;
|
|
861
871
|
}, [
|
|
862
|
-
|
|
872
|
+
u,
|
|
863
873
|
o,
|
|
864
874
|
s,
|
|
865
875
|
t.palette.success.main,
|
|
866
876
|
t.palette.error.main
|
|
867
|
-
]),
|
|
877
|
+
]), L = () => y ? l ? /* @__PURE__ */ e(
|
|
868
878
|
Nt,
|
|
869
879
|
{
|
|
870
880
|
logoSize: g,
|
|
@@ -873,7 +883,7 @@ const j = {
|
|
|
873
883
|
}
|
|
874
884
|
) : /* @__PURE__ */ e(kt, { maxLogos: 3, upcomingRecurrences: i.slice(0, 3) }) : /* @__PURE__ */ e(d, { sx: { width: l ? 64 : 104 } }), f = [
|
|
875
885
|
{
|
|
876
|
-
amount:
|
|
886
|
+
amount: u,
|
|
877
887
|
bgColor: "success.main",
|
|
878
888
|
label: a.paid
|
|
879
889
|
},
|
|
@@ -915,7 +925,7 @@ const j = {
|
|
|
915
925
|
]
|
|
916
926
|
}
|
|
917
927
|
),
|
|
918
|
-
|
|
928
|
+
L()
|
|
919
929
|
] }),
|
|
920
930
|
/* @__PURE__ */ c(d, { sx: { pt: 12 }, children: [
|
|
921
931
|
/* @__PURE__ */ e(Le, { data: S }),
|
|
@@ -933,7 +943,7 @@ const j = {
|
|
|
933
943
|
{
|
|
934
944
|
amount: w.amount,
|
|
935
945
|
bgcolor: w.bgColor,
|
|
936
|
-
isLargeScreen:
|
|
946
|
+
isLargeScreen: m,
|
|
937
947
|
isSmallScreen: l,
|
|
938
948
|
label: w.label
|
|
939
949
|
},
|
|
@@ -948,16 +958,16 @@ const j = {
|
|
|
948
958
|
const { onEvent: n } = Y(), { isInitialized: r, selectedAccountGuids: i } = U(), {
|
|
949
959
|
loadRepeatingTransactionData: o,
|
|
950
960
|
upcomingRecurrences: s,
|
|
951
|
-
repeatingTransactions:
|
|
961
|
+
repeatingTransactions: u,
|
|
952
962
|
setDateRange: p,
|
|
953
963
|
isDataLoaded: a
|
|
954
|
-
} =
|
|
964
|
+
} = D(), { setFilter: l } = re(), { recurring: m, budgets: g } = b();
|
|
955
965
|
oe({
|
|
956
966
|
widgetName: "RecurringTransactionsMicroWidget",
|
|
957
967
|
isLoaded: a
|
|
958
968
|
}), x.useEffect(() => {
|
|
959
969
|
a || o().finally(() => {
|
|
960
|
-
n(
|
|
970
|
+
n(M.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
|
|
961
971
|
state: s.length > 0 ? "default" : "zeroState"
|
|
962
972
|
});
|
|
963
973
|
});
|
|
@@ -969,18 +979,18 @@ const j = {
|
|
|
969
979
|
}, [r, i]);
|
|
970
980
|
const y = () => {
|
|
971
981
|
n(
|
|
972
|
-
s.length > 0 ?
|
|
982
|
+
s.length > 0 ? M.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : M.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
|
|
973
983
|
), t();
|
|
974
984
|
};
|
|
975
985
|
if (!r || !a) return /* @__PURE__ */ e(ae, { height: 100 });
|
|
976
|
-
const C = !
|
|
986
|
+
const C = !u?.length;
|
|
977
987
|
return /* @__PURE__ */ e(
|
|
978
|
-
|
|
988
|
+
Dt,
|
|
979
989
|
{
|
|
980
990
|
className: "mx-recurring-transaction-microwidget",
|
|
981
|
-
ctaLabel: C ? g.get_started_cta :
|
|
991
|
+
ctaLabel: C ? g.get_started_cta : m.primary_cta,
|
|
982
992
|
onCTAClick: y,
|
|
983
|
-
title:
|
|
993
|
+
title: m.recurring_expenses,
|
|
984
994
|
children: C ? /* @__PURE__ */ e(Et, {}) : /* @__PURE__ */ e(Ot, {})
|
|
985
995
|
}
|
|
986
996
|
);
|
|
@@ -995,7 +1005,7 @@ const j = {
|
|
|
995
1005
|
isOpen: t,
|
|
996
1006
|
onClose: n,
|
|
997
1007
|
title: i.cashflow_settings,
|
|
998
|
-
children: /* @__PURE__ */ e(
|
|
1008
|
+
children: /* @__PURE__ */ e(De, { defaultSelectedTab: r })
|
|
999
1009
|
}
|
|
1000
1010
|
);
|
|
1001
1011
|
}
|
|
@@ -1004,7 +1014,7 @@ export {
|
|
|
1004
1014
|
er as AddRecurringTransactionDetails,
|
|
1005
1015
|
Jn as ManageExpenses,
|
|
1006
1016
|
tr as ManageIncome,
|
|
1007
|
-
|
|
1017
|
+
De as RecurringSettings,
|
|
1008
1018
|
qn as RecurringSettingsDrawer,
|
|
1009
1019
|
Vn as RecurringTransactionsMicroWidget,
|
|
1010
1020
|
Kn as RecurringTransactionsMiniWidget,
|