everest-npm-features 0.0.22 → 0.0.24
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/{Alert-C1UNQHPD.js → Alert-CbQZ8Nii.js} +142 -116
- package/dist/{ArrowBack-Clp4i3dA.js → ArrowBack-BoYSBb8u.js} +1 -1
- package/dist/{ArrowDropDown-CoJNyIet.js → ArrowDropDown-BC_iEASy.js} +1 -1
- package/dist/{ArrowRight-DXtbS-1g.js → ArrowRight-rYkfGJuF.js} +1 -1
- package/dist/{Backdrop-DD6Ysl5O.js → Backdrop-CJBRZv_z.js} +106 -107
- package/dist/{Box-Be0E_-eR.js → Box-B12x52NC.js} +17 -16
- package/dist/Button-C57IMamW.js +660 -0
- package/dist/{ButtonBase-CE33gcZ6.js → ButtonBase-DugIO1pR.js} +194 -194
- package/dist/{Cancel-DEk2meuc.js → Cancel-D1JNu4Hj.js} +1 -1
- package/dist/{CardContent-B5tGyfc5.js → CardContent-CbObWW6t.js} +44 -45
- package/dist/{CheckCircle-BIckgNlV.js → CheckCircle-CyxKX1TY.js} +1 -1
- package/dist/{CircularProgress-fePUtoaj.js → CircularProgress-t8uGhLMo.js} +17 -17
- package/dist/{Close-D20PIPiF.js → Close-VV7zb3cu.js} +1 -1
- package/dist/{Close-Bj6AaxRi.js → Close-jnEgOCZv.js} +1 -1
- package/dist/{Container-CTfl6Vy4.js → Container-B3Af6Sc3.js} +20 -20
- package/dist/{ContentCopy-DzhD9ue3.js → ContentCopy-Ufwoeeov.js} +1 -1
- package/dist/DefaultPropsProvider-B2njZVNv.js +242 -0
- package/dist/DefaultPropsProvider-CZh8M2jM.js +351 -0
- package/dist/{Delete-BqqmGzYe.js → Delete-TCARcVtU.js} +1 -1
- package/dist/{DialogContent-D8jGp88c.js → DialogContent-DzidtXui.js} +202 -140
- package/dist/{DialogTitle-CxbjAJOw.js → DialogTitle-Bg61Hr7M.js} +23 -23
- package/dist/{Divider-D3PIEE97.js → Divider-Dy5hKfey.js} +31 -30
- package/dist/{ErrorOutline-CnwdlXPx.js → ErrorOutline-CI_ys3Zo.js} +1 -1
- package/dist/{FileDownload-BX69Jvdx.js → FileDownload-BcYF17B0.js} +1 -1
- package/dist/{FilledInput-n9W_V8GV.js → FilledInput-DrGeWgue.js} +352 -335
- package/dist/{FormControl-Cc-02KHW.js → FormControl-DeeQCuu5.js} +98 -81
- package/dist/{FormControlLabel-BEN9P8rJ.js → FormControlLabel-DVnrJkC8.js} +194 -165
- package/dist/GlobalStyles-DhHHc9O0.js +59 -0
- package/dist/Grid-BXyV_lM8.js +410 -0
- package/dist/Grow-B2p7O_1C.js +196 -0
- package/dist/{ownerDocument-C0GI-r2b.js → HTMLElementType-BrQSV2FE.js} +6 -6
- package/dist/IconButton-eWRhV6Q9.js +295 -0
- package/dist/{Info-83BXSu73.js → Info-D2UkGxyK.js} +1 -1
- package/dist/{InputAdornment-Ck_-Z38v.js → InputAdornment-BKuUMfPj.js} +14 -12
- package/dist/{Link-BqusVoz5.js → Link-Cm4BkRHO.js} +50 -49
- package/dist/{ListItemIcon-DIz-ZmJ0.js → ListItemIcon-GKRFb1Gr.js} +14 -13
- package/dist/{MenuItem-BkJ_C9Xs.js → MenuItem-CeCt0bfa.js} +46 -39
- package/dist/{Modal-CQcBtr07.js → Modal-csf3Y8d2.js} +265 -269
- package/dist/{Paper-B5pcGZbI.js → Paper-CnStNE24.js} +39 -38
- package/dist/{PlayArrow-1Y66tCVx.js → PlayArrow-DRCGjsrx.js} +1 -1
- package/dist/{Popper-CYsd-3n5.js → Popper-pPBEFLi4.js} +15 -15
- package/dist/{Portal-Bw0-5YJ9.js → Portal-CLa9CbMv.js} +36 -37
- package/dist/{RadioGroup-DtQqYrwU.js → RadioGroup-KiyYjXaT.js} +29 -28
- package/dist/{Select-DpKw-a6h.js → Select-Chubcks_.js} +1248 -933
- package/dist/{Slide-CdNJY-CT.js → Slide-DHG0r2gy.js} +68 -66
- package/dist/{Stack-C4POCZZb.js → Stack-CcR5RCg8.js} +41 -43
- package/dist/SwitchBase-CHO5ZceN.js +317 -0
- package/dist/{TextField-Cm9apaOp.js → TextField-q_SeLeNd.js} +144 -135
- package/dist/TransitionGroupContext-CYRQkQ6k.js +49 -0
- package/dist/{Typography-Ds4fpvK8.js → Typography-DBlMiOti.js} +39 -38
- package/dist/{auth-CR0412E5.js → auth-Bf9zHZ-x.js} +1 -1
- package/dist/{bank-iFS1RXp-.js → bank-BC4YNBRb.js} +3 -3
- package/dist/components/RocketRamp/MinimalKyc/form.js +9 -9
- package/dist/components/RocketRamp/MinimalKyc/index.js +1 -1
- package/dist/components/RocketRamp/Player/Buy/cardPayment.js +7 -7
- package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +7 -7
- package/dist/components/RocketRamp/Player/Buy/form.js +16 -16
- package/dist/components/RocketRamp/Player/Buy/index.js +6 -6
- package/dist/components/RocketRamp/Player/Dashboard/balance.js +7 -7
- package/dist/components/RocketRamp/Player/Dashboard/index.js +4 -4
- package/dist/components/RocketRamp/Player/Dashboard/transaction.js +4 -4
- package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +10 -10
- package/dist/components/RocketRamp/Player/Sell/form.js +16 -16
- package/dist/components/RocketRamp/Player/Sell/index.js +7 -7
- package/dist/components/RocketRamp/Player/SignIn/index.js +5 -5
- package/dist/components/RocketRamp/Player/SignIn/loginForm.js +5 -5
- package/dist/components/RocketRamp/Player/SignIn/otpForm.js +5 -5
- package/dist/components/RocketRamp/Player/SignUp/email.js +5 -5
- package/dist/components/RocketRamp/Player/SignUp/index.js +6 -6
- package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +9 -9
- package/dist/components/RocketRamp/Player/SignUp/summary.js +3 -3
- package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +3 -3
- package/dist/components/RocketRamp/ResetPassword/index.js +5 -5
- package/dist/components/RocketRamp/Shared/Button/index.js +2 -2
- package/dist/components/RocketRamp/Shared/Input/index.js +6 -6
- package/dist/components/RocketRamp/Shared/backBtn.js +3 -3
- package/dist/components/RocketRamp/Shared/transactionItem.js +5 -5
- package/dist/components/RocketRamp/Store/Dashboard/balance.js +6 -6
- package/dist/components/RocketRamp/Store/Dashboard/index.js +2 -2
- package/dist/components/RocketRamp/Store/Dashboard/stats.js +6 -6
- package/dist/components/RocketRamp/Store/Dashboard/transaction.js +4 -4
- package/dist/components/RocketRamp/Store/SignUp/index.js +6 -6
- package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +9 -9
- package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +7 -7
- package/dist/components/RocketRamp/Store/SignUp/summary.js +3 -3
- package/dist/components/RocketRamp/Store/SignUp/validateEmail.js +3 -3
- package/dist/components/RocketRamp/Transactions/index.js +4 -4
- package/dist/components/Shared/FullKyc/index.js +4 -4
- package/dist/components/Shared/FullKyc/pep.js +9 -9
- package/dist/components/Shared/FullKyc/personalDetails.js +7 -7
- package/dist/components/Shared/FullKyc/userInfo.js +11 -11
- package/dist/components/Shared/HistoryItem/index.js +7 -7
- package/dist/components/Shared/Incode/index.js +5 -5
- package/dist/components/Shared/MinimalKyc/index.js +8 -8
- package/dist/components/Shared/loader.js +2 -2
- package/dist/components/Shared/tooltip.js +2 -2
- package/dist/components/Shared/transition.js +1 -1
- package/dist/components/Wallet/Account/createIban.d.ts +1 -0
- package/dist/components/Wallet/Account/createIban.js +36 -35
- package/dist/components/Wallet/Account/iban.d.ts +1 -0
- package/dist/components/Wallet/Account/iban.js +16 -16
- package/dist/components/Wallet/Account/index.d.ts +1 -0
- package/dist/components/Wallet/Account/index.js +76 -70
- package/dist/components/Wallet/Account/sendIban.js +61 -61
- package/dist/components/Wallet/Buy/confirmTransaction.js +7 -7
- package/dist/components/Wallet/Buy/form.d.ts +2 -2
- package/dist/components/Wallet/Buy/form.js +17 -17
- package/dist/components/Wallet/Buy/index.js +6 -6
- package/dist/components/Wallet/Deposit/index.js +7 -7
- package/dist/components/Wallet/EnterpriseKyc/edd.js +7 -7
- package/dist/components/Wallet/EnterpriseKyc/index.js +26 -24
- package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +5 -5
- package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +3 -3
- package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +2 -2
- package/dist/components/Wallet/EnterpriseKyc/kycType.js +5 -5
- package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +45 -44
- package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +3626 -100
- package/dist/components/Wallet/EnterpriseKyc/success.js +2 -2
- package/dist/components/Wallet/EnterpriseKyc/types.d.ts +0 -1
- package/dist/components/Wallet/EnterpriseKyc/verify.js +5 -5
- package/dist/components/Wallet/History/index.js +61 -62
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +14 -14
- package/dist/components/Wallet/Portfolio/index.js +95 -95
- package/dist/components/Wallet/Portfolio/tokenRow.js +6 -6
- package/dist/components/Wallet/Profile/documents.js +17 -17
- package/dist/components/Wallet/Profile/index.js +225 -206
- package/dist/components/Wallet/Receive/index.js +9 -9
- package/dist/components/Wallet/Sell/confirmTransaction.js +7 -7
- package/dist/components/Wallet/Sell/form.js +17 -17
- package/dist/components/Wallet/Sell/index.js +6 -6
- package/dist/components/Wallet/Send/index.js +14 -14
- package/dist/components/Wallet/Shared/Auth/emailForm.js +3 -3
- package/dist/components/Wallet/Shared/Auth/otpForm.js +217 -10451
- package/dist/components/Wallet/Shared/CardPayment/index.js +57 -55
- package/dist/components/Wallet/Shared/ConnectWallet/index.js +9 -9
- package/dist/components/Wallet/Shared/Container/index.js +3 -3
- package/dist/components/Wallet/Shared/Input/index.js +1 -1
- package/dist/components/Wallet/Shared/Keyboard/keyboard.js +9 -10
- package/dist/components/Wallet/Shared/Order/types.d.ts +23 -2
- package/dist/components/Wallet/Shared/TokenModal/index.js +11 -11
- package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +4 -4
- package/dist/components/Wallet/Shared/addBank.js +11 -11
- package/dist/components/Wallet/Shared/appButton.js +5 -5
- package/dist/components/Wallet/Shared/backBtn.js +8 -8
- package/dist/components/Wallet/Shared/button.js +1 -1
- package/dist/components/Wallet/Shared/connectPlaidBank.js +5 -5
- package/dist/components/Wallet/Shared/inputField.js +1 -1
- package/dist/components/Wallet/Shared/noData.js +2 -2
- package/dist/components/Wallet/Shared/pin.js +3 -3
- package/dist/components/Wallet/Shared/radioButton.js +3 -3
- package/dist/components/Wallet/Shared/step.js +2 -2
- package/dist/components/Wallet/SignIn/index.js +2 -2
- package/dist/components/Wallet/SignUp/index.js +2 -2
- package/dist/components/Wallet/SignUp/terms.js +4 -4
- package/dist/components/Wallet/Stake/gems/index.js +11 -11
- package/dist/components/Wallet/Stake/id/index.js +12 -12
- package/dist/components/Wallet/Stake/index.js +10 -10
- package/dist/components/Wallet/Swap/index.js +138 -150
- package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -3
- package/dist/components/Wallet/Withdraw/bankSelect.js +10 -10
- package/dist/components/Wallet/Withdraw/confirmTransaction.js +7 -7
- package/dist/components/Wallet/Withdraw/form.d.ts +2 -2
- package/dist/components/Wallet/Withdraw/form.js +16 -16
- package/dist/components/Wallet/Withdraw/index.js +5 -5
- package/dist/{constants-BJByDTQY.js → constants-CsMPRK0U.js} +285 -284
- package/dist/{createSvgIcon-C0wzKL72.js → createSvgIcon-CH41ZVFw.js} +58 -57
- package/dist/createTheme-DmGCMO09.js +3825 -0
- package/dist/{cryptoAssets-BcVSdM1C.js → cryptoAssets-CzNDY1j6.js} +1 -1
- package/dist/defaultTheme-9fAph5zo.js +5 -0
- package/dist/{dividerClasses-Cb_Is0-O.js → dividerClasses-DnbM--4s.js} +2 -2
- package/dist/{documents-HjBKq9qA.js → documents-CEeV8SyW.js} +16 -16
- package/dist/{Transition-CYSgg85A.js → elementAcceptingRef-BbsmdE_3.js} +109 -66
- package/dist/{elementTypeAcceptingRef-Bc1kRXA9.js → elementTypeAcceptingRef-CdmXUhJ8.js} +1 -1
- package/dist/{emotion-react.browser.esm-BjxI_t8k.js → emotion-react.browser.esm-C2mxoK1z.js} +42 -42
- package/dist/{extendSxProp-a8ZTL0ZI.js → extendSxProp-Bwha5fon.js} +1 -1
- package/dist/{fiatAssets-C_F8qNzr.js → fiatAssets-DVHfFafS.js} +1 -1
- package/dist/hoc/withThemeProvider.js +518 -417
- package/dist/hooks/useDialog/index.js +4 -4
- package/dist/hooks/useRrDialog/index.js +4 -4
- package/dist/hooks/useSnackBar.js +363 -288
- package/dist/{iban-Dh7qBGGc.js → iban-DRT7i0vb.js} +74 -85
- 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 +1 -1
- package/dist/icons/failedRedeemIcon.js +1 -1
- package/dist/icons/pendingBuyIcon.js +1 -1
- package/dist/icons/pendingRedeemIcon.js +1 -1
- package/dist/icons/redeemIcon.js +1 -1
- package/dist/index-BB3__zW3.js +644 -0
- package/dist/index-C86AoaoB.js +43 -0
- package/dist/{index-BFIhKqqi.js → index-C9uGghB8.js} +141 -133
- package/dist/{index-DkMQ44xy.js → index-DZ__IpVI.js} +19 -19
- package/dist/{index-B2OIoTNN.js → index-DxX5Mo0o.js} +18 -18
- package/dist/{index-CQe8cwpc.js → index-VE9lYjq3.js} +22 -22
- package/dist/index-eEYiDlpX.js +723 -0
- package/dist/{index-CtkDfW5M.js → index-x9CniyQB.js} +1 -1
- package/dist/{kyc-DJpiKj5d.js → kyc-BweeW6k9.js} +1 -1
- package/dist/main.js +6 -6
- package/dist/{order-DhUA-ZNX.js → order-DmTHC7ZG.js} +7 -7
- package/dist/{ownerWindow-iFlVse9X.js → ownerWindow-CRgpWY6I.js} +1 -1
- package/dist/pep-C5Ge-kU4.js +2691 -0
- package/dist/{radioButton-CdYLf2fc.js → radioButton-Bgy7Kxxo.js} +172 -121
- package/dist/refType-CaiGhRso.js +56 -0
- package/dist/{stake-DWRuAE1u.js → stake-B150utJI.js} +1 -1
- package/dist/tokenRow-BR8f4g7G.js +198 -0
- package/dist/{tooltip-CwdohO6q.js → tooltip-DGtrVEzU.js} +258 -235
- package/dist/useControlled-nm4pBabJ.js +31 -0
- package/dist/useEnhancedEffect-CJGo-L3B.js +5 -0
- package/dist/useSlot-DtSnboW7.js +125 -0
- package/dist/useSlotProps-D62tWbb1.js +25 -0
- package/dist/useTheme-Bfw5Gt1b.js +17 -0
- package/dist/{useTheme-BzIjfC6u.js → useTheme-XTDzJ69d.js} +3 -3
- package/dist/useThemeProps-lRuJRcRX.js +29 -0
- package/dist/util/constants.d.ts +1 -3
- package/dist/util/constants.js +27 -29
- package/dist/wallet-DDW5KCHp.js +39 -0
- package/package.json +7 -6
- package/dist/Button-DCBtFwk3.js +0 -452
- package/dist/DefaultPropsProvider-5cxFAZuq.js +0 -647
- package/dist/DefaultPropsProvider-DOLtk4kZ.js +0 -88
- package/dist/GlobalStyles-O5U8h5ZQ.js +0 -23
- package/dist/Grid-BaaKMDwM.js +0 -501
- package/dist/Grid2-DX2sucnU.js +0 -374
- package/dist/Grow-CC3Va50c.js +0 -216
- package/dist/IconButton-8B2ygvr4.js +0 -238
- package/dist/SwitchBase-B9rcpVZ0.js +0 -261
- package/dist/TransitionGroupContext-BzyZRJGo.js +0 -37
- package/dist/createTheme-D_EHVLXp.js +0 -3662
- package/dist/defaultTheme-CGLnLLk_.js +0 -5
- package/dist/index-BEH1PkNC.js +0 -572
- package/dist/index-DSZxScyY.js +0 -704
- package/dist/index-DlZLKtdr.js +0 -72
- package/dist/pep-BsWvrgyM.js +0 -2600
- package/dist/resolveComponentProps-CPnCrKvI.js +0 -80
- package/dist/styled-CyBKg0N-.js +0 -5
- package/dist/tokenRow-QlGBYRKR.js +0 -206
- package/dist/useControlled-BYdyS7Pn.js +0 -31
- package/dist/useSlot-BdP6R4tz.js +0 -50
- package/dist/useTheme-BFI_g9FY.js +0 -9
- package/dist/useThemeProps-BOrAzOS4.js +0 -40
- package/dist/useThemeWithoutDefault-BWt80cCE.js +0 -12
- package/dist/useTimeout-_ag1gI7y.js +0 -56
- package/dist/utils-B-vKE_Dv.js +0 -50
- package/dist/utils-asicApOI.js +0 -21
- package/dist/wallet-z7NHqtCj.js +0 -35
package/dist/index-DSZxScyY.js
DELETED
|
@@ -1,704 +0,0 @@
|
|
|
1
|
-
import { jsxs as a, Fragment as P, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useState as c, useEffect as x } from "react";
|
|
3
|
-
import Ge from "./hoc/withThemeProvider.js";
|
|
4
|
-
import { P as He } from "./PlayArrow-1Y66tCVx.js";
|
|
5
|
-
import { I as Xe } from "./Info-83BXSu73.js";
|
|
6
|
-
import { G as ve } from "./generic-token-B_ptO5yb.js";
|
|
7
|
-
import { PAYMENT_PROVIDER_PAYSAFE as Je, ID_TOKEN_SYMBOL as Ce, FIAT_TO_EVER_ID as te, FIAT_TO_TOKEN as ne, ESTIMATE_TOOLTIP_TEXT as Qe, VISA_PAYMENT as Ze, VISA_PAYMENT_ACTIVE as et, SEPA_PAYMENT as tt, SEPA_PAYMENT_ACTIVE as nt, PAYMENT_BANK as Ee, SEPA_ICON as rt, VISA_ICON as it } from "./util/constants.js";
|
|
8
|
-
import { a9 as S } from "./constants-BJByDTQY.js";
|
|
9
|
-
import { u as ot } from "./index-f15o1nhn.js";
|
|
10
|
-
import { b as at, c as ke, d as st, a as Ae, o as lt, g as ct } from "./order-DhUA-ZNX.js";
|
|
11
|
-
import { M as mt } from "./tooltip-CwdohO6q.js";
|
|
12
|
-
import { getCurrencySymbol as Pe, getNetworkBackGround as dt } from "./util/functions.js";
|
|
13
|
-
import ie from "./components/Wallet/Shared/appButton.js";
|
|
14
|
-
import ut from "./components/Wallet/Shared/backBtn.js";
|
|
15
|
-
import { s as m } from "./styles.module-BFHktEw2.js";
|
|
16
|
-
import { T as s } from "./Typography-Ds4fpvK8.js";
|
|
17
|
-
import { B as b } from "./Box-Be0E_-eR.js";
|
|
18
|
-
import { G as i } from "./Grid2-DX2sucnU.js";
|
|
19
|
-
import { C as I } from "./CircularProgress-fePUtoaj.js";
|
|
20
|
-
import { u as G, a as pt } from "./react-redux-C7I9-1M6.js";
|
|
21
|
-
import { f as ft } from "./fiatAssets-C_F8qNzr.js";
|
|
22
|
-
import { f as ht } from "./cryptoAssets-BcVSdM1C.js";
|
|
23
|
-
import { u as yt } from "./wallet-z7NHqtCj.js";
|
|
24
|
-
import { useSnackBarContext as xt } from "./context/snackBarContext.js";
|
|
25
|
-
import { AuthContainer as _t } from "./components/Wallet/Shared/Container/index.js";
|
|
26
|
-
import gt from "./components/Wallet/Shared/CardPayment/index.js";
|
|
27
|
-
import Nt from "./components/Shared/MinimalKyc/index.js";
|
|
28
|
-
import bt from "./components/Wallet/Shared/Input/index.js";
|
|
29
|
-
import vt from "./components/Wallet/Shared/TokenModal/index.js";
|
|
30
|
-
import { F as D } from "./FormControl-Cc-02KHW.js";
|
|
31
|
-
import { F as J } from "./FilledInput-n9W_V8GV.js";
|
|
32
|
-
import { F as Ie, I as Fe } from "./TextField-Cm9apaOp.js";
|
|
33
|
-
import { S as ee } from "./Select-DpKw-a6h.js";
|
|
34
|
-
import { M as Q } from "./MenuItem-BkJ_C9Xs.js";
|
|
35
|
-
import { L as Me } from "./ListItemIcon-DIz-ZmJ0.js";
|
|
36
|
-
import { I as Te } from "./IconButton-8B2ygvr4.js";
|
|
37
|
-
const Ct = ({
|
|
38
|
-
setScreen: F,
|
|
39
|
-
orderData: h,
|
|
40
|
-
dispatch: M,
|
|
41
|
-
fiatAssets: _,
|
|
42
|
-
cryptoAssets: d,
|
|
43
|
-
getCryptoAssets: n,
|
|
44
|
-
showAlertMessage: p,
|
|
45
|
-
partnerKey: $,
|
|
46
|
-
walletAddress: v,
|
|
47
|
-
setWalletAddress: R
|
|
48
|
-
}) => {
|
|
49
|
-
var ge, Ne;
|
|
50
|
-
const z = G(ot), L = z.data, { loader: C } = z, g = _.fiats, H = _.loader, q = d.featureTokens.buy.list, K = d.featureTokens.buy.default, u = d.loader, T = h.loader, f = h.estimate[S], O = f.crypto_out_amount, Re = f.conversion_price, ze = f.total_fee;
|
|
51
|
-
let oe = 0, ae = 0;
|
|
52
|
-
const se = f.fee_breakdown;
|
|
53
|
-
for (let t = 0; t < se.length; t++) {
|
|
54
|
-
const r = se[t];
|
|
55
|
-
r.name === "ev_fee" ? oe = Number(r.value) : r.name === "network_fee" && (ae = Number(r.value));
|
|
56
|
-
}
|
|
57
|
-
const [l, le] = c({
|
|
58
|
-
symbol: ""
|
|
59
|
-
}), [Z, U] = c(!1), [k, ce] = c(0), [N, Oe] = c(1), [me, we] = c([]), [w, We] = c([]), [de, Be] = c(!1), [ue, Ye] = c(50), [pe, $e] = c(3e3), [V, Le] = c(50), [fe, qe] = c(3e3), [he, j] = c(""), [W, ye] = c(
|
|
60
|
-
f.fiat_amount || V.toString()
|
|
61
|
-
), [Ke, xe] = c(!1), B = g.find((t) => t.id === N), E = Pe(B == null ? void 0 : B.symbol);
|
|
62
|
-
x(() => {
|
|
63
|
-
const t = [];
|
|
64
|
-
for (let r = 0; r < g.length; r++) {
|
|
65
|
-
const o = {}, y = g[r];
|
|
66
|
-
o.id = y.id, o.name = y.name, o.icon_uri = y.icon_uri, o.symbol = y.symbol, o.payment_options = [];
|
|
67
|
-
const A = y.payment_options;
|
|
68
|
-
for (let Y = 0; Y < A.length; Y++) {
|
|
69
|
-
const be = {}, X = A[Y];
|
|
70
|
-
X.payment_provider !== Je && X.active && X.payin_allowed && (Object.assign(be, X), o.payment_options.push(be));
|
|
71
|
-
}
|
|
72
|
-
o.payment_options.length > 0 && t.push(o);
|
|
73
|
-
}
|
|
74
|
-
We(t);
|
|
75
|
-
}, [g]), x(() => {
|
|
76
|
-
if (!N || w.length === 0)
|
|
77
|
-
return;
|
|
78
|
-
const t = [];
|
|
79
|
-
for (let r = 0; r < w.length; r++) {
|
|
80
|
-
if (w[r].id === N) {
|
|
81
|
-
const o = w[r].payment_options;
|
|
82
|
-
let y = !1;
|
|
83
|
-
for (let A = 0; A < o.length; A++) {
|
|
84
|
-
const Y = o[A];
|
|
85
|
-
Y.active && (t.push(Y), o[A].id === k && (y = !0));
|
|
86
|
-
}
|
|
87
|
-
y || ce(t[0].id);
|
|
88
|
-
}
|
|
89
|
-
we(t);
|
|
90
|
-
}
|
|
91
|
-
}, [N, w]), x(() => {
|
|
92
|
-
K && K.id && le(K);
|
|
93
|
-
}, [K]), x(() => {
|
|
94
|
-
N && n && n(N);
|
|
95
|
-
}, [N, v]), x(() => {
|
|
96
|
-
if (l && l.id && W && k && N) {
|
|
97
|
-
M(at(S)), U(!1), j("");
|
|
98
|
-
const t = setTimeout(() => {
|
|
99
|
-
Ue();
|
|
100
|
-
}, 1e3);
|
|
101
|
-
return () => clearTimeout(t);
|
|
102
|
-
}
|
|
103
|
-
}, [l, W, k, q, N]);
|
|
104
|
-
const Ue = () => {
|
|
105
|
-
var y;
|
|
106
|
-
const t = parseFloat(W);
|
|
107
|
-
if (l.symbol === Ce) {
|
|
108
|
-
if (ue > t)
|
|
109
|
-
return j(
|
|
110
|
-
`Minimum value should be greater than ${E + ue}`
|
|
111
|
-
), U(!0), !1;
|
|
112
|
-
if (pe * 1 < t)
|
|
113
|
-
return j(
|
|
114
|
-
`Maximum value should be less than ${E + pe}`
|
|
115
|
-
), U(!0), !1;
|
|
116
|
-
} else {
|
|
117
|
-
if (V * 1 > t)
|
|
118
|
-
return j(
|
|
119
|
-
`Minimum value should be greater than ${E + V}`
|
|
120
|
-
), U(!0), !1;
|
|
121
|
-
if (fe * 1 < t)
|
|
122
|
-
return j(
|
|
123
|
-
`Maximum value should be less than ${E + fe}`
|
|
124
|
-
), U(!0), !1;
|
|
125
|
-
}
|
|
126
|
-
const r = me.find((A) => A.id === k), o = r.payment_type;
|
|
127
|
-
M(
|
|
128
|
-
ke(
|
|
129
|
-
{
|
|
130
|
-
apiKey: $,
|
|
131
|
-
transaction_type: l.symbol === Ce ? te : ne,
|
|
132
|
-
coin_amount: W,
|
|
133
|
-
exchange: l.exchange,
|
|
134
|
-
payment_type: o,
|
|
135
|
-
fiat_ccy: B == null ? void 0 : B.symbol,
|
|
136
|
-
crypto_ccy: l.symbol,
|
|
137
|
-
network: (y = l.network) == null ? void 0 : y.name,
|
|
138
|
-
payment_provider: r.payment_provider
|
|
139
|
-
},
|
|
140
|
-
S
|
|
141
|
-
)
|
|
142
|
-
);
|
|
143
|
-
}, Ve = ({ value: t, label: r }) => {
|
|
144
|
-
let o;
|
|
145
|
-
if (r === "credit_debit_card" ? (o = Ze, k === t && (o = et)) : (o = tt, k === t && (o = nt)), r)
|
|
146
|
-
return /* @__PURE__ */ e(
|
|
147
|
-
b,
|
|
148
|
-
{
|
|
149
|
-
mt: 0.5,
|
|
150
|
-
sx: { cursor: "pointer" },
|
|
151
|
-
onClick: () => ce(t * 1),
|
|
152
|
-
children: /* @__PURE__ */ e("img", { src: o, alt: "payment", width: "90%" })
|
|
153
|
-
}
|
|
154
|
-
);
|
|
155
|
-
};
|
|
156
|
-
x(() => {
|
|
157
|
-
const t = h.types.length;
|
|
158
|
-
if (t > 0)
|
|
159
|
-
for (let r = 0; r < t; r++) {
|
|
160
|
-
const o = h.types[r];
|
|
161
|
-
if (o.type === te) {
|
|
162
|
-
Ye(parseFloat(o.min_deposit_amount)), $e(parseFloat(o.max_deposit_amount));
|
|
163
|
-
break;
|
|
164
|
-
}
|
|
165
|
-
if (o.type === ne) {
|
|
166
|
-
Le(parseFloat(o.min_deposit_amount)), qe(parseFloat(o.max_deposit_amount));
|
|
167
|
-
break;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}, [h.types]);
|
|
171
|
-
const je = (t) => {
|
|
172
|
-
const r = t.target.value;
|
|
173
|
-
r ? /^([0-9.]+)$/.test(r) && ye(r) : ye("");
|
|
174
|
-
}, _e = (t) => {
|
|
175
|
-
const r = q.find((o) => o.symbol === t);
|
|
176
|
-
le(r);
|
|
177
|
-
}, De = () => {
|
|
178
|
-
if (!l.id)
|
|
179
|
-
return p({ message: "Please select token" }), !1;
|
|
180
|
-
if (!k)
|
|
181
|
-
return p({ message: "Please select payment method" }), !1;
|
|
182
|
-
if (!W)
|
|
183
|
-
return p({ message: "Please enter amount" }), !1;
|
|
184
|
-
if (!v)
|
|
185
|
-
return p({ message: "Please select wallet address" }), !1;
|
|
186
|
-
if (!O)
|
|
187
|
-
return p({
|
|
188
|
-
message: "Please wait for the estimate to be calculated and then press next"
|
|
189
|
-
}), !1;
|
|
190
|
-
F(re);
|
|
191
|
-
};
|
|
192
|
-
return /* @__PURE__ */ a(P, { children: [
|
|
193
|
-
/* @__PURE__ */ e(i, { container: !0, children: /* @__PURE__ */ e(i, { size: { xs: 6 }, children: /* @__PURE__ */ e(s, { className: m.label, variant: "caption", component: "p", children: "You Pay" }) }) }),
|
|
194
|
-
/* @__PURE__ */ a(i, { mt: 0.5, spacing: 0, container: !0, children: [
|
|
195
|
-
/* @__PURE__ */ e(i, { size: { xs: 6 }, children: /* @__PURE__ */ a(
|
|
196
|
-
D,
|
|
197
|
-
{
|
|
198
|
-
variant: "filled",
|
|
199
|
-
className: `${m.amount} ${m["fiat-field"]}`,
|
|
200
|
-
fullWidth: !0,
|
|
201
|
-
children: [
|
|
202
|
-
/* @__PURE__ */ e(
|
|
203
|
-
J,
|
|
204
|
-
{
|
|
205
|
-
value: W,
|
|
206
|
-
onChange: je,
|
|
207
|
-
type: "text",
|
|
208
|
-
placeholder: `${V > 0 ? "$" + V + " minimum value" : ""}`,
|
|
209
|
-
error: Z,
|
|
210
|
-
disableUnderline: !0,
|
|
211
|
-
required: !0,
|
|
212
|
-
fullWidth: !0
|
|
213
|
-
}
|
|
214
|
-
),
|
|
215
|
-
/* @__PURE__ */ e(Ie, { className: m["amount-symbol"], children: " " })
|
|
216
|
-
]
|
|
217
|
-
}
|
|
218
|
-
) }),
|
|
219
|
-
/* @__PURE__ */ e(i, { size: { xs: 6 }, className: "content-center", children: H ? /* @__PURE__ */ e(
|
|
220
|
-
I,
|
|
221
|
-
{
|
|
222
|
-
sx: { ml: 1 },
|
|
223
|
-
size: 30
|
|
224
|
-
}
|
|
225
|
-
) : /* @__PURE__ */ e(
|
|
226
|
-
D,
|
|
227
|
-
{
|
|
228
|
-
variant: "filled",
|
|
229
|
-
className: `text-left ${m["fiat-picker"]}`,
|
|
230
|
-
fullWidth: !0,
|
|
231
|
-
children: /* @__PURE__ */ e(
|
|
232
|
-
ee,
|
|
233
|
-
{
|
|
234
|
-
input: /* @__PURE__ */ e(J, { disableUnderline: !0 }),
|
|
235
|
-
sx: {
|
|
236
|
-
borderTopLeftRadius: 0,
|
|
237
|
-
"&::before": {
|
|
238
|
-
borderBottom: "none"
|
|
239
|
-
},
|
|
240
|
-
".MuiSelect-select": {
|
|
241
|
-
fontSize: "21px",
|
|
242
|
-
fontWeight: "bold",
|
|
243
|
-
color: "#16359d",
|
|
244
|
-
padding: "27px 12px 10px !important"
|
|
245
|
-
},
|
|
246
|
-
".dropdown-list-item, span": {
|
|
247
|
-
position: "relative",
|
|
248
|
-
bottom: "5px"
|
|
249
|
-
},
|
|
250
|
-
".MuiSvgIcon-root": {
|
|
251
|
-
fill: "#16359D !important"
|
|
252
|
-
}
|
|
253
|
-
},
|
|
254
|
-
value: N,
|
|
255
|
-
variant: "filled",
|
|
256
|
-
displayEmpty: !0,
|
|
257
|
-
onChange: (t) => Oe(t.target.value),
|
|
258
|
-
error: Z,
|
|
259
|
-
children: w.map((t) => /* @__PURE__ */ a(Q, { value: t.id, children: [
|
|
260
|
-
/* @__PURE__ */ e(Me, { className: m["dropdown-list-item"], children: /* @__PURE__ */ e(
|
|
261
|
-
"img",
|
|
262
|
-
{
|
|
263
|
-
src: t.icon_uri,
|
|
264
|
-
onError: ({ currentTarget: r }) => {
|
|
265
|
-
r.onerror = null, r.src = ve;
|
|
266
|
-
},
|
|
267
|
-
alt: "tokenImg",
|
|
268
|
-
width: "40",
|
|
269
|
-
height: "40"
|
|
270
|
-
}
|
|
271
|
-
) }),
|
|
272
|
-
/* @__PURE__ */ e("span", { children: t.symbol })
|
|
273
|
-
] }, t.id))
|
|
274
|
-
}
|
|
275
|
-
)
|
|
276
|
-
}
|
|
277
|
-
) }),
|
|
278
|
-
he && /* @__PURE__ */ e(s, { variant: "caption", sx: { color: "red" }, children: /* @__PURE__ */ e("strong", { children: he }) })
|
|
279
|
-
] }),
|
|
280
|
-
/* @__PURE__ */ a(b, { className: "text-left", mt: 3, children: [
|
|
281
|
-
/* @__PURE__ */ e(s, { variant: "sm", fontWeight: 600, children: "Select Payment Method" }),
|
|
282
|
-
H ? /* @__PURE__ */ e(I, { sx: { ml: 1, mt: 3 }, size: 50 }) : /* @__PURE__ */ e(i, { mt: 0.5, container: !0, children: me.map((t) => /* @__PURE__ */ e(i, { size: { xs: 2.5 }, children: /* @__PURE__ */ e(
|
|
283
|
-
Ve,
|
|
284
|
-
{
|
|
285
|
-
label: t.payment_type,
|
|
286
|
-
value: t.id
|
|
287
|
-
}
|
|
288
|
-
) }, t.id)) })
|
|
289
|
-
] }),
|
|
290
|
-
/* @__PURE__ */ e(i, { mt: 4, container: !0, children: /* @__PURE__ */ e(i, { size: { xs: 4 }, children: /* @__PURE__ */ e(s, { className: m.label, variant: "caption", component: "p", children: "You Receive" }) }) }),
|
|
291
|
-
/* @__PURE__ */ a(i, { mt: 0.5, container: !0, children: [
|
|
292
|
-
/* @__PURE__ */ e(i, { size: { xs: 6 }, children: /* @__PURE__ */ a(
|
|
293
|
-
D,
|
|
294
|
-
{
|
|
295
|
-
className: `${m.amount} ${m["fiat-field"]}`,
|
|
296
|
-
fullWidth: !0,
|
|
297
|
-
children: [
|
|
298
|
-
/* @__PURE__ */ e(
|
|
299
|
-
J,
|
|
300
|
-
{
|
|
301
|
-
disableUnderline: !0,
|
|
302
|
-
value: O && parseFloat((+O * 1).toFixed(5)),
|
|
303
|
-
type: "text",
|
|
304
|
-
readOnly: !0,
|
|
305
|
-
fullWidth: !0
|
|
306
|
-
}
|
|
307
|
-
),
|
|
308
|
-
/* @__PURE__ */ e(Ie, { className: m["amount-symbol"], children: +((ge = f == null ? void 0 : f.output_token) == null ? void 0 : ge.fiat_amount) * 1 > 0 ? E + (+((Ne = f == null ? void 0 : f.output_token) == null ? void 0 : Ne.fiat_amount) * 1).toFixed(2) : /* @__PURE__ */ e(P, { children: " " }) })
|
|
309
|
-
]
|
|
310
|
-
}
|
|
311
|
-
) }),
|
|
312
|
-
/* @__PURE__ */ e(i, { size: { xs: 6 }, className: "content-center", children: u ? /* @__PURE__ */ e(I, { sx: { ml: 1 }, size: 30 }) : /* @__PURE__ */ a(
|
|
313
|
-
D,
|
|
314
|
-
{
|
|
315
|
-
variant: "filled",
|
|
316
|
-
className: `text-left ${m["crypto-picker"]}`,
|
|
317
|
-
fullWidth: !0,
|
|
318
|
-
children: [
|
|
319
|
-
(l == null ? void 0 : l.network) && /* @__PURE__ */ e(
|
|
320
|
-
Fe,
|
|
321
|
-
{
|
|
322
|
-
className: `${m["network-label"]} ${m[dt(l == null ? void 0 : l.network.name)]}`,
|
|
323
|
-
children: l == null ? void 0 : l.network.name
|
|
324
|
-
}
|
|
325
|
-
),
|
|
326
|
-
/* @__PURE__ */ a(
|
|
327
|
-
ee,
|
|
328
|
-
{
|
|
329
|
-
input: /* @__PURE__ */ e(J, { disableUnderline: !0 }),
|
|
330
|
-
sx: {
|
|
331
|
-
borderTopLeftRadius: 0,
|
|
332
|
-
"&::before": {
|
|
333
|
-
borderBottom: "none"
|
|
334
|
-
},
|
|
335
|
-
".MuiSelect-select": {
|
|
336
|
-
fontSize: "21px",
|
|
337
|
-
fontWeight: "bold",
|
|
338
|
-
color: "#16359d",
|
|
339
|
-
padding: "27px 12px 10px !important"
|
|
340
|
-
},
|
|
341
|
-
".dropdown-list-item, span": {
|
|
342
|
-
position: "relative",
|
|
343
|
-
bottom: "5px"
|
|
344
|
-
},
|
|
345
|
-
".MuiSvgIcon-root": {
|
|
346
|
-
fill: "#16359D !important"
|
|
347
|
-
}
|
|
348
|
-
},
|
|
349
|
-
className: "buy-select-dd",
|
|
350
|
-
variant: "filled",
|
|
351
|
-
value: l.symbol,
|
|
352
|
-
displayEmpty: !0,
|
|
353
|
-
onChange: (t) => _e(t.target.value),
|
|
354
|
-
onOpen: (t) => {
|
|
355
|
-
xe(!0), t.preventDefault();
|
|
356
|
-
},
|
|
357
|
-
defaultOpen: !1,
|
|
358
|
-
open: !1,
|
|
359
|
-
children: [
|
|
360
|
-
/* @__PURE__ */ e(Q, { value: "", children: "Please select" }),
|
|
361
|
-
q.map((t) => /* @__PURE__ */ a(Q, { value: t.symbol, children: [
|
|
362
|
-
/* @__PURE__ */ e(Me, { className: m["dropdown-list-item"], children: /* @__PURE__ */ e(
|
|
363
|
-
"img",
|
|
364
|
-
{
|
|
365
|
-
src: t.icon_uri,
|
|
366
|
-
onError: ({ currentTarget: r }) => {
|
|
367
|
-
r.onerror = null, r.src = ve;
|
|
368
|
-
},
|
|
369
|
-
alt: "tokenImg",
|
|
370
|
-
width: "40",
|
|
371
|
-
height: "40"
|
|
372
|
-
}
|
|
373
|
-
) }),
|
|
374
|
-
/* @__PURE__ */ e("span", { children: t.symbol })
|
|
375
|
-
] }, t.id))
|
|
376
|
-
]
|
|
377
|
-
}
|
|
378
|
-
)
|
|
379
|
-
]
|
|
380
|
-
}
|
|
381
|
-
) })
|
|
382
|
-
] }),
|
|
383
|
-
/* @__PURE__ */ e(b, { mt: 3, sx: { color: "#1A202C" }, children: /* @__PURE__ */ a(i, { container: !0, children: [
|
|
384
|
-
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 12 }, children: /* @__PURE__ */ a(
|
|
385
|
-
Te,
|
|
386
|
-
{
|
|
387
|
-
sx: { padding: "0" },
|
|
388
|
-
onClick: () => Be((t) => !t),
|
|
389
|
-
disableFocusRipple: !0,
|
|
390
|
-
disableRipple: !0,
|
|
391
|
-
children: [
|
|
392
|
-
/* @__PURE__ */ e(s, { variant: "caption", fontWeight: 500, children: "Fee Calculation" }),
|
|
393
|
-
/* @__PURE__ */ e(
|
|
394
|
-
He,
|
|
395
|
-
{
|
|
396
|
-
sx: {
|
|
397
|
-
transform: `rotate(${de ? "90" : "0"}deg)`,
|
|
398
|
-
fontSize: "15px"
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
)
|
|
402
|
-
]
|
|
403
|
-
}
|
|
404
|
-
) }),
|
|
405
|
-
de && /* @__PURE__ */ a(P, { children: [
|
|
406
|
-
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Everest Fee" }) }),
|
|
407
|
-
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
408
|
-
E,
|
|
409
|
-
T ? /* @__PURE__ */ e(I, { size: 30, color: "primary" }) : oe.toFixed(2)
|
|
410
|
-
] }) }),
|
|
411
|
-
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Network Fee" }) }),
|
|
412
|
-
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
413
|
-
E,
|
|
414
|
-
T ? /* @__PURE__ */ e(
|
|
415
|
-
I,
|
|
416
|
-
{
|
|
417
|
-
sx: { ml: 1 },
|
|
418
|
-
size: 15,
|
|
419
|
-
color: "primary"
|
|
420
|
-
}
|
|
421
|
-
) : ae.toFixed(2)
|
|
422
|
-
] }) })
|
|
423
|
-
] }),
|
|
424
|
-
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Total Fees" }) }),
|
|
425
|
-
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
426
|
-
E,
|
|
427
|
-
T ? /* @__PURE__ */ e(I, { sx: { ml: 1 }, size: 15, color: "primary" }) : Number(ze).toFixed(2)
|
|
428
|
-
] }) }),
|
|
429
|
-
l && /* @__PURE__ */ a(P, { children: [
|
|
430
|
-
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
431
|
-
"1 ",
|
|
432
|
-
l.symbol,
|
|
433
|
-
" ",
|
|
434
|
-
/* @__PURE__ */ e(
|
|
435
|
-
mt,
|
|
436
|
-
{
|
|
437
|
-
title: Qe,
|
|
438
|
-
placement: "right",
|
|
439
|
-
children: /* @__PURE__ */ e(Te, { className: "info-fee-icon", children: /* @__PURE__ */ e(
|
|
440
|
-
Xe,
|
|
441
|
-
{
|
|
442
|
-
sx: {
|
|
443
|
-
fontSize: "14px"
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
) })
|
|
447
|
-
}
|
|
448
|
-
)
|
|
449
|
-
] }) }),
|
|
450
|
-
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
451
|
-
E,
|
|
452
|
-
T ? /* @__PURE__ */ e(
|
|
453
|
-
I,
|
|
454
|
-
{
|
|
455
|
-
sx: { ml: 1 },
|
|
456
|
-
size: 15,
|
|
457
|
-
color: "primary"
|
|
458
|
-
}
|
|
459
|
-
) : Number(Re).toFixed(2)
|
|
460
|
-
] }) })
|
|
461
|
-
] })
|
|
462
|
-
] }) }),
|
|
463
|
-
/* @__PURE__ */ e(b, { sx: { alignItems: "left", width: "100%" }, children: C ? /* @__PURE__ */ e(b, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(I, {}) }) : /* @__PURE__ */ e(P, { children: /* @__PURE__ */ a(D, { variant: "filled", fullWidth: !0, children: [
|
|
464
|
-
!v && /* @__PURE__ */ e(Fe, { children: "Select wallet address" }),
|
|
465
|
-
/* @__PURE__ */ e(
|
|
466
|
-
ee,
|
|
467
|
-
{
|
|
468
|
-
value: v,
|
|
469
|
-
onChange: (t) => R && R(t.target.value),
|
|
470
|
-
children: L.map((t, r) => /* @__PURE__ */ e(Q, { value: t.address, children: t.name + "(" + t.address + ")" }, r))
|
|
471
|
-
}
|
|
472
|
-
)
|
|
473
|
-
] }) }) }),
|
|
474
|
-
/* @__PURE__ */ e(b, { mt: 4, children: /* @__PURE__ */ e(
|
|
475
|
-
ie,
|
|
476
|
-
{
|
|
477
|
-
onClick: De,
|
|
478
|
-
disabled: Z || !O,
|
|
479
|
-
fullWidth: !0,
|
|
480
|
-
children: /* @__PURE__ */ e("strong", { children: "Next" })
|
|
481
|
-
}
|
|
482
|
-
) }),
|
|
483
|
-
/* @__PURE__ */ e(
|
|
484
|
-
vt,
|
|
485
|
-
{
|
|
486
|
-
open: Ke,
|
|
487
|
-
setModal: xe,
|
|
488
|
-
loader: u,
|
|
489
|
-
tokenList: q,
|
|
490
|
-
tokenSelect: _e
|
|
491
|
-
}
|
|
492
|
-
)
|
|
493
|
-
] });
|
|
494
|
-
}, Et = ({
|
|
495
|
-
setScreen: F,
|
|
496
|
-
partnerKey: h,
|
|
497
|
-
orderData: M,
|
|
498
|
-
dispatch: _,
|
|
499
|
-
walletAddress: d
|
|
500
|
-
}) => {
|
|
501
|
-
const n = M.estimate[S], p = M.create.order_id, $ = M.loader, v = n.fiat_amount, R = Pe(n.fiat_currency), [z, L] = c(!1);
|
|
502
|
-
x(() => {
|
|
503
|
-
p && z && F(At);
|
|
504
|
-
}, [p]), x(() => {
|
|
505
|
-
C();
|
|
506
|
-
}, []);
|
|
507
|
-
const C = () => {
|
|
508
|
-
_(
|
|
509
|
-
ke({
|
|
510
|
-
apiKey: h,
|
|
511
|
-
transaction_type: n.transaction_type,
|
|
512
|
-
coin_amount: n.fiat_amount,
|
|
513
|
-
exchange: n.exchange,
|
|
514
|
-
payment_type: n.payment_type,
|
|
515
|
-
fiat_ccy: n.fiat_currency,
|
|
516
|
-
crypto_ccy: n.crypto_currency,
|
|
517
|
-
network: n.network,
|
|
518
|
-
payment_provider: n.payment_provider
|
|
519
|
-
}, S)
|
|
520
|
-
);
|
|
521
|
-
}, g = () => {
|
|
522
|
-
_(
|
|
523
|
-
st({
|
|
524
|
-
apiKey: h,
|
|
525
|
-
quoteId: n.quote_id,
|
|
526
|
-
walletAddress: d
|
|
527
|
-
})
|
|
528
|
-
), L(!0);
|
|
529
|
-
};
|
|
530
|
-
return /* @__PURE__ */ a(P, { children: [
|
|
531
|
-
/* @__PURE__ */ e(
|
|
532
|
-
ut,
|
|
533
|
-
{
|
|
534
|
-
onClickHandler: () => F(Se),
|
|
535
|
-
backBtnText: "Confirm Your Order"
|
|
536
|
-
}
|
|
537
|
-
),
|
|
538
|
-
/* @__PURE__ */ e(s, { mt: 2, variant: "sm", fontWeight: 600, children: "Using payment method" }),
|
|
539
|
-
/* @__PURE__ */ a(b, { mt: 2, className: m["confirm-payment"], children: [
|
|
540
|
-
/* @__PURE__ */ e(
|
|
541
|
-
"img",
|
|
542
|
-
{
|
|
543
|
-
src: n.payment_type === Ee ? rt : it,
|
|
544
|
-
width: 100,
|
|
545
|
-
alt: "payment"
|
|
546
|
-
}
|
|
547
|
-
),
|
|
548
|
-
/* @__PURE__ */ e(s, { variant: "caption", component: "span", children: /* @__PURE__ */ e("strong", { children: n.payment_type === Ee ? "Bank Account" : "Debit Card" }) })
|
|
549
|
-
] }),
|
|
550
|
-
/* @__PURE__ */ e(s, { mt: 4, variant: "sm", fontWeight: 600, children: "To Wallet Address" }),
|
|
551
|
-
/* @__PURE__ */ e(
|
|
552
|
-
b,
|
|
553
|
-
{
|
|
554
|
-
mt: 2,
|
|
555
|
-
className: m["confirm-payment"],
|
|
556
|
-
sx: { width: "100% !important" },
|
|
557
|
-
children: /* @__PURE__ */ e(s, { variant: "caption", component: "p", children: /* @__PURE__ */ e("strong", { children: d }) })
|
|
558
|
-
}
|
|
559
|
-
),
|
|
560
|
-
/* @__PURE__ */ e(s, { mt: 3, variant: "sm", fontWeight: 600, component: "p", children: "Order Estimate Details" }),
|
|
561
|
-
/* @__PURE__ */ e(b, { sx: { color: "#A6A6A6" }, children: /* @__PURE__ */ a(i, { container: !0, children: [
|
|
562
|
-
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
563
|
-
n.crypto_currency.toUpperCase(),
|
|
564
|
-
" @",
|
|
565
|
-
" ",
|
|
566
|
-
Number(n.conversion_price).toFixed(2),
|
|
567
|
-
" ",
|
|
568
|
-
n.fiat_currency
|
|
569
|
-
] }) }),
|
|
570
|
-
/* @__PURE__ */ e(i, { className: "flex-right", size: { xs: 6 }, children: /* @__PURE__ */ e(
|
|
571
|
-
"span",
|
|
572
|
-
{
|
|
573
|
-
className: m["confirm-transaction-network"],
|
|
574
|
-
style: {
|
|
575
|
-
backgroundColor: n.network === "Ethereum" ? "#A1A9DC" : "#5D8CCC"
|
|
576
|
-
},
|
|
577
|
-
children: n.network
|
|
578
|
-
}
|
|
579
|
-
) }),
|
|
580
|
-
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
581
|
-
Number(n.crypto_out_amount).toFixed(5),
|
|
582
|
-
" ",
|
|
583
|
-
n.crypto_currency.toUpperCase()
|
|
584
|
-
] }) }),
|
|
585
|
-
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
586
|
-
(Number(v) - Number(n.total_fee)).toFixed(2),
|
|
587
|
-
" ",
|
|
588
|
-
n.fiat_currency
|
|
589
|
-
] }) }),
|
|
590
|
-
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Total Fees" }) }),
|
|
591
|
-
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
592
|
-
Number(n.total_fee).toFixed(2),
|
|
593
|
-
" ",
|
|
594
|
-
n.fiat_currency
|
|
595
|
-
] }) }),
|
|
596
|
-
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: /* @__PURE__ */ e("strong", { children: "Order Total" }) }) }),
|
|
597
|
-
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: /* @__PURE__ */ a("strong", { children: [
|
|
598
|
-
R,
|
|
599
|
-
Number(v).toFixed(2),
|
|
600
|
-
" ",
|
|
601
|
-
n.fiat_currency
|
|
602
|
-
] }) }) })
|
|
603
|
-
] }) }),
|
|
604
|
-
/* @__PURE__ */ e(b, { mt: 4, children: /* @__PURE__ */ e(
|
|
605
|
-
ie,
|
|
606
|
-
{
|
|
607
|
-
onClick: g,
|
|
608
|
-
disabled: $,
|
|
609
|
-
fullWidth: !0,
|
|
610
|
-
children: /* @__PURE__ */ e("strong", { children: $ ? /* @__PURE__ */ a(P, { children: [
|
|
611
|
-
/* @__PURE__ */ e(I, { size: 15, color: "inherit" }),
|
|
612
|
-
" Processing..."
|
|
613
|
-
] }) : "Payment Details" })
|
|
614
|
-
}
|
|
615
|
-
) })
|
|
616
|
-
] });
|
|
617
|
-
}, Se = "FORM_SCREEN", re = "CONFIRM_SCREEN", At = "PAYMENT_SCREEN", It = "MINIMAL_KYC_SCREEN", Ft = ({ partnerKey: F, baseUrl: h, checkoutSdkKey: M }) => {
|
|
618
|
-
const { showAlertMessage: _ } = xt(), d = pt(), n = G((u) => u.order), p = n.error, v = G(
|
|
619
|
-
(u) => u.user.profile
|
|
620
|
-
).everWalletAddress, R = G((u) => u.fiatAssets), z = G(
|
|
621
|
-
(u) => u.cryptoAssets
|
|
622
|
-
), [L, C] = c(Se), [g, H] = c(v);
|
|
623
|
-
return x(() => {
|
|
624
|
-
p && _({ message: p });
|
|
625
|
-
}, [p]), x(() => {
|
|
626
|
-
n.initMinimalKyc && (_({ message: p, type: "info" }), C(It));
|
|
627
|
-
}, [n.initMinimalKyc]), x(() => (d(ft()), d(Ae(ne)), d(Ae(te)), d(yt()), () => {
|
|
628
|
-
d(lt());
|
|
629
|
-
}), []), /* @__PURE__ */ e(_t, { addPadding: !0, children: {
|
|
630
|
-
FORM_SCREEN: /* @__PURE__ */ e(
|
|
631
|
-
Ct,
|
|
632
|
-
{
|
|
633
|
-
showAlertMessage: _,
|
|
634
|
-
setScreen: C,
|
|
635
|
-
fiatAssets: R,
|
|
636
|
-
cryptoAssets: z,
|
|
637
|
-
orderData: n,
|
|
638
|
-
dispatch: d,
|
|
639
|
-
getCryptoAssets: (u) => {
|
|
640
|
-
d(
|
|
641
|
-
ht({
|
|
642
|
-
type: S,
|
|
643
|
-
id: u,
|
|
644
|
-
partnerKey: F,
|
|
645
|
-
walletAddress: g
|
|
646
|
-
})
|
|
647
|
-
);
|
|
648
|
-
},
|
|
649
|
-
partnerKey: F,
|
|
650
|
-
walletAddress: g,
|
|
651
|
-
setWalletAddress: H
|
|
652
|
-
}
|
|
653
|
-
),
|
|
654
|
-
CONFIRM_SCREEN: /* @__PURE__ */ e(
|
|
655
|
-
Et,
|
|
656
|
-
{
|
|
657
|
-
partnerKey: F,
|
|
658
|
-
setScreen: C,
|
|
659
|
-
showAlertMessage: _,
|
|
660
|
-
orderData: n,
|
|
661
|
-
dispatch: d,
|
|
662
|
-
walletAddress: g
|
|
663
|
-
}
|
|
664
|
-
),
|
|
665
|
-
PAYMENT_SCREEN: /* @__PURE__ */ e(
|
|
666
|
-
gt,
|
|
667
|
-
{
|
|
668
|
-
checkoutKey: M,
|
|
669
|
-
orderData: n,
|
|
670
|
-
initPaymentRequest: (u) => {
|
|
671
|
-
const T = n.estimate[S], f = n.create.order_id, O = {
|
|
672
|
-
token: u,
|
|
673
|
-
amount: Number(T.fiat_amount),
|
|
674
|
-
currency: T.fiat_currency,
|
|
675
|
-
reference: f,
|
|
676
|
-
success_url: `${h}/dashboard?payment=success`,
|
|
677
|
-
fail_url: `${h}/dashboard?payment=failed`
|
|
678
|
-
};
|
|
679
|
-
d(ct(O));
|
|
680
|
-
},
|
|
681
|
-
backBtnFunc: () => C(re)
|
|
682
|
-
}
|
|
683
|
-
),
|
|
684
|
-
MINIMAL_KYC_SCREEN: /* @__PURE__ */ e(
|
|
685
|
-
Nt,
|
|
686
|
-
{
|
|
687
|
-
inputComponent: bt,
|
|
688
|
-
buttonComponent: ie,
|
|
689
|
-
onComplete: () => {
|
|
690
|
-
C(re);
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
)
|
|
694
|
-
}[L] });
|
|
695
|
-
}, dn = Ge(Ft);
|
|
696
|
-
export {
|
|
697
|
-
Ct as B,
|
|
698
|
-
re as C,
|
|
699
|
-
Se as F,
|
|
700
|
-
It as M,
|
|
701
|
-
At as P,
|
|
702
|
-
Et as a,
|
|
703
|
-
dn as i
|
|
704
|
-
};
|