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