@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,60 +1,59 @@
1
- import { T as Aa } from "../TransactionApi-B3Tksf7L.mjs";
2
- import { u as P, C as Pe, D as $e, M as Ve, c as We, T as Ge, a as Ue } from "../TransactionDetails-oP1eSuiS.mjs";
3
- import { B as xa, d as wa, b as Ia } from "../TransactionDetails-oP1eSuiS.mjs";
4
- import { T as M } from "../User-BQUxBeZV.mjs";
5
- import { O as Da } from "../User-BQUxBeZV.mjs";
6
- import { S as ae, D as Fe } from "../TransactionStore-ai3uII_r.mjs";
7
- import { T as Ea } from "../TransactionStore-ai3uII_r.mjs";
8
- import { e as ze } from "../exportTransactionsToCSV-7bVS7KXf.mjs";
9
- import { E as Ma } from "../ExportCsvAction-sX8Rg4Ov.mjs";
1
+ import { T as Ta } from "../TransactionApi-CjBoLleL.mjs";
2
+ import { b as P, C as Ve, D as $e, M as Ge, d as We, u as Ue, T as Fe, a as ze } from "../TransactionDetails-Bn0qY5Hw.mjs";
3
+ import { B as xa, e as Sa, c as wa } from "../TransactionDetails-Bn0qY5Hw.mjs";
4
+ import { T as M } from "../User-BklmOUSd.mjs";
5
+ import { O as Ia } from "../User-BklmOUSd.mjs";
6
+ import { S as ae, D as Ke } from "../TransactionStore-DbwAutwC.mjs";
7
+ import { T as Na } from "../TransactionStore-DbwAutwC.mjs";
8
+ import { e as qe } from "../exportTransactionsToCSV-BgV_wTLT.mjs";
9
+ import { E as Oa } from "../ExportCsvAction-QhQK4_FU.mjs";
10
10
  import { jsxs as _, jsx as e } from "react/jsx-runtime";
11
11
  import u from "react";
12
- import { observer as x } from "mobx-react-lite";
13
- import Ke from "@mui/material/Paper";
14
- import { DataGridPro as qe } from "@mui/x-data-grid-pro";
15
- import S from "@mui/material/Box";
16
- import { useTheme as je } from "@mui/material/styles";
17
- import { Text as C, Icon as B, MerchantLogo as Xe, TextField as ne, P as Ye } from "@mxenabled/mxui";
18
- import { h as $, u as w, b as j, d as se, m as Je, a as Qe, g as Ze, p as et } from "../hooks-D6XlXHf4.mjs";
19
- import { fromUnixTime as tt } from "date-fns/fromUnixTime";
20
- import { f as at, D as nt, a as ie } from "../Dialog-CWW597AF.mjs";
21
- import N from "@mui/material/Stack";
22
- import { f as ce } from "../NumberFormatting-Buh7u8Oi.mjs";
23
- import { L as X } from "../Loader-DUaFpDGv.mjs";
24
- import { endOfMonth as ot } from "date-fns/endOfMonth";
25
- import { getUnixTime as rt } from "date-fns/getUnixTime";
26
- import { startOfMonth as st } from "date-fns/startOfMonth";
27
- import { startOfToday as K } from "date-fns/startOfToday";
28
- import it from "@mui/material/styles/useTheme";
29
- import { l as ct } from "../ConnectDrawer-BQNs-hjk.mjs";
12
+ import { observer as S } from "mobx-react-lite";
13
+ import je from "@mui/material/Paper";
14
+ import { DataGridPro as Ye } from "@mui/x-data-grid-pro";
15
+ import { L as q } from "../Loader-Ckqi9Rx6.mjs";
16
+ import { Text as C, Icon as B, MerchantLogo as Xe, TextField as ne, P as Je } from "@mxenabled/mxui";
17
+ import A from "@mui/material/Stack";
18
+ import { h as V, u as w, b as j, d as se, m as Qe, a as Ze, g as et, p as tt } from "../hooks-C41HAxM5.mjs";
19
+ import { f as ie } from "../NumberFormatting-DjTD0t3W.mjs";
20
+ import x from "@mui/material/Box";
21
+ import { useTheme as ce } from "@mui/material/styles";
22
+ import { fromUnixTime as at } from "date-fns/fromUnixTime";
23
+ import { f as nt, a as ot, D as le } from "../Dialog-CDV0kKxj.mjs";
24
+ import { endOfMonth as rt } from "date-fns/endOfMonth";
25
+ import { getUnixTime as st } from "date-fns/getUnixTime";
26
+ import { startOfMonth as it } from "date-fns/startOfMonth";
27
+ import { startOfToday as z } from "date-fns/startOfToday";
28
+ import { l as ct } from "../ConnectDrawer-DVp54lUH.mjs";
30
29
  import lt from "@mui/material/Divider";
31
30
  import dt from "@mui/material/MenuItem";
32
31
  import ut from "@mui/material/RadioGroup";
33
32
  import { ExpandMore as mt } from "@mxenabled/mx-icons";
34
- import { C as _t } from "../CurrencyInput-DUsQbkXb.mjs";
35
- import { a as pt, u as gt } from "../CategorySelectorDrawer-DUe4lH5-.mjs";
36
- import { b as q } from "../Localization-2MODESHW.mjs";
37
- import { u as ht } from "../useAriaLive-B3_pRUio.mjs";
38
- import { A, W as ft } from "../WidgetContainer-BHWANqT4.mjs";
39
- import { u as Ct } from "../useScreenSize-B6JyS_Lj.mjs";
40
- import { S as yt } from "../SearchBox-B2_zLv8-.mjs";
41
- import { D as oe } from "../Drawer-kEE73B87.mjs";
42
- const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small", children: [
33
+ import { C as _t } from "../CurrencyInput-D1cjbdCI.mjs";
34
+ import { a as pt, u as gt } from "../CategorySelectorDrawer-Dl006GKy.mjs";
35
+ import { b as K } from "../Localization-2MODESHW.mjs";
36
+ import { S as ht } from "../SkeletonLoader-BaNboJjD.mjs";
37
+ import { A as T, W as ft } from "../WidgetContainer-CDh9fjpR.mjs";
38
+ import { D as oe } from "../Drawer-BF40nbsH.mjs";
39
+ import { u as Ct } from "../useScreenSize-B5afALev.mjs";
40
+ import { S as yt } from "../SearchBox-B7km148n.mjs";
41
+ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "body2", children: [
43
42
  `${t.row.account}`,
44
43
  t.row.number && ` | ${t.row.number}`
45
44
  ] }), Tt = (t) => {
46
- const { associatedBeats: s } = $(), { showInsights: r } = P(), { amount: a, transaction_type: i } = t.row, l = s.find((p) => p.associated_transaction_guid === t.row.guid), d = i === M.CREDIT;
47
- return /* @__PURE__ */ _(N, { alignItems: "flex-end", tabIndex: t.tabIndex, children: [
48
- /* @__PURE__ */ _(C, { color: d ? "success.main" : "text.primary", variant: "Small", children: [
45
+ const { associatedBeats: s } = V(), { showInsights: r } = P(), { amount: a, transaction_type: i } = t.row, l = s.find((p) => p.associated_transaction_guid === t.row.guid), d = i === M.CREDIT;
46
+ return /* @__PURE__ */ _(A, { alignItems: "flex-end", tabIndex: t.tabIndex, children: [
47
+ /* @__PURE__ */ _(C, { color: d ? "success.main" : "text.primary", variant: "body2", children: [
49
48
  d ? "+" : "",
50
- ce(a, "0,0.00")
49
+ ie(a, "0,0.00")
51
50
  ] }),
52
- l && r && /* @__PURE__ */ e(C, { bold: !0, color: "primary.light", variant: "XSmall", children: l.short_title })
51
+ l && r && /* @__PURE__ */ e(C, { bold: !0, color: "primary.light", variant: "caption", children: l.short_title })
53
52
  ] });
54
53
  }, At = (t) => {
55
54
  const { transactions: s } = w(), [r, a] = u.useState(!1);
56
55
  return /* @__PURE__ */ _(
57
- N,
56
+ A,
58
57
  {
59
58
  alignItems: "center",
60
59
  direction: "row",
@@ -65,15 +64,15 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
65
64
  width: "100%",
66
65
  children: [
67
66
  t.row.has_been_split && /* @__PURE__ */ e(B, { name: "call_split", size: 16 }),
68
- /* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "Small", children: t.row.has_been_split ? s.split_transaction_category_label : t.row.category }),
67
+ /* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "body2", children: t.row.has_been_split ? s.split_transaction_category_label : t.row.category }),
69
68
  !t.row.has_been_split && r && /* @__PURE__ */ e(B, { name: "edit", sx: { color: "action.active" } })
70
69
  ]
71
70
  }
72
71
  );
73
- }, St = x(At), xt = (t) => /* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "Small", children: at(tt(t.row.date), nt.MONTH_DAY) }), wt = (t) => {
74
- const s = je(), { transactions: r } = w(), { is_flagged: a, is_hidden: i, has_been_viewed: l, parent_guid: d } = t.row, h = !l && !!!d;
72
+ }, xt = S(At), St = (t) => /* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "body2", children: nt(at(t.row.date), ot.MONTH_DAY) }), wt = (t) => {
73
+ const s = ce(), { transactions: r } = w(), { is_flagged: a, is_hidden: i, has_been_viewed: l, parent_guid: d } = t.row, h = !l && !!!d;
75
74
  return /* @__PURE__ */ _(
76
- S,
75
+ x,
77
76
  {
78
77
  "aria-label": i ? r.is_hidden : r.is_flagged,
79
78
  tabIndex: t.tabIndex,
@@ -98,7 +97,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
98
97
  ]
99
98
  }
100
99
  );
101
- }, It = x(wt), O = (t) => /* @__PURE__ */ e(C, { fontWeight: 600, variant: "Small", children: t.colDef.headerName }), vt = (t) => /* @__PURE__ */ _(N, { alignItems: "center", direction: "row", gap: 8, children: [
100
+ }, vt = S(wt), O = (t) => /* @__PURE__ */ e(C, { fontWeight: 600, variant: "body2", children: t.colDef.headerName }), It = (t) => /* @__PURE__ */ _(A, { alignItems: "center", direction: "row", gap: 8, children: [
102
101
  /* @__PURE__ */ e(
103
102
  Xe,
104
103
  {
@@ -106,13 +105,13 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
106
105
  merchantGuid: t.row.merchant_guid || ""
107
106
  }
108
107
  ),
109
- /* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "Small", children: t.row.payee })
108
+ /* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "body2", children: t.row.payee })
110
109
  ] }), Dt = ({
111
110
  height: t = "100dvh",
112
111
  onCategoryClick: s,
113
112
  onRowClick: r
114
113
  }) => {
115
- const { transactions: a } = w(), { isCopyLoaded: i } = j(), { isLoading: l, sortedTransactions: d } = $(), { clearExpandedSplits: p, toggleSplit: h } = P();
114
+ const { transactions: a } = w(), { isCopyLoaded: i } = j(), { isLoading: l, sortedTransactions: d } = V(), { clearExpandedSplits: p, toggleSplit: h } = P();
116
115
  u.useEffect(() => () => p(), []);
117
116
  const f = u.useMemo(
118
117
  () => d.map((n) => ({
@@ -121,17 +120,17 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
121
120
  ...n
122
121
  })),
123
122
  [d]
124
- ), m = ({ row: { id: n, guid: g, has_been_split: T }, field: E }) => T ? h(n) : E === "category" ? s?.(g) : r?.(g);
123
+ ), m = ({ row: { id: n, guid: g, has_been_split: I }, field: E }) => I ? h(n) : E === "category" ? s?.(g) : r?.(g);
125
124
  if (!i)
126
- return /* @__PURE__ */ e(X, {});
127
- const I = [
125
+ return /* @__PURE__ */ e(q, {});
126
+ const v = [
128
127
  {
129
128
  field: "flag",
130
129
  headerName: "",
131
130
  minWidth: 32,
132
131
  width: 32,
133
132
  sortable: !1,
134
- renderCell: (n) => /* @__PURE__ */ e(It, { ...n }),
133
+ renderCell: (n) => /* @__PURE__ */ e(vt, { ...n }),
135
134
  renderHeader: () => /* @__PURE__ */ e("span", { "aria-label": a.transaction_status, role: "presentation" })
136
135
  },
137
136
  {
@@ -139,7 +138,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
139
138
  headerName: a.date_title,
140
139
  width: 103,
141
140
  renderHeader: O,
142
- renderCell: (n) => n.row.parent_guid ? null : /* @__PURE__ */ e(xt, { ...n }),
141
+ renderCell: (n) => n.row.parent_guid ? null : /* @__PURE__ */ e(St, { ...n }),
143
142
  sortingOrder: ["desc", "asc"]
144
143
  },
145
144
  {
@@ -148,7 +147,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
148
147
  headerName: a.payee_title,
149
148
  flex: 0.33,
150
149
  renderHeader: O,
151
- renderCell: vt,
150
+ renderCell: It,
152
151
  sortingOrder: ["asc", "desc"]
153
152
  },
154
153
  {
@@ -156,7 +155,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
156
155
  headerName: a.category_title,
157
156
  flex: 0.25,
158
157
  renderHeader: O,
159
- renderCell: (n) => /* @__PURE__ */ e(St, { ...n }),
158
+ renderCell: (n) => /* @__PURE__ */ e(xt, { ...n }),
160
159
  sortingOrder: ["asc", "desc"]
161
160
  },
162
161
  {
@@ -178,10 +177,10 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
178
177
  sortingOrder: ["asc", "desc"]
179
178
  }
180
179
  ];
181
- return /* @__PURE__ */ e(Ke, { sx: { height: t, px: 24, width: "100%", boxShadow: "none" }, children: /* @__PURE__ */ e(
182
- qe,
180
+ return /* @__PURE__ */ e(je, { sx: { height: t, px: 24, width: "100%", boxShadow: "none" }, children: /* @__PURE__ */ e(
181
+ Ye,
183
182
  {
184
- columns: I,
183
+ columns: v,
185
184
  disableColumnFilter: !0,
186
185
  disableColumnMenu: !0,
187
186
  getCellClassName: (n) => n.row.parent_guid ? "split-row" : "",
@@ -198,10 +197,10 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
198
197
  }
199
198
  }
200
199
  ) });
201
- }, Nt = x(Dt), Et = ({ copy: t, isOpen: s, onClose: r, onPrimaryAction: a }) => {
200
+ }, Nt = S(Dt), Et = ({ copy: t, isOpen: s, onClose: r, onPrimaryAction: a }) => {
202
201
  const { common: i, transactions: l } = w(), { isCopyLoaded: d } = j();
203
202
  return d ? /* @__PURE__ */ _(
204
- ie,
203
+ le,
205
204
  {
206
205
  copy: {
207
206
  title: t.title
@@ -216,15 +215,15 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
216
215
  /* @__PURE__ */ e(C, { component: "p", truncate: !1, children: l.add_account_modal_cta })
217
216
  ]
218
217
  }
219
- ) : /* @__PURE__ */ e(X, {});
220
- }, Ot = x(Et), Mt = () => {
218
+ ) : /* @__PURE__ */ e(q, {});
219
+ }, Ot = S(Et), Mt = () => {
221
220
  const { visibleAccounts: t } = se(), { common: s, transactions: r } = w(), { manualTransaction: a, setIsAmountValid: i, updateManualTransaction: l } = P(), [d, p] = u.useState(""), [h, f] = u.useState(""), m = u.useMemo(
222
221
  () => t.filter((o) => o.is_manual),
223
222
  [t]
224
223
  ).map((o) => ({
225
- label: `${o.name} | ${ce(o.balance, "0,0.00")}`,
224
+ label: `${o.name} | ${ie(o.balance, "0,0.00")}`,
226
225
  value: o.guid
227
- })), I = {
226
+ })), v = {
228
227
  error_amount_is_invalid: s.currency_input.error_amount_is_invalid,
229
228
  error_amount_must_be_equal_to: s.currency_input.error_amount_must_be_equal_to,
230
229
  error_amount_must_be_less_than_or_equal_to: s.currency_input.error_amount_must_be_less_than_or_equal_to,
@@ -233,15 +232,15 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
233
232
  p(o), l({ ...a, amount: Number(o) });
234
233
  }, g = (o, k) => {
235
234
  l({ ...a, transaction_type: Number(k) });
236
- }, T = (o) => {
235
+ }, I = (o) => {
237
236
  f(o), l({ ...a, payee: o, description: o });
238
237
  }, E = (o) => {
239
238
  l({ ...a, account_guid: o });
240
239
  };
241
- return /* @__PURE__ */ _(S, { className: "mx-txn-manual-transaction-details", children: [
242
- /* @__PURE__ */ _(N, { gap: 40, mx: 24, my: 32, children: [
240
+ return /* @__PURE__ */ _(x, { className: "mx-txn-manual-transaction-details", children: [
241
+ /* @__PURE__ */ _(A, { gap: 40, mx: 24, my: 32, children: [
243
242
  /* @__PURE__ */ _(
244
- N,
243
+ A,
245
244
  {
246
245
  direction: "row",
247
246
  sx: { flexDirection: { xs: "column", sm: "row" }, gap: { xs: 40, sm: 8 } },
@@ -252,7 +251,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
252
251
  allowDecimals: !0,
253
252
  amount: d,
254
253
  ariaLabel: r.amount_title,
255
- copy: I,
254
+ copy: v,
256
255
  inputProps: {
257
256
  noValidate: !0
258
257
  },
@@ -263,7 +262,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
263
262
  type: "number"
264
263
  }
265
264
  ),
266
- /* @__PURE__ */ e(ut, { name: "TransactionType", onChange: g, row: !0, children: /* @__PURE__ */ _(N, { alignItems: "center", direction: "row", children: [
265
+ /* @__PURE__ */ e(ut, { name: "TransactionType", onChange: g, row: !0, children: /* @__PURE__ */ _(A, { alignItems: "center", direction: "row", children: [
267
266
  /* @__PURE__ */ e(
268
267
  ae,
269
268
  {
@@ -292,7 +291,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
292
291
  {
293
292
  label: r.payee_title,
294
293
  name: "payee",
295
- onChange: (o) => T(o.target.value),
294
+ onChange: (o) => I(o.target.value),
296
295
  sx: { bgcolor: "background.paper" },
297
296
  value: h
298
297
  }
@@ -312,21 +311,21 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
312
311
  )
313
312
  ] }),
314
313
  /* @__PURE__ */ e(lt, { light: !0 }),
315
- /* @__PURE__ */ _(S, { bgcolor: "background.paper", children: [
316
- /* @__PURE__ */ e(Pe, { transaction: a }),
317
- /* @__PURE__ */ e($e, { transaction: a }),
314
+ /* @__PURE__ */ _(x, { bgcolor: "background.paper", children: [
318
315
  /* @__PURE__ */ e(Ve, { transaction: a }),
316
+ /* @__PURE__ */ e($e, { transaction: a }),
317
+ /* @__PURE__ */ e(Ge, { transaction: a }),
319
318
  /* @__PURE__ */ e(We, { transaction: a })
320
319
  ] })
321
320
  ] });
322
- }, kt = x(Mt), Lt = ({ onClose: t, transaction: s }) => {
323
- const { addOrUpdateTransactionRule: r, updateTransaction: a } = $(), { transactions: i } = w(), { categories: l } = Je(), [d, p] = u.useState(""), h = u.useMemo(
321
+ }, kt = S(Mt), Lt = ({ onClose: t, transaction: s }) => {
322
+ const { addOrUpdateTransactionRule: r, updateTransaction: a } = V(), { transactions: i } = w(), { categories: l } = Qe(), [d, p] = u.useState(""), h = u.useMemo(
324
323
  () => l.find((m) => m.guid === d),
325
324
  [d]
326
325
  ), f = async (m) => {
327
326
  await a({ ...s, category_guid: d }), m && await r(d, s), p(""), t();
328
327
  };
329
- return /* @__PURE__ */ _(S, { className: "mx-txn-edit-category-action", children: [
328
+ return /* @__PURE__ */ _(x, { className: "mx-txn-edit-category-action", children: [
330
329
  /* @__PURE__ */ e(
331
330
  pt,
332
331
  {
@@ -338,10 +337,10 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
338
337
  }
339
338
  ),
340
339
  /* @__PURE__ */ e(
341
- ie,
340
+ le,
342
341
  {
343
342
  copy: {
344
- title: q(
343
+ title: K(
345
344
  i.actions_apply_to_all_transaction_types,
346
345
  s.description
347
346
  )
@@ -352,7 +351,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
352
351
  onSecondaryAction: () => f(!1),
353
352
  primaryText: i.actions_apply_to_all,
354
353
  secondaryText: i.actions_this_time_only,
355
- children: /* @__PURE__ */ e(Ye, { variant: "Paragraph", children: q(
354
+ children: /* @__PURE__ */ e(Je, { variant: "subtitle1", children: K(
356
355
  i.actions_all_past_and_future,
357
356
  s.description,
358
357
  h?.name
@@ -360,184 +359,190 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
360
359
  }
361
360
  )
362
361
  ] });
363
- }, Rt = x(Lt), re = 120, Ht = ({
362
+ }, Rt = S(Lt), re = 120, Ht = ({
364
363
  onBackClick: t,
365
364
  height: s = "100dvh",
366
365
  showInsights: r = !1,
367
366
  sx: a = {}
368
367
  }) => {
369
- const { visibleAccounts: i, refreshAccounts: l } = se(), { is_mobile_webview: d, clientConfig: p, config: h } = Qe(), { setSearchValue: f } = gt(), { onEvent: m } = Ze(), { common: I, transactions: n } = w(), {
368
+ const { visibleAccounts: i, refreshAccounts: l } = se(), { is_mobile_webview: d, clientConfig: p, config: h } = Ze(), { setSearchValue: f } = gt(), { onEvent: m } = et(), { common: v, transactions: n } = w(), {
370
369
  displayedDateRange: g,
371
- isCopyLoaded: T,
370
+ isCopyLoaded: I,
372
371
  isInitialized: E,
373
372
  selectedAccountGuids: o,
374
373
  setDisplayedDate: k,
375
- setSelectedAccounts: le
376
- } = j(), { isDesktop: de, isTablet: ue } = Ct(), L = it(), {
377
- addTransaction: me,
374
+ setSelectedAccounts: de
375
+ } = j(), { isDesktop: ue, isTablet: me } = Ct(), L = ce(), {
376
+ addTransaction: _e,
378
377
  filter: Y,
379
- loadAssociatedBeats: _e,
380
- setFilter: V,
381
- sortedTransactionsWithSplits: W,
382
- tags: pe,
383
- transactions: ge,
384
- updateTransaction: he
385
- } = $(), {
386
- clearExpandedSplits: fe,
387
- isAmountValid: Ce,
378
+ isTransactionDataLoaded: X,
379
+ loadAssociatedBeats: pe,
380
+ loadTransactionData: ge,
381
+ setFilter: $,
382
+ sortedTransactionsWithSplits: G,
383
+ tags: he,
384
+ detailedTransactions: fe,
385
+ updateTransaction: Ce
386
+ } = V(), {
387
+ clearExpandedSplits: ye,
388
+ isAmountValid: be,
388
389
  manualTransaction: R,
389
- searchValue: ye,
390
- setSearchValue: be,
391
- setShowInsights: Te,
392
- updateManualTransaction: Ae
393
- } = P(), { userProfile: Se } = et(), [G, y] = u.useState(""), [J, H] = u.useState(""), [xe, U] = u.useState(!1), [we, Q] = u.useState(!1), [F, Ie] = u.useState(!1), { announce: ve, ariaLive: De } = ht(), v = p?.transactions?.selected_account_guid;
390
+ searchValue: Te,
391
+ setSearchValue: Ae,
392
+ setShowInsights: xe,
393
+ updateManualTransaction: Se
394
+ } = P(), { userProfile: we } = tt(), [W, y] = u.useState(""), [J, H] = u.useState(""), [ve, U] = u.useState(!1), [Ie, Q] = u.useState(!1), { announce: De, ariaLive: Ne } = Ue(), D = p?.transactions?.selected_account_guid;
394
395
  u.useEffect(() => {
395
- const c = v ? [{ guid: v }] : i.filter((D) => !D.is_hidden), ee = st(K()), te = ot(K());
396
- v || le(c), k(ee, te), V({
397
- accounts: c.map((D) => D.guid),
398
- custom: (D) => !D.accountIsClosed && !D.accountIsHidden,
396
+ X || ge().finally();
397
+ }, []), u.useEffect(() => {
398
+ const c = D ? [{ guid: D }] : i.filter((N) => !N.is_hidden), ee = it(z()), te = rt(z());
399
+ D || de(c), k(ee, te), $({
400
+ accounts: c.map((N) => N.guid),
401
+ custom: (N) => !N.accountIsClosed && !N.accountIsHidden,
399
402
  dateRange: { start: ee, end: te }
400
- }), Ie(!0), m(A.TRANSACTIONS_VIEW);
403
+ }), m(T.TRANSACTIONS_VIEW);
401
404
  }, [i]), u.useEffect(() => {
402
- F && (V({
405
+ $({
403
406
  ...Y,
404
- accounts: v ? [v] : o,
407
+ accounts: D ? [D] : o,
405
408
  dateRange: { start: g.start, end: g.end }
406
- }), _e(g.start).finally());
407
- }, [F, g, o]), u.useEffect(() => {
408
- Te(r);
409
+ }), pe(g.start).finally();
410
+ }, [g, o]), u.useEffect(() => {
411
+ xe(r);
409
412
  }, [r]), u.useEffect(() => {
410
- T && n.showing_transactions_count && ve(
411
- q(
413
+ I && n.showing_transactions_count && De(
414
+ K(
412
415
  n.showing_transactions_count,
413
- W.length
416
+ G.length
414
417
  )
415
418
  );
416
- }, [T, g, o, W, n]);
417
- const Ne = u.useMemo(
419
+ }, [I, g, o, G, n]);
420
+ const Ee = u.useMemo(
418
421
  () => i.filter((c) => c.is_manual),
419
422
  [i]
420
- ), b = J ? ge.find((c) => c.guid === J) : void 0, Z = Ce && !!R.payee && !!R.account_guid && !!R.category_guid, Ee = (c) => {
421
- fe(), k(c[0], c[1]);
422
- }, Oe = (c) => {
423
- be(c), V({
423
+ ), b = J ? fe.find((c) => c.guid === J) : void 0, Z = be && !!R.payee && !!R.account_guid && !!R.category_guid, Oe = (c) => {
424
+ ye(), k(c[0], c[1]);
425
+ }, Me = (c) => {
426
+ Ae(c), $({
424
427
  ...Y,
425
428
  searchTerm: c
426
- }), m(A.TRANSACTIONS_CLICK_SEARCH, { search_term: c });
427
- }, Me = () => {
428
- ze(W, pe), m(A.TRANSACTIONS_CLICK_EXPORT);
429
+ }), m(T.TRANSACTIONS_CLICK_SEARCH, { search_term: c });
429
430
  }, ke = () => {
430
- Ne.length > 0 ? (Ae({
431
- ...Fe,
432
- date: rt(K()),
433
- user_guid: Se?.user_guid || ""
431
+ qe(G, he), m(T.TRANSACTIONS_CLICK_EXPORT);
432
+ }, Le = () => {
433
+ Ee.length > 0 ? (Se({
434
+ ...Ke,
435
+ date: st(z()),
436
+ user_guid: we?.user_guid || ""
434
437
  }), y(
435
438
  "addTransaction"
436
439
  /* AddTransaction */
437
- ), m(A.TRANSACTIONS_CLICK_ADD)) : (U(!0), m(A.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
438
- }, Le = async () => {
439
- Z && await me(R), y("");
440
- }, Re = () => {
440
+ ), m(T.TRANSACTIONS_CLICK_ADD)) : (U(!0), m(T.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
441
+ }, Re = async () => {
442
+ Z && await _e(R), y("");
443
+ }, He = () => {
441
444
  U(!1), Q(!0);
442
- }, He = async () => {
443
- Q(!1), await l();
444
445
  }, Be = async () => {
445
- b && !b.has_been_viewed && await he({ ...b, has_been_viewed: !0 }), y("");
446
+ Q(!1), await l();
447
+ }, Pe = async () => {
448
+ b && !b.has_been_viewed && await Ce({ ...b, has_been_viewed: !0 }), y("");
446
449
  };
447
- if (!T || !E || !F)
448
- return /* @__PURE__ */ e(X, {});
449
- const z = [];
450
- return !d && (de || ue) && z.push({
450
+ if (!E)
451
+ return /* @__PURE__ */ e(q, {});
452
+ const F = [];
453
+ return !d && (ue || me) && F.push({
451
454
  iconName: "open_in_new",
452
455
  label: n.export_csv_btn,
453
- onClick: Me
454
- }), h.show_connections_widget_in_master && z.push({
456
+ onClick: ke
457
+ }), h.show_connections_widget_in_master && F.push({
455
458
  iconName: "add",
456
459
  label: n.add_transaction_btn,
457
- onClick: ke
460
+ onClick: Le
458
461
  }), /* @__PURE__ */ _(
459
462
  ft,
460
463
  {
461
- ...!v && { accountOptions: i },
462
- actions: z,
464
+ ...!D && { accountOptions: i },
465
+ actions: F,
463
466
  calendarActions: {
464
- onRangeChanged: Ee
467
+ onRangeChanged: Oe
465
468
  },
466
- onAccountsFilterClick: () => m(A.ACCOUNTS_CLICK_FILTER),
469
+ onAccountsFilterClick: () => m(T.ACCOUNTS_CLICK_FILTER),
467
470
  onBackClick: t,
468
471
  sx: a,
469
472
  title: n.transactions_title,
470
473
  children: [
471
- De,
472
- /* @__PURE__ */ e(S, { mt: 16, children: /* @__PURE__ */ e(
473
- yt,
474
- {
475
- onChange: Oe,
476
- placeholder: n.action_bar_search_placeholder,
477
- searchValue: ye
478
- }
479
- ) }),
480
- /* @__PURE__ */ e(
481
- S,
482
- {
483
- sx: {
484
- [L.breakpoints.down("md")]: { display: "none" },
485
- [L.breakpoints.up("md")]: { display: "block" }
486
- },
487
- children: /* @__PURE__ */ e(
488
- Nt,
489
- {
490
- height: `calc(${s} - ${re}px)`,
491
- onCategoryClick: (c) => {
492
- H(c), y(
493
- "category"
494
- /* Category */
495
- );
496
- },
497
- onRowClick: (c) => {
498
- H(c), y(
499
- "transaction"
500
- /* Transaction */
501
- ), m(A.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: c });
474
+ X ? /* @__PURE__ */ _(A, { children: [
475
+ Ne,
476
+ /* @__PURE__ */ e(x, { mt: 16, children: /* @__PURE__ */ e(
477
+ yt,
478
+ {
479
+ onChange: Me,
480
+ placeholder: n.action_bar_search_placeholder,
481
+ searchValue: Te
482
+ }
483
+ ) }),
484
+ /* @__PURE__ */ e(
485
+ x,
486
+ {
487
+ sx: {
488
+ [L.breakpoints.down("md")]: { display: "none" },
489
+ [L.breakpoints.up("md")]: { display: "block" }
490
+ },
491
+ children: /* @__PURE__ */ e(
492
+ Nt,
493
+ {
494
+ height: `calc(${s} - ${re}px)`,
495
+ onCategoryClick: (c) => {
496
+ H(c), y(
497
+ "category"
498
+ /* Category */
499
+ );
500
+ },
501
+ onRowClick: (c) => {
502
+ H(c), y(
503
+ "transaction"
504
+ /* Transaction */
505
+ ), m(T.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: c });
506
+ }
502
507
  }
503
- }
504
- )
505
- }
506
- ),
507
- /* @__PURE__ */ e(
508
- S,
509
- {
510
- sx: {
511
- [L.breakpoints.down("md")]: { display: "block" },
512
- [L.breakpoints.up("md")]: { display: "none" }
513
- },
514
- children: /* @__PURE__ */ e(
515
- Ge,
516
- {
517
- height: `calc(${s} - ${re}px)`,
518
- onClick: (c) => {
519
- H(c), y(
520
- "transaction"
521
- /* Transaction */
522
- );
523
- },
524
- showHiddenTransactions: !0,
525
- showInsights: r
526
- }
527
- )
528
- }
529
- ),
508
+ )
509
+ }
510
+ ),
511
+ /* @__PURE__ */ e(
512
+ x,
513
+ {
514
+ sx: {
515
+ [L.breakpoints.down("md")]: { display: "block" },
516
+ [L.breakpoints.up("md")]: { display: "none" }
517
+ },
518
+ children: /* @__PURE__ */ e(
519
+ Fe,
520
+ {
521
+ height: `calc(${s} - ${re}px)`,
522
+ onClick: (c) => {
523
+ H(c), y(
524
+ "transaction"
525
+ /* Transaction */
526
+ );
527
+ },
528
+ showHiddenTransactions: !0,
529
+ showInsights: r
530
+ }
531
+ )
532
+ }
533
+ )
534
+ ] }) : /* @__PURE__ */ e(ht, { variant: "list" }),
530
535
  /* @__PURE__ */ e(
531
536
  oe,
532
537
  {
533
- ariaLabelClose: I.close_aria,
534
- isOpen: G === "transaction" && !!b,
535
- onClose: Be,
538
+ ariaLabelClose: v.close_aria,
539
+ isOpen: W === "transaction" && !!b,
540
+ onClose: Pe,
536
541
  title: n.details_title,
537
- children: b && /* @__PURE__ */ e(Ue, { transaction: b })
542
+ children: b && /* @__PURE__ */ e(ze, { transaction: b })
538
543
  }
539
544
  ),
540
- b && G === "category" && /* @__PURE__ */ e(
545
+ b && W === "category" && /* @__PURE__ */ e(
541
546
  Rt,
542
547
  {
543
548
  onClose: () => {
@@ -549,11 +554,11 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
549
554
  /* @__PURE__ */ e(
550
555
  oe,
551
556
  {
552
- ariaLabelClose: I.close_aria,
553
- isOpen: G === "addTransaction",
557
+ ariaLabelClose: v.close_aria,
558
+ isOpen: W === "addTransaction",
554
559
  isPrimaryDisabled: !Z,
555
560
  onClose: () => y(""),
556
- onPrimaryAction: Le,
561
+ onPrimaryAction: Re,
557
562
  title: n.add_transaction_title,
558
563
  children: /* @__PURE__ */ e(kt, {})
559
564
  }
@@ -562,38 +567,38 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
562
567
  Ot,
563
568
  {
564
569
  copy: { title: n.add_manual_account },
565
- isOpen: xe,
570
+ isOpen: ve,
566
571
  onClose: () => {
567
572
  U(!1);
568
573
  },
569
- onPrimaryAction: Re
574
+ onPrimaryAction: He
570
575
  }
571
576
  ),
572
577
  /* @__PURE__ */ e(
573
578
  ct,
574
579
  {
575
- onClose: He,
576
- showConnectWidget: we,
580
+ onClose: Be,
581
+ showConnectWidget: Ie,
577
582
  title: n.add_manual_account
578
583
  }
579
584
  )
580
585
  ]
581
586
  }
582
587
  );
583
- }, ya = x(Ht);
588
+ }, Ca = S(Ht);
584
589
  export {
585
590
  Ot as AddAccountModal,
586
591
  xa as BottomActions,
587
- Ma as ExportCsvAction,
588
- Da as TRANSACTION_EVENTS,
589
- wa as TopActions,
590
- Aa as TransactionApi,
591
- Ue as TransactionDetails,
592
- Ge as TransactionList,
593
- Ia as TransactionRow,
594
- Ea as TransactionStore,
592
+ Oa as ExportCsvAction,
593
+ Ia as TRANSACTION_EVENTS,
594
+ Sa as TopActions,
595
+ Ta as TransactionApi,
596
+ ze as TransactionDetails,
597
+ Fe as TransactionList,
598
+ wa as TransactionRow,
599
+ Na as TransactionStore,
595
600
  Nt as TransactionTable,
596
- ya as TransactionWidget,
597
- ze as exportTransactionsToCSV,
601
+ Ca as TransactionWidget,
602
+ qe as exportTransactionsToCSV,
598
603
  P as useTransactionsUiStore
599
604
  };