@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.
- package/CHANGELOG.md +2 -1
- package/dist/{AccountDetailsDrawer-Dae8eUXt.mjs → AccountDetailsDrawer-Cq4kiiKD.mjs} +10 -10
- package/dist/{AccountDetailsDrawer-Dae8eUXt.mjs.map → AccountDetailsDrawer-Cq4kiiKD.mjs.map} +1 -1
- package/dist/{AccountDetailsHeader-D_UjMD99.mjs → AccountDetailsHeader-BliEZhz7.mjs} +4 -4
- package/dist/{AccountDetailsHeader-D_UjMD99.mjs.map → AccountDetailsHeader-BliEZhz7.mjs.map} +1 -1
- package/dist/{Analytics-fWQ36-fb.mjs → Analytics-CkYXKvco.mjs} +2 -2
- package/dist/{Analytics-fWQ36-fb.mjs.map → Analytics-CkYXKvco.mjs.map} +1 -1
- package/dist/{CategorySelectorDrawer-k8AZYC8I.mjs → CategorySelectorDrawer-NJsFsKP1.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-k8AZYC8I.mjs.map → CategorySelectorDrawer-NJsFsKP1.mjs.map} +1 -1
- package/dist/{Connect-tID_S_5e.mjs → Connect-BH0Pt6zc.mjs} +2 -2
- package/dist/{Connect-tID_S_5e.mjs.map → Connect-BH0Pt6zc.mjs.map} +1 -1
- package/dist/{ConnectCard-DcM6tUOX.mjs → ConnectCard-D7uxoH5Y.mjs} +2 -2
- package/dist/{ConnectCard-DcM6tUOX.mjs.map → ConnectCard-D7uxoH5Y.mjs.map} +1 -1
- package/dist/{ConnectDrawer-BQy4YYuc.mjs → ConnectDrawer-CW4LA3H3.mjs} +3 -3
- package/dist/{ConnectDrawer-BQy4YYuc.mjs.map → ConnectDrawer-CW4LA3H3.mjs.map} +1 -1
- package/dist/{ConnectionsDrawer-C73ASLMj.mjs → ConnectionsDrawer-CZU9ku-k.mjs} +3 -3
- package/dist/{ConnectionsDrawer-C73ASLMj.mjs.map → ConnectionsDrawer-CZU9ku-k.mjs.map} +1 -1
- package/dist/{CurrencyInput-CABYmqBh.mjs → CurrencyInput-DaGEQaLW.mjs} +2 -2
- package/dist/{CurrencyInput-CABYmqBh.mjs.map → CurrencyInput-DaGEQaLW.mjs.map} +1 -1
- package/dist/{EmbeddedCard-BwfkCsUN.mjs → EmbeddedCard-DCOQnTz-.mjs} +3 -3
- package/dist/{EmbeddedCard-BwfkCsUN.mjs.map → EmbeddedCard-DCOQnTz-.mjs.map} +1 -1
- package/dist/{Error-BFJ3BnfS.mjs → Error-Dtw6yxkf.mjs} +2 -2
- package/dist/{Error-BFJ3BnfS.mjs.map → Error-Dtw6yxkf.mjs.map} +1 -1
- package/dist/ErrorBoundary-CsdOcnJ9.mjs +24 -0
- package/dist/ErrorBoundary-CsdOcnJ9.mjs.map +1 -0
- package/dist/{ExportCsvAction-B1257a3M.mjs → ExportCsvAction-C-IisDcv.mjs} +3 -3
- package/dist/{ExportCsvAction-B1257a3M.mjs.map → ExportCsvAction-C-IisDcv.mjs.map} +1 -1
- package/dist/{GlobalAccountFilter-DEEc3Bc5.mjs → GlobalAccountFilter-BhzR5Vb1.mjs} +2 -2
- package/dist/{GlobalAccountFilter-DEEc3Bc5.mjs.map → GlobalAccountFilter-BhzR5Vb1.mjs.map} +1 -1
- package/dist/{GlobalCopyApi-DoJLovk7.mjs → GlobalCopyApi-wcnDUzMV.mjs} +56 -54
- package/dist/GlobalCopyApi-wcnDUzMV.mjs.map +1 -0
- package/dist/{Help-C3rQ0Cyu.mjs → Help-zVZdcmlk.mjs} +3 -3
- package/dist/{Help-C3rQ0Cyu.mjs.map → Help-zVZdcmlk.mjs.map} +1 -1
- package/dist/{LineChart-BxEIZHht.mjs → LineChart-CUfiH86G.mjs} +2 -2
- package/dist/{LineChart-BxEIZHht.mjs.map → LineChart-CUfiH86G.mjs.map} +1 -1
- package/dist/{ListItemAction-GDU5z4BN.mjs → ListItemAction-BqUCLj_w.mjs} +2 -2
- package/dist/{ListItemAction-GDU5z4BN.mjs.map → ListItemAction-BqUCLj_w.mjs.map} +1 -1
- package/dist/{ListItemWrapper-D6b-6m4t.mjs → ListItemWrapper-DRse79Iu.mjs} +2 -2
- package/dist/{ListItemWrapper-D6b-6m4t.mjs.map → ListItemWrapper-DRse79Iu.mjs.map} +1 -1
- package/dist/{ManageIncome-BJWVPAly.mjs → ManageIncome-B_8i71mE.mjs} +32 -32
- package/dist/{ManageIncome-BJWVPAly.mjs.map → ManageIncome-B_8i71mE.mjs.map} +1 -1
- package/dist/{MicroWidgetContainer-IUZQlml1.mjs → MicroWidgetContainer-B2NnKBgW.mjs} +2 -2
- package/dist/{MicroWidgetContainer-IUZQlml1.mjs.map → MicroWidgetContainer-B2NnKBgW.mjs.map} +1 -1
- package/dist/{MiniWidgetContainer-CIswJui8.mjs → MiniWidgetContainer-Bmv_WeUd.mjs} +2 -2
- package/dist/{MiniWidgetContainer-CIswJui8.mjs.map → MiniWidgetContainer-Bmv_WeUd.mjs.map} +1 -1
- package/dist/{NotificationSettings-DltXMrnb.mjs → NotificationSettings-CW7okUrk.mjs} +33 -33
- package/dist/{NotificationSettings-DltXMrnb.mjs.map → NotificationSettings-CW7okUrk.mjs.map} +1 -1
- package/dist/{OriginalBalanceAction-KuJSsZCA.mjs → OriginalBalanceAction-YrvxBYAl.mjs} +4 -4
- package/dist/{OriginalBalanceAction-KuJSsZCA.mjs.map → OriginalBalanceAction-YrvxBYAl.mjs.map} +1 -1
- package/dist/{RecurringSettings-D2Aaqz7d.mjs → RecurringSettings-hs0YUp83.mjs} +3 -3
- package/dist/{RecurringSettings-D2Aaqz7d.mjs.map → RecurringSettings-hs0YUp83.mjs.map} +1 -1
- package/dist/{SpendingLegend-C_dMdqbe.mjs → SpendingLegend-CxvNOg3c.mjs} +2 -2
- package/dist/{SpendingLegend-C_dMdqbe.mjs.map → SpendingLegend-CxvNOg3c.mjs.map} +1 -1
- package/dist/{TransactionDetails-CDZNsKv7.mjs → TransactionDetails-DT-MQqOB.mjs} +5 -5
- package/dist/{TransactionDetails-CDZNsKv7.mjs.map → TransactionDetails-DT-MQqOB.mjs.map} +1 -1
- package/dist/{UserStore-B__9hQOS.mjs → UserStore-_QQpkbw9.mjs} +67 -69
- package/dist/UserStore-_QQpkbw9.mjs.map +1 -0
- package/dist/{ViewMoreMicroCard-CxGhzbRP.mjs → ViewMoreMicroCard-fnwE0hqd.mjs} +4 -4
- package/dist/{ViewMoreMicroCard-CxGhzbRP.mjs.map → ViewMoreMicroCard-fnwE0hqd.mjs.map} +1 -1
- package/dist/{WidgetContainer-5O6N88mr.mjs → WidgetContainer-CjdCY4sj.mjs} +3 -3
- package/dist/{WidgetContainer-5O6N88mr.mjs.map → WidgetContainer-CjdCY4sj.mjs.map} +1 -1
- package/dist/accounts/index.es.js +11 -11
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +10 -10
- package/dist/cashflow/index.es.js +70 -70
- package/dist/categories/index.es.js +1 -1
- package/dist/common/components/ErrorBoundary.d.ts +0 -2
- package/dist/common/components/index.d.ts +0 -1
- package/dist/common/context/GlobalDataProvider.d.ts +1 -2
- package/dist/common/context/hooks.d.ts +0 -3
- package/dist/common/context/index.d.ts +1 -1
- package/dist/common/index.es.js +219 -275
- package/dist/common/index.es.js.map +1 -1
- package/dist/core/index.es.js +3 -3
- package/dist/core/stores/GlobalStore.d.ts +2 -4
- package/dist/core/types/Handlers.d.ts +0 -1
- package/dist/core/types/index.d.ts +1 -1
- package/dist/dashboard/index.es.js +4 -4
- package/dist/debts/index.es.js +8 -8
- package/dist/finstrong/index.es.js +12 -12
- package/dist/goals/index.es.js +9 -9
- package/dist/help/index.es.js +4 -4
- package/dist/hooks-97sNJ_lf.mjs +78 -0
- package/dist/hooks-97sNJ_lf.mjs.map +1 -0
- package/dist/insights/index.es.js +4 -4
- package/dist/investments/index.es.js +4 -4
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +6 -6
- package/dist/notifications/index.es.js +8 -8
- package/dist/recurringtransactions/index.es.js +38 -38
- package/dist/settings/index.es.js +27 -27
- package/dist/spending/index.es.js +33 -33
- package/dist/spending/index.es.js.map +1 -1
- package/dist/transactions/index.es.js +11 -11
- package/dist/trends/index.es.js +12 -12
- package/dist/{useAccountDisplayName-DHXXCFYZ.mjs → useAccountDisplayName-BsiXA0qf.mjs} +2 -2
- package/dist/{useAccountDisplayName-DHXXCFYZ.mjs.map → useAccountDisplayName-BsiXA0qf.mjs.map} +1 -1
- package/dist/{useInsightsEnabled-B_UpjpE6.mjs → useInsightsEnabled-D5Sdm0TJ.mjs} +2 -2
- package/dist/{useInsightsEnabled-B_UpjpE6.mjs.map → useInsightsEnabled-D5Sdm0TJ.mjs.map} +1 -1
- package/dist/{useWidgetLoadTimer-C0Mr0eRf.mjs → useWidgetLoadTimer-B0tB-yzL.mjs} +2 -2
- package/dist/{useWidgetLoadTimer-C0Mr0eRf.mjs.map → useWidgetLoadTimer-B0tB-yzL.mjs.map} +1 -1
- package/package.json +1 -1
- package/dist/ErrorBoundary-C7BlHx04.mjs +0 -27
- package/dist/ErrorBoundary-C7BlHx04.mjs.map +0 -1
- package/dist/GlobalCopyApi-DoJLovk7.mjs.map +0 -1
- package/dist/UserStore-B__9hQOS.mjs.map +0 -1
- package/dist/common/components/ErrorTestButtons.d.ts +0 -7
- package/dist/hooks-DWOrMnfZ.mjs +0 -83
- 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
|
|
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-
|
|
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
|
|
7
|
+
import Et from "posthog-js";
|
|
8
8
|
import { endOfMonth as T } from "date-fns/endOfMonth";
|
|
9
|
-
import { startOfMonth as
|
|
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
|
|
18
|
-
import { l as
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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:
|
|
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 =
|
|
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(
|
|
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
|
|
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 =
|
|
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:
|
|
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
|
|
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
|
|
1495
|
-
this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.
|
|
1496
|
-
const { transactions:
|
|
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:
|
|
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
|
|
1533
|
+
class Ee {
|
|
1536
1534
|
globalStore;
|
|
1537
1535
|
accountFilterMap = /* @__PURE__ */ new Map();
|
|
1538
1536
|
displayedDate = /* @__PURE__ */ new Date();
|
|
1539
1537
|
displayedDateRange = {
|
|
1540
|
-
start:
|
|
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
|
|
1994
|
+
class Be {
|
|
1997
1995
|
globalStore;
|
|
1998
|
-
accountsApi = new
|
|
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
|
|
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
|
|
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:
|
|
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
|
|
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
|
-
...
|
|
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
|
-
...
|
|
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
|
-
(
|
|
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((
|
|
2495
|
-
...
|
|
2496
|
-
account: n.find((M) => M.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
|
|
2503
|
+
class Fe {
|
|
2506
2504
|
globalStore;
|
|
2507
2505
|
api = new rt("/", "");
|
|
2508
|
-
transactionApi = new
|
|
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
|
|
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
|
|
2686
|
+
class Ue {
|
|
2689
2687
|
globalStore;
|
|
2690
2688
|
uiStore;
|
|
2691
|
-
api = new
|
|
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
|
|
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(
|
|
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 ?
|
|
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
|
|
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 =
|
|
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 =
|
|
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(
|
|
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(
|
|
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(
|
|
3101
|
+
console.error(`Error occurred while updating user profile: ${e}`);
|
|
3104
3102
|
}
|
|
3105
3103
|
};
|
|
3106
3104
|
}
|
|
3107
3105
|
export {
|
|
3108
|
-
|
|
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
|
-
|
|
3114
|
+
Be as N,
|
|
3117
3115
|
Me as R,
|
|
3118
3116
|
rt as S,
|
|
3119
|
-
|
|
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
|
-
|
|
3130
|
+
Ce as k,
|
|
3133
3131
|
Ns as l,
|
|
3134
|
-
|
|
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
|
-
|
|
3140
|
+
xe as u,
|
|
3143
3141
|
it as v,
|
|
3144
|
-
|
|
3145
|
-
|
|
3142
|
+
Fe as w,
|
|
3143
|
+
Ue as x,
|
|
3146
3144
|
He as y,
|
|
3147
3145
|
We as z
|
|
3148
3146
|
};
|
|
3149
|
-
//# sourceMappingURL=UserStore-
|
|
3147
|
+
//# sourceMappingURL=UserStore-_QQpkbw9.mjs.map
|