everest-npm-features 0.0.26 → 0.0.27
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-CbQZ8Nii.js → Alert-CUoIVlUd.js} +8 -7
- package/dist/{ArrowBack-BoYSBb8u.js → ArrowBack-BV158RTp.js} +1 -1
- package/dist/Avatar-CwczQLPi.js +280 -0
- package/dist/{Backdrop-CJBRZv_z.js → Backdrop-yR8IRnFX.js} +1 -1
- package/dist/{Box-B12x52NC.js → Box-BwKpr_VI.js} +1 -1
- package/dist/{Button-C57IMamW.js → Button-tAfK4lud.js} +13 -12
- package/dist/{ButtonBase-DugIO1pR.js → ButtonBase-CaH152Zd.js} +1 -1
- package/dist/{Cancel-D1JNu4Hj.js → Cancel-BoEk0xRy.js} +1 -1
- package/dist/{CardContent-CbObWW6t.js → CardContent-ZS4vlcvi.js} +2 -2
- package/dist/{CircularProgress-t8uGhLMo.js → CircularProgress-Yx712vpT.js} +7 -6
- package/dist/{Close-jnEgOCZv.js → Close-B_8kEwSt.js} +1 -1
- package/dist/{Close-VV7zb3cu.js → Close-CFg1QB5M.js} +1 -1
- package/dist/{Container-B3Af6Sc3.js → Container-CBPBT38n.js} +2 -2
- package/dist/{ContentCopy-Ufwoeeov.js → ContentCopy-D4Eg7Nkm.js} +1 -1
- package/dist/DefaultPropsProvider-4P82EuVL.js +232 -0
- package/dist/{Delete-TCARcVtU.js → Delete-BGp4FPdE.js} +1 -1
- package/dist/{DialogContent-DzidtXui.js → DialogContent-_gvZOy18.js} +13 -12
- package/dist/{DialogTitle-Bg61Hr7M.js → DialogTitle-dq22bYlF.js} +3 -3
- package/dist/{Divider-Dy5hKfey.js → Divider-CIL55YSC.js} +10 -9
- package/dist/{ErrorOutline-CI_ys3Zo.js → ErrorOutline-BykbFh0r.js} +1 -1
- package/dist/{FileDownload-BcYF17B0.js → FileDownload-BSy7tA6m.js} +1 -1
- package/dist/{FilledInput-DrGeWgue.js → FilledInput-QaJVaeIX.js} +12 -14
- package/dist/{FormControl-DeeQCuu5.js → FormControl-H4D1Z6Ov.js} +1 -1
- package/dist/{FormControlLabel-DVnrJkC8.js → FormControlLabel-BvI1nkJ1.js} +7 -6
- package/dist/{Grid-BXyV_lM8.js → Grid-CPkjiKqX.js} +2 -2
- package/dist/{IconButton-eWRhV6Q9.js → IconButton-WneJM4uP.js} +10 -9
- package/dist/{Info-D2UkGxyK.js → Info-0vSsl6Bm.js} +1 -1
- package/dist/{InputAdornment-BKuUMfPj.js → InputAdornment-Bqn4-Kns.js} +6 -5
- package/dist/{Link-Cm4BkRHO.js → Link-DhdK4VfZ.js} +6 -5
- package/dist/{ListItemIcon-GKRFb1Gr.js → ListItemIcon-D657XWHf.js} +15 -14
- package/dist/Menu-BAFJBGa-.js +1238 -0
- package/dist/{MenuItem-CeCt0bfa.js → MenuItem-ByxiQtY2.js} +36 -35
- package/dist/{Modal-csf3Y8d2.js → Modal-DEfOsvWK.js} +16 -15
- package/dist/{Paper-CnStNE24.js → Paper-jx_cZiyU.js} +27 -26
- package/dist/{PlayArrow-DRCGjsrx.js → PlayArrow-BCWGWaUq.js} +1 -1
- package/dist/{Popper-pPBEFLi4.js → Popper-B1He9eVi.js} +1 -1
- package/dist/{RadioGroup-KiyYjXaT.js → RadioGroup-_-H2gvH2.js} +3 -3
- package/dist/Select-CGei0bav.js +1885 -0
- package/dist/{Stack-CcR5RCg8.js → Stack-DH-Nxf9q.js} +2 -2
- package/dist/{SwitchBase-CHO5ZceN.js → SwitchBase-BDUzpdBf.js} +2 -2
- package/dist/{TextField-q_SeLeNd.js → TextField-DmiK1A_S.js} +17 -16
- package/dist/{Typography-DBlMiOti.js → Typography-BQDN44CM.js} +16 -15
- package/dist/assets/documents.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/styles2.css +1 -1
- package/dist/assets/styles3.css +1 -1
- package/dist/assets/tokenRow.css +1 -1
- package/dist/assets/withThemeProvider.css +1 -1
- package/dist/{auth-Bf9zHZ-x.js → auth-SxpGte_3.js} +1 -1
- package/dist/{bank-BC4YNBRb.js → bank-DyVf4Uoo.js} +6 -6
- package/dist/components/RocketRamp/MinimalKyc/form.js +13 -12
- 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 +6 -6
- package/dist/components/RocketRamp/Player/Dashboard/index.js +16 -14
- 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 +14 -13
- 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 +5 -5
- package/dist/components/RocketRamp/Store/Dashboard/index.js +2 -2
- package/dist/components/RocketRamp/Store/Dashboard/stats.js +5 -5
- 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 +10 -9
- package/dist/components/Shared/FullKyc/userInfo.js +15 -14
- package/dist/components/Shared/HistoryItem/index.js +64 -65
- 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/Wallet/Account/createIban.js +76 -85
- package/dist/components/Wallet/Account/iban.d.ts +5 -1
- package/dist/components/Wallet/Account/iban.js +223 -25
- package/dist/components/Wallet/Account/index.js +144 -149
- package/dist/components/Wallet/Account/sendIban.js +25 -27
- package/dist/components/Wallet/Buy/confirmTransaction.js +8 -8
- package/dist/components/Wallet/Buy/form.js +21 -20
- package/dist/components/Wallet/Buy/index.js +6 -6
- package/dist/components/Wallet/Deposit/index.js +25 -24
- package/dist/components/Wallet/EnterpriseKyc/edd.js +23 -22
- package/dist/components/Wallet/EnterpriseKyc/index.js +15 -14
- 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 +26 -25
- package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +30 -28
- package/dist/components/Wallet/EnterpriseKyc/success.js +2 -2
- package/dist/components/Wallet/EnterpriseKyc/verify.js +8 -7
- package/dist/components/Wallet/History/index.js +111 -112
- package/dist/components/Wallet/Home/index.d.ts +5 -0
- package/dist/components/Wallet/Home/index.js +20 -0
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +18 -17
- package/dist/components/Wallet/Portfolio/dropdown.d.ts +14 -0
- package/dist/components/Wallet/Portfolio/dropdown.js +76 -0
- package/dist/components/Wallet/Portfolio/index.js +309 -304
- package/dist/components/Wallet/Portfolio/tokenRow.js +5 -7
- package/dist/components/Wallet/Profile/documents.js +18 -18
- package/dist/components/Wallet/Profile/index.js +152 -419
- package/dist/components/Wallet/Receive/index.js +10 -10
- package/dist/components/Wallet/Sell/confirmTransaction.js +8 -8
- package/dist/components/Wallet/Sell/form.js +19 -19
- package/dist/components/Wallet/Sell/index.js +6 -6
- package/dist/components/Wallet/Send/index.js +20 -19
- package/dist/components/Wallet/Shared/Auth/emailForm.js +14 -13
- package/dist/components/Wallet/Shared/Auth/otpForm.d.ts +1 -1
- package/dist/components/Wallet/Shared/Auth/otpForm.js +98 -88
- package/dist/components/Wallet/Shared/CardPayment/index.js +4 -4
- package/dist/components/Wallet/Shared/ConnectWallet/index.js +10 -12
- package/dist/components/Wallet/Shared/Container/index.d.ts +7 -4
- package/dist/components/Wallet/Shared/Container/index.js +62 -26
- 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/Order/paymentButton.d.ts +2 -0
- package/dist/components/Wallet/Shared/Order/paymentButton.js +46 -0
- package/dist/components/Wallet/Shared/Order/types.d.ts +2 -0
- package/dist/components/Wallet/Shared/TokenModal/index.js +11 -11
- package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +13 -11
- package/dist/components/Wallet/Shared/addBank.js +44 -48
- package/dist/components/Wallet/Shared/appButton.d.ts +1 -1
- package/dist/components/Wallet/Shared/appButton.js +77 -57
- package/dist/components/Wallet/Shared/backBtn.js +2 -2
- package/dist/components/Wallet/Shared/button.js +1 -1
- package/dist/components/Wallet/Shared/connectPlaidBank.d.ts +5 -1
- package/dist/components/Wallet/Shared/connectPlaidBank.js +39 -38
- package/dist/components/Wallet/Shared/inputField.js +1 -1
- package/dist/components/Wallet/Shared/noData.js +7 -7
- package/dist/components/Wallet/Shared/pin.js +4 -4
- 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 +30 -29
- package/dist/components/Wallet/Swap/index.js +112 -116
- package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -3
- package/dist/components/Wallet/Withdraw/bankSelect.js +12 -12
- package/dist/components/Wallet/Withdraw/confirmTransaction.js +9 -9
- package/dist/components/Wallet/Withdraw/form.js +19 -18
- package/dist/components/Wallet/Withdraw/index.js +5 -5
- package/dist/{constants-CsMPRK0U.js → constants-BF50a6s-.js} +30 -30
- package/dist/context/dialogContext.d.ts +6 -0
- package/dist/context/dialogContext.js +13 -0
- package/dist/{createSvgIcon-CH41ZVFw.js → createSvgIcon-BgBEJXMh.js} +15 -14
- package/dist/cryptoAssets-Dck03SPI.js +16 -0
- package/dist/{dividerClasses-DnbM--4s.js → dividerClasses-BVK5cNr7.js} +1 -1
- package/dist/documents-Sh6RH769.js +549 -0
- package/dist/{fiatAssets-DVHfFafS.js → fiatAssets-CTIJw9N4.js} +1 -1
- package/dist/hooks/useDialog/index.js +35 -38
- package/dist/hooks/useRrDialog/index.js +4 -4
- package/dist/hooks/useSnackBar.js +12 -11
- package/dist/index-BRwse7X5.js +631 -0
- package/dist/{index-DxX5Mo0o.js → index-CWzs4-wZ.js} +18 -18
- package/dist/{index-DZ__IpVI.js → index-CbogTdwW.js} +25 -24
- package/dist/{index-C9uGghB8.js → index-CmJNKC9m.js} +26 -26
- package/dist/{index-VE9lYjq3.js → index-D8j7wPDM.js} +15 -14
- package/dist/{index-eEYiDlpX.js → index-GxLtFwhs.js} +228 -230
- package/dist/{index-f15o1nhn.js → index-v4KC1K_V.js} +2 -2
- package/dist/isHostComponent-kiaBvYVo.js +6 -0
- package/dist/{kyc-BweeW6k9.js → kyc-kWxxF1vI.js} +1 -1
- package/dist/main.d.ts +7 -0
- package/dist/main.js +66 -59
- package/dist/memoTheme-BUUB1UEO.js +15 -0
- package/dist/{order-DmTHC7ZG.js → order-D-FBHreS.js} +1 -1
- package/dist/{pep-C5Ge-kU4.js → pep-D8bFjgpy.js} +19 -18
- package/dist/{radioButton-Bgy7Kxxo.js → radioButton-CBcYX40o.js} +8 -7
- package/dist/{stake-B150utJI.js → stake-mS8fdG8g.js} +1 -1
- package/dist/styles.module-B-t8vvWh.js +31 -0
- package/dist/styles.module-verVx4pE.js +8 -0
- package/dist/tokenRow-DBnoUm0z.js +186 -0
- package/dist/{tooltip-DGtrVEzU.js → tooltip-Dv3Lfsa2.js} +5 -4
- package/dist/{useThemeProps-lRuJRcRX.js → useThemeProps-DLhzJP-y.js} +1 -1
- package/dist/util/constants.d.ts +5 -0
- package/dist/util/constants.js +88 -83
- package/dist/{wallet-DDW5KCHp.js → wallet-BTc5u8j2.js} +1 -1
- package/package.json +1 -1
- package/dist/ArrowDropDown-BC_iEASy.js +0 -8
- package/dist/ArrowRight-rYkfGJuF.js +0 -8
- package/dist/CheckCircle-CyxKX1TY.js +0 -8
- package/dist/DefaultPropsProvider-B2njZVNv.js +0 -242
- package/dist/Select-Chubcks_.js +0 -3108
- package/dist/assets/iban.css +0 -1
- package/dist/assets/index11.css +0 -1
- package/dist/cryptoAssets-CzNDY1j6.js +0 -16
- package/dist/documents-CEeV8SyW.js +0 -569
- package/dist/iban-DRT7i0vb.js +0 -275
- package/dist/index-BB3__zW3.js +0 -644
- package/dist/styles.module-BFHktEw2.js +0 -30
- package/dist/styles.module-DJk7Pf0F.js +0 -10
- package/dist/tokenRow-X6vlp1LH.js +0 -198
|
@@ -1,175 +1,164 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as a, Fragment as P, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as m, useEffect as g } from "react";
|
|
3
3
|
import Ge from "./hoc/withThemeProvider.js";
|
|
4
|
-
import { P as
|
|
5
|
-
import { I as
|
|
4
|
+
import { P as Ve } from "./PlayArrow-BCWGWaUq.js";
|
|
5
|
+
import { I as He } from "./Info-0vSsl6Bm.js";
|
|
6
6
|
import { G as Ee } from "./generic-token-B_ptO5yb.js";
|
|
7
|
-
import { PAYMENT_PROVIDER_PAYSAFE as
|
|
8
|
-
import {
|
|
9
|
-
import { u as
|
|
10
|
-
import { b as
|
|
11
|
-
import { M as
|
|
12
|
-
import { getCurrencySymbol as Oe, getNetworkBackGround as
|
|
7
|
+
import { PAYMENT_PROVIDER_PAYSAFE as Xe, ID_TOKEN_SYMBOL as Fe, FIAT_TO_EVER_ID as oe, FIAT_TO_TOKEN as se, ESTIMATE_TOOLTIP_TEXT as Je, PAYMENT_BANK as Ae, SEPA_ICON as Qe, VISA_ICON as Ze } from "./util/constants.js";
|
|
8
|
+
import { ae as z } from "./constants-BF50a6s-.js";
|
|
9
|
+
import { u as et } from "./index-v4KC1K_V.js";
|
|
10
|
+
import { b as tt, c as Ie, d as nt, a as Me, o as rt, g as it } from "./order-D-FBHreS.js";
|
|
11
|
+
import { M as at } from "./tooltip-Dv3Lfsa2.js";
|
|
12
|
+
import { getCurrencySymbol as Oe, getNetworkBackGround as ot } from "./util/functions.js";
|
|
13
13
|
import ce from "./components/Wallet/Shared/appButton.js";
|
|
14
|
-
import
|
|
15
|
-
import { s as c } from "./styles.module-
|
|
16
|
-
import { T as
|
|
17
|
-
import { B as
|
|
18
|
-
import { G as i } from "./Grid-
|
|
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 {
|
|
31
|
-
import { F as
|
|
32
|
-
import { F as
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
|
|
38
|
-
|
|
14
|
+
import st from "./components/Wallet/Shared/backBtn.js";
|
|
15
|
+
import { s as c } from "./styles.module-B-t8vvWh.js";
|
|
16
|
+
import { T as s } from "./Typography-BQDN44CM.js";
|
|
17
|
+
import { B as F } from "./Box-BwKpr_VI.js";
|
|
18
|
+
import { G as i } from "./Grid-CPkjiKqX.js";
|
|
19
|
+
import { C as E } from "./CircularProgress-Yx712vpT.js";
|
|
20
|
+
import { u as G, a as lt } from "./react-redux-C7I9-1M6.js";
|
|
21
|
+
import { f as ct } from "./fiatAssets-CTIJw9N4.js";
|
|
22
|
+
import { f as mt } from "./cryptoAssets-Dck03SPI.js";
|
|
23
|
+
import { u as dt } from "./wallet-BTc5u8j2.js";
|
|
24
|
+
import { useSnackBarContext as pt } from "./context/snackBarContext.js";
|
|
25
|
+
import { AuthContainer as ft } from "./components/Wallet/Shared/Container/index.js";
|
|
26
|
+
import ut from "./components/Wallet/Shared/CardPayment/index.js";
|
|
27
|
+
import ht from "./components/Shared/MinimalKyc/index.js";
|
|
28
|
+
import yt from "./components/Wallet/Shared/Input/index.js";
|
|
29
|
+
import xt from "./components/Wallet/Shared/TokenModal/index.js";
|
|
30
|
+
import { PaymentButton as _t } from "./components/Wallet/Shared/Order/paymentButton.js";
|
|
31
|
+
import { F as D } from "./FormControl-H4D1Z6Ov.js";
|
|
32
|
+
import { F as Q } from "./FilledInput-QaJVaeIX.js";
|
|
33
|
+
import { F as Re, I as Se } from "./TextField-DmiK1A_S.js";
|
|
34
|
+
import { S as ae } from "./Select-CGei0bav.js";
|
|
35
|
+
import { M as Z } from "./MenuItem-ByxiQtY2.js";
|
|
36
|
+
import { L as Pe } from "./ListItemIcon-D657XWHf.js";
|
|
37
|
+
import { I as ze } from "./IconButton-WneJM4uP.js";
|
|
38
|
+
const gt = ({
|
|
39
|
+
setScreen: A,
|
|
39
40
|
orderData: x,
|
|
40
41
|
dispatch: M,
|
|
41
42
|
fiatAssets: N,
|
|
42
43
|
cryptoAssets: d,
|
|
43
44
|
getCryptoAssets: n,
|
|
44
45
|
showAlertMessage: u,
|
|
45
|
-
partnerKey:
|
|
46
|
-
walletAddress:
|
|
46
|
+
partnerKey: L,
|
|
47
|
+
walletAddress: b,
|
|
47
48
|
setWalletAddress: I,
|
|
48
|
-
outputToken:
|
|
49
|
+
outputToken: o,
|
|
49
50
|
setOutputToken: O,
|
|
50
51
|
paymentId: p,
|
|
51
52
|
setPaymentId: w,
|
|
52
53
|
currencyId: y,
|
|
53
54
|
setCurrencyId: ee,
|
|
54
|
-
paymentOptions:
|
|
55
|
+
paymentOptions: V,
|
|
55
56
|
setPaymentOptions: te
|
|
56
57
|
}) => {
|
|
57
58
|
var be, ve;
|
|
58
|
-
const H =
|
|
59
|
+
const H = G(et), ne = H.data, { loader: re } = H, R = N.fiats, X = N.loader, Y = d.featureTokens.buy.list, q = d.featureTokens.buy.default, f = d.loader, S = x.loader, h = x.estimate[z], W = h.crypto_out_amount, We = h.conversion_price, Be = h.total_fee;
|
|
59
60
|
let me = 0, de = 0;
|
|
60
61
|
const pe = h.fee_breakdown;
|
|
61
62
|
for (let t = 0; t < pe.length; t++) {
|
|
62
63
|
const r = pe[t];
|
|
63
64
|
r.name === "ev_fee" ? me = Number(r.value) : r.name === "network_fee" && (de = Number(r.value));
|
|
64
65
|
}
|
|
65
|
-
const [ie, K] = m(!1), [
|
|
66
|
+
const [ie, K] = m(!1), [B, ke] = m([]), [fe, Te] = m(!1), [ue, $e] = m(50), [he, Le] = m(3e3), [U, Ye] = m(50), [ye, qe] = m(3e3), [xe, j] = m(""), [k, _e] = m(
|
|
66
67
|
h.fiat_amount || U.toString()
|
|
67
|
-
), [Ke, ge] = m(!1),
|
|
68
|
+
), [Ke, ge] = m(!1), T = R.find((t) => t.id === y), v = Oe(T == null ? void 0 : T.symbol);
|
|
68
69
|
g(() => {
|
|
69
70
|
const t = [];
|
|
70
|
-
for (let r = 0; r <
|
|
71
|
-
const
|
|
72
|
-
|
|
73
|
-
const
|
|
74
|
-
for (let
|
|
75
|
-
const Ce = {}, J =
|
|
76
|
-
J.payment_provider !==
|
|
71
|
+
for (let r = 0; r < R.length; r++) {
|
|
72
|
+
const l = {}, _ = R[r];
|
|
73
|
+
l.id = _.id, l.name = _.name, l.icon_uri = _.icon_uri, l.symbol = _.symbol, l.payment_options = [];
|
|
74
|
+
const C = _.payment_options;
|
|
75
|
+
for (let $ = 0; $ < C.length; $++) {
|
|
76
|
+
const Ce = {}, J = C[$];
|
|
77
|
+
J.payment_provider !== Xe && J.active && J.payin_allowed && (Object.assign(Ce, J), l.payment_options.push(Ce));
|
|
77
78
|
}
|
|
78
|
-
|
|
79
|
+
l.payment_options.length > 0 && t.push(l);
|
|
79
80
|
}
|
|
80
81
|
ke(t);
|
|
81
|
-
}, [
|
|
82
|
-
if (!y ||
|
|
82
|
+
}, [R]), g(() => {
|
|
83
|
+
if (!y || B.length === 0)
|
|
83
84
|
return;
|
|
84
85
|
const t = [];
|
|
85
|
-
for (let r = 0; r <
|
|
86
|
-
if (
|
|
87
|
-
const
|
|
86
|
+
for (let r = 0; r < B.length; r++) {
|
|
87
|
+
if (B[r].id === y) {
|
|
88
|
+
const l = B[r].payment_options;
|
|
88
89
|
let _ = !1;
|
|
89
|
-
for (let
|
|
90
|
-
const
|
|
91
|
-
|
|
90
|
+
for (let C = 0; C < l.length; C++) {
|
|
91
|
+
const $ = l[C];
|
|
92
|
+
$.active && (t.push($), l[C].id === p && (_ = !0));
|
|
92
93
|
}
|
|
93
94
|
_ || w(t[0].id);
|
|
94
95
|
}
|
|
95
96
|
te(t);
|
|
96
97
|
}
|
|
97
|
-
}, [y,
|
|
98
|
-
!
|
|
98
|
+
}, [y, B]), g(() => {
|
|
99
|
+
!o.symbol && q && q.id && O(q);
|
|
99
100
|
}, [q]), g(() => {
|
|
100
101
|
y && n && n(y);
|
|
101
|
-
}, [y,
|
|
102
|
-
if (
|
|
103
|
-
M(
|
|
102
|
+
}, [y, b]), g(() => {
|
|
103
|
+
if (o && o.id && k && p && y) {
|
|
104
|
+
M(tt(z)), K(!1), j("");
|
|
104
105
|
const t = setTimeout(() => {
|
|
105
106
|
Ue();
|
|
106
107
|
}, 1e3);
|
|
107
108
|
return () => clearTimeout(t);
|
|
108
109
|
}
|
|
109
|
-
}, [
|
|
110
|
+
}, [o, k, p, Y, y]);
|
|
110
111
|
const Ue = () => {
|
|
111
112
|
var _;
|
|
112
113
|
const t = parseFloat(k);
|
|
113
|
-
if (
|
|
114
|
+
if (o.symbol === Fe) {
|
|
114
115
|
if (ue > t)
|
|
115
|
-
return
|
|
116
|
-
`Minimum value should be greater than ${
|
|
116
|
+
return j(
|
|
117
|
+
`Minimum value should be greater than ${v + ue}`
|
|
117
118
|
), K(!0), !1;
|
|
118
119
|
if (he * 1 < t)
|
|
119
|
-
return
|
|
120
|
-
`Maximum value should be less than ${
|
|
120
|
+
return j(
|
|
121
|
+
`Maximum value should be less than ${v + he}`
|
|
121
122
|
), K(!0), !1;
|
|
122
123
|
} else {
|
|
123
124
|
if (U * 1 > t)
|
|
124
|
-
return
|
|
125
|
-
`Minimum value should be greater than ${
|
|
125
|
+
return j(
|
|
126
|
+
`Minimum value should be greater than ${v + U}`
|
|
126
127
|
), K(!0), !1;
|
|
127
128
|
if (ye * 1 < t)
|
|
128
|
-
return
|
|
129
|
-
`Maximum value should be less than ${
|
|
129
|
+
return j(
|
|
130
|
+
`Maximum value should be less than ${v + ye}`
|
|
130
131
|
), K(!0), !1;
|
|
131
132
|
}
|
|
132
|
-
const r =
|
|
133
|
+
const r = V.find((C) => C.id === p), l = r.payment_type;
|
|
133
134
|
M(
|
|
134
135
|
Ie(
|
|
135
136
|
{
|
|
136
|
-
apiKey:
|
|
137
|
-
transaction_type:
|
|
137
|
+
apiKey: L,
|
|
138
|
+
transaction_type: o.symbol === Fe ? oe : se,
|
|
138
139
|
coin_amount: k,
|
|
139
|
-
exchange:
|
|
140
|
-
payment_type:
|
|
141
|
-
fiat_ccy:
|
|
142
|
-
crypto_ccy:
|
|
143
|
-
network: (_ =
|
|
140
|
+
exchange: o.exchange,
|
|
141
|
+
payment_type: l,
|
|
142
|
+
fiat_ccy: T == null ? void 0 : T.symbol,
|
|
143
|
+
crypto_ccy: o.symbol,
|
|
144
|
+
network: (_ = o.network) == null ? void 0 : _.name,
|
|
144
145
|
payment_provider: r.payment_provider
|
|
145
146
|
},
|
|
146
147
|
z
|
|
147
148
|
)
|
|
148
149
|
);
|
|
149
|
-
}, Ve = ({ value: t, label: r }) => {
|
|
150
|
-
let a;
|
|
151
|
-
if (r === "credit_debit_card" ? (a = Ze, p === t && (a = et)) : (a = tt, p === t && (a = nt)), r)
|
|
152
|
-
return /* @__PURE__ */ e(
|
|
153
|
-
b,
|
|
154
|
-
{
|
|
155
|
-
mt: 0.5,
|
|
156
|
-
sx: { cursor: "pointer" },
|
|
157
|
-
onClick: () => w(t * 1),
|
|
158
|
-
children: /* @__PURE__ */ e("img", { src: a, alt: "payment", width: "90%" })
|
|
159
|
-
}
|
|
160
|
-
);
|
|
161
150
|
};
|
|
162
151
|
g(() => {
|
|
163
152
|
const t = x.types.length;
|
|
164
153
|
if (t > 0)
|
|
165
154
|
for (let r = 0; r < t; r++) {
|
|
166
|
-
const
|
|
167
|
-
if (
|
|
168
|
-
|
|
155
|
+
const l = x.types[r];
|
|
156
|
+
if (l.type === oe) {
|
|
157
|
+
$e(parseFloat(l.min_deposit_amount)), Le(parseFloat(l.max_deposit_amount));
|
|
169
158
|
break;
|
|
170
159
|
}
|
|
171
|
-
if (
|
|
172
|
-
|
|
160
|
+
if (l.type === se) {
|
|
161
|
+
Ye(parseFloat(l.min_deposit_amount)), qe(parseFloat(l.max_deposit_amount));
|
|
173
162
|
break;
|
|
174
163
|
}
|
|
175
164
|
}
|
|
@@ -178,28 +167,28 @@ const Ct = ({
|
|
|
178
167
|
const r = t.target.value;
|
|
179
168
|
r ? /^([0-9.]+)$/.test(r) && _e(r) : _e("");
|
|
180
169
|
}, Ne = (t) => {
|
|
181
|
-
const r =
|
|
170
|
+
const r = Y.find((l) => l.symbol === t);
|
|
182
171
|
O(r);
|
|
183
172
|
}, De = () => {
|
|
184
|
-
if (!
|
|
173
|
+
if (!o.id)
|
|
185
174
|
return u({ message: "Please select token" }), !1;
|
|
186
175
|
if (!p)
|
|
187
176
|
return u({ message: "Please select payment method" }), !1;
|
|
188
177
|
if (!k)
|
|
189
178
|
return u({ message: "Please enter amount" }), !1;
|
|
190
|
-
if (!
|
|
179
|
+
if (!b)
|
|
191
180
|
return u({ message: "Please select wallet address" }), !1;
|
|
192
|
-
if (!
|
|
181
|
+
if (!W)
|
|
193
182
|
return u({
|
|
194
183
|
message: "Please wait for the estimate to be calculated and then press next"
|
|
195
184
|
}), !1;
|
|
196
|
-
|
|
185
|
+
A(le);
|
|
197
186
|
};
|
|
198
|
-
return /* @__PURE__ */
|
|
199
|
-
/* @__PURE__ */ e(i, { container: !0, children: /* @__PURE__ */ e(i, { size: { xs: 6 }, children: /* @__PURE__ */ e(
|
|
200
|
-
/* @__PURE__ */
|
|
201
|
-
/* @__PURE__ */ e(i, { size: { xs: 6 }, children: /* @__PURE__ */
|
|
202
|
-
|
|
187
|
+
return /* @__PURE__ */ a(P, { children: [
|
|
188
|
+
/* @__PURE__ */ e(i, { container: !0, children: /* @__PURE__ */ e(i, { size: { xs: 6 }, children: /* @__PURE__ */ e(s, { className: c.label, variant: "caption", component: "p", children: "You Pay" }) }) }),
|
|
189
|
+
/* @__PURE__ */ a(i, { mt: 0.5, spacing: 0, container: !0, className: c["field-set"], children: [
|
|
190
|
+
/* @__PURE__ */ e(i, { size: { xs: 6 }, children: /* @__PURE__ */ a(
|
|
191
|
+
D,
|
|
203
192
|
{
|
|
204
193
|
variant: "filled",
|
|
205
194
|
className: `${c.amount} ${c["fiat-field"]}`,
|
|
@@ -218,18 +207,18 @@ const Ct = ({
|
|
|
218
207
|
fullWidth: !0
|
|
219
208
|
}
|
|
220
209
|
),
|
|
221
|
-
/* @__PURE__ */ e(
|
|
210
|
+
/* @__PURE__ */ e(Re, { className: c["amount-symbol"], children: " " })
|
|
222
211
|
]
|
|
223
212
|
}
|
|
224
213
|
) }),
|
|
225
214
|
/* @__PURE__ */ e(i, { size: { xs: 6 }, className: "content-center", children: X ? /* @__PURE__ */ e(
|
|
226
|
-
|
|
215
|
+
E,
|
|
227
216
|
{
|
|
228
217
|
sx: { ml: 1 },
|
|
229
218
|
size: 30
|
|
230
219
|
}
|
|
231
220
|
) : /* @__PURE__ */ e(
|
|
232
|
-
|
|
221
|
+
D,
|
|
233
222
|
{
|
|
234
223
|
variant: "filled",
|
|
235
224
|
className: `text-left ${c["fiat-picker"]}`,
|
|
@@ -247,7 +236,7 @@ const Ct = ({
|
|
|
247
236
|
fontSize: "21px",
|
|
248
237
|
fontWeight: "bold",
|
|
249
238
|
color: "#16359d",
|
|
250
|
-
padding: "
|
|
239
|
+
padding: "28px 12px 23px !important"
|
|
251
240
|
},
|
|
252
241
|
".dropdown-list-item, span": {
|
|
253
242
|
position: "relative",
|
|
@@ -262,8 +251,8 @@ const Ct = ({
|
|
|
262
251
|
displayEmpty: !0,
|
|
263
252
|
onChange: (t) => ee(t.target.value),
|
|
264
253
|
error: ie,
|
|
265
|
-
children:
|
|
266
|
-
/* @__PURE__ */ e(
|
|
254
|
+
children: B.map((t) => /* @__PURE__ */ a(Z, { value: t.id, children: [
|
|
255
|
+
/* @__PURE__ */ e(Pe, { className: c["dropdown-list-item"], children: /* @__PURE__ */ e(
|
|
267
256
|
"img",
|
|
268
257
|
{
|
|
269
258
|
src: t.icon_uri,
|
|
@@ -281,22 +270,24 @@ const Ct = ({
|
|
|
281
270
|
)
|
|
282
271
|
}
|
|
283
272
|
) }),
|
|
284
|
-
xe && /* @__PURE__ */ e(
|
|
273
|
+
xe && /* @__PURE__ */ e(s, { variant: "caption", sx: { color: "red" }, children: /* @__PURE__ */ e("strong", { children: xe }) })
|
|
285
274
|
] }),
|
|
286
|
-
/* @__PURE__ */
|
|
287
|
-
/* @__PURE__ */ e(
|
|
288
|
-
X ? /* @__PURE__ */ e(
|
|
289
|
-
|
|
275
|
+
/* @__PURE__ */ a(F, { className: "text-left", mt: 3, children: [
|
|
276
|
+
/* @__PURE__ */ e(s, { variant: "sm", fontWeight: 600, children: "Select Payment Method" }),
|
|
277
|
+
X ? /* @__PURE__ */ e(E, { sx: { ml: 1, mt: 3 }, size: 50 }) : /* @__PURE__ */ e(i, { mt: 0.5, container: !0, children: V.map((t) => /* @__PURE__ */ e(i, { size: { xs: 2.5 }, children: /* @__PURE__ */ e(
|
|
278
|
+
_t,
|
|
290
279
|
{
|
|
291
280
|
label: t.payment_type,
|
|
292
|
-
value: t.id
|
|
281
|
+
value: t.id,
|
|
282
|
+
paymentId: p,
|
|
283
|
+
setPaymentId: w
|
|
293
284
|
}
|
|
294
285
|
) }, t.id)) })
|
|
295
286
|
] }),
|
|
296
|
-
/* @__PURE__ */ e(i, { mt: 4, container: !0, children: /* @__PURE__ */ e(i, { size: { xs: 4 }, children: /* @__PURE__ */ e(
|
|
297
|
-
/* @__PURE__ */
|
|
298
|
-
/* @__PURE__ */ e(i, { size: { xs: 6 }, children: /* @__PURE__ */
|
|
299
|
-
|
|
287
|
+
/* @__PURE__ */ e(i, { mt: 4, container: !0, children: /* @__PURE__ */ e(i, { size: { xs: 4 }, children: /* @__PURE__ */ e(s, { className: c.label, variant: "caption", component: "p", children: "You Receive" }) }) }),
|
|
288
|
+
/* @__PURE__ */ a(i, { mt: 0.5, container: !0, className: c["field-set"], children: [
|
|
289
|
+
/* @__PURE__ */ e(i, { size: { xs: 6 }, children: /* @__PURE__ */ a(
|
|
290
|
+
D,
|
|
300
291
|
{
|
|
301
292
|
className: `${c.amount} ${c["fiat-field"]}`,
|
|
302
293
|
fullWidth: !0,
|
|
@@ -305,31 +296,31 @@ const Ct = ({
|
|
|
305
296
|
Q,
|
|
306
297
|
{
|
|
307
298
|
disableUnderline: !0,
|
|
308
|
-
value:
|
|
299
|
+
value: W && parseFloat((+W * 1).toFixed(5)),
|
|
309
300
|
type: "text",
|
|
310
301
|
readOnly: !0,
|
|
311
302
|
fullWidth: !0
|
|
312
303
|
}
|
|
313
304
|
),
|
|
314
|
-
/* @__PURE__ */ e(
|
|
305
|
+
/* @__PURE__ */ e(Re, { className: c["amount-symbol"], children: +((be = h == null ? void 0 : h.output_token) == null ? void 0 : be.fiat_amount) * 1 > 0 ? v + (+((ve = h == null ? void 0 : h.output_token) == null ? void 0 : ve.fiat_amount) * 1).toFixed(2) : /* @__PURE__ */ e(P, { children: " " }) })
|
|
315
306
|
]
|
|
316
307
|
}
|
|
317
308
|
) }),
|
|
318
|
-
/* @__PURE__ */ e(i, { size: { xs: 6 }, className: "content-center", children: f ? /* @__PURE__ */ e(
|
|
319
|
-
|
|
309
|
+
/* @__PURE__ */ e(i, { size: { xs: 6 }, className: "content-center", children: f ? /* @__PURE__ */ e(E, { sx: { ml: 1 }, size: 30 }) : /* @__PURE__ */ a(
|
|
310
|
+
D,
|
|
320
311
|
{
|
|
321
312
|
variant: "filled",
|
|
322
313
|
className: `text-left ${c["crypto-picker"]}`,
|
|
323
314
|
fullWidth: !0,
|
|
324
315
|
children: [
|
|
325
|
-
(
|
|
316
|
+
(o == null ? void 0 : o.network) && /* @__PURE__ */ e(
|
|
326
317
|
Se,
|
|
327
318
|
{
|
|
328
|
-
className: `${c["network-label"]} ${c[
|
|
329
|
-
children:
|
|
319
|
+
className: `${c["network-label"]} ${c[ot(o == null ? void 0 : o.network.name)]}`,
|
|
320
|
+
children: o == null ? void 0 : o.network.name
|
|
330
321
|
}
|
|
331
322
|
),
|
|
332
|
-
/* @__PURE__ */
|
|
323
|
+
/* @__PURE__ */ a(
|
|
333
324
|
ae,
|
|
334
325
|
{
|
|
335
326
|
input: /* @__PURE__ */ e(Q, { disableUnderline: !0 }),
|
|
@@ -342,7 +333,7 @@ const Ct = ({
|
|
|
342
333
|
fontSize: "21px",
|
|
343
334
|
fontWeight: "bold",
|
|
344
335
|
color: "#16359d",
|
|
345
|
-
padding: "
|
|
336
|
+
padding: "28px 12px 23px !important"
|
|
346
337
|
},
|
|
347
338
|
".dropdown-list-item, span": {
|
|
348
339
|
position: "relative",
|
|
@@ -354,7 +345,7 @@ const Ct = ({
|
|
|
354
345
|
},
|
|
355
346
|
className: "buy-select-dd",
|
|
356
347
|
variant: "filled",
|
|
357
|
-
value:
|
|
348
|
+
value: o.symbol,
|
|
358
349
|
displayEmpty: !0,
|
|
359
350
|
onChange: (t) => Ne(t.target.value),
|
|
360
351
|
onOpen: (t) => {
|
|
@@ -364,8 +355,8 @@ const Ct = ({
|
|
|
364
355
|
open: !1,
|
|
365
356
|
children: [
|
|
366
357
|
/* @__PURE__ */ e(Z, { value: "", children: "Please select" }),
|
|
367
|
-
|
|
368
|
-
/* @__PURE__ */ e(
|
|
358
|
+
Y.map((t) => /* @__PURE__ */ a(Z, { value: t.symbol, children: [
|
|
359
|
+
/* @__PURE__ */ e(Pe, { className: c["dropdown-list-item"], children: /* @__PURE__ */ e(
|
|
369
360
|
"img",
|
|
370
361
|
{
|
|
371
362
|
src: t.icon_uri,
|
|
@@ -386,18 +377,18 @@ const Ct = ({
|
|
|
386
377
|
}
|
|
387
378
|
) })
|
|
388
379
|
] }),
|
|
389
|
-
/* @__PURE__ */ e(
|
|
390
|
-
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 12 }, children: /* @__PURE__ */
|
|
380
|
+
/* @__PURE__ */ e(F, { mt: 3, sx: { color: "#1A202C" }, children: /* @__PURE__ */ a(i, { container: !0, children: [
|
|
381
|
+
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 12 }, children: /* @__PURE__ */ a(
|
|
391
382
|
ze,
|
|
392
383
|
{
|
|
393
384
|
sx: { padding: "0" },
|
|
394
|
-
onClick: () =>
|
|
385
|
+
onClick: () => Te((t) => !t),
|
|
395
386
|
disableFocusRipple: !0,
|
|
396
387
|
disableRipple: !0,
|
|
397
388
|
children: [
|
|
398
|
-
/* @__PURE__ */ e(
|
|
389
|
+
/* @__PURE__ */ e(s, { variant: "caption", fontWeight: 700, children: "Fee Calculation" }),
|
|
399
390
|
/* @__PURE__ */ e(
|
|
400
|
-
|
|
391
|
+
Ve,
|
|
401
392
|
{
|
|
402
393
|
sx: {
|
|
403
394
|
transform: `rotate(${fe ? "90" : "0"}deg)`,
|
|
@@ -408,17 +399,24 @@ const Ct = ({
|
|
|
408
399
|
]
|
|
409
400
|
}
|
|
410
401
|
) }),
|
|
411
|
-
fe && /* @__PURE__ */
|
|
412
|
-
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(
|
|
413
|
-
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */
|
|
414
|
-
|
|
415
|
-
S ? /* @__PURE__ */ e(
|
|
402
|
+
fe && /* @__PURE__ */ a(P, { children: [
|
|
403
|
+
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Everest Fee" }) }),
|
|
404
|
+
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
405
|
+
v,
|
|
406
|
+
S ? /* @__PURE__ */ e(
|
|
407
|
+
E,
|
|
408
|
+
{
|
|
409
|
+
sx: { ml: 1 },
|
|
410
|
+
size: 15,
|
|
411
|
+
color: "primary"
|
|
412
|
+
}
|
|
413
|
+
) : me.toFixed(2)
|
|
416
414
|
] }) }),
|
|
417
|
-
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(
|
|
418
|
-
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */
|
|
419
|
-
|
|
415
|
+
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Network Fee" }) }),
|
|
416
|
+
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
417
|
+
v,
|
|
420
418
|
S ? /* @__PURE__ */ e(
|
|
421
|
-
|
|
419
|
+
E,
|
|
422
420
|
{
|
|
423
421
|
sx: { ml: 1 },
|
|
424
422
|
size: 15,
|
|
@@ -427,23 +425,23 @@ const Ct = ({
|
|
|
427
425
|
) : de.toFixed(2)
|
|
428
426
|
] }) })
|
|
429
427
|
] }),
|
|
430
|
-
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(
|
|
431
|
-
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */
|
|
432
|
-
|
|
433
|
-
S ? /* @__PURE__ */ e(
|
|
428
|
+
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Total Fees" }) }),
|
|
429
|
+
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
430
|
+
v,
|
|
431
|
+
S ? /* @__PURE__ */ e(E, { sx: { ml: 1 }, size: 15, color: "primary" }) : Number(Be).toFixed(2)
|
|
434
432
|
] }) }),
|
|
435
|
-
|
|
436
|
-
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */
|
|
433
|
+
o && /* @__PURE__ */ a(P, { children: [
|
|
434
|
+
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
437
435
|
"1 ",
|
|
438
|
-
|
|
436
|
+
o.symbol,
|
|
439
437
|
" ",
|
|
440
438
|
/* @__PURE__ */ e(
|
|
441
|
-
|
|
439
|
+
at,
|
|
442
440
|
{
|
|
443
|
-
title:
|
|
441
|
+
title: Je,
|
|
444
442
|
placement: "right",
|
|
445
443
|
children: /* @__PURE__ */ e(ze, { className: "info-fee-icon", children: /* @__PURE__ */ e(
|
|
446
|
-
|
|
444
|
+
He,
|
|
447
445
|
{
|
|
448
446
|
sx: {
|
|
449
447
|
fontSize: "14px"
|
|
@@ -453,60 +451,60 @@ const Ct = ({
|
|
|
453
451
|
}
|
|
454
452
|
)
|
|
455
453
|
] }) }),
|
|
456
|
-
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */
|
|
457
|
-
|
|
454
|
+
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
455
|
+
v,
|
|
458
456
|
S ? /* @__PURE__ */ e(
|
|
459
|
-
|
|
457
|
+
E,
|
|
460
458
|
{
|
|
461
459
|
sx: { ml: 1 },
|
|
462
460
|
size: 15,
|
|
463
461
|
color: "primary"
|
|
464
462
|
}
|
|
465
|
-
) : Number(
|
|
463
|
+
) : Number(We).toFixed(2)
|
|
466
464
|
] }) })
|
|
467
465
|
] })
|
|
468
466
|
] }) }),
|
|
469
|
-
/* @__PURE__ */ e(
|
|
470
|
-
!
|
|
467
|
+
/* @__PURE__ */ e(F, { sx: { alignItems: "left", width: "100%" }, children: re ? /* @__PURE__ */ e(F, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(E, {}) }) : /* @__PURE__ */ e(P, { children: /* @__PURE__ */ a(D, { variant: "filled", fullWidth: !0, children: [
|
|
468
|
+
!b && /* @__PURE__ */ e(Se, { children: "Select wallet address" }),
|
|
471
469
|
/* @__PURE__ */ e(
|
|
472
470
|
ae,
|
|
473
471
|
{
|
|
474
|
-
value:
|
|
472
|
+
value: b,
|
|
475
473
|
onChange: (t) => I && I(t.target.value),
|
|
476
474
|
children: ne.map((t, r) => /* @__PURE__ */ e(Z, { value: t.address, children: t.name + "(" + t.address + ")" }, r))
|
|
477
475
|
}
|
|
478
476
|
)
|
|
479
477
|
] }) }) }),
|
|
480
|
-
/* @__PURE__ */ e(
|
|
478
|
+
/* @__PURE__ */ e(F, { mt: 4, children: /* @__PURE__ */ e(
|
|
481
479
|
ce,
|
|
482
480
|
{
|
|
483
481
|
onClick: De,
|
|
484
|
-
disabled: ie || !
|
|
482
|
+
disabled: ie || !W,
|
|
485
483
|
fullWidth: !0,
|
|
486
484
|
children: /* @__PURE__ */ e("strong", { children: "Next" })
|
|
487
485
|
}
|
|
488
486
|
) }),
|
|
489
487
|
/* @__PURE__ */ e(
|
|
490
|
-
|
|
488
|
+
xt,
|
|
491
489
|
{
|
|
492
490
|
open: Ke,
|
|
493
491
|
setModal: ge,
|
|
494
492
|
loader: f,
|
|
495
|
-
tokenList:
|
|
493
|
+
tokenList: Y,
|
|
496
494
|
tokenSelect: Ne
|
|
497
495
|
}
|
|
498
496
|
)
|
|
499
497
|
] });
|
|
500
|
-
},
|
|
501
|
-
setScreen:
|
|
498
|
+
}, Nt = ({
|
|
499
|
+
setScreen: A,
|
|
502
500
|
partnerKey: x,
|
|
503
501
|
orderData: M,
|
|
504
502
|
dispatch: N,
|
|
505
503
|
walletAddress: d
|
|
506
504
|
}) => {
|
|
507
|
-
const n = M.estimate[z], u = M.create.order_id,
|
|
505
|
+
const n = M.estimate[z], u = M.create.order_id, L = M.loader, b = n.fiat_amount, I = Oe(n.fiat_currency), [o, O] = m(!1);
|
|
508
506
|
g(() => {
|
|
509
|
-
u &&
|
|
507
|
+
u && o && A(bt);
|
|
510
508
|
}, [u]), g(() => {
|
|
511
509
|
p();
|
|
512
510
|
}, []);
|
|
@@ -529,46 +527,46 @@ const Ct = ({
|
|
|
529
527
|
);
|
|
530
528
|
}, w = () => {
|
|
531
529
|
N(
|
|
532
|
-
|
|
530
|
+
nt({
|
|
533
531
|
apiKey: x,
|
|
534
532
|
quoteId: n.quote_id,
|
|
535
533
|
walletAddress: d
|
|
536
534
|
})
|
|
537
535
|
), O(!0);
|
|
538
536
|
};
|
|
539
|
-
return /* @__PURE__ */
|
|
537
|
+
return /* @__PURE__ */ a(P, { children: [
|
|
540
538
|
/* @__PURE__ */ e(
|
|
541
|
-
|
|
539
|
+
st,
|
|
542
540
|
{
|
|
543
|
-
onClickHandler: () =>
|
|
541
|
+
onClickHandler: () => A(we),
|
|
544
542
|
backBtnText: "Confirm Your Order"
|
|
545
543
|
}
|
|
546
544
|
),
|
|
547
|
-
/* @__PURE__ */ e(
|
|
548
|
-
n.payment_type && /* @__PURE__ */
|
|
545
|
+
/* @__PURE__ */ e(s, { mt: 2, variant: "sm", fontWeight: 600, children: "Using payment method" }),
|
|
546
|
+
n.payment_type && /* @__PURE__ */ a(F, { mt: 2, className: c["confirm-payment"], children: [
|
|
549
547
|
/* @__PURE__ */ e(
|
|
550
548
|
"img",
|
|
551
549
|
{
|
|
552
|
-
src: n.payment_type ===
|
|
550
|
+
src: n.payment_type === Ae ? Qe : Ze,
|
|
553
551
|
width: 100,
|
|
554
552
|
alt: "payment"
|
|
555
553
|
}
|
|
556
554
|
),
|
|
557
|
-
/* @__PURE__ */ e(
|
|
555
|
+
/* @__PURE__ */ e(s, { variant: "caption", component: "span", children: /* @__PURE__ */ e("strong", { children: n.payment_type === Ae ? "Bank Account" : "Debit Card" }) })
|
|
558
556
|
] }),
|
|
559
|
-
/* @__PURE__ */ e(
|
|
557
|
+
/* @__PURE__ */ e(s, { mt: 4, variant: "sm", fontWeight: 600, children: "To Wallet Address" }),
|
|
560
558
|
/* @__PURE__ */ e(
|
|
561
|
-
|
|
559
|
+
F,
|
|
562
560
|
{
|
|
563
561
|
mt: 2,
|
|
564
562
|
className: c["confirm-payment"],
|
|
565
563
|
sx: { width: "100% !important" },
|
|
566
|
-
children: /* @__PURE__ */ e(
|
|
564
|
+
children: /* @__PURE__ */ e(s, { variant: "caption", component: "p", children: /* @__PURE__ */ e("strong", { children: d }) })
|
|
567
565
|
}
|
|
568
566
|
),
|
|
569
|
-
/* @__PURE__ */ e(
|
|
570
|
-
/* @__PURE__ */ e(
|
|
571
|
-
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */
|
|
567
|
+
/* @__PURE__ */ e(s, { mt: 3, variant: "sm", fontWeight: 600, component: "p", children: "Order Estimate Details" }),
|
|
568
|
+
/* @__PURE__ */ e(F, { sx: { color: "#A6A6A6" }, children: /* @__PURE__ */ a(i, { container: !0, children: [
|
|
569
|
+
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
572
570
|
n.crypto_currency.toUpperCase(),
|
|
573
571
|
" @",
|
|
574
572
|
" ",
|
|
@@ -586,84 +584,84 @@ const Ct = ({
|
|
|
586
584
|
children: n.network
|
|
587
585
|
}
|
|
588
586
|
) }),
|
|
589
|
-
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */
|
|
587
|
+
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
590
588
|
Number(n.crypto_out_amount).toFixed(5),
|
|
591
589
|
" ",
|
|
592
590
|
n.crypto_currency.toUpperCase()
|
|
593
591
|
] }) }),
|
|
594
|
-
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */
|
|
595
|
-
(Number(
|
|
592
|
+
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
593
|
+
(Number(b) - Number(n.total_fee)).toFixed(2),
|
|
596
594
|
" ",
|
|
597
595
|
n.fiat_currency
|
|
598
596
|
] }) }),
|
|
599
|
-
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(
|
|
600
|
-
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */
|
|
597
|
+
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Total Fees" }) }),
|
|
598
|
+
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
601
599
|
Number(n.total_fee).toFixed(2),
|
|
602
600
|
" ",
|
|
603
601
|
n.fiat_currency
|
|
604
602
|
] }) }),
|
|
605
|
-
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(
|
|
606
|
-
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ e(
|
|
603
|
+
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: /* @__PURE__ */ e("strong", { children: "Order Total" }) }) }),
|
|
604
|
+
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: /* @__PURE__ */ a("strong", { children: [
|
|
607
605
|
I,
|
|
608
|
-
Number(
|
|
606
|
+
Number(b).toFixed(2),
|
|
609
607
|
" ",
|
|
610
608
|
n.fiat_currency
|
|
611
609
|
] }) }) })
|
|
612
610
|
] }) }),
|
|
613
|
-
/* @__PURE__ */ e(
|
|
611
|
+
/* @__PURE__ */ e(F, { mt: 4, children: /* @__PURE__ */ e(
|
|
614
612
|
ce,
|
|
615
613
|
{
|
|
616
614
|
onClick: w,
|
|
617
|
-
disabled:
|
|
615
|
+
disabled: L,
|
|
618
616
|
fullWidth: !0,
|
|
619
|
-
children: /* @__PURE__ */ e("strong", { children:
|
|
620
|
-
/* @__PURE__ */ e(
|
|
617
|
+
children: /* @__PURE__ */ e("strong", { children: L ? /* @__PURE__ */ a(P, { children: [
|
|
618
|
+
/* @__PURE__ */ e(E, { size: 15, color: "inherit" }),
|
|
621
619
|
" Processing..."
|
|
622
620
|
] }) : "Payment Details" })
|
|
623
621
|
}
|
|
624
622
|
) })
|
|
625
623
|
] });
|
|
626
|
-
}, we = "FORM_SCREEN", le = "CONFIRM_SCREEN",
|
|
627
|
-
const { showAlertMessage: N } =
|
|
624
|
+
}, we = "FORM_SCREEN", le = "CONFIRM_SCREEN", bt = "PAYMENT_SCREEN", vt = "MINIMAL_KYC_SCREEN", Ct = ({ partnerKey: A, baseUrl: x, checkoutSdkKey: M }) => {
|
|
625
|
+
const { showAlertMessage: N } = pt(), d = lt(), n = G((f) => f.order), u = n.error, b = G(
|
|
628
626
|
(f) => f.user.profile
|
|
629
|
-
).everWalletAddress, I =
|
|
627
|
+
).everWalletAddress, I = G((f) => f.fiatAssets), o = G(
|
|
630
628
|
(f) => f.cryptoAssets
|
|
631
629
|
), [O, p] = m(we), [w, y] = m({
|
|
632
630
|
symbol: ""
|
|
633
|
-
}), [ee,
|
|
631
|
+
}), [ee, V] = m(0), [te, H] = m(1), [ne, re] = m([]), [R, X] = m(b);
|
|
634
632
|
return g(() => {
|
|
635
633
|
u && N({ message: u });
|
|
636
634
|
}, [u]), g(() => {
|
|
637
|
-
n.initMinimalKyc && (N({ message: u, type: "info" }), p(
|
|
638
|
-
}, [n.initMinimalKyc]), g(() => (d(
|
|
639
|
-
d(
|
|
640
|
-
}), []), /* @__PURE__ */ e(
|
|
635
|
+
n.initMinimalKyc && (N({ message: u, type: "info" }), p(vt));
|
|
636
|
+
}, [n.initMinimalKyc]), g(() => (d(ct()), d(Me(se)), d(Me(oe)), d(dt()), () => {
|
|
637
|
+
d(rt());
|
|
638
|
+
}), []), /* @__PURE__ */ e(ft, { addPadding: !0, children: {
|
|
641
639
|
FORM_SCREEN: /* @__PURE__ */ e(
|
|
642
|
-
|
|
640
|
+
gt,
|
|
643
641
|
{
|
|
644
642
|
showAlertMessage: N,
|
|
645
643
|
setScreen: p,
|
|
646
644
|
fiatAssets: I,
|
|
647
|
-
cryptoAssets:
|
|
645
|
+
cryptoAssets: o,
|
|
648
646
|
orderData: n,
|
|
649
647
|
dispatch: d,
|
|
650
648
|
getCryptoAssets: (f) => {
|
|
651
649
|
d(
|
|
652
|
-
|
|
650
|
+
mt({
|
|
653
651
|
type: z,
|
|
654
652
|
id: f,
|
|
655
|
-
partnerKey:
|
|
656
|
-
walletAddress:
|
|
653
|
+
partnerKey: A,
|
|
654
|
+
walletAddress: R
|
|
657
655
|
})
|
|
658
656
|
);
|
|
659
657
|
},
|
|
660
|
-
partnerKey:
|
|
661
|
-
walletAddress:
|
|
658
|
+
partnerKey: A,
|
|
659
|
+
walletAddress: R,
|
|
662
660
|
setWalletAddress: X,
|
|
663
661
|
outputToken: w,
|
|
664
662
|
setOutputToken: y,
|
|
665
663
|
paymentId: ee,
|
|
666
|
-
setPaymentId:
|
|
664
|
+
setPaymentId: V,
|
|
667
665
|
currencyId: te,
|
|
668
666
|
setCurrencyId: H,
|
|
669
667
|
paymentOptions: ne,
|
|
@@ -671,23 +669,23 @@ const Ct = ({
|
|
|
671
669
|
}
|
|
672
670
|
),
|
|
673
671
|
CONFIRM_SCREEN: /* @__PURE__ */ e(
|
|
674
|
-
|
|
672
|
+
Nt,
|
|
675
673
|
{
|
|
676
|
-
partnerKey:
|
|
674
|
+
partnerKey: A,
|
|
677
675
|
setScreen: p,
|
|
678
676
|
showAlertMessage: N,
|
|
679
677
|
orderData: n,
|
|
680
678
|
dispatch: d,
|
|
681
|
-
walletAddress:
|
|
679
|
+
walletAddress: R
|
|
682
680
|
}
|
|
683
681
|
),
|
|
684
682
|
PAYMENT_SCREEN: /* @__PURE__ */ e(
|
|
685
|
-
|
|
683
|
+
ut,
|
|
686
684
|
{
|
|
687
685
|
checkoutKey: M,
|
|
688
686
|
orderData: n,
|
|
689
687
|
initPaymentRequest: (f) => {
|
|
690
|
-
const S = n.estimate[z], h = n.create.order_id,
|
|
688
|
+
const S = n.estimate[z], h = n.create.order_id, W = {
|
|
691
689
|
token: f,
|
|
692
690
|
amount: Number(S.fiat_amount),
|
|
693
691
|
currency: S.fiat_currency,
|
|
@@ -695,15 +693,15 @@ const Ct = ({
|
|
|
695
693
|
success_url: `${x}/dashboard?payment=success`,
|
|
696
694
|
fail_url: `${x}/dashboard?payment=failed`
|
|
697
695
|
};
|
|
698
|
-
d(
|
|
696
|
+
d(it(W));
|
|
699
697
|
},
|
|
700
698
|
backBtnFunc: () => p(le)
|
|
701
699
|
}
|
|
702
700
|
),
|
|
703
701
|
MINIMAL_KYC_SCREEN: /* @__PURE__ */ e(
|
|
704
|
-
|
|
702
|
+
ht,
|
|
705
703
|
{
|
|
706
|
-
inputComponent:
|
|
704
|
+
inputComponent: yt,
|
|
707
705
|
buttonComponent: ce,
|
|
708
706
|
onComplete: () => {
|
|
709
707
|
p(le);
|
|
@@ -711,13 +709,13 @@ const Ct = ({
|
|
|
711
709
|
}
|
|
712
710
|
)
|
|
713
711
|
}[O] });
|
|
714
|
-
},
|
|
712
|
+
}, ln = Ge(Ct);
|
|
715
713
|
export {
|
|
716
|
-
|
|
714
|
+
gt as B,
|
|
717
715
|
le as C,
|
|
718
716
|
we as F,
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
717
|
+
vt as M,
|
|
718
|
+
bt as P,
|
|
719
|
+
Nt as a,
|
|
720
|
+
ln as i
|
|
723
721
|
};
|