@mx-cartographer/experiences 7.3.0-alpha.sms1 → 7.3.1
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 +75 -0
- package/dist/{Account-Bxw0_4FU.mjs → Account-YwUMFz93.mjs} +1 -1
- package/dist/{AccountDetailsContent-CAM9y39M.mjs → AccountDetailsContent-BgCST7mK.mjs} +8 -8
- package/dist/AccountDetailsHeader-jAFWoHj7.mjs +87 -0
- package/dist/{AccountFields-C9FlatNb.mjs → AccountFields-DPxMPBF0.mjs} +2 -2
- package/dist/{AccountListItem-JFMZROh7.mjs → AccountListItem-D6rWAreC.mjs} +8 -8
- package/dist/{AccountStore-BgNOyMdp.mjs → AccountStore-B5E98oM1.mjs} +100 -74
- package/dist/Accounts-UIlYCmHb.mjs +9 -0
- package/dist/{BeatApi-DhJpgCLz.mjs → BeatApi-De2IaqH2.mjs} +1 -1
- package/dist/{BeatStore-IBnXd4YK.mjs → BeatStore-D_NYuBSz.mjs} +1 -1
- package/dist/{BudgetUtil-B2ZXyw-g.mjs → BudgetUtil-CXvenbdN.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-Buy70Y3V.mjs} +21 -19
- package/dist/CategoryStore-BEdFs69_.mjs +183 -0
- package/dist/CategoryUtil-BR3H5i6n.mjs +78 -0
- package/dist/{ConnectDrawer-BQNs-hjk.mjs → ConnectDrawer-CbxHKlRv.mjs} +10 -10
- package/dist/{ConnectionsDrawer-ByGQE7D5.mjs → ConnectionsDrawer-C6kanU7I.mjs} +4 -4
- package/dist/{CurrencyInput-DUsQbkXb.mjs → CurrencyInput-lSC7oPDg.mjs} +1 -1
- package/dist/{DebtsStore-C9bblOgW.mjs → DebtsStore-DgIcphe_.mjs} +1 -1
- package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-DNSgmdyv.mjs} +3 -3
- package/dist/{Fetch-87LIQbEA.mjs → Fetch-DecPFeGU.mjs} +24 -22
- package/dist/{FinstrongStore-F2c607dj.mjs → FinstrongStore-CL7t5lBL.mjs} +1 -1
- package/dist/{GoalStore-D-aB35SY.mjs → GoalStore-CAlmSu4U.mjs} +112 -152
- package/dist/{Help-B6dIcujh.mjs → Help-hi9I9EYP.mjs} +1 -1
- package/dist/{LineChart-D4GI7nVh.mjs → LineChart-eK4IQImU.mjs} +2 -2
- package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-BmL5buOf.mjs} +1 -1
- package/dist/{ManageIncome-1s_q5W4X.mjs → ManageIncome-Cypo9qY4.mjs} +66 -65
- package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-WvZ4gnQe.mjs} +1 -1
- package/dist/{MicroWidgetContainer-DpeqN9n3.mjs → MicroWidgetContainer-CFdMGJKg.mjs} +1 -1
- package/dist/{MiniWidgetContainer-D0gfmbaF.mjs → MiniWidgetContainer-BdgBvpga.mjs} +1 -1
- package/dist/{NetWorthStore-DCsTZpuS.mjs → NetWorthStore-CxqIxAgN.mjs} +2 -2
- package/dist/{NotificationSettings-DqrkNMod.mjs → NotificationSettings-DxytNHlN.mjs} +240 -237
- package/dist/{NotificationStore-BxP_P2dA.mjs → NotificationStore-CDX_kqHa.mjs} +7 -15
- package/dist/{OriginalBalanceAction-CWuVvRq9.mjs → OriginalBalanceAction-V6FEoIDe.mjs} +3 -3
- package/dist/{RecurringSettings-A_rAGCTP.mjs → RecurringSettings-iIupYxJW.mjs} +4 -4
- package/dist/{RecurringTransactions-DK8dWldr.mjs → RecurringTransactions-ej39mgA6.mjs} +3 -3
- package/dist/{RecurringTransactionsStore-C4YOD7_D.mjs → RecurringTransactionsStore-BiwCzScZ.mjs} +26 -29
- package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-krIRNwHK.mjs} +3 -3
- package/dist/{ToggleListItem-r0Kx56wF.mjs → ToggleListItem-ciFTiqRS.mjs} +19 -14
- package/dist/TransactionApi-CjBoLleL.mjs +86 -0
- package/dist/{TransactionDetails-oP1eSuiS.mjs → TransactionDetails-BUoNbsu-.mjs} +402 -367
- package/dist/TransactionStore-CtGTg0XS.mjs +677 -0
- package/dist/TrendsStore-5PvDT_o6.mjs +182 -0
- package/dist/{User-BQUxBeZV.mjs → User-Bj34_i8g.mjs} +1 -1
- package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-lihSDk2J.mjs} +517 -493
- package/dist/{WidgetContainer-BHWANqT4.mjs → WidgetContainer-BnTgAfQn.mjs} +2 -2
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +4 -1
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +2 -1
- package/dist/accounts/index.es.js +241 -203
- package/dist/accounts/stores/AccountStore.d.ts +22 -25
- package/dist/accounts/utils/Accounts.d.ts +1 -2
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +500 -507
- package/dist/budgets/store/BudgetsStore.d.ts +0 -1
- package/dist/cashflow/index.es.js +384 -382
- package/dist/categories/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +1 -5
- package/dist/categories/util/CategoryUtil.d.ts +2 -3
- package/dist/common/components/charts/index.d.ts +0 -2
- package/dist/common/index.es.js +391 -376
- package/dist/common/stores/AppDataStore.d.ts +1 -3
- package/dist/common/stores/GlobalCopyStore.d.ts +1 -0
- package/dist/common/stores/GlobalStore.d.ts +10 -4
- package/dist/common/stores/UserStore.d.ts +2 -3
- package/dist/common/types/Account.d.ts +6 -9
- package/dist/common/types/Global.d.ts +1 -0
- package/dist/dashboard/index.es.js +2 -2
- package/dist/debts/index.es.js +506 -498
- package/dist/exportTransactionsToCSV-C4PkIYP6.mjs +48 -0
- package/dist/finstrong/index.es.js +417 -415
- package/dist/goals/index.es.js +559 -557
- package/dist/goals/stores/GoalStore.d.ts +4 -17
- package/dist/help/index.es.js +3 -3
- package/dist/{hooks-D6XlXHf4.mjs → hooks-Cy8JnjCg.mjs} +2 -2
- package/dist/insights/index.es.js +1 -1
- package/dist/investments/index.es.js +437 -435
- package/dist/investments/stores/HoldingStore.d.ts +0 -1
- package/dist/merchants/index.es.js +2 -2
- package/dist/microinsights/carousel/BeatList.d.ts +10 -0
- package/dist/microinsights/carousel/CarouselControls.d.ts +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/microinsights/interfaces.d.ts +0 -1
- package/dist/networth/index.es.js +176 -174
- package/dist/notifications/index.es.js +23 -23
- package/dist/notifications/stores/NotificationStore.d.ts +1 -3
- package/dist/recurringtransactions/index.es.js +175 -173
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +2 -3
- package/dist/settings/index.es.js +285 -279
- package/dist/spending/index.es.js +328 -304
- package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -0
- package/dist/transactions/index.es.js +63 -64
- package/dist/transactions/stores/TransactionStore.d.ts +77 -21
- package/dist/trends/index.es.js +948 -583
- package/dist/{useAccountDisplayName-BUAApBIb.mjs → useAccountDisplayName-D6sQsNNQ.mjs} +2 -2
- package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-CRwX-qWE.mjs} +1 -1
- package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-BxytCjq5.mjs} +1 -1
- package/package.json +3 -3
- package/dist/AccountDetailsHeader-JtSX6Uf9.mjs +0 -120
- package/dist/Accounts-BRf_YeTf.mjs +0 -27
- package/dist/CategoryStore-yHI0hWmK.mjs +0 -174
- package/dist/CategoryUtil-pZRIYOgN.mjs +0 -80
- package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
- package/dist/TransactionStore-ai3uII_r.mjs +0 -690
- package/dist/TrendsStore-DCYbpXPO.mjs +0 -559
- package/dist/exportTransactionsToCSV-7bVS7KXf.mjs +0 -47
- package/dist/useAriaLive-B3_pRUio.mjs +0 -35
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as e, jsxs as a, Fragment as X } from "react/jsx-runtime";
|
|
2
2
|
import h from "react";
|
|
3
|
-
import { observer as
|
|
3
|
+
import { observer as R } from "mobx-react-lite";
|
|
4
4
|
import { endOfMonth as z } from "date-fns/endOfMonth";
|
|
5
5
|
import { endOfToday as de } from "date-fns/endOfToday";
|
|
6
|
-
import { startOfMonth as
|
|
6
|
+
import { startOfMonth as W } from "date-fns/startOfMonth";
|
|
7
7
|
import { startOfToday as ue } from "date-fns/startOfToday";
|
|
8
8
|
import { subDays as me } from "date-fns/subDays";
|
|
9
9
|
import ae from "@mui/material/Skeleton";
|
|
10
10
|
import c from "@mui/material/Stack";
|
|
11
|
-
import { R as Ee } from "../RecurringSettings-
|
|
12
|
-
import { M as
|
|
11
|
+
import { R as Ee } from "../RecurringSettings-iIupYxJW.mjs";
|
|
12
|
+
import { M as Gn } from "../RecurringSettings-iIupYxJW.mjs";
|
|
13
13
|
import { addMonths as ze } from "date-fns/addMonths";
|
|
14
14
|
import { subMonths as Fe } from "date-fns/subMonths";
|
|
15
15
|
import { isBefore as Ue } from "date-fns/isBefore";
|
|
@@ -28,32 +28,32 @@ import { isSameDay as nt } from "date-fns/isSameDay";
|
|
|
28
28
|
import it from "@mui/material/Badge";
|
|
29
29
|
import { PickersDay as rt } from "@mui/x-date-pickers/PickersDay";
|
|
30
30
|
import { I as q } from "../IconBacking-B9oC6uL2.mjs";
|
|
31
|
-
import { u as
|
|
32
|
-
import {
|
|
33
|
-
import { T as B } from "../RecurringTransactionsStore-
|
|
34
|
-
import { R as
|
|
35
|
-
import { A as
|
|
36
|
-
import
|
|
31
|
+
import { u as T, b as Z, j as v, g as J, q as Oe, d as he, h as fe, n as ot } from "../hooks-Cy8JnjCg.mjs";
|
|
32
|
+
import { c as L, a as S, g as Ie, f as at } from "../RecurringTransactions-ej39mgA6.mjs";
|
|
33
|
+
import { T as B } from "../RecurringTransactionsStore-BiwCzScZ.mjs";
|
|
34
|
+
import { R as On } from "../RecurringTransactionsStore-BiwCzScZ.mjs";
|
|
35
|
+
import { A as I, W as st } from "../WidgetContainer-BnTgAfQn.mjs";
|
|
36
|
+
import ct from "@mui/material/Button";
|
|
37
37
|
import le from "@mui/material/Divider";
|
|
38
38
|
import ve from "@mui/material/List";
|
|
39
39
|
import ke from "@mui/material/ListItem";
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import { b as
|
|
45
|
-
import { c as
|
|
46
|
-
import { f as
|
|
40
|
+
import lt from "@mui/material/ListSubheader";
|
|
41
|
+
import dt from "@mui/material/ListItemAvatar";
|
|
42
|
+
import ut from "@mui/material/ListItemButton";
|
|
43
|
+
import mt from "@mui/material/ListItemText";
|
|
44
|
+
import { b as pt } from "../ManageIncome-Cypo9qY4.mjs";
|
|
45
|
+
import { c as Wn, M as $n, S as Pn } from "../ManageIncome-Cypo9qY4.mjs";
|
|
46
|
+
import { f as A } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
47
47
|
import { D as xe } from "../Drawer-kEE73B87.mjs";
|
|
48
|
-
import { b as
|
|
49
|
-
import { f as
|
|
50
|
-
import
|
|
48
|
+
import { b as O } from "../Localization-2MODESHW.mjs";
|
|
49
|
+
import { f as E, D as G } from "../Dialog-CWW597AF.mjs";
|
|
50
|
+
import k from "@mui/material/Box";
|
|
51
51
|
import { S as We } from "../StatusBar-BK_uYHAB.mjs";
|
|
52
52
|
import { u as ye } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
53
53
|
import { L as V } from "../Loader-DUaFpDGv.mjs";
|
|
54
|
-
import { M as
|
|
55
|
-
import { u as
|
|
56
|
-
import { M as
|
|
54
|
+
import { M as gt } from "../MiniWidgetContainer-BdgBvpga.mjs";
|
|
55
|
+
import { u as ht } from "../useDimensions-27p2evRx.mjs";
|
|
56
|
+
import { M as ft } from "../MicroWidgetContainer-CFdMGJKg.mjs";
|
|
57
57
|
const Q = {
|
|
58
58
|
gridRow: 1,
|
|
59
59
|
gridColumn: 1,
|
|
@@ -64,20 +64,20 @@ const Q = {
|
|
|
64
64
|
filled: !0,
|
|
65
65
|
sx: { color: "categories.income", fontSize: n, ...Q }
|
|
66
66
|
}
|
|
67
|
-
) }), Re = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(q, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Ge, { color: "error", filled: !0, sx: { fontSize: n, ...Q } }) }), Te = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(q, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Ne, { color: "success", filled: !0, sx: { fontSize: n, ...Q } }) }),
|
|
67
|
+
) }), Re = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(q, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Ge, { color: "error", filled: !0, sx: { fontSize: n, ...Q } }) }), Te = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(q, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Ne, { color: "success", filled: !0, sx: { fontSize: n, ...Q } }) }), xt = R(
|
|
68
68
|
({ day: t, outsideCurrentMonth: n, ...i }) => {
|
|
69
|
-
const { recurring: r } =
|
|
69
|
+
const { recurring: r } = T(), { selectedAccountGuids: o } = Z(), { recurrences: l, setSelectedDay: m } = v(), s = h.useMemo(
|
|
70
70
|
() => l.filter((d) => o.includes(d.accountGuid)),
|
|
71
71
|
[o, l]
|
|
72
72
|
).filter(
|
|
73
73
|
(d) => nt(d.occurredOnDate || d.expectedDate, t)
|
|
74
74
|
), u = s.some(
|
|
75
|
-
(d) => d.type !==
|
|
75
|
+
(d) => d.type !== L.Income && d.status === S.Upcoming
|
|
76
76
|
), f = s.some(
|
|
77
|
-
(d) => d.type !==
|
|
77
|
+
(d) => d.type !== L.Income && d.status === S.Missed
|
|
78
78
|
), x = s.some(
|
|
79
|
-
(d) => d.type !==
|
|
80
|
-
), C = s.some((d) => d.type ===
|
|
79
|
+
(d) => d.type !== L.Income && d.status === S.Paid
|
|
80
|
+
), C = s.some((d) => d.type === L.Income), y = (u ? 1 : 0) + (f ? 1 : 0) + (x ? 1 : 0) + (C ? 1 : 0);
|
|
81
81
|
return /* @__PURE__ */ e(
|
|
82
82
|
it,
|
|
83
83
|
{
|
|
@@ -122,8 +122,8 @@ const Q = {
|
|
|
122
122
|
), Y = ({ icon: t, label: n }) => /* @__PURE__ */ a(c, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
|
|
123
123
|
/* @__PURE__ */ e(t, {}),
|
|
124
124
|
/* @__PURE__ */ e(p, { variant: "XSmall", children: n })
|
|
125
|
-
] }),
|
|
126
|
-
const { recurring: t } =
|
|
125
|
+
] }), yt = R(() => {
|
|
126
|
+
const { recurring: t } = T();
|
|
127
127
|
return /* @__PURE__ */ a(
|
|
128
128
|
c,
|
|
129
129
|
{
|
|
@@ -141,22 +141,22 @@ const Q = {
|
|
|
141
141
|
]
|
|
142
142
|
}
|
|
143
143
|
);
|
|
144
|
-
}), Me = 58, $e =
|
|
145
|
-
const t = ge(), { onEvent: n } = J(), { selectedDay: i, setDateRange: r } =
|
|
144
|
+
}), Me = 58, $e = R(() => {
|
|
145
|
+
const t = ge(), { onEvent: n } = J(), { selectedDay: i, setDateRange: r } = v(), [o, l] = h.useState(
|
|
146
146
|
we(/* @__PURE__ */ new Date()) * B + Me
|
|
147
147
|
), m = (s) => {
|
|
148
148
|
l(we(s) * B + Me), r({
|
|
149
|
-
start:
|
|
149
|
+
start: W(s),
|
|
150
150
|
end: z(s)
|
|
151
|
-
}), n(
|
|
151
|
+
}), n(I.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
|
|
152
152
|
}, g = /* @__PURE__ */ e(
|
|
153
153
|
et,
|
|
154
154
|
{
|
|
155
|
-
minDate:
|
|
155
|
+
minDate: W(/* @__PURE__ */ new Date()),
|
|
156
156
|
onMonthChange: m,
|
|
157
157
|
showDaysOutsideCurrentMonth: !0,
|
|
158
158
|
slots: {
|
|
159
|
-
day:
|
|
159
|
+
day: xt
|
|
160
160
|
},
|
|
161
161
|
sx: {
|
|
162
162
|
"& .MuiPickersArrowSwitcher-button": {
|
|
@@ -204,10 +204,10 @@ const Q = {
|
|
|
204
204
|
return /* @__PURE__ */ e(c, { justifyContent: "center", children: /* @__PURE__ */ a(tt, { dateAdapter: Qe, children: [
|
|
205
205
|
i && g,
|
|
206
206
|
!i && g,
|
|
207
|
-
/* @__PURE__ */ e(
|
|
207
|
+
/* @__PURE__ */ e(yt, {})
|
|
208
208
|
] }) });
|
|
209
|
-
}),
|
|
210
|
-
if (t.type ===
|
|
209
|
+
}), Ct = (t) => {
|
|
210
|
+
if (t.type === L.Income)
|
|
211
211
|
return /* @__PURE__ */ e(be, {});
|
|
212
212
|
switch (t.status) {
|
|
213
213
|
case S.Missed:
|
|
@@ -217,25 +217,25 @@ const Q = {
|
|
|
217
217
|
default:
|
|
218
218
|
return /* @__PURE__ */ e(Ce, {});
|
|
219
219
|
}
|
|
220
|
-
},
|
|
220
|
+
}, bt = (t, n) => {
|
|
221
221
|
switch (t.status) {
|
|
222
222
|
case S.Paid:
|
|
223
|
-
return t.expectedDate ?
|
|
223
|
+
return t.expectedDate ? O(
|
|
224
224
|
n.paid_on,
|
|
225
|
-
|
|
225
|
+
E(
|
|
226
226
|
t.occurredOnDate || t.expectedDate,
|
|
227
|
-
|
|
227
|
+
G.MONTH_DAY
|
|
228
228
|
)
|
|
229
229
|
) : n.paid;
|
|
230
230
|
case S.Missed:
|
|
231
|
-
return
|
|
231
|
+
return O(
|
|
232
232
|
n.missed_on,
|
|
233
|
-
|
|
233
|
+
E(t.expectedDate, G.MONTH_DAY)
|
|
234
234
|
);
|
|
235
235
|
case S.Upcoming:
|
|
236
|
-
return
|
|
236
|
+
return O(
|
|
237
237
|
n.upcoming_on,
|
|
238
|
-
|
|
238
|
+
E(t.expectedDate, G.MONTH_DAY)
|
|
239
239
|
);
|
|
240
240
|
default:
|
|
241
241
|
return n.unknown;
|
|
@@ -247,24 +247,24 @@ const Q = {
|
|
|
247
247
|
},
|
|
248
248
|
showOrdinal: r = !1
|
|
249
249
|
}) => {
|
|
250
|
-
const { recurring: o } =
|
|
251
|
-
() => l.find((
|
|
250
|
+
const { recurring: o } = T(), { repeatingTransactions: l } = v(), [m, g] = h.useState(!1), s = h.useMemo(
|
|
251
|
+
() => l.find((D) => D.guid === t.repeatingTransactionGuid),
|
|
252
252
|
[t, l]
|
|
253
|
-
), u = t.type ===
|
|
253
|
+
), u = t.type === L.Income, f = t.status === S.Paid, x = t.status === S.Missed, C = t.status === S.Upcoming;
|
|
254
254
|
let y = o.paid?.toLowerCase();
|
|
255
255
|
return x ? y = o.missed?.toLowerCase() : C && (y = r ? Ie(o, s || {}, !0) : Ie(o, s || {}, !1)), //TODO: implement common/components/ListItemRow.tsx
|
|
256
256
|
/* @__PURE__ */ a(ke, { disableGutters: !0, disablePadding: !0, children: [
|
|
257
|
-
/* @__PURE__ */ a(
|
|
257
|
+
/* @__PURE__ */ a(ut, { onClick: () => {
|
|
258
258
|
g(!0), i(t);
|
|
259
259
|
}, children: [
|
|
260
|
-
/* @__PURE__ */ e(
|
|
260
|
+
/* @__PURE__ */ e(dt, { children: /* @__PURE__ */ e(
|
|
261
261
|
pe,
|
|
262
262
|
{
|
|
263
263
|
categoryGuid: t.categoryGuid,
|
|
264
264
|
merchantGuid: t.merchantGuid
|
|
265
265
|
}
|
|
266
266
|
) }),
|
|
267
|
-
/* @__PURE__ */ e(
|
|
267
|
+
/* @__PURE__ */ e(mt, { children: /* @__PURE__ */ a(
|
|
268
268
|
c,
|
|
269
269
|
{
|
|
270
270
|
direction: "row",
|
|
@@ -274,8 +274,8 @@ const Q = {
|
|
|
274
274
|
/* @__PURE__ */ a(c, { direction: "column", width: "50%", children: [
|
|
275
275
|
/* @__PURE__ */ e(p, { bold: !0, variant: "body1", children: t.name }),
|
|
276
276
|
/* @__PURE__ */ e(c, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */ a(c, { direction: "row", gap: 4, children: [
|
|
277
|
-
|
|
278
|
-
/* @__PURE__ */ e(p, { variant: "caption", children:
|
|
277
|
+
Ct(t),
|
|
278
|
+
/* @__PURE__ */ e(p, { variant: "caption", children: bt(t, o) })
|
|
279
279
|
] }) : /* @__PURE__ */ a(X, { children: [
|
|
280
280
|
t.institutionGuid && /* @__PURE__ */ e(
|
|
281
281
|
Ze,
|
|
@@ -291,7 +291,7 @@ const Q = {
|
|
|
291
291
|
/* @__PURE__ */ a(c, { alignItems: "flex-end", width: "100%", children: [
|
|
292
292
|
/* @__PURE__ */ a(p, { bold: !0, color: u ? "success.main" : "text.primary", variant: "body1", children: [
|
|
293
293
|
u ? "+" : "",
|
|
294
|
-
|
|
294
|
+
A(t.amount, "0,0.00")
|
|
295
295
|
] }),
|
|
296
296
|
!n && /* @__PURE__ */ a(
|
|
297
297
|
c,
|
|
@@ -322,9 +322,9 @@ const Q = {
|
|
|
322
322
|
ariaLabelClose: o.close_drawer_aria,
|
|
323
323
|
isOpen: m,
|
|
324
324
|
onClose: () => g(!1),
|
|
325
|
-
title: t.type ===
|
|
325
|
+
title: t.type === L.Income ? o.income_details : o.expense_details,
|
|
326
326
|
children: s && /* @__PURE__ */ e(
|
|
327
|
-
|
|
327
|
+
pt,
|
|
328
328
|
{
|
|
329
329
|
onDeleted: () => g(!1),
|
|
330
330
|
recurringTransaction: s
|
|
@@ -333,7 +333,7 @@ const Q = {
|
|
|
333
333
|
}
|
|
334
334
|
)
|
|
335
335
|
] });
|
|
336
|
-
}, H =
|
|
336
|
+
}, H = R(
|
|
337
337
|
({
|
|
338
338
|
recurrences: t,
|
|
339
339
|
isMini: n = !1,
|
|
@@ -342,7 +342,7 @@ const Q = {
|
|
|
342
342
|
sx: o = {},
|
|
343
343
|
title: l
|
|
344
344
|
}) => {
|
|
345
|
-
const { recurring: m } =
|
|
345
|
+
const { recurring: m } = T(), g = h.useMemo(() => at(t), [t]);
|
|
346
346
|
return /* @__PURE__ */ a(c, { sx: { gap: 8, mt: 4, ...o }, children: [
|
|
347
347
|
l && /* @__PURE__ */ a(
|
|
348
348
|
c,
|
|
@@ -350,7 +350,7 @@ const Q = {
|
|
|
350
350
|
sx: { alignItems: "top", direction: "row", justifyContent: "space-between", px: 24 },
|
|
351
351
|
children: [
|
|
352
352
|
/* @__PURE__ */ e(p, { bold: !0, variant: "body1", children: l }),
|
|
353
|
-
i && /* @__PURE__ */ e(
|
|
353
|
+
i && /* @__PURE__ */ e(ct, { onClick: i, sx: { mt: -12 }, variant: "text", children: m.reset })
|
|
354
354
|
]
|
|
355
355
|
}
|
|
356
356
|
),
|
|
@@ -368,7 +368,7 @@ const Q = {
|
|
|
368
368
|
/* @__PURE__ */ e(ke, { children: /* @__PURE__ */ e(
|
|
369
369
|
ve,
|
|
370
370
|
{
|
|
371
|
-
subheader: /* @__PURE__ */ e(
|
|
371
|
+
subheader: /* @__PURE__ */ e(lt, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ e(p, { bold: !0, variant: "caption", children: E(s.date, G.DAY_OF_WEEK_MONTH_DAY) }) }),
|
|
372
372
|
sx: { width: "100%" },
|
|
373
373
|
children: s.recurrences.map((f, x) => /* @__PURE__ */ e(h.Fragment, { children: /* @__PURE__ */ e(
|
|
374
374
|
Le,
|
|
@@ -384,35 +384,35 @@ const Q = {
|
|
|
384
384
|
] }, `recurrence-${u}`)) })
|
|
385
385
|
] });
|
|
386
386
|
}
|
|
387
|
-
), Ae =
|
|
387
|
+
), Ae = R(
|
|
388
388
|
({ expected: t, isExpense: n = !0, missed: i, paid: r, title: o, total: l, upcoming: m }) => {
|
|
389
|
-
const g = ge(), { isSmallMobile: s } = ye(), { recurring: u } =
|
|
389
|
+
const g = ge(), { isSmallMobile: s } = ye(), { recurring: u } = T(), f = h.useMemo(() => {
|
|
390
390
|
const x = [{ color: g.palette.success.main, percentage: `${r / t}` }];
|
|
391
391
|
return i && x.push({ color: g.palette.error.main, percentage: `${i / t}` }), x;
|
|
392
392
|
}, [r, t, i]);
|
|
393
393
|
return /* @__PURE__ */ a(c, { children: [
|
|
394
394
|
/* @__PURE__ */ a(c, { sx: { flexDirection: "row", justifyContent: "space-between", pb: 12 }, children: [
|
|
395
395
|
/* @__PURE__ */ e(p, { bold: !0, variant: "body1", children: `${o} (${l})` }),
|
|
396
|
-
/* @__PURE__ */ e(p, { bold: !0, color: n ? "text.primary" : "success.main", variant: "body1", children: `${n ? "-" : "+"}${
|
|
396
|
+
/* @__PURE__ */ e(p, { bold: !0, color: n ? "text.primary" : "success.main", variant: "body1", children: `${n ? "-" : "+"}${A(t, "0,0.00")}` })
|
|
397
397
|
] }),
|
|
398
398
|
/* @__PURE__ */ e(We, { data: f, height: 12 }),
|
|
399
399
|
/* @__PURE__ */ a(c, { sx: { alignItems: "center", flexDirection: "row", gap: 2, my: 8 }, children: [
|
|
400
|
-
/* @__PURE__ */ e(
|
|
401
|
-
!s && /* @__PURE__ */ e(p, { bold: !0, variant: "body2", children:
|
|
400
|
+
/* @__PURE__ */ e(k, { sx: { bgcolor: "success.main", height: 8, mr: 8, width: 8 } }),
|
|
401
|
+
!s && /* @__PURE__ */ e(p, { bold: !0, variant: "body2", children: A(r, "0,0.00") }),
|
|
402
402
|
/* @__PURE__ */ e(p, { variant: "caption", children: u.paid?.toLowerCase() }),
|
|
403
403
|
i !== void 0 && /* @__PURE__ */ a(X, { children: [
|
|
404
|
-
/* @__PURE__ */ e(
|
|
405
|
-
!s && /* @__PURE__ */ e(p, { bold: !0, variant: "body2", children:
|
|
404
|
+
/* @__PURE__ */ e(k, { sx: { bgcolor: "error.main", height: 8, ml: 16, mr: 8, width: 8 } }),
|
|
405
|
+
!s && /* @__PURE__ */ e(p, { bold: !0, variant: "body2", children: A(i, "0,0.00") }),
|
|
406
406
|
/* @__PURE__ */ e(p, { variant: "caption", children: u.missed?.toLowerCase() })
|
|
407
407
|
] }),
|
|
408
|
-
/* @__PURE__ */ e(
|
|
409
|
-
!s && /* @__PURE__ */ e(p, { bold: !0, variant: "body2", children:
|
|
408
|
+
/* @__PURE__ */ e(k, { sx: { bgcolor: "divider", height: 8, ml: 16, mr: 8, width: 8 } }),
|
|
409
|
+
!s && /* @__PURE__ */ e(p, { bold: !0, variant: "body2", children: A(m, "0,0.00") }),
|
|
410
410
|
/* @__PURE__ */ e(p, { variant: "caption", children: u.upcoming })
|
|
411
411
|
] })
|
|
412
412
|
] });
|
|
413
413
|
}
|
|
414
|
-
),
|
|
415
|
-
const { recurring: t } =
|
|
414
|
+
), Rt = R(() => {
|
|
415
|
+
const { recurring: t } = T(), { availableWidth: n } = Oe(), { isDesktop: i, isSmallMobile: r, isMobile: o } = ye(n), { onEvent: l } = J(), {
|
|
416
416
|
currentMonthExpenses: m,
|
|
417
417
|
currentMonthIncome: g,
|
|
418
418
|
dateRange: s,
|
|
@@ -422,33 +422,33 @@ const Q = {
|
|
|
422
422
|
pastRecurrences: C,
|
|
423
423
|
paidExpenseTotal: y,
|
|
424
424
|
paidIncomeTotal: d,
|
|
425
|
-
selectedDay:
|
|
426
|
-
selectedDayRecurrences:
|
|
425
|
+
selectedDay: D,
|
|
426
|
+
selectedDayRecurrences: _,
|
|
427
427
|
setDateRange: F,
|
|
428
428
|
upcomingExpenseTotal: te,
|
|
429
429
|
upcomingIncomeTotal: ne,
|
|
430
430
|
upcomingRecurrences: U
|
|
431
|
-
} =
|
|
432
|
-
|
|
433
|
-
}, j = (
|
|
434
|
-
l(
|
|
435
|
-
transaction_guid:
|
|
431
|
+
} = v(), [$, w] = h.useState(0), ie = Ue(s.start, /* @__PURE__ */ new Date()), M = (b, oe) => {
|
|
432
|
+
w(oe);
|
|
433
|
+
}, j = (b) => {
|
|
434
|
+
l(I.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
|
|
435
|
+
transaction_guid: b.transaction?.guid
|
|
436
436
|
});
|
|
437
|
-
}, K = (
|
|
438
|
-
l(
|
|
439
|
-
transaction_guid:
|
|
437
|
+
}, K = (b) => {
|
|
438
|
+
l(I.RECURRING_TRANSACTIONS_CLICK_PAID, {
|
|
439
|
+
transaction_guid: b.transaction?.guid
|
|
440
440
|
});
|
|
441
441
|
}, P = () => {
|
|
442
|
-
const
|
|
442
|
+
const b = ze(s.start, 1);
|
|
443
443
|
F({
|
|
444
|
-
start:
|
|
445
|
-
end: z(
|
|
444
|
+
start: W(b),
|
|
445
|
+
end: z(b)
|
|
446
446
|
});
|
|
447
447
|
}, re = () => {
|
|
448
|
-
const
|
|
448
|
+
const b = Fe(s.start, 1);
|
|
449
449
|
F({
|
|
450
|
-
start:
|
|
451
|
-
end: z(
|
|
450
|
+
start: W(b),
|
|
451
|
+
end: z(b)
|
|
452
452
|
});
|
|
453
453
|
};
|
|
454
454
|
return /* @__PURE__ */ a(
|
|
@@ -462,9 +462,9 @@ const Q = {
|
|
|
462
462
|
/* @__PURE__ */ a(se, { md: !0, sm: 12, width: "100%", children: [
|
|
463
463
|
/* @__PURE__ */ a(c, { sx: { gap: 16, px: i ? 48 : 24 }, children: [
|
|
464
464
|
/* @__PURE__ */ a(c, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
465
|
-
/* @__PURE__ */ e(Je, { children:
|
|
465
|
+
/* @__PURE__ */ e(Je, { children: O(
|
|
466
466
|
t.header_title,
|
|
467
|
-
|
|
467
|
+
E(s.start, G.MONTH_LONG)
|
|
468
468
|
) }),
|
|
469
469
|
!i && /* @__PURE__ */ a(c, { direction: "row", gap: 4, children: [
|
|
470
470
|
/* @__PURE__ */ e(
|
|
@@ -511,7 +511,7 @@ const Q = {
|
|
|
511
511
|
)
|
|
512
512
|
] }),
|
|
513
513
|
!i && /* @__PURE__ */ a(c, { sx: { px: o ? 0 : 24 }, children: [
|
|
514
|
-
/* @__PURE__ */ a(je, { onChange:
|
|
514
|
+
/* @__PURE__ */ a(je, { onChange: M, value: $, variant: "fullWidth", children: [
|
|
515
515
|
/* @__PURE__ */ e(
|
|
516
516
|
_e,
|
|
517
517
|
{
|
|
@@ -547,10 +547,10 @@ const Q = {
|
|
|
547
547
|
H,
|
|
548
548
|
{
|
|
549
549
|
onRecurrenceClick: K,
|
|
550
|
-
recurrences:
|
|
551
|
-
title:
|
|
550
|
+
recurrences: _ || C,
|
|
551
|
+
title: D ? O(
|
|
552
552
|
t.day_transactions,
|
|
553
|
-
|
|
553
|
+
E(D, G.MONTH_DAY)
|
|
554
554
|
) : t.past_transactions
|
|
555
555
|
}
|
|
556
556
|
)
|
|
@@ -558,17 +558,19 @@ const Q = {
|
|
|
558
558
|
]
|
|
559
559
|
}
|
|
560
560
|
);
|
|
561
|
-
}),
|
|
562
|
-
const { accounts: i } = he(), { recurring: r } =
|
|
561
|
+
}), In = R(({ onBackClick: t, sx: n = {} }) => {
|
|
562
|
+
const { accounts: i } = he(), { recurring: r } = T(), { isCopyLoaded: o, isInitialized: l, selectedAccountGuids: m, setSelectedAccounts: g } = Z(), { isDataLoaded: s, loadRepeatingTransactions: u, setDateRange: f } = v(), { setFilter: x } = fe(), { onEvent: C } = J(), { onLoad: y } = ot(), { isMobile: d } = ye(), [D, _] = h.useState(!1);
|
|
563
563
|
return h.useEffect(() => {
|
|
564
564
|
g(i);
|
|
565
565
|
}, [i]), h.useEffect(() => {
|
|
566
566
|
l && (x({
|
|
567
567
|
dateRange: { start: me(ue(), 90), end: de() },
|
|
568
568
|
accounts: m
|
|
569
|
-
}), f({ start:
|
|
569
|
+
}), f({ start: W(/* @__PURE__ */ new Date()), end: z(/* @__PURE__ */ new Date()) }), u().finally(() => {
|
|
570
|
+
y?.("RecurringTransactionsWidget");
|
|
571
|
+
}));
|
|
570
572
|
}, [l]), o ? /* @__PURE__ */ a(
|
|
571
|
-
|
|
573
|
+
st,
|
|
572
574
|
{
|
|
573
575
|
accountOptions: i,
|
|
574
576
|
actions: [
|
|
@@ -576,17 +578,17 @@ const Q = {
|
|
|
576
578
|
label: r.action_title,
|
|
577
579
|
iconName: "credit_card_gear",
|
|
578
580
|
onClick: () => {
|
|
579
|
-
|
|
581
|
+
_(!0), C(I.RECURRING_TRANSACTIONS_CLICK_SETTINGS);
|
|
580
582
|
}
|
|
581
583
|
}
|
|
582
584
|
],
|
|
583
|
-
hasDivider:
|
|
584
|
-
onAccountsFilterClick: () => C(
|
|
585
|
+
hasDivider: d,
|
|
586
|
+
onAccountsFilterClick: () => C(I.RECURRING_TRANSACTIONS_CLICK_FILTER),
|
|
585
587
|
onBackClick: t,
|
|
586
588
|
sx: n,
|
|
587
589
|
title: r.title,
|
|
588
590
|
children: [
|
|
589
|
-
l && s ? /* @__PURE__ */ e(
|
|
591
|
+
l && s ? /* @__PURE__ */ e(Rt, {}) : /* @__PURE__ */ a(c, { direction: "column", p: 48, spacing: 24, children: [
|
|
590
592
|
/* @__PURE__ */ e(ae, { height: 100, variant: "rounded", width: "100%" }),
|
|
591
593
|
/* @__PURE__ */ e(ae, { height: 100, variant: "rounded", width: "100%" }),
|
|
592
594
|
/* @__PURE__ */ e(ae, { height: 600, variant: "rounded", width: "100%" })
|
|
@@ -595,8 +597,8 @@ const Q = {
|
|
|
595
597
|
xe,
|
|
596
598
|
{
|
|
597
599
|
ariaLabelClose: r.close_drawer_aria,
|
|
598
|
-
isOpen:
|
|
599
|
-
onClose: () =>
|
|
600
|
+
isOpen: D,
|
|
601
|
+
onClose: () => _(!1),
|
|
600
602
|
shouldShowHeaderBorders: !1,
|
|
601
603
|
title: r.action_title,
|
|
602
604
|
children: /* @__PURE__ */ e(Ee, {})
|
|
@@ -605,8 +607,8 @@ const Q = {
|
|
|
605
607
|
]
|
|
606
608
|
}
|
|
607
609
|
) : /* @__PURE__ */ e(V, {});
|
|
608
|
-
}),
|
|
609
|
-
const { recurring: t } =
|
|
610
|
+
}), Tt = R(() => {
|
|
611
|
+
const { recurring: t } = T(), { availableWidth: n } = Oe(), { selectedDay: i, selectedDayRecurrences: r, setSelectedDay: o, upcomingRecurrences: l } = v(), m = n < 750;
|
|
610
612
|
return /* @__PURE__ */ a(c, { flexDirection: m ? "column" : "row", width: "100%", children: [
|
|
611
613
|
/* @__PURE__ */ e($e, {}),
|
|
612
614
|
!m && /* @__PURE__ */ e(le, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
|
|
@@ -617,16 +619,16 @@ const Q = {
|
|
|
617
619
|
onResetClick: i ? () => o(i) : void 0,
|
|
618
620
|
recurrences: r || l.slice(0, 5),
|
|
619
621
|
sx: { width: m ? "100%" : "calc(100% - 336px)", mt: 12 },
|
|
620
|
-
title: i ?
|
|
622
|
+
title: i ? O(
|
|
621
623
|
t.day_transactions,
|
|
622
|
-
|
|
624
|
+
E(i, G.MONTH_DAY)
|
|
623
625
|
) : t.upcoming_activity
|
|
624
626
|
}
|
|
625
627
|
)
|
|
626
628
|
] });
|
|
627
|
-
}),
|
|
629
|
+
}), vn = R(
|
|
628
630
|
({ onPrimaryCtaClick: t, sx: n }) => {
|
|
629
|
-
const { accounts: i } = he(), { recurring: r } =
|
|
631
|
+
const { accounts: i } = he(), { recurring: r } = T(), { setFilter: o } = fe(), { isDataLoaded: l, loadRepeatingTransactions: m } = v(), { isCopyLoaded: g, isInitialized: s, setSelectedAccounts: u, selectedAccountGuids: f } = Z();
|
|
630
632
|
return h.useEffect(() => {
|
|
631
633
|
s && u(i);
|
|
632
634
|
}, [s]), h.useEffect(() => {
|
|
@@ -635,7 +637,7 @@ const Q = {
|
|
|
635
637
|
accounts: f
|
|
636
638
|
}), m().finally());
|
|
637
639
|
}, [f]), !g || !s ? /* @__PURE__ */ e(V, {}) : /* @__PURE__ */ e(
|
|
638
|
-
|
|
640
|
+
gt,
|
|
639
641
|
{
|
|
640
642
|
className: "mx-exp-recurring-transactions-miniwidget",
|
|
641
643
|
onPrimaryCtaClick: t,
|
|
@@ -643,11 +645,11 @@ const Q = {
|
|
|
643
645
|
subTitle: r.sub_title,
|
|
644
646
|
sx: n,
|
|
645
647
|
title: r.mini_title,
|
|
646
|
-
children: l ? /* @__PURE__ */ e(
|
|
648
|
+
children: l ? /* @__PURE__ */ e(Tt, {}) : /* @__PURE__ */ e(V, {})
|
|
647
649
|
}
|
|
648
650
|
);
|
|
649
651
|
}
|
|
650
|
-
),
|
|
652
|
+
), Dt = ({
|
|
651
653
|
upcomingRecurrences: t,
|
|
652
654
|
maxLogos: n = 3
|
|
653
655
|
}) => /* @__PURE__ */ e(c, { sx: { flexDirection: "row", gap: 4 }, children: t?.slice(0, n).map((i, r) => /* @__PURE__ */ e(
|
|
@@ -657,21 +659,21 @@ const Q = {
|
|
|
657
659
|
merchantGuid: i.merchantGuid || ""
|
|
658
660
|
},
|
|
659
661
|
`${i.categoryGuid}-${i.merchantGuid}-${r}`
|
|
660
|
-
)) }),
|
|
662
|
+
)) }), St = ({
|
|
661
663
|
upcomingRecurrences: t,
|
|
662
664
|
logoSize: n = 32,
|
|
663
665
|
maxLogos: i = 3
|
|
664
666
|
}) => {
|
|
665
667
|
const r = (o) => o * (n / 2);
|
|
666
668
|
return /* @__PURE__ */ e(
|
|
667
|
-
|
|
669
|
+
k,
|
|
668
670
|
{
|
|
669
671
|
sx: {
|
|
670
672
|
position: "relative",
|
|
671
673
|
width: 64
|
|
672
674
|
},
|
|
673
675
|
children: t.map((o, l) => l < i ? /* @__PURE__ */ e(
|
|
674
|
-
|
|
676
|
+
k,
|
|
675
677
|
{
|
|
676
678
|
sx: {
|
|
677
679
|
borderRadius: "4px",
|
|
@@ -694,7 +696,7 @@ const Q = {
|
|
|
694
696
|
) : null)
|
|
695
697
|
}
|
|
696
698
|
);
|
|
697
|
-
},
|
|
699
|
+
}, _t = ({
|
|
698
700
|
amount: t,
|
|
699
701
|
bgcolor: n,
|
|
700
702
|
isLargeScreen: i,
|
|
@@ -702,7 +704,7 @@ const Q = {
|
|
|
702
704
|
label: o
|
|
703
705
|
}) => /* @__PURE__ */ a(c, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
|
|
704
706
|
/* @__PURE__ */ e(
|
|
705
|
-
|
|
707
|
+
k,
|
|
706
708
|
{
|
|
707
709
|
sx: {
|
|
708
710
|
borderRadius: "2px",
|
|
@@ -713,11 +715,11 @@ const Q = {
|
|
|
713
715
|
}
|
|
714
716
|
),
|
|
715
717
|
/* @__PURE__ */ a(c, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
|
|
716
|
-
!r && /* @__PURE__ */ e(p, { bold: !0, variant: "caption", children:
|
|
718
|
+
!r && /* @__PURE__ */ e(p, { bold: !0, variant: "caption", children: A(t, t === 0 || !i ? "0,0" : "0,0.00") }),
|
|
717
719
|
/* @__PURE__ */ e(p, { variant: "caption", children: o })
|
|
718
720
|
] })
|
|
719
|
-
] }),
|
|
720
|
-
const { recurring: t } =
|
|
721
|
+
] }), wt = R(() => {
|
|
722
|
+
const { recurring: t } = T();
|
|
721
723
|
return /* @__PURE__ */ a(c, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
|
|
722
724
|
/* @__PURE__ */ e(qe, { size: 32 }),
|
|
723
725
|
/* @__PURE__ */ a(c, { children: [
|
|
@@ -725,83 +727,83 @@ const Q = {
|
|
|
725
727
|
/* @__PURE__ */ e(ce, { color: "text.secondary", variant: "subtitle2", children: t.zero_state_content_description })
|
|
726
728
|
] })
|
|
727
729
|
] });
|
|
728
|
-
}),
|
|
730
|
+
}), Mn = R(
|
|
729
731
|
({ onCTAClick: t }) => {
|
|
730
|
-
const [n, i] = h.useState(!1), { onEvent: r } = J(), o = ge(), { accounts: l } = he(), [m, { width: g }] =
|
|
732
|
+
const [n, i] = h.useState(!1), { onEvent: r } = J(), o = ge(), { accounts: l } = he(), [m, { width: g }] = ht(), { isCopyLoaded: s, isInitialized: u, selectedAccountGuids: f, setSelectedAccounts: x } = Z(), {
|
|
731
733
|
loadRepeatingTransactions: C,
|
|
732
734
|
upcomingRecurrences: y,
|
|
733
735
|
expenseTotal: d,
|
|
734
|
-
missedExpenseTotal:
|
|
735
|
-
paidExpenseTotal:
|
|
736
|
+
missedExpenseTotal: D,
|
|
737
|
+
paidExpenseTotal: _,
|
|
736
738
|
repeatingTransactions: F,
|
|
737
739
|
setDateRange: te,
|
|
738
740
|
upcomingExpenseTotal: ne,
|
|
739
741
|
isDataLoaded: U
|
|
740
|
-
} =
|
|
742
|
+
} = v(), { setFilter: $ } = fe(), { recurring: w, budgets: ie } = T();
|
|
741
743
|
h.useEffect(() => {
|
|
742
744
|
x(l);
|
|
743
745
|
}, [l]), h.useEffect(() => {
|
|
744
746
|
u && ($({
|
|
745
747
|
dateRange: { start: me(ue(), 90), end: de() },
|
|
746
748
|
accounts: f
|
|
747
|
-
}), te({ start:
|
|
749
|
+
}), te({ start: W(/* @__PURE__ */ new Date()), end: z(/* @__PURE__ */ new Date()) }), C().finally(), i(!0));
|
|
748
750
|
}, [u]), h.useEffect(() => {
|
|
749
|
-
n && r(
|
|
751
|
+
n && r(I.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
|
|
750
752
|
state: y.length > 0 ? "default" : "zeroState"
|
|
751
753
|
});
|
|
752
754
|
}, [n]);
|
|
753
|
-
const
|
|
754
|
-
const
|
|
755
|
-
{ color: o.palette.success.main, percentage: `${
|
|
755
|
+
const M = g <= 288, j = g >= 450, K = h.useMemo(() => {
|
|
756
|
+
const N = [
|
|
757
|
+
{ color: o.palette.success.main, percentage: `${_ / d}` }
|
|
756
758
|
];
|
|
757
|
-
return
|
|
759
|
+
return D && N.push({
|
|
758
760
|
color: o.palette.error.main,
|
|
759
|
-
percentage: `${
|
|
760
|
-
}),
|
|
761
|
+
percentage: `${D / d}`
|
|
762
|
+
}), N;
|
|
761
763
|
}, [
|
|
762
|
-
|
|
764
|
+
_,
|
|
763
765
|
d,
|
|
764
|
-
|
|
766
|
+
D,
|
|
765
767
|
o.palette.success.main,
|
|
766
768
|
o.palette.error.main
|
|
767
|
-
]), P = h.useMemo(() =>
|
|
769
|
+
]), P = h.useMemo(() => A(d, d === 0 ? "0,0" : "0,0.00"), [d]), re = () => {
|
|
768
770
|
r(
|
|
769
|
-
y.length > 0 ?
|
|
771
|
+
y.length > 0 ? I.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : I.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
|
|
770
772
|
), t();
|
|
771
773
|
};
|
|
772
774
|
if (!s || !n || !U) return /* @__PURE__ */ e(V, { height: 100 });
|
|
773
|
-
const
|
|
774
|
-
|
|
775
|
+
const b = 32, oe = y.length > 0, Pe = () => oe ? M ? /* @__PURE__ */ e(
|
|
776
|
+
St,
|
|
775
777
|
{
|
|
776
|
-
logoSize:
|
|
778
|
+
logoSize: b,
|
|
777
779
|
maxLogos: 3,
|
|
778
780
|
upcomingRecurrences: y.slice(0, 3)
|
|
779
781
|
}
|
|
780
|
-
) : /* @__PURE__ */ e(
|
|
782
|
+
) : /* @__PURE__ */ e(Dt, { maxLogos: 3, upcomingRecurrences: y.slice(0, 3) }) : /* @__PURE__ */ e(c, { sx: { width: M ? 64 : 104 } }), Be = [
|
|
781
783
|
{
|
|
782
|
-
amount:
|
|
784
|
+
amount: _,
|
|
783
785
|
bgColor: "success.main",
|
|
784
|
-
label:
|
|
786
|
+
label: w.paid
|
|
785
787
|
},
|
|
786
788
|
{
|
|
787
|
-
amount:
|
|
789
|
+
amount: D,
|
|
788
790
|
bgColor: "error.main",
|
|
789
|
-
label:
|
|
791
|
+
label: w.missed
|
|
790
792
|
},
|
|
791
793
|
{
|
|
792
794
|
amount: ne,
|
|
793
795
|
bgColor: "border.light",
|
|
794
|
-
label:
|
|
796
|
+
label: w.upcoming
|
|
795
797
|
}
|
|
796
798
|
], De = !F?.length;
|
|
797
799
|
return /* @__PURE__ */ e(
|
|
798
|
-
|
|
800
|
+
ft,
|
|
799
801
|
{
|
|
800
802
|
className: "mx-recurring-transaction-microwidget",
|
|
801
|
-
ctaLabel: De ? ie.get_started_cta :
|
|
803
|
+
ctaLabel: De ? ie.get_started_cta : w.primary_cta,
|
|
802
804
|
onCTAClick: re,
|
|
803
|
-
title:
|
|
804
|
-
children: De ? /* @__PURE__ */ e(
|
|
805
|
+
title: w.recurring_expenses,
|
|
806
|
+
children: De ? /* @__PURE__ */ e(wt, {}) : /* @__PURE__ */ a(X, { children: [
|
|
805
807
|
/* @__PURE__ */ a(
|
|
806
808
|
c,
|
|
807
809
|
{
|
|
@@ -815,7 +817,7 @@ const Q = {
|
|
|
815
817
|
c,
|
|
816
818
|
{
|
|
817
819
|
sx: [
|
|
818
|
-
P.length >= 10 &&
|
|
820
|
+
P.length >= 10 && M ? { flexDirection: "column" } : { flexDirection: "row", gap: 2 },
|
|
819
821
|
{
|
|
820
822
|
alignItems: "baseline",
|
|
821
823
|
overflow: "hidden",
|
|
@@ -828,7 +830,7 @@ const Q = {
|
|
|
828
830
|
p,
|
|
829
831
|
{
|
|
830
832
|
sx: { width: "100%" },
|
|
831
|
-
variant: P.length >= 10 &&
|
|
833
|
+
variant: P.length >= 10 && M ? "H3" : "H2",
|
|
832
834
|
children: P
|
|
833
835
|
}
|
|
834
836
|
),
|
|
@@ -839,7 +841,7 @@ const Q = {
|
|
|
839
841
|
pr: 12
|
|
840
842
|
},
|
|
841
843
|
variant: "XSmall",
|
|
842
|
-
children:
|
|
844
|
+
children: w.expected
|
|
843
845
|
}
|
|
844
846
|
)
|
|
845
847
|
]
|
|
@@ -860,14 +862,14 @@ const Q = {
|
|
|
860
862
|
gap: 16,
|
|
861
863
|
mt: 4
|
|
862
864
|
},
|
|
863
|
-
children: Be.map((
|
|
864
|
-
|
|
865
|
+
children: Be.map((N, He) => /* @__PURE__ */ e(
|
|
866
|
+
_t,
|
|
865
867
|
{
|
|
866
|
-
amount:
|
|
867
|
-
bgcolor:
|
|
868
|
+
amount: N.amount,
|
|
869
|
+
bgcolor: N.bgColor,
|
|
868
870
|
isLargeScreen: j,
|
|
869
|
-
isSmallScreen:
|
|
870
|
-
label:
|
|
871
|
+
isSmallScreen: M,
|
|
872
|
+
label: N.label
|
|
871
873
|
},
|
|
872
874
|
`recurrence-legend-${He}`
|
|
873
875
|
))
|
|
@@ -878,9 +880,9 @@ const Q = {
|
|
|
878
880
|
}
|
|
879
881
|
);
|
|
880
882
|
}
|
|
881
|
-
),
|
|
883
|
+
), Ln = R(
|
|
882
884
|
({ isOpen: t, onClose: n, selectedTab: i }) => {
|
|
883
|
-
const { cashflow: r } =
|
|
885
|
+
const { cashflow: r } = T();
|
|
884
886
|
return /* @__PURE__ */ e(
|
|
885
887
|
xe,
|
|
886
888
|
{
|
|
@@ -894,14 +896,14 @@ const Q = {
|
|
|
894
896
|
}
|
|
895
897
|
);
|
|
896
898
|
export {
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
899
|
+
Wn as AddRecurringTransactionDetails,
|
|
900
|
+
Gn as ManageExpenses,
|
|
901
|
+
$n as ManageIncome,
|
|
900
902
|
Ee as RecurringSettings,
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
903
|
+
Ln as RecurringSettingsDrawer,
|
|
904
|
+
Mn as RecurringTransactionsMicroWidget,
|
|
905
|
+
vn as RecurringTransactionsMiniWidget,
|
|
906
|
+
On as RecurringTransactionsStore,
|
|
907
|
+
In as RecurringTransactionsWidget,
|
|
908
|
+
Pn as SelectTransaction
|
|
907
909
|
};
|