@mx-cartographer/experiences 7.4.8-alpha.mm0 → 7.4.8

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 (61) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/{Account-BrOTlmeK.mjs → Account-01wOyrH1.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-B7FqH05C.mjs → AccountDetailsContent-COMjOzwr.mjs} +8 -8
  4. package/dist/{AccountDetailsHeader-C8MxsxhN.mjs → AccountDetailsHeader-Cbi5G6fJ.mjs} +4 -4
  5. package/dist/{AccountFields-BQZ-o6Kj.mjs → AccountFields-Cd_nOWmf.mjs} +2 -2
  6. package/dist/{AccountListItem-aIE9WWTO.mjs → AccountListItem-DxY4cCF1.mjs} +4 -4
  7. package/dist/{AccountStore-DqO84Aer.mjs → AccountStore-C1zMBzHq.mjs} +2 -2
  8. package/dist/{Accounts-DC_A4UCa.mjs → Accounts-D7QljYas.mjs} +1 -1
  9. package/dist/{BudgetUtil-BmZXkL0C.mjs → BudgetUtil-Df2nII9u.mjs} +1 -1
  10. package/dist/{CategorySelectorDrawer-SUgfE5GN.mjs → CategorySelectorDrawer-DqJK_rrL.mjs} +1 -1
  11. package/dist/{ConnectDrawer-KL8t1qSC.mjs → ConnectDrawer-CuUj16NH.mjs} +1 -1
  12. package/dist/{ConnectionsDrawer-DaK5uIL5.mjs → ConnectionsDrawer-Bz4uwdFE.mjs} +2 -2
  13. package/dist/{CurrencyInput-itK0R3wV.mjs → CurrencyInput-BFKcs-_K.mjs} +1 -1
  14. package/dist/{DebtsStore-DVPZbv2C.mjs → DebtsStore-Bu8rRRSL.mjs} +1 -1
  15. package/dist/{ExportCsvAction-Cglo8Mca.mjs → ExportCsvAction-DzTrtPzk.mjs} +3 -3
  16. package/dist/{GoalStore-o4rrjGSJ.mjs → GoalStore-CrNhjvNc.mjs} +2 -2
  17. package/dist/{Help-BjLMsuMS.mjs → Help-BnPXM_N2.mjs} +1 -1
  18. package/dist/{LineChart-BQRxZF3p.mjs → LineChart-bc1D9xBE.mjs} +1 -1
  19. package/dist/{ListItemAction-BxTkF6Tz.mjs → ListItemAction-uobBrm_a.mjs} +1 -1
  20. package/dist/{ManageIncome-rcnDYsBJ.mjs → ManageIncome-A69EUO5u.mjs} +75 -75
  21. package/dist/{MicroWidgetContainer-B2hO9rOG.mjs → MicroWidgetContainer-DEiRnYVa.mjs} +1 -1
  22. package/dist/{MiniWidgetContainer-98-hKFqm.mjs → MiniWidgetContainer-CmXpTylX.mjs} +1 -1
  23. package/dist/{NetWorthStore-DG2X69jG.mjs → NetWorthStore-CpL_kqvx.mjs} +2 -2
  24. package/dist/{NotificationSettings-C7FYNM7I.mjs → NotificationSettings-CNmJWVeI.mjs} +248 -250
  25. package/dist/{OriginalBalanceAction-C6jdS4ws.mjs → OriginalBalanceAction-DK8_LkPz.mjs} +3 -3
  26. package/dist/{RecurringSettings-C81H1l38.mjs → RecurringSettings-B0uObPlD.mjs} +3 -3
  27. package/dist/{SpendingLegend-DqZxN_BZ.mjs → SpendingLegend-Bf-wbJvb.mjs} +2 -2
  28. package/dist/{TransactionDetails-BA_E5nQ-.mjs → TransactionDetails-COH0OKNG.mjs} +5 -5
  29. package/dist/{TransactionStore-PRlwE-TF.mjs → TransactionStore-Dz-G8Wd0.mjs} +2 -2
  30. package/dist/{User-Cnlegl1N.mjs → User-wXzDI4M8.mjs} +1 -1
  31. package/dist/{ViewMoreMicroCard-DfPXJzbv.mjs → ViewMoreMicroCard-C0832BMe.mjs} +101 -105
  32. package/dist/{WidgetContainer-CaPjoWeE.mjs → WidgetContainer-6dsjtOVg.mjs} +2 -2
  33. package/dist/accounts/index.es.js +140 -148
  34. package/dist/analytics/index.es.js +2 -2
  35. package/dist/budgets/index.es.js +478 -483
  36. package/dist/cashflow/index.es.js +362 -367
  37. package/dist/categories/index.es.js +1 -1
  38. package/dist/common/hooks/index.d.ts +0 -1
  39. package/dist/common/index.es.js +33 -35
  40. package/dist/dashboard/index.es.js +88 -90
  41. package/dist/debts/index.es.js +342 -346
  42. package/dist/{exportTransactionsToCSV-DuAaI5XA.mjs → exportTransactionsToCSV-Cz2t0lmA.mjs} +1 -1
  43. package/dist/finstrong/index.es.js +350 -352
  44. package/dist/goals/index.es.js +511 -518
  45. package/dist/help/index.es.js +9 -13
  46. package/dist/{hooks-ZMp65DFz.mjs → hooks-C41HAxM5.mjs} +11 -11
  47. package/dist/investments/index.es.js +393 -395
  48. package/dist/merchants/index.es.js +1 -1
  49. package/dist/microinsights/index.es.js +1 -1
  50. package/dist/networth/index.es.js +240 -245
  51. package/dist/notifications/index.es.js +2 -2
  52. package/dist/recurringtransactions/index.es.js +285 -293
  53. package/dist/settings/index.es.js +249 -252
  54. package/dist/spending/index.es.js +126 -138
  55. package/dist/transactions/index.es.js +73 -77
  56. package/dist/trends/index.es.js +588 -601
  57. package/dist/{useAccountDisplayName-Cjx8YmKK.mjs → useAccountDisplayName-CMMlIOXF.mjs} +2 -2
  58. package/dist/{useInsightsEnabled-B7dxpDrX.mjs → useInsightsEnabled-CNjP5cfR.mjs} +1 -1
  59. package/package.json +1 -1
  60. package/dist/common/hooks/useWidgetLoadTimer.d.ts +0 -6
  61. package/dist/useWidgetLoadTimer-C1NBkyLd.mjs +0 -23
@@ -1,92 +1,91 @@
1
- import { jsx as e, jsxs as o, Fragment as X } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as o, Fragment as V } from "react/jsx-runtime";
2
2
  import f from "react";
3
- import { observer as T } from "mobx-react-lite";
4
- import { endOfMonth as F } from "date-fns/endOfMonth";
3
+ import { observer as R } from "mobx-react-lite";
4
+ import { endOfMonth as z } from "date-fns/endOfMonth";
5
5
  import { endOfToday as de } from "date-fns/endOfToday";
6
- import { startOfMonth as k } from "date-fns/startOfMonth";
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
- import l from "@mui/material/Stack";
11
- import { R as Ne } from "../RecurringSettings-C81H1l38.mjs";
12
- import { M as Gn } from "../RecurringSettings-C81H1l38.mjs";
13
- import { addMonths as Fe } from "date-fns/addMonths";
14
- import { subMonths as Ue } from "date-fns/subMonths";
15
- import { isBefore as je } from "date-fns/isBefore";
10
+ import c from "@mui/material/Stack";
11
+ import { R as Ee } from "../RecurringSettings-B0uObPlD.mjs";
12
+ import { M as Gn } from "../RecurringSettings-B0uObPlD.mjs";
13
+ import { addMonths as ze } from "date-fns/addMonths";
14
+ import { subMonths as Fe } from "date-fns/subMonths";
15
+ import { isBefore as Ue } from "date-fns/isBefore";
16
16
  import se from "@mui/material/Unstable_Grid2";
17
- import Se from "@mui/material/IconButton";
18
- import _e from "@mui/material/Tab";
19
- import Ke from "@mui/material/Tabs";
20
- import { Schedule as Ye, MonetizationOn as Ve, Cancel as Ge, CheckCircle as Oe, ChevronLeft as Xe, ChevronRight as qe, CurrencyExchange as Ze } from "@mxenabled/mx-icons";
21
- import { Text as g, MerchantLogo as pe, InstitutionLogo as Je, H3 as Qe, P as ce } from "@mxenabled/mxui";
22
- import { getWeeksInMonth as Ie } from "date-fns/getWeeksInMonth";
17
+ import De from "@mui/material/IconButton";
18
+ import Se from "@mui/material/Tab";
19
+ import je from "@mui/material/Tabs";
20
+ import { Schedule as Ke, MonetizationOn as Ye, Cancel as Ge, CheckCircle as Ne, ChevronLeft as qe, ChevronRight as Ve, CurrencyExchange as Xe } from "@mxenabled/mx-icons";
21
+ import { Text as g, MerchantLogo as pe, InstitutionLogo as Ze, H3 as Je, P as ce } from "@mxenabled/mxui";
22
+ import { getWeeksInMonth as _e } from "date-fns/getWeeksInMonth";
23
23
  import ge from "@mui/material/styles/useTheme";
24
- import { AdapterDateFns as et } from "@mui/x-date-pickers/AdapterDateFnsV3";
25
- import { DateCalendar as tt } from "@mui/x-date-pickers/DateCalendar";
26
- import { LocalizationProvider as nt } from "@mui/x-date-pickers/LocalizationProvider";
27
- import { isSameDay as it } from "date-fns/isSameDay";
28
- import rt from "@mui/material/Badge";
29
- import { PickersDay as ot } from "@mui/x-date-pickers/PickersDay";
30
- import { I as q } from "../IconBacking-B9oC6uL2.mjs";
31
- import { u as w, b as Z, j as I, g as J, p as ke, d as he, h as fe } from "../hooks-ZMp65DFz.mjs";
32
- import { c as v, a as D, g as Me, f as at } from "../RecurringTransactions-BqijW_8S.mjs";
33
- import { T as H } from "../RecurringTransactionsStore-BhBUVm9a.mjs";
34
- import { R as kn } from "../RecurringTransactionsStore-BhBUVm9a.mjs";
35
- import { A as _, W as st } from "../WidgetContainer-CaPjoWeE.mjs";
24
+ import { AdapterDateFns as Qe } from "@mui/x-date-pickers/AdapterDateFnsV3";
25
+ import { DateCalendar as et } from "@mui/x-date-pickers/DateCalendar";
26
+ import { LocalizationProvider as tt } from "@mui/x-date-pickers/LocalizationProvider";
27
+ import { isSameDay as nt } from "date-fns/isSameDay";
28
+ import it from "@mui/material/Badge";
29
+ import { PickersDay as rt } from "@mui/x-date-pickers/PickersDay";
30
+ import { I as X } from "../IconBacking-B9oC6uL2.mjs";
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-C41HAxM5.mjs";
32
+ import { c as L, a as D, g as Ie, f as at } from "../RecurringTransactions-BqijW_8S.mjs";
33
+ import { T as P } from "../RecurringTransactionsStore-BhBUVm9a.mjs";
34
+ import { R as On } from "../RecurringTransactionsStore-BhBUVm9a.mjs";
35
+ import { A as I, W as st } from "../WidgetContainer-6dsjtOVg.mjs";
36
36
  import ct from "@mui/material/Button";
37
37
  import le from "@mui/material/Divider";
38
38
  import ve from "@mui/material/List";
39
- import We from "@mui/material/ListItem";
39
+ import ke from "@mui/material/ListItem";
40
40
  import lt from "@mui/material/ListSubheader";
41
41
  import dt from "@mui/material/ListItemAvatar";
42
42
  import ut from "@mui/material/ListItemButton";
43
43
  import mt from "@mui/material/ListItemText";
44
- import { b as pt } from "../ManageIncome-rcnDYsBJ.mjs";
45
- import { c as $n, M as Bn, S as Pn } from "../ManageIncome-rcnDYsBJ.mjs";
46
- import { f as L } from "../NumberFormatting-DjTD0t3W.mjs";
44
+ import { b as pt } from "../ManageIncome-A69EUO5u.mjs";
45
+ import { c as Wn, M as $n, S as Bn } from "../ManageIncome-A69EUO5u.mjs";
46
+ import { f as A } from "../NumberFormatting-DjTD0t3W.mjs";
47
47
  import { D as xe } from "../Drawer-BEtCk82g.mjs";
48
- import { b as G } from "../Localization-2MODESHW.mjs";
49
- import { f as A, a as E } from "../Dialog-BPTr3qHE.mjs";
50
- import O from "@mui/material/Box";
51
- import { S as $e } from "../StatusBar-BK_uYHAB.mjs";
48
+ import { b as O } from "../Localization-2MODESHW.mjs";
49
+ import { f as E, a as G } from "../Dialog-BPTr3qHE.mjs";
50
+ import k from "@mui/material/Box";
51
+ import { S as We } from "../StatusBar-BK_uYHAB.mjs";
52
52
  import { u as ye } from "../useScreenSize-B6JyS_Lj.mjs";
53
- import { u as be } from "../useWidgetLoadTimer-C1NBkyLd.mjs";
54
- import { L as V } from "../Loader-DUaFpDGv.mjs";
55
- import { M as gt } from "../MiniWidgetContainer-98-hKFqm.mjs";
53
+ import { L as q } from "../Loader-DUaFpDGv.mjs";
54
+ import { M as gt } from "../MiniWidgetContainer-CmXpTylX.mjs";
56
55
  import { u as ht } from "../useDimensions-27p2evRx.mjs";
57
- import { M as ft } from "../MicroWidgetContainer-B2hO9rOG.mjs";
56
+ import { M as ft } from "../MicroWidgetContainer-DEiRnYVa.mjs";
58
57
  const Q = {
59
58
  gridRow: 1,
60
59
  gridColumn: 1,
61
60
  zIndex: 2
62
- }, ee = (t) => t ? { margin: "0 0 -6px -4px" } : void 0, Ce = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(q, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Ye, { color: "primary", filled: !0, sx: { fontSize: n, ...Q } }) }), Re = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(q, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(
63
- Ve,
61
+ }, ee = (t) => t ? { margin: "0 0 -6px -4px" } : void 0, be = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(X, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Ke, { color: "primary", filled: !0, sx: { fontSize: n, ...Q } }) }), Ce = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(X, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(
62
+ Ye,
64
63
  {
65
64
  filled: !0,
66
65
  sx: { color: "categories.income", fontSize: n, ...Q }
67
66
  }
68
- ) }), Te = ({ 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 } }) }), we = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(q, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Oe, { color: "success", filled: !0, sx: { fontSize: n, ...Q } }) }), xt = T(
67
+ ) }), Re = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(X, { 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(X, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Ne, { color: "success", filled: !0, sx: { fontSize: n, ...Q } }) }), xt = R(
69
68
  ({ day: t, outsideCurrentMonth: n, ...i }) => {
70
- const { recurring: r } = w(), { selectedAccountGuids: a } = Z(), { recurrences: c, setSelectedDay: p } = I(), s = f.useMemo(
71
- () => c.filter((d) => a.includes(d.accountGuid)),
72
- [a, c]
69
+ const { recurring: r } = T(), { selectedAccountGuids: a } = Z(), { recurrences: l, setSelectedDay: p } = v(), s = f.useMemo(
70
+ () => l.filter((d) => a.includes(d.accountGuid)),
71
+ [a, l]
73
72
  ).filter(
74
- (d) => it(d.occurredOnDate || d.expectedDate, t)
73
+ (d) => nt(d.occurredOnDate || d.expectedDate, t)
75
74
  ), m = s.some(
76
- (d) => d.type !== v.Income && d.status === D.Upcoming
75
+ (d) => d.type !== L.Income && d.status === D.Upcoming
77
76
  ), u = s.some(
78
- (d) => d.type !== v.Income && d.status === D.Missed
77
+ (d) => d.type !== L.Income && d.status === D.Missed
79
78
  ), x = s.some(
80
- (d) => d.type !== v.Income && d.status === D.Paid
81
- ), b = s.some((d) => d.type === v.Income), y = (m ? 1 : 0) + (u ? 1 : 0) + (x ? 1 : 0) + (b ? 1 : 0);
79
+ (d) => d.type !== L.Income && d.status === D.Paid
80
+ ), b = s.some((d) => d.type === L.Income), y = (m ? 1 : 0) + (u ? 1 : 0) + (x ? 1 : 0) + (b ? 1 : 0);
82
81
  return /* @__PURE__ */ e(
83
- rt,
82
+ it,
84
83
  {
85
- badgeContent: s.length > 0 && /* @__PURE__ */ o(X, { children: [
86
- u && /* @__PURE__ */ e(Te, { isOffset: !0 }),
87
- x && /* @__PURE__ */ e(we, { isOffset: !0 }),
88
- m && /* @__PURE__ */ e(Ce, { isOffset: !0 }),
89
- b && /* @__PURE__ */ e(Re, { isOffset: !0 })
84
+ badgeContent: s.length > 0 && /* @__PURE__ */ o(V, { children: [
85
+ u && /* @__PURE__ */ e(Re, { isOffset: !0 }),
86
+ x && /* @__PURE__ */ e(Te, { isOffset: !0 }),
87
+ m && /* @__PURE__ */ e(be, { isOffset: !0 }),
88
+ b && /* @__PURE__ */ e(Ce, { isOffset: !0 })
90
89
  ] }),
91
90
  overlap: "circular",
92
91
  sx: {
@@ -97,7 +96,7 @@ const Q = {
97
96
  }
98
97
  },
99
98
  children: /* @__PURE__ */ e(
100
- ot,
99
+ rt,
101
100
  {
102
101
  "aria-label": `
103
102
  ${x && r.paid},
@@ -120,13 +119,13 @@ const Q = {
120
119
  }
121
120
  );
122
121
  }
123
- ), Y = ({ icon: t, label: n }) => /* @__PURE__ */ o(l, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
122
+ ), Y = ({ icon: t, label: n }) => /* @__PURE__ */ o(c, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
124
123
  /* @__PURE__ */ e(t, {}),
125
124
  /* @__PURE__ */ e(g, { variant: "XSmall", children: n })
126
- ] }), yt = T(() => {
127
- const { recurring: t } = w();
125
+ ] }), yt = R(() => {
126
+ const { recurring: t } = T();
128
127
  return /* @__PURE__ */ o(
129
- l,
128
+ c,
130
129
  {
131
130
  alignItems: "center",
132
131
  "aria-hidden": !0,
@@ -135,30 +134,30 @@ const Q = {
135
134
  justifyContent: "center",
136
135
  mt: 12,
137
136
  children: [
138
- /* @__PURE__ */ e(Y, { icon: Ce, label: t.expense }),
139
- /* @__PURE__ */ e(Y, { icon: Re, label: t.income }),
140
- /* @__PURE__ */ e(Y, { icon: Te, label: t.missed }),
141
- /* @__PURE__ */ e(Y, { icon: we, label: t.paid })
137
+ /* @__PURE__ */ e(Y, { icon: be, label: t.expense }),
138
+ /* @__PURE__ */ e(Y, { icon: Ce, label: t.income }),
139
+ /* @__PURE__ */ e(Y, { icon: Re, label: t.missed }),
140
+ /* @__PURE__ */ e(Y, { icon: Te, label: t.paid })
142
141
  ]
143
142
  }
144
143
  );
145
- }), Le = 58, Be = T(() => {
146
- const t = ge(), { onEvent: n } = J(), { selectedDay: i, setDateRange: r } = I(), [a, c] = f.useState(
147
- Ie(/* @__PURE__ */ new Date()) * H + Le
144
+ }), Me = 58, $e = R(() => {
145
+ const t = ge(), { onEvent: n } = J(), { selectedDay: i, setDateRange: r } = v(), [a, l] = f.useState(
146
+ _e(/* @__PURE__ */ new Date()) * P + Me
148
147
  ), p = (u) => {
149
- c(Ie(u) * H + Le), r({
150
- start: k(u),
151
- end: F(u)
152
- }), h(u), n(_.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
148
+ l(_e(u) * P + Me), r({
149
+ start: W(u),
150
+ end: z(u)
151
+ }), h(u), n(I.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
153
152
  }, h = (u) => {
154
153
  u && requestAnimationFrame(() => {
155
154
  const x = document.getElementById("recurrence-list");
156
155
  x?.setAttribute("tabindex", "-1"), x?.focus();
157
156
  });
158
157
  }, s = /* @__PURE__ */ e(
159
- tt,
158
+ et,
160
159
  {
161
- minDate: k(/* @__PURE__ */ new Date()),
160
+ minDate: W(/* @__PURE__ */ new Date()),
162
161
  onChange: h,
163
162
  onMonthChange: p,
164
163
  showDaysOutsideCurrentMonth: !0,
@@ -192,11 +191,11 @@ const Q = {
192
191
  minHeight: a
193
192
  },
194
193
  "&.MuiDateCalendar-root": {
195
- minHeight: a + H
194
+ minHeight: a + P
196
195
  },
197
196
  "& .MuiButtonBase-root, .MuiDayCalendar-weekDayLabel": {
198
- height: H,
199
- width: H,
197
+ height: P,
198
+ width: P,
200
199
  margin: 0
201
200
  },
202
201
  "& .MuiDayCalendar-weekDayLabel": {
@@ -209,7 +208,7 @@ const Q = {
209
208
  }
210
209
  );
211
210
  return /* @__PURE__ */ o(
212
- l,
211
+ c,
213
212
  {
214
213
  "aria-describedby": "calendar-description",
215
214
  "aria-labelledby": "calendar-label",
@@ -233,7 +232,7 @@ const Q = {
233
232
  children: "Calendar filter for recurring transactions list. Filter by month or select specific date."
234
233
  }
235
234
  ),
236
- /* @__PURE__ */ o(nt, { dateAdapter: et, children: [
235
+ /* @__PURE__ */ o(tt, { dateAdapter: Qe, children: [
237
236
  i && s,
238
237
  !i && s,
239
238
  /* @__PURE__ */ e(yt, {})
@@ -242,53 +241,53 @@ const Q = {
242
241
  }
243
242
  );
244
243
  }), bt = (t) => {
245
- if (t.type === v.Income)
246
- return /* @__PURE__ */ e(Re, {});
244
+ if (t.type === L.Income)
245
+ return /* @__PURE__ */ e(Ce, {});
247
246
  switch (t.status) {
248
247
  case D.Missed:
249
- return /* @__PURE__ */ e(Te, {});
248
+ return /* @__PURE__ */ e(Re, {});
250
249
  case D.Paid:
251
- return /* @__PURE__ */ e(we, {});
250
+ return /* @__PURE__ */ e(Te, {});
252
251
  default:
253
- return /* @__PURE__ */ e(Ce, {});
252
+ return /* @__PURE__ */ e(be, {});
254
253
  }
255
254
  }, Ct = (t, n) => {
256
255
  switch (t.status) {
257
256
  case D.Paid:
258
- return t.expectedDate ? G(
257
+ return t.expectedDate ? O(
259
258
  n.paid_on,
260
- A(
259
+ E(
261
260
  t.occurredOnDate || t.expectedDate,
262
- E.MONTH_DAY
261
+ G.MONTH_DAY
263
262
  )
264
263
  ) : n.paid;
265
264
  case D.Missed:
266
- return G(
265
+ return O(
267
266
  n.missed_on,
268
- A(t.expectedDate, E.MONTH_DAY)
267
+ E(t.expectedDate, G.MONTH_DAY)
269
268
  );
270
269
  case D.Upcoming:
271
- return G(
270
+ return O(
272
271
  n.upcoming_on,
273
- A(t.expectedDate, E.MONTH_DAY)
272
+ E(t.expectedDate, G.MONTH_DAY)
274
273
  );
275
274
  default:
276
275
  return n.unknown;
277
276
  }
278
- }, Ae = ({
277
+ }, Le = ({
279
278
  recurrence: t,
280
279
  isMini: n = !1,
281
280
  onRecurrenceClick: i = () => {
282
281
  },
283
282
  showOrdinal: r = !1
284
283
  }) => {
285
- const { recurring: a } = w(), { repeatingTransactions: c } = I(), [p, h] = f.useState(!1), s = f.useMemo(
286
- () => c.find((C) => C.guid === t.repeatingTransactionGuid),
287
- [t, c]
288
- ), m = t.type === v.Income, u = t.status === D.Paid, x = t.status === D.Missed, b = t.status === D.Upcoming;
284
+ const { recurring: a } = T(), { repeatingTransactions: l } = v(), [p, h] = f.useState(!1), s = f.useMemo(
285
+ () => l.find((w) => w.guid === t.repeatingTransactionGuid),
286
+ [t, l]
287
+ ), m = t.type === L.Income, u = t.status === D.Paid, x = t.status === D.Missed, b = t.status === D.Upcoming;
289
288
  let y = a.paid?.toLowerCase();
290
- return x ? y = a.missed?.toLowerCase() : b && (y = r ? Me(a, s || {}, !0) : Me(a, s || {}, !1)), //TODO: implement common/components/ListItemRow.tsx
291
- /* @__PURE__ */ o(We, { disableGutters: !0, disablePadding: !0, children: [
289
+ return x ? y = a.missed?.toLowerCase() : b && (y = r ? Ie(a, s || {}, !0) : Ie(a, s || {}, !1)), //TODO: implement common/components/ListItemRow.tsx
290
+ /* @__PURE__ */ o(ke, { disableGutters: !0, disablePadding: !0, children: [
292
291
  /* @__PURE__ */ o(ut, { onClick: () => {
293
292
  h(!0), i(t);
294
293
  }, children: [
@@ -300,20 +299,20 @@ const Q = {
300
299
  }
301
300
  ) }),
302
301
  /* @__PURE__ */ e(mt, { children: /* @__PURE__ */ o(
303
- l,
302
+ c,
304
303
  {
305
304
  direction: "row",
306
305
  gap: 4,
307
306
  sx: { justifyContent: "space-between", textOverflow: "ellipsis", textWrap: "nowrap" },
308
307
  children: [
309
- /* @__PURE__ */ o(l, { direction: "column", width: "50%", children: [
308
+ /* @__PURE__ */ o(c, { direction: "column", width: "50%", children: [
310
309
  /* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: t.name }),
311
- /* @__PURE__ */ e(l, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */ o(l, { direction: "row", gap: 4, children: [
310
+ /* @__PURE__ */ e(c, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */ o(c, { direction: "row", gap: 4, children: [
312
311
  bt(t),
313
312
  /* @__PURE__ */ e(g, { variant: "caption", children: Ct(t, a) })
314
- ] }) : /* @__PURE__ */ o(X, { children: [
313
+ ] }) : /* @__PURE__ */ o(V, { children: [
315
314
  t.institutionGuid && /* @__PURE__ */ e(
316
- Je,
315
+ Ze,
317
316
  {
318
317
  alt: `${t.institutionName} institution logo`,
319
318
  institutionGuid: t.institutionGuid,
@@ -323,13 +322,13 @@ const Q = {
323
322
  /* @__PURE__ */ e(g, { sx: { maxWidth: 250 }, variant: "caption", children: t.institutionName })
324
323
  ] }) })
325
324
  ] }),
326
- /* @__PURE__ */ o(l, { alignItems: "flex-end", width: "100%", children: [
325
+ /* @__PURE__ */ o(c, { alignItems: "flex-end", width: "100%", children: [
327
326
  /* @__PURE__ */ o(g, { bold: !0, color: m ? "success.main" : "text.primary", variant: "body1", children: [
328
327
  m ? "+" : "",
329
- L(t.amount, "0,0.00")
328
+ A(t.amount, "0,0.00")
330
329
  ] }),
331
330
  !n && /* @__PURE__ */ o(
332
- l,
331
+ c,
333
332
  {
334
333
  direction: "row",
335
334
  sx: {
@@ -340,7 +339,7 @@ const Q = {
340
339
  width: "100%"
341
340
  },
342
341
  children: [
343
- u && /* @__PURE__ */ e(Oe, { color: "success", filled: !0, size: 12 }),
342
+ u && /* @__PURE__ */ e(Ne, { color: "success", filled: !0, size: 12 }),
344
343
  x && /* @__PURE__ */ e(Ge, { color: "error", filled: !0, size: 12 }),
345
344
  /* @__PURE__ */ e(g, { bold: !0, color: "text.secondary", variant: "caption", children: y })
346
345
  ]
@@ -357,7 +356,7 @@ const Q = {
357
356
  ariaLabelClose: a.close_drawer_aria,
358
357
  isOpen: p,
359
358
  onClose: () => h(!1),
360
- title: t.type === v.Income ? a.income_details : a.expense_details,
359
+ title: t.type === L.Income ? a.income_details : a.expense_details,
361
360
  children: s && /* @__PURE__ */ e(
362
361
  pt,
363
362
  {
@@ -368,30 +367,30 @@ const Q = {
368
367
  }
369
368
  )
370
369
  ] });
371
- }, z = T(
370
+ }, H = R(
372
371
  ({
373
372
  recurrences: t,
374
373
  isMini: n = !1,
375
374
  onResetClick: i,
376
375
  onRecurrenceClick: r,
377
376
  sx: a = {},
378
- title: c
377
+ title: l
379
378
  }) => {
380
- const { recurring: p } = w(), h = f.useMemo(() => at(t), [t]);
381
- return /* @__PURE__ */ o(l, { id: "recurrence-list", sx: { gap: 8, mt: 4, ...a }, "tab-index": -1, children: [
382
- c && /* @__PURE__ */ o(
383
- l,
379
+ const { recurring: p } = T(), h = f.useMemo(() => at(t), [t]);
380
+ return /* @__PURE__ */ o(c, { id: "recurrence-list", sx: { gap: 8, mt: 4, ...a }, "tab-index": -1, children: [
381
+ l && /* @__PURE__ */ o(
382
+ c,
384
383
  {
385
384
  sx: { alignItems: "top", direction: "row", justifyContent: "space-between", px: 24 },
386
385
  children: [
387
- /* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: c }),
386
+ /* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: l }),
388
387
  i && /* @__PURE__ */ e(ct, { onClick: i, variant: "text", children: p.reset })
389
388
  ]
390
389
  }
391
390
  ),
392
391
  t.length === 0 ? /* @__PURE__ */ e(g, { fontStyle: "italic", sx: { py: 24, textAlign: "center" }, children: p.no_activities }) : /* @__PURE__ */ e(ve, { children: n ? t.map((s, m) => /* @__PURE__ */ o(f.Fragment, { children: [
393
392
  /* @__PURE__ */ e(
394
- Ae,
393
+ Le,
395
394
  {
396
395
  isMini: n,
397
396
  onRecurrenceClick: r,
@@ -400,13 +399,13 @@ const Q = {
400
399
  ),
401
400
  /* @__PURE__ */ e(le, { sx: { mx: 24 } })
402
401
  ] }, `recurrence-${m}`)) : h.map((s, m) => /* @__PURE__ */ o(f.Fragment, { children: [
403
- /* @__PURE__ */ e(We, { children: /* @__PURE__ */ e(
402
+ /* @__PURE__ */ e(ke, { children: /* @__PURE__ */ e(
404
403
  ve,
405
404
  {
406
- subheader: /* @__PURE__ */ e(lt, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ e(g, { bold: !0, variant: "caption", children: A(s.date, E.DAY_OF_WEEK_MONTH_DAY) }) }),
405
+ subheader: /* @__PURE__ */ e(lt, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ e(g, { bold: !0, variant: "caption", children: E(s.date, G.DAY_OF_WEEK_MONTH_DAY) }) }),
407
406
  sx: { width: "100%" },
408
407
  children: s.recurrences.map((u, x) => /* @__PURE__ */ e(f.Fragment, { children: /* @__PURE__ */ e(
409
- Ae,
408
+ Le,
410
409
  {
411
410
  isMini: n,
412
411
  onRecurrenceClick: r,
@@ -419,35 +418,35 @@ const Q = {
419
418
  ] }, `recurrence-${m}`)) })
420
419
  ] });
421
420
  }
422
- ), Ee = T(
423
- ({ expected: t, isExpense: n = !0, missed: i, paid: r, title: a, total: c, upcoming: p }) => {
424
- const h = ge(), { isSmallMobile: s } = ye(), { recurring: m } = w(), u = f.useMemo(() => {
421
+ ), Ae = R(
422
+ ({ expected: t, isExpense: n = !0, missed: i, paid: r, title: a, total: l, upcoming: p }) => {
423
+ const h = ge(), { isSmallMobile: s } = ye(), { recurring: m } = T(), u = f.useMemo(() => {
425
424
  const x = [{ color: h.palette.success.main, percentage: `${r / t}` }];
426
425
  return i && x.push({ color: h.palette.error.main, percentage: `${i / t}` }), x;
427
426
  }, [r, t, i]);
428
- return /* @__PURE__ */ o(l, { children: [
429
- /* @__PURE__ */ o(l, { sx: { flexDirection: "row", justifyContent: "space-between", pb: 12 }, children: [
430
- /* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: `${a} (${c})` }),
431
- /* @__PURE__ */ e(g, { bold: !0, color: n ? "text.primary" : "success.main", variant: "body1", children: `${n ? "-" : "+"}${L(t, "0,0.00")}` })
427
+ return /* @__PURE__ */ o(c, { children: [
428
+ /* @__PURE__ */ o(c, { sx: { flexDirection: "row", justifyContent: "space-between", pb: 12 }, children: [
429
+ /* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: `${a} (${l})` }),
430
+ /* @__PURE__ */ e(g, { bold: !0, color: n ? "text.primary" : "success.main", variant: "body1", children: `${n ? "-" : "+"}${A(t, "0,0.00")}` })
432
431
  ] }),
433
- /* @__PURE__ */ e($e, { data: u, height: 12 }),
434
- /* @__PURE__ */ o(l, { sx: { alignItems: "center", flexDirection: "row", gap: 2, my: 8 }, children: [
435
- /* @__PURE__ */ e(O, { sx: { bgcolor: "success.main", height: 8, mr: 8, width: 8 } }),
436
- !s && /* @__PURE__ */ e(g, { bold: !0, variant: "body2", children: L(r, "0,0.00") }),
432
+ /* @__PURE__ */ e(We, { data: u, height: 12 }),
433
+ /* @__PURE__ */ o(c, { sx: { alignItems: "center", flexDirection: "row", gap: 2, my: 8 }, children: [
434
+ /* @__PURE__ */ e(k, { sx: { bgcolor: "success.main", height: 8, mr: 8, width: 8 } }),
435
+ !s && /* @__PURE__ */ e(g, { bold: !0, variant: "body2", children: A(r, "0,0.00") }),
437
436
  /* @__PURE__ */ e(g, { variant: "caption", children: m.paid?.toLowerCase() }),
438
- i !== void 0 && /* @__PURE__ */ o(X, { children: [
439
- /* @__PURE__ */ e(O, { sx: { bgcolor: "error.main", height: 8, ml: 16, mr: 8, width: 8 } }),
440
- !s && /* @__PURE__ */ e(g, { bold: !0, variant: "body2", children: L(i, "0,0.00") }),
437
+ i !== void 0 && /* @__PURE__ */ o(V, { children: [
438
+ /* @__PURE__ */ e(k, { sx: { bgcolor: "error.main", height: 8, ml: 16, mr: 8, width: 8 } }),
439
+ !s && /* @__PURE__ */ e(g, { bold: !0, variant: "body2", children: A(i, "0,0.00") }),
441
440
  /* @__PURE__ */ e(g, { variant: "caption", children: m.missed?.toLowerCase() })
442
441
  ] }),
443
- /* @__PURE__ */ e(O, { sx: { bgcolor: "divider", height: 8, ml: 16, mr: 8, width: 8 } }),
444
- !s && /* @__PURE__ */ e(g, { bold: !0, variant: "body2", children: L(p, "0,0.00") }),
442
+ /* @__PURE__ */ e(k, { sx: { bgcolor: "divider", height: 8, ml: 16, mr: 8, width: 8 } }),
443
+ !s && /* @__PURE__ */ e(g, { bold: !0, variant: "body2", children: A(p, "0,0.00") }),
445
444
  /* @__PURE__ */ e(g, { variant: "caption", children: m.upcoming })
446
445
  ] })
447
446
  ] });
448
447
  }
449
- ), Rt = T(() => {
450
- const { recurring: t } = w(), { availableWidth: n } = ke(), { isDesktop: i, isSmallMobile: r, isMobile: a } = ye(n), { onEvent: c } = J(), {
448
+ ), Rt = R(() => {
449
+ const { recurring: t } = T(), { availableWidth: n } = Oe(), { isDesktop: i, isSmallMobile: r, isMobile: a } = ye(n), { onEvent: l } = J(), {
451
450
  currentMonthExpenses: p,
452
451
  currentMonthIncome: h,
453
452
  dateRange: s,
@@ -457,33 +456,33 @@ const Q = {
457
456
  pastRecurrences: b,
458
457
  paidExpenseTotal: y,
459
458
  paidIncomeTotal: d,
460
- selectedDay: C,
461
- selectedDayRecurrences: W,
462
- setDateRange: U,
459
+ selectedDay: w,
460
+ selectedDayRecurrences: S,
461
+ setDateRange: F,
463
462
  upcomingExpenseTotal: te,
464
463
  upcomingIncomeTotal: ne,
465
- upcomingRecurrences: $
466
- } = I(), [B, S] = f.useState(0), ie = je(s.start, /* @__PURE__ */ new Date()), M = (R, oe) => {
467
- S(oe);
468
- }, j = (R) => {
469
- c(_.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
470
- transaction_guid: R.transaction?.guid
464
+ upcomingRecurrences: U
465
+ } = v(), [$, _] = f.useState(0), ie = Ue(s.start, /* @__PURE__ */ new Date()), M = (C, oe) => {
466
+ _(oe);
467
+ }, j = (C) => {
468
+ l(I.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
469
+ transaction_guid: C.transaction?.guid
471
470
  });
472
- }, K = (R) => {
473
- c(_.RECURRING_TRANSACTIONS_CLICK_PAID, {
474
- transaction_guid: R.transaction?.guid
471
+ }, K = (C) => {
472
+ l(I.RECURRING_TRANSACTIONS_CLICK_PAID, {
473
+ transaction_guid: C.transaction?.guid
475
474
  });
476
- }, P = () => {
477
- const R = Fe(s.start, 1);
478
- U({
479
- start: k(R),
480
- end: F(R)
475
+ }, B = () => {
476
+ const C = ze(s.start, 1);
477
+ F({
478
+ start: W(C),
479
+ end: z(C)
481
480
  });
482
481
  }, re = () => {
483
- const R = Ue(s.start, 1);
484
- U({
485
- start: k(R),
486
- end: F(R)
482
+ const C = Fe(s.start, 1);
483
+ F({
484
+ start: W(C),
485
+ end: z(C)
487
486
  });
488
487
  };
489
488
  return /* @__PURE__ */ o(
@@ -495,27 +494,27 @@ const Q = {
495
494
  },
496
495
  children: [
497
496
  /* @__PURE__ */ o(se, { md: !0, sm: 12, width: "100%", children: [
498
- /* @__PURE__ */ o(l, { sx: { gap: 16, px: i ? 48 : 24 }, children: [
499
- /* @__PURE__ */ o(l, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
500
- /* @__PURE__ */ e(Qe, { children: G(
497
+ /* @__PURE__ */ o(c, { sx: { gap: 16, px: i ? 48 : 24 }, children: [
498
+ /* @__PURE__ */ o(c, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
499
+ /* @__PURE__ */ e(Je, { children: O(
501
500
  t.header_title,
502
- A(s.start, E.MONTH_LONG)
501
+ E(s.start, G.MONTH_LONG)
503
502
  ) }),
504
- !i && /* @__PURE__ */ o(l, { direction: "row", gap: 4, children: [
503
+ !i && /* @__PURE__ */ o(c, { direction: "row", gap: 4, children: [
505
504
  /* @__PURE__ */ e(
506
- Se,
505
+ De,
507
506
  {
508
507
  color: "primary",
509
508
  disabled: ie,
510
509
  onClick: re,
511
- children: /* @__PURE__ */ e(Xe, {})
510
+ children: /* @__PURE__ */ e(qe, {})
512
511
  }
513
512
  ),
514
- /* @__PURE__ */ e(Se, { color: "primary", onClick: P, children: /* @__PURE__ */ e(qe, {}) })
513
+ /* @__PURE__ */ e(De, { color: "primary", onClick: B, children: /* @__PURE__ */ e(Ve, {}) })
515
514
  ] })
516
515
  ] }),
517
516
  /* @__PURE__ */ e(
518
- Ee,
517
+ Ae,
519
518
  {
520
519
  expected: m,
521
520
  missed: x,
@@ -526,7 +525,7 @@ const Q = {
526
525
  }
527
526
  ),
528
527
  /* @__PURE__ */ e(
529
- Ee,
528
+ Ae,
530
529
  {
531
530
  expected: u,
532
531
  isExpense: !1,
@@ -537,38 +536,38 @@ const Q = {
537
536
  }
538
537
  ),
539
538
  i && /* @__PURE__ */ e(
540
- z,
539
+ H,
541
540
  {
542
541
  onRecurrenceClick: j,
543
- recurrences: $,
542
+ recurrences: U,
544
543
  title: t.upcoming_activity
545
544
  }
546
545
  )
547
546
  ] }),
548
- !i && /* @__PURE__ */ o(l, { sx: { px: a ? 0 : 24 }, children: [
549
- /* @__PURE__ */ o(Ke, { onChange: M, value: B, variant: "fullWidth", children: [
547
+ !i && /* @__PURE__ */ o(c, { sx: { px: a ? 0 : 24 }, children: [
548
+ /* @__PURE__ */ o(je, { onChange: M, value: $, variant: "fullWidth", children: [
550
549
  /* @__PURE__ */ e(
551
- _e,
550
+ Se,
552
551
  {
553
552
  label: /* @__PURE__ */ e(g, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: r ? t.upcoming : t.upcoming_activity })
554
553
  }
555
554
  ),
556
555
  /* @__PURE__ */ e(
557
- _e,
556
+ Se,
558
557
  {
559
558
  label: /* @__PURE__ */ e(g, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: r ? t.past : t.past_transactions })
560
559
  }
561
560
  )
562
561
  ] }),
563
- B === 0 && /* @__PURE__ */ e(
564
- z,
562
+ $ === 0 && /* @__PURE__ */ e(
563
+ H,
565
564
  {
566
565
  onRecurrenceClick: j,
567
- recurrences: $
566
+ recurrences: U
568
567
  }
569
568
  ),
570
- B === 1 && /* @__PURE__ */ e(
571
- z,
569
+ $ === 1 && /* @__PURE__ */ e(
570
+ H,
572
571
  {
573
572
  onRecurrenceClick: K,
574
573
  recurrences: b
@@ -576,16 +575,16 @@ const Q = {
576
575
  )
577
576
  ] })
578
577
  ] }),
579
- i && /* @__PURE__ */ e(se, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ o(l, { gap: 24, children: [
580
- /* @__PURE__ */ e(Be, {}),
578
+ i && /* @__PURE__ */ e(se, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ o(c, { gap: 24, children: [
579
+ /* @__PURE__ */ e($e, {}),
581
580
  /* @__PURE__ */ e(
582
- z,
581
+ H,
583
582
  {
584
583
  onRecurrenceClick: K,
585
- recurrences: W || b,
586
- title: C ? G(
584
+ recurrences: S || b,
585
+ title: w ? O(
587
586
  t.day_transactions,
588
- A(C, E.MONTH_DAY)
587
+ E(w, G.MONTH_DAY)
589
588
  ) : t.past_transactions
590
589
  }
591
590
  )
@@ -593,19 +592,18 @@ const Q = {
593
592
  ]
594
593
  }
595
594
  );
596
- }), Mn = T(({ onBackClick: t, sx: n = {} }) => {
597
- const { accounts: i } = he(), { recurring: r } = w(), { isCopyLoaded: a, isInitialized: c, selectedAccountGuids: p, setSelectedAccounts: h } = Z(), { isDataLoaded: s, loadRepeatingTransactions: m, setDateRange: u } = I(), { setFilter: x } = fe(), { onEvent: b } = J(), { isMobile: y } = ye(), [d, C] = f.useState(!1);
598
- return be({
599
- widgetName: "RecurringTransactionsWidget",
600
- isLoaded: s
601
- }), f.useEffect(() => {
595
+ }), In = R(({ onBackClick: t, sx: n = {} }) => {
596
+ const { accounts: i } = he(), { recurring: r } = T(), { isCopyLoaded: a, isInitialized: l, selectedAccountGuids: p, setSelectedAccounts: h } = Z(), { isDataLoaded: s, loadRepeatingTransactions: m, setDateRange: u } = v(), { setFilter: x } = fe(), { onEvent: b } = J(), { onLoad: y } = ot(), { isMobile: d } = ye(), [w, S] = f.useState(!1);
597
+ return f.useEffect(() => {
602
598
  h(i);
603
599
  }, [i]), f.useEffect(() => {
604
- c && (x({
600
+ l && (x({
605
601
  dateRange: { start: me(ue(), 90), end: de() },
606
602
  accounts: p
607
- }), u({ start: k(/* @__PURE__ */ new Date()), end: F(/* @__PURE__ */ new Date()) }), m().finally());
608
- }, [c]), a ? /* @__PURE__ */ o(
603
+ }), u({ start: W(/* @__PURE__ */ new Date()), end: z(/* @__PURE__ */ new Date()) }), m().finally(() => {
604
+ y?.("RecurringTransactionsWidget");
605
+ }));
606
+ }, [l]), a ? /* @__PURE__ */ o(
609
607
  st,
610
608
  {
611
609
  accountOptions: i,
@@ -614,17 +612,17 @@ const Q = {
614
612
  label: r.action_title,
615
613
  iconName: "credit_card_gear",
616
614
  onClick: () => {
617
- C(!0), b(_.RECURRING_TRANSACTIONS_CLICK_SETTINGS);
615
+ S(!0), b(I.RECURRING_TRANSACTIONS_CLICK_SETTINGS);
618
616
  }
619
617
  }
620
618
  ],
621
- hasDivider: y,
622
- onAccountsFilterClick: () => b(_.RECURRING_TRANSACTIONS_CLICK_FILTER),
619
+ hasDivider: d,
620
+ onAccountsFilterClick: () => b(I.RECURRING_TRANSACTIONS_CLICK_FILTER),
623
621
  onBackClick: t,
624
622
  sx: n,
625
623
  title: r.title,
626
624
  children: [
627
- c && s ? /* @__PURE__ */ e(Rt, {}) : /* @__PURE__ */ o(l, { direction: "column", p: 48, spacing: 24, children: [
625
+ l && s ? /* @__PURE__ */ e(Rt, {}) : /* @__PURE__ */ o(c, { direction: "column", p: 48, spacing: 24, children: [
628
626
  /* @__PURE__ */ e(ae, { height: 100, variant: "rounded", width: "100%" }),
629
627
  /* @__PURE__ */ e(ae, { height: 100, variant: "rounded", width: "100%" }),
630
628
  /* @__PURE__ */ e(ae, { height: 600, variant: "rounded", width: "100%" })
@@ -633,49 +631,46 @@ const Q = {
633
631
  xe,
634
632
  {
635
633
  ariaLabelClose: r.close_drawer_aria,
636
- isOpen: d,
637
- onClose: () => C(!1),
634
+ isOpen: w,
635
+ onClose: () => S(!1),
638
636
  shouldShowHeaderBorders: !1,
639
637
  title: r.action_title,
640
- children: /* @__PURE__ */ e(Ne, {})
638
+ children: /* @__PURE__ */ e(Ee, {})
641
639
  }
642
640
  )
643
641
  ]
644
642
  }
645
- ) : /* @__PURE__ */ e(V, {});
646
- }), Tt = T(() => {
647
- const { recurring: t } = w(), { availableWidth: n } = ke(), { selectedDay: i, selectedDayRecurrences: r, setSelectedDay: a, upcomingRecurrences: c } = I(), p = n < 750;
648
- return /* @__PURE__ */ o(l, { flexDirection: p ? "column" : "row", width: "100%", children: [
649
- /* @__PURE__ */ e(Be, {}),
643
+ ) : /* @__PURE__ */ e(q, {});
644
+ }), Tt = R(() => {
645
+ const { recurring: t } = T(), { availableWidth: n } = Oe(), { selectedDay: i, selectedDayRecurrences: r, setSelectedDay: a, upcomingRecurrences: l } = v(), p = n < 750;
646
+ return /* @__PURE__ */ o(c, { flexDirection: p ? "column" : "row", width: "100%", children: [
647
+ /* @__PURE__ */ e($e, {}),
650
648
  !p && /* @__PURE__ */ e(le, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
651
649
  /* @__PURE__ */ e(
652
- z,
650
+ H,
653
651
  {
654
652
  isMini: !0,
655
653
  onResetClick: i ? () => a(i) : void 0,
656
- recurrences: r || c.slice(0, 5),
654
+ recurrences: r || l.slice(0, 5),
657
655
  sx: { width: p ? "100%" : "calc(100% - 336px)", mt: 12 },
658
- title: i ? G(
656
+ title: i ? O(
659
657
  t.day_transactions,
660
- A(i, E.MONTH_DAY)
658
+ E(i, G.MONTH_DAY)
661
659
  ) : t.upcoming_activity
662
660
  }
663
661
  )
664
662
  ] });
665
- }), vn = T(
663
+ }), vn = R(
666
664
  ({ onPrimaryCtaClick: t, sx: n }) => {
667
- const { accounts: i } = he(), { recurring: r } = w(), { setFilter: a } = fe(), { isDataLoaded: c, loadRepeatingTransactions: p } = I(), { isCopyLoaded: h, isInitialized: s, setSelectedAccounts: m, selectedAccountGuids: u } = Z();
668
- return be({
669
- widgetName: "RecurringTransactionsMiniWidget",
670
- isLoaded: c
671
- }), f.useEffect(() => {
665
+ const { accounts: i } = he(), { recurring: r } = T(), { setFilter: a } = fe(), { isDataLoaded: l, loadRepeatingTransactions: p } = v(), { isCopyLoaded: h, isInitialized: s, setSelectedAccounts: m, selectedAccountGuids: u } = Z();
666
+ return f.useEffect(() => {
672
667
  s && m(i);
673
668
  }, [s]), f.useEffect(() => {
674
669
  u.length > 0 && (a({
675
670
  dateRange: { start: me(ue(), 90), end: de() },
676
671
  accounts: u
677
672
  }), p().finally());
678
- }, [u]), !h || !s ? /* @__PURE__ */ e(V, {}) : /* @__PURE__ */ e(
673
+ }, [u]), !h || !s ? /* @__PURE__ */ e(q, {}) : /* @__PURE__ */ e(
679
674
  gt,
680
675
  {
681
676
  className: "mx-exp-recurring-transactions-miniwidget",
@@ -684,14 +679,14 @@ const Q = {
684
679
  subTitle: r.sub_title,
685
680
  sx: n,
686
681
  title: r.mini_title,
687
- children: c ? /* @__PURE__ */ e(Tt, {}) : /* @__PURE__ */ e(V, {})
682
+ children: l ? /* @__PURE__ */ e(Tt, {}) : /* @__PURE__ */ e(q, {})
688
683
  }
689
684
  );
690
685
  }
691
686
  ), wt = ({
692
687
  upcomingRecurrences: t,
693
688
  maxLogos: n = 3
694
- }) => /* @__PURE__ */ e(l, { sx: { flexDirection: "row", gap: 4 }, children: t?.slice(0, n).map((i, r) => /* @__PURE__ */ e(
689
+ }) => /* @__PURE__ */ e(c, { sx: { flexDirection: "row", gap: 4 }, children: t?.slice(0, n).map((i, r) => /* @__PURE__ */ e(
695
690
  pe,
696
691
  {
697
692
  categoryGuid: i.categoryGuid || "",
@@ -705,18 +700,18 @@ const Q = {
705
700
  }) => {
706
701
  const r = (a) => a * (n / 2);
707
702
  return /* @__PURE__ */ e(
708
- O,
703
+ k,
709
704
  {
710
705
  sx: {
711
706
  position: "relative",
712
707
  width: 64
713
708
  },
714
- children: t.map((a, c) => c < i ? /* @__PURE__ */ e(
715
- O,
709
+ children: t.map((a, l) => l < i ? /* @__PURE__ */ e(
710
+ k,
716
711
  {
717
712
  sx: {
718
713
  borderRadius: "4px",
719
- left: r(c),
714
+ left: r(l),
720
715
  outlineColor: "common.white",
721
716
  outlineStyle: "solid",
722
717
  outlineWidth: 2,
@@ -731,7 +726,7 @@ const Q = {
731
726
  }
732
727
  )
733
728
  },
734
- `${a.categoryGuid}-${a.merchantGuid}-${c}`
729
+ `${a.categoryGuid}-${a.merchantGuid}-${l}`
735
730
  ) : null)
736
731
  }
737
732
  );
@@ -741,9 +736,9 @@ const Q = {
741
736
  isLargeScreen: i,
742
737
  isSmallScreen: r,
743
738
  label: a
744
- }) => /* @__PURE__ */ o(l, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
739
+ }) => /* @__PURE__ */ o(c, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
745
740
  /* @__PURE__ */ e(
746
- O,
741
+ k,
747
742
  {
748
743
  sx: {
749
744
  borderRadius: "2px",
@@ -753,101 +748,98 @@ const Q = {
753
748
  }
754
749
  }
755
750
  ),
756
- /* @__PURE__ */ o(l, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
757
- !r && /* @__PURE__ */ e(g, { bold: !0, variant: "caption", children: L(t, t === 0 || !i ? "0,0" : "0,0.00") }),
751
+ /* @__PURE__ */ o(c, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
752
+ !r && /* @__PURE__ */ e(g, { bold: !0, variant: "caption", children: A(t, t === 0 || !i ? "0,0" : "0,0.00") }),
758
753
  /* @__PURE__ */ e(g, { variant: "caption", children: a })
759
754
  ] })
760
- ] }), _t = T(() => {
761
- const { recurring: t } = w();
762
- return /* @__PURE__ */ o(l, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
763
- /* @__PURE__ */ e(Ze, { size: 32 }),
764
- /* @__PURE__ */ o(l, { children: [
755
+ ] }), _t = R(() => {
756
+ const { recurring: t } = T();
757
+ return /* @__PURE__ */ o(c, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
758
+ /* @__PURE__ */ e(Xe, { size: 32 }),
759
+ /* @__PURE__ */ o(c, { children: [
765
760
  /* @__PURE__ */ e(ce, { fontWeight: 600, variant: "body1", children: t.zero_state_content_header }),
766
761
  /* @__PURE__ */ e(ce, { color: "text.secondary", variant: "subtitle2", children: t.zero_state_content_description })
767
762
  ] })
768
763
  ] });
769
- }), Ln = T(
764
+ }), Mn = R(
770
765
  ({ onCTAClick: t }) => {
771
- const [n, i] = f.useState(!1), { onEvent: r } = J(), a = ge(), { accounts: c } = he(), [p, { width: h }] = ht(), { isCopyLoaded: s, isInitialized: m, selectedAccountGuids: u, setSelectedAccounts: x } = Z(), {
766
+ const [n, i] = f.useState(!1), { onEvent: r } = J(), a = ge(), { accounts: l } = he(), [p, { width: h }] = ht(), { isCopyLoaded: s, isInitialized: m, selectedAccountGuids: u, setSelectedAccounts: x } = Z(), {
772
767
  loadRepeatingTransactions: b,
773
768
  upcomingRecurrences: y,
774
769
  expenseTotal: d,
775
- missedExpenseTotal: C,
776
- paidExpenseTotal: W,
777
- repeatingTransactions: U,
770
+ missedExpenseTotal: w,
771
+ paidExpenseTotal: S,
772
+ repeatingTransactions: F,
778
773
  setDateRange: te,
779
774
  upcomingExpenseTotal: ne,
780
- isDataLoaded: $
781
- } = I(), { setFilter: B } = fe(), { recurring: S, budgets: ie } = w();
782
- be({
783
- widgetName: "RecurringTransactionsMicroWidget",
784
- isLoaded: $
785
- }), f.useEffect(() => {
786
- x(c);
787
- }, [c]), f.useEffect(() => {
788
- m && (B({
775
+ isDataLoaded: U
776
+ } = v(), { setFilter: $ } = fe(), { recurring: _, budgets: ie } = T();
777
+ f.useEffect(() => {
778
+ x(l);
779
+ }, [l]), f.useEffect(() => {
780
+ m && ($({
789
781
  dateRange: { start: me(ue(), 90), end: de() },
790
782
  accounts: u
791
- }), te({ start: k(/* @__PURE__ */ new Date()), end: F(/* @__PURE__ */ new Date()) }), b().finally(), i(!0));
783
+ }), te({ start: W(/* @__PURE__ */ new Date()), end: z(/* @__PURE__ */ new Date()) }), b().finally(), i(!0));
792
784
  }, [m]), f.useEffect(() => {
793
- n && r(_.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
785
+ n && r(I.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
794
786
  state: y.length > 0 ? "default" : "zeroState"
795
787
  });
796
788
  }, [n]);
797
789
  const M = h <= 288, j = h >= 450, K = f.useMemo(() => {
798
790
  const N = [
799
- { color: a.palette.success.main, percentage: `${W / d}` }
791
+ { color: a.palette.success.main, percentage: `${S / d}` }
800
792
  ];
801
- return C && N.push({
793
+ return w && N.push({
802
794
  color: a.palette.error.main,
803
- percentage: `${C / d}`
795
+ percentage: `${w / d}`
804
796
  }), N;
805
797
  }, [
806
- W,
798
+ S,
807
799
  d,
808
- C,
800
+ w,
809
801
  a.palette.success.main,
810
802
  a.palette.error.main
811
- ]), P = f.useMemo(() => L(d, d === 0 ? "0,0" : "0,0.00"), [d]), re = () => {
803
+ ]), B = f.useMemo(() => A(d, d === 0 ? "0,0" : "0,0.00"), [d]), re = () => {
812
804
  r(
813
- y.length > 0 ? _.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : _.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
805
+ y.length > 0 ? I.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : I.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
814
806
  ), t();
815
807
  };
816
- if (!s || !n || !$) return /* @__PURE__ */ e(V, { height: 100 });
817
- const R = 32, oe = y.length > 0, Pe = () => oe ? M ? /* @__PURE__ */ e(
808
+ if (!s || !n || !U) return /* @__PURE__ */ e(q, { height: 100 });
809
+ const C = 32, oe = y.length > 0, Be = () => oe ? M ? /* @__PURE__ */ e(
818
810
  Dt,
819
811
  {
820
- logoSize: R,
812
+ logoSize: C,
821
813
  maxLogos: 3,
822
814
  upcomingRecurrences: y.slice(0, 3)
823
815
  }
824
- ) : /* @__PURE__ */ e(wt, { maxLogos: 3, upcomingRecurrences: y.slice(0, 3) }) : /* @__PURE__ */ e(l, { sx: { width: M ? 64 : 104 } }), He = [
816
+ ) : /* @__PURE__ */ e(wt, { maxLogos: 3, upcomingRecurrences: y.slice(0, 3) }) : /* @__PURE__ */ e(c, { sx: { width: M ? 64 : 104 } }), Pe = [
825
817
  {
826
- amount: W,
818
+ amount: S,
827
819
  bgColor: "success.main",
828
- label: S.paid
820
+ label: _.paid
829
821
  },
830
822
  {
831
- amount: C,
823
+ amount: w,
832
824
  bgColor: "error.main",
833
- label: S.missed
825
+ label: _.missed
834
826
  },
835
827
  {
836
828
  amount: ne,
837
829
  bgColor: "border.light",
838
- label: S.upcoming
830
+ label: _.upcoming
839
831
  }
840
- ], De = !U?.length;
832
+ ], we = !F?.length;
841
833
  return /* @__PURE__ */ e(
842
834
  ft,
843
835
  {
844
836
  className: "mx-recurring-transaction-microwidget",
845
- ctaLabel: De ? ie.get_started_cta : S.primary_cta,
837
+ ctaLabel: we ? ie.get_started_cta : _.primary_cta,
846
838
  onCTAClick: re,
847
- title: S.recurring_expenses,
848
- children: De ? /* @__PURE__ */ e(_t, {}) : /* @__PURE__ */ o(X, { children: [
839
+ title: _.recurring_expenses,
840
+ children: we ? /* @__PURE__ */ e(_t, {}) : /* @__PURE__ */ o(V, { children: [
849
841
  /* @__PURE__ */ o(
850
- l,
842
+ c,
851
843
  {
852
844
  ref: p,
853
845
  sx: {
@@ -856,10 +848,10 @@ const Q = {
856
848
  },
857
849
  children: [
858
850
  /* @__PURE__ */ o(
859
- l,
851
+ c,
860
852
  {
861
853
  sx: [
862
- P.length >= 10 && M ? { flexDirection: "column" } : { flexDirection: "row", gap: 2 },
854
+ B.length >= 10 && M ? { flexDirection: "column" } : { flexDirection: "row", gap: 2 },
863
855
  {
864
856
  alignItems: "baseline",
865
857
  overflow: "hidden",
@@ -872,8 +864,8 @@ const Q = {
872
864
  g,
873
865
  {
874
866
  sx: { width: "100%" },
875
- variant: P.length >= 10 && M ? "H3" : "H2",
876
- children: P
867
+ variant: B.length >= 10 && M ? "H3" : "H2",
868
+ children: B
877
869
  }
878
870
  ),
879
871
  /* @__PURE__ */ e(
@@ -883,20 +875,20 @@ const Q = {
883
875
  pr: 12
884
876
  },
885
877
  variant: "XSmall",
886
- children: S.expected
878
+ children: _.expected
887
879
  }
888
880
  )
889
881
  ]
890
882
  }
891
883
  ),
892
- Pe()
884
+ Be()
893
885
  ]
894
886
  }
895
887
  ),
896
- /* @__PURE__ */ o(l, { sx: { pt: 12 }, children: [
897
- /* @__PURE__ */ e($e, { data: K }),
888
+ /* @__PURE__ */ o(c, { sx: { pt: 12 }, children: [
889
+ /* @__PURE__ */ e(We, { data: K }),
898
890
  /* @__PURE__ */ e(
899
- l,
891
+ c,
900
892
  {
901
893
  sx: {
902
894
  alignItems: "center",
@@ -904,7 +896,7 @@ const Q = {
904
896
  gap: 16,
905
897
  mt: 4
906
898
  },
907
- children: He.map((N, ze) => /* @__PURE__ */ e(
899
+ children: Pe.map((N, He) => /* @__PURE__ */ e(
908
900
  St,
909
901
  {
910
902
  amount: N.amount,
@@ -913,7 +905,7 @@ const Q = {
913
905
  isSmallScreen: M,
914
906
  label: N.label
915
907
  },
916
- `recurrence-legend-${ze}`
908
+ `recurrence-legend-${He}`
917
909
  ))
918
910
  }
919
911
  )
@@ -922,9 +914,9 @@ const Q = {
922
914
  }
923
915
  );
924
916
  }
925
- ), An = T(
917
+ ), Ln = R(
926
918
  ({ isOpen: t, onClose: n, selectedTab: i }) => {
927
- const { cashflow: r } = w();
919
+ const { cashflow: r } = T();
928
920
  return /* @__PURE__ */ e(
929
921
  xe,
930
922
  {
@@ -932,20 +924,20 @@ const Q = {
932
924
  isOpen: t,
933
925
  onClose: n,
934
926
  title: r.cashflow_settings,
935
- children: /* @__PURE__ */ e(Ne, { defaultSelectedTab: i })
927
+ children: /* @__PURE__ */ e(Ee, { defaultSelectedTab: i })
936
928
  }
937
929
  );
938
930
  }
939
931
  );
940
932
  export {
941
- $n as AddRecurringTransactionDetails,
933
+ Wn as AddRecurringTransactionDetails,
942
934
  Gn as ManageExpenses,
943
- Bn as ManageIncome,
944
- Ne as RecurringSettings,
945
- An as RecurringSettingsDrawer,
946
- Ln as RecurringTransactionsMicroWidget,
935
+ $n as ManageIncome,
936
+ Ee as RecurringSettings,
937
+ Ln as RecurringSettingsDrawer,
938
+ Mn as RecurringTransactionsMicroWidget,
947
939
  vn as RecurringTransactionsMiniWidget,
948
- kn as RecurringTransactionsStore,
949
- Mn as RecurringTransactionsWidget,
950
- Pn as SelectTransaction
940
+ On as RecurringTransactionsStore,
941
+ In as RecurringTransactionsWidget,
942
+ Bn as SelectTransaction
951
943
  };