@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,679 +0,0 @@
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";
4
- import H from "@mui/material/Tab";
5
- import nt from "@mui/material/Tabs";
6
- import $ from "@mui/material/List";
7
- import Y from "@mui/material/ListSubheader";
8
- import ot from "@mui/material/Switch";
9
- import { Text as b, Icon as I, THEMES as G } from "@mxenabled/mxui";
10
- import M from "@mui/material/Divider";
11
- import v from "@mui/material/ListItem";
12
- import N from "@mui/material/ListItemButton";
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";
19
- import { b as h } from "./Localization-2MODESHW.mjs";
20
- import { D as J } from "./Drawer-kEE73B87.mjs";
21
- import P from "@mui/material/ListItemAvatar";
22
- import ct from "@mui/material/Stack";
23
- import st from "@mui/material/styles/useTheme";
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";
26
- import { fromUnixTime as lt } from "date-fns/fromUnixTime";
27
- import { isToday as dt } from "date-fns/isToday";
28
- import { isYesterday as ut } from "date-fns/isYesterday";
29
- import { I as F } from "./IconBacking-B9oC6uL2.mjs";
30
- import { addMonths as _t } from "date-fns/addMonths";
31
- import { alpha as mt } from "@mui/material/styles";
32
- import { AdapterDateFns as pt } from "@mui/x-date-pickers/AdapterDateFnsV3";
33
- import { DateCalendar as ht } from "@mui/x-date-pickers/DateCalendar";
34
- import gt from "@mui/material/FormControl";
35
- import Ct from "@mui/material/InputLabel";
36
- import { LocalizationProvider as ft } from "@mui/x-date-pickers-pro";
37
- import bt from "@mui/material/MenuItem";
38
- import At from "@mui/material/Select";
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";
42
- import Et from "@mui/material/Alert";
43
- import yt from "@mui/material/AlertTitle";
44
- import xt from "@mui/material/Link";
45
- import wt from "@mui/material/Paper";
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";
48
- import { T as j } from "./TabContentContainer-j01JYR_7.mjs";
49
- const U = ({
50
- children: e,
51
- isLast: o = !1,
52
- onClick: n,
53
- primaryText: c,
54
- secondaryText: i
55
- }) => /* @__PURE__ */ d(g, { children: [
56
- /* @__PURE__ */ t(v, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ d(N, { onClick: n, children: [
57
- /* @__PURE__ */ t(w, { primary: c, secondary: i }),
58
- e
59
- ] }) }),
60
- /* @__PURE__ */ t(M, { sx: { ml: o ? 0 : 24 } })
61
- ] }), Nt = () => {
62
- const { accounts: e } = z(), { selectedAccount: o, selectedMember: n } = D();
63
- return e.filter(
64
- (c) => c.member_guid === n.guid && n.successfully_aggregated_at && c.guid !== o.guid
65
- );
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({
69
- ...r,
70
- ...f
71
- }), "is_closed" in f && f.is_closed !== r.is_closed && x(r.guid, { accountIsClosed: f.is_closed });
72
- }, p = () => {
73
- y([r.guid, l.guid]).finally(
74
- () => c(!1)
75
- );
76
- };
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 }) }),
79
- /* @__PURE__ */ t(
80
- U,
81
- {
82
- onClick: () => {
83
- L({ is_hidden: !r.is_hidden }), A(k.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: r.guid });
84
- },
85
- primaryText: r.is_hidden ? a.unhide_account : a.hide_Account,
86
- secondaryText: r.is_hidden ? a.include_this_account : a.exclude_this_account,
87
- children: /* @__PURE__ */ t(ot, { checked: r.is_hidden })
88
- }
89
- ),
90
- /* @__PURE__ */ t(
91
- U,
92
- {
93
- onClick: () => {
94
- o(!0), A(k.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
95
- account_guid: r.guid
96
- });
97
- },
98
- primaryText: r.is_closed ? a.mark_as_open : a.mark_as_closed,
99
- secondaryText: r.is_closed ? a.this_will_set_the_closed_account : a.this_will_set_the_account_balance_to_0,
100
- children: /* @__PURE__ */ t(I, { name: "chevron_right" })
101
- }
102
- ),
103
- C.length > 0 && /* @__PURE__ */ t(
104
- U,
105
- {
106
- isLast: !0,
107
- onClick: () => {
108
- c(!0), A(k.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
109
- account_guid: r.guid
110
- });
111
- },
112
- primaryText: a.mark_as_duplicate,
113
- secondaryText: a.if_a_connected_account_is_showing_up_twice,
114
- children: /* @__PURE__ */ t(I, { name: "chevron_right" })
115
- }
116
- ),
117
- /* @__PURE__ */ t(
118
- V,
119
- {
120
- copy: {
121
- close_aria: a.close_modal,
122
- title: r.is_closed ? a.confirm_mark_as_open : a.confirm_mark_closed
123
- },
124
- isOpen: e,
125
- onClose: () => {
126
- o(!1);
127
- },
128
- onPrimaryAction: () => L({ is_closed: !r.is_closed }),
129
- children: /* @__PURE__ */ t(b, { truncate: !1, children: h(
130
- r.is_closed ? a.this_will_resume_updating_the_balance : a.this_will_set_the_balance_of_your_account,
131
- r.name
132
- ) })
133
- }
134
- ),
135
- /* @__PURE__ */ t(
136
- J,
137
- {
138
- ariaLabelClose: a.close_drawer,
139
- isOpen: n,
140
- onClose: () => c(!1),
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: [
145
- /* @__PURE__ */ t(
146
- at,
147
- {
148
- account: f,
149
- onRowClick: () => {
150
- u(!0), s(f);
151
- }
152
- }
153
- ),
154
- /* @__PURE__ */ t($, { sx: { ml: et ? 0 : 24 } })
155
- ] }, f.guid);
156
- }) })
157
- }
158
- ),
159
- i && /* @__PURE__ */ d(
160
- V,
161
- {
162
- copy: {
163
- close_aria: a.close_modal,
164
- title: a.confirm_merge
165
- },
166
- isOpen: i,
167
- onClose: () => u(!1),
168
- onPrimaryAction: p,
169
- children: [
170
- /* @__PURE__ */ t(b, { truncate: !1, children: h(
171
- a.this_means_accounts_will_be_merged,
172
- r.name,
173
- l.name
174
- ) }),
175
- /* @__PURE__ */ t(b, { color: "error", sx: { mt: 24 }, children: a.this_action_cannot_be_undone })
176
- ]
177
- }
178
- )
179
- ] });
180
- }, Pt = T(Ot), tt = (e, o) => {
181
- const { connection_messages: n } = o;
182
- switch (e.connection_status) {
183
- case m.CHALLENGED:
184
- return {
185
- cta: n.challenged_cta,
186
- main: h(
187
- n.challenged_connection_description,
188
- e.name
189
- ),
190
- statusName: o.connection_statuses[e.connection_status],
191
- title: n.challenged_connection_title
192
- };
193
- case m.CLOSED:
194
- return {
195
- main: n.closed_connection_description,
196
- statusName: o.connection_statuses[e.connection_status],
197
- title: n.closed_connection_title
198
- };
199
- case m.DEGRADED:
200
- return {
201
- main: n.degraded_connection_description,
202
- statusName: o.connection_statuses[e.connection_status],
203
- title: n.degraded_connection_title
204
- };
205
- case m.DELAYED:
206
- return {
207
- main: h(
208
- n.delayed_connection_description,
209
- e.name
210
- ),
211
- statusName: o.connection_statuses[e.connection_status],
212
- title: n.delayed_connection_title
213
- };
214
- case m.DENIED:
215
- return {
216
- cta: n.denied_cta,
217
- main: h(
218
- n.denied_connection_description,
219
- e.name
220
- ),
221
- statusName: o.connection_statuses[e.connection_status],
222
- title: n.denied_connection_title
223
- };
224
- case m.DISABLED:
225
- return {
226
- main: n.disabled_connection_description,
227
- statusName: o.connection_statuses[e.connection_status],
228
- title: n.disabled_connection_title
229
- };
230
- case m.DISCONNECTED:
231
- return {
232
- main: h(
233
- n.disconnected_connection_description,
234
- e.name
235
- ),
236
- statusName: o.connection_statuses[e.connection_status],
237
- title: n.disconnected_connection_title
238
- };
239
- case m.DISCONTINUED:
240
- return {
241
- main: n.discontinued_connection_description,
242
- statusName: o.connection_statuses[e.connection_status],
243
- title: n.discontinued_connection_title
244
- };
245
- case m.EXPIRED:
246
- return {
247
- cta: n.expired_cta,
248
- main: n.expired_connection_description,
249
- statusName: o.connection_statuses[e.connection_status],
250
- title: n.expired_connection_title
251
- };
252
- case m.FAILED:
253
- return {
254
- main: h(
255
- n.failed_connection_description,
256
- e.name
257
- ),
258
- statusName: o.connection_statuses[e.connection_status],
259
- title: n.failed_connection_title
260
- };
261
- case m.IMPAIRED:
262
- return {
263
- cta: n.impaired_cta,
264
- main: h(
265
- n.impaired_connection_description,
266
- e.name
267
- ),
268
- statusName: o.connection_statuses[e.connection_status],
269
- title: n.impaired_connection_title
270
- };
271
- case m.IMPEDED:
272
- return {
273
- main: h(
274
- n.impeded_connection_description,
275
- e.name,
276
- e.name
277
- ),
278
- statusName: o.connection_statuses[e.connection_status],
279
- title: n.impeded_connection_title
280
- };
281
- case m.IMPORTED:
282
- return {
283
- cta: n.imported_cta,
284
- main: h(
285
- n.imported_connection_description,
286
- e.name
287
- ),
288
- statusName: o.connection_statuses[e.connection_status],
289
- title: n.imported_connection_title
290
- };
291
- case m.LOCKED:
292
- return {
293
- cta: n.locked_cta,
294
- main: h(
295
- n.locked_connection_description,
296
- e.name
297
- ),
298
- statusName: o.connection_statuses[e.connection_status],
299
- title: n.locked_connection_title
300
- };
301
- case m.PREVENTED:
302
- return {
303
- cta: n.prevented_cta,
304
- main: n.prevented_connection_description,
305
- statusName: o.connection_statuses[e.connection_status],
306
- title: n.prevented_connection_title
307
- };
308
- case m.REJECTED:
309
- return {
310
- cta: n.rejected_cta,
311
- main: n.rejected_connection_description,
312
- statusName: o.connection_statuses[e.connection_status],
313
- title: n.rejected_connection_title
314
- };
315
- default: {
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(
320
- o.last_updated_at,
321
- B(i, K.MONTH_DAY_YEAR),
322
- u
323
- );
324
- };
325
- return {
326
- statusName: o.connection_statuses[6],
327
- // Connected
328
- title: c()
329
- };
330
- }
331
- }
332
- }, W = {
333
- color: "background.default",
334
- fontSize: 20,
335
- gridRow: 1,
336
- gridColumn: 1,
337
- zIndex: 2
338
- }, Rt = () => {
339
- const [e, o] = _.useState(!1), {
340
- palette: { mode: n }
341
- } = st(), { selectedMember: c } = D(), { accounts: i, connect: u } = E(), l = tt(c, u), s = Q.includes(c.connection_status) ? {
342
- color: "error.main",
343
- ctaCopy: l.cta ?? "",
344
- icon: /* @__PURE__ */ t(q, { filled: !0, sx: { ...W } }),
345
- mainMessage: l.statusName,
346
- secondaryMessage: `${l.title}.`
347
- } : {
348
- color: "success.main",
349
- icon: /* @__PURE__ */ t(it, { filled: !0, sx: { ...W } }),
350
- mainMessage: l.statusName,
351
- secondaryMessage: l.title
352
- };
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 }) }),
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
- /* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(F, { backingSx: { backgroundColor: s.color, borderRadius: 1 }, size: 32, children: s.icon }) }),
357
- /* @__PURE__ */ t(w, { primary: s.mainMessage, secondary: s.secondaryMessage })
358
- ] }) : /* @__PURE__ */ d(N, { onClick: () => o(!0), children: [
359
- /* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(F, { backingSx: { backgroundColor: s.color, borderRadius: 1 }, size: 32, children: s.icon }) }),
360
- /* @__PURE__ */ t(
361
- w,
362
- {
363
- primary: s.mainMessage,
364
- secondary: s.secondaryMessage && /* @__PURE__ */ d(g, { children: [
365
- s.secondaryMessage,
366
- " ",
367
- /* @__PURE__ */ t(b, { bold: !0, sx: { color: "action.active" }, variant: "XSmall", children: s.ctaCopy })
368
- ] })
369
- }
370
- ),
371
- /* @__PURE__ */ t(I, { name: "chevron_right" })
372
- ] }) }),
373
- /* @__PURE__ */ t(M, { sx: { ml: c.is_manual || !c.institution_url ? 0 : 24 } }),
374
- !c.is_manual && c.institution_url && /* @__PURE__ */ d(g, { children: [
375
- /* @__PURE__ */ t(v, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ d(N, { component: "a", href: c.institution_url, target: "_blank", children: [
376
- /* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(
377
- F,
378
- {
379
- backingSx: {
380
- backgroundColor: n === G.LIGHT ? "grey.300" : "grey.700",
381
- borderRadius: 1
382
- },
383
- size: 32,
384
- children: /* @__PURE__ */ t(
385
- rt,
386
- {
387
- sx: {
388
- ...W,
389
- color: n === G.LIGHT ? "grey.900" : "common.white"
390
- }
391
- }
392
- )
393
- }
394
- ) }),
395
- /* @__PURE__ */ t(w, { primary: c.name, secondary: c.institution_url }),
396
- /* @__PURE__ */ t(I, { name: "launch" })
397
- ] }) }),
398
- /* @__PURE__ */ t(M, {})
399
- ] }),
400
- e && /* @__PURE__ */ t(
401
- Z,
402
- {
403
- loadWidgetProps: { current_member_guid: c.guid },
404
- onClose: () => o(!1),
405
- showConnectWidget: e,
406
- title: i.manage_connection
407
- }
408
- )
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 = () => {
414
- switch (e.type) {
415
- case R.Select:
416
- return /* @__PURE__ */ d(gt, { fullWidth: !0, children: [
417
- /* @__PURE__ */ t(Ct, { id: `${e.label}-select-label`, children: e.label }),
418
- /* @__PURE__ */ t(
419
- At,
420
- {
421
- id: `${e.label}-select`,
422
- inputProps: {
423
- sx: {
424
- backgroundColor: "background.paper"
425
- }
426
- },
427
- label: e.label,
428
- labelId: `${e.label}-select-label`,
429
- onChange: (p) => s(p.target.value),
430
- placeholder: e.placeholder,
431
- value: l,
432
- children: e.options?.map((p) => /* @__PURE__ */ t(bt, { value: p.value, children: p.label }, p.value))
433
- }
434
- )
435
- ] });
436
- case R.Currency:
437
- return /* @__PURE__ */ t(
438
- St,
439
- {
440
- amount: l || "",
441
- ariaLabel: e.placeholder,
442
- fullWidth: !0,
443
- label: e.label,
444
- placeholder: e.placeholder,
445
- setAmount: s,
446
- setHasValidInput: a
447
- }
448
- );
449
- case R.Date:
450
- return /* @__PURE__ */ t(ft, { dateAdapter: pt, children: /* @__PURE__ */ t(
451
- ht,
452
- {
453
- maxDate: _t(/* @__PURE__ */ new Date(), 1),
454
- minDate: /* @__PURE__ */ new Date(),
455
- onChange: (p) => {
456
- i[e.name] && Number(i[e.name]) <= 31 ? s(p.getDate()) : s(p);
457
- },
458
- sx: {
459
- "& .MuiPickersDay-today": {
460
- color: "primary.lighter"
461
- },
462
- "& .MuiPickersArrowSwitcher-button": {
463
- color: "primary.lighter",
464
- "&:hover": {
465
- backgroundColor: (p) => mt(p.palette.primary.light, 0.1)
466
- }
467
- }
468
- },
469
- views: ["day"]
470
- }
471
- ) });
472
- default:
473
- return /* @__PURE__ */ t(
474
- Tt,
475
- {
476
- defaultValue: i[e.name],
477
- error: !!r,
478
- fullWidth: !0,
479
- helperText: r,
480
- inputProps: {
481
- "aria-label": e.placeholder
482
- },
483
- onChange: L,
484
- placeholder: e.placeholder
485
- }
486
- );
487
- }
488
- }, x = () => {
489
- i[e.name] !== l && c({
490
- ...i,
491
- [e.name]: l
492
- }), C();
493
- }, L = (p) => {
494
- s(p.target.value), e.validation && y(e.validation(p.target.value));
495
- };
496
- return /* @__PURE__ */ t(
497
- V,
498
- {
499
- copy: {
500
- close_aria: u.close_aria,
501
- title: h(u.edit_field, e.label)
502
- },
503
- disablePrimaryButton: !!r || !S,
504
- isOpen: o,
505
- onClose: C,
506
- onPrimaryAction: x,
507
- primaryText: u.save,
508
- children: A()
509
- }
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
514
- );
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(
518
- w,
519
- {
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 })
523
- }
524
- );
525
- return /* @__PURE__ */ t(_.Fragment, { children: u ? /* @__PURE__ */ d(g, { children: [
526
- /* @__PURE__ */ t(v, { sx: { backgroundColor: "background.paper", px: 0 }, children: /* @__PURE__ */ d(
527
- N,
528
- {
529
- onClick: () => {
530
- y(a), s(!0), a?.event && o(a.event, { account_guid: n.guid });
531
- },
532
- children: [
533
- x,
534
- /* @__PURE__ */ t(I, { name: "chevron_right" })
535
- ]
536
- }
537
- ) }),
538
- /* @__PURE__ */ t(M, { sx: { ml: A ? 0 : 24 } })
539
- ] }) : C && /* @__PURE__ */ d(g, { children: [
540
- /* @__PURE__ */ t(v, { sx: { backgroundColor: "background.paper", px: 24 }, children: x }),
541
- /* @__PURE__ */ t(M, { sx: { ml: A ? 0 : 24 } })
542
- ] }) }, a.name);
543
- }),
544
- l && r && /* @__PURE__ */ t(
545
- Wt,
546
- {
547
- field: r,
548
- isOpen: l,
549
- onClose: () => s(!1)
550
- }
551
- )
552
- ] });
553
- }, Vt = T($t), zt = () => {
554
- const { onEvent: e } = O();
555
- return _.useEffect(() => e(k.ACCOUNT_DETAILS_VIEW), []), /* @__PURE__ */ d($, { children: [
556
- /* @__PURE__ */ t(Vt, {}),
557
- /* @__PURE__ */ t(Ft, {}),
558
- /* @__PURE__ */ t(Pt, {})
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(() => {
563
- l && e(1);
564
- }, [l]), !l) return;
565
- const s = tt(c, u);
566
- return /* @__PURE__ */ d(g, { children: [
567
- /* @__PURE__ */ t(
568
- wt,
569
- {
570
- sx: {
571
- mb: 16,
572
- mt: 24,
573
- mx: 24
574
- },
575
- children: /* @__PURE__ */ d(
576
- Et,
577
- {
578
- icon: /* @__PURE__ */ t(q, { filled: !0 }),
579
- severity: "error",
580
- sx: {
581
- borderLeft: 5,
582
- borderTopLeftRadius: 6,
583
- borderBottomLeftRadius: 6,
584
- borderColor: "error.main",
585
- color: "text.primary",
586
- "&.MuiPaper-root": {
587
- backgroundColor: "background.paper"
588
- }
589
- },
590
- children: [
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 }),
593
- s.cta && /* @__PURE__ */ t(
594
- xt,
595
- {
596
- onClick: () => n(!0),
597
- sx: { fontSize: 15, fontWeight: 600, ml: 0 },
598
- children: s.cta
599
- }
600
- )
601
- ]
602
- }
603
- )
604
- }
605
- ),
606
- o && /* @__PURE__ */ t(
607
- Z,
608
- {
609
- loadWidgetProps: { current_member_guid: c.guid },
610
- onClose: () => n(!1),
611
- showConnectWidget: o,
612
- title: i.manage_connection
613
- }
614
- )
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]
620
- );
621
- return _.useEffect(() => {
622
- u({
623
- dateRange: { start: kt(It(), 90), end: Mt() },
624
- accounts: [c.guid]
625
- });
626
- }, [c]), _.useEffect(() => n(k.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ d(g, { children: [
627
- /* @__PURE__ */ t(vt, { onClick: o }),
628
- s && /* @__PURE__ */ t(
629
- J,
630
- {
631
- ariaLabelClose: i.close_drawer,
632
- isOpen: !!e,
633
- onClose: () => o(""),
634
- title: i.transaction_drawer_title,
635
- children: /* @__PURE__ */ t(Lt, { transaction: s })
636
- }
637
- )
638
- ] });
639
- }, jt = T(Kt), Yt = () => {
640
- const [e, o] = _.useState(0), { accounts: n } = E();
641
- return /* @__PURE__ */ d(g, { children: [
642
- /* @__PURE__ */ t(Bt, { setTabValue: o }),
643
- /* @__PURE__ */ d(
644
- nt,
645
- {
646
- "aria-label": n.transactions_and_details_aria,
647
- centered: !0,
648
- onChange: (c, i) => o(i),
649
- textColor: "primary",
650
- value: e,
651
- variant: "fullWidth",
652
- children: [
653
- /* @__PURE__ */ t(
654
- H,
655
- {
656
- "aria-controls": "transaction-details-tabpanel-0",
657
- id: "transaction-details-tab-0",
658
- label: n.transactions
659
- }
660
- ),
661
- /* @__PURE__ */ t(
662
- H,
663
- {
664
- "aria-controls": "account-details-tabpanel-1",
665
- id: "account-details-tab-1",
666
- label: n.account_details
667
- }
668
- )
669
- ]
670
- }
671
- ),
672
- /* @__PURE__ */ t(j, { index: 0, name: "transaction-details", value: e, children: /* @__PURE__ */ t(jt, {}) }),
673
- /* @__PURE__ */ t(j, { index: 1, name: "account-details", value: e, children: /* @__PURE__ */ t(Ht, {}) })
674
- ] });
675
- }, He = T(Yt);
676
- export {
677
- He as A,
678
- Nt as u
679
- };