@mx-cartographer/experiences 7.0.23-alpha.al10 → 7.0.23-alpha.al12
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-CVVDlNDC.mjs → Account-BW3-oYEs.mjs} +1 -1
- package/dist/{AccountDetailsContent-bQKVSCZF.mjs → AccountDetailsContent-UxSEMBo_.mjs} +8 -8
- package/dist/{AccountDetailsHeader-BGQAu0Xm.mjs → AccountDetailsHeader-Eb3WvBGm.mjs} +8 -8
- package/dist/{AccountFields-CC7kzfPK.mjs → AccountFields-CIz-r3gP.mjs} +2 -2
- package/dist/{AccountListItem-wgvQjLxW.mjs → AccountListItem-B-ZjJ4Gp.mjs} +3 -3
- package/dist/{AccountStore-DpglOysH.mjs → AccountStore-DCDmxODy.mjs} +5 -5
- package/dist/{Accounts-ByViymVi.mjs → Accounts-CA-nqAjT.mjs} +1 -1
- package/dist/{BudgetUtil-gzgNEDE7.mjs → BudgetUtil-CeSLAcsl.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-LpZcwQPa.mjs → CategorySelectorDrawer-BJ9jlCyt.mjs} +4 -4
- package/dist/{ConnectDrawer-C2minBK_.mjs → ConnectDrawer-phFH6OHt.mjs} +1 -1
- package/dist/{ConnectionsDrawer-Cd4dZuWL.mjs → ConnectionsDrawer-ihxkAi1P.mjs} +2 -2
- package/dist/{CurrencyInput-Dz4r9Rfe.mjs → CurrencyInput-bEx2Mbd0.mjs} +1 -1
- package/dist/{DebtsStore-B51DTXVj.mjs → DebtsStore-VkyMADzd.mjs} +1 -1
- package/dist/ExportCsvAction-CbMfQ2Wa.mjs +24 -0
- package/dist/{GoalStore-DqQ2FMx5.mjs → GoalStore-eSOkI6uE.mjs} +2 -2
- package/dist/{Help-DVPbIxMM.mjs → Help-KAAMEubC.mjs} +1 -1
- package/dist/{LineChart-DLk-bww5.mjs → LineChart-BWWmmJxV.mjs} +1 -1
- package/dist/{ListItemAction-DE6S0N5o.mjs → ListItemAction-DNZZ5fSa.mjs} +1 -1
- package/dist/{ManageIncome-BokhnWOn.mjs → ManageIncome-DbsiKUoO.mjs} +4 -4
- package/dist/{MicroWidgetContainer-5YscP1xa.mjs → MicroWidgetContainer-Dxz8uBN9.mjs} +1 -1
- package/dist/{MiniWidgetContainer-BlsgwNew.mjs → MiniWidgetContainer-CTyjmE1h.mjs} +1 -1
- package/dist/{NetWorthStore-C0hQSRzt.mjs → NetWorthStore-B6xF9eGH.mjs} +2 -2
- package/dist/{NotificationSettings-CWx6H-2z.mjs → NotificationSettings-BJFyyZYE.mjs} +2 -2
- package/dist/{OriginalBalanceAction-BKsSQVnI.mjs → OriginalBalanceAction-DepsKiJz.mjs} +3 -3
- package/dist/{RecurringSettings-CICRt51C.mjs → RecurringSettings-Dj29piAQ.mjs} +3 -3
- package/dist/ResponsiveButton-DZFp78fJ.mjs +45 -0
- package/dist/{TransactionDetails-BXl0m15s.mjs → TransactionDetails-C-z3HGTT.mjs} +37 -37
- package/dist/{TransactionStore-BElBVYfk.mjs → TransactionStore-0tLtBEIC.mjs} +209 -248
- package/dist/TrendsStore-WrHxzdbQ.mjs +565 -0
- package/dist/{User-DtwqVm3K.mjs → User-Dq9Qj764.mjs} +1 -1
- package/dist/ViewMoreMicroCard-DFAY0tA8.mjs +1974 -0
- package/dist/{WidgetContainer-DK8aZO5l.mjs → WidgetContainer-CdBs9WOZ.mjs} +2 -2
- package/dist/accounts/index.es.js +12 -12
- package/dist/analytics/index.es.js +8 -8
- package/dist/budgets/index.es.js +10 -10
- package/dist/cashflow/index.es.js +7 -7
- package/dist/categories/index.es.js +1 -1
- package/dist/common/index.es.js +518 -577
- package/dist/dashboard/index.es.js +9 -9
- package/dist/debts/index.es.js +9 -9
- package/dist/{exportTransactionsToCSV-Cf5VRYVr.mjs → exportTransactionsToCSV-BDlt8u0n.mjs} +1 -1
- package/dist/finstrong/index.es.js +6 -6
- package/dist/goals/index.es.js +11 -11
- package/dist/help/index.es.js +3 -3
- package/dist/{hooks-DUeXom8C.mjs → hooks-DkUqN6JE.mjs} +13 -13
- package/dist/investments/index.es.js +3 -3
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/index.es.js +14 -1969
- package/dist/networth/index.es.js +7 -7
- package/dist/notifications/index.es.js +2 -2
- package/dist/recurringtransactions/index.es.js +8 -8
- package/dist/settings/index.es.js +24 -24
- package/dist/spending/index.es.js +21 -21
- package/dist/transactions/index.es.js +259 -270
- package/dist/trends/index.es.js +784 -406
- package/package.json +1 -1
- package/dist/TrendsStore-DRuzsVVE.mjs +0 -505
- package/dist/TrendsWidget-CRi8EO04.mjs +0 -6
package/dist/common/index.es.js
CHANGED
|
@@ -1,83 +1,79 @@
|
|
|
1
|
-
import { G as
|
|
2
|
-
import { A as
|
|
1
|
+
import { G as M } from "../useCombineEvents-DaDBSR_1.mjs";
|
|
2
|
+
import { A as ts, a as es, u as ss, b as as } from "../useCombineEvents-DaDBSR_1.mjs";
|
|
3
3
|
import { F as y, A as l } from "../Fetch-CkFKy79O.mjs";
|
|
4
|
-
import { B as
|
|
5
|
-
import { C as
|
|
6
|
-
import { a as
|
|
7
|
-
import { N as
|
|
8
|
-
import { a as
|
|
9
|
-
import { T as
|
|
10
|
-
import { C as
|
|
11
|
-
import { H as
|
|
12
|
-
import { E as
|
|
13
|
-
import { M as
|
|
14
|
-
import { M as
|
|
15
|
-
import { A as
|
|
16
|
-
import { i as
|
|
17
|
-
import { C as
|
|
18
|
-
import { L as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import { C as
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import { useTokens as x, Text as
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import { S as
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import { a as
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import { a as
|
|
74
|
-
import {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
import { b as lo, a as uo, g as ho } from "../Localization-2MODESHW.mjs";
|
|
78
|
-
import { alpha as kt, lighten as P, darken as W } from "@mui/material";
|
|
79
|
-
var Ut = /* @__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))(Ut || {});
|
|
80
|
-
const Je = [
|
|
4
|
+
import { B as os } from "../BeatApi-DLu87ijw.mjs";
|
|
5
|
+
import { C as et } from "../CategoryStore-BOyzQjQp.mjs";
|
|
6
|
+
import { a as is } from "../CategoryStore-BOyzQjQp.mjs";
|
|
7
|
+
import { N as st } from "../NotificationStore-DHtSGySy.mjs";
|
|
8
|
+
import { a as ds } from "../NotificationStore-DHtSGySy.mjs";
|
|
9
|
+
import { T as at } from "../User-Dq9Qj764.mjs";
|
|
10
|
+
import { C as us, b as hs, L as gs, a as ps } from "../User-Dq9Qj764.mjs";
|
|
11
|
+
import { H as rt } from "../Help-DhcC-C05.mjs";
|
|
12
|
+
import { E as _s } from "../Help-DhcC-C05.mjs";
|
|
13
|
+
import { M as fs } from "../MicroWidgetContainer-Dxz8uBN9.mjs";
|
|
14
|
+
import { M as bs } from "../MiniWidgetContainer-CTyjmE1h.mjs";
|
|
15
|
+
import { A as xs, D as Cs, W as Ds } from "../WidgetContainer-CdBs9WOZ.mjs";
|
|
16
|
+
import { i as As, a as Es, e as Ts, l as Bs, A as Is, f as Ns, j as Fs, d as Ms, k as $s, E as Rs, h as Us, N as ks, g as Ls, P as Os, m as Gs, S as Hs } from "../ConnectDrawer-phFH6OHt.mjs";
|
|
17
|
+
import { C as qs } from "../CurrencyInput-bEx2Mbd0.mjs";
|
|
18
|
+
import { L as Qs } from "../Loader-DUaFpDGv.mjs";
|
|
19
|
+
import { R as zs } from "../ResponsiveButton-DZFp78fJ.mjs";
|
|
20
|
+
import { S as Ks } from "../SearchBox-B2_zLv8-.mjs";
|
|
21
|
+
import { T as ot } from "../TransactionStore-0tLtBEIC.mjs";
|
|
22
|
+
import { S as Vs } from "../TransactionStore-0tLtBEIC.mjs";
|
|
23
|
+
import { T as Js } from "../TabContentContainer-j01JYR_7.mjs";
|
|
24
|
+
import { I as ea } from "../IconBacking-B9oC6uL2.mjs";
|
|
25
|
+
import { D as aa, F as ra, a as oa, c as na, R as ia, S as ca } from "../RepeatingTransaction-BW4J-jeJ.mjs";
|
|
26
|
+
import { C as nt } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
27
|
+
import { I as la } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
28
|
+
import { d as it } from "../GoalStore-eSOkI6uE.mjs";
|
|
29
|
+
import { C as ha, G as ga, M as pa, T as ma } from "../GoalStore-eSOkI6uE.mjs";
|
|
30
|
+
import { C as ya } from "../CurrencyText-YUhH2caW.mjs";
|
|
31
|
+
import { E as Sa } from "../EmptyState-C0lr9E5T.mjs";
|
|
32
|
+
import { L as wa } from "../ListItemAction-DNZZ5fSa.mjs";
|
|
33
|
+
import { T as ct } from "../TrendsStore-WrHxzdbQ.mjs";
|
|
34
|
+
import { L as Ca, S as Da, u as va } from "../TrendsStore-WrHxzdbQ.mjs";
|
|
35
|
+
import { A as Ea, B as Ta, I as Ba, N as Ia, T as Na, a as Fa } from "../Notification-ByMBpJ5u.mjs";
|
|
36
|
+
import { jsxs as _, jsx as c } from "react/jsx-runtime";
|
|
37
|
+
import dt, { useRef as lt, useEffect as ut } from "react";
|
|
38
|
+
import { css as w, keyframes as ht } from "@mxenabled/cssinjs";
|
|
39
|
+
import { useTokens as x, Text as B } from "@mxenabled/mxui";
|
|
40
|
+
import { D as $a } from "../Donut-1UMNcG67.mjs";
|
|
41
|
+
import { L as Ua } from "../LineChart-BWWmmJxV.mjs";
|
|
42
|
+
import { S as La } from "../StatusBar-BK_uYHAB.mjs";
|
|
43
|
+
import { D as Ga, a as Ha, O as Pa, b as qa, f as Wa } from "../Dialog-CWW597AF.mjs";
|
|
44
|
+
import { D as gt, a as pt } from "../SingleSegmentDonut-BgbLgwHi.mjs";
|
|
45
|
+
import { S as Ya } from "../SingleSegmentDonut-BgbLgwHi.mjs";
|
|
46
|
+
import { D as Xa } from "../Drawer-kEE73B87.mjs";
|
|
47
|
+
import { I as ja, P as Va, S as Za } from "../Account-BW3-oYEs.mjs";
|
|
48
|
+
import { b as E } from "../Category-CevNQ03n.mjs";
|
|
49
|
+
import { C as tr, c as er, a as sr, P as ar } from "../Category-CevNQ03n.mjs";
|
|
50
|
+
import { C as or, f as nr, b as ir, a as cr, g as dr, i as lr } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
51
|
+
import { R as mt } from "../RecurringTransactionsStore-D62XJtdL.mjs";
|
|
52
|
+
import { S as hr, T as gr } from "../RecurringTransactionsStore-D62XJtdL.mjs";
|
|
53
|
+
import { G as mr, A as _r, B as yr, W as fr, c as Sr, m as br, g as wr, t as xr, k as Cr, x as Dr, e as vr, w as Ar, u as Er, l as Tr, a as Br, j as Ir, y as Nr, s as Fr, b as Mr, q as $r, n as Rr, z as Ur, h as kr, r as Lr, f as Or, v as Gr, o as Hr, p as Pr } from "../hooks-DkUqN6JE.mjs";
|
|
54
|
+
import { u as Wr } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
55
|
+
import { makeAutoObservable as m, runInAction as p, reaction as _t } from "mobx";
|
|
56
|
+
import { a as yt } from "../AccountStore-DCDmxODy.mjs";
|
|
57
|
+
import ft from "posthog-js";
|
|
58
|
+
import { B as St } from "../BeatStore-By4aGoRM.mjs";
|
|
59
|
+
import { endOfMonth as Z } from "date-fns/endOfMonth";
|
|
60
|
+
import { startOfMonth as J } from "date-fns/startOfMonth";
|
|
61
|
+
import { startOfToday as L } from "date-fns/startOfToday";
|
|
62
|
+
import { f as bt, a as wt, b as O } from "../BudgetUtil-CeSLAcsl.mjs";
|
|
63
|
+
import { g as Yr, e as zr, c as Xr, d as Kr, i as jr } from "../BudgetUtil-CeSLAcsl.mjs";
|
|
64
|
+
import { a as xt } from "../DebtsStore-VkyMADzd.mjs";
|
|
65
|
+
import { a as Ct } from "../FinstrongStore-mkALvztw.mjs";
|
|
66
|
+
import { A as Dt, m as vt, a as At, b as Et } from "../InvestmentUtil-jOyOgzIB.mjs";
|
|
67
|
+
import { M as Tt } from "../MerchantStore-DVH-QOf0.mjs";
|
|
68
|
+
import { N as Bt } from "../NetWorthStore-B6xF9eGH.mjs";
|
|
69
|
+
import { a as It } from "../SettingsStore-B4gi6oOw.mjs";
|
|
70
|
+
import { addMonths as Nt } from "date-fns/addMonths";
|
|
71
|
+
import { getMonth as T } from "date-fns/getMonth";
|
|
72
|
+
import { i as Zr } from "../DateUtil-BcuH7ErC.mjs";
|
|
73
|
+
import { b as to, a as eo, g as so } from "../Localization-2MODESHW.mjs";
|
|
74
|
+
import { alpha as Ft, lighten as G, darken as H } from "@mui/material";
|
|
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
|
+
const qe = [
|
|
81
77
|
{ id: 0, copy: "frequency_unknown" },
|
|
82
78
|
{ id: 1, copy: "frequency_every_week" },
|
|
83
79
|
{ id: 2, copy: "frequency_every_other_week" },
|
|
@@ -86,43 +82,43 @@ const Je = [
|
|
|
86
82
|
{ id: 5, copy: "frequency_every_quarter" },
|
|
87
83
|
{ id: 6, copy: "frequency_every_other_quarter" },
|
|
88
84
|
{ id: 7, copy: "frequency_every_year" }
|
|
89
|
-
],
|
|
85
|
+
], We = {
|
|
90
86
|
ERROR: "ERROR",
|
|
91
87
|
LOADING: "LOADING",
|
|
92
88
|
SUCCESS: "SUCCESS"
|
|
93
89
|
};
|
|
94
|
-
var
|
|
95
|
-
const
|
|
96
|
-
const e = s.palette.mode === "dark",
|
|
97
|
-
const
|
|
90
|
+
var $t = /* @__PURE__ */ ((s) => (s[s.SpendingPlan = 0] = "SpendingPlan", s[s.Budgets = 1] = "Budgets", s))($t || {}), Rt = /* @__PURE__ */ ((s) => (s[s.RecurringExpense = 0] = "RecurringExpense", s[s.PlannedExpense = 1] = "PlannedExpense", s[s.Other = 2] = "Other", s[s.Income = 3] = "Income", s))(Rt || {});
|
|
91
|
+
const Qe = (s, t) => {
|
|
92
|
+
const e = s.palette.mode === "dark", a = (d, i) => {
|
|
93
|
+
const n = t?.[d];
|
|
98
94
|
return {
|
|
99
|
-
lighter:
|
|
100
|
-
light:
|
|
101
|
-
main:
|
|
102
|
-
dark:
|
|
103
|
-
darker:
|
|
95
|
+
lighter: n ? G(n, 0.5) : i.lighter,
|
|
96
|
+
light: n ? G(n, 0.25) : i.light,
|
|
97
|
+
main: n || i.main,
|
|
98
|
+
dark: n ? H(n, 0.25) : i.dark,
|
|
99
|
+
darker: n ? H(n, 0.5) : i.darker
|
|
104
100
|
};
|
|
105
|
-
},
|
|
106
|
-
primary:
|
|
107
|
-
secondary:
|
|
108
|
-
error:
|
|
109
|
-
warning:
|
|
110
|
-
info:
|
|
111
|
-
success:
|
|
112
|
-
},
|
|
101
|
+
}, r = {
|
|
102
|
+
primary: a(e ? "primary_color_dark" : "primary_color", s.palette.primary),
|
|
103
|
+
secondary: a(e ? "neutral_color_dark" : "neutral_color", s.palette.secondary),
|
|
104
|
+
error: a(e ? "error_color_dark" : "error_color", s.palette.error),
|
|
105
|
+
warning: a(e ? "warning_color_dark" : "warning_color", s.palette.warning),
|
|
106
|
+
info: a(e ? "info_color_dark" : "info_color", s.palette.info),
|
|
107
|
+
success: a(e ? "success_color_dark" : "success_color", s.palette.success)
|
|
108
|
+
}, o = {
|
|
113
109
|
MuiTabs: {
|
|
114
110
|
styleOverrides: {
|
|
115
111
|
indicator: {
|
|
116
|
-
backgroundColor:
|
|
112
|
+
backgroundColor: r.primary.light
|
|
117
113
|
}
|
|
118
114
|
}
|
|
119
115
|
},
|
|
120
116
|
MuiPickersCalendarHeader: {
|
|
121
117
|
styleOverrides: {
|
|
122
118
|
switchViewButton: {
|
|
123
|
-
color:
|
|
119
|
+
color: r.primary.lighter,
|
|
124
120
|
"&:hover": {
|
|
125
|
-
backgroundColor:
|
|
121
|
+
backgroundColor: Ft(r.primary.light, 0.1)
|
|
126
122
|
}
|
|
127
123
|
}
|
|
128
124
|
}
|
|
@@ -217,14 +213,14 @@ const es = (s, t) => {
|
|
|
217
213
|
fontFamily: t?.system_font ?? s.typography.fontFamily
|
|
218
214
|
}
|
|
219
215
|
},
|
|
220
|
-
palette:
|
|
221
|
-
components:
|
|
216
|
+
palette: r,
|
|
217
|
+
components: o,
|
|
222
218
|
shape: {
|
|
223
219
|
borderRadius: t?.button_corner_radius ?? s.shape.borderRadius
|
|
224
220
|
}
|
|
225
221
|
};
|
|
226
222
|
};
|
|
227
|
-
class
|
|
223
|
+
class P {
|
|
228
224
|
fetchInstance;
|
|
229
225
|
constructor(t) {
|
|
230
226
|
this.fetchInstance = new y(t, "", {
|
|
@@ -235,13 +231,13 @@ class q {
|
|
|
235
231
|
getBanner = async (t) => {
|
|
236
232
|
try {
|
|
237
233
|
const e = `/banner/${t}/account_widget_banner`;
|
|
238
|
-
return this.fetchInstance?.get(e).then((
|
|
234
|
+
return this.fetchInstance?.get(e).then((a) => a.banner) ?? {};
|
|
239
235
|
} catch (e) {
|
|
240
236
|
return console.error("Error fetching banner:", e), null;
|
|
241
237
|
}
|
|
242
238
|
};
|
|
243
239
|
}
|
|
244
|
-
class
|
|
240
|
+
class Ye {
|
|
245
241
|
fetchInstance;
|
|
246
242
|
constructor(t, e) {
|
|
247
243
|
this.fetchInstance = new y(t, e);
|
|
@@ -249,7 +245,7 @@ class ss {
|
|
|
249
245
|
getLocalizedCopy = async (t) => this.fetchInstance.post(l.LOCALIZED_COPY, t).then((e) => e);
|
|
250
246
|
getLocalizedContent = async (t) => this.fetchInstance.post(`${l.LOCALIZED_CONTENT}/${t}`).then((e) => e);
|
|
251
247
|
}
|
|
252
|
-
class
|
|
248
|
+
class ze {
|
|
253
249
|
fetchInstance;
|
|
254
250
|
constructor(t, e) {
|
|
255
251
|
this.fetchInstance = new y(t, e);
|
|
@@ -257,13 +253,13 @@ class rs {
|
|
|
257
253
|
addScheduledPayment = async (t) => this.fetchInstance.post(l.SCHEDULED_PAYMENTS, {
|
|
258
254
|
...t,
|
|
259
255
|
is_recurring: "true",
|
|
260
|
-
transaction_type:
|
|
256
|
+
transaction_type: at.DEBIT
|
|
261
257
|
}).then((e) => e.scheduled_payment);
|
|
262
258
|
getScheduledPayments = async () => this.fetchInstance.get(l.SCHEDULED_PAYMENTS).then((t) => t.scheduled_payments);
|
|
263
259
|
updateScheduledPayment = async (t) => this.fetchInstance.put(`${l.SCHEDULED_PAYMENTS}/${t.guid}`, t).then((e) => e.scheduled_payment);
|
|
264
260
|
deleteScheduledPayment = async (t) => this.fetchInstance.delete(`${l.SCHEDULED_PAYMENTS}/${t}`).then((e) => e);
|
|
265
261
|
}
|
|
266
|
-
class
|
|
262
|
+
class $ {
|
|
267
263
|
fetchInstance;
|
|
268
264
|
constructor(t, e) {
|
|
269
265
|
this.fetchInstance = new y(t, e);
|
|
@@ -272,31 +268,31 @@ class L {
|
|
|
272
268
|
updateUser = async (t) => this.fetchInstance.put(l.USER, t).then((e) => e.user);
|
|
273
269
|
updateUserProfile = async (t) => this.fetchInstance.put(`${l.USER_PROFILES}/${t.guid}`, t).then((e) => e.user_profile);
|
|
274
270
|
}
|
|
275
|
-
class
|
|
271
|
+
class q {
|
|
276
272
|
fetchInstance;
|
|
277
273
|
constructor(t, e) {
|
|
278
274
|
this.fetchInstance = new y(t, e);
|
|
279
275
|
}
|
|
280
276
|
requestWidgetUrl = async (t) => this.fetchInstance.post(l.WIDGET_URLS, t).then((e) => e.widget_url);
|
|
281
277
|
}
|
|
282
|
-
const
|
|
283
|
-
const t =
|
|
284
|
-
return
|
|
278
|
+
const Xe = (s) => {
|
|
279
|
+
const t = lt();
|
|
280
|
+
return ut(() => {
|
|
285
281
|
t.current = s;
|
|
286
282
|
}, [s]), t.current;
|
|
287
|
-
},
|
|
288
|
-
const
|
|
289
|
-
return /* @__PURE__ */
|
|
290
|
-
/* @__PURE__ */
|
|
291
|
-
/* @__PURE__ */
|
|
292
|
-
/* @__PURE__ */
|
|
293
|
-
/* @__PURE__ */
|
|
294
|
-
/* @__PURE__ */
|
|
295
|
-
/* @__PURE__ */
|
|
283
|
+
}, Ut = ({ color: s, labelAverage: t, labelMain: e }) => {
|
|
284
|
+
const a = x(), r = kt(a, s);
|
|
285
|
+
return /* @__PURE__ */ _("div", { className: `mx-cmn-bar-chart-legend ${r}`, children: [
|
|
286
|
+
/* @__PURE__ */ c("div", { "aria-label": e, className: "mx-cmn-color-square", role: "img" }),
|
|
287
|
+
/* @__PURE__ */ c(B, { variant: "XSmall", children: e }),
|
|
288
|
+
/* @__PURE__ */ _("div", { "aria-label": t, className: "mx-cmn-triple-dot", role: "img", children: [
|
|
289
|
+
/* @__PURE__ */ c("div", { className: "mx-cmn-dot" }),
|
|
290
|
+
/* @__PURE__ */ c("div", { className: "mx-cmn-dot" }),
|
|
291
|
+
/* @__PURE__ */ c("div", { className: "mx-cmn-dot" })
|
|
296
292
|
] }),
|
|
297
|
-
/* @__PURE__ */
|
|
293
|
+
/* @__PURE__ */ c(B, { variant: "XSmall", children: t })
|
|
298
294
|
] });
|
|
299
|
-
},
|
|
295
|
+
}, kt = (s, t) => w({
|
|
300
296
|
alignItems: "center",
|
|
301
297
|
display: "flex",
|
|
302
298
|
gap: s.Spacing.XSmall,
|
|
@@ -322,48 +318,48 @@ const as = (s) => {
|
|
|
322
318
|
"& > .kyper-text": {
|
|
323
319
|
marginRight: s.Spacing.XSmall
|
|
324
320
|
}
|
|
325
|
-
}),
|
|
321
|
+
}), W = ({
|
|
326
322
|
ariaLabel: s,
|
|
327
323
|
color: t,
|
|
328
324
|
height: e,
|
|
329
|
-
index:
|
|
330
|
-
label:
|
|
331
|
-
onClick:
|
|
325
|
+
index: a,
|
|
326
|
+
label: r,
|
|
327
|
+
onClick: o,
|
|
332
328
|
selectedIndex: d,
|
|
333
|
-
value:
|
|
329
|
+
value: i
|
|
334
330
|
}) => {
|
|
335
|
-
const
|
|
336
|
-
|
|
337
|
-
}, f = d === void 0 || d ===
|
|
338
|
-
|
|
331
|
+
const n = x(), u = Lt(n, t, e), h = (S) => {
|
|
332
|
+
o && (S.key === " " || S.key === "Enter") && o(a);
|
|
333
|
+
}, f = d === void 0 || d === a ? "primary" : "secondary", g = () => /* @__PURE__ */ c(
|
|
334
|
+
B,
|
|
339
335
|
{
|
|
340
336
|
"aria-hidden": !0,
|
|
341
|
-
bold: d ===
|
|
337
|
+
bold: d === a,
|
|
342
338
|
className: "mx-cmn-bar-text",
|
|
343
339
|
color: f,
|
|
344
340
|
component: "div",
|
|
345
341
|
variant: "Small",
|
|
346
|
-
children:
|
|
342
|
+
children: r
|
|
347
343
|
}
|
|
348
344
|
);
|
|
349
|
-
return /* @__PURE__ */
|
|
350
|
-
|
|
351
|
-
/* @__PURE__ */
|
|
345
|
+
return /* @__PURE__ */ _("div", { className: `mx-cmn-bar-container ${u} ${i < 0 ? "mx-cmn-negative" : ""}`, children: [
|
|
346
|
+
i >= 0 && /* @__PURE__ */ c(g, {}),
|
|
347
|
+
/* @__PURE__ */ c(
|
|
352
348
|
"div",
|
|
353
349
|
{
|
|
354
350
|
"aria-label": s,
|
|
355
|
-
className: `mx-cmn-bar ${
|
|
356
|
-
onClick:
|
|
357
|
-
onKeyDown:
|
|
351
|
+
className: `mx-cmn-bar ${o ? "mx-cmn-clickable" : ""} ${i < 0 ? "mx-cmn-bar-negative" : ""}`,
|
|
352
|
+
onClick: o ? () => o?.(a) : void 0,
|
|
353
|
+
onKeyDown: h,
|
|
358
354
|
role: s ? "button" : void 0,
|
|
359
355
|
tabIndex: s ? 0 : void 0
|
|
360
356
|
}
|
|
361
357
|
),
|
|
362
|
-
|
|
358
|
+
i < 0 && /* @__PURE__ */ c(g, {})
|
|
363
359
|
] });
|
|
364
|
-
},
|
|
365
|
-
const
|
|
366
|
-
return
|
|
360
|
+
}, Lt = (s, t, e) => {
|
|
361
|
+
const a = `expandBar-${Math.round(e)}`, r = ht(a, { from: { height: 0 }, to: { height: e } });
|
|
362
|
+
return w({
|
|
367
363
|
display: "flex",
|
|
368
364
|
flexDirection: "column",
|
|
369
365
|
justifyContent: "flex-end",
|
|
@@ -375,7 +371,7 @@ const as = (s) => {
|
|
|
375
371
|
animationDelay: ".5s",
|
|
376
372
|
animationDuration: "1s",
|
|
377
373
|
animationFillMode: "forwards",
|
|
378
|
-
animationName:
|
|
374
|
+
animationName: r,
|
|
379
375
|
animationTimingFunction: s.Easing.Default,
|
|
380
376
|
backgroundColor: t,
|
|
381
377
|
borderRadius: `${s.BorderRadius.Medium}px ${s.BorderRadius.Medium}px 0 0`,
|
|
@@ -394,60 +390,60 @@ const as = (s) => {
|
|
|
394
390
|
width: "100%"
|
|
395
391
|
}
|
|
396
392
|
});
|
|
397
|
-
},
|
|
393
|
+
}, Q = ({
|
|
398
394
|
ariaLabel: s,
|
|
399
395
|
averageLineHeight: t,
|
|
400
396
|
bottomHeight: e,
|
|
401
|
-
color:
|
|
402
|
-
index:
|
|
403
|
-
onClick:
|
|
397
|
+
color: a,
|
|
398
|
+
index: r = -1,
|
|
399
|
+
onClick: o,
|
|
404
400
|
range: d,
|
|
405
|
-
selectedIndex:
|
|
406
|
-
topHeight:
|
|
401
|
+
selectedIndex: i,
|
|
402
|
+
topHeight: n,
|
|
407
403
|
value: u,
|
|
408
|
-
valueLabel:
|
|
404
|
+
valueLabel: h = "",
|
|
409
405
|
width: f,
|
|
410
|
-
xAxisLabel:
|
|
406
|
+
xAxisLabel: g = ""
|
|
411
407
|
}) => {
|
|
412
|
-
const
|
|
413
|
-
return /* @__PURE__ */
|
|
414
|
-
/* @__PURE__ */
|
|
415
|
-
|
|
408
|
+
const S = x(), C = Ot(S, f), D = u / d * n, v = Math.abs(u) / d * e, A = i === void 0 || i === r ? "primary" : "secondary";
|
|
409
|
+
return /* @__PURE__ */ _("div", { className: `mx-cmn-barchart-bar-column ${C}`, children: [
|
|
410
|
+
/* @__PURE__ */ c("div", { style: { height: n }, children: u >= 0 && /* @__PURE__ */ c(
|
|
411
|
+
W,
|
|
416
412
|
{
|
|
417
413
|
ariaLabel: s,
|
|
418
|
-
color:
|
|
419
|
-
height:
|
|
420
|
-
index:
|
|
421
|
-
label:
|
|
422
|
-
onClick:
|
|
423
|
-
selectedIndex:
|
|
414
|
+
color: a,
|
|
415
|
+
height: D,
|
|
416
|
+
index: r,
|
|
417
|
+
label: h,
|
|
418
|
+
onClick: o,
|
|
419
|
+
selectedIndex: i,
|
|
424
420
|
value: u
|
|
425
421
|
}
|
|
426
422
|
) }),
|
|
427
|
-
/* @__PURE__ */
|
|
428
|
-
t !== 0 && /* @__PURE__ */
|
|
429
|
-
/* @__PURE__ */
|
|
430
|
-
|
|
423
|
+
/* @__PURE__ */ c("div", { className: "mx-cmn-zero-line" }),
|
|
424
|
+
t !== 0 && /* @__PURE__ */ c("div", { className: "mx-cmn-chart-average", style: { bottom: t } }),
|
|
425
|
+
/* @__PURE__ */ c("div", { style: { height: e }, children: u < 0 && /* @__PURE__ */ c(
|
|
426
|
+
W,
|
|
431
427
|
{
|
|
432
428
|
ariaLabel: s,
|
|
433
|
-
color:
|
|
434
|
-
height:
|
|
435
|
-
index:
|
|
436
|
-
label:
|
|
437
|
-
onClick:
|
|
429
|
+
color: a,
|
|
430
|
+
height: v,
|
|
431
|
+
index: r,
|
|
432
|
+
label: h,
|
|
433
|
+
onClick: o,
|
|
438
434
|
value: u
|
|
439
435
|
}
|
|
440
436
|
) }),
|
|
441
|
-
/* @__PURE__ */
|
|
437
|
+
/* @__PURE__ */ c(
|
|
442
438
|
"div",
|
|
443
439
|
{
|
|
444
|
-
className: `mx-cmn-bar-label ${
|
|
445
|
-
onClick:
|
|
446
|
-
children: /* @__PURE__ */
|
|
440
|
+
className: `mx-cmn-bar-label ${o ? "mx-cmn-clickable" : ""}`,
|
|
441
|
+
onClick: o ? () => o(r) : void 0,
|
|
442
|
+
children: /* @__PURE__ */ c(B, { bold: i === r, color: A, variant: "Small", children: g })
|
|
447
443
|
}
|
|
448
444
|
)
|
|
449
445
|
] });
|
|
450
|
-
},
|
|
446
|
+
}, Ot = (s, t) => w({
|
|
451
447
|
display: "flex",
|
|
452
448
|
flexDirection: "column",
|
|
453
449
|
flexGrow: t === void 0 ? 1 : 0,
|
|
@@ -472,61 +468,61 @@ const as = (s) => {
|
|
|
472
468
|
"& .mx-cmn-clickable": {
|
|
473
469
|
cursor: "pointer"
|
|
474
470
|
}
|
|
475
|
-
}),
|
|
476
|
-
const
|
|
477
|
-
return s ?
|
|
478
|
-
},
|
|
471
|
+
}), Gt = (s, t) => s + t, Ht = (s, t) => Math.abs(t) > s ? Math.abs(t) : s, Pt = (s, t) => [...s, t.value], Y = (s, t, e) => {
|
|
472
|
+
const a = s && t ? e / 2 : e;
|
|
473
|
+
return s ? a : 0;
|
|
474
|
+
}, qt = (s, t, e, a) => s / (t < 0 ? -e : t) * a || 0, Wt = ({
|
|
479
475
|
average: s,
|
|
480
476
|
barWidth: t = "8%",
|
|
481
477
|
color: e,
|
|
482
|
-
data:
|
|
483
|
-
height:
|
|
484
|
-
legendLabelAverage:
|
|
478
|
+
data: a,
|
|
479
|
+
height: r,
|
|
480
|
+
legendLabelAverage: o,
|
|
485
481
|
legendLabelMain: d,
|
|
486
|
-
onBarClick:
|
|
487
|
-
selectedIndex:
|
|
488
|
-
valueFormatter: u = (
|
|
482
|
+
onBarClick: i,
|
|
483
|
+
selectedIndex: n,
|
|
484
|
+
valueFormatter: u = (h) => `${h}`
|
|
489
485
|
}) => {
|
|
490
|
-
const
|
|
491
|
-
|
|
486
|
+
const h = x(), f = Qt(h), g = a.reduce(Pt, []), S = s !== void 0 ? s : g.reduce(Gt, 0) / g.length, C = Math.max(...g), D = Math.min(...g), v = g.reduce(Ht, 0), A = C >= 0, R = D < 0, I = Y(A, R, r), N = Y(R, A, r), U = qt(S, C, D, I || N), tt = (b) => n === void 0 || b === n ? e : `${e}80`, k = () => /* @__PURE__ */ c(
|
|
487
|
+
Q,
|
|
492
488
|
{
|
|
493
|
-
averageLineHeight:
|
|
494
|
-
bottomHeight:
|
|
489
|
+
averageLineHeight: U,
|
|
490
|
+
bottomHeight: N,
|
|
495
491
|
color: "",
|
|
496
|
-
range:
|
|
497
|
-
topHeight:
|
|
492
|
+
range: v,
|
|
493
|
+
topHeight: I,
|
|
498
494
|
value: 0,
|
|
499
495
|
width: void 0
|
|
500
496
|
}
|
|
501
497
|
);
|
|
502
|
-
return /* @__PURE__ */
|
|
503
|
-
/* @__PURE__ */
|
|
504
|
-
/* @__PURE__ */
|
|
505
|
-
|
|
506
|
-
/* @__PURE__ */
|
|
507
|
-
|
|
498
|
+
return /* @__PURE__ */ _("div", { className: `mx-cmn-bar-chart ${f}`, children: [
|
|
499
|
+
/* @__PURE__ */ _("div", { className: "mx-cmn-chart-container", children: [
|
|
500
|
+
/* @__PURE__ */ c(k, {}),
|
|
501
|
+
a.map((b, F) => /* @__PURE__ */ _(dt.Fragment, { children: [
|
|
502
|
+
/* @__PURE__ */ c(
|
|
503
|
+
Q,
|
|
508
504
|
{
|
|
509
|
-
ariaLabel:
|
|
510
|
-
averageLineHeight:
|
|
511
|
-
bottomHeight:
|
|
512
|
-
color:
|
|
513
|
-
index:
|
|
514
|
-
onClick:
|
|
515
|
-
range:
|
|
516
|
-
selectedIndex:
|
|
517
|
-
topHeight:
|
|
518
|
-
value:
|
|
519
|
-
valueLabel: u(
|
|
505
|
+
ariaLabel: b.ariaLabel,
|
|
506
|
+
averageLineHeight: U,
|
|
507
|
+
bottomHeight: N,
|
|
508
|
+
color: tt(F),
|
|
509
|
+
index: F,
|
|
510
|
+
onClick: i,
|
|
511
|
+
range: v,
|
|
512
|
+
selectedIndex: n,
|
|
513
|
+
topHeight: I,
|
|
514
|
+
value: b.value,
|
|
515
|
+
valueLabel: u(b.value),
|
|
520
516
|
width: t,
|
|
521
|
-
xAxisLabel:
|
|
517
|
+
xAxisLabel: b.label
|
|
522
518
|
}
|
|
523
519
|
),
|
|
524
|
-
/* @__PURE__ */
|
|
525
|
-
] }, `column-${
|
|
520
|
+
/* @__PURE__ */ c(k, {})
|
|
521
|
+
] }, `column-${F}`))
|
|
526
522
|
] }),
|
|
527
|
-
/* @__PURE__ */
|
|
523
|
+
/* @__PURE__ */ c(Ut, { color: e, labelAverage: o, labelMain: d })
|
|
528
524
|
] });
|
|
529
|
-
},
|
|
525
|
+
}, Qt = (s) => w({
|
|
530
526
|
"& .mx-cmn-chart-container": {
|
|
531
527
|
alignItems: "flex-end",
|
|
532
528
|
display: "flex",
|
|
@@ -534,47 +530,47 @@ const as = (s) => {
|
|
|
534
530
|
marginTop: s.Spacing.Large,
|
|
535
531
|
marginBottom: s.Spacing.Medium
|
|
536
532
|
}
|
|
537
|
-
}),
|
|
533
|
+
}), Ke = Wt, Yt = ({
|
|
538
534
|
hasGap: s = !1,
|
|
539
535
|
segments: t,
|
|
540
|
-
size: e =
|
|
541
|
-
strokeWidth:
|
|
542
|
-
children:
|
|
536
|
+
size: e = gt,
|
|
537
|
+
strokeWidth: a = pt,
|
|
538
|
+
children: r
|
|
543
539
|
}) => {
|
|
544
|
-
const
|
|
545
|
-
let u = -90 - (s ? 1 : 0),
|
|
546
|
-
return /* @__PURE__ */
|
|
547
|
-
/* @__PURE__ */
|
|
548
|
-
/* @__PURE__ */
|
|
540
|
+
const o = x(), d = zt(o, e), i = (e - a) / 2, n = e / 2;
|
|
541
|
+
let u = -90 - (s ? 1 : 0), h = 0;
|
|
542
|
+
return /* @__PURE__ */ _("div", { className: `mx-cmn-multi-segment-donut ${d}`, children: [
|
|
543
|
+
/* @__PURE__ */ _("svg", { height: e, width: e, children: [
|
|
544
|
+
/* @__PURE__ */ c(
|
|
549
545
|
"circle",
|
|
550
546
|
{
|
|
551
|
-
cx:
|
|
552
|
-
cy:
|
|
547
|
+
cx: n,
|
|
548
|
+
cy: n,
|
|
553
549
|
fill: "none",
|
|
554
|
-
r:
|
|
555
|
-
stroke:
|
|
556
|
-
strokeWidth:
|
|
550
|
+
r: i,
|
|
551
|
+
stroke: o.Color.Neutral300,
|
|
552
|
+
strokeWidth: a
|
|
557
553
|
}
|
|
558
554
|
),
|
|
559
|
-
t.map((f,
|
|
555
|
+
t.map((f, g) => (u += 360 * h + (s ? 1 : 0), h = (f.percent - (s ? 0.3 : 0)) / 100, /* @__PURE__ */ c(
|
|
560
556
|
"circle",
|
|
561
557
|
{
|
|
562
|
-
cx:
|
|
563
|
-
cy:
|
|
558
|
+
cx: n,
|
|
559
|
+
cy: n,
|
|
564
560
|
fill: "none",
|
|
565
|
-
r:
|
|
561
|
+
r: i,
|
|
566
562
|
stroke: f.color,
|
|
567
|
-
strokeDasharray: 2 * Math.PI *
|
|
568
|
-
strokeDashoffset: 2 * Math.PI *
|
|
569
|
-
strokeWidth:
|
|
570
|
-
transform: `rotate(${u}, ${
|
|
563
|
+
strokeDasharray: 2 * Math.PI * i,
|
|
564
|
+
strokeDashoffset: 2 * Math.PI * i * (1 - h),
|
|
565
|
+
strokeWidth: a,
|
|
566
|
+
transform: `rotate(${u}, ${n}, ${n})`
|
|
571
567
|
},
|
|
572
|
-
|
|
568
|
+
g
|
|
573
569
|
)))
|
|
574
570
|
] }),
|
|
575
|
-
/* @__PURE__ */
|
|
571
|
+
/* @__PURE__ */ c("div", { className: "mx-cmn-multi-segment-donut-children", children: r })
|
|
576
572
|
] });
|
|
577
|
-
},
|
|
573
|
+
}, zt = (s, t) => w({
|
|
578
574
|
height: t,
|
|
579
575
|
marginTop: `-${s.Spacing.XSmall}px`,
|
|
580
576
|
position: "relative",
|
|
@@ -586,93 +582,38 @@ const as = (s) => {
|
|
|
586
582
|
top: "50%",
|
|
587
583
|
transform: "translate(-50%, -50%)"
|
|
588
584
|
}
|
|
589
|
-
}),
|
|
590
|
-
|
|
591
|
-
leftIcon: t,
|
|
592
|
-
rightIcon: e,
|
|
593
|
-
title: r,
|
|
594
|
-
subtitle: a,
|
|
595
|
-
rightContent: n,
|
|
596
|
-
titleBold: d = !0,
|
|
597
|
-
rightContentBold: c = !0
|
|
598
|
-
}) => {
|
|
599
|
-
const i = /* @__PURE__ */ h(tt.Fragment, { children: [
|
|
600
|
-
t && /* @__PURE__ */ o(O, { sx: { ml: 0 }, children: t }),
|
|
601
|
-
/* @__PURE__ */ o(mt, { children: /* @__PURE__ */ h(
|
|
602
|
-
T,
|
|
603
|
-
{
|
|
604
|
-
sx: {
|
|
605
|
-
alignItems: "center",
|
|
606
|
-
flexDirection: "row",
|
|
607
|
-
marginLeft: 12
|
|
608
|
-
},
|
|
609
|
-
children: [
|
|
610
|
-
/* @__PURE__ */ h(T, { sx: { flex: 1, minWidth: 0 }, children: [
|
|
611
|
-
/* @__PURE__ */ o(S, { bold: d, variant: "body1", children: r }),
|
|
612
|
-
a && /* @__PURE__ */ o(S, { variant: "caption", children: a })
|
|
613
|
-
] }),
|
|
614
|
-
/* @__PURE__ */ h(T, { sx: { flexDirection: "row", alignItems: "center", gap: 1 }, children: [
|
|
615
|
-
n && /* @__PURE__ */ o(S, { bold: c, display: "flex", variant: "body1", children: n }),
|
|
616
|
-
e && /* @__PURE__ */ o(O, { children: e })
|
|
617
|
-
] })
|
|
618
|
-
]
|
|
619
|
-
}
|
|
620
|
-
) })
|
|
621
|
-
] });
|
|
622
|
-
return /* @__PURE__ */ o(gt, { sx: { bgcolor: "background.paper" }, children: s ? /* @__PURE__ */ o(
|
|
623
|
-
pt,
|
|
624
|
-
{
|
|
625
|
-
onClick: s,
|
|
626
|
-
sx: {
|
|
627
|
-
py: 14
|
|
628
|
-
},
|
|
629
|
-
children: i
|
|
630
|
-
}
|
|
631
|
-
) : /* @__PURE__ */ o(
|
|
632
|
-
T,
|
|
633
|
-
{
|
|
634
|
-
sx: {
|
|
635
|
-
py: 14,
|
|
636
|
-
px: 24,
|
|
637
|
-
width: "100%",
|
|
638
|
-
flexDirection: "row",
|
|
639
|
-
alignItems: "center"
|
|
640
|
-
},
|
|
641
|
-
children: i
|
|
642
|
-
}
|
|
643
|
-
) });
|
|
644
|
-
};
|
|
645
|
-
class Jt {
|
|
585
|
+
}), je = Yt;
|
|
586
|
+
class Xt {
|
|
646
587
|
globalStore;
|
|
647
|
-
api = new
|
|
588
|
+
api = new M("/", "");
|
|
648
589
|
copy = {};
|
|
649
590
|
featureNamespace = "experiences";
|
|
650
591
|
isInitialized = !1;
|
|
651
592
|
constructor(t) {
|
|
652
|
-
this.globalStore = t, this.api = new
|
|
593
|
+
this.globalStore = t, this.api = new M(t.endpoint, t.sessionToken), m(this);
|
|
653
594
|
}
|
|
654
595
|
// DEPRECATED: Initialize api in constructor and use loadCopy instead
|
|
655
596
|
// TODO: Remove this function
|
|
656
597
|
initialize = async (t, e) => {
|
|
657
|
-
this.api = new
|
|
598
|
+
this.api = new M(t, e), await this.loadCopy();
|
|
658
599
|
};
|
|
659
600
|
loadCopy = async () => {
|
|
660
|
-
await this.getCopy(this.featureNamespace),
|
|
601
|
+
await this.getCopy(this.featureNamespace), p(() => {
|
|
661
602
|
this.isInitialized = !0;
|
|
662
603
|
});
|
|
663
604
|
};
|
|
664
605
|
getCopy = async (t, e = "") => {
|
|
665
606
|
try {
|
|
666
|
-
const
|
|
667
|
-
|
|
668
|
-
this.copy =
|
|
607
|
+
const a = await this.api.getGlobalCopy(t, e);
|
|
608
|
+
p(() => {
|
|
609
|
+
this.copy = a[t];
|
|
669
610
|
});
|
|
670
|
-
} catch (
|
|
671
|
-
console.error(`Error occurred while fetching ${this.featureNamespace} copy: ${
|
|
611
|
+
} catch (a) {
|
|
612
|
+
console.error(`Error occurred while fetching ${this.featureNamespace} copy: ${a}`);
|
|
672
613
|
}
|
|
673
614
|
};
|
|
674
615
|
}
|
|
675
|
-
class
|
|
616
|
+
class Kt {
|
|
676
617
|
globalStore;
|
|
677
618
|
survey = null;
|
|
678
619
|
currentQuestionIndex = 0;
|
|
@@ -680,7 +621,7 @@ class te {
|
|
|
680
621
|
response = null;
|
|
681
622
|
responses = {};
|
|
682
623
|
constructor(t) {
|
|
683
|
-
this.globalStore = t,
|
|
624
|
+
this.globalStore = t, m(this);
|
|
684
625
|
}
|
|
685
626
|
get isLastQuestion() {
|
|
686
627
|
return this.currentQuestionIndex === this.surveyQuestions.length - 1;
|
|
@@ -702,11 +643,11 @@ class te {
|
|
|
702
643
|
return this.survey ? this.survey.questions : [];
|
|
703
644
|
}
|
|
704
645
|
loadSurvey = (t = !1) => {
|
|
705
|
-
|
|
706
|
-
|
|
646
|
+
ft.getActiveMatchingSurveys((e) => {
|
|
647
|
+
p(() => {
|
|
707
648
|
if (e.length > 0) {
|
|
708
|
-
const
|
|
709
|
-
|
|
649
|
+
const a = e.find((r) => r.id === this.surveyId);
|
|
650
|
+
a && (this.survey = a, this.currentQuestionIndex = 0, this.question = a.questions[0], this.response = null, this.responses = {});
|
|
710
651
|
}
|
|
711
652
|
});
|
|
712
653
|
}, t);
|
|
@@ -721,18 +662,18 @@ class te {
|
|
|
721
662
|
this.response = t, this.question && (this.responses[`$survey_response_${this.question.id}`] = t);
|
|
722
663
|
};
|
|
723
664
|
}
|
|
724
|
-
class
|
|
665
|
+
class z {
|
|
725
666
|
fetchInstance;
|
|
726
667
|
constructor(t, e) {
|
|
727
668
|
this.fetchInstance = new y(t, e);
|
|
728
669
|
}
|
|
729
|
-
addBudget = async (t, e,
|
|
670
|
+
addBudget = async (t, e, a = null) => this.fetchInstance.post(l.BUDGETS, {
|
|
730
671
|
amount: e,
|
|
731
672
|
category_guid: t.guid,
|
|
732
673
|
category_name: t.name,
|
|
733
|
-
parent_guid:
|
|
734
|
-
}).then((
|
|
735
|
-
throw
|
|
674
|
+
parent_guid: a
|
|
675
|
+
}).then((r) => r.budget).catch((r) => {
|
|
676
|
+
throw r;
|
|
736
677
|
});
|
|
737
678
|
deleteBudget = async (t) => this.fetchInstance.delete(`${l.BUDGETS}/${t}`).then((e) => e).catch((e) => {
|
|
738
679
|
throw e;
|
|
@@ -742,40 +683,40 @@ class K {
|
|
|
742
683
|
throw e;
|
|
743
684
|
});
|
|
744
685
|
}
|
|
745
|
-
class
|
|
746
|
-
api = new
|
|
686
|
+
class jt {
|
|
687
|
+
api = new z("/", "");
|
|
747
688
|
globalStore;
|
|
748
689
|
alert = "";
|
|
749
|
-
dateRange = { start:
|
|
690
|
+
dateRange = { start: J(L()), end: Z(L()) };
|
|
750
691
|
budgets = [];
|
|
751
692
|
selectedBudget;
|
|
752
693
|
selectedSubBudget;
|
|
753
694
|
isDataLoaded = !1;
|
|
754
695
|
theme = {};
|
|
755
696
|
constructor(t) {
|
|
756
|
-
this.globalStore = t, this.api = new
|
|
697
|
+
this.globalStore = t, this.api = new z(t.endpoint, t.sessionToken), m(this);
|
|
757
698
|
}
|
|
758
699
|
loadBudgetData = async () => {
|
|
759
|
-
await this.loadBudgets(),
|
|
700
|
+
await this.loadBudgets(), _t(
|
|
760
701
|
() => this.detailedBudgets,
|
|
761
702
|
(t) => {
|
|
762
703
|
if (t) {
|
|
763
704
|
const e = this.selectedBudget;
|
|
764
|
-
e && (this.selectedBudget =
|
|
765
|
-
const
|
|
766
|
-
|
|
705
|
+
e && (this.selectedBudget = bt(t, e.guid));
|
|
706
|
+
const a = this.selectedSubBudget;
|
|
707
|
+
a && a.parent_guid && (this.selectedSubBudget = wt(
|
|
767
708
|
t,
|
|
768
|
-
|
|
769
|
-
|
|
709
|
+
a.guid,
|
|
710
|
+
a.parent_guid
|
|
770
711
|
));
|
|
771
712
|
}
|
|
772
713
|
}
|
|
773
714
|
);
|
|
774
715
|
};
|
|
775
716
|
get detailedBudgets() {
|
|
776
|
-
return
|
|
717
|
+
return O(
|
|
777
718
|
this.budgets.filter(
|
|
778
|
-
(t) => t.category_guid !==
|
|
719
|
+
(t) => t.category_guid !== E.INCOME && t.category_guid !== E.TRANSFER && t.category_guid !== E.INVESTMENTS
|
|
779
720
|
),
|
|
780
721
|
this.globalStore.categoryStore.detailedCategories,
|
|
781
722
|
this.globalStore.copyStore.copy.budgets,
|
|
@@ -783,13 +724,13 @@ class ee {
|
|
|
783
724
|
).sort((t, e) => t.percentage > e.percentage ? -1 : t.percentage < e.percentage ? 1 : 0);
|
|
784
725
|
}
|
|
785
726
|
get incomeBudget() {
|
|
786
|
-
return
|
|
787
|
-
this.budgets.filter((
|
|
727
|
+
return O(
|
|
728
|
+
this.budgets.filter((a) => !a.parent_guid),
|
|
788
729
|
this.globalStore.categoryStore.detailedCategories,
|
|
789
730
|
this.globalStore.copyStore.copy.budgets,
|
|
790
731
|
this.theme
|
|
791
732
|
).reduce(
|
|
792
|
-
(
|
|
733
|
+
(a, r) => r.category_guid !== E.INCOME ? a : !a || r.percentage > a.percentage ? r : a,
|
|
793
734
|
void 0
|
|
794
735
|
)?.amount;
|
|
795
736
|
}
|
|
@@ -801,20 +742,20 @@ class ee {
|
|
|
801
742
|
get totalBudgeted() {
|
|
802
743
|
return this.detailedBudgets.reduce((t, e) => t + e.amount, 0);
|
|
803
744
|
}
|
|
804
|
-
addBudget = async (t, e,
|
|
745
|
+
addBudget = async (t, e, a = null) => {
|
|
805
746
|
try {
|
|
806
|
-
const
|
|
807
|
-
|
|
808
|
-
this.budgets.push(
|
|
747
|
+
const r = await this.api.addBudget(t, e, a);
|
|
748
|
+
p(() => {
|
|
749
|
+
this.budgets.push(r);
|
|
809
750
|
});
|
|
810
|
-
} catch (
|
|
811
|
-
console.error(`Error adding budget: ${
|
|
751
|
+
} catch (r) {
|
|
752
|
+
console.error(`Error adding budget: ${r}`);
|
|
812
753
|
}
|
|
813
754
|
};
|
|
814
755
|
deleteBudget = async (t) => {
|
|
815
756
|
try {
|
|
816
|
-
await this.api.deleteBudget(t),
|
|
817
|
-
const e = this.budgets.findIndex((
|
|
757
|
+
await this.api.deleteBudget(t), p(() => {
|
|
758
|
+
const e = this.budgets.findIndex((a) => a.guid === t);
|
|
818
759
|
e >= 0 && this.budgets.splice(e, 1);
|
|
819
760
|
});
|
|
820
761
|
} catch (e) {
|
|
@@ -824,7 +765,7 @@ class ee {
|
|
|
824
765
|
loadBudgets = async () => {
|
|
825
766
|
try {
|
|
826
767
|
const t = await this.api.getBudgets();
|
|
827
|
-
|
|
768
|
+
p(() => {
|
|
828
769
|
this.budgets = t, this.isDataLoaded = !0;
|
|
829
770
|
});
|
|
830
771
|
} catch (t) {
|
|
@@ -842,18 +783,18 @@ class ee {
|
|
|
842
783
|
*/
|
|
843
784
|
recalculateBudgets = async (t) => {
|
|
844
785
|
try {
|
|
845
|
-
for (const
|
|
846
|
-
const
|
|
847
|
-
|
|
848
|
-
...
|
|
849
|
-
amount:
|
|
850
|
-
}) : await this.api.addBudget(
|
|
786
|
+
for (const a of t) {
|
|
787
|
+
const r = this.budgets.find((o) => o.category_guid === a.guid);
|
|
788
|
+
r ? await this.api.updateBudget({
|
|
789
|
+
...r,
|
|
790
|
+
amount: a.totalAverageAmount
|
|
791
|
+
}) : await this.api.addBudget(a, a.totalAverageAmount);
|
|
851
792
|
}
|
|
852
793
|
const e = this.budgets.filter(
|
|
853
|
-
(
|
|
794
|
+
(a) => !t.find((r) => r.guid === a.category_guid)
|
|
854
795
|
);
|
|
855
|
-
for (const
|
|
856
|
-
await this.api.deleteBudget(
|
|
796
|
+
for (const a of e)
|
|
797
|
+
await this.api.deleteBudget(a.guid);
|
|
857
798
|
return await this.loadBudgets(), { data: this.budgets, isSuccess: !0 };
|
|
858
799
|
} catch (e) {
|
|
859
800
|
return console.error("error recalculating budgets", e), { data: [], isSuccess: !1 };
|
|
@@ -862,48 +803,48 @@ class ee {
|
|
|
862
803
|
updateBudget = async (t) => {
|
|
863
804
|
try {
|
|
864
805
|
const e = await this.api.updateBudget(t);
|
|
865
|
-
|
|
866
|
-
const
|
|
867
|
-
|
|
806
|
+
p(() => {
|
|
807
|
+
const a = this.budgets.findIndex((r) => r.guid === t.guid);
|
|
808
|
+
a >= 0 && (this.budgets[a] = e);
|
|
868
809
|
});
|
|
869
810
|
} catch (e) {
|
|
870
811
|
console.error(`Error updating budget: ${e}`);
|
|
871
812
|
}
|
|
872
813
|
};
|
|
873
814
|
}
|
|
874
|
-
var
|
|
875
|
-
class
|
|
815
|
+
var Vt = /* @__PURE__ */ ((s) => (s[s.UNKNOWN = 0] = "UNKNOWN", s[s.CORRECT = 1] = "CORRECT", s[s.INCORRECT = 2] = "INCORRECT", s))(Vt || {}), Zt = /* @__PURE__ */ ((s) => (s.Missed = "Missed", s.Paid = "Paid", s.Upcoming = "Upcoming expense", s.Income = "Income", s))(Zt || {}), Jt = /* @__PURE__ */ ((s) => (s[s.Unknown = 0] = "Unknown", s[s.Subscription = 1] = "Subscription", s[s.Bill = 2] = "Bill", s))(Jt || {}), te = /* @__PURE__ */ ((s) => (s.Desktop = "Desktop", s.Mobile = "Mobile", s))(te || {});
|
|
816
|
+
class X {
|
|
876
817
|
fetchInstance;
|
|
877
818
|
constructor(t, e) {
|
|
878
819
|
this.fetchInstance = new y(t, e);
|
|
879
820
|
}
|
|
880
821
|
createSupportTicket = async (t) => this.fetchInstance.post(l.SUPPORT_TICKETS, t).then((e) => e);
|
|
881
822
|
}
|
|
882
|
-
const
|
|
823
|
+
const ee = (s, t) => s.guid === "general" || s.guid === "insights" ? !0 : s.flags ? s.flags.every((e) => t[e]) : !1, se = (s, t) => {
|
|
883
824
|
const e = [];
|
|
884
|
-
for (const
|
|
885
|
-
const
|
|
886
|
-
if (!
|
|
887
|
-
const
|
|
888
|
-
...
|
|
889
|
-
title:
|
|
890
|
-
topics:
|
|
825
|
+
for (const a of rt) {
|
|
826
|
+
const r = t[a.guid];
|
|
827
|
+
if (!r) continue;
|
|
828
|
+
const o = {
|
|
829
|
+
...a,
|
|
830
|
+
title: r.label,
|
|
831
|
+
topics: a.topics.map(({ topicKey: d }, i) => ({
|
|
891
832
|
topicKey: d,
|
|
892
|
-
label:
|
|
833
|
+
label: r.topics[i]
|
|
893
834
|
}))
|
|
894
835
|
};
|
|
895
|
-
|
|
836
|
+
ee(o, s) && e.push(o);
|
|
896
837
|
}
|
|
897
838
|
return e;
|
|
898
839
|
};
|
|
899
|
-
class
|
|
840
|
+
class ae {
|
|
900
841
|
alert = { message: "", severity: void 0 };
|
|
901
|
-
api = new
|
|
842
|
+
api = new X("/", "");
|
|
902
843
|
appConfig;
|
|
903
844
|
globalStore;
|
|
904
845
|
isLoading = !1;
|
|
905
846
|
constructor(t) {
|
|
906
|
-
this.globalStore = t, this.api = new
|
|
847
|
+
this.globalStore = t, this.api = new X(t.endpoint, t.sessionToken), m(this);
|
|
907
848
|
}
|
|
908
849
|
createSupportTicket = async (t) => {
|
|
909
850
|
try {
|
|
@@ -920,19 +861,19 @@ class ce {
|
|
|
920
861
|
}
|
|
921
862
|
get helpCategories() {
|
|
922
863
|
const { client_communication_profile: t, client_profile: e } = this.globalStore.appDataStore.appData, {
|
|
923
|
-
help: { category_list:
|
|
864
|
+
help: { category_list: a }
|
|
924
865
|
} = this.globalStore.copyStore.copy;
|
|
925
|
-
return
|
|
866
|
+
return se(
|
|
926
867
|
{
|
|
927
868
|
...t,
|
|
928
869
|
...e,
|
|
929
870
|
...this.globalStore.appConfig.config
|
|
930
871
|
},
|
|
931
|
-
|
|
872
|
+
a
|
|
932
873
|
);
|
|
933
874
|
}
|
|
934
875
|
}
|
|
935
|
-
class
|
|
876
|
+
class K {
|
|
936
877
|
fetchInstance;
|
|
937
878
|
constructor(t, e) {
|
|
938
879
|
this.fetchInstance = new y(t, e);
|
|
@@ -940,21 +881,21 @@ class V {
|
|
|
940
881
|
getHoldings = async () => this.fetchInstance.get(l.HOLDINGS).then((t) => t.holdings);
|
|
941
882
|
updateHoldings = async (t) => this.fetchInstance.put(`${l.HOLDINGS}/${t.guid}`, t).then((e) => e.holding);
|
|
942
883
|
}
|
|
943
|
-
class
|
|
944
|
-
analysisType =
|
|
945
|
-
api = new
|
|
884
|
+
class re {
|
|
885
|
+
analysisType = Dt.Stocks;
|
|
886
|
+
api = new K("/", "");
|
|
946
887
|
holdings = [];
|
|
947
888
|
holdingsLoaded = !1;
|
|
948
889
|
globalStore;
|
|
949
890
|
showConnectionsWidget = !1;
|
|
950
891
|
constructor(t) {
|
|
951
|
-
this.globalStore = t, this.api = new
|
|
892
|
+
this.globalStore = t, this.api = new K(t.endpoint, t.sessionToken), m(this);
|
|
952
893
|
}
|
|
953
894
|
get analysisChartData() {
|
|
954
|
-
return
|
|
895
|
+
return vt(At(this.visibleHoldings), this.analysisType);
|
|
955
896
|
}
|
|
956
897
|
get analysisDetails() {
|
|
957
|
-
return
|
|
898
|
+
return Et(this.visibleHoldings)[this.analysisType] || {};
|
|
958
899
|
}
|
|
959
900
|
get visibleHoldings() {
|
|
960
901
|
return this.holdings.filter(
|
|
@@ -967,7 +908,7 @@ class de {
|
|
|
967
908
|
loadHoldings = async () => {
|
|
968
909
|
try {
|
|
969
910
|
const t = await this.api.getHoldings();
|
|
970
|
-
|
|
911
|
+
p(() => {
|
|
971
912
|
this.holdings = [...t], this.holdingsLoaded = !0;
|
|
972
913
|
});
|
|
973
914
|
} catch (t) {
|
|
@@ -980,11 +921,11 @@ class de {
|
|
|
980
921
|
updateHoldings = async (t) => {
|
|
981
922
|
this.holdingsLoaded = !1;
|
|
982
923
|
try {
|
|
983
|
-
const e = await this.api.updateHoldings(t),
|
|
984
|
-
if (
|
|
985
|
-
const
|
|
986
|
-
a
|
|
987
|
-
this.holdings =
|
|
924
|
+
const e = await this.api.updateHoldings(t), a = this.holdings.findIndex(({ guid: r }) => r === t.guid);
|
|
925
|
+
if (a >= 0) {
|
|
926
|
+
const r = [...this.holdings];
|
|
927
|
+
r[a] = e, p(() => {
|
|
928
|
+
this.holdings = r, this.holdingsLoaded = !0;
|
|
988
929
|
});
|
|
989
930
|
}
|
|
990
931
|
} catch (e) {
|
|
@@ -992,7 +933,7 @@ class de {
|
|
|
992
933
|
}
|
|
993
934
|
};
|
|
994
935
|
}
|
|
995
|
-
const
|
|
936
|
+
const j = {
|
|
996
937
|
clientConfig: {},
|
|
997
938
|
clientStyleProfile: {},
|
|
998
939
|
config: {
|
|
@@ -1094,21 +1035,21 @@ const Z = {
|
|
|
1094
1035
|
postHogPublicKey: "phc_1fVYJICC69TpW4wagp9o2XqQ8E7X98cAmcR5psSpfkE",
|
|
1095
1036
|
userFeatures: []
|
|
1096
1037
|
};
|
|
1097
|
-
class
|
|
1038
|
+
class V {
|
|
1098
1039
|
fetchInstance;
|
|
1099
1040
|
constructor(t, e) {
|
|
1100
1041
|
this.fetchInstance = new y(t, e);
|
|
1101
1042
|
}
|
|
1102
1043
|
getAppData = async () => this.fetchInstance.get(l.APP_DATA).then((t) => t);
|
|
1103
1044
|
}
|
|
1104
|
-
class
|
|
1045
|
+
class oe {
|
|
1105
1046
|
globalStore;
|
|
1106
|
-
api = new
|
|
1107
|
-
bannerApi = new
|
|
1047
|
+
api = new V("/", "");
|
|
1048
|
+
bannerApi = new P("/");
|
|
1108
1049
|
appData = {};
|
|
1109
1050
|
banner = {};
|
|
1110
1051
|
constructor(t) {
|
|
1111
|
-
this.globalStore = t, this.api = new
|
|
1052
|
+
this.globalStore = t, this.api = new V(t.endpoint, t.sessionToken), m(this);
|
|
1112
1053
|
}
|
|
1113
1054
|
get appConfig() {
|
|
1114
1055
|
return this.globalStore.appConfig;
|
|
@@ -1131,8 +1072,8 @@ class le {
|
|
|
1131
1072
|
loadAppData = async (t) => {
|
|
1132
1073
|
try {
|
|
1133
1074
|
const e = t || await this.api.getAppData();
|
|
1134
|
-
|
|
1135
|
-
this.appData = e, this.bannerApi = new
|
|
1075
|
+
p(() => {
|
|
1076
|
+
this.appData = e, this.bannerApi = new P(e.address?.bullseye || "/");
|
|
1136
1077
|
});
|
|
1137
1078
|
} catch (e) {
|
|
1138
1079
|
console.error(`Error loading app data: ${e}`);
|
|
@@ -1141,7 +1082,7 @@ class le {
|
|
|
1141
1082
|
loadBanner = async () => {
|
|
1142
1083
|
try {
|
|
1143
1084
|
const t = this.user?.guid ?? null, e = t ? await this.bannerApi.getBanner(t) : {};
|
|
1144
|
-
|
|
1085
|
+
p(() => {
|
|
1145
1086
|
this.banner = e;
|
|
1146
1087
|
});
|
|
1147
1088
|
} catch (t) {
|
|
@@ -1152,28 +1093,28 @@ class le {
|
|
|
1152
1093
|
setUserCommunicationProfile = (t) => this.appData.user_communication_profile = t;
|
|
1153
1094
|
setUserProfile = (t) => this.appData.user_profile = t;
|
|
1154
1095
|
}
|
|
1155
|
-
class
|
|
1096
|
+
class ne {
|
|
1156
1097
|
globalStore;
|
|
1157
|
-
widgetApi = new
|
|
1098
|
+
widgetApi = new q("/", "");
|
|
1158
1099
|
constructor(t) {
|
|
1159
|
-
this.globalStore = t, this.widgetApi = new
|
|
1100
|
+
this.globalStore = t, this.widgetApi = new q(t.endpoint, t.sessionToken), m(this);
|
|
1160
1101
|
}
|
|
1161
|
-
loadWidget = async ({ widget: t = "connect_widget", mode: e = "light", ...
|
|
1162
|
-
widget_url: { widget_type: t, color_scheme: e, ...
|
|
1102
|
+
loadWidget = async ({ widget: t = "connect_widget", mode: e = "light", ...a }) => await this.widgetApi.requestWidgetUrl({
|
|
1103
|
+
widget_url: { widget_type: t, color_scheme: e, ...a }
|
|
1163
1104
|
});
|
|
1164
1105
|
}
|
|
1165
|
-
class
|
|
1106
|
+
class ie {
|
|
1166
1107
|
globalStore;
|
|
1167
1108
|
isInitialized = !1;
|
|
1168
1109
|
selectedAccounts = [];
|
|
1169
1110
|
selectedAccountGuids = this.selectedAccounts.map((t) => t.guid);
|
|
1170
1111
|
displayedDate = /* @__PURE__ */ new Date();
|
|
1171
1112
|
displayedDateRange = {
|
|
1172
|
-
start:
|
|
1173
|
-
end:
|
|
1113
|
+
start: J(this.displayedDate),
|
|
1114
|
+
end: Z(this.displayedDate)
|
|
1174
1115
|
};
|
|
1175
1116
|
constructor(t) {
|
|
1176
|
-
|
|
1117
|
+
m(this), this.globalStore = t;
|
|
1177
1118
|
}
|
|
1178
1119
|
get isCopyLoaded() {
|
|
1179
1120
|
return this.globalStore.copyStore.isInitialized;
|
|
@@ -1190,8 +1131,8 @@ class he {
|
|
|
1190
1131
|
};
|
|
1191
1132
|
// Sets an array of selected account guids for the AccountFilter component
|
|
1192
1133
|
setSelectedAccountGuids = async (t) => {
|
|
1193
|
-
const e = new Set(this.selectedAccountGuids),
|
|
1194
|
-
|
|
1134
|
+
const e = new Set(this.selectedAccountGuids), a = new Set(t), r = [...a].filter((d) => !e.has(d)), o = [...e].filter((d) => !a.has(d));
|
|
1135
|
+
r.length > 0 && this.globalStore.accountStore.updateAccountFiltering(r, !1), o.length > 0 && this.globalStore.accountStore.updateAccountFiltering(o, !0), this.selectedAccountGuids = t;
|
|
1195
1136
|
};
|
|
1196
1137
|
setDisplayedDate = (t, e) => {
|
|
1197
1138
|
this.displayedDate = e, this.displayedDateRange = {
|
|
@@ -1200,25 +1141,25 @@ class he {
|
|
|
1200
1141
|
};
|
|
1201
1142
|
};
|
|
1202
1143
|
get shouldDisableNextDate() {
|
|
1203
|
-
const t =
|
|
1144
|
+
const t = T(this.displayedDate), e = T(Nt(/* @__PURE__ */ new Date(), 1));
|
|
1204
1145
|
return t === e;
|
|
1205
1146
|
}
|
|
1206
1147
|
get shouldDisablePrevDate() {
|
|
1207
|
-
const t =
|
|
1148
|
+
const t = T(this.displayedDate), e = T(/* @__PURE__ */ new Date());
|
|
1208
1149
|
return t === e;
|
|
1209
1150
|
}
|
|
1210
1151
|
}
|
|
1211
|
-
class
|
|
1152
|
+
class ce {
|
|
1212
1153
|
globalStore;
|
|
1213
|
-
api = new
|
|
1154
|
+
api = new $("/", "");
|
|
1214
1155
|
userFeatures = [];
|
|
1215
1156
|
constructor(t) {
|
|
1216
|
-
this.globalStore = t, this.api = new
|
|
1157
|
+
this.globalStore = t, this.api = new $(t.endpoint, t.sessionToken), m(this);
|
|
1217
1158
|
}
|
|
1218
1159
|
// DEPRECATED: Initialize api in constructor and use loadUserFeatures instead
|
|
1219
1160
|
// TODO: Remove this function
|
|
1220
1161
|
initialize = async (t, e) => {
|
|
1221
|
-
this.api = new
|
|
1162
|
+
this.api = new $(t, e), await this.loadUserFeatures();
|
|
1222
1163
|
};
|
|
1223
1164
|
get userProfile() {
|
|
1224
1165
|
return this.globalStore.appDataStore.userProfile;
|
|
@@ -1229,7 +1170,7 @@ class ge {
|
|
|
1229
1170
|
loadUserFeatures = async (t) => {
|
|
1230
1171
|
try {
|
|
1231
1172
|
const e = t || await this.api.getUserFeatures();
|
|
1232
|
-
|
|
1173
|
+
p(() => {
|
|
1233
1174
|
this.userFeatures = e;
|
|
1234
1175
|
});
|
|
1235
1176
|
} catch (e) {
|
|
@@ -1253,9 +1194,9 @@ class ge {
|
|
|
1253
1194
|
}
|
|
1254
1195
|
};
|
|
1255
1196
|
}
|
|
1256
|
-
class
|
|
1197
|
+
class Ve {
|
|
1257
1198
|
// Global properties
|
|
1258
|
-
appConfig =
|
|
1199
|
+
appConfig = j;
|
|
1259
1200
|
endpoint = "/";
|
|
1260
1201
|
sessionToken = "";
|
|
1261
1202
|
// Data Stores
|
|
@@ -1283,8 +1224,8 @@ class cs {
|
|
|
1283
1224
|
userStore;
|
|
1284
1225
|
// UI Stores
|
|
1285
1226
|
globalUiStore;
|
|
1286
|
-
constructor(t =
|
|
1287
|
-
this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.accountStore = new
|
|
1227
|
+
constructor(t = j, e = "/") {
|
|
1228
|
+
this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.accountStore = new yt(this), this.appDataStore = new oe(this), this.analyticsStore = new Kt(this), this.beatStore = new St(this), this.budgetsStore = new jt(this), this.cashflowStore = new nt(this), this.categoryStore = new et(this), this.connectStore = new ne(this), this.copyStore = new Xt(this), this.debtsStore = new xt(this), this.finstrongStore = new Ct(this), this.goalStore = new it(this), this.helpStore = new ae(this), this.holdingStore = new re(this), this.merchantStore = new Tt(this), this.netWorthStore = new Bt(this), this.notificationStore = new st(this), this.recurringTransactionsStore = new mt(this), this.settingsStore = new It(this), this.transactionStore = new ot(this), this.trendsStore = new ct(this), this.userStore = new ce(this), this.globalUiStore = new ie(this), m(this);
|
|
1288
1229
|
}
|
|
1289
1230
|
get isInitialized() {
|
|
1290
1231
|
return this.globalUiStore.isInitialized;
|
|
@@ -1292,182 +1233,182 @@ class cs {
|
|
|
1292
1233
|
loadData = async ({
|
|
1293
1234
|
accounts: t,
|
|
1294
1235
|
appData: e,
|
|
1295
|
-
associatedBeats:
|
|
1296
|
-
categories:
|
|
1297
|
-
institutions:
|
|
1236
|
+
associatedBeats: a,
|
|
1237
|
+
categories: r,
|
|
1238
|
+
institutions: o,
|
|
1298
1239
|
transactionRules: d,
|
|
1299
|
-
transactions:
|
|
1300
|
-
userFeatures:
|
|
1240
|
+
transactions: i,
|
|
1241
|
+
userFeatures: n
|
|
1301
1242
|
} = {}) => {
|
|
1302
1243
|
await Promise.all([
|
|
1303
1244
|
// Load copy, config and quser data
|
|
1304
1245
|
this.copyStore.loadCopy(),
|
|
1305
1246
|
this.appDataStore.loadAppData(e),
|
|
1306
|
-
this.userStore.loadUserFeatures(
|
|
1247
|
+
this.userStore.loadUserFeatures(n)
|
|
1307
1248
|
]), await Promise.all([
|
|
1308
|
-
this.accountStore.loadAccountData({ accounts: t, institutions:
|
|
1309
|
-
this.categoryStore.loadCategories(
|
|
1249
|
+
this.accountStore.loadAccountData({ accounts: t, institutions: o }),
|
|
1250
|
+
this.categoryStore.loadCategories(r),
|
|
1310
1251
|
this.transactionStore.loadTransactionData({
|
|
1311
|
-
associatedBeats:
|
|
1252
|
+
associatedBeats: a,
|
|
1312
1253
|
transactionRules: d,
|
|
1313
|
-
transactions:
|
|
1254
|
+
transactions: i
|
|
1314
1255
|
})
|
|
1315
1256
|
]), this.globalUiStore.setInitialized(!0);
|
|
1316
1257
|
};
|
|
1317
1258
|
}
|
|
1318
1259
|
export {
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1260
|
+
xs as ANALYTICS_EVENTS,
|
|
1261
|
+
As as AccountFilter,
|
|
1262
|
+
Es as AccountIcon,
|
|
1263
|
+
Ts as AccountIconVariants,
|
|
1264
|
+
Ea as AccountNotificationTypes,
|
|
1265
|
+
Bs as AccountSubType,
|
|
1266
|
+
Is as AccountType,
|
|
1267
|
+
Ns as AccountTypeName,
|
|
1268
|
+
ts as AnalyticsApi,
|
|
1328
1269
|
l as ApiEndpoints,
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1270
|
+
P as BannerApi,
|
|
1271
|
+
Ke as BarChart,
|
|
1272
|
+
os as BeatApi,
|
|
1273
|
+
Ta as BudgetNotificationTypes,
|
|
1274
|
+
us as Calendar,
|
|
1275
|
+
hs as CalendarSelectionTypes,
|
|
1276
|
+
is as CategoryApi,
|
|
1277
|
+
tr as CategoryColors,
|
|
1278
|
+
er as CategoryGuidToName,
|
|
1279
|
+
E as CategoryGuids,
|
|
1280
|
+
sr as CategoryIcon,
|
|
1281
|
+
ha as ConnectCard,
|
|
1282
|
+
Fs as ConnectDrawer,
|
|
1283
|
+
Ms as ConnectionStatus,
|
|
1284
|
+
$s as ConnectionStatusEnums,
|
|
1285
|
+
or as CurrencyCodes,
|
|
1286
|
+
qs as CurrencyInput,
|
|
1287
|
+
ya as CurrencyText,
|
|
1288
|
+
Ga as DATE_FORMATS_INTL,
|
|
1289
|
+
gt as DEFAULT_DONUT_SIZE,
|
|
1290
|
+
pt as DEFAULT_STROKE_WIDTH,
|
|
1291
|
+
aa as DataRow,
|
|
1292
|
+
Cs as DateRangeSelector,
|
|
1293
|
+
Ha as Dialog,
|
|
1294
|
+
$a as Donut,
|
|
1295
|
+
Xa as Drawer,
|
|
1296
|
+
Sa as EmptyState,
|
|
1297
|
+
_s as ErrorBoundary,
|
|
1298
|
+
Rs as ErrorStatuses,
|
|
1299
|
+
Zt as ExpenseStatus,
|
|
1359
1300
|
y as Fetch,
|
|
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
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1301
|
+
ra as Frequency,
|
|
1302
|
+
M as GlobalCopyApi,
|
|
1303
|
+
Xt as GlobalCopyStore,
|
|
1304
|
+
mr as GlobalDataContext,
|
|
1305
|
+
_r as GlobalDataProvider,
|
|
1306
|
+
Ve as GlobalStore,
|
|
1307
|
+
ga as GoalType,
|
|
1308
|
+
ja as INCOME_ACCOUNT_TYPES,
|
|
1309
|
+
ea as IconBacking,
|
|
1310
|
+
la as InformationTooltip,
|
|
1311
|
+
Ba as InsightNotificationTypes,
|
|
1312
|
+
Rt as IterationItemTypes,
|
|
1313
|
+
We as LOADING_STATUS,
|
|
1314
|
+
Ua as LineChart,
|
|
1315
|
+
wa as ListItemAction,
|
|
1316
|
+
Ca as ListItemRow,
|
|
1317
|
+
gs as ListItemWrapper,
|
|
1318
|
+
Qs as Loader,
|
|
1319
|
+
Ye as LocalizedCopyApi,
|
|
1320
|
+
pa as MetaType,
|
|
1321
|
+
Us as MfaStatuses,
|
|
1322
|
+
fs as MicroWidgetContainer,
|
|
1323
|
+
bs as MiniWidgetContainer,
|
|
1324
|
+
je as MultiSegmentDonut,
|
|
1325
|
+
ks as NonConnectedStatuses,
|
|
1326
|
+
ds as NotificationApi,
|
|
1327
|
+
Ia as NotificationTypes,
|
|
1328
|
+
Pa as ORDINAL_DATE_FORMAT,
|
|
1329
|
+
qa as ORDINAL_MONTH_DAY_YEAR_FORMAT,
|
|
1330
|
+
Va as PAYMENT_ACCOUNT_TYPES,
|
|
1331
|
+
ar as PaymentCategories,
|
|
1332
|
+
$t as PlanTypes,
|
|
1333
|
+
Ls as ProcessingStatuses,
|
|
1334
|
+
Os as PropertyType,
|
|
1335
|
+
Gs as PropertyTypeName,
|
|
1336
|
+
qe as RECURRENCE_COPY,
|
|
1337
|
+
oa as RecurrenceStatus,
|
|
1338
|
+
na as RecurrenceType,
|
|
1339
|
+
Mt as RecurrenceTypes,
|
|
1340
|
+
ia as RepeatingType,
|
|
1341
|
+
zs as ResponsiveButton,
|
|
1342
|
+
Za as SPENDING_ACCOUNT_TYPES,
|
|
1343
|
+
Jt as ScheduledPaymentTypes,
|
|
1344
|
+
ze as ScheduledPaymentsApi,
|
|
1345
|
+
te as ScreenSize,
|
|
1346
|
+
Ks as SearchBox,
|
|
1347
|
+
ca as Select,
|
|
1348
|
+
Vs as SelectionBox,
|
|
1349
|
+
Ya as SingleSegmentDonut,
|
|
1350
|
+
hr as Sizes,
|
|
1351
|
+
Da as StackedLineChart,
|
|
1352
|
+
La as StatusBar,
|
|
1353
|
+
Hs as StatusName,
|
|
1354
|
+
gr as TOUCH_TARGET,
|
|
1355
|
+
Js as TabContentContainer,
|
|
1356
|
+
Na as ToggleButtonListItem,
|
|
1357
|
+
Fa as ToggleListItem,
|
|
1358
|
+
ma as TrackType,
|
|
1359
|
+
ps as TransactionStatus,
|
|
1360
|
+
at as TransactionType,
|
|
1361
|
+
$ as UserApi,
|
|
1362
|
+
ce as UserStore,
|
|
1363
|
+
Vt as UserVerification,
|
|
1364
|
+
q as WidgetApi,
|
|
1365
|
+
Ds as WidgetContainer,
|
|
1366
|
+
yr as WidgetContainerContext,
|
|
1367
|
+
fr as WidgetContainerProvider,
|
|
1368
|
+
es as analyticsSession,
|
|
1369
|
+
to as buildDynamicCopy,
|
|
1370
|
+
eo as buildPluralCopy,
|
|
1371
|
+
nr as formatCurrency,
|
|
1372
|
+
Wa as formatDate,
|
|
1373
|
+
ir as formatOrdinal,
|
|
1374
|
+
cr as formatPercentage,
|
|
1375
|
+
Zr as fromTimestampToMonthYear,
|
|
1376
|
+
Yr as getCategory,
|
|
1377
|
+
zr as getCategoryTotalsByParent,
|
|
1378
|
+
Qe as getClientTheme,
|
|
1379
|
+
dr as getCurrencyCodes,
|
|
1380
|
+
Xr as getDetailedCategory,
|
|
1381
|
+
Kr as getDetailedSubCategory,
|
|
1382
|
+
so as getLocale,
|
|
1383
|
+
jr as isIncome,
|
|
1384
|
+
lr as isValidNumber,
|
|
1385
|
+
Sr as useAccountStore,
|
|
1386
|
+
br as useAppConfig,
|
|
1387
|
+
wr as useBudgetsStore,
|
|
1388
|
+
xr as useCashflowStore,
|
|
1389
|
+
Cr as useCategoryStore,
|
|
1390
|
+
ss as useCombineEvents,
|
|
1391
|
+
as as useCombinePageviews,
|
|
1392
|
+
Dr as useDebtStore,
|
|
1393
|
+
vr as useEvent,
|
|
1394
|
+
Ar as useFinstrongStore,
|
|
1395
|
+
Er as useGlobalCopyStore,
|
|
1396
|
+
Tr as useGlobalStore,
|
|
1397
|
+
Br as useGlobalUiStore,
|
|
1398
|
+
Ir as useGoalStore,
|
|
1399
|
+
Nr as useHelpStore,
|
|
1400
|
+
Fr as useHoldingStore,
|
|
1401
|
+
va as useInsightsEnabled,
|
|
1402
|
+
Mr as useMerchantStore,
|
|
1403
|
+
$r as useNetWorthStore,
|
|
1404
|
+
Rr as useNotificationStore,
|
|
1405
|
+
Ur as usePageView,
|
|
1406
|
+
Xe as usePrevious,
|
|
1407
|
+
kr as useRecurringTransactionsStore,
|
|
1408
|
+
Wr as useScreenSize,
|
|
1409
|
+
Lr as useSettingsStore,
|
|
1410
|
+
Or as useTransactionStore,
|
|
1411
|
+
Gr as useTrendsStore,
|
|
1412
|
+
Hr as useUserStore,
|
|
1413
|
+
Pr as useWidgetContainerProvider
|
|
1473
1414
|
};
|