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