@mx-cartographer/experiences 9.0.8 → 9.0.9-alpha.al1

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,42 +1,42 @@
1
1
  import { jsx as e, jsxs as m } from "react/jsx-runtime";
2
- import l, { useMemo as ke } from "react";
2
+ import c, { useMemo as ke } from "react";
3
3
  import { observer as w } from "mobx-react-lite";
4
4
  import Ue from "@mui/material/Alert";
5
- import V from "@mui/material/Box";
5
+ import Y from "@mui/material/Box";
6
6
  import Te from "@mui/material/Divider";
7
7
  import be from "@mui/material/List";
8
8
  import he from "@mui/material/Paper";
9
9
  import We from "@mui/material/Snackbar";
10
10
  import L from "@mui/material/Stack";
11
- import { useTheme as F, alpha as xe } from "@mui/material/styles";
11
+ import { useTheme as H, alpha as xe } from "@mui/material/styles";
12
12
  import { P as ee, Text as x, H2 as Ve, MerchantLogo as Ce, Toast as Ye, CategoryIcon as Oe, CategoryIconVariants as Ge, TextField as Le, Icon as ye } from "@mxenabled/mxui";
13
13
  import { endOfMonth as Be } from "date-fns/endOfMonth";
14
14
  import { getUnixTime as Ie } from "date-fns/getUnixTime";
15
15
  import { isBefore as je } from "date-fns/isBefore";
16
16
  import { startOfMonth as De } from "date-fns/startOfMonth";
17
- import { b as E } from "./Localization-DnoVyBNK.mjs";
18
- import { f as W } from "./NumberFormatting--XMeeBfr.mjs";
17
+ import { b as I } from "./Localization-DnoVyBNK.mjs";
18
+ import { f as V } from "./NumberFormatting--XMeeBfr.mjs";
19
19
  import { a as qe, i as Qe } from "./BudgetUtil-Bg2AQJpQ.mjs";
20
20
  import me from "@mui/material/Button";
21
21
  import Xe from "@mui/material/FormGroup";
22
22
  import ue from "@mui/material/IconButton";
23
23
  import $e from "@mui/material/TextField";
24
24
  import { u as Ae } from "./useAriaLive-MkYebyUR.mjs";
25
- import { b as Ze, T as Je, u as ne, O as C, c as et, d as tt, E as at, C as nt } from "./EmbeddedCard-BxgB26dd.mjs";
26
- import { u as O, g as R, o as rt, c as ot, l as we, f as G, a as it, C as st } from "./hooks-97sNJ_lf.mjs";
27
- import { A as Y } from "./Analytics-WeZYytR0.mjs";
25
+ import { b as Ze, T as Je, u as ne, O as f, c as et, d as tt, E as at, C as nt } from "./EmbeddedCard-BxgB26dd.mjs";
26
+ import { u as E, g as M, o as rt, c as ot, l as we, f as G, a as it, C as st } from "./hooks-97sNJ_lf.mjs";
27
+ import { A as j } from "./Analytics-WeZYytR0.mjs";
28
28
  import lt from "@mui/material/ToggleButton";
29
- import { ChevronRight as Ke, Icon as P, Delete as fe, Cancel as Se, Search as ct, Edit as dt, Flag as ut } from "@mxenabled/mx-icons";
29
+ import { ChevronRight as Ke, Icon as k, Delete as fe, Cancel as Se, Search as ct, Edit as dt, Flag as ut } from "@mxenabled/mx-icons";
30
30
  import { fromUnixTime as ve } from "date-fns/fromUnixTime";
31
- import j from "@mui/material/Avatar";
32
- import z from "@mui/material/ListItem";
33
- import q from "@mui/material/ListItemAvatar";
34
- import U from "@mui/material/ListItemText";
31
+ import q from "@mui/material/Avatar";
32
+ import U from "@mui/material/ListItem";
33
+ import Q from "@mui/material/ListItemAvatar";
34
+ import W from "@mui/material/ListItemText";
35
35
  import { f as Me, D as Re } from "./DateFormats-HudZ3Bjs.mjs";
36
36
  import { BarChart as mt } from "@mui/x-charts";
37
37
  import { L as _t } from "./Loader-CxeBwuPG.mjs";
38
- import Q from "@mui/material/ListItemButton";
39
- import X from "@mui/material/ListItemIcon";
38
+ import X from "@mui/material/ListItemButton";
39
+ import Z from "@mui/material/ListItemIcon";
40
40
  import { b as Fe } from "./CategorySelectorDrawer-NJsFsKP1.mjs";
41
41
  import { D as ae } from "./Dialog-Bvd2n8hz.mjs";
42
42
  import { D as _e } from "./Drawer-DsnW2o0v.mjs";
@@ -62,16 +62,16 @@ const ft = [
62
62
  ], At = ({
63
63
  startDate: t,
64
64
  onViewHistory: n,
65
- totalTransaction: s,
65
+ totalTransaction: l,
66
66
  amount: a,
67
67
  spentPercentage: r,
68
68
  remainingAmount: o,
69
69
  iconColor: i,
70
70
  icon: _
71
71
  }) => {
72
- const { budgets: c } = O();
73
- return /* @__PURE__ */ e(l.Fragment, { children: /* @__PURE__ */ m(
74
- V,
72
+ const { budgets: s } = E();
73
+ return /* @__PURE__ */ e(c.Fragment, { children: /* @__PURE__ */ m(
74
+ Y,
75
75
  {
76
76
  sx: {
77
77
  bgcolor: "background.paper",
@@ -93,7 +93,7 @@ const ft = [
93
93
  },
94
94
  children: [
95
95
  /* @__PURE__ */ e(ee, { bold: !0, variant: "subtitle1", children: Tt(t) }),
96
- n && /* @__PURE__ */ e(me, { endIcon: /* @__PURE__ */ e(Ke, {}), onClick: n, sx: { height: 28 }, children: /* @__PURE__ */ e(x, { bold: !0, variant: "body2", children: c.spending_history }) })
96
+ n && /* @__PURE__ */ e(me, { endIcon: /* @__PURE__ */ e(Ke, {}), onClick: n, sx: { height: 28 }, children: /* @__PURE__ */ e(x, { bold: !0, variant: "body2", children: s.spending_history }) })
97
97
  ]
98
98
  }
99
99
  ),
@@ -101,18 +101,18 @@ const ft = [
101
101
  Ze,
102
102
  {
103
103
  amount: /* @__PURE__ */ m(L, { sx: { alignItems: "baseline", flexDirection: "row", gap: 4 }, children: [
104
- /* @__PURE__ */ e(Ve, { children: W(s, "0,0.00") }),
104
+ /* @__PURE__ */ e(Ve, { children: V(l, "0,0.00") }),
105
105
  /* @__PURE__ */ e(ee, { color: "text.secondary", variant: "body2", children: "/" }),
106
- /* @__PURE__ */ e(ee, { color: "text.secondary", variant: "body2", children: W(a, "0,0.00") })
106
+ /* @__PURE__ */ e(ee, { color: "text.secondary", variant: "body2", children: V(a, "0,0.00") })
107
107
  ] }),
108
108
  completeColor: `${i}.main`,
109
109
  icon: _,
110
- label: c.spent_label,
111
- leftLabel: E(c.percent_spent, r.toFixed()),
110
+ label: s.spent_label,
111
+ leftLabel: I(s.percent_spent, r.toFixed()),
112
112
  percentComplete: r,
113
- rightLabel: E(
114
- c.balance_left,
115
- W(o, "0,0.00")
113
+ rightLabel: I(
114
+ s.balance_left,
115
+ V(o, "0,0.00")
116
116
  ),
117
117
  sx: {
118
118
  pb: 24,
@@ -127,12 +127,12 @@ const ft = [
127
127
  }, xt = ({
128
128
  merchantBudget: t,
129
129
  transaction: n,
130
- onClose: s,
130
+ onClose: l,
131
131
  isOpen: a,
132
132
  setCurrencyDialogAction: r,
133
133
  renderingToast: o
134
134
  }) => {
135
- const { budgets: i, common: _ } = O(), { sortedTransactions: c } = R(), d = l.useMemo(() => c.reduce((h, I) => I.parent_guid ? h : h + I.amount, 0), [c]), { remainingAmount: u, spentPercentage: g, iconColor: p } = qe(
135
+ const { budgets: i, common: _ } = E(), { sortedTransactions: s } = M(), d = c.useMemo(() => s.reduce((h, D) => D.parent_guid ? h : h + D.amount, 0), [s]), { remainingAmount: u, spentPercentage: g, iconColor: p } = qe(
136
136
  d,
137
137
  t.amount ?? 0
138
138
  );
@@ -145,7 +145,7 @@ const ft = [
145
145
  py: 16
146
146
  },
147
147
  isOpen: a,
148
- onClose: s,
148
+ onClose: l,
149
149
  onPrimaryAction: () => r(Ee.EDIT),
150
150
  onSecondaryAction: () => {
151
151
  r(Ee.DELETE);
@@ -158,7 +158,7 @@ const ft = [
158
158
  pr: 24
159
159
  }
160
160
  },
161
- title: E(i.details_type_title, t.merchant_name),
161
+ title: I(i.details_type_title, t.merchant_name),
162
162
  children: [
163
163
  /* @__PURE__ */ e(
164
164
  At,
@@ -186,60 +186,60 @@ const ft = [
186
186
  }, Nt = w(xt);
187
187
  var Ee = /* @__PURE__ */ ((t) => (t.CREATE = "create", t.EDIT = "edit", t.DELETE = "delete", t))(Ee || {});
188
188
  const It = w(({ transaction: t }) => {
189
- const [n, s] = l.useState(null), [a, r] = l.useState(""), [o, i] = l.useState(!1), _ = l.useRef(!1), [c, d] = l.useState(null), u = F(), {
189
+ const [n, l] = c.useState(null), [a, r] = c.useState(""), [o, i] = c.useState(!1), _ = c.useRef(!1), [s, d] = c.useState(null), u = H(), {
190
190
  addMerchantBudget: g,
191
191
  updateMerchantBudget: p,
192
192
  deleteMerchantBudget: h,
193
- getMerchantBudgetByMerchantGuid: I,
194
- alert: M,
195
- setAlert: B
196
- } = rt(), { setFilter: k } = R(), { accounts: f } = ot(), A = u.palette.mode === "dark" ? "grey.800" : "grey.100", { budgets: y, common: Z } = O(), { announce: se, ariaLive: le } = Ae(), [te, $] = l.useState(!1), b = t?.merchant_guid ? I(t.merchant_guid) : void 0, K = () => {
197
- d(n), s(null), r("");
193
+ getMerchantBudgetByMerchantGuid: D,
194
+ alert: O,
195
+ setAlert: K
196
+ } = rt(), { setFilter: P } = M(), { accounts: y } = ot(), N = u.palette.mode === "dark" ? "grey.800" : "grey.100", { budgets: C, common: J } = E(), { announce: se, ariaLive: le } = Ae(), [te, B] = c.useState(!1), b = t?.merchant_guid ? D(t.merchant_guid) : void 0, F = () => {
197
+ d(n), l(null), r("");
198
198
  }, re = () => {
199
- b ? $(!0) : s(
199
+ b ? B(!0) : l(
200
200
  "create"
201
201
  /* CREATE */
202
202
  );
203
- }, H = {
203
+ }, z = {
204
204
  create: {
205
- content: E(
206
- y.create_budget_content,
205
+ content: I(
206
+ C.create_budget_content,
207
207
  /* @__PURE__ */ e("strong", { children: t.description }),
208
- `${W(t.amount, "0,0.00")}`
208
+ `${V(t.amount, "0,0.00")}`
209
209
  ),
210
- title: y.dialog_create_budget_title,
211
- primaryButtonText: y.dialog_primary_button_text,
212
- errorAlertMessage: E(
213
- y.alert_merchant_budget_not_created,
210
+ title: C.dialog_create_budget_title,
211
+ primaryButtonText: C.dialog_primary_button_text,
212
+ errorAlertMessage: I(
213
+ C.alert_merchant_budget_not_created,
214
214
  t.description
215
215
  ),
216
- errorRetryAction: () => s(
216
+ errorRetryAction: () => l(
217
217
  "create"
218
218
  /* CREATE */
219
219
  ),
220
- successAlertMessage: E(
221
- y.alert_budget_created,
220
+ successAlertMessage: I(
221
+ C.alert_budget_created,
222
222
  t.description
223
223
  ),
224
224
  apiTrigger: async () => await g(t.merchant_guid, Number(a))
225
225
  },
226
226
  edit: {
227
- content: E(
228
- y.edit_budget_content,
227
+ content: I(
228
+ C.edit_budget_content,
229
229
  /* @__PURE__ */ e("strong", { children: t.description })
230
230
  ),
231
- title: y.details_edit_title,
232
- primaryButtonText: y.add_save_button,
233
- errorAlertMessage: E(
234
- y.error_alert_edit_merchant_budget,
231
+ title: C.details_edit_title,
232
+ primaryButtonText: C.add_save_button,
233
+ errorAlertMessage: I(
234
+ C.error_alert_edit_merchant_budget,
235
235
  t.description
236
236
  ),
237
- errorRetryAction: () => s(
237
+ errorRetryAction: () => l(
238
238
  "edit"
239
239
  /* EDIT */
240
240
  ),
241
- successAlertMessage: E(
242
- y.success_alert_edit_merchant_budget,
241
+ successAlertMessage: I(
242
+ C.success_alert_edit_merchant_budget,
243
243
  t.description
244
244
  ),
245
245
  apiTrigger: async () => await p({
@@ -248,81 +248,81 @@ const It = w(({ transaction: t }) => {
248
248
  })
249
249
  },
250
250
  delete: {
251
- content: E(
252
- y.delete_description,
251
+ content: I(
252
+ C.delete_description,
253
253
  /* @__PURE__ */ e("strong", { children: t.description })
254
254
  ),
255
- title: y.delete_title,
256
- primaryButtonText: y.details_delete_button,
257
- errorAlertMessage: E(
258
- y.error_alert_delete_merchant_budget,
255
+ title: C.delete_title,
256
+ primaryButtonText: C.details_delete_button,
257
+ errorAlertMessage: I(
258
+ C.error_alert_delete_merchant_budget,
259
259
  t.description
260
260
  ),
261
- errorRetryAction: () => s(
261
+ errorRetryAction: () => l(
262
262
  "delete"
263
263
  /* DELETE */
264
264
  ),
265
- successAlertMessage: E(
266
- y.success_alert_delete_merchant_budget,
265
+ successAlertMessage: I(
266
+ C.success_alert_delete_merchant_budget,
267
267
  t.description
268
268
  ),
269
269
  apiTrigger: async () => await h(b.guid)
270
270
  }
271
- }, oe = async () => {
271
+ }, A = async () => {
272
272
  if (_.current) return;
273
273
  _.current = !0;
274
- const { apiTrigger: v, successAlertMessage: S, errorAlertMessage: T } = H[n], { isSuccess: D } = await v(), J = D ? S : T;
275
- K(), i(!D), B(J), se(J), D && n === "delete" && $(!1), _.current = !1;
274
+ const { apiTrigger: S, successAlertMessage: R, errorAlertMessage: T } = z[n], { isSuccess: v } = await S(), oe = v ? R : T;
275
+ F(), i(!v), K(oe), se(oe), v && n === "delete" && B(!1), _.current = !1;
276
276
  };
277
- l.useEffect(() => {
278
- const v = {
277
+ c.useEffect(() => {
278
+ const S = {
279
279
  start: De(new Date(t.date * 1e3)),
280
280
  end: Be(new Date(t.date * 1e3))
281
281
  };
282
- te && k({
283
- accounts: f.map((S) => S.guid),
284
- custom: te ? (S) => S.merchant_guid === t.merchant_guid : (S) => S.guid === t.guid,
285
- dateRange: v
282
+ te && P({
283
+ accounts: y.map((R) => R.guid),
284
+ custom: te ? (R) => R.merchant_guid === t.merchant_guid : (R) => R.guid === t.guid,
285
+ dateRange: S
286
286
  });
287
- }, [te, t, f]);
288
- const N = () => /* @__PURE__ */ e(
287
+ }, [te, t, y]);
288
+ const $ = () => /* @__PURE__ */ e(
289
289
  Ye,
290
290
  {
291
- actionText: y.autogenerate_budgets_error_primary_button,
291
+ actionText: C.autogenerate_budgets_error_primary_button,
292
292
  autoHideDuration: 3500,
293
- closeAriaLabel: Z.close_aria,
294
- handleClose: () => B(""),
295
- message: M,
296
- onActionClick: H[c]?.errorRetryAction,
297
- open: !!M,
293
+ closeAriaLabel: J.close_aria,
294
+ handleClose: () => K(""),
295
+ message: O,
296
+ onActionClick: z[s]?.errorRetryAction,
297
+ open: !!O,
298
298
  severity: o ? "error" : "success",
299
299
  showAction: o,
300
300
  showClose: !0
301
301
  }
302
302
  );
303
- return /* @__PURE__ */ m(l.Fragment, { children: [
303
+ return /* @__PURE__ */ m(c.Fragment, { children: [
304
304
  le,
305
- /* @__PURE__ */ e(z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ m(Q, { onClick: re, children: [
306
- /* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(j, { sx: { bgcolor: A }, variant: "rounded", children: /* @__PURE__ */ e(P, { name: "bubble_chart", sx: { color: "text.primary" } }) }) }),
305
+ /* @__PURE__ */ e(U, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ m(X, { onClick: re, children: [
306
+ /* @__PURE__ */ e(Q, { children: /* @__PURE__ */ e(q, { sx: { bgcolor: N }, variant: "rounded", children: /* @__PURE__ */ e(k, { name: "bubble_chart", sx: { color: "text.primary" } }) }) }),
307
307
  /* @__PURE__ */ e(
308
- U,
308
+ W,
309
309
  {
310
- primary: y.add_merchant_budget_primary_text,
311
- secondary: /* @__PURE__ */ e(x, { bold: !0, sx: { color: "text.primary" }, variant: "body1", children: b ? `${W(b.amount, "0,0.00")} / ${Z.month_text}` : y.add_merchant_budget_secondary_text }),
310
+ primary: C.add_merchant_budget_primary_text,
311
+ secondary: /* @__PURE__ */ e(x, { bold: !0, sx: { color: "text.primary" }, variant: "body1", children: b ? `${V(b.amount, "0,0.00")} / ${J.month_text}` : C.add_merchant_budget_secondary_text }),
312
312
  slotProps: { primary: { variant: "caption", fontSize: 11, fontWeight: "normal" } }
313
313
  }
314
314
  ),
315
- /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(P, { name: "chevron_right", sx: { color: "text.primary" } }) })
315
+ /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(k, { name: "chevron_right", sx: { color: "text.primary" } }) })
316
316
  ] }) }),
317
317
  !!b && /* @__PURE__ */ e(
318
318
  Nt,
319
319
  {
320
320
  isOpen: te,
321
321
  merchantBudget: b,
322
- onClose: () => $(!1),
323
- renderingToast: () => M && N(),
324
- setCurrencyDialogAction: (v) => {
325
- v === "edit" && r(b?.amount.toString() || ""), s(v);
322
+ onClose: () => B(!1),
323
+ renderingToast: () => O && $(),
324
+ setCurrencyDialogAction: (S) => {
325
+ S === "edit" && r(b?.amount.toString() || ""), l(S);
326
326
  },
327
327
  transaction: t
328
328
  }
@@ -330,54 +330,54 @@ const It = w(({ transaction: t }) => {
330
330
  n && /* @__PURE__ */ e(
331
331
  gt,
332
332
  {
333
- closeAriaLabel: Z.close_aria,
334
- content: H[n].content,
333
+ closeAriaLabel: J.close_aria,
334
+ content: z[n].content,
335
335
  handleInputChange: r,
336
- handleModalClose: K,
337
- handlePrimaryAction: oe,
338
- handleSecondaryAction: K,
339
- inputLabel: n !== "delete" ? Z.amount_text : "",
336
+ handleModalClose: F,
337
+ handlePrimaryAction: A,
338
+ handleSecondaryAction: F,
339
+ inputLabel: n !== "delete" ? J.amount_text : "",
340
340
  inputValue: a,
341
341
  isOpen: !!n,
342
- primaryText: H[n].primaryButtonText,
343
- secondaryText: Z.cancel_button,
344
- title: H[n].title
342
+ primaryText: z[n].primaryButtonText,
343
+ secondaryText: J.cancel_button,
344
+ title: z[n].title
345
345
  }
346
346
  ),
347
- !!M && N()
347
+ !!O && $()
348
348
  ] });
349
349
  }), Dt = ({ transaction: t }) => {
350
- const { addOrUpdateTransactionRule: n, updateTransaction: s } = R(), { categories: a } = we(), { onEvent: r } = G(), { setShouldDisableDrawerScroll: o, updateManualTransaction: i } = ne(), { transactions: _ } = O(), c = F(), [d, u] = l.useState(!1), [g, p] = l.useState(""), h = async (f) => {
351
- await s({ ...t, category_guid: g }), f && await n(g, t), p(""), r(Y.TRANSACTION_DETAILS_CLICK_CATEGORY, {
350
+ const { addOrUpdateTransactionRule: n, updateTransaction: l } = M(), { categories: a } = we(), { onEvent: r } = G(), { setShouldDisableDrawerScroll: o, updateManualTransaction: i } = ne(), { transactions: _ } = E(), s = H(), [d, u] = c.useState(!1), [g, p] = c.useState(""), h = async (y) => {
351
+ await l({ ...t, category_guid: g }), y && await n(g, t), p(""), r(j.TRANSACTION_DETAILS_CLICK_CATEGORY, {
352
352
  transaction_guid: t.guid
353
353
  });
354
- }, I = (f) => {
354
+ }, D = (y) => {
355
355
  if (t.is_manual && !t.guid) {
356
- const A = a.find((y) => y.guid === f);
356
+ const N = a.find((C) => C.guid === y);
357
357
  i({
358
358
  ...t,
359
- category: A?.name,
360
- category_guid: f,
361
- top_level_category_guid: A?.parent_guid || f
359
+ category: N?.name,
360
+ category_guid: y,
361
+ top_level_category_guid: N?.parent_guid || y
362
362
  });
363
363
  } else
364
- p(f);
365
- M();
366
- }, M = () => {
364
+ p(y);
365
+ O();
366
+ }, O = () => {
367
367
  u(!1), o(!1);
368
- }, B = l.useMemo(
369
- () => a.find((f) => f.guid === g),
368
+ }, K = c.useMemo(
369
+ () => a.find((y) => y.guid === g),
370
370
  [g]
371
- ), k = c.palette.mode === "dark" ? "grey.800" : "grey.100";
372
- return /* @__PURE__ */ m(z, { disableGutters: !0, disablePadding: !0, children: [
371
+ ), P = s.palette.mode === "dark" ? "grey.800" : "grey.100";
372
+ return /* @__PURE__ */ m(U, { disableGutters: !0, disablePadding: !0, children: [
373
373
  /* @__PURE__ */ m(
374
- Q,
374
+ X,
375
375
  {
376
376
  onClick: () => {
377
- r(C.ON_TRANSACTION_CATEGORY_CLICK), u(!0);
377
+ r(f.ON_TRANSACTION_CATEGORY_CLICK), u(!0);
378
378
  },
379
379
  children: [
380
- /* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(j, { sx: { bgcolor: k }, variant: "rounded", children: /* @__PURE__ */ e(
380
+ /* @__PURE__ */ e(Q, { children: /* @__PURE__ */ e(q, { sx: { bgcolor: P }, variant: "rounded", children: /* @__PURE__ */ e(
381
381
  Oe,
382
382
  {
383
383
  categoryGuid: t.top_level_category_guid,
@@ -387,14 +387,14 @@ const It = w(({ transaction: t }) => {
387
387
  }
388
388
  ) }) }),
389
389
  /* @__PURE__ */ e(
390
- U,
390
+ W,
391
391
  {
392
392
  primary: _.category_title,
393
393
  secondary: /* @__PURE__ */ e(x, { bold: !0, sx: { color: "text.primary" }, variant: "body1", children: t.category ?? _.actions_select_a_category }),
394
394
  slotProps: { primary: { variant: "caption", fontSize: 11, fontWeight: "normal" } }
395
395
  }
396
396
  ),
397
- /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(P, { name: "chevron_right", sx: { color: "text.primary" } }) })
397
+ /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(k, { name: "chevron_right", sx: { color: "text.primary" } }) })
398
398
  ]
399
399
  }
400
400
  ),
@@ -402,8 +402,8 @@ const It = w(({ transaction: t }) => {
402
402
  Fe,
403
403
  {
404
404
  initialSelected: t.category_guid,
405
- onClose: M,
406
- onSelect: I,
405
+ onClose: O,
406
+ onSelect: D,
407
407
  showDrawer: d,
408
408
  title: _.actions_select_a_category
409
409
  }
@@ -412,7 +412,7 @@ const It = w(({ transaction: t }) => {
412
412
  ae,
413
413
  {
414
414
  copy: {
415
- title: E(
415
+ title: I(
416
416
  _.actions_apply_to_all_transaction_types,
417
417
  t.description
418
418
  )
@@ -423,42 +423,42 @@ const It = w(({ transaction: t }) => {
423
423
  onSecondaryAction: () => h(!1),
424
424
  primaryText: _.actions_apply_to_all,
425
425
  secondaryText: _.actions_this_time_only,
426
- children: /* @__PURE__ */ e(ee, { variant: "subtitle1", children: E(
426
+ children: /* @__PURE__ */ e(ee, { variant: "subtitle1", children: I(
427
427
  _.actions_all_past_and_future,
428
428
  t.description,
429
- B?.name
429
+ K?.name
430
430
  ) })
431
431
  }
432
432
  )
433
433
  ] });
434
434
  }, vt = ({ transaction: t }) => {
435
- const { onEvent: n } = G(), { updateTransaction: s } = R(), { updateManualTransaction: a } = ne(), { common: r, transactions: o } = O(), i = F(), [_, c] = l.useState(!1), [d, u] = l.useState(t.date), g = (I) => {
436
- u(Ie(I));
435
+ const { onEvent: n } = G(), { updateTransaction: l } = M(), { updateManualTransaction: a } = ne(), { common: r, transactions: o } = E(), i = H(), [_, s] = c.useState(!1), [d, u] = c.useState(t.date), g = (D) => {
436
+ u(Ie(D));
437
437
  }, p = async () => {
438
438
  if (t.is_manual && !t.guid) {
439
- a({ ...t, date: d }), c(!1);
439
+ a({ ...t, date: d }), s(!1);
440
440
  return;
441
441
  }
442
- await s({ ...t, date: d }), n(Y.TRANSACTION_DETAILS_CLICK_DATE, { transaction_guid: t.guid }), c(!1);
442
+ await l({ ...t, date: d }), n(j.TRANSACTION_DETAILS_CLICK_DATE, { transaction_guid: t.guid }), s(!1);
443
443
  }, h = i.palette.mode === "dark" ? "grey.800" : "grey.100";
444
- return /* @__PURE__ */ m(z, { className: "mx-txn-date-action", disableGutters: !0, disablePadding: !0, children: [
444
+ return /* @__PURE__ */ m(U, { className: "mx-txn-date-action", disableGutters: !0, disablePadding: !0, children: [
445
445
  /* @__PURE__ */ m(
446
- Q,
446
+ X,
447
447
  {
448
448
  onClick: () => {
449
- n(C.ON_TRANSACTION_DATE_CLICK), c(!0);
449
+ n(f.ON_TRANSACTION_DATE_CLICK), s(!0);
450
450
  },
451
451
  children: [
452
- /* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(j, { sx: { bgcolor: h }, variant: "rounded", children: /* @__PURE__ */ e(P, { name: "calendar_month", sx: { color: "text.primary" } }) }) }),
452
+ /* @__PURE__ */ e(Q, { children: /* @__PURE__ */ e(q, { sx: { bgcolor: h }, variant: "rounded", children: /* @__PURE__ */ e(k, { name: "calendar_month", sx: { color: "text.primary" } }) }) }),
453
453
  /* @__PURE__ */ e(
454
- U,
454
+ W,
455
455
  {
456
456
  primary: o.date_title,
457
457
  secondary: /* @__PURE__ */ e(x, { bold: !0, sx: { color: "text.primary" }, variant: "body1", children: Me(ve(t.date), Re.YEAR_MONTH_DAY) }),
458
458
  slotProps: { primary: { variant: "caption", fontSize: 11, fontWeight: "normal" } }
459
459
  }
460
460
  ),
461
- /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(P, { name: "chevron_right", sx: { color: "text.primary" } }) })
461
+ /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(k, { name: "chevron_right", sx: { color: "text.primary" } }) })
462
462
  ]
463
463
  }
464
464
  ),
@@ -467,7 +467,7 @@ const It = w(({ transaction: t }) => {
467
467
  {
468
468
  ariaLabelClose: r.close_aria,
469
469
  isOpen: _,
470
- onClose: () => c(!1),
470
+ onClose: () => s(!1),
471
471
  onPrimaryAction: p,
472
472
  primaryText: r.save_button,
473
473
  secondaryText: r.cancel_button,
@@ -489,26 +489,26 @@ const It = w(({ transaction: t }) => {
489
489
  )
490
490
  ] });
491
491
  }, Et = ({ transaction: t }) => {
492
- const { onEvent: n } = G(), { removeTransaction: s } = R(), { setShouldDisableDrawerScroll: a } = ne(), { common: r, transactions: o } = O(), [i, _] = l.useState(!1), c = async () => {
493
- await s(t.guid), n(C.ON_TRANSACTION_DELETE_DELETED);
492
+ const { onEvent: n } = G(), { removeTransaction: l } = M(), { setShouldDisableDrawerScroll: a } = ne(), { common: r, transactions: o } = E(), [i, _] = c.useState(!1), s = async () => {
493
+ await l(t.guid), n(f.ON_TRANSACTION_DELETE_DELETED);
494
494
  };
495
- return /* @__PURE__ */ m(V, { className: "mx-txn-delete", children: [
496
- t && /* @__PURE__ */ e(z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ m(
497
- Q,
495
+ return /* @__PURE__ */ m(Y, { className: "mx-txn-delete", children: [
496
+ t && /* @__PURE__ */ e(U, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ m(
497
+ X,
498
498
  {
499
499
  onClick: () => {
500
- n(C.ON_TRANSACTION_DELETE_CLICK), a(!0), _(!0);
500
+ n(f.ON_TRANSACTION_DELETE_CLICK), a(!0), _(!0);
501
501
  },
502
502
  children: [
503
- /* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(j, { variant: "rounded", children: /* @__PURE__ */ e(fe, { color: "secondary", fontSize: "small" }) }) }),
503
+ /* @__PURE__ */ e(Q, { children: /* @__PURE__ */ e(q, { variant: "rounded", children: /* @__PURE__ */ e(fe, { color: "secondary", fontSize: "small" }) }) }),
504
504
  /* @__PURE__ */ e(
505
- U,
505
+ W,
506
506
  {
507
507
  primary: o.manual_transaction_delete_title,
508
508
  secondary: o.manual_transaction_delete_subtitle
509
509
  }
510
510
  ),
511
- /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(fe, {}) })
511
+ /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(fe, {}) })
512
512
  ]
513
513
  }
514
514
  ) }),
@@ -520,8 +520,8 @@ const It = w(({ transaction: t }) => {
520
520
  onClose: () => {
521
521
  a(!1), _(!1);
522
522
  },
523
- onPrimaryAction: c,
524
- onSecondaryAction: () => n(C.ON_TRANSACTION_DELETE_CANCEL),
523
+ onPrimaryAction: s,
524
+ onSecondaryAction: () => n(f.ON_TRANSACTION_DELETE_CANCEL),
525
525
  primaryText: r.delete_button,
526
526
  secondaryText: r.cancel_button,
527
527
  children: /* @__PURE__ */ e(x, { variant: "subtitle1", children: o.manual_transaction_delete_description })
@@ -529,22 +529,22 @@ const It = w(({ transaction: t }) => {
529
529
  )
530
530
  ] });
531
531
  }, Ot = w(Et), Lt = ({ transaction: t }) => {
532
- const { onEvent: n } = G(), { updateTransaction: s } = R(), { setShouldDisableDrawerScroll: a } = ne(), { common: r, transactions: o } = O(), i = F(), [_, c] = l.useState(!1), d = async () => {
533
- await s({ ...t, merchant_guid: "" }), n(Y.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
532
+ const { onEvent: n } = G(), { updateTransaction: l } = M(), { setShouldDisableDrawerScroll: a } = ne(), { common: r, transactions: o } = E(), i = H(), [_, s] = c.useState(!1), d = async () => {
533
+ await l({ ...t, merchant_guid: "" }), n(j.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
534
534
  transaction_guid: t.guid
535
535
  });
536
536
  }, u = i.palette.mode === "dark" ? "grey.800" : "grey.100";
537
- return /* @__PURE__ */ e(l.Fragment, { children: t && /* @__PURE__ */ m(z, { className: "mx-txn-delete-logo", disableGutters: !0, disablePadding: !0, children: [
537
+ return /* @__PURE__ */ e(c.Fragment, { children: t && /* @__PURE__ */ m(U, { className: "mx-txn-delete-logo", disableGutters: !0, disablePadding: !0, children: [
538
538
  /* @__PURE__ */ m(
539
- Q,
539
+ X,
540
540
  {
541
541
  onClick: () => {
542
- n(C.ON_TRANSACTION_DELETE_LOGO_CLICK), c(!0);
542
+ n(f.ON_TRANSACTION_DELETE_LOGO_CLICK), s(!0);
543
543
  },
544
544
  children: [
545
- /* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(j, { sx: { bgcolor: u }, variant: "rounded", children: /* @__PURE__ */ e(P, { name: "delete", sx: { color: "text.primary" } }) }) }),
546
- /* @__PURE__ */ e(U, { primary: o.merchant_logo_title, secondary: o.merchant_logo_desc }),
547
- /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(P, { name: "chevron_right", sx: { color: "text.primary" } }) })
545
+ /* @__PURE__ */ e(Q, { children: /* @__PURE__ */ e(q, { sx: { bgcolor: u }, variant: "rounded", children: /* @__PURE__ */ e(k, { name: "delete", sx: { color: "text.primary" } }) }) }),
546
+ /* @__PURE__ */ e(W, { primary: o.merchant_logo_title, secondary: o.merchant_logo_desc }),
547
+ /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(k, { name: "chevron_right", sx: { color: "text.primary" } }) })
548
548
  ]
549
549
  }
550
550
  ),
@@ -554,10 +554,10 @@ const It = w(({ transaction: t }) => {
554
554
  copy: { title: o.merchant_logo_modal_title },
555
555
  isOpen: _,
556
556
  onClose: () => {
557
- a(!1), c(!1);
557
+ a(!1), s(!1);
558
558
  },
559
559
  onPrimaryAction: d,
560
- onSecondaryAction: () => n(C.ON_TRANSACTION_DELETE_LOGO_CANCEL),
560
+ onSecondaryAction: () => n(f.ON_TRANSACTION_DELETE_LOGO_CANCEL),
561
561
  primaryText: r.delete_button,
562
562
  secondaryText: r.cancel_button,
563
563
  title: o.merchant_logo_modal_title,
@@ -569,24 +569,24 @@ const It = w(({ transaction: t }) => {
569
569
  )
570
570
  ] }) });
571
571
  }, wt = w(Lt), Mt = ({ transaction: t }) => {
572
- const { onEvent: n } = G(), { setAlert: s, updateTransaction: a } = R(), { setShouldDisableDrawerScroll: r } = ne(), { common: o, transactions: i } = O(), _ = F(), [c, d] = l.useState(!1), u = t.is_hidden, g = async () => {
572
+ const { onEvent: n } = G(), { setAlert: l, updateTransaction: a } = M(), { setShouldDisableDrawerScroll: r } = ne(), { common: o, transactions: i } = E(), _ = H(), [s, d] = c.useState(!1), u = t.is_hidden, g = async () => {
573
573
  try {
574
574
  await a({ ...t, is_hidden: !t.is_hidden }), n(
575
- u ? C.ON_TRANSACTION_UNHIDDEN : C.ON_TRANSACTION_HIDDEN
576
- ), s(u ? i.transaction_included : i.transaction_excluded);
575
+ u ? f.ON_TRANSACTION_UNHIDDEN : f.ON_TRANSACTION_HIDDEN
576
+ ), l(u ? i.transaction_included : i.transaction_excluded);
577
577
  } catch {
578
- s(u ? i.transaction_not_included : i.transaction_not_excluded);
578
+ l(u ? i.transaction_not_included : i.transaction_not_excluded);
579
579
  }
580
580
  }, p = _.palette.mode === "dark" ? "grey.800" : "grey.100";
581
- return /* @__PURE__ */ e(l.Fragment, { children: t && /* @__PURE__ */ m(z, { className: "mx-txn-hide-transaction", disableGutters: !0, disablePadding: !0, children: [
581
+ return /* @__PURE__ */ e(c.Fragment, { children: t && /* @__PURE__ */ m(U, { className: "mx-txn-hide-transaction", disableGutters: !0, disablePadding: !0, children: [
582
582
  /* @__PURE__ */ m(
583
- Q,
583
+ X,
584
584
  {
585
585
  "aria-checked": u,
586
586
  "aria-labelledby": "hide-transaction-text",
587
587
  onClick: () => {
588
588
  n(
589
- u ? C.ON_TRANSACTION_UNHIDE_CLICK : C.ON_TRANSACTION_HIDE_CLICK
589
+ u ? f.ON_TRANSACTION_UNHIDE_CLICK : f.ON_TRANSACTION_HIDE_CLICK
590
590
  ), n(
591
591
  u ? "transaction_details_click_unhide_transaction" : "transaction_details_click_hide_transaction",
592
592
  {
@@ -596,16 +596,16 @@ const It = w(({ transaction: t }) => {
596
596
  },
597
597
  role: "switch",
598
598
  children: [
599
- /* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(j, { sx: { bgcolor: p }, variant: "rounded", children: u ? /* @__PURE__ */ e(P, { name: "visibility_off", sx: { color: "text.primary" } }) : /* @__PURE__ */ e(P, { name: "visibility", sx: { color: "text.primary" } }) }) }),
599
+ /* @__PURE__ */ e(Q, { children: /* @__PURE__ */ e(q, { sx: { bgcolor: p }, variant: "rounded", children: u ? /* @__PURE__ */ e(k, { name: "visibility_off", sx: { color: "text.primary" } }) : /* @__PURE__ */ e(k, { name: "visibility", sx: { color: "text.primary" } }) }) }),
600
600
  /* @__PURE__ */ e(
601
- U,
601
+ W,
602
602
  {
603
603
  id: "hide-transaction-text",
604
604
  primary: i.exclude_transaction,
605
605
  secondary: i.excluding_transaction
606
606
  }
607
607
  ),
608
- /* @__PURE__ */ e(X, { "aria-hidden": "true", children: /* @__PURE__ */ e(
608
+ /* @__PURE__ */ e(Z, { "aria-hidden": "true", children: /* @__PURE__ */ e(
609
609
  Ct,
610
610
  {
611
611
  checked: u,
@@ -623,13 +623,13 @@ const It = w(({ transaction: t }) => {
623
623
  copy: {
624
624
  title: u ? i.include_transaction : i.exclude_transaction
625
625
  },
626
- isOpen: c,
626
+ isOpen: s,
627
627
  onClose: () => {
628
628
  r(!1), d(!1);
629
629
  },
630
630
  onPrimaryAction: g,
631
631
  onSecondaryAction: () => n(
632
- u ? C.ON_TRANSACTION_UNHIDE_CANCEL_CLICK : C.ON_TRANSACTION_HIDE_CANCEL_CLICK
632
+ u ? f.ON_TRANSACTION_UNHIDE_CANCEL_CLICK : f.ON_TRANSACTION_HIDE_CANCEL_CLICK
633
633
  ),
634
634
  primaryText: u ? i.include : i.exclude,
635
635
  secondaryText: o.cancel_button,
@@ -638,7 +638,7 @@ const It = w(({ transaction: t }) => {
638
638
  )
639
639
  ] }) });
640
640
  }, Rt = w(Mt), He = ({ transaction: t }) => {
641
- const { amount: n, description: s, isIncome: a, merchant_guid: r, payee: o, top_level_category_guid: i } = t;
641
+ const { amount: n, description: l, isIncome: a, merchant_guid: r, payee: o, top_level_category_guid: i } = t;
642
642
  return /* @__PURE__ */ m(L, { className: "mx-txn-amount-header", direction: "row", gap: 12, px: 16, py: 24, children: [
643
643
  /* @__PURE__ */ e(
644
644
  Ce,
@@ -649,43 +649,43 @@ const It = w(({ transaction: t }) => {
649
649
  }
650
650
  ),
651
651
  /* @__PURE__ */ m(L, { overflow: "hidden'", children: [
652
- /* @__PURE__ */ e(x, { bold: !0, mb: 4, truncate: !0, variant: "body1", children: s || o }),
652
+ /* @__PURE__ */ e(x, { bold: !0, mb: 4, truncate: !0, variant: "body1", children: l || o }),
653
653
  /* @__PURE__ */ m(ee, { color: a ? "success.main" : "text.primary", truncate: !0, variant: "h1", children: [
654
654
  a ? "+" : "",
655
- W(n, "0,0.00")
655
+ V(n, "0,0.00")
656
656
  ] })
657
657
  ] })
658
658
  ] });
659
659
  }, kt = ({ transaction: t }) => {
660
- const { onEvent: n } = G(), { updateTransaction: s } = R(), { updateManualTransaction: a } = ne(), { common: r, transactions: o } = O(), i = F(), [_, c] = l.useState(!1), [d, u] = l.useState("");
661
- l.useEffect(() => {
660
+ const { onEvent: n } = G(), { updateTransaction: l } = M(), { updateManualTransaction: a } = ne(), { common: r, transactions: o } = E(), i = H(), [_, s] = c.useState(!1), [d, u] = c.useState("");
661
+ c.useEffect(() => {
662
662
  _ && u(t.memo ? t.memo : "");
663
663
  }, [_]);
664
664
  const g = async () => {
665
665
  if (t.is_manual && !t.guid) {
666
- a({ ...t, memo: d }), c(!1);
666
+ a({ ...t, memo: d }), s(!1);
667
667
  return;
668
668
  }
669
- await s({ ...t, memo: d }), n(Y.TRANSACTION_DETAILS_CLICK_MEMO, { transaction_guid: t.guid }), c(!1);
669
+ await l({ ...t, memo: d }), n(j.TRANSACTION_DETAILS_CLICK_MEMO, { transaction_guid: t.guid }), s(!1);
670
670
  }, p = i.palette.mode === "dark" ? "grey.800" : "grey.100";
671
- return /* @__PURE__ */ m(z, { className: "mx-txn-memo-action", disableGutters: !0, disablePadding: !0, children: [
671
+ return /* @__PURE__ */ m(U, { className: "mx-txn-memo-action", disableGutters: !0, disablePadding: !0, children: [
672
672
  /* @__PURE__ */ m(
673
- Q,
673
+ X,
674
674
  {
675
675
  onClick: () => {
676
- n(C.ON_TRANSACTION_MEMO_CLICK), c(!0);
676
+ n(f.ON_TRANSACTION_MEMO_CLICK), s(!0);
677
677
  },
678
678
  children: [
679
- /* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(j, { sx: { bgcolor: p }, variant: "rounded", children: /* @__PURE__ */ e(P, { name: "article", sx: { color: "text.primary" } }) }) }),
679
+ /* @__PURE__ */ e(Q, { children: /* @__PURE__ */ e(q, { sx: { bgcolor: p }, variant: "rounded", children: /* @__PURE__ */ e(k, { name: "article", sx: { color: "text.primary" } }) }) }),
680
680
  /* @__PURE__ */ e(
681
- U,
681
+ W,
682
682
  {
683
683
  primary: o.memo_title,
684
684
  secondary: /* @__PURE__ */ e(x, { bold: !0, sx: { color: "text.primary" }, variant: "body1", children: t.memo ? t.memo : o.memo_desc }),
685
685
  slotProps: { primary: { variant: "caption", fontSize: 11, fontWeight: "normal" } }
686
686
  }
687
687
  ),
688
- /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(P, { name: "chevron_right", sx: { color: "text.primary" } }) })
688
+ /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(k, { name: "chevron_right", sx: { color: "text.primary" } }) })
689
689
  ]
690
690
  }
691
691
  ),
@@ -694,7 +694,7 @@ const It = w(({ transaction: t }) => {
694
694
  {
695
695
  ariaLabelClose: r.close_aria,
696
696
  isOpen: _,
697
- onClose: () => c(!1),
697
+ onClose: () => s(!1),
698
698
  onPrimaryAction: g,
699
699
  title: o.memo_title,
700
700
  children: [
@@ -720,14 +720,14 @@ const It = w(({ transaction: t }) => {
720
720
  }, Pt = w(kt), Gt = ({
721
721
  index: t,
722
722
  onDeleteRow: n,
723
- onCategoryChanged: s,
723
+ onCategoryChanged: l,
724
724
  onUpdateAmount: a,
725
725
  split: r
726
726
  }) => {
727
- const { onEvent: o } = G(), { transactions: i } = O(), [_, c] = l.useState(`${r.amount}`), [d, u] = l.useState(!1), g = t === 0, p = (h) => {
728
- isNaN(Number(h)) || (c(h), a(t, Number(h)));
727
+ const { onEvent: o } = G(), { transactions: i } = E(), [_, s] = c.useState(`${r.amount}`), [d, u] = c.useState(!1), g = t === 0, p = (h) => {
728
+ isNaN(Number(h)) || (s(h), a(t, Number(h)));
729
729
  };
730
- return /* @__PURE__ */ m(V, { bgcolor: "background.paper", className: "mx-txn-split-manager-row", pb: 4, px: 8, children: [
730
+ return /* @__PURE__ */ m(Y, { bgcolor: "background.paper", className: "mx-txn-split-manager-row", pb: 4, px: 8, children: [
731
731
  /* @__PURE__ */ m(Ne, { alignItems: g ? "center" : "start", container: !0, children: [
732
732
  /* @__PURE__ */ e(Ne, { size: 7, children: /* @__PURE__ */ m(L, { alignItems: "start", children: [
733
733
  /* @__PURE__ */ e(
@@ -740,12 +740,12 @@ const It = w(({ transaction: t }) => {
740
740
  children: r.category
741
741
  }
742
742
  ),
743
- /* @__PURE__ */ e(V, { children: !r.category_guid && /* @__PURE__ */ m(L, { color: "error.main", direction: "row", gap: 8, p: 12, children: [
743
+ /* @__PURE__ */ e(Y, { children: !r.category_guid && /* @__PURE__ */ m(L, { color: "error.main", direction: "row", gap: 8, p: 12, children: [
744
744
  /* @__PURE__ */ e("span", { "aria-label": "error", role: "img", children: /* @__PURE__ */ e(Se, { sx: { fontSize: 15 } }) }),
745
745
  /* @__PURE__ */ e(x, { variant: "body2", children: i.split_transaction_errors_select_category })
746
746
  ] }) })
747
747
  ] }) }),
748
- /* @__PURE__ */ e(Ne, { size: 5, children: g ? /* @__PURE__ */ e("div", { className: "mx-txn-split-manager-row-top-container", children: /* @__PURE__ */ e(x, { children: W(r.amount, "0,0.00") }) }) : /* @__PURE__ */ m(L, { alignItems: "start", children: [
748
+ /* @__PURE__ */ e(Ne, { size: 5, children: g ? /* @__PURE__ */ e("div", { className: "mx-txn-split-manager-row-top-container", children: /* @__PURE__ */ e(x, { children: V(r.amount, "0,0.00") }) }) : /* @__PURE__ */ m(L, { alignItems: "start", children: [
749
749
  /* @__PURE__ */ m(L, { alignItems: "start", direction: "row", gap: 8, children: [
750
750
  /* @__PURE__ */ e(
751
751
  bt,
@@ -768,7 +768,7 @@ const It = w(({ transaction: t }) => {
768
768
  "aria-label": i.split_transaction_delete_split_btn,
769
769
  color: "secondary",
770
770
  onClick: () => {
771
- o(C.ON_TRANSACTION_SPLIT_DELETE_CLICK), n(t);
771
+ o(f.ON_TRANSACTION_SPLIT_DELETE_CLICK), n(t);
772
772
  },
773
773
  sx: { w: 44, h: 44 },
774
774
  children: /* @__PURE__ */ e(fe, {})
@@ -787,7 +787,7 @@ const It = w(({ transaction: t }) => {
787
787
  initialSelected: r.category_guid,
788
788
  onClose: () => u(!1),
789
789
  onSelect: (h) => {
790
- s(t, h), u(!1);
790
+ l(t, h), u(!1);
791
791
  },
792
792
  showDrawer: d,
793
793
  title: i.actions_select_a_category
@@ -797,165 +797,158 @@ const It = w(({ transaction: t }) => {
797
797
  }, Bt = w(Gt), $t = ({
798
798
  onAddSplit: t,
799
799
  onCategoryChanged: n,
800
- onDeleteSplit: s,
800
+ onDeleteSplit: l,
801
801
  onUpdateAmount: a,
802
802
  splits: r,
803
803
  transaction: o
804
804
  }) => {
805
- const { transactions: i } = O(), { onEvent: _ } = G(), [c, d] = l.useState(""), { announce: u, ariaLive: g } = Ae();
806
- return l.useEffect(() => {
805
+ const { transactions: i } = E(), { onEvent: _ } = G(), [s, d] = c.useState(""), { announce: u, ariaLive: g } = Ae();
806
+ return c.useEffect(() => {
807
807
  if (r.length <= 1)
808
808
  d(i.split_transaction_errors_min_splits), u(i.split_transaction_errors_min_splits);
809
809
  else if (r[0].amount < 0) {
810
- const p = E(
810
+ const p = I(
811
811
  i.split_transaction_errors_totals_must_equal_amount,
812
- W(o.amount, "0,0.00")
812
+ V(o.amount, "0,0.00")
813
813
  );
814
814
  d(p), u(p);
815
815
  } else
816
816
  d(""), u("");
817
- }, [r]), /* @__PURE__ */ m(V, { className: "mx-txn-split-manager", children: [
817
+ }, [r]), /* @__PURE__ */ m(Y, { className: "mx-txn-split-manager", children: [
818
818
  g,
819
819
  r.map((p, h) => /* @__PURE__ */ e(
820
820
  Bt,
821
821
  {
822
822
  index: h,
823
823
  onCategoryChanged: n,
824
- onDeleteRow: s,
824
+ onDeleteRow: l,
825
825
  onUpdateAmount: a,
826
826
  split: p
827
827
  },
828
828
  h
829
829
  )),
830
- c && /* @__PURE__ */ m(L, { bgcolor: "background.paper", color: "error.main", direction: "row", gap: 8, p: 16, children: [
830
+ s && /* @__PURE__ */ m(L, { bgcolor: "background.paper", color: "error.main", direction: "row", gap: 8, p: 16, children: [
831
831
  /* @__PURE__ */ e("span", { "aria-label": "error", role: "img", children: /* @__PURE__ */ e(Se, { sx: { fontSize: 15 } }) }),
832
- /* @__PURE__ */ e(x, { variant: "body2", children: c })
832
+ /* @__PURE__ */ e(x, { variant: "body2", children: s })
833
833
  ] }),
834
- /* @__PURE__ */ e(V, { p: 16, children: /* @__PURE__ */ e(
834
+ /* @__PURE__ */ e(Y, { p: 16, children: /* @__PURE__ */ e(
835
835
  me,
836
836
  {
837
837
  "aria-label": i.split_transaction_add_split_btn,
838
838
  onClick: () => {
839
- _(C.ON_TRANSACTION_SPLIT_ADD_CLICK), t();
839
+ _(f.ON_TRANSACTION_SPLIT_ADD_CLICK), t();
840
840
  },
841
841
  children: i.split_transaction_add_split_btn
842
842
  }
843
843
  ) })
844
844
  ] });
845
845
  }, Kt = w($t), Ft = ({ transaction: t }) => {
846
- const { onEvent: n } = G(), { announce: s, ariaLive: a } = Ae(), { splitTransaction: r, unSplitTransaction: o } = R(), { common: i, transactions: _ } = O(), { setShouldDisableDrawerScroll: c } = ne(), { categories: d } = we(), u = F(), g = {
846
+ const { onEvent: n } = G(), { announce: l, ariaLive: a } = Ae(), { splitTransaction: r, unSplitTransaction: o, transactionSplitting: i } = M(), { common: _, transactions: s } = E(), { setShouldDisableDrawerScroll: d } = ne(), { categories: u } = we(), g = H(), p = {
847
847
  ...t,
848
848
  amount: t.amount - 1,
849
849
  guid: "",
850
850
  has_been_split: !1,
851
851
  parent_guid: t.guid
852
- }, p = {
852
+ }, h = {
853
853
  ...t,
854
854
  amount: 1,
855
855
  category_guid: void 0,
856
- category: _.split_transaction_select_category_btn,
856
+ category: s.split_transaction_select_category_btn,
857
857
  guid: "",
858
858
  has_been_split: !1,
859
859
  parent_guid: t.guid,
860
860
  top_level_category_guid: void 0
861
- }, [h, I] = l.useState(!1), [M, B] = l.useState(!1), [k, f] = l.useState(!1), [A, y] = l.useState([]), Z = () => {
862
- const N = [...A];
863
- N.push({ ...p }), N[0].amount -= 1, y(N), s(
864
- E(
865
- _.split_transaction_add_split_announcement,
866
- N.length
861
+ }, [D, O] = c.useState(!1), [K, P] = c.useState(!1), [y, N] = c.useState([]), C = () => {
862
+ const A = [...y];
863
+ A.push({ ...h }), A[0].amount -= 1, N(A), l(
864
+ I(
865
+ s.split_transaction_add_split_announcement,
866
+ A.length
867
867
  )
868
868
  );
869
- }, se = (N) => {
870
- if (N > 0) {
871
- const v = A[N], S = [...A];
872
- S.splice(N, 1), S[0].amount += v.amount, y(S), s(
873
- E(_.split_transaction_delete_split_announcement, N + 1)
869
+ }, J = (A) => {
870
+ if (A > 0) {
871
+ const $ = y[A], S = [...y];
872
+ S.splice(A, 1), S[0].amount += $.amount, N(S), l(
873
+ I(s.split_transaction_delete_split_announcement, A + 1)
874
874
  );
875
875
  }
876
- }, le = (N, v) => {
877
- const S = [...A];
878
- S[N].amount = v, S[0].amount = t.amount - S.reduce(
879
- (T, D, J) => T + (J !== 0 ? D.amount : 0),
876
+ }, se = (A, $) => {
877
+ const S = [...y];
878
+ S[A].amount = $, S[0].amount = t.amount - S.reduce(
879
+ (R, T, v) => R + (v !== 0 ? T.amount : 0),
880
880
  0
881
- ), y(S);
882
- }, te = (N, v) => {
883
- const S = [...A], T = d.find((D) => D.guid === v);
884
- T && (S[N] = {
885
- ...S[N],
886
- category_guid: v,
887
- category: T.name,
888
- top_level_category_guid: T.parent_guid || v
889
- }, y(S), s(
890
- E(
891
- _.split_transaction_select_category_announcement,
892
- T.name,
893
- N + 1
881
+ ), N(S);
882
+ }, le = (A, $) => {
883
+ const S = [...y], R = u.find((T) => T.guid === $);
884
+ R && (S[A] = {
885
+ ...S[A],
886
+ category_guid: $,
887
+ category: R.name,
888
+ top_level_category_guid: R.parent_guid || $
889
+ }, N(S), l(
890
+ I(
891
+ s.split_transaction_select_category_announcement,
892
+ R.name,
893
+ A + 1
894
894
  )
895
895
  ));
896
- }, $ = () => {
896
+ }, te = () => {
897
897
  if (t.parent_guid || t.has_been_split) {
898
- B(!0);
898
+ P(!0);
899
899
  return;
900
900
  }
901
- y([{ ...g }, { ...p }]), n(Y.TRANSACTION_DETAILS_CLICK_SPLIT, {
901
+ N([{ ...p }, { ...h }]), n(j.TRANSACTION_DETAILS_CLICK_SPLIT, {
902
902
  transaction_guid: t.guid
903
- }), I(!0);
903
+ }), O(!0);
904
+ }, B = async () => {
905
+ n(f.ON_TRANSACTION_SPLIT_SAVE_CLICK), await r({ ...t, has_been_split: !0 }, y), O(!1);
904
906
  }, b = async () => {
905
- if (!k) {
906
- f(!0);
907
- try {
908
- n(C.ON_TRANSACTION_SPLIT_SAVE_CLICK), await r({ ...t, has_been_split: !0 }, A), I(!1);
909
- } finally {
910
- f(!1);
911
- }
912
- }
913
- }, K = async () => {
914
- k || (n(C.ON_TRANSACTION_SPLIT_CANCEL_CLICK), y([{ ...g }, { ...p }]), f(!1), I(!1));
915
- }, re = async () => {
916
- n(Y.TRANSACTION_DETAILS_CLICK_UNSPLIT, {
907
+ i || (n(f.ON_TRANSACTION_SPLIT_CANCEL_CLICK), N([{ ...p }, { ...h }]), O(!1));
908
+ }, F = async () => {
909
+ n(j.TRANSACTION_DETAILS_CLICK_UNSPLIT, {
917
910
  transaction_guid: t.guid
918
911
  });
919
- const N = t.parent_guid ?? t.guid;
920
- await o(N);
921
- }, H = l.useMemo(() => {
922
- const N = A.some((S) => !S.category_guid), v = A.some((S) => S.amount <= 0);
923
- return N || v;
924
- }, [A]), oe = u.palette.mode === "dark" ? "grey.800" : "grey.100";
925
- return /* @__PURE__ */ e(l.Fragment, { children: t && /* @__PURE__ */ m(z, { disableGutters: !0, disablePadding: !0, children: [
926
- /* @__PURE__ */ m(Q, { onClick: $, children: [
927
- /* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(j, { sx: { bgcolor: oe }, variant: "rounded", children: /* @__PURE__ */ e(P, { name: "call_split", sx: { color: "text.primary" } }) }) }),
912
+ const A = t.parent_guid ?? t.guid;
913
+ await o(A);
914
+ }, re = c.useMemo(() => {
915
+ const A = y.some((S) => !S.category_guid), $ = y.some((S) => S.amount <= 0);
916
+ return A || $;
917
+ }, [y]), z = g.palette.mode === "dark" ? "grey.800" : "grey.100";
918
+ return /* @__PURE__ */ e(c.Fragment, { children: t && /* @__PURE__ */ m(U, { disableGutters: !0, disablePadding: !0, children: [
919
+ /* @__PURE__ */ m(X, { onClick: te, children: [
920
+ /* @__PURE__ */ e(Q, { children: /* @__PURE__ */ e(q, { sx: { bgcolor: z }, variant: "rounded", children: /* @__PURE__ */ e(k, { name: "call_split", sx: { color: "text.primary" } }) }) }),
928
921
  /* @__PURE__ */ e(
929
- U,
922
+ W,
930
923
  {
931
- primary: t.has_been_split || t.parent_guid ? _.split_transaction_unsplit_title : _.split_transaction_title,
932
- secondary: t.has_been_split || t.parent_guid ? _.split_transaction_unsplit_subtitle : _.split_transaction_desc
924
+ primary: t.has_been_split || t.parent_guid ? s.split_transaction_unsplit_title : s.split_transaction_title,
925
+ secondary: t.has_been_split || t.parent_guid ? s.split_transaction_unsplit_subtitle : s.split_transaction_desc
933
926
  }
934
927
  ),
935
- /* @__PURE__ */ e(X, { children: t.has_been_split || t.parent_guid ? /* @__PURE__ */ e(P, { name: "delete" }) : /* @__PURE__ */ e(P, { name: "chevron_right", sx: { color: "text.primary" } }) })
928
+ /* @__PURE__ */ e(Z, { children: t.has_been_split || t.parent_guid ? /* @__PURE__ */ e(k, { name: "delete" }) : /* @__PURE__ */ e(k, { name: "chevron_right", sx: { color: "text.primary" } }) })
936
929
  ] }),
937
930
  /* @__PURE__ */ m(
938
931
  _e,
939
932
  {
940
- ariaLabelClose: i.close_aria,
941
- isOpen: h,
942
- isPrimaryDisabled: H || k,
943
- onClose: K,
944
- onPrimaryAction: b,
945
- primaryText: i.save_button,
946
- secondaryText: i.cancel_button,
947
- title: _.split_transaction_title,
933
+ ariaLabelClose: _.close_aria,
934
+ isOpen: D,
935
+ isPrimaryDisabled: re || i,
936
+ onClose: b,
937
+ onPrimaryAction: B,
938
+ primaryText: _.save_button,
939
+ secondaryText: _.cancel_button,
940
+ title: s.split_transaction_title,
948
941
  children: [
949
942
  a,
950
943
  /* @__PURE__ */ e(He, { transaction: t }),
951
944
  /* @__PURE__ */ e(
952
945
  Kt,
953
946
  {
954
- onAddSplit: Z,
955
- onCategoryChanged: te,
956
- onDeleteSplit: se,
957
- onUpdateAmount: le,
958
- splits: A,
947
+ onAddSplit: C,
948
+ onCategoryChanged: le,
949
+ onDeleteSplit: J,
950
+ onUpdateAmount: se,
951
+ splits: y,
959
952
  transaction: t
960
953
  }
961
954
  )
@@ -965,39 +958,39 @@ const It = w(({ transaction: t }) => {
965
958
  /* @__PURE__ */ e(
966
959
  ae,
967
960
  {
968
- copy: { title: _.split_transaction_unsplit_title },
969
- isOpen: M,
961
+ copy: { title: s.split_transaction_unsplit_title },
962
+ isOpen: K,
970
963
  onClose: () => {
971
- c(!1), B(!1);
964
+ d(!1), P(!1);
972
965
  },
973
- onPrimaryAction: re,
966
+ onPrimaryAction: F,
974
967
  onSecondaryAction: () => {
975
- n(C.ON_TRANSACTION_UNSPLIT_CANCEL);
968
+ n(f.ON_TRANSACTION_UNSPLIT_CANCEL);
976
969
  },
977
- primaryText: i.delete_button,
978
- secondaryText: i.cancel_button,
979
- children: /* @__PURE__ */ e(ee, { variant: "subtitle1", children: E(
980
- _.split_transaction_unsplit_description,
970
+ primaryText: _.delete_button,
971
+ secondaryText: _.cancel_button,
972
+ children: /* @__PURE__ */ e(ee, { variant: "subtitle1", children: I(
973
+ s.split_transaction_unsplit_description,
981
974
  t.description
982
975
  ) })
983
976
  }
984
977
  )
985
978
  ] }) });
986
979
  }, Ht = w(Ft), zt = () => {
987
- const t = F(), { onEvent: n } = G(), { addTag: s } = R(), { transactions: a } = O(), [r, o] = l.useState(!1), [i, _] = l.useState(""), [c, d] = l.useState(""), u = l.useRef(null);
988
- l.useEffect(() => {
980
+ const t = H(), { onEvent: n } = G(), { addTag: l } = M(), { transactions: a } = E(), [r, o] = c.useState(!1), [i, _] = c.useState(""), [s, d] = c.useState(""), u = c.useRef(null);
981
+ c.useEffect(() => {
989
982
  r && u?.current?.focus();
990
983
  }, [r]);
991
984
  const g = () => {
992
985
  n(
993
- r ? C.ON_TRANSACTION_TAGS_TAG_ADD_CANCEL_CLICK : C.ON_TRANSACTION_TAGS_TAG_ADD_CLICK
986
+ r ? f.ON_TRANSACTION_TAGS_TAG_ADD_CANCEL_CLICK : f.ON_TRANSACTION_TAGS_TAG_ADD_CLICK
994
987
  ), r || _(""), o(!r);
995
988
  }, p = async () => {
996
- n(C.ON_TRANSACTION_TAGS_TAG_ADDED), await s(i), o(!1);
989
+ n(f.ON_TRANSACTION_TAGS_TAG_ADDED), await l(i), o(!1);
997
990
  };
998
- return l.useEffect(() => {
991
+ return c.useEffect(() => {
999
992
  d(i.length > 40 ? a.tags_error_name_must_be_40_chars : "");
1000
- }, [i]), /* @__PURE__ */ m(V, { className: "mx-txn-tag-manager-header", children: [
993
+ }, [i]), /* @__PURE__ */ m(Y, { className: "mx-txn-tag-manager-header", children: [
1001
994
  /* @__PURE__ */ m(
1002
995
  L,
1003
996
  {
@@ -1041,13 +1034,13 @@ const It = w(({ transaction: t }) => {
1041
1034
  value: i
1042
1035
  }
1043
1036
  ),
1044
- /* @__PURE__ */ e(ee, { id: "add-tag-error", sx: { color: "error.main" }, variant: "subtitle2", children: c })
1037
+ /* @__PURE__ */ e(ee, { id: "add-tag-error", sx: { color: "error.main" }, variant: "subtitle2", children: s })
1045
1038
  ]
1046
1039
  }
1047
1040
  )
1048
1041
  ] });
1049
1042
  }, Ut = w(zt), Wt = ({ onSearchValueChanged: t, searchValue: n }) => {
1050
- const { common: s, transactions: a } = O(), r = /* @__PURE__ */ e(
1043
+ const { common: l, transactions: a } = E(), r = /* @__PURE__ */ e(
1051
1044
  ue,
1052
1045
  {
1053
1046
  "aria-label": a.tags_cancel_search || "Search",
@@ -1055,13 +1048,13 @@ const It = w(({ transaction: t }) => {
1055
1048
  children: /* @__PURE__ */ e(Se, {})
1056
1049
  }
1057
1050
  );
1058
- return /* @__PURE__ */ e(V, { className: "mx-txn-tag-manager-search", px: 24, py: 16, children: /* @__PURE__ */ e(
1051
+ return /* @__PURE__ */ e(Y, { className: "mx-txn-tag-manager-search", px: 24, py: 16, children: /* @__PURE__ */ e(
1059
1052
  Le,
1060
1053
  {
1061
- "aria-label": s.search_aria,
1054
+ "aria-label": l.search_aria,
1062
1055
  name: "search",
1063
1056
  onChange: (o) => t(o.target.value),
1064
- placeholder: s.search_placeholder,
1057
+ placeholder: l.search_placeholder,
1065
1058
  slotProps: {
1066
1059
  input: {
1067
1060
  startAdornment: /* @__PURE__ */ e(Pe, { position: "start", children: /* @__PURE__ */ e(ct, { color: "disabled" }) }),
@@ -1072,64 +1065,64 @@ const It = w(({ transaction: t }) => {
1072
1065
  value: n
1073
1066
  }
1074
1067
  ) });
1075
- }, Vt = w(Wt), Yt = ({ onTagChecked: t, selectedTags: n, tag: s }) => {
1076
- const { onEvent: a } = G(), { removeTag: r, updateTag: o } = R(), { common: i, transactions: _ } = O(), [c, d] = l.useState(!1), [u, g] = l.useState(!1), [p, h] = l.useState(""), [I, M] = l.useState(""), B = async () => {
1077
- a(C.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), s && await o({ ...s, name: p }), d(!1);
1078
- }, k = async () => {
1079
- a(C.ON_TRANSACTION_TAGS_TAG_DELETED), await r(s.guid), g(!1);
1068
+ }, Vt = w(Wt), Yt = ({ onTagChecked: t, selectedTags: n, tag: l }) => {
1069
+ const { onEvent: a } = G(), { removeTag: r, updateTag: o } = M(), { common: i, transactions: _ } = E(), [s, d] = c.useState(!1), [u, g] = c.useState(!1), [p, h] = c.useState(""), [D, O] = c.useState(""), K = async () => {
1070
+ a(f.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), l && await o({ ...l, name: p }), d(!1);
1071
+ }, P = async () => {
1072
+ a(f.ON_TRANSACTION_TAGS_TAG_DELETED), await r(l.guid), g(!1);
1080
1073
  };
1081
- l.useEffect(() => {
1082
- M(p.length > 40 ? _.tags_error_name_must_be_40_chars : "");
1074
+ c.useEffect(() => {
1075
+ O(p.length > 40 ? _.tags_error_name_must_be_40_chars : "");
1083
1076
  }, [p]);
1084
- const f = () => {
1085
- a(C.ON_TRANSACTION_TAGS_TAG_EDIT_CLICK), h(s.name), d(!0);
1086
- }, A = () => {
1087
- a(C.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK), g(!0);
1077
+ const y = () => {
1078
+ a(f.ON_TRANSACTION_TAGS_TAG_EDIT_CLICK), h(l.name), d(!0);
1079
+ }, N = () => {
1080
+ a(f.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK), g(!0);
1088
1081
  };
1089
1082
  return /* @__PURE__ */ m(
1090
- z,
1083
+ U,
1091
1084
  {
1092
1085
  className: "mx-txn-transaction-manager-row",
1093
1086
  disableGutters: !0,
1094
1087
  disablePadding: !0,
1095
- secondaryAction: !s.is_default_tag && /* @__PURE__ */ m(L, { direction: "row", children: [
1088
+ secondaryAction: !l.is_default_tag && /* @__PURE__ */ m(L, { direction: "row", children: [
1096
1089
  /* @__PURE__ */ e(
1097
1090
  ue,
1098
1091
  {
1099
- "aria-label": `Edit ${s.name} tag`,
1092
+ "aria-label": `Edit ${l.name} tag`,
1100
1093
  color: "secondary",
1101
- onClick: f,
1094
+ onClick: y,
1102
1095
  children: /* @__PURE__ */ e(dt, { color: "secondary" })
1103
1096
  }
1104
1097
  ),
1105
1098
  /* @__PURE__ */ e(
1106
1099
  ue,
1107
1100
  {
1108
- "aria-label": `Delete ${s.name} tag`,
1101
+ "aria-label": `Delete ${l.name} tag`,
1109
1102
  color: "secondary",
1110
- onClick: A,
1103
+ onClick: N,
1111
1104
  children: /* @__PURE__ */ e(fe, { color: "secondary" })
1112
1105
  }
1113
1106
  )
1114
1107
  ] }),
1115
1108
  children: [
1116
1109
  /* @__PURE__ */ m(
1117
- Q,
1110
+ X,
1118
1111
  {
1119
- "aria-checked": n.includes(s.guid),
1120
- onClick: () => t(s.guid),
1112
+ "aria-checked": n.includes(l.guid),
1113
+ onClick: () => t(l.guid),
1121
1114
  role: "checkbox",
1122
1115
  children: [
1123
- /* @__PURE__ */ e(X, { sx: { ml: 0 }, children: /* @__PURE__ */ e(
1116
+ /* @__PURE__ */ e(Z, { sx: { ml: 0 }, children: /* @__PURE__ */ e(
1124
1117
  yt,
1125
1118
  {
1126
1119
  "aria-hidden": !0,
1127
- checked: n.includes(s.guid),
1120
+ checked: n.includes(l.guid),
1128
1121
  edge: "start",
1129
1122
  tabIndex: -1
1130
1123
  }
1131
1124
  ) }),
1132
- /* @__PURE__ */ e(U, { children: s.name })
1125
+ /* @__PURE__ */ e(W, { children: l.name })
1133
1126
  ]
1134
1127
  }
1135
1128
  ),
@@ -1137,24 +1130,24 @@ const It = w(({ transaction: t }) => {
1137
1130
  ae,
1138
1131
  {
1139
1132
  copy: { title: "Update tag name" },
1140
- isOpen: c,
1133
+ isOpen: s,
1141
1134
  onClose: () => d(!1),
1142
- onPrimaryAction: B,
1135
+ onPrimaryAction: K,
1143
1136
  onSecondaryAction: () => d(!1),
1144
1137
  children: [
1145
1138
  /* @__PURE__ */ e(
1146
1139
  Le,
1147
1140
  {
1148
- "aria-describedby": I ? "update-tag-error" : void 0,
1141
+ "aria-describedby": D ? "update-tag-error" : void 0,
1149
1142
  "aria-label": _.tags_update_the_tag_name,
1150
1143
  name: "update-tag",
1151
- onChange: (y) => h(y.target.value),
1144
+ onChange: (C) => h(C.target.value),
1152
1145
  placeholder: "Tag name",
1153
1146
  sx: { width: "100%" },
1154
1147
  value: p
1155
1148
  }
1156
1149
  ),
1157
- /* @__PURE__ */ e(ee, { id: "update-tag-error", sx: { color: "error.main" }, variant: "subtitle2", children: I })
1150
+ /* @__PURE__ */ e(ee, { id: "update-tag-error", sx: { color: "error.main" }, variant: "subtitle2", children: D })
1158
1151
  ]
1159
1152
  }
1160
1153
  ),
@@ -1164,8 +1157,8 @@ const It = w(({ transaction: t }) => {
1164
1157
  copy: { title: _.tags_delete_title },
1165
1158
  isOpen: u,
1166
1159
  onClose: () => g(!1),
1167
- onPrimaryAction: k,
1168
- onSecondaryAction: () => a(C.ON_TRANSACTION_TAGS_TAG_DELETE_CANCEL_CLICK),
1160
+ onPrimaryAction: P,
1161
+ onSecondaryAction: () => a(f.ON_TRANSACTION_TAGS_TAG_DELETE_CANCEL_CLICK),
1169
1162
  primaryText: i.delete_button,
1170
1163
  secondaryText: i.cancel_button,
1171
1164
  children: /* @__PURE__ */ e(x, { truncate: !1, children: _.tags_deleting_this_tag_will_remove_it })
@@ -1175,7 +1168,7 @@ const It = w(({ transaction: t }) => {
1175
1168
  }
1176
1169
  );
1177
1170
  }, jt = w(Yt), qt = ({ selectedTags: t, onTagChecked: n }) => {
1178
- const { tags: s } = R(), [a, r] = l.useState(""), o = s.filter(
1171
+ const { tags: l } = M(), [a, r] = c.useState(""), o = l.filter(
1179
1172
  (i) => i.name.toLowerCase().includes(a.toLowerCase())
1180
1173
  );
1181
1174
  return /* @__PURE__ */ m("div", { className: "mx-txn-tag-manager", children: [
@@ -1187,49 +1180,49 @@ const It = w(({ transaction: t }) => {
1187
1180
  }
1188
1181
  ),
1189
1182
  /* @__PURE__ */ e(Ut, {}),
1190
- /* @__PURE__ */ e(he, { sx: { boxShadow: "none" }, children: /* @__PURE__ */ e(be, { children: o.map((i) => /* @__PURE__ */ m(l.Fragment, { children: [
1183
+ /* @__PURE__ */ e(he, { sx: { boxShadow: "none" }, children: /* @__PURE__ */ e(be, { children: o.map((i) => /* @__PURE__ */ m(c.Fragment, { children: [
1191
1184
  /* @__PURE__ */ e(jt, { onTagChecked: n, selectedTags: t, tag: i }),
1192
1185
  /* @__PURE__ */ e(Te, { sx: { ml: 24 } })
1193
1186
  ] }, i.guid)) }) })
1194
1187
  ] });
1195
1188
  }, Qt = w(qt), Xt = ({ transaction: t }) => {
1196
- const { onEvent: n } = G(), { tags: s, updateTaggings: a, updateTransaction: r } = R(), { common: o, transactions: i } = O(), { updateManualTransaction: _ } = ne(), c = F(), [d, u] = l.useState(!1), [g, p] = l.useState(t.tags);
1197
- l.useEffect(() => {
1189
+ const { onEvent: n } = G(), { tags: l, updateTaggings: a, updateTransaction: r } = M(), { common: o, transactions: i } = E(), { updateManualTransaction: _ } = ne(), s = H(), [d, u] = c.useState(!1), [g, p] = c.useState(t.tags);
1190
+ c.useEffect(() => {
1198
1191
  p(t.tags);
1199
1192
  }, [d, t]);
1200
- const h = (k) => {
1201
- const f = [...g], A = g.indexOf(k);
1202
- A >= 0 ? f.splice(A, 1) : f.push(k), p(f);
1203
- }, I = async () => {
1193
+ const h = (P) => {
1194
+ const y = [...g], N = g.indexOf(P);
1195
+ N >= 0 ? y.splice(N, 1) : y.push(P), p(y);
1196
+ }, D = async () => {
1204
1197
  if (t.is_manual && !t.guid) {
1205
1198
  _({ ...t, tags: g }), u(!1);
1206
1199
  return;
1207
1200
  }
1208
- await a(g, t.guid), await r({ ...t, tags: g }), n(Y.TRANSACTION_DETAILS_CLICK_TAGS, { transaction_guid: t.guid }), u(!1);
1209
- }, M = l.useMemo(
1201
+ await a(g, t.guid), await r({ ...t, tags: g }), n(j.TRANSACTION_DETAILS_CLICK_TAGS, { transaction_guid: t.guid }), u(!1);
1202
+ }, O = c.useMemo(
1210
1203
  () => t.tags.map(
1211
- (k, f, A) => `${s.find((y) => y.guid === k)?.name}${f < A.length - 1 ? " / " : ""}`
1204
+ (P, y, N) => `${l.find((C) => C.guid === P)?.name}${y < N.length - 1 ? " / " : ""}`
1212
1205
  ),
1213
- [s, t]
1214
- ), B = c.palette.mode === "dark" ? "grey.800" : "grey.100";
1215
- return /* @__PURE__ */ m(z, { disableGutters: !0, disablePadding: !0, children: [
1206
+ [l, t]
1207
+ ), K = s.palette.mode === "dark" ? "grey.800" : "grey.100";
1208
+ return /* @__PURE__ */ m(U, { disableGutters: !0, disablePadding: !0, children: [
1216
1209
  /* @__PURE__ */ m(
1217
- Q,
1210
+ X,
1218
1211
  {
1219
1212
  onClick: () => {
1220
- n(C.ON_TRANSACTION_TAGS_CLICK), u(!0);
1213
+ n(f.ON_TRANSACTION_TAGS_CLICK), u(!0);
1221
1214
  },
1222
1215
  children: [
1223
- /* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(j, { sx: { bgcolor: B }, variant: "rounded", children: /* @__PURE__ */ e(P, { name: "local_offer", sx: { color: "text.primary" } }) }) }),
1216
+ /* @__PURE__ */ e(Q, { children: /* @__PURE__ */ e(q, { sx: { bgcolor: K }, variant: "rounded", children: /* @__PURE__ */ e(k, { name: "local_offer", sx: { color: "text.primary" } }) }) }),
1224
1217
  /* @__PURE__ */ e(
1225
- U,
1218
+ W,
1226
1219
  {
1227
1220
  primary: i.tags_title,
1228
- secondary: /* @__PURE__ */ e(x, { bold: !0, sx: { color: "text.primary" }, variant: "body1", children: t.tags?.length > 0 ? M : i.tags_desc }),
1221
+ secondary: /* @__PURE__ */ e(x, { bold: !0, sx: { color: "text.primary" }, variant: "body1", children: t.tags?.length > 0 ? O : i.tags_desc }),
1229
1222
  slotProps: { primary: { variant: "caption", fontSize: 11, fontWeight: "normal" } }
1230
1223
  }
1231
1224
  ),
1232
- /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(P, { name: "chevron_right", sx: { color: "text.primary" } }) })
1225
+ /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(k, { name: "chevron_right", sx: { color: "text.primary" } }) })
1233
1226
  ]
1234
1227
  }
1235
1228
  ),
@@ -1239,7 +1232,7 @@ const It = w(({ transaction: t }) => {
1239
1232
  ariaLabelClose: o.close_aria,
1240
1233
  isOpen: d,
1241
1234
  onClose: () => u(!1),
1242
- onPrimaryAction: I,
1235
+ onPrimaryAction: D,
1243
1236
  primaryText: o.save_button,
1244
1237
  secondaryText: o.cancel_button,
1245
1238
  title: i.tags_title,
@@ -1248,20 +1241,20 @@ const It = w(({ transaction: t }) => {
1248
1241
  )
1249
1242
  ] });
1250
1243
  }, Zt = w(Xt), Jt = ({ transaction: t, viewOnly: n = !1 }) => {
1251
- const { updateTransaction: s } = R(), { common: a, transactions: r } = O(), { onEvent: o } = G(), { announce: i, ariaLive: _ } = Ae(), [c, d] = l.useState(!1), [u, g] = l.useState(""), p = l.useRef(null);
1252
- l.useEffect(() => {
1253
- c && (g(t.description), p?.current?.focus());
1254
- }, [c]);
1244
+ const { updateTransaction: l } = M(), { common: a, transactions: r } = E(), { onEvent: o } = G(), { announce: i, ariaLive: _ } = Ae(), [s, d] = c.useState(!1), [u, g] = c.useState(""), p = c.useRef(null);
1245
+ c.useEffect(() => {
1246
+ s && (g(t.description), p?.current?.focus());
1247
+ }, [s]);
1255
1248
  const h = () => {
1256
- d(!0), o(C.ON_TRANSACTION_DESCRIPTION_EDIT_CLICK), setTimeout(() => document.getElementById("transaction-description-input")?.focus(), 0);
1257
- }, I = async () => {
1258
- o(Y.TRANSACTION_DETAILS_CLICK_DESCRIPTION, {
1249
+ d(!0), o(f.ON_TRANSACTION_DESCRIPTION_EDIT_CLICK), setTimeout(() => document.getElementById("transaction-description-input")?.focus(), 0);
1250
+ }, D = async () => {
1251
+ o(j.TRANSACTION_DETAILS_CLICK_DESCRIPTION, {
1259
1252
  transaction_guid: t.guid
1260
- }), await s({ ...t, description: u }), d(!1), i(`${r.payee_title}: ${u}`), setTimeout(() => document.getElementById("transaction-description-edit-button")?.focus(), 0);
1253
+ }), await l({ ...t, description: u }), d(!1), i(`${r.payee_title}: ${u}`), setTimeout(() => document.getElementById("transaction-description-edit-button")?.focus(), 0);
1261
1254
  };
1262
- return /* @__PURE__ */ m(V, { className: "mx-txn-transaction-description", children: [
1255
+ return /* @__PURE__ */ m(Y, { className: "mx-txn-transaction-description", children: [
1263
1256
  _,
1264
- c ? /* @__PURE__ */ m(Xe, { row: !0, children: [
1257
+ s ? /* @__PURE__ */ m(Xe, { row: !0, children: [
1265
1258
  /* @__PURE__ */ e(
1266
1259
  $e,
1267
1260
  {
@@ -1269,7 +1262,7 @@ const It = w(({ transaction: t }) => {
1269
1262
  id: "transaction-description-input",
1270
1263
  label: r.payee_title,
1271
1264
  name: r.payee_title,
1272
- onChange: (M) => g(M.target.value),
1265
+ onChange: (O) => g(O.target.value),
1273
1266
  ref: p,
1274
1267
  slotProps: { htmlInput: { maxLength: 140 } },
1275
1268
  sx: {
@@ -1285,7 +1278,7 @@ const It = w(({ transaction: t }) => {
1285
1278
  me,
1286
1279
  {
1287
1280
  disabled: !u,
1288
- onClick: I,
1281
+ onClick: D,
1289
1282
  sx: {
1290
1283
  borderTopLeftRadius: 0,
1291
1284
  borderBottomLeftRadius: 0
@@ -1309,13 +1302,13 @@ const It = w(({ transaction: t }) => {
1309
1302
  ] })
1310
1303
  ] });
1311
1304
  }, ea = w(Jt), ta = ({ transaction: t }) => {
1312
- const { updateTransaction: n } = R(), { transactions: s } = O(), { onEvent: a } = G(), r = F(), o = r.palette.mode === "dark", i = async () => {
1313
- a(Y.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: t.guid }), await n({ ...t, is_flagged: !t.is_flagged });
1305
+ const { updateTransaction: n } = M(), { transactions: l } = E(), { onEvent: a } = G(), r = H(), o = r.palette.mode === "dark", i = async () => {
1306
+ a(j.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: t.guid }), await n({ ...t, is_flagged: !t.is_flagged });
1314
1307
  };
1315
1308
  return /* @__PURE__ */ e("div", { className: "mx-txn-transaction-flag", children: /* @__PURE__ */ e(
1316
1309
  lt,
1317
1310
  {
1318
- "aria-label": s.flag_btn_aria,
1311
+ "aria-label": l.flag_btn_aria,
1319
1312
  "aria-pressed": t.is_flagged,
1320
1313
  color: o ? "primary" : "warning",
1321
1314
  onClick: i,
@@ -1340,24 +1333,24 @@ const It = w(({ transaction: t }) => {
1340
1333
  children: /* @__PURE__ */ e(ut, { color: "inherit" })
1341
1334
  }
1342
1335
  ) });
1343
- }, aa = w(ta), pe = (t, n, s, a = !0, r = "inset") => a ? /* @__PURE__ */ m(l.Fragment, { children: [
1344
- /* @__PURE__ */ m(z, { disableGutters: !0, disablePadding: !0, children: [
1345
- /* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(j, { sx: { bgcolor: "neutral.light" }, variant: "rounded", children: t }) }),
1336
+ }, aa = w(ta), pe = (t, n, l, a = !0, r = "inset") => a ? /* @__PURE__ */ m(c.Fragment, { children: [
1337
+ /* @__PURE__ */ m(U, { disableGutters: !0, disablePadding: !0, children: [
1338
+ /* @__PURE__ */ e(Q, { children: /* @__PURE__ */ e(q, { sx: { bgcolor: "neutral.light" }, variant: "rounded", children: t }) }),
1346
1339
  /* @__PURE__ */ e(
1347
- U,
1340
+ W,
1348
1341
  {
1349
1342
  primary: n,
1350
- secondary: s,
1343
+ secondary: l,
1351
1344
  slotProps: { primary: { variant: "caption", fontSize: 11, fontWeight: "normal" } }
1352
1345
  }
1353
1346
  )
1354
1347
  ] }),
1355
1348
  /* @__PURE__ */ e(Te, { variant: r })
1356
1349
  ] }) : null, na = ({ transaction: t }) => {
1357
- const { transactions: n } = O(), { tags: s } = R(), a = l.useMemo(() => {
1358
- const r = new Map(s.map((o) => [o.guid, o.name]));
1350
+ const { transactions: n } = E(), { tags: l } = M(), a = c.useMemo(() => {
1351
+ const r = new Map(l.map((o) => [o.guid, o.name]));
1359
1352
  return t.tags.map((o) => r.get(o)).filter(Boolean).join(" / ");
1360
- }, [s, t.tags]);
1353
+ }, [l, t.tags]);
1361
1354
  return /* @__PURE__ */ m(be, { sx: { "& .MuiListItem-root": { px: 24, py: 12 } }, children: [
1362
1355
  pe(
1363
1356
  /* @__PURE__ */ e(
@@ -1395,35 +1388,35 @@ const It = w(({ transaction: t }) => {
1395
1388
  }, ra = w(na), oa = ({
1396
1389
  data: t,
1397
1390
  color: n,
1398
- width: s = 85,
1391
+ width: l = 85,
1399
1392
  height: a = 65
1400
1393
  }) => {
1401
- const r = F(), o = {
1394
+ const r = H(), o = {
1402
1395
  series: [
1403
1396
  {
1404
- data: t.map(({ value: c }) => c),
1397
+ data: t.map(({ value: s }) => s),
1405
1398
  type: "bar"
1406
1399
  }
1407
1400
  ],
1408
1401
  xAxis: [
1409
1402
  {
1410
- data: t.map(({ label: c }) => c),
1403
+ data: t.map(({ label: s }) => s),
1411
1404
  scaleType: "band",
1412
1405
  categoryGapRatio: 0.3
1413
1406
  }
1414
1407
  ]
1415
1408
  }, i = t.map(
1416
- (c, d) => d === t.length - 1 ? n(r) : `${n(r)}80`
1417
- ), _ = (c, d) => {
1418
- if (c <= 0 || d <= 0) return "";
1419
- const u = Math.min(6, c / 2, d / 2);
1420
- return `M${u},0 L${c - u},0 Q${c},0 ${c},${u} L${c},${d} L0,${d} L0,${u} Q0,0 ${u},0 Z`;
1409
+ (s, d) => d === t.length - 1 ? n(r) : `${n(r)}80`
1410
+ ), _ = (s, d) => {
1411
+ if (s <= 0 || d <= 0) return "";
1412
+ const u = Math.min(6, s / 2, d / 2);
1413
+ return `M${u},0 L${s - u},0 Q${s},0 ${s},${u} L${s},${d} L0,${d} L0,${u} Q0,0 ${u},0 Z`;
1421
1414
  };
1422
1415
  return /* @__PURE__ */ e(
1423
1416
  L,
1424
1417
  {
1425
1418
  sx: {
1426
- width: s,
1419
+ width: l,
1427
1420
  height: a
1428
1421
  },
1429
1422
  children: /* @__PURE__ */ e(
@@ -1442,18 +1435,18 @@ const It = w(({ transaction: t }) => {
1442
1435
  },
1443
1436
  series: o.series,
1444
1437
  slots: {
1445
- bar: ({ ownerState: c, ...d }) => {
1446
- const { ariaLabel: u } = t[c.dataIndex];
1438
+ bar: ({ ownerState: s, ...d }) => {
1439
+ const { ariaLabel: u } = t[s.dataIndex];
1447
1440
  return /* @__PURE__ */ e("g", { "aria-label": u, children: /* @__PURE__ */ e(
1448
1441
  "path",
1449
1442
  {
1450
1443
  d: _(d.width, d.height),
1451
- fill: i[c.dataIndex],
1444
+ fill: i[s.dataIndex],
1452
1445
  transform: `translate(${d.x}, ${d.y})`
1453
1446
  }
1454
1447
  ) });
1455
1448
  },
1456
- axisTickLabel: ({ text: c, ...d }) => {
1449
+ axisTickLabel: ({ text: s, ...d }) => {
1457
1450
  const u = t[t.length - 1]?.label;
1458
1451
  return /* @__PURE__ */ e(
1459
1452
  "text",
@@ -1463,9 +1456,9 @@ const It = w(({ transaction: t }) => {
1463
1456
  ...d.style,
1464
1457
  fontSize: 6.75,
1465
1458
  lineHeight: "9px",
1466
- fontWeight: u === c ? "bold" : 400
1459
+ fontWeight: u === s ? "bold" : 400
1467
1460
  },
1468
- children: c
1461
+ children: s
1469
1462
  }
1470
1463
  );
1471
1464
  }
@@ -1475,7 +1468,7 @@ const It = w(({ transaction: t }) => {
1475
1468
  display: "none"
1476
1469
  }
1477
1470
  },
1478
- width: s,
1471
+ width: l,
1479
1472
  xAxis: o.xAxis,
1480
1473
  yAxis: [{ width: 0, position: "none" }]
1481
1474
  }
@@ -1488,7 +1481,7 @@ const It = w(({ transaction: t }) => {
1488
1481
  if (n)
1489
1482
  switch (n.template) {
1490
1483
  case ia.BILL_AMOUNT_NOT_STANDARD: {
1491
- const s = n.data_series ? et(n.data_series) : [], a = tt(s, n.payload?.merchant_name);
1484
+ const l = n.data_series ? et(n.data_series) : [], a = tt(l, n.payload?.merchant_name);
1492
1485
  return {
1493
1486
  instanceSlot: /* @__PURE__ */ e(
1494
1487
  oa,
@@ -1497,7 +1490,7 @@ const It = w(({ transaction: t }) => {
1497
1490
  data: a.slice(-3)
1498
1491
  }
1499
1492
  ),
1500
- dataSeries: s,
1493
+ dataSeries: l,
1501
1494
  chartData: a,
1502
1495
  callToAction: t.view_history
1503
1496
  };
@@ -1509,50 +1502,50 @@ const It = w(({ transaction: t }) => {
1509
1502
  }, la = ({
1510
1503
  bottomActions: t = St,
1511
1504
  canFlagTransaction: n = !0,
1512
- topActions: s = ft,
1505
+ topActions: l = ft,
1513
1506
  transaction: a
1514
1507
  }) => {
1515
- const { onEvent: r } = G(), { isCopyLoaded: o } = it(), { userFeatures: i } = st(), { accounts: _, common: c, insights_feed: d } = O(), { detailedCategories: u } = we(), {
1508
+ const { onEvent: r } = G(), { isCopyLoaded: o } = it(), { userFeatures: i } = st(), { accounts: _, common: s, insights_feed: d } = E(), { detailedCategories: u } = we(), {
1516
1509
  alert: g,
1517
1510
  associatedBeats: p,
1518
1511
  detailedTransactions: h,
1519
- cachedStartDate: I,
1520
- loadEmbeddedInstanceTransactions: M,
1521
- setAlert: B
1522
- } = R(), [k, f] = l.useState(!1), [A, y] = l.useState(!1), [Z, se] = l.useState(!1), le = F(), te = a?.number && a.number.length > 4, $ = l.useMemo(() => p.find((T) => T.associated_transaction_guid === a.guid), [p, a]), b = sa(c, $), [K, re] = l.useState(
1512
+ cachedStartDate: D,
1513
+ loadEmbeddedInstanceTransactions: O,
1514
+ setAlert: K
1515
+ } = M(), [P, y] = c.useState(!1), [N, C] = c.useState(!1), [J, se] = c.useState(!1), le = H(), te = a?.number && a.number.length > 4, B = c.useMemo(() => p.find((T) => T.associated_transaction_guid === a.guid), [p, a]), b = sa(s, B), [F, re] = c.useState(
1523
1516
  b ? b.dataSeries.length - 1 : 0
1524
1517
  );
1525
- l.useEffect(
1526
- () => r(Y.TRANSACTION_DETAILS_VIEW, { transaction_guid: a.guid }),
1518
+ c.useEffect(
1519
+ () => r(j.TRANSACTION_DETAILS_VIEW, { transaction_guid: a.guid }),
1527
1520
  []
1528
- ), l.useEffect(() => {
1521
+ ), c.useEffect(() => {
1529
1522
  if (!b || b.dataSeries.length === 0) return;
1530
- const { date: T } = b.dataSeries[K], D = De(T);
1531
- je(D, I) && (y(!0), M(D).finally(() => {
1532
- y(!1);
1523
+ const { date: T } = b.dataSeries[F], v = De(T);
1524
+ je(v, D) && (C(!0), O(v).finally(() => {
1525
+ C(!1);
1533
1526
  }));
1534
- }, [K, b, I]);
1535
- const H = t.includes(ie.MerchantBudget) && !a?.merchant_guid ? t.filter((T) => T !== ie.MerchantBudget) : t, oe = ke(() => {
1527
+ }, [F, b, D]);
1528
+ const z = t.includes(ie.MerchantBudget) && !a?.merchant_guid ? t.filter((T) => T !== ie.MerchantBudget) : t, A = ke(() => {
1536
1529
  if (b) {
1537
1530
  const T = u.find(
1538
1531
  (ze) => ze.guid === a.top_level_category_guid
1539
- ), D = $?.payload?.average_amount ?? 0, J = a.amount;
1532
+ ), v = B?.payload?.average_amount ?? 0, oe = a.amount;
1540
1533
  let ge = d.general.increased_text;
1541
- J - D < 0 && (ge = d.general.decreased_text);
1542
- const ce = D === 0 ? 0 : Math.round(Math.abs(J - D) / D * 100);
1534
+ oe - v < 0 && (ge = d.general.decreased_text);
1535
+ const ce = v === 0 ? 0 : Math.round(Math.abs(oe - v) / v * 100);
1543
1536
  return { category: T, percentageAmount: ce, changetype: ge };
1544
1537
  }
1545
1538
  return null;
1546
- }, [b, u]), N = ke(() => {
1539
+ }, [b, u]), $ = ke(() => {
1547
1540
  if (!b?.dataSeries?.length)
1548
1541
  return [];
1549
- const { guid: T, date: D } = b.dataSeries[K], J = De(D), ge = Be(D);
1550
- return h.filter((ce) => ce.date >= Ie(J) && ce.date <= Ie(ge) && ce.guid === T);
1551
- }, [K, b, h, A]);
1542
+ const { guid: T, date: v } = b.dataSeries[F], oe = De(v), ge = Be(v);
1543
+ return h.filter((ce) => ce.date >= Ie(oe) && ce.date <= Ie(ge) && ce.guid === T);
1544
+ }, [F, b, h, N]);
1552
1545
  if (!o)
1553
1546
  return /* @__PURE__ */ e(_t, {});
1554
- const v = Qe(i, "MX_TXN_DETAILS_VIEW_ONLY"), S = le.palette.mode === "dark" ? "grey.800" : "grey.100";
1555
- return /* @__PURE__ */ m(V, { className: "mx-txn-transaction-details", width: "100%", children: [
1547
+ const S = Qe(i, "MX_TXN_DETAILS_VIEW_ONLY"), R = le.palette.mode === "dark" ? "grey.800" : "grey.100";
1548
+ return /* @__PURE__ */ m(Y, { className: "mx-txn-transaction-details", width: "100%", children: [
1556
1549
  a && /* @__PURE__ */ m(L, { children: [
1557
1550
  /* @__PURE__ */ m(L, { gap: 12, p: 24, children: [
1558
1551
  /* @__PURE__ */ e(he, { elevation: 2, sx: { width: 64 }, children: /* @__PURE__ */ e(
@@ -1563,37 +1556,37 @@ const It = w(({ transaction: t }) => {
1563
1556
  size: 64
1564
1557
  }
1565
1558
  ) }),
1566
- /* @__PURE__ */ e(ea, { transaction: a, viewOnly: v }),
1559
+ /* @__PURE__ */ e(ea, { transaction: a, viewOnly: S }),
1567
1560
  /* @__PURE__ */ m(L, { direction: "row", justifyContent: "space-between", sx: { minHeight: 44 }, children: [
1568
1561
  /* @__PURE__ */ m(ee, { color: a.isIncome ? "success.main" : "text.primary", variant: "h1", children: [
1569
1562
  a.isIncome ? "+" : "",
1570
- W(a.amount, "0,0.00")
1563
+ V(a.amount, "0,0.00")
1571
1564
  ] }),
1572
- !v && n && /* @__PURE__ */ e(aa, { transaction: a })
1565
+ !S && n && /* @__PURE__ */ e(aa, { transaction: a })
1573
1566
  ] }),
1574
1567
  b?.instanceSlot && /* @__PURE__ */ e(
1575
1568
  at,
1576
1569
  {
1577
1570
  callToAction: b.callToAction,
1578
- description: E(
1571
+ description: I(
1579
1572
  d.general.embedded_description,
1580
- oe.changetype,
1581
- /* @__PURE__ */ e("strong", { children: oe.percentageAmount })
1573
+ A.changetype,
1574
+ /* @__PURE__ */ e("strong", { children: A.percentageAmount })
1582
1575
  ),
1583
1576
  instanceSlot: b.instanceSlot,
1584
1577
  onCtaClick: () => {
1585
- f(!0);
1578
+ y(!0);
1586
1579
  },
1587
- title: $.html_micro_title
1580
+ title: B.html_micro_title
1588
1581
  }
1589
1582
  ),
1590
- /* @__PURE__ */ m(L, { sx: { bgcolor: S, borderRadius: "4px", gap: 4, p: 8 }, children: [
1583
+ /* @__PURE__ */ m(L, { sx: { bgcolor: R, borderRadius: "4px", gap: 4, p: 8 }, children: [
1591
1584
  /* @__PURE__ */ e(x, { bold: !0, children: `${a.account}
1592
1585
  ${te ? a.number : "•".repeat(4).concat(a.number ?? "")}` }),
1593
1586
  /* @__PURE__ */ e(x, { bold: !0, truncate: !0, variant: "tiny", children: a.feed_description })
1594
1587
  ] })
1595
1588
  ] }),
1596
- /* @__PURE__ */ e(he, { square: !0, sx: { boxShadow: "none" }, children: v ? /* @__PURE__ */ e(ra, { transaction: a }) : /* @__PURE__ */ e(be, { children: s.map((T, D) => /* @__PURE__ */ m(l.Fragment, { children: [
1589
+ /* @__PURE__ */ e(he, { square: !0, sx: { boxShadow: "none" }, children: S ? /* @__PURE__ */ e(ra, { transaction: a }) : /* @__PURE__ */ e(be, { children: l.map((T, v) => /* @__PURE__ */ m(c.Fragment, { children: [
1597
1590
  T === de.Category && /* @__PURE__ */ e(Dt, { transaction: a }),
1598
1591
  T === de.Date && /* @__PURE__ */ e(vt, { transaction: a }),
1599
1592
  T === de.Memo && /* @__PURE__ */ e(Pt, { transaction: a }),
@@ -1602,14 +1595,14 @@ const It = w(({ transaction: t }) => {
1602
1595
  Te,
1603
1596
  {
1604
1597
  component: "li",
1605
- variant: D < s.length - 1 ? "inset" : "fullWidth"
1598
+ variant: v < l.length - 1 ? "inset" : "fullWidth"
1606
1599
  }
1607
1600
  )
1608
1601
  ] }, T)) }) }),
1609
- !v && H.length > 0 && /* @__PURE__ */ m(l.Fragment, { children: [
1602
+ !S && z.length > 0 && /* @__PURE__ */ m(c.Fragment, { children: [
1610
1603
  /* @__PURE__ */ e(x, { bold: !0, mb: 8, ml: 26, mt: 16, variant: "body1", children: _.actions }),
1611
1604
  /* @__PURE__ */ e(he, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ m(be, { children: [
1612
- H.map((T, D) => /* @__PURE__ */ m(l.Fragment, { children: [
1605
+ z.map((T, v) => /* @__PURE__ */ m(c.Fragment, { children: [
1613
1606
  T === ie.MerchantBudget && /* @__PURE__ */ e(It, { transaction: a }),
1614
1607
  T === ie.SplitTransaction && /* @__PURE__ */ e(Ht, { transaction: a }),
1615
1608
  T === ie.HideTransaction && /* @__PURE__ */ e(Rt, { transaction: a }),
@@ -1618,7 +1611,7 @@ const It = w(({ transaction: t }) => {
1618
1611
  Te,
1619
1612
  {
1620
1613
  component: "li",
1621
- variant: D < H.length - 1 ? "inset" : "fullWidth"
1614
+ variant: v < z.length - 1 ? "inset" : "fullWidth"
1622
1615
  }
1623
1616
  )
1624
1617
  ] }, T)),
@@ -1626,19 +1619,19 @@ const It = w(({ transaction: t }) => {
1626
1619
  ] }) })
1627
1620
  ] })
1628
1621
  ] }),
1629
- $ && b && /* @__PURE__ */ e(
1622
+ B && b && /* @__PURE__ */ e(
1630
1623
  nt,
1631
1624
  {
1632
1625
  ariaLabel: Me(
1633
- b?.dataSeries[K]?.date,
1626
+ b?.dataSeries[F]?.date,
1634
1627
  Re.MONTH
1635
1628
  ),
1636
1629
  barChartProps: {
1637
1630
  amounts: {
1638
- average: $.payload.average_amount,
1639
- formattedAverage: W($.payload.average_amount, "0,0")
1631
+ average: B.payload.average_amount,
1632
+ formattedAverage: V(B.payload.average_amount, "0,0")
1640
1633
  },
1641
- color: oe.category?.color || "",
1634
+ color: A.category?.color || "",
1642
1635
  data: b.chartData,
1643
1636
  margin: { bottom: 10, left: 24, right: 24, top: 20 },
1644
1637
  monthlyAmountLabel: d.general.monthly_amount,
@@ -1649,7 +1642,7 @@ const It = w(({ transaction: t }) => {
1649
1642
  legendPosition: "top"
1650
1643
  },
1651
1644
  beat: {
1652
- heading: $.html_title,
1645
+ heading: B.html_title,
1653
1646
  subHeading: {
1654
1647
  category_guid: a.category_guid ?? "",
1655
1648
  merchant_guid: a.merchant_guid ?? "",
@@ -1657,7 +1650,7 @@ const It = w(({ transaction: t }) => {
1657
1650
  }
1658
1651
  },
1659
1652
  data: b.chartData,
1660
- defaultSelectedIndex: K,
1653
+ defaultSelectedIndex: F,
1661
1654
  icon: /* @__PURE__ */ e(
1662
1655
  Ce,
1663
1656
  {
@@ -1667,26 +1660,26 @@ const It = w(({ transaction: t }) => {
1667
1660
  size: 16
1668
1661
  }
1669
1662
  ),
1670
- isOpen: k,
1663
+ isOpen: P,
1671
1664
  onClose: () => {
1672
- f(!1), re(b.dataSeries.length - 1);
1665
+ y(!1), re(b.dataSeries.length - 1);
1673
1666
  },
1674
1667
  onTabChange: (T) => {
1675
1668
  re(T);
1676
1669
  },
1677
- tipSection: Z ? void 0 : {
1678
- message: E(
1670
+ tipSection: J ? void 0 : {
1671
+ message: I(
1679
1672
  d.general.tip_section_message,
1680
1673
  /* @__PURE__ */ e("strong", { children: d.general.tip_section_title }),
1681
- /* @__PURE__ */ e("strong", { children: $.primary_transaction?.description })
1674
+ /* @__PURE__ */ e("strong", { children: B.primary_transaction?.description })
1682
1675
  ),
1683
1676
  onDismiss: () => se(!0)
1684
1677
  },
1685
1678
  title: d.general.transaction_history_title,
1686
1679
  transactionListProps: {
1687
- showLoader: A,
1680
+ showLoader: N,
1688
1681
  showInsights: !0,
1689
- transaction: N
1682
+ transaction: $
1690
1683
  }
1691
1684
  }
1692
1685
  ),
@@ -1695,9 +1688,9 @@ const It = w(({ transaction: t }) => {
1695
1688
  {
1696
1689
  anchorOrigin: { vertical: "bottom", horizontal: "right" },
1697
1690
  autoHideDuration: 3500,
1698
- onClose: () => B(""),
1691
+ onClose: () => K(""),
1699
1692
  open: !!g,
1700
- children: /* @__PURE__ */ e(Ue, { closeText: "", onClose: () => B(""), severity: "success", variant: "filled", children: g })
1693
+ children: /* @__PURE__ */ e(Ue, { closeText: "", onClose: () => K(""), severity: "success", variant: "filled", children: g })
1701
1694
  }
1702
1695
  )
1703
1696
  ] });