@mx-cartographer/experiences 8.0.0-alpha.bb4 → 8.0.0-alpha.sms2
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-B4CDD-zq.mjs → Account-Cp30A3ad.mjs} +1 -1
- package/dist/AccountDetailsContent-C1HumFnW.mjs +683 -0
- package/dist/{AccountDetailsHeader-DRjFuyJT.mjs → AccountDetailsHeader-NMx79DGs.mjs} +17 -17
- package/dist/{AccountFields-Cl4KHoSj.mjs → AccountFields-CW6cIthP.mjs} +8 -8
- package/dist/AccountListItem-DxmAs98Z.mjs +90 -0
- package/dist/{AccountStore-HbVblv86.mjs → AccountStore-hIs-yA6W.mjs} +3 -3
- package/dist/{Accounts-CRUehOiy.mjs → Accounts-DUHkUyK4.mjs} +1 -1
- package/dist/{BudgetUtil-Jv8h9H9l.mjs → BudgetUtil-CIDAPPPT.mjs} +30 -30
- package/dist/{CashflowStore-CA190BPF.mjs → CashflowStore-naOtJcwo.mjs} +22 -15
- package/dist/{CategorySelectorDrawer-Dl006GKy.mjs → CategorySelectorDrawer-DqDAA_5I.mjs} +26 -26
- package/dist/{ConnectDrawer-DVp54lUH.mjs → ConnectDrawer-Dn1MlqLz.mjs} +60 -61
- package/dist/{ConnectionsDrawer-Dsc04-4Z.mjs → ConnectionsDrawer-CSo6AFkG.mjs} +2 -2
- package/dist/CurrencyInput-BrGvhgVK.mjs +85 -0
- package/dist/{DebtsStore-pL63fmdT.mjs → DebtsStore-hi1cqrRk.mjs} +3 -3
- package/dist/{Drawer-BF40nbsH.mjs → Drawer-Dqe5EqvA.mjs} +6 -6
- package/dist/{ExportCsvAction-QhQK4_FU.mjs → ExportCsvAction-CQ1grpwo.mjs} +3 -3
- package/dist/{FinstrongStore-BGf36b0z.mjs → FinstrongStore-dKZOZ2hM.mjs} +3 -3
- package/dist/{GoalStore-C1-w3Y1E.mjs → GoalStore-CFeAJloA.mjs} +3 -3
- package/dist/HeaderCell-DjuifqHJ.mjs +6 -0
- package/dist/{Help-DBfsTkAi.mjs → Help-i4OasOO-.mjs} +176 -158
- package/dist/{LineChart-C1PxNf7P.mjs → LineChart-bc1D9xBE.mjs} +78 -78
- package/dist/Loader-BSWSYqvn.mjs +24 -0
- package/dist/{ManageIncome-8EsStyIQ.mjs → ManageIncome-D_qVX5dN.mjs} +44 -44
- package/dist/{MiniWidgetContainer-CKzf_Ira.mjs → MiniWidgetContainer-D7MkHG15.mjs} +12 -12
- package/dist/{NetWorthStore-Bti6u-d9.mjs → NetWorthStore-8FFC1Bs0.mjs} +2 -2
- package/dist/{NotificationSettings-B74rQVYC.mjs → NotificationSettings-BsWiYD94.mjs} +67 -67
- package/dist/{OriginalBalanceAction-2Y_3U_mg.mjs → OriginalBalanceAction-62e0mU_3.mjs} +7 -7
- package/dist/{RecurringSettings-DAncu--R.mjs → RecurringSettings-RfZ8Wuhh.mjs} +3 -3
- package/dist/{RecurringTransactions-CxcSL1dY.mjs → RecurringTransactions-Bhx56aA3.mjs} +76 -76
- package/dist/{RecurringTransactionsStore-CNFxyGB6.mjs → RecurringTransactionsStore-D3EOKZ2B.mjs} +1 -1
- package/dist/{ResponsiveButton-Cn6-R7ue.mjs → ResponsiveButton-C6KH8JH4.mjs} +1 -1
- package/dist/SearchBox-B2_zLv8-.mjs +42 -0
- package/dist/{SingleSegmentDonut-7Uy6VEld.mjs → SingleSegmentDonut-PsRQPkmV.mjs} +1 -1
- package/dist/{SpendingLegend-6FqtMcBV.mjs → SpendingLegend-CZzDb-7d.mjs} +10 -10
- package/dist/TransactionDetails-Duv1X9ec.mjs +1379 -0
- package/dist/{TransactionStore-DbwAutwC.mjs → TransactionStore-DgLrYW4C.mjs} +3 -3
- package/dist/{User-BklmOUSd.mjs → User-DqNX2GAK.mjs} +107 -107
- package/dist/{ViewMoreMicroCard-DAkyNRlD.mjs → ViewMoreMicroCard-CH9E-jOx.mjs} +178 -177
- package/dist/{WidgetContainer-CDh9fjpR.mjs → WidgetContainer-B1Jzb4XA.mjs} +6 -6
- package/dist/accounts/index.es.js +45 -45
- package/dist/analytics/index.es.js +22 -22
- package/dist/budgets/index.es.js +266 -265
- package/dist/cashflow/index.es.js +155 -154
- package/dist/categories/index.es.js +1 -1
- package/dist/common/components/Loader.d.ts +2 -1
- package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
- package/dist/common/components/barchart/Bar.d.ts +25 -0
- package/dist/common/components/barchart/BarChart.d.ts +34 -0
- package/dist/common/components/barchart/BarColumn.d.ts +37 -0
- package/dist/common/components/barchart/Legend.d.ts +8 -0
- package/dist/common/components/barchart/Util.d.ts +42 -0
- package/dist/common/components/barchart/index.d.ts +1 -0
- package/dist/common/components/charts/linechart/CustomMark.d.ts +1 -1
- package/dist/common/components/index.d.ts +1 -0
- package/dist/common/index.es.js +659 -394
- package/dist/common/utils/Theme.d.ts +3 -1
- package/dist/dashboard/index.es.js +21 -21
- package/dist/debts/components/DebtsChart.d.ts +2 -1
- package/dist/debts/index.es.js +438 -438
- package/dist/{exportTransactionsToCSV-BgV_wTLT.mjs → exportTransactionsToCSV-BFpuIAXW.mjs} +1 -1
- package/dist/finstrong/index.es.js +113 -113
- package/dist/goals/index.es.js +379 -385
- package/dist/help/components/content/BottomImageContent.d.ts +1 -1
- package/dist/help/components/content/LeftImageContent.d.ts +1 -1
- package/dist/help/components/content/RightImageContent.d.ts +1 -1
- package/dist/help/components/content/TopImageContent.d.ts +1 -1
- package/dist/help/index.es.js +3 -3
- package/dist/investments/index.es.js +279 -278
- package/dist/merchants/index.es.js +16 -16
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/components/NetWorthChange.d.ts +1 -3
- package/dist/networth/index.es.js +185 -191
- package/dist/notifications/index.es.js +29 -29
- package/dist/recurringtransactions/index.es.js +82 -82
- package/dist/settings/index.es.js +254 -254
- package/dist/spending/index.es.js +43 -43
- package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +7 -0
- package/dist/transactions/index.es.js +150 -149
- package/dist/trends/index.es.js +297 -296
- package/dist/{useAccountDisplayName-CcIp09Xc.mjs → useAccountDisplayName-usSZCQ7I.mjs} +1 -1
- package/dist/{useCombineEvents-kNzLTWCp.mjs → useCombineEvents-CRwX-qWE.mjs} +2 -2
- package/dist/{useScreenSize-B5afALev.mjs → useScreenSize-B6JyS_Lj.mjs} +1 -1
- package/package.json +30 -30
- package/dist/AccountDetailsContent-adZTkM52.mjs +0 -683
- package/dist/AccountListItem-wgmlex-_.mjs +0 -90
- package/dist/CurrencyInput-D1cjbdCI.mjs +0 -85
- package/dist/HeaderCell-P8w6CmfO.mjs +0 -6
- package/dist/Loader-Ckqi9Rx6.mjs +0 -21
- package/dist/SearchBox-B7km148n.mjs +0 -39
- package/dist/TransactionDetails-Bn0qY5Hw.mjs +0 -1336
package/dist/common/index.es.js
CHANGED
|
@@ -1,77 +1,79 @@
|
|
|
1
|
-
import { H as
|
|
2
|
-
import { E as
|
|
3
|
-
import { M as
|
|
4
|
-
import { M as
|
|
5
|
-
import { C as
|
|
6
|
-
import { L as
|
|
7
|
-
import { R as
|
|
8
|
-
import { T as
|
|
9
|
-
import { S as
|
|
10
|
-
import { T as
|
|
11
|
-
import { I as
|
|
12
|
-
import { D as
|
|
13
|
-
import { C as
|
|
14
|
-
import { I as
|
|
15
|
-
import { k as
|
|
16
|
-
import {
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { D as
|
|
24
|
-
import {
|
|
25
|
-
import { D as
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import { a as
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import { L as
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import { u as
|
|
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 {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
|
|
74
|
-
|
|
1
|
+
import { H as et } from "../Help-c-zHlDbv.mjs";
|
|
2
|
+
import { E as Ze } from "../Help-c-zHlDbv.mjs";
|
|
3
|
+
import { M as ts } from "../MicroWidgetContainer-BGpNl5ZS.mjs";
|
|
4
|
+
import { M as ss } from "../MiniWidgetContainer-D7MkHG15.mjs";
|
|
5
|
+
import { C as os } from "../CurrencyInput-BrGvhgVK.mjs";
|
|
6
|
+
import { L as is } from "../Loader-BSWSYqvn.mjs";
|
|
7
|
+
import { R as cs } from "../ResponsiveButton-C6KH8JH4.mjs";
|
|
8
|
+
import { T as st } from "../TransactionStore-DgLrYW4C.mjs";
|
|
9
|
+
import { S as ls } from "../TransactionStore-DgLrYW4C.mjs";
|
|
10
|
+
import { T as hs } from "../TabContentContainer-CnMXkVqr.mjs";
|
|
11
|
+
import { I as ps } from "../IconBacking-DgT8DCeh.mjs";
|
|
12
|
+
import { D as _s, F as fs, c as ys, d as Ss, R as bs, S as ws } from "../RecurringTransactions-Bhx56aA3.mjs";
|
|
13
|
+
import { C as rt } from "../CashflowStore-naOtJcwo.mjs";
|
|
14
|
+
import { I as Cs } from "../CashflowStore-naOtJcwo.mjs";
|
|
15
|
+
import { k as As, a as vs, i as Es, j as Ts, A as Bs, h as Is, l as Ns, C as Ms, n as Ls, E as Us, M as ks, N as Rs, c as $s, P as Os, o as Ps, S as Hs } from "../ConnectDrawer-Dn1MlqLz.mjs";
|
|
16
|
+
import { jsxs as f, jsx as i } from "react/jsx-runtime";
|
|
17
|
+
import ot from "react";
|
|
18
|
+
import { css as x, keyframes as at } from "@mxenabled/cssinjs";
|
|
19
|
+
import { useTokens as C, Text as B } from "@mxenabled/mxui";
|
|
20
|
+
import { T as it } from "../User-DqNX2GAK.mjs";
|
|
21
|
+
import { C as Fs, b as Ws, L as qs, a as Ys } from "../User-DqNX2GAK.mjs";
|
|
22
|
+
import { S as Xs } from "../StatusBar-CPfSXe80.mjs";
|
|
23
|
+
import { A as Ks, D as zs, W as Vs } from "../WidgetContainer-B1Jzb4XA.mjs";
|
|
24
|
+
import { a as Js, D as tr, O as er, b as sr, f as rr } from "../Dialog-CDV0kKxj.mjs";
|
|
25
|
+
import { D as nt, a as ct } from "../SingleSegmentDonut-PsRQPkmV.mjs";
|
|
26
|
+
import { S as ar } from "../SingleSegmentDonut-PsRQPkmV.mjs";
|
|
27
|
+
import { D as nr } from "../Drawer-Dqe5EqvA.mjs";
|
|
28
|
+
import { G as R } from "../useCombineEvents-CRwX-qWE.mjs";
|
|
29
|
+
import { A as dr, a as lr, u as ur, b as hr } from "../useCombineEvents-CRwX-qWE.mjs";
|
|
30
|
+
import { F as y, A as h } from "../Fetch-DecPFeGU.mjs";
|
|
31
|
+
import { B as pr } from "../BeatApi-De2IaqH2.mjs";
|
|
32
|
+
import { C as dt } from "../CategoryStore-MUwRWH9e.mjs";
|
|
33
|
+
import { a as _r } from "../CategoryStore-MUwRWH9e.mjs";
|
|
34
|
+
import { N as lt } from "../NotificationStore-Ck2KdNmT.mjs";
|
|
35
|
+
import { a as yr } from "../NotificationStore-Ck2KdNmT.mjs";
|
|
36
|
+
import { S as br } from "../SearchBox-B2_zLv8-.mjs";
|
|
37
|
+
import { d as ut } from "../GoalStore-CFeAJloA.mjs";
|
|
38
|
+
import { C as xr, G as Cr, M as Dr, T as Ar } from "../GoalStore-CFeAJloA.mjs";
|
|
39
|
+
import { C as Er } from "../CurrencyText-Dr0EZ7bp.mjs";
|
|
40
|
+
import { E as Br } from "../EmptyState-DoxNUae-.mjs";
|
|
41
|
+
import { L as Nr } from "../ListItemAction-BNCWQAN_.mjs";
|
|
42
|
+
import { T as ht } from "../TrendsStore-_mRaFUdf.mjs";
|
|
43
|
+
import { L as Lr } from "../TrendsStore-_mRaFUdf.mjs";
|
|
44
|
+
import { A as kr, B as Rr, I as $r, N as Or, T as Pr, a as Hr } from "../ToggleListItem-ciFTiqRS.mjs";
|
|
45
|
+
import { I as Fr, P as Wr, S as qr } from "../Account-Cp30A3ad.mjs";
|
|
46
|
+
import { b as E } from "../Category-Ccoew_sA.mjs";
|
|
47
|
+
import { a as Qr, c as Xr, C as jr, P as Kr } from "../Category-Ccoew_sA.mjs";
|
|
48
|
+
import { C as Vr, f as Zr, b as Jr, a as to, g as eo, i as so } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
49
|
+
import { R as gt } from "../RecurringTransactionsStore-D3EOKZ2B.mjs";
|
|
50
|
+
import { S as oo, T as ao } from "../RecurringTransactionsStore-D3EOKZ2B.mjs";
|
|
51
|
+
import { G as no, C as co, D as lo, W as uo, d as ho, a as go, i as po, v as mo, m as _o, x as fo, y as yo, g as So, z as bo, u as wo, f as xo, b as Co, l as Do, A as Ao, t as vo, n as Eo, c as To, r as Bo, o as Io, B as No, j as Mo, s as Lo, h as Uo, w as ko, p as Ro, q as $o } from "../hooks-C41HAxM5.mjs";
|
|
52
|
+
import { u as Po } from "../useAccountDisplayName-usSZCQ7I.mjs";
|
|
53
|
+
import { u as Go } from "../useInsightsEnabled-CNjP5cfR.mjs";
|
|
54
|
+
import { u as Wo } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
55
|
+
import { makeAutoObservable as _, runInAction as S, reaction as pt, autorun as mt } from "mobx";
|
|
56
|
+
import { a as _t } from "../AccountStore-hIs-yA6W.mjs";
|
|
57
|
+
import ft from "posthog-js";
|
|
58
|
+
import { B as yt } from "../BeatStore-D_NYuBSz.mjs";
|
|
59
|
+
import { endOfMonth as Z } from "date-fns/endOfMonth";
|
|
60
|
+
import { startOfMonth as J } from "date-fns/startOfMonth";
|
|
61
|
+
import { startOfToday as $ } from "date-fns/startOfToday";
|
|
62
|
+
import { f as St, a as bt, b as O } from "../BudgetUtil-CIDAPPPT.mjs";
|
|
63
|
+
import { g as Yo, e as Qo, c as Xo, d as jo, i as Ko } from "../BudgetUtil-CIDAPPPT.mjs";
|
|
64
|
+
import { a as wt } from "../DebtsStore-hi1cqrRk.mjs";
|
|
65
|
+
import { F as xt } from "../FinstrongStore-dKZOZ2hM.mjs";
|
|
66
|
+
import { A as Ct, m as Dt, a as At, b as vt } from "../InvestmentUtil-jOyOgzIB.mjs";
|
|
67
|
+
import { M as Et } from "../MerchantStore-WvZ4gnQe.mjs";
|
|
68
|
+
import { N as Tt } from "../NetWorthStore-8FFC1Bs0.mjs";
|
|
69
|
+
import { a as Bt } from "../SettingsStore-BASMQSIp.mjs";
|
|
70
|
+
import { addMonths as It } from "date-fns/addMonths";
|
|
71
|
+
import { getMonth as T } from "date-fns/getMonth";
|
|
72
|
+
import { i as Vo } from "../DateUtil-CDPZw_-m.mjs";
|
|
73
|
+
import { b as Jo, a as ta, g as ea } from "../Localization-2MODESHW.mjs";
|
|
74
|
+
import { darken as P, lighten as H, alpha as Nt } 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 Fe = [
|
|
75
77
|
{ id: 0, copy: "frequency_unknown" },
|
|
76
78
|
{ id: 1, copy: "frequency_every_week" },
|
|
77
79
|
{ id: 2, copy: "frequency_every_other_week" },
|
|
@@ -80,65 +82,77 @@ const ge = [
|
|
|
80
82
|
{ id: 5, copy: "frequency_every_quarter" },
|
|
81
83
|
{ id: 6, copy: "frequency_every_other_quarter" },
|
|
82
84
|
{ id: 7, copy: "frequency_every_year" }
|
|
83
|
-
],
|
|
85
|
+
], We = {
|
|
84
86
|
ERROR: "ERROR",
|
|
85
87
|
LOADING: "LOADING",
|
|
86
88
|
SUCCESS: "SUCCESS"
|
|
87
89
|
};
|
|
88
|
-
var
|
|
89
|
-
const
|
|
90
|
+
var Lt = /* @__PURE__ */ ((s) => (s[s.SpendingPlan = 0] = "SpendingPlan", s[s.Budgets = 1] = "Budgets", s))(Lt || {}), Ut = /* @__PURE__ */ ((s) => (s[s.RecurringExpense = 0] = "RecurringExpense", s[s.PlannedExpense = 1] = "PlannedExpense", s[s.Other = 2] = "Other", s[s.Income = 3] = "Income", s))(Ut || {});
|
|
91
|
+
const kt = [
|
|
90
92
|
"fontFamily",
|
|
93
|
+
"H1",
|
|
91
94
|
"h1",
|
|
95
|
+
"H2",
|
|
92
96
|
"h2",
|
|
97
|
+
"H3",
|
|
93
98
|
"h3",
|
|
99
|
+
"Body",
|
|
94
100
|
"body1",
|
|
101
|
+
"Small",
|
|
95
102
|
"body2",
|
|
103
|
+
"Button",
|
|
96
104
|
"button",
|
|
105
|
+
"XSmall",
|
|
97
106
|
"caption",
|
|
107
|
+
"Paragraph",
|
|
98
108
|
"subtitle1",
|
|
109
|
+
"ParagraphSmall",
|
|
99
110
|
"subtitle2",
|
|
111
|
+
"Tiny",
|
|
100
112
|
"tiny"
|
|
101
|
-
],
|
|
113
|
+
], Rt = [
|
|
102
114
|
{ key: "primary", light: "primary_color", dark: "primary_color_dark" },
|
|
103
115
|
{ key: "secondary", light: "neutral_color", dark: "neutral_color_dark" },
|
|
104
116
|
{ key: "error", light: "error_color", dark: "error_color_dark" },
|
|
105
117
|
{ key: "warning", light: "warning_color", dark: "warning_color_dark" },
|
|
106
118
|
{ key: "info", light: "info_color", dark: "info_color_dark" },
|
|
107
119
|
{ key: "success", light: "success_color", dark: "success_color_dark" }
|
|
108
|
-
],
|
|
109
|
-
const r = s.palette.mode === "dark", o = (e?.master?.style?.font_name || t?.system_font) ?? s.typography.fontFamily,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
120
|
+
], qe = (s, t, e) => {
|
|
121
|
+
const r = s.palette.mode === "dark", o = (e?.master?.style?.font_name || t?.system_font) ?? s.typography.fontFamily, a = (n, m) => n ? {
|
|
122
|
+
lighter: H(n, 0.5),
|
|
123
|
+
light: H(n, 0.25),
|
|
124
|
+
main: n,
|
|
125
|
+
dark: P(n, 0.25),
|
|
126
|
+
darker: P(n, 0.5)
|
|
127
|
+
} : m, c = Object.fromEntries(
|
|
128
|
+
Rt.map(({ key: n, light: m, dark: b }) => [
|
|
129
|
+
n,
|
|
130
|
+
a(
|
|
131
|
+
t?.[r ? b : m],
|
|
132
|
+
s.palette[n]
|
|
119
133
|
)
|
|
120
134
|
])
|
|
121
|
-
),
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
135
|
+
), d = Object.fromEntries(
|
|
136
|
+
kt.map((n) => [
|
|
137
|
+
n,
|
|
138
|
+
n === "fontFamily" ? o : { fontFamily: o }
|
|
125
139
|
])
|
|
126
|
-
),
|
|
140
|
+
), l = {
|
|
127
141
|
MuiTabs: {
|
|
128
142
|
styleOverrides: {
|
|
129
|
-
indicator: { backgroundColor:
|
|
143
|
+
indicator: { backgroundColor: c.primary.light }
|
|
130
144
|
}
|
|
131
145
|
},
|
|
132
146
|
MuiPickersCalendarHeader: {
|
|
133
147
|
styleOverrides: {
|
|
134
148
|
switchViewButton: {
|
|
135
|
-
color:
|
|
136
|
-
"&:hover": { backgroundColor:
|
|
149
|
+
color: c.primary.lighter,
|
|
150
|
+
"&:hover": { backgroundColor: Nt(c.primary.light, 0.1) }
|
|
137
151
|
}
|
|
138
152
|
}
|
|
139
153
|
}
|
|
140
|
-
}, u = t?.button_corner_radius,
|
|
141
|
-
...
|
|
154
|
+
}, u = t?.button_corner_radius, g = t?.card_corner_radius, p = {
|
|
155
|
+
...l,
|
|
142
156
|
...u && {
|
|
143
157
|
MuiButton: {
|
|
144
158
|
styleOverrides: {
|
|
@@ -160,21 +174,21 @@ const mt = [
|
|
|
160
174
|
}
|
|
161
175
|
}
|
|
162
176
|
},
|
|
163
|
-
...
|
|
177
|
+
...g && {
|
|
164
178
|
MuiCard: {
|
|
165
|
-
styleOverrides: { root: { borderRadius: `${
|
|
179
|
+
styleOverrides: { root: { borderRadius: `${g}px` } }
|
|
166
180
|
},
|
|
167
181
|
MuiPaper: {
|
|
168
|
-
styleOverrides: { root: { borderRadius: `${
|
|
182
|
+
styleOverrides: { root: { borderRadius: `${g}px` } }
|
|
169
183
|
}
|
|
170
184
|
}
|
|
171
185
|
};
|
|
172
|
-
return { typography:
|
|
186
|
+
return { typography: d, palette: c, components: p };
|
|
173
187
|
};
|
|
174
|
-
class
|
|
188
|
+
class G {
|
|
175
189
|
fetchInstance;
|
|
176
190
|
constructor(t) {
|
|
177
|
-
this.fetchInstance = new
|
|
191
|
+
this.fetchInstance = new y(t, "", {
|
|
178
192
|
Accept: "application/json",
|
|
179
193
|
"Content-Type": "application/json"
|
|
180
194
|
});
|
|
@@ -188,90 +202,340 @@ class T {
|
|
|
188
202
|
}
|
|
189
203
|
};
|
|
190
204
|
}
|
|
191
|
-
class
|
|
205
|
+
class Ye {
|
|
192
206
|
fetchInstance;
|
|
193
207
|
constructor(t, e, r) {
|
|
194
|
-
this.fetchInstance = new
|
|
208
|
+
this.fetchInstance = new y(t, e, void 0, r);
|
|
195
209
|
}
|
|
196
|
-
getLocalizedCopy = async (t) => this.fetchInstance.post(
|
|
197
|
-
getLocalizedContent = async (t) => this.fetchInstance.post(`${
|
|
210
|
+
getLocalizedCopy = async (t) => this.fetchInstance.post(h.LOCALIZED_COPY, t).then((e) => e);
|
|
211
|
+
getLocalizedContent = async (t) => this.fetchInstance.post(`${h.LOCALIZED_CONTENT}/${t}`).then((e) => e);
|
|
198
212
|
}
|
|
199
|
-
class
|
|
213
|
+
class Qe {
|
|
200
214
|
fetchInstance;
|
|
201
215
|
constructor(t, e, r) {
|
|
202
|
-
this.fetchInstance = new
|
|
216
|
+
this.fetchInstance = new y(t, e, void 0, r);
|
|
203
217
|
}
|
|
204
|
-
addScheduledPayment = async (t) => this.fetchInstance.post(
|
|
218
|
+
addScheduledPayment = async (t) => this.fetchInstance.post(h.SCHEDULED_PAYMENTS, {
|
|
205
219
|
...t,
|
|
206
220
|
is_recurring: "true",
|
|
207
|
-
transaction_type:
|
|
221
|
+
transaction_type: it.DEBIT
|
|
208
222
|
}).then((e) => e.scheduled_payment);
|
|
209
|
-
getScheduledPayments = async () => this.fetchInstance.get(
|
|
210
|
-
updateScheduledPayment = async (t) => this.fetchInstance.put(`${
|
|
211
|
-
deleteScheduledPayment = async (t) => this.fetchInstance.delete(`${
|
|
223
|
+
getScheduledPayments = async () => this.fetchInstance.get(h.SCHEDULED_PAYMENTS).then((t) => t.scheduled_payments);
|
|
224
|
+
updateScheduledPayment = async (t) => this.fetchInstance.put(`${h.SCHEDULED_PAYMENTS}/${t.guid}`, t).then((e) => e.scheduled_payment);
|
|
225
|
+
deleteScheduledPayment = async (t) => this.fetchInstance.delete(`${h.SCHEDULED_PAYMENTS}/${t}`).then((e) => e);
|
|
212
226
|
}
|
|
213
|
-
class
|
|
227
|
+
class F {
|
|
214
228
|
fetchInstance;
|
|
215
229
|
constructor(t, e, r) {
|
|
216
|
-
this.fetchInstance = new
|
|
230
|
+
this.fetchInstance = new y(t, e, void 0, r);
|
|
217
231
|
}
|
|
218
|
-
getUserFeatures = async () => this.fetchInstance.get(
|
|
219
|
-
updateUser = async (t) => this.fetchInstance.put(
|
|
220
|
-
updateUserProfile = async (t) => this.fetchInstance.put(`${
|
|
232
|
+
getUserFeatures = async () => this.fetchInstance.get(h.USER_FEATURES).then((t) => t.user_features).catch((t) => t);
|
|
233
|
+
updateUser = async (t) => this.fetchInstance.put(h.USER, t).then((e) => e.user);
|
|
234
|
+
updateUserProfile = async (t) => this.fetchInstance.put(`${h.USER_PROFILES}/${t.guid}`, t).then((e) => e.user_profile);
|
|
221
235
|
}
|
|
222
|
-
class
|
|
236
|
+
class W {
|
|
223
237
|
fetchInstance;
|
|
224
238
|
constructor(t, e) {
|
|
225
|
-
this.fetchInstance = new
|
|
239
|
+
this.fetchInstance = new y(t, e);
|
|
226
240
|
}
|
|
227
|
-
requestWidgetUrl = async (t) => this.fetchInstance.post(
|
|
241
|
+
requestWidgetUrl = async (t) => this.fetchInstance.post(h.WIDGET_URLS, t).then((e) => e.widget_url);
|
|
228
242
|
}
|
|
229
|
-
var
|
|
230
|
-
const
|
|
243
|
+
var $t = /* @__PURE__ */ ((s) => (s[s.UNKNOWN = 0] = "UNKNOWN", s[s.CORRECT = 1] = "CORRECT", s[s.INCORRECT = 2] = "INCORRECT", s))($t || {}), Ot = /* @__PURE__ */ ((s) => (s.Missed = "Missed", s.Paid = "Paid", s.Upcoming = "Upcoming expense", s.Income = "Income", s))(Ot || {}), Pt = /* @__PURE__ */ ((s) => (s[s.Unknown = 0] = "Unknown", s[s.Subscription = 1] = "Subscription", s[s.Bill = 2] = "Bill", s))(Pt || {}), Ht = /* @__PURE__ */ ((s) => (s.Desktop = "Desktop", s.Mobile = "Mobile", s))(Ht || {});
|
|
244
|
+
const Gt = ({ color: s, labelAverage: t, labelMain: e }) => {
|
|
245
|
+
const r = C(), o = Ft(r, s);
|
|
246
|
+
return /* @__PURE__ */ f("div", { className: `mx-cmn-bar-chart-legend ${o}`, children: [
|
|
247
|
+
/* @__PURE__ */ i("div", { "aria-label": e, className: "mx-cmn-color-square", role: "img" }),
|
|
248
|
+
/* @__PURE__ */ i(B, { variant: "XSmall", children: e }),
|
|
249
|
+
/* @__PURE__ */ f("div", { "aria-label": t, className: "mx-cmn-triple-dot", role: "img", children: [
|
|
250
|
+
/* @__PURE__ */ i("div", { className: "mx-cmn-dot" }),
|
|
251
|
+
/* @__PURE__ */ i("div", { className: "mx-cmn-dot" }),
|
|
252
|
+
/* @__PURE__ */ i("div", { className: "mx-cmn-dot" })
|
|
253
|
+
] }),
|
|
254
|
+
/* @__PURE__ */ i(B, { variant: "XSmall", children: t })
|
|
255
|
+
] });
|
|
256
|
+
}, Ft = (s, t) => x({
|
|
257
|
+
alignItems: "center",
|
|
258
|
+
display: "flex",
|
|
259
|
+
gap: s.Spacing.XSmall,
|
|
260
|
+
justifyContent: "flex-end",
|
|
261
|
+
marginRight: s.Spacing.XLarge,
|
|
262
|
+
paddingBottom: s.Spacing.XSmall,
|
|
263
|
+
width: "100%",
|
|
264
|
+
"& .mx-cmn-color-square": {
|
|
265
|
+
backgroundColor: t,
|
|
266
|
+
height: 6,
|
|
267
|
+
width: 6
|
|
268
|
+
},
|
|
269
|
+
"& .mx-cmn-triple-dot": {
|
|
270
|
+
display: "flex",
|
|
271
|
+
gap: 1
|
|
272
|
+
},
|
|
273
|
+
"& .mx-cmn-dot": {
|
|
274
|
+
backgroundColor: s.Color.Neutral500,
|
|
275
|
+
height: 3,
|
|
276
|
+
width: 3,
|
|
277
|
+
borderRadius: 1.5
|
|
278
|
+
},
|
|
279
|
+
"& > .kyper-text": {
|
|
280
|
+
marginRight: s.Spacing.XSmall
|
|
281
|
+
}
|
|
282
|
+
}), q = ({
|
|
283
|
+
ariaLabel: s,
|
|
284
|
+
color: t,
|
|
285
|
+
height: e,
|
|
286
|
+
index: r,
|
|
287
|
+
label: o,
|
|
288
|
+
onClick: a,
|
|
289
|
+
selectedIndex: c,
|
|
290
|
+
value: d
|
|
291
|
+
}) => {
|
|
292
|
+
const l = C(), u = Wt(l, t, e), g = (m) => {
|
|
293
|
+
a && (m.key === " " || m.key === "Enter") && a(r);
|
|
294
|
+
}, p = c === void 0 || c === r ? "primary" : "secondary", n = () => /* @__PURE__ */ i(
|
|
295
|
+
B,
|
|
296
|
+
{
|
|
297
|
+
"aria-hidden": !0,
|
|
298
|
+
bold: c === r,
|
|
299
|
+
className: "mx-cmn-bar-text",
|
|
300
|
+
color: p,
|
|
301
|
+
component: "div",
|
|
302
|
+
variant: "Small",
|
|
303
|
+
children: o
|
|
304
|
+
}
|
|
305
|
+
);
|
|
306
|
+
return /* @__PURE__ */ f("div", { className: `mx-cmn-bar-container ${u} ${d < 0 ? "mx-cmn-negative" : ""}`, children: [
|
|
307
|
+
d >= 0 && /* @__PURE__ */ i(n, {}),
|
|
308
|
+
/* @__PURE__ */ i(
|
|
309
|
+
"div",
|
|
310
|
+
{
|
|
311
|
+
"aria-label": s,
|
|
312
|
+
className: `mx-cmn-bar ${a ? "mx-cmn-clickable" : ""} ${d < 0 ? "mx-cmn-bar-negative" : ""}`,
|
|
313
|
+
onClick: a ? () => a?.(r) : void 0,
|
|
314
|
+
onKeyDown: g,
|
|
315
|
+
role: s ? "button" : void 0,
|
|
316
|
+
tabIndex: s ? 0 : void 0
|
|
317
|
+
}
|
|
318
|
+
),
|
|
319
|
+
d < 0 && /* @__PURE__ */ i(n, {})
|
|
320
|
+
] });
|
|
321
|
+
}, Wt = (s, t, e) => {
|
|
322
|
+
const r = `expandBar-${Math.round(e)}`, o = at(r, { from: { height: 0 }, to: { height: e } });
|
|
323
|
+
return x({
|
|
324
|
+
display: "flex",
|
|
325
|
+
flexDirection: "column",
|
|
326
|
+
justifyContent: "flex-end",
|
|
327
|
+
height: "100%",
|
|
328
|
+
"&.mx-cmn-negative": {
|
|
329
|
+
justifyContent: "flex-start"
|
|
330
|
+
},
|
|
331
|
+
"& .mx-cmn-bar": {
|
|
332
|
+
animationDelay: ".5s",
|
|
333
|
+
animationDuration: "1s",
|
|
334
|
+
animationFillMode: "forwards",
|
|
335
|
+
animationName: o,
|
|
336
|
+
animationTimingFunction: s.Easing.Default,
|
|
337
|
+
backgroundColor: t,
|
|
338
|
+
borderRadius: `${s.BorderRadius.Medium}px ${s.BorderRadius.Medium}px 0 0`,
|
|
339
|
+
maxHeight: e
|
|
340
|
+
},
|
|
341
|
+
"& .mx-cmn-bar-negative": {
|
|
342
|
+
borderRadius: `0 0 ${s.BorderRadius.Medium}px ${s.BorderRadius.Medium}px`,
|
|
343
|
+
marginTop: -s.Spacing.XTiny
|
|
344
|
+
},
|
|
345
|
+
"& .mx-cmn-bar-text": {
|
|
346
|
+
display: "flex",
|
|
347
|
+
justifyContent: "center",
|
|
348
|
+
marginBottom: s.Spacing.Tiny,
|
|
349
|
+
marginTop: s.Spacing.Tiny,
|
|
350
|
+
whiteSpace: "nowrap",
|
|
351
|
+
width: "100%"
|
|
352
|
+
}
|
|
353
|
+
});
|
|
354
|
+
}, Y = ({
|
|
355
|
+
ariaLabel: s,
|
|
356
|
+
averageLineHeight: t,
|
|
357
|
+
bottomHeight: e,
|
|
358
|
+
color: r,
|
|
359
|
+
index: o = -1,
|
|
360
|
+
onClick: a,
|
|
361
|
+
range: c,
|
|
362
|
+
selectedIndex: d,
|
|
363
|
+
topHeight: l,
|
|
364
|
+
value: u,
|
|
365
|
+
valueLabel: g = "",
|
|
366
|
+
width: p,
|
|
367
|
+
xAxisLabel: n = ""
|
|
368
|
+
}) => {
|
|
369
|
+
const m = C(), b = qt(m, p), D = u / c * l, A = Math.abs(u) / c * e, v = d === void 0 || d === o ? "primary" : "secondary";
|
|
370
|
+
return /* @__PURE__ */ f("div", { className: `mx-cmn-barchart-bar-column ${b}`, children: [
|
|
371
|
+
/* @__PURE__ */ i("div", { style: { height: l }, children: u >= 0 && /* @__PURE__ */ i(
|
|
372
|
+
q,
|
|
373
|
+
{
|
|
374
|
+
ariaLabel: s,
|
|
375
|
+
color: r,
|
|
376
|
+
height: D,
|
|
377
|
+
index: o,
|
|
378
|
+
label: g,
|
|
379
|
+
onClick: a,
|
|
380
|
+
selectedIndex: d,
|
|
381
|
+
value: u
|
|
382
|
+
}
|
|
383
|
+
) }),
|
|
384
|
+
/* @__PURE__ */ i("div", { className: "mx-cmn-zero-line" }),
|
|
385
|
+
t !== 0 && /* @__PURE__ */ i("div", { className: "mx-cmn-chart-average", style: { bottom: t } }),
|
|
386
|
+
/* @__PURE__ */ i("div", { style: { height: e }, children: u < 0 && /* @__PURE__ */ i(
|
|
387
|
+
q,
|
|
388
|
+
{
|
|
389
|
+
ariaLabel: s,
|
|
390
|
+
color: r,
|
|
391
|
+
height: A,
|
|
392
|
+
index: o,
|
|
393
|
+
label: g,
|
|
394
|
+
onClick: a,
|
|
395
|
+
value: u
|
|
396
|
+
}
|
|
397
|
+
) }),
|
|
398
|
+
/* @__PURE__ */ i(
|
|
399
|
+
"div",
|
|
400
|
+
{
|
|
401
|
+
className: `mx-cmn-bar-label ${a ? "mx-cmn-clickable" : ""}`,
|
|
402
|
+
onClick: a ? () => a(o) : void 0,
|
|
403
|
+
children: /* @__PURE__ */ i(B, { bold: d === o, color: v, variant: "Small", children: n })
|
|
404
|
+
}
|
|
405
|
+
)
|
|
406
|
+
] });
|
|
407
|
+
}, qt = (s, t) => x({
|
|
408
|
+
display: "flex",
|
|
409
|
+
flexDirection: "column",
|
|
410
|
+
flexGrow: t === void 0 ? 1 : 0,
|
|
411
|
+
width: t,
|
|
412
|
+
"& .mx-cmn-chart-average": {
|
|
413
|
+
borderTop: `${s.Spacing.XTiny}px dotted ${s.Color.Neutral500}`,
|
|
414
|
+
position: "relative",
|
|
415
|
+
marginRight: s.Spacing.XTiny
|
|
416
|
+
},
|
|
417
|
+
"& .mx-cmn-zero-line": {
|
|
418
|
+
borderBottom: "1px solid text.primary",
|
|
419
|
+
width: "100%"
|
|
420
|
+
},
|
|
421
|
+
"& .mx-cmn-bar-label": {
|
|
422
|
+
minHeight: s.Spacing.Medium,
|
|
423
|
+
maxHeight: s.Spacing.Medium,
|
|
424
|
+
marginBottom: s.Spacing.XSmall,
|
|
425
|
+
marginTop: s.Spacing.XSmall,
|
|
426
|
+
textAlign: "center",
|
|
427
|
+
width: "100%"
|
|
428
|
+
},
|
|
429
|
+
"& .mx-cmn-clickable": {
|
|
430
|
+
cursor: "pointer"
|
|
431
|
+
}
|
|
432
|
+
}), Yt = (s, t) => s + t, Qt = (s, t) => Math.abs(t) > s ? Math.abs(t) : s, Xt = (s, t) => [...s, t.value], Q = (s, t, e) => {
|
|
433
|
+
const r = s && t ? e / 2 : e;
|
|
434
|
+
return s ? r : 0;
|
|
435
|
+
}, jt = (s, t, e, r) => s / (t < 0 ? -e : t) * r || 0, Xe = ({
|
|
436
|
+
average: s,
|
|
437
|
+
barWidth: t = "8%",
|
|
438
|
+
color: e,
|
|
439
|
+
data: r,
|
|
440
|
+
height: o,
|
|
441
|
+
legendLabelAverage: a,
|
|
442
|
+
legendLabelMain: c,
|
|
443
|
+
onBarClick: d,
|
|
444
|
+
selectedIndex: l,
|
|
445
|
+
valueFormatter: u = (g) => `${g}`
|
|
446
|
+
}) => {
|
|
447
|
+
const g = C(), p = Kt(g), n = r.reduce(Xt, []), m = s !== void 0 ? s : n.reduce(Yt, 0) / n.length, b = Math.max(...n), D = Math.min(...n), A = n.reduce(Qt, 0), v = b >= 0, L = D < 0, I = Q(v, L, o), N = Q(L, v, o), U = jt(m, b, D, I || N), tt = (w) => l === void 0 || w === l ? e : `${e}80`, k = () => /* @__PURE__ */ i(
|
|
448
|
+
Y,
|
|
449
|
+
{
|
|
450
|
+
averageLineHeight: U,
|
|
451
|
+
bottomHeight: N,
|
|
452
|
+
color: "",
|
|
453
|
+
range: A,
|
|
454
|
+
topHeight: I,
|
|
455
|
+
value: 0,
|
|
456
|
+
width: void 0
|
|
457
|
+
}
|
|
458
|
+
);
|
|
459
|
+
return /* @__PURE__ */ f("div", { className: `mx-cmn-bar-chart ${p}`, children: [
|
|
460
|
+
/* @__PURE__ */ f("div", { className: "mx-cmn-chart-container", children: [
|
|
461
|
+
/* @__PURE__ */ i(k, {}),
|
|
462
|
+
r.map((w, M) => /* @__PURE__ */ f(ot.Fragment, { children: [
|
|
463
|
+
/* @__PURE__ */ i(
|
|
464
|
+
Y,
|
|
465
|
+
{
|
|
466
|
+
ariaLabel: w.ariaLabel,
|
|
467
|
+
averageLineHeight: U,
|
|
468
|
+
bottomHeight: N,
|
|
469
|
+
color: tt(M),
|
|
470
|
+
index: M,
|
|
471
|
+
onClick: d,
|
|
472
|
+
range: A,
|
|
473
|
+
selectedIndex: l,
|
|
474
|
+
topHeight: I,
|
|
475
|
+
value: w.value,
|
|
476
|
+
valueLabel: u(w.value),
|
|
477
|
+
width: t,
|
|
478
|
+
xAxisLabel: w.label
|
|
479
|
+
}
|
|
480
|
+
),
|
|
481
|
+
/* @__PURE__ */ i(k, {})
|
|
482
|
+
] }, `column-${M}`))
|
|
483
|
+
] }),
|
|
484
|
+
/* @__PURE__ */ i(Gt, { color: e, labelAverage: a, labelMain: c })
|
|
485
|
+
] });
|
|
486
|
+
}, Kt = (s) => x({
|
|
487
|
+
"& .mx-cmn-chart-container": {
|
|
488
|
+
alignItems: "flex-end",
|
|
489
|
+
display: "flex",
|
|
490
|
+
justifyContent: "space-evenly",
|
|
491
|
+
marginTop: s.Spacing.Large,
|
|
492
|
+
marginBottom: s.Spacing.Medium
|
|
493
|
+
}
|
|
494
|
+
}), je = ({
|
|
231
495
|
hasGap: s = !1,
|
|
232
496
|
segments: t,
|
|
233
|
-
size: e =
|
|
234
|
-
strokeWidth: r =
|
|
497
|
+
size: e = nt,
|
|
498
|
+
strokeWidth: r = ct,
|
|
235
499
|
children: o
|
|
236
500
|
}) => {
|
|
237
|
-
const
|
|
238
|
-
let
|
|
239
|
-
return /* @__PURE__ */
|
|
240
|
-
/* @__PURE__ */
|
|
241
|
-
/* @__PURE__ */
|
|
501
|
+
const a = C(), c = zt(a, e), d = (e - r) / 2, l = e / 2;
|
|
502
|
+
let u = -90 - (s ? 1 : 0), g = 0;
|
|
503
|
+
return /* @__PURE__ */ f("div", { className: `mx-cmn-multi-segment-donut ${c}`, children: [
|
|
504
|
+
/* @__PURE__ */ f("svg", { height: e, width: e, children: [
|
|
505
|
+
/* @__PURE__ */ i(
|
|
242
506
|
"circle",
|
|
243
507
|
{
|
|
244
|
-
cx:
|
|
245
|
-
cy:
|
|
508
|
+
cx: l,
|
|
509
|
+
cy: l,
|
|
246
510
|
fill: "none",
|
|
247
|
-
r:
|
|
248
|
-
stroke:
|
|
511
|
+
r: d,
|
|
512
|
+
stroke: a.Color.Neutral300,
|
|
249
513
|
strokeWidth: r
|
|
250
514
|
}
|
|
251
515
|
),
|
|
252
|
-
t.map((
|
|
516
|
+
t.map((p, n) => (u += 360 * g + (s ? 1 : 0), g = (p.percent - (s ? 0.3 : 0)) / 100, /* @__PURE__ */ i(
|
|
253
517
|
"circle",
|
|
254
518
|
{
|
|
255
|
-
cx:
|
|
256
|
-
cy:
|
|
519
|
+
cx: l,
|
|
520
|
+
cy: l,
|
|
257
521
|
fill: "none",
|
|
258
|
-
r:
|
|
259
|
-
stroke:
|
|
260
|
-
strokeDasharray: 2 * Math.PI *
|
|
261
|
-
strokeDashoffset: 2 * Math.PI *
|
|
522
|
+
r: d,
|
|
523
|
+
stroke: p.color,
|
|
524
|
+
strokeDasharray: 2 * Math.PI * d,
|
|
525
|
+
strokeDashoffset: 2 * Math.PI * d * (1 - g),
|
|
262
526
|
strokeWidth: r,
|
|
263
|
-
transform: `rotate(${
|
|
527
|
+
transform: `rotate(${u}, ${l}, ${l})`
|
|
264
528
|
},
|
|
265
|
-
|
|
529
|
+
n
|
|
266
530
|
)))
|
|
267
531
|
] }),
|
|
268
|
-
/* @__PURE__ */
|
|
532
|
+
/* @__PURE__ */ i("div", { className: "mx-cmn-multi-segment-donut-children", children: o })
|
|
269
533
|
] });
|
|
270
|
-
},
|
|
271
|
-
height:
|
|
272
|
-
marginTop:
|
|
534
|
+
}, zt = (s, t) => x({
|
|
535
|
+
height: t,
|
|
536
|
+
marginTop: `-${s.Spacing.XSmall}px`,
|
|
273
537
|
position: "relative",
|
|
274
|
-
width:
|
|
538
|
+
width: t,
|
|
275
539
|
"& .mx-cmn-multi-segment-donut-children": {
|
|
276
540
|
left: "50%",
|
|
277
541
|
position: "absolute",
|
|
@@ -280,28 +544,28 @@ const ye = ({
|
|
|
280
544
|
transform: "translate(-50%, -50%)"
|
|
281
545
|
}
|
|
282
546
|
});
|
|
283
|
-
class
|
|
547
|
+
class Vt {
|
|
284
548
|
globalStore;
|
|
285
|
-
api = new
|
|
549
|
+
api = new R("/", "");
|
|
286
550
|
copy = {};
|
|
287
551
|
featureNamespace = "experiences";
|
|
288
552
|
isInitialized = !1;
|
|
289
553
|
constructor(t) {
|
|
290
|
-
this.globalStore = t, this.api = new
|
|
554
|
+
this.globalStore = t, this.api = new R(
|
|
291
555
|
t.endpoint,
|
|
292
556
|
t.sessionToken,
|
|
293
557
|
t.onError
|
|
294
|
-
),
|
|
558
|
+
), _(this);
|
|
295
559
|
}
|
|
296
560
|
loadCopy = async () => {
|
|
297
|
-
await this.getCopy(this.featureNamespace),
|
|
561
|
+
await this.getCopy(this.featureNamespace), S(() => {
|
|
298
562
|
this.isInitialized = !0;
|
|
299
563
|
});
|
|
300
564
|
};
|
|
301
565
|
getCopy = async (t, e = "") => {
|
|
302
566
|
try {
|
|
303
567
|
const r = await this.api.getGlobalCopy(t, e);
|
|
304
|
-
|
|
568
|
+
S(() => {
|
|
305
569
|
this.copy = r[t];
|
|
306
570
|
});
|
|
307
571
|
} catch (r) {
|
|
@@ -309,7 +573,7 @@ class At {
|
|
|
309
573
|
}
|
|
310
574
|
};
|
|
311
575
|
}
|
|
312
|
-
class
|
|
576
|
+
class Zt {
|
|
313
577
|
globalStore;
|
|
314
578
|
survey = null;
|
|
315
579
|
currentQuestionIndex = 0;
|
|
@@ -317,7 +581,7 @@ class Et {
|
|
|
317
581
|
response = null;
|
|
318
582
|
responses = {};
|
|
319
583
|
constructor(t) {
|
|
320
|
-
this.globalStore = t,
|
|
584
|
+
this.globalStore = t, _(this);
|
|
321
585
|
}
|
|
322
586
|
get isLastQuestion() {
|
|
323
587
|
return this.currentQuestionIndex === this.surveyQuestions.length - 1;
|
|
@@ -339,8 +603,8 @@ class Et {
|
|
|
339
603
|
return this.survey ? this.survey.questions : [];
|
|
340
604
|
}
|
|
341
605
|
loadSurvey = (t = !1) => {
|
|
342
|
-
|
|
343
|
-
|
|
606
|
+
ft.getActiveMatchingSurveys((e) => {
|
|
607
|
+
S(() => {
|
|
344
608
|
if (e.length > 0) {
|
|
345
609
|
const r = e.find((o) => o.id === this.surveyId);
|
|
346
610
|
r && (this.survey = r, this.currentQuestionIndex = 0, this.question = r.questions[0], this.response = null, this.responses = {});
|
|
@@ -358,12 +622,12 @@ class Et {
|
|
|
358
622
|
this.response = t, this.question && (this.responses[`$survey_response_${this.question.id}`] = t);
|
|
359
623
|
};
|
|
360
624
|
}
|
|
361
|
-
class
|
|
625
|
+
class X {
|
|
362
626
|
fetchInstance;
|
|
363
627
|
constructor(t, e, r) {
|
|
364
|
-
this.fetchInstance = new
|
|
628
|
+
this.fetchInstance = new y(t, e, void 0, r);
|
|
365
629
|
}
|
|
366
|
-
addBudget = async (t, e, r = null) => this.fetchInstance.post(
|
|
630
|
+
addBudget = async (t, e, r = null) => this.fetchInstance.post(h.BUDGETS, {
|
|
367
631
|
amount: e,
|
|
368
632
|
category_guid: t.guid,
|
|
369
633
|
category_name: t.name,
|
|
@@ -371,36 +635,36 @@ class B {
|
|
|
371
635
|
}).then((o) => o.budget).catch((o) => {
|
|
372
636
|
throw o;
|
|
373
637
|
});
|
|
374
|
-
deleteBudget = async (t) => this.fetchInstance.delete(`${
|
|
638
|
+
deleteBudget = async (t) => this.fetchInstance.delete(`${h.BUDGETS}/${t}`).then((e) => e).catch((e) => {
|
|
375
639
|
throw e;
|
|
376
640
|
});
|
|
377
|
-
getBudgets = async () => this.fetchInstance.get(
|
|
378
|
-
updateBudget = async (t) => this.fetchInstance.put(`${
|
|
641
|
+
getBudgets = async () => this.fetchInstance.get(h.BUDGETS).then((t) => t.budgets).catch((t) => t);
|
|
642
|
+
updateBudget = async (t) => this.fetchInstance.put(`${h.BUDGETS}/${t.guid}`, t).then((e) => e.budget).catch((e) => {
|
|
379
643
|
throw e;
|
|
380
644
|
});
|
|
381
645
|
}
|
|
382
|
-
class
|
|
383
|
-
api = new
|
|
646
|
+
class Jt {
|
|
647
|
+
api = new X("/", "");
|
|
384
648
|
globalStore;
|
|
385
649
|
alert = "";
|
|
386
|
-
dateRange = { start:
|
|
650
|
+
dateRange = { start: J($()), end: Z($()) };
|
|
387
651
|
budgets = [];
|
|
388
652
|
selectedBudget;
|
|
389
653
|
selectedSubBudget;
|
|
390
654
|
isDataLoaded = !1;
|
|
391
655
|
theme = {};
|
|
392
656
|
constructor(t) {
|
|
393
|
-
this.globalStore = t, this.api = new
|
|
657
|
+
this.globalStore = t, this.api = new X(t.endpoint, t.sessionToken, t.onError), _(this);
|
|
394
658
|
}
|
|
395
659
|
loadBudgetData = async () => {
|
|
396
|
-
this.globalStore.recurringTransactionsStore.isDataLoaded || await this.globalStore.recurringTransactionsStore.loadRepeatingTransactionData(), await this.loadBudgets(),
|
|
660
|
+
this.globalStore.recurringTransactionsStore.isDataLoaded || await this.globalStore.recurringTransactionsStore.loadRepeatingTransactionData(), await this.loadBudgets(), pt(
|
|
397
661
|
() => this.detailedBudgets,
|
|
398
662
|
(t) => {
|
|
399
663
|
if (t) {
|
|
400
664
|
const e = this.selectedBudget;
|
|
401
|
-
e && (this.selectedBudget =
|
|
665
|
+
e && (this.selectedBudget = St(t, e.guid));
|
|
402
666
|
const r = this.selectedSubBudget;
|
|
403
|
-
r && r.parent_guid && (this.selectedSubBudget =
|
|
667
|
+
r && r.parent_guid && (this.selectedSubBudget = bt(
|
|
404
668
|
t,
|
|
405
669
|
r.guid,
|
|
406
670
|
r.parent_guid
|
|
@@ -410,9 +674,9 @@ class xt {
|
|
|
410
674
|
);
|
|
411
675
|
};
|
|
412
676
|
get detailedBudgets() {
|
|
413
|
-
return
|
|
677
|
+
return O(
|
|
414
678
|
this.budgets.filter(
|
|
415
|
-
(t) => t.category_guid !==
|
|
679
|
+
(t) => t.category_guid !== E.INCOME && t.category_guid !== E.TRANSFER && t.category_guid !== E.INVESTMENTS
|
|
416
680
|
),
|
|
417
681
|
this.globalStore.categoryStore.detailedCategories,
|
|
418
682
|
this.globalStore.copyStore.copy.budgets,
|
|
@@ -421,13 +685,13 @@ class xt {
|
|
|
421
685
|
}
|
|
422
686
|
// TODO: Replace this with income from recurring transactions. Income budgets are deprecated.
|
|
423
687
|
get incomeBudget() {
|
|
424
|
-
return
|
|
688
|
+
return O(
|
|
425
689
|
this.budgets.filter((r) => !r.parent_guid),
|
|
426
690
|
this.globalStore.categoryStore.detailedCategories,
|
|
427
691
|
this.globalStore.copyStore.copy.budgets,
|
|
428
692
|
this.theme
|
|
429
693
|
).reduce(
|
|
430
|
-
(r, o) => o.category_guid !==
|
|
694
|
+
(r, o) => o.category_guid !== E.INCOME ? r : !r || o.percentage > r.percentage ? o : r,
|
|
431
695
|
void 0
|
|
432
696
|
)?.amount;
|
|
433
697
|
}
|
|
@@ -442,7 +706,7 @@ class xt {
|
|
|
442
706
|
addBudget = async (t, e, r = null) => {
|
|
443
707
|
try {
|
|
444
708
|
const o = await this.api.addBudget(t, e, r);
|
|
445
|
-
|
|
709
|
+
S(() => {
|
|
446
710
|
this.budgets.push(o);
|
|
447
711
|
});
|
|
448
712
|
} catch (o) {
|
|
@@ -451,7 +715,7 @@ class xt {
|
|
|
451
715
|
};
|
|
452
716
|
deleteBudget = async (t) => {
|
|
453
717
|
try {
|
|
454
|
-
await this.api.deleteBudget(t),
|
|
718
|
+
await this.api.deleteBudget(t), S(() => {
|
|
455
719
|
const e = this.budgets.findIndex((r) => r.guid === t);
|
|
456
720
|
e >= 0 && this.budgets.splice(e, 1);
|
|
457
721
|
});
|
|
@@ -482,7 +746,7 @@ class xt {
|
|
|
482
746
|
recalculateBudgets = async (t) => {
|
|
483
747
|
try {
|
|
484
748
|
for (const r of t) {
|
|
485
|
-
const o = this.budgets.find((
|
|
749
|
+
const o = this.budgets.find((a) => a.category_guid === r.guid);
|
|
486
750
|
o ? await this.api.updateBudget({
|
|
487
751
|
...o,
|
|
488
752
|
amount: r.totalAverageAmount
|
|
@@ -501,7 +765,7 @@ class xt {
|
|
|
501
765
|
updateBudget = async (t) => {
|
|
502
766
|
try {
|
|
503
767
|
const e = await this.api.updateBudget(t);
|
|
504
|
-
|
|
768
|
+
S(() => {
|
|
505
769
|
const r = this.budgets.findIndex((o) => o.guid === t.guid);
|
|
506
770
|
r >= 0 && (this.budgets[r] = e);
|
|
507
771
|
});
|
|
@@ -510,38 +774,38 @@ class xt {
|
|
|
510
774
|
}
|
|
511
775
|
};
|
|
512
776
|
}
|
|
513
|
-
class
|
|
777
|
+
class j {
|
|
514
778
|
fetchInstance;
|
|
515
779
|
constructor(t, e, r) {
|
|
516
|
-
this.fetchInstance = new
|
|
780
|
+
this.fetchInstance = new y(t, e, void 0, r);
|
|
517
781
|
}
|
|
518
|
-
createSupportTicket = async (t) => this.fetchInstance.post(
|
|
782
|
+
createSupportTicket = async (t) => this.fetchInstance.post(h.SUPPORT_TICKETS, t).then((e) => e);
|
|
519
783
|
}
|
|
520
|
-
const
|
|
784
|
+
const te = (s, t) => s.guid === "general" || s.guid === "insights" ? !0 : s.flags ? s.flags.every((e) => t[e]) : !1, ee = (s, t) => {
|
|
521
785
|
const e = [];
|
|
522
|
-
for (const r of
|
|
786
|
+
for (const r of et) {
|
|
523
787
|
const o = t[r.guid];
|
|
524
788
|
if (!o) continue;
|
|
525
|
-
const
|
|
789
|
+
const a = {
|
|
526
790
|
...r,
|
|
527
791
|
title: o.label,
|
|
528
|
-
topics: r.topics.map(({ topicKey:
|
|
529
|
-
topicKey:
|
|
530
|
-
label: o.topics[
|
|
792
|
+
topics: r.topics.map(({ topicKey: c }, d) => ({
|
|
793
|
+
topicKey: c,
|
|
794
|
+
label: o.topics[d]
|
|
531
795
|
}))
|
|
532
796
|
};
|
|
533
|
-
|
|
797
|
+
te(a, s) && e.push(a);
|
|
534
798
|
}
|
|
535
799
|
return e;
|
|
536
800
|
};
|
|
537
|
-
class
|
|
801
|
+
class se {
|
|
538
802
|
alert = { message: "", severity: void 0 };
|
|
539
|
-
api = new
|
|
803
|
+
api = new j("/", "");
|
|
540
804
|
appConfig;
|
|
541
805
|
globalStore;
|
|
542
806
|
isLoading = !1;
|
|
543
807
|
constructor(t) {
|
|
544
|
-
this.globalStore = t, this.api = new
|
|
808
|
+
this.globalStore = t, this.api = new j(t.endpoint, t.sessionToken, t.onError), _(this);
|
|
545
809
|
}
|
|
546
810
|
createSupportTicket = async (t) => {
|
|
547
811
|
try {
|
|
@@ -560,7 +824,7 @@ class vt {
|
|
|
560
824
|
const { client_communication_profile: t, client_profile: e } = this.globalStore.appDataStore.appData, {
|
|
561
825
|
help: { category_list: r }
|
|
562
826
|
} = this.globalStore.copyStore.copy;
|
|
563
|
-
return
|
|
827
|
+
return ee(
|
|
564
828
|
{
|
|
565
829
|
...t,
|
|
566
830
|
...e,
|
|
@@ -570,29 +834,29 @@ class vt {
|
|
|
570
834
|
);
|
|
571
835
|
}
|
|
572
836
|
}
|
|
573
|
-
class
|
|
837
|
+
class K {
|
|
574
838
|
fetchInstance;
|
|
575
839
|
constructor(t, e, r) {
|
|
576
|
-
this.fetchInstance = new
|
|
840
|
+
this.fetchInstance = new y(t, e, void 0, r);
|
|
577
841
|
}
|
|
578
|
-
getHoldings = async () => this.fetchInstance.get(
|
|
579
|
-
updateHoldings = async (t) => this.fetchInstance.put(`${
|
|
842
|
+
getHoldings = async () => this.fetchInstance.get(h.HOLDINGS).then((t) => t.holdings);
|
|
843
|
+
updateHoldings = async (t) => this.fetchInstance.put(`${h.HOLDINGS}/${t.guid}`, t).then((e) => e.holding);
|
|
580
844
|
}
|
|
581
|
-
class
|
|
582
|
-
analysisType =
|
|
583
|
-
api = new
|
|
845
|
+
class re {
|
|
846
|
+
analysisType = Ct.Stocks;
|
|
847
|
+
api = new K("/", "");
|
|
584
848
|
holdings = [];
|
|
585
849
|
holdingsLoaded = !1;
|
|
586
850
|
globalStore;
|
|
587
851
|
showConnectionsWidget = !1;
|
|
588
852
|
constructor(t) {
|
|
589
|
-
this.globalStore = t, this.api = new
|
|
853
|
+
this.globalStore = t, this.api = new K(t.endpoint, t.sessionToken, t.onError), _(this);
|
|
590
854
|
}
|
|
591
855
|
get analysisChartData() {
|
|
592
|
-
return
|
|
856
|
+
return Dt(At(this.visibleHoldings), this.analysisType);
|
|
593
857
|
}
|
|
594
858
|
get analysisDetails() {
|
|
595
|
-
return
|
|
859
|
+
return vt(this.visibleHoldings)[this.analysisType] || {};
|
|
596
860
|
}
|
|
597
861
|
get visibleHoldings() {
|
|
598
862
|
return this.holdings.filter(
|
|
@@ -622,7 +886,7 @@ class Bt {
|
|
|
622
886
|
const e = await this.api.updateHoldings(t), r = this.holdings.findIndex(({ guid: o }) => o === t.guid);
|
|
623
887
|
if (r >= 0) {
|
|
624
888
|
const o = [...this.holdings];
|
|
625
|
-
o[r] = e,
|
|
889
|
+
o[r] = e, S(() => {
|
|
626
890
|
this.holdings = o, this.holdingsLoaded = !0;
|
|
627
891
|
});
|
|
628
892
|
}
|
|
@@ -631,7 +895,7 @@ class Bt {
|
|
|
631
895
|
}
|
|
632
896
|
};
|
|
633
897
|
}
|
|
634
|
-
const
|
|
898
|
+
const z = {
|
|
635
899
|
clientConfig: {},
|
|
636
900
|
clientStyleProfile: {},
|
|
637
901
|
config: {
|
|
@@ -735,22 +999,22 @@ const U = {
|
|
|
735
999
|
postHogPublicKey: "phc_1fVYJICC69TpW4wagp9o2XqQ8E7X98cAmcR5psSpfkE",
|
|
736
1000
|
userFeatures: []
|
|
737
1001
|
};
|
|
738
|
-
class
|
|
1002
|
+
class V {
|
|
739
1003
|
fetchInstance;
|
|
740
1004
|
constructor(t, e, r) {
|
|
741
|
-
this.fetchInstance = new
|
|
1005
|
+
this.fetchInstance = new y(t, e, void 0, r);
|
|
742
1006
|
}
|
|
743
|
-
getAppData = async () => this.fetchInstance.get(
|
|
1007
|
+
getAppData = async () => this.fetchInstance.get(h.APP_DATA).then((t) => t);
|
|
744
1008
|
}
|
|
745
|
-
class
|
|
1009
|
+
class oe {
|
|
746
1010
|
globalStore;
|
|
747
|
-
api = new
|
|
748
|
-
bannerApi = new
|
|
1011
|
+
api = new V("/", "");
|
|
1012
|
+
bannerApi = new G("/");
|
|
749
1013
|
appData = {};
|
|
750
1014
|
isAppDataLoaded = !1;
|
|
751
1015
|
banner = {};
|
|
752
1016
|
constructor(t) {
|
|
753
|
-
this.globalStore = t, this.api = new
|
|
1017
|
+
this.globalStore = t, this.api = new V(t.endpoint, t.sessionToken, t.onError), _(this);
|
|
754
1018
|
}
|
|
755
1019
|
get appConfig() {
|
|
756
1020
|
return this.globalStore.appConfig;
|
|
@@ -771,7 +1035,7 @@ class kt {
|
|
|
771
1035
|
return this.appData.user_profile;
|
|
772
1036
|
}
|
|
773
1037
|
setAppData = (t) => {
|
|
774
|
-
this.appData = t, this.bannerApi = new
|
|
1038
|
+
this.appData = t, this.bannerApi = new G(t.address?.bullseye || "/"), this.isAppDataLoaded = !0;
|
|
775
1039
|
};
|
|
776
1040
|
loadAppData = async () => {
|
|
777
1041
|
try {
|
|
@@ -784,7 +1048,7 @@ class kt {
|
|
|
784
1048
|
loadBanner = async () => {
|
|
785
1049
|
try {
|
|
786
1050
|
const t = this.user?.guid ?? null, e = t ? await this.bannerApi.getBanner(t) : {};
|
|
787
|
-
|
|
1051
|
+
S(() => {
|
|
788
1052
|
this.banner = e;
|
|
789
1053
|
});
|
|
790
1054
|
} catch (t) {
|
|
@@ -795,27 +1059,27 @@ class kt {
|
|
|
795
1059
|
setUserCommunicationProfile = (t) => this.appData.user_communication_profile = t;
|
|
796
1060
|
setUserProfile = (t) => this.appData.user_profile = t;
|
|
797
1061
|
}
|
|
798
|
-
class
|
|
1062
|
+
class ae {
|
|
799
1063
|
globalStore;
|
|
800
|
-
widgetApi = new
|
|
1064
|
+
widgetApi = new W("/", "");
|
|
801
1065
|
constructor(t) {
|
|
802
|
-
this.globalStore = t, this.widgetApi = new
|
|
1066
|
+
this.globalStore = t, this.widgetApi = new W(t.endpoint, t.sessionToken), _(this);
|
|
803
1067
|
}
|
|
804
1068
|
loadWidget = async ({ widget: t = "connect_widget", mode: e = "light", ...r }) => await this.widgetApi.requestWidgetUrl({
|
|
805
1069
|
widget_url: { widget_type: t, color_scheme: e, ...r }
|
|
806
1070
|
});
|
|
807
1071
|
}
|
|
808
|
-
class
|
|
1072
|
+
class ie {
|
|
809
1073
|
globalStore;
|
|
810
1074
|
selectedAccounts = [];
|
|
811
1075
|
selectedAccountGuids = this.selectedAccounts.map((t) => t.guid);
|
|
812
1076
|
displayedDate = /* @__PURE__ */ new Date();
|
|
813
1077
|
displayedDateRange = {
|
|
814
|
-
start:
|
|
815
|
-
end:
|
|
1078
|
+
start: J(this.displayedDate),
|
|
1079
|
+
end: Z(this.displayedDate)
|
|
816
1080
|
};
|
|
817
1081
|
constructor(t) {
|
|
818
|
-
|
|
1082
|
+
_(this), this.globalStore = t;
|
|
819
1083
|
}
|
|
820
1084
|
get isCopyLoaded() {
|
|
821
1085
|
return this.globalStore.copyStore.isInitialized;
|
|
@@ -838,8 +1102,8 @@ class Ut {
|
|
|
838
1102
|
};
|
|
839
1103
|
// Sets an array of selected account guids for the AccountFilter component
|
|
840
1104
|
setSelectedAccountGuids = async (t) => {
|
|
841
|
-
const e = new Set(this.selectedAccountGuids), r = new Set(t), o = [...r].filter((
|
|
842
|
-
o.length > 0 && this.globalStore.accountStore.updateAccountFiltering(o, !1),
|
|
1105
|
+
const e = new Set(this.selectedAccountGuids), r = new Set(t), o = [...r].filter((c) => !e.has(c)), a = [...e].filter((c) => !r.has(c));
|
|
1106
|
+
o.length > 0 && this.globalStore.accountStore.updateAccountFiltering(o, !1), a.length > 0 && this.globalStore.accountStore.updateAccountFiltering(a, !0), this.selectedAccountGuids = t;
|
|
843
1107
|
};
|
|
844
1108
|
setDisplayedDate = (t, e) => {
|
|
845
1109
|
this.displayedDate = e, this.displayedDateRange = {
|
|
@@ -848,21 +1112,21 @@ class Ut {
|
|
|
848
1112
|
};
|
|
849
1113
|
};
|
|
850
1114
|
get shouldDisableNextDate() {
|
|
851
|
-
const t =
|
|
1115
|
+
const t = T(this.displayedDate), e = T(It(/* @__PURE__ */ new Date(), 1));
|
|
852
1116
|
return t === e;
|
|
853
1117
|
}
|
|
854
1118
|
get shouldDisablePrevDate() {
|
|
855
|
-
const t =
|
|
1119
|
+
const t = T(this.displayedDate), e = T(/* @__PURE__ */ new Date());
|
|
856
1120
|
return t === e;
|
|
857
1121
|
}
|
|
858
1122
|
}
|
|
859
|
-
class
|
|
1123
|
+
class ne {
|
|
860
1124
|
globalStore;
|
|
861
|
-
api = new
|
|
1125
|
+
api = new F("/", "");
|
|
862
1126
|
userFeatures = [];
|
|
863
1127
|
userFeaturesLoaded = !1;
|
|
864
1128
|
constructor(t) {
|
|
865
|
-
this.globalStore = t, this.api = new
|
|
1129
|
+
this.globalStore = t, this.api = new F(t.endpoint, t.sessionToken, t.onError), _(this);
|
|
866
1130
|
}
|
|
867
1131
|
get userProfile() {
|
|
868
1132
|
return this.globalStore.appDataStore.userProfile;
|
|
@@ -898,9 +1162,9 @@ class Lt {
|
|
|
898
1162
|
}
|
|
899
1163
|
};
|
|
900
1164
|
}
|
|
901
|
-
class
|
|
1165
|
+
class Ke {
|
|
902
1166
|
// Global properties
|
|
903
|
-
appConfig =
|
|
1167
|
+
appConfig = z;
|
|
904
1168
|
endpoint = "/";
|
|
905
1169
|
sessionToken = "";
|
|
906
1170
|
onError;
|
|
@@ -930,11 +1194,11 @@ class Se {
|
|
|
930
1194
|
userStore;
|
|
931
1195
|
// UI Stores
|
|
932
1196
|
globalUiStore;
|
|
933
|
-
constructor(t =
|
|
934
|
-
this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.onError = r, this.onStoreUpdate = o, this.accountStore = new
|
|
935
|
-
const { transactions:
|
|
1197
|
+
constructor(t = z, e = "/", r, o) {
|
|
1198
|
+
this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.onError = r, this.onStoreUpdate = o, this.accountStore = new _t(this), this.appDataStore = new oe(this), this.analyticsStore = new Zt(this), this.beatStore = new yt(this), this.budgetsStore = new Jt(this), this.cashflowStore = new rt(this), this.categoryStore = new dt(this), this.connectStore = new ae(this), this.copyStore = new Vt(this), this.debtsStore = new wt(this), this.finstrongStore = new xt(this), this.goalStore = new ut(this), this.helpStore = new se(this), this.holdingStore = new re(this), this.merchantStore = new Et(this), this.netWorthStore = new Tt(this), this.notificationStore = new lt(this), this.recurringTransactionsStore = new gt(this), this.settingsStore = new Bt(this), this.transactionStore = new st(this), this.trendsStore = new ht(this), this.userStore = new ne(this), this.globalUiStore = new ie(this), _(this), mt(() => {
|
|
1199
|
+
const { transactions: a } = this.transactionStore;
|
|
936
1200
|
this.emitUpdate({
|
|
937
|
-
transactions:
|
|
1201
|
+
transactions: a
|
|
938
1202
|
});
|
|
939
1203
|
});
|
|
940
1204
|
}
|
|
@@ -958,165 +1222,166 @@ class Se {
|
|
|
958
1222
|
appData: e,
|
|
959
1223
|
associatedBeats: r,
|
|
960
1224
|
categories: o,
|
|
961
|
-
institutions:
|
|
962
|
-
transactionRules:
|
|
963
|
-
transactions:
|
|
964
|
-
userFeatures:
|
|
1225
|
+
institutions: a,
|
|
1226
|
+
transactionRules: c,
|
|
1227
|
+
transactions: d,
|
|
1228
|
+
userFeatures: l
|
|
965
1229
|
} = {}) => {
|
|
966
|
-
(!e || !
|
|
1230
|
+
(!e || !l) && await this.loadConfigData(), e && this.appDataStore.setAppData(e), l && this.userStore.setUserFeatures(l), t && (await this.accountStore.loadMembers(), a && this.accountStore.setInstitutions(a), this.accountStore.setAccounts(t)), r && this.transactionStore.setAssociatedBeats(r), o && this.categoryStore.setCategories(o), d && this.transactionStore.setTransactions(d), c && this.transactionStore.setTransactionRules(c);
|
|
967
1231
|
};
|
|
968
1232
|
}
|
|
969
1233
|
export {
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1234
|
+
Ks as ANALYTICS_EVENTS,
|
|
1235
|
+
As as AccountFilter,
|
|
1236
|
+
vs as AccountIcon,
|
|
1237
|
+
Es as AccountIconVariants,
|
|
1238
|
+
kr as AccountNotificationTypes,
|
|
1239
|
+
Ts as AccountSubType,
|
|
1240
|
+
Bs as AccountType,
|
|
1241
|
+
Is as AccountTypeName,
|
|
1242
|
+
dr as AnalyticsApi,
|
|
1243
|
+
h as ApiEndpoints,
|
|
1244
|
+
G as BannerApi,
|
|
1245
|
+
Xe as BarChart,
|
|
1246
|
+
pr as BeatApi,
|
|
1247
|
+
Rr as BudgetNotificationTypes,
|
|
1248
|
+
Fs as Calendar,
|
|
1249
|
+
Ws as CalendarSelectionTypes,
|
|
1250
|
+
_r as CategoryApi,
|
|
1251
|
+
Qr as CategoryColors,
|
|
1252
|
+
Xr as CategoryGuidToName,
|
|
1253
|
+
E as CategoryGuids,
|
|
1254
|
+
jr as CategoryIcon,
|
|
1255
|
+
xr as ConnectCard,
|
|
1256
|
+
Ns as ConnectDrawer,
|
|
1257
|
+
Ms as ConnectionStatus,
|
|
1258
|
+
Ls as ConnectionStatusEnums,
|
|
1259
|
+
Vr as CurrencyCodes,
|
|
1260
|
+
os as CurrencyInput,
|
|
1261
|
+
Er as CurrencyText,
|
|
1262
|
+
Js as DATE_FORMATS_INTL,
|
|
1263
|
+
nt as DEFAULT_DONUT_SIZE,
|
|
1264
|
+
ct as DEFAULT_STROKE_WIDTH,
|
|
1265
|
+
_s as DataRow,
|
|
1266
|
+
zs as DateRangeSelector,
|
|
1267
|
+
tr as Dialog,
|
|
1268
|
+
nr as Drawer,
|
|
1269
|
+
Br as EmptyState,
|
|
1270
|
+
Ze as ErrorBoundary,
|
|
1271
|
+
Us as ErrorStatuses,
|
|
1272
|
+
Ot as ExpenseStatus,
|
|
1273
|
+
y as Fetch,
|
|
1274
|
+
fs as Frequency,
|
|
1275
|
+
R as GlobalCopyApi,
|
|
1276
|
+
Vt as GlobalCopyStore,
|
|
1277
|
+
no as GlobalDataContext,
|
|
1278
|
+
co as GlobalDataProvider,
|
|
1279
|
+
Ke as GlobalStore,
|
|
1280
|
+
Cr as GoalType,
|
|
1281
|
+
Fr as INCOME_ACCOUNT_TYPES,
|
|
1282
|
+
ps as IconBacking,
|
|
1283
|
+
Cs as InformationTooltip,
|
|
1284
|
+
$r as InsightNotificationTypes,
|
|
1285
|
+
Ut as IterationItemTypes,
|
|
1286
|
+
We as LOADING_STATUS,
|
|
1287
|
+
Nr as ListItemAction,
|
|
1288
|
+
Lr as ListItemRow,
|
|
1289
|
+
qs as ListItemWrapper,
|
|
1290
|
+
is as Loader,
|
|
1291
|
+
Ye as LocalizedCopyApi,
|
|
1292
|
+
Dr as MetaType,
|
|
1293
|
+
ks as MfaStatuses,
|
|
1294
|
+
ts as MicroWidgetContainer,
|
|
1295
|
+
ss as MiniWidgetContainer,
|
|
1296
|
+
je as MultiSegmentDonut,
|
|
1297
|
+
Rs as NonConnectedStatuses,
|
|
1298
|
+
yr as NotificationApi,
|
|
1299
|
+
Or as NotificationTypes,
|
|
1300
|
+
er as ORDINAL_DATE_FORMAT,
|
|
1301
|
+
sr as ORDINAL_MONTH_DAY_YEAR_FORMAT,
|
|
1302
|
+
Wr as PAYMENT_ACCOUNT_TYPES,
|
|
1303
|
+
Kr as PaymentCategories,
|
|
1304
|
+
Lt as PlanTypes,
|
|
1305
|
+
$s as ProcessingStatuses,
|
|
1306
|
+
Os as PropertyType,
|
|
1307
|
+
Ps as PropertyTypeName,
|
|
1308
|
+
Fe as RECURRENCE_COPY,
|
|
1309
|
+
ys as RecurrenceStatus,
|
|
1310
|
+
Ss as RecurrenceType,
|
|
1311
|
+
Mt as RecurrenceTypes,
|
|
1312
|
+
bs as RepeatingType,
|
|
1313
|
+
cs as ResponsiveButton,
|
|
1314
|
+
qr as SPENDING_ACCOUNT_TYPES,
|
|
1315
|
+
Pt as ScheduledPaymentTypes,
|
|
1316
|
+
Qe as ScheduledPaymentsApi,
|
|
1317
|
+
Ht as ScreenSize,
|
|
1318
|
+
br as SearchBox,
|
|
1319
|
+
ws as Select,
|
|
1320
|
+
ls as SelectionBox,
|
|
1321
|
+
ar as SingleSegmentDonut,
|
|
1322
|
+
oo as Sizes,
|
|
1323
|
+
Xs as StatusBar,
|
|
1324
|
+
Hs as StatusName,
|
|
1325
|
+
ao as TOUCH_TARGET,
|
|
1326
|
+
hs as TabContentContainer,
|
|
1327
|
+
Pr as ToggleButtonListItem,
|
|
1328
|
+
Hr as ToggleListItem,
|
|
1329
|
+
Ar as TrackType,
|
|
1330
|
+
Ys as TransactionStatus,
|
|
1331
|
+
it as TransactionType,
|
|
1332
|
+
F as UserApi,
|
|
1333
|
+
ne as UserStore,
|
|
1334
|
+
$t as UserVerification,
|
|
1335
|
+
W as WidgetApi,
|
|
1336
|
+
Vs as WidgetContainer,
|
|
1337
|
+
lo as WidgetContainerContext,
|
|
1338
|
+
uo as WidgetContainerProvider,
|
|
1339
|
+
lr as analyticsSession,
|
|
1340
|
+
Jo as buildDynamicCopy,
|
|
1341
|
+
ta as buildPluralCopy,
|
|
1342
|
+
Zr as formatCurrency,
|
|
1343
|
+
rr as formatDate,
|
|
1344
|
+
Jr as formatOrdinal,
|
|
1345
|
+
to as formatPercentage,
|
|
1346
|
+
Vo as fromTimestampToMonthYear,
|
|
1347
|
+
Yo as getCategory,
|
|
1348
|
+
Qo as getCategoryTotalsByParent,
|
|
1349
|
+
qe as getClientTheme,
|
|
1350
|
+
eo as getCurrencyCodes,
|
|
1351
|
+
Xo as getDetailedCategory,
|
|
1352
|
+
jo as getDetailedSubCategory,
|
|
1353
|
+
ea as getLocale,
|
|
1354
|
+
Ko as isIncome,
|
|
1355
|
+
so as isValidNumber,
|
|
1356
|
+
Po as useAccountDisplayName,
|
|
1357
|
+
ho as useAccountStore,
|
|
1358
|
+
go as useAppConfig,
|
|
1359
|
+
po as useBudgetsStore,
|
|
1360
|
+
mo as useCashflowStore,
|
|
1361
|
+
_o as useCategoryStore,
|
|
1362
|
+
ur as useCombineEvents,
|
|
1363
|
+
hr as useCombinePageviews,
|
|
1364
|
+
fo as useDebtStore,
|
|
1365
|
+
yo as useError,
|
|
1366
|
+
So as useEvent,
|
|
1367
|
+
bo as useFinstrongStore,
|
|
1368
|
+
wo as useGlobalCopyStore,
|
|
1369
|
+
xo as useGlobalStore,
|
|
1370
|
+
Co as useGlobalUiStore,
|
|
1371
|
+
Do as useGoalStore,
|
|
1372
|
+
Ao as useHelpStore,
|
|
1373
|
+
vo as useHoldingStore,
|
|
1374
|
+
Go as useInsightsEnabled,
|
|
1375
|
+
Eo as useLoad,
|
|
1376
|
+
To as useMerchantStore,
|
|
1377
|
+
Bo as useNetWorthStore,
|
|
1378
|
+
Io as useNotificationStore,
|
|
1379
|
+
No as usePageView,
|
|
1380
|
+
Mo as useRecurringTransactionsStore,
|
|
1381
|
+
Wo as useScreenSize,
|
|
1382
|
+
Lo as useSettingsStore,
|
|
1383
|
+
Uo as useTransactionStore,
|
|
1384
|
+
ko as useTrendsStore,
|
|
1385
|
+
Ro as useUserStore,
|
|
1386
|
+
$o as useWidgetContainerProvider
|
|
1122
1387
|
};
|