@mx-cartographer/experiences 8.1.0 → 8.1.2
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 +9 -0
- package/dist/{Account-DuOz1a27.mjs → Account-BIKn4XEZ.mjs} +1 -1
- package/dist/{Account-BiB1F8lL.mjs → Account-CMjOp7S2.mjs} +2 -2
- package/dist/{AccountDetailsHeader-IPRH6Wja.mjs → AccountDetailsHeader-D_a0XUkL.mjs} +6 -6
- package/dist/{AccountFields-BbPSfzru.mjs → AccountFields-nrrEXd46.mjs} +30 -29
- package/dist/{AccountListItem-qpACFl6i.mjs → AccountListItem-D80egD01.mjs} +5 -5
- package/dist/{AccountStore-BeEiLNhW.mjs → AccountStore-B3S_p5Qa.mjs} +3 -3
- package/dist/{Accounts-o7ohkngR.mjs → Accounts-DX3xJE97.mjs} +1 -1
- package/dist/{Analytics-CjZ0emfs.mjs → Analytics-CxK7O19c.mjs} +2 -2
- package/dist/{BudgetUtil-CLh4xtj4.mjs → BudgetUtil-DalEN9--.mjs} +47 -47
- package/dist/{CashflowStore-CeAzChyD.mjs → CashflowStore-BEi92kJg.mjs} +10 -10
- package/dist/{Category-CevNQ03n.mjs → Category-Ccoew_sA.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-BG04ByUx.mjs → CategorySelectorDrawer-DjeHNx71.mjs} +7 -7
- package/dist/{CategoryStore-Bp1kO9Z-.mjs → CategoryStore-CA4NTaKH.mjs} +2 -2
- package/dist/{CategoryUtil-DKRCegQv.mjs → CategoryUtil-BJOHgYKS.mjs} +3 -3
- package/dist/{Connect-eYIWqCEr.mjs → Connect-BRLh-69J.mjs} +1 -1
- package/dist/{ConnectDrawer-C0wjwcJt.mjs → ConnectDrawer-5BpU4IQU.mjs} +3 -3
- package/dist/{ConnectionsDrawer-IA7vnv1J.mjs → ConnectionsDrawer-DxpSlJN7.mjs} +3 -3
- package/dist/{CurrencyInput-BkNVHxSV.mjs → CurrencyInput-CSJ3zMgE.mjs} +18 -18
- package/dist/DateUtil-D0TO0DaZ.mjs +58 -0
- package/dist/{DebtsStore-BZqNLaqd.mjs → DebtsStore-BJlC2-yO.mjs} +1 -1
- package/dist/{Dialog-Ck34yr-d.mjs → Dialog-iLlBR8TG.mjs} +6 -6
- package/dist/{Donut-CpxJlVvJ.mjs → Donut-D7ekbgf5.mjs} +12 -12
- package/dist/{Drawer-Bbe4AMB1.mjs → Drawer-XPaLYjiO.mjs} +11 -11
- package/dist/{EmbeddedCard-j7IGx3s1.mjs → EmbeddedCard-BCcn_fK2.mjs} +193 -193
- package/dist/{ExportCsvAction-7sjz7AXQ.mjs → ExportCsvAction-BPjdEUXx.mjs} +5 -5
- package/dist/{FinstrongStore-DgyDJTEP.mjs → FinstrongStore-DYawCv1d.mjs} +54 -54
- package/dist/{GlobalAccountFilter-CmnaZDS6.mjs → GlobalAccountFilter-CZbiDwBH.mjs} +1 -1
- package/dist/{GoalStore-DcaT4fM6.mjs → GoalStore-DmqM1ZfW.mjs} +1 -1
- package/dist/{Help-B8mD4aLJ.mjs → Help-CgpJK03Q.mjs} +6 -6
- package/dist/{Help-cTsMzSQh.mjs → Help-DuhUdMTZ.mjs} +95 -98
- package/dist/{IconBacking-B9oC6uL2.mjs → IconBacking-DgT8DCeh.mjs} +11 -11
- package/dist/{LineChart-DkD_s9NN.mjs → LineChart-jJVBE8V8.mjs} +1 -1
- package/dist/{ListItemAction-4KB7P75M.mjs → ListItemAction-Buv7tPLp.mjs} +4 -4
- package/dist/{Loader-D3rjKx72.mjs → Loader-CxeBwuPG.mjs} +5 -5
- package/dist/{ManageIncome-DwSE_a8L.mjs → ManageIncome-CrHDAku7.mjs} +8 -8
- package/dist/MicroWidgetContainer-CEcwdfti.mjs +45 -0
- package/dist/MiniWidgetContainer-CmTGSUL5.mjs +66 -0
- package/dist/{NetWorthStore-Ba3q3VcH.mjs → NetWorthStore-BY-B_hxy.mjs} +4 -4
- package/dist/{NotificationSettings-DB-eNgSv.mjs → NotificationSettings-DOgnTxzv.mjs} +9 -9
- package/dist/{OriginalBalanceAction-AB1TGb5P.mjs → OriginalBalanceAction-C8VJZUat.mjs} +9 -9
- package/dist/{RecurringSettings-CZKeZC4m.mjs → RecurringSettings-CIpZL4CX.mjs} +2 -2
- package/dist/{RecurringTransactions-kzlU8OFY.mjs → RecurringTransactions-DCt94TN4.mjs} +47 -47
- package/dist/{RecurringTransactionsStore-D62Dt2BF.mjs → RecurringTransactionsStore-CFJYC7lI.mjs} +1 -1
- package/dist/{ResponsiveButton-DZFp78fJ.mjs → ResponsiveButton-BNsV08Ud.mjs} +12 -12
- package/dist/{SettingsStore-Dsz1mvd3.mjs → SettingsStore-BcbuKfFO.mjs} +1 -1
- package/dist/{SingleSegmentDonut-BgbLgwHi.mjs → SingleSegmentDonut-PsRQPkmV.mjs} +5 -5
- package/dist/{SpendingData-CoZOmlZD.mjs → SpendingData-Dj85XEUp.mjs} +3 -3
- package/dist/{SpendingLegend-DljKEG69.mjs → SpendingLegend-DIWHSsKw.mjs} +5 -5
- 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-CN-yZkin.mjs → TransactionDetails-Db8dwHoM.mjs} +21 -21
- package/dist/{TransactionStore-6ovFO8P1.mjs → TransactionStore-BUsP-unK.mjs} +40 -57
- package/dist/{TrendsStore-DZa6cyQC.mjs → TrendsStore-bYjIGqyR.mjs} +1 -1
- package/dist/{ViewMoreMicroCard-BsEitNRJ.mjs → ViewMoreMicroCard-C7dC9lDT.mjs} +93 -94
- package/dist/WidgetContainer-CCR7I0gu.mjs +470 -0
- package/dist/accounts/index.es.js +29 -29
- package/dist/analytics/index.es.js +10 -10
- package/dist/budgets/index.es.js +19 -19
- package/dist/cashflow/index.es.js +110 -110
- package/dist/categories/index.es.js +2 -2
- package/dist/common/hooks/useWidgetHeaderStyles.d.ts +1 -0
- package/dist/common/index.es.js +250 -250
- package/dist/core/index.es.js +64 -64
- package/dist/dashboard/index.es.js +22 -22
- package/dist/debts/index.es.js +22 -22
- package/dist/{exportTransactionsToCSV-Dnd5lVq7.mjs → exportTransactionsToCSV-B2Lp7AMl.mjs} +7 -7
- package/dist/finstrong/index.es.js +22 -22
- package/dist/goals/index.es.js +17 -17
- package/dist/help/index.es.js +5 -5
- package/dist/{hooks-BxkfR-Ff.mjs → hooks-HwStH7q_.mjs} +9 -9
- package/dist/insights/index.es.js +328 -328
- package/dist/investments/index.es.js +10 -10
- package/dist/merchants/index.es.js +9 -9
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +25 -25
- package/dist/notifications/index.es.js +5 -5
- package/dist/recurringtransactions/index.es.js +23 -23
- package/dist/settings/index.es.js +96 -96
- package/dist/spending/index.es.js +65 -65
- package/dist/transactions/index.es.js +74 -74
- package/dist/trends/index.es.js +55 -55
- package/dist/{useAccountDisplayName-DKwT1mWv.mjs → useAccountDisplayName-SrQA7K_6.mjs} +1 -1
- package/dist/{useInsightsEnabled-DL_oNyI0.mjs → useInsightsEnabled-DzvRm5Bo.mjs} +1 -1
- package/dist/{useScreenSize-CUcpY7aJ.mjs → useScreenSize-CeFhWTt_.mjs} +1 -1
- package/dist/{useWidgetLoadTimer-DgN1bTyu.mjs → useWidgetLoadTimer-wkBTL5xx.mjs} +1 -1
- package/package.json +20 -20
- package/dist/DateUtil-C57sqxn4.mjs +0 -54
- package/dist/MicroWidgetContainer-B_EnfvCq.mjs +0 -45
- package/dist/MiniWidgetContainer-Bhkv-hpz.mjs +0 -66
- package/dist/WidgetContainer-Bc75FqK7.mjs +0 -468
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import { C as Re, D as Be, M as He, a as Pe, T as
|
|
2
|
-
import { B as Sa, b as Da } from "../TransactionDetails-
|
|
3
|
-
import { e as
|
|
4
|
-
import { O as va } from "../exportTransactionsToCSV-
|
|
5
|
-
import { S as Z, D as We } from "../TransactionStore-
|
|
6
|
-
import { T as Ea } from "../TransactionStore-
|
|
7
|
-
import { u as B, T as Ge } from "../EmbeddedCard-
|
|
8
|
-
import { a as ka } from "../EmbeddedCard-
|
|
9
|
-
import { E as Ma } from "../ExportCsvAction-
|
|
1
|
+
import { C as Re, D as Be, M as He, a as Pe, T as Ve } from "../TransactionDetails-Db8dwHoM.mjs";
|
|
2
|
+
import { B as Sa, b as Da } from "../TransactionDetails-Db8dwHoM.mjs";
|
|
3
|
+
import { e as $e } from "../exportTransactionsToCSV-B2Lp7AMl.mjs";
|
|
4
|
+
import { O as va } from "../exportTransactionsToCSV-B2Lp7AMl.mjs";
|
|
5
|
+
import { S as Z, D as We } from "../TransactionStore-BUsP-unK.mjs";
|
|
6
|
+
import { T as Ea } from "../TransactionStore-BUsP-unK.mjs";
|
|
7
|
+
import { u as B, T as Ge } from "../EmbeddedCard-BCcn_fK2.mjs";
|
|
8
|
+
import { a as ka } from "../EmbeddedCard-BCcn_fK2.mjs";
|
|
9
|
+
import { E as Ma } from "../ExportCsvAction-BPjdEUXx.mjs";
|
|
10
10
|
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
11
11
|
import u from "react";
|
|
12
12
|
import { observer as D } from "mobx-react-lite";
|
|
13
13
|
import Fe from "@mui/material/Paper";
|
|
14
14
|
import { DataGridPro as Ue } from "@mui/x-data-grid-pro";
|
|
15
|
-
import { h as H, u as I, g as ne, b as K, d as oe, l as Ke, a as ze, o as qe } from "../hooks-
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
import { fromUnixTime as Je } from "date-fns/fromUnixTime";
|
|
20
|
-
import { f as Qe, D as Ze } from "../DateFormats-CaOj_4eI.mjs";
|
|
21
|
-
import S from "@mui/material/Stack";
|
|
15
|
+
import { h as H, u as I, g as ne, b as K, d as oe, l as Ke, a as ze, o as qe } from "../hooks-HwStH7q_.mjs";
|
|
16
|
+
import { L as z } from "../Loader-CxeBwuPG.mjs";
|
|
17
|
+
import { Text as y, Icon as R, MerchantLogo as Ye, TextField as ee, P as je } from "@mxenabled/mxui";
|
|
18
|
+
import w from "@mui/material/Stack";
|
|
22
19
|
import { T as O } from "../Transaction-Cn5_iFm0.mjs";
|
|
23
20
|
import { f as re } from "../NumberFormatting-CyrvFgfd.mjs";
|
|
24
|
-
import
|
|
21
|
+
import S from "@mui/material/Box";
|
|
22
|
+
import { useTheme as Xe } from "@mui/material/styles";
|
|
23
|
+
import { fromUnixTime as Je } from "date-fns/fromUnixTime";
|
|
24
|
+
import { f as Qe, D as Ze } from "../DateFormats-CaOj_4eI.mjs";
|
|
25
25
|
import { A as x } from "../Analytics-0Xm_BjHU.mjs";
|
|
26
|
-
import { D as ie } from "../Dialog-
|
|
26
|
+
import { D as ie } from "../Dialog-iLlBR8TG.mjs";
|
|
27
27
|
import { endOfMonth as et } from "date-fns/endOfMonth";
|
|
28
28
|
import { getUnixTime as tt } from "date-fns/getUnixTime";
|
|
29
29
|
import { startOfMonth as at } from "date-fns/startOfMonth";
|
|
30
30
|
import { startOfToday as F } from "date-fns/startOfToday";
|
|
31
31
|
import nt from "@mui/material/styles/useTheme";
|
|
32
|
-
import { C as ot } from "../ConnectDrawer-
|
|
32
|
+
import { C as ot } from "../ConnectDrawer-5BpU4IQU.mjs";
|
|
33
33
|
import rt from "@mui/material/Divider";
|
|
34
34
|
import it from "@mui/material/MenuItem";
|
|
35
35
|
import st from "@mui/material/RadioGroup";
|
|
36
36
|
import { ExpandMore as ct } from "@mxenabled/mx-icons";
|
|
37
|
-
import { C as lt } from "../CurrencyInput-
|
|
38
|
-
import {
|
|
37
|
+
import { C as lt } from "../CurrencyInput-CSJ3zMgE.mjs";
|
|
38
|
+
import { b as dt, u as ut } from "../CategorySelectorDrawer-DjeHNx71.mjs";
|
|
39
39
|
import { b as U } from "../Localization-CkQ49EKr.mjs";
|
|
40
40
|
import { u as mt } from "../useAriaLive-MkYebyUR.mjs";
|
|
41
41
|
import { S as _t } from "../SkeletonLoader-BaNboJjD.mjs";
|
|
42
|
-
import { u as pt } from "../useScreenSize-
|
|
43
|
-
import { u as gt } from "../useWidgetLoadTimer-
|
|
44
|
-
import { W as ht } from "../WidgetContainer-
|
|
42
|
+
import { u as pt } from "../useScreenSize-CeFhWTt_.mjs";
|
|
43
|
+
import { u as gt } from "../useWidgetLoadTimer-wkBTL5xx.mjs";
|
|
44
|
+
import { W as ht } from "../WidgetContainer-CCR7I0gu.mjs";
|
|
45
45
|
import { S as ft } from "../SearchBox-CwDgvWVJ.mjs";
|
|
46
|
-
import { D as te } from "../Drawer-
|
|
46
|
+
import { D as te } from "../Drawer-XPaLYjiO.mjs";
|
|
47
47
|
const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2", children: [
|
|
48
48
|
`${t.row.account}`,
|
|
49
49
|
t.row.number && ` | ${t.row.number}`
|
|
50
50
|
] }), yt = (t) => {
|
|
51
51
|
const { associatedBeats: o } = H(), { showInsights: r } = B(), { amount: a, transaction_type: s } = t.row, c = o.find((p) => p.associated_transaction_guid === t.row.guid), l = s === O.CREDIT;
|
|
52
|
-
return /* @__PURE__ */ m(
|
|
52
|
+
return /* @__PURE__ */ m(w, { alignItems: "flex-end", tabIndex: t.tabIndex, children: [
|
|
53
53
|
/* @__PURE__ */ m(y, { bold: l, color: l ? "success.main" : "text.primary", variant: "body2", children: [
|
|
54
54
|
l ? "+" : "",
|
|
55
55
|
re(a, "0,0.00")
|
|
56
56
|
] }),
|
|
57
57
|
c && r && /* @__PURE__ */ e(y, { bold: !0, color: "primary.light", variant: "caption", children: c.short_title })
|
|
58
58
|
] });
|
|
59
|
-
},
|
|
59
|
+
}, bt = (t) => {
|
|
60
60
|
const { transactions: o } = I(), [r, a] = u.useState(!1);
|
|
61
61
|
return /* @__PURE__ */ m(
|
|
62
|
-
|
|
62
|
+
w,
|
|
63
63
|
{
|
|
64
64
|
alignItems: "center",
|
|
65
65
|
direction: "row",
|
|
@@ -75,10 +75,10 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
75
75
|
]
|
|
76
76
|
}
|
|
77
77
|
);
|
|
78
|
-
},
|
|
79
|
-
const o =
|
|
78
|
+
}, Tt = D(bt), At = (t) => /* @__PURE__ */ e(y, { tabIndex: t.tabIndex, variant: "body2", children: Qe(Je(t.row.date), Ze.MONTH_DAY) }), xt = (t) => {
|
|
79
|
+
const o = Xe(), r = o.palette.mode === "dark", { transactions: a } = I(), { is_flagged: s, is_hidden: c, has_been_viewed: l, parent_guid: p } = t.row, f = !l && !!!p;
|
|
80
80
|
return /* @__PURE__ */ m(
|
|
81
|
-
|
|
81
|
+
S,
|
|
82
82
|
{
|
|
83
83
|
"aria-label": c ? a.is_hidden : a.is_flagged,
|
|
84
84
|
tabIndex: t.tabIndex,
|
|
@@ -111,9 +111,9 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
111
111
|
]
|
|
112
112
|
}
|
|
113
113
|
);
|
|
114
|
-
}, wt = D(xt), E = (t) => /* @__PURE__ */ e(y, { fontWeight: 600, variant: "body2", children: t.colDef.headerName }), St = (t) => /* @__PURE__ */ m(
|
|
114
|
+
}, wt = D(xt), E = (t) => /* @__PURE__ */ e(y, { fontWeight: 600, variant: "body2", children: t.colDef.headerName }), St = (t) => /* @__PURE__ */ m(w, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
115
115
|
/* @__PURE__ */ e(
|
|
116
|
-
|
|
116
|
+
Ye,
|
|
117
117
|
{
|
|
118
118
|
categoryGuid: t.row.top_level_category_guid || "",
|
|
119
119
|
merchantGuid: t.row.merchant_guid || ""
|
|
@@ -125,8 +125,8 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
125
125
|
onCategoryClick: o,
|
|
126
126
|
onRowClick: r
|
|
127
127
|
}) => {
|
|
128
|
-
const { onEvent: a } = ne(), { transactions: s } = I(), { isCopyLoaded: c } = K(), { isLoading: l, sortedTransactions: p } = H(), { clearExpandedSplits:
|
|
129
|
-
u.useEffect(() => () =>
|
|
128
|
+
const { onEvent: a } = ne(), { transactions: s } = I(), { isCopyLoaded: c } = K(), { isLoading: l, sortedTransactions: p } = H(), { clearExpandedSplits: b, toggleSplit: f } = B();
|
|
129
|
+
u.useEffect(() => () => b(), []);
|
|
130
130
|
const C = u.useMemo(
|
|
131
131
|
() => p.map((i) => ({
|
|
132
132
|
id: i.guid,
|
|
@@ -171,7 +171,7 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
171
171
|
headerName: s.category_title,
|
|
172
172
|
flex: 0.25,
|
|
173
173
|
renderHeader: E,
|
|
174
|
-
renderCell: (i) => /* @__PURE__ */ e(
|
|
174
|
+
renderCell: (i) => /* @__PURE__ */ e(Tt, { ...i }),
|
|
175
175
|
sortingOrder: ["asc", "desc"]
|
|
176
176
|
},
|
|
177
177
|
{
|
|
@@ -234,7 +234,7 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
234
234
|
}
|
|
235
235
|
) : /* @__PURE__ */ e(z, {});
|
|
236
236
|
}, Nt = D(vt), Et = () => {
|
|
237
|
-
const { visibleAccounts: t } = oe(), { common: o, transactions: r } = I(), { manualTransaction: a, setIsAmountValid: s, updateManualTransaction: c } = B(), [l, p] = u.useState(""), [
|
|
237
|
+
const { visibleAccounts: t } = oe(), { common: o, transactions: r } = I(), { manualTransaction: a, setIsAmountValid: s, updateManualTransaction: c } = B(), [l, p] = u.useState(""), [b, f] = u.useState(""), C = u.useMemo(
|
|
238
238
|
() => t.filter((n) => n.is_manual),
|
|
239
239
|
[t]
|
|
240
240
|
).map((n) => ({
|
|
@@ -254,10 +254,10 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
254
254
|
}, _ = (n) => {
|
|
255
255
|
c({ ...a, account_guid: n });
|
|
256
256
|
};
|
|
257
|
-
return /* @__PURE__ */ m(
|
|
258
|
-
/* @__PURE__ */ m(
|
|
257
|
+
return /* @__PURE__ */ m(S, { className: "mx-txn-manual-transaction-details", children: [
|
|
258
|
+
/* @__PURE__ */ m(w, { gap: 40, mx: 24, my: 32, children: [
|
|
259
259
|
/* @__PURE__ */ m(
|
|
260
|
-
|
|
260
|
+
w,
|
|
261
261
|
{
|
|
262
262
|
direction: "row",
|
|
263
263
|
sx: { flexDirection: { xs: "column", sm: "row" }, gap: { xs: 40, sm: 8 } },
|
|
@@ -279,7 +279,7 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
279
279
|
type: "number"
|
|
280
280
|
}
|
|
281
281
|
),
|
|
282
|
-
/* @__PURE__ */ e(st, { name: "TransactionType", onChange: g, row: !0, children: /* @__PURE__ */ m(
|
|
282
|
+
/* @__PURE__ */ e(st, { name: "TransactionType", onChange: g, row: !0, children: /* @__PURE__ */ m(w, { alignItems: "center", direction: "row", children: [
|
|
283
283
|
/* @__PURE__ */ e(
|
|
284
284
|
Z,
|
|
285
285
|
{
|
|
@@ -310,7 +310,7 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
310
310
|
name: "payee",
|
|
311
311
|
onChange: (n) => i(n.target.value),
|
|
312
312
|
sx: { bgcolor: "background.paper" },
|
|
313
|
-
value:
|
|
313
|
+
value: b
|
|
314
314
|
}
|
|
315
315
|
),
|
|
316
316
|
/* @__PURE__ */ e(
|
|
@@ -328,7 +328,7 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
328
328
|
)
|
|
329
329
|
] }),
|
|
330
330
|
/* @__PURE__ */ e(rt, { light: !0 }),
|
|
331
|
-
/* @__PURE__ */ m(
|
|
331
|
+
/* @__PURE__ */ m(S, { bgcolor: "background.paper", children: [
|
|
332
332
|
/* @__PURE__ */ e(Re, { transaction: a }),
|
|
333
333
|
/* @__PURE__ */ e(Be, { transaction: a }),
|
|
334
334
|
/* @__PURE__ */ e(He, { transaction: a }),
|
|
@@ -336,13 +336,13 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
336
336
|
] })
|
|
337
337
|
] });
|
|
338
338
|
}, Ot = D(Et), kt = ({ onClose: t, transaction: o }) => {
|
|
339
|
-
const { addOrUpdateTransactionRule: r, updateTransaction: a } = H(), { transactions: s } = I(), { categories: c } = Ke(), [l, p] = u.useState(""),
|
|
339
|
+
const { addOrUpdateTransactionRule: r, updateTransaction: a } = H(), { transactions: s } = I(), { categories: c } = Ke(), [l, p] = u.useState(""), b = u.useMemo(
|
|
340
340
|
() => c.find((C) => C.guid === l),
|
|
341
341
|
[l]
|
|
342
342
|
), f = async (C) => {
|
|
343
343
|
await a({ ...o, category_guid: l }), C && await r(l, o), p(""), t();
|
|
344
344
|
};
|
|
345
|
-
return /* @__PURE__ */ m(
|
|
345
|
+
return /* @__PURE__ */ m(S, { className: "mx-txn-edit-category-action", children: [
|
|
346
346
|
/* @__PURE__ */ e(
|
|
347
347
|
dt,
|
|
348
348
|
{
|
|
@@ -368,10 +368,10 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
368
368
|
onSecondaryAction: () => f(!1),
|
|
369
369
|
primaryText: s.actions_apply_to_all,
|
|
370
370
|
secondaryText: s.actions_this_time_only,
|
|
371
|
-
children: /* @__PURE__ */ e(
|
|
371
|
+
children: /* @__PURE__ */ e(je, { variant: "subtitle1", children: U(
|
|
372
372
|
s.actions_all_past_and_future,
|
|
373
373
|
o.description,
|
|
374
|
-
|
|
374
|
+
b?.name
|
|
375
375
|
) })
|
|
376
376
|
}
|
|
377
377
|
)
|
|
@@ -383,7 +383,7 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
383
383
|
showInsights: a = !1,
|
|
384
384
|
sx: s = {}
|
|
385
385
|
}) => {
|
|
386
|
-
const { manualAccounts: c, refreshAccounts: l } = oe(), { is_mobile_webview: p, clientConfig:
|
|
386
|
+
const { manualAccounts: c, refreshAccounts: l } = oe(), { is_mobile_webview: p, clientConfig: b, config: f } = ze(), { setSearchValue: C } = ut(), { onEvent: h } = ne(), { common: v, transactions: g } = I(), { displayedDateRange: i, isInitialized: _, selectedAccountGuids: n, setDisplayedDate: N } = K(), { isDesktop: se, isTablet: ce } = pt(), k = nt(), {
|
|
387
387
|
addTransaction: le,
|
|
388
388
|
filter: de,
|
|
389
389
|
isTransactionDataLoaded: P,
|
|
@@ -401,8 +401,8 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
401
401
|
searchValue: j,
|
|
402
402
|
setSearchValue: Ce,
|
|
403
403
|
setShowInsights: ye,
|
|
404
|
-
updateManualTransaction:
|
|
405
|
-
} = B(), { userProfile:
|
|
404
|
+
updateManualTransaction: be
|
|
405
|
+
} = B(), { userProfile: Te } = qe(), [V, T] = u.useState(""), [X, M] = u.useState(""), [Ae, $] = u.useState(!1), [xe, J] = u.useState(!1), { announce: we, ariaLive: Se } = mt(), W = b?.transactions?.selected_account_guid;
|
|
406
406
|
gt({
|
|
407
407
|
widgetName: "TransactionWidget",
|
|
408
408
|
isLoaded: P
|
|
@@ -431,24 +431,24 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
431
431
|
searchTerm: d
|
|
432
432
|
}), h(x.TRANSACTIONS_CLICK_SEARCH, { search_term: d });
|
|
433
433
|
}, ve = () => {
|
|
434
|
-
|
|
434
|
+
$e(me, _e), h(x.TRANSACTIONS_CLICK_EXPORT);
|
|
435
435
|
}, Ne = () => {
|
|
436
|
-
c.length > 0 ? (
|
|
436
|
+
c.length > 0 ? (be({
|
|
437
437
|
...We,
|
|
438
438
|
date: tt(F()),
|
|
439
|
-
user_guid:
|
|
440
|
-
}),
|
|
439
|
+
user_guid: Te?.user_guid || ""
|
|
440
|
+
}), T(
|
|
441
441
|
"addTransaction"
|
|
442
442
|
/* AddTransaction */
|
|
443
|
-
), h(x.TRANSACTIONS_CLICK_ADD)) : (
|
|
443
|
+
), h(x.TRANSACTIONS_CLICK_ADD)) : ($(!0), h(x.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
|
|
444
444
|
}, Ee = async () => {
|
|
445
|
-
Q && await le(L),
|
|
445
|
+
Q && await le(L), T("");
|
|
446
446
|
}, Oe = () => {
|
|
447
|
-
|
|
447
|
+
$(!1), J(!0);
|
|
448
448
|
}, ke = async () => {
|
|
449
449
|
J(!1), await l();
|
|
450
450
|
}, Le = async () => {
|
|
451
|
-
A && !A.has_been_viewed && await ge({ ...A, has_been_viewed: !0 }),
|
|
451
|
+
A && !A.has_been_viewed && await ge({ ...A, has_been_viewed: !0 }), T("");
|
|
452
452
|
};
|
|
453
453
|
if (!_)
|
|
454
454
|
return /* @__PURE__ */ e(z, {});
|
|
@@ -476,9 +476,9 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
476
476
|
sx: s,
|
|
477
477
|
title: g.transactions_title,
|
|
478
478
|
children: [
|
|
479
|
-
P ? /* @__PURE__ */ m(
|
|
479
|
+
P ? /* @__PURE__ */ m(w, { children: [
|
|
480
480
|
Se,
|
|
481
|
-
/* @__PURE__ */ e(
|
|
481
|
+
/* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(
|
|
482
482
|
ft,
|
|
483
483
|
{
|
|
484
484
|
onChange: Ie,
|
|
@@ -487,7 +487,7 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
487
487
|
}
|
|
488
488
|
) }),
|
|
489
489
|
/* @__PURE__ */ e(
|
|
490
|
-
|
|
490
|
+
S,
|
|
491
491
|
{
|
|
492
492
|
sx: {
|
|
493
493
|
[k.breakpoints.down("md")]: { display: "none" },
|
|
@@ -498,13 +498,13 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
498
498
|
{
|
|
499
499
|
height: `calc(${r} - ${ae}px)`,
|
|
500
500
|
onCategoryClick: (d) => {
|
|
501
|
-
M(d),
|
|
501
|
+
M(d), T(
|
|
502
502
|
"category"
|
|
503
503
|
/* Category */
|
|
504
504
|
);
|
|
505
505
|
},
|
|
506
506
|
onRowClick: (d) => {
|
|
507
|
-
M(d),
|
|
507
|
+
M(d), T(
|
|
508
508
|
"transaction"
|
|
509
509
|
/* Transaction */
|
|
510
510
|
), h(x.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: d });
|
|
@@ -514,7 +514,7 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
514
514
|
}
|
|
515
515
|
),
|
|
516
516
|
/* @__PURE__ */ e(
|
|
517
|
-
|
|
517
|
+
S,
|
|
518
518
|
{
|
|
519
519
|
sx: {
|
|
520
520
|
[k.breakpoints.down("md")]: { display: "block" },
|
|
@@ -525,7 +525,7 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
525
525
|
{
|
|
526
526
|
height: `calc(${r} - ${ae}px)`,
|
|
527
527
|
onClick: (d) => {
|
|
528
|
-
M(d),
|
|
528
|
+
M(d), T(
|
|
529
529
|
"transaction"
|
|
530
530
|
/* Transaction */
|
|
531
531
|
);
|
|
@@ -541,17 +541,17 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
541
541
|
te,
|
|
542
542
|
{
|
|
543
543
|
ariaLabelClose: v.close_aria,
|
|
544
|
-
isOpen:
|
|
544
|
+
isOpen: V === "transaction" && !!A,
|
|
545
545
|
onClose: Le,
|
|
546
546
|
title: g.details_title,
|
|
547
|
-
children: A && /* @__PURE__ */ e(
|
|
547
|
+
children: A && /* @__PURE__ */ e(Ve, { transaction: A })
|
|
548
548
|
}
|
|
549
549
|
),
|
|
550
|
-
A &&
|
|
550
|
+
A && V === "category" && /* @__PURE__ */ e(
|
|
551
551
|
Lt,
|
|
552
552
|
{
|
|
553
553
|
onClose: () => {
|
|
554
|
-
C(""),
|
|
554
|
+
C(""), T(""), M("");
|
|
555
555
|
},
|
|
556
556
|
transaction: A
|
|
557
557
|
}
|
|
@@ -560,9 +560,9 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
560
560
|
te,
|
|
561
561
|
{
|
|
562
562
|
ariaLabelClose: v.close_aria,
|
|
563
|
-
isOpen:
|
|
563
|
+
isOpen: V === "addTransaction",
|
|
564
564
|
isPrimaryDisabled: !Q,
|
|
565
|
-
onClose: () =>
|
|
565
|
+
onClose: () => T(""),
|
|
566
566
|
onPrimaryAction: Ee,
|
|
567
567
|
title: g.add_transaction_title,
|
|
568
568
|
children: /* @__PURE__ */ e(Ot, {})
|
|
@@ -574,7 +574,7 @@ const Ct = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
574
574
|
copy: { title: g.add_manual_account },
|
|
575
575
|
isOpen: Ae,
|
|
576
576
|
onClose: () => {
|
|
577
|
-
|
|
577
|
+
$(!1);
|
|
578
578
|
},
|
|
579
579
|
onPrimaryAction: Oe
|
|
580
580
|
}
|
|
@@ -597,12 +597,12 @@ export {
|
|
|
597
597
|
Ma as ExportCsvAction,
|
|
598
598
|
va as TRANSACTION_EVENTS,
|
|
599
599
|
Da as TopActions,
|
|
600
|
-
|
|
600
|
+
Ve as TransactionDetails,
|
|
601
601
|
Ge as TransactionList,
|
|
602
602
|
ka as TransactionRow,
|
|
603
603
|
Ea as TransactionStore,
|
|
604
604
|
It as TransactionTable,
|
|
605
605
|
Aa as TransactionWidget,
|
|
606
|
-
|
|
606
|
+
$e as exportTransactionsToCSV,
|
|
607
607
|
B as useTransactionsUiStore
|
|
608
608
|
};
|