everest-npm-features 0.0.61 → 0.0.63
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/ArrowBack-DEJjwfp0.js +8 -0
- package/dist/{Cancel-4lT7GZUA.js → Cancel-pHQsCjtK.js} +1 -1
- package/dist/{Close-CNwiMz_O.js → Close-DSxLLo08.js} +1 -1
- package/dist/{ContentCopy-coPwrEuz.js → ContentCopy-D0C0zbQj.js} +1 -1
- package/dist/{Delete-jpMstGIF.js → Delete-Bj8zmXnh.js} +1 -1
- package/dist/{ErrorOutline-CPQcnl2b.js → ErrorOutline-Bt7P4ChN.js} +1 -1
- package/dist/{FileDownload-Bt3R_NBr.js → FileDownload-DqREXR3D.js} +1 -1
- package/dist/{Info-BVeUSPyk.js → Info-DOoRR7sR.js} +1 -1
- package/dist/PlayArrow-71FP5PzJ.js +13 -0
- package/dist/Portal-BeS9yJCZ.js +968 -0
- package/dist/assets/styles.css +1 -1
- package/dist/{auth-Cwq6nfwY.js → auth-BBeOw4mt.js} +11 -11
- package/dist/{bank-C4pmTe--.js → bank-HVb0GFsa.js} +1 -1
- package/dist/components/RocketRamp/MinimalKyc/form.js +46 -51
- package/dist/components/RocketRamp/MinimalKyc/index.js +6 -6
- package/dist/components/RocketRamp/Player/Buy/cardPayment.js +6 -8
- package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +5 -8
- package/dist/components/RocketRamp/Player/Buy/form.js +8 -17
- package/dist/components/RocketRamp/Player/Buy/index.js +6 -6
- package/dist/components/RocketRamp/Player/Dashboard/balance.js +20 -26
- package/dist/components/RocketRamp/Player/Dashboard/index.js +4 -4
- package/dist/components/RocketRamp/Player/Dashboard/transaction.js +13 -16
- package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +6 -11
- package/dist/components/RocketRamp/Player/Sell/form.js +8 -17
- package/dist/components/RocketRamp/Player/Sell/index.js +14 -13
- package/dist/components/RocketRamp/Player/SignIn/index.js +23 -25
- package/dist/components/RocketRamp/Player/SignIn/loginForm.js +33 -35
- package/dist/components/RocketRamp/Player/SignIn/otpForm.js +31 -33
- package/dist/components/RocketRamp/Player/SignUp/email.js +21 -23
- package/dist/components/RocketRamp/Player/SignUp/index.js +49 -52
- package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +68 -74
- package/dist/components/RocketRamp/Player/SignUp/summary.js +23 -25
- package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +23 -25
- package/dist/components/RocketRamp/ResetPassword/index.js +23 -25
- package/dist/components/RocketRamp/Shared/Button/index.js +16 -17
- package/dist/components/RocketRamp/Shared/Input/index.js +27 -30
- package/dist/components/RocketRamp/Shared/backBtn.js +10 -11
- package/dist/components/RocketRamp/Shared/transactionItem.js +40 -45
- package/dist/components/RocketRamp/Store/Dashboard/balance.js +12 -17
- package/dist/components/RocketRamp/Store/Dashboard/index.js +11 -12
- package/dist/components/RocketRamp/Store/Dashboard/stats.js +12 -17
- package/dist/components/RocketRamp/Store/Dashboard/transaction.js +13 -16
- package/dist/components/RocketRamp/Store/SignUp/index.js +53 -56
- package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +48 -54
- package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +33 -37
- package/dist/components/RocketRamp/Store/SignUp/summary.js +21 -23
- package/dist/components/RocketRamp/Store/SignUp/validateEmail.js +23 -25
- package/dist/components/RocketRamp/Transactions/index.js +23 -24
- package/dist/components/Shared/FullKyc/countryList.js +15 -17
- package/dist/components/Shared/FullKyc/edd.js +51 -53
- package/dist/components/Shared/FullKyc/index.js +13 -11
- package/dist/components/Shared/FullKyc/pep.js +35 -43
- package/dist/components/Shared/FullKyc/personalDetails.js +6 -6
- package/dist/components/Shared/FullKyc/userInfo.js +8 -13
- package/dist/components/Shared/HistoryItem/index.js +43 -48
- package/dist/components/Shared/Incode/index.js +31 -35
- package/dist/components/Shared/MinimalKyc/index.js +60 -65
- package/dist/components/Shared/Sumsub/index.js +75 -62
- package/dist/components/Shared/loader.js +4 -5
- package/dist/components/Shared/tooltip.js +2 -2
- package/dist/components/Shared/transition.js +4 -4
- package/dist/components/Wallet/Account/createIban.d.ts +1 -2
- package/dist/components/Wallet/Account/createIban.js +324 -102
- package/dist/components/Wallet/Account/eWallet.js +37 -43
- package/dist/components/Wallet/Account/iban.d.ts +1 -0
- package/dist/components/Wallet/Account/iban.js +41 -45
- package/dist/components/Wallet/Account/ibanItem.js +70 -75
- package/dist/components/Wallet/Account/index.d.ts +1 -0
- package/dist/components/Wallet/Account/index.js +113 -118
- package/dist/components/Wallet/Account/sendIban.js +79 -88
- package/dist/components/Wallet/Buy/confirmTransaction.js +9 -11
- package/dist/components/Wallet/Buy/form.js +8 -18
- package/dist/components/Wallet/Buy/index.js +6 -6
- package/dist/components/Wallet/Deposit/index.js +16 -18
- package/dist/components/Wallet/EnterpriseKyc/edd.js +32 -33
- package/dist/components/Wallet/EnterpriseKyc/index.js +73 -77
- package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +23 -26
- package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +5 -7
- package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/kycType.js +23 -26
- package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +33 -34
- package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +3591 -1482
- package/dist/components/Wallet/EnterpriseKyc/success.js +3 -4
- package/dist/components/Wallet/EnterpriseKyc/verify.js +22 -22
- package/dist/components/Wallet/History/index.js +23 -797
- package/dist/components/Wallet/Home/index.js +13 -14
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +122 -126
- package/dist/components/Wallet/Portfolio/dropdown.js +25 -30
- package/dist/components/Wallet/Portfolio/index.js +48 -51
- package/dist/components/Wallet/Portfolio/tokenRow.js +3 -4
- package/dist/components/Wallet/Profile/documents.js +164 -176
- package/dist/components/Wallet/Profile/index.js +39 -44
- package/dist/components/Wallet/Profile/storage.js +39 -47
- package/dist/components/Wallet/Receive/index.js +32 -37
- package/dist/components/Wallet/Sell/confirmTransaction.js +8 -10
- package/dist/components/Wallet/Sell/form.js +8 -18
- package/dist/components/Wallet/Sell/index.js +6 -6
- package/dist/components/Wallet/Send/index.js +98 -107
- package/dist/components/Wallet/Shared/Auth/emailForm.js +13 -15
- package/dist/components/Wallet/Shared/Auth/otpForm.js +9 -356
- package/dist/components/Wallet/Shared/BankSelect/index.js +45 -49
- package/dist/components/Wallet/Shared/CardCorp/index.js +18 -19
- package/dist/components/Wallet/Shared/CardPayment/index.js +14 -16
- package/dist/components/Wallet/Shared/ConnectWallet/index.js +22 -28
- package/dist/components/Wallet/Shared/Container/index.d.ts +2 -1
- package/dist/components/Wallet/Shared/Container/index.js +11 -11
- package/dist/components/Wallet/Shared/Input/index.js +3 -3
- package/dist/components/Wallet/Shared/Keyboard/keyboard.js +29 -30
- package/dist/components/Wallet/Shared/Order/paymentButton.js +13 -14
- package/dist/components/Wallet/Shared/TokenModal/index.js +55 -63
- package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +11 -13
- package/dist/components/Wallet/Shared/addBank.js +41 -45
- package/dist/components/Wallet/Shared/appButton.js +11 -15
- package/dist/components/Wallet/Shared/backBtn.js +8 -9
- package/dist/components/Wallet/Shared/button.js +7 -7
- package/dist/components/Wallet/Shared/connectPlaidBank.js +16 -17
- package/dist/components/Wallet/Shared/inputField.js +5 -5
- package/dist/components/Wallet/Shared/manualSend.js +9 -13
- package/dist/components/Wallet/Shared/noData.js +4 -5
- package/dist/components/Wallet/Shared/pin.js +25 -27
- package/dist/components/Wallet/Shared/radioButton.js +39 -5
- package/dist/components/Wallet/Shared/step.js +12 -13
- package/dist/components/Wallet/Shared/timer.js +1 -1
- package/dist/components/Wallet/SignIn/index.js +17 -17
- package/dist/components/Wallet/SignUp/index.js +63 -153
- package/dist/components/Wallet/SignUp/terms.js +1 -1
- package/dist/components/Wallet/Stake/gems/index.js +71 -69
- package/dist/components/Wallet/Stake/id/index.js +77 -84
- package/dist/components/Wallet/Stake/index.js +65 -68
- package/dist/components/Wallet/Swap/form.js +11 -20
- package/dist/components/Wallet/Swap/index.js +5 -5
- package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -5
- package/dist/components/Wallet/Withdraw/bankSelect.js +41 -45
- package/dist/components/Wallet/Withdraw/confirmTransaction.js +5 -8
- package/dist/components/Wallet/Withdraw/form.js +6 -17
- package/dist/components/Wallet/Withdraw/index.js +5 -5
- package/dist/{constants-DrmtdI1J.js → constants-DX0YBtP2.js} +19 -19
- package/dist/{createSvgIcon-Cuzqm90l.js → createSvgIcon-B28GrUxG.js} +41 -45
- package/dist/{cryptoAssets-DyGDknvq.js → cryptoAssets-B8rAI7pp.js} +1 -1
- package/dist/hoc/withThemeProvider.js +5 -732
- package/dist/hooks/useDialog/index.js +22 -23
- package/dist/hooks/useRrDialog/index.js +43 -46
- package/dist/hooks/useSnackBar.js +24 -696
- package/dist/icons/buyIcon.js +1 -1
- package/dist/icons/canceledBuyIcon.js +1 -1
- package/dist/icons/canceledRedeemIcon.js +1 -1
- package/dist/icons/failedBuyIcon.js +2 -2
- package/dist/icons/failedRedeemIcon.js +2 -2
- package/dist/icons/pendingBuyIcon.js +1 -1
- package/dist/icons/pendingRedeemIcon.js +1 -1
- package/dist/icons/redeemIcon.js +1 -1
- package/dist/{index-BbVpeed7.js → index-B4XvACQN.js} +89 -98
- package/dist/{index-BHG1bT4t.js → index-CTPMPwYK.js} +173 -182
- package/dist/{index-Dh_ahu-u.js → index-DkiQ8pRO.js} +95 -106
- package/dist/{index-C7Td5yoW.js → index-DuWW5roi.js} +175 -184
- package/dist/{index-eEBuSKOo.js → index-JY6-UKlX.js} +127 -137
- package/dist/{index-D2JWUPz8.js → index-_fiTunwZ.js} +154 -163
- package/dist/{index-B9oucF3r.js → index-bK14vCZw.js} +189 -198
- package/dist/{kyc-ksV3vBP_.js → kyc-BNMPoeHt.js} +1 -1
- package/dist/main.js +7 -7
- package/dist/memoTheme-DnE8lj0t.js +3481 -0
- package/dist/{order-DEp_Lmar.js → order-BXeCIvqC.js} +1 -1
- package/dist/otpForm-DeeegaX2.js +7378 -0
- package/dist/{stake-Ct7-_aWW.js → stake-BO2TYVJ7.js} +1 -1
- package/dist/styles.module-DFoezEqS.js +28 -0
- package/dist/{tokenRow-C-iMHhPj.js → tokenRow-BiNtHOKV.js} +20 -21
- package/dist/tooltip-BW0UyWw7.js +2129 -0
- package/dist/util/constants.d.ts +1 -0
- package/dist/util/constants.js +72 -71
- package/dist/{wallet-CauUBXou.js → wallet-BPXOp8UG.js} +1 -1
- package/package.json +6 -6
- package/dist/Alert-DzsbFW3-.js +0 -369
- package/dist/Autocomplete-CE-OI2t8.js +0 -2429
- package/dist/Avatar-1XklXr4O.js +0 -281
- package/dist/Backdrop-CioURPVG.js +0 -359
- package/dist/Box-B0YSYLco.js +0 -59
- package/dist/Button-Df4vgU24.js +0 -663
- package/dist/ButtonBase-DLF5c6wi.js +0 -870
- package/dist/CardContent-D9wTdpu-.js +0 -141
- package/dist/CircularProgress-xZA3lvba.js +0 -252
- package/dist/Close-CxzDL3J-.js +0 -9
- package/dist/Container-urNKV7hm.js +0 -181
- package/dist/DefaultPropsProvider-CeF7UYM9.js +0 -92
- package/dist/DefaultPropsProvider-oAu9El-f.js +0 -226
- package/dist/DialogContent-BMwlOnbW.js +0 -567
- package/dist/DialogTitle-CfS0bb2K.js +0 -70
- package/dist/Divider-BShhMFf4.js +0 -297
- package/dist/FilledInput-DuNqnPjc.js +0 -1292
- package/dist/FormControl-RtZDQMdA.js +0 -258
- package/dist/FormControlLabel-BliKW48y.js +0 -519
- package/dist/GlobalStyles-ChMhDfTS.js +0 -59
- package/dist/Grid-CFe3amXO.js +0 -410
- package/dist/Grow-CnGtel3u.js +0 -196
- package/dist/HTMLElementType-BrQSV2FE.js +0 -13
- package/dist/IconButton-DHm-hucF.js +0 -297
- package/dist/InputAdornment-DMiED3JH.js +0 -173
- package/dist/Link-DBA9Yifs.js +0 -266
- package/dist/ListItemIcon-CUcyTEEm.js +0 -84
- package/dist/Menu-DLYFFrEk.js +0 -1239
- package/dist/MenuItem-DUdYOJr4.js +0 -271
- package/dist/Modal-CFIQ_s3T.js +0 -743
- package/dist/Paper-Bgt2WXI6.js +0 -186
- package/dist/PlayArrow-Bjz9LxhD.js +0 -13
- package/dist/Popper-BBAoiZKn.js +0 -1409
- package/dist/Portal-BMAxiQwe.js +0 -69
- package/dist/RadioGroup-nvoSN0JN.js +0 -189
- package/dist/Select-CB5yWmyn.js +0 -1886
- package/dist/Slide-B9Nw0LZ4.js +0 -235
- package/dist/Stack-k55YTxET.js +0 -172
- package/dist/SwitchBase-C8zFyg_x.js +0 -318
- package/dist/TextField-DPpRUQe3.js +0 -978
- package/dist/TransitionGroupContext-CYRQkQ6k.js +0 -49
- package/dist/Typography-pAaje37G.js +0 -260
- package/dist/chainPropTypes-D9lkm76m.js +0 -8
- package/dist/clsx-BTaloaeC.js +0 -264
- package/dist/createChainedFunction-C0nujS3O.js +0 -9
- package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +0 -17
- package/dist/createTheme-CD19zQB7.js +0 -3825
- package/dist/debounce-46wSf_lW.js +0 -15
- package/dist/defaultTheme-C35y5cLB.js +0 -5
- package/dist/dividerClasses-BDxa2gAa.js +0 -10
- package/dist/elementAcceptingRef-CqLvP78G.js +0 -391
- package/dist/elementTypeAcceptingRef-BdsMpCbS.js +0 -23
- package/dist/emotion-react.browser.esm-BIrDfk-B.js +0 -246
- package/dist/exactProp-C1Lmtwf_.js +0 -13
- package/dist/extendSxProp-B8UjbJ56.js +0 -37
- package/dist/generateUtilityClasses-BRiE4Guh.js +0 -10
- package/dist/index-B0Z-Gjno.js +0 -22
- package/dist/index-DUcLo3x5.js +0 -43
- package/dist/isFocusVisible-CPZqtjv2.js +0 -12
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/isMuiElement-DnSE4qG4.js +0 -13
- package/dist/memoTheme-yHaPezod.js +0 -15
- package/dist/ownerWindow-CRgpWY6I.js +0 -7
- package/dist/radioButton-CzlYB0Lh.js +0 -402
- package/dist/refType-BsTH3qnM.js +0 -56
- package/dist/styles.module-CHPRGltL.js +0 -28
- package/dist/tooltip-3UvETWtS.js +0 -740
- package/dist/useControlled-nm4pBabJ.js +0 -31
- package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
- package/dist/useFormControl-CatNKXAi.js +0 -10
- package/dist/useId-CK6Kn3Tn.js +0 -21
- package/dist/useSlot-CW7SOYlh.js +0 -125
- package/dist/useSlotProps-BfEOwJvJ.js +0 -25
- package/dist/useTheme-BQJ5lp0i.js +0 -11
- package/dist/useTheme-S5_DHFsQ.js +0 -17
- package/dist/useThemeProps-DN9MjdTl.js +0 -29
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useMemo as et, useState as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { jsxs as r, Fragment as E, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as et, useState as p, useEffect as x, useRef as tt } from "react";
|
|
3
|
+
import nt from "./hoc/withThemeProvider.js";
|
|
4
|
+
import { Grid as n, Typography as i, FormControl as V, FilledInput as te, FormHelperText as Ee, CircularProgress as I, InputLabel as Te, Select as le, MenuItem as ne, ListItemIcon as Ae, Box as T, IconButton as me, Divider as ce } from "@mui/material";
|
|
5
|
+
import { P as rt, f as ot } from "./PlayArrow-71FP5PzJ.js";
|
|
6
|
+
import { I as it } from "./Info-DOoRR7sR.js";
|
|
7
|
+
import { G as de } from "./generic-token-B_ptO5yb.js";
|
|
8
|
+
import { TOKEN_TO_FIAT as ue, ESTIMATE_TOOLTIP_TEXT as st, SELL_WITHDRAW_ICON as at, DIALOG_SUCCESS_ICON as Re, DIALOG_ERROR_ICON as lt } from "./util/constants.js";
|
|
9
|
+
import { aK as R, af as ct } from "./constants-DX0YBtP2.js";
|
|
9
10
|
import { c as ze, d as mt } from "./index-BQNs1mvn.js";
|
|
10
|
-
import { d as dt, e as We, b as X, c as
|
|
11
|
-
import { M as ft } from "./tooltip-
|
|
11
|
+
import { d as dt, e as We, b as X, c as Fe, f as ut, i as ht, g as pt } from "./order-BXeCIvqC.js";
|
|
12
|
+
import { M as ft } from "./tooltip-BW0UyWw7.js";
|
|
12
13
|
import { getCurrencySymbol as Me, getNetworkBackGround as xt, displayWalletAddress as yt } from "./util/functions.js";
|
|
13
14
|
import gt from "./components/Wallet/Shared/backBtn.js";
|
|
14
15
|
import { s as l } from "./styles.module-DMd29SPQ.js";
|
|
15
16
|
import J from "./components/Wallet/Shared/appButton.js";
|
|
16
17
|
import { u as L } from "./react-redux-C7I9-1M6.js";
|
|
17
18
|
import "./index-DlQqWbXG.js";
|
|
18
|
-
import "./
|
|
19
|
-
import { useSnackBarContext as
|
|
19
|
+
import "./otpForm-DeeegaX2.js";
|
|
20
|
+
import { useSnackBarContext as he } from "./context/snackBarContext.js";
|
|
20
21
|
import { formatNumberWithoutRounding as bt } from "./util/conversions.js";
|
|
21
22
|
import { Q as _t } from "./index-CAoLi5Qq.js";
|
|
22
23
|
import "./react-webcam-B3cXh1XT.js";
|
|
@@ -27,29 +28,18 @@ import "./web3-u4qDZYpo.js";
|
|
|
27
28
|
import "./index-ceeCtFuh.js";
|
|
28
29
|
import "./index.esm-I_Bp2YLf.js";
|
|
29
30
|
import { useDialogContext as Le } from "./context/dialogContext.js";
|
|
30
|
-
import
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import { C as I } from "./CircularProgress-xZA3lvba.js";
|
|
34
|
-
import { f as Ct } from "./cryptoAssets-DyGDknvq.js";
|
|
35
|
-
import { u as Nt, a as vt } from "./wallet-CauUBXou.js";
|
|
31
|
+
import "@mui/icons-material";
|
|
32
|
+
import { f as Ct } from "./cryptoAssets-B8rAI7pp.js";
|
|
33
|
+
import { u as Nt, a as vt } from "./wallet-BPXOp8UG.js";
|
|
36
34
|
import { AuthContainer as kt } from "./components/Wallet/Shared/Container/index.js";
|
|
37
35
|
import St from "./components/Shared/MinimalKyc/index.js";
|
|
38
36
|
import Oe from "./components/Wallet/Shared/Input/index.js";
|
|
39
|
-
import { C as wt } from "./ContentCopy-
|
|
37
|
+
import { C as wt } from "./ContentCopy-D0C0zbQj.js";
|
|
40
38
|
import Et from "./components/Wallet/Shared/timer.js";
|
|
41
39
|
import Be from "./hooks/useEverestDispatch.js";
|
|
42
|
-
import { D as le } from "./Divider-BShhMFf4.js";
|
|
43
|
-
import { I as ue } from "./IconButton-DHm-hucF.js";
|
|
44
40
|
import Tt from "./components/Wallet/Shared/TokenModal/index.js";
|
|
45
41
|
import { useDialog as At } from "./hooks/useDialog/index.js";
|
|
46
|
-
import
|
|
47
|
-
import { F as V } from "./FormControl-RtZDQMdA.js";
|
|
48
|
-
import { F as te } from "./FilledInput-DuNqnPjc.js";
|
|
49
|
-
import { F as Ae, I as Fe } from "./TextField-DPpRUQe3.js";
|
|
50
|
-
import { S as ce } from "./Select-CB5yWmyn.js";
|
|
51
|
-
import { M as re } from "./MenuItem-DUdYOJr4.js";
|
|
52
|
-
import { L as Ie } from "./ListItemIcon-CUcyTEEm.js";
|
|
42
|
+
import Ie from "./components/Wallet/Shared/Order/selectCustomIcon.js";
|
|
53
43
|
const Ft = ({
|
|
54
44
|
setScreen: k,
|
|
55
45
|
orderData: d,
|
|
@@ -59,7 +49,7 @@ const Ft = ({
|
|
|
59
49
|
getCryptoAssets: S,
|
|
60
50
|
showAlertMessage: y,
|
|
61
51
|
partnerKey: z,
|
|
62
|
-
walletAddress:
|
|
52
|
+
walletAddress: h,
|
|
63
53
|
setWalletAddress: o,
|
|
64
54
|
navigate: g
|
|
65
55
|
}) => {
|
|
@@ -71,16 +61,16 @@ const Ft = ({
|
|
|
71
61
|
(s) => s.address.toLowerCase() === t.address.toLowerCase()
|
|
72
62
|
)
|
|
73
63
|
)
|
|
74
|
-
], [F, w]), $ = u.fiats,
|
|
64
|
+
], [F, w]), $ = u.fiats, pe = u.loader, B = f.featureTokens.sell.list, _ = f.featureTokens.sell.default, fe = f.loader, Z = d.loader, C = d.estimate[R], W = C.fiat_out_amount, $e = C.conversion_price, Ue = C.total_fee;
|
|
75
65
|
let xe = 0, ye = 0;
|
|
76
66
|
const ge = C.fee_breakdown;
|
|
77
67
|
for (let t = 0; t < ge.length; t++) {
|
|
78
68
|
const s = ge[t];
|
|
79
69
|
s.name === "ev_fee" ? xe = Number(s.value) : s.name === "network_fee" && (ye = Number(s.value));
|
|
80
70
|
}
|
|
81
|
-
const [a, be] =
|
|
71
|
+
const [a, be] = p({
|
|
82
72
|
symbol: ""
|
|
83
|
-
}), [
|
|
73
|
+
}), [re, oe] = p(!1), [P, qe] = p(2), [Ye, De] = p([]), [_e, Ge] = p(!1), [j, Ke] = p(50), [ie, He] = p(3e3), [Ce, se] = p(""), [U, ae] = p(C.crypto_amount || "0.05"), [je, Ne] = p(!1), ee = Number((ke = C == null ? void 0 : C.input_token) == null ? void 0 : ke.fiat_amount), q = $.find((t) => t.id === P), M = Me(q == null ? void 0 : q.symbol);
|
|
84
74
|
x(() => {
|
|
85
75
|
const t = [];
|
|
86
76
|
for (let s = 0; s < $.length; s++) {
|
|
@@ -98,7 +88,7 @@ const Ft = ({
|
|
|
98
88
|
), oe(!0)));
|
|
99
89
|
}, [W]), x(() => {
|
|
100
90
|
P && S && S(P);
|
|
101
|
-
}, [P,
|
|
91
|
+
}, [P, h]), x(() => {
|
|
102
92
|
if (a && a.id && U && P) {
|
|
103
93
|
c(dt(R)), oe(!1), se("");
|
|
104
94
|
const t = setTimeout(() => {
|
|
@@ -113,7 +103,7 @@ const Ft = ({
|
|
|
113
103
|
We(
|
|
114
104
|
{
|
|
115
105
|
apiKey: z,
|
|
116
|
-
transaction_type:
|
|
106
|
+
transaction_type: ue,
|
|
117
107
|
coin_amount: U,
|
|
118
108
|
exchange: a.exchange,
|
|
119
109
|
fiat_ccy: q == null ? void 0 : q.symbol,
|
|
@@ -129,7 +119,7 @@ const Ft = ({
|
|
|
129
119
|
if (t > 0)
|
|
130
120
|
for (let s = 0; s < t; s++) {
|
|
131
121
|
const N = d.types[s];
|
|
132
|
-
if (N.type ===
|
|
122
|
+
if (N.type === ue) {
|
|
133
123
|
Ke(parseFloat(N.min_deposit_amount)), He(parseFloat(N.max_deposit_amount));
|
|
134
124
|
break;
|
|
135
125
|
}
|
|
@@ -181,11 +171,11 @@ const Ft = ({
|
|
|
181
171
|
}, Ze = () => {
|
|
182
172
|
a && ae(bt(a.fmt_balance + "", 8));
|
|
183
173
|
};
|
|
184
|
-
return /* @__PURE__ */
|
|
174
|
+
return /* @__PURE__ */ r(E, { children: [
|
|
185
175
|
/* @__PURE__ */ e(A, {}),
|
|
186
|
-
/* @__PURE__ */ n
|
|
187
|
-
/* @__PURE__ */ e(
|
|
188
|
-
/* @__PURE__ */ e(
|
|
176
|
+
/* @__PURE__ */ r(n, { container: !0, children: [
|
|
177
|
+
/* @__PURE__ */ e(n, { size: { xs: 2.5 }, children: /* @__PURE__ */ e(i, { className: l.label, variant: "caption", component: "p", children: "You Sell" }) }),
|
|
178
|
+
/* @__PURE__ */ e(n, { size: { xs: 9.5 }, children: h && a && /* @__PURE__ */ r(
|
|
189
179
|
i,
|
|
190
180
|
{
|
|
191
181
|
className: l["balance-label"],
|
|
@@ -202,8 +192,8 @@ const Ft = ({
|
|
|
202
192
|
}
|
|
203
193
|
) })
|
|
204
194
|
] }),
|
|
205
|
-
/* @__PURE__ */ n
|
|
206
|
-
/* @__PURE__ */ e(
|
|
195
|
+
/* @__PURE__ */ r(n, { mt: 0.5, spacing: 0, container: !0, className: l["field-set"], children: [
|
|
196
|
+
/* @__PURE__ */ e(n, { size: { xs: 7 }, children: /* @__PURE__ */ r(
|
|
207
197
|
V,
|
|
208
198
|
{
|
|
209
199
|
variant: "filled",
|
|
@@ -217,17 +207,17 @@ const Ft = ({
|
|
|
217
207
|
onChange: Ve,
|
|
218
208
|
type: "text",
|
|
219
209
|
placeholder: `${j > 0 ? M + j + " minimum value" : ""}`,
|
|
220
|
-
error:
|
|
210
|
+
error: re,
|
|
221
211
|
disableUnderline: !0,
|
|
222
212
|
required: !0,
|
|
223
213
|
fullWidth: !0
|
|
224
214
|
}
|
|
225
215
|
),
|
|
226
|
-
/* @__PURE__ */ e(
|
|
216
|
+
/* @__PURE__ */ e(Ee, { className: l["crypto-helper-text"], children: ee > 0 ? "$" + (ee * 1).toFixed(2) : /* @__PURE__ */ e(E, { children: " " }) })
|
|
227
217
|
]
|
|
228
218
|
}
|
|
229
219
|
) }),
|
|
230
|
-
/* @__PURE__ */ e(
|
|
220
|
+
/* @__PURE__ */ e(n, { size: { xs: 5 }, className: "content-center", children: fe ? /* @__PURE__ */ e(I, { sx: { ml: 1 }, size: 30 }) : /* @__PURE__ */ r(
|
|
231
221
|
V,
|
|
232
222
|
{
|
|
233
223
|
variant: "filled",
|
|
@@ -235,16 +225,16 @@ const Ft = ({
|
|
|
235
225
|
fullWidth: !0,
|
|
236
226
|
children: [
|
|
237
227
|
(a == null ? void 0 : a.network) && /* @__PURE__ */ e(
|
|
238
|
-
|
|
228
|
+
Te,
|
|
239
229
|
{
|
|
240
230
|
className: `${l["network-label"]} ${l[xt(a == null ? void 0 : a.network.name)]}`,
|
|
241
231
|
children: a == null ? void 0 : a.network.name
|
|
242
232
|
}
|
|
243
233
|
),
|
|
244
|
-
/* @__PURE__ */
|
|
245
|
-
|
|
234
|
+
/* @__PURE__ */ r(
|
|
235
|
+
le,
|
|
246
236
|
{
|
|
247
|
-
IconComponent:
|
|
237
|
+
IconComponent: Ie,
|
|
248
238
|
input: /* @__PURE__ */ e(te, { disableUnderline: !0 }),
|
|
249
239
|
sx: {
|
|
250
240
|
borderTopLeftRadius: 0,
|
|
@@ -276,14 +266,14 @@ const Ft = ({
|
|
|
276
266
|
defaultOpen: !1,
|
|
277
267
|
open: !1,
|
|
278
268
|
children: [
|
|
279
|
-
/* @__PURE__ */ e(
|
|
280
|
-
B.map((t) => /* @__PURE__ */
|
|
281
|
-
/* @__PURE__ */ e(
|
|
269
|
+
/* @__PURE__ */ e(ne, { value: "", children: "Please select" }),
|
|
270
|
+
B.map((t) => /* @__PURE__ */ r(ne, { value: t.symbol, children: [
|
|
271
|
+
/* @__PURE__ */ e(Ae, { className: l["dropdown-list-item"], children: /* @__PURE__ */ e(
|
|
282
272
|
"img",
|
|
283
273
|
{
|
|
284
274
|
src: t.icon_uri,
|
|
285
275
|
onError: ({ currentTarget: s }) => {
|
|
286
|
-
s.onerror = null, s.src =
|
|
276
|
+
s.onerror = null, s.src = de;
|
|
287
277
|
},
|
|
288
278
|
alt: "tokenImg",
|
|
289
279
|
width: "40",
|
|
@@ -300,9 +290,9 @@ const Ft = ({
|
|
|
300
290
|
) }),
|
|
301
291
|
Ce && /* @__PURE__ */ e(i, { variant: "caption", sx: { color: "red" }, children: /* @__PURE__ */ e("strong", { children: Ce }) })
|
|
302
292
|
] }),
|
|
303
|
-
/* @__PURE__ */ e(
|
|
304
|
-
/* @__PURE__ */ n
|
|
305
|
-
/* @__PURE__ */ e(
|
|
293
|
+
/* @__PURE__ */ e(n, { mt: 4, container: !0, children: /* @__PURE__ */ e(n, { size: { xs: 4 }, children: /* @__PURE__ */ e(i, { className: l.label, variant: "caption", component: "p", children: "You Receive" }) }) }),
|
|
294
|
+
/* @__PURE__ */ r(n, { mt: 0.5, container: !0, className: l["field-set"], children: [
|
|
295
|
+
/* @__PURE__ */ e(n, { size: { xs: 7 }, children: /* @__PURE__ */ r(
|
|
306
296
|
V,
|
|
307
297
|
{
|
|
308
298
|
className: `${l.amount} ${l["fiat-field"]}`,
|
|
@@ -318,11 +308,11 @@ const Ft = ({
|
|
|
318
308
|
fullWidth: !0
|
|
319
309
|
}
|
|
320
310
|
),
|
|
321
|
-
/* @__PURE__ */ e(
|
|
311
|
+
/* @__PURE__ */ e(Ee, { className: l["amount-symbol"], children: +((Se = C == null ? void 0 : C.output_token) == null ? void 0 : Se.fiat_amount) * 1 > 0 ? M + (+((we = C == null ? void 0 : C.output_token) == null ? void 0 : we.fiat_amount) * 1).toFixed(2) : /* @__PURE__ */ e(E, { children: " " }) })
|
|
322
312
|
]
|
|
323
313
|
}
|
|
324
314
|
) }),
|
|
325
|
-
/* @__PURE__ */ e(
|
|
315
|
+
/* @__PURE__ */ e(n, { size: { xs: 5 }, className: "content-center", children: pe ? /* @__PURE__ */ e(
|
|
326
316
|
I,
|
|
327
317
|
{
|
|
328
318
|
sx: { ml: 1 },
|
|
@@ -335,9 +325,9 @@ const Ft = ({
|
|
|
335
325
|
className: `text-left ${l["fiat-picker"]}`,
|
|
336
326
|
fullWidth: !0,
|
|
337
327
|
children: /* @__PURE__ */ e(
|
|
338
|
-
|
|
328
|
+
le,
|
|
339
329
|
{
|
|
340
|
-
IconComponent:
|
|
330
|
+
IconComponent: Ie,
|
|
341
331
|
input: /* @__PURE__ */ e(te, { disableUnderline: !0 }),
|
|
342
332
|
sx: {
|
|
343
333
|
borderTopLeftRadius: 0,
|
|
@@ -362,14 +352,14 @@ const Ft = ({
|
|
|
362
352
|
variant: "filled",
|
|
363
353
|
displayEmpty: !0,
|
|
364
354
|
onChange: (t) => qe(t.target.value),
|
|
365
|
-
error:
|
|
366
|
-
children: Ye.map((t) => /* @__PURE__ */
|
|
367
|
-
/* @__PURE__ */ e(
|
|
355
|
+
error: re,
|
|
356
|
+
children: Ye.map((t) => /* @__PURE__ */ r(ne, { value: t.id, children: [
|
|
357
|
+
/* @__PURE__ */ e(Ae, { className: l["dropdown-list-item"], children: /* @__PURE__ */ e(
|
|
368
358
|
"img",
|
|
369
359
|
{
|
|
370
360
|
src: t.icon_uri,
|
|
371
361
|
onError: ({ currentTarget: s }) => {
|
|
372
|
-
s.onerror = null, s.src =
|
|
362
|
+
s.onerror = null, s.src = de;
|
|
373
363
|
},
|
|
374
364
|
alt: "tokenImg",
|
|
375
365
|
width: "40",
|
|
@@ -383,9 +373,9 @@ const Ft = ({
|
|
|
383
373
|
}
|
|
384
374
|
) })
|
|
385
375
|
] }),
|
|
386
|
-
/* @__PURE__ */ e(T, { mt: 3, sx: { color: "#1A202C" }, children: /* @__PURE__ */ n
|
|
387
|
-
/* @__PURE__ */ e(
|
|
388
|
-
|
|
376
|
+
/* @__PURE__ */ e(T, { mt: 3, sx: { color: "#1A202C" }, children: /* @__PURE__ */ r(n, { container: !0, children: [
|
|
377
|
+
/* @__PURE__ */ e(n, { className: "text-left", size: { xs: 12 }, children: /* @__PURE__ */ r(
|
|
378
|
+
me,
|
|
389
379
|
{
|
|
390
380
|
sx: { padding: "0" },
|
|
391
381
|
onClick: () => Ge((t) => !t),
|
|
@@ -394,7 +384,7 @@ const Ft = ({
|
|
|
394
384
|
children: [
|
|
395
385
|
/* @__PURE__ */ e(i, { variant: "caption", fontWeight: 700, children: "Fee Calculation" }),
|
|
396
386
|
/* @__PURE__ */ e(
|
|
397
|
-
|
|
387
|
+
rt,
|
|
398
388
|
{
|
|
399
389
|
sx: {
|
|
400
390
|
transform: `rotate(${_e ? "90" : "0"}deg)`,
|
|
@@ -405,9 +395,9 @@ const Ft = ({
|
|
|
405
395
|
]
|
|
406
396
|
}
|
|
407
397
|
) }),
|
|
408
|
-
_e && /* @__PURE__ */
|
|
409
|
-
/* @__PURE__ */ e(
|
|
410
|
-
/* @__PURE__ */ e(
|
|
398
|
+
_e && /* @__PURE__ */ r(E, { children: [
|
|
399
|
+
/* @__PURE__ */ e(n, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(i, { variant: "caption", children: "Everest Fee" }) }),
|
|
400
|
+
/* @__PURE__ */ e(n, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ r(i, { variant: "caption", children: [
|
|
411
401
|
M,
|
|
412
402
|
Z ? /* @__PURE__ */ e(
|
|
413
403
|
I,
|
|
@@ -418,8 +408,8 @@ const Ft = ({
|
|
|
418
408
|
}
|
|
419
409
|
) : xe.toFixed(2)
|
|
420
410
|
] }) }),
|
|
421
|
-
/* @__PURE__ */ e(
|
|
422
|
-
/* @__PURE__ */ e(
|
|
411
|
+
/* @__PURE__ */ e(n, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(i, { variant: "caption", children: "Network Fee" }) }),
|
|
412
|
+
/* @__PURE__ */ e(n, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ r(i, { variant: "caption", children: [
|
|
423
413
|
M,
|
|
424
414
|
Z ? /* @__PURE__ */ e(
|
|
425
415
|
I,
|
|
@@ -431,13 +421,13 @@ const Ft = ({
|
|
|
431
421
|
) : ye.toFixed(2)
|
|
432
422
|
] }) })
|
|
433
423
|
] }),
|
|
434
|
-
/* @__PURE__ */ e(
|
|
435
|
-
/* @__PURE__ */ e(
|
|
424
|
+
/* @__PURE__ */ e(n, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(i, { variant: "caption", children: "Total Fees" }) }),
|
|
425
|
+
/* @__PURE__ */ e(n, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ r(i, { variant: "caption", children: [
|
|
436
426
|
M,
|
|
437
427
|
Z ? /* @__PURE__ */ e(I, { sx: { ml: 1 }, size: 15, color: "primary" }) : Number(Ue).toFixed(2)
|
|
438
428
|
] }) }),
|
|
439
|
-
a && /* @__PURE__ */
|
|
440
|
-
/* @__PURE__ */ e(
|
|
429
|
+
a && /* @__PURE__ */ r(E, { children: [
|
|
430
|
+
/* @__PURE__ */ e(n, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ r(i, { variant: "caption", children: [
|
|
441
431
|
"1 ",
|
|
442
432
|
a.symbol,
|
|
443
433
|
" ",
|
|
@@ -446,7 +436,7 @@ const Ft = ({
|
|
|
446
436
|
{
|
|
447
437
|
title: st,
|
|
448
438
|
placement: "right",
|
|
449
|
-
children: /* @__PURE__ */ e(
|
|
439
|
+
children: /* @__PURE__ */ e(me, { className: "info-fee-icon", children: /* @__PURE__ */ e(
|
|
450
440
|
it,
|
|
451
441
|
{
|
|
452
442
|
sx: {
|
|
@@ -457,7 +447,7 @@ const Ft = ({
|
|
|
457
447
|
}
|
|
458
448
|
)
|
|
459
449
|
] }) }),
|
|
460
|
-
/* @__PURE__ */ e(
|
|
450
|
+
/* @__PURE__ */ e(n, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ r(i, { variant: "caption", children: [
|
|
461
451
|
M,
|
|
462
452
|
Z ? /* @__PURE__ */ e(
|
|
463
453
|
I,
|
|
@@ -470,28 +460,28 @@ const Ft = ({
|
|
|
470
460
|
] }) })
|
|
471
461
|
] })
|
|
472
462
|
] }) }),
|
|
473
|
-
/* @__PURE__ */ e(T, { sx: { alignItems: "left", width: "100%" }, children: K || m ? /* @__PURE__ */ e(T, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(I, {}) }) : /* @__PURE__ */ e(E, { children: /* @__PURE__ */
|
|
474
|
-
!
|
|
463
|
+
/* @__PURE__ */ e(T, { sx: { alignItems: "left", width: "100%" }, children: K || m ? /* @__PURE__ */ e(T, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(I, {}) }) : /* @__PURE__ */ e(E, { children: /* @__PURE__ */ r(V, { variant: "filled", fullWidth: !0, children: [
|
|
464
|
+
!h && /* @__PURE__ */ e(Te, { children: "Select wallet address" }),
|
|
475
465
|
/* @__PURE__ */ e(
|
|
476
|
-
|
|
466
|
+
le,
|
|
477
467
|
{
|
|
478
|
-
value:
|
|
468
|
+
value: h,
|
|
479
469
|
onChange: (t) => o && o(t.target.value),
|
|
480
|
-
children: H.map((t, s) => /* @__PURE__ */ e(
|
|
470
|
+
children: H.map((t, s) => /* @__PURE__ */ e(ne, { value: t.address, children: t.name + "(" + t.address + ")" }, s))
|
|
481
471
|
}
|
|
482
472
|
)
|
|
483
473
|
] }) }) }),
|
|
484
|
-
/* @__PURE__ */
|
|
474
|
+
/* @__PURE__ */ r(T, { mt: 4, children: [
|
|
485
475
|
/* @__PURE__ */ e(
|
|
486
476
|
J,
|
|
487
477
|
{
|
|
488
478
|
onClick: Xe,
|
|
489
|
-
disabled:
|
|
479
|
+
disabled: re || !W,
|
|
490
480
|
fullWidth: !0,
|
|
491
481
|
children: /* @__PURE__ */ e("strong", { children: "Next" })
|
|
492
482
|
}
|
|
493
483
|
),
|
|
494
|
-
O && /* @__PURE__ */
|
|
484
|
+
O && /* @__PURE__ */ r(E, { children: [
|
|
495
485
|
/* @__PURE__ */ e(
|
|
496
486
|
J,
|
|
497
487
|
{
|
|
@@ -534,13 +524,13 @@ const Ft = ({
|
|
|
534
524
|
walletAddress: f,
|
|
535
525
|
navigate: S
|
|
536
526
|
}) => {
|
|
537
|
-
const y = tt(null), z = L(ze), { openDialog:
|
|
538
|
-
|
|
527
|
+
const y = tt(null), z = L(ze), { openDialog: h } = Le();
|
|
528
|
+
he();
|
|
539
529
|
const o = c.estimate[R], g = c.create.order_id, v = c.depositAddress, A = c.depositAddressError, b = c.loader;
|
|
540
530
|
o.fiat_amount;
|
|
541
|
-
const O = Me(o.fiat_currency), [D, G] =
|
|
531
|
+
const O = Me(o.fiat_currency), [D, G] = p(!1);
|
|
542
532
|
x(() => {
|
|
543
|
-
g && D && (z.data.some((H) => H.address === f) ?
|
|
533
|
+
g && D && (z.data.some((H) => H.address === f) ? h({
|
|
544
534
|
icon: Re,
|
|
545
535
|
title: "Sell Success",
|
|
546
536
|
message: "Your transaction was successful for more details on the transaction please track your order.",
|
|
@@ -553,10 +543,10 @@ const Ft = ({
|
|
|
553
543
|
S && S("/history"), u(X());
|
|
554
544
|
},
|
|
555
545
|
height: "490px"
|
|
556
|
-
}) : u(
|
|
546
|
+
}) : u(Fe(g)));
|
|
557
547
|
}, [g]), x(() => {
|
|
558
548
|
A > 0 && (y.current = setTimeout(() => {
|
|
559
|
-
u(
|
|
549
|
+
u(Fe(g));
|
|
560
550
|
}, 1e4));
|
|
561
551
|
}, [A, g]), x(() => {
|
|
562
552
|
v && k(zt);
|
|
@@ -589,7 +579,7 @@ const Ft = ({
|
|
|
589
579
|
})
|
|
590
580
|
), G(!0);
|
|
591
581
|
};
|
|
592
|
-
return /* @__PURE__ */
|
|
582
|
+
return /* @__PURE__ */ r(E, { children: [
|
|
593
583
|
/* @__PURE__ */ e(
|
|
594
584
|
gt,
|
|
595
585
|
{
|
|
@@ -608,8 +598,8 @@ const Ft = ({
|
|
|
608
598
|
}
|
|
609
599
|
),
|
|
610
600
|
/* @__PURE__ */ e(i, { mt: 3, variant: "sm", fontWeight: 600, component: "p", children: "Order Estimate Details" }),
|
|
611
|
-
/* @__PURE__ */ e(T, { sx: { color: "#A6A6A6" }, children: /* @__PURE__ */ n
|
|
612
|
-
/* @__PURE__ */ e(
|
|
601
|
+
/* @__PURE__ */ e(T, { sx: { color: "#A6A6A6" }, children: /* @__PURE__ */ r(n, { container: !0, children: [
|
|
602
|
+
/* @__PURE__ */ e(n, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ r(i, { variant: "caption", children: [
|
|
613
603
|
o.crypto_amount,
|
|
614
604
|
" ",
|
|
615
605
|
o.crypto_currency.toUpperCase(),
|
|
@@ -619,7 +609,7 @@ const Ft = ({
|
|
|
619
609
|
" ",
|
|
620
610
|
o.fiat_currency
|
|
621
611
|
] }) }),
|
|
622
|
-
/* @__PURE__ */ e(
|
|
612
|
+
/* @__PURE__ */ e(n, { className: "flex-right", size: { xs: 6 }, children: /* @__PURE__ */ e(
|
|
623
613
|
"span",
|
|
624
614
|
{
|
|
625
615
|
className: l["confirm-transaction-network"],
|
|
@@ -629,24 +619,24 @@ const Ft = ({
|
|
|
629
619
|
children: o.network
|
|
630
620
|
}
|
|
631
621
|
) }),
|
|
632
|
-
/* @__PURE__ */ e(
|
|
622
|
+
/* @__PURE__ */ e(n, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ r(i, { variant: "caption", children: [
|
|
633
623
|
Number(o.crypto_amount).toFixed(5),
|
|
634
624
|
" ",
|
|
635
625
|
o.crypto_currency.toUpperCase()
|
|
636
626
|
] }) }),
|
|
637
|
-
/* @__PURE__ */ e(
|
|
627
|
+
/* @__PURE__ */ e(n, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ r(i, { variant: "caption", children: [
|
|
638
628
|
Number(o.fiat_base_amount).toFixed(2),
|
|
639
629
|
" ",
|
|
640
630
|
o.fiat_currency
|
|
641
631
|
] }) }),
|
|
642
|
-
/* @__PURE__ */ e(
|
|
643
|
-
/* @__PURE__ */ e(
|
|
632
|
+
/* @__PURE__ */ e(n, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(i, { variant: "caption", children: "Total Fees" }) }),
|
|
633
|
+
/* @__PURE__ */ e(n, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ r(i, { variant: "caption", children: [
|
|
644
634
|
Number(o.total_fee).toFixed(2),
|
|
645
635
|
" ",
|
|
646
636
|
o.fiat_currency
|
|
647
637
|
] }) }),
|
|
648
|
-
/* @__PURE__ */ e(
|
|
649
|
-
/* @__PURE__ */ e(
|
|
638
|
+
/* @__PURE__ */ e(n, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(i, { variant: "caption", children: /* @__PURE__ */ e("strong", { children: "Order Total" }) }) }),
|
|
639
|
+
/* @__PURE__ */ e(n, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ e(i, { variant: "caption", children: /* @__PURE__ */ r("strong", { children: [
|
|
650
640
|
O,
|
|
651
641
|
Number(o.fiat_out_amount).toFixed(2),
|
|
652
642
|
" ",
|
|
@@ -659,7 +649,7 @@ const Ft = ({
|
|
|
659
649
|
onClick: K,
|
|
660
650
|
disabled: b,
|
|
661
651
|
fullWidth: !0,
|
|
662
|
-
children: /* @__PURE__ */ e("strong", { children: b ? /* @__PURE__ */
|
|
652
|
+
children: /* @__PURE__ */ e("strong", { children: b ? /* @__PURE__ */ r(E, { children: [
|
|
663
653
|
/* @__PURE__ */ e(I, { size: 15, color: "inherit" }),
|
|
664
654
|
" Processing..."
|
|
665
655
|
] }) : "Sell" })
|
|
@@ -676,14 +666,14 @@ const Ft = ({
|
|
|
676
666
|
var B;
|
|
677
667
|
const S = Be(), y = L(
|
|
678
668
|
(_) => _.cryptoAssets
|
|
679
|
-
), { showAlertMessage: z } =
|
|
669
|
+
), { showAlertMessage: z } = he(), { openDialog: h } = Le(), o = d.create.order_id, g = d.depositAddress, v = d.depositComplete, A = d.error, [b, O] = p(!1), [D, G] = p(!1), [F, K] = p("");
|
|
680
670
|
let w = "Swap", m = d.estimate[ct];
|
|
681
671
|
k === R && (w = "Sell", m = d.estimate[R]);
|
|
682
672
|
let H = (B = y.tokens.find(
|
|
683
673
|
(_) => _.symbol === m.input_token.symbol
|
|
684
674
|
)) == null ? void 0 : B.icon_uri;
|
|
685
675
|
x(() => {
|
|
686
|
-
A && (O(!1), z({ message: String(A) }),
|
|
676
|
+
A && (O(!1), z({ message: String(A) }), h({
|
|
687
677
|
icon: lt,
|
|
688
678
|
title: w + " Error",
|
|
689
679
|
message: "There has been an error with processing your transaction.",
|
|
@@ -695,7 +685,7 @@ const Ft = ({
|
|
|
695
685
|
height: "490px"
|
|
696
686
|
}));
|
|
697
687
|
}, [A]), x(() => {
|
|
698
|
-
v && (O(!1), G(!0),
|
|
688
|
+
v && (O(!1), G(!0), h({
|
|
699
689
|
icon: Re,
|
|
700
690
|
title: w + " Success",
|
|
701
691
|
message: "Your transaction was successful for more details on the transaction please track your order.",
|
|
@@ -717,21 +707,21 @@ const Ft = ({
|
|
|
717
707
|
});
|
|
718
708
|
return;
|
|
719
709
|
}
|
|
720
|
-
b || (O(!0), S(
|
|
710
|
+
b || (O(!0), S(ht({
|
|
721
711
|
order_id: o,
|
|
722
712
|
tx_hash: F
|
|
723
713
|
})));
|
|
724
714
|
};
|
|
725
|
-
return /* @__PURE__ */
|
|
726
|
-
/* @__PURE__ */ n
|
|
727
|
-
/* @__PURE__ */ e(
|
|
728
|
-
/* @__PURE__ */ e(
|
|
715
|
+
return /* @__PURE__ */ r(T, { mt: 12, children: [
|
|
716
|
+
/* @__PURE__ */ r(n, { rowSpacing: 2, container: !0, children: [
|
|
717
|
+
/* @__PURE__ */ e(n, { size: 8, children: /* @__PURE__ */ e(i, { className: "text-left", variant: "h5", children: /* @__PURE__ */ e("strong", { children: "Send Your Tokens" }) }) }),
|
|
718
|
+
/* @__PURE__ */ e(n, { className: "flex-right", size: 4, children: /* @__PURE__ */ e(
|
|
729
719
|
Et,
|
|
730
720
|
{
|
|
731
721
|
preText: "in ",
|
|
732
722
|
clearTimer: D,
|
|
733
723
|
onFinish: () => {
|
|
734
|
-
|
|
724
|
+
h({
|
|
735
725
|
title: "Timer Error",
|
|
736
726
|
message: "We did not receive your token before the timer expired. Please return to " + w + " and try again.",
|
|
737
727
|
confirmButtonShow: !1,
|
|
@@ -746,12 +736,12 @@ const Ft = ({
|
|
|
746
736
|
}
|
|
747
737
|
) })
|
|
748
738
|
] }),
|
|
749
|
-
/* @__PURE__ */ n
|
|
750
|
-
/* @__PURE__ */ e(
|
|
751
|
-
/* @__PURE__ */ e(
|
|
752
|
-
/* @__PURE__ */ e(
|
|
753
|
-
/* @__PURE__ */ e(
|
|
754
|
-
/* @__PURE__ */ n
|
|
739
|
+
/* @__PURE__ */ r(n, { mt: 4, rowSpacing: 2, container: !0, children: [
|
|
740
|
+
/* @__PURE__ */ e(n, { size: 6, children: /* @__PURE__ */ e(i, { className: "text-left", variant: "body1", children: "From Wallet" }) }),
|
|
741
|
+
/* @__PURE__ */ e(n, { size: 6, children: /* @__PURE__ */ e(i, { className: "text-right", variant: "body1", children: yt(u) }) }),
|
|
742
|
+
/* @__PURE__ */ e(ce, { sx: { width: "100%", mt: 1 } }),
|
|
743
|
+
/* @__PURE__ */ e(n, { size: 6, children: /* @__PURE__ */ e(i, { className: "text-left", variant: "body1", children: "Token" }) }),
|
|
744
|
+
/* @__PURE__ */ r(n, { className: "flex-right", alignItems: "center", size: 6, children: [
|
|
755
745
|
/* @__PURE__ */ e(
|
|
756
746
|
"img",
|
|
757
747
|
{
|
|
@@ -759,16 +749,16 @@ const Ft = ({
|
|
|
759
749
|
width: 32,
|
|
760
750
|
src: H,
|
|
761
751
|
onError: ({ currentTarget: _ }) => {
|
|
762
|
-
_.onerror = null, _.src =
|
|
752
|
+
_.onerror = null, _.src = de;
|
|
763
753
|
},
|
|
764
754
|
alt: "token"
|
|
765
755
|
}
|
|
766
756
|
),
|
|
767
757
|
/* @__PURE__ */ e(i, { className: "text-right", variant: "body1", children: m == null ? void 0 : m.input_token.symbol })
|
|
768
758
|
] }),
|
|
769
|
-
/* @__PURE__ */ e(
|
|
770
|
-
/* @__PURE__ */ e(
|
|
771
|
-
/* @__PURE__ */ e(
|
|
759
|
+
/* @__PURE__ */ e(ce, { sx: { width: "100%", mt: 1 } }),
|
|
760
|
+
/* @__PURE__ */ e(n, { size: 6, children: /* @__PURE__ */ e(i, { className: "text-left", variant: "body1", children: "Network" }) }),
|
|
761
|
+
/* @__PURE__ */ e(n, { className: "flex-right", size: 6, children: /* @__PURE__ */ e(
|
|
772
762
|
"span",
|
|
773
763
|
{
|
|
774
764
|
className: l["confirm-transaction-network"],
|
|
@@ -778,16 +768,16 @@ const Ft = ({
|
|
|
778
768
|
children: m == null ? void 0 : m.input_token.network
|
|
779
769
|
}
|
|
780
770
|
) }),
|
|
781
|
-
/* @__PURE__ */ e(
|
|
782
|
-
/* @__PURE__ */ e(
|
|
783
|
-
/* @__PURE__ */ e(
|
|
771
|
+
/* @__PURE__ */ e(ce, { sx: { width: "100%", mt: 1 } }),
|
|
772
|
+
/* @__PURE__ */ e(n, { size: 6, children: /* @__PURE__ */ e(i, { className: "text-left", variant: "body1", children: /* @__PURE__ */ e("strong", { children: "Amount to Send" }) }) }),
|
|
773
|
+
/* @__PURE__ */ e(n, { className: "flex-right", size: 6, children: /* @__PURE__ */ e(i, { className: "text-right", variant: "body1", children: /* @__PURE__ */ r("strong", { children: [
|
|
784
774
|
(+(m == null ? void 0 : m.crypto_amount) * 1).toFixed(5),
|
|
785
775
|
" ",
|
|
786
776
|
m == null ? void 0 : m.input_token.symbol
|
|
787
777
|
] }) }) })
|
|
788
778
|
] }),
|
|
789
779
|
/* @__PURE__ */ e(i, { mt: 4, variant: "body2", children: /* @__PURE__ */ e("b", { children: "To Wallet Address" }) }),
|
|
790
|
-
/* @__PURE__ */
|
|
780
|
+
/* @__PURE__ */ r(
|
|
791
781
|
T,
|
|
792
782
|
{
|
|
793
783
|
mt: 1.5,
|
|
@@ -795,7 +785,7 @@ const Ft = ({
|
|
|
795
785
|
children: [
|
|
796
786
|
/* @__PURE__ */ e(i, { variant: "caption", component: "p", children: /* @__PURE__ */ e("strong", { children: g }) }),
|
|
797
787
|
/* @__PURE__ */ e(
|
|
798
|
-
|
|
788
|
+
me,
|
|
799
789
|
{
|
|
800
790
|
onClick: () => {
|
|
801
791
|
navigator.clipboard.writeText(g);
|
|
@@ -831,7 +821,7 @@ const Ft = ({
|
|
|
831
821
|
fullWidth: !0
|
|
832
822
|
}
|
|
833
823
|
),
|
|
834
|
-
/* @__PURE__ */ e(J, { sx: { mt: 2 }, onClick: $, fullWidth: !0, children: /* @__PURE__ */ e("strong", { children: b ? /* @__PURE__ */
|
|
824
|
+
/* @__PURE__ */ e(J, { sx: { mt: 2 }, onClick: $, fullWidth: !0, children: /* @__PURE__ */ e("strong", { children: b ? /* @__PURE__ */ r(E, { children: [
|
|
835
825
|
/* @__PURE__ */ e(I, { size: 15, color: "inherit" }),
|
|
836
826
|
" Processing..."
|
|
837
827
|
] }) : "Continue" }) })
|
|
@@ -839,19 +829,19 @@ const Ft = ({
|
|
|
839
829
|
}, Y = "FORM_SCREEN", Pe = "CONFIRM_SCREEN", zt = "MANUAL_SEND_SCREEN", Wt = "MINIMAL_KYC_SCREEN", Mt = ({ partnerKey: k, navigate: d }) => {
|
|
840
830
|
const c = Be(), u = L((b) => b.order), f = u.error, S = L((b) => b.fiatAssets), y = L(
|
|
841
831
|
(b) => b.cryptoAssets
|
|
842
|
-
), [z,
|
|
832
|
+
), [z, h] = p(Y), [o, g] = p(""), { showAlertMessage: v } = he();
|
|
843
833
|
return x(() => {
|
|
844
834
|
f && v({ message: f });
|
|
845
835
|
}, [f]), x(() => {
|
|
846
|
-
u.initMinimalKyc && (v({ message: f, type: "info" }),
|
|
847
|
-
}, [u.initMinimalKyc]), x(() => (c(ot()), c(
|
|
836
|
+
u.initMinimalKyc && (v({ message: f, type: "info" }), h(Wt));
|
|
837
|
+
}, [u.initMinimalKyc]), x(() => (c(ot()), c(pt(ue)), c(Nt()), c(vt()), () => {
|
|
848
838
|
c(X());
|
|
849
839
|
}), []), /* @__PURE__ */ e(kt, { addPadding: !0, children: {
|
|
850
840
|
FORM_SCREEN: /* @__PURE__ */ e(
|
|
851
841
|
Ft,
|
|
852
842
|
{
|
|
853
843
|
showAlertMessage: v,
|
|
854
|
-
setScreen:
|
|
844
|
+
setScreen: h,
|
|
855
845
|
fiatAssets: S,
|
|
856
846
|
cryptoAssets: y,
|
|
857
847
|
orderData: u,
|
|
@@ -876,7 +866,7 @@ const Ft = ({
|
|
|
876
866
|
It,
|
|
877
867
|
{
|
|
878
868
|
partnerKey: k,
|
|
879
|
-
setScreen:
|
|
869
|
+
setScreen: h,
|
|
880
870
|
showAlertMessage: v,
|
|
881
871
|
orderData: u,
|
|
882
872
|
dispatch: c,
|
|
@@ -888,7 +878,7 @@ const Ft = ({
|
|
|
888
878
|
Rt,
|
|
889
879
|
{
|
|
890
880
|
orderData: u,
|
|
891
|
-
setScreen:
|
|
881
|
+
setScreen: h,
|
|
892
882
|
walletAddress: o,
|
|
893
883
|
from: R,
|
|
894
884
|
navigate: d
|
|
@@ -900,12 +890,12 @@ const Ft = ({
|
|
|
900
890
|
inputComponent: Oe,
|
|
901
891
|
buttonComponent: J,
|
|
902
892
|
onComplete: () => {
|
|
903
|
-
|
|
893
|
+
h(Pe);
|
|
904
894
|
}
|
|
905
895
|
}
|
|
906
896
|
)
|
|
907
897
|
}[z] });
|
|
908
|
-
},
|
|
898
|
+
}, Sn = nt(Mt);
|
|
909
899
|
export {
|
|
910
900
|
Pe as C,
|
|
911
901
|
Y as F,
|
|
@@ -914,5 +904,5 @@ export {
|
|
|
914
904
|
It as a,
|
|
915
905
|
zt as b,
|
|
916
906
|
Wt as c,
|
|
917
|
-
|
|
907
|
+
Sn as i
|
|
918
908
|
};
|