@mx-cartographer/experiences 6.26.18-alpha.mega3 → 6.26.18-alpha.mega4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{common/constants/Account/index.es.js → Account-DM32_5k9.mjs} +4 -4
- package/dist/AccountDetailsContent-B_qRSB8l.mjs +677 -0
- package/dist/AccountDetailsHeader-CAm6ADMq.mjs +119 -0
- package/dist/{accounts/utils/AccountFields/index.es.js → AccountFields-Bb4pds0q.mjs} +17 -18
- package/dist/AccountListItem-G7iAesaO.mjs +90 -0
- package/dist/{accounts/stores/AccountStore/index.es.js → AccountStore-RSanus_m.mjs} +50 -24
- package/dist/Accounts-BfAQRG8R.mjs +9 -0
- package/dist/BeatApi-DLu87ijw.mjs +21 -0
- package/dist/{microinsights/utils/beatUtils/index.es.js → BeatStore-By4aGoRM.mjs} +36 -6
- package/dist/BudgetUtil-DcqclhiQ.mjs +101 -0
- package/dist/CashflowStore-D9Dpuz7X.mjs +91 -0
- package/dist/{common/constants/Category/index.es.js → Category-5S6uwuXz.mjs} +7 -7
- package/dist/CategorySelectorDrawer-DgrePTRg.mjs +397 -0
- package/dist/{categories/stores/CategoryStore/index.es.js → CategoryStore-B5EW6I1d.mjs} +77 -29
- package/dist/{categories/util/CategoryUtil/index.es.js → CategoryUtil-DRyruNgi.mjs} +22 -22
- package/dist/ConnectDrawer-DPnfeIfn.mjs +508 -0
- package/dist/ConnectionsDrawer-BCzpuNsK.mjs +52 -0
- package/dist/{common/components/CurrencyInput/index.es.js → CurrencyInput-DzsPiUsU.mjs} +24 -25
- package/dist/CurrencyText-YUhH2caW.mjs +20 -0
- package/dist/DateUtil-BcuH7ErC.mjs +48 -0
- package/dist/DebtsStore-C6VcBnpG.mjs +60 -0
- package/dist/Dialog-CWW597AF.mjs +123 -0
- package/dist/{common/components/charts/Donut/index.es.js → Donut-1UMNcG67.mjs} +11 -11
- package/dist/Drawer-kEE73B87.mjs +113 -0
- package/dist/{common/components/EmptyState/index.es.js → EmptyState-Dcb-o2tl.mjs} +1 -1
- package/dist/Fetch-CkFKy79O.mjs +116 -0
- package/dist/FinstrongStore-mkALvztw.mjs +101 -0
- package/dist/GoalStore-DyCr4wNc.mjs +263 -0
- package/dist/{trends/components/TrendsTable/HeaderCell/index.es.js → HeaderCell-DjuifqHJ.mjs} +1 -1
- package/dist/{help/constants/Help/index.es.js → Help-DhcC-C05.mjs} +27 -6
- package/dist/Help-toqAK5eD.mjs +3173 -0
- package/dist/{common/components/IconBacking/index.es.js → IconBacking-B9oC6uL2.mjs} +10 -10
- package/dist/InvestmentUtil-jOyOgzIB.mjs +134 -0
- package/dist/LineChart-CQWu5KoO.mjs +403 -0
- package/dist/{common/components/ListItemAction/index.es.js → ListItemAction-Df3OPMOW.mjs} +18 -18
- package/dist/Loader-Dp1P2gNw.mjs +14 -0
- package/dist/{common/utils/Localization/index.es.js → Localization-2MODESHW.mjs} +8 -8
- package/dist/ManageIncome-BVt_XQbo.mjs +535 -0
- package/dist/MerchantStore-DVH-QOf0.mjs +37 -0
- package/dist/{common/components/MicroWidgetContainer/index.es.js → MicroWidgetContainer-DaLW43tE.mjs} +11 -11
- package/dist/{common/components/MiniWidgetContainer/index.es.js → MiniWidgetContainer-BcNPxZt2.mjs} +11 -11
- package/dist/NetWorthStore-DE8CQBMM.mjs +150 -0
- package/dist/Notification-AMGWM1Al.mjs +78 -0
- package/dist/NotificationSettings-CPZN0l8X.mjs +667 -0
- package/dist/NotificationStore-DHtSGySy.mjs +67 -0
- package/dist/NumberFormatting-CtWHhyBX.mjs +40 -0
- package/dist/OriginalBalanceAction-s9sUxofR.mjs +115 -0
- package/dist/RecurringSettings-DIEsympT.mjs +57 -0
- package/dist/{recurringtransactions/stores/RecurringTransactionsStore/index.es.js → RecurringTransactionsStore-BKLD3OWo.mjs} +65 -49
- package/dist/RepeatingTransaction-BPWfaB3f.mjs +282 -0
- package/dist/{common/components/SearchBox/index.es.js → SearchBox-B2_zLv8-.mjs} +12 -12
- package/dist/SettingsStore-CE7jDVFL.mjs +265 -0
- package/dist/{common/components/donuts/SingleSegmentDonut/index.es.js → SingleSegmentDonut-BgbLgwHi.mjs} +27 -26
- package/dist/SpendingData-ByFCw95X.mjs +53 -0
- package/dist/{common/components/charts/StatusBar/index.es.js → StatusBar-BK_uYHAB.mjs} +1 -1
- package/dist/{common/components/TabContentContainer/index.es.js → TabContentContainer-j01JYR_7.mjs} +1 -1
- package/dist/Transaction-C-5-Iuab.mjs +312 -0
- package/dist/{transactions/api/TransactionApi/index.es.js → TransactionApi-DbbcjI2L.mjs} +4 -5
- package/dist/TransactionDetails-B5qfs9Zh.mjs +1283 -0
- package/dist/TransactionStore-BWi6_2Ny.mjs +669 -0
- package/dist/TrendsStore-Borh98aN.mjs +448 -0
- package/dist/ViewMoreMicroCard-CAPFNz-J.mjs +1959 -0
- package/dist/WidgetContainer-CmGNZW0M.mjs +548 -0
- package/dist/accounts/index.es.js +750 -24
- package/dist/analytics/index.es.js +169 -2
- package/dist/budgets/index.es.js +1068 -4
- package/dist/cashflow/index.es.js +1096 -10
- package/dist/categories/index.es.js +7 -10
- package/dist/common/index.es.js +1449 -232
- package/dist/dashboard/index.es.js +179 -4
- package/dist/debts/index.es.js +1458 -8
- package/dist/{transactions/utils/exportTransactionsToCSV/index.es.js → exportTransactionsToCSV-j4g8bdVZ.mjs} +9 -9
- package/dist/finstrong/index.es.js +1453 -12
- package/dist/goals/index.es.js +1207 -8
- package/dist/help/index.es.js +12 -4
- package/dist/hooks-ClhFlg78.mjs +71 -0
- package/dist/insights/index.es.js +1 -1
- package/dist/investments/index.es.js +1636 -2
- package/dist/merchants/index.es.js +77 -4
- package/dist/microinsights/index.es.js +13 -25
- package/dist/networth/index.es.js +540 -12
- package/dist/notifications/index.es.js +190 -10
- package/dist/recurringtransactions/index.es.js +877 -18
- package/dist/settings/index.es.js +877 -27
- package/dist/spending/index.es.js +568 -4
- package/dist/transactions/index.es.js +585 -25
- package/dist/trends/index.es.js +1101 -10
- package/dist/useCombineEvents-DaDBSR_1.mjs +92 -0
- package/dist/{common/hooks/useDimensions/index.es.js → useDimensions-27p2evRx.mjs} +1 -1
- package/dist/{common/hooks/useScreenSize/index.es.js → useScreenSize-B6JyS_Lj.mjs} +1 -1
- package/package.json +1 -1
- package/dist/accounts/AccountsMiniWidget/index.es.js +0 -45
- package/dist/accounts/AccountsWidget/index.es.js +0 -67
- package/dist/accounts/ConnectMiniWidget/index.es.js +0 -41
- package/dist/accounts/api/AccountApi/index.es.js +0 -20
- package/dist/accounts/components/AccountListItem/index.es.js +0 -84
- package/dist/accounts/components/AccountsList/index.es.js +0 -164
- package/dist/accounts/components/ConnectImage/index.es.js +0 -444
- package/dist/accounts/components/ConnectMiniWidgetCard/index.es.js +0 -27
- package/dist/accounts/components/ConnectStatus/index.es.js +0 -37
- package/dist/accounts/components/ConnectionStatusIcons/index.es.js +0 -12
- package/dist/accounts/components/ConnectionsDrawer/index.es.js +0 -54
- package/dist/accounts/components/detailsdrawer/Accounts/AccountActions/index.es.js +0 -134
- package/dist/accounts/components/detailsdrawer/Accounts/AccountActionsRow/index.es.js +0 -21
- package/dist/accounts/components/detailsdrawer/Accounts/AccountConnection/index.es.js +0 -103
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailEdit/index.es.js +0 -120
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetails/index.es.js +0 -58
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart/index.es.js +0 -43
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsContent/index.es.js +0 -50
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader/index.es.js +0 -47
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsTab/index.es.js +0 -20
- package/dist/accounts/components/detailsdrawer/Accounts/ConnectionErrorMessage/index.es.js +0 -74
- package/dist/accounts/components/detailsdrawer/Transactions/TransactionsTab/index.es.js +0 -37
- package/dist/accounts/constants/Accounts/index.es.js +0 -5
- package/dist/accounts/hooks/useGetMergeableAccounts/index.es.js +0 -11
- package/dist/accounts/hooks/useUiStore/index.es.js +0 -11
- package/dist/accounts/stores/UiStore/index.es.js +0 -15
- package/dist/accounts/utils/Accounts/index.es.js +0 -9
- package/dist/accounts/utils/getConnectionMessages/index.es.js +0 -162
- package/dist/analytics/SurveyMiniWidget/index.es.js +0 -101
- package/dist/analytics/components/OpenTextField/index.es.js +0 -23
- package/dist/analytics/components/RatingScale/index.es.js +0 -68
- package/dist/analytics/stores/AnalyticsStore/index.es.js +0 -54
- package/dist/budgets/BubbleBudgetsMiniWidget/index.es.js +0 -71
- package/dist/budgets/BubbleBudgetsWidget/index.es.js +0 -139
- package/dist/budgets/api/BudgetsApi/index.es.js +0 -26
- package/dist/budgets/components/AddBudgets/index.es.js +0 -30
- package/dist/budgets/components/BubbleBudgets/index.es.js +0 -61
- package/dist/budgets/components/BubbleChart/Bubble/index.es.js +0 -97
- package/dist/budgets/components/BubbleChart/Mercury/index.es.js +0 -27
- package/dist/budgets/components/BubbleChart/index.es.js +0 -22
- package/dist/budgets/components/BudgetDetailsDrawer/index.es.js +0 -95
- package/dist/budgets/components/BudgetList/BudgetRow/index.es.js +0 -42
- package/dist/budgets/components/BudgetList/SubBudgetRow/index.es.js +0 -36
- package/dist/budgets/components/BudgetList/SubBudgetZeroState/index.es.js +0 -16
- package/dist/budgets/components/BudgetList/index.es.js +0 -30
- package/dist/budgets/components/BudgetsEmptyState/index.es.js +0 -85
- package/dist/budgets/components/Overview/index.es.js +0 -105
- package/dist/budgets/components/addbudget/Header/index.es.js +0 -28
- package/dist/budgets/components/addbudget/RecalculateBudgetRow/index.es.js +0 -30
- package/dist/budgets/components/addbudget/RecalculateBudgets/index.es.js +0 -39
- package/dist/budgets/components/addbudget/UnbudgetedRow/index.es.js +0 -46
- package/dist/budgets/components/budgetdetails/AddSubBudget/index.es.js +0 -73
- package/dist/budgets/components/budgetdetails/BudgetDetails/index.es.js +0 -75
- package/dist/budgets/components/budgetdetails/Header/index.es.js +0 -31
- package/dist/budgets/components/budgetdetails/SubBudgetList/index.es.js +0 -102
- package/dist/budgets/components/shared/BudgetAmount/index.es.js +0 -37
- package/dist/budgets/store/BudgetsStore/index.es.js +0 -139
- package/dist/budgets/utils/BubblesSVG/index.es.js +0 -51
- package/dist/budgets/utils/BudgetUtil/index.es.js +0 -70
- package/dist/cashflow/CashflowMiniWidget/index.es.js +0 -27
- package/dist/cashflow/CashflowOnboarding/index.es.js +0 -220
- package/dist/cashflow/CashflowWidget/index.es.js +0 -91
- package/dist/cashflow/api/CashflowApi/index.es.js +0 -25
- package/dist/cashflow/components/CashflowAmountHeading/index.es.js +0 -32
- package/dist/cashflow/components/CashflowContent/index.es.js +0 -61
- package/dist/cashflow/components/CashflowHeading/index.es.js +0 -113
- package/dist/cashflow/components/CashflowWidgetContent/index.es.js +0 -146
- package/dist/cashflow/components/DetailsExpenseHeader/index.es.js +0 -38
- package/dist/cashflow/components/DetailsExpenseRow/index.es.js +0 -31
- package/dist/cashflow/components/DetailsFooter/index.es.js +0 -22
- package/dist/cashflow/components/DetailsTab/index.es.js +0 -92
- package/dist/cashflow/components/RemainingCash/index.es.js +0 -27
- package/dist/cashflow/components/SummaryTab/index.es.js +0 -258
- package/dist/cashflow/components/onboarding/StepOne/index.es.js +0 -82
- package/dist/cashflow/components/onboarding/StepTwo/index.es.js +0 -17
- package/dist/cashflow/constants/CashflowImages/index.es.js +0 -7
- package/dist/cashflow/context/hooks/index.es.js +0 -11
- package/dist/cashflow/stores/CashflowStore/index.es.js +0 -19
- package/dist/cashflow/stores/UiStore/index.es.js +0 -38
- package/dist/cashflow/util/Filters/index.es.js +0 -7
- package/dist/categories/components/CategoryList/index.es.js +0 -38
- package/dist/categories/components/CategoryRow/index.es.js +0 -58
- package/dist/categories/components/CategorySelector/index.es.js +0 -48
- package/dist/categories/components/CategorySelectorDrawer/index.es.js +0 -30
- package/dist/categories/components/CustomCategories/AddSubcategory/index.es.js +0 -40
- package/dist/categories/components/CustomCategories/CustomCategoryModal/index.es.js +0 -66
- package/dist/categories/components/CustomCategories/DeleteSubcategory/index.es.js +0 -30
- package/dist/categories/components/CustomCategories/RenameSubcategory/index.es.js +0 -29
- package/dist/categories/components/SubcategoryList/index.es.js +0 -39
- package/dist/categories/components/SubcategoryRow/index.es.js +0 -103
- package/dist/categories/constants/OnClickEvents/index.es.js +0 -16
- package/dist/categories/context/hooks/index.es.js +0 -11
- package/dist/categories/stores/UiStore/index.es.js +0 -27
- package/dist/common/api/AnalyticsApi/index.es.js +0 -34
- package/dist/common/api/AppDataApi/index.es.js +0 -12
- package/dist/common/api/BannerApi/index.es.js +0 -21
- package/dist/common/api/BeatApi/index.es.js +0 -22
- package/dist/common/api/CategoryApi/index.es.js +0 -30
- package/dist/common/api/GlobalCopyApi/index.es.js +0 -12
- package/dist/common/api/LocalizedCopyApi/index.es.js +0 -13
- package/dist/common/api/NotificationApi/index.es.js +0 -21
- package/dist/common/api/ScheduledPaymentsApi/index.es.js +0 -20
- package/dist/common/api/UserApi/index.es.js +0 -14
- package/dist/common/api/WidgetApi/index.es.js +0 -12
- package/dist/common/components/Banner/index.es.js +0 -49
- package/dist/common/components/ConnectCard/index.es.js +0 -56
- package/dist/common/components/ConnectDrawer/index.es.js +0 -58
- package/dist/common/components/CurrencyText/index.es.js +0 -20
- package/dist/common/components/DataRow/index.es.js +0 -29
- package/dist/common/components/ErrorBoundary/index.es.js +0 -24
- package/dist/common/components/InformationTooltip/index.es.js +0 -41
- package/dist/common/components/ListItemRow/index.es.js +0 -67
- package/dist/common/components/ListItemWrapper/index.es.js +0 -32
- package/dist/common/components/Loader/index.es.js +0 -14
- package/dist/common/components/ResponsiveButton/index.es.js +0 -45
- package/dist/common/components/Select/index.es.js +0 -25
- package/dist/common/components/SelectionBox/index.es.js +0 -48
- package/dist/common/components/SubheaderRow/index.es.js +0 -10
- package/dist/common/components/WidgetContainer/index.es.js +0 -195
- package/dist/common/components/accountfilter/AccountFilter/index.es.js +0 -93
- package/dist/common/components/accountfilter/AccountFilterOptions/index.es.js +0 -222
- package/dist/common/components/addaccounts/AddAccounts/index.es.js +0 -43
- package/dist/common/components/barchart/Bar/index.es.js +0 -79
- package/dist/common/components/barchart/BarChart/index.es.js +0 -70
- package/dist/common/components/barchart/BarColumn/index.es.js +0 -86
- package/dist/common/components/barchart/Legend/index.es.js +0 -45
- package/dist/common/components/barchart/Util/index.es.js +0 -11
- package/dist/common/components/calendar/Calendar/index.es.js +0 -131
- package/dist/common/components/calendar/Day/index.es.js +0 -96
- package/dist/common/components/calendar/Header/index.es.js +0 -32
- package/dist/common/components/charts/LineChart/CustomLegend/index.es.js +0 -64
- package/dist/common/components/charts/LineChart/CustomLine/index.es.js +0 -22
- package/dist/common/components/charts/LineChart/CustomMark/index.es.js +0 -65
- package/dist/common/components/charts/LineChart/CustomTooltip/index.es.js +0 -73
- package/dist/common/components/charts/LineChart/index.es.js +0 -208
- package/dist/common/components/charts/StackedLineChart/CategoryIconLabel/index.es.js +0 -24
- package/dist/common/components/charts/StackedLineChart/CustomAreaTooltip/index.es.js +0 -69
- package/dist/common/components/charts/StackedLineChart/CustomLegend/index.es.js +0 -70
- package/dist/common/components/charts/StackedLineChart/CustomPointTooltip/index.es.js +0 -22
- package/dist/common/components/charts/StackedLineChart/index.es.js +0 -222
- package/dist/common/components/daterangeselector/DateRangeSelector/index.es.js +0 -254
- package/dist/common/components/dialog/Dialog/index.es.js +0 -61
- package/dist/common/components/donuts/MultiSegmentDonut/index.es.js +0 -60
- package/dist/common/components/drawer/Drawer/index.es.js +0 -71
- package/dist/common/components/drawer/Header/index.es.js +0 -51
- package/dist/common/components/listitems/CollapseExpandListItem/index.es.js +0 -36
- package/dist/common/components/listitems/ToggleButtonListItem/index.es.js +0 -42
- package/dist/common/components/listitems/ToggleListItem/index.es.js +0 -38
- package/dist/common/constants/Analytics/index.es.js +0 -117
- package/dist/common/constants/ApiEndpoints/index.es.js +0 -50
- package/dist/common/constants/Connect/index.es.js +0 -5
- package/dist/common/constants/DateFormats/index.es.js +0 -65
- package/dist/common/constants/DefaultConfig/index.es.js +0 -105
- package/dist/common/constants/Donut/index.es.js +0 -5
- package/dist/common/constants/FinStrong/index.es.js +0 -31
- package/dist/common/constants/Numbers/index.es.js +0 -6
- package/dist/common/constants/ScheduledPayment/index.es.js +0 -15
- package/dist/common/constants/Sizes/index.es.js +0 -6
- package/dist/common/constants/SpendingPlan/index.es.js +0 -11
- package/dist/common/constants/Table/index.es.js +0 -16
- package/dist/common/context/GlobalDataProvider/index.es.js +0 -23
- package/dist/common/context/WidgetContainerProvider/index.es.js +0 -17
- package/dist/common/context/hooks/index.es.js +0 -44
- package/dist/common/hooks/useCombineEvents/index.es.js +0 -20
- package/dist/common/hooks/useInsightsEnabled/index.es.js +0 -11
- package/dist/common/hooks/usePrevious/index.es.js +0 -11
- package/dist/common/stores/AppDataStore/index.es.js +0 -57
- package/dist/common/stores/ConnectStore/index.es.js +0 -15
- package/dist/common/stores/GlobalCopyStore/index.es.js +0 -35
- package/dist/common/stores/GlobalStore/index.es.js +0 -90
- package/dist/common/stores/GlobalUiStore/index.es.js +0 -54
- package/dist/common/stores/UserStore/index.es.js +0 -50
- package/dist/common/types/Account/index.es.js +0 -118
- package/dist/common/types/Beat/index.es.js +0 -4
- package/dist/common/types/Expense/index.es.js +0 -5
- package/dist/common/types/Goal/index.es.js +0 -6
- package/dist/common/types/Notification/index.es.js +0 -7
- package/dist/common/types/RepeatingTransaction/index.es.js +0 -7
- package/dist/common/types/ScreenSize/index.es.js +0 -4
- package/dist/common/types/Transaction/index.es.js +0 -5
- package/dist/common/utils/AccountFilter/index.es.js +0 -13
- package/dist/common/utils/Analytics/index.es.js +0 -36
- package/dist/common/utils/Categories/index.es.js +0 -37
- package/dist/common/utils/DateUtil/index.es.js +0 -48
- package/dist/common/utils/Fetch/index.es.js +0 -69
- package/dist/common/utils/NumberFormatting/index.es.js +0 -38
- package/dist/common/utils/PostMessage/index.es.js +0 -19
- package/dist/common/utils/Theme/index.es.js +0 -136
- package/dist/dashboard/Dashboard/index.es.js +0 -47
- package/dist/dashboard/Greeting/index.es.js +0 -71
- package/dist/dashboard/constants/Dashboard/index.es.js +0 -4
- package/dist/debts/DebtsWidget/index.es.js +0 -111
- package/dist/debts/components/DebtDrawer/index.es.js +0 -28
- package/dist/debts/components/DebtsChart/index.es.js +0 -134
- package/dist/debts/components/DebtsTable/AccountCell/index.es.js +0 -24
- package/dist/debts/components/DebtsTable/PriorityCell/index.es.js +0 -32
- package/dist/debts/components/DebtsTable/index.es.js +0 -174
- package/dist/debts/components/PaydownDrawer/index.es.js +0 -21
- package/dist/debts/components/SnowballCard/index.es.js +0 -65
- package/dist/debts/components/SnowballDrawer/index.es.js +0 -374
- package/dist/debts/components/actions/DebtsPriorityAction/index.es.js +0 -28
- package/dist/debts/components/actions/ExtraPaymentAction/index.es.js +0 -46
- package/dist/debts/components/actions/InterestRateAction/index.es.js +0 -42
- package/dist/debts/components/actions/MonthlyPaymentAction/index.es.js +0 -44
- package/dist/debts/components/actions/OriginalBalanceAction/index.es.js +0 -44
- package/dist/debts/components/debtsdrawer/DebtDetailsChart/index.es.js +0 -41
- package/dist/debts/components/debtsdrawer/DebtDetailsContent/index.es.js +0 -51
- package/dist/debts/components/debtsdrawer/DebtDetailsTab/index.es.js +0 -38
- package/dist/debts/components/debtsdrawer/DebtScheduleTab/index.es.js +0 -80
- package/dist/debts/components/debtsdrawer/DebtStatusCard/index.es.js +0 -61
- package/dist/debts/components/debtspaydown/PaydownButton/index.es.js +0 -25
- package/dist/debts/components/debtspaydown/PaydownContent/index.es.js +0 -31
- package/dist/debts/components/debtspriority/DebtsPriorityButton/index.es.js +0 -34
- package/dist/debts/components/debtspriority/DebtsPrioriyPopover/index.es.js +0 -74
- package/dist/debts/constants/index/index.es.js +0 -4
- package/dist/debts/hooks/useDebtsUiStore/index.es.js +0 -11
- package/dist/debts/store/DebtsStore/index.es.js +0 -20
- package/dist/debts/store/DebtsUiStore/index.es.js +0 -23
- package/dist/debts/utils/DebtStore/index.es.js +0 -26
- package/dist/debts/utils/DebtsChart/index.es.js +0 -13
- package/dist/debts/utils/DebtsTable/index.es.js +0 -15
- package/dist/debts/utils/DebtsWidget/index.es.js +0 -42
- package/dist/debts/utils/SnowballCard/index.es.js +0 -37
- package/dist/debts/utils/shared/index.es.js +0 -21
- package/dist/finstrong/FinancialStrengthCard/index.es.js +0 -113
- package/dist/finstrong/FinstrongWidget/index.es.js +0 -141
- package/dist/finstrong/api/FinstrongApi/index.es.js +0 -15
- package/dist/finstrong/components/ConnectMoreAccountsCard/index.es.js +0 -76
- package/dist/finstrong/components/CreditScoreGraph/index.es.js +0 -75
- package/dist/finstrong/components/FinancialStrengthGraph/index.es.js +0 -30
- package/dist/finstrong/components/KeyIndicatorsBorrowTab/index.es.js +0 -63
- package/dist/finstrong/components/KeyIndicatorsDrawer/index.es.js +0 -49
- package/dist/finstrong/components/KeyIndicatorsSaveTab/index.es.js +0 -63
- package/dist/finstrong/components/KeyIndicatorsSpendTab/index.es.js +0 -58
- package/dist/finstrong/components/KeyIndicatorsTabItem/index.es.js +0 -58
- package/dist/finstrong/components/KeyIndicatorsTabsWidget/index.es.js +0 -68
- package/dist/finstrong/components/ManageCreditScore/index.es.js +0 -49
- package/dist/finstrong/components/ManageDOB/index.es.js +0 -62
- package/dist/finstrong/components/MissingData/index.es.js +0 -38
- package/dist/finstrong/components/ProfileDrawer/index.es.js +0 -107
- package/dist/finstrong/components/ProfileList/index.es.js +0 -56
- package/dist/finstrong/components/ProfileProgressBar/index.es.js +0 -26
- package/dist/finstrong/components/ScoreHistoryDrawer/index.es.js +0 -69
- package/dist/finstrong/components/shared/CustomPieArc/index.es.js +0 -63
- package/dist/finstrong/components/shared/DialScoreCard/index.es.js +0 -190
- package/dist/finstrong/components/shared/ScoreHistoryTimeline/index.es.js +0 -106
- package/dist/finstrong/components/shared/ScoreHistoryTimelineItem/index.es.js +0 -20
- package/dist/finstrong/stores/FinstrongStore/index.es.js +0 -81
- package/dist/finstrong/util/finstrongUtils/index.es.js +0 -108
- package/dist/finstrong/utils/Finstrong/index.es.js +0 -13
- package/dist/goals/GoalsMicroWidget/index.es.js +0 -51
- package/dist/goals/GoalsWidget/index.es.js +0 -138
- package/dist/goals/api/GoalApi/index.es.js +0 -26
- package/dist/goals/components/AccountSelectionDrawer/index.es.js +0 -73
- package/dist/goals/components/AddGoal/AddGoalListItem/index.es.js +0 -51
- package/dist/goals/components/AddGoal/index.es.js +0 -56
- package/dist/goals/components/GoalDetails/index.es.js +0 -69
- package/dist/goals/components/GoalDetailsDrawer/index.es.js +0 -82
- package/dist/goals/components/GoalList/index.es.js +0 -87
- package/dist/goals/components/GoalStatusCard/index.es.js +0 -59
- package/dist/goals/components/ManageGoals/CompleteListItem/index.es.js +0 -35
- package/dist/goals/components/ManageGoals/OngoingListItem/index.es.js +0 -47
- package/dist/goals/components/ManageGoals/ReorderGoals/index.es.js +0 -118
- package/dist/goals/components/ManageGoals/index.es.js +0 -74
- package/dist/goals/components/TabTitle/index.es.js +0 -12
- package/dist/goals/components/actions/AccountAction/index.es.js +0 -46
- package/dist/goals/components/actions/AddRetirementAccountAction/index.es.js +0 -66
- package/dist/goals/components/actions/AmountToSaveAction/index.es.js +0 -46
- package/dist/goals/components/actions/BirthdayAction/index.es.js +0 -42
- package/dist/goals/components/actions/ChangeAccountAction/index.es.js +0 -91
- package/dist/goals/components/actions/ContributionAction/index.es.js +0 -46
- package/dist/goals/components/actions/GoalNameAction/index.es.js +0 -42
- package/dist/goals/components/actions/InterestRateAction/index.es.js +0 -44
- package/dist/goals/components/actions/MonthlyPaymentAction/index.es.js +0 -45
- package/dist/goals/components/actions/OriginalBalanceAction/index.es.js +0 -45
- package/dist/goals/components/actions/RetirementAgeAction/index.es.js +0 -43
- package/dist/goals/components/micro/GoalMicroStatusCard/index.es.js +0 -42
- package/dist/goals/components/micro/GoalsMicroEmptyState/index.es.js +0 -31
- package/dist/goals/stores/GoalStore/index.es.js +0 -184
- package/dist/goals/util/GoalsUtil/index.es.js +0 -98
- package/dist/help/HelpWidget/index.es.js +0 -13
- package/dist/help/api/HelpApi/index.es.js +0 -12
- package/dist/help/components/Help/index.es.js +0 -45
- package/dist/help/components/HelpContent/index.es.js +0 -32
- package/dist/help/components/HelpList/index.es.js +0 -118
- package/dist/help/components/content/BottomImageContent/index.es.js +0 -50
- package/dist/help/components/content/ContentItem/index.es.js +0 -21
- package/dist/help/components/content/Header/index.es.js +0 -62
- package/dist/help/components/content/LeftImageContent/index.es.js +0 -50
- package/dist/help/components/content/NoImageContent/index.es.js +0 -14
- package/dist/help/components/content/RightImageContent/index.es.js +0 -48
- package/dist/help/components/content/TopImageContent/index.es.js +0 -50
- package/dist/help/components/content/section/Accounts/index.es.js +0 -249
- package/dist/help/components/content/section/Budgets/index.es.js +0 -102
- package/dist/help/components/content/section/CashFlow/index.es.js +0 -71
- package/dist/help/components/content/section/Debts/index.es.js +0 -252
- package/dist/help/components/content/section/General/index.es.js +0 -163
- package/dist/help/components/content/section/Goals/index.es.js +0 -195
- package/dist/help/components/content/section/Insights/index.es.js +0 -136
- package/dist/help/components/content/section/Investments/index.es.js +0 -71
- package/dist/help/components/content/section/Mobile/index.es.js +0 -85
- package/dist/help/components/content/section/NetWorth/index.es.js +0 -142
- package/dist/help/components/content/section/Notifications/index.es.js +0 -120
- package/dist/help/components/content/section/RecurringTransactions/index.es.js +0 -104
- package/dist/help/components/content/section/Spending/index.es.js +0 -112
- package/dist/help/components/content/section/Transactions/index.es.js +0 -389
- package/dist/help/components/content/section/Trends/index.es.js +0 -83
- package/dist/help/components/content/section/index/index.es.js +0 -35
- package/dist/help/components/requestsupport/ContactSupport/index.es.js +0 -99
- package/dist/help/components/requestsupport/HelpByCategoryList/index.es.js +0 -82
- package/dist/help/components/requestsupport/MissingInstitution/index.es.js +0 -95
- package/dist/help/components/requestsupport/PopularTopicsDrawer/index.es.js +0 -50
- package/dist/help/components/requestsupport/PopularTopicsList/index.es.js +0 -22
- package/dist/help/components/requestsupport/PopularTopicsRow/index.es.js +0 -30
- package/dist/help/components/requestsupport/RequestSupport/index.es.js +0 -179
- package/dist/help/components/requestsupport/RequestSupportFooter/index.es.js +0 -26
- package/dist/help/components/requestsupport/RequestSupportHeader/index.es.js +0 -39
- package/dist/help/components/requestsupport/RequestSupportInstitution/index.es.js +0 -75
- package/dist/help/components/requestsupport/SupportSuccessMessage/index.es.js +0 -29
- package/dist/help/constants/HelpImages/index.es.js +0 -47
- package/dist/help/store/HelpStore/index.es.js +0 -42
- package/dist/help/utils/getAccessibleHelpCategories/index.es.js +0 -21
- package/dist/help/utils/getInstitutionsBasedOnGuid/index.es.js +0 -14
- package/dist/insights/store/BeatStore/index.es.js +0 -35
- package/dist/investments/InvestmentsWidget/index.es.js +0 -107
- package/dist/investments/api/HoldingApi/index.es.js +0 -13
- package/dist/investments/components/Allocation/InvestementAllocationList/index.es.js +0 -126
- package/dist/investments/components/Allocation/InvestmentsAllocationChart/index.es.js +0 -67
- package/dist/investments/components/Allocation/index.es.js +0 -67
- package/dist/investments/components/Allocation/util/createInvestementsAllocationData/index.es.js +0 -134
- package/dist/investments/components/Analysis/index.es.js +0 -169
- package/dist/investments/components/AnalysisDetails/index.es.js +0 -81
- package/dist/investments/components/EmptyStateFooterComponent/index.es.js +0 -52
- package/dist/investments/components/HeaderCell/index.es.js +0 -11
- package/dist/investments/components/HoldingDrawer/index.es.js +0 -322
- package/dist/investments/components/HoldingTable/index.es.js +0 -183
- package/dist/investments/components/InfoToolTip/index.es.js +0 -25
- package/dist/investments/components/Overview/index.es.js +0 -441
- package/dist/investments/components/TabTitle/index.es.js +0 -6
- package/dist/investments/constants/index/index.es.js +0 -53
- package/dist/investments/stores/HoldingStore/index.es.js +0 -59
- package/dist/investments/util/InvestmentUtil/index.es.js +0 -100
- package/dist/merchants/api/MerchantApi/index.es.js +0 -16
- package/dist/merchants/components/MerchantLookup/index.es.js +0 -77
- package/dist/merchants/stores/MerchantStore/index.es.js +0 -26
- package/dist/microinsights/analytics/index.es.js +0 -10
- package/dist/microinsights/components/MicroWidgetContainer/index.es.js +0 -28
- package/dist/microinsights/components/beatCard/BeatCard/index.es.js +0 -98
- package/dist/microinsights/components/beaticons/BeatCategoryIcon/index.es.js +0 -13
- package/dist/microinsights/components/beaticons/BeatIcon/index.es.js +0 -22
- package/dist/microinsights/components/beaticons/BeatMerchantLogo/index.es.js +0 -24
- package/dist/microinsights/components/beaticons/ChartFilledIcon/index.es.js +0 -31
- package/dist/microinsights/components/beaticons/MonthlySpendComparisonIcon/index.es.js +0 -14
- package/dist/microinsights/components/beaticons/ZeroStateIcon/index.es.js +0 -786
- package/dist/microinsights/components/carouselheader/CarouselHeader/index.es.js +0 -82
- package/dist/microinsights/components/insightsmicrowidget/InsightsMicroWidget/index.es.js +0 -105
- package/dist/microinsights/components/microBeatCarousel/CarouselControls/index.es.js +0 -101
- package/dist/microinsights/components/microBeatCarousel/MicroBeatCarousel/index.es.js +0 -187
- package/dist/microinsights/components/microInsightCard/MicroInsightCard/index.es.js +0 -152
- package/dist/microinsights/components/noRelevantInsightsCard/NoRelevantInsightsCard/index.es.js +0 -67
- package/dist/microinsights/components/spinner/Spinner/index.es.js +0 -19
- package/dist/microinsights/components/viewMoreMicroCard/ViewMoreMicroCard/index.es.js +0 -58
- package/dist/microinsights/components/zeroStateCard/ZeroStateCard/index.es.js +0 -55
- package/dist/microinsights/constants/Analytics/index.es.js +0 -163
- package/dist/microinsights/constants/App/index.es.js +0 -11
- package/dist/microinsights/context/InsightsMicroWidgetDataProvider/index.es.js +0 -12
- package/dist/microinsights/context/hooks/index.es.js +0 -31
- package/dist/microinsights/stores/AppStore/index.es.js +0 -25
- package/dist/microinsights/stores/CopyStore/index.es.js +0 -32
- package/dist/microinsights/stores/InsightsMicroWidgetStore/index.es.js +0 -31
- package/dist/microinsights/utils/DataSeries/index.es.js +0 -9
- package/dist/networth/NetWorthMicroWidget/index.es.js +0 -44
- package/dist/networth/NetWorthWidget/index.es.js +0 -159
- package/dist/networth/components/AssetsLiabilitiesDetail/index.es.js +0 -109
- package/dist/networth/components/GainsLossesDetail/index.es.js +0 -94
- package/dist/networth/components/NetWorthChange/index.es.js +0 -31
- package/dist/networth/components/NetWorthChart/index.es.js +0 -45
- package/dist/networth/components/NetWorthList/index.es.js +0 -60
- package/dist/networth/components/NetWorthListItem/index.es.js +0 -60
- package/dist/networth/components/NetWorthSummary/index.es.js +0 -20
- package/dist/networth/components/micro/NetworthData/index.es.js +0 -21
- package/dist/networth/components/micro/ZeroState/index.es.js +0 -14
- package/dist/networth/stores/NetWorthStore/index.es.js +0 -65
- package/dist/networth/utils/NetWorthUtils/index.es.js +0 -95
- package/dist/notifications/components/DateRow/index.es.js +0 -8
- package/dist/notifications/components/NotificationBadge/index.es.js +0 -26
- package/dist/notifications/components/NotificationCard/index.es.js +0 -42
- package/dist/notifications/components/NotificationDrawer/index.es.js +0 -67
- package/dist/notifications/components/NotificationList/index.es.js +0 -36
- package/dist/notifications/components/NotificationsEmptyState/index.es.js +0 -34
- package/dist/notifications/constants/NotificationConstants/index.es.js +0 -22
- package/dist/notifications/stores/NotificationStore/index.es.js +0 -37
- package/dist/notifications/utils/NotificationUtils/index.es.js +0 -16
- package/dist/recurringtransactions/RecurringTransactionsMicroWidget/index.es.js +0 -179
- package/dist/recurringtransactions/RecurringTransactionsMiniWidget/index.es.js +0 -37
- package/dist/recurringtransactions/RecurringTransactionsWidget/index.es.js +0 -67
- package/dist/recurringtransactions/ZeroStateMicroWidget/index.es.js +0 -19
- package/dist/recurringtransactions/api/RepeatingTransactionsApi/index.es.js +0 -18
- package/dist/recurringtransactions/components/MiniWidgetContent/index.es.js +0 -32
- package/dist/recurringtransactions/components/PaymentSchedule/index.es.js +0 -100
- package/dist/recurringtransactions/components/RecurrenceBadges/index.es.js +0 -20
- package/dist/recurringtransactions/components/RecurrenceList/index.es.js +0 -69
- package/dist/recurringtransactions/components/RecurrenceRow/index.es.js +0 -149
- package/dist/recurringtransactions/components/RecurringStatus/index.es.js +0 -42
- package/dist/recurringtransactions/components/RecurringTransactionDetails/index.es.js +0 -130
- package/dist/recurringtransactions/components/RecurringTransactions/index.es.js +0 -163
- package/dist/recurringtransactions/components/actions/PaymentScheduleAction/index.es.js +0 -56
- package/dist/recurringtransactions/components/micro/MerchantLogosRow/index.es.js +0 -17
- package/dist/recurringtransactions/components/micro/OverlappingMerchantLogos/index.es.js +0 -44
- package/dist/recurringtransactions/components/micro/RecurrenceLegend/index.es.js +0 -31
- package/dist/recurringtransactions/components/recurrencecalendar/Legend/index.es.js +0 -32
- package/dist/recurringtransactions/components/recurrencecalendar/RecurrenceCalendar/index.es.js +0 -84
- package/dist/recurringtransactions/components/recurrencecalendar/RecurrenceDay/index.es.js +0 -68
- package/dist/recurringtransactions/components/shared/recurringsettings/AddRecurringTransaction/index.es.js +0 -114
- package/dist/recurringtransactions/components/shared/recurringsettings/AddRecurringTransactionDetails/index.es.js +0 -44
- package/dist/recurringtransactions/components/shared/recurringsettings/ManageExpenses/index.es.js +0 -31
- package/dist/recurringtransactions/components/shared/recurringsettings/ManageIncome/index.es.js +0 -38
- package/dist/recurringtransactions/components/shared/recurringsettings/RecurringRow/index.es.js +0 -108
- package/dist/recurringtransactions/components/shared/recurringsettings/SelectTransaction/index.es.js +0 -37
- package/dist/recurringtransactions/components/shared/recurringsettings/index.es.js +0 -36
- package/dist/recurringtransactions/util/RecurringTransactions/index.es.js +0 -232
- package/dist/settings/NotificationSettingsWidget/index.es.js +0 -13
- package/dist/settings/SettingsWidget/index.es.js +0 -55
- package/dist/settings/TransactionRulesWidget/index.es.js +0 -12
- package/dist/settings/api/SettingsApi/index.es.js +0 -23
- package/dist/settings/components/SettingsWidgetContents/index.es.js +0 -47
- package/dist/settings/components/devices/DeviceDialog/index.es.js +0 -129
- package/dist/settings/components/devices/DeviceList/index.es.js +0 -118
- package/dist/settings/components/devices/DeviceTab/index.es.js +0 -79
- package/dist/settings/components/devices/DeviceTable/index.es.js +0 -134
- package/dist/settings/components/notifications/AccountNotificationProfile/index.es.js +0 -80
- package/dist/settings/components/notifications/AccountNotificationProfiles/index.es.js +0 -55
- package/dist/settings/components/notifications/AccountProfileListItem/index.es.js +0 -102
- package/dist/settings/components/notifications/BudgetNotificationProfiles/index.es.js +0 -12
- package/dist/settings/components/notifications/DeliveryMethods/index.es.js +0 -77
- package/dist/settings/components/notifications/InsightsNotificationProfiles/index.es.js +0 -12
- package/dist/settings/components/notifications/NotificationProfile/index.es.js +0 -96
- package/dist/settings/components/notifications/NotificationSettings/index.es.js +0 -89
- package/dist/settings/components/notifications/PersonalDetails/index.es.js +0 -99
- package/dist/settings/components/profile/ProfileTab/index.es.js +0 -204
- package/dist/settings/components/profile/actions/VerifyEmailAction/index.es.js +0 -63
- package/dist/settings/components/profile/actions/VerifyPhoneAction/index.es.js +0 -80
- package/dist/settings/components/profile/actions/VerifyTokenAction/index.es.js +0 -36
- package/dist/settings/components/transactionrules/TransactionRulesTab/index.es.js +0 -23
- package/dist/settings/components/transactionrules/actions/DeleteRuleAction/index.es.js +0 -34
- package/dist/settings/components/transactionrules/actions/EditCategoryAction/index.es.js +0 -38
- package/dist/settings/components/transactionrules/actions/EditPayeeAction/index.es.js +0 -52
- package/dist/settings/components/transactionrules/actions/EditRuleAction/index.es.js +0 -33
- package/dist/settings/components/transactionrules/components/EditRuleDetails/index.es.js +0 -52
- package/dist/settings/components/transactionrules/components/RuleListItem/index.es.js +0 -20
- package/dist/settings/constants/Settings/index.es.js +0 -4
- package/dist/settings/stores/SettingsStore/index.es.js +0 -187
- package/dist/settings/util/Notifications/index.es.js +0 -64
- package/dist/spending/SpendingMiniWidget/index.es.js +0 -26
- package/dist/spending/SpendingWidget/index.es.js +0 -38
- package/dist/spending/components/MiniSpendingChart/index.es.js +0 -115
- package/dist/spending/components/Spending/index.es.js +0 -141
- package/dist/spending/components/SpendingChart/index.es.js +0 -61
- package/dist/spending/components/SpendingDonut/index.es.js +0 -69
- package/dist/spending/components/SpendingLegend/index.es.js +0 -25
- package/dist/spending/components/SpendingList/index.es.js +0 -96
- package/dist/spending/components/SpendingTabLabel/index.es.js +0 -11
- package/dist/spending/utils/SpendingData/index.es.js +0 -86
- package/dist/transactions/TransactionWidget/index.es.js +0 -242
- package/dist/transactions/analytics/index.es.js +0 -5
- package/dist/transactions/components/shared/TransactionDetails/Description/index.es.js +0 -68
- package/dist/transactions/components/shared/TransactionDetails/FlagTransaction/index.es.js +0 -43
- package/dist/transactions/components/shared/TransactionDetails/ManualTransactionDetails/index.es.js +0 -126
- package/dist/transactions/components/shared/TransactionDetails/TransactionAmountHeader/index.es.js +0 -27
- package/dist/transactions/components/shared/TransactionDetails/actions/CategoryAction/index.es.js +0 -105
- package/dist/transactions/components/shared/TransactionDetails/actions/DateAction/index.es.js +0 -81
- package/dist/transactions/components/shared/TransactionDetails/actions/DeleteAction/index.es.js +0 -60
- package/dist/transactions/components/shared/TransactionDetails/actions/DeleteLogoAction/index.es.js +0 -60
- package/dist/transactions/components/shared/TransactionDetails/actions/HideAction/index.es.js +0 -90
- package/dist/transactions/components/shared/TransactionDetails/actions/MemoAction/index.es.js +0 -91
- package/dist/transactions/components/shared/TransactionDetails/actions/SplitAction/index.es.js +0 -143
- package/dist/transactions/components/shared/TransactionDetails/actions/TagsAction/index.es.js +0 -75
- package/dist/transactions/components/shared/TransactionDetails/index.es.js +0 -79
- package/dist/transactions/components/shared/TransactionList/TransactionRow/index.es.js +0 -84
- package/dist/transactions/components/shared/TransactionList/ZeroState/index.es.js +0 -17
- package/dist/transactions/components/shared/TransactionList/index.es.js +0 -82
- package/dist/transactions/components/shared/TransactionTable/cells/AccountCell/index.es.js +0 -9
- package/dist/transactions/components/shared/TransactionTable/cells/AmountCell/index.es.js +0 -20
- package/dist/transactions/components/shared/TransactionTable/cells/CategoryCell/index.es.js +0 -29
- package/dist/transactions/components/shared/TransactionTable/cells/DateCell/index.es.js +0 -8
- package/dist/transactions/components/shared/TransactionTable/cells/FlagCell/index.es.js +0 -38
- package/dist/transactions/components/shared/TransactionTable/cells/HeaderCell/index.es.js +0 -6
- package/dist/transactions/components/shared/TransactionTable/cells/PayeeCell/index.es.js +0 -16
- package/dist/transactions/components/shared/TransactionTable/index.es.js +0 -110
- package/dist/transactions/components/splitmanager/SplitManager/index.es.js +0 -69
- package/dist/transactions/components/splitmanager/SplitRow/index.es.js +0 -126
- package/dist/transactions/components/tagmanager/Header/index.es.js +0 -78
- package/dist/transactions/components/tagmanager/SearchBox/index.es.js +0 -37
- package/dist/transactions/components/tagmanager/TagManager/index.es.js +0 -32
- package/dist/transactions/components/tagmanager/TagRow/index.es.js +0 -114
- package/dist/transactions/components/transactionwidget/AddAccountModal/index.es.js +0 -29
- package/dist/transactions/components/transactionwidget/actions/EditCategoryAction/index.es.js +0 -54
- package/dist/transactions/constants/Actions/index.es.js +0 -19
- package/dist/transactions/constants/Analytics/index.es.js +0 -259
- package/dist/transactions/constants/OnClickEvents/index.es.js +0 -48
- package/dist/transactions/constants/Transaction/index.es.js +0 -33
- package/dist/transactions/constants/TransactionsTable/index.es.js +0 -11
- package/dist/transactions/context/hooks/index.es.js +0 -11
- package/dist/transactions/stores/TransactionStore/index.es.js +0 -224
- package/dist/transactions/stores/UiStore/index.es.js +0 -48
- package/dist/transactions/utils/Filters/index.es.js +0 -9
- package/dist/transactions/utils/Transactions/index.es.js +0 -13
- package/dist/transactions/utils/buildDetailedTransactions/index.es.js +0 -35
- package/dist/transactions/utils/sortAndFilterTransactions/index.es.js +0 -44
- package/dist/trends/TrendsFullWidget/index.es.js +0 -157
- package/dist/trends/TrendsMicroWidget/index.es.js +0 -86
- package/dist/trends/TrendsMiniWidget/index.es.js +0 -28
- package/dist/trends/TrendsWidget/index.es.js +0 -173
- package/dist/trends/ZeroStateMicroWidget/index.es.js +0 -19
- package/dist/trends/components/CategoriesList/index.es.js +0 -62
- package/dist/trends/components/CategoriesListItem/index.es.js +0 -25
- package/dist/trends/components/CategoryDetailChart/index.es.js +0 -34
- package/dist/trends/components/CategoryDetailDrawer/index.es.js +0 -44
- package/dist/trends/components/DateRangeText/index.es.js +0 -39
- package/dist/trends/components/SpendingChart/index.es.js +0 -28
- package/dist/trends/components/TransactionsList/index.es.js +0 -81
- package/dist/trends/components/TrendsChart/index.es.js +0 -45
- package/dist/trends/components/TrendsChartTotals/index.es.js +0 -56
- package/dist/trends/components/TrendsDrawer/index.es.js +0 -48
- package/dist/trends/components/TrendsInsights/index.es.js +0 -43
- package/dist/trends/components/TrendsMicroSpendingIncomeBox/index.es.js +0 -96
- package/dist/trends/components/TrendsTable/AmountCell/index.es.js +0 -10
- package/dist/trends/components/TrendsTable/CategoryCell/index.es.js +0 -30
- package/dist/trends/components/TrendsTable/index.es.js +0 -96
- package/dist/trends/components/TrendsViewToggle/index.es.js +0 -17
- package/dist/trends/constants/TrendsInsights/index.es.js +0 -38
- package/dist/trends/stores/TrendsStore/index.es.js +0 -77
- package/dist/trends/utils/SpendingData/index.es.js +0 -47
- package/dist/trends/utils/TrendsData/index.es.js +0 -41
- package/dist/trends/utils/shared/index.es.js +0 -15
- /package/dist/budgets/components/{BubbleChart → bubblechart}/Bubble.d.ts +0 -0
- /package/dist/budgets/components/{BubbleChart → bubblechart}/Mercury.d.ts +0 -0
- /package/dist/budgets/components/{BudgetList → budgetlist}/BudgetRow.d.ts +0 -0
- /package/dist/budgets/components/{BudgetList → budgetlist}/SubBudgetRow.d.ts +0 -0
- /package/dist/budgets/components/{BudgetList → budgetlist}/SubBudgetZeroState.d.ts +0 -0
- /package/dist/common/components/charts/{LineChart → linechart}/CustomLegend.d.ts +0 -0
- /package/dist/common/components/charts/{LineChart → linechart}/CustomLine.d.ts +0 -0
- /package/dist/common/components/charts/{LineChart → linechart}/CustomMark.d.ts +0 -0
- /package/dist/common/components/charts/{LineChart → linechart}/CustomTooltip.d.ts +0 -0
- /package/dist/common/components/charts/{StackedLineChart → stackedlinechart}/CategoryIconLabel.d.ts +0 -0
- /package/dist/common/components/charts/{StackedLineChart → stackedlinechart}/CustomAreaTooltip.d.ts +0 -0
- /package/dist/common/components/charts/{StackedLineChart → stackedlinechart}/CustomLegend.d.ts +0 -0
- /package/dist/common/components/charts/{StackedLineChart → stackedlinechart}/CustomPointTooltip.d.ts +0 -0
- /package/dist/common/components/charts/{StackedLineChart → stackedlinechart}/utils.d.ts +0 -0
- /package/dist/debts/components/{DebtsTable → debtstable}/AccountCell.d.ts +0 -0
- /package/dist/debts/components/{DebtsTable → debtstable}/PriorityCell.d.ts +0 -0
- /package/dist/goals/components/{AddGoal → addgoal}/AddGoalListItem.d.ts +0 -0
- /package/dist/goals/components/{ManageGoals → managegoals}/CompleteListItem.d.ts +0 -0
- /package/dist/goals/components/{ManageGoals → managegoals}/OngoingListItem.d.ts +0 -0
- /package/dist/goals/components/{ManageGoals → managegoals}/ReorderGoals.d.ts +0 -0
- /package/dist/investments/components/{Allocation → allocation}/InvestementAllocationList.d.ts +0 -0
- /package/dist/investments/components/{Allocation → allocation}/InvestmentsAllocationChart.d.ts +0 -0
- /package/dist/investments/components/{Allocation → allocation}/util/createInvestementsAllocationData.d.ts +0 -0
- /package/dist/transactions/components/shared/{TransactionDetails → transactiondetails}/Description.d.ts +0 -0
- /package/dist/transactions/components/shared/{TransactionDetails → transactiondetails}/FlagTransaction.d.ts +0 -0
- /package/dist/transactions/components/shared/{TransactionDetails → transactiondetails}/ManualTransactionDetails.d.ts +0 -0
- /package/dist/transactions/components/shared/{TransactionDetails → transactiondetails}/TransactionAmountHeader.d.ts +0 -0
- /package/dist/transactions/components/shared/{TransactionDetails → transactiondetails}/actions/CategoryAction.d.ts +0 -0
- /package/dist/transactions/components/shared/{TransactionDetails → transactiondetails}/actions/DateAction.d.ts +0 -0
- /package/dist/transactions/components/shared/{TransactionDetails → transactiondetails}/actions/DeleteAction.d.ts +0 -0
- /package/dist/transactions/components/shared/{TransactionDetails → transactiondetails}/actions/DeleteLogoAction.d.ts +0 -0
- /package/dist/transactions/components/shared/{TransactionDetails → transactiondetails}/actions/HideAction.d.ts +0 -0
- /package/dist/transactions/components/shared/{TransactionDetails → transactiondetails}/actions/MemoAction.d.ts +0 -0
- /package/dist/transactions/components/shared/{TransactionDetails → transactiondetails}/actions/SplitAction.d.ts +0 -0
- /package/dist/transactions/components/shared/{TransactionDetails → transactiondetails}/actions/TagsAction.d.ts +0 -0
- /package/dist/transactions/components/shared/{TransactionDetails → transactiondetails}/actions/index.d.ts +0 -0
- /package/dist/transactions/components/shared/{TransactionList → transactionlist}/DateRow.d.ts +0 -0
- /package/dist/transactions/components/shared/{TransactionList → transactionlist}/TransactionRow.d.ts +0 -0
- /package/dist/transactions/components/shared/{TransactionList → transactionlist}/ZeroState.d.ts +0 -0
- /package/dist/transactions/components/shared/{TransactionTable → transactiontable}/cells/AccountCell.d.ts +0 -0
- /package/dist/transactions/components/shared/{TransactionTable → transactiontable}/cells/AmountCell.d.ts +0 -0
- /package/dist/transactions/components/shared/{TransactionTable → transactiontable}/cells/CategoryCell.d.ts +0 -0
- /package/dist/transactions/components/shared/{TransactionTable → transactiontable}/cells/DateCell.d.ts +0 -0
- /package/dist/transactions/components/shared/{TransactionTable → transactiontable}/cells/FlagCell.d.ts +0 -0
- /package/dist/transactions/components/shared/{TransactionTable → transactiontable}/cells/HeaderCell.d.ts +0 -0
- /package/dist/transactions/components/shared/{TransactionTable → transactiontable}/cells/PayeeCell.d.ts +0 -0
- /package/dist/transactions/components/shared/{TransactionTable → transactiontable}/cells/index.d.ts +0 -0
- /package/dist/trends/components/{TrendsTable → trendstable}/AmountCell.d.ts +0 -0
- /package/dist/trends/components/{TrendsTable → trendstable}/CategoryCell.d.ts +0 -0
- /package/dist/trends/components/{TrendsTable → trendstable}/HeaderCell.d.ts +0 -0
|
@@ -1,4 +1,1638 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs as o, jsx as e, Fragment as ae } from "react/jsx-runtime";
|
|
2
|
+
import B, { useState as O } from "react";
|
|
3
|
+
import { observer as P } from "mobx-react-lite";
|
|
4
|
+
import _ from "@mui/material/Stack";
|
|
5
|
+
import Ee from "@mui/material/Tab";
|
|
6
|
+
import Ge from "@mui/material/Tabs";
|
|
7
|
+
import { C as ge } from "../ConnectionsDrawer-BCzpuNsK.mjs";
|
|
8
|
+
import pe from "@mui/material/useMediaQuery";
|
|
9
|
+
import Me from "@mui/material/Box";
|
|
10
|
+
import Ne from "@mui/material/Collapse";
|
|
11
|
+
import K from "@mui/material/Divider";
|
|
12
|
+
import ee from "@mui/material/List";
|
|
13
|
+
import te from "@mui/material/ListItem";
|
|
14
|
+
import He from "@mui/material/ListItemButton";
|
|
15
|
+
import xe from "@mui/material/ToggleButton";
|
|
16
|
+
import ye from "@mui/material/ToggleButtonGroup";
|
|
17
|
+
import { Text as r, H1 as fe, P as ve, InstitutionLogo as ne } from "@mxenabled/mxui";
|
|
18
|
+
import Ue from "@mui/material/Button";
|
|
19
|
+
import { u as E, g as be, s as H, a as Q, c as se } from "../hooks-ClhFlg78.mjs";
|
|
20
|
+
import { A as z, W as je } from "../WidgetContainer-CmGNZW0M.mjs";
|
|
21
|
+
import { a as ze, f as oe } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
22
|
+
import { u as U } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
23
|
+
import le from "@mui/material/styles/useTheme";
|
|
24
|
+
import { Icon as k } from "@mxenabled/mx-icons";
|
|
25
|
+
import { D as Oe } from "../Donut-1UMNcG67.mjs";
|
|
26
|
+
import { useTheme as Ve } from "@mui/material/styles";
|
|
27
|
+
import { f as Re, A as V } from "../InvestmentUtil-jOyOgzIB.mjs";
|
|
28
|
+
import Pe from "@mui/material/ListItemText";
|
|
29
|
+
import ce from "@mui/material/IconButton";
|
|
30
|
+
import Xe from "@mui/material/Tooltip";
|
|
31
|
+
import _e from "@mui/material/Accordion";
|
|
32
|
+
import we from "@mui/material/AccordionDetails";
|
|
33
|
+
import Ce from "@mui/material/AccordionSummary";
|
|
34
|
+
import ie from "@mui/material/Paper";
|
|
35
|
+
import p from "@mui/system/Stack";
|
|
36
|
+
import Se from "@mui/material/TextField";
|
|
37
|
+
import { D as $e } from "../Drawer-kEE73B87.mjs";
|
|
38
|
+
import { DataGridPro as qe } from "@mui/x-data-grid-pro";
|
|
39
|
+
import { Stack as Ke } from "@mui/material";
|
|
40
|
+
import { L as De } from "../Loader-Dp1P2gNw.mjs";
|
|
41
|
+
import { E as Ye } from "../EmptyState-Dcb-o2tl.mjs";
|
|
42
|
+
const de = ({ sx: t = {} }) => {
|
|
43
|
+
const { investments: h } = E(), { onEvent: c } = be(), { setShowConnectionsWidget: u } = H();
|
|
44
|
+
return /* @__PURE__ */ o(_, { sx: { alignItems: "center", gap: 24, height: 164, p: 24, width: "100%", ...t }, children: [
|
|
45
|
+
/* @__PURE__ */ o(
|
|
46
|
+
_,
|
|
47
|
+
{
|
|
48
|
+
className: "inner-container",
|
|
49
|
+
sx: {
|
|
50
|
+
alignItems: "center",
|
|
51
|
+
gap: 8,
|
|
52
|
+
width: "100%",
|
|
53
|
+
textAlign: "center"
|
|
54
|
+
},
|
|
55
|
+
children: [
|
|
56
|
+
/* @__PURE__ */ e(r, { sx: { fontWeight: 600, whiteSpace: "normal" }, variant: "Body", children: h.overview.investment_accounts_footer }),
|
|
57
|
+
/* @__PURE__ */ e(
|
|
58
|
+
r,
|
|
59
|
+
{
|
|
60
|
+
sx: {
|
|
61
|
+
color: "text.secondary",
|
|
62
|
+
whiteSpace: "normal",
|
|
63
|
+
fontWeight: 400
|
|
64
|
+
},
|
|
65
|
+
variant: "ParagraphSmall",
|
|
66
|
+
children: h.overview.connect_more_accounts_description
|
|
67
|
+
}
|
|
68
|
+
)
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
/* @__PURE__ */ e(
|
|
73
|
+
Ue,
|
|
74
|
+
{
|
|
75
|
+
onClick: () => {
|
|
76
|
+
u(!0), c(z.ACCOUNTS_CLICK_CONNECT);
|
|
77
|
+
},
|
|
78
|
+
sx: { fontWeight: 600 },
|
|
79
|
+
variant: "outlined",
|
|
80
|
+
children: h.overview.connect_accounts
|
|
81
|
+
}
|
|
82
|
+
)
|
|
83
|
+
] });
|
|
84
|
+
}, Qe = {
|
|
85
|
+
allocations_cash: "#AEDCCC",
|
|
86
|
+
allocations_convertible: "#80CAD0",
|
|
87
|
+
allocations_foreign_bond: "#51B9D4",
|
|
88
|
+
allocations_foreign_stock: "#3DA0C9",
|
|
89
|
+
allocations_other: "#3583B8",
|
|
90
|
+
allocations_preferred: "#2D66A7",
|
|
91
|
+
allocations_unknown: "#161D6A",
|
|
92
|
+
allocations_us_bond: "#254995",
|
|
93
|
+
allocations_us_stock: "#1E2D84"
|
|
94
|
+
}, Je = [
|
|
95
|
+
{
|
|
96
|
+
name: "allocations_cash"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: "allocations_convertible"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: "allocations_foreign_bond"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: "allocations_foreign_stock"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: "allocations_other"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: "allocations_preferred"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name: "allocations_us_bond"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: "allocations_us_stock"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: "allocations_unknown"
|
|
121
|
+
}
|
|
122
|
+
], Ze = (t, h, c) => {
|
|
123
|
+
const u = h, x = c;
|
|
124
|
+
return t >= Math.min(u, x) && t < Math.max(u, x);
|
|
125
|
+
}, et = (t, h, c) => {
|
|
126
|
+
const u = [
|
|
127
|
+
...new Set(t.map((d) => d.name.toLowerCase()))
|
|
128
|
+
];
|
|
129
|
+
let x;
|
|
130
|
+
return u.map((d) => {
|
|
131
|
+
const l = t.reduce((m, y) => {
|
|
132
|
+
const b = y.name;
|
|
133
|
+
return b.toLowerCase() === d ? (x = b, Y(y) * y[h] / 100 + m) : m;
|
|
134
|
+
}, 0);
|
|
135
|
+
return {
|
|
136
|
+
displayName: x,
|
|
137
|
+
name: x,
|
|
138
|
+
value: l,
|
|
139
|
+
percentage: l / c
|
|
140
|
+
};
|
|
141
|
+
});
|
|
142
|
+
}, Y = (t) => t.calculated_market_value ? t.calculated_market_value : t.market_value, tt = (t, h, c) => {
|
|
143
|
+
const u = Object.values(h.allocations_list), x = [];
|
|
144
|
+
let v = 0;
|
|
145
|
+
const d = t.map(({ guid: n }) => n), l = c.filter(({ account_guid: n }) => d.includes(n)).map((n) => ({
|
|
146
|
+
...n,
|
|
147
|
+
name: n.symbol || n.description,
|
|
148
|
+
gainLoss: n.cost_basis || n.cost_basis === 0 ? Y(n) - n.cost_basis : 0
|
|
149
|
+
})), { cashBalance: m, totalAccountBalance: y } = t.reduce(
|
|
150
|
+
(n, g) => ({
|
|
151
|
+
cashBalance: n.cashBalance + (g.cash_balance || 0),
|
|
152
|
+
totalAccountBalance: n.totalAccountBalance + (g.balance || 0)
|
|
153
|
+
}),
|
|
154
|
+
{ cashBalance: 0, totalAccountBalance: 0 }
|
|
155
|
+
), { marketValue: b, totalGainLoss: s } = l.reduce(
|
|
156
|
+
(n, g) => ({
|
|
157
|
+
marketValue: n.marketValue + Y(g),
|
|
158
|
+
totalGainLoss: n.totalGainLoss + g.gainLoss
|
|
159
|
+
}),
|
|
160
|
+
{ marketValue: 0, totalGainLoss: 0 }
|
|
161
|
+
), f = b + m;
|
|
162
|
+
Je.forEach((n, g) => {
|
|
163
|
+
const C = l.filter(
|
|
164
|
+
(W) => !!W[n.name]
|
|
165
|
+
);
|
|
166
|
+
let S = C.reduce(
|
|
167
|
+
(W, A) => W + Y(A) * A[n.name] / 100,
|
|
168
|
+
0
|
|
169
|
+
);
|
|
170
|
+
const L = et(
|
|
171
|
+
C,
|
|
172
|
+
n.name,
|
|
173
|
+
S
|
|
174
|
+
);
|
|
175
|
+
if (n.name === "allocations_cash" && m > 0) {
|
|
176
|
+
S += m;
|
|
177
|
+
const W = {
|
|
178
|
+
displayName: h.cash_balance_display_name,
|
|
179
|
+
name: "allocations_name",
|
|
180
|
+
value: m,
|
|
181
|
+
percentage: m / f
|
|
182
|
+
};
|
|
183
|
+
L.push(W);
|
|
184
|
+
}
|
|
185
|
+
S > 0 && (x.push({
|
|
186
|
+
name: n.name,
|
|
187
|
+
displayName: u[g],
|
|
188
|
+
guid: `${n.name}-${g}`,
|
|
189
|
+
holdings: L,
|
|
190
|
+
percentage: S / f,
|
|
191
|
+
value: S,
|
|
192
|
+
color: Qe[n.name]
|
|
193
|
+
}), v += S);
|
|
194
|
+
});
|
|
195
|
+
const i = x.map(
|
|
196
|
+
({ displayName: n, guid: g, color: C, value: S }) => ({
|
|
197
|
+
id: g,
|
|
198
|
+
color: C,
|
|
199
|
+
label: n,
|
|
200
|
+
value: S / v * 100
|
|
201
|
+
})
|
|
202
|
+
);
|
|
203
|
+
return {
|
|
204
|
+
investmentsData: x,
|
|
205
|
+
donutData: i,
|
|
206
|
+
totalAmount: v,
|
|
207
|
+
totalGainLoss: s,
|
|
208
|
+
totalMarketValue: f,
|
|
209
|
+
totalGainLossPercentage: s / y
|
|
210
|
+
};
|
|
211
|
+
}, re = (t) => t < 1e-3 ? "< 0.1%" : ze(t), R = (t) => t === 0 ? oe(t, "0,0.00") : Ze(t, -0.01, 0.01) ? "< $0.01" : oe(t, "0,0.00"), nt = ({
|
|
212
|
+
data: t,
|
|
213
|
+
onSelected: h,
|
|
214
|
+
selectedId: c,
|
|
215
|
+
selectedTabs: u,
|
|
216
|
+
setSelectedTabs: x
|
|
217
|
+
}) => {
|
|
218
|
+
const v = (s, f) => {
|
|
219
|
+
f !== null && x(f);
|
|
220
|
+
}, { isMobile: d } = U(), {
|
|
221
|
+
investments: { allocation: l }
|
|
222
|
+
} = E(), m = [
|
|
223
|
+
{ label: l.tabs_label_dollar, value: 0 },
|
|
224
|
+
{ label: l.tabs_label_percent, value: 1 }
|
|
225
|
+
], y = !t?.investmentsData.length, { isSmallMobile: b } = U();
|
|
226
|
+
return /* @__PURE__ */ o(_, { sx: { mt: 15, gap: 12, width: d ? 250 : 412 }, children: [
|
|
227
|
+
/* @__PURE__ */ e(
|
|
228
|
+
ye,
|
|
229
|
+
{
|
|
230
|
+
exclusive: !0,
|
|
231
|
+
fullWidth: !0,
|
|
232
|
+
onChange: v,
|
|
233
|
+
value: y ? -1 : u,
|
|
234
|
+
children: m.map(({ label: s, value: f }) => /* @__PURE__ */ e(xe, { color: "primary", value: f, children: /* @__PURE__ */ e(r, { bold: !0, textTransform: "capitalize", variant: "Body", children: s }) }, s))
|
|
235
|
+
}
|
|
236
|
+
),
|
|
237
|
+
/* @__PURE__ */ e(ee, { sx: { px: 12 }, children: t.investmentsData.map((s) => /* @__PURE__ */ o(B.Fragment, { children: [
|
|
238
|
+
/* @__PURE__ */ e(
|
|
239
|
+
te,
|
|
240
|
+
{
|
|
241
|
+
disableGutters: !0,
|
|
242
|
+
disablePadding: !0,
|
|
243
|
+
sx: {
|
|
244
|
+
minHeight: 44
|
|
245
|
+
},
|
|
246
|
+
children: /* @__PURE__ */ o(
|
|
247
|
+
He,
|
|
248
|
+
{
|
|
249
|
+
"aria-expanded": c === s.guid,
|
|
250
|
+
onClick: () => h(s.guid),
|
|
251
|
+
sx: { minHeight: 44, px: 12, py: 0 },
|
|
252
|
+
children: [
|
|
253
|
+
/* @__PURE__ */ e(
|
|
254
|
+
Me,
|
|
255
|
+
{
|
|
256
|
+
borderRadius: 4,
|
|
257
|
+
flexShrink: 0,
|
|
258
|
+
height: 8,
|
|
259
|
+
sx: { backgroundColor: s.color, mr: 8 },
|
|
260
|
+
width: 8
|
|
261
|
+
}
|
|
262
|
+
),
|
|
263
|
+
/* @__PURE__ */ o(
|
|
264
|
+
_,
|
|
265
|
+
{
|
|
266
|
+
alignItems: "center",
|
|
267
|
+
direction: "row",
|
|
268
|
+
justifyContent: "space-between",
|
|
269
|
+
width: "100%",
|
|
270
|
+
children: [
|
|
271
|
+
/* @__PURE__ */ e(r, { bold: c === s.guid, children: s.displayName }),
|
|
272
|
+
/* @__PURE__ */ e(r, { bold: c === s.guid, variant: "Body", children: u === 0 ? R(s.value) : re(s.percentage) })
|
|
273
|
+
]
|
|
274
|
+
}
|
|
275
|
+
)
|
|
276
|
+
]
|
|
277
|
+
}
|
|
278
|
+
)
|
|
279
|
+
}
|
|
280
|
+
),
|
|
281
|
+
/* @__PURE__ */ e(K, {}),
|
|
282
|
+
s.holdings && s.holdings.length > 0 && /* @__PURE__ */ e(Ne, { in: c === s.guid, unmountOnExit: !0, children: /* @__PURE__ */ o(ee, { children: [
|
|
283
|
+
s?.holdings?.map((f) => /* @__PURE__ */ e(
|
|
284
|
+
te,
|
|
285
|
+
{
|
|
286
|
+
sx: {
|
|
287
|
+
pl: 24,
|
|
288
|
+
pr: 8,
|
|
289
|
+
py: 0
|
|
290
|
+
},
|
|
291
|
+
children: /* @__PURE__ */ o(_, { direction: "row", justifyContent: "space-between", width: "100%", children: [
|
|
292
|
+
/* @__PURE__ */ o(r, { children: [
|
|
293
|
+
f.displayName,
|
|
294
|
+
" "
|
|
295
|
+
] }),
|
|
296
|
+
/* @__PURE__ */ e(r, { children: u === 0 ? R(f.value) : re(f.percentage) })
|
|
297
|
+
] })
|
|
298
|
+
},
|
|
299
|
+
f.displayName
|
|
300
|
+
)),
|
|
301
|
+
/* @__PURE__ */ e(K, {})
|
|
302
|
+
] }) })
|
|
303
|
+
] }, s.guid)) }),
|
|
304
|
+
y ? /* @__PURE__ */ o(ae, { children: [
|
|
305
|
+
/* @__PURE__ */ e(r, { sx: { color: "secondary.main", p: 8, textAlign: "center" }, children: l.empty_data }),
|
|
306
|
+
/* @__PURE__ */ e(K, { sx: { borderColor: "border.light" } }),
|
|
307
|
+
/* @__PURE__ */ e(
|
|
308
|
+
de,
|
|
309
|
+
{
|
|
310
|
+
sx: {
|
|
311
|
+
".inner-container": { width: b ? "100%" : 364 }
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
)
|
|
315
|
+
] }) : u === 0 && /* @__PURE__ */ e(r, { bold: !0, sx: { textAlign: "right", pr: 24 }, children: `${l.total_label_text} ${R(t.totalAmount)}` })
|
|
316
|
+
] });
|
|
317
|
+
}, ot = ({
|
|
318
|
+
data: t,
|
|
319
|
+
hoveredId: h,
|
|
320
|
+
isPercentage: c,
|
|
321
|
+
onMouseEnter: u,
|
|
322
|
+
onMouseLeave: x,
|
|
323
|
+
onSelected: v,
|
|
324
|
+
selectedId: d,
|
|
325
|
+
size: l = 150,
|
|
326
|
+
totalLabel: m
|
|
327
|
+
}) => {
|
|
328
|
+
const y = le(), b = y.palette.mode === "dark", s = B.useMemo(
|
|
329
|
+
() => d ? t.investmentsData.find(({ guid: L }) => L === d) : void 0,
|
|
330
|
+
[d]
|
|
331
|
+
), {
|
|
332
|
+
investments: { allocation: f }
|
|
333
|
+
} = E(), i = B.useMemo(() => t.donutData.length > 0 ? t.donutData : [{ id: "0", color: y.palette.border.light, value: 100 }], [t, y]), n = b ? "#0AC295" : "#09A57F", g = b ? "grey.300" : "grey.700", C = () => s ? f.pie_chart_centered_click_for_details : c ? re(t.totalGainLossPercentage) : R(t.totalGainLoss), S = t.totalGainLoss >= 0 ? n : g;
|
|
334
|
+
return /* @__PURE__ */ e(
|
|
335
|
+
Oe,
|
|
336
|
+
{
|
|
337
|
+
data: i,
|
|
338
|
+
hoveredId: h,
|
|
339
|
+
onClick: v,
|
|
340
|
+
onMouseEnter: u,
|
|
341
|
+
onMouseLeave: x,
|
|
342
|
+
selectedId: d,
|
|
343
|
+
size: l,
|
|
344
|
+
children: /* @__PURE__ */ e(_, { alignItems: "center", height: "100%", justifyContent: "center", width: "100%", children: /* @__PURE__ */ e(_, { alignItems: "center", justifyContent: "center", minHeight: l, minWidth: l, children: /* @__PURE__ */ o(_, { alignItems: "center", sx: { gap: { xs: 4, xl: 8 }, mb: { xs: 4, xl: 8 } }, children: [
|
|
345
|
+
/* @__PURE__ */ e(r, { color: "text.secondary", noWrap: !0, children: s?.displayName ?? m }),
|
|
346
|
+
/* @__PURE__ */ e(fe, { color: "text.primary", children: R(s?.value ?? t.totalMarketValue) }),
|
|
347
|
+
/* @__PURE__ */ o(_, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
|
|
348
|
+
!s && /* @__PURE__ */ e(
|
|
349
|
+
k,
|
|
350
|
+
{
|
|
351
|
+
name: t.totalGainLoss >= 0 ? "trending_up" : "trending_down",
|
|
352
|
+
size: 20,
|
|
353
|
+
sx: { color: S }
|
|
354
|
+
}
|
|
355
|
+
),
|
|
356
|
+
/* @__PURE__ */ e(
|
|
357
|
+
r,
|
|
358
|
+
{
|
|
359
|
+
sx: {
|
|
360
|
+
color: S,
|
|
361
|
+
fontWeight: 700
|
|
362
|
+
},
|
|
363
|
+
variant: "Small",
|
|
364
|
+
children: C()
|
|
365
|
+
}
|
|
366
|
+
)
|
|
367
|
+
] })
|
|
368
|
+
] }) }) })
|
|
369
|
+
}
|
|
370
|
+
);
|
|
371
|
+
}, it = () => {
|
|
372
|
+
const [t, h] = B.useState(0), [c, u] = B.useState(""), [x, v] = B.useState(""), d = (n) => {
|
|
373
|
+
c !== n ? u(n) : (u(""), v(""));
|
|
374
|
+
}, { selectedAccountGuids: l } = Q(), { visibleHoldings: m } = H(), { visibleInvestmentAccounts: y } = se(), {
|
|
375
|
+
investments: { allocation: b }
|
|
376
|
+
} = E(), s = tt(
|
|
377
|
+
y.filter(({ guid: n }) => l.includes(n)),
|
|
378
|
+
b,
|
|
379
|
+
m
|
|
380
|
+
), { isMobile: f } = U(), i = pe("(max-width:768px)");
|
|
381
|
+
return /* @__PURE__ */ o(
|
|
382
|
+
_,
|
|
383
|
+
{
|
|
384
|
+
alignItems: i ? "center" : "flex-start",
|
|
385
|
+
direction: i ? "column" : "row",
|
|
386
|
+
gap: { xs: 16, md: 64, xl: 100 },
|
|
387
|
+
sx: {
|
|
388
|
+
justifyContent: "center",
|
|
389
|
+
mt: 50,
|
|
390
|
+
width: "100%"
|
|
391
|
+
},
|
|
392
|
+
children: [
|
|
393
|
+
/* @__PURE__ */ e(
|
|
394
|
+
ot,
|
|
395
|
+
{
|
|
396
|
+
data: s,
|
|
397
|
+
hoveredId: x,
|
|
398
|
+
isPercentage: t === 1,
|
|
399
|
+
onMouseEnter: (n) => {
|
|
400
|
+
c === n ? v("") : c || v(n);
|
|
401
|
+
},
|
|
402
|
+
onMouseLeave: () => {
|
|
403
|
+
v("");
|
|
404
|
+
},
|
|
405
|
+
onSelected: d,
|
|
406
|
+
selectedId: c,
|
|
407
|
+
size: f ? 280 : 400,
|
|
408
|
+
totalLabel: b.pie_chart_centered_text
|
|
409
|
+
}
|
|
410
|
+
),
|
|
411
|
+
/* @__PURE__ */ e(
|
|
412
|
+
nt,
|
|
413
|
+
{
|
|
414
|
+
data: s,
|
|
415
|
+
onSelected: d,
|
|
416
|
+
selectedId: c,
|
|
417
|
+
selectedTabs: t,
|
|
418
|
+
setSelectedTabs: h
|
|
419
|
+
}
|
|
420
|
+
)
|
|
421
|
+
]
|
|
422
|
+
}
|
|
423
|
+
);
|
|
424
|
+
}, rt = P(it), at = ({
|
|
425
|
+
analysisDetails: t,
|
|
426
|
+
analysisType: h,
|
|
427
|
+
copy: c,
|
|
428
|
+
setAnalysisType: u
|
|
429
|
+
}) => {
|
|
430
|
+
const { isSmallMobile: x } = U(), v = B.useMemo(() => Object.keys(t).filter((l) => t[l] >= 1).map((l) => ({
|
|
431
|
+
key: l,
|
|
432
|
+
value: oe(t[l], "0,0"),
|
|
433
|
+
formattedKey: Re(l)
|
|
434
|
+
})), [t]), d = [
|
|
435
|
+
{ label: c.equities, value: V.Stocks },
|
|
436
|
+
{ label: c.bonds, value: V.Bonds }
|
|
437
|
+
];
|
|
438
|
+
return /* @__PURE__ */ o(_, { sx: { gap: 12, width: { md: 412 } }, children: [
|
|
439
|
+
/* @__PURE__ */ e(
|
|
440
|
+
ye,
|
|
441
|
+
{
|
|
442
|
+
color: "primary",
|
|
443
|
+
exclusive: !0,
|
|
444
|
+
onChange: (l, m) => m && u(m),
|
|
445
|
+
sx: {
|
|
446
|
+
width: "100%",
|
|
447
|
+
"& .MuiToggleButton-root": {
|
|
448
|
+
color: "secondary.main",
|
|
449
|
+
fontWeight: 600,
|
|
450
|
+
textTransform: "capitalize"
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
value: v.length ? h : -1,
|
|
454
|
+
children: d.map(({ label: l, value: m }) => /* @__PURE__ */ e(xe, { sx: { width: "100%" }, value: m, children: l }, m))
|
|
455
|
+
}
|
|
456
|
+
),
|
|
457
|
+
v.length ? /* @__PURE__ */ e(
|
|
458
|
+
ee,
|
|
459
|
+
{
|
|
460
|
+
sx: {
|
|
461
|
+
"& .MuiListItemSecondaryAction-root": { pr: 12 },
|
|
462
|
+
"& .MuiListItem-divider": { borderColor: "border.light" },
|
|
463
|
+
"& .MuiListItem-root": { minHeight: 44, px: 12 }
|
|
464
|
+
},
|
|
465
|
+
children: v.map(({ value: l, formattedKey: m }) => /* @__PURE__ */ e(te, { divider: !0, secondaryAction: /* @__PURE__ */ e(r, { children: l }), children: /* @__PURE__ */ e(
|
|
466
|
+
Pe,
|
|
467
|
+
{
|
|
468
|
+
primary: m,
|
|
469
|
+
primaryTypographyProps: { fontStyle: "normal" }
|
|
470
|
+
}
|
|
471
|
+
) }, m))
|
|
472
|
+
}
|
|
473
|
+
) : /* @__PURE__ */ o(ae, { children: [
|
|
474
|
+
/* @__PURE__ */ e(r, { sx: { color: "secondary.main", p: 8, textAlign: "center" }, children: c.empty_data }),
|
|
475
|
+
/* @__PURE__ */ e(K, { sx: { borderColor: "border.light" } }),
|
|
476
|
+
/* @__PURE__ */ e(
|
|
477
|
+
de,
|
|
478
|
+
{
|
|
479
|
+
sx: {
|
|
480
|
+
".inner-container": { width: x ? "100%" : 364 }
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
)
|
|
484
|
+
] })
|
|
485
|
+
] });
|
|
486
|
+
}, st = ({ body: t, title: h }) => /* @__PURE__ */ o(_, { sx: { gap: 4, p: 12 }, children: [
|
|
487
|
+
/* @__PURE__ */ e(r, { bold: !0, variant: "Body", children: h }),
|
|
488
|
+
/* @__PURE__ */ e(ve, { variant: "ParagraphSmall", children: t })
|
|
489
|
+
] }), lt = ({
|
|
490
|
+
placement: t = "bottom",
|
|
491
|
+
tooltip_info_body: h,
|
|
492
|
+
tooltip_info_title: c
|
|
493
|
+
}) => /* @__PURE__ */ e(
|
|
494
|
+
Xe,
|
|
495
|
+
{
|
|
496
|
+
enterTouchDelay: 500,
|
|
497
|
+
placement: t,
|
|
498
|
+
title: /* @__PURE__ */ e(st, { body: h, title: c }),
|
|
499
|
+
children: /* @__PURE__ */ e(ce, { "aria-label": c, sx: { minHeight: 0, minWidth: 0, p: 0 }, children: /* @__PURE__ */ e(k, { name: "info", sx: { color: "info.main" } }) })
|
|
500
|
+
}
|
|
501
|
+
), ct = () => {
|
|
502
|
+
const {
|
|
503
|
+
investments: { analysis: t }
|
|
504
|
+
} = E(), { analysisChartData: h, analysisDetails: c, analysisType: u, setAnalysisType: x } = H(), v = pe("(min-width:320px) and (max-width:375px)"), { isMobile: d } = U(), m = Ve().palette.mode === "dark", { cellDimension: y, columns: b, rows: s, textVariant: f } = B.useMemo(() => {
|
|
505
|
+
const i = u === V.Stocks, n = Object.values(i ? t.stock_column_labels : t.bond_column_labels), g = Object.values(i ? t.stock_row_labels : t.bond_row_labels);
|
|
506
|
+
return { cellDimension: d ? 72 : 100, columns: n, rows: g, textVariant: d ? "XSmall" : "Body" };
|
|
507
|
+
}, [t, d, u]);
|
|
508
|
+
return /* @__PURE__ */ o(
|
|
509
|
+
_,
|
|
510
|
+
{
|
|
511
|
+
sx: {
|
|
512
|
+
flexDirection: { md: "row" },
|
|
513
|
+
gap: d ? 48 : 64,
|
|
514
|
+
justifyContent: "center",
|
|
515
|
+
pt: 48,
|
|
516
|
+
px: 16
|
|
517
|
+
},
|
|
518
|
+
children: [
|
|
519
|
+
/* @__PURE__ */ o(
|
|
520
|
+
_,
|
|
521
|
+
{
|
|
522
|
+
sx: {
|
|
523
|
+
alignItems: "center",
|
|
524
|
+
flexDirection: "row",
|
|
525
|
+
justifyContent: "center",
|
|
526
|
+
pr: { lg: 72 }
|
|
527
|
+
},
|
|
528
|
+
children: [
|
|
529
|
+
/* @__PURE__ */ o(
|
|
530
|
+
_,
|
|
531
|
+
{
|
|
532
|
+
sx: {
|
|
533
|
+
alignItems: "center",
|
|
534
|
+
bottom: d ? 10 : 24,
|
|
535
|
+
gap: d ? 0 : 24,
|
|
536
|
+
position: "relative",
|
|
537
|
+
transform: "rotate(-180deg)",
|
|
538
|
+
writingMode: "vertical-rl"
|
|
539
|
+
},
|
|
540
|
+
children: [
|
|
541
|
+
/* @__PURE__ */ e(ve, { bold: !0, color: "secondary.main", variant: f, children: u === V.Stocks ? t.market_capitalization : t.credit_quality }),
|
|
542
|
+
/* @__PURE__ */ e(
|
|
543
|
+
_,
|
|
544
|
+
{
|
|
545
|
+
sx: {
|
|
546
|
+
flexDirection: "row",
|
|
547
|
+
height: d ? 224 : 308,
|
|
548
|
+
justifyContent: "space-around"
|
|
549
|
+
},
|
|
550
|
+
children: b.map((i) => /* @__PURE__ */ e(
|
|
551
|
+
r,
|
|
552
|
+
{
|
|
553
|
+
sx: {
|
|
554
|
+
color: "secondary.main",
|
|
555
|
+
pl: 12,
|
|
556
|
+
pr: d ? 4 : 0
|
|
557
|
+
},
|
|
558
|
+
variant: f,
|
|
559
|
+
children: i
|
|
560
|
+
},
|
|
561
|
+
i
|
|
562
|
+
))
|
|
563
|
+
}
|
|
564
|
+
)
|
|
565
|
+
]
|
|
566
|
+
}
|
|
567
|
+
),
|
|
568
|
+
/* @__PURE__ */ o(_, { sx: { gap: 4 }, children: [
|
|
569
|
+
/* @__PURE__ */ o(
|
|
570
|
+
_,
|
|
571
|
+
{
|
|
572
|
+
sx: {
|
|
573
|
+
alignSelf: v ? "start" : "center",
|
|
574
|
+
flexDirection: "row",
|
|
575
|
+
gap: 8,
|
|
576
|
+
pb: 12
|
|
577
|
+
},
|
|
578
|
+
children: [
|
|
579
|
+
/* @__PURE__ */ e(r, { bold: !0, children: t.invest_analysis }),
|
|
580
|
+
/* @__PURE__ */ e(
|
|
581
|
+
lt,
|
|
582
|
+
{
|
|
583
|
+
tooltip_info_body: t.tooltip_info_body,
|
|
584
|
+
tooltip_info_title: t.tooltip_info_title
|
|
585
|
+
}
|
|
586
|
+
)
|
|
587
|
+
]
|
|
588
|
+
}
|
|
589
|
+
),
|
|
590
|
+
h.map((i, n, g) => /* @__PURE__ */ e(_, { sx: { flexDirection: "row", gap: 4 }, children: i.map((C, S) => {
|
|
591
|
+
const L = n === 0, W = n === g.length - 1, A = S === 0, G = S === i.length - 1, N = Number(C.replace("%", "")) >= 25;
|
|
592
|
+
let T = "grey.200", j = "grey.900";
|
|
593
|
+
return m ? (T = N ? "grey.200" : "grey.700", j = N ? "grey.900" : "common.white") : (T = N ? "grey.700" : "grey.200", j = N ? "common.white" : "grey.900"), /* @__PURE__ */ e(
|
|
594
|
+
_,
|
|
595
|
+
{
|
|
596
|
+
sx: {
|
|
597
|
+
...{
|
|
598
|
+
borderBottomLeftRadius: W && A ? 4 : 0,
|
|
599
|
+
borderBottomRightRadius: W && G ? 4 : 0,
|
|
600
|
+
borderTopLeftRadius: L && A ? 4 : 0,
|
|
601
|
+
borderTopRightRadius: L && G ? 4 : 0
|
|
602
|
+
},
|
|
603
|
+
alignItems: "center",
|
|
604
|
+
bgcolor: T,
|
|
605
|
+
height: y,
|
|
606
|
+
justifyContent: "center",
|
|
607
|
+
width: y
|
|
608
|
+
},
|
|
609
|
+
children: /* @__PURE__ */ e(
|
|
610
|
+
r,
|
|
611
|
+
{
|
|
612
|
+
sx: {
|
|
613
|
+
color: j,
|
|
614
|
+
fontWeight: d ? 600 : 700
|
|
615
|
+
},
|
|
616
|
+
variant: d ? "Body" : "H3",
|
|
617
|
+
children: C
|
|
618
|
+
}
|
|
619
|
+
)
|
|
620
|
+
},
|
|
621
|
+
S
|
|
622
|
+
);
|
|
623
|
+
}) }, n)),
|
|
624
|
+
/* @__PURE__ */ e(_, { sx: { alignSelf: "center", flexDirection: "row", pt: 12 }, children: s.map((i) => /* @__PURE__ */ e(_, { sx: { alignItems: "center", width: y }, children: /* @__PURE__ */ e(r, { color: "secondary.main", variant: f, children: i }) }, i)) }),
|
|
625
|
+
/* @__PURE__ */ e(
|
|
626
|
+
r,
|
|
627
|
+
{
|
|
628
|
+
bold: !0,
|
|
629
|
+
sx: { color: "secondary.main", pt: d ? 4 : 24, textAlign: "center" },
|
|
630
|
+
variant: f,
|
|
631
|
+
children: u === V.Stocks ? t.valuation : t.duration
|
|
632
|
+
}
|
|
633
|
+
)
|
|
634
|
+
] })
|
|
635
|
+
]
|
|
636
|
+
}
|
|
637
|
+
),
|
|
638
|
+
/* @__PURE__ */ e(
|
|
639
|
+
at,
|
|
640
|
+
{
|
|
641
|
+
analysisDetails: c,
|
|
642
|
+
analysisType: u,
|
|
643
|
+
copy: {
|
|
644
|
+
empty_data: t.empty_data,
|
|
645
|
+
equities: t.equities,
|
|
646
|
+
bonds: t.bonds
|
|
647
|
+
},
|
|
648
|
+
setAnalysisType: x
|
|
649
|
+
}
|
|
650
|
+
)
|
|
651
|
+
]
|
|
652
|
+
}
|
|
653
|
+
);
|
|
654
|
+
}, dt = P(ct), mt = ({
|
|
655
|
+
accountHoldingsData: t,
|
|
656
|
+
currentEditedCostBasis: h,
|
|
657
|
+
editingHoldingId: c,
|
|
658
|
+
handleCostBasisBlur: u,
|
|
659
|
+
handleCostBasisClick: x,
|
|
660
|
+
handleCostBasisChange: v,
|
|
661
|
+
handleCostBasisKeyDown: d,
|
|
662
|
+
isOpen: l,
|
|
663
|
+
onClose: m
|
|
664
|
+
}) => {
|
|
665
|
+
const { investments: y } = E(), [b, s] = B.useState({}), f = (i) => (n, g) => {
|
|
666
|
+
s((C) => ({
|
|
667
|
+
...C,
|
|
668
|
+
[i]: g
|
|
669
|
+
}));
|
|
670
|
+
};
|
|
671
|
+
return /* @__PURE__ */ o(
|
|
672
|
+
$e,
|
|
673
|
+
{
|
|
674
|
+
ariaLabelClose: y.overview.close_investment_drawer,
|
|
675
|
+
isOpen: l,
|
|
676
|
+
onClose: m,
|
|
677
|
+
title: y.overview.investment_details,
|
|
678
|
+
children: [
|
|
679
|
+
/* @__PURE__ */ o(p, { sx: { gap: 8, p: 24 }, children: [
|
|
680
|
+
/* @__PURE__ */ e(
|
|
681
|
+
ne,
|
|
682
|
+
{
|
|
683
|
+
alt: t.accounts.institutionName || "",
|
|
684
|
+
institutionGuid: t.accounts.institution_guid || "",
|
|
685
|
+
size: 64
|
|
686
|
+
}
|
|
687
|
+
),
|
|
688
|
+
/* @__PURE__ */ e(r, { sx: { color: "text.primary" }, variant: "Small", children: t.accounts.memberName }),
|
|
689
|
+
/* @__PURE__ */ e(r, { sx: { color: "text.primary" }, variant: "H2", children: t.accounts.user_name || t.accounts.name }),
|
|
690
|
+
/* @__PURE__ */ o(p, { sx: { alignItems: "center", flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
691
|
+
/* @__PURE__ */ e(r, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: y.overview.current_balance }),
|
|
692
|
+
/* @__PURE__ */ e(r, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: t.accounts.balance?.toLocaleString("en-US", {
|
|
693
|
+
currency: "USD",
|
|
694
|
+
maximumFractionDigits: 2,
|
|
695
|
+
minimumFractionDigits: 2,
|
|
696
|
+
style: "currency"
|
|
697
|
+
}) })
|
|
698
|
+
] })
|
|
699
|
+
] }),
|
|
700
|
+
/* @__PURE__ */ o(
|
|
701
|
+
p,
|
|
702
|
+
{
|
|
703
|
+
sx: {
|
|
704
|
+
bgcolor: "background.default",
|
|
705
|
+
flexDirection: "row",
|
|
706
|
+
justifyContent: "space-between",
|
|
707
|
+
px: 24,
|
|
708
|
+
py: 10
|
|
709
|
+
},
|
|
710
|
+
children: [
|
|
711
|
+
/* @__PURE__ */ e(r, { sx: { color: "text.primary", fontWeight: 700 }, variant: "XSmall", children: y.overview.holding }),
|
|
712
|
+
/* @__PURE__ */ e(r, { sx: { color: "text.primary", fontWeight: 700 }, variant: "XSmall", children: y.overview.market_value })
|
|
713
|
+
]
|
|
714
|
+
}
|
|
715
|
+
),
|
|
716
|
+
t.holdings?.map((i, n) => {
|
|
717
|
+
const g = c === i.id;
|
|
718
|
+
return /* @__PURE__ */ o(
|
|
719
|
+
_e,
|
|
720
|
+
{
|
|
721
|
+
disableGutters: !0,
|
|
722
|
+
expanded: b[i.id] === !0,
|
|
723
|
+
onChange: i ? f(i?.id) : () => {
|
|
724
|
+
},
|
|
725
|
+
sx: {
|
|
726
|
+
":before": n === 0 ? { opacity: 0 } : {},
|
|
727
|
+
".MuiAccordionDetails-root": { p: 0 }
|
|
728
|
+
},
|
|
729
|
+
children: [
|
|
730
|
+
/* @__PURE__ */ e(
|
|
731
|
+
Ce,
|
|
732
|
+
{
|
|
733
|
+
"aria-controls": "panel1a-content",
|
|
734
|
+
id: "panel1a-header",
|
|
735
|
+
sx: [
|
|
736
|
+
{ height: 64 },
|
|
737
|
+
b[i.id] && n > 0 && {
|
|
738
|
+
borderTop: 1,
|
|
739
|
+
borderColor: "border.main"
|
|
740
|
+
}
|
|
741
|
+
],
|
|
742
|
+
children: /* @__PURE__ */ o(p, { sx: { flexDirection: "row", width: "100%" }, children: [
|
|
743
|
+
/* @__PURE__ */ e("div", { style: { width: 24 } }),
|
|
744
|
+
/* @__PURE__ */ o(
|
|
745
|
+
p,
|
|
746
|
+
{
|
|
747
|
+
sx: [
|
|
748
|
+
{
|
|
749
|
+
alignItems: "center",
|
|
750
|
+
flexDirection: "row",
|
|
751
|
+
justifyContent: "space-between",
|
|
752
|
+
pr: 24,
|
|
753
|
+
py: 14,
|
|
754
|
+
width: "100%"
|
|
755
|
+
},
|
|
756
|
+
b[i.id] && {
|
|
757
|
+
borderBottom: 1,
|
|
758
|
+
borderColor: "border.main"
|
|
759
|
+
}
|
|
760
|
+
],
|
|
761
|
+
children: [
|
|
762
|
+
/* @__PURE__ */ e(
|
|
763
|
+
p,
|
|
764
|
+
{
|
|
765
|
+
sx: {
|
|
766
|
+
alignItems: "center",
|
|
767
|
+
flexDirection: "row",
|
|
768
|
+
gap: 12
|
|
769
|
+
},
|
|
770
|
+
children: /* @__PURE__ */ o(p, { sx: { overflow: "hidden", width: 98 }, children: [
|
|
771
|
+
/* @__PURE__ */ e(r, { sx: { fontWeight: 600 }, variant: "Body", children: i.holding }),
|
|
772
|
+
/* @__PURE__ */ e(r, { variant: "XSmall", children: i.description })
|
|
773
|
+
] })
|
|
774
|
+
}
|
|
775
|
+
),
|
|
776
|
+
/* @__PURE__ */ o(
|
|
777
|
+
p,
|
|
778
|
+
{
|
|
779
|
+
sx: {
|
|
780
|
+
alignItems: "center",
|
|
781
|
+
flex: 1,
|
|
782
|
+
flexDirection: "row",
|
|
783
|
+
gap: 12,
|
|
784
|
+
justifyContent: "flex-end"
|
|
785
|
+
},
|
|
786
|
+
children: [
|
|
787
|
+
/* @__PURE__ */ o(p, { children: [
|
|
788
|
+
/* @__PURE__ */ e(r, { sx: { fontWeight: 600, textAlign: "right" }, variant: "Body", children: i.marketValue?.toLocaleString("en-US", {
|
|
789
|
+
currency: "USD",
|
|
790
|
+
maximumFractionDigits: 2,
|
|
791
|
+
minimumFractionDigits: 2,
|
|
792
|
+
style: "currency"
|
|
793
|
+
}) }),
|
|
794
|
+
/* @__PURE__ */ o(p, { sx: { alignItems: "center", gap: 2, flexDirection: "row" }, children: [
|
|
795
|
+
i.totalGainLoss !== 0 && /* @__PURE__ */ e(
|
|
796
|
+
k,
|
|
797
|
+
{
|
|
798
|
+
name: i.totalGainLoss >= 0 ? "trending_up" : "trending_down",
|
|
799
|
+
size: 12,
|
|
800
|
+
sx: {
|
|
801
|
+
verticalAlign: "middle",
|
|
802
|
+
mr: 1,
|
|
803
|
+
color: i.totalGainLoss >= 0 ? "success.main" : "grey.700"
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
),
|
|
807
|
+
/* @__PURE__ */ e(
|
|
808
|
+
r,
|
|
809
|
+
{
|
|
810
|
+
sx: {
|
|
811
|
+
color: i.totalGainLoss <= 0 ? "grey.700" : "success.main",
|
|
812
|
+
fontWeight: i.totalGainLoss <= 0 ? 400 : 700
|
|
813
|
+
},
|
|
814
|
+
variant: "XSmall",
|
|
815
|
+
children: i.costBasis ? `${(i.totalGainLoss / i.costBasis * 100).toFixed(2)}%` : "0.00%"
|
|
816
|
+
}
|
|
817
|
+
),
|
|
818
|
+
/* @__PURE__ */ e(r, { sx: { color: "grey.700" }, variant: "XSmall", children: "|" }),
|
|
819
|
+
/* @__PURE__ */ e(
|
|
820
|
+
r,
|
|
821
|
+
{
|
|
822
|
+
sx: {
|
|
823
|
+
color: i.totalGainLoss <= 0 ? "grey.700" : "success.main",
|
|
824
|
+
fontWeight: i.totalGainLoss <= 0 ? 400 : 700
|
|
825
|
+
},
|
|
826
|
+
variant: "XSmall",
|
|
827
|
+
children: Math.abs(i.totalGainLoss).toLocaleString("en-US", {
|
|
828
|
+
currency: "USD",
|
|
829
|
+
maximumFractionDigits: 2,
|
|
830
|
+
minimumFractionDigits: 2,
|
|
831
|
+
style: "currency"
|
|
832
|
+
})
|
|
833
|
+
}
|
|
834
|
+
)
|
|
835
|
+
] })
|
|
836
|
+
] }),
|
|
837
|
+
/* @__PURE__ */ e(
|
|
838
|
+
k,
|
|
839
|
+
{
|
|
840
|
+
name: b[i.id] ? "expand_less" : "expand_more",
|
|
841
|
+
size: 20
|
|
842
|
+
}
|
|
843
|
+
)
|
|
844
|
+
]
|
|
845
|
+
}
|
|
846
|
+
)
|
|
847
|
+
]
|
|
848
|
+
}
|
|
849
|
+
)
|
|
850
|
+
] })
|
|
851
|
+
}
|
|
852
|
+
),
|
|
853
|
+
/* @__PURE__ */ e(we, { children: /* @__PURE__ */ o(
|
|
854
|
+
p,
|
|
855
|
+
{
|
|
856
|
+
sx: {
|
|
857
|
+
alignItems: "center",
|
|
858
|
+
bgcolor: "background.default",
|
|
859
|
+
flexDirection: "row",
|
|
860
|
+
pl: 24
|
|
861
|
+
},
|
|
862
|
+
children: [
|
|
863
|
+
/* @__PURE__ */ e(p, { sx: { width: 32 } }),
|
|
864
|
+
/* @__PURE__ */ o(p, { sx: { flex: 1 }, children: [
|
|
865
|
+
/* @__PURE__ */ o(
|
|
866
|
+
p,
|
|
867
|
+
{
|
|
868
|
+
sx: {
|
|
869
|
+
alignItems: "center",
|
|
870
|
+
borderBottom: 1,
|
|
871
|
+
borderColor: "border.main",
|
|
872
|
+
flexDirection: "row",
|
|
873
|
+
height: 48,
|
|
874
|
+
justifyContent: "space-between",
|
|
875
|
+
pr: 24
|
|
876
|
+
},
|
|
877
|
+
children: [
|
|
878
|
+
/* @__PURE__ */ e(r, { sx: { color: "text.primary" }, variant: "Body", children: y.overview.quantity }),
|
|
879
|
+
/* @__PURE__ */ e(r, { sx: { color: "text.primary" }, variant: "Small", children: i.qty })
|
|
880
|
+
]
|
|
881
|
+
}
|
|
882
|
+
),
|
|
883
|
+
/* @__PURE__ */ o(
|
|
884
|
+
p,
|
|
885
|
+
{
|
|
886
|
+
sx: {
|
|
887
|
+
alignItems: "center",
|
|
888
|
+
flexDirection: "row",
|
|
889
|
+
height: 48,
|
|
890
|
+
justifyContent: "space-between",
|
|
891
|
+
pr: 24
|
|
892
|
+
},
|
|
893
|
+
children: [
|
|
894
|
+
/* @__PURE__ */ e(r, { sx: { color: "text.primary" }, variant: "Body", children: y.overview.cost_basis_header }),
|
|
895
|
+
/* @__PURE__ */ o(
|
|
896
|
+
p,
|
|
897
|
+
{
|
|
898
|
+
direction: "row",
|
|
899
|
+
sx: {
|
|
900
|
+
alignItems: "center",
|
|
901
|
+
gap: 4
|
|
902
|
+
},
|
|
903
|
+
children: [
|
|
904
|
+
g ? /* @__PURE__ */ e(
|
|
905
|
+
Se,
|
|
906
|
+
{
|
|
907
|
+
autoFocus: !0,
|
|
908
|
+
onBlur: () => u(i.id),
|
|
909
|
+
onChange: v,
|
|
910
|
+
onKeyDown: (C) => d(C, i.id),
|
|
911
|
+
size: "small",
|
|
912
|
+
sx: {
|
|
913
|
+
fontSize: 14,
|
|
914
|
+
width: 58,
|
|
915
|
+
"& .MuiInputBase-input": {
|
|
916
|
+
padding: "4px 0",
|
|
917
|
+
textAlign: "center",
|
|
918
|
+
fontWeight: 600,
|
|
919
|
+
color: "text.primary"
|
|
920
|
+
},
|
|
921
|
+
"& .MuiOutlinedInput-notchedOutline": {
|
|
922
|
+
border: "none"
|
|
923
|
+
}
|
|
924
|
+
},
|
|
925
|
+
value: h
|
|
926
|
+
}
|
|
927
|
+
) : /* @__PURE__ */ e(r, { sx: { fontSize: 14, width: 58 }, variant: "Small", children: i.costBasis?.toLocaleString("en-US", {
|
|
928
|
+
currency: "USD",
|
|
929
|
+
maximumFractionDigits: 2,
|
|
930
|
+
minimumFractionDigits: 2,
|
|
931
|
+
style: "currency"
|
|
932
|
+
}) }),
|
|
933
|
+
/* @__PURE__ */ e(
|
|
934
|
+
ce,
|
|
935
|
+
{
|
|
936
|
+
onClick: () => x(i.id, i.costBasis),
|
|
937
|
+
sx: { minWidth: 16, minHeight: 16 },
|
|
938
|
+
children: /* @__PURE__ */ e(k, { name: "stylus", size: 16, sx: { color: "grey.700" } })
|
|
939
|
+
}
|
|
940
|
+
)
|
|
941
|
+
]
|
|
942
|
+
}
|
|
943
|
+
)
|
|
944
|
+
]
|
|
945
|
+
}
|
|
946
|
+
)
|
|
947
|
+
] })
|
|
948
|
+
]
|
|
949
|
+
}
|
|
950
|
+
) })
|
|
951
|
+
]
|
|
952
|
+
},
|
|
953
|
+
i.id
|
|
954
|
+
);
|
|
955
|
+
})
|
|
956
|
+
]
|
|
957
|
+
}
|
|
958
|
+
);
|
|
959
|
+
}, ut = P(mt), q = (t) => /* @__PURE__ */ o(Ke, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
|
|
960
|
+
/* @__PURE__ */ e(r, { sx: { color: "text.primary", fontWeight: 600, fontSize: 14 }, variant: "Small", children: t.colDef.headerName }),
|
|
961
|
+
/* @__PURE__ */ e(k, { name: "expand_all", size: 12 })
|
|
962
|
+
] }), ht = ({
|
|
963
|
+
data: t,
|
|
964
|
+
editingHoldingId: h,
|
|
965
|
+
currentEditedCostBasis: c,
|
|
966
|
+
handleCostBasisClick: u,
|
|
967
|
+
handleCostBasisChange: x,
|
|
968
|
+
handleCostBasisKeyDown: v,
|
|
969
|
+
handleCostBasisBlur: d
|
|
970
|
+
}) => {
|
|
971
|
+
const { investments: l } = E(), y = le().palette.mode === "dark", b = "success.main", s = y ? "grey.300" : "grey.700", f = (n, g = "lesserThan") => g === "greaterThan" ? n >= 0 ? b : s : n <= 0 ? s : b, i = [
|
|
972
|
+
{
|
|
973
|
+
field: "qty",
|
|
974
|
+
headerName: l.overview.qty_header,
|
|
975
|
+
sortable: !1,
|
|
976
|
+
width: 48,
|
|
977
|
+
align: "center",
|
|
978
|
+
headerAlign: "center"
|
|
979
|
+
},
|
|
980
|
+
{
|
|
981
|
+
field: "holding",
|
|
982
|
+
headerName: l.overview.holding_header,
|
|
983
|
+
flex: 1,
|
|
984
|
+
renderHeader: q,
|
|
985
|
+
renderCell: (n) => /* @__PURE__ */ e(_, { sx: { alignItems: "center", gap: 16, flexDirection: "row" }, children: /* @__PURE__ */ o(_, { children: [
|
|
986
|
+
/* @__PURE__ */ e(r, { sx: { fontWeight: 700 }, children: n.row.holding }),
|
|
987
|
+
/* @__PURE__ */ e(r, { sx: { color: "text.secondary", fontWeight: 400 }, variant: "tiny", children: n.row.description })
|
|
988
|
+
] }) })
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
field: "costBasis",
|
|
992
|
+
headerName: l.overview.cost_basis_header,
|
|
993
|
+
width: 132,
|
|
994
|
+
renderHeader: q,
|
|
995
|
+
renderCell: (n) => {
|
|
996
|
+
const g = h === n.row.id;
|
|
997
|
+
return /* @__PURE__ */ o(_, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
|
|
998
|
+
g ? /* @__PURE__ */ e(
|
|
999
|
+
Se,
|
|
1000
|
+
{
|
|
1001
|
+
autoFocus: !0,
|
|
1002
|
+
onBlur: () => d(n.row.id),
|
|
1003
|
+
onChange: x,
|
|
1004
|
+
onKeyDown: (C) => v(C, n.row.id),
|
|
1005
|
+
size: "small",
|
|
1006
|
+
sx: {
|
|
1007
|
+
fontSize: 14,
|
|
1008
|
+
width: 57,
|
|
1009
|
+
"& .MuiInputBase-input": {
|
|
1010
|
+
padding: "4px 0",
|
|
1011
|
+
textAlign: "center",
|
|
1012
|
+
fontWeight: 600,
|
|
1013
|
+
color: "text.primary"
|
|
1014
|
+
},
|
|
1015
|
+
"& .MuiOutlinedInput-notchedOutline": {
|
|
1016
|
+
border: "none"
|
|
1017
|
+
}
|
|
1018
|
+
},
|
|
1019
|
+
value: c
|
|
1020
|
+
}
|
|
1021
|
+
) : /* @__PURE__ */ e(r, { sx: { fontSize: 14, width: 57 }, variant: "Small", children: n.value?.toLocaleString("en-US", {
|
|
1022
|
+
currency: "USD",
|
|
1023
|
+
maximumFractionDigits: 2,
|
|
1024
|
+
minimumFractionDigits: 2,
|
|
1025
|
+
style: "currency"
|
|
1026
|
+
}) }),
|
|
1027
|
+
/* @__PURE__ */ e(
|
|
1028
|
+
ce,
|
|
1029
|
+
{
|
|
1030
|
+
onClick: () => u(n.row.id, n.row.costBasis),
|
|
1031
|
+
sx: { minWidth: 12, minHeight: 12 },
|
|
1032
|
+
children: /* @__PURE__ */ e(k, { name: "stylus", size: 12, sx: { color: "grey.700" } })
|
|
1033
|
+
}
|
|
1034
|
+
)
|
|
1035
|
+
] });
|
|
1036
|
+
},
|
|
1037
|
+
align: "center",
|
|
1038
|
+
headerAlign: "center"
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
field: "totalGainLoss",
|
|
1042
|
+
headerName: l.overview.total_gain_loss_header,
|
|
1043
|
+
width: 196,
|
|
1044
|
+
renderHeader: q,
|
|
1045
|
+
renderCell: (n) => {
|
|
1046
|
+
const g = n.row.costBasis, C = g ? n.row.totalGainLoss / g * 100 : 0;
|
|
1047
|
+
return /* @__PURE__ */ o(_, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
|
|
1048
|
+
n.value !== 0 && /* @__PURE__ */ e(
|
|
1049
|
+
k,
|
|
1050
|
+
{
|
|
1051
|
+
name: n.value > 0 ? "trending_up" : "trending_down",
|
|
1052
|
+
size: 16,
|
|
1053
|
+
sx: {
|
|
1054
|
+
color: f(n.value),
|
|
1055
|
+
mr: 1,
|
|
1056
|
+
verticalAlign: "middle"
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
),
|
|
1060
|
+
/* @__PURE__ */ e(
|
|
1061
|
+
r,
|
|
1062
|
+
{
|
|
1063
|
+
sx: {
|
|
1064
|
+
color: f(n.value),
|
|
1065
|
+
fontWeight: n.value > 0 ? 700 : 400
|
|
1066
|
+
},
|
|
1067
|
+
variant: "Small",
|
|
1068
|
+
children: g ? `${C.toFixed(2)}%` : "0.00%"
|
|
1069
|
+
}
|
|
1070
|
+
),
|
|
1071
|
+
/* @__PURE__ */ e(r, { sx: { color: "text.secondary" }, variant: "XSmall", children: "|" }),
|
|
1072
|
+
/* @__PURE__ */ e(
|
|
1073
|
+
r,
|
|
1074
|
+
{
|
|
1075
|
+
sx: {
|
|
1076
|
+
color: f(n.value),
|
|
1077
|
+
fontWeight: n.value > 0 ? 700 : 400
|
|
1078
|
+
},
|
|
1079
|
+
variant: "Small",
|
|
1080
|
+
children: Math.abs(n.value).toLocaleString("en-US", {
|
|
1081
|
+
currency: "USD",
|
|
1082
|
+
maximumFractionDigits: 2,
|
|
1083
|
+
minimumFractionDigits: 2,
|
|
1084
|
+
style: "currency"
|
|
1085
|
+
})
|
|
1086
|
+
}
|
|
1087
|
+
)
|
|
1088
|
+
] });
|
|
1089
|
+
},
|
|
1090
|
+
align: "right",
|
|
1091
|
+
headerAlign: "right",
|
|
1092
|
+
sortable: !1
|
|
1093
|
+
},
|
|
1094
|
+
{
|
|
1095
|
+
field: "marketValue",
|
|
1096
|
+
headerName: l.overview.market_value_header,
|
|
1097
|
+
width: 132,
|
|
1098
|
+
renderHeader: q,
|
|
1099
|
+
renderCell: (n) => /* @__PURE__ */ e(r, { sx: { fontWeight: 700 }, variant: "Small", children: n.value?.toLocaleString("en-US", {
|
|
1100
|
+
currency: "USD",
|
|
1101
|
+
maximumFractionDigits: 2,
|
|
1102
|
+
minimumFractionDigits: 2,
|
|
1103
|
+
style: "currency"
|
|
1104
|
+
}) }),
|
|
1105
|
+
align: "right",
|
|
1106
|
+
headerAlign: "right"
|
|
1107
|
+
}
|
|
1108
|
+
];
|
|
1109
|
+
return /* @__PURE__ */ e(
|
|
1110
|
+
ie,
|
|
1111
|
+
{
|
|
1112
|
+
sx: {
|
|
1113
|
+
boxShadow: "none",
|
|
1114
|
+
width: "100%"
|
|
1115
|
+
},
|
|
1116
|
+
children: /* @__PURE__ */ e(
|
|
1117
|
+
qe,
|
|
1118
|
+
{
|
|
1119
|
+
columns: i,
|
|
1120
|
+
disableColumnFilter: !0,
|
|
1121
|
+
disableColumnMenu: !0,
|
|
1122
|
+
disableRowSelectionOnClick: !0,
|
|
1123
|
+
hideFooter: !0,
|
|
1124
|
+
rows: t,
|
|
1125
|
+
slotProps: { baseIconButton: { sx: { display: "none" } } }
|
|
1126
|
+
}
|
|
1127
|
+
)
|
|
1128
|
+
}
|
|
1129
|
+
);
|
|
1130
|
+
}, gt = () => {
|
|
1131
|
+
const { isMobile: t } = U(), [h, c] = O({}), [u, x] = O(!1), { selectedAccountGuids: v } = Q(), { visibleHoldings: d, updateHoldings: l } = H(), [m, y] = B.useState(!1), [b, s] = O({
|
|
1132
|
+
accounts: [],
|
|
1133
|
+
holdings: []
|
|
1134
|
+
}), { accounts: f, investments: i } = E(), { isCopyLoaded: n } = Q(), [g, C] = O(null), [S, L] = O(""), A = le().palette.mode === "dark", G = A ? "#0AC295" : "#09A57F", N = A ? "grey.300" : "grey.700", T = (a, w = "lesserThan") => w === "greaterThan" ? a >= 0 ? G : N : a <= 0 ? N : G, j = (a, w) => {
|
|
1135
|
+
C(a), L(w.toFixed(2));
|
|
1136
|
+
}, J = (a) => {
|
|
1137
|
+
const w = a.target.value;
|
|
1138
|
+
/^\d*\.?\d*$/.test(w) && L(w);
|
|
1139
|
+
}, me = (a, w) => {
|
|
1140
|
+
a.key === "Enter" ? Z(w) : a.key === "Escape" && C(null);
|
|
1141
|
+
}, Z = (a) => {
|
|
1142
|
+
const w = d.find(({ guid: F }) => F === a);
|
|
1143
|
+
if (!w) return;
|
|
1144
|
+
const M = Number(S);
|
|
1145
|
+
if (l({ ...w, cost_basis: M }), t) {
|
|
1146
|
+
const F = b.holdings.map(
|
|
1147
|
+
(D) => D.id === a ? { ...D, costBasis: M } : D
|
|
1148
|
+
);
|
|
1149
|
+
s((D) => ({
|
|
1150
|
+
...D,
|
|
1151
|
+
holdings: F
|
|
1152
|
+
}));
|
|
1153
|
+
}
|
|
1154
|
+
C(null);
|
|
1155
|
+
}, Le = (a) => (w, M) => {
|
|
1156
|
+
c((F) => ({
|
|
1157
|
+
...F,
|
|
1158
|
+
[a]: M
|
|
1159
|
+
}));
|
|
1160
|
+
}, { visibleHoldings: ue } = H(), { visibleInvestmentAccounts: Ie } = se(), X = Ie.filter(
|
|
1161
|
+
({ guid: a }) => v.includes(a)
|
|
1162
|
+
), Ae = X.reduce((a, w) => a + (w.balance || 0), 0), Be = X.map(({ guid: a }) => a), $ = ue.filter(
|
|
1163
|
+
({ account_guid: a }) => Be.includes(a)
|
|
1164
|
+
).reduce((a, w) => {
|
|
1165
|
+
const M = w.market_value ? w.market_value - (w.cost_basis || 0) : 0;
|
|
1166
|
+
return a + M;
|
|
1167
|
+
}, 0), Te = () => {
|
|
1168
|
+
x(!1);
|
|
1169
|
+
};
|
|
1170
|
+
return n ? /* @__PURE__ */ o(p, { sx: { alignItems: "center", gap: 48, pt: 48, width: "100%" }, children: [
|
|
1171
|
+
!!X.length && /* @__PURE__ */ o(p, { sx: { alignItems: "center" }, children: [
|
|
1172
|
+
/* @__PURE__ */ e(r, { sx: { color: "text.secondary" }, children: i.overview.total_portfolio }),
|
|
1173
|
+
/* @__PURE__ */ e(fe, { children: Ae.toLocaleString("en-US", {
|
|
1174
|
+
currency: "USD",
|
|
1175
|
+
maximumFractionDigits: 2,
|
|
1176
|
+
minimumFractionDigits: 2,
|
|
1177
|
+
style: "currency"
|
|
1178
|
+
}) }),
|
|
1179
|
+
/* @__PURE__ */ o(p, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
|
|
1180
|
+
/* @__PURE__ */ e(
|
|
1181
|
+
k,
|
|
1182
|
+
{
|
|
1183
|
+
name: $ >= 0 ? "trending_up" : "trending_down",
|
|
1184
|
+
size: 20,
|
|
1185
|
+
sx: { color: T($, "greaterThan") }
|
|
1186
|
+
}
|
|
1187
|
+
),
|
|
1188
|
+
/* @__PURE__ */ e(
|
|
1189
|
+
r,
|
|
1190
|
+
{
|
|
1191
|
+
sx: { color: T($, "greaterThan"), fontWeight: 700 },
|
|
1192
|
+
variant: "Small",
|
|
1193
|
+
children: $.toLocaleString("en-US", {
|
|
1194
|
+
currency: "USD",
|
|
1195
|
+
maximumFractionDigits: 2,
|
|
1196
|
+
minimumFractionDigits: 2,
|
|
1197
|
+
style: "currency"
|
|
1198
|
+
})
|
|
1199
|
+
}
|
|
1200
|
+
)
|
|
1201
|
+
] })
|
|
1202
|
+
] }),
|
|
1203
|
+
X.map((a) => {
|
|
1204
|
+
const w = ue.filter((I) => I.account_guid === a.guid).map((I) => ({
|
|
1205
|
+
id: I.guid,
|
|
1206
|
+
qty: I.shares || 0,
|
|
1207
|
+
holding: I.symbol || I.description || "Unknown",
|
|
1208
|
+
costBasis: I.cost_basis || 0,
|
|
1209
|
+
totalGainLoss: I.market_value ? I.market_value - (I.cost_basis || 0) : 0,
|
|
1210
|
+
marketValue: I.market_value || 0,
|
|
1211
|
+
description: I.description || ""
|
|
1212
|
+
})), M = w.length > 0, F = a.balance, D = w.reduce(
|
|
1213
|
+
(I, Fe) => Fe.totalGainLoss + I,
|
|
1214
|
+
0
|
|
1215
|
+
), he = F ? D / F * 100 : 0;
|
|
1216
|
+
if (t)
|
|
1217
|
+
return /* @__PURE__ */ e(
|
|
1218
|
+
ie,
|
|
1219
|
+
{
|
|
1220
|
+
onClick: w.length ? () => {
|
|
1221
|
+
x(!0), s({
|
|
1222
|
+
holdings: w,
|
|
1223
|
+
accounts: a
|
|
1224
|
+
});
|
|
1225
|
+
} : void 0,
|
|
1226
|
+
sx: {
|
|
1227
|
+
width: "100%",
|
|
1228
|
+
overflow: "hidden"
|
|
1229
|
+
},
|
|
1230
|
+
children: /* @__PURE__ */ o(
|
|
1231
|
+
p,
|
|
1232
|
+
{
|
|
1233
|
+
sx: {
|
|
1234
|
+
border: 1,
|
|
1235
|
+
borderColor: "border.main",
|
|
1236
|
+
borderRadius: "8px",
|
|
1237
|
+
ml: 16,
|
|
1238
|
+
mr: 16,
|
|
1239
|
+
overflow: "hidden",
|
|
1240
|
+
pt: 14
|
|
1241
|
+
},
|
|
1242
|
+
children: [
|
|
1243
|
+
/* @__PURE__ */ o(
|
|
1244
|
+
p,
|
|
1245
|
+
{
|
|
1246
|
+
sx: {
|
|
1247
|
+
alignItems: "center",
|
|
1248
|
+
borderBottom: 1,
|
|
1249
|
+
borderColor: "border.main",
|
|
1250
|
+
flexDirection: "row",
|
|
1251
|
+
pb: 14,
|
|
1252
|
+
pl: 14,
|
|
1253
|
+
pr: 14
|
|
1254
|
+
},
|
|
1255
|
+
children: [
|
|
1256
|
+
/* @__PURE__ */ e(
|
|
1257
|
+
ne,
|
|
1258
|
+
{
|
|
1259
|
+
alt: a.institutionName || "",
|
|
1260
|
+
institutionGuid: a.institution_guid || "",
|
|
1261
|
+
size: 32
|
|
1262
|
+
}
|
|
1263
|
+
),
|
|
1264
|
+
/* @__PURE__ */ o(p, { sx: { overflow: "hidden", pl: 13, pr: 13 }, children: [
|
|
1265
|
+
/* @__PURE__ */ e(r, { sx: { color: "text.secondary" }, variant: "XSmall", children: a.memberName }),
|
|
1266
|
+
/* @__PURE__ */ e(r, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: a.user_name || a.name })
|
|
1267
|
+
] })
|
|
1268
|
+
]
|
|
1269
|
+
}
|
|
1270
|
+
),
|
|
1271
|
+
/* @__PURE__ */ o(
|
|
1272
|
+
p,
|
|
1273
|
+
{
|
|
1274
|
+
sx: {
|
|
1275
|
+
alignItems: "center",
|
|
1276
|
+
flexDirection: "row",
|
|
1277
|
+
justifyContent: "space-between",
|
|
1278
|
+
pb: 8,
|
|
1279
|
+
pt: 8
|
|
1280
|
+
},
|
|
1281
|
+
children: [
|
|
1282
|
+
/* @__PURE__ */ o(
|
|
1283
|
+
p,
|
|
1284
|
+
{
|
|
1285
|
+
sx: {
|
|
1286
|
+
alignItems: "center",
|
|
1287
|
+
borderRight: 1,
|
|
1288
|
+
borderColor: "border.main",
|
|
1289
|
+
flex: 1,
|
|
1290
|
+
justifyContent: "center",
|
|
1291
|
+
pb: 14,
|
|
1292
|
+
pl: 7,
|
|
1293
|
+
pr: 7,
|
|
1294
|
+
pt: 14
|
|
1295
|
+
},
|
|
1296
|
+
children: [
|
|
1297
|
+
/* @__PURE__ */ e(r, { sx: { color: "text.secondary", fontSize: 11 }, variant: "Small", children: i.overview.total_gain_Loss }),
|
|
1298
|
+
/* @__PURE__ */ o(
|
|
1299
|
+
p,
|
|
1300
|
+
{
|
|
1301
|
+
sx: {
|
|
1302
|
+
alignItems: "center",
|
|
1303
|
+
flexDirection: "row",
|
|
1304
|
+
gap: 2,
|
|
1305
|
+
justifyContent: "flex-end"
|
|
1306
|
+
},
|
|
1307
|
+
children: [
|
|
1308
|
+
D !== 0 && /* @__PURE__ */ e(
|
|
1309
|
+
k,
|
|
1310
|
+
{
|
|
1311
|
+
name: D > 0 ? "trending_up" : "trending_down",
|
|
1312
|
+
size: 20,
|
|
1313
|
+
sx: { color: T(D) }
|
|
1314
|
+
}
|
|
1315
|
+
),
|
|
1316
|
+
/* @__PURE__ */ o(
|
|
1317
|
+
r,
|
|
1318
|
+
{
|
|
1319
|
+
sx: {
|
|
1320
|
+
color: T(D),
|
|
1321
|
+
fontWeight: 600
|
|
1322
|
+
},
|
|
1323
|
+
variant: "Body",
|
|
1324
|
+
children: [
|
|
1325
|
+
he.toFixed(2),
|
|
1326
|
+
"%"
|
|
1327
|
+
]
|
|
1328
|
+
}
|
|
1329
|
+
),
|
|
1330
|
+
/* @__PURE__ */ e(r, { sx: { color: "text.secondary" }, variant: "XSmall", children: "|" }),
|
|
1331
|
+
/* @__PURE__ */ e(
|
|
1332
|
+
r,
|
|
1333
|
+
{
|
|
1334
|
+
sx: {
|
|
1335
|
+
color: T(D),
|
|
1336
|
+
fontWeight: 600
|
|
1337
|
+
},
|
|
1338
|
+
variant: "Body",
|
|
1339
|
+
children: Math.abs(D).toLocaleString("en-US", {
|
|
1340
|
+
currency: "USD",
|
|
1341
|
+
maximumFractionDigits: 2,
|
|
1342
|
+
minimumFractionDigits: 2,
|
|
1343
|
+
style: "currency"
|
|
1344
|
+
})
|
|
1345
|
+
}
|
|
1346
|
+
)
|
|
1347
|
+
]
|
|
1348
|
+
}
|
|
1349
|
+
)
|
|
1350
|
+
]
|
|
1351
|
+
}
|
|
1352
|
+
),
|
|
1353
|
+
/* @__PURE__ */ o(
|
|
1354
|
+
p,
|
|
1355
|
+
{
|
|
1356
|
+
sx: {
|
|
1357
|
+
alignItems: "center",
|
|
1358
|
+
flex: 1,
|
|
1359
|
+
justifyContent: "center",
|
|
1360
|
+
pb: 14,
|
|
1361
|
+
pl: 7,
|
|
1362
|
+
pr: 7,
|
|
1363
|
+
pt: 14
|
|
1364
|
+
},
|
|
1365
|
+
children: [
|
|
1366
|
+
/* @__PURE__ */ e(r, { sx: { color: "text.secondary" }, variant: "XSmall", children: i.overview.total_value }),
|
|
1367
|
+
/* @__PURE__ */ e(r, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: F?.toLocaleString("en-US", {
|
|
1368
|
+
currency: "USD",
|
|
1369
|
+
maximumFractionDigits: 2,
|
|
1370
|
+
minimumFractionDigits: 2,
|
|
1371
|
+
style: "currency"
|
|
1372
|
+
}) })
|
|
1373
|
+
]
|
|
1374
|
+
}
|
|
1375
|
+
)
|
|
1376
|
+
]
|
|
1377
|
+
}
|
|
1378
|
+
)
|
|
1379
|
+
]
|
|
1380
|
+
}
|
|
1381
|
+
)
|
|
1382
|
+
},
|
|
1383
|
+
a.guid
|
|
1384
|
+
);
|
|
1385
|
+
const ke = A ? "grey.700" : "grey.400", We = w.length ? "text.primary" : ke;
|
|
1386
|
+
return /* @__PURE__ */ o(
|
|
1387
|
+
_e,
|
|
1388
|
+
{
|
|
1389
|
+
expanded: h[a.guid] === !0,
|
|
1390
|
+
onChange: M ? Le(a.guid) : () => {
|
|
1391
|
+
},
|
|
1392
|
+
sx: {
|
|
1393
|
+
border: 1,
|
|
1394
|
+
borderColor: "divider",
|
|
1395
|
+
borderRadius: "4px",
|
|
1396
|
+
width: "100%"
|
|
1397
|
+
},
|
|
1398
|
+
children: [
|
|
1399
|
+
/* @__PURE__ */ o(
|
|
1400
|
+
Ce,
|
|
1401
|
+
{
|
|
1402
|
+
"aria-controls": "panel1a-content",
|
|
1403
|
+
id: "panel1a-header",
|
|
1404
|
+
sx: [
|
|
1405
|
+
h[a.guid] && {
|
|
1406
|
+
borderBottom: 1,
|
|
1407
|
+
borderColor: "border.main",
|
|
1408
|
+
maxHeight: 88
|
|
1409
|
+
}
|
|
1410
|
+
],
|
|
1411
|
+
children: [
|
|
1412
|
+
/* @__PURE__ */ o(
|
|
1413
|
+
p,
|
|
1414
|
+
{
|
|
1415
|
+
sx: {
|
|
1416
|
+
alignItems: "center",
|
|
1417
|
+
flexDirection: "row",
|
|
1418
|
+
gap: 13,
|
|
1419
|
+
p: 14,
|
|
1420
|
+
width: "100%"
|
|
1421
|
+
},
|
|
1422
|
+
children: [
|
|
1423
|
+
/* @__PURE__ */ e(k, { name: "expand_more", size: 20, sx: { color: We } }),
|
|
1424
|
+
/* @__PURE__ */ e(
|
|
1425
|
+
ne,
|
|
1426
|
+
{
|
|
1427
|
+
alt: a.institutionName || "",
|
|
1428
|
+
institutionGuid: a.institution_guid || "",
|
|
1429
|
+
size: 32
|
|
1430
|
+
}
|
|
1431
|
+
),
|
|
1432
|
+
/* @__PURE__ */ o(p, { sx: { alignItems: "flex-start" }, children: [
|
|
1433
|
+
/* @__PURE__ */ e(r, { sx: { color: "text.secondary" }, variant: "XSmall", children: a.memberName }),
|
|
1434
|
+
/* @__PURE__ */ e(r, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: a.user_name || a.name })
|
|
1435
|
+
] })
|
|
1436
|
+
]
|
|
1437
|
+
}
|
|
1438
|
+
),
|
|
1439
|
+
/* @__PURE__ */ o(p, { sx: { flexDirection: "row" }, children: [
|
|
1440
|
+
/* @__PURE__ */ o(p, { sx: { alignItems: "flex-end", pb: 14, pl: 24, pr: 24, pt: 14 }, children: [
|
|
1441
|
+
/* @__PURE__ */ e(r, { sx: { color: "text.secondary" }, variant: "XSmall", children: i.overview.total_gain_Loss }),
|
|
1442
|
+
/* @__PURE__ */ o(
|
|
1443
|
+
p,
|
|
1444
|
+
{
|
|
1445
|
+
sx: {
|
|
1446
|
+
alignItems: "center",
|
|
1447
|
+
flexDirection: "row",
|
|
1448
|
+
gap: 2,
|
|
1449
|
+
justifyContent: "flex-end"
|
|
1450
|
+
},
|
|
1451
|
+
children: [
|
|
1452
|
+
D !== 0 && /* @__PURE__ */ e(
|
|
1453
|
+
k,
|
|
1454
|
+
{
|
|
1455
|
+
name: D >= 0 ? "trending_up" : "trending_down",
|
|
1456
|
+
size: 20,
|
|
1457
|
+
sx: { color: T(D) }
|
|
1458
|
+
}
|
|
1459
|
+
),
|
|
1460
|
+
/* @__PURE__ */ o(
|
|
1461
|
+
r,
|
|
1462
|
+
{
|
|
1463
|
+
sx: {
|
|
1464
|
+
color: T(D),
|
|
1465
|
+
fontWeight: 600
|
|
1466
|
+
},
|
|
1467
|
+
variant: "Body",
|
|
1468
|
+
children: [
|
|
1469
|
+
he.toFixed(2),
|
|
1470
|
+
"%"
|
|
1471
|
+
]
|
|
1472
|
+
}
|
|
1473
|
+
),
|
|
1474
|
+
/* @__PURE__ */ e(r, { sx: { color: "text.secondary" }, variant: "XSmall", children: "|" }),
|
|
1475
|
+
/* @__PURE__ */ e(
|
|
1476
|
+
r,
|
|
1477
|
+
{
|
|
1478
|
+
sx: {
|
|
1479
|
+
color: T(D),
|
|
1480
|
+
fontWeight: 600
|
|
1481
|
+
},
|
|
1482
|
+
variant: "Body",
|
|
1483
|
+
children: Math.abs(D).toLocaleString("en-US", {
|
|
1484
|
+
currency: "USD",
|
|
1485
|
+
maximumFractionDigits: 2,
|
|
1486
|
+
minimumFractionDigits: 2,
|
|
1487
|
+
style: "currency"
|
|
1488
|
+
})
|
|
1489
|
+
}
|
|
1490
|
+
)
|
|
1491
|
+
]
|
|
1492
|
+
}
|
|
1493
|
+
)
|
|
1494
|
+
] }),
|
|
1495
|
+
/* @__PURE__ */ e(p, { sx: { alignItems: "flex-end", gap: 12, pb: 14, pl: 16, pr: 16, pt: 14 }, children: /* @__PURE__ */ o(p, { sx: { alignItems: "flex-end" }, children: [
|
|
1496
|
+
/* @__PURE__ */ e(r, { sx: { color: "text.secondary" }, variant: "XSmall", children: i.overview.total_value }),
|
|
1497
|
+
/* @__PURE__ */ e(r, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: F?.toLocaleString("en-US", {
|
|
1498
|
+
currency: "USD",
|
|
1499
|
+
maximumFractionDigits: 2,
|
|
1500
|
+
minimumFractionDigits: 2,
|
|
1501
|
+
style: "currency"
|
|
1502
|
+
}) })
|
|
1503
|
+
] }) })
|
|
1504
|
+
] })
|
|
1505
|
+
]
|
|
1506
|
+
}
|
|
1507
|
+
),
|
|
1508
|
+
/* @__PURE__ */ e(we, { sx: { bgcolor: "background.default", p: 12 }, children: /* @__PURE__ */ e(ie, { sx: { border: 1, borderColor: "border.light" }, children: /* @__PURE__ */ e(
|
|
1509
|
+
ht,
|
|
1510
|
+
{
|
|
1511
|
+
currentEditedCostBasis: S,
|
|
1512
|
+
data: w,
|
|
1513
|
+
editingHoldingId: g,
|
|
1514
|
+
handleCostBasisBlur: Z,
|
|
1515
|
+
handleCostBasisChange: J,
|
|
1516
|
+
handleCostBasisClick: j,
|
|
1517
|
+
handleCostBasisKeyDown: me
|
|
1518
|
+
}
|
|
1519
|
+
) }) })
|
|
1520
|
+
]
|
|
1521
|
+
},
|
|
1522
|
+
a.guid
|
|
1523
|
+
);
|
|
1524
|
+
}),
|
|
1525
|
+
/* @__PURE__ */ e(de, {}),
|
|
1526
|
+
/* @__PURE__ */ e(
|
|
1527
|
+
ut,
|
|
1528
|
+
{
|
|
1529
|
+
accountHoldingsData: b,
|
|
1530
|
+
currentEditedCostBasis: S,
|
|
1531
|
+
editingHoldingId: g,
|
|
1532
|
+
handleCostBasisBlur: Z,
|
|
1533
|
+
handleCostBasisChange: J,
|
|
1534
|
+
handleCostBasisClick: j,
|
|
1535
|
+
handleCostBasisKeyDown: me,
|
|
1536
|
+
isOpen: u,
|
|
1537
|
+
onClose: Te
|
|
1538
|
+
}
|
|
1539
|
+
),
|
|
1540
|
+
/* @__PURE__ */ e(
|
|
1541
|
+
ge,
|
|
1542
|
+
{
|
|
1543
|
+
onClose: () => y(!1),
|
|
1544
|
+
showConnectionsWidget: m,
|
|
1545
|
+
title: f.manage_connections
|
|
1546
|
+
}
|
|
1547
|
+
)
|
|
1548
|
+
] }) : /* @__PURE__ */ e(De, {});
|
|
1549
|
+
}, pt = P(gt), xt = ({ title: t }) => /* @__PURE__ */ e(r, { bold: !0, variant: "Body", children: t }), an = P(({ onBackClick: t, sx: h }) => {
|
|
1550
|
+
const { onEvent: c } = be(), { isMobile: u } = U(), { visibleInvestmentAccounts: x } = se(), {
|
|
1551
|
+
visibleHoldings: v,
|
|
1552
|
+
setShowConnectionsWidget: d,
|
|
1553
|
+
showConnectionsWidget: l
|
|
1554
|
+
} = H(), { investments: m, accounts: y } = E(), { isCopyLoaded: b, isInitialized: s, setSelectedAccounts: f } = Q(), [i, n] = B.useState(0), { loadHoldings: g } = H();
|
|
1555
|
+
B.useEffect(() => {
|
|
1556
|
+
f(x);
|
|
1557
|
+
}, [x]), B.useEffect(() => {
|
|
1558
|
+
s && g().finally();
|
|
1559
|
+
}, [s]);
|
|
1560
|
+
const C = () => {
|
|
1561
|
+
c(z.INVESTMENT_WIDGET_ACCOUNT_FILTER_CLICK);
|
|
1562
|
+
};
|
|
1563
|
+
if (!b || !s) return /* @__PURE__ */ e(De, {});
|
|
1564
|
+
const S = [
|
|
1565
|
+
z.INVESTMENT_WIDGET_DETAILS_CLICK,
|
|
1566
|
+
z.INVESTMENT_WIDGET_ALLOCATION_CLICK,
|
|
1567
|
+
z.INVESTMENT_WIDGET_ANALYSIS_CLICK
|
|
1568
|
+
], L = x.length === 0 && v.length === 0, W = [
|
|
1569
|
+
m.tab_overview_title,
|
|
1570
|
+
m.tab_allocation_title,
|
|
1571
|
+
m.tab_analysis_title
|
|
1572
|
+
];
|
|
1573
|
+
return /* @__PURE__ */ o(
|
|
1574
|
+
je,
|
|
1575
|
+
{
|
|
1576
|
+
accountOptions: x,
|
|
1577
|
+
onAccountsFilterClick: C,
|
|
1578
|
+
onBackClick: t,
|
|
1579
|
+
sx: h,
|
|
1580
|
+
title: m.title,
|
|
1581
|
+
children: [
|
|
1582
|
+
/* @__PURE__ */ o(_, { mx: u ? 0 : 48, my: 24, children: [
|
|
1583
|
+
/* @__PURE__ */ e(
|
|
1584
|
+
Ge,
|
|
1585
|
+
{
|
|
1586
|
+
onChange: (A, G) => {
|
|
1587
|
+
n(G), c(S[G]);
|
|
1588
|
+
},
|
|
1589
|
+
sx: { bgcolor: "background.paper" },
|
|
1590
|
+
textColor: "primary",
|
|
1591
|
+
value: L ? -1 : i,
|
|
1592
|
+
variant: "fullWidth",
|
|
1593
|
+
children: W.map((A) => /* @__PURE__ */ e(Ee, { disabled: L, label: /* @__PURE__ */ e(xt, { title: A }) }, A))
|
|
1594
|
+
}
|
|
1595
|
+
),
|
|
1596
|
+
L ? /* @__PURE__ */ e(
|
|
1597
|
+
Ye,
|
|
1598
|
+
{
|
|
1599
|
+
header: m.empty_state_header,
|
|
1600
|
+
icon: "bid_landscape",
|
|
1601
|
+
onClick: () => {
|
|
1602
|
+
d(!0), c(z.ACCOUNTS_CLICK_CONNECT);
|
|
1603
|
+
},
|
|
1604
|
+
primaryButton: m.overview.connect_accounts,
|
|
1605
|
+
subText: m.empty_state_description,
|
|
1606
|
+
sx: {
|
|
1607
|
+
width: { sm: 432 },
|
|
1608
|
+
".buttons-footer": {
|
|
1609
|
+
width: 167
|
|
1610
|
+
},
|
|
1611
|
+
".MuiTypography-h2": {
|
|
1612
|
+
mt: 20,
|
|
1613
|
+
mb: 4
|
|
1614
|
+
},
|
|
1615
|
+
px: 16
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
) : /* @__PURE__ */ o(ae, { children: [
|
|
1619
|
+
i === 0 && /* @__PURE__ */ e(pt, {}),
|
|
1620
|
+
i === 1 && /* @__PURE__ */ e(rt, {}),
|
|
1621
|
+
i === 2 && /* @__PURE__ */ e(dt, {})
|
|
1622
|
+
] })
|
|
1623
|
+
] }),
|
|
1624
|
+
/* @__PURE__ */ e(
|
|
1625
|
+
ge,
|
|
1626
|
+
{
|
|
1627
|
+
onClose: () => d(!1),
|
|
1628
|
+
showConnectionsWidget: l,
|
|
1629
|
+
title: y.manage_connections
|
|
1630
|
+
}
|
|
1631
|
+
)
|
|
1632
|
+
]
|
|
1633
|
+
}
|
|
1634
|
+
);
|
|
1635
|
+
});
|
|
2
1636
|
export {
|
|
3
|
-
|
|
1637
|
+
an as InvestmentsWidget
|
|
4
1638
|
};
|