@mx-cartographer/experiences 9.1.0-alpha.bb1 → 9.1.0

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 (245) hide show
  1. package/CHANGELOG.md +75 -0
  2. package/README.md +10 -10
  3. package/dist/Account-DR7Plrqy.mjs +119 -0
  4. package/dist/Account-DR7Plrqy.mjs.map +1 -0
  5. package/dist/AccountDetailsDrawer-CZPeLsCq.mjs +922 -0
  6. package/dist/AccountDetailsDrawer-CZPeLsCq.mjs.map +1 -0
  7. package/dist/AccountDetailsHeader-BvbCUQSS.mjs +231 -0
  8. package/dist/AccountDetailsHeader-BvbCUQSS.mjs.map +1 -0
  9. package/dist/AccountUtils-B8ZzWI-d.mjs +28 -0
  10. package/dist/AccountUtils-B8ZzWI-d.mjs.map +1 -0
  11. package/dist/Analytics-CkYXKvco.mjs +54 -0
  12. package/dist/Analytics-CkYXKvco.mjs.map +1 -0
  13. package/dist/Analytics-WeZYytR0.mjs +140 -0
  14. package/dist/Analytics-WeZYytR0.mjs.map +1 -0
  15. package/dist/ApiEndpoints-DXwIYNUV.mjs +50 -0
  16. package/dist/ApiEndpoints-DXwIYNUV.mjs.map +1 -0
  17. package/dist/BeatMaterialIcon-1KOfRZrA.mjs +27 -0
  18. package/dist/BeatMaterialIcon-1KOfRZrA.mjs.map +1 -0
  19. package/dist/BudgetUtil-Bg2AQJpQ.mjs +75 -0
  20. package/dist/BudgetUtil-Bg2AQJpQ.mjs.map +1 -0
  21. package/dist/Category-DEKZGLYe.mjs +302 -0
  22. package/dist/Category-DEKZGLYe.mjs.map +1 -0
  23. package/dist/CategorySelectorDrawer-NJsFsKP1.mjs +431 -0
  24. package/dist/CategorySelectorDrawer-NJsFsKP1.mjs.map +1 -0
  25. package/dist/Connect-BH0Pt6zc.mjs +43 -0
  26. package/dist/Connect-BH0Pt6zc.mjs.map +1 -0
  27. package/dist/ConnectCard-D7uxoH5Y.mjs +55 -0
  28. package/dist/ConnectCard-D7uxoH5Y.mjs.map +1 -0
  29. package/dist/ConnectDrawer-CW4LA3H3.mjs +58 -0
  30. package/dist/ConnectDrawer-CW4LA3H3.mjs.map +1 -0
  31. package/dist/ConnectionsDrawer-CZU9ku-k.mjs +54 -0
  32. package/dist/ConnectionsDrawer-CZU9ku-k.mjs.map +1 -0
  33. package/dist/CurrencyDialog-DumQCTPO.mjs +374 -0
  34. package/dist/CurrencyDialog-DumQCTPO.mjs.map +1 -0
  35. package/dist/CurrencyInput-DaGEQaLW.mjs +88 -0
  36. package/dist/CurrencyInput-DaGEQaLW.mjs.map +1 -0
  37. package/dist/CurrencyText-CCbE6MmF.mjs +21 -0
  38. package/dist/CurrencyText-CCbE6MmF.mjs.map +1 -0
  39. package/dist/DateFormats-HudZ3Bjs.mjs +65 -0
  40. package/dist/DateFormats-HudZ3Bjs.mjs.map +1 -0
  41. package/dist/DateUtil-CzBmbjmA.mjs +75 -0
  42. package/dist/DateUtil-CzBmbjmA.mjs.map +1 -0
  43. package/dist/DebtUtils-i4pI2Uoe.mjs +154 -0
  44. package/dist/DebtUtils-i4pI2Uoe.mjs.map +1 -0
  45. package/dist/Dialog-Bvd2n8hz.mjs +67 -0
  46. package/dist/Dialog-Bvd2n8hz.mjs.map +1 -0
  47. package/dist/Donut-SzzfZDHF.mjs +89 -0
  48. package/dist/Donut-SzzfZDHF.mjs.map +1 -0
  49. package/dist/Drawer-DsnW2o0v.mjs +175 -0
  50. package/dist/Drawer-DsnW2o0v.mjs.map +1 -0
  51. package/dist/EmbeddedCard-DH8vQ3qN.mjs +859 -0
  52. package/dist/EmbeddedCard-DH8vQ3qN.mjs.map +1 -0
  53. package/dist/EmptyState-CJUDc3kD.mjs +85 -0
  54. package/dist/EmptyState-CJUDc3kD.mjs.map +1 -0
  55. package/dist/Error-Dtw6yxkf.mjs +85 -0
  56. package/dist/Error-Dtw6yxkf.mjs.map +1 -0
  57. package/dist/ErrorBoundary-CsdOcnJ9.mjs +24 -0
  58. package/dist/ErrorBoundary-CsdOcnJ9.mjs.map +1 -0
  59. package/dist/ExportCsvAction-C9KWH3Az.mjs +25 -0
  60. package/dist/ExportCsvAction-C9KWH3Az.mjs.map +1 -0
  61. package/dist/GlobalAccountFilter-BhzR5Vb1.mjs +230 -0
  62. package/dist/GlobalAccountFilter-BhzR5Vb1.mjs.map +1 -0
  63. package/dist/GlobalCopyApi-wcnDUzMV.mjs +129 -0
  64. package/dist/GlobalCopyApi-wcnDUzMV.mjs.map +1 -0
  65. package/dist/GoalsUtil-C9EnLWvC.mjs +108 -0
  66. package/dist/GoalsUtil-C9EnLWvC.mjs.map +1 -0
  67. package/dist/HeaderCell-P8w6CmfO.mjs +7 -0
  68. package/dist/HeaderCell-P8w6CmfO.mjs.map +1 -0
  69. package/dist/Help-CkQTjORd.mjs +300 -0
  70. package/dist/Help-CkQTjORd.mjs.map +1 -0
  71. package/dist/Help-aERwhajy.mjs +3210 -0
  72. package/dist/Help-aERwhajy.mjs.map +1 -0
  73. package/dist/IconBacking-DgT8DCeh.mjs +40 -0
  74. package/dist/IconBacking-DgT8DCeh.mjs.map +1 -0
  75. package/dist/InformationTooltip-4su8bn1e.mjs +42 -0
  76. package/dist/InformationTooltip-4su8bn1e.mjs.map +1 -0
  77. package/dist/InvestmentUtil-BItV7uEs.mjs +135 -0
  78. package/dist/InvestmentUtil-BItV7uEs.mjs.map +1 -0
  79. package/dist/LineChart-CUfiH86G.mjs +613 -0
  80. package/dist/LineChart-CUfiH86G.mjs.map +1 -0
  81. package/dist/ListItemAction-BqUCLj_w.mjs +70 -0
  82. package/dist/ListItemAction-BqUCLj_w.mjs.map +1 -0
  83. package/dist/ListItemRow-kH1rn8Xu.mjs +68 -0
  84. package/dist/ListItemRow-kH1rn8Xu.mjs.map +1 -0
  85. package/dist/ListItemWrapper-DRse79Iu.mjs +44 -0
  86. package/dist/ListItemWrapper-DRse79Iu.mjs.map +1 -0
  87. package/dist/Loader-CxeBwuPG.mjs +22 -0
  88. package/dist/Loader-CxeBwuPG.mjs.map +1 -0
  89. package/dist/Localization-DnoVyBNK.mjs +39 -0
  90. package/dist/Localization-DnoVyBNK.mjs.map +1 -0
  91. package/dist/ManageIncome-Dcsnnz86.mjs +906 -0
  92. package/dist/ManageIncome-Dcsnnz86.mjs.map +1 -0
  93. package/dist/MicroWidgetContainer-B2NnKBgW.mjs +46 -0
  94. package/dist/MicroWidgetContainer-B2NnKBgW.mjs.map +1 -0
  95. package/dist/MiniWidgetContainer-Bmv_WeUd.mjs +67 -0
  96. package/dist/MiniWidgetContainer-Bmv_WeUd.mjs.map +1 -0
  97. package/dist/NetWorthUtils-DfSH3z70.mjs +96 -0
  98. package/dist/NetWorthUtils-DfSH3z70.mjs.map +1 -0
  99. package/dist/Notification-DTNYSd8P.mjs +8 -0
  100. package/dist/Notification-DTNYSd8P.mjs.map +1 -0
  101. package/dist/NotificationSettings-CW7okUrk.mjs +678 -0
  102. package/dist/NotificationSettings-CW7okUrk.mjs.map +1 -0
  103. package/dist/NotificationUtils-BRGFTePr.mjs +24 -0
  104. package/dist/NotificationUtils-BRGFTePr.mjs.map +1 -0
  105. package/dist/NumberFormatting--XMeeBfr.mjs +50 -0
  106. package/dist/NumberFormatting--XMeeBfr.mjs.map +1 -0
  107. package/dist/OriginalBalanceAction-YrvxBYAl.mjs +115 -0
  108. package/dist/OriginalBalanceAction-YrvxBYAl.mjs.map +1 -0
  109. package/dist/RecurringSettings-D8hBbXV_.mjs +89 -0
  110. package/dist/RecurringSettings-D8hBbXV_.mjs.map +1 -0
  111. package/dist/RecurringTransactionsUtil-CHWmqvW5.mjs +299 -0
  112. package/dist/RecurringTransactionsUtil-CHWmqvW5.mjs.map +1 -0
  113. package/dist/ResponsiveButton-CC9F_Ezk.mjs +46 -0
  114. package/dist/ResponsiveButton-CC9F_Ezk.mjs.map +1 -0
  115. package/dist/SearchBox-Cpgu_gdO.mjs +51 -0
  116. package/dist/SearchBox-Cpgu_gdO.mjs.map +1 -0
  117. package/dist/Select-CSpkK5cR.mjs +62 -0
  118. package/dist/Select-CSpkK5cR.mjs.map +1 -0
  119. package/dist/SelectionBox-B4xELRgp.mjs +49 -0
  120. package/dist/SelectionBox-B4xELRgp.mjs.map +1 -0
  121. package/dist/SingleSegmentDonut-7Uy6VEld.mjs +70 -0
  122. package/dist/SingleSegmentDonut-7Uy6VEld.mjs.map +1 -0
  123. package/dist/Sizes-DISGrlUg.mjs +7 -0
  124. package/dist/Sizes-DISGrlUg.mjs.map +1 -0
  125. package/dist/SkeletonLoader-BaNboJjD.mjs +39 -0
  126. package/dist/SkeletonLoader-BaNboJjD.mjs.map +1 -0
  127. package/dist/SpendingData-Fii_xATx.mjs +54 -0
  128. package/dist/SpendingData-Fii_xATx.mjs.map +1 -0
  129. package/dist/SpendingLegend-CxvNOg3c.mjs +204 -0
  130. package/dist/SpendingLegend-CxvNOg3c.mjs.map +1 -0
  131. package/dist/StatusBar-CPfSXe80.mjs +31 -0
  132. package/dist/StatusBar-CPfSXe80.mjs.map +1 -0
  133. package/dist/TabContentContainer-B0eYJP5p.mjs +49 -0
  134. package/dist/TabContentContainer-B0eYJP5p.mjs.map +1 -0
  135. package/dist/ToggleListItem-Dl1lXNwj.mjs +92 -0
  136. package/dist/ToggleListItem-Dl1lXNwj.mjs.map +1 -0
  137. package/dist/TransactionDetails-roZ5xLq8.mjs +1708 -0
  138. package/dist/TransactionDetails-roZ5xLq8.mjs.map +1 -0
  139. package/dist/TransactionUtils-BphBJBbU.mjs +235 -0
  140. package/dist/TransactionUtils-BphBJBbU.mjs.map +1 -0
  141. package/dist/TrendsUtil-D9z3kIj_.mjs +70 -0
  142. package/dist/TrendsUtil-D9z3kIj_.mjs.map +1 -0
  143. package/dist/UserStore-C1fdL3Iu.mjs +3054 -0
  144. package/dist/UserStore-C1fdL3Iu.mjs.map +1 -0
  145. package/dist/ViewMoreMicroCard-fnwE0hqd.mjs +1280 -0
  146. package/dist/ViewMoreMicroCard-fnwE0hqd.mjs.map +1 -0
  147. package/dist/WidgetContainer-DJnp6t6c.mjs +483 -0
  148. package/dist/WidgetContainer-DJnp6t6c.mjs.map +1 -0
  149. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsDrawer.d.ts +6 -0
  150. package/dist/accounts/index.d.ts +1 -0
  151. package/dist/accounts/index.es.js +784 -12
  152. package/dist/accounts/index.es.js.map +1 -0
  153. package/dist/analytics/index.es.js +140 -155
  154. package/dist/analytics/index.es.js.map +1 -0
  155. package/dist/budgets/index.es.js +1267 -1317
  156. package/dist/budgets/index.es.js.map +1 -0
  157. package/dist/cashflow/index.es.js +943 -1047
  158. package/dist/cashflow/index.es.js.map +1 -0
  159. package/dist/categories/index.es.js +5 -4
  160. package/dist/categories/index.es.js.map +1 -0
  161. package/dist/common/components/DataRow.d.ts +1 -0
  162. package/dist/common/components/ListItemWrapper.d.ts +2 -1
  163. package/dist/common/constants/Analytics.d.ts +3 -0
  164. package/dist/common/index.es.js +310 -101
  165. package/dist/common/index.es.js.map +1 -0
  166. package/dist/core/index.es.js +105 -80
  167. package/dist/core/index.es.js.map +1 -0
  168. package/dist/core/stores/RecurringTransactionsStore.d.ts +29 -1
  169. package/dist/core/stores/TransactionStore.d.ts +1 -0
  170. package/dist/core/types/localization/RecurringCopy.d.ts +14 -1
  171. package/dist/core/types/localization/SpendingCopy.d.ts +1 -0
  172. package/dist/core/utils/DateUtil.d.ts +2 -0
  173. package/dist/core/utils/RecurringTransactionsUtil.d.ts +2 -1
  174. package/dist/dashboard/index.es.js +142 -185
  175. package/dist/dashboard/index.es.js.map +1 -0
  176. package/dist/debts/index.es.js +1273 -1384
  177. package/dist/debts/index.es.js.map +1 -0
  178. package/dist/finstrong/index.es.js +3473 -3367
  179. package/dist/finstrong/index.es.js.map +1 -0
  180. package/dist/goals/index.es.js +984 -1103
  181. package/dist/goals/index.es.js.map +1 -0
  182. package/dist/help/index.es.js +26 -3
  183. package/dist/help/index.es.js.map +1 -0
  184. package/dist/hooks-97sNJ_lf.mjs +78 -0
  185. package/dist/hooks-97sNJ_lf.mjs.map +1 -0
  186. package/dist/insights/components/insights/WeeklyNoSpendDays/BubbleWeek.d.ts +4 -1
  187. package/dist/insights/components/insights/WeeklyNoSpendDays/WeeklyNoSpendDays.d.ts +4 -2
  188. package/dist/insights/index.es.js +4871 -93
  189. package/dist/insights/index.es.js.map +1 -0
  190. package/dist/investments/index.es.js +1523 -1533
  191. package/dist/investments/index.es.js.map +1 -0
  192. package/dist/merchants/index.es.js +65 -75
  193. package/dist/merchants/index.es.js.map +1 -0
  194. package/dist/microinsights/index.es.js +826 -15
  195. package/dist/microinsights/index.es.js.map +1 -0
  196. package/dist/networth/index.es.js +504 -550
  197. package/dist/networth/index.es.js.map +1 -0
  198. package/dist/notifications/index.es.js +162 -169
  199. package/dist/notifications/index.es.js.map +1 -0
  200. package/dist/recurringtransactions/components/RecurringTransactionDetails.d.ts +3 -2
  201. package/dist/recurringtransactions/components/RecurringTransactionDetailsDrawer.d.ts +3 -0
  202. package/dist/recurringtransactions/components/RecurringTransactionList.d.ts +11 -0
  203. package/dist/recurringtransactions/components/UpcomingRecurrenceCard.d.ts +8 -0
  204. package/dist/recurringtransactions/components/actions/LinkTransactionDrawer.d.ts +10 -0
  205. package/dist/recurringtransactions/components/actions/MarkAsPaidDialog.d.ts +7 -0
  206. package/dist/recurringtransactions/components/actions/MarkAsUnpaidDialog.d.ts +7 -0
  207. package/dist/recurringtransactions/index.es.js +1012 -10
  208. package/dist/recurringtransactions/index.es.js.map +1 -0
  209. package/dist/settings/index.es.js +892 -13
  210. package/dist/settings/index.es.js.map +1 -0
  211. package/dist/spending/index.es.js +457 -400
  212. package/dist/spending/index.es.js.map +1 -0
  213. package/dist/transactions/components/shared/transactionlist/TransactionRow.d.ts +1 -0
  214. package/dist/transactions/index.es.js +604 -10
  215. package/dist/transactions/index.es.js.map +1 -0
  216. package/dist/trends/index.es.js +1408 -1268
  217. package/dist/trends/index.es.js.map +1 -0
  218. package/dist/useAccountDisplayName-BsiXA0qf.mjs +24 -0
  219. package/dist/useAccountDisplayName-BsiXA0qf.mjs.map +1 -0
  220. package/dist/useAriaLive-MkYebyUR.mjs +36 -0
  221. package/dist/useAriaLive-MkYebyUR.mjs.map +1 -0
  222. package/dist/useDimensions-CeDR9V8N.mjs +37 -0
  223. package/dist/useDimensions-CeDR9V8N.mjs.map +1 -0
  224. package/dist/useInsightsEnabled-D5Sdm0TJ.mjs +12 -0
  225. package/dist/useInsightsEnabled-D5Sdm0TJ.mjs.map +1 -0
  226. package/dist/useScreenSize-mWpmnh5w.mjs +37 -0
  227. package/dist/useScreenSize-mWpmnh5w.mjs.map +1 -0
  228. package/dist/useWidgetLoadTimer-B0tB-yzL.mjs +20 -0
  229. package/dist/useWidgetLoadTimer-B0tB-yzL.mjs.map +1 -0
  230. package/package.json +30 -30
  231. package/dist/Analytics-BKzTPees.mjs +0 -61
  232. package/dist/GlobalCopyApi-BeXzaDH9.mjs +0 -487
  233. package/dist/HeaderCell-EhCUSjvj.mjs +0 -10
  234. package/dist/Loader-BlVzRtUd.mjs +0 -73
  235. package/dist/MiniWidgetContainer-COwnjfy7.mjs +0 -110
  236. package/dist/OriginalBalanceAction-sbiqaxok.mjs +0 -110
  237. package/dist/SpendingLegend-D15ixlQ1.mjs +0 -222
  238. package/dist/accounts-DkyAiLpg.mjs +0 -15632
  239. package/dist/core-BexP5oiV.mjs +0 -4047
  240. package/dist/help-CctDYrAH.mjs +0 -2308
  241. package/dist/insights/components/insights/P2pCategorization/_tests_/P2pCategorizationMultipleTransaction.test.d.ts +0 -0
  242. package/dist/insights/components/insights/P2pCategorization/_tests_/P2pCategorizationSingleTransaction.test.d.ts +0 -0
  243. package/dist/microinsights-CRf3ChsJ.mjs +0 -1814
  244. package/dist/recurringtransactions-gbJ_NA8u.mjs +0 -1564
  245. package/dist/settings-ZMHe439l.mjs +0 -1526
@@ -1,12 +1,606 @@
1
- import { $t as s, Qt as t, an as n, c as o, in as i, on as r, rn as c, s as e, sn as T } from "../accounts-DkyAiLpg.mjs";
1
+ import { C as Be, D as He, M as Pe, a as We, T as $e } from "../TransactionDetails-roZ5xLq8.mjs";
2
+ import { B as xa, b as Aa } from "../TransactionDetails-roZ5xLq8.mjs";
3
+ import { u as B, T as Ge } from "../EmbeddedCard-DH8vQ3qN.mjs";
4
+ import { a as Sa } from "../EmbeddedCard-DH8vQ3qN.mjs";
5
+ import { E as va } from "../ExportCsvAction-C9KWH3Az.mjs";
6
+ import { jsxs as m, jsx as e } from "react/jsx-runtime";
7
+ import u from "react";
8
+ import { observer as D } from "mobx-react-lite";
9
+ import Ve from "@mui/material/Paper";
10
+ import { DataGridPro as Fe } from "@mui/x-data-grid-pro";
11
+ import { g as H, u as v, f as ne, a as K, c as oe, l as Ue, i as Ke, C as ze } from "../hooks-97sNJ_lf.mjs";
12
+ import { L as z } from "../Loader-CxeBwuPG.mjs";
13
+ import { Text as y, Icon as R, MerchantLogo as qe, TextField as Z, P as Ye } from "@mxenabled/mxui";
14
+ import w from "@mui/material/Stack";
15
+ import { f as re } from "../NumberFormatting--XMeeBfr.mjs";
16
+ import { T as k, e as je, D as Xe } from "../TransactionUtils-BphBJBbU.mjs";
17
+ import S from "@mui/material/Box";
18
+ import { useTheme as ie } from "@mui/material/styles";
19
+ import { fromUnixTime as Je } from "date-fns/fromUnixTime";
20
+ import { f as Qe, D as Ze } from "../DateFormats-HudZ3Bjs.mjs";
21
+ import { A } from "../Analytics-WeZYytR0.mjs";
22
+ import { endOfMonth as et } from "date-fns/endOfMonth";
23
+ import { getUnixTime as tt } from "date-fns/getUnixTime";
24
+ import { startOfMonth as at } from "date-fns/startOfMonth";
25
+ import { startOfToday as F } from "date-fns/startOfToday";
26
+ import { b as U } from "../Localization-DnoVyBNK.mjs";
27
+ import { C as nt } from "../ConnectDrawer-CW4LA3H3.mjs";
28
+ import ot from "@mui/material/Divider";
29
+ import rt from "@mui/material/MenuItem";
30
+ import it from "@mui/material/RadioGroup";
31
+ import { ExpandMore as st } from "@mxenabled/mx-icons";
32
+ import { C as ct } from "../CurrencyInput-DaGEQaLW.mjs";
33
+ import { S as ee } from "../SelectionBox-B4xELRgp.mjs";
34
+ import { D as se } from "../Dialog-Bvd2n8hz.mjs";
35
+ import { b as lt, u as dt } from "../CategorySelectorDrawer-NJsFsKP1.mjs";
36
+ import { u as ut } from "../useAriaLive-MkYebyUR.mjs";
37
+ import { S as mt } from "../SkeletonLoader-BaNboJjD.mjs";
38
+ import { u as _t } from "../useScreenSize-mWpmnh5w.mjs";
39
+ import { u as pt } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
40
+ import { W as gt } from "../WidgetContainer-DJnp6t6c.mjs";
41
+ import { S as ht } from "../SearchBox-Cpgu_gdO.mjs";
42
+ import { D as te } from "../Drawer-DsnW2o0v.mjs";
43
+ const ft = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2", children: [
44
+ `${t.row.account}`,
45
+ t.row.number && ` | ${t.row.number}`
46
+ ] }), Ct = (t) => {
47
+ const { associatedBeats: r } = H(), { showInsights: i } = B(), { amount: a, transaction_type: s } = t.row, c = r.find((p) => p.associated_transaction_guid === t.row.guid), l = s === k.CREDIT;
48
+ return /* @__PURE__ */ m(w, { alignItems: "flex-end", tabIndex: t.tabIndex, children: [
49
+ /* @__PURE__ */ m(y, { bold: l, color: l ? "success.main" : "text.primary", variant: "body2", children: [
50
+ l ? "+" : "",
51
+ re(a, "0,0.00")
52
+ ] }),
53
+ c && i && /* @__PURE__ */ e(y, { bold: !0, color: "primary.light", variant: "caption", children: c.short_title })
54
+ ] });
55
+ }, yt = (t) => {
56
+ const { transactions: r } = v(), [i, a] = u.useState(!1);
57
+ return /* @__PURE__ */ m(
58
+ w,
59
+ {
60
+ alignItems: "center",
61
+ direction: "row",
62
+ gap: 8,
63
+ height: "100%",
64
+ onMouseEnter: () => a(!0),
65
+ onMouseLeave: () => a(!1),
66
+ width: "100%",
67
+ children: [
68
+ t.row.has_been_split && /* @__PURE__ */ e(R, { name: "call_split", size: 16 }),
69
+ /* @__PURE__ */ e(y, { tabIndex: t.tabIndex, variant: "body2", children: t.row.has_been_split ? r.split_transaction_category_label : t.row.category }),
70
+ !t.row.has_been_split && i && /* @__PURE__ */ e(R, { name: "edit", sx: { color: "action.active" } })
71
+ ]
72
+ }
73
+ );
74
+ }, bt = D(yt), Tt = (t) => /* @__PURE__ */ e(y, { tabIndex: t.tabIndex, variant: "body2", children: Qe(Je(t.row.date), Ze.MONTH_DAY) }), xt = (t) => {
75
+ const r = ie(), i = r.palette.mode === "dark", { transactions: a } = v(), { is_flagged: s, is_hidden: c, has_been_viewed: l, parent_guid: p } = t.row, f = !l && !!!p;
76
+ return /* @__PURE__ */ m(
77
+ S,
78
+ {
79
+ "aria-label": c ? a.is_excluded : a.is_flagged,
80
+ tabIndex: t.tabIndex,
81
+ children: [
82
+ s && /* @__PURE__ */ e(
83
+ R,
84
+ {
85
+ fill: !0,
86
+ name: "flag",
87
+ size: 16,
88
+ sx: { color: i ? "primary.main" : "warning.dark" }
89
+ }
90
+ ),
91
+ !s && c && /* @__PURE__ */ e(R, { name: "visibility_off", size: 16 }),
92
+ f && /* @__PURE__ */ e(
93
+ "svg",
94
+ {
95
+ "data-testid": "svg",
96
+ style: {
97
+ display: "inline-block",
98
+ height: 16,
99
+ fill: r.palette.primary.light,
100
+ verticalAlign: "middle",
101
+ width: 16
102
+ },
103
+ viewBox: "0 0 512 512",
104
+ children: /* @__PURE__ */ e("circle", { cx: "256", cy: "256", r: "60" })
105
+ }
106
+ )
107
+ ]
108
+ }
109
+ );
110
+ }, At = D(xt), E = (t) => /* @__PURE__ */ e(y, { fontWeight: 600, variant: "body2", children: t.colDef.headerName }), wt = (t) => /* @__PURE__ */ m(w, { alignItems: "center", direction: "row", gap: 8, children: [
111
+ /* @__PURE__ */ e(
112
+ qe,
113
+ {
114
+ categoryGuid: t.row.top_level_category_guid || "",
115
+ merchantGuid: t.row.merchant_guid || ""
116
+ }
117
+ ),
118
+ /* @__PURE__ */ m(w, { alignItems: "flex-start", direction: "column", children: [
119
+ /* @__PURE__ */ e(y, { tabIndex: t.tabIndex, variant: "body2", children: t.row.payee }),
120
+ t.row.is_hidden && /* @__PURE__ */ e(y, { variant: "caption", children: t.excludedText })
121
+ ] })
122
+ ] }), St = ({
123
+ height: t = "100dvh",
124
+ onCategoryClick: r,
125
+ onRowClick: i
126
+ }) => {
127
+ const { onEvent: a } = ne(), { transactions: s } = v(), { isCopyLoaded: c } = K(), { isLoading: l, sortedTransactions: p } = H(), { clearExpandedSplits: b, toggleSplit: f } = B();
128
+ u.useEffect(() => () => b(), []);
129
+ const C = u.useMemo(
130
+ () => p.map((o) => ({
131
+ id: o.guid,
132
+ isHovering: !1,
133
+ ...o
134
+ })),
135
+ [p]
136
+ ), h = ({ row: { id: o, guid: _, has_been_split: n }, field: N }) => n ? f(o) : N === "category" ? (a(A.TRANSACTIONS_TABLE_CLICK_CATEGORY, { guid: _ }), r?.(_)) : i?.(_), I = (o, _) => {
137
+ _.key !== "Enter" && _.key !== " " || h(o);
138
+ };
139
+ if (!c)
140
+ return /* @__PURE__ */ e(z, {});
141
+ const g = [
142
+ {
143
+ field: "flag",
144
+ headerName: "",
145
+ minWidth: 32,
146
+ width: 32,
147
+ sortable: !1,
148
+ renderCell: (o) => /* @__PURE__ */ e(At, { ...o }),
149
+ renderHeader: () => /* @__PURE__ */ e("span", { "aria-label": s.transaction_status, role: "presentation" })
150
+ },
151
+ {
152
+ field: "date",
153
+ headerName: s.date_title,
154
+ width: 103,
155
+ renderHeader: E,
156
+ renderCell: (o) => o.row.parent_guid ? null : /* @__PURE__ */ e(Tt, { ...o }),
157
+ sortingOrder: ["desc", "asc"]
158
+ },
159
+ {
160
+ cellClassName: "vertical-align-center",
161
+ field: "payee",
162
+ headerName: s.payee_title,
163
+ flex: 0.33,
164
+ renderHeader: E,
165
+ renderCell: (o) => /* @__PURE__ */ e(wt, { ...o, excludedText: s.is_excluded }),
166
+ sortingOrder: ["asc", "desc"]
167
+ },
168
+ {
169
+ field: "category",
170
+ headerName: s.category_title,
171
+ flex: 0.25,
172
+ renderHeader: E,
173
+ renderCell: (o) => /* @__PURE__ */ e(bt, { ...o }),
174
+ sortingOrder: ["asc", "desc"]
175
+ },
176
+ {
177
+ field: "account",
178
+ headerName: s.account_title,
179
+ flex: 0.33,
180
+ renderHeader: E,
181
+ renderCell: (o) => o.row.parent_guid ? null : /* @__PURE__ */ e(ft, { ...o }),
182
+ sortingOrder: ["asc", "desc"]
183
+ },
184
+ {
185
+ field: "amount",
186
+ headerName: s.amount_title,
187
+ flex: 0.25,
188
+ renderHeader: E,
189
+ renderCell: Ct,
190
+ align: "right",
191
+ headerAlign: "right",
192
+ sortingOrder: ["asc", "desc"]
193
+ }
194
+ ];
195
+ return /* @__PURE__ */ e(Ve, { sx: { height: t, px: 24, width: "100%", boxShadow: "none" }, children: /* @__PURE__ */ e(
196
+ Fe,
197
+ {
198
+ columns: g,
199
+ disableColumnFilter: !0,
200
+ disableColumnMenu: !0,
201
+ getCellClassName: (o) => o.row.parent_guid ? "split-row" : o.row.is_hidden ? "excluded-row" : "",
202
+ hideFooter: !0,
203
+ initialState: { sorting: { sortModel: [{ field: "date", sort: "desc" }] } },
204
+ loading: l,
205
+ onCellClick: h,
206
+ onCellKeyDown: I,
207
+ rows: C,
208
+ slotProps: { baseIconButton: { color: "secondary", sx: { ml: 8 } } },
209
+ sx: {
210
+ "& .split-row": {
211
+ bgcolor: "background.default"
212
+ },
213
+ "& .excluded-row": {
214
+ bgcolor: "grey.50",
215
+ color: "text.secondary"
216
+ }
217
+ }
218
+ }
219
+ ) });
220
+ }, Dt = D(St), vt = () => {
221
+ const { visibleAccounts: t } = oe(), { common: r, transactions: i } = v(), { manualTransaction: a, setIsAmountValid: s, updateManualTransaction: c } = B(), [l, p] = u.useState(""), [b, f] = u.useState(""), C = u.useMemo(
222
+ () => t.filter((n) => n.is_manual),
223
+ [t]
224
+ ).map((n) => ({
225
+ label: `${n.name} | ${re(n.balance, "0,0.00")}`,
226
+ value: n.guid
227
+ })), h = {
228
+ error_amount_is_invalid: r.currency_input.error_amount_is_invalid,
229
+ error_amount_must_be_equal_to: r.currency_input.error_amount_must_be_equal_to,
230
+ error_amount_must_be_less_than_or_equal_to: r.currency_input.error_amount_must_be_less_than_or_equal_to,
231
+ enter_amount: r.currency_input.enter_amount
232
+ }, I = (n) => {
233
+ p(n), c({ ...a, amount: Number(n) });
234
+ }, g = (n, N) => {
235
+ c({ ...a, transaction_type: Number(N) });
236
+ }, o = (n) => {
237
+ f(n), c({ ...a, payee: n, description: n });
238
+ }, _ = (n) => {
239
+ c({ ...a, account_guid: n });
240
+ };
241
+ return /* @__PURE__ */ m(S, { className: "mx-txn-manual-transaction-details", children: [
242
+ /* @__PURE__ */ m(w, { gap: 40, mx: 24, my: 32, children: [
243
+ /* @__PURE__ */ m(
244
+ w,
245
+ {
246
+ direction: "row",
247
+ sx: { flexDirection: { xs: "column", sm: "row" }, gap: { xs: 40, sm: 8 } },
248
+ children: [
249
+ /* @__PURE__ */ e(
250
+ ct,
251
+ {
252
+ allowDecimals: !0,
253
+ amount: l,
254
+ ariaLabel: i.amount_title,
255
+ copy: h,
256
+ label: i.amount_title,
257
+ setAmount: I,
258
+ setHasValidInput: s,
259
+ sx: { bgcolor: "background.paper" },
260
+ type: "number"
261
+ }
262
+ ),
263
+ /* @__PURE__ */ e(it, { name: "TransactionType", onChange: g, row: !0, children: /* @__PURE__ */ m(w, { alignItems: "center", direction: "row", children: [
264
+ /* @__PURE__ */ e(
265
+ ee,
266
+ {
267
+ checked: a.transaction_type === k.CREDIT,
268
+ label: i.manual_transaction_credit_button_label,
269
+ sx: { ml: { xs: 0, sm: 8 } },
270
+ tooltip: i.manual_transaction_credit_button_tooltip,
271
+ value: k.CREDIT
272
+ }
273
+ ),
274
+ /* @__PURE__ */ e(
275
+ ee,
276
+ {
277
+ checked: a.transaction_type === k.DEBIT,
278
+ label: i.manual_transaction_debit_button_label,
279
+ tooltip: i.manual_transaction_debit_button_tooltip,
280
+ value: k.DEBIT
281
+ }
282
+ )
283
+ ] }) })
284
+ ]
285
+ }
286
+ ),
287
+ /* @__PURE__ */ e(
288
+ Z,
289
+ {
290
+ label: i.payee_title,
291
+ name: "payee",
292
+ onChange: (n) => o(n.target.value),
293
+ sx: { bgcolor: "background.paper" },
294
+ value: b
295
+ }
296
+ ),
297
+ /* @__PURE__ */ e(
298
+ Z,
299
+ {
300
+ label: i.manual_transaction_select_an_account,
301
+ onChange: (n) => _(n.target.value),
302
+ placeholder: i.manual_transaction_select,
303
+ select: !0,
304
+ slotProps: {
305
+ inputLabel: { shrink: !0 },
306
+ select: { defaultValue: -1, IconComponent: st }
307
+ },
308
+ sx: { bgcolor: "background.paper" },
309
+ children: C.map((n) => /* @__PURE__ */ e(rt, { value: n.value, children: n.label }, n.value))
310
+ }
311
+ )
312
+ ] }),
313
+ /* @__PURE__ */ e(ot, { light: !0 }),
314
+ /* @__PURE__ */ m(S, { bgcolor: "background.paper", children: [
315
+ /* @__PURE__ */ e(Be, { transaction: a }),
316
+ /* @__PURE__ */ e(He, { transaction: a }),
317
+ /* @__PURE__ */ e(Pe, { transaction: a }),
318
+ /* @__PURE__ */ e(We, { transaction: a })
319
+ ] })
320
+ ] });
321
+ }, It = D(vt), Nt = ({ copy: t, isOpen: r, onClose: i, onPrimaryAction: a }) => {
322
+ const { common: s, transactions: c } = v(), { isCopyLoaded: l } = K();
323
+ return l ? /* @__PURE__ */ m(
324
+ se,
325
+ {
326
+ copy: {
327
+ title: t.title
328
+ },
329
+ isOpen: r,
330
+ onClose: i,
331
+ onPrimaryAction: a,
332
+ primaryText: c.add_manual_account,
333
+ secondaryText: s.cancel_button,
334
+ children: [
335
+ /* @__PURE__ */ e(y, { component: "p", sx: { marginBottom: "20px" }, truncate: !1, children: c.add_account_modal_message }),
336
+ /* @__PURE__ */ e(y, { component: "p", truncate: !1, children: c.add_account_modal_cta })
337
+ ]
338
+ }
339
+ ) : /* @__PURE__ */ e(z, {});
340
+ }, Et = D(Nt), kt = ({ onClose: t, transaction: r }) => {
341
+ const { addOrUpdateTransactionRule: i, updateTransaction: a } = H(), { transactions: s } = v(), { categories: c } = Ue(), [l, p] = u.useState(""), b = u.useMemo(
342
+ () => c.find((C) => C.guid === l),
343
+ [l]
344
+ ), f = async (C) => {
345
+ await a({ ...r, category_guid: l }), C && await i(l, r), p(""), t();
346
+ };
347
+ return /* @__PURE__ */ m(S, { className: "mx-txn-edit-category-action", children: [
348
+ /* @__PURE__ */ e(
349
+ lt,
350
+ {
351
+ initialSelected: r.category_guid,
352
+ onClose: t,
353
+ onSelect: (C) => p(C),
354
+ showDrawer: !!r,
355
+ title: s.actions_select_a_category
356
+ }
357
+ ),
358
+ /* @__PURE__ */ e(
359
+ se,
360
+ {
361
+ copy: {
362
+ title: U(
363
+ s.actions_apply_to_all_transaction_types,
364
+ r.description
365
+ )
366
+ },
367
+ isOpen: !!l,
368
+ onClose: () => f(!1),
369
+ onPrimaryAction: () => f(!0),
370
+ onSecondaryAction: () => f(!1),
371
+ primaryText: s.actions_apply_to_all,
372
+ secondaryText: s.actions_this_time_only,
373
+ children: /* @__PURE__ */ e(Ye, { variant: "subtitle1", children: U(
374
+ s.actions_all_past_and_future,
375
+ r.description,
376
+ b?.name
377
+ ) })
378
+ }
379
+ )
380
+ ] });
381
+ }, Ot = D(kt), ae = 120, Lt = ({
382
+ onBackClick: t,
383
+ onMenuClick: r,
384
+ height: i = "100dvh",
385
+ showInsights: a = !1,
386
+ sx: s = {}
387
+ }) => {
388
+ const { manualAccounts: c, refreshAccounts: l } = oe(), { is_mobile_webview: p, clientConfig: b, config: f } = Ke(), { setSearchValue: C } = dt(), { onEvent: h } = ne(), { common: I, transactions: g } = v(), { displayedDateRange: o, isInitialized: _, selectedAccountGuids: n, setDisplayedDate: N } = K(), { isDesktop: ce, isTablet: le } = _t(), O = ie(), {
389
+ addTransaction: de,
390
+ filter: ue,
391
+ isTransactionDataLoaded: P,
392
+ loadTransactionData: me,
393
+ setFilter: q,
394
+ sortedTransactions: Y,
395
+ sortedTransactionsWithSplits: _e,
396
+ tags: pe,
397
+ detailedTransactions: ge,
398
+ updateTransaction: he
399
+ } = H(), {
400
+ clearExpandedSplits: fe,
401
+ isAmountValid: Ce,
402
+ manualTransaction: L,
403
+ searchValue: j,
404
+ setSearchValue: ye,
405
+ setShowInsights: be,
406
+ updateManualTransaction: Te
407
+ } = B(), { userProfile: xe } = ze(), [W, T] = u.useState(""), [X, M] = u.useState(""), [Ae, $] = u.useState(!1), [we, J] = u.useState(!1), { announce: Se, ariaLive: De } = ut(), G = b?.transactions?.selected_account_guid;
408
+ pt({
409
+ widgetName: "TransactionWidget",
410
+ isLoaded: P
411
+ }), u.useEffect(() => {
412
+ P || me().finally();
413
+ const d = at(F()), Re = et(F());
414
+ N(d, Re), h(A.TRANSACTIONS_VIEW);
415
+ }, []), u.useEffect(() => {
416
+ _ && q({
417
+ accounts: G ? [G] : n,
418
+ dateRange: { start: o.start, end: o.end },
419
+ searchTerm: j
420
+ });
421
+ }, [_, o, n]), u.useEffect(() => {
422
+ be(a);
423
+ }, [a]), u.useEffect(() => {
424
+ _ && Se(
425
+ U(g.showing_transactions_count, Y.length)
426
+ );
427
+ }, [_, Y]);
428
+ const x = X ? ge.find((d) => d.guid === X) : void 0, Q = Ce && !!L.payee && !!L.account_guid && !!L.category_guid, ve = (d) => {
429
+ fe(), N(d[0], d[1]);
430
+ }, Ie = (d) => {
431
+ ye(d), q({
432
+ ...ue,
433
+ searchTerm: d
434
+ }), h(A.TRANSACTIONS_CLICK_SEARCH, { search_term: d });
435
+ }, Ne = () => {
436
+ je(_e, pe), h(A.TRANSACTIONS_CLICK_EXPORT);
437
+ }, Ee = () => {
438
+ c.length > 0 ? (Te({
439
+ ...Xe,
440
+ date: tt(F()),
441
+ user_guid: xe?.user_guid || ""
442
+ }), T(
443
+ "addTransaction"
444
+ /* AddTransaction */
445
+ ), h(A.TRANSACTIONS_CLICK_ADD)) : ($(!0), h(A.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
446
+ }, ke = async () => {
447
+ Q && await de(L), T("");
448
+ }, Oe = () => {
449
+ $(!1), J(!0);
450
+ }, Le = async () => {
451
+ J(!1), await l();
452
+ }, Me = async () => {
453
+ x && !x.has_been_viewed && await he({ ...x, has_been_viewed: !0 }), T("");
454
+ };
455
+ if (!_)
456
+ return /* @__PURE__ */ e(z, {});
457
+ const V = [];
458
+ return !p && (ce || le) && V.push({
459
+ iconName: "open_in_new",
460
+ label: g.export_csv_btn,
461
+ onClick: Ne
462
+ }), f.show_connections_widget_in_master && V.push({
463
+ iconName: "add",
464
+ label: g.add_transaction_btn,
465
+ onClick: Ee
466
+ }), /* @__PURE__ */ m(
467
+ gt,
468
+ {
469
+ actions: V,
470
+ calendarActions: {
471
+ onRangeChanged: ve
472
+ },
473
+ hasDivider: !0,
474
+ onAccountsFilterClick: () => h(A.ACCOUNTS_CLICK_FILTER),
475
+ onBackClick: t,
476
+ onMenuClick: r,
477
+ showAccountFilter: !G,
478
+ sx: s,
479
+ title: g.transactions_title,
480
+ children: [
481
+ P ? /* @__PURE__ */ m(w, { children: [
482
+ De,
483
+ /* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(
484
+ ht,
485
+ {
486
+ onChange: Ie,
487
+ placeholder: g.action_bar_search_placeholder,
488
+ searchValue: j
489
+ }
490
+ ) }),
491
+ /* @__PURE__ */ e(
492
+ S,
493
+ {
494
+ sx: {
495
+ [O.breakpoints.down("md")]: { display: "none" },
496
+ [O.breakpoints.up("md")]: { display: "block" }
497
+ },
498
+ children: /* @__PURE__ */ e(
499
+ Dt,
500
+ {
501
+ height: `calc(${i} - ${ae}px)`,
502
+ onCategoryClick: (d) => {
503
+ M(d), T(
504
+ "category"
505
+ /* Category */
506
+ );
507
+ },
508
+ onRowClick: (d) => {
509
+ M(d), T(
510
+ "transaction"
511
+ /* Transaction */
512
+ ), h(A.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: d });
513
+ }
514
+ }
515
+ )
516
+ }
517
+ ),
518
+ /* @__PURE__ */ e(
519
+ S,
520
+ {
521
+ sx: {
522
+ [O.breakpoints.down("md")]: { display: "block" },
523
+ [O.breakpoints.up("md")]: { display: "none" }
524
+ },
525
+ children: /* @__PURE__ */ e(
526
+ Ge,
527
+ {
528
+ height: `calc(${i} - ${ae}px)`,
529
+ onClick: (d) => {
530
+ M(d), T(
531
+ "transaction"
532
+ /* Transaction */
533
+ );
534
+ },
535
+ showInsights: a
536
+ }
537
+ )
538
+ }
539
+ )
540
+ ] }) : /* @__PURE__ */ e(mt, { sx: { m: 48 }, variant: "list" }),
541
+ /* @__PURE__ */ e(
542
+ te,
543
+ {
544
+ ariaLabelClose: I.close_aria,
545
+ isOpen: W === "transaction" && !!x,
546
+ onClose: Me,
547
+ title: g.details_title,
548
+ children: x && /* @__PURE__ */ e($e, { transaction: x })
549
+ }
550
+ ),
551
+ x && W === "category" && /* @__PURE__ */ e(
552
+ Ot,
553
+ {
554
+ onClose: () => {
555
+ C(""), T(""), M("");
556
+ },
557
+ transaction: x
558
+ }
559
+ ),
560
+ /* @__PURE__ */ e(
561
+ te,
562
+ {
563
+ ariaLabelClose: I.close_aria,
564
+ isOpen: W === "addTransaction",
565
+ isPrimaryDisabled: !Q,
566
+ onClose: () => T(""),
567
+ onPrimaryAction: ke,
568
+ title: g.add_transaction_title,
569
+ children: /* @__PURE__ */ e(It, {})
570
+ }
571
+ ),
572
+ /* @__PURE__ */ e(
573
+ Et,
574
+ {
575
+ copy: { title: g.add_manual_account },
576
+ isOpen: Ae,
577
+ onClose: () => {
578
+ $(!1);
579
+ },
580
+ onPrimaryAction: Oe
581
+ }
582
+ ),
583
+ /* @__PURE__ */ e(
584
+ nt,
585
+ {
586
+ onClose: Le,
587
+ showConnectWidget: we,
588
+ title: g.add_manual_account
589
+ }
590
+ )
591
+ ]
592
+ }
593
+ );
594
+ }, ya = D(Lt);
2
595
  export {
3
- r as BottomActions,
4
- i as ExportCsvAction,
5
- T as TopActions,
6
- o as TransactionDetails,
7
- s as TransactionList,
8
- c as TransactionRow,
9
- t as TransactionTable,
10
- e as TransactionWidget,
11
- n as useTransactionsUiStore
596
+ xa as BottomActions,
597
+ va as ExportCsvAction,
598
+ Aa as TopActions,
599
+ $e as TransactionDetails,
600
+ Ge as TransactionList,
601
+ Sa as TransactionRow,
602
+ Dt as TransactionTable,
603
+ ya as TransactionWidget,
604
+ B as useTransactionsUiStore
12
605
  };
606
+ //# sourceMappingURL=index.es.js.map