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