@mx-cartographer/experiences 8.0.0-alpha.sms1 → 8.0.0-alpha.sms2
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/dist/{Account-BDXA6PWh.mjs → Account-Cp30A3ad.mjs} +1 -1
- package/dist/{AccountDetailsContent-CUztd3-b.mjs → AccountDetailsContent-C1HumFnW.mjs} +16 -16
- package/dist/{AccountDetailsHeader-i3KFhNuo.mjs → AccountDetailsHeader-NMx79DGs.mjs} +5 -5
- package/dist/{AccountFields-QZspYAji.mjs → AccountFields-CW6cIthP.mjs} +7 -5
- package/dist/{AccountListItem-DX5upmCS.mjs → AccountListItem-DxmAs98Z.mjs} +4 -4
- package/dist/{AccountStore-BcnDpyLL.mjs → AccountStore-hIs-yA6W.mjs} +3 -3
- package/dist/{Accounts-DXfZotRC.mjs → Accounts-DUHkUyK4.mjs} +1 -1
- package/dist/{BudgetUtil-Df2nII9u.mjs → BudgetUtil-CIDAPPPT.mjs} +1 -1
- package/dist/{CashflowStore-D9Dpuz7X.mjs → CashflowStore-naOtJcwo.mjs} +12 -12
- package/dist/{Category-CevNQ03n.mjs → Category-Ccoew_sA.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-DqJK_rrL.mjs → CategorySelectorDrawer-DqDAA_5I.mjs} +3 -3
- package/dist/{CategoryStore-DTgyAMM7.mjs → CategoryStore-MUwRWH9e.mjs} +2 -2
- package/dist/{CategoryUtil-C5cR-nfQ.mjs → CategoryUtil-DfVKKkRf.mjs} +4 -4
- package/dist/{ConnectDrawer-BIbTqYOH.mjs → ConnectDrawer-Dn1MlqLz.mjs} +28 -28
- package/dist/{ConnectionsDrawer-BFfY3_zB.mjs → ConnectionsDrawer-CSo6AFkG.mjs} +2 -2
- package/dist/{CurrencyInput-BFKcs-_K.mjs → CurrencyInput-BrGvhgVK.mjs} +8 -8
- package/dist/{DateUtil-CBdcsyuk.mjs → DateUtil-CDPZw_-m.mjs} +1 -1
- package/dist/{DebtsStore-BbJB0nmu.mjs → DebtsStore-hi1cqrRk.mjs} +1 -1
- package/dist/{Dialog-BPTr3qHE.mjs → Dialog-CDV0kKxj.mjs} +24 -24
- package/dist/{Drawer-BEtCk82g.mjs → Drawer-Dqe5EqvA.mjs} +14 -14
- package/dist/{ExportCsvAction-DzTrtPzk.mjs → ExportCsvAction-CQ1grpwo.mjs} +3 -3
- package/dist/{FinstrongStore-BIrX0Xg2.mjs → FinstrongStore-dKZOZ2hM.mjs} +53 -53
- package/dist/{GoalStore-DpWY3gVb.mjs → GoalStore-CFeAJloA.mjs} +2 -2
- package/dist/{Help-DhcC-C05.mjs → Help-c-zHlDbv.mjs} +8 -8
- package/dist/{Help-BnPXM_N2.mjs → Help-i4OasOO-.mjs} +177 -180
- package/dist/{IconBacking-B9oC6uL2.mjs → IconBacking-DgT8DCeh.mjs} +11 -11
- package/dist/{ListItemAction-uobBrm_a.mjs → ListItemAction-BNCWQAN_.mjs} +1 -1
- package/dist/{Loader-DUaFpDGv.mjs → Loader-BSWSYqvn.mjs} +3 -3
- package/dist/{ManageIncome-NpXHhO1n.mjs → ManageIncome-D_qVX5dN.mjs} +8 -8
- package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +45 -0
- package/dist/MiniWidgetContainer-D7MkHG15.mjs +56 -0
- package/dist/{NetWorthStore-lsuhEpn6.mjs → NetWorthStore-8FFC1Bs0.mjs} +4 -4
- package/dist/{NotificationSettings-CNmJWVeI.mjs → NotificationSettings-BsWiYD94.mjs} +14 -14
- package/dist/{OriginalBalanceAction-DK8_LkPz.mjs → OriginalBalanceAction-62e0mU_3.mjs} +2 -2
- package/dist/{RecurringSettings-CqZh1SQa.mjs → RecurringSettings-RfZ8Wuhh.mjs} +3 -3
- package/dist/{RecurringTransactions-BKcYmpv3.mjs → RecurringTransactions-Bhx56aA3.mjs} +36 -36
- package/dist/{RecurringTransactionsStore-Ni5tSQIO.mjs → RecurringTransactionsStore-D3EOKZ2B.mjs} +1 -1
- package/dist/{ResponsiveButton-DZFp78fJ.mjs → ResponsiveButton-C6KH8JH4.mjs} +9 -9
- package/dist/{SettingsStore-krIRNwHK.mjs → SettingsStore-BASMQSIp.mjs} +1 -1
- package/dist/{SingleSegmentDonut-BgbLgwHi.mjs → SingleSegmentDonut-PsRQPkmV.mjs} +5 -5
- package/dist/{SpendingData-BuJ03S9d.mjs → SpendingData-DPQ96k3x.mjs} +4 -4
- package/dist/{SpendingLegend-CjX-hX2O.mjs → SpendingLegend-CZzDb-7d.mjs} +3 -3
- package/dist/{StatusBar-BK_uYHAB.mjs → StatusBar-CPfSXe80.mjs} +6 -6
- package/dist/{TabContentContainer-j01JYR_7.mjs → TabContentContainer-CnMXkVqr.mjs} +8 -8
- package/dist/{TransactionDetails-5M2vfr59.mjs → TransactionDetails-Duv1X9ec.mjs} +9 -9
- package/dist/{TransactionStore-D-Q3BU9Z.mjs → TransactionStore-DgLrYW4C.mjs} +41 -58
- package/dist/{TrendsStore-BW9FGQeE.mjs → TrendsStore-_mRaFUdf.mjs} +37 -37
- package/dist/{User-wXzDI4M8.mjs → User-DqNX2GAK.mjs} +19 -19
- package/dist/{ViewMoreMicroCard-C0832BMe.mjs → ViewMoreMicroCard-CH9E-jOx.mjs} +68 -69
- package/dist/{WidgetContainer-BhQ1Kx2z.mjs → WidgetContainer-B1Jzb4XA.mjs} +33 -33
- package/dist/accounts/index.es.js +71 -71
- package/dist/analytics/index.es.js +7 -7
- package/dist/budgets/index.es.js +110 -110
- package/dist/cashflow/index.es.js +68 -68
- package/dist/categories/index.es.js +2 -2
- package/dist/common/index.es.js +248 -248
- package/dist/dashboard/index.es.js +7 -7
- package/dist/debts/index.es.js +12 -12
- package/dist/{exportTransactionsToCSV-Cz2t0lmA.mjs → exportTransactionsToCSV-BFpuIAXW.mjs} +3 -3
- package/dist/finstrong/index.es.js +18 -18
- package/dist/goals/index.es.js +19 -19
- package/dist/help/index.es.js +6 -6
- package/dist/investments/index.es.js +4 -4
- package/dist/merchants/index.es.js +12 -12
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +11 -11
- package/dist/notifications/index.es.js +4 -4
- package/dist/recurringtransactions/index.es.js +16 -16
- package/dist/settings/index.es.js +62 -62
- package/dist/spending/index.es.js +26 -26
- package/dist/transactions/index.es.js +58 -58
- package/dist/trends/index.es.js +59 -59
- package/dist/{useAccountDisplayName-CFNF8766.mjs → useAccountDisplayName-usSZCQ7I.mjs} +1 -1
- package/package.json +16 -21
- package/dist/MicroWidgetContainer-DEiRnYVa.mjs +0 -45
- package/dist/MiniWidgetContainer-CmXpTylX.mjs +0 -56
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
import { T as Sa } from "../TransactionApi-CjBoLleL.mjs";
|
|
2
|
-
import { b as P, C as Pe, D as
|
|
3
|
-
import { B as wa, e as va, c as Ia } from "../TransactionDetails-
|
|
4
|
-
import { T as M } from "../User-
|
|
5
|
-
import { O as Na } from "../User-
|
|
6
|
-
import { S as ae, D as ze } from "../TransactionStore-
|
|
7
|
-
import { T as Oa } from "../TransactionStore-
|
|
8
|
-
import { e as Ke } from "../exportTransactionsToCSV-
|
|
9
|
-
import { E as ka } from "../ExportCsvAction-
|
|
2
|
+
import { b as P, C as Pe, D as Ve, M as $e, d as Ge, u as We, T as Ue, a as Fe } from "../TransactionDetails-Duv1X9ec.mjs";
|
|
3
|
+
import { B as wa, e as va, c as Ia } from "../TransactionDetails-Duv1X9ec.mjs";
|
|
4
|
+
import { T as M } from "../User-DqNX2GAK.mjs";
|
|
5
|
+
import { O as Na } from "../User-DqNX2GAK.mjs";
|
|
6
|
+
import { S as ae, D as ze } from "../TransactionStore-DgLrYW4C.mjs";
|
|
7
|
+
import { T as Oa } from "../TransactionStore-DgLrYW4C.mjs";
|
|
8
|
+
import { e as Ke } from "../exportTransactionsToCSV-BFpuIAXW.mjs";
|
|
9
|
+
import { E as ka } from "../ExportCsvAction-CQ1grpwo.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";
|
|
13
13
|
import qe from "@mui/material/Paper";
|
|
14
14
|
import { DataGridPro as je } from "@mui/x-data-grid-pro";
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import
|
|
18
|
-
import { h as
|
|
15
|
+
import { L as q } from "../Loader-BSWSYqvn.mjs";
|
|
16
|
+
import { Text as C, Icon as B, MerchantLogo as Xe, TextField as ne, P as Ye } from "@mxenabled/mxui";
|
|
17
|
+
import A from "@mui/material/Stack";
|
|
18
|
+
import { h as V, u as w, b as j, d as se, m as Je, a as Qe, g as Ze, p as et } from "../hooks-C41HAxM5.mjs";
|
|
19
|
+
import { f as ie } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
20
|
+
import S from "@mui/material/Box";
|
|
21
|
+
import { useTheme as tt } from "@mui/material/styles";
|
|
19
22
|
import { fromUnixTime as at } from "date-fns/fromUnixTime";
|
|
20
|
-
import { f as nt, a as ot, D as
|
|
21
|
-
import S from "@mui/material/Stack";
|
|
22
|
-
import { f as ce } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
23
|
-
import { L as j } from "../Loader-DUaFpDGv.mjs";
|
|
23
|
+
import { f as nt, a as ot, D as ce } from "../Dialog-CDV0kKxj.mjs";
|
|
24
24
|
import { endOfMonth as rt } from "date-fns/endOfMonth";
|
|
25
25
|
import { getUnixTime as st } from "date-fns/getUnixTime";
|
|
26
26
|
import { startOfMonth as it } from "date-fns/startOfMonth";
|
|
27
27
|
import { startOfToday as z } 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-Dn1MlqLz.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-BrGvhgVK.mjs";
|
|
35
|
+
import { a as gt, u as ht } from "../CategorySelectorDrawer-DqDAA_5I.mjs";
|
|
36
36
|
import { b as K } from "../Localization-2MODESHW.mjs";
|
|
37
37
|
import { S as ft } from "../SkeletonLoader-BaNboJjD.mjs";
|
|
38
|
-
import { A as T, W as Ct } from "../WidgetContainer-
|
|
38
|
+
import { A as T, W as Ct } from "../WidgetContainer-B1Jzb4XA.mjs";
|
|
39
|
+
import { D as oe } from "../Drawer-Dqe5EqvA.mjs";
|
|
39
40
|
import { u as yt } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
40
41
|
import { S as bt } from "../SearchBox-B2_zLv8-.mjs";
|
|
41
|
-
import { D as oe } from "../Drawer-BEtCk82g.mjs";
|
|
42
42
|
const Tt = (t) => /* @__PURE__ */ _(C, { 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 } =
|
|
47
|
-
return /* @__PURE__ */ _(
|
|
46
|
+
const { associatedBeats: s } = V(), { 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
|
+
return /* @__PURE__ */ _(A, { alignItems: "flex-end", tabIndex: t.tabIndex, children: [
|
|
48
48
|
/* @__PURE__ */ _(C, { color: d ? "success.main" : "text.primary", variant: "Small", children: [
|
|
49
49
|
d ? "+" : "",
|
|
50
|
-
|
|
50
|
+
ie(a, "0,0.00")
|
|
51
51
|
] }),
|
|
52
52
|
l && r && /* @__PURE__ */ e(C, { bold: !0, color: "primary.light", variant: "XSmall", children: l.short_title })
|
|
53
53
|
] });
|
|
54
54
|
}, St = (t) => {
|
|
55
55
|
const { transactions: s } = w(), [r, a] = u.useState(!1);
|
|
56
56
|
return /* @__PURE__ */ _(
|
|
57
|
-
|
|
57
|
+
A,
|
|
58
58
|
{
|
|
59
59
|
alignItems: "center",
|
|
60
60
|
direction: "row",
|
|
@@ -71,9 +71,9 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
71
71
|
}
|
|
72
72
|
);
|
|
73
73
|
}, xt = x(St), wt = (t) => /* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "Small", children: nt(at(t.row.date), ot.MONTH_DAY) }), vt = (t) => {
|
|
74
|
-
const s =
|
|
74
|
+
const s = tt(), { transactions: r } = w(), { is_flagged: a, is_hidden: i, has_been_viewed: l, parent_guid: d } = t.row, h = !l && !!!d;
|
|
75
75
|
return /* @__PURE__ */ _(
|
|
76
|
-
|
|
76
|
+
S,
|
|
77
77
|
{
|
|
78
78
|
"aria-label": i ? r.is_hidden : r.is_flagged,
|
|
79
79
|
tabIndex: t.tabIndex,
|
|
@@ -98,9 +98,9 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
98
98
|
]
|
|
99
99
|
}
|
|
100
100
|
);
|
|
101
|
-
}, It = x(vt), O = (t) => /* @__PURE__ */ e(C, { fontWeight: 600, variant: "Small", children: t.colDef.headerName }), Dt = (t) => /* @__PURE__ */ _(
|
|
101
|
+
}, It = x(vt), O = (t) => /* @__PURE__ */ e(C, { fontWeight: 600, variant: "Small", children: t.colDef.headerName }), Dt = (t) => /* @__PURE__ */ _(A, { 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 || ""
|
|
@@ -112,7 +112,7 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
112
112
|
onCategoryClick: s,
|
|
113
113
|
onRowClick: r
|
|
114
114
|
}) => {
|
|
115
|
-
const { transactions: a } = w(), { isCopyLoaded: i } =
|
|
115
|
+
const { transactions: a } = w(), { isCopyLoaded: i } = j(), { isLoading: l, sortedTransactions: d } = V(), { clearExpandedSplits: p, toggleSplit: h } = P();
|
|
116
116
|
u.useEffect(() => () => p(), []);
|
|
117
117
|
const f = u.useMemo(
|
|
118
118
|
() => d.map((n) => ({
|
|
@@ -123,7 +123,7 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
123
123
|
[d]
|
|
124
124
|
), m = ({ row: { id: n, guid: g, has_been_split: I }, field: E }) => I ? h(n) : E === "category" ? s?.(g) : r?.(g);
|
|
125
125
|
if (!i)
|
|
126
|
-
return /* @__PURE__ */ e(
|
|
126
|
+
return /* @__PURE__ */ e(q, {});
|
|
127
127
|
const v = [
|
|
128
128
|
{
|
|
129
129
|
field: "flag",
|
|
@@ -199,9 +199,9 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
199
199
|
}
|
|
200
200
|
) });
|
|
201
201
|
}, Et = x(Nt), Ot = ({ copy: t, isOpen: s, onClose: r, onPrimaryAction: a }) => {
|
|
202
|
-
const { common: i, transactions: l } = w(), { isCopyLoaded: d } =
|
|
202
|
+
const { common: i, transactions: l } = w(), { isCopyLoaded: d } = j();
|
|
203
203
|
return d ? /* @__PURE__ */ _(
|
|
204
|
-
|
|
204
|
+
ce,
|
|
205
205
|
{
|
|
206
206
|
copy: {
|
|
207
207
|
title: t.title
|
|
@@ -216,13 +216,13 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
216
216
|
/* @__PURE__ */ e(C, { component: "p", truncate: !1, children: l.add_account_modal_cta })
|
|
217
217
|
]
|
|
218
218
|
}
|
|
219
|
-
) : /* @__PURE__ */ e(
|
|
219
|
+
) : /* @__PURE__ */ e(q, {});
|
|
220
220
|
}, Mt = x(Ot), kt = () => {
|
|
221
221
|
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
222
|
() => t.filter((o) => o.is_manual),
|
|
223
223
|
[t]
|
|
224
224
|
).map((o) => ({
|
|
225
|
-
label: `${o.name} | ${
|
|
225
|
+
label: `${o.name} | ${ie(o.balance, "0,0.00")}`,
|
|
226
226
|
value: o.guid
|
|
227
227
|
})), v = {
|
|
228
228
|
error_amount_is_invalid: s.currency_input.error_amount_is_invalid,
|
|
@@ -238,10 +238,10 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
238
238
|
}, E = (o) => {
|
|
239
239
|
l({ ...a, account_guid: o });
|
|
240
240
|
};
|
|
241
|
-
return /* @__PURE__ */ _(
|
|
242
|
-
/* @__PURE__ */ _(
|
|
241
|
+
return /* @__PURE__ */ _(S, { className: "mx-txn-manual-transaction-details", children: [
|
|
242
|
+
/* @__PURE__ */ _(A, { gap: 40, mx: 24, my: 32, children: [
|
|
243
243
|
/* @__PURE__ */ _(
|
|
244
|
-
|
|
244
|
+
A,
|
|
245
245
|
{
|
|
246
246
|
direction: "row",
|
|
247
247
|
sx: { flexDirection: { xs: "column", sm: "row" }, gap: { xs: 40, sm: 8 } },
|
|
@@ -263,7 +263,7 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
263
263
|
type: "number"
|
|
264
264
|
}
|
|
265
265
|
),
|
|
266
|
-
/* @__PURE__ */ e(mt, { name: "TransactionType", onChange: g, row: !0, children: /* @__PURE__ */ _(
|
|
266
|
+
/* @__PURE__ */ e(mt, { name: "TransactionType", onChange: g, row: !0, children: /* @__PURE__ */ _(A, { alignItems: "center", direction: "row", children: [
|
|
267
267
|
/* @__PURE__ */ e(
|
|
268
268
|
ae,
|
|
269
269
|
{
|
|
@@ -312,21 +312,21 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
312
312
|
)
|
|
313
313
|
] }),
|
|
314
314
|
/* @__PURE__ */ e(dt, { light: !0 }),
|
|
315
|
-
/* @__PURE__ */ _(
|
|
315
|
+
/* @__PURE__ */ _(S, { bgcolor: "background.paper", children: [
|
|
316
316
|
/* @__PURE__ */ e(Pe, { transaction: a }),
|
|
317
|
-
/* @__PURE__ */ e($e, { transaction: a }),
|
|
318
317
|
/* @__PURE__ */ e(Ve, { transaction: a }),
|
|
318
|
+
/* @__PURE__ */ e($e, { transaction: a }),
|
|
319
319
|
/* @__PURE__ */ e(Ge, { transaction: a })
|
|
320
320
|
] })
|
|
321
321
|
] });
|
|
322
322
|
}, Lt = x(kt), Rt = ({ onClose: t, transaction: s }) => {
|
|
323
|
-
const { addOrUpdateTransactionRule: r, updateTransaction: a } =
|
|
323
|
+
const { addOrUpdateTransactionRule: r, updateTransaction: a } = V(), { transactions: i } = w(), { categories: l } = Je(), [d, p] = u.useState(""), h = u.useMemo(
|
|
324
324
|
() => l.find((m) => m.guid === d),
|
|
325
325
|
[d]
|
|
326
326
|
), f = async (m) => {
|
|
327
327
|
await a({ ...s, category_guid: d }), m && await r(d, s), p(""), t();
|
|
328
328
|
};
|
|
329
|
-
return /* @__PURE__ */ _(
|
|
329
|
+
return /* @__PURE__ */ _(S, { className: "mx-txn-edit-category-action", children: [
|
|
330
330
|
/* @__PURE__ */ e(
|
|
331
331
|
gt,
|
|
332
332
|
{
|
|
@@ -338,7 +338,7 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
338
338
|
}
|
|
339
339
|
),
|
|
340
340
|
/* @__PURE__ */ e(
|
|
341
|
-
|
|
341
|
+
ce,
|
|
342
342
|
{
|
|
343
343
|
copy: {
|
|
344
344
|
title: K(
|
|
@@ -352,7 +352,7 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
352
352
|
onSecondaryAction: () => f(!1),
|
|
353
353
|
primaryText: i.actions_apply_to_all,
|
|
354
354
|
secondaryText: i.actions_this_time_only,
|
|
355
|
-
children: /* @__PURE__ */ e(
|
|
355
|
+
children: /* @__PURE__ */ e(Ye, { variant: "Paragraph", children: K(
|
|
356
356
|
i.actions_all_past_and_future,
|
|
357
357
|
s.description,
|
|
358
358
|
h?.name
|
|
@@ -366,25 +366,25 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
366
366
|
showInsights: r = !1,
|
|
367
367
|
sx: a = {}
|
|
368
368
|
}) => {
|
|
369
|
-
const { visibleAccounts: i, refreshAccounts: l } = se(), { is_mobile_webview: d, clientConfig: p, config: h } =
|
|
369
|
+
const { visibleAccounts: i, refreshAccounts: l } = se(), { is_mobile_webview: d, clientConfig: p, config: h } = Qe(), { setSearchValue: f } = ht(), { onEvent: m } = Ze(), { common: v, transactions: n } = w(), {
|
|
370
370
|
displayedDateRange: g,
|
|
371
371
|
isCopyLoaded: I,
|
|
372
372
|
isInitialized: E,
|
|
373
373
|
selectedAccountGuids: o,
|
|
374
374
|
setDisplayedDate: k,
|
|
375
375
|
setSelectedAccounts: le
|
|
376
|
-
} =
|
|
376
|
+
} = j(), { isDesktop: de, isTablet: ue } = yt(), L = ct(), {
|
|
377
377
|
addTransaction: me,
|
|
378
378
|
filter: X,
|
|
379
379
|
isTransactionDataLoaded: Y,
|
|
380
380
|
loadAssociatedBeats: _e,
|
|
381
381
|
loadTransactionData: pe,
|
|
382
|
-
setFilter:
|
|
382
|
+
setFilter: $,
|
|
383
383
|
sortedTransactionsWithSplits: G,
|
|
384
384
|
tags: ge,
|
|
385
385
|
detailedTransactions: he,
|
|
386
386
|
updateTransaction: fe
|
|
387
|
-
} =
|
|
387
|
+
} = V(), {
|
|
388
388
|
clearExpandedSplits: Ce,
|
|
389
389
|
isAmountValid: ye,
|
|
390
390
|
manualTransaction: R,
|
|
@@ -392,18 +392,18 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
392
392
|
setSearchValue: Te,
|
|
393
393
|
setShowInsights: Ae,
|
|
394
394
|
updateManualTransaction: Se
|
|
395
|
-
} = P(), { userProfile: xe } =
|
|
395
|
+
} = P(), { userProfile: xe } = et(), [W, y] = u.useState(""), [J, H] = u.useState(""), [we, U] = u.useState(!1), [ve, Q] = u.useState(!1), { announce: Ie, ariaLive: De } = We(), D = p?.transactions?.selected_account_guid;
|
|
396
396
|
u.useEffect(() => {
|
|
397
397
|
Y || pe().finally();
|
|
398
398
|
}, []), u.useEffect(() => {
|
|
399
399
|
const c = D ? [{ guid: D }] : i.filter((N) => !N.is_hidden), ee = it(z()), te = rt(z());
|
|
400
|
-
D || le(c), k(ee, te),
|
|
400
|
+
D || le(c), k(ee, te), $({
|
|
401
401
|
accounts: c.map((N) => N.guid),
|
|
402
402
|
custom: (N) => !N.accountIsClosed && !N.accountIsHidden,
|
|
403
403
|
dateRange: { start: ee, end: te }
|
|
404
404
|
}), m(T.TRANSACTIONS_VIEW);
|
|
405
405
|
}, [i]), u.useEffect(() => {
|
|
406
|
-
|
|
406
|
+
$({
|
|
407
407
|
...X,
|
|
408
408
|
accounts: D ? [D] : o,
|
|
409
409
|
dateRange: { start: g.start, end: g.end }
|
|
@@ -424,7 +424,7 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
424
424
|
), b = J ? he.find((c) => c.guid === J) : void 0, Z = ye && !!R.payee && !!R.account_guid && !!R.category_guid, Ee = (c) => {
|
|
425
425
|
Ce(), k(c[0], c[1]);
|
|
426
426
|
}, Oe = (c) => {
|
|
427
|
-
Te(c),
|
|
427
|
+
Te(c), $({
|
|
428
428
|
...X,
|
|
429
429
|
searchTerm: c
|
|
430
430
|
}), m(T.TRANSACTIONS_CLICK_SEARCH, { search_term: c });
|
|
@@ -449,7 +449,7 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
449
449
|
b && !b.has_been_viewed && await fe({ ...b, has_been_viewed: !0 }), y("");
|
|
450
450
|
};
|
|
451
451
|
if (!E)
|
|
452
|
-
return /* @__PURE__ */ e(
|
|
452
|
+
return /* @__PURE__ */ e(q, {});
|
|
453
453
|
const F = [];
|
|
454
454
|
return !d && (de || ue) && F.push({
|
|
455
455
|
iconName: "open_in_new",
|
|
@@ -472,9 +472,9 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
472
472
|
sx: a,
|
|
473
473
|
title: n.transactions_title,
|
|
474
474
|
children: [
|
|
475
|
-
Y ? /* @__PURE__ */ _(
|
|
475
|
+
Y ? /* @__PURE__ */ _(A, { children: [
|
|
476
476
|
De,
|
|
477
|
-
/* @__PURE__ */ e(
|
|
477
|
+
/* @__PURE__ */ e(S, { mt: 16, children: /* @__PURE__ */ e(
|
|
478
478
|
bt,
|
|
479
479
|
{
|
|
480
480
|
onChange: Oe,
|
|
@@ -483,7 +483,7 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
483
483
|
}
|
|
484
484
|
) }),
|
|
485
485
|
/* @__PURE__ */ e(
|
|
486
|
-
|
|
486
|
+
S,
|
|
487
487
|
{
|
|
488
488
|
sx: {
|
|
489
489
|
[L.breakpoints.down("md")]: { display: "none" },
|
|
@@ -510,7 +510,7 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
510
510
|
}
|
|
511
511
|
),
|
|
512
512
|
/* @__PURE__ */ e(
|
|
513
|
-
|
|
513
|
+
S,
|
|
514
514
|
{
|
|
515
515
|
sx: {
|
|
516
516
|
[L.breakpoints.down("md")]: { display: "block" },
|