@mx-cartographer/experiences 7.0.20-alpha.mm9 → 7.0.20-alpha.sms1
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/CHANGELOG.md +4 -0
- package/dist/{Account-BtpQBGaq.mjs → Account-BW3-oYEs.mjs} +1 -1
- package/dist/{AccountDetailsContent-BYHpjgb_.mjs → AccountDetailsContent-BzD6CDIm.mjs} +8 -8
- package/dist/{AccountDetailsHeader-DDDaJtyh.mjs → AccountDetailsHeader-Eb3WvBGm.mjs} +5 -5
- package/dist/{AccountFields-CBDfD65k.mjs → AccountFields-CIz-r3gP.mjs} +2 -2
- package/dist/{AccountListItem-DWhL24fc.mjs → AccountListItem-B-ZjJ4Gp.mjs} +3 -3
- package/dist/{AccountStore-BHP_4JLu.mjs → AccountStore-BaMynkQT.mjs} +26 -26
- package/dist/{Accounts-DNedOuU0.mjs → Accounts-CA-nqAjT.mjs} +1 -1
- package/dist/{BeatApi-DNuwwlOB.mjs → BeatApi-DLu87ijw.mjs} +3 -3
- package/dist/{BeatStore-Uwew6sh1.mjs → BeatStore-By4aGoRM.mjs} +17 -17
- package/dist/{BudgetUtil-CohNTVGV.mjs → BudgetUtil-CeSLAcsl.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-Ct4atnde.mjs → CategorySelectorDrawer-BJ9jlCyt.mjs} +1 -1
- package/dist/{CategoryStore-DhKc215B.mjs → CategoryStore-BOyzQjQp.mjs} +4 -4
- package/dist/{ConnectDrawer-Dxz730Md.mjs → ConnectDrawer-phFH6OHt.mjs} +1 -1
- package/dist/{ConnectionsDrawer-ClbV2gtO.mjs → ConnectionsDrawer-ihxkAi1P.mjs} +2 -2
- package/dist/{CurrencyInput-MpPSmgfC.mjs → CurrencyInput-bEx2Mbd0.mjs} +1 -1
- package/dist/{DebtsStore-D3qRzdT6.mjs → DebtsStore-VkyMADzd.mjs} +1 -1
- package/dist/{ExportCsvAction-ChlujJNt.mjs → ExportCsvAction-CbMfQ2Wa.mjs} +3 -3
- package/dist/{Fetch-yZxbEdaR.mjs → Fetch-CkFKy79O.mjs} +12 -13
- package/dist/{FinstrongStore-B9M8MY75.mjs → FinstrongStore-mkALvztw.mjs} +4 -4
- package/dist/{GoalStore-DMO-3HaE.mjs → GoalStore-eSOkI6uE.mjs} +14 -14
- package/dist/{Help-DqZFM1_7.mjs → Help-KAAMEubC.mjs} +1 -1
- package/dist/{LineChart-Bb8PUelo.mjs → LineChart-BWWmmJxV.mjs} +1 -1
- package/dist/{ListItemAction-CEcYtksA.mjs → ListItemAction-DNZZ5fSa.mjs} +1 -1
- package/dist/{ManageIncome-D43OrNVi.mjs → ManageIncome-DcKHpJ9V.mjs} +4 -4
- package/dist/MerchantStore-DVH-QOf0.mjs +37 -0
- package/dist/{MicroWidgetContainer-B_t9Hcqj.mjs → MicroWidgetContainer-Dxz8uBN9.mjs} +1 -1
- package/dist/{MiniWidgetContainer-7L-PQOO5.mjs → MiniWidgetContainer-CTyjmE1h.mjs} +1 -1
- package/dist/{NetWorthStore-DAz1fp8r.mjs → NetWorthStore-B6xF9eGH.mjs} +2 -2
- package/dist/{NotificationSettings-B5SZ5MQx.mjs → NotificationSettings-Dhf_u5o-.mjs} +2 -2
- package/dist/{NotificationStore-ShAPgDXO.mjs → NotificationStore-DHtSGySy.mjs} +4 -8
- package/dist/{OriginalBalanceAction-C3dw1SIj.mjs → OriginalBalanceAction-DepsKiJz.mjs} +3 -3
- package/dist/{RecurringSettings-CFA5irXc.mjs → RecurringSettings-C9r4s1Cz.mjs} +3 -3
- package/dist/{RecurringTransactionsStore-BiqkWPUS.mjs → RecurringTransactionsStore-D62XJtdL.mjs} +16 -20
- package/dist/{SettingsStore-CZOVuZh5.mjs → SettingsStore-B4gi6oOw.mjs} +29 -33
- package/dist/{TransactionApi-p23gEG4v.mjs → TransactionApi-DbbcjI2L.mjs} +29 -29
- package/dist/{TransactionDetails-B1wrtzF6.mjs → TransactionDetails-bja6hKJk.mjs} +5 -5
- package/dist/{TransactionStore-HCxd-BtG.mjs → TransactionStore-0tLtBEIC.mjs} +25 -29
- package/dist/{TrendsStore-DuFDxFpW.mjs → TrendsStore-WrHxzdbQ.mjs} +1 -1
- package/dist/{User-DJS1Cgkz.mjs → User-Dq9Qj764.mjs} +1 -1
- package/dist/{ViewMoreMicroCard-D3l6Jdyz.mjs → ViewMoreMicroCard-BFZShKxm.mjs} +234 -229
- package/dist/{WidgetContainer-b5b3R-TE.mjs → WidgetContainer-CdBs9WOZ.mjs} +2 -2
- package/dist/accounts/api/AccountApi.d.ts +2 -2
- package/dist/accounts/index.es.js +12 -12
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/api/BudgetsApi.d.ts +2 -2
- package/dist/budgets/index.es.js +10 -10
- package/dist/cashflow/api/CashflowApi.d.ts +2 -3
- package/dist/cashflow/index.es.js +10 -10
- package/dist/categories/index.es.js +2 -2
- package/dist/common/api/AnalyticsApi.d.ts +2 -2
- package/dist/common/api/AppDataApi.d.ts +2 -2
- package/dist/common/api/BeatApi.d.ts +2 -2
- package/dist/common/api/CategoryApi.d.ts +3 -2
- package/dist/common/api/GlobalCopyApi.d.ts +1 -2
- package/dist/common/api/LocalizedCopyApi.d.ts +1 -2
- package/dist/common/api/NotificationApi.d.ts +2 -2
- package/dist/common/api/ScheduledPaymentsApi.d.ts +2 -3
- package/dist/common/api/UserApi.d.ts +2 -2
- package/dist/common/context/GlobalDataProvider.d.ts +2 -3
- package/dist/common/context/hooks.d.ts +1 -4
- package/dist/common/context/index.d.ts +1 -1
- package/dist/common/index.es.js +268 -271
- package/dist/common/stores/GlobalStore.d.ts +2 -3
- package/dist/common/types/index.d.ts +0 -1
- package/dist/common/utils/Fetch.d.ts +1 -3
- package/dist/common/utils/Theme.d.ts +22 -22
- package/dist/dashboard/index.es.js +2 -2
- package/dist/debts/index.es.js +9 -9
- package/dist/{exportTransactionsToCSV-BNkzaLjs.mjs → exportTransactionsToCSV-BDlt8u0n.mjs} +1 -1
- package/dist/finstrong/api/FinstrongApi.d.ts +1 -2
- package/dist/finstrong/index.es.js +7 -7
- package/dist/goals/api/GoalApi.d.ts +2 -3
- package/dist/goals/index.es.js +11 -11
- package/dist/help/api/HelpApi.d.ts +2 -2
- package/dist/help/index.es.js +3 -3
- package/dist/hooks-DkUqN6JE.mjs +71 -0
- package/dist/insights/index.es.js +1 -1
- package/dist/investments/api/HoldingApi.d.ts +2 -3
- package/dist/investments/index.es.js +3 -3
- package/dist/merchants/api/MerchantApi.d.ts +1 -2
- package/dist/merchants/index.es.js +2 -2
- package/dist/microinsights/context/InsightsMicroWidgetDataProvider.d.ts +1 -2
- package/dist/microinsights/context/hooks.d.ts +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +7 -7
- package/dist/notifications/index.es.js +5 -5
- package/dist/recurringtransactions/api/RepeatingTransactionsApi.d.ts +2 -2
- package/dist/recurringtransactions/index.es.js +10 -10
- package/dist/settings/api/SettingsApi.d.ts +2 -3
- package/dist/settings/index.es.js +7 -7
- package/dist/spending/index.es.js +4 -4
- package/dist/transactions/api/TransactionApi.d.ts +2 -3
- package/dist/transactions/index.es.js +14 -14
- package/dist/trends/index.es.js +10 -10
- package/dist/{useCombineEvents-DOl5hNlY.mjs → useCombineEvents-DaDBSR_1.mjs} +29 -29
- package/package.json +1 -1
- package/dist/MerchantStore-CbWE5TJ3.mjs +0 -37
- package/dist/common/types/Handlers.d.ts +0 -2
- package/dist/hooks-0WZgSDp7.mjs +0 -74
package/dist/common/index.es.js
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
import { G as M } from "../useCombineEvents-
|
|
2
|
-
import { A as ts, a as es, u as ss, b as rs } from "../useCombineEvents-
|
|
3
|
-
import { F as y, A as u } from "../Fetch-
|
|
4
|
-
import { B as os } from "../BeatApi-
|
|
5
|
-
import { C as et } from "../CategoryStore-
|
|
6
|
-
import { a as is } from "../CategoryStore-
|
|
7
|
-
import { N as st } from "../NotificationStore-
|
|
8
|
-
import { a as
|
|
9
|
-
import { T as rt } from "../User-
|
|
10
|
-
import { C as
|
|
1
|
+
import { G as M } from "../useCombineEvents-DaDBSR_1.mjs";
|
|
2
|
+
import { A as ts, a as es, u as ss, b as rs } from "../useCombineEvents-DaDBSR_1.mjs";
|
|
3
|
+
import { F as y, A as u } from "../Fetch-CkFKy79O.mjs";
|
|
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 ls } from "../NotificationStore-DHtSGySy.mjs";
|
|
9
|
+
import { T as rt } from "../User-Dq9Qj764.mjs";
|
|
10
|
+
import { C as us, b as hs, L as gs, a as ps } from "../User-Dq9Qj764.mjs";
|
|
11
11
|
import { H as at } from "../Help-DhcC-C05.mjs";
|
|
12
12
|
import { E as _s } from "../Help-DhcC-C05.mjs";
|
|
13
|
-
import { M as fs } from "../MicroWidgetContainer-
|
|
14
|
-
import { M as bs } from "../MiniWidgetContainer-
|
|
15
|
-
import { A as xs, D as Cs, W as
|
|
16
|
-
import { i as
|
|
17
|
-
import { C as qs } from "../CurrencyInput-
|
|
13
|
+
import { M as fs } from "../MicroWidgetContainer-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 Ps, E as $s, h as Rs, N as Us, g as ks, P as Ls, m as Os, S as Gs } from "../ConnectDrawer-phFH6OHt.mjs";
|
|
17
|
+
import { C as qs } from "../CurrencyInput-bEx2Mbd0.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 ot } from "../TransactionStore-
|
|
22
|
-
import { S as Vs } from "../TransactionStore-
|
|
21
|
+
import { T as ot } from "../TransactionStore-0tLtBEIC.mjs";
|
|
22
|
+
import { S as Vs } from "../TransactionStore-0tLtBEIC.mjs";
|
|
23
23
|
import { T as Js } from "../TabContentContainer-j01JYR_7.mjs";
|
|
24
24
|
import { I as er } from "../IconBacking-B9oC6uL2.mjs";
|
|
25
25
|
import { D as rr, F as ar, a as or, c as nr, R as ir, S as cr } from "../RepeatingTransaction-BW4J-jeJ.mjs";
|
|
26
26
|
import { C as nt } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
27
|
-
import { I as
|
|
28
|
-
import { d as it } from "../GoalStore-
|
|
29
|
-
import { C as hr, G as gr, M as pr, T as mr } from "../GoalStore-
|
|
27
|
+
import { I as dr } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
28
|
+
import { d as it } from "../GoalStore-eSOkI6uE.mjs";
|
|
29
|
+
import { C as hr, G as gr, M as pr, T as mr } from "../GoalStore-eSOkI6uE.mjs";
|
|
30
30
|
import { C as yr } from "../CurrencyText-YUhH2caW.mjs";
|
|
31
31
|
import { E as Sr } from "../EmptyState-C0lr9E5T.mjs";
|
|
32
|
-
import { L as wr } from "../ListItemAction-
|
|
33
|
-
import { T as ct } from "../TrendsStore-
|
|
34
|
-
import { L as Cr, S as
|
|
35
|
-
import { A as
|
|
36
|
-
import { jsxs as _, jsx as
|
|
37
|
-
import
|
|
32
|
+
import { L as wr } from "../ListItemAction-DNZZ5fSa.mjs";
|
|
33
|
+
import { T as ct } from "../TrendsStore-WrHxzdbQ.mjs";
|
|
34
|
+
import { L as Cr, S as Dr, u as vr } from "../TrendsStore-WrHxzdbQ.mjs";
|
|
35
|
+
import { A as Er, B as Tr, I as Br, N as Ir, T as Nr, a as Fr } from "../Notification-ByMBpJ5u.mjs";
|
|
36
|
+
import { jsxs as _, jsx as n } from "react/jsx-runtime";
|
|
37
|
+
import lt, { useRef as dt, useEffect as ut } from "react";
|
|
38
38
|
import { css as w, keyframes as ht } from "@mxenabled/cssinjs";
|
|
39
39
|
import { useTokens as x, Text as B } from "@mxenabled/mxui";
|
|
40
|
-
import { D as
|
|
41
|
-
import { L as
|
|
42
|
-
import { S as
|
|
43
|
-
import { D as
|
|
40
|
+
import { D as Pr } from "../Donut-1UMNcG67.mjs";
|
|
41
|
+
import { L as Rr } from "../LineChart-BWWmmJxV.mjs";
|
|
42
|
+
import { S as kr } from "../StatusBar-BK_uYHAB.mjs";
|
|
43
|
+
import { D as Or, a as Gr, O as Hr, b as qr, f as Wr } from "../Dialog-CWW597AF.mjs";
|
|
44
44
|
import { D as gt, a as pt } from "../SingleSegmentDonut-BgbLgwHi.mjs";
|
|
45
45
|
import { S as Yr } from "../SingleSegmentDonut-BgbLgwHi.mjs";
|
|
46
46
|
import { D as Xr } from "../Drawer-kEE73B87.mjs";
|
|
47
|
-
import { I as jr, P as Vr, S as Zr } from "../Account-
|
|
48
|
-
import { b as
|
|
47
|
+
import { I as jr, P as Vr, S as Zr } from "../Account-BW3-oYEs.mjs";
|
|
48
|
+
import { b as E } from "../Category-CevNQ03n.mjs";
|
|
49
49
|
import { C as ta, c as ea, a as sa, P as ra } from "../Category-CevNQ03n.mjs";
|
|
50
|
-
import { C as oa, f as na, b as ia, a as ca, g as
|
|
51
|
-
import { R as mt } from "../RecurringTransactionsStore-
|
|
52
|
-
import { S as ha, T as ga } from "../RecurringTransactionsStore-
|
|
53
|
-
import { G as ma,
|
|
54
|
-
import { u as
|
|
50
|
+
import { C as oa, f as na, b as ia, a as ca, g as la, i as da } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
51
|
+
import { R as mt } from "../RecurringTransactionsStore-D62XJtdL.mjs";
|
|
52
|
+
import { S as ha, T as ga } from "../RecurringTransactionsStore-D62XJtdL.mjs";
|
|
53
|
+
import { G as ma, A as _a, B as ya, W as fa, c as Sa, m as ba, g as wa, t as xa, k as Ca, x as Da, e as va, w as Aa, u as Ea, l as Ta, a as Ba, j as Ia, y as Na, s as Fa, b as Ma, q as Pa, n as $a, z as Ra, h as Ua, r as ka, f as La, v as Oa, o as Ga, p as Ha } from "../hooks-DkUqN6JE.mjs";
|
|
54
|
+
import { u as Wa } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
55
55
|
import { makeAutoObservable as m, runInAction as p, reaction as _t } from "mobx";
|
|
56
|
-
import { a as yt } from "../AccountStore-
|
|
56
|
+
import { a as yt } from "../AccountStore-BaMynkQT.mjs";
|
|
57
57
|
import ft from "posthog-js";
|
|
58
|
-
import { B as St } from "../BeatStore-
|
|
58
|
+
import { B as St } from "../BeatStore-By4aGoRM.mjs";
|
|
59
59
|
import { endOfMonth as Z } from "date-fns/endOfMonth";
|
|
60
60
|
import { startOfMonth as J } from "date-fns/startOfMonth";
|
|
61
|
-
import { startOfToday as
|
|
62
|
-
import { f as bt, a as wt, b as
|
|
63
|
-
import { g as
|
|
64
|
-
import { a as xt } from "../DebtsStore-
|
|
65
|
-
import { a as Ct } from "../FinstrongStore-
|
|
66
|
-
import { A as
|
|
67
|
-
import { M as Tt } from "../MerchantStore-
|
|
68
|
-
import { N as Bt } from "../NetWorthStore-
|
|
69
|
-
import { a as It } from "../SettingsStore-
|
|
61
|
+
import { startOfToday as k } from "date-fns/startOfToday";
|
|
62
|
+
import { f as bt, a as wt, b as L } from "../BudgetUtil-CeSLAcsl.mjs";
|
|
63
|
+
import { g as Ya, e as za, c as Xa, d as Ka, i as ja } 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
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
|
|
74
|
-
import { alpha as Ft, lighten as
|
|
72
|
+
import { i as Za } 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 O, darken as G } 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 = [
|
|
77
77
|
{ id: 0, copy: "frequency_unknown" },
|
|
@@ -87,63 +87,66 @@ const qe = [
|
|
|
87
87
|
LOADING: "LOADING",
|
|
88
88
|
SUCCESS: "SUCCESS"
|
|
89
89
|
};
|
|
90
|
-
var
|
|
90
|
+
var Pt = /* @__PURE__ */ ((s) => (s[s.SpendingPlan = 0] = "SpendingPlan", s[s.Budgets = 1] = "Budgets", s))(Pt || {}), $t = /* @__PURE__ */ ((s) => (s[s.RecurringExpense = 0] = "RecurringExpense", s[s.PlannedExpense = 1] = "PlannedExpense", s[s.Other = 2] = "Other", s[s.Income = 3] = "Income", s))($t || {});
|
|
91
91
|
const Qe = (s, t) => {
|
|
92
|
-
const e =
|
|
93
|
-
|
|
92
|
+
const e = {
|
|
93
|
+
...t,
|
|
94
|
+
system_font: "Times New Roman"
|
|
95
|
+
}, r = s.palette.mode === "dark", a = (l, i) => {
|
|
96
|
+
const c = e?.[l];
|
|
94
97
|
return {
|
|
95
|
-
lighter:
|
|
96
|
-
light:
|
|
97
|
-
main:
|
|
98
|
-
dark:
|
|
99
|
-
darker:
|
|
98
|
+
lighter: c ? O(c, 0.5) : i.lighter,
|
|
99
|
+
light: c ? O(c, 0.25) : i.light,
|
|
100
|
+
main: c || i.main,
|
|
101
|
+
dark: c ? G(c, 0.25) : i.dark,
|
|
102
|
+
darker: c ? G(c, 0.5) : i.darker
|
|
100
103
|
};
|
|
101
|
-
}, a = {
|
|
102
|
-
primary: r(e ? "primary_color_dark" : "primary_color", s.palette.primary),
|
|
103
|
-
secondary: r(e ? "neutral_color_dark" : "neutral_color", s.palette.secondary),
|
|
104
|
-
error: r(e ? "error_color_dark" : "error_color", s.palette.error),
|
|
105
|
-
warning: r(e ? "warning_color_dark" : "warning_color", s.palette.warning),
|
|
106
|
-
info: r(e ? "info_color_dark" : "info_color", s.palette.info),
|
|
107
|
-
success: r(e ? "success_color_dark" : "success_color", s.palette.success)
|
|
108
104
|
}, o = {
|
|
105
|
+
primary: a(r ? "primary_color_dark" : "primary_color", s.palette.primary),
|
|
106
|
+
secondary: a(r ? "neutral_color_dark" : "neutral_color", s.palette.secondary),
|
|
107
|
+
error: a(r ? "error_color_dark" : "error_color", s.palette.error),
|
|
108
|
+
warning: a(r ? "warning_color_dark" : "warning_color", s.palette.warning),
|
|
109
|
+
info: a(r ? "info_color_dark" : "info_color", s.palette.info),
|
|
110
|
+
success: a(r ? "success_color_dark" : "success_color", s.palette.success)
|
|
111
|
+
}, d = {
|
|
109
112
|
MuiTabs: {
|
|
110
113
|
styleOverrides: {
|
|
111
114
|
indicator: {
|
|
112
|
-
backgroundColor:
|
|
115
|
+
backgroundColor: o.primary.light
|
|
113
116
|
}
|
|
114
117
|
}
|
|
115
118
|
},
|
|
116
119
|
MuiPickersCalendarHeader: {
|
|
117
120
|
styleOverrides: {
|
|
118
121
|
switchViewButton: {
|
|
119
|
-
color:
|
|
122
|
+
color: o.primary.lighter,
|
|
120
123
|
"&:hover": {
|
|
121
|
-
backgroundColor: Ft(
|
|
124
|
+
backgroundColor: Ft(o.primary.light, 0.1)
|
|
122
125
|
}
|
|
123
126
|
}
|
|
124
127
|
}
|
|
125
128
|
},
|
|
126
|
-
...
|
|
129
|
+
...e?.button_corner_radius ? {
|
|
127
130
|
MuiButton: {
|
|
128
131
|
styleOverrides: {
|
|
129
132
|
root: {
|
|
130
|
-
borderRadius: `${
|
|
133
|
+
borderRadius: `${e.button_corner_radius}px`
|
|
131
134
|
}
|
|
132
135
|
}
|
|
133
136
|
}
|
|
134
137
|
} : {},
|
|
135
|
-
...
|
|
138
|
+
...e?.card_corner_radius ? {
|
|
136
139
|
MuiCard: {
|
|
137
140
|
styleOverrides: {
|
|
138
141
|
root: {
|
|
139
|
-
borderRadius: `${
|
|
142
|
+
borderRadius: `${e.card_corner_radius}px`
|
|
140
143
|
}
|
|
141
144
|
}
|
|
142
145
|
},
|
|
143
146
|
MuiPaper: {
|
|
144
147
|
styleOverrides: {
|
|
145
148
|
root: {
|
|
146
|
-
borderRadius: `${
|
|
149
|
+
borderRadius: `${e.card_corner_radius}px`
|
|
147
150
|
}
|
|
148
151
|
}
|
|
149
152
|
}
|
|
@@ -151,76 +154,76 @@ const Qe = (s, t) => {
|
|
|
151
154
|
};
|
|
152
155
|
return {
|
|
153
156
|
typography: {
|
|
154
|
-
fontFamily:
|
|
157
|
+
fontFamily: e?.system_font ?? s.typography.fontFamily,
|
|
155
158
|
H1: {
|
|
156
|
-
fontFamily:
|
|
159
|
+
fontFamily: e?.system_font ?? s.typography.fontFamily
|
|
157
160
|
},
|
|
158
161
|
h1: {
|
|
159
|
-
fontFamily:
|
|
162
|
+
fontFamily: e?.system_font ?? s.typography.fontFamily
|
|
160
163
|
},
|
|
161
164
|
H2: {
|
|
162
|
-
fontFamily:
|
|
165
|
+
fontFamily: e?.system_font ?? s.typography.fontFamily
|
|
163
166
|
},
|
|
164
167
|
h2: {
|
|
165
|
-
fontFamily:
|
|
168
|
+
fontFamily: e?.system_font ?? s.typography.fontFamily
|
|
166
169
|
},
|
|
167
170
|
H3: {
|
|
168
|
-
fontFamily:
|
|
171
|
+
fontFamily: e?.system_font ?? s.typography.fontFamily
|
|
169
172
|
},
|
|
170
173
|
h3: {
|
|
171
|
-
fontFamily:
|
|
174
|
+
fontFamily: e?.system_font ?? s.typography.fontFamily
|
|
172
175
|
},
|
|
173
176
|
Body: {
|
|
174
|
-
fontFamily:
|
|
177
|
+
fontFamily: e?.system_font ?? s.typography.fontFamily
|
|
175
178
|
},
|
|
176
179
|
body1: {
|
|
177
|
-
fontFamily:
|
|
180
|
+
fontFamily: e?.system_font ?? s.typography.fontFamily
|
|
178
181
|
},
|
|
179
182
|
Small: {
|
|
180
|
-
fontFamily:
|
|
183
|
+
fontFamily: e?.system_font ?? s.typography.fontFamily
|
|
181
184
|
},
|
|
182
185
|
body2: {
|
|
183
|
-
fontFamily:
|
|
186
|
+
fontFamily: e?.system_font ?? s.typography.fontFamily
|
|
184
187
|
},
|
|
185
188
|
Button: {
|
|
186
|
-
fontFamily:
|
|
189
|
+
fontFamily: e?.system_font ?? s.typography.fontFamily
|
|
187
190
|
},
|
|
188
191
|
button: {
|
|
189
|
-
fontFamily:
|
|
192
|
+
fontFamily: e?.system_font ?? s.typography.fontFamily
|
|
190
193
|
},
|
|
191
194
|
XSmall: {
|
|
192
|
-
fontFamily:
|
|
195
|
+
fontFamily: e?.system_font ?? s.typography.fontFamily
|
|
193
196
|
},
|
|
194
197
|
caption: {
|
|
195
|
-
fontFamily:
|
|
198
|
+
fontFamily: e?.system_font ?? s.typography.fontFamily
|
|
196
199
|
},
|
|
197
200
|
Paragraph: {
|
|
198
|
-
fontFamily:
|
|
201
|
+
fontFamily: e?.system_font ?? s.typography.fontFamily
|
|
199
202
|
},
|
|
200
203
|
subtitle1: {
|
|
201
|
-
fontFamily:
|
|
204
|
+
fontFamily: e?.system_font ?? s.typography.fontFamily
|
|
202
205
|
},
|
|
203
206
|
ParagraphSmall: {
|
|
204
|
-
fontFamily:
|
|
207
|
+
fontFamily: e?.system_font ?? s.typography.fontFamily
|
|
205
208
|
},
|
|
206
209
|
subtitle2: {
|
|
207
|
-
fontFamily:
|
|
210
|
+
fontFamily: e?.system_font ?? s.typography.fontFamily
|
|
208
211
|
},
|
|
209
212
|
Tiny: {
|
|
210
|
-
fontFamily:
|
|
213
|
+
fontFamily: e?.system_font ?? s.typography.fontFamily
|
|
211
214
|
},
|
|
212
215
|
tiny: {
|
|
213
|
-
fontFamily:
|
|
216
|
+
fontFamily: e?.system_font ?? s.typography.fontFamily
|
|
214
217
|
}
|
|
215
218
|
},
|
|
216
|
-
palette:
|
|
217
|
-
components:
|
|
219
|
+
palette: o,
|
|
220
|
+
components: d,
|
|
218
221
|
shape: {
|
|
219
|
-
borderRadius:
|
|
222
|
+
borderRadius: e?.button_corner_radius ?? s.shape.borderRadius
|
|
220
223
|
}
|
|
221
224
|
};
|
|
222
225
|
};
|
|
223
|
-
class
|
|
226
|
+
class H {
|
|
224
227
|
fetchInstance;
|
|
225
228
|
constructor(t) {
|
|
226
229
|
this.fetchInstance = new y(t, "", {
|
|
@@ -239,16 +242,16 @@ class P {
|
|
|
239
242
|
}
|
|
240
243
|
class Ye {
|
|
241
244
|
fetchInstance;
|
|
242
|
-
constructor(t, e
|
|
243
|
-
this.fetchInstance = new y(t, e
|
|
245
|
+
constructor(t, e) {
|
|
246
|
+
this.fetchInstance = new y(t, e);
|
|
244
247
|
}
|
|
245
248
|
getLocalizedCopy = async (t) => this.fetchInstance.post(u.LOCALIZED_COPY, t).then((e) => e);
|
|
246
249
|
getLocalizedContent = async (t) => this.fetchInstance.post(`${u.LOCALIZED_CONTENT}/${t}`).then((e) => e);
|
|
247
250
|
}
|
|
248
251
|
class ze {
|
|
249
252
|
fetchInstance;
|
|
250
|
-
constructor(t, e
|
|
251
|
-
this.fetchInstance = new y(t, e
|
|
253
|
+
constructor(t, e) {
|
|
254
|
+
this.fetchInstance = new y(t, e);
|
|
252
255
|
}
|
|
253
256
|
addScheduledPayment = async (t) => this.fetchInstance.post(u.SCHEDULED_PAYMENTS, {
|
|
254
257
|
...t,
|
|
@@ -259,10 +262,10 @@ class ze {
|
|
|
259
262
|
updateScheduledPayment = async (t) => this.fetchInstance.put(`${u.SCHEDULED_PAYMENTS}/${t.guid}`, t).then((e) => e.scheduled_payment);
|
|
260
263
|
deleteScheduledPayment = async (t) => this.fetchInstance.delete(`${u.SCHEDULED_PAYMENTS}/${t}`).then((e) => e);
|
|
261
264
|
}
|
|
262
|
-
class
|
|
265
|
+
class P {
|
|
263
266
|
fetchInstance;
|
|
264
|
-
constructor(t, e
|
|
265
|
-
this.fetchInstance = new y(t, e
|
|
267
|
+
constructor(t, e) {
|
|
268
|
+
this.fetchInstance = new y(t, e);
|
|
266
269
|
}
|
|
267
270
|
getUserFeatures = async () => this.fetchInstance.get(u.USER_FEATURES).then((t) => t.user_features).catch((t) => t);
|
|
268
271
|
updateUser = async (t) => this.fetchInstance.put(u.USER, t).then((e) => e.user);
|
|
@@ -276,23 +279,23 @@ class q {
|
|
|
276
279
|
requestWidgetUrl = async (t) => this.fetchInstance.post(u.WIDGET_URLS, t).then((e) => e.widget_url);
|
|
277
280
|
}
|
|
278
281
|
const Xe = (s) => {
|
|
279
|
-
const t =
|
|
280
|
-
return
|
|
282
|
+
const t = dt();
|
|
283
|
+
return ut(() => {
|
|
281
284
|
t.current = s;
|
|
282
285
|
}, [s]), t.current;
|
|
283
|
-
},
|
|
284
|
-
const r = x(), a =
|
|
286
|
+
}, Rt = ({ color: s, labelAverage: t, labelMain: e }) => {
|
|
287
|
+
const r = x(), a = Ut(r, s);
|
|
285
288
|
return /* @__PURE__ */ _("div", { className: `mx-cmn-bar-chart-legend ${a}`, children: [
|
|
286
|
-
/* @__PURE__ */
|
|
287
|
-
/* @__PURE__ */
|
|
289
|
+
/* @__PURE__ */ n("div", { "aria-label": e, className: "mx-cmn-color-square", role: "img" }),
|
|
290
|
+
/* @__PURE__ */ n(B, { variant: "XSmall", children: e }),
|
|
288
291
|
/* @__PURE__ */ _("div", { "aria-label": t, className: "mx-cmn-triple-dot", role: "img", children: [
|
|
289
|
-
/* @__PURE__ */
|
|
290
|
-
/* @__PURE__ */
|
|
291
|
-
/* @__PURE__ */
|
|
292
|
+
/* @__PURE__ */ n("div", { className: "mx-cmn-dot" }),
|
|
293
|
+
/* @__PURE__ */ n("div", { className: "mx-cmn-dot" }),
|
|
294
|
+
/* @__PURE__ */ n("div", { className: "mx-cmn-dot" })
|
|
292
295
|
] }),
|
|
293
|
-
/* @__PURE__ */
|
|
296
|
+
/* @__PURE__ */ n(B, { variant: "XSmall", children: t })
|
|
294
297
|
] });
|
|
295
|
-
},
|
|
298
|
+
}, Ut = (s, t) => w({
|
|
296
299
|
alignItems: "center",
|
|
297
300
|
display: "flex",
|
|
298
301
|
gap: s.Spacing.XSmall,
|
|
@@ -326,11 +329,11 @@ const Xe = (s) => {
|
|
|
326
329
|
label: a,
|
|
327
330
|
onClick: o,
|
|
328
331
|
selectedIndex: d,
|
|
329
|
-
value:
|
|
332
|
+
value: l
|
|
330
333
|
}) => {
|
|
331
|
-
const
|
|
334
|
+
const i = x(), c = kt(i, t, e), h = (S) => {
|
|
332
335
|
o && (S.key === " " || S.key === "Enter") && o(r);
|
|
333
|
-
}, f = d === void 0 || d === r ? "primary" : "secondary", g = () => /* @__PURE__ */
|
|
336
|
+
}, f = d === void 0 || d === r ? "primary" : "secondary", g = () => /* @__PURE__ */ n(
|
|
334
337
|
B,
|
|
335
338
|
{
|
|
336
339
|
"aria-hidden": !0,
|
|
@@ -342,22 +345,22 @@ const Xe = (s) => {
|
|
|
342
345
|
children: a
|
|
343
346
|
}
|
|
344
347
|
);
|
|
345
|
-
return /* @__PURE__ */ _("div", { className: `mx-cmn-bar-container ${
|
|
346
|
-
|
|
347
|
-
/* @__PURE__ */
|
|
348
|
+
return /* @__PURE__ */ _("div", { className: `mx-cmn-bar-container ${c} ${l < 0 ? "mx-cmn-negative" : ""}`, children: [
|
|
349
|
+
l >= 0 && /* @__PURE__ */ n(g, {}),
|
|
350
|
+
/* @__PURE__ */ n(
|
|
348
351
|
"div",
|
|
349
352
|
{
|
|
350
353
|
"aria-label": s,
|
|
351
|
-
className: `mx-cmn-bar ${o ? "mx-cmn-clickable" : ""} ${
|
|
354
|
+
className: `mx-cmn-bar ${o ? "mx-cmn-clickable" : ""} ${l < 0 ? "mx-cmn-bar-negative" : ""}`,
|
|
352
355
|
onClick: o ? () => o?.(r) : void 0,
|
|
353
356
|
onKeyDown: h,
|
|
354
357
|
role: s ? "button" : void 0,
|
|
355
358
|
tabIndex: s ? 0 : void 0
|
|
356
359
|
}
|
|
357
360
|
),
|
|
358
|
-
|
|
361
|
+
l < 0 && /* @__PURE__ */ n(g, {})
|
|
359
362
|
] });
|
|
360
|
-
},
|
|
363
|
+
}, kt = (s, t, e) => {
|
|
361
364
|
const r = `expandBar-${Math.round(e)}`, a = ht(r, { from: { height: 0 }, to: { height: e } });
|
|
362
365
|
return w({
|
|
363
366
|
display: "flex",
|
|
@@ -398,52 +401,52 @@ const Xe = (s) => {
|
|
|
398
401
|
index: a = -1,
|
|
399
402
|
onClick: o,
|
|
400
403
|
range: d,
|
|
401
|
-
selectedIndex:
|
|
402
|
-
topHeight:
|
|
403
|
-
value:
|
|
404
|
+
selectedIndex: l,
|
|
405
|
+
topHeight: i,
|
|
406
|
+
value: c,
|
|
404
407
|
valueLabel: h = "",
|
|
405
408
|
width: f,
|
|
406
409
|
xAxisLabel: g = ""
|
|
407
410
|
}) => {
|
|
408
|
-
const S = x(), C =
|
|
411
|
+
const S = x(), C = Lt(S, f), D = c / d * i, v = Math.abs(c) / d * e, A = l === void 0 || l === a ? "primary" : "secondary";
|
|
409
412
|
return /* @__PURE__ */ _("div", { className: `mx-cmn-barchart-bar-column ${C}`, children: [
|
|
410
|
-
/* @__PURE__ */
|
|
413
|
+
/* @__PURE__ */ n("div", { style: { height: i }, children: c >= 0 && /* @__PURE__ */ n(
|
|
411
414
|
W,
|
|
412
415
|
{
|
|
413
416
|
ariaLabel: s,
|
|
414
417
|
color: r,
|
|
415
|
-
height:
|
|
418
|
+
height: D,
|
|
416
419
|
index: a,
|
|
417
420
|
label: h,
|
|
418
421
|
onClick: o,
|
|
419
|
-
selectedIndex:
|
|
420
|
-
value:
|
|
422
|
+
selectedIndex: l,
|
|
423
|
+
value: c
|
|
421
424
|
}
|
|
422
425
|
) }),
|
|
423
|
-
/* @__PURE__ */
|
|
424
|
-
t !== 0 && /* @__PURE__ */
|
|
425
|
-
/* @__PURE__ */
|
|
426
|
+
/* @__PURE__ */ n("div", { className: "mx-cmn-zero-line" }),
|
|
427
|
+
t !== 0 && /* @__PURE__ */ n("div", { className: "mx-cmn-chart-average", style: { bottom: t } }),
|
|
428
|
+
/* @__PURE__ */ n("div", { style: { height: e }, children: c < 0 && /* @__PURE__ */ n(
|
|
426
429
|
W,
|
|
427
430
|
{
|
|
428
431
|
ariaLabel: s,
|
|
429
432
|
color: r,
|
|
430
|
-
height:
|
|
433
|
+
height: v,
|
|
431
434
|
index: a,
|
|
432
435
|
label: h,
|
|
433
436
|
onClick: o,
|
|
434
|
-
value:
|
|
437
|
+
value: c
|
|
435
438
|
}
|
|
436
439
|
) }),
|
|
437
|
-
/* @__PURE__ */
|
|
440
|
+
/* @__PURE__ */ n(
|
|
438
441
|
"div",
|
|
439
442
|
{
|
|
440
443
|
className: `mx-cmn-bar-label ${o ? "mx-cmn-clickable" : ""}`,
|
|
441
444
|
onClick: o ? () => o(a) : void 0,
|
|
442
|
-
children: /* @__PURE__ */
|
|
445
|
+
children: /* @__PURE__ */ n(B, { bold: l === a, color: A, variant: "Small", children: g })
|
|
443
446
|
}
|
|
444
447
|
)
|
|
445
448
|
] });
|
|
446
|
-
},
|
|
449
|
+
}, Lt = (s, t) => w({
|
|
447
450
|
display: "flex",
|
|
448
451
|
flexDirection: "column",
|
|
449
452
|
flexGrow: t === void 0 ? 1 : 0,
|
|
@@ -468,7 +471,7 @@ const Xe = (s) => {
|
|
|
468
471
|
"& .mx-cmn-clickable": {
|
|
469
472
|
cursor: "pointer"
|
|
470
473
|
}
|
|
471
|
-
}),
|
|
474
|
+
}), Ot = (s, t) => s + t, Gt = (s, t) => Math.abs(t) > s ? Math.abs(t) : s, Ht = (s, t) => [...s, t.value], Y = (s, t, e) => {
|
|
472
475
|
const r = s && t ? e / 2 : e;
|
|
473
476
|
return s ? r : 0;
|
|
474
477
|
}, qt = (s, t, e, r) => s / (t < 0 ? -e : t) * r || 0, Wt = ({
|
|
@@ -479,17 +482,17 @@ const Xe = (s) => {
|
|
|
479
482
|
height: a,
|
|
480
483
|
legendLabelAverage: o,
|
|
481
484
|
legendLabelMain: d,
|
|
482
|
-
onBarClick:
|
|
483
|
-
selectedIndex:
|
|
484
|
-
valueFormatter:
|
|
485
|
+
onBarClick: l,
|
|
486
|
+
selectedIndex: i,
|
|
487
|
+
valueFormatter: c = (h) => `${h}`
|
|
485
488
|
}) => {
|
|
486
|
-
const h = x(), f = Qt(h), g = r.reduce(
|
|
489
|
+
const h = x(), f = Qt(h), g = r.reduce(Ht, []), S = s !== void 0 ? s : g.reduce(Ot, 0) / g.length, C = Math.max(...g), D = Math.min(...g), v = g.reduce(Gt, 0), A = C >= 0, $ = D < 0, I = Y(A, $, a), N = Y($, A, a), R = qt(S, C, D, I || N), tt = (b) => i === void 0 || b === i ? e : `${e}80`, U = () => /* @__PURE__ */ n(
|
|
487
490
|
Q,
|
|
488
491
|
{
|
|
489
|
-
averageLineHeight:
|
|
492
|
+
averageLineHeight: R,
|
|
490
493
|
bottomHeight: N,
|
|
491
494
|
color: "",
|
|
492
|
-
range:
|
|
495
|
+
range: v,
|
|
493
496
|
topHeight: I,
|
|
494
497
|
value: 0,
|
|
495
498
|
width: void 0
|
|
@@ -497,30 +500,30 @@ const Xe = (s) => {
|
|
|
497
500
|
);
|
|
498
501
|
return /* @__PURE__ */ _("div", { className: `mx-cmn-bar-chart ${f}`, children: [
|
|
499
502
|
/* @__PURE__ */ _("div", { className: "mx-cmn-chart-container", children: [
|
|
500
|
-
/* @__PURE__ */
|
|
501
|
-
r.map((b, F) => /* @__PURE__ */ _(
|
|
502
|
-
/* @__PURE__ */
|
|
503
|
+
/* @__PURE__ */ n(U, {}),
|
|
504
|
+
r.map((b, F) => /* @__PURE__ */ _(lt.Fragment, { children: [
|
|
505
|
+
/* @__PURE__ */ n(
|
|
503
506
|
Q,
|
|
504
507
|
{
|
|
505
508
|
ariaLabel: b.ariaLabel,
|
|
506
|
-
averageLineHeight:
|
|
509
|
+
averageLineHeight: R,
|
|
507
510
|
bottomHeight: N,
|
|
508
511
|
color: tt(F),
|
|
509
512
|
index: F,
|
|
510
|
-
onClick:
|
|
511
|
-
range:
|
|
512
|
-
selectedIndex:
|
|
513
|
+
onClick: l,
|
|
514
|
+
range: v,
|
|
515
|
+
selectedIndex: i,
|
|
513
516
|
topHeight: I,
|
|
514
517
|
value: b.value,
|
|
515
|
-
valueLabel:
|
|
518
|
+
valueLabel: c(b.value),
|
|
516
519
|
width: t,
|
|
517
520
|
xAxisLabel: b.label
|
|
518
521
|
}
|
|
519
522
|
),
|
|
520
|
-
/* @__PURE__ */
|
|
523
|
+
/* @__PURE__ */ n(U, {})
|
|
521
524
|
] }, `column-${F}`))
|
|
522
525
|
] }),
|
|
523
|
-
/* @__PURE__ */
|
|
526
|
+
/* @__PURE__ */ n(Rt, { color: e, labelAverage: o, labelMain: d })
|
|
524
527
|
] });
|
|
525
528
|
}, Qt = (s) => w({
|
|
526
529
|
"& .mx-cmn-chart-container": {
|
|
@@ -537,38 +540,38 @@ const Xe = (s) => {
|
|
|
537
540
|
strokeWidth: r = pt,
|
|
538
541
|
children: a
|
|
539
542
|
}) => {
|
|
540
|
-
const o = x(), d = zt(o, e),
|
|
541
|
-
let
|
|
543
|
+
const o = x(), d = zt(o, e), l = (e - r) / 2, i = e / 2;
|
|
544
|
+
let c = -90 - (s ? 1 : 0), h = 0;
|
|
542
545
|
return /* @__PURE__ */ _("div", { className: `mx-cmn-multi-segment-donut ${d}`, children: [
|
|
543
546
|
/* @__PURE__ */ _("svg", { height: e, width: e, children: [
|
|
544
|
-
/* @__PURE__ */
|
|
547
|
+
/* @__PURE__ */ n(
|
|
545
548
|
"circle",
|
|
546
549
|
{
|
|
547
|
-
cx:
|
|
548
|
-
cy:
|
|
550
|
+
cx: i,
|
|
551
|
+
cy: i,
|
|
549
552
|
fill: "none",
|
|
550
|
-
r:
|
|
553
|
+
r: l,
|
|
551
554
|
stroke: o.Color.Neutral300,
|
|
552
555
|
strokeWidth: r
|
|
553
556
|
}
|
|
554
557
|
),
|
|
555
|
-
t.map((f, g) => (
|
|
558
|
+
t.map((f, g) => (c += 360 * h + (s ? 1 : 0), h = (f.percent - (s ? 0.3 : 0)) / 100, /* @__PURE__ */ n(
|
|
556
559
|
"circle",
|
|
557
560
|
{
|
|
558
|
-
cx:
|
|
559
|
-
cy:
|
|
561
|
+
cx: i,
|
|
562
|
+
cy: i,
|
|
560
563
|
fill: "none",
|
|
561
|
-
r:
|
|
564
|
+
r: l,
|
|
562
565
|
stroke: f.color,
|
|
563
|
-
strokeDasharray: 2 * Math.PI *
|
|
564
|
-
strokeDashoffset: 2 * Math.PI *
|
|
566
|
+
strokeDasharray: 2 * Math.PI * l,
|
|
567
|
+
strokeDashoffset: 2 * Math.PI * l * (1 - h),
|
|
565
568
|
strokeWidth: r,
|
|
566
|
-
transform: `rotate(${
|
|
569
|
+
transform: `rotate(${c}, ${i}, ${i})`
|
|
567
570
|
},
|
|
568
571
|
g
|
|
569
572
|
)))
|
|
570
573
|
] }),
|
|
571
|
-
/* @__PURE__ */
|
|
574
|
+
/* @__PURE__ */ n("div", { className: "mx-cmn-multi-segment-donut-children", children: a })
|
|
572
575
|
] });
|
|
573
576
|
}, zt = (s, t) => w({
|
|
574
577
|
height: t,
|
|
@@ -590,11 +593,7 @@ class Xt {
|
|
|
590
593
|
featureNamespace = "experiences";
|
|
591
594
|
isInitialized = !1;
|
|
592
595
|
constructor(t) {
|
|
593
|
-
this.globalStore = t, this.api = new M(
|
|
594
|
-
t.endpoint,
|
|
595
|
-
t.sessionToken,
|
|
596
|
-
t.onError
|
|
597
|
-
), m(this);
|
|
596
|
+
this.globalStore = t, this.api = new M(t.endpoint, t.sessionToken), m(this);
|
|
598
597
|
}
|
|
599
598
|
// DEPRECATED: Initialize api in constructor and use loadCopy instead
|
|
600
599
|
// TODO: Remove this function
|
|
@@ -668,8 +667,8 @@ class Kt {
|
|
|
668
667
|
}
|
|
669
668
|
class z {
|
|
670
669
|
fetchInstance;
|
|
671
|
-
constructor(t, e
|
|
672
|
-
this.fetchInstance = new y(t, e
|
|
670
|
+
constructor(t, e) {
|
|
671
|
+
this.fetchInstance = new y(t, e);
|
|
673
672
|
}
|
|
674
673
|
addBudget = async (t, e, r = null) => this.fetchInstance.post(u.BUDGETS, {
|
|
675
674
|
amount: e,
|
|
@@ -691,14 +690,14 @@ class jt {
|
|
|
691
690
|
api = new z("/", "");
|
|
692
691
|
globalStore;
|
|
693
692
|
alert = "";
|
|
694
|
-
dateRange = { start: J(
|
|
693
|
+
dateRange = { start: J(k()), end: Z(k()) };
|
|
695
694
|
budgets = [];
|
|
696
695
|
selectedBudget;
|
|
697
696
|
selectedSubBudget;
|
|
698
697
|
isDataLoaded = !1;
|
|
699
698
|
theme = {};
|
|
700
699
|
constructor(t) {
|
|
701
|
-
this.globalStore = t, this.api = new z(t.endpoint, t.sessionToken
|
|
700
|
+
this.globalStore = t, this.api = new z(t.endpoint, t.sessionToken), m(this);
|
|
702
701
|
}
|
|
703
702
|
loadBudgetData = async () => {
|
|
704
703
|
await this.loadBudgets(), _t(
|
|
@@ -718,9 +717,9 @@ class jt {
|
|
|
718
717
|
);
|
|
719
718
|
};
|
|
720
719
|
get detailedBudgets() {
|
|
721
|
-
return
|
|
720
|
+
return L(
|
|
722
721
|
this.budgets.filter(
|
|
723
|
-
(t) => t.category_guid !==
|
|
722
|
+
(t) => t.category_guid !== E.INCOME && t.category_guid !== E.TRANSFER && t.category_guid !== E.INVESTMENTS
|
|
724
723
|
),
|
|
725
724
|
this.globalStore.categoryStore.detailedCategories,
|
|
726
725
|
this.globalStore.copyStore.copy.budgets,
|
|
@@ -728,13 +727,13 @@ class jt {
|
|
|
728
727
|
).sort((t, e) => t.percentage > e.percentage ? -1 : t.percentage < e.percentage ? 1 : 0);
|
|
729
728
|
}
|
|
730
729
|
get incomeBudget() {
|
|
731
|
-
return
|
|
730
|
+
return L(
|
|
732
731
|
this.budgets.filter((r) => !r.parent_guid),
|
|
733
732
|
this.globalStore.categoryStore.detailedCategories,
|
|
734
733
|
this.globalStore.copyStore.copy.budgets,
|
|
735
734
|
this.theme
|
|
736
735
|
).reduce(
|
|
737
|
-
(r, a) => a.category_guid !==
|
|
736
|
+
(r, a) => a.category_guid !== E.INCOME ? r : !r || a.percentage > r.percentage ? a : r,
|
|
738
737
|
void 0
|
|
739
738
|
)?.amount;
|
|
740
739
|
}
|
|
@@ -819,8 +818,8 @@ class jt {
|
|
|
819
818
|
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 || {});
|
|
820
819
|
class X {
|
|
821
820
|
fetchInstance;
|
|
822
|
-
constructor(t, e
|
|
823
|
-
this.fetchInstance = new y(t, e
|
|
821
|
+
constructor(t, e) {
|
|
822
|
+
this.fetchInstance = new y(t, e);
|
|
824
823
|
}
|
|
825
824
|
createSupportTicket = async (t) => this.fetchInstance.post(u.SUPPORT_TICKETS, t).then((e) => e);
|
|
826
825
|
}
|
|
@@ -832,9 +831,9 @@ const ee = (s, t) => s.guid === "general" || s.guid === "insights" ? !0 : s.flag
|
|
|
832
831
|
const o = {
|
|
833
832
|
...r,
|
|
834
833
|
title: a.label,
|
|
835
|
-
topics: r.topics.map(({ topicKey: d },
|
|
834
|
+
topics: r.topics.map(({ topicKey: d }, l) => ({
|
|
836
835
|
topicKey: d,
|
|
837
|
-
label: a.topics[
|
|
836
|
+
label: a.topics[l]
|
|
838
837
|
}))
|
|
839
838
|
};
|
|
840
839
|
ee(o, s) && e.push(o);
|
|
@@ -848,7 +847,7 @@ class re {
|
|
|
848
847
|
globalStore;
|
|
849
848
|
isLoading = !1;
|
|
850
849
|
constructor(t) {
|
|
851
|
-
this.globalStore = t, this.api = new X(t.endpoint, t.sessionToken
|
|
850
|
+
this.globalStore = t, this.api = new X(t.endpoint, t.sessionToken), m(this);
|
|
852
851
|
}
|
|
853
852
|
createSupportTicket = async (t) => {
|
|
854
853
|
try {
|
|
@@ -879,27 +878,27 @@ class re {
|
|
|
879
878
|
}
|
|
880
879
|
class K {
|
|
881
880
|
fetchInstance;
|
|
882
|
-
constructor(t, e
|
|
883
|
-
this.fetchInstance = new y(t, e
|
|
881
|
+
constructor(t, e) {
|
|
882
|
+
this.fetchInstance = new y(t, e);
|
|
884
883
|
}
|
|
885
884
|
getHoldings = async () => this.fetchInstance.get(u.HOLDINGS).then((t) => t.holdings);
|
|
886
885
|
updateHoldings = async (t) => this.fetchInstance.put(`${u.HOLDINGS}/${t.guid}`, t).then((e) => e.holding);
|
|
887
886
|
}
|
|
888
887
|
class ae {
|
|
889
|
-
analysisType =
|
|
888
|
+
analysisType = Dt.Stocks;
|
|
890
889
|
api = new K("/", "");
|
|
891
890
|
holdings = [];
|
|
892
891
|
holdingsLoaded = !1;
|
|
893
892
|
globalStore;
|
|
894
893
|
showConnectionsWidget = !1;
|
|
895
894
|
constructor(t) {
|
|
896
|
-
this.globalStore = t, this.api = new K(t.endpoint, t.sessionToken
|
|
895
|
+
this.globalStore = t, this.api = new K(t.endpoint, t.sessionToken), m(this);
|
|
897
896
|
}
|
|
898
897
|
get analysisChartData() {
|
|
899
|
-
return
|
|
898
|
+
return vt(At(this.visibleHoldings), this.analysisType);
|
|
900
899
|
}
|
|
901
900
|
get analysisDetails() {
|
|
902
|
-
return
|
|
901
|
+
return Et(this.visibleHoldings)[this.analysisType] || {};
|
|
903
902
|
}
|
|
904
903
|
get visibleHoldings() {
|
|
905
904
|
return this.holdings.filter(
|
|
@@ -1041,19 +1040,19 @@ const j = {
|
|
|
1041
1040
|
};
|
|
1042
1041
|
class V {
|
|
1043
1042
|
fetchInstance;
|
|
1044
|
-
constructor(t, e
|
|
1045
|
-
this.fetchInstance = new y(t, e
|
|
1043
|
+
constructor(t, e) {
|
|
1044
|
+
this.fetchInstance = new y(t, e);
|
|
1046
1045
|
}
|
|
1047
1046
|
getAppData = async () => this.fetchInstance.get(u.APP_DATA).then((t) => t);
|
|
1048
1047
|
}
|
|
1049
1048
|
class oe {
|
|
1050
1049
|
globalStore;
|
|
1051
1050
|
api = new V("/", "");
|
|
1052
|
-
bannerApi = new
|
|
1051
|
+
bannerApi = new H("/");
|
|
1053
1052
|
appData = {};
|
|
1054
1053
|
banner = {};
|
|
1055
1054
|
constructor(t) {
|
|
1056
|
-
this.globalStore = t, this.api = new V(t.endpoint, t.sessionToken
|
|
1055
|
+
this.globalStore = t, this.api = new V(t.endpoint, t.sessionToken), m(this);
|
|
1057
1056
|
}
|
|
1058
1057
|
get appConfig() {
|
|
1059
1058
|
return this.globalStore.appConfig;
|
|
@@ -1077,7 +1076,7 @@ class oe {
|
|
|
1077
1076
|
try {
|
|
1078
1077
|
const e = t || await this.api.getAppData();
|
|
1079
1078
|
p(() => {
|
|
1080
|
-
this.appData = e, this.bannerApi = new
|
|
1079
|
+
this.appData = e, this.bannerApi = new H(e.address?.bullseye || "/");
|
|
1081
1080
|
});
|
|
1082
1081
|
} catch (e) {
|
|
1083
1082
|
console.error(`Error loading app data: ${e}`);
|
|
@@ -1155,15 +1154,15 @@ class ie {
|
|
|
1155
1154
|
}
|
|
1156
1155
|
class ce {
|
|
1157
1156
|
globalStore;
|
|
1158
|
-
api = new
|
|
1157
|
+
api = new P("/", "");
|
|
1159
1158
|
userFeatures = [];
|
|
1160
1159
|
constructor(t) {
|
|
1161
|
-
this.globalStore = t, this.api = new
|
|
1160
|
+
this.globalStore = t, this.api = new P(t.endpoint, t.sessionToken), m(this);
|
|
1162
1161
|
}
|
|
1163
1162
|
// DEPRECATED: Initialize api in constructor and use loadUserFeatures instead
|
|
1164
1163
|
// TODO: Remove this function
|
|
1165
1164
|
initialize = async (t, e) => {
|
|
1166
|
-
this.api = new
|
|
1165
|
+
this.api = new P(t, e), await this.loadUserFeatures();
|
|
1167
1166
|
};
|
|
1168
1167
|
get userProfile() {
|
|
1169
1168
|
return this.globalStore.appDataStore.userProfile;
|
|
@@ -1203,7 +1202,6 @@ class Ve {
|
|
|
1203
1202
|
appConfig = j;
|
|
1204
1203
|
endpoint = "/";
|
|
1205
1204
|
sessionToken = "";
|
|
1206
|
-
onError;
|
|
1207
1205
|
// Data Stores
|
|
1208
1206
|
accountStore;
|
|
1209
1207
|
appDataStore;
|
|
@@ -1229,8 +1227,8 @@ class Ve {
|
|
|
1229
1227
|
userStore;
|
|
1230
1228
|
// UI Stores
|
|
1231
1229
|
globalUiStore;
|
|
1232
|
-
constructor(t = j, e = "/"
|
|
1233
|
-
this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.
|
|
1230
|
+
constructor(t = j, e = "/") {
|
|
1231
|
+
this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.accountStore = new yt(this), this.appDataStore = new oe(this), this.analyticsStore = new Kt(this), this.beatStore = new St(this), this.budgetsStore = new jt(this), this.cashflowStore = new nt(this), this.categoryStore = new et(this), this.connectStore = new ne(this), this.copyStore = new Xt(this), this.debtsStore = new xt(this), this.finstrongStore = new Ct(this), this.goalStore = new it(this), this.helpStore = new re(this), this.holdingStore = new ae(this), this.merchantStore = new Tt(this), this.netWorthStore = new Bt(this), this.notificationStore = new st(this), this.recurringTransactionsStore = new mt(this), this.settingsStore = new It(this), this.transactionStore = new ot(this), this.trendsStore = new ct(this), this.userStore = new ce(this), this.globalUiStore = new ie(this), m(this);
|
|
1234
1232
|
}
|
|
1235
1233
|
get isInitialized() {
|
|
1236
1234
|
return this.globalUiStore.isInitialized;
|
|
@@ -1242,65 +1240,65 @@ class Ve {
|
|
|
1242
1240
|
categories: a,
|
|
1243
1241
|
institutions: o,
|
|
1244
1242
|
transactionRules: d,
|
|
1245
|
-
transactions:
|
|
1246
|
-
userFeatures:
|
|
1243
|
+
transactions: l,
|
|
1244
|
+
userFeatures: i
|
|
1247
1245
|
} = {}) => {
|
|
1248
1246
|
await Promise.all([
|
|
1249
1247
|
// Load copy, config and quser data
|
|
1250
1248
|
this.copyStore.loadCopy(),
|
|
1251
1249
|
this.appDataStore.loadAppData(e),
|
|
1252
|
-
this.userStore.loadUserFeatures(
|
|
1250
|
+
this.userStore.loadUserFeatures(i)
|
|
1253
1251
|
]), await Promise.all([
|
|
1254
1252
|
this.accountStore.loadAccountData({ accounts: t, institutions: o }),
|
|
1255
1253
|
this.categoryStore.loadCategories(a),
|
|
1256
1254
|
this.transactionStore.loadTransactionData({
|
|
1257
1255
|
associatedBeats: r,
|
|
1258
1256
|
transactionRules: d,
|
|
1259
|
-
transactions:
|
|
1257
|
+
transactions: l
|
|
1260
1258
|
})
|
|
1261
1259
|
]), this.globalUiStore.setInitialized(!0);
|
|
1262
1260
|
};
|
|
1263
1261
|
}
|
|
1264
1262
|
export {
|
|
1265
1263
|
xs as ANALYTICS_EVENTS,
|
|
1266
|
-
|
|
1267
|
-
|
|
1264
|
+
As as AccountFilter,
|
|
1265
|
+
Es as AccountIcon,
|
|
1268
1266
|
Ts as AccountIconVariants,
|
|
1269
|
-
|
|
1267
|
+
Er as AccountNotificationTypes,
|
|
1270
1268
|
Bs as AccountSubType,
|
|
1271
1269
|
Is as AccountType,
|
|
1272
1270
|
Ns as AccountTypeName,
|
|
1273
1271
|
ts as AnalyticsApi,
|
|
1274
1272
|
u as ApiEndpoints,
|
|
1275
|
-
|
|
1273
|
+
H as BannerApi,
|
|
1276
1274
|
Ke as BarChart,
|
|
1277
1275
|
os as BeatApi,
|
|
1278
1276
|
Tr as BudgetNotificationTypes,
|
|
1279
|
-
|
|
1277
|
+
us as Calendar,
|
|
1280
1278
|
hs as CalendarSelectionTypes,
|
|
1281
1279
|
is as CategoryApi,
|
|
1282
1280
|
ta as CategoryColors,
|
|
1283
1281
|
ea as CategoryGuidToName,
|
|
1284
|
-
|
|
1282
|
+
E as CategoryGuids,
|
|
1285
1283
|
sa as CategoryIcon,
|
|
1286
1284
|
hr as ConnectCard,
|
|
1287
1285
|
Fs as ConnectDrawer,
|
|
1288
1286
|
Ms as ConnectionStatus,
|
|
1289
|
-
|
|
1287
|
+
Ps as ConnectionStatusEnums,
|
|
1290
1288
|
oa as CurrencyCodes,
|
|
1291
1289
|
qs as CurrencyInput,
|
|
1292
1290
|
yr as CurrencyText,
|
|
1293
|
-
|
|
1291
|
+
Or as DATE_FORMATS_INTL,
|
|
1294
1292
|
gt as DEFAULT_DONUT_SIZE,
|
|
1295
1293
|
pt as DEFAULT_STROKE_WIDTH,
|
|
1296
1294
|
rr as DataRow,
|
|
1297
1295
|
Cs as DateRangeSelector,
|
|
1298
|
-
|
|
1299
|
-
|
|
1296
|
+
Gr as Dialog,
|
|
1297
|
+
Pr as Donut,
|
|
1300
1298
|
Xr as Drawer,
|
|
1301
1299
|
Sr as EmptyState,
|
|
1302
1300
|
_s as ErrorBoundary,
|
|
1303
|
-
|
|
1301
|
+
$s as ErrorStatuses,
|
|
1304
1302
|
Zt as ExpenseStatus,
|
|
1305
1303
|
y as Fetch,
|
|
1306
1304
|
ar as Frequency,
|
|
@@ -1312,32 +1310,32 @@ export {
|
|
|
1312
1310
|
gr as GoalType,
|
|
1313
1311
|
jr as INCOME_ACCOUNT_TYPES,
|
|
1314
1312
|
er as IconBacking,
|
|
1315
|
-
|
|
1313
|
+
dr as InformationTooltip,
|
|
1316
1314
|
Br as InsightNotificationTypes,
|
|
1317
|
-
|
|
1315
|
+
$t as IterationItemTypes,
|
|
1318
1316
|
We as LOADING_STATUS,
|
|
1319
|
-
|
|
1317
|
+
Rr as LineChart,
|
|
1320
1318
|
wr as ListItemAction,
|
|
1321
1319
|
Cr as ListItemRow,
|
|
1322
1320
|
gs as ListItemWrapper,
|
|
1323
1321
|
Qs as Loader,
|
|
1324
1322
|
Ye as LocalizedCopyApi,
|
|
1325
1323
|
pr as MetaType,
|
|
1326
|
-
|
|
1324
|
+
Rs as MfaStatuses,
|
|
1327
1325
|
fs as MicroWidgetContainer,
|
|
1328
1326
|
bs as MiniWidgetContainer,
|
|
1329
1327
|
je as MultiSegmentDonut,
|
|
1330
|
-
|
|
1331
|
-
|
|
1328
|
+
Us as NonConnectedStatuses,
|
|
1329
|
+
ls as NotificationApi,
|
|
1332
1330
|
Ir as NotificationTypes,
|
|
1333
|
-
|
|
1331
|
+
Hr as ORDINAL_DATE_FORMAT,
|
|
1334
1332
|
qr as ORDINAL_MONTH_DAY_YEAR_FORMAT,
|
|
1335
1333
|
Vr as PAYMENT_ACCOUNT_TYPES,
|
|
1336
1334
|
ra as PaymentCategories,
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1335
|
+
Pt as PlanTypes,
|
|
1336
|
+
ks as ProcessingStatuses,
|
|
1337
|
+
Ls as PropertyType,
|
|
1338
|
+
Os as PropertyTypeName,
|
|
1341
1339
|
qe as RECURRENCE_COPY,
|
|
1342
1340
|
or as RecurrenceStatus,
|
|
1343
1341
|
nr as RecurrenceType,
|
|
@@ -1353,9 +1351,9 @@ export {
|
|
|
1353
1351
|
Vs as SelectionBox,
|
|
1354
1352
|
Yr as SingleSegmentDonut,
|
|
1355
1353
|
ha as Sizes,
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1354
|
+
Dr as StackedLineChart,
|
|
1355
|
+
kr as StatusBar,
|
|
1356
|
+
Gs as StatusName,
|
|
1359
1357
|
ga as TOUCH_TARGET,
|
|
1360
1358
|
Js as TabContentContainer,
|
|
1361
1359
|
Nr as ToggleButtonListItem,
|
|
@@ -1363,30 +1361,30 @@ export {
|
|
|
1363
1361
|
mr as TrackType,
|
|
1364
1362
|
ps as TransactionStatus,
|
|
1365
1363
|
rt as TransactionType,
|
|
1366
|
-
|
|
1364
|
+
P as UserApi,
|
|
1367
1365
|
ce as UserStore,
|
|
1368
1366
|
Vt as UserVerification,
|
|
1369
1367
|
q as WidgetApi,
|
|
1370
|
-
|
|
1368
|
+
Ds as WidgetContainer,
|
|
1371
1369
|
ya as WidgetContainerContext,
|
|
1372
1370
|
fa as WidgetContainerProvider,
|
|
1373
1371
|
es as analyticsSession,
|
|
1374
|
-
|
|
1375
|
-
|
|
1372
|
+
to as buildDynamicCopy,
|
|
1373
|
+
eo as buildPluralCopy,
|
|
1376
1374
|
na as formatCurrency,
|
|
1377
1375
|
Wr as formatDate,
|
|
1378
1376
|
ia as formatOrdinal,
|
|
1379
1377
|
ca as formatPercentage,
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1378
|
+
Za as fromTimestampToMonthYear,
|
|
1379
|
+
Ya as getCategory,
|
|
1380
|
+
za as getCategoryTotalsByParent,
|
|
1383
1381
|
Qe as getClientTheme,
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1382
|
+
la as getCurrencyCodes,
|
|
1383
|
+
Xa as getDetailedCategory,
|
|
1384
|
+
Ka as getDetailedSubCategory,
|
|
1385
|
+
so as getLocale,
|
|
1386
|
+
ja as isIncome,
|
|
1387
|
+
da as isValidNumber,
|
|
1390
1388
|
Sa as useAccountStore,
|
|
1391
1389
|
ba as useAppConfig,
|
|
1392
1390
|
wa as useBudgetsStore,
|
|
@@ -1394,27 +1392,26 @@ export {
|
|
|
1394
1392
|
Ca as useCategoryStore,
|
|
1395
1393
|
ss as useCombineEvents,
|
|
1396
1394
|
rs as useCombinePageviews,
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
Ea as useEvent,
|
|
1395
|
+
Da as useDebtStore,
|
|
1396
|
+
va as useEvent,
|
|
1400
1397
|
Aa as useFinstrongStore,
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1398
|
+
Ea as useGlobalCopyStore,
|
|
1399
|
+
Ta as useGlobalStore,
|
|
1400
|
+
Ba as useGlobalUiStore,
|
|
1401
|
+
Ia as useGoalStore,
|
|
1402
|
+
Na as useHelpStore,
|
|
1403
|
+
Fa as useHoldingStore,
|
|
1404
|
+
vr as useInsightsEnabled,
|
|
1405
|
+
Ma as useMerchantStore,
|
|
1406
|
+
Pa as useNetWorthStore,
|
|
1407
|
+
$a as useNotificationStore,
|
|
1408
|
+
Ra as usePageView,
|
|
1412
1409
|
Xe as usePrevious,
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1410
|
+
Ua as useRecurringTransactionsStore,
|
|
1411
|
+
Wa as useScreenSize,
|
|
1412
|
+
ka as useSettingsStore,
|
|
1413
|
+
La as useTransactionStore,
|
|
1414
|
+
Oa as useTrendsStore,
|
|
1415
|
+
Ga as useUserStore,
|
|
1416
|
+
Ha as useWidgetContainerProvider
|
|
1420
1417
|
};
|