@mx-cartographer/experiences 8.0.0-alpha.bb4 → 8.0.0-alpha.sms1

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 (106) hide show
  1. package/dist/{Account-B4CDD-zq.mjs → Account-BDXA6PWh.mjs} +1 -1
  2. package/dist/AccountDetailsContent-CUztd3-b.mjs +683 -0
  3. package/dist/{AccountDetailsHeader-DRjFuyJT.mjs → AccountDetailsHeader-i3KFhNuo.mjs} +18 -18
  4. package/dist/{AccountFields-Cl4KHoSj.mjs → AccountFields-QZspYAji.mjs} +10 -12
  5. package/dist/AccountListItem-DX5upmCS.mjs +90 -0
  6. package/dist/{AccountStore-HbVblv86.mjs → AccountStore-BcnDpyLL.mjs} +3 -3
  7. package/dist/{Accounts-CRUehOiy.mjs → Accounts-DXfZotRC.mjs} +1 -1
  8. package/dist/{BudgetUtil-Jv8h9H9l.mjs → BudgetUtil-Df2nII9u.mjs} +31 -31
  9. package/dist/{CashflowStore-CA190BPF.mjs → CashflowStore-D9Dpuz7X.mjs} +25 -18
  10. package/dist/{Category-Ccoew_sA.mjs → Category-CevNQ03n.mjs} +2 -2
  11. package/dist/{CategorySelectorDrawer-Dl006GKy.mjs → CategorySelectorDrawer-DqJK_rrL.mjs} +27 -27
  12. package/dist/{CategoryStore-MUwRWH9e.mjs → CategoryStore-DTgyAMM7.mjs} +2 -2
  13. package/dist/{CategoryUtil-DfVKKkRf.mjs → CategoryUtil-C5cR-nfQ.mjs} +4 -4
  14. package/dist/{ConnectDrawer-DVp54lUH.mjs → ConnectDrawer-BIbTqYOH.mjs} +47 -48
  15. package/dist/{ConnectionsDrawer-Dsc04-4Z.mjs → ConnectionsDrawer-BFfY3_zB.mjs} +2 -2
  16. package/dist/CurrencyInput-BFKcs-_K.mjs +85 -0
  17. package/dist/{DateUtil-CDPZw_-m.mjs → DateUtil-CBdcsyuk.mjs} +1 -1
  18. package/dist/{DebtsStore-pL63fmdT.mjs → DebtsStore-BbJB0nmu.mjs} +3 -3
  19. package/dist/{Dialog-CDV0kKxj.mjs → Dialog-BPTr3qHE.mjs} +24 -24
  20. package/dist/{Drawer-BF40nbsH.mjs → Drawer-BEtCk82g.mjs} +17 -17
  21. package/dist/{ExportCsvAction-QhQK4_FU.mjs → ExportCsvAction-DzTrtPzk.mjs} +3 -3
  22. package/dist/{FinstrongStore-BGf36b0z.mjs → FinstrongStore-BIrX0Xg2.mjs} +56 -56
  23. package/dist/{GoalStore-C1-w3Y1E.mjs → GoalStore-DpWY3gVb.mjs} +4 -4
  24. package/dist/HeaderCell-DjuifqHJ.mjs +6 -0
  25. package/dist/{Help-DBfsTkAi.mjs → Help-BnPXM_N2.mjs} +145 -124
  26. package/dist/{Help-c-zHlDbv.mjs → Help-DhcC-C05.mjs} +8 -8
  27. package/dist/{IconBacking-DgT8DCeh.mjs → IconBacking-B9oC6uL2.mjs} +11 -11
  28. package/dist/{LineChart-C1PxNf7P.mjs → LineChart-bc1D9xBE.mjs} +78 -78
  29. package/dist/{ListItemAction-BNCWQAN_.mjs → ListItemAction-uobBrm_a.mjs} +1 -1
  30. package/dist/Loader-DUaFpDGv.mjs +24 -0
  31. package/dist/{ManageIncome-8EsStyIQ.mjs → ManageIncome-NpXHhO1n.mjs} +46 -46
  32. package/dist/MicroWidgetContainer-DEiRnYVa.mjs +45 -0
  33. package/dist/MiniWidgetContainer-CmXpTylX.mjs +56 -0
  34. package/dist/{NetWorthStore-Bti6u-d9.mjs → NetWorthStore-lsuhEpn6.mjs} +4 -4
  35. package/dist/{NotificationSettings-B74rQVYC.mjs → NotificationSettings-CNmJWVeI.mjs} +77 -77
  36. package/dist/{OriginalBalanceAction-2Y_3U_mg.mjs → OriginalBalanceAction-DK8_LkPz.mjs} +8 -8
  37. package/dist/{RecurringSettings-DAncu--R.mjs → RecurringSettings-CqZh1SQa.mjs} +3 -3
  38. package/dist/{RecurringTransactions-CxcSL1dY.mjs → RecurringTransactions-BKcYmpv3.mjs} +77 -77
  39. package/dist/{RecurringTransactionsStore-CNFxyGB6.mjs → RecurringTransactionsStore-Ni5tSQIO.mjs} +1 -1
  40. package/dist/{ResponsiveButton-Cn6-R7ue.mjs → ResponsiveButton-DZFp78fJ.mjs} +10 -10
  41. package/dist/SearchBox-B2_zLv8-.mjs +42 -0
  42. package/dist/{SettingsStore-BASMQSIp.mjs → SettingsStore-krIRNwHK.mjs} +1 -1
  43. package/dist/{SingleSegmentDonut-7Uy6VEld.mjs → SingleSegmentDonut-BgbLgwHi.mjs} +6 -6
  44. package/dist/{SpendingData-DPQ96k3x.mjs → SpendingData-BuJ03S9d.mjs} +4 -4
  45. package/dist/{SpendingLegend-6FqtMcBV.mjs → SpendingLegend-CjX-hX2O.mjs} +12 -12
  46. package/dist/{StatusBar-CPfSXe80.mjs → StatusBar-BK_uYHAB.mjs} +6 -6
  47. package/dist/{TabContentContainer-CnMXkVqr.mjs → TabContentContainer-j01JYR_7.mjs} +8 -8
  48. package/dist/TransactionDetails-5M2vfr59.mjs +1379 -0
  49. package/dist/{TransactionStore-DbwAutwC.mjs → TransactionStore-D-Q3BU9Z.mjs} +58 -41
  50. package/dist/{TrendsStore-_mRaFUdf.mjs → TrendsStore-BW9FGQeE.mjs} +37 -37
  51. package/dist/{User-BklmOUSd.mjs → User-wXzDI4M8.mjs} +107 -107
  52. package/dist/{ViewMoreMicroCard-DAkyNRlD.mjs → ViewMoreMicroCard-C0832BMe.mjs} +233 -231
  53. package/dist/{WidgetContainer-CDh9fjpR.mjs → WidgetContainer-BhQ1Kx2z.mjs} +36 -36
  54. package/dist/accounts/index.es.js +94 -94
  55. package/dist/analytics/index.es.js +27 -27
  56. package/dist/budgets/index.es.js +251 -250
  57. package/dist/cashflow/index.es.js +158 -157
  58. package/dist/categories/index.es.js +2 -2
  59. package/dist/common/components/Loader.d.ts +2 -1
  60. package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
  61. package/dist/common/components/barchart/Bar.d.ts +25 -0
  62. package/dist/common/components/barchart/BarChart.d.ts +34 -0
  63. package/dist/common/components/barchart/BarColumn.d.ts +37 -0
  64. package/dist/common/components/barchart/Legend.d.ts +8 -0
  65. package/dist/common/components/barchart/Util.d.ts +42 -0
  66. package/dist/common/components/barchart/index.d.ts +1 -0
  67. package/dist/common/components/charts/linechart/CustomMark.d.ts +1 -1
  68. package/dist/common/components/index.d.ts +1 -0
  69. package/dist/common/index.es.js +660 -395
  70. package/dist/common/utils/Theme.d.ts +3 -1
  71. package/dist/dashboard/index.es.js +21 -21
  72. package/dist/debts/components/DebtsChart.d.ts +2 -1
  73. package/dist/debts/index.es.js +440 -440
  74. package/dist/{exportTransactionsToCSV-BgV_wTLT.mjs → exportTransactionsToCSV-Cz2t0lmA.mjs} +3 -3
  75. package/dist/finstrong/index.es.js +118 -118
  76. package/dist/goals/index.es.js +380 -386
  77. package/dist/help/components/content/BottomImageContent.d.ts +1 -1
  78. package/dist/help/components/content/LeftImageContent.d.ts +1 -1
  79. package/dist/help/components/content/RightImageContent.d.ts +1 -1
  80. package/dist/help/components/content/TopImageContent.d.ts +1 -1
  81. package/dist/help/index.es.js +6 -6
  82. package/dist/investments/index.es.js +279 -278
  83. package/dist/merchants/index.es.js +7 -7
  84. package/dist/microinsights/index.es.js +1 -1
  85. package/dist/networth/components/NetWorthChange.d.ts +1 -3
  86. package/dist/networth/index.es.js +185 -191
  87. package/dist/notifications/index.es.js +30 -30
  88. package/dist/recurringtransactions/index.es.js +85 -85
  89. package/dist/settings/index.es.js +270 -270
  90. package/dist/spending/index.es.js +44 -44
  91. package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +7 -0
  92. package/dist/transactions/index.es.js +169 -168
  93. package/dist/trends/index.es.js +318 -317
  94. package/dist/{useAccountDisplayName-CcIp09Xc.mjs → useAccountDisplayName-CFNF8766.mjs} +1 -1
  95. package/dist/{useCombineEvents-kNzLTWCp.mjs → useCombineEvents-CRwX-qWE.mjs} +2 -2
  96. package/dist/{useScreenSize-B5afALev.mjs → useScreenSize-B6JyS_Lj.mjs} +1 -1
  97. package/package.json +50 -45
  98. package/dist/AccountDetailsContent-adZTkM52.mjs +0 -683
  99. package/dist/AccountListItem-wgmlex-_.mjs +0 -90
  100. package/dist/CurrencyInput-D1cjbdCI.mjs +0 -85
  101. package/dist/HeaderCell-P8w6CmfO.mjs +0 -6
  102. package/dist/Loader-Ckqi9Rx6.mjs +0 -21
  103. package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +0 -45
  104. package/dist/MiniWidgetContainer-CKzf_Ira.mjs +0 -56
  105. package/dist/SearchBox-B7km148n.mjs +0 -39
  106. package/dist/TransactionDetails-Bn0qY5Hw.mjs +0 -1336
@@ -2,52 +2,53 @@ import { jsxs as o, Fragment as U, jsx as e } from "react/jsx-runtime";
2
2
  import f, { useState as J } from "react";
3
3
  import { observer as T } from "mobx-react-lite";
4
4
  import { addMonths as Pe } from "date-fns/addMonths";
5
- import { startOfToday as H } from "date-fns/startOfToday";
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
- import { useTheme as se, alpha as qe, keyframes as Ye } from "@mui/material/styles";
10
- import { Text as h, P as N, Icon as j, InstitutionLogo as xe, H1 as de, H2 as Qe } from "@mxenabled/mxui";
11
- import { G as Ve, v as me, u as k, q as ce, d as Le, b as q, j as P, g as ke, n as Xe, a as Ke, h as Ne, p as Je } from "../hooks-C41HAxM5.mjs";
9
+ import se from "@mui/material/styles/useTheme";
10
+ import { Text as h, P as N, Icon as j, InstitutionLogo as xe, H1 as de, H2 as qe } from "@mxenabled/mxui";
11
+ import { G as Xe, v as me, u as k, q as ce, d as Le, b as q, j as P, g as ke, n as Ye, a as Qe, h as Ne, p as Ve } from "../hooks-C41HAxM5.mjs";
12
12
  import { C as L } from "../CurrencyText-Dr0EZ7bp.mjs";
13
- import { u as ue } from "../useScreenSize-B5afALev.mjs";
14
- import { L as te } from "../Loader-Ckqi9Rx6.mjs";
15
- import { I as he } from "../CashflowStore-CA190BPF.mjs";
16
- import { C as jn } from "../CashflowStore-CA190BPF.mjs";
17
- import { b as $ } from "../Localization-2MODESHW.mjs";
18
- import { M as Ze } from "../MiniWidgetContainer-CKzf_Ira.mjs";
19
- import { E as et } from "../EmptyState-DoxNUae-.mjs";
20
- import { R as tt } from "../RecurringSettings-DAncu--R.mjs";
21
- import nt from "@mui/material/Tabs";
13
+ import { u as ue } from "../useScreenSize-B6JyS_Lj.mjs";
14
+ import { L as te } from "../Loader-DUaFpDGv.mjs";
15
+ import { I as he } from "../CashflowStore-D9Dpuz7X.mjs";
16
+ import { C as zn } from "../CashflowStore-D9Dpuz7X.mjs";
17
+ import { b as M } from "../Localization-2MODESHW.mjs";
18
+ import { M as Ke } from "../MiniWidgetContainer-CmXpTylX.mjs";
19
+ import { E as Je } from "../EmptyState-DoxNUae-.mjs";
20
+ import { R as Ze } from "../RecurringSettings-CqZh1SQa.mjs";
21
+ import et from "@mui/material/Tabs";
22
22
  import ye from "@mui/material/Tab";
23
23
  import { getUnixTime as B } from "date-fns/getUnixTime";
24
24
  import ee from "@mui/material/List";
25
25
  import ne from "@mui/material/ListItem";
26
- import { A as ot } from "../AccountListItem-wgmlex-_.mjs";
27
- import { f as Y, a as Q } from "../Dialog-CDV0kKxj.mjs";
28
- import at from "@mui/material/ListSubheader";
26
+ import { A as tt } from "../AccountListItem-DX5upmCS.mjs";
27
+ import { f as X, a as Y } from "../Dialog-BPTr3qHE.mjs";
28
+ import nt from "@mui/material/ListSubheader";
29
29
  import { f as Z } from "../NumberFormatting-DjTD0t3W.mjs";
30
30
  import { isAfter as Oe } from "date-fns/isAfter";
31
- import { isBefore as Fe } from "date-fns/isBefore";
32
- import { isToday as We } from "date-fns/isToday";
31
+ import { isBefore as He } from "date-fns/isBefore";
32
+ import { isToday as Fe } from "date-fns/isToday";
33
33
  import { addDays as Ce } from "date-fns/addDays";
34
+ import { alpha as ot, keyframes as at } from "@mui/material/styles";
34
35
  import { DataGridPro as it } from "@mui/x-data-grid-pro";
35
- import { T as _e } from "../TabContentContainer-CnMXkVqr.mjs";
36
+ import { T as Se } from "../TabContentContainer-j01JYR_7.mjs";
36
37
  import G from "@mui/material/Button";
37
- import { M as rt, S as st, i as ct, d as we, c as lt } from "../ManageIncome-8EsStyIQ.mjs";
38
- import { D as He } from "../Drawer-BF40nbsH.mjs";
39
- import { subDays as Me } from "date-fns/subDays";
38
+ import { M as rt, S as st, i as ct, d as we, c as lt } from "../ManageIncome-NpXHhO1n.mjs";
39
+ import { D as We } from "../Drawer-BEtCk82g.mjs";
40
+ import { subDays as $e } from "date-fns/subDays";
40
41
  import { endOfToday as dt } from "date-fns/endOfToday";
41
- import { W as mt, A as Se } from "../WidgetContainer-CDh9fjpR.mjs";
42
+ import { W as mt, A as _e } from "../WidgetContainer-BhQ1Kx2z.mjs";
42
43
  import { formatISO as ut } from "date-fns/formatISO";
43
44
  import { fromUnixTime as Ie } from "date-fns/fromUnixTime";
44
45
  import { startOfMonth as ht } from "date-fns/startOfMonth";
45
- import { S as pt, c as ft } from "../TransactionDetails-Bn0qY5Hw.mjs";
46
- import { F as gt, R as De, e as ve } from "../RecurringTransactions-CxcSL1dY.mjs";
47
- import { h as bt } from "../DateUtil-CDPZw_-m.mjs";
46
+ import { S as pt, c as ft } from "../TransactionDetails-5M2vfr59.mjs";
47
+ import { F as gt, R as De, e as ve } from "../RecurringTransactions-BKcYmpv3.mjs";
48
+ import { h as bt } from "../DateUtil-CBdcsyuk.mjs";
48
49
  import { F as xt, A as z } from "../Fetch-DecPFeGU.mjs";
49
- const V = () => {
50
- if (!f.useContext(Ve))
50
+ const Q = () => {
51
+ if (!f.useContext(Xe))
51
52
  throw new Error("useCashflowUiStore() must be used within the GlobalDataContext");
52
53
  return me().uiStore;
53
54
  }, yt = ({ remaining: a }) => {
@@ -75,7 +76,7 @@ const V = () => {
75
76
  setNextIncome: b,
76
77
  setSelectedCashAccounts: C,
77
78
  setUpcomingExpenses: w
78
- } = V(), { isDataLoaded: O, nextIncomeRecurrence: A, upcomingExpenses: F } = P();
79
+ } = Q(), { isDataLoaded: O, nextIncomeRecurrence: A, upcomingExpenses: H } = P();
79
80
  f.useEffect(() => {
80
81
  c(i);
81
82
  }, [i]), f.useEffect(() => {
@@ -83,65 +84,65 @@ const V = () => {
83
84
  i.filter((I) => u.includes(I.guid))
84
85
  );
85
86
  }, [i, x]), f.useEffect(() => {
86
- A && b(A), w(F);
87
- }, [A, F]);
87
+ A && b(A), w(H);
88
+ }, [A, H]);
88
89
  const p = f.useMemo(
89
- () => i.filter((I) => u.includes(I.guid)).reduce((I, M) => I + (M?.balance || 0), 0),
90
- [u, F]
91
- ), S = f.useMemo(
92
- () => l.filter((I) => u.includes(I.accountGuid || "")).reduce((I, M) => I + M.amount, 0),
90
+ () => i.filter((I) => u.includes(I.guid)).reduce((I, $) => I + ($?.balance || 0), 0),
91
+ [u, H]
92
+ ), _ = f.useMemo(
93
+ () => l.filter((I) => u.includes(I.accountGuid || "")).reduce((I, $) => I + $.amount, 0),
93
94
  [u, l]
94
95
  ), R = f.useMemo(
95
- () => p - S,
96
- [p, S]
96
+ () => p - _,
97
+ [p, _]
97
98
  );
98
99
  return O ? /* @__PURE__ */ e(D, { className: "mx-cashflow", pl: 16, pr: 16, pt: 16, children: n > 710 ? /* @__PURE__ */ o(
99
100
  s,
100
101
  {
101
- border: `1px solid ${a.palette.neutral.light}`,
102
+ border: `1px solid ${a.palette.border.light}`,
102
103
  borderRadius: 1,
103
104
  direction: "row",
104
105
  justifyContent: "space-between",
105
106
  px: 24,
106
107
  children: [
107
108
  /* @__PURE__ */ o(s, { pb: 14, pt: 12, children: [
108
- /* @__PURE__ */ e(L, { amount: p, variant: "h2" }),
109
- /* @__PURE__ */ e(N, { variant: "caption", whiteSpace: "nowrap", children: $(
109
+ /* @__PURE__ */ e(L, { amount: p, variant: "H2" }),
110
+ /* @__PURE__ */ e(N, { variant: "XSmall", whiteSpace: "nowrap", children: M(
110
111
  m.total_cash_accounts,
111
112
  d.length
112
113
  ) })
113
114
  ] }),
114
115
  /* @__PURE__ */ e(s, { pt: 18, children: /* @__PURE__ */ e(j, { name: "remove" }) }),
115
116
  /* @__PURE__ */ o(s, { pb: 14, pt: 12, children: [
116
- /* @__PURE__ */ e(L, { amount: S, variant: "h2" }),
117
- /* @__PURE__ */ e(N, { variant: "caption", whiteSpace: "nowrap", children: $(m.expenses_due, l.length) })
117
+ /* @__PURE__ */ e(L, { amount: _, variant: "H2" }),
118
+ /* @__PURE__ */ e(N, { variant: "XSmall", whiteSpace: "nowrap", children: M(m.expenses_due, l.length) })
118
119
  ] }),
119
120
  /* @__PURE__ */ e(s, { pt: 18, children: /* @__PURE__ */ e(j, { name: "equal" }) }),
120
121
  /* @__PURE__ */ o(s, { pb: 14, pr: 24, pt: 12, children: [
121
- /* @__PURE__ */ e(L, { amount: R, variant: "h2" }),
122
+ /* @__PURE__ */ e(L, { amount: R, variant: "H2" }),
122
123
  /* @__PURE__ */ o(s, { alignItems: "center", direction: "row", gap: 8, children: [
123
- /* @__PURE__ */ e(N, { variant: "caption", whiteSpace: "nowrap", children: m.available_to_spend }),
124
+ /* @__PURE__ */ e(N, { variant: "XSmall", whiteSpace: "nowrap", children: m.available_to_spend }),
124
125
  /* @__PURE__ */ e(he, { body: m.tooltip_body, title: m.tooltip_title })
125
126
  ] })
126
127
  ] }),
127
- /* @__PURE__ */ e(s, { borderLeft: `1px solid ${a.palette.neutral.light}`, pb: 12, pl: 24, pt: 12, children: /* @__PURE__ */ o(U, { children: [
128
- /* @__PURE__ */ e(h, { variant: "h2", children: $(m.days, r) }),
129
- /* @__PURE__ */ e(N, { variant: "caption", whiteSpace: "nowrap", children: m.next_paycheck })
128
+ /* @__PURE__ */ e(s, { borderLeft: `1px solid ${a.palette.border.light}`, pb: 12, pl: 24, pt: 12, children: /* @__PURE__ */ o(U, { children: [
129
+ /* @__PURE__ */ e(h, { variant: "H2", children: M(m.days, r) }),
130
+ /* @__PURE__ */ e(N, { variant: "XSmall", whiteSpace: "nowrap", children: m.next_paycheck })
130
131
  ] }) })
131
132
  ]
132
133
  }
133
- ) : /* @__PURE__ */ o(s, { border: `1px solid ${a.palette.neutral.light}`, borderRadius: 1, children: [
134
+ ) : /* @__PURE__ */ o(s, { border: `1px solid ${a.palette.border.light}`, borderRadius: 1, children: [
134
135
  /* @__PURE__ */ o(s, { direction: "row", justifyContent: "space-between", p: 16, children: [
135
- /* @__PURE__ */ e(h, { variant: "body2", children: $(
136
+ /* @__PURE__ */ e(h, { variant: "Small", children: M(
136
137
  m.total_cash_accounts,
137
138
  d.length
138
139
  ) }),
139
- /* @__PURE__ */ e(L, { amount: g, bold: !0, variant: "caption" })
140
+ /* @__PURE__ */ e(L, { amount: g, bold: !0, variant: "XSmall" })
140
141
  ] }),
141
142
  /* @__PURE__ */ e(v, {}),
142
143
  /* @__PURE__ */ o(s, { direction: "row", justifyContent: "space-between", p: 16, children: [
143
- /* @__PURE__ */ e(h, { variant: "body2", children: $(m.expenses_due, l.length) }),
144
- /* @__PURE__ */ e(L, { amount: S, bold: !0, symbol: "-", variant: "caption" })
144
+ /* @__PURE__ */ e(h, { variant: "Small", children: M(m.expenses_due, l.length) }),
145
+ /* @__PURE__ */ e(L, { amount: _, bold: !0, symbol: "-", variant: "XSmall" })
145
146
  ] }),
146
147
  /* @__PURE__ */ e(v, {}),
147
148
  /* @__PURE__ */ e(
@@ -160,22 +161,22 @@ const V = () => {
160
161
  ),
161
162
  /* @__PURE__ */ e(v, {}),
162
163
  /* @__PURE__ */ o(s, { direction: "row", justifyContent: "space-between", p: 16, children: [
163
- /* @__PURE__ */ e(h, { variant: "body2", children: m.next_paycheck }),
164
- /* @__PURE__ */ e(h, { bold: !0, variant: "caption", children: $(m.days, r) })
164
+ /* @__PURE__ */ e(h, { variant: "Small", children: m.next_paycheck }),
165
+ /* @__PURE__ */ e(h, { bold: !0, variant: "XSmall", children: M(m.days, r) })
165
166
  ] })
166
167
  ] }) }) : /* @__PURE__ */ e(te, { height: t ? 210 : 120 });
167
- }, _t = T(Ct), wt = ({
168
+ }, St = T(Ct), wt = ({
168
169
  onPrimaryCtaClick: a,
169
170
  onSecondaryCtaClick: n,
170
171
  sx: t = {}
171
172
  }) => {
172
173
  const { cashflow: i } = k(), { isInitialized: g } = q(), { loadRepeatingTransactionData: x, income: u, isDataLoaded: c, setDateRange: m } = P();
173
174
  f.useEffect(() => {
174
- m({ start: H(), end: Pe(H(), 1) }), c || x().finally();
175
+ m({ start: W(), end: Pe(W(), 1) }), c || x().finally();
175
176
  }, []);
176
177
  const r = c && !u.length;
177
178
  return g ? /* @__PURE__ */ o(
178
- Ze,
179
+ Ke,
179
180
  {
180
181
  className: "mx-exp-cashflow-miniwidget",
181
182
  onPrimaryCtaClick: a,
@@ -186,7 +187,7 @@ const V = () => {
186
187
  children: [
187
188
  !c && /* @__PURE__ */ e(te, {}),
188
189
  c && (r ? /* @__PURE__ */ e(
189
- et,
190
+ Je,
190
191
  {
191
192
  header: i.create,
192
193
  icon: "local_atm",
@@ -195,11 +196,11 @@ const V = () => {
195
196
  primaryButtonStartIcon: "add",
196
197
  subText: i.create_description
197
198
  }
198
- ) : /* @__PURE__ */ e(_t, {}))
199
+ ) : /* @__PURE__ */ e(St, {}))
199
200
  ]
200
201
  }
201
202
  ) : /* @__PURE__ */ e(te, {});
202
- }, Fn = T(wt), St = ({ remaining: a }) => /* @__PURE__ */ e(
203
+ }, Fn = T(wt), _t = ({ remaining: a }) => /* @__PURE__ */ e(
203
204
  ne,
204
205
  {
205
206
  sx: {
@@ -219,8 +220,8 @@ var oe = /* @__PURE__ */ ((a) => (a.EXPENSE = "expense", a.INCOME = "income", a)
219
220
  const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
220
221
  /* @__PURE__ */ o(ne, { sx: { display: "flex", alignItems: "center", gap: 16, px: 24, py: 12 }, children: [
221
222
  /* @__PURE__ */ o(s, { alignItems: "center", height: 32, width: 32, children: [
222
- /* @__PURE__ */ e(h, { bold: !0, sx: { fontSize: 11 }, children: Y(a.expectedDate, Q.MONTH) }),
223
- /* @__PURE__ */ e(h, { bold: !0, sx: { fontSize: 11 }, children: Y(a.expectedDate, Q.DAY) })
223
+ /* @__PURE__ */ e(h, { bold: !0, sx: { fontSize: 11 }, children: X(a.expectedDate, Y.MONTH) }),
224
+ /* @__PURE__ */ e(h, { bold: !0, sx: { fontSize: 11 }, children: X(a.expectedDate, Y.DAY) })
224
225
  ] }),
225
226
  /* @__PURE__ */ e(h, { sx: { flexGrow: 1, fontSize: 13 }, children: a.name }),
226
227
  /* @__PURE__ */ e(
@@ -237,7 +238,7 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
237
238
  const { cashflow: t } = k();
238
239
  return /* @__PURE__ */ o(U, { children: [
239
240
  /* @__PURE__ */ o(
240
- at,
241
+ nt,
241
242
  {
242
243
  sx: {
243
244
  alignItems: "center",
@@ -259,16 +260,16 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
259
260
  ),
260
261
  /* @__PURE__ */ e(v, {})
261
262
  ] });
262
- }, Ee = T(Dt), re = (a, n) => (t) => t.accountGuid === a.guid && (We(t.expectedDate) || Oe(t.expectedDate, n.start)) && Fe(t.expectedDate, n.end), vt = () => {
263
- const { availableWidth: a } = ce(), { cashflow: n } = k(), { upcomingExpenses: t, upcomingIncome: i } = P(), { dateRange: g, selectedCashAccounts: x } = V();
263
+ }, Ee = T(Dt), re = (a, n) => (t) => t.accountGuid === a.guid && (Fe(t.expectedDate) || Oe(t.expectedDate, n.start)) && He(t.expectedDate, n.end), vt = () => {
264
+ const { availableWidth: a } = ce(), { cashflow: n } = k(), { upcomingExpenses: t, upcomingIncome: i } = P(), { dateRange: g, selectedCashAccounts: x } = Q();
264
265
  return /* @__PURE__ */ o(s, { children: [
265
266
  /* @__PURE__ */ o(s, { direction: a < 400 ? "column" : "row", justifyContent: "space-between", children: [
266
267
  /* @__PURE__ */ e(h, { bold: !0, sx: { fontSize: 15, mb: 12, whiteSpace: "normal" }, children: n.accounts_breakdown }),
267
268
  /* @__PURE__ */ o(h, { bold: !0, sx: { fontSize: 15, mb: 12, whiteSpace: "normal" }, children: [
268
- Y(g.start, Q.FULL_MONTH_DAY),
269
+ X(g.start, Y.FULL_MONTH_DAY),
269
270
  " -",
270
271
  " ",
271
- Y(g.end, Q.FULL_MONTH_DAY)
272
+ X(g.end, Y.FULL_MONTH_DAY)
272
273
  ] })
273
274
  ] }),
274
275
  /* @__PURE__ */ e(s, { children: x.map((u) => {
@@ -286,13 +287,13 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
286
287
  {
287
288
  sx: {
288
289
  border: "1px solid",
289
- borderColor: "neutral.light",
290
+ borderColor: "border.light",
290
291
  mb: 24,
291
292
  borderRadius: 1
292
293
  },
293
294
  children: [
294
295
  /* @__PURE__ */ e(
295
- ot,
296
+ tt,
296
297
  {
297
298
  account: u,
298
299
  listItemProps: {
@@ -320,7 +321,7 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
320
321
  }
321
322
  ) }),
322
323
  /* @__PURE__ */ e(
323
- St,
324
+ _t,
324
325
  {
325
326
  remaining: (u.available_balance || u.balance || 0) + r - l
326
327
  }
@@ -332,7 +333,7 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
332
333
  }) })
333
334
  ] });
334
335
  }, At = T(vt), Et = () => {
335
- const { availableWidth: a } = ce(), n = se(), { cashflow: t } = k(), { upcomingExpenses: i, upcomingIncome: g } = P(), { dateRange: x, selectedCashAccounts: u } = V(), c = [
336
+ const { availableWidth: a } = ce(), n = se(), { cashflow: t } = k(), { upcomingExpenses: i, upcomingIncome: g } = P(), { dateRange: x, selectedCashAccounts: u } = Q(), c = [
336
337
  {
337
338
  field: "account",
338
339
  flex: 1.5,
@@ -357,21 +358,21 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
357
358
  flex: 1,
358
359
  headerName: t.balance,
359
360
  type: "number",
360
- renderCell: (r) => /* @__PURE__ */ e(h, { color: n.palette.text.primary, variant: "body2", children: Z(r.value, "0,0.00") })
361
+ renderCell: (r) => /* @__PURE__ */ e(h, { color: n.palette.text.primary, variant: "Small", children: Z(r.value, "0,0.00") })
361
362
  },
362
363
  {
363
364
  field: "income",
364
365
  flex: 1,
365
366
  headerName: t.projected_income,
366
367
  type: "number",
367
- renderCell: (r) => /* @__PURE__ */ e(h, { color: n.palette.text.primary, variant: "body2", children: `+${Z(r.value, "0,0.00")}` })
368
+ renderCell: (r) => /* @__PURE__ */ e(h, { color: n.palette.text.primary, variant: "Small", children: `+${Z(r.value, "0,0.00")}` })
368
369
  },
369
370
  {
370
371
  field: "expenses",
371
372
  flex: 1.1,
372
373
  headerName: t.projected_expenses,
373
374
  type: "number",
374
- renderCell: (r) => /* @__PURE__ */ e(h, { color: n.palette.text.primary, variant: "body2", children: `-${Z(r.value, "0,0.00")}` })
375
+ renderCell: (r) => /* @__PURE__ */ e(h, { color: n.palette.text.primary, variant: "Small", children: `-${Z(r.value, "0,0.00")}` })
375
376
  },
376
377
  {
377
378
  field: "remaining",
@@ -384,7 +385,7 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
384
385
  h,
385
386
  {
386
387
  color: Math.sign(l) === -1 ? n.palette.error.main : n.palette.text.primary,
387
- variant: "body2",
388
+ variant: "Small",
388
389
  children: Z(l, "0,0.00")
389
390
  }
390
391
  );
@@ -392,9 +393,9 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
392
393
  }
393
394
  ], m = f.useMemo(() => u.map((r) => {
394
395
  const l = i.filter(
395
- re(r, { start: H(), end: Ce(H(), 30) })
396
+ re(r, { start: W(), end: Ce(W(), 30) })
396
397
  ).reduce((C, w) => C + w.amount, 0), d = g.filter(
397
- re(r, { start: H(), end: Ce(H(), 30) })
398
+ re(r, { start: W(), end: Ce(W(), 30) })
398
399
  ).reduce((C, w) => C + w.amount, 0), b = (r.balance || 0) + d - l;
399
400
  return {
400
401
  account: r,
@@ -440,10 +441,10 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
440
441
  )
441
442
  ] }),
442
443
  /* @__PURE__ */ o(h, { bold: !0, sx: { fontSize: 15, whiteSpace: "normal" }, children: [
443
- Y(x.start, Q.FULL_MONTH_DAY),
444
+ X(x.start, Y.FULL_MONTH_DAY),
444
445
  " -",
445
446
  " ",
446
- Y(x.end, Q.FULL_MONTH_DAY)
447
+ X(x.end, Y.FULL_MONTH_DAY)
447
448
  ] })
448
449
  ]
449
450
  }
@@ -461,12 +462,12 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
461
462
  rows: m,
462
463
  sx: {
463
464
  border: "1px solid",
464
- borderColor: "neutral.light",
465
+ borderColor: "border.light",
465
466
  borderRadius: 1,
466
467
  "& .MuiDataGrid-columnHeader .MuiIconButton-root": {
467
468
  color: n.palette.primary.main,
468
469
  "&:hover": {
469
- backgroundColor: qe(n.palette.primary.main, 0.1)
470
+ backgroundColor: ot(n.palette.primary.main, 0.1)
470
471
  }
471
472
  },
472
473
  "& .MuiDataGrid-columnHeaderTitle": {
@@ -485,7 +486,7 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
485
486
  {
486
487
  sx: {
487
488
  border: "1px solid",
488
- borderColor: "neutral.light",
489
+ borderColor: "border.light",
489
490
  borderRadius: 1,
490
491
  marginBottom: 24
491
492
  },
@@ -508,9 +509,9 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
508
509
  size: 16
509
510
  }
510
511
  ),
511
- /* @__PURE__ */ e(h, { variant: "body2", children: `${w} ${C ? `*${C}` : ""}` })
512
+ /* @__PURE__ */ e(h, { variant: "Small", children: `${w} ${C ? `*${C}` : ""}` })
512
513
  ] }),
513
- /* @__PURE__ */ e(L, { amount: r.balance, bold: !0, variant: "body2" })
514
+ /* @__PURE__ */ e(L, { amount: r.balance, bold: !0, variant: "Small" })
514
515
  ]
515
516
  }
516
517
  ),
@@ -524,8 +525,8 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
524
525
  px: 16,
525
526
  py: 12,
526
527
  children: [
527
- /* @__PURE__ */ e(h, { variant: "body2", children: t.projected_income }),
528
- /* @__PURE__ */ e(L, { amount: r.income, bold: !0, symbol: "+", variant: "body2" })
528
+ /* @__PURE__ */ e(h, { variant: "Small", children: t.projected_income }),
529
+ /* @__PURE__ */ e(L, { amount: r.income, bold: !0, symbol: "+", variant: "Small" })
529
530
  ]
530
531
  }
531
532
  ),
@@ -539,8 +540,8 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
539
540
  px: 16,
540
541
  py: 12,
541
542
  children: [
542
- /* @__PURE__ */ e(h, { variant: "body2", children: t.projected_expenses }),
543
- /* @__PURE__ */ e(L, { amount: r.expenses, bold: !0, symbol: "-", variant: "body2" })
543
+ /* @__PURE__ */ e(h, { variant: "Small", children: t.projected_expenses }),
544
+ /* @__PURE__ */ e(L, { amount: r.expenses, bold: !0, symbol: "-", variant: "Small" })
544
545
  ]
545
546
  }
546
547
  ),
@@ -575,7 +576,7 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
575
576
  t(i === 0 ? "cash_flow_summary" : "cash_flow_details");
576
577
  }, [i]), /* @__PURE__ */ o(D, { children: [
577
578
  /* @__PURE__ */ o(
578
- nt,
579
+ et,
579
580
  {
580
581
  "aria-label": a.cashflow_summary_and_details,
581
582
  centered: !0,
@@ -610,8 +611,8 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
610
611
  }
611
612
  ),
612
613
  /* @__PURE__ */ e(D, { sx: { mb: 32 } }),
613
- /* @__PURE__ */ e(_e, { index: 0, name: "cashflow", value: i, children: /* @__PURE__ */ e(D, { sx: { m: n ? 48 : 16 }, children: /* @__PURE__ */ e(Tt, {}) }) }),
614
- /* @__PURE__ */ e(_e, { index: 1, name: "cashflow", value: i, children: /* @__PURE__ */ e(D, { sx: { m: n ? 48 : 16 }, children: /* @__PURE__ */ e(At, {}) }) })
614
+ /* @__PURE__ */ e(Se, { index: 0, name: "cashflow", value: i, children: /* @__PURE__ */ e(D, { sx: { m: n ? 48 : 16 }, children: /* @__PURE__ */ e(Tt, {}) }) }),
615
+ /* @__PURE__ */ e(Se, { index: 1, name: "cashflow", value: i, children: /* @__PURE__ */ e(D, { sx: { m: n ? 48 : 16 }, children: /* @__PURE__ */ e(At, {}) }) })
615
616
  ] });
616
617
  }, Lt = T(Rt), ie = ({
617
618
  amount: a,
@@ -629,31 +630,31 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
629
630
  padding: n ? "14px 16px" : 0,
630
631
  sx: { borderBottomLeftRadius: 4, borderBottomRightRadius: 4 },
631
632
  children: [
632
- !n && /* @__PURE__ */ e(L, { amount: a, component: "h2", variant: "h2" }),
633
+ !n && /* @__PURE__ */ e(L, { amount: a, component: "h2", variant: "H2" }),
633
634
  /* @__PURE__ */ o(s, { alignItems: "center", component: "span", direction: "row", gap: 8, mt: 2, children: [
634
- /* @__PURE__ */ e(h, { bold: t, variant: "body2", children: i }),
635
+ /* @__PURE__ */ e(h, { bold: t, variant: "Small", children: i }),
635
636
  x
636
637
  ] }),
637
- n && /* @__PURE__ */ e(L, { amount: a, component: "h2", symbol: g, variant: "body2" })
638
+ n && /* @__PURE__ */ e(L, { amount: a, component: "h2", symbol: g, variant: "Small" })
638
639
  ]
639
640
  }
640
- ), Te = (a, n) => (t) => t.accountGuid && a.includes(t.accountGuid) && (We(t.expectedDate) || Oe(t.expectedDate, n.start)) && Fe(t.expectedDate, n.end), kt = () => {
641
- const { availableWidth: a } = ce(), { cashflow: n } = k(), { income: t, isDataLoaded: i, upcomingExpenses: g, upcomingIncome: x } = P(), { selectedAccountGuids: u } = q(), { dateRange: c, selectedCashAccounts: m } = V(), [r, l] = f.useState(!1), d = f.useMemo(
641
+ ), Te = (a, n) => (t) => t.accountGuid && a.includes(t.accountGuid) && (Fe(t.expectedDate) || Oe(t.expectedDate, n.start)) && He(t.expectedDate, n.end), kt = () => {
642
+ const { availableWidth: a } = ce(), { cashflow: n } = k(), { income: t, isDataLoaded: i, upcomingExpenses: g, upcomingIncome: x } = P(), { selectedAccountGuids: u } = q(), { dateRange: c, selectedCashAccounts: m } = Q(), [r, l] = f.useState(!1), d = f.useMemo(
642
643
  () => g.filter(Te(u, c)),
643
644
  [c, u, g]
644
645
  ), b = f.useMemo(
645
646
  () => x.filter(Te(u, c)),
646
647
  [c, u, x]
647
648
  ), C = f.useMemo(
648
- () => m.reduce((S, R) => S + (R?.balance || 0), 0),
649
+ () => m.reduce((_, R) => _ + (R?.balance || 0), 0),
649
650
  [m]
650
- ), w = d.reduce((S, R) => S + R.amount, 0), O = b.reduce((S, R) => S + R.amount, 0), A = C - w + O, F = i && t.length > 0, p = a < 725;
651
+ ), w = d.reduce((_, R) => _ + R.amount, 0), O = b.reduce((_, R) => _ + R.amount, 0), A = C - w + O, H = i && t.length > 0, p = a < 725;
651
652
  return /* @__PURE__ */ o(s, { sx: { mx: p ? 16 : 0, my: p ? 24 : 42 }, children: [
652
653
  /* @__PURE__ */ o(
653
654
  s,
654
655
  {
655
656
  border: p ? "1px solid" : "none",
656
- borderColor: "neutral.light",
657
+ borderColor: "border.light",
657
658
  borderRadius: 2,
658
659
  flexDirection: p ? "column" : "row",
659
660
  gap: p ? 0 : 24,
@@ -664,11 +665,11 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
664
665
  {
665
666
  amount: C,
666
667
  isMobile: p,
667
- label: $(n.cash_and_bank, m.length)
668
+ label: M(n.cash_and_bank, m.length)
668
669
  }
669
670
  ),
670
671
  p && /* @__PURE__ */ e(v, {}),
671
- F ? /* @__PURE__ */ o(U, { children: [
672
+ H ? /* @__PURE__ */ o(U, { children: [
672
673
  !p && /* @__PURE__ */ e(h, { sx: { fontSize: 25, lineHeight: 1 }, children: "+" }),
673
674
  /* @__PURE__ */ e(
674
675
  ie,
@@ -694,7 +695,7 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
694
695
  {
695
696
  amount: w,
696
697
  isMobile: p,
697
- label: $(n.to_be_paid_out, d.length),
698
+ label: M(n.to_be_paid_out, d.length),
698
699
  symbol: p ? "-" : void 0
699
700
  }
700
701
  ),
@@ -719,7 +720,7 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
719
720
  }
720
721
  ),
721
722
  /* @__PURE__ */ e(
722
- He,
723
+ We,
723
724
  {
724
725
  ariaLabelClose: n.close_manage_income_aria,
725
726
  isOpen: r,
@@ -737,7 +738,7 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
737
738
  setSelectedAccounts: g,
738
739
  shouldDisableNextDate: x,
739
740
  shouldDisablePrevDate: u
740
- } = q(), { onEvent: c } = ke(), { onLoad: m } = Xe(), { clientConfig: r } = Ke(), { visibleCashAccounts: l } = Le(), { setFilter: d } = Ne(), { dateRange: b, setSelectedCashAccounts: C } = V(), { loadRepeatingTransactionData: w, isDataLoaded: O, setDateRange: A } = P(), { cashflow: F, recurring: p } = k(), { isInitialized: S } = q(), I = r?.master?.deep_link_params?.view === "manage_income", [M, ae] = f.useState(I);
741
+ } = q(), { onEvent: c } = ke(), { onLoad: m } = Ye(), { clientConfig: r } = Qe(), { visibleCashAccounts: l } = Le(), { setFilter: d } = Ne(), { dateRange: b, setSelectedCashAccounts: C } = Q(), { loadRepeatingTransactionData: w, isDataLoaded: O, setDateRange: A } = P(), { cashflow: H, recurring: p } = k(), { isInitialized: _ } = q(), I = r?.master?.deep_link_params?.view === "manage_income", [$, ae] = f.useState(I);
741
742
  return f.useEffect(() => {
742
743
  A(b), O || w().finally(() => {
743
744
  m?.("CashflowWidget");
@@ -745,14 +746,14 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
745
746
  }, []), f.useEffect(() => {
746
747
  g(l);
747
748
  }, [l]), f.useEffect(() => {
748
- const X = l.map((_) => _.guid), K = t.filter(
749
- (_) => i.includes(_.guid) && X.includes(_.guid)
749
+ const V = l.map((S) => S.guid), K = t.filter(
750
+ (S) => i.includes(S.guid) && V.includes(S.guid)
750
751
  );
751
752
  C(K), d({
752
- dateRange: { start: Me(H(), 90), end: dt() },
753
- accounts: K.map((_) => _.guid)
753
+ dateRange: { start: $e(W(), 90), end: dt() },
754
+ accounts: K.map((S) => S.guid)
754
755
  });
755
- }, [l, t]), S ? /* @__PURE__ */ o(
756
+ }, [l, t]), _ ? /* @__PURE__ */ o(
756
757
  mt,
757
758
  {
758
759
  accountOptions: l,
@@ -761,7 +762,7 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
761
762
  label: p.action_title,
762
763
  iconName: "credit_card_gear",
763
764
  onClick: () => {
764
- ae(!0), c(Se.CASH_FLOW_CLICK_SETTINGS);
765
+ ae(!0), c(_e.CASH_FLOW_CLICK_SETTINGS);
765
766
  }
766
767
  }
767
768
  ],
@@ -774,38 +775,38 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
774
775
  },
775
776
  dateRange: b,
776
777
  dateRangeVariant: "readonly",
777
- onAccountsFilterClick: () => c(Se.CASH_FLOW_CLICK_FILTER),
778
+ onAccountsFilterClick: () => c(_e.CASH_FLOW_CLICK_FILTER),
778
779
  onBackClick: a,
779
780
  sx: n,
780
- title: F.title,
781
+ title: H.title,
781
782
  children: [
782
783
  /* @__PURE__ */ e(Nt, {}),
783
784
  /* @__PURE__ */ e(Lt, {}),
784
785
  /* @__PURE__ */ e(
785
- He,
786
+ We,
786
787
  {
787
- ariaLabelClose: F.close_settings_aria,
788
- isOpen: M,
788
+ ariaLabelClose: H.close_settings_aria,
789
+ isOpen: $,
789
790
  onClose: () => ae(!1),
790
791
  shouldShowHeaderBorders: !1,
791
792
  title: p.action_title,
792
- children: /* @__PURE__ */ e(tt, { defaultSelectedTab: I ? 1 : 0 })
793
+ children: /* @__PURE__ */ e(Ze, { defaultSelectedTab: I ? 1 : 0 })
793
794
  }
794
795
  )
795
796
  ]
796
797
  }
797
798
  ) : /* @__PURE__ */ e(te, {});
798
- }, Wn = T(Ot), Ft = ({ handleNextStep: a }) => {
799
+ }, Wn = T(Ot), Ht = ({ handleNextStep: a }) => {
799
800
  const { completeOnboarding: n } = me(), { cashflow: t } = k(), i = se();
800
801
  return /* @__PURE__ */ o(s, { children: [
801
802
  /* @__PURE__ */ e(de, { pb: 12, children: t.welcome_title }),
802
803
  /* @__PURE__ */ e(
803
- Qe,
804
+ qe,
804
805
  {
805
806
  color: i.palette.primary.light,
806
807
  pb: 8,
807
808
  sx: { wordBreak: "break-word", whiteSpace: "initial" },
808
- variant: "h3",
809
+ variant: "H3",
809
810
  children: t.welcome_sub_title
810
811
  }
811
812
  ),
@@ -815,7 +816,7 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
815
816
  /* @__PURE__ */ e(
816
817
  D,
817
818
  {
818
- bgcolor: i.palette.primary.light,
819
+ bgcolor: i.palette.primary.lighter,
819
820
  borderRadius: 1,
820
821
  component: "span",
821
822
  height: 44,
@@ -831,7 +832,7 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
831
832
  /* @__PURE__ */ e(
832
833
  D,
833
834
  {
834
- bgcolor: i.palette.primary.light,
835
+ bgcolor: i.palette.primary.lighter,
835
836
  borderRadius: 1,
836
837
  component: "span",
837
838
  height: 44,
@@ -847,7 +848,7 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
847
848
  /* @__PURE__ */ e(
848
849
  D,
849
850
  {
850
- bgcolor: i.palette.primary.light,
851
+ bgcolor: i.palette.primary.lighter,
851
852
  borderRadius: 1,
852
853
  component: "span",
853
854
  height: 44,
@@ -865,17 +866,17 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
865
866
  /* @__PURE__ */ e(G, { onClick: n, variant: "outlined", children: t.skip_button })
866
867
  ] })
867
868
  ] });
868
- }, Wt = T(Ft), Re = "https://content.moneydesktop.com/storage/MD_Assets/md/cashflow", $e = {
869
+ }, Ft = T(Ht), Re = "https://content.moneydesktop.com/storage/MD_Assets/md/cashflow", Me = {
869
870
  CASHFLOW_ONBOARDING: `${Re}/cashflow-onboarding.png`,
870
871
  CASHFLOW_LOADING_ANIMATION: `${Re}/loading-animation.gif`
871
- }, Ht = () => {
872
+ }, Wt = () => {
872
873
  const { cashflow: a } = k();
873
874
  return /* @__PURE__ */ o(f.Fragment, { children: [
874
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("img", { alt: "Loading", src: $e.CASHFLOW_LOADING_ANIMATION }) }),
875
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("img", { alt: "Loading", src: Me.CASHFLOW_LOADING_ANIMATION }) }),
875
876
  /* @__PURE__ */ e(de, { pb: 12, children: a.loading_title }),
876
877
  /* @__PURE__ */ e(N, { children: a.loading_description })
877
878
  ] });
878
- }, Mt = T(Ht), $t = Ye`
879
+ }, $t = T(Wt), Mt = at`
879
880
  from {
880
881
  transform: rotate(0deg);
881
882
  }
@@ -883,7 +884,7 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
883
884
  transform: rotate(360deg);
884
885
  }
885
886
  `, Gt = () => {
886
- const { addRepeatingTransaction: a, repeatingTransactions: n } = P(), { cashflow: t, common: i } = k(), { user: g } = Je(), { completeOnboarding: x } = me(), { isDirty: u } = V(), { isMobile: c } = ue(), { isCopyLoaded: m, setDisplayedDate: r } = q(), { filter: l, setFilter: d, transactions: b } = Ne(), C = se(), [w, O] = J(!0), [A, F] = f.useState(gt.EveryMonth), [p, S] = f.useState(1), [R, I] = f.useState(15), [M, ae] = J(!1), [X, K] = J(1), [_, Ge] = J([]), [fe, le] = J(""), W = f.useMemo(
887
+ const { addRepeatingTransaction: a, repeatingTransactions: n } = P(), { cashflow: t, common: i } = k(), { user: g } = Ve(), { completeOnboarding: x } = me(), { isDirty: u } = Q(), { isMobile: c } = ue(), { isCopyLoaded: m, setDisplayedDate: r } = q(), { filter: l, setFilter: d, transactions: b } = Ne(), C = se(), [w, O] = J(!0), [A, H] = f.useState(gt.EveryMonth), [p, _] = f.useState(1), [R, I] = f.useState(15), [$, ae] = J(!1), [V, K] = J(1), [S, Ge] = J([]), [fe, le] = J(""), F = f.useMemo(
887
888
  () => b.find((y) => y.guid === fe),
888
889
  [fe, b]
889
890
  ), je = !!n.filter(
@@ -891,14 +892,14 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
891
892
  ).length, ge = async () => {
892
893
  K(2), r(
893
894
  // Beginning of the month, 90 days before today
894
- ht(Me(H(), 90)),
895
- H()
895
+ ht($e(W(), 90)),
896
+ W()
896
897
  ), d({ ...l, custom: we }), K(3);
897
898
  }, ze = async () => {
898
- if (!(_.length < 1)) {
899
+ if (!(S.length < 1)) {
899
900
  ae(!0);
900
- for (let y = 0; y < _.length; y++) {
901
- const E = _[y], be = ve(A, Ie(E.date)), Ue = {
901
+ for (let y = 0; y < S.length; y++) {
902
+ const E = S[y], be = ve(A, Ie(E.date)), Ue = {
902
903
  account_guid: E.account_guid,
903
904
  amount: E.amount,
904
905
  created_by: 0,
@@ -917,7 +918,7 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
917
918
  }
918
919
  await x();
919
920
  }
920
- }, Be = !W && w || !W && _.length < 1;
921
+ }, Be = !F && w || !F && S.length < 1;
921
922
  return m ? /* @__PURE__ */ o(
922
923
  D,
923
924
  {
@@ -925,32 +926,32 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
925
926
  display: "flex",
926
927
  alignItems: c ? "flex-start" : "center",
927
928
  backgroundColor: C.palette.background.paper,
928
- backgroundImage: c ? null : `url(${$e.CASHFLOW_ONBOARDING})`,
929
+ backgroundImage: c ? null : `url(${Me.CASHFLOW_ONBOARDING})`,
929
930
  backgroundRepeat: "no-repeat",
930
931
  backgroundPosition: "left 100px",
931
932
  backgroundSize: "35%",
932
933
  py: 24
933
934
  },
934
935
  children: [
935
- X === 1 && /* @__PURE__ */ e(
936
+ V === 1 && /* @__PURE__ */ e(
936
937
  D,
937
938
  {
938
939
  sx: {
939
940
  ...c ? { display: "flex", flexDirection: "column", maxWidth: "100%", padding: "0 16px" } : { maxWidth: 590, ml: "40%", mr: 90 }
940
941
  },
941
- children: /* @__PURE__ */ e(Wt, { handleNextStep: ge })
942
+ children: /* @__PURE__ */ e(Ft, { handleNextStep: ge })
942
943
  }
943
944
  ),
944
- X === 2 && /* @__PURE__ */ e(
945
+ V === 2 && /* @__PURE__ */ e(
945
946
  D,
946
947
  {
947
948
  sx: {
948
949
  ...c ? { display: "flex", flexDirection: "column", maxWidth: "100%", padding: "0 16px" } : { maxWidth: 590, ml: "40%", mr: 90 }
949
950
  },
950
- children: /* @__PURE__ */ e(Mt, {})
951
+ children: /* @__PURE__ */ e($t, {})
951
952
  }
952
953
  ),
953
- X === 3 && /* @__PURE__ */ o(
954
+ V === 3 && /* @__PURE__ */ o(
954
955
  D,
955
956
  {
956
957
  sx: {
@@ -959,13 +960,13 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
959
960
  children: [
960
961
  /* @__PURE__ */ e(de, { pb: 12, children: t.add_income_title }),
961
962
  /* @__PURE__ */ e(N, { mb: 24, children: t.add_income_description }),
962
- _.length > 0 && !W && /* @__PURE__ */ o(U, { children: [
963
- /* @__PURE__ */ e(ee, { children: _.map((y, E) => /* @__PURE__ */ o(f.Fragment, { children: [
963
+ S.length > 0 && !F && /* @__PURE__ */ o(U, { children: [
964
+ /* @__PURE__ */ e(ee, { children: S.map((y, E) => /* @__PURE__ */ o(f.Fragment, { children: [
964
965
  /* @__PURE__ */ e(pt, { bgcolor: "background.paper", children: bt(
965
966
  B(y.nextDate || y.date)
966
967
  ) }),
967
968
  /* @__PURE__ */ e(ft, { transaction: y }),
968
- E !== _.length - 1 && /* @__PURE__ */ e(v, {})
969
+ E !== S.length - 1 && /* @__PURE__ */ e(v, {})
969
970
  ] }, y.guid)) }),
970
971
  /* @__PURE__ */ o(s, { alignItems: "center", direction: "row", children: [
971
972
  /* @__PURE__ */ e(v, { sx: { flexGrow: 1 } }),
@@ -993,30 +994,30 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
993
994
  }
994
995
  ),
995
996
  !je && u && /* @__PURE__ */ e(N, { color: "error", mt: 16, children: t.confirm_error }),
996
- W && /* @__PURE__ */ o(U, { children: [
997
+ F && /* @__PURE__ */ o(U, { children: [
997
998
  /* @__PURE__ */ e(
998
999
  lt,
999
1000
  {
1000
1001
  bgcolor: "background.paper",
1001
1002
  firstDay: p,
1002
1003
  frequency: A,
1003
- onFirstDayChange: S,
1004
- onFrequencyChange: F,
1004
+ onFirstDayChange: _,
1005
+ onFrequencyChange: H,
1005
1006
  onSecondDayChange: I,
1006
1007
  secondDay: R,
1007
- transaction: W
1008
+ transaction: F
1008
1009
  }
1009
1010
  ),
1010
1011
  /* @__PURE__ */ o(s, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
1011
1012
  /* @__PURE__ */ e(
1012
1013
  G,
1013
1014
  {
1014
- "aria-disabled": !W,
1015
+ "aria-disabled": !F,
1015
1016
  onClick: () => {
1016
- const y = [..._];
1017
+ const y = [...S];
1017
1018
  y.push({
1018
- ...W,
1019
- nextDate: ve(A, Ie(W.date)),
1019
+ ...F,
1020
+ nextDate: ve(A, Ie(F.date)),
1020
1021
  frequency: A
1021
1022
  }), Ge(y), le("");
1022
1023
  },
@@ -1036,18 +1037,18 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
1036
1037
  )
1037
1038
  ] })
1038
1039
  ] }),
1039
- _.length > 0 && !W && /* @__PURE__ */ o(s, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
1040
+ S.length > 0 && !F && /* @__PURE__ */ o(s, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
1040
1041
  /* @__PURE__ */ e(
1041
1042
  G,
1042
1043
  {
1043
- "aria-disabled": _.length < 1 || M,
1044
+ "aria-disabled": S.length < 1 || $,
1044
1045
  onClick: ze,
1045
- startIcon: M ? /* @__PURE__ */ e(
1046
+ startIcon: $ ? /* @__PURE__ */ e(
1046
1047
  j,
1047
1048
  {
1048
1049
  name: "progress_activity",
1049
1050
  sx: {
1050
- animation: `${$t} 2s linear infinite`
1051
+ animation: `${Mt} 2s linear infinite`
1051
1052
  }
1052
1053
  }
1053
1054
  ) : null,
@@ -1063,7 +1064,7 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
1063
1064
  ]
1064
1065
  }
1065
1066
  ) : /* @__PURE__ */ e(te, {});
1066
- }, Hn = T(Gt);
1067
+ }, $n = T(Gt);
1067
1068
  class Mn {
1068
1069
  fetchInstance;
1069
1070
  constructor(n, t, i) {
@@ -1086,7 +1087,7 @@ class Mn {
1086
1087
  export {
1087
1088
  Mn as CashflowApi,
1088
1089
  Fn as CashflowMiniWidget,
1089
- Hn as CashflowOnboarding,
1090
- jn as CashflowStore,
1090
+ $n as CashflowOnboarding,
1091
+ zn as CashflowStore,
1091
1092
  Wn as CashflowWidget
1092
1093
  };