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