@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
@@ -4,20 +4,20 @@ import e from "@mui/material/Stack";
4
4
  import { H3 as _, InstitutionLogo as x, Text as a, H2 as T } from "@mxenabled/mxui";
5
5
  import d from "react";
6
6
  import { G as N, d as f, m as D, f as w, u as E } from "./hooks-C41HAxM5.mjs";
7
- import { g as I } from "./AccountFields-Cl4KHoSj.mjs";
7
+ import { g as I } from "./AccountFields-QZspYAji.mjs";
8
8
  import G from "@mui/material/Card";
9
9
  import v from "@mui/material/CardContent";
10
10
  import O from "@mui/material/CardHeader";
11
- import { L as H } from "./Loader-Ckqi9Rx6.mjs";
12
- import { f as M, a as P } from "./Dialog-CDV0kKxj.mjs";
13
- import { I as L, P as U, S as j } from "./Account-B4CDD-zq.mjs";
14
- import { u as z } from "./useAccountDisplayName-CcIp09Xc.mjs";
15
- import { f as Y } from "./NumberFormatting-DjTD0t3W.mjs";
11
+ import { L as H } from "./Loader-DUaFpDGv.mjs";
12
+ import { f as M, a as P } from "./Dialog-BPTr3qHE.mjs";
13
+ import { I as L, P as U, S as j } from "./Account-BDXA6PWh.mjs";
14
+ import { u as z } from "./useAccountDisplayName-CFNF8766.mjs";
15
+ import { f as B } from "./NumberFormatting-DjTD0t3W.mjs";
16
16
  const p = () => {
17
17
  if (!d.useContext(N))
18
18
  throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
19
19
  return f().uiStore;
20
- }, k = ({ sx: n, ChartComponent: s }) => {
20
+ }, Y = ({ sx: n, ChartComponent: s }) => {
21
21
  const { loadMonthlyCategoryTotals: c } = D(), { isInitialized: o } = w(), { selectedAccount: r } = p(), [l, u] = d.useState(!1);
22
22
  return d.useEffect(() => {
23
23
  o && c([r]).finally(() => {
@@ -44,17 +44,17 @@ const p = () => {
44
44
  ]
45
45
  }
46
46
  );
47
- }, B = m(k), R = ({
47
+ }, k = m(Y), R = ({
48
48
  customDetailsChart: n,
49
49
  ChartComponent: s
50
50
  }) => {
51
- const { institutions: c } = f(), { selectedAccount: o } = p(), { accounts: r } = E(), { firstSubtitle: l, firstValue: u, hasAvailableBalance: b, secondSubtitle: C, secondValue: h } = I(o, r), y = c.find(
52
- (g) => g.guid === o?.institution_guid
51
+ const { institutions: c } = f(), { selectedAccount: o } = p(), { accounts: r } = E(), { firstSubtitle: l, firstValue: u, hasAvailableBalance: C, secondSubtitle: h, secondValue: S } = I(o, r), b = c.find(
52
+ (y) => y.guid === o?.institution_guid
53
53
  ), A = [
54
54
  ...L,
55
55
  ...U,
56
56
  ...j
57
- ].includes(o.account_type), S = z(o);
57
+ ].includes(o.account_type), g = z(o);
58
58
  return /* @__PURE__ */ i(e, { bgcolor: "background.default", p: 24, children: [
59
59
  /* @__PURE__ */ i(e, { gap: 12, children: [
60
60
  /* @__PURE__ */ t(
@@ -65,20 +65,20 @@ const p = () => {
65
65
  size: 64
66
66
  }
67
67
  ),
68
- /* @__PURE__ */ t(a, { variant: "body2", children: y?.name })
68
+ /* @__PURE__ */ t(a, { variant: "Small", children: b?.name })
69
69
  ] }),
70
70
  /* @__PURE__ */ i(e, { gap: 8, mb: 24, mt: 4, children: [
71
- /* @__PURE__ */ t(T, { children: S }),
71
+ /* @__PURE__ */ t(T, { children: g }),
72
72
  /* @__PURE__ */ i(e, { direction: "row", justifyContent: "space-between", children: [
73
- /* @__PURE__ */ t(a, { bold: b, variant: "body1", children: l }),
74
- /* @__PURE__ */ t(a, { bold: !0, variant: "body1", children: Y(u, "0,0.00") })
73
+ /* @__PURE__ */ t(a, { bold: C, variant: "Body", children: l }),
74
+ /* @__PURE__ */ t(a, { bold: !0, variant: "Body", children: B(u, "0,0.00") })
75
75
  ] }),
76
76
  /* @__PURE__ */ i(e, { direction: "row", justifyContent: "space-between", children: [
77
- /* @__PURE__ */ t(a, { variant: "body2", children: C }),
78
- /* @__PURE__ */ t(a, { variant: "body2", children: h })
77
+ /* @__PURE__ */ t(a, { variant: "Small", children: h }),
78
+ /* @__PURE__ */ t(a, { variant: "Small", children: S })
79
79
  ] })
80
80
  ] }),
81
- A && /* @__PURE__ */ t(e, { children: n || /* @__PURE__ */ t(B, { ChartComponent: s }) })
81
+ A && /* @__PURE__ */ t(e, { children: n || /* @__PURE__ */ t(k, { ChartComponent: s }) })
82
82
  ] });
83
83
  }, rt = m(R);
84
84
  export {
@@ -1,10 +1,10 @@
1
1
  import { jsx as u } from "react/jsx-runtime";
2
- import { Text as y, Icon as p } from "@mxenabled/mxui";
3
- import { F as m, A as d, a as v, P as h, b as F } from "./ConnectDrawer-DVp54lUH.mjs";
4
- import { i as T, u as A, a as D, b as g, c as O } from "./Accounts-CRUehOiy.mjs";
5
- import { f as _, a as N, i as b, b as C } from "./NumberFormatting-DjTD0t3W.mjs";
2
+ import { Icon as p, Text as y } from "@mxenabled/mxui";
3
+ import { F as m, A as d, a as v, P as h, b as F } from "./ConnectDrawer-BIbTqYOH.mjs";
4
+ import { i as T, u as A, a as D, b as g, c as O } from "./Accounts-DXfZotRC.mjs";
5
+ import { f as _, i as b, a as N, b as S } from "./NumberFormatting-DjTD0t3W.mjs";
6
6
  import { b as i } from "./Localization-2MODESHW.mjs";
7
- import { f as o, a as f } from "./Dialog-CDV0kKxj.mjs";
7
+ import { f as o, a as f } from "./Dialog-BPTr3qHE.mjs";
8
8
  const w = (l, e) => {
9
9
  const r = [
10
10
  {
@@ -87,7 +87,7 @@ const w = (l, e) => {
87
87
  type: m.Date,
88
88
  valueFormatter: (a) => i(
89
89
  e.day_of_every_month,
90
- C(a <= 31 ? a : new Date(a).getDate())
90
+ S(a <= 31 ? a : new Date(a).getDate())
91
91
  )
92
92
  })), g(l) && r.push({
93
93
  label: e.credit_limit,
@@ -103,20 +103,18 @@ const w = (l, e) => {
103
103
  type: m.Currency,
104
104
  valueFormatter: (a) => _(a, "0,0.00")
105
105
  }), r;
106
- }, S = (l, e) => {
106
+ }, C = (l, e) => {
107
107
  let r = "", a = null, t = null, n = null, s = !1;
108
108
  switch (l.account_type) {
109
- // checking or savings
110
109
  case 1:
111
110
  case 2: {
112
111
  l.available_balance ? (r = e.available_balance, a = l.available_balance, t = l.available_balance ? e.current_balance : null, n = _(l.balance, "0,0.00"), s = !0) : (r = e.current_balance, a = l.balance);
113
112
  break;
114
113
  }
115
- // credit cards, loans, investments, etc
116
114
  default:
117
115
  if (r = e.current_balance, a = l.balance, l.minimum_payment && l.payment_due_at) {
118
116
  const c = typeof l.payment_due_at == "number" ? new Date(l.payment_due_at * 1e3) : l.payment_due_at;
119
- t = /* @__PURE__ */ u(y, { component: "strong", variant: "caption", children: i(
117
+ t = /* @__PURE__ */ u(y, { component: "strong", variant: "XSmall", children: i(
120
118
  e.payment_due_on,
121
119
  _(l.minimum_payment, "0,0.00"),
122
120
  o(c, f.FULL_MONTH_DAY)
@@ -131,11 +129,11 @@ const w = (l, e) => {
131
129
  hasAvailableBalance: s
132
130
  };
133
131
  }, x = (l, e) => l.reduce((a, t) => {
134
- const s = S(t, e).firstValue || 0;
132
+ const s = C(t, e).firstValue || 0;
135
133
  return a + s;
136
134
  }, 0);
137
135
  export {
138
136
  x as a,
139
137
  w as b,
140
- S as g
138
+ C as g
141
139
  };
@@ -0,0 +1,90 @@
1
+ import { jsx as e, jsxs as r, Fragment as l } from "react/jsx-runtime";
2
+ import { observer as b } from "mobx-react-lite";
3
+ import I from "@mui/material/Badge";
4
+ import m from "@mui/material/Box";
5
+ import S from "@mui/material/ListItem";
6
+ import v from "@mui/material/ListItemAvatar";
7
+ import C from "@mui/material/ListItemButton";
8
+ import _ from "@mui/material/ListItemText";
9
+ import B from "@mui/material/styles/useTheme";
10
+ import { InstitutionLogo as L, Text as o } from "@mxenabled/mxui";
11
+ import { Error as A } from "@mxenabled/mx-icons";
12
+ import { I as j } from "./IconBacking-B9oC6uL2.mjs";
13
+ import { g as T } from "./AccountFields-QZspYAji.mjs";
14
+ import { u as X } from "./useAccountDisplayName-CFNF8766.mjs";
15
+ import { u as $ } from "./hooks-C41HAxM5.mjs";
16
+ import { C as d } from "./ConnectDrawer-BIbTqYOH.mjs";
17
+ import { f as k } from "./NumberFormatting-DjTD0t3W.mjs";
18
+ const w = {
19
+ gridRow: 1,
20
+ gridColumn: 1,
21
+ zIndex: 2
22
+ }, E = ({ size: t = 20 }) => /* @__PURE__ */ e(j, { size: t, children: /* @__PURE__ */ e(A, { color: "error", filled: !0, sx: { fontSize: t, ...w } }) }), M = ({
23
+ account: t,
24
+ onRowClick: s,
25
+ listItemProps: c,
26
+ shouldShowConnectionStatus: p = !1
27
+ }) => {
28
+ const u = B(), f = X(t), { accounts: i } = $(), { firstSubtitle: h, firstValue: g, secondSubtitle: x, secondValue: y } = T(
29
+ t,
30
+ i
31
+ );
32
+ let n;
33
+ (t.connectionStatus === d.Error || t.connectionStatus === d.RequiresMfa) && (n = /* @__PURE__ */ e(E, { size: 16 }));
34
+ const a = /* @__PURE__ */ r(l, { children: [
35
+ /* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(
36
+ I,
37
+ {
38
+ badgeContent: p ? n : void 0,
39
+ sx: {
40
+ "& .MuiBadge-badge": {
41
+ right: -1
42
+ }
43
+ },
44
+ children: /* @__PURE__ */ e(L, { alt: "MX", institutionGuid: t.institution_guid || "" })
45
+ }
46
+ ) }),
47
+ /* @__PURE__ */ e(
48
+ _,
49
+ {
50
+ disableTypography: !0,
51
+ primary: /* @__PURE__ */ r(
52
+ o,
53
+ {
54
+ bold: !0,
55
+ color: t.is_hidden ? u.palette.text.secondary : void 0,
56
+ sx: { whiteSpace: "normal" },
57
+ variant: "Body",
58
+ children: [
59
+ `${f} ${t.account_number ? `*${t.account_number}` : ""}`,
60
+ " ",
61
+ t.is_hidden && !t.is_closed && i.is_hidden,
62
+ t.is_closed && i.is_closed
63
+ ]
64
+ }
65
+ ),
66
+ secondary: /* @__PURE__ */ r(l, { children: [
67
+ /* @__PURE__ */ r(m, { sx: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
68
+ /* @__PURE__ */ e(o, { variant: "XSmall", children: h }),
69
+ /* @__PURE__ */ e(o, { bold: !0, variant: "Small", children: k(g, "0,0.00") })
70
+ ] }),
71
+ /* @__PURE__ */ r(m, { sx: { alignItems: "center", display: "flex", justifyContent: "space-between" }, children: [
72
+ /* @__PURE__ */ e(o, { variant: "XSmall", children: x }),
73
+ /* @__PURE__ */ e(o, { ml: "auto", variant: "XSmall", children: y })
74
+ ] })
75
+ ] })
76
+ }
77
+ )
78
+ ] });
79
+ return /* @__PURE__ */ e(
80
+ S,
81
+ {
82
+ sx: { backgroundColor: "background.paper", color: t.is_closed ? "grey.700" : "" },
83
+ ...c,
84
+ children: s ? /* @__PURE__ */ e(C, { alignItems: "flex-start", onClick: s, sx: { px: 24 }, children: a }) : a
85
+ }
86
+ );
87
+ }, Z = b(M);
88
+ export {
89
+ Z as A
90
+ };
@@ -1,8 +1,8 @@
1
1
  import { makeAutoObservable as l, runInAction as a } from "mobx";
2
- import { i as A } from "./User-BklmOUSd.mjs";
2
+ import { i as A } from "./User-wXzDI4M8.mjs";
3
3
  import { F as g, A as i } from "./Fetch-DecPFeGU.mjs";
4
- import { d as m } from "./Accounts-CRUehOiy.mjs";
5
- import { A as c, j as u } from "./ConnectDrawer-DVp54lUH.mjs";
4
+ import { d as m } from "./Accounts-DXfZotRC.mjs";
5
+ import { A as c, j as u } from "./ConnectDrawer-BIbTqYOH.mjs";
6
6
  class d {
7
7
  fetchInstance;
8
8
  constructor(t, e, s) {
@@ -1,4 +1,4 @@
1
- import { A as e, C as u, E as r, c as p, M as y } from "./ConnectDrawer-DVp54lUH.mjs";
1
+ import { A as e, C as u, E as r, c as p, M as y } from "./ConnectDrawer-BIbTqYOH.mjs";
2
2
  const l = (t) => t && (t.account_type === e.CREDIT_CARD || t.account_type === e.LOAN || t.account_type === e.MORTGAGE || t.account_type === e.LINE_OF_CREDIT || t.account_type === e.CHECKING_LINE_OF_CREDIT), I = (t) => t.is_manual || !t.guid, R = (t) => t.account_type === e.LINE_OF_CREDIT || t.account_type === e.CREDIT_CARD || t.account_type === e.CHECKING_LINE_OF_CREDIT, f = (t) => t.account_type === e.SAVINGS || t.account_type === e.CHECKING || t.account_type === e.LINE_OF_CREDIT || t.account_type === e.CREDIT_CARD || t.account_type === e.LOAN || t.account_type === e.MORTGAGE, m = (t) => t.account_type === e.LOAN || t.account_type === e.MORTGAGE, A = (t, n, s, _) => t.filter((i) => !(i.member_is_managed_by_user && _)).sort(d).map((i) => {
3
3
  const c = n.find((a) => a.guid === i.institution_guid), o = s.find((a) => a.guid === i.member_guid);
4
4
  return E(i, c, o);
@@ -1,58 +1,58 @@
1
1
  import { i as _ } from "./hooks-C41HAxM5.mjs";
2
- import { b as d } from "./Category-Ccoew_sA.mjs";
2
+ import { b as d } from "./Category-CevNQ03n.mjs";
3
3
  import { b as f } from "./Localization-2MODESHW.mjs";
4
4
  import { f as l } from "./NumberFormatting-DjTD0t3W.mjs";
5
5
  const p = (n, e) => n.find((t) => t.guid === e), B = (n, e) => n.find((t) => t.guid === e), T = (n, e) => {
6
- const t = n.find((o) => o.subCategories.find((a) => a.guid === e));
6
+ const t = n.find((r) => r.subCategories.find((a) => a.guid === e));
7
7
  if (t)
8
- return t.subCategories.find((o) => o.guid === e);
8
+ return t.subCategories.find((r) => r.guid === e);
9
9
  }, k = (n, e) => {
10
10
  const t = [];
11
- for (const o of e) {
12
- const a = p(n, o.category_guid);
11
+ for (const r of e) {
12
+ const a = p(n, r.category_guid);
13
13
  if (!a) continue;
14
- const r = a.parent_guid ?? a.guid, s = p(n, r);
14
+ const o = a.parent_guid ?? a.guid, s = p(n, o);
15
15
  if (!s) continue;
16
16
  const u = {
17
- amount: o.total,
17
+ amount: r.total,
18
18
  category: a,
19
19
  guid: a.guid,
20
20
  subCategoryTotals: []
21
- }, i = t.find((g) => g.guid === r);
22
- i ? (i.amount += o.total, i.subCategoryTotals.push(u)) : t.push({
23
- amount: o.total,
21
+ }, i = t.find((g) => g.guid === o);
22
+ i ? (i.amount += r.total, i.subCategoryTotals.push(u)) : t.push({
23
+ amount: r.total,
24
24
  category: s,
25
- guid: r,
25
+ guid: o,
26
26
  subCategoryTotals: [u]
27
27
  });
28
28
  }
29
29
  return t;
30
30
  }, w = (n, e) => {
31
- const t = n.find((o) => o.guid === e);
31
+ const t = n.find((r) => r.guid === e);
32
32
  return t ? t.guid === d.INCOME || t.parent_guid === d.INCOME : !1;
33
33
  }, y = (n, e) => !n && !e ? 0 : !n && e ? 101 : e / n * 100, b = (n, e) => {
34
34
  const t = {
35
35
  background: e.palette.success.main,
36
36
  description: n <= 100 ? e.palette.text.secondary : e.palette.error.main,
37
37
  text: e.palette.common.white,
38
- mercury: e.palette.success.light
38
+ mercury: e.palette.success.lighter
39
39
  };
40
- return n > 100 ? (t.background = e.palette.error.main, t.mercury = e.palette.error.light) : n > 80 && (t.background = e.palette.warning.main, t.text = e.palette.grey[900], t.mercury = e.palette.warning.light), t;
40
+ return n > 100 ? (t.background = e.palette.error.main, t.mercury = e.palette.error.lighter) : n > 80 && (t.background = e.palette.warning.main, t.text = e.palette.grey[900], t.mercury = e.palette.warning.lighter), t;
41
41
  }, G = () => {
42
42
  const { detailedBudgets: n } = _();
43
43
  return n.map((t) => {
44
- const o = t.transaction_total;
45
- return t.amount - o;
46
- }).reduce((t, o) => t + o, 0);
47
- }, I = (n, e, t, o) => {
44
+ const r = t.transaction_total;
45
+ return t.amount - r;
46
+ }).reduce((t, r) => t + r, 0);
47
+ }, I = (n, e, t, r) => {
48
48
  const a = [];
49
- for (const r of n) {
50
- const s = B(e, r.category_guid);
49
+ for (const o of n) {
50
+ const s = B(e, o.category_guid);
51
51
  if (!s) continue;
52
- const u = s.totalAmount, i = y(r.amount, u), g = r.amount - u;
52
+ const u = s.totalAmount, i = y(o.amount, u), g = o.amount - u;
53
53
  a.push({
54
- ...r,
55
- budgetColors: b(i, o),
54
+ ...o,
55
+ budgetColors: b(i, r),
56
56
  category: s,
57
57
  description: f(
58
58
  g < 0 ? t.budget_remaining_over : t.budget_remaining_left,
@@ -63,15 +63,15 @@ const p = (n, e) => n.find((t) => t.guid === e), B = (n, e) => n.find((t) => t.g
63
63
  transaction_total: u
64
64
  });
65
65
  }
66
- for (const r of n) {
67
- const s = T(e, r.category_guid);
66
+ for (const o of n) {
67
+ const s = T(e, o.category_guid);
68
68
  if (!s) continue;
69
69
  const u = s.currentAmount, i = a.find((C) => C.category_guid === s.parent_guid);
70
70
  if (!i) continue;
71
- const g = r.amount - u, c = y(r.amount, u);
71
+ const g = o.amount - u, c = y(o.amount, u);
72
72
  i && i.subBudgets.push({
73
- ...r,
74
- budgetColors: b(c, o),
73
+ ...o,
74
+ budgetColors: b(c, r),
75
75
  category: s,
76
76
  description: f(
77
77
  g < 0 ? t.budget_remaining_over : t.budget_remaining_left,
@@ -84,9 +84,9 @@ const p = (n, e) => n.find((t) => t.guid === e), B = (n, e) => n.find((t) => t.g
84
84
  }
85
85
  return a;
86
86
  }, m = (n, e) => n.find((t) => t.guid === e), S = (n, e, t) => {
87
- const o = m(n, t);
88
- if (o)
89
- return m(o.subBudgets, e);
87
+ const r = m(n, t);
88
+ if (r)
89
+ return m(r.subBudgets, e);
90
90
  };
91
91
  export {
92
92
  S as a,
@@ -2,40 +2,47 @@ import { jsx as t, jsxs as a } from "react/jsx-runtime";
2
2
  import c from "@mui/material/IconButton";
3
3
  import m from "@mui/material/Stack";
4
4
  import l from "@mui/material/Tooltip";
5
- import { Icon as p, Text as n } from "@mxenabled/mxui";
5
+ import { Text as s, Icon as p, IconWeight as h } from "@mxenabled/mxui";
6
6
  import { makeAutoObservable as i } from "mobx";
7
7
  import { addDays as d } from "date-fns/addDays";
8
- import { differenceInDays as h } from "date-fns/differenceInDays";
9
- import { endOfMonth as f } from "date-fns/endOfMonth";
10
- import { isBefore as x } from "date-fns/isBefore";
8
+ import { differenceInDays as f } from "date-fns/differenceInDays";
9
+ import { endOfMonth as x } from "date-fns/endOfMonth";
10
+ import { isBefore as u } from "date-fns/isBefore";
11
11
  import { startOfToday as r } from "date-fns/startOfToday";
12
- const U = ({
12
+ const g = ({
13
13
  body: o,
14
14
  iconName: e = "info",
15
- title: s
15
+ title: n
16
16
  }) => /* @__PURE__ */ t(
17
17
  l,
18
18
  {
19
19
  enterTouchDelay: 500,
20
20
  title: /* @__PURE__ */ a(m, { gap: 2, p: 12, sx: { textOverflow: "none" }, children: [
21
- /* @__PURE__ */ t(n, { bold: !0, variant: "body1", children: s }),
22
- /* @__PURE__ */ t(n, { sx: { whiteSpace: "unset" }, variant: "body2", children: o })
21
+ /* @__PURE__ */ t(s, { bold: !0, variant: "Body", children: n }),
22
+ /* @__PURE__ */ t(s, { sx: { whiteSpace: "unset" }, variant: "Small", children: o })
23
23
  ] }),
24
24
  children: /* @__PURE__ */ t(
25
25
  c,
26
26
  {
27
- "aria-label": s,
27
+ "aria-label": n,
28
28
  sx: {
29
29
  minHeight: 0,
30
30
  minWidth: 0,
31
31
  p: 0
32
32
  },
33
- children: /* @__PURE__ */ t(p, { name: e, sx: { color: "primary.main", fontSize: 16 } })
33
+ children: /* @__PURE__ */ t(
34
+ p,
35
+ {
36
+ name: e,
37
+ sx: { color: "primary.main", fontSize: 16 },
38
+ weight: h.Dark
39
+ }
40
+ )
34
41
  }
35
42
  )
36
43
  }
37
- );
38
- class u {
44
+ ), E = g;
45
+ class I {
39
46
  // Cashflow is hard-coded to display 30 days starting from today
40
47
  dateRange = { start: r(), end: d(r(), 30) };
41
48
  isDirty = !1;
@@ -47,13 +54,13 @@ class u {
47
54
  }
48
55
  // Returns the number of days until the next income activity or 0 if there is no income activity
49
56
  get daysUntilNextIncome() {
50
- return this.nextIncome ? Math.abs(h(r(), this.nextIncome.expectedDate)) : 0;
57
+ return this.nextIncome ? Math.abs(f(r(), this.nextIncome.expectedDate)) : 0;
51
58
  }
52
59
  // Returns the expenses (Activities) until the next income activity or the end of the month
53
60
  // if there is no income activity
54
61
  get expensesTilNextIncome() {
55
62
  return this.upcomingExpenses.filter(
56
- (e) => x(e.expectedDate, this.nextIncome?.expectedDate || f(/* @__PURE__ */ new Date()))
63
+ (e) => u(e.expectedDate, this.nextIncome?.expectedDate || x(/* @__PURE__ */ new Date()))
57
64
  );
58
65
  }
59
66
  setNextIncome = (e) => {
@@ -64,11 +71,11 @@ class u {
64
71
  };
65
72
  setSelectedCashAccounts = (e) => this.selectedCashAccounts = e;
66
73
  }
67
- class A {
74
+ class _ {
68
75
  globalStore;
69
76
  uiStore;
70
77
  constructor(e) {
71
- this.globalStore = e, this.uiStore = new u(), i(this);
78
+ this.globalStore = e, this.uiStore = new I(), i(this);
72
79
  }
73
80
  completeOnboarding = async () => {
74
81
  const e = {
@@ -79,6 +86,6 @@ class A {
79
86
  };
80
87
  }
81
88
  export {
82
- A as C,
83
- U as I
89
+ _ as C,
90
+ E as I
84
91
  };
@@ -293,9 +293,9 @@ const A = {
293
293
  UNKNOWN: "help"
294
294
  };
295
295
  export {
296
- E as C,
296
+ T as C,
297
297
  e as P,
298
- T as a,
298
+ E as a,
299
299
  A as b,
300
300
  a as c
301
301
  };