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,19 +1,19 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e, Fragment as b } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { u as
|
|
4
|
-
import { P as
|
|
5
|
-
import { I as
|
|
6
|
-
import { G as
|
|
7
|
-
import { getCentralLedgetNetwork as
|
|
8
|
-
import
|
|
9
|
-
import { formatNumberWithoutRounding as
|
|
10
|
-
import { F as
|
|
2
|
+
import { useRef as We, useState as u, useEffect as y } from "react";
|
|
3
|
+
import { u as P, a as $e } from "../../../react-redux-C7I9-1M6.js";
|
|
4
|
+
import { P as Pe } from "../../../PlayArrow-DRCGjsrx.js";
|
|
5
|
+
import { I as Be } from "../../../Info-D2UkGxyK.js";
|
|
6
|
+
import { G as De } from "../../../generic-token-B_ptO5yb.js";
|
|
7
|
+
import { getCentralLedgetNetwork as B, getNetworkBackGround as ce, getCurrencySymbol as Ue } from "../../../util/functions.js";
|
|
8
|
+
import me from "../Shared/TokenModal/index.js";
|
|
9
|
+
import { formatNumberWithoutRounding as de } from "../../../util/conversions.js";
|
|
10
|
+
import { F as z } from "../../../constants-CsMPRK0U.js";
|
|
11
11
|
import { u as qe } from "../../../index-f15o1nhn.js";
|
|
12
|
-
import { f as Ge, a as Ye, b as je } from "../../../cryptoAssets-
|
|
13
|
-
import { u as He } from "../../../wallet-
|
|
14
|
-
import { o as
|
|
12
|
+
import { f as Ge, a as Ye, b as je } from "../../../cryptoAssets-CzNDY1j6.js";
|
|
13
|
+
import { u as He } from "../../../wallet-DDW5KCHp.js";
|
|
14
|
+
import { o as D, a as Ke, b as Xe, c as Ve, d as Je } from "../../../order-DmTHC7ZG.js";
|
|
15
15
|
import { DIALOG_SUCCESS_ICON as Qe, TOKEN_TO_TOKEN as U, ARROW_ICON as Ze, ESTIMATE_TOOLTIP_TEXT as et } from "../../../util/constants.js";
|
|
16
|
-
import { M as tt } from "../../../tooltip-
|
|
16
|
+
import { M as tt } from "../../../tooltip-DGtrVEzU.js";
|
|
17
17
|
import rt from "../../../hoc/withThemeProvider.js";
|
|
18
18
|
import "../Shared/appButton.js";
|
|
19
19
|
import "../Shared/Auth/otpForm.js";
|
|
@@ -30,46 +30,46 @@ import "../../../web3-u4qDZYpo.js";
|
|
|
30
30
|
import "../../../index-B8QKlEgj.js";
|
|
31
31
|
import "../../../index-ceeCtFuh.js";
|
|
32
32
|
import { s as i } from "../../../styles.module-BFHktEw2.js";
|
|
33
|
-
import { B as
|
|
34
|
-
import { G as n } from "../../../Grid-
|
|
35
|
-
import { T as l } from "../../../Typography-
|
|
36
|
-
import { F as
|
|
37
|
-
import { F as
|
|
38
|
-
import { F as
|
|
39
|
-
import { C as h } from "../../../CircularProgress-
|
|
40
|
-
import { S as G } from "../../../Select-
|
|
41
|
-
import { M as
|
|
42
|
-
import { L as
|
|
43
|
-
import { I as
|
|
44
|
-
import { B as st } from "../../../Button-
|
|
45
|
-
const it = ({ partnerKey:
|
|
46
|
-
var
|
|
47
|
-
const j =
|
|
33
|
+
import { B as k } from "../../../Box-B12x52NC.js";
|
|
34
|
+
import { G as n } from "../../../Grid-BXyV_lM8.js";
|
|
35
|
+
import { T as l } from "../../../Typography-DBlMiOti.js";
|
|
36
|
+
import { F as N } from "../../../FormControl-DeeQCuu5.js";
|
|
37
|
+
import { F as A } from "../../../FilledInput-DrGeWgue.js";
|
|
38
|
+
import { F as ue, I as q } from "../../../TextField-q_SeLeNd.js";
|
|
39
|
+
import { C as h } from "../../../CircularProgress-t8uGhLMo.js";
|
|
40
|
+
import { S as G } from "../../../Select-Chubcks_.js";
|
|
41
|
+
import { M as _ } from "../../../MenuItem-CeCt0bfa.js";
|
|
42
|
+
import { L as pe } from "../../../ListItemIcon-GKRFb1Gr.js";
|
|
43
|
+
import { I as fe } from "../../../IconButton-eWRhV6Q9.js";
|
|
44
|
+
import { B as st } from "../../../Button-C57IMamW.js";
|
|
45
|
+
const it = ({ partnerKey: I, navigate: Y }) => {
|
|
46
|
+
var ie, le;
|
|
47
|
+
const j = We(null), { openDialog: he, ConfirmDialog: xe } = nt(), { showAlertMessage: d } = at(), x = P((t) => t.order), w = P(
|
|
48
48
|
(t) => t.cryptoAssets
|
|
49
|
-
), H =
|
|
49
|
+
), H = P(qe), ge = H.data, { loader: be } = H, M = w.featureTokens.swap.inputList, r = w.featureTokens.swap.inputDefault, v = w.featureTokens.swap.outputList, o = w.featureTokens.swap.outputDefault, S = w.loader, O = x.error, K = x.create.order_id, F = x.loader, c = x.estimate[z], C = c.output_token.amount, X = c.conversion_price, ye = c.total_fee, T = Number((ie = c == null ? void 0 : c.input_token) == null ? void 0 : ie.fiat_amount), V = Number((le = c == null ? void 0 : c.output_token) == null ? void 0 : le.fiat_amount);
|
|
50
50
|
let J = 0, Q = 0;
|
|
51
51
|
const Z = c.fee_breakdown;
|
|
52
52
|
for (let t = 0; t < Z.length; t++) {
|
|
53
53
|
const s = Z[t];
|
|
54
54
|
s.name === "ev_fee" ? J = Number(s.value) : s.name === "network_fee" && (Q = Number(s.value));
|
|
55
55
|
}
|
|
56
|
-
const [g,
|
|
56
|
+
const [g, R] = u("0.05"), [E, we] = u(!1), [ve, ee] = u(!1), [ke, te] = u(!1), [re, Ne] = u(!1), [L, oe] = u(!1), [p, _e] = u(""), [W, Se] = u(50), [Fe, Ce] = u(1e4), [ae, Te] = u(""), ze = /^([0-9]*(\,|\.)[0-9]+|[0-9]+)$/, $ = Ue("USD"), m = $e(), Ae = (t) => {
|
|
57
57
|
m(Ye(t));
|
|
58
|
-
},
|
|
58
|
+
}, Ie = (t) => {
|
|
59
59
|
m(je(t));
|
|
60
60
|
};
|
|
61
61
|
y(() => {
|
|
62
|
-
K &&
|
|
62
|
+
K && L && he({
|
|
63
63
|
icon: Qe,
|
|
64
64
|
title: "Swap Success",
|
|
65
65
|
message: "Your transaction was successful for more details on the transaction, please view your transaction history.",
|
|
66
66
|
cancelButtonText: "Swap again",
|
|
67
67
|
onCancel: () => {
|
|
68
|
-
m(
|
|
68
|
+
m(D()), oe(!1);
|
|
69
69
|
},
|
|
70
70
|
confirmButtonText: "Track Order",
|
|
71
71
|
onConfirm: () => {
|
|
72
|
-
Y && Y("/history"), m(
|
|
72
|
+
Y && Y("/history"), m(D());
|
|
73
73
|
},
|
|
74
74
|
height: "490px"
|
|
75
75
|
});
|
|
@@ -77,71 +77,71 @@ const it = ({ partnerKey: M, navigate: Y }) => {
|
|
|
77
77
|
const t = j.current;
|
|
78
78
|
(t == null ? void 0 : t.id) === r.id && (t == null ? void 0 : t.wallet) === p || (j.current = { id: r.id, wallet: p }, m(
|
|
79
79
|
Ge({
|
|
80
|
-
type:
|
|
80
|
+
type: z,
|
|
81
81
|
id: r.id,
|
|
82
|
+
outputId: o.id,
|
|
82
83
|
walletAddress: p,
|
|
83
|
-
partnerKey:
|
|
84
|
+
partnerKey: I
|
|
84
85
|
})
|
|
85
86
|
));
|
|
86
87
|
}, [r.id, p]), y(() => (m(He()), m(Ke(U)), () => {
|
|
87
|
-
m(
|
|
88
|
+
m(D());
|
|
88
89
|
}), []), y(() => {
|
|
89
90
|
const t = x.types.length;
|
|
90
91
|
if (t > 0)
|
|
91
92
|
for (let s = 0; s < t; s++) {
|
|
92
93
|
const f = x.types[s];
|
|
93
94
|
if (f.type === U) {
|
|
94
|
-
|
|
95
|
+
Se(parseFloat(f.min_deposit_amount)), Ce(parseFloat(f.max_deposit_amount));
|
|
95
96
|
break;
|
|
96
97
|
}
|
|
97
98
|
}
|
|
98
99
|
}, [x.types]), y(() => {
|
|
99
|
-
|
|
100
|
-
}, [
|
|
100
|
+
O && d({ message: O });
|
|
101
|
+
}, [O]), y(() => {
|
|
101
102
|
if (o && o.id && g) {
|
|
102
|
-
m(Xe(
|
|
103
|
+
m(Xe(z)), we(!1), Te("");
|
|
103
104
|
const t = setTimeout(() => {
|
|
104
|
-
|
|
105
|
+
Me();
|
|
105
106
|
}, 1e3);
|
|
106
107
|
return () => clearTimeout(t);
|
|
107
108
|
}
|
|
108
109
|
}, [g, r, o]);
|
|
109
|
-
const
|
|
110
|
+
const Me = () => {
|
|
110
111
|
r.network && o && o.network && m(
|
|
111
112
|
Ve(
|
|
112
113
|
{
|
|
113
|
-
apiKey:
|
|
114
|
+
apiKey: I,
|
|
114
115
|
transaction_type: U,
|
|
115
116
|
coin_amount: g,
|
|
116
117
|
input_token: r.symbol,
|
|
117
|
-
input_token_network:
|
|
118
|
+
input_token_network: B(
|
|
118
119
|
r.network.name
|
|
119
120
|
),
|
|
120
121
|
exchange: r.exchange,
|
|
121
122
|
output_token: o.symbol,
|
|
122
|
-
output_token_network:
|
|
123
|
+
output_token_network: B(
|
|
123
124
|
o.network.name
|
|
124
125
|
),
|
|
125
126
|
output_exchange: o.exchange
|
|
126
127
|
},
|
|
127
|
-
|
|
128
|
+
z
|
|
128
129
|
)
|
|
129
130
|
);
|
|
131
|
+
}, Oe = (t) => {
|
|
132
|
+
_e(t);
|
|
130
133
|
}, Re = (t) => {
|
|
131
|
-
Se(t);
|
|
132
|
-
}, Ee = (t) => {
|
|
133
134
|
const s = t.target.value;
|
|
134
|
-
s ? /^([0-9.]+)$/.test(s) &&
|
|
135
|
-
},
|
|
136
|
-
if (
|
|
137
|
-
const s =
|
|
138
|
-
|
|
135
|
+
s ? /^([0-9.]+)$/.test(s) && R(de(s, 8)) : R("");
|
|
136
|
+
}, ne = (t) => {
|
|
137
|
+
if (v) {
|
|
138
|
+
const s = v.find((f) => f.symbol === t);
|
|
139
|
+
Ie(s);
|
|
139
140
|
}
|
|
140
|
-
},
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}, Le = () => {
|
|
141
|
+
}, se = (t) => {
|
|
142
|
+
const s = M.find((f) => f.symbol === t);
|
|
143
|
+
Ae(s);
|
|
144
|
+
}, Ee = () => {
|
|
145
145
|
if (!r)
|
|
146
146
|
return d({
|
|
147
147
|
message: "Please select token you want to swap"
|
|
@@ -154,7 +154,7 @@ const it = ({ partnerKey: M, navigate: Y }) => {
|
|
|
154
154
|
return d({ message: "Please enter amount" }), !1;
|
|
155
155
|
if (!p)
|
|
156
156
|
return d({ message: "Please select/enter wallet address" }), !1;
|
|
157
|
-
if (!
|
|
157
|
+
if (!ze.test(g))
|
|
158
158
|
return d({ message: "Please provide a valid amount" }), !1;
|
|
159
159
|
if (!C)
|
|
160
160
|
return d({
|
|
@@ -164,31 +164,31 @@ const it = ({ partnerKey: M, navigate: Y }) => {
|
|
|
164
164
|
return d({
|
|
165
165
|
message: "You don't have enough balance to make this swap"
|
|
166
166
|
}), !1;
|
|
167
|
-
if (
|
|
167
|
+
if (W * 1 > T * 1)
|
|
168
168
|
return d({
|
|
169
169
|
message: "The input amount of this transaction is below our minimum, please try a higher transaction amount"
|
|
170
170
|
}), !1;
|
|
171
|
-
if (
|
|
171
|
+
if (Fe * 1 < T * 1)
|
|
172
172
|
return d({
|
|
173
173
|
message: "The input amount of this transaction is above our maximum, please try a lower transaction amount"
|
|
174
174
|
}), !1;
|
|
175
|
-
if (
|
|
175
|
+
if (L)
|
|
176
176
|
return !1;
|
|
177
177
|
oe(!0), m(
|
|
178
178
|
Je({
|
|
179
|
-
apiKey:
|
|
179
|
+
apiKey: I,
|
|
180
180
|
quoteId: c.quote_id,
|
|
181
181
|
walletAddress: p
|
|
182
182
|
})
|
|
183
183
|
);
|
|
184
|
-
},
|
|
185
|
-
r &&
|
|
184
|
+
}, Le = () => {
|
|
185
|
+
r && R(de(r.fmt_balance + "", 8));
|
|
186
186
|
};
|
|
187
187
|
return /* @__PURE__ */ a(ot, { addPadding: !0, children: [
|
|
188
|
-
/* @__PURE__ */ a(
|
|
189
|
-
/* @__PURE__ */ e(
|
|
188
|
+
/* @__PURE__ */ a(k, { children: [
|
|
189
|
+
/* @__PURE__ */ e(xe, {}),
|
|
190
190
|
/* @__PURE__ */ a(n, { container: !0, children: [
|
|
191
|
-
/* @__PURE__ */ e(n, {
|
|
191
|
+
/* @__PURE__ */ e(n, { size: 2.5, children: /* @__PURE__ */ e(
|
|
192
192
|
l,
|
|
193
193
|
{
|
|
194
194
|
className: i.label,
|
|
@@ -197,7 +197,7 @@ const it = ({ partnerKey: M, navigate: Y }) => {
|
|
|
197
197
|
children: "You Swap"
|
|
198
198
|
}
|
|
199
199
|
) }),
|
|
200
|
-
/* @__PURE__ */ e(n, {
|
|
200
|
+
/* @__PURE__ */ e(n, { size: 9.5, children: p && r && /* @__PURE__ */ a(
|
|
201
201
|
l,
|
|
202
202
|
{
|
|
203
203
|
className: i["balance-label"],
|
|
@@ -209,37 +209,37 @@ const it = ({ partnerKey: M, navigate: Y }) => {
|
|
|
209
209
|
" ",
|
|
210
210
|
r.symbol,
|
|
211
211
|
" ",
|
|
212
|
-
/* @__PURE__ */ e("span", { className: i["max-btn"], onClick:
|
|
212
|
+
/* @__PURE__ */ e("span", { className: i["max-btn"], onClick: Le, children: "MAX" })
|
|
213
213
|
]
|
|
214
214
|
}
|
|
215
215
|
) })
|
|
216
216
|
] }),
|
|
217
217
|
/* @__PURE__ */ a(n, { spacing: 0, mt: 0.5, container: !0, children: [
|
|
218
|
-
/* @__PURE__ */ e(n, {
|
|
219
|
-
|
|
218
|
+
/* @__PURE__ */ e(n, { size: 6, children: /* @__PURE__ */ a(
|
|
219
|
+
N,
|
|
220
220
|
{
|
|
221
221
|
className: `${i.amount} ${i["fiat-field"]}`,
|
|
222
222
|
fullWidth: !0,
|
|
223
223
|
children: [
|
|
224
224
|
/* @__PURE__ */ e(
|
|
225
|
-
|
|
225
|
+
A,
|
|
226
226
|
{
|
|
227
227
|
disableUnderline: !0,
|
|
228
228
|
value: g,
|
|
229
|
-
onChange:
|
|
229
|
+
onChange: Re,
|
|
230
230
|
type: "text",
|
|
231
|
-
placeholder: `${
|
|
232
|
-
error:
|
|
231
|
+
placeholder: `${W > 0 ? "$" + W + " minimum value" : ""}`,
|
|
232
|
+
error: E,
|
|
233
233
|
required: !0,
|
|
234
234
|
fullWidth: !0
|
|
235
235
|
}
|
|
236
236
|
),
|
|
237
|
-
/* @__PURE__ */ e(
|
|
237
|
+
/* @__PURE__ */ e(ue, { className: i["amount-symbol"], children: T > 0 ? "$" + (T * 1).toFixed(2) : /* @__PURE__ */ e(b, { children: " " }) })
|
|
238
238
|
]
|
|
239
239
|
}
|
|
240
240
|
) }),
|
|
241
|
-
/* @__PURE__ */ e(n, {
|
|
242
|
-
|
|
241
|
+
/* @__PURE__ */ e(n, { size: 6, className: "content-center", children: S ? /* @__PURE__ */ e(h, { sx: { ml: 1 }, size: 30 }) : /* @__PURE__ */ a(
|
|
242
|
+
N,
|
|
243
243
|
{
|
|
244
244
|
variant: "filled",
|
|
245
245
|
className: `text-left ${i["crypto-picker"]}`,
|
|
@@ -248,14 +248,14 @@ const it = ({ partnerKey: M, navigate: Y }) => {
|
|
|
248
248
|
(r == null ? void 0 : r.network) && /* @__PURE__ */ e(
|
|
249
249
|
q,
|
|
250
250
|
{
|
|
251
|
-
className: `${i["network-label"]} ${i[
|
|
252
|
-
children:
|
|
251
|
+
className: `${i["network-label"]} ${i[ce(r == null ? void 0 : r.network.name)]}`,
|
|
252
|
+
children: B(r == null ? void 0 : r.network.name)
|
|
253
253
|
}
|
|
254
254
|
),
|
|
255
255
|
/* @__PURE__ */ a(
|
|
256
256
|
G,
|
|
257
257
|
{
|
|
258
|
-
input: /* @__PURE__ */ e(
|
|
258
|
+
input: /* @__PURE__ */ e(A, { disableUnderline: !0 }),
|
|
259
259
|
sx: {
|
|
260
260
|
borderTopLeftRadius: 0,
|
|
261
261
|
"&::before": {
|
|
@@ -280,17 +280,17 @@ const it = ({ partnerKey: M, navigate: Y }) => {
|
|
|
280
280
|
variant: "filled",
|
|
281
281
|
value: r && r.symbol,
|
|
282
282
|
displayEmpty: !0,
|
|
283
|
-
onChange: (t) =>
|
|
283
|
+
onChange: (t) => se(t.target.value),
|
|
284
284
|
onOpen: (t) => {
|
|
285
285
|
te(!0), t.preventDefault();
|
|
286
286
|
},
|
|
287
287
|
defaultOpen: !1,
|
|
288
288
|
open: !1,
|
|
289
|
-
error:
|
|
289
|
+
error: E,
|
|
290
290
|
children: [
|
|
291
|
-
/* @__PURE__ */ e(
|
|
292
|
-
|
|
293
|
-
/* @__PURE__ */ e(
|
|
291
|
+
/* @__PURE__ */ e(_, { value: "", children: "Please select input" }),
|
|
292
|
+
M.map((t) => /* @__PURE__ */ a(_, { value: t.symbol, children: [
|
|
293
|
+
/* @__PURE__ */ e(pe, { className: i["dropdown-list-item"], children: /* @__PURE__ */ e(
|
|
294
294
|
"img",
|
|
295
295
|
{
|
|
296
296
|
src: t.icon_uri,
|
|
@@ -310,7 +310,7 @@ const it = ({ partnerKey: M, navigate: Y }) => {
|
|
|
310
310
|
ae && /* @__PURE__ */ e(l, { variant: "caption", sx: { color: "red" }, children: /* @__PURE__ */ e("strong", { children: ae }) })
|
|
311
311
|
] }),
|
|
312
312
|
/* @__PURE__ */ a(n, { mt: 4, container: !0, children: [
|
|
313
|
-
/* @__PURE__ */ e(n, {
|
|
313
|
+
/* @__PURE__ */ e(n, { size: 4, children: /* @__PURE__ */ e(
|
|
314
314
|
l,
|
|
315
315
|
{
|
|
316
316
|
className: i.label,
|
|
@@ -319,26 +319,17 @@ const it = ({ partnerKey: M, navigate: Y }) => {
|
|
|
319
319
|
children: "You Receive"
|
|
320
320
|
}
|
|
321
321
|
) }),
|
|
322
|
-
/* @__PURE__ */ e(
|
|
323
|
-
n,
|
|
324
|
-
{
|
|
325
|
-
sx: { marginTop: "-20px" },
|
|
326
|
-
className: "text-center",
|
|
327
|
-
item: !0,
|
|
328
|
-
xs: 4,
|
|
329
|
-
children: /* @__PURE__ */ e("img", { src: Ze, alt: "arrow" })
|
|
330
|
-
}
|
|
331
|
-
)
|
|
322
|
+
/* @__PURE__ */ e(n, { sx: { marginTop: "-20px" }, className: "text-center", size: 4, children: /* @__PURE__ */ e("img", { src: Ze, alt: "arrow" }) })
|
|
332
323
|
] }),
|
|
333
324
|
/* @__PURE__ */ a(n, { mt: 0.5, container: !0, children: [
|
|
334
|
-
/* @__PURE__ */ e(n, {
|
|
335
|
-
|
|
325
|
+
/* @__PURE__ */ e(n, { size: 6, children: /* @__PURE__ */ a(
|
|
326
|
+
N,
|
|
336
327
|
{
|
|
337
328
|
className: `${i.amount} ${i["fiat-field"]}`,
|
|
338
329
|
fullWidth: !0,
|
|
339
330
|
children: [
|
|
340
331
|
/* @__PURE__ */ e(
|
|
341
|
-
|
|
332
|
+
A,
|
|
342
333
|
{
|
|
343
334
|
disableUnderline: !0,
|
|
344
335
|
value: C && parseFloat(C).toFixed(5),
|
|
@@ -347,18 +338,18 @@ const it = ({ partnerKey: M, navigate: Y }) => {
|
|
|
347
338
|
fullWidth: !0
|
|
348
339
|
}
|
|
349
340
|
),
|
|
350
|
-
/* @__PURE__ */ e(
|
|
341
|
+
/* @__PURE__ */ e(ue, { className: i["amount-symbol"], children: V > 0 ? "$" + (V * 1).toFixed(2) : /* @__PURE__ */ e(b, { children: " " }) })
|
|
351
342
|
]
|
|
352
343
|
}
|
|
353
344
|
) }),
|
|
354
|
-
/* @__PURE__ */ e(n, {
|
|
345
|
+
/* @__PURE__ */ e(n, { size: 6, className: "content-center", children: S ? /* @__PURE__ */ e(
|
|
355
346
|
h,
|
|
356
347
|
{
|
|
357
348
|
sx: { ml: 1 },
|
|
358
349
|
size: 30
|
|
359
350
|
}
|
|
360
351
|
) : /* @__PURE__ */ a(
|
|
361
|
-
|
|
352
|
+
N,
|
|
362
353
|
{
|
|
363
354
|
variant: "filled",
|
|
364
355
|
className: `text-left ${i["crypto-picker"]}`,
|
|
@@ -367,14 +358,14 @@ const it = ({ partnerKey: M, navigate: Y }) => {
|
|
|
367
358
|
(o == null ? void 0 : o.network) && /* @__PURE__ */ e(
|
|
368
359
|
q,
|
|
369
360
|
{
|
|
370
|
-
className: `${i["network-label"]} ${i[
|
|
361
|
+
className: `${i["network-label"]} ${i[ce(o == null ? void 0 : o.network.name)]}`,
|
|
371
362
|
children: o == null ? void 0 : o.network.name
|
|
372
363
|
}
|
|
373
364
|
),
|
|
374
365
|
/* @__PURE__ */ a(
|
|
375
366
|
G,
|
|
376
367
|
{
|
|
377
|
-
input: /* @__PURE__ */ e(
|
|
368
|
+
input: /* @__PURE__ */ e(A, { disableUnderline: !0 }),
|
|
378
369
|
sx: {
|
|
379
370
|
borderTopLeftRadius: 0,
|
|
380
371
|
"&::before": {
|
|
@@ -399,21 +390,21 @@ const it = ({ partnerKey: M, navigate: Y }) => {
|
|
|
399
390
|
variant: "filled",
|
|
400
391
|
value: o && o.symbol,
|
|
401
392
|
displayEmpty: !0,
|
|
402
|
-
onChange: (t) =>
|
|
393
|
+
onChange: (t) => ne(t.target.value),
|
|
403
394
|
onOpen: (t) => {
|
|
404
395
|
ee(!0), t.preventDefault();
|
|
405
396
|
},
|
|
406
397
|
defaultOpen: !1,
|
|
407
398
|
open: !1,
|
|
408
399
|
children: [
|
|
409
|
-
/* @__PURE__ */ e(
|
|
410
|
-
|
|
411
|
-
/* @__PURE__ */ e(
|
|
400
|
+
/* @__PURE__ */ e(_, { value: "", children: "Please select output" }),
|
|
401
|
+
v && v.map((t) => /* @__PURE__ */ a(_, { value: t.symbol, children: [
|
|
402
|
+
/* @__PURE__ */ e(pe, { className: i["dropdown-list-item"], children: /* @__PURE__ */ e(
|
|
412
403
|
"img",
|
|
413
404
|
{
|
|
414
405
|
src: t.icon_uri,
|
|
415
406
|
onError: ({ currentTarget: s }) => {
|
|
416
|
-
s.onerror = null, s.src =
|
|
407
|
+
s.onerror = null, s.src = De;
|
|
417
408
|
},
|
|
418
409
|
alt: "tokenImage",
|
|
419
410
|
width: "40",
|
|
@@ -429,18 +420,18 @@ const it = ({ partnerKey: M, navigate: Y }) => {
|
|
|
429
420
|
}
|
|
430
421
|
) })
|
|
431
422
|
] }),
|
|
432
|
-
/* @__PURE__ */ e(
|
|
433
|
-
/* @__PURE__ */ e(n, { className: "text-left",
|
|
434
|
-
|
|
423
|
+
/* @__PURE__ */ e(k, { mt: 2.5, className: i["fee-area"], children: /* @__PURE__ */ a(n, { container: !0, children: [
|
|
424
|
+
/* @__PURE__ */ e(n, { className: "text-left", size: 12, children: /* @__PURE__ */ a(
|
|
425
|
+
fe,
|
|
435
426
|
{
|
|
436
427
|
sx: { padding: "0" },
|
|
437
|
-
onClick: () =>
|
|
428
|
+
onClick: () => Ne((t) => !t),
|
|
438
429
|
disableFocusRipple: !0,
|
|
439
430
|
disableRipple: !0,
|
|
440
431
|
children: [
|
|
441
432
|
/* @__PURE__ */ e(l, { variant: "caption", children: /* @__PURE__ */ e("strong", { children: "Fee Calculation" }) }),
|
|
442
433
|
/* @__PURE__ */ e(
|
|
443
|
-
|
|
434
|
+
Pe,
|
|
444
435
|
{
|
|
445
436
|
sx: {
|
|
446
437
|
transform: `rotate(${re ? "90" : "0"}deg)`,
|
|
@@ -452,9 +443,9 @@ const it = ({ partnerKey: M, navigate: Y }) => {
|
|
|
452
443
|
}
|
|
453
444
|
) }),
|
|
454
445
|
re && /* @__PURE__ */ a(b, { children: [
|
|
455
|
-
/* @__PURE__ */ e(n, { className: "text-left",
|
|
456
|
-
/* @__PURE__ */ e(n, { className: "text-right",
|
|
457
|
-
|
|
446
|
+
/* @__PURE__ */ e(n, { className: "text-left", size: 6, children: /* @__PURE__ */ e(l, { variant: "caption", children: "Everest Fee" }) }),
|
|
447
|
+
/* @__PURE__ */ e(n, { className: "text-right", size: 6, children: /* @__PURE__ */ a(l, { variant: "caption", children: [
|
|
448
|
+
$,
|
|
458
449
|
F ? /* @__PURE__ */ e(
|
|
459
450
|
h,
|
|
460
451
|
{
|
|
@@ -463,9 +454,9 @@ const it = ({ partnerKey: M, navigate: Y }) => {
|
|
|
463
454
|
}
|
|
464
455
|
) : J.toFixed(2)
|
|
465
456
|
] }) }),
|
|
466
|
-
/* @__PURE__ */ e(n, { className: "text-left",
|
|
467
|
-
/* @__PURE__ */ e(n, { className: "text-right",
|
|
468
|
-
|
|
457
|
+
/* @__PURE__ */ e(n, { className: "text-left", size: 6, children: /* @__PURE__ */ e(l, { variant: "caption", children: "Network Fee" }) }),
|
|
458
|
+
/* @__PURE__ */ e(n, { className: "text-right", size: 6, children: /* @__PURE__ */ a(l, { variant: "caption", children: [
|
|
459
|
+
$,
|
|
469
460
|
F ? /* @__PURE__ */ e(
|
|
470
461
|
h,
|
|
471
462
|
{
|
|
@@ -475,25 +466,25 @@ const it = ({ partnerKey: M, navigate: Y }) => {
|
|
|
475
466
|
) : Q.toFixed(2)
|
|
476
467
|
] }) })
|
|
477
468
|
] }),
|
|
478
|
-
/* @__PURE__ */ e(n, { className: "text-left",
|
|
479
|
-
/* @__PURE__ */ e(n, { className: "text-right",
|
|
480
|
-
|
|
469
|
+
/* @__PURE__ */ e(n, { className: "text-left", size: 6, children: /* @__PURE__ */ e(l, { variant: "caption", children: "Total Fees" }) }),
|
|
470
|
+
/* @__PURE__ */ e(n, { className: "text-right", size: 6, children: /* @__PURE__ */ a(l, { variant: "caption", children: [
|
|
471
|
+
$,
|
|
481
472
|
F ? /* @__PURE__ */ e(
|
|
482
473
|
h,
|
|
483
474
|
{
|
|
484
475
|
sx: { ml: 1 },
|
|
485
476
|
size: 15
|
|
486
477
|
}
|
|
487
|
-
) : Number(
|
|
478
|
+
) : Number(ye).toFixed(2)
|
|
488
479
|
] }) }),
|
|
489
480
|
o && r && /* @__PURE__ */ a(b, { children: [
|
|
490
|
-
/* @__PURE__ */ e(n, { className: "text-left",
|
|
481
|
+
/* @__PURE__ */ e(n, { className: "text-left", size: 6, children: /* @__PURE__ */ a(l, { variant: "caption", children: [
|
|
491
482
|
"1 ",
|
|
492
483
|
r == null ? void 0 : r.symbol,
|
|
493
484
|
" ",
|
|
494
|
-
/* @__PURE__ */ e(tt, { title: et, placement: "right", children: /* @__PURE__ */ e(
|
|
485
|
+
/* @__PURE__ */ e(tt, { title: et, placement: "right", children: /* @__PURE__ */ e(fe, { className: i["info-fee-icon"], children: /* @__PURE__ */ e(Be, { sx: { fontSize: "14px" } }) }) })
|
|
495
486
|
] }) }),
|
|
496
|
-
/* @__PURE__ */ e(n, { className: "text-right",
|
|
487
|
+
/* @__PURE__ */ e(n, { className: "text-right", size: 6, children: /* @__PURE__ */ e(l, { variant: "caption", children: F ? /* @__PURE__ */ e(
|
|
497
488
|
h,
|
|
498
489
|
{
|
|
499
490
|
sx: { ml: 1 },
|
|
@@ -502,36 +493,33 @@ const it = ({ partnerKey: M, navigate: Y }) => {
|
|
|
502
493
|
) : X && parseFloat(X).toFixed(6) + " " + (o == null ? void 0 : o.symbol) }) })
|
|
503
494
|
] })
|
|
504
495
|
] }) }),
|
|
505
|
-
/* @__PURE__ */ e(
|
|
506
|
-
|
|
496
|
+
/* @__PURE__ */ e(k, { sx: { alignItems: "left", width: "100%" }, children: be ? /* @__PURE__ */ e(k, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(h, {}) }) : /* @__PURE__ */ e(b, { children: /* @__PURE__ */ a(
|
|
497
|
+
N,
|
|
507
498
|
{
|
|
508
499
|
variant: "filled",
|
|
509
500
|
fullWidth: !0,
|
|
510
501
|
children: [
|
|
511
502
|
!p && /* @__PURE__ */ e(q, { children: "Select wallet address" }),
|
|
512
|
-
/* @__PURE__ */
|
|
503
|
+
/* @__PURE__ */ e(
|
|
513
504
|
G,
|
|
514
505
|
{
|
|
515
506
|
value: p,
|
|
516
|
-
onChange: (t) =>
|
|
517
|
-
children:
|
|
518
|
-
/* @__PURE__ */ e(w, { value: "", children: /* @__PURE__ */ e("em", { children: "None" }) }),
|
|
519
|
-
be.map((t, s) => /* @__PURE__ */ e(w, { value: t.address, children: t.name + "(" + t.address + ")" }, s))
|
|
520
|
-
]
|
|
507
|
+
onChange: (t) => Oe(t.target.value),
|
|
508
|
+
children: ge.map((t, s) => /* @__PURE__ */ e(_, { value: t.address, children: t.name + "(" + t.address + ")" }, s))
|
|
521
509
|
}
|
|
522
510
|
)
|
|
523
511
|
]
|
|
524
512
|
}
|
|
525
513
|
) }) }),
|
|
526
|
-
/* @__PURE__ */ e(
|
|
514
|
+
/* @__PURE__ */ e(k, { mt: 4, children: /* @__PURE__ */ e(
|
|
527
515
|
st,
|
|
528
516
|
{
|
|
529
517
|
className: "wallet-btn",
|
|
530
518
|
fullWidth: !0,
|
|
531
519
|
variant: "contained",
|
|
532
|
-
onClick:
|
|
533
|
-
disabled:
|
|
534
|
-
children: /* @__PURE__ */ e("strong", { children:
|
|
520
|
+
onClick: Ee,
|
|
521
|
+
disabled: E || !C,
|
|
522
|
+
children: /* @__PURE__ */ e("strong", { children: L ? /* @__PURE__ */ a(b, { children: [
|
|
535
523
|
/* @__PURE__ */ e(h, { size: 15, color: "inherit" }),
|
|
536
524
|
" Processing..."
|
|
537
525
|
] }) : "Swap" })
|
|
@@ -539,23 +527,23 @@ const it = ({ partnerKey: M, navigate: Y }) => {
|
|
|
539
527
|
) })
|
|
540
528
|
] }),
|
|
541
529
|
/* @__PURE__ */ e(
|
|
542
|
-
|
|
530
|
+
me,
|
|
543
531
|
{
|
|
544
|
-
open:
|
|
532
|
+
open: ke,
|
|
545
533
|
setModal: te,
|
|
546
534
|
loader: S,
|
|
547
|
-
tokenList:
|
|
548
|
-
tokenSelect:
|
|
535
|
+
tokenList: M,
|
|
536
|
+
tokenSelect: se
|
|
549
537
|
}
|
|
550
538
|
),
|
|
551
539
|
/* @__PURE__ */ e(
|
|
552
|
-
|
|
540
|
+
me,
|
|
553
541
|
{
|
|
554
|
-
open:
|
|
542
|
+
open: ve,
|
|
555
543
|
setModal: ee,
|
|
556
544
|
loader: S,
|
|
557
|
-
tokenList:
|
|
558
|
-
tokenSelect:
|
|
545
|
+
tokenList: v ?? [],
|
|
546
|
+
tokenSelect: ne,
|
|
559
547
|
showBalance: !1
|
|
560
548
|
}
|
|
561
549
|
)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as n, Fragment as s, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import { useState as o } from "react";
|
|
3
3
|
import l from "../../../hoc/withThemeProvider.js";
|
|
4
|
-
import { B as t } from "../../../Box-
|
|
5
|
-
import { G as i } from "../../../
|
|
6
|
-
import { T as c } from "../../../Typography-
|
|
4
|
+
import { B as t } from "../../../Box-B12x52NC.js";
|
|
5
|
+
import { G as i } from "../../../Grid-BXyV_lM8.js";
|
|
6
|
+
import { T as c } from "../../../Typography-DBlMiOti.js";
|
|
7
7
|
import '../../../assets/index.css';const p = "_container_1pyai_1", _ = "_active_1pyai_43", e = {
|
|
8
8
|
container: p,
|
|
9
9
|
"inner-container": "_inner-container_1pyai_13",
|