@mx-cartographer/experiences 7.2.14-alpha.sms1 → 7.2.15-alpha.sms1
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 +2 -2
- package/dist/{Account-B-CuHOYf.mjs → Account-vp_TAbGt.mjs} +1 -1
- package/dist/{AccountDetailsContent-DXVLAjNQ.mjs → AccountDetailsContent-Vj4LO6cx.mjs} +6 -6
- package/dist/{AccountDetailsHeader-vcy67tuH.mjs → AccountDetailsHeader-Df1JkzYi.mjs} +4 -4
- package/dist/{AccountFields-cUP-9Hm6.mjs → AccountFields-DUToRRqW.mjs} +2 -2
- package/dist/{AccountListItem-DChcf3SN.mjs → AccountListItem-CeY_WIpj.mjs} +3 -3
- package/dist/{AccountStore-D6KiXA1B.mjs → AccountStore-BkoLK9Tq.mjs} +1 -1
- package/dist/{Accounts-IeEtQjzA.mjs → Accounts-C1QxUB-e.mjs} +1 -1
- package/dist/{ConnectDrawer-DaFRU5st.mjs → ConnectDrawer-Bw5s6Dw1.mjs} +1 -0
- package/dist/{ConnectionsDrawer-DHJ7qdWL.mjs → ConnectionsDrawer-BDvVuJQf.mjs} +13 -12
- package/dist/{DebtsStore-z3VARSO6.mjs → DebtsStore-BD_XwsI7.mjs} +1 -1
- package/dist/{GoalStore-TD0BfzWX.mjs → GoalStore-DZ_Jvsa_.mjs} +1 -1
- package/dist/{ManageIncome-B5zuYyxg.mjs → ManageIncome-B9yGuahc.mjs} +2 -2
- package/dist/{NetWorthStore-B_1oulrt.mjs → NetWorthStore-D1NiDUcc.mjs} +2 -2
- package/dist/{RecurringSettings-CMwUC_rw.mjs → RecurringSettings-D9GFcsXV.mjs} +2 -2
- package/dist/{TransactionDetails-CuqEbcYg.mjs → TransactionDetails-BqCr2FTh.mjs} +42 -42
- package/dist/{TransactionStore-B4FCabkO.mjs → TransactionStore-DxPLdF3B.mjs} +31 -34
- package/dist/{ViewMoreMicroCard-iInbzbw0.mjs → ViewMoreMicroCard-SCn2wt4i.mjs} +571 -545
- package/dist/{WidgetContainer-C88Ecu2W.mjs → WidgetContainer-EbrN1oIo.mjs} +1 -1
- package/dist/accounts/index.es.js +11 -11
- package/dist/budgets/index.es.js +4 -4
- package/dist/cashflow/index.es.js +5 -5
- package/dist/common/index.es.js +11 -11
- package/dist/dashboard/index.es.js +1 -1
- package/dist/debts/index.es.js +5 -5
- package/dist/finstrong/index.es.js +4 -4
- package/dist/goals/index.es.js +7 -7
- package/dist/help/index.es.js +1 -1
- package/dist/investments/index.es.js +2 -2
- package/dist/microinsights/beaticons/BeatIcon.d.ts +2 -0
- package/dist/microinsights/cards/MicroInsightCard.d.ts +7 -0
- package/dist/microinsights/carousel/CarouselControls.d.ts +2 -0
- package/dist/microinsights/carousel/CarouselHeader.d.ts +2 -1
- package/dist/microinsights/index.d.ts +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/microinsights/interfaces.d.ts +4 -0
- package/dist/networth/index.es.js +4 -4
- package/dist/recurringtransactions/index.es.js +5 -5
- package/dist/settings/index.es.js +1 -1
- package/dist/spending/index.es.js +2 -2
- package/dist/transactions/components/shared/transactiondetails/actions/DateAction.d.ts +2 -2
- package/dist/transactions/index.es.js +6 -6
- package/dist/trends/index.es.js +4 -4
- package/dist/{useAccountDisplayName-BcRqfar8.mjs → useAccountDisplayName-jS05A6-6.mjs} +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,10 +11,10 @@ import M from "@mui/material/Divider";
|
|
|
11
11
|
import v from "@mui/material/ListItem";
|
|
12
12
|
import N from "@mui/material/ListItemButton";
|
|
13
13
|
import w from "@mui/material/ListItemText";
|
|
14
|
-
import { u as D } from "./AccountDetailsHeader-
|
|
14
|
+
import { u as D } from "./AccountDetailsHeader-Df1JkzYi.mjs";
|
|
15
15
|
import { d as z, u as E, g as O, h as X } from "./hooks-D6XlXHf4.mjs";
|
|
16
|
-
import { A as at } from "./AccountListItem-
|
|
17
|
-
import { A as k } from "./WidgetContainer-
|
|
16
|
+
import { A as at } from "./AccountListItem-CeY_WIpj.mjs";
|
|
17
|
+
import { A as k } from "./WidgetContainer-EbrN1oIo.mjs";
|
|
18
18
|
import { a as V, f as B, D as K } from "./Dialog-CWW597AF.mjs";
|
|
19
19
|
import { b as h } from "./Localization-2MODESHW.mjs";
|
|
20
20
|
import { D as J } from "./Drawer-kEE73B87.mjs";
|
|
@@ -22,7 +22,7 @@ import P from "@mui/material/ListItemAvatar";
|
|
|
22
22
|
import ct from "@mui/material/Stack";
|
|
23
23
|
import st from "@mui/material/styles/useTheme";
|
|
24
24
|
import { Error as q, CheckCircle as it, Language as rt } from "@mxenabled/mx-icons";
|
|
25
|
-
import { n as m, N as Q, l as Z, F as R } from "./ConnectDrawer-
|
|
25
|
+
import { n as m, N as Q, l as Z, F as R } from "./ConnectDrawer-Bw5s6Dw1.mjs";
|
|
26
26
|
import { fromUnixTime as lt } from "date-fns/fromUnixTime";
|
|
27
27
|
import { isToday as dt } from "date-fns/isToday";
|
|
28
28
|
import { isYesterday as ut } from "date-fns/isYesterday";
|
|
@@ -38,13 +38,13 @@ import bt from "@mui/material/MenuItem";
|
|
|
38
38
|
import At from "@mui/material/Select";
|
|
39
39
|
import Tt from "@mui/material/TextField";
|
|
40
40
|
import { C as St } from "./CurrencyInput-DUsQbkXb.mjs";
|
|
41
|
-
import { b as Dt } from "./AccountFields-
|
|
41
|
+
import { b as Dt } from "./AccountFields-DUToRRqW.mjs";
|
|
42
42
|
import Et from "@mui/material/Alert";
|
|
43
43
|
import yt from "@mui/material/AlertTitle";
|
|
44
44
|
import xt from "@mui/material/Link";
|
|
45
45
|
import wt from "@mui/material/Paper";
|
|
46
46
|
import { subDays as kt, startOfToday as It, endOfToday as Mt } from "date-fns";
|
|
47
|
-
import { T as vt, a as Lt } from "./TransactionDetails-
|
|
47
|
+
import { T as vt, a as Lt } from "./TransactionDetails-BqCr2FTh.mjs";
|
|
48
48
|
import { T as j } from "./TabContentContainer-j01JYR_7.mjs";
|
|
49
49
|
const U = ({
|
|
50
50
|
children: e,
|
|
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as u } from "react/jsx-runtime";
|
|
|
2
2
|
import { observer as p } from "mobx-react-lite";
|
|
3
3
|
import d from "@mui/material/Stack";
|
|
4
4
|
import { H3 as w, InstitutionLogo as I, Text as m, H2 as L } from "@mxenabled/mxui";
|
|
5
|
-
import { g as v } from "./AccountFields-
|
|
5
|
+
import { g as v } from "./AccountFields-DUToRRqW.mjs";
|
|
6
6
|
import h from "react";
|
|
7
7
|
import { G as E, d as y, m as S, u as _, f as G } from "./hooks-D6XlXHf4.mjs";
|
|
8
8
|
import O from "@mui/material/Card";
|
|
@@ -11,11 +11,11 @@ import M from "@mui/material/CardHeader";
|
|
|
11
11
|
import { useTheme as B } from "@mui/material/styles";
|
|
12
12
|
import { g as H, a as U, b as j } from "./SpendingData-D5vsfYKo.mjs";
|
|
13
13
|
import { L as z } from "./LineChart-D4GI7nVh.mjs";
|
|
14
|
-
import { I as f, P as g, S as C } from "./Account-
|
|
15
|
-
import { A } from "./ConnectDrawer-
|
|
14
|
+
import { I as f, P as g, S as C } from "./Account-vp_TAbGt.mjs";
|
|
15
|
+
import { A } from "./ConnectDrawer-Bw5s6Dw1.mjs";
|
|
16
16
|
import { L as Y } from "./Loader-DUaFpDGv.mjs";
|
|
17
17
|
import { f as R, D as $ } from "./Dialog-CWW597AF.mjs";
|
|
18
|
-
import { u as k } from "./useAccountDisplayName-
|
|
18
|
+
import { u as k } from "./useAccountDisplayName-jS05A6-6.mjs";
|
|
19
19
|
import { f as F } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
20
20
|
const b = () => {
|
|
21
21
|
if (!h.useContext(E))
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import { Icon as p, Text as y } from "@mxenabled/mxui";
|
|
3
|
-
import { F as m, A as d, a as v, P as h, b as F } from "./ConnectDrawer-
|
|
4
|
-
import { i as T, u as D, a as A, b as g, c as O } from "./Accounts-
|
|
3
|
+
import { F as m, A as d, a as v, P as h, b as F } from "./ConnectDrawer-Bw5s6Dw1.mjs";
|
|
4
|
+
import { i as T, u as D, a as A, b as g, c as O } from "./Accounts-C1QxUB-e.mjs";
|
|
5
5
|
import { f as _, i as b, a as N, b as S } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
6
6
|
import { b as i } from "./Localization-2MODESHW.mjs";
|
|
7
7
|
import { f as o, D as f } from "./Dialog-CWW597AF.mjs";
|
|
@@ -10,9 +10,9 @@ import B from "@mui/material/styles/useTheme";
|
|
|
10
10
|
import { InstitutionLogo as L, Text as o } from "@mxenabled/mxui";
|
|
11
11
|
import { Error as A } from "@mxenabled/mx-icons";
|
|
12
12
|
import { I as j } from "./IconBacking-B9oC6uL2.mjs";
|
|
13
|
-
import { g as T } from "./AccountFields-
|
|
14
|
-
import { u as X } from "./useAccountDisplayName-
|
|
15
|
-
import { d } from "./ConnectDrawer-
|
|
13
|
+
import { g as T } from "./AccountFields-DUToRRqW.mjs";
|
|
14
|
+
import { u as X } from "./useAccountDisplayName-jS05A6-6.mjs";
|
|
15
|
+
import { d } from "./ConnectDrawer-Bw5s6Dw1.mjs";
|
|
16
16
|
import { u as $ } from "./hooks-D6XlXHf4.mjs";
|
|
17
17
|
import { f as k } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
18
18
|
const w = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { makeAutoObservable as A, runInAction as a } from "mobx";
|
|
2
2
|
import { i as f } from "./User-BQUxBeZV.mjs";
|
|
3
3
|
import { F as p, A as i } from "./Fetch-87LIQbEA.mjs";
|
|
4
|
-
import { A as c, h as d, d as h, E as y, i as I, j as b } from "./ConnectDrawer-
|
|
4
|
+
import { A as c, h as d, d as h, E as y, i as I, j as b } from "./ConnectDrawer-Bw5s6Dw1.mjs";
|
|
5
5
|
class _ {
|
|
6
6
|
fetchInstance;
|
|
7
7
|
constructor(t, e, n) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as _ } from "./ConnectDrawer-
|
|
1
|
+
import { A as _ } from "./ConnectDrawer-Bw5s6Dw1.mjs";
|
|
2
2
|
const s = (t) => t && (t.account_type === _.CREDIT_CARD || t.account_type === _.LOAN || t.account_type === _.MORTGAGE || t.account_type === _.LINE_OF_CREDIT || t.account_type === _.CHECKING_LINE_OF_CREDIT), p = (t) => t.is_manual || !t.guid, E = (t) => t.account_type === _.LINE_OF_CREDIT || t.account_type === _.CREDIT_CARD || t.account_type === _.CHECKING_LINE_OF_CREDIT, a = (t) => t.account_type === _.SAVINGS || t.account_type === _.CHECKING || t.account_type === _.LINE_OF_CREDIT || t.account_type === _.CREDIT_CARD || t.account_type === _.LOAN || t.account_type === _.MORTGAGE, y = (t) => t.account_type === _.LOAN || t.account_type === _.MORTGAGE;
|
|
3
3
|
export {
|
|
4
4
|
s as a,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as r, jsxs as g } from "react/jsx-runtime";
|
|
2
|
+
import s from "react";
|
|
3
3
|
import { observer as E } from "mobx-react-lite";
|
|
4
|
-
import { useTheme as
|
|
5
|
-
import { ConnectionsWidget as
|
|
6
|
-
import { C as a, c, M as i } from "./ConnectDrawer-
|
|
7
|
-
import { d as
|
|
4
|
+
import { useTheme as b } from "@mui/material/styles";
|
|
5
|
+
import { ConnectionsWidget as D } from "@mxenabled/web-widget-sdk";
|
|
6
|
+
import { C as a, c, M as i } from "./ConnectDrawer-Bw5s6Dw1.mjs";
|
|
7
|
+
import { d as L, e as w, u as _ } from "./hooks-D6XlXHf4.mjs";
|
|
8
8
|
import { D as x } from "./Drawer-kEE73B87.mjs";
|
|
9
9
|
const I = ({
|
|
10
10
|
onClose: l,
|
|
@@ -12,11 +12,12 @@ const I = ({
|
|
|
12
12
|
title: u
|
|
13
13
|
}) => {
|
|
14
14
|
let n;
|
|
15
|
-
const { refreshAccounts: m } =
|
|
16
|
-
return
|
|
17
|
-
n = new
|
|
15
|
+
const { refreshAccounts: m } = L(), { loadWidget: f } = w(), { connect: d } = _(), p = b(), [C, e] = s.useState(!1), [S, t] = s.useState(!1);
|
|
16
|
+
return s.useEffect(() => (o ? (e(!0), f({ widget: "connections_widget", mode: p.palette.mode }).then((h) => {
|
|
17
|
+
n = new D({
|
|
18
18
|
container: `#${a}`,
|
|
19
19
|
style: {
|
|
20
|
+
border: "none",
|
|
20
21
|
height: "calc(100% - 62px)",
|
|
21
22
|
width: "100%",
|
|
22
23
|
position: "absolute"
|
|
@@ -31,7 +32,7 @@ const I = ({
|
|
|
31
32
|
});
|
|
32
33
|
})) : (e(!1), t(!1)), () => {
|
|
33
34
|
n?.unmount();
|
|
34
|
-
}), [o]), /* @__PURE__ */
|
|
35
|
+
}), [o]), /* @__PURE__ */ r(
|
|
35
36
|
x,
|
|
36
37
|
{
|
|
37
38
|
ariaLabelClose: d.close_connections_aria,
|
|
@@ -41,8 +42,8 @@ const I = ({
|
|
|
41
42
|
},
|
|
42
43
|
title: u,
|
|
43
44
|
children: /* @__PURE__ */ g("div", { id: a, children: [
|
|
44
|
-
S && /* @__PURE__ */
|
|
45
|
-
C && /* @__PURE__ */
|
|
45
|
+
S && /* @__PURE__ */ r(c, { status: i.Error }),
|
|
46
|
+
C && /* @__PURE__ */ r(c, { status: i.Loading })
|
|
46
47
|
] })
|
|
47
48
|
}
|
|
48
49
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { makeAutoObservable as l } from "mobx";
|
|
2
2
|
import { getDate as r, fromUnixTime as _, startOfMonth as m } from "date-fns";
|
|
3
|
-
import { A as p } from "./ConnectDrawer-
|
|
3
|
+
import { A as p } from "./ConnectDrawer-Bw5s6Dw1.mjs";
|
|
4
4
|
const E = 12, T = 100;
|
|
5
5
|
var c = /* @__PURE__ */ ((a) => (a[a.FASTEST_PAYOFF_FIRST = 1] = "FASTEST_PAYOFF_FIRST", a[a.HIGHEST_INTEREST = 2] = "HIGHEST_INTEREST", a[a.LOWEST_BALANCE = 3] = "LOWEST_BALANCE", a[a.HIGHEST_BALANCE = 4] = "HIGHEST_BALANCE", a))(c || {});
|
|
6
6
|
const b = {
|
|
@@ -7,7 +7,7 @@ import O from "@mui/material/CardHeader";
|
|
|
7
7
|
import S from "@mui/material/Stack";
|
|
8
8
|
import { AccountBalance as w, ChevronRight as L } from "@mxenabled/mx-icons";
|
|
9
9
|
import { Text as A } from "@mxenabled/mxui";
|
|
10
|
-
import { l as b } from "./ConnectDrawer-
|
|
10
|
+
import { l as b } from "./ConnectDrawer-Bw5s6Dw1.mjs";
|
|
11
11
|
import { a as y } from "./hooks-D6XlXHf4.mjs";
|
|
12
12
|
import { makeAutoObservable as D, runInAction as c } from "mobx";
|
|
13
13
|
import { F as v, A as i } from "./Fetch-87LIQbEA.mjs";
|
|
@@ -16,7 +16,7 @@ import { startOfToday as z } from "date-fns/startOfToday";
|
|
|
16
16
|
import { endOfMonth as _e } from "date-fns/endOfMonth";
|
|
17
17
|
import $ from "@mui/material/Button";
|
|
18
18
|
import { Delete as me, Add as pe, ReceiptLong as he } from "@mxenabled/mx-icons";
|
|
19
|
-
import { T as X, a as ye, u as ge, S as fe, b as Ce } from "./TransactionDetails-
|
|
19
|
+
import { T as X, a as ye, u as ge, S as fe, b as Ce } from "./TransactionDetails-BqCr2FTh.mjs";
|
|
20
20
|
import { getDayOfYear as be } from "date-fns/getDayOfYear";
|
|
21
21
|
import { setDayOfYear as xe } from "date-fns/setDayOfYear";
|
|
22
22
|
import { AdapterDateFns as Se } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
@@ -25,7 +25,7 @@ import { LocalizationProvider as we } from "@mui/x-date-pickers/LocalizationProv
|
|
|
25
25
|
import { u as w, j as M, g as F, b as Ae, h as Z, p as De } from "./hooks-D6XlXHf4.mjs";
|
|
26
26
|
import { b as Ie, f as J } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
27
27
|
import { D as O } from "./Drawer-kEE73B87.mjs";
|
|
28
|
-
import { A as R } from "./WidgetContainer-
|
|
28
|
+
import { A as R } from "./WidgetContainer-EbrN1oIo.mjs";
|
|
29
29
|
import { f as Ee, D as Re, a as Te } from "./Dialog-CWW597AF.mjs";
|
|
30
30
|
import { formatISO as Le } from "date-fns/formatISO";
|
|
31
31
|
import { fromUnixTime as Oe } from "date-fns/fromUnixTime";
|
|
@@ -3,8 +3,8 @@ import { format as A } from "date-fns/format";
|
|
|
3
3
|
import { fromUnixTime as W } from "date-fns/fromUnixTime";
|
|
4
4
|
import { startOfMonth as _ } from "date-fns/startOfMonth";
|
|
5
5
|
import { subMonths as B } from "date-fns/subMonths";
|
|
6
|
-
import { a as b } from "./Accounts-
|
|
7
|
-
import { e as N, a as M, f as v } from "./ConnectDrawer-
|
|
6
|
+
import { a as b } from "./Accounts-C1QxUB-e.mjs";
|
|
7
|
+
import { e as N, a as M, f as v } from "./ConnectDrawer-Bw5s6Dw1.mjs";
|
|
8
8
|
const f = 13, L = (n, t) => n.filter((e) => {
|
|
9
9
|
const { is_closed: r, is_deleted: s, is_hidden: a, is_manual: i } = e;
|
|
10
10
|
return r || s || a ? !1 : i || !e.guid ? !0 : t.some((l) => n.some((g) => l.guid === g.member_guid));
|
|
@@ -7,10 +7,10 @@ import b from "@mui/material/Tabs";
|
|
|
7
7
|
import d from "@mui/material/Divider";
|
|
8
8
|
import R from "@mui/material/List";
|
|
9
9
|
import T from "@mui/material/Stack";
|
|
10
|
-
import { R as C, A as S, a as E, M as v } from "./ManageIncome-
|
|
10
|
+
import { R as C, A as S, a as E, M as v } from "./ManageIncome-B9yGuahc.mjs";
|
|
11
11
|
import { u as _, j as A, g as f } from "./hooks-D6XlXHf4.mjs";
|
|
12
12
|
import { R as y, F as N } from "./RecurringTransactions-ej39mgA6.mjs";
|
|
13
|
-
import { A as m } from "./WidgetContainer-
|
|
13
|
+
import { A as m } from "./WidgetContainer-EbrN1oIo.mjs";
|
|
14
14
|
const I = h(() => {
|
|
15
15
|
const { recurring: g } = _(), { repeatingTransactions: n } = A(), { onEvent: o } = f(), l = (r) => {
|
|
16
16
|
o(m.RECURRING_TRANSACTIONS_CLICK_EXPENSE, {
|
|
@@ -17,7 +17,7 @@ import { fromUnixTime as W } from "date-fns/fromUnixTime";
|
|
|
17
17
|
import { isSameDay as Ne } from "date-fns/isSameDay";
|
|
18
18
|
import { h as Ye } from "./DateUtil-BcuH7ErC.mjs";
|
|
19
19
|
import { L as Ie } from "./Loader-DUaFpDGv.mjs";
|
|
20
|
-
import { A as P } from "./WidgetContainer-
|
|
20
|
+
import { A as P } from "./WidgetContainer-EbrN1oIo.mjs";
|
|
21
21
|
import ne from "@mui/material/Paper";
|
|
22
22
|
import ce from "@mui/material/Button";
|
|
23
23
|
import je from "@mui/material/FormGroup";
|
|
@@ -218,7 +218,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
218
218
|
]
|
|
219
219
|
}
|
|
220
220
|
) }) });
|
|
221
|
-
},
|
|
221
|
+
}, ka = b(ut), mt = ({ transaction: t }) => {
|
|
222
222
|
const { addOrUpdateTransactionRule: r, updateTransaction: a } = v(), { categories: s } = xe(), { onEvent: o } = L(), { setShouldDisableDrawerScroll: n, updateManualTransaction: c } = G(), { transactions: d } = A(), [i, u] = _.useState(!1), [m, g] = _.useState(""), p = async (C) => {
|
|
223
223
|
await a({ ...t, category_guid: m }), C && await r(m, t), g(""), o(P.TRANSACTION_DETAILS_CLICK_CATEGORY, {
|
|
224
224
|
transaction_guid: t.guid
|
|
@@ -360,7 +360,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
360
360
|
}
|
|
361
361
|
)
|
|
362
362
|
] });
|
|
363
|
-
}, pt = ({ transaction: t }) => {
|
|
363
|
+
}, pt = b(gt), ht = ({ transaction: t }) => {
|
|
364
364
|
const { onEvent: r } = L(), { removeTransaction: a } = v(), { setShouldDisableDrawerScroll: s } = G(), { common: o, transactions: n } = A(), [c, d] = _.useState(!1), i = async () => {
|
|
365
365
|
await a(t.guid), r(h.ON_TRANSACTION_DELETE_DELETED);
|
|
366
366
|
};
|
|
@@ -400,7 +400,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
400
400
|
}
|
|
401
401
|
)
|
|
402
402
|
] });
|
|
403
|
-
},
|
|
403
|
+
}, Tt = b(ht), yt = ({ transaction: t }) => {
|
|
404
404
|
const { onEvent: r } = L(), { updateTransaction: a } = v(), { setShouldDisableDrawerScroll: s } = G(), { common: o, transactions: n } = A(), [c, d] = _.useState(!1), i = async () => {
|
|
405
405
|
await a({ ...t, merchant_guid: "" }), r(P.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
|
|
406
406
|
transaction_guid: t.guid
|
|
@@ -440,7 +440,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
440
440
|
}
|
|
441
441
|
)
|
|
442
442
|
] });
|
|
443
|
-
},
|
|
443
|
+
}, St = b(yt), Ct = ({ transaction: t }) => {
|
|
444
444
|
const { onEvent: r } = L(), { updateTransaction: a } = v(), { setShouldDisableDrawerScroll: s } = G(), { common: o, transactions: n } = A(), [c, d] = _.useState(!1), i = t.is_hidden, u = async () => {
|
|
445
445
|
await a({ ...t, is_hidden: !t.is_hidden }), r(
|
|
446
446
|
i ? h.ON_TRANSACTION_UNHIDDEN : h.ON_TRANSACTION_HIDDEN
|
|
@@ -510,7 +510,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
510
510
|
}
|
|
511
511
|
)
|
|
512
512
|
] });
|
|
513
|
-
},
|
|
513
|
+
}, ft = b(Ct), Le = ({ transaction: t }) => {
|
|
514
514
|
const { amount: r, description: a, isIncome: s, merchant_guid: o, payee: n, top_level_category_guid: c } = t;
|
|
515
515
|
return /* @__PURE__ */ l(f, { className: "mx-txn-amount-header", direction: "row", gap: 12, px: 16, py: 24, children: [
|
|
516
516
|
/* @__PURE__ */ e(
|
|
@@ -529,7 +529,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
529
529
|
] })
|
|
530
530
|
] })
|
|
531
531
|
] });
|
|
532
|
-
},
|
|
532
|
+
}, bt = ({ transaction: t }) => {
|
|
533
533
|
const { onEvent: r } = L(), { updateTransaction: a } = v(), { updateManualTransaction: s } = G(), { common: o, transactions: n } = A(), [c, d] = _.useState(!1), [i, u] = _.useState("");
|
|
534
534
|
_.useEffect(() => {
|
|
535
535
|
c && u(t.memo ? t.memo : "");
|
|
@@ -599,7 +599,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
599
599
|
}
|
|
600
600
|
)
|
|
601
601
|
] });
|
|
602
|
-
},
|
|
602
|
+
}, At = b(bt), xt = ({
|
|
603
603
|
index: t,
|
|
604
604
|
onDeleteRow: r,
|
|
605
605
|
onCategoryChanged: a,
|
|
@@ -701,7 +701,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
701
701
|
]
|
|
702
702
|
}
|
|
703
703
|
);
|
|
704
|
-
},
|
|
704
|
+
}, Nt = b(xt), It = ({
|
|
705
705
|
onAddSplit: t,
|
|
706
706
|
onCategoryChanged: r,
|
|
707
707
|
onDeleteSplit: a,
|
|
@@ -719,7 +719,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
719
719
|
);
|
|
720
720
|
}, [o]), /* @__PURE__ */ l(w, { className: "mx-txn-split-manager", children: [
|
|
721
721
|
o.map((g, p) => /* @__PURE__ */ e(
|
|
722
|
-
|
|
722
|
+
Nt,
|
|
723
723
|
{
|
|
724
724
|
index: p,
|
|
725
725
|
onCategoryChanged: r,
|
|
@@ -753,7 +753,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
753
753
|
}
|
|
754
754
|
) })
|
|
755
755
|
] });
|
|
756
|
-
},
|
|
756
|
+
}, Dt = b(It), vt = ({ transaction: t }) => {
|
|
757
757
|
const { onEvent: r } = L(), { splitTransaction: a, unSplitTransaction: s } = v(), { common: o, transactions: n } = A(), { setShouldDisableDrawerScroll: c } = G(), { categories: d } = xe(), i = {
|
|
758
758
|
...t,
|
|
759
759
|
amount: t.amount - 1,
|
|
@@ -839,7 +839,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
839
839
|
children: [
|
|
840
840
|
/* @__PURE__ */ e(Le, { transaction: t }),
|
|
841
841
|
/* @__PURE__ */ e(
|
|
842
|
-
|
|
842
|
+
Dt,
|
|
843
843
|
{
|
|
844
844
|
onAddSplit: C,
|
|
845
845
|
onCategoryChanged: $,
|
|
@@ -873,7 +873,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
873
873
|
}
|
|
874
874
|
)
|
|
875
875
|
] });
|
|
876
|
-
},
|
|
876
|
+
}, Et = b(vt), Ot = () => {
|
|
877
877
|
const t = ve(), { onEvent: r } = L(), { addTag: a } = v(), { transactions: s } = A(), [o, n] = _.useState(!1), [c, d] = _.useState(""), [i, u] = _.useState(""), m = _.useRef(null);
|
|
878
878
|
_.useEffect(() => {
|
|
879
879
|
o && m?.current?.focus();
|
|
@@ -936,7 +936,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
936
936
|
}
|
|
937
937
|
)
|
|
938
938
|
] });
|
|
939
|
-
},
|
|
939
|
+
}, wt = b(Ot), Lt = ({ onSearchValueChanged: t, searchValue: r }) => {
|
|
940
940
|
const { common: a, transactions: s } = A(), o = ee(), n = /* @__PURE__ */ e(
|
|
941
941
|
Q,
|
|
942
942
|
{
|
|
@@ -960,7 +960,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
960
960
|
value: r
|
|
961
961
|
}
|
|
962
962
|
) });
|
|
963
|
-
},
|
|
963
|
+
}, Rt = b(Lt), kt = ({ onTagChecked: t, selectedTags: r, tag: a }) => {
|
|
964
964
|
const { onEvent: s } = L(), { removeTag: o, updateTag: n } = v(), { common: c, transactions: d } = A(), [i, u] = _.useState(!1), [m, g] = _.useState(!1), [p, x] = _.useState(""), [y, N] = _.useState(""), C = async () => {
|
|
965
965
|
s(h.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), a && await n({ ...a, name: p }), u(!1);
|
|
966
966
|
}, R = async () => {
|
|
@@ -1054,25 +1054,25 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
1054
1054
|
]
|
|
1055
1055
|
}
|
|
1056
1056
|
);
|
|
1057
|
-
},
|
|
1057
|
+
}, Pt = b(kt), Gt = ({ selectedTags: t, onTagChecked: r }) => {
|
|
1058
1058
|
const { tags: a } = v(), [s, o] = _.useState(""), n = a.filter(
|
|
1059
1059
|
(c) => c.name.toLowerCase().includes(s.toLowerCase())
|
|
1060
1060
|
);
|
|
1061
1061
|
return /* @__PURE__ */ l("div", { className: "mx-txn-tag-manager", children: [
|
|
1062
1062
|
/* @__PURE__ */ e(
|
|
1063
|
-
|
|
1063
|
+
Rt,
|
|
1064
1064
|
{
|
|
1065
1065
|
onSearchValueChanged: (c) => o(c),
|
|
1066
1066
|
searchValue: s
|
|
1067
1067
|
}
|
|
1068
1068
|
),
|
|
1069
|
-
/* @__PURE__ */ e(
|
|
1069
|
+
/* @__PURE__ */ e(wt, {}),
|
|
1070
1070
|
/* @__PURE__ */ e(ne, { sx: { boxShadow: "none" }, children: /* @__PURE__ */ e(J, { children: n.map((c) => /* @__PURE__ */ l(_.Fragment, { children: [
|
|
1071
|
-
/* @__PURE__ */ e(
|
|
1071
|
+
/* @__PURE__ */ e(Pt, { onTagChecked: r, selectedTags: t, tag: c }),
|
|
1072
1072
|
/* @__PURE__ */ e(Z, { sx: { ml: 24 } })
|
|
1073
1073
|
] }, c.guid)) }) })
|
|
1074
1074
|
] });
|
|
1075
|
-
},
|
|
1075
|
+
}, Mt = b(Gt), Kt = ({ transaction: t }) => {
|
|
1076
1076
|
const { onEvent: r } = L(), { tags: a, updateTaggings: s, updateTransaction: o } = v(), { common: n, transactions: c } = A(), { updateManualTransaction: d } = G(), [i, u] = _.useState(!1), [m, g] = _.useState(t.tags);
|
|
1077
1077
|
_.useEffect(() => {
|
|
1078
1078
|
g(t.tags);
|
|
@@ -1123,11 +1123,11 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
1123
1123
|
primaryText: n.save_button,
|
|
1124
1124
|
secondaryText: n.cancel_button,
|
|
1125
1125
|
title: c.tags_title,
|
|
1126
|
-
children: /* @__PURE__ */ e(
|
|
1126
|
+
children: /* @__PURE__ */ e(Mt, { onTagChecked: p, selectedTags: m })
|
|
1127
1127
|
}
|
|
1128
1128
|
)
|
|
1129
1129
|
] });
|
|
1130
|
-
},
|
|
1130
|
+
}, $t = b(Kt), Bt = ({ transaction: t, viewOnly: r = !1 }) => {
|
|
1131
1131
|
const { updateTransaction: a } = v(), { common: s, transactions: o } = A(), { onEvent: n } = L(), [c, d] = _.useState(!1), [i, u] = _.useState(""), m = _.useRef(null);
|
|
1132
1132
|
_.useEffect(() => {
|
|
1133
1133
|
c && (u(t.description), m?.current?.focus());
|
|
@@ -1178,7 +1178,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
1178
1178
|
}
|
|
1179
1179
|
)
|
|
1180
1180
|
] }) });
|
|
1181
|
-
},
|
|
1181
|
+
}, Ft = b(Bt), Ht = ({ transaction: t }) => {
|
|
1182
1182
|
const { updateTransaction: r } = v(), { transactions: a } = A(), { onEvent: s } = L(), o = ve(), n = async () => {
|
|
1183
1183
|
s(P.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: t.guid }), await r({ ...t, is_flagged: !t.is_flagged });
|
|
1184
1184
|
};
|
|
@@ -1210,7 +1210,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
1210
1210
|
children: /* @__PURE__ */ e(We, { color: "inherit" })
|
|
1211
1211
|
}
|
|
1212
1212
|
) });
|
|
1213
|
-
},
|
|
1213
|
+
}, zt = b(Ht), ae = (t, r, a, s = !0, o = "inset") => s ? /* @__PURE__ */ l(_.Fragment, { children: [
|
|
1214
1214
|
/* @__PURE__ */ l(F, { disableGutters: !0, disablePadding: !0, children: [
|
|
1215
1215
|
/* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(z, { sx: { bgcolor: "border.light" }, variant: "rounded", children: t }) }),
|
|
1216
1216
|
/* @__PURE__ */ e(
|
|
@@ -1223,7 +1223,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
1223
1223
|
)
|
|
1224
1224
|
] }),
|
|
1225
1225
|
/* @__PURE__ */ e(Z, { variant: o })
|
|
1226
|
-
] }) : null,
|
|
1226
|
+
] }) : null, Ut = ({ transaction: t }) => {
|
|
1227
1227
|
const { transactions: r } = A(), { tags: a } = v(), s = _.useMemo(() => {
|
|
1228
1228
|
const o = new Map(a.map((n) => [n.guid, n.name]));
|
|
1229
1229
|
return t.tags.map((n) => o.get(n)).filter(Boolean).join(" / ");
|
|
@@ -1262,7 +1262,7 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
1262
1262
|
"fullWidth"
|
|
1263
1263
|
)
|
|
1264
1264
|
] });
|
|
1265
|
-
},
|
|
1265
|
+
}, Xt = b(Ut), Vt = ({
|
|
1266
1266
|
bottomActions: t = at,
|
|
1267
1267
|
topActions: r = tt,
|
|
1268
1268
|
transaction: a
|
|
@@ -1284,13 +1284,13 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
1284
1284
|
size: 64
|
|
1285
1285
|
}
|
|
1286
1286
|
) }),
|
|
1287
|
-
/* @__PURE__ */ e(
|
|
1287
|
+
/* @__PURE__ */ e(Ft, { transaction: a, viewOnly: d }),
|
|
1288
1288
|
/* @__PURE__ */ l(f, { direction: "row", justifyContent: "space-between", sx: { minHeight: 44 }, children: [
|
|
1289
1289
|
/* @__PURE__ */ l(Ae, { color: a.isIncome ? "success.main" : "text.primary", children: [
|
|
1290
1290
|
a.isIncome ? "+" : "",
|
|
1291
1291
|
te(a.amount, "0,0.00")
|
|
1292
1292
|
] }),
|
|
1293
|
-
!d && /* @__PURE__ */ e(
|
|
1293
|
+
!d && /* @__PURE__ */ e(zt, { transaction: a })
|
|
1294
1294
|
] }),
|
|
1295
1295
|
/* @__PURE__ */ l(f, { bgcolor: "background.highlight", borderRadius: "12px", gap: 4, p: 8, children: [
|
|
1296
1296
|
/* @__PURE__ */ e(T, { bold: !0, children: `${a.account}
|
|
@@ -1298,37 +1298,37 @@ const it = ({ transaction: t, onClick: r }) => {
|
|
|
1298
1298
|
/* @__PURE__ */ e(T, { bold: !0, color: "secondary", variant: "Tiny", children: a.description || a.feed_description })
|
|
1299
1299
|
] })
|
|
1300
1300
|
] }),
|
|
1301
|
-
/* @__PURE__ */ e(ne, { square: !0, sx: { boxShadow: "none" }, children: d ? /* @__PURE__ */ e(
|
|
1301
|
+
/* @__PURE__ */ e(ne, { square: !0, sx: { boxShadow: "none" }, children: d ? /* @__PURE__ */ e(Xt, { transaction: a }) : /* @__PURE__ */ e(J, { children: r.map((i, u) => /* @__PURE__ */ l(_.Fragment, { children: [
|
|
1302
1302
|
i === q.Category && /* @__PURE__ */ e(mt, { transaction: a }),
|
|
1303
|
-
i === q.Date && /* @__PURE__ */ e(
|
|
1304
|
-
i === q.Memo && /* @__PURE__ */ e(
|
|
1305
|
-
i === q.Tags && /* @__PURE__ */ e(
|
|
1303
|
+
i === q.Date && /* @__PURE__ */ e(pt, { transaction: a }),
|
|
1304
|
+
i === q.Memo && /* @__PURE__ */ e(At, { transaction: a }),
|
|
1305
|
+
i === q.Tags && /* @__PURE__ */ e($t, { transaction: a }),
|
|
1306
1306
|
/* @__PURE__ */ e(Z, { variant: u < r.length - 1 ? "inset" : "fullWidth" })
|
|
1307
1307
|
] }, i)) }) }),
|
|
1308
1308
|
!d && /* @__PURE__ */ l(_.Fragment, { children: [
|
|
1309
1309
|
/* @__PURE__ */ e(T, { bold: !0, mb: 8, ml: 26, mt: 16, variant: "Body", children: "Actions" }),
|
|
1310
1310
|
/* @__PURE__ */ e(ne, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ l(J, { children: [
|
|
1311
1311
|
t.map((i, u) => /* @__PURE__ */ l(_.Fragment, { children: [
|
|
1312
|
-
i === re.SplitTransaction && /* @__PURE__ */ e(
|
|
1313
|
-
i === re.HideTransaction && /* @__PURE__ */ e(
|
|
1314
|
-
i === re.MerchantLogo && /* @__PURE__ */ e(
|
|
1312
|
+
i === re.SplitTransaction && /* @__PURE__ */ e(Et, { transaction: a }),
|
|
1313
|
+
i === re.HideTransaction && /* @__PURE__ */ e(ft, { transaction: a }),
|
|
1314
|
+
i === re.MerchantLogo && /* @__PURE__ */ e(St, { transaction: a }),
|
|
1315
1315
|
/* @__PURE__ */ e(Z, { variant: u < t.length - 1 ? "inset" : "fullWidth" })
|
|
1316
1316
|
] }, i)),
|
|
1317
|
-
a.is_manual && !a.parent_guid && !a.has_been_split && /* @__PURE__ */ e(
|
|
1317
|
+
a.is_manual && !a.parent_guid && !a.has_been_split && /* @__PURE__ */ e(Tt, { transaction: a })
|
|
1318
1318
|
] }) })
|
|
1319
1319
|
] })
|
|
1320
1320
|
] }) });
|
|
1321
|
-
},
|
|
1321
|
+
}, Pa = b(Vt);
|
|
1322
1322
|
export {
|
|
1323
1323
|
re as B,
|
|
1324
1324
|
mt as C,
|
|
1325
|
-
|
|
1326
|
-
|
|
1325
|
+
pt as D,
|
|
1326
|
+
At as M,
|
|
1327
1327
|
lt as S,
|
|
1328
|
-
|
|
1329
|
-
|
|
1328
|
+
ka as T,
|
|
1329
|
+
Pa as a,
|
|
1330
1330
|
st as b,
|
|
1331
|
-
|
|
1331
|
+
$t as c,
|
|
1332
1332
|
q as d,
|
|
1333
1333
|
G as u
|
|
1334
1334
|
};
|