@mx-cartographer/experiences 7.0.36 → 7.0.37-alpha-recurring-transactions-divider-padding-ram2
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 +4 -0
- package/dist/{Account-DeMa6XJz.mjs → Account-9Tt9DsMn.mjs} +1 -1
- package/dist/{AccountDetailsContent-r2edUIO6.mjs → AccountDetailsContent-B5HMpGeJ.mjs} +8 -8
- package/dist/{AccountDetailsHeader-BCW4d-j4.mjs → AccountDetailsHeader-Bt8O2raZ.mjs} +5 -5
- package/dist/{AccountFields-B-igjxt-.mjs → AccountFields-DvACKQho.mjs} +2 -2
- package/dist/{AccountListItem-DAF9c7_x.mjs → AccountListItem-FmvNfEP8.mjs} +3 -3
- package/dist/{AccountStore-Bzy6rKGo.mjs → AccountStore-BKK7dA8Y.mjs} +2 -2
- package/dist/{Accounts-DNMSlq9A.mjs → Accounts-DR3xTyAx.mjs} +1 -1
- package/dist/{BudgetUtil-Iw9hUxhI.mjs → BudgetUtil-n3gEKIub.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-CMorcKFW.mjs → CategorySelectorDrawer-993LpETZ.mjs} +1 -1
- package/dist/{ConnectDrawer-jeSmGg38.mjs → ConnectDrawer-L1_xPNYt.mjs} +54 -55
- package/dist/{ConnectionsDrawer-hdOVHICr.mjs → ConnectionsDrawer-B-dZx6gH.mjs} +2 -2
- package/dist/{CurrencyInput-C0wTgNV6.mjs → CurrencyInput-pHmLzc_c.mjs} +1 -1
- package/dist/{DebtsStore-C2OfwE0t.mjs → DebtsStore-3kGPnxRQ.mjs} +1 -1
- package/dist/{ExportCsvAction-BlKpQTTL.mjs → ExportCsvAction-hsbyeBjg.mjs} +3 -3
- package/dist/{GoalStore-D2A2Lqd5.mjs → GoalStore-B_nwDz-L.mjs} +2 -2
- package/dist/{Help-DwKXfnqC.mjs → Help-PP2i0N9Y.mjs} +1 -1
- package/dist/{LineChart-DNC5UEt4.mjs → LineChart-CbOmpTDP.mjs} +1 -1
- package/dist/{ListItemAction-Dt9A2GQk.mjs → ListItemAction-DXyHyJn0.mjs} +1 -1
- package/dist/{ManageIncome-BDAuo2eh.mjs → ManageIncome-BaZyK1CD.mjs} +4 -4
- package/dist/{MicroWidgetContainer-DVRe-MJs.mjs → MicroWidgetContainer-Dpu8VDSP.mjs} +1 -1
- package/dist/{MiniWidgetContainer-C_N1u9ad.mjs → MiniWidgetContainer-BhHaL8eb.mjs} +1 -1
- package/dist/{NetWorthStore-CD4WWdXC.mjs → NetWorthStore-fst-mYe9.mjs} +2 -2
- package/dist/{NotificationSettings-CtbJFbrv.mjs → NotificationSettings-zI5EGf1a.mjs} +68 -68
- package/dist/{OriginalBalanceAction-CqQ5j4OW.mjs → OriginalBalanceAction-DSA8sk5b.mjs} +3 -3
- package/dist/{RecurringSettings-DlZ8qeDR.mjs → RecurringSettings-DHPyexin.mjs} +3 -3
- package/dist/{TransactionDetails-Fdf0sKuB.mjs → TransactionDetails-C-2UEbmQ.mjs} +5 -5
- package/dist/{TransactionStore-C4LPHwzx.mjs → TransactionStore-De9d82Ao.mjs} +2 -2
- package/dist/{TrendsStore-BM-JjAs5.mjs → TrendsStore-DWVFqEC-.mjs} +1 -1
- package/dist/{User-BYkzrOdM.mjs → User-BwjK6Fwz.mjs} +1 -1
- package/dist/{WidgetContainer-C6H2vwT9.mjs → WidgetContainer-ztkGgdIH.mjs} +105 -105
- package/dist/accounts/index.es.js +13 -13
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +10 -10
- package/dist/cashflow/index.es.js +7 -7
- package/dist/categories/index.es.js +1 -1
- package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
- package/dist/common/index.es.js +23 -23
- package/dist/dashboard/index.es.js +31 -31
- package/dist/debts/index.es.js +9 -9
- package/dist/{exportTransactionsToCSV-21c0EV3t.mjs → exportTransactionsToCSV--LPpH3es.mjs} +1 -1
- package/dist/finstrong/index.es.js +6 -6
- package/dist/goals/index.es.js +11 -11
- package/dist/help/index.es.js +3 -3
- package/dist/{hooks-BhSK6dal.mjs → hooks-BAAimqdq.mjs} +2 -2
- 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 +130 -129
- 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 +11 -11
- package/dist/{useInsightsEnabled-DqM4sFO1.mjs → useInsightsEnabled-BwLaOKWW.mjs} +1 -1
- package/package.json +1 -1
|
@@ -8,78 +8,78 @@ import { startOfToday as de } from "date-fns/startOfToday";
|
|
|
8
8
|
import { subDays as ue } from "date-fns/subDays";
|
|
9
9
|
import oe from "@mui/material/Skeleton";
|
|
10
10
|
import c from "@mui/material/Stack";
|
|
11
|
-
import { R as
|
|
12
|
-
import { M as An } from "../RecurringSettings-
|
|
13
|
-
import { addMonths as
|
|
14
|
-
import { subMonths as
|
|
15
|
-
import { isBefore as
|
|
11
|
+
import { R as He } from "../RecurringSettings-DHPyexin.mjs";
|
|
12
|
+
import { M as An } from "../RecurringSettings-DHPyexin.mjs";
|
|
13
|
+
import { addMonths as ze } from "date-fns/addMonths";
|
|
14
|
+
import { subMonths as Be } from "date-fns/subMonths";
|
|
15
|
+
import { isBefore as Ue } from "date-fns/isBefore";
|
|
16
16
|
import ae from "@mui/material/Unstable_Grid2";
|
|
17
17
|
import Te from "@mui/material/IconButton";
|
|
18
18
|
import De from "@mui/material/Tab";
|
|
19
|
-
import
|
|
20
|
-
import { Schedule as
|
|
21
|
-
import { Text as g, MerchantLogo as me, InstitutionLogo as
|
|
19
|
+
import Fe from "@mui/material/Tabs";
|
|
20
|
+
import { Schedule as je, MonetizationOn as Ke, Cancel as Le, CheckCircle as Ae, ChevronLeft as Ye, ChevronRight as Ve, CurrencyExchange as Xe } from "@mxenabled/mx-icons";
|
|
21
|
+
import { Text as g, MerchantLogo as me, InstitutionLogo as Ze, H3 as qe, P as se } from "@mxenabled/mxui";
|
|
22
22
|
import { getWeeksInMonth as Se } from "date-fns/getWeeksInMonth";
|
|
23
23
|
import pe from "@mui/material/styles/useTheme";
|
|
24
|
-
import { AdapterDateFns as
|
|
25
|
-
import { DateCalendar as
|
|
26
|
-
import { LocalizationProvider as
|
|
27
|
-
import { isSameDay as
|
|
28
|
-
import
|
|
29
|
-
import { PickersDay as
|
|
24
|
+
import { AdapterDateFns as Je } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
25
|
+
import { DateCalendar as Qe } from "@mui/x-date-pickers/DateCalendar";
|
|
26
|
+
import { LocalizationProvider as et } from "@mui/x-date-pickers/LocalizationProvider";
|
|
27
|
+
import { isSameDay as tt } from "date-fns/isSameDay";
|
|
28
|
+
import nt from "@mui/material/Badge";
|
|
29
|
+
import { PickersDay as it } from "@mui/x-date-pickers/PickersDay";
|
|
30
30
|
import { I as V } from "../IconBacking-B9oC6uL2.mjs";
|
|
31
|
-
import { u as S, a as X, i as
|
|
32
|
-
import { c as
|
|
31
|
+
import { u as S, a as X, i as M, f as Z, c as ge, g as he, p as rt } from "../hooks-BAAimqdq.mjs";
|
|
32
|
+
import { c as v, a as T, g as Ie, f as ot } from "../RepeatingTransaction-BW4J-jeJ.mjs";
|
|
33
33
|
import { T as H } from "../RecurringTransactionsStore-DeLXfuC4.mjs";
|
|
34
34
|
import { R as Gn } from "../RecurringTransactionsStore-DeLXfuC4.mjs";
|
|
35
|
-
import { A as w, W as at } from "../WidgetContainer-
|
|
35
|
+
import { A as w, W as at } from "../WidgetContainer-ztkGgdIH.mjs";
|
|
36
36
|
import st from "@mui/material/Button";
|
|
37
37
|
import ce from "@mui/material/Divider";
|
|
38
38
|
import _e from "@mui/material/List";
|
|
39
|
-
import
|
|
39
|
+
import Ee from "@mui/material/ListItem";
|
|
40
40
|
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 On, M as kn, S as Wn } from "../ManageIncome-
|
|
44
|
+
import { b as mt } from "../ManageIncome-BaZyK1CD.mjs";
|
|
45
|
+
import { c as On, M as kn, S as Wn } from "../ManageIncome-BaZyK1CD.mjs";
|
|
46
46
|
import { f as L } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
47
|
-
import { D as
|
|
47
|
+
import { D as Ge } from "../Drawer-kEE73B87.mjs";
|
|
48
48
|
import { b as O } from "../Localization-2MODESHW.mjs";
|
|
49
49
|
import { f as A, D as E } from "../Dialog-CWW597AF.mjs";
|
|
50
50
|
import k from "@mui/material/Box";
|
|
51
|
-
import { S as
|
|
51
|
+
import { S as Ne } from "../StatusBar-BK_uYHAB.mjs";
|
|
52
52
|
import { u as fe } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
53
53
|
import { L as K } from "../Loader-DUaFpDGv.mjs";
|
|
54
|
-
import { M as pt } from "../MiniWidgetContainer-
|
|
54
|
+
import { M as pt } from "../MiniWidgetContainer-BhHaL8eb.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-Dpu8VDSP.mjs";
|
|
57
57
|
const q = {
|
|
58
58
|
gridRow: 1,
|
|
59
59
|
gridColumn: 1,
|
|
60
60
|
zIndex: 2
|
|
61
|
-
}, J = (t) => t ? { margin: "0 0 -6px -4px" } : void 0, xe = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(V, { size: n, sx: { ...J(t) }, children: /* @__PURE__ */ e(
|
|
62
|
-
|
|
61
|
+
}, J = (t) => t ? { margin: "0 0 -6px -4px" } : void 0, xe = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(V, { size: n, sx: { ...J(t) }, children: /* @__PURE__ */ e(je, { color: "primary", filled: !0, sx: { fontSize: n, ...q } }) }), ye = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(V, { size: n, sx: { ...J(t) }, children: /* @__PURE__ */ e(
|
|
62
|
+
Ke,
|
|
63
63
|
{
|
|
64
64
|
filled: !0,
|
|
65
65
|
sx: { color: "categories.income", fontSize: n, ...q }
|
|
66
66
|
}
|
|
67
67
|
) }), Ce = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(V, { size: n, sx: { ...J(t) }, children: /* @__PURE__ */ e(Le, { color: "error", filled: !0, sx: { fontSize: n, ...q } }) }), be = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(V, { size: n, sx: { ...J(t) }, children: /* @__PURE__ */ e(Ae, { color: "success", filled: !0, sx: { fontSize: n, ...q } }) }), ft = D(
|
|
68
68
|
({ day: t, outsideCurrentMonth: n, ...i }) => {
|
|
69
|
-
const { recurring: a } = S(), { selectedAccountGuids: r } = X(), { recurrences: l, setSelectedDay: p } =
|
|
69
|
+
const { recurring: a } = S(), { selectedAccountGuids: r } = X(), { recurrences: l, setSelectedDay: p } = M(), s = h.useMemo(
|
|
70
70
|
() => l.filter((d) => r.includes(d.accountGuid)),
|
|
71
71
|
[r, l]
|
|
72
72
|
).filter(
|
|
73
|
-
(d) =>
|
|
73
|
+
(d) => tt(d.occurredOnDate || d.expectedDate, t)
|
|
74
74
|
), m = s.some(
|
|
75
|
-
(d) => d.type !==
|
|
75
|
+
(d) => d.type !== v.Income && d.status === T.Upcoming
|
|
76
76
|
), f = s.some(
|
|
77
|
-
(d) => d.type !==
|
|
77
|
+
(d) => d.type !== v.Income && d.status === T.Missed
|
|
78
78
|
), x = s.some(
|
|
79
|
-
(d) => d.type !==
|
|
80
|
-
), C = s.some((d) => d.type ===
|
|
79
|
+
(d) => d.type !== v.Income && d.status === T.Paid
|
|
80
|
+
), C = s.some((d) => d.type === v.Income), y = (m ? 1 : 0) + (f ? 1 : 0) + (x ? 1 : 0) + (C ? 1 : 0);
|
|
81
81
|
return /* @__PURE__ */ e(
|
|
82
|
-
|
|
82
|
+
nt,
|
|
83
83
|
{
|
|
84
84
|
badgeContent: s.length > 0 && /* @__PURE__ */ o(Y, { children: [
|
|
85
85
|
f && /* @__PURE__ */ e(Ce, { isOffset: !0 }),
|
|
@@ -96,7 +96,7 @@ const q = {
|
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
children: /* @__PURE__ */ e(
|
|
99
|
-
|
|
99
|
+
it,
|
|
100
100
|
{
|
|
101
101
|
"aria-label": `
|
|
102
102
|
${x && a.paid},
|
|
@@ -141,8 +141,8 @@ const q = {
|
|
|
141
141
|
]
|
|
142
142
|
}
|
|
143
143
|
);
|
|
144
|
-
}), we = 58,
|
|
145
|
-
const t = pe(), { onEvent: n } = Z(), { selectedDay: i, setDateRange: a } =
|
|
144
|
+
}), we = 58, Oe = D(() => {
|
|
145
|
+
const t = pe(), { onEvent: n } = Z(), { selectedDay: i, setDateRange: a } = M(), [r, l] = h.useState(
|
|
146
146
|
Se(/* @__PURE__ */ new Date()) * H + we
|
|
147
147
|
), p = (s) => {
|
|
148
148
|
l(Se(s) * H + we), a({
|
|
@@ -150,7 +150,7 @@ const q = {
|
|
|
150
150
|
end: B(s)
|
|
151
151
|
}), n(w.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
|
|
152
152
|
}, u = /* @__PURE__ */ e(
|
|
153
|
-
|
|
153
|
+
Qe,
|
|
154
154
|
{
|
|
155
155
|
minDate: W(/* @__PURE__ */ new Date()),
|
|
156
156
|
onMonthChange: p,
|
|
@@ -200,13 +200,13 @@ const q = {
|
|
|
200
200
|
views: ["day"]
|
|
201
201
|
}
|
|
202
202
|
);
|
|
203
|
-
return /* @__PURE__ */ e(c, { justifyContent: "center", children: /* @__PURE__ */ o(
|
|
203
|
+
return /* @__PURE__ */ e(c, { justifyContent: "center", children: /* @__PURE__ */ o(et, { dateAdapter: Je, children: [
|
|
204
204
|
i && u,
|
|
205
205
|
!i && u,
|
|
206
206
|
/* @__PURE__ */ e(xt, {})
|
|
207
207
|
] }) });
|
|
208
208
|
}), yt = (t) => {
|
|
209
|
-
if (t.type ===
|
|
209
|
+
if (t.type === v.Income)
|
|
210
210
|
return /* @__PURE__ */ e(ye, {});
|
|
211
211
|
switch (t.status) {
|
|
212
212
|
case T.Missed:
|
|
@@ -239,20 +239,20 @@ const q = {
|
|
|
239
239
|
default:
|
|
240
240
|
return n.unknown;
|
|
241
241
|
}
|
|
242
|
-
},
|
|
242
|
+
}, Me = ({
|
|
243
243
|
recurrence: t,
|
|
244
244
|
isMini: n = !1,
|
|
245
245
|
onRecurrenceClick: i = () => {
|
|
246
246
|
},
|
|
247
247
|
showOrdinal: a = !1
|
|
248
248
|
}) => {
|
|
249
|
-
const { recurring: r } = S(), { repeatingTransactions: l } =
|
|
249
|
+
const { recurring: r } = S(), { repeatingTransactions: l } = M(), [p, u] = h.useState(!1), s = h.useMemo(
|
|
250
250
|
() => l.find((R) => R.guid === t.repeatingTransactionGuid),
|
|
251
251
|
[t, l]
|
|
252
|
-
), m = t.type ===
|
|
252
|
+
), m = t.type === v.Income, f = t.status === T.Paid, x = t.status === T.Missed, C = t.status === T.Upcoming;
|
|
253
253
|
let y = r.paid?.toLowerCase();
|
|
254
254
|
return x ? y = r.missed?.toLowerCase() : C && (y = a ? Ie(r, s || {}, !0) : Ie(r, s || {}, !1)), //TODO: implement common/components/ListItemRow.tsx
|
|
255
|
-
/* @__PURE__ */ o(
|
|
255
|
+
/* @__PURE__ */ o(Ee, { disableGutters: !0, disablePadding: !0, children: [
|
|
256
256
|
/* @__PURE__ */ o(dt, { onClick: () => {
|
|
257
257
|
u(!0), i(t);
|
|
258
258
|
}, children: [
|
|
@@ -277,7 +277,7 @@ const q = {
|
|
|
277
277
|
/* @__PURE__ */ e(g, { variant: "caption", children: Ct(t, r) })
|
|
278
278
|
] }) : /* @__PURE__ */ o(Y, { children: [
|
|
279
279
|
t.institutionGuid && /* @__PURE__ */ e(
|
|
280
|
-
|
|
280
|
+
Ze,
|
|
281
281
|
{
|
|
282
282
|
alt: t.institutionName,
|
|
283
283
|
institutionGuid: t.institutionGuid,
|
|
@@ -316,12 +316,12 @@ const q = {
|
|
|
316
316
|
) })
|
|
317
317
|
] }),
|
|
318
318
|
/* @__PURE__ */ e(
|
|
319
|
-
|
|
319
|
+
Ge,
|
|
320
320
|
{
|
|
321
321
|
ariaLabelClose: r.close_drawer_aria,
|
|
322
322
|
isOpen: p,
|
|
323
323
|
onClose: () => u(!1),
|
|
324
|
-
title: t.type ===
|
|
324
|
+
title: t.type === v.Income ? r.income_details : r.expense_details,
|
|
325
325
|
children: s && /* @__PURE__ */ e(
|
|
326
326
|
mt,
|
|
327
327
|
{
|
|
@@ -355,7 +355,7 @@ const q = {
|
|
|
355
355
|
),
|
|
356
356
|
t.length === 0 ? /* @__PURE__ */ e(g, { fontStyle: "italic", sx: { py: 24, textAlign: "center" }, children: p.no_activities }) : /* @__PURE__ */ e(_e, { children: n ? t.map((s, m) => /* @__PURE__ */ o(h.Fragment, { children: [
|
|
357
357
|
/* @__PURE__ */ e(
|
|
358
|
-
|
|
358
|
+
Me,
|
|
359
359
|
{
|
|
360
360
|
isMini: n,
|
|
361
361
|
onRecurrenceClick: a,
|
|
@@ -364,13 +364,13 @@ const q = {
|
|
|
364
364
|
),
|
|
365
365
|
/* @__PURE__ */ e(ce, { sx: { mx: 24 } })
|
|
366
366
|
] }, `recurrence-${m}`)) : u.map((s, m) => /* @__PURE__ */ o(h.Fragment, { children: [
|
|
367
|
-
/* @__PURE__ */ e(
|
|
367
|
+
/* @__PURE__ */ e(Ee, { children: /* @__PURE__ */ e(
|
|
368
368
|
_e,
|
|
369
369
|
{
|
|
370
370
|
subheader: /* @__PURE__ */ e(ct, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ e(g, { bold: !0, variant: "caption", children: A(s.date, E.DAY_OF_WEEK_MONTH_DAY) }) }),
|
|
371
371
|
sx: { width: "100%" },
|
|
372
372
|
children: s.recurrences.map((f, x) => /* @__PURE__ */ e(h.Fragment, { children: /* @__PURE__ */ e(
|
|
373
|
-
|
|
373
|
+
Me,
|
|
374
374
|
{
|
|
375
375
|
isMini: n,
|
|
376
376
|
onRecurrenceClick: a,
|
|
@@ -383,7 +383,7 @@ const q = {
|
|
|
383
383
|
] }, `recurrence-${m}`)) })
|
|
384
384
|
] });
|
|
385
385
|
}
|
|
386
|
-
),
|
|
386
|
+
), ve = D(
|
|
387
387
|
({ expected: t, isExpense: n = !0, missed: i, paid: a, title: r, total: l, upcoming: p }) => {
|
|
388
388
|
const u = pe(), { isSmallMobile: s } = fe(), { recurring: m } = S(), f = h.useMemo(() => {
|
|
389
389
|
const x = [{ color: u.palette.success.main, percentage: `${a / t}` }];
|
|
@@ -394,7 +394,7 @@ const q = {
|
|
|
394
394
|
/* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: `${r} (${l})` }),
|
|
395
395
|
/* @__PURE__ */ e(g, { bold: !0, color: n ? "text.primary" : "success.main", variant: "body1", children: `${n ? "-" : "+"}${L(t, "0,0.00")}` })
|
|
396
396
|
] }),
|
|
397
|
-
/* @__PURE__ */ e(
|
|
397
|
+
/* @__PURE__ */ e(Ne, { data: f, height: 12 }),
|
|
398
398
|
/* @__PURE__ */ o(c, { sx: { alignItems: "center", flexDirection: "row", gap: 2, my: 8 }, children: [
|
|
399
399
|
/* @__PURE__ */ e(k, { sx: { bgcolor: "success.main", height: 8, mr: 8, width: 8 } }),
|
|
400
400
|
!s && /* @__PURE__ */ e(g, { bold: !0, variant: "body2", children: L(a, "0,0.00") }),
|
|
@@ -411,7 +411,7 @@ const q = {
|
|
|
411
411
|
] });
|
|
412
412
|
}
|
|
413
413
|
), bt = D(() => {
|
|
414
|
-
const { recurring: t } = S(), {
|
|
414
|
+
const { recurring: t } = S(), { isDesktop: n, isSmallMobile: i, isMobile: a } = fe(), { onEvent: r } = Z(), {
|
|
415
415
|
currentMonthExpenses: l,
|
|
416
416
|
currentMonthIncome: p,
|
|
417
417
|
dateRange: u,
|
|
@@ -427,7 +427,7 @@ const q = {
|
|
|
427
427
|
upcomingExpenseTotal: Q,
|
|
428
428
|
upcomingIncomeTotal: ee,
|
|
429
429
|
upcomingRecurrences: U
|
|
430
|
-
} =
|
|
430
|
+
} = M(), [$, te] = h.useState(0), I = Ue(u.start, /* @__PURE__ */ new Date()), ne = (b, re) => {
|
|
431
431
|
te(re);
|
|
432
432
|
}, _ = (b) => {
|
|
433
433
|
r(w.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
|
|
@@ -438,13 +438,13 @@ const q = {
|
|
|
438
438
|
transaction_guid: b.transaction?.guid
|
|
439
439
|
});
|
|
440
440
|
}, ie = () => {
|
|
441
|
-
const b =
|
|
441
|
+
const b = ze(u.start, 1);
|
|
442
442
|
G({
|
|
443
443
|
start: W(b),
|
|
444
444
|
end: B(b)
|
|
445
445
|
});
|
|
446
446
|
}, P = () => {
|
|
447
|
-
const b =
|
|
447
|
+
const b = Be(u.start, 1);
|
|
448
448
|
G({
|
|
449
449
|
start: W(b),
|
|
450
450
|
end: B(b)
|
|
@@ -455,71 +455,72 @@ const q = {
|
|
|
455
455
|
{
|
|
456
456
|
container: !0,
|
|
457
457
|
sx: {
|
|
458
|
-
pt: 16
|
|
459
|
-
px: i ? 48 : 24
|
|
458
|
+
pt: 16
|
|
460
459
|
},
|
|
461
460
|
children: [
|
|
462
|
-
/* @__PURE__ */
|
|
463
|
-
/* @__PURE__ */ o(c, {
|
|
464
|
-
/* @__PURE__ */
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
/* @__PURE__ */
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
461
|
+
/* @__PURE__ */ o(ae, { md: !0, sm: 12, width: "100%", children: [
|
|
462
|
+
/* @__PURE__ */ o(c, { sx: { gap: 16, px: n ? 48 : 24 }, children: [
|
|
463
|
+
/* @__PURE__ */ o(c, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
464
|
+
/* @__PURE__ */ e(qe, { children: O(
|
|
465
|
+
t.header_title,
|
|
466
|
+
A(u.start, E.MONTH_LONG)
|
|
467
|
+
) }),
|
|
468
|
+
!n && /* @__PURE__ */ o(c, { direction: "row", gap: 4, children: [
|
|
469
|
+
/* @__PURE__ */ e(
|
|
470
|
+
Te,
|
|
471
|
+
{
|
|
472
|
+
color: "primary",
|
|
473
|
+
disabled: I,
|
|
474
|
+
onClick: P,
|
|
475
|
+
children: /* @__PURE__ */ e(Ye, {})
|
|
476
|
+
}
|
|
477
|
+
),
|
|
478
|
+
/* @__PURE__ */ e(Te, { color: "primary", onClick: ie, children: /* @__PURE__ */ e(Ve, {}) })
|
|
479
|
+
] })
|
|
480
|
+
] }),
|
|
481
|
+
/* @__PURE__ */ e(
|
|
482
|
+
ve,
|
|
483
|
+
{
|
|
484
|
+
expected: s,
|
|
485
|
+
missed: f,
|
|
486
|
+
paid: C,
|
|
487
|
+
title: t.expenses,
|
|
488
|
+
total: l.length,
|
|
489
|
+
upcoming: Q
|
|
490
|
+
}
|
|
491
|
+
),
|
|
492
|
+
/* @__PURE__ */ e(
|
|
493
|
+
ve,
|
|
494
|
+
{
|
|
495
|
+
expected: m,
|
|
496
|
+
isExpense: !1,
|
|
497
|
+
paid: y,
|
|
498
|
+
title: t.deposits,
|
|
499
|
+
total: p.length,
|
|
500
|
+
upcoming: ee
|
|
501
|
+
}
|
|
502
|
+
),
|
|
503
|
+
n && /* @__PURE__ */ e(
|
|
504
|
+
z,
|
|
505
|
+
{
|
|
506
|
+
onRecurrenceClick: _,
|
|
507
|
+
recurrences: U,
|
|
508
|
+
title: t.upcoming_activity
|
|
509
|
+
}
|
|
510
|
+
)
|
|
480
511
|
] }),
|
|
481
|
-
/* @__PURE__ */
|
|
482
|
-
|
|
483
|
-
{
|
|
484
|
-
expected: s,
|
|
485
|
-
missed: f,
|
|
486
|
-
paid: C,
|
|
487
|
-
title: t.expenses,
|
|
488
|
-
total: l.length,
|
|
489
|
-
upcoming: Q
|
|
490
|
-
}
|
|
491
|
-
),
|
|
492
|
-
/* @__PURE__ */ e(
|
|
493
|
-
Me,
|
|
494
|
-
{
|
|
495
|
-
expected: m,
|
|
496
|
-
isExpense: !1,
|
|
497
|
-
paid: y,
|
|
498
|
-
title: t.deposits,
|
|
499
|
-
total: p.length,
|
|
500
|
-
upcoming: ee
|
|
501
|
-
}
|
|
502
|
-
),
|
|
503
|
-
i && /* @__PURE__ */ e(
|
|
504
|
-
z,
|
|
505
|
-
{
|
|
506
|
-
onRecurrenceClick: _,
|
|
507
|
-
recurrences: U,
|
|
508
|
-
title: t.upcoming_activity
|
|
509
|
-
}
|
|
510
|
-
),
|
|
511
|
-
!i && /* @__PURE__ */ o(c, { children: [
|
|
512
|
-
/* @__PURE__ */ o(je, { onChange: ne, value: $, variant: "fullWidth", children: [
|
|
512
|
+
!n && /* @__PURE__ */ o(c, { sx: { px: a ? 0 : 24 }, children: [
|
|
513
|
+
/* @__PURE__ */ o(Fe, { onChange: ne, value: $, variant: "fullWidth", children: [
|
|
513
514
|
/* @__PURE__ */ e(
|
|
514
515
|
De,
|
|
515
516
|
{
|
|
516
|
-
label: /* @__PURE__ */ e(g, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children:
|
|
517
|
+
label: /* @__PURE__ */ e(g, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: i ? t.upcoming : t.upcoming_activity })
|
|
517
518
|
}
|
|
518
519
|
),
|
|
519
520
|
/* @__PURE__ */ e(
|
|
520
521
|
De,
|
|
521
522
|
{
|
|
522
|
-
label: /* @__PURE__ */ e(g, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children:
|
|
523
|
+
label: /* @__PURE__ */ e(g, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: i ? t.past : t.past_transactions })
|
|
523
524
|
}
|
|
524
525
|
)
|
|
525
526
|
] }),
|
|
@@ -538,9 +539,9 @@ const q = {
|
|
|
538
539
|
}
|
|
539
540
|
)
|
|
540
541
|
] })
|
|
541
|
-
] })
|
|
542
|
-
|
|
543
|
-
/* @__PURE__ */ e(
|
|
542
|
+
] }),
|
|
543
|
+
n && /* @__PURE__ */ e(ae, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ o(c, { gap: 24, children: [
|
|
544
|
+
/* @__PURE__ */ e(Oe, {}),
|
|
544
545
|
/* @__PURE__ */ e(
|
|
545
546
|
z,
|
|
546
547
|
{
|
|
@@ -557,7 +558,7 @@ const q = {
|
|
|
557
558
|
}
|
|
558
559
|
);
|
|
559
560
|
}), _n = D(({ onBackClick: t, sx: n = {} }) => {
|
|
560
|
-
const { accounts: i } = ge(), { recurring: a } = S(), { isCopyLoaded: r, isInitialized: l, selectedAccountGuids: p, setSelectedAccounts: u } = X(), { isDataLoaded: s, loadRepeatingTransactions: m, setDateRange: f } =
|
|
561
|
+
const { accounts: i } = ge(), { recurring: a } = S(), { isCopyLoaded: r, isInitialized: l, selectedAccountGuids: p, setSelectedAccounts: u } = X(), { isDataLoaded: s, loadRepeatingTransactions: m, setDateRange: f } = M(), { setFilter: x } = he(), { onEvent: C } = Z(), { isMobile: y } = fe(), [d, R] = h.useState(!1);
|
|
561
562
|
return h.useEffect(() => {
|
|
562
563
|
u(i);
|
|
563
564
|
}, [i]), h.useEffect(() => {
|
|
@@ -590,23 +591,23 @@ const q = {
|
|
|
590
591
|
/* @__PURE__ */ e(oe, { height: 600, variant: "rounded", width: "100%" })
|
|
591
592
|
] }),
|
|
592
593
|
/* @__PURE__ */ e(
|
|
593
|
-
|
|
594
|
+
Ge,
|
|
594
595
|
{
|
|
595
596
|
ariaLabelClose: a.close_drawer_aria,
|
|
596
597
|
isOpen: d,
|
|
597
598
|
onClose: () => R(!1),
|
|
598
599
|
shouldShowHeaderBorders: !1,
|
|
599
600
|
title: a.action_title,
|
|
600
|
-
children: /* @__PURE__ */ e(
|
|
601
|
+
children: /* @__PURE__ */ e(He, {})
|
|
601
602
|
}
|
|
602
603
|
)
|
|
603
604
|
]
|
|
604
605
|
}
|
|
605
606
|
) : /* @__PURE__ */ e(K, {});
|
|
606
607
|
}), Rt = D(() => {
|
|
607
|
-
const { recurring: t } = S(), { availableWidth: n } =
|
|
608
|
+
const { recurring: t } = S(), { availableWidth: n } = rt(), { selectedDay: i, selectedDayRecurrences: a, setSelectedDay: r, upcomingRecurrences: l } = M(), p = n < 750;
|
|
608
609
|
return /* @__PURE__ */ o(c, { flexDirection: p ? "column" : "row", width: "100%", children: [
|
|
609
|
-
/* @__PURE__ */ e(
|
|
610
|
+
/* @__PURE__ */ e(Oe, {}),
|
|
610
611
|
!p && /* @__PURE__ */ e(ce, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
|
|
611
612
|
/* @__PURE__ */ e(
|
|
612
613
|
z,
|
|
@@ -624,7 +625,7 @@ const q = {
|
|
|
624
625
|
] });
|
|
625
626
|
}), wn = D(
|
|
626
627
|
({ onPrimaryCtaClick: t, sx: n }) => {
|
|
627
|
-
const { accounts: i } = ge(), { recurring: a } = S(), { setFilter: r } = he(), { isDataLoaded: l, loadRepeatingTransactions: p } =
|
|
628
|
+
const { accounts: i } = ge(), { recurring: a } = S(), { setFilter: r } = he(), { isDataLoaded: l, loadRepeatingTransactions: p } = M(), { isCopyLoaded: u, isInitialized: s, setSelectedAccounts: m, selectedAccountGuids: f } = X();
|
|
628
629
|
return h.useEffect(() => {
|
|
629
630
|
s && m(i);
|
|
630
631
|
}, [s]), h.useEffect(() => {
|
|
@@ -717,13 +718,13 @@ const q = {
|
|
|
717
718
|
] }), It = D(() => {
|
|
718
719
|
const { recurring: t } = S();
|
|
719
720
|
return /* @__PURE__ */ o(c, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
|
|
720
|
-
/* @__PURE__ */ e(
|
|
721
|
+
/* @__PURE__ */ e(Xe, { size: 32 }),
|
|
721
722
|
/* @__PURE__ */ o(c, { children: [
|
|
722
723
|
/* @__PURE__ */ e(se, { fontWeight: 600, variant: "body1", children: t.zero_state_content_header }),
|
|
723
724
|
/* @__PURE__ */ e(se, { color: "text.secondary", variant: "subtitle2", children: t.zero_state_content_description })
|
|
724
725
|
] })
|
|
725
726
|
] });
|
|
726
|
-
}),
|
|
727
|
+
}), Mn = D(
|
|
727
728
|
({ onCTAClick: t }) => {
|
|
728
729
|
const [n, i] = h.useState(!1), { onEvent: a } = Z(), r = pe(), { accounts: l } = ge(), [p, { width: u }] = gt(), { isCopyLoaded: s, isInitialized: m, selectedAccountGuids: f, setSelectedAccounts: x } = X(), {
|
|
729
730
|
loadRepeatingTransactions: C,
|
|
@@ -735,7 +736,7 @@ const q = {
|
|
|
735
736
|
setDateRange: ee,
|
|
736
737
|
upcomingExpenseTotal: U,
|
|
737
738
|
isDataLoaded: $
|
|
738
|
-
} =
|
|
739
|
+
} = M(), { setFilter: te } = he(), { recurring: I, budgets: ne } = S();
|
|
739
740
|
h.useEffect(() => {
|
|
740
741
|
x(l);
|
|
741
742
|
}, [l]), h.useEffect(() => {
|
|
@@ -768,14 +769,14 @@ const q = {
|
|
|
768
769
|
), t();
|
|
769
770
|
};
|
|
770
771
|
if (!s || !n || !$) return /* @__PURE__ */ e(K, { height: 100 });
|
|
771
|
-
const re = 32,
|
|
772
|
+
const re = 32, ke = y.length > 0, We = () => ke ? _ ? /* @__PURE__ */ e(
|
|
772
773
|
Dt,
|
|
773
774
|
{
|
|
774
775
|
logoSize: re,
|
|
775
776
|
maxLogos: 3,
|
|
776
777
|
upcomingRecurrences: y.slice(0, 3)
|
|
777
778
|
}
|
|
778
|
-
) : /* @__PURE__ */ e(Tt, { maxLogos: 3, upcomingRecurrences: y.slice(0, 3) }) : /* @__PURE__ */ e(c, { sx: { width: _ ? 64 : 104 } }),
|
|
779
|
+
) : /* @__PURE__ */ e(Tt, { maxLogos: 3, upcomingRecurrences: y.slice(0, 3) }) : /* @__PURE__ */ e(c, { sx: { width: _ ? 64 : 104 } }), $e = [
|
|
779
780
|
{
|
|
780
781
|
amount: G,
|
|
781
782
|
bgColor: "success.main",
|
|
@@ -843,12 +844,12 @@ const q = {
|
|
|
843
844
|
]
|
|
844
845
|
}
|
|
845
846
|
),
|
|
846
|
-
|
|
847
|
+
We()
|
|
847
848
|
]
|
|
848
849
|
}
|
|
849
850
|
),
|
|
850
851
|
/* @__PURE__ */ o(c, { sx: { pt: 12 }, children: [
|
|
851
|
-
/* @__PURE__ */ e(
|
|
852
|
+
/* @__PURE__ */ e(Ne, { data: ie }),
|
|
852
853
|
/* @__PURE__ */ e(
|
|
853
854
|
c,
|
|
854
855
|
{
|
|
@@ -858,7 +859,7 @@ const q = {
|
|
|
858
859
|
gap: 16,
|
|
859
860
|
mt: 4
|
|
860
861
|
},
|
|
861
|
-
children:
|
|
862
|
+
children: $e.map((N, Pe) => /* @__PURE__ */ e(
|
|
862
863
|
St,
|
|
863
864
|
{
|
|
864
865
|
amount: N.amount,
|
|
@@ -867,7 +868,7 @@ const q = {
|
|
|
867
868
|
isSmallScreen: _,
|
|
868
869
|
label: N.label
|
|
869
870
|
},
|
|
870
|
-
`recurrence-legend-${
|
|
871
|
+
`recurrence-legend-${Pe}`
|
|
871
872
|
))
|
|
872
873
|
}
|
|
873
874
|
)
|
|
@@ -881,8 +882,8 @@ export {
|
|
|
881
882
|
On as AddRecurringTransactionDetails,
|
|
882
883
|
An as ManageExpenses,
|
|
883
884
|
kn as ManageIncome,
|
|
884
|
-
|
|
885
|
-
|
|
885
|
+
He as RecurringSettings,
|
|
886
|
+
Mn as RecurringTransactionsMicroWidget,
|
|
886
887
|
wn as RecurringTransactionsMiniWidget,
|
|
887
888
|
Gn as RecurringTransactionsStore,
|
|
888
889
|
_n as RecurringTransactionsWidget,
|
|
@@ -16,9 +16,9 @@ import F from "@mui/material/Box";
|
|
|
16
16
|
import Q from "@mui/material/Button";
|
|
17
17
|
import I from "@mui/material/TextField";
|
|
18
18
|
import { H3 as J, P as H, Text as x, Icon as M, ChevronRightIcon as xe } from "@mxenabled/mxui";
|
|
19
|
-
import { V as ve, a as Ce, N as G } from "../NotificationSettings-
|
|
20
|
-
import { A as Yt, B as qt, I as Qt } from "../NotificationSettings-
|
|
21
|
-
import { u as k,
|
|
19
|
+
import { V as ve, a as Ce, N as G } from "../NotificationSettings-zI5EGf1a.mjs";
|
|
20
|
+
import { A as Yt, B as qt, I as Qt } from "../NotificationSettings-zI5EGf1a.mjs";
|
|
21
|
+
import { u as k, l as $, r as A, o as De, a as Z, m as ee } from "../hooks-BAAimqdq.mjs";
|
|
22
22
|
import { u as L } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
23
23
|
import { a as W } from "../Dialog-CWW597AF.mjs";
|
|
24
24
|
import { formatDistanceToNow as te } from "date-fns/formatDistanceToNow";
|
|
@@ -35,14 +35,14 @@ import { L as ne } from "../Loader-DUaFpDGv.mjs";
|
|
|
35
35
|
import Ie from "@mui/material/List";
|
|
36
36
|
import j from "@mui/material/Divider";
|
|
37
37
|
import Ae from "@mui/material/ListSubheader";
|
|
38
|
-
import { a as Ee, u as Pe } from "../CategorySelectorDrawer-
|
|
38
|
+
import { a as Ee, u as Pe } from "../CategorySelectorDrawer-993LpETZ.mjs";
|
|
39
39
|
import Re from "@mui/material/ListItem";
|
|
40
40
|
import Be from "@mui/material/ListItemButton";
|
|
41
41
|
import Me from "@mui/material/ListItemIcon";
|
|
42
42
|
import Ne from "@mui/material/ListItemText";
|
|
43
43
|
import { D as He } from "../Drawer-kEE73B87.mjs";
|
|
44
|
-
import { H as Le } from "../Help-
|
|
45
|
-
import { W as K } from "../WidgetContainer-
|
|
44
|
+
import { H as Le } from "../Help-PP2i0N9Y.mjs";
|
|
45
|
+
import { W as K } from "../WidgetContainer-ztkGgdIH.mjs";
|
|
46
46
|
const Oe = ({ availableWidth: t, handleOnLeavClick: a }) => {
|
|
47
47
|
const o = ye(), { common: n, settings: r } = k(), { isDesktop: m, isMobile: l, isSmallMobile: i, isTablet: s } = L(t), { config: g } = $(), { updateUser: _ } = A(), { user: d } = De(), [u, S] = h.useState({
|
|
48
48
|
first_name: d.first_name,
|
|
@@ -14,20 +14,20 @@ import { Text as f, CategoryIcon as ht, CategoryIconVariants as ft } from "@mxen
|
|
|
14
14
|
import { f as A } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
15
15
|
import yt from "@mui/material/Button";
|
|
16
16
|
import { useTheme as it } from "@mui/material";
|
|
17
|
-
import { u as w, a as R,
|
|
17
|
+
import { u as w, a as R, m as z, c as rt, l as st, g as Ct, f as _t } from "../hooks-BAAimqdq.mjs";
|
|
18
18
|
import { u as ct } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
19
19
|
import { D as bt } from "../Donut-1UMNcG67.mjs";
|
|
20
20
|
import { L as F } from "../Loader-DUaFpDGv.mjs";
|
|
21
|
-
import { M as St } from "../MiniWidgetContainer-
|
|
21
|
+
import { M as St } from "../MiniWidgetContainer-BhHaL8eb.mjs";
|
|
22
22
|
import { startOfToday as U } from "date-fns/startOfToday";
|
|
23
|
-
import { T as Tt, a as Mt } from "../TransactionDetails-
|
|
23
|
+
import { T as Tt, a as Mt } from "../TransactionDetails-C-2UEbmQ.mjs";
|
|
24
24
|
import Dt from "@mui/material/Collapse";
|
|
25
25
|
import B from "@mui/material/Divider";
|
|
26
26
|
import q from "@mui/material/List";
|
|
27
27
|
import J from "@mui/material/ListItem";
|
|
28
28
|
import xt from "@mui/material/ListItemButton";
|
|
29
29
|
import { D as Q } from "../Drawer-kEE73B87.mjs";
|
|
30
|
-
import { A as Z, W as wt } from "../WidgetContainer-
|
|
30
|
+
import { A as Z, W as wt } from "../WidgetContainer-ztkGgdIH.mjs";
|
|
31
31
|
const j = 5, vt = (n, l, r) => r.reduce((i, c) => {
|
|
32
32
|
if (c.total > 0) {
|
|
33
33
|
const a = n.find((s) => s.guid === c.category_guid);
|