everest-npm-features 0.0.45 → 0.0.47
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/Buy/confirmTransaction.js +1 -1
- package/dist/components/Wallet/Buy/form.js +1 -1
- package/dist/components/Wallet/Buy/index.js +1 -1
- package/dist/components/Wallet/Portfolio/index.js +1 -1
- package/dist/components/Wallet/Shared/CardCorp/index.js +26 -17
- package/dist/components/Wallet/Shared/CardPayment/index.js +36 -35
- package/dist/{index-BTqlsA2t.js → index-MUaN67Ei.js} +109 -116
- package/dist/main.js +1 -1
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ import "../../../constants-BJhUp96H.js";
|
|
|
9
9
|
import "../../../index-BQNs1mvn.js";
|
|
10
10
|
import "../../../order-fWKVFTau.js";
|
|
11
11
|
import "../../../bank-BmV_keEr.js";
|
|
12
|
-
import { a as H } from "../../../index-
|
|
12
|
+
import { a as H } from "../../../index-MUaN67Ei.js";
|
|
13
13
|
import "../../../index.esm-BsMAMhYW.js";
|
|
14
14
|
import "../../../react-redux-B4BZippc.js";
|
|
15
15
|
import "../../../index-DlQqWbXG.js";
|
|
@@ -10,7 +10,7 @@ import "../../../order-fWKVFTau.js";
|
|
|
10
10
|
import "../../../tooltip-3UvETWtS.js";
|
|
11
11
|
import "../../../util/functions.js";
|
|
12
12
|
import "../Shared/appButton.js";
|
|
13
|
-
import { B as E } from "../../../index-
|
|
13
|
+
import { B as E } from "../../../index-MUaN67Ei.js";
|
|
14
14
|
import "../../../styles.module-CHEBh2ID.js";
|
|
15
15
|
import "../Shared/TokenModal/index.js";
|
|
16
16
|
import "../../../react-redux-B4BZippc.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../../hoc/withThemeProvider.js";
|
|
4
|
-
import { b as e, C as f, F as Y, M as b, P as d, i as l } from "../../../index-
|
|
4
|
+
import { b as e, C as f, F as Y, M as b, P as d, i as l } from "../../../index-MUaN67Ei.js";
|
|
5
5
|
import "../../../react-redux-B4BZippc.js";
|
|
6
6
|
import "../../../constants-BJhUp96H.js";
|
|
7
7
|
import "../../../PlayArrow-Cm8tJN8W.js";
|
|
@@ -72,7 +72,7 @@ const iA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAADACAMAAABlApw1AA
|
|
|
72
72
|
};
|
|
73
73
|
M(() => {
|
|
74
74
|
const A = new URLSearchParams(window.location.search), g = A.get("payment");
|
|
75
|
-
U(g);
|
|
75
|
+
g && U(g);
|
|
76
76
|
const D = A.get("id");
|
|
77
77
|
D && d(dA(D));
|
|
78
78
|
}, [GA]), M(() => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsxs as a, Fragment as
|
|
2
|
-
import { useRef as u, useState as
|
|
1
|
+
import { jsxs as a, Fragment as g, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as u, useState as C, useEffect as h } from "react";
|
|
3
3
|
import x from "../backBtn.js";
|
|
4
4
|
import { VISA_ICON as y } from "../../../../util/constants.js";
|
|
5
5
|
import "../../../../index-DlQqWbXG.js";
|
|
@@ -19,50 +19,59 @@ import "../../../../index.esm-BsMAMhYW.js";
|
|
|
19
19
|
import "../../../../web3-u4qDZYpo.js";
|
|
20
20
|
import "../../../../index-ceeCtFuh.js";
|
|
21
21
|
import "../../../../context/dialogContext.js";
|
|
22
|
-
import { T as
|
|
22
|
+
import { T as n } from "../../../../Typography-pAaje37G.js";
|
|
23
23
|
import { B } from "../../../../Box-B0YSYLco.js";
|
|
24
|
-
import { C as
|
|
24
|
+
import { C as v } from "../../../../CircularProgress-xZA3lvba.js";
|
|
25
25
|
const J = ({
|
|
26
26
|
checkoutId: o,
|
|
27
27
|
integrity: i,
|
|
28
28
|
srcUrl: m,
|
|
29
|
-
onResultUrl:
|
|
30
|
-
backBtnFunc:
|
|
31
|
-
brands:
|
|
29
|
+
onResultUrl: s,
|
|
30
|
+
backBtnFunc: p,
|
|
31
|
+
brands: c = ["VISA", "MASTER"]
|
|
32
32
|
}) => {
|
|
33
|
-
const { showAlertMessage:
|
|
34
|
-
return
|
|
33
|
+
const { showAlertMessage: l } = b(), e = u(null), [d, f] = C(!0);
|
|
34
|
+
return h(() => {
|
|
35
35
|
if (!o) return;
|
|
36
36
|
const t = document.createElement("script");
|
|
37
37
|
return t.src = `${m}paymentWidgets.js?checkoutId=${o}`, i && (t.integrity = i), t.crossOrigin = "anonymous", t.onload = () => {
|
|
38
|
-
console.log("CardCorp payment widget script loaded"),
|
|
38
|
+
console.log("CardCorp payment widget script loaded"), f(!1);
|
|
39
39
|
}, t.onerror = () => {
|
|
40
|
-
|
|
40
|
+
l({
|
|
41
41
|
message: "Failed to load CardCorp payment widget script"
|
|
42
42
|
});
|
|
43
43
|
}, e.current && e.current.appendChild(t), () => {
|
|
44
44
|
e.current && (e.current.innerHTML = "");
|
|
45
45
|
};
|
|
46
|
-
}, [o, i]), /* @__PURE__ */ a(
|
|
46
|
+
}, [o, i]), /* @__PURE__ */ a(g, { children: [
|
|
47
47
|
/* @__PURE__ */ r(
|
|
48
48
|
x,
|
|
49
49
|
{
|
|
50
|
-
onClickHandler:
|
|
50
|
+
onClickHandler: p,
|
|
51
51
|
backBtnText: "Payment Information"
|
|
52
52
|
}
|
|
53
53
|
),
|
|
54
|
-
/* @__PURE__ */ a(
|
|
54
|
+
/* @__PURE__ */ a(n, { className: "text-center", variant: "subtitle1", mt: 2, children: [
|
|
55
55
|
/* @__PURE__ */ r("img", { src: y, width: 140, alt: "Debit Card" }),
|
|
56
56
|
/* @__PURE__ */ r("br", {}),
|
|
57
57
|
/* @__PURE__ */ r("b", { children: "Debit Card" })
|
|
58
58
|
] }),
|
|
59
|
-
d && /* @__PURE__ */ r(B, { className: "text-center", mt: 8, children: /* @__PURE__ */ r(
|
|
59
|
+
d && /* @__PURE__ */ r(B, { className: "text-center", mt: 8, children: /* @__PURE__ */ r(v, {}) }),
|
|
60
60
|
/* @__PURE__ */ r("div", { ref: e, children: o && /* @__PURE__ */ r(
|
|
61
61
|
"form",
|
|
62
62
|
{
|
|
63
|
-
action:
|
|
63
|
+
action: s,
|
|
64
64
|
className: "paymentWidgets",
|
|
65
|
-
"data-brands":
|
|
65
|
+
"data-brands": c.join(" ")
|
|
66
|
+
}
|
|
67
|
+
) }),
|
|
68
|
+
/* @__PURE__ */ r(n, { className: "flex-center", variant: "caption", mt: 1, children: /* @__PURE__ */ r(
|
|
69
|
+
"a",
|
|
70
|
+
{
|
|
71
|
+
href: "https://everest.org/terms-of-use",
|
|
72
|
+
target: "_blank",
|
|
73
|
+
rel: "noopener noreferrer",
|
|
74
|
+
children: "Legal & Privacy"
|
|
66
75
|
}
|
|
67
76
|
) })
|
|
68
77
|
] });
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsxs as n, Fragment as
|
|
1
|
+
import { jsxs as n, Fragment as x, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { useState as t, useEffect as c } from "react";
|
|
3
3
|
import { E as D } from "../../../../ErrorOutline-CPQcnl2b.js";
|
|
4
|
-
import { s as
|
|
4
|
+
import { s as y, p as W, h as $, v as H } from "../../../../index-ceeCtFuh.js";
|
|
5
5
|
import K from "../backBtn.js";
|
|
6
6
|
import { removeExtraSpace as R } from "../../../../util/functions.js";
|
|
7
7
|
import { CARD_PAYMENT_DECLINE as q, VISA_ICON as G } from "../../../../util/constants.js";
|
|
8
8
|
import J from "../Input/index.js";
|
|
9
9
|
import Q from "../appButton.js";
|
|
10
10
|
import { useSnackBarContext as U } from "../../../../context/snackBarContext.js";
|
|
11
|
-
import { T as
|
|
12
|
-
import { B as
|
|
11
|
+
import { T as m } from "../../../../Typography-pAaje37G.js";
|
|
12
|
+
import { B as p } from "../../../../Box-B0YSYLco.js";
|
|
13
13
|
import { C as k } from "../../../../CircularProgress-xZA3lvba.js";
|
|
14
14
|
const me = ({
|
|
15
15
|
checkoutKey: v,
|
|
@@ -17,27 +17,27 @@ const me = ({
|
|
|
17
17
|
backBtnFunc: N,
|
|
18
18
|
initPaymentRequest: P
|
|
19
19
|
}) => {
|
|
20
|
-
const { showAlertMessage:
|
|
20
|
+
const { showAlertMessage: h } = U(), a = E.payment, [V, I] = t(!0), [i, B] = t(""), [L, O] = t(!1), [S, _] = t({
|
|
21
21
|
name: "",
|
|
22
22
|
billingAddress: {
|
|
23
23
|
addressLine1: ""
|
|
24
24
|
}
|
|
25
|
-
}), [
|
|
25
|
+
}), [A, f] = t(!1), [l, u] = t(!0), [g, M] = t(!0), [b, T] = t(!0), [C, w] = t(!0);
|
|
26
26
|
c(() => {
|
|
27
27
|
var e, o, s, d;
|
|
28
|
-
(o = (e = a == null ? void 0 : a._links) == null ? void 0 : e.redirect) != null && o.href && window.location.replace((d = (s = a == null ? void 0 : a._links) == null ? void 0 : s.redirect) == null ? void 0 : d.href), a.status === q &&
|
|
28
|
+
(o = (e = a == null ? void 0 : a._links) == null ? void 0 : e.redirect) != null && o.href && window.location.replace((d = (s = a == null ? void 0 : a._links) == null ? void 0 : s.redirect) == null ? void 0 : d.href), a.status === q && h({
|
|
29
29
|
message: `Error processing card: (${a.response_code})${a.response_summary}`
|
|
30
30
|
});
|
|
31
31
|
}, [a]), c(() => {
|
|
32
|
-
|
|
32
|
+
_({
|
|
33
33
|
name: i,
|
|
34
34
|
billingAddress: {
|
|
35
35
|
addressLine1: ""
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
}, [i]), c(() => {
|
|
39
|
-
!
|
|
40
|
-
}, [i,
|
|
39
|
+
!g && !b && !C && i !== "" ? l && u(!1) : l || u(!0);
|
|
40
|
+
}, [i, g, b, C]);
|
|
41
41
|
const z = (e, o, s, d = /./) => {
|
|
42
42
|
if (e !== "" && !d.test(e))
|
|
43
43
|
return !1;
|
|
@@ -48,10 +48,10 @@ const me = ({
|
|
|
48
48
|
if (e && e.element)
|
|
49
49
|
switch (e.element) {
|
|
50
50
|
case "card-number":
|
|
51
|
-
|
|
51
|
+
M(e.isEmpty || !e.isValid);
|
|
52
52
|
break;
|
|
53
53
|
case "expiry-date":
|
|
54
|
-
|
|
54
|
+
T(e.isEmpty || !e.isValid);
|
|
55
55
|
break;
|
|
56
56
|
case "cvv":
|
|
57
57
|
w(e.isEmpty || !e.isValid);
|
|
@@ -62,12 +62,12 @@ const me = ({
|
|
|
62
62
|
}
|
|
63
63
|
}, F = (e) => {
|
|
64
64
|
if (e === "") {
|
|
65
|
-
|
|
65
|
+
h({ message: "Error processing card" }), f(!1);
|
|
66
66
|
return;
|
|
67
67
|
}
|
|
68
68
|
P(e);
|
|
69
69
|
};
|
|
70
|
-
return /* @__PURE__ */ n(
|
|
70
|
+
return /* @__PURE__ */ n(x, { children: [
|
|
71
71
|
/* @__PURE__ */ r(
|
|
72
72
|
K,
|
|
73
73
|
{
|
|
@@ -75,27 +75,14 @@ const me = ({
|
|
|
75
75
|
backBtnText: "Payment Information"
|
|
76
76
|
}
|
|
77
77
|
),
|
|
78
|
-
/* @__PURE__ */ n(
|
|
78
|
+
/* @__PURE__ */ n(m, { className: "text-center", variant: "subtitle1", mt: 2, children: [
|
|
79
79
|
/* @__PURE__ */ r("img", { src: G, width: 140, alt: "Debit Card" }),
|
|
80
80
|
/* @__PURE__ */ r("br", {}),
|
|
81
81
|
/* @__PURE__ */ r("b", { children: "Debit Card" })
|
|
82
82
|
] }),
|
|
83
|
-
/* @__PURE__ */
|
|
83
|
+
V && /* @__PURE__ */ r(p, { className: "text-center", mt: 8, children: /* @__PURE__ */ r(k, {}) }),
|
|
84
|
+
/* @__PURE__ */ r(p, { mt: 2, children: /* @__PURE__ */ n(
|
|
84
85
|
y,
|
|
85
|
-
{
|
|
86
|
-
className: "text-center d-flex items-center",
|
|
87
|
-
variant: "caption",
|
|
88
|
-
mt: 2,
|
|
89
|
-
children: [
|
|
90
|
-
/* @__PURE__ */ r(D, {}),
|
|
91
|
-
" ",
|
|
92
|
-
/* @__PURE__ */ r("b", { style: { marginTop: "3px" }, children: "Fiat purchasing is not available for users with Chase and Citi bank accounts" })
|
|
93
|
-
]
|
|
94
|
-
}
|
|
95
|
-
),
|
|
96
|
-
V && /* @__PURE__ */ r(m, { className: "text-center", mt: 8, children: /* @__PURE__ */ r(k, {}) }),
|
|
97
|
-
/* @__PURE__ */ r(m, { mt: 2, children: /* @__PURE__ */ n(
|
|
98
|
-
x,
|
|
99
86
|
{
|
|
100
87
|
config: {
|
|
101
88
|
debug: !1,
|
|
@@ -143,7 +130,7 @@ const me = ({
|
|
|
143
130
|
Y(e);
|
|
144
131
|
},
|
|
145
132
|
cardSubmitted: () => {
|
|
146
|
-
|
|
133
|
+
f(!0);
|
|
147
134
|
},
|
|
148
135
|
cardTokenized: (e) => {
|
|
149
136
|
F(e.token);
|
|
@@ -198,20 +185,34 @@ const me = ({
|
|
|
198
185
|
Q,
|
|
199
186
|
{
|
|
200
187
|
onClick: () => {
|
|
201
|
-
|
|
188
|
+
y.submitCard();
|
|
202
189
|
},
|
|
203
190
|
fullWidth: !0,
|
|
204
191
|
disabled: l,
|
|
205
|
-
children: /* @__PURE__ */ r("strong", { children:
|
|
192
|
+
children: /* @__PURE__ */ r("strong", { children: A ? /* @__PURE__ */ n(x, { children: [
|
|
206
193
|
/* @__PURE__ */ r(k, { size: 15, color: "inherit" }),
|
|
207
194
|
" Processing..."
|
|
208
195
|
] }) : "Pay" })
|
|
209
196
|
}
|
|
210
|
-
)
|
|
197
|
+
),
|
|
198
|
+
/* @__PURE__ */ r(m, { className: "flex-center", variant: "caption", mt: 1, children: /* @__PURE__ */ r(
|
|
199
|
+
"a",
|
|
200
|
+
{
|
|
201
|
+
href: "https://everest.org/terms-of-use",
|
|
202
|
+
target: "_blank",
|
|
203
|
+
rel: "noopener noreferrer",
|
|
204
|
+
children: "Legal & Privacy"
|
|
205
|
+
}
|
|
206
|
+
) }),
|
|
207
|
+
/* @__PURE__ */ n(m, { className: "flex-center", variant: "caption", mt: 1, children: [
|
|
208
|
+
/* @__PURE__ */ r(D, {}),
|
|
209
|
+
" ",
|
|
210
|
+
/* @__PURE__ */ r("b", { style: { marginTop: "3px" }, children: "Fiat purchasing is not available for users with Chase and Citi bank accounts" })
|
|
211
|
+
] })
|
|
211
212
|
]
|
|
212
213
|
}
|
|
213
214
|
) }),
|
|
214
|
-
/* @__PURE__ */ r(
|
|
215
|
+
/* @__PURE__ */ r(p, { mt: 8, children: /* @__PURE__ */ r("div", { id: "st-animated-card" }) })
|
|
215
216
|
] });
|
|
216
217
|
};
|
|
217
218
|
export {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsxs as a, Fragment as w, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as Ze, useState as d, useEffect as h, useCallback as et } from "react";
|
|
3
3
|
import tt from "./hoc/withThemeProvider.js";
|
|
4
|
-
import { P as
|
|
4
|
+
import { P as nt, f as rt } from "./PlayArrow-Cm8tJN8W.js";
|
|
5
5
|
import { I as ot } from "./Info-BVeUSPyk.js";
|
|
6
6
|
import { G as Ie } from "./generic-token-B_ptO5yb.js";
|
|
7
|
-
import { PAYMENT_PROVIDER_PAYSAFE as it, ID_TOKEN_SYMBOL as Oe, FIAT_TO_EVER_ID as fe, FIAT_TO_TOKEN as he, ESTIMATE_TOOLTIP_TEXT as at, DIALOG_SUCCESS_ICON as st, PAYMENT_PROVIDER_PLAID as lt, PAYMENT_PROVIDER_CARDCORP as ct, PAYMENT_BANK as
|
|
7
|
+
import { PAYMENT_PROVIDER_PAYSAFE as it, ID_TOKEN_SYMBOL as Oe, FIAT_TO_EVER_ID as fe, FIAT_TO_TOKEN as he, ESTIMATE_TOOLTIP_TEXT as at, DIALOG_SUCCESS_ICON as st, PAYMENT_PROVIDER_PLAID as lt, PAYMENT_PROVIDER_CARDCORP as ct, PAYMENT_BANK as ze, SEPA_ICON as mt, VISA_ICON as dt } from "./util/constants.js";
|
|
8
8
|
import { ap as B } from "./constants-BJhUp96H.js";
|
|
9
9
|
import { c as pt, d as ut, u as ft } from "./index-BQNs1mvn.js";
|
|
10
|
-
import { e as ht, f as $e, c as ye, g as yt, h as
|
|
10
|
+
import { e as ht, f as $e, c as ye, g as yt, h as ke, i as _t } from "./order-fWKVFTau.js";
|
|
11
11
|
import { M as xt } from "./tooltip-3UvETWtS.js";
|
|
12
12
|
import { getCurrencySymbol as Ye, getNetworkBackGround as gt } from "./util/functions.js";
|
|
13
13
|
import xe from "./components/Wallet/Shared/appButton.js";
|
|
14
14
|
import Ct from "./components/Wallet/Shared/backBtn.js";
|
|
15
15
|
import { s as m } from "./styles.module-CHEBh2ID.js";
|
|
16
|
-
import { p as Nt, e as
|
|
17
|
-
import { u as
|
|
16
|
+
import { p as Nt, e as vt } from "./bank-BmV_keEr.js";
|
|
17
|
+
import { u as bt } from "./index.esm-BsMAMhYW.js";
|
|
18
18
|
import { a as W, u as Et } from "./react-redux-B4BZippc.js";
|
|
19
19
|
import "./index-DlQqWbXG.js";
|
|
20
20
|
import "./components/Wallet/Shared/Auth/otpForm.js";
|
|
@@ -37,8 +37,8 @@ import { u as Pt, a as St } from "./wallet-CuQDBP6a.js";
|
|
|
37
37
|
import { AuthContainer as Mt } from "./components/Wallet/Shared/Container/index.js";
|
|
38
38
|
import It from "./components/Wallet/Shared/CardPayment/index.js";
|
|
39
39
|
import Ot from "./components/Shared/MinimalKyc/index.js";
|
|
40
|
-
import
|
|
41
|
-
import
|
|
40
|
+
import zt from "./components/Wallet/Shared/Input/index.js";
|
|
41
|
+
import kt from "./components/Wallet/Shared/CardCorp/index.js";
|
|
42
42
|
import { c as wt } from "./countries-BVn1FubK.js";
|
|
43
43
|
import Wt from "./components/Wallet/Shared/TokenModal/index.js";
|
|
44
44
|
import { PaymentButton as Bt } from "./components/Wallet/Shared/Order/paymentButton.js";
|
|
@@ -59,8 +59,8 @@ const Tt = ({
|
|
|
59
59
|
getCryptoAssets: R,
|
|
60
60
|
showAlertMessage: c,
|
|
61
61
|
partnerKey: u,
|
|
62
|
-
walletAddress:
|
|
63
|
-
setWalletAddress:
|
|
62
|
+
walletAddress: v,
|
|
63
|
+
setWalletAddress: r,
|
|
64
64
|
outputToken: o,
|
|
65
65
|
setOutputToken: I,
|
|
66
66
|
paymentId: g,
|
|
@@ -68,30 +68,30 @@ const Tt = ({
|
|
|
68
68
|
currencyId: f,
|
|
69
69
|
setCurrencyId: V,
|
|
70
70
|
paymentOptions: j,
|
|
71
|
-
setPaymentOptions:
|
|
71
|
+
setPaymentOptions: b
|
|
72
72
|
}) => {
|
|
73
73
|
var Pe, Se;
|
|
74
|
-
const H = W(pt), T = W(ut), { data:
|
|
74
|
+
const H = W(pt), T = W(ut), { data: z, loader: X } = H, { data: ne, loader: de } = T, L = x.fiats, re = x.loader, k = M.featureTokens.buy.list, $ = M.featureTokens.buy.default, oe = M.loader, Y = y.loader, _ = y.estimate[B], J = _.crypto_out_amount, p = _.conversion_price, D = _.total_fee;
|
|
75
75
|
let ie = 0, ae = 0;
|
|
76
76
|
const ge = _.fee_breakdown;
|
|
77
77
|
for (let t = 0; t < ge.length; t++) {
|
|
78
|
-
const
|
|
79
|
-
|
|
78
|
+
const n = ge[t];
|
|
79
|
+
n.name === "ev_fee" ? ie = Number(n.value) : n.name === "network_fee" && (ae = Number(n.value));
|
|
80
80
|
}
|
|
81
81
|
const De = Ze(() => [
|
|
82
|
-
...
|
|
83
|
-
...
|
|
84
|
-
(t) => !
|
|
85
|
-
(
|
|
82
|
+
...z,
|
|
83
|
+
...ne.filter(
|
|
84
|
+
(t) => !z.some(
|
|
85
|
+
(n) => n.address.toLowerCase() === t.address.toLowerCase()
|
|
86
86
|
)
|
|
87
87
|
)
|
|
88
|
-
], [
|
|
88
|
+
], [z, ne]), [pe, Q] = d(!1), [q, qe] = d([]), [Ce, Ue] = d(!1), [Ne, Ke] = d(50), [ve, Ge] = d(3e3), [Z, Ve] = d(50), [be, je] = d(3e3), [Ee, ee] = d(""), [U, Re] = d(
|
|
89
89
|
_.fiat_amount || Z.toString()
|
|
90
90
|
), [He, Ae] = d(!1), K = L.find((t) => t.id === f), A = Ye(K == null ? void 0 : K.symbol);
|
|
91
91
|
h(() => {
|
|
92
92
|
const t = [];
|
|
93
|
-
for (let
|
|
94
|
-
const l = {}, C = L[
|
|
93
|
+
for (let n = 0; n < L.length; n++) {
|
|
94
|
+
const l = {}, C = L[n];
|
|
95
95
|
l.id = C.id, l.name = C.name, l.icon_uri = C.icon_uri, l.symbol = C.symbol, l.payment_options = [];
|
|
96
96
|
const F = C.payment_options;
|
|
97
97
|
for (let G = 0; G < F.length; G++) {
|
|
@@ -105,9 +105,9 @@ const Tt = ({
|
|
|
105
105
|
if (!f || q.length === 0)
|
|
106
106
|
return;
|
|
107
107
|
const t = [];
|
|
108
|
-
for (let
|
|
109
|
-
if (q[
|
|
110
|
-
const l = q[
|
|
108
|
+
for (let n = 0; n < q.length; n++) {
|
|
109
|
+
if (q[n].id === f) {
|
|
110
|
+
const l = q[n].payment_options;
|
|
111
111
|
let C = !1;
|
|
112
112
|
for (let F = 0; F < l.length; F++) {
|
|
113
113
|
const G = l[F];
|
|
@@ -115,13 +115,13 @@ const Tt = ({
|
|
|
115
115
|
}
|
|
116
116
|
C || O(t[0].id);
|
|
117
117
|
}
|
|
118
|
-
|
|
118
|
+
b(t);
|
|
119
119
|
}
|
|
120
120
|
}, [f, q]), h(() => {
|
|
121
121
|
!o.symbol && $ && $.id && I($);
|
|
122
122
|
}, [$]), h(() => {
|
|
123
123
|
f && R && R(f);
|
|
124
|
-
}, [f,
|
|
124
|
+
}, [f, v]), h(() => {
|
|
125
125
|
if (o && o.id && U && g && f) {
|
|
126
126
|
E(ht(B)), Q(!1), ee("");
|
|
127
127
|
const t = setTimeout(() => {
|
|
@@ -129,7 +129,7 @@ const Tt = ({
|
|
|
129
129
|
}, 1e3);
|
|
130
130
|
return () => clearTimeout(t);
|
|
131
131
|
}
|
|
132
|
-
}, [o, U, g,
|
|
132
|
+
}, [o, U, g, k, f]);
|
|
133
133
|
const Xe = () => {
|
|
134
134
|
var C;
|
|
135
135
|
const t = parseFloat(U);
|
|
@@ -138,21 +138,21 @@ const Tt = ({
|
|
|
138
138
|
return ee(
|
|
139
139
|
`Minimum value should be greater than ${A + Ne}`
|
|
140
140
|
), Q(!0), !1;
|
|
141
|
-
if (
|
|
141
|
+
if (ve * 1 < t)
|
|
142
142
|
return ee(
|
|
143
|
-
`Maximum value should be less than ${A +
|
|
143
|
+
`Maximum value should be less than ${A + ve}`
|
|
144
144
|
), Q(!0), !1;
|
|
145
145
|
} else {
|
|
146
146
|
if (Z * 1 > t)
|
|
147
147
|
return ee(
|
|
148
148
|
`Minimum value should be greater than ${A + Z}`
|
|
149
149
|
), Q(!0), !1;
|
|
150
|
-
if (
|
|
150
|
+
if (be * 1 < t)
|
|
151
151
|
return ee(
|
|
152
|
-
`Maximum value should be less than ${A +
|
|
152
|
+
`Maximum value should be less than ${A + be}`
|
|
153
153
|
), Q(!0), !1;
|
|
154
154
|
}
|
|
155
|
-
const
|
|
155
|
+
const n = j.find((F) => F.id === g), l = n.payment_type;
|
|
156
156
|
E(
|
|
157
157
|
$e(
|
|
158
158
|
{
|
|
@@ -164,7 +164,7 @@ const Tt = ({
|
|
|
164
164
|
fiat_ccy: K == null ? void 0 : K.symbol,
|
|
165
165
|
crypto_ccy: o.symbol,
|
|
166
166
|
network: (C = o.network) == null ? void 0 : C.name,
|
|
167
|
-
payment_provider:
|
|
167
|
+
payment_provider: n.payment_provider
|
|
168
168
|
},
|
|
169
169
|
B
|
|
170
170
|
)
|
|
@@ -173,24 +173,17 @@ const Tt = ({
|
|
|
173
173
|
h(() => {
|
|
174
174
|
const t = y.types.length;
|
|
175
175
|
if (t > 0)
|
|
176
|
-
for (let
|
|
177
|
-
const l = y.types[
|
|
178
|
-
|
|
179
|
-
Ke(parseFloat(l.min_deposit_amount)), Ge(parseFloat(l.max_deposit_amount));
|
|
180
|
-
break;
|
|
181
|
-
}
|
|
182
|
-
if (l.type === he) {
|
|
183
|
-
Ve(parseFloat(l.min_deposit_amount)), je(parseFloat(l.max_deposit_amount));
|
|
184
|
-
break;
|
|
185
|
-
}
|
|
176
|
+
for (let n = 0; n < t; n++) {
|
|
177
|
+
const l = y.types[n];
|
|
178
|
+
l.type === fe && (Ke(parseFloat(l.min_deposit_amount)), Ge(parseFloat(l.max_deposit_amount))), l.type === he && (Ve(parseFloat(l.min_deposit_amount)), je(parseFloat(l.max_deposit_amount)));
|
|
186
179
|
}
|
|
187
180
|
}, [y.types]);
|
|
188
181
|
const Je = (t) => {
|
|
189
|
-
const
|
|
190
|
-
|
|
182
|
+
const n = t.target.value;
|
|
183
|
+
n ? /^([0-9.]+)$/.test(n) && Re(n) : Re("");
|
|
191
184
|
}, Fe = (t) => {
|
|
192
|
-
const
|
|
193
|
-
I(
|
|
185
|
+
const n = k.find((l) => l.symbol === t);
|
|
186
|
+
I(n);
|
|
194
187
|
}, Qe = () => {
|
|
195
188
|
if (!o.id)
|
|
196
189
|
return c({ message: "Please select token" }), !1;
|
|
@@ -198,7 +191,7 @@ const Tt = ({
|
|
|
198
191
|
return c({ message: "Please select payment method" }), !1;
|
|
199
192
|
if (!U)
|
|
200
193
|
return c({ message: "Please enter amount" }), !1;
|
|
201
|
-
if (!
|
|
194
|
+
if (!v)
|
|
202
195
|
return c({ message: "Please select wallet address" }), !1;
|
|
203
196
|
if (!J)
|
|
204
197
|
return c({
|
|
@@ -233,7 +226,7 @@ const Tt = ({
|
|
|
233
226
|
]
|
|
234
227
|
}
|
|
235
228
|
) }),
|
|
236
|
-
/* @__PURE__ */ e(i, { size: { xs: 5 }, className: "content-center", children:
|
|
229
|
+
/* @__PURE__ */ e(i, { size: { xs: 5 }, className: "content-center", children: re ? /* @__PURE__ */ e(
|
|
237
230
|
P,
|
|
238
231
|
{
|
|
239
232
|
sx: { ml: 1 },
|
|
@@ -279,8 +272,8 @@ const Tt = ({
|
|
|
279
272
|
"img",
|
|
280
273
|
{
|
|
281
274
|
src: t.icon_uri,
|
|
282
|
-
onError: ({ currentTarget:
|
|
283
|
-
|
|
275
|
+
onError: ({ currentTarget: n }) => {
|
|
276
|
+
n.onerror = null, n.src = Ie;
|
|
284
277
|
},
|
|
285
278
|
alt: "tokenImg",
|
|
286
279
|
width: "40",
|
|
@@ -297,7 +290,7 @@ const Tt = ({
|
|
|
297
290
|
] }),
|
|
298
291
|
/* @__PURE__ */ a(S, { className: "text-left", mt: 3, children: [
|
|
299
292
|
/* @__PURE__ */ e(s, { variant: "sm", fontWeight: 600, children: "Select Payment Method" }),
|
|
300
|
-
|
|
293
|
+
re ? /* @__PURE__ */ e(P, { sx: { ml: 1, mt: 3 }, size: 50 }) : /* @__PURE__ */ e(i, { mt: 0.5, container: !0, children: j.map((t) => /* @__PURE__ */ e(i, { size: { xs: 2.5 }, children: /* @__PURE__ */ e(
|
|
301
294
|
Bt,
|
|
302
295
|
{
|
|
303
296
|
label: t.payment_type,
|
|
@@ -379,13 +372,13 @@ const Tt = ({
|
|
|
379
372
|
open: !1,
|
|
380
373
|
children: [
|
|
381
374
|
/* @__PURE__ */ e(ce, { value: "", children: "Please select" }),
|
|
382
|
-
|
|
375
|
+
k.map((t) => /* @__PURE__ */ a(ce, { value: t.symbol, children: [
|
|
383
376
|
/* @__PURE__ */ e(Te, { className: m["dropdown-list-item"], children: /* @__PURE__ */ e(
|
|
384
377
|
"img",
|
|
385
378
|
{
|
|
386
379
|
src: t.icon_uri,
|
|
387
|
-
onError: ({ currentTarget:
|
|
388
|
-
|
|
380
|
+
onError: ({ currentTarget: n }) => {
|
|
381
|
+
n.onerror = null, n.src = Ie;
|
|
389
382
|
},
|
|
390
383
|
alt: "tokenImg",
|
|
391
384
|
width: "40",
|
|
@@ -412,7 +405,7 @@ const Tt = ({
|
|
|
412
405
|
children: [
|
|
413
406
|
/* @__PURE__ */ e(s, { variant: "caption", fontWeight: 700, children: "Fee Calculation" }),
|
|
414
407
|
/* @__PURE__ */ e(
|
|
415
|
-
|
|
408
|
+
nt,
|
|
416
409
|
{
|
|
417
410
|
sx: {
|
|
418
411
|
transform: `rotate(${Ce ? "90" : "0"}deg)`,
|
|
@@ -489,13 +482,13 @@ const Tt = ({
|
|
|
489
482
|
] })
|
|
490
483
|
] }) }),
|
|
491
484
|
/* @__PURE__ */ e(S, { sx: { alignItems: "left", width: "100%" }, children: X || de ? /* @__PURE__ */ e(S, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(P, {}) }) : /* @__PURE__ */ e(w, { children: /* @__PURE__ */ a(te, { variant: "filled", fullWidth: !0, children: [
|
|
492
|
-
!
|
|
485
|
+
!v && /* @__PURE__ */ e(Be, { children: "Select wallet address" }),
|
|
493
486
|
/* @__PURE__ */ e(
|
|
494
487
|
ue,
|
|
495
488
|
{
|
|
496
|
-
value:
|
|
497
|
-
onChange: (t) =>
|
|
498
|
-
children: De.map((t,
|
|
489
|
+
value: v,
|
|
490
|
+
onChange: (t) => r && r(t.target.value),
|
|
491
|
+
children: De.map((t, n) => /* @__PURE__ */ e(ce, { value: t.address, children: t.name + "(" + t.address + ")" }, n))
|
|
499
492
|
}
|
|
500
493
|
)
|
|
501
494
|
] }) }) }),
|
|
@@ -514,7 +507,7 @@ const Tt = ({
|
|
|
514
507
|
open: He,
|
|
515
508
|
setModal: Ae,
|
|
516
509
|
loader: oe,
|
|
517
|
-
tokenList:
|
|
510
|
+
tokenList: k,
|
|
518
511
|
tokenSelect: Fe
|
|
519
512
|
}
|
|
520
513
|
)
|
|
@@ -528,7 +521,7 @@ const Tt = ({
|
|
|
528
521
|
plaidCountry: R,
|
|
529
522
|
navigate: c
|
|
530
523
|
}) => {
|
|
531
|
-
const { openDialog: u } = At(), { plaidToken:
|
|
524
|
+
const { openDialog: u } = At(), { plaidToken: v } = W(ft), r = E.estimate[B], o = E.create.order_id, I = E.loader, g = r.fiat_amount, O = Ye(r.fiat_currency), [f, V] = d(!1), b = {
|
|
532
525
|
onSuccess: et(() => {
|
|
533
526
|
u({
|
|
534
527
|
title: "Buy Success",
|
|
@@ -546,35 +539,35 @@ const Tt = ({
|
|
|
546
539
|
});
|
|
547
540
|
}, [o]),
|
|
548
541
|
onExit: () => {
|
|
549
|
-
|
|
542
|
+
z(), x(vt());
|
|
550
543
|
},
|
|
551
|
-
token:
|
|
552
|
-
}, { open: H, ready: T } =
|
|
544
|
+
token: v
|
|
545
|
+
}, { open: H, ready: T } = bt(b);
|
|
553
546
|
h(() => {
|
|
554
|
-
T &&
|
|
555
|
-
}, [T,
|
|
556
|
-
o && f && (
|
|
547
|
+
T && v && H();
|
|
548
|
+
}, [T, v]), h(() => {
|
|
549
|
+
o && f && (r.payment_provider === lt ? x(
|
|
557
550
|
Nt({
|
|
558
551
|
country_code: R,
|
|
559
552
|
payment_id: E.create.provider_token
|
|
560
553
|
})
|
|
561
|
-
) :
|
|
554
|
+
) : r.payment_provider === ct ? N(Yt) : N($t));
|
|
562
555
|
}, [o]), h(() => {
|
|
563
|
-
|
|
556
|
+
z();
|
|
564
557
|
}, []);
|
|
565
|
-
const
|
|
558
|
+
const z = () => {
|
|
566
559
|
x(
|
|
567
560
|
$e(
|
|
568
561
|
{
|
|
569
562
|
apiKey: y,
|
|
570
|
-
transaction_type:
|
|
571
|
-
coin_amount:
|
|
572
|
-
exchange:
|
|
573
|
-
payment_type:
|
|
574
|
-
fiat_ccy:
|
|
575
|
-
crypto_ccy:
|
|
576
|
-
network:
|
|
577
|
-
payment_provider:
|
|
563
|
+
transaction_type: r.transaction_type,
|
|
564
|
+
coin_amount: r.fiat_amount,
|
|
565
|
+
exchange: r.exchange,
|
|
566
|
+
payment_type: r.payment_type,
|
|
567
|
+
fiat_ccy: r.fiat_currency,
|
|
568
|
+
crypto_ccy: r.crypto_currency,
|
|
569
|
+
network: r.network,
|
|
570
|
+
payment_provider: r.payment_provider
|
|
578
571
|
},
|
|
579
572
|
B
|
|
580
573
|
)
|
|
@@ -583,7 +576,7 @@ const Tt = ({
|
|
|
583
576
|
x(
|
|
584
577
|
yt({
|
|
585
578
|
apiKey: y,
|
|
586
|
-
quoteId:
|
|
579
|
+
quoteId: r.quote_id,
|
|
587
580
|
walletAddress: M
|
|
588
581
|
})
|
|
589
582
|
), V(!0);
|
|
@@ -597,16 +590,16 @@ const Tt = ({
|
|
|
597
590
|
}
|
|
598
591
|
),
|
|
599
592
|
/* @__PURE__ */ e(s, { mt: 2, variant: "sm", fontWeight: 600, children: "Using payment method" }),
|
|
600
|
-
|
|
593
|
+
r.payment_type && /* @__PURE__ */ a(S, { mt: 2, className: m["confirm-payment"], children: [
|
|
601
594
|
/* @__PURE__ */ e(
|
|
602
595
|
"img",
|
|
603
596
|
{
|
|
604
|
-
src:
|
|
597
|
+
src: r.payment_type === ze ? mt : dt,
|
|
605
598
|
width: 100,
|
|
606
599
|
alt: "payment"
|
|
607
600
|
}
|
|
608
601
|
),
|
|
609
|
-
/* @__PURE__ */ e(s, { variant: "caption", component: "span", children: /* @__PURE__ */ e("strong", { children:
|
|
602
|
+
/* @__PURE__ */ e(s, { variant: "caption", component: "span", children: /* @__PURE__ */ e("strong", { children: r.payment_type === ze ? "Bank Account" : "Debit Card" }) })
|
|
610
603
|
] }),
|
|
611
604
|
/* @__PURE__ */ e(s, { mt: 4, variant: "sm", fontWeight: 600, children: "To Wallet Address" }),
|
|
612
605
|
/* @__PURE__ */ e(
|
|
@@ -621,45 +614,45 @@ const Tt = ({
|
|
|
621
614
|
/* @__PURE__ */ e(s, { mt: 3, variant: "sm", fontWeight: 600, component: "p", children: "Order Estimate Details" }),
|
|
622
615
|
/* @__PURE__ */ e(S, { sx: { color: "#A6A6A6" }, children: /* @__PURE__ */ a(i, { container: !0, children: [
|
|
623
616
|
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
624
|
-
|
|
617
|
+
r.crypto_currency.toUpperCase(),
|
|
625
618
|
" @",
|
|
626
619
|
" ",
|
|
627
|
-
Number(
|
|
620
|
+
Number(r.conversion_price).toFixed(2),
|
|
628
621
|
" ",
|
|
629
|
-
|
|
622
|
+
r.fiat_currency
|
|
630
623
|
] }) }),
|
|
631
624
|
/* @__PURE__ */ e(i, { className: "flex-right", size: { xs: 6 }, children: /* @__PURE__ */ e(
|
|
632
625
|
"span",
|
|
633
626
|
{
|
|
634
627
|
className: m["confirm-transaction-network"],
|
|
635
628
|
style: {
|
|
636
|
-
backgroundColor:
|
|
629
|
+
backgroundColor: r.network === "Ethereum" ? "#A1A9DC" : "#5D8CCC"
|
|
637
630
|
},
|
|
638
|
-
children:
|
|
631
|
+
children: r.network
|
|
639
632
|
}
|
|
640
633
|
) }),
|
|
641
634
|
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
642
|
-
Number(
|
|
635
|
+
Number(r.crypto_out_amount).toFixed(5),
|
|
643
636
|
" ",
|
|
644
|
-
|
|
637
|
+
r.crypto_currency.toUpperCase()
|
|
645
638
|
] }) }),
|
|
646
639
|
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
647
|
-
(Number(g) - Number(
|
|
640
|
+
(Number(g) - Number(r.total_fee)).toFixed(2),
|
|
648
641
|
" ",
|
|
649
|
-
|
|
642
|
+
r.fiat_currency
|
|
650
643
|
] }) }),
|
|
651
644
|
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Total Fees" }) }),
|
|
652
645
|
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
653
|
-
Number(
|
|
646
|
+
Number(r.total_fee).toFixed(2),
|
|
654
647
|
" ",
|
|
655
|
-
|
|
648
|
+
r.fiat_currency
|
|
656
649
|
] }) }),
|
|
657
650
|
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: /* @__PURE__ */ e("strong", { children: "Order Total" }) }) }),
|
|
658
651
|
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: /* @__PURE__ */ a("strong", { children: [
|
|
659
652
|
O,
|
|
660
653
|
Number(g).toFixed(2),
|
|
661
654
|
" ",
|
|
662
|
-
|
|
655
|
+
r.fiat_currency
|
|
663
656
|
] }) }) })
|
|
664
657
|
] }) }),
|
|
665
658
|
/* @__PURE__ */ e(S, { mt: 4, children: /* @__PURE__ */ e(
|
|
@@ -682,13 +675,13 @@ const Tt = ({
|
|
|
682
675
|
cardCorpSrcUrl: x,
|
|
683
676
|
navigate: M
|
|
684
677
|
}) => {
|
|
685
|
-
const { showAlertMessage: R } = Rt(), c = Et(), u = W((p) => p.order),
|
|
678
|
+
const { showAlertMessage: R } = Rt(), c = Et(), u = W((p) => p.order), v = u.create.provider_token, r = u.create.checkout_integrity, o = u.error, I = W(
|
|
686
679
|
(p) => p.user.profile
|
|
687
680
|
), g = I.everWalletAddress, O = I.residentialAddress.country || "USA", f = W((p) => p.fiatAssets), V = W(
|
|
688
681
|
(p) => p.cryptoAssets
|
|
689
|
-
), [j,
|
|
682
|
+
), [j, b] = d(_e), [H, T] = d({
|
|
690
683
|
symbol: ""
|
|
691
|
-
}), [
|
|
684
|
+
}), [z, X] = d(0), [ne, de] = d(1), [L, re] = d([]), [k, $] = d(g), [oe, Y] = d("");
|
|
692
685
|
return h(() => {
|
|
693
686
|
if (O) {
|
|
694
687
|
const p = wt.find((D) => D.alpha3 === O);
|
|
@@ -697,15 +690,15 @@ const Tt = ({
|
|
|
697
690
|
}, [O]), h(() => {
|
|
698
691
|
o && R({ message: o });
|
|
699
692
|
}, [o]), h(() => {
|
|
700
|
-
u.initMinimalKyc && (R({ message: o, type: "info" }),
|
|
701
|
-
}, [u.initMinimalKyc]), h(() => (c(
|
|
693
|
+
u.initMinimalKyc && (R({ message: o, type: "info" }), b(Dt));
|
|
694
|
+
}, [u.initMinimalKyc]), h(() => (c(rt()), c(ke(he)), c(ke(fe)), c(Pt()), c(St()), () => {
|
|
702
695
|
c(ye());
|
|
703
696
|
}), []), /* @__PURE__ */ e(Mt, { addPadding: !0, children: {
|
|
704
697
|
FORM_SCREEN: /* @__PURE__ */ e(
|
|
705
698
|
Tt,
|
|
706
699
|
{
|
|
707
700
|
showAlertMessage: R,
|
|
708
|
-
setScreen:
|
|
701
|
+
setScreen: b,
|
|
709
702
|
fiatAssets: f,
|
|
710
703
|
cryptoAssets: V,
|
|
711
704
|
orderData: u,
|
|
@@ -716,32 +709,32 @@ const Tt = ({
|
|
|
716
709
|
type: B,
|
|
717
710
|
id: p,
|
|
718
711
|
partnerKey: N,
|
|
719
|
-
walletAddress:
|
|
712
|
+
walletAddress: k
|
|
720
713
|
})
|
|
721
714
|
);
|
|
722
715
|
},
|
|
723
716
|
partnerKey: N,
|
|
724
|
-
walletAddress:
|
|
717
|
+
walletAddress: k,
|
|
725
718
|
setWalletAddress: $,
|
|
726
719
|
outputToken: H,
|
|
727
720
|
setOutputToken: T,
|
|
728
|
-
paymentId:
|
|
721
|
+
paymentId: z,
|
|
729
722
|
setPaymentId: X,
|
|
730
|
-
currencyId:
|
|
723
|
+
currencyId: ne,
|
|
731
724
|
setCurrencyId: de,
|
|
732
725
|
paymentOptions: L,
|
|
733
|
-
setPaymentOptions:
|
|
726
|
+
setPaymentOptions: re
|
|
734
727
|
}
|
|
735
728
|
),
|
|
736
729
|
CONFIRM_SCREEN: /* @__PURE__ */ e(
|
|
737
730
|
Lt,
|
|
738
731
|
{
|
|
739
732
|
partnerKey: N,
|
|
740
|
-
setScreen:
|
|
733
|
+
setScreen: b,
|
|
741
734
|
showAlertMessage: R,
|
|
742
735
|
orderData: u,
|
|
743
736
|
dispatch: c,
|
|
744
|
-
walletAddress:
|
|
737
|
+
walletAddress: k,
|
|
745
738
|
plaidCountry: oe,
|
|
746
739
|
navigate: M
|
|
747
740
|
}
|
|
@@ -762,31 +755,31 @@ const Tt = ({
|
|
|
762
755
|
};
|
|
763
756
|
c(_t(ae));
|
|
764
757
|
},
|
|
765
|
-
backBtnFunc: () =>
|
|
758
|
+
backBtnFunc: () => b(me)
|
|
766
759
|
}
|
|
767
760
|
),
|
|
768
761
|
CARD_CORP_SCREEN: /* @__PURE__ */ e(
|
|
769
|
-
|
|
762
|
+
kt,
|
|
770
763
|
{
|
|
771
|
-
checkoutId:
|
|
772
|
-
integrity:
|
|
764
|
+
checkoutId: v,
|
|
765
|
+
integrity: r,
|
|
773
766
|
onResultUrl: `${y}/dashboard`,
|
|
774
|
-
backBtnFunc: () =>
|
|
767
|
+
backBtnFunc: () => b(me),
|
|
775
768
|
srcUrl: x
|
|
776
769
|
}
|
|
777
770
|
),
|
|
778
771
|
MINIMAL_KYC_SCREEN: /* @__PURE__ */ e(
|
|
779
772
|
Ot,
|
|
780
773
|
{
|
|
781
|
-
inputComponent:
|
|
774
|
+
inputComponent: zt,
|
|
782
775
|
buttonComponent: xe,
|
|
783
776
|
onComplete: () => {
|
|
784
|
-
|
|
777
|
+
b(me);
|
|
785
778
|
}
|
|
786
779
|
}
|
|
787
780
|
)
|
|
788
781
|
}[j] });
|
|
789
|
-
},
|
|
782
|
+
}, qn = tt(qt);
|
|
790
783
|
export {
|
|
791
784
|
Tt as B,
|
|
792
785
|
me as C,
|
|
@@ -795,5 +788,5 @@ export {
|
|
|
795
788
|
$t as P,
|
|
796
789
|
Lt as a,
|
|
797
790
|
Yt as b,
|
|
798
|
-
|
|
791
|
+
qn as i
|
|
799
792
|
};
|
package/dist/main.js
CHANGED
|
@@ -11,7 +11,7 @@ import { default as g } from "./components/Wallet/Account/index.js";
|
|
|
11
11
|
import { default as P } from "./components/Wallet/Stake/index.js";
|
|
12
12
|
import { default as w } from "./components/Wallet/MoveToEthereumOrEverChain/index.js";
|
|
13
13
|
import { default as C } from "./components/Wallet/SwapAndUniSwap/index.js";
|
|
14
|
-
import { i as M } from "./index-
|
|
14
|
+
import { i as M } from "./index-MUaN67Ei.js";
|
|
15
15
|
import { i as E } from "./index-pCrOsXNC.js";
|
|
16
16
|
import { i as b } from "./index-B2wXmFh5.js";
|
|
17
17
|
import { i as F } from "./index-DegQ9bTI.js";
|