@mx-cartographer/experiences 7.9.6-alpha.mm0 → 7.9.6
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.
- package/CHANGELOG.md +4 -0
- package/dist/{ManageIncome-DOsgqv_y.mjs → ManageIncome-DV6GIjAN.mjs} +79 -83
- package/dist/{RecurringSettings-DT1hanRo.mjs → RecurringSettings-CE7kxzFZ.mjs} +2 -2
- package/dist/{TransactionDetails-BdR4hm3y.mjs → TransactionDetails-DhEr3tAj.mjs} +42 -43
- package/dist/{WidgetContainer-DaQvpZHu.mjs → WidgetContainer-to34uDrh.mjs} +148 -153
- package/dist/accounts/index.es.js +2 -2
- package/dist/budgets/index.es.js +3 -3
- package/dist/cashflow/index.es.js +4 -4
- package/dist/common/index.es.js +1 -2
- package/dist/common/types/AppData.d.ts +0 -1
- package/dist/debts/index.es.js +1 -1
- package/dist/finstrong/index.es.js +4 -4
- package/dist/goals/index.es.js +1 -1
- package/dist/help/index.es.js +1 -1
- package/dist/investments/index.es.js +1 -1
- package/dist/networth/index.es.js +1 -1
- package/dist/recurringtransactions/index.es.js +5 -5
- package/dist/settings/index.es.js +1 -1
- package/dist/spending/index.es.js +2 -2
- package/dist/transactions/index.es.js +3 -3
- package/dist/trends/index.es.js +2 -2
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import _ from "react";
|
|
3
3
|
import { observer as x } from "mobx-react-lite";
|
|
4
4
|
import { useVirtualizer as Ge } from "@tanstack/react-virtual";
|
|
5
|
-
import
|
|
5
|
+
import w from "@mui/material/Box";
|
|
6
6
|
import ee from "@mui/material/Divider";
|
|
7
7
|
import te from "@mui/material/List";
|
|
8
8
|
import { MerchantLogo as he, Icon as f, Text as T, useTokens as ne, CategoryIcon as Te, CategoryIconVariants as xe, IconWeight as v, P as J, TextField as ye } from "@mxenabled/mxui";
|
|
@@ -10,14 +10,14 @@ import $ from "@mui/material/ListItemAvatar";
|
|
|
10
10
|
import M from "@mui/material/ListItemText";
|
|
11
11
|
import b from "@mui/material/Stack";
|
|
12
12
|
import { T as Me, L as Ke, O as h, C as $e, b as Be, i as Fe } from "./User-B0LnmiKO.mjs";
|
|
13
|
-
import { G as He, h as D, u as I, g as
|
|
13
|
+
import { G as He, h as D, u as I, g as O, m as Ne, b as ze, o as Ue } from "./hooks-ZMp65DFz.mjs";
|
|
14
14
|
import { f as re } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
15
15
|
import { Receipt as Xe, Delete as le, ChevronRight as Ve, Cancel as ce, Search as We, Edit as Ye, Flag as je } from "@mxenabled/mx-icons";
|
|
16
16
|
import { fromUnixTime as j } from "date-fns/fromUnixTime";
|
|
17
17
|
import { isSameDay as Ie } from "date-fns/isSameDay";
|
|
18
18
|
import { h as qe } from "./DateUtil-D7U-nc1Y.mjs";
|
|
19
19
|
import { L as ve } from "./Loader-DUaFpDGv.mjs";
|
|
20
|
-
import { A as P } from "./WidgetContainer-
|
|
20
|
+
import { A as P } from "./WidgetContainer-to34uDrh.mjs";
|
|
21
21
|
import ie from "@mui/material/Paper";
|
|
22
22
|
import de from "@mui/material/Button";
|
|
23
23
|
import Ze from "@mui/material/FormGroup";
|
|
@@ -28,7 +28,7 @@ import Je from "@mui/material/ToggleButton";
|
|
|
28
28
|
import Ee from "@mui/material/styles/useTheme";
|
|
29
29
|
import z from "@mui/material/Avatar";
|
|
30
30
|
import B from "@mui/material/ListItem";
|
|
31
|
-
import { a as W, f as
|
|
31
|
+
import { a as W, f as we, D as Oe } from "./Dialog-B4PI-_bL.mjs";
|
|
32
32
|
import U from "@mui/material/ListItemButton";
|
|
33
33
|
import X from "@mui/material/ListItemIcon";
|
|
34
34
|
import { a as Le } from "./CategorySelectorDrawer-cQKX5dZb.mjs";
|
|
@@ -140,7 +140,7 @@ const lt = ({ transaction: t, onClick: r }) => {
|
|
|
140
140
|
}, ct = x(lt), dt = ({
|
|
141
141
|
bgcolor: t = "background.default",
|
|
142
142
|
children: r
|
|
143
|
-
}) => /* @__PURE__ */ e(
|
|
143
|
+
}) => /* @__PURE__ */ e(w, { display: "inline-block", sx: { bgcolor: t, py: 6, width: "100%" }, children: /* @__PURE__ */ e(T, { bold: !0, sx: { pl: 24 }, variant: "XSmall", children: r }) }), _t = ({ showIcon: t = !0, showSubtitle: r = !0 }) => {
|
|
144
144
|
const i = ne(), { transactions: a } = I();
|
|
145
145
|
return /* @__PURE__ */ l(b, { alignItems: "center", gap: i.Spacing.Small, height: "auto", mt: i.Spacing.Large, children: [
|
|
146
146
|
t && /* @__PURE__ */ e(Xe, { color: "secondary", sx: { fontSize: 32 } }),
|
|
@@ -169,7 +169,7 @@ const lt = ({ transaction: t, onClick: r }) => {
|
|
|
169
169
|
const { isLoading: p, sortedTransactions: S } = D(), g = _.useMemo(() => {
|
|
170
170
|
const R = r ? S.filter(r) : S, k = d ?? R;
|
|
171
171
|
return s ? k : k.filter((V) => !V.is_hidden);
|
|
172
|
-
}, [S, s]), { clearExpandedSplits: C, setShowInsights: L, toggleSplit: y } = G(), { onEvent: N } =
|
|
172
|
+
}, [S, s]), { clearExpandedSplits: C, setShowInsights: L, toggleSplit: y } = G(), { onEvent: N } = O(), F = (R) => {
|
|
173
173
|
const k = g.find((V) => V.guid === R);
|
|
174
174
|
if (k?.has_been_split) {
|
|
175
175
|
y(k.guid);
|
|
@@ -185,8 +185,8 @@ const lt = ({ transaction: t, onClick: r }) => {
|
|
|
185
185
|
estimateSize: (R) => be + (fe(R, g) ? Ae : 0),
|
|
186
186
|
overscan: 5
|
|
187
187
|
});
|
|
188
|
-
return _.useEffect(() => K.measure(), [g]), _.useEffect(() => L(n), [n]), _.useEffect(() => () => C(), []), /* @__PURE__ */ e(te, { sx: { width: u }, children: /* @__PURE__ */ e(
|
|
189
|
-
|
|
188
|
+
return _.useEffect(() => K.measure(), [g]), _.useEffect(() => L(n), [n]), _.useEffect(() => () => C(), []), /* @__PURE__ */ e(te, { sx: { width: u }, children: /* @__PURE__ */ e(w, { height: i, overflow: "auto", ref: q, width: u, children: /* @__PURE__ */ l(
|
|
189
|
+
w,
|
|
190
190
|
{
|
|
191
191
|
height: (
|
|
192
192
|
// set the height to auto when there are no transactions so the zero state isn't set to 0
|
|
@@ -200,7 +200,7 @@ const lt = ({ transaction: t, onClick: r }) => {
|
|
|
200
200
|
!p && !c && K.getVirtualItems().length > 0 && K.getVirtualItems().map((R) => {
|
|
201
201
|
const k = g[R.index], V = fe(R.index, g), ue = mt(R.index, g), me = be + (V ? Ae : 0);
|
|
202
202
|
return /* @__PURE__ */ l(
|
|
203
|
-
|
|
203
|
+
w,
|
|
204
204
|
{
|
|
205
205
|
sx: {
|
|
206
206
|
height: me,
|
|
@@ -228,7 +228,7 @@ const lt = ({ transaction: t, onClick: r }) => {
|
|
|
228
228
|
}
|
|
229
229
|
) }) });
|
|
230
230
|
}, Ga = x(pt), gt = ({ transaction: t }) => {
|
|
231
|
-
const { addOrUpdateTransactionRule: r, updateTransaction: i } = D(), { categories: a } = Ne(), { onEvent: o } =
|
|
231
|
+
const { addOrUpdateTransactionRule: r, updateTransaction: i } = D(), { categories: a } = Ne(), { onEvent: o } = O(), { setShouldDisableDrawerScroll: n, updateManualTransaction: c } = G(), { transactions: s } = I(), [d, u] = _.useState(!1), [m, p] = _.useState(""), S = async (y) => {
|
|
232
232
|
await i({ ...t, category_guid: m }), y && await r(m, t), p(""), o(P.TRANSACTION_DETAILS_CLICK_CATEGORY, {
|
|
233
233
|
transaction_guid: t.guid
|
|
234
234
|
});
|
|
@@ -313,7 +313,7 @@ const lt = ({ transaction: t, onClick: r }) => {
|
|
|
313
313
|
)
|
|
314
314
|
] });
|
|
315
315
|
}, ht = ({ transaction: t }) => {
|
|
316
|
-
const r = ne(), { onEvent: i } =
|
|
316
|
+
const r = ne(), { onEvent: i } = O(), { updateTransaction: a } = D(), { updateManualTransaction: o } = G(), { common: n, transactions: c } = I(), [s, d] = _.useState(!1), [u, m] = _.useState(t.date), p = (g) => {
|
|
317
317
|
m(Qe(g));
|
|
318
318
|
}, S = async () => {
|
|
319
319
|
if (t.is_manual && !t.guid) {
|
|
@@ -322,7 +322,7 @@ const lt = ({ transaction: t, onClick: r }) => {
|
|
|
322
322
|
}
|
|
323
323
|
await a({ ...t, date: u }), i(P.TRANSACTION_DETAILS_CLICK_DATE, { transaction_guid: t.guid }), d(!1);
|
|
324
324
|
};
|
|
325
|
-
return /* @__PURE__ */ l(
|
|
325
|
+
return /* @__PURE__ */ l(w, { className: "mx-txn-date-action", children: [
|
|
326
326
|
/* @__PURE__ */ e(B, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
327
327
|
U,
|
|
328
328
|
{
|
|
@@ -336,7 +336,7 @@ const lt = ({ transaction: t, onClick: r }) => {
|
|
|
336
336
|
{
|
|
337
337
|
primary: c.date_title,
|
|
338
338
|
primaryTypographyProps: { variant: "XSmall" },
|
|
339
|
-
secondary: /* @__PURE__ */ e(T, { bold: !0, variant: "Body", children:
|
|
339
|
+
secondary: /* @__PURE__ */ e(T, { bold: !0, variant: "Body", children: we(j(t.date), Oe.YEAR_MONTH_DAY) })
|
|
340
340
|
}
|
|
341
341
|
),
|
|
342
342
|
/* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(f, { name: "chevron_right", weight: v.Dark }) })
|
|
@@ -370,10 +370,10 @@ const lt = ({ transaction: t, onClick: r }) => {
|
|
|
370
370
|
)
|
|
371
371
|
] });
|
|
372
372
|
}, Tt = ({ transaction: t }) => {
|
|
373
|
-
const { onEvent: r } =
|
|
373
|
+
const { onEvent: r } = O(), { removeTransaction: i } = D(), { setShouldDisableDrawerScroll: a } = G(), { common: o, transactions: n } = I(), [c, s] = _.useState(!1), d = async () => {
|
|
374
374
|
await i(t.guid), r(h.ON_TRANSACTION_DELETE_DELETED);
|
|
375
375
|
};
|
|
376
|
-
return /* @__PURE__ */ l(
|
|
376
|
+
return /* @__PURE__ */ l(w, { className: "mx-txn-delete", children: [
|
|
377
377
|
t && /* @__PURE__ */ e(B, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
378
378
|
U,
|
|
379
379
|
{
|
|
@@ -410,12 +410,12 @@ const lt = ({ transaction: t, onClick: r }) => {
|
|
|
410
410
|
)
|
|
411
411
|
] });
|
|
412
412
|
}, yt = x(Tt), St = ({ transaction: t }) => {
|
|
413
|
-
const { onEvent: r } =
|
|
413
|
+
const { onEvent: r } = O(), { updateTransaction: i } = D(), { setShouldDisableDrawerScroll: a } = G(), { common: o, transactions: n } = I(), [c, s] = _.useState(!1), d = async () => {
|
|
414
414
|
await i({ ...t, merchant_guid: "" }), r(P.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
|
|
415
415
|
transaction_guid: t.guid
|
|
416
416
|
});
|
|
417
417
|
};
|
|
418
|
-
return /* @__PURE__ */ l(
|
|
418
|
+
return /* @__PURE__ */ l(w, { className: "mx-txn-delete-logo", children: [
|
|
419
419
|
t && /* @__PURE__ */ e(B, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
420
420
|
U,
|
|
421
421
|
{
|
|
@@ -450,12 +450,12 @@ const lt = ({ transaction: t, onClick: r }) => {
|
|
|
450
450
|
)
|
|
451
451
|
] });
|
|
452
452
|
}, Ct = x(St), ft = ({ transaction: t }) => {
|
|
453
|
-
const { onEvent: r } =
|
|
453
|
+
const { onEvent: r } = O(), { updateTransaction: i } = D(), { setShouldDisableDrawerScroll: a } = G(), { common: o, transactions: n } = I(), [c, s] = _.useState(!1), d = t.is_hidden, u = async () => {
|
|
454
454
|
await i({ ...t, is_hidden: !t.is_hidden }), r(
|
|
455
455
|
d ? h.ON_TRANSACTION_UNHIDDEN : h.ON_TRANSACTION_HIDDEN
|
|
456
456
|
);
|
|
457
457
|
};
|
|
458
|
-
return /* @__PURE__ */ l(
|
|
458
|
+
return /* @__PURE__ */ l(w, { className: "mx-txn-hide-transaction", children: [
|
|
459
459
|
t && /* @__PURE__ */ e(B, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
460
460
|
U,
|
|
461
461
|
{
|
|
@@ -539,7 +539,7 @@ const lt = ({ transaction: t, onClick: r }) => {
|
|
|
539
539
|
] })
|
|
540
540
|
] });
|
|
541
541
|
}, At = ({ transaction: t }) => {
|
|
542
|
-
const { onEvent: r } =
|
|
542
|
+
const { onEvent: r } = O(), { updateTransaction: i } = D(), { updateManualTransaction: a } = G(), { common: o, transactions: n } = I(), [c, s] = _.useState(!1), [d, u] = _.useState("");
|
|
543
543
|
_.useEffect(() => {
|
|
544
544
|
c && u(t.memo ? t.memo : "");
|
|
545
545
|
}, [c]);
|
|
@@ -594,13 +594,12 @@ const lt = ({ transaction: t, onClick: r }) => {
|
|
|
594
594
|
{
|
|
595
595
|
"aria-label": n.memo_desc_aria,
|
|
596
596
|
focused: !0,
|
|
597
|
-
fullWidth: !0,
|
|
598
597
|
multiline: !0,
|
|
599
598
|
name: "memo",
|
|
600
599
|
onChange: (p) => u(p.target.value),
|
|
601
600
|
placeholder: n.memo_desc,
|
|
602
601
|
rows: 4,
|
|
603
|
-
sx: {
|
|
602
|
+
sx: { mx: 16, width: "calc(100% - 32px)" },
|
|
604
603
|
value: d
|
|
605
604
|
}
|
|
606
605
|
)
|
|
@@ -615,11 +614,11 @@ const lt = ({ transaction: t, onClick: r }) => {
|
|
|
615
614
|
onUpdateAmount: a,
|
|
616
615
|
split: o
|
|
617
616
|
}) => {
|
|
618
|
-
const n = ne(), { onEvent: c } =
|
|
617
|
+
const n = ne(), { onEvent: c } = O(), { transactions: s } = I(), [d, u] = _.useState(`${o.amount}`), [m, p] = _.useState(!1), S = t === 0, g = (C) => {
|
|
619
618
|
isNaN(Number(C)) || (u(C), a(t, Number(C)));
|
|
620
619
|
};
|
|
621
620
|
return /* @__PURE__ */ l(
|
|
622
|
-
|
|
621
|
+
w,
|
|
623
622
|
{
|
|
624
623
|
bgcolor: "background.paper",
|
|
625
624
|
className: "mx-txn-split-manager-row",
|
|
@@ -638,7 +637,7 @@ const lt = ({ transaction: t, onClick: r }) => {
|
|
|
638
637
|
children: o.category
|
|
639
638
|
}
|
|
640
639
|
),
|
|
641
|
-
/* @__PURE__ */ e(
|
|
640
|
+
/* @__PURE__ */ e(w, { children: !o.category_guid && /* @__PURE__ */ l(
|
|
642
641
|
b,
|
|
643
642
|
{
|
|
644
643
|
color: "error.main",
|
|
@@ -718,7 +717,7 @@ const lt = ({ transaction: t, onClick: r }) => {
|
|
|
718
717
|
splits: o,
|
|
719
718
|
transaction: n
|
|
720
719
|
}) => {
|
|
721
|
-
const c = ne(), { transactions: s } = I(), { onEvent: d } =
|
|
720
|
+
const c = ne(), { transactions: s } = I(), { onEvent: d } = O(), [u, m] = _.useState(""), { announce: p, ariaLive: S } = Se();
|
|
722
721
|
return _.useEffect(() => {
|
|
723
722
|
if (o.length <= 1)
|
|
724
723
|
m(s.split_transaction_errors_min_splits), p(s.split_transaction_errors_min_splits);
|
|
@@ -730,7 +729,7 @@ const lt = ({ transaction: t, onClick: r }) => {
|
|
|
730
729
|
m(g), p(g);
|
|
731
730
|
} else
|
|
732
731
|
m(""), p("");
|
|
733
|
-
}, [o]), /* @__PURE__ */ l(
|
|
732
|
+
}, [o]), /* @__PURE__ */ l(w, { className: "mx-txn-split-manager", children: [
|
|
734
733
|
S,
|
|
735
734
|
o.map((g, C) => /* @__PURE__ */ e(
|
|
736
735
|
It,
|
|
@@ -756,7 +755,7 @@ const lt = ({ transaction: t, onClick: r }) => {
|
|
|
756
755
|
]
|
|
757
756
|
}
|
|
758
757
|
),
|
|
759
|
-
/* @__PURE__ */ e(
|
|
758
|
+
/* @__PURE__ */ e(w, { p: c.Spacing.Medium, children: /* @__PURE__ */ e(
|
|
760
759
|
de,
|
|
761
760
|
{
|
|
762
761
|
"aria-label": s.split_transaction_add_split_btn,
|
|
@@ -768,7 +767,7 @@ const lt = ({ transaction: t, onClick: r }) => {
|
|
|
768
767
|
) })
|
|
769
768
|
] });
|
|
770
769
|
}, Dt = x(vt), Et = ({ transaction: t }) => {
|
|
771
|
-
const { onEvent: r } =
|
|
770
|
+
const { onEvent: r } = O(), { announce: i, ariaLive: a } = Se(), { splitTransaction: o, unSplitTransaction: n } = D(), { common: c, transactions: s } = I(), { setShouldDisableDrawerScroll: d } = G(), { categories: u } = Ne(), m = {
|
|
772
771
|
...t,
|
|
773
772
|
amount: t.amount - 1,
|
|
774
773
|
guid: "",
|
|
@@ -901,8 +900,8 @@ const lt = ({ transaction: t, onClick: r }) => {
|
|
|
901
900
|
}
|
|
902
901
|
)
|
|
903
902
|
] });
|
|
904
|
-
},
|
|
905
|
-
const t = Ee(), { onEvent: r } =
|
|
903
|
+
}, wt = x(Et), Ot = () => {
|
|
904
|
+
const t = Ee(), { onEvent: r } = O(), { addTag: i } = D(), { transactions: a } = I(), [o, n] = _.useState(!1), [c, s] = _.useState(""), [d, u] = _.useState(""), m = _.useRef(null);
|
|
906
905
|
_.useEffect(() => {
|
|
907
906
|
o && m?.current?.focus();
|
|
908
907
|
}, [o]);
|
|
@@ -915,7 +914,7 @@ const lt = ({ transaction: t, onClick: r }) => {
|
|
|
915
914
|
};
|
|
916
915
|
return _.useEffect(() => {
|
|
917
916
|
u(c.length > 40 ? a.tags_error_name_must_be_40_chars : "");
|
|
918
|
-
}, [c]), /* @__PURE__ */ l(
|
|
917
|
+
}, [c]), /* @__PURE__ */ l(w, { className: "mx-txn-tag-manager-header", children: [
|
|
919
918
|
/* @__PURE__ */ l(
|
|
920
919
|
b,
|
|
921
920
|
{
|
|
@@ -964,7 +963,7 @@ const lt = ({ transaction: t, onClick: r }) => {
|
|
|
964
963
|
}
|
|
965
964
|
)
|
|
966
965
|
] });
|
|
967
|
-
}, Lt = x(
|
|
966
|
+
}, Lt = x(Ot), Rt = ({ onSearchValueChanged: t, searchValue: r }) => {
|
|
968
967
|
const { common: i, transactions: a } = I(), o = ne(), n = /* @__PURE__ */ e(
|
|
969
968
|
ae,
|
|
970
969
|
{
|
|
@@ -973,7 +972,7 @@ const lt = ({ transaction: t, onClick: r }) => {
|
|
|
973
972
|
children: /* @__PURE__ */ e(ce, {})
|
|
974
973
|
}
|
|
975
974
|
);
|
|
976
|
-
return /* @__PURE__ */ e(
|
|
975
|
+
return /* @__PURE__ */ e(w, { className: "mx-txn-tag-manager-search", px: o.Spacing.Large, py: o.Spacing.Medium, children: /* @__PURE__ */ e(
|
|
977
976
|
ye,
|
|
978
977
|
{
|
|
979
978
|
InputProps: {
|
|
@@ -989,7 +988,7 @@ const lt = ({ transaction: t, onClick: r }) => {
|
|
|
989
988
|
}
|
|
990
989
|
) });
|
|
991
990
|
}, kt = x(Rt), Pt = ({ onTagChecked: t, selectedTags: r, tag: i }) => {
|
|
992
|
-
const { onEvent: a } =
|
|
991
|
+
const { onEvent: a } = O(), { removeTag: o, updateTag: n } = D(), { common: c, transactions: s } = I(), [d, u] = _.useState(!1), [m, p] = _.useState(!1), [S, g] = _.useState(""), [C, L] = _.useState(""), y = async () => {
|
|
993
992
|
a(h.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), i && await n({ ...i, name: S }), u(!1);
|
|
994
993
|
}, N = async () => {
|
|
995
994
|
a(h.ON_TRANSACTION_TAGS_TAG_DELETED), await o(i.guid), p(!1);
|
|
@@ -1101,7 +1100,7 @@ const lt = ({ transaction: t, onClick: r }) => {
|
|
|
1101
1100
|
] }, c.guid)) }) })
|
|
1102
1101
|
] });
|
|
1103
1102
|
}, Kt = x(Mt), $t = ({ transaction: t }) => {
|
|
1104
|
-
const { onEvent: r } =
|
|
1103
|
+
const { onEvent: r } = O(), { tags: i, updateTaggings: a, updateTransaction: o } = D(), { common: n, transactions: c } = I(), { updateManualTransaction: s } = G(), [d, u] = _.useState(!1), [m, p] = _.useState(t.tags);
|
|
1105
1104
|
_.useEffect(() => {
|
|
1106
1105
|
p(t.tags);
|
|
1107
1106
|
}, [d, t]);
|
|
@@ -1156,7 +1155,7 @@ const lt = ({ transaction: t, onClick: r }) => {
|
|
|
1156
1155
|
)
|
|
1157
1156
|
] });
|
|
1158
1157
|
}, Bt = x($t), Ft = ({ transaction: t, viewOnly: r = !1 }) => {
|
|
1159
|
-
const { updateTransaction: i } = D(), { common: a, transactions: o } = I(), { onEvent: n } =
|
|
1158
|
+
const { updateTransaction: i } = D(), { common: a, transactions: o } = I(), { onEvent: n } = O(), { announce: c, ariaLive: s } = Se(), [d, u] = _.useState(!1), [m, p] = _.useState(""), S = _.useRef(null);
|
|
1160
1159
|
_.useEffect(() => {
|
|
1161
1160
|
d && (p(t.description), S?.current?.focus());
|
|
1162
1161
|
}, [d]);
|
|
@@ -1167,7 +1166,7 @@ const lt = ({ transaction: t, onClick: r }) => {
|
|
|
1167
1166
|
transaction_guid: t.guid
|
|
1168
1167
|
}), await i({ ...t, description: m }), u(!1), c(`${o.payee_title}: ${m}`), setTimeout(() => document.getElementById("transaction-description-edit-button")?.focus(), 0);
|
|
1169
1168
|
};
|
|
1170
|
-
return /* @__PURE__ */ l(
|
|
1169
|
+
return /* @__PURE__ */ l(w, { className: "mx-txn-transaction-description", children: [
|
|
1171
1170
|
s,
|
|
1172
1171
|
d ? /* @__PURE__ */ l(Ze, { row: !0, children: [
|
|
1173
1172
|
/* @__PURE__ */ e(
|
|
@@ -1216,7 +1215,7 @@ const lt = ({ transaction: t, onClick: r }) => {
|
|
|
1216
1215
|
] })
|
|
1217
1216
|
] });
|
|
1218
1217
|
}, Ht = x(Ft), zt = ({ transaction: t }) => {
|
|
1219
|
-
const { updateTransaction: r } = D(), { transactions: i } = I(), { onEvent: a } =
|
|
1218
|
+
const { updateTransaction: r } = D(), { transactions: i } = I(), { onEvent: a } = O(), o = Ee(), n = async () => {
|
|
1220
1219
|
a(P.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: t.guid }), await r({ ...t, is_flagged: !t.is_flagged });
|
|
1221
1220
|
};
|
|
1222
1221
|
return /* @__PURE__ */ e("div", { className: "mx-txn-transaction-flag", children: /* @__PURE__ */ e(
|
|
@@ -1282,7 +1281,7 @@ const lt = ({ transaction: t, onClick: r }) => {
|
|
|
1282
1281
|
oe(
|
|
1283
1282
|
/* @__PURE__ */ e(f, { name: "calendar_month", sx: { color: "text.primary" }, weight: v.Dark }),
|
|
1284
1283
|
r.date_title,
|
|
1285
|
-
/* @__PURE__ */ e(T, { bold: !0, variant: "Body", children:
|
|
1284
|
+
/* @__PURE__ */ e(T, { bold: !0, variant: "Body", children: we(j(t.date), Oe.YEAR_MONTH_DAY) })
|
|
1286
1285
|
),
|
|
1287
1286
|
oe(
|
|
1288
1287
|
/* @__PURE__ */ e(f, { name: "article", sx: { color: "text.primary" }, weight: v.Dark }),
|
|
@@ -1305,14 +1304,14 @@ const lt = ({ transaction: t, onClick: r }) => {
|
|
|
1305
1304
|
topActions: i = nt,
|
|
1306
1305
|
transaction: a
|
|
1307
1306
|
}) => {
|
|
1308
|
-
const { onEvent: o } =
|
|
1307
|
+
const { onEvent: o } = O(), { isCopyLoaded: n } = ze(), { userFeatures: c } = Ue(), s = a?.number && a.number.length > 4;
|
|
1309
1308
|
if (_.useEffect(
|
|
1310
1309
|
() => o(P.TRANSACTION_DETAILS_VIEW, { transaction_guid: a.guid }),
|
|
1311
1310
|
[]
|
|
1312
1311
|
), !n)
|
|
1313
1312
|
return /* @__PURE__ */ e(ve, {});
|
|
1314
1313
|
const d = Fe(c, "MX_TXN_DETAILS_VIEW_ONLY");
|
|
1315
|
-
return /* @__PURE__ */ e(
|
|
1314
|
+
return /* @__PURE__ */ e(w, { className: "mx-txn-transaction-details", width: "100%", children: a && /* @__PURE__ */ l(b, { children: [
|
|
1316
1315
|
/* @__PURE__ */ l(b, { gap: 12, p: 24, children: [
|
|
1317
1316
|
/* @__PURE__ */ e(ie, { elevation: 2, sx: { width: 64 }, children: /* @__PURE__ */ e(
|
|
1318
1317
|
he,
|
|
@@ -1347,7 +1346,7 @@ const lt = ({ transaction: t, onClick: r }) => {
|
|
|
1347
1346
|
/* @__PURE__ */ e(T, { bold: !0, mb: 8, ml: 26, mt: 16, variant: "Body", children: "Actions" }),
|
|
1348
1347
|
/* @__PURE__ */ e(ie, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ l(te, { children: [
|
|
1349
1348
|
t.map((u, m) => /* @__PURE__ */ l(_.Fragment, { children: [
|
|
1350
|
-
u === se.SplitTransaction && /* @__PURE__ */ e(
|
|
1349
|
+
u === se.SplitTransaction && /* @__PURE__ */ e(wt, { transaction: a }),
|
|
1351
1350
|
u === se.HideTransaction && /* @__PURE__ */ e(bt, { transaction: a }),
|
|
1352
1351
|
u === se.MerchantLogo && /* @__PURE__ */ e(Ct, { transaction: a }),
|
|
1353
1352
|
/* @__PURE__ */ e(ee, { variant: m < t.length - 1 ? "inset" : "fullWidth" })
|