@mx-cartographer/experiences 9.0.16-alpha.al0 → 9.0.16

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