@mx-cartographer/experiences 7.0.20-alpha.mm16 → 7.0.20-alpha.mm17
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.
|
@@ -7,18 +7,18 @@ import O from "@mui/material/CardHeader";
|
|
|
7
7
|
import S from "@mui/material/Stack";
|
|
8
8
|
import { AccountBalance as w, ChevronRight as L } from "@mxenabled/mx-icons";
|
|
9
9
|
import { Text as A } from "@mxenabled/mxui";
|
|
10
|
-
import { j as
|
|
11
|
-
import { m as
|
|
10
|
+
import { j as b } from "./ConnectDrawer-COy3Xwqv.mjs";
|
|
11
|
+
import { m as y } from "./hooks-CTieq90n.mjs";
|
|
12
12
|
import { makeAutoObservable as D, runInAction as c } from "mobx";
|
|
13
13
|
import { F as v, A as i } from "./Fetch-5yMqsiXO.mjs";
|
|
14
|
-
import { fromUnixTime as
|
|
14
|
+
import { fromUnixTime as G } from "date-fns/fromUnixTime";
|
|
15
15
|
import { addYears as x } from "date-fns/addYears";
|
|
16
16
|
import { getUnixTime as K } from "date-fns/getUnixTime";
|
|
17
17
|
import { b as E } from "./Localization-2MODESHW.mjs";
|
|
18
18
|
import { a as F } from "./NumberFormatting-CtWHhyBX.mjs";
|
|
19
19
|
import { f as B, D as U } from "./Dialog-CWW597AF.mjs";
|
|
20
20
|
const at = ({ description: e, label: t, title: o }) => {
|
|
21
|
-
const { config: r } =
|
|
21
|
+
const { config: r } = y(), [n, s] = u.useState(!1);
|
|
22
22
|
return /* @__PURE__ */ g(u.Fragment, { children: [
|
|
23
23
|
/* @__PURE__ */ g(I, { sx: { m: 24 }, children: [
|
|
24
24
|
/* @__PURE__ */ _(
|
|
@@ -49,7 +49,7 @@ const at = ({ description: e, label: t, title: o }) => {
|
|
|
49
49
|
] }) })
|
|
50
50
|
] }),
|
|
51
51
|
/* @__PURE__ */ _(
|
|
52
|
-
|
|
52
|
+
b,
|
|
53
53
|
{
|
|
54
54
|
onClose: () => s(!1),
|
|
55
55
|
showConnectWidget: n,
|
|
@@ -90,7 +90,7 @@ function it(e, t) {
|
|
|
90
90
|
style: "percent",
|
|
91
91
|
minimumFractionDigits: 0,
|
|
92
92
|
maximumFractionDigits: 0
|
|
93
|
-
}, d = t.is_complete ? t.completed_at : t.projected_to_complete_at, m = d ?
|
|
93
|
+
}, d = t.is_complete ? t.completed_at : t.projected_to_complete_at, m = d ? G(d) : /* @__PURE__ */ new Date(), f = E(
|
|
94
94
|
e.goal_percentage,
|
|
95
95
|
F(r, h)
|
|
96
96
|
), p = E(
|
|
@@ -167,8 +167,8 @@ const ct = (e, t) => {
|
|
|
167
167
|
default:
|
|
168
168
|
return E(t.zero_state_ongoing, "retirement");
|
|
169
169
|
}
|
|
170
|
-
},
|
|
171
|
-
const o =
|
|
170
|
+
}, C = (e, t) => {
|
|
171
|
+
const o = G(t), r = x(o, e);
|
|
172
172
|
return K(r);
|
|
173
173
|
};
|
|
174
174
|
class lt {
|
|
@@ -182,7 +182,7 @@ class lt {
|
|
|
182
182
|
monthlyCashFlowProfile = void 0;
|
|
183
183
|
goalsLoaded = !1;
|
|
184
184
|
constructor(t) {
|
|
185
|
-
|
|
185
|
+
this.globalStore = t, this.api = new R(t.endpoint, t.sessionToken, t.onError), D(this);
|
|
186
186
|
}
|
|
187
187
|
get orderedGoals() {
|
|
188
188
|
return this.goals.slice().sort((t, o) => t.position - o.position);
|
|
@@ -238,7 +238,7 @@ class lt {
|
|
|
238
238
|
amount: r.target_amount,
|
|
239
239
|
name: o.retirement,
|
|
240
240
|
track_type: a.RETIREMENT_TRACK,
|
|
241
|
-
projected_to_complete_at: r.retirement_age && s ?
|
|
241
|
+
projected_to_complete_at: r.retirement_age && s ? C(r.retirement_age, s) : void 0
|
|
242
242
|
}
|
|
243
243
|
], this.retirementGoalAccounts = [...this.retirementGoalAccounts, ...n];
|
|
244
244
|
});
|
|
@@ -266,7 +266,7 @@ class lt {
|
|
|
266
266
|
amount: m.target_amount,
|
|
267
267
|
name: t.retirement,
|
|
268
268
|
track_type: a.RETIREMENT_TRACK,
|
|
269
|
-
projected_to_complete_at: m.retirement_age && h ?
|
|
269
|
+
projected_to_complete_at: m.retirement_age && h ? C(m.retirement_age, h) : void 0
|
|
270
270
|
}))
|
|
271
271
|
];
|
|
272
272
|
c(() => {
|
package/dist/common/index.es.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
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
3
|
import { F as y, A as u } from "../Fetch-5yMqsiXO.mjs";
|
|
4
|
-
import { B as
|
|
4
|
+
import { B as as } 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
9
|
import { T as rt } from "../User-DD7Pb2ze.mjs";
|
|
10
10
|
import { C as ls, b as hs, L as gs, a as ps } from "../User-DD7Pb2ze.mjs";
|
|
11
|
-
import { H as
|
|
11
|
+
import { H as ot } from "../Help-DhcC-C05.mjs";
|
|
12
12
|
import { E as _s } from "../Help-DhcC-C05.mjs";
|
|
13
13
|
import { M as fs } from "../MicroWidgetContainer-DQXTwO5i.mjs";
|
|
14
14
|
import { M as bs } from "../MiniWidgetContainer-BF2Qwhh-.mjs";
|
|
15
|
-
import { A as xs, D as Cs, W as
|
|
16
|
-
import { i as
|
|
15
|
+
import { A as xs, D as Cs, W as vs } from "../WidgetContainer-C1NlG0pd.mjs";
|
|
16
|
+
import { i as Ds, 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-COy3Xwqv.mjs";
|
|
17
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
|
|
21
|
+
import { T as at } from "../TransactionStore-DoyMuj0p.mjs";
|
|
22
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 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
27
|
import { I as ur } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
28
|
-
import { d as it } from "../GoalStore-
|
|
29
|
-
import { C as hr, G as gr, M as pr, T as mr } from "../GoalStore-
|
|
28
|
+
import { d as it } from "../GoalStore-CBRbZQIz.mjs";
|
|
29
|
+
import { C as hr, G as gr, M as pr, T as mr } from "../GoalStore-CBRbZQIz.mjs";
|
|
30
30
|
import { C as yr } from "../CurrencyText-YUhH2caW.mjs";
|
|
31
31
|
import { E as Sr } from "../EmptyState-C0lr9E5T.mjs";
|
|
32
32
|
import { L as wr } from "../ListItemAction-CpYlo5Sh.mjs";
|
|
33
33
|
import { T as ct } from "../TrendsStore-ReCVjB8o.mjs";
|
|
34
|
-
import { L as Cr, S as
|
|
35
|
-
import { A as
|
|
34
|
+
import { L as Cr, S as vr, u as Er } from "../TrendsStore-ReCVjB8o.mjs";
|
|
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
37
|
import dt, { useRef as ut, useEffect as lt } from "react";
|
|
38
38
|
import { css as w, keyframes as ht } from "@mxenabled/cssinjs";
|
|
@@ -45,13 +45,13 @@ 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
47
|
import { I as jr, P as Vr, S as Zr } from "../Account-DJ7VG5hs.mjs";
|
|
48
|
-
import { b as
|
|
49
|
-
import { C as
|
|
50
|
-
import { C as
|
|
48
|
+
import { b as A } from "../Category-CevNQ03n.mjs";
|
|
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 uo, i as lo } 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 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 Eo, y as Do, 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-CTieq90n.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
56
|
import { a as yt } from "../AccountStore-CxV4kxak.mjs";
|
|
57
57
|
import ft from "posthog-js";
|
|
@@ -60,17 +60,17 @@ 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
62
|
import { f as bt, a as wt, b as O } from "../BudgetUtil-BB9gMyLW.mjs";
|
|
63
|
-
import { g as
|
|
63
|
+
import { g as Xo, e as Ko, c as jo, d as Vo, i as Zo } from "../BudgetUtil-BB9gMyLW.mjs";
|
|
64
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 vt, m as Et, a as Dt, b as At } from "../InvestmentUtil-jOyOgzIB.mjs";
|
|
67
67
|
import { M as Tt } from "../MerchantStore-UleKHaMr.mjs";
|
|
68
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 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
|
}
|
|
@@ -281,8 +281,8 @@ const Xe = (s) => {
|
|
|
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
331
|
const n = x(), l = Lt(n, t, e), h = (S) => {
|
|
332
|
-
|
|
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,7 +339,7 @@ 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
345
|
return /* @__PURE__ */ _("div", { className: `mx-cmn-bar-container ${l} ${i < 0 ? "mx-cmn-negative" : ""}`, children: [
|
|
@@ -348,8 +348,8 @@ const Xe = (s) => {
|
|
|
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,8 +395,8 @@ 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,
|
|
@@ -405,17 +405,17 @@ const Xe = (s) => {
|
|
|
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), v = l / d * n, E = Math.abs(l) / d * e, D = i === void 0 || i === o ? "primary" : "secondary";
|
|
409
409
|
return /* @__PURE__ */ _("div", { className: `mx-cmn-barchart-bar-column ${C}`, children: [
|
|
410
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: v,
|
|
416
|
+
index: o,
|
|
417
417
|
label: h,
|
|
418
|
-
onClick:
|
|
418
|
+
onClick: a,
|
|
419
419
|
selectedIndex: i,
|
|
420
420
|
value: l
|
|
421
421
|
}
|
|
@@ -427,19 +427,19 @@ const Xe = (s) => {
|
|
|
427
427
|
{
|
|
428
428
|
ariaLabel: s,
|
|
429
429
|
color: r,
|
|
430
|
-
height:
|
|
431
|
-
index:
|
|
430
|
+
height: E,
|
|
431
|
+
index: o,
|
|
432
432
|
label: h,
|
|
433
|
-
onClick:
|
|
433
|
+
onClick: a,
|
|
434
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 ${a ? "mx-cmn-clickable" : ""}`,
|
|
441
|
+
onClick: a ? () => a(o) : void 0,
|
|
442
|
+
children: /* @__PURE__ */ c(B, { bold: i === o, color: D, 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: o,
|
|
480
|
+
legendLabelAverage: a,
|
|
481
481
|
legendLabelMain: d,
|
|
482
482
|
onBarClick: i,
|
|
483
483
|
selectedIndex: n,
|
|
484
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), v = Math.min(...g), E = g.reduce(Ht, 0), D = C >= 0, R = v < 0, I = Y(D, R, o), N = Y(R, D, 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,
|
|
490
490
|
bottomHeight: N,
|
|
491
491
|
color: "",
|
|
492
|
-
range:
|
|
492
|
+
range: E,
|
|
493
493
|
topHeight: I,
|
|
494
494
|
value: 0,
|
|
495
495
|
width: void 0
|
|
@@ -508,7 +508,7 @@ const Xe = (s) => {
|
|
|
508
508
|
color: tt(F),
|
|
509
509
|
index: F,
|
|
510
510
|
onClick: i,
|
|
511
|
-
range:
|
|
511
|
+
range: E,
|
|
512
512
|
selectedIndex: n,
|
|
513
513
|
topHeight: I,
|
|
514
514
|
value: b.value,
|
|
@@ -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,9 +535,9 @@ 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
|
|
540
|
+
const a = x(), d = zt(a, e), i = (e - r) / 2, n = e / 2;
|
|
541
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: [
|
|
@@ -548,7 +548,7 @@ 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
|
),
|
|
@@ -568,7 +568,7 @@ const Xe = (s) => {
|
|
|
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
|
});
|
|
@@ -676,8 +676,8 @@ class z {
|
|
|
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
682
|
deleteBudget = async (t) => this.fetchInstance.delete(`${u.BUDGETS}/${t}`).then((e) => e).catch((e) => {
|
|
683
683
|
throw e;
|
|
@@ -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 !== A.INCOME && t.category_guid !== A.TRANSFER && t.category_guid !== A.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, 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) {
|
|
@@ -826,18 +826,18 @@ class X {
|
|
|
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
|
};
|
|
@@ -885,8 +885,8 @@ class K {
|
|
|
885
885
|
getHoldings = async () => this.fetchInstance.get(u.HOLDINGS).then((t) => t.holdings);
|
|
886
886
|
updateHoldings = async (t) => this.fetchInstance.put(`${u.HOLDINGS}/${t.guid}`, t).then((e) => e.holding);
|
|
887
887
|
}
|
|
888
|
-
class
|
|
889
|
-
analysisType =
|
|
888
|
+
class oe {
|
|
889
|
+
analysisType = vt.Stocks;
|
|
890
890
|
api = new K("/", "");
|
|
891
891
|
holdings = [];
|
|
892
892
|
holdingsLoaded = !1;
|
|
@@ -896,10 +896,10 @@ class ae {
|
|
|
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 Et(Dt(this.visibleHoldings), this.analysisType);
|
|
900
900
|
}
|
|
901
901
|
get analysisDetails() {
|
|
902
|
-
return
|
|
902
|
+
return At(this.visibleHoldings)[this.analysisType] || {};
|
|
903
903
|
}
|
|
904
904
|
get visibleHoldings() {
|
|
905
905
|
return this.holdings.filter(
|
|
@@ -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) {
|
|
@@ -1046,7 +1046,7 @@ class V {
|
|
|
1046
1046
|
}
|
|
1047
1047
|
getAppData = async () => this.fetchInstance.get(u.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,8 @@ class Ve {
|
|
|
1229
1229
|
userStore;
|
|
1230
1230
|
// UI Stores
|
|
1231
1231
|
globalUiStore;
|
|
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
|
|
1232
|
+
constructor(t = j, e = "/", r) {
|
|
1233
|
+
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 }), m(this);
|
|
1234
1234
|
}
|
|
1235
1235
|
get isInitialized() {
|
|
1236
1236
|
return this.globalUiStore.isInitialized;
|
|
@@ -1239,8 +1239,8 @@ class Ve {
|
|
|
1239
1239
|
accounts: t,
|
|
1240
1240
|
appData: e,
|
|
1241
1241
|
associatedBeats: r,
|
|
1242
|
-
categories:
|
|
1243
|
-
institutions:
|
|
1242
|
+
categories: o,
|
|
1243
|
+
institutions: a,
|
|
1244
1244
|
transactionRules: d,
|
|
1245
1245
|
transactions: i,
|
|
1246
1246
|
userFeatures: n
|
|
@@ -1251,8 +1251,8 @@ class Ve {
|
|
|
1251
1251
|
this.appDataStore.loadAppData(e),
|
|
1252
1252
|
this.userStore.loadUserFeatures(n)
|
|
1253
1253
|
]), await Promise.all([
|
|
1254
|
-
this.accountStore.loadAccountData({ accounts: t, institutions:
|
|
1255
|
-
this.categoryStore.loadCategories(
|
|
1254
|
+
this.accountStore.loadAccountData({ accounts: t, institutions: a }),
|
|
1255
|
+
this.categoryStore.loadCategories(o),
|
|
1256
1256
|
this.transactionStore.loadTransactionData({
|
|
1257
1257
|
associatedBeats: r,
|
|
1258
1258
|
transactionRules: d,
|
|
@@ -1263,10 +1263,10 @@ class Ve {
|
|
|
1263
1263
|
}
|
|
1264
1264
|
export {
|
|
1265
1265
|
xs as ANALYTICS_EVENTS,
|
|
1266
|
-
|
|
1267
|
-
|
|
1266
|
+
Ds as AccountFilter,
|
|
1267
|
+
As as AccountIcon,
|
|
1268
1268
|
Ts as AccountIconVariants,
|
|
1269
|
-
|
|
1269
|
+
Ar as AccountNotificationTypes,
|
|
1270
1270
|
Bs as AccountSubType,
|
|
1271
1271
|
Is as AccountType,
|
|
1272
1272
|
Ns as AccountTypeName,
|
|
@@ -1274,20 +1274,20 @@ export {
|
|
|
1274
1274
|
u as ApiEndpoints,
|
|
1275
1275
|
P as BannerApi,
|
|
1276
1276
|
Ke as BarChart,
|
|
1277
|
-
|
|
1277
|
+
as as BeatApi,
|
|
1278
1278
|
Tr as BudgetNotificationTypes,
|
|
1279
1279
|
ls as Calendar,
|
|
1280
1280
|
hs as CalendarSelectionTypes,
|
|
1281
1281
|
is as CategoryApi,
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1282
|
+
to as CategoryColors,
|
|
1283
|
+
eo as CategoryGuidToName,
|
|
1284
|
+
A as CategoryGuids,
|
|
1285
|
+
so as CategoryIcon,
|
|
1286
1286
|
hr as ConnectCard,
|
|
1287
1287
|
Fs as ConnectDrawer,
|
|
1288
1288
|
Ms as ConnectionStatus,
|
|
1289
1289
|
$s as ConnectionStatusEnums,
|
|
1290
|
-
|
|
1290
|
+
ao as CurrencyCodes,
|
|
1291
1291
|
qs as CurrencyInput,
|
|
1292
1292
|
yr as CurrencyText,
|
|
1293
1293
|
Gr as DATE_FORMATS_INTL,
|
|
@@ -1303,11 +1303,11 @@ export {
|
|
|
1303
1303
|
Rs as ErrorStatuses,
|
|
1304
1304
|
Zt as ExpenseStatus,
|
|
1305
1305
|
y as Fetch,
|
|
1306
|
-
|
|
1306
|
+
or as Frequency,
|
|
1307
1307
|
M as GlobalCopyApi,
|
|
1308
1308
|
Xt as GlobalCopyStore,
|
|
1309
|
-
|
|
1310
|
-
|
|
1309
|
+
_o as GlobalDataContext,
|
|
1310
|
+
yo as GlobalDataProvider,
|
|
1311
1311
|
Ve as GlobalStore,
|
|
1312
1312
|
gr as GoalType,
|
|
1313
1313
|
jr as INCOME_ACCOUNT_TYPES,
|
|
@@ -1333,13 +1333,13 @@ export {
|
|
|
1333
1333
|
Pr as ORDINAL_DATE_FORMAT,
|
|
1334
1334
|
qr as ORDINAL_MONTH_DAY_YEAR_FORMAT,
|
|
1335
1335
|
Vr as PAYMENT_ACCOUNT_TYPES,
|
|
1336
|
-
|
|
1336
|
+
ro as PaymentCategories,
|
|
1337
1337
|
$t as PlanTypes,
|
|
1338
1338
|
Ls as ProcessingStatuses,
|
|
1339
1339
|
Os as PropertyType,
|
|
1340
1340
|
Gs as PropertyTypeName,
|
|
1341
1341
|
qe as RECURRENCE_COPY,
|
|
1342
|
-
|
|
1342
|
+
ar as RecurrenceStatus,
|
|
1343
1343
|
nr as RecurrenceType,
|
|
1344
1344
|
Mt as RecurrenceTypes,
|
|
1345
1345
|
ir as RepeatingType,
|
|
@@ -1352,11 +1352,11 @@ export {
|
|
|
1352
1352
|
cr as Select,
|
|
1353
1353
|
Vs as SelectionBox,
|
|
1354
1354
|
Yr as SingleSegmentDonut,
|
|
1355
|
-
|
|
1356
|
-
|
|
1355
|
+
go as Sizes,
|
|
1356
|
+
vr as StackedLineChart,
|
|
1357
1357
|
Lr as StatusBar,
|
|
1358
1358
|
Hs as StatusName,
|
|
1359
|
-
|
|
1359
|
+
po as TOUCH_TARGET,
|
|
1360
1360
|
Js as TabContentContainer,
|
|
1361
1361
|
Nr as ToggleButtonListItem,
|
|
1362
1362
|
Fr as ToggleListItem,
|
|
@@ -1367,54 +1367,54 @@ export {
|
|
|
1367
1367
|
ce as UserStore,
|
|
1368
1368
|
Vt as UserVerification,
|
|
1369
1369
|
q as WidgetApi,
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1370
|
+
vs as WidgetContainer,
|
|
1371
|
+
fo as WidgetContainerContext,
|
|
1372
|
+
So as WidgetContainerProvider,
|
|
1373
1373
|
es as analyticsSession,
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1374
|
+
sa as buildDynamicCopy,
|
|
1375
|
+
ra as buildPluralCopy,
|
|
1376
|
+
no as formatCurrency,
|
|
1377
1377
|
Wr as formatDate,
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1378
|
+
io as formatOrdinal,
|
|
1379
|
+
co as formatPercentage,
|
|
1380
|
+
ta as fromTimestampToMonthYear,
|
|
1381
|
+
Xo as getCategory,
|
|
1382
|
+
Ko as getCategoryTotalsByParent,
|
|
1383
1383
|
Qe as getClientTheme,
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1384
|
+
uo as getCurrencyCodes,
|
|
1385
|
+
jo as getDetailedCategory,
|
|
1386
|
+
Vo as getDetailedSubCategory,
|
|
1387
|
+
oa as getLocale,
|
|
1388
|
+
Zo as isIncome,
|
|
1389
|
+
lo as isValidNumber,
|
|
1390
|
+
bo as useAccountStore,
|
|
1391
|
+
wo as useAppConfig,
|
|
1392
|
+
xo as useBudgetsStore,
|
|
1393
|
+
Co as useCashflowStore,
|
|
1394
|
+
vo as useCategoryStore,
|
|
1395
1395
|
ss as useCombineEvents,
|
|
1396
1396
|
rs as useCombinePageviews,
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1397
|
+
Eo as useDebtStore,
|
|
1398
|
+
Do as useError,
|
|
1399
|
+
Ao as useEvent,
|
|
1400
|
+
To as useFinstrongStore,
|
|
1401
|
+
Bo as useGlobalCopyStore,
|
|
1402
|
+
Io as useGlobalStore,
|
|
1403
|
+
No as useGlobalUiStore,
|
|
1404
|
+
Fo as useGoalStore,
|
|
1405
|
+
Mo as useHelpStore,
|
|
1406
|
+
$o as useHoldingStore,
|
|
1407
|
+
Er as useInsightsEnabled,
|
|
1408
|
+
Ro as useMerchantStore,
|
|
1409
|
+
Uo as useNetWorthStore,
|
|
1410
|
+
ko as useNotificationStore,
|
|
1411
|
+
Lo as usePageView,
|
|
1412
1412
|
Xe as usePrevious,
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1413
|
+
Oo as useRecurringTransactionsStore,
|
|
1414
|
+
Yo as useScreenSize,
|
|
1415
|
+
Go as useSettingsStore,
|
|
1416
|
+
Ho as useTransactionStore,
|
|
1417
|
+
Po as useTrendsStore,
|
|
1418
|
+
qo as useUserStore,
|
|
1419
|
+
Wo as useWidgetContainerProvider
|
|
1420
1420
|
};
|
|
@@ -64,7 +64,7 @@ export declare class GlobalStore {
|
|
|
64
64
|
trendsStore: TrendsStore;
|
|
65
65
|
userStore: UserStore;
|
|
66
66
|
globalUiStore: GlobalUiStore;
|
|
67
|
-
constructor(appConfig?: AppConfig, endpoint?: string);
|
|
67
|
+
constructor(appConfig?: AppConfig, endpoint?: string, onError?: GlobalErrorHandler);
|
|
68
68
|
get isInitialized(): boolean;
|
|
69
69
|
loadData: ({ accounts, appData, associatedBeats, categories, institutions, transactionRules, transactions, userFeatures, }?: LoadDataProps) => Promise<void>;
|
|
70
70
|
}
|
package/dist/goals/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as ye, T as d, a as We, M as q, C as Ae, b as Ve, G as he } from "../GoalStore-
|
|
2
|
-
import { c as Un, d as Yn } from "../GoalStore-
|
|
1
|
+
import { g as ye, T as d, a as We, M as q, C as Ae, b as Ve, G as he } from "../GoalStore-CBRbZQIz.mjs";
|
|
2
|
+
import { c as Un, d as Yn } from "../GoalStore-CBRbZQIz.mjs";
|
|
3
3
|
import { jsxs as i, jsx as e, Fragment as U } from "react/jsx-runtime";
|
|
4
4
|
import y from "react";
|
|
5
5
|
import { observer as D } from "mobx-react-lite";
|