@mx-cartographer/experiences 7.5.1 → 7.5.3

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