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

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 +2 -2
  2. package/dist/{Account-01wOyrH1.mjs → Account-BrOTlmeK.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-COMjOzwr.mjs → AccountDetailsContent-B7FqH05C.mjs} +8 -8
  4. package/dist/{AccountDetailsHeader-Cbi5G6fJ.mjs → AccountDetailsHeader-C8MxsxhN.mjs} +4 -4
  5. package/dist/{AccountFields-Cd_nOWmf.mjs → AccountFields-BQZ-o6Kj.mjs} +2 -2
  6. package/dist/{AccountListItem-DxY4cCF1.mjs → AccountListItem-aIE9WWTO.mjs} +4 -4
  7. package/dist/{AccountStore-C1zMBzHq.mjs → AccountStore-DqO84Aer.mjs} +2 -2
  8. package/dist/{Accounts-D7QljYas.mjs → Accounts-DC_A4UCa.mjs} +1 -1
  9. package/dist/{BudgetUtil-Df2nII9u.mjs → BudgetUtil-BmZXkL0C.mjs} +1 -1
  10. package/dist/{CategorySelectorDrawer-DqJK_rrL.mjs → CategorySelectorDrawer-SUgfE5GN.mjs} +1 -1
  11. package/dist/{ConnectDrawer-CuUj16NH.mjs → ConnectDrawer-KL8t1qSC.mjs} +1 -1
  12. package/dist/{ConnectionsDrawer-Bz4uwdFE.mjs → ConnectionsDrawer-DaK5uIL5.mjs} +2 -2
  13. package/dist/{CurrencyInput-BFKcs-_K.mjs → CurrencyInput-itK0R3wV.mjs} +1 -1
  14. package/dist/{DebtsStore-Bu8rRRSL.mjs → DebtsStore-DVPZbv2C.mjs} +1 -1
  15. package/dist/{ExportCsvAction-DzTrtPzk.mjs → ExportCsvAction-Cglo8Mca.mjs} +3 -3
  16. package/dist/{GoalStore-CrNhjvNc.mjs → GoalStore-o4rrjGSJ.mjs} +2 -2
  17. package/dist/{Help-BnPXM_N2.mjs → Help-BjLMsuMS.mjs} +1 -1
  18. package/dist/{LineChart-bc1D9xBE.mjs → LineChart-BQRxZF3p.mjs} +1 -1
  19. package/dist/{ListItemAction-uobBrm_a.mjs → ListItemAction-BxTkF6Tz.mjs} +1 -1
  20. package/dist/{ManageIncome-A69EUO5u.mjs → ManageIncome-rcnDYsBJ.mjs} +75 -75
  21. package/dist/{MicroWidgetContainer-DEiRnYVa.mjs → MicroWidgetContainer-B2hO9rOG.mjs} +1 -1
  22. package/dist/{MiniWidgetContainer-CmXpTylX.mjs → MiniWidgetContainer-98-hKFqm.mjs} +1 -1
  23. package/dist/{NetWorthStore-CpL_kqvx.mjs → NetWorthStore-DG2X69jG.mjs} +2 -2
  24. package/dist/{NotificationSettings-CNmJWVeI.mjs → NotificationSettings-C7FYNM7I.mjs} +250 -248
  25. package/dist/{OriginalBalanceAction-DK8_LkPz.mjs → OriginalBalanceAction-C6jdS4ws.mjs} +3 -3
  26. package/dist/{RecurringSettings-B0uObPlD.mjs → RecurringSettings-C81H1l38.mjs} +3 -3
  27. package/dist/{SpendingLegend-Bf-wbJvb.mjs → SpendingLegend-DqZxN_BZ.mjs} +2 -2
  28. package/dist/{TransactionDetails-COH0OKNG.mjs → TransactionDetails-BA_E5nQ-.mjs} +5 -5
  29. package/dist/{TransactionStore-Dz-G8Wd0.mjs → TransactionStore-PRlwE-TF.mjs} +2 -2
  30. package/dist/{User-wXzDI4M8.mjs → User-Cnlegl1N.mjs} +1 -1
  31. package/dist/{ViewMoreMicroCard-C0832BMe.mjs → ViewMoreMicroCard-DfPXJzbv.mjs} +105 -101
  32. package/dist/{WidgetContainer-6dsjtOVg.mjs → WidgetContainer-CaPjoWeE.mjs} +2 -2
  33. package/dist/accounts/index.es.js +148 -140
  34. package/dist/analytics/index.es.js +2 -2
  35. package/dist/budgets/index.es.js +483 -478
  36. package/dist/cashflow/index.es.js +367 -362
  37. package/dist/categories/index.es.js +1 -1
  38. package/dist/common/hooks/index.d.ts +1 -0
  39. package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
  40. package/dist/common/index.es.js +35 -33
  41. package/dist/dashboard/index.es.js +90 -88
  42. package/dist/debts/index.es.js +346 -342
  43. package/dist/{exportTransactionsToCSV-Cz2t0lmA.mjs → exportTransactionsToCSV-DuAaI5XA.mjs} +1 -1
  44. package/dist/finstrong/index.es.js +352 -350
  45. package/dist/goals/index.es.js +518 -511
  46. package/dist/help/index.es.js +13 -9
  47. package/dist/{hooks-C41HAxM5.mjs → hooks-ZMp65DFz.mjs} +11 -11
  48. package/dist/investments/index.es.js +395 -393
  49. package/dist/merchants/index.es.js +1 -1
  50. package/dist/microinsights/index.es.js +1 -1
  51. package/dist/networth/index.es.js +245 -240
  52. package/dist/notifications/index.es.js +2 -2
  53. package/dist/recurringtransactions/index.es.js +293 -285
  54. package/dist/settings/index.es.js +252 -249
  55. package/dist/spending/index.es.js +136 -124
  56. package/dist/transactions/index.es.js +77 -73
  57. package/dist/trends/index.es.js +601 -588
  58. package/dist/{useAccountDisplayName-CMMlIOXF.mjs → useAccountDisplayName-Cjx8YmKK.mjs} +2 -2
  59. package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-B7dxpDrX.mjs} +1 -1
  60. package/dist/useWidgetLoadTimer-C1NBkyLd.mjs +23 -0
  61. package/package.json +1 -1
@@ -5,7 +5,7 @@ import M from "@mui/material/Box";
5
5
  import T from "@mui/material/Divider";
6
6
  import K from "@mui/material/List";
7
7
  import h from "@mui/material/Stack";
8
- import { MerchantLogo as H, Text as S, H1 as oe, InstitutionLogo as ae, P as U } from "@mxenabled/mxui";
8
+ import { MerchantLogo as H, Text as S, H1 as re, InstitutionLogo as ae, P as U } from "@mxenabled/mxui";
9
9
  import ie from "@mui/material/ListItem";
10
10
  import se from "@mui/material/ListItemAvatar";
11
11
  import ce from "@mui/material/ListItemButton";
@@ -17,56 +17,56 @@ import { endOfMonth as _e } from "date-fns/endOfMonth";
17
17
  import { parseISO as me } from "date-fns/parseISO";
18
18
  import $ from "@mui/material/Button";
19
19
  import { Delete as pe, Add as he, ReceiptLong as ye } from "@mxenabled/mx-icons";
20
- import { T as X, a as ge, b as fe, S as Ce, c as be } from "./TransactionDetails-COH0OKNG.mjs";
20
+ import { T as X, a as ge, b as fe, S as Ce, c as be } from "./TransactionDetails-BA_E5nQ-.mjs";
21
21
  import { getDayOfYear as xe } from "date-fns/getDayOfYear";
22
22
  import { setDayOfYear as Se } from "date-fns/setDayOfYear";
23
23
  import { AdapterDateFns as ve } from "@mui/x-date-pickers/AdapterDateFnsV3";
24
24
  import { DatePicker as we } from "@mui/x-date-pickers";
25
25
  import { LocalizationProvider as Ae } from "@mui/x-date-pickers/LocalizationProvider";
26
- import { u as w, j as F, g as G, b as Ie, h as Z, p as De } from "./hooks-C41HAxM5.mjs";
26
+ import { u as w, j as F, g as G, b as Ie, h as Z, o as De } from "./hooks-ZMp65DFz.mjs";
27
27
  import { b as Ee, f as J } from "./NumberFormatting-DjTD0t3W.mjs";
28
28
  import { D as O } from "./Drawer-BEtCk82g.mjs";
29
- import { A as R } from "./WidgetContainer-6dsjtOVg.mjs";
29
+ import { A as R } from "./WidgetContainer-CaPjoWeE.mjs";
30
30
  import { f as Re, a as Te, D as Le } from "./Dialog-BPTr3qHE.mjs";
31
31
  import { formatISO as Oe } from "date-fns/formatISO";
32
32
  import { fromUnixTime as ke } from "date-fns/fromUnixTime";
33
33
  import { S as Ne } from "./SearchBox-B2_zLv8-.mjs";
34
34
  import { h as Me } from "./DateUtil-CBdcsyuk.mjs";
35
35
  import { b as B } from "./Category-CevNQ03n.mjs";
36
- import { T as V } from "./User-wXzDI4M8.mjs";
36
+ import { T as V } from "./User-Cnlegl1N.mjs";
37
37
  const ee = ({
38
38
  frequency: n,
39
39
  firstDay: t,
40
- secondDay: o,
40
+ secondDay: r,
41
41
  onFrequencyChange: i,
42
42
  onFirstDayChange: s,
43
43
  onSecondDayChange: l
44
44
  }) => {
45
- const { recurring: r } = w(), a = u.useMemo(
45
+ const { recurring: o } = w(), a = u.useMemo(
46
46
  () => [
47
- { id: d.EveryWeek, label: r.frequency_every_week },
48
- { id: d.EveryOtherWeek, label: r.frequency_every_other_week },
49
- { id: d.TwiceAMonth, label: r.frequency_twice_a_month },
50
- { id: d.EveryMonth, label: r.frequency_every_month },
51
- { id: d.EveryOtherMonth, label: r.frequency_every_other_month },
52
- { id: d.EveryQuarter, label: r.frequency_every_quarter },
53
- { id: d.EveryOtherQuarter, label: r.frequency_every_other_quarter },
54
- { id: d.EveryYear, label: r.frequency_every_year }
47
+ { id: d.EveryWeek, label: o.frequency_every_week },
48
+ { id: d.EveryOtherWeek, label: o.frequency_every_other_week },
49
+ { id: d.TwiceAMonth, label: o.frequency_twice_a_month },
50
+ { id: d.EveryMonth, label: o.frequency_every_month },
51
+ { id: d.EveryOtherMonth, label: o.frequency_every_other_month },
52
+ { id: d.EveryQuarter, label: o.frequency_every_quarter },
53
+ { id: d.EveryOtherQuarter, label: o.frequency_every_other_quarter },
54
+ { id: d.EveryYear, label: o.frequency_every_year }
55
55
  ],
56
- [r]
56
+ [o]
57
57
  ), m = [
58
- { id: 0, label: r.weekday_sunday },
59
- { id: 1, label: r.weekday_monday },
60
- { id: 2, label: r.weekday_tuesday },
61
- { id: 3, label: r.weekday_wednesday },
62
- { id: 4, label: r.weekday_thursday },
63
- { id: 5, label: r.weekday_friday },
64
- { id: 6, label: r.weekday_saturday }
58
+ { id: 0, label: o.weekday_sunday },
59
+ { id: 1, label: o.weekday_monday },
60
+ { id: 2, label: o.weekday_tuesday },
61
+ { id: 3, label: o.weekday_wednesday },
62
+ { id: 4, label: o.weekday_thursday },
63
+ { id: 5, label: o.weekday_friday },
64
+ { id: 6, label: o.weekday_saturday }
65
65
  ], y = [...Array(31).keys()].map((p) => ({
66
66
  id: p + 1,
67
67
  label: Ee(p + 1)
68
68
  }));
69
- y[30].label += ` (${r.last_day_of_month})`;
69
+ y[30].label += ` (${o.last_day_of_month})`;
70
70
  const C = y.slice(0, 15), v = y.slice(14), b = n === d.EveryWeek || n === d.EveryOtherWeek, g = n === d.TwiceAMonth || n === d.EveryMonth || n === d.EveryOtherMonth || n === d.EveryQuarter || n === d.EveryOtherQuarter, I = Se(z(), t), f = (p) => {
71
71
  p && s(xe(p));
72
72
  };
@@ -74,7 +74,7 @@ const ee = ({
74
74
  /* @__PURE__ */ e(
75
75
  N,
76
76
  {
77
- label: r.frequency,
77
+ label: o.frequency,
78
78
  onChange: i,
79
79
  options: a,
80
80
  value: n
@@ -83,7 +83,7 @@ const ee = ({
83
83
  b && /* @__PURE__ */ e(
84
84
  N,
85
85
  {
86
- label: r.day_of_the_week,
86
+ label: o.day_of_the_week,
87
87
  onChange: s,
88
88
  options: m,
89
89
  value: t
@@ -92,7 +92,7 @@ const ee = ({
92
92
  g && /* @__PURE__ */ e(
93
93
  N,
94
94
  {
95
- label: n === d.TwiceAMonth ? r.first_day_of_the_month : r.day_of_the_month,
95
+ label: n === d.TwiceAMonth ? o.first_day_of_the_month : o.day_of_the_month,
96
96
  onChange: s,
97
97
  options: n === d.TwiceAMonth ? C : y,
98
98
  value: t
@@ -101,27 +101,27 @@ const ee = ({
101
101
  n === d.TwiceAMonth && /* @__PURE__ */ e(
102
102
  N,
103
103
  {
104
- label: r.second_day_of_the_month,
104
+ label: o.second_day_of_the_month,
105
105
  onChange: l,
106
106
  options: v,
107
- value: o || 0
107
+ value: r || 0
108
108
  }
109
109
  ),
110
110
  n === d.EveryYear && /* @__PURE__ */ e(Ae, { dateAdapter: ve, children: /* @__PURE__ */ e(
111
111
  we,
112
112
  {
113
113
  disablePast: !0,
114
- label: r.next_payment_date,
114
+ label: o.next_payment_date,
115
115
  onChange: f,
116
116
  value: I
117
117
  }
118
118
  ) })
119
119
  ] });
120
120
  }, Fe = A(({ repeatingTransaction: n }) => {
121
- const { recurring: t } = w(), { updateRepeatingTransaction: o } = F(), { onEvent: i } = G(), [s, l] = u.useState(!1), [r, a] = u.useState(n.recurrence_type), [m, y] = u.useState(n.recurrence_day), [C, v] = u.useState(n.second_recurrence_day), b = async () => {
122
- await o({
121
+ const { recurring: t } = w(), { updateRepeatingTransaction: r } = F(), { onEvent: i } = G(), [s, l] = u.useState(!1), [o, a] = u.useState(n.recurrence_type), [m, y] = u.useState(n.recurrence_day), [C, v] = u.useState(n.second_recurrence_day), b = async () => {
122
+ await r({
123
123
  ...n,
124
- recurrence_type: r,
124
+ recurrence_type: o,
125
125
  recurrence_day: m,
126
126
  second_recurrence_day: C
127
127
  }), l(!1);
@@ -150,7 +150,7 @@ const ee = ({
150
150
  ee,
151
151
  {
152
152
  firstDay: m,
153
- frequency: r,
153
+ frequency: o,
154
154
  onFirstDayChange: y,
155
155
  onFrequencyChange: a,
156
156
  onSecondDayChange: v,
@@ -162,9 +162,9 @@ const ee = ({
162
162
  ] });
163
163
  }), Ge = A(
164
164
  ({ onDeleted: n, recurringTransaction: t }) => {
165
- const { recurring: o } = w(), { selectedAccountGuids: i } = Ie(), { onEvent: s } = G(), { deleteRepeatingTransaction: l } = F(), { setFilter: r, transactions: a } = Z(), { amount: m, description: y, merchant_guid: C } = t, [v, b] = u.useState(!1), [g, I] = u.useState("");
165
+ const { recurring: r } = w(), { selectedAccountGuids: i } = Ie(), { onEvent: s } = G(), { deleteRepeatingTransaction: l } = F(), { setFilter: o, transactions: a } = Z(), { amount: m, description: y, merchant_guid: C } = t, [v, b] = u.useState(!1), [g, I] = u.useState("");
166
166
  u.useEffect(() => {
167
- r({
167
+ o({
168
168
  accounts: i,
169
169
  dateRange: { start: ue(z(), 90), end: _e(z()) },
170
170
  custom: (_) => _.repeating_transaction_guid === t.guid
@@ -190,11 +190,11 @@ const ee = ({
190
190
  }
191
191
  ),
192
192
  /* @__PURE__ */ e(S, { bold: !0, variant: "body1", children: y }),
193
- /* @__PURE__ */ c(oe, { color: p ? "success.main" : "text.primary", sx: { my: 4 }, children: [
193
+ /* @__PURE__ */ c(re, { color: p ? "success.main" : "text.primary", sx: { my: 4 }, children: [
194
194
  p ? "+" : "",
195
195
  J(m, "0,0.00")
196
196
  ] }),
197
- /* @__PURE__ */ e(S, { color: "text.secondary", variant: "body2", children: `${o.next_payment_date}: ${Re(
197
+ /* @__PURE__ */ e(S, { color: "text.secondary", variant: "body2", children: `${r.next_payment_date}: ${Re(
198
198
  me(t.predicted_occurs_on),
199
199
  Te.MONTH_DAY_YEAR
200
200
  )}` })
@@ -205,7 +205,7 @@ const ee = ({
205
205
  Y,
206
206
  {
207
207
  iconName: "checkbook",
208
- label: o.account,
208
+ label: r.account,
209
209
  value: t.account.institutionName || ""
210
210
  }
211
211
  ),
@@ -216,7 +216,7 @@ const ee = ({
216
216
  Y,
217
217
  {
218
218
  iconName: "monetization_on",
219
- label: o.category,
219
+ label: r.category,
220
220
  value: f.category
221
221
  }
222
222
  ),
@@ -233,18 +233,18 @@ const ee = ({
233
233
  startIcon: /* @__PURE__ */ e(pe, {}),
234
234
  sx: { mx: 24, my: 16 },
235
235
  variant: "text",
236
- children: p ? o.delete_income_title : o.delete_expense_title
236
+ children: p ? r.delete_income_title : r.delete_expense_title
237
237
  }
238
238
  ),
239
- /* @__PURE__ */ e(S, { bold: !0, sx: { ml: 24, mt: 16 }, variant: "Body", children: o.paid_transactions }),
239
+ /* @__PURE__ */ e(S, { bold: !0, sx: { ml: 24, mt: 16 }, variant: "Body", children: r.paid_transactions }),
240
240
  /* @__PURE__ */ e(X, { height: "30dvh", onClick: I }),
241
241
  /* @__PURE__ */ e(
242
242
  O,
243
243
  {
244
- ariaLabelClose: o.close_drawer_aria,
244
+ ariaLabelClose: r.close_drawer_aria,
245
245
  isOpen: !!g && !!f,
246
246
  onClose: () => I(""),
247
- title: o.transaction_details_drawer_title,
247
+ title: r.transaction_details_drawer_title,
248
248
  children: f && /* @__PURE__ */ e(ge, { transaction: f })
249
249
  }
250
250
  ),
@@ -252,13 +252,13 @@ const ee = ({
252
252
  Le,
253
253
  {
254
254
  copy: {
255
- title: p ? o.delete_income_title : o.delete_expense_title,
256
- close_aria: o.close_drawer_aria
255
+ title: p ? r.delete_income_title : r.delete_expense_title,
256
+ close_aria: r.close_drawer_aria
257
257
  },
258
258
  isOpen: v,
259
259
  onClose: () => b(!1),
260
260
  onPrimaryAction: k,
261
- children: /* @__PURE__ */ e(S, { children: p ? o.delete_income_description : o.delete_expense_description })
261
+ children: /* @__PURE__ */ e(S, { children: p ? r.delete_income_description : r.delete_expense_description })
262
262
  }
263
263
  )
264
264
  ] });
@@ -266,10 +266,10 @@ const ee = ({
266
266
  ), Pe = A(
267
267
  ({ onClick: n = () => {
268
268
  }, repeatingTransaction: t }) => {
269
- const { recurring: o } = w(), [i, s] = u.useState(!1), l = u.useMemo(
269
+ const { recurring: r } = w(), [i, s] = u.useState(!1), l = u.useMemo(
270
270
  () => t.transactions.length === 0 ? "" : t.transactions[0].category_guid || "",
271
271
  [t]
272
- ), r = t.account?.institutionName || "", a = t.repeating_transaction_type === E.Income, m = Q(o, t, !0);
272
+ ), o = t.account?.institutionName || "", a = t.repeating_transaction_type === E.Income, m = Q(r, t, !0);
273
273
  return /* @__PURE__ */ c(ie, { disableGutters: !0, disablePadding: !0, children: [
274
274
  /* @__PURE__ */ c(ce, { onClick: () => {
275
275
  n(t), s(!0);
@@ -288,12 +288,12 @@ const ee = ({
288
288
  t.account?.institution_guid && /* @__PURE__ */ e(
289
289
  ae,
290
290
  {
291
- alt: r,
291
+ alt: o,
292
292
  institutionGuid: t.account?.institution_guid,
293
293
  size: 12
294
294
  }
295
295
  ),
296
- /* @__PURE__ */ e(S, { variant: "caption", children: r })
296
+ /* @__PURE__ */ e(S, { variant: "caption", children: o })
297
297
  ] })
298
298
  ] }),
299
299
  /* @__PURE__ */ c(h, { alignItems: "flex-end", sx: { width: "50%" }, children: [
@@ -329,10 +329,10 @@ const ee = ({
329
329
  /* @__PURE__ */ e(
330
330
  O,
331
331
  {
332
- ariaLabelClose: o.close_drawer_aria,
332
+ ariaLabelClose: r.close_drawer_aria,
333
333
  isOpen: i,
334
334
  onClose: () => s(!1),
335
- title: t.repeating_transaction_type === E.Income ? o.income_details : o.expense_details,
335
+ title: t.repeating_transaction_type === E.Income ? r.income_details : r.expense_details,
336
336
  children: /* @__PURE__ */ e(
337
337
  Ge,
338
338
  {
@@ -348,10 +348,10 @@ const ee = ({
348
348
  ({
349
349
  bgcolor: n = "background.default",
350
350
  description: t,
351
- onSearch: o,
351
+ onSearch: r,
352
352
  onSelected: i
353
353
  }) => {
354
- const { recurring: s } = w(), { searchValue: l, setSearchValue: r } = fe();
354
+ const { recurring: s } = w(), { searchValue: l, setSearchValue: o } = fe();
355
355
  return /* @__PURE__ */ c(h, { sx: { bgcolor: n, gap: 16, pt: 8 }, children: [
356
356
  t && /* @__PURE__ */ e(U, { sx: { mx: 24 }, children: t }),
357
357
  /* @__PURE__ */ e(
@@ -360,7 +360,7 @@ const ee = ({
360
360
  ariaLabel: s.select_transaction_search_aria,
361
361
  cancelAriaLabel: s.select_transaction_search_cancel_aria,
362
362
  onChange: (a) => {
363
- r(a), o(a);
363
+ o(a), r(a);
364
364
  },
365
365
  placeholder: s.select_transaction_search_placeholder,
366
366
  searchValue: l
@@ -382,11 +382,11 @@ const ee = ({
382
382
  ({
383
383
  bgcolor: n = "background.default",
384
384
  firstDay: t,
385
- secondDay: o,
385
+ secondDay: r,
386
386
  frequency: i,
387
387
  onFrequencyChange: s,
388
388
  onFirstDayChange: l,
389
- onSecondDayChange: r,
389
+ onSecondDayChange: o,
390
390
  transaction: a
391
391
  }) => {
392
392
  const { recurring: m } = w();
@@ -404,8 +404,8 @@ const ee = ({
404
404
  frequency: i,
405
405
  onFirstDayChange: l,
406
406
  onFrequencyChange: s,
407
- onSecondDayChange: r,
408
- secondDay: o
407
+ onSecondDayChange: o,
408
+ secondDay: r
409
409
  }
410
410
  )
411
411
  ] })
@@ -415,19 +415,19 @@ const ee = ({
415
415
  ({
416
416
  isIncome: n = !1,
417
417
  label: t,
418
- onAddRecurringTransaction: o = () => null
418
+ onAddRecurringTransaction: r = () => null
419
419
  }) => {
420
- const { recurring: i } = w(), { filter: s, setFilter: l, transactions: r } = Z(), { addRepeatingTransaction: a } = F(), { user: m } = De(), [y, C] = u.useState(!1), [v, b] = u.useState(""), [g, I] = u.useState(d.EveryMonth), [f, p] = u.useState(1), [k, P] = u.useState(15), _ = u.useMemo(
421
- () => r.find((x) => x.guid === v),
422
- [v, r]
420
+ const { recurring: i } = w(), { filter: s, setFilter: l, transactions: o } = Z(), { addRepeatingTransaction: a } = F(), { user: m } = De(), [y, C] = u.useState(!1), [v, b] = u.useState(""), [g, I] = u.useState(d.EveryMonth), [f, p] = u.useState(1), [k, P] = u.useState(15), _ = u.useMemo(
421
+ () => o.find((x) => x.guid === v),
422
+ [v, o]
423
423
  ), ne = () => {
424
424
  C(!0), l(n ? { ...s, custom: W } : { ...s, custom: q });
425
- }, re = async () => {
425
+ }, oe = async () => {
426
426
  if (!_) {
427
427
  j();
428
428
  return;
429
429
  }
430
- o();
430
+ r();
431
431
  const x = de(g, ke(_.date)), D = {
432
432
  account_guid: _.account_guid,
433
433
  amount: _.amount,
@@ -477,7 +477,7 @@ const ee = ({
477
477
  ariaLabelClose: i.close_drawer_aria,
478
478
  isOpen: !!v,
479
479
  onClose: () => b(""),
480
- onPrimaryAction: re,
480
+ onPrimaryAction: oe,
481
481
  title: n ? i.income_details : i.expense_details,
482
482
  children: _ && /* @__PURE__ */ e(
483
483
  Ye,
@@ -497,7 +497,7 @@ const ee = ({
497
497
  }
498
498
  ), qe = A(
499
499
  ({ zeroStateFor: n }) => {
500
- const { recurring: t } = w(), { onEvent: o } = G(), i = n === "income", s = i ? t.recurring_setting_zero_state_income_title : t.recurring_setting_zero_state_expenses_title, l = i ? t.recurring_setting_zero_state_income_description : t.recurring_setting_zero_state_expenses_description, r = i ? t.add_income : t.add_expense;
500
+ const { recurring: t } = w(), { onEvent: r } = G(), i = n === "income", s = i ? t.recurring_setting_zero_state_income_title : t.recurring_setting_zero_state_expenses_title, l = i ? t.recurring_setting_zero_state_income_description : t.recurring_setting_zero_state_expenses_description, o = i ? t.add_income : t.add_expense;
501
501
  return /* @__PURE__ */ c(h, { sx: { alignItems: "center", p: 24, pt: 48 }, children: [
502
502
  /* @__PURE__ */ e(ye, { size: 48 }),
503
503
  /* @__PURE__ */ e(U, { sx: { my: 8, fontWeight: 600 }, variant: "body1", children: s }),
@@ -506,9 +506,9 @@ const ee = ({
506
506
  te,
507
507
  {
508
508
  isIncome: i,
509
- label: r,
509
+ label: o,
510
510
  onAddRecurringTransaction: () => {
511
- o(
511
+ r(
512
512
  i ? R.RECURRING_TRANSACTIONS_CLICK_ADD_INCOME : R.RECURRING_ACTIVITY_CLICK_ADD_EXPENSE
513
513
  );
514
514
  }
@@ -517,16 +517,16 @@ const ee = ({
517
517
  ] });
518
518
  }
519
519
  ), It = A(({ forOverview: n = !1 }) => {
520
- const { recurring: t } = w(), { repeatingTransactions: o } = F(), { onEvent: i } = G(), s = (a) => {
520
+ const { recurring: t } = w(), { repeatingTransactions: r } = F(), { onEvent: i } = G(), s = (a) => {
521
521
  i(R.RECURRING_TRANSACTIONS_CLICK_INCOME, {
522
522
  repeating_transaction_guid: a.guid
523
523
  });
524
524
  }, l = () => {
525
525
  i(R.RECURRING_TRANSACTIONS_CLICK_ADD_INCOME);
526
- }, r = o.filter(
526
+ }, o = r.filter(
527
527
  (a) => a.repeating_transaction_type === E.Income && (a.transactions.length > 0 || a.recurrence_type === d.EveryYear)
528
528
  );
529
- return /* @__PURE__ */ e(L, { children: r.length !== 0 ? /* @__PURE__ */ c(
529
+ return /* @__PURE__ */ e(L, { children: o.length !== 0 ? /* @__PURE__ */ c(
530
530
  h,
531
531
  {
532
532
  sx: {
@@ -535,12 +535,12 @@ const ee = ({
535
535
  },
536
536
  children: [
537
537
  n && /* @__PURE__ */ e(S, { bold: !0, sx: { mb: 4, mt: 12, mx: 24 }, variant: "Small", children: t.income }),
538
- /* @__PURE__ */ e(M, { sx: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ e(K, { sx: { bgcolor: "background.paper" }, children: r.map((a, m) => /* @__PURE__ */ c(u.Fragment, { children: [
538
+ /* @__PURE__ */ e(M, { sx: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ e(K, { sx: { bgcolor: "background.paper" }, children: o.map((a, m) => /* @__PURE__ */ c(u.Fragment, { children: [
539
539
  /* @__PURE__ */ e(Pe, { onClick: s, repeatingTransaction: a }),
540
540
  /* @__PURE__ */ e(
541
541
  T,
542
542
  {
543
- variant: m < r.length - 1 ? "inset" : "fullWidth"
543
+ variant: m < o.length - 1 ? "inset" : "fullWidth"
544
544
  }
545
545
  )
546
546
  ] }, a.guid)) }) }),
@@ -6,7 +6,7 @@ import b from "@mui/material/CardHeader";
6
6
  import { P as u, H3 as v } from "@mxenabled/mxui";
7
7
  import { ChevronRight as W } from "@mxenabled/mx-icons";
8
8
  import { u as M } from "./useDimensions-27p2evRx.mjs";
9
- import { W as w } from "./hooks-C41HAxM5.mjs";
9
+ import { W as w } from "./hooks-ZMp65DFz.mjs";
10
10
  const H = ({
11
11
  children: e,
12
12
  className: o,
@@ -8,7 +8,7 @@ import W from "@mui/material/IconButton";
8
8
  import { Icon as z, ChevronRight as H } from "@mxenabled/mx-icons";
9
9
  import { H3 as I, Text as B, P as M } from "@mxenabled/mxui";
10
10
  import { u as S } from "./useDimensions-27p2evRx.mjs";
11
- import { W as j } from "./hooks-C41HAxM5.mjs";
11
+ import { W as j } from "./hooks-ZMp65DFz.mjs";
12
12
  const w = ({
13
13
  children: a,
14
14
  className: m = "mx-cmn-mini-widget",
@@ -3,8 +3,8 @@ import { format as A } from "date-fns/format";
3
3
  import { fromUnixTime as W } from "date-fns/fromUnixTime";
4
4
  import { startOfMonth as _ } from "date-fns/startOfMonth";
5
5
  import { subMonths as B } from "date-fns/subMonths";
6
- import { a as b } from "./Accounts-D7QljYas.mjs";
7
- import { e as N, a as M, f as v } from "./ConnectDrawer-CuUj16NH.mjs";
6
+ import { a as b } from "./Accounts-DC_A4UCa.mjs";
7
+ import { e as N, a as M, f as v } from "./ConnectDrawer-KL8t1qSC.mjs";
8
8
  const f = 13, L = (n, t) => n.filter((e) => {
9
9
  const { is_closed: r, is_deleted: s, is_hidden: a, is_manual: i } = e;
10
10
  return r || s || a ? !1 : i || !e.guid ? !0 : t.some((l) => n.some((g) => l.guid === g.member_guid));