@mx-cartographer/experiences 8.0.0-alpha.sms2 → 9.0.0-alpha.mega1
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 +217 -0
- package/dist/{Account-Cp30A3ad.mjs → Account-BIKn4XEZ.mjs} +1 -1
- package/dist/Account-CMjOp7S2.mjs +118 -0
- package/dist/AccountApi-DgZ8ILj1.mjs +19 -0
- package/dist/AccountDetailsHeader-BOV91g1o.mjs +95 -0
- package/dist/AccountDisplayName-CO7z3v99.mjs +11 -0
- package/dist/{AccountFields-CW6cIthP.mjs → AccountFields-BRRH37K1.mjs} +10 -11
- package/dist/{AccountListItem-DxmAs98Z.mjs → AccountListItem-Ds5C0mOT.mjs} +4 -4
- package/dist/{AccountStore-hIs-yA6W.mjs → AccountStore-BFKvXJSD.mjs} +79 -69
- package/dist/{Accounts-DUHkUyK4.mjs → Accounts-CuE8aSZN.mjs} +1 -1
- package/dist/{BudgetUtil-CIDAPPPT.mjs → BudgetUtil-CDSOZXem.mjs} +4 -4
- package/dist/CategorySelectorDrawer-C4aZYP4N.mjs +418 -0
- package/dist/CategoryStore-DEqAnHbi.mjs +186 -0
- package/dist/{CategoryUtil-DfVKKkRf.mjs → CategoryUtil-CFHBvaV4.mjs} +1 -1
- package/dist/{ConnectionsDrawer-CSo6AFkG.mjs → ConnectionsDrawer-BExzgE16.mjs} +5 -5
- package/dist/{CurrencyInput-BrGvhgVK.mjs → CurrencyInput-DDQ4DBrE.mjs} +1 -1
- package/dist/{CurrencyText-Dr0EZ7bp.mjs → CurrencyText-C-85TnUF.mjs} +3 -3
- package/dist/{DateUtil-CDPZw_-m.mjs → DateUtil-CVsMhbZU.mjs} +3 -3
- package/dist/{DebtsStore-hi1cqrRk.mjs → DebtsStore-Dv_T7Dts.mjs} +12 -12
- package/dist/{Dialog-CDV0kKxj.mjs → Dialog-CWymUiuO.mjs} +32 -35
- package/dist/Drawer-Bet2ZPJo.mjs +176 -0
- package/dist/{ExportCsvAction-CQ1grpwo.mjs → ExportCsvAction-oG_Mn66T.mjs} +3 -3
- package/dist/{FinstrongStore-dKZOZ2hM.mjs → FinstrongStore-BjFkMTIL.mjs} +6 -6
- package/dist/GlobalAccountFilter-BpWlPAl5.mjs +316 -0
- package/dist/{GoalStore-CFeAJloA.mjs → GoalStore-Dbjgft2i.mjs} +155 -137
- package/dist/{Help-i4OasOO-.mjs → Help-BW_ar-4B.mjs} +2 -2
- package/dist/LineChart-DHj-Bufi.mjs +580 -0
- package/dist/{ListItemAction-BNCWQAN_.mjs → ListItemAction-Cbr3417C.mjs} +10 -10
- package/dist/{ManageIncome-D_qVX5dN.mjs → ManageIncome-DIIyqDTp.mjs} +85 -85
- package/dist/{MicroWidgetContainer-BGpNl5ZS.mjs → MicroWidgetContainer-DSyYwRCU.mjs} +2 -2
- package/dist/{MiniWidgetContainer-D7MkHG15.mjs → MiniWidgetContainer-DKn7ndO6.mjs} +1 -1
- package/dist/NetWorthStore-B6ziBtaH.mjs +168 -0
- package/dist/NotificationSettings-e789PcRb.mjs +676 -0
- package/dist/{OriginalBalanceAction-62e0mU_3.mjs → OriginalBalanceAction-DFoG79Ba.mjs} +3 -3
- package/dist/{RecurringSettings-RfZ8Wuhh.mjs → RecurringSettings-BpCUcE8w.mjs} +4 -4
- package/dist/{RecurringTransactionsStore-D3EOKZ2B.mjs → RecurringTransactionsStore-D_--5PWH.mjs} +1 -1
- package/dist/{RecurringTransactions-Bhx56aA3.mjs → RepeatingTransaction-C2txVA9O.mjs} +3 -3
- package/dist/{SettingsStore-BASMQSIp.mjs → SettingsStore-CInvh-rQ.mjs} +1 -1
- package/dist/SpendingData-B7NuTQ9s.mjs +53 -0
- package/dist/SpendingLegend-BxefXiQd.mjs +193 -0
- package/dist/TransactionDetails-CPwv9xtZ.mjs +1374 -0
- package/dist/{TransactionStore-DgLrYW4C.mjs → TransactionStore-D2aMUClq.mjs} +128 -111
- package/dist/TrendsStore-BdsYfCc7.mjs +183 -0
- package/dist/{User-DqNX2GAK.mjs → User-CulNdZUr.mjs} +21 -20
- package/dist/ViewMoreMicroCard-CDWR16_h.mjs +1147 -0
- package/dist/WidgetContainer-mzejMmz2.mjs +555 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +1 -0
- package/dist/accounts/index.es.js +933 -232
- package/dist/accounts/stores/AccountStore.d.ts +6 -2
- package/dist/accounts/utils/AccountDetails.d.ts +5 -0
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/components/AddBudgets.d.ts +2 -1
- package/dist/budgets/index.es.js +561 -522
- package/dist/cashflow/index.es.js +397 -396
- package/dist/categories/components/CustomCategories/AddSubcategory.d.ts +1 -0
- package/dist/categories/components/CustomCategories/DeleteSubcategory.d.ts +1 -0
- package/dist/categories/components/CustomCategories/RenameSubcategory.d.ts +1 -0
- package/dist/categories/components/SubcategoryRow.d.ts +1 -0
- package/dist/categories/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +5 -3
- package/dist/common/components/GlobalAccountFilter.d.ts +11 -0
- package/dist/common/components/WidgetContainer.d.ts +7 -6
- package/dist/common/components/charts/linechart/CustomTooltip.d.ts +6 -1
- package/dist/common/components/charts/stackedlinechart/CustomPointTooltip.d.ts +5 -2
- package/dist/common/components/globalaccountfilter/GlobalAccountFilterList.d.ts +7 -0
- package/dist/common/components/index.d.ts +2 -2
- package/dist/common/hooks/index.d.ts +1 -0
- package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
- package/dist/common/index.es.js +325 -306
- package/dist/common/stores/GlobalUiStore.d.ts +7 -4
- package/dist/common/types/localization/AccountsCopy.d.ts +6 -0
- package/dist/common/types/localization/CategoryCopy.d.ts +3 -0
- package/dist/common/types/localization/CommonCopy.d.ts +3 -0
- package/dist/common/types/localization/GoalsCopy.d.ts +3 -1
- package/dist/common/types/localization/MicroInsightsCopy.d.ts +1 -0
- package/dist/common/types/localization/TransactionsCopy.d.ts +4 -0
- package/dist/common/types/localization/TrendsCopy.d.ts +4 -0
- package/dist/dashboard/index.es.js +95 -125
- package/dist/debts/index.es.js +466 -460
- package/dist/{exportTransactionsToCSV-BFpuIAXW.mjs → exportTransactionsToCSV-BU1jTY0Q.mjs} +4 -4
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +4 -5
- package/dist/finstrong/index.es.js +1660 -1553
- package/dist/goals/index.es.js +716 -677
- package/dist/goals/stores/GoalStore.d.ts +2 -0
- package/dist/help/index.es.js +14 -10
- package/dist/{hooks-C41HAxM5.mjs → hooks-fY_n74f7.mjs} +16 -16
- package/dist/investments/index.es.js +464 -457
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/MicroCardTemplate.d.ts +23 -0
- package/dist/microinsights/beaticons/BeatMaterialIcon.d.ts +8 -0
- package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +1 -2
- package/dist/microinsights/beaticons/index.d.ts +1 -0
- package/dist/microinsights/cards/InsightCard.d.ts +0 -2
- package/dist/microinsights/cards/ViewMoreMicroCard.d.ts +2 -5
- package/dist/microinsights/index.d.ts +2 -2
- package/dist/microinsights/index.es.js +824 -14
- package/dist/networth/components/NetWorthChart.d.ts +3 -2
- package/dist/networth/components/NetWorthList.d.ts +3 -3
- package/dist/networth/index.es.js +433 -438
- package/dist/networth/stores/NetWorthStore.d.ts +20 -9
- package/dist/networth/utils/NetWorthUtils.d.ts +2 -2
- package/dist/notifications/index.es.js +5 -5
- package/dist/recurringtransactions/index.es.js +331 -325
- package/dist/settings/index.es.js +293 -285
- package/dist/spending/components/SpendingChart.d.ts +1 -1
- package/dist/spending/components/SpendingList.d.ts +1 -1
- package/dist/spending/components/SpendingTabLabel.d.ts +1 -0
- package/dist/spending/index.es.js +250 -235
- package/dist/transactions/index.es.js +288 -281
- package/dist/transactions/stores/TransactionStore.d.ts +5 -0
- package/dist/trends/components/TrendsTable.d.ts +0 -2
- package/dist/trends/index.es.js +876 -802
- package/dist/trends/utils/TrendsData.d.ts +1 -0
- package/dist/trends/utils/TrendsTable.d.ts +12 -0
- package/dist/{useAccountDisplayName-usSZCQ7I.mjs → useAccountDisplayName-DbkgGLdg.mjs} +2 -2
- package/dist/useAriaLive-B3_pRUio.mjs +35 -0
- package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-dhmXeSyF.mjs} +1 -1
- package/dist/useWidgetLoadTimer-CrUzxN-P.mjs +19 -0
- package/package.json +26 -21
- package/dist/AccountDetailsContent-C1HumFnW.mjs +0 -683
- package/dist/AccountDetailsHeader-NMx79DGs.mjs +0 -87
- package/dist/CategorySelectorDrawer-DqDAA_5I.mjs +0 -399
- package/dist/CategoryStore-MUwRWH9e.mjs +0 -176
- package/dist/ConnectDrawer-Dn1MlqLz.mjs +0 -545
- package/dist/Drawer-Dqe5EqvA.mjs +0 -163
- package/dist/LineChart-bc1D9xBE.mjs +0 -581
- package/dist/NetWorthStore-8FFC1Bs0.mjs +0 -150
- package/dist/NotificationSettings-BsWiYD94.mjs +0 -672
- package/dist/SpendingData-DPQ96k3x.mjs +0 -55
- package/dist/SpendingLegend-CZzDb-7d.mjs +0 -193
- package/dist/TransactionDetails-Duv1X9ec.mjs +0 -1379
- package/dist/TrendsStore-_mRaFUdf.mjs +0 -182
- package/dist/ViewMoreMicroCard-CH9E-jOx.mjs +0 -1930
- package/dist/WidgetContainer-B1Jzb4XA.mjs +0 -565
- package/dist/common/components/accountfilter/AccountFilter.d.ts +0 -20
- package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +0 -31
- package/dist/common/components/accountfilter/index.d.ts +0 -1
- package/dist/microinsights/cards/BaseCard.d.ts +0 -13
- package/dist/{ToggleListItem-ciFTiqRS.mjs → Notification-Bs1fdbzI.mjs} +1 -1
|
@@ -3,88 +3,89 @@ import x from "react";
|
|
|
3
3
|
import { observer as C } from "mobx-react-lite";
|
|
4
4
|
import { endOfMonth as W } from "date-fns/endOfMonth";
|
|
5
5
|
import { endOfToday as Z } from "date-fns/endOfToday";
|
|
6
|
-
import { startOfMonth as
|
|
6
|
+
import { startOfMonth as G } from "date-fns/startOfMonth";
|
|
7
7
|
import { startOfToday as J } from "date-fns/startOfToday";
|
|
8
8
|
import { subDays as Q } from "date-fns/subDays";
|
|
9
|
-
import { R as
|
|
10
|
-
import { M as vn } from "../RecurringSettings-
|
|
9
|
+
import { R as Te } from "../RecurringSettings-BpCUcE8w.mjs";
|
|
10
|
+
import { M as vn } from "../RecurringSettings-BpCUcE8w.mjs";
|
|
11
11
|
import { addMonths as We } from "date-fns/addMonths";
|
|
12
12
|
import { subMonths as $e } from "date-fns/subMonths";
|
|
13
13
|
import { isBefore as Be } from "date-fns/isBefore";
|
|
14
|
-
import
|
|
14
|
+
import V from "@mui/material/Unstable_Grid2";
|
|
15
15
|
import ge from "@mui/material/IconButton";
|
|
16
|
-
import
|
|
16
|
+
import l from "@mui/material/Stack";
|
|
17
17
|
import he from "@mui/material/Tab";
|
|
18
18
|
import Pe from "@mui/material/Tabs";
|
|
19
|
-
import { Cancel as
|
|
20
|
-
import { Text as
|
|
19
|
+
import { Cancel as De, CheckCircle as we, Schedule as He, MonetizationOn as ze, ChevronLeft as Fe, ChevronRight as Ue, CurrencyExchange as je } from "@mxenabled/mx-icons";
|
|
20
|
+
import { Text as h, MerchantLogo as ee, InstitutionLogo as Ke, H3 as Ye, P as X } from "@mxenabled/mxui";
|
|
21
21
|
import { getWeeksInMonth as fe } from "date-fns/getWeeksInMonth";
|
|
22
22
|
import te from "@mui/material/styles/useTheme";
|
|
23
|
-
import { AdapterDateFns as
|
|
24
|
-
import { DateCalendar as
|
|
25
|
-
import { LocalizationProvider as
|
|
23
|
+
import { AdapterDateFns as Ve } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
24
|
+
import { DateCalendar as Xe } from "@mui/x-date-pickers/DateCalendar";
|
|
25
|
+
import { LocalizationProvider as qe } from "@mui/x-date-pickers/LocalizationProvider";
|
|
26
26
|
import { isSameDay as Ze } from "date-fns/isSameDay";
|
|
27
27
|
import Je from "@mui/material/Badge";
|
|
28
28
|
import { PickersDay as Qe } from "@mui/x-date-pickers/PickersDay";
|
|
29
29
|
import { I as P } from "../IconBacking-DgT8DCeh.mjs";
|
|
30
|
-
import { u as R, b as H, j as _, g as
|
|
31
|
-
import { d as
|
|
32
|
-
import { T as O } from "../RecurringTransactionsStore-
|
|
33
|
-
import { R as An } from "../RecurringTransactionsStore-
|
|
34
|
-
import { A as
|
|
35
|
-
import
|
|
36
|
-
import
|
|
30
|
+
import { u as R, b as H, j as _, g as z, p as _e, h as ne } from "../hooks-fY_n74f7.mjs";
|
|
31
|
+
import { d as I, c as T, g as xe, f as et } from "../RepeatingTransaction-C2txVA9O.mjs";
|
|
32
|
+
import { T as O } from "../RecurringTransactionsStore-D_--5PWH.mjs";
|
|
33
|
+
import { R as An } from "../RecurringTransactionsStore-D_--5PWH.mjs";
|
|
34
|
+
import { A as S, W as tt } from "../WidgetContainer-mzejMmz2.mjs";
|
|
35
|
+
import nt from "@mui/material/Button";
|
|
36
|
+
import q from "@mui/material/Divider";
|
|
37
37
|
import be from "@mui/material/List";
|
|
38
|
-
import
|
|
38
|
+
import Se from "@mui/material/ListItem";
|
|
39
39
|
import it from "@mui/material/ListSubheader";
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import { b as
|
|
44
|
-
import { c as
|
|
45
|
-
import { D as ie } from "../Drawer-
|
|
46
|
-
import { f as
|
|
40
|
+
import rt from "@mui/material/ListItemAvatar";
|
|
41
|
+
import ot from "@mui/material/ListItemButton";
|
|
42
|
+
import at from "@mui/material/ListItemText";
|
|
43
|
+
import { b as st } from "../ManageIncome-DIIyqDTp.mjs";
|
|
44
|
+
import { c as Nn, M as Gn, S as On } from "../ManageIncome-DIIyqDTp.mjs";
|
|
45
|
+
import { D as ie } from "../Drawer-Bet2ZPJo.mjs";
|
|
46
|
+
import { f as M } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
47
47
|
import { b as E } from "../Localization-2MODESHW.mjs";
|
|
48
|
-
import { f as
|
|
49
|
-
import
|
|
48
|
+
import { f as v, D as L } from "../Dialog-CWymUiuO.mjs";
|
|
49
|
+
import N from "@mui/material/Box";
|
|
50
50
|
import { S as Ie } from "../StatusBar-CPfSXe80.mjs";
|
|
51
|
-
import { u as
|
|
51
|
+
import { u as re } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
52
52
|
import { S as Me } from "../SkeletonLoader-BaNboJjD.mjs";
|
|
53
|
-
import { L as
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
|
|
53
|
+
import { L as oe } from "../Loader-BSWSYqvn.mjs";
|
|
54
|
+
import { u as ae } from "../useWidgetLoadTimer-CrUzxN-P.mjs";
|
|
55
|
+
import { M as ct } from "../MiniWidgetContainer-DKn7ndO6.mjs";
|
|
56
|
+
import { u as lt } from "../useDimensions-27p2evRx.mjs";
|
|
57
|
+
import { M as dt } from "../MicroWidgetContainer-DSyYwRCU.mjs";
|
|
58
|
+
const F = {
|
|
58
59
|
gridRow: 1,
|
|
59
60
|
gridColumn: 1,
|
|
60
61
|
zIndex: 2
|
|
61
|
-
}, U = (t) => t ? { margin: "0 0 -6px -4px" } : void 0, se = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(P, { size: n, sx: { ...U(t) }, children: /* @__PURE__ */ e(He, { color: "primary", filled: !0, sx: { fontSize: n, ...
|
|
62
|
-
|
|
62
|
+
}, U = (t) => t ? { margin: "0 0 -6px -4px" } : void 0, se = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(P, { size: n, sx: { ...U(t) }, children: /* @__PURE__ */ e(He, { color: "primary", filled: !0, sx: { fontSize: n, ...F } }) }), ce = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(P, { size: n, sx: { ...U(t) }, children: /* @__PURE__ */ e(
|
|
63
|
+
ze,
|
|
63
64
|
{
|
|
64
65
|
filled: !0,
|
|
65
|
-
sx: { color: "categories.income", fontSize: n, ...
|
|
66
|
+
sx: { color: "categories.income", fontSize: n, ...F }
|
|
66
67
|
}
|
|
67
|
-
) }), le = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(P, { size: n, sx: { ...U(t) }, children: /* @__PURE__ */ e(
|
|
68
|
-
({ day: t, outsideCurrentMonth: n, ...
|
|
69
|
-
const { recurring:
|
|
70
|
-
() => c.filter((
|
|
71
|
-
[
|
|
68
|
+
) }), le = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(P, { size: n, sx: { ...U(t) }, children: /* @__PURE__ */ e(De, { color: "error", filled: !0, sx: { fontSize: n, ...F } }) }), de = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(P, { size: n, sx: { ...U(t) }, children: /* @__PURE__ */ e(we, { color: "success", filled: !0, sx: { fontSize: n, ...F } }) }), ut = C(
|
|
69
|
+
({ day: t, outsideCurrentMonth: n, ...i }) => {
|
|
70
|
+
const { recurring: o } = R(), { selectedAccountGuids: r } = H(), { recurrences: c, setSelectedDay: u } = _(), s = x.useMemo(
|
|
71
|
+
() => c.filter((f) => r.includes(f.accountGuid)),
|
|
72
|
+
[r, c]
|
|
72
73
|
).filter(
|
|
73
|
-
(
|
|
74
|
-
),
|
|
75
|
-
(
|
|
74
|
+
(f) => Ze(f.occurredOnDate || f.expectedDate, t)
|
|
75
|
+
), d = s.some(
|
|
76
|
+
(f) => f.type !== I.Income && f.status === T.Upcoming
|
|
76
77
|
), m = s.some(
|
|
77
|
-
(
|
|
78
|
-
),
|
|
79
|
-
(
|
|
80
|
-
), b = s.some((
|
|
78
|
+
(f) => f.type !== I.Income && f.status === T.Missed
|
|
79
|
+
), g = s.some(
|
|
80
|
+
(f) => f.type !== I.Income && f.status === T.Paid
|
|
81
|
+
), b = s.some((f) => f.type === I.Income), y = (d ? 1 : 0) + (m ? 1 : 0) + (g ? 1 : 0) + (b ? 1 : 0);
|
|
81
82
|
return /* @__PURE__ */ e(
|
|
82
83
|
Je,
|
|
83
84
|
{
|
|
84
85
|
badgeContent: s.length > 0 && /* @__PURE__ */ a(B, { children: [
|
|
85
86
|
m && /* @__PURE__ */ e(le, { isOffset: !0 }),
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
g && /* @__PURE__ */ e(de, { isOffset: !0 }),
|
|
88
|
+
d && /* @__PURE__ */ e(se, { isOffset: !0 }),
|
|
88
89
|
b && /* @__PURE__ */ e(ce, { isOffset: !0 })
|
|
89
90
|
] }),
|
|
90
91
|
overlap: "circular",
|
|
@@ -99,10 +100,10 @@ const z = {
|
|
|
99
100
|
Qe,
|
|
100
101
|
{
|
|
101
102
|
"aria-label": `
|
|
102
|
-
${
|
|
103
|
-
${m &&
|
|
104
|
-
${
|
|
105
|
-
${b &&
|
|
103
|
+
${g && o.paid},
|
|
104
|
+
${m && o.missed},
|
|
105
|
+
${d && o.upcoming},
|
|
106
|
+
${b && o.income}`,
|
|
106
107
|
day: t,
|
|
107
108
|
onClick: () => u(t),
|
|
108
109
|
outsideCurrentMonth: n,
|
|
@@ -113,19 +114,19 @@ const z = {
|
|
|
113
114
|
}
|
|
114
115
|
}
|
|
115
116
|
},
|
|
116
|
-
...
|
|
117
|
+
...i
|
|
117
118
|
}
|
|
118
119
|
)
|
|
119
120
|
}
|
|
120
121
|
);
|
|
121
122
|
}
|
|
122
|
-
), $ = ({ icon: t, label: n }) => /* @__PURE__ */ a(
|
|
123
|
+
), $ = ({ icon: t, label: n }) => /* @__PURE__ */ a(l, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
|
|
123
124
|
/* @__PURE__ */ e(t, {}),
|
|
124
|
-
/* @__PURE__ */ e(
|
|
125
|
-
] }),
|
|
125
|
+
/* @__PURE__ */ e(h, { variant: "XSmall", children: n })
|
|
126
|
+
] }), mt = C(() => {
|
|
126
127
|
const { recurring: t } = R();
|
|
127
128
|
return /* @__PURE__ */ a(
|
|
128
|
-
|
|
129
|
+
l,
|
|
129
130
|
{
|
|
130
131
|
alignItems: "center",
|
|
131
132
|
"aria-hidden": !0,
|
|
@@ -142,27 +143,27 @@ const z = {
|
|
|
142
143
|
}
|
|
143
144
|
);
|
|
144
145
|
}), ye = 58, ve = C(() => {
|
|
145
|
-
const t = te(), { onEvent: n } =
|
|
146
|
+
const t = te(), { onEvent: n } = z(), { selectedDay: i, setDateRange: o } = _(), [r, c] = x.useState(
|
|
146
147
|
fe(/* @__PURE__ */ new Date()) * O + ye
|
|
147
148
|
), u = (m) => {
|
|
148
|
-
c(fe(m) * O + ye),
|
|
149
|
-
start:
|
|
149
|
+
c(fe(m) * O + ye), o({
|
|
150
|
+
start: G(m),
|
|
150
151
|
end: W(m)
|
|
151
|
-
}), p(m), n(
|
|
152
|
+
}), p(m), n(S.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
|
|
152
153
|
}, p = (m) => {
|
|
153
154
|
m && requestAnimationFrame(() => {
|
|
154
|
-
const
|
|
155
|
-
|
|
155
|
+
const g = document.getElementById("recurrence-list");
|
|
156
|
+
g?.setAttribute("tabindex", "-1"), g?.focus();
|
|
156
157
|
});
|
|
157
158
|
}, s = /* @__PURE__ */ e(
|
|
158
|
-
|
|
159
|
+
Xe,
|
|
159
160
|
{
|
|
160
|
-
minDate:
|
|
161
|
+
minDate: G(/* @__PURE__ */ new Date()),
|
|
161
162
|
onChange: p,
|
|
162
163
|
onMonthChange: u,
|
|
163
164
|
showDaysOutsideCurrentMonth: !0,
|
|
164
165
|
slots: {
|
|
165
|
-
day:
|
|
166
|
+
day: ut
|
|
166
167
|
},
|
|
167
168
|
sx: {
|
|
168
169
|
"& .MuiPickersArrowSwitcher-button": {
|
|
@@ -188,10 +189,10 @@ const z = {
|
|
|
188
189
|
fontWeight: 600
|
|
189
190
|
},
|
|
190
191
|
"& .MuiDayCalendar-slideTransition": {
|
|
191
|
-
minHeight:
|
|
192
|
+
minHeight: r
|
|
192
193
|
},
|
|
193
194
|
"&.MuiDateCalendar-root": {
|
|
194
|
-
minHeight:
|
|
195
|
+
minHeight: r + O
|
|
195
196
|
},
|
|
196
197
|
"& .MuiButtonBase-root, .MuiDayCalendar-weekDayLabel": {
|
|
197
198
|
height: O,
|
|
@@ -203,12 +204,12 @@ const z = {
|
|
|
203
204
|
fontSize: t.typography.body2.fontSize
|
|
204
205
|
}
|
|
205
206
|
},
|
|
206
|
-
value:
|
|
207
|
+
value: i,
|
|
207
208
|
views: ["day"]
|
|
208
209
|
}
|
|
209
210
|
);
|
|
210
211
|
return /* @__PURE__ */ a(
|
|
211
|
-
|
|
212
|
+
l,
|
|
212
213
|
{
|
|
213
214
|
"aria-describedby": "calendar-description",
|
|
214
215
|
"aria-labelledby": "calendar-label",
|
|
@@ -232,16 +233,16 @@ const z = {
|
|
|
232
233
|
children: "Calendar filter for recurring transactions list. Filter by month or select specific date."
|
|
233
234
|
}
|
|
234
235
|
),
|
|
235
|
-
/* @__PURE__ */ a(
|
|
236
|
-
|
|
237
|
-
!
|
|
238
|
-
/* @__PURE__ */ e(
|
|
236
|
+
/* @__PURE__ */ a(qe, { dateAdapter: Ve, children: [
|
|
237
|
+
i && s,
|
|
238
|
+
!i && s,
|
|
239
|
+
/* @__PURE__ */ e(mt, {})
|
|
239
240
|
] })
|
|
240
241
|
]
|
|
241
242
|
}
|
|
242
243
|
);
|
|
243
|
-
}),
|
|
244
|
-
if (t.type ===
|
|
244
|
+
}), pt = (t) => {
|
|
245
|
+
if (t.type === I.Income)
|
|
245
246
|
return /* @__PURE__ */ e(ce, {});
|
|
246
247
|
switch (t.status) {
|
|
247
248
|
case T.Missed:
|
|
@@ -251,25 +252,25 @@ const z = {
|
|
|
251
252
|
default:
|
|
252
253
|
return /* @__PURE__ */ e(se, {});
|
|
253
254
|
}
|
|
254
|
-
},
|
|
255
|
+
}, gt = (t, n) => {
|
|
255
256
|
switch (t.status) {
|
|
256
257
|
case T.Paid:
|
|
257
258
|
return t.expectedDate ? E(
|
|
258
259
|
n.paid_on,
|
|
259
|
-
|
|
260
|
+
v(
|
|
260
261
|
t.occurredOnDate || t.expectedDate,
|
|
261
|
-
|
|
262
|
+
L.MONTH_DAY
|
|
262
263
|
)
|
|
263
264
|
) : n.paid;
|
|
264
265
|
case T.Missed:
|
|
265
266
|
return E(
|
|
266
267
|
n.missed_on,
|
|
267
|
-
|
|
268
|
+
v(t.expectedDate, L.MONTH_DAY)
|
|
268
269
|
);
|
|
269
270
|
case T.Upcoming:
|
|
270
271
|
return E(
|
|
271
272
|
n.upcoming_on,
|
|
272
|
-
|
|
273
|
+
v(t.expectedDate, L.MONTH_DAY)
|
|
273
274
|
);
|
|
274
275
|
default:
|
|
275
276
|
return n.unknown;
|
|
@@ -277,39 +278,39 @@ const z = {
|
|
|
277
278
|
}, Ce = ({
|
|
278
279
|
recurrence: t,
|
|
279
280
|
isMini: n = !1,
|
|
280
|
-
onRecurrenceClick:
|
|
281
|
+
onRecurrenceClick: i = () => {
|
|
281
282
|
},
|
|
282
|
-
showOrdinal:
|
|
283
|
+
showOrdinal: o = !1
|
|
283
284
|
}) => {
|
|
284
|
-
const { recurring:
|
|
285
|
-
() => c.find((
|
|
285
|
+
const { recurring: r } = R(), { detailedRepeatingTransactions: c } = _(), [u, p] = x.useState(!1), s = x.useMemo(
|
|
286
|
+
() => c.find((A) => A.guid === t.repeatingTransactionGuid),
|
|
286
287
|
[t, c]
|
|
287
|
-
),
|
|
288
|
-
let y =
|
|
289
|
-
return
|
|
290
|
-
/* @__PURE__ */ a(
|
|
291
|
-
/* @__PURE__ */ a(
|
|
292
|
-
p(!0),
|
|
288
|
+
), d = t.type === I.Income, m = t.status === T.Paid, g = t.status === T.Missed, b = t.status === T.Upcoming;
|
|
289
|
+
let y = r.paid?.toLowerCase();
|
|
290
|
+
return g ? y = r.missed?.toLowerCase() : b && (y = o ? xe(r, s || {}, !0) : xe(r, s || {}, !1)), //TODO: implement common/components/ListItemRow.tsx
|
|
291
|
+
/* @__PURE__ */ a(Se, { disableGutters: !0, disablePadding: !0, children: [
|
|
292
|
+
/* @__PURE__ */ a(ot, { onClick: () => {
|
|
293
|
+
p(!0), i(t);
|
|
293
294
|
}, children: [
|
|
294
|
-
/* @__PURE__ */ e(
|
|
295
|
+
/* @__PURE__ */ e(rt, { children: /* @__PURE__ */ e(
|
|
295
296
|
ee,
|
|
296
297
|
{
|
|
297
298
|
categoryGuid: t.categoryGuid,
|
|
298
299
|
merchantGuid: t.merchantGuid
|
|
299
300
|
}
|
|
300
301
|
) }),
|
|
301
|
-
/* @__PURE__ */ e(
|
|
302
|
-
|
|
302
|
+
/* @__PURE__ */ e(at, { children: /* @__PURE__ */ a(
|
|
303
|
+
l,
|
|
303
304
|
{
|
|
304
305
|
direction: "row",
|
|
305
306
|
gap: 4,
|
|
306
307
|
sx: { justifyContent: "space-between", textOverflow: "ellipsis", textWrap: "nowrap" },
|
|
307
308
|
children: [
|
|
308
|
-
/* @__PURE__ */ a(
|
|
309
|
-
/* @__PURE__ */ e(
|
|
310
|
-
/* @__PURE__ */ e(
|
|
311
|
-
|
|
312
|
-
/* @__PURE__ */ e(
|
|
309
|
+
/* @__PURE__ */ a(l, { direction: "column", width: "50%", children: [
|
|
310
|
+
/* @__PURE__ */ e(h, { bold: !0, variant: "body1", children: t.name }),
|
|
311
|
+
/* @__PURE__ */ e(l, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */ a(l, { direction: "row", gap: 4, children: [
|
|
312
|
+
pt(t),
|
|
313
|
+
/* @__PURE__ */ e(h, { variant: "caption", children: gt(t, r) })
|
|
313
314
|
] }) : /* @__PURE__ */ a(B, { children: [
|
|
314
315
|
t.institutionGuid && /* @__PURE__ */ e(
|
|
315
316
|
Ke,
|
|
@@ -319,16 +320,16 @@ const z = {
|
|
|
319
320
|
size: 12
|
|
320
321
|
}
|
|
321
322
|
),
|
|
322
|
-
/* @__PURE__ */ e(
|
|
323
|
+
/* @__PURE__ */ e(h, { sx: { maxWidth: 250 }, variant: "caption", children: t.institutionName })
|
|
323
324
|
] }) })
|
|
324
325
|
] }),
|
|
325
|
-
/* @__PURE__ */ a(
|
|
326
|
-
/* @__PURE__ */ a(
|
|
327
|
-
|
|
328
|
-
|
|
326
|
+
/* @__PURE__ */ a(l, { alignItems: "flex-end", width: "100%", children: [
|
|
327
|
+
/* @__PURE__ */ a(h, { bold: !0, color: d ? "success.main" : "text.primary", variant: "body1", children: [
|
|
328
|
+
d ? "+" : "",
|
|
329
|
+
M(t.amount, "0,0.00")
|
|
329
330
|
] }),
|
|
330
331
|
!n && /* @__PURE__ */ a(
|
|
331
|
-
|
|
332
|
+
l,
|
|
332
333
|
{
|
|
333
334
|
direction: "row",
|
|
334
335
|
sx: {
|
|
@@ -339,9 +340,9 @@ const z = {
|
|
|
339
340
|
width: "100%"
|
|
340
341
|
},
|
|
341
342
|
children: [
|
|
342
|
-
m && /* @__PURE__ */ e(
|
|
343
|
-
|
|
344
|
-
/* @__PURE__ */ e(
|
|
343
|
+
m && /* @__PURE__ */ e(we, { color: "success", filled: !0, size: 12 }),
|
|
344
|
+
g && /* @__PURE__ */ e(De, { color: "error", filled: !0, size: 12 }),
|
|
345
|
+
/* @__PURE__ */ e(h, { bold: !0, color: "text.secondary", variant: "caption", children: y })
|
|
345
346
|
]
|
|
346
347
|
}
|
|
347
348
|
)
|
|
@@ -353,12 +354,12 @@ const z = {
|
|
|
353
354
|
/* @__PURE__ */ e(
|
|
354
355
|
ie,
|
|
355
356
|
{
|
|
356
|
-
ariaLabelClose:
|
|
357
|
+
ariaLabelClose: r.close_drawer_aria,
|
|
357
358
|
isOpen: u,
|
|
358
359
|
onClose: () => p(!1),
|
|
359
|
-
title: t.type ===
|
|
360
|
+
title: t.type === I.Income ? r.income_details : r.expense_details,
|
|
360
361
|
children: s && /* @__PURE__ */ e(
|
|
361
|
-
|
|
362
|
+
st,
|
|
362
363
|
{
|
|
363
364
|
onDeleted: () => p(!1),
|
|
364
365
|
recurringTransaction: s
|
|
@@ -371,153 +372,158 @@ const z = {
|
|
|
371
372
|
({
|
|
372
373
|
recurrences: t,
|
|
373
374
|
isMini: n = !1,
|
|
374
|
-
onResetClick:
|
|
375
|
-
onRecurrenceClick:
|
|
376
|
-
sx:
|
|
375
|
+
onResetClick: i,
|
|
376
|
+
onRecurrenceClick: o,
|
|
377
|
+
sx: r = {},
|
|
377
378
|
title: c
|
|
378
379
|
}) => {
|
|
379
|
-
const { recurring: u } = R(), p = x.useMemo(() =>
|
|
380
|
-
return /* @__PURE__ */ a(
|
|
380
|
+
const { recurring: u } = R(), p = x.useMemo(() => et(t), [t]);
|
|
381
|
+
return /* @__PURE__ */ a(l, { id: "recurrence-list", sx: { gap: 8, mt: 4, ...r }, "tab-index": -1, children: [
|
|
381
382
|
c && /* @__PURE__ */ a(
|
|
382
|
-
|
|
383
|
+
l,
|
|
383
384
|
{
|
|
384
|
-
sx: {
|
|
385
|
+
sx: {
|
|
386
|
+
alignItems: "center",
|
|
387
|
+
flexDirection: "row",
|
|
388
|
+
justifyContent: "space-between",
|
|
389
|
+
px: 24
|
|
390
|
+
},
|
|
385
391
|
children: [
|
|
386
|
-
/* @__PURE__ */ e(
|
|
387
|
-
|
|
392
|
+
/* @__PURE__ */ e(h, { bold: !0, variant: "body1", children: c }),
|
|
393
|
+
i && /* @__PURE__ */ e(nt, { onClick: i, size: "small", variant: "text", children: u.reset })
|
|
388
394
|
]
|
|
389
395
|
}
|
|
390
396
|
),
|
|
391
|
-
t.length === 0 ? /* @__PURE__ */ e(
|
|
397
|
+
t.length === 0 ? /* @__PURE__ */ e(h, { fontStyle: "italic", sx: { py: 24, textAlign: "center" }, children: u.no_activities }) : /* @__PURE__ */ e(be, { children: n ? t.map((s, d) => /* @__PURE__ */ a(x.Fragment, { children: [
|
|
392
398
|
/* @__PURE__ */ e(
|
|
393
399
|
Ce,
|
|
394
400
|
{
|
|
395
401
|
isMini: n,
|
|
396
|
-
onRecurrenceClick:
|
|
402
|
+
onRecurrenceClick: o,
|
|
397
403
|
recurrence: s
|
|
398
404
|
}
|
|
399
405
|
),
|
|
400
|
-
/* @__PURE__ */ e(
|
|
401
|
-
] }, `recurrence-${
|
|
402
|
-
/* @__PURE__ */ e(
|
|
406
|
+
/* @__PURE__ */ e(q, { sx: { mx: 24 } })
|
|
407
|
+
] }, `recurrence-${d}`)) : p.map((s, d) => /* @__PURE__ */ a(x.Fragment, { children: [
|
|
408
|
+
/* @__PURE__ */ e(Se, { children: /* @__PURE__ */ e(
|
|
403
409
|
be,
|
|
404
410
|
{
|
|
405
|
-
subheader: /* @__PURE__ */ e(it, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ e(
|
|
411
|
+
subheader: /* @__PURE__ */ e(it, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ e(h, { bold: !0, variant: "caption", children: v(s.date, L.DAY_OF_WEEK_MONTH_DAY) }) }),
|
|
406
412
|
sx: { width: "100%" },
|
|
407
|
-
children: s.recurrences.map((m,
|
|
413
|
+
children: s.recurrences.map((m, g) => /* @__PURE__ */ e(x.Fragment, { children: /* @__PURE__ */ e(
|
|
408
414
|
Ce,
|
|
409
415
|
{
|
|
410
416
|
isMini: n,
|
|
411
|
-
onRecurrenceClick:
|
|
417
|
+
onRecurrenceClick: o,
|
|
412
418
|
recurrence: m
|
|
413
419
|
}
|
|
414
|
-
) }, `day-recurrence-${
|
|
420
|
+
) }, `day-recurrence-${g}`))
|
|
415
421
|
}
|
|
416
422
|
) }, s.id),
|
|
417
|
-
/* @__PURE__ */ e(
|
|
418
|
-
] }, `recurrence-${
|
|
423
|
+
/* @__PURE__ */ e(q, { sx: { mx: 24 } })
|
|
424
|
+
] }, `recurrence-${d}`)) })
|
|
419
425
|
] });
|
|
420
426
|
}
|
|
421
427
|
), Re = C(
|
|
422
|
-
({ expected: t, isExpense: n = !0, missed:
|
|
423
|
-
const p = te(), { isSmallMobile: s } =
|
|
424
|
-
const
|
|
425
|
-
return
|
|
426
|
-
}, [
|
|
427
|
-
return /* @__PURE__ */ a(
|
|
428
|
-
/* @__PURE__ */ a(
|
|
429
|
-
/* @__PURE__ */ e(
|
|
430
|
-
/* @__PURE__ */ e(
|
|
428
|
+
({ expected: t, isExpense: n = !0, missed: i, paid: o, title: r, total: c, upcoming: u }) => {
|
|
429
|
+
const p = te(), { isSmallMobile: s } = re(), { recurring: d } = R(), m = x.useMemo(() => {
|
|
430
|
+
const g = [{ color: p.palette.success.main, percentage: `${o / t}` }];
|
|
431
|
+
return i && g.push({ color: p.palette.error.main, percentage: `${i / t}` }), g;
|
|
432
|
+
}, [o, t, i]);
|
|
433
|
+
return /* @__PURE__ */ a(l, { children: [
|
|
434
|
+
/* @__PURE__ */ a(l, { sx: { flexDirection: "row", justifyContent: "space-between", pb: 12 }, children: [
|
|
435
|
+
/* @__PURE__ */ e(h, { bold: !0, variant: "body1", children: `${r} (${c})` }),
|
|
436
|
+
/* @__PURE__ */ e(h, { bold: !0, color: n ? "text.primary" : "success.main", variant: "body1", children: `${n ? "-" : "+"}${M(t, "0,0.00")}` })
|
|
431
437
|
] }),
|
|
432
438
|
/* @__PURE__ */ e(Ie, { data: m, height: 12 }),
|
|
433
|
-
/* @__PURE__ */ a(
|
|
434
|
-
/* @__PURE__ */ e(
|
|
435
|
-
!s && /* @__PURE__ */ e(
|
|
436
|
-
/* @__PURE__ */ e(
|
|
437
|
-
|
|
438
|
-
/* @__PURE__ */ e(
|
|
439
|
-
!s && /* @__PURE__ */ e(
|
|
440
|
-
/* @__PURE__ */ e(
|
|
439
|
+
/* @__PURE__ */ a(l, { sx: { alignItems: "center", flexDirection: "row", gap: 2, my: 8 }, children: [
|
|
440
|
+
/* @__PURE__ */ e(N, { sx: { bgcolor: "success.main", height: 8, mr: 8, width: 8 } }),
|
|
441
|
+
!s && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children: M(o, "0,0.00") }),
|
|
442
|
+
/* @__PURE__ */ e(h, { variant: "caption", children: d.paid?.toLowerCase() }),
|
|
443
|
+
i !== void 0 && /* @__PURE__ */ a(B, { children: [
|
|
444
|
+
/* @__PURE__ */ e(N, { sx: { bgcolor: "error.main", height: 8, ml: 16, mr: 8, width: 8 } }),
|
|
445
|
+
!s && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children: M(i, "0,0.00") }),
|
|
446
|
+
/* @__PURE__ */ e(h, { variant: "caption", children: d.missed?.toLowerCase() })
|
|
441
447
|
] }),
|
|
442
|
-
/* @__PURE__ */ e(
|
|
443
|
-
!s && /* @__PURE__ */ e(
|
|
444
|
-
/* @__PURE__ */ e(
|
|
448
|
+
/* @__PURE__ */ e(N, { sx: { bgcolor: "divider", height: 8, ml: 16, mr: 8, width: 8 } }),
|
|
449
|
+
!s && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children: M(u, "0,0.00") }),
|
|
450
|
+
/* @__PURE__ */ e(h, { variant: "caption", children: d.upcoming })
|
|
445
451
|
] })
|
|
446
452
|
] });
|
|
447
453
|
}
|
|
448
|
-
),
|
|
449
|
-
const { recurring: t } = R(), { availableWidth: n } =
|
|
454
|
+
), ht = C(() => {
|
|
455
|
+
const { recurring: t } = R(), { availableWidth: n } = _e(), { isDesktop: i, isSmallMobile: o, isMobile: r } = re(n), { onEvent: c } = z(), {
|
|
450
456
|
currentMonthExpenses: u,
|
|
451
457
|
currentMonthIncome: p,
|
|
452
458
|
dateRange: s,
|
|
453
|
-
expenseTotal:
|
|
459
|
+
expenseTotal: d,
|
|
454
460
|
incomeTotal: m,
|
|
455
|
-
missedExpenseTotal:
|
|
461
|
+
missedExpenseTotal: g,
|
|
456
462
|
pastRecurrences: b,
|
|
457
463
|
paidExpenseTotal: y,
|
|
458
|
-
paidIncomeTotal:
|
|
459
|
-
selectedDay:
|
|
464
|
+
paidIncomeTotal: f,
|
|
465
|
+
selectedDay: A,
|
|
460
466
|
selectedDayRecurrences: j,
|
|
461
467
|
setDateRange: w,
|
|
462
468
|
upcomingExpenseTotal: K,
|
|
463
469
|
upcomingIncomeTotal: Le,
|
|
464
470
|
upcomingRecurrences: ue
|
|
465
|
-
} = _(), [Y, Ae] = x.useState(0), Ee = Be(s.start, /* @__PURE__ */ new Date()),
|
|
471
|
+
} = _(), [Y, Ae] = x.useState(0), Ee = Be(s.start, /* @__PURE__ */ new Date()), Ne = (D, ke) => {
|
|
466
472
|
Ae(ke);
|
|
467
|
-
}, me = (
|
|
468
|
-
c(
|
|
469
|
-
transaction_guid:
|
|
473
|
+
}, me = (D) => {
|
|
474
|
+
c(S.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
|
|
475
|
+
transaction_guid: D.transaction?.guid
|
|
470
476
|
});
|
|
471
|
-
}, pe = (
|
|
472
|
-
c(
|
|
473
|
-
transaction_guid:
|
|
477
|
+
}, pe = (D) => {
|
|
478
|
+
c(S.RECURRING_TRANSACTIONS_CLICK_PAID, {
|
|
479
|
+
transaction_guid: D.transaction?.guid
|
|
474
480
|
});
|
|
475
|
-
},
|
|
476
|
-
const
|
|
481
|
+
}, Ge = () => {
|
|
482
|
+
const D = We(s.start, 1);
|
|
477
483
|
w({
|
|
478
|
-
start:
|
|
479
|
-
end: W(
|
|
484
|
+
start: G(D),
|
|
485
|
+
end: W(D)
|
|
480
486
|
});
|
|
481
487
|
}, Oe = () => {
|
|
482
|
-
const
|
|
488
|
+
const D = $e(s.start, 1);
|
|
483
489
|
w({
|
|
484
|
-
start:
|
|
485
|
-
end: W(
|
|
490
|
+
start: G(D),
|
|
491
|
+
end: W(D)
|
|
486
492
|
});
|
|
487
493
|
};
|
|
488
494
|
return /* @__PURE__ */ a(
|
|
489
|
-
|
|
495
|
+
V,
|
|
490
496
|
{
|
|
491
497
|
container: !0,
|
|
492
498
|
sx: {
|
|
493
499
|
pt: 16
|
|
494
500
|
},
|
|
495
501
|
children: [
|
|
496
|
-
/* @__PURE__ */ a(
|
|
497
|
-
/* @__PURE__ */ a(
|
|
498
|
-
/* @__PURE__ */ a(
|
|
502
|
+
/* @__PURE__ */ a(V, { md: !0, sm: 12, width: "100%", children: [
|
|
503
|
+
/* @__PURE__ */ a(l, { sx: { gap: 16, px: i ? 48 : 24 }, children: [
|
|
504
|
+
/* @__PURE__ */ a(l, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
499
505
|
/* @__PURE__ */ e(Ye, { children: E(
|
|
500
506
|
t.header_title,
|
|
501
|
-
|
|
507
|
+
v(s.start, L.MONTH_LONG)
|
|
502
508
|
) }),
|
|
503
|
-
!
|
|
509
|
+
!i && /* @__PURE__ */ a(l, { direction: "row", gap: 4, children: [
|
|
504
510
|
/* @__PURE__ */ e(
|
|
505
511
|
ge,
|
|
506
512
|
{
|
|
507
513
|
color: "primary",
|
|
508
514
|
disabled: Ee,
|
|
509
515
|
onClick: Oe,
|
|
510
|
-
children: /* @__PURE__ */ e(
|
|
516
|
+
children: /* @__PURE__ */ e(Fe, {})
|
|
511
517
|
}
|
|
512
518
|
),
|
|
513
|
-
/* @__PURE__ */ e(ge, { color: "primary", onClick:
|
|
519
|
+
/* @__PURE__ */ e(ge, { color: "primary", onClick: Ge, children: /* @__PURE__ */ e(Ue, {}) })
|
|
514
520
|
] })
|
|
515
521
|
] }),
|
|
516
522
|
/* @__PURE__ */ e(
|
|
517
523
|
Re,
|
|
518
524
|
{
|
|
519
|
-
expected:
|
|
520
|
-
missed:
|
|
525
|
+
expected: d,
|
|
526
|
+
missed: g,
|
|
521
527
|
paid: y,
|
|
522
528
|
title: t.expenses,
|
|
523
529
|
total: u.length,
|
|
@@ -529,13 +535,13 @@ const z = {
|
|
|
529
535
|
{
|
|
530
536
|
expected: m,
|
|
531
537
|
isExpense: !1,
|
|
532
|
-
paid:
|
|
538
|
+
paid: f,
|
|
533
539
|
title: t.deposits,
|
|
534
540
|
total: p.length,
|
|
535
541
|
upcoming: Le
|
|
536
542
|
}
|
|
537
543
|
),
|
|
538
|
-
|
|
544
|
+
i && /* @__PURE__ */ e(
|
|
539
545
|
k,
|
|
540
546
|
{
|
|
541
547
|
onRecurrenceClick: me,
|
|
@@ -544,18 +550,18 @@ const z = {
|
|
|
544
550
|
}
|
|
545
551
|
)
|
|
546
552
|
] }),
|
|
547
|
-
!
|
|
548
|
-
/* @__PURE__ */ a(Pe, { onChange:
|
|
553
|
+
!i && /* @__PURE__ */ a(l, { sx: { px: r ? 0 : 24 }, children: [
|
|
554
|
+
/* @__PURE__ */ a(Pe, { onChange: Ne, value: Y, variant: "fullWidth", children: [
|
|
549
555
|
/* @__PURE__ */ e(
|
|
550
556
|
he,
|
|
551
557
|
{
|
|
552
|
-
label: /* @__PURE__ */ e(
|
|
558
|
+
label: /* @__PURE__ */ e(h, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: o ? t.upcoming : t.upcoming_activity })
|
|
553
559
|
}
|
|
554
560
|
),
|
|
555
561
|
/* @__PURE__ */ e(
|
|
556
562
|
he,
|
|
557
563
|
{
|
|
558
|
-
label: /* @__PURE__ */ e(
|
|
564
|
+
label: /* @__PURE__ */ e(h, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: o ? t.past : t.past_transactions })
|
|
559
565
|
}
|
|
560
566
|
)
|
|
561
567
|
] }),
|
|
@@ -575,16 +581,16 @@ const z = {
|
|
|
575
581
|
)
|
|
576
582
|
] })
|
|
577
583
|
] }),
|
|
578
|
-
|
|
584
|
+
i && /* @__PURE__ */ e(V, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ a(l, { gap: 24, children: [
|
|
579
585
|
/* @__PURE__ */ e(ve, {}),
|
|
580
586
|
/* @__PURE__ */ e(
|
|
581
587
|
k,
|
|
582
588
|
{
|
|
583
589
|
onRecurrenceClick: pe,
|
|
584
590
|
recurrences: j || b,
|
|
585
|
-
title:
|
|
591
|
+
title: A ? E(
|
|
586
592
|
t.day_transactions,
|
|
587
|
-
|
|
593
|
+
v(A, L.MONTH_DAY)
|
|
588
594
|
) : t.past_transactions
|
|
589
595
|
}
|
|
590
596
|
)
|
|
@@ -592,86 +598,85 @@ const z = {
|
|
|
592
598
|
]
|
|
593
599
|
}
|
|
594
600
|
);
|
|
595
|
-
}),
|
|
596
|
-
const {
|
|
597
|
-
return
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
+
}), Dn = C(({ onBackClick: t, sx: n = {} }) => {
|
|
602
|
+
const { recurring: i } = R(), { isInitialized: o, selectedAccountGuids: r } = H(), { isDataLoaded: c, loadRepeatingTransactionData: u, setDateRange: p } = _(), { setFilter: s } = ne(), { onEvent: d } = z(), { isMobile: m } = re(), [g, b] = x.useState(!1);
|
|
603
|
+
return ae({
|
|
604
|
+
widgetName: "RecurringTransactionsWidget",
|
|
605
|
+
isLoaded: c
|
|
606
|
+
}), x.useEffect(() => {
|
|
607
|
+
c || u().finally();
|
|
601
608
|
}, []), x.useEffect(() => {
|
|
602
|
-
|
|
603
|
-
}, [r]), x.useEffect(() => {
|
|
604
|
-
m({
|
|
609
|
+
s({
|
|
605
610
|
dateRange: { start: Q(J(), 90), end: Z() },
|
|
606
|
-
accounts:
|
|
607
|
-
}),
|
|
608
|
-
}, [
|
|
609
|
-
|
|
611
|
+
accounts: r
|
|
612
|
+
}), p({ start: G(/* @__PURE__ */ new Date()), end: W(/* @__PURE__ */ new Date()) });
|
|
613
|
+
}, [r]), o ? /* @__PURE__ */ a(
|
|
614
|
+
tt,
|
|
610
615
|
{
|
|
611
|
-
accountOptions: r,
|
|
612
616
|
actions: [
|
|
613
617
|
{
|
|
614
618
|
label: i.action_title,
|
|
615
619
|
iconName: "credit_card_gear",
|
|
616
620
|
onClick: () => {
|
|
617
|
-
|
|
621
|
+
b(!0), d(S.RECURRING_TRANSACTIONS_CLICK_SETTINGS);
|
|
618
622
|
}
|
|
619
623
|
}
|
|
620
624
|
],
|
|
621
|
-
hasDivider:
|
|
622
|
-
onAccountsFilterClick: () =>
|
|
625
|
+
hasDivider: m,
|
|
626
|
+
onAccountsFilterClick: () => d(S.RECURRING_TRANSACTIONS_CLICK_FILTER),
|
|
623
627
|
onBackClick: t,
|
|
624
628
|
sx: n,
|
|
625
629
|
title: i.title,
|
|
626
630
|
children: [
|
|
627
|
-
|
|
631
|
+
c ? /* @__PURE__ */ e(ht, {}) : /* @__PURE__ */ e(Me, { sx: { m: 48 }, variant: "list" }),
|
|
628
632
|
/* @__PURE__ */ e(
|
|
629
633
|
ie,
|
|
630
634
|
{
|
|
631
635
|
ariaLabelClose: i.close_drawer_aria,
|
|
632
636
|
isOpen: g,
|
|
633
|
-
onClose: () =>
|
|
637
|
+
onClose: () => b(!1),
|
|
634
638
|
shouldShowHeaderBorders: !1,
|
|
635
639
|
title: i.action_title,
|
|
636
|
-
children: /* @__PURE__ */ e(
|
|
640
|
+
children: /* @__PURE__ */ e(Te, {})
|
|
637
641
|
}
|
|
638
642
|
)
|
|
639
643
|
]
|
|
640
644
|
}
|
|
641
|
-
) : /* @__PURE__ */ e(
|
|
642
|
-
}),
|
|
643
|
-
const { recurring: t } = R(), { availableWidth: n } =
|
|
644
|
-
return /* @__PURE__ */ a(
|
|
645
|
+
) : /* @__PURE__ */ e(oe, {});
|
|
646
|
+
}), ft = C(() => {
|
|
647
|
+
const { recurring: t } = R(), { availableWidth: n } = _e(), { selectedDay: i, selectedDayRecurrences: o, setSelectedDay: r, upcomingRecurrences: c } = _(), u = n < 750;
|
|
648
|
+
return /* @__PURE__ */ a(l, { flexDirection: u ? "column" : "row", width: "100%", children: [
|
|
645
649
|
/* @__PURE__ */ e(ve, {}),
|
|
646
|
-
!u && /* @__PURE__ */ e(
|
|
650
|
+
!u && /* @__PURE__ */ e(q, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
|
|
647
651
|
/* @__PURE__ */ e(
|
|
648
652
|
k,
|
|
649
653
|
{
|
|
650
654
|
isMini: !0,
|
|
651
|
-
onResetClick:
|
|
652
|
-
recurrences:
|
|
655
|
+
onResetClick: i ? () => r(i) : void 0,
|
|
656
|
+
recurrences: o || c.slice(0, 5),
|
|
653
657
|
sx: { width: u ? "100%" : "calc(100% - 336px)", mt: 12 },
|
|
654
|
-
title:
|
|
658
|
+
title: i ? E(
|
|
655
659
|
t.day_transactions,
|
|
656
|
-
|
|
660
|
+
v(i, L.MONTH_DAY)
|
|
657
661
|
) : t.upcoming_activity
|
|
658
662
|
}
|
|
659
663
|
)
|
|
660
664
|
] });
|
|
661
|
-
}),
|
|
665
|
+
}), wn = C(
|
|
662
666
|
({ onPrimaryCtaClick: t, sx: n }) => {
|
|
663
|
-
const {
|
|
664
|
-
return
|
|
665
|
-
|
|
667
|
+
const { recurring: i } = R(), { setFilter: o } = ne(), { isDataLoaded: r, loadRepeatingTransactionData: c } = _(), { isInitialized: u, selectedAccountGuids: p } = H();
|
|
668
|
+
return ae({
|
|
669
|
+
widgetName: "RecurringTransactionsMiniWidget",
|
|
670
|
+
isLoaded: r
|
|
671
|
+
}), x.useEffect(() => {
|
|
672
|
+
r || c().finally();
|
|
666
673
|
}, []), x.useEffect(() => {
|
|
667
|
-
|
|
668
|
-
}, [r]), x.useEffect(() => {
|
|
669
|
-
l.length > 0 && o({
|
|
674
|
+
p.length > 0 && o({
|
|
670
675
|
dateRange: { start: Q(J(), 90), end: Z() },
|
|
671
|
-
accounts:
|
|
676
|
+
accounts: p
|
|
672
677
|
});
|
|
673
|
-
}, [
|
|
674
|
-
|
|
678
|
+
}, [p]), u ? /* @__PURE__ */ e(
|
|
679
|
+
ct,
|
|
675
680
|
{
|
|
676
681
|
className: "mx-exp-recurring-transactions-miniwidget",
|
|
677
682
|
onPrimaryCtaClick: t,
|
|
@@ -679,28 +684,28 @@ const z = {
|
|
|
679
684
|
subTitle: i.sub_title,
|
|
680
685
|
sx: n,
|
|
681
686
|
title: i.mini_title,
|
|
682
|
-
children:
|
|
687
|
+
children: r ? /* @__PURE__ */ e(ft, {}) : /* @__PURE__ */ e(Me, { sx: { mx: 16 }, variant: "list" })
|
|
683
688
|
}
|
|
684
|
-
) : /* @__PURE__ */ e(
|
|
689
|
+
) : /* @__PURE__ */ e(oe, {});
|
|
685
690
|
}
|
|
686
|
-
),
|
|
691
|
+
), xt = C(() => {
|
|
687
692
|
const { recurring: t } = R();
|
|
688
|
-
return /* @__PURE__ */ a(
|
|
693
|
+
return /* @__PURE__ */ a(l, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
|
|
689
694
|
/* @__PURE__ */ e(je, { size: 32 }),
|
|
690
|
-
/* @__PURE__ */ a(
|
|
691
|
-
/* @__PURE__ */ e(
|
|
692
|
-
/* @__PURE__ */ e(
|
|
695
|
+
/* @__PURE__ */ a(l, { children: [
|
|
696
|
+
/* @__PURE__ */ e(X, { fontWeight: 600, variant: "body1", children: t.zero_state_content_header }),
|
|
697
|
+
/* @__PURE__ */ e(X, { color: "text.secondary", variant: "subtitle2", children: t.zero_state_content_description })
|
|
693
698
|
] })
|
|
694
699
|
] });
|
|
695
|
-
}),
|
|
700
|
+
}), bt = ({
|
|
696
701
|
amount: t,
|
|
697
702
|
bgcolor: n,
|
|
698
|
-
isLargeScreen:
|
|
699
|
-
isSmallScreen:
|
|
700
|
-
label:
|
|
701
|
-
}) => /* @__PURE__ */ a(
|
|
703
|
+
isLargeScreen: i,
|
|
704
|
+
isSmallScreen: o,
|
|
705
|
+
label: r
|
|
706
|
+
}) => /* @__PURE__ */ a(l, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
|
|
702
707
|
/* @__PURE__ */ e(
|
|
703
|
-
|
|
708
|
+
N,
|
|
704
709
|
{
|
|
705
710
|
sx: {
|
|
706
711
|
borderRadius: "2px",
|
|
@@ -710,29 +715,29 @@ const z = {
|
|
|
710
715
|
}
|
|
711
716
|
}
|
|
712
717
|
),
|
|
713
|
-
/* @__PURE__ */ a(
|
|
714
|
-
!
|
|
715
|
-
/* @__PURE__ */ e(
|
|
718
|
+
/* @__PURE__ */ a(l, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
|
|
719
|
+
!o && /* @__PURE__ */ e(h, { bold: !0, variant: "caption", children: M(t, t === 0 || !i ? "0,0" : "0,0.00") }),
|
|
720
|
+
/* @__PURE__ */ e(h, { variant: "caption", children: r })
|
|
716
721
|
] })
|
|
717
|
-
] }),
|
|
722
|
+
] }), yt = ({
|
|
718
723
|
upcomingRecurrences: t,
|
|
719
724
|
logoSize: n = 32,
|
|
720
|
-
maxLogos:
|
|
725
|
+
maxLogos: i = 3
|
|
721
726
|
}) => {
|
|
722
|
-
const
|
|
727
|
+
const o = (r) => r * (n / 2);
|
|
723
728
|
return /* @__PURE__ */ e(
|
|
724
|
-
|
|
729
|
+
N,
|
|
725
730
|
{
|
|
726
731
|
sx: {
|
|
727
732
|
position: "relative",
|
|
728
733
|
width: 64
|
|
729
734
|
},
|
|
730
|
-
children: t.map((
|
|
731
|
-
|
|
735
|
+
children: t.map((r, c) => c < i ? /* @__PURE__ */ e(
|
|
736
|
+
N,
|
|
732
737
|
{
|
|
733
738
|
sx: {
|
|
734
739
|
borderRadius: "4px",
|
|
735
|
-
left:
|
|
740
|
+
left: o(c),
|
|
736
741
|
outlineColor: "common.white",
|
|
737
742
|
outlineStyle: "solid",
|
|
738
743
|
outlineWidth: 2,
|
|
@@ -741,55 +746,55 @@ const z = {
|
|
|
741
746
|
children: /* @__PURE__ */ e(
|
|
742
747
|
ee,
|
|
743
748
|
{
|
|
744
|
-
categoryGuid:
|
|
745
|
-
merchantGuid:
|
|
749
|
+
categoryGuid: r.categoryGuid || "",
|
|
750
|
+
merchantGuid: r.merchantGuid || "",
|
|
746
751
|
size: n
|
|
747
752
|
}
|
|
748
753
|
)
|
|
749
754
|
},
|
|
750
|
-
`${
|
|
755
|
+
`${r.categoryGuid}-${r.merchantGuid}-${c}`
|
|
751
756
|
) : null)
|
|
752
757
|
}
|
|
753
758
|
);
|
|
754
|
-
},
|
|
759
|
+
}, Ct = ({
|
|
755
760
|
upcomingRecurrences: t,
|
|
756
761
|
maxLogos: n = 3
|
|
757
|
-
}) => /* @__PURE__ */ e(
|
|
762
|
+
}) => /* @__PURE__ */ e(l, { sx: { flexDirection: "row", gap: 4 }, children: t?.slice(0, n).map((i, o) => /* @__PURE__ */ e(
|
|
758
763
|
ee,
|
|
759
764
|
{
|
|
760
|
-
categoryGuid:
|
|
761
|
-
merchantGuid:
|
|
765
|
+
categoryGuid: i.categoryGuid || "",
|
|
766
|
+
merchantGuid: i.merchantGuid || ""
|
|
762
767
|
},
|
|
763
|
-
`${
|
|
764
|
-
)) }),
|
|
765
|
-
const t = te(), [n, { width:
|
|
766
|
-
upcomingRecurrences:
|
|
767
|
-
expenseTotal:
|
|
768
|
+
`${i.categoryGuid}-${i.merchantGuid}-${o}`
|
|
769
|
+
)) }), Rt = C(() => {
|
|
770
|
+
const t = te(), [n, { width: i }] = lt(), {
|
|
771
|
+
upcomingRecurrences: o,
|
|
772
|
+
expenseTotal: r,
|
|
768
773
|
missedExpenseTotal: c,
|
|
769
774
|
paidExpenseTotal: u,
|
|
770
775
|
upcomingExpenseTotal: p
|
|
771
|
-
} = _(), { recurring: s } = R(),
|
|
776
|
+
} = _(), { recurring: s } = R(), d = i <= 288, m = i >= 450, g = 32, b = o.length > 0, y = x.useMemo(() => M(r, r === 0 ? "0,0" : "0,0.00"), [r]), f = x.useMemo(() => {
|
|
772
777
|
const w = [
|
|
773
|
-
{ color: t.palette.success.main, percentage: `${u /
|
|
778
|
+
{ color: t.palette.success.main, percentage: `${u / r}` }
|
|
774
779
|
];
|
|
775
780
|
return c && w.push({
|
|
776
781
|
color: t.palette.error.main,
|
|
777
|
-
percentage: `${c /
|
|
782
|
+
percentage: `${c / r}`
|
|
778
783
|
}), w;
|
|
779
784
|
}, [
|
|
780
785
|
u,
|
|
781
|
-
|
|
786
|
+
r,
|
|
782
787
|
c,
|
|
783
788
|
t.palette.success.main,
|
|
784
789
|
t.palette.error.main
|
|
785
|
-
]),
|
|
786
|
-
|
|
790
|
+
]), A = () => b ? d ? /* @__PURE__ */ e(
|
|
791
|
+
yt,
|
|
787
792
|
{
|
|
788
|
-
logoSize:
|
|
793
|
+
logoSize: g,
|
|
789
794
|
maxLogos: 3,
|
|
790
|
-
upcomingRecurrences:
|
|
795
|
+
upcomingRecurrences: o.slice(0, 3)
|
|
791
796
|
}
|
|
792
|
-
) : /* @__PURE__ */ e(
|
|
797
|
+
) : /* @__PURE__ */ e(Ct, { maxLogos: 3, upcomingRecurrences: o.slice(0, 3) }) : /* @__PURE__ */ e(l, { sx: { width: d ? 64 : 104 } }), j = [
|
|
793
798
|
{
|
|
794
799
|
amount: u,
|
|
795
800
|
bgColor: "success.main",
|
|
@@ -807,12 +812,12 @@ const z = {
|
|
|
807
812
|
}
|
|
808
813
|
];
|
|
809
814
|
return /* @__PURE__ */ a(B, { children: [
|
|
810
|
-
/* @__PURE__ */ a(
|
|
815
|
+
/* @__PURE__ */ a(l, { ref: n, sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
811
816
|
/* @__PURE__ */ a(
|
|
812
|
-
|
|
817
|
+
l,
|
|
813
818
|
{
|
|
814
819
|
sx: [
|
|
815
|
-
y.length >= 10 &&
|
|
820
|
+
y.length >= 10 && d ? { flexDirection: "column" } : { flexDirection: "row", gap: 2 },
|
|
816
821
|
{
|
|
817
822
|
alignItems: "baseline",
|
|
818
823
|
overflow: "hidden",
|
|
@@ -822,23 +827,23 @@ const z = {
|
|
|
822
827
|
],
|
|
823
828
|
children: [
|
|
824
829
|
/* @__PURE__ */ e(
|
|
825
|
-
|
|
830
|
+
h,
|
|
826
831
|
{
|
|
827
832
|
sx: { width: "100%" },
|
|
828
|
-
variant: y.length >= 10 &&
|
|
833
|
+
variant: y.length >= 10 && d ? "H3" : "H2",
|
|
829
834
|
children: y
|
|
830
835
|
}
|
|
831
836
|
),
|
|
832
|
-
/* @__PURE__ */ e(
|
|
837
|
+
/* @__PURE__ */ e(X, { sx: { pr: 12 }, variant: "XSmall", children: s.expected })
|
|
833
838
|
]
|
|
834
839
|
}
|
|
835
840
|
),
|
|
836
|
-
|
|
841
|
+
A()
|
|
837
842
|
] }),
|
|
838
|
-
/* @__PURE__ */ a(
|
|
839
|
-
/* @__PURE__ */ e(Ie, { data:
|
|
843
|
+
/* @__PURE__ */ a(l, { sx: { pt: 12 }, children: [
|
|
844
|
+
/* @__PURE__ */ e(Ie, { data: f }),
|
|
840
845
|
/* @__PURE__ */ e(
|
|
841
|
-
|
|
846
|
+
l,
|
|
842
847
|
{
|
|
843
848
|
sx: {
|
|
844
849
|
alignItems: "center",
|
|
@@ -847,12 +852,12 @@ const z = {
|
|
|
847
852
|
mt: 4
|
|
848
853
|
},
|
|
849
854
|
children: j.map((w, K) => /* @__PURE__ */ e(
|
|
850
|
-
|
|
855
|
+
bt,
|
|
851
856
|
{
|
|
852
857
|
amount: w.amount,
|
|
853
858
|
bgcolor: w.bgColor,
|
|
854
859
|
isLargeScreen: m,
|
|
855
|
-
isSmallScreen:
|
|
860
|
+
isSmallScreen: d,
|
|
856
861
|
label: w.label
|
|
857
862
|
},
|
|
858
863
|
`recurrence-legend-${K}`
|
|
@@ -861,71 +866,72 @@ const z = {
|
|
|
861
866
|
)
|
|
862
867
|
] })
|
|
863
868
|
] });
|
|
864
|
-
}),
|
|
869
|
+
}), _n = C(
|
|
865
870
|
({ onCTAClick: t }) => {
|
|
866
|
-
const { onEvent: n } =
|
|
867
|
-
loadRepeatingTransactionData:
|
|
868
|
-
upcomingRecurrences:
|
|
869
|
-
repeatingTransactions:
|
|
870
|
-
setDateRange:
|
|
871
|
-
isDataLoaded:
|
|
872
|
-
} = _(), { setFilter:
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
871
|
+
const { onEvent: n } = z(), { isInitialized: i, selectedAccountGuids: o } = H(), {
|
|
872
|
+
loadRepeatingTransactionData: r,
|
|
873
|
+
upcomingRecurrences: c,
|
|
874
|
+
repeatingTransactions: u,
|
|
875
|
+
setDateRange: p,
|
|
876
|
+
isDataLoaded: s
|
|
877
|
+
} = _(), { setFilter: d } = ne(), { recurring: m, budgets: g } = R();
|
|
878
|
+
ae({
|
|
879
|
+
widgetName: "RecurringTransactionsMicroWidget",
|
|
880
|
+
isLoaded: s
|
|
881
|
+
}), x.useEffect(() => {
|
|
882
|
+
s || r().finally(() => {
|
|
883
|
+
n(S.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
|
|
884
|
+
state: c.length > 0 ? "default" : "zeroState"
|
|
877
885
|
});
|
|
878
886
|
});
|
|
879
887
|
}, []), x.useEffect(() => {
|
|
880
|
-
i &&
|
|
881
|
-
}, [i, r]), x.useEffect(() => {
|
|
882
|
-
i && (h({
|
|
888
|
+
i && (d({
|
|
883
889
|
dateRange: { start: Q(J(), 90), end: Z() },
|
|
884
890
|
accounts: o
|
|
885
|
-
}),
|
|
891
|
+
}), p({ start: G(/* @__PURE__ */ new Date()), end: W(/* @__PURE__ */ new Date()) }));
|
|
886
892
|
}, [i, o]);
|
|
887
|
-
const
|
|
893
|
+
const b = () => {
|
|
888
894
|
n(
|
|
889
|
-
|
|
895
|
+
c.length > 0 ? S.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : S.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
|
|
890
896
|
), t();
|
|
891
897
|
};
|
|
892
|
-
if (!i || !
|
|
893
|
-
const
|
|
898
|
+
if (!i || !s) return /* @__PURE__ */ e(oe, { height: 100 });
|
|
899
|
+
const y = !u?.length;
|
|
894
900
|
return /* @__PURE__ */ e(
|
|
895
|
-
|
|
901
|
+
dt,
|
|
896
902
|
{
|
|
897
903
|
className: "mx-recurring-transaction-microwidget",
|
|
898
|
-
ctaLabel:
|
|
899
|
-
onCTAClick:
|
|
900
|
-
title:
|
|
901
|
-
children:
|
|
904
|
+
ctaLabel: y ? g.get_started_cta : m.primary_cta,
|
|
905
|
+
onCTAClick: b,
|
|
906
|
+
title: m.recurring_expenses,
|
|
907
|
+
children: y ? /* @__PURE__ */ e(xt, {}) : /* @__PURE__ */ e(Rt, {})
|
|
902
908
|
}
|
|
903
909
|
);
|
|
904
910
|
}
|
|
905
|
-
),
|
|
906
|
-
({ isOpen: t, onClose: n, selectedTab:
|
|
907
|
-
const { cashflow:
|
|
911
|
+
), Sn = C(
|
|
912
|
+
({ isOpen: t, onClose: n, selectedTab: i }) => {
|
|
913
|
+
const { cashflow: o } = R();
|
|
908
914
|
return /* @__PURE__ */ e(
|
|
909
915
|
ie,
|
|
910
916
|
{
|
|
911
|
-
ariaLabelClose:
|
|
917
|
+
ariaLabelClose: o.close_settings_aria,
|
|
912
918
|
isOpen: t,
|
|
913
919
|
onClose: n,
|
|
914
|
-
title:
|
|
915
|
-
children: /* @__PURE__ */ e(
|
|
920
|
+
title: o.cashflow_settings,
|
|
921
|
+
children: /* @__PURE__ */ e(Te, { defaultSelectedTab: i })
|
|
916
922
|
}
|
|
917
923
|
);
|
|
918
924
|
}
|
|
919
925
|
);
|
|
920
926
|
export {
|
|
921
|
-
|
|
927
|
+
Nn as AddRecurringTransactionDetails,
|
|
922
928
|
vn as ManageExpenses,
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
929
|
+
Gn as ManageIncome,
|
|
930
|
+
Te as RecurringSettings,
|
|
931
|
+
Sn as RecurringSettingsDrawer,
|
|
932
|
+
_n as RecurringTransactionsMicroWidget,
|
|
933
|
+
wn as RecurringTransactionsMiniWidget,
|
|
928
934
|
An as RecurringTransactionsStore,
|
|
929
|
-
|
|
935
|
+
Dn as RecurringTransactionsWidget,
|
|
930
936
|
On as SelectTransaction
|
|
931
937
|
};
|