everest-npm-features 0.0.18 → 0.0.19
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-BhBjKBJe.js → Alert-C1UNQHPD.js} +114 -115
- package/dist/{ArrowBack-BT4ZQvY3.js → ArrowBack-Clp4i3dA.js} +1 -1
- package/dist/{ArrowDropDown-CzeT8wh0.js → ArrowDropDown-CoJNyIet.js} +1 -1
- package/dist/{ArrowRight-CZV_yDgu.js → ArrowRight-DXtbS-1g.js} +1 -1
- package/dist/{Backdrop-Cwqacwk8.js → Backdrop-DD6Ysl5O.js} +6 -6
- package/dist/{Box-rIIGCyb6.js → Box-Be0E_-eR.js} +4 -4
- package/dist/{Button-Csuq67Py.js → Button-DCBtFwk3.js} +4 -4
- package/dist/{ButtonBase-DC2O2INs.js → ButtonBase-CE33gcZ6.js} +5 -5
- package/dist/{Cancel-Ch0B8nr4.js → Cancel-DEk2meuc.js} +1 -1
- package/dist/{CardContent-KUuSGQyI.js → CardContent-B5tGyfc5.js} +3 -3
- package/dist/{CheckCircle-BiltyzEJ.js → CheckCircle-BIckgNlV.js} +1 -1
- package/dist/{CircularProgress-CBhr9Pli.js → CircularProgress-fePUtoaj.js} +3 -3
- package/dist/Close-Bj6AaxRi.js +9 -0
- package/dist/{Close-Dv525LOL.js → Close-D20PIPiF.js} +1 -1
- package/dist/{Container-CBfJit1k.js → Container-CTfl6Vy4.js} +4 -4
- package/dist/{ContentCopy-DJHPK7G4.js → ContentCopy-DzhD9ue3.js} +1 -1
- package/dist/{DefaultPropsProvider-Dta6YfYA.js → DefaultPropsProvider-5cxFAZuq.js} +3 -3
- package/dist/{DefaultPropsProvider-C9ddiClG.js → DefaultPropsProvider-DOLtk4kZ.js} +1 -1
- package/dist/{Delete-D8ao9Ydc.js → Delete-BqqmGzYe.js} +1 -1
- package/dist/{DialogContent-BLqflo8C.js → DialogContent-D8jGp88c.js} +6 -6
- package/dist/{DialogTitle-DsyiXz12.js → DialogTitle-CxbjAJOw.js} +4 -4
- package/dist/{Divider-B0HAAjZ-.js → Divider-D3PIEE97.js} +3 -3
- package/dist/{ErrorOutline-BIlI9R1l.js → ErrorOutline-CnwdlXPx.js} +1 -1
- package/dist/{FileDownload-71XI8nQB.js → FileDownload-BX69Jvdx.js} +1 -1
- package/dist/{FilledInput-Bvhqpjsa.js → FilledInput-n9W_V8GV.js} +6 -5
- package/dist/{FormControl-uQi14shL.js → FormControl-Cc-02KHW.js} +2 -2
- package/dist/{FormControlLabel-CiZDlj3X.js → FormControlLabel-BEN9P8rJ.js} +7 -7
- package/dist/{GlobalStyles-yJPIbrEZ.js → GlobalStyles-O5U8h5ZQ.js} +2 -2
- package/dist/{Grid-C6plET3a.js → Grid-BaaKMDwM.js} +5 -5
- package/dist/{Grid2-DJW3x_WO.js → Grid2-DX2sucnU.js} +6 -6
- package/dist/{Grow-DcFPfGou.js → Grow-CC3Va50c.js} +6 -6
- package/dist/{IconButton-DRnoPKKH.js → IconButton-8B2ygvr4.js} +3 -3
- package/dist/{Info-DPMWjNcQ.js → Info-83BXSu73.js} +1 -1
- package/dist/{InputAdornment-BStVwy6a.js → InputAdornment-Ck_-Z38v.js} +3 -3
- package/dist/{Link-DeejAzmE.js → Link-BqusVoz5.js} +5 -5
- package/dist/{ListItemIcon-BO6nZHNq.js → ListItemIcon-DIz-ZmJ0.js} +4 -4
- package/dist/{MenuItem-BKHoKEhO.js → MenuItem-BkJ_C9Xs.js} +6 -6
- package/dist/{Modal-HocZM2zy.js → Modal-CQcBtr07.js} +8 -8
- package/dist/{Paper-DFrj5M9m.js → Paper-B5pcGZbI.js} +3 -3
- package/dist/{PlayArrow-BYMBg9J8.js → PlayArrow-1Y66tCVx.js} +1 -1
- package/dist/Popper-CYsd-3n5.js +1408 -0
- package/dist/{Portal-CIaLgwgF.js → Portal-Bw0-5YJ9.js} +3 -3
- package/dist/{RadioGroup-0FcLpiQv.js → RadioGroup-DtQqYrwU.js} +3 -3
- package/dist/{Select-BsqVGicz.js → Select-DpKw-a6h.js} +85 -82
- package/dist/{Slide-B08-4SSu.js → Slide-CdNJY-CT.js} +4 -4
- package/dist/{Stack-euVJ1SJW.js → Stack-C4POCZZb.js} +5 -5
- package/dist/{SwitchBase-uAFZgVI7.js → SwitchBase-B9rcpVZ0.js} +4 -4
- package/dist/{TextField-BtFFWrf2.js → TextField-Cm9apaOp.js} +7 -7
- package/dist/{Transition-BZNWAtwm.js → Transition-CYSgg85A.js} +1 -1
- package/dist/{Typography-DiFeMX5p.js → Typography-Ds4fpvK8.js} +3 -3
- package/dist/assets/withThemeProvider.css +1 -1
- package/dist/{auth-RJ36qeYb.js → auth-CjrjTwt5.js} +1 -1
- package/dist/{bank-Dml7vXW5.js → bank-D3I5wL2-.js} +1 -1
- 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.d.ts +8 -0
- package/dist/components/Shared/FullKyc/index.js +17 -0
- package/dist/components/Shared/FullKyc/pep.d.ts +4 -0
- package/dist/components/Shared/FullKyc/pep.js +17 -0
- package/dist/components/Shared/FullKyc/personalDetails.d.ts +4 -0
- package/dist/components/Shared/FullKyc/personalDetails.js +29 -0
- package/dist/components/Shared/FullKyc/types.d.ts +65 -0
- package/dist/components/Shared/FullKyc/types.js +1 -0
- package/dist/components/Shared/FullKyc/userInfo.d.ts +4 -0
- package/dist/components/Shared/FullKyc/userInfo.js +35 -0
- package/dist/components/Shared/HistoryItem/index.js +7 -7
- package/dist/components/Shared/Incode/index.d.ts +15 -0
- package/dist/components/Shared/Incode/index.js +125 -0
- 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.js +8 -8
- package/dist/components/Wallet/Account/iban.js +16 -16
- package/dist/components/Wallet/Account/index.js +17 -17
- package/dist/components/Wallet/Account/sendIban.js +19 -19
- package/dist/components/Wallet/Buy/confirmTransaction.js +7 -7
- 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.d.ts +3 -2
- package/dist/components/Wallet/EnterpriseKyc/index.js +119 -104
- 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 +8 -8
- package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +7 -7
- package/dist/components/Wallet/EnterpriseKyc/success.js +3 -3
- package/dist/components/Wallet/EnterpriseKyc/types.d.ts +6 -0
- package/dist/components/Wallet/EnterpriseKyc/verify.js +5 -5
- package/dist/components/Wallet/History/index.js +12 -12
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +14 -14
- package/dist/components/Wallet/Portfolio/index.js +15 -15
- 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 +12 -12
- 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 +9 -9
- package/dist/components/Wallet/Shared/CardPayment/index.js +4 -4
- 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 +3 -3
- package/dist/components/Wallet/Shared/TokenModal/index.d.ts +2 -1
- package/dist/components/Wallet/Shared/TokenModal/index.js +39 -38
- 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 +2 -2
- 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 +168 -163
- 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.js +16 -16
- package/dist/components/Wallet/Withdraw/index.js +5 -5
- package/dist/{constants-QcvnheTz.js → constants-CdVZO8DH.js} +138 -136
- package/dist/{createSvgIcon-i5pI36SR.js → createSvgIcon-C0wzKL72.js} +2 -2
- package/dist/{createTheme-CKy7OHWe.js → createTheme-D_EHVLXp.js} +3 -3
- package/dist/{cryptoAssets-DBfxll21.js → cryptoAssets-awZZ9HTs.js} +1 -1
- package/dist/defaultTheme-CGLnLLk_.js +5 -0
- package/dist/{dividerClasses-DSno_h-b.js → dividerClasses-Cb_Is0-O.js} +2 -2
- package/dist/{documents-Bd28UFLu.js → documents-DvNPkuYe.js} +16 -16
- package/dist/{elementTypeAcceptingRef-BM55iE9I.js → elementTypeAcceptingRef-Bc1kRXA9.js} +1 -1
- package/dist/{emotion-react.browser.esm-DhKKo7i2.js → emotion-react.browser.esm-BjxI_t8k.js} +1 -1
- package/dist/{extendSxProp-CGbvrkKd.js → extendSxProp-a8ZTL0ZI.js} +1 -1
- package/dist/{fiatAssets-w5Lh-MSu.js → fiatAssets-yeCL6wA9.js} +1 -1
- package/dist/hoc/withThemeProvider.js +5 -5
- package/dist/hooks/useDialog/index.js +4 -4
- package/dist/hooks/useRrDialog/index.js +4 -4
- package/dist/hooks/useSnackBar.js +16 -16
- package/dist/{iban-CKaN4sIM.js → iban-DC_VgH01.js} +15 -15
- 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-BNaxzTKI.js → index-86Hyynn-.js} +18 -18
- package/dist/{index-DSHZv8ZQ.js → index-CFWL7CoB.js} +21 -21
- package/dist/{index-BvftsxV1.js → index-CmBjDnIf.js} +67 -67
- package/dist/{index-BnKMvdnf.js → index-CtkDfW5M.js} +1 -1
- package/dist/{index-BEdISdN-.js → index-DO2BVre7.js} +302 -310
- package/dist/{index-Do_fdEkW.js → index-DlZLKtdr.js} +5 -5
- package/dist/index-Dx7-MJk2.js +477 -0
- package/dist/{index-_KAhqkWc.js → index-SbY3kKNL.js} +19 -19
- package/dist/kyc-Dur3dRxq.js +26 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +38 -36
- package/dist/{order-6L4LZOBs.js → order-DNSedxgT.js} +1 -1
- package/dist/pep-BsWvrgyM.js +2600 -0
- package/dist/{radioButton-CFylJSI6.js → radioButton-CdYLf2fc.js} +7 -7
- package/dist/{resolveComponentProps-BION1Ldt.js → resolveComponentProps-CPnCrKvI.js} +1 -1
- package/dist/{stake-r4KUlRcz.js → stake-DaOB24Ou.js} +1 -1
- package/dist/styled-CyBKg0N-.js +5 -0
- package/dist/{tokenRow-D_FBu18C.js → tokenRow-QlGBYRKR.js} +5 -5
- package/dist/tooltip-CwdohO6q.js +715 -0
- package/dist/{useSlot-BofjcjWw.js → useSlot-BdP6R4tz.js} +1 -1
- package/dist/useTheme-BFI_g9FY.js +9 -0
- package/dist/{useTheme-g-gCeEAB.js → useTheme-BzIjfC6u.js} +3 -3
- package/dist/{useThemeProps-DIcjToML.js → useThemeProps-BOrAzOS4.js} +4 -4
- package/dist/{useThemeWithoutDefault-DaojF4V7.js → useThemeWithoutDefault-BWt80cCE.js} +1 -1
- package/dist/{useTimeout-BK0fBak5.js → useTimeout-_ag1gI7y.js} +1 -1
- package/dist/{utils-B-L_WHmI.js → utils-B-vKE_Dv.js} +1 -1
- package/dist/{wallet-D7MEPP5y.js → wallet-D76D_QSY.js} +1 -1
- package/package.json +2 -2
- package/dist/defaultTheme-Da-3ABGu.js +0 -5
- package/dist/kyc-V7cIa71M.js +0 -19
- package/dist/styled-uZIQpYgB.js +0 -5
- package/dist/tooltip-BVZ66d8C.js +0 -2111
- package/dist/useTheme-lpadr-l2.js +0 -9
|
@@ -1,240 +1,234 @@
|
|
|
1
|
-
import { jsxs as a, Fragment as
|
|
2
|
-
import { useState as c, useEffect as
|
|
3
|
-
import
|
|
4
|
-
import { P as
|
|
5
|
-
import { I as
|
|
6
|
-
import { G as
|
|
7
|
-
import { PAYMENT_PROVIDER_PAYSAFE as
|
|
8
|
-
import {
|
|
9
|
-
import { u as
|
|
10
|
-
import { a as
|
|
11
|
-
import { M as
|
|
12
|
-
import { getCurrencySymbol as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
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 De from "./hoc/withThemeProvider.js";
|
|
4
|
+
import { P as Ge } from "./PlayArrow-1Y66tCVx.js";
|
|
5
|
+
import { I as He } from "./Info-83BXSu73.js";
|
|
6
|
+
import { G as be } from "./generic-token-B_ptO5yb.js";
|
|
7
|
+
import { PAYMENT_PROVIDER_PAYSAFE as Xe, ID_TOKEN_SYMBOL as ve, FIAT_TO_EVER_ID as ee, FIAT_TO_TOKEN as te, ESTIMATE_TOOLTIP_TEXT as Je, VISA_PAYMENT as Qe, VISA_PAYMENT_ACTIVE as Ze, SEPA_PAYMENT as et, SEPA_PAYMENT_ACTIVE as tt, PAYMENT_BANK as Ce, SEPA_ICON as nt, VISA_ICON as rt } from "./util/constants.js";
|
|
8
|
+
import { a9 as it } from "./constants-CdVZO8DH.js";
|
|
9
|
+
import { u as ot } from "./index-f15o1nhn.js";
|
|
10
|
+
import { a as at, b as Te, c as st, f as Ee, o as lt, g as ct } from "./order-DNSedxgT.js";
|
|
11
|
+
import { M as mt } from "./tooltip-CwdohO6q.js";
|
|
12
|
+
import { getCurrencySymbol as ke, getNetworkBackGround as dt } from "./util/functions.js";
|
|
13
|
+
import re from "./components/Wallet/Shared/appButton.js";
|
|
14
|
+
import ut from "./components/Wallet/Shared/backBtn.js";
|
|
15
15
|
import { s as m } from "./styles.module-BFHktEw2.js";
|
|
16
|
-
import { T as s } from "./Typography-
|
|
17
|
-
import { B as b } from "./Box-
|
|
18
|
-
import { G as i } from "./Grid2-
|
|
19
|
-
import { C as
|
|
20
|
-
import { u as
|
|
21
|
-
import { f as
|
|
22
|
-
import { f as
|
|
23
|
-
import { u as
|
|
24
|
-
import { useSnackBarContext as
|
|
25
|
-
import { AuthContainer as
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import { F as
|
|
31
|
-
import { F as
|
|
32
|
-
import { F as
|
|
33
|
-
import { S as
|
|
34
|
-
import { M as
|
|
35
|
-
import { L as
|
|
36
|
-
import { I as
|
|
37
|
-
const
|
|
38
|
-
setScreen:
|
|
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 D, a as pt } from "./react-redux-C7I9-1M6.js";
|
|
21
|
+
import { f as ft } from "./fiatAssets-yeCL6wA9.js";
|
|
22
|
+
import { f as ht } from "./cryptoAssets-awZZ9HTs.js";
|
|
23
|
+
import { u as yt } from "./wallet-D76D_QSY.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 j } from "./FormControl-Cc-02KHW.js";
|
|
31
|
+
import { F as X } from "./FilledInput-n9W_V8GV.js";
|
|
32
|
+
import { F as Ae, I as Ie } from "./TextField-Cm9apaOp.js";
|
|
33
|
+
import { S as Z } from "./Select-DpKw-a6h.js";
|
|
34
|
+
import { M as J } from "./MenuItem-BkJ_C9Xs.js";
|
|
35
|
+
import { L as Fe } from "./ListItemIcon-DIz-ZmJ0.js";
|
|
36
|
+
import { I as Me } from "./IconButton-8B2ygvr4.js";
|
|
37
|
+
const Ct = ({
|
|
38
|
+
setScreen: F,
|
|
39
39
|
orderData: h,
|
|
40
|
-
dispatch:
|
|
41
|
-
fiatAssets:
|
|
40
|
+
dispatch: M,
|
|
41
|
+
fiatAssets: _,
|
|
42
42
|
cryptoAssets: d,
|
|
43
|
-
getCryptoAssets:
|
|
44
|
-
showAlertMessage:
|
|
45
|
-
partnerKey:
|
|
43
|
+
getCryptoAssets: n,
|
|
44
|
+
showAlertMessage: p,
|
|
45
|
+
partnerKey: Y,
|
|
46
46
|
walletAddress: v,
|
|
47
|
-
setWalletAddress:
|
|
47
|
+
setWalletAddress: S
|
|
48
48
|
}) => {
|
|
49
|
-
var
|
|
50
|
-
const
|
|
51
|
-
let
|
|
52
|
-
const
|
|
53
|
-
for (let t = 0; t <
|
|
54
|
-
const
|
|
55
|
-
|
|
49
|
+
var _e, ge;
|
|
50
|
+
const R = D(ot), $ = R.data, { loader: C } = R, g = _.fiats, G = _.loader, L = d.featureTokens.buy.list, q = d.featureTokens.buy.default, u = d.loader, T = h.loader, f = h.estimate, z = f.crypto_out_amount, Se = f.conversion_price, Re = f.total_fee;
|
|
51
|
+
let ie = 0, oe = 0;
|
|
52
|
+
const ae = f.fee_breakdown;
|
|
53
|
+
for (let t = 0; t < ae.length; t++) {
|
|
54
|
+
const r = ae[t];
|
|
55
|
+
r.name === "ev_fee" ? ie = Number(r.value) : r.name === "network_fee" && (oe = Number(r.value));
|
|
56
56
|
}
|
|
57
|
-
const [l,
|
|
57
|
+
const [l, se] = c({
|
|
58
58
|
symbol: ""
|
|
59
|
-
}), [
|
|
60
|
-
|
|
61
|
-
), [
|
|
62
|
-
|
|
59
|
+
}), [Q, K] = c(!1), [k, le] = c(0), [N, ze] = c(1), [ce, Oe] = c([]), [O, we] = c([]), [me, We] = c(!1), [de, Be] = c(50), [ue, Ye] = c(3e3), [U, $e] = c(50), [pe, Le] = c(3e3), [fe, V] = c(""), [w, he] = c(
|
|
60
|
+
f.fiat_amount || U.toString()
|
|
61
|
+
), [qe, ye] = c(!1), W = g.find((t) => t.id === N), E = ke(W == null ? void 0 : W.symbol);
|
|
62
|
+
x(() => {
|
|
63
63
|
const t = [];
|
|
64
|
-
for (let
|
|
65
|
-
const o = {}, y =
|
|
64
|
+
for (let r = 0; r < g.length; r++) {
|
|
65
|
+
const o = {}, y = g[r];
|
|
66
66
|
o.id = y.id, o.name = y.name, o.icon_uri = y.icon_uri, o.symbol = y.symbol, o.payment_options = [];
|
|
67
|
-
const
|
|
68
|
-
for (let
|
|
69
|
-
const
|
|
70
|
-
|
|
67
|
+
const A = y.payment_options;
|
|
68
|
+
for (let B = 0; B < A.length; B++) {
|
|
69
|
+
const Ne = {}, H = A[B];
|
|
70
|
+
H.payment_provider !== Xe && H.active && H.payin_allowed && (Object.assign(Ne, H), o.payment_options.push(Ne));
|
|
71
71
|
}
|
|
72
72
|
o.payment_options.length > 0 && t.push(o);
|
|
73
73
|
}
|
|
74
|
-
|
|
75
|
-
}, [
|
|
74
|
+
we(t);
|
|
75
|
+
}, [g]), x(() => {
|
|
76
76
|
if (!N || O.length === 0)
|
|
77
77
|
return;
|
|
78
78
|
const t = [];
|
|
79
|
-
for (let
|
|
80
|
-
if (O[
|
|
81
|
-
const o = O[
|
|
79
|
+
for (let r = 0; r < O.length; r++) {
|
|
80
|
+
if (O[r].id === N) {
|
|
81
|
+
const o = O[r].payment_options;
|
|
82
82
|
let y = !1;
|
|
83
|
-
for (let
|
|
84
|
-
const
|
|
85
|
-
|
|
83
|
+
for (let A = 0; A < o.length; A++) {
|
|
84
|
+
const B = o[A];
|
|
85
|
+
B.active && (t.push(B), o[A].id === k && (y = !0));
|
|
86
86
|
}
|
|
87
|
-
y ||
|
|
87
|
+
y || le(t[0].id);
|
|
88
88
|
}
|
|
89
|
-
|
|
89
|
+
Oe(t);
|
|
90
90
|
}
|
|
91
|
-
}, [N, O]),
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
Q(t);
|
|
97
|
-
} else
|
|
98
|
-
z && z.id && Q(z);
|
|
99
|
-
}, [z, p.crypto_currency]), _(() => {
|
|
100
|
-
N && r && r(N);
|
|
101
|
-
}, [N, v]), _(() => {
|
|
91
|
+
}, [N, O]), x(() => {
|
|
92
|
+
q && q.id && se(q);
|
|
93
|
+
}, [q]), x(() => {
|
|
94
|
+
N && n && n(N);
|
|
95
|
+
}, [N, v]), x(() => {
|
|
102
96
|
if (l && l.id && w && k && N) {
|
|
103
|
-
|
|
97
|
+
M(at()), K(!1), V("");
|
|
104
98
|
const t = setTimeout(() => {
|
|
105
|
-
|
|
99
|
+
Ke();
|
|
106
100
|
}, 1e3);
|
|
107
101
|
return () => clearTimeout(t);
|
|
108
102
|
}
|
|
109
|
-
}, [l, w, k,
|
|
110
|
-
const
|
|
103
|
+
}, [l, w, k, L, N]);
|
|
104
|
+
const Ke = () => {
|
|
111
105
|
var y;
|
|
112
106
|
const t = parseFloat(w);
|
|
113
|
-
if (l.symbol ===
|
|
114
|
-
if (
|
|
115
|
-
return
|
|
116
|
-
`Minimum value should be greater than ${
|
|
117
|
-
),
|
|
118
|
-
if (
|
|
119
|
-
return
|
|
120
|
-
`Maximum value should be less than ${
|
|
121
|
-
),
|
|
107
|
+
if (l.symbol === ve) {
|
|
108
|
+
if (de > t)
|
|
109
|
+
return V(
|
|
110
|
+
`Minimum value should be greater than ${E + de}`
|
|
111
|
+
), K(!0), !1;
|
|
112
|
+
if (ue * 1 < t)
|
|
113
|
+
return V(
|
|
114
|
+
`Maximum value should be less than ${E + ue}`
|
|
115
|
+
), K(!0), !1;
|
|
122
116
|
} else {
|
|
123
|
-
if (
|
|
124
|
-
return
|
|
125
|
-
`Minimum value should be greater than ${
|
|
126
|
-
),
|
|
127
|
-
if (
|
|
128
|
-
return
|
|
129
|
-
`Maximum value should be less than ${
|
|
130
|
-
),
|
|
117
|
+
if (U * 1 > t)
|
|
118
|
+
return V(
|
|
119
|
+
`Minimum value should be greater than ${E + U}`
|
|
120
|
+
), K(!0), !1;
|
|
121
|
+
if (pe * 1 < t)
|
|
122
|
+
return V(
|
|
123
|
+
`Maximum value should be less than ${E + pe}`
|
|
124
|
+
), K(!0), !1;
|
|
131
125
|
}
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
apiKey:
|
|
136
|
-
transaction_type: l.symbol ===
|
|
126
|
+
const r = ce.find((A) => A.id === k), o = r.payment_type;
|
|
127
|
+
M(
|
|
128
|
+
Te({
|
|
129
|
+
apiKey: Y,
|
|
130
|
+
transaction_type: l.symbol === ve ? ee : te,
|
|
137
131
|
coin_amount: w,
|
|
138
132
|
exchange: l.exchange,
|
|
139
133
|
payment_type: o,
|
|
140
|
-
fiat_ccy:
|
|
134
|
+
fiat_ccy: W == null ? void 0 : W.symbol,
|
|
141
135
|
crypto_ccy: l.symbol,
|
|
142
136
|
network: (y = l.network) == null ? void 0 : y.name,
|
|
143
|
-
payment_provider:
|
|
137
|
+
payment_provider: r.payment_provider
|
|
144
138
|
})
|
|
145
139
|
);
|
|
146
|
-
},
|
|
140
|
+
}, Ue = ({ value: t, label: r }) => {
|
|
147
141
|
let o;
|
|
148
|
-
if (
|
|
142
|
+
if (r === "credit_debit_card" ? (o = Qe, k === t && (o = Ze)) : (o = et, k === t && (o = tt)), r)
|
|
149
143
|
return /* @__PURE__ */ e(
|
|
150
144
|
b,
|
|
151
145
|
{
|
|
152
146
|
mt: 0.5,
|
|
153
147
|
sx: { cursor: "pointer" },
|
|
154
|
-
onClick: () =>
|
|
148
|
+
onClick: () => le(t * 1),
|
|
155
149
|
children: /* @__PURE__ */ e("img", { src: o, alt: "payment", width: "90%" })
|
|
156
150
|
}
|
|
157
151
|
);
|
|
158
152
|
};
|
|
159
|
-
|
|
153
|
+
x(() => {
|
|
160
154
|
const t = h.types.length;
|
|
161
155
|
if (t > 0)
|
|
162
|
-
for (let
|
|
163
|
-
const o = h.types[
|
|
164
|
-
if (o.type ===
|
|
165
|
-
|
|
156
|
+
for (let r = 0; r < t; r++) {
|
|
157
|
+
const o = h.types[r];
|
|
158
|
+
if (o.type === ee) {
|
|
159
|
+
Be(parseFloat(o.min_deposit_amount)), Ye(parseFloat(o.max_deposit_amount));
|
|
166
160
|
break;
|
|
167
161
|
}
|
|
168
|
-
if (o.type ===
|
|
169
|
-
|
|
162
|
+
if (o.type === te) {
|
|
163
|
+
$e(parseFloat(o.min_deposit_amount)), Le(parseFloat(o.max_deposit_amount));
|
|
170
164
|
break;
|
|
171
165
|
}
|
|
172
166
|
}
|
|
173
167
|
}, [h.types]);
|
|
174
|
-
const
|
|
175
|
-
const
|
|
176
|
-
|
|
177
|
-
},
|
|
178
|
-
const
|
|
179
|
-
|
|
180
|
-
},
|
|
168
|
+
const Ve = (t) => {
|
|
169
|
+
const r = t.target.value;
|
|
170
|
+
r ? /^([0-9]+)$/.test(r) && he(r) : he("");
|
|
171
|
+
}, xe = (t) => {
|
|
172
|
+
const r = L.find((o) => o.symbol === t);
|
|
173
|
+
se(r);
|
|
174
|
+
}, je = () => {
|
|
181
175
|
if (!l.id)
|
|
182
|
-
return
|
|
176
|
+
return p({ message: "Please select token" }), !1;
|
|
183
177
|
if (!k)
|
|
184
|
-
return
|
|
178
|
+
return p({ message: "Please select payment method" }), !1;
|
|
185
179
|
if (!w)
|
|
186
|
-
return
|
|
180
|
+
return p({ message: "Please enter amount" }), !1;
|
|
187
181
|
if (!v)
|
|
188
|
-
return
|
|
189
|
-
if (!
|
|
190
|
-
return
|
|
182
|
+
return p({ message: "Please select wallet address" }), !1;
|
|
183
|
+
if (!z)
|
|
184
|
+
return p({
|
|
191
185
|
message: "Please wait for the estimate to be calculated and then press next"
|
|
192
186
|
}), !1;
|
|
193
|
-
|
|
187
|
+
F(ne);
|
|
194
188
|
};
|
|
195
|
-
return /* @__PURE__ */ a(
|
|
189
|
+
return /* @__PURE__ */ a(P, { children: [
|
|
196
190
|
/* @__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" }) }) }),
|
|
197
191
|
/* @__PURE__ */ a(i, { mt: 0.5, spacing: 0, container: !0, children: [
|
|
198
192
|
/* @__PURE__ */ e(i, { size: { xs: 6 }, children: /* @__PURE__ */ a(
|
|
199
|
-
|
|
193
|
+
j,
|
|
200
194
|
{
|
|
201
195
|
variant: "filled",
|
|
202
196
|
className: `${m.amount} ${m["fiat-field"]}`,
|
|
203
197
|
fullWidth: !0,
|
|
204
198
|
children: [
|
|
205
199
|
/* @__PURE__ */ e(
|
|
206
|
-
|
|
200
|
+
X,
|
|
207
201
|
{
|
|
208
202
|
value: w,
|
|
209
|
-
onChange:
|
|
203
|
+
onChange: Ve,
|
|
210
204
|
type: "text",
|
|
211
|
-
placeholder: `${
|
|
212
|
-
error:
|
|
205
|
+
placeholder: `${U > 0 ? "$" + U + " minimum value" : ""}`,
|
|
206
|
+
error: Q,
|
|
213
207
|
disableUnderline: !0,
|
|
214
208
|
required: !0,
|
|
215
209
|
fullWidth: !0
|
|
216
210
|
}
|
|
217
211
|
),
|
|
218
|
-
/* @__PURE__ */ e(
|
|
212
|
+
/* @__PURE__ */ e(Ae, { className: m["amount-symbol"], children: " " })
|
|
219
213
|
]
|
|
220
214
|
}
|
|
221
215
|
) }),
|
|
222
|
-
/* @__PURE__ */ e(i, { size: { xs: 6 }, className: "content-center", children:
|
|
223
|
-
|
|
216
|
+
/* @__PURE__ */ e(i, { size: { xs: 6 }, className: "content-center", children: G ? /* @__PURE__ */ e(
|
|
217
|
+
I,
|
|
224
218
|
{
|
|
225
219
|
sx: { ml: 1 },
|
|
226
220
|
size: 30
|
|
227
221
|
}
|
|
228
222
|
) : /* @__PURE__ */ e(
|
|
229
|
-
|
|
223
|
+
j,
|
|
230
224
|
{
|
|
231
225
|
variant: "filled",
|
|
232
226
|
className: `text-left ${m["fiat-picker"]}`,
|
|
233
227
|
fullWidth: !0,
|
|
234
228
|
children: /* @__PURE__ */ e(
|
|
235
|
-
|
|
229
|
+
Z,
|
|
236
230
|
{
|
|
237
|
-
input: /* @__PURE__ */ e(
|
|
231
|
+
input: /* @__PURE__ */ e(X, { disableUnderline: !0 }),
|
|
238
232
|
sx: {
|
|
239
233
|
borderTopLeftRadius: 0,
|
|
240
234
|
"&::before": {
|
|
@@ -257,15 +251,15 @@ const At = ({
|
|
|
257
251
|
value: N,
|
|
258
252
|
variant: "filled",
|
|
259
253
|
displayEmpty: !0,
|
|
260
|
-
onChange: (t) =>
|
|
261
|
-
error:
|
|
262
|
-
children: O.map((t) => /* @__PURE__ */ a(
|
|
263
|
-
/* @__PURE__ */ e(
|
|
254
|
+
onChange: (t) => ze(t.target.value),
|
|
255
|
+
error: Q,
|
|
256
|
+
children: O.map((t) => /* @__PURE__ */ a(J, { value: t.id, children: [
|
|
257
|
+
/* @__PURE__ */ e(Fe, { className: m["dropdown-list-item"], children: /* @__PURE__ */ e(
|
|
264
258
|
"img",
|
|
265
259
|
{
|
|
266
260
|
src: t.icon_uri,
|
|
267
|
-
onError: ({ currentTarget:
|
|
268
|
-
|
|
261
|
+
onError: ({ currentTarget: r }) => {
|
|
262
|
+
r.onerror = null, r.src = be;
|
|
269
263
|
},
|
|
270
264
|
alt: "tokenImg",
|
|
271
265
|
width: "40",
|
|
@@ -278,12 +272,12 @@ const At = ({
|
|
|
278
272
|
)
|
|
279
273
|
}
|
|
280
274
|
) }),
|
|
281
|
-
|
|
275
|
+
fe && /* @__PURE__ */ e(s, { variant: "caption", sx: { color: "red" }, children: /* @__PURE__ */ e("strong", { children: fe }) })
|
|
282
276
|
] }),
|
|
283
277
|
/* @__PURE__ */ a(b, { className: "text-left", mt: 3, children: [
|
|
284
278
|
/* @__PURE__ */ e(s, { variant: "sm", fontWeight: 600, children: "Select Payment Method" }),
|
|
285
|
-
|
|
286
|
-
|
|
279
|
+
G ? /* @__PURE__ */ e(I, { sx: { ml: 1, mt: 3 }, size: 50 }) : /* @__PURE__ */ e(i, { mt: 0.5, container: !0, children: ce.map((t) => /* @__PURE__ */ e(i, { size: { xs: 2.5 }, children: /* @__PURE__ */ e(
|
|
280
|
+
Ue,
|
|
287
281
|
{
|
|
288
282
|
label: t.payment_type,
|
|
289
283
|
value: t.id
|
|
@@ -293,43 +287,43 @@ const At = ({
|
|
|
293
287
|
/* @__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" }) }) }),
|
|
294
288
|
/* @__PURE__ */ a(i, { mt: 0.5, container: !0, children: [
|
|
295
289
|
/* @__PURE__ */ e(i, { size: { xs: 6 }, children: /* @__PURE__ */ a(
|
|
296
|
-
|
|
290
|
+
j,
|
|
297
291
|
{
|
|
298
292
|
className: `${m.amount} ${m["fiat-field"]}`,
|
|
299
293
|
fullWidth: !0,
|
|
300
294
|
children: [
|
|
301
295
|
/* @__PURE__ */ e(
|
|
302
|
-
|
|
296
|
+
X,
|
|
303
297
|
{
|
|
304
298
|
disableUnderline: !0,
|
|
305
|
-
value:
|
|
299
|
+
value: z && parseFloat((+z * 1).toFixed(5)),
|
|
306
300
|
type: "text",
|
|
307
301
|
readOnly: !0,
|
|
308
302
|
fullWidth: !0
|
|
309
303
|
}
|
|
310
304
|
),
|
|
311
|
-
/* @__PURE__ */ e(
|
|
305
|
+
/* @__PURE__ */ e(Ae, { className: m["amount-symbol"], children: +((_e = f == null ? void 0 : f.output_token) == null ? void 0 : _e.fiat_amount) * 1 > 0 ? E + (+((ge = f == null ? void 0 : f.output_token) == null ? void 0 : ge.fiat_amount) * 1).toFixed(2) : /* @__PURE__ */ e(P, { children: " " }) })
|
|
312
306
|
]
|
|
313
307
|
}
|
|
314
308
|
) }),
|
|
315
|
-
/* @__PURE__ */ e(i, { size: { xs: 6 }, className: "content-center", children:
|
|
316
|
-
|
|
309
|
+
/* @__PURE__ */ e(i, { size: { xs: 6 }, className: "content-center", children: u ? /* @__PURE__ */ e(I, { sx: { ml: 1 }, size: 30 }) : /* @__PURE__ */ a(
|
|
310
|
+
j,
|
|
317
311
|
{
|
|
318
312
|
variant: "filled",
|
|
319
313
|
className: `text-left ${m["crypto-picker"]}`,
|
|
320
314
|
fullWidth: !0,
|
|
321
315
|
children: [
|
|
322
316
|
(l == null ? void 0 : l.network) && /* @__PURE__ */ e(
|
|
323
|
-
|
|
317
|
+
Ie,
|
|
324
318
|
{
|
|
325
|
-
className: `${m["network-label"]} ${m[
|
|
319
|
+
className: `${m["network-label"]} ${m[dt(l == null ? void 0 : l.network.name)]}`,
|
|
326
320
|
children: l == null ? void 0 : l.network.name
|
|
327
321
|
}
|
|
328
322
|
),
|
|
329
323
|
/* @__PURE__ */ a(
|
|
330
|
-
|
|
324
|
+
Z,
|
|
331
325
|
{
|
|
332
|
-
input: /* @__PURE__ */ e(
|
|
326
|
+
input: /* @__PURE__ */ e(X, { disableUnderline: !0 }),
|
|
333
327
|
sx: {
|
|
334
328
|
borderTopLeftRadius: 0,
|
|
335
329
|
"&::before": {
|
|
@@ -353,21 +347,21 @@ const At = ({
|
|
|
353
347
|
variant: "filled",
|
|
354
348
|
value: l.symbol,
|
|
355
349
|
displayEmpty: !0,
|
|
356
|
-
onChange: (t) =>
|
|
350
|
+
onChange: (t) => xe(t.target.value),
|
|
357
351
|
onOpen: (t) => {
|
|
358
|
-
|
|
352
|
+
ye(!0), t.preventDefault();
|
|
359
353
|
},
|
|
360
354
|
defaultOpen: !1,
|
|
361
355
|
open: !1,
|
|
362
356
|
children: [
|
|
363
|
-
/* @__PURE__ */ e(
|
|
364
|
-
|
|
365
|
-
/* @__PURE__ */ e(
|
|
357
|
+
/* @__PURE__ */ e(J, { value: "", children: "Please select" }),
|
|
358
|
+
L.map((t) => /* @__PURE__ */ a(J, { value: t.symbol, children: [
|
|
359
|
+
/* @__PURE__ */ e(Fe, { className: m["dropdown-list-item"], children: /* @__PURE__ */ e(
|
|
366
360
|
"img",
|
|
367
361
|
{
|
|
368
362
|
src: t.icon_uri,
|
|
369
|
-
onError: ({ currentTarget:
|
|
370
|
-
|
|
363
|
+
onError: ({ currentTarget: r }) => {
|
|
364
|
+
r.onerror = null, r.src = be;
|
|
371
365
|
},
|
|
372
366
|
alt: "tokenImg",
|
|
373
367
|
width: "40",
|
|
@@ -385,19 +379,19 @@ const At = ({
|
|
|
385
379
|
] }),
|
|
386
380
|
/* @__PURE__ */ e(b, { mt: 3, sx: { color: "#1A202C" }, children: /* @__PURE__ */ a(i, { container: !0, children: [
|
|
387
381
|
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 12 }, children: /* @__PURE__ */ a(
|
|
388
|
-
|
|
382
|
+
Me,
|
|
389
383
|
{
|
|
390
384
|
sx: { padding: "0" },
|
|
391
|
-
onClick: () =>
|
|
385
|
+
onClick: () => We((t) => !t),
|
|
392
386
|
disableFocusRipple: !0,
|
|
393
387
|
disableRipple: !0,
|
|
394
388
|
children: [
|
|
395
389
|
/* @__PURE__ */ e(s, { variant: "caption", fontWeight: 500, children: "Fee Calculation" }),
|
|
396
390
|
/* @__PURE__ */ e(
|
|
397
|
-
|
|
391
|
+
Ge,
|
|
398
392
|
{
|
|
399
393
|
sx: {
|
|
400
|
-
transform: `rotate(${
|
|
394
|
+
transform: `rotate(${me ? "90" : "0"}deg)`,
|
|
401
395
|
fontSize: "15px"
|
|
402
396
|
}
|
|
403
397
|
}
|
|
@@ -405,42 +399,42 @@ const At = ({
|
|
|
405
399
|
]
|
|
406
400
|
}
|
|
407
401
|
) }),
|
|
408
|
-
|
|
402
|
+
me && /* @__PURE__ */ a(P, { children: [
|
|
409
403
|
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Everest Fee" }) }),
|
|
410
404
|
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
411
|
-
|
|
412
|
-
|
|
405
|
+
E,
|
|
406
|
+
T ? /* @__PURE__ */ e(I, { size: 30, color: "primary" }) : ie.toFixed(2)
|
|
413
407
|
] }) }),
|
|
414
408
|
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Network Fee" }) }),
|
|
415
409
|
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
410
|
+
E,
|
|
411
|
+
T ? /* @__PURE__ */ e(
|
|
412
|
+
I,
|
|
419
413
|
{
|
|
420
414
|
sx: { ml: 1 },
|
|
421
415
|
size: 15,
|
|
422
416
|
color: "primary"
|
|
423
417
|
}
|
|
424
|
-
) :
|
|
418
|
+
) : oe.toFixed(2)
|
|
425
419
|
] }) })
|
|
426
420
|
] }),
|
|
427
421
|
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Total Fees" }) }),
|
|
428
422
|
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
429
|
-
|
|
430
|
-
|
|
423
|
+
E,
|
|
424
|
+
T ? /* @__PURE__ */ e(I, { sx: { ml: 1 }, size: 15, color: "primary" }) : Number(Re).toFixed(2)
|
|
431
425
|
] }) }),
|
|
432
|
-
l && /* @__PURE__ */ a(
|
|
426
|
+
l && /* @__PURE__ */ a(P, { children: [
|
|
433
427
|
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
434
428
|
"1 ",
|
|
435
429
|
l.symbol,
|
|
436
430
|
" ",
|
|
437
431
|
/* @__PURE__ */ e(
|
|
438
|
-
|
|
432
|
+
mt,
|
|
439
433
|
{
|
|
440
|
-
title:
|
|
434
|
+
title: Je,
|
|
441
435
|
placement: "right",
|
|
442
|
-
children: /* @__PURE__ */ e(
|
|
443
|
-
|
|
436
|
+
children: /* @__PURE__ */ e(Me, { className: "info-fee-icon", children: /* @__PURE__ */ e(
|
|
437
|
+
He,
|
|
444
438
|
{
|
|
445
439
|
sx: {
|
|
446
440
|
fontSize: "14px"
|
|
@@ -451,90 +445,90 @@ const At = ({
|
|
|
451
445
|
)
|
|
452
446
|
] }) }),
|
|
453
447
|
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
448
|
+
E,
|
|
449
|
+
T ? /* @__PURE__ */ e(
|
|
450
|
+
I,
|
|
457
451
|
{
|
|
458
452
|
sx: { ml: 1 },
|
|
459
453
|
size: 15,
|
|
460
454
|
color: "primary"
|
|
461
455
|
}
|
|
462
|
-
) : Number(
|
|
456
|
+
) : Number(Se).toFixed(2)
|
|
463
457
|
] }) })
|
|
464
458
|
] })
|
|
465
459
|
] }) }),
|
|
466
|
-
/* @__PURE__ */ e(b, { sx: { alignItems: "left", width: "100%" }, children:
|
|
467
|
-
!v && /* @__PURE__ */ e(
|
|
460
|
+
/* @__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(j, { variant: "filled", fullWidth: !0, children: [
|
|
461
|
+
!v && /* @__PURE__ */ e(Ie, { children: "Select wallet address" }),
|
|
468
462
|
/* @__PURE__ */ e(
|
|
469
|
-
|
|
463
|
+
Z,
|
|
470
464
|
{
|
|
471
465
|
value: v,
|
|
472
|
-
onChange: (t) =>
|
|
473
|
-
children:
|
|
466
|
+
onChange: (t) => S && S(t.target.value),
|
|
467
|
+
children: $.map((t, r) => /* @__PURE__ */ e(J, { value: t.address, children: t.name + "(" + t.address + ")" }, r))
|
|
474
468
|
}
|
|
475
469
|
)
|
|
476
470
|
] }) }) }),
|
|
477
471
|
/* @__PURE__ */ e(b, { mt: 4, children: /* @__PURE__ */ e(
|
|
478
|
-
|
|
472
|
+
re,
|
|
479
473
|
{
|
|
480
|
-
onClick:
|
|
481
|
-
disabled:
|
|
474
|
+
onClick: je,
|
|
475
|
+
disabled: Q || !z,
|
|
482
476
|
fullWidth: !0,
|
|
483
477
|
children: /* @__PURE__ */ e("strong", { children: "Next" })
|
|
484
478
|
}
|
|
485
479
|
) }),
|
|
486
480
|
/* @__PURE__ */ e(
|
|
487
|
-
|
|
481
|
+
vt,
|
|
488
482
|
{
|
|
489
|
-
open:
|
|
490
|
-
setModal:
|
|
491
|
-
loader:
|
|
492
|
-
tokenList:
|
|
493
|
-
tokenSelect:
|
|
483
|
+
open: qe,
|
|
484
|
+
setModal: ye,
|
|
485
|
+
loader: u,
|
|
486
|
+
tokenList: L,
|
|
487
|
+
tokenSelect: xe
|
|
494
488
|
}
|
|
495
489
|
)
|
|
496
490
|
] });
|
|
497
|
-
},
|
|
498
|
-
setScreen:
|
|
491
|
+
}, Et = ({
|
|
492
|
+
setScreen: F,
|
|
499
493
|
partnerKey: h,
|
|
500
|
-
orderData:
|
|
501
|
-
dispatch:
|
|
494
|
+
orderData: M,
|
|
495
|
+
dispatch: _,
|
|
502
496
|
walletAddress: d
|
|
503
497
|
}) => {
|
|
504
|
-
const
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
}, [
|
|
508
|
-
|
|
498
|
+
const n = M.estimate, p = M.create.order_id, Y = M.loader, v = n.fiat_amount, S = ke(n.fiat_currency), [R, $] = c(!1);
|
|
499
|
+
x(() => {
|
|
500
|
+
p && R && F(At);
|
|
501
|
+
}, [p]), x(() => {
|
|
502
|
+
C();
|
|
509
503
|
}, []);
|
|
510
|
-
const
|
|
511
|
-
|
|
512
|
-
|
|
504
|
+
const C = () => {
|
|
505
|
+
_(
|
|
506
|
+
Te({
|
|
513
507
|
apiKey: h,
|
|
514
|
-
transaction_type:
|
|
515
|
-
coin_amount:
|
|
516
|
-
exchange:
|
|
517
|
-
payment_type:
|
|
518
|
-
fiat_ccy:
|
|
519
|
-
crypto_ccy:
|
|
520
|
-
network:
|
|
521
|
-
payment_provider:
|
|
508
|
+
transaction_type: n.transaction_type,
|
|
509
|
+
coin_amount: n.fiat_amount,
|
|
510
|
+
exchange: n.exchange,
|
|
511
|
+
payment_type: n.payment_type,
|
|
512
|
+
fiat_ccy: n.fiat_currency,
|
|
513
|
+
crypto_ccy: n.crypto_currency,
|
|
514
|
+
network: n.network,
|
|
515
|
+
payment_provider: n.payment_provider
|
|
522
516
|
})
|
|
523
517
|
);
|
|
524
|
-
},
|
|
525
|
-
|
|
526
|
-
|
|
518
|
+
}, g = () => {
|
|
519
|
+
_(
|
|
520
|
+
st({
|
|
527
521
|
apiKey: h,
|
|
528
|
-
quoteId:
|
|
522
|
+
quoteId: n.quote_id,
|
|
529
523
|
walletAddress: d
|
|
530
524
|
})
|
|
531
|
-
),
|
|
525
|
+
), $(!0);
|
|
532
526
|
};
|
|
533
|
-
return /* @__PURE__ */ a(
|
|
527
|
+
return /* @__PURE__ */ a(P, { children: [
|
|
534
528
|
/* @__PURE__ */ e(
|
|
535
|
-
|
|
529
|
+
ut,
|
|
536
530
|
{
|
|
537
|
-
onClickHandler: () =>
|
|
531
|
+
onClickHandler: () => F(Pe),
|
|
538
532
|
backBtnText: "Confirm Your Order"
|
|
539
533
|
}
|
|
540
534
|
),
|
|
@@ -543,12 +537,12 @@ const At = ({
|
|
|
543
537
|
/* @__PURE__ */ e(
|
|
544
538
|
"img",
|
|
545
539
|
{
|
|
546
|
-
src:
|
|
540
|
+
src: n.payment_type === Ce ? nt : rt,
|
|
547
541
|
width: 100,
|
|
548
542
|
alt: "payment"
|
|
549
543
|
}
|
|
550
544
|
),
|
|
551
|
-
/* @__PURE__ */ e(s, { variant: "caption", component: "span", children: /* @__PURE__ */ e("strong", { children:
|
|
545
|
+
/* @__PURE__ */ e(s, { variant: "caption", component: "span", children: /* @__PURE__ */ e("strong", { children: n.payment_type === Ce ? "Bank Account" : "Debit Card" }) })
|
|
552
546
|
] }),
|
|
553
547
|
/* @__PURE__ */ e(s, { mt: 4, variant: "sm", fontWeight: 600, children: "To Wallet Address" }),
|
|
554
548
|
/* @__PURE__ */ e(
|
|
@@ -563,147 +557,145 @@ const At = ({
|
|
|
563
557
|
/* @__PURE__ */ e(s, { mt: 3, variant: "sm", fontWeight: 600, component: "p", children: "Order Estimate Details" }),
|
|
564
558
|
/* @__PURE__ */ e(b, { sx: { color: "#A6A6A6" }, children: /* @__PURE__ */ a(i, { container: !0, children: [
|
|
565
559
|
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
566
|
-
|
|
560
|
+
n.crypto_currency.toUpperCase(),
|
|
567
561
|
" @",
|
|
568
562
|
" ",
|
|
569
|
-
Number(
|
|
563
|
+
Number(n.conversion_price).toFixed(2),
|
|
570
564
|
" ",
|
|
571
|
-
|
|
565
|
+
n.fiat_currency
|
|
572
566
|
] }) }),
|
|
573
567
|
/* @__PURE__ */ e(i, { className: "flex-right", size: { xs: 6 }, children: /* @__PURE__ */ e(
|
|
574
568
|
"span",
|
|
575
569
|
{
|
|
576
570
|
className: m["confirm-transaction-network"],
|
|
577
571
|
style: {
|
|
578
|
-
backgroundColor:
|
|
572
|
+
backgroundColor: n.network === "Ethereum" ? "#A1A9DC" : "#5D8CCC"
|
|
579
573
|
},
|
|
580
|
-
children:
|
|
574
|
+
children: n.network
|
|
581
575
|
}
|
|
582
576
|
) }),
|
|
583
577
|
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
584
|
-
Number(
|
|
578
|
+
Number(n.crypto_out_amount).toFixed(5),
|
|
585
579
|
" ",
|
|
586
|
-
|
|
580
|
+
n.crypto_currency.toUpperCase()
|
|
587
581
|
] }) }),
|
|
588
582
|
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
589
|
-
(Number(v) - Number(
|
|
583
|
+
(Number(v) - Number(n.total_fee)).toFixed(2),
|
|
590
584
|
" ",
|
|
591
|
-
|
|
585
|
+
n.fiat_currency
|
|
592
586
|
] }) }),
|
|
593
587
|
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Total Fees" }) }),
|
|
594
588
|
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
595
|
-
Number(
|
|
589
|
+
Number(n.total_fee).toFixed(2),
|
|
596
590
|
" ",
|
|
597
|
-
|
|
591
|
+
n.fiat_currency
|
|
598
592
|
] }) }),
|
|
599
593
|
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: /* @__PURE__ */ e("strong", { children: "Order Total" }) }) }),
|
|
600
594
|
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: /* @__PURE__ */ a("strong", { children: [
|
|
601
|
-
|
|
595
|
+
S,
|
|
602
596
|
Number(v).toFixed(2),
|
|
603
597
|
" ",
|
|
604
|
-
|
|
598
|
+
n.fiat_currency
|
|
605
599
|
] }) }) })
|
|
606
600
|
] }) }),
|
|
607
601
|
/* @__PURE__ */ e(b, { mt: 4, children: /* @__PURE__ */ e(
|
|
608
|
-
|
|
602
|
+
re,
|
|
609
603
|
{
|
|
610
|
-
onClick:
|
|
611
|
-
disabled:
|
|
604
|
+
onClick: g,
|
|
605
|
+
disabled: Y,
|
|
612
606
|
fullWidth: !0,
|
|
613
|
-
children: /* @__PURE__ */ e("strong", { children:
|
|
614
|
-
/* @__PURE__ */ e(
|
|
607
|
+
children: /* @__PURE__ */ e("strong", { children: Y ? /* @__PURE__ */ a(P, { children: [
|
|
608
|
+
/* @__PURE__ */ e(I, { size: 15, color: "inherit" }),
|
|
615
609
|
" Processing..."
|
|
616
610
|
] }) : "Payment Details" })
|
|
617
611
|
}
|
|
618
612
|
) })
|
|
619
613
|
] });
|
|
620
|
-
},
|
|
621
|
-
const { showAlertMessage:
|
|
622
|
-
U(
|
|
614
|
+
}, Pe = "FORM_SCREEN", ne = "CONFIRM_SCREEN", At = "PAYMENT_SCREEN", It = "MINIMAL_KYC_SCREEN", Ft = ({ partnerKey: F, baseUrl: h, checkoutSdkKey: M }) => {
|
|
615
|
+
const { showAlertMessage: _ } = xt(), d = pt(), n = D((u) => u.order), p = n.error, v = D(
|
|
623
616
|
(u) => u.user.profile
|
|
624
|
-
)
|
|
625
|
-
const P = U((u) => u.fiatAssets), v = U(
|
|
617
|
+
).everWalletAddress, S = D((u) => u.fiatAssets), R = D(
|
|
626
618
|
(u) => u.cryptoAssets
|
|
627
|
-
), [
|
|
628
|
-
return
|
|
629
|
-
|
|
630
|
-
}, [
|
|
631
|
-
|
|
632
|
-
}, [
|
|
633
|
-
d(
|
|
634
|
-
}), []), /* @__PURE__ */ e(
|
|
619
|
+
), [$, C] = c(Pe), [g, G] = c(v);
|
|
620
|
+
return x(() => {
|
|
621
|
+
p && _({ message: p });
|
|
622
|
+
}, [p]), x(() => {
|
|
623
|
+
n.initMinimalKyc && (_({ message: p, type: "info" }), C(It));
|
|
624
|
+
}, [n.initMinimalKyc]), x(() => (d(ft()), d(Ee(te)), d(Ee(ee)), d(yt()), () => {
|
|
625
|
+
d(lt());
|
|
626
|
+
}), []), /* @__PURE__ */ e(_t, { addPadding: !0, children: {
|
|
635
627
|
FORM_SCREEN: /* @__PURE__ */ e(
|
|
636
|
-
|
|
628
|
+
Ct,
|
|
637
629
|
{
|
|
638
|
-
showAlertMessage:
|
|
639
|
-
setScreen:
|
|
640
|
-
fiatAssets:
|
|
641
|
-
cryptoAssets:
|
|
642
|
-
orderData:
|
|
630
|
+
showAlertMessage: _,
|
|
631
|
+
setScreen: C,
|
|
632
|
+
fiatAssets: S,
|
|
633
|
+
cryptoAssets: R,
|
|
634
|
+
orderData: n,
|
|
643
635
|
dispatch: d,
|
|
644
636
|
getCryptoAssets: (u) => {
|
|
645
637
|
d(
|
|
646
|
-
|
|
647
|
-
type:
|
|
638
|
+
ht({
|
|
639
|
+
type: it,
|
|
648
640
|
id: u,
|
|
649
|
-
partnerKey:
|
|
650
|
-
walletAddress:
|
|
641
|
+
partnerKey: F,
|
|
642
|
+
walletAddress: g
|
|
651
643
|
})
|
|
652
644
|
);
|
|
653
645
|
},
|
|
654
|
-
partnerKey:
|
|
655
|
-
walletAddress:
|
|
656
|
-
setWalletAddress:
|
|
646
|
+
partnerKey: F,
|
|
647
|
+
walletAddress: g,
|
|
648
|
+
setWalletAddress: G
|
|
657
649
|
}
|
|
658
650
|
),
|
|
659
651
|
CONFIRM_SCREEN: /* @__PURE__ */ e(
|
|
660
|
-
|
|
652
|
+
Et,
|
|
661
653
|
{
|
|
662
|
-
partnerKey:
|
|
663
|
-
setScreen:
|
|
664
|
-
showAlertMessage:
|
|
665
|
-
orderData:
|
|
654
|
+
partnerKey: F,
|
|
655
|
+
setScreen: C,
|
|
656
|
+
showAlertMessage: _,
|
|
657
|
+
orderData: n,
|
|
666
658
|
dispatch: d,
|
|
667
|
-
walletAddress:
|
|
659
|
+
walletAddress: g
|
|
668
660
|
}
|
|
669
661
|
),
|
|
670
662
|
PAYMENT_SCREEN: /* @__PURE__ */ e(
|
|
671
|
-
|
|
663
|
+
gt,
|
|
672
664
|
{
|
|
673
|
-
checkoutKey:
|
|
674
|
-
orderData:
|
|
665
|
+
checkoutKey: M,
|
|
666
|
+
orderData: n,
|
|
675
667
|
initPaymentRequest: (u) => {
|
|
676
|
-
const
|
|
668
|
+
const T = n.estimate, f = n.create.order_id, z = {
|
|
677
669
|
token: u,
|
|
678
|
-
amount: Number(
|
|
679
|
-
currency:
|
|
680
|
-
reference:
|
|
670
|
+
amount: Number(T.fiat_amount),
|
|
671
|
+
currency: T.fiat_currency,
|
|
672
|
+
reference: f,
|
|
681
673
|
success_url: `${h}/dashboard?payment=success`,
|
|
682
674
|
fail_url: `${h}/dashboard?payment=failed`
|
|
683
675
|
};
|
|
684
|
-
d(
|
|
676
|
+
d(ct(z));
|
|
685
677
|
},
|
|
686
|
-
backBtnFunc: () =>
|
|
678
|
+
backBtnFunc: () => C(ne)
|
|
687
679
|
}
|
|
688
680
|
),
|
|
689
681
|
MINIMAL_KYC_SCREEN: /* @__PURE__ */ e(
|
|
690
|
-
|
|
682
|
+
Nt,
|
|
691
683
|
{
|
|
692
|
-
inputComponent:
|
|
693
|
-
buttonComponent:
|
|
684
|
+
inputComponent: bt,
|
|
685
|
+
buttonComponent: re,
|
|
694
686
|
onComplete: () => {
|
|
695
|
-
|
|
687
|
+
C(ne);
|
|
696
688
|
}
|
|
697
689
|
}
|
|
698
690
|
)
|
|
699
|
-
}[
|
|
700
|
-
},
|
|
691
|
+
}[$] });
|
|
692
|
+
}, dn = De(Ft);
|
|
701
693
|
export {
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
694
|
+
Ct as B,
|
|
695
|
+
ne as C,
|
|
696
|
+
Pe as F,
|
|
697
|
+
It as M,
|
|
698
|
+
At as P,
|
|
699
|
+
Et as a,
|
|
700
|
+
dn as i
|
|
709
701
|
};
|