@mx-cartographer/experiences 7.0.17-alpha-notification-settings-bug-ram1 → 7.0.17-alpha.mm.0

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 (99) hide show
  1. package/CHANGELOG.md +0 -8
  2. package/dist/{Account-BW3-oYEs.mjs → Account-DY2axAET.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-BzD6CDIm.mjs → AccountDetailsContent-Jsg4ZDC1.mjs} +8 -8
  4. package/dist/{AccountDetailsHeader-Eb3WvBGm.mjs → AccountDetailsHeader-EU_2u2Iq.mjs} +5 -5
  5. package/dist/{AccountFields-CIz-r3gP.mjs → AccountFields-CSUS7pGn.mjs} +2 -2
  6. package/dist/{AccountListItem-B-ZjJ4Gp.mjs → AccountListItem-CMYZQg8M.mjs} +3 -3
  7. package/dist/{AccountStore-BaMynkQT.mjs → AccountStore-CIX2RAmG.mjs} +26 -26
  8. package/dist/{Accounts-CA-nqAjT.mjs → Accounts-xi9RGRIU.mjs} +1 -1
  9. package/dist/{BeatApi-DLu87ijw.mjs → BeatApi-D0WcLW3O.mjs} +3 -3
  10. package/dist/{BeatStore-By4aGoRM.mjs → BeatStore-y6WVs07e.mjs} +17 -17
  11. package/dist/{BudgetUtil-CeSLAcsl.mjs → BudgetUtil-DmWvHV7C.mjs} +1 -1
  12. package/dist/{CategorySelectorDrawer-BJ9jlCyt.mjs → CategorySelectorDrawer-BHqOpBNr.mjs} +1 -1
  13. package/dist/{CategoryStore-BOyzQjQp.mjs → CategoryStore-BfYppD3g.mjs} +4 -4
  14. package/dist/{ConnectDrawer-phFH6OHt.mjs → ConnectDrawer-CU5dEdrU.mjs} +1 -1
  15. package/dist/{ConnectionsDrawer-ihxkAi1P.mjs → ConnectionsDrawer-BUJuQrgF.mjs} +2 -2
  16. package/dist/{CurrencyInput-bEx2Mbd0.mjs → CurrencyInput-BtrNBP3z.mjs} +1 -1
  17. package/dist/{DebtsStore-Dp-CraCD.mjs → DebtsStore-BL_0pQEd.mjs} +1 -1
  18. package/dist/{ExportCsvAction-CbMfQ2Wa.mjs → ExportCsvAction-CUGnEaHw.mjs} +3 -3
  19. package/dist/{Fetch-CkFKy79O.mjs → Fetch-CJ9cgjgV.mjs} +9 -8
  20. package/dist/{FinstrongStore-mkALvztw.mjs → FinstrongStore-rC2F4Tq3.mjs} +4 -4
  21. package/dist/{GoalStore-eSOkI6uE.mjs → GoalStore-CFx47exL.mjs} +6 -6
  22. package/dist/{Help-KAAMEubC.mjs → Help-CCuoAZT3.mjs} +1 -1
  23. package/dist/{LineChart-BWWmmJxV.mjs → LineChart-D5uLCys4.mjs} +1 -1
  24. package/dist/{ListItemAction-DNZZ5fSa.mjs → ListItemAction-Cwadpg85.mjs} +1 -1
  25. package/dist/{ManageIncome-DcKHpJ9V.mjs → ManageIncome-B91zIeYo.mjs} +4 -4
  26. package/dist/MerchantStore-h96aTml7.mjs +37 -0
  27. package/dist/{MicroWidgetContainer-Dxz8uBN9.mjs → MicroWidgetContainer-DwTAjSdX.mjs} +1 -1
  28. package/dist/{MiniWidgetContainer-CTyjmE1h.mjs → MiniWidgetContainer-CxggrnHk.mjs} +1 -1
  29. package/dist/{NetWorthStore-B6xF9eGH.mjs → NetWorthStore-CYYTpP9O.mjs} +2 -2
  30. package/dist/{NotificationSettings-Dhf_u5o-.mjs → NotificationSettings-BEFyqBTj.mjs} +47 -47
  31. package/dist/{NotificationStore-DHtSGySy.mjs → NotificationStore-DpV9hXSE.mjs} +8 -4
  32. package/dist/{OriginalBalanceAction-DepsKiJz.mjs → OriginalBalanceAction-DDMRgIBU.mjs} +3 -3
  33. package/dist/{RecurringSettings-C9r4s1Cz.mjs → RecurringSettings-CGGFhlhh.mjs} +3 -3
  34. package/dist/{RecurringTransactionsStore-D62XJtdL.mjs → RecurringTransactionsStore-CXhnipfd.mjs} +20 -16
  35. package/dist/{SettingsStore-B4gi6oOw.mjs → SettingsStore-CLLqNa_S.mjs} +33 -29
  36. package/dist/{TransactionApi-DbbcjI2L.mjs → TransactionApi-C0HMGDBV.mjs} +29 -29
  37. package/dist/{TransactionDetails-bja6hKJk.mjs → TransactionDetails-Bc0iW26I.mjs} +5 -5
  38. package/dist/{TransactionStore-0tLtBEIC.mjs → TransactionStore-Va_jug-g.mjs} +29 -25
  39. package/dist/{TrendsStore-WrHxzdbQ.mjs → TrendsStore-DmuQennN.mjs} +1 -1
  40. package/dist/{User-Dq9Qj764.mjs → User-B9T_314z.mjs} +1 -1
  41. package/dist/{ViewMoreMicroCard-BPEzFZRG.mjs → ViewMoreMicroCard-61VqFx4x.mjs} +5 -2
  42. package/dist/{WidgetContainer-CdBs9WOZ.mjs → WidgetContainer-CTrp2veH.mjs} +2 -2
  43. package/dist/accounts/api/AccountApi.d.ts +2 -2
  44. package/dist/accounts/index.es.js +12 -12
  45. package/dist/analytics/index.es.js +2 -2
  46. package/dist/budgets/api/BudgetsApi.d.ts +2 -2
  47. package/dist/budgets/index.es.js +209 -209
  48. package/dist/cashflow/api/CashflowApi.d.ts +3 -2
  49. package/dist/cashflow/index.es.js +10 -10
  50. package/dist/categories/index.es.js +2 -2
  51. package/dist/common/api/AnalyticsApi.d.ts +2 -2
  52. package/dist/common/api/AppDataApi.d.ts +2 -2
  53. package/dist/common/api/BeatApi.d.ts +2 -2
  54. package/dist/common/api/CategoryApi.d.ts +2 -3
  55. package/dist/common/api/GlobalCopyApi.d.ts +2 -1
  56. package/dist/common/api/LocalizedCopyApi.d.ts +2 -1
  57. package/dist/common/api/NotificationApi.d.ts +2 -2
  58. package/dist/common/api/ScheduledPaymentsApi.d.ts +3 -2
  59. package/dist/common/api/UserApi.d.ts +2 -2
  60. package/dist/common/context/GlobalDataProvider.d.ts +3 -2
  61. package/dist/common/context/hooks.d.ts +4 -1
  62. package/dist/common/context/index.d.ts +1 -1
  63. package/dist/common/index.es.js +321 -315
  64. package/dist/common/stores/GlobalStore.d.ts +2 -1
  65. package/dist/common/types/Handlers.d.ts +2 -0
  66. package/dist/common/types/index.d.ts +1 -0
  67. package/dist/common/utils/Fetch.d.ts +3 -1
  68. package/dist/dashboard/index.es.js +2 -2
  69. package/dist/debts/index.es.js +9 -9
  70. package/dist/{exportTransactionsToCSV-BDlt8u0n.mjs → exportTransactionsToCSV-ct1RkLbj.mjs} +1 -1
  71. package/dist/finstrong/api/FinstrongApi.d.ts +2 -1
  72. package/dist/finstrong/index.es.js +7 -7
  73. package/dist/goals/api/GoalApi.d.ts +3 -2
  74. package/dist/goals/index.es.js +11 -11
  75. package/dist/help/api/HelpApi.d.ts +2 -2
  76. package/dist/help/index.es.js +3 -3
  77. package/dist/hooks-DcS6DyRl.mjs +74 -0
  78. package/dist/insights/index.es.js +1 -1
  79. package/dist/investments/api/HoldingApi.d.ts +3 -2
  80. package/dist/investments/index.es.js +3 -3
  81. package/dist/merchants/api/MerchantApi.d.ts +2 -1
  82. package/dist/merchants/index.es.js +2 -2
  83. package/dist/microinsights/context/InsightsMicroWidgetDataProvider.d.ts +2 -1
  84. package/dist/microinsights/context/hooks.d.ts +1 -1
  85. package/dist/microinsights/index.es.js +1 -1
  86. package/dist/networth/index.es.js +7 -7
  87. package/dist/notifications/index.es.js +5 -5
  88. package/dist/recurringtransactions/api/RepeatingTransactionsApi.d.ts +2 -2
  89. package/dist/recurringtransactions/index.es.js +10 -10
  90. package/dist/settings/api/SettingsApi.d.ts +3 -2
  91. package/dist/settings/index.es.js +7 -7
  92. package/dist/spending/index.es.js +4 -4
  93. package/dist/transactions/api/TransactionApi.d.ts +3 -2
  94. package/dist/transactions/index.es.js +14 -14
  95. package/dist/trends/index.es.js +10 -10
  96. package/dist/{useCombineEvents-DaDBSR_1.mjs → useCombineEvents-Dbjzfwvo.mjs} +29 -29
  97. package/package.json +1 -1
  98. package/dist/MerchantStore-DVH-QOf0.mjs +0 -37
  99. package/dist/hooks-DkUqN6JE.mjs +0 -71
@@ -1,8 +1,8 @@
1
- import { F as T, A as e } from "./Fetch-CkFKy79O.mjs";
1
+ import { F as T, A as e } from "./Fetch-CJ9cgjgV.mjs";
2
2
  class u {
3
3
  fetchInstance;
4
- constructor(t, n) {
5
- this.fetchInstance = new T(t, n);
4
+ constructor(t, n, a) {
5
+ this.fetchInstance = new T(t, n, void 0, a);
6
6
  }
7
7
  addTag = async (t) => this.fetchInstance.post(e.TAGS, t).then((n) => n.tag);
8
8
  addTagging = async (t) => this.fetchInstance.post(e.TAGGINGS, t).then((n) => n.tagging);
@@ -11,45 +11,45 @@ class u {
11
11
  getTaggings = async () => this.fetchInstance.get(e.TAGGINGS).then((t) => t.map((n) => n.tagging));
12
12
  getTags = async () => this.fetchInstance.get(e.TAGS).then((t) => t.map((n) => n.tag));
13
13
  getTransactionRules = async () => this.fetchInstance.get(e.TRANSACTION_RULES).then((t) => t.transaction_rules);
14
- getTransactionsByDateRange = async (t, n) => this.fetchInstance.get(`${e.TRANSACTIONS}/by_date/${t}/${n}`).then((c) => c.map((a) => a.transaction));
14
+ getTransactionsByDateRange = async (t, n) => this.fetchInstance.get(`${e.TRANSACTIONS}/by_date/${t}/${n}`).then((a) => a.map((s) => s.transaction));
15
15
  // DEPRECATED
16
- getTransactionsByAccountsAndDateRange = async (t, n, c) => {
16
+ getTransactionsByAccountsAndDateRange = async (t, n, a) => {
17
17
  console.warn("DEPRECATED: getTransactionsByAccountsAndDateRange will be removed");
18
- const a = t.reduce(
19
- (o, s, r) => `${o}account_guids[]=${s}${r !== t.length - 1 ? "&" : ""}`,
18
+ const s = t.reduce(
19
+ (o, c, r) => `${o}account_guids[]=${c}${r !== t.length - 1 ? "&" : ""}`,
20
20
  ""
21
21
  );
22
- return this.fetchInstance.get(`${e.TRANSACTIONS}/by_date/${n}/${c}?${a}`).then((o) => o.map((s) => s.transaction));
22
+ return this.fetchInstance.get(`${e.TRANSACTIONS}/by_date/${n}/${a}?${s}`).then((o) => o.map((c) => c.transaction));
23
23
  };
24
24
  // DEPRECATED
25
- getTransactionsByGuids = async (t) => (console.warn("DEPRECATED: getTransactionsByGuids will be removed"), this.fetchInstance.post(`${e.TRANSACTIONS}/by_guids`, { guids: t.join("+") }).then((n) => n.map((c) => c.transaction)));
25
+ getTransactionsByGuids = async (t) => (console.warn("DEPRECATED: getTransactionsByGuids will be removed"), this.fetchInstance.post(`${e.TRANSACTIONS}/by_guids`, { guids: t.join("+") }).then((n) => n.map((a) => a.transaction)));
26
26
  // DEPRECATED
27
- getTransactionsByCategoryAndDate = async (t, n, c) => (console.warn("DEPRECATED: getTransactionsByCategoryAndDate will be removed"), this.fetchInstance.get(
28
- `${e.TRANSACTIONS}/by_category_guid/${t}/by_date/${n}/${c}`
29
- ).then((a) => a.map((o) => o.transaction)));
27
+ getTransactionsByCategoryAndDate = async (t, n, a) => (console.warn("DEPRECATED: getTransactionsByCategoryAndDate will be removed"), this.fetchInstance.get(
28
+ `${e.TRANSACTIONS}/by_category_guid/${t}/by_date/${n}/${a}`
29
+ ).then((s) => s.map((o) => o.transaction)));
30
30
  // DEPRECATED
31
- getTransactionsByCategoryDateAndAccounts = async (t, n, c, a) => {
31
+ getTransactionsByCategoryDateAndAccounts = async (t, n, a, s) => {
32
32
  console.warn("DEPRECATED: getTransactionsByCategoryDateAndAccounts will be removed");
33
- const o = a.reduce(
34
- (s, r, i) => `${s}account_guids[]=${r}${i !== a.length - 1 ? "&" : ""}`,
33
+ const o = s.reduce(
34
+ (c, r, i) => `${c}account_guids[]=${r}${i !== s.length - 1 ? "&" : ""}`,
35
35
  ""
36
36
  );
37
37
  return this.fetchInstance.get(
38
- `${e.TRANSACTIONS}/by_category_guid/${t}/by_date/${n}/${c}?${o}`
39
- ).then((s) => s.map((r) => r.transaction));
38
+ `${e.TRANSACTIONS}/by_category_guid/${t}/by_date/${n}/${a}?${o}`
39
+ ).then((c) => c.map((r) => r.transaction));
40
40
  };
41
41
  // DEPRECATED
42
- getTransactionsByCategoriesDateAndAccounts = async (t, n, c, a) => {
42
+ getTransactionsByCategoriesDateAndAccounts = async (t, n, a, s) => {
43
43
  console.warn("DEPRECATED: getTransactionsByCategoriesDateAndAccounts will be removed");
44
- const o = a.reduce(
45
- (s, r, i) => `${s}account_guids[]=${r}${i !== a.length - 1 ? "&" : ""}`,
44
+ const o = s.reduce(
45
+ (c, r, i) => `${c}account_guids[]=${r}${i !== s.length - 1 ? "&" : ""}`,
46
46
  ""
47
47
  );
48
48
  return this.fetchInstance.get(
49
49
  `${e.TRANSACTIONS}/by_category_guids/${t.join(
50
50
  "+"
51
- )}/by_date/${n}/${c}?${o}`
52
- ).then((s) => s.map((r) => r.transaction));
51
+ )}/by_date/${n}/${a}?${o}`
52
+ ).then((c) => c.map((r) => r.transaction));
53
53
  };
54
54
  /**
55
55
  * DEPRECATED
@@ -60,17 +60,17 @@ class u {
60
60
  * @param endDate the end date
61
61
  * @param accountGuids an optional list of account guids
62
62
  */
63
- getTransactionsByTopLevelCategoryAndDate = async (t, n, c, a = []) => {
63
+ getTransactionsByTopLevelCategoryAndDate = async (t, n, a, s = []) => {
64
64
  console.warn("DEPRECATED: getTransactionsByTopLevelCategoryAndDate will be removed");
65
- let o = `${e.TRANSACTIONS}/by_top_level_category_guid/${t}/by_date/${n}/${c}`;
66
- if (a.length > 0) {
67
- const s = a.reduce(
68
- (r, i, g) => `${r}account_guids[]=${i}${g !== a.length - 1 ? "&" : ""}`,
65
+ let o = `${e.TRANSACTIONS}/by_top_level_category_guid/${t}/by_date/${n}/${a}`;
66
+ if (s.length > 0) {
67
+ const c = s.reduce(
68
+ (r, i, g) => `${r}account_guids[]=${i}${g !== s.length - 1 ? "&" : ""}`,
69
69
  ""
70
70
  );
71
- o += `?${s}`;
71
+ o += `?${c}`;
72
72
  }
73
- return this.fetchInstance.get(o).then((s) => s.map((r) => r.transaction));
73
+ return this.fetchInstance.get(o).then((c) => c.map((r) => r.transaction));
74
74
  };
75
75
  removeTag = async (t) => this.fetchInstance.delete(`${e.TAGS}/${t}`).then((n) => n);
76
76
  removeTagging = async (t) => this.fetchInstance.delete(`${e.TAGGINGS}/${t}`).then((n) => n);
@@ -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-Dq9Qj764.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-DkUqN6JE.mjs";
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";
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-CdBs9WOZ.mjs";
20
+ import { A as P } from "./WidgetContainer-CTrp2veH.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-BJ9jlCyt.mjs";
33
+ import { a as we } from "./CategorySelectorDrawer-BHqOpBNr.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-bEx2Mbd0.mjs";
40
+ import { C as Qe } from "./CurrencyInput-BtrNBP3z.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 = [
@@ -11,29 +11,29 @@ import { fromUnixTime as u } from "date-fns/fromUnixTime";
11
11
  import { getUnixTime as h } from "date-fns/getUnixTime";
12
12
  import { isBefore as B } from "date-fns/isBefore";
13
13
  import { startOfMonth as R } from "date-fns/startOfMonth";
14
- import { startOfToday as b } from "date-fns/startOfToday";
14
+ import { startOfToday as G } from "date-fns/startOfToday";
15
15
  import { subDays as Y } from "date-fns/subDays";
16
- import { O as n, a as G, T as F } from "./User-Dq9Qj764.mjs";
17
- import { T as p } from "./TransactionApi-DbbcjI2L.mjs";
16
+ import { O as n, a as b, T as F } from "./User-B9T_314z.mjs";
17
+ import { T as p } from "./TransactionApi-C0HMGDBV.mjs";
18
18
  import { b as W } from "./Category-CevNQ03n.mjs";
19
- import { f as z } from "./exportTransactionsToCSV-BDlt8u0n.mjs";
19
+ import { f as z } from "./exportTransactionsToCSV-ct1RkLbj.mjs";
20
20
  import { format as k } from "date-fns/format";
21
21
  import { f as g, D as O, O as $ } from "./Dialog-CWW597AF.mjs";
22
22
  import { endOfMonth as X } from "date-fns/endOfMonth";
23
- import { B as f } from "./BeatApi-DLu87ijw.mjs";
23
+ import { B as f } from "./BeatApi-D0WcLW3O.mjs";
24
24
  const j = ({
25
- checked: S = !1,
25
+ checked: N = !1,
26
26
  label: t,
27
27
  sx: a = {},
28
28
  tooltip: e = "",
29
29
  value: A
30
30
  }) => {
31
- const _ = K(), i = _.palette.mode === "light" ? _.palette.grey[400] : _.palette.grey[700], c = S ? _.palette.action.active : i;
31
+ const _ = K(), i = _.palette.mode === "light" ? _.palette.grey[400] : _.palette.grey[700], c = N ? _.palette.action.active : i;
32
32
  return /* @__PURE__ */ C(
33
33
  H,
34
34
  {
35
35
  bgcolor: "background.paper",
36
- border: `${S ? 3 : 1}px solid`,
36
+ border: `${N ? 3 : 1}px solid`,
37
37
  borderColor: c,
38
38
  borderRadius: 2,
39
39
  mt: -2,
@@ -322,14 +322,14 @@ const j = ({
322
322
  category: o.TRANSACTIONS_WIDGET,
323
323
  label: r.DELETE_TRANSACTION
324
324
  }
325
- }, Z = async (S, t) => !t || !m[S] ? null : t.sendAnalyticEvent(m[S]), L = {
325
+ }, Z = async (N, t) => !t || !m[N] ? null : t.sendAnalyticEvent(m[N]), L = {
326
326
  FLAG: "flag",
327
327
  DATE: "date",
328
328
  PAYEE: "payee",
329
329
  CATEGORY: "category",
330
330
  ACCOUNT: "account",
331
331
  AMOUNT: "amount"
332
- }, q = (S, t, a, e = []) => {
332
+ }, q = (N, t, a, e = []) => {
333
333
  const A = t.reduce((c, s) => ({ ...c, [s.guid]: s }), {}), _ = a.reduce((c, s) => ({ ...c, [s.guid]: s }), {}), i = e.reduce((c, s) => {
334
334
  const { transaction_guid: l, tag_guid: I } = s;
335
335
  if (!c[l])
@@ -343,7 +343,7 @@ const j = ({
343
343
  [l]: E
344
344
  };
345
345
  }, {});
346
- return S.map((c) => {
346
+ return N.map((c) => {
347
347
  const s = A[c.account_guid], l = c.category_guid ? _[c.category_guid] : null, I = i[c.guid] ?? [];
348
348
  return {
349
349
  ...c,
@@ -352,42 +352,42 @@ const j = ({
352
352
  accountIsHidden: s?.is_hidden,
353
353
  category: l?.name || "Uncategorized",
354
354
  isIncome: c.top_level_category_guid === W.INCOME,
355
- isPending: c.feed_status === G.PENDING,
355
+ isPending: c.feed_status === b.PENDING,
356
356
  number: s?.account_number || "",
357
357
  payee: c.description,
358
358
  tags: I
359
359
  };
360
360
  });
361
- }, J = "uncategorized", Q = (S, t, a, e, A, _) => {
362
- const i = tt(S, A, _), c = at(i, a, e);
361
+ }, J = "uncategorized", Q = (N, t, a, e, A, _) => {
362
+ const i = tt(N, A, _), c = at(i, a, e);
363
363
  return t.forEach((s) => {
364
364
  const l = c.findIndex((E) => E.guid === s), I = _.filter((E) => E.parent_guid === s);
365
365
  c.splice(l + 1, 0, ...I);
366
366
  }), c;
367
- }, tt = (S, t, a) => {
367
+ }, tt = (N, t, a) => {
368
368
  const {
369
369
  accounts: e = [],
370
- dateRange: A = { start: R(b()), end: D() },
370
+ dateRange: A = { start: R(G()), end: D() },
371
371
  custom: _ = () => !0,
372
372
  searchTerm: i = "",
373
373
  showSplits: c = !1
374
- } = S;
374
+ } = N;
375
375
  return a.filter((s) => c ? !s.has_been_split : !s.parent_guid).filter((s) => !!e.find((l) => l === s.account_guid)).filter((s) => s.date >= h(A.start) && s.date <= h(A.end)).filter(_).filter((s) => {
376
376
  if (i === J && s.has_been_split)
377
377
  return !1;
378
378
  if (/^spl/i.test(i) && (s.has_been_split || s.parent_guid))
379
379
  return !0;
380
380
  const I = s.tags.some(
381
- (x) => N(i, t.find((M) => M.guid === x)?.name)
381
+ (x) => S(i, t.find((M) => M.guid === x)?.name)
382
382
  ), E = u(s.date);
383
- return N(i, s.payee) || N(i, s.feed_description) || N(i, s.category) || N(i, g(E, O.MONTH)) || N(i, g(E, O.DAY)) || N(i, g(E, O.FULL_MONTH_DAY)) || N(i, g(E, O.MONTH_DAY_YEAR)) || N(i, k(E, $)) || N(i, s.account) || N(i, `${s.amount}`) || N(i, s.memo) || I;
383
+ return S(i, s.payee) || S(i, s.feed_description) || S(i, s.category) || S(i, g(E, O.MONTH)) || S(i, g(E, O.DAY)) || S(i, g(E, O.FULL_MONTH_DAY)) || S(i, g(E, O.MONTH_DAY_YEAR)) || S(i, k(E, $)) || S(i, s.account) || S(i, `${s.amount}`) || S(i, s.memo) || I;
384
384
  });
385
- }, at = (S, t, a) => [...S].sort((e, A) => {
385
+ }, at = (N, t, a) => [...N].sort((e, A) => {
386
386
  const _ = t, i = (e[_] || "") > (A[_] || "");
387
387
  let c = i ? -1 : 1, s = i ? 1 : -1;
388
388
  return (t === L.DATE || t === L.AMOUNT) && (c = i ? 1 : -1, s = i ? -1 : 1), a === w.ASC ? c : s;
389
- }), N = (S, t) => {
390
- const a = S.toLowerCase().split(" "), e = t?.toString().toLowerCase() ?? "";
389
+ }), S = (N, t) => {
390
+ const a = N.toLowerCase().split(" "), e = t?.toString().toLowerCase() ?? "";
391
391
  return a.every((A) => e.indexOf(A) > -1);
392
392
  }, et = {
393
393
  account_guid: "",
@@ -397,7 +397,7 @@ const j = ({
397
397
  description: "",
398
398
  duplicate: !1,
399
399
  feed_description: "",
400
- feed_status: G.POSTED,
400
+ feed_status: b.POSTED,
401
401
  feed_transaction_date: 0,
402
402
  has_been_split: !1,
403
403
  has_been_viewed: !1,
@@ -465,7 +465,7 @@ class mt {
465
465
  api = new p("/", "");
466
466
  beatApi = new f("/", "");
467
467
  associatedBeats = [];
468
- cachedStartDate = Y(b(), 90);
468
+ cachedStartDate = Y(G(), 90);
469
469
  filter = {};
470
470
  isLoading = !0;
471
471
  rawTransactions = [];
@@ -476,7 +476,11 @@ class mt {
476
476
  transactionRules = [];
477
477
  onAnalyticEvent = Z;
478
478
  constructor(t) {
479
- this.globalStore = t, this.uiStore = new it(), this.api = new p(t.endpoint, t.sessionToken), this.beatApi = new f(t.endpoint, t.sessionToken), y(this);
479
+ this.globalStore = t, this.uiStore = new it(), this.api = new p(
480
+ t.endpoint,
481
+ t.sessionToken,
482
+ t.onError
483
+ ), this.beatApi = new f(t.endpoint, t.sessionToken, t.onError), y(this);
480
484
  }
481
485
  loadTransactionData = async ({
482
486
  associatedBeats: t,
@@ -1,5 +1,5 @@
1
1
  import M, { useState as J, useEffect as K, useRef as vt } from "react";
2
- import { l as St, u as _t, k as Q } from "./hooks-DkUqN6JE.mjs";
2
+ import { l as St, u as _t, k as Q } from "./hooks-DcS6DyRl.mjs";
3
3
  import { jsxs as f, jsx as s } from "react/jsx-runtime";
4
4
  import L from "@mui/material/Box";
5
5
  import T from "@mui/material/Stack";
@@ -22,7 +22,7 @@ import { isWithinInterval as Q } from "date-fns/isWithinInterval";
22
22
  import nn from "@mui/material/styles/useTheme";
23
23
  import k from "@mui/material/ListItem";
24
24
  import an from "@mui/material/ListItemButton";
25
- import { e as tn } from "./hooks-DkUqN6JE.mjs";
25
+ import { e as tn } from "./hooks-DcS6DyRl.mjs";
26
26
  const on = ({ copy: n, date: a, onNextClick: o, onPreviousClick: r }) => {
27
27
  const c = v(), l = en(c);
28
28
  return /* @__PURE__ */ h("div", { className: `mx-cmn-calendar-header ${l}`, children: [
@@ -18,8 +18,8 @@ import { css as qe } from "@mxenabled/cssinjs";
18
18
  import { b as Je } from "./Localization-2MODESHW.mjs";
19
19
  import et from "@mui/material/CircularProgress";
20
20
  import { makeAutoObservable as ce, runInAction as Te } from "mobx";
21
- import { G as pe, a as tt, u as it, b as ot } from "./useCombineEvents-DaDBSR_1.mjs";
22
- import { B as _e } from "./BeatApi-DLu87ijw.mjs";
21
+ import { G as pe, a as tt, u as it, b as ot } from "./useCombineEvents-Dbjzfwvo.mjs";
22
+ import { B as _e } from "./BeatApi-D0WcLW3O.mjs";
23
23
  import rt from "@mui/material/Card";
24
24
  import lt from "@mui/material/CardActions";
25
25
  import nt from "@mui/material/CardContent";
@@ -35,6 +35,9 @@ class ct {
35
35
  constructor() {
36
36
  ce(this);
37
37
  }
38
+ // NOTE: Not sure if this is special case, but other stores have this deprecation todo
39
+ // DEPRECATED: Initialize api in constructor and use loadCopy instead
40
+ // TODO: Remove this function
38
41
  initialize = async (o, t) => {
39
42
  this.copyApi = new pe(o, t), await this.loadCopy();
40
43
  };
@@ -12,7 +12,7 @@ import Y from "@mui/material/Stack";
12
12
  import { Icon as s, Text as z, DateRangePicker as q, H1 as se, H3 as le } from "@mxenabled/mxui";
13
13
  import { u as Ce } from "./useDimensions-27p2evRx.mjs";
14
14
  import { L as de } from "./Loader-DUaFpDGv.mjs";
15
- import { e as Te, a as Ie, u as Ee, W as Re } from "./hooks-DkUqN6JE.mjs";
15
+ import { e as Te, a as Ie, u as Ee, W as Re } from "./hooks-DcS6DyRl.mjs";
16
16
  import { u as ae } from "./useScreenSize-B6JyS_Lj.mjs";
17
17
  import { addMonths as J } from "date-fns/addMonths";
18
18
  import { addDays as ge } from "date-fns/addDays";
@@ -35,7 +35,7 @@ import Oe from "@mui/material/ToggleButtonGroup";
35
35
  import fe from "@mui/material/styles/useTheme";
36
36
  import { f as K, D as G, a as be } from "./Dialog-CWW597AF.mjs";
37
37
  import { D as we } from "./Drawer-kEE73B87.mjs";
38
- import { i as Ke, j as Ge } from "./ConnectDrawer-phFH6OHt.mjs";
38
+ import { i as Ke, j as Ge } from "./ConnectDrawer-CU5dEdrU.mjs";
39
39
  const Me = {
40
40
  ACCOUNTS_CLICK_ACCOUNT: "accounts_widget_click_account",
41
41
  ACCOUNTS_CLICK_CONNECT: "accounts_widget_click_connect_accounts",
@@ -1,8 +1,8 @@
1
1
  import { default as Fetch } from '../../common/utils/Fetch';
2
- import { Account } from '../../common';
2
+ import { Account, GlobalErrorHandler } from '../../common';
3
3
  export declare class AccountApi {
4
4
  fetchInstance: Fetch;
5
- constructor(endpoint: string, token: string);
5
+ constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
6
6
  createAccount: (account: Account) => Promise<any>;
7
7
  deleteAccount: (accountGuid: string) => Promise<any>;
8
8
  getAccounts: () => Promise<any>;
@@ -7,24 +7,24 @@ import E from "@mui/material/List";
7
7
  import T from "@mui/material/ListSubheader";
8
8
  import x from "@mui/system/Stack";
9
9
  import { Text as v } from "@mxenabled/mxui";
10
- import { A as G } from "../AccountDetailsContent-BzD6CDIm.mjs";
11
- import { u as O1 } from "../AccountDetailsContent-BzD6CDIm.mjs";
12
- import { u as K, A as z } from "../AccountDetailsHeader-Eb3WvBGm.mjs";
13
- import { A as W } from "../AccountListItem-B-ZjJ4Gp.mjs";
14
- import { u as g, a as y, c as O, e as N, m as P } from "../hooks-DkUqN6JE.mjs";
10
+ import { A as G } from "../AccountDetailsContent-Jsg4ZDC1.mjs";
11
+ import { u as O1 } from "../AccountDetailsContent-Jsg4ZDC1.mjs";
12
+ import { u as K, A as z } from "../AccountDetailsHeader-EU_2u2Iq.mjs";
13
+ import { A as W } from "../AccountListItem-CMYZQg8M.mjs";
14
+ import { u as g, a as y, c as O, e as N, m as P } from "../hooks-DcS6DyRl.mjs";
15
15
  import { f as I } from "../NumberFormatting-CtWHhyBX.mjs";
16
16
  import { D as Y } from "../Drawer-kEE73B87.mjs";
17
- import { A, W as q } from "../WidgetContainer-CdBs9WOZ.mjs";
18
- import { C as J } from "../ConnectionsDrawer-ihxkAi1P.mjs";
17
+ import { A, W as q } from "../WidgetContainer-CTrp2veH.mjs";
18
+ import { C as J } from "../ConnectionsDrawer-BUJuQrgF.mjs";
19
19
  import { u as Q } from "../useScreenSize-B6JyS_Lj.mjs";
20
20
  import { L as R } from "../Loader-DUaFpDGv.mjs";
21
- import { j as D } from "../ConnectDrawer-phFH6OHt.mjs";
22
- import { F as I1, M as N1 } from "../ConnectDrawer-phFH6OHt.mjs";
21
+ import { j as D } from "../ConnectDrawer-CU5dEdrU.mjs";
22
+ import { F as I1, M as N1 } from "../ConnectDrawer-CU5dEdrU.mjs";
23
23
  import X from "@mui/material/ListItem";
24
- import { M as U } from "../MiniWidgetContainer-CTyjmE1h.mjs";
24
+ import { M as U } from "../MiniWidgetContainer-CxggrnHk.mjs";
25
25
  import e1 from "@mui/material/Stack";
26
- import { g as U1, a as j1 } from "../AccountFields-CIz-r3gP.mjs";
27
- import { A as G1, a as K1 } from "../AccountStore-BaMynkQT.mjs";
26
+ import { g as U1, a as j1 } from "../AccountFields-CSUS7pGn.mjs";
27
+ import { A as G1, a as K1 } from "../AccountStore-CIX2RAmG.mjs";
28
28
  const t1 = () => {
29
29
  const [c, L] = d.useState(""), { accounts: o } = g(), { selectedAccounts: l } = y(), { setSelectedAccount: u, setSelectedMember: r } = K(), { members: s } = O(), { onEvent: p } = N(), a = [...new Set(l.map((t) => t.account_type))], H = l.find((t) => c === t.guid), h = d.useMemo(
30
30
  () => l.filter((t) => t.is_hidden),
@@ -8,8 +8,8 @@ import a from "@mui/material/Stack";
8
8
  import _ from "@mui/material/styles/useTheme";
9
9
  import { Text as u, TextField as L } from "@mxenabled/mxui";
10
10
  import { L as W } from "../Loader-DUaFpDGv.mjs";
11
- import { M as j } from "../MiniWidgetContainer-CTyjmE1h.mjs";
12
- import { i as f, u as b, e as q, a as E } from "../hooks-DkUqN6JE.mjs";
11
+ import { M as j } from "../MiniWidgetContainer-CxggrnHk.mjs";
12
+ import { i as f, u as b, e as q, a as E } from "../hooks-DcS6DyRl.mjs";
13
13
  import Q from "@mui/material/ToggleButton";
14
14
  import G from "@mui/material/ToggleButtonGroup";
15
15
  const O = () => {
@@ -1,7 +1,7 @@
1
- import { Budget, Category, Fetch } from '../../common';
1
+ import { Fetch, GlobalErrorHandler, Budget, Category } from '../../common';
2
2
  export declare class BudgetsApi {
3
3
  fetchInstance: Fetch;
4
- constructor(endpoint: string, token: string);
4
+ constructor(endpoint: string, token: string, onError?: GlobalErrorHandler);
5
5
  addBudget: (category: Category, amount: number, parentGuid?: string | null) => Promise<any>;
6
6
  deleteBudget: (guid: string) => Promise<any>;
7
7
  getBudgets: () => Promise<any>;