@mx-cartographer/experiences 7.4.8-alpha.mm0 → 7.4.8
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-BrOTlmeK.mjs → Account-01wOyrH1.mjs} +1 -1
- package/dist/{AccountDetailsContent-B7FqH05C.mjs → AccountDetailsContent-COMjOzwr.mjs} +8 -8
- package/dist/{AccountDetailsHeader-C8MxsxhN.mjs → AccountDetailsHeader-Cbi5G6fJ.mjs} +4 -4
- package/dist/{AccountFields-BQZ-o6Kj.mjs → AccountFields-Cd_nOWmf.mjs} +2 -2
- package/dist/{AccountListItem-aIE9WWTO.mjs → AccountListItem-DxY4cCF1.mjs} +4 -4
- package/dist/{AccountStore-DqO84Aer.mjs → AccountStore-C1zMBzHq.mjs} +2 -2
- package/dist/{Accounts-DC_A4UCa.mjs → Accounts-D7QljYas.mjs} +1 -1
- package/dist/{BudgetUtil-BmZXkL0C.mjs → BudgetUtil-Df2nII9u.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-SUgfE5GN.mjs → CategorySelectorDrawer-DqJK_rrL.mjs} +1 -1
- package/dist/{ConnectDrawer-KL8t1qSC.mjs → ConnectDrawer-CuUj16NH.mjs} +1 -1
- package/dist/{ConnectionsDrawer-DaK5uIL5.mjs → ConnectionsDrawer-Bz4uwdFE.mjs} +2 -2
- package/dist/{CurrencyInput-itK0R3wV.mjs → CurrencyInput-BFKcs-_K.mjs} +1 -1
- package/dist/{DebtsStore-DVPZbv2C.mjs → DebtsStore-Bu8rRRSL.mjs} +1 -1
- package/dist/{ExportCsvAction-Cglo8Mca.mjs → ExportCsvAction-DzTrtPzk.mjs} +3 -3
- package/dist/{GoalStore-o4rrjGSJ.mjs → GoalStore-CrNhjvNc.mjs} +2 -2
- package/dist/{Help-BjLMsuMS.mjs → Help-BnPXM_N2.mjs} +1 -1
- package/dist/{LineChart-BQRxZF3p.mjs → LineChart-bc1D9xBE.mjs} +1 -1
- package/dist/{ListItemAction-BxTkF6Tz.mjs → ListItemAction-uobBrm_a.mjs} +1 -1
- package/dist/{ManageIncome-rcnDYsBJ.mjs → ManageIncome-A69EUO5u.mjs} +75 -75
- package/dist/{MicroWidgetContainer-B2hO9rOG.mjs → MicroWidgetContainer-DEiRnYVa.mjs} +1 -1
- package/dist/{MiniWidgetContainer-98-hKFqm.mjs → MiniWidgetContainer-CmXpTylX.mjs} +1 -1
- package/dist/{NetWorthStore-DG2X69jG.mjs → NetWorthStore-CpL_kqvx.mjs} +2 -2
- package/dist/{NotificationSettings-C7FYNM7I.mjs → NotificationSettings-CNmJWVeI.mjs} +248 -250
- package/dist/{OriginalBalanceAction-C6jdS4ws.mjs → OriginalBalanceAction-DK8_LkPz.mjs} +3 -3
- package/dist/{RecurringSettings-C81H1l38.mjs → RecurringSettings-B0uObPlD.mjs} +3 -3
- package/dist/{SpendingLegend-DqZxN_BZ.mjs → SpendingLegend-Bf-wbJvb.mjs} +2 -2
- package/dist/{TransactionDetails-BA_E5nQ-.mjs → TransactionDetails-COH0OKNG.mjs} +5 -5
- package/dist/{TransactionStore-PRlwE-TF.mjs → TransactionStore-Dz-G8Wd0.mjs} +2 -2
- package/dist/{User-Cnlegl1N.mjs → User-wXzDI4M8.mjs} +1 -1
- package/dist/{ViewMoreMicroCard-DfPXJzbv.mjs → ViewMoreMicroCard-C0832BMe.mjs} +101 -105
- package/dist/{WidgetContainer-CaPjoWeE.mjs → WidgetContainer-6dsjtOVg.mjs} +2 -2
- package/dist/accounts/index.es.js +140 -148
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +478 -483
- package/dist/cashflow/index.es.js +362 -367
- package/dist/categories/index.es.js +1 -1
- package/dist/common/hooks/index.d.ts +0 -1
- package/dist/common/index.es.js +33 -35
- package/dist/dashboard/index.es.js +88 -90
- package/dist/debts/index.es.js +342 -346
- package/dist/{exportTransactionsToCSV-DuAaI5XA.mjs → exportTransactionsToCSV-Cz2t0lmA.mjs} +1 -1
- package/dist/finstrong/index.es.js +350 -352
- package/dist/goals/index.es.js +511 -518
- package/dist/help/index.es.js +9 -13
- package/dist/{hooks-ZMp65DFz.mjs → hooks-C41HAxM5.mjs} +11 -11
- package/dist/investments/index.es.js +393 -395
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +240 -245
- package/dist/notifications/index.es.js +2 -2
- package/dist/recurringtransactions/index.es.js +285 -293
- package/dist/settings/index.es.js +249 -252
- package/dist/spending/index.es.js +126 -138
- package/dist/transactions/index.es.js +73 -77
- package/dist/trends/index.es.js +588 -601
- package/dist/{useAccountDisplayName-Cjx8YmKK.mjs → useAccountDisplayName-CMMlIOXF.mjs} +2 -2
- package/dist/{useInsightsEnabled-B7dxpDrX.mjs → useInsightsEnabled-CNjP5cfR.mjs} +1 -1
- package/package.json +1 -1
- package/dist/common/hooks/useWidgetLoadTimer.d.ts +0 -6
- package/dist/useWidgetLoadTimer-C1NBkyLd.mjs +0 -23
|
@@ -1,92 +1,91 @@
|
|
|
1
|
-
import { jsx as e, jsxs as o, Fragment as
|
|
1
|
+
import { jsx as e, jsxs as o, Fragment as V } from "react/jsx-runtime";
|
|
2
2
|
import f from "react";
|
|
3
|
-
import { observer as
|
|
4
|
-
import { endOfMonth as
|
|
3
|
+
import { observer as R } from "mobx-react-lite";
|
|
4
|
+
import { endOfMonth as z } from "date-fns/endOfMonth";
|
|
5
5
|
import { endOfToday as de } from "date-fns/endOfToday";
|
|
6
|
-
import { startOfMonth as
|
|
6
|
+
import { startOfMonth as W } from "date-fns/startOfMonth";
|
|
7
7
|
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
|
-
import
|
|
11
|
-
import { R as
|
|
12
|
-
import { M as Gn } from "../RecurringSettings-
|
|
13
|
-
import { addMonths as
|
|
14
|
-
import { subMonths as
|
|
15
|
-
import { isBefore as
|
|
10
|
+
import c from "@mui/material/Stack";
|
|
11
|
+
import { R as Ee } from "../RecurringSettings-B0uObPlD.mjs";
|
|
12
|
+
import { M as Gn } from "../RecurringSettings-B0uObPlD.mjs";
|
|
13
|
+
import { addMonths as ze } from "date-fns/addMonths";
|
|
14
|
+
import { subMonths as Fe } from "date-fns/subMonths";
|
|
15
|
+
import { isBefore as Ue } from "date-fns/isBefore";
|
|
16
16
|
import se from "@mui/material/Unstable_Grid2";
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import { Schedule as
|
|
21
|
-
import { Text as g, MerchantLogo as pe, InstitutionLogo as
|
|
22
|
-
import { getWeeksInMonth as
|
|
17
|
+
import De from "@mui/material/IconButton";
|
|
18
|
+
import Se from "@mui/material/Tab";
|
|
19
|
+
import je from "@mui/material/Tabs";
|
|
20
|
+
import { Schedule as Ke, MonetizationOn as Ye, Cancel as Ge, CheckCircle as Ne, ChevronLeft as qe, ChevronRight as Ve, CurrencyExchange as Xe } from "@mxenabled/mx-icons";
|
|
21
|
+
import { Text as g, MerchantLogo as pe, InstitutionLogo as Ze, H3 as Je, P as ce } from "@mxenabled/mxui";
|
|
22
|
+
import { getWeeksInMonth as _e } from "date-fns/getWeeksInMonth";
|
|
23
23
|
import ge 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
|
|
30
|
-
import { I as
|
|
31
|
-
import { u as
|
|
32
|
-
import { c as
|
|
33
|
-
import { T as
|
|
34
|
-
import { R as
|
|
35
|
-
import { A as
|
|
24
|
+
import { AdapterDateFns as Qe } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
25
|
+
import { DateCalendar as et } from "@mui/x-date-pickers/DateCalendar";
|
|
26
|
+
import { LocalizationProvider as tt } from "@mui/x-date-pickers/LocalizationProvider";
|
|
27
|
+
import { isSameDay as nt } from "date-fns/isSameDay";
|
|
28
|
+
import it from "@mui/material/Badge";
|
|
29
|
+
import { PickersDay as rt } from "@mui/x-date-pickers/PickersDay";
|
|
30
|
+
import { I as X } from "../IconBacking-B9oC6uL2.mjs";
|
|
31
|
+
import { u as T, b as Z, j as v, g as J, q as Oe, d as he, h as fe, n as ot } from "../hooks-C41HAxM5.mjs";
|
|
32
|
+
import { c as L, a as D, g as Ie, f as at } from "../RecurringTransactions-BqijW_8S.mjs";
|
|
33
|
+
import { T as P } from "../RecurringTransactionsStore-BhBUVm9a.mjs";
|
|
34
|
+
import { R as On } from "../RecurringTransactionsStore-BhBUVm9a.mjs";
|
|
35
|
+
import { A as I, W as st } from "../WidgetContainer-6dsjtOVg.mjs";
|
|
36
36
|
import ct from "@mui/material/Button";
|
|
37
37
|
import le from "@mui/material/Divider";
|
|
38
38
|
import ve from "@mui/material/List";
|
|
39
|
-
import
|
|
39
|
+
import ke from "@mui/material/ListItem";
|
|
40
40
|
import lt from "@mui/material/ListSubheader";
|
|
41
41
|
import dt from "@mui/material/ListItemAvatar";
|
|
42
42
|
import ut from "@mui/material/ListItemButton";
|
|
43
43
|
import mt from "@mui/material/ListItemText";
|
|
44
|
-
import { b as pt } from "../ManageIncome-
|
|
45
|
-
import { c as
|
|
46
|
-
import { f as
|
|
44
|
+
import { b as pt } from "../ManageIncome-A69EUO5u.mjs";
|
|
45
|
+
import { c as Wn, M as $n, S as Bn } from "../ManageIncome-A69EUO5u.mjs";
|
|
46
|
+
import { f as A } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
47
47
|
import { D as xe } from "../Drawer-BEtCk82g.mjs";
|
|
48
|
-
import { b as
|
|
49
|
-
import { f as
|
|
50
|
-
import
|
|
51
|
-
import { S as
|
|
48
|
+
import { b as O } from "../Localization-2MODESHW.mjs";
|
|
49
|
+
import { f as E, a as G } from "../Dialog-BPTr3qHE.mjs";
|
|
50
|
+
import k from "@mui/material/Box";
|
|
51
|
+
import { S as We } from "../StatusBar-BK_uYHAB.mjs";
|
|
52
52
|
import { u as ye } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import { M as gt } from "../MiniWidgetContainer-98-hKFqm.mjs";
|
|
53
|
+
import { L as q } from "../Loader-DUaFpDGv.mjs";
|
|
54
|
+
import { M as gt } from "../MiniWidgetContainer-CmXpTylX.mjs";
|
|
56
55
|
import { u as ht } from "../useDimensions-27p2evRx.mjs";
|
|
57
|
-
import { M as ft } from "../MicroWidgetContainer-
|
|
56
|
+
import { M as ft } from "../MicroWidgetContainer-DEiRnYVa.mjs";
|
|
58
57
|
const Q = {
|
|
59
58
|
gridRow: 1,
|
|
60
59
|
gridColumn: 1,
|
|
61
60
|
zIndex: 2
|
|
62
|
-
}, ee = (t) => t ? { margin: "0 0 -6px -4px" } : void 0,
|
|
63
|
-
|
|
61
|
+
}, ee = (t) => t ? { margin: "0 0 -6px -4px" } : void 0, be = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(X, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Ke, { color: "primary", filled: !0, sx: { fontSize: n, ...Q } }) }), Ce = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(X, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(
|
|
62
|
+
Ye,
|
|
64
63
|
{
|
|
65
64
|
filled: !0,
|
|
66
65
|
sx: { color: "categories.income", fontSize: n, ...Q }
|
|
67
66
|
}
|
|
68
|
-
) }),
|
|
67
|
+
) }), Re = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(X, { 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(X, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Ne, { color: "success", filled: !0, sx: { fontSize: n, ...Q } }) }), xt = R(
|
|
69
68
|
({ day: t, outsideCurrentMonth: n, ...i }) => {
|
|
70
|
-
const { recurring: r } =
|
|
71
|
-
() =>
|
|
72
|
-
[a,
|
|
69
|
+
const { recurring: r } = T(), { selectedAccountGuids: a } = Z(), { recurrences: l, setSelectedDay: p } = v(), s = f.useMemo(
|
|
70
|
+
() => l.filter((d) => a.includes(d.accountGuid)),
|
|
71
|
+
[a, l]
|
|
73
72
|
).filter(
|
|
74
|
-
(d) =>
|
|
73
|
+
(d) => nt(d.occurredOnDate || d.expectedDate, t)
|
|
75
74
|
), m = s.some(
|
|
76
|
-
(d) => d.type !==
|
|
75
|
+
(d) => d.type !== L.Income && d.status === D.Upcoming
|
|
77
76
|
), u = s.some(
|
|
78
|
-
(d) => d.type !==
|
|
77
|
+
(d) => d.type !== L.Income && d.status === D.Missed
|
|
79
78
|
), x = s.some(
|
|
80
|
-
(d) => d.type !==
|
|
81
|
-
), b = s.some((d) => d.type ===
|
|
79
|
+
(d) => d.type !== L.Income && d.status === D.Paid
|
|
80
|
+
), b = s.some((d) => d.type === L.Income), y = (m ? 1 : 0) + (u ? 1 : 0) + (x ? 1 : 0) + (b ? 1 : 0);
|
|
82
81
|
return /* @__PURE__ */ e(
|
|
83
|
-
|
|
82
|
+
it,
|
|
84
83
|
{
|
|
85
|
-
badgeContent: s.length > 0 && /* @__PURE__ */ o(
|
|
86
|
-
u && /* @__PURE__ */ e(
|
|
87
|
-
x && /* @__PURE__ */ e(
|
|
88
|
-
m && /* @__PURE__ */ e(
|
|
89
|
-
b && /* @__PURE__ */ e(
|
|
84
|
+
badgeContent: s.length > 0 && /* @__PURE__ */ o(V, { children: [
|
|
85
|
+
u && /* @__PURE__ */ e(Re, { isOffset: !0 }),
|
|
86
|
+
x && /* @__PURE__ */ e(Te, { isOffset: !0 }),
|
|
87
|
+
m && /* @__PURE__ */ e(be, { isOffset: !0 }),
|
|
88
|
+
b && /* @__PURE__ */ e(Ce, { isOffset: !0 })
|
|
90
89
|
] }),
|
|
91
90
|
overlap: "circular",
|
|
92
91
|
sx: {
|
|
@@ -97,7 +96,7 @@ const Q = {
|
|
|
97
96
|
}
|
|
98
97
|
},
|
|
99
98
|
children: /* @__PURE__ */ e(
|
|
100
|
-
|
|
99
|
+
rt,
|
|
101
100
|
{
|
|
102
101
|
"aria-label": `
|
|
103
102
|
${x && r.paid},
|
|
@@ -120,13 +119,13 @@ const Q = {
|
|
|
120
119
|
}
|
|
121
120
|
);
|
|
122
121
|
}
|
|
123
|
-
), Y = ({ icon: t, label: n }) => /* @__PURE__ */ o(
|
|
122
|
+
), Y = ({ icon: t, label: n }) => /* @__PURE__ */ o(c, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
|
|
124
123
|
/* @__PURE__ */ e(t, {}),
|
|
125
124
|
/* @__PURE__ */ e(g, { variant: "XSmall", children: n })
|
|
126
|
-
] }), yt =
|
|
127
|
-
const { recurring: t } =
|
|
125
|
+
] }), yt = R(() => {
|
|
126
|
+
const { recurring: t } = T();
|
|
128
127
|
return /* @__PURE__ */ o(
|
|
129
|
-
|
|
128
|
+
c,
|
|
130
129
|
{
|
|
131
130
|
alignItems: "center",
|
|
132
131
|
"aria-hidden": !0,
|
|
@@ -135,30 +134,30 @@ const Q = {
|
|
|
135
134
|
justifyContent: "center",
|
|
136
135
|
mt: 12,
|
|
137
136
|
children: [
|
|
138
|
-
/* @__PURE__ */ e(Y, { icon:
|
|
139
|
-
/* @__PURE__ */ e(Y, { icon:
|
|
140
|
-
/* @__PURE__ */ e(Y, { icon:
|
|
141
|
-
/* @__PURE__ */ e(Y, { icon:
|
|
137
|
+
/* @__PURE__ */ e(Y, { icon: be, label: t.expense }),
|
|
138
|
+
/* @__PURE__ */ e(Y, { icon: Ce, label: t.income }),
|
|
139
|
+
/* @__PURE__ */ e(Y, { icon: Re, label: t.missed }),
|
|
140
|
+
/* @__PURE__ */ e(Y, { icon: Te, label: t.paid })
|
|
142
141
|
]
|
|
143
142
|
}
|
|
144
143
|
);
|
|
145
|
-
}),
|
|
146
|
-
const t = ge(), { onEvent: n } = J(), { selectedDay: i, setDateRange: r } =
|
|
147
|
-
|
|
144
|
+
}), Me = 58, $e = R(() => {
|
|
145
|
+
const t = ge(), { onEvent: n } = J(), { selectedDay: i, setDateRange: r } = v(), [a, l] = f.useState(
|
|
146
|
+
_e(/* @__PURE__ */ new Date()) * P + Me
|
|
148
147
|
), p = (u) => {
|
|
149
|
-
|
|
150
|
-
start:
|
|
151
|
-
end:
|
|
152
|
-
}), h(u), n(
|
|
148
|
+
l(_e(u) * P + Me), r({
|
|
149
|
+
start: W(u),
|
|
150
|
+
end: z(u)
|
|
151
|
+
}), h(u), n(I.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
|
|
153
152
|
}, h = (u) => {
|
|
154
153
|
u && requestAnimationFrame(() => {
|
|
155
154
|
const x = document.getElementById("recurrence-list");
|
|
156
155
|
x?.setAttribute("tabindex", "-1"), x?.focus();
|
|
157
156
|
});
|
|
158
157
|
}, s = /* @__PURE__ */ e(
|
|
159
|
-
|
|
158
|
+
et,
|
|
160
159
|
{
|
|
161
|
-
minDate:
|
|
160
|
+
minDate: W(/* @__PURE__ */ new Date()),
|
|
162
161
|
onChange: h,
|
|
163
162
|
onMonthChange: p,
|
|
164
163
|
showDaysOutsideCurrentMonth: !0,
|
|
@@ -192,11 +191,11 @@ const Q = {
|
|
|
192
191
|
minHeight: a
|
|
193
192
|
},
|
|
194
193
|
"&.MuiDateCalendar-root": {
|
|
195
|
-
minHeight: a +
|
|
194
|
+
minHeight: a + P
|
|
196
195
|
},
|
|
197
196
|
"& .MuiButtonBase-root, .MuiDayCalendar-weekDayLabel": {
|
|
198
|
-
height:
|
|
199
|
-
width:
|
|
197
|
+
height: P,
|
|
198
|
+
width: P,
|
|
200
199
|
margin: 0
|
|
201
200
|
},
|
|
202
201
|
"& .MuiDayCalendar-weekDayLabel": {
|
|
@@ -209,7 +208,7 @@ const Q = {
|
|
|
209
208
|
}
|
|
210
209
|
);
|
|
211
210
|
return /* @__PURE__ */ o(
|
|
212
|
-
|
|
211
|
+
c,
|
|
213
212
|
{
|
|
214
213
|
"aria-describedby": "calendar-description",
|
|
215
214
|
"aria-labelledby": "calendar-label",
|
|
@@ -233,7 +232,7 @@ const Q = {
|
|
|
233
232
|
children: "Calendar filter for recurring transactions list. Filter by month or select specific date."
|
|
234
233
|
}
|
|
235
234
|
),
|
|
236
|
-
/* @__PURE__ */ o(
|
|
235
|
+
/* @__PURE__ */ o(tt, { dateAdapter: Qe, children: [
|
|
237
236
|
i && s,
|
|
238
237
|
!i && s,
|
|
239
238
|
/* @__PURE__ */ e(yt, {})
|
|
@@ -242,53 +241,53 @@ const Q = {
|
|
|
242
241
|
}
|
|
243
242
|
);
|
|
244
243
|
}), bt = (t) => {
|
|
245
|
-
if (t.type ===
|
|
246
|
-
return /* @__PURE__ */ e(
|
|
244
|
+
if (t.type === L.Income)
|
|
245
|
+
return /* @__PURE__ */ e(Ce, {});
|
|
247
246
|
switch (t.status) {
|
|
248
247
|
case D.Missed:
|
|
249
|
-
return /* @__PURE__ */ e(
|
|
248
|
+
return /* @__PURE__ */ e(Re, {});
|
|
250
249
|
case D.Paid:
|
|
251
|
-
return /* @__PURE__ */ e(
|
|
250
|
+
return /* @__PURE__ */ e(Te, {});
|
|
252
251
|
default:
|
|
253
|
-
return /* @__PURE__ */ e(
|
|
252
|
+
return /* @__PURE__ */ e(be, {});
|
|
254
253
|
}
|
|
255
254
|
}, Ct = (t, n) => {
|
|
256
255
|
switch (t.status) {
|
|
257
256
|
case D.Paid:
|
|
258
|
-
return t.expectedDate ?
|
|
257
|
+
return t.expectedDate ? O(
|
|
259
258
|
n.paid_on,
|
|
260
|
-
|
|
259
|
+
E(
|
|
261
260
|
t.occurredOnDate || t.expectedDate,
|
|
262
|
-
|
|
261
|
+
G.MONTH_DAY
|
|
263
262
|
)
|
|
264
263
|
) : n.paid;
|
|
265
264
|
case D.Missed:
|
|
266
|
-
return
|
|
265
|
+
return O(
|
|
267
266
|
n.missed_on,
|
|
268
|
-
|
|
267
|
+
E(t.expectedDate, G.MONTH_DAY)
|
|
269
268
|
);
|
|
270
269
|
case D.Upcoming:
|
|
271
|
-
return
|
|
270
|
+
return O(
|
|
272
271
|
n.upcoming_on,
|
|
273
|
-
|
|
272
|
+
E(t.expectedDate, G.MONTH_DAY)
|
|
274
273
|
);
|
|
275
274
|
default:
|
|
276
275
|
return n.unknown;
|
|
277
276
|
}
|
|
278
|
-
},
|
|
277
|
+
}, Le = ({
|
|
279
278
|
recurrence: t,
|
|
280
279
|
isMini: n = !1,
|
|
281
280
|
onRecurrenceClick: i = () => {
|
|
282
281
|
},
|
|
283
282
|
showOrdinal: r = !1
|
|
284
283
|
}) => {
|
|
285
|
-
const { recurring: a } =
|
|
286
|
-
() =>
|
|
287
|
-
[t,
|
|
288
|
-
), m = t.type ===
|
|
284
|
+
const { recurring: a } = T(), { repeatingTransactions: l } = v(), [p, h] = f.useState(!1), s = f.useMemo(
|
|
285
|
+
() => l.find((w) => w.guid === t.repeatingTransactionGuid),
|
|
286
|
+
[t, l]
|
|
287
|
+
), m = t.type === L.Income, u = t.status === D.Paid, x = t.status === D.Missed, b = t.status === D.Upcoming;
|
|
289
288
|
let y = a.paid?.toLowerCase();
|
|
290
|
-
return x ? y = a.missed?.toLowerCase() : b && (y = r ?
|
|
291
|
-
/* @__PURE__ */ o(
|
|
289
|
+
return x ? y = a.missed?.toLowerCase() : b && (y = r ? Ie(a, s || {}, !0) : Ie(a, s || {}, !1)), //TODO: implement common/components/ListItemRow.tsx
|
|
290
|
+
/* @__PURE__ */ o(ke, { disableGutters: !0, disablePadding: !0, children: [
|
|
292
291
|
/* @__PURE__ */ o(ut, { onClick: () => {
|
|
293
292
|
h(!0), i(t);
|
|
294
293
|
}, children: [
|
|
@@ -300,20 +299,20 @@ const Q = {
|
|
|
300
299
|
}
|
|
301
300
|
) }),
|
|
302
301
|
/* @__PURE__ */ e(mt, { children: /* @__PURE__ */ o(
|
|
303
|
-
|
|
302
|
+
c,
|
|
304
303
|
{
|
|
305
304
|
direction: "row",
|
|
306
305
|
gap: 4,
|
|
307
306
|
sx: { justifyContent: "space-between", textOverflow: "ellipsis", textWrap: "nowrap" },
|
|
308
307
|
children: [
|
|
309
|
-
/* @__PURE__ */ o(
|
|
308
|
+
/* @__PURE__ */ o(c, { direction: "column", width: "50%", children: [
|
|
310
309
|
/* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: t.name }),
|
|
311
|
-
/* @__PURE__ */ e(
|
|
310
|
+
/* @__PURE__ */ e(c, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */ o(c, { direction: "row", gap: 4, children: [
|
|
312
311
|
bt(t),
|
|
313
312
|
/* @__PURE__ */ e(g, { variant: "caption", children: Ct(t, a) })
|
|
314
|
-
] }) : /* @__PURE__ */ o(
|
|
313
|
+
] }) : /* @__PURE__ */ o(V, { children: [
|
|
315
314
|
t.institutionGuid && /* @__PURE__ */ e(
|
|
316
|
-
|
|
315
|
+
Ze,
|
|
317
316
|
{
|
|
318
317
|
alt: `${t.institutionName} institution logo`,
|
|
319
318
|
institutionGuid: t.institutionGuid,
|
|
@@ -323,13 +322,13 @@ const Q = {
|
|
|
323
322
|
/* @__PURE__ */ e(g, { sx: { maxWidth: 250 }, variant: "caption", children: t.institutionName })
|
|
324
323
|
] }) })
|
|
325
324
|
] }),
|
|
326
|
-
/* @__PURE__ */ o(
|
|
325
|
+
/* @__PURE__ */ o(c, { alignItems: "flex-end", width: "100%", children: [
|
|
327
326
|
/* @__PURE__ */ o(g, { bold: !0, color: m ? "success.main" : "text.primary", variant: "body1", children: [
|
|
328
327
|
m ? "+" : "",
|
|
329
|
-
|
|
328
|
+
A(t.amount, "0,0.00")
|
|
330
329
|
] }),
|
|
331
330
|
!n && /* @__PURE__ */ o(
|
|
332
|
-
|
|
331
|
+
c,
|
|
333
332
|
{
|
|
334
333
|
direction: "row",
|
|
335
334
|
sx: {
|
|
@@ -340,7 +339,7 @@ const Q = {
|
|
|
340
339
|
width: "100%"
|
|
341
340
|
},
|
|
342
341
|
children: [
|
|
343
|
-
u && /* @__PURE__ */ e(
|
|
342
|
+
u && /* @__PURE__ */ e(Ne, { color: "success", filled: !0, size: 12 }),
|
|
344
343
|
x && /* @__PURE__ */ e(Ge, { color: "error", filled: !0, size: 12 }),
|
|
345
344
|
/* @__PURE__ */ e(g, { bold: !0, color: "text.secondary", variant: "caption", children: y })
|
|
346
345
|
]
|
|
@@ -357,7 +356,7 @@ const Q = {
|
|
|
357
356
|
ariaLabelClose: a.close_drawer_aria,
|
|
358
357
|
isOpen: p,
|
|
359
358
|
onClose: () => h(!1),
|
|
360
|
-
title: t.type ===
|
|
359
|
+
title: t.type === L.Income ? a.income_details : a.expense_details,
|
|
361
360
|
children: s && /* @__PURE__ */ e(
|
|
362
361
|
pt,
|
|
363
362
|
{
|
|
@@ -368,30 +367,30 @@ const Q = {
|
|
|
368
367
|
}
|
|
369
368
|
)
|
|
370
369
|
] });
|
|
371
|
-
},
|
|
370
|
+
}, H = R(
|
|
372
371
|
({
|
|
373
372
|
recurrences: t,
|
|
374
373
|
isMini: n = !1,
|
|
375
374
|
onResetClick: i,
|
|
376
375
|
onRecurrenceClick: r,
|
|
377
376
|
sx: a = {},
|
|
378
|
-
title:
|
|
377
|
+
title: l
|
|
379
378
|
}) => {
|
|
380
|
-
const { recurring: p } =
|
|
381
|
-
return /* @__PURE__ */ o(
|
|
382
|
-
|
|
383
|
-
|
|
379
|
+
const { recurring: p } = T(), h = f.useMemo(() => at(t), [t]);
|
|
380
|
+
return /* @__PURE__ */ o(c, { id: "recurrence-list", sx: { gap: 8, mt: 4, ...a }, "tab-index": -1, children: [
|
|
381
|
+
l && /* @__PURE__ */ o(
|
|
382
|
+
c,
|
|
384
383
|
{
|
|
385
384
|
sx: { alignItems: "top", direction: "row", justifyContent: "space-between", px: 24 },
|
|
386
385
|
children: [
|
|
387
|
-
/* @__PURE__ */ e(g, { bold: !0, variant: "body1", children:
|
|
386
|
+
/* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: l }),
|
|
388
387
|
i && /* @__PURE__ */ e(ct, { onClick: i, variant: "text", children: p.reset })
|
|
389
388
|
]
|
|
390
389
|
}
|
|
391
390
|
),
|
|
392
391
|
t.length === 0 ? /* @__PURE__ */ e(g, { fontStyle: "italic", sx: { py: 24, textAlign: "center" }, children: p.no_activities }) : /* @__PURE__ */ e(ve, { children: n ? t.map((s, m) => /* @__PURE__ */ o(f.Fragment, { children: [
|
|
393
392
|
/* @__PURE__ */ e(
|
|
394
|
-
|
|
393
|
+
Le,
|
|
395
394
|
{
|
|
396
395
|
isMini: n,
|
|
397
396
|
onRecurrenceClick: r,
|
|
@@ -400,13 +399,13 @@ const Q = {
|
|
|
400
399
|
),
|
|
401
400
|
/* @__PURE__ */ e(le, { sx: { mx: 24 } })
|
|
402
401
|
] }, `recurrence-${m}`)) : h.map((s, m) => /* @__PURE__ */ o(f.Fragment, { children: [
|
|
403
|
-
/* @__PURE__ */ e(
|
|
402
|
+
/* @__PURE__ */ e(ke, { children: /* @__PURE__ */ e(
|
|
404
403
|
ve,
|
|
405
404
|
{
|
|
406
|
-
subheader: /* @__PURE__ */ e(lt, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ e(g, { bold: !0, variant: "caption", children:
|
|
405
|
+
subheader: /* @__PURE__ */ e(lt, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ e(g, { bold: !0, variant: "caption", children: E(s.date, G.DAY_OF_WEEK_MONTH_DAY) }) }),
|
|
407
406
|
sx: { width: "100%" },
|
|
408
407
|
children: s.recurrences.map((u, x) => /* @__PURE__ */ e(f.Fragment, { children: /* @__PURE__ */ e(
|
|
409
|
-
|
|
408
|
+
Le,
|
|
410
409
|
{
|
|
411
410
|
isMini: n,
|
|
412
411
|
onRecurrenceClick: r,
|
|
@@ -419,35 +418,35 @@ const Q = {
|
|
|
419
418
|
] }, `recurrence-${m}`)) })
|
|
420
419
|
] });
|
|
421
420
|
}
|
|
422
|
-
),
|
|
423
|
-
({ expected: t, isExpense: n = !0, missed: i, paid: r, title: a, total:
|
|
424
|
-
const h = ge(), { isSmallMobile: s } = ye(), { recurring: m } =
|
|
421
|
+
), Ae = R(
|
|
422
|
+
({ expected: t, isExpense: n = !0, missed: i, paid: r, title: a, total: l, upcoming: p }) => {
|
|
423
|
+
const h = ge(), { isSmallMobile: s } = ye(), { recurring: m } = T(), u = f.useMemo(() => {
|
|
425
424
|
const x = [{ color: h.palette.success.main, percentage: `${r / t}` }];
|
|
426
425
|
return i && x.push({ color: h.palette.error.main, percentage: `${i / t}` }), x;
|
|
427
426
|
}, [r, t, i]);
|
|
428
|
-
return /* @__PURE__ */ o(
|
|
429
|
-
/* @__PURE__ */ o(
|
|
430
|
-
/* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: `${a} (${
|
|
431
|
-
/* @__PURE__ */ e(g, { bold: !0, color: n ? "text.primary" : "success.main", variant: "body1", children: `${n ? "-" : "+"}${
|
|
427
|
+
return /* @__PURE__ */ o(c, { children: [
|
|
428
|
+
/* @__PURE__ */ o(c, { sx: { flexDirection: "row", justifyContent: "space-between", pb: 12 }, children: [
|
|
429
|
+
/* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: `${a} (${l})` }),
|
|
430
|
+
/* @__PURE__ */ e(g, { bold: !0, color: n ? "text.primary" : "success.main", variant: "body1", children: `${n ? "-" : "+"}${A(t, "0,0.00")}` })
|
|
432
431
|
] }),
|
|
433
|
-
/* @__PURE__ */ e(
|
|
434
|
-
/* @__PURE__ */ o(
|
|
435
|
-
/* @__PURE__ */ e(
|
|
436
|
-
!s && /* @__PURE__ */ e(g, { bold: !0, variant: "body2", children:
|
|
432
|
+
/* @__PURE__ */ e(We, { data: u, height: 12 }),
|
|
433
|
+
/* @__PURE__ */ o(c, { sx: { alignItems: "center", flexDirection: "row", gap: 2, my: 8 }, children: [
|
|
434
|
+
/* @__PURE__ */ e(k, { sx: { bgcolor: "success.main", height: 8, mr: 8, width: 8 } }),
|
|
435
|
+
!s && /* @__PURE__ */ e(g, { bold: !0, variant: "body2", children: A(r, "0,0.00") }),
|
|
437
436
|
/* @__PURE__ */ e(g, { variant: "caption", children: m.paid?.toLowerCase() }),
|
|
438
|
-
i !== void 0 && /* @__PURE__ */ o(
|
|
439
|
-
/* @__PURE__ */ e(
|
|
440
|
-
!s && /* @__PURE__ */ e(g, { bold: !0, variant: "body2", children:
|
|
437
|
+
i !== void 0 && /* @__PURE__ */ o(V, { children: [
|
|
438
|
+
/* @__PURE__ */ e(k, { sx: { bgcolor: "error.main", height: 8, ml: 16, mr: 8, width: 8 } }),
|
|
439
|
+
!s && /* @__PURE__ */ e(g, { bold: !0, variant: "body2", children: A(i, "0,0.00") }),
|
|
441
440
|
/* @__PURE__ */ e(g, { variant: "caption", children: m.missed?.toLowerCase() })
|
|
442
441
|
] }),
|
|
443
|
-
/* @__PURE__ */ e(
|
|
444
|
-
!s && /* @__PURE__ */ e(g, { bold: !0, variant: "body2", children:
|
|
442
|
+
/* @__PURE__ */ e(k, { sx: { bgcolor: "divider", height: 8, ml: 16, mr: 8, width: 8 } }),
|
|
443
|
+
!s && /* @__PURE__ */ e(g, { bold: !0, variant: "body2", children: A(p, "0,0.00") }),
|
|
445
444
|
/* @__PURE__ */ e(g, { variant: "caption", children: m.upcoming })
|
|
446
445
|
] })
|
|
447
446
|
] });
|
|
448
447
|
}
|
|
449
|
-
), Rt =
|
|
450
|
-
const { recurring: t } =
|
|
448
|
+
), Rt = R(() => {
|
|
449
|
+
const { recurring: t } = T(), { availableWidth: n } = Oe(), { isDesktop: i, isSmallMobile: r, isMobile: a } = ye(n), { onEvent: l } = J(), {
|
|
451
450
|
currentMonthExpenses: p,
|
|
452
451
|
currentMonthIncome: h,
|
|
453
452
|
dateRange: s,
|
|
@@ -457,33 +456,33 @@ const Q = {
|
|
|
457
456
|
pastRecurrences: b,
|
|
458
457
|
paidExpenseTotal: y,
|
|
459
458
|
paidIncomeTotal: d,
|
|
460
|
-
selectedDay:
|
|
461
|
-
selectedDayRecurrences:
|
|
462
|
-
setDateRange:
|
|
459
|
+
selectedDay: w,
|
|
460
|
+
selectedDayRecurrences: S,
|
|
461
|
+
setDateRange: F,
|
|
463
462
|
upcomingExpenseTotal: te,
|
|
464
463
|
upcomingIncomeTotal: ne,
|
|
465
|
-
upcomingRecurrences:
|
|
466
|
-
} =
|
|
467
|
-
|
|
468
|
-
}, j = (
|
|
469
|
-
|
|
470
|
-
transaction_guid:
|
|
464
|
+
upcomingRecurrences: U
|
|
465
|
+
} = v(), [$, _] = f.useState(0), ie = Ue(s.start, /* @__PURE__ */ new Date()), M = (C, oe) => {
|
|
466
|
+
_(oe);
|
|
467
|
+
}, j = (C) => {
|
|
468
|
+
l(I.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
|
|
469
|
+
transaction_guid: C.transaction?.guid
|
|
471
470
|
});
|
|
472
|
-
}, K = (
|
|
473
|
-
|
|
474
|
-
transaction_guid:
|
|
471
|
+
}, K = (C) => {
|
|
472
|
+
l(I.RECURRING_TRANSACTIONS_CLICK_PAID, {
|
|
473
|
+
transaction_guid: C.transaction?.guid
|
|
475
474
|
});
|
|
476
|
-
},
|
|
477
|
-
const
|
|
478
|
-
|
|
479
|
-
start:
|
|
480
|
-
end:
|
|
475
|
+
}, B = () => {
|
|
476
|
+
const C = ze(s.start, 1);
|
|
477
|
+
F({
|
|
478
|
+
start: W(C),
|
|
479
|
+
end: z(C)
|
|
481
480
|
});
|
|
482
481
|
}, re = () => {
|
|
483
|
-
const
|
|
484
|
-
|
|
485
|
-
start:
|
|
486
|
-
end:
|
|
482
|
+
const C = Fe(s.start, 1);
|
|
483
|
+
F({
|
|
484
|
+
start: W(C),
|
|
485
|
+
end: z(C)
|
|
487
486
|
});
|
|
488
487
|
};
|
|
489
488
|
return /* @__PURE__ */ o(
|
|
@@ -495,27 +494,27 @@ const Q = {
|
|
|
495
494
|
},
|
|
496
495
|
children: [
|
|
497
496
|
/* @__PURE__ */ o(se, { md: !0, sm: 12, width: "100%", children: [
|
|
498
|
-
/* @__PURE__ */ o(
|
|
499
|
-
/* @__PURE__ */ o(
|
|
500
|
-
/* @__PURE__ */ e(
|
|
497
|
+
/* @__PURE__ */ o(c, { sx: { gap: 16, px: i ? 48 : 24 }, children: [
|
|
498
|
+
/* @__PURE__ */ o(c, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
499
|
+
/* @__PURE__ */ e(Je, { children: O(
|
|
501
500
|
t.header_title,
|
|
502
|
-
|
|
501
|
+
E(s.start, G.MONTH_LONG)
|
|
503
502
|
) }),
|
|
504
|
-
!i && /* @__PURE__ */ o(
|
|
503
|
+
!i && /* @__PURE__ */ o(c, { direction: "row", gap: 4, children: [
|
|
505
504
|
/* @__PURE__ */ e(
|
|
506
|
-
|
|
505
|
+
De,
|
|
507
506
|
{
|
|
508
507
|
color: "primary",
|
|
509
508
|
disabled: ie,
|
|
510
509
|
onClick: re,
|
|
511
|
-
children: /* @__PURE__ */ e(
|
|
510
|
+
children: /* @__PURE__ */ e(qe, {})
|
|
512
511
|
}
|
|
513
512
|
),
|
|
514
|
-
/* @__PURE__ */ e(
|
|
513
|
+
/* @__PURE__ */ e(De, { color: "primary", onClick: B, children: /* @__PURE__ */ e(Ve, {}) })
|
|
515
514
|
] })
|
|
516
515
|
] }),
|
|
517
516
|
/* @__PURE__ */ e(
|
|
518
|
-
|
|
517
|
+
Ae,
|
|
519
518
|
{
|
|
520
519
|
expected: m,
|
|
521
520
|
missed: x,
|
|
@@ -526,7 +525,7 @@ const Q = {
|
|
|
526
525
|
}
|
|
527
526
|
),
|
|
528
527
|
/* @__PURE__ */ e(
|
|
529
|
-
|
|
528
|
+
Ae,
|
|
530
529
|
{
|
|
531
530
|
expected: u,
|
|
532
531
|
isExpense: !1,
|
|
@@ -537,38 +536,38 @@ const Q = {
|
|
|
537
536
|
}
|
|
538
537
|
),
|
|
539
538
|
i && /* @__PURE__ */ e(
|
|
540
|
-
|
|
539
|
+
H,
|
|
541
540
|
{
|
|
542
541
|
onRecurrenceClick: j,
|
|
543
|
-
recurrences:
|
|
542
|
+
recurrences: U,
|
|
544
543
|
title: t.upcoming_activity
|
|
545
544
|
}
|
|
546
545
|
)
|
|
547
546
|
] }),
|
|
548
|
-
!i && /* @__PURE__ */ o(
|
|
549
|
-
/* @__PURE__ */ o(
|
|
547
|
+
!i && /* @__PURE__ */ o(c, { sx: { px: a ? 0 : 24 }, children: [
|
|
548
|
+
/* @__PURE__ */ o(je, { onChange: M, value: $, variant: "fullWidth", children: [
|
|
550
549
|
/* @__PURE__ */ e(
|
|
551
|
-
|
|
550
|
+
Se,
|
|
552
551
|
{
|
|
553
552
|
label: /* @__PURE__ */ e(g, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: r ? t.upcoming : t.upcoming_activity })
|
|
554
553
|
}
|
|
555
554
|
),
|
|
556
555
|
/* @__PURE__ */ e(
|
|
557
|
-
|
|
556
|
+
Se,
|
|
558
557
|
{
|
|
559
558
|
label: /* @__PURE__ */ e(g, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: r ? t.past : t.past_transactions })
|
|
560
559
|
}
|
|
561
560
|
)
|
|
562
561
|
] }),
|
|
563
|
-
|
|
564
|
-
|
|
562
|
+
$ === 0 && /* @__PURE__ */ e(
|
|
563
|
+
H,
|
|
565
564
|
{
|
|
566
565
|
onRecurrenceClick: j,
|
|
567
|
-
recurrences:
|
|
566
|
+
recurrences: U
|
|
568
567
|
}
|
|
569
568
|
),
|
|
570
|
-
|
|
571
|
-
|
|
569
|
+
$ === 1 && /* @__PURE__ */ e(
|
|
570
|
+
H,
|
|
572
571
|
{
|
|
573
572
|
onRecurrenceClick: K,
|
|
574
573
|
recurrences: b
|
|
@@ -576,16 +575,16 @@ const Q = {
|
|
|
576
575
|
)
|
|
577
576
|
] })
|
|
578
577
|
] }),
|
|
579
|
-
i && /* @__PURE__ */ e(se, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ o(
|
|
580
|
-
/* @__PURE__ */ e(
|
|
578
|
+
i && /* @__PURE__ */ e(se, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ o(c, { gap: 24, children: [
|
|
579
|
+
/* @__PURE__ */ e($e, {}),
|
|
581
580
|
/* @__PURE__ */ e(
|
|
582
|
-
|
|
581
|
+
H,
|
|
583
582
|
{
|
|
584
583
|
onRecurrenceClick: K,
|
|
585
|
-
recurrences:
|
|
586
|
-
title:
|
|
584
|
+
recurrences: S || b,
|
|
585
|
+
title: w ? O(
|
|
587
586
|
t.day_transactions,
|
|
588
|
-
|
|
587
|
+
E(w, G.MONTH_DAY)
|
|
589
588
|
) : t.past_transactions
|
|
590
589
|
}
|
|
591
590
|
)
|
|
@@ -593,19 +592,18 @@ const Q = {
|
|
|
593
592
|
]
|
|
594
593
|
}
|
|
595
594
|
);
|
|
596
|
-
}),
|
|
597
|
-
const { accounts: i } = he(), { recurring: r } =
|
|
598
|
-
return
|
|
599
|
-
widgetName: "RecurringTransactionsWidget",
|
|
600
|
-
isLoaded: s
|
|
601
|
-
}), f.useEffect(() => {
|
|
595
|
+
}), In = R(({ onBackClick: t, sx: n = {} }) => {
|
|
596
|
+
const { accounts: i } = he(), { recurring: r } = T(), { isCopyLoaded: a, isInitialized: l, selectedAccountGuids: p, setSelectedAccounts: h } = Z(), { isDataLoaded: s, loadRepeatingTransactions: m, setDateRange: u } = v(), { setFilter: x } = fe(), { onEvent: b } = J(), { onLoad: y } = ot(), { isMobile: d } = ye(), [w, S] = f.useState(!1);
|
|
597
|
+
return f.useEffect(() => {
|
|
602
598
|
h(i);
|
|
603
599
|
}, [i]), f.useEffect(() => {
|
|
604
|
-
|
|
600
|
+
l && (x({
|
|
605
601
|
dateRange: { start: me(ue(), 90), end: de() },
|
|
606
602
|
accounts: p
|
|
607
|
-
}), u({ start:
|
|
608
|
-
|
|
603
|
+
}), u({ start: W(/* @__PURE__ */ new Date()), end: z(/* @__PURE__ */ new Date()) }), m().finally(() => {
|
|
604
|
+
y?.("RecurringTransactionsWidget");
|
|
605
|
+
}));
|
|
606
|
+
}, [l]), a ? /* @__PURE__ */ o(
|
|
609
607
|
st,
|
|
610
608
|
{
|
|
611
609
|
accountOptions: i,
|
|
@@ -614,17 +612,17 @@ const Q = {
|
|
|
614
612
|
label: r.action_title,
|
|
615
613
|
iconName: "credit_card_gear",
|
|
616
614
|
onClick: () => {
|
|
617
|
-
|
|
615
|
+
S(!0), b(I.RECURRING_TRANSACTIONS_CLICK_SETTINGS);
|
|
618
616
|
}
|
|
619
617
|
}
|
|
620
618
|
],
|
|
621
|
-
hasDivider:
|
|
622
|
-
onAccountsFilterClick: () => b(
|
|
619
|
+
hasDivider: d,
|
|
620
|
+
onAccountsFilterClick: () => b(I.RECURRING_TRANSACTIONS_CLICK_FILTER),
|
|
623
621
|
onBackClick: t,
|
|
624
622
|
sx: n,
|
|
625
623
|
title: r.title,
|
|
626
624
|
children: [
|
|
627
|
-
|
|
625
|
+
l && s ? /* @__PURE__ */ e(Rt, {}) : /* @__PURE__ */ o(c, { direction: "column", p: 48, spacing: 24, children: [
|
|
628
626
|
/* @__PURE__ */ e(ae, { height: 100, variant: "rounded", width: "100%" }),
|
|
629
627
|
/* @__PURE__ */ e(ae, { height: 100, variant: "rounded", width: "100%" }),
|
|
630
628
|
/* @__PURE__ */ e(ae, { height: 600, variant: "rounded", width: "100%" })
|
|
@@ -633,49 +631,46 @@ const Q = {
|
|
|
633
631
|
xe,
|
|
634
632
|
{
|
|
635
633
|
ariaLabelClose: r.close_drawer_aria,
|
|
636
|
-
isOpen:
|
|
637
|
-
onClose: () =>
|
|
634
|
+
isOpen: w,
|
|
635
|
+
onClose: () => S(!1),
|
|
638
636
|
shouldShowHeaderBorders: !1,
|
|
639
637
|
title: r.action_title,
|
|
640
|
-
children: /* @__PURE__ */ e(
|
|
638
|
+
children: /* @__PURE__ */ e(Ee, {})
|
|
641
639
|
}
|
|
642
640
|
)
|
|
643
641
|
]
|
|
644
642
|
}
|
|
645
|
-
) : /* @__PURE__ */ e(
|
|
646
|
-
}), Tt =
|
|
647
|
-
const { recurring: t } =
|
|
648
|
-
return /* @__PURE__ */ o(
|
|
649
|
-
/* @__PURE__ */ e(
|
|
643
|
+
) : /* @__PURE__ */ e(q, {});
|
|
644
|
+
}), Tt = R(() => {
|
|
645
|
+
const { recurring: t } = T(), { availableWidth: n } = Oe(), { selectedDay: i, selectedDayRecurrences: r, setSelectedDay: a, upcomingRecurrences: l } = v(), p = n < 750;
|
|
646
|
+
return /* @__PURE__ */ o(c, { flexDirection: p ? "column" : "row", width: "100%", children: [
|
|
647
|
+
/* @__PURE__ */ e($e, {}),
|
|
650
648
|
!p && /* @__PURE__ */ e(le, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
|
|
651
649
|
/* @__PURE__ */ e(
|
|
652
|
-
|
|
650
|
+
H,
|
|
653
651
|
{
|
|
654
652
|
isMini: !0,
|
|
655
653
|
onResetClick: i ? () => a(i) : void 0,
|
|
656
|
-
recurrences: r ||
|
|
654
|
+
recurrences: r || l.slice(0, 5),
|
|
657
655
|
sx: { width: p ? "100%" : "calc(100% - 336px)", mt: 12 },
|
|
658
|
-
title: i ?
|
|
656
|
+
title: i ? O(
|
|
659
657
|
t.day_transactions,
|
|
660
|
-
|
|
658
|
+
E(i, G.MONTH_DAY)
|
|
661
659
|
) : t.upcoming_activity
|
|
662
660
|
}
|
|
663
661
|
)
|
|
664
662
|
] });
|
|
665
|
-
}), vn =
|
|
663
|
+
}), vn = R(
|
|
666
664
|
({ onPrimaryCtaClick: t, sx: n }) => {
|
|
667
|
-
const { accounts: i } = he(), { recurring: r } =
|
|
668
|
-
return
|
|
669
|
-
widgetName: "RecurringTransactionsMiniWidget",
|
|
670
|
-
isLoaded: c
|
|
671
|
-
}), f.useEffect(() => {
|
|
665
|
+
const { accounts: i } = he(), { recurring: r } = T(), { setFilter: a } = fe(), { isDataLoaded: l, loadRepeatingTransactions: p } = v(), { isCopyLoaded: h, isInitialized: s, setSelectedAccounts: m, selectedAccountGuids: u } = Z();
|
|
666
|
+
return f.useEffect(() => {
|
|
672
667
|
s && m(i);
|
|
673
668
|
}, [s]), f.useEffect(() => {
|
|
674
669
|
u.length > 0 && (a({
|
|
675
670
|
dateRange: { start: me(ue(), 90), end: de() },
|
|
676
671
|
accounts: u
|
|
677
672
|
}), p().finally());
|
|
678
|
-
}, [u]), !h || !s ? /* @__PURE__ */ e(
|
|
673
|
+
}, [u]), !h || !s ? /* @__PURE__ */ e(q, {}) : /* @__PURE__ */ e(
|
|
679
674
|
gt,
|
|
680
675
|
{
|
|
681
676
|
className: "mx-exp-recurring-transactions-miniwidget",
|
|
@@ -684,14 +679,14 @@ const Q = {
|
|
|
684
679
|
subTitle: r.sub_title,
|
|
685
680
|
sx: n,
|
|
686
681
|
title: r.mini_title,
|
|
687
|
-
children:
|
|
682
|
+
children: l ? /* @__PURE__ */ e(Tt, {}) : /* @__PURE__ */ e(q, {})
|
|
688
683
|
}
|
|
689
684
|
);
|
|
690
685
|
}
|
|
691
686
|
), wt = ({
|
|
692
687
|
upcomingRecurrences: t,
|
|
693
688
|
maxLogos: n = 3
|
|
694
|
-
}) => /* @__PURE__ */ e(
|
|
689
|
+
}) => /* @__PURE__ */ e(c, { sx: { flexDirection: "row", gap: 4 }, children: t?.slice(0, n).map((i, r) => /* @__PURE__ */ e(
|
|
695
690
|
pe,
|
|
696
691
|
{
|
|
697
692
|
categoryGuid: i.categoryGuid || "",
|
|
@@ -705,18 +700,18 @@ const Q = {
|
|
|
705
700
|
}) => {
|
|
706
701
|
const r = (a) => a * (n / 2);
|
|
707
702
|
return /* @__PURE__ */ e(
|
|
708
|
-
|
|
703
|
+
k,
|
|
709
704
|
{
|
|
710
705
|
sx: {
|
|
711
706
|
position: "relative",
|
|
712
707
|
width: 64
|
|
713
708
|
},
|
|
714
|
-
children: t.map((a,
|
|
715
|
-
|
|
709
|
+
children: t.map((a, l) => l < i ? /* @__PURE__ */ e(
|
|
710
|
+
k,
|
|
716
711
|
{
|
|
717
712
|
sx: {
|
|
718
713
|
borderRadius: "4px",
|
|
719
|
-
left: r(
|
|
714
|
+
left: r(l),
|
|
720
715
|
outlineColor: "common.white",
|
|
721
716
|
outlineStyle: "solid",
|
|
722
717
|
outlineWidth: 2,
|
|
@@ -731,7 +726,7 @@ const Q = {
|
|
|
731
726
|
}
|
|
732
727
|
)
|
|
733
728
|
},
|
|
734
|
-
`${a.categoryGuid}-${a.merchantGuid}-${
|
|
729
|
+
`${a.categoryGuid}-${a.merchantGuid}-${l}`
|
|
735
730
|
) : null)
|
|
736
731
|
}
|
|
737
732
|
);
|
|
@@ -741,9 +736,9 @@ const Q = {
|
|
|
741
736
|
isLargeScreen: i,
|
|
742
737
|
isSmallScreen: r,
|
|
743
738
|
label: a
|
|
744
|
-
}) => /* @__PURE__ */ o(
|
|
739
|
+
}) => /* @__PURE__ */ o(c, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
|
|
745
740
|
/* @__PURE__ */ e(
|
|
746
|
-
|
|
741
|
+
k,
|
|
747
742
|
{
|
|
748
743
|
sx: {
|
|
749
744
|
borderRadius: "2px",
|
|
@@ -753,101 +748,98 @@ const Q = {
|
|
|
753
748
|
}
|
|
754
749
|
}
|
|
755
750
|
),
|
|
756
|
-
/* @__PURE__ */ o(
|
|
757
|
-
!r && /* @__PURE__ */ e(g, { bold: !0, variant: "caption", children:
|
|
751
|
+
/* @__PURE__ */ o(c, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
|
|
752
|
+
!r && /* @__PURE__ */ e(g, { bold: !0, variant: "caption", children: A(t, t === 0 || !i ? "0,0" : "0,0.00") }),
|
|
758
753
|
/* @__PURE__ */ e(g, { variant: "caption", children: a })
|
|
759
754
|
] })
|
|
760
|
-
] }), _t =
|
|
761
|
-
const { recurring: t } =
|
|
762
|
-
return /* @__PURE__ */ o(
|
|
763
|
-
/* @__PURE__ */ e(
|
|
764
|
-
/* @__PURE__ */ o(
|
|
755
|
+
] }), _t = R(() => {
|
|
756
|
+
const { recurring: t } = T();
|
|
757
|
+
return /* @__PURE__ */ o(c, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
|
|
758
|
+
/* @__PURE__ */ e(Xe, { size: 32 }),
|
|
759
|
+
/* @__PURE__ */ o(c, { children: [
|
|
765
760
|
/* @__PURE__ */ e(ce, { fontWeight: 600, variant: "body1", children: t.zero_state_content_header }),
|
|
766
761
|
/* @__PURE__ */ e(ce, { color: "text.secondary", variant: "subtitle2", children: t.zero_state_content_description })
|
|
767
762
|
] })
|
|
768
763
|
] });
|
|
769
|
-
}),
|
|
764
|
+
}), Mn = R(
|
|
770
765
|
({ onCTAClick: t }) => {
|
|
771
|
-
const [n, i] = f.useState(!1), { onEvent: r } = J(), a = ge(), { accounts:
|
|
766
|
+
const [n, i] = f.useState(!1), { onEvent: r } = J(), a = ge(), { accounts: l } = he(), [p, { width: h }] = ht(), { isCopyLoaded: s, isInitialized: m, selectedAccountGuids: u, setSelectedAccounts: x } = Z(), {
|
|
772
767
|
loadRepeatingTransactions: b,
|
|
773
768
|
upcomingRecurrences: y,
|
|
774
769
|
expenseTotal: d,
|
|
775
|
-
missedExpenseTotal:
|
|
776
|
-
paidExpenseTotal:
|
|
777
|
-
repeatingTransactions:
|
|
770
|
+
missedExpenseTotal: w,
|
|
771
|
+
paidExpenseTotal: S,
|
|
772
|
+
repeatingTransactions: F,
|
|
778
773
|
setDateRange: te,
|
|
779
774
|
upcomingExpenseTotal: ne,
|
|
780
|
-
isDataLoaded:
|
|
781
|
-
} =
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
x(c);
|
|
787
|
-
}, [c]), f.useEffect(() => {
|
|
788
|
-
m && (B({
|
|
775
|
+
isDataLoaded: U
|
|
776
|
+
} = v(), { setFilter: $ } = fe(), { recurring: _, budgets: ie } = T();
|
|
777
|
+
f.useEffect(() => {
|
|
778
|
+
x(l);
|
|
779
|
+
}, [l]), f.useEffect(() => {
|
|
780
|
+
m && ($({
|
|
789
781
|
dateRange: { start: me(ue(), 90), end: de() },
|
|
790
782
|
accounts: u
|
|
791
|
-
}), te({ start:
|
|
783
|
+
}), te({ start: W(/* @__PURE__ */ new Date()), end: z(/* @__PURE__ */ new Date()) }), b().finally(), i(!0));
|
|
792
784
|
}, [m]), f.useEffect(() => {
|
|
793
|
-
n && r(
|
|
785
|
+
n && r(I.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
|
|
794
786
|
state: y.length > 0 ? "default" : "zeroState"
|
|
795
787
|
});
|
|
796
788
|
}, [n]);
|
|
797
789
|
const M = h <= 288, j = h >= 450, K = f.useMemo(() => {
|
|
798
790
|
const N = [
|
|
799
|
-
{ color: a.palette.success.main, percentage: `${
|
|
791
|
+
{ color: a.palette.success.main, percentage: `${S / d}` }
|
|
800
792
|
];
|
|
801
|
-
return
|
|
793
|
+
return w && N.push({
|
|
802
794
|
color: a.palette.error.main,
|
|
803
|
-
percentage: `${
|
|
795
|
+
percentage: `${w / d}`
|
|
804
796
|
}), N;
|
|
805
797
|
}, [
|
|
806
|
-
|
|
798
|
+
S,
|
|
807
799
|
d,
|
|
808
|
-
|
|
800
|
+
w,
|
|
809
801
|
a.palette.success.main,
|
|
810
802
|
a.palette.error.main
|
|
811
|
-
]),
|
|
803
|
+
]), B = f.useMemo(() => A(d, d === 0 ? "0,0" : "0,0.00"), [d]), re = () => {
|
|
812
804
|
r(
|
|
813
|
-
y.length > 0 ?
|
|
805
|
+
y.length > 0 ? I.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : I.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
|
|
814
806
|
), t();
|
|
815
807
|
};
|
|
816
|
-
if (!s || !n ||
|
|
817
|
-
const
|
|
808
|
+
if (!s || !n || !U) return /* @__PURE__ */ e(q, { height: 100 });
|
|
809
|
+
const C = 32, oe = y.length > 0, Be = () => oe ? M ? /* @__PURE__ */ e(
|
|
818
810
|
Dt,
|
|
819
811
|
{
|
|
820
|
-
logoSize:
|
|
812
|
+
logoSize: C,
|
|
821
813
|
maxLogos: 3,
|
|
822
814
|
upcomingRecurrences: y.slice(0, 3)
|
|
823
815
|
}
|
|
824
|
-
) : /* @__PURE__ */ e(wt, { maxLogos: 3, upcomingRecurrences: y.slice(0, 3) }) : /* @__PURE__ */ e(
|
|
816
|
+
) : /* @__PURE__ */ e(wt, { maxLogos: 3, upcomingRecurrences: y.slice(0, 3) }) : /* @__PURE__ */ e(c, { sx: { width: M ? 64 : 104 } }), Pe = [
|
|
825
817
|
{
|
|
826
|
-
amount:
|
|
818
|
+
amount: S,
|
|
827
819
|
bgColor: "success.main",
|
|
828
|
-
label:
|
|
820
|
+
label: _.paid
|
|
829
821
|
},
|
|
830
822
|
{
|
|
831
|
-
amount:
|
|
823
|
+
amount: w,
|
|
832
824
|
bgColor: "error.main",
|
|
833
|
-
label:
|
|
825
|
+
label: _.missed
|
|
834
826
|
},
|
|
835
827
|
{
|
|
836
828
|
amount: ne,
|
|
837
829
|
bgColor: "border.light",
|
|
838
|
-
label:
|
|
830
|
+
label: _.upcoming
|
|
839
831
|
}
|
|
840
|
-
],
|
|
832
|
+
], we = !F?.length;
|
|
841
833
|
return /* @__PURE__ */ e(
|
|
842
834
|
ft,
|
|
843
835
|
{
|
|
844
836
|
className: "mx-recurring-transaction-microwidget",
|
|
845
|
-
ctaLabel:
|
|
837
|
+
ctaLabel: we ? ie.get_started_cta : _.primary_cta,
|
|
846
838
|
onCTAClick: re,
|
|
847
|
-
title:
|
|
848
|
-
children:
|
|
839
|
+
title: _.recurring_expenses,
|
|
840
|
+
children: we ? /* @__PURE__ */ e(_t, {}) : /* @__PURE__ */ o(V, { children: [
|
|
849
841
|
/* @__PURE__ */ o(
|
|
850
|
-
|
|
842
|
+
c,
|
|
851
843
|
{
|
|
852
844
|
ref: p,
|
|
853
845
|
sx: {
|
|
@@ -856,10 +848,10 @@ const Q = {
|
|
|
856
848
|
},
|
|
857
849
|
children: [
|
|
858
850
|
/* @__PURE__ */ o(
|
|
859
|
-
|
|
851
|
+
c,
|
|
860
852
|
{
|
|
861
853
|
sx: [
|
|
862
|
-
|
|
854
|
+
B.length >= 10 && M ? { flexDirection: "column" } : { flexDirection: "row", gap: 2 },
|
|
863
855
|
{
|
|
864
856
|
alignItems: "baseline",
|
|
865
857
|
overflow: "hidden",
|
|
@@ -872,8 +864,8 @@ const Q = {
|
|
|
872
864
|
g,
|
|
873
865
|
{
|
|
874
866
|
sx: { width: "100%" },
|
|
875
|
-
variant:
|
|
876
|
-
children:
|
|
867
|
+
variant: B.length >= 10 && M ? "H3" : "H2",
|
|
868
|
+
children: B
|
|
877
869
|
}
|
|
878
870
|
),
|
|
879
871
|
/* @__PURE__ */ e(
|
|
@@ -883,20 +875,20 @@ const Q = {
|
|
|
883
875
|
pr: 12
|
|
884
876
|
},
|
|
885
877
|
variant: "XSmall",
|
|
886
|
-
children:
|
|
878
|
+
children: _.expected
|
|
887
879
|
}
|
|
888
880
|
)
|
|
889
881
|
]
|
|
890
882
|
}
|
|
891
883
|
),
|
|
892
|
-
|
|
884
|
+
Be()
|
|
893
885
|
]
|
|
894
886
|
}
|
|
895
887
|
),
|
|
896
|
-
/* @__PURE__ */ o(
|
|
897
|
-
/* @__PURE__ */ e(
|
|
888
|
+
/* @__PURE__ */ o(c, { sx: { pt: 12 }, children: [
|
|
889
|
+
/* @__PURE__ */ e(We, { data: K }),
|
|
898
890
|
/* @__PURE__ */ e(
|
|
899
|
-
|
|
891
|
+
c,
|
|
900
892
|
{
|
|
901
893
|
sx: {
|
|
902
894
|
alignItems: "center",
|
|
@@ -904,7 +896,7 @@ const Q = {
|
|
|
904
896
|
gap: 16,
|
|
905
897
|
mt: 4
|
|
906
898
|
},
|
|
907
|
-
children:
|
|
899
|
+
children: Pe.map((N, He) => /* @__PURE__ */ e(
|
|
908
900
|
St,
|
|
909
901
|
{
|
|
910
902
|
amount: N.amount,
|
|
@@ -913,7 +905,7 @@ const Q = {
|
|
|
913
905
|
isSmallScreen: M,
|
|
914
906
|
label: N.label
|
|
915
907
|
},
|
|
916
|
-
`recurrence-legend-${
|
|
908
|
+
`recurrence-legend-${He}`
|
|
917
909
|
))
|
|
918
910
|
}
|
|
919
911
|
)
|
|
@@ -922,9 +914,9 @@ const Q = {
|
|
|
922
914
|
}
|
|
923
915
|
);
|
|
924
916
|
}
|
|
925
|
-
),
|
|
917
|
+
), Ln = R(
|
|
926
918
|
({ isOpen: t, onClose: n, selectedTab: i }) => {
|
|
927
|
-
const { cashflow: r } =
|
|
919
|
+
const { cashflow: r } = T();
|
|
928
920
|
return /* @__PURE__ */ e(
|
|
929
921
|
xe,
|
|
930
922
|
{
|
|
@@ -932,20 +924,20 @@ const Q = {
|
|
|
932
924
|
isOpen: t,
|
|
933
925
|
onClose: n,
|
|
934
926
|
title: r.cashflow_settings,
|
|
935
|
-
children: /* @__PURE__ */ e(
|
|
927
|
+
children: /* @__PURE__ */ e(Ee, { defaultSelectedTab: i })
|
|
936
928
|
}
|
|
937
929
|
);
|
|
938
930
|
}
|
|
939
931
|
);
|
|
940
932
|
export {
|
|
941
|
-
|
|
933
|
+
Wn as AddRecurringTransactionDetails,
|
|
942
934
|
Gn as ManageExpenses,
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
935
|
+
$n as ManageIncome,
|
|
936
|
+
Ee as RecurringSettings,
|
|
937
|
+
Ln as RecurringSettingsDrawer,
|
|
938
|
+
Mn as RecurringTransactionsMicroWidget,
|
|
947
939
|
vn as RecurringTransactionsMiniWidget,
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
940
|
+
On as RecurringTransactionsStore,
|
|
941
|
+
In as RecurringTransactionsWidget,
|
|
942
|
+
Bn as SelectTransaction
|
|
951
943
|
};
|