@mx-cartographer/experiences 7.0.32-alpha-recurring-transactions-navigation-issue-ram2 → 7.0.33
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-CK-DrCEa.mjs → Account-DeMa6XJz.mjs} +1 -1
- package/dist/{AccountDetailsContent-BGXM8acm.mjs → AccountDetailsContent-BwTOak3W.mjs} +8 -8
- package/dist/{AccountDetailsHeader-Dwk01nsY.mjs → AccountDetailsHeader-BCW4d-j4.mjs} +5 -5
- package/dist/{AccountFields-5i77eFJ6.mjs → AccountFields-B-igjxt-.mjs} +2 -2
- package/dist/{AccountListItem-BiST9IgK.mjs → AccountListItem-DAF9c7_x.mjs} +3 -3
- package/dist/{AccountStore-DiGbJBUT.mjs → AccountStore-Bzy6rKGo.mjs} +26 -26
- package/dist/{Accounts-BBkQjUmS.mjs → Accounts-DNMSlq9A.mjs} +1 -1
- package/dist/{BeatApi-DLu87ijw.mjs → BeatApi-DhJpgCLz.mjs} +3 -3
- package/dist/{BeatStore-By4aGoRM.mjs → BeatStore-IBnXd4YK.mjs} +17 -17
- package/dist/{BudgetUtil-D5jO0box.mjs → BudgetUtil-Iw9hUxhI.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-joMax4Fb.mjs → CategorySelectorDrawer-CMorcKFW.mjs} +1 -1
- package/dist/{CategoryStore-BOyzQjQp.mjs → CategoryStore-BCcpI3oJ.mjs} +4 -4
- package/dist/{ConnectDrawer-D86nRDxQ.mjs → ConnectDrawer-jeSmGg38.mjs} +1 -1
- package/dist/{ConnectionsDrawer-BkNr5Up0.mjs → ConnectionsDrawer-hdOVHICr.mjs} +2 -2
- package/dist/{CurrencyInput-BkflFU_-.mjs → CurrencyInput-C0wTgNV6.mjs} +1 -1
- package/dist/{DebtsStore-qrqY9Abz.mjs → DebtsStore-C2OfwE0t.mjs} +1 -1
- package/dist/{ExportCsvAction-DRfdZis1.mjs → ExportCsvAction-BlKpQTTL.mjs} +3 -3
- package/dist/{Fetch-CkFKy79O.mjs → Fetch-87LIQbEA.mjs} +11 -10
- package/dist/{FinstrongStore-mkALvztw.mjs → FinstrongStore-F2c607dj.mjs} +4 -4
- package/dist/{GoalStore-BQRcowCN.mjs → GoalStore-D2A2Lqd5.mjs} +6 -6
- package/dist/{Help-B3dFeYi2.mjs → Help-DwKXfnqC.mjs} +1 -1
- package/dist/{LineChart-Dyps2sOy.mjs → LineChart-DNC5UEt4.mjs} +1 -1
- package/dist/{ListItemAction-BgKx_n6d.mjs → ListItemAction-Dt9A2GQk.mjs} +1 -1
- package/dist/{ManageIncome-Byw3lVtR.mjs → ManageIncome-C0CbczlY.mjs} +4 -4
- package/dist/MerchantStore-DrFvsUyy.mjs +37 -0
- package/dist/{MicroWidgetContainer-DPDsZIiS.mjs → MicroWidgetContainer-DVRe-MJs.mjs} +1 -1
- package/dist/{MiniWidgetContainer-BzW7V_04.mjs → MiniWidgetContainer-C_N1u9ad.mjs} +1 -1
- package/dist/{NetWorthStore-DWG9Mkuu.mjs → NetWorthStore-CD4WWdXC.mjs} +2 -2
- package/dist/{NotificationSettings-B9wNyWEL.mjs → NotificationSettings-CtbJFbrv.mjs} +3 -3
- package/dist/{NotificationStore-DHtSGySy.mjs → NotificationStore-C6PH6MKm.mjs} +8 -4
- package/dist/{OriginalBalanceAction-B--pIAF0.mjs → OriginalBalanceAction-CqQ5j4OW.mjs} +3 -3
- package/dist/{RecurringSettings-ClbdFNWX.mjs → RecurringSettings-DR9KuVEN.mjs} +3 -3
- package/dist/{RecurringTransactionsStore-D62XJtdL.mjs → RecurringTransactionsStore-DeLXfuC4.mjs} +20 -16
- package/dist/{SettingsStore-B0kRTFjD.mjs → SettingsStore-Dc34Tzx8.mjs} +33 -29
- package/dist/{TransactionApi-DbbcjI2L.mjs → TransactionApi-B3Tksf7L.mjs} +29 -29
- package/dist/{TransactionDetails-C4PW8SRL.mjs → TransactionDetails-BafSm7_T.mjs} +5 -5
- package/dist/{TransactionStore-CZOvxcSw.mjs → TransactionStore-C4LPHwzx.mjs} +29 -25
- package/dist/{TrendsStore-pvzHAX6B.mjs → TrendsStore-BM-JjAs5.mjs} +1 -1
- package/dist/{User-D-O9EHMb.mjs → User-BYkzrOdM.mjs} +1 -1
- package/dist/{ViewMoreMicroCard-DFAY0tA8.mjs → ViewMoreMicroCard-C66pzgfS.mjs} +5 -2
- package/dist/{WidgetContainer-CBpf3h1Y.mjs → WidgetContainer-CPBhSP3k.mjs} +2 -2
- package/dist/accounts/api/AccountApi.d.ts +2 -2
- package/dist/accounts/index.es.js +13 -13
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/api/BudgetsApi.d.ts +2 -2
- package/dist/budgets/index.es.js +10 -10
- package/dist/cashflow/api/CashflowApi.d.ts +3 -2
- package/dist/cashflow/index.es.js +10 -10
- package/dist/categories/index.es.js +2 -2
- package/dist/common/api/AnalyticsApi.d.ts +2 -2
- package/dist/common/api/AppDataApi.d.ts +2 -2
- package/dist/common/api/BeatApi.d.ts +2 -2
- package/dist/common/api/CategoryApi.d.ts +2 -3
- package/dist/common/api/GlobalCopyApi.d.ts +2 -1
- package/dist/common/api/LocalizedCopyApi.d.ts +2 -1
- package/dist/common/api/NotificationApi.d.ts +2 -2
- package/dist/common/api/ScheduledPaymentsApi.d.ts +3 -2
- package/dist/common/api/UserApi.d.ts +2 -2
- package/dist/common/context/GlobalDataProvider.d.ts +3 -2
- package/dist/common/context/hooks.d.ts +4 -1
- package/dist/common/context/index.d.ts +1 -1
- package/dist/common/index.es.js +252 -246
- package/dist/common/stores/GlobalStore.d.ts +3 -2
- package/dist/common/types/Handlers.d.ts +2 -0
- package/dist/common/types/index.d.ts +1 -0
- package/dist/common/utils/Fetch.d.ts +3 -1
- package/dist/dashboard/index.es.js +2 -2
- package/dist/debts/index.es.js +9 -9
- package/dist/{exportTransactionsToCSV-zyHeWfQo.mjs → exportTransactionsToCSV-21c0EV3t.mjs} +1 -1
- package/dist/finstrong/api/FinstrongApi.d.ts +2 -1
- package/dist/finstrong/index.es.js +7 -7
- package/dist/goals/api/GoalApi.d.ts +3 -2
- package/dist/goals/index.es.js +11 -11
- package/dist/help/api/HelpApi.d.ts +2 -2
- package/dist/help/index.es.js +3 -3
- package/dist/hooks-BhSK6dal.mjs +74 -0
- package/dist/insights/index.es.js +1 -1
- package/dist/investments/api/HoldingApi.d.ts +3 -2
- package/dist/investments/index.es.js +3 -3
- package/dist/merchants/api/MerchantApi.d.ts +2 -1
- package/dist/merchants/index.es.js +2 -2
- package/dist/microinsights/context/InsightsMicroWidgetDataProvider.d.ts +2 -1
- package/dist/microinsights/context/hooks.d.ts +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +7 -7
- package/dist/notifications/index.es.js +5 -5
- package/dist/recurringtransactions/api/RepeatingTransactionsApi.d.ts +2 -2
- package/dist/recurringtransactions/index.es.js +430 -697
- package/dist/settings/api/SettingsApi.d.ts +3 -2
- package/dist/settings/index.es.js +7 -7
- package/dist/spending/index.es.js +4 -4
- package/dist/transactions/api/TransactionApi.d.ts +3 -2
- package/dist/transactions/index.es.js +14 -14
- package/dist/trends/index.es.js +11 -11
- package/dist/{useCombineEvents-DaDBSR_1.mjs → useCombineEvents-BUDIR1ba.mjs} +29 -29
- package/dist/{useInsightsEnabled-fGr6xrSj.mjs → useInsightsEnabled-DqM4sFO1.mjs} +1 -1
- package/package.json +1 -1
- package/dist/MerchantStore-DVH-QOf0.mjs +0 -37
- package/dist/hooks-DlI63qSB.mjs +0 -71
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as o, Fragment as Y } from "react/jsx-runtime";
|
|
2
2
|
import h from "react";
|
|
3
|
-
import { observer as
|
|
4
|
-
import { endOfMonth as
|
|
5
|
-
import { endOfToday as
|
|
6
|
-
import { startOfMonth as
|
|
7
|
-
import { startOfToday as
|
|
8
|
-
import { subDays as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { R as
|
|
12
|
-
import { M as
|
|
13
|
-
import { addMonths as
|
|
14
|
-
import { subMonths as
|
|
15
|
-
import { isBefore as
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import { Schedule as
|
|
21
|
-
import { Text as
|
|
22
|
-
import { getWeeksInMonth as
|
|
23
|
-
import
|
|
3
|
+
import { observer as D } from "mobx-react-lite";
|
|
4
|
+
import { endOfMonth as B } from "date-fns/endOfMonth";
|
|
5
|
+
import { endOfToday as le } from "date-fns/endOfToday";
|
|
6
|
+
import { startOfMonth as W } from "date-fns/startOfMonth";
|
|
7
|
+
import { startOfToday as de } from "date-fns/startOfToday";
|
|
8
|
+
import { subDays as ue } from "date-fns/subDays";
|
|
9
|
+
import oe from "@mui/material/Skeleton";
|
|
10
|
+
import c from "@mui/material/Stack";
|
|
11
|
+
import { R as ze } from "../RecurringSettings-DR9KuVEN.mjs";
|
|
12
|
+
import { M as An } from "../RecurringSettings-DR9KuVEN.mjs";
|
|
13
|
+
import { addMonths as Be } from "date-fns/addMonths";
|
|
14
|
+
import { subMonths as Ue } from "date-fns/subMonths";
|
|
15
|
+
import { isBefore as Fe } from "date-fns/isBefore";
|
|
16
|
+
import ae from "@mui/material/Unstable_Grid2";
|
|
17
|
+
import Te from "@mui/material/IconButton";
|
|
18
|
+
import De from "@mui/material/Tab";
|
|
19
|
+
import je from "@mui/material/Tabs";
|
|
20
|
+
import { Schedule as Ke, MonetizationOn as Ye, Cancel as Le, CheckCircle as Ae, ChevronLeft as Ve, ChevronRight as Xe, CurrencyExchange as Ze } from "@mxenabled/mx-icons";
|
|
21
|
+
import { Text as g, MerchantLogo as me, InstitutionLogo as qe, H3 as Je, P as se } from "@mxenabled/mxui";
|
|
22
|
+
import { getWeeksInMonth as Se } from "date-fns/getWeeksInMonth";
|
|
23
|
+
import pe from "@mui/material/styles/useTheme";
|
|
24
24
|
import { AdapterDateFns as Qe } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
25
25
|
import { DateCalendar as et } from "@mui/x-date-pickers/DateCalendar";
|
|
26
26
|
import { LocalizationProvider as tt } from "@mui/x-date-pickers/LocalizationProvider";
|
|
27
27
|
import { isSameDay as nt } from "date-fns/isSameDay";
|
|
28
|
-
import
|
|
28
|
+
import it from "@mui/material/Badge";
|
|
29
29
|
import { PickersDay as rt } from "@mui/x-date-pickers/PickersDay";
|
|
30
|
-
import { I as
|
|
31
|
-
import { u as
|
|
32
|
-
import { c as
|
|
33
|
-
import { T as
|
|
34
|
-
import { R as
|
|
35
|
-
import { A as
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import { b as mt } from "../ManageIncome-
|
|
45
|
-
import { c as On, M as
|
|
46
|
-
import { f as
|
|
47
|
-
import { D as
|
|
30
|
+
import { I as V } from "../IconBacking-B9oC6uL2.mjs";
|
|
31
|
+
import { u as S, a as X, i as v, f as Z, p as Ee, c as ge, g as he } from "../hooks-BhSK6dal.mjs";
|
|
32
|
+
import { c as M, a as T, g as Ie, f as ot } from "../RepeatingTransaction-BW4J-jeJ.mjs";
|
|
33
|
+
import { T as H } from "../RecurringTransactionsStore-DeLXfuC4.mjs";
|
|
34
|
+
import { R as Gn } from "../RecurringTransactionsStore-DeLXfuC4.mjs";
|
|
35
|
+
import { A as w, W as at } from "../WidgetContainer-CPBhSP3k.mjs";
|
|
36
|
+
import st from "@mui/material/Button";
|
|
37
|
+
import ce from "@mui/material/Divider";
|
|
38
|
+
import _e from "@mui/material/List";
|
|
39
|
+
import Ge from "@mui/material/ListItem";
|
|
40
|
+
import ct from "@mui/material/ListSubheader";
|
|
41
|
+
import lt from "@mui/material/ListItemAvatar";
|
|
42
|
+
import dt from "@mui/material/ListItemButton";
|
|
43
|
+
import ut from "@mui/material/ListItemText";
|
|
44
|
+
import { b as mt } from "../ManageIncome-C0CbczlY.mjs";
|
|
45
|
+
import { c as On, M as kn, S as Wn } from "../ManageIncome-C0CbczlY.mjs";
|
|
46
|
+
import { f as L } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
47
|
+
import { D as Ne } from "../Drawer-kEE73B87.mjs";
|
|
48
48
|
import { b as O } from "../Localization-2MODESHW.mjs";
|
|
49
|
-
import { f as
|
|
50
|
-
import
|
|
49
|
+
import { f as A, D as E } from "../Dialog-CWW597AF.mjs";
|
|
50
|
+
import k from "@mui/material/Box";
|
|
51
51
|
import { S as Oe } from "../StatusBar-BK_uYHAB.mjs";
|
|
52
|
-
import { u as
|
|
53
|
-
import { L as
|
|
54
|
-
import { M as
|
|
55
|
-
import { u as
|
|
56
|
-
import { M as
|
|
57
|
-
const
|
|
52
|
+
import { u as fe } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
53
|
+
import { L as K } from "../Loader-DUaFpDGv.mjs";
|
|
54
|
+
import { M as pt } from "../MiniWidgetContainer-C_N1u9ad.mjs";
|
|
55
|
+
import { u as gt } from "../useDimensions-27p2evRx.mjs";
|
|
56
|
+
import { M as ht } from "../MicroWidgetContainer-DVRe-MJs.mjs";
|
|
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,
|
|
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(Ke, { 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
|
+
Ye,
|
|
63
63
|
{
|
|
64
64
|
filled: !0,
|
|
65
|
-
sx: { color: "categories.income", fontSize: n, ...
|
|
65
|
+
sx: { color: "categories.income", fontSize: n, ...q }
|
|
66
66
|
}
|
|
67
|
-
) }),
|
|
68
|
-
({ day: t, outsideCurrentMonth: n, ...
|
|
69
|
-
const { recurring:
|
|
70
|
-
() =>
|
|
71
|
-
[r,
|
|
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
|
+
({ day: t, outsideCurrentMonth: n, ...i }) => {
|
|
69
|
+
const { recurring: a } = S(), { selectedAccountGuids: r } = X(), { recurrences: l, setSelectedDay: p } = v(), s = h.useMemo(
|
|
70
|
+
() => l.filter((d) => r.includes(d.accountGuid)),
|
|
71
|
+
[r, l]
|
|
72
72
|
).filter(
|
|
73
|
-
(
|
|
74
|
-
),
|
|
75
|
-
(
|
|
76
|
-
),
|
|
77
|
-
(
|
|
78
|
-
),
|
|
79
|
-
(
|
|
80
|
-
),
|
|
73
|
+
(d) => nt(d.occurredOnDate || d.expectedDate, t)
|
|
74
|
+
), m = s.some(
|
|
75
|
+
(d) => d.type !== M.Income && d.status === T.Upcoming
|
|
76
|
+
), f = s.some(
|
|
77
|
+
(d) => d.type !== M.Income && d.status === T.Missed
|
|
78
|
+
), x = s.some(
|
|
79
|
+
(d) => d.type !== M.Income && d.status === T.Paid
|
|
80
|
+
), C = s.some((d) => d.type === M.Income), y = (m ? 1 : 0) + (f ? 1 : 0) + (x ? 1 : 0) + (C ? 1 : 0);
|
|
81
81
|
return /* @__PURE__ */ e(
|
|
82
|
-
|
|
82
|
+
it,
|
|
83
83
|
{
|
|
84
|
-
badgeContent:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
84
|
+
badgeContent: s.length > 0 && /* @__PURE__ */ o(Y, { children: [
|
|
85
|
+
f && /* @__PURE__ */ e(Ce, { isOffset: !0 }),
|
|
86
|
+
x && /* @__PURE__ */ e(be, { isOffset: !0 }),
|
|
87
|
+
m && /* @__PURE__ */ e(xe, { isOffset: !0 }),
|
|
88
|
+
C && /* @__PURE__ */ e(ye, { isOffset: !0 })
|
|
89
89
|
] }),
|
|
90
90
|
overlap: "circular",
|
|
91
91
|
sx: {
|
|
@@ -99,12 +99,12 @@ const X = {
|
|
|
99
99
|
rt,
|
|
100
100
|
{
|
|
101
101
|
"aria-label": `
|
|
102
|
-
${
|
|
103
|
-
${
|
|
104
|
-
${
|
|
105
|
-
${
|
|
102
|
+
${x && a.paid},
|
|
103
|
+
${f && a.missed},
|
|
104
|
+
${m && a.upcoming},
|
|
105
|
+
${C && a.income}`,
|
|
106
106
|
day: t,
|
|
107
|
-
onClick: () =>
|
|
107
|
+
onClick: () => p(t),
|
|
108
108
|
outsideCurrentMonth: n,
|
|
109
109
|
sx: {
|
|
110
110
|
"&.MuiPickersDay-root": {
|
|
@@ -113,19 +113,19 @@ const X = {
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
},
|
|
116
|
-
...
|
|
116
|
+
...i
|
|
117
117
|
}
|
|
118
118
|
)
|
|
119
119
|
}
|
|
120
120
|
);
|
|
121
121
|
}
|
|
122
|
-
),
|
|
122
|
+
), j = ({ icon: t, label: n }) => /* @__PURE__ */ o(c, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
|
|
123
123
|
/* @__PURE__ */ e(t, {}),
|
|
124
|
-
/* @__PURE__ */ e(
|
|
125
|
-
] }),
|
|
126
|
-
const { recurring: t } =
|
|
127
|
-
return /* @__PURE__ */
|
|
128
|
-
|
|
124
|
+
/* @__PURE__ */ e(g, { variant: "XSmall", children: n })
|
|
125
|
+
] }), xt = D(() => {
|
|
126
|
+
const { recurring: t } = S();
|
|
127
|
+
return /* @__PURE__ */ o(
|
|
128
|
+
c,
|
|
129
129
|
{
|
|
130
130
|
alignItems: "center",
|
|
131
131
|
"aria-hidden": !0,
|
|
@@ -134,29 +134,29 @@ const X = {
|
|
|
134
134
|
justifyContent: "center",
|
|
135
135
|
mt: 12,
|
|
136
136
|
children: [
|
|
137
|
-
/* @__PURE__ */ e(
|
|
138
|
-
/* @__PURE__ */ e(
|
|
139
|
-
/* @__PURE__ */ e(
|
|
140
|
-
/* @__PURE__ */ e(
|
|
137
|
+
/* @__PURE__ */ e(j, { icon: xe, label: t.expense }),
|
|
138
|
+
/* @__PURE__ */ e(j, { icon: ye, label: t.income }),
|
|
139
|
+
/* @__PURE__ */ e(j, { icon: Ce, label: t.missed }),
|
|
140
|
+
/* @__PURE__ */ e(j, { icon: be, label: t.paid })
|
|
141
141
|
]
|
|
142
142
|
}
|
|
143
143
|
);
|
|
144
|
-
}),
|
|
145
|
-
const t =
|
|
146
|
-
|
|
147
|
-
),
|
|
148
|
-
|
|
149
|
-
start:
|
|
150
|
-
end:
|
|
151
|
-
}), n(
|
|
152
|
-
},
|
|
144
|
+
}), we = 58, ke = D(() => {
|
|
145
|
+
const t = pe(), { onEvent: n } = Z(), { selectedDay: i, setDateRange: a } = v(), [r, l] = h.useState(
|
|
146
|
+
Se(/* @__PURE__ */ new Date()) * H + we
|
|
147
|
+
), p = (s) => {
|
|
148
|
+
l(Se(s) * H + we), a({
|
|
149
|
+
start: W(s),
|
|
150
|
+
end: B(s)
|
|
151
|
+
}), n(w.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
|
|
152
|
+
}, u = /* @__PURE__ */ e(
|
|
153
153
|
et,
|
|
154
154
|
{
|
|
155
|
-
minDate:
|
|
156
|
-
onMonthChange:
|
|
155
|
+
minDate: W(/* @__PURE__ */ new Date()),
|
|
156
|
+
onMonthChange: p,
|
|
157
157
|
showDaysOutsideCurrentMonth: !0,
|
|
158
158
|
slots: {
|
|
159
|
-
day:
|
|
159
|
+
day: ft
|
|
160
160
|
},
|
|
161
161
|
sx: {
|
|
162
162
|
"& .MuiPickersArrowSwitcher-button": {
|
|
@@ -184,11 +184,11 @@ const X = {
|
|
|
184
184
|
minHeight: r
|
|
185
185
|
},
|
|
186
186
|
"&.MuiDateCalendar-root": {
|
|
187
|
-
minHeight: r +
|
|
187
|
+
minHeight: r + H
|
|
188
188
|
},
|
|
189
189
|
"& .MuiButtonBase-root, .MuiDayCalendar-weekDayLabel": {
|
|
190
|
-
height:
|
|
191
|
-
width:
|
|
190
|
+
height: H,
|
|
191
|
+
width: H,
|
|
192
192
|
margin: 0
|
|
193
193
|
},
|
|
194
194
|
"& .MuiDayCalendar-weekDayLabel": {
|
|
@@ -196,104 +196,104 @@ const X = {
|
|
|
196
196
|
fontSize: t.typography.body2.fontSize
|
|
197
197
|
}
|
|
198
198
|
},
|
|
199
|
-
value:
|
|
199
|
+
value: i,
|
|
200
200
|
views: ["day"]
|
|
201
201
|
}
|
|
202
202
|
);
|
|
203
|
-
return /* @__PURE__ */ e(
|
|
204
|
-
|
|
205
|
-
!
|
|
206
|
-
/* @__PURE__ */ e(
|
|
203
|
+
return /* @__PURE__ */ e(c, { justifyContent: "center", children: /* @__PURE__ */ o(tt, { dateAdapter: Qe, children: [
|
|
204
|
+
i && u,
|
|
205
|
+
!i && u,
|
|
206
|
+
/* @__PURE__ */ e(xt, {})
|
|
207
207
|
] }) });
|
|
208
208
|
}), yt = (t) => {
|
|
209
|
-
if (t.type ===
|
|
209
|
+
if (t.type === M.Income)
|
|
210
210
|
return /* @__PURE__ */ e(ye, {});
|
|
211
211
|
switch (t.status) {
|
|
212
|
-
case
|
|
213
|
-
return /* @__PURE__ */ e(Te, {});
|
|
214
|
-
case x.Paid:
|
|
212
|
+
case T.Missed:
|
|
215
213
|
return /* @__PURE__ */ e(Ce, {});
|
|
216
|
-
|
|
214
|
+
case T.Paid:
|
|
217
215
|
return /* @__PURE__ */ e(be, {});
|
|
216
|
+
default:
|
|
217
|
+
return /* @__PURE__ */ e(xe, {});
|
|
218
218
|
}
|
|
219
|
-
},
|
|
219
|
+
}, Ct = (t, n) => {
|
|
220
220
|
switch (t.status) {
|
|
221
|
-
case
|
|
221
|
+
case T.Paid:
|
|
222
222
|
return t.expectedDate ? O(
|
|
223
223
|
n.paid_on,
|
|
224
|
-
|
|
224
|
+
A(
|
|
225
225
|
t.occurredOnDate || t.expectedDate,
|
|
226
|
-
|
|
226
|
+
E.MONTH_DAY
|
|
227
227
|
)
|
|
228
228
|
) : n.paid;
|
|
229
|
-
case
|
|
229
|
+
case T.Missed:
|
|
230
230
|
return O(
|
|
231
231
|
n.missed_on,
|
|
232
|
-
|
|
232
|
+
A(t.expectedDate, E.MONTH_DAY)
|
|
233
233
|
);
|
|
234
|
-
case
|
|
234
|
+
case T.Upcoming:
|
|
235
235
|
return O(
|
|
236
236
|
n.upcoming_on,
|
|
237
|
-
|
|
237
|
+
A(t.expectedDate, E.MONTH_DAY)
|
|
238
238
|
);
|
|
239
239
|
default:
|
|
240
240
|
return n.unknown;
|
|
241
241
|
}
|
|
242
|
-
},
|
|
242
|
+
}, ve = ({
|
|
243
243
|
recurrence: t,
|
|
244
244
|
isMini: n = !1,
|
|
245
|
-
onRecurrenceClick:
|
|
245
|
+
onRecurrenceClick: i = () => {
|
|
246
246
|
},
|
|
247
|
-
showOrdinal:
|
|
247
|
+
showOrdinal: a = !1
|
|
248
248
|
}) => {
|
|
249
|
-
const { recurring: r } =
|
|
250
|
-
() =>
|
|
251
|
-
[t,
|
|
252
|
-
),
|
|
249
|
+
const { recurring: r } = S(), { repeatingTransactions: l } = v(), [p, u] = h.useState(!1), s = h.useMemo(
|
|
250
|
+
() => l.find((R) => R.guid === t.repeatingTransactionGuid),
|
|
251
|
+
[t, l]
|
|
252
|
+
), m = t.type === M.Income, f = t.status === T.Paid, x = t.status === T.Missed, C = t.status === T.Upcoming;
|
|
253
253
|
let y = r.paid?.toLowerCase();
|
|
254
|
-
return
|
|
255
|
-
/* @__PURE__ */
|
|
256
|
-
/* @__PURE__ */
|
|
257
|
-
|
|
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(Ge, { disableGutters: !0, disablePadding: !0, children: [
|
|
256
|
+
/* @__PURE__ */ o(dt, { onClick: () => {
|
|
257
|
+
u(!0), i(t);
|
|
258
258
|
}, children: [
|
|
259
|
-
/* @__PURE__ */ e(
|
|
259
|
+
/* @__PURE__ */ e(lt, { children: /* @__PURE__ */ e(
|
|
260
260
|
me,
|
|
261
261
|
{
|
|
262
262
|
categoryGuid: t.categoryGuid,
|
|
263
263
|
merchantGuid: t.merchantGuid
|
|
264
264
|
}
|
|
265
265
|
) }),
|
|
266
|
-
/* @__PURE__ */ e(
|
|
267
|
-
|
|
266
|
+
/* @__PURE__ */ e(ut, { children: /* @__PURE__ */ o(
|
|
267
|
+
c,
|
|
268
268
|
{
|
|
269
269
|
direction: "row",
|
|
270
270
|
gap: 4,
|
|
271
271
|
sx: { justifyContent: "space-between", textOverflow: "ellipsis", textWrap: "nowrap" },
|
|
272
272
|
children: [
|
|
273
|
-
/* @__PURE__ */
|
|
274
|
-
/* @__PURE__ */ e(
|
|
275
|
-
/* @__PURE__ */ e(
|
|
273
|
+
/* @__PURE__ */ o(c, { direction: "column", width: "50%", children: [
|
|
274
|
+
/* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: t.name }),
|
|
275
|
+
/* @__PURE__ */ e(c, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */ o(c, { direction: "row", gap: 4, children: [
|
|
276
276
|
yt(t),
|
|
277
|
-
/* @__PURE__ */ e(
|
|
278
|
-
] }) : /* @__PURE__ */
|
|
277
|
+
/* @__PURE__ */ e(g, { variant: "caption", children: Ct(t, r) })
|
|
278
|
+
] }) : /* @__PURE__ */ o(Y, { children: [
|
|
279
279
|
t.institutionGuid && /* @__PURE__ */ e(
|
|
280
|
-
|
|
280
|
+
qe,
|
|
281
281
|
{
|
|
282
282
|
alt: t.institutionName,
|
|
283
283
|
institutionGuid: t.institutionGuid,
|
|
284
284
|
size: 12
|
|
285
285
|
}
|
|
286
286
|
),
|
|
287
|
-
/* @__PURE__ */ e(
|
|
287
|
+
/* @__PURE__ */ e(g, { sx: { maxWidth: 250 }, variant: "caption", children: t.institutionName })
|
|
288
288
|
] }) })
|
|
289
289
|
] }),
|
|
290
|
-
/* @__PURE__ */
|
|
291
|
-
/* @__PURE__ */
|
|
292
|
-
|
|
293
|
-
|
|
290
|
+
/* @__PURE__ */ o(c, { alignItems: "flex-end", width: "100%", children: [
|
|
291
|
+
/* @__PURE__ */ o(g, { bold: !0, color: m ? "success.main" : "text.primary", variant: "body1", children: [
|
|
292
|
+
m ? "+" : "",
|
|
293
|
+
L(t.amount, "0,0.00")
|
|
294
294
|
] }),
|
|
295
|
-
!n && /* @__PURE__ */
|
|
296
|
-
|
|
295
|
+
!n && /* @__PURE__ */ o(
|
|
296
|
+
c,
|
|
297
297
|
{
|
|
298
298
|
direction: "row",
|
|
299
299
|
sx: {
|
|
@@ -304,9 +304,9 @@ const X = {
|
|
|
304
304
|
width: "100%"
|
|
305
305
|
},
|
|
306
306
|
children: [
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
/* @__PURE__ */ e(
|
|
307
|
+
f && /* @__PURE__ */ e(Ae, { color: "success", filled: !0, size: 12 }),
|
|
308
|
+
x && /* @__PURE__ */ e(Le, { color: "error", filled: !0, size: 12 }),
|
|
309
|
+
/* @__PURE__ */ e(g, { bold: !0, color: "text.secondary", variant: "caption", children: y })
|
|
310
310
|
]
|
|
311
311
|
}
|
|
312
312
|
)
|
|
@@ -316,506 +316,239 @@ const X = {
|
|
|
316
316
|
) })
|
|
317
317
|
] }),
|
|
318
318
|
/* @__PURE__ */ e(
|
|
319
|
-
|
|
319
|
+
Ne,
|
|
320
320
|
{
|
|
321
321
|
ariaLabelClose: r.close_drawer_aria,
|
|
322
|
-
isOpen:
|
|
323
|
-
onClose: () =>
|
|
324
|
-
title: t.type ===
|
|
325
|
-
children:
|
|
322
|
+
isOpen: p,
|
|
323
|
+
onClose: () => u(!1),
|
|
324
|
+
title: t.type === M.Income ? r.income_details : r.expense_details,
|
|
325
|
+
children: s && /* @__PURE__ */ e(
|
|
326
326
|
mt,
|
|
327
327
|
{
|
|
328
|
-
onDeleted: () =>
|
|
329
|
-
recurringTransaction:
|
|
328
|
+
onDeleted: () => u(!1),
|
|
329
|
+
recurringTransaction: s
|
|
330
330
|
}
|
|
331
331
|
)
|
|
332
332
|
}
|
|
333
333
|
)
|
|
334
334
|
] });
|
|
335
|
-
},
|
|
335
|
+
}, z = D(
|
|
336
336
|
({
|
|
337
337
|
recurrences: t,
|
|
338
338
|
isMini: n = !1,
|
|
339
|
-
onResetClick:
|
|
340
|
-
onRecurrenceClick:
|
|
339
|
+
onResetClick: i,
|
|
340
|
+
onRecurrenceClick: a,
|
|
341
341
|
sx: r = {},
|
|
342
|
-
title:
|
|
342
|
+
title: l
|
|
343
343
|
}) => {
|
|
344
|
-
const { recurring:
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
date: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
|
|
349
|
-
id: "date-2025-10-01",
|
|
350
|
-
recurrences: [
|
|
351
|
-
{
|
|
352
|
-
accountGuid: "ACT-33b06fa7-74ad-4819-9d25-fd21ae2db370",
|
|
353
|
-
amount: 73,
|
|
354
|
-
categoryGuid: "CAT-5dab8347-e0b4-daf9-0a65-f2be80feb8ad",
|
|
355
|
-
expectedDate: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
|
|
356
|
-
frequency: 3,
|
|
357
|
-
institutionGuid: "INS-f1a3285d-e855-b68f-6aa7-8ae775c0e0e9",
|
|
358
|
-
institutionName: "Gringotts Mortgage *1568",
|
|
359
|
-
merchantGuid: "",
|
|
360
|
-
name: "Interest Charge",
|
|
361
|
-
recurrenceDay: 1,
|
|
362
|
-
repeatingTransactionGuid: "RPT-3a9931fd-cd93-4197-a515-697f180bf531",
|
|
363
|
-
secondRecurrenceDay: 15,
|
|
364
|
-
status: 2,
|
|
365
|
-
type: 0
|
|
366
|
-
}
|
|
367
|
-
]
|
|
368
|
-
},
|
|
369
|
-
{
|
|
370
|
-
date: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
|
|
371
|
-
id: "date-2025-10-02",
|
|
372
|
-
recurrences: [
|
|
373
|
-
{
|
|
374
|
-
accountGuid: "ACT-33b06fa7-74ad-4819-9d25-fd21ae2db370",
|
|
375
|
-
amount: 73,
|
|
376
|
-
categoryGuid: "CAT-5dab8347-e0b4-daf9-0a65-f2be80feb8ad",
|
|
377
|
-
expectedDate: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
|
|
378
|
-
frequency: 3,
|
|
379
|
-
institutionGuid: "INS-f1a3285d-e855-b68f-6aa7-8ae775c0e0e9",
|
|
380
|
-
institutionName: "Gringotts Mortgage *1568",
|
|
381
|
-
merchantGuid: "",
|
|
382
|
-
name: "Interest Charge",
|
|
383
|
-
recurrenceDay: 1,
|
|
384
|
-
repeatingTransactionGuid: "RPT-3a9931fd-cd93-4197-a515-697f180bf531",
|
|
385
|
-
secondRecurrenceDay: 15,
|
|
386
|
-
status: 2,
|
|
387
|
-
type: 0
|
|
388
|
-
}
|
|
389
|
-
]
|
|
390
|
-
},
|
|
391
|
-
{
|
|
392
|
-
date: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
|
|
393
|
-
id: "date-2025-10-03",
|
|
394
|
-
recurrences: [
|
|
395
|
-
{
|
|
396
|
-
accountGuid: "ACT-33b06fa7-74ad-4819-9d25-fd21ae2db370",
|
|
397
|
-
amount: 73,
|
|
398
|
-
categoryGuid: "CAT-5dab8347-e0b4-daf9-0a65-f2be80feb8ad",
|
|
399
|
-
expectedDate: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
|
|
400
|
-
frequency: 3,
|
|
401
|
-
institutionGuid: "INS-f1a3285d-e855-b68f-6aa7-8ae775c0e0e9",
|
|
402
|
-
institutionName: "Gringotts Mortgage *1568",
|
|
403
|
-
merchantGuid: "",
|
|
404
|
-
name: "Interest Charge",
|
|
405
|
-
recurrenceDay: 1,
|
|
406
|
-
repeatingTransactionGuid: "RPT-3a9931fd-cd93-4197-a515-697f180bf531",
|
|
407
|
-
secondRecurrenceDay: 15,
|
|
408
|
-
status: 2,
|
|
409
|
-
type: 0
|
|
410
|
-
}
|
|
411
|
-
]
|
|
412
|
-
},
|
|
413
|
-
{
|
|
414
|
-
date: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
|
|
415
|
-
id: "date-2025-10-04",
|
|
416
|
-
recurrences: [
|
|
417
|
-
{
|
|
418
|
-
accountGuid: "ACT-33b06fa7-74ad-4819-9d25-fd21ae2db370",
|
|
419
|
-
amount: 73,
|
|
420
|
-
categoryGuid: "CAT-5dab8347-e0b4-daf9-0a65-f2be80feb8ad",
|
|
421
|
-
expectedDate: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
|
|
422
|
-
frequency: 3,
|
|
423
|
-
institutionGuid: "INS-f1a3285d-e855-b68f-6aa7-8ae775c0e0e9",
|
|
424
|
-
institutionName: "Gringotts Mortgage *1568",
|
|
425
|
-
merchantGuid: "",
|
|
426
|
-
name: "Interest Charge",
|
|
427
|
-
recurrenceDay: 1,
|
|
428
|
-
repeatingTransactionGuid: "RPT-3a9931fd-cd93-4197-a515-697f180bf531",
|
|
429
|
-
secondRecurrenceDay: 15,
|
|
430
|
-
status: 2,
|
|
431
|
-
type: 0
|
|
432
|
-
}
|
|
433
|
-
]
|
|
434
|
-
},
|
|
435
|
-
{
|
|
436
|
-
date: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
|
|
437
|
-
id: "date-2025-10-05",
|
|
438
|
-
recurrences: [
|
|
439
|
-
{
|
|
440
|
-
accountGuid: "ACT-33b06fa7-74ad-4819-9d25-fd21ae2db370",
|
|
441
|
-
amount: 73,
|
|
442
|
-
categoryGuid: "CAT-5dab8347-e0b4-daf9-0a65-f2be80feb8ad",
|
|
443
|
-
expectedDate: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
|
|
444
|
-
frequency: 3,
|
|
445
|
-
institutionGuid: "INS-f1a3285d-e855-b68f-6aa7-8ae775c0e0e9",
|
|
446
|
-
institutionName: "Gringotts Mortgage *1568",
|
|
447
|
-
merchantGuid: "",
|
|
448
|
-
name: "Interest Charge",
|
|
449
|
-
recurrenceDay: 1,
|
|
450
|
-
repeatingTransactionGuid: "RPT-3a9931fd-cd93-4197-a515-697f180bf531",
|
|
451
|
-
secondRecurrenceDay: 15,
|
|
452
|
-
status: 2,
|
|
453
|
-
type: 0
|
|
454
|
-
}
|
|
455
|
-
]
|
|
456
|
-
},
|
|
457
|
-
{
|
|
458
|
-
date: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
|
|
459
|
-
id: "date-2025-10-06",
|
|
460
|
-
recurrences: [
|
|
461
|
-
{
|
|
462
|
-
accountGuid: "ACT-33b06fa7-74ad-4819-9d25-fd21ae2db370",
|
|
463
|
-
amount: 73,
|
|
464
|
-
categoryGuid: "CAT-5dab8347-e0b4-daf9-0a65-f2be80feb8ad",
|
|
465
|
-
expectedDate: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
|
|
466
|
-
frequency: 3,
|
|
467
|
-
institutionGuid: "INS-f1a3285d-e855-b68f-6aa7-8ae775c0e0e9",
|
|
468
|
-
institutionName: "Gringotts Mortgage *1568",
|
|
469
|
-
merchantGuid: "",
|
|
470
|
-
name: "Interest Charge",
|
|
471
|
-
recurrenceDay: 1,
|
|
472
|
-
repeatingTransactionGuid: "RPT-3a9931fd-cd93-4197-a515-697f180bf531",
|
|
473
|
-
secondRecurrenceDay: 15,
|
|
474
|
-
status: 2,
|
|
475
|
-
type: 0
|
|
476
|
-
}
|
|
477
|
-
]
|
|
478
|
-
},
|
|
479
|
-
{
|
|
480
|
-
date: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
|
|
481
|
-
id: "date-2025-10-07",
|
|
482
|
-
recurrences: [
|
|
483
|
-
{
|
|
484
|
-
accountGuid: "ACT-33b06fa7-74ad-4819-9d25-fd21ae2db370",
|
|
485
|
-
amount: 73,
|
|
486
|
-
categoryGuid: "CAT-5dab8347-e0b4-daf9-0a65-f2be80feb8ad",
|
|
487
|
-
expectedDate: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
|
|
488
|
-
frequency: 3,
|
|
489
|
-
institutionGuid: "INS-f1a3285d-e855-b68f-6aa7-8ae775c0e0e9",
|
|
490
|
-
institutionName: "Gringotts Mortgage *1568",
|
|
491
|
-
merchantGuid: "",
|
|
492
|
-
name: "Interest Charge",
|
|
493
|
-
recurrenceDay: 1,
|
|
494
|
-
repeatingTransactionGuid: "RPT-3a9931fd-cd93-4197-a515-697f180bf531",
|
|
495
|
-
secondRecurrenceDay: 15,
|
|
496
|
-
status: 2,
|
|
497
|
-
type: 0
|
|
498
|
-
}
|
|
499
|
-
]
|
|
500
|
-
},
|
|
501
|
-
{
|
|
502
|
-
date: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
|
|
503
|
-
id: "date-2025-10-08",
|
|
504
|
-
recurrences: [
|
|
505
|
-
{
|
|
506
|
-
accountGuid: "ACT-33b06fa7-74ad-4819-9d25-fd21ae2db370",
|
|
507
|
-
amount: 73,
|
|
508
|
-
categoryGuid: "CAT-5dab8347-e0b4-daf9-0a65-f2be80feb8ad",
|
|
509
|
-
expectedDate: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
|
|
510
|
-
frequency: 3,
|
|
511
|
-
institutionGuid: "INS-f1a3285d-e855-b68f-6aa7-8ae775c0e0e9",
|
|
512
|
-
institutionName: "Gringotts Mortgage *1568",
|
|
513
|
-
merchantGuid: "",
|
|
514
|
-
name: "Interest Charge",
|
|
515
|
-
recurrenceDay: 1,
|
|
516
|
-
repeatingTransactionGuid: "RPT-3a9931fd-cd93-4197-a515-697f180bf531",
|
|
517
|
-
secondRecurrenceDay: 15,
|
|
518
|
-
status: 2,
|
|
519
|
-
type: 0
|
|
520
|
-
}
|
|
521
|
-
]
|
|
522
|
-
},
|
|
523
|
-
{
|
|
524
|
-
date: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
|
|
525
|
-
id: "date-2025-10-09",
|
|
526
|
-
recurrences: [
|
|
527
|
-
{
|
|
528
|
-
accountGuid: "ACT-33b06fa7-74ad-4819-9d25-fd21ae2db370",
|
|
529
|
-
amount: 73,
|
|
530
|
-
categoryGuid: "CAT-5dab8347-e0b4-daf9-0a65-f2be80feb8ad",
|
|
531
|
-
expectedDate: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
|
|
532
|
-
frequency: 3,
|
|
533
|
-
institutionGuid: "INS-f1a3285d-e855-b68f-6aa7-8ae775c0e0e9",
|
|
534
|
-
institutionName: "Gringotts Mortgage *1568",
|
|
535
|
-
merchantGuid: "",
|
|
536
|
-
name: "Interest Charge",
|
|
537
|
-
recurrenceDay: 1,
|
|
538
|
-
repeatingTransactionGuid: "RPT-3a9931fd-cd93-4197-a515-697f180bf531",
|
|
539
|
-
secondRecurrenceDay: 15,
|
|
540
|
-
status: 2,
|
|
541
|
-
type: 0
|
|
542
|
-
}
|
|
543
|
-
]
|
|
544
|
-
},
|
|
545
|
-
{
|
|
546
|
-
date: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
|
|
547
|
-
id: "date-2025-10-10",
|
|
548
|
-
recurrences: [
|
|
549
|
-
{
|
|
550
|
-
accountGuid: "ACT-33b06fa7-74ad-4819-9d25-fd21ae2db370",
|
|
551
|
-
amount: 73,
|
|
552
|
-
categoryGuid: "CAT-5dab8347-e0b4-daf9-0a65-f2be80feb8ad",
|
|
553
|
-
expectedDate: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
|
|
554
|
-
frequency: 3,
|
|
555
|
-
institutionGuid: "INS-f1a3285d-e855-b68f-6aa7-8ae775c0e0e9",
|
|
556
|
-
institutionName: "Gringotts Mortgage *1568",
|
|
557
|
-
merchantGuid: "",
|
|
558
|
-
name: "Interest Charge",
|
|
559
|
-
recurrenceDay: 1,
|
|
560
|
-
repeatingTransactionGuid: "RPT-3a9931fd-cd93-4197-a515-697f180bf531",
|
|
561
|
-
secondRecurrenceDay: 15,
|
|
562
|
-
status: 2,
|
|
563
|
-
type: 0
|
|
564
|
-
}
|
|
565
|
-
]
|
|
566
|
-
},
|
|
567
|
-
{
|
|
568
|
-
date: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
|
|
569
|
-
id: "date-2025-10-11",
|
|
570
|
-
recurrences: [
|
|
571
|
-
{
|
|
572
|
-
accountGuid: "ACT-33b06fa7-74ad-4819-9d25-fd21ae2db370",
|
|
573
|
-
amount: 73,
|
|
574
|
-
categoryGuid: "CAT-5dab8347-e0b4-daf9-0a65-f2be80feb8ad",
|
|
575
|
-
expectedDate: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
|
|
576
|
-
frequency: 3,
|
|
577
|
-
institutionGuid: "INS-f1a3285d-e855-b68f-6aa7-8ae775c0e0e9",
|
|
578
|
-
institutionName: "Gringotts Mortgage *1568",
|
|
579
|
-
merchantGuid: "",
|
|
580
|
-
name: "Interest Charge",
|
|
581
|
-
recurrenceDay: 1,
|
|
582
|
-
repeatingTransactionGuid: "RPT-3a9931fd-cd93-4197-a515-697f180bf531",
|
|
583
|
-
secondRecurrenceDay: 15,
|
|
584
|
-
status: 2,
|
|
585
|
-
type: 0
|
|
586
|
-
}
|
|
587
|
-
]
|
|
588
|
-
},
|
|
589
|
-
{
|
|
590
|
-
date: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
|
|
591
|
-
id: "date-2025-10-12",
|
|
592
|
-
recurrences: [
|
|
593
|
-
{
|
|
594
|
-
accountGuid: "ACT-33b06fa7-74ad-4819-9d25-fd21ae2db370",
|
|
595
|
-
amount: 73,
|
|
596
|
-
categoryGuid: "CAT-5dab8347-e0b4-daf9-0a65-f2be80feb8ad",
|
|
597
|
-
expectedDate: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
|
|
598
|
-
frequency: 3,
|
|
599
|
-
institutionGuid: "INS-f1a3285d-e855-b68f-6aa7-8ae775c0e0e9",
|
|
600
|
-
institutionName: "Gringotts Mortgage *1568",
|
|
601
|
-
merchantGuid: "",
|
|
602
|
-
name: "Interest Charge",
|
|
603
|
-
recurrenceDay: 1,
|
|
604
|
-
repeatingTransactionGuid: "RPT-3a9931fd-cd93-4197-a515-697f180bf531",
|
|
605
|
-
secondRecurrenceDay: 15,
|
|
606
|
-
status: 2,
|
|
607
|
-
type: 0
|
|
608
|
-
}
|
|
609
|
-
]
|
|
610
|
-
}
|
|
611
|
-
];
|
|
612
|
-
return /* @__PURE__ */ i(s, { sx: { gap: 8, mt: 4, ...r }, children: [
|
|
613
|
-
d && /* @__PURE__ */ i(
|
|
614
|
-
s,
|
|
344
|
+
const { recurring: p } = S(), u = h.useMemo(() => ot(t), [t]);
|
|
345
|
+
return /* @__PURE__ */ o(c, { sx: { gap: 8, mt: 4, ...r }, children: [
|
|
346
|
+
l && /* @__PURE__ */ o(
|
|
347
|
+
c,
|
|
615
348
|
{
|
|
616
349
|
sx: { alignItems: "top", direction: "row", justifyContent: "space-between", px: 24 },
|
|
617
350
|
children: [
|
|
618
|
-
/* @__PURE__ */ e(
|
|
619
|
-
|
|
351
|
+
/* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: l }),
|
|
352
|
+
i && /* @__PURE__ */ e(st, { onClick: i, sx: { mt: -12 }, variant: "text", children: p.reset })
|
|
620
353
|
]
|
|
621
354
|
}
|
|
622
355
|
),
|
|
623
|
-
|
|
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: [
|
|
624
357
|
/* @__PURE__ */ e(
|
|
625
|
-
|
|
358
|
+
ve,
|
|
626
359
|
{
|
|
627
360
|
isMini: n,
|
|
628
|
-
onRecurrenceClick:
|
|
629
|
-
recurrence:
|
|
361
|
+
onRecurrenceClick: a,
|
|
362
|
+
recurrence: s
|
|
630
363
|
}
|
|
631
364
|
),
|
|
632
|
-
/* @__PURE__ */ e(
|
|
633
|
-
] }, `recurrence-${
|
|
634
|
-
/* @__PURE__ */ e(
|
|
635
|
-
|
|
365
|
+
/* @__PURE__ */ e(ce, { sx: { mx: 24 } })
|
|
366
|
+
] }, `recurrence-${m}`)) : u.map((s, m) => /* @__PURE__ */ o(h.Fragment, { children: [
|
|
367
|
+
/* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ e(
|
|
368
|
+
_e,
|
|
636
369
|
{
|
|
637
|
-
subheader: /* @__PURE__ */ e(
|
|
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) }) }),
|
|
638
371
|
sx: { width: "100%" },
|
|
639
|
-
children:
|
|
640
|
-
|
|
372
|
+
children: s.recurrences.map((f, x) => /* @__PURE__ */ e(h.Fragment, { children: /* @__PURE__ */ e(
|
|
373
|
+
ve,
|
|
641
374
|
{
|
|
642
375
|
isMini: n,
|
|
643
|
-
onRecurrenceClick:
|
|
644
|
-
recurrence:
|
|
376
|
+
onRecurrenceClick: a,
|
|
377
|
+
recurrence: f
|
|
645
378
|
}
|
|
646
|
-
) }, `day-recurrence-${
|
|
379
|
+
) }, `day-recurrence-${x}`))
|
|
647
380
|
}
|
|
648
|
-
) },
|
|
649
|
-
/* @__PURE__ */ e(
|
|
650
|
-
] }, `recurrence-${
|
|
381
|
+
) }, s.id),
|
|
382
|
+
/* @__PURE__ */ e(ce, { sx: { mx: 24 } })
|
|
383
|
+
] }, `recurrence-${m}`)) })
|
|
651
384
|
] });
|
|
652
385
|
}
|
|
653
|
-
),
|
|
654
|
-
({ expected: t, isExpense: n = !0, missed:
|
|
655
|
-
const
|
|
656
|
-
const
|
|
657
|
-
return
|
|
658
|
-
}, [
|
|
659
|
-
return /* @__PURE__ */
|
|
660
|
-
/* @__PURE__ */
|
|
661
|
-
/* @__PURE__ */ e(
|
|
662
|
-
/* @__PURE__ */ e(
|
|
386
|
+
), Me = D(
|
|
387
|
+
({ expected: t, isExpense: n = !0, missed: i, paid: a, title: r, total: l, upcoming: p }) => {
|
|
388
|
+
const u = pe(), { isSmallMobile: s } = fe(), { recurring: m } = S(), f = h.useMemo(() => {
|
|
389
|
+
const x = [{ color: u.palette.success.main, percentage: `${a / t}` }];
|
|
390
|
+
return i && x.push({ color: u.palette.error.main, percentage: `${i / t}` }), x;
|
|
391
|
+
}, [a, t, i]);
|
|
392
|
+
return /* @__PURE__ */ o(c, { children: [
|
|
393
|
+
/* @__PURE__ */ o(c, { sx: { flexDirection: "row", justifyContent: "space-between", pb: 12 }, children: [
|
|
394
|
+
/* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: `${r} (${l})` }),
|
|
395
|
+
/* @__PURE__ */ e(g, { bold: !0, color: n ? "text.primary" : "success.main", variant: "body1", children: `${n ? "-" : "+"}${L(t, "0,0.00")}` })
|
|
663
396
|
] }),
|
|
664
|
-
/* @__PURE__ */ e(Oe, { data:
|
|
665
|
-
/* @__PURE__ */
|
|
666
|
-
/* @__PURE__ */ e(
|
|
667
|
-
!
|
|
668
|
-
/* @__PURE__ */ e(
|
|
669
|
-
|
|
670
|
-
/* @__PURE__ */ e(
|
|
671
|
-
!
|
|
672
|
-
/* @__PURE__ */ e(
|
|
397
|
+
/* @__PURE__ */ e(Oe, { data: f, height: 12 }),
|
|
398
|
+
/* @__PURE__ */ o(c, { sx: { alignItems: "center", flexDirection: "row", gap: 2, my: 8 }, children: [
|
|
399
|
+
/* @__PURE__ */ e(k, { sx: { bgcolor: "success.main", height: 8, mr: 8, width: 8 } }),
|
|
400
|
+
!s && /* @__PURE__ */ e(g, { bold: !0, variant: "body2", children: L(a, "0,0.00") }),
|
|
401
|
+
/* @__PURE__ */ e(g, { variant: "caption", children: m.paid?.toLowerCase() }),
|
|
402
|
+
i !== void 0 && /* @__PURE__ */ o(Y, { children: [
|
|
403
|
+
/* @__PURE__ */ e(k, { sx: { bgcolor: "error.main", height: 8, ml: 16, mr: 8, width: 8 } }),
|
|
404
|
+
!s && /* @__PURE__ */ e(g, { bold: !0, variant: "body2", children: L(i, "0,0.00") }),
|
|
405
|
+
/* @__PURE__ */ e(g, { variant: "caption", children: m.missed?.toLowerCase() })
|
|
673
406
|
] }),
|
|
674
|
-
/* @__PURE__ */ e(
|
|
675
|
-
!
|
|
676
|
-
/* @__PURE__ */ e(
|
|
407
|
+
/* @__PURE__ */ e(k, { sx: { bgcolor: "divider", height: 8, ml: 16, mr: 8, width: 8 } }),
|
|
408
|
+
!s && /* @__PURE__ */ e(g, { bold: !0, variant: "body2", children: L(p, "0,0.00") }),
|
|
409
|
+
/* @__PURE__ */ e(g, { variant: "caption", children: m.upcoming })
|
|
677
410
|
] })
|
|
678
411
|
] });
|
|
679
412
|
}
|
|
680
|
-
),
|
|
681
|
-
const { recurring: t } =
|
|
682
|
-
currentMonthExpenses:
|
|
683
|
-
currentMonthIncome:
|
|
684
|
-
dateRange:
|
|
685
|
-
expenseTotal:
|
|
686
|
-
incomeTotal:
|
|
687
|
-
missedExpenseTotal:
|
|
688
|
-
pastRecurrences:
|
|
689
|
-
paidExpenseTotal:
|
|
413
|
+
), bt = D(() => {
|
|
414
|
+
const { recurring: t } = S(), { availableWidth: n } = Ee(), { isDesktop: i, isSmallMobile: a } = fe(n), { onEvent: r } = Z(), {
|
|
415
|
+
currentMonthExpenses: l,
|
|
416
|
+
currentMonthIncome: p,
|
|
417
|
+
dateRange: u,
|
|
418
|
+
expenseTotal: s,
|
|
419
|
+
incomeTotal: m,
|
|
420
|
+
missedExpenseTotal: f,
|
|
421
|
+
pastRecurrences: x,
|
|
422
|
+
paidExpenseTotal: C,
|
|
690
423
|
paidIncomeTotal: y,
|
|
691
|
-
selectedDay:
|
|
692
|
-
selectedDayRecurrences:
|
|
693
|
-
setDateRange:
|
|
424
|
+
selectedDay: d,
|
|
425
|
+
selectedDayRecurrences: R,
|
|
426
|
+
setDateRange: G,
|
|
694
427
|
upcomingExpenseTotal: Q,
|
|
695
428
|
upcomingIncomeTotal: ee,
|
|
696
|
-
upcomingRecurrences:
|
|
697
|
-
} =
|
|
429
|
+
upcomingRecurrences: U
|
|
430
|
+
} = v(), [$, te] = h.useState(0), I = Fe(u.start, /* @__PURE__ */ new Date()), ne = (b, re) => {
|
|
698
431
|
te(re);
|
|
699
|
-
},
|
|
700
|
-
r(
|
|
701
|
-
transaction_guid:
|
|
432
|
+
}, _ = (b) => {
|
|
433
|
+
r(w.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
|
|
434
|
+
transaction_guid: b.transaction?.guid
|
|
702
435
|
});
|
|
703
|
-
},
|
|
704
|
-
r(
|
|
705
|
-
transaction_guid:
|
|
436
|
+
}, F = (b) => {
|
|
437
|
+
r(w.RECURRING_TRANSACTIONS_CLICK_PAID, {
|
|
438
|
+
transaction_guid: b.transaction?.guid
|
|
706
439
|
});
|
|
707
|
-
},
|
|
708
|
-
const
|
|
709
|
-
|
|
710
|
-
start:
|
|
711
|
-
end:
|
|
440
|
+
}, ie = () => {
|
|
441
|
+
const b = Be(u.start, 1);
|
|
442
|
+
G({
|
|
443
|
+
start: W(b),
|
|
444
|
+
end: B(b)
|
|
712
445
|
});
|
|
713
|
-
},
|
|
714
|
-
const
|
|
715
|
-
|
|
716
|
-
start:
|
|
717
|
-
end:
|
|
446
|
+
}, P = () => {
|
|
447
|
+
const b = Ue(u.start, 1);
|
|
448
|
+
G({
|
|
449
|
+
start: W(b),
|
|
450
|
+
end: B(b)
|
|
718
451
|
});
|
|
719
452
|
};
|
|
720
|
-
return /* @__PURE__ */
|
|
721
|
-
|
|
453
|
+
return /* @__PURE__ */ o(
|
|
454
|
+
ae,
|
|
722
455
|
{
|
|
723
456
|
container: !0,
|
|
724
457
|
sx: {
|
|
725
458
|
pt: 16,
|
|
726
|
-
px:
|
|
459
|
+
px: i ? 48 : 24
|
|
727
460
|
},
|
|
728
461
|
children: [
|
|
729
|
-
/* @__PURE__ */ e(
|
|
730
|
-
/* @__PURE__ */
|
|
462
|
+
/* @__PURE__ */ e(ae, { md: !0, sm: 12, width: "100%", children: /* @__PURE__ */ o(c, { sx: { gap: 16 }, children: [
|
|
463
|
+
/* @__PURE__ */ o(c, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
731
464
|
/* @__PURE__ */ e(Je, { children: O(
|
|
732
465
|
t.header_title,
|
|
733
|
-
|
|
466
|
+
A(u.start, E.MONTH_LONG)
|
|
734
467
|
) }),
|
|
735
|
-
!
|
|
468
|
+
!i && /* @__PURE__ */ o(c, { direction: "row", gap: 4, children: [
|
|
736
469
|
/* @__PURE__ */ e(
|
|
737
|
-
|
|
470
|
+
Te,
|
|
738
471
|
{
|
|
739
472
|
color: "primary",
|
|
740
473
|
disabled: I,
|
|
741
|
-
onClick:
|
|
742
|
-
children: /* @__PURE__ */ e(
|
|
474
|
+
onClick: P,
|
|
475
|
+
children: /* @__PURE__ */ e(Ve, {})
|
|
743
476
|
}
|
|
744
477
|
),
|
|
745
|
-
/* @__PURE__ */ e(
|
|
478
|
+
/* @__PURE__ */ e(Te, { color: "primary", onClick: ie, children: /* @__PURE__ */ e(Xe, {}) })
|
|
746
479
|
] })
|
|
747
480
|
] }),
|
|
748
481
|
/* @__PURE__ */ e(
|
|
749
|
-
|
|
482
|
+
Me,
|
|
750
483
|
{
|
|
751
|
-
expected:
|
|
752
|
-
missed:
|
|
753
|
-
paid:
|
|
484
|
+
expected: s,
|
|
485
|
+
missed: f,
|
|
486
|
+
paid: C,
|
|
754
487
|
title: t.expenses,
|
|
755
|
-
total:
|
|
488
|
+
total: l.length,
|
|
756
489
|
upcoming: Q
|
|
757
490
|
}
|
|
758
491
|
),
|
|
759
492
|
/* @__PURE__ */ e(
|
|
760
|
-
|
|
493
|
+
Me,
|
|
761
494
|
{
|
|
762
|
-
expected:
|
|
495
|
+
expected: m,
|
|
763
496
|
isExpense: !1,
|
|
764
497
|
paid: y,
|
|
765
498
|
title: t.deposits,
|
|
766
|
-
total:
|
|
499
|
+
total: p.length,
|
|
767
500
|
upcoming: ee
|
|
768
501
|
}
|
|
769
502
|
),
|
|
770
|
-
|
|
771
|
-
|
|
503
|
+
i && /* @__PURE__ */ e(
|
|
504
|
+
z,
|
|
772
505
|
{
|
|
773
|
-
onRecurrenceClick:
|
|
774
|
-
recurrences:
|
|
506
|
+
onRecurrenceClick: _,
|
|
507
|
+
recurrences: U,
|
|
775
508
|
title: t.upcoming_activity
|
|
776
509
|
}
|
|
777
510
|
),
|
|
778
|
-
!
|
|
779
|
-
/* @__PURE__ */
|
|
511
|
+
!i && /* @__PURE__ */ o(c, { children: [
|
|
512
|
+
/* @__PURE__ */ o(je, { onChange: ne, value: $, variant: "fullWidth", children: [
|
|
780
513
|
/* @__PURE__ */ e(
|
|
781
|
-
|
|
514
|
+
De,
|
|
782
515
|
{
|
|
783
|
-
label: /* @__PURE__ */ e(
|
|
516
|
+
label: /* @__PURE__ */ e(g, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: a ? t.upcoming : t.upcoming_activity })
|
|
784
517
|
}
|
|
785
518
|
),
|
|
786
519
|
/* @__PURE__ */ e(
|
|
787
|
-
|
|
520
|
+
De,
|
|
788
521
|
{
|
|
789
|
-
label: /* @__PURE__ */ e(
|
|
522
|
+
label: /* @__PURE__ */ e(g, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: a ? t.past : t.past_transactions })
|
|
790
523
|
}
|
|
791
524
|
)
|
|
792
525
|
] }),
|
|
793
|
-
|
|
794
|
-
|
|
526
|
+
$ === 0 && /* @__PURE__ */ e(
|
|
527
|
+
z,
|
|
795
528
|
{
|
|
796
|
-
onRecurrenceClick:
|
|
797
|
-
recurrences:
|
|
529
|
+
onRecurrenceClick: _,
|
|
530
|
+
recurrences: U
|
|
798
531
|
}
|
|
799
532
|
),
|
|
800
|
-
|
|
801
|
-
|
|
533
|
+
$ === 1 && /* @__PURE__ */ e(
|
|
534
|
+
z,
|
|
802
535
|
{
|
|
803
|
-
onRecurrenceClick:
|
|
804
|
-
recurrences:
|
|
536
|
+
onRecurrenceClick: F,
|
|
537
|
+
recurrences: x
|
|
805
538
|
}
|
|
806
539
|
)
|
|
807
540
|
] })
|
|
808
541
|
] }) }),
|
|
809
|
-
|
|
810
|
-
/* @__PURE__ */ e(
|
|
542
|
+
i && /* @__PURE__ */ e(ae, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ o(c, { gap: 24, children: [
|
|
543
|
+
/* @__PURE__ */ e(ke, {}),
|
|
811
544
|
/* @__PURE__ */ e(
|
|
812
|
-
|
|
545
|
+
z,
|
|
813
546
|
{
|
|
814
|
-
onRecurrenceClick:
|
|
815
|
-
recurrences:
|
|
816
|
-
title:
|
|
547
|
+
onRecurrenceClick: F,
|
|
548
|
+
recurrences: R || x,
|
|
549
|
+
title: d ? O(
|
|
817
550
|
t.day_transactions,
|
|
818
|
-
|
|
551
|
+
A(d, E.MONTH_DAY)
|
|
819
552
|
) : t.past_transactions
|
|
820
553
|
}
|
|
821
554
|
)
|
|
@@ -823,124 +556,124 @@ const X = {
|
|
|
823
556
|
]
|
|
824
557
|
}
|
|
825
558
|
);
|
|
826
|
-
}),
|
|
827
|
-
const { accounts:
|
|
559
|
+
}), _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 } = v(), { setFilter: x } = he(), { onEvent: C } = Z(), { isMobile: y } = fe(), [d, R] = h.useState(!1);
|
|
828
561
|
return h.useEffect(() => {
|
|
829
|
-
|
|
830
|
-
}, [
|
|
831
|
-
|
|
832
|
-
dateRange: { start:
|
|
833
|
-
accounts:
|
|
834
|
-
}),
|
|
835
|
-
}, [
|
|
836
|
-
|
|
562
|
+
u(i);
|
|
563
|
+
}, [i]), h.useEffect(() => {
|
|
564
|
+
l && (x({
|
|
565
|
+
dateRange: { start: ue(de(), 90), end: le() },
|
|
566
|
+
accounts: p
|
|
567
|
+
}), f({ start: W(/* @__PURE__ */ new Date()), end: B(/* @__PURE__ */ new Date()) }), m().finally());
|
|
568
|
+
}, [l]), r ? /* @__PURE__ */ o(
|
|
569
|
+
at,
|
|
837
570
|
{
|
|
838
|
-
accountOptions:
|
|
571
|
+
accountOptions: i,
|
|
839
572
|
actions: [
|
|
840
573
|
{
|
|
841
|
-
label:
|
|
574
|
+
label: a.action_title,
|
|
842
575
|
iconName: "credit_card_gear",
|
|
843
576
|
onClick: () => {
|
|
844
|
-
|
|
577
|
+
R(!0), C(w.RECURRING_TRANSACTIONS_CLICK_SETTINGS);
|
|
845
578
|
}
|
|
846
579
|
}
|
|
847
580
|
],
|
|
848
581
|
hasDivider: y,
|
|
849
|
-
onAccountsFilterClick: () =>
|
|
582
|
+
onAccountsFilterClick: () => C(w.RECURRING_TRANSACTIONS_CLICK_FILTER),
|
|
850
583
|
onBackClick: t,
|
|
851
584
|
sx: n,
|
|
852
|
-
title:
|
|
585
|
+
title: a.title,
|
|
853
586
|
children: [
|
|
854
|
-
|
|
855
|
-
/* @__PURE__ */ e(
|
|
856
|
-
/* @__PURE__ */ e(
|
|
857
|
-
/* @__PURE__ */ e(
|
|
587
|
+
l && s ? /* @__PURE__ */ e(bt, {}) : /* @__PURE__ */ o(c, { direction: "column", p: 48, spacing: 24, children: [
|
|
588
|
+
/* @__PURE__ */ e(oe, { height: 100, variant: "rounded", width: "100%" }),
|
|
589
|
+
/* @__PURE__ */ e(oe, { height: 100, variant: "rounded", width: "100%" }),
|
|
590
|
+
/* @__PURE__ */ e(oe, { height: 600, variant: "rounded", width: "100%" })
|
|
858
591
|
] }),
|
|
859
592
|
/* @__PURE__ */ e(
|
|
860
|
-
|
|
593
|
+
Ne,
|
|
861
594
|
{
|
|
862
|
-
ariaLabelClose:
|
|
863
|
-
isOpen:
|
|
864
|
-
onClose: () =>
|
|
595
|
+
ariaLabelClose: a.close_drawer_aria,
|
|
596
|
+
isOpen: d,
|
|
597
|
+
onClose: () => R(!1),
|
|
865
598
|
shouldShowHeaderBorders: !1,
|
|
866
|
-
title:
|
|
867
|
-
children: /* @__PURE__ */ e(
|
|
599
|
+
title: a.action_title,
|
|
600
|
+
children: /* @__PURE__ */ e(ze, {})
|
|
868
601
|
}
|
|
869
602
|
)
|
|
870
603
|
]
|
|
871
604
|
}
|
|
872
|
-
) : /* @__PURE__ */ e(
|
|
873
|
-
}),
|
|
874
|
-
const { recurring: t } =
|
|
875
|
-
return /* @__PURE__ */
|
|
876
|
-
/* @__PURE__ */ e(
|
|
877
|
-
!
|
|
605
|
+
) : /* @__PURE__ */ e(K, {});
|
|
606
|
+
}), Rt = D(() => {
|
|
607
|
+
const { recurring: t } = S(), { availableWidth: n } = Ee(), { selectedDay: i, selectedDayRecurrences: a, setSelectedDay: r, upcomingRecurrences: l } = v(), p = n < 750;
|
|
608
|
+
return /* @__PURE__ */ o(c, { flexDirection: p ? "column" : "row", width: "100%", children: [
|
|
609
|
+
/* @__PURE__ */ e(ke, {}),
|
|
610
|
+
!p && /* @__PURE__ */ e(ce, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
|
|
878
611
|
/* @__PURE__ */ e(
|
|
879
|
-
|
|
612
|
+
z,
|
|
880
613
|
{
|
|
881
614
|
isMini: !0,
|
|
882
|
-
onResetClick:
|
|
883
|
-
recurrences:
|
|
884
|
-
sx: { width:
|
|
885
|
-
title:
|
|
615
|
+
onResetClick: i ? () => r(i) : void 0,
|
|
616
|
+
recurrences: a || l.slice(0, 5),
|
|
617
|
+
sx: { width: p ? "100%" : "calc(100% - 336px)", mt: 12 },
|
|
618
|
+
title: i ? O(
|
|
886
619
|
t.day_transactions,
|
|
887
|
-
|
|
620
|
+
A(i, E.MONTH_DAY)
|
|
888
621
|
) : t.upcoming_activity
|
|
889
622
|
}
|
|
890
623
|
)
|
|
891
624
|
] });
|
|
892
|
-
}),
|
|
625
|
+
}), wn = D(
|
|
893
626
|
({ onPrimaryCtaClick: t, sx: n }) => {
|
|
894
|
-
const { accounts:
|
|
627
|
+
const { accounts: i } = ge(), { recurring: a } = S(), { setFilter: r } = he(), { isDataLoaded: l, loadRepeatingTransactions: p } = v(), { isCopyLoaded: u, isInitialized: s, setSelectedAccounts: m, selectedAccountGuids: f } = X();
|
|
895
628
|
return h.useEffect(() => {
|
|
896
|
-
|
|
897
|
-
}, [
|
|
898
|
-
|
|
899
|
-
dateRange: { start:
|
|
900
|
-
accounts:
|
|
901
|
-
}),
|
|
902
|
-
}, [
|
|
903
|
-
|
|
629
|
+
s && m(i);
|
|
630
|
+
}, [s]), h.useEffect(() => {
|
|
631
|
+
f.length > 0 && (r({
|
|
632
|
+
dateRange: { start: ue(de(), 90), end: le() },
|
|
633
|
+
accounts: f
|
|
634
|
+
}), p().finally());
|
|
635
|
+
}, [f]), !u || !s ? /* @__PURE__ */ e(K, {}) : /* @__PURE__ */ e(
|
|
636
|
+
pt,
|
|
904
637
|
{
|
|
905
638
|
className: "mx-exp-recurring-transactions-miniwidget",
|
|
906
639
|
onPrimaryCtaClick: t,
|
|
907
|
-
primaryCtaLabel:
|
|
908
|
-
subTitle:
|
|
640
|
+
primaryCtaLabel: a.primary_cta,
|
|
641
|
+
subTitle: a.sub_title,
|
|
909
642
|
sx: n,
|
|
910
|
-
title:
|
|
911
|
-
children:
|
|
643
|
+
title: a.mini_title,
|
|
644
|
+
children: l ? /* @__PURE__ */ e(Rt, {}) : /* @__PURE__ */ e(K, {})
|
|
912
645
|
}
|
|
913
646
|
);
|
|
914
647
|
}
|
|
915
|
-
),
|
|
648
|
+
), Tt = ({
|
|
916
649
|
upcomingRecurrences: t,
|
|
917
650
|
maxLogos: n = 3
|
|
918
|
-
}) => /* @__PURE__ */ e(
|
|
651
|
+
}) => /* @__PURE__ */ e(c, { sx: { flexDirection: "row", gap: 4 }, children: t?.slice(0, n).map((i, a) => /* @__PURE__ */ e(
|
|
919
652
|
me,
|
|
920
653
|
{
|
|
921
|
-
categoryGuid:
|
|
922
|
-
merchantGuid:
|
|
654
|
+
categoryGuid: i.categoryGuid || "",
|
|
655
|
+
merchantGuid: i.merchantGuid || ""
|
|
923
656
|
},
|
|
924
|
-
`${
|
|
925
|
-
)) }),
|
|
657
|
+
`${i.categoryGuid}-${i.merchantGuid}-${a}`
|
|
658
|
+
)) }), Dt = ({
|
|
926
659
|
upcomingRecurrences: t,
|
|
927
660
|
logoSize: n = 32,
|
|
928
|
-
maxLogos:
|
|
661
|
+
maxLogos: i = 3
|
|
929
662
|
}) => {
|
|
930
|
-
const
|
|
663
|
+
const a = (r) => r * (n / 2);
|
|
931
664
|
return /* @__PURE__ */ e(
|
|
932
|
-
|
|
665
|
+
k,
|
|
933
666
|
{
|
|
934
667
|
sx: {
|
|
935
668
|
position: "relative",
|
|
936
669
|
width: 64
|
|
937
670
|
},
|
|
938
|
-
children: t.map((r,
|
|
939
|
-
|
|
671
|
+
children: t.map((r, l) => l < i ? /* @__PURE__ */ e(
|
|
672
|
+
k,
|
|
940
673
|
{
|
|
941
674
|
sx: {
|
|
942
675
|
borderRadius: "4px",
|
|
943
|
-
left:
|
|
676
|
+
left: a(l),
|
|
944
677
|
outlineColor: "common.white",
|
|
945
678
|
outlineStyle: "solid",
|
|
946
679
|
outlineWidth: 2,
|
|
@@ -955,19 +688,19 @@ const X = {
|
|
|
955
688
|
}
|
|
956
689
|
)
|
|
957
690
|
},
|
|
958
|
-
`${r.categoryGuid}-${r.merchantGuid}-${
|
|
691
|
+
`${r.categoryGuid}-${r.merchantGuid}-${l}`
|
|
959
692
|
) : null)
|
|
960
693
|
}
|
|
961
694
|
);
|
|
962
|
-
},
|
|
695
|
+
}, St = ({
|
|
963
696
|
amount: t,
|
|
964
697
|
bgcolor: n,
|
|
965
|
-
isLargeScreen:
|
|
966
|
-
isSmallScreen:
|
|
698
|
+
isLargeScreen: i,
|
|
699
|
+
isSmallScreen: a,
|
|
967
700
|
label: r
|
|
968
|
-
}) => /* @__PURE__ */
|
|
701
|
+
}) => /* @__PURE__ */ o(c, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
|
|
969
702
|
/* @__PURE__ */ e(
|
|
970
|
-
|
|
703
|
+
k,
|
|
971
704
|
{
|
|
972
705
|
sx: {
|
|
973
706
|
borderRadius: "2px",
|
|
@@ -977,110 +710,110 @@ const X = {
|
|
|
977
710
|
}
|
|
978
711
|
}
|
|
979
712
|
),
|
|
980
|
-
/* @__PURE__ */
|
|
981
|
-
!
|
|
982
|
-
/* @__PURE__ */ e(
|
|
713
|
+
/* @__PURE__ */ o(c, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
|
|
714
|
+
!a && /* @__PURE__ */ e(g, { bold: !0, variant: "caption", children: L(t, t === 0 || !i ? "0,0" : "0,0.00") }),
|
|
715
|
+
/* @__PURE__ */ e(g, { variant: "caption", children: r })
|
|
983
716
|
] })
|
|
984
|
-
] }), It =
|
|
985
|
-
const { recurring: t } =
|
|
986
|
-
return /* @__PURE__ */
|
|
987
|
-
/* @__PURE__ */ e(
|
|
988
|
-
/* @__PURE__ */
|
|
989
|
-
/* @__PURE__ */ e(
|
|
990
|
-
/* @__PURE__ */ e(
|
|
717
|
+
] }), It = D(() => {
|
|
718
|
+
const { recurring: t } = S();
|
|
719
|
+
return /* @__PURE__ */ o(c, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
|
|
720
|
+
/* @__PURE__ */ e(Ze, { size: 32 }),
|
|
721
|
+
/* @__PURE__ */ o(c, { children: [
|
|
722
|
+
/* @__PURE__ */ e(se, { fontWeight: 600, variant: "body1", children: t.zero_state_content_header }),
|
|
723
|
+
/* @__PURE__ */ e(se, { color: "text.secondary", variant: "subtitle2", children: t.zero_state_content_description })
|
|
991
724
|
] })
|
|
992
725
|
] });
|
|
993
|
-
}),
|
|
726
|
+
}), vn = D(
|
|
994
727
|
({ onCTAClick: t }) => {
|
|
995
|
-
const [n,
|
|
996
|
-
loadRepeatingTransactions:
|
|
728
|
+
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
|
+
loadRepeatingTransactions: C,
|
|
997
730
|
upcomingRecurrences: y,
|
|
998
|
-
expenseTotal:
|
|
999
|
-
missedExpenseTotal:
|
|
1000
|
-
paidExpenseTotal:
|
|
731
|
+
expenseTotal: d,
|
|
732
|
+
missedExpenseTotal: R,
|
|
733
|
+
paidExpenseTotal: G,
|
|
1001
734
|
repeatingTransactions: Q,
|
|
1002
735
|
setDateRange: ee,
|
|
1003
|
-
upcomingExpenseTotal:
|
|
1004
|
-
isDataLoaded:
|
|
1005
|
-
} =
|
|
736
|
+
upcomingExpenseTotal: U,
|
|
737
|
+
isDataLoaded: $
|
|
738
|
+
} = v(), { setFilter: te } = he(), { recurring: I, budgets: ne } = S();
|
|
1006
739
|
h.useEffect(() => {
|
|
1007
|
-
|
|
1008
|
-
}, [d]), h.useEffect(() => {
|
|
1009
|
-
l && (te({
|
|
1010
|
-
dateRange: { start: le(ue(), 90), end: de() },
|
|
1011
|
-
accounts: g
|
|
1012
|
-
}), ee({ start: k(/* @__PURE__ */ new Date()), end: z(/* @__PURE__ */ new Date()) }), T().finally(), a(!0));
|
|
740
|
+
x(l);
|
|
1013
741
|
}, [l]), h.useEffect(() => {
|
|
1014
|
-
|
|
742
|
+
m && (te({
|
|
743
|
+
dateRange: { start: ue(de(), 90), end: le() },
|
|
744
|
+
accounts: f
|
|
745
|
+
}), ee({ start: W(/* @__PURE__ */ new Date()), end: B(/* @__PURE__ */ new Date()) }), C().finally(), i(!0));
|
|
746
|
+
}, [m]), h.useEffect(() => {
|
|
747
|
+
n && a(w.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
|
|
1015
748
|
state: y.length > 0 ? "default" : "zeroState"
|
|
1016
749
|
});
|
|
1017
750
|
}, [n]);
|
|
1018
|
-
const
|
|
1019
|
-
const
|
|
1020
|
-
{ color: r.palette.success.main, percentage: `${
|
|
751
|
+
const _ = u <= 288, F = u >= 450, ie = h.useMemo(() => {
|
|
752
|
+
const N = [
|
|
753
|
+
{ color: r.palette.success.main, percentage: `${G / d}` }
|
|
1021
754
|
];
|
|
1022
|
-
return
|
|
755
|
+
return R && N.push({
|
|
1023
756
|
color: r.palette.error.main,
|
|
1024
|
-
percentage: `${
|
|
1025
|
-
}),
|
|
757
|
+
percentage: `${R / d}`
|
|
758
|
+
}), N;
|
|
1026
759
|
}, [
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
760
|
+
G,
|
|
761
|
+
d,
|
|
762
|
+
R,
|
|
1030
763
|
r.palette.success.main,
|
|
1031
764
|
r.palette.error.main
|
|
1032
|
-
]),
|
|
1033
|
-
|
|
1034
|
-
y.length > 0 ?
|
|
765
|
+
]), P = h.useMemo(() => L(d, d === 0 ? "0,0" : "0,0.00"), [d]), b = () => {
|
|
766
|
+
a(
|
|
767
|
+
y.length > 0 ? w.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : w.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
|
|
1035
768
|
), t();
|
|
1036
769
|
};
|
|
1037
|
-
if (!
|
|
1038
|
-
const re = 32,
|
|
1039
|
-
|
|
770
|
+
if (!s || !n || !$) return /* @__PURE__ */ e(K, { height: 100 });
|
|
771
|
+
const re = 32, We = y.length > 0, $e = () => We ? _ ? /* @__PURE__ */ e(
|
|
772
|
+
Dt,
|
|
1040
773
|
{
|
|
1041
774
|
logoSize: re,
|
|
1042
775
|
maxLogos: 3,
|
|
1043
776
|
upcomingRecurrences: y.slice(0, 3)
|
|
1044
777
|
}
|
|
1045
|
-
) : /* @__PURE__ */ e(
|
|
778
|
+
) : /* @__PURE__ */ e(Tt, { maxLogos: 3, upcomingRecurrences: y.slice(0, 3) }) : /* @__PURE__ */ e(c, { sx: { width: _ ? 64 : 104 } }), Pe = [
|
|
1046
779
|
{
|
|
1047
|
-
amount:
|
|
780
|
+
amount: G,
|
|
1048
781
|
bgColor: "success.main",
|
|
1049
782
|
label: I.paid
|
|
1050
783
|
},
|
|
1051
784
|
{
|
|
1052
|
-
amount:
|
|
785
|
+
amount: R,
|
|
1053
786
|
bgColor: "error.main",
|
|
1054
787
|
label: I.missed
|
|
1055
788
|
},
|
|
1056
789
|
{
|
|
1057
|
-
amount:
|
|
790
|
+
amount: U,
|
|
1058
791
|
bgColor: "border.light",
|
|
1059
792
|
label: I.upcoming
|
|
1060
793
|
}
|
|
1061
|
-
],
|
|
794
|
+
], Re = !Q?.length;
|
|
1062
795
|
return /* @__PURE__ */ e(
|
|
1063
|
-
|
|
796
|
+
ht,
|
|
1064
797
|
{
|
|
1065
798
|
className: "mx-recurring-transaction-microwidget",
|
|
1066
|
-
ctaLabel:
|
|
1067
|
-
onCTAClick:
|
|
799
|
+
ctaLabel: Re ? ne.get_started_cta : I.primary_cta,
|
|
800
|
+
onCTAClick: b,
|
|
1068
801
|
title: I.recurring_expenses,
|
|
1069
|
-
children:
|
|
1070
|
-
/* @__PURE__ */
|
|
1071
|
-
|
|
802
|
+
children: Re ? /* @__PURE__ */ e(It, {}) : /* @__PURE__ */ o(Y, { children: [
|
|
803
|
+
/* @__PURE__ */ o(
|
|
804
|
+
c,
|
|
1072
805
|
{
|
|
1073
|
-
ref:
|
|
806
|
+
ref: p,
|
|
1074
807
|
sx: {
|
|
1075
808
|
flexDirection: "row",
|
|
1076
809
|
justifyContent: "space-between"
|
|
1077
810
|
},
|
|
1078
811
|
children: [
|
|
1079
|
-
/* @__PURE__ */
|
|
1080
|
-
|
|
812
|
+
/* @__PURE__ */ o(
|
|
813
|
+
c,
|
|
1081
814
|
{
|
|
1082
815
|
sx: [
|
|
1083
|
-
|
|
816
|
+
P.length >= 10 && _ ? { flexDirection: "column" } : { flexDirection: "row", gap: 2 },
|
|
1084
817
|
{
|
|
1085
818
|
alignItems: "baseline",
|
|
1086
819
|
overflow: "hidden",
|
|
@@ -1090,15 +823,15 @@ const X = {
|
|
|
1090
823
|
],
|
|
1091
824
|
children: [
|
|
1092
825
|
/* @__PURE__ */ e(
|
|
1093
|
-
|
|
826
|
+
g,
|
|
1094
827
|
{
|
|
1095
828
|
sx: { width: "100%" },
|
|
1096
|
-
variant:
|
|
1097
|
-
children:
|
|
829
|
+
variant: P.length >= 10 && _ ? "H3" : "H2",
|
|
830
|
+
children: P
|
|
1098
831
|
}
|
|
1099
832
|
),
|
|
1100
833
|
/* @__PURE__ */ e(
|
|
1101
|
-
|
|
834
|
+
se,
|
|
1102
835
|
{
|
|
1103
836
|
sx: {
|
|
1104
837
|
pr: 12
|
|
@@ -1110,14 +843,14 @@ const X = {
|
|
|
1110
843
|
]
|
|
1111
844
|
}
|
|
1112
845
|
),
|
|
1113
|
-
|
|
846
|
+
$e()
|
|
1114
847
|
]
|
|
1115
848
|
}
|
|
1116
849
|
),
|
|
1117
|
-
/* @__PURE__ */
|
|
1118
|
-
/* @__PURE__ */ e(Oe, { data:
|
|
850
|
+
/* @__PURE__ */ o(c, { sx: { pt: 12 }, children: [
|
|
851
|
+
/* @__PURE__ */ e(Oe, { data: ie }),
|
|
1119
852
|
/* @__PURE__ */ e(
|
|
1120
|
-
|
|
853
|
+
c,
|
|
1121
854
|
{
|
|
1122
855
|
sx: {
|
|
1123
856
|
alignItems: "center",
|
|
@@ -1125,16 +858,16 @@ const X = {
|
|
|
1125
858
|
gap: 16,
|
|
1126
859
|
mt: 4
|
|
1127
860
|
},
|
|
1128
|
-
children:
|
|
1129
|
-
|
|
861
|
+
children: Pe.map((N, He) => /* @__PURE__ */ e(
|
|
862
|
+
St,
|
|
1130
863
|
{
|
|
1131
|
-
amount:
|
|
1132
|
-
bgcolor:
|
|
1133
|
-
isLargeScreen:
|
|
1134
|
-
isSmallScreen:
|
|
1135
|
-
label:
|
|
864
|
+
amount: N.amount,
|
|
865
|
+
bgcolor: N.bgColor,
|
|
866
|
+
isLargeScreen: F,
|
|
867
|
+
isSmallScreen: _,
|
|
868
|
+
label: N.label
|
|
1136
869
|
},
|
|
1137
|
-
`recurrence-legend-${
|
|
870
|
+
`recurrence-legend-${He}`
|
|
1138
871
|
))
|
|
1139
872
|
}
|
|
1140
873
|
)
|
|
@@ -1146,12 +879,12 @@ const X = {
|
|
|
1146
879
|
);
|
|
1147
880
|
export {
|
|
1148
881
|
On as AddRecurringTransactionDetails,
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
882
|
+
An as ManageExpenses,
|
|
883
|
+
kn as ManageIncome,
|
|
884
|
+
ze as RecurringSettings,
|
|
885
|
+
vn as RecurringTransactionsMicroWidget,
|
|
886
|
+
wn as RecurringTransactionsMiniWidget,
|
|
887
|
+
Gn as RecurringTransactionsStore,
|
|
888
|
+
_n as RecurringTransactionsWidget,
|
|
889
|
+
Wn as SelectTransaction
|
|
1157
890
|
};
|