@mx-cartographer/experiences 7.0.11-alpha.al0 → 7.0.11
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 +4 -0
- package/dist/{Account-D_kRKI6x.mjs → Account-BVKkr6ft.mjs} +1 -1
- package/dist/{AccountDetailsContent-Dfja2v8K.mjs → AccountDetailsContent-BmQ5a3Lk.mjs} +8 -8
- package/dist/{AccountDetailsHeader-nc5mqlHm.mjs → AccountDetailsHeader-vSwO-5Wk.mjs} +5 -5
- package/dist/{AccountFields-DeebSePp.mjs → AccountFields-VRK4zgvW.mjs} +2 -2
- package/dist/{AccountListItem-dh03tivj.mjs → AccountListItem-SkBUCsb0.mjs} +3 -3
- package/dist/{AccountStore-Cp7xWX8n.mjs → AccountStore-3Umlm7QY.mjs} +5 -5
- package/dist/{Accounts-DppzmFak.mjs → Accounts-CYsoAdW-.mjs} +1 -1
- package/dist/{BeatApi-D0WcLW3O.mjs → BeatApi-DLu87ijw.mjs} +3 -3
- package/dist/{BeatStore-y6WVs07e.mjs → BeatStore-By4aGoRM.mjs} +17 -17
- package/dist/{BudgetUtil-DmWvHV7C.mjs → BudgetUtil-CeSLAcsl.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-uTU7Nwn2.mjs → CategorySelectorDrawer-BPvjZ-Xo.mjs} +1 -1
- package/dist/{CategoryStore-BfYppD3g.mjs → CategoryStore-BOyzQjQp.mjs} +4 -4
- package/dist/{ConnectDrawer-BfYwIgKa.mjs → ConnectDrawer-BA9H_xx8.mjs} +1 -1
- package/dist/{ConnectionsDrawer-BKG07Loi.mjs → ConnectionsDrawer-Bs-NUsAs.mjs} +2 -2
- package/dist/{CurrencyInput-BtrNBP3z.mjs → CurrencyInput-bEx2Mbd0.mjs} +1 -1
- package/dist/{DebtsStore-BR1o55kk.mjs → DebtsStore-BwmpJMik.mjs} +1 -1
- package/dist/{ExportCsvAction-BH369hls.mjs → ExportCsvAction-CvyiKLTh.mjs} +3 -3
- package/dist/{Fetch-CJ9cgjgV.mjs → Fetch-CkFKy79O.mjs} +8 -9
- package/dist/{FinstrongStore-rC2F4Tq3.mjs → FinstrongStore-mkALvztw.mjs} +4 -4
- package/dist/{GoalStore-rZKi2YjE.mjs → GoalStore-BH5TWxYr.mjs} +21 -21
- package/dist/{Help-t24Ldz-O.mjs → Help-B3oENhkG.mjs} +1 -1
- package/dist/{LineChart-CfEEnHUy.mjs → LineChart-BWWmmJxV.mjs} +204 -183
- package/dist/{ListItemAction-Cwadpg85.mjs → ListItemAction-DNZZ5fSa.mjs} +1 -1
- package/dist/{ManageIncome-xksS_sWM.mjs → ManageIncome-DCUX6T2b.mjs} +4 -4
- package/dist/MerchantStore-DVH-QOf0.mjs +37 -0
- package/dist/{MicroWidgetContainer-DwTAjSdX.mjs → MicroWidgetContainer-Dxz8uBN9.mjs} +1 -1
- package/dist/{MiniWidgetContainer-CxggrnHk.mjs → MiniWidgetContainer-CTyjmE1h.mjs} +1 -1
- package/dist/{NetWorthStore-5qSDIglU.mjs → NetWorthStore-NKD8a-19.mjs} +2 -2
- package/dist/{NotificationSettings-Cny7J1hO.mjs → NotificationSettings-uXVwpIa1.mjs} +2 -2
- package/dist/{NotificationStore-DpV9hXSE.mjs → NotificationStore-DHtSGySy.mjs} +4 -8
- package/dist/{OriginalBalanceAction-DDMRgIBU.mjs → OriginalBalanceAction-DepsKiJz.mjs} +3 -3
- package/dist/{RecurringSettings-DXQ64A8U.mjs → RecurringSettings-BD_CIXnV.mjs} +3 -3
- package/dist/{RecurringTransactionsStore-CXhnipfd.mjs → RecurringTransactionsStore-D62XJtdL.mjs} +16 -20
- package/dist/{SettingsStore-CLLqNa_S.mjs → SettingsStore-B4gi6oOw.mjs} +29 -33
- package/dist/{Transaction-CXMMfhz-.mjs → Transaction-Dns0Kuuy.mjs} +1 -1
- package/dist/{TransactionApi-C0HMGDBV.mjs → TransactionApi-DbbcjI2L.mjs} +29 -29
- package/dist/{TransactionDetails-v77agHHP.mjs → TransactionDetails-DFDYdDae.mjs} +5 -5
- package/dist/{TransactionStore-Cu_KM_J9.mjs → TransactionStore-BVKUoEHj.mjs} +25 -29
- package/dist/TrendsStore-WrHxzdbQ.mjs +565 -0
- package/dist/{ViewMoreMicroCard-DJoNOqkD.mjs → ViewMoreMicroCard-BZI5VMNW.mjs} +2 -5
- package/dist/{WidgetContainer-QcfqagZD.mjs → WidgetContainer-BHhhVctF.mjs} +2 -2
- package/dist/accounts/api/AccountApi.d.ts +2 -2
- package/dist/accounts/index.es.js +12 -12
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/api/BudgetsApi.d.ts +2 -2
- package/dist/budgets/index.es.js +10 -10
- package/dist/cashflow/api/CashflowApi.d.ts +2 -3
- package/dist/cashflow/index.es.js +10 -10
- package/dist/categories/index.es.js +2 -2
- package/dist/common/api/AnalyticsApi.d.ts +2 -2
- package/dist/common/api/AppDataApi.d.ts +2 -2
- package/dist/common/api/BeatApi.d.ts +2 -2
- package/dist/common/api/CategoryApi.d.ts +3 -2
- package/dist/common/api/GlobalCopyApi.d.ts +1 -2
- package/dist/common/api/LocalizedCopyApi.d.ts +1 -2
- package/dist/common/api/NotificationApi.d.ts +2 -2
- package/dist/common/api/ScheduledPaymentsApi.d.ts +2 -3
- package/dist/common/api/UserApi.d.ts +2 -2
- package/dist/common/context/GlobalDataProvider.d.ts +2 -3
- package/dist/common/context/hooks.d.ts +1 -4
- package/dist/common/context/index.d.ts +1 -1
- package/dist/common/index.es.js +315 -321
- package/dist/common/stores/GlobalStore.d.ts +1 -2
- package/dist/common/types/index.d.ts +0 -1
- package/dist/common/utils/Fetch.d.ts +1 -3
- package/dist/dashboard/index.es.js +2 -2
- package/dist/debts/index.es.js +197 -180
- package/dist/{exportTransactionsToCSV-DpP_a1g8.mjs → exportTransactionsToCSV-B4JW8rfR.mjs} +1 -1
- package/dist/finstrong/api/FinstrongApi.d.ts +1 -2
- package/dist/finstrong/index.es.js +7 -7
- package/dist/goals/api/GoalApi.d.ts +2 -3
- package/dist/goals/index.es.js +11 -11
- package/dist/help/api/HelpApi.d.ts +2 -2
- package/dist/help/index.es.js +3 -3
- package/dist/hooks-DkUqN6JE.mjs +71 -0
- package/dist/insights/index.es.js +1 -1
- package/dist/investments/api/HoldingApi.d.ts +2 -3
- package/dist/investments/index.es.js +3 -3
- package/dist/merchants/api/MerchantApi.d.ts +1 -2
- package/dist/merchants/index.es.js +2 -2
- package/dist/microinsights/context/InsightsMicroWidgetDataProvider.d.ts +1 -2
- package/dist/microinsights/context/hooks.d.ts +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +7 -7
- package/dist/notifications/index.es.js +5 -5
- package/dist/recurringtransactions/api/RepeatingTransactionsApi.d.ts +2 -2
- package/dist/recurringtransactions/index.es.js +10 -10
- package/dist/settings/api/SettingsApi.d.ts +2 -3
- package/dist/settings/index.es.js +7 -7
- package/dist/spending/index.es.js +4 -4
- package/dist/transactions/api/TransactionApi.d.ts +2 -3
- package/dist/transactions/index.es.js +14 -14
- package/dist/trends/index.es.js +10 -10
- package/dist/{useCombineEvents-Dbjzfwvo.mjs → useCombineEvents-DaDBSR_1.mjs} +29 -29
- package/package.json +1 -1
- package/dist/MerchantStore-h96aTml7.mjs +0 -37
- package/dist/TrendsStore-B4Q-iLX0.mjs +0 -547
- package/dist/common/types/Handlers.d.ts +0 -2
- package/dist/hooks-DcS6DyRl.mjs +0 -74
|
@@ -1,10 +1,10 @@
|
|
|
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-
|
|
3
|
+
import { F as l, A as n } from "./Fetch-CkFKy79O.mjs";
|
|
4
4
|
class s {
|
|
5
5
|
fetchInstance;
|
|
6
|
-
constructor(t, i
|
|
7
|
-
this.fetchInstance = new l(t, i
|
|
6
|
+
constructor(t, i) {
|
|
7
|
+
this.fetchInstance = new l(t, i);
|
|
8
8
|
}
|
|
9
9
|
getNotifications = () => this.fetchInstance.get(n.NOTIFICATIONS).then(
|
|
10
10
|
(t) => t.notifications.map((i) => i.notification)
|
|
@@ -35,11 +35,7 @@ class A {
|
|
|
35
35
|
notifications = [];
|
|
36
36
|
recentNotifications = [];
|
|
37
37
|
constructor(t) {
|
|
38
|
-
this.globalStore = t, this.api = new s(
|
|
39
|
-
t.endpoint,
|
|
40
|
-
t.sessionToken,
|
|
41
|
-
t.onError
|
|
42
|
-
), c(this, { notifications: f });
|
|
38
|
+
this.globalStore = t, this.api = new s(t.endpoint, t.sessionToken), c(this, { notifications: f });
|
|
43
39
|
}
|
|
44
40
|
// Used in Money Dashboard
|
|
45
41
|
get newNotifications() {
|
|
@@ -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-
|
|
6
|
-
import { u as h, j as b } from "./hooks-
|
|
5
|
+
import { L as y } from "./ListItemAction-DNZZ5fSa.mjs";
|
|
6
|
+
import { u as h, j as b } from "./hooks-DkUqN6JE.mjs";
|
|
7
7
|
import { a as T, f as S } from "./NumberFormatting-CtWHhyBX.mjs";
|
|
8
|
-
import { C as f } from "./CurrencyInput-
|
|
8
|
+
import { C as f } from "./CurrencyInput-bEx2Mbd0.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-
|
|
11
|
-
import { u as h, h as y, e as _ } from "./hooks-
|
|
10
|
+
import { R as x, A as S, a as E, M as A } from "./ManageIncome-DCUX6T2b.mjs";
|
|
11
|
+
import { u as h, h as y, e as _ } from "./hooks-DkUqN6JE.mjs";
|
|
12
12
|
import { R as v, F as N } from "./RepeatingTransaction-BW4J-jeJ.mjs";
|
|
13
|
-
import { A as d } from "./WidgetContainer-
|
|
13
|
+
import { A as d } from "./WidgetContainer-BHhhVctF.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, {
|
package/dist/{RecurringTransactionsStore-CXhnipfd.mjs → RecurringTransactionsStore-D62XJtdL.mjs}
RENAMED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { makeAutoObservable as f, runInAction as i } from "mobx";
|
|
2
2
|
import { endOfMonth as R } from "date-fns/endOfMonth";
|
|
3
3
|
import { isAfter as p } from "date-fns/isAfter";
|
|
4
|
-
import { isBefore as
|
|
4
|
+
import { isBefore as S } from "date-fns/isBefore";
|
|
5
5
|
import { isSameDay as g } from "date-fns/isSameDay";
|
|
6
6
|
import { isWithinInterval as m } from "date-fns/isWithinInterval";
|
|
7
|
-
import { startOfMonth as
|
|
7
|
+
import { startOfMonth as I } 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-
|
|
11
|
-
import { b as
|
|
12
|
-
var
|
|
10
|
+
import { F as x, A as o } from "./Fetch-CkFKy79O.mjs";
|
|
11
|
+
import { b as A, a, c as h, d as u } from "./RepeatingTransaction-BW4J-jeJ.mjs";
|
|
12
|
+
var E = /* @__PURE__ */ ((r) => (r.Small = "small", r.Medium = "medium", r.Large = "large", r))(E || {});
|
|
13
13
|
const U = 44;
|
|
14
|
-
class
|
|
14
|
+
class d {
|
|
15
15
|
fetchInstance;
|
|
16
|
-
constructor(e, t
|
|
17
|
-
this.fetchInstance = new x(e, t
|
|
16
|
+
constructor(e, t) {
|
|
17
|
+
this.fetchInstance = new x(e, t);
|
|
18
18
|
}
|
|
19
19
|
addRepeatingTransaction = async (e) => this.fetchInstance.post(o.REPEATING_TRANSACTIONS, e).then((t) => t.repeating_transaction);
|
|
20
20
|
getRepeatingTransactions = async () => this.fetchInstance.get(o.REPEATING_TRANSACTIONS).then((e) => e.repeating_transactions);
|
|
@@ -27,25 +27,21 @@ class h {
|
|
|
27
27
|
const l = (r, e) => m(e.expectedDate, r), s = (r, e) => r + e.amount;
|
|
28
28
|
class C {
|
|
29
29
|
globalStore;
|
|
30
|
-
api = new
|
|
30
|
+
api = new d("/", "");
|
|
31
31
|
transactions = [];
|
|
32
32
|
repeatingTransactions = [];
|
|
33
33
|
selectedDay;
|
|
34
|
-
dateRange = { start:
|
|
34
|
+
dateRange = { start: I(c()), end: R(c()) };
|
|
35
35
|
isDataLoaded = !1;
|
|
36
36
|
constructor(e) {
|
|
37
|
-
this.globalStore = e, this.api = new
|
|
38
|
-
e.endpoint,
|
|
39
|
-
e.sessionToken,
|
|
40
|
-
e.onError
|
|
41
|
-
), f(this);
|
|
37
|
+
this.globalStore = e, this.api = new d(e.endpoint, e.sessionToken), f(this);
|
|
42
38
|
}
|
|
43
39
|
/**
|
|
44
40
|
* Returns all recurrences built from repeating transactions and filtered by accounts.
|
|
45
41
|
*/
|
|
46
42
|
get recurrences() {
|
|
47
43
|
const e = this.globalStore.accountStore.visibleAccounts;
|
|
48
|
-
return
|
|
44
|
+
return A(this.repeatingTransactions, this.dateRange).filter((t) => e.some((n) => n.guid === t.accountGuid && !n.is_excluded_from_accounts)).filter((t) => m(t.expectedDate, this.dateRange));
|
|
49
45
|
}
|
|
50
46
|
/**
|
|
51
47
|
* Returns all recurrences that have occurred in the past, including those that are paid or missed
|
|
@@ -61,7 +57,7 @@ class C {
|
|
|
61
57
|
*/
|
|
62
58
|
get upcomingRecurrences() {
|
|
63
59
|
return this.recurrences.filter(
|
|
64
|
-
(e) => p(e.expectedDate, y(c(), 3)) &&
|
|
60
|
+
(e) => p(e.expectedDate, y(c(), 3)) && S(e.expectedDate, this.dateRange.end) && e.status === a.Upcoming
|
|
65
61
|
);
|
|
66
62
|
}
|
|
67
63
|
/**
|
|
@@ -69,7 +65,7 @@ class C {
|
|
|
69
65
|
*/
|
|
70
66
|
get expenses() {
|
|
71
67
|
return this.recurrences.filter(
|
|
72
|
-
(e) => e.type ===
|
|
68
|
+
(e) => e.type === h.Expense
|
|
73
69
|
);
|
|
74
70
|
}
|
|
75
71
|
/**
|
|
@@ -85,7 +81,7 @@ class C {
|
|
|
85
81
|
*/
|
|
86
82
|
get income() {
|
|
87
83
|
return this.recurrences.filter(
|
|
88
|
-
(e) => e.type ===
|
|
84
|
+
(e) => e.type === h.Income
|
|
89
85
|
);
|
|
90
86
|
}
|
|
91
87
|
/**
|
|
@@ -262,6 +258,6 @@ class C {
|
|
|
262
258
|
}
|
|
263
259
|
export {
|
|
264
260
|
C as R,
|
|
265
|
-
|
|
261
|
+
E as S,
|
|
266
262
|
U as T
|
|
267
263
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { makeAutoObservable as N, runInAction as l } from "mobx";
|
|
2
|
-
import { F as D, A as
|
|
2
|
+
import { F as D, A as o } from "./Fetch-CkFKy79O.mjs";
|
|
3
3
|
import { B as f, A as n, I as i } from "./Notification-ByMBpJ5u.mjs";
|
|
4
|
-
import { T as m } from "./TransactionApi-
|
|
4
|
+
import { T as m } from "./TransactionApi-DbbcjI2L.mjs";
|
|
5
5
|
class y {
|
|
6
6
|
fetchInstance;
|
|
7
|
-
constructor(e, t
|
|
8
|
-
this.fetchInstance = new D(e, t
|
|
7
|
+
constructor(e, t) {
|
|
8
|
+
this.fetchInstance = new D(e, t);
|
|
9
9
|
}
|
|
10
|
-
deleteDevice = async (e) => this.fetchInstance.delete(`${
|
|
11
|
-
generateDeviceToken = async () => this.fetchInstance.get(`${
|
|
12
|
-
getDevices = async () => this.fetchInstance.get(
|
|
13
|
-
getNotificationProfiles = async () => this.fetchInstance.get(
|
|
10
|
+
deleteDevice = async (e) => this.fetchInstance.delete(`${o.DEVICES}/${e}`).then((t) => t);
|
|
11
|
+
generateDeviceToken = async () => this.fetchInstance.get(`${o.USER}/mobile_token`).then((e) => e.mobile_token);
|
|
12
|
+
getDevices = async () => this.fetchInstance.get(o.DEVICES).then((e) => e.map((t) => t.device));
|
|
13
|
+
getNotificationProfiles = async () => this.fetchInstance.get(o.NOTIFICATION_PROFILES).then((e) => e.notification_profiles);
|
|
14
14
|
// verifications endpoints respond with HTTP status codes; they error otherwise
|
|
15
|
-
sendEmailVerification = async () => this.fetchInstance.post(
|
|
16
|
-
sendPhoneVerification = async () => this.fetchInstance.post(
|
|
17
|
-
verifyPhoneToken = async (e) => this.fetchInstance.post(
|
|
18
|
-
updateDevice = async (e) => this.fetchInstance.put(`${
|
|
19
|
-
updateNotificationProfile = async (e) => this.fetchInstance.put(`${
|
|
20
|
-
updateUserCommunicationProfile = async (e) => this.fetchInstance.put(
|
|
21
|
-
getInsightsNotificationProfiles = async () => this.fetchInstance.get(`${
|
|
15
|
+
sendEmailVerification = async () => this.fetchInstance.post(o.EMAIL_VERIFICATIONS);
|
|
16
|
+
sendPhoneVerification = async () => this.fetchInstance.post(o.PHONE_VERIFICATIONS + "/deliver");
|
|
17
|
+
verifyPhoneToken = async (e) => this.fetchInstance.post(o.PHONE_VERIFICATIONS + "/verify", { sms_verification_token: e }).then((t) => ({ verified: t.verified }));
|
|
18
|
+
updateDevice = async (e) => this.fetchInstance.put(`${o.DEVICES}/${e.guid}`, e).then((t) => t.device);
|
|
19
|
+
updateNotificationProfile = async (e) => this.fetchInstance.put(`${o.NOTIFICATION_PROFILES}/${e.guid}`, e).then((t) => t.notification_profile);
|
|
20
|
+
updateUserCommunicationProfile = async (e) => this.fetchInstance.put(o.USER_COMMUNICATION_PROFILE, e).then((t) => t.user_communication_profile);
|
|
21
|
+
getInsightsNotificationProfiles = async () => this.fetchInstance.get(`${o.NOTIFICATION_PROFILES}/${o.INSIGHTS_NOTIFICATION_PROFILES}`).then((e) => e);
|
|
22
22
|
}
|
|
23
23
|
const v = "PARENT-ENTITY", C = (s, e) => ({
|
|
24
24
|
[f.BudgetExceeded]: e.notification_budget_exceeded,
|
|
@@ -53,7 +53,7 @@ const v = "PARENT-ENTITY", C = (s, e) => ({
|
|
|
53
53
|
[i.TransactionExpenseLarge]: e.large_transaction,
|
|
54
54
|
[i.PromotionalCampaignMessages]: e.promotional_campaign_messages,
|
|
55
55
|
[i.TransparentOverdraft]: e.transparent_overdraft
|
|
56
|
-
})[s] || "", R = (s, e, t,
|
|
56
|
+
})[s] || "", R = (s, e, t, r, d, p) => {
|
|
57
57
|
const g = [], {
|
|
58
58
|
email_notifications_enabled: I,
|
|
59
59
|
sms_notifications_enabled: P,
|
|
@@ -61,15 +61,15 @@ const v = "PARENT-ENTITY", C = (s, e) => ({
|
|
|
61
61
|
} = e, {
|
|
62
62
|
opted_out_of_email_notifications: b,
|
|
63
63
|
opted_out_of_sms_notifications: E,
|
|
64
|
-
opted_out_of_push_notifications:
|
|
64
|
+
opted_out_of_push_notifications: S
|
|
65
65
|
} = d;
|
|
66
|
-
for (const a of
|
|
67
|
-
const u = C(a.notification_type, t),
|
|
66
|
+
for (const a of r.filter((u) => u.entity_guid === v)) {
|
|
67
|
+
const u = C(a.notification_type, t), A = r.filter(
|
|
68
68
|
(c) => c.entity_guid !== v && c.notification_type === a.notification_type && s.some((h) => h.guid === c.entity_guid)
|
|
69
69
|
), _ = [];
|
|
70
|
-
I && !b && a.email_channel && p.email && _.push(t.delivery_method_email_label), P && !E && a.sms_channel && p.phone && _.push(t.delivery_method_sms_label), T && !
|
|
70
|
+
I && !b && a.email_channel && p.email && _.push(t.delivery_method_email_label), P && !E && a.sms_channel && p.phone && _.push(t.delivery_method_sms_label), T && !S && a.push_channel && _.push(t.delivery_method_push_label), g.push({
|
|
71
71
|
...a,
|
|
72
|
-
children:
|
|
72
|
+
children: A.map((c) => ({
|
|
73
73
|
...c,
|
|
74
74
|
account: s.find((h) => h.guid === c.entity_guid),
|
|
75
75
|
label: u
|
|
@@ -90,11 +90,7 @@ class x {
|
|
|
90
90
|
selectedRule = void 0;
|
|
91
91
|
transactionRules = [];
|
|
92
92
|
constructor(e) {
|
|
93
|
-
this.globalStore = e, this.api = new y(e.endpoint, e.sessionToken
|
|
94
|
-
e.endpoint,
|
|
95
|
-
e.sessionToken,
|
|
96
|
-
e.onError
|
|
97
|
-
), N(this);
|
|
93
|
+
this.globalStore = e, this.api = new y(e.endpoint, e.sessionToken), this.transactionApi = new m(e.endpoint, e.sessionToken), N(this);
|
|
98
94
|
}
|
|
99
95
|
get accountProfiles() {
|
|
100
96
|
const e = this.globalStore.appDataStore.clientCommunicationProfile;
|
|
@@ -135,7 +131,7 @@ class x {
|
|
|
135
131
|
deleteDevice = async (e) => {
|
|
136
132
|
try {
|
|
137
133
|
await this.api.deleteDevice(e);
|
|
138
|
-
const t = this.devices.findIndex((
|
|
134
|
+
const t = this.devices.findIndex((r) => r.guid === e);
|
|
139
135
|
return t >= 0 && l(() => {
|
|
140
136
|
this.devices.splice(t, 1);
|
|
141
137
|
}), { success: !0 };
|
|
@@ -207,9 +203,9 @@ class x {
|
|
|
207
203
|
};
|
|
208
204
|
updateDevice = async (e) => {
|
|
209
205
|
try {
|
|
210
|
-
const t = await this.api.updateDevice(e),
|
|
211
|
-
return
|
|
212
|
-
this.devices[
|
|
206
|
+
const t = await this.api.updateDevice(e), r = this.devices.findIndex((d) => d.guid === e.guid);
|
|
207
|
+
return r >= 0 && l(() => {
|
|
208
|
+
this.devices[r] = t;
|
|
213
209
|
}), { success: !0 };
|
|
214
210
|
} catch (t) {
|
|
215
211
|
return console.error(`Error updating device: ${t}`), { success: !1 };
|
|
@@ -217,9 +213,9 @@ class x {
|
|
|
217
213
|
};
|
|
218
214
|
updateNotificationProfile = async (e) => {
|
|
219
215
|
try {
|
|
220
|
-
const t = await this.api.updateNotificationProfile(e),
|
|
221
|
-
|
|
222
|
-
this.notificationProfiles[
|
|
216
|
+
const t = await this.api.updateNotificationProfile(e), r = this.notificationProfiles.findIndex((d) => d.guid === e.guid);
|
|
217
|
+
r >= 0 && l(() => {
|
|
218
|
+
this.notificationProfiles[r] = t;
|
|
223
219
|
});
|
|
224
220
|
} catch (t) {
|
|
225
221
|
console.error(`Error updating notification profile: ${t}`);
|
|
@@ -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-
|
|
25
|
+
import { e as tn } from "./hooks-DkUqN6JE.mjs";
|
|
26
26
|
const on = ({ copy: n, date: t, onNextClick: e, onPreviousClick: r }) => {
|
|
27
27
|
const c = v(), l = en(c);
|
|
28
28
|
return /* @__PURE__ */ h("div", { className: `mx-cmn-calendar-header ${l}`, children: [
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { F as T, A as e } from "./Fetch-
|
|
1
|
+
import { F as T, A as e } from "./Fetch-CkFKy79O.mjs";
|
|
2
2
|
class u {
|
|
3
3
|
fetchInstance;
|
|
4
|
-
constructor(t, n
|
|
5
|
-
this.fetchInstance = new T(t, n
|
|
4
|
+
constructor(t, n) {
|
|
5
|
+
this.fetchInstance = new T(t, n);
|
|
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((
|
|
14
|
+
getTransactionsByDateRange = async (t, n) => this.fetchInstance.get(`${e.TRANSACTIONS}/by_date/${t}/${n}`).then((c) => c.map((a) => a.transaction));
|
|
15
15
|
// DEPRECATED
|
|
16
|
-
getTransactionsByAccountsAndDateRange = async (t, n,
|
|
16
|
+
getTransactionsByAccountsAndDateRange = async (t, n, c) => {
|
|
17
17
|
console.warn("DEPRECATED: getTransactionsByAccountsAndDateRange will be removed");
|
|
18
|
-
const
|
|
19
|
-
(o,
|
|
18
|
+
const a = t.reduce(
|
|
19
|
+
(o, s, r) => `${o}account_guids[]=${s}${r !== t.length - 1 ? "&" : ""}`,
|
|
20
20
|
""
|
|
21
21
|
);
|
|
22
|
-
return this.fetchInstance.get(`${e.TRANSACTIONS}/by_date/${n}/${
|
|
22
|
+
return this.fetchInstance.get(`${e.TRANSACTIONS}/by_date/${n}/${c}?${a}`).then((o) => o.map((s) => s.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((
|
|
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)));
|
|
26
26
|
// DEPRECATED
|
|
27
|
-
getTransactionsByCategoryAndDate = async (t, n,
|
|
28
|
-
`${e.TRANSACTIONS}/by_category_guid/${t}/by_date/${n}/${
|
|
29
|
-
).then((
|
|
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)));
|
|
30
30
|
// DEPRECATED
|
|
31
|
-
getTransactionsByCategoryDateAndAccounts = async (t, n,
|
|
31
|
+
getTransactionsByCategoryDateAndAccounts = async (t, n, c, a) => {
|
|
32
32
|
console.warn("DEPRECATED: getTransactionsByCategoryDateAndAccounts will be removed");
|
|
33
|
-
const o =
|
|
34
|
-
(
|
|
33
|
+
const o = a.reduce(
|
|
34
|
+
(s, r, i) => `${s}account_guids[]=${r}${i !== a.length - 1 ? "&" : ""}`,
|
|
35
35
|
""
|
|
36
36
|
);
|
|
37
37
|
return this.fetchInstance.get(
|
|
38
|
-
`${e.TRANSACTIONS}/by_category_guid/${t}/by_date/${n}/${
|
|
39
|
-
).then((
|
|
38
|
+
`${e.TRANSACTIONS}/by_category_guid/${t}/by_date/${n}/${c}?${o}`
|
|
39
|
+
).then((s) => s.map((r) => r.transaction));
|
|
40
40
|
};
|
|
41
41
|
// DEPRECATED
|
|
42
|
-
getTransactionsByCategoriesDateAndAccounts = async (t, n,
|
|
42
|
+
getTransactionsByCategoriesDateAndAccounts = async (t, n, c, a) => {
|
|
43
43
|
console.warn("DEPRECATED: getTransactionsByCategoriesDateAndAccounts will be removed");
|
|
44
|
-
const o =
|
|
45
|
-
(
|
|
44
|
+
const o = a.reduce(
|
|
45
|
+
(s, r, i) => `${s}account_guids[]=${r}${i !== a.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}/${
|
|
52
|
-
).then((
|
|
51
|
+
)}/by_date/${n}/${c}?${o}`
|
|
52
|
+
).then((s) => s.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,
|
|
63
|
+
getTransactionsByTopLevelCategoryAndDate = async (t, n, c, a = []) => {
|
|
64
64
|
console.warn("DEPRECATED: getTransactionsByTopLevelCategoryAndDate will be removed");
|
|
65
|
-
let o = `${e.TRANSACTIONS}/by_top_level_category_guid/${t}/by_date/${n}/${
|
|
66
|
-
if (
|
|
67
|
-
const
|
|
68
|
-
(r, i, g) => `${r}account_guids[]=${i}${g !==
|
|
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 ? "&" : ""}`,
|
|
69
69
|
""
|
|
70
70
|
);
|
|
71
|
-
o += `?${
|
|
71
|
+
o += `?${s}`;
|
|
72
72
|
}
|
|
73
|
-
return this.fetchInstance.get(o).then((
|
|
73
|
+
return this.fetchInstance.get(o).then((s) => s.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 f, Text as S, useTokens as J, CategoryIcon
|
|
|
9
9
|
import z from "@mui/material/ListItemAvatar";
|
|
10
10
|
import $ from "@mui/material/ListItemText";
|
|
11
11
|
import C from "@mui/material/Stack";
|
|
12
|
-
import { T as Le, L as Re, O as g, C as ke, b as Pe } from "./Transaction-
|
|
13
|
-
import { G as Ge, f as v, u as I, e as w, k as be, a as Me } from "./hooks-
|
|
12
|
+
import { T as Le, L as Re, O as g, C as ke, b as Pe } from "./Transaction-Dns0Kuuy.mjs";
|
|
13
|
+
import { G as Ge, f as v, u as I, e as w, k as be, a as Me } from "./hooks-DkUqN6JE.mjs";
|
|
14
14
|
import { f as Q } from "./NumberFormatting-CtWHhyBX.mjs";
|
|
15
15
|
import { Receipt as Ke, Delete as re, ChevronRight as $e, Cancel as oe, Search as Fe, Edit as ze, Flag as Be } from "@mxenabled/mx-icons";
|
|
16
16
|
import { fromUnixTime as Y } from "date-fns/fromUnixTime";
|
|
17
17
|
import { isSameDay as Ae } from "date-fns/isSameDay";
|
|
18
18
|
import { h as He } from "./DateUtil-BcuH7ErC.mjs";
|
|
19
19
|
import { L as Ne } from "./Loader-Dp1P2gNw.mjs";
|
|
20
|
-
import { A as P } from "./WidgetContainer-
|
|
20
|
+
import { A as P } from "./WidgetContainer-BHhhVctF.mjs";
|
|
21
21
|
import ee from "@mui/material/Paper";
|
|
22
22
|
import le from "@mui/material/Button";
|
|
23
23
|
import Ue from "@mui/material/FormGroup";
|
|
@@ -29,7 +29,7 @@ import V from "@mui/material/Avatar";
|
|
|
29
29
|
import B from "@mui/material/ListItem";
|
|
30
30
|
import H from "@mui/material/ListItemButton";
|
|
31
31
|
import U from "@mui/material/ListItemIcon";
|
|
32
|
-
import { a as De } from "./CategorySelectorDrawer-
|
|
32
|
+
import { a as De } from "./CategorySelectorDrawer-BPvjZ-Xo.mjs";
|
|
33
33
|
import { a as X, f as Ve, D as We } from "./Dialog-CWW597AF.mjs";
|
|
34
34
|
import { b as ie } from "./Localization-2MODESHW.mjs";
|
|
35
35
|
import { getUnixTime as Ye } from "date-fns/getUnixTime";
|
|
@@ -37,7 +37,7 @@ import { D as ce } from "./Drawer-kEE73B87.mjs";
|
|
|
37
37
|
import he from "@mui/material/InputAdornment";
|
|
38
38
|
import je from "@mui/material/Checkbox";
|
|
39
39
|
import me from "@mui/material/Grid";
|
|
40
|
-
import { C as qe } from "./CurrencyInput-
|
|
40
|
+
import { C as qe } from "./CurrencyInput-bEx2Mbd0.mjs";
|
|
41
41
|
import Ze 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 || {}), te = /* @__PURE__ */ ((t) => (t[t.SplitTransaction = 0] = "SplitTransaction", t[t.HideTransaction = 1] = "HideTransaction", t[t.MerchantLogo = 2] = "MerchantLogo", t))(te || {});
|
|
43
43
|
const Je = [
|
|
@@ -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
|
|
14
|
+
import { startOfToday as b } from "date-fns/startOfToday";
|
|
15
15
|
import { subDays as Y } from "date-fns/subDays";
|
|
16
|
-
import { O as n, a as
|
|
17
|
-
import { T as p } from "./TransactionApi-
|
|
16
|
+
import { O as n, a as G, T as F } from "./Transaction-Dns0Kuuy.mjs";
|
|
17
|
+
import { T as p } from "./TransactionApi-DbbcjI2L.mjs";
|
|
18
18
|
import { b as W } from "./Category-CevNQ03n.mjs";
|
|
19
|
-
import { f as z } from "./exportTransactionsToCSV-
|
|
19
|
+
import { f as z } from "./exportTransactionsToCSV-B4JW8rfR.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-
|
|
23
|
+
import { B as f } from "./BeatApi-DLu87ijw.mjs";
|
|
24
24
|
const j = ({
|
|
25
|
-
checked:
|
|
25
|
+
checked: S = !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 =
|
|
31
|
+
const _ = K(), i = _.palette.mode === "light" ? _.palette.grey[400] : _.palette.grey[700], c = S ? _.palette.action.active : i;
|
|
32
32
|
return /* @__PURE__ */ C(
|
|
33
33
|
H,
|
|
34
34
|
{
|
|
35
35
|
bgcolor: "background.paper",
|
|
36
|
-
border: `${
|
|
36
|
+
border: `${S ? 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 (
|
|
325
|
+
}, Z = async (S, t) => !t || !m[S] ? null : t.sendAnalyticEvent(m[S]), 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 = (
|
|
332
|
+
}, q = (S, 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
|
|
346
|
+
return S.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 ===
|
|
355
|
+
isPending: c.feed_status === G.PENDING,
|
|
356
356
|
number: s?.account_number || "",
|
|
357
357
|
payee: c.description,
|
|
358
358
|
tags: I
|
|
359
359
|
};
|
|
360
360
|
});
|
|
361
|
-
}, J = "uncategorized", Q = (
|
|
362
|
-
const i = tt(
|
|
361
|
+
}, J = "uncategorized", Q = (S, t, a, e, A, _) => {
|
|
362
|
+
const i = tt(S, 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 = (
|
|
367
|
+
}, tt = (S, t, a) => {
|
|
368
368
|
const {
|
|
369
369
|
accounts: e = [],
|
|
370
|
-
dateRange: A = { start: R(
|
|
370
|
+
dateRange: A = { start: R(b()), end: D() },
|
|
371
371
|
custom: _ = () => !0,
|
|
372
372
|
searchTerm: i = "",
|
|
373
373
|
showSplits: c = !1
|
|
374
|
-
} =
|
|
374
|
+
} = S;
|
|
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) =>
|
|
381
|
+
(x) => N(i, t.find((M) => M.guid === x)?.name)
|
|
382
382
|
), E = u(s.date);
|
|
383
|
-
return
|
|
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;
|
|
384
384
|
});
|
|
385
|
-
}, at = (
|
|
385
|
+
}, at = (S, t, a) => [...S].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
|
-
}),
|
|
390
|
-
const a =
|
|
389
|
+
}), N = (S, t) => {
|
|
390
|
+
const a = S.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:
|
|
400
|
+
feed_status: G.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(
|
|
468
|
+
cachedStartDate = Y(b(), 90);
|
|
469
469
|
filter = {};
|
|
470
470
|
isLoading = !0;
|
|
471
471
|
rawTransactions = [];
|
|
@@ -476,11 +476,7 @@ 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(
|
|
480
|
-
t.endpoint,
|
|
481
|
-
t.sessionToken,
|
|
482
|
-
t.onError
|
|
483
|
-
), this.beatApi = new f(t.endpoint, t.sessionToken, t.onError), y(this);
|
|
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);
|
|
484
480
|
}
|
|
485
481
|
loadTransactionData = async ({
|
|
486
482
|
associatedBeats: t,
|