@mx-cartographer/experiences 8.0.0-alpha.bb2 → 8.0.0-alpha.bb4
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 +128 -1
- package/dist/{Account-Bxw0_4FU.mjs → Account-B4CDD-zq.mjs} +1 -1
- package/dist/AccountDetailsContent-adZTkM52.mjs +683 -0
- package/dist/AccountDetailsHeader-DRjFuyJT.mjs +87 -0
- package/dist/{AccountFields-C9FlatNb.mjs → AccountFields-Cl4KHoSj.mjs} +14 -12
- package/dist/AccountListItem-wgmlex-_.mjs +90 -0
- package/dist/{AccountStore-BgNOyMdp.mjs → AccountStore-HbVblv86.mjs} +19 -8
- package/dist/{Accounts-BRf_YeTf.mjs → Accounts-CRUehOiy.mjs} +1 -1
- package/dist/{BeatApi-DhJpgCLz.mjs → BeatApi-De2IaqH2.mjs} +1 -1
- package/dist/{BeatStore-IBnXd4YK.mjs → BeatStore-D_NYuBSz.mjs} +1 -1
- package/dist/{BudgetUtil-B2ZXyw-g.mjs → BudgetUtil-Jv8h9H9l.mjs} +33 -33
- package/dist/{CashflowStore-D9Dpuz7X.mjs → CashflowStore-CA190BPF.mjs} +18 -25
- package/dist/{Category-CevNQ03n.mjs → Category-Ccoew_sA.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-Dl006GKy.mjs} +43 -41
- package/dist/{CategoryStore-yHI0hWmK.mjs → CategoryStore-MUwRWH9e.mjs} +13 -11
- package/dist/{CategoryUtil-pZRIYOgN.mjs → CategoryUtil-DfVKKkRf.mjs} +4 -4
- package/dist/{ConnectDrawer-BQNs-hjk.mjs → ConnectDrawer-DVp54lUH.mjs} +49 -48
- package/dist/{ConnectionsDrawer-ByGQE7D5.mjs → ConnectionsDrawer-Dsc04-4Z.mjs} +3 -3
- package/dist/CurrencyInput-D1cjbdCI.mjs +85 -0
- package/dist/{CurrencyText-kyC1aseI.mjs → CurrencyText-Dr0EZ7bp.mjs} +1 -1
- package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CDPZw_-m.mjs} +3 -3
- package/dist/{DebtsStore-C9bblOgW.mjs → DebtsStore-pL63fmdT.mjs} +3 -3
- package/dist/{Dialog-CWW597AF.mjs → Dialog-CDV0kKxj.mjs} +24 -24
- package/dist/{Donut-oaQFlbit.mjs → Donut-Dmy3JTWd.mjs} +12 -12
- package/dist/Drawer-BF40nbsH.mjs +163 -0
- package/dist/{EmptyState-DA_lfRBv.mjs → EmptyState-DoxNUae-.mjs} +24 -22
- package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-QhQK4_FU.mjs} +4 -4
- package/dist/{Fetch-87LIQbEA.mjs → Fetch-DecPFeGU.mjs} +24 -22
- package/dist/FinstrongStore-BGf36b0z.mjs +451 -0
- package/dist/{GoalStore-D-aB35SY.mjs → GoalStore-C1-w3Y1E.mjs} +7 -7
- package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
- package/dist/{Help-B6dIcujh.mjs → Help-DBfsTkAi.mjs} +125 -146
- package/dist/{Help-DhcC-C05.mjs → Help-c-zHlDbv.mjs} +8 -8
- package/dist/{IconBacking-B9oC6uL2.mjs → IconBacking-DgT8DCeh.mjs} +11 -11
- package/dist/LineChart-C1PxNf7P.mjs +581 -0
- package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-BNCWQAN_.mjs} +10 -10
- package/dist/Loader-Ckqi9Rx6.mjs +21 -0
- package/dist/{ManageIncome-1s_q5W4X.mjs → ManageIncome-8EsStyIQ.mjs} +195 -192
- package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-WvZ4gnQe.mjs} +1 -1
- package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +45 -0
- package/dist/MiniWidgetContainer-CKzf_Ira.mjs +56 -0
- package/dist/{NetWorthStore-DCsTZpuS.mjs → NetWorthStore-Bti6u-d9.mjs} +4 -4
- package/dist/{NotificationSettings-DqrkNMod.mjs → NotificationSettings-B74rQVYC.mjs} +276 -273
- package/dist/{NotificationStore-BxP_P2dA.mjs → NotificationStore-Ck2KdNmT.mjs} +10 -10
- package/dist/{NumberFormatting-Buh7u8Oi.mjs → NumberFormatting-DjTD0t3W.mjs} +9 -9
- package/dist/{OriginalBalanceAction-CWuVvRq9.mjs → OriginalBalanceAction-2Y_3U_mg.mjs} +10 -10
- package/dist/{RecurringSettings-A_rAGCTP.mjs → RecurringSettings-DAncu--R.mjs} +17 -17
- package/dist/{RecurringTransactions-DK8dWldr.mjs → RecurringTransactions-CxcSL1dY.mjs} +106 -105
- package/dist/{RecurringTransactionsStore-C4YOD7_D.mjs → RecurringTransactionsStore-CNFxyGB6.mjs} +80 -73
- package/dist/{ResponsiveButton-DZFp78fJ.mjs → ResponsiveButton-Cn6-R7ue.mjs} +10 -10
- package/dist/SearchBox-B7km148n.mjs +39 -0
- package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-BASMQSIp.mjs} +3 -3
- package/dist/{SingleSegmentDonut-BgbLgwHi.mjs → SingleSegmentDonut-7Uy6VEld.mjs} +6 -6
- package/dist/SkeletonLoader-BaNboJjD.mjs +38 -0
- package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-DPQ96k3x.mjs} +19 -19
- package/dist/SpendingLegend-6FqtMcBV.mjs +193 -0
- package/dist/{StatusBar-BK_uYHAB.mjs → StatusBar-CPfSXe80.mjs} +6 -6
- package/dist/{TabContentContainer-j01JYR_7.mjs → TabContentContainer-CnMXkVqr.mjs} +8 -8
- package/dist/{ToggleListItem-r0Kx56wF.mjs → ToggleListItem-ciFTiqRS.mjs} +19 -14
- package/dist/TransactionApi-CjBoLleL.mjs +86 -0
- package/dist/TransactionDetails-Bn0qY5Hw.mjs +1336 -0
- package/dist/{TransactionStore-ai3uII_r.mjs → TransactionStore-DbwAutwC.mjs} +146 -165
- package/dist/TrendsStore-_mRaFUdf.mjs +182 -0
- package/dist/{User-BQUxBeZV.mjs → User-BklmOUSd.mjs} +107 -107
- package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-DAkyNRlD.mjs} +706 -729
- package/dist/{WidgetContainer-BHWANqT4.mjs → WidgetContainer-CDh9fjpR.mjs} +36 -36
- package/dist/accounts/components/AccountsListCompact.d.ts +10 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +4 -1
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +2 -1
- package/dist/accounts/index.es.js +228 -199
- package/dist/accounts/stores/AccountStore.d.ts +2 -0
- package/dist/analytics/index.es.js +27 -27
- package/dist/budgets/index.es.js +459 -462
- package/dist/cashflow/index.es.js +419 -428
- package/dist/categories/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +1 -1
- package/dist/common/components/ErrorBoundary.d.ts +1 -1
- package/dist/common/components/Loader.d.ts +1 -2
- package/dist/common/components/Select.d.ts +4 -2
- package/dist/common/components/SkeletonLoader.d.ts +7 -0
- package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
- package/dist/common/components/charts/LineChart.d.ts +12 -2
- package/dist/common/components/charts/index.d.ts +0 -3
- package/dist/common/components/charts/linechart/CustomLegend.d.ts +3 -1
- package/dist/common/components/charts/linechart/CustomMark.d.ts +5 -1
- package/dist/common/components/drawer/Drawer.d.ts +3 -0
- package/dist/common/components/drawer/Footer.d.ts +17 -0
- package/dist/common/components/index.d.ts +0 -1
- package/dist/common/hooks/index.d.ts +0 -1
- package/dist/common/hooks/useAriaLive.d.ts +1 -1
- package/dist/common/index.es.js +413 -674
- package/dist/common/stores/GlobalStore.d.ts +7 -1
- package/dist/common/stores/GlobalUiStore.d.ts +3 -2
- package/dist/common/types/Finstrong.d.ts +54 -0
- package/dist/common/types/Global.d.ts +1 -0
- package/dist/common/types/Widgets.d.ts +1 -0
- package/dist/common/types/index.d.ts +1 -1
- package/dist/common/types/localization/FinstrongCopy.d.ts +105 -2
- package/dist/common/types/localization/GoalsCopy.d.ts +1 -0
- package/dist/common/utils/Theme.d.ts +1 -3
- package/dist/dashboard/index.es.js +21 -21
- package/dist/debts/components/DebtsChart.d.ts +1 -2
- package/dist/debts/index.es.js +673 -665
- package/dist/exportTransactionsToCSV-BgV_wTLT.mjs +48 -0
- package/dist/finstrong/FinstrongWidget.d.ts +1 -1
- package/dist/finstrong/api/FinstrongApi.d.ts +5 -0
- package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +3 -1
- package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +4 -0
- package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +4 -0
- package/dist/finstrong/components/FinancialStrengthGraph.d.ts +7 -1
- package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +3 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +3 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +4 -0
- package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +3 -0
- package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +4 -1
- package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +4 -3
- package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +10 -0
- package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
- package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +6 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +4 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +4 -0
- package/dist/finstrong/components/ProgressBar.d.ts +15 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +3 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +3 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +4 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +3 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +3 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +4 -0
- package/dist/finstrong/components/StatusChip.d.ts +5 -0
- package/dist/finstrong/components/onboarding/Onboarding.d.ts +2 -0
- package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +17 -0
- package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +8 -0
- package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +8 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +14 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +8 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +4 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +4 -0
- package/dist/finstrong/components/shared/Accounts.d.ts +8 -0
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +25 -0
- package/dist/finstrong/components/shared/DialScoreCard.d.ts +7 -1
- package/dist/finstrong/components/shared/DoubleBarChart.d.ts +28 -0
- package/dist/finstrong/components/shared/LineGraph.d.ts +7 -0
- package/dist/finstrong/components/shared/TotalCard.d.ts +8 -0
- package/dist/finstrong/components/shared/Transactions.d.ts +11 -0
- package/dist/finstrong/constants/index.d.ts +9 -0
- package/dist/finstrong/index.es.js +3175 -1067
- package/dist/finstrong/stores/FinstrongStore.d.ts +25 -2
- package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
- package/dist/goals/index.es.js +580 -570
- 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 +6 -6
- package/dist/{hooks-D6XlXHf4.mjs → hooks-C41HAxM5.mjs} +3 -3
- package/dist/insights/index.es.js +1 -1
- package/dist/investments/index.es.js +537 -536
- package/dist/merchants/index.es.js +9 -9
- package/dist/microinsights/beaticons/BeatIcon.d.ts +2 -9
- package/dist/microinsights/beaticons/BeatMerchantLogo.d.ts +3 -2
- package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +2 -1
- package/dist/microinsights/cards/{MicroInsightCard.d.ts → BaseCard.d.ts} +1 -8
- package/dist/microinsights/cards/{BeatCard.d.ts → InsightCard.d.ts} +2 -2
- package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +2 -5
- package/dist/microinsights/cards/ZeroStateCard.d.ts +2 -5
- package/dist/microinsights/carousel/BeatList.d.ts +10 -0
- package/dist/microinsights/carousel/CarouselControls.d.ts +1 -3
- package/dist/microinsights/carousel/CarouselHeader.d.ts +1 -2
- package/dist/microinsights/constants/App.d.ts +0 -1
- package/dist/microinsights/index.d.ts +3 -3
- package/dist/microinsights/index.es.js +7 -7
- package/dist/microinsights/interfaces.d.ts +0 -6
- package/dist/networth/components/NetWorthChange.d.ts +3 -1
- package/dist/networth/index.es.js +262 -254
- package/dist/notifications/index.es.js +90 -91
- package/dist/recurringtransactions/components/MicroWidgetContent.d.ts +3 -0
- package/dist/recurringtransactions/index.es.js +586 -562
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +1 -0
- package/dist/settings/index.es.js +371 -365
- package/dist/spending/index.es.js +267 -419
- package/dist/spending/utils/SpendingData.d.ts +2 -1
- package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -0
- package/dist/transactions/components/shared/TransactionList.d.ts +1 -0
- package/dist/transactions/index.es.js +231 -226
- package/dist/transactions/stores/TransactionStore.d.ts +1 -1
- package/dist/transactions/stores/UiStore.d.ts +0 -2
- package/dist/trends/index.es.js +988 -612
- package/dist/{useAccountDisplayName-BUAApBIb.mjs → useAccountDisplayName-CcIp09Xc.mjs} +2 -2
- package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-kNzLTWCp.mjs} +3 -3
- package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-CNjP5cfR.mjs} +1 -1
- package/dist/{useScreenSize-B6JyS_Lj.mjs → useScreenSize-B5afALev.mjs} +1 -1
- package/package.json +51 -56
- package/dist/AccountDetailsContent-CAM9y39M.mjs +0 -679
- package/dist/AccountDetailsHeader-JtSX6Uf9.mjs +0 -120
- package/dist/AccountListItem-JFMZROh7.mjs +0 -90
- package/dist/CurrencyInput-DUsQbkXb.mjs +0 -85
- package/dist/Drawer-kEE73B87.mjs +0 -113
- package/dist/FinstrongStore-F2c607dj.mjs +0 -101
- package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
- package/dist/LineChart-D4GI7nVh.mjs +0 -541
- package/dist/Loader-DUaFpDGv.mjs +0 -24
- package/dist/MicroWidgetContainer-DpeqN9n3.mjs +0 -45
- package/dist/MiniWidgetContainer-D0gfmbaF.mjs +0 -56
- package/dist/SearchBox-B2_zLv8-.mjs +0 -42
- package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
- package/dist/TransactionDetails-oP1eSuiS.mjs +0 -1334
- package/dist/TrendsStore-DCYbpXPO.mjs +0 -559
- package/dist/accounts/components/AccountsWidgetContent.d.ts +0 -3
- package/dist/common/components/barchart/Bar.d.ts +0 -25
- package/dist/common/components/barchart/BarChart.d.ts +0 -34
- package/dist/common/components/barchart/BarColumn.d.ts +0 -37
- package/dist/common/components/barchart/Legend.d.ts +0 -8
- package/dist/common/components/barchart/Util.d.ts +0 -42
- package/dist/common/components/barchart/index.d.ts +0 -1
- package/dist/common/hooks/usePrevious.d.ts +0 -2
- package/dist/exportTransactionsToCSV-7bVS7KXf.mjs +0 -47
- package/dist/finstrong/utils/Finstrong.d.ts +0 -6
- package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +0 -7
- package/dist/useAriaLive-B3_pRUio.mjs +0 -35
|
@@ -1,110 +1,109 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { fromUnixTime as
|
|
1
|
+
import { jsx as t, jsxs as r, Fragment as v } from "react/jsx-runtime";
|
|
2
|
+
import { fromUnixTime as bt } from "date-fns/fromUnixTime";
|
|
3
3
|
import { observer as w } from "mobx-react-lite";
|
|
4
|
-
import { useTheme as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import { useTheme as A } from "@mui/material/styles";
|
|
5
|
+
import { L as _t } from "../LineChart-C1PxNf7P.mjs";
|
|
6
|
+
import { u as Z } from "../useScreenSize-B5afALev.mjs";
|
|
7
|
+
import { q as wt, u as T, d as J, g as Q, b as P, r as tt, n as St } from "../hooks-C41HAxM5.mjs";
|
|
8
|
+
import { f as Wt, a as vt } from "../Dialog-CDV0kKxj.mjs";
|
|
9
9
|
import W from "@mui/material/Divider";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
10
|
+
import z from "@mui/material/List";
|
|
11
|
+
import k from "@mui/material/ListSubheader";
|
|
12
12
|
import h from "@mui/material/Stack";
|
|
13
|
-
import { Text as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
13
|
+
import { Text as d, Icon as H, H1 as It, P as Tt } from "@mxenabled/mxui";
|
|
14
|
+
import m from "react";
|
|
15
|
+
import D from "@mui/material/ListItem";
|
|
16
|
+
import et from "@mui/material/ListItemButton";
|
|
17
17
|
import _ from "@mui/material/ListItemText";
|
|
18
|
-
import { i as
|
|
19
|
-
import { C as y } from "../CurrencyText-
|
|
20
|
-
import { Button as
|
|
21
|
-
import { format as
|
|
22
|
-
import { g as
|
|
23
|
-
import { N as
|
|
24
|
-
import { Icon as
|
|
25
|
-
import { f as
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import
|
|
30
|
-
import { C as
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import { E as
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
chartData: t,
|
|
18
|
+
import { i as nt } from "../DateUtil-CDPZw_-m.mjs";
|
|
19
|
+
import { C as y } from "../CurrencyText-Dr0EZ7bp.mjs";
|
|
20
|
+
import { Button as Lt, Stack as Nt } from "@mui/material";
|
|
21
|
+
import { format as Et, fromUnixTime as kt, differenceInMonths as Dt } from "date-fns";
|
|
22
|
+
import { g as U } from "../NetWorthStore-Bti6u-d9.mjs";
|
|
23
|
+
import { N as ze } from "../NetWorthStore-Bti6u-d9.mjs";
|
|
24
|
+
import { Icon as ot } from "@mxenabled/mx-icons";
|
|
25
|
+
import { f as V } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
26
|
+
import { L as R } from "../Loader-Ckqi9Rx6.mjs";
|
|
27
|
+
import { M as At } from "../MicroWidgetContainer-BGpNl5ZS.mjs";
|
|
28
|
+
import { A as S, W as Mt } from "../WidgetContainer-CDh9fjpR.mjs";
|
|
29
|
+
import rt from "@mui/material/Box";
|
|
30
|
+
import { C as Ot } from "../ConnectionsDrawer-Dsc04-4Z.mjs";
|
|
31
|
+
import Ht from "@mui/material/Collapse";
|
|
32
|
+
import X from "@mui/material/ListItemIcon";
|
|
33
|
+
import { D as Y } from "../Drawer-BF40nbsH.mjs";
|
|
34
|
+
import { E as zt } from "../EmptyState-DoxNUae-.mjs";
|
|
35
|
+
const Rt = ({
|
|
36
|
+
chartData: e,
|
|
38
37
|
hoveredData: l,
|
|
39
38
|
onDataClick: i,
|
|
40
39
|
onMouseEnter: n,
|
|
41
|
-
onMouseLeave:
|
|
40
|
+
onMouseLeave: a,
|
|
42
41
|
selectedData: o
|
|
43
42
|
}) => {
|
|
44
|
-
const { isMobile:
|
|
45
|
-
x:
|
|
43
|
+
const { isMobile: s } = Z(), { availableWidth: c } = wt(), u = A(), C = c - 320, x = e.map((f) => ({
|
|
44
|
+
x: Wt(bt(f.x), vt.MONTH_SHORT),
|
|
46
45
|
y: f.y
|
|
47
|
-
})), g = o ? { index:
|
|
46
|
+
})), g = o ? { index: e.findIndex((f) => f.x === o.x) } : void 0, b = l ? { index: e.findIndex((f) => f.x === l.x) } : void 0, p = (f) => ({
|
|
48
47
|
fill: f === g?.index ? u.palette.success.main : "",
|
|
49
|
-
filter: f ===
|
|
48
|
+
filter: f === b?.index ? `drop-shadow(0px 0px 10px ${u.palette.success.main})` : "none",
|
|
50
49
|
stroke: u.palette.success.main
|
|
51
50
|
});
|
|
52
|
-
return /* @__PURE__ */
|
|
53
|
-
|
|
51
|
+
return /* @__PURE__ */ t(
|
|
52
|
+
_t,
|
|
54
53
|
{
|
|
55
54
|
baseline: "min",
|
|
56
|
-
colors: [u.palette.success.main],
|
|
57
|
-
datasets: [x],
|
|
58
55
|
chartFor: "networthChart",
|
|
59
56
|
chartXaxisSx: { "& .MuiChartsAxis-tickLabel": { transform: "translateX(8px)" } },
|
|
60
57
|
chartYaxisSx: { "& .MuiChartsAxis-tickLabel": { transform: "translateX(-8px)" } },
|
|
58
|
+
colors: [u.palette.success.main],
|
|
59
|
+
datasets: [x],
|
|
61
60
|
height: 350,
|
|
62
61
|
labels: [],
|
|
63
62
|
margin: { right: 20, left: 100 },
|
|
64
|
-
markHandlers: { onMarkClick: i, onMouseEnter: n, onMouseLeave:
|
|
63
|
+
markHandlers: { onMarkClick: i, onMouseEnter: n, onMouseLeave: a },
|
|
65
64
|
markStyles: p,
|
|
66
65
|
showArea: !0,
|
|
67
66
|
useCustomMark: !0,
|
|
68
67
|
valueFormatterString: "0.0[0]a",
|
|
69
|
-
width:
|
|
68
|
+
width: s ? 320 : C
|
|
70
69
|
}
|
|
71
70
|
);
|
|
72
|
-
},
|
|
73
|
-
item:
|
|
71
|
+
}, jt = w(Rt), Gt = ({
|
|
72
|
+
item: e,
|
|
74
73
|
getStyles: l,
|
|
75
74
|
isHovered: i = !1,
|
|
76
75
|
isSelected: n = !1,
|
|
77
|
-
onItemClick:
|
|
76
|
+
onItemClick: a,
|
|
78
77
|
onMouseEnter: o,
|
|
79
|
-
onMouseLeave:
|
|
78
|
+
onMouseLeave: s
|
|
80
79
|
}) => {
|
|
81
|
-
const [c, u] =
|
|
80
|
+
const [c, u] = m.useState({
|
|
82
81
|
color: ""
|
|
83
82
|
});
|
|
84
|
-
return
|
|
85
|
-
u(l(
|
|
86
|
-
}, [i, n]), /* @__PURE__ */ r(
|
|
87
|
-
/* @__PURE__ */
|
|
88
|
-
|
|
83
|
+
return m.useEffect(() => {
|
|
84
|
+
u(l(e));
|
|
85
|
+
}, [i, n]), /* @__PURE__ */ r(m.Fragment, { children: [
|
|
86
|
+
/* @__PURE__ */ t(
|
|
87
|
+
D,
|
|
89
88
|
{
|
|
90
89
|
sx: {
|
|
91
90
|
...c,
|
|
92
91
|
minHeight: 44,
|
|
93
92
|
"&:hover": { color: n ? "inherit" : c.color }
|
|
94
93
|
},
|
|
95
|
-
children: /* @__PURE__ */
|
|
96
|
-
|
|
94
|
+
children: /* @__PURE__ */ t(
|
|
95
|
+
et,
|
|
97
96
|
{
|
|
98
|
-
onClick: (C) =>
|
|
99
|
-
onMouseEnter: () => o(
|
|
100
|
-
onMouseLeave: () =>
|
|
97
|
+
onClick: (C) => a?.(C, e.x),
|
|
98
|
+
onMouseEnter: () => o(e.x),
|
|
99
|
+
onMouseLeave: () => s(),
|
|
101
100
|
sx: { minHeight: 20, padding: 12 },
|
|
102
|
-
children: /* @__PURE__ */
|
|
101
|
+
children: /* @__PURE__ */ t(
|
|
103
102
|
_,
|
|
104
103
|
{
|
|
105
104
|
primary: /* @__PURE__ */ r(h, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
|
106
|
-
/* @__PURE__ */
|
|
107
|
-
/* @__PURE__ */
|
|
105
|
+
/* @__PURE__ */ t(d, { variant: "body1", children: nt(e.x) }),
|
|
106
|
+
/* @__PURE__ */ t(y, { amount: e.y, sx: { color: "inherit" }, variant: "body1" })
|
|
108
107
|
] })
|
|
109
108
|
}
|
|
110
109
|
)
|
|
@@ -112,45 +111,45 @@ const Oe = ({
|
|
|
112
111
|
)
|
|
113
112
|
}
|
|
114
113
|
),
|
|
115
|
-
/* @__PURE__ */
|
|
116
|
-
] },
|
|
117
|
-
},
|
|
118
|
-
chartData:
|
|
114
|
+
/* @__PURE__ */ t(W, {})
|
|
115
|
+
] }, e.x);
|
|
116
|
+
}, $t = w(Gt), Bt = ({
|
|
117
|
+
chartData: e,
|
|
119
118
|
hoveredData: l,
|
|
120
119
|
onDataClick: i,
|
|
121
120
|
onButtonClick: n,
|
|
122
|
-
onMouseEnter:
|
|
121
|
+
onMouseEnter: a,
|
|
123
122
|
onMouseLeave: o,
|
|
124
|
-
selectedData:
|
|
123
|
+
selectedData: s
|
|
125
124
|
}) => {
|
|
126
|
-
const { net_worth: c } = T(), u =
|
|
127
|
-
const g = x.x === l?.x,
|
|
125
|
+
const { net_worth: c } = T(), u = A(), C = (x) => {
|
|
126
|
+
const g = x.x === l?.x, b = x.x === s?.x, p = {
|
|
128
127
|
backgroundColor: "inherit",
|
|
129
128
|
borderBottom: "inherit",
|
|
130
129
|
color: "inherit"
|
|
131
130
|
};
|
|
132
|
-
return g && (p.color =
|
|
131
|
+
return g && (p.color = b ? "inherit" : p.color, p.backgroundColor = u.palette.action.hover), b && (p.backgroundColor = u.palette.primary.main, p.borderBottom = u.palette.neutral.light, p.color = u.palette.common.white), p;
|
|
133
132
|
};
|
|
134
133
|
return /* @__PURE__ */ r(h, { direction: "column", sx: { width: 320 }, children: [
|
|
135
|
-
/* @__PURE__ */ r(
|
|
136
|
-
/* @__PURE__ */
|
|
137
|
-
/* @__PURE__ */
|
|
138
|
-
|
|
139
|
-
|
|
134
|
+
/* @__PURE__ */ r(z, { children: [
|
|
135
|
+
/* @__PURE__ */ t(k, { sx: { backgroundColor: "transparent", mb: 8, mt: 12, px: 12 }, children: /* @__PURE__ */ t(d, { bold: !0, component: "h2", variant: "body1", children: c.monthly_totals }) }),
|
|
136
|
+
/* @__PURE__ */ t(W, {}),
|
|
137
|
+
e.map((x, g) => /* @__PURE__ */ t(
|
|
138
|
+
$t,
|
|
140
139
|
{
|
|
141
140
|
getStyles: C,
|
|
142
141
|
isHovered: x.x === l?.x,
|
|
143
|
-
isSelected: x.x ===
|
|
142
|
+
isSelected: x.x === s?.x,
|
|
144
143
|
item: x,
|
|
145
|
-
onItemClick: (
|
|
146
|
-
onMouseEnter: () =>
|
|
144
|
+
onItemClick: (b) => i(b, g),
|
|
145
|
+
onMouseEnter: () => a(g),
|
|
147
146
|
onMouseLeave: () => o()
|
|
148
147
|
},
|
|
149
148
|
x.x
|
|
150
149
|
))
|
|
151
150
|
] }),
|
|
152
|
-
/* @__PURE__ */
|
|
153
|
-
|
|
151
|
+
/* @__PURE__ */ t(
|
|
152
|
+
Lt,
|
|
154
153
|
{
|
|
155
154
|
onClick: () => n(),
|
|
156
155
|
sx: { alignSelf: "center", marginTop: 16, width: "fit-content" },
|
|
@@ -159,16 +158,16 @@ const Oe = ({
|
|
|
159
158
|
}
|
|
160
159
|
)
|
|
161
160
|
] });
|
|
162
|
-
},
|
|
163
|
-
currencyLabel:
|
|
164
|
-
currencyVariant: l = "
|
|
161
|
+
}, Ft = w(Bt), Kt = ({
|
|
162
|
+
currencyLabel: e,
|
|
163
|
+
currencyVariant: l = "body2",
|
|
165
164
|
iconSize: i,
|
|
166
165
|
netWorth: n,
|
|
167
|
-
theme:
|
|
166
|
+
theme: a
|
|
168
167
|
}) => {
|
|
169
|
-
let o =
|
|
170
|
-
return n.change < 0 ? c = "trending_down" : n.change > 0 && (o =
|
|
171
|
-
/* @__PURE__ */
|
|
168
|
+
let o = a.palette.secondary.main, s = a.palette.secondary.main, c = "trending_flat";
|
|
169
|
+
return n.change < 0 ? c = "trending_down" : n.change > 0 && (o = a.palette.success.main, s = a.palette.success.main, c = "trending_up"), /* @__PURE__ */ r(Nt, { alignItems: "center", direction: "row", spacing: 4, children: [
|
|
170
|
+
/* @__PURE__ */ t(
|
|
172
171
|
H,
|
|
173
172
|
{
|
|
174
173
|
name: c,
|
|
@@ -178,122 +177,122 @@ const Oe = ({
|
|
|
178
177
|
}
|
|
179
178
|
}
|
|
180
179
|
),
|
|
181
|
-
/* @__PURE__ */
|
|
182
|
-
/* @__PURE__ */
|
|
180
|
+
/* @__PURE__ */ t(y, { amount: n.change, color: s, variant: l }),
|
|
181
|
+
/* @__PURE__ */ t(d, { variant: "body2", children: e })
|
|
183
182
|
] });
|
|
184
|
-
},
|
|
185
|
-
const { net_worth: i } = T(), n =
|
|
183
|
+
}, j = w(Kt), Ut = ({ hoveredData: e, selectedData: l }) => {
|
|
184
|
+
const { net_worth: i } = T(), n = A(), a = e || l, o = Et(kt(a.x), "MMMM");
|
|
186
185
|
return /* @__PURE__ */ r(h, { alignItems: "center", direction: "column", m: 24, children: [
|
|
187
|
-
/* @__PURE__ */
|
|
188
|
-
/* @__PURE__ */
|
|
189
|
-
/* @__PURE__ */
|
|
186
|
+
/* @__PURE__ */ t(d, { color: n.palette.secondary.main, variant: "body2", children: `${o} ${i.net_worth}` }),
|
|
187
|
+
/* @__PURE__ */ t(y, { amount: a.y, variant: "h2" }),
|
|
188
|
+
/* @__PURE__ */ t(j, { currencyLabel: i.this_month, netWorth: a, theme: n })
|
|
190
189
|
] });
|
|
191
|
-
},
|
|
190
|
+
}, Vt = w(Ut), Xt = ({ amount: e, copy: l, trendValue: i }) => {
|
|
192
191
|
const n = i > 0, o = i === 0 ? "trending_flat" : n ? "trending_up" : "trending_down";
|
|
193
192
|
return /* @__PURE__ */ r(h, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
194
|
-
/* @__PURE__ */
|
|
195
|
-
|
|
193
|
+
/* @__PURE__ */ t(It, { children: V(e, "0,0") }),
|
|
194
|
+
e !== 0 && /* @__PURE__ */ r(h, { sx: { color: n ? "success.main" : "text.secondary" }, children: [
|
|
196
195
|
/* @__PURE__ */ r(h, { sx: { flexDirection: "row", gap: 8 }, children: [
|
|
197
|
-
/* @__PURE__ */
|
|
198
|
-
/* @__PURE__ */
|
|
196
|
+
/* @__PURE__ */ t(ot, { name: o, size: 20 }),
|
|
197
|
+
/* @__PURE__ */ t(d, { sx: { fontWeight: 600, textAlign: "right" }, variant: "body1", children: V(i, "0,0.00") })
|
|
199
198
|
] }),
|
|
200
|
-
/* @__PURE__ */
|
|
199
|
+
/* @__PURE__ */ t(d, { sx: { display: "block", textAlign: "right" }, variant: "caption", children: l.this_month })
|
|
201
200
|
] })
|
|
202
201
|
] });
|
|
203
|
-
},
|
|
204
|
-
/* @__PURE__ */
|
|
202
|
+
}, Yt = ({ copy: e }) => /* @__PURE__ */ r(h, { sx: { flexDirection: "row", gap: 12 }, children: [
|
|
203
|
+
/* @__PURE__ */ t(ot, { name: "elevation", size: 32, sx: { color: "text.primary" } }),
|
|
205
204
|
/* @__PURE__ */ r(h, { children: [
|
|
206
|
-
/* @__PURE__ */
|
|
207
|
-
/* @__PURE__ */
|
|
205
|
+
/* @__PURE__ */ t(d, { sx: { display: "block", fontWeight: 600 }, variant: "body1", children: e.empty_widget_header }),
|
|
206
|
+
/* @__PURE__ */ t(Tt, { sx: { color: "text.secondary" }, variant: "body2", children: e.zero_state_description })
|
|
208
207
|
] })
|
|
209
|
-
] }),
|
|
210
|
-
const [l, i] =
|
|
208
|
+
] }), Ae = w(({ onCTAClick: e }) => {
|
|
209
|
+
const [l, i] = m.useState(!1), { visibleAccounts: n } = J(), { onEvent: a } = Q(), { net_worth: o, common: s } = T(), { isInitialized: c, selectedAccounts: u, setSelectedAccounts: C } = P(), { loadChartData: x, loadNetWorthData: g, netWorthData: b, selectedData: p } = tt(), f = async () => {
|
|
211
210
|
await g(u), await x(1), i(!0);
|
|
212
211
|
};
|
|
213
|
-
if (
|
|
214
|
-
c && f().finally(),
|
|
212
|
+
if (m.useEffect(() => C(n), [n]), m.useEffect(() => {
|
|
213
|
+
c && f().finally(), a(S.NET_WORTH_LOAD_WIDGET, {
|
|
215
214
|
state: n?.length ? "default" : "zeroState"
|
|
216
215
|
});
|
|
217
|
-
}, [c]), !l) return /* @__PURE__ */
|
|
216
|
+
}, [c]), !l) return /* @__PURE__ */ t(R, { height: 100 });
|
|
218
217
|
const L = () => {
|
|
219
|
-
|
|
220
|
-
n.length ?
|
|
221
|
-
),
|
|
218
|
+
a(
|
|
219
|
+
n.length ? S.NET_WORTH_CLICK_VIEW_DETAILS : S.NET_WORTH_CLICK_GET_STARTED
|
|
220
|
+
), e();
|
|
222
221
|
};
|
|
223
|
-
return /* @__PURE__ */
|
|
224
|
-
|
|
222
|
+
return /* @__PURE__ */ t(
|
|
223
|
+
At,
|
|
225
224
|
{
|
|
226
225
|
className: "mx-networth-microwidget",
|
|
227
|
-
ctaLabel:
|
|
226
|
+
ctaLabel: s.see_details,
|
|
228
227
|
onCTAClick: L,
|
|
229
228
|
title: o.net_worth,
|
|
230
|
-
children:
|
|
231
|
-
|
|
229
|
+
children: b.accounts.length ? /* @__PURE__ */ t(
|
|
230
|
+
Xt,
|
|
232
231
|
{
|
|
233
232
|
amount: p?.y,
|
|
234
233
|
copy: o,
|
|
235
234
|
trendValue: p?.change
|
|
236
235
|
}
|
|
237
|
-
) : /* @__PURE__ */
|
|
236
|
+
) : /* @__PURE__ */ t(Yt, { copy: o })
|
|
238
237
|
}
|
|
239
238
|
);
|
|
240
|
-
}),
|
|
241
|
-
const [n,
|
|
239
|
+
}), qt = ({ accounts: e, name: l, icon: i }) => {
|
|
240
|
+
const [n, a] = m.useState(!1);
|
|
242
241
|
return /* @__PURE__ */ r(v, { children: [
|
|
243
|
-
/* @__PURE__ */
|
|
244
|
-
i && /* @__PURE__ */
|
|
245
|
-
/* @__PURE__ */
|
|
242
|
+
/* @__PURE__ */ t(D, { sx: (o) => ({ backgroundColor: o.palette.background.paper }), children: /* @__PURE__ */ r(et, { onClick: () => a(!n), children: [
|
|
243
|
+
i && /* @__PURE__ */ t(X, { children: /* @__PURE__ */ t(H, { name: i, size: 24, sx: { mr: 12 } }) }),
|
|
244
|
+
/* @__PURE__ */ t(
|
|
246
245
|
_,
|
|
247
246
|
{
|
|
248
|
-
primary: /* @__PURE__ */
|
|
247
|
+
primary: /* @__PURE__ */ t(d, { sx: { fontWeight: 700 }, variant: "body1", children: l })
|
|
249
248
|
}
|
|
250
249
|
),
|
|
251
|
-
/* @__PURE__ */
|
|
250
|
+
/* @__PURE__ */ t(X, { children: n ? /* @__PURE__ */ t(H, { name: "expand_less", size: 24 }) : /* @__PURE__ */ t(H, { name: "expand_more", size: 24 }) })
|
|
252
251
|
] }) }),
|
|
253
|
-
/* @__PURE__ */
|
|
254
|
-
/* @__PURE__ */
|
|
255
|
-
/* @__PURE__ */
|
|
252
|
+
/* @__PURE__ */ t(W, {}),
|
|
253
|
+
/* @__PURE__ */ t(Ht, { in: n, timeout: "auto", unmountOnExit: !0, children: e.map((o, s) => /* @__PURE__ */ r(z, { children: [
|
|
254
|
+
/* @__PURE__ */ t(D, { sx: () => ({ py: 14 }), children: /* @__PURE__ */ t(
|
|
256
255
|
_,
|
|
257
256
|
{
|
|
258
257
|
primary: /* @__PURE__ */ r(h, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
|
259
|
-
/* @__PURE__ */
|
|
260
|
-
|
|
258
|
+
/* @__PURE__ */ t(
|
|
259
|
+
d,
|
|
261
260
|
{
|
|
262
261
|
sx: {
|
|
263
262
|
marginRight: 10
|
|
264
263
|
},
|
|
265
|
-
variant: "
|
|
264
|
+
variant: "body1",
|
|
266
265
|
children: o.accountName
|
|
267
266
|
}
|
|
268
267
|
),
|
|
269
|
-
/* @__PURE__ */
|
|
268
|
+
/* @__PURE__ */ t(
|
|
270
269
|
y,
|
|
271
270
|
{
|
|
272
271
|
amount: o.balance,
|
|
273
272
|
sx: {
|
|
274
273
|
flexShrink: 0
|
|
275
274
|
},
|
|
276
|
-
variant: "
|
|
275
|
+
variant: "body2"
|
|
277
276
|
}
|
|
278
277
|
)
|
|
279
278
|
] }),
|
|
280
279
|
sx: { pl: 72, pr: 16 }
|
|
281
280
|
}
|
|
282
281
|
) }),
|
|
283
|
-
|
|
282
|
+
s < e.length - 1 ? /* @__PURE__ */ t(W, { variant: "inset" }) : /* @__PURE__ */ t(W, {})
|
|
284
283
|
] }, o.accountName)) })
|
|
285
284
|
] });
|
|
286
|
-
}, q = ({ groupedAccounts:
|
|
287
|
-
netWorth:
|
|
285
|
+
}, q = ({ groupedAccounts: e }) => /* @__PURE__ */ t(v, { children: e.map(({ accounts: l, icon: i, name: n }) => /* @__PURE__ */ t(qt, { accounts: l, icon: i, name: n }, n)) }), Zt = ({
|
|
286
|
+
netWorth: e,
|
|
288
287
|
assets: l,
|
|
289
288
|
liabilities: i,
|
|
290
289
|
totalAssets: n,
|
|
291
|
-
totalLiabilities:
|
|
290
|
+
totalLiabilities: a
|
|
292
291
|
}) => {
|
|
293
|
-
const { net_worth: o } = T(),
|
|
292
|
+
const { net_worth: o } = T(), s = A();
|
|
294
293
|
return /* @__PURE__ */ r(v, { children: [
|
|
295
294
|
/* @__PURE__ */ r(
|
|
296
|
-
|
|
295
|
+
rt,
|
|
297
296
|
{
|
|
298
297
|
sx: {
|
|
299
298
|
alignItems: "center",
|
|
@@ -304,121 +303,128 @@ const Oe = ({
|
|
|
304
303
|
marginBottom: 8
|
|
305
304
|
},
|
|
306
305
|
children: [
|
|
307
|
-
/* @__PURE__ */
|
|
308
|
-
/* @__PURE__ */
|
|
309
|
-
|
|
310
|
-
|
|
306
|
+
/* @__PURE__ */ t(d, { variant: "body1", children: o.current_net_worth }),
|
|
307
|
+
/* @__PURE__ */ t(y, { amount: e?.y ?? 0, variant: "h1" }),
|
|
308
|
+
e && /* @__PURE__ */ t(
|
|
309
|
+
j,
|
|
311
310
|
{
|
|
312
311
|
currencyLabel: o.this_month,
|
|
313
312
|
iconSize: 20,
|
|
314
|
-
netWorth:
|
|
315
|
-
theme:
|
|
313
|
+
netWorth: e,
|
|
314
|
+
theme: s
|
|
316
315
|
}
|
|
317
316
|
)
|
|
318
317
|
]
|
|
319
318
|
}
|
|
320
319
|
),
|
|
321
|
-
/* @__PURE__ */ r(
|
|
322
|
-
/* @__PURE__ */
|
|
320
|
+
/* @__PURE__ */ r(z, { children: [
|
|
321
|
+
/* @__PURE__ */ t(k, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(
|
|
323
322
|
_,
|
|
324
323
|
{
|
|
325
324
|
primary: /* @__PURE__ */ r(h, { direction: "row", justifyContent: "space-between", children: [
|
|
326
|
-
/* @__PURE__ */
|
|
327
|
-
/* @__PURE__ */
|
|
325
|
+
/* @__PURE__ */ t(d, { sx: { fontWeight: 700 }, variant: "caption", children: o.assets }),
|
|
326
|
+
/* @__PURE__ */ t(y, { amount: n, sx: { fontWeight: 400 }, variant: "caption" })
|
|
328
327
|
] })
|
|
329
328
|
}
|
|
330
329
|
) }),
|
|
331
|
-
/* @__PURE__ */
|
|
332
|
-
/* @__PURE__ */
|
|
330
|
+
/* @__PURE__ */ t(q, { groupedAccounts: U(l) }),
|
|
331
|
+
/* @__PURE__ */ t(k, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(
|
|
333
332
|
_,
|
|
334
333
|
{
|
|
335
334
|
primary: /* @__PURE__ */ r(h, { direction: "row", justifyContent: "space-between", children: [
|
|
336
|
-
/* @__PURE__ */
|
|
337
|
-
/* @__PURE__ */
|
|
335
|
+
/* @__PURE__ */ t(d, { sx: { fontWeight: 700 }, variant: "caption", children: o.liabilities }),
|
|
336
|
+
/* @__PURE__ */ t(
|
|
337
|
+
y,
|
|
338
|
+
{
|
|
339
|
+
amount: a,
|
|
340
|
+
sx: { fontWeight: 400 },
|
|
341
|
+
variant: "caption"
|
|
342
|
+
}
|
|
343
|
+
)
|
|
338
344
|
] })
|
|
339
345
|
}
|
|
340
346
|
) }),
|
|
341
|
-
/* @__PURE__ */
|
|
347
|
+
/* @__PURE__ */ t(q, { groupedAccounts: U(i) })
|
|
342
348
|
] })
|
|
343
349
|
] });
|
|
344
|
-
},
|
|
345
|
-
netWorth:
|
|
350
|
+
}, Jt = w(Zt), Qt = ({
|
|
351
|
+
netWorth: e,
|
|
346
352
|
gains: l,
|
|
347
353
|
losses: i,
|
|
348
354
|
totalGains: n,
|
|
349
|
-
totalLosses:
|
|
355
|
+
totalLosses: a
|
|
350
356
|
}) => {
|
|
351
|
-
const { net_worth: o } = T(),
|
|
357
|
+
const { net_worth: o } = T(), s = A();
|
|
352
358
|
return /* @__PURE__ */ r(v, { children: [
|
|
353
359
|
/* @__PURE__ */ r(h, { alignItems: "center", justifyContent: "space-between", mb: 8, pt: 24, children: [
|
|
354
|
-
/* @__PURE__ */
|
|
355
|
-
/* @__PURE__ */
|
|
356
|
-
|
|
360
|
+
/* @__PURE__ */ t(d, { variant: "body2", children: nt(e?.x) }),
|
|
361
|
+
/* @__PURE__ */ t(d, { variant: "body1", children: o.total_change }),
|
|
362
|
+
e && /* @__PURE__ */ t(j, { currencyVariant: "h1", iconSize: 32, netWorth: e, theme: s })
|
|
357
363
|
] }),
|
|
358
|
-
/* @__PURE__ */ r(
|
|
359
|
-
/* @__PURE__ */
|
|
364
|
+
/* @__PURE__ */ r(z, { children: [
|
|
365
|
+
/* @__PURE__ */ t(k, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(
|
|
360
366
|
_,
|
|
361
367
|
{
|
|
362
368
|
primary: /* @__PURE__ */ r(h, { direction: "row", justifyContent: "space-between", children: [
|
|
363
|
-
/* @__PURE__ */
|
|
364
|
-
/* @__PURE__ */
|
|
369
|
+
/* @__PURE__ */ t(d, { sx: { fontWeight: 700 }, variant: "caption", children: o.gains }),
|
|
370
|
+
/* @__PURE__ */ t(y, { amount: n, sx: { fontWeight: 400 }, variant: "caption" })
|
|
365
371
|
] })
|
|
366
372
|
}
|
|
367
373
|
) }),
|
|
368
|
-
l?.map((c) => /* @__PURE__ */ r(
|
|
369
|
-
/* @__PURE__ */
|
|
374
|
+
l?.map((c) => /* @__PURE__ */ r(m.Fragment, { children: [
|
|
375
|
+
/* @__PURE__ */ t(D, { sx: { backgroundColor: s.palette.background.paper, py: 14 }, children: /* @__PURE__ */ t(
|
|
370
376
|
_,
|
|
371
377
|
{
|
|
372
378
|
primary: /* @__PURE__ */ r(h, { direction: "row", justifyContent: "space-between", children: [
|
|
373
|
-
/* @__PURE__ */
|
|
374
|
-
/* @__PURE__ */
|
|
379
|
+
/* @__PURE__ */ t(d, { sx: { mr: 10 }, variant: "body1", children: c.accountName }),
|
|
380
|
+
/* @__PURE__ */ t(
|
|
375
381
|
y,
|
|
376
382
|
{
|
|
377
383
|
amount: c.gain,
|
|
378
|
-
sx: { color:
|
|
379
|
-
variant: "
|
|
384
|
+
sx: { color: s.palette.success.main, flexShrink: 0, fontWeight: 700 },
|
|
385
|
+
variant: "body1"
|
|
380
386
|
}
|
|
381
387
|
)
|
|
382
388
|
] }),
|
|
383
389
|
sx: { px: 16 }
|
|
384
390
|
}
|
|
385
391
|
) }),
|
|
386
|
-
/* @__PURE__ */
|
|
392
|
+
/* @__PURE__ */ t(W, {})
|
|
387
393
|
] }, c.accountName)),
|
|
388
|
-
/* @__PURE__ */
|
|
394
|
+
/* @__PURE__ */ t(k, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(
|
|
389
395
|
_,
|
|
390
396
|
{
|
|
391
397
|
primary: /* @__PURE__ */ r(h, { direction: "row", justifyContent: "space-between", children: [
|
|
392
|
-
/* @__PURE__ */
|
|
393
|
-
/* @__PURE__ */
|
|
398
|
+
/* @__PURE__ */ t(d, { sx: { fontWeight: 700 }, variant: "caption", children: o.losses }),
|
|
399
|
+
/* @__PURE__ */ t(y, { amount: a, sx: { fontWeight: 400 }, variant: "caption" })
|
|
394
400
|
] })
|
|
395
401
|
}
|
|
396
402
|
) }),
|
|
397
403
|
i?.map((c) => /* @__PURE__ */ r(v, { children: [
|
|
398
|
-
/* @__PURE__ */
|
|
399
|
-
|
|
404
|
+
/* @__PURE__ */ t(
|
|
405
|
+
D,
|
|
400
406
|
{
|
|
401
|
-
sx: { backgroundColor:
|
|
402
|
-
children: /* @__PURE__ */
|
|
407
|
+
sx: { backgroundColor: s.palette.background.paper, py: 14 },
|
|
408
|
+
children: /* @__PURE__ */ t(
|
|
403
409
|
_,
|
|
404
410
|
{
|
|
405
411
|
primary: /* @__PURE__ */ r(h, { direction: "row", justifyContent: "space-between", children: [
|
|
406
|
-
/* @__PURE__ */
|
|
407
|
-
|
|
412
|
+
/* @__PURE__ */ t(
|
|
413
|
+
d,
|
|
408
414
|
{
|
|
409
415
|
sx: {
|
|
410
416
|
mr: 10
|
|
411
417
|
},
|
|
412
|
-
variant: "
|
|
418
|
+
variant: "body1",
|
|
413
419
|
children: c.accountName
|
|
414
420
|
}
|
|
415
421
|
),
|
|
416
|
-
/* @__PURE__ */
|
|
422
|
+
/* @__PURE__ */ t(
|
|
417
423
|
y,
|
|
418
424
|
{
|
|
419
425
|
amount: c.loss,
|
|
420
426
|
sx: { flexShrink: 0, fontWeight: 700 },
|
|
421
|
-
variant: "
|
|
427
|
+
variant: "body1"
|
|
422
428
|
}
|
|
423
429
|
)
|
|
424
430
|
] }),
|
|
@@ -428,65 +434,67 @@ const Oe = ({
|
|
|
428
434
|
},
|
|
429
435
|
c.accountName
|
|
430
436
|
),
|
|
431
|
-
/* @__PURE__ */
|
|
437
|
+
/* @__PURE__ */ t(W, {})
|
|
432
438
|
] }))
|
|
433
439
|
] })
|
|
434
440
|
] });
|
|
435
|
-
},
|
|
436
|
-
const { isCopyLoaded: l, isInitialized: i, selectedAccounts: n, setSelectedAccounts:
|
|
441
|
+
}, Pt = w(Qt), Me = w(({ onBackClick: e }) => {
|
|
442
|
+
const { isCopyLoaded: l, isInitialized: i, selectedAccounts: n, setSelectedAccounts: a } = P(), { accounts: o, net_worth: s } = T(), { visibleAccounts: c } = J(), {
|
|
437
443
|
assetsLiabilities: u,
|
|
438
444
|
gainsLosses: C,
|
|
439
445
|
hoveredData: x,
|
|
440
446
|
loadChartData: g,
|
|
441
|
-
loadNetWorthData:
|
|
447
|
+
loadNetWorthData: b,
|
|
442
448
|
netWorthChartData: p,
|
|
443
449
|
selectedData: f,
|
|
444
450
|
setHoveredData: L,
|
|
445
|
-
setSelectedData:
|
|
446
|
-
} =
|
|
447
|
-
await
|
|
451
|
+
setSelectedData: it
|
|
452
|
+
} = tt(), { isMobile: N } = Z(), { onEvent: E } = Q(), { onLoad: st } = St(), [at, ct] = m.useState(!1), [M, lt] = m.useState(6), [dt, G] = m.useState(!1), [mt, $] = m.useState(!1), [ht, B] = m.useState(!1), ut = async () => {
|
|
453
|
+
await b(n), await g(M), ct(!0);
|
|
448
454
|
};
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
}, []),
|
|
452
|
-
|
|
453
|
-
}, [c]),
|
|
454
|
-
i &&
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
}, [
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
455
|
+
m.useEffect(() => {
|
|
456
|
+
E(S.NET_WORTH_VIEW);
|
|
457
|
+
}, []), m.useEffect(() => {
|
|
458
|
+
a(c);
|
|
459
|
+
}, [c]), m.useEffect(() => {
|
|
460
|
+
i && ut().finally(() => {
|
|
461
|
+
st?.("NetWorthWidget");
|
|
462
|
+
});
|
|
463
|
+
}, [i, n]), m.useEffect(() => {
|
|
464
|
+
E(S.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: M + "M" }), g(M).finally();
|
|
465
|
+
}, [M]);
|
|
466
|
+
const pt = (I, O) => {
|
|
467
|
+
it(O), I.currentTarget instanceof HTMLDivElement && G(!0);
|
|
468
|
+
}, ft = (I) => {
|
|
461
469
|
L(I);
|
|
462
|
-
},
|
|
470
|
+
}, xt = () => {
|
|
463
471
|
L(null);
|
|
464
|
-
},
|
|
465
|
-
|
|
466
|
-
},
|
|
467
|
-
const
|
|
468
|
-
|
|
469
|
-
},
|
|
472
|
+
}, gt = () => {
|
|
473
|
+
E(S.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES), $(!0);
|
|
474
|
+
}, yt = async (I) => {
|
|
475
|
+
const O = I[0], K = I[1];
|
|
476
|
+
O && K && lt(Dt(K, O));
|
|
477
|
+
}, F = {
|
|
470
478
|
chartData: p,
|
|
471
479
|
hoveredData: x,
|
|
472
|
-
onButtonClick:
|
|
473
|
-
onDataClick:
|
|
474
|
-
onMouseEnter:
|
|
475
|
-
onMouseLeave:
|
|
480
|
+
onButtonClick: gt,
|
|
481
|
+
onDataClick: pt,
|
|
482
|
+
onMouseEnter: ft,
|
|
483
|
+
onMouseLeave: xt,
|
|
476
484
|
selectedData: f
|
|
477
|
-
},
|
|
478
|
-
|
|
485
|
+
}, Ct = () => {
|
|
486
|
+
B(!0), E(S.ACCOUNTS_CLICK_CONNECT);
|
|
479
487
|
};
|
|
480
|
-
return l ? /* @__PURE__ */
|
|
481
|
-
|
|
488
|
+
return l ? /* @__PURE__ */ t(
|
|
489
|
+
Mt,
|
|
482
490
|
{
|
|
483
491
|
accountOptions: c,
|
|
484
492
|
calendarActions: {
|
|
485
|
-
onRangeChanged:
|
|
493
|
+
onRangeChanged: yt
|
|
486
494
|
},
|
|
487
495
|
dateRangeVariant: N ? "timeframetabs" : "timeframebuttons",
|
|
488
|
-
onAccountsFilterClick: () =>
|
|
489
|
-
onBackClick:
|
|
496
|
+
onAccountsFilterClick: () => E(S.NET_WORTH_WIDGET_CLICK_FILTER),
|
|
497
|
+
onBackClick: e,
|
|
490
498
|
showDividerAboveDateSelector: !1,
|
|
491
499
|
sx: {
|
|
492
500
|
p: N ? 0 : 48,
|
|
@@ -501,10 +509,10 @@ const Oe = ({
|
|
|
501
509
|
width: "100%"
|
|
502
510
|
}
|
|
503
511
|
},
|
|
504
|
-
title:
|
|
505
|
-
children:
|
|
512
|
+
title: s.net_worth,
|
|
513
|
+
children: at ? /* @__PURE__ */ r(v, { children: [
|
|
506
514
|
p.length ? /* @__PURE__ */ r(v, { children: [
|
|
507
|
-
f && /* @__PURE__ */
|
|
515
|
+
f && /* @__PURE__ */ t(Vt, { hoveredData: x, selectedData: f }),
|
|
508
516
|
/* @__PURE__ */ r(
|
|
509
517
|
h,
|
|
510
518
|
{
|
|
@@ -512,19 +520,19 @@ const Oe = ({
|
|
|
512
520
|
direction: N ? "column" : "row",
|
|
513
521
|
spacing: N ? 0 : 48,
|
|
514
522
|
children: [
|
|
515
|
-
/* @__PURE__ */
|
|
516
|
-
/* @__PURE__ */
|
|
523
|
+
/* @__PURE__ */ t(jt, { ...F }),
|
|
524
|
+
/* @__PURE__ */ t(Ft, { ...F })
|
|
517
525
|
]
|
|
518
526
|
}
|
|
519
527
|
)
|
|
520
|
-
] }) : /* @__PURE__ */
|
|
521
|
-
|
|
528
|
+
] }) : /* @__PURE__ */ t(rt, { sx: { justifyItems: "center" }, children: /* @__PURE__ */ t(
|
|
529
|
+
zt,
|
|
522
530
|
{
|
|
523
|
-
header:
|
|
531
|
+
header: s.empty_widget_header,
|
|
524
532
|
icon: "elevation",
|
|
525
|
-
onClick:
|
|
526
|
-
primaryButton:
|
|
527
|
-
subText:
|
|
533
|
+
onClick: Ct,
|
|
534
|
+
primaryButton: s.empty_widget_button,
|
|
535
|
+
subText: s.empty_widget_description,
|
|
528
536
|
sx: {
|
|
529
537
|
width: { sm: 432 },
|
|
530
538
|
".buttons-footer": {
|
|
@@ -533,47 +541,47 @@ const Oe = ({
|
|
|
533
541
|
}
|
|
534
542
|
}
|
|
535
543
|
) }),
|
|
536
|
-
/* @__PURE__ */
|
|
537
|
-
|
|
544
|
+
/* @__PURE__ */ t(
|
|
545
|
+
Ot,
|
|
538
546
|
{
|
|
539
|
-
onClose: () =>
|
|
540
|
-
showConnectionsWidget:
|
|
547
|
+
onClose: () => B(!1),
|
|
548
|
+
showConnectionsWidget: ht,
|
|
541
549
|
title: o.manage_connections
|
|
542
550
|
}
|
|
543
551
|
),
|
|
544
|
-
/* @__PURE__ */
|
|
552
|
+
/* @__PURE__ */ t(
|
|
545
553
|
Y,
|
|
546
554
|
{
|
|
547
555
|
ariaLabelClose: "Close",
|
|
548
|
-
isOpen:
|
|
549
|
-
onClose: () =>
|
|
556
|
+
isOpen: dt,
|
|
557
|
+
onClose: () => G(!1),
|
|
550
558
|
shouldShowHeaderBorders: !1,
|
|
551
559
|
shouldShowHeaderShadow: !0,
|
|
552
|
-
title:
|
|
553
|
-
children: C && /* @__PURE__ */
|
|
560
|
+
title: s.gains_and_losses,
|
|
561
|
+
children: C && /* @__PURE__ */ t(Pt, { ...C })
|
|
554
562
|
}
|
|
555
563
|
),
|
|
556
|
-
/* @__PURE__ */
|
|
564
|
+
/* @__PURE__ */ t(
|
|
557
565
|
Y,
|
|
558
566
|
{
|
|
559
567
|
ariaLabelClose: "Close",
|
|
560
|
-
isOpen:
|
|
568
|
+
isOpen: mt,
|
|
561
569
|
onClose: () => $(!1),
|
|
562
570
|
shouldShowHeaderBorders: !1,
|
|
563
571
|
shouldShowHeaderShadow: !0,
|
|
564
|
-
title:
|
|
565
|
-
children: u && /* @__PURE__ */
|
|
572
|
+
title: s.assets_and_liabilities,
|
|
573
|
+
children: u && /* @__PURE__ */ t(Jt, { ...u })
|
|
566
574
|
}
|
|
567
575
|
)
|
|
568
|
-
] }) : /* @__PURE__ */
|
|
576
|
+
] }) : /* @__PURE__ */ t(R, {})
|
|
569
577
|
}
|
|
570
|
-
) : /* @__PURE__ */
|
|
578
|
+
) : /* @__PURE__ */ t(R, {});
|
|
571
579
|
});
|
|
572
580
|
export {
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
581
|
+
jt as NetWorthChart,
|
|
582
|
+
Ft as NetWorthList,
|
|
583
|
+
Ae as NetWorthMicroWidget,
|
|
584
|
+
ze as NetWorthStore,
|
|
585
|
+
Vt as NetWorthSummary,
|
|
586
|
+
Me as NetWorthWidget
|
|
579
587
|
};
|