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