@mx-cartographer/experiences 7.0.20-alpha.mm1 → 7.0.20-alpha.mm10
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-DY2axAET.mjs → Account-BBBmuevX.mjs} +1 -1
- package/dist/{AccountDetailsContent-Jsg4ZDC1.mjs → AccountDetailsContent-CBMyP0qE.mjs} +8 -8
- package/dist/{AccountDetailsHeader-EU_2u2Iq.mjs → AccountDetailsHeader-DI9jP782.mjs} +5 -5
- package/dist/{AccountFields-CSUS7pGn.mjs → AccountFields-B3_ohSze.mjs} +2 -2
- package/dist/{AccountListItem-CMYZQg8M.mjs → AccountListItem-DSmnVvew.mjs} +3 -3
- package/dist/{AccountStore-C3Db40GZ.mjs → AccountStore-BIYFjW3F.mjs} +3 -3
- package/dist/{Accounts-xi9RGRIU.mjs → Accounts-BJTc3HSo.mjs} +1 -1
- package/dist/{BeatApi-Cd25OYIU.mjs → BeatApi-D2Z1q0T7.mjs} +1 -1
- package/dist/{BeatStore-BjXskQbX.mjs → BeatStore-DkRrMYcr.mjs} +1 -1
- package/dist/{BudgetUtil-DmWvHV7C.mjs → BudgetUtil-BMRbnAFw.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-BHqOpBNr.mjs → CategorySelectorDrawer-CAod2Vqw.mjs} +1 -1
- package/dist/{CategoryStore-Cklqb42u.mjs → CategoryStore-BXxv_Rm_.mjs} +1 -1
- package/dist/{ConnectDrawer-CU5dEdrU.mjs → ConnectDrawer-1Ls-Dy8f.mjs} +1 -1
- package/dist/{ConnectionsDrawer-BUJuQrgF.mjs → ConnectionsDrawer-DbkrKujv.mjs} +2 -2
- package/dist/{CurrencyInput-BtrNBP3z.mjs → CurrencyInput-DYciN44m.mjs} +1 -1
- package/dist/{DebtsStore-X3cUJZti.mjs → DebtsStore-Ddmthcvq.mjs} +1 -1
- package/dist/{ExportCsvAction-CUGnEaHw.mjs → ExportCsvAction-BJwlwQb2.mjs} +3 -3
- package/dist/{Fetch-ykKOFjXN.mjs → Fetch-5yMqsiXO.mjs} +15 -15
- package/dist/{FinstrongStore-DRPblFEQ.mjs → FinstrongStore-COSruQ77.mjs} +1 -1
- package/dist/{GoalStore-CJ56mSvU.mjs → GoalStore-FQBFVj1W.mjs} +12 -12
- package/dist/{Help-CCuoAZT3.mjs → Help-9NlLUG6t.mjs} +1 -1
- package/dist/{LineChart-D5uLCys4.mjs → LineChart-D5PHhI6d.mjs} +1 -1
- package/dist/{ListItemAction-Cwadpg85.mjs → ListItemAction-Dd5g0n8L.mjs} +1 -1
- package/dist/{ManageIncome-B91zIeYo.mjs → ManageIncome-DpEds6E9.mjs} +4 -4
- package/dist/{MerchantStore-CxSXtH9k.mjs → MerchantStore-UleKHaMr.mjs} +1 -1
- package/dist/{MicroWidgetContainer-DwTAjSdX.mjs → MicroWidgetContainer-BZAgWMDR.mjs} +1 -1
- package/dist/{MiniWidgetContainer-CxggrnHk.mjs → MiniWidgetContainer-p48yqiGx.mjs} +1 -1
- package/dist/{NetWorthStore-CYYTpP9O.mjs → NetWorthStore-B4Oc_nKv.mjs} +2 -2
- package/dist/{NotificationSettings-BhJ2PUkt.mjs → NotificationSettings-BdO02iPq.mjs} +2 -2
- package/dist/{NotificationStore-C7KtK3OV.mjs → NotificationStore-oq8Kg5Wy.mjs} +1 -1
- package/dist/{OriginalBalanceAction-DDMRgIBU.mjs → OriginalBalanceAction-DjDTPZQK.mjs} +3 -3
- package/dist/{RecurringSettings-CGGFhlhh.mjs → RecurringSettings-CTSPamOJ.mjs} +3 -3
- package/dist/{RecurringTransactionsStore-DK4pjUDR.mjs → RecurringTransactionsStore-CbVh6M8E.mjs} +1 -1
- package/dist/{SettingsStore-LF8dURII.mjs → SettingsStore-BkEnt8J1.mjs} +2 -2
- package/dist/{TransactionApi-cNhaf-gP.mjs → TransactionApi-CVmOYZsA.mjs} +1 -1
- package/dist/{TransactionDetails-Bc0iW26I.mjs → TransactionDetails-Z3a-b44C.mjs} +5 -5
- package/dist/{TransactionStore-DyG1muEX.mjs → TransactionStore-BFy6WNEO.mjs} +4 -4
- package/dist/{TrendsStore-DmuQennN.mjs → TrendsStore-C1W4Bwjy.mjs} +1 -1
- package/dist/{User-B9T_314z.mjs → User-mjgtlWbD.mjs} +1 -1
- package/dist/{ViewMoreMicroCard-DPnAhQEx.mjs → ViewMoreMicroCard-CPIaoYx7.mjs} +2 -2
- package/dist/{WidgetContainer-CTrp2veH.mjs → WidgetContainer-BXEvzW-v.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 +8 -8
- package/dist/categories/index.es.js +2 -2
- package/dist/common/index.es.js +208 -203
- 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-ct1RkLbj.mjs → exportTransactionsToCSV-C1I0dqru.mjs} +1 -1
- package/dist/finstrong/index.es.js +7 -7
- package/dist/goals/index.es.js +11 -11
- package/dist/help/index.es.js +3 -3
- package/dist/hooks-I1Dphhm4.mjs +82 -0
- package/dist/insights/index.es.js +1 -1
- package/dist/investments/index.es.js +3 -3
- package/dist/merchants/index.es.js +2 -2
- 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/index.es.js +10 -10
- package/dist/settings/index.es.js +7 -7
- package/dist/spending/index.es.js +4 -4
- package/dist/transactions/index.es.js +14 -14
- package/dist/trends/index.es.js +10 -10
- package/dist/{useCombineEvents-Bh-gCRSN.mjs → useCombineEvents-_pq30PbT.mjs} +1 -1
- package/package.json +1 -1
- package/dist/hooks-DcS6DyRl.mjs +0 -74
package/dist/common/index.es.js
CHANGED
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
import { G as M } from "../useCombineEvents-
|
|
2
|
-
import { A as ts, a as es, u as ss, b as rs } from "../useCombineEvents-
|
|
3
|
-
import { F as y, A as
|
|
4
|
-
import { B as
|
|
5
|
-
import { C as et } from "../CategoryStore-
|
|
6
|
-
import { a as is } from "../CategoryStore-
|
|
7
|
-
import { N as st } from "../NotificationStore-
|
|
8
|
-
import { a as ds } from "../NotificationStore-
|
|
9
|
-
import { T as rt } from "../User-
|
|
10
|
-
import { C as
|
|
11
|
-
import { H as
|
|
1
|
+
import { G as M } from "../useCombineEvents-_pq30PbT.mjs";
|
|
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 l } from "../Fetch-5yMqsiXO.mjs";
|
|
4
|
+
import { B as as } from "../BeatApi-D2Z1q0T7.mjs";
|
|
5
|
+
import { C as et } from "../CategoryStore-BXxv_Rm_.mjs";
|
|
6
|
+
import { a as is } from "../CategoryStore-BXxv_Rm_.mjs";
|
|
7
|
+
import { N as st } from "../NotificationStore-oq8Kg5Wy.mjs";
|
|
8
|
+
import { a as ds } from "../NotificationStore-oq8Kg5Wy.mjs";
|
|
9
|
+
import { T as rt } from "../User-mjgtlWbD.mjs";
|
|
10
|
+
import { C as us, b as hs, L as gs, a as ps } from "../User-mjgtlWbD.mjs";
|
|
11
|
+
import { H as ot } 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 vs } from "../WidgetContainer-
|
|
16
|
-
import { i as Es, a as As, 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-
|
|
17
|
-
import { C as qs } from "../CurrencyInput-
|
|
13
|
+
import { M as fs } from "../MicroWidgetContainer-BZAgWMDR.mjs";
|
|
14
|
+
import { M as bs } from "../MiniWidgetContainer-p48yqiGx.mjs";
|
|
15
|
+
import { A as xs, D as Cs, W as vs } from "../WidgetContainer-BXEvzW-v.mjs";
|
|
16
|
+
import { i as Es, a as As, 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-1Ls-Dy8f.mjs";
|
|
17
|
+
import { C as qs } from "../CurrencyInput-DYciN44m.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 at } from "../TransactionStore-BFy6WNEO.mjs";
|
|
22
|
+
import { S as Vs } from "../TransactionStore-BFy6WNEO.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 or, a as ar, 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 lr } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
28
|
+
import { d as it } from "../GoalStore-FQBFVj1W.mjs";
|
|
29
|
+
import { C as hr, G as gr, M as pr, T as mr } from "../GoalStore-FQBFVj1W.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 vr, u as Dr } from "../TrendsStore-
|
|
32
|
+
import { L as wr } from "../ListItemAction-Dd5g0n8L.mjs";
|
|
33
|
+
import { T as ct } from "../TrendsStore-C1W4Bwjy.mjs";
|
|
34
|
+
import { L as Cr, S as vr, u as Dr } from "../TrendsStore-C1W4Bwjy.mjs";
|
|
35
35
|
import { A as Ar, 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 lt, useEffect as ut } 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-D5PHhI6d.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-
|
|
47
|
+
import { I as jr, P as Vr, S as Zr } from "../Account-BBBmuevX.mjs";
|
|
48
48
|
import { b as A } from "../Category-CevNQ03n.mjs";
|
|
49
|
-
import { C as
|
|
50
|
-
import { C as
|
|
51
|
-
import { R as mt } from "../RecurringTransactionsStore-
|
|
52
|
-
import { S as
|
|
53
|
-
import { G as
|
|
54
|
-
import { u as
|
|
49
|
+
import { C as to, c as eo, a as so, P as ro } from "../Category-CevNQ03n.mjs";
|
|
50
|
+
import { C as ao, f as no, b as io, a as co, g as lo, i as uo } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
51
|
+
import { R as mt } from "../RecurringTransactionsStore-CbVh6M8E.mjs";
|
|
52
|
+
import { S as go, T as po } from "../RecurringTransactionsStore-CbVh6M8E.mjs";
|
|
53
|
+
import { G as _o, B as yo, C as fo, W as So, c as bo, m as wo, g as xo, t as Co, k as vo, x as Do, y as Eo, e as Ao, w as To, u as Bo, l as Io, a as No, j as Fo, z as Mo, s as $o, b as Ro, q as Uo, n as ko, A as Lo, h as Oo, r as Go, f as Ho, v as Po, o as qo, p as Wo } from "../hooks-I1Dphhm4.mjs";
|
|
54
|
+
import { u as Yo } 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-BIYFjW3F.mjs";
|
|
57
57
|
import ft from "posthog-js";
|
|
58
|
-
import { B as St } from "../BeatStore-
|
|
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-
|
|
65
|
-
import { a as Ct } from "../FinstrongStore-
|
|
62
|
+
import { f as bt, a as wt, b as O } from "../BudgetUtil-BMRbnAFw.mjs";
|
|
63
|
+
import { g as Xo, e as Ko, c as jo, d as Vo, i as Zo } from "../BudgetUtil-BMRbnAFw.mjs";
|
|
64
|
+
import { a as xt } from "../DebtsStore-Ddmthcvq.mjs";
|
|
65
|
+
import { a as Ct } from "../FinstrongStore-COSruQ77.mjs";
|
|
66
66
|
import { A as vt, m as Dt, a as Et, b as At } from "../InvestmentUtil-jOyOgzIB.mjs";
|
|
67
|
-
import { M as Tt } from "../MerchantStore-
|
|
68
|
-
import { N as Bt } from "../NetWorthStore-
|
|
69
|
-
import { a as It } from "../SettingsStore-
|
|
67
|
+
import { M as Tt } from "../MerchantStore-UleKHaMr.mjs";
|
|
68
|
+
import { N as Bt } from "../NetWorthStore-B4Oc_nKv.mjs";
|
|
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 ta } from "../DateUtil-BcuH7ErC.mjs";
|
|
73
|
+
import { b as sa, a as ra, g as oa } 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
|
+
}, o = {
|
|
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
|
+
}, a = {
|
|
109
109
|
MuiTabs: {
|
|
110
110
|
styleOverrides: {
|
|
111
111
|
indicator: {
|
|
112
|
-
backgroundColor:
|
|
112
|
+
backgroundColor: o.primary.light
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
},
|
|
116
116
|
MuiPickersCalendarHeader: {
|
|
117
117
|
styleOverrides: {
|
|
118
118
|
switchViewButton: {
|
|
119
|
-
color:
|
|
119
|
+
color: o.primary.lighter,
|
|
120
120
|
"&:hover": {
|
|
121
|
-
backgroundColor: Ft(
|
|
121
|
+
backgroundColor: Ft(o.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: o,
|
|
217
|
+
components: a,
|
|
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(l.LOCALIZED_COPY, t).then((e) => e);
|
|
246
|
+
getLocalizedContent = async (t) => this.fetchInstance.post(`${l.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(l.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(l.SCHEDULED_PAYMENTS).then((t) => t.scheduled_payments);
|
|
259
|
+
updateScheduledPayment = async (t) => this.fetchInstance.put(`${l.SCHEDULED_PAYMENTS}/${t.guid}`, t).then((e) => e.scheduled_payment);
|
|
260
|
+
deleteScheduledPayment = async (t) => this.fetchInstance.delete(`${l.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(l.USER_FEATURES).then((t) => t.user_features).catch((t) => t);
|
|
268
|
+
updateUser = async (t) => this.fetchInstance.put(l.USER, t).then((e) => e.user);
|
|
269
|
+
updateUserProfile = async (t) => this.fetchInstance.put(`${l.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(l.WIDGET_URLS, t).then((e) => e.widget_url);
|
|
277
277
|
}
|
|
278
278
|
const Xe = (s) => {
|
|
279
|
-
const t =
|
|
280
|
-
return
|
|
279
|
+
const t = lt();
|
|
280
|
+
return ut(() => {
|
|
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(), o = kt(r, s);
|
|
285
|
+
return /* @__PURE__ */ _("div", { className: `mx-cmn-bar-chart-legend ${o}`, 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: o,
|
|
327
|
+
onClick: a,
|
|
328
328
|
selectedIndex: d,
|
|
329
329
|
value: i
|
|
330
330
|
}) => {
|
|
331
|
-
const n = x(),
|
|
332
|
-
|
|
331
|
+
const n = x(), u = Lt(n, t, e), h = (S) => {
|
|
332
|
+
a && (S.key === " " || S.key === "Enter") && a(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: o
|
|
343
343
|
}
|
|
344
344
|
);
|
|
345
|
-
return /* @__PURE__ */ _("div", { className: `mx-cmn-bar-container ${
|
|
345
|
+
return /* @__PURE__ */ _("div", { className: `mx-cmn-bar-container ${u} ${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 ${a ? "mx-cmn-clickable" : ""} ${i < 0 ? "mx-cmn-bar-negative" : ""}`,
|
|
352
|
+
onClick: a ? () => a?.(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)}`, o = 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: o,
|
|
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: o = -1,
|
|
399
|
+
onClick: a,
|
|
400
400
|
range: d,
|
|
401
401
|
selectedIndex: i,
|
|
402
402
|
topHeight: n,
|
|
403
|
-
value:
|
|
403
|
+
value: u,
|
|
404
404
|
valueLabel: h = "",
|
|
405
405
|
width: f,
|
|
406
406
|
xAxisLabel: g = ""
|
|
407
407
|
}) => {
|
|
408
|
-
const S = x(), C = Ot(S, f), v =
|
|
408
|
+
const S = x(), C = Ot(S, f), v = u / d * n, D = Math.abs(u) / d * e, E = i === void 0 || i === o ? "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: u >= 0 && /* @__PURE__ */ c(
|
|
411
411
|
W,
|
|
412
412
|
{
|
|
413
413
|
ariaLabel: s,
|
|
414
414
|
color: r,
|
|
415
415
|
height: v,
|
|
416
|
-
index:
|
|
416
|
+
index: o,
|
|
417
417
|
label: h,
|
|
418
|
-
onClick:
|
|
418
|
+
onClick: a,
|
|
419
419
|
selectedIndex: i,
|
|
420
|
-
value:
|
|
420
|
+
value: u
|
|
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: u < 0 && /* @__PURE__ */ c(
|
|
426
426
|
W,
|
|
427
427
|
{
|
|
428
428
|
ariaLabel: s,
|
|
429
429
|
color: r,
|
|
430
430
|
height: D,
|
|
431
|
-
index:
|
|
431
|
+
index: o,
|
|
432
432
|
label: h,
|
|
433
|
-
onClick:
|
|
434
|
-
value:
|
|
433
|
+
onClick: a,
|
|
434
|
+
value: u
|
|
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 ${a ? "mx-cmn-clickable" : ""}`,
|
|
441
|
+
onClick: a ? () => a(o) : void 0,
|
|
442
|
+
children: /* @__PURE__ */ c(B, { bold: i === o, color: E, variant: "Small", children: g })
|
|
443
443
|
}
|
|
444
444
|
)
|
|
445
445
|
] });
|
|
@@ -476,14 +476,14 @@ const Xe = (s) => {
|
|
|
476
476
|
barWidth: t = "8%",
|
|
477
477
|
color: e,
|
|
478
478
|
data: r,
|
|
479
|
-
height:
|
|
480
|
-
legendLabelAverage:
|
|
479
|
+
height: o,
|
|
480
|
+
legendLabelAverage: a,
|
|
481
481
|
legendLabelMain: d,
|
|
482
482
|
onBarClick: i,
|
|
483
483
|
selectedIndex: n,
|
|
484
|
-
valueFormatter:
|
|
484
|
+
valueFormatter: u = (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), v = Math.min(...g), D = g.reduce(Ht, 0), E = C >= 0, R = v < 0, I = Y(E, R,
|
|
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), v = Math.min(...g), D = g.reduce(Ht, 0), E = C >= 0, R = v < 0, I = Y(E, R, o), N = Y(R, E, o), U = qt(S, C, v, I || N), tt = (b) => n === void 0 || b === n ? e : `${e}80`, k = () => /* @__PURE__ */ c(
|
|
487
487
|
Q,
|
|
488
488
|
{
|
|
489
489
|
averageLineHeight: U,
|
|
@@ -512,7 +512,7 @@ const Xe = (s) => {
|
|
|
512
512
|
selectedIndex: n,
|
|
513
513
|
topHeight: I,
|
|
514
514
|
value: b.value,
|
|
515
|
-
valueLabel:
|
|
515
|
+
valueLabel: u(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: a, 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: o
|
|
539
539
|
}) => {
|
|
540
|
-
const
|
|
541
|
-
let
|
|
540
|
+
const a = x(), d = zt(a, e), i = (e - r) / 2, n = e / 2;
|
|
541
|
+
let u = -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: a.Color.Neutral300,
|
|
552
552
|
strokeWidth: r
|
|
553
553
|
}
|
|
554
554
|
),
|
|
555
|
-
t.map((f, g) => (
|
|
555
|
+
t.map((f, g) => (u += 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(${u}, ${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: o })
|
|
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((o) => o.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(l.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((o) => o.budget).catch((o) => {
|
|
680
|
+
throw o;
|
|
681
681
|
});
|
|
682
|
-
deleteBudget = async (t) => this.fetchInstance.delete(`${
|
|
682
|
+
deleteBudget = async (t) => this.fetchInstance.delete(`${l.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(l.BUDGETS).then((t) => t.budgets).catch((t) => t);
|
|
686
|
+
updateBudget = async (t) => this.fetchInstance.put(`${l.BUDGETS}/${t.guid}`, t).then((e) => e.budget).catch((e) => {
|
|
687
687
|
throw e;
|
|
688
688
|
});
|
|
689
689
|
}
|
|
@@ -734,7 +734,7 @@ class jt {
|
|
|
734
734
|
this.globalStore.copyStore.copy.budgets,
|
|
735
735
|
this.theme
|
|
736
736
|
).reduce(
|
|
737
|
-
(r,
|
|
737
|
+
(r, o) => o.category_guid !== A.INCOME ? r : !r || o.percentage > r.percentage ? o : 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 o = await this.api.addBudget(t, e, r);
|
|
752
752
|
p(() => {
|
|
753
|
-
this.budgets.push(
|
|
753
|
+
this.budgets.push(o);
|
|
754
754
|
});
|
|
755
|
-
} catch (
|
|
756
|
-
console.error(`Error adding budget: ${
|
|
755
|
+
} catch (o) {
|
|
756
|
+
console.error(`Error adding budget: ${o}`);
|
|
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 o = this.budgets.find((a) => a.category_guid === r.guid);
|
|
792
|
+
o ? await this.api.updateBudget({
|
|
793
|
+
...o,
|
|
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((o) => o.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((o) => o.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(l.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 ot) {
|
|
830
|
+
const o = t[r.guid];
|
|
831
|
+
if (!o) continue;
|
|
832
|
+
const a = {
|
|
833
833
|
...r,
|
|
834
|
-
title:
|
|
834
|
+
title: o.label,
|
|
835
835
|
topics: r.topics.map(({ topicKey: d }, i) => ({
|
|
836
836
|
topicKey: d,
|
|
837
|
-
label:
|
|
837
|
+
label: o.topics[i]
|
|
838
838
|
}))
|
|
839
839
|
};
|
|
840
|
-
ee(
|
|
840
|
+
ee(a, s) && e.push(a);
|
|
841
841
|
}
|
|
842
842
|
return e;
|
|
843
843
|
};
|
|
@@ -882,10 +882,10 @@ 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(l.HOLDINGS).then((t) => t.holdings);
|
|
886
|
+
updateHoldings = async (t) => this.fetchInstance.put(`${l.HOLDINGS}/${t.guid}`, t).then((e) => e.holding);
|
|
887
887
|
}
|
|
888
|
-
class
|
|
888
|
+
class oe {
|
|
889
889
|
analysisType = vt.Stocks;
|
|
890
890
|
api = new K("/", "");
|
|
891
891
|
holdings = [];
|
|
@@ -925,11 +925,11 @@ class ae {
|
|
|
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: o }) => o === t.guid);
|
|
929
929
|
if (r >= 0) {
|
|
930
|
-
const
|
|
931
|
-
|
|
932
|
-
this.holdings =
|
|
930
|
+
const o = [...this.holdings];
|
|
931
|
+
o[r] = e, p(() => {
|
|
932
|
+
this.holdings = o, 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(l.APP_DATA).then((t) => t);
|
|
1048
1048
|
}
|
|
1049
|
-
class
|
|
1049
|
+
class ae {
|
|
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), o = [...r].filter((d) => !e.has(d)), a = [...e].filter((d) => !r.has(d));
|
|
1139
|
+
o.length > 0 && this.globalStore.accountStore.updateAccountFiltering(o, !1), a.length > 0 && this.globalStore.accountStore.updateAccountFiltering(a, !0), this.selectedAccountGuids = t;
|
|
1140
1140
|
};
|
|
1141
1141
|
setDisplayedDate = (t, e) => {
|
|
1142
1142
|
this.displayedDate = e, this.displayedDateRange = {
|
|
@@ -1229,8 +1229,13 @@ class Ve {
|
|
|
1229
1229
|
userStore;
|
|
1230
1230
|
// UI Stores
|
|
1231
1231
|
globalUiStore;
|
|
1232
|
-
constructor(t = j, e = "/") {
|
|
1233
|
-
|
|
1232
|
+
constructor(t = j, e = "/", r) {
|
|
1233
|
+
try {
|
|
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), 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, onError: void 0 }), this.copyStore = new Xt({ ...this, onError: void 0 }), this.debtsStore = new xt(this), 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), 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), this.userStore = new ce(this), this.globalUiStore = new ie(this);
|
|
1235
|
+
} catch (o) {
|
|
1236
|
+
throw console.error("GlobalStore constructor error:", o), o;
|
|
1237
|
+
}
|
|
1238
|
+
m(this);
|
|
1234
1239
|
}
|
|
1235
1240
|
get isInitialized() {
|
|
1236
1241
|
return this.globalUiStore.isInitialized;
|
|
@@ -1239,8 +1244,8 @@ class Ve {
|
|
|
1239
1244
|
accounts: t,
|
|
1240
1245
|
appData: e,
|
|
1241
1246
|
associatedBeats: r,
|
|
1242
|
-
categories:
|
|
1243
|
-
institutions:
|
|
1247
|
+
categories: o,
|
|
1248
|
+
institutions: a,
|
|
1244
1249
|
transactionRules: d,
|
|
1245
1250
|
transactions: i,
|
|
1246
1251
|
userFeatures: n
|
|
@@ -1251,8 +1256,8 @@ class Ve {
|
|
|
1251
1256
|
this.appDataStore.loadAppData(e),
|
|
1252
1257
|
this.userStore.loadUserFeatures(n)
|
|
1253
1258
|
]), await Promise.all([
|
|
1254
|
-
this.accountStore.loadAccountData({ accounts: t, institutions:
|
|
1255
|
-
this.categoryStore.loadCategories(
|
|
1259
|
+
this.accountStore.loadAccountData({ accounts: t, institutions: a }),
|
|
1260
|
+
this.categoryStore.loadCategories(o),
|
|
1256
1261
|
this.transactionStore.loadTransactionData({
|
|
1257
1262
|
associatedBeats: r,
|
|
1258
1263
|
transactionRules: d,
|
|
@@ -1271,23 +1276,23 @@ export {
|
|
|
1271
1276
|
Is as AccountType,
|
|
1272
1277
|
Ns as AccountTypeName,
|
|
1273
1278
|
ts as AnalyticsApi,
|
|
1274
|
-
|
|
1279
|
+
l as ApiEndpoints,
|
|
1275
1280
|
P as BannerApi,
|
|
1276
1281
|
Ke as BarChart,
|
|
1277
|
-
|
|
1282
|
+
as as BeatApi,
|
|
1278
1283
|
Tr as BudgetNotificationTypes,
|
|
1279
|
-
|
|
1284
|
+
us as Calendar,
|
|
1280
1285
|
hs as CalendarSelectionTypes,
|
|
1281
1286
|
is as CategoryApi,
|
|
1282
|
-
|
|
1283
|
-
|
|
1287
|
+
to as CategoryColors,
|
|
1288
|
+
eo as CategoryGuidToName,
|
|
1284
1289
|
A as CategoryGuids,
|
|
1285
|
-
|
|
1290
|
+
so as CategoryIcon,
|
|
1286
1291
|
hr as ConnectCard,
|
|
1287
1292
|
Fs as ConnectDrawer,
|
|
1288
1293
|
Ms as ConnectionStatus,
|
|
1289
1294
|
$s as ConnectionStatusEnums,
|
|
1290
|
-
|
|
1295
|
+
ao as CurrencyCodes,
|
|
1291
1296
|
qs as CurrencyInput,
|
|
1292
1297
|
yr as CurrencyText,
|
|
1293
1298
|
Gr as DATE_FORMATS_INTL,
|
|
@@ -1303,16 +1308,16 @@ export {
|
|
|
1303
1308
|
Rs as ErrorStatuses,
|
|
1304
1309
|
Zt as ExpenseStatus,
|
|
1305
1310
|
y as Fetch,
|
|
1306
|
-
|
|
1311
|
+
or as Frequency,
|
|
1307
1312
|
M as GlobalCopyApi,
|
|
1308
1313
|
Xt as GlobalCopyStore,
|
|
1309
|
-
|
|
1310
|
-
|
|
1314
|
+
_o as GlobalDataContext,
|
|
1315
|
+
yo as GlobalDataProvider,
|
|
1311
1316
|
Ve as GlobalStore,
|
|
1312
1317
|
gr as GoalType,
|
|
1313
1318
|
jr as INCOME_ACCOUNT_TYPES,
|
|
1314
1319
|
er as IconBacking,
|
|
1315
|
-
|
|
1320
|
+
lr as InformationTooltip,
|
|
1316
1321
|
Br as InsightNotificationTypes,
|
|
1317
1322
|
Rt as IterationItemTypes,
|
|
1318
1323
|
We as LOADING_STATUS,
|
|
@@ -1333,13 +1338,13 @@ export {
|
|
|
1333
1338
|
Pr as ORDINAL_DATE_FORMAT,
|
|
1334
1339
|
qr as ORDINAL_MONTH_DAY_YEAR_FORMAT,
|
|
1335
1340
|
Vr as PAYMENT_ACCOUNT_TYPES,
|
|
1336
|
-
|
|
1341
|
+
ro as PaymentCategories,
|
|
1337
1342
|
$t as PlanTypes,
|
|
1338
1343
|
Ls as ProcessingStatuses,
|
|
1339
1344
|
Os as PropertyType,
|
|
1340
1345
|
Gs as PropertyTypeName,
|
|
1341
1346
|
qe as RECURRENCE_COPY,
|
|
1342
|
-
|
|
1347
|
+
ar as RecurrenceStatus,
|
|
1343
1348
|
nr as RecurrenceType,
|
|
1344
1349
|
Mt as RecurrenceTypes,
|
|
1345
1350
|
ir as RepeatingType,
|
|
@@ -1352,11 +1357,11 @@ export {
|
|
|
1352
1357
|
cr as Select,
|
|
1353
1358
|
Vs as SelectionBox,
|
|
1354
1359
|
Yr as SingleSegmentDonut,
|
|
1355
|
-
|
|
1360
|
+
go as Sizes,
|
|
1356
1361
|
vr as StackedLineChart,
|
|
1357
1362
|
Lr as StatusBar,
|
|
1358
1363
|
Hs as StatusName,
|
|
1359
|
-
|
|
1364
|
+
po as TOUCH_TARGET,
|
|
1360
1365
|
Js as TabContentContainer,
|
|
1361
1366
|
Nr as ToggleButtonListItem,
|
|
1362
1367
|
Fr as ToggleListItem,
|
|
@@ -1368,53 +1373,53 @@ export {
|
|
|
1368
1373
|
Vt as UserVerification,
|
|
1369
1374
|
q as WidgetApi,
|
|
1370
1375
|
vs as WidgetContainer,
|
|
1371
|
-
|
|
1372
|
-
|
|
1376
|
+
fo as WidgetContainerContext,
|
|
1377
|
+
So as WidgetContainerProvider,
|
|
1373
1378
|
es as analyticsSession,
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1379
|
+
sa as buildDynamicCopy,
|
|
1380
|
+
ra as buildPluralCopy,
|
|
1381
|
+
no as formatCurrency,
|
|
1377
1382
|
Wr as formatDate,
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
+
io as formatOrdinal,
|
|
1384
|
+
co as formatPercentage,
|
|
1385
|
+
ta as fromTimestampToMonthYear,
|
|
1386
|
+
Xo as getCategory,
|
|
1387
|
+
Ko as getCategoryTotalsByParent,
|
|
1383
1388
|
Qe as getClientTheme,
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1389
|
+
lo as getCurrencyCodes,
|
|
1390
|
+
jo as getDetailedCategory,
|
|
1391
|
+
Vo as getDetailedSubCategory,
|
|
1392
|
+
oa as getLocale,
|
|
1393
|
+
Zo as isIncome,
|
|
1394
|
+
uo as isValidNumber,
|
|
1395
|
+
bo as useAccountStore,
|
|
1396
|
+
wo as useAppConfig,
|
|
1397
|
+
xo as useBudgetsStore,
|
|
1398
|
+
Co as useCashflowStore,
|
|
1399
|
+
vo as useCategoryStore,
|
|
1395
1400
|
ss as useCombineEvents,
|
|
1396
1401
|
rs as useCombinePageviews,
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1402
|
+
Do as useDebtStore,
|
|
1403
|
+
Eo as useError,
|
|
1404
|
+
Ao as useEvent,
|
|
1405
|
+
To as useFinstrongStore,
|
|
1406
|
+
Bo as useGlobalCopyStore,
|
|
1407
|
+
Io as useGlobalStore,
|
|
1408
|
+
No as useGlobalUiStore,
|
|
1409
|
+
Fo as useGoalStore,
|
|
1410
|
+
Mo as useHelpStore,
|
|
1411
|
+
$o as useHoldingStore,
|
|
1407
1412
|
Dr as useInsightsEnabled,
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1413
|
+
Ro as useMerchantStore,
|
|
1414
|
+
Uo as useNetWorthStore,
|
|
1415
|
+
ko as useNotificationStore,
|
|
1416
|
+
Lo as usePageView,
|
|
1412
1417
|
Xe as usePrevious,
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1418
|
+
Oo as useRecurringTransactionsStore,
|
|
1419
|
+
Yo as useScreenSize,
|
|
1420
|
+
Go as useSettingsStore,
|
|
1421
|
+
Ho as useTransactionStore,
|
|
1422
|
+
Po as useTrendsStore,
|
|
1423
|
+
qo as useUserStore,
|
|
1424
|
+
Wo as useWidgetContainerProvider
|
|
1420
1425
|
};
|