@mx-cartographer/experiences 9.0.15-alpha.al4 → 9.0.15
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 +0 -4
- package/dist/{AccountDetailsDrawer-CZPeLsCq.mjs → AccountDetailsDrawer-BRA7SYQ_.mjs} +2 -2
- package/dist/{EmbeddedCard-DH8vQ3qN.mjs → EmbeddedCard-BxgB26dd.mjs} +181 -183
- package/dist/{ExportCsvAction-C9KWH3Az.mjs → ExportCsvAction-BV69DnpC.mjs} +1 -1
- package/dist/ListItemWrapper-BHIbqx7E.mjs +42 -0
- package/dist/{ManageIncome-Dcsnnz86.mjs → ManageIncome-Dn9Y3Z2U.mjs} +7 -7
- package/dist/{RecurringSettings-D8hBbXV_.mjs → RecurringSettings-BWlg0zsv.mjs} +1 -1
- package/dist/{TransactionDetails-roZ5xLq8.mjs → TransactionDetails-DQ_eE7M4.mjs} +1 -1
- package/dist/accounts/index.es.js +2 -2
- package/dist/budgets/index.es.js +3 -3
- package/dist/cashflow/index.es.js +4 -4
- package/dist/common/components/ListItemWrapper.d.ts +1 -2
- package/dist/common/index.es.js +1 -1
- package/dist/finstrong/index.es.js +4 -4
- package/dist/insights/index.es.js +2 -2
- package/dist/recurringtransactions/index.es.js +138 -150
- package/dist/spending/index.es.js +2 -2
- package/dist/transactions/components/shared/transactionlist/TransactionRow.d.ts +0 -1
- package/dist/transactions/index.es.js +5 -5
- package/dist/trends/index.es.js +3 -3
- package/package.json +1 -1
- package/dist/ListItemWrapper-DRse79Iu.mjs +0 -43
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as a, Fragment as $ } from "react/jsx-runtime";
|
|
2
2
|
import x from "react";
|
|
3
3
|
import { observer as T } from "mobx-react-lite";
|
|
4
4
|
import { endOfMonth as z } from "date-fns/endOfMonth";
|
|
@@ -6,10 +6,10 @@ import { endOfToday as J } from "date-fns/endOfToday";
|
|
|
6
6
|
import { startOfMonth as k } from "date-fns/startOfMonth";
|
|
7
7
|
import { startOfToday as Q } from "date-fns/startOfToday";
|
|
8
8
|
import { subDays as ee } from "date-fns/subDays";
|
|
9
|
-
import
|
|
9
|
+
import $e from "@mui/material/Alert";
|
|
10
10
|
import Fe from "@mui/material/Snackbar";
|
|
11
|
-
import { R as
|
|
12
|
-
import { M as Jn } from "../RecurringSettings-
|
|
11
|
+
import { R as _e } from "../RecurringSettings-BWlg0zsv.mjs";
|
|
12
|
+
import { M as Jn } from "../RecurringSettings-BWlg0zsv.mjs";
|
|
13
13
|
import { addMonths as Ue } from "date-fns/addMonths";
|
|
14
14
|
import { subMonths as Ye } from "date-fns/subMonths";
|
|
15
15
|
import { isBefore as je } from "date-fns/isBefore";
|
|
@@ -20,7 +20,7 @@ import fe from "@mui/material/Tab";
|
|
|
20
20
|
import Ke from "@mui/material/Tabs";
|
|
21
21
|
import { Cancel as Se, CheckCircle as we, Schedule as Ve, MonetizationOn as qe, ChevronLeft as Ze, ChevronRight as Xe, CurrencyExchange as Je } from "@mxenabled/mx-icons";
|
|
22
22
|
import { Text as h, MerchantLogo as te, InstitutionLogo as Qe, H3 as et, H2 as tt, P as Z } from "@mxenabled/mxui";
|
|
23
|
-
import { g as nt, L as O, b as
|
|
23
|
+
import { g as nt, L as O, b as N } from "../Localization-DnoVyBNK.mjs";
|
|
24
24
|
import { getWeeksInMonth as xe } from "date-fns/getWeeksInMonth";
|
|
25
25
|
import { enCA as rt } from "date-fns/locale/en-CA";
|
|
26
26
|
import { enUS as be } from "date-fns/locale/en-US";
|
|
@@ -35,8 +35,8 @@ import { isSameDay as dt } from "date-fns/isSameDay";
|
|
|
35
35
|
import ut from "@mui/material/Badge";
|
|
36
36
|
import { PickersDay as mt } from "@mui/x-date-pickers/PickersDay";
|
|
37
37
|
import { I as F } from "../IconBacking-DgT8DCeh.mjs";
|
|
38
|
-
import { u as b, a as U, h as
|
|
39
|
-
import { b as E, a as
|
|
38
|
+
import { u as b, a as U, h as _, f as Y, D as Ie, g as re } from "../hooks-97sNJ_lf.mjs";
|
|
39
|
+
import { b as E, a as D, g as ye, e as pt, R as gt } from "../RecurringTransactionsUtil-CHWmqvW5.mjs";
|
|
40
40
|
import { f as I, D as M } from "../DateFormats-HudZ3Bjs.mjs";
|
|
41
41
|
import { T as W } from "../Sizes-DISGrlUg.mjs";
|
|
42
42
|
import { A as v } from "../Analytics-WeZYytR0.mjs";
|
|
@@ -49,19 +49,19 @@ import xt from "@mui/material/ListItemAvatar";
|
|
|
49
49
|
import bt from "@mui/material/ListItemButton";
|
|
50
50
|
import yt from "@mui/material/ListItemText";
|
|
51
51
|
import { f as L } from "../NumberFormatting--XMeeBfr.mjs";
|
|
52
|
-
import
|
|
52
|
+
import G from "@mui/material/Box";
|
|
53
53
|
import { u as ve } from "../useScreenSize-mWpmnh5w.mjs";
|
|
54
54
|
import { S as Le } from "../StatusBar-CPfSXe80.mjs";
|
|
55
|
-
import { d as Ct } from "../ManageIncome-
|
|
56
|
-
import { c as er, M as tr, S as nr } from "../ManageIncome-
|
|
55
|
+
import { d as Ct } from "../ManageIncome-Dn9Y3Z2U.mjs";
|
|
56
|
+
import { c as er, M as tr, S as nr } from "../ManageIncome-Dn9Y3Z2U.mjs";
|
|
57
57
|
import { D as ie } from "../Drawer-DsnW2o0v.mjs";
|
|
58
58
|
import { S as Ae } from "../SkeletonLoader-BaNboJjD.mjs";
|
|
59
59
|
import { u as oe } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
|
|
60
60
|
import { L as ae } from "../Loader-CxeBwuPG.mjs";
|
|
61
61
|
import { W as Rt } from "../WidgetContainer-DJnp6t6c.mjs";
|
|
62
62
|
import { M as Tt } from "../MiniWidgetContainer-Bmv_WeUd.mjs";
|
|
63
|
-
import { u as
|
|
64
|
-
import { M as
|
|
63
|
+
import { u as Dt } from "../useDimensions-CeDR9V8N.mjs";
|
|
64
|
+
import { M as _t } from "../MicroWidgetContainer-B2NnKBgW.mjs";
|
|
65
65
|
const j = {
|
|
66
66
|
gridRow: 1,
|
|
67
67
|
gridColumn: 1,
|
|
@@ -106,18 +106,18 @@ const j = {
|
|
|
106
106
|
}
|
|
107
107
|
), St = T(
|
|
108
108
|
({ day: t, outsideCurrentMonth: n, ...r }) => {
|
|
109
|
-
const { recurring: i } = b(), { selectedAccountGuids: o } = U(), { recurrences: s, setSelectedDay: m } =
|
|
109
|
+
const { recurring: i } = b(), { selectedAccountGuids: o } = U(), { recurrences: s, setSelectedDay: m } = _(), c = x.useMemo(
|
|
110
110
|
() => s.filter((f) => o.includes(f.accountGuid)),
|
|
111
111
|
[o, s]
|
|
112
112
|
).filter(
|
|
113
113
|
(f) => dt(f.occurredOnDate || f.expectedDate, t)
|
|
114
|
-
), l =
|
|
115
|
-
(f) => f.type !== E.Income && f.status ===
|
|
116
|
-
), u =
|
|
117
|
-
(f) => f.type !== E.Income && f.status ===
|
|
118
|
-
), g =
|
|
119
|
-
(f) => f.type !== E.Income && f.status ===
|
|
120
|
-
), y =
|
|
114
|
+
), l = c.some(
|
|
115
|
+
(f) => f.type !== E.Income && f.status === D.Upcoming
|
|
116
|
+
), u = c.some(
|
|
117
|
+
(f) => f.type !== E.Income && f.status === D.Missed
|
|
118
|
+
), g = c.some(
|
|
119
|
+
(f) => f.type !== E.Income && f.status === D.Paid
|
|
120
|
+
), y = c.some((f) => f.type === E.Income), C = (l ? 1 : 0) + (u ? 1 : 0) + (g ? 1 : 0) + (y ? 1 : 0), S = [
|
|
121
121
|
g && i.paid,
|
|
122
122
|
u && i.missed,
|
|
123
123
|
l && i.upcoming,
|
|
@@ -126,7 +126,7 @@ const j = {
|
|
|
126
126
|
return /* @__PURE__ */ e(
|
|
127
127
|
ut,
|
|
128
128
|
{
|
|
129
|
-
badgeContent:
|
|
129
|
+
badgeContent: c.length > 0 && /* @__PURE__ */ a($, { children: [
|
|
130
130
|
u && /* @__PURE__ */ e(le, { isOffset: !0 }),
|
|
131
131
|
g && /* @__PURE__ */ e(de, { isOffset: !0 }),
|
|
132
132
|
l && /* @__PURE__ */ e(se, { isOffset: !0 }),
|
|
@@ -163,12 +163,12 @@ const j = {
|
|
|
163
163
|
}
|
|
164
164
|
);
|
|
165
165
|
}
|
|
166
|
-
),
|
|
166
|
+
), B = ({ icon: t, label: n }) => /* @__PURE__ */ a(d, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
|
|
167
167
|
/* @__PURE__ */ e(t, {}),
|
|
168
168
|
/* @__PURE__ */ e(h, { variant: "caption", children: n })
|
|
169
169
|
] }), wt = T(() => {
|
|
170
170
|
const { recurring: t } = b();
|
|
171
|
-
return /* @__PURE__ */
|
|
171
|
+
return /* @__PURE__ */ a(
|
|
172
172
|
d,
|
|
173
173
|
{
|
|
174
174
|
alignItems: "center",
|
|
@@ -178,10 +178,10 @@ const j = {
|
|
|
178
178
|
justifyContent: "center",
|
|
179
179
|
mt: 12,
|
|
180
180
|
children: [
|
|
181
|
-
/* @__PURE__ */ e(
|
|
182
|
-
/* @__PURE__ */ e(
|
|
183
|
-
/* @__PURE__ */ e(
|
|
184
|
-
/* @__PURE__ */ e(
|
|
181
|
+
/* @__PURE__ */ e(B, { icon: se, label: t.expense }),
|
|
182
|
+
/* @__PURE__ */ e(B, { icon: ce, label: t.income }),
|
|
183
|
+
/* @__PURE__ */ e(B, { icon: le, label: t.missed }),
|
|
184
|
+
/* @__PURE__ */ e(B, { icon: de, label: t.paid })
|
|
185
185
|
]
|
|
186
186
|
}
|
|
187
187
|
);
|
|
@@ -195,14 +195,14 @@ const j = {
|
|
|
195
195
|
[O.ES]: it
|
|
196
196
|
}[t] || be;
|
|
197
197
|
}, Ee = T(() => {
|
|
198
|
-
const t = ne(), { onEvent: n } = Y(), { recurring: r } = b(), { selectedDay: i, setDateRange: o } =
|
|
198
|
+
const t = ne(), { onEvent: n } = Y(), { recurring: r } = b(), { selectedDay: i, setDateRange: o } = _(), [s, m] = x.useState(
|
|
199
199
|
xe(/* @__PURE__ */ new Date()) * W + Re
|
|
200
200
|
), p = (u) => {
|
|
201
201
|
m(xe(u) * W + Re), o({
|
|
202
202
|
start: k(u),
|
|
203
203
|
end: z(u)
|
|
204
|
-
}),
|
|
205
|
-
},
|
|
204
|
+
}), c(u), n(v.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
|
|
205
|
+
}, c = (u) => {
|
|
206
206
|
u && requestAnimationFrame(() => {
|
|
207
207
|
const g = document.getElementById("recurrence-list");
|
|
208
208
|
g?.setAttribute("tabindex", "-1"), g?.focus();
|
|
@@ -211,7 +211,7 @@ const j = {
|
|
|
211
211
|
ct,
|
|
212
212
|
{
|
|
213
213
|
minDate: k(/* @__PURE__ */ new Date()),
|
|
214
|
-
onChange:
|
|
214
|
+
onChange: c,
|
|
215
215
|
onMonthChange: p,
|
|
216
216
|
showDaysOutsideCurrentMonth: !0,
|
|
217
217
|
slots: {
|
|
@@ -264,7 +264,7 @@ const j = {
|
|
|
264
264
|
views: ["day"]
|
|
265
265
|
}
|
|
266
266
|
);
|
|
267
|
-
return /* @__PURE__ */ e(d, { "aria-labelledby": "calendar-label", justifyContent: "center", role: "group", children: /* @__PURE__ */
|
|
267
|
+
return /* @__PURE__ */ e(d, { "aria-labelledby": "calendar-label", justifyContent: "center", role: "group", children: /* @__PURE__ */ a(lt, { adapterLocale: It(), dateAdapter: st, children: [
|
|
268
268
|
i && l,
|
|
269
269
|
!i && l,
|
|
270
270
|
/* @__PURE__ */ e(h, { id: "calendar-label", sx: { alignSelf: "center" }, variant: "body2", children: r.calendar_tooltip }),
|
|
@@ -274,30 +274,30 @@ const j = {
|
|
|
274
274
|
if (t.type === E.Income)
|
|
275
275
|
return /* @__PURE__ */ e(ce, {});
|
|
276
276
|
switch (t.status) {
|
|
277
|
-
case
|
|
277
|
+
case D.Missed:
|
|
278
278
|
return /* @__PURE__ */ e(le, {});
|
|
279
|
-
case
|
|
279
|
+
case D.Paid:
|
|
280
280
|
return /* @__PURE__ */ e(de, {});
|
|
281
281
|
default:
|
|
282
282
|
return /* @__PURE__ */ e(se, {});
|
|
283
283
|
}
|
|
284
284
|
}, vt = (t, n) => {
|
|
285
285
|
switch (t.status) {
|
|
286
|
-
case
|
|
287
|
-
return t.expectedDate ?
|
|
286
|
+
case D.Paid:
|
|
287
|
+
return t.expectedDate ? N(
|
|
288
288
|
n.paid_on,
|
|
289
289
|
I(
|
|
290
290
|
t.occurredOnDate || t.expectedDate,
|
|
291
291
|
M.MONTH_DAY
|
|
292
292
|
)
|
|
293
293
|
) : n.paid;
|
|
294
|
-
case
|
|
295
|
-
return
|
|
294
|
+
case D.Missed:
|
|
295
|
+
return N(
|
|
296
296
|
n.missed_on,
|
|
297
297
|
I(t.expectedDate, M.MONTH_DAY)
|
|
298
298
|
);
|
|
299
|
-
case
|
|
300
|
-
return
|
|
299
|
+
case D.Upcoming:
|
|
300
|
+
return N(
|
|
301
301
|
n.upcoming_on,
|
|
302
302
|
I(t.expectedDate, M.MONTH_DAY)
|
|
303
303
|
);
|
|
@@ -311,13 +311,13 @@ const j = {
|
|
|
311
311
|
},
|
|
312
312
|
showOrdinal: i = !1
|
|
313
313
|
}) => {
|
|
314
|
-
const { recurring: o } = b(), { detailedRepeatingTransactions: s } =
|
|
314
|
+
const { recurring: o } = b(), { detailedRepeatingTransactions: s } = _(), m = x.useMemo(
|
|
315
315
|
() => s.find((C) => C.guid === t.repeatingTransactionGuid),
|
|
316
316
|
[t, s]
|
|
317
|
-
), p = t.type === E.Income,
|
|
317
|
+
), p = t.type === E.Income, c = t.status === D.Paid, l = t.status === D.Missed, u = t.status === D.Upcoming;
|
|
318
318
|
let g = o.paid?.toLowerCase();
|
|
319
319
|
return l ? g = o.missed?.toLowerCase() : u && (g = i ? ye(o, m || {}, !0) : ye(o, m || {}, !1)), //TODO: implement common/components/ListItemRow.tsx
|
|
320
|
-
/* @__PURE__ */ e(Me, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */
|
|
320
|
+
/* @__PURE__ */ e(Me, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ a(bt, { onClick: () => {
|
|
321
321
|
r(t);
|
|
322
322
|
}, children: [
|
|
323
323
|
/* @__PURE__ */ e(xt, { children: /* @__PURE__ */ e(
|
|
@@ -327,23 +327,23 @@ const j = {
|
|
|
327
327
|
merchantGuid: t.merchantGuid
|
|
328
328
|
}
|
|
329
329
|
) }),
|
|
330
|
-
/* @__PURE__ */ e(yt, { children: /* @__PURE__ */
|
|
330
|
+
/* @__PURE__ */ e(yt, { children: /* @__PURE__ */ a(
|
|
331
331
|
d,
|
|
332
332
|
{
|
|
333
333
|
direction: "row",
|
|
334
334
|
gap: 4,
|
|
335
335
|
sx: { justifyContent: "space-between", textOverflow: "ellipsis", textWrap: "nowrap" },
|
|
336
336
|
children: [
|
|
337
|
-
/* @__PURE__ */
|
|
337
|
+
/* @__PURE__ */ a(d, { direction: "column", width: "50%", children: [
|
|
338
338
|
/* @__PURE__ */ e(h, { bold: !0, variant: "body1", children: t.name }),
|
|
339
|
-
/* @__PURE__ */ e(d, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */
|
|
339
|
+
/* @__PURE__ */ e(d, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */ a(d, { direction: "row", gap: 4, children: [
|
|
340
340
|
Mt(t),
|
|
341
341
|
/* @__PURE__ */ e(h, { variant: "caption", children: vt(t, o) })
|
|
342
|
-
] }) : /* @__PURE__ */
|
|
342
|
+
] }) : /* @__PURE__ */ a($, { children: [
|
|
343
343
|
t.institutionGuid && /* @__PURE__ */ e(
|
|
344
344
|
Qe,
|
|
345
345
|
{
|
|
346
|
-
alt:
|
|
346
|
+
alt: `${t.institutionName} institution logo`,
|
|
347
347
|
institutionGuid: t.institutionGuid,
|
|
348
348
|
size: 12
|
|
349
349
|
}
|
|
@@ -351,12 +351,12 @@ const j = {
|
|
|
351
351
|
/* @__PURE__ */ e(h, { sx: { maxWidth: 250 }, variant: "caption", children: t.institutionName })
|
|
352
352
|
] }) })
|
|
353
353
|
] }),
|
|
354
|
-
/* @__PURE__ */
|
|
355
|
-
/* @__PURE__ */
|
|
354
|
+
/* @__PURE__ */ a(d, { alignItems: "flex-end", width: "100%", children: [
|
|
355
|
+
/* @__PURE__ */ a(h, { bold: !0, color: p ? "success.main" : "text.primary", variant: "body1", children: [
|
|
356
356
|
p ? "+" : "",
|
|
357
357
|
L(t.amount, "0,0.00")
|
|
358
358
|
] }),
|
|
359
|
-
!n && /* @__PURE__ */
|
|
359
|
+
!n && /* @__PURE__ */ a(
|
|
360
360
|
d,
|
|
361
361
|
{
|
|
362
362
|
direction: "row",
|
|
@@ -368,7 +368,7 @@ const j = {
|
|
|
368
368
|
width: "100%"
|
|
369
369
|
},
|
|
370
370
|
children: [
|
|
371
|
-
|
|
371
|
+
c && /* @__PURE__ */ e(we, { color: "success", filled: !0, size: 12 }),
|
|
372
372
|
l && /* @__PURE__ */ e(Se, { color: "error", filled: !0, size: 12 }),
|
|
373
373
|
/* @__PURE__ */ e(h, { bold: !0, color: "text.secondary", variant: "caption", children: g })
|
|
374
374
|
]
|
|
@@ -389,8 +389,8 @@ const j = {
|
|
|
389
389
|
title: s
|
|
390
390
|
}) => {
|
|
391
391
|
const { recurring: m } = b(), p = x.useMemo(() => pt(t), [t]);
|
|
392
|
-
return /* @__PURE__ */
|
|
393
|
-
s && /* @__PURE__ */
|
|
392
|
+
return /* @__PURE__ */ a(d, { id: "recurrence-list", sx: { gap: 8, mt: 4, ...o }, "tab-index": -1, children: [
|
|
393
|
+
s && /* @__PURE__ */ a(
|
|
394
394
|
d,
|
|
395
395
|
{
|
|
396
396
|
sx: {
|
|
@@ -405,33 +405,23 @@ const j = {
|
|
|
405
405
|
]
|
|
406
406
|
}
|
|
407
407
|
),
|
|
408
|
-
t.length === 0 ? /* @__PURE__ */ e(h, { fontStyle: "italic", sx: { py: 24, textAlign: "center" }, children: m.no_activities }) : /* @__PURE__ */ e(Ce, {
|
|
408
|
+
t.length === 0 ? /* @__PURE__ */ e(h, { fontStyle: "italic", sx: { py: 24, textAlign: "center" }, children: m.no_activities }) : /* @__PURE__ */ e(Ce, { children: n ? t.map((c, l) => /* @__PURE__ */ a(x.Fragment, { children: [
|
|
409
409
|
/* @__PURE__ */ e(
|
|
410
410
|
Te,
|
|
411
411
|
{
|
|
412
412
|
isMini: n,
|
|
413
413
|
onRecurrenceClick: i,
|
|
414
|
-
recurrence:
|
|
414
|
+
recurrence: c
|
|
415
415
|
}
|
|
416
416
|
),
|
|
417
417
|
/* @__PURE__ */ e(X, { sx: { mx: 24 } })
|
|
418
|
-
] }, `recurrence-${l}`)) : p.map((
|
|
418
|
+
] }, `recurrence-${l}`)) : p.map((c, l) => /* @__PURE__ */ a(x.Fragment, { children: [
|
|
419
419
|
/* @__PURE__ */ e(Me, { children: /* @__PURE__ */ e(
|
|
420
420
|
Ce,
|
|
421
421
|
{
|
|
422
|
-
"
|
|
423
|
-
subheader: /* @__PURE__ */ e(
|
|
424
|
-
ft,
|
|
425
|
-
{
|
|
426
|
-
"aria-hidden": "true",
|
|
427
|
-
id: `date-group-header-${a.id}`,
|
|
428
|
-
role: "presentation",
|
|
429
|
-
sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 },
|
|
430
|
-
children: /* @__PURE__ */ e(h, { bold: !0, variant: "caption", children: I(a.date, M.DAY_OF_WEEK_MONTH_DAY) })
|
|
431
|
-
}
|
|
432
|
-
),
|
|
422
|
+
subheader: /* @__PURE__ */ e(ft, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ e(h, { bold: !0, variant: "caption", children: I(c.date, M.DAY_OF_WEEK_MONTH_DAY) }) }),
|
|
433
423
|
sx: { width: "100%" },
|
|
434
|
-
children:
|
|
424
|
+
children: c.recurrences.map((u, g) => /* @__PURE__ */ e(x.Fragment, { children: /* @__PURE__ */ e(
|
|
435
425
|
Te,
|
|
436
426
|
{
|
|
437
427
|
isMini: n,
|
|
@@ -440,45 +430,45 @@ const j = {
|
|
|
440
430
|
}
|
|
441
431
|
) }, `day-recurrence-${g}`))
|
|
442
432
|
}
|
|
443
|
-
) },
|
|
433
|
+
) }, c.id),
|
|
444
434
|
/* @__PURE__ */ e(X, { sx: { mx: 24 } })
|
|
445
435
|
] }, `recurrence-${l}`)) })
|
|
446
436
|
] });
|
|
447
437
|
}
|
|
448
|
-
),
|
|
438
|
+
), De = T(
|
|
449
439
|
({ expected: t, isExpense: n = !0, missed: r, paid: i, title: o, total: s, upcoming: m }) => {
|
|
450
|
-
const p = ne(), { isSmallMobile:
|
|
440
|
+
const p = ne(), { isSmallMobile: c } = ve(), { recurring: l } = b(), u = x.useMemo(() => {
|
|
451
441
|
const g = [{ color: p.palette.success.main, percentage: `${i / t}` }];
|
|
452
442
|
return r && g.push({ color: p.palette.error.main, percentage: `${r / t}` }), g;
|
|
453
443
|
}, [i, t, r]);
|
|
454
|
-
return /* @__PURE__ */
|
|
455
|
-
/* @__PURE__ */
|
|
444
|
+
return /* @__PURE__ */ a(d, { children: [
|
|
445
|
+
/* @__PURE__ */ a(d, { sx: { flexDirection: "row", justifyContent: "space-between", pb: 12 }, children: [
|
|
456
446
|
/* @__PURE__ */ e(h, { bold: !0, variant: "body1", children: `${o} (${s})` }),
|
|
457
447
|
/* @__PURE__ */ e(h, { bold: !0, color: n ? "text.primary" : "success.main", variant: "body1", children: `${n ? "-" : "+"}${L(t, "0,0.00")}` })
|
|
458
448
|
] }),
|
|
459
449
|
/* @__PURE__ */ e(Le, { data: u, height: 12 }),
|
|
460
|
-
/* @__PURE__ */
|
|
461
|
-
/* @__PURE__ */ e(
|
|
462
|
-
!
|
|
450
|
+
/* @__PURE__ */ a(d, { sx: { alignItems: "center", flexDirection: "row", gap: 2, my: 8 }, children: [
|
|
451
|
+
/* @__PURE__ */ e(G, { sx: { bgcolor: "success.main", height: 8, mr: 8, width: 8 } }),
|
|
452
|
+
!c && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children: L(i, "0,0.00") }),
|
|
463
453
|
/* @__PURE__ */ e(h, { variant: "caption", children: l.paid?.toLowerCase() }),
|
|
464
|
-
r !== void 0 && /* @__PURE__ */
|
|
465
|
-
/* @__PURE__ */ e(
|
|
466
|
-
!
|
|
454
|
+
r !== void 0 && /* @__PURE__ */ a($, { children: [
|
|
455
|
+
/* @__PURE__ */ e(G, { sx: { bgcolor: "error.main", height: 8, ml: 16, mr: 8, width: 8 } }),
|
|
456
|
+
!c && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children: L(r, "0,0.00") }),
|
|
467
457
|
/* @__PURE__ */ e(h, { variant: "caption", children: l.missed?.toLowerCase() })
|
|
468
458
|
] }),
|
|
469
|
-
/* @__PURE__ */ e(
|
|
470
|
-
!
|
|
459
|
+
/* @__PURE__ */ e(G, { sx: { bgcolor: "divider", height: 8, ml: 16, mr: 8, width: 8 } }),
|
|
460
|
+
!c && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children: L(m, "0,0.00") }),
|
|
471
461
|
/* @__PURE__ */ e(h, { variant: "caption", children: l.upcoming?.toLowerCase() })
|
|
472
462
|
] })
|
|
473
463
|
] });
|
|
474
464
|
}
|
|
475
|
-
),
|
|
465
|
+
), Ne = T(() => {
|
|
476
466
|
const { recurring: t } = b(), {
|
|
477
467
|
selectedRecurrence: n,
|
|
478
468
|
selectedRepeatingTransaction: r,
|
|
479
469
|
setSelectedRecurrence: i,
|
|
480
470
|
setSelectedRepeatingTransactionGuid: o
|
|
481
|
-
} =
|
|
471
|
+
} = _(), s = () => {
|
|
482
472
|
o(null), i(null);
|
|
483
473
|
};
|
|
484
474
|
return /* @__PURE__ */ e(
|
|
@@ -502,7 +492,7 @@ const j = {
|
|
|
502
492
|
const { recurring: t } = b(), { availableWidth: n } = Ie(), { isDesktop: r, isSmallMobile: i, isMobile: o } = ve(n), { onEvent: s } = Y(), {
|
|
503
493
|
currentMonthExpenses: m,
|
|
504
494
|
currentMonthIncome: p,
|
|
505
|
-
dateRange:
|
|
495
|
+
dateRange: c,
|
|
506
496
|
expenseTotal: l,
|
|
507
497
|
incomeTotal: u,
|
|
508
498
|
missedExpenseTotal: g,
|
|
@@ -514,11 +504,11 @@ const j = {
|
|
|
514
504
|
setDateRange: w,
|
|
515
505
|
setSelectedRecurrence: H,
|
|
516
506
|
setSelectedRepeatingTransactionGuid: ue,
|
|
517
|
-
upcomingExpenseTotal:
|
|
507
|
+
upcomingExpenseTotal: Ge,
|
|
518
508
|
upcomingIncomeTotal: ke,
|
|
519
509
|
upcomingRecurrences: me
|
|
520
|
-
} =
|
|
521
|
-
Oe(
|
|
510
|
+
} = _(), [V, Oe] = x.useState(0), We = je(c.start, /* @__PURE__ */ new Date()), Pe = (R, Be) => {
|
|
511
|
+
Oe(Be);
|
|
522
512
|
}, pe = (R) => {
|
|
523
513
|
ue(R.repeatingTransactionGuid), H(R), s(v.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
|
|
524
514
|
transaction_guid: R.transaction?.guid
|
|
@@ -528,19 +518,19 @@ const j = {
|
|
|
528
518
|
transaction_guid: R.transaction?.guid
|
|
529
519
|
});
|
|
530
520
|
}, ze = () => {
|
|
531
|
-
const R = Ue(
|
|
521
|
+
const R = Ue(c.start, 1);
|
|
532
522
|
w({
|
|
533
523
|
start: k(R),
|
|
534
524
|
end: z(R)
|
|
535
525
|
});
|
|
536
526
|
}, He = () => {
|
|
537
|
-
const R = Ye(
|
|
527
|
+
const R = Ye(c.start, 1);
|
|
538
528
|
w({
|
|
539
529
|
start: k(R),
|
|
540
530
|
end: z(R)
|
|
541
531
|
});
|
|
542
532
|
};
|
|
543
|
-
return /* @__PURE__ */
|
|
533
|
+
return /* @__PURE__ */ a(
|
|
544
534
|
q,
|
|
545
535
|
{
|
|
546
536
|
container: !0,
|
|
@@ -548,14 +538,14 @@ const j = {
|
|
|
548
538
|
pt: 16
|
|
549
539
|
},
|
|
550
540
|
children: [
|
|
551
|
-
/* @__PURE__ */
|
|
552
|
-
/* @__PURE__ */
|
|
553
|
-
/* @__PURE__ */
|
|
554
|
-
/* @__PURE__ */ e(tt, { variant: "h3", children:
|
|
541
|
+
/* @__PURE__ */ a(q, { size: { sm: 12, md: "grow" }, width: "100%", children: [
|
|
542
|
+
/* @__PURE__ */ a(d, { sx: { gap: 16, px: r ? 48 : 24 }, children: [
|
|
543
|
+
/* @__PURE__ */ a(d, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
544
|
+
/* @__PURE__ */ e(tt, { variant: "h3", children: N(
|
|
555
545
|
t.header_title,
|
|
556
|
-
I(
|
|
546
|
+
I(c.start, M.MONTH_LONG)
|
|
557
547
|
) }),
|
|
558
|
-
!r && /* @__PURE__ */
|
|
548
|
+
!r && /* @__PURE__ */ a(d, { direction: "row", gap: 4, children: [
|
|
559
549
|
/* @__PURE__ */ e(
|
|
560
550
|
he,
|
|
561
551
|
{
|
|
@@ -569,18 +559,18 @@ const j = {
|
|
|
569
559
|
] })
|
|
570
560
|
] }),
|
|
571
561
|
/* @__PURE__ */ e(
|
|
572
|
-
|
|
562
|
+
De,
|
|
573
563
|
{
|
|
574
564
|
expected: l,
|
|
575
565
|
missed: g,
|
|
576
566
|
paid: C,
|
|
577
567
|
title: t.expenses,
|
|
578
568
|
total: m.length,
|
|
579
|
-
upcoming:
|
|
569
|
+
upcoming: Ge
|
|
580
570
|
}
|
|
581
571
|
),
|
|
582
572
|
/* @__PURE__ */ e(
|
|
583
|
-
|
|
573
|
+
De,
|
|
584
574
|
{
|
|
585
575
|
expected: u,
|
|
586
576
|
isExpense: !1,
|
|
@@ -599,8 +589,8 @@ const j = {
|
|
|
599
589
|
}
|
|
600
590
|
)
|
|
601
591
|
] }),
|
|
602
|
-
!r && /* @__PURE__ */
|
|
603
|
-
/* @__PURE__ */
|
|
592
|
+
!r && /* @__PURE__ */ a(d, { sx: { px: o ? 0 : 24 }, children: [
|
|
593
|
+
/* @__PURE__ */ a(Ke, { onChange: Pe, value: V, variant: "fullWidth", children: [
|
|
604
594
|
/* @__PURE__ */ e(
|
|
605
595
|
fe,
|
|
606
596
|
{
|
|
@@ -618,52 +608,50 @@ const j = {
|
|
|
618
608
|
P,
|
|
619
609
|
{
|
|
620
610
|
onRecurrenceClick: pe,
|
|
621
|
-
recurrences: me
|
|
622
|
-
title: i ? t.upcoming : t.upcoming_activity
|
|
611
|
+
recurrences: me
|
|
623
612
|
}
|
|
624
613
|
),
|
|
625
614
|
V === 1 && /* @__PURE__ */ e(
|
|
626
615
|
P,
|
|
627
616
|
{
|
|
628
617
|
onRecurrenceClick: ge,
|
|
629
|
-
recurrences: y
|
|
630
|
-
title: i ? t.past : t.past_transactions
|
|
618
|
+
recurrences: y
|
|
631
619
|
}
|
|
632
620
|
)
|
|
633
621
|
] })
|
|
634
622
|
] }),
|
|
635
|
-
r && /* @__PURE__ */ e(q, { size: { xs: "auto" }, sx: { minWidth: 450 }, children: /* @__PURE__ */
|
|
623
|
+
r && /* @__PURE__ */ e(q, { size: { xs: "auto" }, sx: { minWidth: 450 }, children: /* @__PURE__ */ a(d, { gap: 24, children: [
|
|
636
624
|
/* @__PURE__ */ e(Ee, {}),
|
|
637
625
|
/* @__PURE__ */ e(
|
|
638
626
|
P,
|
|
639
627
|
{
|
|
640
628
|
onRecurrenceClick: ge,
|
|
641
629
|
recurrences: f || y,
|
|
642
|
-
title: A ?
|
|
630
|
+
title: A ? N(
|
|
643
631
|
t.day_transactions,
|
|
644
632
|
I(A, M.MONTH_DAY)
|
|
645
633
|
) : t.past_transactions
|
|
646
634
|
}
|
|
647
635
|
)
|
|
648
636
|
] }) }),
|
|
649
|
-
/* @__PURE__ */ e(
|
|
637
|
+
/* @__PURE__ */ e(Ne, {})
|
|
650
638
|
]
|
|
651
639
|
}
|
|
652
640
|
);
|
|
653
641
|
}), jn = T(
|
|
654
642
|
({ onBackClick: t, onMenuClick: n, sx: r = {} }) => {
|
|
655
|
-
const { recurring: i } = b(), { isInitialized: o, selectedAccountGuids: s } = U(), { alert: m, isDataLoaded: p, loadRepeatingTransactionData:
|
|
643
|
+
const { recurring: i } = b(), { isInitialized: o, selectedAccountGuids: s } = U(), { alert: m, isDataLoaded: p, loadRepeatingTransactionData: c, setAlert: l, setDateRange: u } = _(), { setFilter: g } = re(), { onEvent: y } = Y(), [C, S] = x.useState(!1);
|
|
656
644
|
return oe({
|
|
657
645
|
widgetName: "RecurringTransactionsWidget",
|
|
658
646
|
isLoaded: p
|
|
659
647
|
}), x.useEffect(() => {
|
|
660
|
-
p ||
|
|
648
|
+
p || c().finally();
|
|
661
649
|
}, []), x.useEffect(() => {
|
|
662
650
|
g({
|
|
663
651
|
dateRange: { start: ee(Q(), 90), end: J() },
|
|
664
652
|
accounts: s
|
|
665
653
|
}), u({ start: k(/* @__PURE__ */ new Date()), end: z(/* @__PURE__ */ new Date()) });
|
|
666
|
-
}, [s]), o ? /* @__PURE__ */
|
|
654
|
+
}, [s]), o ? /* @__PURE__ */ a(
|
|
667
655
|
Rt,
|
|
668
656
|
{
|
|
669
657
|
actions: [
|
|
@@ -691,7 +679,7 @@ const j = {
|
|
|
691
679
|
onClose: () => S(!1),
|
|
692
680
|
shouldShowHeaderBorders: !1,
|
|
693
681
|
title: i.action_title,
|
|
694
|
-
children: /* @__PURE__ */ e(
|
|
682
|
+
children: /* @__PURE__ */ e(_e, {})
|
|
695
683
|
}
|
|
696
684
|
),
|
|
697
685
|
/* @__PURE__ */ e(
|
|
@@ -701,7 +689,7 @@ const j = {
|
|
|
701
689
|
autoHideDuration: 3500,
|
|
702
690
|
onClose: () => l(""),
|
|
703
691
|
open: !!m.message,
|
|
704
|
-
children: /* @__PURE__ */ e(
|
|
692
|
+
children: /* @__PURE__ */ e($e, { onClose: () => l(""), severity: m.severity, variant: "filled", children: m.message })
|
|
705
693
|
}
|
|
706
694
|
)
|
|
707
695
|
]
|
|
@@ -716,21 +704,21 @@ const j = {
|
|
|
716
704
|
setSelectedRecurrence: s,
|
|
717
705
|
setSelectedRepeatingTransactionGuid: m,
|
|
718
706
|
upcomingRecurrences: p
|
|
719
|
-
} =
|
|
707
|
+
} = _(), c = (u) => {
|
|
720
708
|
m(u.repeatingTransactionGuid), s(u);
|
|
721
709
|
}, l = n < 750;
|
|
722
|
-
return /* @__PURE__ */
|
|
710
|
+
return /* @__PURE__ */ a(d, { flexDirection: l ? "column" : "row", width: "100%", children: [
|
|
723
711
|
/* @__PURE__ */ e(Ee, {}),
|
|
724
712
|
!l && /* @__PURE__ */ e(X, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
|
|
725
713
|
/* @__PURE__ */ e(
|
|
726
714
|
P,
|
|
727
715
|
{
|
|
728
716
|
isMini: !0,
|
|
729
|
-
onRecurrenceClick:
|
|
717
|
+
onRecurrenceClick: c,
|
|
730
718
|
onResetClick: r ? () => o(r) : void 0,
|
|
731
719
|
recurrences: i || p.slice(0, 5),
|
|
732
720
|
sx: { width: l ? "100%" : "calc(100% - 336px)", mt: 12 },
|
|
733
|
-
title: r ?
|
|
721
|
+
title: r ? N(
|
|
734
722
|
t.day_transactions,
|
|
735
723
|
I(r, M.MONTH_DAY)
|
|
736
724
|
) : t.upcoming_activity
|
|
@@ -739,7 +727,7 @@ const j = {
|
|
|
739
727
|
] });
|
|
740
728
|
}), Kn = T(
|
|
741
729
|
({ onPrimaryCtaClick: t, sx: n }) => {
|
|
742
|
-
const { recurring: r } = b(), { setFilter: i } = re(), { isDataLoaded: o, loadRepeatingTransactionData: s } =
|
|
730
|
+
const { recurring: r } = b(), { setFilter: i } = re(), { isDataLoaded: o, loadRepeatingTransactionData: s } = _(), { isInitialized: m, selectedAccountGuids: p } = U();
|
|
743
731
|
return oe({
|
|
744
732
|
widgetName: "RecurringTransactionsMiniWidget",
|
|
745
733
|
isLoaded: o
|
|
@@ -750,7 +738,7 @@ const j = {
|
|
|
750
738
|
dateRange: { start: ee(Q(), 90), end: J() },
|
|
751
739
|
accounts: p
|
|
752
740
|
});
|
|
753
|
-
}, [p]), m ? /* @__PURE__ */
|
|
741
|
+
}, [p]), m ? /* @__PURE__ */ a(
|
|
754
742
|
Tt,
|
|
755
743
|
{
|
|
756
744
|
className: "mx-exp-recurring-transactions-miniwidget",
|
|
@@ -762,29 +750,29 @@ const j = {
|
|
|
762
750
|
title: r.mini_title,
|
|
763
751
|
children: [
|
|
764
752
|
o ? /* @__PURE__ */ e(At, {}) : /* @__PURE__ */ e(Ae, { sx: { mx: 16 }, variant: "list" }),
|
|
765
|
-
/* @__PURE__ */ e(
|
|
753
|
+
/* @__PURE__ */ e(Ne, {})
|
|
766
754
|
]
|
|
767
755
|
}
|
|
768
756
|
) : /* @__PURE__ */ e(ae, {});
|
|
769
757
|
}
|
|
770
758
|
), Et = T(() => {
|
|
771
759
|
const { recurring: t } = b();
|
|
772
|
-
return /* @__PURE__ */
|
|
760
|
+
return /* @__PURE__ */ a(d, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
|
|
773
761
|
/* @__PURE__ */ e(Je, { size: 32 }),
|
|
774
|
-
/* @__PURE__ */
|
|
762
|
+
/* @__PURE__ */ a(d, { children: [
|
|
775
763
|
/* @__PURE__ */ e(Z, { fontWeight: 600, variant: "body1", children: t.zero_state_content_header }),
|
|
776
764
|
/* @__PURE__ */ e(Z, { color: "text.secondary", variant: "subtitle2", children: t.zero_state_content_description })
|
|
777
765
|
] })
|
|
778
766
|
] });
|
|
779
|
-
}),
|
|
767
|
+
}), Nt = ({
|
|
780
768
|
amount: t,
|
|
781
769
|
bgcolor: n,
|
|
782
770
|
isLargeScreen: r,
|
|
783
771
|
isSmallScreen: i,
|
|
784
772
|
label: o
|
|
785
|
-
}) => /* @__PURE__ */
|
|
773
|
+
}) => /* @__PURE__ */ a(d, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
|
|
786
774
|
/* @__PURE__ */ e(
|
|
787
|
-
|
|
775
|
+
G,
|
|
788
776
|
{
|
|
789
777
|
sx: {
|
|
790
778
|
borderRadius: "2px",
|
|
@@ -794,25 +782,25 @@ const j = {
|
|
|
794
782
|
}
|
|
795
783
|
}
|
|
796
784
|
),
|
|
797
|
-
/* @__PURE__ */
|
|
785
|
+
/* @__PURE__ */ a(d, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
|
|
798
786
|
!i && /* @__PURE__ */ e(h, { bold: !0, variant: "caption", children: L(t, t === 0 || !r ? "0,0" : "0,0.00") }),
|
|
799
787
|
/* @__PURE__ */ e(h, { variant: "caption", children: o })
|
|
800
788
|
] })
|
|
801
|
-
] }),
|
|
789
|
+
] }), Gt = ({
|
|
802
790
|
upcomingRecurrences: t,
|
|
803
791
|
logoSize: n = 32,
|
|
804
792
|
maxLogos: r = 3
|
|
805
793
|
}) => {
|
|
806
794
|
const i = (o) => o * (n / 2);
|
|
807
795
|
return /* @__PURE__ */ e(
|
|
808
|
-
|
|
796
|
+
G,
|
|
809
797
|
{
|
|
810
798
|
sx: {
|
|
811
799
|
position: "relative",
|
|
812
800
|
width: 64
|
|
813
801
|
},
|
|
814
802
|
children: t.map((o, s) => s < r ? /* @__PURE__ */ e(
|
|
815
|
-
|
|
803
|
+
G,
|
|
816
804
|
{
|
|
817
805
|
sx: {
|
|
818
806
|
borderRadius: "4px",
|
|
@@ -846,13 +834,13 @@ const j = {
|
|
|
846
834
|
},
|
|
847
835
|
`${r.categoryGuid}-${r.merchantGuid}-${i}`
|
|
848
836
|
)) }), Ot = T(() => {
|
|
849
|
-
const t = ne(), [n, { width: r }] =
|
|
837
|
+
const t = ne(), [n, { width: r }] = Dt(), {
|
|
850
838
|
upcomingRecurrences: i,
|
|
851
839
|
expenseTotal: o,
|
|
852
840
|
missedExpenseTotal: s,
|
|
853
841
|
paidExpenseTotal: m,
|
|
854
842
|
upcomingExpenseTotal: p
|
|
855
|
-
} =
|
|
843
|
+
} = _(), { recurring: c } = b(), l = r <= 288, u = r >= 450, g = 32, y = i.length > 0, C = x.useMemo(() => L(o, o === 0 ? "0,0" : "0,0.00"), [o]), S = x.useMemo(() => {
|
|
856
844
|
const w = [
|
|
857
845
|
{ color: t.palette.success.main, percentage: `${m / o}` }
|
|
858
846
|
];
|
|
@@ -867,7 +855,7 @@ const j = {
|
|
|
867
855
|
t.palette.success.main,
|
|
868
856
|
t.palette.error.main
|
|
869
857
|
]), A = () => y ? l ? /* @__PURE__ */ e(
|
|
870
|
-
|
|
858
|
+
Gt,
|
|
871
859
|
{
|
|
872
860
|
logoSize: g,
|
|
873
861
|
maxLogos: 3,
|
|
@@ -877,22 +865,22 @@ const j = {
|
|
|
877
865
|
{
|
|
878
866
|
amount: m,
|
|
879
867
|
bgColor: "success.main",
|
|
880
|
-
label:
|
|
868
|
+
label: c.paid
|
|
881
869
|
},
|
|
882
870
|
{
|
|
883
871
|
amount: s,
|
|
884
872
|
bgColor: "error.main",
|
|
885
|
-
label:
|
|
873
|
+
label: c.missed
|
|
886
874
|
},
|
|
887
875
|
{
|
|
888
876
|
amount: p,
|
|
889
877
|
bgColor: "neutral.light",
|
|
890
|
-
label:
|
|
878
|
+
label: c.upcoming
|
|
891
879
|
}
|
|
892
880
|
];
|
|
893
|
-
return /* @__PURE__ */
|
|
894
|
-
/* @__PURE__ */
|
|
895
|
-
/* @__PURE__ */
|
|
881
|
+
return /* @__PURE__ */ a($, { children: [
|
|
882
|
+
/* @__PURE__ */ a(d, { ref: n, sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
883
|
+
/* @__PURE__ */ a(
|
|
896
884
|
d,
|
|
897
885
|
{
|
|
898
886
|
sx: [
|
|
@@ -913,13 +901,13 @@ const j = {
|
|
|
913
901
|
children: C
|
|
914
902
|
}
|
|
915
903
|
),
|
|
916
|
-
/* @__PURE__ */ e(Z, { sx: { pr: 12 }, variant: "caption", children:
|
|
904
|
+
/* @__PURE__ */ e(Z, { sx: { pr: 12 }, variant: "caption", children: c.expected })
|
|
917
905
|
]
|
|
918
906
|
}
|
|
919
907
|
),
|
|
920
908
|
A()
|
|
921
909
|
] }),
|
|
922
|
-
/* @__PURE__ */
|
|
910
|
+
/* @__PURE__ */ a(d, { sx: { pt: 12 }, children: [
|
|
923
911
|
/* @__PURE__ */ e(Le, { data: S }),
|
|
924
912
|
/* @__PURE__ */ e(
|
|
925
913
|
d,
|
|
@@ -931,7 +919,7 @@ const j = {
|
|
|
931
919
|
mt: 4
|
|
932
920
|
},
|
|
933
921
|
children: f.map((w, H) => /* @__PURE__ */ e(
|
|
934
|
-
|
|
922
|
+
Nt,
|
|
935
923
|
{
|
|
936
924
|
amount: w.amount,
|
|
937
925
|
bgcolor: w.bgColor,
|
|
@@ -952,13 +940,13 @@ const j = {
|
|
|
952
940
|
upcomingRecurrences: s,
|
|
953
941
|
repeatingTransactions: m,
|
|
954
942
|
setDateRange: p,
|
|
955
|
-
isDataLoaded:
|
|
956
|
-
} =
|
|
943
|
+
isDataLoaded: c
|
|
944
|
+
} = _(), { setFilter: l } = re(), { recurring: u, budgets: g } = b();
|
|
957
945
|
oe({
|
|
958
946
|
widgetName: "RecurringTransactionsMicroWidget",
|
|
959
|
-
isLoaded:
|
|
947
|
+
isLoaded: c
|
|
960
948
|
}), x.useEffect(() => {
|
|
961
|
-
|
|
949
|
+
c || o().finally(() => {
|
|
962
950
|
n(v.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
|
|
963
951
|
state: s.length > 0 ? "default" : "zeroState"
|
|
964
952
|
});
|
|
@@ -974,10 +962,10 @@ const j = {
|
|
|
974
962
|
s.length > 0 ? v.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : v.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
|
|
975
963
|
), t();
|
|
976
964
|
};
|
|
977
|
-
if (!r || !
|
|
965
|
+
if (!r || !c) return /* @__PURE__ */ e(ae, { height: 100 });
|
|
978
966
|
const C = !m?.length;
|
|
979
967
|
return /* @__PURE__ */ e(
|
|
980
|
-
|
|
968
|
+
_t,
|
|
981
969
|
{
|
|
982
970
|
className: "mx-recurring-transaction-microwidget",
|
|
983
971
|
ctaLabel: C ? g.get_started_cta : u.primary_cta,
|
|
@@ -997,7 +985,7 @@ const j = {
|
|
|
997
985
|
isOpen: t,
|
|
998
986
|
onClose: n,
|
|
999
987
|
title: i.cashflow_settings,
|
|
1000
|
-
children: /* @__PURE__ */ e(
|
|
988
|
+
children: /* @__PURE__ */ e(_e, { defaultSelectedTab: r })
|
|
1001
989
|
}
|
|
1002
990
|
);
|
|
1003
991
|
}
|
|
@@ -1006,7 +994,7 @@ export {
|
|
|
1006
994
|
er as AddRecurringTransactionDetails,
|
|
1007
995
|
Jn as ManageExpenses,
|
|
1008
996
|
tr as ManageIncome,
|
|
1009
|
-
|
|
997
|
+
_e as RecurringSettings,
|
|
1010
998
|
qn as RecurringSettingsDrawer,
|
|
1011
999
|
Vn as RecurringTransactionsMicroWidget,
|
|
1012
1000
|
Kn as RecurringTransactionsMiniWidget,
|