@mx-cartographer/experiences 7.12.5 → 7.12.7
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 +8 -0
- package/README.md +5 -3
- package/dist/{ManageIncome-DE6JV3Mp.mjs → ManageIncome-YlYP7fi8.mjs} +2 -2
- package/dist/{RecurringSettings-CkVI8rR3.mjs → RecurringSettings-BGN0u9oW.mjs} +1 -1
- package/dist/StatusIndicator-BnYO7yL3.mjs +261 -0
- package/dist/{TransactionDetails-DWZuZgBw.mjs → TransactionDetails-DmDYs0lX.mjs} +335 -335
- package/dist/accounts/index.es.js +2 -2
- package/dist/analytics/index.es.js +7 -7
- package/dist/budgets/index.es.js +3 -3
- package/dist/cashflow/index.es.js +3 -3
- package/dist/finstrong/index.es.js +3 -3
- package/dist/insights/index.es.js +1 -1
- package/dist/recurringtransactions/index.es.js +4 -4
- package/dist/spending/index.es.js +2 -2
- package/dist/transactions/index.es.js +100 -92
- package/dist/trends/index.es.js +345 -335
- package/package.json +1 -1
- package/dist/StatusIndicator-Bo80rdKq.mjs +0 -252
|
@@ -6,52 +6,52 @@ import de from "@mui/material/Divider";
|
|
|
6
6
|
import ue from "@mui/material/List";
|
|
7
7
|
import le from "@mui/material/Paper";
|
|
8
8
|
import v from "@mui/material/Stack";
|
|
9
|
-
import { useTheme as
|
|
10
|
-
import { P as
|
|
9
|
+
import { useTheme as U, alpha as be } from "@mui/material/styles";
|
|
10
|
+
import { P as X, Text as x, H2 as Be, MerchantLogo as Ne, Toast as $e, CategoryIcon as Ie, CategoryIconVariants as Oe, TextField as ve, Icon as ce, IconWeight as xe } from "@mxenabled/mxui";
|
|
11
11
|
import { g as Ke, C as Fe, a as He, b as Ue, i as Ve } from "./BudgetUtil--_QXyszn.mjs";
|
|
12
12
|
import oe from "@mui/material/Button";
|
|
13
13
|
import ze from "@mui/material/FormGroup";
|
|
14
14
|
import ne from "@mui/material/IconButton";
|
|
15
|
-
import
|
|
15
|
+
import Le from "@mui/material/TextField";
|
|
16
16
|
import { u as pe } from "./useAriaLive-MkYebyUR.mjs";
|
|
17
17
|
import { O as y } from "./Transaction-B_2AG36b.mjs";
|
|
18
|
-
import { u as I, h as O, m as We, d as Ye, l as
|
|
18
|
+
import { u as I, h as O, m as We, d as Ye, l as we, g as w, b as Xe, o as je } from "./hooks-BxkfR-Ff.mjs";
|
|
19
19
|
import { A as H } from "./Analytics-BYItVAe-.mjs";
|
|
20
20
|
import qe from "@mui/material/ToggleButton";
|
|
21
|
-
import
|
|
22
|
-
import {
|
|
23
|
-
import
|
|
24
|
-
import U from "@mui/material/Avatar";
|
|
21
|
+
import { ChevronRight as Re, Icon as D, Delete as me, Cancel as _e, Search as Je, Edit as Qe, Flag as Ze } from "@mxenabled/mx-icons";
|
|
22
|
+
import { fromUnixTime as fe } from "date-fns/fromUnixTime";
|
|
23
|
+
import V from "@mui/material/Avatar";
|
|
25
24
|
import B from "@mui/material/ListItem";
|
|
26
|
-
import
|
|
25
|
+
import z from "@mui/material/ListItemAvatar";
|
|
27
26
|
import $ from "@mui/material/ListItemText";
|
|
28
27
|
import { f as Me, D as ke } from "./DateFormats-BMpMrZpW.mjs";
|
|
29
|
-
import
|
|
30
|
-
import
|
|
28
|
+
import W from "@mui/material/ListItemButton";
|
|
29
|
+
import Y from "@mui/material/ListItemIcon";
|
|
31
30
|
import { a as Pe } from "./CategorySelectorDrawer-wfUTIbLR.mjs";
|
|
32
|
-
import { b as et, T as tt, u as J } from "./StatusIndicator-
|
|
31
|
+
import { b as et, T as tt, u as J } from "./StatusIndicator-BnYO7yL3.mjs";
|
|
33
32
|
import { D as q } from "./Dialog-Ck34yr-d.mjs";
|
|
34
33
|
import { b as N } from "./Localization-CPkpIwIx.mjs";
|
|
35
34
|
import { getUnixTime as rt } from "date-fns/getUnixTime";
|
|
36
35
|
import { D as ie } from "./Drawer-DV4NTsFg.mjs";
|
|
37
|
-
import { f as
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import lt from "
|
|
46
|
-
import
|
|
36
|
+
import { f as j } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
37
|
+
import at from "@mui/material/styles/useTheme";
|
|
38
|
+
import De from "@mui/material/InputAdornment";
|
|
39
|
+
import nt from "@mui/material/Checkbox";
|
|
40
|
+
import { startOfMonth as ot } from "date-fns/startOfMonth";
|
|
41
|
+
import { endOfMonth as it } from "date-fns/endOfMonth";
|
|
42
|
+
import { i as st } from "./DateUtil-wcYTmDRD.mjs";
|
|
43
|
+
import Se from "@mui/material/Grid";
|
|
44
|
+
import { C as lt } from "./CurrencyInput-DuMktPu3.mjs";
|
|
45
|
+
import ct from "@mui/material/Switch";
|
|
46
|
+
import { L as dt } from "./Loader-D3rjKx72.mjs";
|
|
47
47
|
var re = /* @__PURE__ */ ((t) => (t[t.Category = 0] = "Category", t[t.Date = 1] = "Date", t[t.Memo = 2] = "Memo", t[t.Tags = 3] = "Tags", t))(re || {}), ae = /* @__PURE__ */ ((t) => (t[t.MerchantBudget = 0] = "MerchantBudget", t[t.SplitTransaction = 1] = "SplitTransaction", t[t.HideTransaction = 2] = "HideTransaction", t[t.MerchantLogo = 3] = "MerchantLogo", t))(ae || {});
|
|
48
|
-
const
|
|
48
|
+
const ut = [
|
|
49
49
|
0,
|
|
50
50
|
1,
|
|
51
51
|
2,
|
|
52
52
|
3
|
|
53
53
|
/* Tags */
|
|
54
|
-
],
|
|
54
|
+
], mt = [
|
|
55
55
|
1,
|
|
56
56
|
2,
|
|
57
57
|
3
|
|
@@ -61,12 +61,12 @@ const dt = [
|
|
|
61
61
|
onViewHistory: n,
|
|
62
62
|
totalTransaction: i,
|
|
63
63
|
amount: r,
|
|
64
|
-
spentPercentage:
|
|
65
|
-
remainingAmount:
|
|
64
|
+
spentPercentage: o,
|
|
65
|
+
remainingAmount: a,
|
|
66
66
|
iconColor: s,
|
|
67
67
|
icon: c
|
|
68
68
|
}) => {
|
|
69
|
-
const { budgets:
|
|
69
|
+
const { budgets: _ } = I();
|
|
70
70
|
return /* @__PURE__ */ e(d.Fragment, { children: /* @__PURE__ */ l(
|
|
71
71
|
F,
|
|
72
72
|
{
|
|
@@ -89,8 +89,8 @@ const dt = [
|
|
|
89
89
|
px: 24
|
|
90
90
|
},
|
|
91
91
|
children: [
|
|
92
|
-
/* @__PURE__ */ e(
|
|
93
|
-
n && /* @__PURE__ */ e(oe, { endIcon: /* @__PURE__ */ e(Re, {}), onClick: n, sx: { height: 28 }, children: /* @__PURE__ */ e(x, { bold: !0, variant: "body2", children:
|
|
92
|
+
/* @__PURE__ */ e(X, { bold: !0, variant: "subtitle1", children: st(t) }),
|
|
93
|
+
n && /* @__PURE__ */ e(oe, { endIcon: /* @__PURE__ */ e(Re, {}), onClick: n, sx: { height: 28 }, children: /* @__PURE__ */ e(x, { bold: !0, variant: "body2", children: _.spending_history }) })
|
|
94
94
|
]
|
|
95
95
|
}
|
|
96
96
|
),
|
|
@@ -98,18 +98,18 @@ const dt = [
|
|
|
98
98
|
et,
|
|
99
99
|
{
|
|
100
100
|
amount: /* @__PURE__ */ l(v, { sx: { alignItems: "baseline", flexDirection: "row", gap: 4 }, children: [
|
|
101
|
-
/* @__PURE__ */ e(Be, { children:
|
|
102
|
-
/* @__PURE__ */ e(
|
|
103
|
-
/* @__PURE__ */ e(
|
|
101
|
+
/* @__PURE__ */ e(Be, { children: j(i, "0,0.00") }),
|
|
102
|
+
/* @__PURE__ */ e(X, { color: "text.secondary", variant: "body2", children: "/" }),
|
|
103
|
+
/* @__PURE__ */ e(X, { color: "text.secondary", variant: "body2", children: j(r, "0,0.00") })
|
|
104
104
|
] }),
|
|
105
105
|
completeColor: `${s}.main`,
|
|
106
106
|
icon: c,
|
|
107
|
-
label:
|
|
108
|
-
leftLabel: N(
|
|
109
|
-
percentComplete:
|
|
107
|
+
label: _.spent_label,
|
|
108
|
+
leftLabel: N(_.percent_spent, o.toFixed()),
|
|
109
|
+
percentComplete: o,
|
|
110
110
|
rightLabel: N(
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
_.balance_left,
|
|
112
|
+
j(a, "0,0.00")
|
|
113
113
|
),
|
|
114
114
|
sx: {
|
|
115
115
|
pb: 24,
|
|
@@ -121,15 +121,15 @@ const dt = [
|
|
|
121
121
|
]
|
|
122
122
|
}
|
|
123
123
|
) });
|
|
124
|
-
},
|
|
124
|
+
}, pt = ({
|
|
125
125
|
merchantBudget: t,
|
|
126
126
|
transaction: n,
|
|
127
127
|
onClose: i,
|
|
128
128
|
isOpen: r,
|
|
129
|
-
setCurrencyDialogAction:
|
|
130
|
-
renderingToast:
|
|
129
|
+
setCurrencyDialogAction: o,
|
|
130
|
+
renderingToast: a
|
|
131
131
|
}) => {
|
|
132
|
-
const { budgets: s, common: c } = I(), { sortedTransactions:
|
|
132
|
+
const { budgets: s, common: c } = I(), { sortedTransactions: _ } = O(), u = d.useMemo(() => _.reduce((h, f) => f.parent_guid ? h : h + f.amount, 0), [_]), { remainingAmount: p, spentPercentage: m, iconColor: g } = Ke(
|
|
133
133
|
u,
|
|
134
134
|
t.amount ?? 0
|
|
135
135
|
);
|
|
@@ -143,9 +143,9 @@ const dt = [
|
|
|
143
143
|
},
|
|
144
144
|
isOpen: r,
|
|
145
145
|
onClose: i,
|
|
146
|
-
onPrimaryAction: () =>
|
|
146
|
+
onPrimaryAction: () => o(Ae.EDIT),
|
|
147
147
|
onSecondaryAction: () => {
|
|
148
|
-
|
|
148
|
+
o(Ae.DELETE);
|
|
149
149
|
},
|
|
150
150
|
primaryText: s.details_edit_button,
|
|
151
151
|
secondaryColor: "error",
|
|
@@ -162,7 +162,7 @@ const dt = [
|
|
|
162
162
|
{
|
|
163
163
|
amount: t.amount,
|
|
164
164
|
icon: /* @__PURE__ */ e(
|
|
165
|
-
|
|
165
|
+
Ne,
|
|
166
166
|
{
|
|
167
167
|
categoryGuid: n.top_level_category_guid || "",
|
|
168
168
|
merchantGuid: n.merchant_guid || ""
|
|
@@ -170,28 +170,28 @@ const dt = [
|
|
|
170
170
|
),
|
|
171
171
|
iconColor: g,
|
|
172
172
|
remainingAmount: p,
|
|
173
|
-
spentPercentage:
|
|
173
|
+
spentPercentage: m,
|
|
174
174
|
startDate: n.date,
|
|
175
175
|
totalTransaction: u
|
|
176
176
|
}
|
|
177
177
|
),
|
|
178
178
|
/* @__PURE__ */ e(tt, {}),
|
|
179
|
-
|
|
179
|
+
a?.()
|
|
180
180
|
]
|
|
181
181
|
}
|
|
182
182
|
);
|
|
183
|
-
},
|
|
184
|
-
var
|
|
185
|
-
const
|
|
186
|
-
const [n, i] = d.useState(null), [r,
|
|
187
|
-
addMerchantBudget:
|
|
183
|
+
}, gt = E(pt);
|
|
184
|
+
var Ae = /* @__PURE__ */ ((t) => (t.CREATE = "create", t.EDIT = "edit", t.DELETE = "delete", t))(Ae || {});
|
|
185
|
+
const ht = E(({ transaction: t }) => {
|
|
186
|
+
const [n, i] = d.useState(null), [r, o] = d.useState(""), [a, s] = d.useState(!1), c = d.useRef(!1), [_, u] = d.useState(null), p = U(), {
|
|
187
|
+
addMerchantBudget: m,
|
|
188
188
|
updateMerchantBudget: g,
|
|
189
189
|
deleteMerchantBudget: h,
|
|
190
190
|
getMerchantBudgetByMerchantGuid: f,
|
|
191
191
|
alert: L,
|
|
192
192
|
setAlert: k
|
|
193
193
|
} = We(), { setFilter: S } = O(), { accounts: T } = Ye(), R = p.palette.mode === "dark" ? "grey.800" : "grey.100", { budgets: C, common: Q } = I(), { announce: ge, ariaLive: he } = pe(), [Z, ee] = d.useState(!1), K = t?.merchant_guid ? f(t.merchant_guid) : void 0, te = () => {
|
|
194
|
-
u(n), i(null),
|
|
194
|
+
u(n), i(null), o("");
|
|
195
195
|
}, ye = () => {
|
|
196
196
|
K ? ee(!0) : i(
|
|
197
197
|
"create"
|
|
@@ -202,7 +202,7 @@ const gt = E(({ transaction: t }) => {
|
|
|
202
202
|
content: N(
|
|
203
203
|
C.create_budget_content,
|
|
204
204
|
/* @__PURE__ */ e("strong", { children: t.description }),
|
|
205
|
-
`${
|
|
205
|
+
`${j(t.amount, "0,0.00")}`
|
|
206
206
|
),
|
|
207
207
|
title: C.dialog_create_budget_title,
|
|
208
208
|
primaryButtonText: C.dialog_primary_button_text,
|
|
@@ -218,7 +218,7 @@ const gt = E(({ transaction: t }) => {
|
|
|
218
218
|
C.alert_budget_created,
|
|
219
219
|
t.description
|
|
220
220
|
),
|
|
221
|
-
apiTrigger: async () => await
|
|
221
|
+
apiTrigger: async () => await m(t.merchant_guid, Number(r))
|
|
222
222
|
},
|
|
223
223
|
edit: {
|
|
224
224
|
content: N(
|
|
@@ -268,13 +268,13 @@ const gt = E(({ transaction: t }) => {
|
|
|
268
268
|
}, P = async () => {
|
|
269
269
|
if (c.current) return;
|
|
270
270
|
c.current = !0;
|
|
271
|
-
const { apiTrigger: M, successAlertMessage: G, errorAlertMessage: Te } = b[n], { isSuccess: Ce } = await M(),
|
|
272
|
-
te(), s(!Ce), k(
|
|
271
|
+
const { apiTrigger: M, successAlertMessage: G, errorAlertMessage: Te } = b[n], { isSuccess: Ce } = await M(), Ee = Ce ? G : Te;
|
|
272
|
+
te(), s(!Ce), k(Ee), ge(Ee), Ce && n === "delete" && ee(!1), c.current = !1;
|
|
273
273
|
};
|
|
274
274
|
d.useEffect(() => {
|
|
275
275
|
const M = {
|
|
276
|
-
start:
|
|
277
|
-
end:
|
|
276
|
+
start: ot(new Date(t.date * 1e3)),
|
|
277
|
+
end: it(new Date(t.date * 1e3))
|
|
278
278
|
};
|
|
279
279
|
S({
|
|
280
280
|
accounts: T.map((G) => G.guid),
|
|
@@ -290,10 +290,10 @@ const gt = E(({ transaction: t }) => {
|
|
|
290
290
|
handleClose: () => k(""),
|
|
291
291
|
message: L,
|
|
292
292
|
multiLine: !0,
|
|
293
|
-
onActionClick: b[
|
|
293
|
+
onActionClick: b[_]?.errorRetryAction,
|
|
294
294
|
open: !!L,
|
|
295
|
-
severity:
|
|
296
|
-
showAction:
|
|
295
|
+
severity: a ? "error" : "success",
|
|
296
|
+
showAction: a,
|
|
297
297
|
showClose: !0,
|
|
298
298
|
snackbarSx: {
|
|
299
299
|
//TODO - remove the customization and update the Toast component in MXUI in the upcoming ticket (WEC-1162) to handle multi-line messages and long action text
|
|
@@ -320,27 +320,27 @@ const gt = E(({ transaction: t }) => {
|
|
|
320
320
|
);
|
|
321
321
|
return /* @__PURE__ */ l(d.Fragment, { children: [
|
|
322
322
|
he,
|
|
323
|
-
/* @__PURE__ */ e(B, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
324
|
-
/* @__PURE__ */ e(
|
|
323
|
+
/* @__PURE__ */ e(B, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(W, { onClick: ye, children: [
|
|
324
|
+
/* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(V, { sx: { bgcolor: R }, variant: "rounded", children: /* @__PURE__ */ e(D, { name: "bubble_chart", sx: { color: "text.primary" } }) }) }),
|
|
325
325
|
/* @__PURE__ */ e(
|
|
326
326
|
$,
|
|
327
327
|
{
|
|
328
328
|
primary: C.add_merchant_budget_primary_text,
|
|
329
329
|
primaryTypographyProps: { variant: "caption" },
|
|
330
|
-
secondary: /* @__PURE__ */ e(x, { bold: !0, sx: { color: "text.primary" }, variant: "body1", children: K ? `${
|
|
330
|
+
secondary: /* @__PURE__ */ e(x, { bold: !0, sx: { color: "text.primary" }, variant: "body1", children: K ? `${j(K.amount, "0,0.00")} / ${Q.month_text}` : C.add_merchant_budget_secondary_text })
|
|
331
331
|
}
|
|
332
332
|
),
|
|
333
|
-
/* @__PURE__ */ e(
|
|
333
|
+
/* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(D, { name: "chevron_right", sx: { color: "text.primary" } }) })
|
|
334
334
|
] }) }),
|
|
335
335
|
!!K && /* @__PURE__ */ e(
|
|
336
|
-
|
|
336
|
+
gt,
|
|
337
337
|
{
|
|
338
338
|
isOpen: Z,
|
|
339
339
|
merchantBudget: K,
|
|
340
340
|
onClose: () => ee(!1),
|
|
341
341
|
renderingToast: () => L && A(),
|
|
342
342
|
setCurrencyDialogAction: (M) => {
|
|
343
|
-
M === "edit" &&
|
|
343
|
+
M === "edit" && o(K?.amount.toString() || ""), i(M);
|
|
344
344
|
},
|
|
345
345
|
transaction: t
|
|
346
346
|
}
|
|
@@ -350,7 +350,7 @@ const gt = E(({ transaction: t }) => {
|
|
|
350
350
|
{
|
|
351
351
|
closeAriaLabel: Q.close_aria,
|
|
352
352
|
content: b[n].content,
|
|
353
|
-
handleInputChange:
|
|
353
|
+
handleInputChange: o,
|
|
354
354
|
handleModalClose: te,
|
|
355
355
|
handlePrimaryAction: P,
|
|
356
356
|
handleSecondaryAction: te,
|
|
@@ -364,9 +364,9 @@ const gt = E(({ transaction: t }) => {
|
|
|
364
364
|
),
|
|
365
365
|
!!L && A()
|
|
366
366
|
] });
|
|
367
|
-
}),
|
|
368
|
-
const { addOrUpdateTransactionRule: n, updateTransaction: i } = O(), { categories: r } =
|
|
369
|
-
await i({ ...t, category_guid:
|
|
367
|
+
}), yt = ({ transaction: t }) => {
|
|
368
|
+
const { addOrUpdateTransactionRule: n, updateTransaction: i } = O(), { categories: r } = we(), { onEvent: o } = w(), { setShouldDisableDrawerScroll: a, updateManualTransaction: s } = J(), { transactions: c } = I(), _ = U(), [u, p] = d.useState(!1), [m, g] = d.useState(""), h = async (T) => {
|
|
369
|
+
await i({ ...t, category_guid: m }), T && await n(m, t), g(""), o(H.TRANSACTION_DETAILS_CLICK_CATEGORY, {
|
|
370
370
|
transaction_guid: t.guid
|
|
371
371
|
});
|
|
372
372
|
}, f = (T) => {
|
|
@@ -382,26 +382,26 @@ const gt = E(({ transaction: t }) => {
|
|
|
382
382
|
g(T);
|
|
383
383
|
L();
|
|
384
384
|
}, L = () => {
|
|
385
|
-
p(!1),
|
|
385
|
+
p(!1), a(!1);
|
|
386
386
|
}, k = d.useMemo(
|
|
387
|
-
() => r.find((T) => T.guid ===
|
|
388
|
-
[
|
|
389
|
-
), S =
|
|
387
|
+
() => r.find((T) => T.guid === m),
|
|
388
|
+
[m]
|
|
389
|
+
), S = _.palette.mode === "dark" ? "grey.800" : "grey.100";
|
|
390
390
|
return /* @__PURE__ */ l(B, { disableGutters: !0, disablePadding: !0, children: [
|
|
391
391
|
/* @__PURE__ */ l(
|
|
392
|
-
|
|
392
|
+
W,
|
|
393
393
|
{
|
|
394
394
|
onClick: () => {
|
|
395
|
-
|
|
395
|
+
o(y.ON_TRANSACTION_CATEGORY_CLICK), p(!0);
|
|
396
396
|
},
|
|
397
397
|
children: [
|
|
398
|
-
/* @__PURE__ */ e(
|
|
399
|
-
|
|
398
|
+
/* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(V, { sx: { bgcolor: S }, variant: "rounded", children: /* @__PURE__ */ e(
|
|
399
|
+
Ie,
|
|
400
400
|
{
|
|
401
401
|
categoryGuid: t.top_level_category_guid,
|
|
402
402
|
size: 24,
|
|
403
403
|
sx: { color: "text.primary" },
|
|
404
|
-
variant:
|
|
404
|
+
variant: Oe.Transparent
|
|
405
405
|
}
|
|
406
406
|
) }) }),
|
|
407
407
|
/* @__PURE__ */ e(
|
|
@@ -412,7 +412,7 @@ const gt = E(({ transaction: t }) => {
|
|
|
412
412
|
secondary: /* @__PURE__ */ e(x, { bold: !0, sx: { color: "text.primary" }, variant: "Body", children: t.category ?? c.actions_select_a_category })
|
|
413
413
|
}
|
|
414
414
|
),
|
|
415
|
-
/* @__PURE__ */ e(
|
|
415
|
+
/* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(D, { name: "chevron_right", sx: { color: "text.primary" } }) })
|
|
416
416
|
]
|
|
417
417
|
}
|
|
418
418
|
),
|
|
@@ -435,13 +435,13 @@ const gt = E(({ transaction: t }) => {
|
|
|
435
435
|
t.description
|
|
436
436
|
)
|
|
437
437
|
},
|
|
438
|
-
isOpen: !!
|
|
438
|
+
isOpen: !!m,
|
|
439
439
|
onClose: () => g(""),
|
|
440
440
|
onPrimaryAction: () => h(!0),
|
|
441
441
|
onSecondaryAction: () => h(!1),
|
|
442
442
|
primaryText: c.actions_apply_to_all,
|
|
443
443
|
secondaryText: c.actions_this_time_only,
|
|
444
|
-
children: /* @__PURE__ */ e(
|
|
444
|
+
children: /* @__PURE__ */ e(X, { variant: "Paragraph", children: N(
|
|
445
445
|
c.actions_all_past_and_future,
|
|
446
446
|
t.description,
|
|
447
447
|
k?.name
|
|
@@ -449,152 +449,152 @@ const gt = E(({ transaction: t }) => {
|
|
|
449
449
|
}
|
|
450
450
|
)
|
|
451
451
|
] });
|
|
452
|
-
},
|
|
453
|
-
const { onEvent: n } = w(), { updateTransaction: i } = O(), { updateManualTransaction: r } = J(), { common:
|
|
452
|
+
}, Tt = ({ transaction: t }) => {
|
|
453
|
+
const { onEvent: n } = w(), { updateTransaction: i } = O(), { updateManualTransaction: r } = J(), { common: o, transactions: a } = I(), s = U(), [c, _] = d.useState(!1), [u, p] = d.useState(t.date), m = (f) => {
|
|
454
454
|
p(rt(f));
|
|
455
455
|
}, g = async () => {
|
|
456
456
|
if (t.is_manual && !t.guid) {
|
|
457
|
-
r({ ...t, date: u }),
|
|
457
|
+
r({ ...t, date: u }), _(!1);
|
|
458
458
|
return;
|
|
459
459
|
}
|
|
460
|
-
await i({ ...t, date: u }), n(H.TRANSACTION_DETAILS_CLICK_DATE, { transaction_guid: t.guid }),
|
|
460
|
+
await i({ ...t, date: u }), n(H.TRANSACTION_DETAILS_CLICK_DATE, { transaction_guid: t.guid }), _(!1);
|
|
461
461
|
}, h = s.palette.mode === "dark" ? "grey.800" : "grey.100";
|
|
462
462
|
return /* @__PURE__ */ l(B, { className: "mx-txn-date-action", disableGutters: !0, disablePadding: !0, children: [
|
|
463
463
|
/* @__PURE__ */ l(
|
|
464
|
-
|
|
464
|
+
W,
|
|
465
465
|
{
|
|
466
466
|
onClick: () => {
|
|
467
|
-
n(y.ON_TRANSACTION_DATE_CLICK),
|
|
467
|
+
n(y.ON_TRANSACTION_DATE_CLICK), _(!0);
|
|
468
468
|
},
|
|
469
469
|
children: [
|
|
470
|
-
/* @__PURE__ */ e(
|
|
470
|
+
/* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(V, { sx: { bgcolor: h }, variant: "rounded", children: /* @__PURE__ */ e(D, { name: "calendar_month", sx: { color: "text.primary" } }) }) }),
|
|
471
471
|
/* @__PURE__ */ e(
|
|
472
472
|
$,
|
|
473
473
|
{
|
|
474
|
-
primary:
|
|
474
|
+
primary: a.date_title,
|
|
475
475
|
primaryTypographyProps: { variant: "XSmall" },
|
|
476
|
-
secondary: /* @__PURE__ */ e(x, { bold: !0, sx: { color: "text.primary" }, variant: "Body", children: Me(
|
|
476
|
+
secondary: /* @__PURE__ */ e(x, { bold: !0, sx: { color: "text.primary" }, variant: "Body", children: Me(fe(t.date), ke.YEAR_MONTH_DAY) })
|
|
477
477
|
}
|
|
478
478
|
),
|
|
479
|
-
/* @__PURE__ */ e(
|
|
479
|
+
/* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(D, { name: "chevron_right", sx: { color: "text.primary" } }) })
|
|
480
480
|
]
|
|
481
481
|
}
|
|
482
482
|
),
|
|
483
483
|
/* @__PURE__ */ e(
|
|
484
484
|
ie,
|
|
485
485
|
{
|
|
486
|
-
ariaLabelClose:
|
|
486
|
+
ariaLabelClose: o.close_aria,
|
|
487
487
|
isOpen: c,
|
|
488
|
-
onClose: () =>
|
|
488
|
+
onClose: () => _(!1),
|
|
489
489
|
onPrimaryAction: g,
|
|
490
|
-
primaryText:
|
|
491
|
-
secondaryText:
|
|
492
|
-
title:
|
|
490
|
+
primaryText: o.save_button,
|
|
491
|
+
secondaryText: o.cancel_button,
|
|
492
|
+
title: a.date_edit_title,
|
|
493
493
|
children: /* @__PURE__ */ e(v, { alignItems: "center", mt: 40, children: /* @__PURE__ */ e(
|
|
494
494
|
He,
|
|
495
495
|
{
|
|
496
|
-
beginDate:
|
|
496
|
+
beginDate: fe(u),
|
|
497
497
|
copy: {
|
|
498
|
-
nextAria:
|
|
499
|
-
prevAria:
|
|
500
|
-
today:
|
|
498
|
+
nextAria: a.date_next_aria,
|
|
499
|
+
prevAria: a.date_prev_aria,
|
|
500
|
+
today: o.date_range_picker.today
|
|
501
501
|
},
|
|
502
|
-
onDateSelected:
|
|
502
|
+
onDateSelected: m,
|
|
503
503
|
selectionType: Ue.Single
|
|
504
504
|
}
|
|
505
505
|
) })
|
|
506
506
|
}
|
|
507
507
|
)
|
|
508
508
|
] });
|
|
509
|
-
},
|
|
510
|
-
const { onEvent: n } = w(), { removeTransaction: i } = O(), { setShouldDisableDrawerScroll: r } = J(), { common:
|
|
509
|
+
}, Ct = ({ transaction: t }) => {
|
|
510
|
+
const { onEvent: n } = w(), { removeTransaction: i } = O(), { setShouldDisableDrawerScroll: r } = J(), { common: o, transactions: a } = I(), [s, c] = d.useState(!1), _ = async () => {
|
|
511
511
|
await i(t.guid), n(y.ON_TRANSACTION_DELETE_DELETED);
|
|
512
512
|
};
|
|
513
513
|
return /* @__PURE__ */ l(F, { className: "mx-txn-delete", children: [
|
|
514
514
|
t && /* @__PURE__ */ e(B, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
|
515
|
-
|
|
515
|
+
W,
|
|
516
516
|
{
|
|
517
517
|
onClick: () => {
|
|
518
518
|
n(y.ON_TRANSACTION_DELETE_CLICK), r(!0), c(!0);
|
|
519
519
|
},
|
|
520
520
|
children: [
|
|
521
|
-
/* @__PURE__ */ e(
|
|
521
|
+
/* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(V, { variant: "rounded", children: /* @__PURE__ */ e(me, { color: "secondary", fontSize: "small" }) }) }),
|
|
522
522
|
/* @__PURE__ */ e(
|
|
523
523
|
$,
|
|
524
524
|
{
|
|
525
|
-
primary:
|
|
526
|
-
secondary:
|
|
525
|
+
primary: a.manual_transaction_delete_title,
|
|
526
|
+
secondary: a.manual_transaction_delete_subtitle
|
|
527
527
|
}
|
|
528
528
|
),
|
|
529
|
-
/* @__PURE__ */ e(
|
|
529
|
+
/* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(me, {}) })
|
|
530
530
|
]
|
|
531
531
|
}
|
|
532
532
|
) }),
|
|
533
533
|
/* @__PURE__ */ e(
|
|
534
534
|
q,
|
|
535
535
|
{
|
|
536
|
-
copy: { title:
|
|
536
|
+
copy: { title: a.manual_transaction_delete_title },
|
|
537
537
|
isOpen: s,
|
|
538
538
|
onClose: () => {
|
|
539
539
|
r(!1), c(!1);
|
|
540
540
|
},
|
|
541
|
-
onPrimaryAction:
|
|
541
|
+
onPrimaryAction: _,
|
|
542
542
|
onSecondaryAction: () => n(y.ON_TRANSACTION_DELETE_CANCEL),
|
|
543
|
-
primaryText:
|
|
544
|
-
secondaryText:
|
|
545
|
-
children: /* @__PURE__ */ e(x, { sx: { whiteSpace: "normal" }, variant: "Paragraph", children:
|
|
543
|
+
primaryText: o.delete_button,
|
|
544
|
+
secondaryText: o.cancel_button,
|
|
545
|
+
children: /* @__PURE__ */ e(x, { sx: { whiteSpace: "normal" }, variant: "Paragraph", children: a.manual_transaction_delete_description })
|
|
546
546
|
}
|
|
547
547
|
)
|
|
548
548
|
] });
|
|
549
|
-
},
|
|
550
|
-
const { onEvent: n } = w(), { updateTransaction: i } = O(), { setShouldDisableDrawerScroll: r } = J(), { common:
|
|
549
|
+
}, bt = E(Ct), xt = ({ transaction: t }) => {
|
|
550
|
+
const { onEvent: n } = w(), { updateTransaction: i } = O(), { setShouldDisableDrawerScroll: r } = J(), { common: o, transactions: a } = I(), s = U(), [c, _] = d.useState(!1), u = async () => {
|
|
551
551
|
await i({ ...t, merchant_guid: "" }), n(H.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
|
|
552
552
|
transaction_guid: t.guid
|
|
553
553
|
});
|
|
554
554
|
}, p = s.palette.mode === "dark" ? "grey.800" : "grey.100";
|
|
555
555
|
return /* @__PURE__ */ e(d.Fragment, { children: t && /* @__PURE__ */ l(B, { className: "mx-txn-delete-logo", disableGutters: !0, disablePadding: !0, children: [
|
|
556
556
|
/* @__PURE__ */ l(
|
|
557
|
-
|
|
557
|
+
W,
|
|
558
558
|
{
|
|
559
559
|
onClick: () => {
|
|
560
|
-
n(y.ON_TRANSACTION_DELETE_LOGO_CLICK),
|
|
560
|
+
n(y.ON_TRANSACTION_DELETE_LOGO_CLICK), _(!0);
|
|
561
561
|
},
|
|
562
562
|
children: [
|
|
563
|
-
/* @__PURE__ */ e(
|
|
564
|
-
/* @__PURE__ */ e($, { primary:
|
|
565
|
-
/* @__PURE__ */ e(
|
|
563
|
+
/* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(V, { sx: { bgcolor: p }, variant: "rounded", children: /* @__PURE__ */ e(D, { name: "delete", sx: { color: "text.primary" } }) }) }),
|
|
564
|
+
/* @__PURE__ */ e($, { primary: a.merchant_logo_title, secondary: a.merchant_logo_desc }),
|
|
565
|
+
/* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(D, { name: "chevron_right", sx: { color: "text.primary" } }) })
|
|
566
566
|
]
|
|
567
567
|
}
|
|
568
568
|
),
|
|
569
569
|
/* @__PURE__ */ l(
|
|
570
570
|
q,
|
|
571
571
|
{
|
|
572
|
-
copy: { title:
|
|
572
|
+
copy: { title: a.merchant_logo_modal_title },
|
|
573
573
|
isOpen: c,
|
|
574
574
|
onClose: () => {
|
|
575
|
-
r(!1),
|
|
575
|
+
r(!1), _(!1);
|
|
576
576
|
},
|
|
577
577
|
onPrimaryAction: u,
|
|
578
578
|
onSecondaryAction: () => n(y.ON_TRANSACTION_DELETE_LOGO_CANCEL),
|
|
579
|
-
primaryText:
|
|
580
|
-
secondaryText:
|
|
581
|
-
title:
|
|
579
|
+
primaryText: o.delete_button,
|
|
580
|
+
secondaryText: o.cancel_button,
|
|
581
|
+
title: a.merchant_logo_modal_title,
|
|
582
582
|
children: [
|
|
583
|
-
/* @__PURE__ */ e(x, { sx: { whiteSpace: "normal" }, variant: "Paragraph", children:
|
|
584
|
-
/* @__PURE__ */ e(x, { bold: !0, sx: { whiteSpace: "normal" }, variant: "Paragraph", children: ` ${
|
|
583
|
+
/* @__PURE__ */ e(x, { sx: { whiteSpace: "normal" }, variant: "Paragraph", children: a.merchant_logo_modal_desc }),
|
|
584
|
+
/* @__PURE__ */ e(x, { bold: !0, sx: { whiteSpace: "normal" }, variant: "Paragraph", children: ` ${a.merchant_logo_modal_desc_bold}` })
|
|
585
585
|
]
|
|
586
586
|
}
|
|
587
587
|
)
|
|
588
588
|
] }) });
|
|
589
|
-
},
|
|
590
|
-
const { onEvent: n } = w(), { updateTransaction: i } = O(), { setShouldDisableDrawerScroll: r } = J(), { common:
|
|
589
|
+
}, St = E(xt), ft = ({ transaction: t }) => {
|
|
590
|
+
const { onEvent: n } = w(), { updateTransaction: i } = O(), { setShouldDisableDrawerScroll: r } = J(), { common: o, transactions: a } = I(), s = U(), [c, _] = d.useState(!1), u = t.is_hidden, p = async () => {
|
|
591
591
|
await i({ ...t, is_hidden: !t.is_hidden }), n(
|
|
592
592
|
u ? y.ON_TRANSACTION_UNHIDDEN : y.ON_TRANSACTION_HIDDEN
|
|
593
593
|
);
|
|
594
|
-
},
|
|
594
|
+
}, m = s.palette.mode === "dark" ? "grey.800" : "grey.100";
|
|
595
595
|
return /* @__PURE__ */ e(d.Fragment, { children: t && /* @__PURE__ */ l(B, { className: "mx-txn-hide-transaction", disableGutters: !0, disablePadding: !0, children: [
|
|
596
596
|
/* @__PURE__ */ l(
|
|
597
|
-
|
|
597
|
+
W,
|
|
598
598
|
{
|
|
599
599
|
"aria-checked": u,
|
|
600
600
|
"aria-labelledby": "hide-transaction-text",
|
|
@@ -606,21 +606,21 @@ const gt = E(({ transaction: t }) => {
|
|
|
606
606
|
{
|
|
607
607
|
transaction_guid: t.guid
|
|
608
608
|
}
|
|
609
|
-
),
|
|
609
|
+
), _(!0);
|
|
610
610
|
},
|
|
611
611
|
role: "switch",
|
|
612
612
|
children: [
|
|
613
|
-
/* @__PURE__ */ e(
|
|
613
|
+
/* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(V, { sx: { bgcolor: m }, variant: "rounded", children: u ? /* @__PURE__ */ e(D, { name: "visibility_off", sx: { color: "text.primary" } }) : /* @__PURE__ */ e(D, { name: "visibility", sx: { color: "text.primary" } }) }) }),
|
|
614
614
|
/* @__PURE__ */ e(
|
|
615
615
|
$,
|
|
616
616
|
{
|
|
617
617
|
id: "hide-transaction-text",
|
|
618
|
-
primary: u ?
|
|
619
|
-
secondary: u ?
|
|
618
|
+
primary: u ? a.hide_trnx_subtitle_unhide_trnx : a.hide_trnx_subtitle_hide_trnx,
|
|
619
|
+
secondary: u ? a.hide_trnx_desc_unhiding : a.hide_trnx_desc_hiding
|
|
620
620
|
}
|
|
621
621
|
),
|
|
622
|
-
/* @__PURE__ */ e(
|
|
623
|
-
|
|
622
|
+
/* @__PURE__ */ e(Y, { "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
623
|
+
ct,
|
|
624
624
|
{
|
|
625
625
|
checked: u,
|
|
626
626
|
inputProps: { tabIndex: -1 },
|
|
@@ -635,66 +635,66 @@ const gt = E(({ transaction: t }) => {
|
|
|
635
635
|
q,
|
|
636
636
|
{
|
|
637
637
|
copy: {
|
|
638
|
-
title: u ?
|
|
638
|
+
title: u ? a.hide_trnx_subtitle_unhide_trnx : a.hide_trnx_subtitle_hide_trnx
|
|
639
639
|
},
|
|
640
640
|
isOpen: c,
|
|
641
641
|
onClose: () => {
|
|
642
|
-
r(!1),
|
|
642
|
+
r(!1), _(!1);
|
|
643
643
|
},
|
|
644
644
|
onPrimaryAction: p,
|
|
645
645
|
onSecondaryAction: () => n(
|
|
646
646
|
u ? y.ON_TRANSACTION_UNHIDE_CANCEL_CLICK : y.ON_TRANSACTION_HIDE_CANCEL_CLICK
|
|
647
647
|
),
|
|
648
|
-
primaryText: u ?
|
|
649
|
-
secondaryText:
|
|
650
|
-
children: /* @__PURE__ */ e(x, { truncate: !1, variant: "Paragraph", children: u ?
|
|
648
|
+
primaryText: u ? o.unhide_button : o.hide_button,
|
|
649
|
+
secondaryText: o.cancel_button,
|
|
650
|
+
children: /* @__PURE__ */ e(x, { truncate: !1, variant: "Paragraph", children: u ? a.hide_trnx_desc_unhiding : a.hide_trnx_desc_hiding })
|
|
651
651
|
}
|
|
652
652
|
)
|
|
653
653
|
] }) });
|
|
654
|
-
},
|
|
655
|
-
const { amount: n, description: i, isIncome: r, merchant_guid:
|
|
654
|
+
}, At = E(ft), Ge = ({ transaction: t }) => {
|
|
655
|
+
const { amount: n, description: i, isIncome: r, merchant_guid: o, payee: a, top_level_category_guid: s } = t;
|
|
656
656
|
return /* @__PURE__ */ l(v, { className: "mx-txn-amount-header", direction: "row", gap: 12, px: 16, py: 24, children: [
|
|
657
657
|
/* @__PURE__ */ e(
|
|
658
|
-
|
|
658
|
+
Ne,
|
|
659
659
|
{
|
|
660
660
|
categoryGuid: s || "",
|
|
661
|
-
merchantGuid:
|
|
661
|
+
merchantGuid: o || "",
|
|
662
662
|
size: 64
|
|
663
663
|
}
|
|
664
664
|
),
|
|
665
665
|
/* @__PURE__ */ l(v, { overflow: "hidden'", children: [
|
|
666
|
-
/* @__PURE__ */ e(x, { bold: !0, mb: 4, truncate: !0, variant: "Body", children: i ||
|
|
667
|
-
/* @__PURE__ */ l(
|
|
666
|
+
/* @__PURE__ */ e(x, { bold: !0, mb: 4, truncate: !0, variant: "Body", children: i || a }),
|
|
667
|
+
/* @__PURE__ */ l(X, { color: r ? "success.main" : "text.primary", truncate: !0, variant: "H1", children: [
|
|
668
668
|
r ? "+" : "",
|
|
669
|
-
|
|
669
|
+
j(n, "0,0.00")
|
|
670
670
|
] })
|
|
671
671
|
] })
|
|
672
672
|
] });
|
|
673
|
-
},
|
|
674
|
-
const { onEvent: n } = w(), { updateTransaction: i } = O(), { updateManualTransaction: r } = J(), { common:
|
|
673
|
+
}, Nt = ({ transaction: t }) => {
|
|
674
|
+
const { onEvent: n } = w(), { updateTransaction: i } = O(), { updateManualTransaction: r } = J(), { common: o, transactions: a } = I(), s = U(), [c, _] = d.useState(!1), [u, p] = d.useState("");
|
|
675
675
|
d.useEffect(() => {
|
|
676
676
|
c && p(t.memo ? t.memo : "");
|
|
677
677
|
}, [c]);
|
|
678
|
-
const
|
|
678
|
+
const m = async () => {
|
|
679
679
|
if (t.is_manual && !t.guid) {
|
|
680
|
-
r({ ...t, memo: u }),
|
|
680
|
+
r({ ...t, memo: u }), _(!1);
|
|
681
681
|
return;
|
|
682
682
|
}
|
|
683
|
-
await i({ ...t, memo: u }), n(H.TRANSACTION_DETAILS_CLICK_MEMO, { transaction_guid: t.guid }),
|
|
683
|
+
await i({ ...t, memo: u }), n(H.TRANSACTION_DETAILS_CLICK_MEMO, { transaction_guid: t.guid }), _(!1);
|
|
684
684
|
}, g = s.palette.mode === "dark" ? "grey.800" : "grey.100";
|
|
685
685
|
return /* @__PURE__ */ l(B, { className: "mx-txn-memo-action", disableGutters: !0, disablePadding: !0, children: [
|
|
686
686
|
/* @__PURE__ */ l(
|
|
687
|
-
|
|
687
|
+
W,
|
|
688
688
|
{
|
|
689
689
|
onClick: () => {
|
|
690
|
-
n(y.ON_TRANSACTION_MEMO_CLICK),
|
|
690
|
+
n(y.ON_TRANSACTION_MEMO_CLICK), _(!0);
|
|
691
691
|
},
|
|
692
692
|
children: [
|
|
693
|
-
/* @__PURE__ */ e(
|
|
693
|
+
/* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(V, { sx: { bgcolor: g }, variant: "rounded", children: /* @__PURE__ */ e(D, { name: "article", sx: { color: "text.primary" } }) }) }),
|
|
694
694
|
/* @__PURE__ */ e(
|
|
695
695
|
$,
|
|
696
696
|
{
|
|
697
|
-
primary:
|
|
697
|
+
primary: a.memo_title,
|
|
698
698
|
primaryTypographyProps: { variant: "XSmall" },
|
|
699
699
|
secondary: /* @__PURE__ */ e(
|
|
700
700
|
x,
|
|
@@ -702,34 +702,34 @@ const gt = E(({ transaction: t }) => {
|
|
|
702
702
|
bold: !0,
|
|
703
703
|
sx: { overflowWrap: "break-word", whiteSpace: "wrap", color: "text.primary" },
|
|
704
704
|
variant: "Body",
|
|
705
|
-
children: t.memo ? t.memo :
|
|
705
|
+
children: t.memo ? t.memo : a.memo_desc
|
|
706
706
|
}
|
|
707
707
|
)
|
|
708
708
|
}
|
|
709
709
|
),
|
|
710
|
-
/* @__PURE__ */ e(
|
|
710
|
+
/* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(D, { name: "chevron_right", sx: { color: "text.primary" } }) })
|
|
711
711
|
]
|
|
712
712
|
}
|
|
713
713
|
),
|
|
714
714
|
/* @__PURE__ */ l(
|
|
715
715
|
ie,
|
|
716
716
|
{
|
|
717
|
-
ariaLabelClose:
|
|
717
|
+
ariaLabelClose: o.close_aria,
|
|
718
718
|
isOpen: c,
|
|
719
|
-
onClose: () =>
|
|
720
|
-
onPrimaryAction:
|
|
721
|
-
title:
|
|
719
|
+
onClose: () => _(!1),
|
|
720
|
+
onPrimaryAction: m,
|
|
721
|
+
title: a.memo_title,
|
|
722
722
|
children: [
|
|
723
723
|
/* @__PURE__ */ e(Ge, { transaction: t }),
|
|
724
724
|
/* @__PURE__ */ e(
|
|
725
|
-
|
|
725
|
+
Le,
|
|
726
726
|
{
|
|
727
|
-
"aria-label":
|
|
727
|
+
"aria-label": a.memo_desc_aria,
|
|
728
728
|
focused: !0,
|
|
729
729
|
multiline: !0,
|
|
730
730
|
name: "memo",
|
|
731
731
|
onChange: (h) => p(h.target.value),
|
|
732
|
-
placeholder:
|
|
732
|
+
placeholder: a.memo_desc,
|
|
733
733
|
rows: 4,
|
|
734
734
|
sx: { mx: 16, width: "calc(100% - 32px)" },
|
|
735
735
|
value: u
|
|
@@ -739,38 +739,38 @@ const gt = E(({ transaction: t }) => {
|
|
|
739
739
|
}
|
|
740
740
|
)
|
|
741
741
|
] });
|
|
742
|
-
},
|
|
742
|
+
}, It = E(Nt), vt = ({
|
|
743
743
|
index: t,
|
|
744
744
|
onDeleteRow: n,
|
|
745
745
|
onCategoryChanged: i,
|
|
746
746
|
onUpdateAmount: r,
|
|
747
|
-
split:
|
|
747
|
+
split: o
|
|
748
748
|
}) => {
|
|
749
|
-
const { onEvent:
|
|
750
|
-
isNaN(Number(h)) || (
|
|
749
|
+
const { onEvent: a } = w(), { transactions: s } = I(), [c, _] = d.useState(`${o.amount}`), [u, p] = d.useState(!1), m = t === 0, g = (h) => {
|
|
750
|
+
isNaN(Number(h)) || (_(h), r(t, Number(h)));
|
|
751
751
|
};
|
|
752
752
|
return /* @__PURE__ */ l(F, { bgcolor: "background.paper", className: "mx-txn-split-manager-row", pb: 4, px: 8, children: [
|
|
753
|
-
/* @__PURE__ */ l(
|
|
754
|
-
/* @__PURE__ */ e(
|
|
753
|
+
/* @__PURE__ */ l(Se, { alignItems: m ? "center" : "start", container: !0, children: [
|
|
754
|
+
/* @__PURE__ */ e(Se, { item: !0, xs: 7, children: /* @__PURE__ */ l(v, { alignItems: "start", children: [
|
|
755
755
|
/* @__PURE__ */ e(
|
|
756
756
|
oe,
|
|
757
757
|
{
|
|
758
758
|
endIcon: /* @__PURE__ */ e(Re, {}),
|
|
759
759
|
onClick: () => p(!0),
|
|
760
|
-
startIcon: /* @__PURE__ */ e(
|
|
760
|
+
startIcon: /* @__PURE__ */ e(Ie, { categoryGuid: o.top_level_category_guid }),
|
|
761
761
|
sx: { px: 12, py: 8 },
|
|
762
|
-
children:
|
|
762
|
+
children: o.category
|
|
763
763
|
}
|
|
764
764
|
),
|
|
765
|
-
/* @__PURE__ */ e(F, { children: !
|
|
766
|
-
/* @__PURE__ */ e("span", { "aria-label": "error", role: "img", children: /* @__PURE__ */ e(
|
|
765
|
+
/* @__PURE__ */ e(F, { children: !o.category_guid && /* @__PURE__ */ l(v, { color: "error.main", direction: "row", gap: 8, p: 12, children: [
|
|
766
|
+
/* @__PURE__ */ e("span", { "aria-label": "error", role: "img", children: /* @__PURE__ */ e(_e, { sx: { fontSize: 15 } }) }),
|
|
767
767
|
/* @__PURE__ */ e(x, { variant: "Small", children: s.split_transaction_errors_select_category })
|
|
768
768
|
] }) })
|
|
769
769
|
] }) }),
|
|
770
|
-
/* @__PURE__ */ e(
|
|
770
|
+
/* @__PURE__ */ e(Se, { item: !0, xs: 5, children: m ? /* @__PURE__ */ e("div", { className: "mx-txn-split-manager-row-top-container", children: /* @__PURE__ */ e(x, { children: j(o.amount, "0,0.00") }) }) : /* @__PURE__ */ l(v, { alignItems: "start", children: [
|
|
771
771
|
/* @__PURE__ */ l(v, { alignItems: "start", direction: "row", gap: 8, children: [
|
|
772
772
|
/* @__PURE__ */ e(
|
|
773
|
-
|
|
773
|
+
lt,
|
|
774
774
|
{
|
|
775
775
|
amount: c,
|
|
776
776
|
ariaLabel: s.split_transaction_edit_split_amount,
|
|
@@ -790,15 +790,15 @@ const gt = E(({ transaction: t }) => {
|
|
|
790
790
|
"aria-label": s.split_transaction_delete_split_btn,
|
|
791
791
|
color: "secondary",
|
|
792
792
|
onClick: () => {
|
|
793
|
-
|
|
793
|
+
a(y.ON_TRANSACTION_SPLIT_DELETE_CLICK), n(t);
|
|
794
794
|
},
|
|
795
795
|
sx: { w: 44, h: 44 },
|
|
796
|
-
children: /* @__PURE__ */ e(
|
|
796
|
+
children: /* @__PURE__ */ e(me, {})
|
|
797
797
|
}
|
|
798
798
|
)
|
|
799
799
|
] }),
|
|
800
800
|
!c && /* @__PURE__ */ l(v, { color: "error.main", direction: "row", gap: 8, py: 12, children: [
|
|
801
|
-
/* @__PURE__ */ e("span", { "aria-label": "error", role: "img", children: /* @__PURE__ */ e(
|
|
801
|
+
/* @__PURE__ */ e("span", { "aria-label": "error", role: "img", children: /* @__PURE__ */ e(_e, { sx: { fontSize: 15 } }) }),
|
|
802
802
|
/* @__PURE__ */ e(x, { variant: "Small", children: s.split_transaction_errors_enter_an_amount })
|
|
803
803
|
] })
|
|
804
804
|
] }) })
|
|
@@ -806,7 +806,7 @@ const gt = E(({ transaction: t }) => {
|
|
|
806
806
|
/* @__PURE__ */ e(
|
|
807
807
|
Pe,
|
|
808
808
|
{
|
|
809
|
-
initialSelected:
|
|
809
|
+
initialSelected: o.category_guid,
|
|
810
810
|
onClose: () => p(!1),
|
|
811
811
|
onSelect: (h) => {
|
|
812
812
|
i(t, h), p(!1);
|
|
@@ -816,30 +816,30 @@ const gt = E(({ transaction: t }) => {
|
|
|
816
816
|
}
|
|
817
817
|
)
|
|
818
818
|
] });
|
|
819
|
-
},
|
|
819
|
+
}, Et = E(vt), Dt = ({
|
|
820
820
|
onAddSplit: t,
|
|
821
821
|
onCategoryChanged: n,
|
|
822
822
|
onDeleteSplit: i,
|
|
823
823
|
onUpdateAmount: r,
|
|
824
|
-
splits:
|
|
825
|
-
transaction:
|
|
824
|
+
splits: o,
|
|
825
|
+
transaction: a
|
|
826
826
|
}) => {
|
|
827
|
-
const { transactions: s } = I(), { onEvent: c } = w(), [
|
|
827
|
+
const { transactions: s } = I(), { onEvent: c } = w(), [_, u] = d.useState(""), { announce: p, ariaLive: m } = pe();
|
|
828
828
|
return d.useEffect(() => {
|
|
829
|
-
if (
|
|
829
|
+
if (o.length <= 1)
|
|
830
830
|
u(s.split_transaction_errors_min_splits), p(s.split_transaction_errors_min_splits);
|
|
831
|
-
else if (
|
|
831
|
+
else if (o[0].amount < 0) {
|
|
832
832
|
const g = N(
|
|
833
833
|
s.split_transaction_errors_totals_must_equal_amount,
|
|
834
|
-
|
|
834
|
+
j(a.amount, "0,0.00")
|
|
835
835
|
);
|
|
836
836
|
u(g), p(g);
|
|
837
837
|
} else
|
|
838
838
|
u(""), p("");
|
|
839
|
-
}, [
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
839
|
+
}, [o]), /* @__PURE__ */ l(F, { className: "mx-txn-split-manager", children: [
|
|
840
|
+
m,
|
|
841
|
+
o.map((g, h) => /* @__PURE__ */ e(
|
|
842
|
+
Et,
|
|
843
843
|
{
|
|
844
844
|
index: h,
|
|
845
845
|
onCategoryChanged: n,
|
|
@@ -849,9 +849,9 @@ const gt = E(({ transaction: t }) => {
|
|
|
849
849
|
},
|
|
850
850
|
h
|
|
851
851
|
)),
|
|
852
|
-
|
|
853
|
-
/* @__PURE__ */ e("span", { "aria-label": "error", role: "img", children: /* @__PURE__ */ e(
|
|
854
|
-
/* @__PURE__ */ e(x, { variant: "Small", children:
|
|
852
|
+
_ && /* @__PURE__ */ l(v, { color: "error.main", direction: "row", gap: 8, p: 16, children: [
|
|
853
|
+
/* @__PURE__ */ e("span", { "aria-label": "error", role: "img", children: /* @__PURE__ */ e(_e, { sx: { fontSize: 15 } }) }),
|
|
854
|
+
/* @__PURE__ */ e(x, { variant: "Small", children: _ })
|
|
855
855
|
] }),
|
|
856
856
|
/* @__PURE__ */ e(F, { p: 16, children: /* @__PURE__ */ e(
|
|
857
857
|
oe,
|
|
@@ -864,8 +864,8 @@ const gt = E(({ transaction: t }) => {
|
|
|
864
864
|
}
|
|
865
865
|
) })
|
|
866
866
|
] });
|
|
867
|
-
},
|
|
868
|
-
const { onEvent: n } = w(), { announce: i, ariaLive: r } = pe(), { splitTransaction:
|
|
867
|
+
}, Ot = E(Dt), Lt = ({ transaction: t }) => {
|
|
868
|
+
const { onEvent: n } = w(), { announce: i, ariaLive: r } = pe(), { splitTransaction: o, unSplitTransaction: a } = O(), { common: s, transactions: c } = I(), { setShouldDisableDrawerScroll: _ } = J(), { categories: u } = we(), p = U(), m = {
|
|
869
869
|
...t,
|
|
870
870
|
amount: t.amount - 1,
|
|
871
871
|
guid: "",
|
|
@@ -920,26 +920,26 @@ const gt = E(({ transaction: t }) => {
|
|
|
920
920
|
k(!0);
|
|
921
921
|
return;
|
|
922
922
|
}
|
|
923
|
-
T([{ ...
|
|
923
|
+
T([{ ...m }, { ...g }]), n(H.TRANSACTION_DETAILS_CLICK_SPLIT, {
|
|
924
924
|
transaction_guid: t.guid
|
|
925
925
|
}), f(!0);
|
|
926
926
|
}, Z = async () => {
|
|
927
|
-
n(y.ON_TRANSACTION_SPLIT_SAVE_CLICK), await
|
|
927
|
+
n(y.ON_TRANSACTION_SPLIT_SAVE_CLICK), await o({ ...t, has_been_split: !0 }, S), f(!1);
|
|
928
928
|
}, ee = async () => {
|
|
929
|
-
n(y.ON_TRANSACTION_SPLIT_CANCEL_CLICK), T([{ ...
|
|
929
|
+
n(y.ON_TRANSACTION_SPLIT_CANCEL_CLICK), T([{ ...m }, { ...g }]), f(!1);
|
|
930
930
|
}, K = async () => {
|
|
931
931
|
n(H.TRANSACTION_DETAILS_CLICK_UNSPLIT, {
|
|
932
932
|
transaction_guid: t.guid
|
|
933
933
|
});
|
|
934
934
|
const b = t.parent_guid ?? t.guid;
|
|
935
|
-
await
|
|
935
|
+
await a(b);
|
|
936
936
|
}, te = d.useMemo(() => {
|
|
937
937
|
const b = S.some((A) => !A.category_guid), P = S.some((A) => A.amount <= 0);
|
|
938
938
|
return b || P;
|
|
939
939
|
}, [S]), ye = p.palette.mode === "dark" ? "grey.800" : "grey.100";
|
|
940
940
|
return /* @__PURE__ */ e(d.Fragment, { children: t && /* @__PURE__ */ l(B, { disableGutters: !0, disablePadding: !0, children: [
|
|
941
|
-
/* @__PURE__ */ l(
|
|
942
|
-
/* @__PURE__ */ e(
|
|
941
|
+
/* @__PURE__ */ l(W, { onClick: he, children: [
|
|
942
|
+
/* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(V, { sx: { bgcolor: ye }, variant: "rounded", children: /* @__PURE__ */ e(D, { name: "call_split", sx: { color: "text.primary" } }) }) }),
|
|
943
943
|
/* @__PURE__ */ e(
|
|
944
944
|
$,
|
|
945
945
|
{
|
|
@@ -947,7 +947,7 @@ const gt = E(({ transaction: t }) => {
|
|
|
947
947
|
secondary: t.has_been_split || t.parent_guid ? c.split_transaction_unsplit_subtitle : c.split_transaction_desc
|
|
948
948
|
}
|
|
949
949
|
),
|
|
950
|
-
/* @__PURE__ */ e(
|
|
950
|
+
/* @__PURE__ */ e(Y, { children: t.has_been_split || t.parent_guid ? /* @__PURE__ */ e(D, { name: "delete" }) : /* @__PURE__ */ e(D, { name: "chevron_right", sx: { color: "text.primary" } }) })
|
|
951
951
|
] }),
|
|
952
952
|
/* @__PURE__ */ l(
|
|
953
953
|
ie,
|
|
@@ -964,7 +964,7 @@ const gt = E(({ transaction: t }) => {
|
|
|
964
964
|
r,
|
|
965
965
|
/* @__PURE__ */ e(Ge, { transaction: t }),
|
|
966
966
|
/* @__PURE__ */ e(
|
|
967
|
-
|
|
967
|
+
Ot,
|
|
968
968
|
{
|
|
969
969
|
onAddSplit: R,
|
|
970
970
|
onCategoryChanged: ge,
|
|
@@ -983,7 +983,7 @@ const gt = E(({ transaction: t }) => {
|
|
|
983
983
|
copy: { title: c.split_transaction_unsplit_title },
|
|
984
984
|
isOpen: L,
|
|
985
985
|
onClose: () => {
|
|
986
|
-
|
|
986
|
+
_(!1), k(!1);
|
|
987
987
|
},
|
|
988
988
|
onPrimaryAction: K,
|
|
989
989
|
onSecondaryAction: () => {
|
|
@@ -991,24 +991,24 @@ const gt = E(({ transaction: t }) => {
|
|
|
991
991
|
},
|
|
992
992
|
primaryText: s.delete_button,
|
|
993
993
|
secondaryText: s.cancel_button,
|
|
994
|
-
children: /* @__PURE__ */ e(
|
|
994
|
+
children: /* @__PURE__ */ e(X, { variant: "Paragraph", children: N(
|
|
995
995
|
c.split_transaction_unsplit_description,
|
|
996
996
|
t.description
|
|
997
997
|
) })
|
|
998
998
|
}
|
|
999
999
|
)
|
|
1000
1000
|
] }) });
|
|
1001
|
-
},
|
|
1002
|
-
const t =
|
|
1001
|
+
}, wt = E(Lt), Rt = () => {
|
|
1002
|
+
const t = at(), { onEvent: n } = w(), { addTag: i } = O(), { transactions: r } = I(), [o, a] = d.useState(!1), [s, c] = d.useState(""), [_, u] = d.useState(""), p = d.useRef(null);
|
|
1003
1003
|
d.useEffect(() => {
|
|
1004
|
-
|
|
1005
|
-
}, [
|
|
1006
|
-
const
|
|
1004
|
+
o && p?.current?.focus();
|
|
1005
|
+
}, [o]);
|
|
1006
|
+
const m = () => {
|
|
1007
1007
|
n(
|
|
1008
|
-
|
|
1009
|
-
),
|
|
1008
|
+
o ? y.ON_TRANSACTION_TAGS_TAG_ADD_CANCEL_CLICK : y.ON_TRANSACTION_TAGS_TAG_ADD_CLICK
|
|
1009
|
+
), o || c(""), a(!o);
|
|
1010
1010
|
}, g = async () => {
|
|
1011
|
-
n(y.ON_TRANSACTION_TAGS_TAG_ADDED), await i(s),
|
|
1011
|
+
n(y.ON_TRANSACTION_TAGS_TAG_ADDED), await i(s), a(!1);
|
|
1012
1012
|
};
|
|
1013
1013
|
return d.useEffect(() => {
|
|
1014
1014
|
u(s.length > 40 ? r.tags_error_name_must_be_40_chars : "");
|
|
@@ -1027,9 +1027,9 @@ const gt = E(({ transaction: t }) => {
|
|
|
1027
1027
|
/* @__PURE__ */ e(
|
|
1028
1028
|
oe,
|
|
1029
1029
|
{
|
|
1030
|
-
"aria-expanded":
|
|
1030
|
+
"aria-expanded": o,
|
|
1031
1031
|
"aria-label": r.tags_add_tag_btn_aria,
|
|
1032
|
-
onClick:
|
|
1032
|
+
onClick: m,
|
|
1033
1033
|
children: r.tags_add_tag_btn
|
|
1034
1034
|
}
|
|
1035
1035
|
)
|
|
@@ -1040,13 +1040,13 @@ const gt = E(({ transaction: t }) => {
|
|
|
1040
1040
|
q,
|
|
1041
1041
|
{
|
|
1042
1042
|
copy: { title: r.tags_add_tag_btn },
|
|
1043
|
-
isOpen:
|
|
1044
|
-
onClose: () =>
|
|
1043
|
+
isOpen: o,
|
|
1044
|
+
onClose: () => a(!1),
|
|
1045
1045
|
onPrimaryAction: g,
|
|
1046
|
-
onSecondaryAction: () =>
|
|
1046
|
+
onSecondaryAction: () => a(!1),
|
|
1047
1047
|
children: [
|
|
1048
1048
|
/* @__PURE__ */ e(
|
|
1049
|
-
|
|
1049
|
+
ve,
|
|
1050
1050
|
{
|
|
1051
1051
|
"aria-label": r.tags_placeholder,
|
|
1052
1052
|
name: "add-tag",
|
|
@@ -1056,40 +1056,40 @@ const gt = E(({ transaction: t }) => {
|
|
|
1056
1056
|
value: s
|
|
1057
1057
|
}
|
|
1058
1058
|
),
|
|
1059
|
-
/* @__PURE__ */ e(
|
|
1059
|
+
/* @__PURE__ */ e(X, { id: "add-tag-error", sx: { color: "error.main" }, variant: "ParagraphSmall", children: _ })
|
|
1060
1060
|
]
|
|
1061
1061
|
}
|
|
1062
1062
|
)
|
|
1063
1063
|
] });
|
|
1064
|
-
},
|
|
1065
|
-
const { common: i, transactions: r } = I(),
|
|
1064
|
+
}, Mt = E(Rt), kt = ({ onSearchValueChanged: t, searchValue: n }) => {
|
|
1065
|
+
const { common: i, transactions: r } = I(), o = /* @__PURE__ */ e(
|
|
1066
1066
|
ne,
|
|
1067
1067
|
{
|
|
1068
1068
|
"aria-label": r.tags_cancel_search || "Search",
|
|
1069
1069
|
onClick: () => t(""),
|
|
1070
|
-
children: /* @__PURE__ */ e(
|
|
1070
|
+
children: /* @__PURE__ */ e(_e, {})
|
|
1071
1071
|
}
|
|
1072
1072
|
);
|
|
1073
1073
|
return /* @__PURE__ */ e(F, { className: "mx-txn-tag-manager-search", px: 24, py: 16, children: /* @__PURE__ */ e(
|
|
1074
|
-
|
|
1074
|
+
ve,
|
|
1075
1075
|
{
|
|
1076
1076
|
InputProps: {
|
|
1077
|
-
startAdornment: /* @__PURE__ */ e(
|
|
1078
|
-
endAdornment: /* @__PURE__ */ e(
|
|
1077
|
+
startAdornment: /* @__PURE__ */ e(De, { position: "start", children: /* @__PURE__ */ e(Je, { color: "disabled" }) }),
|
|
1078
|
+
endAdornment: /* @__PURE__ */ e(De, { position: "end", sx: { padding: 0 }, children: n ? o : null })
|
|
1079
1079
|
},
|
|
1080
1080
|
"aria-label": i.search_aria,
|
|
1081
1081
|
name: "search",
|
|
1082
|
-
onChange: (
|
|
1082
|
+
onChange: (a) => t(a.target.value),
|
|
1083
1083
|
placeholder: i.search_placeholder,
|
|
1084
1084
|
sx: { bgcolor: "background.paper", width: "100%" },
|
|
1085
1085
|
value: n
|
|
1086
1086
|
}
|
|
1087
1087
|
) });
|
|
1088
|
-
},
|
|
1089
|
-
const { onEvent: r } = w(), { removeTag:
|
|
1090
|
-
r(y.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), i && await
|
|
1088
|
+
}, Pt = E(kt), Gt = ({ onTagChecked: t, selectedTags: n, tag: i }) => {
|
|
1089
|
+
const { onEvent: r } = w(), { removeTag: o, updateTag: a } = O(), { common: s, transactions: c } = I(), [_, u] = d.useState(!1), [p, m] = d.useState(!1), [g, h] = d.useState(""), [f, L] = d.useState(""), k = async () => {
|
|
1090
|
+
r(y.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), i && await a({ ...i, name: g }), u(!1);
|
|
1091
1091
|
}, S = async () => {
|
|
1092
|
-
r(y.ON_TRANSACTION_TAGS_TAG_DELETED), await
|
|
1092
|
+
r(y.ON_TRANSACTION_TAGS_TAG_DELETED), await o(i.guid), m(!1);
|
|
1093
1093
|
};
|
|
1094
1094
|
d.useEffect(() => {
|
|
1095
1095
|
L(g.length > 40 ? c.tags_error_name_must_be_40_chars : "");
|
|
@@ -1097,7 +1097,7 @@ const gt = E(({ transaction: t }) => {
|
|
|
1097
1097
|
const T = () => {
|
|
1098
1098
|
r(y.ON_TRANSACTION_TAGS_TAG_EDIT_CLICK), h(i.name), u(!0);
|
|
1099
1099
|
}, R = () => {
|
|
1100
|
-
r(y.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK),
|
|
1100
|
+
r(y.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK), m(!0);
|
|
1101
1101
|
};
|
|
1102
1102
|
return /* @__PURE__ */ l(
|
|
1103
1103
|
B,
|
|
@@ -1121,20 +1121,20 @@ const gt = E(({ transaction: t }) => {
|
|
|
1121
1121
|
"aria-label": `Delete ${i.name} tag`,
|
|
1122
1122
|
color: "secondary",
|
|
1123
1123
|
onClick: R,
|
|
1124
|
-
children: /* @__PURE__ */ e(
|
|
1124
|
+
children: /* @__PURE__ */ e(me, { color: "secondary" })
|
|
1125
1125
|
}
|
|
1126
1126
|
)
|
|
1127
1127
|
] }),
|
|
1128
1128
|
children: [
|
|
1129
1129
|
/* @__PURE__ */ l(
|
|
1130
|
-
|
|
1130
|
+
W,
|
|
1131
1131
|
{
|
|
1132
1132
|
"aria-checked": n.includes(i.guid),
|
|
1133
1133
|
onClick: () => t(i.guid),
|
|
1134
1134
|
role: "checkbox",
|
|
1135
1135
|
children: [
|
|
1136
|
-
/* @__PURE__ */ e(
|
|
1137
|
-
|
|
1136
|
+
/* @__PURE__ */ e(Y, { sx: { ml: 0 }, children: /* @__PURE__ */ e(
|
|
1137
|
+
nt,
|
|
1138
1138
|
{
|
|
1139
1139
|
"aria-hidden": !0,
|
|
1140
1140
|
checked: n.includes(i.guid),
|
|
@@ -1150,13 +1150,13 @@ const gt = E(({ transaction: t }) => {
|
|
|
1150
1150
|
q,
|
|
1151
1151
|
{
|
|
1152
1152
|
copy: { title: "Update tag name" },
|
|
1153
|
-
isOpen:
|
|
1153
|
+
isOpen: _,
|
|
1154
1154
|
onClose: () => u(!1),
|
|
1155
1155
|
onPrimaryAction: k,
|
|
1156
1156
|
onSecondaryAction: () => u(!1),
|
|
1157
1157
|
children: [
|
|
1158
1158
|
/* @__PURE__ */ e(
|
|
1159
|
-
|
|
1159
|
+
ve,
|
|
1160
1160
|
{
|
|
1161
1161
|
"aria-describedby": f ? "update-tag-error" : void 0,
|
|
1162
1162
|
"aria-label": c.tags_update_the_tag_name,
|
|
@@ -1167,7 +1167,7 @@ const gt = E(({ transaction: t }) => {
|
|
|
1167
1167
|
value: g
|
|
1168
1168
|
}
|
|
1169
1169
|
),
|
|
1170
|
-
/* @__PURE__ */ e(
|
|
1170
|
+
/* @__PURE__ */ e(X, { id: "update-tag-error", sx: { color: "error.main" }, variant: "ParagraphSmall", children: f })
|
|
1171
1171
|
]
|
|
1172
1172
|
}
|
|
1173
1173
|
),
|
|
@@ -1176,7 +1176,7 @@ const gt = E(({ transaction: t }) => {
|
|
|
1176
1176
|
{
|
|
1177
1177
|
copy: { title: c.tags_delete_title },
|
|
1178
1178
|
isOpen: p,
|
|
1179
|
-
onClose: () =>
|
|
1179
|
+
onClose: () => m(!1),
|
|
1180
1180
|
onPrimaryAction: S,
|
|
1181
1181
|
onSecondaryAction: () => r(y.ON_TRANSACTION_TAGS_TAG_DELETE_CANCEL_CLICK),
|
|
1182
1182
|
primaryText: s.delete_button,
|
|
@@ -1187,53 +1187,53 @@ const gt = E(({ transaction: t }) => {
|
|
|
1187
1187
|
]
|
|
1188
1188
|
}
|
|
1189
1189
|
);
|
|
1190
|
-
},
|
|
1191
|
-
const { tags: i } = O(), [r,
|
|
1190
|
+
}, Bt = E(Gt), $t = ({ selectedTags: t, onTagChecked: n }) => {
|
|
1191
|
+
const { tags: i } = O(), [r, o] = d.useState(""), a = i.filter(
|
|
1192
1192
|
(s) => s.name.toLowerCase().includes(r.toLowerCase())
|
|
1193
1193
|
);
|
|
1194
1194
|
return /* @__PURE__ */ l("div", { className: "mx-txn-tag-manager", children: [
|
|
1195
1195
|
/* @__PURE__ */ e(
|
|
1196
|
-
|
|
1196
|
+
Pt,
|
|
1197
1197
|
{
|
|
1198
|
-
onSearchValueChanged: (s) =>
|
|
1198
|
+
onSearchValueChanged: (s) => o(s),
|
|
1199
1199
|
searchValue: r
|
|
1200
1200
|
}
|
|
1201
1201
|
),
|
|
1202
|
-
/* @__PURE__ */ e(
|
|
1203
|
-
/* @__PURE__ */ e(le, { sx: { boxShadow: "none" }, children: /* @__PURE__ */ e(ue, { children:
|
|
1204
|
-
/* @__PURE__ */ e(
|
|
1202
|
+
/* @__PURE__ */ e(Mt, {}),
|
|
1203
|
+
/* @__PURE__ */ e(le, { sx: { boxShadow: "none" }, children: /* @__PURE__ */ e(ue, { children: a.map((s) => /* @__PURE__ */ l(d.Fragment, { children: [
|
|
1204
|
+
/* @__PURE__ */ e(Bt, { onTagChecked: n, selectedTags: t, tag: s }),
|
|
1205
1205
|
/* @__PURE__ */ e(de, { sx: { ml: 24 } })
|
|
1206
1206
|
] }, s.guid)) }) })
|
|
1207
1207
|
] });
|
|
1208
|
-
},
|
|
1209
|
-
const { onEvent: n } = w(), { tags: i, updateTaggings: r, updateTransaction:
|
|
1208
|
+
}, Kt = E($t), Ft = ({ transaction: t }) => {
|
|
1209
|
+
const { onEvent: n } = w(), { tags: i, updateTaggings: r, updateTransaction: o } = O(), { common: a, transactions: s } = I(), { updateManualTransaction: c } = J(), _ = U(), [u, p] = d.useState(!1), [m, g] = d.useState(t.tags);
|
|
1210
1210
|
d.useEffect(() => {
|
|
1211
1211
|
g(t.tags);
|
|
1212
1212
|
}, [u, t]);
|
|
1213
1213
|
const h = (S) => {
|
|
1214
|
-
const T = [...
|
|
1214
|
+
const T = [...m], R = m.indexOf(S);
|
|
1215
1215
|
R >= 0 ? T.splice(R, 1) : T.push(S), g(T);
|
|
1216
1216
|
}, f = async () => {
|
|
1217
1217
|
if (t.is_manual && !t.guid) {
|
|
1218
|
-
c({ ...t, tags:
|
|
1218
|
+
c({ ...t, tags: m }), p(!1);
|
|
1219
1219
|
return;
|
|
1220
1220
|
}
|
|
1221
|
-
await r(
|
|
1221
|
+
await r(m, t.guid), await o({ ...t, tags: m }), n(H.TRANSACTION_DETAILS_CLICK_TAGS, { transaction_guid: t.guid }), p(!1);
|
|
1222
1222
|
}, L = d.useMemo(
|
|
1223
1223
|
() => t.tags.map(
|
|
1224
1224
|
(S, T, R) => `${i.find((C) => C.guid === S)?.name}${T < R.length - 1 ? " / " : ""}`
|
|
1225
1225
|
),
|
|
1226
1226
|
[i, t]
|
|
1227
|
-
), k =
|
|
1227
|
+
), k = _.palette.mode === "dark" ? "grey.800" : "grey.100";
|
|
1228
1228
|
return /* @__PURE__ */ l(B, { disableGutters: !0, disablePadding: !0, children: [
|
|
1229
1229
|
/* @__PURE__ */ l(
|
|
1230
|
-
|
|
1230
|
+
W,
|
|
1231
1231
|
{
|
|
1232
1232
|
onClick: () => {
|
|
1233
1233
|
n(y.ON_TRANSACTION_TAGS_CLICK), p(!0);
|
|
1234
1234
|
},
|
|
1235
1235
|
children: [
|
|
1236
|
-
/* @__PURE__ */ e(
|
|
1236
|
+
/* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(V, { sx: { bgcolor: k }, variant: "rounded", children: /* @__PURE__ */ e(D, { name: "local_offer", sx: { color: "text.primary" } }) }) }),
|
|
1237
1237
|
/* @__PURE__ */ e(
|
|
1238
1238
|
$,
|
|
1239
1239
|
{
|
|
@@ -1242,48 +1242,48 @@ const gt = E(({ transaction: t }) => {
|
|
|
1242
1242
|
secondary: /* @__PURE__ */ e(x, { bold: !0, sx: { color: "text.primary" }, variant: "Body", children: t.tags?.length > 0 ? L : s.tags_desc })
|
|
1243
1243
|
}
|
|
1244
1244
|
),
|
|
1245
|
-
/* @__PURE__ */ e(
|
|
1245
|
+
/* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(D, { name: "chevron_right", sx: { color: "text.primary" } }) })
|
|
1246
1246
|
]
|
|
1247
1247
|
}
|
|
1248
1248
|
),
|
|
1249
1249
|
/* @__PURE__ */ e(
|
|
1250
1250
|
ie,
|
|
1251
1251
|
{
|
|
1252
|
-
ariaLabelClose:
|
|
1252
|
+
ariaLabelClose: a.close_aria,
|
|
1253
1253
|
isOpen: u,
|
|
1254
1254
|
onClose: () => p(!1),
|
|
1255
1255
|
onPrimaryAction: f,
|
|
1256
|
-
primaryText:
|
|
1257
|
-
secondaryText:
|
|
1256
|
+
primaryText: a.save_button,
|
|
1257
|
+
secondaryText: a.cancel_button,
|
|
1258
1258
|
title: s.tags_title,
|
|
1259
|
-
children: /* @__PURE__ */ e(
|
|
1259
|
+
children: /* @__PURE__ */ e(Kt, { onTagChecked: h, selectedTags: m })
|
|
1260
1260
|
}
|
|
1261
1261
|
)
|
|
1262
1262
|
] });
|
|
1263
|
-
},
|
|
1264
|
-
const { updateTransaction: i } = O(), { common: r, transactions:
|
|
1263
|
+
}, Ht = E(Ft), Ut = ({ transaction: t, viewOnly: n = !1 }) => {
|
|
1264
|
+
const { updateTransaction: i } = O(), { common: r, transactions: o } = I(), { onEvent: a } = w(), { announce: s, ariaLive: c } = pe(), [_, u] = d.useState(!1), [p, m] = d.useState(""), g = d.useRef(null);
|
|
1265
1265
|
d.useEffect(() => {
|
|
1266
|
-
|
|
1267
|
-
}, [
|
|
1266
|
+
_ && (m(t.description), g?.current?.focus());
|
|
1267
|
+
}, [_]);
|
|
1268
1268
|
const h = () => {
|
|
1269
|
-
u(!0),
|
|
1269
|
+
u(!0), a(y.ON_TRANSACTION_DESCRIPTION_EDIT_CLICK), setTimeout(() => document.getElementById("transaction-description-input")?.focus(), 0);
|
|
1270
1270
|
}, f = async () => {
|
|
1271
|
-
|
|
1271
|
+
a(H.TRANSACTION_DETAILS_CLICK_DESCRIPTION, {
|
|
1272
1272
|
transaction_guid: t.guid
|
|
1273
|
-
}), await i({ ...t, description: p }), u(!1), s(`${
|
|
1273
|
+
}), await i({ ...t, description: p }), u(!1), s(`${o.payee_title}: ${p}`), setTimeout(() => document.getElementById("transaction-description-edit-button")?.focus(), 0);
|
|
1274
1274
|
};
|
|
1275
1275
|
return /* @__PURE__ */ l(F, { className: "mx-txn-transaction-description", children: [
|
|
1276
1276
|
c,
|
|
1277
|
-
|
|
1277
|
+
_ ? /* @__PURE__ */ l(ze, { row: !0, children: [
|
|
1278
1278
|
/* @__PURE__ */ e(
|
|
1279
|
-
|
|
1279
|
+
Le,
|
|
1280
1280
|
{
|
|
1281
|
-
"aria-label":
|
|
1281
|
+
"aria-label": o.payee_title,
|
|
1282
1282
|
id: "transaction-description-input",
|
|
1283
1283
|
inputProps: { maxLength: 140 },
|
|
1284
|
-
label:
|
|
1285
|
-
name:
|
|
1286
|
-
onChange: (L) =>
|
|
1284
|
+
label: o.payee_title,
|
|
1285
|
+
name: o.payee_title,
|
|
1286
|
+
onChange: (L) => m(L.target.value),
|
|
1287
1287
|
ref: g,
|
|
1288
1288
|
sx: {
|
|
1289
1289
|
backgroundColor: "background.paper",
|
|
@@ -1312,7 +1312,7 @@ const gt = E(({ transaction: t }) => {
|
|
|
1312
1312
|
!n && /* @__PURE__ */ e(
|
|
1313
1313
|
ne,
|
|
1314
1314
|
{
|
|
1315
|
-
"aria-label":
|
|
1315
|
+
"aria-label": o.payee_edit,
|
|
1316
1316
|
id: "transaction-description-edit-button",
|
|
1317
1317
|
onClick: h,
|
|
1318
1318
|
sx: { color: "action.active" },
|
|
@@ -1321,8 +1321,8 @@ const gt = E(({ transaction: t }) => {
|
|
|
1321
1321
|
)
|
|
1322
1322
|
] })
|
|
1323
1323
|
] });
|
|
1324
|
-
},
|
|
1325
|
-
const { updateTransaction: n } = O(), { transactions: i } = I(), { onEvent: r } = w(),
|
|
1324
|
+
}, Vt = E(Ut), zt = ({ transaction: t }) => {
|
|
1325
|
+
const { updateTransaction: n } = O(), { transactions: i } = I(), { onEvent: r } = w(), o = U(), a = o.palette.mode === "dark", s = async () => {
|
|
1326
1326
|
r(H.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: t.guid }), await n({ ...t, is_flagged: !t.is_flagged });
|
|
1327
1327
|
};
|
|
1328
1328
|
return /* @__PURE__ */ e("div", { className: "mx-txn-transaction-flag", children: /* @__PURE__ */ e(
|
|
@@ -1330,32 +1330,32 @@ const gt = E(({ transaction: t }) => {
|
|
|
1330
1330
|
{
|
|
1331
1331
|
"aria-label": i.flag_btn_aria,
|
|
1332
1332
|
"aria-pressed": t.is_flagged,
|
|
1333
|
-
color: "warning",
|
|
1334
|
-
onClick:
|
|
1333
|
+
color: a ? "primary" : "warning",
|
|
1334
|
+
onClick: s,
|
|
1335
1335
|
selected: t.is_flagged,
|
|
1336
1336
|
sx: {
|
|
1337
1337
|
borderRadius: 6,
|
|
1338
|
-
color: a.
|
|
1338
|
+
color: a ? "common.white" : "secondary.main",
|
|
1339
1339
|
"&.Mui-selected": {
|
|
1340
|
-
color: a.
|
|
1341
|
-
backgroundColor: a.palette.warning.dark,
|
|
1340
|
+
color: a ? "primary.main" : "common.white",
|
|
1341
|
+
backgroundColor: a ? be(o.palette.primary.main, 0.25) : "warning.dark",
|
|
1342
1342
|
":hover": {
|
|
1343
|
-
color: a.
|
|
1344
|
-
backgroundColor: a.palette.warning.main
|
|
1343
|
+
color: a ? "primary.main" : "common.white",
|
|
1344
|
+
backgroundColor: a ? be(o.palette.primary.main, 0.2) : "warning.main"
|
|
1345
1345
|
}
|
|
1346
1346
|
},
|
|
1347
1347
|
":hover": {
|
|
1348
|
-
color: a.
|
|
1349
|
-
backgroundColor: a.palette.warning.light
|
|
1348
|
+
color: a ? "common.white" : "warning.contrastText",
|
|
1349
|
+
backgroundColor: a ? be(o.palette.primary.main, 0.2) : "warning.light"
|
|
1350
1350
|
}
|
|
1351
1351
|
},
|
|
1352
1352
|
value: "flagged",
|
|
1353
1353
|
children: /* @__PURE__ */ e(Ze, { color: "inherit" })
|
|
1354
1354
|
}
|
|
1355
1355
|
) });
|
|
1356
|
-
},
|
|
1356
|
+
}, Wt = E(zt), se = (t, n, i, r = !0, o = "inset") => r ? /* @__PURE__ */ l(d.Fragment, { children: [
|
|
1357
1357
|
/* @__PURE__ */ l(B, { disableGutters: !0, disablePadding: !0, children: [
|
|
1358
|
-
/* @__PURE__ */ e(
|
|
1358
|
+
/* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(V, { sx: { bgcolor: "border.light" }, variant: "rounded", children: t }) }),
|
|
1359
1359
|
/* @__PURE__ */ e(
|
|
1360
1360
|
$,
|
|
1361
1361
|
{
|
|
@@ -1365,112 +1365,112 @@ const gt = E(({ transaction: t }) => {
|
|
|
1365
1365
|
}
|
|
1366
1366
|
)
|
|
1367
1367
|
] }),
|
|
1368
|
-
/* @__PURE__ */ e(de, { variant:
|
|
1369
|
-
] }) : null,
|
|
1368
|
+
/* @__PURE__ */ e(de, { variant: o })
|
|
1369
|
+
] }) : null, Yt = ({ transaction: t }) => {
|
|
1370
1370
|
const { transactions: n } = I(), { tags: i } = O(), r = d.useMemo(() => {
|
|
1371
|
-
const
|
|
1372
|
-
return t.tags.map((
|
|
1371
|
+
const o = new Map(i.map((a) => [a.guid, a.name]));
|
|
1372
|
+
return t.tags.map((a) => o.get(a)).filter(Boolean).join(" / ");
|
|
1373
1373
|
}, [i, t.tags]);
|
|
1374
1374
|
return /* @__PURE__ */ l(ue, { sx: { "& .MuiListItem-root": { px: 24, py: 12 } }, children: [
|
|
1375
1375
|
se(
|
|
1376
1376
|
/* @__PURE__ */ e(
|
|
1377
|
-
|
|
1377
|
+
Ie,
|
|
1378
1378
|
{
|
|
1379
1379
|
categoryGuid: t.top_level_category_guid,
|
|
1380
1380
|
size: 24,
|
|
1381
1381
|
sx: { color: "text.primary" },
|
|
1382
|
-
variant:
|
|
1382
|
+
variant: Oe.Transparent
|
|
1383
1383
|
}
|
|
1384
1384
|
),
|
|
1385
1385
|
n.category_title,
|
|
1386
1386
|
/* @__PURE__ */ e(x, { bold: !0, variant: "Body", children: t.category ?? n.actions_select_a_category })
|
|
1387
1387
|
),
|
|
1388
1388
|
se(
|
|
1389
|
-
/* @__PURE__ */ e(ce, { name: "calendar_month", sx: { color: "text.primary" }, weight:
|
|
1389
|
+
/* @__PURE__ */ e(ce, { name: "calendar_month", sx: { color: "text.primary" }, weight: xe.Dark }),
|
|
1390
1390
|
n.date_title,
|
|
1391
|
-
/* @__PURE__ */ e(x, { bold: !0, variant: "Body", children: Me(
|
|
1391
|
+
/* @__PURE__ */ e(x, { bold: !0, variant: "Body", children: Me(fe(t.date), ke.YEAR_MONTH_DAY) })
|
|
1392
1392
|
),
|
|
1393
1393
|
se(
|
|
1394
|
-
/* @__PURE__ */ e(ce, { name: "article", sx: { color: "text.primary" }, weight:
|
|
1394
|
+
/* @__PURE__ */ e(ce, { name: "article", sx: { color: "text.primary" }, weight: xe.Dark }),
|
|
1395
1395
|
n.memo_title,
|
|
1396
1396
|
/* @__PURE__ */ e(x, { bold: !0, sx: { overflowWrap: "break-word", whiteSpace: "wrap" }, variant: "Body", children: t.memo ?? n.memo_desc }),
|
|
1397
1397
|
!!t.memo,
|
|
1398
1398
|
t.tags?.length > 0 ? "inset" : "fullWidth"
|
|
1399
1399
|
),
|
|
1400
1400
|
se(
|
|
1401
|
-
/* @__PURE__ */ e(ce, { name: "local_offer", sx: { color: "text.primary" }, weight:
|
|
1401
|
+
/* @__PURE__ */ e(ce, { name: "local_offer", sx: { color: "text.primary" }, weight: xe.Dark }),
|
|
1402
1402
|
n.tags_title,
|
|
1403
1403
|
/* @__PURE__ */ e(x, { bold: !0, variant: "Body", children: t.tags?.length ? r : n.tags_desc }),
|
|
1404
1404
|
!!t.tags?.length,
|
|
1405
1405
|
"fullWidth"
|
|
1406
1406
|
)
|
|
1407
1407
|
] });
|
|
1408
|
-
},
|
|
1409
|
-
bottomActions: t =
|
|
1408
|
+
}, Xt = E(Yt), jt = ({
|
|
1409
|
+
bottomActions: t = mt,
|
|
1410
1410
|
canFlagTransaction: n = !0,
|
|
1411
|
-
topActions: i =
|
|
1411
|
+
topActions: i = ut,
|
|
1412
1412
|
transaction: r
|
|
1413
1413
|
}) => {
|
|
1414
|
-
const { onEvent:
|
|
1414
|
+
const { onEvent: o } = w(), { isCopyLoaded: a } = Xe(), { userFeatures: s } = je(), c = U(), _ = r?.number && r.number.length > 4;
|
|
1415
1415
|
if (d.useEffect(
|
|
1416
|
-
() =>
|
|
1416
|
+
() => o(H.TRANSACTION_DETAILS_VIEW, { transaction_guid: r.guid }),
|
|
1417
1417
|
[]
|
|
1418
|
-
), !
|
|
1419
|
-
return /* @__PURE__ */ e(
|
|
1418
|
+
), !a)
|
|
1419
|
+
return /* @__PURE__ */ e(dt, {});
|
|
1420
1420
|
const u = Ve(s, "MX_TXN_DETAILS_VIEW_ONLY"), p = c.palette.mode === "dark" ? "grey.800" : "grey.100";
|
|
1421
1421
|
return /* @__PURE__ */ e(F, { className: "mx-txn-transaction-details", width: "100%", children: r && /* @__PURE__ */ l(v, { children: [
|
|
1422
1422
|
/* @__PURE__ */ l(v, { gap: 12, p: 24, children: [
|
|
1423
1423
|
/* @__PURE__ */ e(le, { elevation: 2, sx: { width: 64 }, children: /* @__PURE__ */ e(
|
|
1424
|
-
|
|
1424
|
+
Ne,
|
|
1425
1425
|
{
|
|
1426
1426
|
categoryGuid: r.top_level_category_guid || "",
|
|
1427
1427
|
merchantGuid: r.merchant_guid || "",
|
|
1428
1428
|
size: 64
|
|
1429
1429
|
}
|
|
1430
1430
|
) }),
|
|
1431
|
-
/* @__PURE__ */ e(
|
|
1431
|
+
/* @__PURE__ */ e(Vt, { transaction: r, viewOnly: u }),
|
|
1432
1432
|
/* @__PURE__ */ l(v, { direction: "row", justifyContent: "space-between", sx: { minHeight: 44 }, children: [
|
|
1433
|
-
/* @__PURE__ */ l(
|
|
1433
|
+
/* @__PURE__ */ l(X, { color: r.isIncome ? "success.main" : "text.primary", variant: "H1", children: [
|
|
1434
1434
|
r.isIncome ? "+" : "",
|
|
1435
|
-
|
|
1435
|
+
j(r.amount, "0,0.00")
|
|
1436
1436
|
] }),
|
|
1437
|
-
!u && n && /* @__PURE__ */ e(
|
|
1437
|
+
!u && n && /* @__PURE__ */ e(Wt, { transaction: r })
|
|
1438
1438
|
] }),
|
|
1439
1439
|
/* @__PURE__ */ l(v, { sx: { bgcolor: p, borderRadius: "4px", gap: 4, p: 8 }, children: [
|
|
1440
1440
|
/* @__PURE__ */ e(x, { bold: !0, children: `${r.account}
|
|
1441
|
-
${
|
|
1441
|
+
${_ ? r.number : "•".repeat(4).concat(r.number ?? "")}` }),
|
|
1442
1442
|
/* @__PURE__ */ e(x, { bold: !0, variant: "Tiny", children: r.feed_description })
|
|
1443
1443
|
] })
|
|
1444
1444
|
] }),
|
|
1445
|
-
/* @__PURE__ */ e(le, { square: !0, sx: { boxShadow: "none" }, children: u ? /* @__PURE__ */ e(
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1445
|
+
/* @__PURE__ */ e(le, { square: !0, sx: { boxShadow: "none" }, children: u ? /* @__PURE__ */ e(Xt, { transaction: r }) : /* @__PURE__ */ e(ue, { children: i.map((m, g) => /* @__PURE__ */ l(d.Fragment, { children: [
|
|
1446
|
+
m === re.Category && /* @__PURE__ */ e(yt, { transaction: r }),
|
|
1447
|
+
m === re.Date && /* @__PURE__ */ e(Tt, { transaction: r }),
|
|
1448
|
+
m === re.Memo && /* @__PURE__ */ e(It, { transaction: r }),
|
|
1449
|
+
m === re.Tags && /* @__PURE__ */ e(Ht, { transaction: r }),
|
|
1450
1450
|
/* @__PURE__ */ e(de, { variant: g < i.length - 1 ? "inset" : "fullWidth" })
|
|
1451
|
-
] },
|
|
1451
|
+
] }, m)) }) }),
|
|
1452
1452
|
!u && t.length > 0 && /* @__PURE__ */ l(d.Fragment, { children: [
|
|
1453
1453
|
/* @__PURE__ */ e(x, { bold: !0, mb: 8, ml: 26, mt: 16, variant: "Body", children: "Actions" }),
|
|
1454
1454
|
/* @__PURE__ */ e(le, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ l(ue, { children: [
|
|
1455
|
-
t.map((
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1455
|
+
t.map((m, g) => /* @__PURE__ */ l(d.Fragment, { children: [
|
|
1456
|
+
m === ae.MerchantBudget && /* @__PURE__ */ e(ht, { transaction: r }),
|
|
1457
|
+
m === ae.SplitTransaction && /* @__PURE__ */ e(wt, { transaction: r }),
|
|
1458
|
+
m === ae.HideTransaction && /* @__PURE__ */ e(At, { transaction: r }),
|
|
1459
|
+
m === ae.MerchantLogo && /* @__PURE__ */ e(St, { transaction: r }),
|
|
1460
1460
|
/* @__PURE__ */ e(de, { variant: g < t.length - 1 ? "inset" : "fullWidth" })
|
|
1461
|
-
] },
|
|
1462
|
-
r.is_manual && !r.parent_guid && !r.has_been_split && /* @__PURE__ */ e(
|
|
1461
|
+
] }, m)),
|
|
1462
|
+
r.is_manual && !r.parent_guid && !r.has_been_split && /* @__PURE__ */ e(bt, { transaction: r })
|
|
1463
1463
|
] }) })
|
|
1464
1464
|
] })
|
|
1465
1465
|
] }) });
|
|
1466
|
-
},
|
|
1466
|
+
}, Hr = E(jt);
|
|
1467
1467
|
export {
|
|
1468
1468
|
ae as B,
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1469
|
+
yt as C,
|
|
1470
|
+
Tt as D,
|
|
1471
|
+
It as M,
|
|
1472
|
+
Hr as T,
|
|
1473
|
+
Ht as a,
|
|
1474
1474
|
re as b,
|
|
1475
1475
|
_t as c
|
|
1476
1476
|
};
|