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,23 +1,24 @@
|
|
|
1
1
|
import { jsxs as a, Fragment as w, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as Ze, useState as d, useEffect as h, useCallback as et } from "react";
|
|
3
3
|
import tt from "./hoc/withThemeProvider.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { as as
|
|
4
|
+
import { Grid as o, Typography as s, FormControl as te, FilledInput as le, FormHelperText as Ie, CircularProgress as S, Select as ue, MenuItem as ce, ListItemIcon as Oe, Box as F, InputLabel as ze, IconButton as ke } from "@mui/material";
|
|
5
|
+
import { P as nt, f as rt } from "./PlayArrow-71FP5PzJ.js";
|
|
6
|
+
import { I as it } from "./Info-DOoRR7sR.js";
|
|
7
|
+
import { G as we } from "./generic-token-B_ptO5yb.js";
|
|
8
|
+
import { PAYMENT_PROVIDER_PAYSAFE as ot, ID_TOKEN_SYMBOL as We, FIAT_TO_EVER_ID as fe, FIAT_TO_TOKEN as he, ESTIMATE_TOOLTIP_TEXT as at, DIALOG_SUCCESS_ICON as st, PAYMENT_PROVIDER_PLAID as lt, PAYMENT_PROVIDER_CARDCORP as ct, PAYMENT_BANK as Be, SEPA_ICON as mt, VISA_ICON as dt } from "./util/constants.js";
|
|
9
|
+
import { ay as B } from "./constants-DX0YBtP2.js";
|
|
9
10
|
import { c as pt, d as ut, u as ft } from "./index-BQNs1mvn.js";
|
|
10
|
-
import { d as ht, e as $e, b as ye, f as yt, g as
|
|
11
|
-
import { M as xt } from "./tooltip-
|
|
11
|
+
import { d as ht, e as $e, b as ye, f as yt, g as Te, h as _t } from "./order-BXeCIvqC.js";
|
|
12
|
+
import { M as xt } from "./tooltip-BW0UyWw7.js";
|
|
12
13
|
import { getCurrencySymbol as Ye, getNetworkBackGround as gt } from "./util/functions.js";
|
|
13
14
|
import xe from "./components/Wallet/Shared/appButton.js";
|
|
14
15
|
import Ct from "./components/Wallet/Shared/backBtn.js";
|
|
15
16
|
import { s as m } from "./styles.module-DMd29SPQ.js";
|
|
16
|
-
import { p as Nt, f as vt } from "./bank-
|
|
17
|
+
import { p as Nt, f as vt } from "./bank-HVb0GFsa.js";
|
|
17
18
|
import { u as bt } from "./index.esm-BsMAMhYW.js";
|
|
18
19
|
import { u as W } from "./react-redux-C7I9-1M6.js";
|
|
19
20
|
import "./index-DlQqWbXG.js";
|
|
20
|
-
import "./
|
|
21
|
+
import "./otpForm-DeeegaX2.js";
|
|
21
22
|
import { useSnackBarContext as Et } from "./context/snackBarContext.js";
|
|
22
23
|
import "./util/conversions.js";
|
|
23
24
|
import "./index-CAoLi5Qq.js";
|
|
@@ -27,14 +28,11 @@ import "./moment-h96o7c8I.js";
|
|
|
27
28
|
import "./web3-u4qDZYpo.js";
|
|
28
29
|
import "./index.esm-I_Bp2YLf.js";
|
|
29
30
|
import { useDialogContext as Rt } from "./context/dialogContext.js";
|
|
31
|
+
import "@mui/icons-material";
|
|
30
32
|
import "./index-ceeCtFuh.js";
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import { C as P } from "./CircularProgress-xZA3lvba.js";
|
|
35
|
-
import { f as At } from "./cryptoAssets-DyGDknvq.js";
|
|
36
|
-
import { u as Ft, a as Pt } from "./wallet-CauUBXou.js";
|
|
37
|
-
import { AuthContainer as St } from "./components/Wallet/Shared/Container/index.js";
|
|
33
|
+
import { f as At } from "./cryptoAssets-B8rAI7pp.js";
|
|
34
|
+
import { u as Pt, a as St } from "./wallet-BPXOp8UG.js";
|
|
35
|
+
import { AuthContainer as Ft } from "./components/Wallet/Shared/Container/index.js";
|
|
38
36
|
import Mt from "./components/Wallet/Shared/CardPayment/index.js";
|
|
39
37
|
import It from "./components/Shared/MinimalKyc/index.js";
|
|
40
38
|
import Ot from "./components/Wallet/Shared/Input/index.js";
|
|
@@ -43,14 +41,7 @@ import { c as kt } from "./countries-BVn1FubK.js";
|
|
|
43
41
|
import wt from "./hooks/useEverestDispatch.js";
|
|
44
42
|
import Wt from "./components/Wallet/Shared/TokenModal/index.js";
|
|
45
43
|
import { PaymentButton as Bt } from "./components/Wallet/Shared/Order/paymentButton.js";
|
|
46
|
-
import
|
|
47
|
-
import { F as te } from "./FormControl-RtZDQMdA.js";
|
|
48
|
-
import { F as le } from "./FilledInput-DuNqnPjc.js";
|
|
49
|
-
import { F as We, I as Be } from "./TextField-DPpRUQe3.js";
|
|
50
|
-
import { S as ue } from "./Select-CB5yWmyn.js";
|
|
51
|
-
import { M as ce } from "./MenuItem-DUdYOJr4.js";
|
|
52
|
-
import { L as Te } from "./ListItemIcon-CUcyTEEm.js";
|
|
53
|
-
import { I as Le } from "./IconButton-DHm-hucF.js";
|
|
44
|
+
import Le from "./components/Wallet/Shared/Order/selectCustomIcon.js";
|
|
54
45
|
const Tt = ({
|
|
55
46
|
setScreen: N,
|
|
56
47
|
orderData: y,
|
|
@@ -61,43 +52,43 @@ const Tt = ({
|
|
|
61
52
|
showAlertMessage: c,
|
|
62
53
|
partnerKey: u,
|
|
63
54
|
walletAddress: v,
|
|
64
|
-
setWalletAddress:
|
|
65
|
-
outputToken:
|
|
55
|
+
setWalletAddress: r,
|
|
56
|
+
outputToken: i,
|
|
66
57
|
setOutputToken: I,
|
|
67
58
|
paymentId: g,
|
|
68
59
|
setPaymentId: O,
|
|
69
60
|
currencyId: f,
|
|
70
|
-
setCurrencyId:
|
|
71
|
-
paymentOptions:
|
|
61
|
+
setCurrencyId: j,
|
|
62
|
+
paymentOptions: G,
|
|
72
63
|
setPaymentOptions: b
|
|
73
64
|
}) => {
|
|
74
|
-
var
|
|
75
|
-
const H = W(pt), T = W(ut), { data: z, loader: X } = H, { data:
|
|
76
|
-
let
|
|
65
|
+
var Se, Fe;
|
|
66
|
+
const H = W(pt), T = W(ut), { data: z, loader: X } = H, { data: ne, loader: de } = T, L = x.fiats, re = x.loader, k = M.featureTokens.buy.list, $ = M.featureTokens.buy.default, ie = M.loader, Y = y.loader, _ = y.estimate[B], J = _.crypto_out_amount, p = _.conversion_price, D = _.total_fee;
|
|
67
|
+
let oe = 0, ae = 0;
|
|
77
68
|
const ge = _.fee_breakdown;
|
|
78
69
|
for (let t = 0; t < ge.length; t++) {
|
|
79
|
-
const
|
|
80
|
-
|
|
70
|
+
const n = ge[t];
|
|
71
|
+
n.name === "ev_fee" ? oe = Number(n.value) : n.name === "network_fee" && (ae = Number(n.value));
|
|
81
72
|
}
|
|
82
73
|
const De = Ze(() => [
|
|
83
74
|
...z,
|
|
84
|
-
...
|
|
75
|
+
...ne.filter(
|
|
85
76
|
(t) => !z.some(
|
|
86
|
-
(
|
|
77
|
+
(n) => n.address.toLowerCase() === t.address.toLowerCase()
|
|
87
78
|
)
|
|
88
79
|
)
|
|
89
|
-
], [z,
|
|
80
|
+
], [z, ne]), [pe, Q] = d(!1), [q, qe] = d([]), [Ce, Ue] = d(!1), [Ne, Ke] = d(50), [ve, Ve] = d(3e3), [Z, je] = d(50), [be, Ge] = d(3e3), [Ee, ee] = d(""), [U, Re] = d(
|
|
90
81
|
_.fiat_amount || Z.toString()
|
|
91
82
|
), [He, Ae] = d(!1), K = L.find((t) => t.id === f), A = Ye(K == null ? void 0 : K.symbol);
|
|
92
83
|
h(() => {
|
|
93
84
|
const t = [];
|
|
94
|
-
for (let
|
|
95
|
-
const l = {}, C = L[
|
|
85
|
+
for (let n = 0; n < L.length; n++) {
|
|
86
|
+
const l = {}, C = L[n];
|
|
96
87
|
l.id = C.id, l.name = C.name, l.icon_uri = C.icon_uri, l.symbol = C.symbol, l.payment_options = [];
|
|
97
|
-
const
|
|
98
|
-
for (let
|
|
99
|
-
const Me = {}, se =
|
|
100
|
-
se.payment_provider !==
|
|
88
|
+
const P = C.payment_options;
|
|
89
|
+
for (let V = 0; V < P.length; V++) {
|
|
90
|
+
const Me = {}, se = P[V];
|
|
91
|
+
se.payment_provider !== ot && se.active && se.payin_allowed && (Object.assign(Me, se), l.payment_options.push(Me));
|
|
101
92
|
}
|
|
102
93
|
l.payment_options.length > 0 && t.push(l);
|
|
103
94
|
}
|
|
@@ -106,35 +97,35 @@ const Tt = ({
|
|
|
106
97
|
if (!f || q.length === 0)
|
|
107
98
|
return;
|
|
108
99
|
const t = [];
|
|
109
|
-
for (let
|
|
110
|
-
if (q[
|
|
111
|
-
const l = q[
|
|
100
|
+
for (let n = 0; n < q.length; n++) {
|
|
101
|
+
if (q[n].id === f) {
|
|
102
|
+
const l = q[n].payment_options;
|
|
112
103
|
let C = !1;
|
|
113
|
-
for (let
|
|
114
|
-
const
|
|
115
|
-
|
|
104
|
+
for (let P = 0; P < l.length; P++) {
|
|
105
|
+
const V = l[P];
|
|
106
|
+
V.active && (t.push(V), l[P].id === g && (C = !0));
|
|
116
107
|
}
|
|
117
108
|
C || O(t[0].id);
|
|
118
109
|
}
|
|
119
110
|
b(t);
|
|
120
111
|
}
|
|
121
112
|
}, [f, q]), h(() => {
|
|
122
|
-
!
|
|
113
|
+
!i.symbol && $ && $.id && I($);
|
|
123
114
|
}, [$]), h(() => {
|
|
124
115
|
f && R && R(f);
|
|
125
116
|
}, [f, v]), h(() => {
|
|
126
|
-
if (
|
|
117
|
+
if (i && i.id && U && g && f) {
|
|
127
118
|
E(ht(B)), Q(!1), ee("");
|
|
128
119
|
const t = setTimeout(() => {
|
|
129
120
|
Xe();
|
|
130
121
|
}, 1e3);
|
|
131
122
|
return () => clearTimeout(t);
|
|
132
123
|
}
|
|
133
|
-
}, [
|
|
124
|
+
}, [i, U, g, k, f]);
|
|
134
125
|
const Xe = () => {
|
|
135
126
|
var C;
|
|
136
127
|
const t = parseFloat(U);
|
|
137
|
-
if (
|
|
128
|
+
if (i.symbol === We) {
|
|
138
129
|
if (Ne > t)
|
|
139
130
|
return ee(
|
|
140
131
|
`Minimum value should be greater than ${A + Ne}`
|
|
@@ -153,19 +144,19 @@ const Tt = ({
|
|
|
153
144
|
`Maximum value should be less than ${A + be}`
|
|
154
145
|
), Q(!0), !1;
|
|
155
146
|
}
|
|
156
|
-
const
|
|
147
|
+
const n = G.find((P) => P.id === g), l = n.payment_type;
|
|
157
148
|
E(
|
|
158
149
|
$e(
|
|
159
150
|
{
|
|
160
151
|
apiKey: u,
|
|
161
|
-
transaction_type:
|
|
152
|
+
transaction_type: i.symbol === We ? fe : he,
|
|
162
153
|
coin_amount: U,
|
|
163
|
-
exchange:
|
|
154
|
+
exchange: i.exchange,
|
|
164
155
|
payment_type: l,
|
|
165
156
|
fiat_ccy: K == null ? void 0 : K.symbol,
|
|
166
|
-
crypto_ccy:
|
|
167
|
-
network: (C =
|
|
168
|
-
payment_provider:
|
|
157
|
+
crypto_ccy: i.symbol,
|
|
158
|
+
network: (C = i.network) == null ? void 0 : C.name,
|
|
159
|
+
payment_provider: n.payment_provider
|
|
169
160
|
},
|
|
170
161
|
B
|
|
171
162
|
)
|
|
@@ -174,19 +165,19 @@ const Tt = ({
|
|
|
174
165
|
h(() => {
|
|
175
166
|
const t = y.types.length;
|
|
176
167
|
if (t > 0)
|
|
177
|
-
for (let
|
|
178
|
-
const l = y.types[
|
|
179
|
-
l.type === fe && (Ke(parseFloat(l.min_deposit_amount)),
|
|
168
|
+
for (let n = 0; n < t; n++) {
|
|
169
|
+
const l = y.types[n];
|
|
170
|
+
l.type === fe && (Ke(parseFloat(l.min_deposit_amount)), Ve(parseFloat(l.max_deposit_amount))), l.type === he && (je(parseFloat(l.min_deposit_amount)), Ge(parseFloat(l.max_deposit_amount)));
|
|
180
171
|
}
|
|
181
172
|
}, [y.types]);
|
|
182
173
|
const Je = (t) => {
|
|
183
|
-
const
|
|
184
|
-
|
|
185
|
-
},
|
|
186
|
-
const
|
|
187
|
-
I(
|
|
174
|
+
const n = t.target.value;
|
|
175
|
+
n ? /^([0-9.]+)$/.test(n) && Re(n) : Re("");
|
|
176
|
+
}, Pe = (t) => {
|
|
177
|
+
const n = k.find((l) => l.symbol === t);
|
|
178
|
+
I(n);
|
|
188
179
|
}, Qe = () => {
|
|
189
|
-
if (!
|
|
180
|
+
if (!i.id)
|
|
190
181
|
return c({ message: "Please select token" }), !1;
|
|
191
182
|
if (!g)
|
|
192
183
|
return c({ message: "Please select payment method" }), !1;
|
|
@@ -201,9 +192,9 @@ const Tt = ({
|
|
|
201
192
|
N(me);
|
|
202
193
|
};
|
|
203
194
|
return /* @__PURE__ */ a(w, { children: [
|
|
204
|
-
/* @__PURE__ */ e(
|
|
205
|
-
/* @__PURE__ */ a(
|
|
206
|
-
/* @__PURE__ */ e(
|
|
195
|
+
/* @__PURE__ */ e(o, { container: !0, children: /* @__PURE__ */ e(o, { size: { xs: 6 }, children: /* @__PURE__ */ e(s, { className: m.label, variant: "caption", component: "p", children: "You Pay" }) }) }),
|
|
196
|
+
/* @__PURE__ */ a(o, { mt: 0.5, spacing: 0, container: !0, className: m["field-set"], children: [
|
|
197
|
+
/* @__PURE__ */ e(o, { size: { xs: 7 }, children: /* @__PURE__ */ a(
|
|
207
198
|
te,
|
|
208
199
|
{
|
|
209
200
|
variant: "filled",
|
|
@@ -223,12 +214,12 @@ const Tt = ({
|
|
|
223
214
|
fullWidth: !0
|
|
224
215
|
}
|
|
225
216
|
),
|
|
226
|
-
/* @__PURE__ */ e(
|
|
217
|
+
/* @__PURE__ */ e(Ie, { className: m["amount-symbol"], children: " " })
|
|
227
218
|
]
|
|
228
219
|
}
|
|
229
220
|
) }),
|
|
230
|
-
/* @__PURE__ */ e(
|
|
231
|
-
|
|
221
|
+
/* @__PURE__ */ e(o, { size: { xs: 5 }, className: "content-center", children: re ? /* @__PURE__ */ e(
|
|
222
|
+
S,
|
|
232
223
|
{
|
|
233
224
|
sx: { ml: 1 },
|
|
234
225
|
size: 30
|
|
@@ -242,7 +233,7 @@ const Tt = ({
|
|
|
242
233
|
children: /* @__PURE__ */ e(
|
|
243
234
|
ue,
|
|
244
235
|
{
|
|
245
|
-
IconComponent:
|
|
236
|
+
IconComponent: Le,
|
|
246
237
|
input: /* @__PURE__ */ e(le, { disableUnderline: !0 }),
|
|
247
238
|
sx: {
|
|
248
239
|
borderTopLeftRadius: 0,
|
|
@@ -266,15 +257,15 @@ const Tt = ({
|
|
|
266
257
|
value: f,
|
|
267
258
|
variant: "filled",
|
|
268
259
|
displayEmpty: !0,
|
|
269
|
-
onChange: (t) =>
|
|
260
|
+
onChange: (t) => j(t.target.value),
|
|
270
261
|
error: pe,
|
|
271
262
|
children: q.map((t) => /* @__PURE__ */ a(ce, { value: t.id, children: [
|
|
272
|
-
/* @__PURE__ */ e(
|
|
263
|
+
/* @__PURE__ */ e(Oe, { className: m["dropdown-list-item"], children: /* @__PURE__ */ e(
|
|
273
264
|
"img",
|
|
274
265
|
{
|
|
275
266
|
src: t.icon_uri,
|
|
276
|
-
onError: ({ currentTarget:
|
|
277
|
-
|
|
267
|
+
onError: ({ currentTarget: n }) => {
|
|
268
|
+
n.onerror = null, n.src = we;
|
|
278
269
|
},
|
|
279
270
|
alt: "tokenImg",
|
|
280
271
|
width: "40",
|
|
@@ -289,9 +280,9 @@ const Tt = ({
|
|
|
289
280
|
) }),
|
|
290
281
|
Ee && /* @__PURE__ */ e(s, { variant: "caption", sx: { color: "red" }, children: /* @__PURE__ */ e("strong", { children: Ee }) })
|
|
291
282
|
] }),
|
|
292
|
-
/* @__PURE__ */ a(
|
|
283
|
+
/* @__PURE__ */ a(F, { className: "text-left", mt: 3, children: [
|
|
293
284
|
/* @__PURE__ */ e(s, { variant: "sm", fontWeight: 600, children: "Select Payment Method" }),
|
|
294
|
-
|
|
285
|
+
re ? /* @__PURE__ */ e(S, { sx: { ml: 1, mt: 3 }, size: 50 }) : /* @__PURE__ */ e(o, { mt: 0.5, container: !0, children: G.map((t) => /* @__PURE__ */ e(o, { size: { xs: 2.5 }, children: /* @__PURE__ */ e(
|
|
295
286
|
Bt,
|
|
296
287
|
{
|
|
297
288
|
label: t.payment_type,
|
|
@@ -301,9 +292,9 @@ const Tt = ({
|
|
|
301
292
|
}
|
|
302
293
|
) }, t.id)) })
|
|
303
294
|
] }),
|
|
304
|
-
/* @__PURE__ */ e(
|
|
305
|
-
/* @__PURE__ */ a(
|
|
306
|
-
/* @__PURE__ */ e(
|
|
295
|
+
/* @__PURE__ */ e(o, { mt: 4, container: !0, children: /* @__PURE__ */ e(o, { size: { xs: 4 }, children: /* @__PURE__ */ e(s, { className: m.label, variant: "caption", component: "p", children: "You Receive" }) }) }),
|
|
296
|
+
/* @__PURE__ */ a(o, { mt: 0.5, container: !0, className: m["field-set"], children: [
|
|
297
|
+
/* @__PURE__ */ e(o, { size: { xs: 7 }, children: /* @__PURE__ */ a(
|
|
307
298
|
te,
|
|
308
299
|
{
|
|
309
300
|
className: `${m.amount} ${m["crypto-field"]}`,
|
|
@@ -319,28 +310,28 @@ const Tt = ({
|
|
|
319
310
|
fullWidth: !0
|
|
320
311
|
}
|
|
321
312
|
),
|
|
322
|
-
/* @__PURE__ */ e(
|
|
313
|
+
/* @__PURE__ */ e(Ie, { className: m["crypto-helper-text"], children: +((Se = _ == null ? void 0 : _.output_token) == null ? void 0 : Se.fiat_amount) * 1 > 0 ? A + (+((Fe = _ == null ? void 0 : _.output_token) == null ? void 0 : Fe.fiat_amount) * 1).toFixed(2) : /* @__PURE__ */ e(w, { children: " " }) })
|
|
323
314
|
]
|
|
324
315
|
}
|
|
325
316
|
) }),
|
|
326
|
-
/* @__PURE__ */ e(
|
|
317
|
+
/* @__PURE__ */ e(o, { size: { xs: 5 }, className: "content-center", children: ie ? /* @__PURE__ */ e(S, { sx: { ml: 1 }, size: 30 }) : /* @__PURE__ */ a(
|
|
327
318
|
te,
|
|
328
319
|
{
|
|
329
320
|
variant: "filled",
|
|
330
321
|
className: `text-left ${m["crypto-picker"]}`,
|
|
331
322
|
fullWidth: !0,
|
|
332
323
|
children: [
|
|
333
|
-
(
|
|
334
|
-
|
|
324
|
+
(i == null ? void 0 : i.network) && /* @__PURE__ */ e(
|
|
325
|
+
ze,
|
|
335
326
|
{
|
|
336
|
-
className: `${m["network-label"]} ${m[gt(
|
|
337
|
-
children:
|
|
327
|
+
className: `${m["network-label"]} ${m[gt(i == null ? void 0 : i.network.name)]}`,
|
|
328
|
+
children: i == null ? void 0 : i.network.name
|
|
338
329
|
}
|
|
339
330
|
),
|
|
340
331
|
/* @__PURE__ */ a(
|
|
341
332
|
ue,
|
|
342
333
|
{
|
|
343
|
-
IconComponent:
|
|
334
|
+
IconComponent: Le,
|
|
344
335
|
input: /* @__PURE__ */ e(le, { disableUnderline: !0 }),
|
|
345
336
|
sx: {
|
|
346
337
|
borderTopLeftRadius: 0,
|
|
@@ -363,9 +354,9 @@ const Tt = ({
|
|
|
363
354
|
},
|
|
364
355
|
className: "buy-select-dd",
|
|
365
356
|
variant: "filled",
|
|
366
|
-
value:
|
|
357
|
+
value: i.symbol,
|
|
367
358
|
displayEmpty: !0,
|
|
368
|
-
onChange: (t) =>
|
|
359
|
+
onChange: (t) => Pe(t.target.value),
|
|
369
360
|
onOpen: (t) => {
|
|
370
361
|
Ae(!0), t.preventDefault();
|
|
371
362
|
},
|
|
@@ -374,12 +365,12 @@ const Tt = ({
|
|
|
374
365
|
children: [
|
|
375
366
|
/* @__PURE__ */ e(ce, { value: "", children: "Please select" }),
|
|
376
367
|
k.map((t) => /* @__PURE__ */ a(ce, { value: t.symbol, children: [
|
|
377
|
-
/* @__PURE__ */ e(
|
|
368
|
+
/* @__PURE__ */ e(Oe, { className: m["dropdown-list-item"], children: /* @__PURE__ */ e(
|
|
378
369
|
"img",
|
|
379
370
|
{
|
|
380
371
|
src: t.icon_uri,
|
|
381
|
-
onError: ({ currentTarget:
|
|
382
|
-
|
|
372
|
+
onError: ({ currentTarget: n }) => {
|
|
373
|
+
n.onerror = null, n.src = we;
|
|
383
374
|
},
|
|
384
375
|
alt: "tokenImg",
|
|
385
376
|
width: "40",
|
|
@@ -395,9 +386,9 @@ const Tt = ({
|
|
|
395
386
|
}
|
|
396
387
|
) })
|
|
397
388
|
] }),
|
|
398
|
-
/* @__PURE__ */ e(
|
|
399
|
-
/* @__PURE__ */ e(
|
|
400
|
-
|
|
389
|
+
/* @__PURE__ */ e(F, { mt: 3, sx: { color: "#1A202C" }, children: /* @__PURE__ */ a(o, { container: !0, children: [
|
|
390
|
+
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 12 }, children: /* @__PURE__ */ a(
|
|
391
|
+
ke,
|
|
401
392
|
{
|
|
402
393
|
sx: { padding: "0" },
|
|
403
394
|
onClick: () => Ue((t) => !t),
|
|
@@ -406,7 +397,7 @@ const Tt = ({
|
|
|
406
397
|
children: [
|
|
407
398
|
/* @__PURE__ */ e(s, { variant: "caption", fontWeight: 700, children: "Fee Calculation" }),
|
|
408
399
|
/* @__PURE__ */ e(
|
|
409
|
-
|
|
400
|
+
nt,
|
|
410
401
|
{
|
|
411
402
|
sx: {
|
|
412
403
|
transform: `rotate(${Ce ? "90" : "0"}deg)`,
|
|
@@ -418,23 +409,23 @@ const Tt = ({
|
|
|
418
409
|
}
|
|
419
410
|
) }),
|
|
420
411
|
Ce && /* @__PURE__ */ a(w, { children: [
|
|
421
|
-
/* @__PURE__ */ e(
|
|
422
|
-
/* @__PURE__ */ e(
|
|
412
|
+
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Everest Fee" }) }),
|
|
413
|
+
/* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
423
414
|
A,
|
|
424
415
|
Y ? /* @__PURE__ */ e(
|
|
425
|
-
|
|
416
|
+
S,
|
|
426
417
|
{
|
|
427
418
|
sx: { ml: 1 },
|
|
428
419
|
size: 15,
|
|
429
420
|
color: "primary"
|
|
430
421
|
}
|
|
431
|
-
) :
|
|
422
|
+
) : oe.toFixed(2)
|
|
432
423
|
] }) }),
|
|
433
|
-
/* @__PURE__ */ e(
|
|
434
|
-
/* @__PURE__ */ e(
|
|
424
|
+
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Network Fee" }) }),
|
|
425
|
+
/* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
435
426
|
A,
|
|
436
427
|
Y ? /* @__PURE__ */ e(
|
|
437
|
-
|
|
428
|
+
S,
|
|
438
429
|
{
|
|
439
430
|
sx: { ml: 1 },
|
|
440
431
|
size: 15,
|
|
@@ -443,23 +434,23 @@ const Tt = ({
|
|
|
443
434
|
) : ae.toFixed(2)
|
|
444
435
|
] }) })
|
|
445
436
|
] }),
|
|
446
|
-
/* @__PURE__ */ e(
|
|
447
|
-
/* @__PURE__ */ e(
|
|
437
|
+
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Total Fees" }) }),
|
|
438
|
+
/* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
448
439
|
A,
|
|
449
|
-
Y ? /* @__PURE__ */ e(
|
|
440
|
+
Y ? /* @__PURE__ */ e(S, { sx: { ml: 1 }, size: 15, color: "primary" }) : Number(D).toFixed(2)
|
|
450
441
|
] }) }),
|
|
451
|
-
|
|
452
|
-
/* @__PURE__ */ e(
|
|
442
|
+
i && /* @__PURE__ */ a(w, { children: [
|
|
443
|
+
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
453
444
|
"1 ",
|
|
454
|
-
|
|
445
|
+
i.symbol,
|
|
455
446
|
" ",
|
|
456
447
|
/* @__PURE__ */ e(
|
|
457
448
|
xt,
|
|
458
449
|
{
|
|
459
450
|
title: at,
|
|
460
451
|
placement: "right",
|
|
461
|
-
children: /* @__PURE__ */ e(
|
|
462
|
-
|
|
452
|
+
children: /* @__PURE__ */ e(ke, { className: "info-fee-icon", children: /* @__PURE__ */ e(
|
|
453
|
+
it,
|
|
463
454
|
{
|
|
464
455
|
sx: {
|
|
465
456
|
fontSize: "14px"
|
|
@@ -469,10 +460,10 @@ const Tt = ({
|
|
|
469
460
|
}
|
|
470
461
|
)
|
|
471
462
|
] }) }),
|
|
472
|
-
/* @__PURE__ */ e(
|
|
463
|
+
/* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
473
464
|
A,
|
|
474
465
|
Y ? /* @__PURE__ */ e(
|
|
475
|
-
|
|
466
|
+
S,
|
|
476
467
|
{
|
|
477
468
|
sx: { ml: 1 },
|
|
478
469
|
size: 15,
|
|
@@ -482,18 +473,18 @@ const Tt = ({
|
|
|
482
473
|
] }) })
|
|
483
474
|
] })
|
|
484
475
|
] }) }),
|
|
485
|
-
/* @__PURE__ */ e(
|
|
486
|
-
!v && /* @__PURE__ */ e(
|
|
476
|
+
/* @__PURE__ */ e(F, { sx: { alignItems: "left", width: "100%" }, children: X || de ? /* @__PURE__ */ e(F, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(S, {}) }) : /* @__PURE__ */ e(w, { children: /* @__PURE__ */ a(te, { variant: "filled", fullWidth: !0, children: [
|
|
477
|
+
!v && /* @__PURE__ */ e(ze, { children: "Select wallet address" }),
|
|
487
478
|
/* @__PURE__ */ e(
|
|
488
479
|
ue,
|
|
489
480
|
{
|
|
490
481
|
value: v,
|
|
491
|
-
onChange: (t) =>
|
|
492
|
-
children: De.map((t,
|
|
482
|
+
onChange: (t) => r && r(t.target.value),
|
|
483
|
+
children: De.map((t, n) => /* @__PURE__ */ e(ce, { value: t.address, children: t.name + "(" + t.address + ")" }, n))
|
|
493
484
|
}
|
|
494
485
|
)
|
|
495
486
|
] }) }) }),
|
|
496
|
-
/* @__PURE__ */ e(
|
|
487
|
+
/* @__PURE__ */ e(F, { mt: 4, children: /* @__PURE__ */ e(
|
|
497
488
|
xe,
|
|
498
489
|
{
|
|
499
490
|
onClick: Qe,
|
|
@@ -507,9 +498,9 @@ const Tt = ({
|
|
|
507
498
|
{
|
|
508
499
|
open: He,
|
|
509
500
|
setModal: Ae,
|
|
510
|
-
loader:
|
|
501
|
+
loader: ie,
|
|
511
502
|
tokenList: k,
|
|
512
|
-
tokenSelect:
|
|
503
|
+
tokenSelect: Pe
|
|
513
504
|
}
|
|
514
505
|
)
|
|
515
506
|
] });
|
|
@@ -522,7 +513,7 @@ const Tt = ({
|
|
|
522
513
|
plaidCountry: R,
|
|
523
514
|
navigate: c
|
|
524
515
|
}) => {
|
|
525
|
-
const { openDialog: u } = Rt(), { plaidToken: v } = W(ft),
|
|
516
|
+
const { openDialog: u } = Rt(), { plaidToken: v } = W(ft), r = E.estimate[B], i = E.create.order_id, I = E.loader, g = r.fiat_amount, O = Ye(r.fiat_currency), [f, j] = d(!1), b = {
|
|
526
517
|
onSuccess: et(() => {
|
|
527
518
|
u({
|
|
528
519
|
title: "Buy Success",
|
|
@@ -538,7 +529,7 @@ const Tt = ({
|
|
|
538
529
|
},
|
|
539
530
|
height: "490px"
|
|
540
531
|
});
|
|
541
|
-
}, [
|
|
532
|
+
}, [i]),
|
|
542
533
|
onExit: () => {
|
|
543
534
|
z(), x(vt());
|
|
544
535
|
},
|
|
@@ -547,13 +538,13 @@ const Tt = ({
|
|
|
547
538
|
h(() => {
|
|
548
539
|
T && v && H();
|
|
549
540
|
}, [T, v]), h(() => {
|
|
550
|
-
|
|
541
|
+
i && f && (r.payment_provider === lt ? x(
|
|
551
542
|
Nt({
|
|
552
543
|
country_code: R,
|
|
553
544
|
payment_id: E.create.provider_token
|
|
554
545
|
})
|
|
555
|
-
) :
|
|
556
|
-
}, [
|
|
546
|
+
) : r.payment_provider === ct ? N(Yt) : N($t));
|
|
547
|
+
}, [i]), h(() => {
|
|
557
548
|
z();
|
|
558
549
|
}, []);
|
|
559
550
|
const z = () => {
|
|
@@ -561,14 +552,14 @@ const Tt = ({
|
|
|
561
552
|
$e(
|
|
562
553
|
{
|
|
563
554
|
apiKey: y,
|
|
564
|
-
transaction_type:
|
|
565
|
-
coin_amount:
|
|
566
|
-
exchange:
|
|
567
|
-
payment_type:
|
|
568
|
-
fiat_ccy:
|
|
569
|
-
crypto_ccy:
|
|
570
|
-
network:
|
|
571
|
-
payment_provider:
|
|
555
|
+
transaction_type: r.transaction_type,
|
|
556
|
+
coin_amount: r.fiat_amount,
|
|
557
|
+
exchange: r.exchange,
|
|
558
|
+
payment_type: r.payment_type,
|
|
559
|
+
fiat_ccy: r.fiat_currency,
|
|
560
|
+
crypto_ccy: r.crypto_currency,
|
|
561
|
+
network: r.network,
|
|
562
|
+
payment_provider: r.payment_provider
|
|
572
563
|
},
|
|
573
564
|
B
|
|
574
565
|
)
|
|
@@ -577,10 +568,10 @@ const Tt = ({
|
|
|
577
568
|
x(
|
|
578
569
|
yt({
|
|
579
570
|
apiKey: y,
|
|
580
|
-
quoteId:
|
|
571
|
+
quoteId: r.quote_id,
|
|
581
572
|
walletAddress: M
|
|
582
573
|
})
|
|
583
|
-
),
|
|
574
|
+
), j(!0);
|
|
584
575
|
};
|
|
585
576
|
return /* @__PURE__ */ a(w, { children: [
|
|
586
577
|
/* @__PURE__ */ e(
|
|
@@ -591,20 +582,20 @@ const Tt = ({
|
|
|
591
582
|
}
|
|
592
583
|
),
|
|
593
584
|
/* @__PURE__ */ e(s, { mt: 2, variant: "sm", fontWeight: 600, children: "Using payment method" }),
|
|
594
|
-
|
|
585
|
+
r.payment_type && /* @__PURE__ */ a(F, { mt: 2, className: m["confirm-payment"], children: [
|
|
595
586
|
/* @__PURE__ */ e(
|
|
596
587
|
"img",
|
|
597
588
|
{
|
|
598
|
-
src:
|
|
589
|
+
src: r.payment_type === Be ? mt : dt,
|
|
599
590
|
width: 100,
|
|
600
591
|
alt: "payment"
|
|
601
592
|
}
|
|
602
593
|
),
|
|
603
|
-
/* @__PURE__ */ e(s, { variant: "caption", component: "span", children: /* @__PURE__ */ e("strong", { children:
|
|
594
|
+
/* @__PURE__ */ e(s, { variant: "caption", component: "span", children: /* @__PURE__ */ e("strong", { children: r.payment_type === Be ? "Bank Account" : "Debit Card" }) })
|
|
604
595
|
] }),
|
|
605
596
|
/* @__PURE__ */ e(s, { mt: 4, variant: "sm", fontWeight: 600, children: "To Wallet Address" }),
|
|
606
597
|
/* @__PURE__ */ e(
|
|
607
|
-
|
|
598
|
+
F,
|
|
608
599
|
{
|
|
609
600
|
mt: 2,
|
|
610
601
|
className: m["confirm-payment"],
|
|
@@ -613,57 +604,57 @@ const Tt = ({
|
|
|
613
604
|
}
|
|
614
605
|
),
|
|
615
606
|
/* @__PURE__ */ e(s, { mt: 3, variant: "sm", fontWeight: 600, component: "p", children: "Order Estimate Details" }),
|
|
616
|
-
/* @__PURE__ */ e(
|
|
617
|
-
/* @__PURE__ */ e(
|
|
618
|
-
|
|
607
|
+
/* @__PURE__ */ e(F, { sx: { color: "#A6A6A6" }, children: /* @__PURE__ */ a(o, { container: !0, children: [
|
|
608
|
+
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
609
|
+
r.crypto_currency.toUpperCase(),
|
|
619
610
|
" @",
|
|
620
611
|
" ",
|
|
621
|
-
Number(
|
|
612
|
+
Number(r.conversion_price).toFixed(2),
|
|
622
613
|
" ",
|
|
623
|
-
|
|
614
|
+
r.fiat_currency
|
|
624
615
|
] }) }),
|
|
625
|
-
/* @__PURE__ */ e(
|
|
616
|
+
/* @__PURE__ */ e(o, { className: "flex-right", size: { xs: 6 }, children: /* @__PURE__ */ e(
|
|
626
617
|
"span",
|
|
627
618
|
{
|
|
628
619
|
className: m["confirm-transaction-network"],
|
|
629
620
|
style: {
|
|
630
|
-
backgroundColor:
|
|
621
|
+
backgroundColor: r.network === "Ethereum" ? "#A1A9DC" : "#5D8CCC"
|
|
631
622
|
},
|
|
632
|
-
children:
|
|
623
|
+
children: r.network
|
|
633
624
|
}
|
|
634
625
|
) }),
|
|
635
|
-
/* @__PURE__ */ e(
|
|
636
|
-
Number(
|
|
626
|
+
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
627
|
+
Number(r.crypto_out_amount).toFixed(5),
|
|
637
628
|
" ",
|
|
638
|
-
|
|
629
|
+
r.crypto_currency.toUpperCase()
|
|
639
630
|
] }) }),
|
|
640
|
-
/* @__PURE__ */ e(
|
|
641
|
-
(Number(g) - Number(
|
|
631
|
+
/* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
632
|
+
(Number(g) - Number(r.total_fee)).toFixed(2),
|
|
642
633
|
" ",
|
|
643
|
-
|
|
634
|
+
r.fiat_currency
|
|
644
635
|
] }) }),
|
|
645
|
-
/* @__PURE__ */ e(
|
|
646
|
-
/* @__PURE__ */ e(
|
|
647
|
-
Number(
|
|
636
|
+
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Total Fees" }) }),
|
|
637
|
+
/* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
638
|
+
Number(r.total_fee).toFixed(2),
|
|
648
639
|
" ",
|
|
649
|
-
|
|
640
|
+
r.fiat_currency
|
|
650
641
|
] }) }),
|
|
651
|
-
/* @__PURE__ */ e(
|
|
652
|
-
/* @__PURE__ */ e(
|
|
642
|
+
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: /* @__PURE__ */ e("strong", { children: "Order Total" }) }) }),
|
|
643
|
+
/* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: /* @__PURE__ */ a("strong", { children: [
|
|
653
644
|
O,
|
|
654
645
|
Number(g).toFixed(2),
|
|
655
646
|
" ",
|
|
656
|
-
|
|
647
|
+
r.fiat_currency
|
|
657
648
|
] }) }) })
|
|
658
649
|
] }) }),
|
|
659
|
-
/* @__PURE__ */ e(
|
|
650
|
+
/* @__PURE__ */ e(F, { mt: 4, children: /* @__PURE__ */ e(
|
|
660
651
|
xe,
|
|
661
652
|
{
|
|
662
653
|
onClick: X,
|
|
663
654
|
disabled: I,
|
|
664
655
|
fullWidth: !0,
|
|
665
656
|
children: /* @__PURE__ */ e("strong", { children: I ? /* @__PURE__ */ a(w, { children: [
|
|
666
|
-
/* @__PURE__ */ e(
|
|
657
|
+
/* @__PURE__ */ e(S, { size: 15, color: "inherit" }),
|
|
667
658
|
" Processing..."
|
|
668
659
|
] }) : "Payment Details" })
|
|
669
660
|
}
|
|
@@ -676,32 +667,32 @@ const Tt = ({
|
|
|
676
667
|
cardCorpSrcUrl: x,
|
|
677
668
|
navigate: M
|
|
678
669
|
}) => {
|
|
679
|
-
const { showAlertMessage: R } = Et(), c = wt(), u = W((p) => p.order), v = u.create.provider_token,
|
|
670
|
+
const { showAlertMessage: R } = Et(), c = wt(), u = W((p) => p.order), v = u.create.provider_token, r = u.create.checkout_integrity, i = u.error, I = W(
|
|
680
671
|
(p) => p.user.profile
|
|
681
|
-
), g = I.everWalletAddress, O = I.residentialAddress.country || "USA", f = W((p) => p.fiatAssets),
|
|
672
|
+
), g = I.everWalletAddress, O = I.residentialAddress.country || "USA", f = W((p) => p.fiatAssets), j = W(
|
|
682
673
|
(p) => p.cryptoAssets
|
|
683
|
-
), [
|
|
674
|
+
), [G, b] = d(_e), [H, T] = d({
|
|
684
675
|
symbol: ""
|
|
685
|
-
}), [z, X] = d(0), [
|
|
676
|
+
}), [z, X] = d(0), [ne, de] = d(1), [L, re] = d([]), [k, $] = d(g), [ie, Y] = d("");
|
|
686
677
|
return h(() => {
|
|
687
678
|
if (O) {
|
|
688
679
|
const p = kt.find((D) => D.alpha3 === O);
|
|
689
680
|
p && Y(p.alpha2);
|
|
690
681
|
}
|
|
691
682
|
}, [O]), h(() => {
|
|
692
|
-
|
|
693
|
-
}, [
|
|
694
|
-
u.initMinimalKyc && (R({ message:
|
|
695
|
-
}, [u.initMinimalKyc]), h(() => (c(
|
|
683
|
+
i && R({ message: i });
|
|
684
|
+
}, [i]), h(() => {
|
|
685
|
+
u.initMinimalKyc && (R({ message: i, type: "info" }), b(Dt));
|
|
686
|
+
}, [u.initMinimalKyc]), h(() => (c(rt()), c(Te(he)), c(Te(fe)), c(Pt()), c(St()), () => {
|
|
696
687
|
c(ye());
|
|
697
|
-
}), []), /* @__PURE__ */ e(
|
|
688
|
+
}), []), /* @__PURE__ */ e(Ft, { addPadding: !0, children: {
|
|
698
689
|
FORM_SCREEN: /* @__PURE__ */ e(
|
|
699
690
|
Tt,
|
|
700
691
|
{
|
|
701
692
|
showAlertMessage: R,
|
|
702
693
|
setScreen: b,
|
|
703
694
|
fiatAssets: f,
|
|
704
|
-
cryptoAssets:
|
|
695
|
+
cryptoAssets: j,
|
|
705
696
|
orderData: u,
|
|
706
697
|
dispatch: c,
|
|
707
698
|
getCryptoAssets: (p) => {
|
|
@@ -721,10 +712,10 @@ const Tt = ({
|
|
|
721
712
|
setOutputToken: T,
|
|
722
713
|
paymentId: z,
|
|
723
714
|
setPaymentId: X,
|
|
724
|
-
currencyId:
|
|
715
|
+
currencyId: ne,
|
|
725
716
|
setCurrencyId: de,
|
|
726
717
|
paymentOptions: L,
|
|
727
|
-
setPaymentOptions:
|
|
718
|
+
setPaymentOptions: re
|
|
728
719
|
}
|
|
729
720
|
),
|
|
730
721
|
CONFIRM_SCREEN: /* @__PURE__ */ e(
|
|
@@ -736,7 +727,7 @@ const Tt = ({
|
|
|
736
727
|
orderData: u,
|
|
737
728
|
dispatch: c,
|
|
738
729
|
walletAddress: k,
|
|
739
|
-
plaidCountry:
|
|
730
|
+
plaidCountry: ie,
|
|
740
731
|
navigate: M
|
|
741
732
|
}
|
|
742
733
|
),
|
|
@@ -746,11 +737,11 @@ const Tt = ({
|
|
|
746
737
|
checkoutKey: E,
|
|
747
738
|
orderData: u,
|
|
748
739
|
initPaymentRequest: (p) => {
|
|
749
|
-
const D = u.estimate[B],
|
|
740
|
+
const D = u.estimate[B], oe = u.create.order_id, ae = {
|
|
750
741
|
token: p,
|
|
751
742
|
amount: Number(D.fiat_amount),
|
|
752
743
|
currency: D.fiat_currency,
|
|
753
|
-
reference:
|
|
744
|
+
reference: oe,
|
|
754
745
|
success_url: `${y}/dashboard?payment=success`,
|
|
755
746
|
fail_url: `${y}/dashboard?payment=failed`
|
|
756
747
|
};
|
|
@@ -763,7 +754,7 @@ const Tt = ({
|
|
|
763
754
|
zt,
|
|
764
755
|
{
|
|
765
756
|
checkoutId: v,
|
|
766
|
-
integrity:
|
|
757
|
+
integrity: r,
|
|
767
758
|
onResultUrl: `${y}/dashboard`,
|
|
768
759
|
backBtnFunc: () => b(me),
|
|
769
760
|
srcUrl: x
|
|
@@ -779,8 +770,8 @@ const Tt = ({
|
|
|
779
770
|
}
|
|
780
771
|
}
|
|
781
772
|
)
|
|
782
|
-
}[
|
|
783
|
-
},
|
|
773
|
+
}[G] });
|
|
774
|
+
}, wn = tt(qt);
|
|
784
775
|
export {
|
|
785
776
|
Tt as B,
|
|
786
777
|
me as C,
|
|
@@ -789,5 +780,5 @@ export {
|
|
|
789
780
|
$t as P,
|
|
790
781
|
Lt as a,
|
|
791
782
|
Yt as b,
|
|
792
|
-
|
|
783
|
+
wn as i
|
|
793
784
|
};
|