@mx-cartographer/experiences 7.2.15-alpha.sms3 → 7.2.16-alpha.mm0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,15 @@
1
1
  import { jsx as e, jsxs as a, Fragment as X } from "react/jsx-runtime";
2
2
  import h from "react";
3
- import { observer as T } from "mobx-react-lite";
3
+ import { observer as R } from "mobx-react-lite";
4
4
  import { endOfMonth as z } from "date-fns/endOfMonth";
5
5
  import { endOfToday as de } from "date-fns/endOfToday";
6
- import { startOfMonth as k } from "date-fns/startOfMonth";
6
+ import { startOfMonth as W } from "date-fns/startOfMonth";
7
7
  import { startOfToday as ue } from "date-fns/startOfToday";
8
8
  import { subDays as me } from "date-fns/subDays";
9
9
  import ae from "@mui/material/Skeleton";
10
10
  import c from "@mui/material/Stack";
11
- import { R as Ee } from "../RecurringSettings-D9GFcsXV.mjs";
12
- import { M as En } from "../RecurringSettings-D9GFcsXV.mjs";
11
+ import { R as Ee } from "../RecurringSettings-G6_BbsIF.mjs";
12
+ import { M as Gn } from "../RecurringSettings-G6_BbsIF.mjs";
13
13
  import { addMonths as ze } from "date-fns/addMonths";
14
14
  import { subMonths as Fe } from "date-fns/subMonths";
15
15
  import { isBefore as Ue } from "date-fns/isBefore";
@@ -28,32 +28,32 @@ import { isSameDay as nt } from "date-fns/isSameDay";
28
28
  import it from "@mui/material/Badge";
29
29
  import { PickersDay as rt } from "@mui/x-date-pickers/PickersDay";
30
30
  import { I as q } from "../IconBacking-B9oC6uL2.mjs";
31
- import { u as D, b as Z, j as I, g as J, q as Oe, d as he, h as fe } from "../hooks-D6XlXHf4.mjs";
32
- import { c as M, a as S, g as Ie, f as ot } from "../RecurringTransactions-ej39mgA6.mjs";
31
+ import { u as T, b as Z, j as v, g as J, q as Oe, d as he, h as fe, n as ot } from "../hooks-D6XlXHf4.mjs";
32
+ import { c as L, a as S, g as Ie, f as at } from "../RecurringTransactions-ej39mgA6.mjs";
33
33
  import { T as B } from "../RecurringTransactionsStore-DrzS1LmF.mjs";
34
- import { R as Nn } from "../RecurringTransactionsStore-DrzS1LmF.mjs";
35
- import { A as w, W as at } from "../WidgetContainer-EbrN1oIo.mjs";
36
- import st from "@mui/material/Button";
34
+ import { R as On } from "../RecurringTransactionsStore-DrzS1LmF.mjs";
35
+ import { A as I, W as st } from "../WidgetContainer-EbrN1oIo.mjs";
36
+ import ct from "@mui/material/Button";
37
37
  import le from "@mui/material/Divider";
38
38
  import ve from "@mui/material/List";
39
39
  import ke from "@mui/material/ListItem";
40
- import ct from "@mui/material/ListSubheader";
41
- import lt from "@mui/material/ListItemAvatar";
42
- import dt from "@mui/material/ListItemButton";
43
- import ut from "@mui/material/ListItemText";
44
- import { b as mt } from "../ManageIncome-B9yGuahc.mjs";
45
- import { c as kn, M as Wn, S as $n } from "../ManageIncome-B9yGuahc.mjs";
46
- import { f as L } from "../NumberFormatting-Buh7u8Oi.mjs";
40
+ import lt from "@mui/material/ListSubheader";
41
+ import dt from "@mui/material/ListItemAvatar";
42
+ import ut from "@mui/material/ListItemButton";
43
+ import mt from "@mui/material/ListItemText";
44
+ import { b as pt } from "../ManageIncome-CV-bGuR-.mjs";
45
+ import { c as Wn, M as $n, S as Pn } from "../ManageIncome-CV-bGuR-.mjs";
46
+ import { f as A } from "../NumberFormatting-Buh7u8Oi.mjs";
47
47
  import { D as xe } from "../Drawer-kEE73B87.mjs";
48
- import { b as N } from "../Localization-2MODESHW.mjs";
49
- import { f as A, D as E } from "../Dialog-CWW597AF.mjs";
50
- import O from "@mui/material/Box";
48
+ import { b as O } from "../Localization-2MODESHW.mjs";
49
+ import { f as E, D as G } from "../Dialog-CWW597AF.mjs";
50
+ import k from "@mui/material/Box";
51
51
  import { S as We } from "../StatusBar-BK_uYHAB.mjs";
52
52
  import { u as ye } from "../useScreenSize-B6JyS_Lj.mjs";
53
53
  import { L as V } from "../Loader-DUaFpDGv.mjs";
54
- import { M as pt } from "../MiniWidgetContainer-D0gfmbaF.mjs";
55
- import { u as gt } from "../useDimensions-27p2evRx.mjs";
56
- import { M as ht } from "../MicroWidgetContainer-DpeqN9n3.mjs";
54
+ import { M as gt } from "../MiniWidgetContainer-D0gfmbaF.mjs";
55
+ import { u as ht } from "../useDimensions-27p2evRx.mjs";
56
+ import { M as ft } from "../MicroWidgetContainer-DpeqN9n3.mjs";
57
57
  const Q = {
58
58
  gridRow: 1,
59
59
  gridColumn: 1,
@@ -64,20 +64,20 @@ const Q = {
64
64
  filled: !0,
65
65
  sx: { color: "categories.income", fontSize: n, ...Q }
66
66
  }
67
- ) }), Re = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(q, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Ge, { color: "error", filled: !0, sx: { fontSize: n, ...Q } }) }), Te = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(q, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Ne, { color: "success", filled: !0, sx: { fontSize: n, ...Q } }) }), ft = T(
67
+ ) }), Re = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(q, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Ge, { color: "error", filled: !0, sx: { fontSize: n, ...Q } }) }), Te = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(q, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Ne, { color: "success", filled: !0, sx: { fontSize: n, ...Q } }) }), xt = R(
68
68
  ({ day: t, outsideCurrentMonth: n, ...i }) => {
69
- const { recurring: r } = D(), { selectedAccountGuids: o } = Z(), { recurrences: l, setSelectedDay: m } = I(), s = h.useMemo(
69
+ const { recurring: r } = T(), { selectedAccountGuids: o } = Z(), { recurrences: l, setSelectedDay: m } = v(), s = h.useMemo(
70
70
  () => l.filter((d) => o.includes(d.accountGuid)),
71
71
  [o, l]
72
72
  ).filter(
73
73
  (d) => nt(d.occurredOnDate || d.expectedDate, t)
74
74
  ), u = s.some(
75
- (d) => d.type !== M.Income && d.status === S.Upcoming
75
+ (d) => d.type !== L.Income && d.status === S.Upcoming
76
76
  ), f = s.some(
77
- (d) => d.type !== M.Income && d.status === S.Missed
77
+ (d) => d.type !== L.Income && d.status === S.Missed
78
78
  ), x = s.some(
79
- (d) => d.type !== M.Income && d.status === S.Paid
80
- ), C = s.some((d) => d.type === M.Income), y = (u ? 1 : 0) + (f ? 1 : 0) + (x ? 1 : 0) + (C ? 1 : 0);
79
+ (d) => d.type !== L.Income && d.status === S.Paid
80
+ ), C = s.some((d) => d.type === L.Income), y = (u ? 1 : 0) + (f ? 1 : 0) + (x ? 1 : 0) + (C ? 1 : 0);
81
81
  return /* @__PURE__ */ e(
82
82
  it,
83
83
  {
@@ -122,8 +122,8 @@ const Q = {
122
122
  ), Y = ({ icon: t, label: n }) => /* @__PURE__ */ a(c, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
123
123
  /* @__PURE__ */ e(t, {}),
124
124
  /* @__PURE__ */ e(p, { variant: "XSmall", children: n })
125
- ] }), xt = T(() => {
126
- const { recurring: t } = D();
125
+ ] }), yt = R(() => {
126
+ const { recurring: t } = T();
127
127
  return /* @__PURE__ */ a(
128
128
  c,
129
129
  {
@@ -141,22 +141,22 @@ const Q = {
141
141
  ]
142
142
  }
143
143
  );
144
- }), Me = 58, $e = T(() => {
145
- const t = ge(), { onEvent: n } = J(), { selectedDay: i, setDateRange: r } = I(), [o, l] = h.useState(
144
+ }), Me = 58, $e = R(() => {
145
+ const t = ge(), { onEvent: n } = J(), { selectedDay: i, setDateRange: r } = v(), [o, l] = h.useState(
146
146
  we(/* @__PURE__ */ new Date()) * B + Me
147
147
  ), m = (s) => {
148
148
  l(we(s) * B + Me), r({
149
- start: k(s),
149
+ start: W(s),
150
150
  end: z(s)
151
- }), n(w.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
151
+ }), n(I.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
152
152
  }, g = /* @__PURE__ */ e(
153
153
  et,
154
154
  {
155
- minDate: k(/* @__PURE__ */ new Date()),
155
+ minDate: W(/* @__PURE__ */ new Date()),
156
156
  onMonthChange: m,
157
157
  showDaysOutsideCurrentMonth: !0,
158
158
  slots: {
159
- day: ft
159
+ day: xt
160
160
  },
161
161
  sx: {
162
162
  "& .MuiPickersArrowSwitcher-button": {
@@ -204,10 +204,10 @@ const Q = {
204
204
  return /* @__PURE__ */ e(c, { justifyContent: "center", children: /* @__PURE__ */ a(tt, { dateAdapter: Qe, children: [
205
205
  i && g,
206
206
  !i && g,
207
- /* @__PURE__ */ e(xt, {})
207
+ /* @__PURE__ */ e(yt, {})
208
208
  ] }) });
209
- }), yt = (t) => {
210
- if (t.type === M.Income)
209
+ }), Ct = (t) => {
210
+ if (t.type === L.Income)
211
211
  return /* @__PURE__ */ e(be, {});
212
212
  switch (t.status) {
213
213
  case S.Missed:
@@ -217,25 +217,25 @@ const Q = {
217
217
  default:
218
218
  return /* @__PURE__ */ e(Ce, {});
219
219
  }
220
- }, Ct = (t, n) => {
220
+ }, bt = (t, n) => {
221
221
  switch (t.status) {
222
222
  case S.Paid:
223
- return t.expectedDate ? N(
223
+ return t.expectedDate ? O(
224
224
  n.paid_on,
225
- A(
225
+ E(
226
226
  t.occurredOnDate || t.expectedDate,
227
- E.MONTH_DAY
227
+ G.MONTH_DAY
228
228
  )
229
229
  ) : n.paid;
230
230
  case S.Missed:
231
- return N(
231
+ return O(
232
232
  n.missed_on,
233
- A(t.expectedDate, E.MONTH_DAY)
233
+ E(t.expectedDate, G.MONTH_DAY)
234
234
  );
235
235
  case S.Upcoming:
236
- return N(
236
+ return O(
237
237
  n.upcoming_on,
238
- A(t.expectedDate, E.MONTH_DAY)
238
+ E(t.expectedDate, G.MONTH_DAY)
239
239
  );
240
240
  default:
241
241
  return n.unknown;
@@ -247,24 +247,24 @@ const Q = {
247
247
  },
248
248
  showOrdinal: r = !1
249
249
  }) => {
250
- const { recurring: o } = D(), { repeatingTransactions: l } = I(), [m, g] = h.useState(!1), s = h.useMemo(
251
- () => l.find((b) => b.guid === t.repeatingTransactionGuid),
250
+ const { recurring: o } = T(), { repeatingTransactions: l } = v(), [m, g] = h.useState(!1), s = h.useMemo(
251
+ () => l.find((D) => D.guid === t.repeatingTransactionGuid),
252
252
  [t, l]
253
- ), u = t.type === M.Income, f = t.status === S.Paid, x = t.status === S.Missed, C = t.status === S.Upcoming;
253
+ ), u = t.type === L.Income, f = t.status === S.Paid, x = t.status === S.Missed, C = t.status === S.Upcoming;
254
254
  let y = o.paid?.toLowerCase();
255
255
  return x ? y = o.missed?.toLowerCase() : C && (y = r ? Ie(o, s || {}, !0) : Ie(o, s || {}, !1)), //TODO: implement common/components/ListItemRow.tsx
256
256
  /* @__PURE__ */ a(ke, { disableGutters: !0, disablePadding: !0, children: [
257
- /* @__PURE__ */ a(dt, { onClick: () => {
257
+ /* @__PURE__ */ a(ut, { onClick: () => {
258
258
  g(!0), i(t);
259
259
  }, children: [
260
- /* @__PURE__ */ e(lt, { children: /* @__PURE__ */ e(
260
+ /* @__PURE__ */ e(dt, { children: /* @__PURE__ */ e(
261
261
  pe,
262
262
  {
263
263
  categoryGuid: t.categoryGuid,
264
264
  merchantGuid: t.merchantGuid
265
265
  }
266
266
  ) }),
267
- /* @__PURE__ */ e(ut, { children: /* @__PURE__ */ a(
267
+ /* @__PURE__ */ e(mt, { children: /* @__PURE__ */ a(
268
268
  c,
269
269
  {
270
270
  direction: "row",
@@ -274,8 +274,8 @@ const Q = {
274
274
  /* @__PURE__ */ a(c, { direction: "column", width: "50%", children: [
275
275
  /* @__PURE__ */ e(p, { bold: !0, variant: "body1", children: t.name }),
276
276
  /* @__PURE__ */ e(c, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */ a(c, { direction: "row", gap: 4, children: [
277
- yt(t),
278
- /* @__PURE__ */ e(p, { variant: "caption", children: Ct(t, o) })
277
+ Ct(t),
278
+ /* @__PURE__ */ e(p, { variant: "caption", children: bt(t, o) })
279
279
  ] }) : /* @__PURE__ */ a(X, { children: [
280
280
  t.institutionGuid && /* @__PURE__ */ e(
281
281
  Ze,
@@ -291,7 +291,7 @@ const Q = {
291
291
  /* @__PURE__ */ a(c, { alignItems: "flex-end", width: "100%", children: [
292
292
  /* @__PURE__ */ a(p, { bold: !0, color: u ? "success.main" : "text.primary", variant: "body1", children: [
293
293
  u ? "+" : "",
294
- L(t.amount, "0,0.00")
294
+ A(t.amount, "0,0.00")
295
295
  ] }),
296
296
  !n && /* @__PURE__ */ a(
297
297
  c,
@@ -322,9 +322,9 @@ const Q = {
322
322
  ariaLabelClose: o.close_drawer_aria,
323
323
  isOpen: m,
324
324
  onClose: () => g(!1),
325
- title: t.type === M.Income ? o.income_details : o.expense_details,
325
+ title: t.type === L.Income ? o.income_details : o.expense_details,
326
326
  children: s && /* @__PURE__ */ e(
327
- mt,
327
+ pt,
328
328
  {
329
329
  onDeleted: () => g(!1),
330
330
  recurringTransaction: s
@@ -333,7 +333,7 @@ const Q = {
333
333
  }
334
334
  )
335
335
  ] });
336
- }, H = T(
336
+ }, H = R(
337
337
  ({
338
338
  recurrences: t,
339
339
  isMini: n = !1,
@@ -342,7 +342,7 @@ const Q = {
342
342
  sx: o = {},
343
343
  title: l
344
344
  }) => {
345
- const { recurring: m } = D(), g = h.useMemo(() => ot(t), [t]);
345
+ const { recurring: m } = T(), g = h.useMemo(() => at(t), [t]);
346
346
  return /* @__PURE__ */ a(c, { sx: { gap: 8, mt: 4, ...o }, children: [
347
347
  l && /* @__PURE__ */ a(
348
348
  c,
@@ -350,7 +350,7 @@ const Q = {
350
350
  sx: { alignItems: "top", direction: "row", justifyContent: "space-between", px: 24 },
351
351
  children: [
352
352
  /* @__PURE__ */ e(p, { bold: !0, variant: "body1", children: l }),
353
- i && /* @__PURE__ */ e(st, { onClick: i, sx: { mt: -12 }, variant: "text", children: m.reset })
353
+ i && /* @__PURE__ */ e(ct, { onClick: i, sx: { mt: -12 }, variant: "text", children: m.reset })
354
354
  ]
355
355
  }
356
356
  ),
@@ -368,7 +368,7 @@ const Q = {
368
368
  /* @__PURE__ */ e(ke, { children: /* @__PURE__ */ e(
369
369
  ve,
370
370
  {
371
- subheader: /* @__PURE__ */ e(ct, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ e(p, { bold: !0, variant: "caption", children: A(s.date, E.DAY_OF_WEEK_MONTH_DAY) }) }),
371
+ subheader: /* @__PURE__ */ e(lt, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ e(p, { bold: !0, variant: "caption", children: E(s.date, G.DAY_OF_WEEK_MONTH_DAY) }) }),
372
372
  sx: { width: "100%" },
373
373
  children: s.recurrences.map((f, x) => /* @__PURE__ */ e(h.Fragment, { children: /* @__PURE__ */ e(
374
374
  Le,
@@ -384,35 +384,35 @@ const Q = {
384
384
  ] }, `recurrence-${u}`)) })
385
385
  ] });
386
386
  }
387
- ), Ae = T(
387
+ ), Ae = R(
388
388
  ({ expected: t, isExpense: n = !0, missed: i, paid: r, title: o, total: l, upcoming: m }) => {
389
- const g = ge(), { isSmallMobile: s } = ye(), { recurring: u } = D(), f = h.useMemo(() => {
389
+ const g = ge(), { isSmallMobile: s } = ye(), { recurring: u } = T(), f = h.useMemo(() => {
390
390
  const x = [{ color: g.palette.success.main, percentage: `${r / t}` }];
391
391
  return i && x.push({ color: g.palette.error.main, percentage: `${i / t}` }), x;
392
392
  }, [r, t, i]);
393
393
  return /* @__PURE__ */ a(c, { children: [
394
394
  /* @__PURE__ */ a(c, { sx: { flexDirection: "row", justifyContent: "space-between", pb: 12 }, children: [
395
395
  /* @__PURE__ */ e(p, { bold: !0, variant: "body1", children: `${o} (${l})` }),
396
- /* @__PURE__ */ e(p, { bold: !0, color: n ? "text.primary" : "success.main", variant: "body1", children: `${n ? "-" : "+"}${L(t, "0,0.00")}` })
396
+ /* @__PURE__ */ e(p, { bold: !0, color: n ? "text.primary" : "success.main", variant: "body1", children: `${n ? "-" : "+"}${A(t, "0,0.00")}` })
397
397
  ] }),
398
398
  /* @__PURE__ */ e(We, { data: f, height: 12 }),
399
399
  /* @__PURE__ */ a(c, { sx: { alignItems: "center", flexDirection: "row", gap: 2, my: 8 }, children: [
400
- /* @__PURE__ */ e(O, { sx: { bgcolor: "success.main", height: 8, mr: 8, width: 8 } }),
401
- !s && /* @__PURE__ */ e(p, { bold: !0, variant: "body2", children: L(r, "0,0.00") }),
400
+ /* @__PURE__ */ e(k, { sx: { bgcolor: "success.main", height: 8, mr: 8, width: 8 } }),
401
+ !s && /* @__PURE__ */ e(p, { bold: !0, variant: "body2", children: A(r, "0,0.00") }),
402
402
  /* @__PURE__ */ e(p, { variant: "caption", children: u.paid?.toLowerCase() }),
403
403
  i !== void 0 && /* @__PURE__ */ a(X, { children: [
404
- /* @__PURE__ */ e(O, { sx: { bgcolor: "error.main", height: 8, ml: 16, mr: 8, width: 8 } }),
405
- !s && /* @__PURE__ */ e(p, { bold: !0, variant: "body2", children: L(i, "0,0.00") }),
404
+ /* @__PURE__ */ e(k, { sx: { bgcolor: "error.main", height: 8, ml: 16, mr: 8, width: 8 } }),
405
+ !s && /* @__PURE__ */ e(p, { bold: !0, variant: "body2", children: A(i, "0,0.00") }),
406
406
  /* @__PURE__ */ e(p, { variant: "caption", children: u.missed?.toLowerCase() })
407
407
  ] }),
408
- /* @__PURE__ */ e(O, { sx: { bgcolor: "divider", height: 8, ml: 16, mr: 8, width: 8 } }),
409
- !s && /* @__PURE__ */ e(p, { bold: !0, variant: "body2", children: L(m, "0,0.00") }),
408
+ /* @__PURE__ */ e(k, { sx: { bgcolor: "divider", height: 8, ml: 16, mr: 8, width: 8 } }),
409
+ !s && /* @__PURE__ */ e(p, { bold: !0, variant: "body2", children: A(m, "0,0.00") }),
410
410
  /* @__PURE__ */ e(p, { variant: "caption", children: u.upcoming })
411
411
  ] })
412
412
  ] });
413
413
  }
414
- ), bt = T(() => {
415
- const { recurring: t } = D(), { availableWidth: n } = Oe(), { isDesktop: i, isSmallMobile: r, isMobile: o } = ye(n), { onEvent: l } = J(), {
414
+ ), Rt = R(() => {
415
+ const { recurring: t } = T(), { availableWidth: n } = Oe(), { isDesktop: i, isSmallMobile: r, isMobile: o } = ye(n), { onEvent: l } = J(), {
416
416
  currentMonthExpenses: m,
417
417
  currentMonthIncome: g,
418
418
  dateRange: s,
@@ -422,33 +422,33 @@ const Q = {
422
422
  pastRecurrences: C,
423
423
  paidExpenseTotal: y,
424
424
  paidIncomeTotal: d,
425
- selectedDay: b,
426
- selectedDayRecurrences: W,
425
+ selectedDay: D,
426
+ selectedDayRecurrences: _,
427
427
  setDateRange: F,
428
428
  upcomingExpenseTotal: te,
429
429
  upcomingIncomeTotal: ne,
430
430
  upcomingRecurrences: U
431
- } = I(), [$, _] = h.useState(0), ie = Ue(s.start, /* @__PURE__ */ new Date()), v = (R, oe) => {
432
- _(oe);
433
- }, j = (R) => {
434
- l(w.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
435
- transaction_guid: R.transaction?.guid
431
+ } = v(), [$, w] = h.useState(0), ie = Ue(s.start, /* @__PURE__ */ new Date()), M = (b, oe) => {
432
+ w(oe);
433
+ }, j = (b) => {
434
+ l(I.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
435
+ transaction_guid: b.transaction?.guid
436
436
  });
437
- }, K = (R) => {
438
- l(w.RECURRING_TRANSACTIONS_CLICK_PAID, {
439
- transaction_guid: R.transaction?.guid
437
+ }, K = (b) => {
438
+ l(I.RECURRING_TRANSACTIONS_CLICK_PAID, {
439
+ transaction_guid: b.transaction?.guid
440
440
  });
441
441
  }, P = () => {
442
- const R = ze(s.start, 1);
442
+ const b = ze(s.start, 1);
443
443
  F({
444
- start: k(R),
445
- end: z(R)
444
+ start: W(b),
445
+ end: z(b)
446
446
  });
447
447
  }, re = () => {
448
- const R = Fe(s.start, 1);
448
+ const b = Fe(s.start, 1);
449
449
  F({
450
- start: k(R),
451
- end: z(R)
450
+ start: W(b),
451
+ end: z(b)
452
452
  });
453
453
  };
454
454
  return /* @__PURE__ */ a(
@@ -462,9 +462,9 @@ const Q = {
462
462
  /* @__PURE__ */ a(se, { md: !0, sm: 12, width: "100%", children: [
463
463
  /* @__PURE__ */ a(c, { sx: { gap: 16, px: i ? 48 : 24 }, children: [
464
464
  /* @__PURE__ */ a(c, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
465
- /* @__PURE__ */ e(Je, { children: N(
465
+ /* @__PURE__ */ e(Je, { children: O(
466
466
  t.header_title,
467
- A(s.start, E.MONTH_LONG)
467
+ E(s.start, G.MONTH_LONG)
468
468
  ) }),
469
469
  !i && /* @__PURE__ */ a(c, { direction: "row", gap: 4, children: [
470
470
  /* @__PURE__ */ e(
@@ -511,7 +511,7 @@ const Q = {
511
511
  )
512
512
  ] }),
513
513
  !i && /* @__PURE__ */ a(c, { sx: { px: o ? 0 : 24 }, children: [
514
- /* @__PURE__ */ a(je, { onChange: v, value: $, variant: "fullWidth", children: [
514
+ /* @__PURE__ */ a(je, { onChange: M, value: $, variant: "fullWidth", children: [
515
515
  /* @__PURE__ */ e(
516
516
  _e,
517
517
  {
@@ -547,10 +547,10 @@ const Q = {
547
547
  H,
548
548
  {
549
549
  onRecurrenceClick: K,
550
- recurrences: W || C,
551
- title: b ? N(
550
+ recurrences: _ || C,
551
+ title: D ? O(
552
552
  t.day_transactions,
553
- A(b, E.MONTH_DAY)
553
+ E(D, G.MONTH_DAY)
554
554
  ) : t.past_transactions
555
555
  }
556
556
  )
@@ -558,17 +558,19 @@ const Q = {
558
558
  ]
559
559
  }
560
560
  );
561
- }), wn = T(({ onBackClick: t, sx: n = {} }) => {
562
- const { accounts: i } = he(), { recurring: r } = D(), { isCopyLoaded: o, isInitialized: l, selectedAccountGuids: m, setSelectedAccounts: g } = Z(), { isDataLoaded: s, loadRepeatingTransactions: u, setDateRange: f } = I(), { setFilter: x } = fe(), { onEvent: C } = J(), { isMobile: y } = ye(), [d, b] = h.useState(!1);
561
+ }), In = R(({ onBackClick: t, sx: n = {} }) => {
562
+ const { accounts: i } = he(), { recurring: r } = T(), { isCopyLoaded: o, isInitialized: l, selectedAccountGuids: m, setSelectedAccounts: g } = Z(), { isDataLoaded: s, loadRepeatingTransactions: u, setDateRange: f } = v(), { setFilter: x } = fe(), { onEvent: C } = J(), { onLoad: y } = ot(), { isMobile: d } = ye(), [D, _] = h.useState(!1);
563
563
  return h.useEffect(() => {
564
564
  g(i);
565
565
  }, [i]), h.useEffect(() => {
566
566
  l && (x({
567
567
  dateRange: { start: me(ue(), 90), end: de() },
568
568
  accounts: m
569
- }), f({ start: k(/* @__PURE__ */ new Date()), end: z(/* @__PURE__ */ new Date()) }), u().finally());
569
+ }), f({ start: W(/* @__PURE__ */ new Date()), end: z(/* @__PURE__ */ new Date()) }), u().finally(() => {
570
+ y?.("RecurringTransactionsWidget");
571
+ }));
570
572
  }, [l]), o ? /* @__PURE__ */ a(
571
- at,
573
+ st,
572
574
  {
573
575
  accountOptions: i,
574
576
  actions: [
@@ -576,17 +578,17 @@ const Q = {
576
578
  label: r.action_title,
577
579
  iconName: "credit_card_gear",
578
580
  onClick: () => {
579
- b(!0), C(w.RECURRING_TRANSACTIONS_CLICK_SETTINGS);
581
+ _(!0), C(I.RECURRING_TRANSACTIONS_CLICK_SETTINGS);
580
582
  }
581
583
  }
582
584
  ],
583
- hasDivider: y,
584
- onAccountsFilterClick: () => C(w.RECURRING_TRANSACTIONS_CLICK_FILTER),
585
+ hasDivider: d,
586
+ onAccountsFilterClick: () => C(I.RECURRING_TRANSACTIONS_CLICK_FILTER),
585
587
  onBackClick: t,
586
588
  sx: n,
587
589
  title: r.title,
588
590
  children: [
589
- l && s ? /* @__PURE__ */ e(bt, {}) : /* @__PURE__ */ a(c, { direction: "column", p: 48, spacing: 24, children: [
591
+ l && s ? /* @__PURE__ */ e(Rt, {}) : /* @__PURE__ */ a(c, { direction: "column", p: 48, spacing: 24, children: [
590
592
  /* @__PURE__ */ e(ae, { height: 100, variant: "rounded", width: "100%" }),
591
593
  /* @__PURE__ */ e(ae, { height: 100, variant: "rounded", width: "100%" }),
592
594
  /* @__PURE__ */ e(ae, { height: 600, variant: "rounded", width: "100%" })
@@ -595,8 +597,8 @@ const Q = {
595
597
  xe,
596
598
  {
597
599
  ariaLabelClose: r.close_drawer_aria,
598
- isOpen: d,
599
- onClose: () => b(!1),
600
+ isOpen: D,
601
+ onClose: () => _(!1),
600
602
  shouldShowHeaderBorders: !1,
601
603
  title: r.action_title,
602
604
  children: /* @__PURE__ */ e(Ee, {})
@@ -605,8 +607,8 @@ const Q = {
605
607
  ]
606
608
  }
607
609
  ) : /* @__PURE__ */ e(V, {});
608
- }), Rt = T(() => {
609
- const { recurring: t } = D(), { availableWidth: n } = Oe(), { selectedDay: i, selectedDayRecurrences: r, setSelectedDay: o, upcomingRecurrences: l } = I(), m = n < 750;
610
+ }), Tt = R(() => {
611
+ const { recurring: t } = T(), { availableWidth: n } = Oe(), { selectedDay: i, selectedDayRecurrences: r, setSelectedDay: o, upcomingRecurrences: l } = v(), m = n < 750;
610
612
  return /* @__PURE__ */ a(c, { flexDirection: m ? "column" : "row", width: "100%", children: [
611
613
  /* @__PURE__ */ e($e, {}),
612
614
  !m && /* @__PURE__ */ e(le, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
@@ -617,16 +619,16 @@ const Q = {
617
619
  onResetClick: i ? () => o(i) : void 0,
618
620
  recurrences: r || l.slice(0, 5),
619
621
  sx: { width: m ? "100%" : "calc(100% - 336px)", mt: 12 },
620
- title: i ? N(
622
+ title: i ? O(
621
623
  t.day_transactions,
622
- A(i, E.MONTH_DAY)
624
+ E(i, G.MONTH_DAY)
623
625
  ) : t.upcoming_activity
624
626
  }
625
627
  )
626
628
  ] });
627
- }), In = T(
629
+ }), vn = R(
628
630
  ({ onPrimaryCtaClick: t, sx: n }) => {
629
- const { accounts: i } = he(), { recurring: r } = D(), { setFilter: o } = fe(), { isDataLoaded: l, loadRepeatingTransactions: m } = I(), { isCopyLoaded: g, isInitialized: s, setSelectedAccounts: u, selectedAccountGuids: f } = Z();
631
+ const { accounts: i } = he(), { recurring: r } = T(), { setFilter: o } = fe(), { isDataLoaded: l, loadRepeatingTransactions: m } = v(), { isCopyLoaded: g, isInitialized: s, setSelectedAccounts: u, selectedAccountGuids: f } = Z();
630
632
  return h.useEffect(() => {
631
633
  s && u(i);
632
634
  }, [s]), h.useEffect(() => {
@@ -635,7 +637,7 @@ const Q = {
635
637
  accounts: f
636
638
  }), m().finally());
637
639
  }, [f]), !g || !s ? /* @__PURE__ */ e(V, {}) : /* @__PURE__ */ e(
638
- pt,
640
+ gt,
639
641
  {
640
642
  className: "mx-exp-recurring-transactions-miniwidget",
641
643
  onPrimaryCtaClick: t,
@@ -643,11 +645,11 @@ const Q = {
643
645
  subTitle: r.sub_title,
644
646
  sx: n,
645
647
  title: r.mini_title,
646
- children: l ? /* @__PURE__ */ e(Rt, {}) : /* @__PURE__ */ e(V, {})
648
+ children: l ? /* @__PURE__ */ e(Tt, {}) : /* @__PURE__ */ e(V, {})
647
649
  }
648
650
  );
649
651
  }
650
- ), Tt = ({
652
+ ), Dt = ({
651
653
  upcomingRecurrences: t,
652
654
  maxLogos: n = 3
653
655
  }) => /* @__PURE__ */ e(c, { sx: { flexDirection: "row", gap: 4 }, children: t?.slice(0, n).map((i, r) => /* @__PURE__ */ e(
@@ -657,21 +659,21 @@ const Q = {
657
659
  merchantGuid: i.merchantGuid || ""
658
660
  },
659
661
  `${i.categoryGuid}-${i.merchantGuid}-${r}`
660
- )) }), Dt = ({
662
+ )) }), St = ({
661
663
  upcomingRecurrences: t,
662
664
  logoSize: n = 32,
663
665
  maxLogos: i = 3
664
666
  }) => {
665
667
  const r = (o) => o * (n / 2);
666
668
  return /* @__PURE__ */ e(
667
- O,
669
+ k,
668
670
  {
669
671
  sx: {
670
672
  position: "relative",
671
673
  width: 64
672
674
  },
673
675
  children: t.map((o, l) => l < i ? /* @__PURE__ */ e(
674
- O,
676
+ k,
675
677
  {
676
678
  sx: {
677
679
  borderRadius: "4px",
@@ -694,7 +696,7 @@ const Q = {
694
696
  ) : null)
695
697
  }
696
698
  );
697
- }, St = ({
699
+ }, _t = ({
698
700
  amount: t,
699
701
  bgcolor: n,
700
702
  isLargeScreen: i,
@@ -702,7 +704,7 @@ const Q = {
702
704
  label: o
703
705
  }) => /* @__PURE__ */ a(c, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
704
706
  /* @__PURE__ */ e(
705
- O,
707
+ k,
706
708
  {
707
709
  sx: {
708
710
  borderRadius: "2px",
@@ -713,11 +715,11 @@ const Q = {
713
715
  }
714
716
  ),
715
717
  /* @__PURE__ */ a(c, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
716
- !r && /* @__PURE__ */ e(p, { bold: !0, variant: "caption", children: L(t, t === 0 || !i ? "0,0" : "0,0.00") }),
718
+ !r && /* @__PURE__ */ e(p, { bold: !0, variant: "caption", children: A(t, t === 0 || !i ? "0,0" : "0,0.00") }),
717
719
  /* @__PURE__ */ e(p, { variant: "caption", children: o })
718
720
  ] })
719
- ] }), _t = T(() => {
720
- const { recurring: t } = D();
721
+ ] }), wt = R(() => {
722
+ const { recurring: t } = T();
721
723
  return /* @__PURE__ */ a(c, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
722
724
  /* @__PURE__ */ e(qe, { size: 32 }),
723
725
  /* @__PURE__ */ a(c, { children: [
@@ -725,83 +727,83 @@ const Q = {
725
727
  /* @__PURE__ */ e(ce, { color: "text.secondary", variant: "subtitle2", children: t.zero_state_content_description })
726
728
  ] })
727
729
  ] });
728
- }), vn = T(
730
+ }), Mn = R(
729
731
  ({ onCTAClick: t }) => {
730
- const [n, i] = h.useState(!1), { onEvent: r } = J(), o = ge(), { accounts: l } = he(), [m, { width: g }] = gt(), { isCopyLoaded: s, isInitialized: u, selectedAccountGuids: f, setSelectedAccounts: x } = Z(), {
732
+ const [n, i] = h.useState(!1), { onEvent: r } = J(), o = ge(), { accounts: l } = he(), [m, { width: g }] = ht(), { isCopyLoaded: s, isInitialized: u, selectedAccountGuids: f, setSelectedAccounts: x } = Z(), {
731
733
  loadRepeatingTransactions: C,
732
734
  upcomingRecurrences: y,
733
735
  expenseTotal: d,
734
- missedExpenseTotal: b,
735
- paidExpenseTotal: W,
736
+ missedExpenseTotal: D,
737
+ paidExpenseTotal: _,
736
738
  repeatingTransactions: F,
737
739
  setDateRange: te,
738
740
  upcomingExpenseTotal: ne,
739
741
  isDataLoaded: U
740
- } = I(), { setFilter: $ } = fe(), { recurring: _, budgets: ie } = D();
742
+ } = v(), { setFilter: $ } = fe(), { recurring: w, budgets: ie } = T();
741
743
  h.useEffect(() => {
742
744
  x(l);
743
745
  }, [l]), h.useEffect(() => {
744
746
  u && ($({
745
747
  dateRange: { start: me(ue(), 90), end: de() },
746
748
  accounts: f
747
- }), te({ start: k(/* @__PURE__ */ new Date()), end: z(/* @__PURE__ */ new Date()) }), C().finally(), i(!0));
749
+ }), te({ start: W(/* @__PURE__ */ new Date()), end: z(/* @__PURE__ */ new Date()) }), C().finally(), i(!0));
748
750
  }, [u]), h.useEffect(() => {
749
- n && r(w.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
751
+ n && r(I.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
750
752
  state: y.length > 0 ? "default" : "zeroState"
751
753
  });
752
754
  }, [n]);
753
- const v = g <= 288, j = g >= 450, K = h.useMemo(() => {
754
- const G = [
755
- { color: o.palette.success.main, percentage: `${W / d}` }
755
+ const M = g <= 288, j = g >= 450, K = h.useMemo(() => {
756
+ const N = [
757
+ { color: o.palette.success.main, percentage: `${_ / d}` }
756
758
  ];
757
- return b && G.push({
759
+ return D && N.push({
758
760
  color: o.palette.error.main,
759
- percentage: `${b / d}`
760
- }), G;
761
+ percentage: `${D / d}`
762
+ }), N;
761
763
  }, [
762
- W,
764
+ _,
763
765
  d,
764
- b,
766
+ D,
765
767
  o.palette.success.main,
766
768
  o.palette.error.main
767
- ]), P = h.useMemo(() => L(d, d === 0 ? "0,0" : "0,0.00"), [d]), re = () => {
769
+ ]), P = h.useMemo(() => A(d, d === 0 ? "0,0" : "0,0.00"), [d]), re = () => {
768
770
  r(
769
- y.length > 0 ? w.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : w.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
771
+ y.length > 0 ? I.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : I.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
770
772
  ), t();
771
773
  };
772
774
  if (!s || !n || !U) return /* @__PURE__ */ e(V, { height: 100 });
773
- const R = 32, oe = y.length > 0, Pe = () => oe ? v ? /* @__PURE__ */ e(
774
- Dt,
775
+ const b = 32, oe = y.length > 0, Pe = () => oe ? M ? /* @__PURE__ */ e(
776
+ St,
775
777
  {
776
- logoSize: R,
778
+ logoSize: b,
777
779
  maxLogos: 3,
778
780
  upcomingRecurrences: y.slice(0, 3)
779
781
  }
780
- ) : /* @__PURE__ */ e(Tt, { maxLogos: 3, upcomingRecurrences: y.slice(0, 3) }) : /* @__PURE__ */ e(c, { sx: { width: v ? 64 : 104 } }), Be = [
782
+ ) : /* @__PURE__ */ e(Dt, { maxLogos: 3, upcomingRecurrences: y.slice(0, 3) }) : /* @__PURE__ */ e(c, { sx: { width: M ? 64 : 104 } }), Be = [
781
783
  {
782
- amount: W,
784
+ amount: _,
783
785
  bgColor: "success.main",
784
- label: _.paid
786
+ label: w.paid
785
787
  },
786
788
  {
787
- amount: b,
789
+ amount: D,
788
790
  bgColor: "error.main",
789
- label: _.missed
791
+ label: w.missed
790
792
  },
791
793
  {
792
794
  amount: ne,
793
795
  bgColor: "border.light",
794
- label: _.upcoming
796
+ label: w.upcoming
795
797
  }
796
798
  ], De = !F?.length;
797
799
  return /* @__PURE__ */ e(
798
- ht,
800
+ ft,
799
801
  {
800
802
  className: "mx-recurring-transaction-microwidget",
801
- ctaLabel: De ? ie.get_started_cta : _.primary_cta,
803
+ ctaLabel: De ? ie.get_started_cta : w.primary_cta,
802
804
  onCTAClick: re,
803
- title: _.recurring_expenses,
804
- children: De ? /* @__PURE__ */ e(_t, {}) : /* @__PURE__ */ a(X, { children: [
805
+ title: w.recurring_expenses,
806
+ children: De ? /* @__PURE__ */ e(wt, {}) : /* @__PURE__ */ a(X, { children: [
805
807
  /* @__PURE__ */ a(
806
808
  c,
807
809
  {
@@ -815,7 +817,7 @@ const Q = {
815
817
  c,
816
818
  {
817
819
  sx: [
818
- P.length >= 10 && v ? { flexDirection: "column" } : { flexDirection: "row", gap: 2 },
820
+ P.length >= 10 && M ? { flexDirection: "column" } : { flexDirection: "row", gap: 2 },
819
821
  {
820
822
  alignItems: "baseline",
821
823
  overflow: "hidden",
@@ -828,7 +830,7 @@ const Q = {
828
830
  p,
829
831
  {
830
832
  sx: { width: "100%" },
831
- variant: P.length >= 10 && v ? "H3" : "H2",
833
+ variant: P.length >= 10 && M ? "H3" : "H2",
832
834
  children: P
833
835
  }
834
836
  ),
@@ -839,7 +841,7 @@ const Q = {
839
841
  pr: 12
840
842
  },
841
843
  variant: "XSmall",
842
- children: _.expected
844
+ children: w.expected
843
845
  }
844
846
  )
845
847
  ]
@@ -860,14 +862,14 @@ const Q = {
860
862
  gap: 16,
861
863
  mt: 4
862
864
  },
863
- children: Be.map((G, He) => /* @__PURE__ */ e(
864
- St,
865
+ children: Be.map((N, He) => /* @__PURE__ */ e(
866
+ _t,
865
867
  {
866
- amount: G.amount,
867
- bgcolor: G.bgColor,
868
+ amount: N.amount,
869
+ bgcolor: N.bgColor,
868
870
  isLargeScreen: j,
869
- isSmallScreen: v,
870
- label: G.label
871
+ isSmallScreen: M,
872
+ label: N.label
871
873
  },
872
874
  `recurrence-legend-${He}`
873
875
  ))
@@ -878,9 +880,9 @@ const Q = {
878
880
  }
879
881
  );
880
882
  }
881
- ), Mn = T(
883
+ ), Ln = R(
882
884
  ({ isOpen: t, onClose: n, selectedTab: i }) => {
883
- const { cashflow: r } = D();
885
+ const { cashflow: r } = T();
884
886
  return /* @__PURE__ */ e(
885
887
  xe,
886
888
  {
@@ -894,14 +896,14 @@ const Q = {
894
896
  }
895
897
  );
896
898
  export {
897
- kn as AddRecurringTransactionDetails,
898
- En as ManageExpenses,
899
- Wn as ManageIncome,
899
+ Wn as AddRecurringTransactionDetails,
900
+ Gn as ManageExpenses,
901
+ $n as ManageIncome,
900
902
  Ee as RecurringSettings,
901
- Mn as RecurringSettingsDrawer,
902
- vn as RecurringTransactionsMicroWidget,
903
- In as RecurringTransactionsMiniWidget,
904
- Nn as RecurringTransactionsStore,
905
- wn as RecurringTransactionsWidget,
906
- $n as SelectTransaction
903
+ Ln as RecurringSettingsDrawer,
904
+ Mn as RecurringTransactionsMicroWidget,
905
+ vn as RecurringTransactionsMiniWidget,
906
+ On as RecurringTransactionsStore,
907
+ In as RecurringTransactionsWidget,
908
+ Pn as SelectTransaction
907
909
  };