everest-npm-features 0.0.54 → 0.0.56
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/components/Wallet/Account/createIban.js +54 -54
- package/dist/components/Wallet/Account/eWallet.js +8 -8
- package/dist/components/Wallet/Account/iban.js +11 -11
- package/dist/components/Wallet/Account/ibanItem.js +81 -71
- package/dist/components/Wallet/Account/index.js +197 -180
- package/dist/components/Wallet/SignUp/terms.js +25 -0
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { u as
|
|
4
|
-
import { FEATURE_EWALLET as
|
|
5
|
-
import { a as v, af as P, c as
|
|
1
|
+
import { jsx as t, jsxs as u } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as A } from "react";
|
|
3
|
+
import { u as N } from "../../../react-redux-C7I9-1M6.js";
|
|
4
|
+
import { FEATURE_EWALLET as r, DIALOG_ERROR_ICON as d, DIALOG_SUCCESS_ICON as U } from "../../../util/constants.js";
|
|
5
|
+
import { a as v, af as P, c as V, K as _ } from "../../../constants-Dtk3Gd0Y.js";
|
|
6
6
|
import "../../../index-DlQqWbXG.js";
|
|
7
7
|
import "../Shared/appButton.js";
|
|
8
8
|
import "../../../hoc/withThemeProvider.js";
|
|
@@ -20,11 +20,11 @@ import "../../../web3-u4qDZYpo.js";
|
|
|
20
20
|
import "../../../index-ceeCtFuh.js";
|
|
21
21
|
import "../../../context/dialogContext.js";
|
|
22
22
|
import { B as S } from "../../../Box-B0YSYLco.js";
|
|
23
|
-
import { C as
|
|
23
|
+
import { C as K } from "../../../CircularProgress-xZA3lvba.js";
|
|
24
24
|
import { T as E } from "../../../Typography-pAaje37G.js";
|
|
25
|
-
import { S as
|
|
25
|
+
import { S as O } from "../../../Select-CB5yWmyn.js";
|
|
26
26
|
import { M as f } from "../../../MenuItem-DUdYOJr4.js";
|
|
27
|
-
const
|
|
27
|
+
const Y = [
|
|
28
28
|
{
|
|
29
29
|
alpha3: "AUT",
|
|
30
30
|
alpha2: "AT",
|
|
@@ -190,18 +190,18 @@ const F = [
|
|
|
190
190
|
alpha2: "GB",
|
|
191
191
|
name: "United Kingdom"
|
|
192
192
|
}
|
|
193
|
-
],
|
|
194
|
-
openDialog:
|
|
193
|
+
], ca = ({
|
|
194
|
+
openDialog: n,
|
|
195
195
|
createIbanRequest: B,
|
|
196
196
|
iban: h,
|
|
197
|
-
navigate:
|
|
197
|
+
navigate: T,
|
|
198
198
|
currency: a,
|
|
199
199
|
setIbanCurrency: m,
|
|
200
|
-
from:
|
|
200
|
+
from: e
|
|
201
201
|
}) => {
|
|
202
|
-
const { showAlertMessage: C } = G(),
|
|
203
|
-
if (!
|
|
204
|
-
|
|
202
|
+
const { showAlertMessage: C } = G(), c = N((o) => o.user), p = c.profile, L = p.loader, y = c.kyc.loader, s = c.kyc.status, I = p.email, R = h.loader, l = A(!1), g = () => {
|
|
203
|
+
if (!I) {
|
|
204
|
+
n({
|
|
205
205
|
title: "No Email",
|
|
206
206
|
message: "Please contact support to update your email address.",
|
|
207
207
|
icon: d,
|
|
@@ -215,7 +215,7 @@ const F = [
|
|
|
215
215
|
return;
|
|
216
216
|
}
|
|
217
217
|
if (s === v || s === P) {
|
|
218
|
-
|
|
218
|
+
n({
|
|
219
219
|
title: "Under Review",
|
|
220
220
|
message: "Your profile is currently being reviewed. If approved, you will have additional capabilities on the Everest platform.",
|
|
221
221
|
width: "550px",
|
|
@@ -225,22 +225,22 @@ const F = [
|
|
|
225
225
|
});
|
|
226
226
|
return;
|
|
227
227
|
}
|
|
228
|
-
if (s !==
|
|
229
|
-
|
|
230
|
-
title: "
|
|
231
|
-
message: "
|
|
228
|
+
if (s !== V && s !== _) {
|
|
229
|
+
n({
|
|
230
|
+
title: "Verification Required",
|
|
231
|
+
message: `To create a ${e === r ? "E-Wallet" : "Virtual IBAN"}, we first need to verify your identity. You will now be taken to complete your KYC verification.`,
|
|
232
232
|
width: "575px",
|
|
233
233
|
height: "400px",
|
|
234
|
-
confirmButtonText: "
|
|
234
|
+
confirmButtonText: "Start Verification",
|
|
235
235
|
cancelButtonText: "Cancel",
|
|
236
|
-
onConfirm: () =>
|
|
236
|
+
onConfirm: () => T("/kyc")
|
|
237
237
|
});
|
|
238
238
|
return;
|
|
239
239
|
}
|
|
240
|
-
if (!
|
|
241
|
-
(
|
|
240
|
+
if (!Y.find(
|
|
241
|
+
(i) => i.alpha3 === p.residentialAddress.country
|
|
242
242
|
)) {
|
|
243
|
-
|
|
243
|
+
n({
|
|
244
244
|
title: "Not Allowed",
|
|
245
245
|
message: "Currently we are not supporting your country for Virtual IBAN.",
|
|
246
246
|
icon: d,
|
|
@@ -252,7 +252,7 @@ const F = [
|
|
|
252
252
|
return;
|
|
253
253
|
}
|
|
254
254
|
if (p.memberType !== "individual") {
|
|
255
|
-
|
|
255
|
+
n({
|
|
256
256
|
title: "Not Allowed",
|
|
257
257
|
message: "Currently we are not supporting organizational wallet(KYB) for Virtual IBAN.",
|
|
258
258
|
icon: d,
|
|
@@ -263,24 +263,24 @@ const F = [
|
|
|
263
263
|
});
|
|
264
264
|
return;
|
|
265
265
|
}
|
|
266
|
-
|
|
267
|
-
title:
|
|
268
|
-
message: /* @__PURE__ */
|
|
269
|
-
/* @__PURE__ */
|
|
270
|
-
|
|
271
|
-
|
|
266
|
+
e === r && (a.current = "EUR", m("EUR")), n({
|
|
267
|
+
title: e === r ? "Create E-Wallet" : "Create Virtual IBAN",
|
|
268
|
+
message: /* @__PURE__ */ u(S, { children: [
|
|
269
|
+
/* @__PURE__ */ t(E, { children: e === r ? "Please proceed to create your E-Wallet." : "Please select the currency for the Virtual IBAN and proceed." }),
|
|
270
|
+
e !== r && /* @__PURE__ */ u(
|
|
271
|
+
O,
|
|
272
272
|
{
|
|
273
273
|
defaultValue: "",
|
|
274
|
-
onChange: (
|
|
275
|
-
a.current =
|
|
274
|
+
onChange: (i) => {
|
|
275
|
+
a.current = i.target.value, m(i.target.value);
|
|
276
276
|
},
|
|
277
277
|
style: { marginTop: "10px" },
|
|
278
278
|
displayEmpty: !0,
|
|
279
279
|
fullWidth: !0,
|
|
280
280
|
children: [
|
|
281
|
-
/* @__PURE__ */
|
|
282
|
-
/* @__PURE__ */
|
|
283
|
-
/* @__PURE__ */
|
|
281
|
+
/* @__PURE__ */ t(f, { value: "", children: "Select currency" }),
|
|
282
|
+
/* @__PURE__ */ t(f, { value: "EUR", children: "EUR" }),
|
|
283
|
+
/* @__PURE__ */ t(f, { value: "GBP", children: "GBP" })
|
|
284
284
|
]
|
|
285
285
|
}
|
|
286
286
|
)
|
|
@@ -290,45 +290,45 @@ const F = [
|
|
|
290
290
|
confirmButtonText: "Create",
|
|
291
291
|
cancelButtonShow: !0,
|
|
292
292
|
cancelButtonText: "Cancel",
|
|
293
|
-
closeModalConfirm:
|
|
294
|
-
onConfirm:
|
|
293
|
+
closeModalConfirm: w,
|
|
294
|
+
onConfirm: x,
|
|
295
295
|
onCancel: () => {
|
|
296
|
-
a.current = "", m(""),
|
|
296
|
+
a.current = "", m(""), l.current = !1;
|
|
297
297
|
},
|
|
298
298
|
onClose: () => {
|
|
299
|
-
a.current = "",
|
|
299
|
+
a.current = "", l.current = !1;
|
|
300
300
|
}
|
|
301
301
|
});
|
|
302
|
-
},
|
|
303
|
-
if (
|
|
304
|
-
return
|
|
305
|
-
message:
|
|
302
|
+
}, w = () => !l.current, x = () => {
|
|
303
|
+
if (l.current = !1, !a.current)
|
|
304
|
+
return l.current = !0, C({
|
|
305
|
+
message: e === r ? "Currency selection is missing." : "Please select currency for Virtual IBAN."
|
|
306
306
|
}), !1;
|
|
307
307
|
if (h.data.length > 0) {
|
|
308
|
-
const
|
|
309
|
-
(
|
|
308
|
+
const o = h.data.find(
|
|
309
|
+
(i) => i.currency === a.current
|
|
310
310
|
);
|
|
311
|
-
if (
|
|
312
|
-
return
|
|
311
|
+
if (o != null && o.id)
|
|
312
|
+
return l.current = !0, C({
|
|
313
313
|
message: `You already have the ${a.current} Virtual IBAN.`
|
|
314
314
|
}), !1;
|
|
315
315
|
}
|
|
316
316
|
B(a.current);
|
|
317
317
|
};
|
|
318
|
-
return
|
|
318
|
+
return L || y || R ? /* @__PURE__ */ t(S, { mt: 4, className: "flex-center", children: /* @__PURE__ */ t(K, { color: "primary", size: 50 }) }) : /* @__PURE__ */ t(
|
|
319
319
|
E,
|
|
320
320
|
{
|
|
321
|
-
onClick:
|
|
321
|
+
onClick: g,
|
|
322
322
|
component: "span",
|
|
323
323
|
color: "primary",
|
|
324
324
|
sx: { cursor: "pointer" },
|
|
325
|
-
children: /* @__PURE__ */
|
|
325
|
+
children: /* @__PURE__ */ u("span", { className: "text-underline", children: [
|
|
326
326
|
"+ Add ",
|
|
327
|
-
|
|
327
|
+
e === r ? "E-Wallet" : "Virtual IBAN"
|
|
328
328
|
] })
|
|
329
329
|
}
|
|
330
330
|
);
|
|
331
331
|
};
|
|
332
332
|
export {
|
|
333
|
-
|
|
333
|
+
ca as default
|
|
334
334
|
};
|
|
@@ -18,12 +18,12 @@ const J = ({
|
|
|
18
18
|
appKey: u,
|
|
19
19
|
appKeyEur: d,
|
|
20
20
|
paymentWidgetSrcUrl: f,
|
|
21
|
-
iban:
|
|
21
|
+
iban: o,
|
|
22
22
|
navigate: y,
|
|
23
23
|
AccountItem: x,
|
|
24
24
|
createIbanRequest: g
|
|
25
25
|
}) => {
|
|
26
|
-
const c =
|
|
26
|
+
const c = o.data, C = o.loader, I = W(""), [_, E] = w("");
|
|
27
27
|
return A(() => {
|
|
28
28
|
new URLSearchParams(window.location.search).get("paymentStatus") === "success" && i({
|
|
29
29
|
title: "Payment Success",
|
|
@@ -39,7 +39,7 @@ const J = ({
|
|
|
39
39
|
/* @__PURE__ */ e(
|
|
40
40
|
T,
|
|
41
41
|
{
|
|
42
|
-
title: /* @__PURE__ */ e(t, { sx: { whiteSpace: "pre-line" }, children: "Create an E-Wallet. This requires KYC
|
|
42
|
+
title: /* @__PURE__ */ e(t, { sx: { whiteSpace: "pre-line" }, children: "Create an E-Wallet. This requires KYC" }),
|
|
43
43
|
placement: "bottom",
|
|
44
44
|
children: /* @__PURE__ */ e(L, { className: "info-fee-icon", children: /* @__PURE__ */ e(N, { sx: { fontSize: "26px", color: "#D9D9D9" } }) })
|
|
45
45
|
}
|
|
@@ -50,7 +50,7 @@ const J = ({
|
|
|
50
50
|
{
|
|
51
51
|
openDialog: i,
|
|
52
52
|
createIbanRequest: g,
|
|
53
|
-
iban:
|
|
53
|
+
iban: o,
|
|
54
54
|
navigate: y,
|
|
55
55
|
currency: I,
|
|
56
56
|
setIbanCurrency: E,
|
|
@@ -59,10 +59,10 @@ const J = ({
|
|
|
59
59
|
) }) })
|
|
60
60
|
] }),
|
|
61
61
|
C ? /* @__PURE__ */ e(t, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(z, { color: "primary", size: 50 }) }) : /* @__PURE__ */ r(m, { children: [
|
|
62
|
-
c.length > 0 ? /* @__PURE__ */ e(m, { children: c.map((
|
|
62
|
+
c.length > 0 ? /* @__PURE__ */ e(m, { children: c.map((n, s) => {
|
|
63
63
|
const S = {
|
|
64
|
-
...
|
|
65
|
-
accountName: `E-Wallet - ${
|
|
64
|
+
...n,
|
|
65
|
+
accountName: `E-Wallet - ${n.currency ?? ""}`
|
|
66
66
|
};
|
|
67
67
|
return /* @__PURE__ */ e(
|
|
68
68
|
B,
|
|
@@ -73,7 +73,7 @@ const J = ({
|
|
|
73
73
|
appKey: u,
|
|
74
74
|
appKeyEur: d,
|
|
75
75
|
paymentWidgetSrcUrl: f,
|
|
76
|
-
iban:
|
|
76
|
+
iban: o,
|
|
77
77
|
from: l
|
|
78
78
|
},
|
|
79
79
|
s
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as o, Fragment as m } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as g, useState as S, useEffect as B } from "react";
|
|
3
3
|
import { I as N } from "../../../Info-BVeUSPyk.js";
|
|
4
4
|
import { DIALOG_SUCCESS_ICON as T, FEATURE_VIRTUAL_IBAN as l } from "../../../util/constants.js";
|
|
@@ -8,7 +8,7 @@ import v from "./createIban.js";
|
|
|
8
8
|
import { AuthInnerContainer as D } from "../Shared/Container/index.js";
|
|
9
9
|
import E from "./ibanItem.js";
|
|
10
10
|
import { B as t } from "../../../Box-B0YSYLco.js";
|
|
11
|
-
import { G as
|
|
11
|
+
import { G as n } from "../../../Grid-CFe3amXO.js";
|
|
12
12
|
import { T as P } from "../../../Typography-pAaje37G.js";
|
|
13
13
|
import { I as z } from "../../../IconButton-DHm-hucF.js";
|
|
14
14
|
import { C as L } from "../../../CircularProgress-xZA3lvba.js";
|
|
@@ -20,8 +20,8 @@ const J = ({
|
|
|
20
20
|
paymentWidgetSrcUrl: h,
|
|
21
21
|
iban: r,
|
|
22
22
|
navigate: d,
|
|
23
|
-
AccountItem:
|
|
24
|
-
createIbanRequest:
|
|
23
|
+
AccountItem: I,
|
|
24
|
+
createIbanRequest: y
|
|
25
25
|
}) => {
|
|
26
26
|
const i = r.data, x = r.loader, C = g(""), [R, A] = S("");
|
|
27
27
|
return B(() => {
|
|
@@ -32,24 +32,24 @@ const J = ({
|
|
|
32
32
|
width: "575px",
|
|
33
33
|
confirmButtonText: "Continue"
|
|
34
34
|
});
|
|
35
|
-
}, []), /* @__PURE__ */ e(D, { children: /* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */ n
|
|
37
|
-
/* @__PURE__ */ n
|
|
35
|
+
}, []), /* @__PURE__ */ e(D, { children: /* @__PURE__ */ o(t, { p: 3, children: [
|
|
36
|
+
/* @__PURE__ */ o(n, { spacing: 2, container: !0, alignItems: "center", children: [
|
|
37
|
+
/* @__PURE__ */ o(n, { size: 8, children: [
|
|
38
38
|
/* @__PURE__ */ e(P, { color: "primary", variant: "h6", component: "span", children: /* @__PURE__ */ e("strong", { children: "Everest Accounts (Virtual IBAN)" }) }),
|
|
39
39
|
/* @__PURE__ */ e(
|
|
40
40
|
w,
|
|
41
41
|
{
|
|
42
|
-
title: /* @__PURE__ */ e(t, { sx: { whiteSpace: "pre-line" }, children: "Create a Virtual IBAN of selected currency. This requires KYC
|
|
42
|
+
title: /* @__PURE__ */ e(t, { sx: { whiteSpace: "pre-line" }, children: "Create a Virtual IBAN of selected currency. This requires KYC" }),
|
|
43
43
|
placement: "bottom",
|
|
44
44
|
children: /* @__PURE__ */ e(z, { className: "info-fee-icon", children: /* @__PURE__ */ e(N, { sx: { fontSize: "26px", color: "#D9D9D9" } }) })
|
|
45
45
|
}
|
|
46
46
|
)
|
|
47
47
|
] }),
|
|
48
|
-
/* @__PURE__ */ e(
|
|
48
|
+
/* @__PURE__ */ e(n, { size: 4, children: /* @__PURE__ */ e(t, { sx: { textAlign: "right" }, children: /* @__PURE__ */ e(
|
|
49
49
|
v,
|
|
50
50
|
{
|
|
51
51
|
openDialog: a,
|
|
52
|
-
createIbanRequest:
|
|
52
|
+
createIbanRequest: y,
|
|
53
53
|
iban: r,
|
|
54
54
|
navigate: d,
|
|
55
55
|
currency: C,
|
|
@@ -62,7 +62,7 @@ const J = ({
|
|
|
62
62
|
E,
|
|
63
63
|
{
|
|
64
64
|
data: c,
|
|
65
|
-
AccountItem:
|
|
65
|
+
AccountItem: I,
|
|
66
66
|
dispatch: p,
|
|
67
67
|
appKey: u,
|
|
68
68
|
appKeyEur: f,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as e, Fragment as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsx as e, Fragment as k, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as c, useMemo as M, useEffect as R } from "react";
|
|
3
3
|
import "../../../constants-Dtk3Gd0Y.js";
|
|
4
4
|
import { v as ie } from "../../../order-DuPcaU0K.js";
|
|
5
5
|
import g from "../Shared/appButton.js";
|
|
@@ -32,41 +32,41 @@ import { T as v } from "../../../Typography-pAaje37G.js";
|
|
|
32
32
|
import { I as D } from "../../../IconButton-DHm-hucF.js";
|
|
33
33
|
import { B as S } from "../../../Box-B0YSYLco.js";
|
|
34
34
|
import { C as me } from "../../../CircularProgress-xZA3lvba.js";
|
|
35
|
-
const
|
|
36
|
-
label:
|
|
35
|
+
const i = ({
|
|
36
|
+
label: T,
|
|
37
37
|
value: r,
|
|
38
|
-
showCopyBtn:
|
|
38
|
+
showCopyBtn: I
|
|
39
39
|
}) => {
|
|
40
|
-
const { showAlertMessage:
|
|
41
|
-
return /* @__PURE__ */ o(
|
|
42
|
-
/* @__PURE__ */ e(a, { size: 5, className: "d-flex items-center", children: /* @__PURE__ */ e("strong", { children:
|
|
40
|
+
const { showAlertMessage: N } = q();
|
|
41
|
+
return /* @__PURE__ */ o(k, { children: [
|
|
42
|
+
/* @__PURE__ */ e(a, { size: 5, className: "d-flex items-center", children: /* @__PURE__ */ e("strong", { children: T }) }),
|
|
43
43
|
/* @__PURE__ */ o(a, { size: 7, className: "fw500 text-left d-flex items-center", children: [
|
|
44
44
|
r,
|
|
45
|
-
|
|
46
|
-
navigator.clipboard.writeText(r),
|
|
47
|
-
message: `${
|
|
45
|
+
I && /* @__PURE__ */ e(D, { onClick: () => {
|
|
46
|
+
navigator.clipboard.writeText(r), N({
|
|
47
|
+
message: `${T} has been copied successfully.`,
|
|
48
48
|
type: "success"
|
|
49
49
|
});
|
|
50
50
|
}, children: /* @__PURE__ */ e(le, { fontSize: "small", color: "primary" }) })
|
|
51
51
|
] })
|
|
52
52
|
] });
|
|
53
53
|
}, qe = ({
|
|
54
|
-
AccountItem:
|
|
54
|
+
AccountItem: T,
|
|
55
55
|
data: r,
|
|
56
|
-
appKey:
|
|
57
|
-
appKeyEur:
|
|
56
|
+
appKey: I,
|
|
57
|
+
appKeyEur: N,
|
|
58
58
|
paymentWidgetSrcUrl: u,
|
|
59
59
|
dispatch: F,
|
|
60
60
|
iban: J,
|
|
61
61
|
from: K
|
|
62
62
|
}) => {
|
|
63
63
|
var O;
|
|
64
|
-
const [Q, w] =
|
|
64
|
+
const [Q, w] = c(!1), [X, U] = c(!1), [p, _] = c(!1), [W, x] = c(""), [A, h] = c(null), [P, f] = c(null), [d, l] = c(!1), { showAlertMessage: C } = q(), s = K === ce, b = j(
|
|
65
65
|
(t) => t.order
|
|
66
|
-
),
|
|
67
|
-
|
|
66
|
+
), B = b.v4Payment ?? null, y = b.v4PaymentLoader ?? !1, Y = j((t) => t.session.uuid), Z = () => {
|
|
67
|
+
x(""), h(null), f(null), l(!1), _(!0);
|
|
68
68
|
}, z = () => {
|
|
69
|
-
_(!1),
|
|
69
|
+
_(!1), x(""), h(null), f(null), l(!1);
|
|
70
70
|
}, ee = () => {
|
|
71
71
|
const t = Number(W);
|
|
72
72
|
if (!W || Number.isNaN(t) || t <= 0) {
|
|
@@ -76,14 +76,14 @@ const c = ({
|
|
|
76
76
|
});
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
79
|
-
if (!
|
|
79
|
+
if (!I) {
|
|
80
80
|
C({
|
|
81
81
|
message: "Unable to identify application key.",
|
|
82
82
|
type: "error"
|
|
83
83
|
});
|
|
84
84
|
return;
|
|
85
85
|
}
|
|
86
|
-
if (!
|
|
86
|
+
if (!N) {
|
|
87
87
|
C({
|
|
88
88
|
message: "Unable to identify application EUR key.",
|
|
89
89
|
type: "error"
|
|
@@ -93,55 +93,55 @@ const c = ({
|
|
|
93
93
|
const te = Math.round(t * 100);
|
|
94
94
|
F(
|
|
95
95
|
ie({
|
|
96
|
-
apiKey:
|
|
96
|
+
apiKey: N,
|
|
97
97
|
ccy: "EUR",
|
|
98
98
|
transaction_type: "CHECKOUT",
|
|
99
99
|
amount: te,
|
|
100
100
|
uuid: Y ?? void 0
|
|
101
101
|
})
|
|
102
|
-
),
|
|
102
|
+
), l(!0);
|
|
103
103
|
}, re = () => {
|
|
104
|
-
if (
|
|
104
|
+
if (s) {
|
|
105
105
|
Z();
|
|
106
106
|
return;
|
|
107
107
|
}
|
|
108
108
|
w(!0);
|
|
109
|
-
}, n =
|
|
109
|
+
}, n = M(() => B ?? null, [B]), m = M(() => {
|
|
110
110
|
var t;
|
|
111
111
|
return n ? (n == null ? void 0 : n.checkout_id) ?? ((t = n == null ? void 0 : n.order) == null ? void 0 : t.provider_token) ?? (n == null ? void 0 : n.provider_token) ?? null : null;
|
|
112
|
-
}, [n]),
|
|
113
|
-
return
|
|
114
|
-
d && m && (
|
|
115
|
-
}, [d, m,
|
|
116
|
-
d && p && (!m ||
|
|
112
|
+
}, [n]), E = ((O = n == null ? void 0 : n.order) == null ? void 0 : O.order_id) ?? null, oe = M(() => u ? u.endsWith("/") ? u : `${u}/` : "", [u]), ne = M(() => P ? `/?paymentId=${encodeURIComponent(P)}` : "/", [P]);
|
|
113
|
+
return R(() => {
|
|
114
|
+
d && m && (h(m), f(E ?? null), l(!1));
|
|
115
|
+
}, [d, m, E]), R(() => {
|
|
116
|
+
d && p && (!m || A || (h(m), f(E ?? null), l(!1)));
|
|
117
117
|
}, [
|
|
118
118
|
d,
|
|
119
119
|
p,
|
|
120
120
|
m,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
]),
|
|
124
|
-
|
|
125
|
-
}, [
|
|
126
|
-
if (d && !
|
|
127
|
-
if (
|
|
128
|
-
|
|
121
|
+
A,
|
|
122
|
+
E
|
|
123
|
+
]), R(() => {
|
|
124
|
+
s && (p || (x(""), h(null), f(null)));
|
|
125
|
+
}, [s, p]), R(() => {
|
|
126
|
+
if (d && !y) {
|
|
127
|
+
if (B) {
|
|
128
|
+
l(!1);
|
|
129
129
|
return;
|
|
130
130
|
}
|
|
131
|
-
|
|
132
|
-
message:
|
|
131
|
+
b.error && (C({
|
|
132
|
+
message: b.error,
|
|
133
133
|
type: "error"
|
|
134
|
-
}),
|
|
134
|
+
}), l(!1));
|
|
135
135
|
}
|
|
136
136
|
}, [
|
|
137
137
|
d,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
138
|
+
y,
|
|
139
|
+
B,
|
|
140
|
+
b.error,
|
|
141
141
|
C
|
|
142
|
-
]), /* @__PURE__ */ e(
|
|
143
|
-
/* @__PURE__ */ e(
|
|
144
|
-
/* @__PURE__ */ e(a, { size: { md: 6 }, children: /* @__PURE__ */ e(g, { fullWidth: !0, onClick: re, children:
|
|
142
|
+
]), /* @__PURE__ */ e(k, { children: r.accountNumber ? /* @__PURE__ */ o(k, { children: [
|
|
143
|
+
/* @__PURE__ */ e(T, { type: "iban", data: r, children: /* @__PURE__ */ o(a, { my: 1, spacing: 2, container: !0, children: [
|
|
144
|
+
/* @__PURE__ */ e(a, { size: { md: 6 }, children: /* @__PURE__ */ e(g, { fullWidth: !0, onClick: re, children: s ? "Topup" : "Deposit" }) }),
|
|
145
145
|
/* @__PURE__ */ e(a, { size: { md: 3 }, children: /* @__PURE__ */ e(g, { fullWidth: !0, onClick: () => U(!0), children: "Send" }) }),
|
|
146
146
|
/* @__PURE__ */ e(a, { size: { md: 3 }, children: /* @__PURE__ */ e(g, { fullWidth: !0, onClick: () => w(!0), children: "Receive" }) })
|
|
147
147
|
] }) }),
|
|
@@ -170,22 +170,22 @@ const c = ({
|
|
|
170
170
|
/* @__PURE__ */ e(v, { variant: "h5", align: "center", children: /* @__PURE__ */ e("strong", { children: "Account Details" }) }),
|
|
171
171
|
/* @__PURE__ */ o(a, { container: !0, spacing: 2, sx: { padding: "5% 15%" }, children: [
|
|
172
172
|
/* @__PURE__ */ e(
|
|
173
|
-
|
|
173
|
+
i,
|
|
174
174
|
{
|
|
175
175
|
label: "Account Title",
|
|
176
176
|
value: `${r.ownerFirstName} ${r.ownerLastName}`
|
|
177
177
|
}
|
|
178
178
|
),
|
|
179
179
|
/* @__PURE__ */ e(
|
|
180
|
-
|
|
180
|
+
i,
|
|
181
181
|
{
|
|
182
182
|
label: "Bank Account Currency",
|
|
183
183
|
value: r.currency || ""
|
|
184
184
|
}
|
|
185
185
|
),
|
|
186
|
-
/* @__PURE__ */ e(
|
|
186
|
+
/* @__PURE__ */ e(i, { label: "Bank Name", value: r.bankName || "" }),
|
|
187
187
|
/* @__PURE__ */ e(
|
|
188
|
-
|
|
188
|
+
i,
|
|
189
189
|
{
|
|
190
190
|
label: "Bank Address",
|
|
191
191
|
value: r.bankBranchAddress || "",
|
|
@@ -193,23 +193,33 @@ const c = ({
|
|
|
193
193
|
}
|
|
194
194
|
),
|
|
195
195
|
/* @__PURE__ */ e(
|
|
196
|
-
|
|
196
|
+
i,
|
|
197
197
|
{
|
|
198
198
|
label: "Virtual IBAN",
|
|
199
199
|
value: r.accountNumber || "",
|
|
200
200
|
showCopyBtn: !0
|
|
201
201
|
}
|
|
202
202
|
),
|
|
203
|
-
r.currency === se && /* @__PURE__ */
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
203
|
+
r.currency === se && /* @__PURE__ */ o(k, { children: [
|
|
204
|
+
/* @__PURE__ */ e(
|
|
205
|
+
i,
|
|
206
|
+
{
|
|
207
|
+
label: "Account Number",
|
|
208
|
+
value: (r.accountNumber || "").slice(-8),
|
|
209
|
+
showCopyBtn: !0
|
|
210
|
+
}
|
|
211
|
+
),
|
|
212
|
+
/* @__PURE__ */ e(
|
|
213
|
+
i,
|
|
214
|
+
{
|
|
215
|
+
label: "Sort Code",
|
|
216
|
+
value: r.sortCode || "",
|
|
217
|
+
showCopyBtn: !0
|
|
218
|
+
}
|
|
219
|
+
)
|
|
220
|
+
] }),
|
|
211
221
|
/* @__PURE__ */ e(
|
|
212
|
-
|
|
222
|
+
i,
|
|
213
223
|
{
|
|
214
224
|
label: "BIC/Swift Code",
|
|
215
225
|
value: r.bicCode || "",
|
|
@@ -221,7 +231,7 @@ const c = ({
|
|
|
221
231
|
]
|
|
222
232
|
}
|
|
223
233
|
),
|
|
224
|
-
|
|
234
|
+
s && /* @__PURE__ */ o(
|
|
225
235
|
G,
|
|
226
236
|
{
|
|
227
237
|
open: p,
|
|
@@ -242,17 +252,17 @@ const c = ({
|
|
|
242
252
|
}
|
|
243
253
|
)
|
|
244
254
|
] }),
|
|
245
|
-
/* @__PURE__ */ e(V, { dividers: !0, children:
|
|
255
|
+
/* @__PURE__ */ e(V, { dividers: !0, children: A ? /* @__PURE__ */ o(S, { mt: 2, children: [
|
|
246
256
|
/* @__PURE__ */ e(v, { variant: "body1", mb: 2, children: "Complete your payment using the secure widget below." }),
|
|
247
257
|
/* @__PURE__ */ e(
|
|
248
258
|
ue,
|
|
249
259
|
{
|
|
250
|
-
checkoutId:
|
|
260
|
+
checkoutId: A,
|
|
251
261
|
srcUrl: oe,
|
|
252
262
|
onResultUrl: ne
|
|
253
263
|
}
|
|
254
264
|
)
|
|
255
|
-
] }) : /* @__PURE__ */ o(
|
|
265
|
+
] }) : /* @__PURE__ */ o(k, { children: [
|
|
256
266
|
/* @__PURE__ */ e(v, { variant: "body1", children: "Enter the amount you would like to add to this E-Wallet." }),
|
|
257
267
|
/* @__PURE__ */ e(
|
|
258
268
|
ae,
|
|
@@ -260,7 +270,7 @@ const c = ({
|
|
|
260
270
|
label: "Topup Amount",
|
|
261
271
|
type: "number",
|
|
262
272
|
value: W,
|
|
263
|
-
onChangeHandler: (t) =>
|
|
273
|
+
onChangeHandler: (t) => x(t),
|
|
264
274
|
inputProps: { min: "0", step: "0.01" }
|
|
265
275
|
}
|
|
266
276
|
),
|
|
@@ -277,7 +287,7 @@ const c = ({
|
|
|
277
287
|
{
|
|
278
288
|
variantType: "secondary",
|
|
279
289
|
onClick: z,
|
|
280
|
-
disabled:
|
|
290
|
+
disabled: y,
|
|
281
291
|
children: "Cancel"
|
|
282
292
|
}
|
|
283
293
|
),
|
|
@@ -285,9 +295,9 @@ const c = ({
|
|
|
285
295
|
g,
|
|
286
296
|
{
|
|
287
297
|
onClick: ee,
|
|
288
|
-
disabled:
|
|
298
|
+
disabled: y,
|
|
289
299
|
children: /* @__PURE__ */ o("strong", { children: [
|
|
290
|
-
|
|
300
|
+
y ? /* @__PURE__ */ e(
|
|
291
301
|
me,
|
|
292
302
|
{
|
|
293
303
|
size: 18,
|
|
@@ -312,7 +322,7 @@ const c = ({
|
|
|
312
322
|
iban: J,
|
|
313
323
|
data: r,
|
|
314
324
|
dispatch: F,
|
|
315
|
-
appKey:
|
|
325
|
+
appKey: I,
|
|
316
326
|
openModal: X,
|
|
317
327
|
setOpenModal: U
|
|
318
328
|
}
|
|
@@ -332,10 +342,10 @@ const c = ({
|
|
|
332
342
|
/* @__PURE__ */ o("p", { children: [
|
|
333
343
|
r.currency,
|
|
334
344
|
" ",
|
|
335
|
-
|
|
345
|
+
s ? "E-Wallet" : "Virtual IBAN",
|
|
336
346
|
" creation is in progress. Please wait while we generate your",
|
|
337
347
|
" ",
|
|
338
|
-
|
|
348
|
+
s ? "E-Wallet" : "Virtual IBAN",
|
|
339
349
|
"."
|
|
340
350
|
] }),
|
|
341
351
|
/* @__PURE__ */ e("p", { children: "This may take a few moments. Thank you for your patience!" })
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { jsxs as n, Fragment as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { u as
|
|
1
|
+
import { jsxs as n, Fragment as V, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as W, useEffect as d } from "react";
|
|
3
|
+
import { u as C } from "../../../react-redux-C7I9-1M6.js";
|
|
4
4
|
import "../../../constants-Dtk3Gd0Y.js";
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { LINKED_WALLET_TOOLTIP as
|
|
9
|
-
import { M as
|
|
10
|
-
import { I as
|
|
11
|
-
import { C as
|
|
5
|
+
import { u as ce, c as le, d as me } from "../../../index-BQNs1mvn.js";
|
|
6
|
+
import { u as de, a as ue, b as pe, c as he, d as fe, e as ge } from "../../../wallet-BxwOFeSW.js";
|
|
7
|
+
import { u as be, c as xe, d as _e, e as Ne } from "../../../bank-BM66KfAv.js";
|
|
8
|
+
import { LINKED_WALLET_TOOLTIP as We, CONNECTED_WALLET_TOOLTIP as Ce, WALLET_ICON as we, DELETE_ICON as ye } from "../../../util/constants.js";
|
|
9
|
+
import { M as X } from "../../../tooltip-3UvETWtS.js";
|
|
10
|
+
import { I as Y } from "../../../Info-BVeUSPyk.js";
|
|
11
|
+
import { C as Ie } from "../../../Cancel-4lT7GZUA.js";
|
|
12
12
|
import { D as ke } from "../../../Delete-jpMstGIF.js";
|
|
13
|
-
import { C as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
13
|
+
import { C as ve } from "../../../Close-CNwiMz_O.js";
|
|
14
|
+
import Ae from "../../Shared/transition.js";
|
|
15
|
+
import Z from "../Shared/inputField.js";
|
|
16
16
|
import De from "../Shared/addBank.js";
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import { useSnackBarContext as
|
|
22
|
-
import
|
|
23
|
-
import { AuthInnerContainer as
|
|
17
|
+
import Te from "../Shared/connectPlaidBank.js";
|
|
18
|
+
import Le from "../Shared/ConnectWallet/index.js";
|
|
19
|
+
import Be from "./iban.js";
|
|
20
|
+
import Se from "./eWallet.js";
|
|
21
|
+
import { useSnackBarContext as ze } from "../../../context/snackBarContext.js";
|
|
22
|
+
import U from "../Shared/appButton.js";
|
|
23
|
+
import { AuthInnerContainer as z } from "../Shared/Container/index.js";
|
|
24
24
|
import "../../../index-DlQqWbXG.js";
|
|
25
|
-
import
|
|
25
|
+
import Ee from "../../../hoc/withThemeProvider.js";
|
|
26
26
|
import "../Shared/Auth/otpForm.js";
|
|
27
|
-
import
|
|
27
|
+
import Re from "../../../hooks/useEverestDispatch.js";
|
|
28
28
|
import "../../../util/conversions.js";
|
|
29
29
|
import "../../../index-CAoLi5Qq.js";
|
|
30
30
|
import "../../../react-webcam-B3cXh1XT.js";
|
|
@@ -32,20 +32,20 @@ import "../Shared/pin.js";
|
|
|
32
32
|
import "../../../moment-h96o7c8I.js";
|
|
33
33
|
import "../../../index.esm-BsMAMhYW.js";
|
|
34
34
|
import "../../../index-ceeCtFuh.js";
|
|
35
|
-
import { useDialogContext as
|
|
35
|
+
import { useDialogContext as qe } from "../../../context/dialogContext.js";
|
|
36
36
|
import { B as s } from "../../../Box-B0YSYLco.js";
|
|
37
|
-
import { G as
|
|
38
|
-
import { T as
|
|
39
|
-
import { I as
|
|
40
|
-
import { C } from "../../../CircularProgress-xZA3lvba.js";
|
|
41
|
-
import { B as
|
|
42
|
-
import { S as
|
|
43
|
-
import { D as
|
|
44
|
-
import { D as
|
|
45
|
-
import '../../../assets/index3.css';const
|
|
46
|
-
container:
|
|
37
|
+
import { G as c } from "../../../Grid-CFe3amXO.js";
|
|
38
|
+
import { T as i } from "../../../Typography-pAaje37G.js";
|
|
39
|
+
import { I as w } from "../../../IconButton-DHm-hucF.js";
|
|
40
|
+
import { C as y } from "../../../CircularProgress-xZA3lvba.js";
|
|
41
|
+
import { B as Pe } from "../../../Button-Df4vgU24.js";
|
|
42
|
+
import { S as Oe } from "../../../Stack-k55YTxET.js";
|
|
43
|
+
import { D as $e, a as Me } from "../../../DialogContent-BMwlOnbW.js";
|
|
44
|
+
import { D as He } from "../../../DialogTitle-CfS0bb2K.js";
|
|
45
|
+
import '../../../assets/index3.css';const Fe = "_container_arwo8_1", je = "_heading_arwo8_27", r = {
|
|
46
|
+
container: Fe,
|
|
47
47
|
"inner-container": "_inner-container_arwo8_13",
|
|
48
|
-
heading:
|
|
48
|
+
heading: je,
|
|
49
49
|
"account-item": "_account-item_arwo8_41",
|
|
50
50
|
"account-item-text": "_account-item-text_arwo8_71",
|
|
51
51
|
"primary-color": "_primary-color_arwo8_81",
|
|
@@ -54,134 +54,151 @@ import '../../../assets/index3.css';const Me = "_container_arwo8_1", He = "_head
|
|
|
54
54
|
"remove-icon": "_remove-icon_arwo8_107",
|
|
55
55
|
"delete-disable": "_delete-disable_arwo8_121",
|
|
56
56
|
"confirm-edit": "_confirm-edit_arwo8_137"
|
|
57
|
-
},
|
|
58
|
-
baseUrl:
|
|
59
|
-
checkoutSdkKey:
|
|
60
|
-
appKey:
|
|
61
|
-
appKeyEur:
|
|
62
|
-
paymentWidgetSrcUrl:
|
|
63
|
-
navigate:
|
|
57
|
+
}, Ge = ({
|
|
58
|
+
baseUrl: E,
|
|
59
|
+
checkoutSdkKey: R,
|
|
60
|
+
appKey: q,
|
|
61
|
+
appKeyEur: P,
|
|
62
|
+
paymentWidgetSrcUrl: O,
|
|
63
|
+
navigate: $
|
|
64
64
|
}) => {
|
|
65
|
-
const
|
|
66
|
-
error:
|
|
67
|
-
message:
|
|
68
|
-
loader:
|
|
69
|
-
} =
|
|
65
|
+
const o = Re(), { showAlertMessage: l } = ze(), { openDialog: I } = qe(), k = C((t) => t.app.features), h = C(ce), ee = h.loader, u = h.message, M = h.banks, H = h.iban, [F, j] = W(!1), [te, f] = W(!1), [v, ne] = W(""), [A, re] = W(""), G = C(le), K = G.data, { error: D, message: T, loader: L } = G, J = C(me), g = J.data, {
|
|
66
|
+
error: B,
|
|
67
|
+
message: S,
|
|
68
|
+
loader: oe
|
|
69
|
+
} = J;
|
|
70
70
|
d(() => {
|
|
71
71
|
if (u) {
|
|
72
|
-
|
|
72
|
+
j(!1);
|
|
73
73
|
const t = typeof u == "string" ? u : String(u);
|
|
74
|
-
(t.includes("created") || t.includes("successfully") || t.includes("Account")) &&
|
|
74
|
+
(t.includes("created") || t.includes("successfully") || t.includes("Account")) && l({ message: t, type: "success" });
|
|
75
75
|
}
|
|
76
76
|
}, [u]), d(() => {
|
|
77
|
-
|
|
78
|
-
}, [
|
|
79
|
-
|
|
80
|
-
}, [
|
|
81
|
-
D &&
|
|
77
|
+
B && l({ message: B });
|
|
78
|
+
}, [B]), d(() => {
|
|
79
|
+
S && l({ message: S, type: "success" });
|
|
80
|
+
}, [S]), d(() => {
|
|
81
|
+
D && l({ message: D });
|
|
82
82
|
}, [D]), d(() => {
|
|
83
|
-
|
|
84
|
-
}, [
|
|
85
|
-
|
|
83
|
+
T && (f(!1), l({ message: T, type: "success" }));
|
|
84
|
+
}, [T]), d(() => (K.length <= 0 && o(de()), g.length <= 0 && o(ue()), o(be()), o(xe()), () => {
|
|
85
|
+
o(pe("")), o(he(""));
|
|
86
86
|
}), []);
|
|
87
|
-
const
|
|
88
|
-
if (!I)
|
|
89
|
-
return i({ message: "Please provide the wallet name" }), !1;
|
|
87
|
+
const ae = () => {
|
|
90
88
|
if (!v)
|
|
91
|
-
return
|
|
89
|
+
return l({ message: "Please provide the wallet name" }), !1;
|
|
90
|
+
if (!A)
|
|
91
|
+
return l({
|
|
92
92
|
message: "Please provide the wallet private key"
|
|
93
93
|
}), !1;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
name:
|
|
97
|
-
privatekey: Buffer.from(
|
|
94
|
+
L || o(
|
|
95
|
+
fe({
|
|
96
|
+
name: v,
|
|
97
|
+
privatekey: Buffer.from(A).toString("base64")
|
|
98
98
|
})
|
|
99
99
|
);
|
|
100
|
-
},
|
|
101
|
-
|
|
102
|
-
icon:
|
|
100
|
+
}, se = (t) => {
|
|
101
|
+
I({
|
|
102
|
+
icon: ye,
|
|
103
103
|
height: "450px",
|
|
104
104
|
title: "Are you sure you want to delete?",
|
|
105
105
|
message: "This action cannot be undone.",
|
|
106
106
|
onConfirm: () => {
|
|
107
|
-
|
|
107
|
+
o(Ne(t));
|
|
108
108
|
},
|
|
109
109
|
cancelButtonShow: !0
|
|
110
110
|
});
|
|
111
111
|
}, p = ({
|
|
112
112
|
data: t,
|
|
113
|
-
type:
|
|
113
|
+
type: a,
|
|
114
114
|
children: b
|
|
115
115
|
}) => {
|
|
116
|
-
let
|
|
117
|
-
return
|
|
118
|
-
|
|
119
|
-
|
|
116
|
+
let m, x, _, N;
|
|
117
|
+
return a === "connectedWallet" || a === "linkedWallet" ? "name" in t && "address" in t && (m = t.name, x = t.address) : a === "iban" ? ("accountName" in t && "accountNumber" in t && (m = t.accountName, x = `${t.ownerFirstName} ${t.ownerLastName}: ${t.accountNumber}`), "balance" in t && "currency" in t && (_ = t.balance, N = t.currency)) : ("accountName" in t && "accountNumber" in t && (m = t.accountName, x = t.accountNumber), "balance" in t && "currency" in t && (_ = t.balance, N = t.currency)), /* @__PURE__ */ n(s, { className: r["account-item"], children: [
|
|
118
|
+
a === "bankAccount" && F && "id" in t && /* @__PURE__ */ e(
|
|
119
|
+
w,
|
|
120
120
|
{
|
|
121
|
-
className:
|
|
122
|
-
onClick: () =>
|
|
123
|
-
children: /* @__PURE__ */ e(
|
|
121
|
+
className: r["remove-icon"],
|
|
122
|
+
onClick: () => se(t.id),
|
|
123
|
+
children: /* @__PURE__ */ e(Ie, {})
|
|
124
124
|
}
|
|
125
125
|
),
|
|
126
|
-
/* @__PURE__ */
|
|
127
|
-
/* @__PURE__ */ e(
|
|
128
|
-
|
|
129
|
-
/* @__PURE__ */
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
126
|
+
/* @__PURE__ */ n(c, { container: !0, width: "100%", alignItems: "center", children: [
|
|
127
|
+
/* @__PURE__ */ e(c, { size: 8, children: /* @__PURE__ */ n(c, { container: !0, width: "100%", children: [
|
|
128
|
+
/* @__PURE__ */ e(c, { size: { xs: 2, md: 1.5 }, className: "content-center", children: /* @__PURE__ */ e("img", { src: we, alt: "Icon", height: 28, width: 28 }) }),
|
|
129
|
+
/* @__PURE__ */ n(c, { size: { xs: 10, md: 10.5 }, children: [
|
|
130
|
+
/* @__PURE__ */ e(
|
|
131
|
+
i,
|
|
132
|
+
{
|
|
133
|
+
variant: "body1",
|
|
134
|
+
component: "p",
|
|
135
|
+
className: `${r["account-item-text"]} ${r["primary-color"]}`,
|
|
136
|
+
children: /* @__PURE__ */ e("strong", { children: m })
|
|
137
|
+
}
|
|
138
|
+
),
|
|
139
|
+
/* @__PURE__ */ e(
|
|
140
|
+
i,
|
|
141
|
+
{
|
|
142
|
+
variant: "caption",
|
|
143
|
+
component: "p",
|
|
144
|
+
className: `${r["account-item-text"]} ${r["secondary-color"]}`,
|
|
145
|
+
children: /* @__PURE__ */ e("strong", { children: x })
|
|
146
|
+
}
|
|
147
|
+
)
|
|
148
|
+
] })
|
|
149
|
+
] }) }),
|
|
150
|
+
typeof _ == "number" && N && /* @__PURE__ */ e(c, { size: 4, children: /* @__PURE__ */ n(s, { sx: { textAlign: "right" }, children: [
|
|
138
151
|
/* @__PURE__ */ e(
|
|
139
|
-
|
|
152
|
+
i,
|
|
140
153
|
{
|
|
141
154
|
variant: "caption",
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
children: /* @__PURE__ */ e("strong", { children: _ })
|
|
155
|
+
sx: { textTransform: "uppercase", color: "text.secondary" },
|
|
156
|
+
children: "Balance"
|
|
145
157
|
}
|
|
146
|
-
)
|
|
147
|
-
|
|
148
|
-
|
|
158
|
+
),
|
|
159
|
+
/* @__PURE__ */ n(i, { variant: "subtitle1", color: "primary", children: [
|
|
160
|
+
_,
|
|
161
|
+
" ",
|
|
162
|
+
N
|
|
163
|
+
] })
|
|
164
|
+
] }) })
|
|
165
|
+
] }),
|
|
149
166
|
b
|
|
150
167
|
] });
|
|
151
|
-
},
|
|
152
|
-
const
|
|
168
|
+
}, ie = (t) => {
|
|
169
|
+
const a = g.length;
|
|
153
170
|
let b = !1;
|
|
154
|
-
for (let
|
|
155
|
-
if (g[
|
|
171
|
+
for (let m = 0; m < a; m++)
|
|
172
|
+
if (g[m].address.toLowerCase() === t.toLowerCase()) {
|
|
156
173
|
b = !0;
|
|
157
174
|
break;
|
|
158
175
|
}
|
|
159
|
-
b ?
|
|
176
|
+
b ? l({
|
|
160
177
|
message: "This wallet address is already connected."
|
|
161
|
-
}) :
|
|
162
|
-
},
|
|
163
|
-
|
|
178
|
+
}) : o(ge(t));
|
|
179
|
+
}, Q = (t) => {
|
|
180
|
+
o(_e({ currency: t }));
|
|
164
181
|
};
|
|
165
|
-
return /* @__PURE__ */ n(
|
|
166
|
-
/* @__PURE__ */ e(s, { className:
|
|
167
|
-
/* @__PURE__ */ n(
|
|
168
|
-
/* @__PURE__ */ n(
|
|
182
|
+
return /* @__PURE__ */ n(V, { children: [
|
|
183
|
+
/* @__PURE__ */ e(s, { className: r.container, children: /* @__PURE__ */ n(c, { spacing: 2, container: !0, width: "100%", children: [
|
|
184
|
+
/* @__PURE__ */ n(c, { size: { md: 6, xs: 12 }, children: [
|
|
185
|
+
/* @__PURE__ */ n(z, { p: 3, children: [
|
|
169
186
|
/* @__PURE__ */ e(
|
|
170
|
-
|
|
187
|
+
i,
|
|
171
188
|
{
|
|
172
|
-
className:
|
|
189
|
+
className: r.heading,
|
|
173
190
|
variant: "h6",
|
|
174
191
|
component: "span",
|
|
175
192
|
children: /* @__PURE__ */ e("strong", { children: "Linked Wallets" })
|
|
176
193
|
}
|
|
177
194
|
),
|
|
178
195
|
/* @__PURE__ */ e(
|
|
179
|
-
|
|
196
|
+
X,
|
|
180
197
|
{
|
|
181
|
-
title: /* @__PURE__ */ e(s, { sx: { whiteSpace: "pre-line" }, children:
|
|
198
|
+
title: /* @__PURE__ */ e(s, { sx: { whiteSpace: "pre-line" }, children: We }),
|
|
182
199
|
placement: "bottom",
|
|
183
|
-
children: /* @__PURE__ */ e(
|
|
184
|
-
|
|
200
|
+
children: /* @__PURE__ */ e(w, { className: r["info-icon"], children: /* @__PURE__ */ e(
|
|
201
|
+
Y,
|
|
185
202
|
{
|
|
186
203
|
sx: {
|
|
187
204
|
fontSize: "26px",
|
|
@@ -191,10 +208,10 @@ import '../../../assets/index3.css';const Me = "_container_arwo8_1", He = "_head
|
|
|
191
208
|
) })
|
|
192
209
|
}
|
|
193
210
|
),
|
|
194
|
-
|
|
195
|
-
|
|
211
|
+
L && /* @__PURE__ */ e(s, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(y, { size: 50 }) }),
|
|
212
|
+
K.map((t, a) => /* @__PURE__ */ e(p, { type: "linkedWallet", data: t }, a)),
|
|
196
213
|
/* @__PURE__ */ e(
|
|
197
|
-
|
|
214
|
+
U,
|
|
198
215
|
{
|
|
199
216
|
sx: { mt: 4 },
|
|
200
217
|
onClick: () => f(!0),
|
|
@@ -203,23 +220,23 @@ import '../../../assets/index3.css';const Me = "_container_arwo8_1", He = "_head
|
|
|
203
220
|
}
|
|
204
221
|
)
|
|
205
222
|
] }),
|
|
206
|
-
/* @__PURE__ */ n(
|
|
223
|
+
/* @__PURE__ */ n(z, { p: 3, mt: 2, children: [
|
|
207
224
|
/* @__PURE__ */ e(
|
|
208
|
-
|
|
225
|
+
i,
|
|
209
226
|
{
|
|
210
|
-
className:
|
|
227
|
+
className: r.heading,
|
|
211
228
|
variant: "h6",
|
|
212
229
|
component: "span",
|
|
213
230
|
children: /* @__PURE__ */ e("strong", { children: "Connected Wallets" })
|
|
214
231
|
}
|
|
215
232
|
),
|
|
216
233
|
/* @__PURE__ */ e(
|
|
217
|
-
|
|
234
|
+
X,
|
|
218
235
|
{
|
|
219
|
-
title: /* @__PURE__ */ e(s, { sx: { whiteSpace: "pre-line" }, children:
|
|
236
|
+
title: /* @__PURE__ */ e(s, { sx: { whiteSpace: "pre-line" }, children: Ce }),
|
|
220
237
|
placement: "bottom",
|
|
221
|
-
children: /* @__PURE__ */ e(
|
|
222
|
-
|
|
238
|
+
children: /* @__PURE__ */ e(w, { className: r["info-icon"], children: /* @__PURE__ */ e(
|
|
239
|
+
Y,
|
|
223
240
|
{
|
|
224
241
|
sx: {
|
|
225
242
|
fontSize: "26px",
|
|
@@ -229,115 +246,115 @@ import '../../../assets/index3.css';const Me = "_container_arwo8_1", He = "_head
|
|
|
229
246
|
) })
|
|
230
247
|
}
|
|
231
248
|
),
|
|
232
|
-
|
|
233
|
-
g.map((t,
|
|
249
|
+
oe && /* @__PURE__ */ e(s, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(y, { size: 50 }) }),
|
|
250
|
+
g.map((t, a) => /* @__PURE__ */ e(p, { type: "connectedWallet", data: t }, a)),
|
|
234
251
|
/* @__PURE__ */ e(
|
|
235
|
-
|
|
252
|
+
Le,
|
|
236
253
|
{
|
|
237
|
-
addressHandler:
|
|
254
|
+
addressHandler: ie,
|
|
238
255
|
btnClass: "wallet-btn"
|
|
239
256
|
}
|
|
240
257
|
)
|
|
241
258
|
] })
|
|
242
259
|
] }),
|
|
243
|
-
/* @__PURE__ */ n(
|
|
260
|
+
/* @__PURE__ */ n(c, { size: { md: 6, xs: 12 }, children: [
|
|
244
261
|
k.eWallet && /* @__PURE__ */ e(s, { mb: 2, children: /* @__PURE__ */ e(
|
|
245
|
-
|
|
262
|
+
Se,
|
|
246
263
|
{
|
|
247
|
-
openDialog:
|
|
248
|
-
dispatch:
|
|
249
|
-
iban:
|
|
250
|
-
baseUrl:
|
|
251
|
-
checkoutSdkKey:
|
|
252
|
-
appKey:
|
|
253
|
-
appKeyEur:
|
|
254
|
-
paymentWidgetSrcUrl:
|
|
255
|
-
navigate:
|
|
264
|
+
openDialog: I,
|
|
265
|
+
dispatch: o,
|
|
266
|
+
iban: H,
|
|
267
|
+
baseUrl: E,
|
|
268
|
+
checkoutSdkKey: R,
|
|
269
|
+
appKey: q,
|
|
270
|
+
appKeyEur: P,
|
|
271
|
+
paymentWidgetSrcUrl: O,
|
|
272
|
+
navigate: $,
|
|
256
273
|
AccountItem: p,
|
|
257
|
-
createIbanRequest:
|
|
274
|
+
createIbanRequest: Q
|
|
258
275
|
}
|
|
259
276
|
) }),
|
|
260
277
|
k.iban && /* @__PURE__ */ e(
|
|
261
|
-
|
|
278
|
+
Be,
|
|
262
279
|
{
|
|
263
|
-
openDialog:
|
|
264
|
-
dispatch:
|
|
265
|
-
iban:
|
|
266
|
-
baseUrl:
|
|
267
|
-
checkoutSdkKey:
|
|
268
|
-
appKey:
|
|
269
|
-
appKeyEur:
|
|
270
|
-
paymentWidgetSrcUrl:
|
|
271
|
-
navigate:
|
|
280
|
+
openDialog: I,
|
|
281
|
+
dispatch: o,
|
|
282
|
+
iban: H,
|
|
283
|
+
baseUrl: E,
|
|
284
|
+
checkoutSdkKey: R,
|
|
285
|
+
appKey: q,
|
|
286
|
+
appKeyEur: P,
|
|
287
|
+
paymentWidgetSrcUrl: O,
|
|
288
|
+
navigate: $,
|
|
272
289
|
AccountItem: p,
|
|
273
|
-
createIbanRequest:
|
|
290
|
+
createIbanRequest: Q
|
|
274
291
|
}
|
|
275
292
|
),
|
|
276
|
-
/* @__PURE__ */ e(
|
|
277
|
-
/* @__PURE__ */ e(
|
|
278
|
-
|
|
279
|
-
|
|
293
|
+
/* @__PURE__ */ e(z, { mt: 2, children: /* @__PURE__ */ n(s, { p: 3, mt: k.iban ? 2 : 0, children: [
|
|
294
|
+
/* @__PURE__ */ e(i, { className: r.heading, variant: "h6", children: /* @__PURE__ */ e("strong", { children: "Bank Accounts" }) }),
|
|
295
|
+
M.length > 0 && /* @__PURE__ */ n(
|
|
296
|
+
Pe,
|
|
280
297
|
{
|
|
281
|
-
className: `${
|
|
298
|
+
className: `${F ? r["delete-disable"] : r["confirm-edit"]} normal-text`,
|
|
282
299
|
sx: { mt: 3, mb: 3 },
|
|
283
300
|
variant: "contained",
|
|
284
|
-
onClick: () =>
|
|
301
|
+
onClick: () => j((t) => !t),
|
|
285
302
|
children: [
|
|
286
303
|
/* @__PURE__ */ e(ke, {}),
|
|
287
304
|
"Delete"
|
|
288
305
|
]
|
|
289
306
|
}
|
|
290
307
|
),
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
/* @__PURE__ */ n(
|
|
294
|
-
/* @__PURE__ */ e(
|
|
295
|
-
/* @__PURE__ */ e(
|
|
308
|
+
ee && /* @__PURE__ */ e(s, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(y, { size: 50 }) }),
|
|
309
|
+
M.map((t, a) => /* @__PURE__ */ e(p, { type: "bankAccount", data: t }, a)),
|
|
310
|
+
/* @__PURE__ */ n(Oe, { mt: 4, gap: 1, children: [
|
|
311
|
+
/* @__PURE__ */ e(Te, {}),
|
|
312
|
+
/* @__PURE__ */ e(i, { className: "text-center", variant: "h6", children: /* @__PURE__ */ e("strong", { children: "OR" }) }),
|
|
296
313
|
/* @__PURE__ */ e(De, {})
|
|
297
314
|
] })
|
|
298
315
|
] }) })
|
|
299
316
|
] })
|
|
300
317
|
] }) }),
|
|
301
318
|
/* @__PURE__ */ n(
|
|
302
|
-
|
|
319
|
+
$e,
|
|
303
320
|
{
|
|
304
321
|
fullWidth: !0,
|
|
305
|
-
open:
|
|
322
|
+
open: te,
|
|
306
323
|
onClose: () => f(!1),
|
|
307
|
-
TransitionComponent:
|
|
324
|
+
TransitionComponent: Ae,
|
|
308
325
|
children: [
|
|
309
|
-
/* @__PURE__ */ n(
|
|
310
|
-
/* @__PURE__ */ e(
|
|
326
|
+
/* @__PURE__ */ n(He, { className: "buy-modal-text-color", children: [
|
|
327
|
+
/* @__PURE__ */ e(i, { variant: "subtitle1", component: "p", children: /* @__PURE__ */ e("strong", { children: "Wallets" }) }),
|
|
311
328
|
/* @__PURE__ */ e(
|
|
312
|
-
|
|
329
|
+
w,
|
|
313
330
|
{
|
|
314
331
|
"aria-label": "close",
|
|
315
332
|
onClick: () => f(!1),
|
|
316
333
|
className: "menu-buttons",
|
|
317
|
-
children: /* @__PURE__ */ e(
|
|
334
|
+
children: /* @__PURE__ */ e(ve, {})
|
|
318
335
|
}
|
|
319
336
|
)
|
|
320
337
|
] }),
|
|
321
|
-
/* @__PURE__ */ n(
|
|
322
|
-
/* @__PURE__ */ e(
|
|
338
|
+
/* @__PURE__ */ n(Me, { dividers: !0, children: [
|
|
339
|
+
/* @__PURE__ */ e(i, { className: "text-center buy-modal-text-color", variant: "h5", children: /* @__PURE__ */ e("strong", { children: "Add Linked Wallet" }) }),
|
|
323
340
|
/* @__PURE__ */ e(
|
|
324
|
-
|
|
341
|
+
Z,
|
|
325
342
|
{
|
|
326
343
|
label: "Name",
|
|
327
|
-
value:
|
|
328
|
-
onChangeHandler: (t) =>
|
|
344
|
+
value: v,
|
|
345
|
+
onChangeHandler: (t) => ne(t)
|
|
329
346
|
}
|
|
330
347
|
),
|
|
331
348
|
/* @__PURE__ */ e(
|
|
332
|
-
|
|
349
|
+
Z,
|
|
333
350
|
{
|
|
334
351
|
label: "Private Key",
|
|
335
|
-
value:
|
|
336
|
-
onChangeHandler: (t) =>
|
|
352
|
+
value: A,
|
|
353
|
+
onChangeHandler: (t) => re(t)
|
|
337
354
|
}
|
|
338
355
|
),
|
|
339
|
-
/* @__PURE__ */ e(
|
|
340
|
-
/* @__PURE__ */ e(
|
|
356
|
+
/* @__PURE__ */ e(U, { sx: { mt: 4 }, onClick: ae, fullWidth: !0, children: /* @__PURE__ */ e("strong", { children: L ? /* @__PURE__ */ n(V, { children: [
|
|
357
|
+
/* @__PURE__ */ e(y, { size: 15, color: "inherit" }),
|
|
341
358
|
" Processing..."
|
|
342
359
|
] }) : "Import Wallet" }) })
|
|
343
360
|
] })
|
|
@@ -345,7 +362,7 @@ import '../../../assets/index3.css';const Me = "_container_arwo8_1", He = "_head
|
|
|
345
362
|
}
|
|
346
363
|
)
|
|
347
364
|
] });
|
|
348
|
-
},
|
|
365
|
+
}, Rt = Ee(Ge);
|
|
349
366
|
export {
|
|
350
|
-
|
|
367
|
+
Rt as default
|
|
351
368
|
};
|
|
@@ -513,6 +513,31 @@ const n = () => /* @__PURE__ */ o(r, { children: [
|
|
|
513
513
|
"10. How to Contact Us",
|
|
514
514
|
/* @__PURE__ */ e("br", {}),
|
|
515
515
|
"a. If you have any questions or concerns about the Everest Privacy Notice or its implementation please contact us via email by contact@Everest.org."
|
|
516
|
+
] }),
|
|
517
|
+
/* @__PURE__ */ o(t, { variant: "body1", mt: 2, children: [
|
|
518
|
+
"Everest Network Ltd, Tower Business Centre 2nd floor, TRIQ IT- TORRI, SWATAR BIRKIRKARA, BKR 4013, Malta",
|
|
519
|
+
/* @__PURE__ */ e("br", {}),
|
|
520
|
+
/* @__PURE__ */ e("br", {}),
|
|
521
|
+
"contact@everest.org",
|
|
522
|
+
/* @__PURE__ */ e("br", {}),
|
|
523
|
+
/* @__PURE__ */ e("br", {}),
|
|
524
|
+
"+(356) 2546-6021",
|
|
525
|
+
/* @__PURE__ */ e("br", {}),
|
|
526
|
+
/* @__PURE__ */ e("br", {}),
|
|
527
|
+
"See",
|
|
528
|
+
" ",
|
|
529
|
+
/* @__PURE__ */ e(
|
|
530
|
+
"a",
|
|
531
|
+
{
|
|
532
|
+
href: "https://everest.org/terms-of-use",
|
|
533
|
+
target: "_blank",
|
|
534
|
+
rel: "noopener noreferrer",
|
|
535
|
+
style: { color: "inherit", textDecoration: "underline" },
|
|
536
|
+
children: "Terms and Conditions"
|
|
537
|
+
}
|
|
538
|
+
),
|
|
539
|
+
" ",
|
|
540
|
+
"at everest.org"
|
|
516
541
|
] })
|
|
517
542
|
] });
|
|
518
543
|
export {
|