@mx-cartographer/experiences 7.5.1 → 7.5.3
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/dist/{AccountDetailsContent-CitErkuS.mjs → AccountDetailsContent-DXogTJJn.mjs} +2 -2
- package/dist/{ManageIncome-CaoQl609.mjs → ManageIncome-DPXl28ZY.mjs} +2 -2
- package/dist/MicroWidgetContainer-B2hO9rOG.mjs +45 -0
- package/dist/MiniWidgetContainer-98-hKFqm.mjs +56 -0
- package/dist/{RecurringSettings-B4ybrS0B.mjs → RecurringSettings-DU2d5dlv.mjs} +2 -2
- package/dist/{SpendingLegend-CDO060GT.mjs → SpendingLegend-Dl2rjD7E.mjs} +1 -1
- package/dist/{TransactionDetails-m5PddMQn.mjs → TransactionDetails-h9zr6QKo.mjs} +488 -511
- package/dist/{WidgetContainer-CoFDmQRE.mjs → WidgetContainer-30Dy7US7.mjs} +288 -253
- package/dist/accounts/index.es.js +4 -4
- package/dist/analytics/index.es.js +1 -1
- package/dist/budgets/index.es.js +4 -4
- package/dist/cashflow/index.es.js +5 -5
- package/dist/common/index.es.js +3 -3
- package/dist/debts/index.es.js +1 -1
- package/dist/finstrong/index.es.js +5 -5
- package/dist/goals/index.es.js +3 -3
- package/dist/help/index.es.js +1 -1
- package/dist/investments/index.es.js +1 -1
- package/dist/networth/index.es.js +2 -2
- package/dist/recurringtransactions/index.es.js +29 -24
- package/dist/settings/index.es.js +1 -1
- package/dist/spending/index.es.js +4 -4
- package/dist/transactions/index.es.js +191 -188
- package/dist/trends/index.es.js +4 -4
- package/package.json +1 -1
- package/dist/MicroWidgetContainer-r6mtxRer.mjs +0 -52
- package/dist/MiniWidgetContainer-Bg02sF1Y.mjs +0 -71
|
@@ -1,59 +1,59 @@
|
|
|
1
1
|
import { T as Sa } from "../TransactionApi-CjBoLleL.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { B as wa,
|
|
4
|
-
import { T as
|
|
2
|
+
import { u as W, C as Pe, D as We, M as $e, c as Ve, T as Ge, a as Ue } from "../TransactionDetails-h9zr6QKo.mjs";
|
|
3
|
+
import { B as wa, d as Ia, b as va } from "../TransactionDetails-h9zr6QKo.mjs";
|
|
4
|
+
import { T as k } from "../User-Cnlegl1N.mjs";
|
|
5
5
|
import { O as Na } from "../User-Cnlegl1N.mjs";
|
|
6
|
-
import { S as ae, D as
|
|
6
|
+
import { S as ae, D as Fe } from "../TransactionStore-PRlwE-TF.mjs";
|
|
7
7
|
import { T as Oa } from "../TransactionStore-PRlwE-TF.mjs";
|
|
8
|
-
import { e as
|
|
9
|
-
import { E as
|
|
10
|
-
import { jsxs as
|
|
11
|
-
import
|
|
8
|
+
import { e as ze } from "../exportTransactionsToCSV-DuAaI5XA.mjs";
|
|
9
|
+
import { E as Ma } from "../ExportCsvAction-Cglo8Mca.mjs";
|
|
10
|
+
import { jsxs as p, jsx as e } from "react/jsx-runtime";
|
|
11
|
+
import m from "react";
|
|
12
12
|
import { observer as x } from "mobx-react-lite";
|
|
13
|
-
import
|
|
14
|
-
import { DataGridPro as
|
|
13
|
+
import Ke from "@mui/material/Paper";
|
|
14
|
+
import { DataGridPro as qe } from "@mui/x-data-grid-pro";
|
|
15
15
|
import S from "@mui/material/Box";
|
|
16
|
-
import { useTheme as
|
|
17
|
-
import { Text as
|
|
18
|
-
import { h as $, u as w, b as j, d as se, m as
|
|
19
|
-
import { fromUnixTime as
|
|
20
|
-
import { f as
|
|
16
|
+
import { useTheme as je } from "@mui/material/styles";
|
|
17
|
+
import { Text as y, Icon as P, MerchantLogo as Xe, TextField as ne, P as Ye } from "@mxenabled/mxui";
|
|
18
|
+
import { h as $, u as w, b as j, d as se, m as Je, a as Qe, g as Ze, o as et } from "../hooks-ZMp65DFz.mjs";
|
|
19
|
+
import { fromUnixTime as tt } from "date-fns/fromUnixTime";
|
|
20
|
+
import { f as at, a as nt, D as ie } from "../Dialog-BPTr3qHE.mjs";
|
|
21
21
|
import N from "@mui/material/Stack";
|
|
22
22
|
import { f as ce } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
23
23
|
import { L as X } from "../Loader-DUaFpDGv.mjs";
|
|
24
|
-
import { endOfMonth as
|
|
25
|
-
import { getUnixTime as
|
|
26
|
-
import { startOfMonth as
|
|
24
|
+
import { endOfMonth as ot } from "date-fns/endOfMonth";
|
|
25
|
+
import { getUnixTime as rt } from "date-fns/getUnixTime";
|
|
26
|
+
import { startOfMonth as st } from "date-fns/startOfMonth";
|
|
27
27
|
import { startOfToday as K } from "date-fns/startOfToday";
|
|
28
|
-
import
|
|
29
|
-
import { l as
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import { ExpandMore as
|
|
34
|
-
import { C as
|
|
35
|
-
import { a as
|
|
28
|
+
import it from "@mui/material/styles/useTheme";
|
|
29
|
+
import { l as ct } from "../ConnectDrawer-BkvlItWx.mjs";
|
|
30
|
+
import lt from "@mui/material/Divider";
|
|
31
|
+
import dt from "@mui/material/MenuItem";
|
|
32
|
+
import ut from "@mui/material/RadioGroup";
|
|
33
|
+
import { ExpandMore as mt } from "@mxenabled/mx-icons";
|
|
34
|
+
import { C as _t } from "../CurrencyInput-itK0R3wV.mjs";
|
|
35
|
+
import { a as pt, u as gt } from "../CategorySelectorDrawer-B-I3kajA.mjs";
|
|
36
36
|
import { b as q } from "../Localization-2MODESHW.mjs";
|
|
37
|
-
import { A, W as ft } from "../WidgetContainer-
|
|
37
|
+
import { u as ht, A, W as ft } from "../WidgetContainer-30Dy7US7.mjs";
|
|
38
38
|
import { u as Ct } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
39
39
|
import { u as yt } from "../useWidgetLoadTimer-hIOioiKx.mjs";
|
|
40
40
|
import { S as bt } from "../SearchBox-B2_zLv8-.mjs";
|
|
41
41
|
import { D as oe } from "../Drawer-By9V-B5L.mjs";
|
|
42
|
-
const Tt = (t) => /* @__PURE__ */
|
|
42
|
+
const Tt = (t) => /* @__PURE__ */ p(y, { tabIndex: t.tabIndex, variant: "Small", children: [
|
|
43
43
|
`${t.row.account}`,
|
|
44
44
|
t.row.number && ` | ${t.row.number}`
|
|
45
45
|
] }), At = (t) => {
|
|
46
|
-
const { associatedBeats: s } = $(), { showInsights:
|
|
47
|
-
return /* @__PURE__ */
|
|
48
|
-
/* @__PURE__ */
|
|
46
|
+
const { associatedBeats: s } = $(), { showInsights: o } = W(), { amount: a, transaction_type: i } = t.row, l = s.find((g) => g.associated_transaction_guid === t.row.guid), d = i === k.CREDIT;
|
|
47
|
+
return /* @__PURE__ */ p(N, { alignItems: "flex-end", tabIndex: t.tabIndex, children: [
|
|
48
|
+
/* @__PURE__ */ p(y, { color: d ? "success.main" : "text.primary", variant: "Small", children: [
|
|
49
49
|
d ? "+" : "",
|
|
50
50
|
ce(a, "0,0.00")
|
|
51
51
|
] }),
|
|
52
|
-
l &&
|
|
52
|
+
l && o && /* @__PURE__ */ e(y, { bold: !0, color: "primary.light", variant: "XSmall", children: l.short_title })
|
|
53
53
|
] });
|
|
54
54
|
}, St = (t) => {
|
|
55
|
-
const { transactions: s } = w(), [
|
|
56
|
-
return /* @__PURE__ */
|
|
55
|
+
const { transactions: s } = w(), [o, a] = m.useState(!1);
|
|
56
|
+
return /* @__PURE__ */ p(
|
|
57
57
|
N,
|
|
58
58
|
{
|
|
59
59
|
alignItems: "center",
|
|
@@ -65,22 +65,22 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
65
65
|
width: "100%",
|
|
66
66
|
children: [
|
|
67
67
|
t.row.has_been_split && /* @__PURE__ */ e(P, { name: "call_split", size: 16 }),
|
|
68
|
-
/* @__PURE__ */ e(
|
|
69
|
-
!t.row.has_been_split &&
|
|
68
|
+
/* @__PURE__ */ e(y, { tabIndex: t.tabIndex, variant: "Small", children: t.row.has_been_split ? s.split_transaction_category_label : t.row.category }),
|
|
69
|
+
!t.row.has_been_split && o && /* @__PURE__ */ e(P, { name: "edit", sx: { color: "action.active" } })
|
|
70
70
|
]
|
|
71
71
|
}
|
|
72
72
|
);
|
|
73
|
-
}, xt = x(St), wt = (t) => /* @__PURE__ */ e(
|
|
74
|
-
const s =
|
|
75
|
-
return /* @__PURE__ */
|
|
73
|
+
}, xt = x(St), wt = (t) => /* @__PURE__ */ e(y, { tabIndex: t.tabIndex, variant: "Small", children: at(tt(t.row.date), nt.MONTH_DAY) }), It = (t) => {
|
|
74
|
+
const s = je(), { transactions: o } = w(), { is_flagged: a, is_hidden: i, has_been_viewed: l, parent_guid: d } = t.row, f = !l && !!!d;
|
|
75
|
+
return /* @__PURE__ */ p(
|
|
76
76
|
S,
|
|
77
77
|
{
|
|
78
|
-
"aria-label": i ?
|
|
78
|
+
"aria-label": i ? o.is_hidden : o.is_flagged,
|
|
79
79
|
tabIndex: t.tabIndex,
|
|
80
80
|
children: [
|
|
81
81
|
a && /* @__PURE__ */ e(P, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
|
|
82
82
|
!a && i && /* @__PURE__ */ e(P, { name: "visibility_off", size: 16 }),
|
|
83
|
-
|
|
83
|
+
f && /* @__PURE__ */ e(
|
|
84
84
|
"svg",
|
|
85
85
|
{
|
|
86
86
|
"data-testid": "svg",
|
|
@@ -98,40 +98,42 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
98
98
|
]
|
|
99
99
|
}
|
|
100
100
|
);
|
|
101
|
-
}, vt = x(It), O = (t) => /* @__PURE__ */ e(
|
|
101
|
+
}, vt = x(It), O = (t) => /* @__PURE__ */ e(y, { fontWeight: 600, variant: "Small", children: t.colDef.headerName }), Dt = (t) => /* @__PURE__ */ p(N, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
102
102
|
/* @__PURE__ */ e(
|
|
103
|
-
|
|
103
|
+
Xe,
|
|
104
104
|
{
|
|
105
105
|
categoryGuid: t.row.top_level_category_guid || "",
|
|
106
106
|
merchantGuid: t.row.merchant_guid || ""
|
|
107
107
|
}
|
|
108
108
|
),
|
|
109
|
-
/* @__PURE__ */ e(
|
|
109
|
+
/* @__PURE__ */ e(y, { tabIndex: t.tabIndex, variant: "Small", children: t.row.payee })
|
|
110
110
|
] }), Nt = ({
|
|
111
111
|
height: t = "100dvh",
|
|
112
112
|
onCategoryClick: s,
|
|
113
|
-
onRowClick:
|
|
113
|
+
onRowClick: o
|
|
114
114
|
}) => {
|
|
115
|
-
const { transactions: a } = w(), { isCopyLoaded: i } = j(), { isLoading: l, sortedTransactions: d } = $(), { clearExpandedSplits:
|
|
116
|
-
|
|
117
|
-
const
|
|
118
|
-
() => d.map((
|
|
119
|
-
id:
|
|
115
|
+
const { transactions: a } = w(), { isCopyLoaded: i } = j(), { isLoading: l, sortedTransactions: d } = $(), { clearExpandedSplits: g, toggleSplit: f } = W();
|
|
116
|
+
m.useEffect(() => () => g(), []);
|
|
117
|
+
const C = m.useMemo(
|
|
118
|
+
() => d.map((r) => ({
|
|
119
|
+
id: r.guid,
|
|
120
120
|
isHovering: !1,
|
|
121
|
-
...
|
|
121
|
+
...r
|
|
122
122
|
})),
|
|
123
123
|
[d]
|
|
124
|
-
),
|
|
124
|
+
), u = ({ row: { id: r, guid: h, has_been_split: E }, field: n }) => E ? f(r) : n === "category" ? s?.(h) : o?.(h), I = (r, h) => {
|
|
125
|
+
h.key !== "Enter" && h.key !== " " || u(r);
|
|
126
|
+
};
|
|
125
127
|
if (!i)
|
|
126
128
|
return /* @__PURE__ */ e(X, {});
|
|
127
|
-
const
|
|
129
|
+
const _ = [
|
|
128
130
|
{
|
|
129
131
|
field: "flag",
|
|
130
132
|
headerName: "",
|
|
131
133
|
minWidth: 32,
|
|
132
134
|
width: 32,
|
|
133
135
|
sortable: !1,
|
|
134
|
-
renderCell: (
|
|
136
|
+
renderCell: (r) => /* @__PURE__ */ e(vt, { ...r }),
|
|
135
137
|
renderHeader: () => /* @__PURE__ */ e("span", { "aria-label": a.transaction_status, role: "presentation" })
|
|
136
138
|
},
|
|
137
139
|
{
|
|
@@ -139,7 +141,7 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
139
141
|
headerName: a.date_title,
|
|
140
142
|
width: 103,
|
|
141
143
|
renderHeader: O,
|
|
142
|
-
renderCell: (
|
|
144
|
+
renderCell: (r) => r.row.parent_guid ? null : /* @__PURE__ */ e(wt, { ...r }),
|
|
143
145
|
sortingOrder: ["desc", "asc"]
|
|
144
146
|
},
|
|
145
147
|
{
|
|
@@ -156,7 +158,7 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
156
158
|
headerName: a.category_title,
|
|
157
159
|
flex: 0.25,
|
|
158
160
|
renderHeader: O,
|
|
159
|
-
renderCell: (
|
|
161
|
+
renderCell: (r) => /* @__PURE__ */ e(xt, { ...r }),
|
|
160
162
|
sortingOrder: ["asc", "desc"]
|
|
161
163
|
},
|
|
162
164
|
{
|
|
@@ -164,7 +166,7 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
164
166
|
headerName: a.account_title,
|
|
165
167
|
flex: 0.33,
|
|
166
168
|
renderHeader: O,
|
|
167
|
-
renderCell: (
|
|
169
|
+
renderCell: (r) => r.row.parent_guid ? null : /* @__PURE__ */ e(Tt, { ...r }),
|
|
168
170
|
sortingOrder: ["asc", "desc"]
|
|
169
171
|
},
|
|
170
172
|
{
|
|
@@ -178,18 +180,19 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
178
180
|
sortingOrder: ["asc", "desc"]
|
|
179
181
|
}
|
|
180
182
|
];
|
|
181
|
-
return /* @__PURE__ */ e(
|
|
182
|
-
|
|
183
|
+
return /* @__PURE__ */ e(Ke, { sx: { height: t, px: 24, width: "100%", boxShadow: "none" }, children: /* @__PURE__ */ e(
|
|
184
|
+
qe,
|
|
183
185
|
{
|
|
184
|
-
columns:
|
|
186
|
+
columns: _,
|
|
185
187
|
disableColumnFilter: !0,
|
|
186
188
|
disableColumnMenu: !0,
|
|
187
|
-
getCellClassName: (
|
|
189
|
+
getCellClassName: (r) => r.row.parent_guid ? "split-row" : "",
|
|
188
190
|
hideFooter: !0,
|
|
189
191
|
initialState: { sorting: { sortModel: [{ field: "date", sort: "desc" }] } },
|
|
190
192
|
loading: l,
|
|
191
|
-
onCellClick:
|
|
192
|
-
|
|
193
|
+
onCellClick: u,
|
|
194
|
+
onCellKeyDown: I,
|
|
195
|
+
rows: C,
|
|
193
196
|
slotProps: { baseIconButton: { color: "secondary", sx: { ml: 8 } } },
|
|
194
197
|
sx: {
|
|
195
198
|
"& .split-row": {
|
|
@@ -198,89 +201,89 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
198
201
|
}
|
|
199
202
|
}
|
|
200
203
|
) });
|
|
201
|
-
}, Et = x(Nt), Ot = ({ copy: t, isOpen: s, onClose:
|
|
204
|
+
}, Et = x(Nt), Ot = ({ copy: t, isOpen: s, onClose: o, onPrimaryAction: a }) => {
|
|
202
205
|
const { common: i, transactions: l } = w(), { isCopyLoaded: d } = j();
|
|
203
|
-
return d ? /* @__PURE__ */
|
|
206
|
+
return d ? /* @__PURE__ */ p(
|
|
204
207
|
ie,
|
|
205
208
|
{
|
|
206
209
|
copy: {
|
|
207
210
|
title: t.title
|
|
208
211
|
},
|
|
209
212
|
isOpen: s,
|
|
210
|
-
onClose:
|
|
213
|
+
onClose: o,
|
|
211
214
|
onPrimaryAction: a,
|
|
212
215
|
primaryText: l.add_manual_account,
|
|
213
216
|
secondaryText: i.cancel_button,
|
|
214
217
|
children: [
|
|
215
|
-
/* @__PURE__ */ e(
|
|
216
|
-
/* @__PURE__ */ e(
|
|
218
|
+
/* @__PURE__ */ e(y, { component: "p", sx: { marginBottom: "20px" }, truncate: !1, children: l.add_account_modal_message }),
|
|
219
|
+
/* @__PURE__ */ e(y, { component: "p", truncate: !1, children: l.add_account_modal_cta })
|
|
217
220
|
]
|
|
218
221
|
}
|
|
219
222
|
) : /* @__PURE__ */ e(X, {});
|
|
220
|
-
},
|
|
221
|
-
const { visibleAccounts: t } = se(), { common: s, transactions:
|
|
222
|
-
() => t.filter((
|
|
223
|
+
}, kt = x(Ot), Mt = () => {
|
|
224
|
+
const { visibleAccounts: t } = se(), { common: s, transactions: o } = w(), { manualTransaction: a, setIsAmountValid: i, updateManualTransaction: l } = W(), [d, g] = m.useState(""), [f, C] = m.useState(""), u = m.useMemo(
|
|
225
|
+
() => t.filter((n) => n.is_manual),
|
|
223
226
|
[t]
|
|
224
|
-
).map((
|
|
225
|
-
label: `${
|
|
226
|
-
value:
|
|
227
|
+
).map((n) => ({
|
|
228
|
+
label: `${n.name} | ${ce(n.balance, "0,0.00")}`,
|
|
229
|
+
value: n.guid
|
|
227
230
|
})), I = {
|
|
228
231
|
error_amount_is_invalid: s.currency_input.error_amount_is_invalid,
|
|
229
232
|
error_amount_must_be_equal_to: s.currency_input.error_amount_must_be_equal_to,
|
|
230
233
|
error_amount_must_be_less_than_or_equal_to: s.currency_input.error_amount_must_be_less_than_or_equal_to,
|
|
231
234
|
enter_amount: s.currency_input.enter_amount
|
|
232
|
-
},
|
|
233
|
-
|
|
234
|
-
},
|
|
235
|
-
l({ ...a, transaction_type: Number(
|
|
236
|
-
},
|
|
237
|
-
|
|
238
|
-
}, E = (
|
|
239
|
-
l({ ...a, account_guid:
|
|
235
|
+
}, _ = (n) => {
|
|
236
|
+
g(n), l({ ...a, amount: Number(n) });
|
|
237
|
+
}, r = (n, M) => {
|
|
238
|
+
l({ ...a, transaction_type: Number(M) });
|
|
239
|
+
}, h = (n) => {
|
|
240
|
+
C(n), l({ ...a, payee: n, description: n });
|
|
241
|
+
}, E = (n) => {
|
|
242
|
+
l({ ...a, account_guid: n });
|
|
240
243
|
};
|
|
241
|
-
return /* @__PURE__ */
|
|
242
|
-
/* @__PURE__ */
|
|
243
|
-
/* @__PURE__ */
|
|
244
|
+
return /* @__PURE__ */ p(S, { className: "mx-txn-manual-transaction-details", children: [
|
|
245
|
+
/* @__PURE__ */ p(N, { gap: 40, mx: 24, my: 32, children: [
|
|
246
|
+
/* @__PURE__ */ p(
|
|
244
247
|
N,
|
|
245
248
|
{
|
|
246
249
|
direction: "row",
|
|
247
250
|
sx: { flexDirection: { xs: "column", sm: "row" }, gap: { xs: 40, sm: 8 } },
|
|
248
251
|
children: [
|
|
249
252
|
/* @__PURE__ */ e(
|
|
250
|
-
|
|
253
|
+
_t,
|
|
251
254
|
{
|
|
252
255
|
allowDecimals: !0,
|
|
253
256
|
amount: d,
|
|
254
|
-
ariaLabel:
|
|
257
|
+
ariaLabel: o.amount_title,
|
|
255
258
|
copy: I,
|
|
256
259
|
inputProps: {
|
|
257
260
|
noValidate: !0
|
|
258
261
|
},
|
|
259
|
-
label:
|
|
260
|
-
setAmount:
|
|
262
|
+
label: o.amount_title,
|
|
263
|
+
setAmount: _,
|
|
261
264
|
setHasValidInput: i,
|
|
262
265
|
sx: { bgcolor: "background.paper" },
|
|
263
266
|
type: "number"
|
|
264
267
|
}
|
|
265
268
|
),
|
|
266
|
-
/* @__PURE__ */ e(
|
|
269
|
+
/* @__PURE__ */ e(ut, { name: "TransactionType", onChange: r, row: !0, children: /* @__PURE__ */ p(N, { alignItems: "center", direction: "row", children: [
|
|
267
270
|
/* @__PURE__ */ e(
|
|
268
271
|
ae,
|
|
269
272
|
{
|
|
270
|
-
checked: a.transaction_type ===
|
|
271
|
-
label:
|
|
273
|
+
checked: a.transaction_type === k.CREDIT,
|
|
274
|
+
label: o.manual_transaction_credit_button_label,
|
|
272
275
|
sx: { ml: { xs: 0, sm: 8 } },
|
|
273
|
-
tooltip:
|
|
274
|
-
value:
|
|
276
|
+
tooltip: o.manual_transaction_credit_button_tooltip,
|
|
277
|
+
value: k.CREDIT
|
|
275
278
|
}
|
|
276
279
|
),
|
|
277
280
|
/* @__PURE__ */ e(
|
|
278
281
|
ae,
|
|
279
282
|
{
|
|
280
|
-
checked: a.transaction_type ===
|
|
281
|
-
label:
|
|
282
|
-
tooltip:
|
|
283
|
-
value:
|
|
283
|
+
checked: a.transaction_type === k.DEBIT,
|
|
284
|
+
label: o.manual_transaction_debit_button_label,
|
|
285
|
+
tooltip: o.manual_transaction_debit_button_tooltip,
|
|
286
|
+
value: k.DEBIT
|
|
284
287
|
}
|
|
285
288
|
)
|
|
286
289
|
] }) })
|
|
@@ -290,49 +293,49 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
290
293
|
/* @__PURE__ */ e(
|
|
291
294
|
ne,
|
|
292
295
|
{
|
|
293
|
-
label:
|
|
296
|
+
label: o.payee_title,
|
|
294
297
|
name: "payee",
|
|
295
|
-
onChange: (
|
|
298
|
+
onChange: (n) => h(n.target.value),
|
|
296
299
|
sx: { bgcolor: "background.paper" },
|
|
297
|
-
value:
|
|
300
|
+
value: f
|
|
298
301
|
}
|
|
299
302
|
),
|
|
300
303
|
/* @__PURE__ */ e(
|
|
301
304
|
ne,
|
|
302
305
|
{
|
|
303
306
|
InputLabelProps: { shrink: !0 },
|
|
304
|
-
SelectProps: { defaultValue: -1, IconComponent:
|
|
305
|
-
label:
|
|
306
|
-
onChange: (
|
|
307
|
-
placeholder:
|
|
307
|
+
SelectProps: { defaultValue: -1, IconComponent: mt },
|
|
308
|
+
label: o.manual_transaction_select_an_account,
|
|
309
|
+
onChange: (n) => E(n.target.value),
|
|
310
|
+
placeholder: o.manual_transaction_select,
|
|
308
311
|
select: !0,
|
|
309
312
|
sx: { bgcolor: "background.paper" },
|
|
310
|
-
children:
|
|
313
|
+
children: u.map((n) => /* @__PURE__ */ e(dt, { value: n.value, children: n.label }, n.value))
|
|
311
314
|
}
|
|
312
315
|
)
|
|
313
316
|
] }),
|
|
314
|
-
/* @__PURE__ */ e(
|
|
315
|
-
/* @__PURE__ */
|
|
317
|
+
/* @__PURE__ */ e(lt, { light: !0 }),
|
|
318
|
+
/* @__PURE__ */ p(S, { bgcolor: "background.paper", children: [
|
|
316
319
|
/* @__PURE__ */ e(Pe, { transaction: a }),
|
|
317
320
|
/* @__PURE__ */ e(We, { transaction: a }),
|
|
318
321
|
/* @__PURE__ */ e($e, { transaction: a }),
|
|
319
322
|
/* @__PURE__ */ e(Ve, { transaction: a })
|
|
320
323
|
] })
|
|
321
324
|
] });
|
|
322
|
-
}, Lt = x(
|
|
323
|
-
const { addOrUpdateTransactionRule:
|
|
324
|
-
() => l.find((
|
|
325
|
+
}, Lt = x(Mt), Rt = ({ onClose: t, transaction: s }) => {
|
|
326
|
+
const { addOrUpdateTransactionRule: o, updateTransaction: a } = $(), { transactions: i } = w(), { categories: l } = Je(), [d, g] = m.useState(""), f = m.useMemo(
|
|
327
|
+
() => l.find((u) => u.guid === d),
|
|
325
328
|
[d]
|
|
326
|
-
),
|
|
327
|
-
await a({ ...s, category_guid: d }),
|
|
329
|
+
), C = async (u) => {
|
|
330
|
+
await a({ ...s, category_guid: d }), u && await o(d, s), g(""), t();
|
|
328
331
|
};
|
|
329
|
-
return /* @__PURE__ */
|
|
332
|
+
return /* @__PURE__ */ p(S, { className: "mx-txn-edit-category-action", children: [
|
|
330
333
|
/* @__PURE__ */ e(
|
|
331
|
-
|
|
334
|
+
pt,
|
|
332
335
|
{
|
|
333
336
|
initialSelected: s.category_guid,
|
|
334
337
|
onClose: t,
|
|
335
|
-
onSelect: (
|
|
338
|
+
onSelect: (u) => g(u),
|
|
336
339
|
showDrawer: !!s,
|
|
337
340
|
title: i.actions_select_a_category
|
|
338
341
|
}
|
|
@@ -347,15 +350,15 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
347
350
|
)
|
|
348
351
|
},
|
|
349
352
|
isOpen: !!d,
|
|
350
|
-
onClose: () =>
|
|
351
|
-
onPrimaryAction: () =>
|
|
352
|
-
onSecondaryAction: () =>
|
|
353
|
+
onClose: () => C(!1),
|
|
354
|
+
onPrimaryAction: () => C(!0),
|
|
355
|
+
onSecondaryAction: () => C(!1),
|
|
353
356
|
primaryText: i.actions_apply_to_all,
|
|
354
357
|
secondaryText: i.actions_this_time_only,
|
|
355
|
-
children: /* @__PURE__ */ e(
|
|
358
|
+
children: /* @__PURE__ */ e(Ye, { variant: "Paragraph", children: q(
|
|
356
359
|
i.actions_all_past_and_future,
|
|
357
360
|
s.description,
|
|
358
|
-
|
|
361
|
+
f?.name
|
|
359
362
|
) })
|
|
360
363
|
}
|
|
361
364
|
)
|
|
@@ -363,17 +366,17 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
363
366
|
}, Ht = x(Rt), re = 120, Bt = ({
|
|
364
367
|
onBackClick: t,
|
|
365
368
|
height: s = "100dvh",
|
|
366
|
-
showInsights:
|
|
369
|
+
showInsights: o = !1,
|
|
367
370
|
sx: a = {}
|
|
368
371
|
}) => {
|
|
369
|
-
const { visibleAccounts: i, refreshAccounts: l } = se(), { is_mobile_webview: d, clientConfig:
|
|
370
|
-
displayedDateRange:
|
|
371
|
-
isCopyLoaded:
|
|
372
|
+
const { visibleAccounts: i, refreshAccounts: l } = se(), { is_mobile_webview: d, clientConfig: g, config: f } = Qe(), { setSearchValue: C } = gt(), { onEvent: u } = Ze(), { common: I, transactions: _ } = w(), {
|
|
373
|
+
displayedDateRange: r,
|
|
374
|
+
isCopyLoaded: h,
|
|
372
375
|
isInitialized: E,
|
|
373
|
-
selectedAccountGuids:
|
|
374
|
-
setDisplayedDate:
|
|
376
|
+
selectedAccountGuids: n,
|
|
377
|
+
setDisplayedDate: M,
|
|
375
378
|
setSelectedAccounts: le
|
|
376
|
-
} = j(), { isDesktop: de, isTablet: ue } = Ct(), L =
|
|
379
|
+
} = j(), { isDesktop: de, isTablet: ue } = Ct(), L = it(), {
|
|
377
380
|
addTransaction: me,
|
|
378
381
|
filter: Y,
|
|
379
382
|
loadAssociatedBeats: _e,
|
|
@@ -390,75 +393,75 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
390
393
|
setSearchValue: be,
|
|
391
394
|
setShowInsights: Te,
|
|
392
395
|
updateManualTransaction: Ae
|
|
393
|
-
} = W(), { userProfile: Se } =
|
|
396
|
+
} = W(), { userProfile: Se } = et(), [U, b] = m.useState(""), [J, H] = m.useState(""), [xe, F] = m.useState(!1), [we, Q] = m.useState(!1), [B, Ie] = m.useState(!1), { announce: ve, ariaLive: De } = ht(), v = g?.transactions?.selected_account_guid;
|
|
394
397
|
yt({
|
|
395
398
|
widgetName: "TransactionWidget",
|
|
396
399
|
isLoaded: B
|
|
397
|
-
}),
|
|
398
|
-
const c = v ? [{ guid: v }] : i.filter((D) => !D.is_hidden), ee =
|
|
399
|
-
v || le(c),
|
|
400
|
+
}), m.useEffect(() => {
|
|
401
|
+
const c = v ? [{ guid: v }] : i.filter((D) => !D.is_hidden), ee = st(K()), te = ot(K());
|
|
402
|
+
v || le(c), M(ee, te), V({
|
|
400
403
|
accounts: c.map((D) => D.guid),
|
|
401
404
|
custom: (D) => !D.accountIsClosed && !D.accountIsHidden,
|
|
402
405
|
dateRange: { start: ee, end: te }
|
|
403
|
-
}), Ie(!0),
|
|
404
|
-
}, [i]),
|
|
406
|
+
}), Ie(!0), u(A.TRANSACTIONS_VIEW);
|
|
407
|
+
}, [i]), m.useEffect(() => {
|
|
405
408
|
B && (V({
|
|
406
409
|
...Y,
|
|
407
|
-
accounts: v ? [v] :
|
|
408
|
-
dateRange: { start:
|
|
409
|
-
}), _e(
|
|
410
|
-
}, [B,
|
|
411
|
-
Te(
|
|
412
|
-
}, [
|
|
413
|
-
|
|
410
|
+
accounts: v ? [v] : n,
|
|
411
|
+
dateRange: { start: r.start, end: r.end }
|
|
412
|
+
}), _e(r.start).finally());
|
|
413
|
+
}, [B, r, n]), m.useEffect(() => {
|
|
414
|
+
Te(o);
|
|
415
|
+
}, [o]), m.useEffect(() => {
|
|
416
|
+
h && _.showing_transactions_count && ve(
|
|
414
417
|
q(
|
|
415
|
-
|
|
418
|
+
_.showing_transactions_count,
|
|
416
419
|
G.length
|
|
417
420
|
)
|
|
418
421
|
);
|
|
419
|
-
}, [
|
|
420
|
-
const Ne =
|
|
422
|
+
}, [h, r, n, G, _]);
|
|
423
|
+
const Ne = m.useMemo(
|
|
421
424
|
() => i.filter((c) => c.is_manual),
|
|
422
425
|
[i]
|
|
423
|
-
),
|
|
424
|
-
fe(),
|
|
426
|
+
), T = J ? ge.find((c) => c.guid === J) : void 0, Z = Ce && !!R.payee && !!R.account_guid && !!R.category_guid, Ee = (c) => {
|
|
427
|
+
fe(), M(c[0], c[1]);
|
|
425
428
|
}, Oe = (c) => {
|
|
426
429
|
be(c), V({
|
|
427
430
|
...Y,
|
|
428
431
|
searchTerm: c
|
|
429
|
-
}),
|
|
430
|
-
}, Me = () => {
|
|
431
|
-
Ke(G, pe), m(A.TRANSACTIONS_CLICK_EXPORT);
|
|
432
|
+
}), u(A.TRANSACTIONS_CLICK_SEARCH, { search_term: c });
|
|
432
433
|
}, ke = () => {
|
|
434
|
+
ze(G, pe), u(A.TRANSACTIONS_CLICK_EXPORT);
|
|
435
|
+
}, Me = () => {
|
|
433
436
|
Ne.length > 0 ? (Ae({
|
|
434
|
-
...
|
|
435
|
-
date:
|
|
437
|
+
...Fe,
|
|
438
|
+
date: rt(K()),
|
|
436
439
|
user_guid: Se?.user_guid || ""
|
|
437
|
-
}),
|
|
440
|
+
}), b(
|
|
438
441
|
"addTransaction"
|
|
439
442
|
/* AddTransaction */
|
|
440
|
-
),
|
|
443
|
+
), u(A.TRANSACTIONS_CLICK_ADD)) : (F(!0), u(A.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
|
|
441
444
|
}, Le = async () => {
|
|
442
|
-
Z && await me(R),
|
|
445
|
+
Z && await me(R), b("");
|
|
443
446
|
}, Re = () => {
|
|
444
447
|
F(!1), Q(!0);
|
|
445
448
|
}, He = async () => {
|
|
446
449
|
Q(!1), await l();
|
|
447
450
|
}, Be = async () => {
|
|
448
|
-
|
|
451
|
+
T && !T.has_been_viewed && await he({ ...T, has_been_viewed: !0 }), b("");
|
|
449
452
|
};
|
|
450
|
-
if (!
|
|
453
|
+
if (!h || !E || !B)
|
|
451
454
|
return /* @__PURE__ */ e(X, {});
|
|
452
455
|
const z = [];
|
|
453
456
|
return !d && (de || ue) && z.push({
|
|
454
457
|
iconName: "open_in_new",
|
|
455
|
-
label:
|
|
456
|
-
onClick: Me
|
|
457
|
-
}), h.show_connections_widget_in_master && z.push({
|
|
458
|
-
iconName: "add",
|
|
459
|
-
label: n.add_transaction_btn,
|
|
458
|
+
label: _.export_csv_btn,
|
|
460
459
|
onClick: ke
|
|
461
|
-
}),
|
|
460
|
+
}), f.show_connections_widget_in_master && z.push({
|
|
461
|
+
iconName: "add",
|
|
462
|
+
label: _.add_transaction_btn,
|
|
463
|
+
onClick: Me
|
|
464
|
+
}), /* @__PURE__ */ p(
|
|
462
465
|
ft,
|
|
463
466
|
{
|
|
464
467
|
...!v && { accountOptions: i },
|
|
@@ -466,17 +469,17 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
466
469
|
calendarActions: {
|
|
467
470
|
onRangeChanged: Ee
|
|
468
471
|
},
|
|
469
|
-
onAccountsFilterClick: () =>
|
|
472
|
+
onAccountsFilterClick: () => u(A.ACCOUNTS_CLICK_FILTER),
|
|
470
473
|
onBackClick: t,
|
|
471
474
|
sx: a,
|
|
472
|
-
title:
|
|
475
|
+
title: _.transactions_title,
|
|
473
476
|
children: [
|
|
474
477
|
De,
|
|
475
478
|
/* @__PURE__ */ e(S, { mt: 16, children: /* @__PURE__ */ e(
|
|
476
479
|
bt,
|
|
477
480
|
{
|
|
478
481
|
onChange: Oe,
|
|
479
|
-
placeholder:
|
|
482
|
+
placeholder: _.action_bar_search_placeholder,
|
|
480
483
|
searchValue: ye
|
|
481
484
|
}
|
|
482
485
|
) }),
|
|
@@ -492,16 +495,16 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
492
495
|
{
|
|
493
496
|
height: `calc(${s} - ${re}px)`,
|
|
494
497
|
onCategoryClick: (c) => {
|
|
495
|
-
H(c),
|
|
498
|
+
H(c), b(
|
|
496
499
|
"category"
|
|
497
500
|
/* Category */
|
|
498
501
|
);
|
|
499
502
|
},
|
|
500
503
|
onRowClick: (c) => {
|
|
501
|
-
H(c),
|
|
504
|
+
H(c), b(
|
|
502
505
|
"transaction"
|
|
503
506
|
/* Transaction */
|
|
504
|
-
),
|
|
507
|
+
), u(A.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: c });
|
|
505
508
|
}
|
|
506
509
|
}
|
|
507
510
|
)
|
|
@@ -515,17 +518,17 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
515
518
|
[L.breakpoints.up("md")]: { display: "none" }
|
|
516
519
|
},
|
|
517
520
|
children: /* @__PURE__ */ e(
|
|
518
|
-
|
|
521
|
+
Ge,
|
|
519
522
|
{
|
|
520
523
|
height: `calc(${s} - ${re}px)`,
|
|
521
524
|
onClick: (c) => {
|
|
522
|
-
H(c),
|
|
525
|
+
H(c), b(
|
|
523
526
|
"transaction"
|
|
524
527
|
/* Transaction */
|
|
525
528
|
);
|
|
526
529
|
},
|
|
527
530
|
showHiddenTransactions: !0,
|
|
528
|
-
showInsights:
|
|
531
|
+
showInsights: o
|
|
529
532
|
}
|
|
530
533
|
)
|
|
531
534
|
}
|
|
@@ -534,19 +537,19 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
534
537
|
oe,
|
|
535
538
|
{
|
|
536
539
|
ariaLabelClose: I.close_aria,
|
|
537
|
-
isOpen: U === "transaction" && !!
|
|
540
|
+
isOpen: U === "transaction" && !!T,
|
|
538
541
|
onClose: Be,
|
|
539
|
-
title:
|
|
540
|
-
children:
|
|
542
|
+
title: _.details_title,
|
|
543
|
+
children: T && /* @__PURE__ */ e(Ue, { transaction: T })
|
|
541
544
|
}
|
|
542
545
|
),
|
|
543
|
-
|
|
546
|
+
T && U === "category" && /* @__PURE__ */ e(
|
|
544
547
|
Ht,
|
|
545
548
|
{
|
|
546
549
|
onClose: () => {
|
|
547
|
-
|
|
550
|
+
C(""), b(""), H("");
|
|
548
551
|
},
|
|
549
|
-
transaction:
|
|
552
|
+
transaction: T
|
|
550
553
|
}
|
|
551
554
|
),
|
|
552
555
|
/* @__PURE__ */ e(
|
|
@@ -555,16 +558,16 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
555
558
|
ariaLabelClose: I.close_aria,
|
|
556
559
|
isOpen: U === "addTransaction",
|
|
557
560
|
isPrimaryDisabled: !Z,
|
|
558
|
-
onClose: () =>
|
|
561
|
+
onClose: () => b(""),
|
|
559
562
|
onPrimaryAction: Le,
|
|
560
|
-
title:
|
|
563
|
+
title: _.add_transaction_title,
|
|
561
564
|
children: /* @__PURE__ */ e(Lt, {})
|
|
562
565
|
}
|
|
563
566
|
),
|
|
564
567
|
/* @__PURE__ */ e(
|
|
565
|
-
|
|
568
|
+
kt,
|
|
566
569
|
{
|
|
567
|
-
copy: { title:
|
|
570
|
+
copy: { title: _.add_manual_account },
|
|
568
571
|
isOpen: xe,
|
|
569
572
|
onClose: () => {
|
|
570
573
|
F(!1);
|
|
@@ -573,11 +576,11 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
573
576
|
}
|
|
574
577
|
),
|
|
575
578
|
/* @__PURE__ */ e(
|
|
576
|
-
|
|
579
|
+
ct,
|
|
577
580
|
{
|
|
578
581
|
onClose: He,
|
|
579
582
|
showConnectWidget: we,
|
|
580
|
-
title:
|
|
583
|
+
title: _.add_manual_account
|
|
581
584
|
}
|
|
582
585
|
)
|
|
583
586
|
]
|
|
@@ -585,18 +588,18 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
585
588
|
);
|
|
586
589
|
}, ba = x(Bt);
|
|
587
590
|
export {
|
|
588
|
-
|
|
591
|
+
kt as AddAccountModal,
|
|
589
592
|
wa as BottomActions,
|
|
590
|
-
|
|
593
|
+
Ma as ExportCsvAction,
|
|
591
594
|
Na as TRANSACTION_EVENTS,
|
|
592
595
|
Ia as TopActions,
|
|
593
596
|
Sa as TransactionApi,
|
|
594
|
-
|
|
595
|
-
|
|
597
|
+
Ue as TransactionDetails,
|
|
598
|
+
Ge as TransactionList,
|
|
596
599
|
va as TransactionRow,
|
|
597
600
|
Oa as TransactionStore,
|
|
598
601
|
Et as TransactionTable,
|
|
599
602
|
ba as TransactionWidget,
|
|
600
|
-
|
|
603
|
+
ze as exportTransactionsToCSV,
|
|
601
604
|
W as useTransactionsUiStore
|
|
602
605
|
};
|