@mx-cartographer/experiences 9.0.14 → 9.0.15-alpha.al0

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.
@@ -1,4 +1,4 @@
1
- import { jsx as e, jsxs as a, Fragment as $ } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as s, 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";
@@ -8,8 +8,8 @@ import { startOfToday as Q } from "date-fns/startOfToday";
8
8
  import { subDays as ee } from "date-fns/subDays";
9
9
  import $e from "@mui/material/Alert";
10
10
  import Fe from "@mui/material/Snackbar";
11
- import { R as _e } from "../RecurringSettings-CGZiV-Ie.mjs";
12
- import { M as Jn } from "../RecurringSettings-CGZiV-Ie.mjs";
11
+ import { R as _e } from "../RecurringSettings-BWlg0zsv.mjs";
12
+ import { M as Jn } from "../RecurringSettings-BWlg0zsv.mjs";
13
13
  import { addMonths as Ue } from "date-fns/addMonths";
14
14
  import { subMonths as Ye } from "date-fns/subMonths";
15
15
  import { isBefore as je } from "date-fns/isBefore";
@@ -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 Ce, e as pt, R as gt } from "../RecurringTransactionsUtil-CHWmqvW5.mjs";
39
+ import { b as E, a as D, g as ye, e as pt, R as gt } from "../RecurringTransactionsUtil-CHWmqvW5.mjs";
40
40
  import { f as I, D as M } from "../DateFormats-HudZ3Bjs.mjs";
41
41
  import { T as W } from "../Sizes-DISGrlUg.mjs";
42
42
  import { A as v } from "../Analytics-WeZYytR0.mjs";
43
43
  import ht from "@mui/material/Button";
44
44
  import X from "@mui/material/Divider";
45
- import ye from "@mui/material/List";
45
+ import Ce 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 Ct from "@mui/material/ListItemText";
50
+ import yt from "@mui/material/ListItemText";
51
51
  import { f as L } from "../NumberFormatting--XMeeBfr.mjs";
52
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 yt } from "../ManageIncome-BadwsHRL.mjs";
56
- import { c as er, M as tr, S as nr } from "../ManageIncome-BadwsHRL.mjs";
55
+ import { d as Ct } from "../ManageIncome-Dn9Y3Z2U.mjs";
56
+ import { c as er, M as tr, S as nr } from "../ManageIncome-Dn9Y3Z2U.mjs";
57
57
  import { D as ie } from "../Drawer-DsnW2o0v.mjs";
58
58
  import { S as Ae } from "../SkeletonLoader-BaNboJjD.mjs";
59
59
  import { u as oe } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
@@ -106,9 +106,9 @@ 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 } = _(), c = x.useMemo(
110
- () => s.filter((f) => o.includes(f.accountGuid)),
111
- [o, s]
109
+ const { recurring: i } = b(), { selectedAccountGuids: o } = U(), { recurrences: a, setSelectedDay: m } = _(), c = x.useMemo(
110
+ () => a.filter((f) => o.includes(f.accountGuid)),
111
+ [o, a]
112
112
  ).filter(
113
113
  (f) => dt(f.occurredOnDate || f.expectedDate, t)
114
114
  ), l = c.some(
@@ -117,26 +117,26 @@ const j = {
117
117
  (f) => f.type !== E.Income && f.status === D.Missed
118
118
  ), g = c.some(
119
119
  (f) => f.type !== E.Income && f.status === D.Paid
120
- ), C = c.some((f) => f.type === E.Income), y = (l ? 1 : 0) + (u ? 1 : 0) + (g ? 1 : 0) + (C ? 1 : 0), S = [
120
+ ), y = c.some((f) => f.type === E.Income), C = (l ? 1 : 0) + (u ? 1 : 0) + (g ? 1 : 0) + (y ? 1 : 0), S = [
121
121
  g && i.paid,
122
122
  u && i.missed,
123
123
  l && i.upcoming,
124
- C && i.income
124
+ y && 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: c.length > 0 && /* @__PURE__ */ a($, { children: [
129
+ badgeContent: c.length > 0 && /* @__PURE__ */ s($, { 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
- C && /* @__PURE__ */ e(ce, { isOffset: !0 })
133
+ y && /* @__PURE__ */ e(ce, { isOffset: !0 })
134
134
  ] }),
135
135
  overlap: "circular",
136
136
  sx: {
137
137
  "& .MuiBadge-badge": {
138
138
  padding: 0,
139
- marginRight: `${(y - 1) * 6 + 1}px`,
139
+ marginRight: `${(C - 1) * 6 + 1}px`,
140
140
  flexWrap: "nowrap"
141
141
  }
142
142
  },
@@ -151,6 +151,9 @@ const j = {
151
151
  "&.MuiPickersDay-root": {
152
152
  ...n && {
153
153
  color: "text.disabled"
154
+ },
155
+ ...r.today && {
156
+ color: "primary.main"
154
157
  }
155
158
  }
156
159
  },
@@ -160,12 +163,12 @@ const j = {
160
163
  }
161
164
  );
162
165
  }
163
- ), B = ({ icon: t, label: n }) => /* @__PURE__ */ a(d, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
166
+ ), B = ({ icon: t, label: n }) => /* @__PURE__ */ s(d, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
164
167
  /* @__PURE__ */ e(t, {}),
165
168
  /* @__PURE__ */ e(h, { variant: "caption", children: n })
166
169
  ] }), wt = T(() => {
167
170
  const { recurring: t } = b();
168
- return /* @__PURE__ */ a(
171
+ return /* @__PURE__ */ s(
169
172
  d,
170
173
  {
171
174
  alignItems: "center",
@@ -192,7 +195,7 @@ const j = {
192
195
  [O.ES]: it
193
196
  }[t] || be;
194
197
  }, Ee = T(() => {
195
- const t = ne(), { onEvent: n } = Y(), { recurring: r } = b(), { selectedDay: i, setDateRange: o } = _(), [s, m] = x.useState(
198
+ const t = ne(), { onEvent: n } = Y(), { recurring: r } = b(), { selectedDay: i, setDateRange: o } = _(), [a, m] = x.useState(
196
199
  xe(/* @__PURE__ */ new Date()) * W + Re
197
200
  ), p = (u) => {
198
201
  m(xe(u) * W + Re), o({
@@ -238,10 +241,10 @@ const j = {
238
241
  fontWeight: 600
239
242
  },
240
243
  "& .MuiDayCalendar-slideTransition": {
241
- minHeight: s
244
+ minHeight: a
242
245
  },
243
246
  "&.MuiDateCalendar-root": {
244
- minHeight: s + W
247
+ minHeight: a + W
245
248
  },
246
249
  "& .MuiButtonBase-root, .MuiDayCalendar-weekDayLabel": {
247
250
  height: W,
@@ -261,7 +264,7 @@ const j = {
261
264
  views: ["day"]
262
265
  }
263
266
  );
264
- return /* @__PURE__ */ e(d, { "aria-labelledby": "calendar-label", justifyContent: "center", role: "group", children: /* @__PURE__ */ a(lt, { adapterLocale: It(), dateAdapter: st, children: [
267
+ return /* @__PURE__ */ e(d, { "aria-labelledby": "calendar-label", justifyContent: "center", role: "group", children: /* @__PURE__ */ s(lt, { adapterLocale: It(), dateAdapter: st, children: [
265
268
  i && l,
266
269
  !i && l,
267
270
  /* @__PURE__ */ e(h, { id: "calendar-label", sx: { alignSelf: "center" }, variant: "body2", children: r.calendar_tooltip }),
@@ -308,13 +311,13 @@ const j = {
308
311
  },
309
312
  showOrdinal: i = !1
310
313
  }) => {
311
- const { recurring: o } = b(), { detailedRepeatingTransactions: s } = _(), m = x.useMemo(
312
- () => s.find((y) => y.guid === t.repeatingTransactionGuid),
313
- [t, s]
314
+ const { recurring: o } = b(), { detailedRepeatingTransactions: a } = _(), m = x.useMemo(
315
+ () => a.find((C) => C.guid === t.repeatingTransactionGuid),
316
+ [t, a]
314
317
  ), p = t.type === E.Income, c = t.status === D.Paid, l = t.status === D.Missed, u = t.status === D.Upcoming;
315
318
  let g = o.paid?.toLowerCase();
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: () => {
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__ */ s(bt, { onClick: () => {
318
321
  r(t);
319
322
  }, children: [
320
323
  /* @__PURE__ */ e(xt, { children: /* @__PURE__ */ e(
@@ -324,19 +327,19 @@ const j = {
324
327
  merchantGuid: t.merchantGuid
325
328
  }
326
329
  ) }),
327
- /* @__PURE__ */ e(Ct, { children: /* @__PURE__ */ a(
330
+ /* @__PURE__ */ e(yt, { children: /* @__PURE__ */ s(
328
331
  d,
329
332
  {
330
333
  direction: "row",
331
334
  gap: 4,
332
335
  sx: { justifyContent: "space-between", textOverflow: "ellipsis", textWrap: "nowrap" },
333
336
  children: [
334
- /* @__PURE__ */ a(d, { direction: "column", width: "50%", children: [
337
+ /* @__PURE__ */ s(d, { direction: "column", width: "50%", children: [
335
338
  /* @__PURE__ */ e(h, { bold: !0, variant: "body1", children: t.name }),
336
- /* @__PURE__ */ e(d, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */ a(d, { direction: "row", gap: 4, children: [
339
+ /* @__PURE__ */ e(d, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */ s(d, { direction: "row", gap: 4, children: [
337
340
  Mt(t),
338
341
  /* @__PURE__ */ e(h, { variant: "caption", children: vt(t, o) })
339
- ] }) : /* @__PURE__ */ a($, { children: [
342
+ ] }) : /* @__PURE__ */ s($, { children: [
340
343
  t.institutionGuid && /* @__PURE__ */ e(
341
344
  Qe,
342
345
  {
@@ -348,12 +351,12 @@ const j = {
348
351
  /* @__PURE__ */ e(h, { sx: { maxWidth: 250 }, variant: "caption", children: t.institutionName })
349
352
  ] }) })
350
353
  ] }),
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: [
354
+ /* @__PURE__ */ s(d, { alignItems: "flex-end", width: "100%", children: [
355
+ /* @__PURE__ */ s(h, { bold: !0, color: p ? "success.main" : "text.primary", variant: "body1", children: [
353
356
  p ? "+" : "",
354
357
  L(t.amount, "0,0.00")
355
358
  ] }),
356
- !n && /* @__PURE__ */ a(
359
+ !n && /* @__PURE__ */ s(
357
360
  d,
358
361
  {
359
362
  direction: "row",
@@ -383,11 +386,11 @@ const j = {
383
386
  onResetClick: r,
384
387
  onRecurrenceClick: i,
385
388
  sx: o = {},
386
- title: s
389
+ title: a
387
390
  }) => {
388
391
  const { recurring: m } = b(), p = x.useMemo(() => pt(t), [t]);
389
- return /* @__PURE__ */ a(d, { id: "recurrence-list", sx: { gap: 8, mt: 4, ...o }, "tab-index": -1, children: [
390
- s && /* @__PURE__ */ a(
392
+ return /* @__PURE__ */ s(d, { id: "recurrence-list", sx: { gap: 8, mt: 4, ...o }, "tab-index": -1, children: [
393
+ a && /* @__PURE__ */ s(
391
394
  d,
392
395
  {
393
396
  sx: {
@@ -397,12 +400,12 @@ const j = {
397
400
  px: 24
398
401
  },
399
402
  children: [
400
- /* @__PURE__ */ e(et, { bold: !0, variant: "body1", children: s }),
403
+ /* @__PURE__ */ e(et, { bold: !0, variant: "body1", children: a }),
401
404
  r && /* @__PURE__ */ e(ht, { onClick: r, size: "small", variant: "text", children: m.reset })
402
405
  ]
403
406
  }
404
407
  ),
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: [
408
+ t.length === 0 ? /* @__PURE__ */ e(h, { fontStyle: "italic", sx: { py: 24, textAlign: "center" }, children: m.no_activities }) : /* @__PURE__ */ e(Ce, { "aria-label": a, children: n ? t.map((c, l) => /* @__PURE__ */ s(x.Fragment, { children: [
406
409
  /* @__PURE__ */ e(
407
410
  Te,
408
411
  {
@@ -412,9 +415,9 @@ const j = {
412
415
  }
413
416
  ),
414
417
  /* @__PURE__ */ e(X, { sx: { mx: 24 } })
415
- ] }, `recurrence-${l}`)) : p.map((c, l) => /* @__PURE__ */ a(x.Fragment, { children: [
418
+ ] }, `recurrence-${l}`)) : p.map((c, l) => /* @__PURE__ */ s(x.Fragment, { children: [
416
419
  /* @__PURE__ */ e(Me, { children: /* @__PURE__ */ e(
417
- ye,
420
+ Ce,
418
421
  {
419
422
  subheader: /* @__PURE__ */ e(ft, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ e(h, { bold: !0, variant: "caption", children: I(c.date, M.DAY_OF_WEEK_MONTH_DAY) }) }),
420
423
  sx: { width: "100%" },
@@ -433,22 +436,22 @@ const j = {
433
436
  ] });
434
437
  }
435
438
  ), De = T(
436
- ({ expected: t, isExpense: n = !0, missed: r, paid: i, title: o, total: s, upcoming: m }) => {
439
+ ({ expected: t, isExpense: n = !0, missed: r, paid: i, title: o, total: a, upcoming: m }) => {
437
440
  const p = ne(), { isSmallMobile: c } = ve(), { recurring: l } = b(), u = x.useMemo(() => {
438
441
  const g = [{ color: p.palette.success.main, percentage: `${i / t}` }];
439
442
  return r && g.push({ color: p.palette.error.main, percentage: `${r / t}` }), g;
440
443
  }, [i, t, r]);
441
- return /* @__PURE__ */ a(d, { children: [
442
- /* @__PURE__ */ a(d, { sx: { flexDirection: "row", justifyContent: "space-between", pb: 12 }, children: [
443
- /* @__PURE__ */ e(h, { bold: !0, variant: "body1", children: `${o} (${s})` }),
444
+ return /* @__PURE__ */ s(d, { children: [
445
+ /* @__PURE__ */ s(d, { sx: { flexDirection: "row", justifyContent: "space-between", pb: 12 }, children: [
446
+ /* @__PURE__ */ e(h, { bold: !0, variant: "body1", children: `${o} (${a})` }),
444
447
  /* @__PURE__ */ e(h, { bold: !0, color: n ? "text.primary" : "success.main", variant: "body1", children: `${n ? "-" : "+"}${L(t, "0,0.00")}` })
445
448
  ] }),
446
449
  /* @__PURE__ */ e(Le, { data: u, height: 12 }),
447
- /* @__PURE__ */ a(d, { sx: { alignItems: "center", flexDirection: "row", gap: 2, my: 8 }, children: [
450
+ /* @__PURE__ */ s(d, { sx: { alignItems: "center", flexDirection: "row", gap: 2, my: 8 }, children: [
448
451
  /* @__PURE__ */ e(G, { sx: { bgcolor: "success.main", height: 8, mr: 8, width: 8 } }),
449
452
  !c && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children: L(i, "0,0.00") }),
450
453
  /* @__PURE__ */ e(h, { variant: "caption", children: l.paid?.toLowerCase() }),
451
- r !== void 0 && /* @__PURE__ */ a($, { children: [
454
+ r !== void 0 && /* @__PURE__ */ s($, { children: [
452
455
  /* @__PURE__ */ e(G, { sx: { bgcolor: "error.main", height: 8, ml: 16, mr: 8, width: 8 } }),
453
456
  !c && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children: L(r, "0,0.00") }),
454
457
  /* @__PURE__ */ e(h, { variant: "caption", children: l.missed?.toLowerCase() })
@@ -465,7 +468,7 @@ const j = {
465
468
  selectedRepeatingTransaction: r,
466
469
  setSelectedRecurrence: i,
467
470
  setSelectedRepeatingTransactionGuid: o
468
- } = _(), s = () => {
471
+ } = _(), a = () => {
469
472
  o(null), i(null);
470
473
  };
471
474
  return /* @__PURE__ */ e(
@@ -473,12 +476,12 @@ const j = {
473
476
  {
474
477
  ariaLabelClose: t.close_drawer_aria,
475
478
  isOpen: !!r,
476
- onClose: s,
479
+ onClose: a,
477
480
  title: r?.repeating_transaction_type === gt.Income ? t.income_details : t.expense_details,
478
481
  children: r && /* @__PURE__ */ e(
479
- yt,
482
+ Ct,
480
483
  {
481
- onDeleted: s,
484
+ onDeleted: a,
482
485
  recurringTransaction: r,
483
486
  selectedRecurrence: n
484
487
  }
@@ -486,15 +489,15 @@ const j = {
486
489
  }
487
490
  );
488
491
  }), Lt = T(() => {
489
- const { recurring: t } = b(), { availableWidth: n } = Ie(), { isDesktop: r, isSmallMobile: i, isMobile: o } = ve(n), { onEvent: s } = Y(), {
492
+ const { recurring: t } = b(), { availableWidth: n } = Ie(), { isDesktop: r, isSmallMobile: i, isMobile: o } = ve(n), { onEvent: a } = Y(), {
490
493
  currentMonthExpenses: m,
491
494
  currentMonthIncome: p,
492
495
  dateRange: c,
493
496
  expenseTotal: l,
494
497
  incomeTotal: u,
495
498
  missedExpenseTotal: g,
496
- pastRecurrences: C,
497
- paidExpenseTotal: y,
499
+ pastRecurrences: y,
500
+ paidExpenseTotal: C,
498
501
  paidIncomeTotal: S,
499
502
  selectedDay: A,
500
503
  selectedDayRecurrences: f,
@@ -507,11 +510,11 @@ const j = {
507
510
  } = _(), [V, Oe] = x.useState(0), We = je(c.start, /* @__PURE__ */ new Date()), Pe = (R, Be) => {
508
511
  Oe(Be);
509
512
  }, pe = (R) => {
510
- ue(R.repeatingTransactionGuid), H(R), s(v.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
513
+ ue(R.repeatingTransactionGuid), H(R), a(v.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
511
514
  transaction_guid: R.transaction?.guid
512
515
  });
513
516
  }, ge = (R) => {
514
- ue(R.repeatingTransactionGuid), H(R), s(v.RECURRING_TRANSACTIONS_CLICK_PAID, {
517
+ ue(R.repeatingTransactionGuid), H(R), a(v.RECURRING_TRANSACTIONS_CLICK_PAID, {
515
518
  transaction_guid: R.transaction?.guid
516
519
  });
517
520
  }, ze = () => {
@@ -527,7 +530,7 @@ const j = {
527
530
  end: z(R)
528
531
  });
529
532
  };
530
- return /* @__PURE__ */ a(
533
+ return /* @__PURE__ */ s(
531
534
  q,
532
535
  {
533
536
  container: !0,
@@ -535,14 +538,14 @@ const j = {
535
538
  pt: 16
536
539
  },
537
540
  children: [
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__ */ s(q, { size: { sm: 12, md: "grow" }, width: "100%", children: [
542
+ /* @__PURE__ */ s(d, { sx: { gap: 16, px: r ? 48 : 24 }, children: [
543
+ /* @__PURE__ */ s(d, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
541
544
  /* @__PURE__ */ e(tt, { variant: "h3", children: N(
542
545
  t.header_title,
543
546
  I(c.start, M.MONTH_LONG)
544
547
  ) }),
545
- !r && /* @__PURE__ */ a(d, { direction: "row", gap: 4, children: [
548
+ !r && /* @__PURE__ */ s(d, { direction: "row", gap: 4, children: [
546
549
  /* @__PURE__ */ e(
547
550
  he,
548
551
  {
@@ -560,7 +563,7 @@ const j = {
560
563
  {
561
564
  expected: l,
562
565
  missed: g,
563
- paid: y,
566
+ paid: C,
564
567
  title: t.expenses,
565
568
  total: m.length,
566
569
  upcoming: Ge
@@ -586,8 +589,8 @@ const j = {
586
589
  }
587
590
  )
588
591
  ] }),
589
- !r && /* @__PURE__ */ a(d, { sx: { px: o ? 0 : 24 }, children: [
590
- /* @__PURE__ */ a(Ke, { onChange: Pe, value: V, variant: "fullWidth", children: [
592
+ !r && /* @__PURE__ */ s(d, { sx: { px: o ? 0 : 24 }, children: [
593
+ /* @__PURE__ */ s(Ke, { onChange: Pe, value: V, variant: "fullWidth", children: [
591
594
  /* @__PURE__ */ e(
592
595
  fe,
593
596
  {
@@ -612,18 +615,18 @@ const j = {
612
615
  P,
613
616
  {
614
617
  onRecurrenceClick: ge,
615
- recurrences: C
618
+ recurrences: y
616
619
  }
617
620
  )
618
621
  ] })
619
622
  ] }),
620
- r && /* @__PURE__ */ e(q, { size: { xs: "auto" }, sx: { minWidth: 450 }, children: /* @__PURE__ */ a(d, { gap: 24, children: [
623
+ r && /* @__PURE__ */ e(q, { size: { xs: "auto" }, sx: { minWidth: 450 }, children: /* @__PURE__ */ s(d, { gap: 24, children: [
621
624
  /* @__PURE__ */ e(Ee, {}),
622
625
  /* @__PURE__ */ e(
623
626
  P,
624
627
  {
625
628
  onRecurrenceClick: ge,
626
- recurrences: f || C,
629
+ recurrences: f || y,
627
630
  title: A ? N(
628
631
  t.day_transactions,
629
632
  I(A, M.MONTH_DAY)
@@ -637,7 +640,7 @@ const j = {
637
640
  );
638
641
  }), jn = T(
639
642
  ({ onBackClick: t, onMenuClick: n, sx: r = {} }) => {
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);
643
+ const { recurring: i } = b(), { isInitialized: o, selectedAccountGuids: a } = U(), { alert: m, isDataLoaded: p, loadRepeatingTransactionData: c, setAlert: l, setDateRange: u } = _(), { setFilter: g } = re(), { onEvent: y } = Y(), [C, S] = x.useState(!1);
641
644
  return oe({
642
645
  widgetName: "RecurringTransactionsWidget",
643
646
  isLoaded: p
@@ -646,9 +649,9 @@ const j = {
646
649
  }, []), x.useEffect(() => {
647
650
  g({
648
651
  dateRange: { start: ee(Q(), 90), end: J() },
649
- accounts: s
652
+ accounts: a
650
653
  }), u({ start: k(/* @__PURE__ */ new Date()), end: z(/* @__PURE__ */ new Date()) });
651
- }, [s]), o ? /* @__PURE__ */ a(
654
+ }, [a]), o ? /* @__PURE__ */ s(
652
655
  Rt,
653
656
  {
654
657
  actions: [
@@ -656,12 +659,12 @@ const j = {
656
659
  label: i.action_title,
657
660
  iconName: "credit_card_gear",
658
661
  onClick: () => {
659
- S(!0), C(v.RECURRING_TRANSACTIONS_CLICK_SETTINGS);
662
+ S(!0), y(v.RECURRING_TRANSACTIONS_CLICK_SETTINGS);
660
663
  }
661
664
  }
662
665
  ],
663
666
  hasDivider: !0,
664
- onAccountsFilterClick: () => C(v.RECURRING_TRANSACTIONS_CLICK_FILTER),
667
+ onAccountsFilterClick: () => y(v.RECURRING_TRANSACTIONS_CLICK_FILTER),
665
668
  onBackClick: t,
666
669
  onMenuClick: n,
667
670
  sx: r,
@@ -672,7 +675,7 @@ const j = {
672
675
  ie,
673
676
  {
674
677
  ariaLabelClose: i.close_drawer_aria,
675
- isOpen: y,
678
+ isOpen: C,
676
679
  onClose: () => S(!1),
677
680
  shouldShowHeaderBorders: !1,
678
681
  title: i.action_title,
@@ -698,13 +701,13 @@ const j = {
698
701
  selectedDay: r,
699
702
  selectedDayRecurrences: i,
700
703
  setSelectedDay: o,
701
- setSelectedRecurrence: s,
704
+ setSelectedRecurrence: a,
702
705
  setSelectedRepeatingTransactionGuid: m,
703
706
  upcomingRecurrences: p
704
707
  } = _(), c = (u) => {
705
- m(u.repeatingTransactionGuid), s(u);
708
+ m(u.repeatingTransactionGuid), a(u);
706
709
  }, l = n < 750;
707
- return /* @__PURE__ */ a(d, { flexDirection: l ? "column" : "row", width: "100%", children: [
710
+ return /* @__PURE__ */ s(d, { flexDirection: l ? "column" : "row", width: "100%", children: [
708
711
  /* @__PURE__ */ e(Ee, {}),
709
712
  !l && /* @__PURE__ */ e(X, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
710
713
  /* @__PURE__ */ e(
@@ -724,18 +727,18 @@ const j = {
724
727
  ] });
725
728
  }), Kn = T(
726
729
  ({ onPrimaryCtaClick: t, sx: n }) => {
727
- const { recurring: r } = b(), { setFilter: i } = re(), { isDataLoaded: o, loadRepeatingTransactionData: s } = _(), { isInitialized: m, selectedAccountGuids: p } = U();
730
+ const { recurring: r } = b(), { setFilter: i } = re(), { isDataLoaded: o, loadRepeatingTransactionData: a } = _(), { isInitialized: m, selectedAccountGuids: p } = U();
728
731
  return oe({
729
732
  widgetName: "RecurringTransactionsMiniWidget",
730
733
  isLoaded: o
731
734
  }), x.useEffect(() => {
732
- o || s().finally();
735
+ o || a().finally();
733
736
  }, []), x.useEffect(() => {
734
737
  p.length > 0 && i({
735
738
  dateRange: { start: ee(Q(), 90), end: J() },
736
739
  accounts: p
737
740
  });
738
- }, [p]), m ? /* @__PURE__ */ a(
741
+ }, [p]), m ? /* @__PURE__ */ s(
739
742
  Tt,
740
743
  {
741
744
  className: "mx-exp-recurring-transactions-miniwidget",
@@ -754,9 +757,9 @@ const j = {
754
757
  }
755
758
  ), Et = T(() => {
756
759
  const { recurring: t } = b();
757
- return /* @__PURE__ */ a(d, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
760
+ return /* @__PURE__ */ s(d, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
758
761
  /* @__PURE__ */ e(Je, { size: 32 }),
759
- /* @__PURE__ */ a(d, { children: [
762
+ /* @__PURE__ */ s(d, { children: [
760
763
  /* @__PURE__ */ e(Z, { fontWeight: 600, variant: "body1", children: t.zero_state_content_header }),
761
764
  /* @__PURE__ */ e(Z, { color: "text.secondary", variant: "subtitle2", children: t.zero_state_content_description })
762
765
  ] })
@@ -767,7 +770,7 @@ const j = {
767
770
  isLargeScreen: r,
768
771
  isSmallScreen: i,
769
772
  label: o
770
- }) => /* @__PURE__ */ a(d, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
773
+ }) => /* @__PURE__ */ s(d, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
771
774
  /* @__PURE__ */ e(
772
775
  G,
773
776
  {
@@ -779,7 +782,7 @@ const j = {
779
782
  }
780
783
  }
781
784
  ),
782
- /* @__PURE__ */ a(d, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
785
+ /* @__PURE__ */ s(d, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
783
786
  !i && /* @__PURE__ */ e(h, { bold: !0, variant: "caption", children: L(t, t === 0 || !r ? "0,0" : "0,0.00") }),
784
787
  /* @__PURE__ */ e(h, { variant: "caption", children: o })
785
788
  ] })
@@ -796,12 +799,12 @@ const j = {
796
799
  position: "relative",
797
800
  width: 64
798
801
  },
799
- children: t.map((o, s) => s < r ? /* @__PURE__ */ e(
802
+ children: t.map((o, a) => a < r ? /* @__PURE__ */ e(
800
803
  G,
801
804
  {
802
805
  sx: {
803
806
  borderRadius: "4px",
804
- left: i(s),
807
+ left: i(a),
805
808
  outlineColor: "common.white",
806
809
  outlineStyle: "solid",
807
810
  outlineWidth: 2,
@@ -816,7 +819,7 @@ const j = {
816
819
  }
817
820
  )
818
821
  },
819
- `${o.categoryGuid}-${o.merchantGuid}-${s}`
822
+ `${o.categoryGuid}-${o.merchantGuid}-${a}`
820
823
  ) : null)
821
824
  }
822
825
  );
@@ -834,24 +837,24 @@ const j = {
834
837
  const t = ne(), [n, { width: r }] = Dt(), {
835
838
  upcomingRecurrences: i,
836
839
  expenseTotal: o,
837
- missedExpenseTotal: s,
840
+ missedExpenseTotal: a,
838
841
  paidExpenseTotal: m,
839
842
  upcomingExpenseTotal: p
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(() => {
843
+ } = _(), { recurring: c } = b(), l = r <= 288, u = r >= 450, g = 32, y = i.length > 0, C = x.useMemo(() => L(o, o === 0 ? "0,0" : "0,0.00"), [o]), S = x.useMemo(() => {
841
844
  const w = [
842
845
  { color: t.palette.success.main, percentage: `${m / o}` }
843
846
  ];
844
- return s && w.push({
847
+ return a && w.push({
845
848
  color: t.palette.error.main,
846
- percentage: `${s / o}`
849
+ percentage: `${a / o}`
847
850
  }), w;
848
851
  }, [
849
852
  m,
850
853
  o,
851
- s,
854
+ a,
852
855
  t.palette.success.main,
853
856
  t.palette.error.main
854
- ]), A = () => C ? l ? /* @__PURE__ */ e(
857
+ ]), A = () => y ? l ? /* @__PURE__ */ e(
855
858
  Gt,
856
859
  {
857
860
  logoSize: g,
@@ -865,7 +868,7 @@ const j = {
865
868
  label: c.paid
866
869
  },
867
870
  {
868
- amount: s,
871
+ amount: a,
869
872
  bgColor: "error.main",
870
873
  label: c.missed
871
874
  },
@@ -875,13 +878,13 @@ const j = {
875
878
  label: c.upcoming
876
879
  }
877
880
  ];
878
- return /* @__PURE__ */ a($, { children: [
879
- /* @__PURE__ */ a(d, { ref: n, sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
880
- /* @__PURE__ */ a(
881
+ return /* @__PURE__ */ s($, { children: [
882
+ /* @__PURE__ */ s(d, { ref: n, sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
883
+ /* @__PURE__ */ s(
881
884
  d,
882
885
  {
883
886
  sx: [
884
- y.length >= 10 && l ? { flexDirection: "column" } : { flexDirection: "row", gap: 2 },
887
+ C.length >= 10 && l ? { flexDirection: "column" } : { flexDirection: "row", gap: 2 },
885
888
  {
886
889
  alignItems: "baseline",
887
890
  overflow: "hidden",
@@ -894,8 +897,8 @@ const j = {
894
897
  h,
895
898
  {
896
899
  sx: { width: "100%" },
897
- variant: y.length >= 10 && l ? "h3" : "h2",
898
- children: y
900
+ variant: C.length >= 10 && l ? "h3" : "h2",
901
+ children: C
899
902
  }
900
903
  ),
901
904
  /* @__PURE__ */ e(Z, { sx: { pr: 12 }, variant: "caption", children: c.expected })
@@ -904,7 +907,7 @@ const j = {
904
907
  ),
905
908
  A()
906
909
  ] }),
907
- /* @__PURE__ */ a(d, { sx: { pt: 12 }, children: [
910
+ /* @__PURE__ */ s(d, { sx: { pt: 12 }, children: [
908
911
  /* @__PURE__ */ e(Le, { data: S }),
909
912
  /* @__PURE__ */ e(
910
913
  d,
@@ -934,7 +937,7 @@ const j = {
934
937
  ({ onCTAClick: t }) => {
935
938
  const { onEvent: n } = Y(), { isInitialized: r, selectedAccountGuids: i } = U(), {
936
939
  loadRepeatingTransactionData: o,
937
- upcomingRecurrences: s,
940
+ upcomingRecurrences: a,
938
941
  repeatingTransactions: m,
939
942
  setDateRange: p,
940
943
  isDataLoaded: c
@@ -945,7 +948,7 @@ const j = {
945
948
  }), x.useEffect(() => {
946
949
  c || o().finally(() => {
947
950
  n(v.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
948
- state: s.length > 0 ? "default" : "zeroState"
951
+ state: a.length > 0 ? "default" : "zeroState"
949
952
  });
950
953
  });
951
954
  }, []), x.useEffect(() => {
@@ -954,21 +957,21 @@ const j = {
954
957
  accounts: i
955
958
  }), p({ start: k(/* @__PURE__ */ new Date()), end: z(/* @__PURE__ */ new Date()) }));
956
959
  }, [r, i]);
957
- const C = () => {
960
+ const y = () => {
958
961
  n(
959
- s.length > 0 ? v.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : v.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
962
+ a.length > 0 ? v.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : v.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
960
963
  ), t();
961
964
  };
962
965
  if (!r || !c) return /* @__PURE__ */ e(ae, { height: 100 });
963
- const y = !m?.length;
966
+ const C = !m?.length;
964
967
  return /* @__PURE__ */ e(
965
968
  _t,
966
969
  {
967
970
  className: "mx-recurring-transaction-microwidget",
968
- ctaLabel: y ? g.get_started_cta : u.primary_cta,
969
- onCTAClick: C,
971
+ ctaLabel: C ? g.get_started_cta : u.primary_cta,
972
+ onCTAClick: y,
970
973
  title: u.recurring_expenses,
971
- children: y ? /* @__PURE__ */ e(Et, {}) : /* @__PURE__ */ e(Ot, {})
974
+ children: C ? /* @__PURE__ */ e(Et, {}) : /* @__PURE__ */ e(Ot, {})
972
975
  }
973
976
  );
974
977
  }
@@ -41,7 +41,7 @@ import Me from "@mui/material/ListItemText";
41
41
  import { ChevronRight as Le, ChevronLeft as Be } from "@mxenabled/mx-icons";
42
42
  import { D as He } from "../Drawer-DsnW2o0v.mjs";
43
43
  import { u as ne } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
44
- import { H as Oe } from "../Help-BMCejaQr.mjs";
44
+ import { H as Oe } from "../Help-aERwhajy.mjs";
45
45
  import { W as q } from "../WidgetContainer-DJnp6t6c.mjs";
46
46
  const Fe = ({ availableWidth: t, handleOnLeavClick: r }) => {
47
47
  const i = L(), { common: o, settings: n } = k(), { isDesktop: u, isMobile: s, isSmallMobile: a, isTablet: l } = F(t), { config: b } = G(), { updateUser: _ } = E(), { user: d } = Ce(), [h, w] = m.useState({