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

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