@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,46 +1,45 @@
|
|
|
1
1
|
import { jsxs as o, jsx as e, Fragment as ae } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { observer as
|
|
2
|
+
import A, { useState as O } from "react";
|
|
3
|
+
import { observer as $ } from "mobx-react-lite";
|
|
4
4
|
import _ from "@mui/material/Stack";
|
|
5
5
|
import Ee from "@mui/material/Tab";
|
|
6
6
|
import Ge from "@mui/material/Tabs";
|
|
7
|
-
import { C as ge } from "../ConnectionsDrawer-
|
|
7
|
+
import { C as ge } from "../ConnectionsDrawer-Dsc04-4Z.mjs";
|
|
8
8
|
import pe from "@mui/material/useMediaQuery";
|
|
9
9
|
import Me from "@mui/material/Box";
|
|
10
10
|
import Ne from "@mui/material/Collapse";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
11
|
+
import Y from "@mui/material/Divider";
|
|
12
|
+
import te from "@mui/material/List";
|
|
13
|
+
import ne from "@mui/material/ListItem";
|
|
14
|
+
import Ue from "@mui/material/ListItemButton";
|
|
15
15
|
import xe from "@mui/material/ToggleButton";
|
|
16
16
|
import ye from "@mui/material/ToggleButtonGroup";
|
|
17
|
-
import { Text as
|
|
18
|
-
import
|
|
19
|
-
import { u as
|
|
20
|
-
import { A as z, W as
|
|
21
|
-
import { a as
|
|
22
|
-
import { u as
|
|
23
|
-
import
|
|
24
|
-
import { Icon as
|
|
25
|
-
import { D as
|
|
26
|
-
import { useTheme as Ve } from "@mui/material/styles";
|
|
17
|
+
import { Text as i, H1 as fe, P as ve, InstitutionLogo as oe } from "@mxenabled/mxui";
|
|
18
|
+
import He from "@mui/material/Button";
|
|
19
|
+
import { u as M, g as be, t as U, b as J, d as le, n as je } from "../hooks-C41HAxM5.mjs";
|
|
20
|
+
import { A as z, W as ze } from "../WidgetContainer-CDh9fjpR.mjs";
|
|
21
|
+
import { a as Oe, f as ie } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
22
|
+
import { u as H } from "../useScreenSize-B5afALev.mjs";
|
|
23
|
+
import { useTheme as X } from "@mui/material/styles";
|
|
24
|
+
import { Icon as B } from "@mxenabled/mx-icons";
|
|
25
|
+
import { D as Ve } from "../Donut-Dmy3JTWd.mjs";
|
|
27
26
|
import { f as Re, A as V } from "../InvestmentUtil-jOyOgzIB.mjs";
|
|
28
|
-
import
|
|
27
|
+
import $e from "@mui/material/ListItemText";
|
|
29
28
|
import ce from "@mui/material/IconButton";
|
|
30
|
-
import
|
|
29
|
+
import Pe from "@mui/material/Tooltip";
|
|
31
30
|
import _e from "@mui/material/Accordion";
|
|
32
31
|
import we from "@mui/material/AccordionDetails";
|
|
33
32
|
import Ce from "@mui/material/AccordionSummary";
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import { D as
|
|
38
|
-
import { DataGridPro as
|
|
39
|
-
import { Stack as
|
|
40
|
-
import { L as
|
|
41
|
-
import { E as
|
|
33
|
+
import re from "@mui/material/Paper";
|
|
34
|
+
import x from "@mui/system/Stack";
|
|
35
|
+
import De from "@mui/material/TextField";
|
|
36
|
+
import { D as qe } from "../Drawer-BF40nbsH.mjs";
|
|
37
|
+
import { DataGridPro as Ke } from "@mui/x-data-grid-pro";
|
|
38
|
+
import { Stack as Ye } from "@mui/material";
|
|
39
|
+
import { L as Se } from "../Loader-Ckqi9Rx6.mjs";
|
|
40
|
+
import { E as Qe } from "../EmptyState-DoxNUae-.mjs";
|
|
42
41
|
const de = ({ sx: t = {} }) => {
|
|
43
|
-
const { investments:
|
|
42
|
+
const { investments: g } = M(), { onEvent: c } = be(), { setShowConnectionsWidget: u } = U();
|
|
44
43
|
return /* @__PURE__ */ o(_, { sx: { alignItems: "center", gap: 24, height: 164, p: 24, width: "100%", ...t }, children: [
|
|
45
44
|
/* @__PURE__ */ o(
|
|
46
45
|
_,
|
|
@@ -53,35 +52,35 @@ const de = ({ sx: t = {} }) => {
|
|
|
53
52
|
textAlign: "center"
|
|
54
53
|
},
|
|
55
54
|
children: [
|
|
56
|
-
/* @__PURE__ */ e(
|
|
55
|
+
/* @__PURE__ */ e(i, { sx: { fontWeight: 600, whiteSpace: "normal" }, variant: "body1", children: g.overview.investment_accounts_footer }),
|
|
57
56
|
/* @__PURE__ */ e(
|
|
58
|
-
|
|
57
|
+
i,
|
|
59
58
|
{
|
|
60
59
|
sx: {
|
|
61
60
|
color: "text.secondary",
|
|
62
61
|
whiteSpace: "normal",
|
|
63
62
|
fontWeight: 400
|
|
64
63
|
},
|
|
65
|
-
variant: "
|
|
66
|
-
children:
|
|
64
|
+
variant: "subtitle2",
|
|
65
|
+
children: g.overview.connect_more_accounts_description
|
|
67
66
|
}
|
|
68
67
|
)
|
|
69
68
|
]
|
|
70
69
|
}
|
|
71
70
|
),
|
|
72
71
|
/* @__PURE__ */ e(
|
|
73
|
-
|
|
72
|
+
He,
|
|
74
73
|
{
|
|
75
74
|
onClick: () => {
|
|
76
75
|
u(!0), c(z.ACCOUNTS_CLICK_CONNECT);
|
|
77
76
|
},
|
|
78
77
|
sx: { fontWeight: 600 },
|
|
79
78
|
variant: "outlined",
|
|
80
|
-
children:
|
|
79
|
+
children: g.overview.connect_accounts
|
|
81
80
|
}
|
|
82
81
|
)
|
|
83
82
|
] });
|
|
84
|
-
},
|
|
83
|
+
}, Je = {
|
|
85
84
|
allocations_cash: "#AEDCCC",
|
|
86
85
|
allocations_convertible: "#80CAD0",
|
|
87
86
|
allocations_foreign_bond: "#51B9D4",
|
|
@@ -91,7 +90,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
91
90
|
allocations_unknown: "#161D6A",
|
|
92
91
|
allocations_us_bond: "#254995",
|
|
93
92
|
allocations_us_stock: "#1E2D84"
|
|
94
|
-
},
|
|
93
|
+
}, Xe = [
|
|
95
94
|
{
|
|
96
95
|
name: "allocations_cash"
|
|
97
96
|
},
|
|
@@ -119,124 +118,124 @@ const de = ({ sx: t = {} }) => {
|
|
|
119
118
|
{
|
|
120
119
|
name: "allocations_unknown"
|
|
121
120
|
}
|
|
122
|
-
], Ze = (t,
|
|
123
|
-
const u =
|
|
124
|
-
return t >= Math.min(u,
|
|
125
|
-
}, et = (t,
|
|
121
|
+
], Ze = (t, g, c) => {
|
|
122
|
+
const u = g, v = c;
|
|
123
|
+
return t >= Math.min(u, v) && t < Math.max(u, v);
|
|
124
|
+
}, et = (t, g, c) => {
|
|
126
125
|
const u = [
|
|
127
|
-
...new Set(t.map((
|
|
126
|
+
...new Set(t.map((m) => m.name.toLowerCase()))
|
|
128
127
|
];
|
|
129
|
-
let
|
|
130
|
-
return u.map((
|
|
131
|
-
const
|
|
132
|
-
const b =
|
|
133
|
-
return b.toLowerCase() ===
|
|
128
|
+
let v;
|
|
129
|
+
return u.map((m) => {
|
|
130
|
+
const a = t.reduce((y, d) => {
|
|
131
|
+
const b = d.name;
|
|
132
|
+
return b.toLowerCase() === m ? (v = b, Q(d) * d[g] / 100 + y) : y;
|
|
134
133
|
}, 0);
|
|
135
134
|
return {
|
|
136
|
-
displayName:
|
|
137
|
-
name:
|
|
138
|
-
value:
|
|
139
|
-
percentage:
|
|
135
|
+
displayName: v,
|
|
136
|
+
name: v,
|
|
137
|
+
value: a,
|
|
138
|
+
percentage: a / c
|
|
140
139
|
};
|
|
141
140
|
});
|
|
142
|
-
},
|
|
143
|
-
const u = Object.values(
|
|
144
|
-
let
|
|
145
|
-
const
|
|
141
|
+
}, Q = (t) => t.calculated_market_value ? t.calculated_market_value : t.market_value, tt = (t, g, c) => {
|
|
142
|
+
const u = Object.values(g.allocations_list), v = [];
|
|
143
|
+
let f = 0;
|
|
144
|
+
const m = t.map(({ guid: n }) => n), a = c.filter(({ account_guid: n }) => m.includes(n)).map((n) => ({
|
|
146
145
|
...n,
|
|
147
146
|
name: n.symbol || n.description,
|
|
148
|
-
gainLoss: n.cost_basis || n.cost_basis === 0 ?
|
|
149
|
-
})), { cashBalance:
|
|
150
|
-
(n,
|
|
151
|
-
cashBalance: n.cashBalance + (
|
|
152
|
-
totalAccountBalance: n.totalAccountBalance + (
|
|
147
|
+
gainLoss: n.cost_basis || n.cost_basis === 0 ? Q(n) - n.cost_basis : 0
|
|
148
|
+
})), { cashBalance: y, totalAccountBalance: d } = t.reduce(
|
|
149
|
+
(n, p) => ({
|
|
150
|
+
cashBalance: n.cashBalance + (p.cash_balance || 0),
|
|
151
|
+
totalAccountBalance: n.totalAccountBalance + (p.balance || 0)
|
|
153
152
|
}),
|
|
154
153
|
{ cashBalance: 0, totalAccountBalance: 0 }
|
|
155
|
-
), { marketValue: b, totalGainLoss:
|
|
156
|
-
(n,
|
|
157
|
-
marketValue: n.marketValue +
|
|
158
|
-
totalGainLoss: n.totalGainLoss +
|
|
154
|
+
), { marketValue: b, totalGainLoss: l } = a.reduce(
|
|
155
|
+
(n, p) => ({
|
|
156
|
+
marketValue: n.marketValue + Q(p),
|
|
157
|
+
totalGainLoss: n.totalGainLoss + p.gainLoss
|
|
159
158
|
}),
|
|
160
159
|
{ marketValue: 0, totalGainLoss: 0 }
|
|
161
|
-
),
|
|
162
|
-
|
|
163
|
-
const C =
|
|
164
|
-
(
|
|
160
|
+
), h = b + y;
|
|
161
|
+
Xe.forEach((n, p) => {
|
|
162
|
+
const C = a.filter(
|
|
163
|
+
(I) => !!I[n.name]
|
|
165
164
|
);
|
|
166
|
-
let
|
|
167
|
-
(
|
|
165
|
+
let D = C.reduce(
|
|
166
|
+
(I, W) => I + Q(W) * W[n.name] / 100,
|
|
168
167
|
0
|
|
169
168
|
);
|
|
170
|
-
const
|
|
169
|
+
const k = et(
|
|
171
170
|
C,
|
|
172
171
|
n.name,
|
|
173
|
-
|
|
172
|
+
D
|
|
174
173
|
);
|
|
175
|
-
if (n.name === "allocations_cash" &&
|
|
176
|
-
|
|
177
|
-
const
|
|
178
|
-
displayName:
|
|
174
|
+
if (n.name === "allocations_cash" && y > 0) {
|
|
175
|
+
D += y;
|
|
176
|
+
const I = {
|
|
177
|
+
displayName: g.cash_balance_display_name,
|
|
179
178
|
name: "allocations_name",
|
|
180
|
-
value:
|
|
181
|
-
percentage:
|
|
179
|
+
value: y,
|
|
180
|
+
percentage: y / h
|
|
182
181
|
};
|
|
183
|
-
|
|
182
|
+
k.push(I);
|
|
184
183
|
}
|
|
185
|
-
|
|
184
|
+
D > 0 && (v.push({
|
|
186
185
|
name: n.name,
|
|
187
|
-
displayName: u[
|
|
188
|
-
guid: `${n.name}-${
|
|
189
|
-
holdings:
|
|
190
|
-
percentage:
|
|
191
|
-
value:
|
|
192
|
-
color:
|
|
193
|
-
}),
|
|
186
|
+
displayName: u[p],
|
|
187
|
+
guid: `${n.name}-${p}`,
|
|
188
|
+
holdings: k,
|
|
189
|
+
percentage: D / h,
|
|
190
|
+
value: D,
|
|
191
|
+
color: Je[n.name]
|
|
192
|
+
}), f += D);
|
|
194
193
|
});
|
|
195
|
-
const
|
|
196
|
-
({ displayName: n, guid:
|
|
197
|
-
id:
|
|
194
|
+
const r = v.map(
|
|
195
|
+
({ displayName: n, guid: p, color: C, value: D }) => ({
|
|
196
|
+
id: p,
|
|
198
197
|
color: C,
|
|
199
198
|
label: n,
|
|
200
|
-
value:
|
|
199
|
+
value: D / f * 100
|
|
201
200
|
})
|
|
202
201
|
);
|
|
203
202
|
return {
|
|
204
|
-
investmentsData:
|
|
205
|
-
donutData:
|
|
206
|
-
totalAmount:
|
|
207
|
-
totalGainLoss:
|
|
208
|
-
totalMarketValue:
|
|
209
|
-
totalGainLossPercentage:
|
|
203
|
+
investmentsData: v,
|
|
204
|
+
donutData: r,
|
|
205
|
+
totalAmount: f,
|
|
206
|
+
totalGainLoss: l,
|
|
207
|
+
totalMarketValue: h,
|
|
208
|
+
totalGainLossPercentage: l / d
|
|
210
209
|
};
|
|
211
|
-
},
|
|
210
|
+
}, se = (t) => t < 1e-3 ? "< 0.1%" : Oe(t), R = (t) => t === 0 ? ie(t, "0,0.00") : Ze(t, -0.01, 0.01) ? "< $0.01" : ie(t, "0,0.00"), nt = ({
|
|
212
211
|
data: t,
|
|
213
|
-
onSelected:
|
|
212
|
+
onSelected: g,
|
|
214
213
|
selectedId: c,
|
|
215
214
|
selectedTabs: u,
|
|
216
|
-
setSelectedTabs:
|
|
215
|
+
setSelectedTabs: v
|
|
217
216
|
}) => {
|
|
218
|
-
const
|
|
219
|
-
|
|
220
|
-
}, { isMobile:
|
|
221
|
-
investments: { allocation:
|
|
222
|
-
} =
|
|
223
|
-
{ label:
|
|
224
|
-
{ label:
|
|
225
|
-
],
|
|
226
|
-
return /* @__PURE__ */ o(_, { sx: { mt: 15, gap: 12, width:
|
|
217
|
+
const f = (l, h) => {
|
|
218
|
+
h !== null && v(h);
|
|
219
|
+
}, { isMobile: m } = H(), {
|
|
220
|
+
investments: { allocation: a }
|
|
221
|
+
} = M(), y = [
|
|
222
|
+
{ label: a.tabs_label_dollar, value: 0 },
|
|
223
|
+
{ label: a.tabs_label_percent, value: 1 }
|
|
224
|
+
], d = !t?.investmentsData.length, { isSmallMobile: b } = H();
|
|
225
|
+
return /* @__PURE__ */ o(_, { sx: { mt: 15, gap: 12, width: m ? 250 : 412 }, children: [
|
|
227
226
|
/* @__PURE__ */ e(
|
|
228
227
|
ye,
|
|
229
228
|
{
|
|
230
229
|
exclusive: !0,
|
|
231
230
|
fullWidth: !0,
|
|
232
|
-
onChange:
|
|
233
|
-
value:
|
|
234
|
-
children:
|
|
231
|
+
onChange: f,
|
|
232
|
+
value: d ? -1 : u,
|
|
233
|
+
children: y.map(({ label: l, value: h }) => /* @__PURE__ */ e(xe, { color: "primary", value: h, children: /* @__PURE__ */ e(i, { bold: !0, textTransform: "capitalize", variant: "body1", children: l }) }, l))
|
|
235
234
|
}
|
|
236
235
|
),
|
|
237
|
-
/* @__PURE__ */ e(
|
|
236
|
+
/* @__PURE__ */ e(te, { sx: { px: 12 }, children: t.investmentsData.map((l) => /* @__PURE__ */ o(A.Fragment, { children: [
|
|
238
237
|
/* @__PURE__ */ e(
|
|
239
|
-
|
|
238
|
+
ne,
|
|
240
239
|
{
|
|
241
240
|
disableGutters: !0,
|
|
242
241
|
disablePadding: !0,
|
|
@@ -244,10 +243,10 @@ const de = ({ sx: t = {} }) => {
|
|
|
244
243
|
minHeight: 44
|
|
245
244
|
},
|
|
246
245
|
children: /* @__PURE__ */ o(
|
|
247
|
-
|
|
246
|
+
Ue,
|
|
248
247
|
{
|
|
249
|
-
"aria-expanded": c ===
|
|
250
|
-
onClick: () =>
|
|
248
|
+
"aria-expanded": c === l.guid,
|
|
249
|
+
onClick: () => g(l.guid),
|
|
251
250
|
sx: { minHeight: 44, px: 12, py: 0 },
|
|
252
251
|
children: [
|
|
253
252
|
/* @__PURE__ */ e(
|
|
@@ -256,7 +255,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
256
255
|
borderRadius: 4,
|
|
257
256
|
flexShrink: 0,
|
|
258
257
|
height: 8,
|
|
259
|
-
sx: { backgroundColor:
|
|
258
|
+
sx: { backgroundColor: l.color, mr: 8 },
|
|
260
259
|
width: 8
|
|
261
260
|
}
|
|
262
261
|
),
|
|
@@ -268,8 +267,8 @@ const de = ({ sx: t = {} }) => {
|
|
|
268
267
|
justifyContent: "space-between",
|
|
269
268
|
width: "100%",
|
|
270
269
|
children: [
|
|
271
|
-
/* @__PURE__ */ e(
|
|
272
|
-
/* @__PURE__ */ e(
|
|
270
|
+
/* @__PURE__ */ e(i, { bold: c === l.guid, children: l.displayName }),
|
|
271
|
+
/* @__PURE__ */ e(i, { bold: c === l.guid, variant: "body1", children: u === 0 ? R(l.value) : se(l.percentage) })
|
|
273
272
|
]
|
|
274
273
|
}
|
|
275
274
|
)
|
|
@@ -278,10 +277,10 @@ const de = ({ sx: t = {} }) => {
|
|
|
278
277
|
)
|
|
279
278
|
}
|
|
280
279
|
),
|
|
281
|
-
/* @__PURE__ */ e(
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
280
|
+
/* @__PURE__ */ e(Y, {}),
|
|
281
|
+
l.holdings && l.holdings.length > 0 && /* @__PURE__ */ e(Ne, { in: c === l.guid, unmountOnExit: !0, children: /* @__PURE__ */ o(te, { children: [
|
|
282
|
+
l?.holdings?.map((h) => /* @__PURE__ */ e(
|
|
283
|
+
ne,
|
|
285
284
|
{
|
|
286
285
|
sx: {
|
|
287
286
|
pl: 24,
|
|
@@ -289,21 +288,21 @@ const de = ({ sx: t = {} }) => {
|
|
|
289
288
|
py: 0
|
|
290
289
|
},
|
|
291
290
|
children: /* @__PURE__ */ o(_, { direction: "row", justifyContent: "space-between", width: "100%", children: [
|
|
292
|
-
/* @__PURE__ */ o(
|
|
293
|
-
|
|
291
|
+
/* @__PURE__ */ o(i, { children: [
|
|
292
|
+
h.displayName,
|
|
294
293
|
" "
|
|
295
294
|
] }),
|
|
296
|
-
/* @__PURE__ */ e(
|
|
295
|
+
/* @__PURE__ */ e(i, { children: u === 0 ? R(h.value) : se(h.percentage) })
|
|
297
296
|
] })
|
|
298
297
|
},
|
|
299
|
-
|
|
298
|
+
h.displayName
|
|
300
299
|
)),
|
|
301
|
-
/* @__PURE__ */ e(
|
|
300
|
+
/* @__PURE__ */ e(Y, {})
|
|
302
301
|
] }) })
|
|
303
|
-
] },
|
|
304
|
-
|
|
305
|
-
/* @__PURE__ */ e(
|
|
306
|
-
/* @__PURE__ */ e(
|
|
302
|
+
] }, l.guid)) }),
|
|
303
|
+
d ? /* @__PURE__ */ o(ae, { children: [
|
|
304
|
+
/* @__PURE__ */ e(i, { sx: { color: "secondary.main", p: 8, textAlign: "center" }, children: a.empty_data }),
|
|
305
|
+
/* @__PURE__ */ e(Y, { sx: { borderColor: "neutral.light" } }),
|
|
307
306
|
/* @__PURE__ */ e(
|
|
308
307
|
de,
|
|
309
308
|
{
|
|
@@ -312,55 +311,55 @@ const de = ({ sx: t = {} }) => {
|
|
|
312
311
|
}
|
|
313
312
|
}
|
|
314
313
|
)
|
|
315
|
-
] }) : u === 0 && /* @__PURE__ */ e(
|
|
314
|
+
] }) : u === 0 && /* @__PURE__ */ e(i, { bold: !0, sx: { textAlign: "right", pr: 24 }, children: `${a.total_label_text} ${R(t.totalAmount)}` })
|
|
316
315
|
] });
|
|
317
316
|
}, ot = ({
|
|
318
317
|
data: t,
|
|
319
|
-
hoveredId:
|
|
318
|
+
hoveredId: g,
|
|
320
319
|
isPercentage: c,
|
|
321
320
|
onMouseEnter: u,
|
|
322
|
-
onMouseLeave:
|
|
323
|
-
onSelected:
|
|
324
|
-
selectedId:
|
|
325
|
-
size:
|
|
326
|
-
totalLabel:
|
|
321
|
+
onMouseLeave: v,
|
|
322
|
+
onSelected: f,
|
|
323
|
+
selectedId: m,
|
|
324
|
+
size: a = 150,
|
|
325
|
+
totalLabel: y
|
|
327
326
|
}) => {
|
|
328
|
-
const
|
|
329
|
-
() =>
|
|
330
|
-
[
|
|
327
|
+
const d = X(), b = d.palette.mode === "dark", l = A.useMemo(
|
|
328
|
+
() => m ? t.investmentsData.find(({ guid: k }) => k === m) : void 0,
|
|
329
|
+
[m]
|
|
331
330
|
), {
|
|
332
|
-
investments: { allocation:
|
|
333
|
-
} =
|
|
331
|
+
investments: { allocation: h }
|
|
332
|
+
} = M(), r = A.useMemo(() => t.donutData.length > 0 ? t.donutData : [{ id: "0", color: d.palette.neutral.light, value: 100 }], [t, d]), n = b ? "#0AC295" : "#09A57F", p = b ? "grey.300" : "grey.700", C = () => l ? h.pie_chart_centered_click_for_details : c ? se(t.totalGainLossPercentage) : R(t.totalGainLoss), D = t.totalGainLoss >= 0 ? n : p;
|
|
334
333
|
return /* @__PURE__ */ e(
|
|
335
|
-
|
|
334
|
+
Ve,
|
|
336
335
|
{
|
|
337
|
-
data:
|
|
338
|
-
hoveredId:
|
|
339
|
-
onClick:
|
|
336
|
+
data: r,
|
|
337
|
+
hoveredId: g,
|
|
338
|
+
onClick: f,
|
|
340
339
|
onMouseEnter: u,
|
|
341
|
-
onMouseLeave:
|
|
342
|
-
selectedId:
|
|
343
|
-
size:
|
|
344
|
-
children: /* @__PURE__ */ e(_, { alignItems: "center", height: "100%", justifyContent: "center", width: "100%", children: /* @__PURE__ */ e(_, { alignItems: "center", justifyContent: "center", minHeight:
|
|
345
|
-
/* @__PURE__ */ e(
|
|
346
|
-
/* @__PURE__ */ e(fe, { color: "text.primary", children: R(
|
|
340
|
+
onMouseLeave: v,
|
|
341
|
+
selectedId: m,
|
|
342
|
+
size: a,
|
|
343
|
+
children: /* @__PURE__ */ e(_, { alignItems: "center", height: "100%", justifyContent: "center", width: "100%", children: /* @__PURE__ */ e(_, { alignItems: "center", justifyContent: "center", minHeight: a, minWidth: a, children: /* @__PURE__ */ o(_, { alignItems: "center", sx: { gap: { xs: 4, xl: 8 }, mb: { xs: 4, xl: 8 } }, children: [
|
|
344
|
+
/* @__PURE__ */ e(i, { color: "text.secondary", noWrap: !0, children: l?.displayName ?? y }),
|
|
345
|
+
/* @__PURE__ */ e(fe, { color: "text.primary", children: R(l?.value ?? t.totalMarketValue) }),
|
|
347
346
|
/* @__PURE__ */ o(_, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
|
|
348
|
-
!
|
|
349
|
-
|
|
347
|
+
!l && /* @__PURE__ */ e(
|
|
348
|
+
B,
|
|
350
349
|
{
|
|
351
350
|
name: t.totalGainLoss >= 0 ? "trending_up" : "trending_down",
|
|
352
351
|
size: 20,
|
|
353
|
-
sx: { color:
|
|
352
|
+
sx: { color: D }
|
|
354
353
|
}
|
|
355
354
|
),
|
|
356
355
|
/* @__PURE__ */ e(
|
|
357
|
-
|
|
356
|
+
i,
|
|
358
357
|
{
|
|
359
358
|
sx: {
|
|
360
|
-
color:
|
|
359
|
+
color: D,
|
|
361
360
|
fontWeight: 700
|
|
362
361
|
},
|
|
363
|
-
variant: "
|
|
362
|
+
variant: "body2",
|
|
364
363
|
children: C()
|
|
365
364
|
}
|
|
366
365
|
)
|
|
@@ -369,20 +368,20 @@ const de = ({ sx: t = {} }) => {
|
|
|
369
368
|
}
|
|
370
369
|
);
|
|
371
370
|
}, it = () => {
|
|
372
|
-
const [t,
|
|
373
|
-
c !== n ? u(n) : (u(""),
|
|
374
|
-
}, { selectedAccountGuids:
|
|
371
|
+
const [t, g] = A.useState(0), [c, u] = A.useState(""), [v, f] = A.useState(""), m = (n) => {
|
|
372
|
+
c !== n ? u(n) : (u(""), f(""));
|
|
373
|
+
}, { selectedAccountGuids: a } = J(), { visibleHoldings: y } = U(), { visibleInvestmentAccounts: d } = le(), {
|
|
375
374
|
investments: { allocation: b }
|
|
376
|
-
} =
|
|
377
|
-
|
|
375
|
+
} = M(), l = tt(
|
|
376
|
+
d.filter(({ guid: n }) => a.includes(n)),
|
|
378
377
|
b,
|
|
379
|
-
|
|
380
|
-
), { isMobile:
|
|
378
|
+
y
|
|
379
|
+
), { isMobile: h } = H(), r = pe("(max-width:768px)");
|
|
381
380
|
return /* @__PURE__ */ o(
|
|
382
381
|
_,
|
|
383
382
|
{
|
|
384
|
-
alignItems:
|
|
385
|
-
direction:
|
|
383
|
+
alignItems: r ? "center" : "flex-start",
|
|
384
|
+
direction: r ? "column" : "row",
|
|
386
385
|
gap: { xs: 16, md: 64, xl: 100 },
|
|
387
386
|
sx: {
|
|
388
387
|
justifyContent: "center",
|
|
@@ -393,45 +392,45 @@ const de = ({ sx: t = {} }) => {
|
|
|
393
392
|
/* @__PURE__ */ e(
|
|
394
393
|
ot,
|
|
395
394
|
{
|
|
396
|
-
data:
|
|
397
|
-
hoveredId:
|
|
395
|
+
data: l,
|
|
396
|
+
hoveredId: v,
|
|
398
397
|
isPercentage: t === 1,
|
|
399
398
|
onMouseEnter: (n) => {
|
|
400
|
-
c === n ?
|
|
399
|
+
c === n ? f("") : c || f(n);
|
|
401
400
|
},
|
|
402
401
|
onMouseLeave: () => {
|
|
403
|
-
|
|
402
|
+
f("");
|
|
404
403
|
},
|
|
405
|
-
onSelected:
|
|
404
|
+
onSelected: m,
|
|
406
405
|
selectedId: c,
|
|
407
|
-
size:
|
|
406
|
+
size: h ? 280 : 400,
|
|
408
407
|
totalLabel: b.pie_chart_centered_text
|
|
409
408
|
}
|
|
410
409
|
),
|
|
411
410
|
/* @__PURE__ */ e(
|
|
412
411
|
nt,
|
|
413
412
|
{
|
|
414
|
-
data:
|
|
415
|
-
onSelected:
|
|
413
|
+
data: l,
|
|
414
|
+
onSelected: m,
|
|
416
415
|
selectedId: c,
|
|
417
416
|
selectedTabs: t,
|
|
418
|
-
setSelectedTabs:
|
|
417
|
+
setSelectedTabs: g
|
|
419
418
|
}
|
|
420
419
|
)
|
|
421
420
|
]
|
|
422
421
|
}
|
|
423
422
|
);
|
|
424
|
-
}, rt =
|
|
423
|
+
}, rt = $(it), st = ({
|
|
425
424
|
analysisDetails: t,
|
|
426
|
-
analysisType:
|
|
425
|
+
analysisType: g,
|
|
427
426
|
copy: c,
|
|
428
427
|
setAnalysisType: u
|
|
429
428
|
}) => {
|
|
430
|
-
const { isSmallMobile:
|
|
431
|
-
key:
|
|
432
|
-
value:
|
|
433
|
-
formattedKey: Re(
|
|
434
|
-
})), [t]),
|
|
429
|
+
const { isSmallMobile: v } = H(), f = A.useMemo(() => Object.keys(t).filter((a) => t[a] >= 1).map((a) => ({
|
|
430
|
+
key: a,
|
|
431
|
+
value: ie(t[a], "0,0"),
|
|
432
|
+
formattedKey: Re(a)
|
|
433
|
+
})), [t]), m = [
|
|
435
434
|
{ label: c.equities, value: V.Stocks },
|
|
436
435
|
{ label: c.bonds, value: V.Bonds }
|
|
437
436
|
];
|
|
@@ -441,7 +440,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
441
440
|
{
|
|
442
441
|
color: "primary",
|
|
443
442
|
exclusive: !0,
|
|
444
|
-
onChange: (
|
|
443
|
+
onChange: (a, y) => y && u(y),
|
|
445
444
|
sx: {
|
|
446
445
|
width: "100%",
|
|
447
446
|
"& .MuiToggleButton-root": {
|
|
@@ -450,67 +449,67 @@ const de = ({ sx: t = {} }) => {
|
|
|
450
449
|
textTransform: "capitalize"
|
|
451
450
|
}
|
|
452
451
|
},
|
|
453
|
-
value:
|
|
454
|
-
children:
|
|
452
|
+
value: f.length ? g : -1,
|
|
453
|
+
children: m.map(({ label: a, value: y }) => /* @__PURE__ */ e(xe, { sx: { width: "100%" }, value: y, children: a }, y))
|
|
455
454
|
}
|
|
456
455
|
),
|
|
457
|
-
|
|
458
|
-
|
|
456
|
+
f.length ? /* @__PURE__ */ e(
|
|
457
|
+
te,
|
|
459
458
|
{
|
|
460
459
|
sx: {
|
|
461
460
|
"& .MuiListItemSecondaryAction-root": { pr: 12 },
|
|
462
|
-
"& .MuiListItem-divider": { borderColor: "
|
|
461
|
+
"& .MuiListItem-divider": { borderColor: "neutral.light" },
|
|
463
462
|
"& .MuiListItem-root": { minHeight: 44, px: 12 }
|
|
464
463
|
},
|
|
465
|
-
children:
|
|
466
|
-
|
|
464
|
+
children: f.map(({ value: a, formattedKey: y }) => /* @__PURE__ */ e(ne, { divider: !0, secondaryAction: /* @__PURE__ */ e(i, { children: a }), children: /* @__PURE__ */ e(
|
|
465
|
+
$e,
|
|
467
466
|
{
|
|
468
|
-
primary:
|
|
467
|
+
primary: y,
|
|
469
468
|
primaryTypographyProps: { fontStyle: "normal" }
|
|
470
469
|
}
|
|
471
|
-
) },
|
|
470
|
+
) }, y))
|
|
472
471
|
}
|
|
473
472
|
) : /* @__PURE__ */ o(ae, { children: [
|
|
474
|
-
/* @__PURE__ */ e(
|
|
475
|
-
/* @__PURE__ */ e(
|
|
473
|
+
/* @__PURE__ */ e(i, { sx: { color: "secondary.main", p: 8, textAlign: "center" }, children: c.empty_data }),
|
|
474
|
+
/* @__PURE__ */ e(Y, { sx: { borderColor: "neutral.light" } }),
|
|
476
475
|
/* @__PURE__ */ e(
|
|
477
476
|
de,
|
|
478
477
|
{
|
|
479
478
|
sx: {
|
|
480
|
-
".inner-container": { width:
|
|
479
|
+
".inner-container": { width: v ? "100%" : 364 }
|
|
481
480
|
}
|
|
482
481
|
}
|
|
483
482
|
)
|
|
484
483
|
] })
|
|
485
484
|
] });
|
|
486
|
-
},
|
|
487
|
-
/* @__PURE__ */ e(
|
|
488
|
-
/* @__PURE__ */ e(ve, { variant: "
|
|
485
|
+
}, at = ({ body: t, title: g }) => /* @__PURE__ */ o(_, { sx: { gap: 4, p: 12 }, children: [
|
|
486
|
+
/* @__PURE__ */ e(i, { bold: !0, variant: "body1", children: g }),
|
|
487
|
+
/* @__PURE__ */ e(ve, { variant: "subtitle2", children: t })
|
|
489
488
|
] }), lt = ({
|
|
490
489
|
placement: t = "bottom",
|
|
491
|
-
tooltip_info_body:
|
|
490
|
+
tooltip_info_body: g,
|
|
492
491
|
tooltip_info_title: c
|
|
493
492
|
}) => /* @__PURE__ */ e(
|
|
494
|
-
|
|
493
|
+
Pe,
|
|
495
494
|
{
|
|
496
495
|
enterTouchDelay: 500,
|
|
497
496
|
placement: t,
|
|
498
|
-
title: /* @__PURE__ */ e(
|
|
499
|
-
children: /* @__PURE__ */ e(ce, { "aria-label": c, sx: { minHeight: 0, minWidth: 0, p: 0 }, children: /* @__PURE__ */ e(
|
|
497
|
+
title: /* @__PURE__ */ e(at, { body: g, title: c }),
|
|
498
|
+
children: /* @__PURE__ */ e(ce, { "aria-label": c, sx: { minHeight: 0, minWidth: 0, p: 0 }, children: /* @__PURE__ */ e(B, { name: "info", sx: { color: "info.main" } }) })
|
|
500
499
|
}
|
|
501
500
|
), ct = () => {
|
|
502
501
|
const {
|
|
503
502
|
investments: { analysis: t }
|
|
504
|
-
} =
|
|
505
|
-
const
|
|
506
|
-
return { cellDimension:
|
|
507
|
-
}, [t,
|
|
503
|
+
} = M(), { analysisChartData: g, analysisDetails: c, analysisType: u, setAnalysisType: v } = U(), f = pe("(min-width:320px) and (max-width:375px)"), { isMobile: m } = H(), y = X().palette.mode === "dark", { cellDimension: d, columns: b, rows: l, textVariant: h } = A.useMemo(() => {
|
|
504
|
+
const r = u === V.Stocks, n = Object.values(r ? t.stock_column_labels : t.bond_column_labels), p = Object.values(r ? t.stock_row_labels : t.bond_row_labels);
|
|
505
|
+
return { cellDimension: m ? 72 : 100, columns: n, rows: p, textVariant: m ? "caption" : "body1" };
|
|
506
|
+
}, [t, m, u]);
|
|
508
507
|
return /* @__PURE__ */ o(
|
|
509
508
|
_,
|
|
510
509
|
{
|
|
511
510
|
sx: {
|
|
512
511
|
flexDirection: { md: "row" },
|
|
513
|
-
gap:
|
|
512
|
+
gap: m ? 48 : 64,
|
|
514
513
|
justifyContent: "center",
|
|
515
514
|
pt: 48,
|
|
516
515
|
px: 16
|
|
@@ -531,34 +530,34 @@ const de = ({ sx: t = {} }) => {
|
|
|
531
530
|
{
|
|
532
531
|
sx: {
|
|
533
532
|
alignItems: "center",
|
|
534
|
-
bottom:
|
|
535
|
-
gap:
|
|
533
|
+
bottom: m ? 10 : 24,
|
|
534
|
+
gap: m ? 0 : 24,
|
|
536
535
|
position: "relative",
|
|
537
536
|
transform: "rotate(-180deg)",
|
|
538
537
|
writingMode: "vertical-rl"
|
|
539
538
|
},
|
|
540
539
|
children: [
|
|
541
|
-
/* @__PURE__ */ e(ve, { bold: !0, color: "secondary.main", variant:
|
|
540
|
+
/* @__PURE__ */ e(ve, { bold: !0, color: "secondary.main", variant: h, children: u === V.Stocks ? t.market_capitalization : t.credit_quality }),
|
|
542
541
|
/* @__PURE__ */ e(
|
|
543
542
|
_,
|
|
544
543
|
{
|
|
545
544
|
sx: {
|
|
546
545
|
flexDirection: "row",
|
|
547
|
-
height:
|
|
546
|
+
height: m ? 224 : 308,
|
|
548
547
|
justifyContent: "space-around"
|
|
549
548
|
},
|
|
550
|
-
children: b.map((
|
|
551
|
-
|
|
549
|
+
children: b.map((r) => /* @__PURE__ */ e(
|
|
550
|
+
i,
|
|
552
551
|
{
|
|
553
552
|
sx: {
|
|
554
553
|
color: "secondary.main",
|
|
555
554
|
pl: 12,
|
|
556
|
-
pr:
|
|
555
|
+
pr: m ? 4 : 0
|
|
557
556
|
},
|
|
558
|
-
variant:
|
|
559
|
-
children:
|
|
557
|
+
variant: h,
|
|
558
|
+
children: r
|
|
560
559
|
},
|
|
561
|
-
|
|
560
|
+
r
|
|
562
561
|
))
|
|
563
562
|
}
|
|
564
563
|
)
|
|
@@ -570,13 +569,13 @@ const de = ({ sx: t = {} }) => {
|
|
|
570
569
|
_,
|
|
571
570
|
{
|
|
572
571
|
sx: {
|
|
573
|
-
alignSelf:
|
|
572
|
+
alignSelf: f ? "start" : "center",
|
|
574
573
|
flexDirection: "row",
|
|
575
574
|
gap: 8,
|
|
576
575
|
pb: 12
|
|
577
576
|
},
|
|
578
577
|
children: [
|
|
579
|
-
/* @__PURE__ */ e(
|
|
578
|
+
/* @__PURE__ */ e(i, { bold: !0, children: t.invest_analysis }),
|
|
580
579
|
/* @__PURE__ */ e(
|
|
581
580
|
lt,
|
|
582
581
|
{
|
|
@@ -587,47 +586,47 @@ const de = ({ sx: t = {} }) => {
|
|
|
587
586
|
]
|
|
588
587
|
}
|
|
589
588
|
),
|
|
590
|
-
|
|
591
|
-
const
|
|
589
|
+
g.map((r, n, p) => /* @__PURE__ */ e(_, { sx: { flexDirection: "row", gap: 4 }, children: r.map((C, D) => {
|
|
590
|
+
const k = n === 0, I = n === p.length - 1, W = D === 0, G = D === r.length - 1, F = Number(C.replace("%", "")) >= 25;
|
|
592
591
|
let T = "grey.200", j = "grey.900";
|
|
593
|
-
return
|
|
592
|
+
return y ? (T = F ? "grey.200" : "grey.700", j = F ? "grey.900" : "common.white") : (T = F ? "grey.700" : "grey.200", j = F ? "common.white" : "grey.900"), /* @__PURE__ */ e(
|
|
594
593
|
_,
|
|
595
594
|
{
|
|
596
595
|
sx: {
|
|
597
596
|
...{
|
|
598
|
-
borderBottomLeftRadius:
|
|
599
|
-
borderBottomRightRadius:
|
|
600
|
-
borderTopLeftRadius:
|
|
601
|
-
borderTopRightRadius:
|
|
597
|
+
borderBottomLeftRadius: I && W ? 4 : 0,
|
|
598
|
+
borderBottomRightRadius: I && G ? 4 : 0,
|
|
599
|
+
borderTopLeftRadius: k && W ? 4 : 0,
|
|
600
|
+
borderTopRightRadius: k && G ? 4 : 0
|
|
602
601
|
},
|
|
603
602
|
alignItems: "center",
|
|
604
603
|
bgcolor: T,
|
|
605
|
-
height:
|
|
604
|
+
height: d,
|
|
606
605
|
justifyContent: "center",
|
|
607
|
-
width:
|
|
606
|
+
width: d
|
|
608
607
|
},
|
|
609
608
|
children: /* @__PURE__ */ e(
|
|
610
|
-
|
|
609
|
+
i,
|
|
611
610
|
{
|
|
612
611
|
sx: {
|
|
613
612
|
color: j,
|
|
614
|
-
fontWeight:
|
|
613
|
+
fontWeight: m ? 600 : 700
|
|
615
614
|
},
|
|
616
|
-
variant:
|
|
615
|
+
variant: m ? "body1" : "h3",
|
|
617
616
|
children: C
|
|
618
617
|
}
|
|
619
618
|
)
|
|
620
619
|
},
|
|
621
|
-
|
|
620
|
+
D
|
|
622
621
|
);
|
|
623
622
|
}) }, n)),
|
|
624
|
-
/* @__PURE__ */ e(_, { sx: { alignSelf: "center", flexDirection: "row", pt: 12 }, children:
|
|
623
|
+
/* @__PURE__ */ e(_, { sx: { alignSelf: "center", flexDirection: "row", pt: 12 }, children: l.map((r) => /* @__PURE__ */ e(_, { sx: { alignItems: "center", width: d }, children: /* @__PURE__ */ e(i, { color: "secondary.main", variant: h, children: r }) }, r)) }),
|
|
625
624
|
/* @__PURE__ */ e(
|
|
626
|
-
|
|
625
|
+
i,
|
|
627
626
|
{
|
|
628
627
|
bold: !0,
|
|
629
|
-
sx: { color: "secondary.main", pt:
|
|
630
|
-
variant:
|
|
628
|
+
sx: { color: "secondary.main", pt: m ? 4 : 24, textAlign: "center" },
|
|
629
|
+
variant: h,
|
|
631
630
|
children: u === V.Stocks ? t.valuation : t.duration
|
|
632
631
|
}
|
|
633
632
|
)
|
|
@@ -636,7 +635,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
636
635
|
}
|
|
637
636
|
),
|
|
638
637
|
/* @__PURE__ */ e(
|
|
639
|
-
|
|
638
|
+
st,
|
|
640
639
|
{
|
|
641
640
|
analysisDetails: c,
|
|
642
641
|
analysisType: u,
|
|
@@ -645,51 +644,51 @@ const de = ({ sx: t = {} }) => {
|
|
|
645
644
|
equities: t.equities,
|
|
646
645
|
bonds: t.bonds
|
|
647
646
|
},
|
|
648
|
-
setAnalysisType:
|
|
647
|
+
setAnalysisType: v
|
|
649
648
|
}
|
|
650
649
|
)
|
|
651
650
|
]
|
|
652
651
|
}
|
|
653
652
|
);
|
|
654
|
-
}, dt =
|
|
653
|
+
}, dt = $(ct), mt = ({
|
|
655
654
|
accountHoldingsData: t,
|
|
656
|
-
currentEditedCostBasis:
|
|
655
|
+
currentEditedCostBasis: g,
|
|
657
656
|
editingHoldingId: c,
|
|
658
657
|
handleCostBasisBlur: u,
|
|
659
|
-
handleCostBasisClick:
|
|
660
|
-
handleCostBasisChange:
|
|
661
|
-
handleCostBasisKeyDown:
|
|
662
|
-
isOpen:
|
|
663
|
-
onClose:
|
|
658
|
+
handleCostBasisClick: v,
|
|
659
|
+
handleCostBasisChange: f,
|
|
660
|
+
handleCostBasisKeyDown: m,
|
|
661
|
+
isOpen: a,
|
|
662
|
+
onClose: y
|
|
664
663
|
}) => {
|
|
665
|
-
const { investments:
|
|
666
|
-
|
|
664
|
+
const { investments: d } = M(), [b, l] = A.useState({}), h = (r) => (n, p) => {
|
|
665
|
+
l((C) => ({
|
|
667
666
|
...C,
|
|
668
|
-
[
|
|
667
|
+
[r]: p
|
|
669
668
|
}));
|
|
670
669
|
};
|
|
671
670
|
return /* @__PURE__ */ o(
|
|
672
|
-
|
|
671
|
+
qe,
|
|
673
672
|
{
|
|
674
|
-
ariaLabelClose:
|
|
675
|
-
isOpen:
|
|
676
|
-
onClose:
|
|
677
|
-
title:
|
|
673
|
+
ariaLabelClose: d.overview.close_investment_drawer,
|
|
674
|
+
isOpen: a,
|
|
675
|
+
onClose: y,
|
|
676
|
+
title: d.overview.investment_details,
|
|
678
677
|
children: [
|
|
679
|
-
/* @__PURE__ */ o(
|
|
678
|
+
/* @__PURE__ */ o(x, { sx: { gap: 8, p: 24 }, children: [
|
|
680
679
|
/* @__PURE__ */ e(
|
|
681
|
-
|
|
680
|
+
oe,
|
|
682
681
|
{
|
|
683
682
|
alt: t.accounts.institutionName || "",
|
|
684
683
|
institutionGuid: t.accounts.institution_guid || "",
|
|
685
684
|
size: 64
|
|
686
685
|
}
|
|
687
686
|
),
|
|
688
|
-
/* @__PURE__ */ e(
|
|
689
|
-
/* @__PURE__ */ e(
|
|
690
|
-
/* @__PURE__ */ o(
|
|
691
|
-
/* @__PURE__ */ e(
|
|
692
|
-
/* @__PURE__ */ e(
|
|
687
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.primary" }, variant: "body2", children: t.accounts.memberName }),
|
|
688
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.primary" }, variant: "h2", children: t.accounts.user_name || t.accounts.name }),
|
|
689
|
+
/* @__PURE__ */ o(x, { sx: { alignItems: "center", flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
690
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.primary", fontWeight: 600 }, variant: "body1", children: d.overview.current_balance }),
|
|
691
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.primary", fontWeight: 600 }, variant: "body1", children: t.accounts.balance?.toLocaleString("en-US", {
|
|
693
692
|
currency: "USD",
|
|
694
693
|
maximumFractionDigits: 2,
|
|
695
694
|
minimumFractionDigits: 2,
|
|
@@ -698,7 +697,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
698
697
|
] })
|
|
699
698
|
] }),
|
|
700
699
|
/* @__PURE__ */ o(
|
|
701
|
-
|
|
700
|
+
x,
|
|
702
701
|
{
|
|
703
702
|
sx: {
|
|
704
703
|
bgcolor: "background.default",
|
|
@@ -708,19 +707,19 @@ const de = ({ sx: t = {} }) => {
|
|
|
708
707
|
py: 10
|
|
709
708
|
},
|
|
710
709
|
children: [
|
|
711
|
-
/* @__PURE__ */ e(
|
|
712
|
-
/* @__PURE__ */ e(
|
|
710
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.primary", fontWeight: 700 }, variant: "caption", children: d.overview.holding }),
|
|
711
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.primary", fontWeight: 700 }, variant: "caption", children: d.overview.market_value })
|
|
713
712
|
]
|
|
714
713
|
}
|
|
715
714
|
),
|
|
716
|
-
t.holdings?.map((
|
|
717
|
-
const
|
|
715
|
+
t.holdings?.map((r, n) => {
|
|
716
|
+
const p = c === r.id;
|
|
718
717
|
return /* @__PURE__ */ o(
|
|
719
718
|
_e,
|
|
720
719
|
{
|
|
721
720
|
disableGutters: !0,
|
|
722
|
-
expanded: b[
|
|
723
|
-
onChange:
|
|
721
|
+
expanded: b[r.id] === !0,
|
|
722
|
+
onChange: r ? h(r?.id) : () => {
|
|
724
723
|
},
|
|
725
724
|
sx: {
|
|
726
725
|
":before": n === 0 ? { opacity: 0 } : {},
|
|
@@ -734,15 +733,15 @@ const de = ({ sx: t = {} }) => {
|
|
|
734
733
|
id: "panel1a-header",
|
|
735
734
|
sx: [
|
|
736
735
|
{ height: 64 },
|
|
737
|
-
b[
|
|
736
|
+
b[r.id] && n > 0 && {
|
|
738
737
|
borderTop: 1,
|
|
739
|
-
borderColor: "
|
|
738
|
+
borderColor: "neutral.main"
|
|
740
739
|
}
|
|
741
740
|
],
|
|
742
|
-
children: /* @__PURE__ */ o(
|
|
741
|
+
children: /* @__PURE__ */ o(x, { sx: { flexDirection: "row", width: "100%" }, children: [
|
|
743
742
|
/* @__PURE__ */ e("div", { style: { width: 24 } }),
|
|
744
743
|
/* @__PURE__ */ o(
|
|
745
|
-
|
|
744
|
+
x,
|
|
746
745
|
{
|
|
747
746
|
sx: [
|
|
748
747
|
{
|
|
@@ -753,28 +752,28 @@ const de = ({ sx: t = {} }) => {
|
|
|
753
752
|
py: 14,
|
|
754
753
|
width: "100%"
|
|
755
754
|
},
|
|
756
|
-
b[
|
|
755
|
+
b[r.id] && {
|
|
757
756
|
borderBottom: 1,
|
|
758
|
-
borderColor: "
|
|
757
|
+
borderColor: "neutral.main"
|
|
759
758
|
}
|
|
760
759
|
],
|
|
761
760
|
children: [
|
|
762
761
|
/* @__PURE__ */ e(
|
|
763
|
-
|
|
762
|
+
x,
|
|
764
763
|
{
|
|
765
764
|
sx: {
|
|
766
765
|
alignItems: "center",
|
|
767
766
|
flexDirection: "row",
|
|
768
767
|
gap: 12
|
|
769
768
|
},
|
|
770
|
-
children: /* @__PURE__ */ o(
|
|
771
|
-
/* @__PURE__ */ e(
|
|
772
|
-
/* @__PURE__ */ e(
|
|
769
|
+
children: /* @__PURE__ */ o(x, { sx: { overflow: "hidden", width: 98 }, children: [
|
|
770
|
+
/* @__PURE__ */ e(i, { sx: { fontWeight: 600 }, variant: "body1", children: r.holding }),
|
|
771
|
+
/* @__PURE__ */ e(i, { variant: "caption", children: r.description })
|
|
773
772
|
] })
|
|
774
773
|
}
|
|
775
774
|
),
|
|
776
775
|
/* @__PURE__ */ o(
|
|
777
|
-
|
|
776
|
+
x,
|
|
778
777
|
{
|
|
779
778
|
sx: {
|
|
780
779
|
alignItems: "center",
|
|
@@ -784,47 +783,47 @@ const de = ({ sx: t = {} }) => {
|
|
|
784
783
|
justifyContent: "flex-end"
|
|
785
784
|
},
|
|
786
785
|
children: [
|
|
787
|
-
/* @__PURE__ */ o(
|
|
788
|
-
/* @__PURE__ */ e(
|
|
786
|
+
/* @__PURE__ */ o(x, { children: [
|
|
787
|
+
/* @__PURE__ */ e(i, { sx: { fontWeight: 600, textAlign: "right" }, variant: "body1", children: r.marketValue?.toLocaleString("en-US", {
|
|
789
788
|
currency: "USD",
|
|
790
789
|
maximumFractionDigits: 2,
|
|
791
790
|
minimumFractionDigits: 2,
|
|
792
791
|
style: "currency"
|
|
793
792
|
}) }),
|
|
794
|
-
/* @__PURE__ */ o(
|
|
795
|
-
|
|
796
|
-
|
|
793
|
+
/* @__PURE__ */ o(x, { sx: { alignItems: "center", gap: 2, flexDirection: "row" }, children: [
|
|
794
|
+
r.totalGainLoss !== 0 && /* @__PURE__ */ e(
|
|
795
|
+
B,
|
|
797
796
|
{
|
|
798
|
-
name:
|
|
797
|
+
name: r.totalGainLoss >= 0 ? "trending_up" : "trending_down",
|
|
799
798
|
size: 12,
|
|
800
799
|
sx: {
|
|
801
800
|
verticalAlign: "middle",
|
|
802
801
|
mr: 1,
|
|
803
|
-
color:
|
|
802
|
+
color: r.totalGainLoss >= 0 ? "success.main" : "grey.700"
|
|
804
803
|
}
|
|
805
804
|
}
|
|
806
805
|
),
|
|
807
806
|
/* @__PURE__ */ e(
|
|
808
|
-
|
|
807
|
+
i,
|
|
809
808
|
{
|
|
810
809
|
sx: {
|
|
811
|
-
color:
|
|
812
|
-
fontWeight:
|
|
810
|
+
color: r.totalGainLoss <= 0 ? "grey.700" : "success.main",
|
|
811
|
+
fontWeight: r.totalGainLoss <= 0 ? 400 : 700
|
|
813
812
|
},
|
|
814
|
-
variant: "
|
|
815
|
-
children:
|
|
813
|
+
variant: "caption",
|
|
814
|
+
children: r.costBasis ? `${(r.totalGainLoss / r.costBasis * 100).toFixed(2)}%` : "0.00%"
|
|
816
815
|
}
|
|
817
816
|
),
|
|
818
|
-
/* @__PURE__ */ e(
|
|
817
|
+
/* @__PURE__ */ e(i, { sx: { color: "grey.700" }, variant: "caption", children: "|" }),
|
|
819
818
|
/* @__PURE__ */ e(
|
|
820
|
-
|
|
819
|
+
i,
|
|
821
820
|
{
|
|
822
821
|
sx: {
|
|
823
|
-
color:
|
|
824
|
-
fontWeight:
|
|
822
|
+
color: r.totalGainLoss <= 0 ? "grey.700" : "success.main",
|
|
823
|
+
fontWeight: r.totalGainLoss <= 0 ? 400 : 700
|
|
825
824
|
},
|
|
826
|
-
variant: "
|
|
827
|
-
children: Math.abs(
|
|
825
|
+
variant: "caption",
|
|
826
|
+
children: Math.abs(r.totalGainLoss).toLocaleString("en-US", {
|
|
828
827
|
currency: "USD",
|
|
829
828
|
maximumFractionDigits: 2,
|
|
830
829
|
minimumFractionDigits: 2,
|
|
@@ -835,9 +834,9 @@ const de = ({ sx: t = {} }) => {
|
|
|
835
834
|
] })
|
|
836
835
|
] }),
|
|
837
836
|
/* @__PURE__ */ e(
|
|
838
|
-
|
|
837
|
+
B,
|
|
839
838
|
{
|
|
840
|
-
name: b[
|
|
839
|
+
name: b[r.id] ? "expand_less" : "expand_more",
|
|
841
840
|
size: 20
|
|
842
841
|
}
|
|
843
842
|
)
|
|
@@ -851,7 +850,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
851
850
|
}
|
|
852
851
|
),
|
|
853
852
|
/* @__PURE__ */ e(we, { children: /* @__PURE__ */ o(
|
|
854
|
-
|
|
853
|
+
x,
|
|
855
854
|
{
|
|
856
855
|
sx: {
|
|
857
856
|
alignItems: "center",
|
|
@@ -860,28 +859,28 @@ const de = ({ sx: t = {} }) => {
|
|
|
860
859
|
pl: 24
|
|
861
860
|
},
|
|
862
861
|
children: [
|
|
863
|
-
/* @__PURE__ */ e(
|
|
864
|
-
/* @__PURE__ */ o(
|
|
862
|
+
/* @__PURE__ */ e(x, { sx: { width: 32 } }),
|
|
863
|
+
/* @__PURE__ */ o(x, { sx: { flex: 1 }, children: [
|
|
865
864
|
/* @__PURE__ */ o(
|
|
866
|
-
|
|
865
|
+
x,
|
|
867
866
|
{
|
|
868
867
|
sx: {
|
|
869
868
|
alignItems: "center",
|
|
870
869
|
borderBottom: 1,
|
|
871
|
-
borderColor: "
|
|
870
|
+
borderColor: "neutral.main",
|
|
872
871
|
flexDirection: "row",
|
|
873
872
|
height: 48,
|
|
874
873
|
justifyContent: "space-between",
|
|
875
874
|
pr: 24
|
|
876
875
|
},
|
|
877
876
|
children: [
|
|
878
|
-
/* @__PURE__ */ e(
|
|
879
|
-
/* @__PURE__ */ e(
|
|
877
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.primary" }, variant: "body1", children: d.overview.quantity }),
|
|
878
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.primary" }, variant: "body2", children: r.qty })
|
|
880
879
|
]
|
|
881
880
|
}
|
|
882
881
|
),
|
|
883
882
|
/* @__PURE__ */ o(
|
|
884
|
-
|
|
883
|
+
x,
|
|
885
884
|
{
|
|
886
885
|
sx: {
|
|
887
886
|
alignItems: "center",
|
|
@@ -891,9 +890,9 @@ const de = ({ sx: t = {} }) => {
|
|
|
891
890
|
pr: 24
|
|
892
891
|
},
|
|
893
892
|
children: [
|
|
894
|
-
/* @__PURE__ */ e(
|
|
893
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.primary" }, variant: "body1", children: d.overview.cost_basis_header }),
|
|
895
894
|
/* @__PURE__ */ o(
|
|
896
|
-
|
|
895
|
+
x,
|
|
897
896
|
{
|
|
898
897
|
direction: "row",
|
|
899
898
|
sx: {
|
|
@@ -901,13 +900,13 @@ const de = ({ sx: t = {} }) => {
|
|
|
901
900
|
gap: 4
|
|
902
901
|
},
|
|
903
902
|
children: [
|
|
904
|
-
|
|
905
|
-
|
|
903
|
+
p ? /* @__PURE__ */ e(
|
|
904
|
+
De,
|
|
906
905
|
{
|
|
907
906
|
autoFocus: !0,
|
|
908
|
-
onBlur: () => u(
|
|
909
|
-
onChange:
|
|
910
|
-
onKeyDown: (C) =>
|
|
907
|
+
onBlur: () => u(r.id),
|
|
908
|
+
onChange: f,
|
|
909
|
+
onKeyDown: (C) => m(C, r.id),
|
|
911
910
|
size: "small",
|
|
912
911
|
sx: {
|
|
913
912
|
fontSize: 14,
|
|
@@ -922,9 +921,9 @@ const de = ({ sx: t = {} }) => {
|
|
|
922
921
|
border: "none"
|
|
923
922
|
}
|
|
924
923
|
},
|
|
925
|
-
value:
|
|
924
|
+
value: g
|
|
926
925
|
}
|
|
927
|
-
) : /* @__PURE__ */ e(
|
|
926
|
+
) : /* @__PURE__ */ e(i, { sx: { fontSize: 14, width: 58 }, variant: "body2", children: r.costBasis?.toLocaleString("en-US", {
|
|
928
927
|
currency: "USD",
|
|
929
928
|
maximumFractionDigits: 2,
|
|
930
929
|
minimumFractionDigits: 2,
|
|
@@ -933,9 +932,9 @@ const de = ({ sx: t = {} }) => {
|
|
|
933
932
|
/* @__PURE__ */ e(
|
|
934
933
|
ce,
|
|
935
934
|
{
|
|
936
|
-
onClick: () =>
|
|
935
|
+
onClick: () => v(r.id, r.costBasis),
|
|
937
936
|
sx: { minWidth: 16, minHeight: 16 },
|
|
938
|
-
children: /* @__PURE__ */ e(
|
|
937
|
+
children: /* @__PURE__ */ e(B, { name: "stylus", size: 16, sx: { color: "grey.700" } })
|
|
939
938
|
}
|
|
940
939
|
)
|
|
941
940
|
]
|
|
@@ -950,28 +949,28 @@ const de = ({ sx: t = {} }) => {
|
|
|
950
949
|
) })
|
|
951
950
|
]
|
|
952
951
|
},
|
|
953
|
-
|
|
952
|
+
r.id
|
|
954
953
|
);
|
|
955
954
|
})
|
|
956
955
|
]
|
|
957
956
|
}
|
|
958
957
|
);
|
|
959
|
-
}, ut =
|
|
960
|
-
/* @__PURE__ */ e(
|
|
961
|
-
/* @__PURE__ */ e(
|
|
958
|
+
}, ut = $(mt), K = (t) => /* @__PURE__ */ o(Ye, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
|
|
959
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.primary", fontWeight: 600, fontSize: 14 }, variant: "body2", children: t.colDef.headerName }),
|
|
960
|
+
/* @__PURE__ */ e(B, { name: "expand_all", size: 12 })
|
|
962
961
|
] }), ht = ({
|
|
963
962
|
data: t,
|
|
964
|
-
editingHoldingId:
|
|
963
|
+
editingHoldingId: g,
|
|
965
964
|
currentEditedCostBasis: c,
|
|
966
965
|
handleCostBasisClick: u,
|
|
967
|
-
handleCostBasisChange:
|
|
968
|
-
handleCostBasisKeyDown:
|
|
969
|
-
handleCostBasisBlur:
|
|
966
|
+
handleCostBasisChange: v,
|
|
967
|
+
handleCostBasisKeyDown: f,
|
|
968
|
+
handleCostBasisBlur: m
|
|
970
969
|
}) => {
|
|
971
|
-
const { investments:
|
|
970
|
+
const { investments: a } = M(), d = X().palette.mode === "dark", b = "success.main", l = d ? "grey.300" : "grey.700", h = (n, p = "lesserThan") => p === "greaterThan" ? n >= 0 ? b : l : n <= 0 ? l : b, r = [
|
|
972
971
|
{
|
|
973
972
|
field: "qty",
|
|
974
|
-
headerName:
|
|
973
|
+
headerName: a.overview.qty_header,
|
|
975
974
|
sortable: !1,
|
|
976
975
|
width: 48,
|
|
977
976
|
align: "center",
|
|
@@ -979,29 +978,29 @@ const de = ({ sx: t = {} }) => {
|
|
|
979
978
|
},
|
|
980
979
|
{
|
|
981
980
|
field: "holding",
|
|
982
|
-
headerName:
|
|
981
|
+
headerName: a.overview.holding_header,
|
|
983
982
|
flex: 1,
|
|
984
|
-
renderHeader:
|
|
983
|
+
renderHeader: K,
|
|
985
984
|
renderCell: (n) => /* @__PURE__ */ e(_, { sx: { alignItems: "center", gap: 16, flexDirection: "row" }, children: /* @__PURE__ */ o(_, { children: [
|
|
986
|
-
/* @__PURE__ */ e(
|
|
987
|
-
/* @__PURE__ */ e(
|
|
985
|
+
/* @__PURE__ */ e(i, { sx: { fontWeight: 700 }, children: n.row.holding }),
|
|
986
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.secondary", fontWeight: 400 }, variant: "tiny", children: n.row.description })
|
|
988
987
|
] }) })
|
|
989
988
|
},
|
|
990
989
|
{
|
|
991
990
|
field: "costBasis",
|
|
992
|
-
headerName:
|
|
991
|
+
headerName: a.overview.cost_basis_header,
|
|
993
992
|
width: 132,
|
|
994
|
-
renderHeader:
|
|
993
|
+
renderHeader: K,
|
|
995
994
|
renderCell: (n) => {
|
|
996
|
-
const
|
|
995
|
+
const p = g === n.row.id;
|
|
997
996
|
return /* @__PURE__ */ o(_, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
|
|
998
|
-
|
|
999
|
-
|
|
997
|
+
p ? /* @__PURE__ */ e(
|
|
998
|
+
De,
|
|
1000
999
|
{
|
|
1001
1000
|
autoFocus: !0,
|
|
1002
|
-
onBlur: () =>
|
|
1003
|
-
onChange:
|
|
1004
|
-
onKeyDown: (C) =>
|
|
1001
|
+
onBlur: () => m(n.row.id),
|
|
1002
|
+
onChange: v,
|
|
1003
|
+
onKeyDown: (C) => f(C, n.row.id),
|
|
1005
1004
|
size: "small",
|
|
1006
1005
|
sx: {
|
|
1007
1006
|
fontSize: 14,
|
|
@@ -1018,7 +1017,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
1018
1017
|
},
|
|
1019
1018
|
value: c
|
|
1020
1019
|
}
|
|
1021
|
-
) : /* @__PURE__ */ e(
|
|
1020
|
+
) : /* @__PURE__ */ e(i, { sx: { fontSize: 14, width: 57 }, variant: "body2", children: n.value?.toLocaleString("en-US", {
|
|
1022
1021
|
currency: "USD",
|
|
1023
1022
|
maximumFractionDigits: 2,
|
|
1024
1023
|
minimumFractionDigits: 2,
|
|
@@ -1029,7 +1028,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
1029
1028
|
{
|
|
1030
1029
|
onClick: () => u(n.row.id, n.row.costBasis),
|
|
1031
1030
|
sx: { minWidth: 12, minHeight: 12 },
|
|
1032
|
-
children: /* @__PURE__ */ e(
|
|
1031
|
+
children: /* @__PURE__ */ e(B, { name: "stylus", size: 12, sx: { color: "grey.700" } })
|
|
1033
1032
|
}
|
|
1034
1033
|
)
|
|
1035
1034
|
] });
|
|
@@ -1039,44 +1038,44 @@ const de = ({ sx: t = {} }) => {
|
|
|
1039
1038
|
},
|
|
1040
1039
|
{
|
|
1041
1040
|
field: "totalGainLoss",
|
|
1042
|
-
headerName:
|
|
1041
|
+
headerName: a.overview.total_gain_loss_header,
|
|
1043
1042
|
width: 196,
|
|
1044
|
-
renderHeader:
|
|
1043
|
+
renderHeader: K,
|
|
1045
1044
|
renderCell: (n) => {
|
|
1046
|
-
const
|
|
1045
|
+
const p = n.row.costBasis, C = p ? n.row.totalGainLoss / p * 100 : 0;
|
|
1047
1046
|
return /* @__PURE__ */ o(_, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
|
|
1048
1047
|
n.value !== 0 && /* @__PURE__ */ e(
|
|
1049
|
-
|
|
1048
|
+
B,
|
|
1050
1049
|
{
|
|
1051
1050
|
name: n.value > 0 ? "trending_up" : "trending_down",
|
|
1052
1051
|
size: 16,
|
|
1053
1052
|
sx: {
|
|
1054
|
-
color:
|
|
1053
|
+
color: h(n.value),
|
|
1055
1054
|
mr: 1,
|
|
1056
1055
|
verticalAlign: "middle"
|
|
1057
1056
|
}
|
|
1058
1057
|
}
|
|
1059
1058
|
),
|
|
1060
1059
|
/* @__PURE__ */ e(
|
|
1061
|
-
|
|
1060
|
+
i,
|
|
1062
1061
|
{
|
|
1063
1062
|
sx: {
|
|
1064
|
-
color:
|
|
1063
|
+
color: h(n.value),
|
|
1065
1064
|
fontWeight: n.value > 0 ? 700 : 400
|
|
1066
1065
|
},
|
|
1067
|
-
variant: "
|
|
1068
|
-
children:
|
|
1066
|
+
variant: "body2",
|
|
1067
|
+
children: p ? `${C.toFixed(2)}%` : "0.00%"
|
|
1069
1068
|
}
|
|
1070
1069
|
),
|
|
1071
|
-
/* @__PURE__ */ e(
|
|
1070
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.secondary" }, variant: "caption", children: "|" }),
|
|
1072
1071
|
/* @__PURE__ */ e(
|
|
1073
|
-
|
|
1072
|
+
i,
|
|
1074
1073
|
{
|
|
1075
1074
|
sx: {
|
|
1076
|
-
color:
|
|
1075
|
+
color: h(n.value),
|
|
1077
1076
|
fontWeight: n.value > 0 ? 700 : 400
|
|
1078
1077
|
},
|
|
1079
|
-
variant: "
|
|
1078
|
+
variant: "body2",
|
|
1080
1079
|
children: Math.abs(n.value).toLocaleString("en-US", {
|
|
1081
1080
|
currency: "USD",
|
|
1082
1081
|
maximumFractionDigits: 2,
|
|
@@ -1093,10 +1092,10 @@ const de = ({ sx: t = {} }) => {
|
|
|
1093
1092
|
},
|
|
1094
1093
|
{
|
|
1095
1094
|
field: "marketValue",
|
|
1096
|
-
headerName:
|
|
1095
|
+
headerName: a.overview.market_value_header,
|
|
1097
1096
|
width: 132,
|
|
1098
|
-
renderHeader:
|
|
1099
|
-
renderCell: (n) => /* @__PURE__ */ e(
|
|
1097
|
+
renderHeader: K,
|
|
1098
|
+
renderCell: (n) => /* @__PURE__ */ e(i, { sx: { fontWeight: 700 }, variant: "body2", children: n.value?.toLocaleString("en-US", {
|
|
1100
1099
|
currency: "USD",
|
|
1101
1100
|
maximumFractionDigits: 2,
|
|
1102
1101
|
minimumFractionDigits: 2,
|
|
@@ -1107,16 +1106,16 @@ const de = ({ sx: t = {} }) => {
|
|
|
1107
1106
|
}
|
|
1108
1107
|
];
|
|
1109
1108
|
return /* @__PURE__ */ e(
|
|
1110
|
-
|
|
1109
|
+
re,
|
|
1111
1110
|
{
|
|
1112
1111
|
sx: {
|
|
1113
1112
|
boxShadow: "none",
|
|
1114
1113
|
width: "100%"
|
|
1115
1114
|
},
|
|
1116
1115
|
children: /* @__PURE__ */ e(
|
|
1117
|
-
|
|
1116
|
+
Ke,
|
|
1118
1117
|
{
|
|
1119
|
-
columns:
|
|
1118
|
+
columns: r,
|
|
1120
1119
|
disableColumnFilter: !0,
|
|
1121
1120
|
disableColumnMenu: !0,
|
|
1122
1121
|
disableRowSelectionOnClick: !0,
|
|
@@ -1128,69 +1127,69 @@ const de = ({ sx: t = {} }) => {
|
|
|
1128
1127
|
}
|
|
1129
1128
|
);
|
|
1130
1129
|
}, gt = () => {
|
|
1131
|
-
const { isMobile: t } =
|
|
1130
|
+
const { isMobile: t } = H(), [g, c] = O({}), [u, v] = O(!1), { selectedAccountGuids: f } = J(), { visibleHoldings: m, updateHoldings: a } = U(), [y, d] = A.useState(!1), [b, l] = O({
|
|
1132
1131
|
accounts: [],
|
|
1133
1132
|
holdings: []
|
|
1134
|
-
}), { accounts:
|
|
1135
|
-
C(
|
|
1136
|
-
},
|
|
1137
|
-
const w =
|
|
1138
|
-
/^\d*\.?\d*$/.test(w) &&
|
|
1139
|
-
}, me = (
|
|
1140
|
-
|
|
1141
|
-
},
|
|
1142
|
-
const w =
|
|
1133
|
+
}), { accounts: h, investments: r } = M(), { isCopyLoaded: n } = J(), [p, C] = O(null), [D, k] = O(""), W = X().palette.mode === "dark", G = W ? "#0AC295" : "#09A57F", F = W ? "grey.300" : "grey.700", T = (s, w = "lesserThan") => w === "greaterThan" ? s >= 0 ? G : F : s <= 0 ? F : G, j = (s, w) => {
|
|
1134
|
+
C(s), k(w.toFixed(2));
|
|
1135
|
+
}, Z = (s) => {
|
|
1136
|
+
const w = s.target.value;
|
|
1137
|
+
/^\d*\.?\d*$/.test(w) && k(w);
|
|
1138
|
+
}, me = (s, w) => {
|
|
1139
|
+
s.key === "Enter" ? ee(w) : s.key === "Escape" && C(null);
|
|
1140
|
+
}, ee = (s) => {
|
|
1141
|
+
const w = m.find(({ guid: E }) => E === s);
|
|
1143
1142
|
if (!w) return;
|
|
1144
|
-
const
|
|
1145
|
-
if (
|
|
1146
|
-
const
|
|
1147
|
-
(
|
|
1143
|
+
const N = Number(D);
|
|
1144
|
+
if (a({ ...w, cost_basis: N }), t) {
|
|
1145
|
+
const E = b.holdings.map(
|
|
1146
|
+
(S) => S.id === s ? { ...S, costBasis: N } : S
|
|
1148
1147
|
);
|
|
1149
|
-
|
|
1150
|
-
...
|
|
1151
|
-
holdings:
|
|
1148
|
+
l((S) => ({
|
|
1149
|
+
...S,
|
|
1150
|
+
holdings: E
|
|
1152
1151
|
}));
|
|
1153
1152
|
}
|
|
1154
1153
|
C(null);
|
|
1155
|
-
}, Le = (
|
|
1156
|
-
c((
|
|
1157
|
-
...
|
|
1158
|
-
[
|
|
1154
|
+
}, Le = (s) => (w, N) => {
|
|
1155
|
+
c((E) => ({
|
|
1156
|
+
...E,
|
|
1157
|
+
[s]: N
|
|
1159
1158
|
}));
|
|
1160
|
-
}, { visibleHoldings: ue } =
|
|
1161
|
-
({ guid:
|
|
1162
|
-
), Ae =
|
|
1163
|
-
({ account_guid:
|
|
1164
|
-
).reduce((
|
|
1165
|
-
const
|
|
1166
|
-
return
|
|
1159
|
+
}, { visibleHoldings: ue } = U(), { visibleInvestmentAccounts: Ie } = le(), P = Ie.filter(
|
|
1160
|
+
({ guid: s }) => f.includes(s)
|
|
1161
|
+
), Ae = P.reduce((s, w) => s + (w.balance || 0), 0), ke = P.map(({ guid: s }) => s), q = ue.filter(
|
|
1162
|
+
({ account_guid: s }) => ke.includes(s)
|
|
1163
|
+
).reduce((s, w) => {
|
|
1164
|
+
const N = w.market_value ? w.market_value - (w.cost_basis || 0) : 0;
|
|
1165
|
+
return s + N;
|
|
1167
1166
|
}, 0), Te = () => {
|
|
1168
|
-
|
|
1167
|
+
v(!1);
|
|
1169
1168
|
};
|
|
1170
|
-
return n ? /* @__PURE__ */ o(
|
|
1171
|
-
!!
|
|
1172
|
-
/* @__PURE__ */ e(
|
|
1169
|
+
return n ? /* @__PURE__ */ o(x, { sx: { alignItems: "center", gap: 48, pt: 48, width: "100%" }, children: [
|
|
1170
|
+
!!P.length && /* @__PURE__ */ o(x, { sx: { alignItems: "center" }, children: [
|
|
1171
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.secondary" }, children: r.overview.total_portfolio }),
|
|
1173
1172
|
/* @__PURE__ */ e(fe, { children: Ae.toLocaleString("en-US", {
|
|
1174
1173
|
currency: "USD",
|
|
1175
1174
|
maximumFractionDigits: 2,
|
|
1176
1175
|
minimumFractionDigits: 2,
|
|
1177
1176
|
style: "currency"
|
|
1178
1177
|
}) }),
|
|
1179
|
-
/* @__PURE__ */ o(
|
|
1178
|
+
/* @__PURE__ */ o(x, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
|
|
1180
1179
|
/* @__PURE__ */ e(
|
|
1181
|
-
|
|
1180
|
+
B,
|
|
1182
1181
|
{
|
|
1183
|
-
name:
|
|
1182
|
+
name: q >= 0 ? "trending_up" : "trending_down",
|
|
1184
1183
|
size: 20,
|
|
1185
|
-
sx: { color: T(
|
|
1184
|
+
sx: { color: T(q, "greaterThan") }
|
|
1186
1185
|
}
|
|
1187
1186
|
),
|
|
1188
1187
|
/* @__PURE__ */ e(
|
|
1189
|
-
|
|
1188
|
+
i,
|
|
1190
1189
|
{
|
|
1191
|
-
sx: { color: T(
|
|
1192
|
-
variant: "
|
|
1193
|
-
children:
|
|
1190
|
+
sx: { color: T(q, "greaterThan"), fontWeight: 700 },
|
|
1191
|
+
variant: "body2",
|
|
1192
|
+
children: q.toLocaleString("en-US", {
|
|
1194
1193
|
currency: "USD",
|
|
1195
1194
|
maximumFractionDigits: 2,
|
|
1196
1195
|
minimumFractionDigits: 2,
|
|
@@ -1200,27 +1199,27 @@ const de = ({ sx: t = {} }) => {
|
|
|
1200
1199
|
)
|
|
1201
1200
|
] })
|
|
1202
1201
|
] }),
|
|
1203
|
-
|
|
1204
|
-
const w = ue.filter((
|
|
1205
|
-
id:
|
|
1206
|
-
qty:
|
|
1207
|
-
holding:
|
|
1208
|
-
costBasis:
|
|
1209
|
-
totalGainLoss:
|
|
1210
|
-
marketValue:
|
|
1211
|
-
description:
|
|
1212
|
-
})),
|
|
1213
|
-
(
|
|
1202
|
+
P.map((s) => {
|
|
1203
|
+
const w = ue.filter((L) => L.account_guid === s.guid).map((L) => ({
|
|
1204
|
+
id: L.guid,
|
|
1205
|
+
qty: L.shares || 0,
|
|
1206
|
+
holding: L.symbol || L.description || "Unknown",
|
|
1207
|
+
costBasis: L.cost_basis || 0,
|
|
1208
|
+
totalGainLoss: L.market_value ? L.market_value - (L.cost_basis || 0) : 0,
|
|
1209
|
+
marketValue: L.market_value || 0,
|
|
1210
|
+
description: L.description || ""
|
|
1211
|
+
})), N = w.length > 0, E = s.balance, S = w.reduce(
|
|
1212
|
+
(L, Fe) => Fe.totalGainLoss + L,
|
|
1214
1213
|
0
|
|
1215
|
-
), he =
|
|
1214
|
+
), he = E ? S / E * 100 : 0;
|
|
1216
1215
|
if (t)
|
|
1217
1216
|
return /* @__PURE__ */ e(
|
|
1218
|
-
|
|
1217
|
+
re,
|
|
1219
1218
|
{
|
|
1220
1219
|
onClick: w.length ? () => {
|
|
1221
|
-
|
|
1220
|
+
v(!0), l({
|
|
1222
1221
|
holdings: w,
|
|
1223
|
-
accounts:
|
|
1222
|
+
accounts: s
|
|
1224
1223
|
});
|
|
1225
1224
|
} : void 0,
|
|
1226
1225
|
sx: {
|
|
@@ -1228,11 +1227,11 @@ const de = ({ sx: t = {} }) => {
|
|
|
1228
1227
|
overflow: "hidden"
|
|
1229
1228
|
},
|
|
1230
1229
|
children: /* @__PURE__ */ o(
|
|
1231
|
-
|
|
1230
|
+
x,
|
|
1232
1231
|
{
|
|
1233
1232
|
sx: {
|
|
1234
1233
|
border: 1,
|
|
1235
|
-
borderColor: "
|
|
1234
|
+
borderColor: "divider",
|
|
1236
1235
|
borderRadius: "8px",
|
|
1237
1236
|
ml: 16,
|
|
1238
1237
|
mr: 16,
|
|
@@ -1241,12 +1240,12 @@ const de = ({ sx: t = {} }) => {
|
|
|
1241
1240
|
},
|
|
1242
1241
|
children: [
|
|
1243
1242
|
/* @__PURE__ */ o(
|
|
1244
|
-
|
|
1243
|
+
x,
|
|
1245
1244
|
{
|
|
1246
1245
|
sx: {
|
|
1247
1246
|
alignItems: "center",
|
|
1248
1247
|
borderBottom: 1,
|
|
1249
|
-
borderColor: "
|
|
1248
|
+
borderColor: "divider",
|
|
1250
1249
|
flexDirection: "row",
|
|
1251
1250
|
pb: 14,
|
|
1252
1251
|
pl: 14,
|
|
@@ -1254,22 +1253,22 @@ const de = ({ sx: t = {} }) => {
|
|
|
1254
1253
|
},
|
|
1255
1254
|
children: [
|
|
1256
1255
|
/* @__PURE__ */ e(
|
|
1257
|
-
|
|
1256
|
+
oe,
|
|
1258
1257
|
{
|
|
1259
|
-
alt:
|
|
1260
|
-
institutionGuid:
|
|
1258
|
+
alt: s.institutionName || "",
|
|
1259
|
+
institutionGuid: s.institution_guid || "",
|
|
1261
1260
|
size: 32
|
|
1262
1261
|
}
|
|
1263
1262
|
),
|
|
1264
|
-
/* @__PURE__ */ o(
|
|
1265
|
-
/* @__PURE__ */ e(
|
|
1266
|
-
/* @__PURE__ */ e(
|
|
1263
|
+
/* @__PURE__ */ o(x, { sx: { overflow: "hidden", pl: 13, pr: 13 }, children: [
|
|
1264
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.secondary" }, variant: "caption", children: s.memberName }),
|
|
1265
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.primary", fontWeight: 600 }, variant: "body1", children: s.user_name || s.name })
|
|
1267
1266
|
] })
|
|
1268
1267
|
]
|
|
1269
1268
|
}
|
|
1270
1269
|
),
|
|
1271
1270
|
/* @__PURE__ */ o(
|
|
1272
|
-
|
|
1271
|
+
x,
|
|
1273
1272
|
{
|
|
1274
1273
|
sx: {
|
|
1275
1274
|
alignItems: "center",
|
|
@@ -1280,12 +1279,12 @@ const de = ({ sx: t = {} }) => {
|
|
|
1280
1279
|
},
|
|
1281
1280
|
children: [
|
|
1282
1281
|
/* @__PURE__ */ o(
|
|
1283
|
-
|
|
1282
|
+
x,
|
|
1284
1283
|
{
|
|
1285
1284
|
sx: {
|
|
1286
1285
|
alignItems: "center",
|
|
1287
1286
|
borderRight: 1,
|
|
1288
|
-
borderColor: "
|
|
1287
|
+
borderColor: "divider",
|
|
1289
1288
|
flex: 1,
|
|
1290
1289
|
justifyContent: "center",
|
|
1291
1290
|
pb: 14,
|
|
@@ -1294,9 +1293,9 @@ const de = ({ sx: t = {} }) => {
|
|
|
1294
1293
|
pt: 14
|
|
1295
1294
|
},
|
|
1296
1295
|
children: [
|
|
1297
|
-
/* @__PURE__ */ e(
|
|
1296
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.secondary", fontSize: 11 }, variant: "body2", children: r.overview.total_gain_Loss }),
|
|
1298
1297
|
/* @__PURE__ */ o(
|
|
1299
|
-
|
|
1298
|
+
x,
|
|
1300
1299
|
{
|
|
1301
1300
|
sx: {
|
|
1302
1301
|
alignItems: "center",
|
|
@@ -1305,38 +1304,38 @@ const de = ({ sx: t = {} }) => {
|
|
|
1305
1304
|
justifyContent: "flex-end"
|
|
1306
1305
|
},
|
|
1307
1306
|
children: [
|
|
1308
|
-
|
|
1309
|
-
|
|
1307
|
+
S !== 0 && /* @__PURE__ */ e(
|
|
1308
|
+
B,
|
|
1310
1309
|
{
|
|
1311
|
-
name:
|
|
1310
|
+
name: S > 0 ? "trending_up" : "trending_down",
|
|
1312
1311
|
size: 20,
|
|
1313
|
-
sx: { color: T(
|
|
1312
|
+
sx: { color: T(S) }
|
|
1314
1313
|
}
|
|
1315
1314
|
),
|
|
1316
1315
|
/* @__PURE__ */ o(
|
|
1317
|
-
|
|
1316
|
+
i,
|
|
1318
1317
|
{
|
|
1319
1318
|
sx: {
|
|
1320
|
-
color: T(
|
|
1319
|
+
color: T(S),
|
|
1321
1320
|
fontWeight: 600
|
|
1322
1321
|
},
|
|
1323
|
-
variant: "
|
|
1322
|
+
variant: "body1",
|
|
1324
1323
|
children: [
|
|
1325
1324
|
he.toFixed(2),
|
|
1326
1325
|
"%"
|
|
1327
1326
|
]
|
|
1328
1327
|
}
|
|
1329
1328
|
),
|
|
1330
|
-
/* @__PURE__ */ e(
|
|
1329
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.secondary" }, variant: "caption", children: "|" }),
|
|
1331
1330
|
/* @__PURE__ */ e(
|
|
1332
|
-
|
|
1331
|
+
i,
|
|
1333
1332
|
{
|
|
1334
1333
|
sx: {
|
|
1335
|
-
color: T(
|
|
1334
|
+
color: T(S),
|
|
1336
1335
|
fontWeight: 600
|
|
1337
1336
|
},
|
|
1338
|
-
variant: "
|
|
1339
|
-
children: Math.abs(
|
|
1337
|
+
variant: "body1",
|
|
1338
|
+
children: Math.abs(S).toLocaleString("en-US", {
|
|
1340
1339
|
currency: "USD",
|
|
1341
1340
|
maximumFractionDigits: 2,
|
|
1342
1341
|
minimumFractionDigits: 2,
|
|
@@ -1351,7 +1350,7 @@ const de = ({ sx: t = {} }) => {
|
|
|
1351
1350
|
}
|
|
1352
1351
|
),
|
|
1353
1352
|
/* @__PURE__ */ o(
|
|
1354
|
-
|
|
1353
|
+
x,
|
|
1355
1354
|
{
|
|
1356
1355
|
sx: {
|
|
1357
1356
|
alignItems: "center",
|
|
@@ -1363,8 +1362,8 @@ const de = ({ sx: t = {} }) => {
|
|
|
1363
1362
|
pt: 14
|
|
1364
1363
|
},
|
|
1365
1364
|
children: [
|
|
1366
|
-
/* @__PURE__ */ e(
|
|
1367
|
-
/* @__PURE__ */ e(
|
|
1365
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.secondary" }, variant: "caption", children: r.overview.total_value }),
|
|
1366
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.primary", fontWeight: 600 }, variant: "body1", children: E?.toLocaleString("en-US", {
|
|
1368
1367
|
currency: "USD",
|
|
1369
1368
|
maximumFractionDigits: 2,
|
|
1370
1369
|
minimumFractionDigits: 2,
|
|
@@ -1380,14 +1379,14 @@ const de = ({ sx: t = {} }) => {
|
|
|
1380
1379
|
}
|
|
1381
1380
|
)
|
|
1382
1381
|
},
|
|
1383
|
-
|
|
1382
|
+
s.guid
|
|
1384
1383
|
);
|
|
1385
|
-
const
|
|
1384
|
+
const Be = W ? "grey.700" : "grey.400", We = w.length ? "text.primary" : Be;
|
|
1386
1385
|
return /* @__PURE__ */ o(
|
|
1387
1386
|
_e,
|
|
1388
1387
|
{
|
|
1389
|
-
expanded:
|
|
1390
|
-
onChange:
|
|
1388
|
+
expanded: g[s.guid] === !0,
|
|
1389
|
+
onChange: N ? Le(s.guid) : () => {
|
|
1391
1390
|
},
|
|
1392
1391
|
sx: {
|
|
1393
1392
|
border: 1,
|
|
@@ -1402,15 +1401,15 @@ const de = ({ sx: t = {} }) => {
|
|
|
1402
1401
|
"aria-controls": "panel1a-content",
|
|
1403
1402
|
id: "panel1a-header",
|
|
1404
1403
|
sx: [
|
|
1405
|
-
|
|
1404
|
+
g[s.guid] && {
|
|
1406
1405
|
borderBottom: 1,
|
|
1407
|
-
borderColor: "
|
|
1406
|
+
borderColor: "divider",
|
|
1408
1407
|
maxHeight: 88
|
|
1409
1408
|
}
|
|
1410
1409
|
],
|
|
1411
1410
|
children: [
|
|
1412
1411
|
/* @__PURE__ */ o(
|
|
1413
|
-
|
|
1412
|
+
x,
|
|
1414
1413
|
{
|
|
1415
1414
|
sx: {
|
|
1416
1415
|
alignItems: "center",
|
|
@@ -1420,27 +1419,27 @@ const de = ({ sx: t = {} }) => {
|
|
|
1420
1419
|
width: "100%"
|
|
1421
1420
|
},
|
|
1422
1421
|
children: [
|
|
1423
|
-
/* @__PURE__ */ e(
|
|
1422
|
+
/* @__PURE__ */ e(B, { name: "expand_more", size: 20, sx: { color: We } }),
|
|
1424
1423
|
/* @__PURE__ */ e(
|
|
1425
|
-
|
|
1424
|
+
oe,
|
|
1426
1425
|
{
|
|
1427
|
-
alt:
|
|
1428
|
-
institutionGuid:
|
|
1426
|
+
alt: s.institutionName || "",
|
|
1427
|
+
institutionGuid: s.institution_guid || "",
|
|
1429
1428
|
size: 32
|
|
1430
1429
|
}
|
|
1431
1430
|
),
|
|
1432
|
-
/* @__PURE__ */ o(
|
|
1433
|
-
/* @__PURE__ */ e(
|
|
1434
|
-
/* @__PURE__ */ e(
|
|
1431
|
+
/* @__PURE__ */ o(x, { sx: { alignItems: "flex-start" }, children: [
|
|
1432
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.secondary" }, variant: "caption", children: s.memberName }),
|
|
1433
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.primary", fontWeight: 600 }, variant: "body1", children: s.user_name || s.name })
|
|
1435
1434
|
] })
|
|
1436
1435
|
]
|
|
1437
1436
|
}
|
|
1438
1437
|
),
|
|
1439
|
-
/* @__PURE__ */ o(
|
|
1440
|
-
/* @__PURE__ */ o(
|
|
1441
|
-
/* @__PURE__ */ e(
|
|
1438
|
+
/* @__PURE__ */ o(x, { sx: { flexDirection: "row" }, children: [
|
|
1439
|
+
/* @__PURE__ */ o(x, { sx: { alignItems: "flex-end", pb: 14, pl: 24, pr: 24, pt: 14 }, children: [
|
|
1440
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.secondary" }, variant: "caption", children: r.overview.total_gain_Loss }),
|
|
1442
1441
|
/* @__PURE__ */ o(
|
|
1443
|
-
|
|
1442
|
+
x,
|
|
1444
1443
|
{
|
|
1445
1444
|
sx: {
|
|
1446
1445
|
alignItems: "center",
|
|
@@ -1449,38 +1448,38 @@ const de = ({ sx: t = {} }) => {
|
|
|
1449
1448
|
justifyContent: "flex-end"
|
|
1450
1449
|
},
|
|
1451
1450
|
children: [
|
|
1452
|
-
|
|
1453
|
-
|
|
1451
|
+
S !== 0 && /* @__PURE__ */ e(
|
|
1452
|
+
B,
|
|
1454
1453
|
{
|
|
1455
|
-
name:
|
|
1454
|
+
name: S >= 0 ? "trending_up" : "trending_down",
|
|
1456
1455
|
size: 20,
|
|
1457
|
-
sx: { color: T(
|
|
1456
|
+
sx: { color: T(S) }
|
|
1458
1457
|
}
|
|
1459
1458
|
),
|
|
1460
1459
|
/* @__PURE__ */ o(
|
|
1461
|
-
|
|
1460
|
+
i,
|
|
1462
1461
|
{
|
|
1463
1462
|
sx: {
|
|
1464
|
-
color: T(
|
|
1463
|
+
color: T(S),
|
|
1465
1464
|
fontWeight: 600
|
|
1466
1465
|
},
|
|
1467
|
-
variant: "
|
|
1466
|
+
variant: "body1",
|
|
1468
1467
|
children: [
|
|
1469
1468
|
he.toFixed(2),
|
|
1470
1469
|
"%"
|
|
1471
1470
|
]
|
|
1472
1471
|
}
|
|
1473
1472
|
),
|
|
1474
|
-
/* @__PURE__ */ e(
|
|
1473
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.secondary" }, variant: "caption", children: "|" }),
|
|
1475
1474
|
/* @__PURE__ */ e(
|
|
1476
|
-
|
|
1475
|
+
i,
|
|
1477
1476
|
{
|
|
1478
1477
|
sx: {
|
|
1479
|
-
color: T(
|
|
1478
|
+
color: T(S),
|
|
1480
1479
|
fontWeight: 600
|
|
1481
1480
|
},
|
|
1482
|
-
variant: "
|
|
1483
|
-
children: Math.abs(
|
|
1481
|
+
variant: "body1",
|
|
1482
|
+
children: Math.abs(S).toLocaleString("en-US", {
|
|
1484
1483
|
currency: "USD",
|
|
1485
1484
|
maximumFractionDigits: 2,
|
|
1486
1485
|
minimumFractionDigits: 2,
|
|
@@ -1492,9 +1491,9 @@ const de = ({ sx: t = {} }) => {
|
|
|
1492
1491
|
}
|
|
1493
1492
|
)
|
|
1494
1493
|
] }),
|
|
1495
|
-
/* @__PURE__ */ e(
|
|
1496
|
-
/* @__PURE__ */ e(
|
|
1497
|
-
/* @__PURE__ */ e(
|
|
1494
|
+
/* @__PURE__ */ e(x, { sx: { alignItems: "flex-end", gap: 12, pb: 14, pl: 16, pr: 16, pt: 14 }, children: /* @__PURE__ */ o(x, { sx: { alignItems: "flex-end" }, children: [
|
|
1495
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.secondary" }, variant: "caption", children: r.overview.total_value }),
|
|
1496
|
+
/* @__PURE__ */ e(i, { sx: { color: "text.primary", fontWeight: 600 }, variant: "body1", children: E?.toLocaleString("en-US", {
|
|
1498
1497
|
currency: "USD",
|
|
1499
1498
|
maximumFractionDigits: 2,
|
|
1500
1499
|
minimumFractionDigits: 2,
|
|
@@ -1505,21 +1504,21 @@ const de = ({ sx: t = {} }) => {
|
|
|
1505
1504
|
]
|
|
1506
1505
|
}
|
|
1507
1506
|
),
|
|
1508
|
-
/* @__PURE__ */ e(we, { sx: { bgcolor: "background.default", p: 12 }, children: /* @__PURE__ */ e(
|
|
1507
|
+
/* @__PURE__ */ e(we, { sx: { bgcolor: "background.default", p: 12 }, children: /* @__PURE__ */ e(re, { sx: { border: 1, borderColor: "neutral.light" }, children: /* @__PURE__ */ e(
|
|
1509
1508
|
ht,
|
|
1510
1509
|
{
|
|
1511
|
-
currentEditedCostBasis:
|
|
1510
|
+
currentEditedCostBasis: D,
|
|
1512
1511
|
data: w,
|
|
1513
|
-
editingHoldingId:
|
|
1514
|
-
handleCostBasisBlur:
|
|
1515
|
-
handleCostBasisChange:
|
|
1512
|
+
editingHoldingId: p,
|
|
1513
|
+
handleCostBasisBlur: ee,
|
|
1514
|
+
handleCostBasisChange: Z,
|
|
1516
1515
|
handleCostBasisClick: j,
|
|
1517
1516
|
handleCostBasisKeyDown: me
|
|
1518
1517
|
}
|
|
1519
1518
|
) }) })
|
|
1520
1519
|
]
|
|
1521
1520
|
},
|
|
1522
|
-
|
|
1521
|
+
s.guid
|
|
1523
1522
|
);
|
|
1524
1523
|
}),
|
|
1525
1524
|
/* @__PURE__ */ e(de, {}),
|
|
@@ -1527,10 +1526,10 @@ const de = ({ sx: t = {} }) => {
|
|
|
1527
1526
|
ut,
|
|
1528
1527
|
{
|
|
1529
1528
|
accountHoldingsData: b,
|
|
1530
|
-
currentEditedCostBasis:
|
|
1531
|
-
editingHoldingId:
|
|
1532
|
-
handleCostBasisBlur:
|
|
1533
|
-
handleCostBasisChange:
|
|
1529
|
+
currentEditedCostBasis: D,
|
|
1530
|
+
editingHoldingId: p,
|
|
1531
|
+
handleCostBasisBlur: ee,
|
|
1532
|
+
handleCostBasisChange: Z,
|
|
1534
1533
|
handleCostBasisClick: j,
|
|
1535
1534
|
handleCostBasisKeyDown: me,
|
|
1536
1535
|
isOpen: u,
|
|
@@ -1540,69 +1539,71 @@ const de = ({ sx: t = {} }) => {
|
|
|
1540
1539
|
/* @__PURE__ */ e(
|
|
1541
1540
|
ge,
|
|
1542
1541
|
{
|
|
1543
|
-
onClose: () =>
|
|
1544
|
-
showConnectionsWidget:
|
|
1545
|
-
title:
|
|
1542
|
+
onClose: () => d(!1),
|
|
1543
|
+
showConnectionsWidget: y,
|
|
1544
|
+
title: h.manage_connections
|
|
1546
1545
|
}
|
|
1547
1546
|
)
|
|
1548
|
-
] }) : /* @__PURE__ */ e(
|
|
1549
|
-
}, pt =
|
|
1550
|
-
const { onEvent: c } = be(), {
|
|
1551
|
-
visibleHoldings:
|
|
1552
|
-
setShowConnectionsWidget:
|
|
1553
|
-
showConnectionsWidget:
|
|
1554
|
-
} =
|
|
1555
|
-
|
|
1556
|
-
f
|
|
1557
|
-
}, [
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1547
|
+
] }) : /* @__PURE__ */ e(Se, {});
|
|
1548
|
+
}, pt = $(gt), xt = ({ title: t }) => /* @__PURE__ */ e(i, { bold: !0, variant: "body1", children: t }), rn = $(({ onBackClick: t, sx: g }) => {
|
|
1549
|
+
const { onEvent: c } = be(), { onLoad: u } = je(), { isMobile: v } = H(), { visibleInvestmentAccounts: f } = le(), {
|
|
1550
|
+
visibleHoldings: m,
|
|
1551
|
+
setShowConnectionsWidget: a,
|
|
1552
|
+
showConnectionsWidget: y
|
|
1553
|
+
} = U(), { investments: d, accounts: b } = M(), { isCopyLoaded: l, isInitialized: h, setSelectedAccounts: r } = J(), [n, p] = A.useState(0), { loadHoldings: C } = U();
|
|
1554
|
+
A.useEffect(() => {
|
|
1555
|
+
r(f);
|
|
1556
|
+
}, [f]), A.useEffect(() => {
|
|
1557
|
+
h && C().finally(() => {
|
|
1558
|
+
u?.("InvestmentsWidget");
|
|
1559
|
+
});
|
|
1560
|
+
}, [h]);
|
|
1561
|
+
const D = () => {
|
|
1561
1562
|
c(z.INVESTMENT_WIDGET_ACCOUNT_FILTER_CLICK);
|
|
1562
1563
|
};
|
|
1563
|
-
if (!
|
|
1564
|
-
const
|
|
1564
|
+
if (!l || !h) return /* @__PURE__ */ e(Se, {});
|
|
1565
|
+
const k = [
|
|
1565
1566
|
z.INVESTMENT_WIDGET_DETAILS_CLICK,
|
|
1566
1567
|
z.INVESTMENT_WIDGET_ALLOCATION_CLICK,
|
|
1567
1568
|
z.INVESTMENT_WIDGET_ANALYSIS_CLICK
|
|
1568
|
-
],
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1569
|
+
], I = f.length === 0 && m.length === 0, W = [
|
|
1570
|
+
d.tab_overview_title,
|
|
1571
|
+
d.tab_allocation_title,
|
|
1572
|
+
d.tab_analysis_title
|
|
1572
1573
|
];
|
|
1573
1574
|
return /* @__PURE__ */ o(
|
|
1574
|
-
|
|
1575
|
+
ze,
|
|
1575
1576
|
{
|
|
1576
|
-
accountOptions:
|
|
1577
|
-
onAccountsFilterClick:
|
|
1577
|
+
accountOptions: f,
|
|
1578
|
+
onAccountsFilterClick: D,
|
|
1578
1579
|
onBackClick: t,
|
|
1579
|
-
sx:
|
|
1580
|
-
title:
|
|
1580
|
+
sx: g,
|
|
1581
|
+
title: d.title,
|
|
1581
1582
|
children: [
|
|
1582
|
-
/* @__PURE__ */ o(_, { mx:
|
|
1583
|
+
/* @__PURE__ */ o(_, { mx: v ? 0 : 48, my: 24, children: [
|
|
1583
1584
|
/* @__PURE__ */ e(
|
|
1584
1585
|
Ge,
|
|
1585
1586
|
{
|
|
1586
|
-
onChange: (
|
|
1587
|
-
|
|
1587
|
+
onChange: (G, F) => {
|
|
1588
|
+
p(F), c(k[F]);
|
|
1588
1589
|
},
|
|
1589
1590
|
sx: { bgcolor: "background.paper" },
|
|
1590
1591
|
textColor: "primary",
|
|
1591
|
-
value:
|
|
1592
|
+
value: I ? -1 : n,
|
|
1592
1593
|
variant: "fullWidth",
|
|
1593
|
-
children: W.map((
|
|
1594
|
+
children: W.map((G) => /* @__PURE__ */ e(Ee, { disabled: I, label: /* @__PURE__ */ e(xt, { title: G }) }, G))
|
|
1594
1595
|
}
|
|
1595
1596
|
),
|
|
1596
|
-
|
|
1597
|
-
|
|
1597
|
+
I ? /* @__PURE__ */ e(
|
|
1598
|
+
Qe,
|
|
1598
1599
|
{
|
|
1599
|
-
header:
|
|
1600
|
+
header: d.empty_state_header,
|
|
1600
1601
|
icon: "bid_landscape",
|
|
1601
1602
|
onClick: () => {
|
|
1602
|
-
|
|
1603
|
+
a(!0), c(z.ACCOUNTS_CLICK_CONNECT);
|
|
1603
1604
|
},
|
|
1604
|
-
primaryButton:
|
|
1605
|
-
subText:
|
|
1605
|
+
primaryButton: d.overview.connect_accounts,
|
|
1606
|
+
subText: d.empty_state_description,
|
|
1606
1607
|
sx: {
|
|
1607
1608
|
width: { sm: 432 },
|
|
1608
1609
|
".buttons-footer": {
|
|
@@ -1616,17 +1617,17 @@ const de = ({ sx: t = {} }) => {
|
|
|
1616
1617
|
}
|
|
1617
1618
|
}
|
|
1618
1619
|
) : /* @__PURE__ */ o(ae, { children: [
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1620
|
+
n === 0 && /* @__PURE__ */ e(pt, {}),
|
|
1621
|
+
n === 1 && /* @__PURE__ */ e(rt, {}),
|
|
1622
|
+
n === 2 && /* @__PURE__ */ e(dt, {})
|
|
1622
1623
|
] })
|
|
1623
1624
|
] }),
|
|
1624
1625
|
/* @__PURE__ */ e(
|
|
1625
1626
|
ge,
|
|
1626
1627
|
{
|
|
1627
|
-
onClose: () =>
|
|
1628
|
-
showConnectionsWidget:
|
|
1629
|
-
title:
|
|
1628
|
+
onClose: () => a(!1),
|
|
1629
|
+
showConnectionsWidget: y,
|
|
1630
|
+
title: b.manage_connections
|
|
1630
1631
|
}
|
|
1631
1632
|
)
|
|
1632
1633
|
]
|
|
@@ -1634,5 +1635,5 @@ const de = ({ sx: t = {} }) => {
|
|
|
1634
1635
|
);
|
|
1635
1636
|
});
|
|
1636
1637
|
export {
|
|
1637
|
-
|
|
1638
|
+
rn as InvestmentsWidget
|
|
1638
1639
|
};
|