@mx-cartographer/experiences 7.3.0-alpha.sms1 → 8.0.0-alpha.bb2
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.
|
@@ -1,93 +1,94 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import d from "react";
|
|
3
|
-
import { observer as
|
|
4
|
-
import B from "@mui/material/Box";
|
|
5
|
-
import A from "@mui/material/Divider";
|
|
6
|
-
import E from "@mui/material/List";
|
|
7
|
-
import O from "@mui/material/ListSubheader";
|
|
8
|
-
import _ from "@mui/system/Stack";
|
|
3
|
+
import { observer as g } from "mobx-react-lite";
|
|
9
4
|
import { Text as v } from "@mxenabled/mxui";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import { u as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { u as
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import {
|
|
29
|
-
|
|
30
|
-
|
|
5
|
+
import O from "@mui/material/Box";
|
|
6
|
+
import y from "@mui/material/Divider";
|
|
7
|
+
import W from "@mui/material/List";
|
|
8
|
+
import I from "@mui/material/ListSubheader";
|
|
9
|
+
import A from "@mui/system/Stack";
|
|
10
|
+
import { A as z } from "../AccountDetailsContent-CAM9y39M.mjs";
|
|
11
|
+
import { u as U1 } from "../AccountDetailsContent-CAM9y39M.mjs";
|
|
12
|
+
import { u as P, A as Y } from "../AccountDetailsHeader-JtSX6Uf9.mjs";
|
|
13
|
+
import { A as D } from "../AccountListItem-JFMZROh7.mjs";
|
|
14
|
+
import { a as q } from "../AccountFields-C9FlatNb.mjs";
|
|
15
|
+
import { g as j1, b as G1 } from "../AccountFields-C9FlatNb.mjs";
|
|
16
|
+
import { u as R, b as w, d as k, g as U, a as J } from "../hooks-D6XlXHf4.mjs";
|
|
17
|
+
import { f as N } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
18
|
+
import { D as Q } from "../Drawer-kEE73B87.mjs";
|
|
19
|
+
import { A as S, W as X } from "../WidgetContainer-BHWANqT4.mjs";
|
|
20
|
+
import T from "@mui/material/Stack";
|
|
21
|
+
import _ from "@mui/material/Skeleton";
|
|
22
|
+
import { u as $ } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
23
|
+
import { C as e1 } from "../ConnectionsDrawer-ByGQE7D5.mjs";
|
|
24
|
+
import { L as b } from "../Loader-DUaFpDGv.mjs";
|
|
25
|
+
import { l as j, m as t1 } from "../ConnectDrawer-BQNs-hjk.mjs";
|
|
26
|
+
import { F as z1, f as P1 } from "../ConnectDrawer-BQNs-hjk.mjs";
|
|
27
|
+
import l1 from "@mui/material/ListItem";
|
|
28
|
+
import { M as G } from "../MiniWidgetContainer-D0gfmbaF.mjs";
|
|
29
|
+
import { A as q1, a as J1 } from "../AccountStore-BgNOyMdp.mjs";
|
|
30
|
+
const n1 = () => {
|
|
31
|
+
const [c, a] = d.useState(""), { accounts: n } = R(), { selectedAccounts: l } = w(), { setSelectedAccount: H, setSelectedMember: L } = P(), { members: u } = k(), { onEvent: p } = U(), m = [...new Set(l.map((t) => t.account_type))], r = l.find((t) => c === t.guid), s = d.useMemo(
|
|
31
32
|
() => l.filter((t) => t.is_hidden),
|
|
32
33
|
[l]
|
|
33
|
-
),
|
|
34
|
+
), h = d.useMemo(
|
|
34
35
|
() => l.filter((t) => t.is_closed),
|
|
35
36
|
[l]
|
|
36
|
-
),
|
|
37
|
-
(t,
|
|
37
|
+
), M = s.reduce(
|
|
38
|
+
(t, o) => (o.available_balance || o.balance || 0) + t,
|
|
38
39
|
0
|
|
39
|
-
),
|
|
40
|
+
), F = q(h, n);
|
|
40
41
|
d.useEffect(() => {
|
|
41
|
-
if (
|
|
42
|
-
|
|
43
|
-
const t =
|
|
44
|
-
t &&
|
|
42
|
+
if (r) {
|
|
43
|
+
H(r);
|
|
44
|
+
const t = u.find((o) => o.guid === r?.member_guid) || {};
|
|
45
|
+
t && L(t);
|
|
45
46
|
}
|
|
46
|
-
}, [
|
|
47
|
-
const
|
|
48
|
-
|
|
47
|
+
}, [r, c]);
|
|
48
|
+
const V = (t) => {
|
|
49
|
+
a(t.guid), p(S.ACCOUNTS_CLICK_ACCOUNT, {
|
|
49
50
|
account_guid: t.guid,
|
|
50
51
|
account_type: t.account_type
|
|
51
52
|
});
|
|
52
|
-
},
|
|
53
|
-
const
|
|
54
|
-
return /* @__PURE__ */ e(
|
|
55
|
-
|
|
53
|
+
}, Z = (t) => {
|
|
54
|
+
const o = t === "hidden" ? s : h, B = t === "hidden" ? M : F, C = t === "hidden" ? n.account_hidden : n.account_closed;
|
|
55
|
+
return /* @__PURE__ */ e(O, { children: /* @__PURE__ */ e(
|
|
56
|
+
W,
|
|
56
57
|
{
|
|
57
|
-
"aria-label":
|
|
58
|
-
subheader: /* @__PURE__ */ e(
|
|
59
|
-
|
|
58
|
+
"aria-label": C,
|
|
59
|
+
subheader: /* @__PURE__ */ e(I, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ i(
|
|
60
|
+
A,
|
|
60
61
|
{
|
|
61
62
|
component: "span",
|
|
62
63
|
direction: "row",
|
|
63
64
|
sx: { justifyContent: "space-between", color: "grey.700" },
|
|
64
65
|
children: [
|
|
65
|
-
/* @__PURE__ */ e(v, { bold: !0, variant: "Body", children:
|
|
66
|
-
/* @__PURE__ */ e(v, { bold: !0, variant: "Body", children:
|
|
66
|
+
/* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: C }),
|
|
67
|
+
/* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: N(B, "0,0.00") })
|
|
67
68
|
]
|
|
68
69
|
}
|
|
69
70
|
) }),
|
|
70
|
-
children: /* @__PURE__ */ e(
|
|
71
|
-
const
|
|
72
|
-
return /* @__PURE__ */
|
|
71
|
+
children: /* @__PURE__ */ e(A, { children: o.map((f, x, K) => {
|
|
72
|
+
const E = x === K.length - 1;
|
|
73
|
+
return /* @__PURE__ */ i(d.Fragment, { children: [
|
|
73
74
|
/* @__PURE__ */ e(
|
|
74
|
-
|
|
75
|
+
D,
|
|
75
76
|
{
|
|
76
|
-
account:
|
|
77
|
-
onRowClick: () =>
|
|
77
|
+
account: f,
|
|
78
|
+
onRowClick: () => V(f),
|
|
78
79
|
shouldShowConnectionStatus: !0
|
|
79
80
|
}
|
|
80
81
|
),
|
|
81
82
|
t === "hidden" ? /* @__PURE__ */ e(
|
|
82
|
-
|
|
83
|
+
y,
|
|
83
84
|
{
|
|
84
85
|
sx: {
|
|
85
|
-
mb:
|
|
86
|
-
ml:
|
|
86
|
+
mb: E ? 24 : 4,
|
|
87
|
+
ml: E ? 24 : 68
|
|
87
88
|
}
|
|
88
89
|
}
|
|
89
|
-
) : !
|
|
90
|
-
|
|
90
|
+
) : !E && /* @__PURE__ */ e(
|
|
91
|
+
y,
|
|
91
92
|
{
|
|
92
93
|
sx: {
|
|
93
94
|
mb: 4,
|
|
@@ -95,48 +96,48 @@ const i1 = () => {
|
|
|
95
96
|
}
|
|
96
97
|
}
|
|
97
98
|
)
|
|
98
|
-
] },
|
|
99
|
+
] }, f.guid);
|
|
99
100
|
}) })
|
|
100
101
|
}
|
|
101
102
|
) });
|
|
102
103
|
};
|
|
103
|
-
return /* @__PURE__ */
|
|
104
|
-
|
|
105
|
-
const
|
|
106
|
-
(
|
|
107
|
-
),
|
|
108
|
-
(
|
|
104
|
+
return /* @__PURE__ */ i(O, { sx: { pt: 24 }, children: [
|
|
105
|
+
m.map((t) => {
|
|
106
|
+
const o = l.filter(
|
|
107
|
+
(C) => C.account_type === t && !C.is_closed && !C.is_hidden
|
|
108
|
+
), B = o.reduce(
|
|
109
|
+
(C, f) => (f.balance || 0) + C,
|
|
109
110
|
0
|
|
110
111
|
);
|
|
111
|
-
return
|
|
112
|
-
|
|
112
|
+
return o.length === 0 ? null : /* @__PURE__ */ e(
|
|
113
|
+
W,
|
|
113
114
|
{
|
|
114
|
-
"aria-label":
|
|
115
|
-
subheader: /* @__PURE__ */ e(
|
|
116
|
-
|
|
115
|
+
"aria-label": n.account_type_accounts[o[0]?.account_type],
|
|
116
|
+
subheader: /* @__PURE__ */ e(I, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ i(
|
|
117
|
+
A,
|
|
117
118
|
{
|
|
118
119
|
component: "span",
|
|
119
120
|
direction: "row",
|
|
120
121
|
sx: { display: "flex", justifyContent: "space-between" },
|
|
121
122
|
children: [
|
|
122
|
-
/* @__PURE__ */ e(v, { bold: !0, variant: "Body", children:
|
|
123
|
-
/* @__PURE__ */ e(v, { bold: !0, variant: "Body", children:
|
|
123
|
+
/* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: n.account_types[t] }),
|
|
124
|
+
/* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: N(B, "0,0.00") })
|
|
124
125
|
]
|
|
125
126
|
}
|
|
126
127
|
) }),
|
|
127
|
-
children: /* @__PURE__ */ e(
|
|
128
|
-
const
|
|
129
|
-
return /* @__PURE__ */
|
|
128
|
+
children: /* @__PURE__ */ e(A, { children: o.map((C) => {
|
|
129
|
+
const f = l.indexOf(C) === l.length - 1, x = o.indexOf(C) === o.length - 1;
|
|
130
|
+
return /* @__PURE__ */ i(d.Fragment, { children: [
|
|
130
131
|
/* @__PURE__ */ e(
|
|
131
|
-
|
|
132
|
+
D,
|
|
132
133
|
{
|
|
133
|
-
account:
|
|
134
|
-
onRowClick: () =>
|
|
134
|
+
account: C,
|
|
135
|
+
onRowClick: () => V(C),
|
|
135
136
|
shouldShowConnectionStatus: !0
|
|
136
137
|
}
|
|
137
138
|
),
|
|
138
|
-
(!
|
|
139
|
-
|
|
139
|
+
(!f || h.length > 0 || s.length > 0) && /* @__PURE__ */ e(
|
|
140
|
+
y,
|
|
140
141
|
{
|
|
141
142
|
sx: {
|
|
142
143
|
mb: x ? 24 : 4,
|
|
@@ -144,115 +145,128 @@ const i1 = () => {
|
|
|
144
145
|
}
|
|
145
146
|
}
|
|
146
147
|
)
|
|
147
|
-
] },
|
|
148
|
+
] }, C.guid);
|
|
148
149
|
}) })
|
|
149
150
|
},
|
|
150
151
|
t
|
|
151
152
|
);
|
|
152
153
|
}),
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
/* @__PURE__ */
|
|
156
|
-
|
|
154
|
+
s.length > 0 && Z("hidden"),
|
|
155
|
+
h.length > 0 && Z("closed"),
|
|
156
|
+
/* @__PURE__ */ i(
|
|
157
|
+
Q,
|
|
157
158
|
{
|
|
158
|
-
ariaLabelClose:
|
|
159
|
+
ariaLabelClose: n.close_account_details_aria,
|
|
159
160
|
isOpen: !!c,
|
|
160
|
-
onClose: () =>
|
|
161
|
-
title:
|
|
161
|
+
onClose: () => a(""),
|
|
162
|
+
title: n.account_details,
|
|
162
163
|
children: [
|
|
163
|
-
/* @__PURE__ */ e(
|
|
164
|
-
/* @__PURE__ */ e(
|
|
164
|
+
/* @__PURE__ */ e(Y, {}),
|
|
165
|
+
/* @__PURE__ */ e(z, {})
|
|
165
166
|
]
|
|
166
167
|
}
|
|
167
168
|
)
|
|
168
169
|
] });
|
|
169
|
-
},
|
|
170
|
-
const
|
|
170
|
+
}, i1 = g(n1), o1 = g(() => {
|
|
171
|
+
const { accounts: c } = R(), { isDesktop: a } = $(), { selectedAccountGuids: n } = w(), { isAccountDataLoaded: l } = k();
|
|
172
|
+
return l ? /* @__PURE__ */ i(T, { sx: { px: a ? 24 : 12 }, children: [
|
|
173
|
+
n.length < 1 && /* @__PURE__ */ e(v, { display: "flex", justifyContent: "center", my: 24, children: c.no_accounts }),
|
|
174
|
+
/* @__PURE__ */ e(i1, {})
|
|
175
|
+
] }) : /* @__PURE__ */ i(T, { gap: 24, children: [
|
|
176
|
+
/* @__PURE__ */ e(_, { height: 150, sx: { m: 24 }, variant: "rounded" }),
|
|
177
|
+
/* @__PURE__ */ e(_, { height: 150, sx: { m: 24 }, variant: "rounded" }),
|
|
178
|
+
/* @__PURE__ */ e(_, { height: 150, sx: { m: 24 }, variant: "rounded" }),
|
|
179
|
+
/* @__PURE__ */ e(_, { height: 150, sx: { m: 24 }, variant: "rounded" })
|
|
180
|
+
] });
|
|
181
|
+
}), C1 = ({ onBackClick: c, sx: a = {} }) => {
|
|
182
|
+
const [n, l] = d.useState(!1), [H, L] = d.useState(!1), { config: u } = J(), { detailedAccounts: p, isAccountDataLoaded: m, loadAccountData: r } = k(), { accounts: s, connect: h } = R(), { isInitialized: M, setSelectedAccounts: F } = w(), { onEvent: V } = U();
|
|
171
183
|
d.useEffect(() => {
|
|
172
|
-
|
|
173
|
-
}, [
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
184
|
+
m || r().finally();
|
|
185
|
+
}, []), d.useEffect(() => {
|
|
186
|
+
F(p);
|
|
187
|
+
}, [p]);
|
|
188
|
+
const Z = () => {
|
|
189
|
+
l(!0), V?.(S.ACCOUNTS_CLICK_CONNECT);
|
|
190
|
+
}, t = () => {
|
|
191
|
+
L(!0), V?.(S.ACCOUNTS_CLICK_CONNECT);
|
|
178
192
|
};
|
|
179
|
-
|
|
180
|
-
|
|
193
|
+
if (!M)
|
|
194
|
+
return /* @__PURE__ */ e(b, {});
|
|
195
|
+
const o = u.show_connections_widget_in_master ? [
|
|
196
|
+
{ iconName: "add", label: s.add, onClick: Z },
|
|
181
197
|
{
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
198
|
+
iconName: "credit_card_gear",
|
|
199
|
+
label: s.manage,
|
|
200
|
+
onClick: t
|
|
201
|
+
}
|
|
202
|
+
] : [];
|
|
203
|
+
return /* @__PURE__ */ i(
|
|
204
|
+
X,
|
|
205
|
+
{
|
|
206
|
+
accountOptions: p,
|
|
207
|
+
actions: o,
|
|
208
|
+
onAccountsFilterClick: () => V?.(S.ACCOUNTS_CLICK_FILTER),
|
|
192
209
|
onBackClick: c,
|
|
193
|
-
sx:
|
|
210
|
+
sx: a,
|
|
194
211
|
title: s.title,
|
|
195
|
-
children:
|
|
196
|
-
/* @__PURE__ */
|
|
197
|
-
b.length < 1 && /* @__PURE__ */ e(v, { display: "flex", justifyContent: "center", my: 24, children: s.no_accounts }),
|
|
198
|
-
/* @__PURE__ */ e(n1, {})
|
|
199
|
-
] }),
|
|
212
|
+
children: [
|
|
213
|
+
/* @__PURE__ */ e(o1, {}),
|
|
200
214
|
/* @__PURE__ */ e(
|
|
201
|
-
|
|
215
|
+
j,
|
|
202
216
|
{
|
|
203
217
|
onClose: () => l(!1),
|
|
204
|
-
showConnectWidget:
|
|
205
|
-
title:
|
|
218
|
+
showConnectWidget: n,
|
|
219
|
+
title: h.mini_title
|
|
206
220
|
}
|
|
207
221
|
),
|
|
208
222
|
/* @__PURE__ */ e(
|
|
209
|
-
|
|
223
|
+
e1,
|
|
210
224
|
{
|
|
211
|
-
onClose: () =>
|
|
212
|
-
showConnectionsWidget:
|
|
225
|
+
onClose: () => L(!1),
|
|
226
|
+
showConnectionsWidget: H,
|
|
213
227
|
title: s.manage_connections
|
|
214
228
|
}
|
|
215
229
|
)
|
|
216
|
-
]
|
|
230
|
+
]
|
|
217
231
|
}
|
|
218
|
-
)
|
|
219
|
-
},
|
|
220
|
-
const { visibleAccounts:
|
|
232
|
+
);
|
|
233
|
+
}, D1 = g(C1), d1 = ({ onPrimaryCtaClick: c, sx: a }) => {
|
|
234
|
+
const { visibleAccounts: n } = k(), { accounts: l } = R(), { isCopyLoaded: H, isInitialized: L, selectedAccounts: u, setSelectedAccounts: p } = w(), { isDesktop: m } = $();
|
|
221
235
|
d.useEffect(() => {
|
|
222
|
-
|
|
223
|
-
}, [
|
|
224
|
-
const
|
|
225
|
-
() =>
|
|
226
|
-
[
|
|
236
|
+
p(n);
|
|
237
|
+
}, [n]);
|
|
238
|
+
const r = d.useMemo(
|
|
239
|
+
() => t1(u, m ? 5 : 3),
|
|
240
|
+
[u, m]
|
|
227
241
|
);
|
|
228
|
-
return
|
|
229
|
-
|
|
242
|
+
return H ? /* @__PURE__ */ e(
|
|
243
|
+
G,
|
|
230
244
|
{
|
|
231
245
|
className: "mx-exp-accounts-miniwidget",
|
|
232
246
|
onPrimaryCtaClick: c,
|
|
233
247
|
primaryCtaLabel: l.primary_cta,
|
|
234
|
-
sx:
|
|
248
|
+
sx: a,
|
|
235
249
|
title: l.mini_title,
|
|
236
|
-
children:
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
const
|
|
240
|
-
return /* @__PURE__ */
|
|
250
|
+
children: L ? /* @__PURE__ */ i(W, { children: [
|
|
251
|
+
u.length === 0 && /* @__PURE__ */ e(l1, { sx: { justifyContent: "center" }, children: l.no_accounts }),
|
|
252
|
+
r.map((s, h) => {
|
|
253
|
+
const M = r.indexOf(s) === r.length - 1;
|
|
254
|
+
return /* @__PURE__ */ i(d.Fragment, { children: [
|
|
241
255
|
/* @__PURE__ */ e(
|
|
242
|
-
|
|
256
|
+
D,
|
|
243
257
|
{
|
|
244
|
-
account:
|
|
258
|
+
account: s,
|
|
245
259
|
listItemProps: { sx: { px: 24 } },
|
|
246
260
|
shouldShowConnectionStatus: !0
|
|
247
261
|
}
|
|
248
262
|
),
|
|
249
|
-
!
|
|
250
|
-
] }, `account-item${
|
|
263
|
+
!M && /* @__PURE__ */ e(y, { "aria-hidden": "true", variant: "inset" })
|
|
264
|
+
] }, `account-item${h}`);
|
|
251
265
|
})
|
|
252
|
-
] }) : /* @__PURE__ */ e(
|
|
266
|
+
] }) : /* @__PURE__ */ e(b, {})
|
|
253
267
|
}
|
|
254
|
-
) : /* @__PURE__ */ e(
|
|
255
|
-
},
|
|
268
|
+
) : /* @__PURE__ */ e(b, {});
|
|
269
|
+
}, T1 = g(d1), c1 = () => /* @__PURE__ */ i(
|
|
256
270
|
"svg",
|
|
257
271
|
{
|
|
258
272
|
fill: "none",
|
|
@@ -260,7 +274,7 @@ const i1 = () => {
|
|
|
260
274
|
viewBox: "0 0 272 66",
|
|
261
275
|
xmlns: "http://www.w3.org/2000/svg",
|
|
262
276
|
children: [
|
|
263
|
-
/* @__PURE__ */
|
|
277
|
+
/* @__PURE__ */ i("g", { opacity: "0.35", children: [
|
|
264
278
|
/* @__PURE__ */ e("rect", { fill: "#CD1141", height: "40.3437", rx: "2.81371", width: "39.6876", x: "19.6553" }),
|
|
265
279
|
/* @__PURE__ */ e(
|
|
266
280
|
"path",
|
|
@@ -546,7 +560,7 @@ const i1 = () => {
|
|
|
546
560
|
children: /* @__PURE__ */ e("rect", { fill: "white", height: "47.5848", rx: "3.31025", width: "46.8064", x: "113.168", y: "18.1035" })
|
|
547
561
|
}
|
|
548
562
|
),
|
|
549
|
-
/* @__PURE__ */
|
|
563
|
+
/* @__PURE__ */ i("g", { mask: "url(#mask1_6197_80303)", children: [
|
|
550
564
|
/* @__PURE__ */ e(
|
|
551
565
|
"mask",
|
|
552
566
|
{
|
|
@@ -691,10 +705,10 @@ const i1 = () => {
|
|
|
691
705
|
)
|
|
692
706
|
]
|
|
693
707
|
}
|
|
694
|
-
),
|
|
695
|
-
const { connect: c } =
|
|
696
|
-
return /* @__PURE__ */
|
|
697
|
-
/* @__PURE__ */ e(
|
|
708
|
+
), s1 = () => {
|
|
709
|
+
const { connect: c } = R();
|
|
710
|
+
return /* @__PURE__ */ i(T, { alignItems: "center", direction: "column", m: 24, children: [
|
|
711
|
+
/* @__PURE__ */ e(c1, {}),
|
|
698
712
|
/* @__PURE__ */ e(
|
|
699
713
|
v,
|
|
700
714
|
{
|
|
@@ -708,48 +722,48 @@ const i1 = () => {
|
|
|
708
722
|
}
|
|
709
723
|
)
|
|
710
724
|
] });
|
|
711
|
-
},
|
|
725
|
+
}, a1 = g(s1), r1 = ({
|
|
712
726
|
onPrimaryCtaClick: c = () => {
|
|
713
727
|
},
|
|
714
|
-
sx:
|
|
728
|
+
sx: a
|
|
715
729
|
}) => {
|
|
716
|
-
const { isCopyLoaded:
|
|
717
|
-
|
|
730
|
+
const { isCopyLoaded: n } = w(), { connect: l } = R(), [H, L] = d.useState(!1), u = () => {
|
|
731
|
+
L(!0), c();
|
|
718
732
|
};
|
|
719
|
-
return
|
|
720
|
-
|
|
733
|
+
return n ? /* @__PURE__ */ i(
|
|
734
|
+
G,
|
|
721
735
|
{
|
|
722
736
|
className: "mx-exp-connect-miniwidget",
|
|
723
|
-
onPrimaryCtaClick:
|
|
737
|
+
onPrimaryCtaClick: u,
|
|
724
738
|
primaryCtaLabel: l.primary_cta,
|
|
725
|
-
sx:
|
|
739
|
+
sx: a,
|
|
726
740
|
title: l.mini_title,
|
|
727
741
|
children: [
|
|
728
|
-
/* @__PURE__ */ e(
|
|
729
|
-
|
|
730
|
-
|
|
742
|
+
/* @__PURE__ */ e(a1, {}),
|
|
743
|
+
H && /* @__PURE__ */ e(
|
|
744
|
+
j,
|
|
731
745
|
{
|
|
732
|
-
onClose: () =>
|
|
733
|
-
showConnectWidget:
|
|
746
|
+
onClose: () => L(!1),
|
|
747
|
+
showConnectWidget: H,
|
|
734
748
|
title: l.mini_title
|
|
735
749
|
}
|
|
736
750
|
)
|
|
737
751
|
]
|
|
738
752
|
}
|
|
739
|
-
) : /* @__PURE__ */ e(
|
|
740
|
-
},
|
|
753
|
+
) : /* @__PURE__ */ e(b, {});
|
|
754
|
+
}, O1 = g(r1);
|
|
741
755
|
export {
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
756
|
+
q1 as AccountApi,
|
|
757
|
+
z as AccountDetailsContent,
|
|
758
|
+
Y as AccountDetailsHeader,
|
|
759
|
+
J1 as AccountStore,
|
|
760
|
+
T1 as AccountsMiniWidget,
|
|
761
|
+
D1 as AccountsWidget,
|
|
762
|
+
O1 as ConnectMiniWidget,
|
|
763
|
+
z1 as FieldType,
|
|
764
|
+
P1 as MemberConnectionStatus,
|
|
765
|
+
j1 as getAccountBalanceDetails,
|
|
766
|
+
G1 as getAccountDetailFields,
|
|
767
|
+
P as useAccountUiStore,
|
|
768
|
+
U1 as useGetMergeableAccounts
|
|
755
769
|
};
|