@mx-cartographer/experiences 7.2.12 → 7.2.13-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.
@@ -10,24 +10,24 @@ import ie from "@mui/material/ListItem";
10
10
  import se from "@mui/material/ListItemAvatar";
11
11
  import ce from "@mui/material/ListItemButton";
12
12
  import le from "@mui/material/ListItemText";
13
- import { F as d, S as N, D as Y, g as Q, R as E, e as de } from "./RecurringTransactions-ej39mgA6.mjs";
13
+ import { F as d, S as N, D as Y, g as Q, R as I, e as de } from "./RecurringTransactions-ej39mgA6.mjs";
14
14
  import { subDays as ue } from "date-fns/subDays";
15
15
  import { startOfToday as z } from "date-fns/startOfToday";
16
16
  import { endOfMonth as _e } from "date-fns/endOfMonth";
17
17
  import $ from "@mui/material/Button";
18
- import { Delete as me, Add as pe, ReceiptLong as he } from "@mxenabled/mx-icons";
19
- import { T as X, a as ye, u as ge, S as fe, b as Ce } from "./TransactionDetails-DW7T0W0z.mjs";
18
+ import { Delete as me, Add as ye, ReceiptLong as he } from "@mxenabled/mx-icons";
19
+ import { T as X, a as pe, u as ge, S as fe, b as Ce } from "./TransactionDetails-DW7T0W0z.mjs";
20
20
  import { getDayOfYear as be } from "date-fns/getDayOfYear";
21
21
  import { setDayOfYear as xe } from "date-fns/setDayOfYear";
22
22
  import { AdapterDateFns as Se } from "@mui/x-date-pickers/AdapterDateFnsV3";
23
23
  import { DatePicker as ve } from "@mui/x-date-pickers";
24
24
  import { LocalizationProvider as we } from "@mui/x-date-pickers/LocalizationProvider";
25
25
  import { u as w, j as M, g as F, b as Ae, h as Z, p as De } from "./hooks-D6XlXHf4.mjs";
26
- import { b as Ie, f as J } from "./NumberFormatting-Buh7u8Oi.mjs";
26
+ import { b as Ee, f as J } from "./NumberFormatting-Buh7u8Oi.mjs";
27
27
  import { D as O } from "./Drawer-kEE73B87.mjs";
28
28
  import { A as R } from "./WidgetContainer-C88Ecu2W.mjs";
29
- import { f as Ee, D as Re, a as Te } from "./Dialog-CWW597AF.mjs";
30
- import { formatISO as Le } from "date-fns/formatISO";
29
+ import { f as Ie, D as Re, a as Te } from "./Dialog-CWW597AF.mjs";
30
+ import { format as Le } from "date-fns/format";
31
31
  import { fromUnixTime as Oe } from "date-fns/fromUnixTime";
32
32
  import { S as ke } from "./SearchBox-B2_zLv8-.mjs";
33
33
  import { h as Ne } from "./DateUtil-BcuH7ErC.mjs";
@@ -61,13 +61,13 @@ const ee = ({
61
61
  { id: 4, label: o.weekday_thursday },
62
62
  { id: 5, label: o.weekday_friday },
63
63
  { id: 6, label: o.weekday_saturday }
64
- ], y = [...Array(31).keys()].map((p) => ({
65
- id: p + 1,
66
- label: Ie(p + 1)
64
+ ], p = [...Array(31).keys()].map((y) => ({
65
+ id: y + 1,
66
+ label: Ee(y + 1)
67
67
  }));
68
- y[30].label += ` (${o.last_day_of_month})`;
69
- const C = y.slice(0, 15), v = y.slice(14), b = n === d.EveryWeek || n === d.EveryOtherWeek, g = n === d.TwiceAMonth || n === d.EveryMonth || n === d.EveryOtherMonth || n === d.EveryQuarter || n === d.EveryOtherQuarter, D = xe(z(), t), f = (p) => {
70
- p && s(be(p));
68
+ p[30].label += ` (${o.last_day_of_month})`;
69
+ const C = p.slice(0, 15), v = p.slice(14), b = n === d.EveryWeek || n === d.EveryOtherWeek, g = n === d.TwiceAMonth || n === d.EveryMonth || n === d.EveryOtherMonth || n === d.EveryQuarter || n === d.EveryOtherQuarter, D = xe(z(), t), f = (y) => {
70
+ y && s(be(y));
71
71
  };
72
72
  return /* @__PURE__ */ c(h, { gap: 24, sx: { m: 24 }, children: [
73
73
  /* @__PURE__ */ e(
@@ -93,7 +93,7 @@ const ee = ({
93
93
  {
94
94
  label: n === d.TwiceAMonth ? o.first_day_of_the_month : o.day_of_the_month,
95
95
  onChange: s,
96
- options: n === d.TwiceAMonth ? C : y,
96
+ options: n === d.TwiceAMonth ? C : p,
97
97
  value: t
98
98
  }
99
99
  ),
@@ -117,7 +117,7 @@ const ee = ({
117
117
  ) })
118
118
  ] });
119
119
  }, Me = A(({ repeatingTransaction: n }) => {
120
- const { recurring: t } = w(), { updateRepeatingTransaction: r } = M(), { onEvent: i } = F(), [s, l] = u.useState(!1), [o, a] = u.useState(n.recurrence_type), [m, y] = u.useState(n.recurrence_day), [C, v] = u.useState(n.second_recurrence_day), b = async () => {
120
+ const { recurring: t } = w(), { updateRepeatingTransaction: r } = M(), { onEvent: i } = F(), [s, l] = u.useState(!1), [o, a] = u.useState(n.recurrence_type), [m, p] = u.useState(n.recurrence_day), [C, v] = u.useState(n.second_recurrence_day), b = async () => {
121
121
  await r({
122
122
  ...n,
123
123
  recurrence_type: o,
@@ -150,7 +150,7 @@ const ee = ({
150
150
  {
151
151
  firstDay: m,
152
152
  frequency: o,
153
- onFirstDayChange: y,
153
+ onFirstDayChange: p,
154
154
  onFrequencyChange: a,
155
155
  onSecondDayChange: v,
156
156
  secondDay: C
@@ -161,7 +161,7 @@ const ee = ({
161
161
  ] });
162
162
  }), Fe = A(
163
163
  ({ onDeleted: n, recurringTransaction: t }) => {
164
- const { recurring: r } = w(), { selectedAccountGuids: i } = Ae(), { onEvent: s } = F(), { deleteRepeatingTransaction: l } = M(), { setFilter: o, transactions: a } = Z(), { amount: m, description: y, merchant_guid: C } = t, [v, b] = u.useState(!1), [g, D] = u.useState("");
164
+ const { recurring: r } = w(), { selectedAccountGuids: i } = Ae(), { onEvent: s } = F(), { deleteRepeatingTransaction: l } = M(), { setFilter: o, transactions: a } = Z(), { amount: m, description: p, merchant_guid: C } = t, [v, b] = u.useState(!1), [g, D] = u.useState("");
165
165
  u.useEffect(() => {
166
166
  o({
167
167
  accounts: i,
@@ -172,7 +172,7 @@ const ee = ({
172
172
  const f = u.useMemo(
173
173
  () => a.find((_) => _.guid === g),
174
174
  [g, a]
175
- ), p = t.repeating_transaction_type === E.Income, k = async () => {
175
+ ), y = t.repeating_transaction_type === I.Income, k = async () => {
176
176
  await l(t.guid), n();
177
177
  }, G = () => {
178
178
  b(!0), s(R.RECURRING_TRANSACTIONS_DETAILS_CLICK_DELETE);
@@ -188,12 +188,12 @@ const ee = ({
188
188
  sx: { mb: 12 }
189
189
  }
190
190
  ),
191
- /* @__PURE__ */ e(S, { bold: !0, variant: "body1", children: y }),
192
- /* @__PURE__ */ c(re, { color: p ? "success.main" : "text.primary", sx: { my: 4 }, children: [
193
- p ? "+" : "",
191
+ /* @__PURE__ */ e(S, { bold: !0, variant: "body1", children: p }),
192
+ /* @__PURE__ */ c(re, { color: y ? "success.main" : "text.primary", sx: { my: 4 }, children: [
193
+ y ? "+" : "",
194
194
  J(m, "0,0.00")
195
195
  ] }),
196
- /* @__PURE__ */ e(S, { color: "text.secondary", variant: "body2", children: `${r.next_payment_date}: ${Ee(
196
+ /* @__PURE__ */ e(S, { color: "text.secondary", variant: "body2", children: `${r.next_payment_date}: ${Ie(
197
197
  t.predicted_occurs_on,
198
198
  Re.MONTH_DAY_YEAR
199
199
  )}` })
@@ -232,7 +232,7 @@ const ee = ({
232
232
  startIcon: /* @__PURE__ */ e(me, {}),
233
233
  sx: { mx: 24, my: 16 },
234
234
  variant: "text",
235
- children: p ? r.delete_income_title : r.delete_expense_title
235
+ children: y ? r.delete_income_title : r.delete_expense_title
236
236
  }
237
237
  ),
238
238
  /* @__PURE__ */ e(S, { bold: !0, sx: { ml: 24, mt: 16 }, variant: "Body", children: r.paid_transactions }),
@@ -244,20 +244,20 @@ const ee = ({
244
244
  isOpen: !!g && !!f,
245
245
  onClose: () => D(""),
246
246
  title: r.transaction_details_drawer_title,
247
- children: f && /* @__PURE__ */ e(ye, { transaction: f })
247
+ children: f && /* @__PURE__ */ e(pe, { transaction: f })
248
248
  }
249
249
  ),
250
250
  /* @__PURE__ */ e(
251
251
  Te,
252
252
  {
253
253
  copy: {
254
- title: p ? r.delete_income_title : r.delete_expense_title,
254
+ title: y ? r.delete_income_title : r.delete_expense_title,
255
255
  close_aria: r.close_drawer_aria
256
256
  },
257
257
  isOpen: v,
258
258
  onClose: () => b(!1),
259
259
  onPrimaryAction: k,
260
- children: /* @__PURE__ */ e(S, { children: p ? r.delete_income_description : r.delete_expense_description })
260
+ children: /* @__PURE__ */ e(S, { children: y ? r.delete_income_description : r.delete_expense_description })
261
261
  }
262
262
  )
263
263
  ] });
@@ -268,7 +268,7 @@ const ee = ({
268
268
  const { recurring: r } = w(), [i, s] = u.useState(!1), l = u.useMemo(
269
269
  () => t.transactions.length === 0 ? "" : t.transactions[0].category_guid || "",
270
270
  [t]
271
- ), o = t.account?.institutionName || "", a = t.repeating_transaction_type === E.Income, m = Q(r, t, !0);
271
+ ), o = t.account?.institutionName || "", a = t.repeating_transaction_type === I.Income, m = Q(r, t, !0);
272
272
  return /* @__PURE__ */ c(ie, { disableGutters: !0, disablePadding: !0, children: [
273
273
  /* @__PURE__ */ c(ce, { onClick: () => {
274
274
  n(t), s(!0);
@@ -331,7 +331,7 @@ const ee = ({
331
331
  ariaLabelClose: r.close_drawer_aria,
332
332
  isOpen: i,
333
333
  onClose: () => s(!1),
334
- title: t.repeating_transaction_type === E.Income ? r.income_details : r.expense_details,
334
+ title: t.repeating_transaction_type === I.Income ? r.income_details : r.expense_details,
335
335
  children: /* @__PURE__ */ e(
336
336
  Fe,
337
337
  {
@@ -414,7 +414,7 @@ const ee = ({
414
414
  label: t,
415
415
  onAddRecurringTransaction: r = () => null
416
416
  }) => {
417
- const { recurring: i } = w(), { filter: s, setFilter: l, transactions: o } = Z(), { addRepeatingTransaction: a } = M(), { user: m } = De(), [y, C] = u.useState(!1), [v, b] = u.useState(""), [g, D] = u.useState(d.EveryMonth), [f, p] = u.useState(1), [k, G] = u.useState(15), _ = u.useMemo(
417
+ const { recurring: i } = w(), { filter: s, setFilter: l, transactions: o } = Z(), { addRepeatingTransaction: a } = M(), { user: m } = De(), [p, C] = u.useState(!1), [v, b] = u.useState(""), [g, D] = u.useState(d.EveryMonth), [f, y] = u.useState(1), [k, G] = u.useState(15), _ = u.useMemo(
418
418
  () => o.find((x) => x.guid === v),
419
419
  [v, o]
420
420
  ), ne = () => {
@@ -425,32 +425,32 @@ const ee = ({
425
425
  return;
426
426
  }
427
427
  r();
428
- const x = de(g, Oe(_.date)), I = {
428
+ const x = de(g, Oe(_.date)), E = {
429
429
  account_guid: _.account_guid,
430
430
  amount: _.amount,
431
431
  created_by: 0,
432
432
  // User
433
433
  merchant_guid: _.merchant_guid,
434
434
  description: _.payee || _.description || _.feed_description,
435
- predicted_occurs_on: Le(x, { representation: "date" }),
435
+ predicted_occurs_on: Le(x, "yyyy-MM-dd"),
436
436
  recurrence_day: f,
437
437
  recurrence_type: g,
438
- repeating_transaction_type: n ? E.Income : E.Bill,
438
+ repeating_transaction_type: n ? I.Income : I.Bill,
439
439
  second_recurrence_day: k,
440
440
  transaction_type: _.transaction_type,
441
441
  user_guid: m.guid
442
442
  };
443
- await a(I, _), j();
443
+ await a(E, _), j();
444
444
  }, j = () => {
445
445
  b(""), C(!1);
446
446
  };
447
447
  return /* @__PURE__ */ c(L, { children: [
448
- /* @__PURE__ */ e($, { onClick: ne, startIcon: /* @__PURE__ */ e(pe, { size: 24 }), variant: "contained", children: t }),
448
+ /* @__PURE__ */ e($, { onClick: ne, startIcon: /* @__PURE__ */ e(ye, { size: 24 }), variant: "contained", children: t }),
449
449
  /* @__PURE__ */ e(
450
450
  O,
451
451
  {
452
452
  ariaLabelClose: i.close_drawer_aria,
453
- isOpen: y,
453
+ isOpen: p,
454
454
  onClose: () => C(!1),
455
455
  title: t,
456
456
  children: /* @__PURE__ */ e(
@@ -460,7 +460,7 @@ const ee = ({
460
460
  onSearch: (x) => {
461
461
  l({
462
462
  ...s,
463
- custom: (I) => n ? x ? ze(I, x) : W(I) : x ? Ye(I, x) : q(I)
463
+ custom: (E) => n ? x ? ze(E, x) : W(E) : x ? Ye(E, x) : q(E)
464
464
  });
465
465
  },
466
466
  onSelected: (x) => b(x)
@@ -481,7 +481,7 @@ const ee = ({
481
481
  {
482
482
  firstDay: f,
483
483
  frequency: g,
484
- onFirstDayChange: p,
484
+ onFirstDayChange: y,
485
485
  onFrequencyChange: D,
486
486
  onSecondDayChange: G,
487
487
  secondDay: k,
@@ -521,7 +521,7 @@ const ee = ({
521
521
  }, l = () => {
522
522
  i(R.RECURRING_TRANSACTIONS_CLICK_ADD_INCOME);
523
523
  }, o = r.filter(
524
- (a) => a.repeating_transaction_type === E.Income && (a.transactions.length > 0 || a.recurrence_type === d.EveryYear)
524
+ (a) => a.repeating_transaction_type === I.Income && (a.transactions.length > 0 || a.recurrence_type === d.EveryYear)
525
525
  );
526
526
  return /* @__PURE__ */ e(L, { children: o.length !== 0 ? /* @__PURE__ */ c(
527
527
  h,
@@ -7,7 +7,7 @@ import b from "@mui/material/Tabs";
7
7
  import d from "@mui/material/Divider";
8
8
  import R from "@mui/material/List";
9
9
  import T from "@mui/material/Stack";
10
- import { R as C, A as S, a as E, M as v } from "./ManageIncome-CQPFKdYB.mjs";
10
+ import { R as C, A as S, a as E, M as v } from "./ManageIncome-CMN_8uep.mjs";
11
11
  import { u as _, j as A, g as f } from "./hooks-D6XlXHf4.mjs";
12
12
  import { R as y, F as N } from "./RecurringTransactions-ej39mgA6.mjs";
13
13
  import { A as m } from "./WidgetContainer-C88Ecu2W.mjs";
@@ -46,7 +46,7 @@ import { u as nt, b as ot } from "../CategorySelectorDrawer-DUe4lH5-.mjs";
46
46
  import De from "@mui/material/CardHeader";
47
47
  import { subDays as at } from "date-fns/subDays";
48
48
  import rt from "@mui/material/IconButton";
49
- import { M as st } from "../ManageIncome-CQPFKdYB.mjs";
49
+ import { M as st } from "../ManageIncome-CMN_8uep.mjs";
50
50
  const it = I(() => {
51
51
  const { budgets: t } = w(), { totalBudgeted: o } = D(), { incomeTotal: i } = ee(), s = i - o;
52
52
  return /* @__PURE__ */ m(S, { direction: "row", justifyContent: "center", my: 16, spacing: 20, children: [
@@ -2,22 +2,22 @@ import { jsxs as o, Fragment as P, jsx as e } from "react/jsx-runtime";
2
2
  import f, { useState as ee } from "react";
3
3
  import { observer as T } from "mobx-react-lite";
4
4
  import { addMonths as Xe } from "date-fns/addMonths";
5
- import { startOfToday as $ } from "date-fns/startOfToday";
5
+ import { startOfToday as W } from "date-fns/startOfToday";
6
6
  import I from "@mui/material/Box";
7
7
  import D from "@mui/material/Divider";
8
8
  import s from "@mui/material/Stack";
9
9
  import le from "@mui/material/styles/useTheme";
10
- import { Text as u, P as N, Icon as j, InstitutionLogo as ye, H1 as ue, H2 as Ye } from "@mxenabled/mxui";
11
- import { G as Qe, v as he, u as O, q as de, d as Ne, b as X, j as q, g as ke, p as He, h as Fe, a as Ve } from "../hooks-D6XlXHf4.mjs";
10
+ import { Text as u, P as O, Icon as j, InstitutionLogo as ye, H1 as ue, H2 as Ye } from "@mxenabled/mxui";
11
+ import { G as Qe, v as he, u as N, q as de, d as Oe, b as X, j as q, g as ke, p as He, h as Fe, a as Ve } from "../hooks-D6XlXHf4.mjs";
12
12
  import { C as L } from "../CurrencyText-kyC1aseI.mjs";
13
13
  import { u as pe } from "../useScreenSize-B6JyS_Lj.mjs";
14
14
  import { L as oe } from "../Loader-DUaFpDGv.mjs";
15
15
  import { I as fe } from "../CashflowStore-D9Dpuz7X.mjs";
16
16
  import { C as jn } from "../CashflowStore-D9Dpuz7X.mjs";
17
- import { b as M } from "../Localization-2MODESHW.mjs";
17
+ import { b as $ } from "../Localization-2MODESHW.mjs";
18
18
  import { M as Ke } from "../MiniWidgetContainer-D0gfmbaF.mjs";
19
19
  import { E as Je } from "../EmptyState-DA_lfRBv.mjs";
20
- import { R as Ze } from "../RecurringSettings-DDaGTnfz.mjs";
20
+ import { R as Ze } from "../RecurringSettings-BsP-YKPS.mjs";
21
21
  import et from "@mui/material/Tabs";
22
22
  import Ce from "@mui/material/Tab";
23
23
  import { getUnixTime as U } from "date-fns/getUnixTime";
@@ -27,17 +27,17 @@ import { A as tt } from "../AccountListItem-DChcf3SN.mjs";
27
27
  import { f as Y, D as Q } from "../Dialog-CWW597AF.mjs";
28
28
  import nt from "@mui/material/ListSubheader";
29
29
  import { f as te } from "../NumberFormatting-Buh7u8Oi.mjs";
30
- import { isAfter as We } from "date-fns/isAfter";
31
- import { isBefore as $e } from "date-fns/isBefore";
32
- import { isToday as Me } from "date-fns/isToday";
33
- import { addDays as Se } from "date-fns/addDays";
30
+ import { isAfter as Me } from "date-fns/isAfter";
31
+ import { isBefore as We } from "date-fns/isBefore";
32
+ import { isToday as $e } from "date-fns/isToday";
33
+ import { addDays as we } from "date-fns/addDays";
34
34
  import { alpha as ot, keyframes as at } from "@mui/material/styles";
35
35
  import { DataGridPro as it } from "@mui/x-data-grid-pro";
36
- import { T as we } from "../TabContentContainer-j01JYR_7.mjs";
36
+ import { T as Se } from "../TabContentContainer-j01JYR_7.mjs";
37
37
  import G from "@mui/material/Button";
38
- import { M as rt, S as st, i as ct, d as _e, c as lt } from "../ManageIncome-CQPFKdYB.mjs";
38
+ import { M as rt, S as st, i as ct, d as _e, c as lt } from "../ManageIncome-CMN_8uep.mjs";
39
39
  import { D as Ge } from "../Drawer-kEE73B87.mjs";
40
- import { formatISO as dt } from "date-fns/formatISO";
40
+ import { format as dt } from "date-fns/format";
41
41
  import { fromUnixTime as Ie } from "date-fns/fromUnixTime";
42
42
  import { startOfMonth as mt } from "date-fns/startOfMonth";
43
43
  import { subDays as je } from "date-fns/subDays";
@@ -52,7 +52,7 @@ const V = () => {
52
52
  throw new Error("useCashflowUiStore() must be used within the GlobalDataContext");
53
53
  return he().uiStore;
54
54
  }, xt = ({ remaining: a }) => {
55
- const { cashflow: n } = O();
55
+ const { cashflow: n } = N();
56
56
  return /* @__PURE__ */ o(P, { children: [
57
57
  /* @__PURE__ */ e(
58
58
  I,
@@ -69,7 +69,7 @@ const V = () => {
69
69
  /* @__PURE__ */ e(L, { amount: a, bold: !0, sx: { fontSize: 12 } })
70
70
  ] });
71
71
  }, ge = T(xt), yt = () => {
72
- const a = le(), { availableWidth: n } = de(), { isMobile: t } = pe(), { visibleCashAccounts: i, visibleCashBalance: g } = Ne(), { selectedAccounts: x, selectedAccountGuids: m, setSelectedAccounts: p } = X(), { cashflow: c } = O(), {
72
+ const a = le(), { availableWidth: n } = de(), { isMobile: t } = pe(), { visibleCashAccounts: i, visibleCashBalance: g } = Oe(), { selectedAccounts: x, selectedAccountGuids: m, setSelectedAccounts: p } = X(), { cashflow: c } = N(), {
73
73
  daysUntilNextIncome: r,
74
74
  expensesTilNextIncome: d,
75
75
  selectedCashAccounts: l,
@@ -81,20 +81,20 @@ const V = () => {
81
81
  p(i);
82
82
  }, [i]), f.useEffect(() => {
83
83
  C(
84
- i.filter((w) => m.includes(w.guid))
84
+ i.filter((S) => m.includes(S.guid))
85
85
  );
86
86
  }, [i, x]), f.useEffect(() => {
87
87
  v && b(v), _(F);
88
88
  }, [v, F]);
89
89
  const h = f.useMemo(
90
- () => i.filter((w) => m.includes(w.guid)).reduce((w, z) => w + (z?.balance || 0), 0),
90
+ () => i.filter((S) => m.includes(S.guid)).reduce((S, z) => S + (z?.balance || 0), 0),
91
91
  [m, F]
92
- ), S = f.useMemo(
93
- () => d.filter((w) => m.includes(w.accountGuid || "")).reduce((w, z) => w + z.amount, 0),
92
+ ), w = f.useMemo(
93
+ () => d.filter((S) => m.includes(S.accountGuid || "")).reduce((S, z) => S + z.amount, 0),
94
94
  [m, d]
95
95
  ), A = f.useMemo(
96
- () => h - S,
97
- [h, S]
96
+ () => h - w,
97
+ [h, w]
98
98
  );
99
99
  return k ? /* @__PURE__ */ e(I, { className: "mx-cashflow", pl: 16, pr: 16, pt: 16, children: n > 710 ? /* @__PURE__ */ o(
100
100
  s,
@@ -107,33 +107,33 @@ const V = () => {
107
107
  children: [
108
108
  /* @__PURE__ */ o(s, { pb: 14, pt: 12, children: [
109
109
  /* @__PURE__ */ e(L, { amount: h, variant: "H2" }),
110
- /* @__PURE__ */ e(N, { variant: "XSmall", whiteSpace: "nowrap", children: M(
110
+ /* @__PURE__ */ e(O, { variant: "XSmall", whiteSpace: "nowrap", children: $(
111
111
  c.total_cash_accounts,
112
112
  l.length
113
113
  ) })
114
114
  ] }),
115
115
  /* @__PURE__ */ e(s, { pt: 18, children: /* @__PURE__ */ e(j, { name: "remove" }) }),
116
116
  /* @__PURE__ */ o(s, { pb: 14, pt: 12, children: [
117
- /* @__PURE__ */ e(L, { amount: S, variant: "H2" }),
118
- /* @__PURE__ */ e(N, { variant: "XSmall", whiteSpace: "nowrap", children: M(c.expenses_due, d.length) })
117
+ /* @__PURE__ */ e(L, { amount: w, variant: "H2" }),
118
+ /* @__PURE__ */ e(O, { variant: "XSmall", whiteSpace: "nowrap", children: $(c.expenses_due, d.length) })
119
119
  ] }),
120
120
  /* @__PURE__ */ e(s, { pt: 18, children: /* @__PURE__ */ e(j, { name: "equal" }) }),
121
121
  /* @__PURE__ */ o(s, { pb: 14, pr: 24, pt: 12, children: [
122
122
  /* @__PURE__ */ e(L, { amount: A, variant: "H2" }),
123
123
  /* @__PURE__ */ o(s, { alignItems: "center", direction: "row", gap: 8, children: [
124
- /* @__PURE__ */ e(N, { variant: "XSmall", whiteSpace: "nowrap", children: c.available_to_spend }),
124
+ /* @__PURE__ */ e(O, { variant: "XSmall", whiteSpace: "nowrap", children: c.available_to_spend }),
125
125
  /* @__PURE__ */ e(fe, { body: c.tooltip_body, title: c.tooltip_title })
126
126
  ] })
127
127
  ] }),
128
128
  /* @__PURE__ */ e(s, { borderLeft: `1px solid ${a.palette.border.light}`, pb: 12, pl: 24, pt: 12, children: /* @__PURE__ */ o(P, { children: [
129
- /* @__PURE__ */ e(u, { variant: "H2", children: M(c.days, r) }),
130
- /* @__PURE__ */ e(N, { variant: "XSmall", whiteSpace: "nowrap", children: c.next_paycheck })
129
+ /* @__PURE__ */ e(u, { variant: "H2", children: $(c.days, r) }),
130
+ /* @__PURE__ */ e(O, { variant: "XSmall", whiteSpace: "nowrap", children: c.next_paycheck })
131
131
  ] }) })
132
132
  ]
133
133
  }
134
134
  ) : /* @__PURE__ */ o(s, { border: `1px solid ${a.palette.border.light}`, borderRadius: 1, children: [
135
135
  /* @__PURE__ */ o(s, { direction: "row", justifyContent: "space-between", p: 16, children: [
136
- /* @__PURE__ */ e(u, { variant: "Small", children: M(
136
+ /* @__PURE__ */ e(u, { variant: "Small", children: $(
137
137
  c.total_cash_accounts,
138
138
  l.length
139
139
  ) }),
@@ -141,8 +141,8 @@ const V = () => {
141
141
  ] }),
142
142
  /* @__PURE__ */ e(D, {}),
143
143
  /* @__PURE__ */ o(s, { direction: "row", justifyContent: "space-between", p: 16, children: [
144
- /* @__PURE__ */ e(u, { variant: "Small", children: M(c.expenses_due, d.length) }),
145
- /* @__PURE__ */ e(L, { amount: S, bold: !0, symbol: "-", variant: "XSmall" })
144
+ /* @__PURE__ */ e(u, { variant: "Small", children: $(c.expenses_due, d.length) }),
145
+ /* @__PURE__ */ e(L, { amount: w, bold: !0, symbol: "-", variant: "XSmall" })
146
146
  ] }),
147
147
  /* @__PURE__ */ e(D, {}),
148
148
  /* @__PURE__ */ e(
@@ -162,17 +162,17 @@ const V = () => {
162
162
  /* @__PURE__ */ e(D, {}),
163
163
  /* @__PURE__ */ o(s, { direction: "row", justifyContent: "space-between", p: 16, children: [
164
164
  /* @__PURE__ */ e(u, { variant: "Small", children: c.next_paycheck }),
165
- /* @__PURE__ */ e(u, { bold: !0, variant: "XSmall", children: M(c.days, r) })
165
+ /* @__PURE__ */ e(u, { bold: !0, variant: "XSmall", children: $(c.days, r) })
166
166
  ] })
167
167
  ] }) }) : /* @__PURE__ */ e(oe, { height: t ? 210 : 120 });
168
- }, Ct = T(yt), St = ({
168
+ }, Ct = T(yt), wt = ({
169
169
  onPrimaryCtaClick: a,
170
170
  onSecondaryCtaClick: n,
171
171
  sx: t = {}
172
172
  }) => {
173
- const { cashflow: i } = O(), { isCopyLoaded: g, isInitialized: x } = X(), { loadRepeatingTransactions: m, income: p, isDataLoaded: c, setDateRange: r } = q();
173
+ const { cashflow: i } = N(), { isCopyLoaded: g, isInitialized: x } = X(), { loadRepeatingTransactions: m, income: p, isDataLoaded: c, setDateRange: r } = q();
174
174
  f.useEffect(() => {
175
- x && (r({ start: $(), end: Xe($(), 1) }), m().finally());
175
+ x && (r({ start: W(), end: Xe(W(), 1) }), m().finally());
176
176
  }, [x]);
177
177
  const d = c && !p.length;
178
178
  return g ? /* @__PURE__ */ o(
@@ -200,7 +200,7 @@ const V = () => {
200
200
  ]
201
201
  }
202
202
  ) : /* @__PURE__ */ e(oe, {});
203
- }, Fn = T(St), wt = ({ remaining: a }) => /* @__PURE__ */ e(
203
+ }, Fn = T(wt), St = ({ remaining: a }) => /* @__PURE__ */ e(
204
204
  ae,
205
205
  {
206
206
  sx: {
@@ -235,7 +235,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
235
235
  ] }),
236
236
  /* @__PURE__ */ e(D, {})
237
237
  ] }), Te = T(_t), It = ({ total: a, type: n }) => {
238
- const { cashflow: t } = O();
238
+ const { cashflow: t } = N();
239
239
  return /* @__PURE__ */ o(P, { children: [
240
240
  /* @__PURE__ */ o(
241
241
  nt,
@@ -260,8 +260,8 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
260
260
  ),
261
261
  /* @__PURE__ */ e(D, {})
262
262
  ] });
263
- }, Re = T(It), ce = (a, n) => (t) => t.accountGuid === a.guid && (Me(t.expectedDate) || We(t.expectedDate, n.start)) && $e(t.expectedDate, n.end), Dt = () => {
264
- const { availableWidth: a } = de(), { cashflow: n } = O(), { upcomingExpenses: t, upcomingIncome: i } = q(), { dateRange: g, selectedCashAccounts: x } = V();
263
+ }, Re = T(It), ce = (a, n) => (t) => t.accountGuid === a.guid && ($e(t.expectedDate) || Me(t.expectedDate, n.start)) && We(t.expectedDate, n.end), Dt = () => {
264
+ const { availableWidth: a } = de(), { cashflow: n } = N(), { upcomingExpenses: t, upcomingIncome: i } = q(), { dateRange: g, selectedCashAccounts: x } = V();
265
265
  return /* @__PURE__ */ o(s, { children: [
266
266
  /* @__PURE__ */ o(s, { direction: a < 400 ? "column" : "row", justifyContent: "space-between", children: [
267
267
  /* @__PURE__ */ e(u, { bold: !0, sx: { fontSize: 15, mb: 12, whiteSpace: "normal" }, children: n.accounts_breakdown }),
@@ -321,7 +321,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
321
321
  }
322
322
  ) }),
323
323
  /* @__PURE__ */ e(
324
- wt,
324
+ St,
325
325
  {
326
326
  remaining: (m.available_balance || m.balance || 0) + r - d
327
327
  }
@@ -333,7 +333,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
333
333
  }) })
334
334
  ] });
335
335
  }, vt = T(Dt), At = () => {
336
- const { availableWidth: a } = de(), n = le(), { cashflow: t } = O(), { upcomingExpenses: i, upcomingIncome: g } = q(), { dateRange: x, selectedCashAccounts: m } = V(), p = [
336
+ const { availableWidth: a } = de(), n = le(), { cashflow: t } = N(), { upcomingExpenses: i, upcomingIncome: g } = q(), { dateRange: x, selectedCashAccounts: m } = V(), p = [
337
337
  {
338
338
  field: "account",
339
339
  flex: 1.5,
@@ -393,9 +393,9 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
393
393
  }
394
394
  ], c = f.useMemo(() => m.map((r) => {
395
395
  const d = i.filter(
396
- ce(r, { start: $(), end: Se($(), 30) })
396
+ ce(r, { start: W(), end: we(W(), 30) })
397
397
  ).reduce((C, _) => C + _.amount, 0), l = g.filter(
398
- ce(r, { start: $(), end: Se($(), 30) })
398
+ ce(r, { start: W(), end: we(W(), 30) })
399
399
  ).reduce((C, _) => C + _.amount, 0), b = (r.balance || 0) + l - d;
400
400
  return {
401
401
  account: r,
@@ -569,7 +569,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
569
569
  }
570
570
  );
571
571
  }, Et = T(At), Tt = () => {
572
- const { cashflow: a } = O(), { isDesktop: n } = pe(), { onEvent: t } = ke(), [i, g] = f.useState(0), x = (m, p) => {
572
+ const { cashflow: a } = N(), { isDesktop: n } = pe(), { onEvent: t } = ke(), [i, g] = f.useState(0), x = (m, p) => {
573
573
  g(p);
574
574
  };
575
575
  return f.useEffect(() => {
@@ -611,8 +611,8 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
611
611
  }
612
612
  ),
613
613
  /* @__PURE__ */ e(I, { sx: { mb: 32 } }),
614
- /* @__PURE__ */ e(we, { index: 0, name: "cashflow", value: i, children: /* @__PURE__ */ e(I, { sx: { m: n ? 48 : 16 }, children: /* @__PURE__ */ e(Et, {}) }) }),
615
- /* @__PURE__ */ e(we, { index: 1, name: "cashflow", value: i, children: /* @__PURE__ */ e(I, { sx: { m: n ? 48 : 16 }, children: /* @__PURE__ */ e(vt, {}) }) })
614
+ /* @__PURE__ */ e(Se, { index: 0, name: "cashflow", value: i, children: /* @__PURE__ */ e(I, { sx: { m: n ? 48 : 16 }, children: /* @__PURE__ */ e(Et, {}) }) }),
615
+ /* @__PURE__ */ e(Se, { index: 1, name: "cashflow", value: i, children: /* @__PURE__ */ e(I, { sx: { m: n ? 48 : 16 }, children: /* @__PURE__ */ e(vt, {}) }) })
616
616
  ] });
617
617
  }, Rt = T(Tt), se = ({
618
618
  amount: a,
@@ -638,17 +638,17 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
638
638
  n && /* @__PURE__ */ e(L, { amount: a, component: "h2", symbol: g, variant: "Small" })
639
639
  ]
640
640
  }
641
- ), Le = (a, n) => (t) => t.accountGuid && a.includes(t.accountGuid) && (Me(t.expectedDate) || We(t.expectedDate, n.start)) && $e(t.expectedDate, n.end), Lt = () => {
642
- const { availableWidth: a } = de(), { cashflow: n } = O(), { income: t, isDataLoaded: i, upcomingExpenses: g, upcomingIncome: x } = q(), { selectedAccountGuids: m } = X(), { dateRange: p, selectedCashAccounts: c } = V(), [r, d] = f.useState(!1), l = f.useMemo(
641
+ ), Le = (a, n) => (t) => t.accountGuid && a.includes(t.accountGuid) && ($e(t.expectedDate) || Me(t.expectedDate, n.start)) && We(t.expectedDate, n.end), Lt = () => {
642
+ const { availableWidth: a } = de(), { cashflow: n } = N(), { income: t, isDataLoaded: i, upcomingExpenses: g, upcomingIncome: x } = q(), { selectedAccountGuids: m } = X(), { dateRange: p, selectedCashAccounts: c } = V(), [r, d] = f.useState(!1), l = f.useMemo(
643
643
  () => g.filter(Le(m, p)),
644
644
  [p, m, g]
645
645
  ), b = f.useMemo(
646
646
  () => x.filter(Le(m, p)),
647
647
  [p, m, x]
648
648
  ), C = f.useMemo(
649
- () => c.reduce((S, A) => S + (A?.balance || 0), 0),
649
+ () => c.reduce((w, A) => w + (A?.balance || 0), 0),
650
650
  [c]
651
- ), _ = l.reduce((S, A) => S + A.amount, 0), k = b.reduce((S, A) => S + A.amount, 0), v = C - _ + k, F = i && t.length > 0, h = a < 725;
651
+ ), _ = l.reduce((w, A) => w + A.amount, 0), k = b.reduce((w, A) => w + A.amount, 0), v = C - _ + k, F = i && t.length > 0, h = a < 725;
652
652
  return /* @__PURE__ */ o(s, { sx: { mx: h ? 16 : 0, my: h ? 24 : 42 }, children: [
653
653
  /* @__PURE__ */ o(
654
654
  s,
@@ -665,7 +665,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
665
665
  {
666
666
  amount: C,
667
667
  isMobile: h,
668
- label: M(n.cash_and_bank, c.length)
668
+ label: $(n.cash_and_bank, c.length)
669
669
  }
670
670
  ),
671
671
  h && /* @__PURE__ */ e(D, {}),
@@ -695,7 +695,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
695
695
  {
696
696
  amount: _,
697
697
  isMobile: h,
698
- label: M(n.to_be_paid_out, l.length),
698
+ label: $(n.to_be_paid_out, l.length),
699
699
  symbol: h ? "-" : void 0
700
700
  }
701
701
  ),
@@ -731,8 +731,8 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
731
731
  }
732
732
  )
733
733
  ] });
734
- }, Ot = T(Lt), Nt = ({ handleNextStep: a }) => {
735
- const { completeOnboarding: n } = he(), { cashflow: t } = O(), i = le();
734
+ }, Nt = T(Lt), Ot = ({ handleNextStep: a }) => {
735
+ const { completeOnboarding: n } = he(), { cashflow: t } = N(), i = le();
736
736
  return /* @__PURE__ */ o(s, { children: [
737
737
  /* @__PURE__ */ e(ue, { pb: 12, children: t.welcome_title }),
738
738
  /* @__PURE__ */ e(
@@ -745,9 +745,9 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
745
745
  children: t.welcome_sub_title
746
746
  }
747
747
  ),
748
- /* @__PURE__ */ e(N, { pb: 32, children: t.welcome_description }),
748
+ /* @__PURE__ */ e(O, { pb: 32, children: t.welcome_description }),
749
749
  /* @__PURE__ */ o(s, { direction: "column", mb: 32, spacing: 32, children: [
750
- /* @__PURE__ */ o(N, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
750
+ /* @__PURE__ */ o(O, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
751
751
  /* @__PURE__ */ e(
752
752
  I,
753
753
  {
@@ -763,7 +763,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
763
763
  ),
764
764
  t.bullet_one
765
765
  ] }),
766
- /* @__PURE__ */ o(N, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
766
+ /* @__PURE__ */ o(O, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
767
767
  /* @__PURE__ */ e(
768
768
  I,
769
769
  {
@@ -779,7 +779,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
779
779
  ),
780
780
  t.bullet_two
781
781
  ] }),
782
- /* @__PURE__ */ o(N, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
782
+ /* @__PURE__ */ o(O, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
783
783
  /* @__PURE__ */ e(
784
784
  I,
785
785
  {
@@ -801,25 +801,25 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
801
801
  /* @__PURE__ */ e(G, { onClick: n, variant: "outlined", children: t.skip_button })
802
802
  ] })
803
803
  ] });
804
- }, kt = T(Nt), Oe = "https://content.moneydesktop.com/storage/MD_Assets/md/cashflow", ze = {
805
- CASHFLOW_ONBOARDING: `${Oe}/cashflow-onboarding.png`,
806
- CASHFLOW_LOADING_ANIMATION: `${Oe}/loading-animation.gif`
804
+ }, kt = T(Ot), Ne = "https://content.moneydesktop.com/storage/MD_Assets/md/cashflow", ze = {
805
+ CASHFLOW_ONBOARDING: `${Ne}/cashflow-onboarding.png`,
806
+ CASHFLOW_LOADING_ANIMATION: `${Ne}/loading-animation.gif`
807
807
  }, Ht = () => {
808
- const { cashflow: a } = O();
808
+ const { cashflow: a } = N();
809
809
  return /* @__PURE__ */ o(f.Fragment, { children: [
810
810
  /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("img", { alt: "Loading", src: ze.CASHFLOW_LOADING_ANIMATION }) }),
811
811
  /* @__PURE__ */ e(ue, { pb: 12, children: a.loading_title }),
812
- /* @__PURE__ */ e(N, { children: a.loading_description })
812
+ /* @__PURE__ */ e(O, { children: a.loading_description })
813
813
  ] });
814
- }, Ft = T(Ht), Wt = at`
814
+ }, Ft = T(Ht), Mt = at`
815
815
  from {
816
816
  transform: rotate(0deg);
817
817
  }
818
818
  to {
819
819
  transform: rotate(360deg);
820
820
  }
821
- `, $t = () => {
822
- const { addRepeatingTransaction: a, repeatingTransactions: n } = q(), { cashflow: t, common: i } = O(), { user: g } = He(), { completeOnboarding: x } = he(), { isDirty: m } = V(), { isMobile: p } = pe(), { isCopyLoaded: c, setDisplayedDate: r } = X(), { filter: d, setFilter: l, transactions: b } = Fe(), C = le(), [_, k] = ee(!0), [v, F] = f.useState(pt.EveryMonth), [h, S] = f.useState(1), [A, w] = f.useState(15), [z, re] = ee(!1), [K, J] = ee(1), [R, me] = ee([]), [Z, H] = ee(""), W = f.useMemo(
821
+ `, Wt = () => {
822
+ const { addRepeatingTransaction: a, repeatingTransactions: n } = q(), { cashflow: t, common: i } = N(), { user: g } = He(), { completeOnboarding: x } = he(), { isDirty: m } = V(), { isMobile: p } = pe(), { isCopyLoaded: c, setDisplayedDate: r } = X(), { filter: d, setFilter: l, transactions: b } = Fe(), C = le(), [_, k] = ee(!0), [v, F] = f.useState(pt.EveryMonth), [h, w] = f.useState(1), [A, S] = f.useState(15), [z, re] = ee(!1), [K, J] = ee(1), [R, me] = ee([]), [Z, H] = ee(""), M = f.useMemo(
823
823
  () => b.find((y) => y.guid === Z),
824
824
  [Z, b]
825
825
  ), Be = !!n.filter(
@@ -827,8 +827,8 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
827
827
  ).length, be = async () => {
828
828
  J(2), r(
829
829
  // Beginning of the month, 90 days before today
830
- mt(je($(), 90)),
831
- $()
830
+ mt(je(W(), 90)),
831
+ W()
832
832
  ), l({ ...d, custom: _e }), J(3);
833
833
  }, Ue = async () => {
834
834
  if (!(R.length < 1)) {
@@ -841,7 +841,8 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
841
841
  //user
842
842
  merchant_guid: E.merchant_guid,
843
843
  description: E.feed_description || E.description,
844
- predicted_occurs_on: dt(xe, { representation: "date" }),
844
+ // Do I need to use format here instead of formatISO?
845
+ predicted_occurs_on: dt(xe, "yyyy-MM-dd"),
845
846
  recurrence_day: xe.getDay(),
846
847
  recurrence_type: v,
847
848
  repeating_transaction_type: De.Income,
@@ -853,7 +854,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
853
854
  }
854
855
  await x();
855
856
  }
856
- }, Pe = !W && _ || !W && R.length < 1;
857
+ }, Pe = !M && _ || !M && R.length < 1;
857
858
  return c ? /* @__PURE__ */ o(
858
859
  I,
859
860
  {
@@ -894,8 +895,8 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
894
895
  },
895
896
  children: [
896
897
  /* @__PURE__ */ e(ue, { pb: 12, children: t.add_income_title }),
897
- /* @__PURE__ */ e(N, { mb: 24, children: t.add_income_description }),
898
- R.length > 0 && !W && /* @__PURE__ */ o(P, { children: [
898
+ /* @__PURE__ */ e(O, { mb: 24, children: t.add_income_description }),
899
+ R.length > 0 && !M && /* @__PURE__ */ o(P, { children: [
899
900
  /* @__PURE__ */ e(ne, { children: R.map((y, E) => /* @__PURE__ */ o(f.Fragment, { children: [
900
901
  /* @__PURE__ */ e(ut, { bgcolor: "background.paper", children: ft(
901
902
  U(y.nextDate || y.date)
@@ -928,31 +929,31 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
928
929
  }
929
930
  }
930
931
  ),
931
- !Be && m && /* @__PURE__ */ e(N, { color: "error", mt: 16, children: t.confirm_error }),
932
- W && /* @__PURE__ */ o(P, { children: [
932
+ !Be && m && /* @__PURE__ */ e(O, { color: "error", mt: 16, children: t.confirm_error }),
933
+ M && /* @__PURE__ */ o(P, { children: [
933
934
  /* @__PURE__ */ e(
934
935
  lt,
935
936
  {
936
937
  bgcolor: "background.paper",
937
938
  firstDay: h,
938
939
  frequency: v,
939
- onFirstDayChange: S,
940
+ onFirstDayChange: w,
940
941
  onFrequencyChange: F,
941
- onSecondDayChange: w,
942
+ onSecondDayChange: S,
942
943
  secondDay: A,
943
- transaction: W
944
+ transaction: M
944
945
  }
945
946
  ),
946
947
  /* @__PURE__ */ o(s, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
947
948
  /* @__PURE__ */ e(
948
949
  G,
949
950
  {
950
- "aria-disabled": !W,
951
+ "aria-disabled": !M,
951
952
  onClick: () => {
952
953
  const y = [...R];
953
954
  y.push({
954
- ...W,
955
- nextDate: ve(v, Ie(W.date)),
955
+ ...M,
956
+ nextDate: ve(v, Ie(M.date)),
956
957
  frequency: v
957
958
  }), me(y), H("");
958
959
  },
@@ -972,7 +973,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
972
973
  )
973
974
  ] })
974
975
  ] }),
975
- R.length > 0 && !W && /* @__PURE__ */ o(s, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
976
+ R.length > 0 && !M && /* @__PURE__ */ o(s, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
976
977
  /* @__PURE__ */ e(
977
978
  G,
978
979
  {
@@ -983,7 +984,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
983
984
  {
984
985
  name: "progress_activity",
985
986
  sx: {
986
- animation: `${Wt} 2s linear infinite`
987
+ animation: `${Mt} 2s linear infinite`
987
988
  }
988
989
  }
989
990
  ) : null,
@@ -999,35 +1000,35 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
999
1000
  ]
1000
1001
  }
1001
1002
  ) : /* @__PURE__ */ e(oe, {});
1002
- }, Mt = T($t), Gt = ({ onBackClick: a, sx: n = {} }) => {
1003
+ }, $t = T(Wt), Gt = ({ onBackClick: a, sx: n = {} }) => {
1003
1004
  const {
1004
1005
  selectedAccounts: t,
1005
1006
  selectedAccountGuids: i,
1006
1007
  setSelectedAccounts: g,
1007
1008
  shouldDisableNextDate: x,
1008
1009
  shouldDisablePrevDate: m
1009
- } = X(), { onEvent: p } = ke(), { clientConfig: c } = Ve(), { visibleCashAccounts: r } = Ne(), { setFilter: d } = Fe(), { userProfile: l } = He(), { dateRange: b, setSelectedCashAccounts: C } = V(), { loadRepeatingTransactions: _, income: k, isDataLoaded: v, setDateRange: F } = q(), { cashflow: h, recurring: S } = O(), { isCopyLoaded: A, isInitialized: w } = X(), re = c?.master?.deep_link_params?.view === "manage_income", [K, J] = f.useState(re);
1010
+ } = X(), { onEvent: p } = ke(), { clientConfig: c } = Ve(), { visibleCashAccounts: r } = Oe(), { setFilter: d } = Fe(), { userProfile: l } = He(), { dateRange: b, setSelectedCashAccounts: C } = V(), { loadRepeatingTransactions: _, income: k, isDataLoaded: v, setDateRange: F } = q(), { cashflow: h, recurring: w } = N(), { isCopyLoaded: A, isInitialized: S } = X(), re = c?.master?.deep_link_params?.view === "manage_income", [K, J] = f.useState(re);
1010
1011
  f.useEffect(() => {
1011
- w && (F(b), _().finally());
1012
- }, [w]), f.useEffect(() => {
1012
+ S && (F(b), _().finally());
1013
+ }, [S]), f.useEffect(() => {
1013
1014
  g(r);
1014
1015
  }, [r]), f.useEffect(() => {
1015
1016
  const me = r.map((H) => H.guid), Z = t.filter(
1016
1017
  (H) => i.includes(H.guid) && me.includes(H.guid)
1017
1018
  );
1018
1019
  C(Z), d({
1019
- dateRange: { start: je($(), 90), end: gt() },
1020
+ dateRange: { start: je(W(), 90), end: gt() },
1020
1021
  accounts: Z.map((H) => H.guid)
1021
1022
  });
1022
1023
  }, [r, t]);
1023
1024
  const R = v && !l?.has_completed_cash_flow_onboarding && !k.length;
1024
- return !A || !w ? /* @__PURE__ */ e(oe, {}) : R ? /* @__PURE__ */ e(
1025
+ return !A || !S ? /* @__PURE__ */ e(oe, {}) : R ? /* @__PURE__ */ e(
1025
1026
  Ae,
1026
1027
  {
1027
1028
  onBackClick: a,
1028
1029
  sx: { height: "100%", overflow: "auto" },
1029
1030
  title: h.title,
1030
- children: /* @__PURE__ */ e(Mt, {})
1031
+ children: /* @__PURE__ */ e($t, {})
1031
1032
  }
1032
1033
  ) : /* @__PURE__ */ o(
1033
1034
  Ae,
@@ -1035,7 +1036,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
1035
1036
  accountOptions: r,
1036
1037
  actions: [
1037
1038
  {
1038
- label: S.action_title,
1039
+ label: w.action_title,
1039
1040
  iconName: "credit_card_gear",
1040
1041
  onClick: () => {
1041
1042
  J(!0), p(Ee.CASH_FLOW_CLICK_SETTINGS);
@@ -1056,7 +1057,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
1056
1057
  sx: n,
1057
1058
  title: h.title,
1058
1059
  children: [
1059
- /* @__PURE__ */ e(Ot, {}),
1060
+ /* @__PURE__ */ e(Nt, {}),
1060
1061
  /* @__PURE__ */ e(Rt, {}),
1061
1062
  /* @__PURE__ */ e(
1062
1063
  Ge,
@@ -1065,15 +1066,15 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
1065
1066
  isOpen: K,
1066
1067
  onClose: () => J(!1),
1067
1068
  shouldShowHeaderBorders: !1,
1068
- title: S.action_title,
1069
+ title: w.action_title,
1069
1070
  children: /* @__PURE__ */ e(Ze, { defaultSelectedTab: re ? 1 : 0 })
1070
1071
  }
1071
1072
  )
1072
1073
  ]
1073
1074
  }
1074
1075
  );
1075
- }, Wn = T(Gt);
1076
- class $n {
1076
+ }, Mn = T(Gt);
1077
+ class Wn {
1077
1078
  fetchInstance;
1078
1079
  constructor(n, t, i) {
1079
1080
  this.fetchInstance = new bt(n, t, void 0, i);
@@ -1093,9 +1094,9 @@ class $n {
1093
1094
  updateCashflowSequence = async (n) => this.fetchInstance.put(`${B.CASHFLOW_SEQUENCES}/${n.guid}`, n).then((t) => t.cashflow_sequence);
1094
1095
  }
1095
1096
  export {
1096
- $n as CashflowApi,
1097
+ Wn as CashflowApi,
1097
1098
  Fn as CashflowMiniWidget,
1098
- Mt as CashflowOnboarding,
1099
+ $t as CashflowOnboarding,
1099
1100
  jn as CashflowStore,
1100
- Wn as CashflowWidget
1101
+ Mn as CashflowWidget
1101
1102
  };
@@ -30,7 +30,7 @@ import Ue from "@mui/material/AccordionSummary";
30
30
  import Ve from "@mui/material/CardHeader";
31
31
  import { u as Ye } from "../useDimensions-27p2evRx.mjs";
32
32
  import { C as qe } from "../ConnectionsDrawer-DHJ7qdWL.mjs";
33
- import { R as Je } from "../RecurringSettings-DDaGTnfz.mjs";
33
+ import { R as Je } from "../RecurringSettings-BsP-YKPS.mjs";
34
34
  import Qe from "@mui/material/TextField";
35
35
  import { u as Ce } from "../useScreenSize-B6JyS_Lj.mjs";
36
36
  import { a as Ze } from "../Dialog-CWW597AF.mjs";
@@ -8,8 +8,8 @@ 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-DDaGTnfz.mjs";
12
- import { M as En } from "../RecurringSettings-DDaGTnfz.mjs";
11
+ import { R as Ee } from "../RecurringSettings-BsP-YKPS.mjs";
12
+ import { M as En } from "../RecurringSettings-BsP-YKPS.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";
@@ -41,8 +41,8 @@ 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
- import { b as mt } from "../ManageIncome-CQPFKdYB.mjs";
45
- import { c as kn, M as Wn, S as $n } from "../ManageIncome-CQPFKdYB.mjs";
44
+ import { b as mt } from "../ManageIncome-CMN_8uep.mjs";
45
+ import { c as kn, M as Wn, S as $n } from "../ManageIncome-CMN_8uep.mjs";
46
46
  import { f as L } from "../NumberFormatting-Buh7u8Oi.mjs";
47
47
  import { D as xe } from "../Drawer-kEE73B87.mjs";
48
48
  import { b as N } from "../Localization-2MODESHW.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.2.12",
3
+ "version": "7.2.13-alpha.mm0",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",