@mx-cartographer/experiences 8.0.0-alpha.sms2 → 9.0.0-alpha.mega1

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 (139) hide show
  1. package/CHANGELOG.md +217 -0
  2. package/dist/{Account-Cp30A3ad.mjs → Account-BIKn4XEZ.mjs} +1 -1
  3. package/dist/Account-CMjOp7S2.mjs +118 -0
  4. package/dist/AccountApi-DgZ8ILj1.mjs +19 -0
  5. package/dist/AccountDetailsHeader-BOV91g1o.mjs +95 -0
  6. package/dist/AccountDisplayName-CO7z3v99.mjs +11 -0
  7. package/dist/{AccountFields-CW6cIthP.mjs → AccountFields-BRRH37K1.mjs} +10 -11
  8. package/dist/{AccountListItem-DxmAs98Z.mjs → AccountListItem-Ds5C0mOT.mjs} +4 -4
  9. package/dist/{AccountStore-hIs-yA6W.mjs → AccountStore-BFKvXJSD.mjs} +79 -69
  10. package/dist/{Accounts-DUHkUyK4.mjs → Accounts-CuE8aSZN.mjs} +1 -1
  11. package/dist/{BudgetUtil-CIDAPPPT.mjs → BudgetUtil-CDSOZXem.mjs} +4 -4
  12. package/dist/CategorySelectorDrawer-C4aZYP4N.mjs +418 -0
  13. package/dist/CategoryStore-DEqAnHbi.mjs +186 -0
  14. package/dist/{CategoryUtil-DfVKKkRf.mjs → CategoryUtil-CFHBvaV4.mjs} +1 -1
  15. package/dist/{ConnectionsDrawer-CSo6AFkG.mjs → ConnectionsDrawer-BExzgE16.mjs} +5 -5
  16. package/dist/{CurrencyInput-BrGvhgVK.mjs → CurrencyInput-DDQ4DBrE.mjs} +1 -1
  17. package/dist/{CurrencyText-Dr0EZ7bp.mjs → CurrencyText-C-85TnUF.mjs} +3 -3
  18. package/dist/{DateUtil-CDPZw_-m.mjs → DateUtil-CVsMhbZU.mjs} +3 -3
  19. package/dist/{DebtsStore-hi1cqrRk.mjs → DebtsStore-Dv_T7Dts.mjs} +12 -12
  20. package/dist/{Dialog-CDV0kKxj.mjs → Dialog-CWymUiuO.mjs} +32 -35
  21. package/dist/Drawer-Bet2ZPJo.mjs +176 -0
  22. package/dist/{ExportCsvAction-CQ1grpwo.mjs → ExportCsvAction-oG_Mn66T.mjs} +3 -3
  23. package/dist/{FinstrongStore-dKZOZ2hM.mjs → FinstrongStore-BjFkMTIL.mjs} +6 -6
  24. package/dist/GlobalAccountFilter-BpWlPAl5.mjs +316 -0
  25. package/dist/{GoalStore-CFeAJloA.mjs → GoalStore-Dbjgft2i.mjs} +155 -137
  26. package/dist/{Help-i4OasOO-.mjs → Help-BW_ar-4B.mjs} +2 -2
  27. package/dist/LineChart-DHj-Bufi.mjs +580 -0
  28. package/dist/{ListItemAction-BNCWQAN_.mjs → ListItemAction-Cbr3417C.mjs} +10 -10
  29. package/dist/{ManageIncome-D_qVX5dN.mjs → ManageIncome-DIIyqDTp.mjs} +85 -85
  30. package/dist/{MicroWidgetContainer-BGpNl5ZS.mjs → MicroWidgetContainer-DSyYwRCU.mjs} +2 -2
  31. package/dist/{MiniWidgetContainer-D7MkHG15.mjs → MiniWidgetContainer-DKn7ndO6.mjs} +1 -1
  32. package/dist/NetWorthStore-B6ziBtaH.mjs +168 -0
  33. package/dist/NotificationSettings-e789PcRb.mjs +676 -0
  34. package/dist/{OriginalBalanceAction-62e0mU_3.mjs → OriginalBalanceAction-DFoG79Ba.mjs} +3 -3
  35. package/dist/{RecurringSettings-RfZ8Wuhh.mjs → RecurringSettings-BpCUcE8w.mjs} +4 -4
  36. package/dist/{RecurringTransactionsStore-D3EOKZ2B.mjs → RecurringTransactionsStore-D_--5PWH.mjs} +1 -1
  37. package/dist/{RecurringTransactions-Bhx56aA3.mjs → RepeatingTransaction-C2txVA9O.mjs} +3 -3
  38. package/dist/{SettingsStore-BASMQSIp.mjs → SettingsStore-CInvh-rQ.mjs} +1 -1
  39. package/dist/SpendingData-B7NuTQ9s.mjs +53 -0
  40. package/dist/SpendingLegend-BxefXiQd.mjs +193 -0
  41. package/dist/TransactionDetails-CPwv9xtZ.mjs +1374 -0
  42. package/dist/{TransactionStore-DgLrYW4C.mjs → TransactionStore-D2aMUClq.mjs} +128 -111
  43. package/dist/TrendsStore-BdsYfCc7.mjs +183 -0
  44. package/dist/{User-DqNX2GAK.mjs → User-CulNdZUr.mjs} +21 -20
  45. package/dist/ViewMoreMicroCard-CDWR16_h.mjs +1147 -0
  46. package/dist/WidgetContainer-mzejMmz2.mjs +555 -0
  47. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +1 -0
  48. package/dist/accounts/index.es.js +933 -232
  49. package/dist/accounts/stores/AccountStore.d.ts +6 -2
  50. package/dist/accounts/utils/AccountDetails.d.ts +5 -0
  51. package/dist/analytics/index.es.js +2 -2
  52. package/dist/budgets/components/AddBudgets.d.ts +2 -1
  53. package/dist/budgets/index.es.js +561 -522
  54. package/dist/cashflow/index.es.js +397 -396
  55. package/dist/categories/components/CustomCategories/AddSubcategory.d.ts +1 -0
  56. package/dist/categories/components/CustomCategories/DeleteSubcategory.d.ts +1 -0
  57. package/dist/categories/components/CustomCategories/RenameSubcategory.d.ts +1 -0
  58. package/dist/categories/components/SubcategoryRow.d.ts +1 -0
  59. package/dist/categories/index.es.js +2 -2
  60. package/dist/categories/stores/CategoryStore.d.ts +5 -3
  61. package/dist/common/components/GlobalAccountFilter.d.ts +11 -0
  62. package/dist/common/components/WidgetContainer.d.ts +7 -6
  63. package/dist/common/components/charts/linechart/CustomTooltip.d.ts +6 -1
  64. package/dist/common/components/charts/stackedlinechart/CustomPointTooltip.d.ts +5 -2
  65. package/dist/common/components/globalaccountfilter/GlobalAccountFilterList.d.ts +7 -0
  66. package/dist/common/components/index.d.ts +2 -2
  67. package/dist/common/hooks/index.d.ts +1 -0
  68. package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
  69. package/dist/common/index.es.js +325 -306
  70. package/dist/common/stores/GlobalUiStore.d.ts +7 -4
  71. package/dist/common/types/localization/AccountsCopy.d.ts +6 -0
  72. package/dist/common/types/localization/CategoryCopy.d.ts +3 -0
  73. package/dist/common/types/localization/CommonCopy.d.ts +3 -0
  74. package/dist/common/types/localization/GoalsCopy.d.ts +3 -1
  75. package/dist/common/types/localization/MicroInsightsCopy.d.ts +1 -0
  76. package/dist/common/types/localization/TransactionsCopy.d.ts +4 -0
  77. package/dist/common/types/localization/TrendsCopy.d.ts +4 -0
  78. package/dist/dashboard/index.es.js +95 -125
  79. package/dist/debts/index.es.js +466 -460
  80. package/dist/{exportTransactionsToCSV-BFpuIAXW.mjs → exportTransactionsToCSV-BU1jTY0Q.mjs} +4 -4
  81. package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +4 -5
  82. package/dist/finstrong/index.es.js +1660 -1553
  83. package/dist/goals/index.es.js +716 -677
  84. package/dist/goals/stores/GoalStore.d.ts +2 -0
  85. package/dist/help/index.es.js +14 -10
  86. package/dist/{hooks-C41HAxM5.mjs → hooks-fY_n74f7.mjs} +16 -16
  87. package/dist/investments/index.es.js +464 -457
  88. package/dist/merchants/index.es.js +1 -1
  89. package/dist/microinsights/MicroCardTemplate.d.ts +23 -0
  90. package/dist/microinsights/beaticons/BeatMaterialIcon.d.ts +8 -0
  91. package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +1 -2
  92. package/dist/microinsights/beaticons/index.d.ts +1 -0
  93. package/dist/microinsights/cards/InsightCard.d.ts +0 -2
  94. package/dist/microinsights/cards/ViewMoreMicroCard.d.ts +2 -5
  95. package/dist/microinsights/index.d.ts +2 -2
  96. package/dist/microinsights/index.es.js +824 -14
  97. package/dist/networth/components/NetWorthChart.d.ts +3 -2
  98. package/dist/networth/components/NetWorthList.d.ts +3 -3
  99. package/dist/networth/index.es.js +433 -438
  100. package/dist/networth/stores/NetWorthStore.d.ts +20 -9
  101. package/dist/networth/utils/NetWorthUtils.d.ts +2 -2
  102. package/dist/notifications/index.es.js +5 -5
  103. package/dist/recurringtransactions/index.es.js +331 -325
  104. package/dist/settings/index.es.js +293 -285
  105. package/dist/spending/components/SpendingChart.d.ts +1 -1
  106. package/dist/spending/components/SpendingList.d.ts +1 -1
  107. package/dist/spending/components/SpendingTabLabel.d.ts +1 -0
  108. package/dist/spending/index.es.js +250 -235
  109. package/dist/transactions/index.es.js +288 -281
  110. package/dist/transactions/stores/TransactionStore.d.ts +5 -0
  111. package/dist/trends/components/TrendsTable.d.ts +0 -2
  112. package/dist/trends/index.es.js +876 -802
  113. package/dist/trends/utils/TrendsData.d.ts +1 -0
  114. package/dist/trends/utils/TrendsTable.d.ts +12 -0
  115. package/dist/{useAccountDisplayName-usSZCQ7I.mjs → useAccountDisplayName-DbkgGLdg.mjs} +2 -2
  116. package/dist/useAriaLive-B3_pRUio.mjs +35 -0
  117. package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-dhmXeSyF.mjs} +1 -1
  118. package/dist/useWidgetLoadTimer-CrUzxN-P.mjs +19 -0
  119. package/package.json +26 -21
  120. package/dist/AccountDetailsContent-C1HumFnW.mjs +0 -683
  121. package/dist/AccountDetailsHeader-NMx79DGs.mjs +0 -87
  122. package/dist/CategorySelectorDrawer-DqDAA_5I.mjs +0 -399
  123. package/dist/CategoryStore-MUwRWH9e.mjs +0 -176
  124. package/dist/ConnectDrawer-Dn1MlqLz.mjs +0 -545
  125. package/dist/Drawer-Dqe5EqvA.mjs +0 -163
  126. package/dist/LineChart-bc1D9xBE.mjs +0 -581
  127. package/dist/NetWorthStore-8FFC1Bs0.mjs +0 -150
  128. package/dist/NotificationSettings-BsWiYD94.mjs +0 -672
  129. package/dist/SpendingData-DPQ96k3x.mjs +0 -55
  130. package/dist/SpendingLegend-CZzDb-7d.mjs +0 -193
  131. package/dist/TransactionDetails-Duv1X9ec.mjs +0 -1379
  132. package/dist/TrendsStore-_mRaFUdf.mjs +0 -182
  133. package/dist/ViewMoreMicroCard-CH9E-jOx.mjs +0 -1930
  134. package/dist/WidgetContainer-B1Jzb4XA.mjs +0 -565
  135. package/dist/common/components/accountfilter/AccountFilter.d.ts +0 -20
  136. package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +0 -31
  137. package/dist/common/components/accountfilter/index.d.ts +0 -1
  138. package/dist/microinsights/cards/BaseCard.d.ts +0 -13
  139. package/dist/{ToggleListItem-ciFTiqRS.mjs → Notification-Bs1fdbzI.mjs} +1 -1
@@ -1,60 +1,62 @@
1
- import { T as Sa } from "../TransactionApi-CjBoLleL.mjs";
2
- import { b as P, C as Pe, D as Ve, M as $e, d as Ge, u as We, T as Ue, a as Fe } from "../TransactionDetails-Duv1X9ec.mjs";
3
- import { B as wa, e as va, c as Ia } from "../TransactionDetails-Duv1X9ec.mjs";
4
- import { T as M } from "../User-DqNX2GAK.mjs";
5
- import { O as Na } from "../User-DqNX2GAK.mjs";
6
- import { S as ae, D as ze } from "../TransactionStore-DgLrYW4C.mjs";
7
- import { T as Oa } from "../TransactionStore-DgLrYW4C.mjs";
8
- import { e as Ke } from "../exportTransactionsToCSV-BFpuIAXW.mjs";
9
- import { E as ka } from "../ExportCsvAction-CQ1grpwo.mjs";
10
- import { jsxs as _, jsx as e } from "react/jsx-runtime";
11
- import u from "react";
12
- import { observer as x } from "mobx-react-lite";
13
- import qe from "@mui/material/Paper";
14
- import { DataGridPro as je } from "@mui/x-data-grid-pro";
15
- import { L as q } from "../Loader-BSWSYqvn.mjs";
16
- import { Text as C, Icon as B, MerchantLogo as Xe, TextField as ne, P as Ye } from "@mxenabled/mxui";
17
- import A from "@mui/material/Stack";
18
- import { h as V, u as w, b as j, d as se, m as Je, a as Qe, g as Ze, p as et } from "../hooks-C41HAxM5.mjs";
1
+ import { T as wa } from "../TransactionApi-CjBoLleL.mjs";
2
+ import { u as P, C as Be, D as Pe, M as Ve, c as $e, T as We, a as Ge } from "../TransactionDetails-CPwv9xtZ.mjs";
3
+ import { B as va, d as Da, b as Na } from "../TransactionDetails-CPwv9xtZ.mjs";
4
+ import { T as k } from "../User-CulNdZUr.mjs";
5
+ import { O as Oa } from "../User-CulNdZUr.mjs";
6
+ import { S as ae, D as Fe } from "../TransactionStore-D2aMUClq.mjs";
7
+ import { T as La } from "../TransactionStore-D2aMUClq.mjs";
8
+ import { e as Ue } from "../exportTransactionsToCSV-BU1jTY0Q.mjs";
9
+ import { E as Ra } from "../ExportCsvAction-oG_Mn66T.mjs";
10
+ import { jsxs as p, jsx as e } from "react/jsx-runtime";
11
+ import m from "react";
12
+ import { observer as w } from "mobx-react-lite";
13
+ import Ke from "@mui/material/Paper";
14
+ import { DataGridPro as ze } from "@mui/x-data-grid-pro";
15
+ import { L as j } from "../Loader-BSWSYqvn.mjs";
16
+ import { Text as y, Icon as B, MerchantLogo as qe, TextField as ne, P as je } from "@mxenabled/mxui";
17
+ import x from "@mui/material/Stack";
18
+ import { h as V, u as I, b as X, d as se, m as Xe, a as Ye, g as Je, o as Qe } from "../hooks-fY_n74f7.mjs";
19
19
  import { f as ie } from "../NumberFormatting-DjTD0t3W.mjs";
20
20
  import S from "@mui/material/Box";
21
- import { useTheme as tt } from "@mui/material/styles";
22
- import { fromUnixTime as at } from "date-fns/fromUnixTime";
23
- import { f as nt, a as ot, D as ce } from "../Dialog-CDV0kKxj.mjs";
24
- import { endOfMonth as rt } from "date-fns/endOfMonth";
25
- import { getUnixTime as st } from "date-fns/getUnixTime";
26
- import { startOfMonth as it } from "date-fns/startOfMonth";
21
+ import { useTheme as Ze } from "@mui/material/styles";
22
+ import { fromUnixTime as et } from "date-fns/fromUnixTime";
23
+ import { f as tt, D as at, a as ce } from "../Dialog-CWymUiuO.mjs";
24
+ import { endOfMonth as nt } from "date-fns/endOfMonth";
25
+ import { getUnixTime as ot } from "date-fns/getUnixTime";
26
+ import { startOfMonth as rt } from "date-fns/startOfMonth";
27
27
  import { startOfToday as z } from "date-fns/startOfToday";
28
- import ct from "@mui/material/styles/useTheme";
29
- import { l as lt } from "../ConnectDrawer-Dn1MlqLz.mjs";
30
- import dt from "@mui/material/Divider";
31
- import ut from "@mui/material/MenuItem";
32
- import mt from "@mui/material/RadioGroup";
33
- import { ExpandMore as _t } from "@mxenabled/mx-icons";
34
- import { C as pt } from "../CurrencyInput-BrGvhgVK.mjs";
35
- import { a as gt, u as ht } from "../CategorySelectorDrawer-DqDAA_5I.mjs";
36
- import { b as K } from "../Localization-2MODESHW.mjs";
37
- import { S as ft } from "../SkeletonLoader-BaNboJjD.mjs";
38
- import { A as T, W as Ct } from "../WidgetContainer-B1Jzb4XA.mjs";
39
- import { D as oe } from "../Drawer-Dqe5EqvA.mjs";
40
- import { u as yt } from "../useScreenSize-B6JyS_Lj.mjs";
28
+ import st from "@mui/material/styles/useTheme";
29
+ import { b as it } from "../GlobalAccountFilter-BpWlPAl5.mjs";
30
+ import ct from "@mui/material/Divider";
31
+ import lt from "@mui/material/MenuItem";
32
+ import dt from "@mui/material/RadioGroup";
33
+ import { ExpandMore as ut } from "@mxenabled/mx-icons";
34
+ import { C as mt } from "../CurrencyInput-DDQ4DBrE.mjs";
35
+ import { b as _t, u as pt } from "../CategorySelectorDrawer-C4aZYP4N.mjs";
36
+ import { b as q } from "../Localization-2MODESHW.mjs";
37
+ import { u as gt } from "../useAriaLive-B3_pRUio.mjs";
38
+ import { S as ht } from "../SkeletonLoader-BaNboJjD.mjs";
39
+ import { A, W as ft } from "../WidgetContainer-mzejMmz2.mjs";
40
+ import { D as oe } from "../Drawer-Bet2ZPJo.mjs";
41
+ import { u as Ct } from "../useScreenSize-B6JyS_Lj.mjs";
42
+ import { u as yt } from "../useWidgetLoadTimer-CrUzxN-P.mjs";
41
43
  import { S as bt } from "../SearchBox-B2_zLv8-.mjs";
42
- const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small", children: [
44
+ const Tt = (t) => /* @__PURE__ */ p(y, { tabIndex: t.tabIndex, variant: "Small", children: [
43
45
  `${t.row.account}`,
44
46
  t.row.number && ` | ${t.row.number}`
45
47
  ] }), At = (t) => {
46
- const { associatedBeats: s } = V(), { showInsights: r } = P(), { amount: a, transaction_type: i } = t.row, l = s.find((p) => p.associated_transaction_guid === t.row.guid), d = i === M.CREDIT;
47
- return /* @__PURE__ */ _(A, { alignItems: "flex-end", tabIndex: t.tabIndex, children: [
48
- /* @__PURE__ */ _(C, { color: d ? "success.main" : "text.primary", variant: "Small", children: [
49
- d ? "+" : "",
48
+ const { associatedBeats: s } = V(), { showInsights: o } = P(), { amount: a, transaction_type: i } = t.row, c = s.find((g) => g.associated_transaction_guid === t.row.guid), l = i === k.CREDIT;
49
+ return /* @__PURE__ */ p(x, { alignItems: "flex-end", tabIndex: t.tabIndex, children: [
50
+ /* @__PURE__ */ p(y, { color: l ? "success.main" : "text.primary", variant: "Small", children: [
51
+ l ? "+" : "",
50
52
  ie(a, "0,0.00")
51
53
  ] }),
52
- l && r && /* @__PURE__ */ e(C, { bold: !0, color: "primary.light", variant: "XSmall", children: l.short_title })
54
+ c && o && /* @__PURE__ */ e(y, { bold: !0, color: "primary.light", variant: "XSmall", children: c.short_title })
53
55
  ] });
54
- }, St = (t) => {
55
- const { transactions: s } = w(), [r, a] = u.useState(!1);
56
- return /* @__PURE__ */ _(
57
- A,
56
+ }, xt = (t) => {
57
+ const { transactions: s } = I(), [o, a] = m.useState(!1);
58
+ return /* @__PURE__ */ p(
59
+ x,
58
60
  {
59
61
  alignItems: "center",
60
62
  direction: "row",
@@ -65,22 +67,22 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
65
67
  width: "100%",
66
68
  children: [
67
69
  t.row.has_been_split && /* @__PURE__ */ e(B, { name: "call_split", size: 16 }),
68
- /* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "Small", children: t.row.has_been_split ? s.split_transaction_category_label : t.row.category }),
69
- !t.row.has_been_split && r && /* @__PURE__ */ e(B, { name: "edit", sx: { color: "action.active" } })
70
+ /* @__PURE__ */ e(y, { tabIndex: t.tabIndex, variant: "Small", children: t.row.has_been_split ? s.split_transaction_category_label : t.row.category }),
71
+ !t.row.has_been_split && o && /* @__PURE__ */ e(B, { name: "edit", sx: { color: "action.active" } })
70
72
  ]
71
73
  }
72
74
  );
73
- }, xt = x(St), wt = (t) => /* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "Small", children: nt(at(t.row.date), ot.MONTH_DAY) }), vt = (t) => {
74
- const s = tt(), { transactions: r } = w(), { is_flagged: a, is_hidden: i, has_been_viewed: l, parent_guid: d } = t.row, h = !l && !!!d;
75
- return /* @__PURE__ */ _(
75
+ }, St = w(xt), wt = (t) => /* @__PURE__ */ e(y, { tabIndex: t.tabIndex, variant: "Small", children: tt(et(t.row.date), at.MONTH_DAY) }), It = (t) => {
76
+ const s = Ze(), { transactions: o } = I(), { is_flagged: a, is_hidden: i, has_been_viewed: c, parent_guid: l } = t.row, f = !c && !!!l;
77
+ return /* @__PURE__ */ p(
76
78
  S,
77
79
  {
78
- "aria-label": i ? r.is_hidden : r.is_flagged,
80
+ "aria-label": i ? o.is_hidden : o.is_flagged,
79
81
  tabIndex: t.tabIndex,
80
82
  children: [
81
83
  a && /* @__PURE__ */ e(B, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
82
84
  !a && i && /* @__PURE__ */ e(B, { name: "visibility_off", size: 16 }),
83
- h && /* @__PURE__ */ e(
85
+ f && /* @__PURE__ */ e(
84
86
  "svg",
85
87
  {
86
88
  "data-testid": "svg",
@@ -98,40 +100,42 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
98
100
  ]
99
101
  }
100
102
  );
101
- }, It = x(vt), O = (t) => /* @__PURE__ */ e(C, { fontWeight: 600, variant: "Small", children: t.colDef.headerName }), Dt = (t) => /* @__PURE__ */ _(A, { alignItems: "center", direction: "row", gap: 8, children: [
103
+ }, vt = w(It), O = (t) => /* @__PURE__ */ e(y, { fontWeight: 600, variant: "Small", children: t.colDef.headerName }), Dt = (t) => /* @__PURE__ */ p(x, { alignItems: "center", direction: "row", gap: 8, children: [
102
104
  /* @__PURE__ */ e(
103
- Xe,
105
+ qe,
104
106
  {
105
107
  categoryGuid: t.row.top_level_category_guid || "",
106
108
  merchantGuid: t.row.merchant_guid || ""
107
109
  }
108
110
  ),
109
- /* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "Small", children: t.row.payee })
111
+ /* @__PURE__ */ e(y, { tabIndex: t.tabIndex, variant: "Small", children: t.row.payee })
110
112
  ] }), Nt = ({
111
113
  height: t = "100dvh",
112
114
  onCategoryClick: s,
113
- onRowClick: r
115
+ onRowClick: o
114
116
  }) => {
115
- const { transactions: a } = w(), { isCopyLoaded: i } = j(), { isLoading: l, sortedTransactions: d } = V(), { clearExpandedSplits: p, toggleSplit: h } = P();
116
- u.useEffect(() => () => p(), []);
117
- const f = u.useMemo(
118
- () => d.map((n) => ({
119
- id: n.guid,
117
+ const { transactions: a } = I(), { isCopyLoaded: i } = X(), { isLoading: c, sortedTransactions: l } = V(), { clearExpandedSplits: g, toggleSplit: f } = P();
118
+ m.useEffect(() => () => g(), []);
119
+ const C = m.useMemo(
120
+ () => l.map((r) => ({
121
+ id: r.guid,
120
122
  isHovering: !1,
121
- ...n
123
+ ...r
122
124
  })),
123
- [d]
124
- ), m = ({ row: { id: n, guid: g, has_been_split: I }, field: E }) => I ? h(n) : E === "category" ? s?.(g) : r?.(g);
125
+ [l]
126
+ ), u = ({ row: { id: r, guid: h, has_been_split: N }, field: n }) => N ? f(r) : n === "category" ? s?.(h) : o?.(h), v = (r, h) => {
127
+ h.key !== "Enter" && h.key !== " " || u(r);
128
+ };
125
129
  if (!i)
126
- return /* @__PURE__ */ e(q, {});
127
- const v = [
130
+ return /* @__PURE__ */ e(j, {});
131
+ const _ = [
128
132
  {
129
133
  field: "flag",
130
134
  headerName: "",
131
135
  minWidth: 32,
132
136
  width: 32,
133
137
  sortable: !1,
134
- renderCell: (n) => /* @__PURE__ */ e(It, { ...n }),
138
+ renderCell: (r) => /* @__PURE__ */ e(vt, { ...r }),
135
139
  renderHeader: () => /* @__PURE__ */ e("span", { "aria-label": a.transaction_status, role: "presentation" })
136
140
  },
137
141
  {
@@ -139,7 +143,7 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
139
143
  headerName: a.date_title,
140
144
  width: 103,
141
145
  renderHeader: O,
142
- renderCell: (n) => n.row.parent_guid ? null : /* @__PURE__ */ e(wt, { ...n }),
146
+ renderCell: (r) => r.row.parent_guid ? null : /* @__PURE__ */ e(wt, { ...r }),
143
147
  sortingOrder: ["desc", "asc"]
144
148
  },
145
149
  {
@@ -156,7 +160,7 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
156
160
  headerName: a.category_title,
157
161
  flex: 0.25,
158
162
  renderHeader: O,
159
- renderCell: (n) => /* @__PURE__ */ e(xt, { ...n }),
163
+ renderCell: (r) => /* @__PURE__ */ e(St, { ...r }),
160
164
  sortingOrder: ["asc", "desc"]
161
165
  },
162
166
  {
@@ -164,7 +168,7 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
164
168
  headerName: a.account_title,
165
169
  flex: 0.33,
166
170
  renderHeader: O,
167
- renderCell: (n) => n.row.parent_guid ? null : /* @__PURE__ */ e(Tt, { ...n }),
171
+ renderCell: (r) => r.row.parent_guid ? null : /* @__PURE__ */ e(Tt, { ...r }),
168
172
  sortingOrder: ["asc", "desc"]
169
173
  },
170
174
  {
@@ -178,18 +182,19 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
178
182
  sortingOrder: ["asc", "desc"]
179
183
  }
180
184
  ];
181
- return /* @__PURE__ */ e(qe, { sx: { height: t, px: 24, width: "100%", boxShadow: "none" }, children: /* @__PURE__ */ e(
182
- je,
185
+ return /* @__PURE__ */ e(Ke, { sx: { height: t, px: 24, width: "100%", boxShadow: "none" }, children: /* @__PURE__ */ e(
186
+ ze,
183
187
  {
184
- columns: v,
188
+ columns: _,
185
189
  disableColumnFilter: !0,
186
190
  disableColumnMenu: !0,
187
- getCellClassName: (n) => n.row.parent_guid ? "split-row" : "",
191
+ getCellClassName: (r) => r.row.parent_guid ? "split-row" : "",
188
192
  hideFooter: !0,
189
193
  initialState: { sorting: { sortModel: [{ field: "date", sort: "desc" }] } },
190
- loading: l,
191
- onCellClick: m,
192
- rows: f,
194
+ loading: c,
195
+ onCellClick: u,
196
+ onCellKeyDown: v,
197
+ rows: C,
193
198
  slotProps: { baseIconButton: { color: "secondary", sx: { ml: 8 } } },
194
199
  sx: {
195
200
  "& .split-row": {
@@ -198,89 +203,89 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
198
203
  }
199
204
  }
200
205
  ) });
201
- }, Et = x(Nt), Ot = ({ copy: t, isOpen: s, onClose: r, onPrimaryAction: a }) => {
202
- const { common: i, transactions: l } = w(), { isCopyLoaded: d } = j();
203
- return d ? /* @__PURE__ */ _(
206
+ }, Et = w(Nt), Ot = ({ copy: t, isOpen: s, onClose: o, onPrimaryAction: a }) => {
207
+ const { common: i, transactions: c } = I(), { isCopyLoaded: l } = X();
208
+ return l ? /* @__PURE__ */ p(
204
209
  ce,
205
210
  {
206
211
  copy: {
207
212
  title: t.title
208
213
  },
209
214
  isOpen: s,
210
- onClose: r,
215
+ onClose: o,
211
216
  onPrimaryAction: a,
212
- primaryText: l.add_manual_account,
217
+ primaryText: c.add_manual_account,
213
218
  secondaryText: i.cancel_button,
214
219
  children: [
215
- /* @__PURE__ */ e(C, { component: "p", sx: { marginBottom: "20px" }, truncate: !1, children: l.add_account_modal_message }),
216
- /* @__PURE__ */ e(C, { component: "p", truncate: !1, children: l.add_account_modal_cta })
220
+ /* @__PURE__ */ e(y, { component: "p", sx: { marginBottom: "20px" }, truncate: !1, children: c.add_account_modal_message }),
221
+ /* @__PURE__ */ e(y, { component: "p", truncate: !1, children: c.add_account_modal_cta })
217
222
  ]
218
223
  }
219
- ) : /* @__PURE__ */ e(q, {});
220
- }, Mt = x(Ot), kt = () => {
221
- const { visibleAccounts: t } = se(), { common: s, transactions: r } = w(), { manualTransaction: a, setIsAmountValid: i, updateManualTransaction: l } = P(), [d, p] = u.useState(""), [h, f] = u.useState(""), m = u.useMemo(
222
- () => t.filter((o) => o.is_manual),
224
+ ) : /* @__PURE__ */ e(j, {});
225
+ }, kt = w(Ot), Lt = () => {
226
+ const { visibleAccounts: t } = se(), { common: s, transactions: o } = I(), { manualTransaction: a, setIsAmountValid: i, updateManualTransaction: c } = P(), [l, g] = m.useState(""), [f, C] = m.useState(""), u = m.useMemo(
227
+ () => t.filter((n) => n.is_manual),
223
228
  [t]
224
- ).map((o) => ({
225
- label: `${o.name} | ${ie(o.balance, "0,0.00")}`,
226
- value: o.guid
229
+ ).map((n) => ({
230
+ label: `${n.name} | ${ie(n.balance, "0,0.00")}`,
231
+ value: n.guid
227
232
  })), v = {
228
233
  error_amount_is_invalid: s.currency_input.error_amount_is_invalid,
229
234
  error_amount_must_be_equal_to: s.currency_input.error_amount_must_be_equal_to,
230
235
  error_amount_must_be_less_than_or_equal_to: s.currency_input.error_amount_must_be_less_than_or_equal_to,
231
236
  enter_amount: s.currency_input.enter_amount
232
- }, n = (o) => {
233
- p(o), l({ ...a, amount: Number(o) });
234
- }, g = (o, k) => {
235
- l({ ...a, transaction_type: Number(k) });
236
- }, I = (o) => {
237
- f(o), l({ ...a, payee: o, description: o });
238
- }, E = (o) => {
239
- l({ ...a, account_guid: o });
237
+ }, _ = (n) => {
238
+ g(n), c({ ...a, amount: Number(n) });
239
+ }, r = (n, L) => {
240
+ c({ ...a, transaction_type: Number(L) });
241
+ }, h = (n) => {
242
+ C(n), c({ ...a, payee: n, description: n });
243
+ }, N = (n) => {
244
+ c({ ...a, account_guid: n });
240
245
  };
241
- return /* @__PURE__ */ _(S, { className: "mx-txn-manual-transaction-details", children: [
242
- /* @__PURE__ */ _(A, { gap: 40, mx: 24, my: 32, children: [
243
- /* @__PURE__ */ _(
244
- A,
246
+ return /* @__PURE__ */ p(S, { className: "mx-txn-manual-transaction-details", children: [
247
+ /* @__PURE__ */ p(x, { gap: 40, mx: 24, my: 32, children: [
248
+ /* @__PURE__ */ p(
249
+ x,
245
250
  {
246
251
  direction: "row",
247
252
  sx: { flexDirection: { xs: "column", sm: "row" }, gap: { xs: 40, sm: 8 } },
248
253
  children: [
249
254
  /* @__PURE__ */ e(
250
- pt,
255
+ mt,
251
256
  {
252
257
  allowDecimals: !0,
253
- amount: d,
254
- ariaLabel: r.amount_title,
258
+ amount: l,
259
+ ariaLabel: o.amount_title,
255
260
  copy: v,
256
261
  inputProps: {
257
262
  noValidate: !0
258
263
  },
259
- label: r.amount_title,
260
- setAmount: n,
264
+ label: o.amount_title,
265
+ setAmount: _,
261
266
  setHasValidInput: i,
262
267
  sx: { bgcolor: "background.paper" },
263
268
  type: "number"
264
269
  }
265
270
  ),
266
- /* @__PURE__ */ e(mt, { name: "TransactionType", onChange: g, row: !0, children: /* @__PURE__ */ _(A, { alignItems: "center", direction: "row", children: [
271
+ /* @__PURE__ */ e(dt, { name: "TransactionType", onChange: r, row: !0, children: /* @__PURE__ */ p(x, { alignItems: "center", direction: "row", children: [
267
272
  /* @__PURE__ */ e(
268
273
  ae,
269
274
  {
270
- checked: a.transaction_type === M.CREDIT,
271
- label: r.manual_transaction_credit_button_label,
275
+ checked: a.transaction_type === k.CREDIT,
276
+ label: o.manual_transaction_credit_button_label,
272
277
  sx: { ml: { xs: 0, sm: 8 } },
273
- tooltip: r.manual_transaction_credit_button_tooltip,
274
- value: M.CREDIT
278
+ tooltip: o.manual_transaction_credit_button_tooltip,
279
+ value: k.CREDIT
275
280
  }
276
281
  ),
277
282
  /* @__PURE__ */ e(
278
283
  ae,
279
284
  {
280
- checked: a.transaction_type === M.DEBIT,
281
- label: r.manual_transaction_debit_button_label,
282
- tooltip: r.manual_transaction_debit_button_tooltip,
283
- value: M.DEBIT
285
+ checked: a.transaction_type === k.DEBIT,
286
+ label: o.manual_transaction_debit_button_label,
287
+ tooltip: o.manual_transaction_debit_button_tooltip,
288
+ value: k.DEBIT
284
289
  }
285
290
  )
286
291
  ] }) })
@@ -290,49 +295,49 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
290
295
  /* @__PURE__ */ e(
291
296
  ne,
292
297
  {
293
- label: r.payee_title,
298
+ label: o.payee_title,
294
299
  name: "payee",
295
- onChange: (o) => I(o.target.value),
300
+ onChange: (n) => h(n.target.value),
296
301
  sx: { bgcolor: "background.paper" },
297
- value: h
302
+ value: f
298
303
  }
299
304
  ),
300
305
  /* @__PURE__ */ e(
301
306
  ne,
302
307
  {
303
308
  InputLabelProps: { shrink: !0 },
304
- SelectProps: { defaultValue: -1, IconComponent: _t },
305
- label: r.manual_transaction_select_an_account,
306
- onChange: (o) => E(o.target.value),
307
- placeholder: r.manual_transaction_select,
309
+ SelectProps: { defaultValue: -1, IconComponent: ut },
310
+ label: o.manual_transaction_select_an_account,
311
+ onChange: (n) => N(n.target.value),
312
+ placeholder: o.manual_transaction_select,
308
313
  select: !0,
309
314
  sx: { bgcolor: "background.paper" },
310
- children: m.map((o) => /* @__PURE__ */ e(ut, { value: o.value, children: o.label }, o.value))
315
+ children: u.map((n) => /* @__PURE__ */ e(lt, { value: n.value, children: n.label }, n.value))
311
316
  }
312
317
  )
313
318
  ] }),
314
- /* @__PURE__ */ e(dt, { light: !0 }),
315
- /* @__PURE__ */ _(S, { bgcolor: "background.paper", children: [
319
+ /* @__PURE__ */ e(ct, { light: !0 }),
320
+ /* @__PURE__ */ p(S, { bgcolor: "background.paper", children: [
321
+ /* @__PURE__ */ e(Be, { transaction: a }),
316
322
  /* @__PURE__ */ e(Pe, { transaction: a }),
317
323
  /* @__PURE__ */ e(Ve, { transaction: a }),
318
- /* @__PURE__ */ e($e, { transaction: a }),
319
- /* @__PURE__ */ e(Ge, { transaction: a })
324
+ /* @__PURE__ */ e($e, { transaction: a })
320
325
  ] })
321
326
  ] });
322
- }, Lt = x(kt), Rt = ({ onClose: t, transaction: s }) => {
323
- const { addOrUpdateTransactionRule: r, updateTransaction: a } = V(), { transactions: i } = w(), { categories: l } = Je(), [d, p] = u.useState(""), h = u.useMemo(
324
- () => l.find((m) => m.guid === d),
325
- [d]
326
- ), f = async (m) => {
327
- await a({ ...s, category_guid: d }), m && await r(d, s), p(""), t();
327
+ }, Mt = w(Lt), Rt = ({ onClose: t, transaction: s }) => {
328
+ const { addOrUpdateTransactionRule: o, updateTransaction: a } = V(), { transactions: i } = I(), { categories: c } = Xe(), [l, g] = m.useState(""), f = m.useMemo(
329
+ () => c.find((u) => u.guid === l),
330
+ [l]
331
+ ), C = async (u) => {
332
+ await a({ ...s, category_guid: l }), u && await o(l, s), g(""), t();
328
333
  };
329
- return /* @__PURE__ */ _(S, { className: "mx-txn-edit-category-action", children: [
334
+ return /* @__PURE__ */ p(S, { className: "mx-txn-edit-category-action", children: [
330
335
  /* @__PURE__ */ e(
331
- gt,
336
+ _t,
332
337
  {
333
338
  initialSelected: s.category_guid,
334
339
  onClose: t,
335
- onSelect: (m) => p(m),
340
+ onSelect: (u) => g(u),
336
341
  showDrawer: !!s,
337
342
  title: i.actions_select_a_category
338
343
  }
@@ -341,169 +346,171 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
341
346
  ce,
342
347
  {
343
348
  copy: {
344
- title: K(
349
+ title: q(
345
350
  i.actions_apply_to_all_transaction_types,
346
351
  s.description
347
352
  )
348
353
  },
349
- isOpen: !!d,
350
- onClose: () => f(!1),
351
- onPrimaryAction: () => f(!0),
352
- onSecondaryAction: () => f(!1),
354
+ isOpen: !!l,
355
+ onClose: () => C(!1),
356
+ onPrimaryAction: () => C(!0),
357
+ onSecondaryAction: () => C(!1),
353
358
  primaryText: i.actions_apply_to_all,
354
359
  secondaryText: i.actions_this_time_only,
355
- children: /* @__PURE__ */ e(Ye, { variant: "Paragraph", children: K(
360
+ children: /* @__PURE__ */ e(je, { variant: "Paragraph", children: q(
356
361
  i.actions_all_past_and_future,
357
362
  s.description,
358
- h?.name
363
+ f?.name
359
364
  ) })
360
365
  }
361
366
  )
362
367
  ] });
363
- }, Ht = x(Rt), re = 120, Bt = ({
368
+ }, Ht = w(Rt), re = 120, Bt = ({
364
369
  onBackClick: t,
365
370
  height: s = "100dvh",
366
- showInsights: r = !1,
371
+ showInsights: o = !1,
367
372
  sx: a = {}
368
373
  }) => {
369
- const { visibleAccounts: i, refreshAccounts: l } = se(), { is_mobile_webview: d, clientConfig: p, config: h } = Qe(), { setSearchValue: f } = ht(), { onEvent: m } = Ze(), { common: v, transactions: n } = w(), {
370
- displayedDateRange: g,
371
- isCopyLoaded: I,
372
- isInitialized: E,
373
- selectedAccountGuids: o,
374
- setDisplayedDate: k,
375
- setSelectedAccounts: le
376
- } = j(), { isDesktop: de, isTablet: ue } = yt(), L = ct(), {
377
- addTransaction: me,
378
- filter: X,
379
- isTransactionDataLoaded: Y,
380
- loadAssociatedBeats: _e,
381
- loadTransactionData: pe,
382
- setFilter: $,
374
+ const { visibleAccounts: i, refreshAccounts: c } = se(), { is_mobile_webview: l, clientConfig: g, config: f } = Ye(), { setSearchValue: C } = pt(), { onEvent: u } = Je(), { common: v, transactions: _ } = I(), {
375
+ displayedDateRange: r,
376
+ isCopyLoaded: h,
377
+ isInitialized: N,
378
+ selectedAccountGuids: n,
379
+ setDisplayedDate: L
380
+ } = X(), { isDesktop: le, isTablet: de } = Ct(), M = st(), {
381
+ addTransaction: ue,
382
+ filter: Y,
383
+ isTransactionDataLoaded: $,
384
+ loadAssociatedBeats: me,
385
+ loadTransactionData: _e,
386
+ setFilter: W,
383
387
  sortedTransactionsWithSplits: G,
384
- tags: ge,
385
- detailedTransactions: he,
386
- updateTransaction: fe
388
+ tags: pe,
389
+ detailedTransactions: ge,
390
+ updateTransaction: he
387
391
  } = V(), {
388
- clearExpandedSplits: Ce,
389
- isAmountValid: ye,
392
+ clearExpandedSplits: fe,
393
+ isAmountValid: Ce,
390
394
  manualTransaction: R,
391
- searchValue: be,
392
- setSearchValue: Te,
393
- setShowInsights: Ae,
394
- updateManualTransaction: Se
395
- } = P(), { userProfile: xe } = et(), [W, y] = u.useState(""), [J, H] = u.useState(""), [we, U] = u.useState(!1), [ve, Q] = u.useState(!1), { announce: Ie, ariaLive: De } = We(), D = p?.transactions?.selected_account_guid;
396
- u.useEffect(() => {
397
- Y || pe().finally();
398
- }, []), u.useEffect(() => {
399
- const c = D ? [{ guid: D }] : i.filter((N) => !N.is_hidden), ee = it(z()), te = rt(z());
400
- D || le(c), k(ee, te), $({
401
- accounts: c.map((N) => N.guid),
402
- custom: (N) => !N.accountIsClosed && !N.accountIsHidden,
395
+ searchValue: ye,
396
+ setSearchValue: be,
397
+ setShowInsights: Te,
398
+ updateManualTransaction: Ae
399
+ } = P(), { userProfile: xe } = Qe(), [F, b] = m.useState(""), [J, H] = m.useState(""), [Se, U] = m.useState(!1), [we, Q] = m.useState(!1), { announce: Ie, ariaLive: ve } = gt(), E = g?.transactions?.selected_account_guid;
400
+ yt({
401
+ widgetName: "TransactionWidget",
402
+ isLoaded: $
403
+ }), m.useEffect(() => {
404
+ $ || _e().finally();
405
+ }, []), m.useEffect(() => {
406
+ const d = E ? [{ guid: E }] : i.filter((D) => !D.is_hidden), ee = rt(z()), te = nt(z());
407
+ L(ee, te), W({
408
+ accounts: d.map((D) => D.guid),
409
+ custom: (D) => !D.accountIsClosed && !D.accountIsHidden,
403
410
  dateRange: { start: ee, end: te }
404
- }), m(T.TRANSACTIONS_VIEW);
405
- }, [i]), u.useEffect(() => {
406
- $({
407
- ...X,
408
- accounts: D ? [D] : o,
409
- dateRange: { start: g.start, end: g.end }
410
- }), _e(g.start).finally();
411
- }, [g, o]), u.useEffect(() => {
412
- Ae(r);
413
- }, [r]), u.useEffect(() => {
414
- I && n.showing_transactions_count && Ie(
415
- K(
416
- n.showing_transactions_count,
411
+ }), u(A.TRANSACTIONS_VIEW);
412
+ }, [i]), m.useEffect(() => {
413
+ W({
414
+ ...Y,
415
+ accounts: E ? [E] : n,
416
+ dateRange: { start: r.start, end: r.end }
417
+ }), me(r.start).finally();
418
+ }, [r, n]), m.useEffect(() => {
419
+ Te(o);
420
+ }, [o]), m.useEffect(() => {
421
+ h && _.showing_transactions_count && Ie(
422
+ q(
423
+ _.showing_transactions_count,
417
424
  G.length
418
425
  )
419
426
  );
420
- }, [I, g, o, G, n]);
421
- const Ne = u.useMemo(
422
- () => i.filter((c) => c.is_manual),
427
+ }, [h, r, n, G, _]);
428
+ const De = m.useMemo(
429
+ () => i.filter((d) => d.is_manual),
423
430
  [i]
424
- ), b = J ? he.find((c) => c.guid === J) : void 0, Z = ye && !!R.payee && !!R.account_guid && !!R.category_guid, Ee = (c) => {
425
- Ce(), k(c[0], c[1]);
426
- }, Oe = (c) => {
427
- Te(c), $({
428
- ...X,
429
- searchTerm: c
430
- }), m(T.TRANSACTIONS_CLICK_SEARCH, { search_term: c });
431
- }, Me = () => {
432
- Ke(G, ge), m(T.TRANSACTIONS_CLICK_EXPORT);
431
+ ), T = J ? ge.find((d) => d.guid === J) : void 0, Z = Ce && !!R.payee && !!R.account_guid && !!R.category_guid, Ne = (d) => {
432
+ fe(), L(d[0], d[1]);
433
+ }, Ee = (d) => {
434
+ be(d), W({
435
+ ...Y,
436
+ searchTerm: d
437
+ }), u(A.TRANSACTIONS_CLICK_SEARCH, { search_term: d });
438
+ }, Oe = () => {
439
+ Ue(G, pe), u(A.TRANSACTIONS_CLICK_EXPORT);
433
440
  }, ke = () => {
434
- Ne.length > 0 ? (Se({
435
- ...ze,
436
- date: st(z()),
441
+ De.length > 0 ? (Ae({
442
+ ...Fe,
443
+ date: ot(z()),
437
444
  user_guid: xe?.user_guid || ""
438
- }), y(
445
+ }), b(
439
446
  "addTransaction"
440
447
  /* AddTransaction */
441
- ), m(T.TRANSACTIONS_CLICK_ADD)) : (U(!0), m(T.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
448
+ ), u(A.TRANSACTIONS_CLICK_ADD)) : (U(!0), u(A.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
442
449
  }, Le = async () => {
443
- Z && await me(R), y("");
444
- }, Re = () => {
450
+ Z && await ue(R), b("");
451
+ }, Me = () => {
445
452
  U(!1), Q(!0);
453
+ }, Re = async () => {
454
+ Q(!1), await c();
446
455
  }, He = async () => {
447
- Q(!1), await l();
448
- }, Be = async () => {
449
- b && !b.has_been_viewed && await fe({ ...b, has_been_viewed: !0 }), y("");
456
+ T && !T.has_been_viewed && await he({ ...T, has_been_viewed: !0 }), b("");
450
457
  };
451
- if (!E)
452
- return /* @__PURE__ */ e(q, {});
453
- const F = [];
454
- return !d && (de || ue) && F.push({
458
+ if (!N)
459
+ return /* @__PURE__ */ e(j, {});
460
+ const K = [];
461
+ return !l && (le || de) && K.push({
455
462
  iconName: "open_in_new",
456
- label: n.export_csv_btn,
457
- onClick: Me
458
- }), h.show_connections_widget_in_master && F.push({
463
+ label: _.export_csv_btn,
464
+ onClick: Oe
465
+ }), f.show_connections_widget_in_master && K.push({
459
466
  iconName: "add",
460
- label: n.add_transaction_btn,
467
+ label: _.add_transaction_btn,
461
468
  onClick: ke
462
- }), /* @__PURE__ */ _(
463
- Ct,
469
+ }), /* @__PURE__ */ p(
470
+ ft,
464
471
  {
465
- ...!D && { accountOptions: i },
466
- actions: F,
472
+ actions: K,
467
473
  calendarActions: {
468
- onRangeChanged: Ee
474
+ onRangeChanged: Ne
469
475
  },
470
- onAccountsFilterClick: () => m(T.ACCOUNTS_CLICK_FILTER),
476
+ onAccountsFilterClick: () => u(A.ACCOUNTS_CLICK_FILTER),
471
477
  onBackClick: t,
478
+ showAccountFilter: !E,
472
479
  sx: a,
473
- title: n.transactions_title,
480
+ title: _.transactions_title,
474
481
  children: [
475
- Y ? /* @__PURE__ */ _(A, { children: [
476
- De,
482
+ $ ? /* @__PURE__ */ p(x, { children: [
483
+ ve,
477
484
  /* @__PURE__ */ e(S, { mt: 16, children: /* @__PURE__ */ e(
478
485
  bt,
479
486
  {
480
- onChange: Oe,
481
- placeholder: n.action_bar_search_placeholder,
482
- searchValue: be
487
+ onChange: Ee,
488
+ placeholder: _.action_bar_search_placeholder,
489
+ searchValue: ye
483
490
  }
484
491
  ) }),
485
492
  /* @__PURE__ */ e(
486
493
  S,
487
494
  {
488
495
  sx: {
489
- [L.breakpoints.down("md")]: { display: "none" },
490
- [L.breakpoints.up("md")]: { display: "block" }
496
+ [M.breakpoints.down("md")]: { display: "none" },
497
+ [M.breakpoints.up("md")]: { display: "block" }
491
498
  },
492
499
  children: /* @__PURE__ */ e(
493
500
  Et,
494
501
  {
495
502
  height: `calc(${s} - ${re}px)`,
496
- onCategoryClick: (c) => {
497
- H(c), y(
503
+ onCategoryClick: (d) => {
504
+ H(d), b(
498
505
  "category"
499
506
  /* Category */
500
507
  );
501
508
  },
502
- onRowClick: (c) => {
503
- H(c), y(
509
+ onRowClick: (d) => {
510
+ H(d), b(
504
511
  "transaction"
505
512
  /* Transaction */
506
- ), m(T.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: c });
513
+ ), u(A.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: d });
507
514
  }
508
515
  }
509
516
  )
@@ -513,93 +520,93 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
513
520
  S,
514
521
  {
515
522
  sx: {
516
- [L.breakpoints.down("md")]: { display: "block" },
517
- [L.breakpoints.up("md")]: { display: "none" }
523
+ [M.breakpoints.down("md")]: { display: "block" },
524
+ [M.breakpoints.up("md")]: { display: "none" }
518
525
  },
519
526
  children: /* @__PURE__ */ e(
520
- Ue,
527
+ We,
521
528
  {
522
529
  height: `calc(${s} - ${re}px)`,
523
- onClick: (c) => {
524
- H(c), y(
530
+ onClick: (d) => {
531
+ H(d), b(
525
532
  "transaction"
526
533
  /* Transaction */
527
534
  );
528
535
  },
529
536
  showHiddenTransactions: !0,
530
- showInsights: r
537
+ showInsights: o
531
538
  }
532
539
  )
533
540
  }
534
541
  )
535
- ] }) : /* @__PURE__ */ e(ft, { variant: "list" }),
542
+ ] }) : /* @__PURE__ */ e(ht, { sx: { m: 48 }, variant: "list" }),
536
543
  /* @__PURE__ */ e(
537
544
  oe,
538
545
  {
539
546
  ariaLabelClose: v.close_aria,
540
- isOpen: W === "transaction" && !!b,
541
- onClose: Be,
542
- title: n.details_title,
543
- children: b && /* @__PURE__ */ e(Fe, { transaction: b })
547
+ isOpen: F === "transaction" && !!T,
548
+ onClose: He,
549
+ title: _.details_title,
550
+ children: T && /* @__PURE__ */ e(Ge, { transaction: T })
544
551
  }
545
552
  ),
546
- b && W === "category" && /* @__PURE__ */ e(
553
+ T && F === "category" && /* @__PURE__ */ e(
547
554
  Ht,
548
555
  {
549
556
  onClose: () => {
550
- f(""), y(""), H("");
557
+ C(""), b(""), H("");
551
558
  },
552
- transaction: b
559
+ transaction: T
553
560
  }
554
561
  ),
555
562
  /* @__PURE__ */ e(
556
563
  oe,
557
564
  {
558
565
  ariaLabelClose: v.close_aria,
559
- isOpen: W === "addTransaction",
566
+ isOpen: F === "addTransaction",
560
567
  isPrimaryDisabled: !Z,
561
- onClose: () => y(""),
568
+ onClose: () => b(""),
562
569
  onPrimaryAction: Le,
563
- title: n.add_transaction_title,
564
- children: /* @__PURE__ */ e(Lt, {})
570
+ title: _.add_transaction_title,
571
+ children: /* @__PURE__ */ e(Mt, {})
565
572
  }
566
573
  ),
567
574
  /* @__PURE__ */ e(
568
- Mt,
575
+ kt,
569
576
  {
570
- copy: { title: n.add_manual_account },
571
- isOpen: we,
577
+ copy: { title: _.add_manual_account },
578
+ isOpen: Se,
572
579
  onClose: () => {
573
580
  U(!1);
574
581
  },
575
- onPrimaryAction: Re
582
+ onPrimaryAction: Me
576
583
  }
577
584
  ),
578
585
  /* @__PURE__ */ e(
579
- lt,
586
+ it,
580
587
  {
581
- onClose: He,
582
- showConnectWidget: ve,
583
- title: n.add_manual_account
588
+ onClose: Re,
589
+ showConnectWidget: we,
590
+ title: _.add_manual_account
584
591
  }
585
592
  )
586
593
  ]
587
594
  }
588
595
  );
589
- }, ba = x(Bt);
596
+ }, Aa = w(Bt);
590
597
  export {
591
- Mt as AddAccountModal,
592
- wa as BottomActions,
593
- ka as ExportCsvAction,
594
- Na as TRANSACTION_EVENTS,
595
- va as TopActions,
596
- Sa as TransactionApi,
597
- Fe as TransactionDetails,
598
- Ue as TransactionList,
599
- Ia as TransactionRow,
600
- Oa as TransactionStore,
598
+ kt as AddAccountModal,
599
+ va as BottomActions,
600
+ Ra as ExportCsvAction,
601
+ Oa as TRANSACTION_EVENTS,
602
+ Da as TopActions,
603
+ wa as TransactionApi,
604
+ Ge as TransactionDetails,
605
+ We as TransactionList,
606
+ Na as TransactionRow,
607
+ La as TransactionStore,
601
608
  Et as TransactionTable,
602
- ba as TransactionWidget,
603
- Ke as exportTransactionsToCSV,
609
+ Aa as TransactionWidget,
610
+ Ue as exportTransactionsToCSV,
604
611
  P as useTransactionsUiStore
605
612
  };