@mx-cartographer/experiences 7.11.4 → 7.11.5
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 +7 -0
- package/dist/{ManageIncome-C9VHBLye.mjs → ManageIncome-nsPkRmtW.mjs} +1 -1
- package/dist/{RecurringSettings-C9wCLrKK.mjs → RecurringSettings-DPNluP-k.mjs} +1 -1
- package/dist/{TransactionDetails-DGLtjFZF.mjs → TransactionDetails-CurpH7lH.mjs} +247 -237
- package/dist/accounts/index.es.js +1 -1
- package/dist/budgets/index.es.js +2 -2
- package/dist/cashflow/index.es.js +2 -2
- package/dist/finstrong/index.es.js +2 -2
- package/dist/recurringtransactions/index.es.js +4 -4
- package/dist/spending/index.es.js +1 -1
- package/dist/transactions/index.es.js +2 -2
- package/dist/trends/index.es.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [7.11.5] - 03-02-2026
|
|
2
|
+
|
|
3
|
+
- **FIXED** - `HideAction` broken visibility off icon
|
|
4
|
+
- **FIXED** - `HideAction` accessibility improvements (aria, keyboard focus trap, etc)
|
|
5
|
+
- **FIXED** - `TransactionDetails` action list cannot have dialog `div` as direct child of `ul`/`ol` for accessibility
|
|
6
|
+
- **FIXED** - `TagRow` checkbox redundant screenreader announcement
|
|
7
|
+
|
|
1
8
|
## [7.11.4] - 02-27-2026
|
|
2
9
|
|
|
3
10
|
- **FIXED** - Trends Widget | Empty state flash before data load
|
|
@@ -18,7 +18,7 @@ import { parseISO as me } from "date-fns/parseISO";
|
|
|
18
18
|
import Z from "@mui/material/Button";
|
|
19
19
|
import { Delete as pe, Add as ye, ReceiptLong as he } from "@mxenabled/mx-icons";
|
|
20
20
|
import { T as J, u as fe, S as ge, a as Ce } from "./TransactionList-DrtItQUk.mjs";
|
|
21
|
-
import { T as be } from "./TransactionDetails-
|
|
21
|
+
import { T as be } from "./TransactionDetails-CurpH7lH.mjs";
|
|
22
22
|
import { addYears as j } from "date-fns/addYears";
|
|
23
23
|
import { getDayOfYear as xe } from "date-fns/getDayOfYear";
|
|
24
24
|
import { setDayOfYear as Se } from "date-fns/setDayOfYear";
|
|
@@ -7,7 +7,7 @@ import R from "@mui/material/Tabs";
|
|
|
7
7
|
import d from "@mui/material/Divider";
|
|
8
8
|
import b from "@mui/material/List";
|
|
9
9
|
import T from "@mui/material/Stack";
|
|
10
|
-
import { R as C, A as S, a as E, M as v } from "./ManageIncome-
|
|
10
|
+
import { R as C, A as S, a as E, M as v } from "./ManageIncome-nsPkRmtW.mjs";
|
|
11
11
|
import { u as _, i as A, g as f } from "./hooks-0kWPTHNb.mjs";
|
|
12
12
|
import { R as y, F as N } from "./RecurringTransactions-B_I4_FGO.mjs";
|
|
13
13
|
import { A as m } from "./Analytics-i5h6BxR1.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import _ from "react";
|
|
3
3
|
import { observer as N } from "mobx-react-lite";
|
|
4
|
-
import
|
|
4
|
+
import B from "@mui/material/Box";
|
|
5
5
|
import te from "@mui/material/Divider";
|
|
6
6
|
import ae from "@mui/material/List";
|
|
7
7
|
import Z from "@mui/material/Paper";
|
|
@@ -15,26 +15,26 @@ import J from "@mui/material/IconButton";
|
|
|
15
15
|
import Te from "@mui/material/TextField";
|
|
16
16
|
import { u as pe } from "./useAriaLive-MkYebyUR.mjs";
|
|
17
17
|
import { O as h } from "./Transaction-BNO5Yz-B.mjs";
|
|
18
|
-
import { h as
|
|
19
|
-
import { A as
|
|
18
|
+
import { h as O, m as Ce, g as v, u as I, b as Ke, o as $e } from "./hooks-0kWPTHNb.mjs";
|
|
19
|
+
import { A as k } from "./Analytics-i5h6BxR1.mjs";
|
|
20
20
|
import Be from "@mui/material/ToggleButton";
|
|
21
21
|
import Se from "@mui/material/styles/useTheme";
|
|
22
22
|
import { Icon as A, Delete as re, ChevronRight as Fe, Cancel as ne, Search as He, Edit as Ue, Flag as Ve } from "@mxenabled/mx-icons";
|
|
23
23
|
import { fromUnixTime as _e } from "date-fns/fromUnixTime";
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
24
|
+
import P from "@mui/material/Avatar";
|
|
25
|
+
import L from "@mui/material/ListItem";
|
|
26
|
+
import M from "@mui/material/ListItemAvatar";
|
|
27
|
+
import w from "@mui/material/ListItemText";
|
|
28
28
|
import { f as be, D as xe } from "./DateFormats-Cs-NbEZ7.mjs";
|
|
29
|
-
import
|
|
30
|
-
import
|
|
29
|
+
import G from "@mui/material/ListItemButton";
|
|
30
|
+
import K from "@mui/material/ListItemIcon";
|
|
31
31
|
import { a as fe } from "./CategorySelectorDrawer-DpC8T96X.mjs";
|
|
32
32
|
import { u as V } from "./TransactionList-DrtItQUk.mjs";
|
|
33
33
|
import { D as U } from "./Dialog-BqUCsQvo.mjs";
|
|
34
34
|
import { b as W } from "./Localization-2MODESHW.mjs";
|
|
35
35
|
import { getUnixTime as ze } from "date-fns/getUnixTime";
|
|
36
36
|
import { D as ie } from "./Drawer-DV4NTsFg.mjs";
|
|
37
|
-
import { f as
|
|
37
|
+
import { f as se } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
38
38
|
import ge from "@mui/material/InputAdornment";
|
|
39
39
|
import We from "@mui/material/Checkbox";
|
|
40
40
|
import de from "@mui/material/Grid";
|
|
@@ -54,37 +54,37 @@ const qe = [
|
|
|
54
54
|
3
|
|
55
55
|
/* MerchantLogo */
|
|
56
56
|
], Qe = ({ transaction: t }) => {
|
|
57
|
-
const { addOrUpdateTransactionRule: o, updateTransaction: i } =
|
|
58
|
-
await i({ ...t, category_guid: m }), C && await o(m, t), g(""), r(
|
|
57
|
+
const { addOrUpdateTransactionRule: o, updateTransaction: i } = O(), { categories: a } = Ce(), { onEvent: r } = v(), { setShouldDisableDrawerScroll: n, updateManualTransaction: l } = V(), { transactions: c } = I(), u = F(), [d, p] = _.useState(!1), [m, g] = _.useState(""), y = async (C) => {
|
|
58
|
+
await i({ ...t, category_guid: m }), C && await o(m, t), g(""), r(k.TRANSACTION_DETAILS_CLICK_CATEGORY, {
|
|
59
59
|
transaction_guid: t.guid
|
|
60
60
|
});
|
|
61
|
-
},
|
|
61
|
+
}, E = (C) => {
|
|
62
62
|
if (t.is_manual && !t.guid) {
|
|
63
|
-
const
|
|
64
|
-
|
|
63
|
+
const D = a.find((z) => z.guid === C);
|
|
64
|
+
l({
|
|
65
65
|
...t,
|
|
66
|
-
category:
|
|
66
|
+
category: D?.name,
|
|
67
67
|
category_guid: C,
|
|
68
|
-
top_level_category_guid:
|
|
68
|
+
top_level_category_guid: D?.parent_guid || C
|
|
69
69
|
});
|
|
70
70
|
} else
|
|
71
71
|
g(C);
|
|
72
|
-
|
|
73
|
-
},
|
|
72
|
+
R();
|
|
73
|
+
}, R = () => {
|
|
74
74
|
p(!1), n(!1);
|
|
75
75
|
}, H = _.useMemo(
|
|
76
76
|
() => a.find((C) => C.guid === m),
|
|
77
77
|
[m]
|
|
78
78
|
), S = u.palette.mode === "dark" ? "grey.800" : "grey.100";
|
|
79
|
-
return /* @__PURE__ */
|
|
80
|
-
/* @__PURE__ */
|
|
81
|
-
|
|
79
|
+
return /* @__PURE__ */ s(L, { disableGutters: !0, disablePadding: !0, children: [
|
|
80
|
+
/* @__PURE__ */ s(
|
|
81
|
+
G,
|
|
82
82
|
{
|
|
83
83
|
onClick: () => {
|
|
84
84
|
r(h.ON_TRANSACTION_CATEGORY_CLICK), p(!0);
|
|
85
85
|
},
|
|
86
86
|
children: [
|
|
87
|
-
/* @__PURE__ */ e(
|
|
87
|
+
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(P, { sx: { bgcolor: S }, variant: "rounded", children: /* @__PURE__ */ e(
|
|
88
88
|
me,
|
|
89
89
|
{
|
|
90
90
|
categoryGuid: t.top_level_category_guid,
|
|
@@ -94,23 +94,23 @@ const qe = [
|
|
|
94
94
|
}
|
|
95
95
|
) }) }),
|
|
96
96
|
/* @__PURE__ */ e(
|
|
97
|
-
|
|
97
|
+
w,
|
|
98
98
|
{
|
|
99
99
|
primary: c.category_title,
|
|
100
100
|
primaryTypographyProps: { variant: "XSmall" },
|
|
101
101
|
secondary: /* @__PURE__ */ e(T, { bold: !0, sx: { color: "text.primary" }, variant: "Body", children: t.category ?? c.actions_select_a_category })
|
|
102
102
|
}
|
|
103
103
|
),
|
|
104
|
-
/* @__PURE__ */ e(
|
|
104
|
+
/* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(A, { name: "chevron_right", sx: { color: "text.primary" } }) })
|
|
105
105
|
]
|
|
106
106
|
}
|
|
107
|
-
)
|
|
107
|
+
),
|
|
108
108
|
/* @__PURE__ */ e(
|
|
109
109
|
fe,
|
|
110
110
|
{
|
|
111
111
|
initialSelected: t.category_guid,
|
|
112
|
-
onClose:
|
|
113
|
-
onSelect:
|
|
112
|
+
onClose: R,
|
|
113
|
+
onSelect: E,
|
|
114
114
|
showDrawer: d,
|
|
115
115
|
title: c.actions_select_a_category
|
|
116
116
|
}
|
|
@@ -139,36 +139,36 @@ const qe = [
|
|
|
139
139
|
)
|
|
140
140
|
] });
|
|
141
141
|
}, Ze = ({ transaction: t }) => {
|
|
142
|
-
const { onEvent: o } = v(), { updateTransaction: i } =
|
|
143
|
-
p(ze(
|
|
142
|
+
const { onEvent: o } = v(), { updateTransaction: i } = O(), { updateManualTransaction: a } = V(), { common: r, transactions: n } = I(), l = F(), [c, u] = _.useState(!1), [d, p] = _.useState(t.date), m = (E) => {
|
|
143
|
+
p(ze(E));
|
|
144
144
|
}, g = async () => {
|
|
145
145
|
if (t.is_manual && !t.guid) {
|
|
146
146
|
a({ ...t, date: d }), u(!1);
|
|
147
147
|
return;
|
|
148
148
|
}
|
|
149
|
-
await i({ ...t, date: d }), o(
|
|
150
|
-
}, y =
|
|
151
|
-
return /* @__PURE__ */
|
|
152
|
-
/* @__PURE__ */
|
|
153
|
-
|
|
149
|
+
await i({ ...t, date: d }), o(k.TRANSACTION_DETAILS_CLICK_DATE, { transaction_guid: t.guid }), u(!1);
|
|
150
|
+
}, y = l.palette.mode === "dark" ? "grey.800" : "grey.100";
|
|
151
|
+
return /* @__PURE__ */ s(L, { className: "mx-txn-date-action", disableGutters: !0, disablePadding: !0, children: [
|
|
152
|
+
/* @__PURE__ */ s(
|
|
153
|
+
G,
|
|
154
154
|
{
|
|
155
155
|
onClick: () => {
|
|
156
156
|
o(h.ON_TRANSACTION_DATE_CLICK), u(!0);
|
|
157
157
|
},
|
|
158
158
|
children: [
|
|
159
|
-
/* @__PURE__ */ e(
|
|
159
|
+
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(P, { sx: { bgcolor: y }, variant: "rounded", children: /* @__PURE__ */ e(A, { name: "calendar_month", sx: { color: "text.primary" } }) }) }),
|
|
160
160
|
/* @__PURE__ */ e(
|
|
161
|
-
|
|
161
|
+
w,
|
|
162
162
|
{
|
|
163
163
|
primary: n.date_title,
|
|
164
164
|
primaryTypographyProps: { variant: "XSmall" },
|
|
165
165
|
secondary: /* @__PURE__ */ e(T, { bold: !0, sx: { color: "text.primary" }, variant: "Body", children: be(_e(t.date), xe.YEAR_MONTH_DAY) })
|
|
166
166
|
}
|
|
167
167
|
),
|
|
168
|
-
/* @__PURE__ */ e(
|
|
168
|
+
/* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(A, { name: "chevron_right", sx: { color: "text.primary" } }) })
|
|
169
169
|
]
|
|
170
170
|
}
|
|
171
|
-
)
|
|
171
|
+
),
|
|
172
172
|
/* @__PURE__ */ e(
|
|
173
173
|
ie,
|
|
174
174
|
{
|
|
@@ -196,26 +196,26 @@ const qe = [
|
|
|
196
196
|
)
|
|
197
197
|
] });
|
|
198
198
|
}, et = ({ transaction: t }) => {
|
|
199
|
-
const { onEvent: o } = v(), { removeTransaction: i } =
|
|
199
|
+
const { onEvent: o } = v(), { removeTransaction: i } = O(), { setShouldDisableDrawerScroll: a } = V(), { common: r, transactions: n } = I(), [l, c] = _.useState(!1), u = async () => {
|
|
200
200
|
await i(t.guid), o(h.ON_TRANSACTION_DELETE_DELETED);
|
|
201
201
|
};
|
|
202
|
-
return /* @__PURE__ */
|
|
203
|
-
t && /* @__PURE__ */ e(
|
|
204
|
-
|
|
202
|
+
return /* @__PURE__ */ s(B, { className: "mx-txn-delete", children: [
|
|
203
|
+
t && /* @__PURE__ */ e(L, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ s(
|
|
204
|
+
G,
|
|
205
205
|
{
|
|
206
206
|
onClick: () => {
|
|
207
207
|
o(h.ON_TRANSACTION_DELETE_CLICK), a(!0), c(!0);
|
|
208
208
|
},
|
|
209
209
|
children: [
|
|
210
|
-
/* @__PURE__ */ e(
|
|
210
|
+
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(P, { variant: "rounded", children: /* @__PURE__ */ e(re, { color: "secondary", fontSize: "small" }) }) }),
|
|
211
211
|
/* @__PURE__ */ e(
|
|
212
|
-
|
|
212
|
+
w,
|
|
213
213
|
{
|
|
214
214
|
primary: n.manual_transaction_delete_title,
|
|
215
215
|
secondary: n.manual_transaction_delete_subtitle
|
|
216
216
|
}
|
|
217
217
|
),
|
|
218
|
-
/* @__PURE__ */ e(
|
|
218
|
+
/* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(re, {}) })
|
|
219
219
|
]
|
|
220
220
|
}
|
|
221
221
|
) }),
|
|
@@ -223,7 +223,7 @@ const qe = [
|
|
|
223
223
|
U,
|
|
224
224
|
{
|
|
225
225
|
copy: { title: n.manual_transaction_delete_title },
|
|
226
|
-
isOpen:
|
|
226
|
+
isOpen: l,
|
|
227
227
|
onClose: () => {
|
|
228
228
|
a(!1), c(!1);
|
|
229
229
|
},
|
|
@@ -236,26 +236,26 @@ const qe = [
|
|
|
236
236
|
)
|
|
237
237
|
] });
|
|
238
238
|
}, tt = N(et), at = ({ transaction: t }) => {
|
|
239
|
-
const { onEvent: o } = v(), { updateTransaction: i } =
|
|
240
|
-
await i({ ...t, merchant_guid: "" }), o(
|
|
239
|
+
const { onEvent: o } = v(), { updateTransaction: i } = O(), { setShouldDisableDrawerScroll: a } = V(), { common: r, transactions: n } = I(), l = F(), [c, u] = _.useState(!1), d = async () => {
|
|
240
|
+
await i({ ...t, merchant_guid: "" }), o(k.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
|
|
241
241
|
transaction_guid: t.guid
|
|
242
242
|
});
|
|
243
|
-
}, p =
|
|
244
|
-
return /* @__PURE__ */
|
|
245
|
-
|
|
246
|
-
|
|
243
|
+
}, p = l.palette.mode === "dark" ? "grey.800" : "grey.100";
|
|
244
|
+
return /* @__PURE__ */ e(_.Fragment, { children: t && /* @__PURE__ */ s(L, { className: "mx-txn-delete-logo", disableGutters: !0, disablePadding: !0, children: [
|
|
245
|
+
/* @__PURE__ */ s(
|
|
246
|
+
G,
|
|
247
247
|
{
|
|
248
248
|
onClick: () => {
|
|
249
249
|
o(h.ON_TRANSACTION_DELETE_LOGO_CLICK), u(!0);
|
|
250
250
|
},
|
|
251
251
|
children: [
|
|
252
|
-
/* @__PURE__ */ e(
|
|
253
|
-
/* @__PURE__ */ e(
|
|
254
|
-
/* @__PURE__ */ e(
|
|
252
|
+
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(P, { sx: { bgcolor: p }, variant: "rounded", children: /* @__PURE__ */ e(A, { name: "delete", sx: { color: "text.primary" } }) }) }),
|
|
253
|
+
/* @__PURE__ */ e(w, { primary: n.merchant_logo_title, secondary: n.merchant_logo_desc }),
|
|
254
|
+
/* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(A, { name: "chevron_right", sx: { color: "text.primary" } }) })
|
|
255
255
|
]
|
|
256
256
|
}
|
|
257
|
-
)
|
|
258
|
-
/* @__PURE__ */
|
|
257
|
+
),
|
|
258
|
+
/* @__PURE__ */ s(
|
|
259
259
|
U,
|
|
260
260
|
{
|
|
261
261
|
copy: { title: n.merchant_logo_modal_title },
|
|
@@ -274,18 +274,19 @@ const qe = [
|
|
|
274
274
|
]
|
|
275
275
|
}
|
|
276
276
|
)
|
|
277
|
-
] });
|
|
277
|
+
] }) });
|
|
278
278
|
}, rt = N(at), nt = ({ transaction: t }) => {
|
|
279
|
-
const { onEvent: o } = v(), { updateTransaction: i } =
|
|
279
|
+
const { onEvent: o } = v(), { updateTransaction: i } = O(), { setShouldDisableDrawerScroll: a } = V(), { common: r, transactions: n } = I(), l = F(), [c, u] = _.useState(!1), d = t.is_hidden, p = async () => {
|
|
280
280
|
await i({ ...t, is_hidden: !t.is_hidden }), o(
|
|
281
281
|
d ? h.ON_TRANSACTION_UNHIDDEN : h.ON_TRANSACTION_HIDDEN
|
|
282
282
|
);
|
|
283
|
-
}, m =
|
|
284
|
-
return /* @__PURE__ */
|
|
285
|
-
|
|
286
|
-
|
|
283
|
+
}, m = l.palette.mode === "dark" ? "grey.800" : "grey.100";
|
|
284
|
+
return /* @__PURE__ */ e(_.Fragment, { children: t && /* @__PURE__ */ s(L, { className: "mx-txn-hide-transaction", disableGutters: !0, disablePadding: !0, children: [
|
|
285
|
+
/* @__PURE__ */ s(
|
|
286
|
+
G,
|
|
287
287
|
{
|
|
288
288
|
"aria-checked": d,
|
|
289
|
+
"aria-labelledby": "hide-transaction-text",
|
|
289
290
|
onClick: () => {
|
|
290
291
|
o(
|
|
291
292
|
d ? h.ON_TRANSACTION_UNHIDE_CLICK : h.ON_TRANSACTION_HIDE_CLICK
|
|
@@ -298,26 +299,27 @@ const qe = [
|
|
|
298
299
|
},
|
|
299
300
|
role: "switch",
|
|
300
301
|
children: [
|
|
301
|
-
/* @__PURE__ */ e(
|
|
302
|
+
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(P, { sx: { bgcolor: m }, variant: "rounded", children: d ? /* @__PURE__ */ e(A, { name: "visibility_off", sx: { color: "text.primary" } }) : /* @__PURE__ */ e(A, { name: "visibility", sx: { color: "text.primary" } }) }) }),
|
|
302
303
|
/* @__PURE__ */ e(
|
|
303
|
-
|
|
304
|
+
w,
|
|
304
305
|
{
|
|
306
|
+
id: "hide-transaction-text",
|
|
305
307
|
primary: d ? n.hide_trnx_subtitle_unhide_trnx : n.hide_trnx_subtitle_hide_trnx,
|
|
306
308
|
secondary: d ? n.hide_trnx_desc_unhiding : n.hide_trnx_desc_hiding
|
|
307
309
|
}
|
|
308
310
|
),
|
|
309
|
-
/* @__PURE__ */ e(
|
|
311
|
+
/* @__PURE__ */ e(K, { "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
310
312
|
Xe,
|
|
311
313
|
{
|
|
312
314
|
checked: d,
|
|
313
|
-
|
|
314
|
-
|
|
315
|
+
inputProps: { tabIndex: -1 },
|
|
316
|
+
sx: { pointerEvents: "none" },
|
|
315
317
|
tabIndex: -1
|
|
316
318
|
}
|
|
317
319
|
) })
|
|
318
320
|
]
|
|
319
321
|
}
|
|
320
|
-
)
|
|
322
|
+
),
|
|
321
323
|
/* @__PURE__ */ e(
|
|
322
324
|
U,
|
|
323
325
|
{
|
|
@@ -337,28 +339,28 @@ const qe = [
|
|
|
337
339
|
children: /* @__PURE__ */ e(T, { truncate: !1, variant: "Paragraph", children: d ? n.hide_trnx_desc_unhiding : n.hide_trnx_desc_hiding })
|
|
338
340
|
}
|
|
339
341
|
)
|
|
340
|
-
] });
|
|
342
|
+
] }) });
|
|
341
343
|
}, ot = N(nt), Ae = ({ transaction: t }) => {
|
|
342
|
-
const { amount: o, description: i, isIncome: a, merchant_guid: r, payee: n, top_level_category_guid:
|
|
343
|
-
return /* @__PURE__ */
|
|
344
|
+
const { amount: o, description: i, isIncome: a, merchant_guid: r, payee: n, top_level_category_guid: l } = t;
|
|
345
|
+
return /* @__PURE__ */ s(f, { className: "mx-txn-amount-header", direction: "row", gap: 12, px: 16, py: 24, children: [
|
|
344
346
|
/* @__PURE__ */ e(
|
|
345
347
|
ye,
|
|
346
348
|
{
|
|
347
|
-
categoryGuid:
|
|
349
|
+
categoryGuid: l || "",
|
|
348
350
|
merchantGuid: r || "",
|
|
349
351
|
size: 64
|
|
350
352
|
}
|
|
351
353
|
),
|
|
352
|
-
/* @__PURE__ */
|
|
354
|
+
/* @__PURE__ */ s(f, { overflow: "hidden'", children: [
|
|
353
355
|
/* @__PURE__ */ e(T, { bold: !0, mb: 4, truncate: !0, variant: "Body", children: i || n }),
|
|
354
|
-
/* @__PURE__ */
|
|
356
|
+
/* @__PURE__ */ s(X, { color: a ? "success.main" : "text.primary", truncate: !0, variant: "H1", children: [
|
|
355
357
|
a ? "+" : "",
|
|
356
|
-
|
|
358
|
+
se(o, "0,0.00")
|
|
357
359
|
] })
|
|
358
360
|
] })
|
|
359
361
|
] });
|
|
360
362
|
}, it = ({ transaction: t }) => {
|
|
361
|
-
const { onEvent: o } = v(), { updateTransaction: i } =
|
|
363
|
+
const { onEvent: o } = v(), { updateTransaction: i } = O(), { updateManualTransaction: a } = V(), { common: r, transactions: n } = I(), l = F(), [c, u] = _.useState(!1), [d, p] = _.useState("");
|
|
362
364
|
_.useEffect(() => {
|
|
363
365
|
c && p(t.memo ? t.memo : "");
|
|
364
366
|
}, [c]);
|
|
@@ -367,19 +369,19 @@ const qe = [
|
|
|
367
369
|
a({ ...t, memo: d }), u(!1);
|
|
368
370
|
return;
|
|
369
371
|
}
|
|
370
|
-
await i({ ...t, memo: d }), o(
|
|
371
|
-
}, g =
|
|
372
|
-
return /* @__PURE__ */
|
|
373
|
-
/* @__PURE__ */
|
|
374
|
-
|
|
372
|
+
await i({ ...t, memo: d }), o(k.TRANSACTION_DETAILS_CLICK_MEMO, { transaction_guid: t.guid }), u(!1);
|
|
373
|
+
}, g = l.palette.mode === "dark" ? "grey.800" : "grey.100";
|
|
374
|
+
return /* @__PURE__ */ s(L, { className: "mx-txn-memo-action", disableGutters: !0, disablePadding: !0, children: [
|
|
375
|
+
/* @__PURE__ */ s(
|
|
376
|
+
G,
|
|
375
377
|
{
|
|
376
378
|
onClick: () => {
|
|
377
379
|
o(h.ON_TRANSACTION_MEMO_CLICK), u(!0);
|
|
378
380
|
},
|
|
379
381
|
children: [
|
|
380
|
-
/* @__PURE__ */ e(
|
|
382
|
+
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(P, { sx: { bgcolor: g }, variant: "rounded", children: /* @__PURE__ */ e(A, { name: "article", sx: { color: "text.primary" } }) }) }),
|
|
381
383
|
/* @__PURE__ */ e(
|
|
382
|
-
|
|
384
|
+
w,
|
|
383
385
|
{
|
|
384
386
|
primary: n.memo_title,
|
|
385
387
|
primaryTypographyProps: { variant: "XSmall" },
|
|
@@ -394,11 +396,11 @@ const qe = [
|
|
|
394
396
|
)
|
|
395
397
|
}
|
|
396
398
|
),
|
|
397
|
-
/* @__PURE__ */ e(
|
|
399
|
+
/* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(A, { name: "chevron_right", sx: { color: "text.primary" } }) })
|
|
398
400
|
]
|
|
399
401
|
}
|
|
400
|
-
)
|
|
401
|
-
/* @__PURE__ */
|
|
402
|
+
),
|
|
403
|
+
/* @__PURE__ */ s(
|
|
402
404
|
ie,
|
|
403
405
|
{
|
|
404
406
|
ariaLabelClose: r.close_aria,
|
|
@@ -426,19 +428,19 @@ const qe = [
|
|
|
426
428
|
}
|
|
427
429
|
)
|
|
428
430
|
] });
|
|
429
|
-
},
|
|
431
|
+
}, st = N(it), lt = ({
|
|
430
432
|
index: t,
|
|
431
433
|
onDeleteRow: o,
|
|
432
434
|
onCategoryChanged: i,
|
|
433
435
|
onUpdateAmount: a,
|
|
434
436
|
split: r
|
|
435
437
|
}) => {
|
|
436
|
-
const { onEvent: n } = v(), { transactions:
|
|
438
|
+
const { onEvent: n } = v(), { transactions: l } = I(), [c, u] = _.useState(`${r.amount}`), [d, p] = _.useState(!1), m = t === 0, g = (y) => {
|
|
437
439
|
isNaN(Number(y)) || (u(y), a(t, Number(y)));
|
|
438
440
|
};
|
|
439
|
-
return /* @__PURE__ */
|
|
440
|
-
/* @__PURE__ */
|
|
441
|
-
/* @__PURE__ */ e(de, { item: !0, xs: 7, children: /* @__PURE__ */
|
|
441
|
+
return /* @__PURE__ */ s(B, { bgcolor: "background.paper", className: "mx-txn-split-manager-row", pb: 4, px: 8, children: [
|
|
442
|
+
/* @__PURE__ */ s(de, { alignItems: m ? "center" : "start", container: !0, children: [
|
|
443
|
+
/* @__PURE__ */ e(de, { item: !0, xs: 7, children: /* @__PURE__ */ s(f, { alignItems: "start", children: [
|
|
442
444
|
/* @__PURE__ */ e(
|
|
443
445
|
oe,
|
|
444
446
|
{
|
|
@@ -449,18 +451,18 @@ const qe = [
|
|
|
449
451
|
children: r.category
|
|
450
452
|
}
|
|
451
453
|
),
|
|
452
|
-
/* @__PURE__ */ e(
|
|
454
|
+
/* @__PURE__ */ e(B, { children: !r.category_guid && /* @__PURE__ */ s(f, { color: "error.main", direction: "row", gap: 8, p: 12, children: [
|
|
453
455
|
/* @__PURE__ */ e("span", { "aria-label": "error", role: "img", children: /* @__PURE__ */ e(ne, { sx: { fontSize: 15 } }) }),
|
|
454
|
-
/* @__PURE__ */ e(T, { variant: "Small", children:
|
|
456
|
+
/* @__PURE__ */ e(T, { variant: "Small", children: l.split_transaction_errors_select_category })
|
|
455
457
|
] }) })
|
|
456
458
|
] }) }),
|
|
457
|
-
/* @__PURE__ */ e(de, { item: !0, xs: 5, children: m ? /* @__PURE__ */ e("div", { className: "mx-txn-split-manager-row-top-container", children: /* @__PURE__ */ e(T, { children:
|
|
458
|
-
/* @__PURE__ */
|
|
459
|
+
/* @__PURE__ */ e(de, { item: !0, xs: 5, children: m ? /* @__PURE__ */ e("div", { className: "mx-txn-split-manager-row-top-container", children: /* @__PURE__ */ e(T, { children: se(r.amount, "0,0.00") }) }) : /* @__PURE__ */ s(f, { alignItems: "start", children: [
|
|
460
|
+
/* @__PURE__ */ s(f, { alignItems: "start", direction: "row", gap: 8, children: [
|
|
459
461
|
/* @__PURE__ */ e(
|
|
460
462
|
Ye,
|
|
461
463
|
{
|
|
462
464
|
amount: c,
|
|
463
|
-
ariaLabel:
|
|
465
|
+
ariaLabel: l.split_transaction_edit_split_amount,
|
|
464
466
|
minAmount: 0.01,
|
|
465
467
|
name: "split-amount-input",
|
|
466
468
|
setAmount: g,
|
|
@@ -473,7 +475,7 @@ const qe = [
|
|
|
473
475
|
/* @__PURE__ */ e(
|
|
474
476
|
J,
|
|
475
477
|
{
|
|
476
|
-
"aria-label":
|
|
478
|
+
"aria-label": l.split_transaction_delete_split_btn,
|
|
477
479
|
color: "secondary",
|
|
478
480
|
onClick: () => {
|
|
479
481
|
n(h.ON_TRANSACTION_SPLIT_DELETE_CLICK), o(t);
|
|
@@ -483,9 +485,9 @@ const qe = [
|
|
|
483
485
|
}
|
|
484
486
|
)
|
|
485
487
|
] }),
|
|
486
|
-
!c && /* @__PURE__ */
|
|
488
|
+
!c && /* @__PURE__ */ s(f, { color: "error.main", direction: "row", gap: 8, py: 12, children: [
|
|
487
489
|
/* @__PURE__ */ e("span", { "aria-label": "error", role: "img", children: /* @__PURE__ */ e(ne, { sx: { fontSize: 15 } }) }),
|
|
488
|
-
/* @__PURE__ */ e(T, { variant: "Small", children:
|
|
490
|
+
/* @__PURE__ */ e(T, { variant: "Small", children: l.split_transaction_errors_enter_an_amount })
|
|
489
491
|
] })
|
|
490
492
|
] }) })
|
|
491
493
|
] }),
|
|
@@ -498,11 +500,11 @@ const qe = [
|
|
|
498
500
|
i(t, y), p(!1);
|
|
499
501
|
},
|
|
500
502
|
showDrawer: d,
|
|
501
|
-
title:
|
|
503
|
+
title: l.actions_select_a_category
|
|
502
504
|
}
|
|
503
505
|
)
|
|
504
506
|
] });
|
|
505
|
-
}, ct = N(
|
|
507
|
+
}, ct = N(lt), dt = ({
|
|
506
508
|
onAddSplit: t,
|
|
507
509
|
onCategoryChanged: o,
|
|
508
510
|
onDeleteSplit: i,
|
|
@@ -510,19 +512,19 @@ const qe = [
|
|
|
510
512
|
splits: r,
|
|
511
513
|
transaction: n
|
|
512
514
|
}) => {
|
|
513
|
-
const { transactions:
|
|
515
|
+
const { transactions: l } = I(), { onEvent: c } = v(), [u, d] = _.useState(""), { announce: p, ariaLive: m } = pe();
|
|
514
516
|
return _.useEffect(() => {
|
|
515
517
|
if (r.length <= 1)
|
|
516
|
-
d(
|
|
518
|
+
d(l.split_transaction_errors_min_splits), p(l.split_transaction_errors_min_splits);
|
|
517
519
|
else if (r[0].amount < 0) {
|
|
518
520
|
const g = W(
|
|
519
|
-
|
|
520
|
-
|
|
521
|
+
l.split_transaction_errors_totals_must_equal_amount,
|
|
522
|
+
se(n.amount, "0,0.00")
|
|
521
523
|
);
|
|
522
524
|
d(g), p(g);
|
|
523
525
|
} else
|
|
524
526
|
d(""), p("");
|
|
525
|
-
}, [r]), /* @__PURE__ */
|
|
527
|
+
}, [r]), /* @__PURE__ */ s(B, { className: "mx-txn-split-manager", children: [
|
|
526
528
|
m,
|
|
527
529
|
r.map((g, y) => /* @__PURE__ */ e(
|
|
528
530
|
ct,
|
|
@@ -535,23 +537,23 @@ const qe = [
|
|
|
535
537
|
},
|
|
536
538
|
y
|
|
537
539
|
)),
|
|
538
|
-
u && /* @__PURE__ */
|
|
540
|
+
u && /* @__PURE__ */ s(f, { color: "error.main", direction: "row", gap: 8, p: 16, children: [
|
|
539
541
|
/* @__PURE__ */ e("span", { "aria-label": "error", role: "img", children: /* @__PURE__ */ e(ne, { sx: { fontSize: 15 } }) }),
|
|
540
542
|
/* @__PURE__ */ e(T, { variant: "Small", children: u })
|
|
541
543
|
] }),
|
|
542
|
-
/* @__PURE__ */ e(
|
|
544
|
+
/* @__PURE__ */ e(B, { p: 16, children: /* @__PURE__ */ e(
|
|
543
545
|
oe,
|
|
544
546
|
{
|
|
545
|
-
"aria-label":
|
|
547
|
+
"aria-label": l.split_transaction_add_split_btn,
|
|
546
548
|
onClick: () => {
|
|
547
549
|
c(h.ON_TRANSACTION_SPLIT_ADD_CLICK), t();
|
|
548
550
|
},
|
|
549
|
-
children:
|
|
551
|
+
children: l.split_transaction_add_split_btn
|
|
550
552
|
}
|
|
551
553
|
) })
|
|
552
554
|
] });
|
|
553
555
|
}, _t = N(dt), mt = ({ transaction: t }) => {
|
|
554
|
-
const { onEvent: o } = v(), { announce: i, ariaLive: a } = pe(), { splitTransaction: r, unSplitTransaction: n } =
|
|
556
|
+
const { onEvent: o } = v(), { announce: i, ariaLive: a } = pe(), { splitTransaction: r, unSplitTransaction: n } = O(), { common: l, transactions: c } = I(), { setShouldDisableDrawerScroll: u } = V(), { categories: d } = Ce(), p = F(), m = {
|
|
555
557
|
...t,
|
|
556
558
|
amount: t.amount - 1,
|
|
557
559
|
guid: "",
|
|
@@ -566,7 +568,7 @@ const qe = [
|
|
|
566
568
|
has_been_split: !1,
|
|
567
569
|
parent_guid: t.guid,
|
|
568
570
|
top_level_category_guid: void 0
|
|
569
|
-
}, [y,
|
|
571
|
+
}, [y, E] = _.useState(!1), [R, H] = _.useState(!1), [S, C] = _.useState([]), D = () => {
|
|
570
572
|
const b = [...S];
|
|
571
573
|
b.push({ ...g }), b[0].amount -= 1, C(b), i(
|
|
572
574
|
W(
|
|
@@ -576,24 +578,24 @@ const qe = [
|
|
|
576
578
|
);
|
|
577
579
|
}, z = (b) => {
|
|
578
580
|
if (b > 0) {
|
|
579
|
-
const
|
|
580
|
-
x.splice(b, 1), x[0].amount +=
|
|
581
|
+
const $ = S[b], x = [...S];
|
|
582
|
+
x.splice(b, 1), x[0].amount += $.amount, C(x), i(
|
|
581
583
|
W(c.split_transaction_delete_split_announcement, b + 1)
|
|
582
584
|
);
|
|
583
585
|
}
|
|
584
|
-
}, Ne = (b,
|
|
586
|
+
}, Ne = (b, $) => {
|
|
585
587
|
const x = [...S];
|
|
586
|
-
x[b].amount =
|
|
587
|
-
(Y,
|
|
588
|
+
x[b].amount = $, x[0].amount = t.amount - x.reduce(
|
|
589
|
+
(Y, le, Re) => Y + (Re !== 0 ? le.amount : 0),
|
|
588
590
|
0
|
|
589
591
|
), C(x);
|
|
590
|
-
}, Ie = (b,
|
|
591
|
-
const x = [...S], Y = d.find((
|
|
592
|
+
}, Ie = (b, $) => {
|
|
593
|
+
const x = [...S], Y = d.find((le) => le.guid === $);
|
|
592
594
|
Y && (x[b] = {
|
|
593
595
|
...x[b],
|
|
594
|
-
category_guid:
|
|
596
|
+
category_guid: $,
|
|
595
597
|
category: Y.name,
|
|
596
|
-
top_level_category_guid: Y.parent_guid ||
|
|
598
|
+
top_level_category_guid: Y.parent_guid || $
|
|
597
599
|
}, C(x), i(
|
|
598
600
|
W(
|
|
599
601
|
c.split_transaction_select_category_announcement,
|
|
@@ -606,45 +608,45 @@ const qe = [
|
|
|
606
608
|
H(!0);
|
|
607
609
|
return;
|
|
608
610
|
}
|
|
609
|
-
C([{ ...m }, { ...g }]), o(
|
|
611
|
+
C([{ ...m }, { ...g }]), o(k.TRANSACTION_DETAILS_CLICK_SPLIT, {
|
|
610
612
|
transaction_guid: t.guid
|
|
611
|
-
}),
|
|
612
|
-
}, Oe = async () => {
|
|
613
|
-
o(h.ON_TRANSACTION_SPLIT_SAVE_CLICK), await r({ ...t, has_been_split: !0 }, S), O(!1);
|
|
613
|
+
}), E(!0);
|
|
614
614
|
}, Ee = async () => {
|
|
615
|
-
o(h.
|
|
615
|
+
o(h.ON_TRANSACTION_SPLIT_SAVE_CLICK), await r({ ...t, has_been_split: !0 }, S), E(!1);
|
|
616
|
+
}, Oe = async () => {
|
|
617
|
+
o(h.ON_TRANSACTION_SPLIT_CANCEL_CLICK), C([{ ...m }, { ...g }]), E(!1);
|
|
616
618
|
}, De = async () => {
|
|
617
|
-
o(
|
|
619
|
+
o(k.TRANSACTION_DETAILS_CLICK_UNSPLIT, {
|
|
618
620
|
transaction_guid: t.guid
|
|
619
621
|
});
|
|
620
622
|
const b = t.parent_guid ?? t.guid;
|
|
621
623
|
await n(b);
|
|
622
624
|
}, Le = _.useMemo(() => {
|
|
623
|
-
const b = S.some((x) => !x.category_guid),
|
|
624
|
-
return b ||
|
|
625
|
+
const b = S.some((x) => !x.category_guid), $ = S.some((x) => x.amount <= 0);
|
|
626
|
+
return b || $;
|
|
625
627
|
}, [S]), we = p.palette.mode === "dark" ? "grey.800" : "grey.100";
|
|
626
|
-
return /* @__PURE__ */
|
|
627
|
-
|
|
628
|
-
/* @__PURE__ */ e(
|
|
628
|
+
return /* @__PURE__ */ e(_.Fragment, { children: t && /* @__PURE__ */ s(L, { disableGutters: !0, disablePadding: !0, children: [
|
|
629
|
+
/* @__PURE__ */ s(G, { onClick: ve, children: [
|
|
630
|
+
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(P, { sx: { bgcolor: we }, variant: "rounded", children: /* @__PURE__ */ e(A, { name: "call_split", sx: { color: "text.primary" } }) }) }),
|
|
629
631
|
/* @__PURE__ */ e(
|
|
630
|
-
|
|
632
|
+
w,
|
|
631
633
|
{
|
|
632
634
|
primary: t.has_been_split || t.parent_guid ? c.split_transaction_unsplit_title : c.split_transaction_title,
|
|
633
635
|
secondary: t.has_been_split || t.parent_guid ? c.split_transaction_unsplit_subtitle : c.split_transaction_desc
|
|
634
636
|
}
|
|
635
637
|
),
|
|
636
|
-
/* @__PURE__ */ e(
|
|
637
|
-
] })
|
|
638
|
-
/* @__PURE__ */
|
|
638
|
+
/* @__PURE__ */ e(K, { children: t.has_been_split || t.parent_guid ? /* @__PURE__ */ e(A, { name: "delete" }) : /* @__PURE__ */ e(A, { name: "chevron_right", sx: { color: "text.primary" } }) })
|
|
639
|
+
] }),
|
|
640
|
+
/* @__PURE__ */ s(
|
|
639
641
|
ie,
|
|
640
642
|
{
|
|
641
|
-
ariaLabelClose:
|
|
643
|
+
ariaLabelClose: l.close_aria,
|
|
642
644
|
isOpen: y,
|
|
643
645
|
isPrimaryDisabled: Le,
|
|
644
|
-
onClose:
|
|
645
|
-
onPrimaryAction:
|
|
646
|
-
primaryText:
|
|
647
|
-
secondaryText:
|
|
646
|
+
onClose: Oe,
|
|
647
|
+
onPrimaryAction: Ee,
|
|
648
|
+
primaryText: l.save_button,
|
|
649
|
+
secondaryText: l.cancel_button,
|
|
648
650
|
title: c.split_transaction_title,
|
|
649
651
|
children: [
|
|
650
652
|
a,
|
|
@@ -652,7 +654,7 @@ const qe = [
|
|
|
652
654
|
/* @__PURE__ */ e(
|
|
653
655
|
_t,
|
|
654
656
|
{
|
|
655
|
-
onAddSplit:
|
|
657
|
+
onAddSplit: D,
|
|
656
658
|
onCategoryChanged: Ie,
|
|
657
659
|
onDeleteSplit: z,
|
|
658
660
|
onUpdateAmount: Ne,
|
|
@@ -667,7 +669,7 @@ const qe = [
|
|
|
667
669
|
U,
|
|
668
670
|
{
|
|
669
671
|
copy: { title: c.split_transaction_unsplit_title },
|
|
670
|
-
isOpen:
|
|
672
|
+
isOpen: R,
|
|
671
673
|
onClose: () => {
|
|
672
674
|
u(!1), H(!1);
|
|
673
675
|
},
|
|
@@ -675,17 +677,17 @@ const qe = [
|
|
|
675
677
|
onSecondaryAction: () => {
|
|
676
678
|
o(h.ON_TRANSACTION_UNSPLIT_CANCEL);
|
|
677
679
|
},
|
|
678
|
-
primaryText:
|
|
679
|
-
secondaryText:
|
|
680
|
+
primaryText: l.delete_button,
|
|
681
|
+
secondaryText: l.cancel_button,
|
|
680
682
|
children: /* @__PURE__ */ e(X, { variant: "Paragraph", children: W(
|
|
681
683
|
c.split_transaction_unsplit_description,
|
|
682
684
|
t.description
|
|
683
685
|
) })
|
|
684
686
|
}
|
|
685
687
|
)
|
|
686
|
-
] });
|
|
688
|
+
] }) });
|
|
687
689
|
}, ut = N(mt), pt = () => {
|
|
688
|
-
const t = Se(), { onEvent: o } = v(), { addTag: i } =
|
|
690
|
+
const t = Se(), { onEvent: o } = v(), { addTag: i } = O(), { transactions: a } = I(), [r, n] = _.useState(!1), [l, c] = _.useState(""), [u, d] = _.useState(""), p = _.useRef(null);
|
|
689
691
|
_.useEffect(() => {
|
|
690
692
|
r && p?.current?.focus();
|
|
691
693
|
}, [r]);
|
|
@@ -694,12 +696,12 @@ const qe = [
|
|
|
694
696
|
r ? h.ON_TRANSACTION_TAGS_TAG_ADD_CANCEL_CLICK : h.ON_TRANSACTION_TAGS_TAG_ADD_CLICK
|
|
695
697
|
), r || c(""), n(!r);
|
|
696
698
|
}, g = async () => {
|
|
697
|
-
o(h.ON_TRANSACTION_TAGS_TAG_ADDED), await i(
|
|
699
|
+
o(h.ON_TRANSACTION_TAGS_TAG_ADDED), await i(l), n(!1);
|
|
698
700
|
};
|
|
699
701
|
return _.useEffect(() => {
|
|
700
|
-
d(
|
|
701
|
-
}, [
|
|
702
|
-
/* @__PURE__ */
|
|
702
|
+
d(l.length > 40 ? a.tags_error_name_must_be_40_chars : "");
|
|
703
|
+
}, [l]), /* @__PURE__ */ s(B, { className: "mx-txn-tag-manager-header", children: [
|
|
704
|
+
/* @__PURE__ */ s(
|
|
703
705
|
f,
|
|
704
706
|
{
|
|
705
707
|
alignItems: "center",
|
|
@@ -722,7 +724,7 @@ const qe = [
|
|
|
722
724
|
]
|
|
723
725
|
}
|
|
724
726
|
),
|
|
725
|
-
/* @__PURE__ */
|
|
727
|
+
/* @__PURE__ */ s(
|
|
726
728
|
U,
|
|
727
729
|
{
|
|
728
730
|
copy: { title: a.tags_add_tag_btn },
|
|
@@ -739,7 +741,7 @@ const qe = [
|
|
|
739
741
|
onChange: (y) => c(y.target.value),
|
|
740
742
|
placeholder: a.tags_placeholder,
|
|
741
743
|
sx: { width: "100%" },
|
|
742
|
-
value:
|
|
744
|
+
value: l
|
|
743
745
|
}
|
|
744
746
|
),
|
|
745
747
|
/* @__PURE__ */ e(X, { id: "add-tag-error", sx: { color: "error.main" }, variant: "ParagraphSmall", children: u })
|
|
@@ -756,7 +758,7 @@ const qe = [
|
|
|
756
758
|
children: /* @__PURE__ */ e(ne, {})
|
|
757
759
|
}
|
|
758
760
|
);
|
|
759
|
-
return /* @__PURE__ */ e(
|
|
761
|
+
return /* @__PURE__ */ e(B, { className: "mx-txn-tag-manager-search", px: 24, py: 16, children: /* @__PURE__ */ e(
|
|
760
762
|
ue,
|
|
761
763
|
{
|
|
762
764
|
InputProps: {
|
|
@@ -772,26 +774,26 @@ const qe = [
|
|
|
772
774
|
}
|
|
773
775
|
) });
|
|
774
776
|
}, yt = N(ht), Tt = ({ onTagChecked: t, selectedTags: o, tag: i }) => {
|
|
775
|
-
const { onEvent: a } = v(), { removeTag: r, updateTag: n } =
|
|
777
|
+
const { onEvent: a } = v(), { removeTag: r, updateTag: n } = O(), { common: l, transactions: c } = I(), [u, d] = _.useState(!1), [p, m] = _.useState(!1), [g, y] = _.useState(""), [E, R] = _.useState(""), H = async () => {
|
|
776
778
|
a(h.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), i && await n({ ...i, name: g }), d(!1);
|
|
777
779
|
}, S = async () => {
|
|
778
780
|
a(h.ON_TRANSACTION_TAGS_TAG_DELETED), await r(i.guid), m(!1);
|
|
779
781
|
};
|
|
780
782
|
_.useEffect(() => {
|
|
781
|
-
|
|
783
|
+
R(g.length > 40 ? c.tags_error_name_must_be_40_chars : "");
|
|
782
784
|
}, [g]);
|
|
783
785
|
const C = () => {
|
|
784
786
|
a(h.ON_TRANSACTION_TAGS_TAG_EDIT_CLICK), y(i.name), d(!0);
|
|
785
|
-
},
|
|
787
|
+
}, D = () => {
|
|
786
788
|
a(h.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK), m(!0);
|
|
787
789
|
};
|
|
788
|
-
return /* @__PURE__ */
|
|
789
|
-
|
|
790
|
+
return /* @__PURE__ */ s(
|
|
791
|
+
L,
|
|
790
792
|
{
|
|
791
793
|
className: "mx-txn-transaction-manager-row",
|
|
792
794
|
disableGutters: !0,
|
|
793
795
|
disablePadding: !0,
|
|
794
|
-
secondaryAction: !i.is_default_tag && /* @__PURE__ */
|
|
796
|
+
secondaryAction: !i.is_default_tag && /* @__PURE__ */ s(f, { direction: "row", children: [
|
|
795
797
|
/* @__PURE__ */ e(
|
|
796
798
|
J,
|
|
797
799
|
{
|
|
@@ -806,25 +808,33 @@ const qe = [
|
|
|
806
808
|
{
|
|
807
809
|
"aria-label": `Delete ${i.name} tag`,
|
|
808
810
|
color: "secondary",
|
|
809
|
-
onClick:
|
|
811
|
+
onClick: D,
|
|
810
812
|
children: /* @__PURE__ */ e(re, { color: "secondary" })
|
|
811
813
|
}
|
|
812
814
|
)
|
|
813
815
|
] }),
|
|
814
816
|
children: [
|
|
815
|
-
/* @__PURE__ */
|
|
816
|
-
|
|
817
|
+
/* @__PURE__ */ s(
|
|
818
|
+
G,
|
|
817
819
|
{
|
|
818
820
|
"aria-checked": o.includes(i.guid),
|
|
819
821
|
onClick: () => t(i.guid),
|
|
820
822
|
role: "checkbox",
|
|
821
823
|
children: [
|
|
822
|
-
/* @__PURE__ */ e(
|
|
823
|
-
|
|
824
|
+
/* @__PURE__ */ e(K, { sx: { ml: 0 }, children: /* @__PURE__ */ e(
|
|
825
|
+
We,
|
|
826
|
+
{
|
|
827
|
+
"aria-hidden": !0,
|
|
828
|
+
checked: o.includes(i.guid),
|
|
829
|
+
edge: "start",
|
|
830
|
+
tabIndex: -1
|
|
831
|
+
}
|
|
832
|
+
) }),
|
|
833
|
+
/* @__PURE__ */ e(w, { children: i.name })
|
|
824
834
|
]
|
|
825
835
|
}
|
|
826
836
|
),
|
|
827
|
-
/* @__PURE__ */
|
|
837
|
+
/* @__PURE__ */ s(
|
|
828
838
|
U,
|
|
829
839
|
{
|
|
830
840
|
copy: { title: "Update tag name" },
|
|
@@ -836,7 +846,7 @@ const qe = [
|
|
|
836
846
|
/* @__PURE__ */ e(
|
|
837
847
|
ue,
|
|
838
848
|
{
|
|
839
|
-
"aria-describedby":
|
|
849
|
+
"aria-describedby": E ? "update-tag-error" : void 0,
|
|
840
850
|
"aria-label": c.tags_update_the_tag_name,
|
|
841
851
|
name: "update-tag",
|
|
842
852
|
onChange: (z) => y(z.target.value),
|
|
@@ -845,7 +855,7 @@ const qe = [
|
|
|
845
855
|
value: g
|
|
846
856
|
}
|
|
847
857
|
),
|
|
848
|
-
/* @__PURE__ */ e(X, { id: "update-tag-error", sx: { color: "error.main" }, variant: "ParagraphSmall", children:
|
|
858
|
+
/* @__PURE__ */ e(X, { id: "update-tag-error", sx: { color: "error.main" }, variant: "ParagraphSmall", children: E })
|
|
849
859
|
]
|
|
850
860
|
}
|
|
851
861
|
),
|
|
@@ -857,8 +867,8 @@ const qe = [
|
|
|
857
867
|
onClose: () => m(!1),
|
|
858
868
|
onPrimaryAction: S,
|
|
859
869
|
onSecondaryAction: () => a(h.ON_TRANSACTION_TAGS_TAG_DELETE_CANCEL_CLICK),
|
|
860
|
-
primaryText:
|
|
861
|
-
secondaryText:
|
|
870
|
+
primaryText: l.delete_button,
|
|
871
|
+
secondaryText: l.cancel_button,
|
|
862
872
|
children: /* @__PURE__ */ e(T, { truncate: !1, children: c.tags_deleting_this_tag_will_remove_it })
|
|
863
873
|
}
|
|
864
874
|
)
|
|
@@ -866,93 +876,93 @@ const qe = [
|
|
|
866
876
|
}
|
|
867
877
|
);
|
|
868
878
|
}, Ct = N(Tt), St = ({ selectedTags: t, onTagChecked: o }) => {
|
|
869
|
-
const { tags: i } =
|
|
870
|
-
(
|
|
879
|
+
const { tags: i } = O(), [a, r] = _.useState(""), n = i.filter(
|
|
880
|
+
(l) => l.name.toLowerCase().includes(a.toLowerCase())
|
|
871
881
|
);
|
|
872
|
-
return /* @__PURE__ */
|
|
882
|
+
return /* @__PURE__ */ s("div", { className: "mx-txn-tag-manager", children: [
|
|
873
883
|
/* @__PURE__ */ e(
|
|
874
884
|
yt,
|
|
875
885
|
{
|
|
876
|
-
onSearchValueChanged: (
|
|
886
|
+
onSearchValueChanged: (l) => r(l),
|
|
877
887
|
searchValue: a
|
|
878
888
|
}
|
|
879
889
|
),
|
|
880
890
|
/* @__PURE__ */ e(gt, {}),
|
|
881
|
-
/* @__PURE__ */ e(Z, { sx: { boxShadow: "none" }, children: /* @__PURE__ */ e(ae, { children: n.map((
|
|
882
|
-
/* @__PURE__ */ e(Ct, { onTagChecked: o, selectedTags: t, tag:
|
|
891
|
+
/* @__PURE__ */ e(Z, { sx: { boxShadow: "none" }, children: /* @__PURE__ */ e(ae, { children: n.map((l) => /* @__PURE__ */ s(_.Fragment, { children: [
|
|
892
|
+
/* @__PURE__ */ e(Ct, { onTagChecked: o, selectedTags: t, tag: l }),
|
|
883
893
|
/* @__PURE__ */ e(te, { sx: { ml: 24 } })
|
|
884
|
-
] },
|
|
894
|
+
] }, l.guid)) }) })
|
|
885
895
|
] });
|
|
886
896
|
}, bt = N(St), xt = ({ transaction: t }) => {
|
|
887
|
-
const { onEvent: o } = v(), { tags: i, updateTaggings: a, updateTransaction: r } =
|
|
897
|
+
const { onEvent: o } = v(), { tags: i, updateTaggings: a, updateTransaction: r } = O(), { common: n, transactions: l } = I(), { updateManualTransaction: c } = V(), u = F(), [d, p] = _.useState(!1), [m, g] = _.useState(t.tags);
|
|
888
898
|
_.useEffect(() => {
|
|
889
899
|
g(t.tags);
|
|
890
900
|
}, [d, t]);
|
|
891
901
|
const y = (S) => {
|
|
892
|
-
const C = [...m],
|
|
893
|
-
|
|
894
|
-
},
|
|
902
|
+
const C = [...m], D = m.indexOf(S);
|
|
903
|
+
D >= 0 ? C.splice(D, 1) : C.push(S), g(C);
|
|
904
|
+
}, E = async () => {
|
|
895
905
|
if (t.is_manual && !t.guid) {
|
|
896
906
|
c({ ...t, tags: m }), p(!1);
|
|
897
907
|
return;
|
|
898
908
|
}
|
|
899
|
-
await a(m, t.guid), await r({ ...t, tags: m }), o(
|
|
900
|
-
},
|
|
909
|
+
await a(m, t.guid), await r({ ...t, tags: m }), o(k.TRANSACTION_DETAILS_CLICK_TAGS, { transaction_guid: t.guid }), p(!1);
|
|
910
|
+
}, R = _.useMemo(
|
|
901
911
|
() => t.tags.map(
|
|
902
|
-
(S, C,
|
|
912
|
+
(S, C, D) => `${i.find((z) => z.guid === S)?.name}${C < D.length - 1 ? " / " : ""}`
|
|
903
913
|
),
|
|
904
914
|
[i, t]
|
|
905
915
|
), H = u.palette.mode === "dark" ? "grey.800" : "grey.100";
|
|
906
|
-
return /* @__PURE__ */
|
|
907
|
-
/* @__PURE__ */
|
|
908
|
-
|
|
916
|
+
return /* @__PURE__ */ s(L, { disableGutters: !0, disablePadding: !0, children: [
|
|
917
|
+
/* @__PURE__ */ s(
|
|
918
|
+
G,
|
|
909
919
|
{
|
|
910
920
|
onClick: () => {
|
|
911
921
|
o(h.ON_TRANSACTION_TAGS_CLICK), p(!0);
|
|
912
922
|
},
|
|
913
923
|
children: [
|
|
914
|
-
/* @__PURE__ */ e(
|
|
924
|
+
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(P, { sx: { bgcolor: H }, variant: "rounded", children: /* @__PURE__ */ e(A, { name: "local_offer", sx: { color: "text.primary" } }) }) }),
|
|
915
925
|
/* @__PURE__ */ e(
|
|
916
|
-
|
|
926
|
+
w,
|
|
917
927
|
{
|
|
918
|
-
primary:
|
|
928
|
+
primary: l.tags_title,
|
|
919
929
|
primaryTypographyProps: { variant: "XSmall" },
|
|
920
|
-
secondary: /* @__PURE__ */ e(T, { bold: !0, sx: { color: "text.primary" }, variant: "Body", children: t.tags?.length > 0 ?
|
|
930
|
+
secondary: /* @__PURE__ */ e(T, { bold: !0, sx: { color: "text.primary" }, variant: "Body", children: t.tags?.length > 0 ? R : l.tags_desc })
|
|
921
931
|
}
|
|
922
932
|
),
|
|
923
|
-
/* @__PURE__ */ e(
|
|
933
|
+
/* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(A, { name: "chevron_right", sx: { color: "text.primary" } }) })
|
|
924
934
|
]
|
|
925
935
|
}
|
|
926
|
-
)
|
|
936
|
+
),
|
|
927
937
|
/* @__PURE__ */ e(
|
|
928
938
|
ie,
|
|
929
939
|
{
|
|
930
940
|
ariaLabelClose: n.close_aria,
|
|
931
941
|
isOpen: d,
|
|
932
942
|
onClose: () => p(!1),
|
|
933
|
-
onPrimaryAction:
|
|
943
|
+
onPrimaryAction: E,
|
|
934
944
|
primaryText: n.save_button,
|
|
935
945
|
secondaryText: n.cancel_button,
|
|
936
|
-
title:
|
|
946
|
+
title: l.tags_title,
|
|
937
947
|
children: /* @__PURE__ */ e(bt, { onTagChecked: y, selectedTags: m })
|
|
938
948
|
}
|
|
939
949
|
)
|
|
940
950
|
] });
|
|
941
951
|
}, ft = N(xt), At = ({ transaction: t, viewOnly: o = !1 }) => {
|
|
942
|
-
const { updateTransaction: i } =
|
|
952
|
+
const { updateTransaction: i } = O(), { common: a, transactions: r } = I(), { onEvent: n } = v(), { announce: l, ariaLive: c } = pe(), [u, d] = _.useState(!1), [p, m] = _.useState(""), g = _.useRef(null);
|
|
943
953
|
_.useEffect(() => {
|
|
944
954
|
u && (m(t.description), g?.current?.focus());
|
|
945
955
|
}, [u]);
|
|
946
956
|
const y = () => {
|
|
947
957
|
d(!0), n(h.ON_TRANSACTION_DESCRIPTION_EDIT_CLICK), setTimeout(() => document.getElementById("transaction-description-input")?.focus(), 0);
|
|
948
|
-
},
|
|
949
|
-
n(
|
|
958
|
+
}, E = async () => {
|
|
959
|
+
n(k.TRANSACTION_DETAILS_CLICK_DESCRIPTION, {
|
|
950
960
|
transaction_guid: t.guid
|
|
951
|
-
}), await i({ ...t, description: p }), d(!1),
|
|
961
|
+
}), await i({ ...t, description: p }), d(!1), l(`${r.payee_title}: ${p}`), setTimeout(() => document.getElementById("transaction-description-edit-button")?.focus(), 0);
|
|
952
962
|
};
|
|
953
|
-
return /* @__PURE__ */
|
|
963
|
+
return /* @__PURE__ */ s(B, { className: "mx-txn-transaction-description", children: [
|
|
954
964
|
c,
|
|
955
|
-
u ? /* @__PURE__ */
|
|
965
|
+
u ? /* @__PURE__ */ s(Ge, { row: !0, children: [
|
|
956
966
|
/* @__PURE__ */ e(
|
|
957
967
|
Te,
|
|
958
968
|
{
|
|
@@ -961,7 +971,7 @@ const qe = [
|
|
|
961
971
|
inputProps: { maxLength: 140 },
|
|
962
972
|
label: r.payee_title,
|
|
963
973
|
name: r.payee_title,
|
|
964
|
-
onChange: (
|
|
974
|
+
onChange: (R) => m(R.target.value),
|
|
965
975
|
ref: g,
|
|
966
976
|
sx: {
|
|
967
977
|
backgroundColor: "background.paper",
|
|
@@ -976,7 +986,7 @@ const qe = [
|
|
|
976
986
|
oe,
|
|
977
987
|
{
|
|
978
988
|
disabled: !p,
|
|
979
|
-
onClick:
|
|
989
|
+
onClick: E,
|
|
980
990
|
sx: {
|
|
981
991
|
borderTopLeftRadius: 0,
|
|
982
992
|
borderBottomLeftRadius: 0
|
|
@@ -985,7 +995,7 @@ const qe = [
|
|
|
985
995
|
children: a.save_button
|
|
986
996
|
}
|
|
987
997
|
)
|
|
988
|
-
] }) : /* @__PURE__ */
|
|
998
|
+
] }) : /* @__PURE__ */ s(f, { alignItems: "center", direction: "row", gap: 4, sx: { minHeight: 44 }, children: [
|
|
989
999
|
/* @__PURE__ */ e(T, { bold: !0, children: t.description }),
|
|
990
1000
|
!o && /* @__PURE__ */ e(
|
|
991
1001
|
J,
|
|
@@ -1000,8 +1010,8 @@ const qe = [
|
|
|
1000
1010
|
] })
|
|
1001
1011
|
] });
|
|
1002
1012
|
}, Nt = N(At), It = ({ transaction: t }) => {
|
|
1003
|
-
const { updateTransaction: o } =
|
|
1004
|
-
a(
|
|
1013
|
+
const { updateTransaction: o } = O(), { transactions: i } = I(), { onEvent: a } = v(), r = Se(), n = async () => {
|
|
1014
|
+
a(k.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: t.guid }), await o({ ...t, is_flagged: !t.is_flagged });
|
|
1005
1015
|
};
|
|
1006
1016
|
return /* @__PURE__ */ e("div", { className: "mx-txn-transaction-flag", children: /* @__PURE__ */ e(
|
|
1007
1017
|
Be,
|
|
@@ -1031,11 +1041,11 @@ const qe = [
|
|
|
1031
1041
|
children: /* @__PURE__ */ e(Ve, { color: "inherit" })
|
|
1032
1042
|
}
|
|
1033
1043
|
) });
|
|
1034
|
-
}, vt = N(It), Q = (t, o, i, a = !0, r = "inset") => a ? /* @__PURE__ */
|
|
1035
|
-
/* @__PURE__ */
|
|
1036
|
-
/* @__PURE__ */ e(
|
|
1044
|
+
}, vt = N(It), Q = (t, o, i, a = !0, r = "inset") => a ? /* @__PURE__ */ s(_.Fragment, { children: [
|
|
1045
|
+
/* @__PURE__ */ s(L, { disableGutters: !0, disablePadding: !0, children: [
|
|
1046
|
+
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(P, { sx: { bgcolor: "border.light" }, variant: "rounded", children: t }) }),
|
|
1037
1047
|
/* @__PURE__ */ e(
|
|
1038
|
-
|
|
1048
|
+
w,
|
|
1039
1049
|
{
|
|
1040
1050
|
primary: o,
|
|
1041
1051
|
primaryTypographyProps: { variant: "XSmall" },
|
|
@@ -1044,12 +1054,12 @@ const qe = [
|
|
|
1044
1054
|
)
|
|
1045
1055
|
] }),
|
|
1046
1056
|
/* @__PURE__ */ e(te, { variant: r })
|
|
1047
|
-
] }) : null,
|
|
1048
|
-
const { transactions: o } = I(), { tags: i } =
|
|
1057
|
+
] }) : null, Et = ({ transaction: t }) => {
|
|
1058
|
+
const { transactions: o } = I(), { tags: i } = O(), a = _.useMemo(() => {
|
|
1049
1059
|
const r = new Map(i.map((n) => [n.guid, n.name]));
|
|
1050
1060
|
return t.tags.map((n) => r.get(n)).filter(Boolean).join(" / ");
|
|
1051
1061
|
}, [i, t.tags]);
|
|
1052
|
-
return /* @__PURE__ */
|
|
1062
|
+
return /* @__PURE__ */ s(ae, { sx: { "& .MuiListItem-root": { px: 24, py: 12 } }, children: [
|
|
1053
1063
|
Q(
|
|
1054
1064
|
/* @__PURE__ */ e(
|
|
1055
1065
|
me,
|
|
@@ -1083,23 +1093,23 @@ const qe = [
|
|
|
1083
1093
|
"fullWidth"
|
|
1084
1094
|
)
|
|
1085
1095
|
] });
|
|
1086
|
-
},
|
|
1096
|
+
}, Ot = N(Et), Dt = ({ transaction: t }) => {
|
|
1087
1097
|
const o = {
|
|
1088
1098
|
add_merchant_budget_primary_text: "Merchant Budget",
|
|
1089
1099
|
add_merchant_budget_secondary_text: "Add a Merchant Budget"
|
|
1090
1100
|
}, a = F().palette.mode === "dark" ? "grey.800" : "grey.100";
|
|
1091
|
-
return /* @__PURE__ */ e(_.Fragment, { children: t && /* @__PURE__ */ e(
|
|
1101
|
+
return /* @__PURE__ */ e(_.Fragment, { children: t && /* @__PURE__ */ e(L, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ s(G, { onClick: () => {
|
|
1092
1102
|
}, children: [
|
|
1093
|
-
/* @__PURE__ */ e(
|
|
1103
|
+
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(P, { sx: { bgcolor: a }, variant: "rounded", children: /* @__PURE__ */ e(A, { name: "bubble_chart", sx: { color: "text.primary" } }) }) }),
|
|
1094
1104
|
/* @__PURE__ */ e(
|
|
1095
|
-
|
|
1105
|
+
w,
|
|
1096
1106
|
{
|
|
1097
1107
|
primary: o.add_merchant_budget_primary_text,
|
|
1098
1108
|
primaryTypographyProps: { variant: "caption" },
|
|
1099
1109
|
secondary: /* @__PURE__ */ e(T, { bold: !0, sx: { color: "text.primary" }, variant: "body1", children: o.add_merchant_budget_secondary_text })
|
|
1100
1110
|
}
|
|
1101
1111
|
),
|
|
1102
|
-
/* @__PURE__ */ e(
|
|
1112
|
+
/* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(A, { name: "chevron_right", sx: { color: "text.primary" } }) })
|
|
1103
1113
|
] }) }) });
|
|
1104
1114
|
}, Lt = ({
|
|
1105
1115
|
bottomActions: t = Je,
|
|
@@ -1107,15 +1117,15 @@ const qe = [
|
|
|
1107
1117
|
topActions: i = qe,
|
|
1108
1118
|
transaction: a
|
|
1109
1119
|
}) => {
|
|
1110
|
-
const { onEvent: r } = v(), { isCopyLoaded: n } = Ke(), { userFeatures:
|
|
1120
|
+
const { onEvent: r } = v(), { isCopyLoaded: n } = Ke(), { userFeatures: l } = $e(), c = F(), u = a?.number && a.number.length > 4;
|
|
1111
1121
|
if (_.useEffect(
|
|
1112
|
-
() => r(
|
|
1122
|
+
() => r(k.TRANSACTION_DETAILS_VIEW, { transaction_guid: a.guid }),
|
|
1113
1123
|
[]
|
|
1114
1124
|
), !n)
|
|
1115
1125
|
return /* @__PURE__ */ e(je, {});
|
|
1116
|
-
const d = Me(
|
|
1117
|
-
return /* @__PURE__ */ e(
|
|
1118
|
-
/* @__PURE__ */
|
|
1126
|
+
const d = Me(l, "MX_TXN_DETAILS_VIEW_ONLY"), p = c.palette.mode === "dark" ? "grey.800" : "grey.100";
|
|
1127
|
+
return /* @__PURE__ */ e(B, { className: "mx-txn-transaction-details", width: "100%", children: a && /* @__PURE__ */ s(f, { children: [
|
|
1128
|
+
/* @__PURE__ */ s(f, { gap: 12, p: 24, children: [
|
|
1119
1129
|
/* @__PURE__ */ e(Z, { elevation: 2, sx: { width: 64 }, children: /* @__PURE__ */ e(
|
|
1120
1130
|
ye,
|
|
1121
1131
|
{
|
|
@@ -1125,30 +1135,30 @@ const qe = [
|
|
|
1125
1135
|
}
|
|
1126
1136
|
) }),
|
|
1127
1137
|
/* @__PURE__ */ e(Nt, { transaction: a, viewOnly: d }),
|
|
1128
|
-
/* @__PURE__ */
|
|
1129
|
-
/* @__PURE__ */
|
|
1138
|
+
/* @__PURE__ */ s(f, { direction: "row", justifyContent: "space-between", sx: { minHeight: 44 }, children: [
|
|
1139
|
+
/* @__PURE__ */ s(X, { color: a.isIncome ? "success.main" : "text.primary", variant: "H1", children: [
|
|
1130
1140
|
a.isIncome ? "+" : "",
|
|
1131
|
-
|
|
1141
|
+
se(a.amount, "0,0.00")
|
|
1132
1142
|
] }),
|
|
1133
1143
|
!d && o && /* @__PURE__ */ e(vt, { transaction: a })
|
|
1134
1144
|
] }),
|
|
1135
|
-
/* @__PURE__ */
|
|
1145
|
+
/* @__PURE__ */ s(f, { sx: { bgcolor: p, borderRadius: "4px", gap: 4, p: 8 }, children: [
|
|
1136
1146
|
/* @__PURE__ */ e(T, { bold: !0, children: `${a.account}
|
|
1137
1147
|
${u ? a.number : "•".repeat(4).concat(a.number ?? "")}` }),
|
|
1138
|
-
/* @__PURE__ */ e(T, { bold: !0,
|
|
1148
|
+
/* @__PURE__ */ e(T, { bold: !0, variant: "Tiny", children: a.feed_description })
|
|
1139
1149
|
] })
|
|
1140
1150
|
] }),
|
|
1141
|
-
/* @__PURE__ */ e(Z, { square: !0, sx: { boxShadow: "none" }, children: d ? /* @__PURE__ */ e(
|
|
1151
|
+
/* @__PURE__ */ e(Z, { square: !0, sx: { boxShadow: "none" }, children: d ? /* @__PURE__ */ e(Ot, { transaction: a }) : /* @__PURE__ */ e(ae, { children: i.map((m, g) => /* @__PURE__ */ s(_.Fragment, { children: [
|
|
1142
1152
|
m === j.Category && /* @__PURE__ */ e(Qe, { transaction: a }),
|
|
1143
1153
|
m === j.Date && /* @__PURE__ */ e(Ze, { transaction: a }),
|
|
1144
|
-
m === j.Memo && /* @__PURE__ */ e(
|
|
1154
|
+
m === j.Memo && /* @__PURE__ */ e(st, { transaction: a }),
|
|
1145
1155
|
m === j.Tags && /* @__PURE__ */ e(ft, { transaction: a }),
|
|
1146
1156
|
/* @__PURE__ */ e(te, { variant: g < i.length - 1 ? "inset" : "fullWidth" })
|
|
1147
1157
|
] }, m)) }) }),
|
|
1148
|
-
!d && t.length > 0 && /* @__PURE__ */
|
|
1158
|
+
!d && t.length > 0 && /* @__PURE__ */ s(_.Fragment, { children: [
|
|
1149
1159
|
/* @__PURE__ */ e(T, { bold: !0, mb: 8, ml: 26, mt: 16, variant: "Body", children: "Actions" }),
|
|
1150
|
-
/* @__PURE__ */ e(Z, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */
|
|
1151
|
-
t.map((m, g) => /* @__PURE__ */
|
|
1160
|
+
/* @__PURE__ */ e(Z, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ s(ae, { children: [
|
|
1161
|
+
t.map((m, g) => /* @__PURE__ */ s(_.Fragment, { children: [
|
|
1152
1162
|
m === q.MerchantBudget && /* @__PURE__ */ e(Dt, { transaction: a }),
|
|
1153
1163
|
m === q.SplitTransaction && /* @__PURE__ */ e(ut, { transaction: a }),
|
|
1154
1164
|
m === q.HideTransaction && /* @__PURE__ */ e(ot, { transaction: a }),
|
|
@@ -1164,7 +1174,7 @@ export {
|
|
|
1164
1174
|
q as B,
|
|
1165
1175
|
Qe as C,
|
|
1166
1176
|
Ze as D,
|
|
1167
|
-
|
|
1177
|
+
st as M,
|
|
1168
1178
|
ba as T,
|
|
1169
1179
|
ft as a,
|
|
1170
1180
|
j as b
|
|
@@ -56,7 +56,7 @@ import t3 from "@mui/material/Link";
|
|
|
56
56
|
import n3 from "@mui/material/Paper";
|
|
57
57
|
import { subDays as o3, startOfToday as i3, endOfToday as c3 } from "date-fns";
|
|
58
58
|
import { T as a3 } from "../TransactionList-DrtItQUk.mjs";
|
|
59
|
-
import { T as s3 } from "../TransactionDetails-
|
|
59
|
+
import { T as s3 } from "../TransactionDetails-CurpH7lH.mjs";
|
|
60
60
|
import { T as r1 } from "../TabContentContainer-j01JYR_7.mjs";
|
|
61
61
|
import { f as d1 } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
62
62
|
import { C as l3 } from "../ConnectionsDrawer-UQTh9UEc.mjs";
|
package/dist/budgets/index.es.js
CHANGED
|
@@ -37,7 +37,7 @@ import Re from "@mui/material/Tab";
|
|
|
37
37
|
import at from "@mui/material/Tabs";
|
|
38
38
|
import { e as rt } from "../exportTransactionsToCSV-DC2YMFft.mjs";
|
|
39
39
|
import { T as De } from "../TransactionList-DrtItQUk.mjs";
|
|
40
|
-
import { T as st } from "../TransactionDetails-
|
|
40
|
+
import { T as st } from "../TransactionDetails-CurpH7lH.mjs";
|
|
41
41
|
import Ee from "@mui/material/Card";
|
|
42
42
|
import we from "@mui/material/CardContent";
|
|
43
43
|
import { S as xe } from "../StatusBar-BK_uYHAB.mjs";
|
|
@@ -46,7 +46,7 @@ import { u as it, b as ct } from "../CategorySelectorDrawer-DpC8T96X.mjs";
|
|
|
46
46
|
import We from "@mui/material/CardHeader";
|
|
47
47
|
import { subDays as lt } from "date-fns/subDays";
|
|
48
48
|
import dt from "@mui/material/IconButton";
|
|
49
|
-
import { M as ut } from "../ManageIncome-
|
|
49
|
+
import { M as ut } from "../ManageIncome-nsPkRmtW.mjs";
|
|
50
50
|
import { u as He } from "../useWidgetLoadTimer-yzSfT9dS.mjs";
|
|
51
51
|
import { W as mt } from "../WidgetContainer-B5jzz8M1.mjs";
|
|
52
52
|
import { u as gt, C as pt } from "../BudgetUtil-C71e-szt.mjs";
|
|
@@ -18,7 +18,7 @@ import { b as $ } from "../Localization-2MODESHW.mjs";
|
|
|
18
18
|
import { M as Je } from "../MiniWidgetContainer-B4gbUTJ2.mjs";
|
|
19
19
|
import { E as Ze } from "../EmptyState-DHAkGsjk.mjs";
|
|
20
20
|
import { u as Oe } from "../useWidgetLoadTimer-yzSfT9dS.mjs";
|
|
21
|
-
import { R as et } from "../RecurringSettings-
|
|
21
|
+
import { R as et } from "../RecurringSettings-DPNluP-k.mjs";
|
|
22
22
|
import tt from "@mui/material/Tabs";
|
|
23
23
|
import ye from "@mui/material/Tab";
|
|
24
24
|
import { getUnixTime as z } from "date-fns/getUnixTime";
|
|
@@ -36,7 +36,7 @@ import { alpha as at, keyframes as it } from "@mui/material/styles";
|
|
|
36
36
|
import { DataGridPro as rt } from "@mui/x-data-grid-pro";
|
|
37
37
|
import { T as we } from "../TabContentContainer-j01JYR_7.mjs";
|
|
38
38
|
import G from "@mui/material/Button";
|
|
39
|
-
import { M as st, S as ct, i as lt, d as _e, c as dt } from "../ManageIncome-
|
|
39
|
+
import { M as st, S as ct, i as lt, d as _e, c as dt } from "../ManageIncome-nsPkRmtW.mjs";
|
|
40
40
|
import { D as Ge } from "../Drawer-DV4NTsFg.mjs";
|
|
41
41
|
import { subDays as Me } from "date-fns/subDays";
|
|
42
42
|
import { endOfToday as mt } from "date-fns/endOfToday";
|
|
@@ -56,10 +56,10 @@ import { formatISO as oo } from "date-fns/formatISO";
|
|
|
56
56
|
import { fromUnixTime as ro } from "date-fns/fromUnixTime";
|
|
57
57
|
import { startOfToday as st } from "date-fns/startOfToday";
|
|
58
58
|
import { subDays as ao } from "date-fns/subDays";
|
|
59
|
-
import { c as io, d as ct, S as so, i as co } from "../ManageIncome-
|
|
59
|
+
import { c as io, d as ct, S as so, i as co } from "../ManageIncome-nsPkRmtW.mjs";
|
|
60
60
|
import { LocalizationProvider as lo, DatePicker as po, StaticDatePicker as _o } from "@mui/x-date-pickers";
|
|
61
61
|
import { AdapterDateFns as Ot } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
62
|
-
import { R as uo } from "../RecurringSettings-
|
|
62
|
+
import { R as uo } from "../RecurringSettings-DPNluP-k.mjs";
|
|
63
63
|
import { LocalizationProvider as ho } from "@mui/x-date-pickers/LocalizationProvider";
|
|
64
64
|
import { format as mo } from "date-fns/format";
|
|
65
65
|
import go from "@mui/lab/Timeline";
|
|
@@ -6,8 +6,8 @@ import { endOfToday as Z } from "date-fns/endOfToday";
|
|
|
6
6
|
import { startOfMonth as G } from "date-fns/startOfMonth";
|
|
7
7
|
import { startOfToday as J } from "date-fns/startOfToday";
|
|
8
8
|
import { subDays as Q } from "date-fns/subDays";
|
|
9
|
-
import { R as Te } from "../RecurringSettings-
|
|
10
|
-
import { M as Ln } from "../RecurringSettings-
|
|
9
|
+
import { R as Te } from "../RecurringSettings-DPNluP-k.mjs";
|
|
10
|
+
import { M as Ln } from "../RecurringSettings-DPNluP-k.mjs";
|
|
11
11
|
import { addMonths as $e } from "date-fns/addMonths";
|
|
12
12
|
import { subMonths as Be } from "date-fns/subMonths";
|
|
13
13
|
import { isBefore as Pe } from "date-fns/isBefore";
|
|
@@ -40,8 +40,8 @@ import nt from "@mui/material/ListSubheader";
|
|
|
40
40
|
import it from "@mui/material/ListItemAvatar";
|
|
41
41
|
import rt from "@mui/material/ListItemButton";
|
|
42
42
|
import ot from "@mui/material/ListItemText";
|
|
43
|
-
import { b as at } from "../ManageIncome-
|
|
44
|
-
import { c as Gn, M as On, S as kn } from "../ManageIncome-
|
|
43
|
+
import { b as at } from "../ManageIncome-nsPkRmtW.mjs";
|
|
44
|
+
import { c as Gn, M as On, S as kn } from "../ManageIncome-nsPkRmtW.mjs";
|
|
45
45
|
import { f as M } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
46
46
|
import { D as ie } from "../Drawer-DV4NTsFg.mjs";
|
|
47
47
|
import { b as E } from "../Localization-2MODESHW.mjs";
|
|
@@ -20,7 +20,7 @@ import Tt from "@mui/material/Button";
|
|
|
20
20
|
import { useTheme as Mt } from "@mui/material";
|
|
21
21
|
import { e as Dt } from "../exportTransactionsToCSV-DC2YMFft.mjs";
|
|
22
22
|
import { T as xt } from "../TransactionList-DrtItQUk.mjs";
|
|
23
|
-
import { T as wt } from "../TransactionDetails-
|
|
23
|
+
import { T as wt } from "../TransactionDetails-CurpH7lH.mjs";
|
|
24
24
|
import Lt from "@mui/material/Collapse";
|
|
25
25
|
import F from "@mui/material/Divider";
|
|
26
26
|
import J from "@mui/material/List";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { T as Sa } from "../TransactionApi-CjBoLleL.mjs";
|
|
2
|
-
import { C as Le, D as Me, M as Re, a as He, T as Pe } from "../TransactionDetails-
|
|
3
|
-
import { B as Da, b as Ia } from "../TransactionDetails-
|
|
2
|
+
import { C as Le, D as Me, M as Re, a as He, T as Pe } from "../TransactionDetails-CurpH7lH.mjs";
|
|
3
|
+
import { B as Da, b as Ia } from "../TransactionDetails-CurpH7lH.mjs";
|
|
4
4
|
import { T as E } from "../Transaction-BNO5Yz-B.mjs";
|
|
5
5
|
import { O as Na } from "../Transaction-BNO5Yz-B.mjs";
|
|
6
6
|
import { S as Z, D as Be } from "../TransactionStore-DYXYuq5s.mjs";
|
package/dist/trends/index.es.js
CHANGED
|
@@ -36,7 +36,7 @@ import jt from "@mui/material/Badge";
|
|
|
36
36
|
import Ut from "@mui/material/IconButton";
|
|
37
37
|
import { A as v } from "../Analytics-i5h6BxR1.mjs";
|
|
38
38
|
import { T as lt } from "../TransactionList-DrtItQUk.mjs";
|
|
39
|
-
import { T as ct } from "../TransactionDetails-
|
|
39
|
+
import { T as ct } from "../TransactionDetails-CurpH7lH.mjs";
|
|
40
40
|
import { D as We } from "../Drawer-DV4NTsFg.mjs";
|
|
41
41
|
import { u as Ie } from "../useWidgetLoadTimer-yzSfT9dS.mjs";
|
|
42
42
|
import { L as Le } from "../Loader-D3rjKx72.mjs";
|