@mx-cartographer/experiences 7.4.7 → 7.4.8-alpha.mm0
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 +2 -2
- package/dist/{Account-01wOyrH1.mjs → Account-BrOTlmeK.mjs} +1 -1
- package/dist/{AccountDetailsContent-COMjOzwr.mjs → AccountDetailsContent-B7FqH05C.mjs} +8 -8
- package/dist/{AccountDetailsHeader-Cbi5G6fJ.mjs → AccountDetailsHeader-C8MxsxhN.mjs} +4 -4
- package/dist/{AccountFields-Cd_nOWmf.mjs → AccountFields-BQZ-o6Kj.mjs} +2 -2
- package/dist/{AccountListItem-DxY4cCF1.mjs → AccountListItem-aIE9WWTO.mjs} +4 -4
- package/dist/{AccountStore-C1zMBzHq.mjs → AccountStore-DqO84Aer.mjs} +2 -2
- package/dist/{Accounts-D7QljYas.mjs → Accounts-DC_A4UCa.mjs} +1 -1
- package/dist/{BudgetUtil-Df2nII9u.mjs → BudgetUtil-BmZXkL0C.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-DqJK_rrL.mjs → CategorySelectorDrawer-SUgfE5GN.mjs} +1 -1
- package/dist/{ConnectDrawer-CuUj16NH.mjs → ConnectDrawer-KL8t1qSC.mjs} +1 -1
- package/dist/{ConnectionsDrawer-Bz4uwdFE.mjs → ConnectionsDrawer-DaK5uIL5.mjs} +2 -2
- package/dist/{CurrencyInput-BFKcs-_K.mjs → CurrencyInput-itK0R3wV.mjs} +1 -1
- package/dist/{DebtsStore-Bu8rRRSL.mjs → DebtsStore-DVPZbv2C.mjs} +1 -1
- package/dist/{ExportCsvAction-DzTrtPzk.mjs → ExportCsvAction-Cglo8Mca.mjs} +3 -3
- package/dist/{GoalStore-CrNhjvNc.mjs → GoalStore-o4rrjGSJ.mjs} +2 -2
- package/dist/{Help-BnPXM_N2.mjs → Help-BjLMsuMS.mjs} +1 -1
- package/dist/{LineChart-bc1D9xBE.mjs → LineChart-BQRxZF3p.mjs} +1 -1
- package/dist/{ListItemAction-uobBrm_a.mjs → ListItemAction-BxTkF6Tz.mjs} +1 -1
- package/dist/{ManageIncome-A69EUO5u.mjs → ManageIncome-rcnDYsBJ.mjs} +75 -75
- package/dist/{MicroWidgetContainer-DEiRnYVa.mjs → MicroWidgetContainer-B2hO9rOG.mjs} +1 -1
- package/dist/{MiniWidgetContainer-CmXpTylX.mjs → MiniWidgetContainer-98-hKFqm.mjs} +1 -1
- package/dist/{NetWorthStore-CpL_kqvx.mjs → NetWorthStore-DG2X69jG.mjs} +2 -2
- package/dist/{NotificationSettings-CNmJWVeI.mjs → NotificationSettings-C7FYNM7I.mjs} +250 -248
- package/dist/{OriginalBalanceAction-DK8_LkPz.mjs → OriginalBalanceAction-C6jdS4ws.mjs} +3 -3
- package/dist/{RecurringSettings-B0uObPlD.mjs → RecurringSettings-C81H1l38.mjs} +3 -3
- package/dist/{SpendingLegend-Bf-wbJvb.mjs → SpendingLegend-DqZxN_BZ.mjs} +2 -2
- package/dist/{TransactionDetails-COH0OKNG.mjs → TransactionDetails-BA_E5nQ-.mjs} +5 -5
- package/dist/{TransactionStore-Dz-G8Wd0.mjs → TransactionStore-PRlwE-TF.mjs} +2 -2
- package/dist/{User-wXzDI4M8.mjs → User-Cnlegl1N.mjs} +1 -1
- package/dist/{ViewMoreMicroCard-C0832BMe.mjs → ViewMoreMicroCard-DfPXJzbv.mjs} +105 -101
- package/dist/{WidgetContainer-6dsjtOVg.mjs → WidgetContainer-CaPjoWeE.mjs} +2 -2
- package/dist/accounts/index.es.js +148 -140
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +483 -478
- package/dist/cashflow/index.es.js +367 -362
- package/dist/categories/index.es.js +1 -1
- package/dist/common/hooks/index.d.ts +1 -0
- package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
- package/dist/common/index.es.js +35 -33
- package/dist/dashboard/index.es.js +90 -88
- package/dist/debts/index.es.js +346 -342
- package/dist/{exportTransactionsToCSV-Cz2t0lmA.mjs → exportTransactionsToCSV-DuAaI5XA.mjs} +1 -1
- package/dist/finstrong/index.es.js +352 -350
- package/dist/goals/index.es.js +518 -511
- package/dist/help/index.es.js +13 -9
- package/dist/{hooks-C41HAxM5.mjs → hooks-ZMp65DFz.mjs} +11 -11
- package/dist/investments/index.es.js +395 -393
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +245 -240
- package/dist/notifications/index.es.js +2 -2
- package/dist/recurringtransactions/index.es.js +293 -285
- package/dist/settings/index.es.js +252 -249
- package/dist/spending/index.es.js +136 -124
- package/dist/transactions/index.es.js +77 -73
- package/dist/trends/index.es.js +601 -588
- package/dist/{useAccountDisplayName-CMMlIOXF.mjs → useAccountDisplayName-Cjx8YmKK.mjs} +2 -2
- package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-B7dxpDrX.mjs} +1 -1
- package/dist/useWidgetLoadTimer-C1NBkyLd.mjs +23 -0
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { T as
|
|
2
|
-
import { b as
|
|
3
|
-
import { B as
|
|
4
|
-
import { T as M } from "../User-
|
|
5
|
-
import { O as
|
|
6
|
-
import { S as ae, D as ze } from "../TransactionStore-
|
|
7
|
-
import { T as
|
|
8
|
-
import { e as Ke } from "../exportTransactionsToCSV-
|
|
9
|
-
import { E as
|
|
1
|
+
import { T as Sa } from "../TransactionApi-CjBoLleL.mjs";
|
|
2
|
+
import { b as W, C as Pe, D as We, M as $e, d as Ve, u as Ge, T as Ue, a as Fe } from "../TransactionDetails-BA_E5nQ-.mjs";
|
|
3
|
+
import { B as wa, e as Ia, c as va } from "../TransactionDetails-BA_E5nQ-.mjs";
|
|
4
|
+
import { T as M } from "../User-Cnlegl1N.mjs";
|
|
5
|
+
import { O as Na } from "../User-Cnlegl1N.mjs";
|
|
6
|
+
import { S as ae, D as ze } from "../TransactionStore-PRlwE-TF.mjs";
|
|
7
|
+
import { T as Oa } from "../TransactionStore-PRlwE-TF.mjs";
|
|
8
|
+
import { e as Ke } from "../exportTransactionsToCSV-DuAaI5XA.mjs";
|
|
9
|
+
import { E as ka } from "../ExportCsvAction-Cglo8Mca.mjs";
|
|
10
10
|
import { jsxs as _, jsx as e } from "react/jsx-runtime";
|
|
11
11
|
import u from "react";
|
|
12
12
|
import { observer as x } from "mobx-react-lite";
|
|
@@ -14,8 +14,8 @@ import qe from "@mui/material/Paper";
|
|
|
14
14
|
import { DataGridPro as je } from "@mui/x-data-grid-pro";
|
|
15
15
|
import S from "@mui/material/Box";
|
|
16
16
|
import { useTheme as Xe } from "@mui/material/styles";
|
|
17
|
-
import { Text as C, Icon as
|
|
18
|
-
import { h as $, u as w, b as j, d as se, m as Qe, a as Ze, g as et,
|
|
17
|
+
import { Text as C, Icon as P, MerchantLogo as Ye, TextField as ne, P as Je } from "@mxenabled/mxui";
|
|
18
|
+
import { h as $, u as w, b as j, d as se, m as Qe, a as Ze, g as et, o as tt } from "../hooks-ZMp65DFz.mjs";
|
|
19
19
|
import { fromUnixTime as at } from "date-fns/fromUnixTime";
|
|
20
20
|
import { f as nt, a as ot, D as ie } from "../Dialog-BPTr3qHE.mjs";
|
|
21
21
|
import N from "@mui/material/Stack";
|
|
@@ -26,23 +26,24 @@ import { getUnixTime as st } from "date-fns/getUnixTime";
|
|
|
26
26
|
import { startOfMonth as it } from "date-fns/startOfMonth";
|
|
27
27
|
import { startOfToday as K } from "date-fns/startOfToday";
|
|
28
28
|
import ct from "@mui/material/styles/useTheme";
|
|
29
|
-
import { l as lt } from "../ConnectDrawer-
|
|
29
|
+
import { l as lt } from "../ConnectDrawer-KL8t1qSC.mjs";
|
|
30
30
|
import dt from "@mui/material/Divider";
|
|
31
31
|
import ut from "@mui/material/MenuItem";
|
|
32
32
|
import mt from "@mui/material/RadioGroup";
|
|
33
33
|
import { ExpandMore as _t } from "@mxenabled/mx-icons";
|
|
34
|
-
import { C as pt } from "../CurrencyInput-
|
|
35
|
-
import { a as gt, u as ht } from "../CategorySelectorDrawer-
|
|
34
|
+
import { C as pt } from "../CurrencyInput-itK0R3wV.mjs";
|
|
35
|
+
import { a as gt, u as ht } from "../CategorySelectorDrawer-SUgfE5GN.mjs";
|
|
36
36
|
import { b as q } from "../Localization-2MODESHW.mjs";
|
|
37
|
-
import { A, W as ft } from "../WidgetContainer-
|
|
37
|
+
import { A, W as ft } from "../WidgetContainer-CaPjoWeE.mjs";
|
|
38
38
|
import { u as Ct } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
39
|
-
import {
|
|
39
|
+
import { u as yt } from "../useWidgetLoadTimer-C1NBkyLd.mjs";
|
|
40
|
+
import { S as bt } from "../SearchBox-B2_zLv8-.mjs";
|
|
40
41
|
import { D as oe } from "../Drawer-BEtCk82g.mjs";
|
|
41
|
-
const
|
|
42
|
+
const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small", children: [
|
|
42
43
|
`${t.row.account}`,
|
|
43
44
|
t.row.number && ` | ${t.row.number}`
|
|
44
|
-
] }),
|
|
45
|
-
const { associatedBeats: s } = $(), { showInsights: r } =
|
|
45
|
+
] }), At = (t) => {
|
|
46
|
+
const { associatedBeats: s } = $(), { showInsights: r } = W(), { amount: a, transaction_type: i } = t.row, l = s.find((p) => p.associated_transaction_guid === t.row.guid), d = i === M.CREDIT;
|
|
46
47
|
return /* @__PURE__ */ _(N, { alignItems: "flex-end", tabIndex: t.tabIndex, children: [
|
|
47
48
|
/* @__PURE__ */ _(C, { color: d ? "success.main" : "text.primary", variant: "Small", children: [
|
|
48
49
|
d ? "+" : "",
|
|
@@ -50,7 +51,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
50
51
|
] }),
|
|
51
52
|
l && r && /* @__PURE__ */ e(C, { bold: !0, color: "primary.light", variant: "XSmall", children: l.short_title })
|
|
52
53
|
] });
|
|
53
|
-
},
|
|
54
|
+
}, St = (t) => {
|
|
54
55
|
const { transactions: s } = w(), [r, a] = u.useState(!1);
|
|
55
56
|
return /* @__PURE__ */ _(
|
|
56
57
|
N,
|
|
@@ -63,13 +64,13 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
63
64
|
onMouseLeave: () => a(!1),
|
|
64
65
|
width: "100%",
|
|
65
66
|
children: [
|
|
66
|
-
t.row.has_been_split && /* @__PURE__ */ e(
|
|
67
|
+
t.row.has_been_split && /* @__PURE__ */ e(P, { name: "call_split", size: 16 }),
|
|
67
68
|
/* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "Small", children: t.row.has_been_split ? s.split_transaction_category_label : t.row.category }),
|
|
68
|
-
!t.row.has_been_split && r && /* @__PURE__ */ e(
|
|
69
|
+
!t.row.has_been_split && r && /* @__PURE__ */ e(P, { name: "edit", sx: { color: "action.active" } })
|
|
69
70
|
]
|
|
70
71
|
}
|
|
71
72
|
);
|
|
72
|
-
},
|
|
73
|
+
}, xt = x(St), wt = (t) => /* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "Small", children: nt(at(t.row.date), ot.MONTH_DAY) }), It = (t) => {
|
|
73
74
|
const s = Xe(), { transactions: r } = w(), { is_flagged: a, is_hidden: i, has_been_viewed: l, parent_guid: d } = t.row, h = !l && !!!d;
|
|
74
75
|
return /* @__PURE__ */ _(
|
|
75
76
|
S,
|
|
@@ -77,8 +78,8 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
77
78
|
"aria-label": i ? r.is_hidden : r.is_flagged,
|
|
78
79
|
tabIndex: t.tabIndex,
|
|
79
80
|
children: [
|
|
80
|
-
a && /* @__PURE__ */ e(
|
|
81
|
-
!a && i && /* @__PURE__ */ e(
|
|
81
|
+
a && /* @__PURE__ */ e(P, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
|
|
82
|
+
!a && i && /* @__PURE__ */ e(P, { name: "visibility_off", size: 16 }),
|
|
82
83
|
h && /* @__PURE__ */ e(
|
|
83
84
|
"svg",
|
|
84
85
|
{
|
|
@@ -97,7 +98,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
97
98
|
]
|
|
98
99
|
}
|
|
99
100
|
);
|
|
100
|
-
},
|
|
101
|
+
}, vt = x(It), O = (t) => /* @__PURE__ */ e(C, { fontWeight: 600, variant: "Small", children: t.colDef.headerName }), Dt = (t) => /* @__PURE__ */ _(N, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
101
102
|
/* @__PURE__ */ e(
|
|
102
103
|
Ye,
|
|
103
104
|
{
|
|
@@ -106,12 +107,12 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
106
107
|
}
|
|
107
108
|
),
|
|
108
109
|
/* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "Small", children: t.row.payee })
|
|
109
|
-
] }),
|
|
110
|
+
] }), Nt = ({
|
|
110
111
|
height: t = "100dvh",
|
|
111
112
|
onCategoryClick: s,
|
|
112
113
|
onRowClick: r
|
|
113
114
|
}) => {
|
|
114
|
-
const { transactions: a } = w(), { isCopyLoaded: i } = j(), { isLoading: l, sortedTransactions: d } = $(), { clearExpandedSplits: p, toggleSplit: h } =
|
|
115
|
+
const { transactions: a } = w(), { isCopyLoaded: i } = j(), { isLoading: l, sortedTransactions: d } = $(), { clearExpandedSplits: p, toggleSplit: h } = W();
|
|
115
116
|
u.useEffect(() => () => p(), []);
|
|
116
117
|
const f = u.useMemo(
|
|
117
118
|
() => d.map((n) => ({
|
|
@@ -130,7 +131,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
130
131
|
minWidth: 32,
|
|
131
132
|
width: 32,
|
|
132
133
|
sortable: !1,
|
|
133
|
-
renderCell: (n) => /* @__PURE__ */ e(
|
|
134
|
+
renderCell: (n) => /* @__PURE__ */ e(vt, { ...n }),
|
|
134
135
|
renderHeader: () => /* @__PURE__ */ e("span", { "aria-label": a.transaction_status, role: "presentation" })
|
|
135
136
|
},
|
|
136
137
|
{
|
|
@@ -138,7 +139,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
138
139
|
headerName: a.date_title,
|
|
139
140
|
width: 103,
|
|
140
141
|
renderHeader: O,
|
|
141
|
-
renderCell: (n) => n.row.parent_guid ? null : /* @__PURE__ */ e(
|
|
142
|
+
renderCell: (n) => n.row.parent_guid ? null : /* @__PURE__ */ e(wt, { ...n }),
|
|
142
143
|
sortingOrder: ["desc", "asc"]
|
|
143
144
|
},
|
|
144
145
|
{
|
|
@@ -147,7 +148,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
147
148
|
headerName: a.payee_title,
|
|
148
149
|
flex: 0.33,
|
|
149
150
|
renderHeader: O,
|
|
150
|
-
renderCell:
|
|
151
|
+
renderCell: Dt,
|
|
151
152
|
sortingOrder: ["asc", "desc"]
|
|
152
153
|
},
|
|
153
154
|
{
|
|
@@ -155,7 +156,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
155
156
|
headerName: a.category_title,
|
|
156
157
|
flex: 0.25,
|
|
157
158
|
renderHeader: O,
|
|
158
|
-
renderCell: (n) => /* @__PURE__ */ e(
|
|
159
|
+
renderCell: (n) => /* @__PURE__ */ e(xt, { ...n }),
|
|
159
160
|
sortingOrder: ["asc", "desc"]
|
|
160
161
|
},
|
|
161
162
|
{
|
|
@@ -163,7 +164,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
163
164
|
headerName: a.account_title,
|
|
164
165
|
flex: 0.33,
|
|
165
166
|
renderHeader: O,
|
|
166
|
-
renderCell: (n) => n.row.parent_guid ? null : /* @__PURE__ */ e(
|
|
167
|
+
renderCell: (n) => n.row.parent_guid ? null : /* @__PURE__ */ e(Tt, { ...n }),
|
|
167
168
|
sortingOrder: ["asc", "desc"]
|
|
168
169
|
},
|
|
169
170
|
{
|
|
@@ -171,7 +172,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
171
172
|
headerName: a.amount_title,
|
|
172
173
|
flex: 0.25,
|
|
173
174
|
renderHeader: O,
|
|
174
|
-
renderCell:
|
|
175
|
+
renderCell: At,
|
|
175
176
|
align: "right",
|
|
176
177
|
headerAlign: "right",
|
|
177
178
|
sortingOrder: ["asc", "desc"]
|
|
@@ -197,7 +198,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
197
198
|
}
|
|
198
199
|
}
|
|
199
200
|
) });
|
|
200
|
-
},
|
|
201
|
+
}, Et = x(Nt), Ot = ({ copy: t, isOpen: s, onClose: r, onPrimaryAction: a }) => {
|
|
201
202
|
const { common: i, transactions: l } = w(), { isCopyLoaded: d } = j();
|
|
202
203
|
return d ? /* @__PURE__ */ _(
|
|
203
204
|
ie,
|
|
@@ -216,8 +217,8 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
216
217
|
]
|
|
217
218
|
}
|
|
218
219
|
) : /* @__PURE__ */ e(X, {});
|
|
219
|
-
},
|
|
220
|
-
const { visibleAccounts: t } = se(), { common: s, transactions: r } = w(), { manualTransaction: a, setIsAmountValid: i, updateManualTransaction: l } =
|
|
220
|
+
}, Mt = x(Ot), kt = () => {
|
|
221
|
+
const { visibleAccounts: t } = se(), { common: s, transactions: r } = w(), { manualTransaction: a, setIsAmountValid: i, updateManualTransaction: l } = W(), [d, p] = u.useState(""), [h, f] = u.useState(""), m = u.useMemo(
|
|
221
222
|
() => t.filter((o) => o.is_manual),
|
|
222
223
|
[t]
|
|
223
224
|
).map((o) => ({
|
|
@@ -313,12 +314,12 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
313
314
|
/* @__PURE__ */ e(dt, { light: !0 }),
|
|
314
315
|
/* @__PURE__ */ _(S, { bgcolor: "background.paper", children: [
|
|
315
316
|
/* @__PURE__ */ e(Pe, { transaction: a }),
|
|
317
|
+
/* @__PURE__ */ e(We, { transaction: a }),
|
|
316
318
|
/* @__PURE__ */ e($e, { transaction: a }),
|
|
317
|
-
/* @__PURE__ */ e(Ve, { transaction: a })
|
|
318
|
-
/* @__PURE__ */ e(We, { transaction: a })
|
|
319
|
+
/* @__PURE__ */ e(Ve, { transaction: a })
|
|
319
320
|
] })
|
|
320
321
|
] });
|
|
321
|
-
},
|
|
322
|
+
}, Lt = x(kt), Rt = ({ onClose: t, transaction: s }) => {
|
|
322
323
|
const { addOrUpdateTransactionRule: r, updateTransaction: a } = $(), { transactions: i } = w(), { categories: l } = Qe(), [d, p] = u.useState(""), h = u.useMemo(
|
|
323
324
|
() => l.find((m) => m.guid === d),
|
|
324
325
|
[d]
|
|
@@ -359,7 +360,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
359
360
|
}
|
|
360
361
|
)
|
|
361
362
|
] });
|
|
362
|
-
},
|
|
363
|
+
}, Ht = x(Rt), re = 120, Bt = ({
|
|
363
364
|
onBackClick: t,
|
|
364
365
|
height: s = "100dvh",
|
|
365
366
|
showInsights: r = !1,
|
|
@@ -377,7 +378,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
377
378
|
filter: Y,
|
|
378
379
|
loadAssociatedBeats: _e,
|
|
379
380
|
setFilter: V,
|
|
380
|
-
sortedTransactionsWithSplits:
|
|
381
|
+
sortedTransactionsWithSplits: G,
|
|
381
382
|
tags: pe,
|
|
382
383
|
transactions: ge,
|
|
383
384
|
updateTransaction: he
|
|
@@ -389,8 +390,11 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
389
390
|
setSearchValue: be,
|
|
390
391
|
setShowInsights: Te,
|
|
391
392
|
updateManualTransaction: Ae
|
|
392
|
-
} =
|
|
393
|
-
|
|
393
|
+
} = W(), { userProfile: Se } = tt(), [U, y] = u.useState(""), [J, H] = u.useState(""), [xe, F] = u.useState(!1), [we, Q] = u.useState(!1), [B, Ie] = u.useState(!1), { announce: ve, ariaLive: De } = Ge(), v = p?.transactions?.selected_account_guid;
|
|
394
|
+
yt({
|
|
395
|
+
widgetName: "TransactionWidget",
|
|
396
|
+
isLoaded: B
|
|
397
|
+
}), u.useEffect(() => {
|
|
394
398
|
const c = v ? [{ guid: v }] : i.filter((D) => !D.is_hidden), ee = it(K()), te = rt(K());
|
|
395
399
|
v || le(c), k(ee, te), V({
|
|
396
400
|
accounts: c.map((D) => D.guid),
|
|
@@ -398,21 +402,21 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
398
402
|
dateRange: { start: ee, end: te }
|
|
399
403
|
}), Ie(!0), m(A.TRANSACTIONS_VIEW);
|
|
400
404
|
}, [i]), u.useEffect(() => {
|
|
401
|
-
|
|
405
|
+
B && (V({
|
|
402
406
|
...Y,
|
|
403
407
|
accounts: v ? [v] : o,
|
|
404
408
|
dateRange: { start: g.start, end: g.end }
|
|
405
409
|
}), _e(g.start).finally());
|
|
406
|
-
}, [
|
|
410
|
+
}, [B, g, o]), u.useEffect(() => {
|
|
407
411
|
Te(r);
|
|
408
412
|
}, [r]), u.useEffect(() => {
|
|
409
413
|
T && n.showing_transactions_count && ve(
|
|
410
414
|
q(
|
|
411
415
|
n.showing_transactions_count,
|
|
412
|
-
|
|
416
|
+
G.length
|
|
413
417
|
)
|
|
414
418
|
);
|
|
415
|
-
}, [T, g, o,
|
|
419
|
+
}, [T, g, o, G, n]);
|
|
416
420
|
const Ne = u.useMemo(
|
|
417
421
|
() => i.filter((c) => c.is_manual),
|
|
418
422
|
[i]
|
|
@@ -424,7 +428,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
424
428
|
searchTerm: c
|
|
425
429
|
}), m(A.TRANSACTIONS_CLICK_SEARCH, { search_term: c });
|
|
426
430
|
}, Me = () => {
|
|
427
|
-
Ke(
|
|
431
|
+
Ke(G, pe), m(A.TRANSACTIONS_CLICK_EXPORT);
|
|
428
432
|
}, ke = () => {
|
|
429
433
|
Ne.length > 0 ? (Ae({
|
|
430
434
|
...ze,
|
|
@@ -433,17 +437,17 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
433
437
|
}), y(
|
|
434
438
|
"addTransaction"
|
|
435
439
|
/* AddTransaction */
|
|
436
|
-
), m(A.TRANSACTIONS_CLICK_ADD)) : (
|
|
440
|
+
), m(A.TRANSACTIONS_CLICK_ADD)) : (F(!0), m(A.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
|
|
437
441
|
}, Le = async () => {
|
|
438
442
|
Z && await me(R), y("");
|
|
439
443
|
}, Re = () => {
|
|
440
|
-
|
|
444
|
+
F(!1), Q(!0);
|
|
441
445
|
}, He = async () => {
|
|
442
446
|
Q(!1), await l();
|
|
443
447
|
}, Be = async () => {
|
|
444
448
|
b && !b.has_been_viewed && await he({ ...b, has_been_viewed: !0 }), y("");
|
|
445
449
|
};
|
|
446
|
-
if (!T || !E || !
|
|
450
|
+
if (!T || !E || !B)
|
|
447
451
|
return /* @__PURE__ */ e(X, {});
|
|
448
452
|
const z = [];
|
|
449
453
|
return !d && (de || ue) && z.push({
|
|
@@ -469,7 +473,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
469
473
|
children: [
|
|
470
474
|
De,
|
|
471
475
|
/* @__PURE__ */ e(S, { mt: 16, children: /* @__PURE__ */ e(
|
|
472
|
-
|
|
476
|
+
bt,
|
|
473
477
|
{
|
|
474
478
|
onChange: Oe,
|
|
475
479
|
placeholder: n.action_bar_search_placeholder,
|
|
@@ -484,7 +488,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
484
488
|
[L.breakpoints.up("md")]: { display: "block" }
|
|
485
489
|
},
|
|
486
490
|
children: /* @__PURE__ */ e(
|
|
487
|
-
|
|
491
|
+
Et,
|
|
488
492
|
{
|
|
489
493
|
height: `calc(${s} - ${re}px)`,
|
|
490
494
|
onCategoryClick: (c) => {
|
|
@@ -530,14 +534,14 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
530
534
|
oe,
|
|
531
535
|
{
|
|
532
536
|
ariaLabelClose: I.close_aria,
|
|
533
|
-
isOpen:
|
|
537
|
+
isOpen: U === "transaction" && !!b,
|
|
534
538
|
onClose: Be,
|
|
535
539
|
title: n.details_title,
|
|
536
540
|
children: b && /* @__PURE__ */ e(Fe, { transaction: b })
|
|
537
541
|
}
|
|
538
542
|
),
|
|
539
|
-
b &&
|
|
540
|
-
|
|
543
|
+
b && U === "category" && /* @__PURE__ */ e(
|
|
544
|
+
Ht,
|
|
541
545
|
{
|
|
542
546
|
onClose: () => {
|
|
543
547
|
f(""), y(""), H("");
|
|
@@ -549,21 +553,21 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
549
553
|
oe,
|
|
550
554
|
{
|
|
551
555
|
ariaLabelClose: I.close_aria,
|
|
552
|
-
isOpen:
|
|
556
|
+
isOpen: U === "addTransaction",
|
|
553
557
|
isPrimaryDisabled: !Z,
|
|
554
558
|
onClose: () => y(""),
|
|
555
559
|
onPrimaryAction: Le,
|
|
556
560
|
title: n.add_transaction_title,
|
|
557
|
-
children: /* @__PURE__ */ e(
|
|
561
|
+
children: /* @__PURE__ */ e(Lt, {})
|
|
558
562
|
}
|
|
559
563
|
),
|
|
560
564
|
/* @__PURE__ */ e(
|
|
561
|
-
|
|
565
|
+
Mt,
|
|
562
566
|
{
|
|
563
567
|
copy: { title: n.add_manual_account },
|
|
564
568
|
isOpen: xe,
|
|
565
569
|
onClose: () => {
|
|
566
|
-
|
|
570
|
+
F(!1);
|
|
567
571
|
},
|
|
568
572
|
onPrimaryAction: Re
|
|
569
573
|
}
|
|
@@ -579,20 +583,20 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
579
583
|
]
|
|
580
584
|
}
|
|
581
585
|
);
|
|
582
|
-
},
|
|
586
|
+
}, ba = x(Bt);
|
|
583
587
|
export {
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
588
|
+
Mt as AddAccountModal,
|
|
589
|
+
wa as BottomActions,
|
|
590
|
+
ka as ExportCsvAction,
|
|
591
|
+
Na as TRANSACTION_EVENTS,
|
|
592
|
+
Ia as TopActions,
|
|
593
|
+
Sa as TransactionApi,
|
|
590
594
|
Fe as TransactionDetails,
|
|
591
595
|
Ue as TransactionList,
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
+
va as TransactionRow,
|
|
597
|
+
Oa as TransactionStore,
|
|
598
|
+
Et as TransactionTable,
|
|
599
|
+
ba as TransactionWidget,
|
|
596
600
|
Ke as exportTransactionsToCSV,
|
|
597
|
-
|
|
601
|
+
W as useTransactionsUiStore
|
|
598
602
|
};
|