@mx-cartographer/experiences 7.0.20-alpha.mm1 → 7.0.20-alpha.mm11

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 (69) hide show
  1. package/dist/{Account-DY2axAET.mjs → Account-GFzWnbxA.mjs} +1 -1
  2. package/dist/{AccountDetailsContent-Jsg4ZDC1.mjs → AccountDetailsContent-mN483eVf.mjs} +8 -8
  3. package/dist/{AccountDetailsHeader-EU_2u2Iq.mjs → AccountDetailsHeader-BpsTTa-C.mjs} +5 -5
  4. package/dist/{AccountFields-CSUS7pGn.mjs → AccountFields-dth_TzXr.mjs} +2 -2
  5. package/dist/{AccountListItem-CMYZQg8M.mjs → AccountListItem-DzLeMC0v.mjs} +3 -3
  6. package/dist/{AccountStore-C3Db40GZ.mjs → AccountStore-8wYwS2Fb.mjs} +3 -3
  7. package/dist/{Accounts-xi9RGRIU.mjs → Accounts-Bas8bqMn.mjs} +1 -1
  8. package/dist/{BeatApi-Cd25OYIU.mjs → BeatApi-D2Z1q0T7.mjs} +1 -1
  9. package/dist/{BeatStore-BjXskQbX.mjs → BeatStore-DkRrMYcr.mjs} +1 -1
  10. package/dist/{BudgetUtil-DmWvHV7C.mjs → BudgetUtil-BR1sFoz5.mjs} +1 -1
  11. package/dist/{CategorySelectorDrawer-BHqOpBNr.mjs → CategorySelectorDrawer-y4sp83CD.mjs} +1 -1
  12. package/dist/{CategoryStore-Cklqb42u.mjs → CategoryStore-BXxv_Rm_.mjs} +1 -1
  13. package/dist/{ConnectDrawer-CU5dEdrU.mjs → ConnectDrawer-BbvIVdYR.mjs} +1 -1
  14. package/dist/{ConnectionsDrawer-BUJuQrgF.mjs → ConnectionsDrawer-B8y4UHxL.mjs} +2 -2
  15. package/dist/{CurrencyInput-BtrNBP3z.mjs → CurrencyInput-DyWvvUZX.mjs} +1 -1
  16. package/dist/{DebtsStore-X3cUJZti.mjs → DebtsStore-b4lkfwxB.mjs} +1 -1
  17. package/dist/{ExportCsvAction-CUGnEaHw.mjs → ExportCsvAction-Bu6bbxPc.mjs} +3 -3
  18. package/dist/{Fetch-ykKOFjXN.mjs → Fetch-5yMqsiXO.mjs} +15 -15
  19. package/dist/{FinstrongStore-DRPblFEQ.mjs → FinstrongStore-COSruQ77.mjs} +1 -1
  20. package/dist/{GoalStore-CJ56mSvU.mjs → GoalStore-CbA7tfTk.mjs} +12 -12
  21. package/dist/{Help-CCuoAZT3.mjs → Help-BUxbr8mG.mjs} +1 -1
  22. package/dist/{LineChart-D5uLCys4.mjs → LineChart-C2Q2Sr1y.mjs} +1 -1
  23. package/dist/{ListItemAction-Cwadpg85.mjs → ListItemAction-CUusHw-p.mjs} +1 -1
  24. package/dist/{ManageIncome-B91zIeYo.mjs → ManageIncome-BPmZE2fJ.mjs} +4 -4
  25. package/dist/{MerchantStore-CxSXtH9k.mjs → MerchantStore-UleKHaMr.mjs} +1 -1
  26. package/dist/{MicroWidgetContainer-DwTAjSdX.mjs → MicroWidgetContainer-DNTKJODy.mjs} +1 -1
  27. package/dist/{MiniWidgetContainer-CxggrnHk.mjs → MiniWidgetContainer-xsVrqac5.mjs} +1 -1
  28. package/dist/{NetWorthStore-CYYTpP9O.mjs → NetWorthStore-BQiUgOb8.mjs} +2 -2
  29. package/dist/{NotificationSettings-BhJ2PUkt.mjs → NotificationSettings-DEpoWNlk.mjs} +2 -2
  30. package/dist/{NotificationStore-C7KtK3OV.mjs → NotificationStore-oq8Kg5Wy.mjs} +1 -1
  31. package/dist/{OriginalBalanceAction-DDMRgIBU.mjs → OriginalBalanceAction-DjUO-VPz.mjs} +3 -3
  32. package/dist/{RecurringSettings-CGGFhlhh.mjs → RecurringSettings-Caf4AS16.mjs} +3 -3
  33. package/dist/{RecurringTransactionsStore-DK4pjUDR.mjs → RecurringTransactionsStore-CbVh6M8E.mjs} +1 -1
  34. package/dist/{SettingsStore-LF8dURII.mjs → SettingsStore-BkEnt8J1.mjs} +2 -2
  35. package/dist/{TransactionApi-cNhaf-gP.mjs → TransactionApi-CVmOYZsA.mjs} +1 -1
  36. package/dist/{TransactionDetails-Bc0iW26I.mjs → TransactionDetails-CGLeSsaa.mjs} +5 -5
  37. package/dist/{TransactionStore-DyG1muEX.mjs → TransactionStore-B8KE_GP4.mjs} +4 -4
  38. package/dist/{TrendsStore-DmuQennN.mjs → TrendsStore-DpyWU-HL.mjs} +1 -1
  39. package/dist/{User-B9T_314z.mjs → User-CcPqTPbo.mjs} +1 -1
  40. package/dist/{ViewMoreMicroCard-DPnAhQEx.mjs → ViewMoreMicroCard-CPIaoYx7.mjs} +2 -2
  41. package/dist/{WidgetContainer-CTrp2veH.mjs → WidgetContainer-DPzZyq22.mjs} +2 -2
  42. package/dist/accounts/index.es.js +12 -12
  43. package/dist/analytics/index.es.js +2 -2
  44. package/dist/budgets/index.es.js +10 -10
  45. package/dist/cashflow/index.es.js +8 -8
  46. package/dist/categories/index.es.js +2 -2
  47. package/dist/common/index.es.js +208 -203
  48. package/dist/common/stores/GlobalStore.d.ts +1 -1
  49. package/dist/dashboard/index.es.js +2 -2
  50. package/dist/debts/index.es.js +9 -9
  51. package/dist/{exportTransactionsToCSV-ct1RkLbj.mjs → exportTransactionsToCSV-DsY4Aap_.mjs} +1 -1
  52. package/dist/finstrong/index.es.js +7 -7
  53. package/dist/goals/index.es.js +11 -11
  54. package/dist/help/index.es.js +3 -3
  55. package/dist/hooks-DP5qvbXf.mjs +80 -0
  56. package/dist/insights/index.es.js +1 -1
  57. package/dist/investments/index.es.js +3 -3
  58. package/dist/merchants/index.es.js +2 -2
  59. package/dist/microinsights/index.es.js +1 -1
  60. package/dist/networth/index.es.js +7 -7
  61. package/dist/notifications/index.es.js +5 -5
  62. package/dist/recurringtransactions/index.es.js +10 -10
  63. package/dist/settings/index.es.js +7 -7
  64. package/dist/spending/index.es.js +4 -4
  65. package/dist/transactions/index.es.js +14 -14
  66. package/dist/trends/index.es.js +10 -10
  67. package/dist/{useCombineEvents-Bh-gCRSN.mjs → useCombineEvents-_pq30PbT.mjs} +1 -1
  68. package/package.json +1 -1
  69. package/dist/hooks-DcS6DyRl.mjs +0 -74
@@ -1,4 +1,4 @@
1
- import { A as C } from "./ConnectDrawer-CU5dEdrU.mjs";
1
+ import { A as C } from "./ConnectDrawer-BbvIVdYR.mjs";
2
2
  const I = [
3
3
  C.ANY,
4
4
  C.CASH,
@@ -11,10 +11,10 @@ import M from "@mui/material/Divider";
11
11
  import v from "@mui/material/ListItem";
12
12
  import N from "@mui/material/ListItemButton";
13
13
  import w from "@mui/material/ListItemText";
14
- import { u as D } from "./AccountDetailsHeader-EU_2u2Iq.mjs";
15
- import { c as z, u as E, e as O, f as X } from "./hooks-DcS6DyRl.mjs";
16
- import { A as at } from "./AccountListItem-CMYZQg8M.mjs";
17
- import { A as k } from "./WidgetContainer-CTrp2veH.mjs";
14
+ import { u as D } from "./AccountDetailsHeader-BpsTTa-C.mjs";
15
+ import { c as z, u as E, e as O, f as X } from "./hooks-DP5qvbXf.mjs";
16
+ import { A as at } from "./AccountListItem-DzLeMC0v.mjs";
17
+ import { A as k } from "./WidgetContainer-DPzZyq22.mjs";
18
18
  import { a as V, f as B, D as j } from "./Dialog-CWW597AF.mjs";
19
19
  import { b as h } from "./Localization-2MODESHW.mjs";
20
20
  import { D as J } from "./Drawer-kEE73B87.mjs";
@@ -22,7 +22,7 @@ import R from "@mui/material/ListItemAvatar";
22
22
  import ct from "@mui/material/Stack";
23
23
  import st from "@mui/material/styles/useTheme";
24
24
  import { Error as q, CheckCircle as it, Language as rt } from "@mxenabled/mx-icons";
25
- import { k as m, N as Q, j as Z, F as P } from "./ConnectDrawer-CU5dEdrU.mjs";
25
+ import { k as m, N as Q, j as Z, F as P } from "./ConnectDrawer-BbvIVdYR.mjs";
26
26
  import { fromUnixTime as lt } from "date-fns/fromUnixTime";
27
27
  import { isToday as dt } from "date-fns/isToday";
28
28
  import { isYesterday as ut } from "date-fns/isYesterday";
@@ -37,14 +37,14 @@ import { LocalizationProvider as ft } from "@mui/x-date-pickers-pro";
37
37
  import At from "@mui/material/MenuItem";
38
38
  import bt from "@mui/material/Select";
39
39
  import Tt from "@mui/material/TextField";
40
- import { C as St } from "./CurrencyInput-BtrNBP3z.mjs";
41
- import { a as Dt } from "./AccountFields-CSUS7pGn.mjs";
40
+ import { C as St } from "./CurrencyInput-DyWvvUZX.mjs";
41
+ import { a as Dt } from "./AccountFields-dth_TzXr.mjs";
42
42
  import Et from "@mui/material/Alert";
43
43
  import yt from "@mui/material/AlertTitle";
44
44
  import xt from "@mui/material/Link";
45
45
  import wt from "@mui/material/Paper";
46
46
  import { subDays as kt, startOfToday as It, endOfToday as Mt } from "date-fns";
47
- import { T as vt, a as Lt } from "./TransactionDetails-Bc0iW26I.mjs";
47
+ import { T as vt, a as Lt } from "./TransactionDetails-CGLeSsaa.mjs";
48
48
  import { T as K } from "./TabContentContainer-j01JYR_7.mjs";
49
49
  const U = ({
50
50
  children: e,
@@ -2,17 +2,17 @@ import { jsx as e, jsxs as u } from "react/jsx-runtime";
2
2
  import { observer as p } from "mobx-react-lite";
3
3
  import d from "@mui/material/Stack";
4
4
  import { H3 as w, InstitutionLogo as I, Text as m, H2 as L } from "@mxenabled/mxui";
5
- import { g as N } from "./AccountFields-CSUS7pGn.mjs";
5
+ import { g as N } from "./AccountFields-dth_TzXr.mjs";
6
6
  import h from "react";
7
- import { G as v, c as S, k as y, u as _, l as E } from "./hooks-DcS6DyRl.mjs";
7
+ import { G as v, c as S, k as y, u as _, l as E } from "./hooks-DP5qvbXf.mjs";
8
8
  import G from "@mui/material/Card";
9
9
  import O from "@mui/material/CardContent";
10
10
  import P from "@mui/material/CardHeader";
11
11
  import { useTheme as M } from "@mui/material/styles";
12
12
  import { g as B, a as H, b as U } from "./SpendingData-D5vsfYKo.mjs";
13
- import { L as j } from "./LineChart-D5uLCys4.mjs";
14
- import { I as f, P as g, S as C } from "./Account-DY2axAET.mjs";
15
- import { A } from "./ConnectDrawer-CU5dEdrU.mjs";
13
+ import { L as j } from "./LineChart-C2Q2Sr1y.mjs";
14
+ import { I as f, P as g, S as C } from "./Account-GFzWnbxA.mjs";
15
+ import { A } from "./ConnectDrawer-BbvIVdYR.mjs";
16
16
  import { L as z } from "./Loader-DUaFpDGv.mjs";
17
17
  import { f as Y, D as k } from "./Dialog-CWW597AF.mjs";
18
18
  import { f as R } from "./NumberFormatting-CtWHhyBX.mjs";
@@ -1,7 +1,7 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
2
  import { Icon as p, Text as c } from "@mxenabled/mxui";
3
- import { F as m, A as b, a as v, P as h, b as F } from "./ConnectDrawer-CU5dEdrU.mjs";
4
- import { i as D, u as T, a as A, b as O, c as g } from "./Accounts-xi9RGRIU.mjs";
3
+ import { F as m, A as b, a as v, P as h, b as F } from "./ConnectDrawer-BbvIVdYR.mjs";
4
+ import { i as D, u as T, a as A, b as O, c as g } from "./Accounts-Bas8bqMn.mjs";
5
5
  import { f as _, i as d, a as N, b as S } from "./NumberFormatting-CtWHhyBX.mjs";
6
6
  import { b as i } from "./Localization-2MODESHW.mjs";
7
7
  import { f, D as o } from "./Dialog-CWW597AF.mjs";
@@ -10,9 +10,9 @@ import C from "@mui/material/styles/useTheme";
10
10
  import { InstitutionLogo as B, Text as o } from "@mxenabled/mxui";
11
11
  import { Error as L } from "@mxenabled/mx-icons";
12
12
  import { I as A } from "./IconBacking-B9oC6uL2.mjs";
13
- import { g as j } from "./AccountFields-CSUS7pGn.mjs";
14
- import { d } from "./ConnectDrawer-CU5dEdrU.mjs";
15
- import { u as T } from "./hooks-DcS6DyRl.mjs";
13
+ import { g as j } from "./AccountFields-dth_TzXr.mjs";
14
+ import { d } from "./ConnectDrawer-BbvIVdYR.mjs";
15
+ import { u as T } from "./hooks-DP5qvbXf.mjs";
16
16
  import { f as X } from "./NumberFormatting-CtWHhyBX.mjs";
17
17
  const $ = {
18
18
  gridRow: 1,
@@ -1,7 +1,7 @@
1
1
  import { makeAutoObservable as _, runInAction as a } from "mobx";
2
- import { i as g } from "./User-B9T_314z.mjs";
3
- import { F as f, A as i } from "./Fetch-ykKOFjXN.mjs";
4
- import { A as n, d as h, E as p, g as y, h as I } from "./ConnectDrawer-CU5dEdrU.mjs";
2
+ import { i as g } from "./User-CcPqTPbo.mjs";
3
+ import { F as f, A as i } from "./Fetch-5yMqsiXO.mjs";
4
+ import { A as n, d as h, E as p, g as y, h as I } from "./ConnectDrawer-BbvIVdYR.mjs";
5
5
  class l {
6
6
  fetchInstance;
7
7
  constructor(t, e, s) {
@@ -1,4 +1,4 @@
1
- import { A as _ } from "./ConnectDrawer-CU5dEdrU.mjs";
1
+ import { A as _ } from "./ConnectDrawer-BbvIVdYR.mjs";
2
2
  const s = (t) => t && (t.account_type === _.CREDIT_CARD || t.account_type === _.LOAN || t.account_type === _.MORTGAGE || t.account_type === _.LINE_OF_CREDIT || t.account_type === _.CHECKING_LINE_OF_CREDIT), p = (t) => t.is_manual || !t.guid, E = (t) => t.account_type === _.LINE_OF_CREDIT || t.account_type === _.CREDIT_CARD || t.account_type === _.CHECKING_LINE_OF_CREDIT, a = (t) => t.account_type === _.SAVINGS || t.account_type === _.CHECKING || t.account_type === _.LINE_OF_CREDIT || t.account_type === _.CREDIT_CARD || t.account_type === _.LOAN || t.account_type === _.MORTGAGE, y = (t) => t.account_type === _.LOAN || t.account_type === _.MORTGAGE;
3
3
  export {
4
4
  s as a,
@@ -1,4 +1,4 @@
1
- import { F as c, A as s } from "./Fetch-ykKOFjXN.mjs";
1
+ import { F as c, A as s } from "./Fetch-5yMqsiXO.mjs";
2
2
  class i {
3
3
  fetchInstance;
4
4
  constructor(t, e, n) {
@@ -1,5 +1,5 @@
1
1
  import { makeAutoObservable as c, runInAction as r } from "mobx";
2
- import { B as l } from "./BeatApi-Cd25OYIU.mjs";
2
+ import { B as l } from "./BeatApi-D2Z1q0T7.mjs";
3
3
  function d(t, e, s, i = "asc") {
4
4
  const a = i === "desc" ? -1 : 1;
5
5
  return [...t, ...e].sort((_, n) => _[s] < n[s] ? -1 * a : _[s] > n[s] ? 1 * a : 0);
@@ -1,4 +1,4 @@
1
- import { g as _ } from "./hooks-DcS6DyRl.mjs";
1
+ import { g as _ } from "./hooks-DP5qvbXf.mjs";
2
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-CtWHhyBX.mjs";
@@ -2,7 +2,7 @@ import { jsx as t, jsxs as E } from "react/jsx-runtime";
2
2
  import { observer as g } from "mobx-react-lite";
3
3
  import C from "react";
4
4
  import $ from "@mui/material/Stack";
5
- import { G as K, k as y, u as b, e as D, a as U } from "./hooks-DcS6DyRl.mjs";
5
+ import { G as K, k as y, u as b, e as D, a as U } from "./hooks-DP5qvbXf.mjs";
6
6
  import Y from "@mui/material/List";
7
7
  import V from "@mui/material/Paper";
8
8
  import v from "@mui/material/Divider";
@@ -4,7 +4,7 @@ import { subMonths as g } from "date-fns/subMonths";
4
4
  import { startOfMonth as h } from "date-fns/startOfMonth";
5
5
  import { endOfMonth as d } from "date-fns/endOfMonth";
6
6
  import { a as T, g as m } from "./CategoryUtil-BR3H5i6n.mjs";
7
- import { F as p, A as i } from "./Fetch-ykKOFjXN.mjs";
7
+ import { F as p, A as i } from "./Fetch-5yMqsiXO.mjs";
8
8
  import { b as f, c as w } from "./Category-CevNQ03n.mjs";
9
9
  class y {
10
10
  fetchInstance;
@@ -14,7 +14,7 @@ import p from "@mui/material/ListItemText";
14
14
  import y from "@mui/material/Popover";
15
15
  import g from "@mui/material/Stack";
16
16
  import v from "@mui/material/Checkbox";
17
- import { u as B, c, d as u } from "./hooks-DcS6DyRl.mjs";
17
+ import { u as B, c, d as u } from "./hooks-DP5qvbXf.mjs";
18
18
  import { b as W } from "./Localization-2MODESHW.mjs";
19
19
  import { u as EE } from "./useScreenSize-B6JyS_Lj.mjs";
20
20
  import { observer as z } from "mobx-react-lite";
@@ -3,8 +3,8 @@ import r from "react";
3
3
  import { observer as E } from "mobx-react-lite";
4
4
  import { useTheme as D } from "@mui/material/styles";
5
5
  import { ConnectionsWidget as L } from "@mxenabled/web-widget-sdk";
6
- import { C as a, c, M as i } from "./ConnectDrawer-CU5dEdrU.mjs";
7
- import { c as b, d as w, u as _ } from "./hooks-DcS6DyRl.mjs";
6
+ import { C as a, c, M as i } from "./ConnectDrawer-BbvIVdYR.mjs";
7
+ import { c as b, d as w, u as _ } from "./hooks-DP5qvbXf.mjs";
8
8
  import { D as x } from "./Drawer-kEE73B87.mjs";
9
9
  const I = ({
10
10
  onClose: l,
@@ -5,7 +5,7 @@ import { v4 as B } from "uuid";
5
5
  import { useTokens as O, TextField as W, P as p } from "@mxenabled/mxui";
6
6
  import { b as _, g as d } from "./Localization-2MODESHW.mjs";
7
7
  import { g as j, C as D, f as y, M as C } from "./NumberFormatting-CtWHhyBX.mjs";
8
- import { u as F } from "./hooks-DcS6DyRl.mjs";
8
+ import { u as F } from "./hooks-DP5qvbXf.mjs";
9
9
  const G = ({
10
10
  allowDecimals: o = !0,
11
11
  ariaLabel: g,
@@ -1,6 +1,6 @@
1
1
  import { makeAutoObservable as l } from "mobx";
2
2
  import { getDate as r, fromUnixTime as _, startOfMonth as m } from "date-fns";
3
- import { A as p } from "./ConnectDrawer-CU5dEdrU.mjs";
3
+ import { A as p } from "./ConnectDrawer-BbvIVdYR.mjs";
4
4
  const E = 12, T = 100;
5
5
  var c = /* @__PURE__ */ ((a) => (a[a.FASTEST_PAYOFF_FIRST = 1] = "FASTEST_PAYOFF_FIRST", a[a.HIGHEST_INTEREST = 2] = "HIGHEST_INTEREST", a[a.LOWEST_BALANCE = 3] = "LOWEST_BALANCE", a[a.HIGHEST_BALANCE = 4] = "HIGHEST_BALANCE", a))(c || {});
6
6
  const b = {
@@ -1,10 +1,10 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { observer as c } from "mobx-react-lite";
3
3
  import { Icon as i } from "@mxenabled/mxui";
4
- import { e as p } from "./exportTransactionsToCSV-ct1RkLbj.mjs";
5
- import { O as m } from "./User-B9T_314z.mjs";
4
+ import { e as p } from "./exportTransactionsToCSV-DsY4Aap_.mjs";
5
+ import { O as m } from "./User-CcPqTPbo.mjs";
6
6
  import { R as x } from "./ResponsiveButton-DZFp78fJ.mjs";
7
- import { e as _, f as C, u as l } from "./hooks-DcS6DyRl.mjs";
7
+ import { e as _, f as C, u as l } from "./hooks-DP5qvbXf.mjs";
8
8
  const v = ({ filter: t }) => {
9
9
  const { onEvent: r } = _(), { tags: e, sortedTransactions: s } = C(), { transactions: n } = l(), a = () => {
10
10
  r(m.ON_TRANSACTION_EXPORT_CSV_CLICK), p(t ? s.filter(t) : s, e);
@@ -50,36 +50,36 @@ class E {
50
50
  endpoint = "/";
51
51
  headers;
52
52
  onError;
53
- constructor(s, n, t, o) {
54
- this.endpoint = s;
53
+ constructor(o, n, t, s) {
54
+ this.endpoint = o;
55
55
  const e = {
56
56
  Accept: "application/json",
57
57
  "Accept-Language": i(),
58
58
  "Content-Type": "application/json",
59
59
  "MD-Session-Token": n
60
60
  };
61
- this.headers = t || e, this.onError = o;
61
+ this.headers = t || e, this.onError = s, console.info("Fetch constructor onError:", s?.toString());
62
62
  }
63
- get = async (s) => {
63
+ get = async (o) => {
64
64
  const n = {
65
65
  method: "GET",
66
66
  headers: this.headers
67
67
  };
68
- return fetch(`${this.endpoint}${s}`, n).then((t) => {
68
+ return fetch(`${this.endpoint}${o}`, n).then((t) => {
69
69
  if (t.ok)
70
70
  return t.text();
71
71
  throw t;
72
72
  }).then((t) => t.length ? JSON.parse(t) : {}).then((t) => t).catch((t) => {
73
- throw console.error("Fetch GET error:", t), this.onError?.(t), t;
73
+ throw console.info("Fetch GET onError:", this.onError?.toString()), this.onError?.(t), t;
74
74
  });
75
75
  };
76
- post = async (s, n) => {
77
- const t = n ? JSON.stringify(n) : void 0, o = {
76
+ post = async (o, n) => {
77
+ const t = n ? JSON.stringify(n) : void 0, s = {
78
78
  method: "POST",
79
79
  headers: this.headers,
80
80
  body: t
81
81
  };
82
- return fetch(`${this.endpoint}${s}`, o).then((e) => {
82
+ return fetch(`${this.endpoint}${o}`, s).then((e) => {
83
83
  if (!e.ok)
84
84
  throw e;
85
85
  return e.text();
@@ -87,25 +87,25 @@ class E {
87
87
  throw e;
88
88
  });
89
89
  };
90
- put = async (s, n) => {
91
- const t = JSON.stringify(n), o = {
90
+ put = async (o, n) => {
91
+ const t = JSON.stringify(n), s = {
92
92
  method: "PUT",
93
93
  headers: this.headers,
94
94
  body: t
95
95
  };
96
- return fetch(`${this.endpoint}${s}`, o).then((e) => e.ok ? e.text() : e.text().then((r) => {
96
+ return fetch(`${this.endpoint}${o}`, s).then((e) => e.ok ? e.text() : e.text().then((r) => {
97
97
  throw new Error(r);
98
98
  })).then((e) => e.length ? JSON.parse(e) : {}).then((e) => e).catch((e) => {
99
99
  throw e;
100
100
  });
101
101
  };
102
- delete = async (s) => {
102
+ delete = async (o) => {
103
103
  const n = {
104
104
  method: "DELETE",
105
105
  headers: this.headers
106
106
  };
107
- return fetch(`${this.endpoint}${s}`, n).then((t) => t.ok ? t.text() : t.text().then((o) => {
108
- throw new Error(o);
107
+ return fetch(`${this.endpoint}${o}`, n).then((t) => t.ok ? t.text() : t.text().then((s) => {
108
+ throw new Error(s);
109
109
  })).then((t) => t.length ? JSON.parse(t) : {}).then((t) => t).catch((t) => {
110
110
  throw t;
111
111
  });
@@ -3,7 +3,7 @@ import { format as i } from "date-fns/format";
3
3
  import { fromUnixTime as g } from "date-fns/fromUnixTime";
4
4
  import { getUnixTime as s } from "date-fns/getUnixTime";
5
5
  import { subMonths as S } from "date-fns/subMonths";
6
- import { F as m, A as o } from "./Fetch-ykKOFjXN.mjs";
6
+ import { F as m, A as o } from "./Fetch-5yMqsiXO.mjs";
7
7
  import { f as p, D as u } from "./Dialog-CWW597AF.mjs";
8
8
  class n {
9
9
  fetchInstance;
@@ -7,18 +7,18 @@ import O from "@mui/material/CardHeader";
7
7
  import S from "@mui/material/Stack";
8
8
  import { AccountBalance as w, ChevronRight as L } from "@mxenabled/mx-icons";
9
9
  import { Text as A } from "@mxenabled/mxui";
10
- import { j as b } from "./ConnectDrawer-CU5dEdrU.mjs";
11
- import { m as y } from "./hooks-DcS6DyRl.mjs";
10
+ import { j as y } from "./ConnectDrawer-BbvIVdYR.mjs";
11
+ import { m as b } from "./hooks-DP5qvbXf.mjs";
12
12
  import { makeAutoObservable as D, runInAction as c } from "mobx";
13
- import { F as v, A as i } from "./Fetch-ykKOFjXN.mjs";
14
- import { fromUnixTime as G } from "date-fns/fromUnixTime";
13
+ import { F as v, A as i } from "./Fetch-5yMqsiXO.mjs";
14
+ import { fromUnixTime as C } from "date-fns/fromUnixTime";
15
15
  import { addYears as x } from "date-fns/addYears";
16
16
  import { getUnixTime as K } from "date-fns/getUnixTime";
17
17
  import { b as E } from "./Localization-2MODESHW.mjs";
18
18
  import { a as F } from "./NumberFormatting-CtWHhyBX.mjs";
19
19
  import { f as B, D as U } from "./Dialog-CWW597AF.mjs";
20
20
  const at = ({ description: e, label: t, title: o }) => {
21
- const { config: r } = y(), [n, s] = u.useState(!1);
21
+ const { config: r } = b(), [n, s] = u.useState(!1);
22
22
  return /* @__PURE__ */ g(u.Fragment, { children: [
23
23
  /* @__PURE__ */ g(I, { sx: { m: 24 }, children: [
24
24
  /* @__PURE__ */ _(
@@ -49,7 +49,7 @@ const at = ({ description: e, label: t, title: o }) => {
49
49
  ] }) })
50
50
  ] }),
51
51
  /* @__PURE__ */ _(
52
- b,
52
+ y,
53
53
  {
54
54
  onClose: () => s(!1),
55
55
  showConnectWidget: n,
@@ -90,7 +90,7 @@ function it(e, t) {
90
90
  style: "percent",
91
91
  minimumFractionDigits: 0,
92
92
  maximumFractionDigits: 0
93
- }, d = t.is_complete ? t.completed_at : t.projected_to_complete_at, m = d ? G(d) : /* @__PURE__ */ new Date(), f = E(
93
+ }, d = t.is_complete ? t.completed_at : t.projected_to_complete_at, m = d ? C(d) : /* @__PURE__ */ new Date(), f = E(
94
94
  e.goal_percentage,
95
95
  F(r, h)
96
96
  ), p = E(
@@ -167,8 +167,8 @@ const ct = (e, t) => {
167
167
  default:
168
168
  return E(t.zero_state_ongoing, "retirement");
169
169
  }
170
- }, C = (e, t) => {
171
- const o = G(t), r = x(o, e);
170
+ }, G = (e, t) => {
171
+ const o = C(t), r = x(o, e);
172
172
  return K(r);
173
173
  };
174
174
  class lt {
@@ -182,7 +182,7 @@ class lt {
182
182
  monthlyCashFlowProfile = void 0;
183
183
  goalsLoaded = !1;
184
184
  constructor(t) {
185
- this.globalStore = t, this.api = new R(t.endpoint, t.sessionToken, t.onError), D(this);
185
+ console.error("GoalStore onError:", t.onError?.toString()), this.globalStore = t, this.api = new R(t.endpoint, t.sessionToken, t.onError), D(this);
186
186
  }
187
187
  get orderedGoals() {
188
188
  return this.goals.slice().sort((t, o) => t.position - o.position);
@@ -238,7 +238,7 @@ class lt {
238
238
  amount: r.target_amount,
239
239
  name: o.retirement,
240
240
  track_type: a.RETIREMENT_TRACK,
241
- projected_to_complete_at: r.retirement_age && s ? C(r.retirement_age, s) : void 0
241
+ projected_to_complete_at: r.retirement_age && s ? G(r.retirement_age, s) : void 0
242
242
  }
243
243
  ], this.retirementGoalAccounts = [...this.retirementGoalAccounts, ...n];
244
244
  });
@@ -266,7 +266,7 @@ class lt {
266
266
  amount: m.target_amount,
267
267
  name: t.retirement,
268
268
  track_type: a.RETIREMENT_TRACK,
269
- projected_to_complete_at: m.retirement_age && h ? C(m.retirement_age, h) : void 0
269
+ projected_to_complete_at: m.retirement_age && h ? G(m.retirement_age, h) : void 0
270
270
  }))
271
271
  ];
272
272
  c(() => {
@@ -13,7 +13,7 @@ import E from "@mui/material/Stack";
13
13
  import { H3 as y, P as H, Icon as X, Text as T, H2 as _t, InstitutionLogo as bt } from "@mxenabled/mxui";
14
14
  import { ExpandMore as ot, ChevronRight as wt } from "@mxenabled/mx-icons";
15
15
  import xt from "@mui/material/Breadcrumbs";
16
- import { u as V, z as tt, c as ft, o as St, a as It, m as Tt } from "./hooks-DcS6DyRl.mjs";
16
+ import { u as V, z as tt, c as ft, o as St, a as It, m as Tt } from "./hooks-DP5qvbXf.mjs";
17
17
  import { useTheme as Z } from "@mui/material/styles";
18
18
  import { b as s } from "./Localization-2MODESHW.mjs";
19
19
  import { E as Et, a as Ct, P as At } from "./Help-DhcC-C05.mjs";
@@ -7,7 +7,7 @@ import { f as y } from "./NumberFormatting-CtWHhyBX.mjs";
7
7
  import { observer as se } from "mobx-react-lite";
8
8
  import { Stack as x, Box as W, useTheme as ce } from "@mui/material";
9
9
  import { Text as l } from "@mxenabled/mxui";
10
- import { u as de } from "./hooks-DcS6DyRl.mjs";
10
+ import { u as de } from "./hooks-DP5qvbXf.mjs";
11
11
  import { ChartsTooltip as he } from "@mui/x-charts/ChartsTooltip";
12
12
  const ue = (e) => {
13
13
  const a = N(), o = e.showLabel, s = e.style, g = Number(e.x), m = Number(e.y), u = e.handlers?.onMarkClick, f = e.handlers?.onMouseEnter, c = e.handlers?.onMouseLeave, d = le(a.breakpoints.up("sm")), n = e.valueFormatterString ? y(e.yData[e.dataIndex], e.valueFormatterString) : String(e.yData[e.dataIndex]), h = d ? a.typography.Small?.fontSize : a.typography.XSmall?.fontSize, k = h ? parseFloat(h.toString()) * 0.6 : 8, C = n.length * k + 8 + 8, M = 24, S = g - C / 2, T = m - 30;
@@ -8,7 +8,7 @@ import L from "@mui/material/Stack";
8
8
  import { ChevronRight as g } from "@mxenabled/mx-icons";
9
9
  import { Text as m } from "@mxenabled/mxui";
10
10
  import { a as j } from "./Dialog-CWW597AF.mjs";
11
- import { u as P } from "./hooks-DcS6DyRl.mjs";
11
+ import { u as P } from "./hooks-DP5qvbXf.mjs";
12
12
  const D = v(
13
13
  ({
14
14
  children: n,
@@ -16,23 +16,23 @@ import { startOfToday as z } from "date-fns/startOfToday";
16
16
  import { endOfMonth as _e } from "date-fns/endOfMonth";
17
17
  import H from "@mui/material/Button";
18
18
  import { Delete as me, Add as ye, ReceiptLong as pe } from "@mxenabled/mx-icons";
19
- import { T as X, a as he, u as ge, S as fe, b as Ce } from "./TransactionDetails-Bc0iW26I.mjs";
19
+ import { T as X, a as he, u as ge, S as fe, b as Ce } from "./TransactionDetails-CGLeSsaa.mjs";
20
20
  import { getDayOfYear as be } from "date-fns/getDayOfYear";
21
21
  import { setDayOfYear as Se } from "date-fns/setDayOfYear";
22
22
  import { AdapterDateFns as ve } from "@mui/x-date-pickers/AdapterDateFnsV3";
23
23
  import { DatePicker as xe } from "@mui/x-date-pickers";
24
24
  import { LocalizationProvider as we } from "@mui/x-date-pickers/LocalizationProvider";
25
- import { u as w, h as M, e as F, a as Ae, f as Z, o as De } from "./hooks-DcS6DyRl.mjs";
25
+ import { u as w, h as M, e as F, a as Ae, f as Z, o as De } from "./hooks-DP5qvbXf.mjs";
26
26
  import { b as Ie, f as J } from "./NumberFormatting-CtWHhyBX.mjs";
27
27
  import { D as O } from "./Drawer-kEE73B87.mjs";
28
- import { A as R } from "./WidgetContainer-CTrp2veH.mjs";
28
+ import { A as R } from "./WidgetContainer-DPzZyq22.mjs";
29
29
  import { f as Ee, D as Re, a as Te } from "./Dialog-CWW597AF.mjs";
30
30
  import { formatISO as Le } from "date-fns/formatISO";
31
31
  import { fromUnixTime as Oe } from "date-fns/fromUnixTime";
32
32
  import { S as ke } from "./SearchBox-B2_zLv8-.mjs";
33
33
  import { h as Ne } from "./DateUtil-BcuH7ErC.mjs";
34
34
  import { b as B } from "./Category-CevNQ03n.mjs";
35
- import { T as V } from "./User-B9T_314z.mjs";
35
+ import { T as V } from "./User-CcPqTPbo.mjs";
36
36
  const ee = ({
37
37
  frequency: n,
38
38
  firstDay: t,
@@ -1,5 +1,5 @@
1
1
  import { makeAutoObservable as m, runInAction as c } from "mobx";
2
- import { F as p, A as h } from "./Fetch-ykKOFjXN.mjs";
2
+ import { F as p, A as h } from "./Fetch-5yMqsiXO.mjs";
3
3
  class i {
4
4
  fetchInstance;
5
5
  constructor(t, n, s) {
@@ -6,7 +6,7 @@ import b from "@mui/material/CardHeader";
6
6
  import { P as u, H3 as v } from "@mxenabled/mxui";
7
7
  import { ChevronRight as W } from "@mxenabled/mx-icons";
8
8
  import { u as M } from "./useDimensions-27p2evRx.mjs";
9
- import { W as w } from "./hooks-DcS6DyRl.mjs";
9
+ import { W as w } from "./hooks-DP5qvbXf.mjs";
10
10
  const H = ({
11
11
  children: e,
12
12
  className: o,
@@ -7,7 +7,7 @@ import b from "@mui/material/IconButton";
7
7
  import { Icon as C, ChevronRight as v } from "@mxenabled/mx-icons";
8
8
  import { Text as W, H3 as H } from "@mxenabled/mxui";
9
9
  import { u as I } from "./useDimensions-27p2evRx.mjs";
10
- import { W as M } from "./hooks-DcS6DyRl.mjs";
10
+ import { W as M } from "./hooks-DP5qvbXf.mjs";
11
11
  const j = ({
12
12
  className: t = "mx-cmn-mini-widget",
13
13
  closeLabel: a,
@@ -3,8 +3,8 @@ import { format as A } from "date-fns/format";
3
3
  import { fromUnixTime as W } from "date-fns/fromUnixTime";
4
4
  import { startOfMonth as _ } from "date-fns/startOfMonth";
5
5
  import { subMonths as B } from "date-fns/subMonths";
6
- import { a as b } from "./Accounts-xi9RGRIU.mjs";
7
- import { e as N, a as M, f as v } from "./ConnectDrawer-CU5dEdrU.mjs";
6
+ import { a as b } from "./Accounts-Bas8bqMn.mjs";
7
+ import { e as N, a as M, f as v } from "./ConnectDrawer-BbvIVdYR.mjs";
8
8
  const f = 13, L = (n, t) => n.filter((e) => {
9
9
  const { is_closed: r, is_deleted: s, is_hidden: a, is_manual: i } = e;
10
10
  return r || s || a ? !1 : i || !e.guid ? !0 : t.some((l) => n.some((g) => l.guid === g.member_guid));
@@ -15,11 +15,11 @@ import { DateCalendar as te } from "@mui/x-date-pickers/DateCalendar";
15
15
  import { LocalizationProvider as ne } from "@mui/x-date-pickers/LocalizationProvider";
16
16
  import { AdapterDateFns as ie } from "@mui/x-date-pickers/AdapterDateFnsV3";
17
17
  import { A as oe, T as F, a as P, N as b } from "./Notification-ByMBpJ5u.mjs";
18
- import { u as D, r as T, o as w, c as se, e as ae, m as W, a as ce } from "./hooks-DcS6DyRl.mjs";
18
+ import { u as D, r as T, o as w, c as se, e as ae, m as W, a as ce } from "./hooks-DP5qvbXf.mjs";
19
19
  import { b as le } from "./Localization-2MODESHW.mjs";
20
20
  import { b as re, f as de } from "./NumberFormatting-CtWHhyBX.mjs";
21
21
  import { a as M } from "./Dialog-CWW597AF.mjs";
22
- import { C as me } from "./CurrencyInput-BtrNBP3z.mjs";
22
+ import { C as me } from "./CurrencyInput-DyWvvUZX.mjs";
23
23
  import { u as _e } from "./useScreenSize-B6JyS_Lj.mjs";
24
24
  import { D as J } from "./Drawer-kEE73B87.mjs";
25
25
  import he from "@mui/material/Collapse";
@@ -1,6 +1,6 @@
1
1
  import { makeAutoObservable as c, observable as f, runInAction as h } from "mobx";
2
2
  import { fromUnixTime as o, isSameDay as d } from "date-fns";
3
- import { F as l, A as n } from "./Fetch-ykKOFjXN.mjs";
3
+ import { F as l, A as n } from "./Fetch-5yMqsiXO.mjs";
4
4
  class s {
5
5
  fetchInstance;
6
6
  constructor(t, i, a) {
@@ -2,10 +2,10 @@ import { jsx as o } from "react/jsx-runtime";
2
2
  import _ from "react";
3
3
  import { observer as p } from "mobx-react-lite";
4
4
  import v from "@mui/material/TextField";
5
- import { L as y } from "./ListItemAction-Cwadpg85.mjs";
6
- import { u as h, j as b } from "./hooks-DcS6DyRl.mjs";
5
+ import { L as y } from "./ListItemAction-CUusHw-p.mjs";
6
+ import { u as h, j as b } from "./hooks-DP5qvbXf.mjs";
7
7
  import { a as T, f as S } from "./NumberFormatting-CtWHhyBX.mjs";
8
- import { C as f } from "./CurrencyInput-BtrNBP3z.mjs";
8
+ import { C as f } from "./CurrencyInput-DyWvvUZX.mjs";
9
9
  const F = p(({ goal: e }) => {
10
10
  const { goals: a } = h(), { setAlert: r, setSelectedGoal: l, updateGoal: m } = b(), [t, s] = _.useState(e.interest_rate ?? 0), c = !e.guid, i = t < 0, d = async () => {
11
11
  const n = { ...e, interest_rate: t };
@@ -7,10 +7,10 @@ import R from "@mui/material/Tabs";
7
7
  import l from "@mui/material/Divider";
8
8
  import T from "@mui/material/List";
9
9
  import C from "@mui/material/Stack";
10
- import { R as x, A as S, a as E, M as A } from "./ManageIncome-B91zIeYo.mjs";
11
- import { u as h, h as y, e as _ } from "./hooks-DcS6DyRl.mjs";
10
+ import { R as x, A as S, a as E, M as A } from "./ManageIncome-BPmZE2fJ.mjs";
11
+ import { u as h, h as y, e as _ } from "./hooks-DP5qvbXf.mjs";
12
12
  import { R as v, F as N } from "./RepeatingTransaction-BW4J-jeJ.mjs";
13
- import { A as d } from "./WidgetContainer-CTrp2veH.mjs";
13
+ import { A as d } from "./WidgetContainer-DPzZyq22.mjs";
14
14
  const I = u(() => {
15
15
  const { recurring: r } = h(), { repeatingTransactions: s } = y(), { onEvent: o } = _(), a = (n) => {
16
16
  o(d.RECURRING_TRANSACTIONS_CLICK_EXPENSE, {
@@ -7,7 +7,7 @@ import { isWithinInterval as m } from "date-fns/isWithinInterval";
7
7
  import { startOfMonth as S } from "date-fns/startOfMonth";
8
8
  import { startOfToday as c } from "date-fns/startOfToday";
9
9
  import { subDays as y } from "date-fns/subDays";
10
- import { F as x, A as o } from "./Fetch-ykKOFjXN.mjs";
10
+ import { F as x, A as o } from "./Fetch-5yMqsiXO.mjs";
11
11
  import { b as E, a, c as d, d as u } from "./RepeatingTransaction-BW4J-jeJ.mjs";
12
12
  var A = /* @__PURE__ */ ((r) => (r.Small = "small", r.Medium = "medium", r.Large = "large", r))(A || {});
13
13
  const U = 44;
@@ -1,7 +1,7 @@
1
1
  import { makeAutoObservable as N, runInAction as l } from "mobx";
2
- import { F as D, A as r } from "./Fetch-ykKOFjXN.mjs";
2
+ import { F as D, A as r } from "./Fetch-5yMqsiXO.mjs";
3
3
  import { B as f, A as n, I as i } from "./Notification-ByMBpJ5u.mjs";
4
- import { T as m } from "./TransactionApi-cNhaf-gP.mjs";
4
+ import { T as m } from "./TransactionApi-CVmOYZsA.mjs";
5
5
  class y {
6
6
  fetchInstance;
7
7
  constructor(e, t, o) {
@@ -1,4 +1,4 @@
1
- import { F as T, A as e } from "./Fetch-ykKOFjXN.mjs";
1
+ import { F as T, A as e } from "./Fetch-5yMqsiXO.mjs";
2
2
  class u {
3
3
  fetchInstance;
4
4
  constructor(t, n, a) {
@@ -9,15 +9,15 @@ import { MerchantLogo as pe, Icon as S, Text as T, useTokens as ee, CategoryIcon
9
9
  import B from "@mui/material/ListItemAvatar";
10
10
  import M from "@mui/material/ListItemText";
11
11
  import f from "@mui/material/Stack";
12
- import { T as Pe, L as Ge, O as h, C as Me, b as Ke, i as $e } from "./User-B9T_314z.mjs";
13
- import { G as Be, f as v, u as A, e as L, k as xe, a as Fe, o as He } from "./hooks-DcS6DyRl.mjs";
12
+ import { T as Pe, L as Ge, O as h, C as Me, b as Ke, i as $e } from "./User-CcPqTPbo.mjs";
13
+ import { G as Be, f as v, u as A, e as L, k as xe, a as Fe, o as He } from "./hooks-DP5qvbXf.mjs";
14
14
  import { f as te } from "./NumberFormatting-CtWHhyBX.mjs";
15
15
  import { Receipt as ze, Delete as oe, ChevronRight as Ue, Cancel as ie, Search as Xe, Edit as Ve, Flag as We } from "@mxenabled/mx-icons";
16
16
  import { fromUnixTime as W } from "date-fns/fromUnixTime";
17
17
  import { isSameDay as Ne } from "date-fns/isSameDay";
18
18
  import { h as Ye } from "./DateUtil-BcuH7ErC.mjs";
19
19
  import { L as Ie } from "./Loader-DUaFpDGv.mjs";
20
- import { A as P } from "./WidgetContainer-CTrp2veH.mjs";
20
+ import { A as P } from "./WidgetContainer-DPzZyq22.mjs";
21
21
  import ne from "@mui/material/Paper";
22
22
  import ce from "@mui/material/Button";
23
23
  import je from "@mui/material/FormGroup";
@@ -30,14 +30,14 @@ import F from "@mui/material/ListItem";
30
30
  import { a as V, f as Ee, D as Oe } from "./Dialog-CWW597AF.mjs";
31
31
  import U from "@mui/material/ListItemButton";
32
32
  import X from "@mui/material/ListItemIcon";
33
- import { a as we } from "./CategorySelectorDrawer-BHqOpBNr.mjs";
33
+ import { a as we } from "./CategorySelectorDrawer-y4sp83CD.mjs";
34
34
  import { b as se } from "./Localization-2MODESHW.mjs";
35
35
  import { getUnixTime as Ze } from "date-fns/getUnixTime";
36
36
  import { D as de } from "./Drawer-kEE73B87.mjs";
37
37
  import ye from "@mui/material/InputAdornment";
38
38
  import Je from "@mui/material/Checkbox";
39
39
  import ge from "@mui/material/Grid";
40
- import { C as Qe } from "./CurrencyInput-BtrNBP3z.mjs";
40
+ import { C as Qe } from "./CurrencyInput-DyWvvUZX.mjs";
41
41
  import et from "@mui/material/Switch";
42
42
  var q = /* @__PURE__ */ ((t) => (t[t.Category = 0] = "Category", t[t.Date = 1] = "Date", t[t.Memo = 2] = "Memo", t[t.Tags = 3] = "Tags", t))(q || {}), re = /* @__PURE__ */ ((t) => (t[t.SplitTransaction = 0] = "SplitTransaction", t[t.HideTransaction = 1] = "HideTransaction", t[t.MerchantLogo = 2] = "MerchantLogo", t))(re || {});
43
43
  const tt = [