everest-npm-features 0.0.61 → 0.0.63
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/ArrowBack-DEJjwfp0.js +8 -0
- package/dist/{Cancel-4lT7GZUA.js → Cancel-pHQsCjtK.js} +1 -1
- package/dist/{Close-CNwiMz_O.js → Close-DSxLLo08.js} +1 -1
- package/dist/{ContentCopy-coPwrEuz.js → ContentCopy-D0C0zbQj.js} +1 -1
- package/dist/{Delete-jpMstGIF.js → Delete-Bj8zmXnh.js} +1 -1
- package/dist/{ErrorOutline-CPQcnl2b.js → ErrorOutline-Bt7P4ChN.js} +1 -1
- package/dist/{FileDownload-Bt3R_NBr.js → FileDownload-DqREXR3D.js} +1 -1
- package/dist/{Info-BVeUSPyk.js → Info-DOoRR7sR.js} +1 -1
- package/dist/PlayArrow-71FP5PzJ.js +13 -0
- package/dist/Portal-BeS9yJCZ.js +968 -0
- package/dist/assets/styles.css +1 -1
- package/dist/{auth-Cwq6nfwY.js → auth-BBeOw4mt.js} +11 -11
- package/dist/{bank-C4pmTe--.js → bank-HVb0GFsa.js} +1 -1
- package/dist/components/RocketRamp/MinimalKyc/form.js +46 -51
- package/dist/components/RocketRamp/MinimalKyc/index.js +6 -6
- package/dist/components/RocketRamp/Player/Buy/cardPayment.js +6 -8
- package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +5 -8
- package/dist/components/RocketRamp/Player/Buy/form.js +8 -17
- package/dist/components/RocketRamp/Player/Buy/index.js +6 -6
- package/dist/components/RocketRamp/Player/Dashboard/balance.js +20 -26
- package/dist/components/RocketRamp/Player/Dashboard/index.js +4 -4
- package/dist/components/RocketRamp/Player/Dashboard/transaction.js +13 -16
- package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +6 -11
- package/dist/components/RocketRamp/Player/Sell/form.js +8 -17
- package/dist/components/RocketRamp/Player/Sell/index.js +14 -13
- package/dist/components/RocketRamp/Player/SignIn/index.js +23 -25
- package/dist/components/RocketRamp/Player/SignIn/loginForm.js +33 -35
- package/dist/components/RocketRamp/Player/SignIn/otpForm.js +31 -33
- package/dist/components/RocketRamp/Player/SignUp/email.js +21 -23
- package/dist/components/RocketRamp/Player/SignUp/index.js +49 -52
- package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +68 -74
- package/dist/components/RocketRamp/Player/SignUp/summary.js +23 -25
- package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +23 -25
- package/dist/components/RocketRamp/ResetPassword/index.js +23 -25
- package/dist/components/RocketRamp/Shared/Button/index.js +16 -17
- package/dist/components/RocketRamp/Shared/Input/index.js +27 -30
- package/dist/components/RocketRamp/Shared/backBtn.js +10 -11
- package/dist/components/RocketRamp/Shared/transactionItem.js +40 -45
- package/dist/components/RocketRamp/Store/Dashboard/balance.js +12 -17
- package/dist/components/RocketRamp/Store/Dashboard/index.js +11 -12
- package/dist/components/RocketRamp/Store/Dashboard/stats.js +12 -17
- package/dist/components/RocketRamp/Store/Dashboard/transaction.js +13 -16
- package/dist/components/RocketRamp/Store/SignUp/index.js +53 -56
- package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +48 -54
- package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +33 -37
- package/dist/components/RocketRamp/Store/SignUp/summary.js +21 -23
- package/dist/components/RocketRamp/Store/SignUp/validateEmail.js +23 -25
- package/dist/components/RocketRamp/Transactions/index.js +23 -24
- package/dist/components/Shared/FullKyc/countryList.js +15 -17
- package/dist/components/Shared/FullKyc/edd.js +51 -53
- package/dist/components/Shared/FullKyc/index.js +13 -11
- package/dist/components/Shared/FullKyc/pep.js +35 -43
- package/dist/components/Shared/FullKyc/personalDetails.js +6 -6
- package/dist/components/Shared/FullKyc/userInfo.js +8 -13
- package/dist/components/Shared/HistoryItem/index.js +43 -48
- package/dist/components/Shared/Incode/index.js +31 -35
- package/dist/components/Shared/MinimalKyc/index.js +60 -65
- package/dist/components/Shared/Sumsub/index.js +75 -62
- package/dist/components/Shared/loader.js +4 -5
- package/dist/components/Shared/tooltip.js +2 -2
- package/dist/components/Shared/transition.js +4 -4
- package/dist/components/Wallet/Account/createIban.d.ts +1 -2
- package/dist/components/Wallet/Account/createIban.js +324 -102
- package/dist/components/Wallet/Account/eWallet.js +37 -43
- package/dist/components/Wallet/Account/iban.d.ts +1 -0
- package/dist/components/Wallet/Account/iban.js +41 -45
- package/dist/components/Wallet/Account/ibanItem.js +70 -75
- package/dist/components/Wallet/Account/index.d.ts +1 -0
- package/dist/components/Wallet/Account/index.js +113 -118
- package/dist/components/Wallet/Account/sendIban.js +79 -88
- package/dist/components/Wallet/Buy/confirmTransaction.js +9 -11
- package/dist/components/Wallet/Buy/form.js +8 -18
- package/dist/components/Wallet/Buy/index.js +6 -6
- package/dist/components/Wallet/Deposit/index.js +16 -18
- package/dist/components/Wallet/EnterpriseKyc/edd.js +32 -33
- package/dist/components/Wallet/EnterpriseKyc/index.js +73 -77
- package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +23 -26
- package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +5 -7
- package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/kycType.js +23 -26
- package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +33 -34
- package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +3591 -1482
- package/dist/components/Wallet/EnterpriseKyc/success.js +3 -4
- package/dist/components/Wallet/EnterpriseKyc/verify.js +22 -22
- package/dist/components/Wallet/History/index.js +23 -797
- package/dist/components/Wallet/Home/index.js +13 -14
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +122 -126
- package/dist/components/Wallet/Portfolio/dropdown.js +25 -30
- package/dist/components/Wallet/Portfolio/index.js +48 -51
- package/dist/components/Wallet/Portfolio/tokenRow.js +3 -4
- package/dist/components/Wallet/Profile/documents.js +164 -176
- package/dist/components/Wallet/Profile/index.js +39 -44
- package/dist/components/Wallet/Profile/storage.js +39 -47
- package/dist/components/Wallet/Receive/index.js +32 -37
- package/dist/components/Wallet/Sell/confirmTransaction.js +8 -10
- package/dist/components/Wallet/Sell/form.js +8 -18
- package/dist/components/Wallet/Sell/index.js +6 -6
- package/dist/components/Wallet/Send/index.js +98 -107
- package/dist/components/Wallet/Shared/Auth/emailForm.js +13 -15
- package/dist/components/Wallet/Shared/Auth/otpForm.js +9 -356
- package/dist/components/Wallet/Shared/BankSelect/index.js +45 -49
- package/dist/components/Wallet/Shared/CardCorp/index.js +18 -19
- package/dist/components/Wallet/Shared/CardPayment/index.js +14 -16
- package/dist/components/Wallet/Shared/ConnectWallet/index.js +22 -28
- package/dist/components/Wallet/Shared/Container/index.d.ts +2 -1
- package/dist/components/Wallet/Shared/Container/index.js +11 -11
- package/dist/components/Wallet/Shared/Input/index.js +3 -3
- package/dist/components/Wallet/Shared/Keyboard/keyboard.js +29 -30
- package/dist/components/Wallet/Shared/Order/paymentButton.js +13 -14
- package/dist/components/Wallet/Shared/TokenModal/index.js +55 -63
- package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +11 -13
- package/dist/components/Wallet/Shared/addBank.js +41 -45
- package/dist/components/Wallet/Shared/appButton.js +11 -15
- package/dist/components/Wallet/Shared/backBtn.js +8 -9
- package/dist/components/Wallet/Shared/button.js +7 -7
- package/dist/components/Wallet/Shared/connectPlaidBank.js +16 -17
- package/dist/components/Wallet/Shared/inputField.js +5 -5
- package/dist/components/Wallet/Shared/manualSend.js +9 -13
- package/dist/components/Wallet/Shared/noData.js +4 -5
- package/dist/components/Wallet/Shared/pin.js +25 -27
- package/dist/components/Wallet/Shared/radioButton.js +39 -5
- package/dist/components/Wallet/Shared/step.js +12 -13
- package/dist/components/Wallet/Shared/timer.js +1 -1
- package/dist/components/Wallet/SignIn/index.js +17 -17
- package/dist/components/Wallet/SignUp/index.js +63 -153
- package/dist/components/Wallet/SignUp/terms.js +1 -1
- package/dist/components/Wallet/Stake/gems/index.js +71 -69
- package/dist/components/Wallet/Stake/id/index.js +77 -84
- package/dist/components/Wallet/Stake/index.js +65 -68
- package/dist/components/Wallet/Swap/form.js +11 -20
- package/dist/components/Wallet/Swap/index.js +5 -5
- package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -5
- package/dist/components/Wallet/Withdraw/bankSelect.js +41 -45
- package/dist/components/Wallet/Withdraw/confirmTransaction.js +5 -8
- package/dist/components/Wallet/Withdraw/form.js +6 -17
- package/dist/components/Wallet/Withdraw/index.js +5 -5
- package/dist/{constants-DrmtdI1J.js → constants-DX0YBtP2.js} +19 -19
- package/dist/{createSvgIcon-Cuzqm90l.js → createSvgIcon-B28GrUxG.js} +41 -45
- package/dist/{cryptoAssets-DyGDknvq.js → cryptoAssets-B8rAI7pp.js} +1 -1
- package/dist/hoc/withThemeProvider.js +5 -732
- package/dist/hooks/useDialog/index.js +22 -23
- package/dist/hooks/useRrDialog/index.js +43 -46
- package/dist/hooks/useSnackBar.js +24 -696
- package/dist/icons/buyIcon.js +1 -1
- package/dist/icons/canceledBuyIcon.js +1 -1
- package/dist/icons/canceledRedeemIcon.js +1 -1
- package/dist/icons/failedBuyIcon.js +2 -2
- package/dist/icons/failedRedeemIcon.js +2 -2
- package/dist/icons/pendingBuyIcon.js +1 -1
- package/dist/icons/pendingRedeemIcon.js +1 -1
- package/dist/icons/redeemIcon.js +1 -1
- package/dist/{index-BbVpeed7.js → index-B4XvACQN.js} +89 -98
- package/dist/{index-BHG1bT4t.js → index-CTPMPwYK.js} +173 -182
- package/dist/{index-Dh_ahu-u.js → index-DkiQ8pRO.js} +95 -106
- package/dist/{index-C7Td5yoW.js → index-DuWW5roi.js} +175 -184
- package/dist/{index-eEBuSKOo.js → index-JY6-UKlX.js} +127 -137
- package/dist/{index-D2JWUPz8.js → index-_fiTunwZ.js} +154 -163
- package/dist/{index-B9oucF3r.js → index-bK14vCZw.js} +189 -198
- package/dist/{kyc-ksV3vBP_.js → kyc-BNMPoeHt.js} +1 -1
- package/dist/main.js +7 -7
- package/dist/memoTheme-DnE8lj0t.js +3481 -0
- package/dist/{order-DEp_Lmar.js → order-BXeCIvqC.js} +1 -1
- package/dist/otpForm-DeeegaX2.js +7378 -0
- package/dist/{stake-Ct7-_aWW.js → stake-BO2TYVJ7.js} +1 -1
- package/dist/styles.module-DFoezEqS.js +28 -0
- package/dist/{tokenRow-C-iMHhPj.js → tokenRow-BiNtHOKV.js} +20 -21
- package/dist/tooltip-BW0UyWw7.js +2129 -0
- package/dist/util/constants.d.ts +1 -0
- package/dist/util/constants.js +72 -71
- package/dist/{wallet-CauUBXou.js → wallet-BPXOp8UG.js} +1 -1
- package/package.json +6 -6
- package/dist/Alert-DzsbFW3-.js +0 -369
- package/dist/Autocomplete-CE-OI2t8.js +0 -2429
- package/dist/Avatar-1XklXr4O.js +0 -281
- package/dist/Backdrop-CioURPVG.js +0 -359
- package/dist/Box-B0YSYLco.js +0 -59
- package/dist/Button-Df4vgU24.js +0 -663
- package/dist/ButtonBase-DLF5c6wi.js +0 -870
- package/dist/CardContent-D9wTdpu-.js +0 -141
- package/dist/CircularProgress-xZA3lvba.js +0 -252
- package/dist/Close-CxzDL3J-.js +0 -9
- package/dist/Container-urNKV7hm.js +0 -181
- package/dist/DefaultPropsProvider-CeF7UYM9.js +0 -92
- package/dist/DefaultPropsProvider-oAu9El-f.js +0 -226
- package/dist/DialogContent-BMwlOnbW.js +0 -567
- package/dist/DialogTitle-CfS0bb2K.js +0 -70
- package/dist/Divider-BShhMFf4.js +0 -297
- package/dist/FilledInput-DuNqnPjc.js +0 -1292
- package/dist/FormControl-RtZDQMdA.js +0 -258
- package/dist/FormControlLabel-BliKW48y.js +0 -519
- package/dist/GlobalStyles-ChMhDfTS.js +0 -59
- package/dist/Grid-CFe3amXO.js +0 -410
- package/dist/Grow-CnGtel3u.js +0 -196
- package/dist/HTMLElementType-BrQSV2FE.js +0 -13
- package/dist/IconButton-DHm-hucF.js +0 -297
- package/dist/InputAdornment-DMiED3JH.js +0 -173
- package/dist/Link-DBA9Yifs.js +0 -266
- package/dist/ListItemIcon-CUcyTEEm.js +0 -84
- package/dist/Menu-DLYFFrEk.js +0 -1239
- package/dist/MenuItem-DUdYOJr4.js +0 -271
- package/dist/Modal-CFIQ_s3T.js +0 -743
- package/dist/Paper-Bgt2WXI6.js +0 -186
- package/dist/PlayArrow-Bjz9LxhD.js +0 -13
- package/dist/Popper-BBAoiZKn.js +0 -1409
- package/dist/Portal-BMAxiQwe.js +0 -69
- package/dist/RadioGroup-nvoSN0JN.js +0 -189
- package/dist/Select-CB5yWmyn.js +0 -1886
- package/dist/Slide-B9Nw0LZ4.js +0 -235
- package/dist/Stack-k55YTxET.js +0 -172
- package/dist/SwitchBase-C8zFyg_x.js +0 -318
- package/dist/TextField-DPpRUQe3.js +0 -978
- package/dist/TransitionGroupContext-CYRQkQ6k.js +0 -49
- package/dist/Typography-pAaje37G.js +0 -260
- package/dist/chainPropTypes-D9lkm76m.js +0 -8
- package/dist/clsx-BTaloaeC.js +0 -264
- package/dist/createChainedFunction-C0nujS3O.js +0 -9
- package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +0 -17
- package/dist/createTheme-CD19zQB7.js +0 -3825
- package/dist/debounce-46wSf_lW.js +0 -15
- package/dist/defaultTheme-C35y5cLB.js +0 -5
- package/dist/dividerClasses-BDxa2gAa.js +0 -10
- package/dist/elementAcceptingRef-CqLvP78G.js +0 -391
- package/dist/elementTypeAcceptingRef-BdsMpCbS.js +0 -23
- package/dist/emotion-react.browser.esm-BIrDfk-B.js +0 -246
- package/dist/exactProp-C1Lmtwf_.js +0 -13
- package/dist/extendSxProp-B8UjbJ56.js +0 -37
- package/dist/generateUtilityClasses-BRiE4Guh.js +0 -10
- package/dist/index-B0Z-Gjno.js +0 -22
- package/dist/index-DUcLo3x5.js +0 -43
- package/dist/isFocusVisible-CPZqtjv2.js +0 -12
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/isMuiElement-DnSE4qG4.js +0 -13
- package/dist/memoTheme-yHaPezod.js +0 -15
- package/dist/ownerWindow-CRgpWY6I.js +0 -7
- package/dist/radioButton-CzlYB0Lh.js +0 -402
- package/dist/refType-BsTH3qnM.js +0 -56
- package/dist/styles.module-CHPRGltL.js +0 -28
- package/dist/tooltip-3UvETWtS.js +0 -740
- package/dist/useControlled-nm4pBabJ.js +0 -31
- package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
- package/dist/useFormControl-CatNKXAi.js +0 -10
- package/dist/useId-CK6Kn3Tn.js +0 -21
- package/dist/useSlot-CW7SOYlh.js +0 -125
- package/dist/useSlotProps-BfEOwJvJ.js +0 -25
- package/dist/useTheme-BQJ5lp0i.js +0 -11
- package/dist/useTheme-S5_DHFsQ.js +0 -17
- package/dist/useThemeProps-DN9MjdTl.js +0 -29
|
@@ -1,36 +1,27 @@
|
|
|
1
1
|
import { jsxs as a, Fragment as F, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as c, useEffect as g } from "react";
|
|
3
3
|
import Oe from "./hoc/withThemeProvider.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
4
|
+
import { Grid as o, Box as y, Typography as s, CircularProgress as I, InputLabel as we, FormControl as Be, Select as Le, MenuItem as pe, ListItemIcon as Ve, IconButton as he } from "@mui/material";
|
|
5
|
+
import { P as Ye, f as We } from "./PlayArrow-71FP5PzJ.js";
|
|
6
|
+
import { I as Ke } from "./Info-DOoRR7sR.js";
|
|
7
|
+
import { G as qe } from "./generic-token-B_ptO5yb.js";
|
|
8
|
+
import re from "./components/RocketRamp/Shared/Input/index.js";
|
|
9
|
+
import { ID_TOKEN_SYMBOL as fe, FIAT_TO_EVER_ID as ae, FIAT_TO_TOKEN as ie, ESTIMATE_TOOLTIP_TEXT as $e, VISA_PAYMENT as De, VISA_PAYMENT_ACTIVE as Ue, SEPA_PAYMENT as Ge, SEPA_PAYMENT_ACTIVE as je, PAYMENT_BANK as ye, SEPA_ICON as He, VISA_ICON as be, PAYMENT_PROVIDER_CHECKOUT as xe } from "./util/constants.js";
|
|
10
|
+
import { aL as Xe, ay as te } from "./constants-DX0YBtP2.js";
|
|
11
|
+
import { d as Qe, e as Ce, f as Je, h as Ze, g as ge } from "./order-BXeCIvqC.js";
|
|
12
|
+
import { M as et } from "./tooltip-BW0UyWw7.js";
|
|
13
|
+
import { getCurrencySymbol as Ne, removeExtraSpace as tt, getOrionBalance as nt } from "./util/functions.js";
|
|
13
14
|
import oe from "./components/RocketRamp/Shared/Button/index.js";
|
|
14
15
|
import Ee from "./components/RocketRamp/Shared/backBtn.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { G as o } from "./Grid-CFe3amXO.js";
|
|
18
|
-
import { C as I } from "./CircularProgress-xZA3lvba.js";
|
|
19
|
-
import { E as Ze } from "./ErrorOutline-CPQcnl2b.js";
|
|
20
|
-
import { s as xe, p as et, h as tt, v as rt } from "./index-ceeCtFuh.js";
|
|
16
|
+
import { E as rt } from "./ErrorOutline-Bt7P4ChN.js";
|
|
17
|
+
import { s as _e, p as at, h as it, v as ot } from "./index-ceeCtFuh.js";
|
|
21
18
|
import { u as q } from "./react-redux-C7I9-1M6.js";
|
|
22
|
-
import { f as
|
|
23
|
-
import
|
|
24
|
-
import { useSnackBarContext as
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
|
|
28
|
-
import { S as lt } from "./Select-CB5yWmyn.js";
|
|
29
|
-
import { M as ge } from "./MenuItem-DUdYOJr4.js";
|
|
30
|
-
import { L as mt } from "./ListItemIcon-CUcyTEEm.js";
|
|
31
|
-
import { I as _e } from "./IconButton-DHm-hucF.js";
|
|
32
|
-
import './assets/index9.css';const dt = (C) => ({
|
|
33
|
-
type: Ue,
|
|
19
|
+
import { f as st } from "./cryptoAssets-B8rAI7pp.js";
|
|
20
|
+
import ct from "./components/RocketRamp/MinimalKyc/form.js";
|
|
21
|
+
import { useSnackBarContext as lt } from "./context/snackBarContext.js";
|
|
22
|
+
import dt from "./hooks/useEverestDispatch.js";
|
|
23
|
+
import './assets/index9.css';const mt = (C) => ({
|
|
24
|
+
type: Xe,
|
|
34
25
|
payload: C
|
|
35
26
|
}), $ = {
|
|
36
27
|
"confirm-payment": "_confirm-payment_alxbn_1",
|
|
@@ -43,12 +34,12 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
43
34
|
fiatAssets: u,
|
|
44
35
|
cryptoAssets: p,
|
|
45
36
|
getCryptoAssets: P,
|
|
46
|
-
showAlertMessage:
|
|
37
|
+
showAlertMessage: n,
|
|
47
38
|
partnerKey: E,
|
|
48
39
|
balance: M,
|
|
49
40
|
store: h
|
|
50
41
|
}) => {
|
|
51
|
-
const b = "USD", f = Ne(b),
|
|
42
|
+
const b = "USD", f = Ne(b), d = u.fiats, z = u.loader, k = p.featureTokens.list, N = p.featureTokens.default, j = p.loader, m = _.loader, A = _.estimate, O = A.crypto_out_amount, L = A.conversion_price, H = A.total_fee;
|
|
52
43
|
let D = 0, X = 0;
|
|
53
44
|
const U = A.fee_breakdown;
|
|
54
45
|
for (let t = 0; t < U.length; t++) {
|
|
@@ -57,8 +48,8 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
57
48
|
}
|
|
58
49
|
const [x, V] = c({
|
|
59
50
|
symbol: ""
|
|
60
|
-
}), [G, R] = c(!1), [T, Q] = c(0), [
|
|
61
|
-
A.fiat_amount ||
|
|
51
|
+
}), [G, R] = c(!1), [T, Q] = c(0), [r, S] = c(0), [w, Y] = c([]), [J, ve] = c(!1), [le, ke] = c(50), [de, Ae] = c(3e3), [ne, Ie] = c(50), [me, Te] = c(3e3), [Fe, W] = c(""), [K, ue] = c(
|
|
52
|
+
A.fiat_amount || ne.toString()
|
|
62
53
|
);
|
|
63
54
|
g(() => {
|
|
64
55
|
if (A.crypto_currency) {
|
|
@@ -69,15 +60,15 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
69
60
|
} else
|
|
70
61
|
N && N.id && V(N);
|
|
71
62
|
}, [N, A.crypto_currency]), g(() => {
|
|
72
|
-
|
|
73
|
-
}, [
|
|
74
|
-
if (
|
|
63
|
+
r && P(r);
|
|
64
|
+
}, [r]), g(() => {
|
|
65
|
+
if (d.length === 0)
|
|
75
66
|
return;
|
|
76
67
|
const t = [];
|
|
77
|
-
for (let i = 0; i <
|
|
78
|
-
if (
|
|
79
|
-
const l =
|
|
80
|
-
S(
|
|
68
|
+
for (let i = 0; i < d.length; i++) {
|
|
69
|
+
if (d[i].symbol === b) {
|
|
70
|
+
const l = d[i].payment_options;
|
|
71
|
+
S(d[i].id);
|
|
81
72
|
let Z = !1;
|
|
82
73
|
for (let B = 0; B < l.length; B++) {
|
|
83
74
|
const ee = l[B];
|
|
@@ -87,35 +78,35 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
87
78
|
}
|
|
88
79
|
Y(t);
|
|
89
80
|
}
|
|
90
|
-
}, [b,
|
|
91
|
-
if (x && x.id && K && T &&
|
|
92
|
-
v(
|
|
81
|
+
}, [b, d]), g(() => {
|
|
82
|
+
if (x && x.id && K && T && r) {
|
|
83
|
+
v(Qe(te)), R(!1), W("");
|
|
93
84
|
const t = setTimeout(() => {
|
|
94
85
|
Pe();
|
|
95
86
|
}, 1e3);
|
|
96
87
|
return () => clearTimeout(t);
|
|
97
88
|
}
|
|
98
|
-
}, [x, K, T, k,
|
|
89
|
+
}, [x, K, T, k, r]);
|
|
99
90
|
const Pe = () => {
|
|
100
91
|
var B;
|
|
101
92
|
const t = parseFloat(K);
|
|
102
|
-
if (x.symbol ===
|
|
93
|
+
if (x.symbol === fe) {
|
|
103
94
|
if (le > t)
|
|
104
95
|
return W(
|
|
105
96
|
`Minimum value should be greater than ${f + le}`
|
|
106
97
|
), R(!0), !1;
|
|
107
|
-
if (
|
|
98
|
+
if (de * 1 < t)
|
|
108
99
|
return W(
|
|
109
|
-
`Maximum value should be less than ${f +
|
|
100
|
+
`Maximum value should be less than ${f + de}`
|
|
110
101
|
), R(!0), !1;
|
|
111
102
|
} else {
|
|
112
|
-
if (
|
|
103
|
+
if (ne * 1 > t)
|
|
113
104
|
return W(
|
|
114
|
-
`Minimum value should be greater than ${f +
|
|
105
|
+
`Minimum value should be greater than ${f + ne}`
|
|
115
106
|
), R(!0), !1;
|
|
116
|
-
if (
|
|
107
|
+
if (me * 1 < t)
|
|
117
108
|
return W(
|
|
118
|
-
`Maximum value should be less than ${f +
|
|
109
|
+
`Maximum value should be less than ${f + me}`
|
|
119
110
|
), R(!0), !1;
|
|
120
111
|
}
|
|
121
112
|
const i = parseFloat(h.balance.oso);
|
|
@@ -128,7 +119,7 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
128
119
|
Ce(
|
|
129
120
|
{
|
|
130
121
|
apiKey: E,
|
|
131
|
-
transaction_type: x.symbol ===
|
|
122
|
+
transaction_type: x.symbol === fe ? ae : ie,
|
|
132
123
|
coin_amount: K,
|
|
133
124
|
exchange: x.exchange,
|
|
134
125
|
payment_type: Z,
|
|
@@ -142,7 +133,7 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
142
133
|
);
|
|
143
134
|
}, Me = ({ value: t, label: i }) => {
|
|
144
135
|
let l;
|
|
145
|
-
if (i === "credit_debit_card" ? (l =
|
|
136
|
+
if (i === "credit_debit_card" ? (l = De, T === t && (l = Ue)) : (l = Ge, T === t && (l = je)), i)
|
|
146
137
|
return /* @__PURE__ */ e(
|
|
147
138
|
y,
|
|
148
139
|
{
|
|
@@ -176,13 +167,13 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
176
167
|
V(i);
|
|
177
168
|
}, ze = () => {
|
|
178
169
|
if (!x.id)
|
|
179
|
-
return
|
|
170
|
+
return n({ message: "Please select token" }), !1;
|
|
180
171
|
if (!T)
|
|
181
|
-
return
|
|
172
|
+
return n({ message: "Please select payment method" }), !1;
|
|
182
173
|
if (!K)
|
|
183
|
-
return
|
|
174
|
+
return n({ message: "Please enter amount" }), !1;
|
|
184
175
|
if (!O)
|
|
185
|
-
return
|
|
176
|
+
return n({
|
|
186
177
|
message: "Please wait for the estimate to be calculated and then press next"
|
|
187
178
|
}), !1;
|
|
188
179
|
C(ce);
|
|
@@ -230,7 +221,7 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
230
221
|
) })
|
|
231
222
|
] }),
|
|
232
223
|
/* @__PURE__ */ e(o, { mt: 2, spacing: 2, container: !0, children: /* @__PURE__ */ e(o, { size: { xs: 6 }, children: /* @__PURE__ */ e(
|
|
233
|
-
|
|
224
|
+
re,
|
|
234
225
|
{
|
|
235
226
|
label: "You Pay",
|
|
236
227
|
value: K,
|
|
@@ -255,7 +246,7 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
255
246
|
] }),
|
|
256
247
|
/* @__PURE__ */ a(o, { mt: 3, spacing: 2, container: !0, children: [
|
|
257
248
|
/* @__PURE__ */ e(o, { size: { xs: 6 }, children: /* @__PURE__ */ e(
|
|
258
|
-
|
|
249
|
+
re,
|
|
259
250
|
{
|
|
260
251
|
label: "You Receive",
|
|
261
252
|
labelFontWeight: 600,
|
|
@@ -268,9 +259,9 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
268
259
|
}
|
|
269
260
|
) }),
|
|
270
261
|
/* @__PURE__ */ e(o, { size: { xs: 5 }, className: "content-center", children: j ? /* @__PURE__ */ e(I, { sx: { ml: 1 }, size: 30 }) : /* @__PURE__ */ a(F, { children: [
|
|
271
|
-
/* @__PURE__ */ e(
|
|
272
|
-
/* @__PURE__ */ e(
|
|
273
|
-
|
|
262
|
+
/* @__PURE__ */ e(we, { children: " " }),
|
|
263
|
+
/* @__PURE__ */ e(Be, { variant: "outlined", fullWidth: !0, children: /* @__PURE__ */ a(
|
|
264
|
+
Le,
|
|
274
265
|
{
|
|
275
266
|
sx: { marginTop: "-2px" },
|
|
276
267
|
inputProps: {
|
|
@@ -283,14 +274,14 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
283
274
|
value: x.symbol,
|
|
284
275
|
onChange: (t) => Se(t.target.value),
|
|
285
276
|
children: [
|
|
286
|
-
/* @__PURE__ */ e(
|
|
287
|
-
k.map((t) => /* @__PURE__ */ a(
|
|
288
|
-
/* @__PURE__ */ e(
|
|
277
|
+
/* @__PURE__ */ e(pe, { value: "", children: "Please select" }),
|
|
278
|
+
k.map((t) => /* @__PURE__ */ a(pe, { value: t.symbol, children: [
|
|
279
|
+
/* @__PURE__ */ e(Ve, { className: "dropdown-list-item", children: /* @__PURE__ */ e(
|
|
289
280
|
"img",
|
|
290
281
|
{
|
|
291
282
|
src: t.icon_uri,
|
|
292
283
|
onError: ({ currentTarget: i }) => {
|
|
293
|
-
i.onerror = null, i.src =
|
|
284
|
+
i.onerror = null, i.src = qe;
|
|
294
285
|
},
|
|
295
286
|
alt: "tokenImg",
|
|
296
287
|
width: "36",
|
|
@@ -306,7 +297,7 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
306
297
|
] }),
|
|
307
298
|
/* @__PURE__ */ e(y, { mt: 3, sx: { color: "#1A202C" }, children: /* @__PURE__ */ a(o, { container: !0, children: [
|
|
308
299
|
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 12 }, children: /* @__PURE__ */ a(
|
|
309
|
-
|
|
300
|
+
he,
|
|
310
301
|
{
|
|
311
302
|
sx: { padding: "0" },
|
|
312
303
|
onClick: () => ve((t) => !t),
|
|
@@ -315,7 +306,7 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
315
306
|
children: [
|
|
316
307
|
/* @__PURE__ */ e(s, { variant: "md", fontWeight: 500, children: "Fee Calculation" }),
|
|
317
308
|
/* @__PURE__ */ e(
|
|
318
|
-
|
|
309
|
+
Ye,
|
|
319
310
|
{
|
|
320
311
|
sx: {
|
|
321
312
|
transform: `rotate(${J ? "90" : "0"}deg)`,
|
|
@@ -330,12 +321,12 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
330
321
|
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Everest Fee" }) }),
|
|
331
322
|
/* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
332
323
|
f,
|
|
333
|
-
|
|
324
|
+
m ? /* @__PURE__ */ e(I, { size: 30, color: "primary" }) : D.toFixed(2)
|
|
334
325
|
] }) }),
|
|
335
326
|
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Network Fee" }) }),
|
|
336
327
|
/* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
337
328
|
f,
|
|
338
|
-
|
|
329
|
+
m ? /* @__PURE__ */ e(
|
|
339
330
|
I,
|
|
340
331
|
{
|
|
341
332
|
sx: { ml: 1 },
|
|
@@ -348,7 +339,7 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
348
339
|
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Total Fees" }) }),
|
|
349
340
|
/* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
350
341
|
f,
|
|
351
|
-
|
|
342
|
+
m ? /* @__PURE__ */ e(I, { sx: { ml: 1 }, size: 15, color: "primary" }) : Number(H).toFixed(2)
|
|
352
343
|
] }) }),
|
|
353
344
|
x && /* @__PURE__ */ a(F, { children: [
|
|
354
345
|
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
@@ -356,12 +347,12 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
356
347
|
x.symbol,
|
|
357
348
|
" ",
|
|
358
349
|
/* @__PURE__ */ e(
|
|
359
|
-
|
|
350
|
+
et,
|
|
360
351
|
{
|
|
361
|
-
title:
|
|
352
|
+
title: $e,
|
|
362
353
|
placement: "right",
|
|
363
|
-
children: /* @__PURE__ */ e(
|
|
364
|
-
|
|
354
|
+
children: /* @__PURE__ */ e(he, { className: "info-fee-icon", children: /* @__PURE__ */ e(
|
|
355
|
+
Ke,
|
|
365
356
|
{
|
|
366
357
|
sx: {
|
|
367
358
|
fontSize: "14px"
|
|
@@ -373,7 +364,7 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
373
364
|
] }) }),
|
|
374
365
|
/* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
375
366
|
f,
|
|
376
|
-
|
|
367
|
+
m ? /* @__PURE__ */ e(
|
|
377
368
|
I,
|
|
378
369
|
{
|
|
379
370
|
sx: { ml: 1 },
|
|
@@ -402,7 +393,7 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
402
393
|
walletAddress: p,
|
|
403
394
|
store: P
|
|
404
395
|
}) => {
|
|
405
|
-
const
|
|
396
|
+
const n = v.estimate, E = v.create.order_id, M = v.loader, h = n.fiat_amount, b = Ne(n.fiat_currency), [f, d] = c(!1);
|
|
406
397
|
g(() => {
|
|
407
398
|
E && f && C(ft);
|
|
408
399
|
}, [E]), g(() => {
|
|
@@ -413,25 +404,25 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
413
404
|
Ce({
|
|
414
405
|
// ...buyData,
|
|
415
406
|
apiKey: _,
|
|
416
|
-
transaction_type:
|
|
417
|
-
coin_amount:
|
|
418
|
-
exchange:
|
|
419
|
-
payment_type:
|
|
420
|
-
fiat_ccy:
|
|
421
|
-
crypto_ccy:
|
|
422
|
-
network:
|
|
423
|
-
payment_provider:
|
|
407
|
+
transaction_type: n.transaction_type,
|
|
408
|
+
coin_amount: n.fiat_amount,
|
|
409
|
+
exchange: n.exchange,
|
|
410
|
+
payment_type: n.payment_type,
|
|
411
|
+
fiat_ccy: n.fiat_currency,
|
|
412
|
+
crypto_ccy: n.crypto_currency,
|
|
413
|
+
network: n.network,
|
|
414
|
+
payment_provider: n.payment_provider
|
|
424
415
|
}, te)
|
|
425
416
|
);
|
|
426
417
|
}, k = () => {
|
|
427
418
|
u(
|
|
428
|
-
|
|
419
|
+
Je({
|
|
429
420
|
apiKey: _,
|
|
430
|
-
quoteId:
|
|
421
|
+
quoteId: n.quote_id,
|
|
431
422
|
walletAddress: p,
|
|
432
423
|
storeId: P.info.id
|
|
433
424
|
})
|
|
434
|
-
),
|
|
425
|
+
), d(!0);
|
|
435
426
|
};
|
|
436
427
|
return /* @__PURE__ */ a(F, { children: [
|
|
437
428
|
/* @__PURE__ */ e(Ee, { onClickHandler: () => C(se) }),
|
|
@@ -440,12 +431,12 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
440
431
|
/* @__PURE__ */ e(
|
|
441
432
|
"img",
|
|
442
433
|
{
|
|
443
|
-
src:
|
|
434
|
+
src: n.payment_type === ye ? He : be,
|
|
444
435
|
width: 100,
|
|
445
436
|
alt: "payment"
|
|
446
437
|
}
|
|
447
438
|
),
|
|
448
|
-
/* @__PURE__ */ e(s, { variant: "caption", component: "span", children: /* @__PURE__ */ e("strong", { children:
|
|
439
|
+
/* @__PURE__ */ e(s, { variant: "caption", component: "span", children: /* @__PURE__ */ e("strong", { children: n.payment_type === ye ? "Bank Account" : "Debit Card" }) })
|
|
449
440
|
] }),
|
|
450
441
|
/* @__PURE__ */ e(s, { mt: 4, variant: "sm", fontWeight: 600, children: "To Wallet Address" }),
|
|
451
442
|
/* @__PURE__ */ e(
|
|
@@ -460,45 +451,45 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
460
451
|
/* @__PURE__ */ e(s, { mt: 3, variant: "sm", fontWeight: 600, component: "p", children: "Order Estimate Details" }),
|
|
461
452
|
/* @__PURE__ */ e(y, { sx: { color: "#A6A6A6" }, children: /* @__PURE__ */ a(o, { container: !0, children: [
|
|
462
453
|
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
463
|
-
|
|
454
|
+
n.crypto_currency.toUpperCase(),
|
|
464
455
|
" @",
|
|
465
456
|
" ",
|
|
466
|
-
Number(
|
|
457
|
+
Number(n.conversion_price).toFixed(2),
|
|
467
458
|
" ",
|
|
468
|
-
|
|
459
|
+
n.fiat_currency
|
|
469
460
|
] }) }),
|
|
470
461
|
/* @__PURE__ */ e(o, { className: "flex-right", size: { xs: 6 }, children: /* @__PURE__ */ e(
|
|
471
462
|
"span",
|
|
472
463
|
{
|
|
473
464
|
className: $["confirm-transaction-network"],
|
|
474
465
|
style: {
|
|
475
|
-
backgroundColor:
|
|
466
|
+
backgroundColor: n.network === "Ethereum" ? "#A1A9DC" : "#5D8CCC"
|
|
476
467
|
},
|
|
477
|
-
children:
|
|
468
|
+
children: n.network
|
|
478
469
|
}
|
|
479
470
|
) }),
|
|
480
471
|
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
481
|
-
Number(
|
|
472
|
+
Number(n.crypto_out_amount).toFixed(5),
|
|
482
473
|
" ",
|
|
483
|
-
|
|
474
|
+
n.crypto_currency.toUpperCase()
|
|
484
475
|
] }) }),
|
|
485
476
|
/* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
486
|
-
(Number(h) - Number(
|
|
477
|
+
(Number(h) - Number(n.total_fee)).toFixed(2),
|
|
487
478
|
" ",
|
|
488
|
-
|
|
479
|
+
n.fiat_currency
|
|
489
480
|
] }) }),
|
|
490
481
|
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Total Fees" }) }),
|
|
491
482
|
/* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
|
|
492
|
-
Number(
|
|
483
|
+
Number(n.total_fee).toFixed(2),
|
|
493
484
|
" ",
|
|
494
|
-
|
|
485
|
+
n.fiat_currency
|
|
495
486
|
] }) }),
|
|
496
487
|
/* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: /* @__PURE__ */ e("strong", { children: "Order Total" }) }) }),
|
|
497
488
|
/* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: /* @__PURE__ */ a("strong", { children: [
|
|
498
489
|
b,
|
|
499
490
|
Number(h).toFixed(2),
|
|
500
491
|
" ",
|
|
501
|
-
|
|
492
|
+
n.fiat_currency
|
|
502
493
|
] }) }) })
|
|
503
494
|
] }) }),
|
|
504
495
|
/* @__PURE__ */ e(y, { mt: 4, children: /* @__PURE__ */ e(
|
|
@@ -521,63 +512,63 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
521
512
|
rrBaseUrl: u,
|
|
522
513
|
orderData: p,
|
|
523
514
|
dispatch: P,
|
|
524
|
-
store:
|
|
515
|
+
store: n
|
|
525
516
|
}) => {
|
|
526
|
-
const E = p.estimate, M = p.create.order_id, h = p.payment, [b, f] = c(!0), [
|
|
517
|
+
const E = p.estimate, M = p.create.order_id, h = p.payment, [b, f] = c(!0), [d, z] = c(""), [k, N] = c(!1), [j, m] = c({
|
|
527
518
|
name: "",
|
|
528
519
|
billingAddress: {
|
|
529
520
|
addressLine1: ""
|
|
530
521
|
}
|
|
531
522
|
}), [A, O] = c(!1), [L, H] = c(!0), [D, X] = c(!0), [U, x] = c(!0), [V, G] = c(!0);
|
|
532
523
|
g(() => {
|
|
533
|
-
var
|
|
534
|
-
(S = (
|
|
524
|
+
var r, S, w, Y;
|
|
525
|
+
(S = (r = h == null ? void 0 : h._links) == null ? void 0 : r.redirect) != null && S.href && window.location.replace((Y = (w = h == null ? void 0 : h._links) == null ? void 0 : w.redirect) == null ? void 0 : Y.href);
|
|
535
526
|
}, [h]), g(() => {
|
|
536
|
-
|
|
537
|
-
name:
|
|
527
|
+
m({
|
|
528
|
+
name: d,
|
|
538
529
|
billingAddress: {
|
|
539
530
|
addressLine1: ""
|
|
540
531
|
}
|
|
541
532
|
});
|
|
542
|
-
}, [
|
|
543
|
-
!D && !U && !V &&
|
|
544
|
-
}, [
|
|
545
|
-
const R = (
|
|
546
|
-
if (
|
|
533
|
+
}, [d]), g(() => {
|
|
534
|
+
!D && !U && !V && d !== "" ? L && H(!1) : L || H(!0);
|
|
535
|
+
}, [d, D, U, V]);
|
|
536
|
+
const R = (r, S, w, Y = /./) => {
|
|
537
|
+
if (r !== "" && !Y.test(r))
|
|
547
538
|
return !1;
|
|
548
|
-
S(
|
|
549
|
-
const J = typeof
|
|
539
|
+
S(r);
|
|
540
|
+
const J = typeof r == "string" ? tt(r) : r;
|
|
550
541
|
w(!J);
|
|
551
|
-
}, T = (
|
|
552
|
-
if (
|
|
553
|
-
switch (
|
|
542
|
+
}, T = (r) => {
|
|
543
|
+
if (r && r.element)
|
|
544
|
+
switch (r.element) {
|
|
554
545
|
case "card-number":
|
|
555
|
-
X(
|
|
546
|
+
X(r.isEmpty || !r.isValid);
|
|
556
547
|
break;
|
|
557
548
|
case "expiry-date":
|
|
558
|
-
x(
|
|
549
|
+
x(r.isEmpty || !r.isValid);
|
|
559
550
|
break;
|
|
560
551
|
case "cvv":
|
|
561
|
-
G(
|
|
552
|
+
G(r.isEmpty || !r.isValid);
|
|
562
553
|
break;
|
|
563
554
|
default:
|
|
564
555
|
console.log("NOOP");
|
|
565
556
|
break;
|
|
566
557
|
}
|
|
567
|
-
}, Q = (
|
|
568
|
-
if (
|
|
558
|
+
}, Q = (r) => {
|
|
559
|
+
if (r === "") {
|
|
569
560
|
v({ message: "Error processing card" }), O(!1), _(se);
|
|
570
561
|
return;
|
|
571
562
|
}
|
|
572
563
|
const S = {
|
|
573
|
-
token:
|
|
564
|
+
token: r,
|
|
574
565
|
amount: Number(E.fiat_amount),
|
|
575
566
|
currency: E.fiat_currency,
|
|
576
567
|
reference: M,
|
|
577
|
-
success_url: `${
|
|
578
|
-
fail_url: `${
|
|
568
|
+
success_url: `${n.info.name ? n.info.name + "." : ""}${u}/dashboard?payment=success`,
|
|
569
|
+
fail_url: `${n.info.name ? n.info.name + "." : ""}${u}/dashboard?payment=failed`
|
|
579
570
|
};
|
|
580
|
-
P(
|
|
571
|
+
P(Ze(S));
|
|
581
572
|
};
|
|
582
573
|
return /* @__PURE__ */ a(F, { children: [
|
|
583
574
|
/* @__PURE__ */ e(Ee, { onClickHandler: () => _(ce) }),
|
|
@@ -593,15 +584,15 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
593
584
|
variant: "caption",
|
|
594
585
|
mt: 2,
|
|
595
586
|
children: [
|
|
596
|
-
/* @__PURE__ */ e(
|
|
587
|
+
/* @__PURE__ */ e(rt, {}),
|
|
597
588
|
" ",
|
|
598
589
|
/* @__PURE__ */ e("b", { style: { marginTop: "3px" }, children: "Fiat purchasing is not available for users with Chase and Citi bank accounts" })
|
|
599
590
|
]
|
|
600
591
|
}
|
|
601
592
|
),
|
|
602
|
-
E.payment_provider ===
|
|
603
|
-
/* @__PURE__ */ e(y, { mt: 2, children: E.payment_provider ===
|
|
604
|
-
|
|
593
|
+
E.payment_provider === xe && b && /* @__PURE__ */ e(y, { className: "text-center", mt: 8, children: /* @__PURE__ */ e(I, {}) }),
|
|
594
|
+
/* @__PURE__ */ e(y, { mt: 2, children: E.payment_provider === xe && /* @__PURE__ */ a(
|
|
595
|
+
_e,
|
|
605
596
|
{
|
|
606
597
|
config: {
|
|
607
598
|
debug: !1,
|
|
@@ -645,30 +636,30 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
645
636
|
ready: () => {
|
|
646
637
|
f(!1);
|
|
647
638
|
},
|
|
648
|
-
frameValidationChanged: (
|
|
649
|
-
T(
|
|
639
|
+
frameValidationChanged: (r) => {
|
|
640
|
+
T(r);
|
|
650
641
|
},
|
|
651
642
|
cardSubmitted: () => {
|
|
652
643
|
O(!0);
|
|
653
644
|
},
|
|
654
|
-
cardTokenized: (
|
|
655
|
-
Q(
|
|
645
|
+
cardTokenized: (r) => {
|
|
646
|
+
Q(r.token);
|
|
656
647
|
},
|
|
657
|
-
cardTokenizationFailed: (
|
|
658
|
-
alert("card tokenization failed"), console.log(
|
|
648
|
+
cardTokenizationFailed: (r) => {
|
|
649
|
+
alert("card tokenization failed"), console.log(r);
|
|
659
650
|
},
|
|
660
651
|
children: [
|
|
661
652
|
/* @__PURE__ */ e(
|
|
662
|
-
|
|
653
|
+
re,
|
|
663
654
|
{
|
|
664
655
|
label: "Name on Card",
|
|
665
|
-
value:
|
|
666
|
-
onChange: (
|
|
656
|
+
value: d,
|
|
657
|
+
onChange: (r) => R(r.target.value, z, N),
|
|
667
658
|
error: k
|
|
668
659
|
}
|
|
669
660
|
),
|
|
670
661
|
/* @__PURE__ */ e(
|
|
671
|
-
|
|
662
|
+
at,
|
|
672
663
|
{
|
|
673
664
|
style: {
|
|
674
665
|
height: "4em",
|
|
@@ -679,7 +670,7 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
679
670
|
}
|
|
680
671
|
),
|
|
681
672
|
/* @__PURE__ */ e(
|
|
682
|
-
|
|
673
|
+
it,
|
|
683
674
|
{
|
|
684
675
|
style: {
|
|
685
676
|
height: "4em",
|
|
@@ -690,7 +681,7 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
690
681
|
}
|
|
691
682
|
),
|
|
692
683
|
/* @__PURE__ */ e(
|
|
693
|
-
|
|
684
|
+
ot,
|
|
694
685
|
{
|
|
695
686
|
style: {
|
|
696
687
|
height: "4em",
|
|
@@ -704,7 +695,7 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
704
695
|
oe,
|
|
705
696
|
{
|
|
706
697
|
onClick: () => {
|
|
707
|
-
|
|
698
|
+
_e.submitCard();
|
|
708
699
|
},
|
|
709
700
|
fullWidth: !0,
|
|
710
701
|
disabled: L,
|
|
@@ -724,23 +715,23 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
724
715
|
rrBaseUrl: _,
|
|
725
716
|
checkoutSdkKey: v
|
|
726
717
|
}) => {
|
|
727
|
-
const u =
|
|
728
|
-
(
|
|
729
|
-
),
|
|
730
|
-
(
|
|
718
|
+
const u = dt(), p = q((m) => m.order), P = q(
|
|
719
|
+
(m) => m.user.profile
|
|
720
|
+
), n = p.error, E = q(
|
|
721
|
+
(m) => m.user.profile.everWalletAddress
|
|
731
722
|
), M = q(
|
|
732
|
-
(
|
|
723
|
+
(m) => m.fiatAssets
|
|
733
724
|
), h = q(
|
|
734
|
-
(
|
|
735
|
-
), b = q((
|
|
725
|
+
(m) => m.cryptoAssets
|
|
726
|
+
), b = q((m) => m.app), [f, d] = c(se), [z, k] = c(0), { showAlertMessage: N } = lt();
|
|
736
727
|
return g(() => {
|
|
737
|
-
k(
|
|
728
|
+
k(nt(P.tokens.list));
|
|
738
729
|
}, [P.tokens]), g(() => {
|
|
739
|
-
|
|
740
|
-
}, [
|
|
741
|
-
p.initMinimalKyc && (N({ message:
|
|
730
|
+
n && N({ message: n });
|
|
731
|
+
}, [n]), g(() => {
|
|
732
|
+
p.initMinimalKyc && (N({ message: n, type: "info" }), d(yt));
|
|
742
733
|
}, [p.initMinimalKyc]), g(() => {
|
|
743
|
-
u(
|
|
734
|
+
u(We()), u(ge(ie)), u(ge(ae)), u(mt(b.store.info.id));
|
|
744
735
|
}, []), /* @__PURE__ */ e(
|
|
745
736
|
y,
|
|
746
737
|
{
|
|
@@ -755,13 +746,13 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
755
746
|
ut,
|
|
756
747
|
{
|
|
757
748
|
showAlertMessage: N,
|
|
758
|
-
setScreen:
|
|
749
|
+
setScreen: d,
|
|
759
750
|
fiatAssets: M,
|
|
760
751
|
cryptoAssets: h,
|
|
761
752
|
orderData: p,
|
|
762
753
|
dispatch: u,
|
|
763
|
-
getCryptoAssets: (
|
|
764
|
-
u(
|
|
754
|
+
getCryptoAssets: (m) => {
|
|
755
|
+
u(st({ type: te, id: m, partnerKey: C }));
|
|
765
756
|
},
|
|
766
757
|
partnerKey: C,
|
|
767
758
|
balance: z,
|
|
@@ -772,7 +763,7 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
772
763
|
pt,
|
|
773
764
|
{
|
|
774
765
|
partnerKey: C,
|
|
775
|
-
setScreen:
|
|
766
|
+
setScreen: d,
|
|
776
767
|
showAlertMessage: N,
|
|
777
768
|
orderData: p,
|
|
778
769
|
dispatch: u,
|
|
@@ -784,7 +775,7 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
784
775
|
ht,
|
|
785
776
|
{
|
|
786
777
|
checkoutKey: v,
|
|
787
|
-
setScreen:
|
|
778
|
+
setScreen: d,
|
|
788
779
|
showAlertMessage: N,
|
|
789
780
|
orderData: p,
|
|
790
781
|
rrBaseUrl: _,
|
|
@@ -793,17 +784,17 @@ import './assets/index9.css';const dt = (C) => ({
|
|
|
793
784
|
}
|
|
794
785
|
),
|
|
795
786
|
MINIMAL_KYC_SCREEN: /* @__PURE__ */ e(
|
|
796
|
-
|
|
787
|
+
ct,
|
|
797
788
|
{
|
|
798
789
|
onComplete: () => {
|
|
799
|
-
|
|
790
|
+
d(ce);
|
|
800
791
|
}
|
|
801
792
|
}
|
|
802
793
|
)
|
|
803
794
|
}[f]
|
|
804
795
|
}
|
|
805
796
|
);
|
|
806
|
-
},
|
|
797
|
+
}, Yt = Oe(xt);
|
|
807
798
|
export {
|
|
808
799
|
ut as B,
|
|
809
800
|
ht as C,
|
|
@@ -812,5 +803,5 @@ export {
|
|
|
812
803
|
ft as P,
|
|
813
804
|
pt as a,
|
|
814
805
|
ce as b,
|
|
815
|
-
|
|
806
|
+
Yt as i
|
|
816
807
|
};
|