@mx-cartographer/experiences 7.0.58-alpha.mm1 → 7.0.59-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,6 +1,6 @@
1
- import { jsx as e, jsxs as o, Fragment as X } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as a, Fragment as Z } from "react/jsx-runtime";
2
2
  import h from "react";
3
- import { observer as D } from "mobx-react-lite";
3
+ import { observer as T } 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
6
  import { startOfMonth as k } from "date-fns/startOfMonth";
@@ -8,18 +8,18 @@ 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 He } from "../RecurringSettings-qv7DNYac.mjs";
12
- import { M as An } from "../RecurringSettings-qv7DNYac.mjs";
11
+ import { R as Ee } from "../RecurringSettings-qv7DNYac.mjs";
12
+ import { M as En } from "../RecurringSettings-qv7DNYac.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";
16
16
  import se from "@mui/material/Unstable_Grid2";
17
- import De from "@mui/material/IconButton";
18
- import Se from "@mui/material/Tab";
17
+ import Se from "@mui/material/IconButton";
18
+ import _e from "@mui/material/Tab";
19
19
  import je from "@mui/material/Tabs";
20
- import { Schedule as Ke, MonetizationOn as Ye, Cancel as Ae, CheckCircle as Ee, ChevronLeft as Ve, ChevronRight as Xe, CurrencyExchange as Ze } from "@mxenabled/mx-icons";
20
+ import { Schedule as Ke, MonetizationOn as Ye, Cancel as Ge, CheckCircle as Ne, ChevronLeft as Ve, ChevronRight as Xe, CurrencyExchange as Ze } from "@mxenabled/mx-icons";
21
21
  import { Text as p, MerchantLogo as pe, InstitutionLogo as qe, H3 as Je, P as ce } from "@mxenabled/mxui";
22
- import { getWeeksInMonth as Ie } from "date-fns/getWeeksInMonth";
22
+ import { getWeeksInMonth as we } from "date-fns/getWeeksInMonth";
23
23
  import ge from "@mui/material/styles/useTheme";
24
24
  import { AdapterDateFns as Qe } from "@mui/x-date-pickers/AdapterDateFnsV3";
25
25
  import { DateCalendar as et } from "@mui/x-date-pickers/DateCalendar";
@@ -27,30 +27,30 @@ import { LocalizationProvider as tt } from "@mui/x-date-pickers/LocalizationProv
27
27
  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
- import { I as Z } from "../IconBacking-B9oC6uL2.mjs";
31
- import { u as S, b as q, j as w, g as J, p as Ge, d as he, h as fe } from "../hooks-CE2TKk4a.mjs";
32
- import { c as M, a as T, g as _e, f as ot } from "../RecurringTransactions-DTUx9VN1.mjs";
30
+ import { I as q } from "../IconBacking-B9oC6uL2.mjs";
31
+ import { u as D, b as U, j as I, g as J, p as Oe, d as he, h as fe } from "../hooks-CE2TKk4a.mjs";
32
+ import { c as M, a as S, g as Ie, f as ot } from "../RecurringTransactions-DTUx9VN1.mjs";
33
33
  import { T as B } from "../RecurringTransactionsStore-Djo9IeDd.mjs";
34
- import { R as Gn } from "../RecurringTransactionsStore-Djo9IeDd.mjs";
35
- import { A as _, W as at } from "../WidgetContainer-B8MRJ5Y1.mjs";
34
+ import { R as Nn } from "../RecurringTransactionsStore-Djo9IeDd.mjs";
35
+ import { A as w, W as at } from "../WidgetContainer-B8MRJ5Y1.mjs";
36
36
  import st from "@mui/material/Button";
37
37
  import le from "@mui/material/Divider";
38
- import we from "@mui/material/List";
39
- import Ne from "@mui/material/ListItem";
38
+ import ve from "@mui/material/List";
39
+ import ke from "@mui/material/ListItem";
40
40
  import ct from "@mui/material/ListSubheader";
41
41
  import lt from "@mui/material/ListItemAvatar";
42
42
  import dt from "@mui/material/ListItemButton";
43
43
  import ut from "@mui/material/ListItemText";
44
44
  import { b as mt } from "../ManageIncome-BX7dzGF8.mjs";
45
- import { c as On, M as kn, S as Wn } from "../ManageIncome-BX7dzGF8.mjs";
45
+ import { c as kn, M as Wn, S as $n } from "../ManageIncome-BX7dzGF8.mjs";
46
46
  import { f as L } from "../NumberFormatting-CtWHhyBX.mjs";
47
- import { D as Oe } from "../Drawer-kEE73B87.mjs";
47
+ import { D as xe } from "../Drawer-kEE73B87.mjs";
48
48
  import { b as N } from "../Localization-2MODESHW.mjs";
49
49
  import { f as A, D as E } from "../Dialog-CWW597AF.mjs";
50
50
  import O from "@mui/material/Box";
51
- import { S as ke } from "../StatusBar-BK_uYHAB.mjs";
52
- import { u as xe } from "../useScreenSize-B6JyS_Lj.mjs";
53
- import { L as V } from "../Loader-DUaFpDGv.mjs";
51
+ import { S as We } from "../StatusBar-BK_uYHAB.mjs";
52
+ import { u as ye } from "../useScreenSize-B6JyS_Lj.mjs";
53
+ import { L as F } from "../Loader-DUaFpDGv.mjs";
54
54
  import { M as pt } from "../MiniWidgetContainer-DTQdRK-3.mjs";
55
55
  import { u as gt } from "../useDimensions-27p2evRx.mjs";
56
56
  import { M as ht } from "../MicroWidgetContainer-C4QQHfD7.mjs";
@@ -58,34 +58,34 @@ const Q = {
58
58
  gridRow: 1,
59
59
  gridColumn: 1,
60
60
  zIndex: 2
61
- }, ee = (t) => t ? { margin: "0 0 -6px -4px" } : void 0, ye = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(Z, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Ke, { color: "primary", filled: !0, sx: { fontSize: n, ...Q } }) }), Ce = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(Z, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(
61
+ }, ee = (t) => t ? { margin: "0 0 -6px -4px" } : void 0, Ce = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(q, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Ke, { color: "primary", filled: !0, sx: { fontSize: n, ...Q } }) }), be = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(q, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(
62
62
  Ye,
63
63
  {
64
64
  filled: !0,
65
65
  sx: { color: "categories.income", fontSize: n, ...Q }
66
66
  }
67
- ) }), be = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(Z, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Ae, { color: "error", filled: !0, sx: { fontSize: n, ...Q } }) }), Re = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(Z, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Ee, { color: "success", filled: !0, sx: { fontSize: n, ...Q } }) }), ft = D(
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(
68
68
  ({ day: t, outsideCurrentMonth: n, ...i }) => {
69
- const { recurring: a } = S(), { selectedAccountGuids: r } = q(), { recurrences: l, setSelectedDay: m } = w(), s = h.useMemo(
70
- () => l.filter((d) => r.includes(d.accountGuid)),
71
- [r, l]
69
+ const { recurring: r } = D(), { selectedAccountGuids: o } = U(), { recurrences: l, setSelectedDay: m } = I(), s = h.useMemo(
70
+ () => l.filter((d) => o.includes(d.accountGuid)),
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 === T.Upcoming
75
+ (d) => d.type !== M.Income && d.status === S.Upcoming
76
76
  ), f = s.some(
77
- (d) => d.type !== M.Income && d.status === T.Missed
77
+ (d) => d.type !== M.Income && d.status === S.Missed
78
78
  ), x = s.some(
79
- (d) => d.type !== M.Income && d.status === T.Paid
79
+ (d) => d.type !== M.Income && d.status === S.Paid
80
80
  ), C = s.some((d) => d.type === M.Income), y = (u ? 1 : 0) + (f ? 1 : 0) + (x ? 1 : 0) + (C ? 1 : 0);
81
81
  return /* @__PURE__ */ e(
82
82
  it,
83
83
  {
84
- badgeContent: s.length > 0 && /* @__PURE__ */ o(X, { children: [
85
- f && /* @__PURE__ */ e(be, { isOffset: !0 }),
86
- x && /* @__PURE__ */ e(Re, { isOffset: !0 }),
87
- u && /* @__PURE__ */ e(ye, { isOffset: !0 }),
88
- C && /* @__PURE__ */ e(Ce, { isOffset: !0 })
84
+ badgeContent: s.length > 0 && /* @__PURE__ */ a(Z, { children: [
85
+ f && /* @__PURE__ */ e(Re, { isOffset: !0 }),
86
+ x && /* @__PURE__ */ e(Te, { isOffset: !0 }),
87
+ u && /* @__PURE__ */ e(Ce, { isOffset: !0 }),
88
+ C && /* @__PURE__ */ e(be, { isOffset: !0 })
89
89
  ] }),
90
90
  overlap: "circular",
91
91
  sx: {
@@ -99,10 +99,10 @@ const Q = {
99
99
  rt,
100
100
  {
101
101
  "aria-label": `
102
- ${x && a.paid},
103
- ${f && a.missed},
104
- ${u && a.upcoming},
105
- ${C && a.income}`,
102
+ ${x && r.paid},
103
+ ${f && r.missed},
104
+ ${u && r.upcoming},
105
+ ${C && r.income}`,
106
106
  day: t,
107
107
  onClick: () => m(t),
108
108
  outsideCurrentMonth: n,
@@ -119,12 +119,12 @@ const Q = {
119
119
  }
120
120
  );
121
121
  }
122
- ), Y = ({ icon: t, label: n }) => /* @__PURE__ */ o(c, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
122
+ ), X = ({ 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 = D(() => {
126
- const { recurring: t } = S();
127
- return /* @__PURE__ */ o(
125
+ ] }), xt = T(() => {
126
+ const { recurring: t } = D();
127
+ return /* @__PURE__ */ a(
128
128
  c,
129
129
  {
130
130
  alignItems: "center",
@@ -134,21 +134,21 @@ const Q = {
134
134
  justifyContent: "center",
135
135
  mt: 12,
136
136
  children: [
137
- /* @__PURE__ */ e(Y, { icon: ye, label: t.expense }),
138
- /* @__PURE__ */ e(Y, { icon: Ce, label: t.income }),
139
- /* @__PURE__ */ e(Y, { icon: be, label: t.missed }),
140
- /* @__PURE__ */ e(Y, { icon: Re, label: t.paid })
137
+ /* @__PURE__ */ e(X, { icon: Ce, label: t.expense }),
138
+ /* @__PURE__ */ e(X, { icon: be, label: t.income }),
139
+ /* @__PURE__ */ e(X, { icon: Re, label: t.missed }),
140
+ /* @__PURE__ */ e(X, { icon: Te, label: t.paid })
141
141
  ]
142
142
  }
143
143
  );
144
- }), ve = 58, We = D(() => {
145
- const t = ge(), { onEvent: n } = J(), { selectedDay: i, setDateRange: a } = w(), [r, l] = h.useState(
146
- Ie(/* @__PURE__ */ new Date()) * B + ve
144
+ }), Me = 58, $e = T(() => {
145
+ const t = ge(), { onEvent: n } = J(), { selectedDay: i, setDateRange: r } = I(), [o, l] = h.useState(
146
+ we(/* @__PURE__ */ new Date()) * B + Me
147
147
  ), m = (s) => {
148
- l(Ie(s) * B + ve), a({
148
+ l(we(s) * B + Me), r({
149
149
  start: k(s),
150
150
  end: z(s)
151
- }), n(_.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
151
+ }), n(w.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
152
152
  }, g = /* @__PURE__ */ e(
153
153
  et,
154
154
  {
@@ -182,10 +182,10 @@ const Q = {
182
182
  fontWeight: 600
183
183
  },
184
184
  "& .MuiDayCalendar-slideTransition": {
185
- minHeight: r
185
+ minHeight: o
186
186
  },
187
187
  "&.MuiDateCalendar-root": {
188
- minHeight: r + B
188
+ minHeight: o + B
189
189
  },
190
190
  "& .MuiButtonBase-root, .MuiDayCalendar-weekDayLabel": {
191
191
  height: B,
@@ -201,25 +201,25 @@ const Q = {
201
201
  views: ["day"]
202
202
  }
203
203
  );
204
- return /* @__PURE__ */ e(c, { justifyContent: "center", children: /* @__PURE__ */ o(tt, { dateAdapter: Qe, children: [
204
+ return /* @__PURE__ */ e(c, { justifyContent: "center", children: /* @__PURE__ */ a(tt, { dateAdapter: Qe, children: [
205
205
  i && g,
206
206
  !i && g,
207
207
  /* @__PURE__ */ e(xt, {})
208
208
  ] }) });
209
209
  }), yt = (t) => {
210
210
  if (t.type === M.Income)
211
- return /* @__PURE__ */ e(Ce, {});
211
+ return /* @__PURE__ */ e(be, {});
212
212
  switch (t.status) {
213
- case T.Missed:
214
- return /* @__PURE__ */ e(be, {});
215
- case T.Paid:
213
+ case S.Missed:
216
214
  return /* @__PURE__ */ e(Re, {});
215
+ case S.Paid:
216
+ return /* @__PURE__ */ e(Te, {});
217
217
  default:
218
- return /* @__PURE__ */ e(ye, {});
218
+ return /* @__PURE__ */ e(Ce, {});
219
219
  }
220
220
  }, Ct = (t, n) => {
221
221
  switch (t.status) {
222
- case T.Paid:
222
+ case S.Paid:
223
223
  return t.expectedDate ? N(
224
224
  n.paid_on,
225
225
  A(
@@ -227,12 +227,12 @@ const Q = {
227
227
  E.MONTH_DAY
228
228
  )
229
229
  ) : n.paid;
230
- case T.Missed:
230
+ case S.Missed:
231
231
  return N(
232
232
  n.missed_on,
233
233
  A(t.expectedDate, E.MONTH_DAY)
234
234
  );
235
- case T.Upcoming:
235
+ case S.Upcoming:
236
236
  return N(
237
237
  n.upcoming_on,
238
238
  A(t.expectedDate, E.MONTH_DAY)
@@ -240,21 +240,21 @@ const Q = {
240
240
  default:
241
241
  return n.unknown;
242
242
  }
243
- }, Me = ({
243
+ }, Le = ({
244
244
  recurrence: t,
245
245
  isMini: n = !1,
246
246
  onRecurrenceClick: i = () => {
247
247
  },
248
- showOrdinal: a = !1
248
+ showOrdinal: r = !1
249
249
  }) => {
250
- const { recurring: r } = S(), { repeatingTransactions: l } = w(), [m, g] = h.useState(!1), s = h.useMemo(
250
+ const { recurring: o } = D(), { repeatingTransactions: l } = I(), [m, g] = h.useState(!1), s = h.useMemo(
251
251
  () => l.find((b) => b.guid === t.repeatingTransactionGuid),
252
252
  [t, l]
253
- ), u = t.type === M.Income, f = t.status === T.Paid, x = t.status === T.Missed, C = t.status === T.Upcoming;
254
- let y = r.paid?.toLowerCase();
255
- return x ? y = r.missed?.toLowerCase() : C && (y = a ? _e(r, s || {}, !0) : _e(r, s || {}, !1)), //TODO: implement common/components/ListItemRow.tsx
256
- /* @__PURE__ */ o(Ne, { disableGutters: !0, disablePadding: !0, children: [
257
- /* @__PURE__ */ o(dt, { onClick: () => {
253
+ ), u = t.type === M.Income, f = t.status === S.Paid, x = t.status === S.Missed, C = t.status === S.Upcoming;
254
+ let y = o.paid?.toLowerCase();
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
+ /* @__PURE__ */ a(ke, { disableGutters: !0, disablePadding: !0, children: [
257
+ /* @__PURE__ */ a(dt, { onClick: () => {
258
258
  g(!0), i(t);
259
259
  }, children: [
260
260
  /* @__PURE__ */ e(lt, { children: /* @__PURE__ */ e(
@@ -264,19 +264,19 @@ const Q = {
264
264
  merchantGuid: t.merchantGuid
265
265
  }
266
266
  ) }),
267
- /* @__PURE__ */ e(ut, { children: /* @__PURE__ */ o(
267
+ /* @__PURE__ */ e(ut, { children: /* @__PURE__ */ a(
268
268
  c,
269
269
  {
270
270
  direction: "row",
271
271
  gap: 4,
272
272
  sx: { justifyContent: "space-between", textOverflow: "ellipsis", textWrap: "nowrap" },
273
273
  children: [
274
- /* @__PURE__ */ o(c, { direction: "column", width: "50%", children: [
274
+ /* @__PURE__ */ a(c, { direction: "column", width: "50%", children: [
275
275
  /* @__PURE__ */ e(p, { bold: !0, variant: "body1", children: t.name }),
276
- /* @__PURE__ */ e(c, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */ o(c, { direction: "row", gap: 4, children: [
276
+ /* @__PURE__ */ e(c, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */ a(c, { direction: "row", gap: 4, children: [
277
277
  yt(t),
278
- /* @__PURE__ */ e(p, { variant: "caption", children: Ct(t, r) })
279
- ] }) : /* @__PURE__ */ o(X, { children: [
278
+ /* @__PURE__ */ e(p, { variant: "caption", children: Ct(t, o) })
279
+ ] }) : /* @__PURE__ */ a(Z, { children: [
280
280
  t.institutionGuid && /* @__PURE__ */ e(
281
281
  qe,
282
282
  {
@@ -288,12 +288,12 @@ const Q = {
288
288
  /* @__PURE__ */ e(p, { sx: { maxWidth: 250 }, variant: "caption", children: t.institutionName })
289
289
  ] }) })
290
290
  ] }),
291
- /* @__PURE__ */ o(c, { alignItems: "flex-end", width: "100%", children: [
292
- /* @__PURE__ */ o(p, { bold: !0, color: u ? "success.main" : "text.primary", variant: "body1", children: [
291
+ /* @__PURE__ */ a(c, { alignItems: "flex-end", width: "100%", children: [
292
+ /* @__PURE__ */ a(p, { bold: !0, color: u ? "success.main" : "text.primary", variant: "body1", children: [
293
293
  u ? "+" : "",
294
294
  L(t.amount, "0,0.00")
295
295
  ] }),
296
- !n && /* @__PURE__ */ o(
296
+ !n && /* @__PURE__ */ a(
297
297
  c,
298
298
  {
299
299
  direction: "row",
@@ -305,8 +305,8 @@ const Q = {
305
305
  width: "100%"
306
306
  },
307
307
  children: [
308
- f && /* @__PURE__ */ e(Ee, { color: "success", filled: !0, size: 12 }),
309
- x && /* @__PURE__ */ e(Ae, { color: "error", filled: !0, size: 12 }),
308
+ f && /* @__PURE__ */ e(Ne, { color: "success", filled: !0, size: 12 }),
309
+ x && /* @__PURE__ */ e(Ge, { color: "error", filled: !0, size: 12 }),
310
310
  /* @__PURE__ */ e(p, { bold: !0, color: "text.secondary", variant: "caption", children: y })
311
311
  ]
312
312
  }
@@ -317,12 +317,12 @@ const Q = {
317
317
  ) })
318
318
  ] }),
319
319
  /* @__PURE__ */ e(
320
- Oe,
320
+ xe,
321
321
  {
322
- ariaLabelClose: r.close_drawer_aria,
322
+ ariaLabelClose: o.close_drawer_aria,
323
323
  isOpen: m,
324
324
  onClose: () => g(!1),
325
- title: t.type === M.Income ? r.income_details : r.expense_details,
325
+ title: t.type === M.Income ? o.income_details : o.expense_details,
326
326
  children: s && /* @__PURE__ */ e(
327
327
  mt,
328
328
  {
@@ -333,18 +333,18 @@ const Q = {
333
333
  }
334
334
  )
335
335
  ] });
336
- }, H = D(
336
+ }, H = T(
337
337
  ({
338
338
  recurrences: t,
339
339
  isMini: n = !1,
340
340
  onResetClick: i,
341
- onRecurrenceClick: a,
342
- sx: r = {},
341
+ onRecurrenceClick: r,
342
+ sx: o = {},
343
343
  title: l
344
344
  }) => {
345
- const { recurring: m } = S(), g = h.useMemo(() => ot(t), [t]);
346
- return /* @__PURE__ */ o(c, { sx: { gap: 8, mt: 4, ...r }, children: [
347
- l && /* @__PURE__ */ o(
345
+ const { recurring: m } = D(), g = h.useMemo(() => ot(t), [t]);
346
+ return /* @__PURE__ */ a(c, { sx: { gap: 8, mt: 4, ...o }, children: [
347
+ l && /* @__PURE__ */ a(
348
348
  c,
349
349
  {
350
350
  sx: { alignItems: "top", direction: "row", justifyContent: "space-between", px: 24 },
@@ -354,27 +354,27 @@ const Q = {
354
354
  ]
355
355
  }
356
356
  ),
357
- t.length === 0 ? /* @__PURE__ */ e(p, { fontStyle: "italic", sx: { py: 24, textAlign: "center" }, children: m.no_activities }) : /* @__PURE__ */ e(we, { children: n ? t.map((s, u) => /* @__PURE__ */ o(h.Fragment, { children: [
357
+ t.length === 0 ? /* @__PURE__ */ e(p, { fontStyle: "italic", sx: { py: 24, textAlign: "center" }, children: m.no_activities }) : /* @__PURE__ */ e(ve, { children: n ? t.map((s, u) => /* @__PURE__ */ a(h.Fragment, { children: [
358
358
  /* @__PURE__ */ e(
359
- Me,
359
+ Le,
360
360
  {
361
361
  isMini: n,
362
- onRecurrenceClick: a,
362
+ onRecurrenceClick: r,
363
363
  recurrence: s
364
364
  }
365
365
  ),
366
366
  /* @__PURE__ */ e(le, { sx: { mx: 24 } })
367
- ] }, `recurrence-${u}`)) : g.map((s, u) => /* @__PURE__ */ o(h.Fragment, { children: [
368
- /* @__PURE__ */ e(Ne, { children: /* @__PURE__ */ e(
369
- we,
367
+ ] }, `recurrence-${u}`)) : g.map((s, u) => /* @__PURE__ */ a(h.Fragment, { children: [
368
+ /* @__PURE__ */ e(ke, { children: /* @__PURE__ */ e(
369
+ ve,
370
370
  {
371
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) }) }),
372
372
  sx: { width: "100%" },
373
373
  children: s.recurrences.map((f, x) => /* @__PURE__ */ e(h.Fragment, { children: /* @__PURE__ */ e(
374
- Me,
374
+ Le,
375
375
  {
376
376
  isMini: n,
377
- onRecurrenceClick: a,
377
+ onRecurrenceClick: r,
378
378
  recurrence: f
379
379
  }
380
380
  ) }, `day-recurrence-${x}`))
@@ -384,23 +384,23 @@ const Q = {
384
384
  ] }, `recurrence-${u}`)) })
385
385
  ] });
386
386
  }
387
- ), Le = D(
388
- ({ expected: t, isExpense: n = !0, missed: i, paid: a, title: r, total: l, upcoming: m }) => {
389
- const g = ge(), { isSmallMobile: s } = xe(), { recurring: u } = S(), f = h.useMemo(() => {
390
- const x = [{ color: g.palette.success.main, percentage: `${a / t}` }];
387
+ ), Ae = T(
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(() => {
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
- }, [a, t, i]);
393
- return /* @__PURE__ */ o(c, { children: [
394
- /* @__PURE__ */ o(c, { sx: { flexDirection: "row", justifyContent: "space-between", pb: 12 }, children: [
395
- /* @__PURE__ */ e(p, { bold: !0, variant: "body1", children: `${r} (${l})` }),
392
+ }, [r, t, i]);
393
+ return /* @__PURE__ */ a(c, { children: [
394
+ /* @__PURE__ */ a(c, { sx: { flexDirection: "row", justifyContent: "space-between", pb: 12 }, children: [
395
+ /* @__PURE__ */ e(p, { bold: !0, variant: "body1", children: `${o} (${l})` }),
396
396
  /* @__PURE__ */ e(p, { bold: !0, color: n ? "text.primary" : "success.main", variant: "body1", children: `${n ? "-" : "+"}${L(t, "0,0.00")}` })
397
397
  ] }),
398
- /* @__PURE__ */ e(ke, { data: f, height: 12 }),
399
- /* @__PURE__ */ o(c, { sx: { alignItems: "center", flexDirection: "row", gap: 2, my: 8 }, children: [
398
+ /* @__PURE__ */ e(We, { data: f, height: 12 }),
399
+ /* @__PURE__ */ a(c, { sx: { alignItems: "center", flexDirection: "row", gap: 2, my: 8 }, children: [
400
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(a, "0,0.00") }),
401
+ !s && /* @__PURE__ */ e(p, { bold: !0, variant: "body2", children: L(r, "0,0.00") }),
402
402
  /* @__PURE__ */ e(p, { variant: "caption", children: u.paid?.toLowerCase() }),
403
- i !== void 0 && /* @__PURE__ */ o(X, { children: [
403
+ i !== void 0 && /* @__PURE__ */ a(Z, { children: [
404
404
  /* @__PURE__ */ e(O, { sx: { bgcolor: "error.main", height: 8, ml: 16, mr: 8, width: 8 } }),
405
405
  !s && /* @__PURE__ */ e(p, { bold: !0, variant: "body2", children: L(i, "0,0.00") }),
406
406
  /* @__PURE__ */ e(p, { variant: "caption", children: u.missed?.toLowerCase() })
@@ -411,8 +411,8 @@ const Q = {
411
411
  ] })
412
412
  ] });
413
413
  }
414
- ), bt = D(() => {
415
- const { recurring: t } = S(), { availableWidth: n } = Ge(), { isDesktop: i, isSmallMobile: a, isMobile: r } = xe(n), { onEvent: l } = J(), {
414
+ ), bt = T(() => {
415
+ const { recurring: t } = D(), { 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,
@@ -424,34 +424,34 @@ const Q = {
424
424
  paidIncomeTotal: d,
425
425
  selectedDay: b,
426
426
  selectedDayRecurrences: W,
427
- setDateRange: F,
427
+ setDateRange: j,
428
428
  upcomingExpenseTotal: te,
429
429
  upcomingIncomeTotal: ne,
430
- upcomingRecurrences: U
431
- } = w(), [$, I] = h.useState(0), ie = Ue(s.start, /* @__PURE__ */ new Date()), v = (R, oe) => {
432
- I(oe);
433
- }, j = (R) => {
434
- l(_.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
430
+ upcomingRecurrences: K
431
+ } = I(), [$, _] = h.useState(0), ie = Ue(s.start, /* @__PURE__ */ new Date()), v = (R, oe) => {
432
+ _(oe);
433
+ }, Y = (R) => {
434
+ l(w.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
435
435
  transaction_guid: R.transaction?.guid
436
436
  });
437
- }, K = (R) => {
438
- l(_.RECURRING_TRANSACTIONS_CLICK_PAID, {
437
+ }, V = (R) => {
438
+ l(w.RECURRING_TRANSACTIONS_CLICK_PAID, {
439
439
  transaction_guid: R.transaction?.guid
440
440
  });
441
441
  }, P = () => {
442
442
  const R = ze(s.start, 1);
443
- F({
443
+ j({
444
444
  start: k(R),
445
445
  end: z(R)
446
446
  });
447
447
  }, re = () => {
448
448
  const R = Fe(s.start, 1);
449
- F({
449
+ j({
450
450
  start: k(R),
451
451
  end: z(R)
452
452
  });
453
453
  };
454
- return /* @__PURE__ */ o(
454
+ return /* @__PURE__ */ a(
455
455
  se,
456
456
  {
457
457
  container: !0,
@@ -459,16 +459,16 @@ const Q = {
459
459
  pt: 16
460
460
  },
461
461
  children: [
462
- /* @__PURE__ */ o(se, { md: !0, sm: 12, width: "100%", children: [
463
- /* @__PURE__ */ o(c, { sx: { gap: 16, px: i ? 48 : 24 }, children: [
464
- /* @__PURE__ */ o(c, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
462
+ /* @__PURE__ */ a(se, { md: !0, sm: 12, width: "100%", children: [
463
+ /* @__PURE__ */ a(c, { sx: { gap: 16, px: i ? 48 : 24 }, children: [
464
+ /* @__PURE__ */ a(c, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
465
465
  /* @__PURE__ */ e(Je, { children: N(
466
466
  t.header_title,
467
467
  A(s.start, E.MONTH_LONG)
468
468
  ) }),
469
- !i && /* @__PURE__ */ o(c, { direction: "row", gap: 4, children: [
469
+ !i && /* @__PURE__ */ a(c, { direction: "row", gap: 4, children: [
470
470
  /* @__PURE__ */ e(
471
- De,
471
+ Se,
472
472
  {
473
473
  color: "primary",
474
474
  disabled: ie,
@@ -476,11 +476,11 @@ const Q = {
476
476
  children: /* @__PURE__ */ e(Ve, {})
477
477
  }
478
478
  ),
479
- /* @__PURE__ */ e(De, { color: "primary", onClick: P, children: /* @__PURE__ */ e(Xe, {}) })
479
+ /* @__PURE__ */ e(Se, { color: "primary", onClick: P, children: /* @__PURE__ */ e(Xe, {}) })
480
480
  ] })
481
481
  ] }),
482
482
  /* @__PURE__ */ e(
483
- Le,
483
+ Ae,
484
484
  {
485
485
  expected: u,
486
486
  missed: x,
@@ -491,7 +491,7 @@ const Q = {
491
491
  }
492
492
  ),
493
493
  /* @__PURE__ */ e(
494
- Le,
494
+ Ae,
495
495
  {
496
496
  expected: f,
497
497
  isExpense: !1,
@@ -504,49 +504,49 @@ const Q = {
504
504
  i && /* @__PURE__ */ e(
505
505
  H,
506
506
  {
507
- onRecurrenceClick: j,
508
- recurrences: U,
507
+ onRecurrenceClick: Y,
508
+ recurrences: K,
509
509
  title: t.upcoming_activity
510
510
  }
511
511
  )
512
512
  ] }),
513
- !i && /* @__PURE__ */ o(c, { sx: { px: r ? 0 : 24 }, children: [
514
- /* @__PURE__ */ o(je, { onChange: v, value: $, variant: "fullWidth", children: [
513
+ !i && /* @__PURE__ */ a(c, { sx: { px: o ? 0 : 24 }, children: [
514
+ /* @__PURE__ */ a(je, { onChange: v, value: $, variant: "fullWidth", children: [
515
515
  /* @__PURE__ */ e(
516
- Se,
516
+ _e,
517
517
  {
518
- label: /* @__PURE__ */ e(p, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: a ? t.upcoming : t.upcoming_activity })
518
+ label: /* @__PURE__ */ e(p, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: r ? t.upcoming : t.upcoming_activity })
519
519
  }
520
520
  ),
521
521
  /* @__PURE__ */ e(
522
- Se,
522
+ _e,
523
523
  {
524
- label: /* @__PURE__ */ e(p, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: a ? t.past : t.past_transactions })
524
+ label: /* @__PURE__ */ e(p, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: r ? t.past : t.past_transactions })
525
525
  }
526
526
  )
527
527
  ] }),
528
528
  $ === 0 && /* @__PURE__ */ e(
529
529
  H,
530
530
  {
531
- onRecurrenceClick: j,
532
- recurrences: U
531
+ onRecurrenceClick: Y,
532
+ recurrences: K
533
533
  }
534
534
  ),
535
535
  $ === 1 && /* @__PURE__ */ e(
536
536
  H,
537
537
  {
538
- onRecurrenceClick: K,
538
+ onRecurrenceClick: V,
539
539
  recurrences: C
540
540
  }
541
541
  )
542
542
  ] })
543
543
  ] }),
544
- i && /* @__PURE__ */ e(se, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ o(c, { gap: 24, children: [
545
- /* @__PURE__ */ e(We, {}),
544
+ i && /* @__PURE__ */ e(se, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ a(c, { gap: 24, children: [
545
+ /* @__PURE__ */ e($e, {}),
546
546
  /* @__PURE__ */ e(
547
547
  H,
548
548
  {
549
- onRecurrenceClick: K,
549
+ onRecurrenceClick: V,
550
550
  recurrences: W || C,
551
551
  title: b ? N(
552
552
  t.day_transactions,
@@ -558,8 +558,8 @@ const Q = {
558
558
  ]
559
559
  }
560
560
  );
561
- }), _n = D(({ onBackClick: t, sx: n = {} }) => {
562
- const { accounts: i } = he(), { recurring: a } = S(), { isCopyLoaded: r, isInitialized: l, selectedAccountGuids: m, setSelectedAccounts: g } = q(), { isDataLoaded: s, loadRepeatingTransactions: u, setDateRange: f } = w(), { setFilter: x } = fe(), { onEvent: C } = J(), { isMobile: y } = xe(), [d, b] = h.useState(!1);
561
+ }), wn = T(({ onBackClick: t, sx: n = {} }) => {
562
+ const { accounts: i } = he(), { recurring: r } = D(), { isCopyLoaded: o, isInitialized: l, selectedAccountGuids: m, setSelectedAccounts: g } = U(), { isDataLoaded: s, loadRepeatingTransactions: u, setDateRange: f } = I(), { setFilter: x } = fe(), { onEvent: C } = J(), { isMobile: y } = ye(), [d, b] = h.useState(!1);
563
563
  return h.useEffect(() => {
564
564
  g(i);
565
565
  }, [i]), h.useEffect(() => {
@@ -567,55 +567,55 @@ const Q = {
567
567
  dateRange: { start: me(ue(), 90), end: de() },
568
568
  accounts: m
569
569
  }), f({ start: k(/* @__PURE__ */ new Date()), end: z(/* @__PURE__ */ new Date()) }), u().finally());
570
- }, [l]), r ? /* @__PURE__ */ o(
570
+ }, [l]), o ? /* @__PURE__ */ a(
571
571
  at,
572
572
  {
573
573
  accountOptions: i,
574
574
  actions: [
575
575
  {
576
- label: a.action_title,
576
+ label: r.action_title,
577
577
  iconName: "credit_card_gear",
578
578
  onClick: () => {
579
- b(!0), C(_.RECURRING_TRANSACTIONS_CLICK_SETTINGS);
579
+ b(!0), C(w.RECURRING_TRANSACTIONS_CLICK_SETTINGS);
580
580
  }
581
581
  }
582
582
  ],
583
583
  hasDivider: y,
584
- onAccountsFilterClick: () => C(_.RECURRING_TRANSACTIONS_CLICK_FILTER),
584
+ onAccountsFilterClick: () => C(w.RECURRING_TRANSACTIONS_CLICK_FILTER),
585
585
  onBackClick: t,
586
586
  sx: n,
587
- title: a.title,
587
+ title: r.title,
588
588
  children: [
589
- l && s ? /* @__PURE__ */ e(bt, {}) : /* @__PURE__ */ o(c, { direction: "column", p: 48, spacing: 24, children: [
589
+ l && s ? /* @__PURE__ */ e(bt, {}) : /* @__PURE__ */ a(c, { direction: "column", p: 48, spacing: 24, children: [
590
590
  /* @__PURE__ */ e(ae, { height: 100, variant: "rounded", width: "100%" }),
591
591
  /* @__PURE__ */ e(ae, { height: 100, variant: "rounded", width: "100%" }),
592
592
  /* @__PURE__ */ e(ae, { height: 600, variant: "rounded", width: "100%" })
593
593
  ] }),
594
594
  /* @__PURE__ */ e(
595
- Oe,
595
+ xe,
596
596
  {
597
- ariaLabelClose: a.close_drawer_aria,
597
+ ariaLabelClose: r.close_drawer_aria,
598
598
  isOpen: d,
599
599
  onClose: () => b(!1),
600
600
  shouldShowHeaderBorders: !1,
601
- title: a.action_title,
602
- children: /* @__PURE__ */ e(He, {})
601
+ title: r.action_title,
602
+ children: /* @__PURE__ */ e(Ee, {})
603
603
  }
604
604
  )
605
605
  ]
606
606
  }
607
- ) : /* @__PURE__ */ e(V, {});
608
- }), Rt = D(() => {
609
- const { recurring: t } = S(), { availableWidth: n } = Ge(), { selectedDay: i, selectedDayRecurrences: a, setSelectedDay: r, upcomingRecurrences: l } = w(), m = n < 750;
610
- return /* @__PURE__ */ o(c, { flexDirection: m ? "column" : "row", width: "100%", children: [
611
- /* @__PURE__ */ e(We, {}),
607
+ ) : /* @__PURE__ */ e(F, {});
608
+ }), Rt = T(() => {
609
+ const { recurring: t } = D(), { availableWidth: n } = Oe(), { selectedDay: i, selectedDayRecurrences: r, setSelectedDay: o, upcomingRecurrences: l } = I(), m = n < 750;
610
+ return /* @__PURE__ */ a(c, { flexDirection: m ? "column" : "row", width: "100%", children: [
611
+ /* @__PURE__ */ e($e, {}),
612
612
  !m && /* @__PURE__ */ e(le, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
613
613
  /* @__PURE__ */ e(
614
614
  H,
615
615
  {
616
616
  isMini: !0,
617
- onResetClick: i ? () => r(i) : void 0,
618
- recurrences: a || l.slice(0, 5),
617
+ onResetClick: i ? () => o(i) : void 0,
618
+ recurrences: r || l.slice(0, 5),
619
619
  sx: { width: m ? "100%" : "calc(100% - 336px)", mt: 12 },
620
620
  title: i ? N(
621
621
  t.day_transactions,
@@ -624,45 +624,45 @@ const Q = {
624
624
  }
625
625
  )
626
626
  ] });
627
- }), wn = D(
627
+ }), In = T(
628
628
  ({ onPrimaryCtaClick: t, sx: n }) => {
629
- const { accounts: i } = he(), { recurring: a } = S(), { setFilter: r } = fe(), { isDataLoaded: l, loadRepeatingTransactions: m } = w(), { isCopyLoaded: g, isInitialized: s, setSelectedAccounts: u, selectedAccountGuids: f } = q();
629
+ const { accounts: i } = he(), { recurring: r } = D(), { setFilter: o } = fe(), { isDataLoaded: l, loadRepeatingTransactions: m } = I(), { isCopyLoaded: g, isInitialized: s, setSelectedAccounts: u, selectedAccountGuids: f } = U();
630
630
  return h.useEffect(() => {
631
631
  s && u(i);
632
632
  }, [s]), h.useEffect(() => {
633
- f.length > 0 && (r({
633
+ f.length > 0 && (o({
634
634
  dateRange: { start: me(ue(), 90), end: de() },
635
635
  accounts: f
636
636
  }), m().finally());
637
- }, [f]), !g || !s ? /* @__PURE__ */ e(V, {}) : /* @__PURE__ */ e(
637
+ }, [f]), !g || !s ? /* @__PURE__ */ e(F, {}) : /* @__PURE__ */ e(
638
638
  pt,
639
639
  {
640
640
  className: "mx-exp-recurring-transactions-miniwidget",
641
641
  onPrimaryCtaClick: t,
642
- primaryCtaLabel: a.primary_cta,
643
- subTitle: a.sub_title,
642
+ primaryCtaLabel: r.primary_cta,
643
+ subTitle: r.sub_title,
644
644
  sx: n,
645
- title: a.mini_title,
646
- children: l ? /* @__PURE__ */ e(Rt, {}) : /* @__PURE__ */ e(V, {})
645
+ title: r.mini_title,
646
+ children: l ? /* @__PURE__ */ e(Rt, {}) : /* @__PURE__ */ e(F, {})
647
647
  }
648
648
  );
649
649
  }
650
650
  ), Tt = ({
651
651
  upcomingRecurrences: t,
652
652
  maxLogos: n = 3
653
- }) => /* @__PURE__ */ e(c, { sx: { flexDirection: "row", gap: 4 }, children: t?.slice(0, n).map((i, a) => /* @__PURE__ */ e(
653
+ }) => /* @__PURE__ */ e(c, { sx: { flexDirection: "row", gap: 4 }, children: t?.slice(0, n).map((i, r) => /* @__PURE__ */ e(
654
654
  pe,
655
655
  {
656
656
  categoryGuid: i.categoryGuid || "",
657
657
  merchantGuid: i.merchantGuid || ""
658
658
  },
659
- `${i.categoryGuid}-${i.merchantGuid}-${a}`
659
+ `${i.categoryGuid}-${i.merchantGuid}-${r}`
660
660
  )) }), Dt = ({
661
661
  upcomingRecurrences: t,
662
662
  logoSize: n = 32,
663
663
  maxLogos: i = 3
664
664
  }) => {
665
- const a = (r) => r * (n / 2);
665
+ const r = (o) => o * (n / 2);
666
666
  return /* @__PURE__ */ e(
667
667
  O,
668
668
  {
@@ -670,12 +670,12 @@ const Q = {
670
670
  position: "relative",
671
671
  width: 64
672
672
  },
673
- children: t.map((r, l) => l < i ? /* @__PURE__ */ e(
673
+ children: t.map((o, l) => l < i ? /* @__PURE__ */ e(
674
674
  O,
675
675
  {
676
676
  sx: {
677
677
  borderRadius: "4px",
678
- left: a(l),
678
+ left: r(l),
679
679
  outlineColor: "common.white",
680
680
  outlineStyle: "solid",
681
681
  outlineWidth: 2,
@@ -684,13 +684,13 @@ const Q = {
684
684
  children: /* @__PURE__ */ e(
685
685
  pe,
686
686
  {
687
- categoryGuid: r.categoryGuid || "",
688
- merchantGuid: r.merchantGuid || "",
687
+ categoryGuid: o.categoryGuid || "",
688
+ merchantGuid: o.merchantGuid || "",
689
689
  size: n
690
690
  }
691
691
  )
692
692
  },
693
- `${r.categoryGuid}-${r.merchantGuid}-${l}`
693
+ `${o.categoryGuid}-${o.merchantGuid}-${l}`
694
694
  ) : null)
695
695
  }
696
696
  );
@@ -698,9 +698,9 @@ const Q = {
698
698
  amount: t,
699
699
  bgcolor: n,
700
700
  isLargeScreen: i,
701
- isSmallScreen: a,
702
- label: r
703
- }) => /* @__PURE__ */ o(c, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
701
+ isSmallScreen: r,
702
+ label: o
703
+ }) => /* @__PURE__ */ a(c, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
704
704
  /* @__PURE__ */ e(
705
705
  O,
706
706
  {
@@ -712,32 +712,32 @@ const Q = {
712
712
  }
713
713
  }
714
714
  ),
715
- /* @__PURE__ */ o(c, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
716
- !a && /* @__PURE__ */ e(p, { bold: !0, variant: "caption", children: L(t, t === 0 || !i ? "0,0" : "0,0.00") }),
717
- /* @__PURE__ */ e(p, { variant: "caption", children: r })
715
+ /* @__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") }),
717
+ /* @__PURE__ */ e(p, { variant: "caption", children: o })
718
718
  ] })
719
- ] }), It = D(() => {
720
- const { recurring: t } = S();
721
- return /* @__PURE__ */ o(c, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
719
+ ] }), _t = T(() => {
720
+ const { recurring: t } = D();
721
+ return /* @__PURE__ */ a(c, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
722
722
  /* @__PURE__ */ e(Ze, { size: 32 }),
723
- /* @__PURE__ */ o(c, { children: [
723
+ /* @__PURE__ */ a(c, { children: [
724
724
  /* @__PURE__ */ e(ce, { fontWeight: 600, variant: "body1", children: t.zero_state_content_header }),
725
725
  /* @__PURE__ */ e(ce, { color: "text.secondary", variant: "subtitle2", children: t.zero_state_content_description })
726
726
  ] })
727
727
  ] });
728
- }), vn = D(
728
+ }), vn = T(
729
729
  ({ onCTAClick: t }) => {
730
- const [n, i] = h.useState(!1), { onEvent: a } = J(), r = ge(), { accounts: l } = he(), [m, { width: g }] = gt(), { isCopyLoaded: s, isInitialized: u, selectedAccountGuids: f, setSelectedAccounts: x } = q(), {
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 } = U(), {
731
731
  loadRepeatingTransactions: C,
732
732
  upcomingRecurrences: y,
733
733
  expenseTotal: d,
734
734
  missedExpenseTotal: b,
735
735
  paidExpenseTotal: W,
736
- repeatingTransactions: F,
736
+ repeatingTransactions: j,
737
737
  setDateRange: te,
738
738
  upcomingExpenseTotal: ne,
739
- isDataLoaded: U
740
- } = w(), { setFilter: $ } = fe(), { recurring: I, budgets: ie } = S();
739
+ isDataLoaded: K
740
+ } = I(), { setFilter: $ } = fe(), { recurring: _, budgets: ie } = D();
741
741
  h.useEffect(() => {
742
742
  x(l);
743
743
  }, [l]), h.useEffect(() => {
@@ -746,63 +746,63 @@ const Q = {
746
746
  accounts: f
747
747
  }), te({ start: k(/* @__PURE__ */ new Date()), end: z(/* @__PURE__ */ new Date()) }), C().finally(), i(!0));
748
748
  }, [u]), h.useEffect(() => {
749
- n && a(_.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
749
+ n && r(w.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
750
750
  state: y.length > 0 ? "default" : "zeroState"
751
751
  });
752
752
  }, [n]);
753
- const v = g <= 288, j = g >= 450, K = h.useMemo(() => {
753
+ const v = g <= 288, Y = g >= 450, V = h.useMemo(() => {
754
754
  const G = [
755
- { color: r.palette.success.main, percentage: `${W / d}` }
755
+ { color: o.palette.success.main, percentage: `${W / d}` }
756
756
  ];
757
757
  return b && G.push({
758
- color: r.palette.error.main,
758
+ color: o.palette.error.main,
759
759
  percentage: `${b / d}`
760
760
  }), G;
761
761
  }, [
762
762
  W,
763
763
  d,
764
764
  b,
765
- r.palette.success.main,
766
- r.palette.error.main
765
+ o.palette.success.main,
766
+ o.palette.error.main
767
767
  ]), P = h.useMemo(() => L(d, d === 0 ? "0,0" : "0,0.00"), [d]), re = () => {
768
- a(
769
- y.length > 0 ? _.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : _.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
768
+ r(
769
+ y.length > 0 ? w.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : w.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
770
770
  ), t();
771
771
  };
772
- if (!s || !n || !U) return /* @__PURE__ */ e(V, { height: 100 });
773
- const R = 32, oe = y.length > 0, $e = () => oe ? v ? /* @__PURE__ */ e(
772
+ if (!s || !n || !K) return /* @__PURE__ */ e(F, { height: 100 });
773
+ const R = 32, oe = y.length > 0, Pe = () => oe ? v ? /* @__PURE__ */ e(
774
774
  Dt,
775
775
  {
776
776
  logoSize: R,
777
777
  maxLogos: 3,
778
778
  upcomingRecurrences: y.slice(0, 3)
779
779
  }
780
- ) : /* @__PURE__ */ e(Tt, { maxLogos: 3, upcomingRecurrences: y.slice(0, 3) }) : /* @__PURE__ */ e(c, { sx: { width: v ? 64 : 104 } }), Pe = [
780
+ ) : /* @__PURE__ */ e(Tt, { maxLogos: 3, upcomingRecurrences: y.slice(0, 3) }) : /* @__PURE__ */ e(c, { sx: { width: v ? 64 : 104 } }), Be = [
781
781
  {
782
782
  amount: W,
783
783
  bgColor: "success.main",
784
- label: I.paid
784
+ label: _.paid
785
785
  },
786
786
  {
787
787
  amount: b,
788
788
  bgColor: "error.main",
789
- label: I.missed
789
+ label: _.missed
790
790
  },
791
791
  {
792
792
  amount: ne,
793
793
  bgColor: "border.light",
794
- label: I.upcoming
794
+ label: _.upcoming
795
795
  }
796
- ], Te = !F?.length;
796
+ ], De = !j?.length;
797
797
  return /* @__PURE__ */ e(
798
798
  ht,
799
799
  {
800
800
  className: "mx-recurring-transaction-microwidget",
801
- ctaLabel: Te ? ie.get_started_cta : I.primary_cta,
801
+ ctaLabel: De ? ie.get_started_cta : _.primary_cta,
802
802
  onCTAClick: re,
803
- title: I.recurring_expenses,
804
- children: Te ? /* @__PURE__ */ e(It, {}) : /* @__PURE__ */ o(X, { children: [
805
- /* @__PURE__ */ o(
803
+ title: _.recurring_expenses,
804
+ children: De ? /* @__PURE__ */ e(_t, {}) : /* @__PURE__ */ a(Z, { children: [
805
+ /* @__PURE__ */ a(
806
806
  c,
807
807
  {
808
808
  ref: m,
@@ -811,7 +811,7 @@ const Q = {
811
811
  justifyContent: "space-between"
812
812
  },
813
813
  children: [
814
- /* @__PURE__ */ o(
814
+ /* @__PURE__ */ a(
815
815
  c,
816
816
  {
817
817
  sx: [
@@ -839,18 +839,18 @@ const Q = {
839
839
  pr: 12
840
840
  },
841
841
  variant: "XSmall",
842
- children: I.expected
842
+ children: _.expected
843
843
  }
844
844
  )
845
845
  ]
846
846
  }
847
847
  ),
848
- $e()
848
+ Pe()
849
849
  ]
850
850
  }
851
851
  ),
852
- /* @__PURE__ */ o(c, { sx: { pt: 12 }, children: [
853
- /* @__PURE__ */ e(ke, { data: K }),
852
+ /* @__PURE__ */ a(c, { sx: { pt: 12 }, children: [
853
+ /* @__PURE__ */ e(We, { data: V }),
854
854
  /* @__PURE__ */ e(
855
855
  c,
856
856
  {
@@ -860,16 +860,16 @@ const Q = {
860
860
  gap: 16,
861
861
  mt: 4
862
862
  },
863
- children: Pe.map((G, Be) => /* @__PURE__ */ e(
863
+ children: Be.map((G, He) => /* @__PURE__ */ e(
864
864
  St,
865
865
  {
866
866
  amount: G.amount,
867
867
  bgcolor: G.bgColor,
868
- isLargeScreen: j,
868
+ isLargeScreen: Y,
869
869
  isSmallScreen: v,
870
870
  label: G.label
871
871
  },
872
- `recurrence-legend-${Be}`
872
+ `recurrence-legend-${He}`
873
873
  ))
874
874
  }
875
875
  )
@@ -878,15 +878,30 @@ const Q = {
878
878
  }
879
879
  );
880
880
  }
881
+ ), Mn = T(
882
+ ({ isOpen: t, onClose: n }) => {
883
+ const { cashflow: i } = D(), { isCopyLoaded: r } = U();
884
+ return r ? /* @__PURE__ */ e(
885
+ xe,
886
+ {
887
+ ariaLabelClose: i.close_settings_aria,
888
+ isOpen: t,
889
+ onClose: n,
890
+ title: i.cashflow_settings,
891
+ children: /* @__PURE__ */ e(Ee, {})
892
+ }
893
+ ) : /* @__PURE__ */ e(F, {});
894
+ }
881
895
  );
882
896
  export {
883
- On as AddRecurringTransactionDetails,
884
- An as ManageExpenses,
885
- kn as ManageIncome,
886
- He as RecurringSettings,
897
+ kn as AddRecurringTransactionDetails,
898
+ En as ManageExpenses,
899
+ Wn as ManageIncome,
900
+ Ee as RecurringSettings,
901
+ Mn as RecurringSettingsDrawer,
887
902
  vn as RecurringTransactionsMicroWidget,
888
- wn as RecurringTransactionsMiniWidget,
889
- Gn as RecurringTransactionsStore,
890
- _n as RecurringTransactionsWidget,
891
- Wn as SelectTransaction
903
+ In as RecurringTransactionsMiniWidget,
904
+ Nn as RecurringTransactionsStore,
905
+ wn as RecurringTransactionsWidget,
906
+ $n as SelectTransaction
892
907
  };