@mx-cartographer/experiences 8.0.18 → 8.0.20

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.
Files changed (50) hide show
  1. package/CHANGELOG.md +12 -4
  2. package/dist/{AccountStore-DpYvNnql.mjs → AccountStore-B7zfcad7.mjs} +1 -1
  3. package/dist/{BudgetUtil-CLhRnCoX.mjs → BudgetUtil-DZpOoZQa.mjs} +1 -1
  4. package/dist/{GlobalAccountFilter-B73Pw1hJ.mjs → GlobalAccountFilter-CmnaZDS6.mjs} +27 -27
  5. package/dist/{Help-DBAosGjO.mjs → Help-BkmSY96v.mjs} +1 -1
  6. package/dist/{ManageIncome-CvfRTf-j.mjs → ManageIncome-BJ7c7plg.mjs} +1 -1
  7. package/dist/{NotificationSettings-D7VqsrZy.mjs → NotificationSettings-DBT37CVB.mjs} +1 -1
  8. package/dist/{RecurringSettings-DJIUgK5A.mjs → RecurringSettings-DnD0AqWa.mjs} +1 -1
  9. package/dist/{SpendingLegend-BCnXkPCD.mjs → SpendingLegend-CypdabwS.mjs} +1 -1
  10. package/dist/{TransactionDetails-KklNHa-s.mjs → TransactionDetails-D6XZakc-.mjs} +1 -1
  11. package/dist/WidgetContainer-DYKMArWw.mjs +468 -0
  12. package/dist/accounts/index.es.js +95 -93
  13. package/dist/budgets/index.es.js +448 -444
  14. package/dist/cashflow/index.es.js +233 -231
  15. package/dist/common/components/GlobalAccountFilter.d.ts +2 -1
  16. package/dist/common/components/WidgetContainer.d.ts +2 -1
  17. package/dist/common/components/WidgetDateRangeSelector.d.ts +12 -0
  18. package/dist/common/hooks/index.d.ts +1 -0
  19. package/dist/common/hooks/useWidgetHeaderStyles.d.ts +32 -0
  20. package/dist/common/index.es.js +133 -132
  21. package/dist/core/types/Widgets.d.ts +1 -0
  22. package/dist/dashboard/index.es.js +3 -3
  23. package/dist/debts/components/actions/DebtsPriorityAction.d.ts +2 -1
  24. package/dist/debts/components/debtspriority/DebtsPriorityButton.d.ts +2 -1
  25. package/dist/debts/index.es.js +589 -587
  26. package/dist/finstrong/FinstrongWidget.d.ts +1 -1
  27. package/dist/finstrong/index.es.js +737 -745
  28. package/dist/goals/GoalsWidget.d.ts +1 -1
  29. package/dist/goals/index.es.js +439 -438
  30. package/dist/help/HelpWidget.d.ts +1 -1
  31. package/dist/help/index.es.js +21 -12
  32. package/dist/insights/components/index.d.ts +1 -0
  33. package/dist/insights/components/shared/DrillDownCalculation/BalanceStepper.d.ts +12 -0
  34. package/dist/insights/components/shared/DrillDownCalculation/DrillDownCalculation.d.ts +31 -0
  35. package/dist/insights/components/shared/SaveEnoughToLiveOnBottomSection.d.ts +3 -1
  36. package/dist/insights/index.es.js +976 -747
  37. package/dist/investments/InvestmentsWidget.d.ts +1 -1
  38. package/dist/investments/index.es.js +418 -417
  39. package/dist/networth/index.es.js +265 -278
  40. package/dist/notifications/index.es.js +1 -1
  41. package/dist/recurringtransactions/RecurringTransactionsWidget.d.ts +1 -1
  42. package/dist/recurringtransactions/index.es.js +235 -232
  43. package/dist/settings/SettingsWidget.d.ts +1 -1
  44. package/dist/settings/index.es.js +283 -282
  45. package/dist/spending/index.es.js +109 -108
  46. package/dist/transactions/index.es.js +280 -277
  47. package/dist/trends/index.es.js +622 -615
  48. package/dist/{useScreenSize-B6JyS_Lj.mjs → useScreenSize-CUcpY7aJ.mjs} +1 -1
  49. package/package.json +1 -1
  50. package/dist/WidgetContainer-D-pbSa7L.mjs +0 -441
@@ -6,21 +6,21 @@ 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 { R as _e } from "../RecurringSettings-DJIUgK5A.mjs";
10
- import { M as Yn } from "../RecurringSettings-DJIUgK5A.mjs";
9
+ import { R as Te } from "../RecurringSettings-DnD0AqWa.mjs";
10
+ import { M as Yn } from "../RecurringSettings-DnD0AqWa.mjs";
11
11
  import { addMonths as He } 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
14
  import q from "@mui/material/Unstable_Grid2";
15
- import he from "@mui/material/IconButton";
16
- import d from "@mui/material/Stack";
17
- import fe from "@mui/material/Tab";
15
+ import ge from "@mui/material/IconButton";
16
+ import l from "@mui/material/Stack";
17
+ import he from "@mui/material/Tab";
18
18
  import Fe from "@mui/material/Tabs";
19
- import { Schedule as ze, MonetizationOn as Ue, Cancel as Se, CheckCircle as we, ChevronLeft as Ye, ChevronRight as je, CurrencyExchange as Ke } from "@mxenabled/mx-icons";
19
+ import { Schedule as ze, MonetizationOn as Ue, Cancel as _e, CheckCircle as Se, ChevronLeft as Ye, ChevronRight as je, CurrencyExchange as Ke } from "@mxenabled/mx-icons";
20
20
  import { Text as h, MerchantLogo as te, InstitutionLogo as Ve, H3 as qe, H2 as Ze, P as Z } from "@mxenabled/mxui";
21
- import { getWeeksInMonth as xe } from "date-fns/getWeeksInMonth";
21
+ import { getWeeksInMonth as fe } from "date-fns/getWeeksInMonth";
22
22
  import { enCA as Xe } from "date-fns/locale/en-CA";
23
- import { enUS as be } from "date-fns/locale/en-US";
23
+ import { enUS as xe } from "date-fns/locale/en-US";
24
24
  import { es as Je } from "date-fns/locale/es";
25
25
  import { fr as Qe } from "date-fns/locale/fr";
26
26
  import { frCA as et } from "date-fns/locale/fr-CA";
@@ -32,7 +32,7 @@ import { isSameDay as it } from "date-fns/isSameDay";
32
32
  import ot from "@mui/material/Badge";
33
33
  import { PickersDay as at } from "@mui/x-date-pickers/PickersDay";
34
34
  import { I as F } from "../IconBacking-B9oC6uL2.mjs";
35
- import { u as y, b as z, i as I, g as U, p as Ie, h as re } from "../hooks-BxkfR-Ff.mjs";
35
+ import { u as y, b as z, i as I, g as U, p as we, h as re } from "../hooks-BxkfR-Ff.mjs";
36
36
  import { b as A, a as D } from "../RepeatingTransaction-DF4vJn_v.mjs";
37
37
  import { f as S, D as w } from "../DateFormats-BMpMrZpW.mjs";
38
38
  import { T as G } from "../RecurringTransactionsStore-BE_eUfTC.mjs";
@@ -41,24 +41,24 @@ import { g as st, L as W, b as N } from "../Localization-CPkpIwIx.mjs";
41
41
  import { A as L } from "../Analytics-0Xm_BjHU.mjs";
42
42
  import ct from "@mui/material/Button";
43
43
  import X from "@mui/material/Divider";
44
- import Ce from "@mui/material/List";
45
- import Me from "@mui/material/ListItem";
44
+ import be from "@mui/material/List";
45
+ import Ie from "@mui/material/ListItem";
46
46
  import lt from "@mui/material/ListSubheader";
47
- import { g as ye, d as dt } from "../RecurringTransactions-BbZ6MQsX.mjs";
47
+ import { g as Ce, d as dt } from "../RecurringTransactions-BbZ6MQsX.mjs";
48
48
  import ut from "@mui/material/ListItemAvatar";
49
49
  import mt from "@mui/material/ListItemButton";
50
50
  import pt from "@mui/material/ListItemText";
51
- import { b as gt } from "../ManageIncome-CvfRTf-j.mjs";
52
- import { c as qn, M as Zn, S as Xn } from "../ManageIncome-CvfRTf-j.mjs";
51
+ import { b as gt } from "../ManageIncome-BJ7c7plg.mjs";
52
+ import { c as qn, M as Zn, S as Xn } from "../ManageIncome-BJ7c7plg.mjs";
53
53
  import { f as E } from "../NumberFormatting-QCaNwbjv.mjs";
54
54
  import { D as ie } from "../Drawer-Bbe4AMB1.mjs";
55
55
  import O from "@mui/material/Box";
56
- import { S as Le } from "../StatusBar-BK_uYHAB.mjs";
57
- import { u as oe } from "../useScreenSize-B6JyS_Lj.mjs";
56
+ import { S as Me } from "../StatusBar-BK_uYHAB.mjs";
57
+ import { u as Le } from "../useScreenSize-CUcpY7aJ.mjs";
58
58
  import { S as ve } from "../SkeletonLoader-BaNboJjD.mjs";
59
- import { u as ae } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
60
- import { L as se } from "../Loader-D3rjKx72.mjs";
61
- import { W as ht } from "../WidgetContainer-D-pbSa7L.mjs";
59
+ import { u as oe } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
60
+ import { L as ae } from "../Loader-D3rjKx72.mjs";
61
+ import { W as ht } from "../WidgetContainer-DYKMArWw.mjs";
62
62
  import { M as ft } from "../MiniWidgetContainer-Bhkv-hpz.mjs";
63
63
  import { u as xt } from "../useDimensions-CeDR9V8N.mjs";
64
64
  import { M as bt } from "../MicroWidgetContainer-B_EnfvCq.mjs";
@@ -66,7 +66,7 @@ const Y = {
66
66
  gridRow: 1,
67
67
  gridColumn: 1,
68
68
  zIndex: 2
69
- }, j = (t) => t ? { margin: "0 0 -6px -4px" } : void 0, ce = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(
69
+ }, j = (t) => t ? { margin: "0 0 -6px -4px" } : void 0, se = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(
70
70
  F,
71
71
  {
72
72
  backingSx: { backgroundColor: "background.paper" },
@@ -74,7 +74,7 @@ const Y = {
74
74
  sx: { ...j(t) },
75
75
  children: /* @__PURE__ */ e(ze, { color: "primary", filled: !0, sx: { fontSize: n, ...Y } })
76
76
  }
77
- ), le = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(
77
+ ), ce = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(
78
78
  F,
79
79
  {
80
80
  backingSx: { backgroundColor: "background.paper" },
@@ -88,49 +88,49 @@ const Y = {
88
88
  }
89
89
  )
90
90
  }
91
- ), de = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(
91
+ ), le = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(
92
92
  F,
93
93
  {
94
94
  backingSx: { backgroundColor: "background.paper" },
95
95
  size: n,
96
96
  sx: { ...j(t) },
97
- children: /* @__PURE__ */ e(Se, { color: "error", filled: !0, sx: { fontSize: n, ...Y } })
97
+ children: /* @__PURE__ */ e(_e, { color: "error", filled: !0, sx: { fontSize: n, ...Y } })
98
98
  }
99
- ), ue = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(
99
+ ), de = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(
100
100
  F,
101
101
  {
102
102
  backingSx: { backgroundColor: "background.paper" },
103
103
  size: n,
104
104
  sx: { ...j(t) },
105
- children: /* @__PURE__ */ e(we, { color: "success", filled: !0, sx: { fontSize: n, ...Y } })
105
+ children: /* @__PURE__ */ e(Se, { color: "success", filled: !0, sx: { fontSize: n, ...Y } })
106
106
  }
107
107
  ), Ct = R(
108
108
  ({ day: t, outsideCurrentMonth: n, ...r }) => {
109
- const { recurring: o } = y(), { selectedAccountGuids: i } = z(), { recurrences: c, setSelectedDay: u } = I(), a = x.useMemo(
110
- () => c.filter((f) => i.includes(f.accountGuid)),
111
- [i, c]
109
+ const { recurring: i } = y(), { selectedAccountGuids: o } = z(), { recurrences: c, setSelectedDay: u } = I(), a = x.useMemo(
110
+ () => c.filter((f) => o.includes(f.accountGuid)),
111
+ [o, c]
112
112
  ).filter(
113
113
  (f) => it(f.occurredOnDate || f.expectedDate, t)
114
- ), l = a.some(
114
+ ), d = a.some(
115
115
  (f) => f.type !== A.Income && f.status === D.Upcoming
116
116
  ), m = a.some(
117
117
  (f) => f.type !== A.Income && f.status === D.Missed
118
118
  ), g = a.some(
119
119
  (f) => f.type !== A.Income && f.status === D.Paid
120
- ), b = a.some((f) => f.type === A.Income), C = (l ? 1 : 0) + (m ? 1 : 0) + (g ? 1 : 0) + (b ? 1 : 0), v = [
121
- g && o.paid,
122
- m && o.missed,
123
- l && o.upcoming,
124
- b && o.income
120
+ ), b = a.some((f) => f.type === A.Income), C = (d ? 1 : 0) + (m ? 1 : 0) + (g ? 1 : 0) + (b ? 1 : 0), v = [
121
+ g && i.paid,
122
+ m && i.missed,
123
+ d && i.upcoming,
124
+ b && i.income
125
125
  ].filter(Boolean), M = v.length > 0 ? `${S(t, w.MONTH_DAY_YEAR)}, ${v.join(", ")}` : S(t, w.MONTH_DAY_YEAR);
126
126
  return /* @__PURE__ */ e(
127
127
  ot,
128
128
  {
129
129
  badgeContent: a.length > 0 && /* @__PURE__ */ s(B, { children: [
130
- m && /* @__PURE__ */ e(de, { isOffset: !0 }),
131
- g && /* @__PURE__ */ e(ue, { isOffset: !0 }),
132
- l && /* @__PURE__ */ e(ce, { isOffset: !0 }),
133
- b && /* @__PURE__ */ e(le, { isOffset: !0 })
130
+ m && /* @__PURE__ */ e(le, { isOffset: !0 }),
131
+ g && /* @__PURE__ */ e(de, { isOffset: !0 }),
132
+ d && /* @__PURE__ */ e(se, { isOffset: !0 }),
133
+ b && /* @__PURE__ */ e(ce, { isOffset: !0 })
134
134
  ] }),
135
135
  overlap: "circular",
136
136
  sx: {
@@ -160,13 +160,13 @@ const Y = {
160
160
  }
161
161
  );
162
162
  }
163
- ), $ = ({ icon: t, label: n }) => /* @__PURE__ */ s(d, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
163
+ ), $ = ({ icon: t, label: n }) => /* @__PURE__ */ s(l, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
164
164
  /* @__PURE__ */ e(t, {}),
165
165
  /* @__PURE__ */ e(h, { variant: "caption", children: n })
166
166
  ] }), yt = R(() => {
167
167
  const { recurring: t } = y();
168
168
  return /* @__PURE__ */ s(
169
- d,
169
+ l,
170
170
  {
171
171
  alignItems: "center",
172
172
  "aria-hidden": !0,
@@ -175,27 +175,27 @@ const Y = {
175
175
  justifyContent: "center",
176
176
  mt: 12,
177
177
  children: [
178
- /* @__PURE__ */ e($, { icon: ce, label: t.expense }),
179
- /* @__PURE__ */ e($, { icon: le, label: t.income }),
180
- /* @__PURE__ */ e($, { icon: de, label: t.missed }),
181
- /* @__PURE__ */ e($, { icon: ue, label: t.paid })
178
+ /* @__PURE__ */ e($, { icon: se, label: t.expense }),
179
+ /* @__PURE__ */ e($, { icon: ce, label: t.income }),
180
+ /* @__PURE__ */ e($, { icon: le, label: t.missed }),
181
+ /* @__PURE__ */ e($, { icon: de, label: t.paid })
182
182
  ]
183
183
  }
184
184
  );
185
- }), Re = 58, Rt = () => {
185
+ }), ye = 58, Rt = () => {
186
186
  const t = st();
187
187
  return {
188
- [W.EN_US]: be,
188
+ [W.EN_US]: xe,
189
189
  [W.EN_CA]: Xe,
190
190
  [W.FR]: Qe,
191
191
  [W.FR_CA]: et,
192
192
  [W.ES]: Je
193
- }[t] || be;
193
+ }[t] || xe;
194
194
  }, Ae = R(() => {
195
- const t = ne(), { onEvent: n } = U(), { recurring: r } = y(), { selectedDay: o, setDateRange: i } = I(), [c, u] = x.useState(
196
- xe(/* @__PURE__ */ new Date()) * G + Re
195
+ const t = ne(), { onEvent: n } = U(), { recurring: r } = y(), { selectedDay: i, setDateRange: o } = I(), [c, u] = x.useState(
196
+ fe(/* @__PURE__ */ new Date()) * G + ye
197
197
  ), p = (m) => {
198
- u(xe(m) * G + Re), i({
198
+ u(fe(m) * G + ye), o({
199
199
  start: k(m),
200
200
  end: H(m)
201
201
  }), a(m), n(L.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
@@ -204,7 +204,7 @@ const Y = {
204
204
  const g = document.getElementById("recurrence-list");
205
205
  g?.setAttribute("tabindex", "-1"), g?.focus();
206
206
  });
207
- }, l = /* @__PURE__ */ e(
207
+ }, d = /* @__PURE__ */ e(
208
208
  nt,
209
209
  {
210
210
  minDate: k(/* @__PURE__ */ new Date()),
@@ -257,26 +257,26 @@ const Y = {
257
257
  },
258
258
  textTransform: "capitalize"
259
259
  },
260
- value: o,
260
+ value: i,
261
261
  views: ["day"]
262
262
  }
263
263
  );
264
- return /* @__PURE__ */ e(d, { "aria-labelledby": "calendar-label", justifyContent: "center", role: "group", children: /* @__PURE__ */ s(rt, { adapterLocale: Rt(), dateAdapter: tt, children: [
265
- o && l,
266
- !o && l,
264
+ return /* @__PURE__ */ e(l, { "aria-labelledby": "calendar-label", justifyContent: "center", role: "group", children: /* @__PURE__ */ s(rt, { adapterLocale: Rt(), dateAdapter: tt, children: [
265
+ i && d,
266
+ !i && d,
267
267
  /* @__PURE__ */ e(h, { id: "calendar-label", sx: { alignSelf: "center" }, variant: "body2", children: r.calendar_tooltip }),
268
268
  /* @__PURE__ */ e(yt, {})
269
269
  ] }) });
270
270
  }), Dt = (t) => {
271
271
  if (t.type === A.Income)
272
- return /* @__PURE__ */ e(le, {});
272
+ return /* @__PURE__ */ e(ce, {});
273
273
  switch (t.status) {
274
274
  case D.Missed:
275
- return /* @__PURE__ */ e(de, {});
275
+ return /* @__PURE__ */ e(le, {});
276
276
  case D.Paid:
277
- return /* @__PURE__ */ e(ue, {});
277
+ return /* @__PURE__ */ e(de, {});
278
278
  default:
279
- return /* @__PURE__ */ e(ce, {});
279
+ return /* @__PURE__ */ e(se, {});
280
280
  }
281
281
  }, Tt = (t, n) => {
282
282
  switch (t.status) {
@@ -301,20 +301,20 @@ const Y = {
301
301
  default:
302
302
  return n.unknown;
303
303
  }
304
- }, De = ({
304
+ }, Re = ({
305
305
  recurrence: t,
306
306
  isMini: n = !1,
307
307
  onRecurrenceClick: r = () => {
308
308
  },
309
- showOrdinal: o = !1
309
+ showOrdinal: i = !1
310
310
  }) => {
311
- const { recurring: i } = y(), { detailedRepeatingTransactions: c } = I(), [u, p] = x.useState(!1), a = x.useMemo(
311
+ const { recurring: o } = y(), { detailedRepeatingTransactions: c } = I(), [u, p] = x.useState(!1), a = x.useMemo(
312
312
  () => c.find((M) => M.guid === t.repeatingTransactionGuid),
313
313
  [t, c]
314
- ), l = t.type === A.Income, m = t.status === D.Paid, g = t.status === D.Missed, b = t.status === D.Upcoming;
315
- let C = i.paid?.toLowerCase();
316
- return g ? C = i.missed?.toLowerCase() : b && (C = o ? ye(i, a || {}, !0) : ye(i, a || {}, !1)), //TODO: implement common/components/ListItemRow.tsx
317
- /* @__PURE__ */ s(Me, { disableGutters: !0, disablePadding: !0, children: [
314
+ ), d = t.type === A.Income, m = t.status === D.Paid, g = t.status === D.Missed, b = t.status === D.Upcoming;
315
+ let C = o.paid?.toLowerCase();
316
+ return g ? C = o.missed?.toLowerCase() : b && (C = i ? Ce(o, a || {}, !0) : Ce(o, a || {}, !1)), //TODO: implement common/components/ListItemRow.tsx
317
+ /* @__PURE__ */ s(Ie, { disableGutters: !0, disablePadding: !0, children: [
318
318
  /* @__PURE__ */ s(mt, { onClick: () => {
319
319
  p(!0), r(t);
320
320
  }, children: [
@@ -326,17 +326,17 @@ const Y = {
326
326
  }
327
327
  ) }),
328
328
  /* @__PURE__ */ e(pt, { children: /* @__PURE__ */ s(
329
- d,
329
+ l,
330
330
  {
331
331
  direction: "row",
332
332
  gap: 4,
333
333
  sx: { justifyContent: "space-between", textOverflow: "ellipsis", textWrap: "nowrap" },
334
334
  children: [
335
- /* @__PURE__ */ s(d, { direction: "column", width: "50%", children: [
335
+ /* @__PURE__ */ s(l, { direction: "column", width: "50%", children: [
336
336
  /* @__PURE__ */ e(h, { bold: !0, variant: "body1", children: t.name }),
337
- /* @__PURE__ */ e(d, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */ s(d, { direction: "row", gap: 4, children: [
337
+ /* @__PURE__ */ e(l, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */ s(l, { direction: "row", gap: 4, children: [
338
338
  Dt(t),
339
- /* @__PURE__ */ e(h, { variant: "caption", children: Tt(t, i) })
339
+ /* @__PURE__ */ e(h, { variant: "caption", children: Tt(t, o) })
340
340
  ] }) : /* @__PURE__ */ s(B, { children: [
341
341
  t.institutionGuid && /* @__PURE__ */ e(
342
342
  Ve,
@@ -349,13 +349,13 @@ const Y = {
349
349
  /* @__PURE__ */ e(h, { sx: { maxWidth: 250 }, variant: "caption", children: t.institutionName })
350
350
  ] }) })
351
351
  ] }),
352
- /* @__PURE__ */ s(d, { alignItems: "flex-end", width: "100%", children: [
353
- /* @__PURE__ */ s(h, { bold: !0, color: l ? "success.main" : "text.primary", variant: "body1", children: [
354
- l ? "+" : "",
352
+ /* @__PURE__ */ s(l, { alignItems: "flex-end", width: "100%", children: [
353
+ /* @__PURE__ */ s(h, { bold: !0, color: d ? "success.main" : "text.primary", variant: "body1", children: [
354
+ d ? "+" : "",
355
355
  E(t.amount, "0,0.00")
356
356
  ] }),
357
357
  !n && /* @__PURE__ */ s(
358
- d,
358
+ l,
359
359
  {
360
360
  direction: "row",
361
361
  sx: {
@@ -366,8 +366,8 @@ const Y = {
366
366
  width: "100%"
367
367
  },
368
368
  children: [
369
- m && /* @__PURE__ */ e(we, { color: "success", filled: !0, size: 12 }),
370
- g && /* @__PURE__ */ e(Se, { color: "error", filled: !0, size: 12 }),
369
+ m && /* @__PURE__ */ e(Se, { color: "success", filled: !0, size: 12 }),
370
+ g && /* @__PURE__ */ e(_e, { color: "error", filled: !0, size: 12 }),
371
371
  /* @__PURE__ */ e(h, { bold: !0, color: "text.secondary", variant: "caption", children: C })
372
372
  ]
373
373
  }
@@ -380,10 +380,10 @@ const Y = {
380
380
  /* @__PURE__ */ e(
381
381
  ie,
382
382
  {
383
- ariaLabelClose: i.close_drawer_aria,
383
+ ariaLabelClose: o.close_drawer_aria,
384
384
  isOpen: u,
385
385
  onClose: () => p(!1),
386
- title: t.type === A.Income ? i.income_details : i.expense_details,
386
+ title: t.type === A.Income ? o.income_details : o.expense_details,
387
387
  children: a && /* @__PURE__ */ e(
388
388
  gt,
389
389
  {
@@ -399,14 +399,14 @@ const Y = {
399
399
  recurrences: t,
400
400
  isMini: n = !1,
401
401
  onResetClick: r,
402
- onRecurrenceClick: o,
403
- sx: i = {},
402
+ onRecurrenceClick: i,
403
+ sx: o = {},
404
404
  title: c
405
405
  }) => {
406
406
  const { recurring: u } = y(), p = x.useMemo(() => dt(t), [t]);
407
- return /* @__PURE__ */ s(d, { id: "recurrence-list", sx: { gap: 8, mt: 4, ...i }, "tab-index": -1, children: [
407
+ return /* @__PURE__ */ s(l, { id: "recurrence-list", sx: { gap: 8, mt: 4, ...o }, "tab-index": -1, children: [
408
408
  c && /* @__PURE__ */ s(
409
- d,
409
+ l,
410
410
  {
411
411
  sx: {
412
412
  alignItems: "center",
@@ -420,69 +420,69 @@ const Y = {
420
420
  ]
421
421
  }
422
422
  ),
423
- t.length === 0 ? /* @__PURE__ */ e(h, { fontStyle: "italic", sx: { py: 24, textAlign: "center" }, children: u.no_activities }) : /* @__PURE__ */ e(Ce, { children: n ? t.map((a, l) => /* @__PURE__ */ s(x.Fragment, { children: [
423
+ t.length === 0 ? /* @__PURE__ */ e(h, { fontStyle: "italic", sx: { py: 24, textAlign: "center" }, children: u.no_activities }) : /* @__PURE__ */ e(be, { children: n ? t.map((a, d) => /* @__PURE__ */ s(x.Fragment, { children: [
424
424
  /* @__PURE__ */ e(
425
- De,
425
+ Re,
426
426
  {
427
427
  isMini: n,
428
- onRecurrenceClick: o,
428
+ onRecurrenceClick: i,
429
429
  recurrence: a
430
430
  }
431
431
  ),
432
432
  /* @__PURE__ */ e(X, { sx: { mx: 24 } })
433
- ] }, `recurrence-${l}`)) : p.map((a, l) => /* @__PURE__ */ s(x.Fragment, { children: [
434
- /* @__PURE__ */ e(Me, { children: /* @__PURE__ */ e(
435
- Ce,
433
+ ] }, `recurrence-${d}`)) : p.map((a, d) => /* @__PURE__ */ s(x.Fragment, { children: [
434
+ /* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ e(
435
+ be,
436
436
  {
437
437
  subheader: /* @__PURE__ */ e(lt, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ e(h, { bold: !0, variant: "caption", children: S(a.date, w.DAY_OF_WEEK_MONTH_DAY) }) }),
438
438
  sx: { width: "100%" },
439
439
  children: a.recurrences.map((m, g) => /* @__PURE__ */ e(x.Fragment, { children: /* @__PURE__ */ e(
440
- De,
440
+ Re,
441
441
  {
442
442
  isMini: n,
443
- onRecurrenceClick: o,
443
+ onRecurrenceClick: i,
444
444
  recurrence: m
445
445
  }
446
446
  ) }, `day-recurrence-${g}`))
447
447
  }
448
448
  ) }, a.id),
449
449
  /* @__PURE__ */ e(X, { sx: { mx: 24 } })
450
- ] }, `recurrence-${l}`)) })
450
+ ] }, `recurrence-${d}`)) })
451
451
  ] });
452
452
  }
453
- ), Te = R(
454
- ({ expected: t, isExpense: n = !0, missed: r, paid: o, title: i, total: c, upcoming: u }) => {
455
- const p = ne(), { isSmallMobile: a } = oe(), { recurring: l } = y(), m = x.useMemo(() => {
456
- const g = [{ color: p.palette.success.main, percentage: `${o / t}` }];
453
+ ), De = R(
454
+ ({ expected: t, isExpense: n = !0, missed: r, paid: i, title: o, total: c, upcoming: u }) => {
455
+ const p = ne(), { isSmallMobile: a } = Le(), { recurring: d } = y(), m = x.useMemo(() => {
456
+ const g = [{ color: p.palette.success.main, percentage: `${i / t}` }];
457
457
  return r && g.push({ color: p.palette.error.main, percentage: `${r / t}` }), g;
458
- }, [o, t, r]);
459
- return /* @__PURE__ */ s(d, { children: [
460
- /* @__PURE__ */ s(d, { sx: { flexDirection: "row", justifyContent: "space-between", pb: 12 }, children: [
461
- /* @__PURE__ */ e(h, { bold: !0, variant: "body1", children: `${i} (${c})` }),
458
+ }, [i, t, r]);
459
+ return /* @__PURE__ */ s(l, { children: [
460
+ /* @__PURE__ */ s(l, { sx: { flexDirection: "row", justifyContent: "space-between", pb: 12 }, children: [
461
+ /* @__PURE__ */ e(h, { bold: !0, variant: "body1", children: `${o} (${c})` }),
462
462
  /* @__PURE__ */ e(h, { bold: !0, color: n ? "text.primary" : "success.main", variant: "body1", children: `${n ? "-" : "+"}${E(t, "0,0.00")}` })
463
463
  ] }),
464
- /* @__PURE__ */ e(Le, { data: m, height: 12 }),
465
- /* @__PURE__ */ s(d, { sx: { alignItems: "center", flexDirection: "row", gap: 2, my: 8 }, children: [
464
+ /* @__PURE__ */ e(Me, { data: m, height: 12 }),
465
+ /* @__PURE__ */ s(l, { sx: { alignItems: "center", flexDirection: "row", gap: 2, my: 8 }, children: [
466
466
  /* @__PURE__ */ e(O, { sx: { bgcolor: "success.main", height: 8, mr: 8, width: 8 } }),
467
- !a && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children: E(o, "0,0.00") }),
468
- /* @__PURE__ */ e(h, { variant: "caption", children: l.paid?.toLowerCase() }),
467
+ !a && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children: E(i, "0,0.00") }),
468
+ /* @__PURE__ */ e(h, { variant: "caption", children: d.paid?.toLowerCase() }),
469
469
  r !== void 0 && /* @__PURE__ */ s(B, { children: [
470
470
  /* @__PURE__ */ e(O, { sx: { bgcolor: "error.main", height: 8, ml: 16, mr: 8, width: 8 } }),
471
471
  !a && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children: E(r, "0,0.00") }),
472
- /* @__PURE__ */ e(h, { variant: "caption", children: l.missed?.toLowerCase() })
472
+ /* @__PURE__ */ e(h, { variant: "caption", children: d.missed?.toLowerCase() })
473
473
  ] }),
474
474
  /* @__PURE__ */ e(O, { sx: { bgcolor: "divider", height: 8, ml: 16, mr: 8, width: 8 } }),
475
475
  !a && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children: E(u, "0,0.00") }),
476
- /* @__PURE__ */ e(h, { variant: "caption", children: l.upcoming?.toLowerCase() })
476
+ /* @__PURE__ */ e(h, { variant: "caption", children: d.upcoming?.toLowerCase() })
477
477
  ] })
478
478
  ] });
479
479
  }
480
480
  ), _t = R(() => {
481
- const { recurring: t } = y(), { availableWidth: n } = Ie(), { isDesktop: r, isSmallMobile: o, isMobile: i } = oe(n), { onEvent: c } = U(), {
481
+ const { recurring: t } = y(), { availableWidth: n } = we(), { isDesktop: r, isSmallMobile: i, isMobile: o } = Le(n), { onEvent: c } = U(), {
482
482
  currentMonthExpenses: u,
483
483
  currentMonthIncome: p,
484
484
  dateRange: a,
485
- expenseTotal: l,
485
+ expenseTotal: d,
486
486
  incomeTotal: m,
487
487
  missedExpenseTotal: g,
488
488
  pastRecurrences: b,
@@ -493,14 +493,14 @@ const Y = {
493
493
  setDateRange: _,
494
494
  upcomingExpenseTotal: K,
495
495
  upcomingIncomeTotal: Ee,
496
- upcomingRecurrences: me
496
+ upcomingRecurrences: ue
497
497
  } = I(), [V, Ne] = x.useState(0), Oe = Be(a.start, /* @__PURE__ */ new Date()), ke = (T, Pe) => {
498
498
  Ne(Pe);
499
- }, pe = (T) => {
499
+ }, me = (T) => {
500
500
  c(L.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
501
501
  transaction_guid: T.transaction?.guid
502
502
  });
503
- }, ge = (T) => {
503
+ }, pe = (T) => {
504
504
  c(L.RECURRING_TRANSACTIONS_CLICK_PAID, {
505
505
  transaction_guid: T.transaction?.guid
506
506
  });
@@ -526,15 +526,15 @@ const Y = {
526
526
  },
527
527
  children: [
528
528
  /* @__PURE__ */ s(q, { md: !0, sm: 12, width: "100%", children: [
529
- /* @__PURE__ */ s(d, { sx: { gap: 16, px: r ? 48 : 24 }, children: [
530
- /* @__PURE__ */ s(d, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
529
+ /* @__PURE__ */ s(l, { sx: { gap: 16, px: r ? 48 : 24 }, children: [
530
+ /* @__PURE__ */ s(l, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
531
531
  /* @__PURE__ */ e(Ze, { variant: "h3", children: N(
532
532
  t.header_title,
533
533
  S(a.start, w.MONTH_LONG)
534
534
  ) }),
535
- !r && /* @__PURE__ */ s(d, { direction: "row", gap: 4, children: [
535
+ !r && /* @__PURE__ */ s(l, { direction: "row", gap: 4, children: [
536
536
  /* @__PURE__ */ e(
537
- he,
537
+ ge,
538
538
  {
539
539
  color: "primary",
540
540
  disabled: Oe,
@@ -542,13 +542,13 @@ const Y = {
542
542
  children: /* @__PURE__ */ e(Ye, {})
543
543
  }
544
544
  ),
545
- /* @__PURE__ */ e(he, { color: "primary", onClick: Ge, children: /* @__PURE__ */ e(je, {}) })
545
+ /* @__PURE__ */ e(ge, { color: "primary", onClick: Ge, children: /* @__PURE__ */ e(je, {}) })
546
546
  ] })
547
547
  ] }),
548
548
  /* @__PURE__ */ e(
549
- Te,
549
+ De,
550
550
  {
551
- expected: l,
551
+ expected: d,
552
552
  missed: g,
553
553
  paid: C,
554
554
  title: t.expenses,
@@ -557,7 +557,7 @@ const Y = {
557
557
  }
558
558
  ),
559
559
  /* @__PURE__ */ e(
560
- Te,
560
+ De,
561
561
  {
562
562
  expected: m,
563
563
  isExpense: !1,
@@ -570,49 +570,49 @@ const Y = {
570
570
  r && /* @__PURE__ */ e(
571
571
  P,
572
572
  {
573
- onRecurrenceClick: pe,
574
- recurrences: me,
573
+ onRecurrenceClick: me,
574
+ recurrences: ue,
575
575
  title: t.upcoming_activity
576
576
  }
577
577
  )
578
578
  ] }),
579
- !r && /* @__PURE__ */ s(d, { sx: { px: i ? 0 : 24 }, children: [
579
+ !r && /* @__PURE__ */ s(l, { sx: { px: o ? 0 : 24 }, children: [
580
580
  /* @__PURE__ */ s(Fe, { onChange: ke, value: V, variant: "fullWidth", children: [
581
581
  /* @__PURE__ */ e(
582
- fe,
582
+ he,
583
583
  {
584
- label: /* @__PURE__ */ e(h, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: o ? t.upcoming : t.upcoming_activity })
584
+ label: /* @__PURE__ */ e(h, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: i ? t.upcoming : t.upcoming_activity })
585
585
  }
586
586
  ),
587
587
  /* @__PURE__ */ e(
588
- fe,
588
+ he,
589
589
  {
590
- label: /* @__PURE__ */ e(h, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: o ? t.past : t.past_transactions })
590
+ label: /* @__PURE__ */ e(h, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: i ? t.past : t.past_transactions })
591
591
  }
592
592
  )
593
593
  ] }),
594
594
  V === 0 && /* @__PURE__ */ e(
595
595
  P,
596
596
  {
597
- onRecurrenceClick: pe,
598
- recurrences: me
597
+ onRecurrenceClick: me,
598
+ recurrences: ue
599
599
  }
600
600
  ),
601
601
  V === 1 && /* @__PURE__ */ e(
602
602
  P,
603
603
  {
604
- onRecurrenceClick: ge,
604
+ onRecurrenceClick: pe,
605
605
  recurrences: b
606
606
  }
607
607
  )
608
608
  ] })
609
609
  ] }),
610
- r && /* @__PURE__ */ e(q, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ s(d, { gap: 24, children: [
610
+ r && /* @__PURE__ */ e(q, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ s(l, { gap: 24, children: [
611
611
  /* @__PURE__ */ e(Ae, {}),
612
612
  /* @__PURE__ */ e(
613
613
  P,
614
614
  {
615
- onRecurrenceClick: ge,
615
+ onRecurrenceClick: pe,
616
616
  recurrences: f || b,
617
617
  title: M ? N(
618
618
  t.day_transactions,
@@ -624,62 +624,65 @@ const Y = {
624
624
  ]
625
625
  }
626
626
  );
627
- }), Hn = R(({ onBackClick: t, sx: n = {} }) => {
628
- const { recurring: r } = y(), { isInitialized: o, selectedAccountGuids: i } = z(), { isDataLoaded: c, loadRepeatingTransactionData: u, setDateRange: p } = I(), { setFilter: a } = re(), { onEvent: l } = U(), { isMobile: m } = oe(), [g, b] = x.useState(!1);
629
- return ae({
630
- widgetName: "RecurringTransactionsWidget",
631
- isLoaded: c
632
- }), x.useEffect(() => {
633
- c || u().finally();
634
- }, []), x.useEffect(() => {
635
- a({
636
- dateRange: { start: ee(Q(), 90), end: J() },
637
- accounts: i
638
- }), p({ start: k(/* @__PURE__ */ new Date()), end: H(/* @__PURE__ */ new Date()) });
639
- }, [i]), o ? /* @__PURE__ */ s(
640
- ht,
641
- {
642
- actions: [
643
- {
644
- label: r.action_title,
645
- iconName: "credit_card_gear",
646
- onClick: () => {
647
- b(!0), l(L.RECURRING_TRANSACTIONS_CLICK_SETTINGS);
648
- }
649
- }
650
- ],
651
- hasDivider: m,
652
- onAccountsFilterClick: () => l(L.RECURRING_TRANSACTIONS_CLICK_FILTER),
653
- onBackClick: t,
654
- sx: n,
655
- title: r.title,
656
- children: [
657
- c ? /* @__PURE__ */ e(_t, {}) : /* @__PURE__ */ e(ve, { sx: { m: 48 }, variant: "list" }),
658
- /* @__PURE__ */ e(
659
- ie,
627
+ }), Hn = R(
628
+ ({ onBackClick: t, onMenuClick: n, sx: r = {} }) => {
629
+ const { recurring: i } = y(), { isInitialized: o, selectedAccountGuids: c } = z(), { isDataLoaded: u, loadRepeatingTransactionData: p, setDateRange: a } = I(), { setFilter: d } = re(), { onEvent: m } = U(), [g, b] = x.useState(!1);
630
+ return oe({
631
+ widgetName: "RecurringTransactionsWidget",
632
+ isLoaded: u
633
+ }), x.useEffect(() => {
634
+ u || p().finally();
635
+ }, []), x.useEffect(() => {
636
+ d({
637
+ dateRange: { start: ee(Q(), 90), end: J() },
638
+ accounts: c
639
+ }), a({ start: k(/* @__PURE__ */ new Date()), end: H(/* @__PURE__ */ new Date()) });
640
+ }, [c]), o ? /* @__PURE__ */ s(
641
+ ht,
642
+ {
643
+ actions: [
660
644
  {
661
- ariaLabelClose: r.close_drawer_aria,
662
- isOpen: g,
663
- onClose: () => b(!1),
664
- shouldShowHeaderBorders: !1,
665
- title: r.action_title,
666
- children: /* @__PURE__ */ e(_e, {})
645
+ label: i.action_title,
646
+ iconName: "credit_card_gear",
647
+ onClick: () => {
648
+ b(!0), m(L.RECURRING_TRANSACTIONS_CLICK_SETTINGS);
649
+ }
667
650
  }
668
- )
669
- ]
670
- }
671
- ) : /* @__PURE__ */ e(se, {});
672
- }), St = R(() => {
673
- const { recurring: t } = y(), { availableWidth: n } = Ie(), { selectedDay: r, selectedDayRecurrences: o, setSelectedDay: i, upcomingRecurrences: c } = I(), u = n < 750;
674
- return /* @__PURE__ */ s(d, { flexDirection: u ? "column" : "row", width: "100%", children: [
651
+ ],
652
+ hasDivider: !0,
653
+ onAccountsFilterClick: () => m(L.RECURRING_TRANSACTIONS_CLICK_FILTER),
654
+ onBackClick: t,
655
+ onMenuClick: n,
656
+ sx: r,
657
+ title: i.title,
658
+ children: [
659
+ u ? /* @__PURE__ */ e(_t, {}) : /* @__PURE__ */ e(ve, { sx: { m: 48 }, variant: "list" }),
660
+ /* @__PURE__ */ e(
661
+ ie,
662
+ {
663
+ ariaLabelClose: i.close_drawer_aria,
664
+ isOpen: g,
665
+ onClose: () => b(!1),
666
+ shouldShowHeaderBorders: !1,
667
+ title: i.action_title,
668
+ children: /* @__PURE__ */ e(Te, {})
669
+ }
670
+ )
671
+ ]
672
+ }
673
+ ) : /* @__PURE__ */ e(ae, {});
674
+ }
675
+ ), St = R(() => {
676
+ const { recurring: t } = y(), { availableWidth: n } = we(), { selectedDay: r, selectedDayRecurrences: i, setSelectedDay: o, upcomingRecurrences: c } = I(), u = n < 750;
677
+ return /* @__PURE__ */ s(l, { flexDirection: u ? "column" : "row", width: "100%", children: [
675
678
  /* @__PURE__ */ e(Ae, {}),
676
679
  !u && /* @__PURE__ */ e(X, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
677
680
  /* @__PURE__ */ e(
678
681
  P,
679
682
  {
680
683
  isMini: !0,
681
- onResetClick: r ? () => i(r) : void 0,
682
- recurrences: o || c.slice(0, 5),
684
+ onResetClick: r ? () => o(r) : void 0,
685
+ recurrences: i || c.slice(0, 5),
683
686
  sx: { width: u ? "100%" : "calc(100% - 336px)", mt: 12 },
684
687
  title: r ? N(
685
688
  t.day_transactions,
@@ -690,14 +693,14 @@ const Y = {
690
693
  ] });
691
694
  }), $n = R(
692
695
  ({ onPrimaryCtaClick: t, sx: n }) => {
693
- const { recurring: r } = y(), { setFilter: o } = re(), { isDataLoaded: i, loadRepeatingTransactionData: c } = I(), { isInitialized: u, selectedAccountGuids: p } = z();
694
- return ae({
696
+ const { recurring: r } = y(), { setFilter: i } = re(), { isDataLoaded: o, loadRepeatingTransactionData: c } = I(), { isInitialized: u, selectedAccountGuids: p } = z();
697
+ return oe({
695
698
  widgetName: "RecurringTransactionsMiniWidget",
696
- isLoaded: i
699
+ isLoaded: o
697
700
  }), x.useEffect(() => {
698
- i || c().finally();
701
+ o || c().finally();
699
702
  }, []), x.useEffect(() => {
700
- p.length > 0 && o({
703
+ p.length > 0 && i({
701
704
  dateRange: { start: ee(Q(), 90), end: J() },
702
705
  accounts: p
703
706
  });
@@ -711,15 +714,15 @@ const Y = {
711
714
  subTitle: r.sub_title,
712
715
  sx: n,
713
716
  title: r.mini_title,
714
- children: i ? /* @__PURE__ */ e(St, {}) : /* @__PURE__ */ e(ve, { sx: { mx: 16 }, variant: "list" })
717
+ children: o ? /* @__PURE__ */ e(St, {}) : /* @__PURE__ */ e(ve, { sx: { mx: 16 }, variant: "list" })
715
718
  }
716
- ) : /* @__PURE__ */ e(se, {});
719
+ ) : /* @__PURE__ */ e(ae, {});
717
720
  }
718
721
  ), wt = R(() => {
719
722
  const { recurring: t } = y();
720
- return /* @__PURE__ */ s(d, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
723
+ return /* @__PURE__ */ s(l, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
721
724
  /* @__PURE__ */ e(Ke, { size: 32 }),
722
- /* @__PURE__ */ s(d, { children: [
725
+ /* @__PURE__ */ s(l, { children: [
723
726
  /* @__PURE__ */ e(Z, { fontWeight: 600, variant: "body1", children: t.zero_state_content_header }),
724
727
  /* @__PURE__ */ e(Z, { color: "text.secondary", variant: "subtitle2", children: t.zero_state_content_description })
725
728
  ] })
@@ -728,9 +731,9 @@ const Y = {
728
731
  amount: t,
729
732
  bgcolor: n,
730
733
  isLargeScreen: r,
731
- isSmallScreen: o,
732
- label: i
733
- }) => /* @__PURE__ */ s(d, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
734
+ isSmallScreen: i,
735
+ label: o
736
+ }) => /* @__PURE__ */ s(l, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
734
737
  /* @__PURE__ */ e(
735
738
  O,
736
739
  {
@@ -742,16 +745,16 @@ const Y = {
742
745
  }
743
746
  }
744
747
  ),
745
- /* @__PURE__ */ s(d, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
746
- !o && /* @__PURE__ */ e(h, { bold: !0, variant: "caption", children: E(t, t === 0 || !r ? "0,0" : "0,0.00") }),
747
- /* @__PURE__ */ e(h, { variant: "caption", children: i })
748
+ /* @__PURE__ */ s(l, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
749
+ !i && /* @__PURE__ */ e(h, { bold: !0, variant: "caption", children: E(t, t === 0 || !r ? "0,0" : "0,0.00") }),
750
+ /* @__PURE__ */ e(h, { variant: "caption", children: o })
748
751
  ] })
749
752
  ] }), Mt = ({
750
753
  upcomingRecurrences: t,
751
754
  logoSize: n = 32,
752
755
  maxLogos: r = 3
753
756
  }) => {
754
- const o = (i) => i * (n / 2);
757
+ const i = (o) => o * (n / 2);
755
758
  return /* @__PURE__ */ e(
756
759
  O,
757
760
  {
@@ -759,12 +762,12 @@ const Y = {
759
762
  position: "relative",
760
763
  width: 64
761
764
  },
762
- children: t.map((i, c) => c < r ? /* @__PURE__ */ e(
765
+ children: t.map((o, c) => c < r ? /* @__PURE__ */ e(
763
766
  O,
764
767
  {
765
768
  sx: {
766
769
  borderRadius: "4px",
767
- left: o(c),
770
+ left: i(c),
768
771
  outlineColor: "common.white",
769
772
  outlineStyle: "solid",
770
773
  outlineWidth: 2,
@@ -773,55 +776,55 @@ const Y = {
773
776
  children: /* @__PURE__ */ e(
774
777
  te,
775
778
  {
776
- categoryGuid: i.categoryGuid || "",
777
- merchantGuid: i.merchantGuid || "",
779
+ categoryGuid: o.categoryGuid || "",
780
+ merchantGuid: o.merchantGuid || "",
778
781
  size: n
779
782
  }
780
783
  )
781
784
  },
782
- `${i.categoryGuid}-${i.merchantGuid}-${c}`
785
+ `${o.categoryGuid}-${o.merchantGuid}-${c}`
783
786
  ) : null)
784
787
  }
785
788
  );
786
789
  }, Lt = ({
787
790
  upcomingRecurrences: t,
788
791
  maxLogos: n = 3
789
- }) => /* @__PURE__ */ e(d, { sx: { flexDirection: "row", gap: 4 }, children: t?.slice(0, n).map((r, o) => /* @__PURE__ */ e(
792
+ }) => /* @__PURE__ */ e(l, { sx: { flexDirection: "row", gap: 4 }, children: t?.slice(0, n).map((r, i) => /* @__PURE__ */ e(
790
793
  te,
791
794
  {
792
795
  categoryGuid: r.categoryGuid || "",
793
796
  merchantGuid: r.merchantGuid || ""
794
797
  },
795
- `${r.categoryGuid}-${r.merchantGuid}-${o}`
798
+ `${r.categoryGuid}-${r.merchantGuid}-${i}`
796
799
  )) }), vt = R(() => {
797
800
  const t = ne(), [n, { width: r }] = xt(), {
798
- upcomingRecurrences: o,
799
- expenseTotal: i,
801
+ upcomingRecurrences: i,
802
+ expenseTotal: o,
800
803
  missedExpenseTotal: c,
801
804
  paidExpenseTotal: u,
802
805
  upcomingExpenseTotal: p
803
- } = I(), { recurring: a } = y(), l = r <= 288, m = r >= 450, g = 32, b = o.length > 0, C = x.useMemo(() => E(i, i === 0 ? "0,0" : "0,0.00"), [i]), v = x.useMemo(() => {
806
+ } = I(), { recurring: a } = y(), d = r <= 288, m = r >= 450, g = 32, b = i.length > 0, C = x.useMemo(() => E(o, o === 0 ? "0,0" : "0,0.00"), [o]), v = x.useMemo(() => {
804
807
  const _ = [
805
- { color: t.palette.success.main, percentage: `${u / i}` }
808
+ { color: t.palette.success.main, percentage: `${u / o}` }
806
809
  ];
807
810
  return c && _.push({
808
811
  color: t.palette.error.main,
809
- percentage: `${c / i}`
812
+ percentage: `${c / o}`
810
813
  }), _;
811
814
  }, [
812
815
  u,
813
- i,
816
+ o,
814
817
  c,
815
818
  t.palette.success.main,
816
819
  t.palette.error.main
817
- ]), M = () => b ? l ? /* @__PURE__ */ e(
820
+ ]), M = () => b ? d ? /* @__PURE__ */ e(
818
821
  Mt,
819
822
  {
820
823
  logoSize: g,
821
824
  maxLogos: 3,
822
- upcomingRecurrences: o.slice(0, 3)
825
+ upcomingRecurrences: i.slice(0, 3)
823
826
  }
824
- ) : /* @__PURE__ */ e(Lt, { maxLogos: 3, upcomingRecurrences: o.slice(0, 3) }) : /* @__PURE__ */ e(d, { sx: { width: l ? 64 : 104 } }), f = [
827
+ ) : /* @__PURE__ */ e(Lt, { maxLogos: 3, upcomingRecurrences: i.slice(0, 3) }) : /* @__PURE__ */ e(l, { sx: { width: d ? 64 : 104 } }), f = [
825
828
  {
826
829
  amount: u,
827
830
  bgColor: "success.main",
@@ -839,12 +842,12 @@ const Y = {
839
842
  }
840
843
  ];
841
844
  return /* @__PURE__ */ s(B, { children: [
842
- /* @__PURE__ */ s(d, { ref: n, sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
845
+ /* @__PURE__ */ s(l, { ref: n, sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
843
846
  /* @__PURE__ */ s(
844
- d,
847
+ l,
845
848
  {
846
849
  sx: [
847
- C.length >= 10 && l ? { flexDirection: "column" } : { flexDirection: "row", gap: 2 },
850
+ C.length >= 10 && d ? { flexDirection: "column" } : { flexDirection: "row", gap: 2 },
848
851
  {
849
852
  alignItems: "baseline",
850
853
  overflow: "hidden",
@@ -857,7 +860,7 @@ const Y = {
857
860
  h,
858
861
  {
859
862
  sx: { width: "100%" },
860
- variant: C.length >= 10 && l ? "h3" : "h2",
863
+ variant: C.length >= 10 && d ? "h3" : "h2",
861
864
  children: C
862
865
  }
863
866
  ),
@@ -867,10 +870,10 @@ const Y = {
867
870
  ),
868
871
  M()
869
872
  ] }),
870
- /* @__PURE__ */ s(d, { sx: { pt: 12 }, children: [
871
- /* @__PURE__ */ e(Le, { data: v }),
873
+ /* @__PURE__ */ s(l, { sx: { pt: 12 }, children: [
874
+ /* @__PURE__ */ e(Me, { data: v }),
872
875
  /* @__PURE__ */ e(
873
- d,
876
+ l,
874
877
  {
875
878
  sx: {
876
879
  alignItems: "center",
@@ -884,7 +887,7 @@ const Y = {
884
887
  amount: _.amount,
885
888
  bgcolor: _.bgColor,
886
889
  isLargeScreen: m,
887
- isSmallScreen: l,
890
+ isSmallScreen: d,
888
891
  label: _.label
889
892
  },
890
893
  `recurrence-legend-${K}`
@@ -895,34 +898,34 @@ const Y = {
895
898
  ] });
896
899
  }), Bn = R(
897
900
  ({ onCTAClick: t }) => {
898
- const { onEvent: n } = U(), { isInitialized: r, selectedAccountGuids: o } = z(), {
899
- loadRepeatingTransactionData: i,
901
+ const { onEvent: n } = U(), { isInitialized: r, selectedAccountGuids: i } = z(), {
902
+ loadRepeatingTransactionData: o,
900
903
  upcomingRecurrences: c,
901
904
  repeatingTransactions: u,
902
905
  setDateRange: p,
903
906
  isDataLoaded: a
904
- } = I(), { setFilter: l } = re(), { recurring: m, budgets: g } = y();
905
- ae({
907
+ } = I(), { setFilter: d } = re(), { recurring: m, budgets: g } = y();
908
+ oe({
906
909
  widgetName: "RecurringTransactionsMicroWidget",
907
910
  isLoaded: a
908
911
  }), x.useEffect(() => {
909
- a || i().finally(() => {
912
+ a || o().finally(() => {
910
913
  n(L.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
911
914
  state: c.length > 0 ? "default" : "zeroState"
912
915
  });
913
916
  });
914
917
  }, []), x.useEffect(() => {
915
- r && (l({
918
+ r && (d({
916
919
  dateRange: { start: ee(Q(), 90), end: J() },
917
- accounts: o
920
+ accounts: i
918
921
  }), p({ start: k(/* @__PURE__ */ new Date()), end: H(/* @__PURE__ */ new Date()) }));
919
- }, [r, o]);
922
+ }, [r, i]);
920
923
  const b = () => {
921
924
  n(
922
925
  c.length > 0 ? L.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : L.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
923
926
  ), t();
924
927
  };
925
- if (!r || !a) return /* @__PURE__ */ e(se, { height: 100 });
928
+ if (!r || !a) return /* @__PURE__ */ e(ae, { height: 100 });
926
929
  const C = !u?.length;
927
930
  return /* @__PURE__ */ e(
928
931
  bt,
@@ -937,15 +940,15 @@ const Y = {
937
940
  }
938
941
  ), Fn = R(
939
942
  ({ isOpen: t, onClose: n, selectedTab: r }) => {
940
- const { cashflow: o } = y();
943
+ const { cashflow: i } = y();
941
944
  return /* @__PURE__ */ e(
942
945
  ie,
943
946
  {
944
- ariaLabelClose: o.close_settings_aria,
947
+ ariaLabelClose: i.close_settings_aria,
945
948
  isOpen: t,
946
949
  onClose: n,
947
- title: o.cashflow_settings,
948
- children: /* @__PURE__ */ e(_e, { defaultSelectedTab: r })
950
+ title: i.cashflow_settings,
951
+ children: /* @__PURE__ */ e(Te, { defaultSelectedTab: r })
949
952
  }
950
953
  );
951
954
  }
@@ -954,7 +957,7 @@ export {
954
957
  qn as AddRecurringTransactionDetails,
955
958
  Yn as ManageExpenses,
956
959
  Zn as ManageIncome,
957
- _e as RecurringSettings,
960
+ Te as RecurringSettings,
958
961
  Fn as RecurringSettingsDrawer,
959
962
  Bn as RecurringTransactionsMicroWidget,
960
963
  $n as RecurringTransactionsMiniWidget,