@mx-cartographer/experiences 8.0.0-alpha.bb3 → 8.0.0-alpha.bb4

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