everest-npm-features 0.0.48 → 0.0.49
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/{PlayArrow-Cnrxi5yr.js → PlayArrow-C3uVNo4F.js} +1 -1
- package/dist/{auth-C45E0xvK.js → auth-ClBgT--j.js} +1 -1
- package/dist/{bank-DIdz4BaB.js → bank-Dz5km1qK.js} +3 -3
- package/dist/components/RocketRamp/MinimalKyc/form.js +14 -13
- package/dist/components/RocketRamp/Player/Buy/cardPayment.js +3 -3
- package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +3 -3
- package/dist/components/RocketRamp/Player/Buy/form.js +4 -4
- package/dist/components/RocketRamp/Player/Buy/index.js +12 -11
- package/dist/components/RocketRamp/Player/Dashboard/index.js +25 -24
- package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +3 -3
- package/dist/components/RocketRamp/Player/Sell/form.js +4 -4
- package/dist/components/RocketRamp/Player/Sell/index.js +12 -11
- package/dist/components/RocketRamp/Player/SignIn/index.js +20 -19
- package/dist/components/RocketRamp/Player/SignIn/loginForm.js +2 -2
- package/dist/components/RocketRamp/Player/SignIn/otpForm.js +2 -2
- package/dist/components/RocketRamp/Player/SignUp/email.js +2 -2
- package/dist/components/RocketRamp/Player/SignUp/index.js +39 -38
- package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +2 -2
- package/dist/components/RocketRamp/ResetPassword/index.js +21 -20
- package/dist/components/RocketRamp/Store/SignUp/index.js +48 -47
- package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +2 -2
- package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +2 -2
- package/dist/components/RocketRamp/Transactions/index.js +14 -13
- package/dist/components/Shared/FullKyc/edd.js +41 -41
- package/dist/components/Shared/FullKyc/index.js +11 -10
- package/dist/components/Shared/FullKyc/pep.js +1 -1
- package/dist/components/Shared/FullKyc/personalDetails.js +2 -2
- package/dist/components/Shared/FullKyc/userInfo.js +4 -4
- package/dist/components/Shared/MinimalKyc/index.js +31 -30
- package/dist/components/Wallet/Account/createIban.d.ts +2 -0
- package/dist/components/Wallet/Account/createIban.js +70 -62
- package/dist/components/Wallet/Account/eWallet.d.ts +20 -0
- package/dist/components/Wallet/Account/eWallet.js +96 -0
- package/dist/components/Wallet/Account/iban.d.ts +2 -0
- package/dist/components/Wallet/Account/iban.js +38 -32
- package/dist/components/Wallet/Account/ibanItem.d.ts +5 -2
- package/dist/components/Wallet/Account/ibanItem.js +233 -76
- package/dist/components/Wallet/Account/index.d.ts +2 -0
- package/dist/components/Wallet/Account/index.js +164 -143
- package/dist/components/Wallet/Account/sendIban.js +3 -3
- package/dist/components/Wallet/Buy/confirmTransaction.js +5 -5
- package/dist/components/Wallet/Buy/form.js +5 -5
- package/dist/components/Wallet/Buy/index.js +14 -13
- package/dist/components/Wallet/Deposit/index.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/edd.js +9 -9
- package/dist/components/Wallet/EnterpriseKyc/index.js +23 -22
- package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +24 -24
- package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/verify.js +1 -1
- package/dist/components/Wallet/History/index.js +25 -24
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +49 -48
- package/dist/components/Wallet/Portfolio/index.js +21 -20
- package/dist/components/Wallet/Profile/documents.js +34 -33
- package/dist/components/Wallet/Profile/index.js +20 -19
- package/dist/components/Wallet/Profile/storage.js +26 -26
- package/dist/components/Wallet/Receive/index.js +22 -21
- package/dist/components/Wallet/Sell/confirmTransaction.js +4 -4
- package/dist/components/Wallet/Sell/form.js +5 -5
- package/dist/components/Wallet/Sell/index.js +13 -12
- package/dist/components/Wallet/Send/index.js +19 -18
- package/dist/components/Wallet/Shared/Auth/otpForm.js +2 -2
- package/dist/components/Wallet/Shared/BankSelect/index.js +36 -35
- package/dist/components/Wallet/Shared/CardCorp/index.d.ts +1 -1
- package/dist/components/Wallet/Shared/CardCorp/index.js +16 -16
- package/dist/components/Wallet/Shared/addBank.js +39 -38
- package/dist/components/Wallet/Shared/connectPlaidBank.js +19 -18
- package/dist/components/Wallet/Shared/manualSend.js +6 -5
- package/dist/components/Wallet/SignIn/index.js +24 -23
- package/dist/components/Wallet/SignUp/index.js +22 -21
- package/dist/components/Wallet/Stake/index.js +30 -29
- package/dist/components/Wallet/Swap/form.js +8 -7
- package/dist/components/Wallet/Swap/index.js +11 -10
- package/dist/components/Wallet/Withdraw/bankSelect.js +28 -27
- package/dist/components/Wallet/Withdraw/confirmTransaction.js +4 -4
- package/dist/components/Wallet/Withdraw/form.js +4 -4
- package/dist/components/Wallet/Withdraw/index.js +12 -11
- package/dist/{constants-BSdmHYnc.js → constants-t7n9qCW3.js} +245 -244
- package/dist/{cryptoAssets-BdNVnpA_.js → cryptoAssets-shEFU26O.js} +1 -1
- package/dist/hooks/useEverestDispatch.d.ts +6 -0
- package/dist/hooks/useEverestDispatch.js +5 -0
- package/dist/{index-Be3ndI6s.js → index-B6MSTmAM.js} +104 -103
- package/dist/{index-HZ9RrpTC.js → index-C2EjFXaz.js} +87 -86
- package/dist/{index-BXF4OI74.js → index-Cs7bSfT3.js} +17 -16
- package/dist/{index-D3OzGVxQ.js → index-DFRU-R-5.js} +38 -37
- package/dist/{index-CRyby3Qm.js → index-Da0r8FX2.js} +11 -10
- package/dist/{index-BlfzmV5M.js → index-RDV0mQbt.js} +36 -35
- package/dist/{index-Cvp4wWrB.js → index-j0zehpzg.js} +40 -39
- package/dist/{kyc-BQsiHtP6.js → kyc-D9xahfH9.js} +1 -1
- package/dist/main.js +7 -7
- package/dist/{order-BKKCskeq.js → order-jqH948WM.js} +29 -25
- package/dist/{react-redux-B4BZippc.js → react-redux-C7I9-1M6.js} +2 -2
- package/dist/{stake-WjG22nIX.js → stake-Dcq6QpaA.js} +3 -3
- package/dist/util/constants.d.ts +2 -0
- package/dist/util/constants.js +21 -19
- package/dist/{wallet-BXA-R-Ks.js → wallet-DpkUmmq0.js} +1 -1
- package/package.json +3 -2
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { jsxs as a, Fragment as
|
|
1
|
+
import { jsxs as a, Fragment as _, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as ye, useMemo as Ve, useState as p, useEffect as h } from "react";
|
|
3
3
|
import Je from "./hoc/withThemeProvider.js";
|
|
4
|
-
import {
|
|
5
|
-
import { P as Qe } from "./PlayArrow-
|
|
4
|
+
import { u as C } from "./react-redux-C7I9-1M6.js";
|
|
5
|
+
import { P as Qe } from "./PlayArrow-C3uVNo4F.js";
|
|
6
6
|
import { I as Ze } from "./Info-BVeUSPyk.js";
|
|
7
7
|
import { G as et } from "./generic-token-B_ptO5yb.js";
|
|
8
8
|
import { getCentralLedgetNetwork as V, getNetworkBackGround as be, getCurrencySymbol as tt } from "./util/functions.js";
|
|
9
9
|
import Ne from "./components/Wallet/Shared/TokenModal/index.js";
|
|
10
|
-
import { formatNumberWithoutRounding as
|
|
11
|
-
import {
|
|
10
|
+
import { formatNumberWithoutRounding as ve } from "./util/conversions.js";
|
|
11
|
+
import { ad as A } from "./constants-t7n9qCW3.js";
|
|
12
12
|
import { c as ot, d as rt } from "./index-BQNs1mvn.js";
|
|
13
|
-
import { f as nt, a as at, b as st } from "./cryptoAssets-
|
|
14
|
-
import { c as Z, d as
|
|
13
|
+
import { f as nt, a as at, b as st } from "./cryptoAssets-shEFU26O.js";
|
|
14
|
+
import { c as Z, d as _e, e as it, f as lt, g as ct, h as mt } from "./order-jqH948WM.js";
|
|
15
15
|
import { DIALOG_SUCCESS_ICON as dt, TOKEN_TO_TOKEN as ee, ARROW_ICON as ut, ESTIMATE_TOOLTIP_TEXT as pt } from "./util/constants.js";
|
|
16
16
|
import { M as ft } from "./tooltip-3UvETWtS.js";
|
|
17
17
|
import "./index-DlQqWbXG.js";
|
|
18
|
-
import
|
|
18
|
+
import Ie from "./components/Wallet/Shared/appButton.js";
|
|
19
19
|
import "./components/Wallet/Shared/Auth/otpForm.js";
|
|
20
20
|
import { useSnackBarContext as ht } from "./context/snackBarContext.js";
|
|
21
|
+
import Fe from "./hooks/useEverestDispatch.js";
|
|
21
22
|
import "./index-CAoLi5Qq.js";
|
|
22
23
|
import "./react-webcam-B3cXh1XT.js";
|
|
23
24
|
import "./components/Shared/transition.js";
|
|
@@ -28,12 +29,12 @@ import "./web3-u4qDZYpo.js";
|
|
|
28
29
|
import "./index-ceeCtFuh.js";
|
|
29
30
|
import { s as i } from "./styles.module-DMd29SPQ.js";
|
|
30
31
|
import Ce from "./components/Wallet/Shared/Order/selectCustomIcon.js";
|
|
31
|
-
import { u as xt, a as gt } from "./wallet-
|
|
32
|
+
import { u as xt, a as gt } from "./wallet-DpkUmmq0.js";
|
|
32
33
|
import { AuthContainer as yt } from "./components/Wallet/Shared/Container/index.js";
|
|
33
34
|
import bt from "./components/Shared/MinimalKyc/index.js";
|
|
34
35
|
import Nt from "./components/Wallet/Shared/Input/index.js";
|
|
35
|
-
import { M as
|
|
36
|
-
import { useDialogContext as
|
|
36
|
+
import { M as vt } from "./index-Cs7bSfT3.js";
|
|
37
|
+
import { useDialogContext as _t } from "./context/dialogContext.js";
|
|
37
38
|
import { B as R } from "./Box-B0YSYLco.js";
|
|
38
39
|
import { G as s } from "./Grid-CFe3amXO.js";
|
|
39
40
|
import { T as m } from "./Typography-pAaje37G.js";
|
|
@@ -54,7 +55,7 @@ const Ct = ({
|
|
|
54
55
|
setScreen: U
|
|
55
56
|
}) => {
|
|
56
57
|
var xe, ge;
|
|
57
|
-
const B = ye(null), z = ye(null), { openDialog: S } =
|
|
58
|
+
const B = ye(null), z = ye(null), { openDialog: S } = _t(), d = C((t) => t.order), b = C(
|
|
58
59
|
(t) => t.cryptoAssets
|
|
59
60
|
), E = C(ot), N = C(rt), { data: L, loader: Re } = E, { data: te, loader: Te } = N, Me = Ve(() => [
|
|
60
61
|
...L,
|
|
@@ -70,7 +71,7 @@ const Ct = ({
|
|
|
70
71
|
const n = le[t];
|
|
71
72
|
n.name === "ev_fee" ? se = Number(n.value) : n.name === "network_fee" && (ie = Number(n.value));
|
|
72
73
|
}
|
|
73
|
-
const [
|
|
74
|
+
const [v, Y] = p("0.05"), [G, ze] = p(!1), [Le, ce] = p(!1), [We, me] = p(!1), [de, Oe] = p(!1), [j, ue] = p(!1), [H, De] = p(50), [$e, Pe] = p(1e4), [pe, Ue] = p(""), Be = /^([0-9]*(\,|\.)[0-9]+|[0-9]+)$/, X = tt("USD"), f = Fe(), qe = (t) => {
|
|
74
75
|
f(at(t));
|
|
75
76
|
}, Ke = (t) => {
|
|
76
77
|
f(st(t));
|
|
@@ -89,10 +90,10 @@ const Ct = ({
|
|
|
89
90
|
w && w("/history"), f(Z());
|
|
90
91
|
},
|
|
91
92
|
height: "490px"
|
|
92
|
-
}) : f(
|
|
93
|
+
}) : f(_e(F)));
|
|
93
94
|
}, [F]), h(() => {
|
|
94
95
|
re > 0 && (B.current = setTimeout(() => {
|
|
95
|
-
f(
|
|
96
|
+
f(_e(F));
|
|
96
97
|
}, 1e4));
|
|
97
98
|
}, [re, F]), h(() => {
|
|
98
99
|
oe && U(St);
|
|
@@ -120,21 +121,21 @@ const Ct = ({
|
|
|
120
121
|
}, [d.types]), h(() => {
|
|
121
122
|
K && c({ message: K });
|
|
122
123
|
}, [K]), h(() => {
|
|
123
|
-
if (r && r.id &&
|
|
124
|
+
if (r && r.id && v) {
|
|
124
125
|
f(it(A)), ze(!1), Ue("");
|
|
125
126
|
const t = setTimeout(() => {
|
|
126
127
|
Ye();
|
|
127
128
|
}, 1e3);
|
|
128
129
|
return () => clearTimeout(t);
|
|
129
130
|
}
|
|
130
|
-
}, [
|
|
131
|
+
}, [v, o, r]);
|
|
131
132
|
const Ye = () => {
|
|
132
133
|
o.network && r && r.network && f(
|
|
133
134
|
lt(
|
|
134
135
|
{
|
|
135
136
|
apiKey: k,
|
|
136
137
|
transaction_type: ee,
|
|
137
|
-
coin_amount:
|
|
138
|
+
coin_amount: v,
|
|
138
139
|
input_token: o.symbol,
|
|
139
140
|
input_token_network: V(
|
|
140
141
|
o.network.name
|
|
@@ -153,7 +154,7 @@ const Ct = ({
|
|
|
153
154
|
y && y(t);
|
|
154
155
|
}, je = (t) => {
|
|
155
156
|
const n = t.target.value;
|
|
156
|
-
n ? /^([0-9.]+)$/.test(n) && Y(
|
|
157
|
+
n ? /^([0-9.]+)$/.test(n) && Y(ve(n, 8)) : Y("");
|
|
157
158
|
}, fe = (t) => {
|
|
158
159
|
if (I) {
|
|
159
160
|
const n = I.find((x) => x.symbol === t);
|
|
@@ -171,17 +172,17 @@ const Ct = ({
|
|
|
171
172
|
return c({
|
|
172
173
|
message: "Please select token you want to receive"
|
|
173
174
|
}), !1;
|
|
174
|
-
if (!
|
|
175
|
+
if (!v)
|
|
175
176
|
return c({ message: "Please enter amount" }), !1;
|
|
176
177
|
if (!l)
|
|
177
178
|
return c({ message: "Please select/enter wallet address" }), !1;
|
|
178
|
-
if (!Be.test(
|
|
179
|
+
if (!Be.test(v))
|
|
179
180
|
return c({ message: "Please provide a valid amount" }), !1;
|
|
180
181
|
if (!D)
|
|
181
182
|
return c({
|
|
182
183
|
message: "Please wait for the estimate to be calculated and then press next"
|
|
183
184
|
}), !1;
|
|
184
|
-
if (o.fmt_balance &&
|
|
185
|
+
if (o.fmt_balance && v > o.fmt_balance)
|
|
185
186
|
return c({
|
|
186
187
|
message: "You don't have enough balance to make this swap"
|
|
187
188
|
}), !1;
|
|
@@ -203,9 +204,9 @@ const Ct = ({
|
|
|
203
204
|
})
|
|
204
205
|
);
|
|
205
206
|
}, Xe = () => {
|
|
206
|
-
o && Y(
|
|
207
|
+
o && Y(ve(o.fmt_balance + "", 8));
|
|
207
208
|
};
|
|
208
|
-
return /* @__PURE__ */ a(
|
|
209
|
+
return /* @__PURE__ */ a(_, { children: [
|
|
209
210
|
/* @__PURE__ */ a(R, { children: [
|
|
210
211
|
/* @__PURE__ */ a(s, { container: !0, children: [
|
|
211
212
|
/* @__PURE__ */ e(s, { size: 2.5, children: /* @__PURE__ */ e(
|
|
@@ -245,7 +246,7 @@ const Ct = ({
|
|
|
245
246
|
P,
|
|
246
247
|
{
|
|
247
248
|
disableUnderline: !0,
|
|
248
|
-
value:
|
|
249
|
+
value: v,
|
|
249
250
|
onChange: je,
|
|
250
251
|
type: "text",
|
|
251
252
|
placeholder: `${H > 0 ? "$" + H + " minimum value" : ""}`,
|
|
@@ -254,7 +255,7 @@ const Ct = ({
|
|
|
254
255
|
fullWidth: !0
|
|
255
256
|
}
|
|
256
257
|
),
|
|
257
|
-
/* @__PURE__ */ e(Se, { className: i["crypto-helper-text"], children: $ > 0 ? "$" + ($ * 1).toFixed(2) : /* @__PURE__ */ e(
|
|
258
|
+
/* @__PURE__ */ e(Se, { className: i["crypto-helper-text"], children: $ > 0 ? "$" + ($ * 1).toFixed(2) : /* @__PURE__ */ e(_, { children: " " }) })
|
|
258
259
|
]
|
|
259
260
|
}
|
|
260
261
|
) }),
|
|
@@ -357,7 +358,7 @@ const Ct = ({
|
|
|
357
358
|
fullWidth: !0
|
|
358
359
|
}
|
|
359
360
|
),
|
|
360
|
-
/* @__PURE__ */ e(Se, { className: i["crypto-helper-text"], children: ae > 0 ? "$" + (ae * 1).toFixed(2) : /* @__PURE__ */ e(
|
|
361
|
+
/* @__PURE__ */ e(Se, { className: i["crypto-helper-text"], children: ae > 0 ? "$" + (ae * 1).toFixed(2) : /* @__PURE__ */ e(_, { children: " " }) })
|
|
361
362
|
]
|
|
362
363
|
}
|
|
363
364
|
) }),
|
|
@@ -462,7 +463,7 @@ const Ct = ({
|
|
|
462
463
|
]
|
|
463
464
|
}
|
|
464
465
|
) }),
|
|
465
|
-
de && /* @__PURE__ */ a(
|
|
466
|
+
de && /* @__PURE__ */ a(_, { children: [
|
|
466
467
|
/* @__PURE__ */ e(s, { className: "text-left", size: 6, children: /* @__PURE__ */ e(m, { variant: "caption", children: "Everest Fee" }) }),
|
|
467
468
|
/* @__PURE__ */ e(s, { className: "text-right", size: 6, children: /* @__PURE__ */ a(m, { variant: "caption", children: [
|
|
468
469
|
X,
|
|
@@ -497,7 +498,7 @@ const Ct = ({
|
|
|
497
498
|
}
|
|
498
499
|
) : Number(Ae).toFixed(2)
|
|
499
500
|
] }) }),
|
|
500
|
-
r && o && /* @__PURE__ */ a(
|
|
501
|
+
r && o && /* @__PURE__ */ a(_, { children: [
|
|
501
502
|
/* @__PURE__ */ e(s, { className: "text-left", size: 6, children: /* @__PURE__ */ a(m, { variant: "caption", children: [
|
|
502
503
|
"1 ",
|
|
503
504
|
o == null ? void 0 : o.symbol,
|
|
@@ -513,7 +514,7 @@ const Ct = ({
|
|
|
513
514
|
) : ne && parseFloat(ne).toFixed(6) + " " + (r == null ? void 0 : r.symbol) }) })
|
|
514
515
|
] })
|
|
515
516
|
] }) }),
|
|
516
|
-
/* @__PURE__ */ e(R, { sx: { alignItems: "left", width: "100%" }, children: Re || Te ? /* @__PURE__ */ e(R, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(g, {}) }) : /* @__PURE__ */ e(
|
|
517
|
+
/* @__PURE__ */ e(R, { sx: { alignItems: "left", width: "100%" }, children: Re || Te ? /* @__PURE__ */ e(R, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(g, {}) }) : /* @__PURE__ */ e(_, { children: /* @__PURE__ */ a(
|
|
517
518
|
T,
|
|
518
519
|
{
|
|
519
520
|
variant: "filled",
|
|
@@ -532,12 +533,12 @@ const Ct = ({
|
|
|
532
533
|
}
|
|
533
534
|
) }) }),
|
|
534
535
|
/* @__PURE__ */ e(R, { mt: 4, children: /* @__PURE__ */ e(
|
|
535
|
-
|
|
536
|
+
Ie,
|
|
536
537
|
{
|
|
537
538
|
fullWidth: !0,
|
|
538
539
|
onClick: He,
|
|
539
540
|
disabled: G || !D,
|
|
540
|
-
children: /* @__PURE__ */ e("strong", { children: j ? /* @__PURE__ */ a(
|
|
541
|
+
children: /* @__PURE__ */ e("strong", { children: j ? /* @__PURE__ */ a(_, { children: [
|
|
541
542
|
/* @__PURE__ */ e(g, { size: 15, color: "inherit" }),
|
|
542
543
|
" Processing..."
|
|
543
544
|
] }) : "Swap" })
|
|
@@ -567,7 +568,7 @@ const Ct = ({
|
|
|
567
568
|
)
|
|
568
569
|
] });
|
|
569
570
|
}, Ee = "FORM_SCREEN", St = "MANUAL_SEND_SCREEN", kt = "MINIMAL_KYC_SCREEN", wt = ({ partnerKey: k, navigate: w }) => {
|
|
570
|
-
const c =
|
|
571
|
+
const c = Fe(), l = C((N) => N.order), y = l.error, U = C((N) => N.fiatAssets), B = C(
|
|
571
572
|
(N) => N.cryptoAssets
|
|
572
573
|
), [z, S] = p(Ee), [d, b] = p(""), { showAlertMessage: E } = ht();
|
|
573
574
|
return h(() => {
|
|
@@ -593,7 +594,7 @@ const Ct = ({
|
|
|
593
594
|
}
|
|
594
595
|
),
|
|
595
596
|
MANUAL_SEND_SCREEN: /* @__PURE__ */ e(
|
|
596
|
-
|
|
597
|
+
vt,
|
|
597
598
|
{
|
|
598
599
|
orderData: l,
|
|
599
600
|
setScreen: S,
|
|
@@ -606,18 +607,18 @@ const Ct = ({
|
|
|
606
607
|
bt,
|
|
607
608
|
{
|
|
608
609
|
inputComponent: Nt,
|
|
609
|
-
buttonComponent:
|
|
610
|
+
buttonComponent: Ie,
|
|
610
611
|
onComplete: () => {
|
|
611
612
|
S(Ee);
|
|
612
613
|
}
|
|
613
614
|
}
|
|
614
615
|
)
|
|
615
616
|
}[z] });
|
|
616
|
-
},
|
|
617
|
+
}, Co = Je(wt);
|
|
617
618
|
export {
|
|
618
619
|
Ee as F,
|
|
619
620
|
St as M,
|
|
620
621
|
Ct as S,
|
|
621
622
|
kt as a,
|
|
622
|
-
|
|
623
|
+
Co as i
|
|
623
624
|
};
|
|
@@ -6,11 +6,11 @@ import Se from "./hoc/withThemeProvider.js";
|
|
|
6
6
|
import ce from "./components/Wallet/Shared/Input/index.js";
|
|
7
7
|
import de from "./components/Wallet/Shared/appButton.js";
|
|
8
8
|
import "./index-DlQqWbXG.js";
|
|
9
|
-
import { u as ue, a as J } from "./react-redux-B4BZippc.js";
|
|
10
9
|
import "./components/Wallet/Shared/Auth/otpForm.js";
|
|
11
|
-
import { d as v, f as be } from "./constants-
|
|
12
|
-
import { b as ve, c as xe } from "./kyc-
|
|
13
|
-
import { useSnackBarContext as
|
|
10
|
+
import { d as v, f as be } from "./constants-t7n9qCW3.js";
|
|
11
|
+
import { b as ve, c as xe } from "./kyc-D9xahfH9.js";
|
|
12
|
+
import { useSnackBarContext as ue } from "./context/snackBarContext.js";
|
|
13
|
+
import pe from "./hooks/useEverestDispatch.js";
|
|
14
14
|
import "./util/conversions.js";
|
|
15
15
|
import "./index-CAoLi5Qq.js";
|
|
16
16
|
import me from "./components/Wallet/Shared/step.js";
|
|
@@ -28,6 +28,7 @@ import re from "./components/Shared/FullKyc/countryList.js";
|
|
|
28
28
|
import { B as w } from "./Box-B0YSYLco.js";
|
|
29
29
|
import { T as j } from "./Typography-pAaje37G.js";
|
|
30
30
|
import Ne from "./components/Shared/FullKyc/pep.js";
|
|
31
|
+
import { u as J } from "./react-redux-C7I9-1M6.js";
|
|
31
32
|
import Pe from "./components/Shared/FullKyc/edd.js";
|
|
32
33
|
import { F as Oe } from "./FormControl-RtZDQMdA.js";
|
|
33
34
|
import { I as Re } from "./TextField-DPpRUQe3.js";
|
|
@@ -44,9 +45,9 @@ const Be = ({
|
|
|
44
45
|
userEmail: g,
|
|
45
46
|
kycFlow: p
|
|
46
47
|
}) => {
|
|
47
|
-
const l =
|
|
48
|
+
const l = pe();
|
|
48
49
|
_e();
|
|
49
|
-
const { showAlertMessage: c } =
|
|
50
|
+
const { showAlertMessage: c } = ue(), a = f ?? ce, D = R ?? de, [d, _] = r(i.gender || ""), [m, N] = r(!1), [P, C] = r(i.email || ""), [Y, Z] = r(!1), [K, q] = r(""), [u, z] = r(i.address || ""), [t, O] = r(i.city || ""), [y, I] = r(i.state || ""), [b, A] = r(i.zipCode || ""), [B, M] = r(
|
|
50
51
|
i.country || null
|
|
51
52
|
), [s, X] = r(!1);
|
|
52
53
|
F(() => {
|
|
@@ -218,7 +219,7 @@ const Be = ({
|
|
|
218
219
|
inputComponent: i,
|
|
219
220
|
buttonComponent: n
|
|
220
221
|
}) => {
|
|
221
|
-
const { showAlertMessage: h } =
|
|
222
|
+
const { showAlertMessage: h } = ue(), g = i ?? ce, p = n ?? de, [l, c] = r(
|
|
222
223
|
f.placeOfBirth || null
|
|
223
224
|
), [a, D] = r(
|
|
224
225
|
f.nationality || null
|
|
@@ -322,7 +323,7 @@ const Be = ({
|
|
|
322
323
|
isModalView: p = !1,
|
|
323
324
|
kycFlow: l
|
|
324
325
|
}) => {
|
|
325
|
-
const c = ge(!0), a =
|
|
326
|
+
const c = ge(!0), a = pe(), D = J((s) => s.user), d = J((s) => s.user.kyc), _ = J((s) => s.session.uuid), m = D.kyc, N = m.processComplete, P = {}, [C, Y] = r(P), [Z, K] = r({ token: "" }), [q, u] = r(
|
|
326
327
|
l === v ? k : ee
|
|
327
328
|
);
|
|
328
329
|
F(() => {
|
|
@@ -489,10 +490,10 @@ const Be = ({
|
|
|
489
490
|
)
|
|
490
491
|
}[q];
|
|
491
492
|
return n ? /* @__PURE__ */ e(Ce, { addPadding: !1, children: M }) : M;
|
|
492
|
-
},
|
|
493
|
+
}, yt = Se(Ke);
|
|
493
494
|
export {
|
|
494
495
|
Te as E,
|
|
495
|
-
|
|
496
|
+
yt as F,
|
|
496
497
|
ee as I,
|
|
497
498
|
Le as P,
|
|
498
499
|
Be as U,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsxs as a, Fragment as F, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as c, useEffect as g } from "react";
|
|
3
3
|
import Oe from "./hoc/withThemeProvider.js";
|
|
4
|
-
import { P as we, f as Be } from "./PlayArrow-
|
|
4
|
+
import { P as we, f as Be } from "./PlayArrow-C3uVNo4F.js";
|
|
5
5
|
import { I as Le } from "./Info-BVeUSPyk.js";
|
|
6
6
|
import { G as Ve } from "./generic-token-B_ptO5yb.js";
|
|
7
7
|
import ne from "./components/RocketRamp/Shared/Input/index.js";
|
|
8
|
-
import { ID_TOKEN_SYMBOL as pe, FIAT_TO_EVER_ID as ae, FIAT_TO_TOKEN as ie, ESTIMATE_TOOLTIP_TEXT as Ye, VISA_PAYMENT as We, VISA_PAYMENT_ACTIVE as
|
|
9
|
-
import {
|
|
10
|
-
import { e as Ge, f as Ce, g as je, i as He, h as ye } from "./order-
|
|
8
|
+
import { ID_TOKEN_SYMBOL as pe, FIAT_TO_EVER_ID as ae, FIAT_TO_TOKEN as ie, ESTIMATE_TOOLTIP_TEXT as Ye, VISA_PAYMENT as We, VISA_PAYMENT_ACTIVE as qe, SEPA_PAYMENT as Ke, SEPA_PAYMENT_ACTIVE as $e, PAYMENT_BANK as he, SEPA_ICON as De, VISA_ICON as be, PAYMENT_PROVIDER_CHECKOUT as fe } from "./util/constants.js";
|
|
9
|
+
import { aJ as Ue, aq as te } from "./constants-t7n9qCW3.js";
|
|
10
|
+
import { e as Ge, f as Ce, g as je, i as He, h as ye } from "./order-jqH948WM.js";
|
|
11
11
|
import { M as Xe } from "./tooltip-3UvETWtS.js";
|
|
12
|
-
import { getCurrencySymbol as Ne, removeExtraSpace as
|
|
12
|
+
import { getCurrencySymbol as Ne, removeExtraSpace as Je, getOrionBalance as Qe } from "./util/functions.js";
|
|
13
13
|
import oe from "./components/RocketRamp/Shared/Button/index.js";
|
|
14
14
|
import Ee from "./components/RocketRamp/Shared/backBtn.js";
|
|
15
15
|
import { T as s } from "./Typography-pAaje37G.js";
|
|
@@ -18,10 +18,11 @@ import { G as o } from "./Grid-CFe3amXO.js";
|
|
|
18
18
|
import { C as I } from "./CircularProgress-xZA3lvba.js";
|
|
19
19
|
import { E as Ze } from "./ErrorOutline-CPQcnl2b.js";
|
|
20
20
|
import { s as xe, p as et, h as tt, v as rt } from "./index-ceeCtFuh.js";
|
|
21
|
-
import { u as
|
|
22
|
-
import { f as
|
|
23
|
-
import
|
|
24
|
-
import { useSnackBarContext as
|
|
21
|
+
import { u as K } from "./react-redux-C7I9-1M6.js";
|
|
22
|
+
import { f as nt } from "./cryptoAssets-shEFU26O.js";
|
|
23
|
+
import at from "./components/RocketRamp/MinimalKyc/form.js";
|
|
24
|
+
import { useSnackBarContext as it } from "./context/snackBarContext.js";
|
|
25
|
+
import ot from "./hooks/useEverestDispatch.js";
|
|
25
26
|
import { I as st } from "./TextField-DPpRUQe3.js";
|
|
26
27
|
import { F as ct } from "./FormControl-RtZDQMdA.js";
|
|
27
28
|
import { S as lt } from "./Select-CB5yWmyn.js";
|
|
@@ -56,7 +57,7 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
56
57
|
}
|
|
57
58
|
const [x, V] = c({
|
|
58
59
|
symbol: ""
|
|
59
|
-
}), [G, R] = c(!1), [T,
|
|
60
|
+
}), [G, R] = c(!1), [T, J] = c(0), [n, S] = c(0), [w, Y] = c([]), [Q, ve] = c(!1), [le, ke] = c(50), [me, Ae] = c(3e3), [re, Ie] = c(50), [de, Te] = c(3e3), [Fe, W] = c(""), [q, ue] = c(
|
|
60
61
|
A.fiat_amount || re.toString()
|
|
61
62
|
);
|
|
62
63
|
g(() => {
|
|
@@ -82,22 +83,22 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
82
83
|
const ee = l[B];
|
|
83
84
|
ee.active && (t.push(ee), l[B].id === T && (Z = !0));
|
|
84
85
|
}
|
|
85
|
-
Z ||
|
|
86
|
+
Z || J(t[0].id);
|
|
86
87
|
}
|
|
87
88
|
Y(t);
|
|
88
89
|
}
|
|
89
90
|
}, [b, m]), g(() => {
|
|
90
|
-
if (x && x.id &&
|
|
91
|
+
if (x && x.id && q && T && n) {
|
|
91
92
|
v(Ge(te)), R(!1), W("");
|
|
92
93
|
const t = setTimeout(() => {
|
|
93
94
|
Pe();
|
|
94
95
|
}, 1e3);
|
|
95
96
|
return () => clearTimeout(t);
|
|
96
97
|
}
|
|
97
|
-
}, [x,
|
|
98
|
+
}, [x, q, T, k, n]);
|
|
98
99
|
const Pe = () => {
|
|
99
100
|
var B;
|
|
100
|
-
const t = parseFloat(
|
|
101
|
+
const t = parseFloat(q);
|
|
101
102
|
if (x.symbol === pe) {
|
|
102
103
|
if (le > t)
|
|
103
104
|
return W(
|
|
@@ -128,7 +129,7 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
128
129
|
{
|
|
129
130
|
apiKey: E,
|
|
130
131
|
transaction_type: x.symbol === pe ? ae : ie,
|
|
131
|
-
coin_amount:
|
|
132
|
+
coin_amount: q,
|
|
132
133
|
exchange: x.exchange,
|
|
133
134
|
payment_type: Z,
|
|
134
135
|
fiat_ccy: b,
|
|
@@ -141,13 +142,13 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
141
142
|
);
|
|
142
143
|
}, Me = ({ value: t, label: i }) => {
|
|
143
144
|
let l;
|
|
144
|
-
if (i === "credit_debit_card" ? (l = We, T === t && (l =
|
|
145
|
+
if (i === "credit_debit_card" ? (l = We, T === t && (l = qe)) : (l = Ke, T === t && (l = $e)), i)
|
|
145
146
|
return /* @__PURE__ */ e(
|
|
146
147
|
y,
|
|
147
148
|
{
|
|
148
149
|
mt: 0.5,
|
|
149
150
|
sx: { cursor: "pointer" },
|
|
150
|
-
onClick: () =>
|
|
151
|
+
onClick: () => J(t * 1),
|
|
151
152
|
children: /* @__PURE__ */ e("img", { src: l, alt: "payment", width: "90%" })
|
|
152
153
|
}
|
|
153
154
|
);
|
|
@@ -178,7 +179,7 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
178
179
|
return r({ message: "Please select token" }), !1;
|
|
179
180
|
if (!T)
|
|
180
181
|
return r({ message: "Please select payment method" }), !1;
|
|
181
|
-
if (!
|
|
182
|
+
if (!q)
|
|
182
183
|
return r({ message: "Please enter amount" }), !1;
|
|
183
184
|
if (!O)
|
|
184
185
|
return r({
|
|
@@ -232,7 +233,7 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
232
233
|
ne,
|
|
233
234
|
{
|
|
234
235
|
label: "You Pay",
|
|
235
|
-
value:
|
|
236
|
+
value: q,
|
|
236
237
|
onChange: Re,
|
|
237
238
|
type: "text",
|
|
238
239
|
labelFontWeight: 600,
|
|
@@ -317,7 +318,7 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
317
318
|
we,
|
|
318
319
|
{
|
|
319
320
|
sx: {
|
|
320
|
-
transform: `rotate(${
|
|
321
|
+
transform: `rotate(${Q ? "90" : "0"}deg)`,
|
|
321
322
|
fontSize: "15px"
|
|
322
323
|
}
|
|
323
324
|
}
|
|
@@ -325,7 +326,7 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
325
326
|
]
|
|
326
327
|
}
|
|
327
328
|
) }),
|
|
328
|
-
|
|
329
|
+
Q && /* @__PURE__ */ a(F, { children: [
|
|
329
330
|
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Everest Fee" }) }),
|
|
330
331
|
/* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
331
332
|
f,
|
|
@@ -545,8 +546,8 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
545
546
|
if (n !== "" && !Y.test(n))
|
|
546
547
|
return !1;
|
|
547
548
|
S(n);
|
|
548
|
-
const
|
|
549
|
-
w(!
|
|
549
|
+
const Q = typeof n == "string" ? Je(n) : n;
|
|
550
|
+
w(!Q);
|
|
550
551
|
}, T = (n) => {
|
|
551
552
|
if (n && n.element)
|
|
552
553
|
switch (n.element) {
|
|
@@ -563,7 +564,7 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
563
564
|
console.log("NOOP");
|
|
564
565
|
break;
|
|
565
566
|
}
|
|
566
|
-
},
|
|
567
|
+
}, J = (n) => {
|
|
567
568
|
if (n === "") {
|
|
568
569
|
v({ message: "Error processing card" }), O(!1), _(se);
|
|
569
570
|
return;
|
|
@@ -651,7 +652,7 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
651
652
|
O(!0);
|
|
652
653
|
},
|
|
653
654
|
cardTokenized: (n) => {
|
|
654
|
-
|
|
655
|
+
J(n.token);
|
|
655
656
|
},
|
|
656
657
|
cardTokenizationFailed: (n) => {
|
|
657
658
|
alert("card tokenization failed"), console.log(n);
|
|
@@ -723,17 +724,17 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
723
724
|
rrBaseUrl: _,
|
|
724
725
|
checkoutSdkKey: v
|
|
725
726
|
}) => {
|
|
726
|
-
const u =
|
|
727
|
+
const u = ot(), p = K((d) => d.order), P = K(
|
|
727
728
|
(d) => d.user.profile
|
|
728
|
-
), r = p.error, E =
|
|
729
|
+
), r = p.error, E = K(
|
|
729
730
|
(d) => d.user.profile.everWalletAddress
|
|
730
|
-
), M =
|
|
731
|
+
), M = K(
|
|
731
732
|
(d) => d.fiatAssets
|
|
732
|
-
), h =
|
|
733
|
+
), h = K(
|
|
733
734
|
(d) => d.cryptoAssets
|
|
734
|
-
), b =
|
|
735
|
+
), b = K((d) => d.app), [f, m] = c(se), [z, k] = c(0), { showAlertMessage: N } = it();
|
|
735
736
|
return g(() => {
|
|
736
|
-
k(
|
|
737
|
+
k(Qe(P.tokens.list));
|
|
737
738
|
}, [P.tokens]), g(() => {
|
|
738
739
|
r && N({ message: r });
|
|
739
740
|
}, [r]), g(() => {
|
|
@@ -760,7 +761,7 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
760
761
|
orderData: p,
|
|
761
762
|
dispatch: u,
|
|
762
763
|
getCryptoAssets: (d) => {
|
|
763
|
-
u(
|
|
764
|
+
u(nt({ type: te, id: d, partnerKey: C }));
|
|
764
765
|
},
|
|
765
766
|
partnerKey: C,
|
|
766
767
|
balance: z,
|
|
@@ -792,7 +793,7 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
792
793
|
}
|
|
793
794
|
),
|
|
794
795
|
MINIMAL_KYC_SCREEN: /* @__PURE__ */ e(
|
|
795
|
-
|
|
796
|
+
at,
|
|
796
797
|
{
|
|
797
798
|
onComplete: () => {
|
|
798
799
|
m(ce);
|
|
@@ -802,7 +803,7 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
802
803
|
}[f]
|
|
803
804
|
}
|
|
804
805
|
);
|
|
805
|
-
},
|
|
806
|
+
}, Ht = Oe(xt);
|
|
806
807
|
export {
|
|
807
808
|
ut as B,
|
|
808
809
|
ht as C,
|
|
@@ -811,5 +812,5 @@ export {
|
|
|
811
812
|
ft as P,
|
|
812
813
|
pt as a,
|
|
813
814
|
ce as b,
|
|
814
|
-
|
|
815
|
+
Ht as i
|
|
815
816
|
};
|