@mx-cartographer/experiences 7.2.15-alpha.sms20 → 7.2.15-alpha.sms22
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.
|
@@ -482,8 +482,13 @@ class yt {
|
|
|
482
482
|
t.sessionToken,
|
|
483
483
|
t.onError
|
|
484
484
|
), this.beatApi = new f(t.endpoint, t.sessionToken, t.onError), y(this), B(() => {
|
|
485
|
-
const a = this.transactions;
|
|
486
|
-
return this.emitChange(),
|
|
485
|
+
const a = this.transactions, e = this.associatedBeats, c = this.taggings, _ = this.tags;
|
|
486
|
+
return this.emitChange(), {
|
|
487
|
+
transactions: a,
|
|
488
|
+
associatedBeats: e,
|
|
489
|
+
taggings: c,
|
|
490
|
+
tags: _
|
|
491
|
+
};
|
|
487
492
|
});
|
|
488
493
|
}
|
|
489
494
|
loadTransactionData = async ({
|
package/dist/common/index.es.js
CHANGED
|
@@ -1,81 +1,81 @@
|
|
|
1
1
|
import { G as k } from "../useCombineEvents-BUDIR1ba.mjs";
|
|
2
|
-
import { A as
|
|
2
|
+
import { A as rs, a as os, u as as, b as ns } from "../useCombineEvents-BUDIR1ba.mjs";
|
|
3
3
|
import { F as S, A as h } from "../Fetch-87LIQbEA.mjs";
|
|
4
|
-
import { B as
|
|
4
|
+
import { B as cs } from "../BeatApi-DhJpgCLz.mjs";
|
|
5
5
|
import { C as et } from "../CategoryStore-BCcpI3oJ.mjs";
|
|
6
|
-
import { a as
|
|
6
|
+
import { a as ls } from "../CategoryStore-BCcpI3oJ.mjs";
|
|
7
7
|
import { N as st } from "../NotificationStore-C6PH6MKm.mjs";
|
|
8
|
-
import { a as
|
|
8
|
+
import { a as hs } from "../NotificationStore-C6PH6MKm.mjs";
|
|
9
9
|
import { T as rt } from "../User-BQUxBeZV.mjs";
|
|
10
|
-
import { C as
|
|
10
|
+
import { C as ps, b as ms, L as _s, a as fs } from "../User-BQUxBeZV.mjs";
|
|
11
11
|
import { H as ot } from "../Help-DhcC-C05.mjs";
|
|
12
|
-
import { E as
|
|
13
|
-
import { M as
|
|
14
|
-
import { M as
|
|
15
|
-
import { A as
|
|
16
|
-
import { k as
|
|
17
|
-
import { C as
|
|
18
|
-
import { L as
|
|
19
|
-
import { R as
|
|
20
|
-
import { S as
|
|
21
|
-
import { T as at } from "../TransactionStore-
|
|
22
|
-
import { S as
|
|
23
|
-
import { T as
|
|
24
|
-
import { I as
|
|
25
|
-
import { D as
|
|
12
|
+
import { E as Ss } from "../Help-DhcC-C05.mjs";
|
|
13
|
+
import { M as ws } from "../MicroWidgetContainer-DpeqN9n3.mjs";
|
|
14
|
+
import { M as Cs } from "../MiniWidgetContainer-D0gfmbaF.mjs";
|
|
15
|
+
import { A as Ds, D as As, W as Es } from "../WidgetContainer-EbrN1oIo.mjs";
|
|
16
|
+
import { k as Bs, a as Is, e as Ns, h as Ms, A as ks, f as $s, l as Rs, d as Ps, n as Os, E as Us, j as Ls, N as Gs, i as Hs, P as Fs, o as Ws, S as qs } from "../ConnectDrawer-Bw5s6Dw1.mjs";
|
|
17
|
+
import { C as Qs } from "../CurrencyInput-DUsQbkXb.mjs";
|
|
18
|
+
import { L as Xs } from "../Loader-DUaFpDGv.mjs";
|
|
19
|
+
import { R as Ks } from "../ResponsiveButton-DZFp78fJ.mjs";
|
|
20
|
+
import { S as Zs } from "../SearchBox-B2_zLv8-.mjs";
|
|
21
|
+
import { T as at } from "../TransactionStore-CdycC8sN.mjs";
|
|
22
|
+
import { S as tr } from "../TransactionStore-CdycC8sN.mjs";
|
|
23
|
+
import { T as sr } from "../TabContentContainer-j01JYR_7.mjs";
|
|
24
|
+
import { I as or } from "../IconBacking-B9oC6uL2.mjs";
|
|
25
|
+
import { D as nr, F as ir, a as cr, c as dr, R as lr, S as ur } from "../RecurringTransactions-ej39mgA6.mjs";
|
|
26
26
|
import { C as nt } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
27
|
-
import { I as
|
|
27
|
+
import { I as gr } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
28
28
|
import { d as it } from "../GoalStore-DZ_Jvsa_.mjs";
|
|
29
|
-
import { C as
|
|
30
|
-
import { C as
|
|
31
|
-
import { E as
|
|
32
|
-
import { L as
|
|
29
|
+
import { C as mr, G as _r, M as fr, T as yr } from "../GoalStore-DZ_Jvsa_.mjs";
|
|
30
|
+
import { C as br } from "../CurrencyText-kyC1aseI.mjs";
|
|
31
|
+
import { E as xr } from "../EmptyState-DA_lfRBv.mjs";
|
|
32
|
+
import { L as vr } from "../ListItemAction-DHa3KJPs.mjs";
|
|
33
33
|
import { T as ct } from "../TrendsStore-DCYbpXPO.mjs";
|
|
34
|
-
import { L as
|
|
35
|
-
import { A as
|
|
34
|
+
import { L as Ar, S as Er } from "../TrendsStore-DCYbpXPO.mjs";
|
|
35
|
+
import { A as Br, B as Ir, I as Nr, N as Mr, T as kr, a as $r } from "../ToggleListItem-r0Kx56wF.mjs";
|
|
36
36
|
import { jsxs as y, jsx as n } from "react/jsx-runtime";
|
|
37
37
|
import dt, { useRef as lt, useEffect as ut } from "react";
|
|
38
38
|
import { css as x, keyframes as ht } from "@mxenabled/cssinjs";
|
|
39
39
|
import { useTokens as C, Text as B } from "@mxenabled/mxui";
|
|
40
|
-
import { D as
|
|
41
|
-
import { L as
|
|
42
|
-
import { S as
|
|
43
|
-
import { D as
|
|
40
|
+
import { D as Pr } from "../Donut-oaQFlbit.mjs";
|
|
41
|
+
import { L as Ur } from "../LineChart-D4GI7nVh.mjs";
|
|
42
|
+
import { S as Gr } from "../StatusBar-BK_uYHAB.mjs";
|
|
43
|
+
import { D as Fr, a as Wr, O as qr, b as Yr, f as Qr } from "../Dialog-CWW597AF.mjs";
|
|
44
44
|
import { D as gt, a as pt } from "../SingleSegmentDonut-BgbLgwHi.mjs";
|
|
45
|
-
import { S as
|
|
46
|
-
import { D as
|
|
47
|
-
import { I as
|
|
45
|
+
import { S as Xr } from "../SingleSegmentDonut-BgbLgwHi.mjs";
|
|
46
|
+
import { D as Kr } from "../Drawer-kEE73B87.mjs";
|
|
47
|
+
import { I as Zr, P as Jr, S as to } from "../Account-vp_TAbGt.mjs";
|
|
48
48
|
import { b as E } from "../Category-CevNQ03n.mjs";
|
|
49
|
-
import { C as
|
|
50
|
-
import { C as
|
|
49
|
+
import { C as so, c as ro, a as oo, P as ao } from "../Category-CevNQ03n.mjs";
|
|
50
|
+
import { C as io, f as co, b as lo, a as uo, g as ho, i as go } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
51
51
|
import { R as mt } from "../RecurringTransactionsStore-DrzS1LmF.mjs";
|
|
52
|
-
import { S as
|
|
53
|
-
import { G as
|
|
54
|
-
import { u as
|
|
55
|
-
import { u as
|
|
56
|
-
import { u as
|
|
57
|
-
import { makeAutoObservable as f, runInAction as p, reaction as _t } from "mobx";
|
|
58
|
-
import { a as
|
|
59
|
-
import
|
|
60
|
-
import { B as
|
|
52
|
+
import { S as mo, T as _o } from "../RecurringTransactionsStore-DrzS1LmF.mjs";
|
|
53
|
+
import { G as yo, C as So, D as bo, W as wo, d as xo, a as Co, i as vo, v as Do, m as Ao, y as Eo, z as To, g as Bo, x as Io, u as No, f as Mo, b as ko, l as $o, A as Ro, t as Po, n as Oo, c as Uo, r as Lo, o as Go, B as Ho, j as Fo, s as Wo, h as qo, w as Yo, p as Qo, q as zo } from "../hooks-D6XlXHf4.mjs";
|
|
54
|
+
import { u as jo } from "../useAccountDisplayName-jS05A6-6.mjs";
|
|
55
|
+
import { u as Vo } from "../useInsightsEnabled-DBpwEq10.mjs";
|
|
56
|
+
import { u as Jo } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
57
|
+
import { makeAutoObservable as f, runInAction as p, reaction as _t, autorun as ft } from "mobx";
|
|
58
|
+
import { a as yt } from "../AccountStore-BkoLK9Tq.mjs";
|
|
59
|
+
import St from "posthog-js";
|
|
60
|
+
import { B as bt } from "../BeatStore-IBnXd4YK.mjs";
|
|
61
61
|
import { endOfMonth as Z } from "date-fns/endOfMonth";
|
|
62
62
|
import { startOfMonth as J } from "date-fns/startOfMonth";
|
|
63
63
|
import { startOfToday as U } from "date-fns/startOfToday";
|
|
64
|
-
import { f as
|
|
65
|
-
import { g as
|
|
66
|
-
import { a as
|
|
67
|
-
import { a as
|
|
68
|
-
import { A as
|
|
69
|
-
import { M as
|
|
70
|
-
import { N as
|
|
71
|
-
import { a as
|
|
72
|
-
import { addMonths as
|
|
64
|
+
import { f as wt, a as xt, b as L } from "../BudgetUtil-B2ZXyw-g.mjs";
|
|
65
|
+
import { g as ea, e as sa, c as ra, d as oa, i as aa } from "../BudgetUtil-B2ZXyw-g.mjs";
|
|
66
|
+
import { a as Ct } from "../DebtsStore-BD_XwsI7.mjs";
|
|
67
|
+
import { a as vt } from "../FinstrongStore-F2c607dj.mjs";
|
|
68
|
+
import { A as Dt, m as At, a as Et, b as Tt } from "../InvestmentUtil-jOyOgzIB.mjs";
|
|
69
|
+
import { M as Bt } from "../MerchantStore-DrFvsUyy.mjs";
|
|
70
|
+
import { N as It } from "../NetWorthStore-D1NiDUcc.mjs";
|
|
71
|
+
import { a as Nt } from "../SettingsStore-BcgS_Ohv.mjs";
|
|
72
|
+
import { addMonths as Mt } from "date-fns/addMonths";
|
|
73
73
|
import { getMonth as T } from "date-fns/getMonth";
|
|
74
|
-
import { i as
|
|
75
|
-
import { b as
|
|
76
|
-
import { alpha as
|
|
77
|
-
var
|
|
78
|
-
const
|
|
74
|
+
import { i as ia } from "../DateUtil-BcuH7ErC.mjs";
|
|
75
|
+
import { b as da, a as la, g as ua } from "../Localization-2MODESHW.mjs";
|
|
76
|
+
import { alpha as kt, lighten as G, darken as H } from "@mui/material";
|
|
77
|
+
var $t = /* @__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))($t || {});
|
|
78
|
+
const Qe = [
|
|
79
79
|
{ id: 0, copy: "frequency_unknown" },
|
|
80
80
|
{ id: 1, copy: "frequency_every_week" },
|
|
81
81
|
{ id: 2, copy: "frequency_every_other_week" },
|
|
@@ -84,13 +84,13 @@ const Ye = [
|
|
|
84
84
|
{ id: 5, copy: "frequency_every_quarter" },
|
|
85
85
|
{ id: 6, copy: "frequency_every_other_quarter" },
|
|
86
86
|
{ id: 7, copy: "frequency_every_year" }
|
|
87
|
-
],
|
|
87
|
+
], ze = {
|
|
88
88
|
ERROR: "ERROR",
|
|
89
89
|
LOADING: "LOADING",
|
|
90
90
|
SUCCESS: "SUCCESS"
|
|
91
91
|
};
|
|
92
|
-
var
|
|
93
|
-
const
|
|
92
|
+
var Rt = /* @__PURE__ */ ((s) => (s[s.SpendingPlan = 0] = "SpendingPlan", s[s.Budgets = 1] = "Budgets", s))(Rt || {}), Pt = /* @__PURE__ */ ((s) => (s[s.RecurringExpense = 0] = "RecurringExpense", s[s.PlannedExpense = 1] = "PlannedExpense", s[s.Other = 2] = "Other", s[s.Income = 3] = "Income", s))(Pt || {});
|
|
93
|
+
const Ot = [
|
|
94
94
|
"fontFamily",
|
|
95
95
|
"H1",
|
|
96
96
|
"h1",
|
|
@@ -112,14 +112,14 @@ const Pt = [
|
|
|
112
112
|
"subtitle2",
|
|
113
113
|
"Tiny",
|
|
114
114
|
"tiny"
|
|
115
|
-
],
|
|
115
|
+
], Ut = [
|
|
116
116
|
{ key: "primary", light: "primary_color", dark: "primary_color_dark" },
|
|
117
117
|
{ key: "secondary", light: "neutral_color", dark: "neutral_color_dark" },
|
|
118
118
|
{ key: "error", light: "error_color", dark: "error_color_dark" },
|
|
119
119
|
{ key: "warning", light: "warning_color", dark: "warning_color_dark" },
|
|
120
120
|
{ key: "info", light: "info_color", dark: "info_color_dark" },
|
|
121
121
|
{ key: "success", light: "success_color", dark: "success_color_dark" }
|
|
122
|
-
],
|
|
122
|
+
], Xe = (s, t, e) => {
|
|
123
123
|
const r = s.palette.mode === "dark", o = (e?.master?.style?.font_name || t?.system_font) ?? s.typography.fontFamily, a = (i, _) => i ? {
|
|
124
124
|
lighter: G(i, 0.5),
|
|
125
125
|
light: G(i, 0.25),
|
|
@@ -127,7 +127,7 @@ const Pt = [
|
|
|
127
127
|
dark: H(i, 0.25),
|
|
128
128
|
darker: H(i, 0.5)
|
|
129
129
|
} : _, c = Object.fromEntries(
|
|
130
|
-
|
|
130
|
+
Ut.map(({ key: i, light: _, dark: b }) => [
|
|
131
131
|
i,
|
|
132
132
|
a(
|
|
133
133
|
t?.[r ? b : _],
|
|
@@ -135,7 +135,7 @@ const Pt = [
|
|
|
135
135
|
)
|
|
136
136
|
])
|
|
137
137
|
), d = Object.fromEntries(
|
|
138
|
-
|
|
138
|
+
Ot.map((i) => [
|
|
139
139
|
i,
|
|
140
140
|
i === "fontFamily" ? o : { fontFamily: o }
|
|
141
141
|
])
|
|
@@ -149,7 +149,7 @@ const Pt = [
|
|
|
149
149
|
styleOverrides: {
|
|
150
150
|
switchViewButton: {
|
|
151
151
|
color: c.primary.lighter,
|
|
152
|
-
"&:hover": { backgroundColor:
|
|
152
|
+
"&:hover": { backgroundColor: kt(c.primary.light, 0.1) }
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
}
|
|
@@ -204,7 +204,7 @@ class F {
|
|
|
204
204
|
}
|
|
205
205
|
};
|
|
206
206
|
}
|
|
207
|
-
class
|
|
207
|
+
class je {
|
|
208
208
|
fetchInstance;
|
|
209
209
|
constructor(t, e, r) {
|
|
210
210
|
this.fetchInstance = new S(t, e, void 0, r);
|
|
@@ -212,7 +212,7 @@ class Xe {
|
|
|
212
212
|
getLocalizedCopy = async (t) => this.fetchInstance.post(h.LOCALIZED_COPY, t).then((e) => e);
|
|
213
213
|
getLocalizedContent = async (t) => this.fetchInstance.post(`${h.LOCALIZED_CONTENT}/${t}`).then((e) => e);
|
|
214
214
|
}
|
|
215
|
-
class
|
|
215
|
+
class Ke {
|
|
216
216
|
fetchInstance;
|
|
217
217
|
constructor(t, e, r) {
|
|
218
218
|
this.fetchInstance = new S(t, e, void 0, r);
|
|
@@ -242,14 +242,14 @@ class W {
|
|
|
242
242
|
}
|
|
243
243
|
requestWidgetUrl = async (t) => this.fetchInstance.post(h.WIDGET_URLS, t).then((e) => e.widget_url);
|
|
244
244
|
}
|
|
245
|
-
var
|
|
246
|
-
const
|
|
245
|
+
var Lt = /* @__PURE__ */ ((s) => (s[s.UNKNOWN = 0] = "UNKNOWN", s[s.CORRECT = 1] = "CORRECT", s[s.INCORRECT = 2] = "INCORRECT", s))(Lt || {}), Gt = /* @__PURE__ */ ((s) => (s.Missed = "Missed", s.Paid = "Paid", s.Upcoming = "Upcoming expense", s.Income = "Income", s))(Gt || {}), Ht = /* @__PURE__ */ ((s) => (s[s.Unknown = 0] = "Unknown", s[s.Subscription = 1] = "Subscription", s[s.Bill = 2] = "Bill", s))(Ht || {}), Ft = /* @__PURE__ */ ((s) => (s.Desktop = "Desktop", s.Mobile = "Mobile", s))(Ft || {});
|
|
246
|
+
const Ve = (s) => {
|
|
247
247
|
const t = lt();
|
|
248
248
|
return ut(() => {
|
|
249
249
|
t.current = s;
|
|
250
250
|
}, [s]), t.current;
|
|
251
|
-
},
|
|
252
|
-
const r = C(), o =
|
|
251
|
+
}, Wt = ({ color: s, labelAverage: t, labelMain: e }) => {
|
|
252
|
+
const r = C(), o = qt(r, s);
|
|
253
253
|
return /* @__PURE__ */ y("div", { className: `mx-cmn-bar-chart-legend ${o}`, children: [
|
|
254
254
|
/* @__PURE__ */ n("div", { "aria-label": e, className: "mx-cmn-color-square", role: "img" }),
|
|
255
255
|
/* @__PURE__ */ n(B, { variant: "XSmall", children: e }),
|
|
@@ -260,7 +260,7 @@ const Ke = (s) => {
|
|
|
260
260
|
] }),
|
|
261
261
|
/* @__PURE__ */ n(B, { variant: "XSmall", children: t })
|
|
262
262
|
] });
|
|
263
|
-
},
|
|
263
|
+
}, qt = (s, t) => x({
|
|
264
264
|
alignItems: "center",
|
|
265
265
|
display: "flex",
|
|
266
266
|
gap: s.Spacing.XSmall,
|
|
@@ -296,7 +296,7 @@ const Ke = (s) => {
|
|
|
296
296
|
selectedIndex: c,
|
|
297
297
|
value: d
|
|
298
298
|
}) => {
|
|
299
|
-
const u = C(), l =
|
|
299
|
+
const u = C(), l = Yt(u, t, e), g = (_) => {
|
|
300
300
|
a && (_.key === " " || _.key === "Enter") && a(r);
|
|
301
301
|
}, m = c === void 0 || c === r ? "primary" : "secondary", i = () => /* @__PURE__ */ n(
|
|
302
302
|
B,
|
|
@@ -325,7 +325,7 @@ const Ke = (s) => {
|
|
|
325
325
|
),
|
|
326
326
|
d < 0 && /* @__PURE__ */ n(i, {})
|
|
327
327
|
] });
|
|
328
|
-
},
|
|
328
|
+
}, Yt = (s, t, e) => {
|
|
329
329
|
const r = `expandBar-${Math.round(e)}`, o = ht(r, { from: { height: 0 }, to: { height: e } });
|
|
330
330
|
return x({
|
|
331
331
|
display: "flex",
|
|
@@ -373,7 +373,7 @@ const Ke = (s) => {
|
|
|
373
373
|
width: m,
|
|
374
374
|
xAxisLabel: i = ""
|
|
375
375
|
}) => {
|
|
376
|
-
const _ = C(), b =
|
|
376
|
+
const _ = C(), b = Qt(_, m), v = l / c * u, D = Math.abs(l) / c * e, A = d === void 0 || d === o ? "primary" : "secondary";
|
|
377
377
|
return /* @__PURE__ */ y("div", { className: `mx-cmn-barchart-bar-column ${b}`, children: [
|
|
378
378
|
/* @__PURE__ */ n("div", { style: { height: u }, children: l >= 0 && /* @__PURE__ */ n(
|
|
379
379
|
q,
|
|
@@ -411,7 +411,7 @@ const Ke = (s) => {
|
|
|
411
411
|
}
|
|
412
412
|
)
|
|
413
413
|
] });
|
|
414
|
-
},
|
|
414
|
+
}, Qt = (s, t) => x({
|
|
415
415
|
display: "flex",
|
|
416
416
|
flexDirection: "column",
|
|
417
417
|
flexGrow: t === void 0 ? 1 : 0,
|
|
@@ -436,10 +436,10 @@ const Ke = (s) => {
|
|
|
436
436
|
"& .mx-cmn-clickable": {
|
|
437
437
|
cursor: "pointer"
|
|
438
438
|
}
|
|
439
|
-
}),
|
|
439
|
+
}), zt = (s, t) => s + t, Xt = (s, t) => Math.abs(t) > s ? Math.abs(t) : s, jt = (s, t) => [...s, t.value], Q = (s, t, e) => {
|
|
440
440
|
const r = s && t ? e / 2 : e;
|
|
441
441
|
return s ? r : 0;
|
|
442
|
-
},
|
|
442
|
+
}, Kt = (s, t, e, r) => s / (t < 0 ? -e : t) * r || 0, Vt = ({
|
|
443
443
|
average: s,
|
|
444
444
|
barWidth: t = "8%",
|
|
445
445
|
color: e,
|
|
@@ -451,7 +451,7 @@ const Ke = (s) => {
|
|
|
451
451
|
selectedIndex: u,
|
|
452
452
|
valueFormatter: l = (g) => `${g}`
|
|
453
453
|
}) => {
|
|
454
|
-
const g = C(), m =
|
|
454
|
+
const g = C(), m = Zt(g), i = r.reduce(jt, []), _ = s !== void 0 ? s : i.reduce(zt, 0) / i.length, b = Math.max(...i), v = Math.min(...i), D = i.reduce(Xt, 0), A = b >= 0, R = v < 0, I = Q(A, R, o), N = Q(R, A, o), P = Kt(_, b, v, I || N), tt = (w) => u === void 0 || w === u ? e : `${e}80`, O = () => /* @__PURE__ */ n(
|
|
455
455
|
Y,
|
|
456
456
|
{
|
|
457
457
|
averageLineHeight: P,
|
|
@@ -488,9 +488,9 @@ const Ke = (s) => {
|
|
|
488
488
|
/* @__PURE__ */ n(O, {})
|
|
489
489
|
] }, `column-${M}`))
|
|
490
490
|
] }),
|
|
491
|
-
/* @__PURE__ */ n(
|
|
491
|
+
/* @__PURE__ */ n(Wt, { color: e, labelAverage: a, labelMain: c })
|
|
492
492
|
] });
|
|
493
|
-
},
|
|
493
|
+
}, Zt = (s) => x({
|
|
494
494
|
"& .mx-cmn-chart-container": {
|
|
495
495
|
alignItems: "flex-end",
|
|
496
496
|
display: "flex",
|
|
@@ -498,14 +498,14 @@ const Ke = (s) => {
|
|
|
498
498
|
marginTop: s.Spacing.Large,
|
|
499
499
|
marginBottom: s.Spacing.Medium
|
|
500
500
|
}
|
|
501
|
-
}),
|
|
501
|
+
}), Ze = Vt, Jt = ({
|
|
502
502
|
hasGap: s = !1,
|
|
503
503
|
segments: t,
|
|
504
504
|
size: e = gt,
|
|
505
505
|
strokeWidth: r = pt,
|
|
506
506
|
children: o
|
|
507
507
|
}) => {
|
|
508
|
-
const a = C(), c =
|
|
508
|
+
const a = C(), c = te(a, e), d = (e - r) / 2, u = e / 2;
|
|
509
509
|
let l = -90 - (s ? 1 : 0), g = 0;
|
|
510
510
|
return /* @__PURE__ */ y("div", { className: `mx-cmn-multi-segment-donut ${c}`, children: [
|
|
511
511
|
/* @__PURE__ */ y("svg", { height: e, width: e, children: [
|
|
@@ -538,7 +538,7 @@ const Ke = (s) => {
|
|
|
538
538
|
] }),
|
|
539
539
|
/* @__PURE__ */ n("div", { className: "mx-cmn-multi-segment-donut-children", children: o })
|
|
540
540
|
] });
|
|
541
|
-
},
|
|
541
|
+
}, te = (s, t) => x({
|
|
542
542
|
height: t,
|
|
543
543
|
marginTop: `-${s.Spacing.XSmall}px`,
|
|
544
544
|
position: "relative",
|
|
@@ -550,8 +550,8 @@ const Ke = (s) => {
|
|
|
550
550
|
top: "50%",
|
|
551
551
|
transform: "translate(-50%, -50%)"
|
|
552
552
|
}
|
|
553
|
-
}),
|
|
554
|
-
class
|
|
553
|
+
}), Je = Jt;
|
|
554
|
+
class ee {
|
|
555
555
|
globalStore;
|
|
556
556
|
api = new k("/", "");
|
|
557
557
|
copy = {};
|
|
@@ -585,7 +585,7 @@ class te {
|
|
|
585
585
|
}
|
|
586
586
|
};
|
|
587
587
|
}
|
|
588
|
-
class
|
|
588
|
+
class se {
|
|
589
589
|
globalStore;
|
|
590
590
|
survey = null;
|
|
591
591
|
currentQuestionIndex = 0;
|
|
@@ -615,7 +615,7 @@ class ee {
|
|
|
615
615
|
return this.survey ? this.survey.questions : [];
|
|
616
616
|
}
|
|
617
617
|
loadSurvey = (t = !1) => {
|
|
618
|
-
|
|
618
|
+
St.getActiveMatchingSurveys((e) => {
|
|
619
619
|
p(() => {
|
|
620
620
|
if (e.length > 0) {
|
|
621
621
|
const r = e.find((o) => o.id === this.surveyId);
|
|
@@ -655,7 +655,7 @@ class z {
|
|
|
655
655
|
throw e;
|
|
656
656
|
});
|
|
657
657
|
}
|
|
658
|
-
class
|
|
658
|
+
class re {
|
|
659
659
|
api = new z("/", "");
|
|
660
660
|
globalStore;
|
|
661
661
|
alert = "";
|
|
@@ -674,9 +674,9 @@ class se {
|
|
|
674
674
|
(t) => {
|
|
675
675
|
if (t) {
|
|
676
676
|
const e = this.selectedBudget;
|
|
677
|
-
e && (this.selectedBudget =
|
|
677
|
+
e && (this.selectedBudget = wt(t, e.guid));
|
|
678
678
|
const r = this.selectedSubBudget;
|
|
679
|
-
r && r.parent_guid && (this.selectedSubBudget =
|
|
679
|
+
r && r.parent_guid && (this.selectedSubBudget = xt(
|
|
680
680
|
t,
|
|
681
681
|
r.guid,
|
|
682
682
|
r.parent_guid
|
|
@@ -791,7 +791,7 @@ class X {
|
|
|
791
791
|
}
|
|
792
792
|
createSupportTicket = async (t) => this.fetchInstance.post(h.SUPPORT_TICKETS, t).then((e) => e);
|
|
793
793
|
}
|
|
794
|
-
const
|
|
794
|
+
const oe = (s, t) => s.guid === "general" || s.guid === "insights" ? !0 : s.flags ? s.flags.every((e) => t[e]) : !1, ae = (s, t) => {
|
|
795
795
|
const e = [];
|
|
796
796
|
for (const r of ot) {
|
|
797
797
|
const o = t[r.guid];
|
|
@@ -804,11 +804,11 @@ const re = (s, t) => s.guid === "general" || s.guid === "insights" ? !0 : s.flag
|
|
|
804
804
|
label: o.topics[d]
|
|
805
805
|
}))
|
|
806
806
|
};
|
|
807
|
-
|
|
807
|
+
oe(a, s) && e.push(a);
|
|
808
808
|
}
|
|
809
809
|
return e;
|
|
810
810
|
};
|
|
811
|
-
class
|
|
811
|
+
class ne {
|
|
812
812
|
alert = { message: "", severity: void 0 };
|
|
813
813
|
api = new X("/", "");
|
|
814
814
|
appConfig;
|
|
@@ -834,7 +834,7 @@ class ae {
|
|
|
834
834
|
const { client_communication_profile: t, client_profile: e } = this.globalStore.appDataStore.appData, {
|
|
835
835
|
help: { category_list: r }
|
|
836
836
|
} = this.globalStore.copyStore.copy;
|
|
837
|
-
return
|
|
837
|
+
return ae(
|
|
838
838
|
{
|
|
839
839
|
...t,
|
|
840
840
|
...e,
|
|
@@ -852,8 +852,8 @@ class j {
|
|
|
852
852
|
getHoldings = async () => this.fetchInstance.get(h.HOLDINGS).then((t) => t.holdings);
|
|
853
853
|
updateHoldings = async (t) => this.fetchInstance.put(`${h.HOLDINGS}/${t.guid}`, t).then((e) => e.holding);
|
|
854
854
|
}
|
|
855
|
-
class
|
|
856
|
-
analysisType =
|
|
855
|
+
class ie {
|
|
856
|
+
analysisType = Dt.Stocks;
|
|
857
857
|
api = new j("/", "");
|
|
858
858
|
holdings = [];
|
|
859
859
|
holdingsLoaded = !1;
|
|
@@ -863,10 +863,10 @@ class ne {
|
|
|
863
863
|
this.globalStore = t, this.api = new j(t.endpoint, t.sessionToken, t.onError), f(this);
|
|
864
864
|
}
|
|
865
865
|
get analysisChartData() {
|
|
866
|
-
return
|
|
866
|
+
return At(Et(this.visibleHoldings), this.analysisType);
|
|
867
867
|
}
|
|
868
868
|
get analysisDetails() {
|
|
869
|
-
return
|
|
869
|
+
return Tt(this.visibleHoldings)[this.analysisType] || {};
|
|
870
870
|
}
|
|
871
871
|
get visibleHoldings() {
|
|
872
872
|
return this.holdings.filter(
|
|
@@ -1015,7 +1015,7 @@ class V {
|
|
|
1015
1015
|
}
|
|
1016
1016
|
getAppData = async () => this.fetchInstance.get(h.APP_DATA).then((t) => t);
|
|
1017
1017
|
}
|
|
1018
|
-
class
|
|
1018
|
+
class ce {
|
|
1019
1019
|
globalStore;
|
|
1020
1020
|
api = new V("/", "");
|
|
1021
1021
|
bannerApi = new F("/");
|
|
@@ -1066,7 +1066,7 @@ class ie {
|
|
|
1066
1066
|
setUserCommunicationProfile = (t) => this.appData.user_communication_profile = t;
|
|
1067
1067
|
setUserProfile = (t) => this.appData.user_profile = t;
|
|
1068
1068
|
}
|
|
1069
|
-
class
|
|
1069
|
+
class de {
|
|
1070
1070
|
globalStore;
|
|
1071
1071
|
widgetApi = new W("/", "");
|
|
1072
1072
|
constructor(t) {
|
|
@@ -1076,7 +1076,7 @@ class ce {
|
|
|
1076
1076
|
widget_url: { widget_type: t, color_scheme: e, ...r }
|
|
1077
1077
|
});
|
|
1078
1078
|
}
|
|
1079
|
-
class
|
|
1079
|
+
class le {
|
|
1080
1080
|
globalStore;
|
|
1081
1081
|
isInitialized = !1;
|
|
1082
1082
|
selectedAccounts = [];
|
|
@@ -1114,7 +1114,7 @@ class de {
|
|
|
1114
1114
|
};
|
|
1115
1115
|
};
|
|
1116
1116
|
get shouldDisableNextDate() {
|
|
1117
|
-
const t = T(this.displayedDate), e = T(
|
|
1117
|
+
const t = T(this.displayedDate), e = T(Mt(/* @__PURE__ */ new Date(), 1));
|
|
1118
1118
|
return t === e;
|
|
1119
1119
|
}
|
|
1120
1120
|
get shouldDisablePrevDate() {
|
|
@@ -1122,7 +1122,7 @@ class de {
|
|
|
1122
1122
|
return t === e;
|
|
1123
1123
|
}
|
|
1124
1124
|
}
|
|
1125
|
-
class
|
|
1125
|
+
class ue {
|
|
1126
1126
|
globalStore;
|
|
1127
1127
|
api = new $("/", "");
|
|
1128
1128
|
userFeatures = [];
|
|
@@ -1167,12 +1167,13 @@ class le {
|
|
|
1167
1167
|
}
|
|
1168
1168
|
};
|
|
1169
1169
|
}
|
|
1170
|
-
class
|
|
1170
|
+
class ts {
|
|
1171
1171
|
// Global properties
|
|
1172
1172
|
appConfig = K;
|
|
1173
1173
|
endpoint = "/";
|
|
1174
1174
|
sessionToken = "";
|
|
1175
1175
|
onError;
|
|
1176
|
+
listeners = [];
|
|
1176
1177
|
// Data Stores
|
|
1177
1178
|
accountStore;
|
|
1178
1179
|
appDataStore;
|
|
@@ -1199,11 +1200,27 @@ class Je {
|
|
|
1199
1200
|
// UI Stores
|
|
1200
1201
|
globalUiStore;
|
|
1201
1202
|
constructor(t = K, e = "/", r) {
|
|
1202
|
-
this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.onError = r, this.accountStore = new
|
|
1203
|
+
this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.onError = r, this.accountStore = new yt(this), this.appDataStore = new ce(this), this.analyticsStore = new se(this), this.beatStore = new bt(this), this.budgetsStore = new re(this), this.cashflowStore = new nt(this), this.categoryStore = new et(this), this.connectStore = new de(this), this.copyStore = new ee(this), this.debtsStore = new Ct(this), this.finstrongStore = new vt(this), this.goalStore = new it(this), this.helpStore = new ne(this), this.holdingStore = new ie(this), this.merchantStore = new Bt(this), this.netWorthStore = new It(this), this.notificationStore = new st(this), this.recurringTransactionsStore = new mt(this), this.settingsStore = new Nt(this), this.transactionStore = new at(this), this.trendsStore = new ct(this), this.userStore = new ue(this), this.globalUiStore = new le(this), f(this), ft(() => {
|
|
1204
|
+
const o = this.transactionStore;
|
|
1205
|
+
return this.emitChange(), {
|
|
1206
|
+
transactions: o
|
|
1207
|
+
};
|
|
1208
|
+
});
|
|
1203
1209
|
}
|
|
1204
1210
|
get isInitialized() {
|
|
1205
1211
|
return this.globalUiStore.isInitialized;
|
|
1206
1212
|
}
|
|
1213
|
+
// for external libraries like Pulse to subscribe to global store snapshots, like getTransactionStoreSnapshot
|
|
1214
|
+
subscribe = (t) => (this.listeners = [...this.listeners, t], () => {
|
|
1215
|
+
this.listeners = this.listeners.filter((e) => e !== t);
|
|
1216
|
+
});
|
|
1217
|
+
// returns change subscribed to in the autorun (found in the constructor)
|
|
1218
|
+
getTransactionStoreSnapshot = () => this.transactionStore;
|
|
1219
|
+
// emits change triggered in the autorun
|
|
1220
|
+
emitChange = () => {
|
|
1221
|
+
for (const t of this.listeners)
|
|
1222
|
+
t();
|
|
1223
|
+
};
|
|
1207
1224
|
loadData = async ({
|
|
1208
1225
|
accounts: t,
|
|
1209
1226
|
appData: e,
|
|
@@ -1231,161 +1248,161 @@ class Je {
|
|
|
1231
1248
|
};
|
|
1232
1249
|
}
|
|
1233
1250
|
export {
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1251
|
+
Ds as ANALYTICS_EVENTS,
|
|
1252
|
+
Bs as AccountFilter,
|
|
1253
|
+
Is as AccountIcon,
|
|
1254
|
+
Ns as AccountIconVariants,
|
|
1255
|
+
Br as AccountNotificationTypes,
|
|
1256
|
+
Ms as AccountSubType,
|
|
1257
|
+
ks as AccountType,
|
|
1258
|
+
$s as AccountTypeName,
|
|
1259
|
+
rs as AnalyticsApi,
|
|
1243
1260
|
h as ApiEndpoints,
|
|
1244
1261
|
F as BannerApi,
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1262
|
+
Ze as BarChart,
|
|
1263
|
+
cs as BeatApi,
|
|
1264
|
+
Ir as BudgetNotificationTypes,
|
|
1265
|
+
ps as Calendar,
|
|
1266
|
+
ms as CalendarSelectionTypes,
|
|
1267
|
+
ls as CategoryApi,
|
|
1268
|
+
so as CategoryColors,
|
|
1269
|
+
ro as CategoryGuidToName,
|
|
1253
1270
|
E as CategoryGuids,
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1271
|
+
oo as CategoryIcon,
|
|
1272
|
+
mr as ConnectCard,
|
|
1273
|
+
Rs as ConnectDrawer,
|
|
1274
|
+
Ps as ConnectionStatus,
|
|
1275
|
+
Os as ConnectionStatusEnums,
|
|
1276
|
+
io as CurrencyCodes,
|
|
1277
|
+
Qs as CurrencyInput,
|
|
1278
|
+
br as CurrencyText,
|
|
1279
|
+
Fr as DATE_FORMATS_INTL,
|
|
1263
1280
|
gt as DEFAULT_DONUT_SIZE,
|
|
1264
1281
|
pt as DEFAULT_STROKE_WIDTH,
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1282
|
+
nr as DataRow,
|
|
1283
|
+
As as DateRangeSelector,
|
|
1284
|
+
Wr as Dialog,
|
|
1285
|
+
Pr as Donut,
|
|
1286
|
+
Kr as Drawer,
|
|
1287
|
+
xr as EmptyState,
|
|
1288
|
+
Ss as ErrorBoundary,
|
|
1289
|
+
Us as ErrorStatuses,
|
|
1290
|
+
Gt as ExpenseStatus,
|
|
1274
1291
|
S as Fetch,
|
|
1275
|
-
|
|
1292
|
+
ir as Frequency,
|
|
1276
1293
|
k as GlobalCopyApi,
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1294
|
+
ee as GlobalCopyStore,
|
|
1295
|
+
yo as GlobalDataContext,
|
|
1296
|
+
So as GlobalDataProvider,
|
|
1297
|
+
ts as GlobalStore,
|
|
1298
|
+
_r as GoalType,
|
|
1299
|
+
Zr as INCOME_ACCOUNT_TYPES,
|
|
1300
|
+
or as IconBacking,
|
|
1301
|
+
gr as InformationTooltip,
|
|
1302
|
+
Nr as InsightNotificationTypes,
|
|
1303
|
+
Pt as IterationItemTypes,
|
|
1304
|
+
ze as LOADING_STATUS,
|
|
1305
|
+
Ur as LineChart,
|
|
1306
|
+
vr as ListItemAction,
|
|
1307
|
+
Ar as ListItemRow,
|
|
1308
|
+
_s as ListItemWrapper,
|
|
1309
|
+
Xs as Loader,
|
|
1310
|
+
je as LocalizedCopyApi,
|
|
1311
|
+
fr as MetaType,
|
|
1312
|
+
Ls as MfaStatuses,
|
|
1313
|
+
ws as MicroWidgetContainer,
|
|
1314
|
+
Cs as MiniWidgetContainer,
|
|
1315
|
+
Je as MultiSegmentDonut,
|
|
1316
|
+
Gs as NonConnectedStatuses,
|
|
1317
|
+
hs as NotificationApi,
|
|
1318
|
+
Mr as NotificationTypes,
|
|
1319
|
+
qr as ORDINAL_DATE_FORMAT,
|
|
1320
|
+
Yr as ORDINAL_MONTH_DAY_YEAR_FORMAT,
|
|
1321
|
+
Jr as PAYMENT_ACCOUNT_TYPES,
|
|
1322
|
+
ao as PaymentCategories,
|
|
1323
|
+
Rt as PlanTypes,
|
|
1324
|
+
Hs as ProcessingStatuses,
|
|
1325
|
+
Fs as PropertyType,
|
|
1326
|
+
Ws as PropertyTypeName,
|
|
1327
|
+
Qe as RECURRENCE_COPY,
|
|
1328
|
+
cr as RecurrenceStatus,
|
|
1329
|
+
dr as RecurrenceType,
|
|
1330
|
+
$t as RecurrenceTypes,
|
|
1331
|
+
lr as RepeatingType,
|
|
1332
|
+
Ks as ResponsiveButton,
|
|
1333
|
+
to as SPENDING_ACCOUNT_TYPES,
|
|
1334
|
+
Ht as ScheduledPaymentTypes,
|
|
1335
|
+
Ke as ScheduledPaymentsApi,
|
|
1336
|
+
Ft as ScreenSize,
|
|
1337
|
+
Zs as SearchBox,
|
|
1338
|
+
ur as Select,
|
|
1339
|
+
tr as SelectionBox,
|
|
1340
|
+
Xr as SingleSegmentDonut,
|
|
1341
|
+
mo as Sizes,
|
|
1342
|
+
Er as StackedLineChart,
|
|
1343
|
+
Gr as StatusBar,
|
|
1344
|
+
qs as StatusName,
|
|
1345
|
+
_o as TOUCH_TARGET,
|
|
1346
|
+
sr as TabContentContainer,
|
|
1347
|
+
kr as ToggleButtonListItem,
|
|
1348
|
+
$r as ToggleListItem,
|
|
1349
|
+
yr as TrackType,
|
|
1350
|
+
fs as TransactionStatus,
|
|
1334
1351
|
rt as TransactionType,
|
|
1335
1352
|
$ as UserApi,
|
|
1336
|
-
|
|
1337
|
-
|
|
1353
|
+
ue as UserStore,
|
|
1354
|
+
Lt as UserVerification,
|
|
1338
1355
|
W as WidgetApi,
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1356
|
+
Es as WidgetContainer,
|
|
1357
|
+
bo as WidgetContainerContext,
|
|
1358
|
+
wo as WidgetContainerProvider,
|
|
1359
|
+
os as analyticsSession,
|
|
1360
|
+
da as buildDynamicCopy,
|
|
1361
|
+
la as buildPluralCopy,
|
|
1362
|
+
co as formatCurrency,
|
|
1363
|
+
Qr as formatDate,
|
|
1364
|
+
lo as formatOrdinal,
|
|
1365
|
+
uo as formatPercentage,
|
|
1366
|
+
ia as fromTimestampToMonthYear,
|
|
1367
|
+
ea as getCategory,
|
|
1368
|
+
sa as getCategoryTotalsByParent,
|
|
1369
|
+
Xe as getClientTheme,
|
|
1370
|
+
ho as getCurrencyCodes,
|
|
1371
|
+
ra as getDetailedCategory,
|
|
1372
|
+
oa as getDetailedSubCategory,
|
|
1373
|
+
ua as getLocale,
|
|
1374
|
+
aa as isIncome,
|
|
1375
|
+
go as isValidNumber,
|
|
1376
|
+
jo as useAccountDisplayName,
|
|
1377
|
+
xo as useAccountStore,
|
|
1378
|
+
Co as useAppConfig,
|
|
1379
|
+
vo as useBudgetsStore,
|
|
1380
|
+
Do as useCashflowStore,
|
|
1381
|
+
Ao as useCategoryStore,
|
|
1382
|
+
as as useCombineEvents,
|
|
1383
|
+
ns as useCombinePageviews,
|
|
1384
|
+
Eo as useDebtStore,
|
|
1385
|
+
To as useError,
|
|
1386
|
+
Bo as useEvent,
|
|
1387
|
+
Io as useFinstrongStore,
|
|
1388
|
+
No as useGlobalCopyStore,
|
|
1389
|
+
Mo as useGlobalStore,
|
|
1390
|
+
ko as useGlobalUiStore,
|
|
1391
|
+
$o as useGoalStore,
|
|
1392
|
+
Ro as useHelpStore,
|
|
1393
|
+
Po as useHoldingStore,
|
|
1394
|
+
Vo as useInsightsEnabled,
|
|
1395
|
+
Oo as useLoad,
|
|
1396
|
+
Uo as useMerchantStore,
|
|
1397
|
+
Lo as useNetWorthStore,
|
|
1398
|
+
Go as useNotificationStore,
|
|
1399
|
+
Ho as usePageView,
|
|
1400
|
+
Ve as usePrevious,
|
|
1401
|
+
Fo as useRecurringTransactionsStore,
|
|
1402
|
+
Jo as useScreenSize,
|
|
1403
|
+
Wo as useSettingsStore,
|
|
1404
|
+
qo as useTransactionStore,
|
|
1405
|
+
Yo as useTrendsStore,
|
|
1406
|
+
Qo as useUserStore,
|
|
1407
|
+
zo as useWidgetContainerProvider
|
|
1391
1408
|
};
|
|
@@ -36,11 +36,13 @@ interface LoadDataProps {
|
|
|
36
36
|
transactions?: Transaction[];
|
|
37
37
|
userFeatures?: UserFeature[];
|
|
38
38
|
}
|
|
39
|
+
type Listener = () => void;
|
|
39
40
|
export declare class GlobalStore {
|
|
40
41
|
appConfig: AppConfig;
|
|
41
42
|
endpoint: string;
|
|
42
43
|
sessionToken: string;
|
|
43
44
|
onError?: GlobalErrorHandler;
|
|
45
|
+
listeners: Listener[];
|
|
44
46
|
accountStore: AccountStore;
|
|
45
47
|
appDataStore: AppDataStore;
|
|
46
48
|
analyticsStore: AnalyticsStore;
|
|
@@ -66,6 +68,9 @@ export declare class GlobalStore {
|
|
|
66
68
|
globalUiStore: GlobalUiStore;
|
|
67
69
|
constructor(appConfig?: AppConfig, endpoint?: string, onError?: GlobalErrorHandler);
|
|
68
70
|
get isInitialized(): boolean;
|
|
71
|
+
subscribe: (listener: any) => () => void;
|
|
72
|
+
getTransactionStoreSnapshot: () => TransactionStore;
|
|
73
|
+
emitChange: () => void;
|
|
69
74
|
loadData: ({ accounts, appData, associatedBeats, categories, institutions, transactionRules, transactions, userFeatures, }?: LoadDataProps) => Promise<void>;
|
|
70
75
|
}
|
|
71
76
|
export {};
|
|
@@ -3,8 +3,8 @@ import { u as P, C as Pe, D as $e, M as Ve, c as We, T as Ge, a as Ue } from "..
|
|
|
3
3
|
import { B as xa, d as wa, b as Ia } from "../TransactionDetails-dRfjqJ3s.mjs";
|
|
4
4
|
import { T as M } from "../User-BQUxBeZV.mjs";
|
|
5
5
|
import { O as Da } from "../User-BQUxBeZV.mjs";
|
|
6
|
-
import { S as ae, D as Fe } from "../TransactionStore-
|
|
7
|
-
import { T as Ea } from "../TransactionStore-
|
|
6
|
+
import { S as ae, D as Fe } from "../TransactionStore-CdycC8sN.mjs";
|
|
7
|
+
import { T as Ea } from "../TransactionStore-CdycC8sN.mjs";
|
|
8
8
|
import { e as ze } from "../exportTransactionsToCSV-7bVS7KXf.mjs";
|
|
9
9
|
import { E as Ma } from "../ExportCsvAction-sX8Rg4Ov.mjs";
|
|
10
10
|
import { jsxs as _, jsx as e } from "react/jsx-runtime";
|