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
package/dist/index-BB3__zW3.js
DELETED
|
@@ -1,644 +0,0 @@
|
|
|
1
|
-
import { jsxs as a, Fragment as B, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useState as _, useEffect as y } from "react";
|
|
3
|
-
import Se from "./hoc/withThemeProvider.js";
|
|
4
|
-
import de from "./components/Wallet/Shared/backBtn.js";
|
|
5
|
-
import { DIALOG_SUCCESS_ICON as Re, PAYMENT_BANK as Q, SEPA_ICON as ze, VISA_ICON as Te, PAYMENT_PROVIDER_PAYSAFE as Be, FIAT_WITHDRAW as ee, EURO_ISO3 as Ie, US_DOLLAR_ISO3 as ce, VISA_PAYMENT as Pe, VISA_PAYMENT_ACTIVE as we, SEPA_PAYMENT as We, SEPA_PAYMENT_ACTIVE as Oe, SYNTHETIC_EUR as Me, SYNTHETIC_USD as Ye } from "./util/constants.js";
|
|
6
|
-
import { s as f } from "./styles.module-BFHktEw2.js";
|
|
7
|
-
import ne from "./components/Wallet/Shared/appButton.js";
|
|
8
|
-
import { ai as j } from "./constants-CsMPRK0U.js";
|
|
9
|
-
import { b as pe } from "./index-f15o1nhn.js";
|
|
10
|
-
import { o as te, c as ue, d as Le, h as qe, b as Ke, a as $e } from "./order-DmTHC7ZG.js";
|
|
11
|
-
import { u as U, a as he } from "./react-redux-C7I9-1M6.js";
|
|
12
|
-
import { f as Ue } from "./fiatAssets-DVHfFafS.js";
|
|
13
|
-
import { h as He, u as Ve } from "./wallet-DDW5KCHp.js";
|
|
14
|
-
import { useSnackBarContext as je } from "./context/snackBarContext.js";
|
|
15
|
-
import { AuthContainer as Ge } from "./components/Wallet/Shared/Container/index.js";
|
|
16
|
-
import Xe from "./components/Shared/MinimalKyc/index.js";
|
|
17
|
-
import Je from "./components/Wallet/Shared/Input/index.js";
|
|
18
|
-
import { A as Qe } from "./ArrowRight-rYkfGJuF.js";
|
|
19
|
-
import { C as Ze } from "./CheckCircle-CyxKX1TY.js";
|
|
20
|
-
import De from "./components/Wallet/Shared/addBank.js";
|
|
21
|
-
import { u as et } from "./bank-BC4YNBRb.js";
|
|
22
|
-
import tt from "./components/Wallet/Shared/connectPlaidBank.js";
|
|
23
|
-
import { B as C } from "./Box-B12x52NC.js";
|
|
24
|
-
import { C as F } from "./CircularProgress-t8uGhLMo.js";
|
|
25
|
-
import { G as n } from "./Grid-BXyV_lM8.js";
|
|
26
|
-
import { T as i } from "./Typography-DBlMiOti.js";
|
|
27
|
-
import { P as nt } from "./PlayArrow-DRCGjsrx.js";
|
|
28
|
-
import { G as it } from "./generic-token-B_ptO5yb.js";
|
|
29
|
-
import { getCurrencySymbol as at } from "./util/functions.js";
|
|
30
|
-
import { F as Z } from "./FormControl-DeeQCuu5.js";
|
|
31
|
-
import { F as D } from "./FilledInput-DrGeWgue.js";
|
|
32
|
-
import { F as me } from "./TextField-q_SeLeNd.js";
|
|
33
|
-
import { S as ot } from "./Select-Chubcks_.js";
|
|
34
|
-
import { M as rt } from "./MenuItem-CeCt0bfa.js";
|
|
35
|
-
import { L as st } from "./ListItemIcon-GKRFb1Gr.js";
|
|
36
|
-
import { I as lt } from "./InputAdornment-BKuUMfPj.js";
|
|
37
|
-
import { I as ct } from "./IconButton-eWRhV6Q9.js";
|
|
38
|
-
import { useDialog as mt } from "./hooks/useDialog/index.js";
|
|
39
|
-
const dt = ({
|
|
40
|
-
setScreen: v,
|
|
41
|
-
partnerKey: b,
|
|
42
|
-
orderData: l,
|
|
43
|
-
dispatch: m,
|
|
44
|
-
navigate: p
|
|
45
|
-
}) => {
|
|
46
|
-
const { openDialog: S, ConfirmDialog: N } = mt(), I = U(pe).banks, o = l.estimate[j], u = l.create.order_id, d = l.create.bank_id, M = l.loader, Y = o.fiat_amount, [H, R] = _(!1), [E, P] = _({});
|
|
47
|
-
y(() => {
|
|
48
|
-
if (d) {
|
|
49
|
-
const L = I.find((q) => q.id === d);
|
|
50
|
-
L && P(L);
|
|
51
|
-
}
|
|
52
|
-
}, [d]), y(() => {
|
|
53
|
-
u && H && S({
|
|
54
|
-
icon: Re,
|
|
55
|
-
title: "Withdraw Success",
|
|
56
|
-
message: "Your transaction was successful for more details on the transaction please track your order.",
|
|
57
|
-
cancelButtonText: "Withdraw again",
|
|
58
|
-
onCancel: () => {
|
|
59
|
-
m(te()), v(ie);
|
|
60
|
-
},
|
|
61
|
-
confirmButtonText: "Track Order",
|
|
62
|
-
onConfirm: () => {
|
|
63
|
-
p && p("/history"), m(te());
|
|
64
|
-
},
|
|
65
|
-
height: "490px"
|
|
66
|
-
});
|
|
67
|
-
}, [u]), y(() => {
|
|
68
|
-
x();
|
|
69
|
-
}, []);
|
|
70
|
-
const x = () => {
|
|
71
|
-
m(
|
|
72
|
-
ue(
|
|
73
|
-
{
|
|
74
|
-
apiKey: b,
|
|
75
|
-
transaction_type: o.transaction_type,
|
|
76
|
-
coin_amount: o.fiat_amount,
|
|
77
|
-
payment_type: o.payment_type,
|
|
78
|
-
fiat_ccy: o.fiat_currency,
|
|
79
|
-
payment_provider: o.payment_provider
|
|
80
|
-
},
|
|
81
|
-
j
|
|
82
|
-
)
|
|
83
|
-
);
|
|
84
|
-
}, A = () => {
|
|
85
|
-
m(
|
|
86
|
-
Le({
|
|
87
|
-
apiKey: b,
|
|
88
|
-
quoteId: o.quote_id,
|
|
89
|
-
bankId: l.create.bank_id
|
|
90
|
-
})
|
|
91
|
-
), R(!0);
|
|
92
|
-
};
|
|
93
|
-
return /* @__PURE__ */ a(B, { children: [
|
|
94
|
-
/* @__PURE__ */ e(N, {}),
|
|
95
|
-
/* @__PURE__ */ e(
|
|
96
|
-
de,
|
|
97
|
-
{
|
|
98
|
-
onClickHandler: () => v(fe),
|
|
99
|
-
backBtnText: "Confirm Your Order"
|
|
100
|
-
}
|
|
101
|
-
),
|
|
102
|
-
/* @__PURE__ */ e(i, { mt: 2, variant: "sm", fontWeight: 600, children: "Funds received at" }),
|
|
103
|
-
/* @__PURE__ */ a(C, { mt: 2, className: f["confirm-payment"], children: [
|
|
104
|
-
/* @__PURE__ */ e(
|
|
105
|
-
"img",
|
|
106
|
-
{
|
|
107
|
-
src: o.payment_type === Q ? ze : Te,
|
|
108
|
-
width: 100,
|
|
109
|
-
alt: "payment"
|
|
110
|
-
}
|
|
111
|
-
),
|
|
112
|
-
/* @__PURE__ */ e(i, { variant: "caption", component: "span", children: /* @__PURE__ */ e("strong", { children: o.payment_type === Q ? "Bank Account" : "Debit Card" }) })
|
|
113
|
-
] }),
|
|
114
|
-
o.payment_type === Q && /* @__PURE__ */ a(B, { children: [
|
|
115
|
-
/* @__PURE__ */ e(i, { mt: 3, variant: "caption", component: "p", children: /* @__PURE__ */ e("b", { children: "Bank Details" }) }),
|
|
116
|
-
/* @__PURE__ */ e(C, { sx: { color: "#A6A6A6" }, children: /* @__PURE__ */ a(n, { container: !0, children: [
|
|
117
|
-
/* @__PURE__ */ e(n, { className: "text-left", size: 6, children: /* @__PURE__ */ e(i, { variant: "caption", children: "Account Name" }) }),
|
|
118
|
-
/* @__PURE__ */ e(n, { className: "text-right", size: 6, children: /* @__PURE__ */ e(i, { variant: "caption", children: E.accountName }) }),
|
|
119
|
-
/* @__PURE__ */ e(n, { className: "text-left", size: 6, children: /* @__PURE__ */ e(i, { variant: "caption", children: "Bank Name" }) }),
|
|
120
|
-
/* @__PURE__ */ e(n, { className: "text-right", size: 6, children: /* @__PURE__ */ e(i, { variant: "caption", children: E.bankName }) }),
|
|
121
|
-
/* @__PURE__ */ e(n, { className: "text-left", size: 6, children: /* @__PURE__ */ e(i, { variant: "caption", children: "IBAN" }) }),
|
|
122
|
-
/* @__PURE__ */ e(n, { className: "text-right", size: 6, children: /* @__PURE__ */ e(i, { variant: "caption", children: E.accountNumber }) }),
|
|
123
|
-
/* @__PURE__ */ e(n, { className: "text-left", size: 6, children: /* @__PURE__ */ e(i, { variant: "caption", children: "BIC" }) }),
|
|
124
|
-
/* @__PURE__ */ e(n, { className: "text-right", size: 6, children: /* @__PURE__ */ e(i, { variant: "caption", children: E.bicCode }) })
|
|
125
|
-
] }) })
|
|
126
|
-
] }),
|
|
127
|
-
/* @__PURE__ */ e(i, { mt: 3, variant: "sm", fontWeight: 600, component: "p", children: "Order Estimate Details" }),
|
|
128
|
-
/* @__PURE__ */ e(C, { sx: { color: "#A6A6A6" }, children: /* @__PURE__ */ a(n, { container: !0, children: [
|
|
129
|
-
/* @__PURE__ */ e(n, { className: "text-left", size: 6, children: /* @__PURE__ */ e(i, { variant: "caption", children: "Withdraw Amount" }) }),
|
|
130
|
-
/* @__PURE__ */ e(n, { className: "text-right", size: 6, children: /* @__PURE__ */ a(i, { variant: "caption", children: [
|
|
131
|
-
(+Y * 1).toFixed(2),
|
|
132
|
-
" ",
|
|
133
|
-
o.fiat_currency
|
|
134
|
-
] }) }),
|
|
135
|
-
/* @__PURE__ */ e(n, { className: "text-left", size: 6, children: /* @__PURE__ */ e(i, { variant: "caption", children: "Total Amount received" }) }),
|
|
136
|
-
/* @__PURE__ */ e(n, { className: "text-right", size: 6, children: /* @__PURE__ */ a(i, { variant: "caption", children: [
|
|
137
|
-
(+o.fiat_out_amount * 1).toFixed(2),
|
|
138
|
-
" ",
|
|
139
|
-
o.fiat_currency
|
|
140
|
-
] }) }),
|
|
141
|
-
/* @__PURE__ */ e(n, { className: "text-left", size: 6, children: /* @__PURE__ */ e(i, { variant: "caption", children: "Total Fees" }) }),
|
|
142
|
-
/* @__PURE__ */ e(n, { className: "text-right", size: 6, children: /* @__PURE__ */ a(i, { variant: "caption", children: [
|
|
143
|
-
(+o.total_fee * 1).toFixed(2),
|
|
144
|
-
" ",
|
|
145
|
-
o.fiat_currency
|
|
146
|
-
] }) })
|
|
147
|
-
] }) }),
|
|
148
|
-
/* @__PURE__ */ e(C, { mt: 4, children: /* @__PURE__ */ e(
|
|
149
|
-
ne,
|
|
150
|
-
{
|
|
151
|
-
onClick: A,
|
|
152
|
-
disabled: M,
|
|
153
|
-
fullWidth: !0,
|
|
154
|
-
children: /* @__PURE__ */ e("strong", { children: M ? /* @__PURE__ */ a(B, { children: [
|
|
155
|
-
/* @__PURE__ */ e(F, { size: 15, color: "inherit" }),
|
|
156
|
-
" Processing..."
|
|
157
|
-
] }) : "Payment Details" })
|
|
158
|
-
}
|
|
159
|
-
) })
|
|
160
|
-
] });
|
|
161
|
-
}, pt = ({
|
|
162
|
-
setScreen: v,
|
|
163
|
-
orderData: b
|
|
164
|
-
}) => {
|
|
165
|
-
const l = he(), m = U(pe), p = m.loader;
|
|
166
|
-
m.message;
|
|
167
|
-
const S = m.banks, N = b.create.bank_id, [g, I] = _(!1);
|
|
168
|
-
y(() => {
|
|
169
|
-
l(et());
|
|
170
|
-
}, []);
|
|
171
|
-
const o = (u) => {
|
|
172
|
-
g || (I(!0), l(qe(u.id)), v(_e));
|
|
173
|
-
};
|
|
174
|
-
return /* @__PURE__ */ a(B, { children: [
|
|
175
|
-
/* @__PURE__ */ e(
|
|
176
|
-
de,
|
|
177
|
-
{
|
|
178
|
-
onClickHandler: () => v(ie),
|
|
179
|
-
backBtnText: "Select Bank Account"
|
|
180
|
-
}
|
|
181
|
-
),
|
|
182
|
-
p ? /* @__PURE__ */ e(C, { className: "text-center", mt: 8, children: /* @__PURE__ */ e(F, {}) }) : /* @__PURE__ */ a(B, { children: [
|
|
183
|
-
S.map((u) => /* @__PURE__ */ e(
|
|
184
|
-
C,
|
|
185
|
-
{
|
|
186
|
-
className: f["bank-item"],
|
|
187
|
-
onClick: () => o(u),
|
|
188
|
-
children: /* @__PURE__ */ a(n, { container: !0, children: [
|
|
189
|
-
/* @__PURE__ */ e(n, { size: 10, className: "content-center", children: /* @__PURE__ */ a(C, { sx: { textAlign: "left" }, children: [
|
|
190
|
-
/* @__PURE__ */ e("p", { className: f["bank-name"], children: /* @__PURE__ */ e("strong", { children: u.bankName }) }),
|
|
191
|
-
/* @__PURE__ */ a("p", { className: f["bank-account"], children: [
|
|
192
|
-
u.accountName,
|
|
193
|
-
" | ***",
|
|
194
|
-
u.accountNumber.slice(-4)
|
|
195
|
-
] })
|
|
196
|
-
] }) }),
|
|
197
|
-
/* @__PURE__ */ e(n, { size: 2, children: /* @__PURE__ */ e(i, { sx: { textAlign: "right" }, children: N === u.id ? /* @__PURE__ */ e(
|
|
198
|
-
Ze,
|
|
199
|
-
{
|
|
200
|
-
sx: { fontSize: 30, color: "#195BB6" }
|
|
201
|
-
}
|
|
202
|
-
) : /* @__PURE__ */ e(Qe, { sx: { fontSize: 30, color: "#195BB6" } }) }) })
|
|
203
|
-
] })
|
|
204
|
-
},
|
|
205
|
-
u.id
|
|
206
|
-
)),
|
|
207
|
-
g && /* @__PURE__ */ e(C, { mt: 4, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(F, {}) })
|
|
208
|
-
] }),
|
|
209
|
-
/* @__PURE__ */ e(tt, {}),
|
|
210
|
-
/* @__PURE__ */ e(i, { className: "text-center", variant: "h6", mt: 2, mb: 2, children: /* @__PURE__ */ e("strong", { children: "OR" }) }),
|
|
211
|
-
/* @__PURE__ */ e(De, {})
|
|
212
|
-
] });
|
|
213
|
-
}, ut = ({
|
|
214
|
-
setScreen: v,
|
|
215
|
-
orderData: b,
|
|
216
|
-
dispatch: l,
|
|
217
|
-
fiatAssets: m,
|
|
218
|
-
showAlertMessage: p,
|
|
219
|
-
partnerKey: S,
|
|
220
|
-
usdBalance: N,
|
|
221
|
-
eurBalance: g,
|
|
222
|
-
balanceLoader: I,
|
|
223
|
-
paymentId: o,
|
|
224
|
-
setPaymentId: u,
|
|
225
|
-
currencyId: d,
|
|
226
|
-
setCurrencyId: M,
|
|
227
|
-
paymentOptions: Y,
|
|
228
|
-
setPaymentOptions: H
|
|
229
|
-
}) => {
|
|
230
|
-
var re, se;
|
|
231
|
-
const R = m.fiats, E = m.loader, P = b.loader, x = b.estimate[j], A = x.fiat_out_amount, L = x.total_fee;
|
|
232
|
-
let q = 0, z = 0;
|
|
233
|
-
const h = x.fee_breakdown;
|
|
234
|
-
for (let t = 0; t < h.length; t++) {
|
|
235
|
-
const r = h[t];
|
|
236
|
-
r.name === "ev_fee" ? q = Number(r.value) : r.name === "network_fee" && (z = Number(r.value));
|
|
237
|
-
}
|
|
238
|
-
const [k, xe] = _(!1), [K, Ne] = _([]), [ae, ye] = _(!1), [X, be] = _(50), [_t, ge] = _(3e3), [oe, Ae] = _(""), [V, J] = _(
|
|
239
|
-
x.fiat_amount || X.toString()
|
|
240
|
-
), c = R.find((t) => t.id === d), w = at(c == null ? void 0 : c.symbol), $ = Y.find((t) => t.id === o);
|
|
241
|
-
y(() => {
|
|
242
|
-
const t = [];
|
|
243
|
-
for (let r = 0; r < R.length; r++) {
|
|
244
|
-
const s = {}, T = R[r];
|
|
245
|
-
s.id = T.id, s.name = T.name, s.icon_uri = T.icon_uri, s.symbol = T.symbol, s.payment_options = [];
|
|
246
|
-
const W = T.payment_options;
|
|
247
|
-
for (let O = 0; O < W.length; O++) {
|
|
248
|
-
const le = {}, G = W[O];
|
|
249
|
-
G.payment_provider !== Be && G.active && G.payout_allowed && (Object.assign(le, G), s.payment_options.push(le));
|
|
250
|
-
}
|
|
251
|
-
s.payment_options.length > 0 && t.push(s);
|
|
252
|
-
}
|
|
253
|
-
Ne(t);
|
|
254
|
-
}, [R]), y(() => {
|
|
255
|
-
if (!d || K.length === 0)
|
|
256
|
-
return;
|
|
257
|
-
const t = [];
|
|
258
|
-
for (let r = 0; r < K.length; r++) {
|
|
259
|
-
if (K[r].id === d) {
|
|
260
|
-
const s = K[r].payment_options;
|
|
261
|
-
let T = !1;
|
|
262
|
-
for (let W = 0; W < s.length; W++) {
|
|
263
|
-
const O = s[W];
|
|
264
|
-
O.active && O.payout_allowed && (t.push(O), s[W].id === o && (T = !0));
|
|
265
|
-
}
|
|
266
|
-
T || u(t[0].id);
|
|
267
|
-
}
|
|
268
|
-
H(t);
|
|
269
|
-
}
|
|
270
|
-
}, [d, K]), y(() => {
|
|
271
|
-
if (V && o && d) {
|
|
272
|
-
l(Ke(j)), xe(!1), Ae("");
|
|
273
|
-
const t = setTimeout(() => {
|
|
274
|
-
Ce();
|
|
275
|
-
}, 1e3);
|
|
276
|
-
return () => clearTimeout(t);
|
|
277
|
-
}
|
|
278
|
-
}, [V, o, d]);
|
|
279
|
-
const Ce = () => {
|
|
280
|
-
const t = $.payment_type;
|
|
281
|
-
l(
|
|
282
|
-
ue(
|
|
283
|
-
{
|
|
284
|
-
apiKey: S,
|
|
285
|
-
transaction_type: ee,
|
|
286
|
-
coin_amount: V,
|
|
287
|
-
payment_type: t,
|
|
288
|
-
fiat_ccy: c == null ? void 0 : c.symbol,
|
|
289
|
-
payment_provider: $.payment_provider
|
|
290
|
-
},
|
|
291
|
-
j
|
|
292
|
-
)
|
|
293
|
-
);
|
|
294
|
-
}, ve = ({ value: t, label: r }) => {
|
|
295
|
-
let s;
|
|
296
|
-
if (r === "credit_debit_card" ? (s = Pe, o === t && (s = we)) : (s = We, o === t && (s = Oe)), r)
|
|
297
|
-
return /* @__PURE__ */ e(
|
|
298
|
-
C,
|
|
299
|
-
{
|
|
300
|
-
mt: 0.5,
|
|
301
|
-
sx: { cursor: "pointer" },
|
|
302
|
-
onClick: () => u(t * 1),
|
|
303
|
-
children: /* @__PURE__ */ e("img", { src: s, alt: "payment", width: "90%" })
|
|
304
|
-
}
|
|
305
|
-
);
|
|
306
|
-
};
|
|
307
|
-
y(() => {
|
|
308
|
-
const t = b.types.length;
|
|
309
|
-
if (t > 0)
|
|
310
|
-
for (let r = 0; r < t; r++) {
|
|
311
|
-
const s = b.types[r];
|
|
312
|
-
if (s.type === ee) {
|
|
313
|
-
be(parseFloat(s.min_deposit_amount)), ge(parseFloat(s.max_deposit_amount));
|
|
314
|
-
break;
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
}, [b.types]);
|
|
318
|
-
const ke = (t) => {
|
|
319
|
-
const r = t.target.value;
|
|
320
|
-
r ? /^([0-9]+)$/.test(r) && J(r) : J("");
|
|
321
|
-
}, Ee = () => {
|
|
322
|
-
if (!o)
|
|
323
|
-
return p({ message: "Please select payment method" }), !1;
|
|
324
|
-
if (!V)
|
|
325
|
-
return p({ message: "Please enter amount" }), !1;
|
|
326
|
-
if (!A)
|
|
327
|
-
return p({
|
|
328
|
-
message: "Please wait for the estimate to be calculated and then press next"
|
|
329
|
-
}), !1;
|
|
330
|
-
if ((c == null ? void 0 : c.symbol) === Ie && typeof g < "u" && parseFloat(A) > g)
|
|
331
|
-
return p({
|
|
332
|
-
message: "Insufficient Funds. Please provide amount less or equal to available balance"
|
|
333
|
-
}), !1;
|
|
334
|
-
if ((c == null ? void 0 : c.symbol) === ce && typeof N < "u" && parseFloat(A) > N)
|
|
335
|
-
return p({
|
|
336
|
-
message: "Insufficient Funds. Please provide amount less or equal to available balance"
|
|
337
|
-
}), !1;
|
|
338
|
-
if (parseFloat(A) < $.payout_min_amount * 1)
|
|
339
|
-
return p({
|
|
340
|
-
message: `${$.payout_min_amount + w} is the minimum amount to make the withdraw.`
|
|
341
|
-
}), !1;
|
|
342
|
-
if (parseFloat(A) > $.payout_max_amount * 1)
|
|
343
|
-
return p({
|
|
344
|
-
message: `${$.payout_max_amount + w} is the maximum amount to make the withdraw.`
|
|
345
|
-
}), !1;
|
|
346
|
-
v(fe);
|
|
347
|
-
}, Fe = () => {
|
|
348
|
-
const t = c.symbol === ce ? N : g;
|
|
349
|
-
J(t + "");
|
|
350
|
-
};
|
|
351
|
-
return /* @__PURE__ */ a(B, { children: [
|
|
352
|
-
/* @__PURE__ */ a(n, { container: !0, children: [
|
|
353
|
-
/* @__PURE__ */ e(n, { size: { xs: 3 }, children: /* @__PURE__ */ e(i, { className: f.label, variant: "caption", component: "p", children: "You Withdraw" }) }),
|
|
354
|
-
/* @__PURE__ */ e(n, { size: { xs: 9 }, children: /* @__PURE__ */ a(
|
|
355
|
-
i,
|
|
356
|
-
{
|
|
357
|
-
className: f["balance-label"],
|
|
358
|
-
variant: "caption",
|
|
359
|
-
component: "p",
|
|
360
|
-
children: [
|
|
361
|
-
"You Have:",
|
|
362
|
-
" ",
|
|
363
|
-
I ? /* @__PURE__ */ e(F, { size: 10, color: "inherit" }) : d === 1 ? N : g,
|
|
364
|
-
" ",
|
|
365
|
-
(c == null ? void 0 : c.symbol) && (c == null ? void 0 : c.symbol) + ".c",
|
|
366
|
-
" ",
|
|
367
|
-
/* @__PURE__ */ e("span", { className: f["max-btn"], onClick: Fe, children: "MAX" })
|
|
368
|
-
]
|
|
369
|
-
}
|
|
370
|
-
) })
|
|
371
|
-
] }),
|
|
372
|
-
/* @__PURE__ */ a(n, { mt: 0.5, spacing: 0, container: !0, children: [
|
|
373
|
-
/* @__PURE__ */ e(n, { size: { xs: 6 }, children: /* @__PURE__ */ a(
|
|
374
|
-
Z,
|
|
375
|
-
{
|
|
376
|
-
variant: "filled",
|
|
377
|
-
className: `${f.amount} ${f["fiat-field"]}`,
|
|
378
|
-
fullWidth: !0,
|
|
379
|
-
children: [
|
|
380
|
-
/* @__PURE__ */ e(
|
|
381
|
-
D,
|
|
382
|
-
{
|
|
383
|
-
value: V,
|
|
384
|
-
onChange: ke,
|
|
385
|
-
type: "text",
|
|
386
|
-
placeholder: `${X > 0 ? "$" + X + " minimum value" : ""}`,
|
|
387
|
-
error: k,
|
|
388
|
-
disableUnderline: !0,
|
|
389
|
-
required: !0,
|
|
390
|
-
fullWidth: !0
|
|
391
|
-
}
|
|
392
|
-
),
|
|
393
|
-
/* @__PURE__ */ e(me, { className: f["amount-symbol"], children: " " })
|
|
394
|
-
]
|
|
395
|
-
}
|
|
396
|
-
) }),
|
|
397
|
-
/* @__PURE__ */ e(n, { size: { xs: 6 }, className: "content-center", children: E ? /* @__PURE__ */ e(
|
|
398
|
-
F,
|
|
399
|
-
{
|
|
400
|
-
sx: { ml: 1 },
|
|
401
|
-
size: 30
|
|
402
|
-
}
|
|
403
|
-
) : /* @__PURE__ */ e(
|
|
404
|
-
Z,
|
|
405
|
-
{
|
|
406
|
-
variant: "filled",
|
|
407
|
-
className: `text-left ${f["fiat-picker"]}`,
|
|
408
|
-
fullWidth: !0,
|
|
409
|
-
children: /* @__PURE__ */ e(
|
|
410
|
-
ot,
|
|
411
|
-
{
|
|
412
|
-
input: /* @__PURE__ */ e(D, { disableUnderline: !0 }),
|
|
413
|
-
sx: {
|
|
414
|
-
borderTopLeftRadius: 0,
|
|
415
|
-
"&::before": {
|
|
416
|
-
borderBottom: "none"
|
|
417
|
-
},
|
|
418
|
-
".MuiSelect-select": {
|
|
419
|
-
fontSize: "21px",
|
|
420
|
-
fontWeight: "bold",
|
|
421
|
-
color: "#16359d",
|
|
422
|
-
padding: "27px 12px 10px !important"
|
|
423
|
-
},
|
|
424
|
-
".dropdown-list-item, span": {
|
|
425
|
-
position: "relative",
|
|
426
|
-
bottom: "5px"
|
|
427
|
-
},
|
|
428
|
-
".MuiSvgIcon-root": {
|
|
429
|
-
fill: "#16359D !important"
|
|
430
|
-
}
|
|
431
|
-
},
|
|
432
|
-
value: d,
|
|
433
|
-
variant: "filled",
|
|
434
|
-
displayEmpty: !0,
|
|
435
|
-
onChange: (t) => M(t.target.value),
|
|
436
|
-
error: k,
|
|
437
|
-
children: K.map((t) => /* @__PURE__ */ a(rt, { value: t.id, children: [
|
|
438
|
-
/* @__PURE__ */ e(st, { className: f["dropdown-list-item"], children: /* @__PURE__ */ e(
|
|
439
|
-
"img",
|
|
440
|
-
{
|
|
441
|
-
src: t.icon_uri,
|
|
442
|
-
onError: ({ currentTarget: r }) => {
|
|
443
|
-
r.onerror = null, r.src = it;
|
|
444
|
-
},
|
|
445
|
-
alt: "tokenImg",
|
|
446
|
-
width: "40",
|
|
447
|
-
height: "40"
|
|
448
|
-
}
|
|
449
|
-
) }),
|
|
450
|
-
/* @__PURE__ */ e("span", { children: t.symbol })
|
|
451
|
-
] }, t.id))
|
|
452
|
-
}
|
|
453
|
-
)
|
|
454
|
-
}
|
|
455
|
-
) }),
|
|
456
|
-
oe && /* @__PURE__ */ e(i, { variant: "caption", sx: { color: "red" }, children: /* @__PURE__ */ e("strong", { children: oe }) })
|
|
457
|
-
] }),
|
|
458
|
-
/* @__PURE__ */ a(C, { className: "text-left", mt: 3, children: [
|
|
459
|
-
/* @__PURE__ */ e(i, { variant: "sm", fontWeight: 600, children: "Select Payment Method" }),
|
|
460
|
-
E ? /* @__PURE__ */ e(F, { sx: { ml: 1, mt: 3 }, size: 50 }) : /* @__PURE__ */ e(n, { mt: 0.5, container: !0, children: Y.map((t) => /* @__PURE__ */ e(n, { size: { xs: 2.5 }, children: /* @__PURE__ */ e(
|
|
461
|
-
ve,
|
|
462
|
-
{
|
|
463
|
-
label: t.payment_type,
|
|
464
|
-
value: t.id
|
|
465
|
-
}
|
|
466
|
-
) }, t.id)) })
|
|
467
|
-
] }),
|
|
468
|
-
/* @__PURE__ */ e(n, { mt: 4, container: !0, children: /* @__PURE__ */ e(n, { size: { xs: 4 }, children: /* @__PURE__ */ e(i, { className: f.label, variant: "caption", component: "p", children: "You Receive" }) }) }),
|
|
469
|
-
/* @__PURE__ */ e(n, { mt: 0.5, container: !0, children: /* @__PURE__ */ e(n, { size: { xs: 12 }, children: /* @__PURE__ */ a(
|
|
470
|
-
Z,
|
|
471
|
-
{
|
|
472
|
-
className: `${f.amount} ${f["fiat-field"]}`,
|
|
473
|
-
fullWidth: !0,
|
|
474
|
-
children: [
|
|
475
|
-
/* @__PURE__ */ e(
|
|
476
|
-
D,
|
|
477
|
-
{
|
|
478
|
-
disableUnderline: !0,
|
|
479
|
-
value: A && parseFloat((+A * 1).toFixed(5)),
|
|
480
|
-
startAdornment: /* @__PURE__ */ e(lt, { position: "start", children: /* @__PURE__ */ e(
|
|
481
|
-
i,
|
|
482
|
-
{
|
|
483
|
-
sx: {
|
|
484
|
-
fontWeight: "bold",
|
|
485
|
-
fontSize: "24px",
|
|
486
|
-
marginTop: "12px"
|
|
487
|
-
},
|
|
488
|
-
children: w
|
|
489
|
-
}
|
|
490
|
-
) }),
|
|
491
|
-
type: "text",
|
|
492
|
-
readOnly: !0,
|
|
493
|
-
fullWidth: !0
|
|
494
|
-
}
|
|
495
|
-
),
|
|
496
|
-
/* @__PURE__ */ e(me, { className: f["amount-symbol"], children: +((re = x == null ? void 0 : x.output_token) == null ? void 0 : re.fiat_amount) * 1 > 0 ? w + (+((se = x == null ? void 0 : x.output_token) == null ? void 0 : se.fiat_amount) * 1).toFixed(2) : /* @__PURE__ */ e(B, { children: " " }) })
|
|
497
|
-
]
|
|
498
|
-
}
|
|
499
|
-
) }) }),
|
|
500
|
-
/* @__PURE__ */ e(C, { mt: 3, sx: { color: "#1A202C" }, children: /* @__PURE__ */ a(n, { container: !0, children: [
|
|
501
|
-
/* @__PURE__ */ e(n, { className: "text-left", size: { xs: 12 }, children: /* @__PURE__ */ a(
|
|
502
|
-
ct,
|
|
503
|
-
{
|
|
504
|
-
sx: { padding: "0" },
|
|
505
|
-
onClick: () => ye((t) => !t),
|
|
506
|
-
disableFocusRipple: !0,
|
|
507
|
-
disableRipple: !0,
|
|
508
|
-
children: [
|
|
509
|
-
/* @__PURE__ */ e(i, { variant: "caption", fontWeight: 500, children: "Fee Calculation" }),
|
|
510
|
-
/* @__PURE__ */ e(
|
|
511
|
-
nt,
|
|
512
|
-
{
|
|
513
|
-
sx: {
|
|
514
|
-
transform: `rotate(${ae ? "90" : "0"}deg)`,
|
|
515
|
-
fontSize: "15px"
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
)
|
|
519
|
-
]
|
|
520
|
-
}
|
|
521
|
-
) }),
|
|
522
|
-
ae && /* @__PURE__ */ a(B, { children: [
|
|
523
|
-
/* @__PURE__ */ e(n, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(i, { variant: "caption", children: "Everest Fee" }) }),
|
|
524
|
-
/* @__PURE__ */ e(n, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(i, { variant: "caption", children: [
|
|
525
|
-
w,
|
|
526
|
-
P ? /* @__PURE__ */ e(F, { size: 30, color: "primary" }) : q.toFixed(2)
|
|
527
|
-
] }) }),
|
|
528
|
-
/* @__PURE__ */ e(n, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(i, { variant: "caption", children: "Network Fee" }) }),
|
|
529
|
-
/* @__PURE__ */ e(n, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(i, { variant: "caption", children: [
|
|
530
|
-
w,
|
|
531
|
-
P ? /* @__PURE__ */ e(
|
|
532
|
-
F,
|
|
533
|
-
{
|
|
534
|
-
sx: { ml: 1 },
|
|
535
|
-
size: 15,
|
|
536
|
-
color: "primary"
|
|
537
|
-
}
|
|
538
|
-
) : z.toFixed(2)
|
|
539
|
-
] }) })
|
|
540
|
-
] }),
|
|
541
|
-
/* @__PURE__ */ e(n, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(i, { variant: "caption", children: "Total Fees" }) }),
|
|
542
|
-
/* @__PURE__ */ e(n, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(i, { variant: "caption", children: [
|
|
543
|
-
w,
|
|
544
|
-
P ? /* @__PURE__ */ e(F, { sx: { ml: 1 }, size: 15, color: "primary" }) : Number(L).toFixed(2)
|
|
545
|
-
] }) })
|
|
546
|
-
] }) }),
|
|
547
|
-
/* @__PURE__ */ e(C, { mt: 4, children: /* @__PURE__ */ e(
|
|
548
|
-
ne,
|
|
549
|
-
{
|
|
550
|
-
onClick: Ee,
|
|
551
|
-
disabled: k || !A,
|
|
552
|
-
fullWidth: !0,
|
|
553
|
-
children: /* @__PURE__ */ e("strong", { children: "Next" })
|
|
554
|
-
}
|
|
555
|
-
) })
|
|
556
|
-
] });
|
|
557
|
-
}, ie = "FORM_SCREEN", fe = "BANK_SCREEN", _e = "CONFIRM_SCREEN", ht = "MINIMAL_KYC_SCREEN", ft = ({ partnerKey: v, navigate: b }) => {
|
|
558
|
-
const l = he(), m = U((h) => h.order), p = m.error, S = U(
|
|
559
|
-
(h) => h.user.profile
|
|
560
|
-
), N = S.tokens, g = S.everWalletAddress, I = U((h) => h.fiatAssets), o = U(
|
|
561
|
-
(h) => h.cryptoAssets
|
|
562
|
-
), [u, d] = _(ie), [M, Y] = _(0), [H, R] = _(2), [E, P] = _([]), [x, A] = _(0), [L, q] = _(0), { showAlertMessage: z } = je();
|
|
563
|
-
return y(() => {
|
|
564
|
-
g && l(He(g));
|
|
565
|
-
}, [g]), y(() => {
|
|
566
|
-
if (N.list.length > 0) {
|
|
567
|
-
const h = N.list;
|
|
568
|
-
for (let k = 0; k < h.length; k++)
|
|
569
|
-
h[k].symbol === Me && q(
|
|
570
|
-
parseFloat(h[k].fmt_balance.replaceAll(",", "")) / 100
|
|
571
|
-
), h[k].symbol === Ye && A(
|
|
572
|
-
parseFloat(h[k].fmt_balance.replaceAll(",", "")) / 100
|
|
573
|
-
);
|
|
574
|
-
}
|
|
575
|
-
}, [N.list]), y(() => {
|
|
576
|
-
p && z({ message: p });
|
|
577
|
-
}, [p]), y(() => {
|
|
578
|
-
m.initMinimalKyc && (z({ message: p, type: "info" }), d(ht));
|
|
579
|
-
}, [m.initMinimalKyc]), y(() => (l(Ue()), l($e(ee)), l(Ve()), () => {
|
|
580
|
-
l(te());
|
|
581
|
-
}), []), /* @__PURE__ */ e(Ge, { addPadding: !0, children: {
|
|
582
|
-
FORM_SCREEN: /* @__PURE__ */ e(
|
|
583
|
-
ut,
|
|
584
|
-
{
|
|
585
|
-
cryptoAssets: o,
|
|
586
|
-
showAlertMessage: z,
|
|
587
|
-
setScreen: d,
|
|
588
|
-
fiatAssets: I,
|
|
589
|
-
orderData: m,
|
|
590
|
-
dispatch: l,
|
|
591
|
-
partnerKey: v,
|
|
592
|
-
usdBalance: x,
|
|
593
|
-
eurBalance: L,
|
|
594
|
-
balanceLoader: N.loader,
|
|
595
|
-
paymentId: M,
|
|
596
|
-
setPaymentId: Y,
|
|
597
|
-
currencyId: H,
|
|
598
|
-
setCurrencyId: R,
|
|
599
|
-
paymentOptions: E,
|
|
600
|
-
setPaymentOptions: P
|
|
601
|
-
}
|
|
602
|
-
),
|
|
603
|
-
BANK_SCREEN: /* @__PURE__ */ e(
|
|
604
|
-
pt,
|
|
605
|
-
{
|
|
606
|
-
showAlertMessage: z,
|
|
607
|
-
setScreen: d,
|
|
608
|
-
orderData: m,
|
|
609
|
-
dispatch: l
|
|
610
|
-
}
|
|
611
|
-
),
|
|
612
|
-
CONFIRM_SCREEN: /* @__PURE__ */ e(
|
|
613
|
-
dt,
|
|
614
|
-
{
|
|
615
|
-
partnerKey: v,
|
|
616
|
-
setScreen: d,
|
|
617
|
-
showAlertMessage: z,
|
|
618
|
-
orderData: m,
|
|
619
|
-
dispatch: l,
|
|
620
|
-
navigate: b
|
|
621
|
-
}
|
|
622
|
-
),
|
|
623
|
-
MINIMAL_KYC_SCREEN: /* @__PURE__ */ e(
|
|
624
|
-
Xe,
|
|
625
|
-
{
|
|
626
|
-
inputComponent: Je,
|
|
627
|
-
buttonComponent: ne,
|
|
628
|
-
onComplete: () => {
|
|
629
|
-
d(_e);
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
)
|
|
633
|
-
}[u] });
|
|
634
|
-
}, tn = Se(ft);
|
|
635
|
-
export {
|
|
636
|
-
dt as B,
|
|
637
|
-
_e as C,
|
|
638
|
-
ie as F,
|
|
639
|
-
ht as M,
|
|
640
|
-
pt as W,
|
|
641
|
-
ut as a,
|
|
642
|
-
fe as b,
|
|
643
|
-
tn as i
|
|
644
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import './assets/styles2.css';const n = "_label_o9qnl_135", _ = "_amount_o9qnl_205", o = {
|
|
2
|
-
"bank-name": "_bank-name_o9qnl_1",
|
|
3
|
-
"bank-item": "_bank-item_o9qnl_25",
|
|
4
|
-
"bank-account": "_bank-account_o9qnl_43",
|
|
5
|
-
"confirm-payment": "_confirm-payment_o9qnl_59",
|
|
6
|
-
"confirm-transaction-network": "_confirm-transaction-network_o9qnl_91",
|
|
7
|
-
"buy-info": "_buy-info_o9qnl_115",
|
|
8
|
-
label: n,
|
|
9
|
-
"balance-label": "_balance-label_o9qnl_147",
|
|
10
|
-
"max-btn": "_max-btn_o9qnl_159",
|
|
11
|
-
amount: _,
|
|
12
|
-
"MuiFilledInput-root": "_MuiFilledInput-root_o9qnl_217",
|
|
13
|
-
"fiat-field": "_fiat-field_o9qnl_233",
|
|
14
|
-
"amount-symbol": "_amount-symbol_o9qnl_241",
|
|
15
|
-
"crypto-picker": "_crypto-picker_o9qnl_259",
|
|
16
|
-
"fiat-picker": "_fiat-picker_o9qnl_267",
|
|
17
|
-
"network-label": "_network-label_o9qnl_275",
|
|
18
|
-
"eth-network": "_eth-network_o9qnl_301",
|
|
19
|
-
"everchain-network": "_everchain-network_o9qnl_309",
|
|
20
|
-
"buy-select-dd": "_buy-select-dd_o9qnl_319",
|
|
21
|
-
"MuiSelect-select": "_MuiSelect-select_o9qnl_335",
|
|
22
|
-
"dropdown-list-item": "_dropdown-list-item_o9qnl_349",
|
|
23
|
-
"fee-area": "_fee-area_o9qnl_373",
|
|
24
|
-
"info-fee-icon": "_info-fee-icon_o9qnl_383",
|
|
25
|
-
"wallet-caption-text": "_wallet-caption-text_o9qnl_393",
|
|
26
|
-
"connect-wallet-signup": "_connect-wallet-signup_o9qnl_403"
|
|
27
|
-
};
|
|
28
|
-
export {
|
|
29
|
-
o as s
|
|
30
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import './assets/styles3.css';const n = "_container_5700e_1", t = "_btn_5700e_37", c = "_cancelBtn_5700e_61", o = {
|
|
2
|
-
container: n,
|
|
3
|
-
"confirm-dialog": "_confirm-dialog_5700e_17",
|
|
4
|
-
"confirm-dialog-title": "_confirm-dialog-title_5700e_25",
|
|
5
|
-
btn: t,
|
|
6
|
-
cancelBtn: c
|
|
7
|
-
};
|
|
8
|
-
export {
|
|
9
|
-
o as s
|
|
10
|
-
};
|