@mx-cartographer/experiences 7.0.29 → 7.0.30
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 +4 -0
- package/dist/{AccountDetailsContent-BZAbCT6q.mjs → AccountDetailsContent-CHtXOmHC.mjs} +3 -3
- package/dist/{AccountDetailsHeader-DXTi1p0V.mjs → AccountDetailsHeader-Dwk01nsY.mjs} +1 -1
- package/dist/{AccountFields-Bxvi1C4Z.mjs → AccountFields-5i77eFJ6.mjs} +31 -27
- package/dist/{AccountListItem-CnE3rCVZ.mjs → AccountListItem-BiST9IgK.mjs} +1 -1
- package/dist/accounts/index.es.js +66 -68
- package/dist/accounts/utils/AccountFields.d.ts +1 -0
- package/dist/cashflow/index.es.js +1 -1
- package/dist/debts/index.es.js +1 -1
- package/dist/goals/index.es.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,9 +11,9 @@ 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-Dwk01nsY.mjs";
|
|
15
15
|
import { c as z, u as E, f as O, g as X } from "./hooks-DlI63qSB.mjs";
|
|
16
|
-
import { A as at } from "./AccountListItem-
|
|
16
|
+
import { A as at } from "./AccountListItem-BiST9IgK.mjs";
|
|
17
17
|
import { A as k } from "./WidgetContainer-Bn6JPnY3.mjs";
|
|
18
18
|
import { a as V, f as B, D as j } from "./Dialog-CWW597AF.mjs";
|
|
19
19
|
import { b as h } from "./Localization-2MODESHW.mjs";
|
|
@@ -38,7 +38,7 @@ import At from "@mui/material/MenuItem";
|
|
|
38
38
|
import bt from "@mui/material/Select";
|
|
39
39
|
import Tt from "@mui/material/TextField";
|
|
40
40
|
import { C as St } from "./CurrencyInput-BkflFU_-.mjs";
|
|
41
|
-
import {
|
|
41
|
+
import { b as Dt } from "./AccountFields-5i77eFJ6.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";
|
|
@@ -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 N } from "./AccountFields-
|
|
5
|
+
import { g as N } from "./AccountFields-5i77eFJ6.mjs";
|
|
6
6
|
import h from "react";
|
|
7
7
|
import { G as v, c as S, l as y, u as _, e as E } from "./hooks-DlI63qSB.mjs";
|
|
8
8
|
import G from "@mui/material/Card";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Icon as p, Text as
|
|
3
|
-
import { F as m, A as
|
|
4
|
-
import { i as
|
|
5
|
-
import { f as _, i as
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
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-D86nRDxQ.mjs";
|
|
4
|
+
import { i as T, u as D, a as A, b as g, c as O } from "./Accounts-BBkQjUmS.mjs";
|
|
5
|
+
import { f as _, i as b, a as N, b as S } from "./NumberFormatting-CtWHhyBX.mjs";
|
|
6
6
|
import { b as i } from "./Localization-2MODESHW.mjs";
|
|
7
|
-
import { f, D as
|
|
7
|
+
import { f as o, D as f } from "./Dialog-CWW597AF.mjs";
|
|
8
8
|
const w = (l, e) => {
|
|
9
9
|
const r = [
|
|
10
10
|
{
|
|
@@ -17,7 +17,7 @@ const w = (l, e) => {
|
|
|
17
17
|
valueFormatter: (a) => a
|
|
18
18
|
}
|
|
19
19
|
];
|
|
20
|
-
if (
|
|
20
|
+
if (T(l)) {
|
|
21
21
|
r.unshift({
|
|
22
22
|
label: e.account_balance,
|
|
23
23
|
name: "balance",
|
|
@@ -25,10 +25,10 @@ const w = (l, e) => {
|
|
|
25
25
|
type: m.Currency,
|
|
26
26
|
valueFormatter: (t) => _(t, "0,0.00")
|
|
27
27
|
});
|
|
28
|
-
const a = Object.keys(
|
|
28
|
+
const a = Object.keys(d).filter((t) => Number(t)).map((t) => ({
|
|
29
29
|
label: e.account_types[t],
|
|
30
30
|
value: Number(t),
|
|
31
|
-
icon: /* @__PURE__ */
|
|
31
|
+
icon: /* @__PURE__ */ u(p, { name: v[t] })
|
|
32
32
|
}));
|
|
33
33
|
r.push({
|
|
34
34
|
label: e.account_type,
|
|
@@ -39,11 +39,11 @@ const w = (l, e) => {
|
|
|
39
39
|
valueFormatter: (t) => a.find((n) => n.value === t)?.label
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
if (l.account_type ===
|
|
42
|
+
if (l.account_type === d.PROPERTY) {
|
|
43
43
|
const a = Object.keys(h).filter((t) => Number(t)).map((t) => ({
|
|
44
44
|
label: e.property_types[t],
|
|
45
45
|
value: Number(t),
|
|
46
|
-
icon: /* @__PURE__ */
|
|
46
|
+
icon: /* @__PURE__ */ u(p, { name: F[t] })
|
|
47
47
|
}));
|
|
48
48
|
r.push({
|
|
49
49
|
label: e.property_type,
|
|
@@ -54,7 +54,7 @@ const w = (l, e) => {
|
|
|
54
54
|
valueFormatter: (t) => a.find((n) => n.value === t)?.label
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
-
if (
|
|
57
|
+
if (D(l)) {
|
|
58
58
|
let a = e.interest_rate, t = "interest_rate";
|
|
59
59
|
l.is_manual || (typeof l.apr == "number" && (a = e.apr, t = "apr"), typeof l.apy == "number" && (a = e.apy, t = "apy")), r.push({
|
|
60
60
|
event: "account_details_click_interest_rate",
|
|
@@ -62,8 +62,8 @@ const w = (l, e) => {
|
|
|
62
62
|
name: t,
|
|
63
63
|
placeholder: i(e.enter_value, a),
|
|
64
64
|
type: m.Input,
|
|
65
|
-
validation: (n) =>
|
|
66
|
-
valueFormatter: (n) =>
|
|
65
|
+
validation: (n) => b(n) ? "" : e.error_amount_is_invalid,
|
|
66
|
+
valueFormatter: (n) => b(n) ? N(n / 100) : n
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
return A(l) && (r.push({
|
|
@@ -78,7 +78,7 @@ const w = (l, e) => {
|
|
|
78
78
|
type: m.Date,
|
|
79
79
|
valueFormatter: (a) => {
|
|
80
80
|
const t = typeof a == "number" ? new Date(a * 1e3) : a;
|
|
81
|
-
return
|
|
81
|
+
return o(t, f.MED_MONTH_SHORT_DAY_FULL_YEAR);
|
|
82
82
|
}
|
|
83
83
|
}) : r.push({
|
|
84
84
|
label: e.day_payment_due,
|
|
@@ -89,13 +89,13 @@ const w = (l, e) => {
|
|
|
89
89
|
e.day_of_every_month,
|
|
90
90
|
S(a <= 31 ? a : new Date(a).getDate())
|
|
91
91
|
)
|
|
92
|
-
})),
|
|
92
|
+
})), g(l) && r.push({
|
|
93
93
|
label: e.credit_limit,
|
|
94
94
|
name: "credit_limit",
|
|
95
95
|
placeholder: i(e.enter_value, e.credit_limit),
|
|
96
96
|
type: m.Currency,
|
|
97
97
|
valueFormatter: (a) => _(a, "0,0.00")
|
|
98
|
-
}),
|
|
98
|
+
}), O(l) && r.push({
|
|
99
99
|
label: e.original_balance,
|
|
100
100
|
minAmount: 1,
|
|
101
101
|
name: "original_balance",
|
|
@@ -103,21 +103,21 @@ const w = (l, e) => {
|
|
|
103
103
|
type: m.Currency,
|
|
104
104
|
valueFormatter: (a) => _(a, "0,0.00")
|
|
105
105
|
}), r;
|
|
106
|
-
},
|
|
107
|
-
let r = "", a = null, t = null, n = null,
|
|
106
|
+
}, C = (l, e) => {
|
|
107
|
+
let r = "", a = null, t = null, n = null, s = !1;
|
|
108
108
|
switch (l.account_type) {
|
|
109
109
|
case 1:
|
|
110
110
|
case 2: {
|
|
111
|
-
l.available_balance ? (r = e.available_balance, a = l.available_balance, t = l.available_balance ? e.current_balance : null, n = _(l.balance, "0,0.00"),
|
|
111
|
+
l.available_balance ? (r = e.available_balance, a = l.available_balance, t = l.available_balance ? e.current_balance : null, n = _(l.balance, "0,0.00"), s = !0) : (r = e.current_balance, a = l.balance);
|
|
112
112
|
break;
|
|
113
113
|
}
|
|
114
114
|
default:
|
|
115
115
|
if (r = e.current_balance, a = l.balance, l.minimum_payment && l.payment_due_at) {
|
|
116
|
-
const
|
|
117
|
-
t = /* @__PURE__ */
|
|
116
|
+
const c = typeof l.payment_due_at == "number" ? new Date(l.payment_due_at * 1e3) : l.payment_due_at;
|
|
117
|
+
t = /* @__PURE__ */ u(y, { component: "strong", variant: "XSmall", children: i(
|
|
118
118
|
e.payment_due_on,
|
|
119
119
|
_(l.minimum_payment, "0,0.00"),
|
|
120
|
-
|
|
120
|
+
o(c, f.FULL_MONTH_DAY)
|
|
121
121
|
) });
|
|
122
122
|
} else l.credit_limit && (t = e.available_credit, n = _(l.credit_limit - (l?.balance ?? 0), "0,0.00"));
|
|
123
123
|
}
|
|
@@ -126,10 +126,14 @@ const w = (l, e) => {
|
|
|
126
126
|
firstValue: a,
|
|
127
127
|
secondSubtitle: t,
|
|
128
128
|
secondValue: n,
|
|
129
|
-
hasAvailableBalance:
|
|
129
|
+
hasAvailableBalance: s
|
|
130
130
|
};
|
|
131
|
-
}
|
|
131
|
+
}, x = (l, e) => l.reduce((a, t) => {
|
|
132
|
+
const s = C(t, e).firstValue || 0;
|
|
133
|
+
return a + s;
|
|
134
|
+
}, 0);
|
|
132
135
|
export {
|
|
133
|
-
|
|
134
|
-
|
|
136
|
+
x as a,
|
|
137
|
+
w as b,
|
|
138
|
+
C as g
|
|
135
139
|
};
|
|
@@ -10,7 +10,7 @@ import C from "@mui/material/styles/useTheme";
|
|
|
10
10
|
import { InstitutionLogo as B, Text as o } from "@mxenabled/mxui";
|
|
11
11
|
import { Error as L } from "@mxenabled/mx-icons";
|
|
12
12
|
import { I as A } from "./IconBacking-B9oC6uL2.mjs";
|
|
13
|
-
import { g as j } from "./AccountFields-
|
|
13
|
+
import { g as j } from "./AccountFields-5i77eFJ6.mjs";
|
|
14
14
|
import { d } from "./ConnectDrawer-D86nRDxQ.mjs";
|
|
15
15
|
import { u as T } from "./hooks-DlI63qSB.mjs";
|
|
16
16
|
import { f as X } from "./NumberFormatting-CtWHhyBX.mjs";
|
|
@@ -4,29 +4,30 @@ import { observer as M } from "mobx-react-lite";
|
|
|
4
4
|
import B from "@mui/material/Box";
|
|
5
5
|
import _ from "@mui/material/Divider";
|
|
6
6
|
import E from "@mui/material/List";
|
|
7
|
-
import
|
|
7
|
+
import O from "@mui/material/ListSubheader";
|
|
8
8
|
import x from "@mui/system/Stack";
|
|
9
9
|
import { Text as v } from "@mxenabled/mxui";
|
|
10
|
-
import { A as G } from "../AccountDetailsContent-
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as K, A as z } from "../AccountDetailsHeader-
|
|
13
|
-
import { A as W } from "../AccountListItem-
|
|
14
|
-
import {
|
|
10
|
+
import { A as G } from "../AccountDetailsContent-CHtXOmHC.mjs";
|
|
11
|
+
import { u as I1 } from "../AccountDetailsContent-CHtXOmHC.mjs";
|
|
12
|
+
import { u as K, A as z } from "../AccountDetailsHeader-Dwk01nsY.mjs";
|
|
13
|
+
import { A as W } from "../AccountListItem-BiST9IgK.mjs";
|
|
14
|
+
import { a as P } from "../AccountFields-5i77eFJ6.mjs";
|
|
15
|
+
import { g as D1, b as U1 } from "../AccountFields-5i77eFJ6.mjs";
|
|
16
|
+
import { u as g, a as y, c as T, f as N, m as Y } from "../hooks-DlI63qSB.mjs";
|
|
15
17
|
import { f as I } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
16
|
-
import { D as
|
|
17
|
-
import { A, W as
|
|
18
|
-
import { C as
|
|
19
|
-
import { u as
|
|
18
|
+
import { D as q } from "../Drawer-kEE73B87.mjs";
|
|
19
|
+
import { A, W as J } from "../WidgetContainer-Bn6JPnY3.mjs";
|
|
20
|
+
import { C as Q } from "../ConnectionsDrawer-BkNr5Up0.mjs";
|
|
21
|
+
import { u as X } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
20
22
|
import { L as R } from "../Loader-DUaFpDGv.mjs";
|
|
21
23
|
import { j as D } from "../ConnectDrawer-D86nRDxQ.mjs";
|
|
22
|
-
import { F as
|
|
23
|
-
import
|
|
24
|
+
import { F as $1, M as G1 } from "../ConnectDrawer-D86nRDxQ.mjs";
|
|
25
|
+
import e1 from "@mui/material/ListItem";
|
|
24
26
|
import { M as U } from "../MiniWidgetContainer-BzW7V_04.mjs";
|
|
25
|
-
import
|
|
26
|
-
import {
|
|
27
|
-
|
|
28
|
-
const
|
|
29
|
-
const [c, L] = d.useState(""), { accounts: o } = g(), { selectedAccounts: l } = y(), { setSelectedAccount: u, setSelectedMember: r } = K(), { members: s } = O(), { onEvent: p } = N(), a = [...new Set(l.map((t) => t.account_type))], H = l.find((t) => c === t.guid), h = d.useMemo(
|
|
27
|
+
import t1 from "@mui/material/Stack";
|
|
28
|
+
import { A as z1, a as P1 } from "../AccountStore-DiGbJBUT.mjs";
|
|
29
|
+
const l1 = () => {
|
|
30
|
+
const [c, L] = d.useState(""), { accounts: C } = g(), { selectedAccounts: l } = y(), { setSelectedAccount: u, setSelectedMember: r } = K(), { members: s } = T(), { onEvent: p } = N(), a = [...new Set(l.map((t) => t.account_type))], H = l.find((t) => c === t.guid), h = d.useMemo(
|
|
30
31
|
() => l.filter((t) => t.is_hidden),
|
|
31
32
|
[l]
|
|
32
33
|
), V = d.useMemo(
|
|
@@ -35,10 +36,7 @@ const t1 = () => {
|
|
|
35
36
|
), S = h.reduce(
|
|
36
37
|
(t, i) => (i.available_balance || i.balance || 0) + t,
|
|
37
38
|
0
|
|
38
|
-
), b = V
|
|
39
|
-
(t, i) => (i.available_balance || i.balance || 0) + t,
|
|
40
|
-
0
|
|
41
|
-
);
|
|
39
|
+
), b = P(V, C);
|
|
42
40
|
d.useEffect(() => {
|
|
43
41
|
if (H) {
|
|
44
42
|
u(H);
|
|
@@ -52,19 +50,19 @@ const t1 = () => {
|
|
|
52
50
|
account_type: t.account_type
|
|
53
51
|
});
|
|
54
52
|
}, m = (t) => {
|
|
55
|
-
const i = t === "hidden" ? h : V, k = t === "hidden" ? S : b,
|
|
53
|
+
const i = t === "hidden" ? h : V, k = t === "hidden" ? S : b, o = t === "hidden" ? C.account_hidden : C.account_closed;
|
|
56
54
|
return /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(
|
|
57
55
|
E,
|
|
58
56
|
{
|
|
59
|
-
"aria-label":
|
|
60
|
-
subheader: /* @__PURE__ */ e(
|
|
57
|
+
"aria-label": o,
|
|
58
|
+
subheader: /* @__PURE__ */ e(O, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ n(
|
|
61
59
|
x,
|
|
62
60
|
{
|
|
63
61
|
component: "span",
|
|
64
62
|
direction: "row",
|
|
65
63
|
sx: { justifyContent: "space-between", color: "grey.700" },
|
|
66
64
|
children: [
|
|
67
|
-
/* @__PURE__ */ e(v, { bold: !0, variant: "Body", children:
|
|
65
|
+
/* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: o }),
|
|
68
66
|
/* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: I(k, "0,0.00") })
|
|
69
67
|
]
|
|
70
68
|
}
|
|
@@ -105,35 +103,35 @@ const t1 = () => {
|
|
|
105
103
|
return /* @__PURE__ */ n(B, { sx: { pt: 24 }, children: [
|
|
106
104
|
a.map((t) => {
|
|
107
105
|
const i = l.filter(
|
|
108
|
-
(
|
|
106
|
+
(o) => o.account_type === t && !o.is_closed && !o.is_hidden
|
|
109
107
|
), k = i.reduce(
|
|
110
|
-
(
|
|
108
|
+
(o, f) => (f.balance || 0) + o,
|
|
111
109
|
0
|
|
112
110
|
);
|
|
113
111
|
return i.length === 0 ? null : /* @__PURE__ */ e(
|
|
114
112
|
E,
|
|
115
113
|
{
|
|
116
|
-
"aria-label":
|
|
117
|
-
subheader: /* @__PURE__ */ e(
|
|
114
|
+
"aria-label": C.account_type_accounts[i[0]?.account_type],
|
|
115
|
+
subheader: /* @__PURE__ */ e(O, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ n(
|
|
118
116
|
x,
|
|
119
117
|
{
|
|
120
118
|
component: "span",
|
|
121
119
|
direction: "row",
|
|
122
120
|
sx: { display: "flex", justifyContent: "space-between" },
|
|
123
121
|
children: [
|
|
124
|
-
/* @__PURE__ */ e(v, { bold: !0, variant: "Body", children:
|
|
122
|
+
/* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: C.account_types[t] }),
|
|
125
123
|
/* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: I(k, "0,0.00") })
|
|
126
124
|
]
|
|
127
125
|
}
|
|
128
126
|
) }),
|
|
129
|
-
children: /* @__PURE__ */ e(x, { children: i.map((
|
|
130
|
-
const f = l.indexOf(
|
|
127
|
+
children: /* @__PURE__ */ e(x, { children: i.map((o) => {
|
|
128
|
+
const f = l.indexOf(o) === l.length - 1, Z = i.indexOf(o) === i.length - 1;
|
|
131
129
|
return /* @__PURE__ */ n(d.Fragment, { children: [
|
|
132
130
|
/* @__PURE__ */ e(
|
|
133
131
|
W,
|
|
134
132
|
{
|
|
135
|
-
account:
|
|
136
|
-
onRowClick: () => w(
|
|
133
|
+
account: o,
|
|
134
|
+
onRowClick: () => w(o),
|
|
137
135
|
shouldShowConnectionStatus: !0
|
|
138
136
|
}
|
|
139
137
|
),
|
|
@@ -146,7 +144,7 @@ const t1 = () => {
|
|
|
146
144
|
}
|
|
147
145
|
}
|
|
148
146
|
)
|
|
149
|
-
] },
|
|
147
|
+
] }, o.guid);
|
|
150
148
|
}) })
|
|
151
149
|
},
|
|
152
150
|
t
|
|
@@ -155,12 +153,12 @@ const t1 = () => {
|
|
|
155
153
|
h.length > 0 && m("hidden"),
|
|
156
154
|
V.length > 0 && m("closed"),
|
|
157
155
|
/* @__PURE__ */ n(
|
|
158
|
-
|
|
156
|
+
q,
|
|
159
157
|
{
|
|
160
|
-
ariaLabelClose:
|
|
158
|
+
ariaLabelClose: C.close_account_details_aria,
|
|
161
159
|
isOpen: !!c,
|
|
162
160
|
onClose: () => L(""),
|
|
163
|
-
title:
|
|
161
|
+
title: C.account_details,
|
|
164
162
|
children: [
|
|
165
163
|
/* @__PURE__ */ e(z, {}),
|
|
166
164
|
/* @__PURE__ */ e(G, {})
|
|
@@ -168,8 +166,8 @@ const t1 = () => {
|
|
|
168
166
|
}
|
|
169
167
|
)
|
|
170
168
|
] });
|
|
171
|
-
},
|
|
172
|
-
const [
|
|
169
|
+
}, i1 = M(l1), n1 = ({ onBackClick: c, sx: L = {} }) => {
|
|
170
|
+
const [C, l] = d.useState(!1), [u, r] = d.useState(!1), { config: s } = Y(), { accounts: p } = T(), { accounts: a, connect: H } = g(), { isCopyLoaded: h, isInitialized: V, setSelectedAccounts: S, selectedAccountGuids: b } = y(), { isDesktop: w } = X(), { onEvent: m } = N();
|
|
173
171
|
d.useEffect(() => {
|
|
174
172
|
S(p);
|
|
175
173
|
}, [p]);
|
|
@@ -179,7 +177,7 @@ const t1 = () => {
|
|
|
179
177
|
r(!0), m(A.ACCOUNTS_CLICK_CONNECT);
|
|
180
178
|
};
|
|
181
179
|
return h ? /* @__PURE__ */ e(
|
|
182
|
-
|
|
180
|
+
J,
|
|
183
181
|
{
|
|
184
182
|
accountOptions: p,
|
|
185
183
|
actions: s.show_connections_widget_in_master ? [
|
|
@@ -197,18 +195,18 @@ const t1 = () => {
|
|
|
197
195
|
children: V ? /* @__PURE__ */ n($, { children: [
|
|
198
196
|
/* @__PURE__ */ n(B, { sx: { px: w ? 24 : 12 }, children: [
|
|
199
197
|
b.length < 1 && /* @__PURE__ */ e(v, { display: "flex", justifyContent: "center", my: 24, children: a.no_accounts }),
|
|
200
|
-
/* @__PURE__ */ e(
|
|
198
|
+
/* @__PURE__ */ e(i1, {})
|
|
201
199
|
] }),
|
|
202
200
|
/* @__PURE__ */ e(
|
|
203
201
|
D,
|
|
204
202
|
{
|
|
205
203
|
onClose: () => l(!1),
|
|
206
|
-
showConnectWidget:
|
|
204
|
+
showConnectWidget: C,
|
|
207
205
|
title: H.mini_title
|
|
208
206
|
}
|
|
209
207
|
),
|
|
210
208
|
/* @__PURE__ */ e(
|
|
211
|
-
|
|
209
|
+
Q,
|
|
212
210
|
{
|
|
213
211
|
onClose: () => r(!1),
|
|
214
212
|
showConnectionsWidget: u,
|
|
@@ -218,11 +216,11 @@ const t1 = () => {
|
|
|
218
216
|
] }) : /* @__PURE__ */ e(R, {})
|
|
219
217
|
}
|
|
220
218
|
) : /* @__PURE__ */ e(R, {});
|
|
221
|
-
},
|
|
222
|
-
const { visibleAccounts:
|
|
219
|
+
}, B1 = M(n1), C1 = ({ onPrimaryCtaClick: c, sx: L }) => {
|
|
220
|
+
const { visibleAccounts: C } = T(), { accounts: l } = g(), { isCopyLoaded: u, isInitialized: r, selectedAccounts: s, setSelectedAccounts: p } = y();
|
|
223
221
|
return d.useEffect(() => {
|
|
224
|
-
p(
|
|
225
|
-
}, [
|
|
222
|
+
p(C);
|
|
223
|
+
}, [C]), u ? /* @__PURE__ */ e(
|
|
226
224
|
U,
|
|
227
225
|
{
|
|
228
226
|
className: "mx-exp-accounts-miniwidget",
|
|
@@ -231,7 +229,7 @@ const t1 = () => {
|
|
|
231
229
|
sx: L,
|
|
232
230
|
title: l.mini_title,
|
|
233
231
|
children: r ? /* @__PURE__ */ n(E, { children: [
|
|
234
|
-
s.length === 0 && /* @__PURE__ */ e(
|
|
232
|
+
s.length === 0 && /* @__PURE__ */ e(e1, { sx: { justifyContent: "center" }, children: l.no_accounts }),
|
|
235
233
|
s.map((a, H) => {
|
|
236
234
|
const h = s.indexOf(a) === s.length - 1;
|
|
237
235
|
return /* @__PURE__ */ n(d.Fragment, { children: [
|
|
@@ -249,7 +247,7 @@ const t1 = () => {
|
|
|
249
247
|
] }) : /* @__PURE__ */ e(R, {})
|
|
250
248
|
}
|
|
251
249
|
) : /* @__PURE__ */ e(R, {});
|
|
252
|
-
},
|
|
250
|
+
}, E1 = M(C1), o1 = () => /* @__PURE__ */ n(
|
|
253
251
|
"svg",
|
|
254
252
|
{
|
|
255
253
|
fill: "none",
|
|
@@ -688,10 +686,10 @@ const t1 = () => {
|
|
|
688
686
|
)
|
|
689
687
|
]
|
|
690
688
|
}
|
|
691
|
-
),
|
|
689
|
+
), d1 = () => {
|
|
692
690
|
const { connect: c } = g();
|
|
693
|
-
return /* @__PURE__ */ n(
|
|
694
|
-
/* @__PURE__ */ e(
|
|
691
|
+
return /* @__PURE__ */ n(t1, { alignItems: "center", direction: "column", m: 24, children: [
|
|
692
|
+
/* @__PURE__ */ e(o1, {}),
|
|
695
693
|
/* @__PURE__ */ e(
|
|
696
694
|
v,
|
|
697
695
|
{
|
|
@@ -705,15 +703,15 @@ const t1 = () => {
|
|
|
705
703
|
}
|
|
706
704
|
)
|
|
707
705
|
] });
|
|
708
|
-
},
|
|
706
|
+
}, c1 = M(d1), s1 = ({
|
|
709
707
|
onPrimaryCtaClick: c = () => {
|
|
710
708
|
},
|
|
711
709
|
sx: L
|
|
712
710
|
}) => {
|
|
713
|
-
const { isCopyLoaded:
|
|
711
|
+
const { isCopyLoaded: C } = y(), { connect: l } = g(), [u, r] = d.useState(!1), s = () => {
|
|
714
712
|
r(!0), c();
|
|
715
713
|
};
|
|
716
|
-
return
|
|
714
|
+
return C ? /* @__PURE__ */ n(
|
|
717
715
|
U,
|
|
718
716
|
{
|
|
719
717
|
className: "mx-exp-connect-miniwidget",
|
|
@@ -722,7 +720,7 @@ const t1 = () => {
|
|
|
722
720
|
sx: L,
|
|
723
721
|
title: l.mini_title,
|
|
724
722
|
children: [
|
|
725
|
-
/* @__PURE__ */ e(
|
|
723
|
+
/* @__PURE__ */ e(c1, {}),
|
|
726
724
|
u && /* @__PURE__ */ e(
|
|
727
725
|
D,
|
|
728
726
|
{
|
|
@@ -734,19 +732,19 @@ const t1 = () => {
|
|
|
734
732
|
]
|
|
735
733
|
}
|
|
736
734
|
) : /* @__PURE__ */ e(R, {});
|
|
737
|
-
},
|
|
735
|
+
}, W1 = M(s1);
|
|
738
736
|
export {
|
|
739
|
-
|
|
737
|
+
z1 as AccountApi,
|
|
740
738
|
G as AccountDetailsContent,
|
|
741
739
|
z as AccountDetailsHeader,
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
740
|
+
P1 as AccountStore,
|
|
741
|
+
E1 as AccountsMiniWidget,
|
|
742
|
+
B1 as AccountsWidget,
|
|
743
|
+
W1 as ConnectMiniWidget,
|
|
744
|
+
$1 as FieldType,
|
|
745
|
+
G1 as MemberConnectionStatus,
|
|
746
|
+
D1 as getAccountBalanceDetails,
|
|
747
|
+
U1 as getAccountDetailFields,
|
|
750
748
|
K as useAccountUiStore,
|
|
751
|
-
|
|
749
|
+
I1 as useGetMergeableAccounts
|
|
752
750
|
};
|
|
@@ -23,4 +23,5 @@ export declare const getAccountBalanceDetails: (account: Account, copy: Accounts
|
|
|
23
23
|
secondValue: string | null;
|
|
24
24
|
hasAvailableBalance: boolean;
|
|
25
25
|
};
|
|
26
|
+
export declare const getClosedAccountBalanceTotal: (accounts: Account[], copy: AccountsCopy) => number;
|
|
26
27
|
export {};
|
|
@@ -23,7 +23,7 @@ import Ce from "@mui/material/Tab";
|
|
|
23
23
|
import { getUnixTime as U } from "date-fns/getUnixTime";
|
|
24
24
|
import ee from "@mui/material/List";
|
|
25
25
|
import te from "@mui/material/ListItem";
|
|
26
|
-
import { A as Je } from "../AccountListItem-
|
|
26
|
+
import { A as Je } from "../AccountListItem-BiST9IgK.mjs";
|
|
27
27
|
import { f as Q, D as V } from "../Dialog-CWW597AF.mjs";
|
|
28
28
|
import Ze from "@mui/material/ListSubheader";
|
|
29
29
|
import { f as Z } from "../NumberFormatting-CtWHhyBX.mjs";
|
package/dist/debts/index.es.js
CHANGED
|
@@ -16,7 +16,7 @@ import { G as Me, x as q, u as C, k as z, f as k, c as Z, a as Pe } from "../hoo
|
|
|
16
16
|
import { u as X } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
17
17
|
import { D as te } from "../Drawer-kEE73B87.mjs";
|
|
18
18
|
import { b as A } from "../Localization-2MODESHW.mjs";
|
|
19
|
-
import { A as ke, u as Fe } from "../AccountDetailsHeader-
|
|
19
|
+
import { A as ke, u as Fe } from "../AccountDetailsHeader-Dwk01nsY.mjs";
|
|
20
20
|
import Ne from "@mui/material/Card";
|
|
21
21
|
import Re from "@mui/material/CardContent";
|
|
22
22
|
import Le from "@mui/material/CardHeader";
|
package/dist/goals/index.es.js
CHANGED
|
@@ -38,8 +38,8 @@ import nt from "@mui/material/Collapse";
|
|
|
38
38
|
import ot from "@mui/material/ListItemIcon";
|
|
39
39
|
import at from "@mui/material/Checkbox";
|
|
40
40
|
import { A as ye } from "../ConnectDrawer-D86nRDxQ.mjs";
|
|
41
|
-
import { u as rt, A as it } from "../AccountDetailsHeader-
|
|
42
|
-
import { A as st } from "../AccountDetailsContent-
|
|
41
|
+
import { u as rt, A as it } from "../AccountDetailsHeader-Dwk01nsY.mjs";
|
|
42
|
+
import { A as st } from "../AccountDetailsContent-CHtXOmHC.mjs";
|
|
43
43
|
import we from "@mui/material/TextField";
|
|
44
44
|
import { M as lt, I as ct, O as dt } from "../OriginalBalanceAction-B--pIAF0.mjs";
|
|
45
45
|
import { getUnixTime as mt } from "date-fns/getUnixTime";
|