@mx-cartographer/experiences 7.2.2 → 7.2.3

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 (60) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/dist/{Account-8IUM_CLv.mjs → Account-B-CuHOYf.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-CuZSSAEc.mjs → AccountDetailsContent-DfzPOeMI.mjs} +8 -8
  4. package/dist/{AccountDetailsHeader-BZBsIKdF.mjs → AccountDetailsHeader-vcy67tuH.mjs} +6 -6
  5. package/dist/{AccountFields-BD_0GT68.mjs → AccountFields-cUP-9Hm6.mjs} +2 -2
  6. package/dist/{AccountListItem-CllIBCao.mjs → AccountListItem-DChcf3SN.mjs} +4 -4
  7. package/dist/{AccountStore-DeAQv-kI.mjs → AccountStore-D6KiXA1B.mjs} +2 -2
  8. package/dist/{Accounts-Bvc9TJaO.mjs → Accounts-IeEtQjzA.mjs} +1 -1
  9. package/dist/{BudgetUtil-psfk-Amb.mjs → BudgetUtil-B2ZXyw-g.mjs} +1 -1
  10. package/dist/{CategorySelectorDrawer-BmenK5bu.mjs → CategorySelectorDrawer-DUe4lH5-.mjs} +1 -1
  11. package/dist/{ConnectDrawer-CPTXh70j.mjs → ConnectDrawer-DaFRU5st.mjs} +1 -1
  12. package/dist/{ConnectionsDrawer-Dkb4vBmt.mjs → ConnectionsDrawer-DHJ7qdWL.mjs} +2 -2
  13. package/dist/{CurrencyInput-C4xNRL2W.mjs → CurrencyInput-CsCy7uaS.mjs} +1 -1
  14. package/dist/{DebtsStore-D4grpB4m.mjs → DebtsStore-z3VARSO6.mjs} +1 -1
  15. package/dist/{ExportCsvAction-CBJAfyAw.mjs → ExportCsvAction-sX8Rg4Ov.mjs} +3 -3
  16. package/dist/{GoalStore-B5MZzPLZ.mjs → GoalStore-TD0BfzWX.mjs} +2 -2
  17. package/dist/{Help-CzBAsKA2.mjs → Help-B6dIcujh.mjs} +1 -1
  18. package/dist/{LineChart-B35qvXik.mjs → LineChart-D4GI7nVh.mjs} +1 -1
  19. package/dist/{ListItemAction-DSrYDGAP.mjs → ListItemAction-DHa3KJPs.mjs} +1 -1
  20. package/dist/{ManageIncome-DUuT-yMV.mjs → ManageIncome-D3n1EWxe.mjs} +34 -34
  21. package/dist/{MicroWidgetContainer-C4QQHfD7.mjs → MicroWidgetContainer-DpeqN9n3.mjs} +1 -1
  22. package/dist/{MiniWidgetContainer-DTQdRK-3.mjs → MiniWidgetContainer-D0gfmbaF.mjs} +1 -1
  23. package/dist/{NetWorthStore-Do1Gk8Te.mjs → NetWorthStore-B_1oulrt.mjs} +2 -2
  24. package/dist/{NotificationSettings-BuShgjn6.mjs → NotificationSettings-BRm_EJZV.mjs} +3 -3
  25. package/dist/{OriginalBalanceAction-BsxcvNEF.mjs → OriginalBalanceAction-CAaVbVMO.mjs} +3 -3
  26. package/dist/{RecurringSettings-BVOt46uV.mjs → RecurringSettings-C28GrQcP.mjs} +3 -3
  27. package/dist/{TransactionDetails-_cXLXTd3.mjs → TransactionDetails-BWffqew4.mjs} +5 -5
  28. package/dist/{TransactionStore-DUVfWzsI.mjs → TransactionStore-DxPLdF3B.mjs} +2 -2
  29. package/dist/{TrendsStore-ZZ8X36lJ.mjs → TrendsStore-DCYbpXPO.mjs} +1 -1
  30. package/dist/{User-DaJAQ09j.mjs → User-BQUxBeZV.mjs} +1 -1
  31. package/dist/{WidgetContainer-DtPnPQZY.mjs → WidgetContainer-C88Ecu2W.mjs} +2 -2
  32. package/dist/accounts/index.es.js +13 -13
  33. package/dist/analytics/index.es.js +2 -2
  34. package/dist/budgets/index.es.js +10 -10
  35. package/dist/cashflow/index.es.js +7 -7
  36. package/dist/categories/index.es.js +1 -1
  37. package/dist/common/context/GlobalDataProvider.d.ts +1 -0
  38. package/dist/common/context/hooks.d.ts +3 -0
  39. package/dist/common/context/index.d.ts +1 -1
  40. package/dist/common/index.es.js +50 -49
  41. package/dist/dashboard/index.es.js +81 -79
  42. package/dist/debts/index.es.js +9 -9
  43. package/dist/{exportTransactionsToCSV-D8TTNrrE.mjs → exportTransactionsToCSV-7bVS7KXf.mjs} +1 -1
  44. package/dist/finstrong/index.es.js +6 -6
  45. package/dist/goals/index.es.js +12 -12
  46. package/dist/help/index.es.js +3 -3
  47. package/dist/hooks-D6XlXHf4.mjs +77 -0
  48. package/dist/investments/index.es.js +3 -3
  49. package/dist/merchants/index.es.js +1 -1
  50. package/dist/networth/index.es.js +7 -7
  51. package/dist/notifications/index.es.js +2 -2
  52. package/dist/recurringtransactions/index.es.js +19 -19
  53. package/dist/settings/index.es.js +6 -6
  54. package/dist/spending/index.es.js +4 -4
  55. package/dist/transactions/index.es.js +13 -13
  56. package/dist/trends/index.es.js +449 -449
  57. package/dist/{useAccountDisplayName-BXGkZN5B.mjs → useAccountDisplayName-BcRqfar8.mjs} +2 -2
  58. package/dist/{useInsightsEnabled-DSnpkUq0.mjs → useInsightsEnabled-DBpwEq10.mjs} +1 -1
  59. package/package.json +1 -1
  60. package/dist/hooks-CE2TKk4a.mjs +0 -74
@@ -1,29 +1,29 @@
1
- import { jsx as t, jsxs as a } from "react/jsx-runtime";
1
+ import { jsx as t, jsxs as s } from "react/jsx-runtime";
2
2
  import r from "react";
3
3
  import { observer as _ } from "mobx-react-lite";
4
4
  import h from "@mui/material/Unstable_Grid2";
5
5
  import u from "@mui/material/Skeleton";
6
- import s from "@mui/material/Stack";
7
- import k from "@mui/material/styles/useTheme";
8
- import { f as A, u as v, d as C, b as M, a as B } from "../hooks-CE2TKk4a.mjs";
9
- import D from "@mui/material/Paper";
10
- import { Icon as S, H1 as G, P as F } from "@mxenabled/mxui";
11
- import { useMediaQuery as W } from "@mui/system";
12
- import I from "@mui/material/Box";
13
- import T from "@mui/material/Button";
14
- import $ from "@mui/material/IconButton";
15
- import H from "@mui/material/Tooltip";
16
- import R from "@mui/material/useMediaQuery";
17
- import { k as j, l as Q } from "../ConnectDrawer-CPTXh70j.mjs";
6
+ import l from "@mui/material/Stack";
7
+ import D from "@mui/material/styles/useTheme";
8
+ import { f as A, u as v, d as C, b as M, a as k, n as B } from "../hooks-D6XlXHf4.mjs";
9
+ import G from "@mui/material/Paper";
10
+ import { Icon as S, H1 as F, P as W } from "@mxenabled/mxui";
11
+ import { useMediaQuery as I } from "@mui/system";
12
+ import T from "@mui/material/Box";
13
+ import $ from "@mui/material/Button";
14
+ import H from "@mui/material/IconButton";
15
+ import R from "@mui/material/Tooltip";
16
+ import j from "@mui/material/useMediaQuery";
17
+ import { k as E, l as Q } from "../ConnectDrawer-DaFRU5st.mjs";
18
18
  import { u as z } from "../useScreenSize-B6JyS_Lj.mjs";
19
- const E = _(() => {
20
- const e = k(), {
21
- appDataStore: { banner: c, loadBanner: i, user: d }
19
+ const P = _(() => {
20
+ const e = D(), {
21
+ appDataStore: { banner: o, loadBanner: i, user: d }
22
22
  } = A();
23
23
  return r.useEffect(() => {
24
24
  i().finally();
25
- }, [d]), c?.image_url ? /* @__PURE__ */ t(
26
- s,
25
+ }, [d]), o?.image_url ? /* @__PURE__ */ t(
26
+ l,
27
27
  {
28
28
  sx: {
29
29
  alignItems: "center",
@@ -33,7 +33,7 @@ const E = _(() => {
33
33
  children: /* @__PURE__ */ t(
34
34
  "a",
35
35
  {
36
- href: c?.redirect_url,
36
+ href: o?.redirect_url,
37
37
  rel: "noreferrer",
38
38
  style: {
39
39
  width: "100%"
@@ -43,7 +43,7 @@ const E = _(() => {
43
43
  "img",
44
44
  {
45
45
  alt: "",
46
- src: c.image_url,
46
+ src: o.image_url,
47
47
  style: {
48
48
  width: "100%",
49
49
  height: "auto",
@@ -55,25 +55,25 @@ const E = _(() => {
55
55
  )
56
56
  }
57
57
  ) : null;
58
- }), P = ({ handleConnectClick: e }) => {
59
- const { common: c } = v(), i = R("(max-width: 700px)");
60
- return /* @__PURE__ */ t(I, { my: 4, children: i ? /* @__PURE__ */ t(H, { id: "add-accounts", placement: "bottom", title: c.add_accounts, children: /* @__PURE__ */ t(
61
- $,
58
+ }), N = ({ handleConnectClick: e }) => {
59
+ const { common: o } = v(), i = j("(max-width: 700px)");
60
+ return /* @__PURE__ */ t(T, { my: 4, children: i ? /* @__PURE__ */ t(R, { id: "add-accounts", placement: "bottom", title: o.add_accounts, children: /* @__PURE__ */ t(
61
+ H,
62
62
  {
63
63
  "aria-controls": "add_accounts",
64
64
  "aria-describedby": "add-accounts",
65
65
  "aria-haspopup": !0,
66
- "aria-label": c.add_accounts,
66
+ "aria-label": o.add_accounts,
67
67
  color: "primary",
68
68
  onClick: e,
69
69
  children: /* @__PURE__ */ t(S, { name: "add", size: 24 })
70
70
  }
71
71
  ) }) : /* @__PURE__ */ t(
72
- T,
72
+ $,
73
73
  {
74
74
  "aria-controls": "add_accounts",
75
75
  "aria-haspopup": !0,
76
- "aria-label": c.add_accounts,
76
+ "aria-label": o.add_accounts,
77
77
  onClick: e,
78
78
  startIcon: /* @__PURE__ */ t(S, { name: "add", size: 24 }),
79
79
  sx: {
@@ -82,44 +82,44 @@ const E = _(() => {
82
82
  minWidth: "max-content"
83
83
  },
84
84
  variant: "text",
85
- children: c.add_accounts
85
+ children: o.add_accounts
86
86
  }
87
87
  ) });
88
- }, N = _(P), O = () => {
89
- const [e, c] = r.useState(!1), i = W("(max-width:320px)"), { visibleAccounts: d } = C(), { selectedAccountGuids: g, setSelectedAccountGuids: b } = M(), { common: o, connect: l } = v(), { config: m } = B(), { isMobile: x } = z(), n = {
88
+ }, O = _(N), U = () => {
89
+ const [e, o] = r.useState(!1), i = I("(max-width:320px)"), { visibleAccounts: d } = C(), { selectedAccountGuids: g, setSelectedAccountGuids: b } = M(), { common: n, connect: x } = v(), { config: a } = k(), { isMobile: w } = z(), y = {
90
90
  accountFilterOptionsCopy: {
91
- accountTypeAccounts: o.account_filter.account_type_accounts,
92
- cancelButton: o.cancel_button,
93
- filterButton: o.filter_button,
94
- filterButtonAria: o.account_filter.filter_button_generic_aria,
95
- selectAllAccounts: o.account_filter.select_all_accounts,
96
- toggleAccountTypeAccounts: o.account_filter.toggle_account_type_accounts,
97
- unselectAllAccounts: o.account_filter.unselect_all_accounts,
98
- zeroStateButton: o.account_filter.zero_state_button,
99
- zeroStateDescription: o.account_filter.zero_state_description,
100
- zeroStateTitle: o.account_filter.zero_state_title
91
+ accountTypeAccounts: n.account_filter.account_type_accounts,
92
+ cancelButton: n.cancel_button,
93
+ filterButton: n.filter_button,
94
+ filterButtonAria: n.account_filter.filter_button_generic_aria,
95
+ selectAllAccounts: n.account_filter.select_all_accounts,
96
+ toggleAccountTypeAccounts: n.account_filter.toggle_account_type_accounts,
97
+ unselectAllAccounts: n.account_filter.unselect_all_accounts,
98
+ zeroStateButton: n.account_filter.zero_state_button,
99
+ zeroStateDescription: n.account_filter.zero_state_description,
100
+ zeroStateTitle: n.account_filter.zero_state_title
101
101
  },
102
- title: o.filter_button
103
- }, w = () => {
102
+ title: n.filter_button
103
+ }, c = () => {
104
104
  const p = (/* @__PURE__ */ new Date()).getHours();
105
- return p > 1 && p < 12 ? o.good_morning : p >= 12 && p < 18 ? o.good_afternoon : o.good_evening;
105
+ return p > 1 && p < 12 ? n.good_morning : p >= 12 && p < 18 ? n.good_afternoon : n.good_evening;
106
106
  };
107
- return /* @__PURE__ */ a(r.Fragment, { children: [
108
- /* @__PURE__ */ t(D, { sx: { gap: 12, mb: x ? 24 : 0, p: 24 }, children: /* @__PURE__ */ a(s, { alignItems: "center", flexDirection: "row", justifyContent: "space-between", children: [
109
- /* @__PURE__ */ a(s, { children: [
110
- /* @__PURE__ */ t(G, { variant: i ? "H2" : "H1", children: w() }),
111
- /* @__PURE__ */ t(F, { color: "text.secondary", children: o.heres_your_spending_overview })
107
+ return /* @__PURE__ */ s(r.Fragment, { children: [
108
+ /* @__PURE__ */ t(G, { sx: { gap: 12, mb: w ? 24 : 0, p: 24 }, children: /* @__PURE__ */ s(l, { alignItems: "center", flexDirection: "row", justifyContent: "space-between", children: [
109
+ /* @__PURE__ */ s(l, { children: [
110
+ /* @__PURE__ */ t(F, { variant: i ? "H2" : "H1", children: c() }),
111
+ /* @__PURE__ */ t(W, { color: "text.secondary", children: n.heres_your_spending_overview })
112
112
  ] }),
113
- /* @__PURE__ */ a(s, { flexDirection: "row", children: [
114
- m.show_connections_widget_in_master && /* @__PURE__ */ t(N, { handleConnectClick: () => c(!0) }),
113
+ /* @__PURE__ */ s(l, { flexDirection: "row", children: [
114
+ a.show_connections_widget_in_master && /* @__PURE__ */ t(O, { handleConnectClick: () => o(!0) }),
115
115
  /* @__PURE__ */ t(
116
- j,
116
+ E,
117
117
  {
118
118
  accounts: d,
119
- copy: n,
120
- onConnectAccountClick: m.show_connections_widget_in_master ? () => c(!0) : void 0,
121
- onFilterClick: (y) => {
122
- b(y);
119
+ copy: y,
120
+ onConnectAccountClick: a.show_connections_widget_in_master ? () => o(!0) : void 0,
121
+ onFilterClick: (m) => {
122
+ b(m);
123
123
  },
124
124
  selectedAccountGuids: g,
125
125
  showAccountNumbers: !1,
@@ -134,48 +134,50 @@ const E = _(() => {
134
134
  e && /* @__PURE__ */ t(
135
135
  Q,
136
136
  {
137
- onClose: () => c(!1),
137
+ onClose: () => o(!1),
138
138
  showConnectWidget: e,
139
- title: l.mini_title
139
+ title: x.mini_title
140
140
  }
141
141
  )
142
142
  ] });
143
- }, U = _(O);
143
+ }, q = _(U);
144
144
  var f = /* @__PURE__ */ ((e) => (e[e.Main = 0] = "Main", e[e.RightSide = 1] = "RightSide", e[e.Disabled = 2] = "Disabled", e))(f || {});
145
- const q = ({ widgets: e, isLoading: c }) => {
146
- const { isDesktop: i, isMobile: d } = z(), { copyStore: g } = A(), { setSelectedAccounts: b } = M(), { visibleAccounts: o } = C();
145
+ const J = ({ widgets: e, isLoading: o }) => {
146
+ const { isDesktop: i, isMobile: d } = z(), { copyStore: g } = A(), { setSelectedAccounts: b } = M(), { visibleAccounts: n } = C(), { onLoad: x } = B();
147
147
  r.useEffect(() => {
148
- b(o);
148
+ b(n);
149
+ }, [n]), r.useEffect(() => {
150
+ o || x?.("Dashboard");
149
151
  }, [o]);
150
- const l = r.useMemo(
151
- () => e.filter((n) => n.location !== f.Disabled).sort((n, w) => n.index - w.index),
152
+ const a = r.useMemo(
153
+ () => e.filter((c) => c.location !== f.Disabled).sort((c, m) => c.index - m.index),
152
154
  [e]
153
- ), m = r.useMemo(
154
- () => l.filter((n) => n.location === f.Main),
155
- [l]
156
- ), x = r.useMemo(
157
- () => l.filter((n) => n.location === f.RightSide),
158
- [l]
155
+ ), w = r.useMemo(
156
+ () => a.filter((c) => c.location === f.Main),
157
+ [a]
158
+ ), y = r.useMemo(
159
+ () => a.filter((c) => c.location === f.RightSide),
160
+ [a]
159
161
  );
160
- return /* @__PURE__ */ a(h, { container: !0, spacing: d ? 0 : 24, sx: { overflow: "scroll" }, children: [
161
- /* @__PURE__ */ t(h, { xs: 12, children: g.isInitialized && /* @__PURE__ */ t(U, {}) }),
162
- /* @__PURE__ */ a(h, { lg: 8, xs: 12, children: [
163
- /* @__PURE__ */ t(E, {}),
164
- c && /* @__PURE__ */ a(s, { direction: "column", spacing: 24, children: [
162
+ return /* @__PURE__ */ s(h, { container: !0, spacing: d ? 0 : 24, sx: { overflow: "scroll" }, children: [
163
+ /* @__PURE__ */ t(h, { xs: 12, children: g.isInitialized && /* @__PURE__ */ t(q, {}) }),
164
+ /* @__PURE__ */ s(h, { lg: 8, xs: 12, children: [
165
+ /* @__PURE__ */ t(P, {}),
166
+ o && /* @__PURE__ */ s(l, { direction: "column", spacing: 24, children: [
165
167
  /* @__PURE__ */ t(u, { height: 100, variant: "rounded", width: "100%" }),
166
168
  /* @__PURE__ */ t(u, { height: 300, variant: "rounded", width: "100%" }),
167
169
  /* @__PURE__ */ t(u, { height: 300, variant: "rounded", width: "100%" })
168
170
  ] }),
169
- !c && /* @__PURE__ */ t(s, { direction: "column", spacing: 24, children: i ? m.map((n) => /* @__PURE__ */ t(r.Fragment, { children: n.component }, n.index)) : l.map((n) => /* @__PURE__ */ t(r.Fragment, { children: n.component }, n.index)) })
171
+ !o && /* @__PURE__ */ t(l, { direction: "column", spacing: 24, children: i ? w.map((c) => /* @__PURE__ */ t(r.Fragment, { children: c.component }, c.index)) : a.map((c) => /* @__PURE__ */ t(r.Fragment, { children: c.component }, c.index)) })
170
172
  ] }),
171
- i && /* @__PURE__ */ t(h, { lg: 4, children: c ? /* @__PURE__ */ a(s, { direction: "column", spacing: 24, children: [
173
+ i && /* @__PURE__ */ t(h, { lg: 4, children: o ? /* @__PURE__ */ s(l, { direction: "column", spacing: 24, children: [
172
174
  /* @__PURE__ */ t(u, { height: 200, variant: "rounded", width: "100%" }),
173
175
  /* @__PURE__ */ t(u, { height: 100, variant: "rounded", width: "100%" }),
174
176
  /* @__PURE__ */ t(u, { height: 300, variant: "rounded", width: "100%" })
175
- ] }) : /* @__PURE__ */ t(s, { direction: "column", spacing: 24, children: x.map((n) => /* @__PURE__ */ t(r.Fragment, { children: n.component }, n.index)) }) })
177
+ ] }) : /* @__PURE__ */ t(l, { direction: "column", spacing: 24, children: y.map((c) => /* @__PURE__ */ t(r.Fragment, { children: c.component }, c.index)) }) })
176
178
  ] });
177
- }, dt = _(q);
179
+ }, mt = _(J);
178
180
  export {
179
- dt as Dashboard,
181
+ mt as Dashboard,
180
182
  f as DashboardLocation
181
183
  };
@@ -8,30 +8,30 @@ import { intervalToDuration as Te, formatDuration as Ae } from "date-fns";
8
8
  import { addMonths as le } from "date-fns/addMonths";
9
9
  import { fromUnixTime as se } from "date-fns/fromUnixTime";
10
10
  import { getUnixTime as ce } from "date-fns/getUnixTime";
11
- import { D as B, M as Ee, I as Ie } from "../DebtsStore-D4grpB4m.mjs";
12
- import { a as Fr } from "../DebtsStore-D4grpB4m.mjs";
11
+ import { D as B, M as Ee, I as Ie } from "../DebtsStore-z3VARSO6.mjs";
12
+ import { a as Fr } from "../DebtsStore-z3VARSO6.mjs";
13
13
  import { f as M, a as Be } from "../NumberFormatting-Buh7u8Oi.mjs";
14
14
  import { f as K, D as U } from "../Dialog-CWW597AF.mjs";
15
- import { G as Me, x as q, u as C, l as V, g as k, d as Z, b as Pe } from "../hooks-CE2TKk4a.mjs";
15
+ import { G as Me, y as q, u as C, l as V, g as k, d as Z, b as Pe } from "../hooks-D6XlXHf4.mjs";
16
16
  import { u as Y } from "../useScreenSize-B6JyS_Lj.mjs";
17
17
  import { D as te } from "../Drawer-kEE73B87.mjs";
18
18
  import { b as A } from "../Localization-2MODESHW.mjs";
19
- import { A as ke, u as Ne } from "../AccountDetailsHeader-BZBsIKdF.mjs";
19
+ import { A as ke, u as Ne } from "../AccountDetailsHeader-vcy67tuH.mjs";
20
20
  import Fe from "@mui/material/Card";
21
21
  import Re from "@mui/material/CardContent";
22
22
  import Le from "@mui/material/CardHeader";
23
23
  import { LineChart as $e } from "@mui/x-charts";
24
24
  import re from "@mui/material/Box";
25
25
  import { useTheme as He } from "@mui/material/styles";
26
- import { A as T, W as Oe } from "../WidgetContainer-DtPnPQZY.mjs";
26
+ import { A as T, W as Oe } from "../WidgetContainer-C88Ecu2W.mjs";
27
27
  import de from "@mui/material/Tab";
28
28
  import We from "@mui/material/Tabs";
29
29
  import _e from "@mui/material/List";
30
30
  import j from "@mui/material/Divider";
31
- import { M as Ge, I as je, O as ze } from "../OriginalBalanceAction-BsxcvNEF.mjs";
31
+ import { M as Ge, I as je, O as ze } from "../OriginalBalanceAction-CAaVbVMO.mjs";
32
32
  import Xe from "@mui/material/TextField";
33
- import { L as J } from "../ListItemAction-DSrYDGAP.mjs";
34
- import { C as ae } from "../CurrencyInput-C4xNRL2W.mjs";
33
+ import { L as J } from "../ListItemAction-DHa3KJPs.mjs";
34
+ import { C as ae } from "../CurrencyInput-CsCy7uaS.mjs";
35
35
  import pe from "@mui/material/Alert";
36
36
  import me from "@mui/material/AlertTitle";
37
37
  import he from "@mui/material/Paper";
@@ -39,7 +39,7 @@ import { Error as Ve, CheckCircle as ye } from "@mxenabled/mx-icons";
39
39
  import { T as ue } from "../TabContentContainer-j01JYR_7.mjs";
40
40
  import { DataGridPro as Ye } from "@mui/x-data-grid-pro";
41
41
  import { H as z } from "../HeaderCell-DjuifqHJ.mjs";
42
- import { f as Ke } from "../ConnectDrawer-CPTXh70j.mjs";
42
+ import { f as Ke } from "../ConnectDrawer-DaFRU5st.mjs";
43
43
  import fe from "@mui/material/Button";
44
44
  import Ue from "@mui/material/IconButton";
45
45
  import qe from "@mui/material/ListItem";
@@ -1,7 +1,7 @@
1
1
  import { fromUnixTime as d } from "date-fns/fromUnixTime";
2
2
  import { c as u } from "./Category-CevNQ03n.mjs";
3
3
  import { f as p, D as m } from "./Dialog-CWW597AF.mjs";
4
- import { T as g } from "./User-DaJAQ09j.mjs";
4
+ import { T as g } from "./User-BQUxBeZV.mjs";
5
5
  function f(e) {
6
6
  return new Set(
7
7
  e.filter((n) => n.parent_guid !== void 0).map((n) => n.parent_guid)
@@ -17,20 +17,20 @@ import Ne from "@mui/material/ListItemText";
17
17
  import { b } from "../Localization-2MODESHW.mjs";
18
18
  import * as ce from "d3";
19
19
  import { observer as I } from "mobx-react-lite";
20
- import { u as S, b as z, w as $, o as Y, d as fe, i as ye, m as Ke } from "../hooks-CE2TKk4a.mjs";
20
+ import { u as S, b as z, x as $, p as Y, d as fe, i as ye, m as Ke } from "../hooks-D6XlXHf4.mjs";
21
21
  import { L as N } from "../Loader-DUaFpDGv.mjs";
22
22
  import { F as No, a as Ko } from "../FinstrongStore-F2c607dj.mjs";
23
23
  import q from "@mui/material/Button";
24
24
  import J from "@mui/material/Card";
25
- import { L as be } from "../LineChart-B35qvXik.mjs";
26
- import { l as xe } from "../ConnectDrawer-CPTXh70j.mjs";
25
+ import { L as be } from "../LineChart-D4GI7nVh.mjs";
26
+ import { l as xe } from "../ConnectDrawer-DaFRU5st.mjs";
27
27
  import Xe from "@mui/material/Accordion";
28
28
  import je from "@mui/material/AccordionDetails";
29
29
  import Ue from "@mui/material/AccordionSummary";
30
30
  import Ve from "@mui/material/CardHeader";
31
31
  import { u as Ye } from "../useDimensions-27p2evRx.mjs";
32
- import { C as qe } from "../ConnectionsDrawer-Dkb4vBmt.mjs";
33
- import { R as Je } from "../RecurringSettings-BVOt46uV.mjs";
32
+ import { C as qe } from "../ConnectionsDrawer-DHJ7qdWL.mjs";
33
+ import { R as Je } from "../RecurringSettings-C28GrQcP.mjs";
34
34
  import Qe from "@mui/material/TextField";
35
35
  import { u as Ce } from "../useScreenSize-B6JyS_Lj.mjs";
36
36
  import { a as Ze } from "../Dialog-CWW597AF.mjs";
@@ -48,7 +48,7 @@ import ct from "@mui/lab/TimelineConnector";
48
48
  import lt from "@mui/lab/TimelineContent";
49
49
  import dt from "@mui/lab/TimelineDot";
50
50
  import pt from "@mui/lab/TimelineSeparator";
51
- import { W as mt } from "../WidgetContainer-DtPnPQZY.mjs";
51
+ import { W as mt } from "../WidgetContainer-C88Ecu2W.mjs";
52
52
  var A = /* @__PURE__ */ ((n) => (n.Connections = "connections", n.CreditScore = "credit_score", n.DateOfBirth = "date_of_birth", n.MonthlyIncome = "monthly_income", n))(A || {});
53
53
  const ut = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ e(
54
54
  Be,
@@ -1,5 +1,5 @@
1
- import { g as ue, T as d, G as me, a as We, M as J, C as ye, b as Pe } from "../GoalStore-B5MZzPLZ.mjs";
2
- import { c as Yn, d as Zn } from "../GoalStore-B5MZzPLZ.mjs";
1
+ import { g as ue, T as d, G as me, a as We, M as J, C as ye, b as Pe } from "../GoalStore-TD0BfzWX.mjs";
2
+ import { c as Yn, d as Zn } from "../GoalStore-TD0BfzWX.mjs";
3
3
  import { jsxs as r, jsx as e, Fragment as U } from "react/jsx-runtime";
4
4
  import y from "react";
5
5
  import { observer as D } from "mobx-react-lite";
@@ -17,14 +17,14 @@ import ge from "@mui/material/Unstable_Grid2";
17
17
  import oe from "@mui/material/Avatar";
18
18
  import $e from "@mui/material/CardHeader";
19
19
  import { Payments as Se, NoteStack as Re, Person as Ee, ChevronRight as M, DragHandle as Xe, CheckCircle as Ue, Icon as be, ExpandLess as Ye, ExpandMore as Ze, AddBox as xe, Trophy as qe } from "@mxenabled/mx-icons";
20
- import { u as C, l as I, a as ve, d as V, o as Ie, g as Ge, b as Ne } from "../hooks-CE2TKk4a.mjs";
20
+ import { u as C, l as I, a as ve, d as V, p as Ie, g as Ge, b as Ne } from "../hooks-D6XlXHf4.mjs";
21
21
  import { u as he } from "../useScreenSize-B6JyS_Lj.mjs";
22
22
  import { f as x } from "../NumberFormatting-Buh7u8Oi.mjs";
23
23
  import { S as Je } from "../StatusBar-BK_uYHAB.mjs";
24
24
  import E from "@mui/material/Divider";
25
25
  import L from "@mui/material/List";
26
- import { L as ee } from "../ListItemAction-DSrYDGAP.mjs";
27
- import { C as ke } from "../CurrencyInput-C4xNRL2W.mjs";
26
+ import { L as ee } from "../ListItemAction-DHa3KJPs.mjs";
27
+ import { C as ke } from "../CurrencyInput-CsCy7uaS.mjs";
28
28
  import { fromUnixTime as Q } from "date-fns/fromUnixTime";
29
29
  import N from "@mui/material/ListItem";
30
30
  import k from "@mui/material/ListItemButton";
@@ -34,28 +34,28 @@ import { D as j } from "../Drawer-kEE73B87.mjs";
34
34
  import { b as B } from "../Localization-2MODESHW.mjs";
35
35
  import { f as ae, D as re, a as et } from "../Dialog-CWW597AF.mjs";
36
36
  import P from "@mui/material/ListItemAvatar";
37
- import { g as we, A as fe } from "../ConnectDrawer-CPTXh70j.mjs";
37
+ import { g as we, A as fe } from "../ConnectDrawer-DaFRU5st.mjs";
38
38
  import tt from "@mui/material/Collapse";
39
39
  import nt from "@mui/material/ListItemIcon";
40
40
  import ot from "@mui/material/Checkbox";
41
- import { u as at, A as rt } from "../AccountDetailsHeader-BZBsIKdF.mjs";
42
- import { A as it } from "../AccountDetailsContent-CuZSSAEc.mjs";
43
- import { u as st } from "../useAccountDisplayName-BXGkZN5B.mjs";
41
+ import { u as at, A as rt } from "../AccountDetailsHeader-vcy67tuH.mjs";
42
+ import { A as it } from "../AccountDetailsContent-DfzPOeMI.mjs";
43
+ import { u as st } from "../useAccountDisplayName-BcRqfar8.mjs";
44
44
  import De from "@mui/material/TextField";
45
- import { M as lt, I as ct, O as dt } from "../OriginalBalanceAction-BsxcvNEF.mjs";
45
+ import { M as lt, I as ct, O as dt } from "../OriginalBalanceAction-CAaVbVMO.mjs";
46
46
  import { getUnixTime as mt } from "date-fns/getUnixTime";
47
47
  import { isValid as ut } from "date-fns/isValid";
48
48
  import { AdapterDateFns as _t } from "@mui/x-date-pickers/AdapterDateFnsV3";
49
49
  import { DatePicker as pt } from "@mui/x-date-pickers";
50
50
  import { LocalizationProvider as ht } from "@mui/x-date-pickers/LocalizationProvider";
51
- import { A as Y, W as gt } from "../WidgetContainer-DtPnPQZY.mjs";
51
+ import { A as Y, W as gt } from "../WidgetContainer-C88Ecu2W.mjs";
52
52
  import { L as Ke } from "../Loader-DUaFpDGv.mjs";
53
53
  import { E as bt } from "../EmptyState-DA_lfRBv.mjs";
54
54
  import ft from "@mui/material/Stack/Stack";
55
55
  import yt from "@mui/material/Box";
56
56
  import At from "@mui/material/styles/useTheme";
57
57
  import { S as Tt } from "../SingleSegmentDonut-BgbLgwHi.mjs";
58
- import { M as Ct } from "../MicroWidgetContainer-C4QQHfD7.mjs";
58
+ import { M as Ct } from "../MicroWidgetContainer-DpeqN9n3.mjs";
59
59
  function ce({ title: t, subtitle: n }) {
60
60
  return /* @__PURE__ */ r(f, { children: [
61
61
  /* @__PURE__ */ e(A, { bold: !0, variant: "Body", children: t }),
@@ -1,9 +1,9 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { observer as m } from "mobx-react-lite";
3
- import { H as s } from "../Help-CzBAsKA2.mjs";
4
- import { b as p } from "../hooks-CE2TKk4a.mjs";
3
+ import { H as s } from "../Help-B6dIcujh.mjs";
4
+ import { b as p } from "../hooks-D6XlXHf4.mjs";
5
5
  import { L as a } from "../Loader-DUaFpDGv.mjs";
6
- import { W as n } from "../WidgetContainer-DtPnPQZY.mjs";
6
+ import { W as n } from "../WidgetContainer-C88Ecu2W.mjs";
7
7
  const x = m(({ onBackClick: o, sx: i }) => {
8
8
  const { isCopyLoaded: e, isInitialized: t } = p();
9
9
  return !e || !t ? /* @__PURE__ */ r(a, {}) : /* @__PURE__ */ r(n, { onBackClick: o, sx: { p: 16 }, children: /* @__PURE__ */ r(s, { sx: i }) });
@@ -0,0 +1,77 @@
1
+ import r from "react";
2
+ import { jsx as n } from "react/jsx-runtime";
3
+ const a = r.createContext(null), C = ({
4
+ children: t,
5
+ globalStore: e,
6
+ onError: s,
7
+ onEvent: l,
8
+ onLoad: u,
9
+ onPageView: c
10
+ }) => /* @__PURE__ */ n(
11
+ a.Provider,
12
+ {
13
+ value: {
14
+ globalStore: e,
15
+ onError: s,
16
+ onEvent: l,
17
+ onLoad: u,
18
+ onPageView: c,
19
+ children: t
20
+ },
21
+ children: t
22
+ }
23
+ ), S = r.createContext(null), d = ({ children: t, availableHeight: e, availableWidth: s }) => /* @__PURE__ */ n(
24
+ S.Provider,
25
+ {
26
+ value: {
27
+ availableHeight: e,
28
+ availableWidth: s,
29
+ children: t
30
+ },
31
+ children: t
32
+ }
33
+ ), o = (t = "useGlobalStore") => {
34
+ const e = r.useContext(a);
35
+ if (!e)
36
+ throw new Error(`${t}() must be used within the GlobalDataContext`);
37
+ return e;
38
+ }, p = () => o("useAccountStore").globalStore.accountStore, h = () => o("useAppConfig").globalStore.appDataStore.appConfig, x = () => o("useAnalyticsStore").globalStore.analyticsStore, f = () => o("useBudgetsStore").globalStore.budgetsStore, w = () => o("useCashflowStore").globalStore.cashflowStore, G = () => o("useCategoryStore").globalStore.categoryStore, v = () => o("useConnectStore").globalStore.connectStore, y = () => o("useDebtsStore").globalStore.debtsStore, W = () => o("useFinstrongStore").globalStore.finstrongStore, m = () => o("useGlobalStore").globalStore, D = () => o("useGlobalUiStore").globalStore.globalUiStore, E = () => o("globalCopyStore").globalStore.copyStore.copy, P = () => o("useGoalStore").globalStore.goalStore, A = () => o("useHelpStore").globalStore.helpStore, T = () => o("useHoldingStore").globalStore.holdingStore, U = () => o("useMerchantStore").globalStore.merchantStore, H = () => o("useNetWorthStore").globalStore.netWorthStore, N = () => o("useNotificationStore").globalStore.notificationStore, B = () => o("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, L = () => o("useSettingsStore").globalStore.settingsStore, R = () => o("useTransactionStore").globalStore.transactionStore, V = () => o("useTrendsStore").globalStore.trendsStore, j = () => o("useUserStore").globalStore.userStore, F = () => ({ onError: o().onError }), M = () => ({ onEvent: o().onEvent }), $ = () => ({ onLoad: o().onLoad }), k = () => ({ onPageView: o().onPageView }), i = (t = "useWidgetContainerContext") => {
39
+ const e = r.useContext(S);
40
+ if (!e)
41
+ throw new Error(`${t}() must be used within the WidgetContainerContext`);
42
+ return e;
43
+ }, q = () => i();
44
+ export {
45
+ A,
46
+ k as B,
47
+ C,
48
+ S as D,
49
+ a as G,
50
+ d as W,
51
+ h as a,
52
+ D as b,
53
+ U as c,
54
+ p as d,
55
+ v as e,
56
+ m as f,
57
+ M as g,
58
+ R as h,
59
+ f as i,
60
+ B as j,
61
+ x as k,
62
+ P as l,
63
+ G as m,
64
+ $ as n,
65
+ N as o,
66
+ j as p,
67
+ q,
68
+ H as r,
69
+ L as s,
70
+ T as t,
71
+ E as u,
72
+ w as v,
73
+ V as w,
74
+ W as x,
75
+ y,
76
+ F as z
77
+ };
@@ -4,7 +4,7 @@ import { observer as P } from "mobx-react-lite";
4
4
  import _ from "@mui/material/Stack";
5
5
  import Ee from "@mui/material/Tab";
6
6
  import Ge from "@mui/material/Tabs";
7
- import { C as ge } from "../ConnectionsDrawer-Dkb4vBmt.mjs";
7
+ import { C as ge } from "../ConnectionsDrawer-DHJ7qdWL.mjs";
8
8
  import pe from "@mui/material/useMediaQuery";
9
9
  import Me from "@mui/material/Box";
10
10
  import Ne from "@mui/material/Collapse";
@@ -16,8 +16,8 @@ import xe from "@mui/material/ToggleButton";
16
16
  import ye from "@mui/material/ToggleButtonGroup";
17
17
  import { Text as r, H1 as fe, P as ve, InstitutionLogo as ne } from "@mxenabled/mxui";
18
18
  import Ue from "@mui/material/Button";
19
- import { u as E, g as be, s as H, b as Q, d as se } from "../hooks-CE2TKk4a.mjs";
20
- import { A as z, W as je } from "../WidgetContainer-DtPnPQZY.mjs";
19
+ import { u as E, g as be, t as H, b as Q, d as se } from "../hooks-D6XlXHf4.mjs";
20
+ import { A as z, W as je } from "../WidgetContainer-C88Ecu2W.mjs";
21
21
  import { a as ze, f as oe } from "../NumberFormatting-Buh7u8Oi.mjs";
22
22
  import { u as U } from "../useScreenSize-B6JyS_Lj.mjs";
23
23
  import le from "@mui/material/styles/useTheme";
@@ -12,7 +12,7 @@ import k from "@mui/material/ListItemText";
12
12
  import A from "@mui/material/Paper";
13
13
  import d from "@mui/material/Stack";
14
14
  import { MerchantLogo as V, Text as R } from "@mxenabled/mxui";
15
- import { c as v, u as w, b as C } from "../hooks-CE2TKk4a.mjs";
15
+ import { c as v, u as w, b as C } from "../hooks-D6XlXHf4.mjs";
16
16
  import { L as p } from "../Loader-DUaFpDGv.mjs";
17
17
  import { S as N } from "../SearchBox-B2_zLv8-.mjs";
18
18
  import { M as ne } from "../MerchantStore-DrFvsUyy.mjs";
@@ -3,9 +3,9 @@ import { fromUnixTime as Se } from "date-fns/fromUnixTime";
3
3
  import { observer as w } from "mobx-react-lite";
4
4
  import { useTheme as z } from "@mui/material/styles";
5
5
  import { u as Z } from "../useScreenSize-B6JyS_Lj.mjs";
6
- import { p as _e, u as T, d as J, g as Q, b as P, q as ee } from "../hooks-CE2TKk4a.mjs";
6
+ import { q as _e, u as T, d as J, g as Q, b as P, r as ee } from "../hooks-D6XlXHf4.mjs";
7
7
  import { f as we, D as be } from "../Dialog-CWW597AF.mjs";
8
- import { L as We } from "../LineChart-B35qvXik.mjs";
8
+ import { L as We } from "../LineChart-D4GI7nVh.mjs";
9
9
  import W from "@mui/material/Divider";
10
10
  import B from "@mui/material/List";
11
11
  import E from "@mui/material/ListSubheader";
@@ -19,15 +19,15 @@ import { i as ne } from "../DateUtil-BcuH7ErC.mjs";
19
19
  import { C as y } from "../CurrencyText-kyC1aseI.mjs";
20
20
  import { Button as Te, Stack as Le } from "@mui/material";
21
21
  import { format as Ne, fromUnixTime as De, differenceInMonths as Ee } from "date-fns";
22
- import { g as K } from "../NetWorthStore-Do1Gk8Te.mjs";
23
- import { N as Ot } from "../NetWorthStore-Do1Gk8Te.mjs";
22
+ import { g as K } from "../NetWorthStore-B_1oulrt.mjs";
23
+ import { N as Ot } from "../NetWorthStore-B_1oulrt.mjs";
24
24
  import { Icon as oe } from "@mxenabled/mx-icons";
25
25
  import { f as U } from "../NumberFormatting-Buh7u8Oi.mjs";
26
- import { A as b, W as ke } from "../WidgetContainer-DtPnPQZY.mjs";
26
+ import { A as b, W as ke } from "../WidgetContainer-C88Ecu2W.mjs";
27
27
  import { L as O } from "../Loader-DUaFpDGv.mjs";
28
- import { M as Ae } from "../MicroWidgetContainer-C4QQHfD7.mjs";
28
+ import { M as Ae } from "../MicroWidgetContainer-DpeqN9n3.mjs";
29
29
  import re from "@mui/material/Box";
30
- import { C as Me } from "../ConnectionsDrawer-Dkb4vBmt.mjs";
30
+ import { C as Me } from "../ConnectionsDrawer-DHJ7qdWL.mjs";
31
31
  import He from "@mui/material/Collapse";
32
32
  import V from "@mui/material/ListItemIcon";
33
33
  import ie from "@mui/material/styles/useTheme";
@@ -11,13 +11,13 @@ import B from "@mui/material/List";
11
11
  import { Text as m, InstitutionLogo as T, CategoryIcon as R } from "@mxenabled/mxui";
12
12
  import { h as I } from "../DateUtil-BcuH7ErC.mjs";
13
13
  import { useTheme as O, Card as G } from "@mui/material";
14
- import { d as E, i as j, u as g, n as N, b as S, a as z } from "../hooks-CE2TKk4a.mjs";
14
+ import { d as E, i as j, u as g, o as N, b as S, a as z } from "../hooks-D6XlXHf4.mjs";
15
15
  import { Icon as U, Settings as F } from "@mxenabled/mx-icons";
16
16
  import P from "@mui/material/Button";
17
17
  import W from "@mui/material/Stack";
18
18
  import { L as w } from "../Loader-DUaFpDGv.mjs";
19
19
  import $ from "@mui/material/IconButton";
20
- import { N as H } from "../NotificationSettings-BuShgjn6.mjs";
20
+ import { N as H } from "../NotificationSettings-BRm_EJZV.mjs";
21
21
  import { D as C } from "../Drawer-kEE73B87.mjs";
22
22
  const yt = (e) => {
23
23
  switch (e) {