@mx-cartographer/experiences 7.4.7-alpha.mega1 → 7.4.8-alpha.mm0
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 +2 -2
- package/dist/{Account-01wOyrH1.mjs → Account-BrOTlmeK.mjs} +1 -1
- package/dist/{AccountDetailsContent-COMjOzwr.mjs → AccountDetailsContent-B7FqH05C.mjs} +8 -8
- package/dist/{AccountDetailsHeader-Cbi5G6fJ.mjs → AccountDetailsHeader-C8MxsxhN.mjs} +4 -4
- package/dist/{AccountFields-Cd_nOWmf.mjs → AccountFields-BQZ-o6Kj.mjs} +2 -2
- package/dist/{AccountListItem-DxY4cCF1.mjs → AccountListItem-aIE9WWTO.mjs} +4 -4
- package/dist/{AccountStore-C1zMBzHq.mjs → AccountStore-DqO84Aer.mjs} +2 -2
- package/dist/{Accounts-D7QljYas.mjs → Accounts-DC_A4UCa.mjs} +1 -1
- package/dist/{BudgetUtil-Df2nII9u.mjs → BudgetUtil-BmZXkL0C.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-DqJK_rrL.mjs → CategorySelectorDrawer-SUgfE5GN.mjs} +1 -1
- package/dist/{ConnectDrawer-CuUj16NH.mjs → ConnectDrawer-KL8t1qSC.mjs} +1 -1
- package/dist/{ConnectionsDrawer-Bz4uwdFE.mjs → ConnectionsDrawer-DaK5uIL5.mjs} +2 -2
- package/dist/{CurrencyInput-BFKcs-_K.mjs → CurrencyInput-itK0R3wV.mjs} +1 -1
- package/dist/{DebtsStore-Bu8rRRSL.mjs → DebtsStore-DVPZbv2C.mjs} +1 -1
- package/dist/{ExportCsvAction-DzTrtPzk.mjs → ExportCsvAction-Cglo8Mca.mjs} +3 -3
- package/dist/{GoalStore-CrNhjvNc.mjs → GoalStore-o4rrjGSJ.mjs} +2 -2
- package/dist/{Help-BnPXM_N2.mjs → Help-BjLMsuMS.mjs} +1 -1
- package/dist/{LineChart-bc1D9xBE.mjs → LineChart-BQRxZF3p.mjs} +1 -1
- package/dist/{ListItemAction-uobBrm_a.mjs → ListItemAction-BxTkF6Tz.mjs} +1 -1
- package/dist/{ManageIncome-A69EUO5u.mjs → ManageIncome-rcnDYsBJ.mjs} +75 -75
- package/dist/{MicroWidgetContainer-DEiRnYVa.mjs → MicroWidgetContainer-B2hO9rOG.mjs} +1 -1
- package/dist/{MiniWidgetContainer-CmXpTylX.mjs → MiniWidgetContainer-98-hKFqm.mjs} +1 -1
- package/dist/{NetWorthStore-CpL_kqvx.mjs → NetWorthStore-DG2X69jG.mjs} +2 -2
- package/dist/{NotificationSettings-CNmJWVeI.mjs → NotificationSettings-C7FYNM7I.mjs} +250 -248
- package/dist/{OriginalBalanceAction-DK8_LkPz.mjs → OriginalBalanceAction-C6jdS4ws.mjs} +3 -3
- package/dist/{RecurringSettings-B0uObPlD.mjs → RecurringSettings-C81H1l38.mjs} +3 -3
- package/dist/{SpendingLegend-Bf-wbJvb.mjs → SpendingLegend-DqZxN_BZ.mjs} +2 -2
- package/dist/{TransactionDetails-COH0OKNG.mjs → TransactionDetails-BA_E5nQ-.mjs} +5 -5
- package/dist/{TransactionStore-Dz-G8Wd0.mjs → TransactionStore-PRlwE-TF.mjs} +2 -2
- package/dist/{User-wXzDI4M8.mjs → User-Cnlegl1N.mjs} +1 -1
- package/dist/{ViewMoreMicroCard-C0832BMe.mjs → ViewMoreMicroCard-DfPXJzbv.mjs} +105 -101
- package/dist/{WidgetContainer-6dsjtOVg.mjs → WidgetContainer-CaPjoWeE.mjs} +2 -2
- package/dist/accounts/index.es.js +148 -140
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +483 -478
- package/dist/cashflow/index.es.js +367 -362
- package/dist/categories/index.es.js +1 -1
- package/dist/common/hooks/index.d.ts +1 -0
- package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
- package/dist/common/index.es.js +35 -33
- package/dist/dashboard/index.es.js +90 -88
- package/dist/debts/index.es.js +346 -342
- package/dist/{exportTransactionsToCSV-Cz2t0lmA.mjs → exportTransactionsToCSV-DuAaI5XA.mjs} +1 -1
- package/dist/finstrong/index.es.js +352 -350
- package/dist/goals/index.es.js +518 -511
- package/dist/help/index.es.js +13 -9
- package/dist/{hooks-C41HAxM5.mjs → hooks-ZMp65DFz.mjs} +11 -11
- package/dist/investments/index.es.js +395 -393
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +245 -240
- package/dist/notifications/index.es.js +2 -2
- package/dist/recurringtransactions/index.es.js +293 -285
- package/dist/settings/index.es.js +252 -249
- package/dist/spending/index.es.js +136 -124
- package/dist/transactions/index.es.js +77 -73
- package/dist/trends/index.es.js +601 -588
- package/dist/{useAccountDisplayName-CMMlIOXF.mjs → useAccountDisplayName-Cjx8YmKK.mjs} +2 -2
- package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-B7dxpDrX.mjs} +1 -1
- package/dist/useWidgetLoadTimer-C1NBkyLd.mjs +23 -0
- package/package.json +1 -1
|
@@ -3,3 +3,4 @@ export { useCombineEvents, useCombinePageviews } from './useCombineEvents';
|
|
|
3
3
|
export { useInsightsEnabled } from './useInsightsEnabled';
|
|
4
4
|
export { useScreenSize } from './useScreenSize';
|
|
5
5
|
export { usePrevious } from './usePrevious';
|
|
6
|
+
export { useWidgetLoadTimer } from './useWidgetLoadTimer';
|
package/dist/common/index.es.js
CHANGED
|
@@ -6,30 +6,30 @@ import { C as et } from "../CategoryStore-U7hOZAbP.mjs";
|
|
|
6
6
|
import { a as ls } from "../CategoryStore-U7hOZAbP.mjs";
|
|
7
7
|
import { N as st } from "../NotificationStore-CDX_kqHa.mjs";
|
|
8
8
|
import { a as hs } from "../NotificationStore-CDX_kqHa.mjs";
|
|
9
|
-
import { T as rt } from "../User-
|
|
10
|
-
import { C as ps, b as ms, L as _s, a as fs } from "../User-
|
|
9
|
+
import { T as rt } from "../User-Cnlegl1N.mjs";
|
|
10
|
+
import { C as ps, b as ms, L as _s, a as fs } from "../User-Cnlegl1N.mjs";
|
|
11
11
|
import { H as ot } from "../Help-DhcC-C05.mjs";
|
|
12
12
|
import { E as Ss } from "../Help-DhcC-C05.mjs";
|
|
13
|
-
import { M as ws } from "../MicroWidgetContainer-
|
|
14
|
-
import { M as Cs } from "../MiniWidgetContainer-
|
|
15
|
-
import { A as Ds, D as As, W as Es } from "../WidgetContainer-
|
|
16
|
-
import { k as Bs, a as Is, e as Ns, h as Ms, A as $s, f as ks, l as Rs, d as Us, n as Ps, E as Os, j as Ls, N as Gs, i as Hs, P as Fs, o as Ws, S as qs } from "../ConnectDrawer-
|
|
17
|
-
import { C as Qs } from "../CurrencyInput-
|
|
13
|
+
import { M as ws } from "../MicroWidgetContainer-B2hO9rOG.mjs";
|
|
14
|
+
import { M as Cs } from "../MiniWidgetContainer-98-hKFqm.mjs";
|
|
15
|
+
import { A as Ds, D as As, W as Es } from "../WidgetContainer-CaPjoWeE.mjs";
|
|
16
|
+
import { k as Bs, a as Is, e as Ns, h as Ms, A as $s, f as ks, l as Rs, d as Us, n as Ps, E as Os, j as Ls, N as Gs, i as Hs, P as Fs, o as Ws, S as qs } from "../ConnectDrawer-KL8t1qSC.mjs";
|
|
17
|
+
import { C as Qs } from "../CurrencyInput-itK0R3wV.mjs";
|
|
18
18
|
import { L as Xs } from "../Loader-DUaFpDGv.mjs";
|
|
19
19
|
import { R as Ks } from "../ResponsiveButton-DZFp78fJ.mjs";
|
|
20
20
|
import { S as Zs } from "../SearchBox-B2_zLv8-.mjs";
|
|
21
|
-
import { T as at } from "../TransactionStore-
|
|
22
|
-
import { S as tr } from "../TransactionStore-
|
|
21
|
+
import { T as at } from "../TransactionStore-PRlwE-TF.mjs";
|
|
22
|
+
import { S as tr } from "../TransactionStore-PRlwE-TF.mjs";
|
|
23
23
|
import { T as sr } from "../TabContentContainer-j01JYR_7.mjs";
|
|
24
24
|
import { I as or } from "../IconBacking-B9oC6uL2.mjs";
|
|
25
25
|
import { D as nr, F as ir, a as cr, c as dr, R as lr, S as ur } from "../RecurringTransactions-BqijW_8S.mjs";
|
|
26
26
|
import { C as nt } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
27
27
|
import { I as gr } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
28
|
-
import { d as it } from "../GoalStore-
|
|
29
|
-
import { C as mr, G as _r, M as fr, T as yr } from "../GoalStore-
|
|
28
|
+
import { d as it } from "../GoalStore-o4rrjGSJ.mjs";
|
|
29
|
+
import { C as mr, G as _r, M as fr, T as yr } from "../GoalStore-o4rrjGSJ.mjs";
|
|
30
30
|
import { C as br } from "../CurrencyText-Dr0EZ7bp.mjs";
|
|
31
31
|
import { E as xr } from "../EmptyState-DoxNUae-.mjs";
|
|
32
|
-
import { L as vr } from "../ListItemAction-
|
|
32
|
+
import { L as vr } from "../ListItemAction-BxTkF6Tz.mjs";
|
|
33
33
|
import { T as ct } from "../TrendsStore-BW9FGQeE.mjs";
|
|
34
34
|
import { L as Ar } from "../TrendsStore-BW9FGQeE.mjs";
|
|
35
35
|
import { A as Tr, B as Br, I as Ir, N as Nr, T as Mr, a as $r } from "../ToggleListItem-ciFTiqRS.mjs";
|
|
@@ -42,35 +42,36 @@ import { a as Pr, D as Or, O as Lr, b as Gr, f as Hr } from "../Dialog-BPTr3qHE.
|
|
|
42
42
|
import { D as gt, a as pt } from "../SingleSegmentDonut-BgbLgwHi.mjs";
|
|
43
43
|
import { S as Wr } from "../SingleSegmentDonut-BgbLgwHi.mjs";
|
|
44
44
|
import { D as Yr } from "../Drawer-BEtCk82g.mjs";
|
|
45
|
-
import { I as zr, P as Xr, S as jr } from "../Account-
|
|
45
|
+
import { I as zr, P as Xr, S as jr } from "../Account-BrOTlmeK.mjs";
|
|
46
46
|
import { b as E } from "../Category-CevNQ03n.mjs";
|
|
47
47
|
import { C as Vr, c as Zr, a as Jr, P as to } from "../Category-CevNQ03n.mjs";
|
|
48
48
|
import { C as so, f as ro, b as oo, a as ao, g as no, i as io } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
49
49
|
import { R as mt } from "../RecurringTransactionsStore-BhBUVm9a.mjs";
|
|
50
50
|
import { S as lo, T as uo } from "../RecurringTransactionsStore-BhBUVm9a.mjs";
|
|
51
|
-
import { G as go, C as po, D as mo, W as _o, d as fo, a as yo, i as So,
|
|
52
|
-
import { u as qo } from "../useAccountDisplayName-
|
|
53
|
-
import { u as Qo } from "../useInsightsEnabled-
|
|
51
|
+
import { G as go, C as po, D as mo, W as _o, d as fo, a as yo, i as So, t as bo, m as wo, w as xo, x as Co, g as vo, z as Do, u as Ao, f as Eo, b as To, l as Bo, A as Io, s as No, y as Mo, c as $o, q as ko, n as Ro, B as Uo, j as Po, r as Oo, h as Lo, v as Go, o as Ho, p as Fo } from "../hooks-ZMp65DFz.mjs";
|
|
52
|
+
import { u as qo } from "../useAccountDisplayName-Cjx8YmKK.mjs";
|
|
53
|
+
import { u as Qo } from "../useInsightsEnabled-B7dxpDrX.mjs";
|
|
54
54
|
import { u as Xo } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
55
|
+
import { u as Ko } from "../useWidgetLoadTimer-C1NBkyLd.mjs";
|
|
55
56
|
import { makeAutoObservable as f, runInAction as p, reaction as _t, autorun as ft } from "mobx";
|
|
56
|
-
import { a as yt } from "../AccountStore-
|
|
57
|
+
import { a as yt } from "../AccountStore-DqO84Aer.mjs";
|
|
57
58
|
import St from "posthog-js";
|
|
58
59
|
import { B as bt } from "../BeatStore-D_NYuBSz.mjs";
|
|
59
60
|
import { endOfMonth as Z } from "date-fns/endOfMonth";
|
|
60
61
|
import { startOfMonth as J } from "date-fns/startOfMonth";
|
|
61
62
|
import { startOfToday as O } from "date-fns/startOfToday";
|
|
62
|
-
import { f as wt, a as xt, b as L } from "../BudgetUtil-
|
|
63
|
-
import { g as
|
|
64
|
-
import { a as Ct } from "../DebtsStore-
|
|
63
|
+
import { f as wt, a as xt, b as L } from "../BudgetUtil-BmZXkL0C.mjs";
|
|
64
|
+
import { g as Zo, e as Jo, c as ta, d as ea, i as sa } from "../BudgetUtil-BmZXkL0C.mjs";
|
|
65
|
+
import { a as Ct } from "../DebtsStore-DVPZbv2C.mjs";
|
|
65
66
|
import { F as vt } from "../FinstrongStore-BIrX0Xg2.mjs";
|
|
66
67
|
import { A as Dt, m as At, a as Et, b as Tt } from "../InvestmentUtil-jOyOgzIB.mjs";
|
|
67
68
|
import { M as Bt } from "../MerchantStore-WvZ4gnQe.mjs";
|
|
68
|
-
import { N as It } from "../NetWorthStore-
|
|
69
|
+
import { N as It } from "../NetWorthStore-DG2X69jG.mjs";
|
|
69
70
|
import { a as Nt } from "../SettingsStore-krIRNwHK.mjs";
|
|
70
71
|
import { addMonths as Mt } from "date-fns/addMonths";
|
|
71
72
|
import { getMonth as T } from "date-fns/getMonth";
|
|
72
|
-
import { i as
|
|
73
|
-
import { b as
|
|
73
|
+
import { i as oa } from "../DateUtil-CBdcsyuk.mjs";
|
|
74
|
+
import { b as na, a as ia, g as ca } from "../Localization-2MODESHW.mjs";
|
|
74
75
|
import { alpha as $t, lighten as G, darken as H } from "@mui/material";
|
|
75
76
|
var kt = /* @__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))(kt || {});
|
|
76
77
|
const Qe = [
|
|
@@ -1345,21 +1346,21 @@ export {
|
|
|
1345
1346
|
mo as WidgetContainerContext,
|
|
1346
1347
|
_o as WidgetContainerProvider,
|
|
1347
1348
|
os as analyticsSession,
|
|
1348
|
-
|
|
1349
|
-
|
|
1349
|
+
na as buildDynamicCopy,
|
|
1350
|
+
ia as buildPluralCopy,
|
|
1350
1351
|
ro as formatCurrency,
|
|
1351
1352
|
Hr as formatDate,
|
|
1352
1353
|
oo as formatOrdinal,
|
|
1353
1354
|
ao as formatPercentage,
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1355
|
+
oa as fromTimestampToMonthYear,
|
|
1356
|
+
Zo as getCategory,
|
|
1357
|
+
Jo as getCategoryTotalsByParent,
|
|
1357
1358
|
Xe as getClientTheme,
|
|
1358
1359
|
no as getCurrencyCodes,
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1360
|
+
ta as getDetailedCategory,
|
|
1361
|
+
ea as getDetailedSubCategory,
|
|
1362
|
+
ca as getLocale,
|
|
1363
|
+
sa as isIncome,
|
|
1363
1364
|
io as isValidNumber,
|
|
1364
1365
|
qo as useAccountDisplayName,
|
|
1365
1366
|
fo as useAccountStore,
|
|
@@ -1392,5 +1393,6 @@ export {
|
|
|
1392
1393
|
Lo as useTransactionStore,
|
|
1393
1394
|
Go as useTrendsStore,
|
|
1394
1395
|
Ho as useUserStore,
|
|
1395
|
-
Fo as useWidgetContainerProvider
|
|
1396
|
+
Fo as useWidgetContainerProvider,
|
|
1397
|
+
Ko as useWidgetLoadTimer
|
|
1396
1398
|
};
|
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as t, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import c from "react";
|
|
3
3
|
import { observer as _ } from "mobx-react-lite";
|
|
4
4
|
import h from "@mui/material/Unstable_Grid2";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import d from "@mui/material/Skeleton";
|
|
6
|
+
import s from "@mui/material/Stack";
|
|
7
7
|
import D from "@mui/material/styles/useTheme";
|
|
8
|
-
import { f as A, u as v, d as C, b as M, a as k
|
|
9
|
-
import
|
|
10
|
-
import { Icon as S, H1 as
|
|
11
|
-
import { useMediaQuery as
|
|
8
|
+
import { f as A, u as v, d as C, b as M, a as k } from "../hooks-ZMp65DFz.mjs";
|
|
9
|
+
import B from "@mui/material/Paper";
|
|
10
|
+
import { Icon as S, H1 as G, P as F } from "@mxenabled/mxui";
|
|
11
|
+
import { useMediaQuery as W } from "@mui/system";
|
|
12
12
|
import T from "@mui/material/Box";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import { k as
|
|
13
|
+
import I from "@mui/material/Button";
|
|
14
|
+
import $ from "@mui/material/IconButton";
|
|
15
|
+
import H from "@mui/material/Tooltip";
|
|
16
|
+
import R from "@mui/material/useMediaQuery";
|
|
17
|
+
import { k as j, l as Q } from "../ConnectDrawer-KL8t1qSC.mjs";
|
|
18
18
|
import { u as z } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
19
|
-
|
|
19
|
+
import { u as E } from "../useWidgetLoadTimer-C1NBkyLd.mjs";
|
|
20
|
+
const N = _(() => {
|
|
20
21
|
const e = D(), {
|
|
21
|
-
appDataStore: { banner:
|
|
22
|
+
appDataStore: { banner: r, loadBanner: i, user: u }
|
|
22
23
|
} = A();
|
|
23
|
-
return
|
|
24
|
+
return c.useEffect(() => {
|
|
24
25
|
i().finally();
|
|
25
|
-
}, [
|
|
26
|
-
|
|
26
|
+
}, [u]), r?.image_url ? /* @__PURE__ */ t(
|
|
27
|
+
s,
|
|
27
28
|
{
|
|
28
29
|
sx: {
|
|
29
30
|
alignItems: "center",
|
|
@@ -33,7 +34,7 @@ const P = _(() => {
|
|
|
33
34
|
children: /* @__PURE__ */ t(
|
|
34
35
|
"a",
|
|
35
36
|
{
|
|
36
|
-
href:
|
|
37
|
+
href: r?.redirect_url,
|
|
37
38
|
rel: "noreferrer",
|
|
38
39
|
style: {
|
|
39
40
|
width: "100%"
|
|
@@ -43,7 +44,7 @@ const P = _(() => {
|
|
|
43
44
|
"img",
|
|
44
45
|
{
|
|
45
46
|
alt: "",
|
|
46
|
-
src:
|
|
47
|
+
src: r.image_url,
|
|
47
48
|
style: {
|
|
48
49
|
width: "100%",
|
|
49
50
|
height: "auto",
|
|
@@ -55,25 +56,25 @@ const P = _(() => {
|
|
|
55
56
|
)
|
|
56
57
|
}
|
|
57
58
|
) : null;
|
|
58
|
-
}),
|
|
59
|
-
const { common:
|
|
60
|
-
return /* @__PURE__ */ t(T, { my: 4, children: i ? /* @__PURE__ */ t(
|
|
61
|
-
|
|
59
|
+
}), P = ({ handleConnectClick: e }) => {
|
|
60
|
+
const { common: r } = v(), i = R("(max-width: 700px)");
|
|
61
|
+
return /* @__PURE__ */ t(T, { my: 4, children: i ? /* @__PURE__ */ t(H, { id: "add-accounts", placement: "bottom", title: r.add_accounts, children: /* @__PURE__ */ t(
|
|
62
|
+
$,
|
|
62
63
|
{
|
|
63
64
|
"aria-controls": "add_accounts",
|
|
64
65
|
"aria-describedby": "add-accounts",
|
|
65
66
|
"aria-haspopup": !0,
|
|
66
|
-
"aria-label":
|
|
67
|
+
"aria-label": r.add_accounts,
|
|
67
68
|
color: "primary",
|
|
68
69
|
onClick: e,
|
|
69
70
|
children: /* @__PURE__ */ t(S, { name: "add", size: 24 })
|
|
70
71
|
}
|
|
71
72
|
) }) : /* @__PURE__ */ t(
|
|
72
|
-
|
|
73
|
+
I,
|
|
73
74
|
{
|
|
74
75
|
"aria-controls": "add_accounts",
|
|
75
76
|
"aria-haspopup": !0,
|
|
76
|
-
"aria-label":
|
|
77
|
+
"aria-label": r.add_accounts,
|
|
77
78
|
onClick: e,
|
|
78
79
|
startIcon: /* @__PURE__ */ t(S, { name: "add", size: 24 }),
|
|
79
80
|
sx: {
|
|
@@ -82,44 +83,44 @@ const P = _(() => {
|
|
|
82
83
|
minWidth: "max-content"
|
|
83
84
|
},
|
|
84
85
|
variant: "text",
|
|
85
|
-
children:
|
|
86
|
+
children: r.add_accounts
|
|
86
87
|
}
|
|
87
88
|
) });
|
|
88
|
-
}, O = _(
|
|
89
|
-
const [e,
|
|
89
|
+
}, O = _(P), U = () => {
|
|
90
|
+
const [e, r] = c.useState(!1), i = W("(max-width:320px)"), { visibleAccounts: u } = C(), { selectedAccountGuids: g, setSelectedAccountGuids: b } = M(), { common: o, connect: l } = v(), { config: m } = k(), { isMobile: x } = z(), n = {
|
|
90
91
|
accountFilterOptionsCopy: {
|
|
91
|
-
accountTypeAccounts:
|
|
92
|
-
cancelButton:
|
|
93
|
-
filterButton:
|
|
94
|
-
filterButtonAria:
|
|
95
|
-
selectAllAccounts:
|
|
96
|
-
toggleAccountTypeAccounts:
|
|
97
|
-
unselectAllAccounts:
|
|
98
|
-
zeroStateButton:
|
|
99
|
-
zeroStateDescription:
|
|
100
|
-
zeroStateTitle:
|
|
92
|
+
accountTypeAccounts: o.account_filter.account_type_accounts,
|
|
93
|
+
cancelButton: o.cancel_button,
|
|
94
|
+
filterButton: o.filter_button,
|
|
95
|
+
filterButtonAria: o.account_filter.filter_button_generic_aria,
|
|
96
|
+
selectAllAccounts: o.account_filter.select_all_accounts,
|
|
97
|
+
toggleAccountTypeAccounts: o.account_filter.toggle_account_type_accounts,
|
|
98
|
+
unselectAllAccounts: o.account_filter.unselect_all_accounts,
|
|
99
|
+
zeroStateButton: o.account_filter.zero_state_button,
|
|
100
|
+
zeroStateDescription: o.account_filter.zero_state_description,
|
|
101
|
+
zeroStateTitle: o.account_filter.zero_state_title
|
|
101
102
|
},
|
|
102
|
-
title:
|
|
103
|
-
},
|
|
103
|
+
title: o.filter_button
|
|
104
|
+
}, w = () => {
|
|
104
105
|
const p = (/* @__PURE__ */ new Date()).getHours();
|
|
105
|
-
return p > 1 && p < 12 ?
|
|
106
|
+
return p > 1 && p < 12 ? o.good_morning : p >= 12 && p < 18 ? o.good_afternoon : o.good_evening;
|
|
106
107
|
};
|
|
107
|
-
return /* @__PURE__ */
|
|
108
|
-
/* @__PURE__ */ t(
|
|
109
|
-
/* @__PURE__ */ s
|
|
110
|
-
/* @__PURE__ */ t(
|
|
111
|
-
/* @__PURE__ */ t(
|
|
108
|
+
return /* @__PURE__ */ a(c.Fragment, { children: [
|
|
109
|
+
/* @__PURE__ */ t(B, { sx: { gap: 12, mb: x ? 24 : 0, p: 24 }, children: /* @__PURE__ */ a(s, { alignItems: "center", flexDirection: "row", justifyContent: "space-between", children: [
|
|
110
|
+
/* @__PURE__ */ a(s, { children: [
|
|
111
|
+
/* @__PURE__ */ t(G, { variant: i ? "H2" : "H1", children: w() }),
|
|
112
|
+
/* @__PURE__ */ t(F, { color: "text.secondary", children: o.heres_your_spending_overview })
|
|
112
113
|
] }),
|
|
113
|
-
/* @__PURE__ */ s
|
|
114
|
-
|
|
114
|
+
/* @__PURE__ */ a(s, { flexDirection: "row", children: [
|
|
115
|
+
m.show_connections_widget_in_master && /* @__PURE__ */ t(O, { handleConnectClick: () => r(!0) }),
|
|
115
116
|
/* @__PURE__ */ t(
|
|
116
|
-
|
|
117
|
+
j,
|
|
117
118
|
{
|
|
118
|
-
accounts:
|
|
119
|
-
copy:
|
|
120
|
-
onConnectAccountClick:
|
|
121
|
-
onFilterClick: (
|
|
122
|
-
b(
|
|
119
|
+
accounts: u,
|
|
120
|
+
copy: n,
|
|
121
|
+
onConnectAccountClick: m.show_connections_widget_in_master ? () => r(!0) : void 0,
|
|
122
|
+
onFilterClick: (y) => {
|
|
123
|
+
b(y);
|
|
123
124
|
},
|
|
124
125
|
selectedAccountGuids: g,
|
|
125
126
|
showAccountNumbers: !1,
|
|
@@ -134,50 +135,51 @@ const P = _(() => {
|
|
|
134
135
|
e && /* @__PURE__ */ t(
|
|
135
136
|
Q,
|
|
136
137
|
{
|
|
137
|
-
onClose: () =>
|
|
138
|
+
onClose: () => r(!1),
|
|
138
139
|
showConnectWidget: e,
|
|
139
|
-
title:
|
|
140
|
+
title: l.mini_title
|
|
140
141
|
}
|
|
141
142
|
)
|
|
142
143
|
] });
|
|
143
144
|
}, q = _(U);
|
|
144
145
|
var f = /* @__PURE__ */ ((e) => (e[e.Main = 0] = "Main", e[e.RightSide = 1] = "RightSide", e[e.Disabled = 2] = "Disabled", e))(f || {});
|
|
145
|
-
const J = ({ widgets: e, isLoading:
|
|
146
|
-
const { isDesktop: i, isMobile:
|
|
147
|
-
|
|
148
|
-
b(
|
|
149
|
-
}, [
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
146
|
+
const J = ({ widgets: e, isLoading: r }) => {
|
|
147
|
+
const { isDesktop: i, isMobile: u } = z(), { copyStore: g } = A(), { setSelectedAccounts: b } = M(), { visibleAccounts: o } = C();
|
|
148
|
+
c.useEffect(() => {
|
|
149
|
+
b(o);
|
|
150
|
+
}, [o]), E({
|
|
151
|
+
widgetName: "Dashboard",
|
|
152
|
+
isLoaded: !r
|
|
153
|
+
});
|
|
154
|
+
const l = c.useMemo(
|
|
155
|
+
() => e.filter((n) => n.location !== f.Disabled).sort((n, w) => n.index - w.index),
|
|
154
156
|
[e]
|
|
155
|
-
),
|
|
156
|
-
() =>
|
|
157
|
-
[
|
|
158
|
-
),
|
|
159
|
-
() =>
|
|
160
|
-
[
|
|
157
|
+
), m = c.useMemo(
|
|
158
|
+
() => l.filter((n) => n.location === f.Main),
|
|
159
|
+
[l]
|
|
160
|
+
), x = c.useMemo(
|
|
161
|
+
() => l.filter((n) => n.location === f.RightSide),
|
|
162
|
+
[l]
|
|
161
163
|
);
|
|
162
|
-
return /* @__PURE__ */
|
|
164
|
+
return /* @__PURE__ */ a(h, { container: !0, spacing: u ? 0 : 24, sx: { overflow: "scroll" }, children: [
|
|
163
165
|
/* @__PURE__ */ t(h, { xs: 12, children: g.isInitialized && /* @__PURE__ */ t(q, {}) }),
|
|
164
|
-
/* @__PURE__ */
|
|
165
|
-
/* @__PURE__ */ t(
|
|
166
|
-
|
|
167
|
-
/* @__PURE__ */ t(
|
|
168
|
-
/* @__PURE__ */ t(
|
|
169
|
-
/* @__PURE__ */ t(
|
|
166
|
+
/* @__PURE__ */ a(h, { lg: 8, xs: 12, children: [
|
|
167
|
+
/* @__PURE__ */ t(N, {}),
|
|
168
|
+
r && /* @__PURE__ */ a(s, { direction: "column", spacing: 24, children: [
|
|
169
|
+
/* @__PURE__ */ t(d, { height: 100, variant: "rounded", width: "100%" }),
|
|
170
|
+
/* @__PURE__ */ t(d, { height: 300, variant: "rounded", width: "100%" }),
|
|
171
|
+
/* @__PURE__ */ t(d, { height: 300, variant: "rounded", width: "100%" })
|
|
170
172
|
] }),
|
|
171
|
-
!
|
|
173
|
+
!r && /* @__PURE__ */ t(s, { direction: "column", spacing: 24, children: i ? m.map((n) => /* @__PURE__ */ t(c.Fragment, { children: n.component }, n.index)) : l.map((n) => /* @__PURE__ */ t(c.Fragment, { children: n.component }, n.index)) })
|
|
172
174
|
] }),
|
|
173
|
-
i && /* @__PURE__ */ t(h, { lg: 4, children:
|
|
174
|
-
/* @__PURE__ */ t(
|
|
175
|
-
/* @__PURE__ */ t(
|
|
176
|
-
/* @__PURE__ */ t(
|
|
177
|
-
] }) : /* @__PURE__ */ t(
|
|
175
|
+
i && /* @__PURE__ */ t(h, { lg: 4, children: r ? /* @__PURE__ */ a(s, { direction: "column", spacing: 24, children: [
|
|
176
|
+
/* @__PURE__ */ t(d, { height: 200, variant: "rounded", width: "100%" }),
|
|
177
|
+
/* @__PURE__ */ t(d, { height: 100, variant: "rounded", width: "100%" }),
|
|
178
|
+
/* @__PURE__ */ t(d, { height: 300, variant: "rounded", width: "100%" })
|
|
179
|
+
] }) : /* @__PURE__ */ t(s, { direction: "column", spacing: 24, children: x.map((n) => /* @__PURE__ */ t(c.Fragment, { children: n.component }, n.index)) }) })
|
|
178
180
|
] });
|
|
179
|
-
},
|
|
181
|
+
}, pt = _(J);
|
|
180
182
|
export {
|
|
181
|
-
|
|
183
|
+
pt as Dashboard,
|
|
182
184
|
f as DashboardLocation
|
|
183
185
|
};
|