@mx-cartographer/experiences 8.0.0-alpha.bb4 → 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-B4CDD-zq.mjs → Account-Cp30A3ad.mjs} +1 -1
- package/dist/AccountDetailsContent-C1HumFnW.mjs +683 -0
- package/dist/{AccountDetailsHeader-DRjFuyJT.mjs → AccountDetailsHeader-NMx79DGs.mjs} +17 -17
- package/dist/{AccountFields-Cl4KHoSj.mjs → AccountFields-CW6cIthP.mjs} +8 -8
- package/dist/AccountListItem-DxmAs98Z.mjs +90 -0
- package/dist/{AccountStore-HbVblv86.mjs → AccountStore-hIs-yA6W.mjs} +3 -3
- package/dist/{Accounts-CRUehOiy.mjs → Accounts-DUHkUyK4.mjs} +1 -1
- package/dist/{BudgetUtil-Jv8h9H9l.mjs → BudgetUtil-CIDAPPPT.mjs} +30 -30
- package/dist/{CashflowStore-CA190BPF.mjs → CashflowStore-naOtJcwo.mjs} +22 -15
- package/dist/{CategorySelectorDrawer-Dl006GKy.mjs → CategorySelectorDrawer-DqDAA_5I.mjs} +26 -26
- package/dist/{ConnectDrawer-DVp54lUH.mjs → ConnectDrawer-Dn1MlqLz.mjs} +60 -61
- package/dist/{ConnectionsDrawer-Dsc04-4Z.mjs → ConnectionsDrawer-CSo6AFkG.mjs} +2 -2
- package/dist/CurrencyInput-BrGvhgVK.mjs +85 -0
- package/dist/{DebtsStore-pL63fmdT.mjs → DebtsStore-hi1cqrRk.mjs} +3 -3
- package/dist/{Drawer-BF40nbsH.mjs → Drawer-Dqe5EqvA.mjs} +6 -6
- package/dist/{ExportCsvAction-QhQK4_FU.mjs → ExportCsvAction-CQ1grpwo.mjs} +3 -3
- package/dist/{FinstrongStore-BGf36b0z.mjs → FinstrongStore-dKZOZ2hM.mjs} +3 -3
- package/dist/{GoalStore-C1-w3Y1E.mjs → GoalStore-CFeAJloA.mjs} +3 -3
- package/dist/HeaderCell-DjuifqHJ.mjs +6 -0
- package/dist/{Help-DBfsTkAi.mjs → Help-i4OasOO-.mjs} +176 -158
- package/dist/{LineChart-C1PxNf7P.mjs → LineChart-bc1D9xBE.mjs} +78 -78
- package/dist/Loader-BSWSYqvn.mjs +24 -0
- package/dist/{ManageIncome-8EsStyIQ.mjs → ManageIncome-D_qVX5dN.mjs} +44 -44
- package/dist/{MiniWidgetContainer-CKzf_Ira.mjs → MiniWidgetContainer-D7MkHG15.mjs} +12 -12
- package/dist/{NetWorthStore-Bti6u-d9.mjs → NetWorthStore-8FFC1Bs0.mjs} +2 -2
- package/dist/{NotificationSettings-B74rQVYC.mjs → NotificationSettings-BsWiYD94.mjs} +67 -67
- package/dist/{OriginalBalanceAction-2Y_3U_mg.mjs → OriginalBalanceAction-62e0mU_3.mjs} +7 -7
- package/dist/{RecurringSettings-DAncu--R.mjs → RecurringSettings-RfZ8Wuhh.mjs} +3 -3
- package/dist/{RecurringTransactions-CxcSL1dY.mjs → RecurringTransactions-Bhx56aA3.mjs} +76 -76
- package/dist/{RecurringTransactionsStore-CNFxyGB6.mjs → RecurringTransactionsStore-D3EOKZ2B.mjs} +1 -1
- package/dist/{ResponsiveButton-Cn6-R7ue.mjs → ResponsiveButton-C6KH8JH4.mjs} +1 -1
- package/dist/SearchBox-B2_zLv8-.mjs +42 -0
- package/dist/{SingleSegmentDonut-7Uy6VEld.mjs → SingleSegmentDonut-PsRQPkmV.mjs} +1 -1
- package/dist/{SpendingLegend-6FqtMcBV.mjs → SpendingLegend-CZzDb-7d.mjs} +10 -10
- package/dist/TransactionDetails-Duv1X9ec.mjs +1379 -0
- package/dist/{TransactionStore-DbwAutwC.mjs → TransactionStore-DgLrYW4C.mjs} +3 -3
- package/dist/{User-BklmOUSd.mjs → User-DqNX2GAK.mjs} +107 -107
- package/dist/{ViewMoreMicroCard-DAkyNRlD.mjs → ViewMoreMicroCard-CH9E-jOx.mjs} +178 -177
- package/dist/{WidgetContainer-CDh9fjpR.mjs → WidgetContainer-B1Jzb4XA.mjs} +6 -6
- package/dist/accounts/index.es.js +45 -45
- package/dist/analytics/index.es.js +22 -22
- package/dist/budgets/index.es.js +266 -265
- package/dist/cashflow/index.es.js +155 -154
- package/dist/categories/index.es.js +1 -1
- package/dist/common/components/Loader.d.ts +2 -1
- package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
- package/dist/common/components/barchart/Bar.d.ts +25 -0
- package/dist/common/components/barchart/BarChart.d.ts +34 -0
- package/dist/common/components/barchart/BarColumn.d.ts +37 -0
- package/dist/common/components/barchart/Legend.d.ts +8 -0
- package/dist/common/components/barchart/Util.d.ts +42 -0
- package/dist/common/components/barchart/index.d.ts +1 -0
- package/dist/common/components/charts/linechart/CustomMark.d.ts +1 -1
- package/dist/common/components/index.d.ts +1 -0
- package/dist/common/index.es.js +659 -394
- package/dist/common/utils/Theme.d.ts +3 -1
- package/dist/dashboard/index.es.js +21 -21
- package/dist/debts/components/DebtsChart.d.ts +2 -1
- package/dist/debts/index.es.js +438 -438
- package/dist/{exportTransactionsToCSV-BgV_wTLT.mjs → exportTransactionsToCSV-BFpuIAXW.mjs} +1 -1
- package/dist/finstrong/index.es.js +113 -113
- package/dist/goals/index.es.js +379 -385
- package/dist/help/components/content/BottomImageContent.d.ts +1 -1
- package/dist/help/components/content/LeftImageContent.d.ts +1 -1
- package/dist/help/components/content/RightImageContent.d.ts +1 -1
- package/dist/help/components/content/TopImageContent.d.ts +1 -1
- package/dist/help/index.es.js +3 -3
- package/dist/investments/index.es.js +279 -278
- package/dist/merchants/index.es.js +16 -16
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/components/NetWorthChange.d.ts +1 -3
- package/dist/networth/index.es.js +185 -191
- package/dist/notifications/index.es.js +29 -29
- package/dist/recurringtransactions/index.es.js +82 -82
- package/dist/settings/index.es.js +254 -254
- package/dist/spending/index.es.js +43 -43
- package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +7 -0
- package/dist/transactions/index.es.js +150 -149
- package/dist/trends/index.es.js +297 -296
- package/dist/{useAccountDisplayName-CcIp09Xc.mjs → useAccountDisplayName-usSZCQ7I.mjs} +1 -1
- package/dist/{useCombineEvents-kNzLTWCp.mjs → useCombineEvents-CRwX-qWE.mjs} +2 -2
- package/dist/{useScreenSize-B5afALev.mjs → useScreenSize-B6JyS_Lj.mjs} +1 -1
- package/package.json +30 -30
- package/dist/AccountDetailsContent-adZTkM52.mjs +0 -683
- package/dist/AccountListItem-wgmlex-_.mjs +0 -90
- package/dist/CurrencyInput-D1cjbdCI.mjs +0 -85
- package/dist/HeaderCell-P8w6CmfO.mjs +0 -6
- package/dist/Loader-Ckqi9Rx6.mjs +0 -21
- package/dist/SearchBox-B7km148n.mjs +0 -39
- package/dist/TransactionDetails-Bn0qY5Hw.mjs +0 -1336
|
@@ -1,56 +1,57 @@
|
|
|
1
|
-
import { T as
|
|
2
|
-
import { b as P, C as
|
|
3
|
-
import { B as
|
|
4
|
-
import { T as M } from "../User-
|
|
5
|
-
import { O as
|
|
6
|
-
import { S as ae, D as
|
|
7
|
-
import { T as
|
|
8
|
-
import { e as
|
|
9
|
-
import { E as
|
|
1
|
+
import { T as Sa } from "../TransactionApi-CjBoLleL.mjs";
|
|
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
|
-
import { observer as
|
|
13
|
-
import
|
|
14
|
-
import { DataGridPro as
|
|
15
|
-
import { L as q } from "../Loader-
|
|
16
|
-
import { Text as C, Icon as B, MerchantLogo as Xe, TextField as ne, P as
|
|
12
|
+
import { observer as x } from "mobx-react-lite";
|
|
13
|
+
import qe from "@mui/material/Paper";
|
|
14
|
+
import { DataGridPro as je } from "@mui/x-data-grid-pro";
|
|
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
17
|
import A from "@mui/material/Stack";
|
|
18
|
-
import { h as V, u as w, b as j, d as se, m as
|
|
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
19
|
import { f as ie } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
20
|
-
import
|
|
21
|
-
import { useTheme as
|
|
20
|
+
import S from "@mui/material/Box";
|
|
21
|
+
import { useTheme as tt } from "@mui/material/styles";
|
|
22
22
|
import { fromUnixTime as at } from "date-fns/fromUnixTime";
|
|
23
|
-
import { f as nt, a as ot, D as
|
|
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
|
-
import
|
|
29
|
-
import lt from "
|
|
30
|
-
import dt from "@mui/material/
|
|
31
|
-
import ut from "@mui/material/
|
|
32
|
-
import
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
28
|
+
import ct from "@mui/material/styles/useTheme";
|
|
29
|
+
import { l as lt } from "../ConnectDrawer-Dn1MlqLz.mjs";
|
|
30
|
+
import dt from "@mui/material/Divider";
|
|
31
|
+
import ut from "@mui/material/MenuItem";
|
|
32
|
+
import mt from "@mui/material/RadioGroup";
|
|
33
|
+
import { ExpandMore as _t } from "@mxenabled/mx-icons";
|
|
34
|
+
import { C as pt } from "../CurrencyInput-BrGvhgVK.mjs";
|
|
35
|
+
import { a as gt, u as ht } from "../CategorySelectorDrawer-DqDAA_5I.mjs";
|
|
35
36
|
import { b as K } from "../Localization-2MODESHW.mjs";
|
|
36
|
-
import { S as
|
|
37
|
-
import { A as T, W as
|
|
38
|
-
import { D as oe } from "../Drawer-
|
|
39
|
-
import { u as
|
|
40
|
-
import { S as
|
|
41
|
-
const
|
|
37
|
+
import { S as ft } from "../SkeletonLoader-BaNboJjD.mjs";
|
|
38
|
+
import { A as T, W as Ct } from "../WidgetContainer-B1Jzb4XA.mjs";
|
|
39
|
+
import { D as oe } from "../Drawer-Dqe5EqvA.mjs";
|
|
40
|
+
import { u as yt } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
41
|
+
import { S as bt } from "../SearchBox-B2_zLv8-.mjs";
|
|
42
|
+
const Tt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small", children: [
|
|
42
43
|
`${t.row.account}`,
|
|
43
44
|
t.row.number && ` | ${t.row.number}`
|
|
44
|
-
] }),
|
|
45
|
+
] }), At = (t) => {
|
|
45
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;
|
|
46
47
|
return /* @__PURE__ */ _(A, { alignItems: "flex-end", tabIndex: t.tabIndex, children: [
|
|
47
|
-
/* @__PURE__ */ _(C, { color: d ? "success.main" : "text.primary", variant: "
|
|
48
|
+
/* @__PURE__ */ _(C, { color: d ? "success.main" : "text.primary", variant: "Small", children: [
|
|
48
49
|
d ? "+" : "",
|
|
49
50
|
ie(a, "0,0.00")
|
|
50
51
|
] }),
|
|
51
|
-
l && r && /* @__PURE__ */ e(C, { bold: !0, color: "primary.light", variant: "
|
|
52
|
+
l && r && /* @__PURE__ */ e(C, { bold: !0, color: "primary.light", variant: "XSmall", children: l.short_title })
|
|
52
53
|
] });
|
|
53
|
-
},
|
|
54
|
+
}, St = (t) => {
|
|
54
55
|
const { transactions: s } = w(), [r, a] = u.useState(!1);
|
|
55
56
|
return /* @__PURE__ */ _(
|
|
56
57
|
A,
|
|
@@ -64,15 +65,15 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
64
65
|
width: "100%",
|
|
65
66
|
children: [
|
|
66
67
|
t.row.has_been_split && /* @__PURE__ */ e(B, { name: "call_split", size: 16 }),
|
|
67
|
-
/* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "
|
|
68
|
+
/* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "Small", children: t.row.has_been_split ? s.split_transaction_category_label : t.row.category }),
|
|
68
69
|
!t.row.has_been_split && r && /* @__PURE__ */ e(B, { name: "edit", sx: { color: "action.active" } })
|
|
69
70
|
]
|
|
70
71
|
}
|
|
71
72
|
);
|
|
72
|
-
}, xt =
|
|
73
|
-
const s =
|
|
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 = tt(), { transactions: r } = w(), { is_flagged: a, is_hidden: i, has_been_viewed: l, parent_guid: d } = t.row, h = !l && !!!d;
|
|
74
75
|
return /* @__PURE__ */ _(
|
|
75
|
-
|
|
76
|
+
S,
|
|
76
77
|
{
|
|
77
78
|
"aria-label": i ? r.is_hidden : r.is_flagged,
|
|
78
79
|
tabIndex: t.tabIndex,
|
|
@@ -97,7 +98,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
97
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__ */ _(A, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
101
102
|
/* @__PURE__ */ e(
|
|
102
103
|
Xe,
|
|
103
104
|
{
|
|
@@ -105,8 +106,8 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
105
106
|
merchantGuid: t.row.merchant_guid || ""
|
|
106
107
|
}
|
|
107
108
|
),
|
|
108
|
-
/* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "
|
|
109
|
-
] }),
|
|
109
|
+
/* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "Small", children: t.row.payee })
|
|
110
|
+
] }), Nt = ({
|
|
110
111
|
height: t = "100dvh",
|
|
111
112
|
onCategoryClick: s,
|
|
112
113
|
onRowClick: r
|
|
@@ -130,7 +131,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
130
131
|
minWidth: 32,
|
|
131
132
|
width: 32,
|
|
132
133
|
sortable: !1,
|
|
133
|
-
renderCell: (n) => /* @__PURE__ */ e(
|
|
134
|
+
renderCell: (n) => /* @__PURE__ */ e(It, { ...n }),
|
|
134
135
|
renderHeader: () => /* @__PURE__ */ e("span", { "aria-label": a.transaction_status, role: "presentation" })
|
|
135
136
|
},
|
|
136
137
|
{
|
|
@@ -138,7 +139,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
138
139
|
headerName: a.date_title,
|
|
139
140
|
width: 103,
|
|
140
141
|
renderHeader: O,
|
|
141
|
-
renderCell: (n) => n.row.parent_guid ? null : /* @__PURE__ */ e(
|
|
142
|
+
renderCell: (n) => n.row.parent_guid ? null : /* @__PURE__ */ e(wt, { ...n }),
|
|
142
143
|
sortingOrder: ["desc", "asc"]
|
|
143
144
|
},
|
|
144
145
|
{
|
|
@@ -147,7 +148,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
147
148
|
headerName: a.payee_title,
|
|
148
149
|
flex: 0.33,
|
|
149
150
|
renderHeader: O,
|
|
150
|
-
renderCell:
|
|
151
|
+
renderCell: Dt,
|
|
151
152
|
sortingOrder: ["asc", "desc"]
|
|
152
153
|
},
|
|
153
154
|
{
|
|
@@ -163,7 +164,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
163
164
|
headerName: a.account_title,
|
|
164
165
|
flex: 0.33,
|
|
165
166
|
renderHeader: O,
|
|
166
|
-
renderCell: (n) => n.row.parent_guid ? null : /* @__PURE__ */ e(
|
|
167
|
+
renderCell: (n) => n.row.parent_guid ? null : /* @__PURE__ */ e(Tt, { ...n }),
|
|
167
168
|
sortingOrder: ["asc", "desc"]
|
|
168
169
|
},
|
|
169
170
|
{
|
|
@@ -171,14 +172,14 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
171
172
|
headerName: a.amount_title,
|
|
172
173
|
flex: 0.25,
|
|
173
174
|
renderHeader: O,
|
|
174
|
-
renderCell:
|
|
175
|
+
renderCell: At,
|
|
175
176
|
align: "right",
|
|
176
177
|
headerAlign: "right",
|
|
177
178
|
sortingOrder: ["asc", "desc"]
|
|
178
179
|
}
|
|
179
180
|
];
|
|
180
|
-
return /* @__PURE__ */ e(
|
|
181
|
-
|
|
181
|
+
return /* @__PURE__ */ e(qe, { sx: { height: t, px: 24, width: "100%", boxShadow: "none" }, children: /* @__PURE__ */ e(
|
|
182
|
+
je,
|
|
182
183
|
{
|
|
183
184
|
columns: v,
|
|
184
185
|
disableColumnFilter: !0,
|
|
@@ -197,10 +198,10 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
197
198
|
}
|
|
198
199
|
}
|
|
199
200
|
) });
|
|
200
|
-
},
|
|
201
|
+
}, Et = x(Nt), Ot = ({ copy: t, isOpen: s, onClose: r, onPrimaryAction: a }) => {
|
|
201
202
|
const { common: i, transactions: l } = w(), { isCopyLoaded: d } = j();
|
|
202
203
|
return d ? /* @__PURE__ */ _(
|
|
203
|
-
|
|
204
|
+
ce,
|
|
204
205
|
{
|
|
205
206
|
copy: {
|
|
206
207
|
title: t.title
|
|
@@ -216,7 +217,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
216
217
|
]
|
|
217
218
|
}
|
|
218
219
|
) : /* @__PURE__ */ e(q, {});
|
|
219
|
-
},
|
|
220
|
+
}, Mt = x(Ot), kt = () => {
|
|
220
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(
|
|
221
222
|
() => t.filter((o) => o.is_manual),
|
|
222
223
|
[t]
|
|
@@ -237,7 +238,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
237
238
|
}, E = (o) => {
|
|
238
239
|
l({ ...a, account_guid: o });
|
|
239
240
|
};
|
|
240
|
-
return /* @__PURE__ */ _(
|
|
241
|
+
return /* @__PURE__ */ _(S, { className: "mx-txn-manual-transaction-details", children: [
|
|
241
242
|
/* @__PURE__ */ _(A, { gap: 40, mx: 24, my: 32, children: [
|
|
242
243
|
/* @__PURE__ */ _(
|
|
243
244
|
A,
|
|
@@ -246,7 +247,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
246
247
|
sx: { flexDirection: { xs: "column", sm: "row" }, gap: { xs: 40, sm: 8 } },
|
|
247
248
|
children: [
|
|
248
249
|
/* @__PURE__ */ e(
|
|
249
|
-
|
|
250
|
+
pt,
|
|
250
251
|
{
|
|
251
252
|
allowDecimals: !0,
|
|
252
253
|
amount: d,
|
|
@@ -262,7 +263,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
262
263
|
type: "number"
|
|
263
264
|
}
|
|
264
265
|
),
|
|
265
|
-
/* @__PURE__ */ e(
|
|
266
|
+
/* @__PURE__ */ e(mt, { name: "TransactionType", onChange: g, row: !0, children: /* @__PURE__ */ _(A, { alignItems: "center", direction: "row", children: [
|
|
266
267
|
/* @__PURE__ */ e(
|
|
267
268
|
ae,
|
|
268
269
|
{
|
|
@@ -300,34 +301,34 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
300
301
|
ne,
|
|
301
302
|
{
|
|
302
303
|
InputLabelProps: { shrink: !0 },
|
|
303
|
-
SelectProps: { defaultValue: -1, IconComponent:
|
|
304
|
+
SelectProps: { defaultValue: -1, IconComponent: _t },
|
|
304
305
|
label: r.manual_transaction_select_an_account,
|
|
305
306
|
onChange: (o) => E(o.target.value),
|
|
306
307
|
placeholder: r.manual_transaction_select,
|
|
307
308
|
select: !0,
|
|
308
309
|
sx: { bgcolor: "background.paper" },
|
|
309
|
-
children: m.map((o) => /* @__PURE__ */ e(
|
|
310
|
+
children: m.map((o) => /* @__PURE__ */ e(ut, { value: o.value, children: o.label }, o.value))
|
|
310
311
|
}
|
|
311
312
|
)
|
|
312
313
|
] }),
|
|
313
|
-
/* @__PURE__ */ e(
|
|
314
|
-
/* @__PURE__ */ _(
|
|
314
|
+
/* @__PURE__ */ e(dt, { light: !0 }),
|
|
315
|
+
/* @__PURE__ */ _(S, { bgcolor: "background.paper", children: [
|
|
316
|
+
/* @__PURE__ */ e(Pe, { transaction: a }),
|
|
315
317
|
/* @__PURE__ */ e(Ve, { transaction: a }),
|
|
316
318
|
/* @__PURE__ */ e($e, { transaction: a }),
|
|
317
|
-
/* @__PURE__ */ e(Ge, { transaction: a })
|
|
318
|
-
/* @__PURE__ */ e(We, { transaction: a })
|
|
319
|
+
/* @__PURE__ */ e(Ge, { transaction: a })
|
|
319
320
|
] })
|
|
320
321
|
] });
|
|
321
|
-
},
|
|
322
|
-
const { addOrUpdateTransactionRule: r, updateTransaction: a } = V(), { transactions: i } = w(), { categories: l } =
|
|
322
|
+
}, Lt = x(kt), Rt = ({ onClose: t, transaction: s }) => {
|
|
323
|
+
const { addOrUpdateTransactionRule: r, updateTransaction: a } = V(), { transactions: i } = w(), { categories: l } = Je(), [d, p] = u.useState(""), h = u.useMemo(
|
|
323
324
|
() => l.find((m) => m.guid === d),
|
|
324
325
|
[d]
|
|
325
326
|
), f = async (m) => {
|
|
326
327
|
await a({ ...s, category_guid: d }), m && await r(d, s), p(""), t();
|
|
327
328
|
};
|
|
328
|
-
return /* @__PURE__ */ _(
|
|
329
|
+
return /* @__PURE__ */ _(S, { className: "mx-txn-edit-category-action", children: [
|
|
329
330
|
/* @__PURE__ */ e(
|
|
330
|
-
|
|
331
|
+
gt,
|
|
331
332
|
{
|
|
332
333
|
initialSelected: s.category_guid,
|
|
333
334
|
onClose: t,
|
|
@@ -337,7 +338,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
337
338
|
}
|
|
338
339
|
),
|
|
339
340
|
/* @__PURE__ */ e(
|
|
340
|
-
|
|
341
|
+
ce,
|
|
341
342
|
{
|
|
342
343
|
copy: {
|
|
343
344
|
title: K(
|
|
@@ -351,7 +352,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
351
352
|
onSecondaryAction: () => f(!1),
|
|
352
353
|
primaryText: i.actions_apply_to_all,
|
|
353
354
|
secondaryText: i.actions_this_time_only,
|
|
354
|
-
children: /* @__PURE__ */ e(
|
|
355
|
+
children: /* @__PURE__ */ e(Ye, { variant: "Paragraph", children: K(
|
|
355
356
|
i.actions_all_past_and_future,
|
|
356
357
|
s.description,
|
|
357
358
|
h?.name
|
|
@@ -359,137 +360,137 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
359
360
|
}
|
|
360
361
|
)
|
|
361
362
|
] });
|
|
362
|
-
},
|
|
363
|
+
}, Ht = x(Rt), re = 120, Bt = ({
|
|
363
364
|
onBackClick: t,
|
|
364
365
|
height: s = "100dvh",
|
|
365
366
|
showInsights: r = !1,
|
|
366
367
|
sx: a = {}
|
|
367
368
|
}) => {
|
|
368
|
-
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(), {
|
|
369
370
|
displayedDateRange: g,
|
|
370
371
|
isCopyLoaded: I,
|
|
371
372
|
isInitialized: E,
|
|
372
373
|
selectedAccountGuids: o,
|
|
373
374
|
setDisplayedDate: k,
|
|
374
|
-
setSelectedAccounts:
|
|
375
|
-
} = j(), { isDesktop:
|
|
376
|
-
addTransaction:
|
|
377
|
-
filter:
|
|
378
|
-
isTransactionDataLoaded:
|
|
379
|
-
loadAssociatedBeats:
|
|
380
|
-
loadTransactionData:
|
|
375
|
+
setSelectedAccounts: le
|
|
376
|
+
} = j(), { isDesktop: de, isTablet: ue } = yt(), L = ct(), {
|
|
377
|
+
addTransaction: me,
|
|
378
|
+
filter: X,
|
|
379
|
+
isTransactionDataLoaded: Y,
|
|
380
|
+
loadAssociatedBeats: _e,
|
|
381
|
+
loadTransactionData: pe,
|
|
381
382
|
setFilter: $,
|
|
382
383
|
sortedTransactionsWithSplits: G,
|
|
383
|
-
tags:
|
|
384
|
-
detailedTransactions:
|
|
385
|
-
updateTransaction:
|
|
384
|
+
tags: ge,
|
|
385
|
+
detailedTransactions: he,
|
|
386
|
+
updateTransaction: fe
|
|
386
387
|
} = V(), {
|
|
387
|
-
clearExpandedSplits:
|
|
388
|
-
isAmountValid:
|
|
388
|
+
clearExpandedSplits: Ce,
|
|
389
|
+
isAmountValid: ye,
|
|
389
390
|
manualTransaction: R,
|
|
390
|
-
searchValue:
|
|
391
|
-
setSearchValue:
|
|
392
|
-
setShowInsights:
|
|
391
|
+
searchValue: be,
|
|
392
|
+
setSearchValue: Te,
|
|
393
|
+
setShowInsights: Ae,
|
|
393
394
|
updateManualTransaction: Se
|
|
394
|
-
} = P(), { userProfile:
|
|
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;
|
|
395
396
|
u.useEffect(() => {
|
|
396
|
-
|
|
397
|
+
Y || pe().finally();
|
|
397
398
|
}, []), u.useEffect(() => {
|
|
398
399
|
const c = D ? [{ guid: D }] : i.filter((N) => !N.is_hidden), ee = it(z()), te = rt(z());
|
|
399
|
-
D ||
|
|
400
|
+
D || le(c), k(ee, te), $({
|
|
400
401
|
accounts: c.map((N) => N.guid),
|
|
401
402
|
custom: (N) => !N.accountIsClosed && !N.accountIsHidden,
|
|
402
403
|
dateRange: { start: ee, end: te }
|
|
403
404
|
}), m(T.TRANSACTIONS_VIEW);
|
|
404
405
|
}, [i]), u.useEffect(() => {
|
|
405
406
|
$({
|
|
406
|
-
...
|
|
407
|
+
...X,
|
|
407
408
|
accounts: D ? [D] : o,
|
|
408
409
|
dateRange: { start: g.start, end: g.end }
|
|
409
|
-
}),
|
|
410
|
+
}), _e(g.start).finally();
|
|
410
411
|
}, [g, o]), u.useEffect(() => {
|
|
411
|
-
|
|
412
|
+
Ae(r);
|
|
412
413
|
}, [r]), u.useEffect(() => {
|
|
413
|
-
I && n.showing_transactions_count &&
|
|
414
|
+
I && n.showing_transactions_count && Ie(
|
|
414
415
|
K(
|
|
415
416
|
n.showing_transactions_count,
|
|
416
417
|
G.length
|
|
417
418
|
)
|
|
418
419
|
);
|
|
419
420
|
}, [I, g, o, G, n]);
|
|
420
|
-
const
|
|
421
|
+
const Ne = u.useMemo(
|
|
421
422
|
() => i.filter((c) => c.is_manual),
|
|
422
423
|
[i]
|
|
423
|
-
), b = J ?
|
|
424
|
-
|
|
425
|
-
},
|
|
426
|
-
|
|
427
|
-
...
|
|
424
|
+
), b = J ? he.find((c) => c.guid === J) : void 0, Z = ye && !!R.payee && !!R.account_guid && !!R.category_guid, Ee = (c) => {
|
|
425
|
+
Ce(), k(c[0], c[1]);
|
|
426
|
+
}, Oe = (c) => {
|
|
427
|
+
Te(c), $({
|
|
428
|
+
...X,
|
|
428
429
|
searchTerm: c
|
|
429
430
|
}), m(T.TRANSACTIONS_CLICK_SEARCH, { search_term: c });
|
|
431
|
+
}, Me = () => {
|
|
432
|
+
Ke(G, ge), m(T.TRANSACTIONS_CLICK_EXPORT);
|
|
430
433
|
}, ke = () => {
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
Ee.length > 0 ? (Se({
|
|
434
|
-
...Ke,
|
|
434
|
+
Ne.length > 0 ? (Se({
|
|
435
|
+
...ze,
|
|
435
436
|
date: st(z()),
|
|
436
|
-
user_guid:
|
|
437
|
+
user_guid: xe?.user_guid || ""
|
|
437
438
|
}), y(
|
|
438
439
|
"addTransaction"
|
|
439
440
|
/* AddTransaction */
|
|
440
441
|
), m(T.TRANSACTIONS_CLICK_ADD)) : (U(!0), m(T.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
|
|
441
|
-
},
|
|
442
|
-
Z && await
|
|
443
|
-
},
|
|
442
|
+
}, Le = async () => {
|
|
443
|
+
Z && await me(R), y("");
|
|
444
|
+
}, Re = () => {
|
|
444
445
|
U(!1), Q(!0);
|
|
445
|
-
},
|
|
446
|
+
}, He = async () => {
|
|
446
447
|
Q(!1), await l();
|
|
447
|
-
},
|
|
448
|
-
b && !b.has_been_viewed && await
|
|
448
|
+
}, Be = async () => {
|
|
449
|
+
b && !b.has_been_viewed && await fe({ ...b, has_been_viewed: !0 }), y("");
|
|
449
450
|
};
|
|
450
451
|
if (!E)
|
|
451
452
|
return /* @__PURE__ */ e(q, {});
|
|
452
453
|
const F = [];
|
|
453
|
-
return !d && (
|
|
454
|
+
return !d && (de || ue) && F.push({
|
|
454
455
|
iconName: "open_in_new",
|
|
455
456
|
label: n.export_csv_btn,
|
|
456
|
-
onClick:
|
|
457
|
+
onClick: Me
|
|
457
458
|
}), h.show_connections_widget_in_master && F.push({
|
|
458
459
|
iconName: "add",
|
|
459
460
|
label: n.add_transaction_btn,
|
|
460
|
-
onClick:
|
|
461
|
+
onClick: ke
|
|
461
462
|
}), /* @__PURE__ */ _(
|
|
462
|
-
|
|
463
|
+
Ct,
|
|
463
464
|
{
|
|
464
465
|
...!D && { accountOptions: i },
|
|
465
466
|
actions: F,
|
|
466
467
|
calendarActions: {
|
|
467
|
-
onRangeChanged:
|
|
468
|
+
onRangeChanged: Ee
|
|
468
469
|
},
|
|
469
470
|
onAccountsFilterClick: () => m(T.ACCOUNTS_CLICK_FILTER),
|
|
470
471
|
onBackClick: t,
|
|
471
472
|
sx: a,
|
|
472
473
|
title: n.transactions_title,
|
|
473
474
|
children: [
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
/* @__PURE__ */ e(
|
|
477
|
-
|
|
475
|
+
Y ? /* @__PURE__ */ _(A, { children: [
|
|
476
|
+
De,
|
|
477
|
+
/* @__PURE__ */ e(S, { mt: 16, children: /* @__PURE__ */ e(
|
|
478
|
+
bt,
|
|
478
479
|
{
|
|
479
|
-
onChange:
|
|
480
|
+
onChange: Oe,
|
|
480
481
|
placeholder: n.action_bar_search_placeholder,
|
|
481
|
-
searchValue:
|
|
482
|
+
searchValue: be
|
|
482
483
|
}
|
|
483
484
|
) }),
|
|
484
485
|
/* @__PURE__ */ e(
|
|
485
|
-
|
|
486
|
+
S,
|
|
486
487
|
{
|
|
487
488
|
sx: {
|
|
488
489
|
[L.breakpoints.down("md")]: { display: "none" },
|
|
489
490
|
[L.breakpoints.up("md")]: { display: "block" }
|
|
490
491
|
},
|
|
491
492
|
children: /* @__PURE__ */ e(
|
|
492
|
-
|
|
493
|
+
Et,
|
|
493
494
|
{
|
|
494
495
|
height: `calc(${s} - ${re}px)`,
|
|
495
496
|
onCategoryClick: (c) => {
|
|
@@ -509,14 +510,14 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
509
510
|
}
|
|
510
511
|
),
|
|
511
512
|
/* @__PURE__ */ e(
|
|
512
|
-
|
|
513
|
+
S,
|
|
513
514
|
{
|
|
514
515
|
sx: {
|
|
515
516
|
[L.breakpoints.down("md")]: { display: "block" },
|
|
516
517
|
[L.breakpoints.up("md")]: { display: "none" }
|
|
517
518
|
},
|
|
518
519
|
children: /* @__PURE__ */ e(
|
|
519
|
-
|
|
520
|
+
Ue,
|
|
520
521
|
{
|
|
521
522
|
height: `calc(${s} - ${re}px)`,
|
|
522
523
|
onClick: (c) => {
|
|
@@ -531,19 +532,19 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
531
532
|
)
|
|
532
533
|
}
|
|
533
534
|
)
|
|
534
|
-
] }) : /* @__PURE__ */ e(
|
|
535
|
+
] }) : /* @__PURE__ */ e(ft, { variant: "list" }),
|
|
535
536
|
/* @__PURE__ */ e(
|
|
536
537
|
oe,
|
|
537
538
|
{
|
|
538
539
|
ariaLabelClose: v.close_aria,
|
|
539
540
|
isOpen: W === "transaction" && !!b,
|
|
540
|
-
onClose:
|
|
541
|
+
onClose: Be,
|
|
541
542
|
title: n.details_title,
|
|
542
|
-
children: b && /* @__PURE__ */ e(
|
|
543
|
+
children: b && /* @__PURE__ */ e(Fe, { transaction: b })
|
|
543
544
|
}
|
|
544
545
|
),
|
|
545
546
|
b && W === "category" && /* @__PURE__ */ e(
|
|
546
|
-
|
|
547
|
+
Ht,
|
|
547
548
|
{
|
|
548
549
|
onClose: () => {
|
|
549
550
|
f(""), y(""), H("");
|
|
@@ -558,47 +559,47 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
558
559
|
isOpen: W === "addTransaction",
|
|
559
560
|
isPrimaryDisabled: !Z,
|
|
560
561
|
onClose: () => y(""),
|
|
561
|
-
onPrimaryAction:
|
|
562
|
+
onPrimaryAction: Le,
|
|
562
563
|
title: n.add_transaction_title,
|
|
563
|
-
children: /* @__PURE__ */ e(
|
|
564
|
+
children: /* @__PURE__ */ e(Lt, {})
|
|
564
565
|
}
|
|
565
566
|
),
|
|
566
567
|
/* @__PURE__ */ e(
|
|
567
|
-
|
|
568
|
+
Mt,
|
|
568
569
|
{
|
|
569
570
|
copy: { title: n.add_manual_account },
|
|
570
|
-
isOpen:
|
|
571
|
+
isOpen: we,
|
|
571
572
|
onClose: () => {
|
|
572
573
|
U(!1);
|
|
573
574
|
},
|
|
574
|
-
onPrimaryAction:
|
|
575
|
+
onPrimaryAction: Re
|
|
575
576
|
}
|
|
576
577
|
),
|
|
577
578
|
/* @__PURE__ */ e(
|
|
578
|
-
|
|
579
|
+
lt,
|
|
579
580
|
{
|
|
580
|
-
onClose:
|
|
581
|
-
showConnectWidget:
|
|
581
|
+
onClose: He,
|
|
582
|
+
showConnectWidget: ve,
|
|
582
583
|
title: n.add_manual_account
|
|
583
584
|
}
|
|
584
585
|
)
|
|
585
586
|
]
|
|
586
587
|
}
|
|
587
588
|
);
|
|
588
|
-
},
|
|
589
|
+
}, ba = x(Bt);
|
|
589
590
|
export {
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
591
|
+
Mt as AddAccountModal,
|
|
592
|
+
wa as BottomActions,
|
|
593
|
+
ka as ExportCsvAction,
|
|
594
|
+
Na as TRANSACTION_EVENTS,
|
|
595
|
+
va as TopActions,
|
|
596
|
+
Sa as TransactionApi,
|
|
597
|
+
Fe as TransactionDetails,
|
|
598
|
+
Ue as TransactionList,
|
|
599
|
+
Ia as TransactionRow,
|
|
600
|
+
Oa as TransactionStore,
|
|
601
|
+
Et as TransactionTable,
|
|
602
|
+
ba as TransactionWidget,
|
|
603
|
+
Ke as exportTransactionsToCSV,
|
|
603
604
|
P as useTransactionsUiStore
|
|
604
605
|
};
|