@mx-cartographer/experiences 9.1.4-alpha.al6 → 9.1.4

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 (110) hide show
  1. package/CHANGELOG.md +2 -1
  2. package/dist/{AccountDetailsDrawer-Dae8eUXt.mjs → AccountDetailsDrawer-Cq4kiiKD.mjs} +10 -10
  3. package/dist/{AccountDetailsDrawer-Dae8eUXt.mjs.map → AccountDetailsDrawer-Cq4kiiKD.mjs.map} +1 -1
  4. package/dist/{AccountDetailsHeader-D_UjMD99.mjs → AccountDetailsHeader-BliEZhz7.mjs} +4 -4
  5. package/dist/{AccountDetailsHeader-D_UjMD99.mjs.map → AccountDetailsHeader-BliEZhz7.mjs.map} +1 -1
  6. package/dist/{Analytics-fWQ36-fb.mjs → Analytics-CkYXKvco.mjs} +2 -2
  7. package/dist/{Analytics-fWQ36-fb.mjs.map → Analytics-CkYXKvco.mjs.map} +1 -1
  8. package/dist/{CategorySelectorDrawer-k8AZYC8I.mjs → CategorySelectorDrawer-NJsFsKP1.mjs} +2 -2
  9. package/dist/{CategorySelectorDrawer-k8AZYC8I.mjs.map → CategorySelectorDrawer-NJsFsKP1.mjs.map} +1 -1
  10. package/dist/{Connect-tID_S_5e.mjs → Connect-BH0Pt6zc.mjs} +2 -2
  11. package/dist/{Connect-tID_S_5e.mjs.map → Connect-BH0Pt6zc.mjs.map} +1 -1
  12. package/dist/{ConnectCard-DcM6tUOX.mjs → ConnectCard-D7uxoH5Y.mjs} +2 -2
  13. package/dist/{ConnectCard-DcM6tUOX.mjs.map → ConnectCard-D7uxoH5Y.mjs.map} +1 -1
  14. package/dist/{ConnectDrawer-BQy4YYuc.mjs → ConnectDrawer-CW4LA3H3.mjs} +3 -3
  15. package/dist/{ConnectDrawer-BQy4YYuc.mjs.map → ConnectDrawer-CW4LA3H3.mjs.map} +1 -1
  16. package/dist/{ConnectionsDrawer-C73ASLMj.mjs → ConnectionsDrawer-CZU9ku-k.mjs} +3 -3
  17. package/dist/{ConnectionsDrawer-C73ASLMj.mjs.map → ConnectionsDrawer-CZU9ku-k.mjs.map} +1 -1
  18. package/dist/{CurrencyInput-CABYmqBh.mjs → CurrencyInput-DaGEQaLW.mjs} +2 -2
  19. package/dist/{CurrencyInput-CABYmqBh.mjs.map → CurrencyInput-DaGEQaLW.mjs.map} +1 -1
  20. package/dist/{EmbeddedCard-BwfkCsUN.mjs → EmbeddedCard-DCOQnTz-.mjs} +3 -3
  21. package/dist/{EmbeddedCard-BwfkCsUN.mjs.map → EmbeddedCard-DCOQnTz-.mjs.map} +1 -1
  22. package/dist/{Error-BFJ3BnfS.mjs → Error-Dtw6yxkf.mjs} +2 -2
  23. package/dist/{Error-BFJ3BnfS.mjs.map → Error-Dtw6yxkf.mjs.map} +1 -1
  24. package/dist/ErrorBoundary-CsdOcnJ9.mjs +24 -0
  25. package/dist/ErrorBoundary-CsdOcnJ9.mjs.map +1 -0
  26. package/dist/{ExportCsvAction-B1257a3M.mjs → ExportCsvAction-C-IisDcv.mjs} +3 -3
  27. package/dist/{ExportCsvAction-B1257a3M.mjs.map → ExportCsvAction-C-IisDcv.mjs.map} +1 -1
  28. package/dist/{GlobalAccountFilter-DEEc3Bc5.mjs → GlobalAccountFilter-BhzR5Vb1.mjs} +2 -2
  29. package/dist/{GlobalAccountFilter-DEEc3Bc5.mjs.map → GlobalAccountFilter-BhzR5Vb1.mjs.map} +1 -1
  30. package/dist/{GlobalCopyApi-DoJLovk7.mjs → GlobalCopyApi-wcnDUzMV.mjs} +56 -54
  31. package/dist/GlobalCopyApi-wcnDUzMV.mjs.map +1 -0
  32. package/dist/{Help-C3rQ0Cyu.mjs → Help-zVZdcmlk.mjs} +3 -3
  33. package/dist/{Help-C3rQ0Cyu.mjs.map → Help-zVZdcmlk.mjs.map} +1 -1
  34. package/dist/{LineChart-BxEIZHht.mjs → LineChart-CUfiH86G.mjs} +2 -2
  35. package/dist/{LineChart-BxEIZHht.mjs.map → LineChart-CUfiH86G.mjs.map} +1 -1
  36. package/dist/{ListItemAction-GDU5z4BN.mjs → ListItemAction-BqUCLj_w.mjs} +2 -2
  37. package/dist/{ListItemAction-GDU5z4BN.mjs.map → ListItemAction-BqUCLj_w.mjs.map} +1 -1
  38. package/dist/{ListItemWrapper-D6b-6m4t.mjs → ListItemWrapper-DRse79Iu.mjs} +2 -2
  39. package/dist/{ListItemWrapper-D6b-6m4t.mjs.map → ListItemWrapper-DRse79Iu.mjs.map} +1 -1
  40. package/dist/{ManageIncome-BJWVPAly.mjs → ManageIncome-B_8i71mE.mjs} +32 -32
  41. package/dist/{ManageIncome-BJWVPAly.mjs.map → ManageIncome-B_8i71mE.mjs.map} +1 -1
  42. package/dist/{MicroWidgetContainer-IUZQlml1.mjs → MicroWidgetContainer-B2NnKBgW.mjs} +2 -2
  43. package/dist/{MicroWidgetContainer-IUZQlml1.mjs.map → MicroWidgetContainer-B2NnKBgW.mjs.map} +1 -1
  44. package/dist/{MiniWidgetContainer-CIswJui8.mjs → MiniWidgetContainer-Bmv_WeUd.mjs} +2 -2
  45. package/dist/{MiniWidgetContainer-CIswJui8.mjs.map → MiniWidgetContainer-Bmv_WeUd.mjs.map} +1 -1
  46. package/dist/{NotificationSettings-DltXMrnb.mjs → NotificationSettings-CW7okUrk.mjs} +33 -33
  47. package/dist/{NotificationSettings-DltXMrnb.mjs.map → NotificationSettings-CW7okUrk.mjs.map} +1 -1
  48. package/dist/{OriginalBalanceAction-KuJSsZCA.mjs → OriginalBalanceAction-YrvxBYAl.mjs} +4 -4
  49. package/dist/{OriginalBalanceAction-KuJSsZCA.mjs.map → OriginalBalanceAction-YrvxBYAl.mjs.map} +1 -1
  50. package/dist/{RecurringSettings-D2Aaqz7d.mjs → RecurringSettings-hs0YUp83.mjs} +3 -3
  51. package/dist/{RecurringSettings-D2Aaqz7d.mjs.map → RecurringSettings-hs0YUp83.mjs.map} +1 -1
  52. package/dist/{SpendingLegend-C_dMdqbe.mjs → SpendingLegend-CxvNOg3c.mjs} +2 -2
  53. package/dist/{SpendingLegend-C_dMdqbe.mjs.map → SpendingLegend-CxvNOg3c.mjs.map} +1 -1
  54. package/dist/{TransactionDetails-CDZNsKv7.mjs → TransactionDetails-DT-MQqOB.mjs} +5 -5
  55. package/dist/{TransactionDetails-CDZNsKv7.mjs.map → TransactionDetails-DT-MQqOB.mjs.map} +1 -1
  56. package/dist/{UserStore-B__9hQOS.mjs → UserStore-_QQpkbw9.mjs} +67 -69
  57. package/dist/UserStore-_QQpkbw9.mjs.map +1 -0
  58. package/dist/{ViewMoreMicroCard-CxGhzbRP.mjs → ViewMoreMicroCard-fnwE0hqd.mjs} +4 -4
  59. package/dist/{ViewMoreMicroCard-CxGhzbRP.mjs.map → ViewMoreMicroCard-fnwE0hqd.mjs.map} +1 -1
  60. package/dist/{WidgetContainer-5O6N88mr.mjs → WidgetContainer-CjdCY4sj.mjs} +3 -3
  61. package/dist/{WidgetContainer-5O6N88mr.mjs.map → WidgetContainer-CjdCY4sj.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 +0 -2
  68. package/dist/common/components/index.d.ts +0 -1
  69. package/dist/common/context/GlobalDataProvider.d.ts +1 -2
  70. package/dist/common/context/hooks.d.ts +0 -3
  71. package/dist/common/context/index.d.ts +1 -1
  72. package/dist/common/index.es.js +219 -275
  73. package/dist/common/index.es.js.map +1 -1
  74. package/dist/core/index.es.js +3 -3
  75. package/dist/core/stores/GlobalStore.d.ts +2 -4
  76. package/dist/core/types/Handlers.d.ts +0 -1
  77. package/dist/core/types/index.d.ts +1 -1
  78. package/dist/dashboard/index.es.js +4 -4
  79. package/dist/debts/index.es.js +8 -8
  80. package/dist/finstrong/index.es.js +12 -12
  81. package/dist/goals/index.es.js +9 -9
  82. package/dist/help/index.es.js +4 -4
  83. package/dist/hooks-97sNJ_lf.mjs +78 -0
  84. package/dist/hooks-97sNJ_lf.mjs.map +1 -0
  85. package/dist/insights/index.es.js +4 -4
  86. package/dist/investments/index.es.js +4 -4
  87. package/dist/merchants/index.es.js +1 -1
  88. package/dist/microinsights/index.es.js +1 -1
  89. package/dist/networth/index.es.js +6 -6
  90. package/dist/notifications/index.es.js +8 -8
  91. package/dist/recurringtransactions/index.es.js +38 -38
  92. package/dist/settings/index.es.js +27 -27
  93. package/dist/spending/index.es.js +33 -33
  94. package/dist/spending/index.es.js.map +1 -1
  95. package/dist/transactions/index.es.js +11 -11
  96. package/dist/trends/index.es.js +12 -12
  97. package/dist/{useAccountDisplayName-DHXXCFYZ.mjs → useAccountDisplayName-BsiXA0qf.mjs} +2 -2
  98. package/dist/{useAccountDisplayName-DHXXCFYZ.mjs.map → useAccountDisplayName-BsiXA0qf.mjs.map} +1 -1
  99. package/dist/{useInsightsEnabled-B_UpjpE6.mjs → useInsightsEnabled-D5Sdm0TJ.mjs} +2 -2
  100. package/dist/{useInsightsEnabled-B_UpjpE6.mjs.map → useInsightsEnabled-D5Sdm0TJ.mjs.map} +1 -1
  101. package/dist/{useWidgetLoadTimer-C0Mr0eRf.mjs → useWidgetLoadTimer-B0tB-yzL.mjs} +2 -2
  102. package/dist/{useWidgetLoadTimer-C0Mr0eRf.mjs.map → useWidgetLoadTimer-B0tB-yzL.mjs.map} +1 -1
  103. package/package.json +1 -1
  104. package/dist/ErrorBoundary-C7BlHx04.mjs +0 -27
  105. package/dist/ErrorBoundary-C7BlHx04.mjs.map +0 -1
  106. package/dist/GlobalCopyApi-DoJLovk7.mjs.map +0 -1
  107. package/dist/UserStore-B__9hQOS.mjs.map +0 -1
  108. package/dist/common/components/ErrorTestButtons.d.ts +0 -7
  109. package/dist/hooks-DWOrMnfZ.mjs +0 -83
  110. package/dist/hooks-DWOrMnfZ.mjs.map +0 -1
@@ -1,12 +1,12 @@
1
1
  import { makeAutoObservable as d, runInAction as c, reaction as ut, autorun as St, observable as Tt } from "mobx";
2
2
  import { d as At, g as wt } from "./AccountUtils-Cbh8r9cP.mjs";
3
- import { i as bt, f as It, b as Et, c as W } from "./BudgetUtil-Bg2AQJpQ.mjs";
3
+ import { i as bt, f as It, b as Ct, c as W } from "./BudgetUtil-Bg2AQJpQ.mjs";
4
4
  import { c as h, d as O } from "./Account-DR7Plrqy.mjs";
5
- import { F as g, B as $, G as V } from "./GlobalCopyApi-DoJLovk7.mjs";
5
+ import { F as g, B as $, G as V } from "./GlobalCopyApi-wcnDUzMV.mjs";
6
6
  import { A as i } from "./ApiEndpoints-DXwIYNUV.mjs";
7
- import Ct from "posthog-js";
7
+ import Et from "posthog-js";
8
8
  import { endOfMonth as T } from "date-fns/endOfMonth";
9
- import { startOfMonth as C } from "date-fns/startOfMonth";
9
+ import { startOfMonth as E } from "date-fns/startOfMonth";
10
10
  import { startOfToday as y } from "date-fns/startOfToday";
11
11
  import { C as w, b as Rt } from "./Category-DEKZGLYe.mjs";
12
12
  import { addDays as Dt } from "date-fns/addDays";
@@ -14,11 +14,11 @@ import { differenceInDays as Lt } from "date-fns/differenceInDays";
14
14
  import { isBefore as H } from "date-fns/isBefore";
15
15
  import { getUnixTime as m } from "date-fns/getUnixTime";
16
16
  import { subMonths as G } from "date-fns/subMonths";
17
- import { c as vt, d as $t, C as Gt, h as Nt, i as xt, s as Bt, j as Mt, T as Ot, D as Pt } from "./TransactionUtils-BphBJBbU.mjs";
18
- import { l as Ut, D as Ft } from "./DebtUtils-i4pI2Uoe.mjs";
17
+ import { c as vt, d as $t, C as Gt, h as Nt, i as Bt, s as xt, j as Mt, T as Ot, D as Pt } from "./TransactionUtils-BphBJBbU.mjs";
18
+ import { l as Ft, D as Ut } from "./DebtUtils-i4pI2Uoe.mjs";
19
19
  import { format as kt } from "date-fns/format";
20
20
  import { fromUnixTime as Ht } from "date-fns/fromUnixTime";
21
- import { f as F, D as k } from "./DateFormats-HudZ3Bjs.mjs";
21
+ import { f as U, D as k } from "./DateFormats-HudZ3Bjs.mjs";
22
22
  import { T as S, c as z } from "./GoalsUtil-C9EnLWvC.mjs";
23
23
  import { A as Wt, m as Vt, a as zt, b as Kt } from "./InvestmentUtil-BItV7uEs.mjs";
24
24
  import { f as Qt, b as qt, a as K, c as Yt, d as jt, e as Xt, s as Jt } from "./NetWorthUtils-Dj7CgAg2.mjs";
@@ -27,7 +27,7 @@ import { isAfter as P } from "date-fns/isAfter";
27
27
  import { isSameDay as Q } from "date-fns/isSameDay";
28
28
  import { isWithinInterval as gt } from "date-fns/isWithinInterval";
29
29
  import { subDays as pt } from "date-fns/subDays";
30
- import { f as U, h as te, b as L, a as f } from "./RecurringTransactionsUtil-CHWmqvW5.mjs";
30
+ import { f as F, h as te, b as L, a as f } from "./RecurringTransactionsUtil-CHWmqvW5.mjs";
31
31
  import { I as u, A as _, B as N } from "./Notification-DTNYSd8P.mjs";
32
32
  import { endOfToday as q } from "date-fns/endOfToday";
33
33
  import { formatISO as ee } from "date-fns/formatISO";
@@ -37,7 +37,7 @@ import { f as ne, b as ie } from "./TrendsUtil-D9z3kIj_.mjs";
37
37
  import { addMonths as re } from "date-fns/addMonths";
38
38
  import { getMonth as v } from "date-fns/getMonth";
39
39
  import { a as oe } from "./Help-CkQTjORd.mjs";
40
- class x {
40
+ class B {
41
41
  fetchInstance;
42
42
  constructor(t, e, s) {
43
43
  this.fetchInstance = new g(t, e, void 0, s);
@@ -245,7 +245,7 @@ class rt {
245
245
  updateUserCommunicationProfile = async (t) => this.fetchInstance.put(i.USER_COMMUNICATION_PROFILE, t).then((e) => e.user_communication_profile);
246
246
  getInsightsNotificationProfiles = async () => this.fetchInstance.get(`${i.NOTIFICATION_PROFILES}/${i.INSIGHTS_NOTIFICATION_PROFILES}`).then((t) => t);
247
247
  }
248
- class B {
248
+ class x {
249
249
  fetchInstance;
250
250
  constructor(t, e, s) {
251
251
  this.fetchInstance = new g(t, e, void 0, s);
@@ -332,7 +332,7 @@ class ot {
332
332
  constructor(t, e, s) {
333
333
  this.fetchInstance = new g(t, e, void 0, s);
334
334
  }
335
- getUserFeatures = async () => this.fetchInstance.get(i.USER_FEATURES).then((t) => t.user_features);
335
+ getUserFeatures = async () => this.fetchInstance.get(i.USER_FEATURES).then((t) => t.user_features).catch((t) => t);
336
336
  updateUser = async (t) => this.fetchInstance.put(i.USER, t).then((e) => e.user);
337
337
  updateUserProfile = async (t) => this.fetchInstance.put(`${i.USER_PROFILES}/${t.guid}`, t).then((e) => e.user_profile);
338
338
  }
@@ -345,7 +345,7 @@ class ct {
345
345
  }
346
346
  class ce {
347
347
  globalStore;
348
- api = new x("/", "");
348
+ api = new B("/", "");
349
349
  accounts = [];
350
350
  accountsLoaded = !1;
351
351
  accountsLoading = !1;
@@ -357,7 +357,7 @@ class ce {
357
357
  membersLoading = !1;
358
358
  uiStore;
359
359
  constructor(t) {
360
- this.globalStore = t, this.uiStore = new le(), this.api = new x(t.endpoint, t.sessionToken, t.onError), d(this);
360
+ this.globalStore = t, this.uiStore = new le(), this.api = new B(t.endpoint, t.sessionToken, t.onError), d(this);
361
361
  }
362
362
  loadAccountData = async () => {
363
363
  await Promise.all([this.loadAccounts(), this.loadMembers(), this.loadInstitutions()]);
@@ -672,7 +672,7 @@ class he {
672
672
  return this.survey ? this.survey.questions : [];
673
673
  }
674
674
  loadSurvey = (t = !1) => {
675
- Ct.getActiveMatchingSurveys((e) => {
675
+ Et.getActiveMatchingSurveys((e) => {
676
676
  c(() => {
677
677
  if (e.length > 0) {
678
678
  const s = e.find((a) => a.id === this.surveyId);
@@ -771,7 +771,7 @@ class _e {
771
771
  api = new X("/", "");
772
772
  globalStore;
773
773
  alert = "";
774
- dateRange = { start: C(y()), end: T(y()) };
774
+ dateRange = { start: E(y()), end: T(y()) };
775
775
  budgets = [];
776
776
  selectedBudget;
777
777
  selectedSubBudget;
@@ -789,7 +789,7 @@ class _e {
789
789
  const e = this.selectedBudget;
790
790
  e && (this.selectedBudget = It(t, e.guid));
791
791
  const s = this.selectedSubBudget;
792
- s && s.parent_guid && (this.selectedSubBudget = Et(
792
+ s && s.parent_guid && (this.selectedSubBudget = Ct(
793
793
  t,
794
794
  s.guid,
795
795
  s.parent_guid
@@ -1073,7 +1073,9 @@ class me {
1073
1073
  const t = await this.api.getCategories();
1074
1074
  this.setCategories(t);
1075
1075
  } catch (t) {
1076
- console.error(`Error occurred while getting categories: ${t}`);
1076
+ console.error(`Error occurred while getting categories: ${t}`), c(() => {
1077
+ this.categoriesLoading = !1;
1078
+ });
1077
1079
  }
1078
1080
  }
1079
1081
  };
@@ -1088,19 +1090,19 @@ class me {
1088
1090
  );
1089
1091
  this.setDateRangeCategoryTotals(a);
1090
1092
  } catch (a) {
1091
- console.error(`Error occurred while getting date range category totals: ${a}`);
1093
+ console.error(`Error occurred while getting date range category totals: ${a}`), this.setDateRangeCategoryTotals([]);
1092
1094
  }
1093
1095
  }
1094
1096
  };
1095
1097
  loadMonthlyCategoryTotals = async (t = this.globalStore.globalUiStore.selectedAccounts, e, s) => {
1096
1098
  if (this.monthlyTotalsLoading) return;
1097
1099
  this.monthlyTotalsLoading = !0;
1098
- const a = m(C(e ?? G(/* @__PURE__ */ new Date(), 11))), o = m(T(s ?? /* @__PURE__ */ new Date()));
1100
+ const a = m(E(e ?? G(/* @__PURE__ */ new Date(), 11))), o = m(T(s ?? /* @__PURE__ */ new Date()));
1099
1101
  try {
1100
1102
  const r = await this.api.getMonthlyCategoryTotals(a, o, t);
1101
1103
  this.setMonthlyCategoryTotals(r);
1102
1104
  } catch (r) {
1103
- console.error(`Error occurred while getting monthly category totals: ${r}`);
1105
+ console.error(`Error occurred while getting monthly category totals: ${r}`), this.setMonthlyCategoryTotals([]);
1104
1106
  }
1105
1107
  };
1106
1108
  reloadCategoryTotals = async (t, e, s) => {
@@ -1172,7 +1174,7 @@ class Ae {
1172
1174
  }
1173
1175
  get debts() {
1174
1176
  const { visibleDebtAccounts: t } = this.globalStore.accountStore, { selectedAccountGuids: e } = this.globalStore.globalUiStore, { debtGoals: s } = this.globalStore.goalStore, a = e.length ? t.filter((o) => e.includes(o.guid)) : t;
1175
- return Ut(a, s);
1177
+ return Ft(a, s);
1176
1178
  }
1177
1179
  get totalMonthlyPayments() {
1178
1180
  return this.debts.map((e) => Number(e.monthly_payment)).filter((e) => !isNaN(e)).reduce((e, s) => e + s, 0);
@@ -1181,7 +1183,7 @@ class Ae {
1181
1183
  let we = class {
1182
1184
  isLoading = !1;
1183
1185
  selectedDebtChartData = {};
1184
- selectedDebtPriority = Ft.LOWEST_BALANCE;
1186
+ selectedDebtPriority = Ut.LOWEST_BALANCE;
1185
1187
  constructor() {
1186
1188
  d(this);
1187
1189
  }
@@ -1197,7 +1199,7 @@ let we = class {
1197
1199
  setSelectedDebtPriority = (t) => this.selectedDebtPriority = t;
1198
1200
  };
1199
1201
  const be = (n) => n.sort((t, e) => t.monthly_health_score_average.year !== e.monthly_health_score_average.year ? t.monthly_health_score_average.year - e.monthly_health_score_average.year : t.monthly_health_score_average.month - e.monthly_health_score_average.month).map((t) => ({
1200
- x: F(
1202
+ x: U(
1201
1203
  new Date(0, t.monthly_health_score_average.month - 1, 1),
1202
1204
  k.MONTH_SHORT
1203
1205
  ),
@@ -1205,7 +1207,7 @@ const be = (n) => n.sort((t, e) => t.monthly_health_score_average.year !== e.mon
1205
1207
  })), Ie = (n) => n.map(({ transaction: e }) => ({
1206
1208
  ...e
1207
1209
  })).sort((e, s) => s.date - e.date);
1208
- class Ee {
1210
+ class Ce {
1209
1211
  api = new Z("/", "");
1210
1212
  augmentedChartData = [];
1211
1213
  averageHealthScores = [];
@@ -1463,7 +1465,6 @@ class Ns {
1463
1465
  appConfig = lt;
1464
1466
  endpoint = "/";
1465
1467
  sessionToken = "";
1466
- onCaptureException;
1467
1468
  onError;
1468
1469
  onStoreUpdate;
1469
1470
  // Data Stores
@@ -1491,20 +1492,17 @@ class Ns {
1491
1492
  userStore;
1492
1493
  // UI Stores
1493
1494
  globalUiStore;
1494
- constructor(t = lt, e = "/", s, a, o) {
1495
- this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.onCaptureException = o, this.onError = s, this.onStoreUpdate = a, this.accountStore = new ce(this), this.appDataStore = new de(this), this.analyticsStore = new he(this), this.beatStore = new pe(this), this.budgetsStore = new _e(this), this.cashflowStore = new fe(this), this.categoryStore = new me(this), this.connectStore = new Te(this), this.copyStore = new Re(this), this.debtsStore = new Ae(this), this.finstrongStore = new Ee(this), this.goalStore = new De(this), this.helpStore = new $e(this), this.holdingStore = new Ge(this), this.merchantStore = new Ne(this), this.netWorthStore = new xe(this), this.notificationStore = new Be(this), this.recurringTransactionsStore = new Me(this), this.settingsStore = new Ue(this), this.transactionStore = new Fe(this), this.trendsStore = new He(this), this.userStore = new We(this), this.globalUiStore = new Ce(this), d(this), St(() => {
1496
- const { transactions: r } = this.transactionStore;
1495
+ constructor(t = lt, e = "/", s, a) {
1496
+ this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.onError = s, this.onStoreUpdate = a, this.accountStore = new ce(this), this.appDataStore = new de(this), this.analyticsStore = new he(this), this.beatStore = new pe(this), this.budgetsStore = new _e(this), this.cashflowStore = new fe(this), this.categoryStore = new me(this), this.connectStore = new Te(this), this.copyStore = new Re(this), this.debtsStore = new Ae(this), this.finstrongStore = new Ce(this), this.goalStore = new De(this), this.helpStore = new $e(this), this.holdingStore = new Ge(this), this.merchantStore = new Ne(this), this.netWorthStore = new Be(this), this.notificationStore = new xe(this), this.recurringTransactionsStore = new Me(this), this.settingsStore = new Fe(this), this.transactionStore = new Ue(this), this.trendsStore = new He(this), this.userStore = new We(this), this.globalUiStore = new Ee(this), d(this), St(() => {
1497
+ const { transactions: o } = this.transactionStore;
1497
1498
  this.emitUpdate({
1498
- transactions: r
1499
+ transactions: o
1499
1500
  });
1500
1501
  });
1501
1502
  }
1502
1503
  get isInitialized() {
1503
1504
  return this.globalUiStore.isInitialized;
1504
1505
  }
1505
- captureException = (t, e) => {
1506
- this.onCaptureException?.(t, e);
1507
- };
1508
1506
  // emits change triggered in the autorun
1509
1507
  emitUpdate = (t) => {
1510
1508
  this.onStoreUpdate?.(t);
@@ -1532,12 +1530,12 @@ class Ns {
1532
1530
  (!e || !p) && await this.loadConfigData(), e && this.appDataStore.setAppData(e), p && this.userStore.setUserFeatures(p), t && (await this.accountStore.loadMembers(), o && this.accountStore.setInstitutions(o), this.accountStore.setAccounts(t)), s && this.transactionStore.setAssociatedBeats(s), a && this.categoryStore.setCategories(a), l && this.transactionStore.setTransactions(l), r && this.transactionStore.setTransactionRules(r), b && this.budgetsStore.setMerchantBudgets(b);
1533
1531
  };
1534
1532
  }
1535
- class Ce {
1533
+ class Ee {
1536
1534
  globalStore;
1537
1535
  accountFilterMap = /* @__PURE__ */ new Map();
1538
1536
  displayedDate = /* @__PURE__ */ new Date();
1539
1537
  displayedDateRange = {
1540
- start: C(this.displayedDate),
1538
+ start: E(this.displayedDate),
1541
1539
  end: T(this.displayedDate)
1542
1540
  };
1543
1541
  constructor(t) {
@@ -1993,9 +1991,9 @@ class Ne {
1993
1991
  c(() => this.merchant = e);
1994
1992
  };
1995
1993
  }
1996
- class xe {
1994
+ class Be {
1997
1995
  globalStore;
1998
- accountsApi = new x("/", "");
1996
+ accountsApi = new B("/", "");
1999
1997
  monthlyAccountBalances = [];
2000
1998
  monthlyAccountBalancesLoaded = !1;
2001
1999
  hoveredIndex = -1;
@@ -2003,7 +2001,7 @@ class xe {
2003
2001
  timeframe = 6;
2004
2002
  // default timeframe is 6 months
2005
2003
  constructor(t) {
2006
- this.globalStore = t, this.accountsApi = new x(
2004
+ this.globalStore = t, this.accountsApi = new B(
2007
2005
  t.endpoint,
2008
2006
  t.sessionToken,
2009
2007
  t.onError
@@ -2070,7 +2068,7 @@ class xe {
2070
2068
  setSelectedIndex = (t) => this.selectedIndex = t;
2071
2069
  setTimeframe = (t) => this.timeframe = t;
2072
2070
  }
2073
- class Be {
2071
+ class xe {
2074
2072
  globalStore;
2075
2073
  api = new nt("/", "");
2076
2074
  isLoading = !0;
@@ -2120,7 +2118,7 @@ class Me {
2120
2118
  repeatingTransactions = [];
2121
2119
  isDataLoaded = !1;
2122
2120
  selectedDay;
2123
- dateRange = { start: C(y()), end: T(y()) };
2121
+ dateRange = { start: E(y()), end: T(y()) };
2124
2122
  selectedRepeatingTransactionGuid = null;
2125
2123
  selectedRecurrence = null;
2126
2124
  alert = { message: "", severity: void 0 };
@@ -2141,7 +2139,7 @@ class Me {
2141
2139
  return this.globalStore.copyStore.copy.recurring;
2142
2140
  }
2143
2141
  get detailedRepeatingTransactions() {
2144
- return U(
2142
+ return F(
2145
2143
  this.globalStore.accountStore.visibleAccounts,
2146
2144
  this.repeatingTransactions,
2147
2145
  this.globalStore.transactionStore.transactions
@@ -2360,7 +2358,7 @@ class Me {
2360
2358
  }), c(() => {
2361
2359
  this.repeatingTransactions = [
2362
2360
  ...this.repeatingTransactions,
2363
- ...U(
2361
+ ...F(
2364
2362
  this.globalStore.accountStore.visibleAccounts,
2365
2363
  [s],
2366
2364
  this.globalStore.transactionStore.transactions
@@ -2399,7 +2397,7 @@ class Me {
2399
2397
  c(() => {
2400
2398
  this.repeatingTransactions = [
2401
2399
  ...this.repeatingTransactions.slice(0, s),
2402
- ...U(
2400
+ ...F(
2403
2401
  this.globalStore.accountStore.visibleAccounts,
2404
2402
  [e],
2405
2403
  this.globalStore.transactionStore.transactions
@@ -2487,13 +2485,13 @@ const ht = "PARENT-ENTITY", Oe = (n, t) => ({
2487
2485
  } = a;
2488
2486
  for (const I of s.filter((R) => R.entity_guid === ht)) {
2489
2487
  const R = Oe(I.notification_type, e), mt = s.filter(
2490
- (E) => E.entity_guid !== ht && E.notification_type === I.notification_type && n.some((M) => M.guid === E.entity_guid)
2488
+ (C) => C.entity_guid !== ht && C.notification_type === I.notification_type && n.some((M) => M.guid === C.entity_guid)
2491
2489
  ), D = [];
2492
2490
  l && !_t && I.email_channel && o.email && D.push(e.delivery_method_email_label), p && !ft && I.sms_channel && o.phone && D.push(e.delivery_method_sms_label), b && !yt && I.push_channel && D.push(e.delivery_method_push_label), r.push({
2493
2491
  ...I,
2494
- children: mt.map((E) => ({
2495
- ...E,
2496
- account: n.find((M) => M.guid === E.entity_guid),
2492
+ children: mt.map((C) => ({
2493
+ ...C,
2494
+ account: n.find((M) => M.guid === C.entity_guid),
2497
2495
  label: R
2498
2496
  })),
2499
2497
  deliveryMethodsLabel: D.join(", "),
@@ -2502,17 +2500,17 @@ const ht = "PARENT-ENTITY", Oe = (n, t) => ({
2502
2500
  }
2503
2501
  return r;
2504
2502
  };
2505
- class Ue {
2503
+ class Fe {
2506
2504
  globalStore;
2507
2505
  api = new rt("/", "");
2508
- transactionApi = new B("/", "");
2506
+ transactionApi = new x("/", "");
2509
2507
  alert = { message: "", severity: void 0 };
2510
2508
  devices = [];
2511
2509
  notificationProfiles = [];
2512
2510
  selectedRule = void 0;
2513
2511
  transactionRules = [];
2514
2512
  constructor(t) {
2515
- this.globalStore = t, this.api = new rt(t.endpoint, t.sessionToken, t.onError), this.transactionApi = new B(
2513
+ this.globalStore = t, this.api = new rt(t.endpoint, t.sessionToken, t.onError), this.transactionApi = new x(
2516
2514
  t.endpoint,
2517
2515
  t.sessionToken,
2518
2516
  t.onError
@@ -2685,10 +2683,10 @@ class Ue {
2685
2683
  }
2686
2684
  };
2687
2685
  }
2688
- class Fe {
2686
+ class Ue {
2689
2687
  globalStore;
2690
2688
  uiStore;
2691
- api = new B("/", "");
2689
+ api = new x("/", "");
2692
2690
  beatApi = new $("/", "");
2693
2691
  associatedBeats = [];
2694
2692
  associatedBeatsLoaded = !1;
@@ -2713,7 +2711,7 @@ class Fe {
2713
2711
  sortColumn = Gt.DATE;
2714
2712
  sortDirection = Nt.DESC;
2715
2713
  constructor(t) {
2716
- this.globalStore = t, this.uiStore = new ke(), this.api = new B(
2714
+ this.globalStore = t, this.uiStore = new ke(), this.api = new x(
2717
2715
  t.endpoint,
2718
2716
  t.sessionToken,
2719
2717
  t.onError
@@ -2721,7 +2719,7 @@ class Fe {
2721
2719
  }
2722
2720
  loadTransactionData = async () => {
2723
2721
  this.globalStore.accountStore.isAccountDataLoaded || await this.globalStore.accountStore.loadAccountData(), this.globalStore.categoryStore.categoriesLoaded || await this.globalStore.categoryStore.loadCategories(), await Promise.all([
2724
- this.loadAssociatedBeats(C(/* @__PURE__ */ new Date())),
2722
+ this.loadAssociatedBeats(E(/* @__PURE__ */ new Date())),
2725
2723
  this.loadTags(),
2726
2724
  this.loadTaggings(),
2727
2725
  this.loadTransactionRules(),
@@ -2733,7 +2731,7 @@ class Fe {
2733
2731
  return this.associatedBeatsLoaded && this.tagsLoaded && this.taggingsLoaded && this.transactionRulesLoaded && this.transactionsLoaded;
2734
2732
  }
2735
2733
  get detailedTransactions() {
2736
- return this.isTransactionDataLoaded ? xt(
2734
+ return this.isTransactionDataLoaded ? Bt(
2737
2735
  this.transactions,
2738
2736
  this.globalStore.accountStore.visibleAccounts,
2739
2737
  this.globalStore.categoryStore.categories,
@@ -2741,7 +2739,7 @@ class Fe {
2741
2739
  ) : [];
2742
2740
  }
2743
2741
  get sortedTransactions() {
2744
- return Bt(
2742
+ return xt(
2745
2743
  this.filter,
2746
2744
  this.uiStore.expandedSplits,
2747
2745
  this.sortColumn,
@@ -2979,7 +2977,7 @@ class Fe {
2979
2977
  };
2980
2978
  }
2981
2979
  class ke {
2982
- beginDate = C(/* @__PURE__ */ new Date());
2980
+ beginDate = E(/* @__PURE__ */ new Date());
2983
2981
  endDate = T(/* @__PURE__ */ new Date());
2984
2982
  expandedSplits = [];
2985
2983
  height = 550;
@@ -3046,7 +3044,7 @@ class He {
3046
3044
  return ae(this.selectedDateRange.end, this.selectedDateRange.start) + 1;
3047
3045
  }
3048
3046
  get selectedDateRangeMonthRange() {
3049
- const t = F(this.selectedDateRange.start, k.MONTH_LONG), e = F(this.selectedDateRange.end, k.MONTH_LONG);
3047
+ const t = U(this.selectedDateRange.start, k.MONTH_LONG), e = U(this.selectedDateRange.end, k.MONTH_LONG);
3050
3048
  return `${t} - ${e}`;
3051
3049
  }
3052
3050
  get visibleCategories() {
@@ -3084,7 +3082,7 @@ class We {
3084
3082
  const t = await this.api.getUserFeatures();
3085
3083
  this.setUserFeatures(t);
3086
3084
  } catch (t) {
3087
- console.error("Error occurred while loading user features:", t), this.globalStore.captureException(t, { store: "UserStore" }), this.setUserFeatures([]);
3085
+ console.error(`Error occurred while loading user features: ${t}`);
3088
3086
  }
3089
3087
  };
3090
3088
  updateUser = async (t) => {
@@ -3092,7 +3090,7 @@ class We {
3092
3090
  const e = await this.api.updateUser(t);
3093
3091
  this.globalStore.appDataStore.setUser(e);
3094
3092
  } catch (e) {
3095
- console.error("Error updating User:", e), this.globalStore.captureException(e, { store: "UserStore" });
3093
+ console.error(`Error updating User: ${e}`);
3096
3094
  }
3097
3095
  };
3098
3096
  updateUserProfile = async (t) => {
@@ -3100,12 +3098,12 @@ class We {
3100
3098
  const e = await this.api.updateUserProfile(t);
3101
3099
  this.globalStore.appDataStore.setUserProfile(e);
3102
3100
  } catch (e) {
3103
- console.error("Error occurred while updating user profile:", e), this.globalStore.captureException(e, { store: "UserStore" });
3101
+ console.error(`Error occurred while updating user profile: ${e}`);
3104
3102
  }
3105
3103
  };
3106
3104
  }
3107
3105
  export {
3108
- x as A,
3106
+ B as A,
3109
3107
  j as B,
3110
3108
  fe as C,
3111
3109
  Ae as D,
@@ -3113,10 +3111,10 @@ export {
3113
3111
  Re as G,
3114
3112
  et as H,
3115
3113
  at as M,
3116
- xe as N,
3114
+ Be as N,
3117
3115
  Me as R,
3118
3116
  rt as S,
3119
- B as T,
3117
+ x as T,
3120
3118
  ot as U,
3121
3119
  ct as W,
3122
3120
  ce as a,
@@ -3129,9 +3127,9 @@ export {
3129
3127
  J as h,
3130
3128
  me as i,
3131
3129
  Te as j,
3132
- Ee as k,
3130
+ Ce as k,
3133
3131
  Ns as l,
3134
- Ce as m,
3132
+ Ee as m,
3135
3133
  tt as n,
3136
3134
  De as o,
3137
3135
  $e as p,
@@ -3139,11 +3137,11 @@ export {
3139
3137
  Ge as r,
3140
3138
  Ne as s,
3141
3139
  nt as t,
3142
- Be as u,
3140
+ xe as u,
3143
3141
  it as v,
3144
- Ue as w,
3145
- Fe as x,
3142
+ Fe as w,
3143
+ Ue as x,
3146
3144
  He as y,
3147
3145
  We as z
3148
3146
  };
3149
- //# sourceMappingURL=UserStore-B__9hQOS.mjs.map
3147
+ //# sourceMappingURL=UserStore-_QQpkbw9.mjs.map