@mx-cartographer/experiences 8.0.0-alpha.sms2 → 9.0.0-alpha.mega1
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 +217 -0
- package/dist/{Account-Cp30A3ad.mjs → Account-BIKn4XEZ.mjs} +1 -1
- package/dist/Account-CMjOp7S2.mjs +118 -0
- package/dist/AccountApi-DgZ8ILj1.mjs +19 -0
- package/dist/AccountDetailsHeader-BOV91g1o.mjs +95 -0
- package/dist/AccountDisplayName-CO7z3v99.mjs +11 -0
- package/dist/{AccountFields-CW6cIthP.mjs → AccountFields-BRRH37K1.mjs} +10 -11
- package/dist/{AccountListItem-DxmAs98Z.mjs → AccountListItem-Ds5C0mOT.mjs} +4 -4
- package/dist/{AccountStore-hIs-yA6W.mjs → AccountStore-BFKvXJSD.mjs} +79 -69
- package/dist/{Accounts-DUHkUyK4.mjs → Accounts-CuE8aSZN.mjs} +1 -1
- package/dist/{BudgetUtil-CIDAPPPT.mjs → BudgetUtil-CDSOZXem.mjs} +4 -4
- package/dist/CategorySelectorDrawer-C4aZYP4N.mjs +418 -0
- package/dist/CategoryStore-DEqAnHbi.mjs +186 -0
- package/dist/{CategoryUtil-DfVKKkRf.mjs → CategoryUtil-CFHBvaV4.mjs} +1 -1
- package/dist/{ConnectionsDrawer-CSo6AFkG.mjs → ConnectionsDrawer-BExzgE16.mjs} +5 -5
- package/dist/{CurrencyInput-BrGvhgVK.mjs → CurrencyInput-DDQ4DBrE.mjs} +1 -1
- package/dist/{CurrencyText-Dr0EZ7bp.mjs → CurrencyText-C-85TnUF.mjs} +3 -3
- package/dist/{DateUtil-CDPZw_-m.mjs → DateUtil-CVsMhbZU.mjs} +3 -3
- package/dist/{DebtsStore-hi1cqrRk.mjs → DebtsStore-Dv_T7Dts.mjs} +12 -12
- package/dist/{Dialog-CDV0kKxj.mjs → Dialog-CWymUiuO.mjs} +32 -35
- package/dist/Drawer-Bet2ZPJo.mjs +176 -0
- package/dist/{ExportCsvAction-CQ1grpwo.mjs → ExportCsvAction-oG_Mn66T.mjs} +3 -3
- package/dist/{FinstrongStore-dKZOZ2hM.mjs → FinstrongStore-BjFkMTIL.mjs} +6 -6
- package/dist/GlobalAccountFilter-BpWlPAl5.mjs +316 -0
- package/dist/{GoalStore-CFeAJloA.mjs → GoalStore-Dbjgft2i.mjs} +155 -137
- package/dist/{Help-i4OasOO-.mjs → Help-BW_ar-4B.mjs} +2 -2
- package/dist/LineChart-DHj-Bufi.mjs +580 -0
- package/dist/{ListItemAction-BNCWQAN_.mjs → ListItemAction-Cbr3417C.mjs} +10 -10
- package/dist/{ManageIncome-D_qVX5dN.mjs → ManageIncome-DIIyqDTp.mjs} +85 -85
- package/dist/{MicroWidgetContainer-BGpNl5ZS.mjs → MicroWidgetContainer-DSyYwRCU.mjs} +2 -2
- package/dist/{MiniWidgetContainer-D7MkHG15.mjs → MiniWidgetContainer-DKn7ndO6.mjs} +1 -1
- package/dist/NetWorthStore-B6ziBtaH.mjs +168 -0
- package/dist/NotificationSettings-e789PcRb.mjs +676 -0
- package/dist/{OriginalBalanceAction-62e0mU_3.mjs → OriginalBalanceAction-DFoG79Ba.mjs} +3 -3
- package/dist/{RecurringSettings-RfZ8Wuhh.mjs → RecurringSettings-BpCUcE8w.mjs} +4 -4
- package/dist/{RecurringTransactionsStore-D3EOKZ2B.mjs → RecurringTransactionsStore-D_--5PWH.mjs} +1 -1
- package/dist/{RecurringTransactions-Bhx56aA3.mjs → RepeatingTransaction-C2txVA9O.mjs} +3 -3
- package/dist/{SettingsStore-BASMQSIp.mjs → SettingsStore-CInvh-rQ.mjs} +1 -1
- package/dist/SpendingData-B7NuTQ9s.mjs +53 -0
- package/dist/SpendingLegend-BxefXiQd.mjs +193 -0
- package/dist/TransactionDetails-CPwv9xtZ.mjs +1374 -0
- package/dist/{TransactionStore-DgLrYW4C.mjs → TransactionStore-D2aMUClq.mjs} +128 -111
- package/dist/TrendsStore-BdsYfCc7.mjs +183 -0
- package/dist/{User-DqNX2GAK.mjs → User-CulNdZUr.mjs} +21 -20
- package/dist/ViewMoreMicroCard-CDWR16_h.mjs +1147 -0
- package/dist/WidgetContainer-mzejMmz2.mjs +555 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +1 -0
- package/dist/accounts/index.es.js +933 -232
- package/dist/accounts/stores/AccountStore.d.ts +6 -2
- package/dist/accounts/utils/AccountDetails.d.ts +5 -0
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/components/AddBudgets.d.ts +2 -1
- package/dist/budgets/index.es.js +561 -522
- package/dist/cashflow/index.es.js +397 -396
- package/dist/categories/components/CustomCategories/AddSubcategory.d.ts +1 -0
- package/dist/categories/components/CustomCategories/DeleteSubcategory.d.ts +1 -0
- package/dist/categories/components/CustomCategories/RenameSubcategory.d.ts +1 -0
- package/dist/categories/components/SubcategoryRow.d.ts +1 -0
- package/dist/categories/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +5 -3
- package/dist/common/components/GlobalAccountFilter.d.ts +11 -0
- package/dist/common/components/WidgetContainer.d.ts +7 -6
- package/dist/common/components/charts/linechart/CustomTooltip.d.ts +6 -1
- package/dist/common/components/charts/stackedlinechart/CustomPointTooltip.d.ts +5 -2
- package/dist/common/components/globalaccountfilter/GlobalAccountFilterList.d.ts +7 -0
- package/dist/common/components/index.d.ts +2 -2
- package/dist/common/hooks/index.d.ts +1 -0
- package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
- package/dist/common/index.es.js +325 -306
- package/dist/common/stores/GlobalUiStore.d.ts +7 -4
- package/dist/common/types/localization/AccountsCopy.d.ts +6 -0
- package/dist/common/types/localization/CategoryCopy.d.ts +3 -0
- package/dist/common/types/localization/CommonCopy.d.ts +3 -0
- package/dist/common/types/localization/GoalsCopy.d.ts +3 -1
- package/dist/common/types/localization/MicroInsightsCopy.d.ts +1 -0
- package/dist/common/types/localization/TransactionsCopy.d.ts +4 -0
- package/dist/common/types/localization/TrendsCopy.d.ts +4 -0
- package/dist/dashboard/index.es.js +95 -125
- package/dist/debts/index.es.js +466 -460
- package/dist/{exportTransactionsToCSV-BFpuIAXW.mjs → exportTransactionsToCSV-BU1jTY0Q.mjs} +4 -4
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +4 -5
- package/dist/finstrong/index.es.js +1660 -1553
- package/dist/goals/index.es.js +716 -677
- package/dist/goals/stores/GoalStore.d.ts +2 -0
- package/dist/help/index.es.js +14 -10
- package/dist/{hooks-C41HAxM5.mjs → hooks-fY_n74f7.mjs} +16 -16
- package/dist/investments/index.es.js +464 -457
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/MicroCardTemplate.d.ts +23 -0
- package/dist/microinsights/beaticons/BeatMaterialIcon.d.ts +8 -0
- package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +1 -2
- package/dist/microinsights/beaticons/index.d.ts +1 -0
- package/dist/microinsights/cards/InsightCard.d.ts +0 -2
- package/dist/microinsights/cards/ViewMoreMicroCard.d.ts +2 -5
- package/dist/microinsights/index.d.ts +2 -2
- package/dist/microinsights/index.es.js +824 -14
- package/dist/networth/components/NetWorthChart.d.ts +3 -2
- package/dist/networth/components/NetWorthList.d.ts +3 -3
- package/dist/networth/index.es.js +433 -438
- package/dist/networth/stores/NetWorthStore.d.ts +20 -9
- package/dist/networth/utils/NetWorthUtils.d.ts +2 -2
- package/dist/notifications/index.es.js +5 -5
- package/dist/recurringtransactions/index.es.js +331 -325
- package/dist/settings/index.es.js +293 -285
- package/dist/spending/components/SpendingChart.d.ts +1 -1
- package/dist/spending/components/SpendingList.d.ts +1 -1
- package/dist/spending/components/SpendingTabLabel.d.ts +1 -0
- package/dist/spending/index.es.js +250 -235
- package/dist/transactions/index.es.js +288 -281
- package/dist/transactions/stores/TransactionStore.d.ts +5 -0
- package/dist/trends/components/TrendsTable.d.ts +0 -2
- package/dist/trends/index.es.js +876 -802
- package/dist/trends/utils/TrendsData.d.ts +1 -0
- package/dist/trends/utils/TrendsTable.d.ts +12 -0
- package/dist/{useAccountDisplayName-usSZCQ7I.mjs → useAccountDisplayName-DbkgGLdg.mjs} +2 -2
- package/dist/useAriaLive-B3_pRUio.mjs +35 -0
- package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-dhmXeSyF.mjs} +1 -1
- package/dist/useWidgetLoadTimer-CrUzxN-P.mjs +19 -0
- package/package.json +26 -21
- package/dist/AccountDetailsContent-C1HumFnW.mjs +0 -683
- package/dist/AccountDetailsHeader-NMx79DGs.mjs +0 -87
- package/dist/CategorySelectorDrawer-DqDAA_5I.mjs +0 -399
- package/dist/CategoryStore-MUwRWH9e.mjs +0 -176
- package/dist/ConnectDrawer-Dn1MlqLz.mjs +0 -545
- package/dist/Drawer-Dqe5EqvA.mjs +0 -163
- package/dist/LineChart-bc1D9xBE.mjs +0 -581
- package/dist/NetWorthStore-8FFC1Bs0.mjs +0 -150
- package/dist/NotificationSettings-BsWiYD94.mjs +0 -672
- package/dist/SpendingData-DPQ96k3x.mjs +0 -55
- package/dist/SpendingLegend-CZzDb-7d.mjs +0 -193
- package/dist/TransactionDetails-Duv1X9ec.mjs +0 -1379
- package/dist/TrendsStore-_mRaFUdf.mjs +0 -182
- package/dist/ViewMoreMicroCard-CH9E-jOx.mjs +0 -1930
- package/dist/WidgetContainer-B1Jzb4XA.mjs +0 -565
- package/dist/common/components/accountfilter/AccountFilter.d.ts +0 -20
- package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +0 -31
- package/dist/common/components/accountfilter/index.d.ts +0 -1
- package/dist/microinsights/cards/BaseCard.d.ts +0 -13
- package/dist/{ToggleListItem-ciFTiqRS.mjs → Notification-Bs1fdbzI.mjs} +1 -1
package/dist/common/index.es.js
CHANGED
|
@@ -1,79 +1,81 @@
|
|
|
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
1
|
import { jsxs as f, jsx as i } from "react/jsx-runtime";
|
|
17
|
-
import
|
|
18
|
-
import { css as
|
|
19
|
-
import { useTokens as
|
|
20
|
-
import { T as
|
|
21
|
-
import { C as
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
2
|
+
import st from "react";
|
|
3
|
+
import { css as C, keyframes as rt } from "@mxenabled/cssinjs";
|
|
4
|
+
import { useTokens as x, Text as B } from "@mxenabled/mxui";
|
|
5
|
+
import { T as ot } from "../User-CulNdZUr.mjs";
|
|
6
|
+
import { C as Ze, b as Je, L as ts, a as es } from "../User-CulNdZUr.mjs";
|
|
7
|
+
import { C as rs } from "../CurrencyInput-DDQ4DBrE.mjs";
|
|
8
|
+
import { D as as, F as is, c as ns, d as cs, R as ds, S as ls } from "../RepeatingTransaction-C2txVA9O.mjs";
|
|
9
|
+
import { A as hs, D as gs, W as ps } from "../WidgetContainer-mzejMmz2.mjs";
|
|
10
|
+
import { D as _s, a as fs, O as ys, b as Ss, f as bs } from "../Dialog-CWymUiuO.mjs";
|
|
11
|
+
import { D as Cs } from "../Drawer-Bet2ZPJo.mjs";
|
|
12
|
+
import { H as at } from "../Help-c-zHlDbv.mjs";
|
|
13
|
+
import { E as As } from "../Help-c-zHlDbv.mjs";
|
|
14
|
+
import { I as vs } from "../IconBacking-DgT8DCeh.mjs";
|
|
15
|
+
import { C as it } from "../CashflowStore-naOtJcwo.mjs";
|
|
16
|
+
import { I as Ts } from "../CashflowStore-naOtJcwo.mjs";
|
|
17
|
+
import { L as Is } from "../Loader-BSWSYqvn.mjs";
|
|
18
|
+
import { M as Ms } from "../MicroWidgetContainer-DSyYwRCU.mjs";
|
|
19
|
+
import { M as Us } from "../MiniWidgetContainer-DKn7ndO6.mjs";
|
|
25
20
|
import { D as nt, a as ct } from "../SingleSegmentDonut-PsRQPkmV.mjs";
|
|
26
|
-
import { S as
|
|
27
|
-
import {
|
|
21
|
+
import { S as Rs } from "../SingleSegmentDonut-PsRQPkmV.mjs";
|
|
22
|
+
import { R as Os } from "../ResponsiveButton-C6KH8JH4.mjs";
|
|
23
|
+
import { T as dt } from "../TransactionStore-D2aMUClq.mjs";
|
|
24
|
+
import { S as Fs } from "../TransactionStore-D2aMUClq.mjs";
|
|
25
|
+
import { S as Gs } from "../StatusBar-CPfSXe80.mjs";
|
|
26
|
+
import { T as qs } from "../TabContentContainer-CnMXkVqr.mjs";
|
|
27
|
+
import { a as Qs, f as Xs, d as js, A as Ks, e as zs, C as Vs, g as Zs, E as Js, M as tr, N as er, c as sr, P as rr, h as or, S as ar } from "../Account-CMjOp7S2.mjs";
|
|
28
|
+
import { A as nr, B as cr, I as dr, N as lr, T as ur, a as hr } from "../Notification-Bs1fdbzI.mjs";
|
|
28
29
|
import { G as R } from "../useCombineEvents-CRwX-qWE.mjs";
|
|
29
|
-
import { A as
|
|
30
|
+
import { A as pr, a as mr, u as _r, b as fr } from "../useCombineEvents-CRwX-qWE.mjs";
|
|
30
31
|
import { F as y, A as h } from "../Fetch-DecPFeGU.mjs";
|
|
31
|
-
import { B as
|
|
32
|
-
import { C as
|
|
33
|
-
import { a as
|
|
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";
|
|
32
|
+
import { B as Sr } from "../BeatApi-De2IaqH2.mjs";
|
|
33
|
+
import { C as lt } from "../CategoryStore-DEqAnHbi.mjs";
|
|
34
|
+
import { a as wr } from "../CategoryStore-DEqAnHbi.mjs";
|
|
46
35
|
import { b as E } from "../Category-Ccoew_sA.mjs";
|
|
47
|
-
import { a as
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import
|
|
58
|
-
import { B as
|
|
59
|
-
import { endOfMonth as
|
|
60
|
-
import { startOfMonth as
|
|
36
|
+
import { a as xr, c as Ar, C as Dr, P as vr } from "../Category-Ccoew_sA.mjs";
|
|
37
|
+
import { d as ut } from "../GoalStore-Dbjgft2i.mjs";
|
|
38
|
+
import { C as Tr, G as Br, M as Ir, T as Nr } from "../GoalStore-Dbjgft2i.mjs";
|
|
39
|
+
import { b as Lr, G as Ur } from "../GlobalAccountFilter-BpWlPAl5.mjs";
|
|
40
|
+
import { C as Rr, f as $r, b as Or, a as Pr, g as Fr, i as Hr } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
41
|
+
import { C as Wr } from "../CurrencyText-C-85TnUF.mjs";
|
|
42
|
+
import { E as Yr } from "../EmptyState-DoxNUae-.mjs";
|
|
43
|
+
import { makeAutoObservable as _, runInAction as S, reaction as Z, autorun as ht } from "mobx";
|
|
44
|
+
import { G as Xr, x as jr, y as Kr, W as zr, d as Vr, a as Zr, i as Jr, t as to, m as eo, w as so, z as ro, g as oo, A as ao, u as io, f as no, b as co, l as lo, B as uo, s as ho, C as go, c as po, q as mo, n as _o, D as fo, j as yo, r as So, h as bo, v as wo, o as Co, p as xo } from "../hooks-fY_n74f7.mjs";
|
|
45
|
+
import { A as gt } from "../AccountStore-BFKvXJSD.mjs";
|
|
46
|
+
import pt from "posthog-js";
|
|
47
|
+
import { B as mt } from "../BeatStore-D_NYuBSz.mjs";
|
|
48
|
+
import { endOfMonth as J } from "date-fns/endOfMonth";
|
|
49
|
+
import { startOfMonth as tt } from "date-fns/startOfMonth";
|
|
61
50
|
import { startOfToday as $ } from "date-fns/startOfToday";
|
|
62
|
-
import { f as
|
|
63
|
-
import { g as
|
|
64
|
-
import { a as
|
|
65
|
-
import { F as
|
|
66
|
-
import { A as
|
|
67
|
-
import { M as
|
|
68
|
-
import { N as
|
|
69
|
-
import {
|
|
51
|
+
import { f as _t, a as ft, b as O } from "../BudgetUtil-CDSOZXem.mjs";
|
|
52
|
+
import { g as Do, c as vo, d as Eo, e as To, i as Bo } from "../BudgetUtil-CDSOZXem.mjs";
|
|
53
|
+
import { a as yt } from "../DebtsStore-Dv_T7Dts.mjs";
|
|
54
|
+
import { F as St } from "../FinstrongStore-BjFkMTIL.mjs";
|
|
55
|
+
import { A as bt, m as wt, a as Ct, b as xt } from "../InvestmentUtil-jOyOgzIB.mjs";
|
|
56
|
+
import { M as At } from "../MerchantStore-WvZ4gnQe.mjs";
|
|
57
|
+
import { N as Dt } from "../NetWorthStore-B6ziBtaH.mjs";
|
|
58
|
+
import { N as vt } from "../NotificationStore-Ck2KdNmT.mjs";
|
|
59
|
+
import { a as No } from "../NotificationStore-Ck2KdNmT.mjs";
|
|
60
|
+
import { a as Et } from "../SettingsStore-CInvh-rQ.mjs";
|
|
61
|
+
import { R as Tt } from "../RecurringTransactionsStore-D_--5PWH.mjs";
|
|
62
|
+
import { S as Lo, T as Uo } from "../RecurringTransactionsStore-D_--5PWH.mjs";
|
|
63
|
+
import { T as Bt } from "../TrendsStore-BdsYfCc7.mjs";
|
|
64
|
+
import { L as Ro } from "../TrendsStore-BdsYfCc7.mjs";
|
|
70
65
|
import { addMonths as It } from "date-fns/addMonths";
|
|
71
66
|
import { getMonth as T } from "date-fns/getMonth";
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
67
|
+
import { I as Oo, P as Po, S as Fo } from "../Account-BIKn4XEZ.mjs";
|
|
68
|
+
import { L as Go } from "../ListItemAction-Cbr3417C.mjs";
|
|
69
|
+
import { S as qo } from "../SearchBox-B2_zLv8-.mjs";
|
|
70
|
+
import { b as Qo, a as Xo, g as jo } from "../Localization-2MODESHW.mjs";
|
|
71
|
+
import { i as zo } from "../DateUtil-CVsMhbZU.mjs";
|
|
72
|
+
import { alpha as Nt, darken as P, lighten as F } from "@mui/material";
|
|
73
|
+
import { u as Zo } from "../useAccountDisplayName-DbkgGLdg.mjs";
|
|
74
|
+
import { u as ta } from "../useInsightsEnabled-dhmXeSyF.mjs";
|
|
75
|
+
import { u as sa } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
76
|
+
import { u as oa } from "../useWidgetLoadTimer-CrUzxN-P.mjs";
|
|
75
77
|
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
|
|
78
|
+
const Ge = [
|
|
77
79
|
{ id: 0, copy: "frequency_unknown" },
|
|
78
80
|
{ id: 1, copy: "frequency_every_week" },
|
|
79
81
|
{ id: 2, copy: "frequency_every_other_week" },
|
|
@@ -119,12 +121,12 @@ const kt = [
|
|
|
119
121
|
{ key: "success", light: "success_color", dark: "success_color_dark" }
|
|
120
122
|
], qe = (s, t, e) => {
|
|
121
123
|
const r = s.palette.mode === "dark", o = (e?.master?.style?.font_name || t?.system_font) ?? s.typography.fontFamily, a = (n, m) => n ? {
|
|
122
|
-
lighter:
|
|
123
|
-
light:
|
|
124
|
+
lighter: F(n, 0.5),
|
|
125
|
+
light: F(n, 0.25),
|
|
124
126
|
main: n,
|
|
125
127
|
dark: P(n, 0.25),
|
|
126
128
|
darker: P(n, 0.5)
|
|
127
|
-
} : m,
|
|
129
|
+
} : m, l = Object.fromEntries(
|
|
128
130
|
Rt.map(({ key: n, light: m, dark: b }) => [
|
|
129
131
|
n,
|
|
130
132
|
a(
|
|
@@ -132,27 +134,27 @@ const kt = [
|
|
|
132
134
|
s.palette[n]
|
|
133
135
|
)
|
|
134
136
|
])
|
|
135
|
-
),
|
|
137
|
+
), c = Object.fromEntries(
|
|
136
138
|
kt.map((n) => [
|
|
137
139
|
n,
|
|
138
140
|
n === "fontFamily" ? o : { fontFamily: o }
|
|
139
141
|
])
|
|
140
|
-
),
|
|
142
|
+
), d = {
|
|
141
143
|
MuiTabs: {
|
|
142
144
|
styleOverrides: {
|
|
143
|
-
indicator: { backgroundColor:
|
|
145
|
+
indicator: { backgroundColor: l.primary.light }
|
|
144
146
|
}
|
|
145
147
|
},
|
|
146
148
|
MuiPickersCalendarHeader: {
|
|
147
149
|
styleOverrides: {
|
|
148
150
|
switchViewButton: {
|
|
149
|
-
color:
|
|
150
|
-
"&:hover": { backgroundColor: Nt(
|
|
151
|
+
color: l.primary.lighter,
|
|
152
|
+
"&:hover": { backgroundColor: Nt(l.primary.light, 0.1) }
|
|
151
153
|
}
|
|
152
154
|
}
|
|
153
155
|
}
|
|
154
156
|
}, u = t?.button_corner_radius, g = t?.card_corner_radius, p = {
|
|
155
|
-
...
|
|
157
|
+
...d,
|
|
156
158
|
...u && {
|
|
157
159
|
MuiButton: {
|
|
158
160
|
styleOverrides: {
|
|
@@ -183,9 +185,9 @@ const kt = [
|
|
|
183
185
|
}
|
|
184
186
|
}
|
|
185
187
|
};
|
|
186
|
-
return { typography:
|
|
188
|
+
return { typography: c, palette: l, components: p };
|
|
187
189
|
};
|
|
188
|
-
class
|
|
190
|
+
class H {
|
|
189
191
|
fetchInstance;
|
|
190
192
|
constructor(t) {
|
|
191
193
|
this.fetchInstance = new y(t, "", {
|
|
@@ -218,13 +220,13 @@ class Qe {
|
|
|
218
220
|
addScheduledPayment = async (t) => this.fetchInstance.post(h.SCHEDULED_PAYMENTS, {
|
|
219
221
|
...t,
|
|
220
222
|
is_recurring: "true",
|
|
221
|
-
transaction_type:
|
|
223
|
+
transaction_type: ot.DEBIT
|
|
222
224
|
}).then((e) => e.scheduled_payment);
|
|
223
225
|
getScheduledPayments = async () => this.fetchInstance.get(h.SCHEDULED_PAYMENTS).then((t) => t.scheduled_payments);
|
|
224
226
|
updateScheduledPayment = async (t) => this.fetchInstance.put(`${h.SCHEDULED_PAYMENTS}/${t.guid}`, t).then((e) => e.scheduled_payment);
|
|
225
227
|
deleteScheduledPayment = async (t) => this.fetchInstance.delete(`${h.SCHEDULED_PAYMENTS}/${t}`).then((e) => e);
|
|
226
228
|
}
|
|
227
|
-
class
|
|
229
|
+
class G {
|
|
228
230
|
fetchInstance;
|
|
229
231
|
constructor(t, e, r) {
|
|
230
232
|
this.fetchInstance = new y(t, e, void 0, r);
|
|
@@ -240,9 +242,8 @@ class W {
|
|
|
240
242
|
}
|
|
241
243
|
requestWidgetUrl = async (t) => this.fetchInstance.post(h.WIDGET_URLS, t).then((e) => e.widget_url);
|
|
242
244
|
}
|
|
243
|
-
|
|
244
|
-
const
|
|
245
|
-
const r = C(), o = Ft(r, s);
|
|
245
|
+
const $t = ({ color: s, labelAverage: t, labelMain: e }) => {
|
|
246
|
+
const r = x(), o = Ot(r, s);
|
|
246
247
|
return /* @__PURE__ */ f("div", { className: `mx-cmn-bar-chart-legend ${o}`, children: [
|
|
247
248
|
/* @__PURE__ */ i("div", { "aria-label": e, className: "mx-cmn-color-square", role: "img" }),
|
|
248
249
|
/* @__PURE__ */ i(B, { variant: "XSmall", children: e }),
|
|
@@ -253,7 +254,7 @@ const Gt = ({ color: s, labelAverage: t, labelMain: e }) => {
|
|
|
253
254
|
] }),
|
|
254
255
|
/* @__PURE__ */ i(B, { variant: "XSmall", children: t })
|
|
255
256
|
] });
|
|
256
|
-
},
|
|
257
|
+
}, Ot = (s, t) => C({
|
|
257
258
|
alignItems: "center",
|
|
258
259
|
display: "flex",
|
|
259
260
|
gap: s.Spacing.XSmall,
|
|
@@ -286,16 +287,16 @@ const Gt = ({ color: s, labelAverage: t, labelMain: e }) => {
|
|
|
286
287
|
index: r,
|
|
287
288
|
label: o,
|
|
288
289
|
onClick: a,
|
|
289
|
-
selectedIndex:
|
|
290
|
-
value:
|
|
290
|
+
selectedIndex: l,
|
|
291
|
+
value: c
|
|
291
292
|
}) => {
|
|
292
|
-
const
|
|
293
|
+
const d = x(), u = Pt(d, t, e), g = (m) => {
|
|
293
294
|
a && (m.key === " " || m.key === "Enter") && a(r);
|
|
294
|
-
}, p =
|
|
295
|
+
}, p = l === void 0 || l === r ? "primary" : "secondary", n = () => /* @__PURE__ */ i(
|
|
295
296
|
B,
|
|
296
297
|
{
|
|
297
298
|
"aria-hidden": !0,
|
|
298
|
-
bold:
|
|
299
|
+
bold: l === r,
|
|
299
300
|
className: "mx-cmn-bar-text",
|
|
300
301
|
color: p,
|
|
301
302
|
component: "div",
|
|
@@ -303,24 +304,24 @@ const Gt = ({ color: s, labelAverage: t, labelMain: e }) => {
|
|
|
303
304
|
children: o
|
|
304
305
|
}
|
|
305
306
|
);
|
|
306
|
-
return /* @__PURE__ */ f("div", { className: `mx-cmn-bar-container ${u} ${
|
|
307
|
-
|
|
307
|
+
return /* @__PURE__ */ f("div", { className: `mx-cmn-bar-container ${u} ${c < 0 ? "mx-cmn-negative" : ""}`, children: [
|
|
308
|
+
c >= 0 && /* @__PURE__ */ i(n, {}),
|
|
308
309
|
/* @__PURE__ */ i(
|
|
309
310
|
"div",
|
|
310
311
|
{
|
|
311
312
|
"aria-label": s,
|
|
312
|
-
className: `mx-cmn-bar ${a ? "mx-cmn-clickable" : ""} ${
|
|
313
|
+
className: `mx-cmn-bar ${a ? "mx-cmn-clickable" : ""} ${c < 0 ? "mx-cmn-bar-negative" : ""}`,
|
|
313
314
|
onClick: a ? () => a?.(r) : void 0,
|
|
314
315
|
onKeyDown: g,
|
|
315
316
|
role: s ? "button" : void 0,
|
|
316
317
|
tabIndex: s ? 0 : void 0
|
|
317
318
|
}
|
|
318
319
|
),
|
|
319
|
-
|
|
320
|
+
c < 0 && /* @__PURE__ */ i(n, {})
|
|
320
321
|
] });
|
|
321
|
-
},
|
|
322
|
-
const r = `expandBar-${Math.round(e)}`, o =
|
|
323
|
-
return
|
|
322
|
+
}, Pt = (s, t, e) => {
|
|
323
|
+
const r = `expandBar-${Math.round(e)}`, o = rt(r, { from: { height: 0 }, to: { height: e } });
|
|
324
|
+
return C({
|
|
324
325
|
display: "flex",
|
|
325
326
|
flexDirection: "column",
|
|
326
327
|
justifyContent: "flex-end",
|
|
@@ -358,26 +359,26 @@ const Gt = ({ color: s, labelAverage: t, labelMain: e }) => {
|
|
|
358
359
|
color: r,
|
|
359
360
|
index: o = -1,
|
|
360
361
|
onClick: a,
|
|
361
|
-
range:
|
|
362
|
-
selectedIndex:
|
|
363
|
-
topHeight:
|
|
362
|
+
range: l,
|
|
363
|
+
selectedIndex: c,
|
|
364
|
+
topHeight: d,
|
|
364
365
|
value: u,
|
|
365
366
|
valueLabel: g = "",
|
|
366
367
|
width: p,
|
|
367
368
|
xAxisLabel: n = ""
|
|
368
369
|
}) => {
|
|
369
|
-
const m =
|
|
370
|
+
const m = x(), b = Ft(m, p), A = u / l * d, D = Math.abs(u) / l * e, v = c === void 0 || c === o ? "primary" : "secondary";
|
|
370
371
|
return /* @__PURE__ */ f("div", { className: `mx-cmn-barchart-bar-column ${b}`, children: [
|
|
371
|
-
/* @__PURE__ */ i("div", { style: { height:
|
|
372
|
+
/* @__PURE__ */ i("div", { style: { height: d }, children: u >= 0 && /* @__PURE__ */ i(
|
|
372
373
|
q,
|
|
373
374
|
{
|
|
374
375
|
ariaLabel: s,
|
|
375
376
|
color: r,
|
|
376
|
-
height:
|
|
377
|
+
height: A,
|
|
377
378
|
index: o,
|
|
378
379
|
label: g,
|
|
379
380
|
onClick: a,
|
|
380
|
-
selectedIndex:
|
|
381
|
+
selectedIndex: c,
|
|
381
382
|
value: u
|
|
382
383
|
}
|
|
383
384
|
) }),
|
|
@@ -388,7 +389,7 @@ const Gt = ({ color: s, labelAverage: t, labelMain: e }) => {
|
|
|
388
389
|
{
|
|
389
390
|
ariaLabel: s,
|
|
390
391
|
color: r,
|
|
391
|
-
height:
|
|
392
|
+
height: D,
|
|
392
393
|
index: o,
|
|
393
394
|
label: g,
|
|
394
395
|
onClick: a,
|
|
@@ -400,11 +401,11 @@ const Gt = ({ color: s, labelAverage: t, labelMain: e }) => {
|
|
|
400
401
|
{
|
|
401
402
|
className: `mx-cmn-bar-label ${a ? "mx-cmn-clickable" : ""}`,
|
|
402
403
|
onClick: a ? () => a(o) : void 0,
|
|
403
|
-
children: /* @__PURE__ */ i(B, { bold:
|
|
404
|
+
children: /* @__PURE__ */ i(B, { bold: c === o, color: v, variant: "Small", children: n })
|
|
404
405
|
}
|
|
405
406
|
)
|
|
406
407
|
] });
|
|
407
|
-
},
|
|
408
|
+
}, Ft = (s, t) => C({
|
|
408
409
|
display: "flex",
|
|
409
410
|
flexDirection: "column",
|
|
410
411
|
flexGrow: t === void 0 ? 1 : 0,
|
|
@@ -429,28 +430,28 @@ const Gt = ({ color: s, labelAverage: t, labelMain: e }) => {
|
|
|
429
430
|
"& .mx-cmn-clickable": {
|
|
430
431
|
cursor: "pointer"
|
|
431
432
|
}
|
|
432
|
-
}),
|
|
433
|
+
}), Ht = (s, t) => s + t, Gt = (s, t) => Math.abs(t) > s ? Math.abs(t) : s, Wt = (s, t) => [...s, t.value], Q = (s, t, e) => {
|
|
433
434
|
const r = s && t ? e / 2 : e;
|
|
434
435
|
return s ? r : 0;
|
|
435
|
-
},
|
|
436
|
+
}, qt = (s, t, e, r) => s / (t < 0 ? -e : t) * r || 0, Xe = ({
|
|
436
437
|
average: s,
|
|
437
438
|
barWidth: t = "8%",
|
|
438
439
|
color: e,
|
|
439
440
|
data: r,
|
|
440
441
|
height: o,
|
|
441
442
|
legendLabelAverage: a,
|
|
442
|
-
legendLabelMain:
|
|
443
|
-
onBarClick:
|
|
444
|
-
selectedIndex:
|
|
443
|
+
legendLabelMain: l,
|
|
444
|
+
onBarClick: c,
|
|
445
|
+
selectedIndex: d,
|
|
445
446
|
valueFormatter: u = (g) => `${g}`
|
|
446
447
|
}) => {
|
|
447
|
-
const g =
|
|
448
|
+
const g = x(), p = Yt(g), n = r.reduce(Wt, []), m = s !== void 0 ? s : n.reduce(Ht, 0) / n.length, b = Math.max(...n), A = Math.min(...n), D = n.reduce(Gt, 0), v = b >= 0, L = A < 0, I = Q(v, L, o), N = Q(L, v, o), U = qt(m, b, A, I || N), et = (w) => d === void 0 || w === d ? e : `${e}80`, k = () => /* @__PURE__ */ i(
|
|
448
449
|
Y,
|
|
449
450
|
{
|
|
450
451
|
averageLineHeight: U,
|
|
451
452
|
bottomHeight: N,
|
|
452
453
|
color: "",
|
|
453
|
-
range:
|
|
454
|
+
range: D,
|
|
454
455
|
topHeight: I,
|
|
455
456
|
value: 0,
|
|
456
457
|
width: void 0
|
|
@@ -459,18 +460,18 @@ const Gt = ({ color: s, labelAverage: t, labelMain: e }) => {
|
|
|
459
460
|
return /* @__PURE__ */ f("div", { className: `mx-cmn-bar-chart ${p}`, children: [
|
|
460
461
|
/* @__PURE__ */ f("div", { className: "mx-cmn-chart-container", children: [
|
|
461
462
|
/* @__PURE__ */ i(k, {}),
|
|
462
|
-
r.map((w, M) => /* @__PURE__ */ f(
|
|
463
|
+
r.map((w, M) => /* @__PURE__ */ f(st.Fragment, { children: [
|
|
463
464
|
/* @__PURE__ */ i(
|
|
464
465
|
Y,
|
|
465
466
|
{
|
|
466
467
|
ariaLabel: w.ariaLabel,
|
|
467
468
|
averageLineHeight: U,
|
|
468
469
|
bottomHeight: N,
|
|
469
|
-
color:
|
|
470
|
+
color: et(M),
|
|
470
471
|
index: M,
|
|
471
|
-
onClick:
|
|
472
|
-
range:
|
|
473
|
-
selectedIndex:
|
|
472
|
+
onClick: c,
|
|
473
|
+
range: D,
|
|
474
|
+
selectedIndex: d,
|
|
474
475
|
topHeight: I,
|
|
475
476
|
value: w.value,
|
|
476
477
|
valueLabel: u(w.value),
|
|
@@ -481,9 +482,9 @@ const Gt = ({ color: s, labelAverage: t, labelMain: e }) => {
|
|
|
481
482
|
/* @__PURE__ */ i(k, {})
|
|
482
483
|
] }, `column-${M}`))
|
|
483
484
|
] }),
|
|
484
|
-
/* @__PURE__ */ i(
|
|
485
|
+
/* @__PURE__ */ i($t, { color: e, labelAverage: a, labelMain: l })
|
|
485
486
|
] });
|
|
486
|
-
},
|
|
487
|
+
}, Yt = (s) => C({
|
|
487
488
|
"& .mx-cmn-chart-container": {
|
|
488
489
|
alignItems: "flex-end",
|
|
489
490
|
display: "flex",
|
|
@@ -498,17 +499,17 @@ const Gt = ({ color: s, labelAverage: t, labelMain: e }) => {
|
|
|
498
499
|
strokeWidth: r = ct,
|
|
499
500
|
children: o
|
|
500
501
|
}) => {
|
|
501
|
-
const a =
|
|
502
|
+
const a = x(), l = Qt(a, e), c = (e - r) / 2, d = e / 2;
|
|
502
503
|
let u = -90 - (s ? 1 : 0), g = 0;
|
|
503
|
-
return /* @__PURE__ */ f("div", { className: `mx-cmn-multi-segment-donut ${
|
|
504
|
+
return /* @__PURE__ */ f("div", { className: `mx-cmn-multi-segment-donut ${l}`, children: [
|
|
504
505
|
/* @__PURE__ */ f("svg", { height: e, width: e, children: [
|
|
505
506
|
/* @__PURE__ */ i(
|
|
506
507
|
"circle",
|
|
507
508
|
{
|
|
508
|
-
cx:
|
|
509
|
-
cy:
|
|
509
|
+
cx: d,
|
|
510
|
+
cy: d,
|
|
510
511
|
fill: "none",
|
|
511
|
-
r:
|
|
512
|
+
r: c,
|
|
512
513
|
stroke: a.Color.Neutral300,
|
|
513
514
|
strokeWidth: r
|
|
514
515
|
}
|
|
@@ -516,22 +517,22 @@ const Gt = ({ color: s, labelAverage: t, labelMain: e }) => {
|
|
|
516
517
|
t.map((p, n) => (u += 360 * g + (s ? 1 : 0), g = (p.percent - (s ? 0.3 : 0)) / 100, /* @__PURE__ */ i(
|
|
517
518
|
"circle",
|
|
518
519
|
{
|
|
519
|
-
cx:
|
|
520
|
-
cy:
|
|
520
|
+
cx: d,
|
|
521
|
+
cy: d,
|
|
521
522
|
fill: "none",
|
|
522
|
-
r:
|
|
523
|
+
r: c,
|
|
523
524
|
stroke: p.color,
|
|
524
|
-
strokeDasharray: 2 * Math.PI *
|
|
525
|
-
strokeDashoffset: 2 * Math.PI *
|
|
525
|
+
strokeDasharray: 2 * Math.PI * c,
|
|
526
|
+
strokeDashoffset: 2 * Math.PI * c * (1 - g),
|
|
526
527
|
strokeWidth: r,
|
|
527
|
-
transform: `rotate(${u}, ${
|
|
528
|
+
transform: `rotate(${u}, ${d}, ${d})`
|
|
528
529
|
},
|
|
529
530
|
n
|
|
530
531
|
)))
|
|
531
532
|
] }),
|
|
532
533
|
/* @__PURE__ */ i("div", { className: "mx-cmn-multi-segment-donut-children", children: o })
|
|
533
534
|
] });
|
|
534
|
-
},
|
|
535
|
+
}, Qt = (s, t) => C({
|
|
535
536
|
height: t,
|
|
536
537
|
marginTop: `-${s.Spacing.XSmall}px`,
|
|
537
538
|
position: "relative",
|
|
@@ -544,7 +545,7 @@ const Gt = ({ color: s, labelAverage: t, labelMain: e }) => {
|
|
|
544
545
|
transform: "translate(-50%, -50%)"
|
|
545
546
|
}
|
|
546
547
|
});
|
|
547
|
-
class
|
|
548
|
+
class Xt {
|
|
548
549
|
globalStore;
|
|
549
550
|
api = new R("/", "");
|
|
550
551
|
copy = {};
|
|
@@ -573,7 +574,7 @@ class Vt {
|
|
|
573
574
|
}
|
|
574
575
|
};
|
|
575
576
|
}
|
|
576
|
-
class
|
|
577
|
+
class jt {
|
|
577
578
|
globalStore;
|
|
578
579
|
survey = null;
|
|
579
580
|
currentQuestionIndex = 0;
|
|
@@ -603,7 +604,7 @@ class Zt {
|
|
|
603
604
|
return this.survey ? this.survey.questions : [];
|
|
604
605
|
}
|
|
605
606
|
loadSurvey = (t = !1) => {
|
|
606
|
-
|
|
607
|
+
pt.getActiveMatchingSurveys((e) => {
|
|
607
608
|
S(() => {
|
|
608
609
|
if (e.length > 0) {
|
|
609
610
|
const r = e.find((o) => o.id === this.surveyId);
|
|
@@ -643,11 +644,11 @@ class X {
|
|
|
643
644
|
throw e;
|
|
644
645
|
});
|
|
645
646
|
}
|
|
646
|
-
class
|
|
647
|
+
class Kt {
|
|
647
648
|
api = new X("/", "");
|
|
648
649
|
globalStore;
|
|
649
650
|
alert = "";
|
|
650
|
-
dateRange = { start:
|
|
651
|
+
dateRange = { start: tt($()), end: J($()) };
|
|
651
652
|
budgets = [];
|
|
652
653
|
selectedBudget;
|
|
653
654
|
selectedSubBudget;
|
|
@@ -657,14 +658,14 @@ class Jt {
|
|
|
657
658
|
this.globalStore = t, this.api = new X(t.endpoint, t.sessionToken, t.onError), _(this);
|
|
658
659
|
}
|
|
659
660
|
loadBudgetData = async () => {
|
|
660
|
-
this.globalStore.recurringTransactionsStore.isDataLoaded || await this.globalStore.recurringTransactionsStore.loadRepeatingTransactionData(), await this.loadBudgets(),
|
|
661
|
+
this.globalStore.recurringTransactionsStore.isDataLoaded || await this.globalStore.recurringTransactionsStore.loadRepeatingTransactionData(), await this.loadBudgets(), Z(
|
|
661
662
|
() => this.detailedBudgets,
|
|
662
663
|
(t) => {
|
|
663
664
|
if (t) {
|
|
664
665
|
const e = this.selectedBudget;
|
|
665
|
-
e && (this.selectedBudget =
|
|
666
|
+
e && (this.selectedBudget = _t(t, e.guid));
|
|
666
667
|
const r = this.selectedSubBudget;
|
|
667
|
-
r && r.parent_guid && (this.selectedSubBudget =
|
|
668
|
+
r && r.parent_guid && (this.selectedSubBudget = ft(
|
|
668
669
|
t,
|
|
669
670
|
r.guid,
|
|
670
671
|
r.parent_guid
|
|
@@ -774,6 +775,7 @@ class Jt {
|
|
|
774
775
|
}
|
|
775
776
|
};
|
|
776
777
|
}
|
|
778
|
+
var zt = /* @__PURE__ */ ((s) => (s[s.UNKNOWN = 0] = "UNKNOWN", s[s.CORRECT = 1] = "CORRECT", s[s.INCORRECT = 2] = "INCORRECT", s))(zt || {}), Vt = /* @__PURE__ */ ((s) => (s.Missed = "Missed", s.Paid = "Paid", s.Upcoming = "Upcoming expense", s.Income = "Income", s))(Vt || {}), Zt = /* @__PURE__ */ ((s) => (s[s.Unknown = 0] = "Unknown", s[s.Subscription = 1] = "Subscription", s[s.Bill = 2] = "Bill", s))(Zt || {}), Jt = /* @__PURE__ */ ((s) => (s.Desktop = "Desktop", s.Mobile = "Mobile", s))(Jt || {});
|
|
777
779
|
class j {
|
|
778
780
|
fetchInstance;
|
|
779
781
|
constructor(t, e, r) {
|
|
@@ -783,15 +785,15 @@ class j {
|
|
|
783
785
|
}
|
|
784
786
|
const te = (s, t) => s.guid === "general" || s.guid === "insights" ? !0 : s.flags ? s.flags.every((e) => t[e]) : !1, ee = (s, t) => {
|
|
785
787
|
const e = [];
|
|
786
|
-
for (const r of
|
|
788
|
+
for (const r of at) {
|
|
787
789
|
const o = t[r.guid];
|
|
788
790
|
if (!o) continue;
|
|
789
791
|
const a = {
|
|
790
792
|
...r,
|
|
791
793
|
title: o.label,
|
|
792
|
-
topics: r.topics.map(({ topicKey:
|
|
793
|
-
topicKey:
|
|
794
|
-
label: o.topics[
|
|
794
|
+
topics: r.topics.map(({ topicKey: l }, c) => ({
|
|
795
|
+
topicKey: l,
|
|
796
|
+
label: o.topics[c]
|
|
795
797
|
}))
|
|
796
798
|
};
|
|
797
799
|
te(a, s) && e.push(a);
|
|
@@ -843,7 +845,7 @@ class K {
|
|
|
843
845
|
updateHoldings = async (t) => this.fetchInstance.put(`${h.HOLDINGS}/${t.guid}`, t).then((e) => e.holding);
|
|
844
846
|
}
|
|
845
847
|
class re {
|
|
846
|
-
analysisType =
|
|
848
|
+
analysisType = bt.Stocks;
|
|
847
849
|
api = new K("/", "");
|
|
848
850
|
holdings = [];
|
|
849
851
|
holdingsLoaded = !1;
|
|
@@ -853,10 +855,10 @@ class re {
|
|
|
853
855
|
this.globalStore = t, this.api = new K(t.endpoint, t.sessionToken, t.onError), _(this);
|
|
854
856
|
}
|
|
855
857
|
get analysisChartData() {
|
|
856
|
-
return
|
|
858
|
+
return wt(Ct(this.visibleHoldings), this.analysisType);
|
|
857
859
|
}
|
|
858
860
|
get analysisDetails() {
|
|
859
|
-
return
|
|
861
|
+
return xt(this.visibleHoldings)[this.analysisType] || {};
|
|
860
862
|
}
|
|
861
863
|
get visibleHoldings() {
|
|
862
864
|
return this.holdings.filter(
|
|
@@ -1009,7 +1011,7 @@ class V {
|
|
|
1009
1011
|
class oe {
|
|
1010
1012
|
globalStore;
|
|
1011
1013
|
api = new V("/", "");
|
|
1012
|
-
bannerApi = new
|
|
1014
|
+
bannerApi = new H("/");
|
|
1013
1015
|
appData = {};
|
|
1014
1016
|
isAppDataLoaded = !1;
|
|
1015
1017
|
banner = {};
|
|
@@ -1035,7 +1037,7 @@ class oe {
|
|
|
1035
1037
|
return this.appData.user_profile;
|
|
1036
1038
|
}
|
|
1037
1039
|
setAppData = (t) => {
|
|
1038
|
-
this.appData = t, this.bannerApi = new
|
|
1040
|
+
this.appData = t, this.bannerApi = new H(t.address?.bullseye || "/"), this.isAppDataLoaded = !0;
|
|
1039
1041
|
};
|
|
1040
1042
|
loadAppData = async () => {
|
|
1041
1043
|
try {
|
|
@@ -1071,15 +1073,32 @@ class ae {
|
|
|
1071
1073
|
}
|
|
1072
1074
|
class ie {
|
|
1073
1075
|
globalStore;
|
|
1074
|
-
|
|
1075
|
-
selectedAccountGuids = this.selectedAccounts.map((t) => t.guid);
|
|
1076
|
+
accountFilterMap = /* @__PURE__ */ new Map();
|
|
1076
1077
|
displayedDate = /* @__PURE__ */ new Date();
|
|
1077
1078
|
displayedDateRange = {
|
|
1078
|
-
start:
|
|
1079
|
-
end:
|
|
1079
|
+
start: tt(this.displayedDate),
|
|
1080
|
+
end: J(this.displayedDate)
|
|
1080
1081
|
};
|
|
1081
1082
|
constructor(t) {
|
|
1082
|
-
_(this), this.globalStore = t
|
|
1083
|
+
_(this), this.globalStore = t, Z(
|
|
1084
|
+
() => this.globalStore.accountStore.visibleAccounts,
|
|
1085
|
+
(e) => {
|
|
1086
|
+
this.populateAccountFilterMap(e);
|
|
1087
|
+
}
|
|
1088
|
+
);
|
|
1089
|
+
}
|
|
1090
|
+
get allSelectedAccounts() {
|
|
1091
|
+
return this.globalStore.accountStore.detailedAccounts.filter(
|
|
1092
|
+
(t) => !t.is_excluded_from_accounts
|
|
1093
|
+
);
|
|
1094
|
+
}
|
|
1095
|
+
get selectedAccounts() {
|
|
1096
|
+
return this.globalStore.accountStore.visibleAccounts.filter(
|
|
1097
|
+
(t) => !t.is_excluded_from_accounts
|
|
1098
|
+
);
|
|
1099
|
+
}
|
|
1100
|
+
get selectedAccountGuids() {
|
|
1101
|
+
return this.selectedAccounts.map((t) => t.guid);
|
|
1083
1102
|
}
|
|
1084
1103
|
get isCopyLoaded() {
|
|
1085
1104
|
return this.globalStore.copyStore.isInitialized;
|
|
@@ -1093,17 +1112,16 @@ class ie {
|
|
|
1093
1112
|
get isInitialized() {
|
|
1094
1113
|
return this.isCopyLoaded && this.isConfigLoaded && this.areUserFeaturesLoaded;
|
|
1095
1114
|
}
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1115
|
+
populateAccountFilterMap = (t) => {
|
|
1116
|
+
t && t.forEach((e) => {
|
|
1117
|
+
this.accountFilterMap.set(e.guid, !e.is_excluded_from_accounts);
|
|
1118
|
+
});
|
|
1119
|
+
};
|
|
1120
|
+
resetAccountFilterMap = () => {
|
|
1121
|
+
this.accountFilterMap.clear(), this.populateAccountFilterMap(this.globalStore.accountStore.visibleAccounts);
|
|
1102
1122
|
};
|
|
1103
|
-
|
|
1104
|
-
|
|
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;
|
|
1123
|
+
updateAccountFilterMap = (t, e) => {
|
|
1124
|
+
this.accountFilterMap.set(t, e);
|
|
1107
1125
|
};
|
|
1108
1126
|
setDisplayedDate = (t, e) => {
|
|
1109
1127
|
this.displayedDate = e, this.displayedDateRange = {
|
|
@@ -1122,11 +1140,11 @@ class ie {
|
|
|
1122
1140
|
}
|
|
1123
1141
|
class ne {
|
|
1124
1142
|
globalStore;
|
|
1125
|
-
api = new
|
|
1143
|
+
api = new G("/", "");
|
|
1126
1144
|
userFeatures = [];
|
|
1127
1145
|
userFeaturesLoaded = !1;
|
|
1128
1146
|
constructor(t) {
|
|
1129
|
-
this.globalStore = t, this.api = new
|
|
1147
|
+
this.globalStore = t, this.api = new G(t.endpoint, t.sessionToken, t.onError), _(this);
|
|
1130
1148
|
}
|
|
1131
1149
|
get userProfile() {
|
|
1132
1150
|
return this.globalStore.appDataStore.userProfile;
|
|
@@ -1195,7 +1213,7 @@ class Ke {
|
|
|
1195
1213
|
// UI Stores
|
|
1196
1214
|
globalUiStore;
|
|
1197
1215
|
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
|
|
1216
|
+
this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.onError = r, this.onStoreUpdate = o, this.accountStore = new gt(this), this.appDataStore = new oe(this), this.analyticsStore = new jt(this), this.beatStore = new mt(this), this.budgetsStore = new Kt(this), this.cashflowStore = new it(this), this.categoryStore = new lt(this), this.connectStore = new ae(this), this.copyStore = new Xt(this), this.debtsStore = new yt(this), this.finstrongStore = new St(this), this.goalStore = new ut(this), this.helpStore = new se(this), this.holdingStore = new re(this), this.merchantStore = new At(this), this.netWorthStore = new Dt(this), this.notificationStore = new vt(this), this.recurringTransactionsStore = new Tt(this), this.settingsStore = new Et(this), this.transactionStore = new dt(this), this.trendsStore = new Bt(this), this.userStore = new ne(this), this.globalUiStore = new ie(this), _(this), ht(() => {
|
|
1199
1217
|
const { transactions: a } = this.transactionStore;
|
|
1200
1218
|
this.emitUpdate({
|
|
1201
1219
|
transactions: a
|
|
@@ -1223,165 +1241,166 @@ class Ke {
|
|
|
1223
1241
|
associatedBeats: r,
|
|
1224
1242
|
categories: o,
|
|
1225
1243
|
institutions: a,
|
|
1226
|
-
transactionRules:
|
|
1227
|
-
transactions:
|
|
1228
|
-
userFeatures:
|
|
1244
|
+
transactionRules: l,
|
|
1245
|
+
transactions: c,
|
|
1246
|
+
userFeatures: d
|
|
1229
1247
|
} = {}) => {
|
|
1230
|
-
(!e || !
|
|
1248
|
+
(!e || !d) && await this.loadConfigData(), e && this.appDataStore.setAppData(e), d && this.userStore.setUserFeatures(d), t && (await this.accountStore.loadMembers(), a && this.accountStore.setInstitutions(a), this.accountStore.setAccounts(t)), r && this.transactionStore.setAssociatedBeats(r), o && this.categoryStore.setCategories(o), c && this.transactionStore.setTransactions(c), l && this.transactionStore.setTransactionRules(l);
|
|
1231
1249
|
};
|
|
1232
1250
|
}
|
|
1233
1251
|
export {
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
dr as AnalyticsApi,
|
|
1252
|
+
hs as ANALYTICS_EVENTS,
|
|
1253
|
+
Qs as AccountIcon,
|
|
1254
|
+
Xs as AccountIconVariants,
|
|
1255
|
+
nr as AccountNotificationTypes,
|
|
1256
|
+
js as AccountSubType,
|
|
1257
|
+
Ks as AccountType,
|
|
1258
|
+
zs as AccountTypeName,
|
|
1259
|
+
pr as AnalyticsApi,
|
|
1243
1260
|
h as ApiEndpoints,
|
|
1244
|
-
|
|
1261
|
+
H as BannerApi,
|
|
1245
1262
|
Xe as BarChart,
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1263
|
+
Sr as BeatApi,
|
|
1264
|
+
cr as BudgetNotificationTypes,
|
|
1265
|
+
Ze as Calendar,
|
|
1266
|
+
Je as CalendarSelectionTypes,
|
|
1267
|
+
wr as CategoryApi,
|
|
1268
|
+
xr as CategoryColors,
|
|
1269
|
+
Ar as CategoryGuidToName,
|
|
1253
1270
|
E as CategoryGuids,
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1271
|
+
Dr as CategoryIcon,
|
|
1272
|
+
Tr as ConnectCard,
|
|
1273
|
+
Lr as ConnectDrawer,
|
|
1274
|
+
Vs as ConnectionStatus,
|
|
1275
|
+
Zs as ConnectionStatusEnums,
|
|
1276
|
+
Rr as CurrencyCodes,
|
|
1277
|
+
rs as CurrencyInput,
|
|
1278
|
+
Wr as CurrencyText,
|
|
1279
|
+
_s as DATE_FORMATS_INTL,
|
|
1263
1280
|
nt as DEFAULT_DONUT_SIZE,
|
|
1264
1281
|
ct as DEFAULT_STROKE_WIDTH,
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1282
|
+
as as DataRow,
|
|
1283
|
+
gs as DateRangeSelector,
|
|
1284
|
+
fs as Dialog,
|
|
1285
|
+
Cs as Drawer,
|
|
1286
|
+
Yr as EmptyState,
|
|
1287
|
+
As as ErrorBoundary,
|
|
1288
|
+
Js as ErrorStatuses,
|
|
1289
|
+
Vt as ExpenseStatus,
|
|
1273
1290
|
y as Fetch,
|
|
1274
|
-
|
|
1291
|
+
is as Frequency,
|
|
1292
|
+
Ur as GlobalAccountFilter,
|
|
1275
1293
|
R as GlobalCopyApi,
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1294
|
+
Xt as GlobalCopyStore,
|
|
1295
|
+
Xr as GlobalDataContext,
|
|
1296
|
+
jr as GlobalDataProvider,
|
|
1279
1297
|
Ke as GlobalStore,
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1298
|
+
Br as GoalType,
|
|
1299
|
+
Oo as INCOME_ACCOUNT_TYPES,
|
|
1300
|
+
vs as IconBacking,
|
|
1301
|
+
Ts as InformationTooltip,
|
|
1302
|
+
dr as InsightNotificationTypes,
|
|
1285
1303
|
Ut as IterationItemTypes,
|
|
1286
1304
|
We as LOADING_STATUS,
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1305
|
+
Go as ListItemAction,
|
|
1306
|
+
Ro as ListItemRow,
|
|
1307
|
+
ts as ListItemWrapper,
|
|
1308
|
+
Is as Loader,
|
|
1291
1309
|
Ye as LocalizedCopyApi,
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1310
|
+
Ir as MetaType,
|
|
1311
|
+
tr as MfaStatuses,
|
|
1312
|
+
Ms as MicroWidgetContainer,
|
|
1313
|
+
Us as MiniWidgetContainer,
|
|
1296
1314
|
je as MultiSegmentDonut,
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1315
|
+
er as NonConnectedStatuses,
|
|
1316
|
+
No as NotificationApi,
|
|
1317
|
+
lr as NotificationTypes,
|
|
1318
|
+
ys as ORDINAL_DATE_FORMAT,
|
|
1319
|
+
Ss as ORDINAL_MONTH_DAY_YEAR_FORMAT,
|
|
1320
|
+
Po as PAYMENT_ACCOUNT_TYPES,
|
|
1321
|
+
vr as PaymentCategories,
|
|
1304
1322
|
Lt as PlanTypes,
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1323
|
+
sr as ProcessingStatuses,
|
|
1324
|
+
rr as PropertyType,
|
|
1325
|
+
or as PropertyTypeName,
|
|
1326
|
+
Ge as RECURRENCE_COPY,
|
|
1327
|
+
ns as RecurrenceStatus,
|
|
1328
|
+
cs as RecurrenceType,
|
|
1311
1329
|
Mt as RecurrenceTypes,
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1330
|
+
ds as RepeatingType,
|
|
1331
|
+
Os as ResponsiveButton,
|
|
1332
|
+
Fo as SPENDING_ACCOUNT_TYPES,
|
|
1333
|
+
Zt as ScheduledPaymentTypes,
|
|
1316
1334
|
Qe as ScheduledPaymentsApi,
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1335
|
+
Jt as ScreenSize,
|
|
1336
|
+
qo as SearchBox,
|
|
1337
|
+
ls as Select,
|
|
1338
|
+
Fs as SelectionBox,
|
|
1339
|
+
Rs as SingleSegmentDonut,
|
|
1340
|
+
Lo as Sizes,
|
|
1341
|
+
Gs as StatusBar,
|
|
1342
|
+
ar as StatusName,
|
|
1343
|
+
Uo as TOUCH_TARGET,
|
|
1344
|
+
qs as TabContentContainer,
|
|
1345
|
+
ur as ToggleButtonListItem,
|
|
1346
|
+
hr as ToggleListItem,
|
|
1347
|
+
Nr as TrackType,
|
|
1348
|
+
es as TransactionStatus,
|
|
1349
|
+
ot as TransactionType,
|
|
1350
|
+
G as UserApi,
|
|
1333
1351
|
ne as UserStore,
|
|
1334
|
-
|
|
1352
|
+
zt as UserVerification,
|
|
1335
1353
|
W as WidgetApi,
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1354
|
+
ps as WidgetContainer,
|
|
1355
|
+
Kr as WidgetContainerContext,
|
|
1356
|
+
zr as WidgetContainerProvider,
|
|
1357
|
+
mr as analyticsSession,
|
|
1358
|
+
Qo as buildDynamicCopy,
|
|
1359
|
+
Xo as buildPluralCopy,
|
|
1360
|
+
$r as formatCurrency,
|
|
1361
|
+
bs as formatDate,
|
|
1362
|
+
Or as formatOrdinal,
|
|
1363
|
+
Pr as formatPercentage,
|
|
1364
|
+
zo as fromTimestampToMonthYear,
|
|
1365
|
+
Do as getCategory,
|
|
1366
|
+
vo as getCategoryTotalsByParent,
|
|
1349
1367
|
qe as getClientTheme,
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1368
|
+
Fr as getCurrencyCodes,
|
|
1369
|
+
Eo as getDetailedCategory,
|
|
1370
|
+
To as getDetailedSubCategory,
|
|
1371
|
+
jo as getLocale,
|
|
1372
|
+
Bo as isIncome,
|
|
1373
|
+
Hr as isValidNumber,
|
|
1374
|
+
Zo as useAccountDisplayName,
|
|
1375
|
+
Vr as useAccountStore,
|
|
1376
|
+
Zr as useAppConfig,
|
|
1377
|
+
Jr as useBudgetsStore,
|
|
1378
|
+
to as useCashflowStore,
|
|
1379
|
+
eo as useCategoryStore,
|
|
1380
|
+
_r as useCombineEvents,
|
|
1381
|
+
fr as useCombinePageviews,
|
|
1382
|
+
so as useDebtStore,
|
|
1383
|
+
ro as useError,
|
|
1384
|
+
oo as useEvent,
|
|
1385
|
+
ao as useFinstrongStore,
|
|
1386
|
+
io as useGlobalCopyStore,
|
|
1387
|
+
no as useGlobalStore,
|
|
1388
|
+
co as useGlobalUiStore,
|
|
1389
|
+
lo as useGoalStore,
|
|
1390
|
+
uo as useHelpStore,
|
|
1391
|
+
ho as useHoldingStore,
|
|
1392
|
+
ta as useInsightsEnabled,
|
|
1393
|
+
go as useLoad,
|
|
1394
|
+
po as useMerchantStore,
|
|
1395
|
+
mo as useNetWorthStore,
|
|
1396
|
+
_o as useNotificationStore,
|
|
1397
|
+
fo as usePageView,
|
|
1398
|
+
yo as useRecurringTransactionsStore,
|
|
1399
|
+
sa as useScreenSize,
|
|
1400
|
+
So as useSettingsStore,
|
|
1401
|
+
bo as useTransactionStore,
|
|
1402
|
+
wo as useTrendsStore,
|
|
1403
|
+
Co as useUserStore,
|
|
1404
|
+
xo as useWidgetContainerProvider,
|
|
1405
|
+
oa as useWidgetLoadTimer
|
|
1387
1406
|
};
|