@mx-cartographer/experiences 9.0.0-alpha.mega1 → 9.0.0-ram1-bug-alpha-testing

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 (773) hide show
  1. package/CHANGELOG.md +676 -9
  2. package/README.md +216 -47
  3. package/dist/{Account-CMjOp7S2.mjs → Account-BaJmiJAG.mjs} +4 -4
  4. package/dist/{Account-BIKn4XEZ.mjs → Account-BxHMlV9R.mjs} +1 -1
  5. package/dist/AccountDetailsHeader-DIysk_4w.mjs +95 -0
  6. package/dist/AccountFields-mwJ8NXsX.mjs +141 -0
  7. package/dist/AccountListItem-BDXHs4tV.mjs +94 -0
  8. package/dist/AccountUtils-T5_Odvos.mjs +27 -0
  9. package/dist/Accounts-CseLC3lL.mjs +5 -0
  10. package/dist/Analytics-CkYXKvco.mjs +53 -0
  11. package/dist/Analytics-CzGzz_sE.mjs +136 -0
  12. package/dist/ApiEndpoints-DXwIYNUV.mjs +49 -0
  13. package/dist/BudgetUtil-Bg2AQJpQ.mjs +74 -0
  14. package/dist/{Category-Ccoew_sA.mjs → Category-DEKZGLYe.mjs} +3 -3
  15. package/dist/{CategorySelectorDrawer-C4aZYP4N.mjs → CategorySelectorDrawer-CmaDLhnf.mjs} +131 -119
  16. package/dist/Connect-Dk6GZEsA.mjs +39 -0
  17. package/dist/ConnectCard-CCep7Zqe.mjs +54 -0
  18. package/dist/ConnectDrawer-Cnjr3Ddg.mjs +58 -0
  19. package/dist/{ConnectionsDrawer-BExzgE16.mjs → ConnectionsDrawer-CtfPXk0M.mjs} +13 -12
  20. package/dist/CurrencyDialog-DumQCTPO.mjs +373 -0
  21. package/dist/CurrencyInput-adTIRtL3.mjs +87 -0
  22. package/dist/{CurrencyText-C-85TnUF.mjs → CurrencyText-CCbE6MmF.mjs} +1 -1
  23. package/dist/DateFormats-HudZ3Bjs.mjs +64 -0
  24. package/dist/DateUtil-Bhq59ZVg.mjs +58 -0
  25. package/dist/DebtUtils-DD3186U-.mjs +153 -0
  26. package/dist/Dialog-CwWc0AbH.mjs +63 -0
  27. package/dist/Donut-SzzfZDHF.mjs +88 -0
  28. package/dist/{Drawer-Bet2ZPJo.mjs → Drawer-BXqqBMxg.mjs} +32 -34
  29. package/dist/EmbeddedCard-DPwJjqMH.mjs +856 -0
  30. package/dist/{EmptyState-DoxNUae-.mjs → EmptyState-CJUDc3kD.mjs} +21 -22
  31. package/dist/Error-Dogaw2jO.mjs +84 -0
  32. package/dist/ErrorBoundary-CsdOcnJ9.mjs +23 -0
  33. package/dist/{ExportCsvAction-oG_Mn66T.mjs → ExportCsvAction-Bw02ZJEj.mjs} +6 -6
  34. package/dist/GlobalAccountFilter-7Cg2-9A5.mjs +237 -0
  35. package/dist/GlobalCopyApi-wcnDUzMV.mjs +128 -0
  36. package/dist/GoalsUtil-C9EnLWvC.mjs +107 -0
  37. package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
  38. package/dist/{Help-c-zHlDbv.mjs → Help-CkQTjORd.mjs} +6 -27
  39. package/dist/{Help-BW_ar-4B.mjs → Help-DJ8PrVHX.mjs} +594 -562
  40. package/dist/InformationTooltip-4su8bn1e.mjs +41 -0
  41. package/dist/{InvestmentUtil-jOyOgzIB.mjs → InvestmentUtil-BItV7uEs.mjs} +17 -17
  42. package/dist/LineChart-CejWS_rh.mjs +612 -0
  43. package/dist/{ListItemAction-Cbr3417C.mjs → ListItemAction-CwspSmQi.mjs} +26 -26
  44. package/dist/ListItemRow-kH1rn8Xu.mjs +67 -0
  45. package/dist/ListItemWrapper-B5r-YQQ_.mjs +42 -0
  46. package/dist/Loader-CxeBwuPG.mjs +21 -0
  47. package/dist/Localization-DnoVyBNK.mjs +38 -0
  48. package/dist/ManageIncome-B1JfqslT.mjs +595 -0
  49. package/dist/{MicroWidgetContainer-DSyYwRCU.mjs → MicroWidgetContainer-CfKdQfhi.mjs} +2 -2
  50. package/dist/MiniWidgetContainer-BdPiUU-u.mjs +66 -0
  51. package/dist/NetWorthUtils-DilGN1nW.mjs +95 -0
  52. package/dist/Notification-DTNYSd8P.mjs +7 -0
  53. package/dist/{NotificationSettings-e789PcRb.mjs → NotificationSettings-6p-h5phZ.mjs} +143 -142
  54. package/dist/NotificationUtils-BRGFTePr.mjs +23 -0
  55. package/dist/{NumberFormatting-DjTD0t3W.mjs → NumberFormatting--XMeeBfr.mjs} +2 -1
  56. package/dist/OriginalBalanceAction-CkJPnp2c.mjs +114 -0
  57. package/dist/{RecurringSettings-BpCUcE8w.mjs → RecurringSettings-cm6MK_aS.mjs} +4 -4
  58. package/dist/RecurringTransactionsUtil-B3rLEx_g.mjs +253 -0
  59. package/dist/{ResponsiveButton-C6KH8JH4.mjs → ResponsiveButton-CC9F_Ezk.mjs} +4 -4
  60. package/dist/SearchBox-Cpgu_gdO.mjs +50 -0
  61. package/dist/Select-BFt-HD-L.mjs +55 -0
  62. package/dist/SelectionBox-B4xELRgp.mjs +48 -0
  63. package/dist/{SingleSegmentDonut-PsRQPkmV.mjs → SingleSegmentDonut-7Uy6VEld.mjs} +1 -1
  64. package/dist/Sizes-DISGrlUg.mjs +6 -0
  65. package/dist/{SpendingData-B7NuTQ9s.mjs → SpendingData-xyRoRDHv.mjs} +7 -7
  66. package/dist/SpendingLegend-5Ct_FZ8o.mjs +193 -0
  67. package/dist/ToggleListItem-Dl1lXNwj.mjs +91 -0
  68. package/dist/TransactionDetails-C3dlAzYf.mjs +1714 -0
  69. package/dist/TransactionUtils-BphBJBbU.mjs +234 -0
  70. package/dist/TrendsUtil-D9z3kIj_.mjs +69 -0
  71. package/dist/UserStore-CRpKQjpP.mjs +3002 -0
  72. package/dist/ViewMoreMicroCard-BD_MNc2z.mjs +1295 -0
  73. package/dist/WidgetContainer-DNuz_s7W.mjs +479 -0
  74. package/dist/accounts/AccountsMiniWidget.d.ts +1 -1
  75. package/dist/accounts/AccountsWidget.d.ts +1 -1
  76. package/dist/accounts/components/AccountListItem.d.ts +1 -1
  77. package/dist/accounts/components/AccountsListCompact.d.ts +1 -1
  78. package/dist/accounts/components/detailsdrawer/Accounts/AccountActionsRow.d.ts +1 -0
  79. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +1 -1
  80. package/dist/accounts/hooks/useGetMergeableAccounts.d.ts +1 -1
  81. package/dist/accounts/hooks/useUiStore.d.ts +6 -1
  82. package/dist/accounts/index.d.ts +0 -2
  83. package/dist/accounts/index.es.js +628 -527
  84. package/dist/accounts/utils/AccountDetails.d.ts +1 -1
  85. package/dist/accounts/utils/AccountFields.d.ts +3 -3
  86. package/dist/analytics/index.es.js +93 -112
  87. package/dist/budgets/BubbleBudgetsMiniWidget.d.ts +1 -1
  88. package/dist/budgets/BubbleBudgetsWidget.d.ts +1 -1
  89. package/dist/budgets/components/BubbleChart.d.ts +1 -1
  90. package/dist/budgets/components/BudgetDetailsDrawerV2.d.ts +11 -0
  91. package/dist/budgets/components/MerchantBudgetDetailsDrawer.d.ts +17 -0
  92. package/dist/budgets/components/addbudget/RecalculateBudgetRow.d.ts +1 -1
  93. package/dist/budgets/components/addbudget/UnbudgetedRow.d.ts +1 -1
  94. package/dist/budgets/components/bubblechart/Bubble.d.ts +1 -1
  95. package/dist/budgets/components/budgetdetails/AddSubBudget.d.ts +1 -1
  96. package/dist/budgets/components/budgetdetails/BudgetDetails.d.ts +1 -1
  97. package/dist/budgets/components/budgetdetails/Header.d.ts +1 -1
  98. package/dist/budgets/components/budgetdetails/SubBudgetList.d.ts +1 -1
  99. package/dist/budgets/components/budgetlist/BudgetRow.d.ts +1 -1
  100. package/dist/budgets/components/budgetlist/SubBudgetRow.d.ts +1 -1
  101. package/dist/budgets/components/shared/BudgetDetailsTopSection.d.ts +13 -0
  102. package/dist/budgets/index.d.ts +2 -1
  103. package/dist/budgets/index.es.js +989 -813
  104. package/dist/budgets/utils/BubblesSVG.d.ts +3 -3
  105. package/dist/cashflow/CashflowMiniWidget.d.ts +1 -1
  106. package/dist/cashflow/CashflowWidget.d.ts +1 -1
  107. package/dist/cashflow/components/DetailsExpenseRow.d.ts +1 -1
  108. package/dist/cashflow/context/hooks.d.ts +15 -1
  109. package/dist/cashflow/index.d.ts +0 -2
  110. package/dist/cashflow/index.es.js +461 -490
  111. package/dist/cashflow/util/Filters.d.ts +1 -1
  112. package/dist/categories/components/CategoryRow.d.ts +1 -1
  113. package/dist/categories/components/CustomCategories/AddSubcategory.d.ts +1 -1
  114. package/dist/categories/components/CustomCategories/DeleteSubcategory.d.ts +1 -1
  115. package/dist/categories/components/CustomCategories/RenameSubcategory.d.ts +1 -1
  116. package/dist/categories/components/SubcategoryList.d.ts +1 -1
  117. package/dist/categories/components/SubcategoryRow.d.ts +1 -1
  118. package/dist/categories/context/hooks.d.ts +19 -1
  119. package/dist/categories/index.d.ts +0 -1
  120. package/dist/categories/index.es.js +4 -6
  121. package/dist/common/components/CurrencyDialog.d.ts +19 -0
  122. package/dist/common/components/CurrencyInput.d.ts +1 -1
  123. package/dist/common/components/EmptyState.d.ts +0 -1
  124. package/dist/common/components/Error.d.ts +13 -0
  125. package/dist/common/components/GlobalAccountFilter.d.ts +3 -2
  126. package/dist/common/components/Loader.d.ts +1 -2
  127. package/dist/common/components/MiniWidgetContainer.d.ts +1 -0
  128. package/dist/common/components/TinyBarChart.d.ts +10 -0
  129. package/dist/common/components/WidgetContainer.d.ts +4 -3
  130. package/dist/common/components/WidgetDateRangeSelector.d.ts +12 -0
  131. package/dist/common/components/charts/LineChart.d.ts +1 -0
  132. package/dist/common/components/charts/index.d.ts +1 -0
  133. package/dist/common/components/charts/linechart/CustomTooltip.d.ts +2 -1
  134. package/dist/common/components/charts/linechart/utils/markerShapes.d.ts +3 -0
  135. package/dist/common/components/charts/stackedlinechart/CustomAreaTooltip.d.ts +1 -1
  136. package/dist/common/components/daterangeselector/DateRangeSelector.d.ts +1 -0
  137. package/dist/common/components/globalaccountfilter/GlobalAccountFilterList.d.ts +1 -1
  138. package/dist/common/components/index.d.ts +2 -1
  139. package/dist/common/constants/Account.d.ts +1 -1
  140. package/dist/common/constants/Analytics.d.ts +12 -0
  141. package/dist/common/constants/ScheduledPayment.d.ts +1 -10
  142. package/dist/common/constants/SpendingPlan.d.ts +0 -10
  143. package/dist/common/constants/index.d.ts +2 -6
  144. package/dist/common/context/GlobalDataProvider.d.ts +2 -1
  145. package/dist/common/context/hooks.d.ts +24 -24
  146. package/dist/common/hooks/index.d.ts +2 -0
  147. package/dist/common/hooks/useAccountDisplayName.d.ts +1 -1
  148. package/dist/common/hooks/useCombineEvents.d.ts +1 -1
  149. package/dist/common/hooks/usePrevious.d.ts +2 -0
  150. package/dist/common/hooks/useWidgetHeaderStyles.d.ts +34 -0
  151. package/dist/common/index.d.ts +3 -3
  152. package/dist/common/index.es.js +254 -1348
  153. package/dist/common/utils/AccountDisplayName.d.ts +1 -1
  154. package/dist/common/utils/AccountFilter.d.ts +2 -2
  155. package/dist/common/utils/Analytics.d.ts +1 -1
  156. package/dist/common/utils/PostMessage.d.ts +1 -0
  157. package/dist/common/utils/Theme.d.ts +7 -6
  158. package/dist/common/utils/index.d.ts +1 -6
  159. package/dist/{accounts → core}/api/AccountApi.d.ts +2 -2
  160. package/dist/{common → core}/api/AnalyticsApi.d.ts +1 -1
  161. package/dist/{common → core}/api/AppDataApi.d.ts +2 -2
  162. package/dist/{common → core}/api/BannerApi.d.ts +1 -1
  163. package/dist/{common → core}/api/BeatApi.d.ts +2 -2
  164. package/dist/{budgets → core}/api/BudgetsApi.d.ts +5 -1
  165. package/dist/{common → core}/api/CategoryApi.d.ts +2 -2
  166. package/dist/{finstrong → core}/api/FinstrongApi.d.ts +2 -2
  167. package/dist/{common → core}/api/GlobalCopyApi.d.ts +2 -2
  168. package/dist/{goals → core}/api/GoalApi.d.ts +2 -2
  169. package/dist/{help → core}/api/HelpApi.d.ts +2 -2
  170. package/dist/{investments → core}/api/HoldingApi.d.ts +2 -2
  171. package/dist/{merchants → core}/api/MerchantApi.d.ts +2 -2
  172. package/dist/{common → core}/api/NotificationApi.d.ts +2 -2
  173. package/dist/{recurringtransactions → core}/api/RepeatingTransactionsApi.d.ts +2 -1
  174. package/dist/{common → core}/api/ScheduledPaymentsApi.d.ts +2 -2
  175. package/dist/{settings → core}/api/SettingsApi.d.ts +2 -3
  176. package/dist/{transactions → core}/api/TransactionApi.d.ts +2 -2
  177. package/dist/{common → core}/api/UserApi.d.ts +2 -2
  178. package/dist/{common → core}/api/WidgetApi.d.ts +1 -1
  179. package/dist/core/api/index.d.ts +20 -0
  180. package/dist/{common → core}/constants/ApiEndpoints.d.ts +1 -2
  181. package/dist/{common → core}/constants/DefaultConfig.d.ts +1 -1
  182. package/dist/core/constants/Transaction.d.ts +10 -0
  183. package/dist/core/constants/index.d.ts +4 -0
  184. package/dist/core/constants/repeatingTransactions.d.ts +10 -0
  185. package/dist/core/index.d.ts +4 -0
  186. package/dist/core/index.es.js +108 -0
  187. package/dist/{accounts → core}/stores/AccountStore.d.ts +15 -3
  188. package/dist/{analytics → core}/stores/AnalyticsStore.d.ts +1 -1
  189. package/dist/{common → core}/stores/AppDataStore.d.ts +1 -2
  190. package/dist/{insights/store → core/stores}/BeatStore.d.ts +3 -3
  191. package/dist/{budgets/store → core/stores}/BudgetsStore.d.ts +15 -2
  192. package/dist/{cashflow/stores/UiStore.d.ts → core/stores/CashflowStore.d.ts} +10 -2
  193. package/dist/{categories → core}/stores/CategoryStore.d.ts +24 -2
  194. package/dist/{common → core}/stores/ConnectStore.d.ts +1 -1
  195. package/dist/core/stores/DebtsStore.d.ts +22 -0
  196. package/dist/{finstrong → core}/stores/FinstrongStore.d.ts +5 -4
  197. package/dist/{common → core}/stores/GlobalStore.d.ts +4 -25
  198. package/dist/{goals → core}/stores/GoalStore.d.ts +3 -2
  199. package/dist/{help/store → core/stores}/HelpStore.d.ts +4 -5
  200. package/dist/{investments → core}/stores/HoldingStore.d.ts +4 -3
  201. package/dist/{merchants → core}/stores/MerchantStore.d.ts +3 -2
  202. package/dist/{networth → core}/stores/NetWorthStore.d.ts +3 -3
  203. package/dist/{notifications → core}/stores/NotificationStore.d.ts +3 -1
  204. package/dist/{recurringtransactions → core}/stores/RecurringTransactionsStore.d.ts +3 -2
  205. package/dist/{settings → core}/stores/SettingsStore.d.ts +4 -4
  206. package/dist/{transactions → core}/stores/TransactionStore.d.ts +30 -4
  207. package/dist/{trends → core}/stores/TrendsStore.d.ts +11 -4
  208. package/dist/core/stores/index.d.ts +24 -0
  209. package/dist/{common → core}/types/Analytics.d.ts +6 -3
  210. package/dist/{common → core}/types/AppData.d.ts +8 -2
  211. package/dist/{common → core}/types/Beat.d.ts +2 -0
  212. package/dist/{common → core}/types/Budget.d.ts +8 -0
  213. package/dist/{common → core}/types/Client.d.ts +1 -0
  214. package/dist/{common → core}/types/Expense.d.ts +2 -1
  215. package/dist/{common → core}/types/Finstrong.d.ts +0 -2
  216. package/dist/{networth → core}/types/NetWorth.d.ts +1 -10
  217. package/dist/{common → core}/types/Notification.d.ts +15 -5
  218. package/dist/core/types/Offer.d.ts +32 -0
  219. package/dist/{common → core}/types/Widgets.d.ts +1 -0
  220. package/dist/{common → core}/types/index.d.ts +4 -3
  221. package/dist/{common → core}/types/localization/BudgetsCopy.d.ts +26 -0
  222. package/dist/{common → core}/types/localization/CashflowCopy.d.ts +1 -0
  223. package/dist/{common → core}/types/localization/CommonCopy.d.ts +3 -0
  224. package/dist/{common → core}/types/localization/DebtsCopy.d.ts +5 -0
  225. package/dist/{common → core}/types/localization/GoalsCopy.d.ts +0 -1
  226. package/dist/{common → core}/types/localization/InsightsFeedCopy.d.ts +11 -0
  227. package/dist/{common → core}/types/localization/RecurringCopy.d.ts +2 -0
  228. package/dist/{common → core}/types/localization/SpendingCopy.d.ts +1 -0
  229. package/dist/{common → core}/types/localization/TransactionsCopy.d.ts +11 -6
  230. package/dist/{common → core}/types/localization/TrendsCopy.d.ts +2 -0
  231. package/dist/{accounts/utils/Accounts.d.ts → core/utils/AccountUtils.d.ts} +2 -2
  232. package/dist/{microinsights/utils/beatUtils.d.ts → core/utils/BeatUtils.d.ts} +1 -1
  233. package/dist/{budgets → core}/utils/BudgetUtil.d.ts +7 -2
  234. package/dist/{categories/util → core/utils}/CategoryUtil.d.ts +6 -1
  235. package/dist/core/utils/DebtUtils.d.ts +31 -0
  236. package/dist/core/utils/FinstrongUtils.d.ts +7 -0
  237. package/dist/{goals/util → core/utils}/GoalsUtil.d.ts +1 -1
  238. package/dist/core/utils/HelpUtil.d.ts +3 -0
  239. package/dist/{investments/util → core/utils}/InvestmentUtil.d.ts +2 -2
  240. package/dist/{common → core}/utils/Localization.d.ts +9 -1
  241. package/dist/{networth → core}/utils/NetWorthUtils.d.ts +1 -2
  242. package/dist/{notifications → core}/utils/NotificationUtils.d.ts +2 -1
  243. package/dist/{common → core}/utils/NumberFormatting.d.ts +1 -1
  244. package/dist/{recurringtransactions/util/RecurringTransactions.d.ts → core/utils/RecurringTransactionsUtil.d.ts} +2 -2
  245. package/dist/{settings/util/Notifications.d.ts → core/utils/SettingsUtil.d.ts} +1 -1
  246. package/dist/{transactions/utils/buildDetailedTransactions.d.ts → core/utils/TransactionUtils.d.ts} +12 -2
  247. package/dist/{trends/utils/TrendsData.d.ts → core/utils/TrendsUtil.d.ts} +1 -1
  248. package/dist/core/utils/index.d.ts +2 -0
  249. package/dist/dashboard/index.es.js +39 -38
  250. package/dist/debts/DebtsWidget.d.ts +1 -1
  251. package/dist/debts/components/DebtsChart.d.ts +1 -1
  252. package/dist/debts/components/DebtsTable.d.ts +1 -1
  253. package/dist/debts/components/SnowballCard.d.ts +1 -1
  254. package/dist/debts/components/actions/DebtsPriorityAction.d.ts +6 -1
  255. package/dist/debts/components/actions/InterestRateAction.d.ts +1 -1
  256. package/dist/debts/components/actions/MonthlyPaymentAction.d.ts +1 -1
  257. package/dist/debts/components/actions/OriginalBalanceAction.d.ts +1 -1
  258. package/dist/debts/components/debtspaydown/PaydownButton.d.ts +2 -1
  259. package/dist/debts/components/debtspriority/DebtsPriorityButton.d.ts +3 -1
  260. package/dist/debts/hooks/useDebtsUiStore.d.ts +1 -1
  261. package/dist/debts/index.d.ts +0 -1
  262. package/dist/debts/index.es.js +715 -775
  263. package/dist/debts/utils/DebtsTable.d.ts +1 -1
  264. package/dist/debts/utils/SnowballCard.d.ts +2 -2
  265. package/dist/finstrong/FinstrongWidget.d.ts +2 -2
  266. package/dist/finstrong/components/HealthChart.d.ts +1 -1
  267. package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +1 -1
  268. package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +1 -1
  269. package/dist/finstrong/components/shared/Accounts.d.ts +1 -1
  270. package/dist/finstrong/components/shared/DoubleBarChart.d.ts +1 -0
  271. package/dist/finstrong/components/shared/ScoreHistoryTimeline.d.ts +1 -1
  272. package/dist/finstrong/components/shared/Transactions.d.ts +1 -1
  273. package/dist/finstrong/index.d.ts +0 -2
  274. package/dist/finstrong/index.es.js +1587 -1349
  275. package/dist/finstrong/util/finstrongUtils.d.ts +3 -9
  276. package/dist/goals/GoalsWidget.d.ts +2 -2
  277. package/dist/goals/components/AccountSelectionDrawer.d.ts +1 -1
  278. package/dist/goals/components/AddGoal.d.ts +1 -1
  279. package/dist/goals/components/GoalDetails.d.ts +1 -1
  280. package/dist/goals/components/GoalDetailsDrawer.d.ts +1 -1
  281. package/dist/goals/components/GoalList.d.ts +1 -1
  282. package/dist/goals/components/GoalStatusCard.d.ts +1 -1
  283. package/dist/goals/components/ManageGoals.d.ts +1 -1
  284. package/dist/goals/components/actions/AccountAction.d.ts +1 -1
  285. package/dist/goals/components/actions/AddRetirementAccountAction.d.ts +1 -1
  286. package/dist/goals/components/actions/AmountToSaveAction.d.ts +1 -1
  287. package/dist/goals/components/actions/BirthdayAction.d.ts +1 -1
  288. package/dist/goals/components/actions/ChangeAccountAction.d.ts +1 -1
  289. package/dist/goals/components/actions/ContributionAction.d.ts +1 -1
  290. package/dist/goals/components/actions/GoalNameAction.d.ts +1 -1
  291. package/dist/goals/components/actions/InterestRateAction.d.ts +1 -1
  292. package/dist/goals/components/actions/MonthlyPaymentAction.d.ts +1 -1
  293. package/dist/goals/components/actions/OriginalBalanceAction.d.ts +1 -1
  294. package/dist/goals/components/actions/RetirementAgeAction.d.ts +1 -1
  295. package/dist/goals/components/addgoal/AddGoalListItem.d.ts +2 -2
  296. package/dist/goals/components/managegoals/CompleteListItem.d.ts +1 -1
  297. package/dist/goals/components/managegoals/OngoingListItem.d.ts +3 -2
  298. package/dist/goals/components/managegoals/ReorderGoals.d.ts +1 -1
  299. package/dist/goals/components/micro/GoalMicroStatusCard.d.ts +1 -1
  300. package/dist/goals/index.d.ts +0 -2
  301. package/dist/goals/index.es.js +707 -787
  302. package/dist/help/HelpWidget.d.ts +2 -2
  303. package/dist/help/components/HelpContent.d.ts +1 -1
  304. package/dist/help/components/HelpList.d.ts +1 -1
  305. package/dist/help/components/content/BottomImageContent.d.ts +1 -1
  306. package/dist/help/components/content/ContentItem.d.ts +1 -1
  307. package/dist/help/components/content/LeftImageContent.d.ts +1 -1
  308. package/dist/help/components/content/NoImageContent.d.ts +1 -1
  309. package/dist/help/components/content/RightImageContent.d.ts +1 -1
  310. package/dist/help/components/content/TopImageContent.d.ts +1 -1
  311. package/dist/help/components/content/section/Accounts.d.ts +1 -1
  312. package/dist/help/components/content/section/Budgets.d.ts +1 -1
  313. package/dist/help/components/content/section/CashFlow.d.ts +1 -1
  314. package/dist/help/components/content/section/Debts.d.ts +1 -1
  315. package/dist/help/components/content/section/General.d.ts +1 -1
  316. package/dist/help/components/content/section/Goals.d.ts +1 -1
  317. package/dist/help/components/content/section/Insights.d.ts +1 -1
  318. package/dist/help/components/content/section/Investments.d.ts +1 -1
  319. package/dist/help/components/content/section/Mobile.d.ts +1 -1
  320. package/dist/help/components/content/section/NetWorth.d.ts +1 -1
  321. package/dist/help/components/content/section/Notifications.d.ts +1 -1
  322. package/dist/help/components/content/section/RecurringTransactions.d.ts +1 -1
  323. package/dist/help/components/content/section/Spending.d.ts +1 -1
  324. package/dist/help/components/content/section/Transactions.d.ts +1 -1
  325. package/dist/help/components/content/section/Trends.d.ts +1 -1
  326. package/dist/help/components/content/section/index.d.ts +15 -15
  327. package/dist/help/components/requestsupport/ContactSupport.d.ts +1 -1
  328. package/dist/help/components/requestsupport/HelpByCategoryList.d.ts +1 -1
  329. package/dist/help/components/requestsupport/MissingInstitution.d.ts +1 -1
  330. package/dist/help/components/requestsupport/PopularTopicsDrawer.d.ts +1 -1
  331. package/dist/help/components/requestsupport/PopularTopicsList.d.ts +1 -1
  332. package/dist/help/components/requestsupport/RequestSupport.d.ts +1 -1
  333. package/dist/help/components/requestsupport/RequestSupportFooter.d.ts +1 -1
  334. package/dist/help/components/requestsupport/RequestSupportInstitution.d.ts +1 -1
  335. package/dist/help/components/requestsupport/SupportSuccessMessage.d.ts +1 -1
  336. package/dist/help/index.es.js +19 -10
  337. package/dist/help/utils/index.d.ts +0 -1
  338. package/dist/{hooks-fY_n74f7.mjs → hooks-BaO_gOI6.mjs} +23 -23
  339. package/dist/insights/components/feed/Header.d.ts +8 -0
  340. package/dist/insights/components/index.d.ts +53 -0
  341. package/dist/insights/components/insights/AccountDiscoverability/AccountDiscoverability.d.ts +3 -0
  342. package/dist/insights/components/insights/AccountDiscoverability/index.d.ts +1 -0
  343. package/dist/insights/components/insights/AccountDiscoverability/types/AccountDiscoverability.d.ts +3 -0
  344. package/dist/insights/components/insights/AmericanUpcomingTaxDeadlineAlert/AmericanUpcomingTaxDeadlineAlert.d.ts +2 -0
  345. package/dist/insights/components/insights/AmericanUpcomingTaxDeadlineAlert/index.d.ts +1 -0
  346. package/dist/insights/components/insights/AmericanUpcomingTaxDeadlineAlert/types/AmericanUpcomingTaxDeadlineProps.d.ts +4 -0
  347. package/dist/insights/components/insights/BillAmountNotStandard/BillAmountNotStandard.d.ts +3 -0
  348. package/dist/insights/components/insights/BillAmountNotStandard/BillAmountNotStandardMUI.d.ts +3 -0
  349. package/dist/insights/components/insights/BillAmountNotStandard/index.d.ts +2 -0
  350. package/dist/insights/components/insights/BillAmountNotStandard/types/BillAmountNotStandard.d.ts +4 -0
  351. package/dist/insights/components/insights/CashBack/CashBack.d.ts +3 -0
  352. package/dist/insights/components/insights/CashBack/index.d.ts +1 -0
  353. package/dist/insights/components/insights/CashBack/types/CashBack.d.ts +7 -0
  354. package/dist/insights/components/insights/CategoryBudget/CategoryBudget.d.ts +3 -0
  355. package/dist/insights/components/insights/CategoryBudget/index.d.ts +1 -0
  356. package/dist/insights/components/insights/CategoryBudget/types/CategoryBudget.d.ts +10 -0
  357. package/dist/insights/components/insights/CategorySpendingV2/CategorySpendingV2.d.ts +2 -0
  358. package/dist/insights/components/insights/CategorySpendingV2/CategorySpendingV2MUI.d.ts +2 -0
  359. package/dist/insights/components/insights/CategorySpendingV2/index.d.ts +2 -0
  360. package/dist/insights/components/insights/CategorySpendingV2/types/CategorySpendingV2.d.ts +7 -0
  361. package/dist/insights/components/insights/CelebrateCreditCardPayoff/CelebrateCreditCardPayoff.d.ts +3 -0
  362. package/dist/insights/components/insights/CelebrateCreditCardPayoff/index.d.ts +1 -0
  363. package/dist/insights/components/insights/CelebrateCreditCardPayoff/types/CelebrateCreditCardPayoffProps.d.ts +9 -0
  364. package/dist/insights/components/insights/CustomTransaction/CustomTransaction.d.ts +3 -0
  365. package/dist/insights/components/insights/CustomTransaction/index.d.ts +1 -0
  366. package/dist/insights/components/insights/DiscoveredAccounts/DiscoveredAccountsBody.d.ts +9 -0
  367. package/dist/insights/components/insights/DiscoveredAccounts/DiscoveredAccountsLearnMoreDrawerContent.d.ts +21 -0
  368. package/dist/insights/components/insights/DiscoveredAccounts/DiscoveredAccountsMiniInsight.d.ts +6 -0
  369. package/dist/insights/components/insights/DiscoveredAccounts/index.d.ts +3 -0
  370. package/dist/insights/components/insights/FederalBankHoliday/FederalBankHoliday.d.ts +3 -0
  371. package/dist/insights/components/insights/FederalBankHoliday/FederalBankHolidayMUI.d.ts +3 -0
  372. package/dist/insights/components/insights/FederalBankHoliday/index.d.ts +2 -0
  373. package/dist/insights/components/insights/FederalBankHoliday/types/FederalBankHoliday.d.ts +4 -0
  374. package/dist/insights/components/insights/MarketingHub/Offer.d.ts +3 -0
  375. package/dist/insights/components/insights/MarketingHub/Types.d.ts +33 -0
  376. package/dist/insights/components/insights/MarketingHub/index.d.ts +2 -0
  377. package/dist/insights/components/insights/MonthlyDebtToIncomeComparisonV2/MonthlyDebtToIncomeComparisonV2.d.ts +2 -0
  378. package/dist/insights/components/insights/MonthlyDebtToIncomeComparisonV2/index.d.ts +1 -0
  379. package/dist/insights/components/insights/MonthlyDebtToIncomeComparisonV2/types/index.d.ts +4 -0
  380. package/dist/insights/components/insights/MonthlyEmergencyFundReview/LastMonthsContributionSection.d.ts +6 -0
  381. package/dist/insights/components/insights/MonthlyEmergencyFundReview/MonthlyEmergencyFundReviewBody.d.ts +21 -0
  382. package/dist/insights/components/insights/MonthlyEmergencyFundReview/ProjectedCompletionSection.d.ts +6 -0
  383. package/dist/insights/components/insights/MonthlyEmergencyFundReview/TotalSection.d.ts +7 -0
  384. package/dist/insights/components/insights/MonthlyEmergencyFundReview/index.d.ts +4 -0
  385. package/dist/insights/components/insights/MonthlySavingsToIncomeComparison/MonthlySavingsToIncomeComparison.d.ts +2 -0
  386. package/dist/insights/components/insights/MonthlySavingsToIncomeComparison/index.d.ts +1 -0
  387. package/dist/insights/components/insights/MonthlySavingsToIncomeComparison/types/index.d.ts +4 -0
  388. package/dist/insights/components/insights/MonthlySpendToIncomeComparisonV2/MonthlySpendToIncomeComparisonV2.d.ts +2 -0
  389. package/dist/insights/components/insights/MonthlySpendToIncomeComparisonV2/index.d.ts +1 -0
  390. package/dist/insights/components/insights/MonthlySpendToIncomeComparisonV2/types/index.d.ts +4 -0
  391. package/dist/insights/components/insights/MonthlySpendingComparisonV2/MonthlySpendingComparisonV2.d.ts +3 -0
  392. package/dist/insights/components/insights/MonthlySpendingComparisonV2/__test__/MonthlySpendComparisonV2.test.d.ts +1 -0
  393. package/dist/insights/components/insights/MonthlySpendingComparisonV2/index.d.ts +1 -0
  394. package/dist/insights/components/insights/MonthlySpendingComparisonV2/types/MonthlySpendComparisonV2.d.ts +4 -0
  395. package/dist/insights/components/insights/P2pCategorization/P2pCategorization.d.ts +3 -0
  396. package/dist/insights/components/insights/P2pCategorization/_tests_/P2pCategorizationMultipleTransaction.test.d.ts +0 -0
  397. package/dist/insights/components/insights/P2pCategorization/_tests_/P2pCategorizationSingleTransaction.test.d.ts +0 -0
  398. package/dist/insights/components/insights/P2pCategorization/index.d.ts +4 -0
  399. package/dist/insights/components/insights/P2pCategorization/shared/P2pCategorizationMultipleTransactions.d.ts +3 -0
  400. package/dist/insights/components/insights/P2pCategorization/shared/P2pCategorizationSingleTransaction.d.ts +3 -0
  401. package/dist/insights/components/insights/P2pCategorization/types/P2pCategorization.d.ts +17 -0
  402. package/dist/insights/components/insights/SavingsAccountBalancesSummary/SavingsAccountBalancesSummary.d.ts +2 -0
  403. package/dist/insights/components/insights/SavingsAccountBalancesSummary/index.d.ts +1 -0
  404. package/dist/insights/components/insights/SavingsAccountBalancesSummary/types/SavingsAccountBalancesSummary.d.ts +4 -0
  405. package/dist/insights/components/insights/SetUpDirectDeposit/SetUpDirectDepositBody.d.ts +3 -0
  406. package/dist/insights/components/insights/SetUpDirectDeposit/index.d.ts +1 -0
  407. package/dist/insights/components/insights/SharedDeposit/SharedDeposit.d.ts +2 -0
  408. package/dist/insights/components/insights/SharedDeposit/index.d.ts +1 -0
  409. package/dist/insights/components/insights/SharedDeposit/types/index.d.ts +7 -0
  410. package/dist/insights/components/insights/SwitchDirectDeposit/AccountBox.d.ts +7 -0
  411. package/dist/insights/components/insights/SwitchDirectDeposit/SwitchDirectDepositBody.d.ts +10 -0
  412. package/dist/insights/components/insights/SwitchDirectDeposit/SwitchDirectDepositMainContainer.d.ts +9 -0
  413. package/dist/insights/components/insights/SwitchDirectDeposit/index.d.ts +3 -0
  414. package/dist/insights/components/insights/UnifiedDeposit/UnifiedDeposit.d.ts +7 -0
  415. package/dist/insights/components/insights/UnifiedDeposit/UnifiedDepositBody.d.ts +11 -0
  416. package/dist/insights/components/insights/UnifiedDeposit/index.d.ts +1 -0
  417. package/dist/insights/components/insights/UserFeedback/StyledToggleButton.d.ts +7 -0
  418. package/dist/insights/components/insights/UserFeedback/Types.d.ts +27 -0
  419. package/dist/insights/components/insights/UserFeedback/UserFeedback.d.ts +3 -0
  420. package/dist/insights/components/insights/UserFeedback/index.d.ts +1 -0
  421. package/dist/insights/components/insights/WeeklyNoSpendDays/BubbleWeek.d.ts +9 -0
  422. package/dist/insights/components/insights/WeeklyNoSpendDays/NoSpendIcons.d.ts +1 -0
  423. package/dist/insights/components/insights/WeeklyNoSpendDays/WeeklyNoSpendDays.d.ts +12 -0
  424. package/dist/insights/components/insights/WeeklyNoSpendDays/_tests_/WeeklyNoSpendDays.test.d.ts +0 -0
  425. package/dist/insights/components/insights/WeeklyNoSpendDays/index.d.ts +1 -0
  426. package/dist/insights/components/insights/index.d.ts +25 -0
  427. package/dist/insights/components/shared/AccountBalanceCard.d.ts +13 -0
  428. package/dist/insights/components/shared/BottomSheet.d.ts +13 -0
  429. package/dist/insights/components/shared/CarouselControls.d.ts +14 -0
  430. package/dist/insights/components/shared/ChartDrawerTemplate/ChartDrawerTemplate.d.ts +30 -0
  431. package/dist/insights/components/shared/ChartDrawerTemplate/TipSection.d.ts +9 -0
  432. package/dist/insights/components/shared/ChartTransactionWithDrillDown.d.ts +22 -0
  433. package/dist/insights/components/shared/Charts/BarChart/BarChart.d.ts +2 -0
  434. package/dist/insights/components/shared/Charts/BarChart/BarChartV2.d.ts +2 -0
  435. package/dist/insights/components/shared/Charts/BarChart/ChartLegend.d.ts +9 -0
  436. package/dist/insights/components/shared/Charts/BarChart/ChartLegendV2.d.ts +10 -0
  437. package/dist/insights/components/shared/Charts/BarChart/CustomBarPlot.d.ts +18 -0
  438. package/dist/insights/components/shared/Charts/BarChart/CustomBarPlotV2.d.ts +18 -0
  439. package/dist/insights/components/shared/Charts/BarChart/CustomDoubleBarPlot.d.ts +18 -0
  440. package/dist/insights/components/shared/Charts/BarChart/CustomDoubleBarPlotMXUI.d.ts +18 -0
  441. package/dist/insights/components/shared/Charts/BarChart/DoubleBarChart.d.ts +2 -0
  442. package/dist/insights/components/shared/Charts/BarChart/DoubleBarChartLegend.d.ts +10 -0
  443. package/dist/insights/components/shared/Charts/BarChart/DoubleBarChartLegendMXUI.d.ts +10 -0
  444. package/dist/insights/components/shared/Charts/BarChart/DoubleBarChartMXUI.d.ts +2 -0
  445. package/dist/insights/components/shared/Charts/BarChart/index.d.ts +4 -0
  446. package/dist/insights/components/shared/Charts/EmptyBarChart.d.ts +1 -0
  447. package/dist/insights/components/shared/Charts/index.d.ts +2 -0
  448. package/dist/insights/components/shared/Confetti.d.ts +5 -0
  449. package/dist/insights/components/shared/ConnectionCard.d.ts +14 -0
  450. package/dist/insights/components/shared/ConnectionDetailDrillDown.d.ts +25 -0
  451. package/dist/insights/components/shared/Coupon.d.ts +8 -0
  452. package/dist/insights/components/shared/DeepLinks/DeepLinkDialog.d.ts +11 -0
  453. package/dist/insights/components/shared/DeepLinks/DirectDeposit/Circle.d.ts +6 -0
  454. package/dist/insights/components/shared/DeepLinks/DirectDeposit/DirectDepositDeepLink.d.ts +24 -0
  455. package/dist/insights/components/shared/DeepLinks/DirectDeposit/Dot.d.ts +1 -0
  456. package/dist/insights/components/shared/DeepLinks/DirectDeposit/Oval.d.ts +1 -0
  457. package/dist/insights/components/shared/DirectDeposit/DirectDeposit.d.ts +3 -0
  458. package/dist/insights/components/shared/DirectDeposit/DirectDepositSubHeader.d.ts +14 -0
  459. package/dist/insights/components/shared/DirectDeposit/FullFeedBodyHeader.d.ts +10 -0
  460. package/dist/insights/components/shared/DirectDeposit/LeftBox.d.ts +7 -0
  461. package/dist/insights/components/shared/DirectDeposit/MiniBodyHeader.d.ts +10 -0
  462. package/dist/insights/components/shared/DirectDeposit/RightBox.d.ts +8 -0
  463. package/dist/insights/components/shared/DiscoveredAccountsConnect.d.ts +8 -0
  464. package/dist/insights/components/shared/DonutChartV2.d.ts +13 -0
  465. package/dist/insights/components/shared/DrillDownCalculation/BalanceStepper.d.ts +12 -0
  466. package/dist/insights/components/shared/DrillDownCalculation/DrillDownCalculation.d.ts +31 -0
  467. package/dist/insights/components/shared/ErrorCard/ErrorCard.d.ts +8 -0
  468. package/dist/insights/components/shared/GenericFeedback/FeedbackButtons.d.ts +15 -0
  469. package/dist/insights/components/shared/GenericFeedback/FeedbackDescription.d.ts +5 -0
  470. package/dist/insights/components/shared/GenericFeedback/FeedbackHeader.d.ts +15 -0
  471. package/dist/insights/components/shared/GenericFeedback/FeedbackOptions.d.ts +12 -0
  472. package/dist/insights/components/shared/GenericFeedback/FeedbackText.d.ts +13 -0
  473. package/dist/insights/components/shared/GoalProgress.d.ts +10 -0
  474. package/dist/insights/components/shared/GradientBox.d.ts +8 -0
  475. package/dist/insights/components/shared/InsightsCard/BeatCard.d.ts +20 -0
  476. package/dist/insights/components/shared/InsightsCard/BeatCardMUI.d.ts +20 -0
  477. package/dist/insights/components/shared/InsightsCard/CardButtonSection.d.ts +7 -0
  478. package/dist/insights/components/shared/InsightsCard/CardError.d.ts +5 -0
  479. package/dist/insights/components/shared/InsightsCard/CardFooter.d.ts +7 -0
  480. package/dist/insights/components/shared/InsightsCard/CardHeader.d.ts +11 -0
  481. package/dist/insights/components/shared/InsightsCard/CardHeaderMUI.d.ts +11 -0
  482. package/dist/insights/components/shared/InsightsCard/CardLoading.d.ts +5 -0
  483. package/dist/insights/components/shared/InsightsCard/ClientConfigurableCta.d.ts +5 -0
  484. package/dist/insights/components/shared/InsightsCard/ContentAndDescription.d.ts +15 -0
  485. package/dist/insights/components/shared/InsightsCard/ContentAndDescriptionMUI.d.ts +15 -0
  486. package/dist/insights/components/shared/InsightsCard/Description.d.ts +10 -0
  487. package/dist/insights/components/shared/InsightsCard/DescriptionMUI.d.ts +10 -0
  488. package/dist/insights/components/shared/InsightsCard/EmbeddedCard.d.ts +9 -0
  489. package/dist/insights/components/shared/InsightsCard/FeedbackCard.d.ts +13 -0
  490. package/dist/insights/components/shared/InsightsCard/InsightButton.d.ts +12 -0
  491. package/dist/insights/components/shared/InsightsCard/MiniDescription.d.ts +9 -0
  492. package/dist/insights/components/shared/InsightsCard/MiniDescriptionMUI.d.ts +9 -0
  493. package/dist/insights/components/shared/MenuAction.d.ts +15 -0
  494. package/dist/insights/components/shared/MiniInsightCard.d.ts +16 -0
  495. package/dist/insights/components/shared/P2P/P2PMultipleCategorization.d.ts +12 -0
  496. package/dist/insights/components/shared/P2PCategorizationSingleAccount/P2PCategorizationSingleAccount.d.ts +10 -0
  497. package/dist/insights/components/shared/ProgressBar.d.ts +9 -0
  498. package/dist/insights/components/shared/SaveAnExtra100/SaveAnExtra100.d.ts +9 -0
  499. package/dist/insights/components/shared/SaveEnoughToLiveOnBottomSection.d.ts +11 -0
  500. package/dist/insights/components/shared/SaveEnoughToLiveOnTopSection.d.ts +2 -0
  501. package/dist/insights/components/shared/StatusIndicator.d.ts +15 -0
  502. package/dist/insights/components/shared/TabContainer.d.ts +8 -0
  503. package/dist/insights/components/shared/ThemedSVGImage.d.ts +2 -0
  504. package/dist/insights/components/shared/TransactionCard.d.ts +14 -0
  505. package/dist/insights/components/shared/ZeroState/LinedCardZeroState.d.ts +1 -0
  506. package/dist/insights/components/shared/index.d.ts +2 -0
  507. package/dist/insights/hooks/useContainerDimensions.d.ts +5 -0
  508. package/dist/insights/index.d.ts +1 -1
  509. package/dist/insights/index.es.js +4843 -2
  510. package/dist/insights/themes/Typography.d.ts +1 -0
  511. package/dist/insights/themes/index.d.ts +1 -0
  512. package/dist/insights/types/Charts/BarChart.d.ts +96 -0
  513. package/dist/insights/types/CommonBeat.d.ts +367 -0
  514. package/dist/insights/types/DirectDeposit.d.ts +16 -0
  515. package/dist/insights/types/ThemedSVGImage.d.ts +5 -0
  516. package/dist/investments/InvestmentsWidget.d.ts +2 -2
  517. package/dist/investments/components/AnalysisDetails.d.ts +1 -1
  518. package/dist/investments/components/allocation/util/createInvestementsAllocationData.d.ts +2 -2
  519. package/dist/investments/index.es.js +574 -574
  520. package/dist/merchants/index.d.ts +0 -1
  521. package/dist/merchants/index.es.js +18 -20
  522. package/dist/microinsights/InsightsMicroWidget.d.ts +1 -14
  523. package/dist/microinsights/MicroCardTemplate.d.ts +2 -4
  524. package/dist/microinsights/beaticons/AreaChartIcon.d.ts +3 -0
  525. package/dist/microinsights/beaticons/AverageSpendComparisonIcon.d.ts +3 -0
  526. package/dist/microinsights/beaticons/BeatMaterialIcon.d.ts +5 -1
  527. package/dist/microinsights/beaticons/InstitutionLogoIcon.d.ts +5 -0
  528. package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +0 -2
  529. package/dist/microinsights/beaticons/index.d.ts +3 -0
  530. package/dist/microinsights/cards/InsightCard.d.ts +3 -3
  531. package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +3 -3
  532. package/dist/microinsights/cards/ViewMoreMicroCard.d.ts +3 -3
  533. package/dist/microinsights/cards/ZeroStateCard.d.ts +3 -3
  534. package/dist/microinsights/carousel/BeatList.d.ts +3 -3
  535. package/dist/microinsights/carousel/CarouselHeader.d.ts +4 -2
  536. package/dist/microinsights/carousel/MicroBeatCarousel.d.ts +12 -12
  537. package/dist/microinsights/constants/Analytics.d.ts +1 -1
  538. package/dist/microinsights/context/InsightsMicroWidgetDataProvider.d.ts +1 -1
  539. package/dist/microinsights/context/hooks.d.ts +1 -1
  540. package/dist/microinsights/index.d.ts +1 -1
  541. package/dist/microinsights/index.es.js +1 -1
  542. package/dist/microinsights/interfaces.d.ts +23 -40
  543. package/dist/microinsights/stores/CopyStore.d.ts +2 -2
  544. package/dist/microinsights/stores/InsightsMicroWidgetStore.d.ts +2 -2
  545. package/dist/microinsights/utils/DataSeries.d.ts +1 -1
  546. package/dist/microinsights/utils/colorType.d.ts +22 -0
  547. package/dist/networth/NetWorthWidget.d.ts +1 -1
  548. package/dist/networth/components/AssetsLiabilitiesDetail.d.ts +1 -1
  549. package/dist/networth/components/GainsLossesDetail.d.ts +1 -1
  550. package/dist/networth/components/NetWorthChange.d.ts +1 -1
  551. package/dist/networth/components/NetWorthListItem.d.ts +1 -1
  552. package/dist/networth/components/NetWorthSummary.d.ts +1 -1
  553. package/dist/networth/components/micro/NetworthData.d.ts +1 -1
  554. package/dist/networth/components/micro/ZeroState.d.ts +1 -1
  555. package/dist/networth/index.d.ts +0 -4
  556. package/dist/networth/index.es.js +302 -314
  557. package/dist/notifications/components/NotificationBadge.d.ts +1 -1
  558. package/dist/notifications/components/NotificationCard.d.ts +1 -1
  559. package/dist/notifications/components/NotificationDrawer.d.ts +1 -1
  560. package/dist/notifications/components/NotificationList.d.ts +2 -1
  561. package/dist/notifications/index.d.ts +0 -2
  562. package/dist/notifications/index.es.js +101 -93
  563. package/dist/recurringtransactions/RecurringTransactionsMiniWidget.d.ts +1 -1
  564. package/dist/recurringtransactions/RecurringTransactionsWidget.d.ts +2 -2
  565. package/dist/recurringtransactions/components/PaymentSchedule.d.ts +1 -1
  566. package/dist/recurringtransactions/components/RecurrenceList.d.ts +1 -1
  567. package/dist/recurringtransactions/components/RecurrenceRow.d.ts +1 -1
  568. package/dist/recurringtransactions/components/RecurringTransactionDetails.d.ts +1 -1
  569. package/dist/recurringtransactions/components/actions/PaymentScheduleAction.d.ts +1 -1
  570. package/dist/recurringtransactions/components/micro/MerchantLogosRow.d.ts +1 -1
  571. package/dist/recurringtransactions/components/micro/OverlappingMerchantLogos.d.ts +1 -1
  572. package/dist/recurringtransactions/components/shared/recurringsettings/AddRecurringTransactionDetails.d.ts +1 -1
  573. package/dist/recurringtransactions/components/shared/recurringsettings/RecurringRow.d.ts +1 -1
  574. package/dist/recurringtransactions/index.d.ts +0 -1
  575. package/dist/recurringtransactions/index.es.js +489 -462
  576. package/dist/settings/NotificationSettingsWidget.d.ts +1 -1
  577. package/dist/settings/SettingsWidget.d.ts +2 -2
  578. package/dist/settings/TransactionRulesWidget.d.ts +1 -1
  579. package/dist/settings/components/devices/DeviceDialog.d.ts +1 -1
  580. package/dist/settings/components/devices/DeviceList.d.ts +1 -1
  581. package/dist/settings/components/devices/DeviceTable.d.ts +1 -1
  582. package/dist/settings/components/notifications/AccountNotificationProfile.d.ts +1 -1
  583. package/dist/settings/components/notifications/AccountProfileListItem.d.ts +1 -1
  584. package/dist/settings/components/notifications/NotificationProfile.d.ts +1 -1
  585. package/dist/settings/components/notifications/NotificationSettings.d.ts +1 -1
  586. package/dist/settings/components/transactionrules/actions/EditRuleAction.d.ts +1 -1
  587. package/dist/settings/index.d.ts +0 -2
  588. package/dist/settings/index.es.js +419 -430
  589. package/dist/spending/SpendingMiniWidget.d.ts +1 -1
  590. package/dist/spending/SpendingWidget.d.ts +1 -1
  591. package/dist/spending/index.es.js +229 -222
  592. package/dist/spending/utils/SpendingData.d.ts +1 -1
  593. package/dist/transactions/TransactionWidget.d.ts +1 -1
  594. package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -1
  595. package/dist/transactions/components/shared/TransactionList.d.ts +3 -4
  596. package/dist/transactions/components/shared/getEmbeddedInstanceSlotByBeatTemplates.d.ts +17 -0
  597. package/dist/transactions/components/shared/transactiondetails/Description.d.ts +1 -1
  598. package/dist/transactions/components/shared/transactiondetails/FlagTransaction.d.ts +1 -1
  599. package/dist/transactions/components/shared/transactiondetails/TransactionAmountHeader.d.ts +1 -1
  600. package/dist/transactions/components/shared/transactiondetails/TransactionDetailsView.d.ts +1 -1
  601. package/dist/transactions/components/shared/transactiondetails/actions/AddMerchantBudgetAction.d.ts +13 -0
  602. package/dist/transactions/components/shared/transactiondetails/actions/CategoryAction.d.ts +1 -1
  603. package/dist/transactions/components/shared/transactiondetails/actions/DateAction.d.ts +1 -1
  604. package/dist/transactions/components/shared/transactiondetails/actions/DeleteAction.d.ts +1 -1
  605. package/dist/transactions/components/shared/transactiondetails/actions/DeleteLogoAction.d.ts +1 -1
  606. package/dist/transactions/components/shared/transactiondetails/actions/ExcludeAction.d.ts +7 -0
  607. package/dist/transactions/components/shared/transactiondetails/actions/MemoAction.d.ts +1 -1
  608. package/dist/transactions/components/shared/transactiondetails/actions/SplitAction.d.ts +1 -1
  609. package/dist/transactions/components/shared/transactiondetails/actions/TagsAction.d.ts +1 -1
  610. package/dist/transactions/components/shared/transactiondetails/actions/index.d.ts +2 -1
  611. package/dist/transactions/components/shared/transactionlist/TransactionRow.d.ts +1 -1
  612. package/dist/transactions/components/shared/transactiontable/cells/PayeeCell.d.ts +4 -1
  613. package/dist/transactions/components/splitmanager/SplitManager.d.ts +1 -1
  614. package/dist/transactions/components/splitmanager/SplitRow.d.ts +1 -1
  615. package/dist/transactions/components/tagmanager/TagRow.d.ts +1 -1
  616. package/dist/transactions/components/transactionwidget/actions/EditCategoryAction.d.ts +1 -1
  617. package/dist/transactions/components/transactionwidget/actions/ExportCsvAction.d.ts +1 -1
  618. package/dist/transactions/constants/Actions.d.ts +4 -3
  619. package/dist/transactions/context/hooks.d.ts +1 -1
  620. package/dist/transactions/index.d.ts +0 -5
  621. package/dist/transactions/index.es.js +344 -351
  622. package/dist/transactions/utils/Filters.d.ts +1 -1
  623. package/dist/transactions/utils/Transactions.d.ts +17 -1
  624. package/dist/trends/TrendsFullWidget.d.ts +1 -1
  625. package/dist/trends/TrendsMiniWidget.d.ts +1 -1
  626. package/dist/trends/TrendsWidget.d.ts +1 -1
  627. package/dist/trends/components/CategoriesList.d.ts +1 -1
  628. package/dist/trends/components/CategoriesListItem.d.ts +1 -1
  629. package/dist/trends/components/CategoryDetails.d.ts +3 -0
  630. package/dist/trends/components/TrendsChartTotals.d.ts +1 -1
  631. package/dist/trends/components/TrendsInsights.d.ts +1 -1
  632. package/dist/trends/components/{TrendsTable.d.ts → TrendsTableContainer.d.ts} +2 -2
  633. package/dist/trends/components/trendstable/AccessibleSortIcon.d.ts +13 -0
  634. package/dist/trends/components/trendstable/TrendsTable.d.ts +12 -0
  635. package/dist/trends/index.d.ts +0 -1
  636. package/dist/trends/index.es.js +991 -876
  637. package/dist/trends/utils/SpendingData.d.ts +1 -1
  638. package/dist/trends/utils/TrendsTable.d.ts +5 -3
  639. package/dist/trends/utils/TrendsWidget.d.ts +7 -0
  640. package/dist/trends/utils/shared.d.ts +2 -2
  641. package/dist/{useAccountDisplayName-DbkgGLdg.mjs → useAccountDisplayName-CFa_MrS6.mjs} +5 -5
  642. package/dist/{useAriaLive-B3_pRUio.mjs → useAriaLive-MkYebyUR.mjs} +4 -4
  643. package/dist/{useDimensions-27p2evRx.mjs → useDimensions-CeDR9V8N.mjs} +6 -6
  644. package/dist/{useInsightsEnabled-dhmXeSyF.mjs → useInsightsEnabled-DaNLPmUU.mjs} +1 -1
  645. package/dist/{useScreenSize-B6JyS_Lj.mjs → useScreenSize-mWpmnh5w.mjs} +3 -3
  646. package/dist/{useWidgetLoadTimer-CrUzxN-P.mjs → useWidgetLoadTimer-CJb-RELP.mjs} +1 -1
  647. package/package.json +65 -43
  648. package/dist/AccountApi-DgZ8ILj1.mjs +0 -19
  649. package/dist/AccountDetailsHeader-BOV91g1o.mjs +0 -95
  650. package/dist/AccountFields-BRRH37K1.mjs +0 -140
  651. package/dist/AccountListItem-Ds5C0mOT.mjs +0 -90
  652. package/dist/AccountStore-BFKvXJSD.mjs +0 -244
  653. package/dist/Accounts-CuE8aSZN.mjs +0 -27
  654. package/dist/BeatApi-De2IaqH2.mjs +0 -21
  655. package/dist/BeatStore-D_NYuBSz.mjs +0 -81
  656. package/dist/BudgetUtil-CDSOZXem.mjs +0 -101
  657. package/dist/CashflowStore-naOtJcwo.mjs +0 -91
  658. package/dist/CategoryStore-DEqAnHbi.mjs +0 -186
  659. package/dist/CategoryUtil-CFHBvaV4.mjs +0 -80
  660. package/dist/CurrencyInput-DDQ4DBrE.mjs +0 -85
  661. package/dist/DateUtil-CVsMhbZU.mjs +0 -48
  662. package/dist/DebtsStore-Dv_T7Dts.mjs +0 -63
  663. package/dist/Dialog-CWymUiuO.mjs +0 -120
  664. package/dist/Donut-Dmy3JTWd.mjs +0 -86
  665. package/dist/Fetch-DecPFeGU.mjs +0 -119
  666. package/dist/FinstrongStore-BjFkMTIL.mjs +0 -451
  667. package/dist/GlobalAccountFilter-BpWlPAl5.mjs +0 -316
  668. package/dist/GoalStore-Dbjgft2i.mjs +0 -422
  669. package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
  670. package/dist/LineChart-DHj-Bufi.mjs +0 -580
  671. package/dist/Loader-BSWSYqvn.mjs +0 -24
  672. package/dist/Localization-2MODESHW.mjs +0 -30
  673. package/dist/ManageIncome-DIIyqDTp.mjs +0 -585
  674. package/dist/MerchantStore-WvZ4gnQe.mjs +0 -37
  675. package/dist/MiniWidgetContainer-DKn7ndO6.mjs +0 -56
  676. package/dist/NetWorthStore-B6ziBtaH.mjs +0 -168
  677. package/dist/Notification-Bs1fdbzI.mjs +0 -95
  678. package/dist/NotificationStore-Ck2KdNmT.mjs +0 -79
  679. package/dist/OriginalBalanceAction-DFoG79Ba.mjs +0 -115
  680. package/dist/RecurringTransactionsStore-D_--5PWH.mjs +0 -277
  681. package/dist/RepeatingTransaction-C2txVA9O.mjs +0 -292
  682. package/dist/SearchBox-B2_zLv8-.mjs +0 -42
  683. package/dist/SettingsStore-CInvh-rQ.mjs +0 -269
  684. package/dist/SpendingLegend-BxefXiQd.mjs +0 -193
  685. package/dist/TransactionApi-CjBoLleL.mjs +0 -86
  686. package/dist/TransactionDetails-CPwv9xtZ.mjs +0 -1374
  687. package/dist/TransactionStore-D2aMUClq.mjs +0 -688
  688. package/dist/TrendsStore-BdsYfCc7.mjs +0 -183
  689. package/dist/User-CulNdZUr.mjs +0 -314
  690. package/dist/ViewMoreMicroCard-CDWR16_h.mjs +0 -1147
  691. package/dist/WidgetContainer-mzejMmz2.mjs +0 -555
  692. package/dist/accounts/stores/UiStore.d.ts +0 -10
  693. package/dist/accounts/utils/index.d.ts +0 -1
  694. package/dist/cashflow/api/CashflowApi.d.ts +0 -13
  695. package/dist/cashflow/stores/CashflowStore.d.ts +0 -8
  696. package/dist/categories/stores/UiStore.d.ts +0 -20
  697. package/dist/common/api/LocalizedCopyApi.d.ts +0 -8
  698. package/dist/common/api/index.d.ts +0 -10
  699. package/dist/common/components/barchart/Bar.d.ts +0 -25
  700. package/dist/common/components/barchart/BarChart.d.ts +0 -34
  701. package/dist/common/components/barchart/BarColumn.d.ts +0 -37
  702. package/dist/common/components/barchart/Legend.d.ts +0 -8
  703. package/dist/common/components/barchart/Util.d.ts +0 -42
  704. package/dist/common/components/barchart/index.d.ts +0 -1
  705. package/dist/common/stores/index.d.ts +0 -3
  706. package/dist/common/types/SpendingPlan.d.ts +0 -44
  707. package/dist/common/utils/Categories.d.ts +0 -6
  708. package/dist/debts/store/DebtsStore.d.ts +0 -9
  709. package/dist/debts/store/DebtsUiStore.d.ts +0 -13
  710. package/dist/debts/utils/DebtStore.d.ts +0 -4
  711. package/dist/debts/utils/DebtsWidget.d.ts +0 -14
  712. package/dist/debts/utils/shared.d.ts +0 -12
  713. package/dist/exportTransactionsToCSV-BU1jTY0Q.mjs +0 -48
  714. package/dist/help/constants/index.d.ts +0 -1
  715. package/dist/help/utils/getAccessibleHelpCategories.d.ts +0 -3
  716. package/dist/transactions/analytics.d.ts +0 -3
  717. package/dist/transactions/components/shared/transactiondetails/actions/HideAction.d.ts +0 -7
  718. package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +0 -7
  719. package/dist/transactions/constants/Transaction.d.ts +0 -2
  720. package/dist/transactions/constants/TransactionsTable.d.ts +0 -17
  721. package/dist/transactions/stores/UiStore.d.ts +0 -25
  722. package/dist/transactions/utils/exportTransactionsToCSV.d.ts +0 -9
  723. package/dist/transactions/utils/sortAndFilterTransactions.d.ts +0 -3
  724. package/dist/trends/components/CategoryDetailDrawer.d.ts +0 -7
  725. package/dist/useCombineEvents-CRwX-qWE.mjs +0 -92
  726. package/dist/{common → core}/constants/Category.d.ts +0 -0
  727. package/dist/{common → core}/constants/DateFormats.d.ts +0 -0
  728. package/dist/{debts/constants/index.d.ts → core/constants/Debts.d.ts} +0 -0
  729. package/dist/{help → core}/constants/Help.d.ts +0 -0
  730. package/dist/{investments/constants/index.d.ts → core/constants/Investments.d.ts} +0 -0
  731. package/dist/{common → core}/constants/Numbers.d.ts +0 -0
  732. package/dist/{common → core}/constants/Table.d.ts +0 -0
  733. package/dist/{common → core}/stores/GlobalCopyStore.d.ts +0 -0
  734. package/dist/{common → core}/stores/GlobalUiStore.d.ts +0 -0
  735. package/dist/{common → core}/stores/UserStore.d.ts +1 -1
  736. /package/dist/{common → core}/types/Account.d.ts +0 -0
  737. /package/dist/{common → core}/types/Cashflow.d.ts +0 -0
  738. /package/dist/{common → core}/types/Category.d.ts +0 -0
  739. /package/dist/{common → core}/types/Date.d.ts +0 -0
  740. /package/dist/{common → core}/types/Debt.d.ts +0 -0
  741. /package/dist/{common → core}/types/Global.d.ts +0 -0
  742. /package/dist/{common → core}/types/GlobalCopy.d.ts +0 -0
  743. /package/dist/{common → core}/types/Goal.d.ts +0 -0
  744. /package/dist/{common → core}/types/Handlers.d.ts +0 -0
  745. /package/dist/{common → core}/types/Help.d.ts +0 -0
  746. /package/dist/{common → core}/types/Holding.d.ts +0 -0
  747. /package/dist/{common → core}/types/Institution.d.ts +0 -0
  748. /package/dist/{common → core}/types/LocalizedContent.d.ts +0 -0
  749. /package/dist/{common → core}/types/Merchant.d.ts +0 -0
  750. /package/dist/{common → core}/types/RepeatingTransaction.d.ts +0 -0
  751. /package/dist/{common → core}/types/ScheduledPayment.d.ts +0 -0
  752. /package/dist/{common → core}/types/ScreenSize.d.ts +0 -0
  753. /package/dist/{common → core}/types/Transaction.d.ts +0 -0
  754. /package/dist/{common → core}/types/User.d.ts +0 -0
  755. /package/dist/{common → core}/types/localization/AccountFilterCopy.d.ts +0 -0
  756. /package/dist/{common → core}/types/localization/AccountTypeCopy.d.ts +0 -0
  757. /package/dist/{common → core}/types/localization/AccountsCopy.d.ts +0 -0
  758. /package/dist/{common → core}/types/localization/AnalyticsCopy.d.ts +0 -0
  759. /package/dist/{common → core}/types/localization/CategoryCopy.d.ts +0 -0
  760. /package/dist/{common → core}/types/localization/ConnectCopy.d.ts +0 -0
  761. /package/dist/{common → core}/types/localization/CurrencyInputCopy.d.ts +0 -0
  762. /package/dist/{common → core}/types/localization/DateRangePickerCopy.d.ts +0 -0
  763. /package/dist/{common → core}/types/localization/FinstrongCopy.d.ts +0 -0
  764. /package/dist/{common → core}/types/localization/HelpCopy.d.ts +0 -0
  765. /package/dist/{common → core}/types/localization/InvestmentsCopy.d.ts +0 -0
  766. /package/dist/{common → core}/types/localization/MicroInsightsCopy.d.ts +0 -0
  767. /package/dist/{common → core}/types/localization/NetWorthCopy.d.ts +0 -0
  768. /package/dist/{common → core}/types/localization/NotificationsCopy.d.ts +0 -0
  769. /package/dist/{common → core}/types/localization/SettingsCopy.d.ts +0 -0
  770. /package/dist/{common → core}/types/localization/index.d.ts +0 -0
  771. /package/dist/{common → core}/utils/DateUtil.d.ts +0 -0
  772. /package/dist/{common → core}/utils/Fetch.d.ts +0 -0
  773. /package/dist/{common/utils/User.d.ts → core/utils/UserUtils.d.ts} +0 -0
@@ -1,1374 +0,0 @@
1
- import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
- import _ from "react";
3
- import { observer as x } from "mobx-react-lite";
4
- import { useVirtualizer as Ge } from "@tanstack/react-virtual";
5
- import O from "@mui/material/Box";
6
- import ee from "@mui/material/Divider";
7
- import te from "@mui/material/List";
8
- import { MerchantLogo as he, Text as T, Icon as f, useTokens as ne, CategoryIcon as Te, CategoryIconVariants as xe, IconWeight as v, P as J, TextField as ye } from "@mxenabled/mxui";
9
- import $ from "@mui/material/ListItemAvatar";
10
- import M from "@mui/material/ListItemText";
11
- import b from "@mui/material/Stack";
12
- import { T as Me, L as Ke, O as h, C as $e, b as Be, i as Fe } from "./User-CulNdZUr.mjs";
13
- import { G as He, h as D, u as I, g as w, m as Ne, b as ze, o as Ue } from "./hooks-fY_n74f7.mjs";
14
- import { f as re } from "./NumberFormatting-DjTD0t3W.mjs";
15
- import { Receipt as Xe, Delete as le, ChevronRight as Ve, Cancel as ce, Search as We, Edit as Ye, Flag as je } from "@mxenabled/mx-icons";
16
- import { fromUnixTime as j } from "date-fns/fromUnixTime";
17
- import { isSameDay as Ie } from "date-fns/isSameDay";
18
- import { h as qe } from "./DateUtil-CVsMhbZU.mjs";
19
- import { L as ve } from "./Loader-BSWSYqvn.mjs";
20
- import { A as P } from "./WidgetContainer-mzejMmz2.mjs";
21
- import ie from "@mui/material/Paper";
22
- import de from "@mui/material/Button";
23
- import Ze from "@mui/material/FormGroup";
24
- import ae from "@mui/material/IconButton";
25
- import De from "@mui/material/TextField";
26
- import { u as Se } from "./useAriaLive-B3_pRUio.mjs";
27
- import Je from "@mui/material/ToggleButton";
28
- import Ee from "@mui/material/styles/useTheme";
29
- import z from "@mui/material/Avatar";
30
- import B from "@mui/material/ListItem";
31
- import { a as W, f as Oe, D as we } from "./Dialog-CWymUiuO.mjs";
32
- import U from "@mui/material/ListItemButton";
33
- import X from "@mui/material/ListItemIcon";
34
- import { b as Le } from "./CategorySelectorDrawer-C4aZYP4N.mjs";
35
- import { b as Y } from "./Localization-2MODESHW.mjs";
36
- import { getUnixTime as Qe } from "date-fns/getUnixTime";
37
- import { D as _e } from "./Drawer-Bet2ZPJo.mjs";
38
- import Ce from "@mui/material/InputAdornment";
39
- import et from "@mui/material/Checkbox";
40
- import ge from "@mui/material/Grid";
41
- import { C as tt } from "./CurrencyInput-DDQ4DBrE.mjs";
42
- import at from "@mui/material/Switch";
43
- var Q = /* @__PURE__ */ ((t) => (t[t.Category = 0] = "Category", t[t.Date = 1] = "Date", t[t.Memo = 2] = "Memo", t[t.Tags = 3] = "Tags", t))(Q || {}), se = /* @__PURE__ */ ((t) => (t[t.SplitTransaction = 0] = "SplitTransaction", t[t.HideTransaction = 1] = "HideTransaction", t[t.MerchantLogo = 2] = "MerchantLogo", t))(se || {});
44
- const nt = [
45
- 0,
46
- 1,
47
- 2,
48
- 3
49
- /* Tags */
50
- ], rt = [
51
- 0,
52
- 1,
53
- 2
54
- /* MerchantLogo */
55
- ], G = () => {
56
- if (!_.useContext(He))
57
- throw new Error("useTransactionsUiStore() must be used within the GlobalDataContext");
58
- return D().uiStore;
59
- };
60
- function ot() {
61
- return window.opener && window.opener.location ? window.opener.location.toString() : document.referrer;
62
- }
63
- function it(t) {
64
- const r = ot().replace(/([^:]+:\/\/[^\/]+).*/, "$1"), i = window.parent || window.opener || !1;
65
- return i && i.postMessage && r ? (i.postMessage(t, r), !0) : !1;
66
- }
67
- function st(t) {
68
- return it({
69
- metadata: { beat_guid: t },
70
- mx: !0,
71
- type: "mx/moneyDashboard/insightOnTransaction"
72
- });
73
- }
74
- const lt = ({ transaction: t, onClick: r }) => {
75
- const { associatedBeats: i } = D(), { expandedSplits: a } = G(), { transactions: o } = I(), { showInsights: n } = G(), c = t.transaction_type === Me.CREDIT, s = _.useMemo(() => i.find((d) => d.associated_transaction_guid === t.guid), [i, t]);
76
- return (
77
- //TODO: implement common/components/ListItemRow.tsx
78
- /* @__PURE__ */ l(
79
- Ke,
80
- {
81
- clickEventName: h.ON_TRANSACTION_LIST_ITEM_CLICK,
82
- onClick: r ? () => r(t.guid) : void 0,
83
- children: [
84
- /* @__PURE__ */ e($, { children: t.parent_guid && a.includes(t.parent_guid) ? /* @__PURE__ */ e(_.Fragment, {}) : /* @__PURE__ */ e(
85
- he,
86
- {
87
- categoryGuid: t.top_level_category_guid || "",
88
- merchantGuid: t.merchant_guid || ""
89
- }
90
- ) }),
91
- /* @__PURE__ */ e(
92
- M,
93
- {
94
- disableTypography: !0,
95
- secondary: /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", children: [
96
- /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 4, children: [
97
- t.is_flagged && /* @__PURE__ */ e(f, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
98
- t.is_hidden && /* @__PURE__ */ e(f, { name: "visibility_off", size: 16 }),
99
- t.has_been_split && /* @__PURE__ */ e(f, { name: "call_split", size: 16 }),
100
- /* @__PURE__ */ e(T, { variant: "XSmall", children: t.has_been_split ? o.split_transaction_category_label : t.category })
101
- ] }),
102
- s && n && /* @__PURE__ */ e(
103
- T,
104
- {
105
- bold: !0,
106
- color: "action.active",
107
- onClick: (d) => {
108
- d.stopPropagation(), d.preventDefault(), st(s.guid);
109
- },
110
- variant: "XSmall",
111
- children: s.short_title
112
- }
113
- )
114
- ] }),
115
- children: /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", sx: { gap: 8 }, children: [
116
- /* @__PURE__ */ l(T, { bold: !0, variant: "Body", children: [
117
- t.is_hidden && o.hide_trnx_cancel_hidden_note,
118
- t.payee || t.description || t.feed_description
119
- ] }),
120
- /* @__PURE__ */ l(
121
- T,
122
- {
123
- bold: !0,
124
- color: c ? "success.main" : "text.primary",
125
- sx: { flexShrink: 0 },
126
- variant: "Body",
127
- children: [
128
- c ? "+" : "",
129
- re(t.amount, "0,0.00")
130
- ]
131
- }
132
- )
133
- ] })
134
- }
135
- )
136
- ]
137
- }
138
- )
139
- );
140
- }, ct = x(lt), dt = ({
141
- bgcolor: t = "background.default",
142
- children: r
143
- }) => /* @__PURE__ */ e(O, { display: "inline-block", sx: { bgcolor: t, py: 6, width: "100%" }, children: /* @__PURE__ */ e(T, { bold: !0, sx: { pl: 24 }, variant: "XSmall", children: r }) }), _t = ({ showIcon: t = !0, showSubtitle: r = !0 }) => {
144
- const i = ne(), { transactions: a } = I();
145
- return /* @__PURE__ */ l(b, { alignItems: "center", gap: i.Spacing.Small, height: "auto", mt: i.Spacing.Large, children: [
146
- t && /* @__PURE__ */ e(Xe, { color: "secondary", sx: { fontSize: 32 } }),
147
- /* @__PURE__ */ e(T, { bold: !0, color: "secondary", variant: "Small", children: a.zero_state_no_transactions }),
148
- r && /* @__PURE__ */ e(T, { color: "secondary", variant: "XSmall", children: a.zero_state_there_are_no_transactions })
149
- ] });
150
- }, ut = x(_t), fe = (t, r) => {
151
- const i = j(r[t].date), a = j(r[t - 1]?.date);
152
- return !Ie(i, a);
153
- }, mt = (t, r) => {
154
- const i = j(r[t].date), a = j(r[t + 1]?.date);
155
- return Ie(i, a);
156
- }, be = 65, Ae = 32, pt = ({
157
- bgcolor: t,
158
- filter: r,
159
- height: i = "calc(100dvh - 36px)",
160
- loader: a = /* @__PURE__ */ e(ve, { label: "Loading", size: 40 }),
161
- onClick: o,
162
- showInsights: n = !1,
163
- showLoader: c = !1,
164
- showHiddenTransactions: s = !1,
165
- transaction: d,
166
- width: u = "100%",
167
- zeroState: m = /* @__PURE__ */ e(ut, {})
168
- }) => {
169
- const { isLoading: p, sortedTransactions: S } = D(), g = _.useMemo(() => {
170
- const R = r ? S.filter(r) : S, k = d ?? R;
171
- return s ? k : k.filter((V) => !V.is_hidden);
172
- }, [S, s]), { clearExpandedSplits: C, setShowInsights: L, toggleSplit: y } = G(), { onEvent: N } = w(), F = (R) => {
173
- const k = g.find((V) => V.guid === R);
174
- if (k?.has_been_split) {
175
- y(k.guid);
176
- return;
177
- }
178
- N(P.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
179
- account_guid: k?.account_guid,
180
- transaction_guid: R
181
- }), o?.(R);
182
- }, q = _.useRef(null), K = Ge({
183
- count: g.length,
184
- getScrollElement: () => q.current,
185
- estimateSize: (R) => be + (fe(R, g) ? Ae : 0),
186
- overscan: 5
187
- });
188
- return _.useEffect(() => K.measure(), [g]), _.useEffect(() => L(n), [n]), _.useEffect(() => () => C(), []), /* @__PURE__ */ e(te, { sx: { width: u }, children: /* @__PURE__ */ e(O, { height: i, overflow: "auto", ref: q, width: u, children: /* @__PURE__ */ l(
189
- O,
190
- {
191
- height: (
192
- // set the height to auto when there are no transactions so the zero state isn't set to 0
193
- K.getVirtualItems().length === 0 ? "auto" : K.getTotalSize()
194
- ),
195
- position: "relative",
196
- width: "100%",
197
- children: [
198
- (p || c) && a,
199
- !p && !c && K.getVirtualItems().length === 0 && m,
200
- !p && !c && K.getVirtualItems().length > 0 && K.getVirtualItems().map((R) => {
201
- const k = g[R.index], V = fe(R.index, g), ue = mt(R.index, g), me = be + (V ? Ae : 0);
202
- return /* @__PURE__ */ l(
203
- O,
204
- {
205
- sx: {
206
- height: me,
207
- position: "absolute",
208
- transform: `translateY(${R.start}px)`,
209
- width: "100%",
210
- bgcolor: "background.paper"
211
- },
212
- children: [
213
- V && /* @__PURE__ */ e(dt, { bgcolor: t, children: qe(k.date) }),
214
- /* @__PURE__ */ e(
215
- ct,
216
- {
217
- ...o && { onClick: F },
218
- transaction: k
219
- }
220
- ),
221
- /* @__PURE__ */ e(ee, { sx: { ml: ue ? 68 : 0 } })
222
- ]
223
- },
224
- k.guid
225
- );
226
- })
227
- ]
228
- }
229
- ) }) });
230
- }, Ga = x(pt), gt = ({ transaction: t }) => {
231
- const { addOrUpdateTransactionRule: r, updateTransaction: i } = D(), { categories: a } = Ne(), { onEvent: o } = w(), { setShouldDisableDrawerScroll: n, updateManualTransaction: c } = G(), { transactions: s } = I(), [d, u] = _.useState(!1), [m, p] = _.useState(""), S = async (y) => {
232
- await i({ ...t, category_guid: m }), y && await r(m, t), p(""), o(P.TRANSACTION_DETAILS_CLICK_CATEGORY, {
233
- transaction_guid: t.guid
234
- });
235
- }, g = (y) => {
236
- if (t.is_manual && !t.guid) {
237
- const N = a.find((F) => F.guid === y);
238
- c({
239
- ...t,
240
- category: N?.name,
241
- category_guid: y,
242
- top_level_category_guid: N?.parent_guid || y
243
- });
244
- } else
245
- p(y);
246
- C();
247
- }, C = () => {
248
- u(!1), n(!1);
249
- }, L = _.useMemo(
250
- () => a.find((y) => y.guid === m),
251
- [m]
252
- );
253
- return /* @__PURE__ */ l(_.Fragment, { children: [
254
- /* @__PURE__ */ e(B, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
255
- U,
256
- {
257
- onClick: () => {
258
- o(h.ON_TRANSACTION_CATEGORY_CLICK), u(!0);
259
- },
260
- children: [
261
- /* @__PURE__ */ e($, { children: /* @__PURE__ */ e(z, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(
262
- Te,
263
- {
264
- categoryGuid: t.top_level_category_guid,
265
- size: 24,
266
- sx: { color: "text.primary" },
267
- variant: xe.Transparent
268
- }
269
- ) }) }),
270
- /* @__PURE__ */ e(
271
- M,
272
- {
273
- primary: s.category_title,
274
- primaryTypographyProps: { variant: "XSmall" },
275
- secondary: /* @__PURE__ */ e(T, { bold: !0, variant: "Body", children: t.category ?? s.actions_select_a_category })
276
- }
277
- ),
278
- /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(f, { name: "chevron_right", weight: v.Dark }) })
279
- ]
280
- }
281
- ) }),
282
- /* @__PURE__ */ e(
283
- Le,
284
- {
285
- initialSelected: t.category_guid,
286
- onClose: C,
287
- onSelect: g,
288
- showDrawer: d,
289
- title: s.actions_select_a_category
290
- }
291
- ),
292
- /* @__PURE__ */ e(
293
- W,
294
- {
295
- copy: {
296
- title: Y(
297
- s.actions_apply_to_all_transaction_types,
298
- t.description
299
- )
300
- },
301
- isOpen: !!m,
302
- onClose: () => p(""),
303
- onPrimaryAction: () => S(!0),
304
- onSecondaryAction: () => S(!1),
305
- primaryText: s.actions_apply_to_all,
306
- secondaryText: s.actions_this_time_only,
307
- children: /* @__PURE__ */ e(J, { variant: "Paragraph", children: Y(
308
- s.actions_all_past_and_future,
309
- t.description,
310
- L?.name
311
- ) })
312
- }
313
- )
314
- ] });
315
- }, ht = ({ transaction: t }) => {
316
- const r = ne(), { onEvent: i } = w(), { updateTransaction: a } = D(), { updateManualTransaction: o } = G(), { common: n, transactions: c } = I(), [s, d] = _.useState(!1), [u, m] = _.useState(t.date), p = (g) => {
317
- m(Qe(g));
318
- }, S = async () => {
319
- if (t.is_manual && !t.guid) {
320
- o({ ...t, date: u }), d(!1);
321
- return;
322
- }
323
- await a({ ...t, date: u }), i(P.TRANSACTION_DETAILS_CLICK_DATE, { transaction_guid: t.guid }), d(!1);
324
- };
325
- return /* @__PURE__ */ l(O, { className: "mx-txn-date-action", children: [
326
- /* @__PURE__ */ e(B, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
327
- U,
328
- {
329
- onClick: () => {
330
- i(h.ON_TRANSACTION_DATE_CLICK), d(!0);
331
- },
332
- children: [
333
- /* @__PURE__ */ e($, { children: /* @__PURE__ */ e(z, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(f, { name: "calendar_month", sx: { color: "text.primary" }, weight: v.Dark }) }) }),
334
- /* @__PURE__ */ e(
335
- M,
336
- {
337
- primary: c.date_title,
338
- primaryTypographyProps: { variant: "XSmall" },
339
- secondary: /* @__PURE__ */ e(T, { bold: !0, variant: "Body", children: Oe(j(t.date), we.YEAR_MONTH_DAY) })
340
- }
341
- ),
342
- /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(f, { name: "chevron_right", weight: v.Dark }) })
343
- ]
344
- }
345
- ) }),
346
- /* @__PURE__ */ e(
347
- _e,
348
- {
349
- ariaLabelClose: n.close_aria,
350
- isOpen: s,
351
- onClose: () => d(!1),
352
- onPrimaryAction: S,
353
- primaryText: n.save_button,
354
- secondaryText: n.cancel_button,
355
- title: c.date_edit_title,
356
- children: /* @__PURE__ */ e(b, { alignItems: "center", mt: r.Spacing.XXLarge, children: /* @__PURE__ */ e(
357
- $e,
358
- {
359
- beginDate: j(u),
360
- copy: {
361
- nextAria: c.date_next_aria,
362
- prevAria: c.date_prev_aria,
363
- today: n.date_range_picker.today
364
- },
365
- onDateSelected: p,
366
- selectionType: Be.Single
367
- }
368
- ) })
369
- }
370
- )
371
- ] });
372
- }, Tt = ({ transaction: t }) => {
373
- const { onEvent: r } = w(), { removeTransaction: i } = D(), { setShouldDisableDrawerScroll: a } = G(), { common: o, transactions: n } = I(), [c, s] = _.useState(!1), d = async () => {
374
- await i(t.guid), r(h.ON_TRANSACTION_DELETE_DELETED);
375
- };
376
- return /* @__PURE__ */ l(O, { className: "mx-txn-delete", children: [
377
- t && /* @__PURE__ */ e(B, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
378
- U,
379
- {
380
- onClick: () => {
381
- r(h.ON_TRANSACTION_DELETE_CLICK), a(!0), s(!0);
382
- },
383
- children: [
384
- /* @__PURE__ */ e($, { children: /* @__PURE__ */ e(z, { variant: "rounded", children: /* @__PURE__ */ e(le, { color: "secondary", fontSize: "small" }) }) }),
385
- /* @__PURE__ */ e(
386
- M,
387
- {
388
- primary: n.manual_transaction_delete_title,
389
- secondary: n.manual_transaction_delete_subtitle
390
- }
391
- ),
392
- /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(le, {}) })
393
- ]
394
- }
395
- ) }),
396
- /* @__PURE__ */ e(
397
- W,
398
- {
399
- copy: { title: n.manual_transaction_delete_title },
400
- isOpen: c,
401
- onClose: () => {
402
- a(!1), s(!1);
403
- },
404
- onPrimaryAction: d,
405
- onSecondaryAction: () => r(h.ON_TRANSACTION_DELETE_CANCEL),
406
- primaryText: o.delete_button,
407
- secondaryText: o.cancel_button,
408
- children: /* @__PURE__ */ e(T, { sx: { whiteSpace: "normal" }, variant: "Paragraph", children: n.manual_transaction_delete_description })
409
- }
410
- )
411
- ] });
412
- }, yt = x(Tt), St = ({ transaction: t }) => {
413
- const { onEvent: r } = w(), { updateTransaction: i } = D(), { setShouldDisableDrawerScroll: a } = G(), { common: o, transactions: n } = I(), [c, s] = _.useState(!1), d = async () => {
414
- await i({ ...t, merchant_guid: "" }), r(P.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
415
- transaction_guid: t.guid
416
- });
417
- };
418
- return /* @__PURE__ */ l(O, { className: "mx-txn-delete-logo", children: [
419
- t && /* @__PURE__ */ e(B, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
420
- U,
421
- {
422
- onClick: () => {
423
- r(h.ON_TRANSACTION_DELETE_LOGO_CLICK), s(!0);
424
- },
425
- children: [
426
- /* @__PURE__ */ e($, { children: /* @__PURE__ */ e(z, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(f, { name: "delete", sx: { color: "text.primary" }, weight: v.Dark }) }) }),
427
- /* @__PURE__ */ e(M, { primary: n.merchant_logo_title, secondary: n.merchant_logo_desc }),
428
- /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(f, { name: "chevron_right", weight: v.Dark }) })
429
- ]
430
- }
431
- ) }),
432
- /* @__PURE__ */ l(
433
- W,
434
- {
435
- copy: { title: n.merchant_logo_modal_title },
436
- isOpen: c,
437
- onClose: () => {
438
- a(!1), s(!1);
439
- },
440
- onPrimaryAction: d,
441
- onSecondaryAction: () => r(h.ON_TRANSACTION_DELETE_LOGO_CANCEL),
442
- primaryText: o.delete_button,
443
- secondaryText: o.cancel_button,
444
- title: n.merchant_logo_modal_title,
445
- children: [
446
- /* @__PURE__ */ e(T, { sx: { whiteSpace: "normal" }, variant: "Paragraph", children: n.merchant_logo_modal_desc }),
447
- /* @__PURE__ */ e(T, { bold: !0, sx: { whiteSpace: "normal" }, variant: "Paragraph", children: ` ${n.merchant_logo_modal_desc_bold}` })
448
- ]
449
- }
450
- )
451
- ] });
452
- }, Ct = x(St), ft = ({ transaction: t }) => {
453
- const { onEvent: r } = w(), { updateTransaction: i } = D(), { setShouldDisableDrawerScroll: a } = G(), { common: o, transactions: n } = I(), [c, s] = _.useState(!1), d = t.is_hidden, u = async () => {
454
- await i({ ...t, is_hidden: !t.is_hidden }), r(
455
- d ? h.ON_TRANSACTION_UNHIDDEN : h.ON_TRANSACTION_HIDDEN
456
- );
457
- };
458
- return /* @__PURE__ */ l(O, { className: "mx-txn-hide-transaction", children: [
459
- t && /* @__PURE__ */ e(B, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
460
- U,
461
- {
462
- "aria-checked": d,
463
- onClick: () => {
464
- r(
465
- d ? h.ON_TRANSACTION_UNHIDE_CLICK : h.ON_TRANSACTION_HIDE_CLICK
466
- ), r(
467
- d ? "transaction_details_click_unhide_transaction" : "transaction_details_click_hide_transaction",
468
- {
469
- transaction_guid: t.guid
470
- }
471
- ), s(!0);
472
- },
473
- role: "switch",
474
- children: [
475
- /* @__PURE__ */ e($, { children: /* @__PURE__ */ e(z, { sx: { bgcolor: "border.light" }, variant: "rounded", children: d ? /* @__PURE__ */ e(
476
- f,
477
- {
478
- name: "visibilityOff",
479
- sx: { color: "text.primary" },
480
- weight: v.Dark
481
- }
482
- ) : /* @__PURE__ */ e(f, { name: "visibility", sx: { color: "text.primary" }, weight: v.Dark }) }) }),
483
- /* @__PURE__ */ e(
484
- M,
485
- {
486
- primary: d ? n.hide_trnx_subtitle_unhide_trnx : n.hide_trnx_subtitle_hide_trnx,
487
- secondary: d ? n.hide_trnx_desc_unhiding : n.hide_trnx_desc_hiding
488
- }
489
- ),
490
- /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(
491
- at,
492
- {
493
- checked: d,
494
- id: "hide-transaction",
495
- name: "hide-transaction",
496
- tabIndex: -1
497
- }
498
- ) })
499
- ]
500
- }
501
- ) }),
502
- /* @__PURE__ */ e(
503
- W,
504
- {
505
- copy: {
506
- title: d ? n.hide_trnx_subtitle_unhide_trnx : n.hide_trnx_subtitle_hide_trnx
507
- },
508
- isOpen: c,
509
- onClose: () => {
510
- a(!1), s(!1);
511
- },
512
- onPrimaryAction: u,
513
- onSecondaryAction: () => r(
514
- d ? h.ON_TRANSACTION_UNHIDE_CANCEL_CLICK : h.ON_TRANSACTION_HIDE_CANCEL_CLICK
515
- ),
516
- primaryText: d ? o.unhide_button : o.hide_button,
517
- secondaryText: o.cancel_button,
518
- children: /* @__PURE__ */ e(T, { truncate: !1, variant: "Paragraph", children: d ? n.hide_trnx_desc_unhiding : n.hide_trnx_desc_hiding })
519
- }
520
- )
521
- ] });
522
- }, bt = x(ft), Re = ({ transaction: t }) => {
523
- const { amount: r, description: i, isIncome: a, merchant_guid: o, payee: n, top_level_category_guid: c } = t;
524
- return /* @__PURE__ */ l(b, { className: "mx-txn-amount-header", direction: "row", gap: 12, px: 16, py: 24, children: [
525
- /* @__PURE__ */ e(
526
- he,
527
- {
528
- categoryGuid: c || "",
529
- merchantGuid: o || "",
530
- size: 64
531
- }
532
- ),
533
- /* @__PURE__ */ l(b, { overflow: "hidden'", children: [
534
- /* @__PURE__ */ e(T, { bold: !0, mb: 4, truncate: !0, variant: "Body", children: i || n }),
535
- /* @__PURE__ */ l(J, { color: a ? "success.main" : "text.primary", truncate: !0, variant: "H1", children: [
536
- a ? "+" : "",
537
- re(r, "0,0.00")
538
- ] })
539
- ] })
540
- ] });
541
- }, At = ({ transaction: t }) => {
542
- const { onEvent: r } = w(), { updateTransaction: i } = D(), { updateManualTransaction: a } = G(), { common: o, transactions: n } = I(), [c, s] = _.useState(!1), [d, u] = _.useState("");
543
- _.useEffect(() => {
544
- c && u(t.memo ? t.memo : "");
545
- }, [c]);
546
- const m = async () => {
547
- if (t.is_manual && !t.guid) {
548
- a({ ...t, memo: d }), s(!1);
549
- return;
550
- }
551
- await i({ ...t, memo: d }), r(P.TRANSACTION_DETAILS_CLICK_MEMO, { transaction_guid: t.guid }), s(!1);
552
- };
553
- return /* @__PURE__ */ l("div", { className: "mx-txn-memo-action", children: [
554
- /* @__PURE__ */ e(B, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
555
- U,
556
- {
557
- onClick: () => {
558
- r(h.ON_TRANSACTION_MEMO_CLICK), s(!0);
559
- },
560
- children: [
561
- /* @__PURE__ */ e($, { children: /* @__PURE__ */ e(z, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(f, { name: "article", sx: { color: "text.primary" }, weight: v.Dark }) }) }),
562
- /* @__PURE__ */ e(
563
- M,
564
- {
565
- primary: n.memo_title,
566
- primaryTypographyProps: { variant: "XSmall" },
567
- secondary: /* @__PURE__ */ e(
568
- T,
569
- {
570
- bold: !0,
571
- sx: { overflowWrap: "break-word", whiteSpace: "wrap" },
572
- variant: "Body",
573
- children: t.memo ? t.memo : n.memo_desc
574
- }
575
- )
576
- }
577
- ),
578
- /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(f, { name: "chevron_right", weight: v.Dark }) })
579
- ]
580
- }
581
- ) }),
582
- /* @__PURE__ */ l(
583
- _e,
584
- {
585
- ariaLabelClose: o.close_aria,
586
- isOpen: c,
587
- onClose: () => s(!1),
588
- onPrimaryAction: m,
589
- title: n.memo_title,
590
- children: [
591
- /* @__PURE__ */ e(Re, { transaction: t }),
592
- /* @__PURE__ */ e(
593
- De,
594
- {
595
- "aria-label": n.memo_desc_aria,
596
- focused: !0,
597
- fullWidth: !0,
598
- multiline: !0,
599
- name: "memo",
600
- onChange: (p) => u(p.target.value),
601
- placeholder: n.memo_desc,
602
- rows: 4,
603
- sx: { px: 16 },
604
- value: d
605
- }
606
- )
607
- ]
608
- }
609
- )
610
- ] });
611
- }, xt = x(At), Nt = ({
612
- index: t,
613
- onDeleteRow: r,
614
- onCategoryChanged: i,
615
- onUpdateAmount: a,
616
- split: o
617
- }) => {
618
- const n = ne(), { onEvent: c } = w(), { transactions: s } = I(), [d, u] = _.useState(`${o.amount}`), [m, p] = _.useState(!1), S = t === 0, g = (C) => {
619
- isNaN(Number(C)) || (u(C), a(t, Number(C)));
620
- };
621
- return /* @__PURE__ */ l(
622
- O,
623
- {
624
- bgcolor: "background.paper",
625
- className: "mx-txn-split-manager-row",
626
- pb: n.Spacing.Tiny,
627
- px: n.Spacing.XSmall,
628
- children: [
629
- /* @__PURE__ */ l(ge, { alignItems: S ? "center" : "start", container: !0, children: [
630
- /* @__PURE__ */ e(ge, { item: !0, xs: 7, children: /* @__PURE__ */ l(b, { alignItems: "start", children: [
631
- /* @__PURE__ */ e(
632
- de,
633
- {
634
- endIcon: /* @__PURE__ */ e(Ve, {}),
635
- onClick: () => p(!0),
636
- startIcon: /* @__PURE__ */ e(Te, { categoryGuid: o.top_level_category_guid }),
637
- sx: { px: n.Spacing.Small, py: n.Spacing.XSmall },
638
- children: o.category
639
- }
640
- ),
641
- /* @__PURE__ */ e(O, { children: !o.category_guid && /* @__PURE__ */ l(
642
- b,
643
- {
644
- color: "error.main",
645
- direction: "row",
646
- gap: n.Spacing.XSmall,
647
- p: n.Spacing.Small,
648
- children: [
649
- /* @__PURE__ */ e("span", { "aria-label": "error", role: "img", children: /* @__PURE__ */ e(ce, { sx: { fontSize: n.FontSize.Body } }) }),
650
- /* @__PURE__ */ e(T, { variant: "Small", children: s.split_transaction_errors_select_category })
651
- ]
652
- }
653
- ) })
654
- ] }) }),
655
- /* @__PURE__ */ e(ge, { item: !0, xs: 5, children: S ? /* @__PURE__ */ e("div", { className: "mx-txn-split-manager-row-top-container", children: /* @__PURE__ */ e(T, { children: re(o.amount, "0,0.00") }) }) : /* @__PURE__ */ l(b, { alignItems: "start", children: [
656
- /* @__PURE__ */ l(b, { alignItems: "start", direction: "row", gap: n.Spacing.XSmall, children: [
657
- /* @__PURE__ */ e(
658
- tt,
659
- {
660
- amount: d,
661
- ariaLabel: s.split_transaction_edit_split_amount,
662
- name: "split-amount-input",
663
- setAmount: g,
664
- sx: {
665
- ".MuiOutlinedInput-input": { p: n.Spacing.Small }
666
- },
667
- type: "number"
668
- }
669
- ),
670
- /* @__PURE__ */ e(
671
- ae,
672
- {
673
- "aria-label": s.split_transaction_delete_split_btn,
674
- color: "secondary",
675
- onClick: () => {
676
- c(h.ON_TRANSACTION_SPLIT_DELETE_CLICK), r(t);
677
- },
678
- sx: { w: 44, h: 44 },
679
- children: /* @__PURE__ */ e(le, {})
680
- }
681
- )
682
- ] }),
683
- !d && /* @__PURE__ */ l(
684
- b,
685
- {
686
- color: "error.main",
687
- direction: "row",
688
- gap: n.Spacing.XSmall,
689
- py: n.Spacing.Small,
690
- children: [
691
- /* @__PURE__ */ e("span", { "aria-label": "error", role: "img", children: /* @__PURE__ */ e(ce, { sx: { fontSize: n.FontSize.Body } }) }),
692
- /* @__PURE__ */ e(T, { variant: "Small", children: s.split_transaction_errors_enter_an_amount })
693
- ]
694
- }
695
- )
696
- ] }) })
697
- ] }),
698
- /* @__PURE__ */ e(
699
- Le,
700
- {
701
- initialSelected: o.category_guid,
702
- onClose: () => p(!1),
703
- onSelect: (C) => {
704
- i(t, C), p(!1);
705
- },
706
- showDrawer: m,
707
- title: s.actions_select_a_category
708
- }
709
- )
710
- ]
711
- }
712
- );
713
- }, It = x(Nt), vt = ({
714
- onAddSplit: t,
715
- onCategoryChanged: r,
716
- onDeleteSplit: i,
717
- onUpdateAmount: a,
718
- splits: o,
719
- transaction: n
720
- }) => {
721
- const c = ne(), { transactions: s } = I(), { onEvent: d } = w(), [u, m] = _.useState(""), { announce: p, ariaLive: S } = Se();
722
- return _.useEffect(() => {
723
- if (o.length <= 1)
724
- m(s.split_transaction_errors_min_splits), p(s.split_transaction_errors_min_splits);
725
- else if (o[0].amount < 0) {
726
- const g = Y(
727
- s.split_transaction_errors_totals_must_equal_amount,
728
- re(n.amount, "0,0.00")
729
- );
730
- m(g), p(g);
731
- } else
732
- m(""), p("");
733
- }, [o]), /* @__PURE__ */ l(O, { className: "mx-txn-split-manager", children: [
734
- S,
735
- o.map((g, C) => /* @__PURE__ */ e(
736
- It,
737
- {
738
- index: C,
739
- onCategoryChanged: r,
740
- onDeleteRow: i,
741
- onUpdateAmount: a,
742
- split: g
743
- },
744
- C
745
- )),
746
- u && /* @__PURE__ */ l(
747
- b,
748
- {
749
- color: "error.main",
750
- direction: "row",
751
- gap: c.Spacing.XSmall,
752
- p: c.Spacing.Medium,
753
- children: [
754
- /* @__PURE__ */ e("span", { "aria-label": "error", role: "img", children: /* @__PURE__ */ e(ce, { sx: { fontSize: c.FontSize.Body } }) }),
755
- /* @__PURE__ */ e(T, { variant: "Small", children: u })
756
- ]
757
- }
758
- ),
759
- /* @__PURE__ */ e(O, { p: c.Spacing.Medium, children: /* @__PURE__ */ e(
760
- de,
761
- {
762
- "aria-label": s.split_transaction_add_split_btn,
763
- onClick: () => {
764
- d(h.ON_TRANSACTION_SPLIT_ADD_CLICK), t();
765
- },
766
- children: s.split_transaction_add_split_btn
767
- }
768
- ) })
769
- ] });
770
- }, Dt = x(vt), Et = ({ transaction: t }) => {
771
- const { onEvent: r } = w(), { announce: i, ariaLive: a } = Se(), { splitTransaction: o, unSplitTransaction: n } = D(), { common: c, transactions: s } = I(), { setShouldDisableDrawerScroll: d } = G(), { categories: u } = Ne(), m = {
772
- ...t,
773
- amount: t.amount - 1,
774
- guid: "",
775
- has_been_split: !1,
776
- parent_guid: t.guid
777
- }, p = {
778
- ...t,
779
- amount: 1,
780
- category_guid: void 0,
781
- category: s.split_transaction_select_category_btn,
782
- guid: "",
783
- has_been_split: !1,
784
- parent_guid: t.guid,
785
- top_level_category_guid: void 0
786
- }, [S, g] = _.useState(!1), [C, L] = _.useState(!1), [y, N] = _.useState([]), F = () => {
787
- const A = [...y];
788
- A.push({ ...p }), A[0].amount -= 1, N(A), i(
789
- Y(
790
- s.split_transaction_add_split_announcement,
791
- A.length
792
- )
793
- );
794
- }, q = (A) => {
795
- if (A > 0) {
796
- const H = y[A], E = [...y];
797
- E.splice(A, 1), E[0].amount += H.amount, N(E), i(
798
- Y(s.split_transaction_delete_split_announcement, A + 1)
799
- );
800
- }
801
- }, K = (A, H) => {
802
- const E = [...y];
803
- E[A].amount = H, E[0].amount = t.amount - E.reduce(
804
- (Z, pe, Pe) => Z + (Pe !== 0 ? pe.amount : 0),
805
- 0
806
- ), N(E);
807
- }, R = (A, H) => {
808
- const E = [...y], Z = u.find((pe) => pe.guid === H);
809
- Z && (E[A] = {
810
- ...E[A],
811
- category_guid: H,
812
- category: Z.name,
813
- top_level_category_guid: Z.parent_guid || H
814
- }, N(E), i(
815
- Y(
816
- s.split_transaction_select_category_announcement,
817
- Z.name,
818
- A + 1
819
- )
820
- ));
821
- }, k = () => {
822
- if (t.parent_guid || t.has_been_split) {
823
- L(!0);
824
- return;
825
- }
826
- N([{ ...m }, { ...p }]), r(P.TRANSACTION_DETAILS_CLICK_SPLIT, {
827
- transaction_guid: t.guid
828
- }), g(!0);
829
- }, V = async () => {
830
- r(h.ON_TRANSACTION_SPLIT_SAVE_CLICK), await o({ ...t, has_been_split: !0 }, y), g(!1);
831
- }, ue = async () => {
832
- r(h.ON_TRANSACTION_SPLIT_CANCEL_CLICK), N([{ ...m }, { ...p }]), g(!1);
833
- }, me = async () => {
834
- r(P.TRANSACTION_DETAILS_CLICK_UNSPLIT, {
835
- transaction_guid: t.guid
836
- });
837
- const A = t.parent_guid ?? t.guid;
838
- await n(A);
839
- }, ke = _.useMemo(() => {
840
- const A = y.some((E) => !E.category_guid), H = y.some((E) => E.amount <= 0);
841
- return A || H;
842
- }, [y]);
843
- return /* @__PURE__ */ l(_.Fragment, { children: [
844
- t && /* @__PURE__ */ e(B, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(U, { onClick: k, children: [
845
- /* @__PURE__ */ e($, { children: /* @__PURE__ */ e(z, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(f, { name: "call_split", sx: { color: "text.primary" }, weight: v.Dark }) }) }),
846
- /* @__PURE__ */ e(
847
- M,
848
- {
849
- primary: t.has_been_split || t.parent_guid ? s.split_transaction_unsplit_title : s.split_transaction_title,
850
- secondary: t.has_been_split || t.parent_guid ? s.split_transaction_unsplit_subtitle : s.split_transaction_desc
851
- }
852
- ),
853
- /* @__PURE__ */ e(X, { children: t.has_been_split || t.parent_guid ? /* @__PURE__ */ e(f, { name: "delete", weight: v.Dark }) : /* @__PURE__ */ e(f, { name: "chevron_right", weight: v.Dark }) })
854
- ] }) }),
855
- /* @__PURE__ */ l(
856
- _e,
857
- {
858
- ariaLabelClose: c.close_aria,
859
- isOpen: S,
860
- isPrimaryDisabled: ke,
861
- onClose: ue,
862
- onPrimaryAction: V,
863
- primaryText: c.save_button,
864
- secondaryText: c.cancel_button,
865
- title: s.split_transaction_title,
866
- children: [
867
- a,
868
- /* @__PURE__ */ e(Re, { transaction: t }),
869
- /* @__PURE__ */ e(
870
- Dt,
871
- {
872
- onAddSplit: F,
873
- onCategoryChanged: R,
874
- onDeleteSplit: q,
875
- onUpdateAmount: K,
876
- splits: y,
877
- transaction: t
878
- }
879
- )
880
- ]
881
- }
882
- ),
883
- /* @__PURE__ */ e(
884
- W,
885
- {
886
- copy: { title: s.split_transaction_unsplit_title },
887
- isOpen: C,
888
- onClose: () => {
889
- d(!1), L(!1);
890
- },
891
- onPrimaryAction: me,
892
- onSecondaryAction: () => {
893
- r(h.ON_TRANSACTION_UNSPLIT_CANCEL);
894
- },
895
- primaryText: c.delete_button,
896
- secondaryText: c.cancel_button,
897
- children: /* @__PURE__ */ e(J, { variant: "Paragraph", children: Y(
898
- s.split_transaction_unsplit_description,
899
- t.description
900
- ) })
901
- }
902
- )
903
- ] });
904
- }, Ot = x(Et), wt = () => {
905
- const t = Ee(), { onEvent: r } = w(), { addTag: i } = D(), { transactions: a } = I(), [o, n] = _.useState(!1), [c, s] = _.useState(""), [d, u] = _.useState(""), m = _.useRef(null);
906
- _.useEffect(() => {
907
- o && m?.current?.focus();
908
- }, [o]);
909
- const p = () => {
910
- r(
911
- o ? h.ON_TRANSACTION_TAGS_TAG_ADD_CANCEL_CLICK : h.ON_TRANSACTION_TAGS_TAG_ADD_CLICK
912
- ), o || s(""), n(!o);
913
- }, S = async () => {
914
- r(h.ON_TRANSACTION_TAGS_TAG_ADDED), await i(c), n(!1);
915
- };
916
- return _.useEffect(() => {
917
- u(c.length > 40 ? a.tags_error_name_must_be_40_chars : "");
918
- }, [c]), /* @__PURE__ */ l(O, { className: "mx-txn-tag-manager-header", children: [
919
- /* @__PURE__ */ l(
920
- b,
921
- {
922
- alignItems: "center",
923
- bgcolor: t.palette.background.default,
924
- direction: "row",
925
- justifyContent: "space-between",
926
- px: 24,
927
- py: 16,
928
- children: [
929
- /* @__PURE__ */ e(T, { bold: !0, children: a.tags_your_tags }),
930
- /* @__PURE__ */ e(
931
- de,
932
- {
933
- "aria-expanded": o,
934
- "aria-label": a.tags_add_tag_btn_aria,
935
- onClick: p,
936
- children: a.tags_add_tag_btn
937
- }
938
- )
939
- ]
940
- }
941
- ),
942
- /* @__PURE__ */ l(
943
- W,
944
- {
945
- copy: { title: a.tags_add_tag_btn },
946
- isOpen: o,
947
- onClose: () => n(!1),
948
- onPrimaryAction: S,
949
- onSecondaryAction: () => n(!1),
950
- children: [
951
- /* @__PURE__ */ e(
952
- ye,
953
- {
954
- "aria-label": a.tags_placeholder,
955
- name: "add-tag",
956
- onChange: (g) => s(g.target.value),
957
- placeholder: a.tags_placeholder,
958
- sx: { width: "100%" },
959
- value: c
960
- }
961
- ),
962
- /* @__PURE__ */ e(J, { id: "add-tag-error", sx: { color: "error.main" }, variant: "ParagraphSmall", children: d })
963
- ]
964
- }
965
- )
966
- ] });
967
- }, Lt = x(wt), Rt = ({ onSearchValueChanged: t, searchValue: r }) => {
968
- const { common: i, transactions: a } = I(), o = ne(), n = /* @__PURE__ */ e(
969
- ae,
970
- {
971
- "aria-label": a.tags_cancel_search || "Search",
972
- onClick: () => t(""),
973
- children: /* @__PURE__ */ e(ce, {})
974
- }
975
- );
976
- return /* @__PURE__ */ e(O, { className: "mx-txn-tag-manager-search", px: o.Spacing.Large, py: o.Spacing.Medium, children: /* @__PURE__ */ e(
977
- ye,
978
- {
979
- InputProps: {
980
- startAdornment: /* @__PURE__ */ e(Ce, { position: "start", children: /* @__PURE__ */ e(We, { color: "disabled" }) }),
981
- endAdornment: /* @__PURE__ */ e(Ce, { position: "end", sx: { padding: 0 }, children: r ? n : null })
982
- },
983
- "aria-label": i.search_aria,
984
- name: "search",
985
- onChange: (c) => t(c.target.value),
986
- placeholder: i.search_placeholder,
987
- sx: { bgcolor: "background.paper", width: "100%" },
988
- value: r
989
- }
990
- ) });
991
- }, kt = x(Rt), Pt = ({ onTagChecked: t, selectedTags: r, tag: i }) => {
992
- const { onEvent: a } = w(), { removeTag: o, updateTag: n } = D(), { common: c, transactions: s } = I(), [d, u] = _.useState(!1), [m, p] = _.useState(!1), [S, g] = _.useState(""), [C, L] = _.useState(""), y = async () => {
993
- a(h.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), i && await n({ ...i, name: S }), u(!1);
994
- }, N = async () => {
995
- a(h.ON_TRANSACTION_TAGS_TAG_DELETED), await o(i.guid), p(!1);
996
- };
997
- _.useEffect(() => {
998
- L(S.length > 40 ? s.tags_error_name_must_be_40_chars : "");
999
- }, [S]);
1000
- const F = () => {
1001
- a(h.ON_TRANSACTION_TAGS_TAG_EDIT_CLICK), g(i.name), u(!0);
1002
- }, q = () => {
1003
- a(h.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK), p(!0);
1004
- };
1005
- return /* @__PURE__ */ l(
1006
- B,
1007
- {
1008
- className: "mx-txn-transaction-manager-row",
1009
- disableGutters: !0,
1010
- disablePadding: !0,
1011
- secondaryAction: !i.is_default_tag && /* @__PURE__ */ l(b, { direction: "row", children: [
1012
- /* @__PURE__ */ e(
1013
- ae,
1014
- {
1015
- "aria-label": `Edit ${i.name} tag`,
1016
- color: "secondary",
1017
- onClick: F,
1018
- children: /* @__PURE__ */ e(Ye, { color: "secondary" })
1019
- }
1020
- ),
1021
- /* @__PURE__ */ e(
1022
- ae,
1023
- {
1024
- "aria-label": `Delete ${i.name} tag`,
1025
- color: "secondary",
1026
- onClick: q,
1027
- children: /* @__PURE__ */ e(le, { color: "secondary" })
1028
- }
1029
- )
1030
- ] }),
1031
- children: [
1032
- /* @__PURE__ */ l(
1033
- U,
1034
- {
1035
- "aria-checked": r.includes(i.guid),
1036
- onClick: () => t(i.guid),
1037
- role: "checkbox",
1038
- children: [
1039
- /* @__PURE__ */ e(X, { sx: { ml: 0 }, children: /* @__PURE__ */ e(et, { checked: r.includes(i.guid), edge: "start", tabIndex: -1 }) }),
1040
- /* @__PURE__ */ e(M, { children: i.name })
1041
- ]
1042
- }
1043
- ),
1044
- /* @__PURE__ */ l(
1045
- W,
1046
- {
1047
- copy: { title: "Update tag name" },
1048
- isOpen: d,
1049
- onClose: () => u(!1),
1050
- onPrimaryAction: y,
1051
- onSecondaryAction: () => u(!1),
1052
- children: [
1053
- /* @__PURE__ */ e(
1054
- ye,
1055
- {
1056
- "aria-describedby": C ? "update-tag-error" : void 0,
1057
- "aria-label": s.tags_update_the_tag_name,
1058
- name: "update-tag",
1059
- onChange: (K) => g(K.target.value),
1060
- placeholder: "Tag name",
1061
- sx: { width: "100%" },
1062
- value: S
1063
- }
1064
- ),
1065
- /* @__PURE__ */ e(J, { id: "update-tag-error", sx: { color: "error.main" }, variant: "ParagraphSmall", children: C })
1066
- ]
1067
- }
1068
- ),
1069
- /* @__PURE__ */ e(
1070
- W,
1071
- {
1072
- copy: { title: s.tags_delete_title },
1073
- isOpen: m,
1074
- onClose: () => p(!1),
1075
- onPrimaryAction: N,
1076
- onSecondaryAction: () => a(h.ON_TRANSACTION_TAGS_TAG_DELETE_CANCEL_CLICK),
1077
- primaryText: c.delete_button,
1078
- secondaryText: c.cancel_button,
1079
- children: /* @__PURE__ */ e(T, { truncate: !1, children: s.tags_deleting_this_tag_will_remove_it })
1080
- }
1081
- )
1082
- ]
1083
- }
1084
- );
1085
- }, Gt = x(Pt), Mt = ({ selectedTags: t, onTagChecked: r }) => {
1086
- const { tags: i } = D(), [a, o] = _.useState(""), n = i.filter(
1087
- (c) => c.name.toLowerCase().includes(a.toLowerCase())
1088
- );
1089
- return /* @__PURE__ */ l("div", { className: "mx-txn-tag-manager", children: [
1090
- /* @__PURE__ */ e(
1091
- kt,
1092
- {
1093
- onSearchValueChanged: (c) => o(c),
1094
- searchValue: a
1095
- }
1096
- ),
1097
- /* @__PURE__ */ e(Lt, {}),
1098
- /* @__PURE__ */ e(ie, { sx: { boxShadow: "none" }, children: /* @__PURE__ */ e(te, { children: n.map((c) => /* @__PURE__ */ l(_.Fragment, { children: [
1099
- /* @__PURE__ */ e(Gt, { onTagChecked: r, selectedTags: t, tag: c }),
1100
- /* @__PURE__ */ e(ee, { sx: { ml: 24 } })
1101
- ] }, c.guid)) }) })
1102
- ] });
1103
- }, Kt = x(Mt), $t = ({ transaction: t }) => {
1104
- const { onEvent: r } = w(), { tags: i, updateTaggings: a, updateTransaction: o } = D(), { common: n, transactions: c } = I(), { updateManualTransaction: s } = G(), [d, u] = _.useState(!1), [m, p] = _.useState(t.tags);
1105
- _.useEffect(() => {
1106
- p(t.tags);
1107
- }, [d, t]);
1108
- const S = (L) => {
1109
- const y = [...m], N = m.indexOf(L);
1110
- N >= 0 ? y.splice(N, 1) : y.push(L), p(y);
1111
- }, g = async () => {
1112
- if (t.is_manual && !t.guid) {
1113
- s({ ...t, tags: m }), u(!1);
1114
- return;
1115
- }
1116
- await a(m, t.guid), await o({ ...t, tags: m }), r(P.TRANSACTION_DETAILS_CLICK_TAGS, { transaction_guid: t.guid }), u(!1);
1117
- }, C = _.useMemo(
1118
- () => t.tags.map(
1119
- (L, y, N) => `${i.find((F) => F.guid === L)?.name}${y < N.length - 1 ? " / " : ""}`
1120
- ),
1121
- [i, t]
1122
- );
1123
- return /* @__PURE__ */ l(_.Fragment, { children: [
1124
- /* @__PURE__ */ e(B, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
1125
- U,
1126
- {
1127
- onClick: () => {
1128
- r(h.ON_TRANSACTION_TAGS_CLICK), u(!0);
1129
- },
1130
- children: [
1131
- /* @__PURE__ */ e($, { children: /* @__PURE__ */ e(z, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(f, { name: "local_offer", sx: { color: "text.primary" }, weight: v.Dark }) }) }),
1132
- /* @__PURE__ */ e(
1133
- M,
1134
- {
1135
- primary: c.tags_title,
1136
- primaryTypographyProps: { variant: "XSmall" },
1137
- secondary: /* @__PURE__ */ e(T, { bold: !0, variant: "Body", children: t.tags?.length > 0 ? C : c.tags_desc })
1138
- }
1139
- ),
1140
- /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(f, { name: "chevron_right", weight: v.Dark }) })
1141
- ]
1142
- }
1143
- ) }),
1144
- /* @__PURE__ */ e(
1145
- _e,
1146
- {
1147
- ariaLabelClose: n.close_aria,
1148
- isOpen: d,
1149
- onClose: () => u(!1),
1150
- onPrimaryAction: g,
1151
- primaryText: n.save_button,
1152
- secondaryText: n.cancel_button,
1153
- title: c.tags_title,
1154
- children: /* @__PURE__ */ e(Kt, { onTagChecked: S, selectedTags: m })
1155
- }
1156
- )
1157
- ] });
1158
- }, Bt = x($t), Ft = ({ transaction: t, viewOnly: r = !1 }) => {
1159
- const { updateTransaction: i } = D(), { common: a, transactions: o } = I(), { onEvent: n } = w(), { announce: c, ariaLive: s } = Se(), [d, u] = _.useState(!1), [m, p] = _.useState(""), S = _.useRef(null);
1160
- _.useEffect(() => {
1161
- d && (p(t.description), S?.current?.focus());
1162
- }, [d]);
1163
- const g = () => {
1164
- u(!0), n(h.ON_TRANSACTION_DESCRIPTION_EDIT_CLICK), setTimeout(() => document.getElementById("transaction-description-input")?.focus(), 0);
1165
- }, C = async () => {
1166
- n(P.TRANSACTION_DETAILS_CLICK_DESCRIPTION, {
1167
- transaction_guid: t.guid
1168
- }), await i({ ...t, description: m }), u(!1), c(`${o.payee_title}: ${m}`), setTimeout(() => document.getElementById("transaction-description-edit-button")?.focus(), 0);
1169
- };
1170
- return /* @__PURE__ */ l(O, { className: "mx-txn-transaction-description", children: [
1171
- s,
1172
- d ? /* @__PURE__ */ l(Ze, { row: !0, children: [
1173
- /* @__PURE__ */ e(
1174
- De,
1175
- {
1176
- "aria-label": o.payee_title,
1177
- id: "transaction-description-input",
1178
- label: o.payee_title,
1179
- name: o.payee_title,
1180
- onChange: (L) => p(L.target.value),
1181
- ref: S,
1182
- sx: {
1183
- backgroundColor: "background.paper",
1184
- ".MuiOutlinedInput-root": { borderTopRightRadius: 0, borderBottomRightRadius: 0 },
1185
- ".MuiOutlinedInput-input": { p: 11 },
1186
- width: 250
1187
- },
1188
- value: m
1189
- }
1190
- ),
1191
- /* @__PURE__ */ e(
1192
- de,
1193
- {
1194
- disabled: !m,
1195
- onClick: C,
1196
- sx: {
1197
- borderTopLeftRadius: 0,
1198
- borderBottomLeftRadius: 0
1199
- },
1200
- variant: "outlined",
1201
- children: a.save_button
1202
- }
1203
- )
1204
- ] }) : /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 4, sx: { minHeight: 44 }, children: [
1205
- /* @__PURE__ */ e(T, { bold: !0, children: t.description }),
1206
- !r && /* @__PURE__ */ e(
1207
- ae,
1208
- {
1209
- "aria-label": o.payee_edit,
1210
- id: "transaction-description-edit-button",
1211
- onClick: g,
1212
- sx: { color: "action.active" },
1213
- children: /* @__PURE__ */ e(f, { name: "create", size: 22 })
1214
- }
1215
- )
1216
- ] })
1217
- ] });
1218
- }, Ht = x(Ft), zt = ({ transaction: t }) => {
1219
- const { updateTransaction: r } = D(), { transactions: i } = I(), { onEvent: a } = w(), o = Ee(), n = async () => {
1220
- a(P.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: t.guid }), await r({ ...t, is_flagged: !t.is_flagged });
1221
- };
1222
- return /* @__PURE__ */ e("div", { className: "mx-txn-transaction-flag", children: /* @__PURE__ */ e(
1223
- Je,
1224
- {
1225
- "aria-label": i.flag_btn_aria,
1226
- "aria-pressed": t.is_flagged,
1227
- color: "warning",
1228
- onClick: n,
1229
- selected: t.is_flagged,
1230
- sx: {
1231
- borderRadius: 6,
1232
- color: o.palette.secondary.main,
1233
- "&.Mui-selected": {
1234
- color: o.palette.common.white,
1235
- backgroundColor: o.palette.warning.dark,
1236
- ":hover": {
1237
- color: o.palette.common.white,
1238
- backgroundColor: o.palette.warning.main
1239
- }
1240
- },
1241
- ":hover": {
1242
- color: o.palette.warning.contrastText,
1243
- backgroundColor: o.palette.warning.light
1244
- }
1245
- },
1246
- value: "flagged",
1247
- children: /* @__PURE__ */ e(je, { color: "inherit" })
1248
- }
1249
- ) });
1250
- }, Ut = x(zt), oe = (t, r, i, a = !0, o = "inset") => a ? /* @__PURE__ */ l(_.Fragment, { children: [
1251
- /* @__PURE__ */ l(B, { disableGutters: !0, disablePadding: !0, children: [
1252
- /* @__PURE__ */ e($, { children: /* @__PURE__ */ e(z, { sx: { bgcolor: "border.light" }, variant: "rounded", children: t }) }),
1253
- /* @__PURE__ */ e(
1254
- M,
1255
- {
1256
- primary: r,
1257
- primaryTypographyProps: { variant: "XSmall" },
1258
- secondary: i
1259
- }
1260
- )
1261
- ] }),
1262
- /* @__PURE__ */ e(ee, { variant: o })
1263
- ] }) : null, Xt = ({ transaction: t }) => {
1264
- const { transactions: r } = I(), { tags: i } = D(), a = _.useMemo(() => {
1265
- const o = new Map(i.map((n) => [n.guid, n.name]));
1266
- return t.tags.map((n) => o.get(n)).filter(Boolean).join(" / ");
1267
- }, [i, t.tags]);
1268
- return /* @__PURE__ */ l(te, { sx: { "& .MuiListItem-root": { px: 24, py: 12 } }, children: [
1269
- oe(
1270
- /* @__PURE__ */ e(
1271
- Te,
1272
- {
1273
- categoryGuid: t.top_level_category_guid,
1274
- size: 24,
1275
- sx: { color: "text.primary" },
1276
- variant: xe.Transparent
1277
- }
1278
- ),
1279
- r.category_title,
1280
- /* @__PURE__ */ e(T, { bold: !0, variant: "Body", children: t.category ?? r.actions_select_a_category })
1281
- ),
1282
- oe(
1283
- /* @__PURE__ */ e(f, { name: "calendar_month", sx: { color: "text.primary" }, weight: v.Dark }),
1284
- r.date_title,
1285
- /* @__PURE__ */ e(T, { bold: !0, variant: "Body", children: Oe(j(t.date), we.YEAR_MONTH_DAY) })
1286
- ),
1287
- oe(
1288
- /* @__PURE__ */ e(f, { name: "article", sx: { color: "text.primary" }, weight: v.Dark }),
1289
- r.memo_title,
1290
- /* @__PURE__ */ e(T, { bold: !0, sx: { overflowWrap: "break-word", whiteSpace: "wrap" }, variant: "Body", children: t.memo ?? r.memo_desc }),
1291
- !!t.memo,
1292
- t.tags?.length > 0 ? "inset" : "fullWidth"
1293
- ),
1294
- oe(
1295
- /* @__PURE__ */ e(f, { name: "local_offer", sx: { color: "text.primary" }, weight: v.Dark }),
1296
- r.tags_title,
1297
- /* @__PURE__ */ e(T, { bold: !0, variant: "Body", children: t.tags?.length ? a : r.tags_desc }),
1298
- !!t.tags?.length,
1299
- "fullWidth"
1300
- )
1301
- ] });
1302
- }, Vt = x(Xt), Wt = ({
1303
- bottomActions: t = rt,
1304
- canFlagTransaction: r = !0,
1305
- topActions: i = nt,
1306
- transaction: a
1307
- }) => {
1308
- const { onEvent: o } = w(), { isCopyLoaded: n } = ze(), { userFeatures: c } = Ue(), s = a?.number && a.number.length > 4;
1309
- if (_.useEffect(
1310
- () => o(P.TRANSACTION_DETAILS_VIEW, { transaction_guid: a.guid }),
1311
- []
1312
- ), !n)
1313
- return /* @__PURE__ */ e(ve, {});
1314
- const d = Fe(c, "MX_TXN_DETAILS_VIEW_ONLY");
1315
- return /* @__PURE__ */ e(O, { className: "mx-txn-transaction-details", width: "100%", children: a && /* @__PURE__ */ l(b, { children: [
1316
- /* @__PURE__ */ l(b, { gap: 12, p: 24, children: [
1317
- /* @__PURE__ */ e(ie, { elevation: 2, sx: { width: 64 }, children: /* @__PURE__ */ e(
1318
- he,
1319
- {
1320
- categoryGuid: a.top_level_category_guid || "",
1321
- merchantGuid: a.merchant_guid || "",
1322
- size: 64
1323
- }
1324
- ) }),
1325
- /* @__PURE__ */ e(Ht, { transaction: a, viewOnly: d }),
1326
- /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", sx: { minHeight: 44 }, children: [
1327
- /* @__PURE__ */ l(J, { color: a.isIncome ? "success.main" : "text.primary", variant: "H1", children: [
1328
- a.isIncome ? "+" : "",
1329
- re(a.amount, "0,0.00")
1330
- ] }),
1331
- !d && r && /* @__PURE__ */ e(Ut, { transaction: a })
1332
- ] }),
1333
- /* @__PURE__ */ l(b, { bgcolor: "background.highlight", borderRadius: "12px", gap: 4, p: 8, children: [
1334
- /* @__PURE__ */ e(T, { bold: !0, children: `${a.account}
1335
- ${s ? a.number : "•".repeat(4).concat(a.number ?? "")}` }),
1336
- /* @__PURE__ */ e(T, { bold: !0, color: "secondary", variant: "Tiny", children: a.feed_description })
1337
- ] })
1338
- ] }),
1339
- /* @__PURE__ */ e(ie, { square: !0, sx: { boxShadow: "none" }, children: d ? /* @__PURE__ */ e(Vt, { transaction: a }) : /* @__PURE__ */ e(te, { children: i.map((u, m) => /* @__PURE__ */ l(_.Fragment, { children: [
1340
- u === Q.Category && /* @__PURE__ */ e(gt, { transaction: a }),
1341
- u === Q.Date && /* @__PURE__ */ e(ht, { transaction: a }),
1342
- u === Q.Memo && /* @__PURE__ */ e(xt, { transaction: a }),
1343
- u === Q.Tags && /* @__PURE__ */ e(Bt, { transaction: a }),
1344
- /* @__PURE__ */ e(ee, { variant: m < i.length - 1 ? "inset" : "fullWidth" })
1345
- ] }, u)) }) }),
1346
- !d && t.length > 0 && /* @__PURE__ */ l(_.Fragment, { children: [
1347
- /* @__PURE__ */ e(T, { bold: !0, mb: 8, ml: 26, mt: 16, variant: "Body", children: "Actions" }),
1348
- /* @__PURE__ */ e(ie, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ l(te, { children: [
1349
- t.map((u, m) => /* @__PURE__ */ l(_.Fragment, { children: [
1350
- u === se.SplitTransaction && /* @__PURE__ */ e(Ot, { transaction: a }),
1351
- u === se.HideTransaction && /* @__PURE__ */ e(bt, { transaction: a }),
1352
- u === se.MerchantLogo && /* @__PURE__ */ e(Ct, { transaction: a }),
1353
- /* @__PURE__ */ e(ee, { variant: m < t.length - 1 ? "inset" : "fullWidth" })
1354
- ] }, u)),
1355
- a.is_manual && !a.parent_guid && !a.has_been_split && /* @__PURE__ */ e(yt, { transaction: a })
1356
- ] }) })
1357
- ] })
1358
- ] }) });
1359
- }, Ma = x(Wt);
1360
- export {
1361
- se as B,
1362
- gt as C,
1363
- ht as D,
1364
- xt as M,
1365
- dt as S,
1366
- Ga as T,
1367
- Ma as a,
1368
- ct as b,
1369
- Bt as c,
1370
- Q as d,
1371
- mt as h,
1372
- fe as s,
1373
- G as u
1374
- };