@mx-cartographer/experiences 9.1.3 → 9.1.4-alpha.al0

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 (128) hide show
  1. package/CHANGELOG.md +0 -6
  2. package/dist/{AccountDetailsDrawer-Cq4kiiKD.mjs → AccountDetailsDrawer-Dae8eUXt.mjs} +10 -10
  3. package/dist/{AccountDetailsDrawer-Cq4kiiKD.mjs.map → AccountDetailsDrawer-Dae8eUXt.mjs.map} +1 -1
  4. package/dist/{AccountDetailsHeader-BliEZhz7.mjs → AccountDetailsHeader-D_UjMD99.mjs} +4 -4
  5. package/dist/{AccountDetailsHeader-BliEZhz7.mjs.map → AccountDetailsHeader-D_UjMD99.mjs.map} +1 -1
  6. package/dist/{Analytics-CkYXKvco.mjs → Analytics-BJDUP2qI.mjs} +2 -2
  7. package/dist/{Analytics-CkYXKvco.mjs.map → Analytics-BJDUP2qI.mjs.map} +1 -1
  8. package/dist/{CategorySelectorDrawer-NJsFsKP1.mjs → CategorySelectorDrawer-k8AZYC8I.mjs} +2 -2
  9. package/dist/{CategorySelectorDrawer-NJsFsKP1.mjs.map → CategorySelectorDrawer-k8AZYC8I.mjs.map} +1 -1
  10. package/dist/{Connect-BH0Pt6zc.mjs → Connect-tID_S_5e.mjs} +2 -2
  11. package/dist/{Connect-BH0Pt6zc.mjs.map → Connect-tID_S_5e.mjs.map} +1 -1
  12. package/dist/{ConnectCard-D7uxoH5Y.mjs → ConnectCard-DcM6tUOX.mjs} +2 -2
  13. package/dist/{ConnectCard-D7uxoH5Y.mjs.map → ConnectCard-DcM6tUOX.mjs.map} +1 -1
  14. package/dist/{ConnectDrawer-CW4LA3H3.mjs → ConnectDrawer-BQy4YYuc.mjs} +3 -3
  15. package/dist/{ConnectDrawer-CW4LA3H3.mjs.map → ConnectDrawer-BQy4YYuc.mjs.map} +1 -1
  16. package/dist/{ConnectionsDrawer-CZU9ku-k.mjs → ConnectionsDrawer-C73ASLMj.mjs} +3 -3
  17. package/dist/{ConnectionsDrawer-CZU9ku-k.mjs.map → ConnectionsDrawer-C73ASLMj.mjs.map} +1 -1
  18. package/dist/{CurrencyInput-DaGEQaLW.mjs → CurrencyInput-CABYmqBh.mjs} +2 -2
  19. package/dist/{CurrencyInput-DaGEQaLW.mjs.map → CurrencyInput-CABYmqBh.mjs.map} +1 -1
  20. package/dist/{EmbeddedCard-DCOQnTz-.mjs → EmbeddedCard-BwfkCsUN.mjs} +3 -3
  21. package/dist/{EmbeddedCard-DCOQnTz-.mjs.map → EmbeddedCard-BwfkCsUN.mjs.map} +1 -1
  22. package/dist/{Error-Dtw6yxkf.mjs → Error-BFJ3BnfS.mjs} +2 -2
  23. package/dist/{Error-Dtw6yxkf.mjs.map → Error-BFJ3BnfS.mjs.map} +1 -1
  24. package/dist/ErrorBoundary-C7BlHx04.mjs +27 -0
  25. package/dist/ErrorBoundary-C7BlHx04.mjs.map +1 -0
  26. package/dist/{ExportCsvAction-C-IisDcv.mjs → ExportCsvAction-B1257a3M.mjs} +3 -3
  27. package/dist/{ExportCsvAction-C-IisDcv.mjs.map → ExportCsvAction-B1257a3M.mjs.map} +1 -1
  28. package/dist/{GlobalAccountFilter-BhzR5Vb1.mjs → GlobalAccountFilter-DEEc3Bc5.mjs} +2 -2
  29. package/dist/{GlobalAccountFilter-BhzR5Vb1.mjs.map → GlobalAccountFilter-DEEc3Bc5.mjs.map} +1 -1
  30. package/dist/GlobalCopyApi-Tz10hezK.mjs +130 -0
  31. package/dist/GlobalCopyApi-Tz10hezK.mjs.map +1 -0
  32. package/dist/{Help-zVZdcmlk.mjs → Help-BAj_yo3q.mjs} +145 -145
  33. package/dist/Help-BAj_yo3q.mjs.map +1 -0
  34. package/dist/{LineChart-CUfiH86G.mjs → LineChart-BxEIZHht.mjs} +2 -2
  35. package/dist/{LineChart-CUfiH86G.mjs.map → LineChart-BxEIZHht.mjs.map} +1 -1
  36. package/dist/{ListItemAction-BqUCLj_w.mjs → ListItemAction-GDU5z4BN.mjs} +2 -2
  37. package/dist/{ListItemAction-BqUCLj_w.mjs.map → ListItemAction-GDU5z4BN.mjs.map} +1 -1
  38. package/dist/{ListItemWrapper-DRse79Iu.mjs → ListItemWrapper-D6b-6m4t.mjs} +2 -2
  39. package/dist/{ListItemWrapper-DRse79Iu.mjs.map → ListItemWrapper-D6b-6m4t.mjs.map} +1 -1
  40. package/dist/{ManageIncome-B_8i71mE.mjs → ManageIncome-BJWVPAly.mjs} +32 -32
  41. package/dist/{ManageIncome-B_8i71mE.mjs.map → ManageIncome-BJWVPAly.mjs.map} +1 -1
  42. package/dist/{MicroWidgetContainer-B2NnKBgW.mjs → MicroWidgetContainer-IUZQlml1.mjs} +2 -2
  43. package/dist/{MicroWidgetContainer-B2NnKBgW.mjs.map → MicroWidgetContainer-IUZQlml1.mjs.map} +1 -1
  44. package/dist/{MiniWidgetContainer-Bmv_WeUd.mjs → MiniWidgetContainer-CIswJui8.mjs} +2 -2
  45. package/dist/{MiniWidgetContainer-Bmv_WeUd.mjs.map → MiniWidgetContainer-CIswJui8.mjs.map} +1 -1
  46. package/dist/{NotificationSettings-CW7okUrk.mjs → NotificationSettings-DltXMrnb.mjs} +33 -33
  47. package/dist/{NotificationSettings-CW7okUrk.mjs.map → NotificationSettings-DltXMrnb.mjs.map} +1 -1
  48. package/dist/{OriginalBalanceAction-YrvxBYAl.mjs → OriginalBalanceAction-KuJSsZCA.mjs} +4 -4
  49. package/dist/{OriginalBalanceAction-YrvxBYAl.mjs.map → OriginalBalanceAction-KuJSsZCA.mjs.map} +1 -1
  50. package/dist/{RecurringSettings-hs0YUp83.mjs → RecurringSettings-D2Aaqz7d.mjs} +3 -3
  51. package/dist/{RecurringSettings-hs0YUp83.mjs.map → RecurringSettings-D2Aaqz7d.mjs.map} +1 -1
  52. package/dist/{SpendingLegend-CxvNOg3c.mjs → SpendingLegend-C_dMdqbe.mjs} +2 -2
  53. package/dist/{SpendingLegend-CxvNOg3c.mjs.map → SpendingLegend-C_dMdqbe.mjs.map} +1 -1
  54. package/dist/{TransactionDetails-DT-MQqOB.mjs → TransactionDetails-CDZNsKv7.mjs} +5 -5
  55. package/dist/{TransactionDetails-DT-MQqOB.mjs.map → TransactionDetails-CDZNsKv7.mjs.map} +1 -1
  56. package/dist/{UserStore-E5WvBXaY.mjs → UserStore-DzGgxsKk.mjs} +302 -317
  57. package/dist/UserStore-DzGgxsKk.mjs.map +1 -0
  58. package/dist/{ViewMoreMicroCard-fnwE0hqd.mjs → ViewMoreMicroCard-DXaJ-56q.mjs} +4 -4
  59. package/dist/{ViewMoreMicroCard-fnwE0hqd.mjs.map → ViewMoreMicroCard-DXaJ-56q.mjs.map} +1 -1
  60. package/dist/{WidgetContainer-CjdCY4sj.mjs → WidgetContainer-5O6N88mr.mjs} +3 -3
  61. package/dist/{WidgetContainer-CjdCY4sj.mjs.map → WidgetContainer-5O6N88mr.mjs.map} +1 -1
  62. package/dist/accounts/index.es.js +11 -11
  63. package/dist/analytics/index.es.js +2 -2
  64. package/dist/budgets/index.es.js +10 -10
  65. package/dist/cashflow/index.es.js +70 -70
  66. package/dist/categories/index.es.js +1 -1
  67. package/dist/common/components/ErrorBoundary.d.ts +2 -0
  68. package/dist/common/context/GlobalDataProvider.d.ts +2 -1
  69. package/dist/common/context/hooks.d.ts +3 -0
  70. package/dist/common/context/index.d.ts +1 -1
  71. package/dist/common/index.es.js +66 -65
  72. package/dist/core/api/AccountApi.d.ts +2 -2
  73. package/dist/core/api/AnalyticsApi.d.ts +2 -2
  74. package/dist/core/api/AppDataApi.d.ts +2 -2
  75. package/dist/core/api/BeatApi.d.ts +2 -2
  76. package/dist/core/api/BudgetsApi.d.ts +2 -2
  77. package/dist/core/api/CategoryApi.d.ts +2 -2
  78. package/dist/core/api/FinstrongApi.d.ts +2 -2
  79. package/dist/core/api/GlobalCopyApi.d.ts +2 -2
  80. package/dist/core/api/GoalApi.d.ts +2 -2
  81. package/dist/core/api/HelpApi.d.ts +2 -2
  82. package/dist/core/api/HoldingApi.d.ts +2 -2
  83. package/dist/core/api/MerchantApi.d.ts +2 -2
  84. package/dist/core/api/NotificationApi.d.ts +2 -2
  85. package/dist/core/api/RepeatingTransactionsApi.d.ts +2 -2
  86. package/dist/core/api/ScheduledPaymentsApi.d.ts +2 -2
  87. package/dist/core/api/SettingsApi.d.ts +2 -2
  88. package/dist/core/api/TransactionApi.d.ts +2 -2
  89. package/dist/core/api/UserApi.d.ts +2 -2
  90. package/dist/core/index.es.js +95 -95
  91. package/dist/core/index.es.js.map +1 -1
  92. package/dist/core/stores/GlobalStore.d.ts +4 -2
  93. package/dist/core/types/Handlers.d.ts +1 -0
  94. package/dist/core/types/index.d.ts +1 -1
  95. package/dist/core/utils/Fetch.d.ts +3 -2
  96. package/dist/dashboard/index.es.js +4 -4
  97. package/dist/debts/index.es.js +8 -8
  98. package/dist/finstrong/index.es.js +12 -12
  99. package/dist/goals/index.es.js +9 -9
  100. package/dist/help/index.es.js +4 -4
  101. package/dist/hooks-DWOrMnfZ.mjs +83 -0
  102. package/dist/hooks-DWOrMnfZ.mjs.map +1 -0
  103. package/dist/insights/index.es.js +4 -4
  104. package/dist/investments/index.es.js +4 -4
  105. package/dist/merchants/index.es.js +1 -1
  106. package/dist/microinsights/index.es.js +1 -1
  107. package/dist/networth/index.es.js +6 -6
  108. package/dist/notifications/index.es.js +8 -8
  109. package/dist/recurringtransactions/index.es.js +38 -38
  110. package/dist/settings/index.es.js +27 -27
  111. package/dist/spending/index.es.js +7 -7
  112. package/dist/transactions/index.es.js +11 -11
  113. package/dist/trends/index.es.js +12 -12
  114. package/dist/{useAccountDisplayName-BsiXA0qf.mjs → useAccountDisplayName-DHXXCFYZ.mjs} +2 -2
  115. package/dist/{useAccountDisplayName-BsiXA0qf.mjs.map → useAccountDisplayName-DHXXCFYZ.mjs.map} +1 -1
  116. package/dist/{useInsightsEnabled-D5Sdm0TJ.mjs → useInsightsEnabled-B_UpjpE6.mjs} +2 -2
  117. package/dist/{useInsightsEnabled-D5Sdm0TJ.mjs.map → useInsightsEnabled-B_UpjpE6.mjs.map} +1 -1
  118. package/dist/{useWidgetLoadTimer-B0tB-yzL.mjs → useWidgetLoadTimer-C0Mr0eRf.mjs} +2 -2
  119. package/dist/{useWidgetLoadTimer-B0tB-yzL.mjs.map → useWidgetLoadTimer-C0Mr0eRf.mjs.map} +1 -1
  120. package/package.json +1 -1
  121. package/dist/ErrorBoundary-CsdOcnJ9.mjs +0 -24
  122. package/dist/ErrorBoundary-CsdOcnJ9.mjs.map +0 -1
  123. package/dist/GlobalCopyApi-wcnDUzMV.mjs +0 -129
  124. package/dist/GlobalCopyApi-wcnDUzMV.mjs.map +0 -1
  125. package/dist/Help-zVZdcmlk.mjs.map +0 -1
  126. package/dist/UserStore-E5WvBXaY.mjs.map +0 -1
  127. package/dist/hooks-97sNJ_lf.mjs +0 -78
  128. package/dist/hooks-97sNJ_lf.mjs.map +0 -1
@@ -4,27 +4,27 @@ import { observer as T } from "mobx-react-lite";
4
4
  import D from "@mui/material/Box";
5
5
  import I from "@mui/material/Divider";
6
6
  import c from "@mui/material/Stack";
7
- import { useTheme as oe, alpha as Ye, keyframes as qe } from "@mui/material/styles";
7
+ import { useTheme as oe, alpha as qe, keyframes as Ye } from "@mui/material/styles";
8
8
  import { Text as m, P as E, Icon as H, InstitutionLogo as ye, H2 as le, H3 as Ke } from "@mxenabled/mxui";
9
9
  import { b as G } from "../Localization-DnoVyBNK.mjs";
10
- import { G as Ve, p as de, u as R, D as ie, a as j, h as Q, i as me, f as Le, c as Xe, g as ke, C as Je } from "../hooks-97sNJ_lf.mjs";
10
+ import { G as Ve, q as de, u as R, E as ie, a as j, h as Q, i as me, f as Le, c as Xe, g as ke, D as Je } from "../hooks-DWOrMnfZ.mjs";
11
11
  import { C as A } from "../CurrencyText-CCbE6MmF.mjs";
12
- import { u as pe } from "../useScreenSize-mWpmnh5w.mjs";
12
+ import { u as ue } from "../useScreenSize-mWpmnh5w.mjs";
13
13
  import { L as V } from "../Loader-CxeBwuPG.mjs";
14
- import { I as ue } from "../InformationTooltip-4su8bn1e.mjs";
15
- import { u as Ne } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
16
- import { M as Qe } from "../MiniWidgetContainer-Bmv_WeUd.mjs";
14
+ import { I as pe } from "../InformationTooltip-4su8bn1e.mjs";
15
+ import { u as Ne } from "../useWidgetLoadTimer-C0Mr0eRf.mjs";
16
+ import { M as Qe } from "../MiniWidgetContainer-CIswJui8.mjs";
17
17
  import { E as Ze } from "../EmptyState-CJUDc3kD.mjs";
18
- import { R as et } from "../RecurringSettings-hs0YUp83.mjs";
18
+ import { R as et } from "../RecurringSettings-D2Aaqz7d.mjs";
19
19
  import tt from "@mui/material/Tabs";
20
20
  import _e from "@mui/material/Tab";
21
21
  import { getUnixTime as ce } from "date-fns/getUnixTime";
22
22
  import K from "@mui/material/List";
23
23
  import X from "@mui/material/ListItem";
24
- import { A as nt } from "../AccountDetailsDrawer-Cq4kiiKD.mjs";
24
+ import { A as nt } from "../AccountDetailsDrawer-Dae8eUXt.mjs";
25
25
  import { f as $, D as P } from "../DateFormats-HudZ3Bjs.mjs";
26
26
  import ot from "@mui/material/ListSubheader";
27
- import { f as q } from "../NumberFormatting--XMeeBfr.mjs";
27
+ import { f as Y } from "../NumberFormatting--XMeeBfr.mjs";
28
28
  import { isAfter as Oe } from "date-fns/isAfter";
29
29
  import { isBefore as Ge } from "date-fns/isBefore";
30
30
  import { isToday as Fe } from "date-fns/isToday";
@@ -32,18 +32,18 @@ import { g as He } from "../AccountUtils-Cbh8r9cP.mjs";
32
32
  import { DataGridPro as it } from "@mui/x-data-grid-pro";
33
33
  import { T as Ce } from "../TabContentContainer-B0eYJP5p.mjs";
34
34
  import F from "@mui/material/Button";
35
- import { M as at, S as rt, i as ct, b as we, c as st } from "../ManageIncome-B_8i71mE.mjs";
35
+ import { M as at, S as rt, i as ct, b as we, c as st } from "../ManageIncome-BJWVPAly.mjs";
36
36
  import { D as We } from "../Drawer-DsnW2o0v.mjs";
37
37
  import { subDays as Me } from "date-fns/subDays";
38
38
  import { startOfToday as se } from "date-fns/startOfToday";
39
39
  import { endOfToday as lt } from "date-fns/endOfToday";
40
- import { W as dt } from "../WidgetContainer-CjdCY4sj.mjs";
41
- import { c as Y } from "../Account-DR7Plrqy.mjs";
40
+ import { W as dt } from "../WidgetContainer-5O6N88mr.mjs";
41
+ import { c as q } from "../Account-DR7Plrqy.mjs";
42
42
  import { A as Se } from "../Analytics-D-jdcL72.mjs";
43
43
  import { formatISO as mt } from "date-fns/formatISO";
44
44
  import { fromUnixTime as De } from "date-fns/fromUnixTime";
45
- import { startOfMonth as pt } from "date-fns/startOfMonth";
46
- import { S as ut, a as ht } from "../EmbeddedCard-DCOQnTz-.mjs";
45
+ import { startOfMonth as ut } from "date-fns/startOfMonth";
46
+ import { S as pt, a as ht } from "../EmbeddedCard-BwfkCsUN.mjs";
47
47
  import { F as ft, R as Ie, d as ve } from "../RecurringTransactionsUtil-CHWmqvW5.mjs";
48
48
  import { k as gt } from "../DateUtil-CzBmbjmA.mjs";
49
49
  const z = () => {
@@ -68,7 +68,7 @@ const z = () => {
68
68
  /* @__PURE__ */ e(A, { amount: i, bold: !0, sx: { fontSize: 12 } })
69
69
  ] });
70
70
  }, he = T(bt), xt = () => {
71
- const i = oe(), { availableWidth: o } = ie(), { isMobile: t } = pe(), { selectedAccountGuids: a } = j(), { cashflow: s } = R(), { daysUntilNextIncome: u, expensesTilNextIncome: y, selectedCashAccounts: l, selectedCashBalance: x } = z(), { isDataLoaded: _ } = Q(), r = y.filter((h) => a.includes(h.accountGuid || "")).reduce((h, d) => h + d.amount, 0), p = x - r;
71
+ const i = oe(), { availableWidth: o } = ie(), { isMobile: t } = ue(), { selectedAccountGuids: a } = j(), { cashflow: s } = R(), { daysUntilNextIncome: p, expensesTilNextIncome: y, selectedCashAccounts: l, selectedCashBalance: x } = z(), { isDataLoaded: _ } = Q(), r = y.filter((h) => a.includes(h.accountGuid || "")).reduce((h, d) => h + d.amount, 0), u = x - r;
72
72
  return _ ? /* @__PURE__ */ e(D, { className: "mx-cashflow", pl: 16, pr: 16, pt: 16, children: o > 710 ? /* @__PURE__ */ n(
73
73
  c,
74
74
  {
@@ -92,14 +92,14 @@ const z = () => {
92
92
  ] }),
93
93
  /* @__PURE__ */ e(c, { pt: 18, children: /* @__PURE__ */ e(H, { name: "equal" }) }),
94
94
  /* @__PURE__ */ n(c, { pb: 14, pr: 24, pt: 12, children: [
95
- /* @__PURE__ */ e(A, { amount: p, variant: "h2" }),
95
+ /* @__PURE__ */ e(A, { amount: u, variant: "h2" }),
96
96
  /* @__PURE__ */ n(c, { alignItems: "center", direction: "row", gap: 8, children: [
97
97
  /* @__PURE__ */ e(E, { variant: "caption", whiteSpace: "nowrap", children: s.available_to_spend }),
98
- /* @__PURE__ */ e(ue, { body: s.tooltip_body, title: s.tooltip_title })
98
+ /* @__PURE__ */ e(pe, { body: s.tooltip_body, title: s.tooltip_title })
99
99
  ] })
100
100
  ] }),
101
101
  /* @__PURE__ */ e(c, { borderLeft: `1px solid ${i.palette.divider}`, pb: 12, pl: 24, pt: 12, children: /* @__PURE__ */ n(M, { children: [
102
- /* @__PURE__ */ e(m, { variant: "h2", children: G(s.days, u) }),
102
+ /* @__PURE__ */ e(m, { variant: "h2", children: G(s.days, p) }),
103
103
  /* @__PURE__ */ e(E, { variant: "caption", whiteSpace: "nowrap", children: s.next_paycheck })
104
104
  ] }) })
105
105
  ]
@@ -129,13 +129,13 @@ const z = () => {
129
129
  justifyContent: "space-between",
130
130
  px: 16,
131
131
  sx: { borderBottomLeftRadius: 4, borderBottomRightRadius: 4 },
132
- children: /* @__PURE__ */ e(he, { remaining: p })
132
+ children: /* @__PURE__ */ e(he, { remaining: u })
133
133
  }
134
134
  ),
135
135
  /* @__PURE__ */ e(I, {}),
136
136
  /* @__PURE__ */ n(c, { direction: "row", justifyContent: "space-between", p: 16, children: [
137
137
  /* @__PURE__ */ e(m, { variant: "body2", children: s.next_paycheck }),
138
- /* @__PURE__ */ e(m, { bold: !0, variant: "caption", children: G(s.days, u) })
138
+ /* @__PURE__ */ e(m, { bold: !0, variant: "caption", children: G(s.days, p) })
139
139
  ] })
140
140
  ] }) }) : /* @__PURE__ */ e(V, { height: t ? 210 : 120 });
141
141
  }, yt = T(xt), _t = ({
@@ -143,14 +143,14 @@ const z = () => {
143
143
  onSecondaryCtaClick: o,
144
144
  sx: t = {}
145
145
  }) => {
146
- const { cashflow: a } = R(), { isInitialized: s } = j(), { income: u } = z(), { loadRepeatingTransactionData: y, isDataLoaded: l } = Q();
146
+ const { cashflow: a } = R(), { isInitialized: s } = j(), { income: p } = z(), { loadRepeatingTransactionData: y, isDataLoaded: l } = Q();
147
147
  w.useEffect(() => {
148
148
  l || y().finally();
149
149
  }, []), Ne({
150
150
  widgetName: "CashflowMiniWidget",
151
151
  isLoaded: l
152
152
  });
153
- const x = l && !u.length;
153
+ const x = l && !p.length;
154
154
  return s ? /* @__PURE__ */ n(
155
155
  Qe,
156
156
  {
@@ -230,7 +230,7 @@ const wt = ({ recurrence: i }) => /* @__PURE__ */ n(M, { children: [
230
230
  /* @__PURE__ */ e(m, { bold: !0, sx: { fontSize: 12 }, children: o === J.EXPENSE ? t.expenses : t.income }),
231
231
  /* @__PURE__ */ n(m, { bold: !0, sx: { fontSize: 13 }, children: [
232
232
  o === J.EXPENSE ? "-" : "+",
233
- q(i, "0,0.00")
233
+ Y(i, "0,0.00")
234
234
  ] })
235
235
  ]
236
236
  }
@@ -240,7 +240,7 @@ const wt = ({ recurrence: i }) => /* @__PURE__ */ n(M, { children: [
240
240
  }, Ae = T(St), ne = (i, o) => (t) => t.accountGuid === i.guid && (Fe(t.expectedDate) || Oe(t.expectedDate, o.start)) && Ge(t.expectedDate, o.end), Dt = () => {
241
241
  const { availableWidth: i } = ie(), { cashflow: o } = R(), {
242
242
  config: { display_available_balance_in_accounts: t }
243
- } = me(), { dateRange: a, selectedCashAccounts: s, upcomingExpenses: u, upcomingIncome: y } = z();
243
+ } = me(), { dateRange: a, selectedCashAccounts: s, upcomingExpenses: p, upcomingIncome: y } = z();
244
244
  return /* @__PURE__ */ n(c, { children: [
245
245
  /* @__PURE__ */ n(c, { direction: i < 400 ? "column" : "row", justifyContent: "space-between", children: [
246
246
  /* @__PURE__ */ e(m, { bold: !0, sx: { fontSize: 15, mb: 12 }, children: o.accounts_breakdown }),
@@ -252,15 +252,15 @@ const wt = ({ recurrence: i }) => /* @__PURE__ */ n(M, { children: [
252
252
  ] })
253
253
  ] }),
254
254
  /* @__PURE__ */ e(c, { children: s.map((l) => {
255
- const x = y.filter(ne(l, a)).sort((d, f) => ce(d.expectedDate) - ce(f.expectedDate)), _ = u.filter(
255
+ const x = y.filter(ne(l, a)).sort((d, f) => ce(d.expectedDate) - ce(f.expectedDate)), _ = p.filter(
256
256
  ne(l, a)
257
257
  ), r = x.reduce(
258
258
  (d, f) => d + f.amount,
259
259
  0
260
- ), p = _.reduce(
260
+ ), u = _.reduce(
261
261
  (d, f) => d + f.amount,
262
262
  0
263
- ), h = He(l, t) + r - p;
263
+ ), h = He(l, t) + r - u;
264
264
  return /* @__PURE__ */ n(
265
265
  K,
266
266
  {
@@ -294,7 +294,7 @@ const wt = ({ recurrence: i }) => /* @__PURE__ */ n(M, { children: [
294
294
  _.length > 0 && /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(
295
295
  K,
296
296
  {
297
- subheader: /* @__PURE__ */ e(Ae, { total: p, type: J.EXPENSE }),
297
+ subheader: /* @__PURE__ */ e(Ae, { total: u, type: J.EXPENSE }),
298
298
  sx: { width: "100%" },
299
299
  children: _.map((d) => /* @__PURE__ */ e(Te, { recurrence: d }, d.repeatingTransactionGuid))
300
300
  }
@@ -309,13 +309,13 @@ const wt = ({ recurrence: i }) => /* @__PURE__ */ n(M, { children: [
309
309
  }, It = T(Dt), vt = () => {
310
310
  const { availableWidth: i } = ie(), o = oe(), { cashflow: t } = R(), {
311
311
  config: { display_available_balance_in_accounts: a }
312
- } = me(), { dateRange: s, selectedCashAccounts: u, upcomingExpenses: y, upcomingIncome: l } = z(), x = [
312
+ } = me(), { dateRange: s, selectedCashAccounts: p, upcomingExpenses: y, upcomingIncome: l } = z(), x = [
313
313
  {
314
314
  field: "account",
315
315
  flex: 1.5,
316
316
  headerName: t.accounts,
317
- renderCell: ({ value: { name: r, nickname: p, institution_guid: h, account_number: d } }) => {
318
- const f = p || r;
317
+ renderCell: ({ value: { name: r, nickname: u, institution_guid: h, account_number: d } }) => {
318
+ const f = u || r;
319
319
  return /* @__PURE__ */ n(c, { alignItems: "center", flexDirection: "row", gap: 12, children: [
320
320
  /* @__PURE__ */ e(
321
321
  ye,
@@ -334,21 +334,21 @@ const wt = ({ recurrence: i }) => /* @__PURE__ */ n(M, { children: [
334
334
  flex: 1,
335
335
  headerName: t.balance,
336
336
  type: "number",
337
- renderCell: (r) => /* @__PURE__ */ e(m, { color: o.palette.text.primary, variant: "body2", children: q(r.value, "0,0.00") })
337
+ renderCell: (r) => /* @__PURE__ */ e(m, { color: o.palette.text.primary, variant: "body2", children: Y(r.value, "0,0.00") })
338
338
  },
339
339
  {
340
340
  field: "income",
341
341
  flex: 1,
342
342
  headerName: t.projected_income,
343
343
  type: "number",
344
- renderCell: (r) => /* @__PURE__ */ e(m, { color: o.palette.text.primary, variant: "body2", children: `+${q(r.value, "0,0.00")}` })
344
+ renderCell: (r) => /* @__PURE__ */ e(m, { color: o.palette.text.primary, variant: "body2", children: `+${Y(r.value, "0,0.00")}` })
345
345
  },
346
346
  {
347
347
  field: "expenses",
348
348
  flex: 1.1,
349
349
  headerName: t.projected_expenses,
350
350
  type: "number",
351
- renderCell: (r) => /* @__PURE__ */ e(m, { color: o.palette.text.primary, variant: "body2", children: `-${q(r.value, "0,0.00")}` })
351
+ renderCell: (r) => /* @__PURE__ */ e(m, { color: o.palette.text.primary, variant: "body2", children: `-${Y(r.value, "0,0.00")}` })
352
352
  },
353
353
  {
354
354
  field: "remaining",
@@ -356,28 +356,28 @@ const wt = ({ recurrence: i }) => /* @__PURE__ */ n(M, { children: [
356
356
  headerName: t.remaining,
357
357
  type: "number",
358
358
  renderCell: (r) => {
359
- const p = r.row.balance + r.row.income - r.row.expenses;
359
+ const u = r.row.balance + r.row.income - r.row.expenses;
360
360
  return /* @__PURE__ */ e(
361
361
  m,
362
362
  {
363
- color: Math.sign(p) === -1 ? o.palette.error.main : o.palette.text.primary,
363
+ color: Math.sign(u) === -1 ? o.palette.error.main : o.palette.text.primary,
364
364
  variant: "body2",
365
- children: q(p, "0,0.00")
365
+ children: Y(u, "0,0.00")
366
366
  }
367
367
  );
368
368
  }
369
369
  }
370
- ], _ = w.useMemo(() => u.map((r) => {
371
- const p = y.filter(ne(r, s)).reduce((C, S) => C + S.amount, 0), h = l.filter(ne(r, s)).reduce((C, S) => C + S.amount, 0), d = He(r, a), f = d + h - p;
370
+ ], _ = w.useMemo(() => p.map((r) => {
371
+ const u = y.filter(ne(r, s)).reduce((C, S) => C + S.amount, 0), h = l.filter(ne(r, s)).reduce((C, S) => C + S.amount, 0), d = He(r, a), f = d + h - u;
372
372
  return {
373
373
  account: r,
374
374
  balance: d,
375
375
  id: r.guid,
376
376
  income: h,
377
- expenses: p,
377
+ expenses: u,
378
378
  remaining: f
379
379
  };
380
- }), [u, y, l, a, s]);
380
+ }), [p, y, l, a, s]);
381
381
  return /* @__PURE__ */ n(
382
382
  D,
383
383
  {
@@ -404,7 +404,7 @@ const wt = ({ recurrence: i }) => /* @__PURE__ */ n(M, { children: [
404
404
  }
405
405
  ),
406
406
  /* @__PURE__ */ e(
407
- ue,
407
+ pe,
408
408
  {
409
409
  body: t.table_tooltip_body,
410
410
  title: t.table_tooltip_title
@@ -438,7 +438,7 @@ const wt = ({ recurrence: i }) => /* @__PURE__ */ n(M, { children: [
438
438
  "& .MuiDataGrid-columnHeader .MuiIconButton-root": {
439
439
  color: o.palette.primary.main,
440
440
  "&:hover": {
441
- backgroundColor: Ye(o.palette.primary.main, 0.1)
441
+ backgroundColor: qe(o.palette.primary.main, 0.1)
442
442
  }
443
443
  },
444
444
  "& .MuiDataGrid-columnHeaderTitle": {
@@ -451,7 +451,7 @@ const wt = ({ recurrence: i }) => /* @__PURE__ */ n(M, { children: [
451
451
  }
452
452
  }
453
453
  ) : _.map((r) => {
454
- const { name: p, nickname: h, institution_guid: d, account_number: f } = r.account, C = h || p;
454
+ const { name: u, nickname: h, institution_guid: d, account_number: f } = r.account, C = h || u;
455
455
  return /* @__PURE__ */ e(
456
456
  K,
457
457
  {
@@ -540,7 +540,7 @@ const wt = ({ recurrence: i }) => /* @__PURE__ */ n(M, { children: [
540
540
  }
541
541
  );
542
542
  }, Tt = T(vt), At = () => {
543
- const { cashflow: i } = R(), { isDesktop: o } = pe(), { onEvent: t } = Le(), [a, s] = w.useState(0), u = (y, l) => {
543
+ const { cashflow: i } = R(), { isDesktop: o } = ue(), { onEvent: t } = Le(), [a, s] = w.useState(0), p = (y, l) => {
544
544
  s(l);
545
545
  };
546
546
  return w.useEffect(() => {
@@ -551,7 +551,7 @@ const wt = ({ recurrence: i }) => /* @__PURE__ */ n(M, { children: [
551
551
  {
552
552
  "aria-label": i.cashflow_summary_and_details,
553
553
  centered: !0,
554
- onChange: u,
554
+ onChange: p,
555
555
  textColor: "primary",
556
556
  value: a,
557
557
  variant: "fullWidth",
@@ -591,7 +591,7 @@ const wt = ({ recurrence: i }) => /* @__PURE__ */ n(M, { children: [
591
591
  isTotal: t = !1,
592
592
  label: a,
593
593
  symbol: s,
594
- tooltip: u
594
+ tooltip: p
595
595
  }) => /* @__PURE__ */ n(
596
596
  c,
597
597
  {
@@ -604,7 +604,7 @@ const wt = ({ recurrence: i }) => /* @__PURE__ */ n(M, { children: [
604
604
  !o && /* @__PURE__ */ e(A, { amount: i, component: "h2", variant: "h2" }),
605
605
  /* @__PURE__ */ n(c, { alignItems: "center", component: "span", direction: "row", gap: 8, mt: 2, children: [
606
606
  /* @__PURE__ */ e(m, { bold: t, variant: "body2", children: a }),
607
- u
607
+ p
608
608
  ] }),
609
609
  o && /* @__PURE__ */ e(A, { amount: i, component: "h2", symbol: s, variant: "body2" })
610
610
  ]
@@ -612,16 +612,16 @@ const wt = ({ recurrence: i }) => /* @__PURE__ */ n(M, { children: [
612
612
  ), Re = (i, o) => (t) => t.accountGuid && i.includes(t.accountGuid) && (Fe(t.expectedDate) || Oe(t.expectedDate, o.start)) && Ge(t.expectedDate, o.end), Et = () => {
613
613
  const { availableWidth: i } = ie(), { cashflow: o } = R(), { isDataLoaded: t } = Q(), { selectedAccountGuids: a } = j(), {
614
614
  dateRange: s,
615
- income: u,
615
+ income: p,
616
616
  selectedCashAccounts: y,
617
617
  selectedCashBalance: l,
618
618
  upcomingExpenses: x,
619
619
  upcomingIncome: _
620
- } = z(), [r, p] = w.useState(!1), h = x.filter(
620
+ } = z(), [r, u] = w.useState(!1), h = x.filter(
621
621
  Re(a, s)
622
622
  ), d = _.filter(
623
623
  Re(a, s)
624
- ), f = l, C = h.reduce((k, W) => k + W.amount, 0), S = d.reduce((k, W) => k + W.amount, 0), Z = f - C + S, B = t && u.length > 0, g = i < 725;
624
+ ), f = l, C = h.reduce((k, W) => k + W.amount, 0), S = d.reduce((k, W) => k + W.amount, 0), Z = f - C + S, B = t && p.length > 0, g = i < 725;
625
625
  return /* @__PURE__ */ n(c, { sx: { mx: g ? 16 : 0, my: g ? 24 : 42 }, children: [
626
626
  /* @__PURE__ */ n(
627
627
  c,
@@ -656,7 +656,7 @@ const wt = ({ recurrence: i }) => /* @__PURE__ */ n(M, { children: [
656
656
  ] }) : /* @__PURE__ */ e(
657
657
  F,
658
658
  {
659
- onClick: () => p(!0),
659
+ onClick: () => u(!0),
660
660
  startIcon: /* @__PURE__ */ e(H, { name: "add" }),
661
661
  sx: { fontSize: 13 },
662
662
  children: o.add_income
@@ -681,7 +681,7 @@ const wt = ({ recurrence: i }) => /* @__PURE__ */ n(M, { children: [
681
681
  isTotal: g,
682
682
  label: o.remaining_cash,
683
683
  tooltip: /* @__PURE__ */ e(
684
- ue,
684
+ pe,
685
685
  {
686
686
  body: o.remaining_income_tooltip_body,
687
687
  title: o.remaining_income_tooltip_title
@@ -697,7 +697,7 @@ const wt = ({ recurrence: i }) => /* @__PURE__ */ n(M, { children: [
697
697
  {
698
698
  ariaLabelClose: o.close_manage_income_aria,
699
699
  isOpen: r,
700
- onClose: () => p(!1),
700
+ onClose: () => u(!1),
701
701
  shouldShowHeaderBorders: !1,
702
702
  title: o.manage_income,
703
703
  children: /* @__PURE__ */ e(at, {})
@@ -705,7 +705,7 @@ const wt = ({ recurrence: i }) => /* @__PURE__ */ n(M, { children: [
705
705
  )
706
706
  ] });
707
707
  }, Lt = T(Et), kt = ({ onBackClick: i, onMenuClick: o, sx: t = {} }) => {
708
- const { selectedAccounts: a, selectedAccountGuids: s, shouldDisableNextDate: u, shouldDisablePrevDate: y } = j(), { onEvent: l } = Le(), { clientConfig: x } = me(), { visibleCashAccounts: _ } = Xe(), { setFilter: r } = ke(), { dateRange: p } = z(), { loadRepeatingTransactionData: h, isDataLoaded: d } = Q(), { cashflow: f, recurring: C } = R(), { isInitialized: S } = j(), B = x?.master?.deep_link_params?.view === "manage_income", [g, k] = w.useState(B);
708
+ const { selectedAccounts: a, selectedAccountGuids: s, shouldDisableNextDate: p, shouldDisablePrevDate: y } = j(), { onEvent: l } = Le(), { clientConfig: x } = me(), { visibleCashAccounts: _ } = Xe(), { setFilter: r } = ke(), { dateRange: u } = z(), { loadRepeatingTransactionData: h, isDataLoaded: d } = Q(), { cashflow: f, recurring: C } = R(), { isInitialized: S } = j(), B = x?.master?.deep_link_params?.view === "manage_income", [g, k] = w.useState(B);
709
709
  return w.useEffect(() => {
710
710
  d || h().finally();
711
711
  }, []), w.useEffect(() => {
@@ -732,20 +732,20 @@ const wt = ({ recurrence: i }) => /* @__PURE__ */ n(M, { children: [
732
732
  }
733
733
  ],
734
734
  allowedAccountTypes: [
735
- Y.CASH,
736
- Y.CHECKING,
737
- Y.PREPAID,
738
- Y.SAVINGS,
739
- Y.CHECKING_LINE_OF_CREDIT
735
+ q.CASH,
736
+ q.CHECKING,
737
+ q.PREPAID,
738
+ q.SAVINGS,
739
+ q.CHECKING_LINE_OF_CREDIT
740
740
  ],
741
741
  calendarActions: {
742
- shouldDisableNext: u,
742
+ shouldDisableNext: p,
743
743
  shouldDisablePrevious: y,
744
744
  shouldDisablePicker: !0,
745
745
  onRangeChanged: () => {
746
746
  }
747
747
  },
748
- dateRange: p,
748
+ dateRange: u,
749
749
  dateRangeVariant: "readonly",
750
750
  hasDivider: !0,
751
751
  onAccountsFilterClick: () => l(Se.CASH_FLOW_CLICK_FILTER),
@@ -841,7 +841,7 @@ const wt = ({ recurrence: i }) => /* @__PURE__ */ n(M, { children: [
841
841
  /* @__PURE__ */ e(le, { pb: 12, variant: "h1", children: i.loading_title }),
842
842
  /* @__PURE__ */ e(E, { children: i.loading_description })
843
843
  ] });
844
- }, Ft = T(Gt), Ht = qe`
844
+ }, Ft = T(Gt), Ht = Ye`
845
845
  from {
846
846
  transform: rotate(0deg);
847
847
  }
@@ -849,7 +849,7 @@ const wt = ({ recurrence: i }) => /* @__PURE__ */ n(M, { children: [
849
849
  transform: rotate(360deg);
850
850
  }
851
851
  `, Wt = () => {
852
- const { addRepeatingTransaction: i, repeatingTransactions: o } = Q(), { cashflow: t, common: a } = R(), { user: s } = Je(), { completeOnboarding: u } = de(), { isDirty: y } = z(), { isMobile: l } = pe(), { isCopyLoaded: x, setDisplayedDate: _ } = j(), { filter: r, setFilter: p, transactions: h } = ke(), d = oe(), [f, C] = U(!0), [S, Z] = w.useState(ft.EveryMonth), [B, g] = w.useState(1), [k, W] = w.useState(15), [ee, O] = U(!1), [ae, fe] = U(1), [L, Be] = U([]), [ge, re] = U(""), N = w.useMemo(
852
+ const { addRepeatingTransaction: i, repeatingTransactions: o } = Q(), { cashflow: t, common: a } = R(), { user: s } = Je(), { completeOnboarding: p } = de(), { isDirty: y } = z(), { isMobile: l } = ue(), { isCopyLoaded: x, setDisplayedDate: _ } = j(), { filter: r, setFilter: u, transactions: h } = ke(), d = oe(), [f, C] = U(!0), [S, Z] = w.useState(ft.EveryMonth), [B, g] = w.useState(1), [k, W] = w.useState(15), [ee, O] = U(!1), [ae, fe] = U(1), [L, Be] = U([]), [ge, re] = U(""), N = w.useMemo(
853
853
  () => h.find((b) => b.guid === ge),
854
854
  [ge, h]
855
855
  ), je = !!o.filter(
@@ -857,9 +857,9 @@ const wt = ({ recurrence: i }) => /* @__PURE__ */ n(M, { children: [
857
857
  ).length, be = async () => {
858
858
  fe(2), _(
859
859
  // Beginning of the month, 90 days before today
860
- pt(Me(se(), 90)),
860
+ ut(Me(se(), 90)),
861
861
  se()
862
- ), p({ ...r, custom: we }), fe(3);
862
+ ), u({ ...r, custom: we }), fe(3);
863
863
  }, $e = async () => {
864
864
  if (!(L.length < 1)) {
865
865
  O(!0);
@@ -881,7 +881,7 @@ const wt = ({ recurrence: i }) => /* @__PURE__ */ n(M, { children: [
881
881
  };
882
882
  await i(Ue, v);
883
883
  }
884
- await u();
884
+ await p();
885
885
  }
886
886
  }, Pe = !N && f || !N && L.length < 1;
887
887
  return x ? /* @__PURE__ */ n(
@@ -927,7 +927,7 @@ const wt = ({ recurrence: i }) => /* @__PURE__ */ n(M, { children: [
927
927
  /* @__PURE__ */ e(E, { mb: 24, children: t.add_income_description }),
928
928
  L.length > 0 && !N && /* @__PURE__ */ n(M, { children: [
929
929
  /* @__PURE__ */ e(K, { children: L.map((b, v) => /* @__PURE__ */ n(w.Fragment, { children: [
930
- /* @__PURE__ */ e(ut, { bgcolor: "background.paper", children: gt(
930
+ /* @__PURE__ */ e(pt, { bgcolor: "background.paper", children: gt(
931
931
  ce(b.nextDate || b.date)
932
932
  ) }),
933
933
  /* @__PURE__ */ e(ht, { transaction: b }),
@@ -949,7 +949,7 @@ const wt = ({ recurrence: i }) => /* @__PURE__ */ n(M, { children: [
949
949
  rt,
950
950
  {
951
951
  bgcolor: "background.paper",
952
- onSearch: (b) => p({
952
+ onSearch: (b) => u({
953
953
  ...r,
954
954
  custom: (v) => b ? ct(v, b) : we(v)
955
955
  }),
@@ -1021,7 +1021,7 @@ const wt = ({ recurrence: i }) => /* @__PURE__ */ n(M, { children: [
1021
1021
  children: t.confirm_income_button
1022
1022
  }
1023
1023
  ),
1024
- /* @__PURE__ */ e(F, { onClick: u, variant: "outlined", children: t.skip_button })
1024
+ /* @__PURE__ */ e(F, { onClick: p, variant: "outlined", children: t.skip_button })
1025
1025
  ] })
1026
1026
  ]
1027
1027
  }
@@ -1,4 +1,4 @@
1
- import { C as a, a as o, b as t, u as s } from "../CategorySelectorDrawer-NJsFsKP1.mjs";
1
+ import { C as a, a as o, b as t, u as s } from "../CategorySelectorDrawer-k8AZYC8I.mjs";
2
2
  export {
3
3
  a as CategoryRow,
4
4
  o as CategorySelector,
@@ -1,6 +1,8 @@
1
1
  import { default as React } from 'react';
2
+ import { GlobalCaptureException } from '../../core';
2
3
  export interface ErrorProps {
3
4
  children?: React.ReactNode;
5
+ onCaptureException?: GlobalCaptureException;
4
6
  }
5
7
  export interface ErrorState {
6
8
  hasError: boolean;
@@ -1,8 +1,9 @@
1
1
  import { default as React } from 'react';
2
- import { GlobalErrorHandler, GlobalEventHandler } from '../../core';
2
+ import { GlobalCaptureException, GlobalErrorHandler, GlobalEventHandler } from '../../core';
3
3
  import { GlobalStore } from '../../core/stores';
4
4
  export interface GlobalStoreContextTypes {
5
5
  children: React.ReactNode;
6
+ onCaptureException?: GlobalCaptureException;
6
7
  onError: GlobalErrorHandler;
7
8
  onEvent: GlobalEventHandler;
8
9
  onLoad?: (widgetName: string) => void;
@@ -22,6 +22,9 @@ export declare const useSettingsStore: () => import('../../core').SettingsStore;
22
22
  export declare const useTransactionStore: () => import('../../core').TransactionStore;
23
23
  export declare const useTrendsStore: () => import('../../core').TrendsStore;
24
24
  export declare const useUserStore: () => import('../../core').UserStore;
25
+ export declare const useCaptureException: () => {
26
+ onCaptureException: import('../../core').GlobalCaptureException | undefined;
27
+ };
25
28
  export declare const useError: () => {
26
29
  onError: import('../../core').GlobalErrorHandler;
27
30
  };
@@ -1,3 +1,3 @@
1
- export { useAccountStore, useAppConfig, useBudgetsStore, useCashflowStore, useCategoryStore, useDebtStore, useError, useEvent, useLoad, useFinstrongStore, useGlobalStore, useGlobalUiStore, useGlobalCopyStore, useGoalStore, useHelpStore, useHoldingStore, useMerchantStore, useNetWorthStore, useNotificationStore, usePageView, useRecurringTransactionsStore, useSettingsStore, useTransactionStore, useTrendsStore, useUserStore, useWidgetContainerProvider, } from './hooks';
1
+ export { useAccountStore, useAppConfig, useBudgetsStore, useCaptureException, useCashflowStore, useCategoryStore, useDebtStore, useError, useEvent, useLoad, useFinstrongStore, useGlobalStore, useGlobalUiStore, useGlobalCopyStore, useGoalStore, useHelpStore, useHoldingStore, useMerchantStore, useNetWorthStore, useNotificationStore, usePageView, useRecurringTransactionsStore, useSettingsStore, useTransactionStore, useTrendsStore, useUserStore, useWidgetContainerProvider, } from './hooks';
2
2
  export { GlobalDataContext, GlobalDataProvider } from './GlobalDataProvider';
3
3
  export { WidgetContainerContext, WidgetContainerProvider } from './WidgetContainerProvider';