@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,67 +1,68 @@
1
1
  import { jsx as e, jsxs as r, Fragment as v } from "react/jsx-runtime";
2
- import { fromUnixTime as Se } from "date-fns/fromUnixTime";
3
- import { observer as w } from "mobx-react-lite";
2
+ import { fromUnixTime as we } from "date-fns/fromUnixTime";
3
+ import { observer as _ } from "mobx-react-lite";
4
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";
5
+ import { L as _e } from "../LineChart-KpPw1phO.mjs";
6
+ import { u as J } from "../useScreenSize-B6JyS_Lj.mjs";
7
+ import { p as be, u as I, d as Q, g as P, b as ee, q as te } from "../hooks-ZMp65DFz.mjs";
8
+ import { f as We, a as ve } from "../Dialog-BPTr3qHE.mjs";
9
9
  import W from "@mui/material/Divider";
10
10
  import B from "@mui/material/List";
11
- import E from "@mui/material/ListSubheader";
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";
13
+ import { Text as m, Icon as H, H1 as Te, P as Ie } from "@mxenabled/mxui";
14
14
  import d from "react";
15
- import k from "@mui/material/ListItem";
16
- import te from "@mui/material/ListItemButton";
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";
15
+ import D from "@mui/material/ListItem";
16
+ import ne from "@mui/material/ListItemButton";
17
+ import w from "@mui/material/ListItemText";
18
+ import { i as oe } from "../DateUtil-CBdcsyuk.mjs";
19
+ import { C as y } from "../CurrencyText-Dr0EZ7bp.mjs";
20
+ import { Button as Le, Stack as Ne } from "@mui/material";
21
+ import { format as Ee, fromUnixTime as ke, differenceInMonths as De } from "date-fns";
22
+ import { g as U } from "../NetWorthStore-rC0q7P7t.mjs";
23
+ import { N as Rt } from "../NetWorthStore-rC0q7P7t.mjs";
24
+ import { Icon as re } from "@mxenabled/mx-icons";
25
+ import { f as V } from "../NumberFormatting-DjTD0t3W.mjs";
26
+ import { u as ie } from "../useWidgetLoadTimer-hIOioiKx.mjs";
27
+ import { A as b, W as Me } from "../WidgetContainer-CoFDmQRE.mjs";
27
28
  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 = ({
29
+ import { M as Ae } from "../MicroWidgetContainer-r6mtxRer.mjs";
30
+ import ae from "@mui/material/Box";
31
+ import { C as He } from "../ConnectionsDrawer-VmuVFHbL.mjs";
32
+ import Be from "@mui/material/Collapse";
33
+ import Y from "@mui/material/ListItemIcon";
34
+ import se from "@mui/material/styles/useTheme";
35
+ import { E as Oe } from "../EmptyState-DoxNUae-.mjs";
36
+ import { D as q } from "../Drawer-By9V-B5L.mjs";
37
+ const ze = ({
37
38
  chartData: t,
38
- hoveredData: l,
39
+ hoveredData: s,
39
40
  onDataClick: i,
40
41
  onMouseEnter: n,
41
- onMouseLeave: s,
42
+ onMouseLeave: c,
42
43
  selectedData: o
43
44
  }) => {
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),
45
+ const { isMobile: a } = J(), { availableWidth: l } = be(), u = z(), C = l - 320, x = t.map((f) => ({
46
+ x: We(we(f.x), ve.MONTH_SHORT),
46
47
  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) => ({
48
+ })), g = o ? { index: t.findIndex((f) => f.x === o.x) } : void 0, S = s ? { index: t.findIndex((f) => f.x === s.x) } : void 0, p = (f) => ({
48
49
  fill: f === g?.index ? u.palette.success.main : "",
49
50
  filter: f === S?.index ? `drop-shadow(0px 0px 10px ${u.palette.success.main})` : "none",
50
51
  stroke: u.palette.success.main
51
52
  });
52
53
  return /* @__PURE__ */ e(
53
- We,
54
+ _e,
54
55
  {
55
56
  baseline: "min",
56
- colors: [u.palette.success.main],
57
- datasets: [x],
58
57
  chartFor: "networthChart",
59
58
  chartXaxisSx: { "& .MuiChartsAxis-tickLabel": { transform: "translateX(8px)" } },
60
59
  chartYaxisSx: { "& .MuiChartsAxis-tickLabel": { transform: "translateX(-8px)" } },
60
+ colors: [u.palette.success.main],
61
+ datasets: [x],
61
62
  height: 350,
62
63
  labels: [],
63
- margin: { right: 20, left: 100 },
64
- markHandlers: { onMarkClick: i, onMouseEnter: n, onMouseLeave: s },
64
+ margin: { right: 20, left: 40 },
65
+ markHandlers: { onMarkClick: i, onMouseEnter: n, onMouseLeave: c },
65
66
  markStyles: p,
66
67
  showArea: !0,
67
68
  useCustomMark: !0,
@@ -69,41 +70,41 @@ const Oe = ({
69
70
  width: a ? 320 : C
70
71
  }
71
72
  );
72
- }, ze = w(Oe), Re = ({
73
+ }, Re = _(ze), je = ({
73
74
  item: t,
74
- getStyles: l,
75
+ getStyles: s,
75
76
  isHovered: i = !1,
76
77
  isSelected: n = !1,
77
- onItemClick: s,
78
+ onItemClick: c,
78
79
  onMouseEnter: o,
79
80
  onMouseLeave: a
80
81
  }) => {
81
- const [c, u] = d.useState({
82
+ const [l, u] = d.useState({
82
83
  color: ""
83
84
  });
84
85
  return d.useEffect(() => {
85
- u(l(t));
86
+ u(s(t));
86
87
  }, [i, n]), /* @__PURE__ */ r(d.Fragment, { children: [
87
88
  /* @__PURE__ */ e(
88
- k,
89
+ D,
89
90
  {
90
91
  sx: {
91
- ...c,
92
+ ...l,
92
93
  minHeight: 44,
93
- "&:hover": { color: n ? "inherit" : c.color }
94
+ "&:hover": { color: n ? "inherit" : l.color }
94
95
  },
95
96
  children: /* @__PURE__ */ e(
96
- te,
97
+ ne,
97
98
  {
98
- onClick: (C) => s?.(C, t.x),
99
+ onClick: (C) => c?.(C, t.x),
99
100
  onMouseEnter: () => o(t.x),
100
101
  onMouseLeave: () => a(),
101
102
  sx: { minHeight: 20, padding: 12 },
102
103
  children: /* @__PURE__ */ e(
103
- _,
104
+ w,
104
105
  {
105
106
  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(m, { variant: "Body", children: oe(t.x) }),
107
108
  /* @__PURE__ */ e(y, { amount: t.y, sx: { color: "inherit" }, variant: "Body" })
108
109
  ] })
109
110
  }
@@ -114,17 +115,17 @@ const Oe = ({
114
115
  ),
115
116
  /* @__PURE__ */ e(W, {})
116
117
  ] }, t.x);
117
- }, je = w(Re), $e = ({
118
+ }, $e = _(je), Ge = ({
118
119
  chartData: t,
119
- hoveredData: l,
120
+ hoveredData: s,
120
121
  onDataClick: i,
121
122
  onButtonClick: n,
122
- onMouseEnter: s,
123
+ onMouseEnter: c,
123
124
  onMouseLeave: o,
124
125
  selectedData: a
125
126
  }) => {
126
- const { net_worth: c } = T(), u = z(), C = (x) => {
127
- const g = x.x === l?.x, S = x.x === a?.x, p = {
127
+ const { net_worth: l } = I(), u = z(), C = (x) => {
128
+ const g = x.x === s?.x, S = x.x === a?.x, p = {
128
129
  backgroundColor: "inherit",
129
130
  borderBottom: "inherit",
130
131
  color: "inherit"
@@ -133,90 +134,93 @@ const Oe = ({
133
134
  };
134
135
  return /* @__PURE__ */ r(h, { direction: "column", sx: { width: 320 }, children: [
135
136
  /* @__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(k, { sx: { backgroundColor: "transparent", mb: 8, mt: 12, px: 12 }, children: /* @__PURE__ */ e(m, { bold: !0, component: "h2", variant: "Body", children: l.monthly_totals }) }),
137
138
  /* @__PURE__ */ e(W, {}),
138
139
  t.map((x, g) => /* @__PURE__ */ e(
139
- je,
140
+ $e,
140
141
  {
141
142
  getStyles: C,
142
- isHovered: x.x === l?.x,
143
+ isHovered: x.x === s?.x,
143
144
  isSelected: x.x === a?.x,
144
145
  item: x,
145
146
  onItemClick: (S) => i(S, g),
146
- onMouseEnter: () => s(g),
147
+ onMouseEnter: () => c(g),
147
148
  onMouseLeave: () => o()
148
149
  },
149
150
  x.x
150
151
  ))
151
152
  ] }),
152
153
  /* @__PURE__ */ e(
153
- Te,
154
+ Le,
154
155
  {
155
156
  onClick: () => n(),
156
157
  sx: { alignSelf: "center", marginTop: 16, width: "fit-content" },
157
158
  variant: "outlined",
158
- children: c.view_assets_and_liabilities
159
+ children: l.view_assets_and_liabilities
159
160
  }
160
161
  )
161
162
  ] });
162
- }, Ge = w($e), Xe = ({
163
+ }, Xe = _(Ge), Fe = ({
163
164
  currencyLabel: t,
164
- currencyVariant: l = "Small",
165
+ currencyVariant: s = "Small",
165
166
  iconSize: i,
166
167
  netWorth: n,
167
- theme: s
168
+ theme: c
168
169
  }) => {
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: [
170
+ let o = c.palette.secondary.main, a = c.palette.secondary.main, l = "trending_flat";
171
+ return n.change < 0 ? l = "trending_down" : n.change > 0 && (o = c.palette.success.main, a = c.palette.success.main, l = "trending_up"), /* @__PURE__ */ r(Ne, { alignItems: "center", direction: "row", spacing: 4, children: [
171
172
  /* @__PURE__ */ e(
172
173
  H,
173
174
  {
174
- name: c,
175
+ name: l,
175
176
  size: i,
176
177
  sx: {
177
178
  color: o
178
179
  }
179
180
  }
180
181
  ),
181
- /* @__PURE__ */ e(y, { amount: n.change, color: a, variant: l }),
182
+ /* @__PURE__ */ e(y, { amount: n.change, color: a, variant: s }),
182
183
  /* @__PURE__ */ e(m, { variant: "Small", children: t })
183
184
  ] });
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");
185
+ }, R = _(Fe), Ke = ({ hoveredData: t, selectedData: s }) => {
186
+ const { net_worth: i } = I(), n = z(), c = t || s, o = Ee(ke(c.x), "MMMM");
186
187
  return /* @__PURE__ */ r(h, { alignItems: "center", direction: "column", m: 24, children: [
187
188
  /* @__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 })
189
+ /* @__PURE__ */ e(y, { amount: c.y, variant: "H2" }),
190
+ /* @__PURE__ */ e(R, { currencyLabel: i.this_month, netWorth: c, theme: n })
190
191
  ] });
191
- }, Ke = w(Fe), Ue = ({ amount: t, copy: l, trendValue: i }) => {
192
+ }, Ue = _(Ke), Ve = ({ amount: t, copy: s, trendValue: i }) => {
192
193
  const n = i > 0, o = i === 0 ? "trending_flat" : n ? "trending_up" : "trending_down";
193
194
  return /* @__PURE__ */ r(h, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
194
- /* @__PURE__ */ e(ve, { children: U(t, "0,0") }),
195
+ /* @__PURE__ */ e(Te, { children: V(t, "0,0") }),
195
196
  t !== 0 && /* @__PURE__ */ r(h, { sx: { color: n ? "success.main" : "text.secondary" }, children: [
196
197
  /* @__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") })
198
+ /* @__PURE__ */ e(re, { name: o, size: 20 }),
199
+ /* @__PURE__ */ e(m, { sx: { fontWeight: 600, textAlign: "right" }, variant: "body1", children: V(i, "0,0.00") })
199
200
  ] }),
200
- /* @__PURE__ */ e(m, { sx: { display: "block", textAlign: "right" }, variant: "caption", children: l.this_month })
201
+ /* @__PURE__ */ e(m, { sx: { display: "block", textAlign: "right" }, variant: "caption", children: s.this_month })
201
202
  ] })
202
203
  ] });
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" } }),
204
+ }, Ye = ({ copy: t }) => /* @__PURE__ */ r(h, { sx: { flexDirection: "row", gap: 12 }, children: [
205
+ /* @__PURE__ */ e(re, { name: "elevation", size: 32, sx: { color: "text.primary" } }),
205
206
  /* @__PURE__ */ r(h, { children: [
206
207
  /* @__PURE__ */ e(m, { sx: { display: "block", fontWeight: 600 }, variant: "body1", children: t.empty_widget_header }),
207
208
  /* @__PURE__ */ e(Ie, { sx: { color: "text.secondary" }, variant: "body2", children: t.zero_state_description })
208
209
  ] })
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 () => {
210
+ ] }), Ht = _(({ onCTAClick: t }) => {
211
+ const [s, i] = d.useState(!1), { visibleAccounts: n } = Q(), { onEvent: c } = P(), { net_worth: o, common: a } = I(), { isInitialized: l, selectedAccounts: u, setSelectedAccounts: C } = ee(), { loadChartData: x, loadNetWorthData: g, netWorthData: S, selectedData: p } = te(), f = async () => {
211
212
  await g(u), await x(1), i(!0);
212
213
  };
213
- if (d.useEffect(() => C(n), [n]), d.useEffect(() => {
214
- c && f().finally(), s(b.NET_WORTH_LOAD_WIDGET, {
214
+ if (ie({
215
+ widgetName: "NetWorthMicroWidget",
216
+ isLoaded: s
217
+ }), d.useEffect(() => C(n), [n]), d.useEffect(() => {
218
+ l && f().finally(), c(b.NET_WORTH_LOAD_WIDGET, {
215
219
  state: n?.length ? "default" : "zeroState"
216
220
  });
217
- }, [c]), !l) return /* @__PURE__ */ e(O, { height: 100 });
221
+ }, [l]), !s) return /* @__PURE__ */ e(O, { height: 100 });
218
222
  const L = () => {
219
- s(
223
+ c(
220
224
  n.length ? b.NET_WORTH_CLICK_VIEW_DETAILS : b.NET_WORTH_CLICK_GET_STARTED
221
225
  ), t();
222
226
  };
@@ -228,32 +232,32 @@ const Oe = ({
228
232
  onCTAClick: L,
229
233
  title: o.net_worth,
230
234
  children: S.accounts.length ? /* @__PURE__ */ e(
231
- Ue,
235
+ Ve,
232
236
  {
233
237
  amount: p?.y,
234
238
  copy: o,
235
239
  trendValue: p?.change
236
240
  }
237
- ) : /* @__PURE__ */ e(Ve, { copy: o })
241
+ ) : /* @__PURE__ */ e(Ye, { copy: o })
238
242
  }
239
243
  );
240
- }), Ye = ({ accounts: t, name: l, icon: i }) => {
241
- const [n, s] = d.useState(!1);
244
+ }), qe = ({ accounts: t, name: s, icon: i }) => {
245
+ const [n, c] = d.useState(!1);
242
246
  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 } }) }),
247
+ /* @__PURE__ */ e(D, { sx: (o) => ({ backgroundColor: o.palette.background.paper }), children: /* @__PURE__ */ r(ne, { onClick: () => c(!n), children: [
248
+ i && /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(H, { name: i, size: 24, sx: { mr: 12 } }) }),
245
249
  /* @__PURE__ */ e(
246
- _,
250
+ w,
247
251
  {
248
- primary: /* @__PURE__ */ e(m, { sx: { fontWeight: 700 }, variant: "Body", children: l })
252
+ primary: /* @__PURE__ */ e(m, { sx: { fontWeight: 700 }, variant: "Body", children: s })
249
253
  }
250
254
  ),
251
- /* @__PURE__ */ e(V, { children: n ? /* @__PURE__ */ e(H, { name: "expand_less", size: 24 }) : /* @__PURE__ */ e(H, { name: "expand_more", size: 24 }) })
255
+ /* @__PURE__ */ e(Y, { children: n ? /* @__PURE__ */ e(H, { name: "expand_less", size: 24 }) : /* @__PURE__ */ e(H, { name: "expand_more", size: 24 }) })
252
256
  ] }) }),
253
257
  /* @__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(
256
- _,
258
+ /* @__PURE__ */ e(Be, { in: n, timeout: "auto", unmountOnExit: !0, children: t.map((o, a) => /* @__PURE__ */ r(B, { children: [
259
+ /* @__PURE__ */ e(D, { sx: () => ({ py: 14 }), children: /* @__PURE__ */ e(
260
+ w,
257
261
  {
258
262
  primary: /* @__PURE__ */ r(h, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
259
263
  /* @__PURE__ */ e(
@@ -283,17 +287,17 @@ const Oe = ({
283
287
  a < t.length - 1 ? /* @__PURE__ */ e(W, { variant: "inset" }) : /* @__PURE__ */ e(W, {})
284
288
  ] }, o.accountName)) })
285
289
  ] });
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 = ({
290
+ }, Z = ({ groupedAccounts: t }) => /* @__PURE__ */ e(v, { children: t.map(({ accounts: s, icon: i, name: n }) => /* @__PURE__ */ e(qe, { accounts: s, icon: i, name: n }, n)) }), Ze = ({
287
291
  netWorth: t,
288
- assets: l,
292
+ assets: s,
289
293
  liabilities: i,
290
294
  totalAssets: n,
291
- totalLiabilities: s
295
+ totalLiabilities: c
292
296
  }) => {
293
- const { net_worth: o } = T(), a = ie();
297
+ const { net_worth: o } = I(), a = se();
294
298
  return /* @__PURE__ */ r(v, { children: [
295
299
  /* @__PURE__ */ r(
296
- re,
300
+ ae,
297
301
  {
298
302
  sx: {
299
303
  alignItems: "center",
@@ -319,8 +323,8 @@ const Oe = ({
319
323
  }
320
324
  ),
321
325
  /* @__PURE__ */ r(B, { children: [
322
- /* @__PURE__ */ e(E, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(
323
- _,
326
+ /* @__PURE__ */ e(k, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(
327
+ w,
324
328
  {
325
329
  primary: /* @__PURE__ */ r(h, { direction: "row", justifyContent: "space-between", children: [
326
330
  /* @__PURE__ */ e(m, { sx: { fontWeight: 700 }, variant: "XSmall", children: o.assets }),
@@ -328,36 +332,36 @@ const Oe = ({
328
332
  ] })
329
333
  }
330
334
  ) }),
331
- /* @__PURE__ */ e(q, { groupedAccounts: K(l) }),
332
- /* @__PURE__ */ e(E, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(
333
- _,
335
+ /* @__PURE__ */ e(Z, { groupedAccounts: U(s) }),
336
+ /* @__PURE__ */ e(k, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(
337
+ w,
334
338
  {
335
339
  primary: /* @__PURE__ */ r(h, { direction: "row", justifyContent: "space-between", children: [
336
340
  /* @__PURE__ */ e(m, { sx: { fontWeight: 700 }, variant: "XSmall", children: o.liabilities }),
337
- /* @__PURE__ */ e(y, { amount: s, sx: { fontWeight: 400 }, variant: "XSmall" })
341
+ /* @__PURE__ */ e(y, { amount: c, sx: { fontWeight: 400 }, variant: "XSmall" })
338
342
  ] })
339
343
  }
340
344
  ) }),
341
- /* @__PURE__ */ e(q, { groupedAccounts: K(i) })
345
+ /* @__PURE__ */ e(Z, { groupedAccounts: U(i) })
342
346
  ] })
343
347
  ] });
344
- }, Ze = w(qe), Je = ({
348
+ }, Je = _(Ze), Qe = ({
345
349
  netWorth: t,
346
- gains: l,
350
+ gains: s,
347
351
  losses: i,
348
352
  totalGains: n,
349
- totalLosses: s
353
+ totalLosses: c
350
354
  }) => {
351
- const { net_worth: o } = T(), a = ie();
355
+ const { net_worth: o } = I(), a = se();
352
356
  return /* @__PURE__ */ r(v, { children: [
353
357
  /* @__PURE__ */ r(h, { alignItems: "center", justifyContent: "space-between", mb: 8, pt: 24, children: [
354
- /* @__PURE__ */ e(m, { variant: "Small", children: ne(t?.x) }),
358
+ /* @__PURE__ */ e(m, { variant: "Small", children: oe(t?.x) }),
355
359
  /* @__PURE__ */ e(m, { variant: "Body", children: o.total_change }),
356
360
  t && /* @__PURE__ */ e(R, { currencyVariant: "H1", iconSize: 32, netWorth: t, theme: a })
357
361
  ] }),
358
362
  /* @__PURE__ */ r(B, { children: [
359
- /* @__PURE__ */ e(E, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(
360
- _,
363
+ /* @__PURE__ */ e(k, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(
364
+ w,
361
365
  {
362
366
  primary: /* @__PURE__ */ r(h, { direction: "row", justifyContent: "space-between", children: [
363
367
  /* @__PURE__ */ e(m, { sx: { fontWeight: 700 }, variant: "XSmall", children: o.gains }),
@@ -365,16 +369,16 @@ const Oe = ({
365
369
  ] })
366
370
  }
367
371
  ) }),
368
- l?.map((c) => /* @__PURE__ */ r(d.Fragment, { children: [
369
- /* @__PURE__ */ e(k, { sx: { backgroundColor: a.palette.background.paper, py: 14 }, children: /* @__PURE__ */ e(
370
- _,
372
+ s?.map((l) => /* @__PURE__ */ r(d.Fragment, { children: [
373
+ /* @__PURE__ */ e(D, { sx: { backgroundColor: a.palette.background.paper, py: 14 }, children: /* @__PURE__ */ e(
374
+ w,
371
375
  {
372
376
  primary: /* @__PURE__ */ r(h, { direction: "row", justifyContent: "space-between", children: [
373
- /* @__PURE__ */ e(m, { sx: { mr: 10 }, variant: "Body", children: c.accountName }),
377
+ /* @__PURE__ */ e(m, { sx: { mr: 10 }, variant: "Body", children: l.accountName }),
374
378
  /* @__PURE__ */ e(
375
379
  y,
376
380
  {
377
- amount: c.gain,
381
+ amount: l.gain,
378
382
  sx: { color: a.palette.success.main, flexShrink: 0, fontWeight: 700 },
379
383
  variant: "Body"
380
384
  }
@@ -384,23 +388,23 @@ const Oe = ({
384
388
  }
385
389
  ) }),
386
390
  /* @__PURE__ */ e(W, {})
387
- ] }, c.accountName)),
388
- /* @__PURE__ */ e(E, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(
389
- _,
391
+ ] }, l.accountName)),
392
+ /* @__PURE__ */ e(k, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(
393
+ w,
390
394
  {
391
395
  primary: /* @__PURE__ */ r(h, { direction: "row", justifyContent: "space-between", children: [
392
396
  /* @__PURE__ */ e(m, { sx: { fontWeight: 700 }, variant: "XSmall", children: o.losses }),
393
- /* @__PURE__ */ e(y, { amount: s, sx: { fontWeight: 400 }, variant: "XSmall" })
397
+ /* @__PURE__ */ e(y, { amount: c, sx: { fontWeight: 400 }, variant: "XSmall" })
394
398
  ] })
395
399
  }
396
400
  ) }),
397
- i?.map((c) => /* @__PURE__ */ r(v, { children: [
401
+ i?.map((l) => /* @__PURE__ */ r(v, { children: [
398
402
  /* @__PURE__ */ e(
399
- k,
403
+ D,
400
404
  {
401
405
  sx: { backgroundColor: a.palette.background.paper, py: 14 },
402
406
  children: /* @__PURE__ */ e(
403
- _,
407
+ w,
404
408
  {
405
409
  primary: /* @__PURE__ */ r(h, { direction: "row", justifyContent: "space-between", children: [
406
410
  /* @__PURE__ */ e(
@@ -410,13 +414,13 @@ const Oe = ({
410
414
  mr: 10
411
415
  },
412
416
  variant: "Body",
413
- children: c.accountName
417
+ children: l.accountName
414
418
  }
415
419
  ),
416
420
  /* @__PURE__ */ e(
417
421
  y,
418
422
  {
419
- amount: c.loss,
423
+ amount: l.loss,
420
424
  sx: { flexShrink: 0, fontWeight: 700 },
421
425
  variant: "Body"
422
426
  }
@@ -426,14 +430,14 @@ const Oe = ({
426
430
  }
427
431
  )
428
432
  },
429
- c.accountName
433
+ l.accountName
430
434
  ),
431
435
  /* @__PURE__ */ e(W, {})
432
436
  ] }))
433
437
  ] })
434
438
  ] });
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(), {
439
+ }, Pe = _(Qe), Bt = _(({ onBackClick: t }) => {
440
+ const { isCopyLoaded: s, isInitialized: i, selectedAccounts: n, setSelectedAccounts: c } = ee(), { accounts: o, net_worth: a } = I(), { visibleAccounts: l } = Q(), {
437
441
  assetsLiabilities: u,
438
442
  gainsLosses: C,
439
443
  hoveredData: x,
@@ -442,50 +446,53 @@ const Oe = ({
442
446
  netWorthChartData: p,
443
447
  selectedData: f,
444
448
  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);
449
+ setSelectedData: ce
450
+ } = te(), { isMobile: N } = J(), { onEvent: E } = P(), [j, le] = d.useState(!1), [M, me] = d.useState(6), [de, $] = d.useState(!1), [he, G] = d.useState(!1), [ue, X] = d.useState(!1), pe = async () => {
451
+ await S(n), await g(M), le(!0);
448
452
  };
449
- d.useEffect(() => {
450
- D(b.NET_WORTH_VIEW);
453
+ ie({
454
+ widgetName: "NetWorthWidget",
455
+ isLoaded: j
456
+ }), d.useEffect(() => {
457
+ E(b.NET_WORTH_VIEW);
451
458
  }, []), d.useEffect(() => {
452
- s(c);
453
- }, [c]), d.useEffect(() => {
454
- i && ue().finally();
459
+ c(l);
460
+ }, [l]), d.useEffect(() => {
461
+ i && pe().finally();
455
462
  }, [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) => {
461
- L(I);
462
- }, xe = () => {
463
- L(null);
463
+ E(b.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: M + "M" }), g(M).finally();
464
+ }, [M]);
465
+ const fe = (T, A) => {
466
+ ce(A), T.currentTarget instanceof HTMLDivElement && $(!0);
467
+ }, xe = (T) => {
468
+ L(T);
464
469
  }, 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 = {
470
+ L(null);
471
+ }, ye = () => {
472
+ E(b.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES), G(!0);
473
+ }, Ce = async (T) => {
474
+ const A = T[0], K = T[1];
475
+ A && K && me(De(K, A));
476
+ }, F = {
470
477
  chartData: p,
471
478
  hoveredData: x,
472
- onButtonClick: ge,
473
- onDataClick: pe,
474
- onMouseEnter: fe,
475
- onMouseLeave: xe,
479
+ onButtonClick: ye,
480
+ onDataClick: fe,
481
+ onMouseEnter: xe,
482
+ onMouseLeave: ge,
476
483
  selectedData: f
477
- }, Ce = () => {
478
- G(!0), D(b.ACCOUNTS_CLICK_CONNECT);
484
+ }, Se = () => {
485
+ X(!0), E(b.ACCOUNTS_CLICK_CONNECT);
479
486
  };
480
- return l ? /* @__PURE__ */ e(
481
- ke,
487
+ return s ? /* @__PURE__ */ e(
488
+ Me,
482
489
  {
483
- accountOptions: c,
490
+ accountOptions: l,
484
491
  calendarActions: {
485
- onRangeChanged: ye
492
+ onRangeChanged: Ce
486
493
  },
487
494
  dateRangeVariant: N ? "timeframetabs" : "timeframebuttons",
488
- onAccountsFilterClick: () => D(b.NET_WORTH_WIDGET_CLICK_FILTER),
495
+ onAccountsFilterClick: () => E(b.NET_WORTH_WIDGET_CLICK_FILTER),
489
496
  onBackClick: t,
490
497
  showDividerAboveDateSelector: !1,
491
498
  sx: {
@@ -502,9 +509,9 @@ const Oe = ({
502
509
  }
503
510
  },
504
511
  title: a.net_worth,
505
- children: se ? /* @__PURE__ */ r(v, { children: [
512
+ children: j ? /* @__PURE__ */ r(v, { children: [
506
513
  p.length ? /* @__PURE__ */ r(v, { children: [
507
- f && /* @__PURE__ */ e(Ke, { hoveredData: x, selectedData: f }),
514
+ f && /* @__PURE__ */ e(Ue, { hoveredData: x, selectedData: f }),
508
515
  /* @__PURE__ */ r(
509
516
  h,
510
517
  {
@@ -512,17 +519,17 @@ const Oe = ({
512
519
  direction: N ? "column" : "row",
513
520
  spacing: N ? 0 : 48,
514
521
  children: [
515
- /* @__PURE__ */ e(ze, { ...X }),
516
- /* @__PURE__ */ e(Ge, { ...X })
522
+ /* @__PURE__ */ e(Re, { ...F }),
523
+ /* @__PURE__ */ e(Xe, { ...F })
517
524
  ]
518
525
  }
519
526
  )
520
- ] }) : /* @__PURE__ */ e(re, { sx: { justifyItems: "center" }, children: /* @__PURE__ */ e(
521
- Be,
527
+ ] }) : /* @__PURE__ */ e(ae, { sx: { justifyItems: "center" }, children: /* @__PURE__ */ e(
528
+ Oe,
522
529
  {
523
530
  header: a.empty_widget_header,
524
531
  icon: "elevation",
525
- onClick: Ce,
532
+ onClick: Se,
526
533
  primaryButton: a.empty_widget_button,
527
534
  subText: a.empty_widget_description,
528
535
  sx: {
@@ -534,35 +541,35 @@ const Oe = ({
534
541
  }
535
542
  ) }),
536
543
  /* @__PURE__ */ e(
537
- Me,
544
+ He,
538
545
  {
539
- onClose: () => G(!1),
540
- showConnectionsWidget: he,
546
+ onClose: () => X(!1),
547
+ showConnectionsWidget: ue,
541
548
  title: o.manage_connections
542
549
  }
543
550
  ),
544
551
  /* @__PURE__ */ e(
545
- Y,
552
+ q,
546
553
  {
547
554
  ariaLabelClose: "Close",
548
- isOpen: me,
549
- onClose: () => j(!1),
555
+ isOpen: de,
556
+ onClose: () => $(!1),
550
557
  shouldShowHeaderBorders: !1,
551
558
  shouldShowHeaderShadow: !0,
552
559
  title: a.gains_and_losses,
553
- children: C && /* @__PURE__ */ e(Qe, { ...C })
560
+ children: C && /* @__PURE__ */ e(Pe, { ...C })
554
561
  }
555
562
  ),
556
563
  /* @__PURE__ */ e(
557
- Y,
564
+ q,
558
565
  {
559
566
  ariaLabelClose: "Close",
560
- isOpen: de,
561
- onClose: () => $(!1),
567
+ isOpen: he,
568
+ onClose: () => G(!1),
562
569
  shouldShowHeaderBorders: !1,
563
570
  shouldShowHeaderShadow: !0,
564
571
  title: a.assets_and_liabilities,
565
- children: u && /* @__PURE__ */ e(Ze, { ...u })
572
+ children: u && /* @__PURE__ */ e(Je, { ...u })
566
573
  }
567
574
  )
568
575
  ] }) : /* @__PURE__ */ e(O, {})
@@ -570,10 +577,10 @@ const Oe = ({
570
577
  ) : /* @__PURE__ */ e(O, {});
571
578
  });
572
579
  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
580
+ Re as NetWorthChart,
581
+ Xe as NetWorthList,
582
+ Ht as NetWorthMicroWidget,
583
+ Rt as NetWorthStore,
584
+ Ue as NetWorthSummary,
585
+ Bt as NetWorthWidget
579
586
  };