@mx-cartographer/experiences 9.1.4-alpha.mm0 → 9.1.4
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 +3 -2
- package/dist/{AccountDetailsDrawer-utXjRHSW.mjs → AccountDetailsDrawer-Cq4kiiKD.mjs} +4 -4
- package/dist/{AccountDetailsDrawer-utXjRHSW.mjs.map → AccountDetailsDrawer-Cq4kiiKD.mjs.map} +1 -1
- package/dist/{AccountDetailsHeader-C84CSN2K.mjs → AccountDetailsHeader-BliEZhz7.mjs} +2 -2
- package/dist/{AccountDetailsHeader-C84CSN2K.mjs.map → AccountDetailsHeader-BliEZhz7.mjs.map} +1 -1
- package/dist/DateUtil-CzBmbjmA.mjs +75 -0
- package/dist/{DateUtil-Bl7d7C1W.mjs.map → DateUtil-CzBmbjmA.mjs.map} +1 -1
- package/dist/{EmbeddedCard-CQEnrozC.mjs → EmbeddedCard-DCOQnTz-.mjs} +37 -38
- package/dist/EmbeddedCard-DCOQnTz-.mjs.map +1 -0
- package/dist/{ExportCsvAction-B_8I-Le6.mjs → ExportCsvAction-C-IisDcv.mjs} +2 -2
- package/dist/{ExportCsvAction-B_8I-Le6.mjs.map → ExportCsvAction-C-IisDcv.mjs.map} +1 -1
- package/dist/{ManageIncome-Czs7daKV.mjs → ManageIncome-B_8i71mE.mjs} +7 -7
- package/dist/{ManageIncome-Czs7daKV.mjs.map → ManageIncome-B_8i71mE.mjs.map} +1 -1
- package/dist/{RecurringSettings-CcS5b1xA.mjs → RecurringSettings-hs0YUp83.mjs} +3 -3
- package/dist/{RecurringSettings-CcS5b1xA.mjs.map → RecurringSettings-hs0YUp83.mjs.map} +1 -1
- package/dist/{RecurringTransactionsUtil-CfWviBh1.mjs → RecurringTransactionsUtil-CHWmqvW5.mjs} +2 -2
- package/dist/{RecurringTransactionsUtil-CfWviBh1.mjs.map → RecurringTransactionsUtil-CHWmqvW5.mjs.map} +1 -1
- package/dist/{TransactionDetails-Kmj8GUlD.mjs → TransactionDetails-DT-MQqOB.mjs} +133 -135
- package/dist/TransactionDetails-DT-MQqOB.mjs.map +1 -0
- package/dist/{UserStore-DSnLgiGh.mjs → UserStore-_QQpkbw9.mjs} +7 -5
- package/dist/UserStore-_QQpkbw9.mjs.map +1 -0
- package/dist/accounts/index.es.js +4 -4
- package/dist/budgets/index.es.js +3 -3
- package/dist/cashflow/index.es.js +6 -6
- package/dist/common/index.es.js +1 -1
- package/dist/core/index.es.js +2 -2
- package/dist/core/utils/DateUtil.d.ts +0 -1
- package/dist/debts/index.es.js +1 -1
- package/dist/finstrong/index.es.js +6 -6
- package/dist/insights/index.es.js +2 -2
- package/dist/networth/index.es.js +1 -1
- package/dist/notifications/index.es.js +1 -1
- package/dist/recurringtransactions/index.es.js +5 -5
- package/dist/spending/index.es.js +28 -28
- package/dist/spending/index.es.js.map +1 -1
- package/dist/transactions/index.es.js +25 -25
- package/dist/transactions/index.es.js.map +1 -1
- package/dist/trends/index.es.js +3 -3
- package/package.json +1 -1
- package/dist/DateUtil-Bl7d7C1W.mjs +0 -76
- package/dist/EmbeddedCard-CQEnrozC.mjs.map +0 -1
- package/dist/TransactionDetails-Kmj8GUlD.mjs.map +0 -1
- package/dist/UserStore-DSnLgiGh.mjs.map +0 -1
|
@@ -3,32 +3,33 @@ 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
5
|
import Y from "@mui/material/Box";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
6
|
+
import Te from "@mui/material/Divider";
|
|
7
|
+
import be from "@mui/material/List";
|
|
8
|
+
import he from "@mui/material/Paper";
|
|
9
|
+
import We from "@mui/material/Snackbar";
|
|
10
10
|
import L from "@mui/material/Stack";
|
|
11
|
-
import { useTheme as H, alpha as
|
|
12
|
-
import { P as ee, Text as x, H2 as
|
|
11
|
+
import { useTheme as H, alpha as xe } from "@mui/material/styles";
|
|
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
|
-
import {
|
|
15
|
-
import {
|
|
14
|
+
import { getUnixTime as Ie } from "date-fns/getUnixTime";
|
|
15
|
+
import { isBefore as je } from "date-fns/isBefore";
|
|
16
|
+
import { startOfMonth as De } from "date-fns/startOfMonth";
|
|
16
17
|
import { b as I } from "./Localization-DnoVyBNK.mjs";
|
|
17
18
|
import { f as V } from "./NumberFormatting--XMeeBfr.mjs";
|
|
18
|
-
import { l as je, j as Se } from "./DateUtil-Bl7d7C1W.mjs";
|
|
19
19
|
import { a as qe, i as Qe } from "./BudgetUtil-Bg2AQJpQ.mjs";
|
|
20
|
-
import
|
|
20
|
+
import me from "@mui/material/Button";
|
|
21
21
|
import Xe from "@mui/material/FormGroup";
|
|
22
|
-
import
|
|
22
|
+
import ue from "@mui/material/IconButton";
|
|
23
23
|
import $e from "@mui/material/TextField";
|
|
24
|
-
import { u as
|
|
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-
|
|
24
|
+
import { u as Ae } from "./useAriaLive-MkYebyUR.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-DCOQnTz-.mjs";
|
|
26
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
27
|
import { A as j } from "./Analytics-D-jdcL72.mjs";
|
|
28
28
|
import lt from "@mui/material/ToggleButton";
|
|
29
|
-
import { ChevronRight as Ke, Icon as k, Delete as
|
|
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
|
+
import { fromUnixTime as ve } from "date-fns/fromUnixTime";
|
|
30
31
|
import q from "@mui/material/Avatar";
|
|
31
|
-
import
|
|
32
|
+
import U from "@mui/material/ListItem";
|
|
32
33
|
import Q from "@mui/material/ListItemAvatar";
|
|
33
34
|
import W from "@mui/material/ListItemText";
|
|
34
35
|
import { f as Me, D as Re } from "./DateFormats-HudZ3Bjs.mjs";
|
|
@@ -38,15 +39,15 @@ import X from "@mui/material/ListItemButton";
|
|
|
38
39
|
import Z from "@mui/material/ListItemIcon";
|
|
39
40
|
import { b as Fe } from "./CategorySelectorDrawer-NJsFsKP1.mjs";
|
|
40
41
|
import { D as ae } from "./Dialog-Bvd2n8hz.mjs";
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import { b as pt, C as ht, a as yt } from "./CurrencyDialog-DumQCTPO.mjs";
|
|
42
|
+
import { D as _e } from "./Drawer-DsnW2o0v.mjs";
|
|
43
|
+
import { b as gt, C as pt, a as ht } from "./CurrencyDialog-DumQCTPO.mjs";
|
|
44
44
|
import Pe from "@mui/material/InputAdornment";
|
|
45
|
-
import
|
|
46
|
-
import
|
|
45
|
+
import yt from "@mui/material/Checkbox";
|
|
46
|
+
import { l as Tt } from "./DateUtil-CzBmbjmA.mjs";
|
|
47
|
+
import Ne from "@mui/material/Grid";
|
|
47
48
|
import { C as bt } from "./CurrencyInput-DaGEQaLW.mjs";
|
|
48
49
|
import Ct from "@mui/material/Switch";
|
|
49
|
-
var
|
|
50
|
+
var de = /* @__PURE__ */ ((t) => (t[t.Category = 0] = "Category", t[t.Date = 1] = "Date", t[t.Memo = 2] = "Memo", t[t.Tags = 3] = "Tags", t))(de || {}), ie = /* @__PURE__ */ ((t) => (t[t.MerchantBudget = 0] = "MerchantBudget", t[t.SplitTransaction = 1] = "SplitTransaction", t[t.HideTransaction = 2] = "HideTransaction", t[t.MerchantLogo = 3] = "MerchantLogo", t))(ie || {});
|
|
50
51
|
const ft = [
|
|
51
52
|
0,
|
|
52
53
|
1,
|
|
@@ -91,8 +92,8 @@ const ft = [
|
|
|
91
92
|
px: 24
|
|
92
93
|
},
|
|
93
94
|
children: [
|
|
94
|
-
/* @__PURE__ */ e(ee, { bold: !0, variant: "subtitle1", children:
|
|
95
|
-
n && /* @__PURE__ */ e(
|
|
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: s.spending_history }) })
|
|
96
97
|
]
|
|
97
98
|
}
|
|
98
99
|
),
|
|
@@ -100,7 +101,7 @@ const ft = [
|
|
|
100
101
|
Ze,
|
|
101
102
|
{
|
|
102
103
|
amount: /* @__PURE__ */ m(L, { sx: { alignItems: "baseline", flexDirection: "row", gap: 4 }, children: [
|
|
103
|
-
/* @__PURE__ */ e(
|
|
104
|
+
/* @__PURE__ */ e(Ve, { children: V(l, "0,0.00") }),
|
|
104
105
|
/* @__PURE__ */ e(ee, { color: "text.secondary", variant: "body2", children: "/" }),
|
|
105
106
|
/* @__PURE__ */ e(ee, { color: "text.secondary", variant: "body2", children: V(a, "0,0.00") })
|
|
106
107
|
] }),
|
|
@@ -136,7 +137,7 @@ const ft = [
|
|
|
136
137
|
t.amount ?? 0
|
|
137
138
|
);
|
|
138
139
|
return /* @__PURE__ */ m(
|
|
139
|
-
|
|
140
|
+
_e,
|
|
140
141
|
{
|
|
141
142
|
ariaLabelClose: _.close_aria,
|
|
142
143
|
footerStyles: {
|
|
@@ -164,7 +165,7 @@ const ft = [
|
|
|
164
165
|
{
|
|
165
166
|
amount: t.amount,
|
|
166
167
|
icon: /* @__PURE__ */ e(
|
|
167
|
-
|
|
168
|
+
Ce,
|
|
168
169
|
{
|
|
169
170
|
categoryGuid: n.top_level_category_guid || "",
|
|
170
171
|
merchantGuid: n.merchant_guid || ""
|
|
@@ -192,14 +193,14 @@ const It = w(({ transaction: t }) => {
|
|
|
192
193
|
getMerchantBudgetByMerchantGuid: D,
|
|
193
194
|
alert: O,
|
|
194
195
|
setAlert: K
|
|
195
|
-
} = 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 } =
|
|
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 = () => {
|
|
196
197
|
d(n), l(null), r("");
|
|
197
198
|
}, re = () => {
|
|
198
199
|
b ? B(!0) : l(
|
|
199
200
|
"create"
|
|
200
201
|
/* CREATE */
|
|
201
202
|
);
|
|
202
|
-
},
|
|
203
|
+
}, z = {
|
|
203
204
|
create: {
|
|
204
205
|
content: I(
|
|
205
206
|
C.create_budget_content,
|
|
@@ -270,12 +271,12 @@ const It = w(({ transaction: t }) => {
|
|
|
270
271
|
}, A = async () => {
|
|
271
272
|
if (_.current) return;
|
|
272
273
|
_.current = !0;
|
|
273
|
-
const { apiTrigger: S, successAlertMessage: R, errorAlertMessage: T } =
|
|
274
|
+
const { apiTrigger: S, successAlertMessage: R, errorAlertMessage: T } = z[n], { isSuccess: v } = await S(), oe = v ? R : T;
|
|
274
275
|
F(), i(!v), K(oe), se(oe), v && n === "delete" && B(!1), _.current = !1;
|
|
275
276
|
};
|
|
276
277
|
c.useEffect(() => {
|
|
277
278
|
const S = {
|
|
278
|
-
start:
|
|
279
|
+
start: De(new Date(t.date * 1e3)),
|
|
279
280
|
end: Be(new Date(t.date * 1e3))
|
|
280
281
|
};
|
|
281
282
|
te && P({
|
|
@@ -285,14 +286,14 @@ const It = w(({ transaction: t }) => {
|
|
|
285
286
|
});
|
|
286
287
|
}, [te, t, y]);
|
|
287
288
|
const $ = () => /* @__PURE__ */ e(
|
|
288
|
-
|
|
289
|
+
Ye,
|
|
289
290
|
{
|
|
290
291
|
actionText: C.autogenerate_budgets_error_primary_button,
|
|
291
292
|
autoHideDuration: 3500,
|
|
292
293
|
closeAriaLabel: J.close_aria,
|
|
293
294
|
handleClose: () => K(""),
|
|
294
295
|
message: O,
|
|
295
|
-
onActionClick:
|
|
296
|
+
onActionClick: z[s]?.errorRetryAction,
|
|
296
297
|
open: !!O,
|
|
297
298
|
severity: o ? "error" : "success",
|
|
298
299
|
showAction: o,
|
|
@@ -301,7 +302,7 @@ const It = w(({ transaction: t }) => {
|
|
|
301
302
|
);
|
|
302
303
|
return /* @__PURE__ */ m(c.Fragment, { children: [
|
|
303
304
|
le,
|
|
304
|
-
/* @__PURE__ */ e(
|
|
305
|
+
/* @__PURE__ */ e(U, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ m(X, { onClick: re, children: [
|
|
305
306
|
/* @__PURE__ */ e(Q, { children: /* @__PURE__ */ e(q, { sx: { bgcolor: N }, variant: "rounded", children: /* @__PURE__ */ e(k, { name: "bubble_chart", sx: { color: "text.primary" } }) }) }),
|
|
306
307
|
/* @__PURE__ */ e(
|
|
307
308
|
W,
|
|
@@ -327,10 +328,10 @@ const It = w(({ transaction: t }) => {
|
|
|
327
328
|
}
|
|
328
329
|
),
|
|
329
330
|
n && /* @__PURE__ */ e(
|
|
330
|
-
|
|
331
|
+
gt,
|
|
331
332
|
{
|
|
332
333
|
closeAriaLabel: J.close_aria,
|
|
333
|
-
content:
|
|
334
|
+
content: z[n].content,
|
|
334
335
|
handleInputChange: r,
|
|
335
336
|
handleModalClose: F,
|
|
336
337
|
handlePrimaryAction: A,
|
|
@@ -338,9 +339,9 @@ const It = w(({ transaction: t }) => {
|
|
|
338
339
|
inputLabel: n !== "delete" ? J.amount_text : "",
|
|
339
340
|
inputValue: a,
|
|
340
341
|
isOpen: !!n,
|
|
341
|
-
primaryText:
|
|
342
|
+
primaryText: z[n].primaryButtonText,
|
|
342
343
|
secondaryText: J.cancel_button,
|
|
343
|
-
title:
|
|
344
|
+
title: z[n].title
|
|
344
345
|
}
|
|
345
346
|
),
|
|
346
347
|
!!O && $()
|
|
@@ -368,7 +369,7 @@ const It = w(({ transaction: t }) => {
|
|
|
368
369
|
() => a.find((y) => y.guid === g),
|
|
369
370
|
[g]
|
|
370
371
|
), P = s.palette.mode === "dark" ? "grey.800" : "grey.100";
|
|
371
|
-
return /* @__PURE__ */ m(
|
|
372
|
+
return /* @__PURE__ */ m(U, { disableGutters: !0, disablePadding: !0, children: [
|
|
372
373
|
/* @__PURE__ */ m(
|
|
373
374
|
X,
|
|
374
375
|
{
|
|
@@ -432,7 +433,7 @@ const It = w(({ transaction: t }) => {
|
|
|
432
433
|
] });
|
|
433
434
|
}, vt = ({ transaction: t }) => {
|
|
434
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) => {
|
|
435
|
-
u(
|
|
436
|
+
u(Ie(D));
|
|
436
437
|
}, p = async () => {
|
|
437
438
|
if (t.is_manual && !t.guid) {
|
|
438
439
|
a({ ...t, date: d }), s(!1);
|
|
@@ -440,7 +441,7 @@ const It = w(({ transaction: t }) => {
|
|
|
440
441
|
}
|
|
441
442
|
await l({ ...t, date: d }), n(j.TRANSACTION_DETAILS_CLICK_DATE, { transaction_guid: t.guid }), s(!1);
|
|
442
443
|
}, h = i.palette.mode === "dark" ? "grey.800" : "grey.100";
|
|
443
|
-
return /* @__PURE__ */ m(
|
|
444
|
+
return /* @__PURE__ */ m(U, { className: "mx-txn-date-action", disableGutters: !0, disablePadding: !0, children: [
|
|
444
445
|
/* @__PURE__ */ m(
|
|
445
446
|
X,
|
|
446
447
|
{
|
|
@@ -453,7 +454,7 @@ const It = w(({ transaction: t }) => {
|
|
|
453
454
|
W,
|
|
454
455
|
{
|
|
455
456
|
primary: o.date_title,
|
|
456
|
-
secondary: /* @__PURE__ */ e(x, { bold: !0, sx: { color: "text.primary" }, variant: "body1", children: Me(
|
|
457
|
+
secondary: /* @__PURE__ */ e(x, { bold: !0, sx: { color: "text.primary" }, variant: "body1", children: Me(ve(t.date), Re.YEAR_MONTH_DAY) }),
|
|
457
458
|
slotProps: { primary: { variant: "caption", fontSize: 11, fontWeight: "normal" } }
|
|
458
459
|
}
|
|
459
460
|
),
|
|
@@ -462,7 +463,7 @@ const It = w(({ transaction: t }) => {
|
|
|
462
463
|
}
|
|
463
464
|
),
|
|
464
465
|
/* @__PURE__ */ e(
|
|
465
|
-
|
|
466
|
+
_e,
|
|
466
467
|
{
|
|
467
468
|
ariaLabelClose: r.close_aria,
|
|
468
469
|
isOpen: _,
|
|
@@ -472,16 +473,16 @@ const It = w(({ transaction: t }) => {
|
|
|
472
473
|
secondaryText: r.cancel_button,
|
|
473
474
|
title: o.date_edit_title,
|
|
474
475
|
children: /* @__PURE__ */ e(L, { alignItems: "center", mt: 40, children: /* @__PURE__ */ e(
|
|
475
|
-
|
|
476
|
+
pt,
|
|
476
477
|
{
|
|
477
|
-
beginDate:
|
|
478
|
+
beginDate: ve(d),
|
|
478
479
|
copy: {
|
|
479
480
|
nextAria: o.date_next_aria,
|
|
480
481
|
prevAria: o.date_prev_aria,
|
|
481
482
|
today: r.date_range_picker.today
|
|
482
483
|
},
|
|
483
484
|
onDateSelected: g,
|
|
484
|
-
selectionType:
|
|
485
|
+
selectionType: ht.Single
|
|
485
486
|
}
|
|
486
487
|
) })
|
|
487
488
|
}
|
|
@@ -492,14 +493,14 @@ const It = w(({ transaction: t }) => {
|
|
|
492
493
|
await l(t.guid), n(f.ON_TRANSACTION_DELETE_DELETED);
|
|
493
494
|
};
|
|
494
495
|
return /* @__PURE__ */ m(Y, { className: "mx-txn-delete", children: [
|
|
495
|
-
t && /* @__PURE__ */ e(
|
|
496
|
+
t && /* @__PURE__ */ e(U, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ m(
|
|
496
497
|
X,
|
|
497
498
|
{
|
|
498
499
|
onClick: () => {
|
|
499
500
|
n(f.ON_TRANSACTION_DELETE_CLICK), a(!0), _(!0);
|
|
500
501
|
},
|
|
501
502
|
children: [
|
|
502
|
-
/* @__PURE__ */ e(Q, { children: /* @__PURE__ */ e(q, { variant: "rounded", children: /* @__PURE__ */ e(
|
|
503
|
+
/* @__PURE__ */ e(Q, { children: /* @__PURE__ */ e(q, { variant: "rounded", children: /* @__PURE__ */ e(fe, { color: "secondary", fontSize: "small" }) }) }),
|
|
503
504
|
/* @__PURE__ */ e(
|
|
504
505
|
W,
|
|
505
506
|
{
|
|
@@ -507,7 +508,7 @@ const It = w(({ transaction: t }) => {
|
|
|
507
508
|
secondary: o.manual_transaction_delete_subtitle
|
|
508
509
|
}
|
|
509
510
|
),
|
|
510
|
-
/* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(
|
|
511
|
+
/* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(fe, {}) })
|
|
511
512
|
]
|
|
512
513
|
}
|
|
513
514
|
) }),
|
|
@@ -533,7 +534,7 @@ const It = w(({ transaction: t }) => {
|
|
|
533
534
|
transaction_guid: t.guid
|
|
534
535
|
});
|
|
535
536
|
}, u = i.palette.mode === "dark" ? "grey.800" : "grey.100";
|
|
536
|
-
return /* @__PURE__ */ e(c.Fragment, { children: t && /* @__PURE__ */ m(
|
|
537
|
+
return /* @__PURE__ */ e(c.Fragment, { children: t && /* @__PURE__ */ m(U, { className: "mx-txn-delete-logo", disableGutters: !0, disablePadding: !0, children: [
|
|
537
538
|
/* @__PURE__ */ m(
|
|
538
539
|
X,
|
|
539
540
|
{
|
|
@@ -577,7 +578,7 @@ const It = w(({ transaction: t }) => {
|
|
|
577
578
|
l(u ? i.transaction_not_included : i.transaction_not_excluded);
|
|
578
579
|
}
|
|
579
580
|
}, p = _.palette.mode === "dark" ? "grey.800" : "grey.100";
|
|
580
|
-
return /* @__PURE__ */ e(c.Fragment, { children: t && /* @__PURE__ */ m(
|
|
581
|
+
return /* @__PURE__ */ e(c.Fragment, { children: t && /* @__PURE__ */ m(U, { className: "mx-txn-hide-transaction", disableGutters: !0, disablePadding: !0, children: [
|
|
581
582
|
/* @__PURE__ */ m(
|
|
582
583
|
X,
|
|
583
584
|
{
|
|
@@ -640,7 +641,7 @@ const It = w(({ transaction: t }) => {
|
|
|
640
641
|
const { amount: n, description: l, isIncome: a, merchant_guid: r, payee: o, top_level_category_guid: i } = t;
|
|
641
642
|
return /* @__PURE__ */ m(L, { className: "mx-txn-amount-header", direction: "row", gap: 12, px: 16, py: 24, children: [
|
|
642
643
|
/* @__PURE__ */ e(
|
|
643
|
-
|
|
644
|
+
Ce,
|
|
644
645
|
{
|
|
645
646
|
categoryGuid: i || "",
|
|
646
647
|
merchantGuid: r || "",
|
|
@@ -667,7 +668,7 @@ const It = w(({ transaction: t }) => {
|
|
|
667
668
|
}
|
|
668
669
|
await l({ ...t, memo: d }), n(j.TRANSACTION_DETAILS_CLICK_MEMO, { transaction_guid: t.guid }), s(!1);
|
|
669
670
|
}, p = i.palette.mode === "dark" ? "grey.800" : "grey.100";
|
|
670
|
-
return /* @__PURE__ */ m(
|
|
671
|
+
return /* @__PURE__ */ m(U, { className: "mx-txn-memo-action", disableGutters: !0, disablePadding: !0, children: [
|
|
671
672
|
/* @__PURE__ */ m(
|
|
672
673
|
X,
|
|
673
674
|
{
|
|
@@ -689,7 +690,7 @@ const It = w(({ transaction: t }) => {
|
|
|
689
690
|
}
|
|
690
691
|
),
|
|
691
692
|
/* @__PURE__ */ m(
|
|
692
|
-
|
|
693
|
+
_e,
|
|
693
694
|
{
|
|
694
695
|
ariaLabelClose: r.close_aria,
|
|
695
696
|
isOpen: _,
|
|
@@ -727,10 +728,10 @@ const It = w(({ transaction: t }) => {
|
|
|
727
728
|
isNaN(Number(h)) || (s(h), a(t, Number(h)));
|
|
728
729
|
};
|
|
729
730
|
return /* @__PURE__ */ m(Y, { bgcolor: "background.paper", className: "mx-txn-split-manager-row", pb: 4, px: 8, children: [
|
|
730
|
-
/* @__PURE__ */ m(
|
|
731
|
-
/* @__PURE__ */ e(
|
|
731
|
+
/* @__PURE__ */ m(Ne, { alignItems: g ? "center" : "start", container: !0, children: [
|
|
732
|
+
/* @__PURE__ */ e(Ne, { size: 7, children: /* @__PURE__ */ m(L, { alignItems: "start", children: [
|
|
732
733
|
/* @__PURE__ */ e(
|
|
733
|
-
|
|
734
|
+
me,
|
|
734
735
|
{
|
|
735
736
|
endIcon: /* @__PURE__ */ e(Ke, {}),
|
|
736
737
|
onClick: () => u(!0),
|
|
@@ -740,11 +741,11 @@ const It = w(({ transaction: t }) => {
|
|
|
740
741
|
}
|
|
741
742
|
),
|
|
742
743
|
/* @__PURE__ */ e(Y, { children: !r.category_guid && /* @__PURE__ */ m(L, { color: "error.main", direction: "row", gap: 8, p: 12, children: [
|
|
743
|
-
/* @__PURE__ */ e("span", { "aria-label": "error", role: "img", children: /* @__PURE__ */ e(
|
|
744
|
+
/* @__PURE__ */ e("span", { "aria-label": "error", role: "img", children: /* @__PURE__ */ e(Se, { sx: { fontSize: 15 } }) }),
|
|
744
745
|
/* @__PURE__ */ e(x, { variant: "body2", children: i.split_transaction_errors_select_category })
|
|
745
746
|
] }) })
|
|
746
747
|
] }) }),
|
|
747
|
-
/* @__PURE__ */ e(
|
|
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: [
|
|
748
749
|
/* @__PURE__ */ m(L, { alignItems: "start", direction: "row", gap: 8, children: [
|
|
749
750
|
/* @__PURE__ */ e(
|
|
750
751
|
bt,
|
|
@@ -762,7 +763,7 @@ const It = w(({ transaction: t }) => {
|
|
|
762
763
|
}
|
|
763
764
|
),
|
|
764
765
|
/* @__PURE__ */ e(
|
|
765
|
-
|
|
766
|
+
ue,
|
|
766
767
|
{
|
|
767
768
|
"aria-label": i.split_transaction_delete_split_btn,
|
|
768
769
|
color: "secondary",
|
|
@@ -770,12 +771,12 @@ const It = w(({ transaction: t }) => {
|
|
|
770
771
|
o(f.ON_TRANSACTION_SPLIT_DELETE_CLICK), n(t);
|
|
771
772
|
},
|
|
772
773
|
sx: { w: 44, h: 44 },
|
|
773
|
-
children: /* @__PURE__ */ e(
|
|
774
|
+
children: /* @__PURE__ */ e(fe, {})
|
|
774
775
|
}
|
|
775
776
|
)
|
|
776
777
|
] }),
|
|
777
778
|
!_ && /* @__PURE__ */ m(L, { color: "error.main", direction: "row", gap: 8, py: 12, children: [
|
|
778
|
-
/* @__PURE__ */ e("span", { "aria-label": "error", role: "img", children: /* @__PURE__ */ e(
|
|
779
|
+
/* @__PURE__ */ e("span", { "aria-label": "error", role: "img", children: /* @__PURE__ */ e(Se, { sx: { fontSize: 15 } }) }),
|
|
779
780
|
/* @__PURE__ */ e(x, { variant: "body2", children: i.split_transaction_errors_enter_an_amount })
|
|
780
781
|
] })
|
|
781
782
|
] }) })
|
|
@@ -801,7 +802,7 @@ const It = w(({ transaction: t }) => {
|
|
|
801
802
|
splits: r,
|
|
802
803
|
transaction: o
|
|
803
804
|
}) => {
|
|
804
|
-
const { transactions: i } = E(), { onEvent: _ } = G(), [s, d] = c.useState(""), { announce: u, ariaLive: g } =
|
|
805
|
+
const { transactions: i } = E(), { onEvent: _ } = G(), [s, d] = c.useState(""), { announce: u, ariaLive: g } = Ae();
|
|
805
806
|
return c.useEffect(() => {
|
|
806
807
|
if (r.length <= 1)
|
|
807
808
|
d(i.split_transaction_errors_min_splits), u(i.split_transaction_errors_min_splits);
|
|
@@ -827,11 +828,11 @@ const It = w(({ transaction: t }) => {
|
|
|
827
828
|
h
|
|
828
829
|
)),
|
|
829
830
|
s && /* @__PURE__ */ m(L, { bgcolor: "background.paper", color: "error.main", direction: "row", gap: 8, p: 16, children: [
|
|
830
|
-
/* @__PURE__ */ e("span", { "aria-label": "error", role: "img", children: /* @__PURE__ */ e(
|
|
831
|
+
/* @__PURE__ */ e("span", { "aria-label": "error", role: "img", children: /* @__PURE__ */ e(Se, { sx: { fontSize: 15 } }) }),
|
|
831
832
|
/* @__PURE__ */ e(x, { variant: "body2", children: s })
|
|
832
833
|
] }),
|
|
833
834
|
/* @__PURE__ */ e(Y, { p: 16, children: /* @__PURE__ */ e(
|
|
834
|
-
|
|
835
|
+
me,
|
|
835
836
|
{
|
|
836
837
|
"aria-label": i.split_transaction_add_split_btn,
|
|
837
838
|
onClick: () => {
|
|
@@ -842,7 +843,7 @@ const It = w(({ transaction: t }) => {
|
|
|
842
843
|
) })
|
|
843
844
|
] });
|
|
844
845
|
}, Kt = w($t), Ft = ({ transaction: t }) => {
|
|
845
|
-
const { onEvent: n } = G(), { announce: l, ariaLive: a } =
|
|
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 = {
|
|
846
847
|
...t,
|
|
847
848
|
amount: t.amount - 1,
|
|
848
849
|
guid: "",
|
|
@@ -913,10 +914,10 @@ const It = w(({ transaction: t }) => {
|
|
|
913
914
|
}, re = c.useMemo(() => {
|
|
914
915
|
const A = y.some((S) => !S.category_guid), $ = y.some((S) => S.amount <= 0);
|
|
915
916
|
return A || $;
|
|
916
|
-
}, [y]),
|
|
917
|
-
return /* @__PURE__ */ e(c.Fragment, { children: t && /* @__PURE__ */ m(
|
|
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: [
|
|
918
919
|
/* @__PURE__ */ m(X, { onClick: te, children: [
|
|
919
|
-
/* @__PURE__ */ e(Q, { children: /* @__PURE__ */ e(q, { sx: { bgcolor:
|
|
920
|
+
/* @__PURE__ */ e(Q, { children: /* @__PURE__ */ e(q, { sx: { bgcolor: z }, variant: "rounded", children: /* @__PURE__ */ e(k, { name: "call_split", sx: { color: "text.primary" } }) }) }),
|
|
920
921
|
/* @__PURE__ */ e(
|
|
921
922
|
W,
|
|
922
923
|
{
|
|
@@ -927,7 +928,7 @@ const It = w(({ transaction: t }) => {
|
|
|
927
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" } }) })
|
|
928
929
|
] }),
|
|
929
930
|
/* @__PURE__ */ m(
|
|
930
|
-
|
|
931
|
+
_e,
|
|
931
932
|
{
|
|
932
933
|
ariaLabelClose: _.close_aria,
|
|
933
934
|
isOpen: D,
|
|
@@ -975,7 +976,7 @@ const It = w(({ transaction: t }) => {
|
|
|
975
976
|
}
|
|
976
977
|
)
|
|
977
978
|
] }) });
|
|
978
|
-
}, Ht = w(Ft),
|
|
979
|
+
}, Ht = w(Ft), zt = () => {
|
|
979
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);
|
|
980
981
|
c.useEffect(() => {
|
|
981
982
|
r && u?.current?.focus();
|
|
@@ -1002,7 +1003,7 @@ const It = w(({ transaction: t }) => {
|
|
|
1002
1003
|
children: [
|
|
1003
1004
|
/* @__PURE__ */ e(x, { bold: !0, children: a.tags_your_tags }),
|
|
1004
1005
|
/* @__PURE__ */ e(
|
|
1005
|
-
|
|
1006
|
+
me,
|
|
1006
1007
|
{
|
|
1007
1008
|
"aria-expanded": r,
|
|
1008
1009
|
"aria-label": a.tags_add_tag_btn_aria,
|
|
@@ -1038,13 +1039,13 @@ const It = w(({ transaction: t }) => {
|
|
|
1038
1039
|
}
|
|
1039
1040
|
)
|
|
1040
1041
|
] });
|
|
1041
|
-
},
|
|
1042
|
+
}, Ut = w(zt), Wt = ({ onSearchValueChanged: t, searchValue: n }) => {
|
|
1042
1043
|
const { common: l, transactions: a } = E(), r = /* @__PURE__ */ e(
|
|
1043
|
-
|
|
1044
|
+
ue,
|
|
1044
1045
|
{
|
|
1045
1046
|
"aria-label": a.tags_cancel_search || "Search",
|
|
1046
1047
|
onClick: () => t(""),
|
|
1047
|
-
children: /* @__PURE__ */ e(
|
|
1048
|
+
children: /* @__PURE__ */ e(Se, {})
|
|
1048
1049
|
}
|
|
1049
1050
|
);
|
|
1050
1051
|
return /* @__PURE__ */ e(Y, { className: "mx-txn-tag-manager-search", px: 24, py: 16, children: /* @__PURE__ */ e(
|
|
@@ -1079,14 +1080,14 @@ const It = w(({ transaction: t }) => {
|
|
|
1079
1080
|
a(f.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK), g(!0);
|
|
1080
1081
|
};
|
|
1081
1082
|
return /* @__PURE__ */ m(
|
|
1082
|
-
|
|
1083
|
+
U,
|
|
1083
1084
|
{
|
|
1084
1085
|
className: "mx-txn-transaction-manager-row",
|
|
1085
1086
|
disableGutters: !0,
|
|
1086
1087
|
disablePadding: !0,
|
|
1087
1088
|
secondaryAction: !l.is_default_tag && /* @__PURE__ */ m(L, { direction: "row", children: [
|
|
1088
1089
|
/* @__PURE__ */ e(
|
|
1089
|
-
|
|
1090
|
+
ue,
|
|
1090
1091
|
{
|
|
1091
1092
|
"aria-label": `Edit ${l.name} tag`,
|
|
1092
1093
|
color: "secondary",
|
|
@@ -1095,12 +1096,12 @@ const It = w(({ transaction: t }) => {
|
|
|
1095
1096
|
}
|
|
1096
1097
|
),
|
|
1097
1098
|
/* @__PURE__ */ e(
|
|
1098
|
-
|
|
1099
|
+
ue,
|
|
1099
1100
|
{
|
|
1100
1101
|
"aria-label": `Delete ${l.name} tag`,
|
|
1101
1102
|
color: "secondary",
|
|
1102
1103
|
onClick: N,
|
|
1103
|
-
children: /* @__PURE__ */ e(
|
|
1104
|
+
children: /* @__PURE__ */ e(fe, { color: "secondary" })
|
|
1104
1105
|
}
|
|
1105
1106
|
)
|
|
1106
1107
|
] }),
|
|
@@ -1113,7 +1114,7 @@ const It = w(({ transaction: t }) => {
|
|
|
1113
1114
|
role: "checkbox",
|
|
1114
1115
|
children: [
|
|
1115
1116
|
/* @__PURE__ */ e(Z, { sx: { ml: 0 }, children: /* @__PURE__ */ e(
|
|
1116
|
-
|
|
1117
|
+
yt,
|
|
1117
1118
|
{
|
|
1118
1119
|
"aria-hidden": !0,
|
|
1119
1120
|
checked: n.includes(l.guid),
|
|
@@ -1178,10 +1179,10 @@ const It = w(({ transaction: t }) => {
|
|
|
1178
1179
|
searchValue: a
|
|
1179
1180
|
}
|
|
1180
1181
|
),
|
|
1181
|
-
/* @__PURE__ */ e(
|
|
1182
|
-
/* @__PURE__ */ e(
|
|
1182
|
+
/* @__PURE__ */ e(Ut, {}),
|
|
1183
|
+
/* @__PURE__ */ e(he, { sx: { boxShadow: "none" }, children: /* @__PURE__ */ e(be, { children: o.map((i) => /* @__PURE__ */ m(c.Fragment, { children: [
|
|
1183
1184
|
/* @__PURE__ */ e(jt, { onTagChecked: n, selectedTags: t, tag: i }),
|
|
1184
|
-
/* @__PURE__ */ e(
|
|
1185
|
+
/* @__PURE__ */ e(Te, { sx: { ml: 24 } })
|
|
1185
1186
|
] }, i.guid)) }) })
|
|
1186
1187
|
] });
|
|
1187
1188
|
}, Qt = w(qt), Xt = ({ transaction: t }) => {
|
|
@@ -1204,7 +1205,7 @@ const It = w(({ transaction: t }) => {
|
|
|
1204
1205
|
),
|
|
1205
1206
|
[l, t]
|
|
1206
1207
|
), K = s.palette.mode === "dark" ? "grey.800" : "grey.100";
|
|
1207
|
-
return /* @__PURE__ */ m(
|
|
1208
|
+
return /* @__PURE__ */ m(U, { disableGutters: !0, disablePadding: !0, children: [
|
|
1208
1209
|
/* @__PURE__ */ m(
|
|
1209
1210
|
X,
|
|
1210
1211
|
{
|
|
@@ -1226,7 +1227,7 @@ const It = w(({ transaction: t }) => {
|
|
|
1226
1227
|
}
|
|
1227
1228
|
),
|
|
1228
1229
|
/* @__PURE__ */ e(
|
|
1229
|
-
|
|
1230
|
+
_e,
|
|
1230
1231
|
{
|
|
1231
1232
|
ariaLabelClose: o.close_aria,
|
|
1232
1233
|
isOpen: d,
|
|
@@ -1240,7 +1241,7 @@ const It = w(({ transaction: t }) => {
|
|
|
1240
1241
|
)
|
|
1241
1242
|
] });
|
|
1242
1243
|
}, Zt = w(Xt), Jt = ({ transaction: t, viewOnly: n = !1 }) => {
|
|
1243
|
-
const { updateTransaction: l } = M(), { common: a, transactions: r } = E(), { onEvent: o } = G(), { announce: i, ariaLive: _ } =
|
|
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);
|
|
1244
1245
|
c.useEffect(() => {
|
|
1245
1246
|
s && (g(t.description), p?.current?.focus());
|
|
1246
1247
|
}, [s]);
|
|
@@ -1274,7 +1275,7 @@ const It = w(({ transaction: t }) => {
|
|
|
1274
1275
|
}
|
|
1275
1276
|
),
|
|
1276
1277
|
/* @__PURE__ */ e(
|
|
1277
|
-
|
|
1278
|
+
me,
|
|
1278
1279
|
{
|
|
1279
1280
|
disabled: !u,
|
|
1280
1281
|
onClick: D,
|
|
@@ -1289,13 +1290,13 @@ const It = w(({ transaction: t }) => {
|
|
|
1289
1290
|
] }) : /* @__PURE__ */ m(L, { alignItems: "center", direction: "row", gap: 4, sx: { minHeight: 44 }, children: [
|
|
1290
1291
|
/* @__PURE__ */ e(x, { bold: !0, children: t.description }),
|
|
1291
1292
|
!n && /* @__PURE__ */ e(
|
|
1292
|
-
|
|
1293
|
+
ue,
|
|
1293
1294
|
{
|
|
1294
1295
|
"aria-label": r.payee_edit,
|
|
1295
1296
|
id: "transaction-description-edit-button",
|
|
1296
1297
|
onClick: h,
|
|
1297
1298
|
sx: { color: "action.active" },
|
|
1298
|
-
children: /* @__PURE__ */ e(
|
|
1299
|
+
children: /* @__PURE__ */ e(ye, { name: "create", size: 22 })
|
|
1299
1300
|
}
|
|
1300
1301
|
)
|
|
1301
1302
|
] })
|
|
@@ -1317,23 +1318,23 @@ const It = w(({ transaction: t }) => {
|
|
|
1317
1318
|
color: o ? "common.white" : "secondary.main",
|
|
1318
1319
|
"&.Mui-selected": {
|
|
1319
1320
|
color: o ? "primary.main" : "common.white",
|
|
1320
|
-
backgroundColor: o ?
|
|
1321
|
+
backgroundColor: o ? xe(r.palette.primary.main, 0.25) : "warning.dark",
|
|
1321
1322
|
":hover": {
|
|
1322
1323
|
color: o ? "primary.main" : "common.white",
|
|
1323
|
-
backgroundColor: o ?
|
|
1324
|
+
backgroundColor: o ? xe(r.palette.primary.main, 0.2) : "warning.main"
|
|
1324
1325
|
}
|
|
1325
1326
|
},
|
|
1326
1327
|
":hover": {
|
|
1327
1328
|
color: o ? "common.white" : "warning.contrastText",
|
|
1328
|
-
backgroundColor: o ?
|
|
1329
|
+
backgroundColor: o ? xe(r.palette.primary.main, 0.2) : "warning.light"
|
|
1329
1330
|
}
|
|
1330
1331
|
},
|
|
1331
1332
|
value: "flagged",
|
|
1332
1333
|
children: /* @__PURE__ */ e(ut, { color: "inherit" })
|
|
1333
1334
|
}
|
|
1334
1335
|
) });
|
|
1335
|
-
}, aa = w(ta),
|
|
1336
|
-
/* @__PURE__ */ m(
|
|
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: [
|
|
1337
1338
|
/* @__PURE__ */ e(Q, { children: /* @__PURE__ */ e(q, { sx: { bgcolor: "neutral.light" }, variant: "rounded", children: t }) }),
|
|
1338
1339
|
/* @__PURE__ */ e(
|
|
1339
1340
|
W,
|
|
@@ -1344,14 +1345,14 @@ const It = w(({ transaction: t }) => {
|
|
|
1344
1345
|
}
|
|
1345
1346
|
)
|
|
1346
1347
|
] }),
|
|
1347
|
-
/* @__PURE__ */ e(
|
|
1348
|
+
/* @__PURE__ */ e(Te, { variant: r })
|
|
1348
1349
|
] }) : null, na = ({ transaction: t }) => {
|
|
1349
1350
|
const { transactions: n } = E(), { tags: l } = M(), a = c.useMemo(() => {
|
|
1350
1351
|
const r = new Map(l.map((o) => [o.guid, o.name]));
|
|
1351
1352
|
return t.tags.map((o) => r.get(o)).filter(Boolean).join(" / ");
|
|
1352
1353
|
}, [l, t.tags]);
|
|
1353
|
-
return /* @__PURE__ */ m(
|
|
1354
|
-
|
|
1354
|
+
return /* @__PURE__ */ m(be, { sx: { "& .MuiListItem-root": { px: 24, py: 12 } }, children: [
|
|
1355
|
+
pe(
|
|
1355
1356
|
/* @__PURE__ */ e(
|
|
1356
1357
|
Oe,
|
|
1357
1358
|
{
|
|
@@ -1364,20 +1365,20 @@ const It = w(({ transaction: t }) => {
|
|
|
1364
1365
|
n.category_title,
|
|
1365
1366
|
/* @__PURE__ */ e(x, { bold: !0, variant: "body1", children: t.category ?? n.actions_select_a_category })
|
|
1366
1367
|
),
|
|
1367
|
-
|
|
1368
|
-
/* @__PURE__ */ e(
|
|
1368
|
+
pe(
|
|
1369
|
+
/* @__PURE__ */ e(ye, { name: "calendar_month", sx: { color: "text.primary" } }),
|
|
1369
1370
|
n.date_title,
|
|
1370
|
-
/* @__PURE__ */ e(x, { bold: !0, variant: "body1", children: Me(
|
|
1371
|
+
/* @__PURE__ */ e(x, { bold: !0, variant: "body1", children: Me(ve(t.date), Re.YEAR_MONTH_DAY) })
|
|
1371
1372
|
),
|
|
1372
|
-
|
|
1373
|
-
/* @__PURE__ */ e(
|
|
1373
|
+
pe(
|
|
1374
|
+
/* @__PURE__ */ e(ye, { name: "article", sx: { color: "text.primary" } }),
|
|
1374
1375
|
n.memo_title,
|
|
1375
1376
|
/* @__PURE__ */ e(x, { bold: !0, variant: "body1", children: t.memo ?? n.memo_desc }),
|
|
1376
1377
|
!!t.memo,
|
|
1377
1378
|
t.tags?.length > 0 ? "inset" : "fullWidth"
|
|
1378
1379
|
),
|
|
1379
|
-
|
|
1380
|
-
/* @__PURE__ */ e(
|
|
1380
|
+
pe(
|
|
1381
|
+
/* @__PURE__ */ e(ye, { name: "local_offer", sx: { color: "text.primary" } }),
|
|
1381
1382
|
n.tags_title,
|
|
1382
1383
|
/* @__PURE__ */ e(x, { bold: !0, variant: "body1", children: t.tags?.length ? a : n.tags_desc }),
|
|
1383
1384
|
!!t.tags?.length,
|
|
@@ -1519,30 +1520,27 @@ const It = w(({ transaction: t }) => {
|
|
|
1519
1520
|
[]
|
|
1520
1521
|
), c.useEffect(() => {
|
|
1521
1522
|
if (!b || b.dataSeries.length === 0) return;
|
|
1522
|
-
const { date: T } = b.dataSeries[F], v =
|
|
1523
|
-
|
|
1523
|
+
const { date: T } = b.dataSeries[F], v = De(T);
|
|
1524
|
+
je(v, D) && (C(!0), O(v).finally(() => {
|
|
1524
1525
|
C(!1);
|
|
1525
1526
|
}));
|
|
1526
1527
|
}, [F, b, D]);
|
|
1527
|
-
const
|
|
1528
|
+
const z = t.includes(ie.MerchantBudget) && !a?.merchant_guid ? t.filter((T) => T !== ie.MerchantBudget) : t, A = ke(() => {
|
|
1528
1529
|
if (b) {
|
|
1529
1530
|
const T = u.find(
|
|
1530
|
-
(
|
|
1531
|
+
(ze) => ze.guid === a.top_level_category_guid
|
|
1531
1532
|
), v = B?.payload?.average_amount ?? 0, oe = a.amount;
|
|
1532
|
-
let
|
|
1533
|
-
oe - v < 0 && (
|
|
1534
|
-
const
|
|
1535
|
-
return { category: T, percentageAmount:
|
|
1533
|
+
let ge = d.general.increased_text;
|
|
1534
|
+
oe - v < 0 && (ge = d.general.decreased_text);
|
|
1535
|
+
const ce = v === 0 ? 0 : Math.round(Math.abs(oe - v) / v * 100);
|
|
1536
|
+
return { category: T, percentageAmount: ce, changetype: ge };
|
|
1536
1537
|
}
|
|
1537
1538
|
return null;
|
|
1538
1539
|
}, [b, u]), $ = ke(() => {
|
|
1539
1540
|
if (!b?.dataSeries?.length)
|
|
1540
1541
|
return [];
|
|
1541
|
-
const { guid: T, date: v } = b.dataSeries[F], oe =
|
|
1542
|
-
return h.filter((
|
|
1543
|
-
const pe = Se(ge.date);
|
|
1544
|
-
return pe >= oe && pe <= _e && ge.guid === T;
|
|
1545
|
-
});
|
|
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);
|
|
1546
1544
|
}, [F, b, h, N]);
|
|
1547
1545
|
if (!o)
|
|
1548
1546
|
return /* @__PURE__ */ e(_t, {});
|
|
@@ -1550,8 +1548,8 @@ const It = w(({ transaction: t }) => {
|
|
|
1550
1548
|
return /* @__PURE__ */ m(Y, { className: "mx-txn-transaction-details", width: "100%", children: [
|
|
1551
1549
|
a && /* @__PURE__ */ m(L, { children: [
|
|
1552
1550
|
/* @__PURE__ */ m(L, { gap: 12, p: 24, children: [
|
|
1553
|
-
/* @__PURE__ */ e(
|
|
1554
|
-
|
|
1551
|
+
/* @__PURE__ */ e(he, { elevation: 2, sx: { width: 64 }, children: /* @__PURE__ */ e(
|
|
1552
|
+
Ce,
|
|
1555
1553
|
{
|
|
1556
1554
|
categoryGuid: a.top_level_category_guid || "",
|
|
1557
1555
|
merchantGuid: a.merchant_guid || "",
|
|
@@ -1588,32 +1586,32 @@ const It = w(({ transaction: t }) => {
|
|
|
1588
1586
|
/* @__PURE__ */ e(x, { bold: !0, truncate: !0, variant: "tiny", children: a.feed_description })
|
|
1589
1587
|
] })
|
|
1590
1588
|
] }),
|
|
1591
|
-
/* @__PURE__ */ e(
|
|
1592
|
-
T ===
|
|
1593
|
-
T ===
|
|
1594
|
-
T ===
|
|
1595
|
-
T ===
|
|
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: [
|
|
1590
|
+
T === de.Category && /* @__PURE__ */ e(Dt, { transaction: a }),
|
|
1591
|
+
T === de.Date && /* @__PURE__ */ e(vt, { transaction: a }),
|
|
1592
|
+
T === de.Memo && /* @__PURE__ */ e(Pt, { transaction: a }),
|
|
1593
|
+
T === de.Tags && /* @__PURE__ */ e(Zt, { transaction: a }),
|
|
1596
1594
|
/* @__PURE__ */ e(
|
|
1597
|
-
|
|
1595
|
+
Te,
|
|
1598
1596
|
{
|
|
1599
1597
|
component: "li",
|
|
1600
1598
|
variant: v < l.length - 1 ? "inset" : "fullWidth"
|
|
1601
1599
|
}
|
|
1602
1600
|
)
|
|
1603
1601
|
] }, T)) }) }),
|
|
1604
|
-
!S &&
|
|
1602
|
+
!S && z.length > 0 && /* @__PURE__ */ m(c.Fragment, { children: [
|
|
1605
1603
|
/* @__PURE__ */ e(x, { bold: !0, mb: 8, ml: 26, mt: 16, variant: "body1", children: _.actions }),
|
|
1606
|
-
/* @__PURE__ */ e(
|
|
1607
|
-
|
|
1604
|
+
/* @__PURE__ */ e(he, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ m(be, { children: [
|
|
1605
|
+
z.map((T, v) => /* @__PURE__ */ m(c.Fragment, { children: [
|
|
1608
1606
|
T === ie.MerchantBudget && /* @__PURE__ */ e(It, { transaction: a }),
|
|
1609
1607
|
T === ie.SplitTransaction && /* @__PURE__ */ e(Ht, { transaction: a }),
|
|
1610
1608
|
T === ie.HideTransaction && /* @__PURE__ */ e(Rt, { transaction: a }),
|
|
1611
1609
|
T === ie.MerchantLogo && /* @__PURE__ */ e(wt, { transaction: a }),
|
|
1612
1610
|
/* @__PURE__ */ e(
|
|
1613
|
-
|
|
1611
|
+
Te,
|
|
1614
1612
|
{
|
|
1615
1613
|
component: "li",
|
|
1616
|
-
variant: v <
|
|
1614
|
+
variant: v < z.length - 1 ? "inset" : "fullWidth"
|
|
1617
1615
|
}
|
|
1618
1616
|
)
|
|
1619
1617
|
] }, T)),
|
|
@@ -1654,7 +1652,7 @@ const It = w(({ transaction: t }) => {
|
|
|
1654
1652
|
data: b.chartData,
|
|
1655
1653
|
defaultSelectedIndex: F,
|
|
1656
1654
|
icon: /* @__PURE__ */ e(
|
|
1657
|
-
|
|
1655
|
+
Ce,
|
|
1658
1656
|
{
|
|
1659
1657
|
alt: a.description ?? "",
|
|
1660
1658
|
categoryGuid: a.category_guid ?? "",
|
|
@@ -1686,7 +1684,7 @@ const It = w(({ transaction: t }) => {
|
|
|
1686
1684
|
}
|
|
1687
1685
|
),
|
|
1688
1686
|
/* @__PURE__ */ e(
|
|
1689
|
-
|
|
1687
|
+
We,
|
|
1690
1688
|
{
|
|
1691
1689
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
1692
1690
|
autoHideDuration: 3500,
|
|
@@ -1696,15 +1694,15 @@ const It = w(({ transaction: t }) => {
|
|
|
1696
1694
|
}
|
|
1697
1695
|
)
|
|
1698
1696
|
] });
|
|
1699
|
-
},
|
|
1697
|
+
}, rn = w(la);
|
|
1700
1698
|
export {
|
|
1701
1699
|
ie as B,
|
|
1702
1700
|
Dt as C,
|
|
1703
1701
|
vt as D,
|
|
1704
1702
|
Pt as M,
|
|
1705
|
-
|
|
1703
|
+
rn as T,
|
|
1706
1704
|
Zt as a,
|
|
1707
|
-
|
|
1705
|
+
de as b,
|
|
1708
1706
|
At as c
|
|
1709
1707
|
};
|
|
1710
|
-
//# sourceMappingURL=TransactionDetails-
|
|
1708
|
+
//# sourceMappingURL=TransactionDetails-DT-MQqOB.mjs.map
|