@mx-cartographer/experiences 9.0.15-alpha.al4 → 9.0.15

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 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 De } from "../RecurringSettings-D8hBbXV_.mjs";
12
- import { M as Jn } from "../RecurringSettings-D8hBbXV_.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";
@@ -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";
@@ -35,8 +35,8 @@ import { isSameDay as dt } from "date-fns/isSameDay";
35
35
  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
- import { u as b, a as U, h as D, f as Y, D as Ie, g as re } from "../hooks-97sNJ_lf.mjs";
39
- import { b as E, a as _, g as ye, e as pt, R as gt } from "../RecurringTransactionsUtil-CHWmqvW5.mjs";
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";
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";
@@ -49,19 +49,19 @@ import xt from "@mui/material/ListItemAvatar";
49
49
  import bt from "@mui/material/ListItemButton";
50
50
  import yt 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 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";
60
60
  import { L as ae } from "../Loader-CxeBwuPG.mjs";
61
61
  import { W as Rt } from "../WidgetContainer-DJnp6t6c.mjs";
62
62
  import { M as Tt } from "../MiniWidgetContainer-Bmv_WeUd.mjs";
63
- import { u as _t } from "../useDimensions-CeDR9V8N.mjs";
64
- import { M as Dt } from "../MicroWidgetContainer-B2NnKBgW.mjs";
63
+ import { u as Dt } from "../useDimensions-CeDR9V8N.mjs";
64
+ import { M as _t } from "../MicroWidgetContainer-B2NnKBgW.mjs";
65
65
  const j = {
66
66
  gridRow: 1,
67
67
  gridColumn: 1,
@@ -106,18 +106,18 @@ 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 } = D(), 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(
115
- (f) => f.type !== E.Income && f.status === _.Upcoming
116
- ), u = a.some(
117
- (f) => f.type !== E.Income && f.status === _.Missed
118
- ), g = a.some(
119
- (f) => f.type !== E.Income && f.status === _.Paid
120
- ), y = a.some((f) => f.type === E.Income), C = (l ? 1 : 0) + (u ? 1 : 0) + (g ? 1 : 0) + (y ? 1 : 0), S = [
114
+ ), l = c.some(
115
+ (f) => f.type !== E.Income && f.status === D.Upcoming
116
+ ), u = c.some(
117
+ (f) => f.type !== E.Income && f.status === D.Missed
118
+ ), g = c.some(
119
+ (f) => f.type !== E.Income && f.status === D.Paid
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,
@@ -126,7 +126,7 @@ const j = {
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 }),
@@ -163,12 +163,12 @@ const j = {
163
163
  }
164
164
  );
165
165
  }
166
- ), $ = ({ icon: t, label: n }) => /* @__PURE__ */ c(d, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
166
+ ), B = ({ icon: t, label: n }) => /* @__PURE__ */ a(d, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
167
167
  /* @__PURE__ */ e(t, {}),
168
168
  /* @__PURE__ */ e(h, { variant: "caption", children: n })
169
169
  ] }), wt = T(() => {
170
170
  const { recurring: t } = b();
171
- return /* @__PURE__ */ c(
171
+ return /* @__PURE__ */ a(
172
172
  d,
173
173
  {
174
174
  alignItems: "center",
@@ -178,10 +178,10 @@ const j = {
178
178
  justifyContent: "center",
179
179
  mt: 12,
180
180
  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 })
181
+ /* @__PURE__ */ e(B, { icon: se, label: t.expense }),
182
+ /* @__PURE__ */ e(B, { icon: ce, label: t.income }),
183
+ /* @__PURE__ */ e(B, { icon: le, label: t.missed }),
184
+ /* @__PURE__ */ e(B, { icon: de, label: t.paid })
185
185
  ]
186
186
  }
187
187
  );
@@ -195,14 +195,14 @@ const j = {
195
195
  [O.ES]: it
196
196
  }[t] || be;
197
197
  }, Ee = T(() => {
198
- const t = ne(), { onEvent: n } = Y(), { recurring: r } = b(), { selectedDay: i, setDateRange: o } = D(), [s, m] = x.useState(
198
+ const t = ne(), { onEvent: n } = Y(), { recurring: r } = b(), { selectedDay: i, setDateRange: o } = _(), [s, m] = x.useState(
199
199
  xe(/* @__PURE__ */ new Date()) * W + Re
200
200
  ), p = (u) => {
201
201
  m(xe(u) * W + Re), o({
202
202
  start: k(u),
203
203
  end: z(u)
204
- }), a(u), n(v.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
205
- }, a = (u) => {
204
+ }), c(u), n(v.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
205
+ }, c = (u) => {
206
206
  u && requestAnimationFrame(() => {
207
207
  const g = document.getElementById("recurrence-list");
208
208
  g?.setAttribute("tabindex", "-1"), g?.focus();
@@ -211,7 +211,7 @@ const j = {
211
211
  ct,
212
212
  {
213
213
  minDate: k(/* @__PURE__ */ new Date()),
214
- onChange: a,
214
+ onChange: c,
215
215
  onMonthChange: p,
216
216
  showDaysOutsideCurrentMonth: !0,
217
217
  slots: {
@@ -264,7 +264,7 @@ const j = {
264
264
  views: ["day"]
265
265
  }
266
266
  );
267
- return /* @__PURE__ */ e(d, { "aria-labelledby": "calendar-label", justifyContent: "center", role: "group", children: /* @__PURE__ */ c(lt, { adapterLocale: It(), dateAdapter: st, children: [
267
+ return /* @__PURE__ */ e(d, { "aria-labelledby": "calendar-label", justifyContent: "center", role: "group", children: /* @__PURE__ */ a(lt, { adapterLocale: It(), dateAdapter: st, children: [
268
268
  i && l,
269
269
  !i && l,
270
270
  /* @__PURE__ */ e(h, { id: "calendar-label", sx: { alignSelf: "center" }, variant: "body2", children: r.calendar_tooltip }),
@@ -274,30 +274,30 @@ const j = {
274
274
  if (t.type === E.Income)
275
275
  return /* @__PURE__ */ e(ce, {});
276
276
  switch (t.status) {
277
- case _.Missed:
277
+ case D.Missed:
278
278
  return /* @__PURE__ */ e(le, {});
279
- case _.Paid:
279
+ case D.Paid:
280
280
  return /* @__PURE__ */ e(de, {});
281
281
  default:
282
282
  return /* @__PURE__ */ e(se, {});
283
283
  }
284
284
  }, vt = (t, n) => {
285
285
  switch (t.status) {
286
- case _.Paid:
287
- return t.expectedDate ? G(
286
+ case D.Paid:
287
+ return t.expectedDate ? N(
288
288
  n.paid_on,
289
289
  I(
290
290
  t.occurredOnDate || t.expectedDate,
291
291
  M.MONTH_DAY
292
292
  )
293
293
  ) : n.paid;
294
- case _.Missed:
295
- return G(
294
+ case D.Missed:
295
+ return N(
296
296
  n.missed_on,
297
297
  I(t.expectedDate, M.MONTH_DAY)
298
298
  );
299
- case _.Upcoming:
300
- return G(
299
+ case D.Upcoming:
300
+ return N(
301
301
  n.upcoming_on,
302
302
  I(t.expectedDate, M.MONTH_DAY)
303
303
  );
@@ -311,13 +311,13 @@ const j = {
311
311
  },
312
312
  showOrdinal: i = !1
313
313
  }) => {
314
- const { recurring: o } = b(), { detailedRepeatingTransactions: s } = D(), m = x.useMemo(
314
+ const { recurring: o } = b(), { detailedRepeatingTransactions: s } = _(), m = x.useMemo(
315
315
  () => s.find((C) => C.guid === t.repeatingTransactionGuid),
316
316
  [t, s]
317
- ), p = t.type === E.Income, a = t.status === _.Paid, l = t.status === _.Missed, u = t.status === _.Upcoming;
317
+ ), p = t.type === E.Income, c = t.status === D.Paid, l = t.status === D.Missed, u = t.status === D.Upcoming;
318
318
  let g = o.paid?.toLowerCase();
319
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: () => {
320
+ /* @__PURE__ */ e(Me, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ a(bt, { onClick: () => {
321
321
  r(t);
322
322
  }, children: [
323
323
  /* @__PURE__ */ e(xt, { children: /* @__PURE__ */ e(
@@ -327,23 +327,23 @@ const j = {
327
327
  merchantGuid: t.merchantGuid
328
328
  }
329
329
  ) }),
330
- /* @__PURE__ */ e(yt, { children: /* @__PURE__ */ c(
330
+ /* @__PURE__ */ e(yt, { children: /* @__PURE__ */ a(
331
331
  d,
332
332
  {
333
333
  direction: "row",
334
334
  gap: 4,
335
335
  sx: { justifyContent: "space-between", textOverflow: "ellipsis", textWrap: "nowrap" },
336
336
  children: [
337
- /* @__PURE__ */ c(d, { direction: "column", width: "50%", children: [
337
+ /* @__PURE__ */ a(d, { direction: "column", width: "50%", children: [
338
338
  /* @__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: [
339
+ /* @__PURE__ */ e(d, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */ a(d, { direction: "row", gap: 4, children: [
340
340
  Mt(t),
341
341
  /* @__PURE__ */ e(h, { variant: "caption", children: vt(t, o) })
342
- ] }) : /* @__PURE__ */ c(B, { children: [
342
+ ] }) : /* @__PURE__ */ a($, { children: [
343
343
  t.institutionGuid && /* @__PURE__ */ e(
344
344
  Qe,
345
345
  {
346
- alt: "",
346
+ alt: `${t.institutionName} institution logo`,
347
347
  institutionGuid: t.institutionGuid,
348
348
  size: 12
349
349
  }
@@ -351,12 +351,12 @@ const j = {
351
351
  /* @__PURE__ */ e(h, { sx: { maxWidth: 250 }, variant: "caption", children: t.institutionName })
352
352
  ] }) })
353
353
  ] }),
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: [
354
+ /* @__PURE__ */ a(d, { alignItems: "flex-end", width: "100%", children: [
355
+ /* @__PURE__ */ a(h, { bold: !0, color: p ? "success.main" : "text.primary", variant: "body1", children: [
356
356
  p ? "+" : "",
357
357
  L(t.amount, "0,0.00")
358
358
  ] }),
359
- !n && /* @__PURE__ */ c(
359
+ !n && /* @__PURE__ */ a(
360
360
  d,
361
361
  {
362
362
  direction: "row",
@@ -368,7 +368,7 @@ const j = {
368
368
  width: "100%"
369
369
  },
370
370
  children: [
371
- a && /* @__PURE__ */ e(we, { color: "success", filled: !0, size: 12 }),
371
+ c && /* @__PURE__ */ e(we, { color: "success", filled: !0, size: 12 }),
372
372
  l && /* @__PURE__ */ e(Se, { color: "error", filled: !0, size: 12 }),
373
373
  /* @__PURE__ */ e(h, { bold: !0, color: "text.secondary", variant: "caption", children: g })
374
374
  ]
@@ -389,8 +389,8 @@ const j = {
389
389
  title: s
390
390
  }) => {
391
391
  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(
392
+ return /* @__PURE__ */ a(d, { id: "recurrence-list", sx: { gap: 8, mt: 4, ...o }, "tab-index": -1, children: [
393
+ s && /* @__PURE__ */ a(
394
394
  d,
395
395
  {
396
396
  sx: {
@@ -405,33 +405,23 @@ const j = {
405
405
  ]
406
406
  }
407
407
  ),
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: [
408
+ t.length === 0 ? /* @__PURE__ */ e(h, { fontStyle: "italic", sx: { py: 24, textAlign: "center" }, children: m.no_activities }) : /* @__PURE__ */ e(Ce, { children: n ? t.map((c, l) => /* @__PURE__ */ a(x.Fragment, { children: [
409
409
  /* @__PURE__ */ e(
410
410
  Te,
411
411
  {
412
412
  isMini: n,
413
413
  onRecurrenceClick: i,
414
- recurrence: a
414
+ recurrence: c
415
415
  }
416
416
  ),
417
417
  /* @__PURE__ */ e(X, { sx: { mx: 24 } })
418
- ] }, `recurrence-${l}`)) : p.map((a, l) => /* @__PURE__ */ c(x.Fragment, { children: [
418
+ ] }, `recurrence-${l}`)) : p.map((c, l) => /* @__PURE__ */ a(x.Fragment, { children: [
419
419
  /* @__PURE__ */ e(Me, { children: /* @__PURE__ */ e(
420
420
  Ce,
421
421
  {
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
- ),
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) }) }),
433
423
  sx: { width: "100%" },
434
- children: a.recurrences.map((u, g) => /* @__PURE__ */ e(x.Fragment, { children: /* @__PURE__ */ e(
424
+ children: c.recurrences.map((u, g) => /* @__PURE__ */ e(x.Fragment, { children: /* @__PURE__ */ e(
435
425
  Te,
436
426
  {
437
427
  isMini: n,
@@ -440,45 +430,45 @@ const j = {
440
430
  }
441
431
  ) }, `day-recurrence-${g}`))
442
432
  }
443
- ) }, a.id),
433
+ ) }, c.id),
444
434
  /* @__PURE__ */ e(X, { sx: { mx: 24 } })
445
435
  ] }, `recurrence-${l}`)) })
446
436
  ] });
447
437
  }
448
- ), _e = T(
438
+ ), De = T(
449
439
  ({ 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(() => {
440
+ const p = ne(), { isSmallMobile: c } = ve(), { recurring: l } = b(), u = x.useMemo(() => {
451
441
  const g = [{ color: p.palette.success.main, percentage: `${i / t}` }];
452
442
  return r && g.push({ color: p.palette.error.main, percentage: `${r / t}` }), g;
453
443
  }, [i, t, r]);
454
- return /* @__PURE__ */ c(d, { children: [
455
- /* @__PURE__ */ c(d, { sx: { flexDirection: "row", justifyContent: "space-between", pb: 12 }, children: [
444
+ return /* @__PURE__ */ a(d, { children: [
445
+ /* @__PURE__ */ a(d, { sx: { flexDirection: "row", justifyContent: "space-between", pb: 12 }, children: [
456
446
  /* @__PURE__ */ e(h, { bold: !0, variant: "body1", children: `${o} (${s})` }),
457
447
  /* @__PURE__ */ e(h, { bold: !0, color: n ? "text.primary" : "success.main", variant: "body1", children: `${n ? "-" : "+"}${L(t, "0,0.00")}` })
458
448
  ] }),
459
449
  /* @__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") }),
450
+ /* @__PURE__ */ a(d, { sx: { alignItems: "center", flexDirection: "row", gap: 2, my: 8 }, children: [
451
+ /* @__PURE__ */ e(G, { sx: { bgcolor: "success.main", height: 8, mr: 8, width: 8 } }),
452
+ !c && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children: L(i, "0,0.00") }),
463
453
  /* @__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") }),
454
+ r !== void 0 && /* @__PURE__ */ a($, { children: [
455
+ /* @__PURE__ */ e(G, { sx: { bgcolor: "error.main", height: 8, ml: 16, mr: 8, width: 8 } }),
456
+ !c && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children: L(r, "0,0.00") }),
467
457
  /* @__PURE__ */ e(h, { variant: "caption", children: l.missed?.toLowerCase() })
468
458
  ] }),
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") }),
459
+ /* @__PURE__ */ e(G, { sx: { bgcolor: "divider", height: 8, ml: 16, mr: 8, width: 8 } }),
460
+ !c && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children: L(m, "0,0.00") }),
471
461
  /* @__PURE__ */ e(h, { variant: "caption", children: l.upcoming?.toLowerCase() })
472
462
  ] })
473
463
  ] });
474
464
  }
475
- ), Ge = T(() => {
465
+ ), Ne = T(() => {
476
466
  const { recurring: t } = b(), {
477
467
  selectedRecurrence: n,
478
468
  selectedRepeatingTransaction: r,
479
469
  setSelectedRecurrence: i,
480
470
  setSelectedRepeatingTransactionGuid: o
481
- } = D(), s = () => {
471
+ } = _(), s = () => {
482
472
  o(null), i(null);
483
473
  };
484
474
  return /* @__PURE__ */ e(
@@ -502,7 +492,7 @@ const j = {
502
492
  const { recurring: t } = b(), { availableWidth: n } = Ie(), { isDesktop: r, isSmallMobile: i, isMobile: o } = ve(n), { onEvent: s } = Y(), {
503
493
  currentMonthExpenses: m,
504
494
  currentMonthIncome: p,
505
- dateRange: a,
495
+ dateRange: c,
506
496
  expenseTotal: l,
507
497
  incomeTotal: u,
508
498
  missedExpenseTotal: g,
@@ -514,11 +504,11 @@ const j = {
514
504
  setDateRange: w,
515
505
  setSelectedRecurrence: H,
516
506
  setSelectedRepeatingTransactionGuid: ue,
517
- upcomingExpenseTotal: Ne,
507
+ upcomingExpenseTotal: Ge,
518
508
  upcomingIncomeTotal: ke,
519
509
  upcomingRecurrences: me
520
- } = D(), [V, Oe] = x.useState(0), We = je(a.start, /* @__PURE__ */ new Date()), Pe = (R, $e) => {
521
- Oe($e);
510
+ } = _(), [V, Oe] = x.useState(0), We = je(c.start, /* @__PURE__ */ new Date()), Pe = (R, Be) => {
511
+ Oe(Be);
522
512
  }, pe = (R) => {
523
513
  ue(R.repeatingTransactionGuid), H(R), s(v.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
524
514
  transaction_guid: R.transaction?.guid
@@ -528,19 +518,19 @@ const j = {
528
518
  transaction_guid: R.transaction?.guid
529
519
  });
530
520
  }, ze = () => {
531
- const R = Ue(a.start, 1);
521
+ const R = Ue(c.start, 1);
532
522
  w({
533
523
  start: k(R),
534
524
  end: z(R)
535
525
  });
536
526
  }, He = () => {
537
- const R = Ye(a.start, 1);
527
+ const R = Ye(c.start, 1);
538
528
  w({
539
529
  start: k(R),
540
530
  end: z(R)
541
531
  });
542
532
  };
543
- return /* @__PURE__ */ c(
533
+ return /* @__PURE__ */ a(
544
534
  q,
545
535
  {
546
536
  container: !0,
@@ -548,14 +538,14 @@ const j = {
548
538
  pt: 16
549
539
  },
550
540
  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(
541
+ /* @__PURE__ */ a(q, { size: { sm: 12, md: "grow" }, width: "100%", children: [
542
+ /* @__PURE__ */ a(d, { sx: { gap: 16, px: r ? 48 : 24 }, children: [
543
+ /* @__PURE__ */ a(d, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
544
+ /* @__PURE__ */ e(tt, { variant: "h3", children: N(
555
545
  t.header_title,
556
- I(a.start, M.MONTH_LONG)
546
+ I(c.start, M.MONTH_LONG)
557
547
  ) }),
558
- !r && /* @__PURE__ */ c(d, { direction: "row", gap: 4, children: [
548
+ !r && /* @__PURE__ */ a(d, { direction: "row", gap: 4, children: [
559
549
  /* @__PURE__ */ e(
560
550
  he,
561
551
  {
@@ -569,18 +559,18 @@ const j = {
569
559
  ] })
570
560
  ] }),
571
561
  /* @__PURE__ */ e(
572
- _e,
562
+ De,
573
563
  {
574
564
  expected: l,
575
565
  missed: g,
576
566
  paid: C,
577
567
  title: t.expenses,
578
568
  total: m.length,
579
- upcoming: Ne
569
+ upcoming: Ge
580
570
  }
581
571
  ),
582
572
  /* @__PURE__ */ e(
583
- _e,
573
+ De,
584
574
  {
585
575
  expected: u,
586
576
  isExpense: !1,
@@ -599,8 +589,8 @@ const j = {
599
589
  }
600
590
  )
601
591
  ] }),
602
- !r && /* @__PURE__ */ c(d, { sx: { px: o ? 0 : 24 }, children: [
603
- /* @__PURE__ */ c(Ke, { onChange: Pe, value: V, variant: "fullWidth", children: [
592
+ !r && /* @__PURE__ */ a(d, { sx: { px: o ? 0 : 24 }, children: [
593
+ /* @__PURE__ */ a(Ke, { onChange: Pe, value: V, variant: "fullWidth", children: [
604
594
  /* @__PURE__ */ e(
605
595
  fe,
606
596
  {
@@ -618,52 +608,50 @@ const j = {
618
608
  P,
619
609
  {
620
610
  onRecurrenceClick: pe,
621
- recurrences: me,
622
- title: i ? t.upcoming : t.upcoming_activity
611
+ recurrences: me
623
612
  }
624
613
  ),
625
614
  V === 1 && /* @__PURE__ */ e(
626
615
  P,
627
616
  {
628
617
  onRecurrenceClick: ge,
629
- recurrences: y,
630
- title: i ? t.past : t.past_transactions
618
+ recurrences: y
631
619
  }
632
620
  )
633
621
  ] })
634
622
  ] }),
635
- r && /* @__PURE__ */ e(q, { size: { xs: "auto" }, sx: { minWidth: 450 }, children: /* @__PURE__ */ c(d, { gap: 24, children: [
623
+ r && /* @__PURE__ */ e(q, { size: { xs: "auto" }, sx: { minWidth: 450 }, children: /* @__PURE__ */ a(d, { gap: 24, children: [
636
624
  /* @__PURE__ */ e(Ee, {}),
637
625
  /* @__PURE__ */ e(
638
626
  P,
639
627
  {
640
628
  onRecurrenceClick: ge,
641
629
  recurrences: f || y,
642
- title: A ? G(
630
+ title: A ? N(
643
631
  t.day_transactions,
644
632
  I(A, M.MONTH_DAY)
645
633
  ) : t.past_transactions
646
634
  }
647
635
  )
648
636
  ] }) }),
649
- /* @__PURE__ */ e(Ge, {})
637
+ /* @__PURE__ */ e(Ne, {})
650
638
  ]
651
639
  }
652
640
  );
653
641
  }), jn = T(
654
642
  ({ onBackClick: t, onMenuClick: n, sx: r = {} }) => {
655
- const { recurring: i } = b(), { isInitialized: o, selectedAccountGuids: s } = U(), { alert: m, isDataLoaded: p, loadRepeatingTransactionData: a, setAlert: l, setDateRange: u } = D(), { setFilter: g } = re(), { onEvent: y } = Y(), [C, S] = x.useState(!1);
643
+ const { recurring: i } = b(), { isInitialized: o, selectedAccountGuids: s } = U(), { alert: m, isDataLoaded: p, loadRepeatingTransactionData: c, setAlert: l, setDateRange: u } = _(), { setFilter: g } = re(), { onEvent: y } = Y(), [C, S] = x.useState(!1);
656
644
  return oe({
657
645
  widgetName: "RecurringTransactionsWidget",
658
646
  isLoaded: p
659
647
  }), x.useEffect(() => {
660
- p || a().finally();
648
+ p || c().finally();
661
649
  }, []), x.useEffect(() => {
662
650
  g({
663
651
  dateRange: { start: ee(Q(), 90), end: J() },
664
652
  accounts: s
665
653
  }), u({ start: k(/* @__PURE__ */ new Date()), end: z(/* @__PURE__ */ new Date()) });
666
- }, [s]), o ? /* @__PURE__ */ c(
654
+ }, [s]), o ? /* @__PURE__ */ a(
667
655
  Rt,
668
656
  {
669
657
  actions: [
@@ -691,7 +679,7 @@ const j = {
691
679
  onClose: () => S(!1),
692
680
  shouldShowHeaderBorders: !1,
693
681
  title: i.action_title,
694
- children: /* @__PURE__ */ e(De, {})
682
+ children: /* @__PURE__ */ e(_e, {})
695
683
  }
696
684
  ),
697
685
  /* @__PURE__ */ e(
@@ -701,7 +689,7 @@ const j = {
701
689
  autoHideDuration: 3500,
702
690
  onClose: () => l(""),
703
691
  open: !!m.message,
704
- children: /* @__PURE__ */ e(Be, { onClose: () => l(""), severity: m.severity, variant: "filled", children: m.message })
692
+ children: /* @__PURE__ */ e($e, { onClose: () => l(""), severity: m.severity, variant: "filled", children: m.message })
705
693
  }
706
694
  )
707
695
  ]
@@ -716,21 +704,21 @@ const j = {
716
704
  setSelectedRecurrence: s,
717
705
  setSelectedRepeatingTransactionGuid: m,
718
706
  upcomingRecurrences: p
719
- } = D(), a = (u) => {
707
+ } = _(), c = (u) => {
720
708
  m(u.repeatingTransactionGuid), s(u);
721
709
  }, l = n < 750;
722
- return /* @__PURE__ */ c(d, { flexDirection: l ? "column" : "row", width: "100%", children: [
710
+ return /* @__PURE__ */ a(d, { flexDirection: l ? "column" : "row", width: "100%", children: [
723
711
  /* @__PURE__ */ e(Ee, {}),
724
712
  !l && /* @__PURE__ */ e(X, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
725
713
  /* @__PURE__ */ e(
726
714
  P,
727
715
  {
728
716
  isMini: !0,
729
- onRecurrenceClick: a,
717
+ onRecurrenceClick: c,
730
718
  onResetClick: r ? () => o(r) : void 0,
731
719
  recurrences: i || p.slice(0, 5),
732
720
  sx: { width: l ? "100%" : "calc(100% - 336px)", mt: 12 },
733
- title: r ? G(
721
+ title: r ? N(
734
722
  t.day_transactions,
735
723
  I(r, M.MONTH_DAY)
736
724
  ) : t.upcoming_activity
@@ -739,7 +727,7 @@ const j = {
739
727
  ] });
740
728
  }), Kn = T(
741
729
  ({ onPrimaryCtaClick: t, sx: n }) => {
742
- const { recurring: r } = b(), { setFilter: i } = re(), { isDataLoaded: o, loadRepeatingTransactionData: s } = D(), { isInitialized: m, selectedAccountGuids: p } = U();
730
+ const { recurring: r } = b(), { setFilter: i } = re(), { isDataLoaded: o, loadRepeatingTransactionData: s } = _(), { isInitialized: m, selectedAccountGuids: p } = U();
743
731
  return oe({
744
732
  widgetName: "RecurringTransactionsMiniWidget",
745
733
  isLoaded: o
@@ -750,7 +738,7 @@ const j = {
750
738
  dateRange: { start: ee(Q(), 90), end: J() },
751
739
  accounts: p
752
740
  });
753
- }, [p]), m ? /* @__PURE__ */ c(
741
+ }, [p]), m ? /* @__PURE__ */ a(
754
742
  Tt,
755
743
  {
756
744
  className: "mx-exp-recurring-transactions-miniwidget",
@@ -762,29 +750,29 @@ const j = {
762
750
  title: r.mini_title,
763
751
  children: [
764
752
  o ? /* @__PURE__ */ e(At, {}) : /* @__PURE__ */ e(Ae, { sx: { mx: 16 }, variant: "list" }),
765
- /* @__PURE__ */ e(Ge, {})
753
+ /* @__PURE__ */ e(Ne, {})
766
754
  ]
767
755
  }
768
756
  ) : /* @__PURE__ */ e(ae, {});
769
757
  }
770
758
  ), Et = T(() => {
771
759
  const { recurring: t } = b();
772
- return /* @__PURE__ */ c(d, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
760
+ return /* @__PURE__ */ a(d, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
773
761
  /* @__PURE__ */ e(Je, { size: 32 }),
774
- /* @__PURE__ */ c(d, { children: [
762
+ /* @__PURE__ */ a(d, { children: [
775
763
  /* @__PURE__ */ e(Z, { fontWeight: 600, variant: "body1", children: t.zero_state_content_header }),
776
764
  /* @__PURE__ */ e(Z, { color: "text.secondary", variant: "subtitle2", children: t.zero_state_content_description })
777
765
  ] })
778
766
  ] });
779
- }), Gt = ({
767
+ }), Nt = ({
780
768
  amount: t,
781
769
  bgcolor: n,
782
770
  isLargeScreen: r,
783
771
  isSmallScreen: i,
784
772
  label: o
785
- }) => /* @__PURE__ */ c(d, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
773
+ }) => /* @__PURE__ */ a(d, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
786
774
  /* @__PURE__ */ e(
787
- N,
775
+ G,
788
776
  {
789
777
  sx: {
790
778
  borderRadius: "2px",
@@ -794,25 +782,25 @@ const j = {
794
782
  }
795
783
  }
796
784
  ),
797
- /* @__PURE__ */ c(d, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
785
+ /* @__PURE__ */ a(d, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
798
786
  !i && /* @__PURE__ */ e(h, { bold: !0, variant: "caption", children: L(t, t === 0 || !r ? "0,0" : "0,0.00") }),
799
787
  /* @__PURE__ */ e(h, { variant: "caption", children: o })
800
788
  ] })
801
- ] }), Nt = ({
789
+ ] }), Gt = ({
802
790
  upcomingRecurrences: t,
803
791
  logoSize: n = 32,
804
792
  maxLogos: r = 3
805
793
  }) => {
806
794
  const i = (o) => o * (n / 2);
807
795
  return /* @__PURE__ */ e(
808
- N,
796
+ G,
809
797
  {
810
798
  sx: {
811
799
  position: "relative",
812
800
  width: 64
813
801
  },
814
802
  children: t.map((o, s) => s < r ? /* @__PURE__ */ e(
815
- N,
803
+ G,
816
804
  {
817
805
  sx: {
818
806
  borderRadius: "4px",
@@ -846,13 +834,13 @@ const j = {
846
834
  },
847
835
  `${r.categoryGuid}-${r.merchantGuid}-${i}`
848
836
  )) }), Ot = T(() => {
849
- const t = ne(), [n, { width: r }] = _t(), {
837
+ const t = ne(), [n, { width: r }] = Dt(), {
850
838
  upcomingRecurrences: i,
851
839
  expenseTotal: o,
852
840
  missedExpenseTotal: s,
853
841
  paidExpenseTotal: m,
854
842
  upcomingExpenseTotal: p
855
- } = D(), { 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(() => {
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(() => {
856
844
  const w = [
857
845
  { color: t.palette.success.main, percentage: `${m / o}` }
858
846
  ];
@@ -867,7 +855,7 @@ const j = {
867
855
  t.palette.success.main,
868
856
  t.palette.error.main
869
857
  ]), A = () => y ? l ? /* @__PURE__ */ e(
870
- Nt,
858
+ Gt,
871
859
  {
872
860
  logoSize: g,
873
861
  maxLogos: 3,
@@ -877,22 +865,22 @@ const j = {
877
865
  {
878
866
  amount: m,
879
867
  bgColor: "success.main",
880
- label: a.paid
868
+ label: c.paid
881
869
  },
882
870
  {
883
871
  amount: s,
884
872
  bgColor: "error.main",
885
- label: a.missed
873
+ label: c.missed
886
874
  },
887
875
  {
888
876
  amount: p,
889
877
  bgColor: "neutral.light",
890
- label: a.upcoming
878
+ label: c.upcoming
891
879
  }
892
880
  ];
893
- return /* @__PURE__ */ c(B, { children: [
894
- /* @__PURE__ */ c(d, { ref: n, sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
895
- /* @__PURE__ */ c(
881
+ return /* @__PURE__ */ a($, { children: [
882
+ /* @__PURE__ */ a(d, { ref: n, sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
883
+ /* @__PURE__ */ a(
896
884
  d,
897
885
  {
898
886
  sx: [
@@ -913,13 +901,13 @@ const j = {
913
901
  children: C
914
902
  }
915
903
  ),
916
- /* @__PURE__ */ e(Z, { sx: { pr: 12 }, variant: "caption", children: a.expected })
904
+ /* @__PURE__ */ e(Z, { sx: { pr: 12 }, variant: "caption", children: c.expected })
917
905
  ]
918
906
  }
919
907
  ),
920
908
  A()
921
909
  ] }),
922
- /* @__PURE__ */ c(d, { sx: { pt: 12 }, children: [
910
+ /* @__PURE__ */ a(d, { sx: { pt: 12 }, children: [
923
911
  /* @__PURE__ */ e(Le, { data: S }),
924
912
  /* @__PURE__ */ e(
925
913
  d,
@@ -931,7 +919,7 @@ const j = {
931
919
  mt: 4
932
920
  },
933
921
  children: f.map((w, H) => /* @__PURE__ */ e(
934
- Gt,
922
+ Nt,
935
923
  {
936
924
  amount: w.amount,
937
925
  bgcolor: w.bgColor,
@@ -952,13 +940,13 @@ const j = {
952
940
  upcomingRecurrences: s,
953
941
  repeatingTransactions: m,
954
942
  setDateRange: p,
955
- isDataLoaded: a
956
- } = D(), { setFilter: l } = re(), { recurring: u, budgets: g } = b();
943
+ isDataLoaded: c
944
+ } = _(), { setFilter: l } = re(), { recurring: u, budgets: g } = b();
957
945
  oe({
958
946
  widgetName: "RecurringTransactionsMicroWidget",
959
- isLoaded: a
947
+ isLoaded: c
960
948
  }), x.useEffect(() => {
961
- a || o().finally(() => {
949
+ c || o().finally(() => {
962
950
  n(v.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
963
951
  state: s.length > 0 ? "default" : "zeroState"
964
952
  });
@@ -974,10 +962,10 @@ const j = {
974
962
  s.length > 0 ? v.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : v.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
975
963
  ), t();
976
964
  };
977
- if (!r || !a) return /* @__PURE__ */ e(ae, { height: 100 });
965
+ if (!r || !c) return /* @__PURE__ */ e(ae, { height: 100 });
978
966
  const C = !m?.length;
979
967
  return /* @__PURE__ */ e(
980
- Dt,
968
+ _t,
981
969
  {
982
970
  className: "mx-recurring-transaction-microwidget",
983
971
  ctaLabel: C ? g.get_started_cta : u.primary_cta,
@@ -997,7 +985,7 @@ const j = {
997
985
  isOpen: t,
998
986
  onClose: n,
999
987
  title: i.cashflow_settings,
1000
- children: /* @__PURE__ */ e(De, { defaultSelectedTab: r })
988
+ children: /* @__PURE__ */ e(_e, { defaultSelectedTab: r })
1001
989
  }
1002
990
  );
1003
991
  }
@@ -1006,7 +994,7 @@ export {
1006
994
  er as AddRecurringTransactionDetails,
1007
995
  Jn as ManageExpenses,
1008
996
  tr as ManageIncome,
1009
- De as RecurringSettings,
997
+ _e as RecurringSettings,
1010
998
  qn as RecurringSettingsDrawer,
1011
999
  Vn as RecurringTransactionsMicroWidget,
1012
1000
  Kn as RecurringTransactionsMiniWidget,