@mx-cartographer/experiences 8.0.0-alpha.sms2 → 9.0.0-alpha.mega1
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 +217 -0
- package/dist/{Account-Cp30A3ad.mjs → Account-BIKn4XEZ.mjs} +1 -1
- package/dist/Account-CMjOp7S2.mjs +118 -0
- package/dist/AccountApi-DgZ8ILj1.mjs +19 -0
- package/dist/AccountDetailsHeader-BOV91g1o.mjs +95 -0
- package/dist/AccountDisplayName-CO7z3v99.mjs +11 -0
- package/dist/{AccountFields-CW6cIthP.mjs → AccountFields-BRRH37K1.mjs} +10 -11
- package/dist/{AccountListItem-DxmAs98Z.mjs → AccountListItem-Ds5C0mOT.mjs} +4 -4
- package/dist/{AccountStore-hIs-yA6W.mjs → AccountStore-BFKvXJSD.mjs} +79 -69
- package/dist/{Accounts-DUHkUyK4.mjs → Accounts-CuE8aSZN.mjs} +1 -1
- package/dist/{BudgetUtil-CIDAPPPT.mjs → BudgetUtil-CDSOZXem.mjs} +4 -4
- package/dist/CategorySelectorDrawer-C4aZYP4N.mjs +418 -0
- package/dist/CategoryStore-DEqAnHbi.mjs +186 -0
- package/dist/{CategoryUtil-DfVKKkRf.mjs → CategoryUtil-CFHBvaV4.mjs} +1 -1
- package/dist/{ConnectionsDrawer-CSo6AFkG.mjs → ConnectionsDrawer-BExzgE16.mjs} +5 -5
- package/dist/{CurrencyInput-BrGvhgVK.mjs → CurrencyInput-DDQ4DBrE.mjs} +1 -1
- package/dist/{CurrencyText-Dr0EZ7bp.mjs → CurrencyText-C-85TnUF.mjs} +3 -3
- package/dist/{DateUtil-CDPZw_-m.mjs → DateUtil-CVsMhbZU.mjs} +3 -3
- package/dist/{DebtsStore-hi1cqrRk.mjs → DebtsStore-Dv_T7Dts.mjs} +12 -12
- package/dist/{Dialog-CDV0kKxj.mjs → Dialog-CWymUiuO.mjs} +32 -35
- package/dist/Drawer-Bet2ZPJo.mjs +176 -0
- package/dist/{ExportCsvAction-CQ1grpwo.mjs → ExportCsvAction-oG_Mn66T.mjs} +3 -3
- package/dist/{FinstrongStore-dKZOZ2hM.mjs → FinstrongStore-BjFkMTIL.mjs} +6 -6
- package/dist/GlobalAccountFilter-BpWlPAl5.mjs +316 -0
- package/dist/{GoalStore-CFeAJloA.mjs → GoalStore-Dbjgft2i.mjs} +155 -137
- package/dist/{Help-i4OasOO-.mjs → Help-BW_ar-4B.mjs} +2 -2
- package/dist/LineChart-DHj-Bufi.mjs +580 -0
- package/dist/{ListItemAction-BNCWQAN_.mjs → ListItemAction-Cbr3417C.mjs} +10 -10
- package/dist/{ManageIncome-D_qVX5dN.mjs → ManageIncome-DIIyqDTp.mjs} +85 -85
- package/dist/{MicroWidgetContainer-BGpNl5ZS.mjs → MicroWidgetContainer-DSyYwRCU.mjs} +2 -2
- package/dist/{MiniWidgetContainer-D7MkHG15.mjs → MiniWidgetContainer-DKn7ndO6.mjs} +1 -1
- package/dist/NetWorthStore-B6ziBtaH.mjs +168 -0
- package/dist/NotificationSettings-e789PcRb.mjs +676 -0
- package/dist/{OriginalBalanceAction-62e0mU_3.mjs → OriginalBalanceAction-DFoG79Ba.mjs} +3 -3
- package/dist/{RecurringSettings-RfZ8Wuhh.mjs → RecurringSettings-BpCUcE8w.mjs} +4 -4
- package/dist/{RecurringTransactionsStore-D3EOKZ2B.mjs → RecurringTransactionsStore-D_--5PWH.mjs} +1 -1
- package/dist/{RecurringTransactions-Bhx56aA3.mjs → RepeatingTransaction-C2txVA9O.mjs} +3 -3
- package/dist/{SettingsStore-BASMQSIp.mjs → SettingsStore-CInvh-rQ.mjs} +1 -1
- package/dist/SpendingData-B7NuTQ9s.mjs +53 -0
- package/dist/SpendingLegend-BxefXiQd.mjs +193 -0
- package/dist/TransactionDetails-CPwv9xtZ.mjs +1374 -0
- package/dist/{TransactionStore-DgLrYW4C.mjs → TransactionStore-D2aMUClq.mjs} +128 -111
- package/dist/TrendsStore-BdsYfCc7.mjs +183 -0
- package/dist/{User-DqNX2GAK.mjs → User-CulNdZUr.mjs} +21 -20
- package/dist/ViewMoreMicroCard-CDWR16_h.mjs +1147 -0
- package/dist/WidgetContainer-mzejMmz2.mjs +555 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +1 -0
- package/dist/accounts/index.es.js +933 -232
- package/dist/accounts/stores/AccountStore.d.ts +6 -2
- package/dist/accounts/utils/AccountDetails.d.ts +5 -0
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/components/AddBudgets.d.ts +2 -1
- package/dist/budgets/index.es.js +561 -522
- package/dist/cashflow/index.es.js +397 -396
- package/dist/categories/components/CustomCategories/AddSubcategory.d.ts +1 -0
- package/dist/categories/components/CustomCategories/DeleteSubcategory.d.ts +1 -0
- package/dist/categories/components/CustomCategories/RenameSubcategory.d.ts +1 -0
- package/dist/categories/components/SubcategoryRow.d.ts +1 -0
- package/dist/categories/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +5 -3
- package/dist/common/components/GlobalAccountFilter.d.ts +11 -0
- package/dist/common/components/WidgetContainer.d.ts +7 -6
- package/dist/common/components/charts/linechart/CustomTooltip.d.ts +6 -1
- package/dist/common/components/charts/stackedlinechart/CustomPointTooltip.d.ts +5 -2
- package/dist/common/components/globalaccountfilter/GlobalAccountFilterList.d.ts +7 -0
- package/dist/common/components/index.d.ts +2 -2
- package/dist/common/hooks/index.d.ts +1 -0
- package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
- package/dist/common/index.es.js +325 -306
- package/dist/common/stores/GlobalUiStore.d.ts +7 -4
- package/dist/common/types/localization/AccountsCopy.d.ts +6 -0
- package/dist/common/types/localization/CategoryCopy.d.ts +3 -0
- package/dist/common/types/localization/CommonCopy.d.ts +3 -0
- package/dist/common/types/localization/GoalsCopy.d.ts +3 -1
- package/dist/common/types/localization/MicroInsightsCopy.d.ts +1 -0
- package/dist/common/types/localization/TransactionsCopy.d.ts +4 -0
- package/dist/common/types/localization/TrendsCopy.d.ts +4 -0
- package/dist/dashboard/index.es.js +95 -125
- package/dist/debts/index.es.js +466 -460
- package/dist/{exportTransactionsToCSV-BFpuIAXW.mjs → exportTransactionsToCSV-BU1jTY0Q.mjs} +4 -4
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +4 -5
- package/dist/finstrong/index.es.js +1660 -1553
- package/dist/goals/index.es.js +716 -677
- package/dist/goals/stores/GoalStore.d.ts +2 -0
- package/dist/help/index.es.js +14 -10
- package/dist/{hooks-C41HAxM5.mjs → hooks-fY_n74f7.mjs} +16 -16
- package/dist/investments/index.es.js +464 -457
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/MicroCardTemplate.d.ts +23 -0
- package/dist/microinsights/beaticons/BeatMaterialIcon.d.ts +8 -0
- package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +1 -2
- package/dist/microinsights/beaticons/index.d.ts +1 -0
- package/dist/microinsights/cards/InsightCard.d.ts +0 -2
- package/dist/microinsights/cards/ViewMoreMicroCard.d.ts +2 -5
- package/dist/microinsights/index.d.ts +2 -2
- package/dist/microinsights/index.es.js +824 -14
- package/dist/networth/components/NetWorthChart.d.ts +3 -2
- package/dist/networth/components/NetWorthList.d.ts +3 -3
- package/dist/networth/index.es.js +433 -438
- package/dist/networth/stores/NetWorthStore.d.ts +20 -9
- package/dist/networth/utils/NetWorthUtils.d.ts +2 -2
- package/dist/notifications/index.es.js +5 -5
- package/dist/recurringtransactions/index.es.js +331 -325
- package/dist/settings/index.es.js +293 -285
- package/dist/spending/components/SpendingChart.d.ts +1 -1
- package/dist/spending/components/SpendingList.d.ts +1 -1
- package/dist/spending/components/SpendingTabLabel.d.ts +1 -0
- package/dist/spending/index.es.js +250 -235
- package/dist/transactions/index.es.js +288 -281
- package/dist/transactions/stores/TransactionStore.d.ts +5 -0
- package/dist/trends/components/TrendsTable.d.ts +0 -2
- package/dist/trends/index.es.js +876 -802
- package/dist/trends/utils/TrendsData.d.ts +1 -0
- package/dist/trends/utils/TrendsTable.d.ts +12 -0
- package/dist/{useAccountDisplayName-usSZCQ7I.mjs → useAccountDisplayName-DbkgGLdg.mjs} +2 -2
- package/dist/useAriaLive-B3_pRUio.mjs +35 -0
- package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-dhmXeSyF.mjs} +1 -1
- package/dist/useWidgetLoadTimer-CrUzxN-P.mjs +19 -0
- package/package.json +26 -21
- package/dist/AccountDetailsContent-C1HumFnW.mjs +0 -683
- package/dist/AccountDetailsHeader-NMx79DGs.mjs +0 -87
- package/dist/CategorySelectorDrawer-DqDAA_5I.mjs +0 -399
- package/dist/CategoryStore-MUwRWH9e.mjs +0 -176
- package/dist/ConnectDrawer-Dn1MlqLz.mjs +0 -545
- package/dist/Drawer-Dqe5EqvA.mjs +0 -163
- package/dist/LineChart-bc1D9xBE.mjs +0 -581
- package/dist/NetWorthStore-8FFC1Bs0.mjs +0 -150
- package/dist/NotificationSettings-BsWiYD94.mjs +0 -672
- package/dist/SpendingData-DPQ96k3x.mjs +0 -55
- package/dist/SpendingLegend-CZzDb-7d.mjs +0 -193
- package/dist/TransactionDetails-Duv1X9ec.mjs +0 -1379
- package/dist/TrendsStore-_mRaFUdf.mjs +0 -182
- package/dist/ViewMoreMicroCard-CH9E-jOx.mjs +0 -1930
- package/dist/WidgetContainer-B1Jzb4XA.mjs +0 -565
- package/dist/common/components/accountfilter/AccountFilter.d.ts +0 -20
- package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +0 -31
- package/dist/common/components/accountfilter/index.d.ts +0 -1
- package/dist/microinsights/cards/BaseCard.d.ts +0 -13
- package/dist/{ToggleListItem-ciFTiqRS.mjs → Notification-Bs1fdbzI.mjs} +1 -1
|
@@ -1,60 +1,62 @@
|
|
|
1
|
-
import { T as
|
|
2
|
-
import {
|
|
3
|
-
import { B as
|
|
4
|
-
import { T as
|
|
5
|
-
import { O as
|
|
6
|
-
import { S as ae, D as
|
|
7
|
-
import { T as
|
|
8
|
-
import { e as
|
|
9
|
-
import { E as
|
|
10
|
-
import { jsxs as
|
|
11
|
-
import
|
|
12
|
-
import { observer as
|
|
13
|
-
import
|
|
14
|
-
import { DataGridPro as
|
|
15
|
-
import { L as
|
|
16
|
-
import { Text as
|
|
17
|
-
import
|
|
18
|
-
import { h as V, u as
|
|
1
|
+
import { T as wa } from "../TransactionApi-CjBoLleL.mjs";
|
|
2
|
+
import { u as P, C as Be, D as Pe, M as Ve, c as $e, T as We, a as Ge } from "../TransactionDetails-CPwv9xtZ.mjs";
|
|
3
|
+
import { B as va, d as Da, b as Na } from "../TransactionDetails-CPwv9xtZ.mjs";
|
|
4
|
+
import { T as k } from "../User-CulNdZUr.mjs";
|
|
5
|
+
import { O as Oa } from "../User-CulNdZUr.mjs";
|
|
6
|
+
import { S as ae, D as Fe } from "../TransactionStore-D2aMUClq.mjs";
|
|
7
|
+
import { T as La } from "../TransactionStore-D2aMUClq.mjs";
|
|
8
|
+
import { e as Ue } from "../exportTransactionsToCSV-BU1jTY0Q.mjs";
|
|
9
|
+
import { E as Ra } from "../ExportCsvAction-oG_Mn66T.mjs";
|
|
10
|
+
import { jsxs as p, jsx as e } from "react/jsx-runtime";
|
|
11
|
+
import m from "react";
|
|
12
|
+
import { observer as w } from "mobx-react-lite";
|
|
13
|
+
import Ke from "@mui/material/Paper";
|
|
14
|
+
import { DataGridPro as ze } from "@mui/x-data-grid-pro";
|
|
15
|
+
import { L as j } from "../Loader-BSWSYqvn.mjs";
|
|
16
|
+
import { Text as y, Icon as B, MerchantLogo as qe, TextField as ne, P as je } from "@mxenabled/mxui";
|
|
17
|
+
import x from "@mui/material/Stack";
|
|
18
|
+
import { h as V, u as I, b as X, d as se, m as Xe, a as Ye, g as Je, o as Qe } from "../hooks-fY_n74f7.mjs";
|
|
19
19
|
import { f as ie } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
20
20
|
import S from "@mui/material/Box";
|
|
21
|
-
import { useTheme as
|
|
22
|
-
import { fromUnixTime as
|
|
23
|
-
import { f as
|
|
24
|
-
import { endOfMonth as
|
|
25
|
-
import { getUnixTime as
|
|
26
|
-
import { startOfMonth as
|
|
21
|
+
import { useTheme as Ze } from "@mui/material/styles";
|
|
22
|
+
import { fromUnixTime as et } from "date-fns/fromUnixTime";
|
|
23
|
+
import { f as tt, D as at, a as ce } from "../Dialog-CWymUiuO.mjs";
|
|
24
|
+
import { endOfMonth as nt } from "date-fns/endOfMonth";
|
|
25
|
+
import { getUnixTime as ot } from "date-fns/getUnixTime";
|
|
26
|
+
import { startOfMonth as rt } from "date-fns/startOfMonth";
|
|
27
27
|
import { startOfToday as z } from "date-fns/startOfToday";
|
|
28
|
-
import
|
|
29
|
-
import {
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import { ExpandMore as
|
|
34
|
-
import { C as
|
|
35
|
-
import {
|
|
36
|
-
import { b as
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
28
|
+
import st from "@mui/material/styles/useTheme";
|
|
29
|
+
import { b as it } from "../GlobalAccountFilter-BpWlPAl5.mjs";
|
|
30
|
+
import ct from "@mui/material/Divider";
|
|
31
|
+
import lt from "@mui/material/MenuItem";
|
|
32
|
+
import dt from "@mui/material/RadioGroup";
|
|
33
|
+
import { ExpandMore as ut } from "@mxenabled/mx-icons";
|
|
34
|
+
import { C as mt } from "../CurrencyInput-DDQ4DBrE.mjs";
|
|
35
|
+
import { b as _t, u as pt } from "../CategorySelectorDrawer-C4aZYP4N.mjs";
|
|
36
|
+
import { b as q } from "../Localization-2MODESHW.mjs";
|
|
37
|
+
import { u as gt } from "../useAriaLive-B3_pRUio.mjs";
|
|
38
|
+
import { S as ht } from "../SkeletonLoader-BaNboJjD.mjs";
|
|
39
|
+
import { A, W as ft } from "../WidgetContainer-mzejMmz2.mjs";
|
|
40
|
+
import { D as oe } from "../Drawer-Bet2ZPJo.mjs";
|
|
41
|
+
import { u as Ct } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
42
|
+
import { u as yt } from "../useWidgetLoadTimer-CrUzxN-P.mjs";
|
|
41
43
|
import { S as bt } from "../SearchBox-B2_zLv8-.mjs";
|
|
42
|
-
const Tt = (t) => /* @__PURE__ */
|
|
44
|
+
const Tt = (t) => /* @__PURE__ */ p(y, { tabIndex: t.tabIndex, variant: "Small", children: [
|
|
43
45
|
`${t.row.account}`,
|
|
44
46
|
t.row.number && ` | ${t.row.number}`
|
|
45
47
|
] }), At = (t) => {
|
|
46
|
-
const { associatedBeats: s } = V(), { showInsights:
|
|
47
|
-
return /* @__PURE__ */
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
-
|
|
48
|
+
const { associatedBeats: s } = V(), { showInsights: o } = P(), { amount: a, transaction_type: i } = t.row, c = s.find((g) => g.associated_transaction_guid === t.row.guid), l = i === k.CREDIT;
|
|
49
|
+
return /* @__PURE__ */ p(x, { alignItems: "flex-end", tabIndex: t.tabIndex, children: [
|
|
50
|
+
/* @__PURE__ */ p(y, { color: l ? "success.main" : "text.primary", variant: "Small", children: [
|
|
51
|
+
l ? "+" : "",
|
|
50
52
|
ie(a, "0,0.00")
|
|
51
53
|
] }),
|
|
52
|
-
|
|
54
|
+
c && o && /* @__PURE__ */ e(y, { bold: !0, color: "primary.light", variant: "XSmall", children: c.short_title })
|
|
53
55
|
] });
|
|
54
|
-
},
|
|
55
|
-
const { transactions: s } =
|
|
56
|
-
return /* @__PURE__ */
|
|
57
|
-
|
|
56
|
+
}, xt = (t) => {
|
|
57
|
+
const { transactions: s } = I(), [o, a] = m.useState(!1);
|
|
58
|
+
return /* @__PURE__ */ p(
|
|
59
|
+
x,
|
|
58
60
|
{
|
|
59
61
|
alignItems: "center",
|
|
60
62
|
direction: "row",
|
|
@@ -65,22 +67,22 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
65
67
|
width: "100%",
|
|
66
68
|
children: [
|
|
67
69
|
t.row.has_been_split && /* @__PURE__ */ e(B, { name: "call_split", size: 16 }),
|
|
68
|
-
/* @__PURE__ */ e(
|
|
69
|
-
!t.row.has_been_split &&
|
|
70
|
+
/* @__PURE__ */ e(y, { tabIndex: t.tabIndex, variant: "Small", children: t.row.has_been_split ? s.split_transaction_category_label : t.row.category }),
|
|
71
|
+
!t.row.has_been_split && o && /* @__PURE__ */ e(B, { name: "edit", sx: { color: "action.active" } })
|
|
70
72
|
]
|
|
71
73
|
}
|
|
72
74
|
);
|
|
73
|
-
},
|
|
74
|
-
const s =
|
|
75
|
-
return /* @__PURE__ */
|
|
75
|
+
}, St = w(xt), wt = (t) => /* @__PURE__ */ e(y, { tabIndex: t.tabIndex, variant: "Small", children: tt(et(t.row.date), at.MONTH_DAY) }), It = (t) => {
|
|
76
|
+
const s = Ze(), { transactions: o } = I(), { is_flagged: a, is_hidden: i, has_been_viewed: c, parent_guid: l } = t.row, f = !c && !!!l;
|
|
77
|
+
return /* @__PURE__ */ p(
|
|
76
78
|
S,
|
|
77
79
|
{
|
|
78
|
-
"aria-label": i ?
|
|
80
|
+
"aria-label": i ? o.is_hidden : o.is_flagged,
|
|
79
81
|
tabIndex: t.tabIndex,
|
|
80
82
|
children: [
|
|
81
83
|
a && /* @__PURE__ */ e(B, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
|
|
82
84
|
!a && i && /* @__PURE__ */ e(B, { name: "visibility_off", size: 16 }),
|
|
83
|
-
|
|
85
|
+
f && /* @__PURE__ */ e(
|
|
84
86
|
"svg",
|
|
85
87
|
{
|
|
86
88
|
"data-testid": "svg",
|
|
@@ -98,40 +100,42 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
98
100
|
]
|
|
99
101
|
}
|
|
100
102
|
);
|
|
101
|
-
},
|
|
103
|
+
}, vt = w(It), O = (t) => /* @__PURE__ */ e(y, { fontWeight: 600, variant: "Small", children: t.colDef.headerName }), Dt = (t) => /* @__PURE__ */ p(x, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
102
104
|
/* @__PURE__ */ e(
|
|
103
|
-
|
|
105
|
+
qe,
|
|
104
106
|
{
|
|
105
107
|
categoryGuid: t.row.top_level_category_guid || "",
|
|
106
108
|
merchantGuid: t.row.merchant_guid || ""
|
|
107
109
|
}
|
|
108
110
|
),
|
|
109
|
-
/* @__PURE__ */ e(
|
|
111
|
+
/* @__PURE__ */ e(y, { tabIndex: t.tabIndex, variant: "Small", children: t.row.payee })
|
|
110
112
|
] }), Nt = ({
|
|
111
113
|
height: t = "100dvh",
|
|
112
114
|
onCategoryClick: s,
|
|
113
|
-
onRowClick:
|
|
115
|
+
onRowClick: o
|
|
114
116
|
}) => {
|
|
115
|
-
const { transactions: a } =
|
|
116
|
-
|
|
117
|
-
const
|
|
118
|
-
() =>
|
|
119
|
-
id:
|
|
117
|
+
const { transactions: a } = I(), { isCopyLoaded: i } = X(), { isLoading: c, sortedTransactions: l } = V(), { clearExpandedSplits: g, toggleSplit: f } = P();
|
|
118
|
+
m.useEffect(() => () => g(), []);
|
|
119
|
+
const C = m.useMemo(
|
|
120
|
+
() => l.map((r) => ({
|
|
121
|
+
id: r.guid,
|
|
120
122
|
isHovering: !1,
|
|
121
|
-
...
|
|
123
|
+
...r
|
|
122
124
|
})),
|
|
123
|
-
[
|
|
124
|
-
),
|
|
125
|
+
[l]
|
|
126
|
+
), u = ({ row: { id: r, guid: h, has_been_split: N }, field: n }) => N ? f(r) : n === "category" ? s?.(h) : o?.(h), v = (r, h) => {
|
|
127
|
+
h.key !== "Enter" && h.key !== " " || u(r);
|
|
128
|
+
};
|
|
125
129
|
if (!i)
|
|
126
|
-
return /* @__PURE__ */ e(
|
|
127
|
-
const
|
|
130
|
+
return /* @__PURE__ */ e(j, {});
|
|
131
|
+
const _ = [
|
|
128
132
|
{
|
|
129
133
|
field: "flag",
|
|
130
134
|
headerName: "",
|
|
131
135
|
minWidth: 32,
|
|
132
136
|
width: 32,
|
|
133
137
|
sortable: !1,
|
|
134
|
-
renderCell: (
|
|
138
|
+
renderCell: (r) => /* @__PURE__ */ e(vt, { ...r }),
|
|
135
139
|
renderHeader: () => /* @__PURE__ */ e("span", { "aria-label": a.transaction_status, role: "presentation" })
|
|
136
140
|
},
|
|
137
141
|
{
|
|
@@ -139,7 +143,7 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
139
143
|
headerName: a.date_title,
|
|
140
144
|
width: 103,
|
|
141
145
|
renderHeader: O,
|
|
142
|
-
renderCell: (
|
|
146
|
+
renderCell: (r) => r.row.parent_guid ? null : /* @__PURE__ */ e(wt, { ...r }),
|
|
143
147
|
sortingOrder: ["desc", "asc"]
|
|
144
148
|
},
|
|
145
149
|
{
|
|
@@ -156,7 +160,7 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
156
160
|
headerName: a.category_title,
|
|
157
161
|
flex: 0.25,
|
|
158
162
|
renderHeader: O,
|
|
159
|
-
renderCell: (
|
|
163
|
+
renderCell: (r) => /* @__PURE__ */ e(St, { ...r }),
|
|
160
164
|
sortingOrder: ["asc", "desc"]
|
|
161
165
|
},
|
|
162
166
|
{
|
|
@@ -164,7 +168,7 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
164
168
|
headerName: a.account_title,
|
|
165
169
|
flex: 0.33,
|
|
166
170
|
renderHeader: O,
|
|
167
|
-
renderCell: (
|
|
171
|
+
renderCell: (r) => r.row.parent_guid ? null : /* @__PURE__ */ e(Tt, { ...r }),
|
|
168
172
|
sortingOrder: ["asc", "desc"]
|
|
169
173
|
},
|
|
170
174
|
{
|
|
@@ -178,18 +182,19 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
178
182
|
sortingOrder: ["asc", "desc"]
|
|
179
183
|
}
|
|
180
184
|
];
|
|
181
|
-
return /* @__PURE__ */ e(
|
|
182
|
-
|
|
185
|
+
return /* @__PURE__ */ e(Ke, { sx: { height: t, px: 24, width: "100%", boxShadow: "none" }, children: /* @__PURE__ */ e(
|
|
186
|
+
ze,
|
|
183
187
|
{
|
|
184
|
-
columns:
|
|
188
|
+
columns: _,
|
|
185
189
|
disableColumnFilter: !0,
|
|
186
190
|
disableColumnMenu: !0,
|
|
187
|
-
getCellClassName: (
|
|
191
|
+
getCellClassName: (r) => r.row.parent_guid ? "split-row" : "",
|
|
188
192
|
hideFooter: !0,
|
|
189
193
|
initialState: { sorting: { sortModel: [{ field: "date", sort: "desc" }] } },
|
|
190
|
-
loading:
|
|
191
|
-
onCellClick:
|
|
192
|
-
|
|
194
|
+
loading: c,
|
|
195
|
+
onCellClick: u,
|
|
196
|
+
onCellKeyDown: v,
|
|
197
|
+
rows: C,
|
|
193
198
|
slotProps: { baseIconButton: { color: "secondary", sx: { ml: 8 } } },
|
|
194
199
|
sx: {
|
|
195
200
|
"& .split-row": {
|
|
@@ -198,89 +203,89 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
198
203
|
}
|
|
199
204
|
}
|
|
200
205
|
) });
|
|
201
|
-
}, Et =
|
|
202
|
-
const { common: i, transactions:
|
|
203
|
-
return
|
|
206
|
+
}, Et = w(Nt), Ot = ({ copy: t, isOpen: s, onClose: o, onPrimaryAction: a }) => {
|
|
207
|
+
const { common: i, transactions: c } = I(), { isCopyLoaded: l } = X();
|
|
208
|
+
return l ? /* @__PURE__ */ p(
|
|
204
209
|
ce,
|
|
205
210
|
{
|
|
206
211
|
copy: {
|
|
207
212
|
title: t.title
|
|
208
213
|
},
|
|
209
214
|
isOpen: s,
|
|
210
|
-
onClose:
|
|
215
|
+
onClose: o,
|
|
211
216
|
onPrimaryAction: a,
|
|
212
|
-
primaryText:
|
|
217
|
+
primaryText: c.add_manual_account,
|
|
213
218
|
secondaryText: i.cancel_button,
|
|
214
219
|
children: [
|
|
215
|
-
/* @__PURE__ */ e(
|
|
216
|
-
/* @__PURE__ */ e(
|
|
220
|
+
/* @__PURE__ */ e(y, { component: "p", sx: { marginBottom: "20px" }, truncate: !1, children: c.add_account_modal_message }),
|
|
221
|
+
/* @__PURE__ */ e(y, { component: "p", truncate: !1, children: c.add_account_modal_cta })
|
|
217
222
|
]
|
|
218
223
|
}
|
|
219
|
-
) : /* @__PURE__ */ e(
|
|
220
|
-
},
|
|
221
|
-
const { visibleAccounts: t } = se(), { common: s, transactions:
|
|
222
|
-
() => t.filter((
|
|
224
|
+
) : /* @__PURE__ */ e(j, {});
|
|
225
|
+
}, kt = w(Ot), Lt = () => {
|
|
226
|
+
const { visibleAccounts: t } = se(), { common: s, transactions: o } = I(), { manualTransaction: a, setIsAmountValid: i, updateManualTransaction: c } = P(), [l, g] = m.useState(""), [f, C] = m.useState(""), u = m.useMemo(
|
|
227
|
+
() => t.filter((n) => n.is_manual),
|
|
223
228
|
[t]
|
|
224
|
-
).map((
|
|
225
|
-
label: `${
|
|
226
|
-
value:
|
|
229
|
+
).map((n) => ({
|
|
230
|
+
label: `${n.name} | ${ie(n.balance, "0,0.00")}`,
|
|
231
|
+
value: n.guid
|
|
227
232
|
})), v = {
|
|
228
233
|
error_amount_is_invalid: s.currency_input.error_amount_is_invalid,
|
|
229
234
|
error_amount_must_be_equal_to: s.currency_input.error_amount_must_be_equal_to,
|
|
230
235
|
error_amount_must_be_less_than_or_equal_to: s.currency_input.error_amount_must_be_less_than_or_equal_to,
|
|
231
236
|
enter_amount: s.currency_input.enter_amount
|
|
232
|
-
},
|
|
233
|
-
|
|
234
|
-
},
|
|
235
|
-
|
|
236
|
-
},
|
|
237
|
-
|
|
238
|
-
},
|
|
239
|
-
|
|
237
|
+
}, _ = (n) => {
|
|
238
|
+
g(n), c({ ...a, amount: Number(n) });
|
|
239
|
+
}, r = (n, L) => {
|
|
240
|
+
c({ ...a, transaction_type: Number(L) });
|
|
241
|
+
}, h = (n) => {
|
|
242
|
+
C(n), c({ ...a, payee: n, description: n });
|
|
243
|
+
}, N = (n) => {
|
|
244
|
+
c({ ...a, account_guid: n });
|
|
240
245
|
};
|
|
241
|
-
return /* @__PURE__ */
|
|
242
|
-
/* @__PURE__ */
|
|
243
|
-
/* @__PURE__ */
|
|
244
|
-
|
|
246
|
+
return /* @__PURE__ */ p(S, { className: "mx-txn-manual-transaction-details", children: [
|
|
247
|
+
/* @__PURE__ */ p(x, { gap: 40, mx: 24, my: 32, children: [
|
|
248
|
+
/* @__PURE__ */ p(
|
|
249
|
+
x,
|
|
245
250
|
{
|
|
246
251
|
direction: "row",
|
|
247
252
|
sx: { flexDirection: { xs: "column", sm: "row" }, gap: { xs: 40, sm: 8 } },
|
|
248
253
|
children: [
|
|
249
254
|
/* @__PURE__ */ e(
|
|
250
|
-
|
|
255
|
+
mt,
|
|
251
256
|
{
|
|
252
257
|
allowDecimals: !0,
|
|
253
|
-
amount:
|
|
254
|
-
ariaLabel:
|
|
258
|
+
amount: l,
|
|
259
|
+
ariaLabel: o.amount_title,
|
|
255
260
|
copy: v,
|
|
256
261
|
inputProps: {
|
|
257
262
|
noValidate: !0
|
|
258
263
|
},
|
|
259
|
-
label:
|
|
260
|
-
setAmount:
|
|
264
|
+
label: o.amount_title,
|
|
265
|
+
setAmount: _,
|
|
261
266
|
setHasValidInput: i,
|
|
262
267
|
sx: { bgcolor: "background.paper" },
|
|
263
268
|
type: "number"
|
|
264
269
|
}
|
|
265
270
|
),
|
|
266
|
-
/* @__PURE__ */ e(
|
|
271
|
+
/* @__PURE__ */ e(dt, { name: "TransactionType", onChange: r, row: !0, children: /* @__PURE__ */ p(x, { alignItems: "center", direction: "row", children: [
|
|
267
272
|
/* @__PURE__ */ e(
|
|
268
273
|
ae,
|
|
269
274
|
{
|
|
270
|
-
checked: a.transaction_type ===
|
|
271
|
-
label:
|
|
275
|
+
checked: a.transaction_type === k.CREDIT,
|
|
276
|
+
label: o.manual_transaction_credit_button_label,
|
|
272
277
|
sx: { ml: { xs: 0, sm: 8 } },
|
|
273
|
-
tooltip:
|
|
274
|
-
value:
|
|
278
|
+
tooltip: o.manual_transaction_credit_button_tooltip,
|
|
279
|
+
value: k.CREDIT
|
|
275
280
|
}
|
|
276
281
|
),
|
|
277
282
|
/* @__PURE__ */ e(
|
|
278
283
|
ae,
|
|
279
284
|
{
|
|
280
|
-
checked: a.transaction_type ===
|
|
281
|
-
label:
|
|
282
|
-
tooltip:
|
|
283
|
-
value:
|
|
285
|
+
checked: a.transaction_type === k.DEBIT,
|
|
286
|
+
label: o.manual_transaction_debit_button_label,
|
|
287
|
+
tooltip: o.manual_transaction_debit_button_tooltip,
|
|
288
|
+
value: k.DEBIT
|
|
284
289
|
}
|
|
285
290
|
)
|
|
286
291
|
] }) })
|
|
@@ -290,49 +295,49 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
290
295
|
/* @__PURE__ */ e(
|
|
291
296
|
ne,
|
|
292
297
|
{
|
|
293
|
-
label:
|
|
298
|
+
label: o.payee_title,
|
|
294
299
|
name: "payee",
|
|
295
|
-
onChange: (
|
|
300
|
+
onChange: (n) => h(n.target.value),
|
|
296
301
|
sx: { bgcolor: "background.paper" },
|
|
297
|
-
value:
|
|
302
|
+
value: f
|
|
298
303
|
}
|
|
299
304
|
),
|
|
300
305
|
/* @__PURE__ */ e(
|
|
301
306
|
ne,
|
|
302
307
|
{
|
|
303
308
|
InputLabelProps: { shrink: !0 },
|
|
304
|
-
SelectProps: { defaultValue: -1, IconComponent:
|
|
305
|
-
label:
|
|
306
|
-
onChange: (
|
|
307
|
-
placeholder:
|
|
309
|
+
SelectProps: { defaultValue: -1, IconComponent: ut },
|
|
310
|
+
label: o.manual_transaction_select_an_account,
|
|
311
|
+
onChange: (n) => N(n.target.value),
|
|
312
|
+
placeholder: o.manual_transaction_select,
|
|
308
313
|
select: !0,
|
|
309
314
|
sx: { bgcolor: "background.paper" },
|
|
310
|
-
children:
|
|
315
|
+
children: u.map((n) => /* @__PURE__ */ e(lt, { value: n.value, children: n.label }, n.value))
|
|
311
316
|
}
|
|
312
317
|
)
|
|
313
318
|
] }),
|
|
314
|
-
/* @__PURE__ */ e(
|
|
315
|
-
/* @__PURE__ */
|
|
319
|
+
/* @__PURE__ */ e(ct, { light: !0 }),
|
|
320
|
+
/* @__PURE__ */ p(S, { bgcolor: "background.paper", children: [
|
|
321
|
+
/* @__PURE__ */ e(Be, { transaction: a }),
|
|
316
322
|
/* @__PURE__ */ e(Pe, { transaction: a }),
|
|
317
323
|
/* @__PURE__ */ e(Ve, { transaction: a }),
|
|
318
|
-
/* @__PURE__ */ e($e, { transaction: a })
|
|
319
|
-
/* @__PURE__ */ e(Ge, { transaction: a })
|
|
324
|
+
/* @__PURE__ */ e($e, { transaction: a })
|
|
320
325
|
] })
|
|
321
326
|
] });
|
|
322
|
-
},
|
|
323
|
-
const { addOrUpdateTransactionRule:
|
|
324
|
-
() =>
|
|
325
|
-
[
|
|
326
|
-
),
|
|
327
|
-
await a({ ...s, category_guid:
|
|
327
|
+
}, Mt = w(Lt), Rt = ({ onClose: t, transaction: s }) => {
|
|
328
|
+
const { addOrUpdateTransactionRule: o, updateTransaction: a } = V(), { transactions: i } = I(), { categories: c } = Xe(), [l, g] = m.useState(""), f = m.useMemo(
|
|
329
|
+
() => c.find((u) => u.guid === l),
|
|
330
|
+
[l]
|
|
331
|
+
), C = async (u) => {
|
|
332
|
+
await a({ ...s, category_guid: l }), u && await o(l, s), g(""), t();
|
|
328
333
|
};
|
|
329
|
-
return /* @__PURE__ */
|
|
334
|
+
return /* @__PURE__ */ p(S, { className: "mx-txn-edit-category-action", children: [
|
|
330
335
|
/* @__PURE__ */ e(
|
|
331
|
-
|
|
336
|
+
_t,
|
|
332
337
|
{
|
|
333
338
|
initialSelected: s.category_guid,
|
|
334
339
|
onClose: t,
|
|
335
|
-
onSelect: (
|
|
340
|
+
onSelect: (u) => g(u),
|
|
336
341
|
showDrawer: !!s,
|
|
337
342
|
title: i.actions_select_a_category
|
|
338
343
|
}
|
|
@@ -341,169 +346,171 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
341
346
|
ce,
|
|
342
347
|
{
|
|
343
348
|
copy: {
|
|
344
|
-
title:
|
|
349
|
+
title: q(
|
|
345
350
|
i.actions_apply_to_all_transaction_types,
|
|
346
351
|
s.description
|
|
347
352
|
)
|
|
348
353
|
},
|
|
349
|
-
isOpen: !!
|
|
350
|
-
onClose: () =>
|
|
351
|
-
onPrimaryAction: () =>
|
|
352
|
-
onSecondaryAction: () =>
|
|
354
|
+
isOpen: !!l,
|
|
355
|
+
onClose: () => C(!1),
|
|
356
|
+
onPrimaryAction: () => C(!0),
|
|
357
|
+
onSecondaryAction: () => C(!1),
|
|
353
358
|
primaryText: i.actions_apply_to_all,
|
|
354
359
|
secondaryText: i.actions_this_time_only,
|
|
355
|
-
children: /* @__PURE__ */ e(
|
|
360
|
+
children: /* @__PURE__ */ e(je, { variant: "Paragraph", children: q(
|
|
356
361
|
i.actions_all_past_and_future,
|
|
357
362
|
s.description,
|
|
358
|
-
|
|
363
|
+
f?.name
|
|
359
364
|
) })
|
|
360
365
|
}
|
|
361
366
|
)
|
|
362
367
|
] });
|
|
363
|
-
}, Ht =
|
|
368
|
+
}, Ht = w(Rt), re = 120, Bt = ({
|
|
364
369
|
onBackClick: t,
|
|
365
370
|
height: s = "100dvh",
|
|
366
|
-
showInsights:
|
|
371
|
+
showInsights: o = !1,
|
|
367
372
|
sx: a = {}
|
|
368
373
|
}) => {
|
|
369
|
-
const { visibleAccounts: i, refreshAccounts:
|
|
370
|
-
displayedDateRange:
|
|
371
|
-
isCopyLoaded:
|
|
372
|
-
isInitialized:
|
|
373
|
-
selectedAccountGuids:
|
|
374
|
-
setDisplayedDate:
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
setFilter: $,
|
|
374
|
+
const { visibleAccounts: i, refreshAccounts: c } = se(), { is_mobile_webview: l, clientConfig: g, config: f } = Ye(), { setSearchValue: C } = pt(), { onEvent: u } = Je(), { common: v, transactions: _ } = I(), {
|
|
375
|
+
displayedDateRange: r,
|
|
376
|
+
isCopyLoaded: h,
|
|
377
|
+
isInitialized: N,
|
|
378
|
+
selectedAccountGuids: n,
|
|
379
|
+
setDisplayedDate: L
|
|
380
|
+
} = X(), { isDesktop: le, isTablet: de } = Ct(), M = st(), {
|
|
381
|
+
addTransaction: ue,
|
|
382
|
+
filter: Y,
|
|
383
|
+
isTransactionDataLoaded: $,
|
|
384
|
+
loadAssociatedBeats: me,
|
|
385
|
+
loadTransactionData: _e,
|
|
386
|
+
setFilter: W,
|
|
383
387
|
sortedTransactionsWithSplits: G,
|
|
384
|
-
tags:
|
|
385
|
-
detailedTransactions:
|
|
386
|
-
updateTransaction:
|
|
388
|
+
tags: pe,
|
|
389
|
+
detailedTransactions: ge,
|
|
390
|
+
updateTransaction: he
|
|
387
391
|
} = V(), {
|
|
388
|
-
clearExpandedSplits:
|
|
389
|
-
isAmountValid:
|
|
392
|
+
clearExpandedSplits: fe,
|
|
393
|
+
isAmountValid: Ce,
|
|
390
394
|
manualTransaction: R,
|
|
391
|
-
searchValue:
|
|
392
|
-
setSearchValue:
|
|
393
|
-
setShowInsights:
|
|
394
|
-
updateManualTransaction:
|
|
395
|
-
} = P(), { userProfile: xe } =
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
395
|
+
searchValue: ye,
|
|
396
|
+
setSearchValue: be,
|
|
397
|
+
setShowInsights: Te,
|
|
398
|
+
updateManualTransaction: Ae
|
|
399
|
+
} = P(), { userProfile: xe } = Qe(), [F, b] = m.useState(""), [J, H] = m.useState(""), [Se, U] = m.useState(!1), [we, Q] = m.useState(!1), { announce: Ie, ariaLive: ve } = gt(), E = g?.transactions?.selected_account_guid;
|
|
400
|
+
yt({
|
|
401
|
+
widgetName: "TransactionWidget",
|
|
402
|
+
isLoaded: $
|
|
403
|
+
}), m.useEffect(() => {
|
|
404
|
+
$ || _e().finally();
|
|
405
|
+
}, []), m.useEffect(() => {
|
|
406
|
+
const d = E ? [{ guid: E }] : i.filter((D) => !D.is_hidden), ee = rt(z()), te = nt(z());
|
|
407
|
+
L(ee, te), W({
|
|
408
|
+
accounts: d.map((D) => D.guid),
|
|
409
|
+
custom: (D) => !D.accountIsClosed && !D.accountIsHidden,
|
|
403
410
|
dateRange: { start: ee, end: te }
|
|
404
|
-
}),
|
|
405
|
-
}, [i]),
|
|
406
|
-
|
|
407
|
-
...
|
|
408
|
-
accounts:
|
|
409
|
-
dateRange: { start:
|
|
410
|
-
}),
|
|
411
|
-
}, [
|
|
412
|
-
|
|
413
|
-
}, [
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
411
|
+
}), u(A.TRANSACTIONS_VIEW);
|
|
412
|
+
}, [i]), m.useEffect(() => {
|
|
413
|
+
W({
|
|
414
|
+
...Y,
|
|
415
|
+
accounts: E ? [E] : n,
|
|
416
|
+
dateRange: { start: r.start, end: r.end }
|
|
417
|
+
}), me(r.start).finally();
|
|
418
|
+
}, [r, n]), m.useEffect(() => {
|
|
419
|
+
Te(o);
|
|
420
|
+
}, [o]), m.useEffect(() => {
|
|
421
|
+
h && _.showing_transactions_count && Ie(
|
|
422
|
+
q(
|
|
423
|
+
_.showing_transactions_count,
|
|
417
424
|
G.length
|
|
418
425
|
)
|
|
419
426
|
);
|
|
420
|
-
}, [
|
|
421
|
-
const
|
|
422
|
-
() => i.filter((
|
|
427
|
+
}, [h, r, n, G, _]);
|
|
428
|
+
const De = m.useMemo(
|
|
429
|
+
() => i.filter((d) => d.is_manual),
|
|
423
430
|
[i]
|
|
424
|
-
),
|
|
425
|
-
|
|
426
|
-
},
|
|
427
|
-
|
|
428
|
-
...
|
|
429
|
-
searchTerm:
|
|
430
|
-
}),
|
|
431
|
-
},
|
|
432
|
-
|
|
431
|
+
), T = J ? ge.find((d) => d.guid === J) : void 0, Z = Ce && !!R.payee && !!R.account_guid && !!R.category_guid, Ne = (d) => {
|
|
432
|
+
fe(), L(d[0], d[1]);
|
|
433
|
+
}, Ee = (d) => {
|
|
434
|
+
be(d), W({
|
|
435
|
+
...Y,
|
|
436
|
+
searchTerm: d
|
|
437
|
+
}), u(A.TRANSACTIONS_CLICK_SEARCH, { search_term: d });
|
|
438
|
+
}, Oe = () => {
|
|
439
|
+
Ue(G, pe), u(A.TRANSACTIONS_CLICK_EXPORT);
|
|
433
440
|
}, ke = () => {
|
|
434
|
-
|
|
435
|
-
...
|
|
436
|
-
date:
|
|
441
|
+
De.length > 0 ? (Ae({
|
|
442
|
+
...Fe,
|
|
443
|
+
date: ot(z()),
|
|
437
444
|
user_guid: xe?.user_guid || ""
|
|
438
|
-
}),
|
|
445
|
+
}), b(
|
|
439
446
|
"addTransaction"
|
|
440
447
|
/* AddTransaction */
|
|
441
|
-
),
|
|
448
|
+
), u(A.TRANSACTIONS_CLICK_ADD)) : (U(!0), u(A.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
|
|
442
449
|
}, Le = async () => {
|
|
443
|
-
Z && await
|
|
444
|
-
},
|
|
450
|
+
Z && await ue(R), b("");
|
|
451
|
+
}, Me = () => {
|
|
445
452
|
U(!1), Q(!0);
|
|
453
|
+
}, Re = async () => {
|
|
454
|
+
Q(!1), await c();
|
|
446
455
|
}, He = async () => {
|
|
447
|
-
|
|
448
|
-
}, Be = async () => {
|
|
449
|
-
b && !b.has_been_viewed && await fe({ ...b, has_been_viewed: !0 }), y("");
|
|
456
|
+
T && !T.has_been_viewed && await he({ ...T, has_been_viewed: !0 }), b("");
|
|
450
457
|
};
|
|
451
|
-
if (!
|
|
452
|
-
return /* @__PURE__ */ e(
|
|
453
|
-
const
|
|
454
|
-
return !
|
|
458
|
+
if (!N)
|
|
459
|
+
return /* @__PURE__ */ e(j, {});
|
|
460
|
+
const K = [];
|
|
461
|
+
return !l && (le || de) && K.push({
|
|
455
462
|
iconName: "open_in_new",
|
|
456
|
-
label:
|
|
457
|
-
onClick:
|
|
458
|
-
}),
|
|
463
|
+
label: _.export_csv_btn,
|
|
464
|
+
onClick: Oe
|
|
465
|
+
}), f.show_connections_widget_in_master && K.push({
|
|
459
466
|
iconName: "add",
|
|
460
|
-
label:
|
|
467
|
+
label: _.add_transaction_btn,
|
|
461
468
|
onClick: ke
|
|
462
|
-
}), /* @__PURE__ */
|
|
463
|
-
|
|
469
|
+
}), /* @__PURE__ */ p(
|
|
470
|
+
ft,
|
|
464
471
|
{
|
|
465
|
-
|
|
466
|
-
actions: F,
|
|
472
|
+
actions: K,
|
|
467
473
|
calendarActions: {
|
|
468
|
-
onRangeChanged:
|
|
474
|
+
onRangeChanged: Ne
|
|
469
475
|
},
|
|
470
|
-
onAccountsFilterClick: () =>
|
|
476
|
+
onAccountsFilterClick: () => u(A.ACCOUNTS_CLICK_FILTER),
|
|
471
477
|
onBackClick: t,
|
|
478
|
+
showAccountFilter: !E,
|
|
472
479
|
sx: a,
|
|
473
|
-
title:
|
|
480
|
+
title: _.transactions_title,
|
|
474
481
|
children: [
|
|
475
|
-
|
|
476
|
-
|
|
482
|
+
$ ? /* @__PURE__ */ p(x, { children: [
|
|
483
|
+
ve,
|
|
477
484
|
/* @__PURE__ */ e(S, { mt: 16, children: /* @__PURE__ */ e(
|
|
478
485
|
bt,
|
|
479
486
|
{
|
|
480
|
-
onChange:
|
|
481
|
-
placeholder:
|
|
482
|
-
searchValue:
|
|
487
|
+
onChange: Ee,
|
|
488
|
+
placeholder: _.action_bar_search_placeholder,
|
|
489
|
+
searchValue: ye
|
|
483
490
|
}
|
|
484
491
|
) }),
|
|
485
492
|
/* @__PURE__ */ e(
|
|
486
493
|
S,
|
|
487
494
|
{
|
|
488
495
|
sx: {
|
|
489
|
-
[
|
|
490
|
-
[
|
|
496
|
+
[M.breakpoints.down("md")]: { display: "none" },
|
|
497
|
+
[M.breakpoints.up("md")]: { display: "block" }
|
|
491
498
|
},
|
|
492
499
|
children: /* @__PURE__ */ e(
|
|
493
500
|
Et,
|
|
494
501
|
{
|
|
495
502
|
height: `calc(${s} - ${re}px)`,
|
|
496
|
-
onCategoryClick: (
|
|
497
|
-
H(
|
|
503
|
+
onCategoryClick: (d) => {
|
|
504
|
+
H(d), b(
|
|
498
505
|
"category"
|
|
499
506
|
/* Category */
|
|
500
507
|
);
|
|
501
508
|
},
|
|
502
|
-
onRowClick: (
|
|
503
|
-
H(
|
|
509
|
+
onRowClick: (d) => {
|
|
510
|
+
H(d), b(
|
|
504
511
|
"transaction"
|
|
505
512
|
/* Transaction */
|
|
506
|
-
),
|
|
513
|
+
), u(A.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: d });
|
|
507
514
|
}
|
|
508
515
|
}
|
|
509
516
|
)
|
|
@@ -513,93 +520,93 @@ const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
513
520
|
S,
|
|
514
521
|
{
|
|
515
522
|
sx: {
|
|
516
|
-
[
|
|
517
|
-
[
|
|
523
|
+
[M.breakpoints.down("md")]: { display: "block" },
|
|
524
|
+
[M.breakpoints.up("md")]: { display: "none" }
|
|
518
525
|
},
|
|
519
526
|
children: /* @__PURE__ */ e(
|
|
520
|
-
|
|
527
|
+
We,
|
|
521
528
|
{
|
|
522
529
|
height: `calc(${s} - ${re}px)`,
|
|
523
|
-
onClick: (
|
|
524
|
-
H(
|
|
530
|
+
onClick: (d) => {
|
|
531
|
+
H(d), b(
|
|
525
532
|
"transaction"
|
|
526
533
|
/* Transaction */
|
|
527
534
|
);
|
|
528
535
|
},
|
|
529
536
|
showHiddenTransactions: !0,
|
|
530
|
-
showInsights:
|
|
537
|
+
showInsights: o
|
|
531
538
|
}
|
|
532
539
|
)
|
|
533
540
|
}
|
|
534
541
|
)
|
|
535
|
-
] }) : /* @__PURE__ */ e(
|
|
542
|
+
] }) : /* @__PURE__ */ e(ht, { sx: { m: 48 }, variant: "list" }),
|
|
536
543
|
/* @__PURE__ */ e(
|
|
537
544
|
oe,
|
|
538
545
|
{
|
|
539
546
|
ariaLabelClose: v.close_aria,
|
|
540
|
-
isOpen:
|
|
541
|
-
onClose:
|
|
542
|
-
title:
|
|
543
|
-
children:
|
|
547
|
+
isOpen: F === "transaction" && !!T,
|
|
548
|
+
onClose: He,
|
|
549
|
+
title: _.details_title,
|
|
550
|
+
children: T && /* @__PURE__ */ e(Ge, { transaction: T })
|
|
544
551
|
}
|
|
545
552
|
),
|
|
546
|
-
|
|
553
|
+
T && F === "category" && /* @__PURE__ */ e(
|
|
547
554
|
Ht,
|
|
548
555
|
{
|
|
549
556
|
onClose: () => {
|
|
550
|
-
|
|
557
|
+
C(""), b(""), H("");
|
|
551
558
|
},
|
|
552
|
-
transaction:
|
|
559
|
+
transaction: T
|
|
553
560
|
}
|
|
554
561
|
),
|
|
555
562
|
/* @__PURE__ */ e(
|
|
556
563
|
oe,
|
|
557
564
|
{
|
|
558
565
|
ariaLabelClose: v.close_aria,
|
|
559
|
-
isOpen:
|
|
566
|
+
isOpen: F === "addTransaction",
|
|
560
567
|
isPrimaryDisabled: !Z,
|
|
561
|
-
onClose: () =>
|
|
568
|
+
onClose: () => b(""),
|
|
562
569
|
onPrimaryAction: Le,
|
|
563
|
-
title:
|
|
564
|
-
children: /* @__PURE__ */ e(
|
|
570
|
+
title: _.add_transaction_title,
|
|
571
|
+
children: /* @__PURE__ */ e(Mt, {})
|
|
565
572
|
}
|
|
566
573
|
),
|
|
567
574
|
/* @__PURE__ */ e(
|
|
568
|
-
|
|
575
|
+
kt,
|
|
569
576
|
{
|
|
570
|
-
copy: { title:
|
|
571
|
-
isOpen:
|
|
577
|
+
copy: { title: _.add_manual_account },
|
|
578
|
+
isOpen: Se,
|
|
572
579
|
onClose: () => {
|
|
573
580
|
U(!1);
|
|
574
581
|
},
|
|
575
|
-
onPrimaryAction:
|
|
582
|
+
onPrimaryAction: Me
|
|
576
583
|
}
|
|
577
584
|
),
|
|
578
585
|
/* @__PURE__ */ e(
|
|
579
|
-
|
|
586
|
+
it,
|
|
580
587
|
{
|
|
581
|
-
onClose:
|
|
582
|
-
showConnectWidget:
|
|
583
|
-
title:
|
|
588
|
+
onClose: Re,
|
|
589
|
+
showConnectWidget: we,
|
|
590
|
+
title: _.add_manual_account
|
|
584
591
|
}
|
|
585
592
|
)
|
|
586
593
|
]
|
|
587
594
|
}
|
|
588
595
|
);
|
|
589
|
-
},
|
|
596
|
+
}, Aa = w(Bt);
|
|
590
597
|
export {
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
598
|
+
kt as AddAccountModal,
|
|
599
|
+
va as BottomActions,
|
|
600
|
+
Ra as ExportCsvAction,
|
|
601
|
+
Oa as TRANSACTION_EVENTS,
|
|
602
|
+
Da as TopActions,
|
|
603
|
+
wa as TransactionApi,
|
|
604
|
+
Ge as TransactionDetails,
|
|
605
|
+
We as TransactionList,
|
|
606
|
+
Na as TransactionRow,
|
|
607
|
+
La as TransactionStore,
|
|
601
608
|
Et as TransactionTable,
|
|
602
|
-
|
|
603
|
-
|
|
609
|
+
Aa as TransactionWidget,
|
|
610
|
+
Ue as exportTransactionsToCSV,
|
|
604
611
|
P as useTransactionsUiStore
|
|
605
612
|
};
|