@mx-cartographer/experiences 7.3.3-alpha.mega1 → 7.4.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 (131) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/{Account-YwUMFz93.mjs → Account-01wOyrH1.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-BgCST7mK.mjs → AccountDetailsContent-gke-5zMF.mjs} +10 -10
  4. package/dist/{AccountDetailsHeader-jAFWoHj7.mjs → AccountDetailsHeader-CRzfuFA2.mjs} +7 -7
  5. package/dist/{AccountFields-DPxMPBF0.mjs → AccountFields-CPkGZ3SD.mjs} +5 -5
  6. package/dist/{AccountListItem-D6rWAreC.mjs → AccountListItem-D4uG9yC-.mjs} +4 -4
  7. package/dist/{AccountStore-B5E98oM1.mjs → AccountStore-C1zMBzHq.mjs} +40 -29
  8. package/dist/{Accounts-UIlYCmHb.mjs → Accounts-D7QljYas.mjs} +1 -1
  9. package/dist/{BudgetUtil-CXvenbdN.mjs → BudgetUtil-wjoNuj7B.mjs} +1 -1
  10. package/dist/{CategorySelectorDrawer-Buy70Y3V.mjs → CategorySelectorDrawer-DqJK_rrL.mjs} +3 -3
  11. package/dist/{CategoryStore-BEdFs69_.mjs → CategoryStore-U7hOZAbP.mjs} +1 -1
  12. package/dist/{CategoryUtil-BR3H5i6n.mjs → CategoryUtil-DUM8NuGO.mjs} +1 -1
  13. package/dist/{ConnectDrawer-CbxHKlRv.mjs → ConnectDrawer-CuUj16NH.mjs} +2 -2
  14. package/dist/{ConnectionsDrawer-C6kanU7I.mjs → ConnectionsDrawer-Bz4uwdFE.mjs} +3 -3
  15. package/dist/{CurrencyInput-lSC7oPDg.mjs → CurrencyInput-xH-hqry9.mjs} +1 -1
  16. package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CBdcsyuk.mjs} +3 -3
  17. package/dist/{DebtsStore-DgIcphe_.mjs → DebtsStore-Bu8rRRSL.mjs} +1 -1
  18. package/dist/{Dialog-CWW597AF.mjs → Dialog-BPTr3qHE.mjs} +2 -2
  19. package/dist/Drawer-BEtCk82g.mjs +163 -0
  20. package/dist/{EmptyState-DA_lfRBv.mjs → EmptyState-DoxNUae-.mjs} +24 -22
  21. package/dist/{ExportCsvAction-DNSgmdyv.mjs → ExportCsvAction-DzTrtPzk.mjs} +3 -3
  22. package/dist/FinstrongStore-CfD6bbJk.mjs +441 -0
  23. package/dist/{GoalStore-CAlmSu4U.mjs → GoalStore-j6QYHgEa.mjs} +3 -3
  24. package/dist/{Help-hi9I9EYP.mjs → Help-BnPXM_N2.mjs} +2 -2
  25. package/dist/LineChart-DttMO7uS.mjs +581 -0
  26. package/dist/{ListItemAction-BmL5buOf.mjs → ListItemAction-uobBrm_a.mjs} +10 -10
  27. package/dist/{ManageIncome-Cypo9qY4.mjs → ManageIncome-CU5C0AeO.mjs} +97 -95
  28. package/dist/{MicroWidgetContainer-CFdMGJKg.mjs → MicroWidgetContainer-DEiRnYVa.mjs} +1 -1
  29. package/dist/{MiniWidgetContainer-BdgBvpga.mjs → MiniWidgetContainer-CmXpTylX.mjs} +1 -1
  30. package/dist/{NetWorthStore-CxqIxAgN.mjs → NetWorthStore-CpL_kqvx.mjs} +2 -2
  31. package/dist/{NotificationSettings-DxytNHlN.mjs → NotificationSettings-DI5B1spM.mjs} +5 -5
  32. package/dist/{OriginalBalanceAction-V6FEoIDe.mjs → OriginalBalanceAction-CCmnsd7y.mjs} +3 -3
  33. package/dist/{RecurringSettings-iIupYxJW.mjs → RecurringSettings-Cm5Bqcai.mjs} +4 -4
  34. package/dist/{RecurringTransactions-ej39mgA6.mjs → RecurringTransactions-CngsRZ3K.mjs} +45 -44
  35. package/dist/{RecurringTransactionsStore-BiwCzScZ.mjs → RecurringTransactionsStore-Bc1wCiNB.mjs} +1 -1
  36. package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-BuJ03S9d.mjs} +16 -16
  37. package/dist/SpendingLegend-B2BYr8B4.mjs +193 -0
  38. package/dist/{TransactionDetails-BUoNbsu-.mjs → TransactionDetails-CtbBBSoU.mjs} +396 -386
  39. package/dist/{TransactionStore-CtGTg0XS.mjs → TransactionStore-Dz-G8Wd0.mjs} +3 -3
  40. package/dist/{TrendsStore-5PvDT_o6.mjs → TrendsStore-BW9FGQeE.mjs} +1 -1
  41. package/dist/{User-Bj34_i8g.mjs → User-wXzDI4M8.mjs} +2 -2
  42. package/dist/{WidgetContainer-BnTgAfQn.mjs → WidgetContainer-6dsjtOVg.mjs} +4 -4
  43. package/dist/accounts/components/AccountsListCompact.d.ts +10 -0
  44. package/dist/accounts/index.es.js +17 -17
  45. package/dist/accounts/stores/AccountStore.d.ts +2 -0
  46. package/dist/analytics/index.es.js +2 -2
  47. package/dist/budgets/index.es.js +13 -13
  48. package/dist/cashflow/index.es.js +49 -49
  49. package/dist/categories/index.es.js +2 -2
  50. package/dist/common/components/Select.d.ts +4 -2
  51. package/dist/common/components/charts/LineChart.d.ts +12 -2
  52. package/dist/common/components/charts/linechart/CustomLegend.d.ts +3 -1
  53. package/dist/common/components/charts/linechart/CustomMark.d.ts +4 -0
  54. package/dist/common/components/drawer/Drawer.d.ts +3 -0
  55. package/dist/common/components/drawer/Footer.d.ts +17 -0
  56. package/dist/common/index.es.js +33 -33
  57. package/dist/common/types/Finstrong.d.ts +54 -0
  58. package/dist/common/types/Widgets.d.ts +1 -0
  59. package/dist/common/types/index.d.ts +1 -1
  60. package/dist/common/types/localization/FinstrongCopy.d.ts +105 -2
  61. package/dist/common/types/localization/GoalsCopy.d.ts +1 -0
  62. package/dist/dashboard/index.es.js +2 -2
  63. package/dist/debts/index.es.js +11 -11
  64. package/dist/{exportTransactionsToCSV-C4PkIYP6.mjs → exportTransactionsToCSV-Cz2t0lmA.mjs} +2 -2
  65. package/dist/finstrong/FinstrongWidget.d.ts +1 -1
  66. package/dist/finstrong/api/FinstrongApi.d.ts +5 -0
  67. package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +3 -1
  68. package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +4 -0
  69. package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +4 -0
  70. package/dist/finstrong/components/FinancialStrengthGraph.d.ts +7 -1
  71. package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +3 -0
  72. package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +3 -0
  73. package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +4 -0
  74. package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +3 -0
  75. package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
  76. package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +4 -1
  77. package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
  78. package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
  79. package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +4 -3
  80. package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +10 -0
  81. package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
  82. package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +6 -0
  83. package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +4 -0
  84. package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +4 -0
  85. package/dist/finstrong/components/ProgressBar.d.ts +15 -0
  86. package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +3 -0
  87. package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +3 -0
  88. package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +4 -0
  89. package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +3 -0
  90. package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +3 -0
  91. package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +4 -0
  92. package/dist/finstrong/components/StatusChip.d.ts +5 -0
  93. package/dist/finstrong/components/onboarding/Onboarding.d.ts +2 -0
  94. package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +17 -0
  95. package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +8 -0
  96. package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +8 -0
  97. package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +14 -0
  98. package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +8 -0
  99. package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +4 -0
  100. package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +4 -0
  101. package/dist/finstrong/components/shared/Accounts.d.ts +8 -0
  102. package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +25 -0
  103. package/dist/finstrong/components/shared/DialScoreCard.d.ts +7 -1
  104. package/dist/finstrong/components/shared/DoubleBarChart.d.ts +28 -0
  105. package/dist/finstrong/components/shared/LineGraph.d.ts +7 -0
  106. package/dist/finstrong/components/shared/TotalCard.d.ts +8 -0
  107. package/dist/finstrong/components/shared/Transactions.d.ts +11 -0
  108. package/dist/finstrong/constants/index.d.ts +20 -0
  109. package/dist/finstrong/index.es.js +3174 -1069
  110. package/dist/finstrong/stores/FinstrongStore.d.ts +21 -2
  111. package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
  112. package/dist/goals/index.es.js +15 -15
  113. package/dist/help/index.es.js +3 -3
  114. package/dist/{hooks-Cy8JnjCg.mjs → hooks-C41HAxM5.mjs} +4 -4
  115. package/dist/investments/index.es.js +5 -5
  116. package/dist/merchants/index.es.js +1 -1
  117. package/dist/networth/index.es.js +33 -33
  118. package/dist/notifications/index.es.js +4 -4
  119. package/dist/recurringtransactions/index.es.js +43 -43
  120. package/dist/settings/index.es.js +8 -8
  121. package/dist/spending/index.es.js +261 -436
  122. package/dist/transactions/components/shared/TransactionList.d.ts +1 -0
  123. package/dist/transactions/index.es.js +15 -15
  124. package/dist/trends/index.es.js +16 -16
  125. package/dist/{useAccountDisplayName-D6sQsNNQ.mjs → useAccountDisplayName-CMMlIOXF.mjs} +2 -2
  126. package/dist/{useInsightsEnabled-BxytCjq5.mjs → useInsightsEnabled-CNjP5cfR.mjs} +1 -1
  127. package/package.json +1 -1
  128. package/dist/Drawer-kEE73B87.mjs +0 -113
  129. package/dist/FinstrongStore-CL7t5lBL.mjs +0 -101
  130. package/dist/LineChart-eK4IQImU.mjs +0 -541
  131. package/dist/finstrong/utils/Finstrong.d.ts +0 -6
@@ -1,45 +1,45 @@
1
1
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
- import _ from "react";
2
+ import u from "react";
3
3
  import { observer as A } from "mobx-react-lite";
4
4
  import { useVirtualizer as Re } from "@tanstack/react-virtual";
5
5
  import v from "@mui/material/Box";
6
- import Z from "@mui/material/Divider";
7
- import J from "@mui/material/List";
8
- import { MerchantLogo as ge, Icon as C, Text as T, useTokens as ee, CategoryIcon as he, CategoryIconVariants as be, IconWeight as D, P as le, H1 as Ae, TextField as Te } from "@mxenabled/mxui";
9
- import B from "@mui/material/ListItemAvatar";
6
+ import J from "@mui/material/Divider";
7
+ import Q from "@mui/material/List";
8
+ import { MerchantLogo as ge, Icon as C, Text as h, useTokens as te, CategoryIcon as he, CategoryIconVariants as be, IconWeight as D, P as ce, H1 as Ae, TextField as Te } from "@mxenabled/mxui";
9
+ import $ from "@mui/material/ListItemAvatar";
10
10
  import M from "@mui/material/ListItemText";
11
11
  import b from "@mui/material/Stack";
12
- import { T as Pe, L as Ge, O as h, C as Me, b as Ke, i as $e } from "./User-Bj34_i8g.mjs";
13
- import { G as Be, h as w, u as x, g as L, m as xe, b as Fe, p as He } from "./hooks-Cy8JnjCg.mjs";
14
- import { f as te } from "./NumberFormatting-Buh7u8Oi.mjs";
15
- import { Receipt as ze, Delete as oe, ChevronRight as Ue, Cancel as ie, Search as Xe, Edit as Ve, Flag as We } from "@mxenabled/mx-icons";
16
- import { fromUnixTime as W } from "date-fns/fromUnixTime";
12
+ import { T as Pe, L as Ge, O as g, C as Me, b as Ke, i as $e } from "./User-wXzDI4M8.mjs";
13
+ import { G as Be, h as w, u as N, g as O, m as xe, b as Fe, p as He } from "./hooks-C41HAxM5.mjs";
14
+ import { f as ae } from "./NumberFormatting-Buh7u8Oi.mjs";
15
+ import { Receipt as ze, Delete as ie, ChevronRight as Ue, Cancel as se, Search as Xe, Edit as Ve, Flag as We } from "@mxenabled/mx-icons";
16
+ import { fromUnixTime as Y } from "date-fns/fromUnixTime";
17
17
  import { isSameDay as Ne } from "date-fns/isSameDay";
18
- import { h as Ye } from "./DateUtil-BcuH7ErC.mjs";
18
+ import { h as Ye } from "./DateUtil-CBdcsyuk.mjs";
19
19
  import { L as Ie } from "./Loader-DUaFpDGv.mjs";
20
- import { A as P } from "./WidgetContainer-BnTgAfQn.mjs";
21
- import ne from "@mui/material/Paper";
22
- import ce from "@mui/material/Button";
20
+ import { A as P } from "./WidgetContainer-6dsjtOVg.mjs";
21
+ import re from "@mui/material/Paper";
22
+ import de from "@mui/material/Button";
23
23
  import je from "@mui/material/FormGroup";
24
- import Q from "@mui/material/IconButton";
24
+ import ee from "@mui/material/IconButton";
25
25
  import ve from "@mui/material/TextField";
26
26
  import qe from "@mui/material/ToggleButton";
27
27
  import De from "@mui/material/styles/useTheme";
28
28
  import z from "@mui/material/Avatar";
29
- import F from "@mui/material/ListItem";
30
- import { a as V, f as we, D as Ee } from "./Dialog-CWW597AF.mjs";
29
+ import B from "@mui/material/ListItem";
30
+ import { D as W, f as we, a as Ee } from "./Dialog-BPTr3qHE.mjs";
31
31
  import U from "@mui/material/ListItemButton";
32
32
  import X from "@mui/material/ListItemIcon";
33
- import { a as Oe } from "./CategorySelectorDrawer-Buy70Y3V.mjs";
34
- import { b as se } from "./Localization-2MODESHW.mjs";
33
+ import { a as Oe } from "./CategorySelectorDrawer-DqJK_rrL.mjs";
34
+ import { b as le } from "./Localization-2MODESHW.mjs";
35
35
  import { getUnixTime as Ze } from "date-fns/getUnixTime";
36
- import { D as de } from "./Drawer-kEE73B87.mjs";
36
+ import { D as ue } from "./Drawer-BEtCk82g.mjs";
37
37
  import ye from "@mui/material/InputAdornment";
38
38
  import Je from "@mui/material/Checkbox";
39
39
  import pe from "@mui/material/Grid";
40
- import { C as Qe } from "./CurrencyInput-lSC7oPDg.mjs";
40
+ import { C as Qe } from "./CurrencyInput-xH-hqry9.mjs";
41
41
  import et from "@mui/material/Switch";
42
- 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 || {}), re = /* @__PURE__ */ ((t) => (t[t.SplitTransaction = 0] = "SplitTransaction", t[t.HideTransaction = 1] = "HideTransaction", t[t.MerchantLogo = 2] = "MerchantLogo", t))(re || {});
42
+ var Z = /* @__PURE__ */ ((t) => (t[t.Category = 0] = "Category", t[t.Date = 1] = "Date", t[t.Memo = 2] = "Memo", t[t.Tags = 3] = "Tags", t))(Z || {}), oe = /* @__PURE__ */ ((t) => (t[t.SplitTransaction = 0] = "SplitTransaction", t[t.HideTransaction = 1] = "HideTransaction", t[t.MerchantLogo = 2] = "MerchantLogo", t))(oe || {});
43
43
  const tt = [
44
44
  0,
45
45
  1,
@@ -52,7 +52,7 @@ const tt = [
52
52
  2
53
53
  /* MerchantLogo */
54
54
  ], G = () => {
55
- if (!_.useContext(Be))
55
+ if (!u.useContext(Be))
56
56
  throw new Error("useTransactionsUiStore() must be used within the GlobalDataContext");
57
57
  return w().uiStore;
58
58
  };
@@ -71,16 +71,16 @@ function ot(t) {
71
71
  });
72
72
  }
73
73
  const it = ({ transaction: t, onClick: r }) => {
74
- const { associatedBeats: i } = w(), { expandedSplits: a } = G(), { transactions: o } = x(), { showInsights: n } = G(), s = t.transaction_type === Pe.CREDIT, d = _.useMemo(() => i.find((c) => c.associated_transaction_guid === t.guid), [i, t]);
74
+ const { associatedBeats: i } = w(), { expandedSplits: a } = G(), { transactions: o } = N(), { showInsights: n } = G(), s = t.transaction_type === Pe.CREDIT, c = u.useMemo(() => i.find((d) => d.associated_transaction_guid === t.guid), [i, t]);
75
75
  return (
76
76
  //TODO: implement common/components/ListItemRow.tsx
77
77
  /* @__PURE__ */ l(
78
78
  Ge,
79
79
  {
80
- clickEventName: h.ON_TRANSACTION_LIST_ITEM_CLICK,
80
+ clickEventName: g.ON_TRANSACTION_LIST_ITEM_CLICK,
81
81
  onClick: r ? () => r(t.guid) : void 0,
82
82
  children: [
83
- /* @__PURE__ */ e(B, { children: t.parent_guid && a.includes(t.parent_guid) ? /* @__PURE__ */ e(_.Fragment, {}) : /* @__PURE__ */ e(
83
+ /* @__PURE__ */ e($, { children: t.parent_guid && a.includes(t.parent_guid) ? /* @__PURE__ */ e(u.Fragment, {}) : /* @__PURE__ */ e(
84
84
  ge,
85
85
  {
86
86
  categoryGuid: t.top_level_category_guid || "",
@@ -96,28 +96,28 @@ const it = ({ transaction: t, onClick: r }) => {
96
96
  t.is_flagged && /* @__PURE__ */ e(C, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
97
97
  t.is_hidden && /* @__PURE__ */ e(C, { name: "visibility_off", size: 16 }),
98
98
  t.has_been_split && /* @__PURE__ */ e(C, { name: "call_split", size: 16 }),
99
- /* @__PURE__ */ e(T, { variant: "XSmall", children: t.has_been_split ? o.split_transaction_category_label : t.category })
99
+ /* @__PURE__ */ e(h, { variant: "XSmall", children: t.has_been_split ? o.split_transaction_category_label : t.category })
100
100
  ] }),
101
- d && n && /* @__PURE__ */ e(
102
- T,
101
+ c && n && /* @__PURE__ */ e(
102
+ h,
103
103
  {
104
104
  bold: !0,
105
105
  color: "action.active",
106
- onClick: (c) => {
107
- c.stopPropagation(), c.preventDefault(), ot(d.guid);
106
+ onClick: (d) => {
107
+ d.stopPropagation(), d.preventDefault(), ot(c.guid);
108
108
  },
109
109
  variant: "XSmall",
110
- children: d.short_title
110
+ children: c.short_title
111
111
  }
112
112
  )
113
113
  ] }),
114
114
  children: /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", sx: { gap: 8 }, children: [
115
- /* @__PURE__ */ l(T, { bold: !0, variant: "Body", children: [
115
+ /* @__PURE__ */ l(h, { bold: !0, variant: "Body", children: [
116
116
  t.is_hidden && o.hide_trnx_cancel_hidden_note,
117
117
  t.payee || t.description || t.feed_description
118
118
  ] }),
119
119
  /* @__PURE__ */ l(
120
- T,
120
+ h,
121
121
  {
122
122
  bold: !0,
123
123
  color: s ? "success.main" : "text.primary",
@@ -125,7 +125,7 @@ const it = ({ transaction: t, onClick: r }) => {
125
125
  variant: "Body",
126
126
  children: [
127
127
  s ? "+" : "",
128
- te(t.amount, "0,0.00")
128
+ ae(t.amount, "0,0.00")
129
129
  ]
130
130
  }
131
131
  )
@@ -139,20 +139,20 @@ const it = ({ transaction: t, onClick: r }) => {
139
139
  }, st = A(it), lt = ({
140
140
  bgcolor: t = "background.default",
141
141
  children: r
142
- }) => /* @__PURE__ */ e(v, { display: "inline-block", sx: { bgcolor: t, py: 4, width: "100%" }, children: /* @__PURE__ */ e(T, { bold: !0, sx: { pl: 24 }, variant: "XSmall", children: r }) }), ct = ({ showIcon: t = !0, showSubtitle: r = !0 }) => {
143
- const i = ee(), { transactions: a } = x();
142
+ }) => /* @__PURE__ */ e(v, { display: "inline-block", sx: { bgcolor: t, py: 6, width: "100%" }, children: /* @__PURE__ */ e(h, { bold: !0, sx: { pl: 24 }, variant: "XSmall", children: r }) }), ct = ({ showIcon: t = !0, showSubtitle: r = !0 }) => {
143
+ const i = te(), { transactions: a } = N();
144
144
  return /* @__PURE__ */ l(b, { alignItems: "center", gap: i.Spacing.Small, height: "auto", mt: i.Spacing.Large, children: [
145
145
  t && /* @__PURE__ */ e(ze, { color: "secondary", sx: { fontSize: 32 } }),
146
- /* @__PURE__ */ e(T, { bold: !0, color: "secondary", variant: "Small", children: a.zero_state_no_transactions }),
147
- r && /* @__PURE__ */ e(T, { color: "secondary", variant: "XSmall", children: a.zero_state_there_are_no_transactions })
146
+ /* @__PURE__ */ e(h, { bold: !0, color: "secondary", variant: "Small", children: a.zero_state_no_transactions }),
147
+ r && /* @__PURE__ */ e(h, { color: "secondary", variant: "XSmall", children: a.zero_state_there_are_no_transactions })
148
148
  ] });
149
149
  }, dt = A(ct), Se = (t, r) => {
150
- const i = W(r[t].date), a = W(r[t - 1]?.date);
150
+ const i = Y(r[t].date), a = Y(r[t - 1]?.date);
151
151
  return !Ne(i, a);
152
- }, _t = (t, r) => {
153
- const i = W(r[t].date), a = W(r[t + 1]?.date);
152
+ }, ut = (t, r) => {
153
+ const i = Y(r[t].date), a = Y(r[t + 1]?.date);
154
154
  return Ne(i, a);
155
- }, Ce = 65, fe = 34, ut = ({
155
+ }, Ce = 65, fe = 32, _t = ({
156
156
  bgcolor: t,
157
157
  filter: r,
158
158
  height: i = "calc(100dvh - 36px)",
@@ -160,56 +160,64 @@ const it = ({ transaction: t, onClick: r }) => {
160
160
  onClick: o,
161
161
  showInsights: n = !1,
162
162
  showLoader: s = !1,
163
- showHiddenTransactions: d = !1,
164
- width: c = "100%",
165
- zeroState: u = /* @__PURE__ */ e(dt, {})
163
+ showHiddenTransactions: c = !1,
164
+ transaction: d,
165
+ width: _ = "100%",
166
+ zeroState: m = /* @__PURE__ */ e(dt, {})
166
167
  }) => {
167
- const { isLoading: m, sortedTransactions: p } = w(), g = _.useMemo(() => {
168
- const I = r ? p.filter(r) : p;
169
- return d ? I : I.filter((R) => !R.is_hidden);
170
- }, [p, d]), { clearExpandedSplits: S, setShowInsights: y, toggleSplit: N } = G(), { onEvent: f } = L(), k = (I) => {
171
- const R = g.find((Y) => Y.guid === I);
168
+ const { isLoading: p, sortedTransactions: S } = w(), y = u.useMemo(() => {
169
+ const L = r ? S.filter(r) : S, R = d ?? L;
170
+ return c ? R : R.filter((V) => !V.is_hidden);
171
+ }, [S, c]), { clearExpandedSplits: T, setShowInsights: I, toggleSplit: f } = G(), { onEvent: k } = O(), F = (L) => {
172
+ const R = y.find((V) => V.guid === L);
172
173
  if (R?.has_been_split) {
173
- N(R.guid);
174
+ f(R.guid);
174
175
  return;
175
176
  }
176
- f(P.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
177
+ k(P.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
177
178
  account_guid: R?.account_guid,
178
- transaction_guid: I
179
- }), o?.(I);
180
- }, K = _.useRef(null), $ = Re({
181
- count: g.length,
182
- getScrollElement: () => K.current,
183
- estimateSize: (I) => Ce + (Se(I, g) ? fe : 0),
179
+ transaction_guid: L
180
+ }), o?.(L);
181
+ }, j = u.useRef(null), K = Re({
182
+ count: y.length,
183
+ getScrollElement: () => j.current,
184
+ estimateSize: (L) => Ce + (Se(L, y) ? fe : 0),
184
185
  overscan: 5
185
186
  });
186
- return _.useEffect(() => $.measure(), [g]), _.useEffect(() => y(n), [n]), _.useEffect(() => () => S(), []), /* @__PURE__ */ e(J, { sx: { width: c }, children: /* @__PURE__ */ e(v, { height: i, overflow: "auto", ref: K, width: c, children: /* @__PURE__ */ l(
187
+ return u.useEffect(() => K.measure(), [y]), u.useEffect(() => I(n), [n]), u.useEffect(() => () => T(), []), /* @__PURE__ */ e(Q, { sx: { width: _ }, children: /* @__PURE__ */ e(v, { height: i, overflow: "auto", ref: j, width: _, children: /* @__PURE__ */ l(
187
188
  v,
188
189
  {
189
190
  height: (
190
191
  // set the height to auto when there are no transactions so the zero state isn't set to 0
191
- $.getVirtualItems().length === 0 ? "auto" : $.getTotalSize()
192
+ K.getVirtualItems().length === 0 ? "auto" : K.getTotalSize()
192
193
  ),
193
194
  position: "relative",
194
195
  width: "100%",
195
196
  children: [
196
- (m || s) && a,
197
- !m && !s && $.getVirtualItems().length === 0 && u,
198
- !m && !s && $.getVirtualItems().length > 0 && $.getVirtualItems().map((I) => {
199
- const R = g[I.index], Y = Se(I.index, g), _e = _t(I.index, g), ue = Ce + (Y ? fe : 0);
197
+ (p || s) && a,
198
+ !p && !s && K.getVirtualItems().length === 0 && m,
199
+ !p && !s && K.getVirtualItems().length > 0 && K.getVirtualItems().map((L) => {
200
+ const R = y[L.index], V = Se(L.index, y), _e = ut(L.index, y), x = Ce + (V ? fe : 0);
200
201
  return /* @__PURE__ */ l(
201
202
  v,
202
203
  {
203
204
  sx: {
204
- height: ue,
205
+ height: x,
205
206
  position: "absolute",
206
- transform: `translateY(${I.start}px)`,
207
- width: "100%"
207
+ transform: `translateY(${L.start}px)`,
208
+ width: "100%",
209
+ bgcolor: "background.paper"
208
210
  },
209
211
  children: [
210
- Y && /* @__PURE__ */ e(lt, { bgcolor: t, children: Ye(R.date) }),
211
- /* @__PURE__ */ e(st, { onClick: k, transaction: R }),
212
- /* @__PURE__ */ e(Z, { sx: { ml: _e ? 24 : 0 } })
212
+ V && /* @__PURE__ */ e(lt, { bgcolor: t, children: Ye(R.date) }),
213
+ /* @__PURE__ */ e(
214
+ st,
215
+ {
216
+ ...o && { onClick: F },
217
+ transaction: R
218
+ }
219
+ ),
220
+ /* @__PURE__ */ e(J, { sx: { ml: _e ? 68 : 0 } })
213
221
  ]
214
222
  },
215
223
  R.guid
@@ -218,14 +226,14 @@ const it = ({ transaction: t, onClick: r }) => {
218
226
  ]
219
227
  }
220
228
  ) }) });
221
- }, Ra = A(ut), mt = ({ transaction: t }) => {
222
- const { addOrUpdateTransactionRule: r, updateTransaction: i } = w(), { categories: a } = xe(), { onEvent: o } = L(), { setShouldDisableDrawerScroll: n, updateManualTransaction: s } = G(), { transactions: d } = x(), [c, u] = _.useState(!1), [m, p] = _.useState(""), g = async (f) => {
229
+ }, Ra = A(_t), mt = ({ transaction: t }) => {
230
+ const { addOrUpdateTransactionRule: r, updateTransaction: i } = w(), { categories: a } = xe(), { onEvent: o } = O(), { setShouldDisableDrawerScroll: n, updateManualTransaction: s } = G(), { transactions: c } = N(), [d, _] = u.useState(!1), [m, p] = u.useState(""), S = async (f) => {
223
231
  await i({ ...t, category_guid: m }), f && await r(m, t), p(""), o(P.TRANSACTION_DETAILS_CLICK_CATEGORY, {
224
232
  transaction_guid: t.guid
225
233
  });
226
- }, S = (f) => {
234
+ }, y = (f) => {
227
235
  if (t.is_manual && !t.guid) {
228
- const k = a.find((K) => K.guid === f);
236
+ const k = a.find((F) => F.guid === f);
229
237
  s({
230
238
  ...t,
231
239
  category: k?.name,
@@ -234,22 +242,22 @@ const it = ({ transaction: t, onClick: r }) => {
234
242
  });
235
243
  } else
236
244
  p(f);
237
- y();
238
- }, y = () => {
239
- u(!1), n(!1);
240
- }, N = _.useMemo(
245
+ T();
246
+ }, T = () => {
247
+ _(!1), n(!1);
248
+ }, I = u.useMemo(
241
249
  () => a.find((f) => f.guid === m),
242
250
  [m]
243
251
  );
244
- return /* @__PURE__ */ l(_.Fragment, { children: [
245
- /* @__PURE__ */ e(F, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
252
+ return /* @__PURE__ */ l(u.Fragment, { children: [
253
+ /* @__PURE__ */ e(B, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
246
254
  U,
247
255
  {
248
256
  onClick: () => {
249
- o(h.ON_TRANSACTION_CATEGORY_CLICK), u(!0);
257
+ o(g.ON_TRANSACTION_CATEGORY_CLICK), _(!0);
250
258
  },
251
259
  children: [
252
- /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(z, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(
260
+ /* @__PURE__ */ e($, { children: /* @__PURE__ */ e(z, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(
253
261
  he,
254
262
  {
255
263
  categoryGuid: t.top_level_category_guid,
@@ -261,9 +269,9 @@ const it = ({ transaction: t, onClick: r }) => {
261
269
  /* @__PURE__ */ e(
262
270
  M,
263
271
  {
264
- primary: d.category_title,
272
+ primary: c.category_title,
265
273
  primaryTypographyProps: { variant: "XSmall" },
266
- secondary: /* @__PURE__ */ e(T, { bold: !0, variant: "Body", children: t.category ?? d.actions_select_a_category })
274
+ secondary: /* @__PURE__ */ e(h, { bold: !0, variant: "Body", children: t.category ?? c.actions_select_a_category })
267
275
  }
268
276
  ),
269
277
  /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(C, { name: "chevron_right", weight: D.Dark }) })
@@ -274,60 +282,60 @@ const it = ({ transaction: t, onClick: r }) => {
274
282
  Oe,
275
283
  {
276
284
  initialSelected: t.category_guid,
277
- onClose: y,
278
- onSelect: S,
279
- showDrawer: c,
280
- title: d.actions_select_a_category
285
+ onClose: T,
286
+ onSelect: y,
287
+ showDrawer: d,
288
+ title: c.actions_select_a_category
281
289
  }
282
290
  ),
283
291
  /* @__PURE__ */ e(
284
- V,
292
+ W,
285
293
  {
286
294
  copy: {
287
- title: se(
288
- d.actions_apply_to_all_transaction_types,
295
+ title: le(
296
+ c.actions_apply_to_all_transaction_types,
289
297
  t.description
290
298
  )
291
299
  },
292
300
  isOpen: !!m,
293
301
  onClose: () => p(""),
294
- onPrimaryAction: () => g(!0),
295
- onSecondaryAction: () => g(!1),
296
- primaryText: d.actions_apply_to_all,
297
- secondaryText: d.actions_this_time_only,
298
- children: /* @__PURE__ */ e(le, { variant: "Paragraph", children: se(
299
- d.actions_all_past_and_future,
302
+ onPrimaryAction: () => S(!0),
303
+ onSecondaryAction: () => S(!1),
304
+ primaryText: c.actions_apply_to_all,
305
+ secondaryText: c.actions_this_time_only,
306
+ children: /* @__PURE__ */ e(ce, { variant: "Paragraph", children: le(
307
+ c.actions_all_past_and_future,
300
308
  t.description,
301
- N?.name
309
+ I?.name
302
310
  ) })
303
311
  }
304
312
  )
305
313
  ] });
306
314
  }, pt = ({ transaction: t }) => {
307
- const r = ee(), { onEvent: i } = L(), { updateTransaction: a } = w(), { updateManualTransaction: o } = G(), { common: n, transactions: s } = x(), [d, c] = _.useState(!1), [u, m] = _.useState(t.date), p = (S) => {
308
- m(Ze(S));
309
- }, g = async () => {
315
+ const r = te(), { onEvent: i } = O(), { updateTransaction: a } = w(), { updateManualTransaction: o } = G(), { common: n, transactions: s } = N(), [c, d] = u.useState(!1), [_, m] = u.useState(t.date), p = (y) => {
316
+ m(Ze(y));
317
+ }, S = async () => {
310
318
  if (t.is_manual && !t.guid) {
311
- o({ ...t, date: u }), c(!1);
319
+ o({ ...t, date: _ }), d(!1);
312
320
  return;
313
321
  }
314
- await a({ ...t, date: u }), i(P.TRANSACTION_DETAILS_CLICK_DATE, { transaction_guid: t.guid }), c(!1);
322
+ await a({ ...t, date: _ }), i(P.TRANSACTION_DETAILS_CLICK_DATE, { transaction_guid: t.guid }), d(!1);
315
323
  };
316
324
  return /* @__PURE__ */ l(v, { className: "mx-txn-date-action", children: [
317
- /* @__PURE__ */ e(F, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
325
+ /* @__PURE__ */ e(B, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
318
326
  U,
319
327
  {
320
328
  onClick: () => {
321
- i(h.ON_TRANSACTION_DATE_CLICK), c(!0);
329
+ i(g.ON_TRANSACTION_DATE_CLICK), d(!0);
322
330
  },
323
331
  children: [
324
- /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(z, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(C, { name: "calendar_month", sx: { color: "text.primary" }, weight: D.Dark }) }) }),
332
+ /* @__PURE__ */ e($, { children: /* @__PURE__ */ e(z, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(C, { name: "calendar_month", sx: { color: "text.primary" }, weight: D.Dark }) }) }),
325
333
  /* @__PURE__ */ e(
326
334
  M,
327
335
  {
328
336
  primary: s.date_title,
329
337
  primaryTypographyProps: { variant: "XSmall" },
330
- secondary: /* @__PURE__ */ e(T, { bold: !0, variant: "Body", children: we(W(t.date), Ee.YEAR_MONTH_DAY) })
338
+ secondary: /* @__PURE__ */ e(h, { bold: !0, variant: "Body", children: we(Y(t.date), Ee.YEAR_MONTH_DAY) })
331
339
  }
332
340
  ),
333
341
  /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(C, { name: "chevron_right", weight: D.Dark }) })
@@ -335,19 +343,19 @@ const it = ({ transaction: t, onClick: r }) => {
335
343
  }
336
344
  ) }),
337
345
  /* @__PURE__ */ e(
338
- de,
346
+ ue,
339
347
  {
340
348
  ariaLabelClose: n.close_aria,
341
- isOpen: d,
342
- onClose: () => c(!1),
343
- onPrimaryAction: g,
349
+ isOpen: c,
350
+ onClose: () => d(!1),
351
+ onPrimaryAction: S,
344
352
  primaryText: n.save_button,
345
353
  secondaryText: n.cancel_button,
346
354
  title: s.date_edit_title,
347
355
  children: /* @__PURE__ */ e(b, { alignItems: "center", mt: r.Spacing.XXLarge, children: /* @__PURE__ */ e(
348
356
  Me,
349
357
  {
350
- beginDate: W(u),
358
+ beginDate: Y(_),
351
359
  copy: {
352
360
  nextAria: s.date_next_aria,
353
361
  prevAria: s.date_prev_aria,
@@ -361,18 +369,18 @@ const it = ({ transaction: t, onClick: r }) => {
361
369
  )
362
370
  ] });
363
371
  }, gt = ({ transaction: t }) => {
364
- const { onEvent: r } = L(), { removeTransaction: i } = w(), { setShouldDisableDrawerScroll: a } = G(), { common: o, transactions: n } = x(), [s, d] = _.useState(!1), c = async () => {
365
- await i(t.guid), r(h.ON_TRANSACTION_DELETE_DELETED);
372
+ const { onEvent: r } = O(), { removeTransaction: i } = w(), { setShouldDisableDrawerScroll: a } = G(), { common: o, transactions: n } = N(), [s, c] = u.useState(!1), d = async () => {
373
+ await i(t.guid), r(g.ON_TRANSACTION_DELETE_DELETED);
366
374
  };
367
375
  return /* @__PURE__ */ l(v, { className: "mx-txn-delete", children: [
368
- t && /* @__PURE__ */ e(F, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
376
+ t && /* @__PURE__ */ e(B, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
369
377
  U,
370
378
  {
371
379
  onClick: () => {
372
- r(h.ON_TRANSACTION_DELETE_CLICK), a(!0), d(!0);
380
+ r(g.ON_TRANSACTION_DELETE_CLICK), a(!0), c(!0);
373
381
  },
374
382
  children: [
375
- /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(z, { variant: "rounded", children: /* @__PURE__ */ e(oe, { color: "secondary", fontSize: "small" }) }) }),
383
+ /* @__PURE__ */ e($, { children: /* @__PURE__ */ e(z, { variant: "rounded", children: /* @__PURE__ */ e(ie, { color: "secondary", fontSize: "small" }) }) }),
376
384
  /* @__PURE__ */ e(
377
385
  M,
378
386
  {
@@ -380,90 +388,90 @@ const it = ({ transaction: t, onClick: r }) => {
380
388
  secondary: n.manual_transaction_delete_subtitle
381
389
  }
382
390
  ),
383
- /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(oe, {}) })
391
+ /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(ie, {}) })
384
392
  ]
385
393
  }
386
394
  ) }),
387
395
  /* @__PURE__ */ e(
388
- V,
396
+ W,
389
397
  {
390
398
  copy: { title: n.manual_transaction_delete_title },
391
399
  isOpen: s,
392
400
  onClose: () => {
393
- a(!1), d(!1);
401
+ a(!1), c(!1);
394
402
  },
395
- onPrimaryAction: c,
396
- onSecondaryAction: () => r(h.ON_TRANSACTION_DELETE_CANCEL),
403
+ onPrimaryAction: d,
404
+ onSecondaryAction: () => r(g.ON_TRANSACTION_DELETE_CANCEL),
397
405
  primaryText: o.delete_button,
398
406
  secondaryText: o.cancel_button,
399
- children: /* @__PURE__ */ e(T, { sx: { whiteSpace: "normal" }, variant: "Paragraph", children: n.manual_transaction_delete_description })
407
+ children: /* @__PURE__ */ e(h, { sx: { whiteSpace: "normal" }, variant: "Paragraph", children: n.manual_transaction_delete_description })
400
408
  }
401
409
  )
402
410
  ] });
403
411
  }, ht = A(gt), Tt = ({ transaction: t }) => {
404
- const { onEvent: r } = L(), { updateTransaction: i } = w(), { setShouldDisableDrawerScroll: a } = G(), { common: o, transactions: n } = x(), [s, d] = _.useState(!1), c = async () => {
412
+ const { onEvent: r } = O(), { updateTransaction: i } = w(), { setShouldDisableDrawerScroll: a } = G(), { common: o, transactions: n } = N(), [s, c] = u.useState(!1), d = async () => {
405
413
  await i({ ...t, merchant_guid: "" }), r(P.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
406
414
  transaction_guid: t.guid
407
415
  });
408
416
  };
409
417
  return /* @__PURE__ */ l(v, { className: "mx-txn-delete-logo", children: [
410
- t && /* @__PURE__ */ e(F, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
418
+ t && /* @__PURE__ */ e(B, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
411
419
  U,
412
420
  {
413
421
  onClick: () => {
414
- r(h.ON_TRANSACTION_DELETE_LOGO_CLICK), d(!0);
422
+ r(g.ON_TRANSACTION_DELETE_LOGO_CLICK), c(!0);
415
423
  },
416
424
  children: [
417
- /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(z, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(C, { name: "delete", sx: { color: "text.primary" }, weight: D.Dark }) }) }),
425
+ /* @__PURE__ */ e($, { children: /* @__PURE__ */ e(z, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(C, { name: "delete", sx: { color: "text.primary" }, weight: D.Dark }) }) }),
418
426
  /* @__PURE__ */ e(M, { primary: n.merchant_logo_title, secondary: n.merchant_logo_desc }),
419
427
  /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(C, { name: "chevron_right", weight: D.Dark }) })
420
428
  ]
421
429
  }
422
430
  ) }),
423
431
  /* @__PURE__ */ l(
424
- V,
432
+ W,
425
433
  {
426
434
  copy: { title: n.merchant_logo_modal_title },
427
435
  isOpen: s,
428
436
  onClose: () => {
429
- a(!1), d(!1);
437
+ a(!1), c(!1);
430
438
  },
431
- onPrimaryAction: c,
432
- onSecondaryAction: () => r(h.ON_TRANSACTION_DELETE_LOGO_CANCEL),
439
+ onPrimaryAction: d,
440
+ onSecondaryAction: () => r(g.ON_TRANSACTION_DELETE_LOGO_CANCEL),
433
441
  primaryText: o.delete_button,
434
442
  secondaryText: o.cancel_button,
435
443
  title: n.merchant_logo_modal_title,
436
444
  children: [
437
- /* @__PURE__ */ e(T, { sx: { whiteSpace: "normal" }, variant: "Paragraph", children: n.merchant_logo_modal_desc }),
438
- /* @__PURE__ */ e(T, { bold: !0, sx: { whiteSpace: "normal" }, variant: "Paragraph", children: ` ${n.merchant_logo_modal_desc_bold}` })
445
+ /* @__PURE__ */ e(h, { sx: { whiteSpace: "normal" }, variant: "Paragraph", children: n.merchant_logo_modal_desc }),
446
+ /* @__PURE__ */ e(h, { bold: !0, sx: { whiteSpace: "normal" }, variant: "Paragraph", children: ` ${n.merchant_logo_modal_desc_bold}` })
439
447
  ]
440
448
  }
441
449
  )
442
450
  ] });
443
451
  }, yt = A(Tt), St = ({ transaction: t }) => {
444
- const { onEvent: r } = L(), { updateTransaction: i } = w(), { setShouldDisableDrawerScroll: a } = G(), { common: o, transactions: n } = x(), [s, d] = _.useState(!1), c = t.is_hidden, u = async () => {
452
+ const { onEvent: r } = O(), { updateTransaction: i } = w(), { setShouldDisableDrawerScroll: a } = G(), { common: o, transactions: n } = N(), [s, c] = u.useState(!1), d = t.is_hidden, _ = async () => {
445
453
  await i({ ...t, is_hidden: !t.is_hidden }), r(
446
- c ? h.ON_TRANSACTION_UNHIDDEN : h.ON_TRANSACTION_HIDDEN
454
+ d ? g.ON_TRANSACTION_UNHIDDEN : g.ON_TRANSACTION_HIDDEN
447
455
  );
448
456
  };
449
457
  return /* @__PURE__ */ l(v, { className: "mx-txn-hide-transaction", children: [
450
- t && /* @__PURE__ */ e(F, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
458
+ t && /* @__PURE__ */ e(B, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
451
459
  U,
452
460
  {
453
- "aria-checked": c,
461
+ "aria-checked": d,
454
462
  onClick: () => {
455
463
  r(
456
- c ? h.ON_TRANSACTION_UNHIDE_CLICK : h.ON_TRANSACTION_HIDE_CLICK
464
+ d ? g.ON_TRANSACTION_UNHIDE_CLICK : g.ON_TRANSACTION_HIDE_CLICK
457
465
  ), r(
458
- c ? "transaction_details_click_unhide_transaction" : "transaction_details_click_hide_transaction",
466
+ d ? "transaction_details_click_unhide_transaction" : "transaction_details_click_hide_transaction",
459
467
  {
460
468
  transaction_guid: t.guid
461
469
  }
462
- ), d(!0);
470
+ ), c(!0);
463
471
  },
464
472
  role: "switch",
465
473
  children: [
466
- /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(z, { sx: { bgcolor: "border.light" }, variant: "rounded", children: c ? /* @__PURE__ */ e(
474
+ /* @__PURE__ */ e($, { children: /* @__PURE__ */ e(z, { sx: { bgcolor: "border.light" }, variant: "rounded", children: d ? /* @__PURE__ */ e(
467
475
  C,
468
476
  {
469
477
  name: "visibilityOff",
@@ -474,14 +482,14 @@ const it = ({ transaction: t, onClick: r }) => {
474
482
  /* @__PURE__ */ e(
475
483
  M,
476
484
  {
477
- primary: c ? n.hide_trnx_subtitle_unhide_trnx : n.hide_trnx_subtitle_hide_trnx,
478
- secondary: c ? n.hide_trnx_desc_unhiding : n.hide_trnx_desc_hiding
485
+ primary: d ? n.hide_trnx_subtitle_unhide_trnx : n.hide_trnx_subtitle_hide_trnx,
486
+ secondary: d ? n.hide_trnx_desc_unhiding : n.hide_trnx_desc_hiding
479
487
  }
480
488
  ),
481
489
  /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(
482
490
  et,
483
491
  {
484
- checked: c,
492
+ checked: d,
485
493
  id: "hide-transaction",
486
494
  name: "hide-transaction",
487
495
  tabIndex: -1
@@ -491,22 +499,22 @@ const it = ({ transaction: t, onClick: r }) => {
491
499
  }
492
500
  ) }),
493
501
  /* @__PURE__ */ e(
494
- V,
502
+ W,
495
503
  {
496
504
  copy: {
497
- title: c ? n.hide_trnx_subtitle_unhide_trnx : n.hide_trnx_subtitle_hide_trnx
505
+ title: d ? n.hide_trnx_subtitle_unhide_trnx : n.hide_trnx_subtitle_hide_trnx
498
506
  },
499
507
  isOpen: s,
500
508
  onClose: () => {
501
- a(!1), d(!1);
509
+ a(!1), c(!1);
502
510
  },
503
- onPrimaryAction: u,
511
+ onPrimaryAction: _,
504
512
  onSecondaryAction: () => r(
505
- c ? h.ON_TRANSACTION_UNHIDE_CANCEL_CLICK : h.ON_TRANSACTION_HIDE_CANCEL_CLICK
513
+ d ? g.ON_TRANSACTION_UNHIDE_CANCEL_CLICK : g.ON_TRANSACTION_HIDE_CANCEL_CLICK
506
514
  ),
507
- primaryText: c ? o.unhide_button : o.hide_button,
515
+ primaryText: d ? o.unhide_button : o.hide_button,
508
516
  secondaryText: o.cancel_button,
509
- children: /* @__PURE__ */ e(T, { truncate: !1, variant: "Paragraph", children: c ? n.hide_trnx_desc_unhiding : n.hide_trnx_desc_hiding })
517
+ children: /* @__PURE__ */ e(h, { truncate: !1, variant: "Paragraph", children: d ? n.hide_trnx_desc_unhiding : n.hide_trnx_desc_hiding })
510
518
  }
511
519
  )
512
520
  ] });
@@ -522,41 +530,41 @@ const it = ({ transaction: t, onClick: r }) => {
522
530
  }
523
531
  ),
524
532
  /* @__PURE__ */ l(b, { overflow: "hidden'", children: [
525
- /* @__PURE__ */ e(T, { bold: !0, mb: 4, truncate: !0, variant: "Body", children: i || n }),
533
+ /* @__PURE__ */ e(h, { bold: !0, mb: 4, truncate: !0, variant: "Body", children: i || n }),
526
534
  /* @__PURE__ */ l(Ae, { color: a ? "success.main" : "text.primary", truncate: !0, children: [
527
535
  a ? "+" : "",
528
- te(r, "0,0.00")
536
+ ae(r, "0,0.00")
529
537
  ] })
530
538
  ] })
531
539
  ] });
532
540
  }, ft = ({ transaction: t }) => {
533
- const { onEvent: r } = L(), { updateTransaction: i } = w(), { updateManualTransaction: a } = G(), { common: o, transactions: n } = x(), [s, d] = _.useState(!1), [c, u] = _.useState("");
534
- _.useEffect(() => {
535
- s && u(t.memo ? t.memo : "");
541
+ const { onEvent: r } = O(), { updateTransaction: i } = w(), { updateManualTransaction: a } = G(), { common: o, transactions: n } = N(), [s, c] = u.useState(!1), [d, _] = u.useState("");
542
+ u.useEffect(() => {
543
+ s && _(t.memo ? t.memo : "");
536
544
  }, [s]);
537
545
  const m = async () => {
538
546
  if (t.is_manual && !t.guid) {
539
- a({ ...t, memo: c }), d(!1);
547
+ a({ ...t, memo: d }), c(!1);
540
548
  return;
541
549
  }
542
- await i({ ...t, memo: c }), r(P.TRANSACTION_DETAILS_CLICK_MEMO, { transaction_guid: t.guid }), d(!1);
550
+ await i({ ...t, memo: d }), r(P.TRANSACTION_DETAILS_CLICK_MEMO, { transaction_guid: t.guid }), c(!1);
543
551
  };
544
552
  return /* @__PURE__ */ l("div", { className: "mx-txn-memo-action", children: [
545
- /* @__PURE__ */ e(F, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
553
+ /* @__PURE__ */ e(B, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
546
554
  U,
547
555
  {
548
556
  onClick: () => {
549
- r(h.ON_TRANSACTION_MEMO_CLICK), d(!0);
557
+ r(g.ON_TRANSACTION_MEMO_CLICK), c(!0);
550
558
  },
551
559
  children: [
552
- /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(z, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(C, { name: "article", sx: { color: "text.primary" }, weight: D.Dark }) }) }),
560
+ /* @__PURE__ */ e($, { children: /* @__PURE__ */ e(z, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(C, { name: "article", sx: { color: "text.primary" }, weight: D.Dark }) }) }),
553
561
  /* @__PURE__ */ e(
554
562
  M,
555
563
  {
556
564
  primary: n.memo_title,
557
565
  primaryTypographyProps: { variant: "XSmall" },
558
566
  secondary: /* @__PURE__ */ e(
559
- T,
567
+ h,
560
568
  {
561
569
  bold: !0,
562
570
  sx: { overflowWrap: "break-word", whiteSpace: "wrap" },
@@ -571,11 +579,11 @@ const it = ({ transaction: t, onClick: r }) => {
571
579
  }
572
580
  ) }),
573
581
  /* @__PURE__ */ l(
574
- de,
582
+ ue,
575
583
  {
576
584
  ariaLabelClose: o.close_aria,
577
585
  isOpen: s,
578
- onClose: () => d(!1),
586
+ onClose: () => c(!1),
579
587
  onPrimaryAction: m,
580
588
  title: n.memo_title,
581
589
  children: [
@@ -588,11 +596,11 @@ const it = ({ transaction: t, onClick: r }) => {
588
596
  fullWidth: !0,
589
597
  multiline: !0,
590
598
  name: "memo",
591
- onChange: (p) => u(p.target.value),
599
+ onChange: (p) => _(p.target.value),
592
600
  placeholder: n.memo_desc,
593
601
  rows: 4,
594
602
  sx: { px: 16 },
595
- value: c
603
+ value: d
596
604
  }
597
605
  )
598
606
  ]
@@ -600,9 +608,9 @@ const it = ({ transaction: t, onClick: r }) => {
600
608
  )
601
609
  ] });
602
610
  }, bt = A(ft), At = (t = "polite") => {
603
- const [r, i] = _.useState(""), [a, o] = _.useState(t), n = _.useCallback((d, c) => {
604
- c && o(c), i(d);
605
- }, []), s = _.useMemo(
611
+ const [r, i] = u.useState(""), [a, o] = u.useState(t), n = u.useCallback((c, d) => {
612
+ d && o(d), i(c);
613
+ }, []), s = u.useMemo(
606
614
  () => /* @__PURE__ */ e(
607
615
  v,
608
616
  {
@@ -634,8 +642,8 @@ const it = ({ transaction: t, onClick: r }) => {
634
642
  onUpdateAmount: a,
635
643
  split: o
636
644
  }) => {
637
- const n = ee(), { onEvent: s } = L(), { transactions: d } = x(), [c, u] = _.useState(`${o.amount}`), [m, p] = _.useState(!1), g = t === 0, S = (y) => {
638
- isNaN(Number(y)) || (u(y), a(t, Number(y)));
645
+ const n = te(), { onEvent: s } = O(), { transactions: c } = N(), [d, _] = u.useState(`${o.amount}`), [m, p] = u.useState(!1), S = t === 0, y = (T) => {
646
+ isNaN(Number(T)) || (_(T), a(t, Number(T)));
639
647
  };
640
648
  return /* @__PURE__ */ l(
641
649
  v,
@@ -645,10 +653,10 @@ const it = ({ transaction: t, onClick: r }) => {
645
653
  pb: n.Spacing.Tiny,
646
654
  px: n.Spacing.XSmall,
647
655
  children: [
648
- /* @__PURE__ */ l(pe, { alignItems: g ? "center" : "start", container: !0, children: [
656
+ /* @__PURE__ */ l(pe, { alignItems: S ? "center" : "start", container: !0, children: [
649
657
  /* @__PURE__ */ e(pe, { item: !0, xs: 7, children: /* @__PURE__ */ l(b, { alignItems: "start", children: [
650
658
  /* @__PURE__ */ e(
651
- ce,
659
+ de,
652
660
  {
653
661
  endIcon: /* @__PURE__ */ e(Ue, {}),
654
662
  onClick: () => p(!0),
@@ -665,21 +673,21 @@ const it = ({ transaction: t, onClick: r }) => {
665
673
  gap: n.Spacing.XSmall,
666
674
  p: n.Spacing.Small,
667
675
  children: [
668
- /* @__PURE__ */ e(ie, { sx: { fontSize: n.FontSize.Body } }),
669
- /* @__PURE__ */ e(T, { variant: "Small", children: d.split_transaction_errors_select_category })
676
+ /* @__PURE__ */ e(se, { sx: { fontSize: n.FontSize.Body } }),
677
+ /* @__PURE__ */ e(h, { variant: "Small", children: c.split_transaction_errors_select_category })
670
678
  ]
671
679
  }
672
680
  ) })
673
681
  ] }) }),
674
- /* @__PURE__ */ e(pe, { item: !0, xs: 5, children: g ? /* @__PURE__ */ e("div", { className: "mx-txn-split-manager-row-top-container", children: /* @__PURE__ */ e(T, { children: te(o.amount, "0,0.00") }) }) : /* @__PURE__ */ l(b, { alignItems: "start", children: [
682
+ /* @__PURE__ */ e(pe, { item: !0, xs: 5, children: S ? /* @__PURE__ */ e("div", { className: "mx-txn-split-manager-row-top-container", children: /* @__PURE__ */ e(h, { children: ae(o.amount, "0,0.00") }) }) : /* @__PURE__ */ l(b, { alignItems: "start", children: [
675
683
  /* @__PURE__ */ l(b, { alignItems: "start", direction: "row", gap: n.Spacing.XSmall, children: [
676
684
  /* @__PURE__ */ e(
677
685
  Qe,
678
686
  {
679
- amount: c,
680
- ariaLabel: d.split_transaction_edit_split_amount,
687
+ amount: d,
688
+ ariaLabel: c.split_transaction_edit_split_amount,
681
689
  name: "split-amount-input",
682
- setAmount: S,
690
+ setAmount: y,
683
691
  sx: {
684
692
  ".MuiOutlinedInput-input": { p: n.Spacing.Small }
685
693
  },
@@ -687,19 +695,19 @@ const it = ({ transaction: t, onClick: r }) => {
687
695
  }
688
696
  ),
689
697
  /* @__PURE__ */ e(
690
- Q,
698
+ ee,
691
699
  {
692
- "aria-label": d.split_transaction_delete_split_btn,
700
+ "aria-label": c.split_transaction_delete_split_btn,
693
701
  color: "secondary",
694
702
  onClick: () => {
695
- s(h.ON_TRANSACTION_SPLIT_DELETE_CLICK), r(t);
703
+ s(g.ON_TRANSACTION_SPLIT_DELETE_CLICK), r(t);
696
704
  },
697
705
  sx: { w: 44, h: 44 },
698
- children: /* @__PURE__ */ e(oe, {})
706
+ children: /* @__PURE__ */ e(ie, {})
699
707
  }
700
708
  )
701
709
  ] }),
702
- !c && /* @__PURE__ */ l(
710
+ !d && /* @__PURE__ */ l(
703
711
  b,
704
712
  {
705
713
  color: "error.main",
@@ -707,8 +715,8 @@ const it = ({ transaction: t, onClick: r }) => {
707
715
  gap: n.Spacing.XSmall,
708
716
  py: n.Spacing.Small,
709
717
  children: [
710
- /* @__PURE__ */ e(ie, { sx: { fontSize: n.FontSize.Body } }),
711
- /* @__PURE__ */ e(T, { variant: "Small", children: d.split_transaction_errors_enter_an_amount })
718
+ /* @__PURE__ */ e(se, { sx: { fontSize: n.FontSize.Body } }),
719
+ /* @__PURE__ */ e(h, { variant: "Small", children: c.split_transaction_errors_enter_an_amount })
712
720
  ]
713
721
  }
714
722
  )
@@ -719,11 +727,11 @@ const it = ({ transaction: t, onClick: r }) => {
719
727
  {
720
728
  initialSelected: o.category_guid,
721
729
  onClose: () => p(!1),
722
- onSelect: (y) => {
723
- i(t, y), p(!1);
730
+ onSelect: (T) => {
731
+ i(t, T), p(!1);
724
732
  },
725
733
  showDrawer: m,
726
- title: d.actions_select_a_category
734
+ title: c.actions_select_a_category
727
735
  }
728
736
  )
729
737
  ]
@@ -737,31 +745,31 @@ const it = ({ transaction: t, onClick: r }) => {
737
745
  splits: o,
738
746
  transaction: n
739
747
  }) => {
740
- const s = ee(), { transactions: d } = x(), { onEvent: c } = L(), [u, m] = _.useState(""), { announce: p, ariaLive: g } = At();
741
- return _.useEffect(() => {
748
+ const s = te(), { transactions: c } = N(), { onEvent: d } = O(), [_, m] = u.useState(""), { announce: p, ariaLive: S } = At();
749
+ return u.useEffect(() => {
742
750
  if (o.length <= 1)
743
- m(d.split_transaction_errors_min_splits), p(d.split_transaction_errors_min_splits);
751
+ m(c.split_transaction_errors_min_splits), p(c.split_transaction_errors_min_splits);
744
752
  else if (o[0].amount < 0) {
745
- const S = se(
746
- d.split_transaction_errors_totals_must_equal_amount,
747
- te(n.amount, "0,0.00")
753
+ const y = le(
754
+ c.split_transaction_errors_totals_must_equal_amount,
755
+ ae(n.amount, "0,0.00")
748
756
  );
749
- m(S), p(S);
757
+ m(y), p(y);
750
758
  } else
751
759
  m(""), p("");
752
760
  }, [o]), /* @__PURE__ */ l(v, { className: "mx-txn-split-manager", children: [
753
- o.map((S, y) => /* @__PURE__ */ e(
761
+ o.map((y, T) => /* @__PURE__ */ e(
754
762
  Nt,
755
763
  {
756
- index: y,
764
+ index: T,
757
765
  onCategoryChanged: r,
758
766
  onDeleteRow: i,
759
767
  onUpdateAmount: a,
760
- split: S
768
+ split: y
761
769
  },
762
- y
770
+ T
763
771
  )),
764
- u && /* @__PURE__ */ l(
772
+ _ && /* @__PURE__ */ l(
765
773
  b,
766
774
  {
767
775
  color: "error.main",
@@ -769,31 +777,31 @@ const it = ({ transaction: t, onClick: r }) => {
769
777
  gap: s.Spacing.XSmall,
770
778
  p: s.Spacing.Medium,
771
779
  children: [
772
- /* @__PURE__ */ e(ie, { sx: { fontSize: s.FontSize.Body } }),
773
- /* @__PURE__ */ e(T, { variant: "Small", children: u }),
774
- g
780
+ /* @__PURE__ */ e(se, { sx: { fontSize: s.FontSize.Body } }),
781
+ /* @__PURE__ */ e(h, { variant: "Small", children: _ }),
782
+ S
775
783
  ]
776
784
  }
777
785
  ),
778
786
  /* @__PURE__ */ e(v, { p: s.Spacing.Medium, children: /* @__PURE__ */ e(
779
- ce,
787
+ de,
780
788
  {
781
- "aria-label": d.split_transaction_add_split_btn,
789
+ "aria-label": c.split_transaction_add_split_btn,
782
790
  onClick: () => {
783
- c(h.ON_TRANSACTION_SPLIT_ADD_CLICK), t();
791
+ d(g.ON_TRANSACTION_SPLIT_ADD_CLICK), t();
784
792
  },
785
- children: d.split_transaction_add_split_btn
793
+ children: c.split_transaction_add_split_btn
786
794
  }
787
795
  ) })
788
796
  ] });
789
797
  }, vt = A(It), Dt = ({ transaction: t }) => {
790
- const { onEvent: r } = L(), { splitTransaction: i, unSplitTransaction: a } = w(), { common: o, transactions: n } = x(), { setShouldDisableDrawerScroll: s } = G(), { categories: d } = xe(), c = {
798
+ const { onEvent: r } = O(), { splitTransaction: i, unSplitTransaction: a } = w(), { common: o, transactions: n } = N(), { setShouldDisableDrawerScroll: s } = G(), { categories: c } = xe(), d = {
791
799
  ...t,
792
800
  amount: t.amount - 1,
793
801
  guid: "",
794
802
  has_been_split: !1,
795
803
  parent_guid: t.guid
796
- }, u = {
804
+ }, _ = {
797
805
  ...t,
798
806
  amount: 1,
799
807
  category_guid: void 0,
@@ -802,53 +810,53 @@ const it = ({ transaction: t, onClick: r }) => {
802
810
  has_been_split: !1,
803
811
  parent_guid: t.guid,
804
812
  top_level_category_guid: void 0
805
- }, [m, p] = _.useState(!1), [g, S] = _.useState(!1), [y, N] = _.useState([]), f = () => {
806
- const E = [...y];
807
- E.push({ ...u }), E[0].amount -= 1, N(E);
808
- }, k = (E) => {
809
- if (E > 0) {
810
- const H = y[E], O = [...y];
811
- O.splice(E, 1), O[0].amount += H.amount, N(O);
813
+ }, [m, p] = u.useState(!1), [S, y] = u.useState(!1), [T, I] = u.useState([]), f = () => {
814
+ const x = [...T];
815
+ x.push({ ..._ }), x[0].amount -= 1, I(x);
816
+ }, k = (x) => {
817
+ if (x > 0) {
818
+ const H = T[x], E = [...T];
819
+ E.splice(x, 1), E[0].amount += H.amount, I(E);
812
820
  }
813
- }, K = (E, H) => {
814
- const O = [...y];
815
- O[E].amount = H, O[0].amount = t.amount - O.reduce(
816
- (j, me, ke) => j + (ke !== 0 ? me.amount : 0),
821
+ }, F = (x, H) => {
822
+ const E = [...T];
823
+ E[x].amount = H, E[0].amount = t.amount - E.reduce(
824
+ (q, me, ke) => q + (ke !== 0 ? me.amount : 0),
817
825
  0
818
- ), N(O);
819
- }, $ = (E, H) => {
820
- const O = [...y], j = d.find((me) => me.guid === H);
821
- j && (O[E] = {
822
- ...O[E],
826
+ ), I(E);
827
+ }, j = (x, H) => {
828
+ const E = [...T], q = c.find((me) => me.guid === H);
829
+ q && (E[x] = {
830
+ ...E[x],
823
831
  category_guid: H,
824
- category: j.name,
825
- top_level_category_guid: j.parent_guid || H
826
- }, N(O));
827
- }, I = () => {
832
+ category: q.name,
833
+ top_level_category_guid: q.parent_guid || H
834
+ }, I(E));
835
+ }, K = () => {
828
836
  if (t.parent_guid || t.has_been_split) {
829
- S(!0);
837
+ y(!0);
830
838
  return;
831
839
  }
832
- N([{ ...c }, { ...u }]), r(P.TRANSACTION_DETAILS_CLICK_SPLIT, {
840
+ I([{ ...d }, { ..._ }]), r(P.TRANSACTION_DETAILS_CLICK_SPLIT, {
833
841
  transaction_guid: t.guid
834
842
  }), p(!0);
843
+ }, L = async () => {
844
+ r(g.ON_TRANSACTION_SPLIT_SAVE_CLICK), await i({ ...t, has_been_split: !0 }, T), p(!1);
835
845
  }, R = async () => {
836
- r(h.ON_TRANSACTION_SPLIT_SAVE_CLICK), await i({ ...t, has_been_split: !0 }, y), p(!1);
837
- }, Y = async () => {
838
- r(h.ON_TRANSACTION_SPLIT_CANCEL_CLICK), N([{ ...c }, { ...u }]), p(!1);
839
- }, _e = async () => {
846
+ r(g.ON_TRANSACTION_SPLIT_CANCEL_CLICK), I([{ ...d }, { ..._ }]), p(!1);
847
+ }, V = async () => {
840
848
  r(P.TRANSACTION_DETAILS_CLICK_UNSPLIT, {
841
849
  transaction_guid: t.guid
842
850
  });
843
- const E = t.parent_guid ?? t.guid;
844
- await a(E);
845
- }, ue = _.useMemo(() => {
846
- const E = y.some((O) => !O.category_guid), H = y.some((O) => O.amount <= 0);
847
- return E || H;
848
- }, [y]);
849
- return /* @__PURE__ */ l(_.Fragment, { children: [
850
- t && /* @__PURE__ */ e(F, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(U, { onClick: I, children: [
851
- /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(z, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(C, { name: "call_split", sx: { color: "text.primary" }, weight: D.Dark }) }) }),
851
+ const x = t.parent_guid ?? t.guid;
852
+ await a(x);
853
+ }, _e = u.useMemo(() => {
854
+ const x = T.some((E) => !E.category_guid), H = T.some((E) => E.amount <= 0);
855
+ return x || H;
856
+ }, [T]);
857
+ return /* @__PURE__ */ l(u.Fragment, { children: [
858
+ t && /* @__PURE__ */ e(B, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(U, { onClick: K, children: [
859
+ /* @__PURE__ */ e($, { children: /* @__PURE__ */ e(z, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(C, { name: "call_split", sx: { color: "text.primary" }, weight: D.Dark }) }) }),
852
860
  /* @__PURE__ */ e(
853
861
  M,
854
862
  {
@@ -859,13 +867,13 @@ const it = ({ transaction: t, onClick: r }) => {
859
867
  /* @__PURE__ */ e(X, { children: t.has_been_split || t.parent_guid ? /* @__PURE__ */ e(C, { name: "delete", weight: D.Dark }) : /* @__PURE__ */ e(C, { name: "chevron_right", weight: D.Dark }) })
860
868
  ] }) }),
861
869
  /* @__PURE__ */ l(
862
- de,
870
+ ue,
863
871
  {
864
872
  ariaLabelClose: o.close_aria,
865
873
  isOpen: m,
866
- isPrimaryDisabled: ue,
867
- onClose: Y,
868
- onPrimaryAction: R,
874
+ isPrimaryDisabled: _e,
875
+ onClose: R,
876
+ onPrimaryAction: L,
869
877
  primaryText: o.save_button,
870
878
  secondaryText: o.cancel_button,
871
879
  title: n.split_transaction_title,
@@ -875,10 +883,10 @@ const it = ({ transaction: t, onClick: r }) => {
875
883
  vt,
876
884
  {
877
885
  onAddSplit: f,
878
- onCategoryChanged: $,
886
+ onCategoryChanged: j,
879
887
  onDeleteSplit: k,
880
- onUpdateAmount: K,
881
- splits: y,
888
+ onUpdateAmount: F,
889
+ splits: T,
882
890
  transaction: t
883
891
  }
884
892
  )
@@ -886,20 +894,20 @@ const it = ({ transaction: t, onClick: r }) => {
886
894
  }
887
895
  ),
888
896
  /* @__PURE__ */ e(
889
- V,
897
+ W,
890
898
  {
891
899
  copy: { title: n.split_transaction_unsplit_title },
892
- isOpen: g,
900
+ isOpen: S,
893
901
  onClose: () => {
894
- s(!1), S(!1);
902
+ s(!1), y(!1);
895
903
  },
896
- onPrimaryAction: _e,
904
+ onPrimaryAction: V,
897
905
  onSecondaryAction: () => {
898
- r(h.ON_TRANSACTION_UNSPLIT_CANCEL);
906
+ r(g.ON_TRANSACTION_UNSPLIT_CANCEL);
899
907
  },
900
908
  primaryText: o.delete_button,
901
909
  secondaryText: o.cancel_button,
902
- children: /* @__PURE__ */ e(le, { variant: "Paragraph", children: se(
910
+ children: /* @__PURE__ */ e(ce, { variant: "Paragraph", children: le(
903
911
  n.split_transaction_unsplit_description,
904
912
  t.description
905
913
  ) })
@@ -907,19 +915,19 @@ const it = ({ transaction: t, onClick: r }) => {
907
915
  )
908
916
  ] });
909
917
  }, wt = A(Dt), Et = () => {
910
- const t = De(), { onEvent: r } = L(), { addTag: i } = w(), { transactions: a } = x(), [o, n] = _.useState(!1), [s, d] = _.useState(""), [c, u] = _.useState(""), m = _.useRef(null);
911
- _.useEffect(() => {
918
+ const t = De(), { onEvent: r } = O(), { addTag: i } = w(), { transactions: a } = N(), [o, n] = u.useState(!1), [s, c] = u.useState(""), [d, _] = u.useState(""), m = u.useRef(null);
919
+ u.useEffect(() => {
912
920
  o && m?.current?.focus();
913
921
  }, [o]);
914
922
  const p = () => {
915
923
  r(
916
- o ? h.ON_TRANSACTION_TAGS_TAG_ADD_CANCEL_CLICK : h.ON_TRANSACTION_TAGS_TAG_ADD_CLICK
917
- ), o || d(""), n(!o);
918
- }, g = async () => {
919
- r(h.ON_TRANSACTION_TAGS_TAG_ADDED), await i(s), n(!1);
924
+ o ? g.ON_TRANSACTION_TAGS_TAG_ADD_CANCEL_CLICK : g.ON_TRANSACTION_TAGS_TAG_ADD_CLICK
925
+ ), o || c(""), n(!o);
926
+ }, S = async () => {
927
+ r(g.ON_TRANSACTION_TAGS_TAG_ADDED), await i(s), n(!1);
920
928
  };
921
- return _.useEffect(() => {
922
- u(s.length > 40 ? a.tags_error_name_must_be_40_chars : "");
929
+ return u.useEffect(() => {
930
+ _(s.length > 40 ? a.tags_error_name_must_be_40_chars : "");
923
931
  }, [s]), /* @__PURE__ */ l(v, { className: "mx-txn-tag-manager-header", children: [
924
932
  /* @__PURE__ */ l(
925
933
  b,
@@ -931,9 +939,9 @@ const it = ({ transaction: t, onClick: r }) => {
931
939
  px: 24,
932
940
  py: 16,
933
941
  children: [
934
- /* @__PURE__ */ e(T, { bold: !0, children: a.tags_your_tags }),
942
+ /* @__PURE__ */ e(h, { bold: !0, children: a.tags_your_tags }),
935
943
  /* @__PURE__ */ e(
936
- ce,
944
+ de,
937
945
  {
938
946
  "aria-expanded": o,
939
947
  "aria-label": a.tags_add_tag_btn_aria,
@@ -945,12 +953,12 @@ const it = ({ transaction: t, onClick: r }) => {
945
953
  }
946
954
  ),
947
955
  /* @__PURE__ */ l(
948
- V,
956
+ W,
949
957
  {
950
958
  copy: { title: a.tags_add_tag_btn },
951
959
  isOpen: o,
952
960
  onClose: () => n(!1),
953
- onPrimaryAction: g,
961
+ onPrimaryAction: S,
954
962
  onSecondaryAction: () => n(!1),
955
963
  children: [
956
964
  /* @__PURE__ */ e(
@@ -958,24 +966,24 @@ const it = ({ transaction: t, onClick: r }) => {
958
966
  {
959
967
  "aria-label": a.tags_placeholder,
960
968
  name: "add-tag",
961
- onChange: (S) => d(S.target.value),
969
+ onChange: (y) => c(y.target.value),
962
970
  placeholder: a.tags_placeholder,
963
971
  sx: { width: "100%" },
964
972
  value: s
965
973
  }
966
974
  ),
967
- /* @__PURE__ */ e(le, { id: "add-tag-error", sx: { color: "error.main" }, variant: "ParagraphSmall", children: c })
975
+ /* @__PURE__ */ e(ce, { id: "add-tag-error", sx: { color: "error.main" }, variant: "ParagraphSmall", children: d })
968
976
  ]
969
977
  }
970
978
  )
971
979
  ] });
972
980
  }, Ot = A(Et), Lt = ({ onSearchValueChanged: t, searchValue: r }) => {
973
- const { common: i, transactions: a } = x(), o = ee(), n = /* @__PURE__ */ e(
974
- Q,
981
+ const { common: i, transactions: a } = N(), o = te(), n = /* @__PURE__ */ e(
982
+ ee,
975
983
  {
976
984
  "aria-label": a.tags_cancel_search || "Search",
977
985
  onClick: () => t(""),
978
- children: /* @__PURE__ */ e(ie, {})
986
+ children: /* @__PURE__ */ e(se, {})
979
987
  }
980
988
  );
981
989
  return /* @__PURE__ */ e(v, { className: "mx-txn-tag-manager-search", px: o.Spacing.Large, py: o.Spacing.Medium, children: /* @__PURE__ */ e(
@@ -994,42 +1002,42 @@ const it = ({ transaction: t, onClick: r }) => {
994
1002
  }
995
1003
  ) });
996
1004
  }, kt = A(Lt), Rt = ({ onTagChecked: t, selectedTags: r, tag: i }) => {
997
- const { onEvent: a } = L(), { removeTag: o, updateTag: n } = w(), { common: s, transactions: d } = x(), [c, u] = _.useState(!1), [m, p] = _.useState(!1), [g, S] = _.useState(""), [y, N] = _.useState(""), f = async () => {
998
- a(h.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), i && await n({ ...i, name: g }), u(!1);
1005
+ const { onEvent: a } = O(), { removeTag: o, updateTag: n } = w(), { common: s, transactions: c } = N(), [d, _] = u.useState(!1), [m, p] = u.useState(!1), [S, y] = u.useState(""), [T, I] = u.useState(""), f = async () => {
1006
+ a(g.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), i && await n({ ...i, name: S }), _(!1);
999
1007
  }, k = async () => {
1000
- a(h.ON_TRANSACTION_TAGS_TAG_DELETED), await o(i.guid), p(!1);
1008
+ a(g.ON_TRANSACTION_TAGS_TAG_DELETED), await o(i.guid), p(!1);
1001
1009
  };
1002
- _.useEffect(() => {
1003
- N(g.length > 40 ? d.tags_error_name_must_be_40_chars : "");
1004
- }, [g]);
1005
- const K = () => {
1006
- a(h.ON_TRANSACTION_TAGS_TAG_EDIT_CLICK), S(i.name), u(!0);
1007
- }, $ = () => {
1008
- a(h.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK), p(!0);
1010
+ u.useEffect(() => {
1011
+ I(S.length > 40 ? c.tags_error_name_must_be_40_chars : "");
1012
+ }, [S]);
1013
+ const F = () => {
1014
+ a(g.ON_TRANSACTION_TAGS_TAG_EDIT_CLICK), y(i.name), _(!0);
1015
+ }, j = () => {
1016
+ a(g.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK), p(!0);
1009
1017
  };
1010
1018
  return /* @__PURE__ */ l(
1011
- F,
1019
+ B,
1012
1020
  {
1013
1021
  className: "mx-txn-transaction-manager-row",
1014
1022
  disableGutters: !0,
1015
1023
  disablePadding: !0,
1016
1024
  secondaryAction: !i.is_default_tag && /* @__PURE__ */ l(b, { direction: "row", children: [
1017
1025
  /* @__PURE__ */ e(
1018
- Q,
1026
+ ee,
1019
1027
  {
1020
1028
  "aria-label": `Edit ${i.name} tag`,
1021
1029
  color: "secondary",
1022
- onClick: K,
1030
+ onClick: F,
1023
1031
  children: /* @__PURE__ */ e(Ve, { color: "secondary" })
1024
1032
  }
1025
1033
  ),
1026
1034
  /* @__PURE__ */ e(
1027
- Q,
1035
+ ee,
1028
1036
  {
1029
1037
  "aria-label": `Delete ${i.name} tag`,
1030
1038
  color: "secondary",
1031
- onClick: $,
1032
- children: /* @__PURE__ */ e(oe, { color: "secondary" })
1039
+ onClick: j,
1040
+ children: /* @__PURE__ */ e(ie, { color: "secondary" })
1033
1041
  }
1034
1042
  )
1035
1043
  ] }),
@@ -1047,48 +1055,48 @@ const it = ({ transaction: t, onClick: r }) => {
1047
1055
  }
1048
1056
  ),
1049
1057
  /* @__PURE__ */ l(
1050
- V,
1058
+ W,
1051
1059
  {
1052
1060
  copy: { title: "Update tag name" },
1053
- isOpen: c,
1054
- onClose: () => u(!1),
1061
+ isOpen: d,
1062
+ onClose: () => _(!1),
1055
1063
  onPrimaryAction: f,
1056
- onSecondaryAction: () => u(!1),
1064
+ onSecondaryAction: () => _(!1),
1057
1065
  children: [
1058
1066
  /* @__PURE__ */ e(
1059
1067
  Te,
1060
1068
  {
1061
- "aria-describedby": y ? "update-tag-error" : void 0,
1062
- "aria-label": d.tags_update_the_tag_name,
1069
+ "aria-describedby": T ? "update-tag-error" : void 0,
1070
+ "aria-label": c.tags_update_the_tag_name,
1063
1071
  name: "update-tag",
1064
- onChange: (I) => S(I.target.value),
1072
+ onChange: (K) => y(K.target.value),
1065
1073
  placeholder: "Tag name",
1066
1074
  sx: { width: "100%" },
1067
- value: g
1075
+ value: S
1068
1076
  }
1069
1077
  ),
1070
- /* @__PURE__ */ e(le, { id: "update-tag-error", sx: { color: "error.main" }, variant: "ParagraphSmall", children: y })
1078
+ /* @__PURE__ */ e(ce, { id: "update-tag-error", sx: { color: "error.main" }, variant: "ParagraphSmall", children: T })
1071
1079
  ]
1072
1080
  }
1073
1081
  ),
1074
1082
  /* @__PURE__ */ e(
1075
- V,
1083
+ W,
1076
1084
  {
1077
- copy: { title: d.tags_delete_title },
1085
+ copy: { title: c.tags_delete_title },
1078
1086
  isOpen: m,
1079
1087
  onClose: () => p(!1),
1080
1088
  onPrimaryAction: k,
1081
- onSecondaryAction: () => a(h.ON_TRANSACTION_TAGS_TAG_DELETE_CANCEL_CLICK),
1089
+ onSecondaryAction: () => a(g.ON_TRANSACTION_TAGS_TAG_DELETE_CANCEL_CLICK),
1082
1090
  primaryText: s.delete_button,
1083
1091
  secondaryText: s.cancel_button,
1084
- children: /* @__PURE__ */ e(T, { truncate: !1, children: d.tags_deleting_this_tag_will_remove_it })
1092
+ children: /* @__PURE__ */ e(h, { truncate: !1, children: c.tags_deleting_this_tag_will_remove_it })
1085
1093
  }
1086
1094
  )
1087
1095
  ]
1088
1096
  }
1089
1097
  );
1090
1098
  }, Pt = A(Rt), Gt = ({ selectedTags: t, onTagChecked: r }) => {
1091
- const { tags: i } = w(), [a, o] = _.useState(""), n = i.filter(
1099
+ const { tags: i } = w(), [a, o] = u.useState(""), n = i.filter(
1092
1100
  (s) => s.name.toLowerCase().includes(a.toLowerCase())
1093
1101
  );
1094
1102
  return /* @__PURE__ */ l("div", { className: "mx-txn-tag-manager", children: [
@@ -1100,46 +1108,46 @@ const it = ({ transaction: t, onClick: r }) => {
1100
1108
  }
1101
1109
  ),
1102
1110
  /* @__PURE__ */ e(Ot, {}),
1103
- /* @__PURE__ */ e(ne, { sx: { boxShadow: "none" }, children: /* @__PURE__ */ e(J, { children: n.map((s) => /* @__PURE__ */ l(_.Fragment, { children: [
1111
+ /* @__PURE__ */ e(re, { sx: { boxShadow: "none" }, children: /* @__PURE__ */ e(Q, { children: n.map((s) => /* @__PURE__ */ l(u.Fragment, { children: [
1104
1112
  /* @__PURE__ */ e(Pt, { onTagChecked: r, selectedTags: t, tag: s }),
1105
- /* @__PURE__ */ e(Z, { sx: { ml: 24 } })
1113
+ /* @__PURE__ */ e(J, { sx: { ml: 24 } })
1106
1114
  ] }, s.guid)) }) })
1107
1115
  ] });
1108
1116
  }, Mt = A(Gt), Kt = ({ transaction: t }) => {
1109
- const { onEvent: r } = L(), { tags: i, updateTaggings: a, updateTransaction: o } = w(), { common: n, transactions: s } = x(), { updateManualTransaction: d } = G(), [c, u] = _.useState(!1), [m, p] = _.useState(t.tags);
1110
- _.useEffect(() => {
1117
+ const { onEvent: r } = O(), { tags: i, updateTaggings: a, updateTransaction: o } = w(), { common: n, transactions: s } = N(), { updateManualTransaction: c } = G(), [d, _] = u.useState(!1), [m, p] = u.useState(t.tags);
1118
+ u.useEffect(() => {
1111
1119
  p(t.tags);
1112
- }, [c, t]);
1113
- const g = (N) => {
1114
- const f = [...m], k = m.indexOf(N);
1115
- k >= 0 ? f.splice(k, 1) : f.push(N), p(f);
1116
- }, S = async () => {
1120
+ }, [d, t]);
1121
+ const S = (I) => {
1122
+ const f = [...m], k = m.indexOf(I);
1123
+ k >= 0 ? f.splice(k, 1) : f.push(I), p(f);
1124
+ }, y = async () => {
1117
1125
  if (t.is_manual && !t.guid) {
1118
- d({ ...t, tags: m }), u(!1);
1126
+ c({ ...t, tags: m }), _(!1);
1119
1127
  return;
1120
1128
  }
1121
- await a(m, t.guid), await o({ ...t, tags: m }), r(P.TRANSACTION_DETAILS_CLICK_TAGS, { transaction_guid: t.guid }), u(!1);
1122
- }, y = _.useMemo(
1129
+ await a(m, t.guid), await o({ ...t, tags: m }), r(P.TRANSACTION_DETAILS_CLICK_TAGS, { transaction_guid: t.guid }), _(!1);
1130
+ }, T = u.useMemo(
1123
1131
  () => t.tags.map(
1124
- (N, f, k) => `${i.find((K) => K.guid === N)?.name}${f < k.length - 1 ? " / " : ""}`
1132
+ (I, f, k) => `${i.find((F) => F.guid === I)?.name}${f < k.length - 1 ? " / " : ""}`
1125
1133
  ),
1126
1134
  [i, t]
1127
1135
  );
1128
- return /* @__PURE__ */ l(_.Fragment, { children: [
1129
- /* @__PURE__ */ e(F, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
1136
+ return /* @__PURE__ */ l(u.Fragment, { children: [
1137
+ /* @__PURE__ */ e(B, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
1130
1138
  U,
1131
1139
  {
1132
1140
  onClick: () => {
1133
- r(h.ON_TRANSACTION_TAGS_CLICK), u(!0);
1141
+ r(g.ON_TRANSACTION_TAGS_CLICK), _(!0);
1134
1142
  },
1135
1143
  children: [
1136
- /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(z, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(C, { name: "local_offer", sx: { color: "text.primary" }, weight: D.Dark }) }) }),
1144
+ /* @__PURE__ */ e($, { children: /* @__PURE__ */ e(z, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(C, { name: "local_offer", sx: { color: "text.primary" }, weight: D.Dark }) }) }),
1137
1145
  /* @__PURE__ */ e(
1138
1146
  M,
1139
1147
  {
1140
1148
  primary: s.tags_title,
1141
1149
  primaryTypographyProps: { variant: "XSmall" },
1142
- secondary: /* @__PURE__ */ e(T, { bold: !0, variant: "Body", children: t.tags?.length > 0 ? y : s.tags_desc })
1150
+ secondary: /* @__PURE__ */ e(h, { bold: !0, variant: "Body", children: t.tags?.length > 0 ? T : s.tags_desc })
1143
1151
  }
1144
1152
  ),
1145
1153
  /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(C, { name: "chevron_right", weight: D.Dark }) })
@@ -1147,28 +1155,28 @@ const it = ({ transaction: t, onClick: r }) => {
1147
1155
  }
1148
1156
  ) }),
1149
1157
  /* @__PURE__ */ e(
1150
- de,
1158
+ ue,
1151
1159
  {
1152
1160
  ariaLabelClose: n.close_aria,
1153
- isOpen: c,
1154
- onClose: () => u(!1),
1155
- onPrimaryAction: S,
1161
+ isOpen: d,
1162
+ onClose: () => _(!1),
1163
+ onPrimaryAction: y,
1156
1164
  primaryText: n.save_button,
1157
1165
  secondaryText: n.cancel_button,
1158
1166
  title: s.tags_title,
1159
- children: /* @__PURE__ */ e(Mt, { onTagChecked: g, selectedTags: m })
1167
+ children: /* @__PURE__ */ e(Mt, { onTagChecked: S, selectedTags: m })
1160
1168
  }
1161
1169
  )
1162
1170
  ] });
1163
1171
  }, $t = A(Kt), Bt = ({ transaction: t, viewOnly: r = !1 }) => {
1164
- const { updateTransaction: i } = w(), { common: a, transactions: o } = x(), { onEvent: n } = L(), [s, d] = _.useState(!1), [c, u] = _.useState(""), m = _.useRef(null);
1165
- _.useEffect(() => {
1166
- s && (u(t.description), m?.current?.focus());
1172
+ const { updateTransaction: i } = w(), { common: a, transactions: o } = N(), { onEvent: n } = O(), [s, c] = u.useState(!1), [d, _] = u.useState(""), m = u.useRef(null);
1173
+ u.useEffect(() => {
1174
+ s && (_(t.description), m?.current?.focus());
1167
1175
  }, [s]);
1168
1176
  const p = async () => {
1169
1177
  n(P.TRANSACTION_DETAILS_CLICK_DESCRIPTION, {
1170
1178
  transaction_guid: t.guid
1171
- }), await i({ ...t, description: c }), d(!1);
1179
+ }), await i({ ...t, description: d }), c(!1);
1172
1180
  };
1173
1181
  return /* @__PURE__ */ e(v, { className: "mx-txn-transaction-description", children: s ? /* @__PURE__ */ l(je, { row: !0, children: [
1174
1182
  /* @__PURE__ */ e(
@@ -1176,7 +1184,7 @@ const it = ({ transaction: t, onClick: r }) => {
1176
1184
  {
1177
1185
  "aria-label": o.description_add_a_subcategory,
1178
1186
  name: "add-subcategory",
1179
- onChange: (g) => u(g.target.value),
1187
+ onChange: (S) => _(S.target.value),
1180
1188
  ref: m,
1181
1189
  sx: {
1182
1190
  backgroundColor: "background.paper",
@@ -1184,13 +1192,13 @@ const it = ({ transaction: t, onClick: r }) => {
1184
1192
  ".MuiOutlinedInput-input": { p: 11 },
1185
1193
  width: 250
1186
1194
  },
1187
- value: c
1195
+ value: d
1188
1196
  }
1189
1197
  ),
1190
1198
  /* @__PURE__ */ e(
1191
- ce,
1199
+ de,
1192
1200
  {
1193
- disabled: !c,
1201
+ disabled: !d,
1194
1202
  onClick: p,
1195
1203
  sx: { borderTopLeftRadius: 0, borderBottomLeftRadius: 0 },
1196
1204
  variant: "outlined",
@@ -1198,13 +1206,13 @@ const it = ({ transaction: t, onClick: r }) => {
1198
1206
  }
1199
1207
  )
1200
1208
  ] }) : /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 4, sx: { minHeight: 44 }, children: [
1201
- /* @__PURE__ */ e(T, { bold: !0, children: t.description }),
1209
+ /* @__PURE__ */ e(h, { bold: !0, children: t.description }),
1202
1210
  !r && /* @__PURE__ */ e(
1203
- Q,
1211
+ ee,
1204
1212
  {
1205
1213
  "aria-label": o.description_edit_transaction_name,
1206
1214
  onClick: () => {
1207
- d(!0), n(h.ON_TRANSACTION_DESCRIPTION_EDIT_CLICK);
1215
+ c(!0), n(g.ON_TRANSACTION_DESCRIPTION_EDIT_CLICK);
1208
1216
  },
1209
1217
  sx: { color: "action.active" },
1210
1218
  children: /* @__PURE__ */ e(C, { name: "create", size: 22 })
@@ -1212,7 +1220,7 @@ const it = ({ transaction: t, onClick: r }) => {
1212
1220
  )
1213
1221
  ] }) });
1214
1222
  }, Ft = A(Bt), Ht = ({ transaction: t }) => {
1215
- const { updateTransaction: r } = w(), { transactions: i } = x(), { onEvent: a } = L(), o = De(), n = async () => {
1223
+ const { updateTransaction: r } = w(), { transactions: i } = N(), { onEvent: a } = O(), o = De(), n = async () => {
1216
1224
  a(P.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: t.guid }), await r({ ...t, is_flagged: !t.is_flagged });
1217
1225
  };
1218
1226
  return /* @__PURE__ */ e("div", { className: "mx-txn-transaction-flag", children: /* @__PURE__ */ e(
@@ -1243,9 +1251,9 @@ const it = ({ transaction: t, onClick: r }) => {
1243
1251
  children: /* @__PURE__ */ e(We, { color: "inherit" })
1244
1252
  }
1245
1253
  ) });
1246
- }, zt = A(Ht), ae = (t, r, i, a = !0, o = "inset") => a ? /* @__PURE__ */ l(_.Fragment, { children: [
1247
- /* @__PURE__ */ l(F, { disableGutters: !0, disablePadding: !0, children: [
1248
- /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(z, { sx: { bgcolor: "border.light" }, variant: "rounded", children: t }) }),
1254
+ }, zt = A(Ht), ne = (t, r, i, a = !0, o = "inset") => a ? /* @__PURE__ */ l(u.Fragment, { children: [
1255
+ /* @__PURE__ */ l(B, { disableGutters: !0, disablePadding: !0, children: [
1256
+ /* @__PURE__ */ e($, { children: /* @__PURE__ */ e(z, { sx: { bgcolor: "border.light" }, variant: "rounded", children: t }) }),
1249
1257
  /* @__PURE__ */ e(
1250
1258
  M,
1251
1259
  {
@@ -1255,14 +1263,14 @@ const it = ({ transaction: t, onClick: r }) => {
1255
1263
  }
1256
1264
  )
1257
1265
  ] }),
1258
- /* @__PURE__ */ e(Z, { variant: o })
1266
+ /* @__PURE__ */ e(J, { variant: o })
1259
1267
  ] }) : null, Ut = ({ transaction: t }) => {
1260
- const { transactions: r } = x(), { tags: i } = w(), a = _.useMemo(() => {
1268
+ const { transactions: r } = N(), { tags: i } = w(), a = u.useMemo(() => {
1261
1269
  const o = new Map(i.map((n) => [n.guid, n.name]));
1262
1270
  return t.tags.map((n) => o.get(n)).filter(Boolean).join(" / ");
1263
1271
  }, [i, t.tags]);
1264
- return /* @__PURE__ */ l(J, { sx: { "& .MuiListItem-root": { px: 24, py: 12 } }, children: [
1265
- ae(
1272
+ return /* @__PURE__ */ l(Q, { sx: { "& .MuiListItem-root": { px: 24, py: 12 } }, children: [
1273
+ ne(
1266
1274
  /* @__PURE__ */ e(
1267
1275
  he,
1268
1276
  {
@@ -1273,24 +1281,24 @@ const it = ({ transaction: t, onClick: r }) => {
1273
1281
  }
1274
1282
  ),
1275
1283
  r.category_title,
1276
- /* @__PURE__ */ e(T, { bold: !0, variant: "Body", children: t.category ?? r.actions_select_a_category })
1284
+ /* @__PURE__ */ e(h, { bold: !0, variant: "Body", children: t.category ?? r.actions_select_a_category })
1277
1285
  ),
1278
- ae(
1286
+ ne(
1279
1287
  /* @__PURE__ */ e(C, { name: "calendar_month", sx: { color: "text.primary" }, weight: D.Dark }),
1280
1288
  r.date_title,
1281
- /* @__PURE__ */ e(T, { bold: !0, variant: "Body", children: we(W(t.date), Ee.YEAR_MONTH_DAY) })
1289
+ /* @__PURE__ */ e(h, { bold: !0, variant: "Body", children: we(Y(t.date), Ee.YEAR_MONTH_DAY) })
1282
1290
  ),
1283
- ae(
1291
+ ne(
1284
1292
  /* @__PURE__ */ e(C, { name: "article", sx: { color: "text.primary" }, weight: D.Dark }),
1285
1293
  r.memo_title,
1286
- /* @__PURE__ */ e(T, { bold: !0, sx: { overflowWrap: "break-word", whiteSpace: "wrap" }, variant: "Body", children: t.memo ?? r.memo_desc }),
1294
+ /* @__PURE__ */ e(h, { bold: !0, sx: { overflowWrap: "break-word", whiteSpace: "wrap" }, variant: "Body", children: t.memo ?? r.memo_desc }),
1287
1295
  !!t.memo,
1288
1296
  t.tags?.length > 0 ? "inset" : "fullWidth"
1289
1297
  ),
1290
- ae(
1298
+ ne(
1291
1299
  /* @__PURE__ */ e(C, { name: "local_offer", sx: { color: "text.primary" }, weight: D.Dark }),
1292
1300
  r.tags_title,
1293
- /* @__PURE__ */ e(T, { bold: !0, variant: "Body", children: t.tags?.length ? a : r.tags_desc }),
1301
+ /* @__PURE__ */ e(h, { bold: !0, variant: "Body", children: t.tags?.length ? a : r.tags_desc }),
1294
1302
  !!t.tags?.length,
1295
1303
  "fullWidth"
1296
1304
  )
@@ -1301,16 +1309,16 @@ const it = ({ transaction: t, onClick: r }) => {
1301
1309
  topActions: i = tt,
1302
1310
  transaction: a
1303
1311
  }) => {
1304
- const { onEvent: o } = L(), { isCopyLoaded: n } = Fe(), { userFeatures: s } = He(), d = a?.number && a.number.length > 4;
1305
- if (_.useEffect(
1312
+ const { onEvent: o } = O(), { isCopyLoaded: n } = Fe(), { userFeatures: s } = He(), c = a?.number && a.number.length > 4;
1313
+ if (u.useEffect(
1306
1314
  () => o(P.TRANSACTION_DETAILS_VIEW, { transaction_guid: a.guid }),
1307
1315
  []
1308
1316
  ), !n)
1309
1317
  return /* @__PURE__ */ e(Ie, {});
1310
- const c = $e(s, "MX_TXN_DETAILS_VIEW_ONLY");
1318
+ const d = $e(s, "MX_TXN_DETAILS_VIEW_ONLY");
1311
1319
  return /* @__PURE__ */ e(v, { className: "mx-txn-transaction-details", width: "100%", children: a && /* @__PURE__ */ l(b, { children: [
1312
1320
  /* @__PURE__ */ l(b, { gap: 12, p: 24, children: [
1313
- /* @__PURE__ */ e(ne, { elevation: 2, sx: { width: 64 }, children: /* @__PURE__ */ e(
1321
+ /* @__PURE__ */ e(re, { elevation: 2, sx: { width: 64 }, children: /* @__PURE__ */ e(
1314
1322
  ge,
1315
1323
  {
1316
1324
  categoryGuid: a.top_level_category_guid || "",
@@ -1318,52 +1326,54 @@ const it = ({ transaction: t, onClick: r }) => {
1318
1326
  size: 64
1319
1327
  }
1320
1328
  ) }),
1321
- /* @__PURE__ */ e(Ft, { transaction: a, viewOnly: c }),
1329
+ /* @__PURE__ */ e(Ft, { transaction: a, viewOnly: d }),
1322
1330
  /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", sx: { minHeight: 44 }, children: [
1323
1331
  /* @__PURE__ */ l(Ae, { color: a.isIncome ? "success.main" : "text.primary", children: [
1324
1332
  a.isIncome ? "+" : "",
1325
- te(a.amount, "0,0.00")
1333
+ ae(a.amount, "0,0.00")
1326
1334
  ] }),
1327
- !c && r && /* @__PURE__ */ e(zt, { transaction: a })
1335
+ !d && r && /* @__PURE__ */ e(zt, { transaction: a })
1328
1336
  ] }),
1329
1337
  /* @__PURE__ */ l(b, { bgcolor: "background.highlight", borderRadius: "12px", gap: 4, p: 8, children: [
1330
- /* @__PURE__ */ e(T, { bold: !0, children: `${a.account}
1331
- ${d ? a.number : "•".repeat(4).concat(a.number ?? "")}` }),
1332
- /* @__PURE__ */ e(T, { bold: !0, color: "secondary", variant: "Tiny", children: a.feed_description })
1338
+ /* @__PURE__ */ e(h, { bold: !0, children: `${a.account}
1339
+ ${c ? a.number : "•".repeat(4).concat(a.number ?? "")}` }),
1340
+ /* @__PURE__ */ e(h, { bold: !0, color: "secondary", variant: "Tiny", children: a.feed_description })
1333
1341
  ] })
1334
1342
  ] }),
1335
- /* @__PURE__ */ e(ne, { square: !0, sx: { boxShadow: "none" }, children: c ? /* @__PURE__ */ e(Xt, { transaction: a }) : /* @__PURE__ */ e(J, { children: i.map((u, m) => /* @__PURE__ */ l(_.Fragment, { children: [
1336
- u === q.Category && /* @__PURE__ */ e(mt, { transaction: a }),
1337
- u === q.Date && /* @__PURE__ */ e(pt, { transaction: a }),
1338
- u === q.Memo && /* @__PURE__ */ e(bt, { transaction: a }),
1339
- u === q.Tags && /* @__PURE__ */ e($t, { transaction: a }),
1340
- /* @__PURE__ */ e(Z, { variant: m < i.length - 1 ? "inset" : "fullWidth" })
1341
- ] }, u)) }) }),
1342
- !c && t.length > 0 && /* @__PURE__ */ l(_.Fragment, { children: [
1343
- /* @__PURE__ */ e(T, { bold: !0, mb: 8, ml: 26, mt: 16, variant: "Body", children: "Actions" }),
1344
- /* @__PURE__ */ e(ne, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ l(J, { children: [
1345
- t.map((u, m) => /* @__PURE__ */ l(_.Fragment, { children: [
1346
- u === re.SplitTransaction && /* @__PURE__ */ e(wt, { transaction: a }),
1347
- u === re.HideTransaction && /* @__PURE__ */ e(Ct, { transaction: a }),
1348
- u === re.MerchantLogo && /* @__PURE__ */ e(yt, { transaction: a }),
1349
- /* @__PURE__ */ e(Z, { variant: m < t.length - 1 ? "inset" : "fullWidth" })
1350
- ] }, u)),
1343
+ /* @__PURE__ */ e(re, { square: !0, sx: { boxShadow: "none" }, children: d ? /* @__PURE__ */ e(Xt, { transaction: a }) : /* @__PURE__ */ e(Q, { children: i.map((_, m) => /* @__PURE__ */ l(u.Fragment, { children: [
1344
+ _ === Z.Category && /* @__PURE__ */ e(mt, { transaction: a }),
1345
+ _ === Z.Date && /* @__PURE__ */ e(pt, { transaction: a }),
1346
+ _ === Z.Memo && /* @__PURE__ */ e(bt, { transaction: a }),
1347
+ _ === Z.Tags && /* @__PURE__ */ e($t, { transaction: a }),
1348
+ /* @__PURE__ */ e(J, { variant: m < i.length - 1 ? "inset" : "fullWidth" })
1349
+ ] }, _)) }) }),
1350
+ !d && t.length > 0 && /* @__PURE__ */ l(u.Fragment, { children: [
1351
+ /* @__PURE__ */ e(h, { bold: !0, mb: 8, ml: 26, mt: 16, variant: "Body", children: "Actions" }),
1352
+ /* @__PURE__ */ e(re, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ l(Q, { children: [
1353
+ t.map((_, m) => /* @__PURE__ */ l(u.Fragment, { children: [
1354
+ _ === oe.SplitTransaction && /* @__PURE__ */ e(wt, { transaction: a }),
1355
+ _ === oe.HideTransaction && /* @__PURE__ */ e(Ct, { transaction: a }),
1356
+ _ === oe.MerchantLogo && /* @__PURE__ */ e(yt, { transaction: a }),
1357
+ /* @__PURE__ */ e(J, { variant: m < t.length - 1 ? "inset" : "fullWidth" })
1358
+ ] }, _)),
1351
1359
  a.is_manual && !a.parent_guid && !a.has_been_split && /* @__PURE__ */ e(ht, { transaction: a })
1352
1360
  ] }) })
1353
1361
  ] })
1354
1362
  ] }) });
1355
1363
  }, Pa = A(Vt);
1356
1364
  export {
1357
- re as B,
1365
+ oe as B,
1358
1366
  mt as C,
1359
1367
  pt as D,
1360
1368
  bt as M,
1361
1369
  lt as S,
1362
1370
  Ra as T,
1363
1371
  Pa as a,
1364
- st as b,
1365
- At as c,
1372
+ G as b,
1373
+ st as c,
1366
1374
  $t as d,
1367
- q as e,
1368
- G as u
1375
+ Z as e,
1376
+ ut as h,
1377
+ Se as s,
1378
+ At as u
1369
1379
  };