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

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 (203) hide show
  1. package/CHANGELOG.md +178 -1
  2. package/dist/{Account-Bxw0_4FU.mjs → Account-CvR2-dSR.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-CAM9y39M.mjs → AccountDetailsContent-CitErkuS.mjs} +89 -82
  4. package/dist/AccountDetailsHeader-BkG3MNYo.mjs +87 -0
  5. package/dist/{AccountFields-C9FlatNb.mjs → AccountFields-zCMqet85.mjs} +6 -6
  6. package/dist/{AccountListItem-JFMZROh7.mjs → AccountListItem-DHrz8Mml.mjs} +9 -9
  7. package/dist/{AccountStore-BgNOyMdp.mjs → AccountStore-LgfBcYMe.mjs} +112 -75
  8. package/dist/Accounts-Bzy1_REQ.mjs +9 -0
  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-BmZXkL0C.mjs} +2 -2
  12. package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-B-I3kajA.mjs} +23 -21
  13. package/dist/CategoryStore-CA3tS1BO.mjs +186 -0
  14. package/dist/CategoryUtil-DUM8NuGO.mjs +78 -0
  15. package/dist/{ConnectDrawer-BQNs-hjk.mjs → ConnectDrawer-BkvlItWx.mjs} +11 -11
  16. package/dist/{ConnectionsDrawer-ByGQE7D5.mjs → ConnectionsDrawer-VmuVFHbL.mjs} +5 -5
  17. package/dist/{CurrencyInput-DUsQbkXb.mjs → CurrencyInput-itK0R3wV.mjs} +2 -2
  18. package/dist/{CurrencyText-kyC1aseI.mjs → CurrencyText-Dr0EZ7bp.mjs} +1 -1
  19. package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CBdcsyuk.mjs} +3 -3
  20. package/dist/{DebtsStore-C9bblOgW.mjs → DebtsStore-Bq-aPy-5.mjs} +1 -1
  21. package/dist/{Dialog-CWW597AF.mjs → Dialog-BPTr3qHE.mjs} +2 -2
  22. package/dist/{Donut-oaQFlbit.mjs → Donut-Dmy3JTWd.mjs} +12 -12
  23. package/dist/Drawer-By9V-B5L.mjs +178 -0
  24. package/dist/{EmptyState-DA_lfRBv.mjs → EmptyState-DoxNUae-.mjs} +24 -22
  25. package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-Cglo8Mca.mjs} +3 -3
  26. package/dist/{Fetch-87LIQbEA.mjs → Fetch-DecPFeGU.mjs} +24 -22
  27. package/dist/FinstrongStore-BIrX0Xg2.mjs +451 -0
  28. package/dist/{GoalStore-D-aB35SY.mjs → GoalStore-1P19goZ7.mjs} +112 -152
  29. package/dist/{Help-B6dIcujh.mjs → Help-Ea3BlXQp.mjs} +2 -2
  30. package/dist/LineChart-KpPw1phO.mjs +580 -0
  31. package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-BxTkF6Tz.mjs} +10 -10
  32. package/dist/{ManageIncome-1s_q5W4X.mjs → ManageIncome-CaoQl609.mjs} +91 -88
  33. package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-WvZ4gnQe.mjs} +1 -1
  34. package/dist/MicroWidgetContainer-r6mtxRer.mjs +52 -0
  35. package/dist/MiniWidgetContainer-Bg02sF1Y.mjs +71 -0
  36. package/dist/{NetWorthStore-DCsTZpuS.mjs → NetWorthStore-rC0q7P7t.mjs} +2 -2
  37. package/dist/{NotificationSettings-DqrkNMod.mjs → NotificationSettings-uzM8tCoH.mjs} +236 -231
  38. package/dist/{NotificationStore-BxP_P2dA.mjs → NotificationStore-CDX_kqHa.mjs} +7 -15
  39. package/dist/{NumberFormatting-Buh7u8Oi.mjs → NumberFormatting-DjTD0t3W.mjs} +9 -9
  40. package/dist/{OriginalBalanceAction-CWuVvRq9.mjs → OriginalBalanceAction-C6jdS4ws.mjs} +4 -4
  41. package/dist/{RecurringSettings-A_rAGCTP.mjs → RecurringSettings-B4ybrS0B.mjs} +4 -4
  42. package/dist/{RecurringTransactions-DK8dWldr.mjs → RecurringTransactions-BqijW_8S.mjs} +49 -48
  43. package/dist/{RecurringTransactionsStore-C4YOD7_D.mjs → RecurringTransactionsStore-BhBUVm9a.mjs} +26 -29
  44. package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-krIRNwHK.mjs} +3 -3
  45. package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-DQ1b9uqq.mjs} +11 -13
  46. package/dist/SpendingLegend-CDO060GT.mjs +193 -0
  47. package/dist/{ToggleListItem-r0Kx56wF.mjs → ToggleListItem-ciFTiqRS.mjs} +19 -14
  48. package/dist/TransactionApi-CjBoLleL.mjs +86 -0
  49. package/dist/TransactionDetails-m5PddMQn.mjs +1380 -0
  50. package/dist/TransactionStore-PRlwE-TF.mjs +677 -0
  51. package/dist/TrendsStore-yO7qYv97.mjs +186 -0
  52. package/dist/{User-BQUxBeZV.mjs → User-Cnlegl1N.mjs} +2 -2
  53. package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-DwR0v_ll.mjs} +711 -728
  54. package/dist/{WidgetContainer-BHWANqT4.mjs → WidgetContainer-CoFDmQRE.mjs} +4 -4
  55. package/dist/accounts/components/AccountsListCompact.d.ts +10 -0
  56. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +4 -1
  57. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +2 -1
  58. package/dist/accounts/index.es.js +245 -235
  59. package/dist/accounts/stores/AccountStore.d.ts +24 -25
  60. package/dist/accounts/utils/Accounts.d.ts +1 -2
  61. package/dist/analytics/index.es.js +2 -2
  62. package/dist/budgets/components/AddBudgets.d.ts +2 -1
  63. package/dist/budgets/index.es.js +611 -580
  64. package/dist/budgets/store/BudgetsStore.d.ts +0 -1
  65. package/dist/cashflow/index.es.js +187 -180
  66. package/dist/categories/index.es.js +2 -2
  67. package/dist/categories/stores/CategoryStore.d.ts +2 -5
  68. package/dist/categories/util/CategoryUtil.d.ts +2 -3
  69. package/dist/common/components/Select.d.ts +4 -2
  70. package/dist/common/components/charts/LineChart.d.ts +12 -2
  71. package/dist/common/components/charts/index.d.ts +0 -3
  72. package/dist/common/components/charts/linechart/CustomLegend.d.ts +3 -1
  73. package/dist/common/components/charts/linechart/CustomMark.d.ts +4 -0
  74. package/dist/common/components/charts/linechart/CustomTooltip.d.ts +6 -1
  75. package/dist/common/components/charts/stackedlinechart/CustomPointTooltip.d.ts +5 -2
  76. package/dist/common/components/drawer/Drawer.d.ts +3 -0
  77. package/dist/common/components/drawer/Footer.d.ts +17 -0
  78. package/dist/common/hooks/index.d.ts +1 -0
  79. package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
  80. package/dist/common/index.es.js +397 -387
  81. package/dist/common/stores/AppDataStore.d.ts +1 -3
  82. package/dist/common/stores/GlobalCopyStore.d.ts +1 -0
  83. package/dist/common/stores/GlobalStore.d.ts +10 -4
  84. package/dist/common/stores/GlobalUiStore.d.ts +2 -3
  85. package/dist/common/stores/UserStore.d.ts +2 -3
  86. package/dist/common/types/Account.d.ts +6 -9
  87. package/dist/common/types/Finstrong.d.ts +54 -0
  88. package/dist/common/types/Global.d.ts +1 -0
  89. package/dist/common/types/Widgets.d.ts +1 -0
  90. package/dist/common/types/index.d.ts +1 -1
  91. package/dist/common/types/localization/FinstrongCopy.d.ts +105 -2
  92. package/dist/common/types/localization/GoalsCopy.d.ts +1 -0
  93. package/dist/common/types/localization/TransactionsCopy.d.ts +1 -0
  94. package/dist/dashboard/index.es.js +90 -88
  95. package/dist/debts/index.es.js +458 -448
  96. package/dist/exportTransactionsToCSV-DuAaI5XA.mjs +48 -0
  97. package/dist/finstrong/FinstrongWidget.d.ts +1 -1
  98. package/dist/finstrong/api/FinstrongApi.d.ts +5 -0
  99. package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +3 -1
  100. package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +4 -0
  101. package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +4 -0
  102. package/dist/finstrong/components/FinancialStrengthGraph.d.ts +7 -1
  103. package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +3 -0
  104. package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +3 -0
  105. package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +4 -0
  106. package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +3 -0
  107. package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
  108. package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +4 -1
  109. package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
  110. package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
  111. package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +4 -3
  112. package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +10 -0
  113. package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
  114. package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +6 -0
  115. package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +4 -0
  116. package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +4 -0
  117. package/dist/finstrong/components/ProgressBar.d.ts +15 -0
  118. package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +3 -0
  119. package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +3 -0
  120. package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +4 -0
  121. package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +3 -0
  122. package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +3 -0
  123. package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +4 -0
  124. package/dist/finstrong/components/StatusChip.d.ts +5 -0
  125. package/dist/finstrong/components/onboarding/Onboarding.d.ts +2 -0
  126. package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +17 -0
  127. package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +8 -0
  128. package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +8 -0
  129. package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +14 -0
  130. package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +8 -0
  131. package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +4 -0
  132. package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +4 -0
  133. package/dist/finstrong/components/shared/Accounts.d.ts +8 -0
  134. package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +24 -0
  135. package/dist/finstrong/components/shared/DialScoreCard.d.ts +7 -1
  136. package/dist/finstrong/components/shared/DoubleBarChart.d.ts +28 -0
  137. package/dist/finstrong/components/shared/LineGraph.d.ts +7 -0
  138. package/dist/finstrong/components/shared/TotalCard.d.ts +8 -0
  139. package/dist/finstrong/components/shared/Transactions.d.ts +11 -0
  140. package/dist/finstrong/constants/index.d.ts +9 -0
  141. package/dist/finstrong/index.es.js +3190 -1073
  142. package/dist/finstrong/stores/FinstrongStore.d.ts +25 -2
  143. package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
  144. package/dist/goals/index.es.js +302 -291
  145. package/dist/goals/stores/GoalStore.d.ts +4 -17
  146. package/dist/help/index.es.js +13 -9
  147. package/dist/{hooks-D6XlXHf4.mjs → hooks-ZMp65DFz.mjs} +12 -12
  148. package/dist/insights/index.es.js +1 -1
  149. package/dist/investments/index.es.js +108 -104
  150. package/dist/investments/stores/HoldingStore.d.ts +0 -1
  151. package/dist/merchants/index.es.js +2 -2
  152. package/dist/microinsights/MicroCardTemplate.d.ts +16 -0
  153. package/dist/microinsights/beaticons/BeatIcon.d.ts +2 -9
  154. package/dist/microinsights/beaticons/BeatMerchantLogo.d.ts +3 -2
  155. package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +2 -1
  156. package/dist/microinsights/cards/{MicroInsightCard.d.ts → BaseCard.d.ts} +1 -8
  157. package/dist/microinsights/cards/{BeatCard.d.ts → InsightCard.d.ts} +2 -2
  158. package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +2 -5
  159. package/dist/microinsights/cards/ZeroStateCard.d.ts +2 -5
  160. package/dist/microinsights/carousel/BeatList.d.ts +10 -0
  161. package/dist/microinsights/carousel/CarouselControls.d.ts +1 -3
  162. package/dist/microinsights/carousel/CarouselHeader.d.ts +1 -2
  163. package/dist/microinsights/constants/App.d.ts +0 -1
  164. package/dist/microinsights/index.d.ts +4 -3
  165. package/dist/microinsights/index.es.js +101 -14
  166. package/dist/microinsights/interfaces.d.ts +0 -6
  167. package/dist/networth/index.es.js +197 -190
  168. package/dist/notifications/index.es.js +25 -25
  169. package/dist/notifications/stores/NotificationStore.d.ts +1 -3
  170. package/dist/recurringtransactions/index.es.js +395 -351
  171. package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +2 -3
  172. package/dist/settings/index.es.js +307 -298
  173. package/dist/spending/index.es.js +299 -438
  174. package/dist/spending/utils/SpendingData.d.ts +2 -1
  175. package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -0
  176. package/dist/transactions/components/shared/TransactionList.d.ts +1 -0
  177. package/dist/transactions/index.es.js +115 -112
  178. package/dist/transactions/stores/TransactionStore.d.ts +77 -21
  179. package/dist/trends/components/TrendsTable.d.ts +0 -2
  180. package/dist/trends/index.es.js +1025 -604
  181. package/dist/trends/utils/TrendsData.d.ts +1 -0
  182. package/dist/{useAccountDisplayName-BUAApBIb.mjs → useAccountDisplayName-B7iXTNM8.mjs} +2 -2
  183. package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-CRwX-qWE.mjs} +1 -1
  184. package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-B7dxpDrX.mjs} +1 -1
  185. package/dist/useWidgetLoadTimer-hIOioiKx.mjs +19 -0
  186. package/package.json +4 -4
  187. package/dist/AccountDetailsHeader-JtSX6Uf9.mjs +0 -120
  188. package/dist/Accounts-BRf_YeTf.mjs +0 -27
  189. package/dist/CategoryStore-yHI0hWmK.mjs +0 -174
  190. package/dist/CategoryUtil-pZRIYOgN.mjs +0 -80
  191. package/dist/Drawer-kEE73B87.mjs +0 -113
  192. package/dist/FinstrongStore-F2c607dj.mjs +0 -101
  193. package/dist/LineChart-D4GI7nVh.mjs +0 -541
  194. package/dist/MicroWidgetContainer-DpeqN9n3.mjs +0 -45
  195. package/dist/MiniWidgetContainer-D0gfmbaF.mjs +0 -56
  196. package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
  197. package/dist/TransactionDetails-oP1eSuiS.mjs +0 -1334
  198. package/dist/TransactionStore-ai3uII_r.mjs +0 -690
  199. package/dist/TrendsStore-DCYbpXPO.mjs +0 -559
  200. package/dist/common/components/SkeletonLoader.d.ts +0 -7
  201. package/dist/exportTransactionsToCSV-7bVS7KXf.mjs +0 -47
  202. package/dist/finstrong/utils/Finstrong.d.ts +0 -6
  203. package/dist/useAriaLive-B3_pRUio.mjs +0 -35
@@ -1,13 +1,13 @@
1
1
  import { jsxs as o, jsx as e, Fragment as ae } from "react/jsx-runtime";
2
- import B, { useState as O } from "react";
2
+ import A, { useState as O } from "react";
3
3
  import { observer as P } from "mobx-react-lite";
4
4
  import _ from "@mui/material/Stack";
5
5
  import Ee from "@mui/material/Tab";
6
- import Ge from "@mui/material/Tabs";
7
- import { C as ge } from "../ConnectionsDrawer-ByGQE7D5.mjs";
6
+ import Ne from "@mui/material/Tabs";
7
+ import { C as ge } from "../ConnectionsDrawer-VmuVFHbL.mjs";
8
8
  import pe from "@mui/material/useMediaQuery";
9
- import Me from "@mui/material/Box";
10
- import Ne from "@mui/material/Collapse";
9
+ import Ge from "@mui/material/Box";
10
+ import Me from "@mui/material/Collapse";
11
11
  import K from "@mui/material/Divider";
12
12
  import ee from "@mui/material/List";
13
13
  import te from "@mui/material/ListItem";
@@ -16,13 +16,13 @@ import xe from "@mui/material/ToggleButton";
16
16
  import ye from "@mui/material/ToggleButtonGroup";
17
17
  import { Text as r, H1 as fe, P as ve, InstitutionLogo as ne } from "@mxenabled/mxui";
18
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";
19
+ import { u as G, g as be, s as H, b as Q, d as se } from "../hooks-ZMp65DFz.mjs";
20
+ import { A as z, W as je } from "../WidgetContainer-CoFDmQRE.mjs";
21
+ import { a as ze, f as oe } from "../NumberFormatting-DjTD0t3W.mjs";
22
22
  import { u as U } from "../useScreenSize-B6JyS_Lj.mjs";
23
23
  import le from "@mui/material/styles/useTheme";
24
24
  import { Icon as k } from "@mxenabled/mx-icons";
25
- import { D as Oe } from "../Donut-oaQFlbit.mjs";
25
+ import { D as Oe } from "../Donut-Dmy3JTWd.mjs";
26
26
  import { useTheme as Ve } from "@mui/material/styles";
27
27
  import { f as Re, A as V } from "../InvestmentUtil-jOyOgzIB.mjs";
28
28
  import Pe from "@mui/material/ListItemText";
@@ -34,13 +34,14 @@ import Ce from "@mui/material/AccordionSummary";
34
34
  import ie from "@mui/material/Paper";
35
35
  import p from "@mui/system/Stack";
36
36
  import Se from "@mui/material/TextField";
37
- import { D as $e } from "../Drawer-kEE73B87.mjs";
37
+ import { D as $e } from "../Drawer-By9V-B5L.mjs";
38
38
  import { DataGridPro as qe } from "@mui/x-data-grid-pro";
39
39
  import { Stack as Ke } from "@mui/material";
40
40
  import { L as De } from "../Loader-DUaFpDGv.mjs";
41
- import { E as Ye } from "../EmptyState-DA_lfRBv.mjs";
41
+ import { u as Ye } from "../useWidgetLoadTimer-hIOioiKx.mjs";
42
+ import { E as Qe } from "../EmptyState-DoxNUae-.mjs";
42
43
  const de = ({ sx: t = {} }) => {
43
- const { investments: h } = E(), { onEvent: c } = be(), { setShowConnectionsWidget: u } = H();
44
+ const { investments: h } = G(), { onEvent: c } = be(), { setShowConnectionsWidget: u } = H();
44
45
  return /* @__PURE__ */ o(_, { sx: { alignItems: "center", gap: 24, height: 164, p: 24, width: "100%", ...t }, children: [
45
46
  /* @__PURE__ */ o(
46
47
  _,
@@ -81,7 +82,7 @@ const de = ({ sx: t = {} }) => {
81
82
  }
82
83
  )
83
84
  ] });
84
- }, Qe = {
85
+ }, Je = {
85
86
  allocations_cash: "#AEDCCC",
86
87
  allocations_convertible: "#80CAD0",
87
88
  allocations_foreign_bond: "#51B9D4",
@@ -91,7 +92,7 @@ const de = ({ sx: t = {} }) => {
91
92
  allocations_unknown: "#161D6A",
92
93
  allocations_us_bond: "#254995",
93
94
  allocations_us_stock: "#1E2D84"
94
- }, Je = [
95
+ }, Ze = [
95
96
  {
96
97
  name: "allocations_cash"
97
98
  },
@@ -119,10 +120,10 @@ const de = ({ sx: t = {} }) => {
119
120
  {
120
121
  name: "allocations_unknown"
121
122
  }
122
- ], Ze = (t, h, c) => {
123
+ ], et = (t, h, c) => {
123
124
  const u = h, x = c;
124
125
  return t >= Math.min(u, x) && t < Math.max(u, x);
125
- }, et = (t, h, c) => {
126
+ }, tt = (t, h, c) => {
126
127
  const u = [
127
128
  ...new Set(t.map((d) => d.name.toLowerCase()))
128
129
  ];
@@ -139,7 +140,7 @@ const de = ({ sx: t = {} }) => {
139
140
  percentage: l / c
140
141
  };
141
142
  });
142
- }, Y = (t) => t.calculated_market_value ? t.calculated_market_value : t.market_value, tt = (t, h, c) => {
143
+ }, Y = (t) => t.calculated_market_value ? t.calculated_market_value : t.market_value, nt = (t, h, c) => {
143
144
  const u = Object.values(h.allocations_list), x = [];
144
145
  let v = 0;
145
146
  const d = t.map(({ guid: n }) => n), l = c.filter(({ account_guid: n }) => d.includes(n)).map((n) => ({
@@ -159,37 +160,37 @@ const de = ({ sx: t = {} }) => {
159
160
  }),
160
161
  { marketValue: 0, totalGainLoss: 0 }
161
162
  ), f = b + m;
162
- Je.forEach((n, g) => {
163
+ Ze.forEach((n, g) => {
163
164
  const C = l.filter(
164
- (W) => !!W[n.name]
165
+ (I) => !!I[n.name]
165
166
  );
166
167
  let S = C.reduce(
167
- (W, A) => W + Y(A) * A[n.name] / 100,
168
+ (I, W) => I + Y(W) * W[n.name] / 100,
168
169
  0
169
170
  );
170
- const L = et(
171
+ const B = tt(
171
172
  C,
172
173
  n.name,
173
174
  S
174
175
  );
175
176
  if (n.name === "allocations_cash" && m > 0) {
176
177
  S += m;
177
- const W = {
178
+ const I = {
178
179
  displayName: h.cash_balance_display_name,
179
180
  name: "allocations_name",
180
181
  value: m,
181
182
  percentage: m / f
182
183
  };
183
- L.push(W);
184
+ B.push(I);
184
185
  }
185
186
  S > 0 && (x.push({
186
187
  name: n.name,
187
188
  displayName: u[g],
188
189
  guid: `${n.name}-${g}`,
189
- holdings: L,
190
+ holdings: B,
190
191
  percentage: S / f,
191
192
  value: S,
192
- color: Qe[n.name]
193
+ color: Je[n.name]
193
194
  }), v += S);
194
195
  });
195
196
  const i = x.map(
@@ -208,7 +209,7 @@ const de = ({ sx: t = {} }) => {
208
209
  totalMarketValue: f,
209
210
  totalGainLossPercentage: s / y
210
211
  };
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
+ }, re = (t) => t < 1e-3 ? "< 0.1%" : ze(t), R = (t) => t === 0 ? oe(t, "0,0.00") : et(t, -0.01, 0.01) ? "< $0.01" : oe(t, "0,0.00"), ot = ({
212
213
  data: t,
213
214
  onSelected: h,
214
215
  selectedId: c,
@@ -219,7 +220,7 @@ const de = ({ sx: t = {} }) => {
219
220
  f !== null && x(f);
220
221
  }, { isMobile: d } = U(), {
221
222
  investments: { allocation: l }
222
- } = E(), m = [
223
+ } = G(), m = [
223
224
  { label: l.tabs_label_dollar, value: 0 },
224
225
  { label: l.tabs_label_percent, value: 1 }
225
226
  ], y = !t?.investmentsData.length, { isSmallMobile: b } = U();
@@ -234,7 +235,7 @@ const de = ({ sx: t = {} }) => {
234
235
  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
  }
236
237
  ),
237
- /* @__PURE__ */ e(ee, { sx: { px: 12 }, children: t.investmentsData.map((s) => /* @__PURE__ */ o(B.Fragment, { children: [
238
+ /* @__PURE__ */ e(ee, { sx: { px: 12 }, children: t.investmentsData.map((s) => /* @__PURE__ */ o(A.Fragment, { children: [
238
239
  /* @__PURE__ */ e(
239
240
  te,
240
241
  {
@@ -251,7 +252,7 @@ const de = ({ sx: t = {} }) => {
251
252
  sx: { minHeight: 44, px: 12, py: 0 },
252
253
  children: [
253
254
  /* @__PURE__ */ e(
254
- Me,
255
+ Ge,
255
256
  {
256
257
  borderRadius: 4,
257
258
  flexShrink: 0,
@@ -279,7 +280,7 @@ const de = ({ sx: t = {} }) => {
279
280
  }
280
281
  ),
281
282
  /* @__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 && s.holdings.length > 0 && /* @__PURE__ */ e(Me, { in: c === s.guid, unmountOnExit: !0, children: /* @__PURE__ */ o(ee, { children: [
283
284
  s?.holdings?.map((f) => /* @__PURE__ */ e(
284
285
  te,
285
286
  {
@@ -314,7 +315,7 @@ const de = ({ sx: t = {} }) => {
314
315
  )
315
316
  ] }) : u === 0 && /* @__PURE__ */ e(r, { bold: !0, sx: { textAlign: "right", pr: 24 }, children: `${l.total_label_text} ${R(t.totalAmount)}` })
316
317
  ] });
317
- }, ot = ({
318
+ }, it = ({
318
319
  data: t,
319
320
  hoveredId: h,
320
321
  isPercentage: c,
@@ -325,12 +326,12 @@ const de = ({ sx: t = {} }) => {
325
326
  size: l = 150,
326
327
  totalLabel: m
327
328
  }) => {
328
- const y = le(), b = y.palette.mode === "dark", s = B.useMemo(
329
- () => d ? t.investmentsData.find(({ guid: L }) => L === d) : void 0,
329
+ const y = le(), b = y.palette.mode === "dark", s = A.useMemo(
330
+ () => d ? t.investmentsData.find(({ guid: B }) => B === d) : void 0,
330
331
  [d]
331
332
  ), {
332
333
  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
+ } = G(), i = A.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
335
  return /* @__PURE__ */ e(
335
336
  Oe,
336
337
  {
@@ -368,12 +369,12 @@ const de = ({ sx: t = {} }) => {
368
369
  ] }) }) })
369
370
  }
370
371
  );
371
- }, it = () => {
372
- const [t, h] = B.useState(0), [c, u] = B.useState(""), [x, v] = B.useState(""), d = (n) => {
372
+ }, rt = () => {
373
+ const [t, h] = A.useState(0), [c, u] = A.useState(""), [x, v] = A.useState(""), d = (n) => {
373
374
  c !== n ? u(n) : (u(""), v(""));
374
375
  }, { selectedAccountGuids: l } = Q(), { visibleHoldings: m } = H(), { visibleInvestmentAccounts: y } = se(), {
375
376
  investments: { allocation: b }
376
- } = E(), s = tt(
377
+ } = G(), s = nt(
377
378
  y.filter(({ guid: n }) => l.includes(n)),
378
379
  b,
379
380
  m
@@ -391,7 +392,7 @@ const de = ({ sx: t = {} }) => {
391
392
  },
392
393
  children: [
393
394
  /* @__PURE__ */ e(
394
- ot,
395
+ it,
395
396
  {
396
397
  data: s,
397
398
  hoveredId: x,
@@ -409,7 +410,7 @@ const de = ({ sx: t = {} }) => {
409
410
  }
410
411
  ),
411
412
  /* @__PURE__ */ e(
412
- nt,
413
+ ot,
413
414
  {
414
415
  data: s,
415
416
  onSelected: d,
@@ -421,13 +422,13 @@ const de = ({ sx: t = {} }) => {
421
422
  ]
422
423
  }
423
424
  );
424
- }, rt = P(it), at = ({
425
+ }, at = P(rt), st = ({
425
426
  analysisDetails: t,
426
427
  analysisType: h,
427
428
  copy: c,
428
429
  setAnalysisType: u
429
430
  }) => {
430
- const { isSmallMobile: x } = U(), v = B.useMemo(() => Object.keys(t).filter((l) => t[l] >= 1).map((l) => ({
431
+ const { isSmallMobile: x } = U(), v = A.useMemo(() => Object.keys(t).filter((l) => t[l] >= 1).map((l) => ({
431
432
  key: l,
432
433
  value: oe(t[l], "0,0"),
433
434
  formattedKey: Re(l)
@@ -483,10 +484,10 @@ const de = ({ sx: t = {} }) => {
483
484
  )
484
485
  ] })
485
486
  ] });
486
- }, st = ({ body: t, title: h }) => /* @__PURE__ */ o(_, { sx: { gap: 4, p: 12 }, children: [
487
+ }, lt = ({ body: t, title: h }) => /* @__PURE__ */ o(_, { sx: { gap: 4, p: 12 }, children: [
487
488
  /* @__PURE__ */ e(r, { bold: !0, variant: "Body", children: h }),
488
489
  /* @__PURE__ */ e(ve, { variant: "ParagraphSmall", children: t })
489
- ] }), lt = ({
490
+ ] }), ct = ({
490
491
  placement: t = "bottom",
491
492
  tooltip_info_body: h,
492
493
  tooltip_info_title: c
@@ -495,13 +496,13 @@ const de = ({ sx: t = {} }) => {
495
496
  {
496
497
  enterTouchDelay: 500,
497
498
  placement: t,
498
- title: /* @__PURE__ */ e(st, { body: h, title: c }),
499
+ title: /* @__PURE__ */ e(lt, { body: h, title: c }),
499
500
  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
  }
501
- ), ct = () => {
502
+ ), dt = () => {
502
503
  const {
503
504
  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
+ } = G(), { 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 } = A.useMemo(() => {
505
506
  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
507
  return { cellDimension: d ? 72 : 100, columns: n, rows: g, textVariant: d ? "XSmall" : "Body" };
507
508
  }, [t, d, u]);
@@ -578,7 +579,7 @@ const de = ({ sx: t = {} }) => {
578
579
  children: [
579
580
  /* @__PURE__ */ e(r, { bold: !0, children: t.invest_analysis }),
580
581
  /* @__PURE__ */ e(
581
- lt,
582
+ ct,
582
583
  {
583
584
  tooltip_info_body: t.tooltip_info_body,
584
585
  tooltip_info_title: t.tooltip_info_title
@@ -588,17 +589,17 @@ const de = ({ sx: t = {} }) => {
588
589
  }
589
590
  ),
590
591
  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
+ const B = n === 0, I = n === g.length - 1, W = S === 0, N = S === i.length - 1, F = Number(C.replace("%", "")) >= 25;
592
593
  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
+ return m ? (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
595
  _,
595
596
  {
596
597
  sx: {
597
598
  ...{
598
- borderBottomLeftRadius: W && A ? 4 : 0,
599
- borderBottomRightRadius: W && G ? 4 : 0,
600
- borderTopLeftRadius: L && A ? 4 : 0,
601
- borderTopRightRadius: L && G ? 4 : 0
599
+ borderBottomLeftRadius: I && W ? 4 : 0,
600
+ borderBottomRightRadius: I && N ? 4 : 0,
601
+ borderTopLeftRadius: B && W ? 4 : 0,
602
+ borderTopRightRadius: B && N ? 4 : 0
602
603
  },
603
604
  alignItems: "center",
604
605
  bgcolor: T,
@@ -636,7 +637,7 @@ const de = ({ sx: t = {} }) => {
636
637
  }
637
638
  ),
638
639
  /* @__PURE__ */ e(
639
- at,
640
+ st,
640
641
  {
641
642
  analysisDetails: c,
642
643
  analysisType: u,
@@ -651,7 +652,7 @@ const de = ({ sx: t = {} }) => {
651
652
  ]
652
653
  }
653
654
  );
654
- }, dt = P(ct), mt = ({
655
+ }, mt = P(dt), ut = ({
655
656
  accountHoldingsData: t,
656
657
  currentEditedCostBasis: h,
657
658
  editingHoldingId: c,
@@ -662,7 +663,7 @@ const de = ({ sx: t = {} }) => {
662
663
  isOpen: l,
663
664
  onClose: m
664
665
  }) => {
665
- const { investments: y } = E(), [b, s] = B.useState({}), f = (i) => (n, g) => {
666
+ const { investments: y } = G(), [b, s] = A.useState({}), f = (i) => (n, g) => {
666
667
  s((C) => ({
667
668
  ...C,
668
669
  [i]: g
@@ -956,10 +957,10 @@ const de = ({ sx: t = {} }) => {
956
957
  ]
957
958
  }
958
959
  );
959
- }, ut = P(mt), q = (t) => /* @__PURE__ */ o(Ke, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
960
+ }, ht = P(ut), q = (t) => /* @__PURE__ */ o(Ke, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
960
961
  /* @__PURE__ */ e(r, { sx: { color: "text.primary", fontWeight: 600, fontSize: 14 }, variant: "Small", children: t.colDef.headerName }),
961
962
  /* @__PURE__ */ e(k, { name: "expand_all", size: 12 })
962
- ] }), ht = ({
963
+ ] }), gt = ({
963
964
  data: t,
964
965
  editingHoldingId: h,
965
966
  currentEditedCostBasis: c,
@@ -968,7 +969,7 @@ const de = ({ sx: t = {} }) => {
968
969
  handleCostBasisKeyDown: v,
969
970
  handleCostBasisBlur: d
970
971
  }) => {
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
+ const { investments: l } = G(), 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
  {
973
974
  field: "qty",
974
975
  headerName: l.overview.qty_header,
@@ -1127,34 +1128,34 @@ const de = ({ sx: t = {} }) => {
1127
1128
  )
1128
1129
  }
1129
1130
  );
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({
1131
+ }, pt = () => {
1132
+ const { isMobile: t } = U(), [h, c] = O({}), [u, x] = O(!1), { selectedAccountGuids: v } = Q(), { visibleHoldings: d, updateHoldings: l } = H(), [m, y] = A.useState(!1), [b, s] = O({
1132
1133
  accounts: [],
1133
1134
  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));
1135
+ }), { accounts: f, investments: i } = G(), { isCopyLoaded: n } = Q(), [g, C] = O(null), [S, B] = O(""), W = le().palette.mode === "dark", N = W ? "#0AC295" : "#09A57F", F = W ? "grey.300" : "grey.700", T = (a, w = "lesserThan") => w === "greaterThan" ? a >= 0 ? N : F : a <= 0 ? F : N, j = (a, w) => {
1136
+ C(a), B(w.toFixed(2));
1136
1137
  }, J = (a) => {
1137
1138
  const w = a.target.value;
1138
- /^\d*\.?\d*$/.test(w) && L(w);
1139
+ /^\d*\.?\d*$/.test(w) && B(w);
1139
1140
  }, me = (a, w) => {
1140
1141
  a.key === "Enter" ? Z(w) : a.key === "Escape" && C(null);
1141
1142
  }, Z = (a) => {
1142
- const w = d.find(({ guid: F }) => F === a);
1143
+ const w = d.find(({ guid: E }) => E === a);
1143
1144
  if (!w) return;
1144
1145
  const M = Number(S);
1145
1146
  if (l({ ...w, cost_basis: M }), t) {
1146
- const F = b.holdings.map(
1147
+ const E = b.holdings.map(
1147
1148
  (D) => D.id === a ? { ...D, costBasis: M } : D
1148
1149
  );
1149
1150
  s((D) => ({
1150
1151
  ...D,
1151
- holdings: F
1152
+ holdings: E
1152
1153
  }));
1153
1154
  }
1154
1155
  C(null);
1155
1156
  }, Le = (a) => (w, M) => {
1156
- c((F) => ({
1157
- ...F,
1157
+ c((E) => ({
1158
+ ...E,
1158
1159
  [a]: M
1159
1160
  }));
1160
1161
  }, { visibleHoldings: ue } = H(), { visibleInvestmentAccounts: Ie } = se(), X = Ie.filter(
@@ -1201,18 +1202,18 @@ const de = ({ sx: t = {} }) => {
1201
1202
  ] })
1202
1203
  ] }),
1203
1204
  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,
1205
+ const w = ue.filter((L) => L.account_guid === a.guid).map((L) => ({
1206
+ id: L.guid,
1207
+ qty: L.shares || 0,
1208
+ holding: L.symbol || L.description || "Unknown",
1209
+ costBasis: L.cost_basis || 0,
1210
+ totalGainLoss: L.market_value ? L.market_value - (L.cost_basis || 0) : 0,
1211
+ marketValue: L.market_value || 0,
1212
+ description: L.description || ""
1213
+ })), M = w.length > 0, E = a.balance, D = w.reduce(
1214
+ (L, Fe) => Fe.totalGainLoss + L,
1214
1215
  0
1215
- ), he = F ? D / F * 100 : 0;
1216
+ ), he = E ? D / E * 100 : 0;
1216
1217
  if (t)
1217
1218
  return /* @__PURE__ */ e(
1218
1219
  ie,
@@ -1364,7 +1365,7 @@ const de = ({ sx: t = {} }) => {
1364
1365
  },
1365
1366
  children: [
1366
1367
  /* @__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
+ /* @__PURE__ */ e(r, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: E?.toLocaleString("en-US", {
1368
1369
  currency: "USD",
1369
1370
  maximumFractionDigits: 2,
1370
1371
  minimumFractionDigits: 2,
@@ -1382,7 +1383,7 @@ const de = ({ sx: t = {} }) => {
1382
1383
  },
1383
1384
  a.guid
1384
1385
  );
1385
- const ke = A ? "grey.700" : "grey.400", We = w.length ? "text.primary" : ke;
1386
+ const ke = W ? "grey.700" : "grey.400", We = w.length ? "text.primary" : ke;
1386
1387
  return /* @__PURE__ */ o(
1387
1388
  _e,
1388
1389
  {
@@ -1494,7 +1495,7 @@ const de = ({ sx: t = {} }) => {
1494
1495
  ] }),
1495
1496
  /* @__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
1497
  /* @__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
+ /* @__PURE__ */ e(r, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: E?.toLocaleString("en-US", {
1498
1499
  currency: "USD",
1499
1500
  maximumFractionDigits: 2,
1500
1501
  minimumFractionDigits: 2,
@@ -1506,7 +1507,7 @@ const de = ({ sx: t = {} }) => {
1506
1507
  }
1507
1508
  ),
1508
1509
  /* @__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
+ gt,
1510
1511
  {
1511
1512
  currentEditedCostBasis: S,
1512
1513
  data: w,
@@ -1524,7 +1525,7 @@ const de = ({ sx: t = {} }) => {
1524
1525
  }),
1525
1526
  /* @__PURE__ */ e(de, {}),
1526
1527
  /* @__PURE__ */ e(
1527
- ut,
1528
+ ht,
1528
1529
  {
1529
1530
  accountHoldingsData: b,
1530
1531
  currentEditedCostBasis: S,
@@ -1546,26 +1547,29 @@ const de = ({ sx: t = {} }) => {
1546
1547
  }
1547
1548
  )
1548
1549
  ] }) : /* @__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
+ }, xt = P(pt), yt = ({ title: t }) => /* @__PURE__ */ e(r, { bold: !0, variant: "Body", children: t }), ln = P(({ onBackClick: t, sx: h }) => {
1550
1551
  const { onEvent: c } = be(), { isMobile: u } = U(), { visibleInvestmentAccounts: x } = se(), {
1551
1552
  visibleHoldings: v,
1552
1553
  setShowConnectionsWidget: d,
1553
1554
  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(() => {
1555
+ } = H(), { investments: m, accounts: y } = G(), { isCopyLoaded: b, isInitialized: s, setSelectedAccounts: f } = Q(), [i, n] = A.useState(0), { loadHoldings: g, holdingsLoaded: C } = H();
1556
+ Ye({
1557
+ widgetName: "InvestmentsWidget",
1558
+ isLoaded: C
1559
+ }), A.useEffect(() => {
1556
1560
  f(x);
1557
- }, [x]), B.useEffect(() => {
1561
+ }, [x]), A.useEffect(() => {
1558
1562
  s && g().finally();
1559
1563
  }, [s]);
1560
- const C = () => {
1564
+ const S = () => {
1561
1565
  c(z.INVESTMENT_WIDGET_ACCOUNT_FILTER_CLICK);
1562
1566
  };
1563
1567
  if (!b || !s) return /* @__PURE__ */ e(De, {});
1564
- const S = [
1568
+ const B = [
1565
1569
  z.INVESTMENT_WIDGET_DETAILS_CLICK,
1566
1570
  z.INVESTMENT_WIDGET_ALLOCATION_CLICK,
1567
1571
  z.INVESTMENT_WIDGET_ANALYSIS_CLICK
1568
- ], L = x.length === 0 && v.length === 0, W = [
1572
+ ], I = x.length === 0 && v.length === 0, W = [
1569
1573
  m.tab_overview_title,
1570
1574
  m.tab_allocation_title,
1571
1575
  m.tab_analysis_title
@@ -1574,27 +1578,27 @@ const de = ({ sx: t = {} }) => {
1574
1578
  je,
1575
1579
  {
1576
1580
  accountOptions: x,
1577
- onAccountsFilterClick: C,
1581
+ onAccountsFilterClick: S,
1578
1582
  onBackClick: t,
1579
1583
  sx: h,
1580
1584
  title: m.title,
1581
1585
  children: [
1582
1586
  /* @__PURE__ */ o(_, { mx: u ? 0 : 48, my: 24, children: [
1583
1587
  /* @__PURE__ */ e(
1584
- Ge,
1588
+ Ne,
1585
1589
  {
1586
- onChange: (A, G) => {
1587
- n(G), c(S[G]);
1590
+ onChange: (N, F) => {
1591
+ n(F), c(B[F]);
1588
1592
  },
1589
1593
  sx: { bgcolor: "background.paper" },
1590
1594
  textColor: "primary",
1591
- value: L ? -1 : i,
1595
+ value: I ? -1 : i,
1592
1596
  variant: "fullWidth",
1593
- children: W.map((A) => /* @__PURE__ */ e(Ee, { disabled: L, label: /* @__PURE__ */ e(xt, { title: A }) }, A))
1597
+ children: W.map((N) => /* @__PURE__ */ e(Ee, { disabled: I, label: /* @__PURE__ */ e(yt, { title: N }) }, N))
1594
1598
  }
1595
1599
  ),
1596
- L ? /* @__PURE__ */ e(
1597
- Ye,
1600
+ I ? /* @__PURE__ */ e(
1601
+ Qe,
1598
1602
  {
1599
1603
  header: m.empty_state_header,
1600
1604
  icon: "bid_landscape",
@@ -1616,9 +1620,9 @@ const de = ({ sx: t = {} }) => {
1616
1620
  }
1617
1621
  }
1618
1622
  ) : /* @__PURE__ */ o(ae, { children: [
1619
- i === 0 && /* @__PURE__ */ e(pt, {}),
1620
- i === 1 && /* @__PURE__ */ e(rt, {}),
1621
- i === 2 && /* @__PURE__ */ e(dt, {})
1623
+ i === 0 && /* @__PURE__ */ e(xt, {}),
1624
+ i === 1 && /* @__PURE__ */ e(at, {}),
1625
+ i === 2 && /* @__PURE__ */ e(mt, {})
1622
1626
  ] })
1623
1627
  ] }),
1624
1628
  /* @__PURE__ */ e(
@@ -1634,5 +1638,5 @@ const de = ({ sx: t = {} }) => {
1634
1638
  );
1635
1639
  });
1636
1640
  export {
1637
- an as InvestmentsWidget
1641
+ ln as InvestmentsWidget
1638
1642
  };
@@ -14,7 +14,6 @@ export declare class HoldingStore {
14
14
  [x: string]: number;
15
15
  };
16
16
  get visibleHoldings(): Holding[];
17
- setHoldings: (holdings: Holding[]) => void;
18
17
  setShowConnectionsWidget: (value: boolean) => void;
19
18
  loadHoldings: () => Promise<void>;
20
19
  setAnalysisType: (analysisType: AnalysisType) => void;
@@ -12,10 +12,10 @@ import k from "@mui/material/ListItemText";
12
12
  import A from "@mui/material/Paper";
13
13
  import d from "@mui/material/Stack";
14
14
  import { MerchantLogo as V, Text as R } from "@mxenabled/mxui";
15
- import { c as v, u as w, b as C } from "../hooks-D6XlXHf4.mjs";
15
+ import { c as v, u as w, b as C } from "../hooks-ZMp65DFz.mjs";
16
16
  import { L as p } from "../Loader-DUaFpDGv.mjs";
17
17
  import { S as N } from "../SearchBox-B2_zLv8-.mjs";
18
- import { M as ne } from "../MerchantStore-DrFvsUyy.mjs";
18
+ import { M as ne } from "../MerchantStore-WvZ4gnQe.mjs";
19
19
  const B = /^[ a-zA-ZÀ-ÿ0-9]+$/, H = 50, u = 65, P = ({
20
20
  height: f = "calc(100dvh - 120px)",
21
21
  onSelect: g
@@ -0,0 +1,16 @@
1
+ import { SxProps } from '@mui/material/styles';
2
+ interface MicroCardTemplateProps {
3
+ avatarSx?: SxProps;
4
+ cardSx?: SxProps;
5
+ description: string;
6
+ icon?: React.ReactNode;
7
+ hasCardEffect?: boolean;
8
+ onClose?: () => void;
9
+ onPrimaryAction?: () => void;
10
+ onSecondaryAction?: () => void;
11
+ primaryActionText?: string;
12
+ secondaryActionText?: string;
13
+ title: string;
14
+ }
15
+ declare const MicroCardTemplate: ({ avatarSx, cardSx, description, icon, hasCardEffect, onClose, onPrimaryAction, onSecondaryAction, primaryActionText, secondaryActionText, title, }: MicroCardTemplateProps) => import("react/jsx-runtime").JSX.Element;
16
+ export default MicroCardTemplate;
@@ -1,10 +1,3 @@
1
1
  import { default as React } from 'react';
2
- import { clientColorSchemeProps } from '..';
3
- import { Beat } from '../../common/types/Beat';
4
- export interface BeatIconProps {
5
- beat?: Beat;
6
- clientColorScheme?: clientColorSchemeProps;
7
- color?: string | null;
8
- type?: number | null;
9
- }
10
- export declare const BeatIcon: React.FC<BeatIconProps>;
2
+ import { WeGotTheBeat } from '../interfaces';
3
+ export declare const BeatIcon: React.FC<WeGotTheBeat>;
@@ -1,3 +1,4 @@
1
+ import { FC } from 'react';
1
2
  import { WeGotTheBeat } from '../interfaces';
2
- declare const _default: import('react').FunctionComponent<WeGotTheBeat>;
3
- export default _default;
3
+ declare const BeatMerchantLogo: FC<WeGotTheBeat>;
4
+ export default BeatMerchantLogo;
@@ -1,5 +1,6 @@
1
1
  import { FC } from 'react';
2
2
  import { WeGotTheBeat } from '../interfaces';
3
3
  import { DataSeries } from '../../common/types/Beat';
4
- export declare const getIconColor: (data: DataSeries | undefined, designTokens: any) => any;
4
+ import { Theme } from '@mui/material/styles';
5
+ export declare const getIconColor: (data: DataSeries | undefined, theme: Theme) => string;
5
6
  export declare const MonthlySpendComparisonIcon: FC<WeGotTheBeat>;