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

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 (182) hide show
  1. package/CHANGELOG.md +128 -1
  2. package/dist/{Account-Bxw0_4FU.mjs → Account-BDXA6PWh.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-CAM9y39M.mjs → AccountDetailsContent-CUztd3-b.mjs} +87 -83
  4. package/dist/AccountDetailsHeader-i3KFhNuo.mjs +87 -0
  5. package/dist/{AccountFields-C9FlatNb.mjs → AccountFields-QZspYAji.mjs} +6 -6
  6. package/dist/{AccountListItem-JFMZROh7.mjs → AccountListItem-DX5upmCS.mjs} +5 -5
  7. package/dist/{AccountStore-BgNOyMdp.mjs → AccountStore-BcnDpyLL.mjs} +19 -8
  8. package/dist/{Accounts-BRf_YeTf.mjs → Accounts-DXfZotRC.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-Df2nII9u.mjs} +2 -2
  12. package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-DqJK_rrL.mjs} +23 -21
  13. package/dist/{CategoryStore-yHI0hWmK.mjs → CategoryStore-DTgyAMM7.mjs} +12 -10
  14. package/dist/{CategoryUtil-pZRIYOgN.mjs → CategoryUtil-C5cR-nfQ.mjs} +1 -1
  15. package/dist/{ConnectDrawer-BQNs-hjk.mjs → ConnectDrawer-BIbTqYOH.mjs} +2 -2
  16. package/dist/{ConnectionsDrawer-ByGQE7D5.mjs → ConnectionsDrawer-BFfY3_zB.mjs} +3 -3
  17. package/dist/{CurrencyInput-DUsQbkXb.mjs → CurrencyInput-BFKcs-_K.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-BbJB0nmu.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-BEtCk82g.mjs +163 -0
  24. package/dist/{EmptyState-DA_lfRBv.mjs → EmptyState-DoxNUae-.mjs} +24 -22
  25. package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-DzTrtPzk.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-DpWY3gVb.mjs} +5 -5
  29. package/dist/{Help-B6dIcujh.mjs → Help-BnPXM_N2.mjs} +2 -2
  30. package/dist/LineChart-bc1D9xBE.mjs +581 -0
  31. package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-uobBrm_a.mjs} +10 -10
  32. package/dist/{ManageIncome-1s_q5W4X.mjs → ManageIncome-NpXHhO1n.mjs} +177 -174
  33. package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-WvZ4gnQe.mjs} +1 -1
  34. package/dist/{MicroWidgetContainer-DpeqN9n3.mjs → MicroWidgetContainer-DEiRnYVa.mjs} +1 -1
  35. package/dist/{MiniWidgetContainer-D0gfmbaF.mjs → MiniWidgetContainer-CmXpTylX.mjs} +1 -1
  36. package/dist/{NetWorthStore-DCsTZpuS.mjs → NetWorthStore-lsuhEpn6.mjs} +2 -2
  37. package/dist/{NotificationSettings-DqrkNMod.mjs → NotificationSettings-CNmJWVeI.mjs} +241 -238
  38. package/dist/{NotificationStore-BxP_P2dA.mjs → NotificationStore-Ck2KdNmT.mjs} +10 -10
  39. package/dist/{NumberFormatting-Buh7u8Oi.mjs → NumberFormatting-DjTD0t3W.mjs} +9 -9
  40. package/dist/{OriginalBalanceAction-CWuVvRq9.mjs → OriginalBalanceAction-DK8_LkPz.mjs} +4 -4
  41. package/dist/{RecurringSettings-A_rAGCTP.mjs → RecurringSettings-CqZh1SQa.mjs} +17 -17
  42. package/dist/{RecurringTransactions-DK8dWldr.mjs → RecurringTransactions-BKcYmpv3.mjs} +46 -45
  43. package/dist/{RecurringTransactionsStore-C4YOD7_D.mjs → RecurringTransactionsStore-Ni5tSQIO.mjs} +80 -73
  44. package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-krIRNwHK.mjs} +3 -3
  45. package/dist/SkeletonLoader-BaNboJjD.mjs +38 -0
  46. package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-BuJ03S9d.mjs} +16 -16
  47. package/dist/SpendingLegend-CjX-hX2O.mjs +193 -0
  48. package/dist/{ToggleListItem-r0Kx56wF.mjs → ToggleListItem-ciFTiqRS.mjs} +19 -14
  49. package/dist/TransactionApi-CjBoLleL.mjs +86 -0
  50. package/dist/TransactionDetails-5M2vfr59.mjs +1379 -0
  51. package/dist/{TransactionStore-ai3uII_r.mjs → TransactionStore-D-Q3BU9Z.mjs} +119 -121
  52. package/dist/TrendsStore-BW9FGQeE.mjs +182 -0
  53. package/dist/{User-BQUxBeZV.mjs → User-wXzDI4M8.mjs} +2 -2
  54. package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-C0832BMe.mjs} +702 -723
  55. package/dist/{WidgetContainer-BHWANqT4.mjs → WidgetContainer-BhQ1Kx2z.mjs} +4 -4
  56. package/dist/accounts/components/AccountsListCompact.d.ts +10 -0
  57. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +4 -1
  58. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +2 -1
  59. package/dist/accounts/index.es.js +229 -222
  60. package/dist/accounts/stores/AccountStore.d.ts +2 -0
  61. package/dist/analytics/index.es.js +2 -2
  62. package/dist/budgets/index.es.js +380 -382
  63. package/dist/cashflow/index.es.js +405 -413
  64. package/dist/categories/index.es.js +2 -2
  65. package/dist/categories/stores/CategoryStore.d.ts +1 -1
  66. package/dist/common/components/ErrorBoundary.d.ts +1 -1
  67. package/dist/common/components/Select.d.ts +4 -2
  68. package/dist/common/components/charts/LineChart.d.ts +12 -2
  69. package/dist/common/components/charts/index.d.ts +0 -3
  70. package/dist/common/components/charts/linechart/CustomLegend.d.ts +3 -1
  71. package/dist/common/components/charts/linechart/CustomMark.d.ts +4 -0
  72. package/dist/common/components/drawer/Drawer.d.ts +3 -0
  73. package/dist/common/components/drawer/Footer.d.ts +17 -0
  74. package/dist/common/hooks/index.d.ts +0 -1
  75. package/dist/common/hooks/useAriaLive.d.ts +1 -1
  76. package/dist/common/index.es.js +320 -321
  77. package/dist/common/stores/GlobalStore.d.ts +7 -1
  78. package/dist/common/types/Finstrong.d.ts +54 -0
  79. package/dist/common/types/Global.d.ts +1 -0
  80. package/dist/common/types/Widgets.d.ts +1 -0
  81. package/dist/common/types/index.d.ts +1 -1
  82. package/dist/common/types/localization/FinstrongCopy.d.ts +105 -2
  83. package/dist/common/types/localization/GoalsCopy.d.ts +1 -0
  84. package/dist/dashboard/index.es.js +2 -2
  85. package/dist/debts/index.es.js +506 -498
  86. package/dist/exportTransactionsToCSV-Cz2t0lmA.mjs +48 -0
  87. package/dist/finstrong/FinstrongWidget.d.ts +1 -1
  88. package/dist/finstrong/api/FinstrongApi.d.ts +5 -0
  89. package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +3 -1
  90. package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +4 -0
  91. package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +4 -0
  92. package/dist/finstrong/components/FinancialStrengthGraph.d.ts +7 -1
  93. package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +3 -0
  94. package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +3 -0
  95. package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +4 -0
  96. package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +3 -0
  97. package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
  98. package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +4 -1
  99. package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
  100. package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
  101. package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +4 -3
  102. package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +10 -0
  103. package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
  104. package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +6 -0
  105. package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +4 -0
  106. package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +4 -0
  107. package/dist/finstrong/components/ProgressBar.d.ts +15 -0
  108. package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +3 -0
  109. package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +3 -0
  110. package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +4 -0
  111. package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +3 -0
  112. package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +3 -0
  113. package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +4 -0
  114. package/dist/finstrong/components/StatusChip.d.ts +5 -0
  115. package/dist/finstrong/components/onboarding/Onboarding.d.ts +2 -0
  116. package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +17 -0
  117. package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +8 -0
  118. package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +8 -0
  119. package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +14 -0
  120. package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +8 -0
  121. package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +4 -0
  122. package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +4 -0
  123. package/dist/finstrong/components/shared/Accounts.d.ts +8 -0
  124. package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +25 -0
  125. package/dist/finstrong/components/shared/DialScoreCard.d.ts +7 -1
  126. package/dist/finstrong/components/shared/DoubleBarChart.d.ts +28 -0
  127. package/dist/finstrong/components/shared/LineGraph.d.ts +7 -0
  128. package/dist/finstrong/components/shared/TotalCard.d.ts +8 -0
  129. package/dist/finstrong/components/shared/Transactions.d.ts +11 -0
  130. package/dist/finstrong/constants/index.d.ts +9 -0
  131. package/dist/finstrong/index.es.js +3171 -1063
  132. package/dist/finstrong/stores/FinstrongStore.d.ts +25 -2
  133. package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
  134. package/dist/goals/index.es.js +566 -562
  135. package/dist/help/index.es.js +3 -3
  136. package/dist/{hooks-D6XlXHf4.mjs → hooks-C41HAxM5.mjs} +3 -3
  137. package/dist/insights/index.es.js +1 -1
  138. package/dist/investments/index.es.js +437 -435
  139. package/dist/merchants/index.es.js +2 -2
  140. package/dist/microinsights/beaticons/BeatIcon.d.ts +2 -9
  141. package/dist/microinsights/beaticons/BeatMerchantLogo.d.ts +3 -2
  142. package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +2 -1
  143. package/dist/microinsights/cards/{MicroInsightCard.d.ts → BaseCard.d.ts} +1 -8
  144. package/dist/microinsights/cards/{BeatCard.d.ts → InsightCard.d.ts} +2 -2
  145. package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +2 -5
  146. package/dist/microinsights/cards/ZeroStateCard.d.ts +2 -5
  147. package/dist/microinsights/carousel/BeatList.d.ts +10 -0
  148. package/dist/microinsights/carousel/CarouselControls.d.ts +1 -3
  149. package/dist/microinsights/carousel/CarouselHeader.d.ts +1 -2
  150. package/dist/microinsights/constants/App.d.ts +0 -1
  151. package/dist/microinsights/index.d.ts +3 -3
  152. package/dist/microinsights/index.es.js +7 -7
  153. package/dist/microinsights/interfaces.d.ts +0 -6
  154. package/dist/networth/index.es.js +188 -186
  155. package/dist/notifications/index.es.js +95 -96
  156. package/dist/recurringtransactions/components/MicroWidgetContent.d.ts +3 -0
  157. package/dist/recurringtransactions/index.es.js +584 -560
  158. package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +1 -0
  159. package/dist/settings/index.es.js +286 -280
  160. package/dist/spending/index.es.js +269 -421
  161. package/dist/spending/utils/SpendingData.d.ts +2 -1
  162. package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -0
  163. package/dist/transactions/components/shared/TransactionList.d.ts +1 -0
  164. package/dist/transactions/index.es.js +226 -220
  165. package/dist/transactions/stores/TransactionStore.d.ts +1 -1
  166. package/dist/transactions/stores/UiStore.d.ts +0 -2
  167. package/dist/trends/index.es.js +963 -586
  168. package/dist/{useAccountDisplayName-BUAApBIb.mjs → useAccountDisplayName-CFNF8766.mjs} +2 -2
  169. package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-CRwX-qWE.mjs} +1 -1
  170. package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-CNjP5cfR.mjs} +1 -1
  171. package/package.json +7 -7
  172. package/dist/AccountDetailsHeader-JtSX6Uf9.mjs +0 -120
  173. package/dist/Drawer-kEE73B87.mjs +0 -113
  174. package/dist/FinstrongStore-F2c607dj.mjs +0 -101
  175. package/dist/LineChart-D4GI7nVh.mjs +0 -541
  176. package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
  177. package/dist/TransactionDetails-oP1eSuiS.mjs +0 -1334
  178. package/dist/TrendsStore-DCYbpXPO.mjs +0 -559
  179. package/dist/common/hooks/usePrevious.d.ts +0 -2
  180. package/dist/exportTransactionsToCSV-7bVS7KXf.mjs +0 -47
  181. package/dist/finstrong/utils/Finstrong.d.ts +0 -6
  182. package/dist/useAriaLive-B3_pRUio.mjs +0 -35
package/CHANGELOG.md CHANGED
@@ -1,6 +1,133 @@
1
+ ## [7.4.7] - 12-15-2025
2
+
3
+ - **UPDATED** - Improved `d3` chunk loading for better performance.
4
+
5
+ ## [7.4.6] - 12-12-2025
6
+
7
+ - **FIXED** - Mobile issues on Financial Wellness Card
8
+
9
+ ## [7.4.5] - 12-12-2025
10
+
11
+ - **FIXED** - `Goals Widget` - Accounts Filter is fixed in Goals widget
12
+
13
+ ## [7.4.4] - 12-11-2025
14
+
15
+ - **FIXED** - `FinStrong` - Missing data issue and loading issue fix
16
+
17
+ ## [7.4.3] - 12-11-2025
18
+
19
+ - **FIXED** - `FinStrong` - Cosmetic Changes
20
+
21
+ ## [7.4.2] - 12-10-2025
22
+
23
+ - **UPDATED** - `InsightsMicroWidget` - width bug on zero state fixed
24
+
25
+ ## [7.4.1] - 12-10-2025
26
+
27
+ - **UPDATED** - `InsightsMicroWidget` - code cleanup, stories added, margin on zero state bug fixes
28
+
29
+ ## [7.4.0] - 12-09-2025
30
+
31
+ - **ADDED** - MUI refresh for `FinStrong`
32
+
33
+ ## [7.3.2] - 12-09-2025
34
+
35
+ - **FIXED** Add invisible accessibility label/description for RecurringTransactionsMiniWidget calendar
36
+ - **FIXED** Focus mini recurring transaction list after calendar month/day filter for better accessibility
37
+ - **FIXED** Clarify alt text for institution logos in RecurrenceRow
38
+
39
+ ## [7.3.1] - 12-09-2025
40
+
41
+ - **UPDATED** `SpendingWidget` to have an export csv button on transactions list
42
+
43
+ ## [7.3.0] - 12-09-2025
44
+
45
+ - **UPDATED** - Improved `X-Charts` chunk loading for better performance.
46
+
47
+ ## [7.2.30] - 12-09-2025
48
+
49
+ - **UPDATED** Bug Fixed - Account Type Edit Interactions - Low Account Balance
50
+
51
+ ## [7.2.29] - 12-08-2025
52
+
53
+ - **UPDATED** `InsightsMicroWidget` refactor list of beats into `BeatList` component
54
+
55
+ ## [7.2.28] - 12-08-2025
56
+
57
+ - **UPDATED** `InsightsMicroWidget` storybook to documention batcave settings
58
+
59
+ ## [7.2.27] - 12-08-2025
60
+
61
+ - **UPDATED** Clean up `shouldApplyNewAnimation` code
62
+
63
+ ## [7.2.26] - 12-08-2025
64
+
65
+ - **FIXED** - BUG Fixed - Inisghts Notifications Text Displays in Dark when in Dark mode
66
+
67
+ ## [7.2.25] - 12-04-2025
68
+
69
+ - **UPDATED** - `Fetch` to throw 401 error on `PUT` so that Insights can handle logging user out
70
+
71
+ ## [7.2.24] - 12-05-2025
72
+
73
+ - **FIXED** - `mark_all_as_viewd` API called after getting `notifications` api response in `Notifications List`.
74
+
75
+ ## [7.2.23] - 12-03-2025
76
+
77
+ - **UPDATED** - `GlobalStore` emits an update when a subscribed-to variable changes. Good for external libraries like Pulse.
78
+ - **UPDATED** - Ability to hide flag with prop `canFlagTransactions` in `TransactionDetails`
79
+ - **FIXED** - Lonely `Actions` header if no bottom actions in `TransactionDetails`
80
+
81
+ ## [7.2.22] - 12-03-2025
82
+
83
+ - **FIXED** - Aria annoounce for split row error messages
84
+ - **FIXED** - Aria label for add subcategory modal
85
+
86
+ ## [7.2.21] - 12-03-2025
87
+
88
+ - **FIXED** - Debts mobile view Bug Fix
89
+
90
+ ## [7.2.20] - 12-02-2025
91
+
92
+ - **FIXED** - Chart legend labels to show when amount is 0
93
+
94
+ ## [7.2.19] - 12-02-2025
95
+
96
+ - **FIXED** - Budget Bubbles tooltips to anchor on element
97
+
98
+ ## [7.2.18] - 12-02-2025
99
+
100
+ - **UPDATED** - Insights app bell icon has_been_viewed fixed
101
+
102
+ ## [7.2.17] - 12-01-2025
103
+
104
+ - **ADDED** - Load time tracking for full standalone widgets
105
+
106
+ ## [7.2.16] - 12-01-2025
107
+
108
+ - **FIXED** - Missing `Pending` column in CSV export
109
+
110
+ ## [7.2.15] - 11-25-2025
111
+
112
+ - **FIXED** - Next recurring transaction date displayed offset by one day
113
+
1
114
  ## [7.2.14] - 11-25-2025
2
115
 
3
- - **FIXED** - Removed border from embedded widgets
116
+ - # **FIXED** - Removed border from embedded widgets
117
+
118
+ ## [7.2.14] - 11-24-2025
119
+
120
+ =======
121
+
122
+ ## [7.2.14] - 11-25-2025
123
+
124
+ > > > > > > > fd2b3985 (Icon cleanup)
125
+
126
+ - **UPDATED** - remove uneeded client color scheme reference from `microinsights`
127
+
128
+ > > > > > > > 38a99394 (remove client color scheme references)
129
+
130
+ - **UPDATED** - icon code cleanup in `microinsights`
4
131
 
5
132
  ## [7.2.13] - 11-24-2025
6
133
 
@@ -1,4 +1,4 @@
1
- import { A as C } from "./ConnectDrawer-BQNs-hjk.mjs";
1
+ import { A as C } from "./ConnectDrawer-BIbTqYOH.mjs";
2
2
  const I = [
3
3
  C.ANY,
4
4
  C.CASH,
@@ -1,28 +1,28 @@
1
1
  import { jsxs as d, Fragment as g, jsx as t } from "react/jsx-runtime";
2
- import _ from "react";
3
- import { observer as T } from "mobx-react-lite";
2
+ import u from "react";
3
+ import { observer as S } from "mobx-react-lite";
4
4
  import H from "@mui/material/Tab";
5
5
  import nt from "@mui/material/Tabs";
6
6
  import $ from "@mui/material/List";
7
7
  import Y from "@mui/material/ListSubheader";
8
8
  import ot from "@mui/material/Switch";
9
- import { Text as b, Icon as I, THEMES as G } from "@mxenabled/mxui";
9
+ import { Text as T, Icon as I, THEMES as G } from "@mxenabled/mxui";
10
10
  import M from "@mui/material/Divider";
11
11
  import v from "@mui/material/ListItem";
12
12
  import N from "@mui/material/ListItemButton";
13
13
  import w from "@mui/material/ListItemText";
14
- import { u as D } from "./AccountDetailsHeader-JtSX6Uf9.mjs";
15
- import { d as z, u as E, g as O, h as X } from "./hooks-D6XlXHf4.mjs";
16
- import { A as at } from "./AccountListItem-JFMZROh7.mjs";
17
- import { A as k } from "./WidgetContainer-BHWANqT4.mjs";
18
- import { a as V, f as B, D as K } from "./Dialog-CWW597AF.mjs";
14
+ import { u as E } from "./AccountDetailsHeader-i3KFhNuo.mjs";
15
+ import { d as z, u as y, g as O, h as X } from "./hooks-C41HAxM5.mjs";
16
+ import { A as at } from "./AccountListItem-DX5upmCS.mjs";
17
+ import { A as k } from "./WidgetContainer-BhQ1Kx2z.mjs";
18
+ import { D as V, f as B, a as K } from "./Dialog-BPTr3qHE.mjs";
19
19
  import { b as h } from "./Localization-2MODESHW.mjs";
20
- import { D as J } from "./Drawer-kEE73B87.mjs";
20
+ import { D as J } from "./Drawer-BEtCk82g.mjs";
21
21
  import P from "@mui/material/ListItemAvatar";
22
22
  import ct from "@mui/material/Stack";
23
23
  import st from "@mui/material/styles/useTheme";
24
24
  import { Error as q, CheckCircle as it, Language as rt } from "@mxenabled/mx-icons";
25
- import { n as m, N as Q, l as Z, F as R } from "./ConnectDrawer-BQNs-hjk.mjs";
25
+ import { n as m, N as Q, l as Z, F as R } from "./ConnectDrawer-BIbTqYOH.mjs";
26
26
  import { fromUnixTime as lt } from "date-fns/fromUnixTime";
27
27
  import { isToday as dt } from "date-fns/isToday";
28
28
  import { isYesterday as ut } from "date-fns/isYesterday";
@@ -37,14 +37,14 @@ import { LocalizationProvider as ft } from "@mui/x-date-pickers-pro";
37
37
  import bt from "@mui/material/MenuItem";
38
38
  import At from "@mui/material/Select";
39
39
  import Tt from "@mui/material/TextField";
40
- import { C as St } from "./CurrencyInput-DUsQbkXb.mjs";
41
- import { b as Dt } from "./AccountFields-C9FlatNb.mjs";
40
+ import { C as Dt } from "./CurrencyInput-BFKcs-_K.mjs";
41
+ import { b as St } from "./AccountFields-QZspYAji.mjs";
42
42
  import Et from "@mui/material/Alert";
43
43
  import yt from "@mui/material/AlertTitle";
44
44
  import xt from "@mui/material/Link";
45
45
  import wt from "@mui/material/Paper";
46
46
  import { subDays as kt, startOfToday as It, endOfToday as Mt } from "date-fns";
47
- import { T as vt, a as Lt } from "./TransactionDetails-oP1eSuiS.mjs";
47
+ import { T as vt, a as Lt } from "./TransactionDetails-5M2vfr59.mjs";
48
48
  import { T as j } from "./TabContentContainer-j01JYR_7.mjs";
49
49
  const U = ({
50
50
  children: e,
@@ -59,28 +59,28 @@ const U = ({
59
59
  ] }) }),
60
60
  /* @__PURE__ */ t(M, { sx: { ml: o ? 0 : 24 } })
61
61
  ] }), Nt = () => {
62
- const { accounts: e } = z(), { selectedAccount: o, selectedMember: n } = D();
62
+ const { accounts: e } = z(), { selectedAccount: o, selectedMember: n } = E();
63
63
  return e.filter(
64
64
  (c) => c.member_guid === n.guid && n.successfully_aggregated_at && c.guid !== o.guid
65
65
  );
66
66
  }, Ot = () => {
67
- const [e, o] = _.useState(!1), [n, c] = _.useState(!1), [i, u] = _.useState(!1), [l, s] = _.useState({}), { selectedAccount: r } = D(), { mergeAccounts: y, updateAccount: S } = z(), { accounts: a } = E(), C = Nt(), { onEvent: A } = O(), { modifyTransactionByAccountGuid: x } = X(), L = async (f) => {
68
- await S({
67
+ const [e, o] = u.useState(!1), [n, c] = u.useState(!1), [i, _] = u.useState(!1), [l, s] = u.useState({}), { selectedAccount: r } = E(), { mergeAccounts: f, updateAccount: b } = z(), { accounts: a } = y(), C = Nt(), { onEvent: D } = O(), { modifyTransactionByAccountGuid: x } = X(), L = async (A) => {
68
+ await b({
69
69
  ...r,
70
- ...f
71
- }), "is_closed" in f && f.is_closed !== r.is_closed && x(r.guid, { accountIsClosed: f.is_closed });
70
+ ...A
71
+ }), "is_closed" in A && A.is_closed !== r.is_closed && x(r.guid, { accountIsClosed: A.is_closed });
72
72
  }, p = () => {
73
- y([r.guid, l.guid]).finally(
73
+ f([r.guid, l.guid]).finally(
74
74
  () => c(!1)
75
75
  );
76
76
  };
77
77
  return /* @__PURE__ */ d(g, { children: [
78
- /* @__PURE__ */ t(Y, { sx: { backgroundColor: "transparent", mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(b, { bold: !0, component: "h2", variant: "XSmall", children: a.actions }) }),
78
+ /* @__PURE__ */ t(Y, { sx: { backgroundColor: "transparent", mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(T, { bold: !0, component: "h2", variant: "XSmall", children: a.actions }) }),
79
79
  /* @__PURE__ */ t(
80
80
  U,
81
81
  {
82
82
  onClick: () => {
83
- L({ is_hidden: !r.is_hidden }), A(k.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: r.guid });
83
+ L({ is_hidden: !r.is_hidden }), D(k.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: r.guid });
84
84
  },
85
85
  primaryText: r.is_hidden ? a.unhide_account : a.hide_Account,
86
86
  secondaryText: r.is_hidden ? a.include_this_account : a.exclude_this_account,
@@ -91,7 +91,7 @@ const U = ({
91
91
  U,
92
92
  {
93
93
  onClick: () => {
94
- o(!0), A(k.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
94
+ o(!0), D(k.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
95
95
  account_guid: r.guid
96
96
  });
97
97
  },
@@ -105,7 +105,7 @@ const U = ({
105
105
  {
106
106
  isLast: !0,
107
107
  onClick: () => {
108
- c(!0), A(k.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
108
+ c(!0), D(k.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
109
109
  account_guid: r.guid
110
110
  });
111
111
  },
@@ -126,7 +126,7 @@ const U = ({
126
126
  o(!1);
127
127
  },
128
128
  onPrimaryAction: () => L({ is_closed: !r.is_closed }),
129
- children: /* @__PURE__ */ t(b, { truncate: !1, children: h(
129
+ children: /* @__PURE__ */ t(T, { truncate: !1, children: h(
130
130
  r.is_closed ? a.this_will_resume_updating_the_balance : a.this_will_set_the_balance_of_your_account,
131
131
  r.name
132
132
  ) })
@@ -139,20 +139,20 @@ const U = ({
139
139
  isOpen: n,
140
140
  onClose: () => c(!1),
141
141
  title: a.mark_as_duplicate,
142
- children: /* @__PURE__ */ t($, { children: C.map((f) => {
143
- const et = C.indexOf(f) === C.length - 1;
144
- return /* @__PURE__ */ d(_.Fragment, { children: [
142
+ children: /* @__PURE__ */ t($, { children: C.map((A) => {
143
+ const et = C.indexOf(A) === C.length - 1;
144
+ return /* @__PURE__ */ d(u.Fragment, { children: [
145
145
  /* @__PURE__ */ t(
146
146
  at,
147
147
  {
148
- account: f,
148
+ account: A,
149
149
  onRowClick: () => {
150
- u(!0), s(f);
150
+ _(!0), s(A);
151
151
  }
152
152
  }
153
153
  ),
154
154
  /* @__PURE__ */ t($, { sx: { ml: et ? 0 : 24 } })
155
- ] }, f.guid);
155
+ ] }, A.guid);
156
156
  }) })
157
157
  }
158
158
  ),
@@ -164,20 +164,20 @@ const U = ({
164
164
  title: a.confirm_merge
165
165
  },
166
166
  isOpen: i,
167
- onClose: () => u(!1),
167
+ onClose: () => _(!1),
168
168
  onPrimaryAction: p,
169
169
  children: [
170
- /* @__PURE__ */ t(b, { truncate: !1, children: h(
170
+ /* @__PURE__ */ t(T, { truncate: !1, children: h(
171
171
  a.this_means_accounts_will_be_merged,
172
172
  r.name,
173
173
  l.name
174
174
  ) }),
175
- /* @__PURE__ */ t(b, { color: "error", sx: { mt: 24 }, children: a.this_action_cannot_be_undone })
175
+ /* @__PURE__ */ t(T, { color: "error", sx: { mt: 24 }, children: a.this_action_cannot_be_undone })
176
176
  ]
177
177
  }
178
178
  )
179
179
  ] });
180
- }, Pt = T(Ot), tt = (e, o) => {
180
+ }, Pt = S(Ot), tt = (e, o) => {
181
181
  const { connection_messages: n } = o;
182
182
  switch (e.connection_status) {
183
183
  case m.CHALLENGED:
@@ -314,12 +314,12 @@ const U = ({
314
314
  };
315
315
  default: {
316
316
  const c = () => {
317
- const i = e.successfully_aggregated_at ? lt(e.successfully_aggregated_at) : void 0, u = i && B(i, K.TIME_STAMP_HOUR_MINUTE);
318
- if (u)
319
- return dt(i) ? h(o.last_updated_at, o.today, u) : ut(i) ? h(o.last_updated_at, o.yesterday, u) : h(
317
+ const i = e.successfully_aggregated_at ? lt(e.successfully_aggregated_at) : void 0, _ = i && B(i, K.TIME_STAMP_HOUR_MINUTE);
318
+ if (_)
319
+ return dt(i) ? h(o.last_updated_at, o.today, _) : ut(i) ? h(o.last_updated_at, o.yesterday, _) : h(
320
320
  o.last_updated_at,
321
321
  B(i, K.MONTH_DAY_YEAR),
322
- u
322
+ _
323
323
  );
324
324
  };
325
325
  return {
@@ -336,9 +336,9 @@ const U = ({
336
336
  gridColumn: 1,
337
337
  zIndex: 2
338
338
  }, Rt = () => {
339
- const [e, o] = _.useState(!1), {
339
+ const [e, o] = u.useState(!1), {
340
340
  palette: { mode: n }
341
- } = st(), { selectedMember: c } = D(), { accounts: i, connect: u } = E(), l = tt(c, u), s = Q.includes(c.connection_status) ? {
341
+ } = st(), { selectedMember: c } = E(), { accounts: i, connect: _ } = y(), l = tt(c, _), s = Q.includes(c.connection_status) ? {
342
342
  color: "error.main",
343
343
  ctaCopy: l.cta ?? "",
344
344
  icon: /* @__PURE__ */ t(q, { filled: !0, sx: { ...W } }),
@@ -351,7 +351,7 @@ const U = ({
351
351
  secondaryMessage: l.title
352
352
  };
353
353
  return /* @__PURE__ */ d(g, { children: [
354
- /* @__PURE__ */ t(Y, { sx: { mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(b, { bold: !0, component: "h2", variant: "XSmall", children: i.connection_status }) }),
354
+ /* @__PURE__ */ t(Y, { sx: { mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(T, { bold: !0, component: "h2", variant: "XSmall", children: i.connection_status }) }),
355
355
  /* @__PURE__ */ t(v, { sx: { backgroundColor: "background.paper" }, children: c.is_manual || !s.ctaCopy ? /* @__PURE__ */ d(ct, { alignItems: "center", direction: "row", px: 24, py: 12, children: [
356
356
  /* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(F, { backingSx: { backgroundColor: s.color, borderRadius: 1 }, size: 32, children: s.icon }) }),
357
357
  /* @__PURE__ */ t(w, { primary: s.mainMessage, secondary: s.secondaryMessage })
@@ -364,7 +364,7 @@ const U = ({
364
364
  secondary: s.secondaryMessage && /* @__PURE__ */ d(g, { children: [
365
365
  s.secondaryMessage,
366
366
  " ",
367
- /* @__PURE__ */ t(b, { bold: !0, sx: { color: "action.active" }, variant: "XSmall", children: s.ctaCopy })
367
+ /* @__PURE__ */ t(T, { bold: !0, sx: { color: "action.active" }, variant: "XSmall", children: s.ctaCopy })
368
368
  ] })
369
369
  }
370
370
  ),
@@ -407,10 +407,10 @@ const U = ({
407
407
  }
408
408
  )
409
409
  ] });
410
- }, Ft = T(Rt), Ut = ({ field: e, isOpen: o, onClose: n }) => {
411
- const { updateAccount: c } = z(), { selectedAccount: i } = D(), { accounts: u } = E(), [l, s] = _.useState(i[e.name]), [r, y] = _.useState(""), [S, a] = _.useState(!0), C = () => {
412
- s(""), y(""), n();
413
- }, A = () => {
410
+ }, Ft = S(Rt), Ut = ({ field: e, isOpen: o, onClose: n }) => {
411
+ const { updateAccount: c } = z(), { selectedAccount: i } = E(), { accounts: _ } = y(), [l, s] = u.useState(i[e.name]), [r, f] = u.useState(""), [b, a] = u.useState(!0), C = () => {
412
+ s(""), f(""), n();
413
+ }, D = () => {
414
414
  switch (e.type) {
415
415
  case R.Select:
416
416
  return /* @__PURE__ */ d(gt, { fullWidth: !0, children: [
@@ -435,7 +435,7 @@ const U = ({
435
435
  ] });
436
436
  case R.Currency:
437
437
  return /* @__PURE__ */ t(
438
- St,
438
+ Dt,
439
439
  {
440
440
  amount: l || "",
441
441
  ariaLabel: e.placeholder,
@@ -491,43 +491,43 @@ const U = ({
491
491
  [e.name]: l
492
492
  }), C();
493
493
  }, L = (p) => {
494
- s(p.target.value), e.validation && y(e.validation(p.target.value));
494
+ s(p.target.value), e.validation && f(e.validation(p.target.value));
495
495
  };
496
496
  return /* @__PURE__ */ t(
497
497
  V,
498
498
  {
499
499
  copy: {
500
- close_aria: u.close_aria,
501
- title: h(u.edit_field, e.label)
500
+ close_aria: _.close_aria,
501
+ title: h(_.edit_field, e.label)
502
502
  },
503
- disablePrimaryButton: !!r || !S,
503
+ disablePrimaryButton: !!r || !b,
504
504
  isOpen: o,
505
505
  onClose: C,
506
506
  onPrimaryAction: x,
507
- primaryText: u.save,
508
- children: A()
507
+ primaryText: _.save,
508
+ children: D()
509
509
  }
510
510
  );
511
- }, Wt = T(Ut), $t = () => {
512
- const e = window.app?.config, { onEvent: o } = O(), { selectedAccount: n } = D(), { accounts: c } = E(), i = Dt(n, c), u = n.member_is_managed_by_user || !n.member_is_managed_by_user && e.enable_renaming_home_accounts, [l, s] = _.useState(!1), [r, y] = _.useState(i[0]), S = i.filter(
513
- (a) => u || n[a.name] || n[a.name] === 0
511
+ }, Wt = S(Ut), $t = () => {
512
+ const e = window.app?.config, { onEvent: o } = O(), { selectedAccount: n } = E(), { accounts: c } = y(), i = St(n, c), _ = n.member_is_managed_by_user || !n.member_is_managed_by_user && e.enable_renaming_home_accounts, [l, s] = u.useState(!1), [r, f] = u.useState(i[0]), b = i.filter(
513
+ (a) => _ || n[a.name] || n[a.name] === 0
514
514
  );
515
515
  return /* @__PURE__ */ d(g, { children: [
516
- S.map((a) => {
517
- const C = n[a.name] || n[a.name] === 0, A = S.indexOf(a) === S.length - 1, x = /* @__PURE__ */ t(
516
+ b.map((a) => {
517
+ const C = n[a.name] || n[a.name] === 0, D = b.indexOf(a) === b.length - 1, x = /* @__PURE__ */ t(
518
518
  w,
519
519
  {
520
520
  disableTypography: !0,
521
- primary: /* @__PURE__ */ t(b, { sx: { fontSize: 11 }, children: a.label }),
522
- secondary: /* @__PURE__ */ t(b, { bold: !0, sx: { fontSize: 15 }, children: C ? a.valueFormatter(n[a.name]) : a.placeholder })
521
+ primary: /* @__PURE__ */ t(T, { sx: { fontSize: 11 }, children: a.label }),
522
+ secondary: /* @__PURE__ */ t(T, { bold: !0, sx: { fontSize: 15 }, children: C ? a.valueFormatter(n[a.name]) : a.placeholder })
523
523
  }
524
524
  );
525
- return /* @__PURE__ */ t(_.Fragment, { children: u ? /* @__PURE__ */ d(g, { children: [
525
+ return /* @__PURE__ */ t(u.Fragment, { children: _ ? /* @__PURE__ */ d(g, { children: [
526
526
  /* @__PURE__ */ t(v, { sx: { backgroundColor: "background.paper", px: 0 }, children: /* @__PURE__ */ d(
527
527
  N,
528
528
  {
529
529
  onClick: () => {
530
- y(a), s(!0), a?.event && o(a.event, { account_guid: n.guid });
530
+ f(a), s(!0), a?.event && o(a.event, { account_guid: n.guid });
531
531
  },
532
532
  children: [
533
533
  x,
@@ -535,10 +535,10 @@ const U = ({
535
535
  ]
536
536
  }
537
537
  ) }),
538
- /* @__PURE__ */ t(M, { sx: { ml: A ? 0 : 24 } })
538
+ /* @__PURE__ */ t(M, { sx: { ml: D ? 0 : 24 } })
539
539
  ] }) : C && /* @__PURE__ */ d(g, { children: [
540
540
  /* @__PURE__ */ t(v, { sx: { backgroundColor: "background.paper", px: 24 }, children: x }),
541
- /* @__PURE__ */ t(M, { sx: { ml: A ? 0 : 24 } })
541
+ /* @__PURE__ */ t(M, { sx: { ml: D ? 0 : 24 } })
542
542
  ] }) }, a.name);
543
543
  }),
544
544
  l && r && /* @__PURE__ */ t(
@@ -550,19 +550,19 @@ const U = ({
550
550
  }
551
551
  )
552
552
  ] });
553
- }, Vt = T($t), zt = () => {
553
+ }, Vt = S($t), zt = () => {
554
554
  const { onEvent: e } = O();
555
- return _.useEffect(() => e(k.ACCOUNT_DETAILS_VIEW), []), /* @__PURE__ */ d($, { children: [
555
+ return u.useEffect(() => e(k.ACCOUNT_DETAILS_VIEW), []), /* @__PURE__ */ d($, { children: [
556
556
  /* @__PURE__ */ t(Vt, {}),
557
557
  /* @__PURE__ */ t(Ft, {}),
558
558
  /* @__PURE__ */ t(Pt, {})
559
559
  ] });
560
- }, Ht = T(zt), Gt = ({ setTabValue: e }) => {
561
- const [o, n] = _.useState(!1), { selectedMember: c } = D(), { accounts: i, connect: u } = E(), l = c.connection_status && Q.includes(c.connection_status);
562
- if (_.useEffect(() => {
560
+ }, Ht = S(zt), Gt = ({ setTabValue: e }) => {
561
+ const [o, n] = u.useState(!1), { selectedMember: c } = E(), { accounts: i, connect: _ } = y(), l = c.connection_status && Q.includes(c.connection_status);
562
+ if (u.useEffect(() => {
563
563
  l && e(1);
564
564
  }, [l]), !l) return;
565
- const s = tt(c, u);
565
+ const s = tt(c, _);
566
566
  return /* @__PURE__ */ d(g, { children: [
567
567
  /* @__PURE__ */ t(
568
568
  wt,
@@ -589,7 +589,7 @@ const U = ({
589
589
  },
590
590
  children: [
591
591
  s.title && /* @__PURE__ */ t(yt, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: s.title }),
592
- /* @__PURE__ */ t(b, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: s.main }),
592
+ /* @__PURE__ */ t(T, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: s.main }),
593
593
  s.cta && /* @__PURE__ */ t(
594
594
  xt,
595
595
  {
@@ -613,31 +613,35 @@ const U = ({
613
613
  }
614
614
  )
615
615
  ] });
616
- }, Bt = T(Gt), Kt = () => {
617
- const [e, o] = _.useState(""), { onEvent: n } = O(), { selectedAccount: c } = D(), { accounts: i } = E(), { setFilter: u, sortedTransactions: l } = X(), s = _.useMemo(
618
- () => l.find((r) => r.guid === e),
619
- [e, l]
616
+ }, Bt = S(Gt), Kt = () => {
617
+ const [e, o] = u.useState(""), { onEvent: n } = O(), { selectedAccount: c } = E(), { accounts: i } = y(), { isTransactionDataLoaded: _, loadTransactionData: l, setFilter: s, sortedTransactions: r } = X();
618
+ u.useEffect(() => {
619
+ _ || l().finally();
620
+ }, []);
621
+ const f = u.useMemo(
622
+ () => r.find((b) => b.guid === e),
623
+ [e, r]
620
624
  );
621
- return _.useEffect(() => {
622
- u({
625
+ return u.useEffect(() => {
626
+ s({
623
627
  dateRange: { start: kt(It(), 90), end: Mt() },
624
628
  accounts: [c.guid]
625
629
  });
626
- }, [c]), _.useEffect(() => n(k.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ d(g, { children: [
630
+ }, [c]), u.useEffect(() => n(k.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ d(g, { children: [
627
631
  /* @__PURE__ */ t(vt, { onClick: o }),
628
- s && /* @__PURE__ */ t(
632
+ f && /* @__PURE__ */ t(
629
633
  J,
630
634
  {
631
635
  ariaLabelClose: i.close_drawer,
632
636
  isOpen: !!e,
633
637
  onClose: () => o(""),
634
638
  title: i.transaction_drawer_title,
635
- children: /* @__PURE__ */ t(Lt, { transaction: s })
639
+ children: /* @__PURE__ */ t(Lt, { transaction: f })
636
640
  }
637
641
  )
638
642
  ] });
639
- }, jt = T(Kt), Yt = () => {
640
- const [e, o] = _.useState(0), { accounts: n } = E();
643
+ }, jt = S(Kt), Yt = () => {
644
+ const [e, o] = u.useState(0), { accounts: n } = y();
641
645
  return /* @__PURE__ */ d(g, { children: [
642
646
  /* @__PURE__ */ t(Bt, { setTabValue: o }),
643
647
  /* @__PURE__ */ d(
@@ -672,7 +676,7 @@ const U = ({
672
676
  /* @__PURE__ */ t(j, { index: 0, name: "transaction-details", value: e, children: /* @__PURE__ */ t(jt, {}) }),
673
677
  /* @__PURE__ */ t(j, { index: 1, name: "account-details", value: e, children: /* @__PURE__ */ t(Ht, {}) })
674
678
  ] });
675
- }, He = T(Yt);
679
+ }, He = S(Yt);
676
680
  export {
677
681
  He as A,
678
682
  Nt as u
@@ -0,0 +1,87 @@
1
+ import { jsx as t, jsxs as i } from "react/jsx-runtime";
2
+ import { observer as m } from "mobx-react-lite";
3
+ import e from "@mui/material/Stack";
4
+ import { H3 as _, InstitutionLogo as x, Text as a, H2 as T } from "@mxenabled/mxui";
5
+ import d from "react";
6
+ import { G as N, d as f, m as D, f as w, u as E } from "./hooks-C41HAxM5.mjs";
7
+ import { g as I } from "./AccountFields-QZspYAji.mjs";
8
+ import G from "@mui/material/Card";
9
+ import v from "@mui/material/CardContent";
10
+ import O from "@mui/material/CardHeader";
11
+ import { L as H } from "./Loader-DUaFpDGv.mjs";
12
+ import { f as M, a as P } from "./Dialog-BPTr3qHE.mjs";
13
+ import { I as L, P as U, S as j } from "./Account-BDXA6PWh.mjs";
14
+ import { u as z } from "./useAccountDisplayName-CFNF8766.mjs";
15
+ import { f as B } from "./NumberFormatting-DjTD0t3W.mjs";
16
+ const p = () => {
17
+ if (!d.useContext(N))
18
+ throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
19
+ return f().uiStore;
20
+ }, Y = ({ sx: n, ChartComponent: s }) => {
21
+ const { loadMonthlyCategoryTotals: c } = D(), { isInitialized: o } = w(), { selectedAccount: r } = p(), [l, u] = d.useState(!1);
22
+ return d.useEffect(() => {
23
+ o && c([r]).finally(() => {
24
+ u(!0);
25
+ });
26
+ }, [o, r]), !o || !l ? /* @__PURE__ */ t(H, {}) : /* @__PURE__ */ i(
27
+ G,
28
+ {
29
+ sx: {
30
+ "& .MuiCardContent-root:last-child": {
31
+ pb: 0
32
+ },
33
+ ...n
34
+ },
35
+ children: [
36
+ /* @__PURE__ */ t(
37
+ O,
38
+ {
39
+ sx: { pb: 0 },
40
+ title: /* @__PURE__ */ t(_, { sx: { pb: 4 }, children: M(/* @__PURE__ */ new Date(), P.MONTH_LONG) })
41
+ }
42
+ ),
43
+ /* @__PURE__ */ t(v, { sx: { p: 0 }, children: s ? /* @__PURE__ */ t(s, {}) : null })
44
+ ]
45
+ }
46
+ );
47
+ }, k = m(Y), R = ({
48
+ customDetailsChart: n,
49
+ ChartComponent: s
50
+ }) => {
51
+ const { institutions: c } = f(), { selectedAccount: o } = p(), { accounts: r } = E(), { firstSubtitle: l, firstValue: u, hasAvailableBalance: C, secondSubtitle: h, secondValue: S } = I(o, r), b = c.find(
52
+ (y) => y.guid === o?.institution_guid
53
+ ), A = [
54
+ ...L,
55
+ ...U,
56
+ ...j
57
+ ].includes(o.account_type), g = z(o);
58
+ return /* @__PURE__ */ i(e, { bgcolor: "background.default", p: 24, children: [
59
+ /* @__PURE__ */ i(e, { gap: 12, children: [
60
+ /* @__PURE__ */ t(
61
+ x,
62
+ {
63
+ alt: r.institution_logo_alt,
64
+ institutionGuid: o.institution_guid || "",
65
+ size: 64
66
+ }
67
+ ),
68
+ /* @__PURE__ */ t(a, { variant: "Small", children: b?.name })
69
+ ] }),
70
+ /* @__PURE__ */ i(e, { gap: 8, mb: 24, mt: 4, children: [
71
+ /* @__PURE__ */ t(T, { children: g }),
72
+ /* @__PURE__ */ i(e, { direction: "row", justifyContent: "space-between", children: [
73
+ /* @__PURE__ */ t(a, { bold: C, variant: "Body", children: l }),
74
+ /* @__PURE__ */ t(a, { bold: !0, variant: "Body", children: B(u, "0,0.00") })
75
+ ] }),
76
+ /* @__PURE__ */ i(e, { direction: "row", justifyContent: "space-between", children: [
77
+ /* @__PURE__ */ t(a, { variant: "Small", children: h }),
78
+ /* @__PURE__ */ t(a, { variant: "Small", children: S })
79
+ ] })
80
+ ] }),
81
+ A && /* @__PURE__ */ t(e, { children: n || /* @__PURE__ */ t(k, { ChartComponent: s }) })
82
+ ] });
83
+ }, rt = m(R);
84
+ export {
85
+ rt as A,
86
+ p as u
87
+ };
@@ -1,10 +1,10 @@
1
1
  import { jsx as u } from "react/jsx-runtime";
2
2
  import { Icon as p, Text as y } from "@mxenabled/mxui";
3
- import { F as m, A as d, a as v, P as h, b as F } from "./ConnectDrawer-BQNs-hjk.mjs";
4
- import { i as T, u as D, a as A, b as g, c as O } from "./Accounts-BRf_YeTf.mjs";
5
- import { f as _, i as b, a as N, b as S } from "./NumberFormatting-Buh7u8Oi.mjs";
3
+ import { F as m, A as d, a as v, P as h, b as F } from "./ConnectDrawer-BIbTqYOH.mjs";
4
+ import { i as T, u as A, a as D, b as g, c as O } from "./Accounts-DXfZotRC.mjs";
5
+ import { f as _, i as b, a as N, b as S } from "./NumberFormatting-DjTD0t3W.mjs";
6
6
  import { b as i } from "./Localization-2MODESHW.mjs";
7
- import { f as o, D as f } from "./Dialog-CWW597AF.mjs";
7
+ import { f as o, a as f } from "./Dialog-BPTr3qHE.mjs";
8
8
  const w = (l, e) => {
9
9
  const r = [
10
10
  {
@@ -54,7 +54,7 @@ const w = (l, e) => {
54
54
  valueFormatter: (t) => a.find((n) => n.value === t)?.label
55
55
  });
56
56
  }
57
- if (D(l)) {
57
+ if (A(l)) {
58
58
  let a = e.interest_rate, t = "interest_rate";
59
59
  l.is_manual || (typeof l.apr == "number" && (a = e.apr, t = "apr"), typeof l.apy == "number" && (a = e.apy, t = "apy")), r.push({
60
60
  event: "account_details_click_interest_rate",
@@ -66,7 +66,7 @@ const w = (l, e) => {
66
66
  valueFormatter: (n) => b(n) ? N(n / 100) : n
67
67
  });
68
68
  }
69
- return A(l) && (r.push({
69
+ return D(l) && (r.push({
70
70
  label: e.minimum_payment,
71
71
  name: "minimum_payment",
72
72
  placeholder: i(e.enter_value, e.minimum_payment),