everest-npm-features 0.0.56 → 0.0.57
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/eWallet.js +31 -30
- package/dist/components/Wallet/Account/iban.js +36 -35
- package/dist/components/Wallet/Account/ibanItem.d.ts +1 -0
- package/dist/components/Wallet/Account/ibanItem.js +156 -129
- package/dist/components/Wallet/Account/index.js +182 -199
- package/package.json +1 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { jsx as e, jsxs as r, Fragment as
|
|
1
|
+
import { jsx as e, jsxs as r, Fragment as l } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as W, useState as w, useEffect as A } from "react";
|
|
3
3
|
import { I as N } from "../../../Info-BVeUSPyk.js";
|
|
4
|
-
import { DIALOG_SUCCESS_ICON as P, FEATURE_EWALLET as
|
|
4
|
+
import { DIALOG_SUCCESS_ICON as P, FEATURE_EWALLET as p } from "../../../util/constants.js";
|
|
5
5
|
import { M as T } from "../../../tooltip-3UvETWtS.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { AuthInnerContainer as
|
|
6
|
+
import D from "../Shared/noData.js";
|
|
7
|
+
import b from "./createIban.js";
|
|
8
|
+
import { AuthInnerContainer as v } from "../Shared/Container/index.js";
|
|
9
9
|
import B from "./ibanItem.js";
|
|
10
10
|
import { B as t } from "../../../Box-B0YSYLco.js";
|
|
11
11
|
import { G as a } from "../../../Grid-CFe3amXO.js";
|
|
12
|
-
import { T as
|
|
12
|
+
import { T as h } from "../../../Typography-pAaje37G.js";
|
|
13
13
|
import { I as L } from "../../../IconButton-DHm-hucF.js";
|
|
14
14
|
import { C as z } from "../../../CircularProgress-xZA3lvba.js";
|
|
15
15
|
const J = ({
|
|
16
|
-
dispatch:
|
|
16
|
+
dispatch: u,
|
|
17
17
|
openDialog: i,
|
|
18
|
-
appKey:
|
|
19
|
-
appKeyEur:
|
|
20
|
-
paymentWidgetSrcUrl:
|
|
18
|
+
appKey: d,
|
|
19
|
+
appKeyEur: f,
|
|
20
|
+
paymentWidgetSrcUrl: y,
|
|
21
21
|
iban: o,
|
|
22
|
-
navigate:
|
|
22
|
+
navigate: c,
|
|
23
23
|
AccountItem: x,
|
|
24
|
-
createIbanRequest:
|
|
24
|
+
createIbanRequest: C
|
|
25
25
|
}) => {
|
|
26
|
-
const
|
|
26
|
+
const s = o.data, I = o.loader, g = W(""), [_, E] = w("");
|
|
27
27
|
return A(() => {
|
|
28
28
|
new URLSearchParams(window.location.search).get("paymentStatus") === "success" && i({
|
|
29
29
|
title: "Payment Success",
|
|
@@ -32,10 +32,10 @@ const J = ({
|
|
|
32
32
|
width: "575px",
|
|
33
33
|
confirmButtonText: "Continue"
|
|
34
34
|
});
|
|
35
|
-
}, []), /* @__PURE__ */ e(
|
|
35
|
+
}, []), /* @__PURE__ */ e(v, { children: /* @__PURE__ */ r(t, { p: 3, children: [
|
|
36
36
|
/* @__PURE__ */ r(a, { spacing: 2, container: !0, alignItems: "center", children: [
|
|
37
37
|
/* @__PURE__ */ r(a, { size: 8, children: [
|
|
38
|
-
/* @__PURE__ */ e(
|
|
38
|
+
/* @__PURE__ */ e(h, { color: "primary", variant: "h6", component: "span", children: /* @__PURE__ */ e("strong", { children: "E-Wallet" }) }),
|
|
39
39
|
/* @__PURE__ */ e(
|
|
40
40
|
T,
|
|
41
41
|
{
|
|
@@ -46,20 +46,20 @@ const J = ({
|
|
|
46
46
|
)
|
|
47
47
|
] }),
|
|
48
48
|
/* @__PURE__ */ e(a, { size: 4, children: /* @__PURE__ */ e(t, { sx: { textAlign: "right" }, children: /* @__PURE__ */ e(
|
|
49
|
-
|
|
49
|
+
b,
|
|
50
50
|
{
|
|
51
51
|
openDialog: i,
|
|
52
|
-
createIbanRequest:
|
|
52
|
+
createIbanRequest: C,
|
|
53
53
|
iban: o,
|
|
54
|
-
navigate:
|
|
55
|
-
currency:
|
|
54
|
+
navigate: c,
|
|
55
|
+
currency: g,
|
|
56
56
|
setIbanCurrency: E,
|
|
57
|
-
from:
|
|
57
|
+
from: p
|
|
58
58
|
}
|
|
59
59
|
) }) })
|
|
60
60
|
] }),
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
I ? /* @__PURE__ */ e(t, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(z, { color: "primary", size: 50 }) }) : /* @__PURE__ */ r(l, { children: [
|
|
62
|
+
s.length > 0 ? /* @__PURE__ */ e(l, { children: s.map((n, m) => {
|
|
63
63
|
const S = {
|
|
64
64
|
...n,
|
|
65
65
|
accountName: `E-Wallet - ${n.currency ?? ""}`
|
|
@@ -69,17 +69,18 @@ const J = ({
|
|
|
69
69
|
{
|
|
70
70
|
data: S,
|
|
71
71
|
AccountItem: x,
|
|
72
|
-
dispatch:
|
|
73
|
-
appKey:
|
|
74
|
-
appKeyEur:
|
|
75
|
-
paymentWidgetSrcUrl:
|
|
72
|
+
dispatch: u,
|
|
73
|
+
appKey: d,
|
|
74
|
+
appKeyEur: f,
|
|
75
|
+
paymentWidgetSrcUrl: y,
|
|
76
76
|
iban: o,
|
|
77
|
-
|
|
77
|
+
navigate: c,
|
|
78
|
+
from: p
|
|
78
79
|
},
|
|
79
|
-
|
|
80
|
+
m
|
|
80
81
|
);
|
|
81
|
-
}) }) : /* @__PURE__ */ e(
|
|
82
|
-
/* @__PURE__ */ e(t, { mt: 3, textAlign: "center", children: /* @__PURE__ */ r(
|
|
82
|
+
}) }) : /* @__PURE__ */ e(D, { text: "You currently have no E-Wallets" }),
|
|
83
|
+
/* @__PURE__ */ e(t, { mt: 3, textAlign: "center", children: /* @__PURE__ */ r(h, { variant: "caption", color: "secondary", children: [
|
|
83
84
|
"Powered by",
|
|
84
85
|
" ",
|
|
85
86
|
/* @__PURE__ */ e(
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useRef as
|
|
1
|
+
import { jsx as r, jsxs as o, Fragment as l } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as S, useState as g, useEffect as B } from "react";
|
|
3
3
|
import { I as N } from "../../../Info-BVeUSPyk.js";
|
|
4
|
-
import { DIALOG_SUCCESS_ICON as T, FEATURE_VIRTUAL_IBAN as
|
|
4
|
+
import { DIALOG_SUCCESS_ICON as T, FEATURE_VIRTUAL_IBAN as p } from "../../../util/constants.js";
|
|
5
5
|
import { M as w } from "../../../tooltip-3UvETWtS.js";
|
|
6
6
|
import b from "../Shared/noData.js";
|
|
7
|
-
import
|
|
8
|
-
import { AuthInnerContainer as
|
|
9
|
-
import
|
|
7
|
+
import D from "./createIban.js";
|
|
8
|
+
import { AuthInnerContainer as E } from "../Shared/Container/index.js";
|
|
9
|
+
import P from "./ibanItem.js";
|
|
10
10
|
import { B as t } from "../../../Box-B0YSYLco.js";
|
|
11
11
|
import { G as n } from "../../../Grid-CFe3amXO.js";
|
|
12
|
-
import { T as
|
|
12
|
+
import { T as v } 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";
|
|
15
15
|
const J = ({
|
|
16
|
-
dispatch:
|
|
16
|
+
dispatch: u,
|
|
17
17
|
openDialog: a,
|
|
18
|
-
appKey:
|
|
19
|
-
appKeyEur:
|
|
20
|
-
paymentWidgetSrcUrl:
|
|
21
|
-
iban:
|
|
22
|
-
navigate:
|
|
18
|
+
appKey: f,
|
|
19
|
+
appKeyEur: h,
|
|
20
|
+
paymentWidgetSrcUrl: d,
|
|
21
|
+
iban: e,
|
|
22
|
+
navigate: i,
|
|
23
23
|
AccountItem: I,
|
|
24
24
|
createIbanRequest: y
|
|
25
25
|
}) => {
|
|
26
|
-
const
|
|
26
|
+
const c = e.data, x = e.loader, C = S(""), [R, A] = g("");
|
|
27
27
|
return B(() => {
|
|
28
28
|
new URLSearchParams(window.location.search).get("paymentStatus") === "success" && a({
|
|
29
29
|
title: "Payment Success",
|
|
@@ -32,46 +32,47 @@ const J = ({
|
|
|
32
32
|
width: "575px",
|
|
33
33
|
confirmButtonText: "Continue"
|
|
34
34
|
});
|
|
35
|
-
}, []), /* @__PURE__ */
|
|
35
|
+
}, []), /* @__PURE__ */ r(E, { children: /* @__PURE__ */ o(t, { p: 3, children: [
|
|
36
36
|
/* @__PURE__ */ o(n, { spacing: 2, container: !0, alignItems: "center", children: [
|
|
37
37
|
/* @__PURE__ */ o(n, { size: 8, children: [
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
/* @__PURE__ */
|
|
38
|
+
/* @__PURE__ */ r(v, { color: "primary", variant: "h6", component: "span", children: /* @__PURE__ */ r("strong", { children: "Everest Accounts (Virtual IBAN)" }) }),
|
|
39
|
+
/* @__PURE__ */ r(
|
|
40
40
|
w,
|
|
41
41
|
{
|
|
42
|
-
title: /* @__PURE__ */
|
|
42
|
+
title: /* @__PURE__ */ r(t, { sx: { whiteSpace: "pre-line" }, children: "Create a Virtual IBAN of selected currency. This requires KYC" }),
|
|
43
43
|
placement: "bottom",
|
|
44
|
-
children: /* @__PURE__ */
|
|
44
|
+
children: /* @__PURE__ */ r(z, { className: "info-fee-icon", children: /* @__PURE__ */ r(N, { sx: { fontSize: "26px", color: "#D9D9D9" } }) })
|
|
45
45
|
}
|
|
46
46
|
)
|
|
47
47
|
] }),
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
-
|
|
48
|
+
/* @__PURE__ */ r(n, { size: 4, children: /* @__PURE__ */ r(t, { sx: { textAlign: "right" }, children: /* @__PURE__ */ r(
|
|
49
|
+
D,
|
|
50
50
|
{
|
|
51
51
|
openDialog: a,
|
|
52
52
|
createIbanRequest: y,
|
|
53
|
-
iban:
|
|
54
|
-
navigate:
|
|
53
|
+
iban: e,
|
|
54
|
+
navigate: i,
|
|
55
55
|
currency: C,
|
|
56
56
|
setIbanCurrency: A,
|
|
57
|
-
from:
|
|
57
|
+
from: p
|
|
58
58
|
}
|
|
59
59
|
) }) })
|
|
60
60
|
] }),
|
|
61
|
-
x ? /* @__PURE__ */
|
|
62
|
-
|
|
61
|
+
x ? /* @__PURE__ */ r(t, { mt: 4, className: "flex-center", children: /* @__PURE__ */ r(L, { color: "primary", size: 50 }) }) : /* @__PURE__ */ r(l, { children: c.length > 0 ? /* @__PURE__ */ r(l, { children: c.map((s, m) => /* @__PURE__ */ r(
|
|
62
|
+
P,
|
|
63
63
|
{
|
|
64
|
-
data:
|
|
64
|
+
data: s,
|
|
65
65
|
AccountItem: I,
|
|
66
|
-
dispatch:
|
|
67
|
-
appKey:
|
|
68
|
-
appKeyEur:
|
|
69
|
-
paymentWidgetSrcUrl:
|
|
70
|
-
iban:
|
|
71
|
-
|
|
66
|
+
dispatch: u,
|
|
67
|
+
appKey: f,
|
|
68
|
+
appKeyEur: h,
|
|
69
|
+
paymentWidgetSrcUrl: d,
|
|
70
|
+
iban: e,
|
|
71
|
+
navigate: i,
|
|
72
|
+
from: p
|
|
72
73
|
},
|
|
73
|
-
|
|
74
|
-
)) }) : /* @__PURE__ */
|
|
74
|
+
m
|
|
75
|
+
)) }) : /* @__PURE__ */ r(b, { text: "You currently have no IBAN Accounts" }) })
|
|
75
76
|
] }) });
|
|
76
77
|
};
|
|
77
78
|
export {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsx as e, Fragment as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsx as e, Fragment as v, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as a, useMemo as B, useEffect as E } from "react";
|
|
3
3
|
import "../../../constants-Dtk3Gd0Y.js";
|
|
4
|
-
import { v as
|
|
5
|
-
import
|
|
6
|
-
import { C as
|
|
7
|
-
import { C as
|
|
8
|
-
import
|
|
4
|
+
import { v as le } from "../../../order-DuPcaU0K.js";
|
|
5
|
+
import z from "../Shared/appButton.js";
|
|
6
|
+
import { C as se } from "../../../ContentCopy-coPwrEuz.js";
|
|
7
|
+
import { C as O } from "../../../Close-CNwiMz_O.js";
|
|
8
|
+
import L from "../../Shared/transition.js";
|
|
9
9
|
import "../../../index-DlQqWbXG.js";
|
|
10
10
|
import "../../../hoc/withThemeProvider.js";
|
|
11
|
-
import { u as
|
|
12
|
-
import { GBP_ISO3 as
|
|
11
|
+
import { u as $ } from "../../../react-redux-C7I9-1M6.js";
|
|
12
|
+
import { GBP_ISO3 as ae, FEATURE_EWALLET as ce } from "../../../util/constants.js";
|
|
13
13
|
import "../Shared/Auth/otpForm.js";
|
|
14
|
-
import { useSnackBarContext as
|
|
14
|
+
import { useSnackBarContext as V } from "../../../context/snackBarContext.js";
|
|
15
15
|
import "../../../util/conversions.js";
|
|
16
16
|
import "../../../index-CAoLi5Qq.js";
|
|
17
|
-
import
|
|
17
|
+
import ue from "../Shared/inputField.js";
|
|
18
18
|
import "../../../react-webcam-B3cXh1XT.js";
|
|
19
19
|
import "../../../tooltip-3UvETWtS.js";
|
|
20
20
|
import "../Shared/pin.js";
|
|
@@ -22,153 +22,180 @@ import "../../../moment-h96o7c8I.js";
|
|
|
22
22
|
import "../../../index.esm-BsMAMhYW.js";
|
|
23
23
|
import "../../../web3-u4qDZYpo.js";
|
|
24
24
|
import "../../../index-ceeCtFuh.js";
|
|
25
|
-
import
|
|
25
|
+
import de from "../Shared/CardCorp/index.js";
|
|
26
26
|
import "../../../context/dialogContext.js";
|
|
27
|
-
import
|
|
28
|
-
import { G as
|
|
29
|
-
import {
|
|
27
|
+
import me from "./sendIban.js";
|
|
28
|
+
import { G as p } from "../../../Grid-CFe3amXO.js";
|
|
29
|
+
import { T as m } from "../../../Typography-pAaje37G.js";
|
|
30
|
+
import { D as j, a as G } from "../../../DialogContent-BMwlOnbW.js";
|
|
30
31
|
import { D as H } from "../../../DialogTitle-CfS0bb2K.js";
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import { C as me } from "../../../CircularProgress-xZA3lvba.js";
|
|
32
|
+
import { I as S } from "../../../IconButton-DHm-hucF.js";
|
|
33
|
+
import { B as D } from "../../../Box-B0YSYLco.js";
|
|
34
|
+
import { C as pe } from "../../../CircularProgress-xZA3lvba.js";
|
|
35
35
|
const i = ({
|
|
36
|
-
label:
|
|
36
|
+
label: x,
|
|
37
37
|
value: r,
|
|
38
|
-
showCopyBtn:
|
|
38
|
+
showCopyBtn: k
|
|
39
39
|
}) => {
|
|
40
|
-
const { showAlertMessage:
|
|
41
|
-
return /* @__PURE__ */ o(
|
|
42
|
-
/* @__PURE__ */ e(
|
|
43
|
-
/* @__PURE__ */ o(
|
|
40
|
+
const { showAlertMessage: I } = V();
|
|
41
|
+
return /* @__PURE__ */ o(v, { children: [
|
|
42
|
+
/* @__PURE__ */ e(p, { size: 5, className: "d-flex items-center", children: /* @__PURE__ */ e("strong", { children: x }) }),
|
|
43
|
+
/* @__PURE__ */ o(p, { size: 7, className: "fw500 text-left d-flex items-center", children: [
|
|
44
44
|
r,
|
|
45
|
-
|
|
46
|
-
navigator.clipboard.writeText(r),
|
|
47
|
-
message: `${
|
|
45
|
+
k && /* @__PURE__ */ e(S, { onClick: () => {
|
|
46
|
+
navigator.clipboard.writeText(r), I({
|
|
47
|
+
message: `${x} has been copied successfully.`,
|
|
48
48
|
type: "success"
|
|
49
49
|
});
|
|
50
|
-
}, children: /* @__PURE__ */ e(
|
|
50
|
+
}, children: /* @__PURE__ */ e(se, { fontSize: "small", color: "primary" }) })
|
|
51
51
|
] })
|
|
52
52
|
] });
|
|
53
|
-
},
|
|
54
|
-
AccountItem:
|
|
53
|
+
}, Je = ({
|
|
54
|
+
AccountItem: x,
|
|
55
55
|
data: r,
|
|
56
|
-
appKey:
|
|
57
|
-
appKeyEur:
|
|
58
|
-
paymentWidgetSrcUrl:
|
|
56
|
+
appKey: k,
|
|
57
|
+
appKeyEur: I,
|
|
58
|
+
paymentWidgetSrcUrl: c,
|
|
59
59
|
dispatch: F,
|
|
60
|
-
iban:
|
|
60
|
+
iban: q,
|
|
61
|
+
navigate: J,
|
|
61
62
|
from: K
|
|
62
63
|
}) => {
|
|
63
|
-
var
|
|
64
|
-
const [Q,
|
|
64
|
+
var _;
|
|
65
|
+
const [Q, M] = a(!1), [X, Y] = a(!1), [f, U] = a(!1), [P, T] = a(""), [N, h] = a(null), [R, y] = a(null), [u, l] = a(!1), { showAlertMessage: b } = V(), s = K === ce, C = $(
|
|
65
66
|
(t) => t.order
|
|
66
|
-
),
|
|
67
|
-
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
},
|
|
71
|
-
const t = Number(
|
|
72
|
-
if (!
|
|
73
|
-
|
|
67
|
+
), w = C.v4Payment ?? null, g = C.v4PaymentLoader ?? !1, Z = $((t) => t.session.uuid), ee = () => {
|
|
68
|
+
T(""), h(null), y(null), l(!1), U(!0);
|
|
69
|
+
}, W = () => {
|
|
70
|
+
U(!1), T(""), h(null), y(null), l(!1);
|
|
71
|
+
}, re = () => {
|
|
72
|
+
const t = Number(P);
|
|
73
|
+
if (!P || Number.isNaN(t) || t <= 0) {
|
|
74
|
+
b({
|
|
74
75
|
message: "Please enter a valid amount greater than zero.",
|
|
75
76
|
type: "error"
|
|
76
77
|
});
|
|
77
78
|
return;
|
|
78
79
|
}
|
|
79
|
-
if (!
|
|
80
|
-
|
|
80
|
+
if (!k) {
|
|
81
|
+
b({
|
|
81
82
|
message: "Unable to identify application key.",
|
|
82
83
|
type: "error"
|
|
83
84
|
});
|
|
84
85
|
return;
|
|
85
86
|
}
|
|
86
|
-
if (!
|
|
87
|
-
|
|
87
|
+
if (!I) {
|
|
88
|
+
b({
|
|
88
89
|
message: "Unable to identify application EUR key.",
|
|
89
90
|
type: "error"
|
|
90
91
|
});
|
|
91
92
|
return;
|
|
92
93
|
}
|
|
93
|
-
const
|
|
94
|
+
const ie = Math.round(t * 100);
|
|
94
95
|
F(
|
|
95
|
-
|
|
96
|
-
apiKey:
|
|
96
|
+
le({
|
|
97
|
+
apiKey: I,
|
|
97
98
|
ccy: "EUR",
|
|
98
99
|
transaction_type: "CHECKOUT",
|
|
99
|
-
amount:
|
|
100
|
-
uuid:
|
|
100
|
+
amount: ie,
|
|
101
|
+
uuid: Z ?? void 0
|
|
101
102
|
})
|
|
102
103
|
), l(!0);
|
|
103
|
-
},
|
|
104
|
+
}, oe = () => {
|
|
104
105
|
if (s) {
|
|
105
|
-
|
|
106
|
+
ee();
|
|
106
107
|
return;
|
|
107
108
|
}
|
|
108
|
-
|
|
109
|
-
}, n =
|
|
109
|
+
M(!0);
|
|
110
|
+
}, n = B(() => w ?? null, [w]), d = B(() => {
|
|
110
111
|
var t;
|
|
111
112
|
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
|
-
|
|
115
|
-
}, [
|
|
116
|
-
|
|
113
|
+
}, [n]), A = ((_ = n == null ? void 0 : n.order) == null ? void 0 : _.order_id) ?? null, ne = B(() => c ? c.endsWith("/") ? c : `${c}/` : "", [c]), te = B(() => R ? `/?paymentId=${encodeURIComponent(R)}` : "/", [R]);
|
|
114
|
+
return E(() => {
|
|
115
|
+
u && d && (h(d), y(A ?? null), l(!1));
|
|
116
|
+
}, [u, d, A]), E(() => {
|
|
117
|
+
u && f && (!d || N || (h(d), y(A ?? null), l(!1)));
|
|
117
118
|
}, [
|
|
119
|
+
u,
|
|
120
|
+
f,
|
|
118
121
|
d,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
]),
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
if (d && !y) {
|
|
127
|
-
if (B) {
|
|
122
|
+
N,
|
|
123
|
+
A
|
|
124
|
+
]), E(() => {
|
|
125
|
+
s && (f || (T(""), h(null), y(null)));
|
|
126
|
+
}, [s, f]), E(() => {
|
|
127
|
+
if (u && !g) {
|
|
128
|
+
if (w) {
|
|
128
129
|
l(!1);
|
|
129
130
|
return;
|
|
130
131
|
}
|
|
131
|
-
|
|
132
|
-
message:
|
|
132
|
+
C.error && (b({
|
|
133
|
+
message: C.error,
|
|
133
134
|
type: "error"
|
|
134
135
|
}), l(!1));
|
|
135
136
|
}
|
|
136
137
|
}, [
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
]), /* @__PURE__ */ e(
|
|
143
|
-
/* @__PURE__ */ e(
|
|
144
|
-
/* @__PURE__ */ e(
|
|
145
|
-
/* @__PURE__ */ e(
|
|
146
|
-
|
|
138
|
+
u,
|
|
139
|
+
g,
|
|
140
|
+
w,
|
|
141
|
+
C.error,
|
|
142
|
+
b
|
|
143
|
+
]), /* @__PURE__ */ e(v, { children: r.accountNumber ? /* @__PURE__ */ o(v, { children: [
|
|
144
|
+
/* @__PURE__ */ e(x, { type: "iban", data: r, children: /* @__PURE__ */ o(p, { my: 1, spacing: 2, container: !0, alignItems: "center", children: [
|
|
145
|
+
/* @__PURE__ */ e(p, { size: { md: 6, xs: 12 }, children: /* @__PURE__ */ e(z, { fullWidth: !0, onClick: oe, children: s ? "Topup" : "Deposit" }) }),
|
|
146
|
+
/* @__PURE__ */ e(
|
|
147
|
+
p,
|
|
148
|
+
{
|
|
149
|
+
size: { md: 6, xs: 12 },
|
|
150
|
+
sx: {
|
|
151
|
+
display: "flex",
|
|
152
|
+
justifyContent: { md: "flex-end", xs: "flex-start" },
|
|
153
|
+
mt: { md: 0, xs: 1.5 }
|
|
154
|
+
},
|
|
155
|
+
children: /* @__PURE__ */ e(
|
|
156
|
+
m,
|
|
157
|
+
{
|
|
158
|
+
component: "button",
|
|
159
|
+
sx: {
|
|
160
|
+
background: "none",
|
|
161
|
+
border: "none",
|
|
162
|
+
padding: 0,
|
|
163
|
+
cursor: "pointer",
|
|
164
|
+
color: "primary.main",
|
|
165
|
+
textDecoration: "underline",
|
|
166
|
+
fontSize: 14
|
|
167
|
+
},
|
|
168
|
+
onClick: () => J("/history"),
|
|
169
|
+
children: "History"
|
|
170
|
+
}
|
|
171
|
+
)
|
|
172
|
+
}
|
|
173
|
+
)
|
|
147
174
|
] }) }),
|
|
148
175
|
/* @__PURE__ */ o(
|
|
149
|
-
|
|
176
|
+
j,
|
|
150
177
|
{
|
|
151
178
|
open: Q,
|
|
152
179
|
fullWidth: !0,
|
|
153
|
-
onClose: () =>
|
|
154
|
-
TransitionComponent:
|
|
180
|
+
onClose: () => M(!1),
|
|
181
|
+
TransitionComponent: L,
|
|
155
182
|
maxWidth: "md",
|
|
156
183
|
children: [
|
|
157
184
|
/* @__PURE__ */ o(H, { className: "buy-modal-text-color", children: [
|
|
158
|
-
/* @__PURE__ */ e(
|
|
185
|
+
/* @__PURE__ */ e(m, { variant: "subtitle1", component: "p", children: /* @__PURE__ */ e("strong", { children: "Deposit / Receive" }) }),
|
|
159
186
|
/* @__PURE__ */ e(
|
|
160
|
-
|
|
187
|
+
S,
|
|
161
188
|
{
|
|
162
189
|
"aria-label": "close",
|
|
163
|
-
onClick: () =>
|
|
190
|
+
onClick: () => M(!1),
|
|
164
191
|
className: "menu-buttons",
|
|
165
|
-
children: /* @__PURE__ */ e(
|
|
192
|
+
children: /* @__PURE__ */ e(O, {})
|
|
166
193
|
}
|
|
167
194
|
)
|
|
168
195
|
] }),
|
|
169
|
-
/* @__PURE__ */ o(
|
|
170
|
-
/* @__PURE__ */ e(
|
|
171
|
-
/* @__PURE__ */ o(
|
|
196
|
+
/* @__PURE__ */ o(G, { dividers: !0, children: [
|
|
197
|
+
/* @__PURE__ */ e(m, { variant: "h5", align: "center", children: /* @__PURE__ */ e("strong", { children: "Account Details" }) }),
|
|
198
|
+
/* @__PURE__ */ o(p, { container: !0, spacing: 2, sx: { padding: "5% 15%" }, children: [
|
|
172
199
|
/* @__PURE__ */ e(
|
|
173
200
|
i,
|
|
174
201
|
{
|
|
@@ -200,7 +227,7 @@ const i = ({
|
|
|
200
227
|
showCopyBtn: !0
|
|
201
228
|
}
|
|
202
229
|
),
|
|
203
|
-
r.currency ===
|
|
230
|
+
r.currency === ae && /* @__PURE__ */ o(v, { children: [
|
|
204
231
|
/* @__PURE__ */ e(
|
|
205
232
|
i,
|
|
206
233
|
{
|
|
@@ -232,50 +259,50 @@ const i = ({
|
|
|
232
259
|
}
|
|
233
260
|
),
|
|
234
261
|
s && /* @__PURE__ */ o(
|
|
235
|
-
|
|
262
|
+
j,
|
|
236
263
|
{
|
|
237
|
-
open:
|
|
264
|
+
open: f,
|
|
238
265
|
fullWidth: !0,
|
|
239
266
|
maxWidth: "sm",
|
|
240
|
-
onClose:
|
|
241
|
-
TransitionComponent:
|
|
267
|
+
onClose: W,
|
|
268
|
+
TransitionComponent: L,
|
|
242
269
|
children: [
|
|
243
270
|
/* @__PURE__ */ o(H, { className: "buy-modal-text-color", children: [
|
|
244
|
-
/* @__PURE__ */ e(
|
|
271
|
+
/* @__PURE__ */ e(m, { variant: "subtitle1", component: "p", children: /* @__PURE__ */ e("strong", { children: "E-Wallet Topup" }) }),
|
|
245
272
|
/* @__PURE__ */ e(
|
|
246
|
-
|
|
273
|
+
S,
|
|
247
274
|
{
|
|
248
275
|
"aria-label": "close",
|
|
249
|
-
onClick:
|
|
276
|
+
onClick: W,
|
|
250
277
|
className: "menu-buttons",
|
|
251
|
-
children: /* @__PURE__ */ e(
|
|
278
|
+
children: /* @__PURE__ */ e(O, {})
|
|
252
279
|
}
|
|
253
280
|
)
|
|
254
281
|
] }),
|
|
255
|
-
/* @__PURE__ */ e(
|
|
256
|
-
/* @__PURE__ */ e(
|
|
282
|
+
/* @__PURE__ */ e(G, { dividers: !0, children: N ? /* @__PURE__ */ o(D, { mt: 2, children: [
|
|
283
|
+
/* @__PURE__ */ e(m, { variant: "body1", mb: 2, children: "Complete your payment using the secure widget below." }),
|
|
257
284
|
/* @__PURE__ */ e(
|
|
258
|
-
|
|
285
|
+
de,
|
|
259
286
|
{
|
|
260
|
-
checkoutId:
|
|
261
|
-
srcUrl:
|
|
262
|
-
onResultUrl:
|
|
287
|
+
checkoutId: N,
|
|
288
|
+
srcUrl: ne,
|
|
289
|
+
onResultUrl: te
|
|
263
290
|
}
|
|
264
291
|
)
|
|
265
|
-
] }) : /* @__PURE__ */ o(
|
|
266
|
-
/* @__PURE__ */ e(
|
|
292
|
+
] }) : /* @__PURE__ */ o(v, { children: [
|
|
293
|
+
/* @__PURE__ */ e(m, { variant: "body1", children: "Enter the amount you would like to add to this E-Wallet." }),
|
|
267
294
|
/* @__PURE__ */ e(
|
|
268
|
-
|
|
295
|
+
ue,
|
|
269
296
|
{
|
|
270
297
|
label: "Topup Amount",
|
|
271
298
|
type: "number",
|
|
272
|
-
value:
|
|
273
|
-
onChangeHandler: (t) =>
|
|
299
|
+
value: P,
|
|
300
|
+
onChangeHandler: (t) => T(t),
|
|
274
301
|
inputProps: { min: "0", step: "0.01" }
|
|
275
302
|
}
|
|
276
303
|
),
|
|
277
304
|
/* @__PURE__ */ o(
|
|
278
|
-
|
|
305
|
+
D,
|
|
279
306
|
{
|
|
280
307
|
mt: 4,
|
|
281
308
|
display: "flex",
|
|
@@ -283,22 +310,22 @@ const i = ({
|
|
|
283
310
|
gap: 2,
|
|
284
311
|
children: [
|
|
285
312
|
/* @__PURE__ */ e(
|
|
286
|
-
|
|
313
|
+
z,
|
|
287
314
|
{
|
|
288
315
|
variantType: "secondary",
|
|
289
|
-
onClick:
|
|
290
|
-
disabled:
|
|
316
|
+
onClick: W,
|
|
317
|
+
disabled: g,
|
|
291
318
|
children: "Cancel"
|
|
292
319
|
}
|
|
293
320
|
),
|
|
294
321
|
/* @__PURE__ */ e(
|
|
295
|
-
|
|
322
|
+
z,
|
|
296
323
|
{
|
|
297
|
-
onClick:
|
|
298
|
-
disabled:
|
|
324
|
+
onClick: re,
|
|
325
|
+
disabled: g,
|
|
299
326
|
children: /* @__PURE__ */ o("strong", { children: [
|
|
300
|
-
|
|
301
|
-
|
|
327
|
+
g ? /* @__PURE__ */ e(
|
|
328
|
+
pe,
|
|
302
329
|
{
|
|
303
330
|
size: 18,
|
|
304
331
|
color: "inherit",
|
|
@@ -317,18 +344,18 @@ const i = ({
|
|
|
317
344
|
}
|
|
318
345
|
),
|
|
319
346
|
/* @__PURE__ */ e(
|
|
320
|
-
|
|
347
|
+
me,
|
|
321
348
|
{
|
|
322
|
-
iban:
|
|
349
|
+
iban: q,
|
|
323
350
|
data: r,
|
|
324
351
|
dispatch: F,
|
|
325
|
-
appKey:
|
|
352
|
+
appKey: k,
|
|
326
353
|
openModal: X,
|
|
327
|
-
setOpenModal:
|
|
354
|
+
setOpenModal: Y
|
|
328
355
|
}
|
|
329
356
|
)
|
|
330
357
|
] }) : /* @__PURE__ */ o(
|
|
331
|
-
|
|
358
|
+
D,
|
|
332
359
|
{
|
|
333
360
|
className: "text-center",
|
|
334
361
|
sx: {
|
|
@@ -354,5 +381,5 @@ const i = ({
|
|
|
354
381
|
) });
|
|
355
382
|
};
|
|
356
383
|
export {
|
|
357
|
-
|
|
384
|
+
Je as default
|
|
358
385
|
};
|
|
@@ -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 J, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as N, useEffect as m } from "react";
|
|
3
|
+
import { u as W } 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 se, c as ie, d as ce } from "../../../index-BQNs1mvn.js";
|
|
6
|
+
import { u as le, a as me, b as de, c as ue, d as pe, e as he } from "../../../wallet-BxwOFeSW.js";
|
|
7
|
+
import { u as fe, c as ge, d as be, e as _e } from "../../../bank-BM66KfAv.js";
|
|
8
|
+
import { LINKED_WALLET_TOOLTIP as Ne, CONNECTED_WALLET_TOOLTIP as We, WALLET_ICON as xe, DELETE_ICON as Ce } from "../../../util/constants.js";
|
|
9
|
+
import { M as Q } from "../../../tooltip-3UvETWtS.js";
|
|
10
|
+
import { I as V } from "../../../Info-BVeUSPyk.js";
|
|
11
|
+
import { C as we } 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 Ie } from "../../../Close-CNwiMz_O.js";
|
|
14
|
+
import ve from "../../Shared/transition.js";
|
|
15
|
+
import X 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 Ae from "../Shared/connectPlaidBank.js";
|
|
18
|
+
import ye from "../Shared/ConnectWallet/index.js";
|
|
19
|
+
import Le from "./iban.js";
|
|
20
|
+
import Te from "./eWallet.js";
|
|
21
|
+
import { useSnackBarContext as Be } from "../../../context/snackBarContext.js";
|
|
22
|
+
import Y from "../Shared/appButton.js";
|
|
23
|
+
import { AuthInnerContainer as B } from "../Shared/Container/index.js";
|
|
24
24
|
import "../../../index-DlQqWbXG.js";
|
|
25
|
-
import
|
|
25
|
+
import Se from "../../../hoc/withThemeProvider.js";
|
|
26
26
|
import "../Shared/Auth/otpForm.js";
|
|
27
|
-
import
|
|
27
|
+
import Ee 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 Re } 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
|
|
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 d } from "../../../Grid-CFe3amXO.js";
|
|
38
|
+
import { T as l } from "../../../Typography-pAaje37G.js";
|
|
39
|
+
import { I as x } from "../../../IconButton-DHm-hucF.js";
|
|
40
|
+
import { C } from "../../../CircularProgress-xZA3lvba.js";
|
|
41
|
+
import { B as qe } from "../../../Button-Df4vgU24.js";
|
|
42
|
+
import { S as ze } from "../../../Stack-k55YTxET.js";
|
|
43
|
+
import { D as Pe, a as Oe } from "../../../DialogContent-BMwlOnbW.js";
|
|
44
|
+
import { D as $e } from "../../../DialogTitle-CfS0bb2K.js";
|
|
45
|
+
import '../../../assets/index3.css';const Me = "_container_arwo8_1", He = "_heading_arwo8_27", o = {
|
|
46
|
+
container: Me,
|
|
47
47
|
"inner-container": "_inner-container_arwo8_13",
|
|
48
|
-
heading:
|
|
48
|
+
heading: He,
|
|
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,151 +54,134 @@ import '../../../assets/index3.css';const Fe = "_container_arwo8_1", je = "_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
|
+
}, Fe = ({
|
|
58
|
+
baseUrl: S,
|
|
59
|
+
checkoutSdkKey: E,
|
|
60
|
+
appKey: R,
|
|
61
|
+
appKeyEur: q,
|
|
62
|
+
paymentWidgetSrcUrl: z,
|
|
63
|
+
navigate: P
|
|
64
64
|
}) => {
|
|
65
|
-
const
|
|
66
|
-
error:
|
|
67
|
-
message:
|
|
68
|
-
loader:
|
|
69
|
-
} =
|
|
70
|
-
|
|
65
|
+
const a = Ee(), { showAlertMessage: i } = Be(), { openDialog: w } = Re(), k = W((t) => t.app.features), h = W(se), Z = h.loader, u = h.message, O = h.banks, $ = h.iban, [M, H] = N(!1), [U, f] = N(!1), [I, ee] = N(""), [v, te] = N(""), F = W(ie), j = F.data, { error: D, message: A, loader: y } = F, G = W(ce), g = G.data, {
|
|
66
|
+
error: L,
|
|
67
|
+
message: T,
|
|
68
|
+
loader: ne
|
|
69
|
+
} = G;
|
|
70
|
+
m(() => {
|
|
71
71
|
if (u) {
|
|
72
|
-
|
|
72
|
+
H(!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")) && i({ message: t, type: "success" });
|
|
75
75
|
}
|
|
76
|
-
}, [u]),
|
|
77
|
-
|
|
78
|
-
}, [
|
|
79
|
-
|
|
80
|
-
}, [
|
|
81
|
-
D &&
|
|
82
|
-
}, [D]),
|
|
83
|
-
|
|
84
|
-
}, [
|
|
85
|
-
|
|
76
|
+
}, [u]), m(() => {
|
|
77
|
+
L && i({ message: L });
|
|
78
|
+
}, [L]), m(() => {
|
|
79
|
+
T && i({ message: T, type: "success" });
|
|
80
|
+
}, [T]), m(() => {
|
|
81
|
+
D && i({ message: D });
|
|
82
|
+
}, [D]), m(() => {
|
|
83
|
+
A && (f(!1), i({ message: A, type: "success" }));
|
|
84
|
+
}, [A]), m(() => (j.length <= 0 && a(le()), g.length <= 0 && a(me()), a(fe()), a(ge()), () => {
|
|
85
|
+
a(de("")), a(ue(""));
|
|
86
86
|
}), []);
|
|
87
|
-
const
|
|
87
|
+
const oe = () => {
|
|
88
|
+
if (!I)
|
|
89
|
+
return i({ message: "Please provide the wallet name" }), !1;
|
|
88
90
|
if (!v)
|
|
89
|
-
return
|
|
90
|
-
if (!A)
|
|
91
|
-
return l({
|
|
91
|
+
return i({
|
|
92
92
|
message: "Please provide the wallet private key"
|
|
93
93
|
}), !1;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
name:
|
|
97
|
-
privatekey: Buffer.from(
|
|
94
|
+
y || a(
|
|
95
|
+
pe({
|
|
96
|
+
name: I,
|
|
97
|
+
privatekey: Buffer.from(v).toString("base64")
|
|
98
98
|
})
|
|
99
99
|
);
|
|
100
|
-
},
|
|
101
|
-
|
|
102
|
-
icon:
|
|
100
|
+
}, ae = (t) => {
|
|
101
|
+
w({
|
|
102
|
+
icon: Ce,
|
|
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
|
+
a(_e(t));
|
|
108
108
|
},
|
|
109
109
|
cancelButtonShow: !0
|
|
110
110
|
});
|
|
111
111
|
}, p = ({
|
|
112
112
|
data: t,
|
|
113
|
-
type:
|
|
113
|
+
type: r,
|
|
114
114
|
children: b
|
|
115
115
|
}) => {
|
|
116
|
-
let
|
|
117
|
-
return
|
|
118
|
-
|
|
119
|
-
|
|
116
|
+
let c, _;
|
|
117
|
+
return r === "connectedWallet" || r === "linkedWallet" ? "name" in t && "address" in t && (c = t.name, _ = t.address) : r === "iban" ? "accountName" in t && "accountNumber" in t && (c = t.accountName, _ = `${t.ownerFirstName} ${t.ownerLastName}: ${t.accountNumber}`) : "accountName" in t && "accountNumber" in t && (c = t.accountName, _ = t.accountNumber), /* @__PURE__ */ n(s, { className: o["account-item"], children: [
|
|
118
|
+
r === "bankAccount" && M && "id" in t && /* @__PURE__ */ e(
|
|
119
|
+
x,
|
|
120
120
|
{
|
|
121
|
-
className:
|
|
122
|
-
onClick: () =>
|
|
123
|
-
children: /* @__PURE__ */ e(
|
|
121
|
+
className: o["remove-icon"],
|
|
122
|
+
onClick: () => ae(t.id),
|
|
123
|
+
children: /* @__PURE__ */ e(we, {})
|
|
124
124
|
}
|
|
125
125
|
),
|
|
126
|
-
/* @__PURE__ */ n(
|
|
127
|
-
/* @__PURE__ */ e(
|
|
128
|
-
|
|
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: [
|
|
126
|
+
/* @__PURE__ */ n(d, { container: !0, width: "100%", children: [
|
|
127
|
+
/* @__PURE__ */ e(d, { size: { xs: 2, md: 1.5 }, className: "content-center", children: /* @__PURE__ */ e("img", { src: xe, alt: "Icon", height: 28, width: 28 }) }),
|
|
128
|
+
/* @__PURE__ */ n(d, { size: { xs: 10, md: 10.5 }, children: [
|
|
151
129
|
/* @__PURE__ */ e(
|
|
152
|
-
|
|
130
|
+
l,
|
|
153
131
|
{
|
|
154
|
-
variant: "
|
|
155
|
-
|
|
156
|
-
|
|
132
|
+
variant: "body1",
|
|
133
|
+
component: "p",
|
|
134
|
+
className: `${o["account-item-text"]} ${o["primary-color"]}`,
|
|
135
|
+
children: /* @__PURE__ */ e("strong", { children: c })
|
|
157
136
|
}
|
|
158
137
|
),
|
|
159
|
-
/* @__PURE__ */
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
138
|
+
/* @__PURE__ */ e(
|
|
139
|
+
l,
|
|
140
|
+
{
|
|
141
|
+
variant: "caption",
|
|
142
|
+
component: "p",
|
|
143
|
+
className: `${o["account-item-text"]} ${o["secondary-color"]}`,
|
|
144
|
+
children: /* @__PURE__ */ e("strong", { children: _ })
|
|
145
|
+
}
|
|
146
|
+
)
|
|
147
|
+
] })
|
|
165
148
|
] }),
|
|
166
149
|
b
|
|
167
150
|
] });
|
|
168
|
-
},
|
|
169
|
-
const
|
|
151
|
+
}, re = (t) => {
|
|
152
|
+
const r = g.length;
|
|
170
153
|
let b = !1;
|
|
171
|
-
for (let
|
|
172
|
-
if (g[
|
|
154
|
+
for (let c = 0; c < r; c++)
|
|
155
|
+
if (g[c].address.toLowerCase() === t.toLowerCase()) {
|
|
173
156
|
b = !0;
|
|
174
157
|
break;
|
|
175
158
|
}
|
|
176
|
-
b ?
|
|
159
|
+
b ? i({
|
|
177
160
|
message: "This wallet address is already connected."
|
|
178
|
-
}) :
|
|
179
|
-
},
|
|
180
|
-
|
|
161
|
+
}) : a(he(t));
|
|
162
|
+
}, K = (t) => {
|
|
163
|
+
a(be({ currency: t }));
|
|
181
164
|
};
|
|
182
|
-
return /* @__PURE__ */ n(
|
|
183
|
-
/* @__PURE__ */ e(s, { className:
|
|
184
|
-
/* @__PURE__ */ n(
|
|
185
|
-
/* @__PURE__ */ n(
|
|
165
|
+
return /* @__PURE__ */ n(J, { children: [
|
|
166
|
+
/* @__PURE__ */ e(s, { className: o.container, children: /* @__PURE__ */ n(d, { spacing: 2, container: !0, width: "100%", children: [
|
|
167
|
+
/* @__PURE__ */ n(d, { size: { md: 6, xs: 12 }, children: [
|
|
168
|
+
/* @__PURE__ */ n(B, { p: 3, children: [
|
|
186
169
|
/* @__PURE__ */ e(
|
|
187
|
-
|
|
170
|
+
l,
|
|
188
171
|
{
|
|
189
|
-
className:
|
|
172
|
+
className: o.heading,
|
|
190
173
|
variant: "h6",
|
|
191
174
|
component: "span",
|
|
192
175
|
children: /* @__PURE__ */ e("strong", { children: "Linked Wallets" })
|
|
193
176
|
}
|
|
194
177
|
),
|
|
195
178
|
/* @__PURE__ */ e(
|
|
196
|
-
|
|
179
|
+
Q,
|
|
197
180
|
{
|
|
198
|
-
title: /* @__PURE__ */ e(s, { sx: { whiteSpace: "pre-line" }, children:
|
|
181
|
+
title: /* @__PURE__ */ e(s, { sx: { whiteSpace: "pre-line" }, children: Ne }),
|
|
199
182
|
placement: "bottom",
|
|
200
|
-
children: /* @__PURE__ */ e(
|
|
201
|
-
|
|
183
|
+
children: /* @__PURE__ */ e(x, { className: o["info-icon"], children: /* @__PURE__ */ e(
|
|
184
|
+
V,
|
|
202
185
|
{
|
|
203
186
|
sx: {
|
|
204
187
|
fontSize: "26px",
|
|
@@ -208,10 +191,10 @@ import '../../../assets/index3.css';const Fe = "_container_arwo8_1", je = "_head
|
|
|
208
191
|
) })
|
|
209
192
|
}
|
|
210
193
|
),
|
|
211
|
-
|
|
212
|
-
|
|
194
|
+
y && /* @__PURE__ */ e(s, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(C, { size: 50 }) }),
|
|
195
|
+
j.map((t, r) => /* @__PURE__ */ e(p, { type: "linkedWallet", data: t }, r)),
|
|
213
196
|
/* @__PURE__ */ e(
|
|
214
|
-
|
|
197
|
+
Y,
|
|
215
198
|
{
|
|
216
199
|
sx: { mt: 4 },
|
|
217
200
|
onClick: () => f(!0),
|
|
@@ -220,23 +203,23 @@ import '../../../assets/index3.css';const Fe = "_container_arwo8_1", je = "_head
|
|
|
220
203
|
}
|
|
221
204
|
)
|
|
222
205
|
] }),
|
|
223
|
-
/* @__PURE__ */ n(
|
|
206
|
+
/* @__PURE__ */ n(B, { p: 3, mt: 2, children: [
|
|
224
207
|
/* @__PURE__ */ e(
|
|
225
|
-
|
|
208
|
+
l,
|
|
226
209
|
{
|
|
227
|
-
className:
|
|
210
|
+
className: o.heading,
|
|
228
211
|
variant: "h6",
|
|
229
212
|
component: "span",
|
|
230
213
|
children: /* @__PURE__ */ e("strong", { children: "Connected Wallets" })
|
|
231
214
|
}
|
|
232
215
|
),
|
|
233
216
|
/* @__PURE__ */ e(
|
|
234
|
-
|
|
217
|
+
Q,
|
|
235
218
|
{
|
|
236
|
-
title: /* @__PURE__ */ e(s, { sx: { whiteSpace: "pre-line" }, children:
|
|
219
|
+
title: /* @__PURE__ */ e(s, { sx: { whiteSpace: "pre-line" }, children: We }),
|
|
237
220
|
placement: "bottom",
|
|
238
|
-
children: /* @__PURE__ */ e(
|
|
239
|
-
|
|
221
|
+
children: /* @__PURE__ */ e(x, { className: o["info-icon"], children: /* @__PURE__ */ e(
|
|
222
|
+
V,
|
|
240
223
|
{
|
|
241
224
|
sx: {
|
|
242
225
|
fontSize: "26px",
|
|
@@ -246,115 +229,115 @@ import '../../../assets/index3.css';const Fe = "_container_arwo8_1", je = "_head
|
|
|
246
229
|
) })
|
|
247
230
|
}
|
|
248
231
|
),
|
|
249
|
-
|
|
250
|
-
g.map((t,
|
|
232
|
+
ne && /* @__PURE__ */ e(s, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(C, { size: 50 }) }),
|
|
233
|
+
g.map((t, r) => /* @__PURE__ */ e(p, { type: "connectedWallet", data: t }, r)),
|
|
251
234
|
/* @__PURE__ */ e(
|
|
252
|
-
|
|
235
|
+
ye,
|
|
253
236
|
{
|
|
254
|
-
addressHandler:
|
|
237
|
+
addressHandler: re,
|
|
255
238
|
btnClass: "wallet-btn"
|
|
256
239
|
}
|
|
257
240
|
)
|
|
258
241
|
] })
|
|
259
242
|
] }),
|
|
260
|
-
/* @__PURE__ */ n(
|
|
243
|
+
/* @__PURE__ */ n(d, { size: { md: 6, xs: 12 }, children: [
|
|
261
244
|
k.eWallet && /* @__PURE__ */ e(s, { mb: 2, children: /* @__PURE__ */ e(
|
|
262
|
-
|
|
245
|
+
Te,
|
|
263
246
|
{
|
|
264
|
-
openDialog:
|
|
265
|
-
dispatch:
|
|
266
|
-
iban:
|
|
267
|
-
baseUrl:
|
|
268
|
-
checkoutSdkKey:
|
|
269
|
-
appKey:
|
|
270
|
-
appKeyEur:
|
|
271
|
-
paymentWidgetSrcUrl:
|
|
272
|
-
navigate:
|
|
247
|
+
openDialog: w,
|
|
248
|
+
dispatch: a,
|
|
249
|
+
iban: $,
|
|
250
|
+
baseUrl: S,
|
|
251
|
+
checkoutSdkKey: E,
|
|
252
|
+
appKey: R,
|
|
253
|
+
appKeyEur: q,
|
|
254
|
+
paymentWidgetSrcUrl: z,
|
|
255
|
+
navigate: P,
|
|
273
256
|
AccountItem: p,
|
|
274
|
-
createIbanRequest:
|
|
257
|
+
createIbanRequest: K
|
|
275
258
|
}
|
|
276
259
|
) }),
|
|
277
260
|
k.iban && /* @__PURE__ */ e(
|
|
278
|
-
|
|
261
|
+
Le,
|
|
279
262
|
{
|
|
280
|
-
openDialog:
|
|
281
|
-
dispatch:
|
|
282
|
-
iban:
|
|
283
|
-
baseUrl:
|
|
284
|
-
checkoutSdkKey:
|
|
285
|
-
appKey:
|
|
286
|
-
appKeyEur:
|
|
287
|
-
paymentWidgetSrcUrl:
|
|
288
|
-
navigate:
|
|
263
|
+
openDialog: w,
|
|
264
|
+
dispatch: a,
|
|
265
|
+
iban: $,
|
|
266
|
+
baseUrl: S,
|
|
267
|
+
checkoutSdkKey: E,
|
|
268
|
+
appKey: R,
|
|
269
|
+
appKeyEur: q,
|
|
270
|
+
paymentWidgetSrcUrl: z,
|
|
271
|
+
navigate: P,
|
|
289
272
|
AccountItem: p,
|
|
290
|
-
createIbanRequest:
|
|
273
|
+
createIbanRequest: K
|
|
291
274
|
}
|
|
292
275
|
),
|
|
293
|
-
/* @__PURE__ */ e(
|
|
294
|
-
/* @__PURE__ */ e(
|
|
295
|
-
|
|
296
|
-
|
|
276
|
+
/* @__PURE__ */ e(B, { mt: 2, children: /* @__PURE__ */ n(s, { p: 3, mt: k.iban ? 2 : 0, children: [
|
|
277
|
+
/* @__PURE__ */ e(l, { className: o.heading, variant: "h6", children: /* @__PURE__ */ e("strong", { children: "Bank Accounts" }) }),
|
|
278
|
+
O.length > 0 && /* @__PURE__ */ n(
|
|
279
|
+
qe,
|
|
297
280
|
{
|
|
298
|
-
className: `${
|
|
281
|
+
className: `${M ? o["delete-disable"] : o["confirm-edit"]} normal-text`,
|
|
299
282
|
sx: { mt: 3, mb: 3 },
|
|
300
283
|
variant: "contained",
|
|
301
|
-
onClick: () =>
|
|
284
|
+
onClick: () => H((t) => !t),
|
|
302
285
|
children: [
|
|
303
286
|
/* @__PURE__ */ e(ke, {}),
|
|
304
287
|
"Delete"
|
|
305
288
|
]
|
|
306
289
|
}
|
|
307
290
|
),
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
/* @__PURE__ */ n(
|
|
311
|
-
/* @__PURE__ */ e(
|
|
312
|
-
/* @__PURE__ */ e(
|
|
291
|
+
Z && /* @__PURE__ */ e(s, { mt: 4, className: "flex-center", children: /* @__PURE__ */ e(C, { size: 50 }) }),
|
|
292
|
+
O.map((t, r) => /* @__PURE__ */ e(p, { type: "bankAccount", data: t }, r)),
|
|
293
|
+
/* @__PURE__ */ n(ze, { mt: 4, gap: 1, children: [
|
|
294
|
+
/* @__PURE__ */ e(Ae, {}),
|
|
295
|
+
/* @__PURE__ */ e(l, { className: "text-center", variant: "h6", children: /* @__PURE__ */ e("strong", { children: "OR" }) }),
|
|
313
296
|
/* @__PURE__ */ e(De, {})
|
|
314
297
|
] })
|
|
315
298
|
] }) })
|
|
316
299
|
] })
|
|
317
300
|
] }) }),
|
|
318
301
|
/* @__PURE__ */ n(
|
|
319
|
-
|
|
302
|
+
Pe,
|
|
320
303
|
{
|
|
321
304
|
fullWidth: !0,
|
|
322
|
-
open:
|
|
305
|
+
open: U,
|
|
323
306
|
onClose: () => f(!1),
|
|
324
|
-
TransitionComponent:
|
|
307
|
+
TransitionComponent: ve,
|
|
325
308
|
children: [
|
|
326
|
-
/* @__PURE__ */ n(
|
|
327
|
-
/* @__PURE__ */ e(
|
|
309
|
+
/* @__PURE__ */ n($e, { className: "buy-modal-text-color", children: [
|
|
310
|
+
/* @__PURE__ */ e(l, { variant: "subtitle1", component: "p", children: /* @__PURE__ */ e("strong", { children: "Wallets" }) }),
|
|
328
311
|
/* @__PURE__ */ e(
|
|
329
|
-
|
|
312
|
+
x,
|
|
330
313
|
{
|
|
331
314
|
"aria-label": "close",
|
|
332
315
|
onClick: () => f(!1),
|
|
333
316
|
className: "menu-buttons",
|
|
334
|
-
children: /* @__PURE__ */ e(
|
|
317
|
+
children: /* @__PURE__ */ e(Ie, {})
|
|
335
318
|
}
|
|
336
319
|
)
|
|
337
320
|
] }),
|
|
338
|
-
/* @__PURE__ */ n(
|
|
339
|
-
/* @__PURE__ */ e(
|
|
321
|
+
/* @__PURE__ */ n(Oe, { dividers: !0, children: [
|
|
322
|
+
/* @__PURE__ */ e(l, { className: "text-center buy-modal-text-color", variant: "h5", children: /* @__PURE__ */ e("strong", { children: "Add Linked Wallet" }) }),
|
|
340
323
|
/* @__PURE__ */ e(
|
|
341
|
-
|
|
324
|
+
X,
|
|
342
325
|
{
|
|
343
326
|
label: "Name",
|
|
344
|
-
value:
|
|
345
|
-
onChangeHandler: (t) =>
|
|
327
|
+
value: I,
|
|
328
|
+
onChangeHandler: (t) => ee(t)
|
|
346
329
|
}
|
|
347
330
|
),
|
|
348
331
|
/* @__PURE__ */ e(
|
|
349
|
-
|
|
332
|
+
X,
|
|
350
333
|
{
|
|
351
334
|
label: "Private Key",
|
|
352
|
-
value:
|
|
353
|
-
onChangeHandler: (t) =>
|
|
335
|
+
value: v,
|
|
336
|
+
onChangeHandler: (t) => te(t)
|
|
354
337
|
}
|
|
355
338
|
),
|
|
356
|
-
/* @__PURE__ */ e(
|
|
357
|
-
/* @__PURE__ */ e(
|
|
339
|
+
/* @__PURE__ */ e(Y, { sx: { mt: 4 }, onClick: oe, fullWidth: !0, children: /* @__PURE__ */ e("strong", { children: y ? /* @__PURE__ */ n(J, { children: [
|
|
340
|
+
/* @__PURE__ */ e(C, { size: 15, color: "inherit" }),
|
|
358
341
|
" Processing..."
|
|
359
342
|
] }) : "Import Wallet" }) })
|
|
360
343
|
] })
|
|
@@ -362,7 +345,7 @@ import '../../../assets/index3.css';const Fe = "_container_arwo8_1", je = "_head
|
|
|
362
345
|
}
|
|
363
346
|
)
|
|
364
347
|
] });
|
|
365
|
-
},
|
|
348
|
+
}, Et = Se(Fe);
|
|
366
349
|
export {
|
|
367
|
-
|
|
350
|
+
Et as default
|
|
368
351
|
};
|