everest-npm-features 0.0.21 → 0.0.22
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/{auth-CjrjTwt5.js → auth-CR0412E5.js} +1 -1
- package/dist/{bank-D3I5wL2-.js → bank-iFS1RXp-.js} +1 -1
- package/dist/components/RocketRamp/MinimalKyc/form.js +2 -2
- 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 +3 -3
- package/dist/components/RocketRamp/Player/Buy/index.js +5 -5
- package/dist/components/RocketRamp/Player/Dashboard/index.js +2 -2
- package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +3 -3
- package/dist/components/RocketRamp/Player/Sell/form.js +3 -3
- package/dist/components/RocketRamp/Player/Sell/index.js +5 -5
- package/dist/components/RocketRamp/Player/SignIn/index.js +2 -2
- 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 +2 -2
- package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +2 -2
- package/dist/components/RocketRamp/ResetPassword/index.js +2 -2
- package/dist/components/RocketRamp/Store/SignUp/index.js +2 -2
- 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 +2 -2
- package/dist/components/Shared/FullKyc/index.js +3 -3
- package/dist/components/Shared/FullKyc/personalDetails.js +2 -2
- package/dist/components/Shared/FullKyc/userInfo.js +3 -3
- package/dist/components/Shared/MinimalKyc/index.d.ts +2 -2
- package/dist/components/Shared/MinimalKyc/index.js +63 -55
- package/dist/components/Wallet/Account/iban.js +4 -4
- package/dist/components/Wallet/Account/index.js +4 -4
- package/dist/components/Wallet/Account/sendIban.js +2 -2
- package/dist/components/Wallet/Buy/confirmTransaction.js +3 -3
- package/dist/components/Wallet/Buy/form.js +3 -3
- package/dist/components/Wallet/Buy/index.js +6 -6
- package/dist/components/Wallet/Deposit/index.d.ts +4 -1
- package/dist/components/Wallet/Deposit/index.js +20 -19
- package/dist/components/Wallet/EnterpriseKyc/edd.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/index.js +3 -3
- package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +26 -35
- package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +2 -2
- 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 +2 -2
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +2 -2
- package/dist/components/Wallet/Portfolio/index.js +3 -3
- package/dist/components/Wallet/Profile/documents.js +2 -2
- package/dist/components/Wallet/Profile/index.d.ts +1 -0
- package/dist/components/Wallet/Profile/index.js +93 -78
- package/dist/components/Wallet/Receive/index.js +2 -2
- package/dist/components/Wallet/Sell/confirmTransaction.js +3 -3
- package/dist/components/Wallet/Sell/form.js +3 -3
- package/dist/components/Wallet/Sell/index.js +6 -6
- package/dist/components/Wallet/Send/index.js +2 -2
- package/dist/components/Wallet/Shared/Auth/otpForm.js +2 -2
- package/dist/components/Wallet/Shared/addBank.js +2 -2
- package/dist/components/Wallet/Shared/connectPlaidBank.js +2 -2
- package/dist/components/Wallet/SignIn/index.js +2 -2
- package/dist/components/Wallet/SignUp/index.js +2 -2
- package/dist/components/Wallet/Stake/index.js +3 -3
- package/dist/components/Wallet/Swap/index.js +228 -213
- package/dist/components/Wallet/Withdraw/bankSelect.js +4 -4
- package/dist/components/Wallet/Withdraw/confirmTransaction.js +3 -3
- package/dist/components/Wallet/Withdraw/form.js +3 -3
- package/dist/components/Wallet/Withdraw/index.js +5 -5
- package/dist/{constants-CdVZO8DH.js → constants-BJByDTQY.js} +132 -131
- package/dist/{cryptoAssets-awZZ9HTs.js → cryptoAssets-BcVSdM1C.js} +1 -1
- package/dist/{documents-DvNPkuYe.js → documents-HjBKq9qA.js} +1 -1
- package/dist/{fiatAssets-yeCL6wA9.js → fiatAssets-C_F8qNzr.js} +1 -1
- package/dist/{iban-4bMHHpJO.js → iban-Dh7qBGGc.js} +3 -3
- package/dist/{index-86Hyynn-.js → index-B2OIoTNN.js} +98 -95
- package/dist/{index-CFWL7CoB.js → index-BEH1PkNC.js} +203 -200
- package/dist/{index-DHrWPN34.js → index-BFIhKqqi.js} +152 -142
- package/dist/{index-Dx7-MJk2.js → index-CQe8cwpc.js} +2 -2
- package/dist/{index-98VYd3cT.js → index-DSZxScyY.js} +188 -185
- package/dist/{index-SbY3kKNL.js → index-DkMQ44xy.js} +117 -111
- package/dist/{kyc-Dur3dRxq.js → kyc-DJpiKj5d.js} +1 -1
- package/dist/main.js +6 -6
- package/dist/order-DhUA-ZNX.js +43 -0
- package/dist/{stake-DaOB24Ou.js → stake-DWRuAE1u.js} +1 -1
- package/dist/{wallet-D76D_QSY.js → wallet-z7NHqtCj.js} +1 -1
- package/package.json +2 -2
- package/dist/order-DNSedxgT.js +0 -41
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { jsxs as a, jsx as e, Fragment as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { u as
|
|
4
|
-
import { P as
|
|
5
|
-
import { I as
|
|
6
|
-
import { G as
|
|
7
|
-
import { getCentralLedgetNetwork as
|
|
8
|
-
import
|
|
9
|
-
import { formatNumberWithoutRounding as
|
|
10
|
-
import { F as
|
|
11
|
-
import { u as
|
|
12
|
-
import { f as
|
|
13
|
-
import { u as
|
|
14
|
-
import { o as
|
|
15
|
-
import { DIALOG_SUCCESS_ICON as
|
|
16
|
-
import { M as
|
|
17
|
-
import
|
|
1
|
+
import { jsxs as a, jsx as e, Fragment as b } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as $e, useState as u, useEffect as y } from "react";
|
|
3
|
+
import { u as B, a as Pe } from "../../../react-redux-C7I9-1M6.js";
|
|
4
|
+
import { P as Be } from "../../../PlayArrow-1Y66tCVx.js";
|
|
5
|
+
import { I as De } from "../../../Info-83BXSu73.js";
|
|
6
|
+
import { G as ze } from "../../../generic-token-B_ptO5yb.js";
|
|
7
|
+
import { getCentralLedgetNetwork as D, getNetworkBackGround as me, getCurrencySymbol as Ue } from "../../../util/functions.js";
|
|
8
|
+
import de from "../Shared/TokenModal/index.js";
|
|
9
|
+
import { formatNumberWithoutRounding as ue } from "../../../util/conversions.js";
|
|
10
|
+
import { F as A } from "../../../constants-BJByDTQY.js";
|
|
11
|
+
import { u as qe } from "../../../index-f15o1nhn.js";
|
|
12
|
+
import { f as Ge, a as Ye, b as je } from "../../../cryptoAssets-BcVSdM1C.js";
|
|
13
|
+
import { u as He } from "../../../wallet-z7NHqtCj.js";
|
|
14
|
+
import { o as z, a as Ke, b as Xe, c as Ve, d as Je } from "../../../order-DhUA-ZNX.js";
|
|
15
|
+
import { DIALOG_SUCCESS_ICON as Qe, TOKEN_TO_TOKEN as U, ARROW_ICON as Ze, ESTIMATE_TOOLTIP_TEXT as et } from "../../../util/constants.js";
|
|
16
|
+
import { M as tt } from "../../../tooltip-CwdohO6q.js";
|
|
17
|
+
import rt from "../../../hoc/withThemeProvider.js";
|
|
18
18
|
import "../Shared/appButton.js";
|
|
19
19
|
import "../Shared/Auth/otpForm.js";
|
|
20
|
-
import { AuthContainer as
|
|
21
|
-
import { useSnackBarContext as
|
|
22
|
-
import { useDialog as
|
|
20
|
+
import { AuthContainer as ot } from "../Shared/Container/index.js";
|
|
21
|
+
import { useSnackBarContext as at } from "../../../context/snackBarContext.js";
|
|
22
|
+
import { useDialog as nt } from "../../../hooks/useDialog/index.js";
|
|
23
23
|
import "../../../index-CAoLi5Qq.js";
|
|
24
24
|
import "../../../react-webcam-B3cXh1XT.js";
|
|
25
25
|
import "../../Shared/transition.js";
|
|
@@ -29,154 +29,169 @@ import "../../../index.esm-BsMAMhYW.js";
|
|
|
29
29
|
import "../../../web3-u4qDZYpo.js";
|
|
30
30
|
import "../../../index-B8QKlEgj.js";
|
|
31
31
|
import "../../../index-ceeCtFuh.js";
|
|
32
|
-
import { s } from "../../../styles.module-BFHktEw2.js";
|
|
33
|
-
import { B as
|
|
32
|
+
import { s as i } from "../../../styles.module-BFHktEw2.js";
|
|
33
|
+
import { B as N } from "../../../Box-Be0E_-eR.js";
|
|
34
34
|
import { G as n } from "../../../Grid-BaaKMDwM.js";
|
|
35
35
|
import { T as l } from "../../../Typography-Ds4fpvK8.js";
|
|
36
|
-
import { F as
|
|
37
|
-
import { F as
|
|
38
|
-
import { F as
|
|
39
|
-
import { C as
|
|
40
|
-
import { S as
|
|
41
|
-
import { M as
|
|
42
|
-
import { L as
|
|
43
|
-
import { I as
|
|
44
|
-
import { B as
|
|
45
|
-
const
|
|
46
|
-
var
|
|
47
|
-
const
|
|
36
|
+
import { F as _ } from "../../../FormControl-Cc-02KHW.js";
|
|
37
|
+
import { F as I } from "../../../FilledInput-n9W_V8GV.js";
|
|
38
|
+
import { F as pe, I as q } from "../../../TextField-Cm9apaOp.js";
|
|
39
|
+
import { C as h } from "../../../CircularProgress-fePUtoaj.js";
|
|
40
|
+
import { S as G } from "../../../Select-DpKw-a6h.js";
|
|
41
|
+
import { M as w } from "../../../MenuItem-BkJ_C9Xs.js";
|
|
42
|
+
import { L as fe } from "../../../ListItemIcon-DIz-ZmJ0.js";
|
|
43
|
+
import { I as he } from "../../../IconButton-8B2ygvr4.js";
|
|
44
|
+
import { B as st } from "../../../Button-DCBtFwk3.js";
|
|
45
|
+
const it = ({ partnerKey: M, navigate: Y }) => {
|
|
46
|
+
var le, ce;
|
|
47
|
+
const j = $e(null), { openDialog: xe, ConfirmDialog: ge } = nt(), { showAlertMessage: d } = at(), x = B((t) => t.order), v = B(
|
|
48
48
|
(t) => t.cryptoAssets
|
|
49
|
-
),
|
|
50
|
-
let
|
|
51
|
-
const
|
|
52
|
-
for (let t = 0; t <
|
|
53
|
-
const
|
|
54
|
-
|
|
49
|
+
), H = B(qe), be = H.data, { loader: ye } = H, O = v.featureTokens.swap.inputList, r = v.featureTokens.swap.inputDefault, k = v.featureTokens.swap.outputList, o = v.featureTokens.swap.outputDefault, S = v.loader, R = x.error, K = x.create.order_id, F = x.loader, c = x.estimate[A], C = c.output_token.amount, X = c.conversion_price, we = c.total_fee, T = Number((le = c == null ? void 0 : c.input_token) == null ? void 0 : le.fiat_amount), V = Number((ce = c == null ? void 0 : c.output_token) == null ? void 0 : ce.fiat_amount);
|
|
50
|
+
let J = 0, Q = 0;
|
|
51
|
+
const Z = c.fee_breakdown;
|
|
52
|
+
for (let t = 0; t < Z.length; t++) {
|
|
53
|
+
const s = Z[t];
|
|
54
|
+
s.name === "ev_fee" ? J = Number(s.value) : s.name === "network_fee" && (Q = Number(s.value));
|
|
55
55
|
}
|
|
56
|
-
const [
|
|
57
|
-
|
|
58
|
-
},
|
|
59
|
-
|
|
56
|
+
const [g, E] = u("0.05"), [L, ve] = u(!1), [ke, ee] = u(!1), [Ne, te] = u(!1), [re, _e] = u(!1), [W, oe] = u(!1), [p, Se] = u(""), [$, Fe] = u(50), [Ce, Te] = u(1e4), [ae, Ae] = u(""), Ie = /^([0-9]*(\,|\.)[0-9]+|[0-9]+)$/, P = Ue("USD"), m = Pe(), Me = (t) => {
|
|
57
|
+
m(Ye(t));
|
|
58
|
+
}, ne = (t) => {
|
|
59
|
+
m(je(t));
|
|
60
60
|
};
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
icon:
|
|
61
|
+
y(() => {
|
|
62
|
+
K && W && xe({
|
|
63
|
+
icon: Qe,
|
|
64
64
|
title: "Swap Success",
|
|
65
65
|
message: "Your transaction was successful for more details on the transaction, please view your transaction history.",
|
|
66
66
|
cancelButtonText: "Swap again",
|
|
67
67
|
onCancel: () => {
|
|
68
|
-
|
|
68
|
+
m(z()), oe(!1);
|
|
69
69
|
},
|
|
70
70
|
confirmButtonText: "Track Order",
|
|
71
71
|
onConfirm: () => {
|
|
72
|
-
|
|
72
|
+
Y && Y("/history"), m(z());
|
|
73
73
|
},
|
|
74
74
|
height: "490px"
|
|
75
75
|
});
|
|
76
|
-
}, [
|
|
77
|
-
const t =
|
|
78
|
-
(t == null ? void 0 : t.id) === r.id && (t == null ? void 0 : t.wallet) === p || (
|
|
79
|
-
|
|
80
|
-
type:
|
|
76
|
+
}, [K]), y(() => {
|
|
77
|
+
const t = j.current;
|
|
78
|
+
(t == null ? void 0 : t.id) === r.id && (t == null ? void 0 : t.wallet) === p || (j.current = { id: r.id, wallet: p }, m(
|
|
79
|
+
Ge({
|
|
80
|
+
type: A,
|
|
81
81
|
id: r.id,
|
|
82
82
|
walletAddress: p,
|
|
83
|
-
partnerKey:
|
|
83
|
+
partnerKey: M
|
|
84
84
|
})
|
|
85
85
|
));
|
|
86
|
-
}, [r.id, p]),
|
|
87
|
-
|
|
88
|
-
}), []),
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
86
|
+
}, [r.id, p]), y(() => (m(He()), m(Ke(U)), () => {
|
|
87
|
+
m(z());
|
|
88
|
+
}), []), y(() => {
|
|
89
|
+
const t = x.types.length;
|
|
90
|
+
if (t > 0)
|
|
91
|
+
for (let s = 0; s < t; s++) {
|
|
92
|
+
const f = x.types[s];
|
|
93
|
+
if (f.type === U) {
|
|
94
|
+
Fe(parseFloat(f.min_deposit_amount)), Te(parseFloat(f.max_deposit_amount));
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}, [x.types]), y(() => {
|
|
99
|
+
R && d({ message: R });
|
|
100
|
+
}, [R]), y(() => {
|
|
101
|
+
if (o && o.id && g) {
|
|
102
|
+
m(Xe(A)), ve(!1), Ae("");
|
|
93
103
|
const t = setTimeout(() => {
|
|
94
|
-
|
|
104
|
+
Oe();
|
|
95
105
|
}, 1e3);
|
|
96
106
|
return () => clearTimeout(t);
|
|
97
107
|
}
|
|
98
|
-
}, [
|
|
99
|
-
const
|
|
100
|
-
r.network && o && o.network &&
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
108
|
+
}, [g, r, o]);
|
|
109
|
+
const Oe = () => {
|
|
110
|
+
r.network && o && o.network && m(
|
|
111
|
+
Ve(
|
|
112
|
+
{
|
|
113
|
+
apiKey: M,
|
|
114
|
+
transaction_type: U,
|
|
115
|
+
coin_amount: g,
|
|
116
|
+
input_token: r.symbol,
|
|
117
|
+
input_token_network: D(
|
|
118
|
+
r.network.name
|
|
119
|
+
),
|
|
120
|
+
exchange: r.exchange,
|
|
121
|
+
output_token: o.symbol,
|
|
122
|
+
output_token_network: D(
|
|
123
|
+
o.network.name
|
|
124
|
+
),
|
|
125
|
+
output_exchange: o.exchange
|
|
126
|
+
},
|
|
127
|
+
A
|
|
128
|
+
)
|
|
114
129
|
);
|
|
115
|
-
},
|
|
116
|
-
|
|
117
|
-
},
|
|
118
|
-
const
|
|
119
|
-
|
|
120
|
-
},
|
|
121
|
-
if (
|
|
122
|
-
const
|
|
123
|
-
|
|
130
|
+
}, Re = (t) => {
|
|
131
|
+
Se(t);
|
|
132
|
+
}, Ee = (t) => {
|
|
133
|
+
const s = t.target.value;
|
|
134
|
+
s ? /^([0-9.]+)$/.test(s) && E(ue(s, 8)) : E("");
|
|
135
|
+
}, se = (t) => {
|
|
136
|
+
if (k) {
|
|
137
|
+
const s = k.find((f) => f.symbol === t);
|
|
138
|
+
ne(s);
|
|
124
139
|
}
|
|
125
|
-
},
|
|
126
|
-
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
-
},
|
|
140
|
+
}, ie = (t) => {
|
|
141
|
+
ne({ symbol: "" });
|
|
142
|
+
const s = O.find((f) => f.symbol === t);
|
|
143
|
+
Me(s);
|
|
144
|
+
}, Le = () => {
|
|
130
145
|
if (!r)
|
|
131
|
-
return
|
|
146
|
+
return d({
|
|
132
147
|
message: "Please select token you want to swap"
|
|
133
148
|
}), !1;
|
|
134
149
|
if (!o)
|
|
135
|
-
return
|
|
150
|
+
return d({
|
|
136
151
|
message: "Please select token you want to receive"
|
|
137
152
|
}), !1;
|
|
138
|
-
if (!
|
|
139
|
-
return
|
|
153
|
+
if (!g)
|
|
154
|
+
return d({ message: "Please enter amount" }), !1;
|
|
140
155
|
if (!p)
|
|
141
|
-
return
|
|
142
|
-
if (!
|
|
143
|
-
return
|
|
156
|
+
return d({ message: "Please select/enter wallet address" }), !1;
|
|
157
|
+
if (!Ie.test(g))
|
|
158
|
+
return d({ message: "Please provide a valid amount" }), !1;
|
|
144
159
|
if (!C)
|
|
145
|
-
return
|
|
160
|
+
return d({
|
|
146
161
|
message: "Please wait for the estimate to be calculated and then press next"
|
|
147
162
|
}), !1;
|
|
148
|
-
if (r.fmt_balance &&
|
|
149
|
-
return
|
|
163
|
+
if (r.fmt_balance && g > r.fmt_balance)
|
|
164
|
+
return d({
|
|
150
165
|
message: "You don't have enough balance to make this swap"
|
|
151
166
|
}), !1;
|
|
152
|
-
if (
|
|
153
|
-
return
|
|
167
|
+
if ($ * 1 > T * 1)
|
|
168
|
+
return d({
|
|
154
169
|
message: "The input amount of this transaction is below our minimum, please try a higher transaction amount"
|
|
155
170
|
}), !1;
|
|
156
|
-
if (
|
|
157
|
-
return
|
|
171
|
+
if (Ce * 1 < T * 1)
|
|
172
|
+
return d({
|
|
158
173
|
message: "The input amount of this transaction is above our maximum, please try a lower transaction amount"
|
|
159
174
|
}), !1;
|
|
160
|
-
if (
|
|
175
|
+
if (W)
|
|
161
176
|
return !1;
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
apiKey:
|
|
177
|
+
oe(!0), m(
|
|
178
|
+
Je({
|
|
179
|
+
apiKey: M,
|
|
165
180
|
quoteId: c.quote_id,
|
|
166
181
|
walletAddress: p
|
|
167
182
|
})
|
|
168
183
|
);
|
|
169
|
-
},
|
|
170
|
-
r &&
|
|
184
|
+
}, We = () => {
|
|
185
|
+
r && E(ue(r.fmt_balance + "", 8));
|
|
171
186
|
};
|
|
172
|
-
return /* @__PURE__ */ a(
|
|
173
|
-
/* @__PURE__ */ a(
|
|
174
|
-
/* @__PURE__ */ e(
|
|
187
|
+
return /* @__PURE__ */ a(ot, { addPadding: !0, children: [
|
|
188
|
+
/* @__PURE__ */ a(N, { children: [
|
|
189
|
+
/* @__PURE__ */ e(ge, {}),
|
|
175
190
|
/* @__PURE__ */ a(n, { container: !0, children: [
|
|
176
191
|
/* @__PURE__ */ e(n, { item: !0, xs: 2.5, children: /* @__PURE__ */ e(
|
|
177
192
|
l,
|
|
178
193
|
{
|
|
179
|
-
className:
|
|
194
|
+
className: i.label,
|
|
180
195
|
variant: "caption",
|
|
181
196
|
component: "p",
|
|
182
197
|
children: "You Swap"
|
|
@@ -185,7 +200,7 @@ const at = ({ partnerKey: I, navigate: q }) => {
|
|
|
185
200
|
/* @__PURE__ */ e(n, { item: !0, xs: 9.5, children: p && r && /* @__PURE__ */ a(
|
|
186
201
|
l,
|
|
187
202
|
{
|
|
188
|
-
className:
|
|
203
|
+
className: i["balance-label"],
|
|
189
204
|
variant: "caption",
|
|
190
205
|
component: "p",
|
|
191
206
|
children: [
|
|
@@ -194,53 +209,53 @@ const at = ({ partnerKey: I, navigate: q }) => {
|
|
|
194
209
|
" ",
|
|
195
210
|
r.symbol,
|
|
196
211
|
" ",
|
|
197
|
-
/* @__PURE__ */ e("span", { className:
|
|
212
|
+
/* @__PURE__ */ e("span", { className: i["max-btn"], onClick: We, children: "MAX" })
|
|
198
213
|
]
|
|
199
214
|
}
|
|
200
215
|
) })
|
|
201
216
|
] }),
|
|
202
217
|
/* @__PURE__ */ a(n, { spacing: 0, mt: 0.5, container: !0, children: [
|
|
203
218
|
/* @__PURE__ */ e(n, { item: !0, xs: 6, children: /* @__PURE__ */ a(
|
|
204
|
-
|
|
219
|
+
_,
|
|
205
220
|
{
|
|
206
|
-
className: `${
|
|
221
|
+
className: `${i.amount} ${i["fiat-field"]}`,
|
|
207
222
|
fullWidth: !0,
|
|
208
223
|
children: [
|
|
209
224
|
/* @__PURE__ */ e(
|
|
210
|
-
|
|
225
|
+
I,
|
|
211
226
|
{
|
|
212
227
|
disableUnderline: !0,
|
|
213
|
-
value:
|
|
214
|
-
onChange:
|
|
228
|
+
value: g,
|
|
229
|
+
onChange: Ee,
|
|
215
230
|
type: "text",
|
|
216
|
-
placeholder: `${
|
|
217
|
-
error:
|
|
231
|
+
placeholder: `${$ > 0 ? "$" + $ + " minimum value" : ""}`,
|
|
232
|
+
error: L,
|
|
218
233
|
required: !0,
|
|
219
234
|
fullWidth: !0
|
|
220
235
|
}
|
|
221
236
|
),
|
|
222
|
-
/* @__PURE__ */ e(
|
|
237
|
+
/* @__PURE__ */ e(pe, { className: i["amount-symbol"], children: T > 0 ? "$" + (T * 1).toFixed(2) : /* @__PURE__ */ e(b, { children: " " }) })
|
|
223
238
|
]
|
|
224
239
|
}
|
|
225
240
|
) }),
|
|
226
|
-
/* @__PURE__ */ e(n, { item: !0, xs: 6, className: "content-center", children:
|
|
227
|
-
|
|
241
|
+
/* @__PURE__ */ e(n, { item: !0, xs: 6, className: "content-center", children: S ? /* @__PURE__ */ e(h, { sx: { ml: 1 }, size: 30 }) : /* @__PURE__ */ a(
|
|
242
|
+
_,
|
|
228
243
|
{
|
|
229
244
|
variant: "filled",
|
|
230
|
-
className: `text-left ${
|
|
245
|
+
className: `text-left ${i["crypto-picker"]}`,
|
|
231
246
|
fullWidth: !0,
|
|
232
247
|
children: [
|
|
233
248
|
(r == null ? void 0 : r.network) && /* @__PURE__ */ e(
|
|
234
|
-
|
|
249
|
+
q,
|
|
235
250
|
{
|
|
236
|
-
className: `${
|
|
237
|
-
children:
|
|
251
|
+
className: `${i["network-label"]} ${i[me(r == null ? void 0 : r.network.name)]}`,
|
|
252
|
+
children: D(r == null ? void 0 : r.network.name)
|
|
238
253
|
}
|
|
239
254
|
),
|
|
240
255
|
/* @__PURE__ */ a(
|
|
241
|
-
|
|
256
|
+
G,
|
|
242
257
|
{
|
|
243
|
-
input: /* @__PURE__ */ e(
|
|
258
|
+
input: /* @__PURE__ */ e(I, { disableUnderline: !0 }),
|
|
244
259
|
sx: {
|
|
245
260
|
borderTopLeftRadius: 0,
|
|
246
261
|
"&::before": {
|
|
@@ -265,17 +280,17 @@ const at = ({ partnerKey: I, navigate: q }) => {
|
|
|
265
280
|
variant: "filled",
|
|
266
281
|
value: r && r.symbol,
|
|
267
282
|
displayEmpty: !0,
|
|
268
|
-
onChange: (t) =>
|
|
283
|
+
onChange: (t) => ie(t.target.value),
|
|
269
284
|
onOpen: (t) => {
|
|
270
|
-
|
|
285
|
+
te(!0), t.preventDefault();
|
|
271
286
|
},
|
|
272
287
|
defaultOpen: !1,
|
|
273
288
|
open: !1,
|
|
274
|
-
error:
|
|
289
|
+
error: L,
|
|
275
290
|
children: [
|
|
276
|
-
/* @__PURE__ */ e(
|
|
277
|
-
|
|
278
|
-
/* @__PURE__ */ e(
|
|
291
|
+
/* @__PURE__ */ e(w, { value: "", children: "Please select input" }),
|
|
292
|
+
O.map((t) => /* @__PURE__ */ a(w, { value: t.symbol, children: [
|
|
293
|
+
/* @__PURE__ */ e(fe, { className: i["dropdown-list-item"], children: /* @__PURE__ */ e(
|
|
279
294
|
"img",
|
|
280
295
|
{
|
|
281
296
|
src: t.icon_uri,
|
|
@@ -292,13 +307,13 @@ const at = ({ partnerKey: I, navigate: q }) => {
|
|
|
292
307
|
]
|
|
293
308
|
}
|
|
294
309
|
) }),
|
|
295
|
-
|
|
310
|
+
ae && /* @__PURE__ */ e(l, { variant: "caption", sx: { color: "red" }, children: /* @__PURE__ */ e("strong", { children: ae }) })
|
|
296
311
|
] }),
|
|
297
312
|
/* @__PURE__ */ a(n, { mt: 4, container: !0, children: [
|
|
298
313
|
/* @__PURE__ */ e(n, { item: !0, xs: 4, children: /* @__PURE__ */ e(
|
|
299
314
|
l,
|
|
300
315
|
{
|
|
301
|
-
className:
|
|
316
|
+
className: i.label,
|
|
302
317
|
variant: "caption",
|
|
303
318
|
component: "p",
|
|
304
319
|
children: "You Receive"
|
|
@@ -311,19 +326,19 @@ const at = ({ partnerKey: I, navigate: q }) => {
|
|
|
311
326
|
className: "text-center",
|
|
312
327
|
item: !0,
|
|
313
328
|
xs: 4,
|
|
314
|
-
children: /* @__PURE__ */ e("img", { src:
|
|
329
|
+
children: /* @__PURE__ */ e("img", { src: Ze, alt: "arrow" })
|
|
315
330
|
}
|
|
316
331
|
)
|
|
317
332
|
] }),
|
|
318
333
|
/* @__PURE__ */ a(n, { mt: 0.5, container: !0, children: [
|
|
319
334
|
/* @__PURE__ */ e(n, { item: !0, xs: 6, children: /* @__PURE__ */ a(
|
|
320
|
-
|
|
335
|
+
_,
|
|
321
336
|
{
|
|
322
|
-
className: `${
|
|
337
|
+
className: `${i.amount} ${i["fiat-field"]}`,
|
|
323
338
|
fullWidth: !0,
|
|
324
339
|
children: [
|
|
325
340
|
/* @__PURE__ */ e(
|
|
326
|
-
|
|
341
|
+
I,
|
|
327
342
|
{
|
|
328
343
|
disableUnderline: !0,
|
|
329
344
|
value: C && parseFloat(C).toFixed(5),
|
|
@@ -332,34 +347,34 @@ const at = ({ partnerKey: I, navigate: q }) => {
|
|
|
332
347
|
fullWidth: !0
|
|
333
348
|
}
|
|
334
349
|
),
|
|
335
|
-
/* @__PURE__ */ e(
|
|
350
|
+
/* @__PURE__ */ e(pe, { className: i["amount-symbol"], children: V > 0 ? "$" + (V * 1).toFixed(2) : /* @__PURE__ */ e(b, { children: " " }) })
|
|
336
351
|
]
|
|
337
352
|
}
|
|
338
353
|
) }),
|
|
339
|
-
/* @__PURE__ */ e(n, { item: !0, xs: 6, className: "content-center", children:
|
|
340
|
-
|
|
354
|
+
/* @__PURE__ */ e(n, { item: !0, xs: 6, className: "content-center", children: S ? /* @__PURE__ */ e(
|
|
355
|
+
h,
|
|
341
356
|
{
|
|
342
357
|
sx: { ml: 1 },
|
|
343
358
|
size: 30
|
|
344
359
|
}
|
|
345
360
|
) : /* @__PURE__ */ a(
|
|
346
|
-
|
|
361
|
+
_,
|
|
347
362
|
{
|
|
348
363
|
variant: "filled",
|
|
349
|
-
className: `text-left ${
|
|
364
|
+
className: `text-left ${i["crypto-picker"]}`,
|
|
350
365
|
fullWidth: !0,
|
|
351
366
|
children: [
|
|
352
367
|
(o == null ? void 0 : o.network) && /* @__PURE__ */ e(
|
|
353
|
-
|
|
368
|
+
q,
|
|
354
369
|
{
|
|
355
|
-
className: `${
|
|
370
|
+
className: `${i["network-label"]} ${i[me(o == null ? void 0 : o.network.name)]}`,
|
|
356
371
|
children: o == null ? void 0 : o.network.name
|
|
357
372
|
}
|
|
358
373
|
),
|
|
359
374
|
/* @__PURE__ */ a(
|
|
360
|
-
|
|
375
|
+
G,
|
|
361
376
|
{
|
|
362
|
-
input: /* @__PURE__ */ e(
|
|
377
|
+
input: /* @__PURE__ */ e(I, { disableUnderline: !0 }),
|
|
363
378
|
sx: {
|
|
364
379
|
borderTopLeftRadius: 0,
|
|
365
380
|
"&::before": {
|
|
@@ -384,21 +399,21 @@ const at = ({ partnerKey: I, navigate: q }) => {
|
|
|
384
399
|
variant: "filled",
|
|
385
400
|
value: o && o.symbol,
|
|
386
401
|
displayEmpty: !0,
|
|
387
|
-
onChange: (t) =>
|
|
402
|
+
onChange: (t) => se(t.target.value),
|
|
388
403
|
onOpen: (t) => {
|
|
389
|
-
|
|
404
|
+
ee(!0), t.preventDefault();
|
|
390
405
|
},
|
|
391
406
|
defaultOpen: !1,
|
|
392
407
|
open: !1,
|
|
393
408
|
children: [
|
|
394
|
-
/* @__PURE__ */ e(
|
|
395
|
-
|
|
396
|
-
/* @__PURE__ */ e(
|
|
409
|
+
/* @__PURE__ */ e(w, { value: "", children: "Please select output" }),
|
|
410
|
+
k && k.map((t) => /* @__PURE__ */ a(w, { value: t.symbol, children: [
|
|
411
|
+
/* @__PURE__ */ e(fe, { className: i["dropdown-list-item"], children: /* @__PURE__ */ e(
|
|
397
412
|
"img",
|
|
398
413
|
{
|
|
399
414
|
src: t.icon_uri,
|
|
400
|
-
onError: ({ currentTarget:
|
|
401
|
-
|
|
415
|
+
onError: ({ currentTarget: s }) => {
|
|
416
|
+
s.onerror = null, s.src = ze;
|
|
402
417
|
},
|
|
403
418
|
alt: "tokenImage",
|
|
404
419
|
width: "40",
|
|
@@ -414,21 +429,21 @@ const at = ({ partnerKey: I, navigate: q }) => {
|
|
|
414
429
|
}
|
|
415
430
|
) })
|
|
416
431
|
] }),
|
|
417
|
-
/* @__PURE__ */ e(
|
|
432
|
+
/* @__PURE__ */ e(N, { mt: 2.5, className: i["fee-area"], children: /* @__PURE__ */ a(n, { container: !0, children: [
|
|
418
433
|
/* @__PURE__ */ e(n, { className: "text-left", item: !0, xs: 12, children: /* @__PURE__ */ a(
|
|
419
|
-
|
|
434
|
+
he,
|
|
420
435
|
{
|
|
421
436
|
sx: { padding: "0" },
|
|
422
|
-
onClick: () =>
|
|
437
|
+
onClick: () => _e((t) => !t),
|
|
423
438
|
disableFocusRipple: !0,
|
|
424
439
|
disableRipple: !0,
|
|
425
440
|
children: [
|
|
426
441
|
/* @__PURE__ */ e(l, { variant: "caption", children: /* @__PURE__ */ e("strong", { children: "Fee Calculation" }) }),
|
|
427
442
|
/* @__PURE__ */ e(
|
|
428
|
-
|
|
443
|
+
Be,
|
|
429
444
|
{
|
|
430
445
|
sx: {
|
|
431
|
-
transform: `rotate(${
|
|
446
|
+
transform: `rotate(${re ? "90" : "0"}deg)`,
|
|
432
447
|
fontSize: "15px"
|
|
433
448
|
}
|
|
434
449
|
}
|
|
@@ -436,116 +451,116 @@ const at = ({ partnerKey: I, navigate: q }) => {
|
|
|
436
451
|
]
|
|
437
452
|
}
|
|
438
453
|
) }),
|
|
439
|
-
|
|
454
|
+
re && /* @__PURE__ */ a(b, { children: [
|
|
440
455
|
/* @__PURE__ */ e(n, { className: "text-left", item: !0, xs: 6, children: /* @__PURE__ */ e(l, { variant: "caption", children: "Everest Fee" }) }),
|
|
441
456
|
/* @__PURE__ */ e(n, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ a(l, { variant: "caption", children: [
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
457
|
+
P,
|
|
458
|
+
F ? /* @__PURE__ */ e(
|
|
459
|
+
h,
|
|
445
460
|
{
|
|
446
461
|
sx: { ml: 1 },
|
|
447
462
|
size: 15
|
|
448
463
|
}
|
|
449
|
-
) :
|
|
464
|
+
) : J.toFixed(2)
|
|
450
465
|
] }) }),
|
|
451
466
|
/* @__PURE__ */ e(n, { className: "text-left", item: !0, xs: 6, children: /* @__PURE__ */ e(l, { variant: "caption", children: "Network Fee" }) }),
|
|
452
467
|
/* @__PURE__ */ e(n, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ a(l, { variant: "caption", children: [
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
468
|
+
P,
|
|
469
|
+
F ? /* @__PURE__ */ e(
|
|
470
|
+
h,
|
|
456
471
|
{
|
|
457
472
|
sx: { ml: 1 },
|
|
458
473
|
size: 15
|
|
459
474
|
}
|
|
460
|
-
) :
|
|
475
|
+
) : Q.toFixed(2)
|
|
461
476
|
] }) })
|
|
462
477
|
] }),
|
|
463
478
|
/* @__PURE__ */ e(n, { className: "text-left", item: !0, xs: 6, children: /* @__PURE__ */ e(l, { variant: "caption", children: "Total Fees" }) }),
|
|
464
479
|
/* @__PURE__ */ e(n, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ a(l, { variant: "caption", children: [
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
480
|
+
P,
|
|
481
|
+
F ? /* @__PURE__ */ e(
|
|
482
|
+
h,
|
|
468
483
|
{
|
|
469
484
|
sx: { ml: 1 },
|
|
470
485
|
size: 15
|
|
471
486
|
}
|
|
472
|
-
) : Number(
|
|
487
|
+
) : Number(we).toFixed(2)
|
|
473
488
|
] }) }),
|
|
474
|
-
o && r && /* @__PURE__ */ a(
|
|
489
|
+
o && r && /* @__PURE__ */ a(b, { children: [
|
|
475
490
|
/* @__PURE__ */ e(n, { className: "text-left", item: !0, xs: 6, children: /* @__PURE__ */ a(l, { variant: "caption", children: [
|
|
476
491
|
"1 ",
|
|
477
492
|
r == null ? void 0 : r.symbol,
|
|
478
493
|
" ",
|
|
479
|
-
/* @__PURE__ */ e(
|
|
494
|
+
/* @__PURE__ */ e(tt, { title: et, placement: "right", children: /* @__PURE__ */ e(he, { className: i["info-fee-icon"], children: /* @__PURE__ */ e(De, { sx: { fontSize: "14px" } }) }) })
|
|
480
495
|
] }) }),
|
|
481
|
-
/* @__PURE__ */ e(n, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ e(l, { variant: "caption", children:
|
|
482
|
-
|
|
496
|
+
/* @__PURE__ */ e(n, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ e(l, { variant: "caption", children: F ? /* @__PURE__ */ e(
|
|
497
|
+
h,
|
|
483
498
|
{
|
|
484
499
|
sx: { ml: 1 },
|
|
485
500
|
size: 15
|
|
486
501
|
}
|
|
487
|
-
) :
|
|
502
|
+
) : X && parseFloat(X).toFixed(6) + " " + (o == null ? void 0 : o.symbol) }) })
|
|
488
503
|
] })
|
|
489
504
|
] }) }),
|
|
490
|
-
/* @__PURE__ */ e(
|
|
491
|
-
|
|
505
|
+
/* @__PURE__ */ e(N, { sx: { alignItems: "left", width: "100%" }, children: ye ? /* @__PURE__ */ e(N, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(h, {}) }) : /* @__PURE__ */ e(b, { children: /* @__PURE__ */ a(
|
|
506
|
+
_,
|
|
492
507
|
{
|
|
493
508
|
variant: "filled",
|
|
494
509
|
fullWidth: !0,
|
|
495
510
|
children: [
|
|
496
|
-
!p && /* @__PURE__ */ e(
|
|
511
|
+
!p && /* @__PURE__ */ e(q, { children: "Select wallet address" }),
|
|
497
512
|
/* @__PURE__ */ a(
|
|
498
|
-
|
|
513
|
+
G,
|
|
499
514
|
{
|
|
500
515
|
value: p,
|
|
501
|
-
onChange: (t) =>
|
|
516
|
+
onChange: (t) => Re(t.target.value),
|
|
502
517
|
children: [
|
|
503
|
-
/* @__PURE__ */ e(
|
|
504
|
-
|
|
518
|
+
/* @__PURE__ */ e(w, { value: "", children: /* @__PURE__ */ e("em", { children: "None" }) }),
|
|
519
|
+
be.map((t, s) => /* @__PURE__ */ e(w, { value: t.address, children: t.name + "(" + t.address + ")" }, s))
|
|
505
520
|
]
|
|
506
521
|
}
|
|
507
522
|
)
|
|
508
523
|
]
|
|
509
524
|
}
|
|
510
525
|
) }) }),
|
|
511
|
-
/* @__PURE__ */ e(
|
|
512
|
-
|
|
526
|
+
/* @__PURE__ */ e(N, { mt: 4, children: /* @__PURE__ */ e(
|
|
527
|
+
st,
|
|
513
528
|
{
|
|
514
529
|
className: "wallet-btn",
|
|
515
530
|
fullWidth: !0,
|
|
516
531
|
variant: "contained",
|
|
517
|
-
onClick:
|
|
518
|
-
disabled:
|
|
519
|
-
children: /* @__PURE__ */ e("strong", { children:
|
|
520
|
-
/* @__PURE__ */ e(
|
|
532
|
+
onClick: Le,
|
|
533
|
+
disabled: L || !C,
|
|
534
|
+
children: /* @__PURE__ */ e("strong", { children: W ? /* @__PURE__ */ a(b, { children: [
|
|
535
|
+
/* @__PURE__ */ e(h, { size: 15, color: "inherit" }),
|
|
521
536
|
" Processing..."
|
|
522
537
|
] }) : "Swap" })
|
|
523
538
|
}
|
|
524
539
|
) })
|
|
525
540
|
] }),
|
|
526
541
|
/* @__PURE__ */ e(
|
|
527
|
-
|
|
542
|
+
de,
|
|
528
543
|
{
|
|
529
|
-
open:
|
|
530
|
-
setModal:
|
|
531
|
-
loader:
|
|
532
|
-
tokenList:
|
|
533
|
-
tokenSelect:
|
|
544
|
+
open: Ne,
|
|
545
|
+
setModal: te,
|
|
546
|
+
loader: S,
|
|
547
|
+
tokenList: O,
|
|
548
|
+
tokenSelect: ie
|
|
534
549
|
}
|
|
535
550
|
),
|
|
536
551
|
/* @__PURE__ */ e(
|
|
537
|
-
|
|
552
|
+
de,
|
|
538
553
|
{
|
|
539
|
-
open:
|
|
540
|
-
setModal:
|
|
541
|
-
loader:
|
|
542
|
-
tokenList:
|
|
543
|
-
tokenSelect:
|
|
554
|
+
open: ke,
|
|
555
|
+
setModal: ee,
|
|
556
|
+
loader: S,
|
|
557
|
+
tokenList: k ?? [],
|
|
558
|
+
tokenSelect: se,
|
|
544
559
|
showBalance: !1
|
|
545
560
|
}
|
|
546
561
|
)
|
|
547
562
|
] });
|
|
548
|
-
},
|
|
563
|
+
}, Zt = rt(it);
|
|
549
564
|
export {
|
|
550
|
-
|
|
565
|
+
Zt as default
|
|
551
566
|
};
|