@mx-cartographer/experiences 7.12.17 → 7.13.1

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.
Files changed (55) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{AccountDetailsHeader-BkEF1gO-.mjs → AccountDetailsHeader-D9gbTbUt.mjs} +31 -31
  3. package/dist/{AccountFields-C_dcdCM7.mjs → AccountFields-CxqONzjY.mjs} +6 -6
  4. package/dist/AccountListItem-LcJVJysf.mjs +90 -0
  5. package/dist/{AccountStore-ypdfueW9.mjs → AccountStore-BNlTuxWN.mjs} +1 -1
  6. package/dist/{BudgetUtil--_QXyszn.mjs → BudgetUtil-CLhRnCoX.mjs} +75 -75
  7. package/dist/{CashflowStore-DEdQJU5i.mjs → CashflowStore-D3MKniVM.mjs} +11 -11
  8. package/dist/{CategorySelectorDrawer-wfUTIbLR.mjs → CategorySelectorDrawer-DYHNBd2v.mjs} +31 -31
  9. package/dist/{ConnectDrawer-CioFo6Wy.mjs → ConnectDrawer-C0wjwcJt.mjs} +1 -1
  10. package/dist/{ConnectionsDrawer-DqhSaMrJ.mjs → ConnectionsDrawer-IA7vnv1J.mjs} +1 -1
  11. package/dist/{Drawer-DV4NTsFg.mjs → Drawer-Bbe4AMB1.mjs} +5 -5
  12. package/dist/{GoalStore-0bd-Upkc.mjs → GoalStore-DB58sKTC.mjs} +8 -8
  13. package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
  14. package/dist/{Help-CDu1Fvrc.mjs → Help-CpLfyvPv.mjs} +24 -24
  15. package/dist/{LineChart-B1qbKR8q.mjs → LineChart-DBSlRSEm.mjs} +102 -102
  16. package/dist/{ManageIncome-BnWWjP2g.mjs → ManageIncome-QvqN555q.mjs} +62 -62
  17. package/dist/{MiniWidgetContainer-Cu72GNsE.mjs → MiniWidgetContainer-xLWSV6Wz.mjs} +13 -13
  18. package/dist/{NotificationSettings-BH2yOwTB.mjs → NotificationSettings-DU3vJh5J.mjs} +139 -139
  19. package/dist/{OriginalBalanceAction-BM6rT_Cn.mjs → OriginalBalanceAction-DjpvVVFz.mjs} +6 -6
  20. package/dist/{RecurringSettings-BmXtfHtK.mjs → RecurringSettings-DdOcok2e.mjs} +2 -2
  21. package/dist/{RecurringTransactions-CYNpe_RS.mjs → RecurringTransactions-BOzBqfdg.mjs} +11 -11
  22. package/dist/{RecurringTransactionsStore-BD-OfVZ-.mjs → RecurringTransactionsStore-CcfPS0d3.mjs} +1 -1
  23. package/dist/{SpendingLegend-Bq6aXMNh.mjs → SpendingLegend-CJjjTGBw.mjs} +76 -76
  24. package/dist/{StatusIndicator-BV3oFzxo.mjs → StatusIndicator-CIKUOoN_.mjs} +53 -53
  25. package/dist/{TransactionDetails-DYlTwSDt.mjs → TransactionDetails-BpcWeXNU.mjs} +350 -350
  26. package/dist/{ViewMoreMicroCard-BhG9hCoO.mjs → ViewMoreMicroCard-ApUBfGOX.mjs} +107 -106
  27. package/dist/{WidgetContainer-B0ncgABX.mjs → WidgetContainer-D_iaToWJ.mjs} +12 -12
  28. package/dist/accounts/index.es.js +107 -107
  29. package/dist/analytics/index.es.js +18 -18
  30. package/dist/budgets/index.es.js +182 -182
  31. package/dist/cashflow/index.es.js +223 -223
  32. package/dist/categories/index.es.js +1 -1
  33. package/dist/common/index.es.js +54 -64
  34. package/dist/common/types/Beat.d.ts +2 -0
  35. package/dist/dashboard/index.es.js +9 -9
  36. package/dist/debts/index.es.js +469 -469
  37. package/dist/finstrong/index.es.js +68 -68
  38. package/dist/goals/index.es.js +437 -437
  39. package/dist/help/index.es.js +2 -2
  40. package/dist/insights/index.es.js +159 -159
  41. package/dist/investments/index.es.js +292 -292
  42. package/dist/merchants/index.es.js +12 -12
  43. package/dist/microinsights/beaticons/InstitutionLogoIcon.d.ts +5 -0
  44. package/dist/microinsights/beaticons/index.d.ts +1 -0
  45. package/dist/microinsights/index.es.js +1 -1
  46. package/dist/networth/index.es.js +175 -168
  47. package/dist/notifications/index.es.js +13 -13
  48. package/dist/recurringtransactions/index.es.js +69 -69
  49. package/dist/settings/index.es.js +187 -187
  50. package/dist/spending/index.es.js +58 -58
  51. package/dist/transactions/index.es.js +70 -70
  52. package/dist/trends/index.es.js +16 -16
  53. package/package.json +1 -1
  54. package/dist/AccountListItem-BAf03YhK.mjs +0 -90
  55. package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
@@ -1,60 +1,60 @@
1
1
  import { jsxs as o, Fragment as B, jsx as e } from "react/jsx-runtime";
2
- import p, { useState as Y } from "react";
2
+ import p, { useState as Q } from "react";
3
3
  import { observer as T } from "mobx-react-lite";
4
- import { addMonths as Xe } from "date-fns/addMonths";
4
+ import { addMonths as Ve } from "date-fns/addMonths";
5
5
  import { startOfToday as W } from "date-fns/startOfToday";
6
6
  import D from "@mui/material/Box";
7
7
  import v from "@mui/material/Divider";
8
8
  import s from "@mui/material/Stack";
9
9
  import se from "@mui/material/styles/useTheme";
10
- import { Text as m, P as N, Icon as M, InstitutionLogo as Ce, H2 as de, H3 as Ve } from "@mxenabled/mxui";
11
- import { G as Ye, t as me, u as L, p as ce, d as Ne, b as P, i as U, g as ke, a as Qe, h as He, o as Ke } from "../hooks-BxkfR-Ff.mjs";
10
+ import { Text as m, P as N, Icon as M, InstitutionLogo as ye, H2 as de, H3 as Ye } from "@mxenabled/mxui";
11
+ import { G as Qe, t as me, u as L, p as ce, d as Ne, b as P, i as U, g as ke, a as Ke, h as Oe, o as Xe } from "../hooks-BxkfR-Ff.mjs";
12
12
  import { C as R } from "../CurrencyText-CA-E5N_y.mjs";
13
- import { I as ue } from "../CashflowStore-DEdQJU5i.mjs";
14
- import { C as qn } from "../CashflowStore-DEdQJU5i.mjs";
13
+ import { I as ue } from "../CashflowStore-D3MKniVM.mjs";
14
+ import { C as qn } from "../CashflowStore-D3MKniVM.mjs";
15
15
  import { u as he } from "../useScreenSize-B6JyS_Lj.mjs";
16
16
  import { L as Z } from "../Loader-D3rjKx72.mjs";
17
17
  import { b as $ } from "../Localization-CPkpIwIx.mjs";
18
- import { M as Je } from "../MiniWidgetContainer-Cu72GNsE.mjs";
18
+ import { M as Je } from "../MiniWidgetContainer-xLWSV6Wz.mjs";
19
19
  import { E as Ze } from "../EmptyState-DHAkGsjk.mjs";
20
- import { u as Oe } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
21
- import { R as et } from "../RecurringSettings-BmXtfHtK.mjs";
20
+ import { u as Fe } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
21
+ import { R as et } from "../RecurringSettings-DdOcok2e.mjs";
22
22
  import tt from "@mui/material/Tabs";
23
- import ye from "@mui/material/Tab";
23
+ import Ce from "@mui/material/Tab";
24
24
  import { getUnixTime as z } from "date-fns/getUnixTime";
25
25
  import J from "@mui/material/List";
26
26
  import ee from "@mui/material/ListItem";
27
- import { A as nt } from "../AccountListItem-BAf03YhK.mjs";
28
- import { f as q, D as X } from "../DateFormats-BMpMrZpW.mjs";
27
+ import { A as nt } from "../AccountListItem-LcJVJysf.mjs";
28
+ import { f as q, D as V } from "../DateFormats-BMpMrZpW.mjs";
29
29
  import ot from "@mui/material/ListSubheader";
30
- import { f as K } from "../NumberFormatting-QCaNwbjv.mjs";
31
- import { isAfter as Fe } from "date-fns/isAfter";
30
+ import { f as X } from "../NumberFormatting-QCaNwbjv.mjs";
31
+ import { isAfter as He } from "date-fns/isAfter";
32
32
  import { isBefore as We } from "date-fns/isBefore";
33
33
  import { isToday as $e } from "date-fns/isToday";
34
- import { addDays as Se } from "date-fns/addDays";
35
- import { alpha as at, keyframes as it } from "@mui/material/styles";
34
+ import { addDays as we } from "date-fns/addDays";
35
+ import { alpha as it, keyframes as at } from "@mui/material/styles";
36
36
  import { DataGridPro as rt } from "@mui/x-data-grid-pro";
37
- import { T as we } from "../TabContentContainer-j01JYR_7.mjs";
37
+ import { T as _e } from "../TabContentContainer-j01JYR_7.mjs";
38
38
  import G from "@mui/material/Button";
39
- import { M as st, S as ct, i as lt, d as _e, c as dt } from "../ManageIncome-BnWWjP2g.mjs";
40
- import { D as Ge } from "../Drawer-DV4NTsFg.mjs";
39
+ import { M as st, S as ct, i as lt, d as Se, c as dt } from "../ManageIncome-QvqN555q.mjs";
40
+ import { D as Ge } from "../Drawer-Bbe4AMB1.mjs";
41
41
  import { subDays as Me } from "date-fns/subDays";
42
42
  import { endOfToday as mt } from "date-fns/endOfToday";
43
- import { W as ut } from "../WidgetContainer-B0ncgABX.mjs";
43
+ import { W as ut } from "../WidgetContainer-D_iaToWJ.mjs";
44
44
  import { A as Ie } from "../Analytics-BYItVAe-.mjs";
45
- import { A as Q } from "../Account-BiB1F8lL.mjs";
45
+ import { A as K } from "../Account-BiB1F8lL.mjs";
46
46
  import { formatISO as ht } from "date-fns/formatISO";
47
47
  import { fromUnixTime as De } from "date-fns/fromUnixTime";
48
48
  import { startOfMonth as pt } from "date-fns/startOfMonth";
49
- import { S as ft, a as gt } from "../StatusIndicator-BV3oFzxo.mjs";
50
- import { F as bt, R as ve, e as Ae } from "../RecurringTransactions-CYNpe_RS.mjs";
49
+ import { S as ft, a as gt } from "../StatusIndicator-CIKUOoN_.mjs";
50
+ import { F as bt, R as ve, e as Ae } from "../RecurringTransactions-BOzBqfdg.mjs";
51
51
  import { h as xt } from "../DateUtil-wcYTmDRD.mjs";
52
- import { F as Ct, A as j } from "../Fetch-B6tMJC1r.mjs";
53
- const V = () => {
54
- if (!p.useContext(Ye))
52
+ import { F as yt, A as j } from "../Fetch-B6tMJC1r.mjs";
53
+ const Y = () => {
54
+ if (!p.useContext(Qe))
55
55
  throw new Error("useCashflowUiStore() must be used within the GlobalDataContext");
56
56
  return me().uiStore;
57
- }, yt = ({ remaining: a }) => {
57
+ }, Ct = ({ remaining: i }) => {
58
58
  const { cashflow: n } = L();
59
59
  return /* @__PURE__ */ o(B, { children: [
60
60
  /* @__PURE__ */ e(
@@ -62,88 +62,88 @@ const V = () => {
62
62
  {
63
63
  sx: {
64
64
  borderRadius: "1px",
65
- backgroundColor: a < 0 ? "error.main" : a > 0 ? "success.main" : "warning.main",
65
+ backgroundColor: i < 0 ? "error.main" : i > 0 ? "success.main" : "warning.main",
66
66
  height: 6,
67
67
  width: 6
68
68
  }
69
69
  }
70
70
  ),
71
71
  /* @__PURE__ */ e(m, { bold: !0, sx: { flexGrow: 1, fontSize: 12 }, children: n.remaining_cash }),
72
- /* @__PURE__ */ e(R, { amount: a, bold: !0, sx: { fontSize: 12 } })
72
+ /* @__PURE__ */ e(R, { amount: i, bold: !0, sx: { fontSize: 12 } })
73
73
  ] });
74
- }, pe = T(yt), St = () => {
75
- const a = se(), { availableWidth: n } = ce(), { isMobile: t } = he(), { visibleCashAccounts: i, visibleCashBalance: f } = Ne(), { selectedAccountGuids: u } = P(), { cashflow: c } = L(), {
74
+ }, pe = T(Ct), wt = () => {
75
+ const i = se(), { availableWidth: n } = ce(), { isMobile: t } = he(), { visibleCashAccounts: a, visibleCashBalance: f } = Ne(), { selectedAccountGuids: u } = P(), { cashflow: c } = L(), {
76
76
  daysUntilNextIncome: l,
77
77
  expensesTilNextIncome: g,
78
78
  selectedCashAccounts: r,
79
79
  setNextIncome: h,
80
80
  setSelectedCashAccounts: d,
81
81
  setUpcomingExpenses: x
82
- } = V(), { isDataLoaded: S, nextIncomeRecurrence: w, upcomingExpenses: A } = U();
82
+ } = Y(), { isDataLoaded: w, nextIncomeRecurrence: _, upcomingExpenses: A } = U();
83
83
  p.useEffect(() => {
84
84
  d(
85
- i.filter((C) => u.includes(C.guid))
85
+ a.filter((y) => u.includes(y.guid))
86
86
  );
87
- }, [i, u]), p.useEffect(() => {
88
- w && h(w), x(A);
89
- }, [w, A]);
90
- const _ = p.useMemo(
91
- () => i.filter((C) => u.includes(C.guid)).reduce((C, I) => C + (I?.balance || 0), 0),
87
+ }, [a, u]), p.useEffect(() => {
88
+ _ && h(_), x(A);
89
+ }, [_, A]);
90
+ const S = p.useMemo(
91
+ () => a.filter((y) => u.includes(y.guid)).reduce((y, I) => y + (I?.balance || 0), 0),
92
92
  [u, A]
93
93
  ), k = p.useMemo(
94
- () => g.filter((C) => u.includes(C.accountGuid || "")).reduce((C, I) => C + I.amount, 0),
94
+ () => g.filter((y) => u.includes(y.accountGuid || "")).reduce((y, I) => y + I.amount, 0),
95
95
  [u, g]
96
96
  ), b = p.useMemo(
97
- () => _ - k,
98
- [_, k]
97
+ () => S - k,
98
+ [S, k]
99
99
  );
100
- return S ? /* @__PURE__ */ e(D, { className: "mx-cashflow", pl: 16, pr: 16, pt: 16, children: n > 710 ? /* @__PURE__ */ o(
100
+ return w ? /* @__PURE__ */ e(D, { className: "mx-cashflow", pl: 16, pr: 16, pt: 16, children: n > 710 ? /* @__PURE__ */ o(
101
101
  s,
102
102
  {
103
- border: `1px solid ${a.palette.border.light}`,
103
+ border: `1px solid ${i.palette.border.light}`,
104
104
  borderRadius: 1,
105
105
  direction: "row",
106
106
  justifyContent: "space-between",
107
107
  px: 24,
108
108
  children: [
109
109
  /* @__PURE__ */ o(s, { pb: 14, pt: 12, children: [
110
- /* @__PURE__ */ e(R, { amount: _, variant: "H2" }),
111
- /* @__PURE__ */ e(N, { variant: "XSmall", whiteSpace: "nowrap", children: $(
110
+ /* @__PURE__ */ e(R, { amount: S, variant: "h2" }),
111
+ /* @__PURE__ */ e(N, { variant: "caption", whiteSpace: "nowrap", children: $(
112
112
  c.total_cash_accounts,
113
113
  r.length
114
114
  ) })
115
115
  ] }),
116
116
  /* @__PURE__ */ e(s, { pt: 18, children: /* @__PURE__ */ e(M, { name: "remove" }) }),
117
117
  /* @__PURE__ */ o(s, { pb: 14, pt: 12, children: [
118
- /* @__PURE__ */ e(R, { amount: k, variant: "H2" }),
119
- /* @__PURE__ */ e(N, { variant: "XSmall", whiteSpace: "nowrap", children: $(c.expenses_due, g.length) })
118
+ /* @__PURE__ */ e(R, { amount: k, variant: "h2" }),
119
+ /* @__PURE__ */ e(N, { variant: "caption", whiteSpace: "nowrap", children: $(c.expenses_due, g.length) })
120
120
  ] }),
121
121
  /* @__PURE__ */ e(s, { pt: 18, children: /* @__PURE__ */ e(M, { name: "equal" }) }),
122
122
  /* @__PURE__ */ o(s, { pb: 14, pr: 24, pt: 12, children: [
123
- /* @__PURE__ */ e(R, { amount: b, variant: "H2" }),
123
+ /* @__PURE__ */ e(R, { amount: b, variant: "h2" }),
124
124
  /* @__PURE__ */ o(s, { alignItems: "center", direction: "row", gap: 8, children: [
125
- /* @__PURE__ */ e(N, { variant: "XSmall", whiteSpace: "nowrap", children: c.available_to_spend }),
125
+ /* @__PURE__ */ e(N, { variant: "caption", whiteSpace: "nowrap", children: c.available_to_spend }),
126
126
  /* @__PURE__ */ e(ue, { body: c.tooltip_body, title: c.tooltip_title })
127
127
  ] })
128
128
  ] }),
129
- /* @__PURE__ */ e(s, { borderLeft: `1px solid ${a.palette.border.light}`, pb: 12, pl: 24, pt: 12, children: /* @__PURE__ */ o(B, { children: [
130
- /* @__PURE__ */ e(m, { variant: "H2", children: $(c.days, l) }),
131
- /* @__PURE__ */ e(N, { variant: "XSmall", whiteSpace: "nowrap", children: c.next_paycheck })
129
+ /* @__PURE__ */ e(s, { borderLeft: `1px solid ${i.palette.border.light}`, pb: 12, pl: 24, pt: 12, children: /* @__PURE__ */ o(B, { children: [
130
+ /* @__PURE__ */ e(m, { variant: "h2", children: $(c.days, l) }),
131
+ /* @__PURE__ */ e(N, { variant: "caption", whiteSpace: "nowrap", children: c.next_paycheck })
132
132
  ] }) })
133
133
  ]
134
134
  }
135
- ) : /* @__PURE__ */ o(s, { border: `1px solid ${a.palette.border.light}`, borderRadius: 1, children: [
135
+ ) : /* @__PURE__ */ o(s, { border: `1px solid ${i.palette.border.light}`, borderRadius: 1, children: [
136
136
  /* @__PURE__ */ o(s, { direction: "row", justifyContent: "space-between", p: 16, children: [
137
- /* @__PURE__ */ e(m, { variant: "Small", children: $(
137
+ /* @__PURE__ */ e(m, { variant: "body2", children: $(
138
138
  c.total_cash_accounts,
139
139
  r.length
140
140
  ) }),
141
- /* @__PURE__ */ e(R, { amount: f, bold: !0, variant: "XSmall" })
141
+ /* @__PURE__ */ e(R, { amount: f, bold: !0, variant: "caption" })
142
142
  ] }),
143
143
  /* @__PURE__ */ e(v, {}),
144
144
  /* @__PURE__ */ o(s, { direction: "row", justifyContent: "space-between", p: 16, children: [
145
- /* @__PURE__ */ e(m, { variant: "Small", children: $(c.expenses_due, g.length) }),
146
- /* @__PURE__ */ e(R, { amount: k, bold: !0, symbol: "-", variant: "XSmall" })
145
+ /* @__PURE__ */ e(m, { variant: "body2", children: $(c.expenses_due, g.length) }),
146
+ /* @__PURE__ */ e(R, { amount: k, bold: !0, symbol: "-", variant: "caption" })
147
147
  ] }),
148
148
  /* @__PURE__ */ e(v, {}),
149
149
  /* @__PURE__ */ e(
@@ -162,19 +162,19 @@ const V = () => {
162
162
  ),
163
163
  /* @__PURE__ */ e(v, {}),
164
164
  /* @__PURE__ */ o(s, { direction: "row", justifyContent: "space-between", p: 16, children: [
165
- /* @__PURE__ */ e(m, { variant: "Small", children: c.next_paycheck }),
166
- /* @__PURE__ */ e(m, { bold: !0, variant: "XSmall", children: $(c.days, l) })
165
+ /* @__PURE__ */ e(m, { variant: "body2", children: c.next_paycheck }),
166
+ /* @__PURE__ */ e(m, { bold: !0, variant: "caption", children: $(c.days, l) })
167
167
  ] })
168
168
  ] }) }) : /* @__PURE__ */ e(Z, { height: t ? 210 : 120 });
169
- }, wt = T(St), _t = ({
170
- onPrimaryCtaClick: a,
169
+ }, _t = T(wt), St = ({
170
+ onPrimaryCtaClick: i,
171
171
  onSecondaryCtaClick: n,
172
172
  sx: t = {}
173
173
  }) => {
174
- const { cashflow: i } = L(), { isInitialized: f } = P(), { loadRepeatingTransactionData: u, income: c, isDataLoaded: l, setDateRange: g } = U();
174
+ const { cashflow: a } = L(), { isInitialized: f } = P(), { loadRepeatingTransactionData: u, income: c, isDataLoaded: l, setDateRange: g } = U();
175
175
  p.useEffect(() => {
176
- g({ start: W(), end: Xe(W(), 1) }), l || u().finally();
177
- }, []), Oe({
176
+ g({ start: W(), end: Ve(W(), 1) }), l || u().finally();
177
+ }, []), Fe({
178
178
  widgetName: "CashflowMiniWidget",
179
179
  isLoaded: l
180
180
  });
@@ -183,28 +183,28 @@ const V = () => {
183
183
  Je,
184
184
  {
185
185
  className: "mx-exp-cashflow-miniwidget",
186
- onPrimaryCtaClick: a,
187
- primaryCtaLabel: i.primary_cta,
188
- subTitle: r || !l ? void 0 : i.sub_title,
186
+ onPrimaryCtaClick: i,
187
+ primaryCtaLabel: a.primary_cta,
188
+ subTitle: r || !l ? void 0 : a.sub_title,
189
189
  sx: { height: "100%", ...t },
190
- title: i.title,
190
+ title: a.title,
191
191
  children: [
192
192
  !l && /* @__PURE__ */ e(Z, {}),
193
193
  l && (r ? /* @__PURE__ */ e(
194
194
  Ze,
195
195
  {
196
- header: i.create,
196
+ header: a.create,
197
197
  icon: "local_atm",
198
198
  onClick: n,
199
- primaryButton: i.add_income,
199
+ primaryButton: a.add_income,
200
200
  primaryButtonStartIcon: "add",
201
- subText: i.create_description
201
+ subText: a.create_description
202
202
  }
203
- ) : /* @__PURE__ */ e(wt, {}))
203
+ ) : /* @__PURE__ */ e(_t, {}))
204
204
  ]
205
205
  }
206
206
  ) : /* @__PURE__ */ e(Z, {});
207
- }, Mn = T(_t), It = ({ remaining: a }) => /* @__PURE__ */ e(
207
+ }, Mn = T(St), It = ({ remaining: i }) => /* @__PURE__ */ e(
208
208
  ee,
209
209
  {
210
210
  sx: {
@@ -217,28 +217,28 @@ const V = () => {
217
217
  borderBottomRightRadius: "3px",
218
218
  minHeight: "auto"
219
219
  },
220
- children: /* @__PURE__ */ e(pe, { remaining: a })
220
+ children: /* @__PURE__ */ e(pe, { remaining: i })
221
221
  }
222
222
  );
223
- var te = /* @__PURE__ */ ((a) => (a.EXPENSE = "expense", a.INCOME = "income", a))(te || {});
224
- const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
223
+ var te = /* @__PURE__ */ ((i) => (i.EXPENSE = "expense", i.INCOME = "income", i))(te || {});
224
+ const Dt = ({ recurrence: i }) => /* @__PURE__ */ o(B, { children: [
225
225
  /* @__PURE__ */ o(ee, { sx: { display: "flex", alignItems: "center", gap: 16, px: 24, py: 12 }, children: [
226
226
  /* @__PURE__ */ o(s, { alignItems: "center", height: 32, width: 32, children: [
227
- /* @__PURE__ */ e(m, { bold: !0, sx: { fontSize: 11 }, children: q(a.expectedDate, X.MONTH) }),
228
- /* @__PURE__ */ e(m, { bold: !0, sx: { fontSize: 11 }, children: q(a.expectedDate, X.DAY) })
227
+ /* @__PURE__ */ e(m, { bold: !0, sx: { fontSize: 11 }, children: q(i.expectedDate, V.MONTH) }),
228
+ /* @__PURE__ */ e(m, { bold: !0, sx: { fontSize: 11 }, children: q(i.expectedDate, V.DAY) })
229
229
  ] }),
230
- /* @__PURE__ */ e(m, { sx: { flexGrow: 1, fontSize: 13 }, children: a.name }),
230
+ /* @__PURE__ */ e(m, { sx: { flexGrow: 1, fontSize: 13 }, children: i.name }),
231
231
  /* @__PURE__ */ e(
232
232
  R,
233
233
  {
234
- amount: a.amount,
234
+ amount: i.amount,
235
235
  bold: !0,
236
236
  sx: { textAlign: "right", fontSize: 13 }
237
237
  }
238
238
  )
239
239
  ] }),
240
240
  /* @__PURE__ */ e(v, {})
241
- ] }), Ee = T(Dt), vt = ({ total: a, type: n }) => {
241
+ ] }), Ee = T(Dt), vt = ({ total: i, type: n }) => {
242
242
  const { cashflow: t } = L();
243
243
  return /* @__PURE__ */ o(B, { children: [
244
244
  /* @__PURE__ */ o(
@@ -257,27 +257,27 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
257
257
  /* @__PURE__ */ e(m, { bold: !0, sx: { fontSize: 12 }, children: n === te.EXPENSE ? t.expenses : t.income }),
258
258
  /* @__PURE__ */ o(m, { bold: !0, sx: { fontSize: 13 }, children: [
259
259
  n === te.EXPENSE ? "-" : "+",
260
- K(a, "0,0.00")
260
+ X(i, "0,0.00")
261
261
  ] })
262
262
  ]
263
263
  }
264
264
  ),
265
265
  /* @__PURE__ */ e(v, {})
266
266
  ] });
267
- }, Te = T(vt), re = (a, n) => (t) => t.accountGuid === a.guid && ($e(t.expectedDate) || Fe(t.expectedDate, n.start)) && We(t.expectedDate, n.end), At = () => {
268
- const { availableWidth: a } = ce(), { cashflow: n } = L(), { upcomingExpenses: t, upcomingIncome: i } = U(), { dateRange: f, selectedCashAccounts: u } = V();
267
+ }, Te = T(vt), re = (i, n) => (t) => t.accountGuid === i.guid && ($e(t.expectedDate) || He(t.expectedDate, n.start)) && We(t.expectedDate, n.end), At = () => {
268
+ const { availableWidth: i } = ce(), { cashflow: n } = L(), { upcomingExpenses: t, upcomingIncome: a } = U(), { dateRange: f, selectedCashAccounts: u } = Y();
269
269
  return /* @__PURE__ */ o(s, { children: [
270
- /* @__PURE__ */ o(s, { direction: a < 400 ? "column" : "row", justifyContent: "space-between", children: [
270
+ /* @__PURE__ */ o(s, { direction: i < 400 ? "column" : "row", justifyContent: "space-between", children: [
271
271
  /* @__PURE__ */ e(m, { bold: !0, sx: { fontSize: 15, mb: 12, whiteSpace: "normal" }, children: n.accounts_breakdown }),
272
272
  /* @__PURE__ */ o(m, { bold: !0, sx: { fontSize: 15, mb: 12, whiteSpace: "normal" }, children: [
273
- q(f.start, X.FULL_MONTH_DAY),
273
+ q(f.start, V.FULL_MONTH_DAY),
274
274
  " -",
275
275
  " ",
276
- q(f.end, X.FULL_MONTH_DAY)
276
+ q(f.end, V.FULL_MONTH_DAY)
277
277
  ] })
278
278
  ] }),
279
279
  /* @__PURE__ */ e(s, { children: u.map((c) => {
280
- const l = i.filter(re(c, f)).sort((d, x) => z(d.expectedDate) - z(x.expectedDate)), g = t.filter(
280
+ const l = a.filter(re(c, f)).sort((d, x) => z(d.expectedDate) - z(x.expectedDate)), g = t.filter(
281
281
  re(c, f)
282
282
  ), r = l.reduce(
283
283
  (d, x) => d + x.amount,
@@ -337,23 +337,23 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
337
337
  }) })
338
338
  ] });
339
339
  }, Et = T(At), Tt = () => {
340
- const { availableWidth: a } = ce(), n = se(), { cashflow: t } = L(), { upcomingExpenses: i, upcomingIncome: f } = U(), { dateRange: u, selectedCashAccounts: c } = V(), l = [
340
+ const { availableWidth: i } = ce(), n = se(), { cashflow: t } = L(), { upcomingExpenses: a, upcomingIncome: f } = U(), { dateRange: u, selectedCashAccounts: c } = Y(), l = [
341
341
  {
342
342
  field: "account",
343
343
  flex: 1.5,
344
344
  headerName: t.accounts,
345
345
  renderCell: ({ value: { name: r, nickname: h, institution_guid: d, account_number: x } }) => {
346
- const S = h || r;
346
+ const w = h || r;
347
347
  return /* @__PURE__ */ o(s, { alignItems: "center", flexDirection: "row", gap: 12, children: [
348
348
  /* @__PURE__ */ e(
349
- Ce,
349
+ ye,
350
350
  {
351
351
  alt: t.institution_logo,
352
352
  institutionGuid: d || "",
353
353
  size: 16
354
354
  }
355
355
  ),
356
- /* @__PURE__ */ e(m, { variant: "body2", children: `${S} ${x ? `*${x}` : ""}` })
356
+ /* @__PURE__ */ e(m, { variant: "body2", children: `${w} ${x ? `*${x}` : ""}` })
357
357
  ] });
358
358
  }
359
359
  },
@@ -362,21 +362,21 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
362
362
  flex: 1,
363
363
  headerName: t.balance,
364
364
  type: "number",
365
- renderCell: (r) => /* @__PURE__ */ e(m, { color: n.palette.text.primary, variant: "Small", children: K(r.value, "0,0.00") })
365
+ renderCell: (r) => /* @__PURE__ */ e(m, { color: n.palette.text.primary, variant: "body2", children: X(r.value, "0,0.00") })
366
366
  },
367
367
  {
368
368
  field: "income",
369
369
  flex: 1,
370
370
  headerName: t.projected_income,
371
371
  type: "number",
372
- renderCell: (r) => /* @__PURE__ */ e(m, { color: n.palette.text.primary, variant: "Small", children: `+${K(r.value, "0,0.00")}` })
372
+ renderCell: (r) => /* @__PURE__ */ e(m, { color: n.palette.text.primary, variant: "body2", children: `+${X(r.value, "0,0.00")}` })
373
373
  },
374
374
  {
375
375
  field: "expenses",
376
376
  flex: 1.1,
377
377
  headerName: t.projected_expenses,
378
378
  type: "number",
379
- renderCell: (r) => /* @__PURE__ */ e(m, { color: n.palette.text.primary, variant: "Small", children: `-${K(r.value, "0,0.00")}` })
379
+ renderCell: (r) => /* @__PURE__ */ e(m, { color: n.palette.text.primary, variant: "body2", children: `-${X(r.value, "0,0.00")}` })
380
380
  },
381
381
  {
382
382
  field: "remaining",
@@ -389,18 +389,18 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
389
389
  m,
390
390
  {
391
391
  color: Math.sign(h) === -1 ? n.palette.error.main : n.palette.text.primary,
392
- variant: "Small",
393
- children: K(h, "0,0.00")
392
+ variant: "body2",
393
+ children: X(h, "0,0.00")
394
394
  }
395
395
  );
396
396
  }
397
397
  }
398
398
  ], g = p.useMemo(() => c.map((r) => {
399
- const h = i.filter(
400
- re(r, { start: W(), end: Se(W(), 30) })
401
- ).reduce((S, w) => S + w.amount, 0), d = f.filter(
402
- re(r, { start: W(), end: Se(W(), 30) })
403
- ).reduce((S, w) => S + w.amount, 0), x = (r.balance || 0) + d - h;
399
+ const h = a.filter(
400
+ re(r, { start: W(), end: we(W(), 30) })
401
+ ).reduce((w, _) => w + _.amount, 0), d = f.filter(
402
+ re(r, { start: W(), end: we(W(), 30) })
403
+ ).reduce((w, _) => w + _.amount, 0), x = (r.balance || 0) + d - h;
404
404
  return {
405
405
  account: r,
406
406
  balance: r.balance || 0,
@@ -409,7 +409,7 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
409
409
  expenses: h,
410
410
  remaining: x
411
411
  };
412
- }), [c, i, f]);
412
+ }), [c, a, f]);
413
413
  return /* @__PURE__ */ o(
414
414
  D,
415
415
  {
@@ -420,7 +420,7 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
420
420
  /* @__PURE__ */ o(
421
421
  s,
422
422
  {
423
- direction: a < 540 ? "column" : "row",
423
+ direction: i < 540 ? "column" : "row",
424
424
  justifyContent: "space-between",
425
425
  mb: 12,
426
426
  children: [
@@ -445,15 +445,15 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
445
445
  )
446
446
  ] }),
447
447
  /* @__PURE__ */ o(m, { bold: !0, sx: { fontSize: 15, whiteSpace: "normal" }, children: [
448
- q(u.start, X.FULL_MONTH_DAY),
448
+ q(u.start, V.FULL_MONTH_DAY),
449
449
  " -",
450
450
  " ",
451
- q(u.end, X.FULL_MONTH_DAY)
451
+ q(u.end, V.FULL_MONTH_DAY)
452
452
  ] })
453
453
  ]
454
454
  }
455
455
  ),
456
- a > 650 ? /* @__PURE__ */ e(
456
+ i > 650 ? /* @__PURE__ */ e(
457
457
  rt,
458
458
  {
459
459
  columnHeaderHeight: 48,
@@ -471,7 +471,7 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
471
471
  "& .MuiDataGrid-columnHeader .MuiIconButton-root": {
472
472
  color: n.palette.primary.main,
473
473
  "&:hover": {
474
- backgroundColor: at(n.palette.primary.main, 0.1)
474
+ backgroundColor: it(n.palette.primary.main, 0.1)
475
475
  }
476
476
  },
477
477
  "& .MuiDataGrid-columnHeaderTitle": {
@@ -484,7 +484,7 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
484
484
  }
485
485
  }
486
486
  ) : g.map((r) => {
487
- const { name: h, nickname: d, institution_guid: x, account_number: S } = r.account, w = d || h;
487
+ const { name: h, nickname: d, institution_guid: x, account_number: w } = r.account, _ = d || h;
488
488
  return /* @__PURE__ */ e(
489
489
  J,
490
490
  {
@@ -506,16 +506,16 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
506
506
  children: [
507
507
  /* @__PURE__ */ o(s, { alignItems: "center", flexDirection: "row", gap: 8, width: "50%", children: [
508
508
  /* @__PURE__ */ e(
509
- Ce,
509
+ ye,
510
510
  {
511
511
  alt: t.institution_logo,
512
512
  institutionGuid: x || "",
513
513
  size: 16
514
514
  }
515
515
  ),
516
- /* @__PURE__ */ e(m, { variant: "Small", children: `${w} ${S ? `*${S}` : ""}` })
516
+ /* @__PURE__ */ e(m, { variant: "body2", children: `${_} ${w ? `*${w}` : ""}` })
517
517
  ] }),
518
- /* @__PURE__ */ e(R, { amount: r.balance, bold: !0, variant: "Small" })
518
+ /* @__PURE__ */ e(R, { amount: r.balance, bold: !0, variant: "body2" })
519
519
  ]
520
520
  }
521
521
  ),
@@ -529,8 +529,8 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
529
529
  px: 16,
530
530
  py: 12,
531
531
  children: [
532
- /* @__PURE__ */ e(m, { variant: "Small", children: t.projected_income }),
533
- /* @__PURE__ */ e(R, { amount: r.income, bold: !0, symbol: "+", variant: "Small" })
532
+ /* @__PURE__ */ e(m, { variant: "body2", children: t.projected_income }),
533
+ /* @__PURE__ */ e(R, { amount: r.income, bold: !0, symbol: "+", variant: "body2" })
534
534
  ]
535
535
  }
536
536
  ),
@@ -544,8 +544,8 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
544
544
  px: 16,
545
545
  py: 12,
546
546
  children: [
547
- /* @__PURE__ */ e(m, { variant: "Small", children: t.projected_expenses }),
548
- /* @__PURE__ */ e(R, { amount: r.expenses, bold: !0, symbol: "-", variant: "Small" })
547
+ /* @__PURE__ */ e(m, { variant: "body2", children: t.projected_expenses }),
548
+ /* @__PURE__ */ e(R, { amount: r.expenses, bold: !0, symbol: "-", variant: "body2" })
549
549
  ]
550
550
  }
551
551
  ),
@@ -573,39 +573,39 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
573
573
  }
574
574
  );
575
575
  }, Rt = T(Tt), Lt = () => {
576
- const { cashflow: a } = L(), { isDesktop: n } = he(), { onEvent: t } = ke(), [i, f] = p.useState(0), u = (c, l) => {
576
+ const { cashflow: i } = L(), { isDesktop: n } = he(), { onEvent: t } = ke(), [a, f] = p.useState(0), u = (c, l) => {
577
577
  f(l);
578
578
  };
579
579
  return p.useEffect(() => {
580
- t(i === 0 ? "cash_flow_summary" : "cash_flow_details");
581
- }, [i]), /* @__PURE__ */ o(D, { children: [
580
+ t(a === 0 ? "cash_flow_summary" : "cash_flow_details");
581
+ }, [a]), /* @__PURE__ */ o(D, { children: [
582
582
  /* @__PURE__ */ o(
583
583
  tt,
584
584
  {
585
- "aria-label": a.cashflow_summary_and_details,
585
+ "aria-label": i.cashflow_summary_and_details,
586
586
  centered: !0,
587
587
  onChange: u,
588
588
  textColor: "primary",
589
- value: i,
589
+ value: a,
590
590
  variant: "fullWidth",
591
591
  children: [
592
592
  /* @__PURE__ */ e(
593
- ye,
593
+ Ce,
594
594
  {
595
595
  "aria-controls": "cashflow-tabpanel-0",
596
596
  id: "cashflow-tab-0",
597
- label: a.summary,
597
+ label: i.summary,
598
598
  sx: {
599
599
  textTransform: "none"
600
600
  }
601
601
  }
602
602
  ),
603
603
  /* @__PURE__ */ e(
604
- ye,
604
+ Ce,
605
605
  {
606
606
  "aria-controls": "cashflow-tabpanel-1",
607
607
  id: "cashflow-tab-1",
608
- label: a.details,
608
+ label: i.details,
609
609
  sx: {
610
610
  textTransform: "none"
611
611
  }
@@ -615,14 +615,14 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
615
615
  }
616
616
  ),
617
617
  /* @__PURE__ */ e(D, { sx: { mb: 32 } }),
618
- /* @__PURE__ */ e(we, { index: 0, name: "cashflow", value: i, children: /* @__PURE__ */ e(D, { sx: { m: n ? 48 : 16 }, children: /* @__PURE__ */ e(Rt, {}) }) }),
619
- /* @__PURE__ */ e(we, { index: 1, name: "cashflow", value: i, children: /* @__PURE__ */ e(D, { sx: { m: n ? 48 : 16 }, children: /* @__PURE__ */ e(Et, {}) }) })
618
+ /* @__PURE__ */ e(_e, { index: 0, name: "cashflow", value: a, children: /* @__PURE__ */ e(D, { sx: { m: n ? 48 : 16 }, children: /* @__PURE__ */ e(Rt, {}) }) }),
619
+ /* @__PURE__ */ e(_e, { index: 1, name: "cashflow", value: a, children: /* @__PURE__ */ e(D, { sx: { m: n ? 48 : 16 }, children: /* @__PURE__ */ e(Et, {}) }) })
620
620
  ] });
621
- }, Nt = T(Lt), ie = ({
622
- amount: a,
621
+ }, Nt = T(Lt), ae = ({
622
+ amount: i,
623
623
  isMobile: n = !1,
624
624
  isTotal: t = !1,
625
- label: i,
625
+ label: a,
626
626
  symbol: f,
627
627
  tooltip: u
628
628
  }) => /* @__PURE__ */ o(
@@ -634,25 +634,25 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
634
634
  padding: n ? "14px 16px" : 0,
635
635
  sx: { borderBottomLeftRadius: 4, borderBottomRightRadius: 4 },
636
636
  children: [
637
- !n && /* @__PURE__ */ e(R, { amount: a, component: "h2", variant: "H2" }),
637
+ !n && /* @__PURE__ */ e(R, { amount: i, component: "h2", variant: "h2" }),
638
638
  /* @__PURE__ */ o(s, { alignItems: "center", component: "span", direction: "row", gap: 8, mt: 2, children: [
639
- /* @__PURE__ */ e(m, { bold: t, variant: "Small", children: i }),
639
+ /* @__PURE__ */ e(m, { bold: t, variant: "body2", children: a }),
640
640
  u
641
641
  ] }),
642
- n && /* @__PURE__ */ e(R, { amount: a, component: "h2", symbol: f, variant: "Small" })
642
+ n && /* @__PURE__ */ e(R, { amount: i, component: "h2", symbol: f, variant: "body2" })
643
643
  ]
644
644
  }
645
- ), Re = (a, n) => (t) => t.accountGuid && a.includes(t.accountGuid) && ($e(t.expectedDate) || Fe(t.expectedDate, n.start)) && We(t.expectedDate, n.end), kt = () => {
646
- const { availableWidth: a } = ce(), { cashflow: n } = L(), { income: t, isDataLoaded: i, upcomingExpenses: f, upcomingIncome: u } = U(), { selectedAccountGuids: c } = P(), { dateRange: l, selectedCashAccounts: g } = V(), [r, h] = p.useState(!1), d = p.useMemo(
645
+ ), Re = (i, n) => (t) => t.accountGuid && i.includes(t.accountGuid) && ($e(t.expectedDate) || He(t.expectedDate, n.start)) && We(t.expectedDate, n.end), kt = () => {
646
+ const { availableWidth: i } = ce(), { cashflow: n } = L(), { income: t, isDataLoaded: a, upcomingExpenses: f, upcomingIncome: u } = U(), { selectedAccountGuids: c } = P(), { dateRange: l, selectedCashAccounts: g } = Y(), [r, h] = p.useState(!1), d = p.useMemo(
647
647
  () => f.filter(Re(c, l)),
648
648
  [l, c, f]
649
649
  ), x = p.useMemo(
650
650
  () => u.filter(Re(c, l)),
651
651
  [l, c, u]
652
- ), S = p.useMemo(
653
- () => g.reduce((C, I) => C + (I?.balance || 0), 0),
652
+ ), w = p.useMemo(
653
+ () => g.reduce((y, I) => y + (I?.balance || 0), 0),
654
654
  [g]
655
- ), w = d.reduce((C, I) => C + I.amount, 0), A = x.reduce((C, I) => C + I.amount, 0), _ = S - w + A, k = i && t.length > 0, b = a < 725;
655
+ ), _ = d.reduce((y, I) => y + I.amount, 0), A = x.reduce((y, I) => y + I.amount, 0), S = w - _ + A, k = a && t.length > 0, b = i < 725;
656
656
  return /* @__PURE__ */ o(s, { sx: { mx: b ? 16 : 0, my: b ? 24 : 42 }, children: [
657
657
  /* @__PURE__ */ o(
658
658
  s,
@@ -665,9 +665,9 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
665
665
  justifyContent: "center",
666
666
  children: [
667
667
  /* @__PURE__ */ e(
668
- ie,
668
+ ae,
669
669
  {
670
- amount: S,
670
+ amount: w,
671
671
  isMobile: b,
672
672
  label: $(n.cash_and_bank, g.length)
673
673
  }
@@ -676,7 +676,7 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
676
676
  k ? /* @__PURE__ */ o(B, { children: [
677
677
  !b && /* @__PURE__ */ e(m, { sx: { fontSize: 25, lineHeight: 1 }, children: "+" }),
678
678
  /* @__PURE__ */ e(
679
- ie,
679
+ ae,
680
680
  {
681
681
  amount: A,
682
682
  isMobile: b,
@@ -695,9 +695,9 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
695
695
  ),
696
696
  b ? /* @__PURE__ */ e(v, {}) : /* @__PURE__ */ e(m, { sx: { fontSize: 25, lineHeight: 1 }, children: "-" }),
697
697
  /* @__PURE__ */ e(
698
- ie,
698
+ ae,
699
699
  {
700
- amount: w,
700
+ amount: _,
701
701
  isMobile: b,
702
702
  label: $(n.to_be_paid_out, d.length),
703
703
  symbol: b ? "-" : void 0
@@ -705,9 +705,9 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
705
705
  ),
706
706
  b ? /* @__PURE__ */ e(v, {}) : /* @__PURE__ */ e(m, { sx: { fontSize: 25, lineHeight: 1 }, children: "=" }),
707
707
  /* @__PURE__ */ e(
708
- ie,
708
+ ae,
709
709
  {
710
- amount: _,
710
+ amount: S,
711
711
  isMobile: b,
712
712
  isTotal: b,
713
713
  label: n.remaining_cash,
@@ -735,27 +735,27 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
735
735
  }
736
736
  )
737
737
  ] });
738
- }, Ht = T(kt), Ot = ({ onBackClick: a, sx: n = {} }) => {
739
- const { selectedAccounts: t, selectedAccountGuids: i, shouldDisableNextDate: f, shouldDisablePrevDate: u } = P(), { onEvent: c } = ke(), { clientConfig: l } = Qe(), { visibleCashAccounts: g } = Ne(), { setFilter: r } = He(), { dateRange: h, setSelectedCashAccounts: d } = V(), { loadRepeatingTransactionData: x, isDataLoaded: S, setDateRange: w } = U(), { cashflow: A, recurring: _ } = L(), { isInitialized: k } = P(), C = l?.master?.deep_link_params?.view === "manage_income", [I, ne] = p.useState(C);
738
+ }, Ot = T(kt), Ft = ({ onBackClick: i, sx: n = {} }) => {
739
+ const { selectedAccounts: t, selectedAccountGuids: a, shouldDisableNextDate: f, shouldDisablePrevDate: u } = P(), { onEvent: c } = ke(), { clientConfig: l } = Ke(), { visibleCashAccounts: g } = Ne(), { setFilter: r } = Oe(), { dateRange: h, setSelectedCashAccounts: d } = Y(), { loadRepeatingTransactionData: x, isDataLoaded: w, setDateRange: _ } = U(), { cashflow: A, recurring: S } = L(), { isInitialized: k } = P(), y = l?.master?.deep_link_params?.view === "manage_income", [I, ne] = p.useState(y);
740
740
  return p.useEffect(() => {
741
- w(h), S || x().finally();
741
+ _(h), w || x().finally();
742
742
  }, []), p.useEffect(() => {
743
- const oe = g.map((H) => H.guid), ae = t.filter(
744
- (H) => i.includes(H.guid) && oe.includes(H.guid)
743
+ const oe = g.map((O) => O.guid), ie = t.filter(
744
+ (O) => a.includes(O.guid) && oe.includes(O.guid)
745
745
  );
746
- d(ae), r({
746
+ d(ie), r({
747
747
  dateRange: { start: Me(W(), 90), end: mt() },
748
- accounts: ae.map((H) => H.guid)
748
+ accounts: ie.map((O) => O.guid)
749
749
  });
750
- }, [g, t]), Oe({
750
+ }, [g, t]), Fe({
751
751
  widgetName: "CashflowWidget",
752
- isLoaded: S
752
+ isLoaded: w
753
753
  }), k ? /* @__PURE__ */ o(
754
754
  ut,
755
755
  {
756
756
  actions: [
757
757
  {
758
- label: _.action_title,
758
+ label: S.action_title,
759
759
  iconName: "credit_card_gear",
760
760
  onClick: () => {
761
761
  ne(!0), c(Ie.CASH_FLOW_CLICK_SETTINGS);
@@ -763,11 +763,11 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
763
763
  }
764
764
  ],
765
765
  allowedAccountTypes: [
766
- Q.CASH,
767
- Q.CHECKING,
768
- Q.PREPAID,
769
- Q.SAVINGS,
770
- Q.CHECKING_LINE_OF_CREDIT
766
+ K.CASH,
767
+ K.CHECKING,
768
+ K.PREPAID,
769
+ K.SAVINGS,
770
+ K.CHECKING_LINE_OF_CREDIT
771
771
  ],
772
772
  calendarActions: {
773
773
  shouldDisableNext: f,
@@ -779,11 +779,11 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
779
779
  dateRange: h,
780
780
  dateRangeVariant: "readonly",
781
781
  onAccountsFilterClick: () => c(Ie.CASH_FLOW_CLICK_FILTER),
782
- onBackClick: a,
782
+ onBackClick: i,
783
783
  sx: n,
784
784
  title: A.title,
785
785
  children: [
786
- /* @__PURE__ */ e(Ht, {}),
786
+ /* @__PURE__ */ e(Ot, {}),
787
787
  /* @__PURE__ */ e(Nt, {}),
788
788
  /* @__PURE__ */ e(
789
789
  Ge,
@@ -792,21 +792,21 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
792
792
  isOpen: I,
793
793
  onClose: () => ne(!1),
794
794
  shouldShowHeaderBorders: !1,
795
- title: _.action_title,
796
- children: /* @__PURE__ */ e(et, { defaultSelectedTab: C ? 1 : 0 })
795
+ title: S.action_title,
796
+ children: /* @__PURE__ */ e(et, { defaultSelectedTab: y ? 1 : 0 })
797
797
  }
798
798
  )
799
799
  ]
800
800
  }
801
801
  ) : /* @__PURE__ */ e(Z, {});
802
- }, jn = T(Ot), Ft = ({ handleNextStep: a }) => {
803
- const { completeOnboarding: n } = me(), { cashflow: t } = L(), i = se();
802
+ }, jn = T(Ft), Ht = ({ handleNextStep: i }) => {
803
+ const { completeOnboarding: n } = me(), { cashflow: t } = L(), a = se();
804
804
  return /* @__PURE__ */ o(s, { children: [
805
- /* @__PURE__ */ e(de, { pb: 12, variant: "H1", children: t.welcome_title }),
805
+ /* @__PURE__ */ e(de, { pb: 12, variant: "h1", children: t.welcome_title }),
806
806
  /* @__PURE__ */ e(
807
- Ve,
807
+ Ye,
808
808
  {
809
- color: i.palette.primary.light,
809
+ color: a.palette.primary.light,
810
810
  pb: 8,
811
811
  sx: { wordBreak: "break-word", whiteSpace: "initial" },
812
812
  children: t.welcome_sub_title
@@ -818,7 +818,7 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
818
818
  /* @__PURE__ */ e(
819
819
  D,
820
820
  {
821
- bgcolor: i.palette.primary.lighter,
821
+ bgcolor: a.palette.primary.lighter,
822
822
  borderRadius: 1,
823
823
  component: "span",
824
824
  height: 44,
@@ -834,7 +834,7 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
834
834
  /* @__PURE__ */ e(
835
835
  D,
836
836
  {
837
- bgcolor: i.palette.primary.lighter,
837
+ bgcolor: a.palette.primary.lighter,
838
838
  borderRadius: 1,
839
839
  component: "span",
840
840
  height: 44,
@@ -850,7 +850,7 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
850
850
  /* @__PURE__ */ e(
851
851
  D,
852
852
  {
853
- bgcolor: i.palette.primary.lighter,
853
+ bgcolor: a.palette.primary.lighter,
854
854
  borderRadius: 1,
855
855
  component: "span",
856
856
  height: 44,
@@ -864,21 +864,21 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
864
864
  ] })
865
865
  ] }),
866
866
  /* @__PURE__ */ o(s, { direction: "row", spacing: 16, children: [
867
- /* @__PURE__ */ e(G, { onClick: a, variant: "contained", children: t.get_started_button }),
867
+ /* @__PURE__ */ e(G, { onClick: i, variant: "contained", children: t.get_started_button }),
868
868
  /* @__PURE__ */ e(G, { onClick: n, variant: "outlined", children: t.skip_button })
869
869
  ] })
870
870
  ] });
871
- }, Wt = T(Ft), Le = "https://content.moneydesktop.com/storage/MD_Assets/md/cashflow", je = {
871
+ }, Wt = T(Ht), Le = "https://content.moneydesktop.com/storage/MD_Assets/md/cashflow", je = {
872
872
  CASHFLOW_ONBOARDING: `${Le}/cashflow-onboarding.png`,
873
873
  CASHFLOW_LOADING_ANIMATION: `${Le}/loading-animation.gif`
874
874
  }, $t = () => {
875
- const { cashflow: a } = L();
875
+ const { cashflow: i } = L();
876
876
  return /* @__PURE__ */ o(p.Fragment, { children: [
877
877
  /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("img", { alt: "Loading", src: je.CASHFLOW_LOADING_ANIMATION }) }),
878
- /* @__PURE__ */ e(de, { pb: 12, variant: "H1", children: a.loading_title }),
879
- /* @__PURE__ */ e(N, { children: a.loading_description })
878
+ /* @__PURE__ */ e(de, { pb: 12, variant: "h1", children: i.loading_title }),
879
+ /* @__PURE__ */ e(N, { children: i.loading_description })
880
880
  ] });
881
- }, Gt = T($t), Mt = it`
881
+ }, Gt = T($t), Mt = at`
882
882
  from {
883
883
  transform: rotate(0deg);
884
884
  }
@@ -886,22 +886,22 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
886
886
  transform: rotate(360deg);
887
887
  }
888
888
  `, jt = () => {
889
- const { addRepeatingTransaction: a, repeatingTransactions: n } = U(), { cashflow: t, common: i } = L(), { user: f } = Ke(), { completeOnboarding: u } = me(), { isDirty: c } = V(), { isMobile: l } = he(), { isCopyLoaded: g, setDisplayedDate: r } = P(), { filter: h, setFilter: d, transactions: x } = He(), S = se(), [w, A] = Y(!0), [_, k] = p.useState(bt.EveryMonth), [b, C] = p.useState(1), [I, ne] = p.useState(15), [oe, ae] = Y(!1), [H, fe] = Y(1), [O, ze] = Y([]), [ge, le] = Y(""), F = p.useMemo(
890
- () => x.find((y) => y.guid === ge),
889
+ const { addRepeatingTransaction: i, repeatingTransactions: n } = U(), { cashflow: t, common: a } = L(), { user: f } = Xe(), { completeOnboarding: u } = me(), { isDirty: c } = Y(), { isMobile: l } = he(), { isCopyLoaded: g, setDisplayedDate: r } = P(), { filter: h, setFilter: d, transactions: x } = Oe(), w = se(), [_, A] = Q(!0), [S, k] = p.useState(bt.EveryMonth), [b, y] = p.useState(1), [I, ne] = p.useState(15), [oe, ie] = Q(!1), [O, fe] = Q(1), [F, ze] = Q([]), [ge, le] = Q(""), H = p.useMemo(
890
+ () => x.find((C) => C.guid === ge),
891
891
  [ge, x]
892
892
  ), Be = !!n.filter(
893
- (y) => y.repeating_transaction_type === ve.Income
893
+ (C) => C.repeating_transaction_type === ve.Income
894
894
  ).length, be = async () => {
895
895
  fe(2), r(
896
896
  // Beginning of the month, 90 days before today
897
897
  pt(Me(W(), 90)),
898
898
  W()
899
- ), d({ ...h, custom: _e }), fe(3);
899
+ ), d({ ...h, custom: Se }), fe(3);
900
900
  }, Ue = async () => {
901
- if (!(O.length < 1)) {
902
- ae(!0);
903
- for (let y = 0; y < O.length; y++) {
904
- const E = O[y], xe = Ae(_, De(E.date)), qe = {
901
+ if (!(F.length < 1)) {
902
+ ie(!0);
903
+ for (let C = 0; C < F.length; C++) {
904
+ const E = F[C], xe = Ae(S, De(E.date)), qe = {
905
905
  account_guid: E.account_guid,
906
906
  amount: E.amount,
907
907
  created_by: 0,
@@ -910,24 +910,24 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
910
910
  description: E.feed_description || E.description,
911
911
  predicted_occurs_on: ht(xe, { representation: "date" }),
912
912
  recurrence_day: xe.getDay(),
913
- recurrence_type: _,
913
+ recurrence_type: S,
914
914
  repeating_transaction_type: ve.Income,
915
915
  second_recurrence_day: I,
916
916
  transaction_type: E.transaction_type,
917
917
  user_guid: f.guid
918
918
  };
919
- await a(qe, E);
919
+ await i(qe, E);
920
920
  }
921
921
  await u();
922
922
  }
923
- }, Pe = !F && w || !F && O.length < 1;
923
+ }, Pe = !H && _ || !H && F.length < 1;
924
924
  return g ? /* @__PURE__ */ o(
925
925
  D,
926
926
  {
927
927
  sx: {
928
928
  display: "flex",
929
929
  alignItems: l ? "flex-start" : "center",
930
- backgroundColor: S.palette.background.paper,
930
+ backgroundColor: w.palette.background.paper,
931
931
  backgroundImage: l ? null : `url(${je.CASHFLOW_ONBOARDING})`,
932
932
  backgroundRepeat: "no-repeat",
933
933
  backgroundPosition: "left 100px",
@@ -935,7 +935,7 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
935
935
  py: 24
936
936
  },
937
937
  children: [
938
- H === 1 && /* @__PURE__ */ e(
938
+ O === 1 && /* @__PURE__ */ e(
939
939
  D,
940
940
  {
941
941
  sx: {
@@ -944,7 +944,7 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
944
944
  children: /* @__PURE__ */ e(Wt, { handleNextStep: be })
945
945
  }
946
946
  ),
947
- H === 2 && /* @__PURE__ */ e(
947
+ O === 2 && /* @__PURE__ */ e(
948
948
  D,
949
949
  {
950
950
  sx: {
@@ -953,23 +953,23 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
953
953
  children: /* @__PURE__ */ e(Gt, {})
954
954
  }
955
955
  ),
956
- H === 3 && /* @__PURE__ */ o(
956
+ O === 3 && /* @__PURE__ */ o(
957
957
  D,
958
958
  {
959
959
  sx: {
960
960
  ...l ? { display: "flex", flexDirection: "column", maxWidth: "100%", padding: "0 16px" } : { maxWidth: 590, ml: "40%", mr: 90 }
961
961
  },
962
962
  children: [
963
- /* @__PURE__ */ e(de, { pb: 12, variant: "H1", children: t.add_income_title }),
963
+ /* @__PURE__ */ e(de, { pb: 12, variant: "h1", children: t.add_income_title }),
964
964
  /* @__PURE__ */ e(N, { mb: 24, children: t.add_income_description }),
965
- O.length > 0 && !F && /* @__PURE__ */ o(B, { children: [
966
- /* @__PURE__ */ e(J, { children: O.map((y, E) => /* @__PURE__ */ o(p.Fragment, { children: [
965
+ F.length > 0 && !H && /* @__PURE__ */ o(B, { children: [
966
+ /* @__PURE__ */ e(J, { children: F.map((C, E) => /* @__PURE__ */ o(p.Fragment, { children: [
967
967
  /* @__PURE__ */ e(ft, { bgcolor: "background.paper", children: xt(
968
- z(y.nextDate || y.date)
968
+ z(C.nextDate || C.date)
969
969
  ) }),
970
- /* @__PURE__ */ e(gt, { transaction: y }),
971
- E !== O.length - 1 && /* @__PURE__ */ e(v, {})
972
- ] }, y.guid)) }),
970
+ /* @__PURE__ */ e(gt, { transaction: C }),
971
+ E !== F.length - 1 && /* @__PURE__ */ e(v, {})
972
+ ] }, C.guid)) }),
973
973
  /* @__PURE__ */ o(s, { alignItems: "center", direction: "row", children: [
974
974
  /* @__PURE__ */ e(v, { sx: { flexGrow: 1 } }),
975
975
  /* @__PURE__ */ e(
@@ -986,45 +986,45 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
986
986
  ct,
987
987
  {
988
988
  bgcolor: "background.paper",
989
- onSearch: (y) => d({
989
+ onSearch: (C) => d({
990
990
  ...h,
991
- custom: (E) => y ? lt(E, y) : _e(E)
991
+ custom: (E) => C ? lt(E, C) : Se(E)
992
992
  }),
993
- onSelected: (y) => {
994
- le(y), A(!1);
993
+ onSelected: (C) => {
994
+ le(C), A(!1);
995
995
  }
996
996
  }
997
997
  ),
998
998
  !Be && c && /* @__PURE__ */ e(N, { color: "error", mt: 16, children: t.confirm_error }),
999
- F && /* @__PURE__ */ o(B, { children: [
999
+ H && /* @__PURE__ */ o(B, { children: [
1000
1000
  /* @__PURE__ */ e(
1001
1001
  dt,
1002
1002
  {
1003
1003
  bgcolor: "background.paper",
1004
1004
  firstDay: b,
1005
- frequency: _,
1006
- onFirstDayChange: C,
1005
+ frequency: S,
1006
+ onFirstDayChange: y,
1007
1007
  onFrequencyChange: k,
1008
1008
  onSecondDayChange: ne,
1009
1009
  secondDay: I,
1010
- transaction: F
1010
+ transaction: H
1011
1011
  }
1012
1012
  ),
1013
1013
  /* @__PURE__ */ o(s, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
1014
1014
  /* @__PURE__ */ e(
1015
1015
  G,
1016
1016
  {
1017
- "aria-disabled": !F,
1017
+ "aria-disabled": !H,
1018
1018
  onClick: () => {
1019
- const y = [...O];
1020
- y.push({
1021
- ...F,
1022
- nextDate: Ae(_, De(F.date)),
1023
- frequency: _
1024
- }), ze(y), le("");
1019
+ const C = [...F];
1020
+ C.push({
1021
+ ...H,
1022
+ nextDate: Ae(S, De(H.date)),
1023
+ frequency: S
1024
+ }), ze(C), le("");
1025
1025
  },
1026
1026
  variant: "contained",
1027
- children: i.confirm_button
1027
+ children: a.confirm_button
1028
1028
  }
1029
1029
  ),
1030
1030
  /* @__PURE__ */ e(
@@ -1034,16 +1034,16 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
1034
1034
  le(""), A(!0), be().finally();
1035
1035
  },
1036
1036
  variant: "outlined",
1037
- children: i.cancel_button
1037
+ children: a.cancel_button
1038
1038
  }
1039
1039
  )
1040
1040
  ] })
1041
1041
  ] }),
1042
- O.length > 0 && !F && /* @__PURE__ */ o(s, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
1042
+ F.length > 0 && !H && /* @__PURE__ */ o(s, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
1043
1043
  /* @__PURE__ */ e(
1044
1044
  G,
1045
1045
  {
1046
- "aria-disabled": O.length < 1 || oe,
1046
+ "aria-disabled": F.length < 1 || oe,
1047
1047
  onClick: Ue,
1048
1048
  startIcon: oe ? /* @__PURE__ */ e(
1049
1049
  M,
@@ -1069,21 +1069,21 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
1069
1069
  }, zn = T(jt);
1070
1070
  class Bn {
1071
1071
  fetchInstance;
1072
- constructor(n, t, i) {
1073
- this.fetchInstance = new Ct(n, t, void 0, i);
1072
+ constructor(n, t, a) {
1073
+ this.fetchInstance = new yt(n, t, void 0, a);
1074
1074
  }
1075
1075
  addCashflowEvent = async (n) => this.fetchInstance.post(j.CASHFLOW_EVENTS, { ...n }).then((t) => t);
1076
1076
  addCashflowSequence = async (n) => this.fetchInstance.post(j.CASHFLOW_SEQUENCES, { ...n }).then((t) => t.cashflow_sequence);
1077
1077
  getCashflowSequences = async () => this.fetchInstance.get(j.CASHFLOW_SEQUENCES).then((n) => n.cashflow_sequences);
1078
1078
  getCashflowEventsByDateRange = async (n, t) => this.fetchInstance.get(
1079
1079
  `${j.CASHFLOW_EVENTS}/from/${z(n)}/to/${z(t)}`
1080
- ).then((i) => i.cashflow_events);
1080
+ ).then((a) => a.cashflow_events);
1081
1081
  deleteCashflowSequence = async (n) => this.fetchInstance.delete(`${j.CASHFLOW_SEQUENCES}/${n}`).then((t) => t);
1082
1082
  getProjectedCashflowEvents = async (n, t) => this.fetchInstance.get(
1083
1083
  `${j.CASHFLOW_SEQUENCES}/projected_events/from/${z(
1084
1084
  n
1085
1085
  )}/to/${z(t)}`
1086
- ).then((i) => i.cashflow_events);
1086
+ ).then((a) => a.cashflow_events);
1087
1087
  updateCashflowSequence = async (n) => this.fetchInstance.put(`${j.CASHFLOW_SEQUENCES}/${n.guid}`, n).then((t) => t.cashflow_sequence);
1088
1088
  }
1089
1089
  export {