@mx-cartographer/experiences 7.0.20-alpha.mm14 → 7.0.20-alpha.mm16
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/dist/{Account-GFzWnbxA.mjs → Account-DJ7VG5hs.mjs} +1 -1
- package/dist/{AccountDetailsContent-mN483eVf.mjs → AccountDetailsContent-B73mz3KK.mjs} +8 -8
- package/dist/{AccountDetailsHeader-BpsTTa-C.mjs → AccountDetailsHeader-DJk0hheh.mjs} +5 -5
- package/dist/{AccountFields-dth_TzXr.mjs → AccountFields-BJfIdeay.mjs} +2 -2
- package/dist/{AccountListItem-DzLeMC0v.mjs → AccountListItem-CkDTN1Bi.mjs} +3 -3
- package/dist/{AccountStore-8wYwS2Fb.mjs → AccountStore-CxV4kxak.mjs} +2 -2
- package/dist/{Accounts-Bas8bqMn.mjs → Accounts-BYGu-bN1.mjs} +1 -1
- package/dist/{BudgetUtil-BR1sFoz5.mjs → BudgetUtil-BB9gMyLW.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-y4sp83CD.mjs → CategorySelectorDrawer-B-W3eXHU.mjs} +1 -1
- package/dist/{ConnectDrawer-BbvIVdYR.mjs → ConnectDrawer-COy3Xwqv.mjs} +1 -1
- package/dist/{ConnectionsDrawer-B8y4UHxL.mjs → ConnectionsDrawer-B36W8Qvy.mjs} +2 -2
- package/dist/{CurrencyInput-DyWvvUZX.mjs → CurrencyInput-B6gF46iv.mjs} +1 -1
- package/dist/{DebtsStore-b4lkfwxB.mjs → DebtsStore-2yxA32_7.mjs} +1 -1
- package/dist/{ExportCsvAction-Bu6bbxPc.mjs → ExportCsvAction-2tkBInLO.mjs} +3 -3
- package/dist/{GoalStore-DpunbhUg.mjs → GoalStore-C7eTVSJT.mjs} +2 -2
- package/dist/{Help-BUxbr8mG.mjs → Help-CWsL8d5P.mjs} +1 -1
- package/dist/{LineChart-C2Q2Sr1y.mjs → LineChart-CBKadOFA.mjs} +1 -1
- package/dist/{ListItemAction-CUusHw-p.mjs → ListItemAction-CpYlo5Sh.mjs} +1 -1
- package/dist/{ManageIncome-BPmZE2fJ.mjs → ManageIncome-CcgshElP.mjs} +4 -4
- package/dist/{MicroWidgetContainer-DNTKJODy.mjs → MicroWidgetContainer-DQXTwO5i.mjs} +1 -1
- package/dist/{MiniWidgetContainer-xsVrqac5.mjs → MiniWidgetContainer-BF2Qwhh-.mjs} +1 -1
- package/dist/{NetWorthStore-BQiUgOb8.mjs → NetWorthStore-CrQtq5rq.mjs} +2 -2
- package/dist/{NotificationSettings-DEpoWNlk.mjs → NotificationSettings-CPbRHMhw.mjs} +2 -2
- package/dist/{OriginalBalanceAction-DjUO-VPz.mjs → OriginalBalanceAction-C3afa-mq.mjs} +3 -3
- package/dist/{RecurringSettings-Caf4AS16.mjs → RecurringSettings-Dhyqo_kK.mjs} +3 -3
- package/dist/{TransactionDetails-CGLeSsaa.mjs → TransactionDetails-DA-V2UTB.mjs} +5 -5
- package/dist/{TransactionStore-B8KE_GP4.mjs → TransactionStore-DoyMuj0p.mjs} +2 -2
- package/dist/{TrendsStore-DpyWU-HL.mjs → TrendsStore-ReCVjB8o.mjs} +1 -1
- package/dist/{User-CcPqTPbo.mjs → User-DD7Pb2ze.mjs} +1 -1
- package/dist/{WidgetContainer-DPzZyq22.mjs → WidgetContainer-C1NlG0pd.mjs} +2 -2
- package/dist/accounts/index.es.js +12 -12
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +10 -10
- package/dist/cashflow/index.es.js +7 -7
- package/dist/categories/index.es.js +1 -1
- package/dist/common/index.es.js +210 -215
- package/dist/common/stores/GlobalStore.d.ts +1 -1
- package/dist/dashboard/index.es.js +2 -2
- package/dist/debts/index.es.js +9 -9
- package/dist/{exportTransactionsToCSV-DsY4Aap_.mjs → exportTransactionsToCSV-Dh6fVZSs.mjs} +1 -1
- package/dist/finstrong/index.es.js +6 -6
- package/dist/goals/index.es.js +11 -11
- package/dist/help/index.es.js +3 -3
- package/dist/hooks-CTieq90n.mjs +74 -0
- package/dist/investments/index.es.js +3 -3
- package/dist/merchants/index.es.js +1 -1
- package/dist/networth/index.es.js +7 -7
- package/dist/notifications/index.es.js +2 -2
- package/dist/recurringtransactions/index.es.js +8 -8
- package/dist/settings/index.es.js +6 -6
- package/dist/spending/index.es.js +4 -4
- package/dist/transactions/index.es.js +13 -13
- package/dist/trends/index.es.js +9 -9
- package/package.json +1 -1
- package/dist/hooks-DP5qvbXf.mjs +0 -80
package/dist/common/index.es.js
CHANGED
|
@@ -1,76 +1,76 @@
|
|
|
1
1
|
import { G as M } from "../useCombineEvents-_pq30PbT.mjs";
|
|
2
2
|
import { A as ts, a as es, u as ss, b as rs } from "../useCombineEvents-_pq30PbT.mjs";
|
|
3
|
-
import { F as y, A as
|
|
4
|
-
import { B as
|
|
3
|
+
import { F as y, A as u } from "../Fetch-5yMqsiXO.mjs";
|
|
4
|
+
import { B as os } from "../BeatApi-D2Z1q0T7.mjs";
|
|
5
5
|
import { C as et } from "../CategoryStore-BXxv_Rm_.mjs";
|
|
6
6
|
import { a as is } from "../CategoryStore-BXxv_Rm_.mjs";
|
|
7
7
|
import { N as st } from "../NotificationStore-oq8Kg5Wy.mjs";
|
|
8
8
|
import { a as ds } from "../NotificationStore-oq8Kg5Wy.mjs";
|
|
9
|
-
import { T as rt } from "../User-
|
|
10
|
-
import { C as
|
|
11
|
-
import { H as
|
|
9
|
+
import { T as rt } from "../User-DD7Pb2ze.mjs";
|
|
10
|
+
import { C as ls, b as hs, L as gs, a as ps } from "../User-DD7Pb2ze.mjs";
|
|
11
|
+
import { H as at } from "../Help-DhcC-C05.mjs";
|
|
12
12
|
import { E as _s } from "../Help-DhcC-C05.mjs";
|
|
13
|
-
import { M as fs } from "../MicroWidgetContainer-
|
|
14
|
-
import { M as bs } from "../MiniWidgetContainer-
|
|
15
|
-
import { A as xs, D as Cs, W as
|
|
16
|
-
import { i as
|
|
17
|
-
import { C as qs } from "../CurrencyInput-
|
|
13
|
+
import { M as fs } from "../MicroWidgetContainer-DQXTwO5i.mjs";
|
|
14
|
+
import { M as bs } from "../MiniWidgetContainer-BF2Qwhh-.mjs";
|
|
15
|
+
import { A as xs, D as Cs, W as Ds } from "../WidgetContainer-C1NlG0pd.mjs";
|
|
16
|
+
import { i as As, a as Es, e as Ts, l as Bs, A as Is, f as Ns, j as Fs, d as Ms, k as $s, E as Rs, h as Us, N as ks, g as Ls, P as Os, m as Gs, S as Hs } from "../ConnectDrawer-COy3Xwqv.mjs";
|
|
17
|
+
import { C as qs } from "../CurrencyInput-B6gF46iv.mjs";
|
|
18
18
|
import { L as Qs } from "../Loader-DUaFpDGv.mjs";
|
|
19
19
|
import { R as zs } from "../ResponsiveButton-DZFp78fJ.mjs";
|
|
20
20
|
import { S as Ks } from "../SearchBox-B2_zLv8-.mjs";
|
|
21
|
-
import { T as
|
|
22
|
-
import { S as Vs } from "../TransactionStore-
|
|
21
|
+
import { T as ot } from "../TransactionStore-DoyMuj0p.mjs";
|
|
22
|
+
import { S as Vs } from "../TransactionStore-DoyMuj0p.mjs";
|
|
23
23
|
import { T as Js } from "../TabContentContainer-j01JYR_7.mjs";
|
|
24
24
|
import { I as er } from "../IconBacking-B9oC6uL2.mjs";
|
|
25
|
-
import { D as rr, F as
|
|
25
|
+
import { D as rr, F as ar, a as or, c as nr, R as ir, S as cr } from "../RepeatingTransaction-BW4J-jeJ.mjs";
|
|
26
26
|
import { C as nt } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
27
|
-
import { I as
|
|
28
|
-
import { d as it } from "../GoalStore-
|
|
29
|
-
import { C as hr, G as gr, M as pr, T as mr } from "../GoalStore-
|
|
27
|
+
import { I as ur } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
28
|
+
import { d as it } from "../GoalStore-C7eTVSJT.mjs";
|
|
29
|
+
import { C as hr, G as gr, M as pr, T as mr } from "../GoalStore-C7eTVSJT.mjs";
|
|
30
30
|
import { C as yr } from "../CurrencyText-YUhH2caW.mjs";
|
|
31
31
|
import { E as Sr } from "../EmptyState-C0lr9E5T.mjs";
|
|
32
|
-
import { L as wr } from "../ListItemAction-
|
|
33
|
-
import { T as ct } from "../TrendsStore-
|
|
34
|
-
import { L as Cr, S as
|
|
35
|
-
import { A as
|
|
32
|
+
import { L as wr } from "../ListItemAction-CpYlo5Sh.mjs";
|
|
33
|
+
import { T as ct } from "../TrendsStore-ReCVjB8o.mjs";
|
|
34
|
+
import { L as Cr, S as Dr, u as vr } from "../TrendsStore-ReCVjB8o.mjs";
|
|
35
|
+
import { A as Er, B as Tr, I as Br, N as Ir, T as Nr, a as Fr } from "../Notification-ByMBpJ5u.mjs";
|
|
36
36
|
import { jsxs as _, jsx as c } from "react/jsx-runtime";
|
|
37
|
-
import dt, { useRef as
|
|
37
|
+
import dt, { useRef as ut, useEffect as lt } from "react";
|
|
38
38
|
import { css as w, keyframes as ht } from "@mxenabled/cssinjs";
|
|
39
39
|
import { useTokens as x, Text as B } from "@mxenabled/mxui";
|
|
40
40
|
import { D as $r } from "../Donut-1UMNcG67.mjs";
|
|
41
|
-
import { L as Ur } from "../LineChart-
|
|
41
|
+
import { L as Ur } from "../LineChart-CBKadOFA.mjs";
|
|
42
42
|
import { S as Lr } from "../StatusBar-BK_uYHAB.mjs";
|
|
43
43
|
import { D as Gr, a as Hr, O as Pr, b as qr, f as Wr } from "../Dialog-CWW597AF.mjs";
|
|
44
44
|
import { D as gt, a as pt } from "../SingleSegmentDonut-BgbLgwHi.mjs";
|
|
45
45
|
import { S as Yr } from "../SingleSegmentDonut-BgbLgwHi.mjs";
|
|
46
46
|
import { D as Xr } from "../Drawer-kEE73B87.mjs";
|
|
47
|
-
import { I as jr, P as Vr, S as Zr } from "../Account-
|
|
48
|
-
import { b as
|
|
49
|
-
import { C as
|
|
50
|
-
import { C as
|
|
47
|
+
import { I as jr, P as Vr, S as Zr } from "../Account-DJ7VG5hs.mjs";
|
|
48
|
+
import { b as E } from "../Category-CevNQ03n.mjs";
|
|
49
|
+
import { C as ta, c as ea, a as sa, P as ra } from "../Category-CevNQ03n.mjs";
|
|
50
|
+
import { C as oa, f as na, b as ia, a as ca, g as da, i as ua } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
51
51
|
import { R as mt } from "../RecurringTransactionsStore-CbVh6M8E.mjs";
|
|
52
|
-
import { S as
|
|
53
|
-
import { G as
|
|
54
|
-
import { u as
|
|
52
|
+
import { S as ha, T as ga } from "../RecurringTransactionsStore-CbVh6M8E.mjs";
|
|
53
|
+
import { G as ma, B as _a, C as ya, W as fa, c as Sa, m as ba, g as wa, t as xa, k as Ca, x as Da, y as va, e as Aa, w as Ea, u as Ta, l as Ba, a as Ia, j as Na, z as Fa, s as Ma, b as $a, q as Ra, n as Ua, A as ka, h as La, r as Oa, f as Ga, v as Ha, o as Pa, p as qa } from "../hooks-CTieq90n.mjs";
|
|
54
|
+
import { u as Qa } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
55
55
|
import { makeAutoObservable as m, runInAction as p, reaction as _t } from "mobx";
|
|
56
|
-
import { a as yt } from "../AccountStore-
|
|
56
|
+
import { a as yt } from "../AccountStore-CxV4kxak.mjs";
|
|
57
57
|
import ft from "posthog-js";
|
|
58
58
|
import { B as St } from "../BeatStore-DkRrMYcr.mjs";
|
|
59
59
|
import { endOfMonth as Z } from "date-fns/endOfMonth";
|
|
60
60
|
import { startOfMonth as J } from "date-fns/startOfMonth";
|
|
61
61
|
import { startOfToday as L } from "date-fns/startOfToday";
|
|
62
|
-
import { f as bt, a as wt, b as O } from "../BudgetUtil-
|
|
63
|
-
import { g as
|
|
64
|
-
import { a as xt } from "../DebtsStore-
|
|
62
|
+
import { f as bt, a as wt, b as O } from "../BudgetUtil-BB9gMyLW.mjs";
|
|
63
|
+
import { g as za, e as Xa, c as Ka, d as ja, i as Va } from "../BudgetUtil-BB9gMyLW.mjs";
|
|
64
|
+
import { a as xt } from "../DebtsStore-2yxA32_7.mjs";
|
|
65
65
|
import { a as Ct } from "../FinstrongStore-COSruQ77.mjs";
|
|
66
|
-
import { A as
|
|
66
|
+
import { A as Dt, m as vt, a as At, b as Et } from "../InvestmentUtil-jOyOgzIB.mjs";
|
|
67
67
|
import { M as Tt } from "../MerchantStore-UleKHaMr.mjs";
|
|
68
|
-
import { N as Bt } from "../NetWorthStore-
|
|
68
|
+
import { N as Bt } from "../NetWorthStore-CrQtq5rq.mjs";
|
|
69
69
|
import { a as It } from "../SettingsStore-BkEnt8J1.mjs";
|
|
70
70
|
import { addMonths as Nt } from "date-fns/addMonths";
|
|
71
71
|
import { getMonth as T } from "date-fns/getMonth";
|
|
72
|
-
import { i as
|
|
73
|
-
import { b as
|
|
72
|
+
import { i as Ja } from "../DateUtil-BcuH7ErC.mjs";
|
|
73
|
+
import { b as eo, a as so, g as ro } from "../Localization-2MODESHW.mjs";
|
|
74
74
|
import { alpha as Ft, lighten as G, darken as H } from "@mui/material";
|
|
75
75
|
var Mt = /* @__PURE__ */ ((s) => (s[s.Unknown = 0] = "Unknown", s[s.EveryWeek = 1] = "EveryWeek", s[s.EveryOtherWeek = 2] = "EveryOtherWeek", s[s.EveryMonth = 3] = "EveryMonth", s[s.EveryOtherMonth = 4] = "EveryOtherMonth", s[s.EveryQuarter = 5] = "EveryQuarter", s[s.EveryOtherQuarter = 6] = "EveryOtherQuarter", s[s.EveryYear = 7] = "EveryYear", s))(Mt || {});
|
|
76
76
|
const qe = [
|
|
@@ -98,27 +98,27 @@ const Qe = (s, t) => {
|
|
|
98
98
|
dark: n ? H(n, 0.25) : i.dark,
|
|
99
99
|
darker: n ? H(n, 0.5) : i.darker
|
|
100
100
|
};
|
|
101
|
-
},
|
|
101
|
+
}, a = {
|
|
102
102
|
primary: r(e ? "primary_color_dark" : "primary_color", s.palette.primary),
|
|
103
103
|
secondary: r(e ? "neutral_color_dark" : "neutral_color", s.palette.secondary),
|
|
104
104
|
error: r(e ? "error_color_dark" : "error_color", s.palette.error),
|
|
105
105
|
warning: r(e ? "warning_color_dark" : "warning_color", s.palette.warning),
|
|
106
106
|
info: r(e ? "info_color_dark" : "info_color", s.palette.info),
|
|
107
107
|
success: r(e ? "success_color_dark" : "success_color", s.palette.success)
|
|
108
|
-
},
|
|
108
|
+
}, o = {
|
|
109
109
|
MuiTabs: {
|
|
110
110
|
styleOverrides: {
|
|
111
111
|
indicator: {
|
|
112
|
-
backgroundColor:
|
|
112
|
+
backgroundColor: a.primary.light
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
},
|
|
116
116
|
MuiPickersCalendarHeader: {
|
|
117
117
|
styleOverrides: {
|
|
118
118
|
switchViewButton: {
|
|
119
|
-
color:
|
|
119
|
+
color: a.primary.lighter,
|
|
120
120
|
"&:hover": {
|
|
121
|
-
backgroundColor: Ft(
|
|
121
|
+
backgroundColor: Ft(a.primary.light, 0.1)
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
}
|
|
@@ -213,8 +213,8 @@ const Qe = (s, t) => {
|
|
|
213
213
|
fontFamily: t?.system_font ?? s.typography.fontFamily
|
|
214
214
|
}
|
|
215
215
|
},
|
|
216
|
-
palette:
|
|
217
|
-
components:
|
|
216
|
+
palette: a,
|
|
217
|
+
components: o,
|
|
218
218
|
shape: {
|
|
219
219
|
borderRadius: t?.button_corner_radius ?? s.shape.borderRadius
|
|
220
220
|
}
|
|
@@ -242,47 +242,47 @@ class Ye {
|
|
|
242
242
|
constructor(t, e, r) {
|
|
243
243
|
this.fetchInstance = new y(t, e, void 0, r);
|
|
244
244
|
}
|
|
245
|
-
getLocalizedCopy = async (t) => this.fetchInstance.post(
|
|
246
|
-
getLocalizedContent = async (t) => this.fetchInstance.post(`${
|
|
245
|
+
getLocalizedCopy = async (t) => this.fetchInstance.post(u.LOCALIZED_COPY, t).then((e) => e);
|
|
246
|
+
getLocalizedContent = async (t) => this.fetchInstance.post(`${u.LOCALIZED_CONTENT}/${t}`).then((e) => e);
|
|
247
247
|
}
|
|
248
248
|
class ze {
|
|
249
249
|
fetchInstance;
|
|
250
250
|
constructor(t, e, r) {
|
|
251
251
|
this.fetchInstance = new y(t, e, void 0, r);
|
|
252
252
|
}
|
|
253
|
-
addScheduledPayment = async (t) => this.fetchInstance.post(
|
|
253
|
+
addScheduledPayment = async (t) => this.fetchInstance.post(u.SCHEDULED_PAYMENTS, {
|
|
254
254
|
...t,
|
|
255
255
|
is_recurring: "true",
|
|
256
256
|
transaction_type: rt.DEBIT
|
|
257
257
|
}).then((e) => e.scheduled_payment);
|
|
258
|
-
getScheduledPayments = async () => this.fetchInstance.get(
|
|
259
|
-
updateScheduledPayment = async (t) => this.fetchInstance.put(`${
|
|
260
|
-
deleteScheduledPayment = async (t) => this.fetchInstance.delete(`${
|
|
258
|
+
getScheduledPayments = async () => this.fetchInstance.get(u.SCHEDULED_PAYMENTS).then((t) => t.scheduled_payments);
|
|
259
|
+
updateScheduledPayment = async (t) => this.fetchInstance.put(`${u.SCHEDULED_PAYMENTS}/${t.guid}`, t).then((e) => e.scheduled_payment);
|
|
260
|
+
deleteScheduledPayment = async (t) => this.fetchInstance.delete(`${u.SCHEDULED_PAYMENTS}/${t}`).then((e) => e);
|
|
261
261
|
}
|
|
262
262
|
class $ {
|
|
263
263
|
fetchInstance;
|
|
264
264
|
constructor(t, e, r) {
|
|
265
265
|
this.fetchInstance = new y(t, e, void 0, r);
|
|
266
266
|
}
|
|
267
|
-
getUserFeatures = async () => this.fetchInstance.get(
|
|
268
|
-
updateUser = async (t) => this.fetchInstance.put(
|
|
269
|
-
updateUserProfile = async (t) => this.fetchInstance.put(`${
|
|
267
|
+
getUserFeatures = async () => this.fetchInstance.get(u.USER_FEATURES).then((t) => t.user_features).catch((t) => t);
|
|
268
|
+
updateUser = async (t) => this.fetchInstance.put(u.USER, t).then((e) => e.user);
|
|
269
|
+
updateUserProfile = async (t) => this.fetchInstance.put(`${u.USER_PROFILES}/${t.guid}`, t).then((e) => e.user_profile);
|
|
270
270
|
}
|
|
271
271
|
class q {
|
|
272
272
|
fetchInstance;
|
|
273
273
|
constructor(t, e) {
|
|
274
274
|
this.fetchInstance = new y(t, e);
|
|
275
275
|
}
|
|
276
|
-
requestWidgetUrl = async (t) => this.fetchInstance.post(
|
|
276
|
+
requestWidgetUrl = async (t) => this.fetchInstance.post(u.WIDGET_URLS, t).then((e) => e.widget_url);
|
|
277
277
|
}
|
|
278
278
|
const Xe = (s) => {
|
|
279
|
-
const t =
|
|
280
|
-
return
|
|
279
|
+
const t = ut();
|
|
280
|
+
return lt(() => {
|
|
281
281
|
t.current = s;
|
|
282
282
|
}, [s]), t.current;
|
|
283
283
|
}, Ut = ({ color: s, labelAverage: t, labelMain: e }) => {
|
|
284
|
-
const r = x(),
|
|
285
|
-
return /* @__PURE__ */ _("div", { className: `mx-cmn-bar-chart-legend ${
|
|
284
|
+
const r = x(), a = kt(r, s);
|
|
285
|
+
return /* @__PURE__ */ _("div", { className: `mx-cmn-bar-chart-legend ${a}`, children: [
|
|
286
286
|
/* @__PURE__ */ c("div", { "aria-label": e, className: "mx-cmn-color-square", role: "img" }),
|
|
287
287
|
/* @__PURE__ */ c(B, { variant: "XSmall", children: e }),
|
|
288
288
|
/* @__PURE__ */ _("div", { "aria-label": t, className: "mx-cmn-triple-dot", role: "img", children: [
|
|
@@ -323,13 +323,13 @@ const Xe = (s) => {
|
|
|
323
323
|
color: t,
|
|
324
324
|
height: e,
|
|
325
325
|
index: r,
|
|
326
|
-
label:
|
|
327
|
-
onClick:
|
|
326
|
+
label: a,
|
|
327
|
+
onClick: o,
|
|
328
328
|
selectedIndex: d,
|
|
329
329
|
value: i
|
|
330
330
|
}) => {
|
|
331
|
-
const n = x(),
|
|
332
|
-
|
|
331
|
+
const n = x(), l = Lt(n, t, e), h = (S) => {
|
|
332
|
+
o && (S.key === " " || S.key === "Enter") && o(r);
|
|
333
333
|
}, f = d === void 0 || d === r ? "primary" : "secondary", g = () => /* @__PURE__ */ c(
|
|
334
334
|
B,
|
|
335
335
|
{
|
|
@@ -339,17 +339,17 @@ const Xe = (s) => {
|
|
|
339
339
|
color: f,
|
|
340
340
|
component: "div",
|
|
341
341
|
variant: "Small",
|
|
342
|
-
children:
|
|
342
|
+
children: a
|
|
343
343
|
}
|
|
344
344
|
);
|
|
345
|
-
return /* @__PURE__ */ _("div", { className: `mx-cmn-bar-container ${
|
|
345
|
+
return /* @__PURE__ */ _("div", { className: `mx-cmn-bar-container ${l} ${i < 0 ? "mx-cmn-negative" : ""}`, children: [
|
|
346
346
|
i >= 0 && /* @__PURE__ */ c(g, {}),
|
|
347
347
|
/* @__PURE__ */ c(
|
|
348
348
|
"div",
|
|
349
349
|
{
|
|
350
350
|
"aria-label": s,
|
|
351
|
-
className: `mx-cmn-bar ${
|
|
352
|
-
onClick:
|
|
351
|
+
className: `mx-cmn-bar ${o ? "mx-cmn-clickable" : ""} ${i < 0 ? "mx-cmn-bar-negative" : ""}`,
|
|
352
|
+
onClick: o ? () => o?.(r) : void 0,
|
|
353
353
|
onKeyDown: h,
|
|
354
354
|
role: s ? "button" : void 0,
|
|
355
355
|
tabIndex: s ? 0 : void 0
|
|
@@ -358,7 +358,7 @@ const Xe = (s) => {
|
|
|
358
358
|
i < 0 && /* @__PURE__ */ c(g, {})
|
|
359
359
|
] });
|
|
360
360
|
}, Lt = (s, t, e) => {
|
|
361
|
-
const r = `expandBar-${Math.round(e)}`,
|
|
361
|
+
const r = `expandBar-${Math.round(e)}`, a = ht(r, { from: { height: 0 }, to: { height: e } });
|
|
362
362
|
return w({
|
|
363
363
|
display: "flex",
|
|
364
364
|
flexDirection: "column",
|
|
@@ -371,7 +371,7 @@ const Xe = (s) => {
|
|
|
371
371
|
animationDelay: ".5s",
|
|
372
372
|
animationDuration: "1s",
|
|
373
373
|
animationFillMode: "forwards",
|
|
374
|
-
animationName:
|
|
374
|
+
animationName: a,
|
|
375
375
|
animationTimingFunction: s.Easing.Default,
|
|
376
376
|
backgroundColor: t,
|
|
377
377
|
borderRadius: `${s.BorderRadius.Medium}px ${s.BorderRadius.Medium}px 0 0`,
|
|
@@ -395,51 +395,51 @@ const Xe = (s) => {
|
|
|
395
395
|
averageLineHeight: t,
|
|
396
396
|
bottomHeight: e,
|
|
397
397
|
color: r,
|
|
398
|
-
index:
|
|
399
|
-
onClick:
|
|
398
|
+
index: a = -1,
|
|
399
|
+
onClick: o,
|
|
400
400
|
range: d,
|
|
401
401
|
selectedIndex: i,
|
|
402
402
|
topHeight: n,
|
|
403
|
-
value:
|
|
403
|
+
value: l,
|
|
404
404
|
valueLabel: h = "",
|
|
405
405
|
width: f,
|
|
406
406
|
xAxisLabel: g = ""
|
|
407
407
|
}) => {
|
|
408
|
-
const S = x(), C = Ot(S, f),
|
|
408
|
+
const S = x(), C = Ot(S, f), D = l / d * n, v = Math.abs(l) / d * e, A = i === void 0 || i === a ? "primary" : "secondary";
|
|
409
409
|
return /* @__PURE__ */ _("div", { className: `mx-cmn-barchart-bar-column ${C}`, children: [
|
|
410
|
-
/* @__PURE__ */ c("div", { style: { height: n }, children:
|
|
410
|
+
/* @__PURE__ */ c("div", { style: { height: n }, children: l >= 0 && /* @__PURE__ */ c(
|
|
411
411
|
W,
|
|
412
412
|
{
|
|
413
413
|
ariaLabel: s,
|
|
414
414
|
color: r,
|
|
415
|
-
height:
|
|
416
|
-
index:
|
|
415
|
+
height: D,
|
|
416
|
+
index: a,
|
|
417
417
|
label: h,
|
|
418
|
-
onClick:
|
|
418
|
+
onClick: o,
|
|
419
419
|
selectedIndex: i,
|
|
420
|
-
value:
|
|
420
|
+
value: l
|
|
421
421
|
}
|
|
422
422
|
) }),
|
|
423
423
|
/* @__PURE__ */ c("div", { className: "mx-cmn-zero-line" }),
|
|
424
424
|
t !== 0 && /* @__PURE__ */ c("div", { className: "mx-cmn-chart-average", style: { bottom: t } }),
|
|
425
|
-
/* @__PURE__ */ c("div", { style: { height: e }, children:
|
|
425
|
+
/* @__PURE__ */ c("div", { style: { height: e }, children: l < 0 && /* @__PURE__ */ c(
|
|
426
426
|
W,
|
|
427
427
|
{
|
|
428
428
|
ariaLabel: s,
|
|
429
429
|
color: r,
|
|
430
|
-
height:
|
|
431
|
-
index:
|
|
430
|
+
height: v,
|
|
431
|
+
index: a,
|
|
432
432
|
label: h,
|
|
433
|
-
onClick:
|
|
434
|
-
value:
|
|
433
|
+
onClick: o,
|
|
434
|
+
value: l
|
|
435
435
|
}
|
|
436
436
|
) }),
|
|
437
437
|
/* @__PURE__ */ c(
|
|
438
438
|
"div",
|
|
439
439
|
{
|
|
440
|
-
className: `mx-cmn-bar-label ${
|
|
441
|
-
onClick:
|
|
442
|
-
children: /* @__PURE__ */ c(B, { bold: i ===
|
|
440
|
+
className: `mx-cmn-bar-label ${o ? "mx-cmn-clickable" : ""}`,
|
|
441
|
+
onClick: o ? () => o(a) : void 0,
|
|
442
|
+
children: /* @__PURE__ */ c(B, { bold: i === a, color: A, variant: "Small", children: g })
|
|
443
443
|
}
|
|
444
444
|
)
|
|
445
445
|
] });
|
|
@@ -476,20 +476,20 @@ const Xe = (s) => {
|
|
|
476
476
|
barWidth: t = "8%",
|
|
477
477
|
color: e,
|
|
478
478
|
data: r,
|
|
479
|
-
height:
|
|
480
|
-
legendLabelAverage:
|
|
479
|
+
height: a,
|
|
480
|
+
legendLabelAverage: o,
|
|
481
481
|
legendLabelMain: d,
|
|
482
482
|
onBarClick: i,
|
|
483
483
|
selectedIndex: n,
|
|
484
|
-
valueFormatter:
|
|
484
|
+
valueFormatter: l = (h) => `${h}`
|
|
485
485
|
}) => {
|
|
486
|
-
const h = x(), f = Qt(h), g = r.reduce(Pt, []), S = s !== void 0 ? s : g.reduce(Gt, 0) / g.length, C = Math.max(...g),
|
|
486
|
+
const h = x(), f = Qt(h), g = r.reduce(Pt, []), S = s !== void 0 ? s : g.reduce(Gt, 0) / g.length, C = Math.max(...g), D = Math.min(...g), v = g.reduce(Ht, 0), A = C >= 0, R = D < 0, I = Y(A, R, a), N = Y(R, A, a), U = qt(S, C, D, I || N), tt = (b) => n === void 0 || b === n ? e : `${e}80`, k = () => /* @__PURE__ */ c(
|
|
487
487
|
Q,
|
|
488
488
|
{
|
|
489
489
|
averageLineHeight: U,
|
|
490
490
|
bottomHeight: N,
|
|
491
491
|
color: "",
|
|
492
|
-
range:
|
|
492
|
+
range: v,
|
|
493
493
|
topHeight: I,
|
|
494
494
|
value: 0,
|
|
495
495
|
width: void 0
|
|
@@ -508,11 +508,11 @@ const Xe = (s) => {
|
|
|
508
508
|
color: tt(F),
|
|
509
509
|
index: F,
|
|
510
510
|
onClick: i,
|
|
511
|
-
range:
|
|
511
|
+
range: v,
|
|
512
512
|
selectedIndex: n,
|
|
513
513
|
topHeight: I,
|
|
514
514
|
value: b.value,
|
|
515
|
-
valueLabel:
|
|
515
|
+
valueLabel: l(b.value),
|
|
516
516
|
width: t,
|
|
517
517
|
xAxisLabel: b.label
|
|
518
518
|
}
|
|
@@ -520,7 +520,7 @@ const Xe = (s) => {
|
|
|
520
520
|
/* @__PURE__ */ c(k, {})
|
|
521
521
|
] }, `column-${F}`))
|
|
522
522
|
] }),
|
|
523
|
-
/* @__PURE__ */ c(Ut, { color: e, labelAverage:
|
|
523
|
+
/* @__PURE__ */ c(Ut, { color: e, labelAverage: o, labelMain: d })
|
|
524
524
|
] });
|
|
525
525
|
}, Qt = (s) => w({
|
|
526
526
|
"& .mx-cmn-chart-container": {
|
|
@@ -535,10 +535,10 @@ const Xe = (s) => {
|
|
|
535
535
|
segments: t,
|
|
536
536
|
size: e = gt,
|
|
537
537
|
strokeWidth: r = pt,
|
|
538
|
-
children:
|
|
538
|
+
children: a
|
|
539
539
|
}) => {
|
|
540
|
-
const
|
|
541
|
-
let
|
|
540
|
+
const o = x(), d = zt(o, e), i = (e - r) / 2, n = e / 2;
|
|
541
|
+
let l = -90 - (s ? 1 : 0), h = 0;
|
|
542
542
|
return /* @__PURE__ */ _("div", { className: `mx-cmn-multi-segment-donut ${d}`, children: [
|
|
543
543
|
/* @__PURE__ */ _("svg", { height: e, width: e, children: [
|
|
544
544
|
/* @__PURE__ */ c(
|
|
@@ -548,11 +548,11 @@ const Xe = (s) => {
|
|
|
548
548
|
cy: n,
|
|
549
549
|
fill: "none",
|
|
550
550
|
r: i,
|
|
551
|
-
stroke:
|
|
551
|
+
stroke: o.Color.Neutral300,
|
|
552
552
|
strokeWidth: r
|
|
553
553
|
}
|
|
554
554
|
),
|
|
555
|
-
t.map((f, g) => (
|
|
555
|
+
t.map((f, g) => (l += 360 * h + (s ? 1 : 0), h = (f.percent - (s ? 0.3 : 0)) / 100, /* @__PURE__ */ c(
|
|
556
556
|
"circle",
|
|
557
557
|
{
|
|
558
558
|
cx: n,
|
|
@@ -563,12 +563,12 @@ const Xe = (s) => {
|
|
|
563
563
|
strokeDasharray: 2 * Math.PI * i,
|
|
564
564
|
strokeDashoffset: 2 * Math.PI * i * (1 - h),
|
|
565
565
|
strokeWidth: r,
|
|
566
|
-
transform: `rotate(${
|
|
566
|
+
transform: `rotate(${l}, ${n}, ${n})`
|
|
567
567
|
},
|
|
568
568
|
g
|
|
569
569
|
)))
|
|
570
570
|
] }),
|
|
571
|
-
/* @__PURE__ */ c("div", { className: "mx-cmn-multi-segment-donut-children", children:
|
|
571
|
+
/* @__PURE__ */ c("div", { className: "mx-cmn-multi-segment-donut-children", children: a })
|
|
572
572
|
] });
|
|
573
573
|
}, zt = (s, t) => w({
|
|
574
574
|
height: t,
|
|
@@ -650,7 +650,7 @@ class Kt {
|
|
|
650
650
|
ft.getActiveMatchingSurveys((e) => {
|
|
651
651
|
p(() => {
|
|
652
652
|
if (e.length > 0) {
|
|
653
|
-
const r = e.find((
|
|
653
|
+
const r = e.find((a) => a.id === this.surveyId);
|
|
654
654
|
r && (this.survey = r, this.currentQuestionIndex = 0, this.question = r.questions[0], this.response = null, this.responses = {});
|
|
655
655
|
}
|
|
656
656
|
});
|
|
@@ -671,19 +671,19 @@ class z {
|
|
|
671
671
|
constructor(t, e, r) {
|
|
672
672
|
this.fetchInstance = new y(t, e, void 0, r);
|
|
673
673
|
}
|
|
674
|
-
addBudget = async (t, e, r = null) => this.fetchInstance.post(
|
|
674
|
+
addBudget = async (t, e, r = null) => this.fetchInstance.post(u.BUDGETS, {
|
|
675
675
|
amount: e,
|
|
676
676
|
category_guid: t.guid,
|
|
677
677
|
category_name: t.name,
|
|
678
678
|
parent_guid: r
|
|
679
|
-
}).then((
|
|
680
|
-
throw
|
|
679
|
+
}).then((a) => a.budget).catch((a) => {
|
|
680
|
+
throw a;
|
|
681
681
|
});
|
|
682
|
-
deleteBudget = async (t) => this.fetchInstance.delete(`${
|
|
682
|
+
deleteBudget = async (t) => this.fetchInstance.delete(`${u.BUDGETS}/${t}`).then((e) => e).catch((e) => {
|
|
683
683
|
throw e;
|
|
684
684
|
});
|
|
685
|
-
getBudgets = async () => this.fetchInstance.get(
|
|
686
|
-
updateBudget = async (t) => this.fetchInstance.put(`${
|
|
685
|
+
getBudgets = async () => this.fetchInstance.get(u.BUDGETS).then((t) => t.budgets).catch((t) => t);
|
|
686
|
+
updateBudget = async (t) => this.fetchInstance.put(`${u.BUDGETS}/${t.guid}`, t).then((e) => e.budget).catch((e) => {
|
|
687
687
|
throw e;
|
|
688
688
|
});
|
|
689
689
|
}
|
|
@@ -720,7 +720,7 @@ class jt {
|
|
|
720
720
|
get detailedBudgets() {
|
|
721
721
|
return O(
|
|
722
722
|
this.budgets.filter(
|
|
723
|
-
(t) => t.category_guid !==
|
|
723
|
+
(t) => t.category_guid !== E.INCOME && t.category_guid !== E.TRANSFER && t.category_guid !== E.INVESTMENTS
|
|
724
724
|
),
|
|
725
725
|
this.globalStore.categoryStore.detailedCategories,
|
|
726
726
|
this.globalStore.copyStore.copy.budgets,
|
|
@@ -734,7 +734,7 @@ class jt {
|
|
|
734
734
|
this.globalStore.copyStore.copy.budgets,
|
|
735
735
|
this.theme
|
|
736
736
|
).reduce(
|
|
737
|
-
(r,
|
|
737
|
+
(r, a) => a.category_guid !== E.INCOME ? r : !r || a.percentage > r.percentage ? a : r,
|
|
738
738
|
void 0
|
|
739
739
|
)?.amount;
|
|
740
740
|
}
|
|
@@ -748,12 +748,12 @@ class jt {
|
|
|
748
748
|
}
|
|
749
749
|
addBudget = async (t, e, r = null) => {
|
|
750
750
|
try {
|
|
751
|
-
const
|
|
751
|
+
const a = await this.api.addBudget(t, e, r);
|
|
752
752
|
p(() => {
|
|
753
|
-
this.budgets.push(
|
|
753
|
+
this.budgets.push(a);
|
|
754
754
|
});
|
|
755
|
-
} catch (
|
|
756
|
-
console.error(`Error adding budget: ${
|
|
755
|
+
} catch (a) {
|
|
756
|
+
console.error(`Error adding budget: ${a}`);
|
|
757
757
|
}
|
|
758
758
|
};
|
|
759
759
|
deleteBudget = async (t) => {
|
|
@@ -788,14 +788,14 @@ class jt {
|
|
|
788
788
|
recalculateBudgets = async (t) => {
|
|
789
789
|
try {
|
|
790
790
|
for (const r of t) {
|
|
791
|
-
const
|
|
792
|
-
|
|
793
|
-
...
|
|
791
|
+
const a = this.budgets.find((o) => o.category_guid === r.guid);
|
|
792
|
+
a ? await this.api.updateBudget({
|
|
793
|
+
...a,
|
|
794
794
|
amount: r.totalAverageAmount
|
|
795
795
|
}) : await this.api.addBudget(r, r.totalAverageAmount);
|
|
796
796
|
}
|
|
797
797
|
const e = this.budgets.filter(
|
|
798
|
-
(r) => !t.find((
|
|
798
|
+
(r) => !t.find((a) => a.guid === r.category_guid)
|
|
799
799
|
);
|
|
800
800
|
for (const r of e)
|
|
801
801
|
await this.api.deleteBudget(r.guid);
|
|
@@ -808,7 +808,7 @@ class jt {
|
|
|
808
808
|
try {
|
|
809
809
|
const e = await this.api.updateBudget(t);
|
|
810
810
|
p(() => {
|
|
811
|
-
const r = this.budgets.findIndex((
|
|
811
|
+
const r = this.budgets.findIndex((a) => a.guid === t.guid);
|
|
812
812
|
r >= 0 && (this.budgets[r] = e);
|
|
813
813
|
});
|
|
814
814
|
} catch (e) {
|
|
@@ -822,22 +822,22 @@ class X {
|
|
|
822
822
|
constructor(t, e, r) {
|
|
823
823
|
this.fetchInstance = new y(t, e, void 0, r);
|
|
824
824
|
}
|
|
825
|
-
createSupportTicket = async (t) => this.fetchInstance.post(
|
|
825
|
+
createSupportTicket = async (t) => this.fetchInstance.post(u.SUPPORT_TICKETS, t).then((e) => e);
|
|
826
826
|
}
|
|
827
827
|
const ee = (s, t) => s.guid === "general" || s.guid === "insights" ? !0 : s.flags ? s.flags.every((e) => t[e]) : !1, se = (s, t) => {
|
|
828
828
|
const e = [];
|
|
829
|
-
for (const r of
|
|
830
|
-
const
|
|
831
|
-
if (!
|
|
832
|
-
const
|
|
829
|
+
for (const r of at) {
|
|
830
|
+
const a = t[r.guid];
|
|
831
|
+
if (!a) continue;
|
|
832
|
+
const o = {
|
|
833
833
|
...r,
|
|
834
|
-
title:
|
|
834
|
+
title: a.label,
|
|
835
835
|
topics: r.topics.map(({ topicKey: d }, i) => ({
|
|
836
836
|
topicKey: d,
|
|
837
|
-
label:
|
|
837
|
+
label: a.topics[i]
|
|
838
838
|
}))
|
|
839
839
|
};
|
|
840
|
-
ee(
|
|
840
|
+
ee(o, s) && e.push(o);
|
|
841
841
|
}
|
|
842
842
|
return e;
|
|
843
843
|
};
|
|
@@ -882,11 +882,11 @@ class K {
|
|
|
882
882
|
constructor(t, e, r) {
|
|
883
883
|
this.fetchInstance = new y(t, e, void 0, r);
|
|
884
884
|
}
|
|
885
|
-
getHoldings = async () => this.fetchInstance.get(
|
|
886
|
-
updateHoldings = async (t) => this.fetchInstance.put(`${
|
|
885
|
+
getHoldings = async () => this.fetchInstance.get(u.HOLDINGS).then((t) => t.holdings);
|
|
886
|
+
updateHoldings = async (t) => this.fetchInstance.put(`${u.HOLDINGS}/${t.guid}`, t).then((e) => e.holding);
|
|
887
887
|
}
|
|
888
|
-
class
|
|
889
|
-
analysisType =
|
|
888
|
+
class ae {
|
|
889
|
+
analysisType = Dt.Stocks;
|
|
890
890
|
api = new K("/", "");
|
|
891
891
|
holdings = [];
|
|
892
892
|
holdingsLoaded = !1;
|
|
@@ -896,10 +896,10 @@ class oe {
|
|
|
896
896
|
this.globalStore = t, this.api = new K(t.endpoint, t.sessionToken, t.onError), m(this);
|
|
897
897
|
}
|
|
898
898
|
get analysisChartData() {
|
|
899
|
-
return
|
|
899
|
+
return vt(At(this.visibleHoldings), this.analysisType);
|
|
900
900
|
}
|
|
901
901
|
get analysisDetails() {
|
|
902
|
-
return
|
|
902
|
+
return Et(this.visibleHoldings)[this.analysisType] || {};
|
|
903
903
|
}
|
|
904
904
|
get visibleHoldings() {
|
|
905
905
|
return this.holdings.filter(
|
|
@@ -925,11 +925,11 @@ class oe {
|
|
|
925
925
|
updateHoldings = async (t) => {
|
|
926
926
|
this.holdingsLoaded = !1;
|
|
927
927
|
try {
|
|
928
|
-
const e = await this.api.updateHoldings(t), r = this.holdings.findIndex(({ guid:
|
|
928
|
+
const e = await this.api.updateHoldings(t), r = this.holdings.findIndex(({ guid: a }) => a === t.guid);
|
|
929
929
|
if (r >= 0) {
|
|
930
|
-
const
|
|
931
|
-
|
|
932
|
-
this.holdings =
|
|
930
|
+
const a = [...this.holdings];
|
|
931
|
+
a[r] = e, p(() => {
|
|
932
|
+
this.holdings = a, this.holdingsLoaded = !0;
|
|
933
933
|
});
|
|
934
934
|
}
|
|
935
935
|
} catch (e) {
|
|
@@ -1044,9 +1044,9 @@ class V {
|
|
|
1044
1044
|
constructor(t, e, r) {
|
|
1045
1045
|
this.fetchInstance = new y(t, e, void 0, r);
|
|
1046
1046
|
}
|
|
1047
|
-
getAppData = async () => this.fetchInstance.get(
|
|
1047
|
+
getAppData = async () => this.fetchInstance.get(u.APP_DATA).then((t) => t);
|
|
1048
1048
|
}
|
|
1049
|
-
class
|
|
1049
|
+
class oe {
|
|
1050
1050
|
globalStore;
|
|
1051
1051
|
api = new V("/", "");
|
|
1052
1052
|
bannerApi = new P("/");
|
|
@@ -1135,8 +1135,8 @@ class ie {
|
|
|
1135
1135
|
};
|
|
1136
1136
|
// Sets an array of selected account guids for the AccountFilter component
|
|
1137
1137
|
setSelectedAccountGuids = async (t) => {
|
|
1138
|
-
const e = new Set(this.selectedAccountGuids), r = new Set(t),
|
|
1139
|
-
|
|
1138
|
+
const e = new Set(this.selectedAccountGuids), r = new Set(t), a = [...r].filter((d) => !e.has(d)), o = [...e].filter((d) => !r.has(d));
|
|
1139
|
+
a.length > 0 && this.globalStore.accountStore.updateAccountFiltering(a, !1), o.length > 0 && this.globalStore.accountStore.updateAccountFiltering(o, !0), this.selectedAccountGuids = t;
|
|
1140
1140
|
};
|
|
1141
1141
|
setDisplayedDate = (t, e) => {
|
|
1142
1142
|
this.displayedDate = e, this.displayedDateRange = {
|
|
@@ -1229,13 +1229,8 @@ class Ve {
|
|
|
1229
1229
|
userStore;
|
|
1230
1230
|
// UI Stores
|
|
1231
1231
|
globalUiStore;
|
|
1232
|
-
constructor(t = j, e = "/"
|
|
1233
|
-
|
|
1234
|
-
this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.onError = r, console.info("GlobalStore onError:", this.onError?.toString()), this.accountStore = new yt(this), this.appDataStore = new ae(this), this.analyticsStore = new Kt({ ...this, onError: void 0 }), this.beatStore = new St(this), this.budgetsStore = new jt(this), this.cashflowStore = new nt({ ...this, onError: void 0 }), this.categoryStore = new et(this), this.connectStore = new ne({ ...this, onError: void 0 }), this.copyStore = new Xt(this), this.debtsStore = new xt({ ...this, onError: void 0 }), this.finstrongStore = new Ct(this), this.goalStore = new it(this), this.helpStore = new re(this), this.holdingStore = new oe(this), this.merchantStore = new Tt(this), this.netWorthStore = new Bt({ ...this, onError: void 0 }), this.notificationStore = new st(this), this.recurringTransactionsStore = new mt(this), this.settingsStore = new It(this), this.transactionStore = new at(this), this.trendsStore = new ct({ ...this, onError: void 0 }), this.userStore = new ce(this), this.globalUiStore = new ie({ ...this, onError: void 0 });
|
|
1235
|
-
} catch (o) {
|
|
1236
|
-
throw console.error("GlobalStore constructor error:", o), o;
|
|
1237
|
-
}
|
|
1238
|
-
m(this);
|
|
1232
|
+
constructor(t = j, e = "/") {
|
|
1233
|
+
this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.accountStore = new yt(this), this.appDataStore = new oe(this), this.analyticsStore = new Kt(this), this.beatStore = new St(this), this.budgetsStore = new jt(this), this.cashflowStore = new nt(this), this.categoryStore = new et(this), this.connectStore = new ne(this), this.copyStore = new Xt(this), this.debtsStore = new xt(this), this.finstrongStore = new Ct(this), this.goalStore = new it(this), this.helpStore = new re(this), this.holdingStore = new ae(this), this.merchantStore = new Tt(this), this.netWorthStore = new Bt(this), this.notificationStore = new st(this), this.recurringTransactionsStore = new mt(this), this.settingsStore = new It(this), this.transactionStore = new ot(this), this.trendsStore = new ct(this), this.userStore = new ce(this), this.globalUiStore = new ie(this), m(this);
|
|
1239
1234
|
}
|
|
1240
1235
|
get isInitialized() {
|
|
1241
1236
|
return this.globalUiStore.isInitialized;
|
|
@@ -1244,8 +1239,8 @@ class Ve {
|
|
|
1244
1239
|
accounts: t,
|
|
1245
1240
|
appData: e,
|
|
1246
1241
|
associatedBeats: r,
|
|
1247
|
-
categories:
|
|
1248
|
-
institutions:
|
|
1242
|
+
categories: a,
|
|
1243
|
+
institutions: o,
|
|
1249
1244
|
transactionRules: d,
|
|
1250
1245
|
transactions: i,
|
|
1251
1246
|
userFeatures: n
|
|
@@ -1256,8 +1251,8 @@ class Ve {
|
|
|
1256
1251
|
this.appDataStore.loadAppData(e),
|
|
1257
1252
|
this.userStore.loadUserFeatures(n)
|
|
1258
1253
|
]), await Promise.all([
|
|
1259
|
-
this.accountStore.loadAccountData({ accounts: t, institutions:
|
|
1260
|
-
this.categoryStore.loadCategories(
|
|
1254
|
+
this.accountStore.loadAccountData({ accounts: t, institutions: o }),
|
|
1255
|
+
this.categoryStore.loadCategories(a),
|
|
1261
1256
|
this.transactionStore.loadTransactionData({
|
|
1262
1257
|
associatedBeats: r,
|
|
1263
1258
|
transactionRules: d,
|
|
@@ -1268,31 +1263,31 @@ class Ve {
|
|
|
1268
1263
|
}
|
|
1269
1264
|
export {
|
|
1270
1265
|
xs as ANALYTICS_EVENTS,
|
|
1271
|
-
|
|
1272
|
-
|
|
1266
|
+
As as AccountFilter,
|
|
1267
|
+
Es as AccountIcon,
|
|
1273
1268
|
Ts as AccountIconVariants,
|
|
1274
|
-
|
|
1269
|
+
Er as AccountNotificationTypes,
|
|
1275
1270
|
Bs as AccountSubType,
|
|
1276
1271
|
Is as AccountType,
|
|
1277
1272
|
Ns as AccountTypeName,
|
|
1278
1273
|
ts as AnalyticsApi,
|
|
1279
|
-
|
|
1274
|
+
u as ApiEndpoints,
|
|
1280
1275
|
P as BannerApi,
|
|
1281
1276
|
Ke as BarChart,
|
|
1282
|
-
|
|
1277
|
+
os as BeatApi,
|
|
1283
1278
|
Tr as BudgetNotificationTypes,
|
|
1284
|
-
|
|
1279
|
+
ls as Calendar,
|
|
1285
1280
|
hs as CalendarSelectionTypes,
|
|
1286
1281
|
is as CategoryApi,
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1282
|
+
ta as CategoryColors,
|
|
1283
|
+
ea as CategoryGuidToName,
|
|
1284
|
+
E as CategoryGuids,
|
|
1285
|
+
sa as CategoryIcon,
|
|
1291
1286
|
hr as ConnectCard,
|
|
1292
1287
|
Fs as ConnectDrawer,
|
|
1293
1288
|
Ms as ConnectionStatus,
|
|
1294
1289
|
$s as ConnectionStatusEnums,
|
|
1295
|
-
|
|
1290
|
+
oa as CurrencyCodes,
|
|
1296
1291
|
qs as CurrencyInput,
|
|
1297
1292
|
yr as CurrencyText,
|
|
1298
1293
|
Gr as DATE_FORMATS_INTL,
|
|
@@ -1308,16 +1303,16 @@ export {
|
|
|
1308
1303
|
Rs as ErrorStatuses,
|
|
1309
1304
|
Zt as ExpenseStatus,
|
|
1310
1305
|
y as Fetch,
|
|
1311
|
-
|
|
1306
|
+
ar as Frequency,
|
|
1312
1307
|
M as GlobalCopyApi,
|
|
1313
1308
|
Xt as GlobalCopyStore,
|
|
1314
|
-
|
|
1315
|
-
|
|
1309
|
+
ma as GlobalDataContext,
|
|
1310
|
+
_a as GlobalDataProvider,
|
|
1316
1311
|
Ve as GlobalStore,
|
|
1317
1312
|
gr as GoalType,
|
|
1318
1313
|
jr as INCOME_ACCOUNT_TYPES,
|
|
1319
1314
|
er as IconBacking,
|
|
1320
|
-
|
|
1315
|
+
ur as InformationTooltip,
|
|
1321
1316
|
Br as InsightNotificationTypes,
|
|
1322
1317
|
Rt as IterationItemTypes,
|
|
1323
1318
|
We as LOADING_STATUS,
|
|
@@ -1338,13 +1333,13 @@ export {
|
|
|
1338
1333
|
Pr as ORDINAL_DATE_FORMAT,
|
|
1339
1334
|
qr as ORDINAL_MONTH_DAY_YEAR_FORMAT,
|
|
1340
1335
|
Vr as PAYMENT_ACCOUNT_TYPES,
|
|
1341
|
-
|
|
1336
|
+
ra as PaymentCategories,
|
|
1342
1337
|
$t as PlanTypes,
|
|
1343
1338
|
Ls as ProcessingStatuses,
|
|
1344
1339
|
Os as PropertyType,
|
|
1345
1340
|
Gs as PropertyTypeName,
|
|
1346
1341
|
qe as RECURRENCE_COPY,
|
|
1347
|
-
|
|
1342
|
+
or as RecurrenceStatus,
|
|
1348
1343
|
nr as RecurrenceType,
|
|
1349
1344
|
Mt as RecurrenceTypes,
|
|
1350
1345
|
ir as RepeatingType,
|
|
@@ -1357,11 +1352,11 @@ export {
|
|
|
1357
1352
|
cr as Select,
|
|
1358
1353
|
Vs as SelectionBox,
|
|
1359
1354
|
Yr as SingleSegmentDonut,
|
|
1360
|
-
|
|
1361
|
-
|
|
1355
|
+
ha as Sizes,
|
|
1356
|
+
Dr as StackedLineChart,
|
|
1362
1357
|
Lr as StatusBar,
|
|
1363
1358
|
Hs as StatusName,
|
|
1364
|
-
|
|
1359
|
+
ga as TOUCH_TARGET,
|
|
1365
1360
|
Js as TabContentContainer,
|
|
1366
1361
|
Nr as ToggleButtonListItem,
|
|
1367
1362
|
Fr as ToggleListItem,
|
|
@@ -1372,54 +1367,54 @@ export {
|
|
|
1372
1367
|
ce as UserStore,
|
|
1373
1368
|
Vt as UserVerification,
|
|
1374
1369
|
q as WidgetApi,
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1370
|
+
Ds as WidgetContainer,
|
|
1371
|
+
ya as WidgetContainerContext,
|
|
1372
|
+
fa as WidgetContainerProvider,
|
|
1378
1373
|
es as analyticsSession,
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1374
|
+
eo as buildDynamicCopy,
|
|
1375
|
+
so as buildPluralCopy,
|
|
1376
|
+
na as formatCurrency,
|
|
1382
1377
|
Wr as formatDate,
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1378
|
+
ia as formatOrdinal,
|
|
1379
|
+
ca as formatPercentage,
|
|
1380
|
+
Ja as fromTimestampToMonthYear,
|
|
1381
|
+
za as getCategory,
|
|
1382
|
+
Xa as getCategoryTotalsByParent,
|
|
1388
1383
|
Qe as getClientTheme,
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1384
|
+
da as getCurrencyCodes,
|
|
1385
|
+
Ka as getDetailedCategory,
|
|
1386
|
+
ja as getDetailedSubCategory,
|
|
1387
|
+
ro as getLocale,
|
|
1388
|
+
Va as isIncome,
|
|
1389
|
+
ua as isValidNumber,
|
|
1390
|
+
Sa as useAccountStore,
|
|
1391
|
+
ba as useAppConfig,
|
|
1392
|
+
wa as useBudgetsStore,
|
|
1393
|
+
xa as useCashflowStore,
|
|
1394
|
+
Ca as useCategoryStore,
|
|
1400
1395
|
ss as useCombineEvents,
|
|
1401
1396
|
rs as useCombinePageviews,
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1397
|
+
Da as useDebtStore,
|
|
1398
|
+
va as useError,
|
|
1399
|
+
Aa as useEvent,
|
|
1400
|
+
Ea as useFinstrongStore,
|
|
1401
|
+
Ta as useGlobalCopyStore,
|
|
1402
|
+
Ba as useGlobalStore,
|
|
1403
|
+
Ia as useGlobalUiStore,
|
|
1404
|
+
Na as useGoalStore,
|
|
1405
|
+
Fa as useHelpStore,
|
|
1406
|
+
Ma as useHoldingStore,
|
|
1407
|
+
vr as useInsightsEnabled,
|
|
1408
|
+
$a as useMerchantStore,
|
|
1409
|
+
Ra as useNetWorthStore,
|
|
1410
|
+
Ua as useNotificationStore,
|
|
1411
|
+
ka as usePageView,
|
|
1417
1412
|
Xe as usePrevious,
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1413
|
+
La as useRecurringTransactionsStore,
|
|
1414
|
+
Qa as useScreenSize,
|
|
1415
|
+
Oa as useSettingsStore,
|
|
1416
|
+
Ga as useTransactionStore,
|
|
1417
|
+
Ha as useTrendsStore,
|
|
1418
|
+
Pa as useUserStore,
|
|
1419
|
+
qa as useWidgetContainerProvider
|
|
1425
1420
|
};
|