everest-npm-features 0.0.32 → 0.0.33

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.
Files changed (230) hide show
  1. package/dist/{Alert-CUoIVlUd.js → Alert-DzsbFW3-.js} +38 -37
  2. package/dist/{Avatar-CwczQLPi.js → Avatar-1XklXr4O.js} +54 -53
  3. package/dist/{Backdrop-yR8IRnFX.js → Backdrop-CioURPVG.js} +7 -6
  4. package/dist/{Box-BwKpr_VI.js → Box-B0YSYLco.js} +5 -5
  5. package/dist/{Button-tAfK4lud.js → Button-Df4vgU24.js} +24 -22
  6. package/dist/{ButtonBase-CaH152Zd.js → ButtonBase-DLF5c6wi.js} +13 -12
  7. package/dist/{Cancel-BoEk0xRy.js → Cancel-4lT7GZUA.js} +1 -1
  8. package/dist/{CardContent-ZS4vlcvi.js → CardContent-D9wTdpu-.js} +14 -13
  9. package/dist/{CircularProgress-Yx712vpT.js → CircularProgress-xZA3lvba.js} +6 -5
  10. package/dist/{Close-CFg1QB5M.js → Close-CNwiMz_O.js} +1 -1
  11. package/dist/{Close-B_8kEwSt.js → Close-CxzDL3J-.js} +1 -1
  12. package/dist/{Container-CBPBT38n.js → Container-urNKV7hm.js} +4 -4
  13. package/dist/{ContentCopy-D4Eg7Nkm.js → ContentCopy-coPwrEuz.js} +1 -1
  14. package/dist/DefaultPropsProvider-CeF7UYM9.js +92 -0
  15. package/dist/DefaultPropsProvider-oAu9El-f.js +226 -0
  16. package/dist/{Delete-BGp4FPdE.js → Delete-jpMstGIF.js} +1 -1
  17. package/dist/{DialogContent-_gvZOy18.js → DialogContent-BMwlOnbW.js} +23 -22
  18. package/dist/{DialogTitle-dq22bYlF.js → DialogTitle-CfS0bb2K.js} +5 -5
  19. package/dist/{Divider-CIL55YSC.js → Divider-BShhMFf4.js} +5 -5
  20. package/dist/{ErrorOutline-BykbFh0r.js → ErrorOutline-CPQcnl2b.js} +1 -1
  21. package/dist/{FileDownload-BSy7tA6m.js → FileDownload-Bt3R_NBr.js} +1 -1
  22. package/dist/{FilledInput-QaJVaeIX.js → FilledInput-DuNqnPjc.js} +15 -14
  23. package/dist/{FormControl-H4D1Z6Ov.js → FormControl-RtZDQMdA.js} +6 -5
  24. package/dist/{FormControlLabel-BvI1nkJ1.js → FormControlLabel-BliKW48y.js} +18 -17
  25. package/dist/{GlobalStyles-DhHHc9O0.js → GlobalStyles-ChMhDfTS.js} +4 -4
  26. package/dist/{Grid-CPkjiKqX.js → Grid-CFe3amXO.js} +7 -7
  27. package/dist/{Grow-B2p7O_1C.js → Grow-CnGtel3u.js} +4 -4
  28. package/dist/{IconButton-WneJM4uP.js → IconButton-DHm-hucF.js} +11 -10
  29. package/dist/{Info-0vSsl6Bm.js → Info-BVeUSPyk.js} +1 -1
  30. package/dist/{InputAdornment-Bqn4-Kns.js → InputAdornment-DMiED3JH.js} +21 -20
  31. package/dist/{Link-DhdK4VfZ.js → Link-DBA9Yifs.js} +20 -19
  32. package/dist/{ListItemIcon-D657XWHf.js → ListItemIcon-CUcyTEEm.js} +6 -6
  33. package/dist/{Menu-BAFJBGa-.js → Menu-DLYFFrEk.js} +21 -20
  34. package/dist/{MenuItem-ByxiQtY2.js → MenuItem-DUdYOJr4.js} +40 -39
  35. package/dist/{Modal-DEfOsvWK.js → Modal-CFIQ_s3T.js} +15 -14
  36. package/dist/{Paper-jx_cZiyU.js → Paper-Bgt2WXI6.js} +11 -10
  37. package/dist/PlayArrow-BkJLdzUI.js +13 -0
  38. package/dist/{Popper-B1He9eVi.js → Popper-BBAoiZKn.js} +14 -13
  39. package/dist/{Portal-CLa9CbMv.js → Portal-BMAxiQwe.js} +2 -2
  40. package/dist/{RadioGroup-_-H2gvH2.js → RadioGroup-nvoSN0JN.js} +25 -24
  41. package/dist/{Select-CGei0bav.js → Select-CB5yWmyn.js} +12 -11
  42. package/dist/{Slide-DHG0r2gy.js → Slide-B9Nw0LZ4.js} +3 -3
  43. package/dist/{Stack-DH-Nxf9q.js → Stack-k55YTxET.js} +5 -5
  44. package/dist/{SwitchBase-BDUzpdBf.js → SwitchBase-C8zFyg_x.js} +11 -10
  45. package/dist/{TextField-DmiK1A_S.js → TextField-DPpRUQe3.js} +10 -9
  46. package/dist/{Typography-BQDN44CM.js → Typography-pAaje37G.js} +13 -12
  47. package/dist/assets/styles2.css +1 -1
  48. package/dist/assets/styles3.css +1 -1
  49. package/dist/{auth-IOh0JhPD.js → auth-BwI9H3c0.js} +1 -1
  50. package/dist/{bank-BNgO--wu.js → bank-D6E7Zpfd.js} +1 -1
  51. package/dist/clsx-BTaloaeC.js +264 -0
  52. package/dist/components/RocketRamp/MinimalKyc/form.js +10 -10
  53. package/dist/components/RocketRamp/MinimalKyc/index.js +1 -1
  54. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +7 -7
  55. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +7 -7
  56. package/dist/components/RocketRamp/Player/Buy/form.js +16 -16
  57. package/dist/components/RocketRamp/Player/Buy/index.js +7 -7
  58. package/dist/components/RocketRamp/Player/Dashboard/balance.js +7 -7
  59. package/dist/components/RocketRamp/Player/Dashboard/index.js +5 -5
  60. package/dist/components/RocketRamp/Player/Dashboard/transaction.js +4 -4
  61. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +10 -10
  62. package/dist/components/RocketRamp/Player/Sell/form.js +16 -16
  63. package/dist/components/RocketRamp/Player/Sell/index.js +8 -8
  64. package/dist/components/RocketRamp/Player/SignIn/index.js +6 -6
  65. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +5 -5
  66. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +5 -5
  67. package/dist/components/RocketRamp/Player/SignUp/email.js +5 -5
  68. package/dist/components/RocketRamp/Player/SignUp/index.js +7 -7
  69. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +9 -9
  70. package/dist/components/RocketRamp/Player/SignUp/summary.js +3 -3
  71. package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +3 -3
  72. package/dist/components/RocketRamp/ResetPassword/index.js +6 -6
  73. package/dist/components/RocketRamp/Shared/Button/index.js +2 -2
  74. package/dist/components/RocketRamp/Shared/Input/index.js +6 -6
  75. package/dist/components/RocketRamp/Shared/backBtn.js +3 -3
  76. package/dist/components/RocketRamp/Shared/transactionItem.js +5 -5
  77. package/dist/components/RocketRamp/Store/Dashboard/balance.js +6 -6
  78. package/dist/components/RocketRamp/Store/Dashboard/index.js +2 -2
  79. package/dist/components/RocketRamp/Store/Dashboard/stats.js +6 -6
  80. package/dist/components/RocketRamp/Store/Dashboard/transaction.js +4 -4
  81. package/dist/components/RocketRamp/Store/SignUp/index.js +7 -7
  82. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +9 -9
  83. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +7 -7
  84. package/dist/components/RocketRamp/Store/SignUp/summary.js +3 -3
  85. package/dist/components/RocketRamp/Store/SignUp/validateEmail.js +3 -3
  86. package/dist/components/RocketRamp/Transactions/index.js +9 -9
  87. package/dist/components/Shared/FullKyc/index.js +5 -5
  88. package/dist/components/Shared/FullKyc/pep.js +9 -9
  89. package/dist/components/Shared/FullKyc/personalDetails.js +7 -7
  90. package/dist/components/Shared/FullKyc/userInfo.js +12 -12
  91. package/dist/components/Shared/HistoryItem/index.js +99 -75
  92. package/dist/components/Shared/Incode/index.js +5 -5
  93. package/dist/components/Shared/MinimalKyc/index.js +9 -9
  94. package/dist/components/Shared/loader.js +2 -2
  95. package/dist/components/Shared/tooltip.js +2 -2
  96. package/dist/components/Shared/transition.js +1 -1
  97. package/dist/components/Wallet/Account/createIban.js +8 -8
  98. package/dist/components/Wallet/Account/iban.js +16 -16
  99. package/dist/components/Wallet/Account/index.js +24 -24
  100. package/dist/components/Wallet/Account/sendIban.js +19 -19
  101. package/dist/components/Wallet/Buy/confirmTransaction.js +8 -8
  102. package/dist/components/Wallet/Buy/form.js +20 -20
  103. package/dist/components/Wallet/Buy/index.js +7 -7
  104. package/dist/components/Wallet/Deposit/index.js +27 -25
  105. package/dist/components/Wallet/EnterpriseKyc/edd.js +8 -8
  106. package/dist/components/Wallet/EnterpriseKyc/index.js +85 -89
  107. package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +5 -5
  108. package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +3 -3
  109. package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +1 -1
  110. package/dist/components/Wallet/EnterpriseKyc/kycType.js +5 -5
  111. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +21 -21
  112. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +16 -16
  113. package/dist/components/Wallet/EnterpriseKyc/success.js +2 -2
  114. package/dist/components/Wallet/EnterpriseKyc/verify.js +5 -5
  115. package/dist/components/Wallet/History/index.js +18 -17
  116. package/dist/components/Wallet/Home/index.js +2 -2
  117. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +41 -41
  118. package/dist/components/Wallet/Portfolio/dropdown.js +7 -7
  119. package/dist/components/Wallet/Portfolio/index.js +159 -147
  120. package/dist/components/Wallet/Portfolio/tokenRow.js +3 -3
  121. package/dist/components/Wallet/Profile/documents.js +17 -17
  122. package/dist/components/Wallet/Profile/index.js +12 -12
  123. package/dist/components/Wallet/Receive/index.js +11 -11
  124. package/dist/components/Wallet/Sell/confirmTransaction.js +26 -10
  125. package/dist/components/Wallet/Sell/form.js +20 -20
  126. package/dist/components/Wallet/Sell/index.d.ts +1 -0
  127. package/dist/components/Wallet/Sell/index.js +12 -11
  128. package/dist/components/Wallet/Send/index.js +15 -15
  129. package/dist/components/Wallet/Shared/Auth/emailForm.js +3 -3
  130. package/dist/components/Wallet/Shared/Auth/otpForm.js +7 -7
  131. package/dist/components/Wallet/Shared/CardPayment/index.js +4 -4
  132. package/dist/components/Wallet/Shared/ConnectWallet/index.js +11 -11
  133. package/dist/components/Wallet/Shared/Container/index.js +2 -2
  134. package/dist/components/Wallet/Shared/Input/index.js +1 -1
  135. package/dist/components/Wallet/Shared/Keyboard/keyboard.js +3 -3
  136. package/dist/components/Wallet/Shared/Order/paymentButton.js +2 -2
  137. package/dist/components/Wallet/Shared/TokenModal/index.js +11 -11
  138. package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +4 -4
  139. package/dist/components/Wallet/Shared/addBank.js +12 -12
  140. package/dist/components/Wallet/Shared/appButton.js +6 -6
  141. package/dist/components/Wallet/Shared/backBtn.js +2 -2
  142. package/dist/components/Wallet/Shared/button.js +1 -1
  143. package/dist/components/Wallet/Shared/connectPlaidBank.js +6 -6
  144. package/dist/components/Wallet/Shared/inputField.js +1 -1
  145. package/dist/components/Wallet/Shared/manualSend.d.ts +11 -0
  146. package/dist/components/Wallet/Shared/manualSend.js +38 -0
  147. package/dist/components/Wallet/Shared/noData.js +2 -2
  148. package/dist/components/Wallet/Shared/pin.js +4 -4
  149. package/dist/components/Wallet/Shared/radioButton.js +3 -3
  150. package/dist/components/Wallet/Shared/step.js +2 -2
  151. package/dist/components/Wallet/Shared/timer.d.ts +9 -0
  152. package/dist/components/Wallet/Shared/timer.js +53 -0
  153. package/dist/components/Wallet/SignIn/index.js +3 -3
  154. package/dist/components/Wallet/SignUp/index.js +12 -11
  155. package/dist/components/Wallet/SignUp/terms.js +1 -1
  156. package/dist/components/Wallet/Stake/gems/index.js +11 -11
  157. package/dist/components/Wallet/Stake/id/index.js +12 -12
  158. package/dist/components/Wallet/Stake/index.js +12 -12
  159. package/dist/components/Wallet/Swap/form.d.ts +3 -0
  160. package/dist/components/Wallet/Swap/form.js +46 -0
  161. package/dist/components/Wallet/Swap/index.d.ts +3 -0
  162. package/dist/components/Wallet/Swap/index.js +19 -551
  163. package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -3
  164. package/dist/components/Wallet/Withdraw/bankSelect.js +12 -12
  165. package/dist/components/Wallet/Withdraw/confirmTransaction.js +10 -10
  166. package/dist/components/Wallet/Withdraw/form.js +17 -17
  167. package/dist/components/Wallet/Withdraw/index.js +6 -6
  168. package/dist/{constants-DWENgBjv.js → constants-CQOuVN6n.js} +130 -128
  169. package/dist/{createSvgIcon-BgBEJXMh.js → createSvgIcon-Cuzqm90l.js} +25 -24
  170. package/dist/{createTheme-DmGCMO09.js → createTheme-CD19zQB7.js} +13 -13
  171. package/dist/{cryptoAssets-C7fIAflf.js → cryptoAssets-Cma8qeDc.js} +1 -1
  172. package/dist/defaultTheme-C35y5cLB.js +5 -0
  173. package/dist/{dividerClasses-BVK5cNr7.js → dividerClasses-BDxa2gAa.js} +2 -2
  174. package/dist/{documents-BA_pUCQh.js → documents-72bUeBkP.js} +17 -17
  175. package/dist/{elementAcceptingRef-BbsmdE_3.js → elementAcceptingRef-CqLvP78G.js} +1 -1
  176. package/dist/{elementTypeAcceptingRef-CdmXUhJ8.js → elementTypeAcceptingRef-BdsMpCbS.js} +1 -1
  177. package/dist/{emotion-react.browser.esm-C2mxoK1z.js → emotion-react.browser.esm-BIrDfk-B.js} +43 -43
  178. package/dist/{extendSxProp-Bwha5fon.js → extendSxProp-B8UjbJ56.js} +1 -1
  179. package/dist/generateUtilityClasses-BRiE4Guh.js +10 -0
  180. package/dist/hoc/withThemeProvider.js +5 -5
  181. package/dist/hooks/useDialog/index.js +4 -4
  182. package/dist/hooks/useRrDialog/index.js +4 -4
  183. package/dist/hooks/useSnackBar.js +23 -22
  184. package/dist/icons/buyIcon.js +1 -1
  185. package/dist/icons/canceledBuyIcon.js +1 -1
  186. package/dist/icons/canceledRedeemIcon.js +1 -1
  187. package/dist/icons/failedBuyIcon.js +1 -1
  188. package/dist/icons/failedRedeemIcon.js +1 -1
  189. package/dist/icons/pendingBuyIcon.js +1 -1
  190. package/dist/icons/pendingRedeemIcon.js +1 -1
  191. package/dist/icons/redeemIcon.js +1 -1
  192. package/dist/{index-BvD3O03n.js → index--NaHRmjW.js} +12 -12
  193. package/dist/{index-x9CniyQB.js → index-B0Z-Gjno.js} +1 -1
  194. package/dist/index-BAFH0iyw.js +917 -0
  195. package/dist/index-BIpSerUL.js +730 -0
  196. package/dist/index-BOev7FOu.js +623 -0
  197. package/dist/{index-CNLxRkdf.js → index-CRXWl3nL.js} +39 -40
  198. package/dist/{index-Cz_n7X7q.js → index-CpkMJeD0.js} +40 -41
  199. package/dist/{index-GXDDOdOI.js → index-DKuH9hDK.js} +42 -43
  200. package/dist/{index-C86AoaoB.js → index-DUcLo3x5.js} +4 -4
  201. package/dist/{index-v4KC1K_V.js → index-FwnHkXdK.js} +4 -4
  202. package/dist/{kyc-DbZ4KGFX.js → kyc-C_JyEEpu.js} +1 -1
  203. package/dist/main.js +10 -10
  204. package/dist/{memoTheme-BUUB1UEO.js → memoTheme-yHaPezod.js} +1 -1
  205. package/dist/order-DWfxKnom.js +51 -0
  206. package/dist/{pep-C_LViPSb.js → pep-B3tW-JmQ.js} +25 -24
  207. package/dist/{radioButton-CBcYX40o.js → radioButton-CzlYB0Lh.js} +18 -17
  208. package/dist/{react-redux-C7I9-1M6.js → react-redux-B4BZippc.js} +2 -2
  209. package/dist/{refType-CaiGhRso.js → refType-BsTH3qnM.js} +1 -1
  210. package/dist/{stake-tw1n23io.js → stake-fFsvxcKJ.js} +1 -1
  211. package/dist/styles.module-CHEBh2ID.js +35 -0
  212. package/dist/{styles.module-verVx4pE.js → styles.module-CUA1zLEJ.js} +1 -1
  213. package/dist/{tokenRow-C5N2uPgO.js → tokenRow-D32W5WH3.js} +2 -2
  214. package/dist/{tooltip-Dv3Lfsa2.js → tooltip-3UvETWtS.js} +19 -18
  215. package/dist/{useSlot-DtSnboW7.js → useSlot-CW7SOYlh.js} +1 -1
  216. package/dist/{useSlotProps-D62tWbb1.js → useSlotProps-BfEOwJvJ.js} +1 -1
  217. package/dist/{useTheme-XTDzJ69d.js → useTheme-BQJ5lp0i.js} +3 -3
  218. package/dist/{useTheme-Bfw5Gt1b.js → useTheme-S5_DHFsQ.js} +1 -1
  219. package/dist/{useThemeProps-DLhzJP-y.js → useThemeProps-DN9MjdTl.js} +3 -3
  220. package/dist/{wallet-DZwD-8oa.js → wallet-4-2Lns3R.js} +1 -1
  221. package/package.json +2 -2
  222. package/dist/DefaultPropsProvider-4P82EuVL.js +0 -232
  223. package/dist/DefaultPropsProvider-CZh8M2jM.js +0 -351
  224. package/dist/PlayArrow-BCWGWaUq.js +0 -8
  225. package/dist/defaultTheme-9fAph5zo.js +0 -5
  226. package/dist/fiatAssets-Bkh4X4hq.js +0 -8
  227. package/dist/index-BtYuKn1z.js +0 -724
  228. package/dist/index-dsM-tUkI.js +0 -708
  229. package/dist/order-BLu2iLAt.js +0 -43
  230. package/dist/styles.module-CRVptIQs.js +0 -33
@@ -1,553 +1,21 @@
1
- import { jsxs as n, jsx as e, Fragment as y } from "react/jsx-runtime";
2
- import { useRef as $e, useState as u, useEffect as b } from "react";
3
- import { u as P, a as Pe } from "../../../react-redux-C7I9-1M6.js";
4
- import { P as De } from "../../../PlayArrow-BCWGWaUq.js";
5
- import { I as Be } from "../../../Info-0vSsl6Bm.js";
6
- import { G as Ue } from "../../../generic-token-B_ptO5yb.js";
7
- import { getCentralLedgetNetwork as D, getNetworkBackGround as ce, getCurrencySymbol as qe } 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 T } from "../../../constants-DWENgBjv.js";
11
- import { u as Ge } from "../../../index-v4KC1K_V.js";
12
- import { f as Ye, a as je, b as He } from "../../../cryptoAssets-C7fIAflf.js";
13
- import { u as Ke } from "../../../wallet-DZwD-8oa.js";
14
- import { o as B, a as Xe, b as Ve, c as Je, d as Qe } from "../../../order-BLu2iLAt.js";
15
- import { DIALOG_SUCCESS_ICON as Ze, TOKEN_TO_TOKEN as U, ARROW_ICON as et, ESTIMATE_TOOLTIP_TEXT as tt } from "../../../util/constants.js";
16
- import { M as ot } from "../../../tooltip-Dv3Lfsa2.js";
17
- import { AuthContainer as rt } from "../Shared/Container/index.js";
18
- import nt from "../Shared/appButton.js";
19
- import at from "../../../hoc/withThemeProvider.js";
20
- import "../Shared/Auth/otpForm.js";
21
- import { useSnackBarContext as st } from "../../../context/snackBarContext.js";
22
- import "../../../index-CAoLi5Qq.js";
23
- import "../../../react-webcam-B3cXh1XT.js";
24
- import "../../Shared/transition.js";
25
- import { useDialog as it } from "../../../hooks/useDialog/index.js";
26
- import "../Shared/pin.js";
27
- import "../../../moment-h96o7c8I.js";
28
- import "../../../index.esm-BsMAMhYW.js";
29
- import "../../../web3-u4qDZYpo.js";
30
- import "../../../index-B8QKlEgj.js";
31
- import "../../../index-ceeCtFuh.js";
32
- import { s } from "../../../styles.module-CRVptIQs.js";
33
- import ue from "../Shared/Order/selectCustomIcon.js";
34
- import "../../../context/dialogContext.js";
35
- import { B as k } from "../../../Box-BwKpr_VI.js";
36
- import { G as a } from "../../../Grid-CPkjiKqX.js";
37
- import { T as l } from "../../../Typography-BQDN44CM.js";
38
- import { F as N } from "../../../FormControl-H4D1Z6Ov.js";
39
- import { F as A } from "../../../FilledInput-QaJVaeIX.js";
40
- import { F as pe, I as q } from "../../../TextField-DmiK1A_S.js";
41
- import { C as h } from "../../../CircularProgress-Yx712vpT.js";
42
- import { S as G } from "../../../Select-CGei0bav.js";
43
- import { M as _ } from "../../../MenuItem-ByxiQtY2.js";
44
- import { L as fe } from "../../../ListItemIcon-D657XWHf.js";
45
- import { I as he } from "../../../IconButton-WneJM4uP.js";
46
- const lt = ({ partnerKey: z, navigate: Y }) => {
47
- var ie, le;
48
- const j = $e(null), { openDialog: xe, ConfirmDialog: ge } = it(), { showAlertMessage: d } = st(), x = P((t) => t.order), w = P(
49
- (t) => t.cryptoAssets
50
- ), H = P(Ge), ye = H.data, { loader: be } = H, M = w.featureTokens.swap.inputList, o = w.featureTokens.swap.inputDefault, v = w.featureTokens.swap.outputList, r = w.featureTokens.swap.outputDefault, C = w.loader, O = x.error, K = x.create.order_id, S = x.loader, c = x.estimate[T], F = c.output_token.amount, X = c.conversion_price, we = c.total_fee, I = 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);
51
- let J = 0, Q = 0;
52
- const Z = c.fee_breakdown;
53
- for (let t = 0; t < Z.length; t++) {
54
- const i = Z[t];
55
- i.name === "ev_fee" ? J = Number(i.value) : i.name === "network_fee" && (Q = Number(i.value));
56
- }
57
- const [g, R] = u("0.05"), [E, ve] = u(!1), [ke, ee] = u(!1), [Ne, te] = u(!1), [oe, _e] = u(!1), [W, re] = u(!1), [p, Ce] = u(""), [L, Se] = u(50), [Fe, Ie] = u(1e4), [ne, Te] = u(""), Ae = /^([0-9]*(\,|\.)[0-9]+|[0-9]+)$/, $ = qe("USD"), m = Pe(), ze = (t) => {
58
- m(je(t));
59
- }, Me = (t) => {
60
- m(He(t));
61
- };
62
- b(() => {
63
- K && W && xe({
64
- icon: Ze,
65
- title: "Swap Success",
66
- message: "Your transaction was successful for more details on the transaction, please view your transaction history.",
67
- cancelButtonText: "Swap again",
68
- onCancel: () => {
69
- m(B()), re(!1);
70
- },
71
- confirmButtonText: "Track Order",
72
- onConfirm: () => {
73
- Y && Y("/history"), m(B());
74
- },
75
- height: "490px"
76
- });
77
- }, [K]), b(() => {
78
- const t = j.current;
79
- (t == null ? void 0 : t.id) === o.id && (t == null ? void 0 : t.wallet) === p || (j.current = { id: o.id, wallet: p }, m(
80
- Ye({
81
- type: T,
82
- id: o.id,
83
- outputId: r.id,
84
- walletAddress: p,
85
- partnerKey: z
86
- })
87
- ));
88
- }, [o.id, p]), b(() => (m(Ke()), m(Xe(U)), () => {
89
- m(B());
90
- }), []), b(() => {
91
- const t = x.types.length;
92
- if (t > 0)
93
- for (let i = 0; i < t; i++) {
94
- const f = x.types[i];
95
- if (f.type === U) {
96
- Se(parseFloat(f.min_deposit_amount)), Ie(parseFloat(f.max_deposit_amount));
97
- break;
98
- }
99
- }
100
- }, [x.types]), b(() => {
101
- O && d({ message: O });
102
- }, [O]), b(() => {
103
- if (r && r.id && g) {
104
- m(Ve(T)), ve(!1), Te("");
105
- const t = setTimeout(() => {
106
- Oe();
107
- }, 1e3);
108
- return () => clearTimeout(t);
109
- }
110
- }, [g, o, r]);
111
- const Oe = () => {
112
- o.network && r && r.network && m(
113
- Je(
114
- {
115
- apiKey: z,
116
- transaction_type: U,
117
- coin_amount: g,
118
- input_token: o.symbol,
119
- input_token_network: D(
120
- o.network.name
121
- ),
122
- exchange: o.exchange,
123
- output_token: r.symbol,
124
- output_token_network: D(
125
- r.network.name
126
- ),
127
- output_exchange: r.exchange
128
- },
129
- T
130
- )
131
- );
132
- }, Re = (t) => {
133
- Ce(t);
134
- }, Ee = (t) => {
135
- const i = t.target.value;
136
- i ? /^([0-9.]+)$/.test(i) && R(de(i, 8)) : R("");
137
- }, ae = (t) => {
138
- if (v) {
139
- const i = v.find((f) => f.symbol === t);
140
- Me(i);
141
- }
142
- }, se = (t) => {
143
- const i = M.find((f) => f.symbol === t);
144
- ze(i);
145
- }, We = () => {
146
- if (!o)
147
- return d({
148
- message: "Please select token you want to swap"
149
- }), !1;
150
- if (!r)
151
- return d({
152
- message: "Please select token you want to receive"
153
- }), !1;
154
- if (!g)
155
- return d({ message: "Please enter amount" }), !1;
156
- if (!p)
157
- return d({ message: "Please select/enter wallet address" }), !1;
158
- if (!Ae.test(g))
159
- return d({ message: "Please provide a valid amount" }), !1;
160
- if (!F)
161
- return d({
162
- message: "Please wait for the estimate to be calculated and then press next"
163
- }), !1;
164
- if (o.fmt_balance && g > o.fmt_balance)
165
- return d({
166
- message: "You don't have enough balance to make this swap"
167
- }), !1;
168
- if (L * 1 > I * 1)
169
- return d({
170
- message: "The input amount of this transaction is below our minimum, please try a higher transaction amount"
171
- }), !1;
172
- if (Fe * 1 < I * 1)
173
- return d({
174
- message: "The input amount of this transaction is above our maximum, please try a lower transaction amount"
175
- }), !1;
176
- if (W)
177
- return !1;
178
- re(!0), m(
179
- Qe({
180
- apiKey: z,
181
- quoteId: c.quote_id,
182
- walletAddress: p
183
- })
184
- );
185
- }, Le = () => {
186
- o && R(de(o.fmt_balance + "", 8));
187
- };
188
- return /* @__PURE__ */ n(rt, { addPadding: !0, children: [
189
- /* @__PURE__ */ n(k, { children: [
190
- /* @__PURE__ */ e(ge, {}),
191
- /* @__PURE__ */ n(a, { container: !0, children: [
192
- /* @__PURE__ */ e(a, { size: 2.5, children: /* @__PURE__ */ e(
193
- l,
194
- {
195
- className: s.label,
196
- variant: "caption",
197
- component: "p",
198
- children: "You Swap"
199
- }
200
- ) }),
201
- /* @__PURE__ */ e(a, { size: 9.5, children: p && o && /* @__PURE__ */ n(
202
- l,
203
- {
204
- className: s["balance-label"],
205
- variant: "caption",
206
- component: "p",
207
- children: [
208
- "You Have: ",
209
- o.fmt_balance,
210
- " ",
211
- o.symbol,
212
- " ",
213
- /* @__PURE__ */ e("span", { className: s["max-btn"], onClick: Le, children: "MAX" })
214
- ]
215
- }
216
- ) })
217
- ] }),
218
- /* @__PURE__ */ n(a, { spacing: 0, mt: 0.5, container: !0, className: s["field-set"], children: [
219
- /* @__PURE__ */ e(a, { size: 7, children: /* @__PURE__ */ n(
220
- N,
221
- {
222
- className: `${s.amount} ${s["crypto-field"]}`,
223
- fullWidth: !0,
224
- children: [
225
- /* @__PURE__ */ e(
226
- A,
227
- {
228
- disableUnderline: !0,
229
- value: g,
230
- onChange: Ee,
231
- type: "text",
232
- placeholder: `${L > 0 ? "$" + L + " minimum value" : ""}`,
233
- error: E,
234
- required: !0,
235
- fullWidth: !0
236
- }
237
- ),
238
- /* @__PURE__ */ e(pe, { className: s["crypto-helper-text"], children: I > 0 ? "$" + (I * 1).toFixed(2) : /* @__PURE__ */ e(y, { children: " " }) })
239
- ]
240
- }
241
- ) }),
242
- /* @__PURE__ */ e(a, { size: 5, className: "content-center", children: C ? /* @__PURE__ */ e(h, { sx: { ml: 1 }, size: 30 }) : /* @__PURE__ */ n(
243
- N,
244
- {
245
- variant: "filled",
246
- className: `text-left ${s["crypto-picker"]}`,
247
- fullWidth: !0,
248
- children: [
249
- (o == null ? void 0 : o.network) && /* @__PURE__ */ e(
250
- q,
251
- {
252
- className: `${s["network-label"]} ${s[ce(o == null ? void 0 : o.network.name)]}`,
253
- children: D(o == null ? void 0 : o.network.name)
254
- }
255
- ),
256
- /* @__PURE__ */ n(
257
- G,
258
- {
259
- IconComponent: ue,
260
- input: /* @__PURE__ */ e(A, { disableUnderline: !0 }),
261
- sx: {
262
- borderTopLeftRadius: 0,
263
- "&::before": {
264
- borderBottom: "none"
265
- },
266
- ".MuiSelect-select": {
267
- fontSize: "21px",
268
- fontWeight: "bold",
269
- color: "#16359d",
270
- padding: "28px 12px 23px !important"
271
- },
272
- ".dropdown-list-item, span": {
273
- position: "relative",
274
- bottom: "5px"
275
- },
276
- ".MuiSvgIcon-root": {
277
- fill: "#16359D !important"
278
- },
279
- padding: o.symbol !== "" ? "0px" : "4.95px"
280
- },
281
- className: "buy-select-dd",
282
- variant: "filled",
283
- value: o && o.symbol,
284
- displayEmpty: !0,
285
- onChange: (t) => se(t.target.value),
286
- onOpen: (t) => {
287
- te(!0), t.preventDefault();
288
- },
289
- defaultOpen: !1,
290
- open: !1,
291
- error: E,
292
- children: [
293
- /* @__PURE__ */ e(_, { value: "", children: "Please select input" }),
294
- M.map((t) => /* @__PURE__ */ n(_, { value: t.symbol, children: [
295
- /* @__PURE__ */ e(fe, { className: s["dropdown-list-item"], children: /* @__PURE__ */ e(
296
- "img",
297
- {
298
- src: t.icon_uri,
299
- alt: "US Flag",
300
- width: "40",
301
- height: "40"
302
- }
303
- ) }),
304
- /* @__PURE__ */ e("span", { children: t.symbol })
305
- ] }, t.id))
306
- ]
307
- }
308
- )
309
- ]
310
- }
311
- ) }),
312
- ne && /* @__PURE__ */ e(l, { variant: "caption", sx: { color: "red" }, children: /* @__PURE__ */ e("strong", { children: ne }) })
313
- ] }),
314
- /* @__PURE__ */ e(a, { mt: 3, justifyContent: "center", display: "flex", container: !0, children: /* @__PURE__ */ e(a, { className: "text-center", children: /* @__PURE__ */ e("img", { src: et, alt: "arrow" }) }) }),
315
- /* @__PURE__ */ e(a, { mt: 1, container: !0, children: /* @__PURE__ */ e(a, { size: 4, children: /* @__PURE__ */ e(
316
- l,
317
- {
318
- className: s.label,
319
- variant: "caption",
320
- component: "p",
321
- children: "You Receive"
322
- }
323
- ) }) }),
324
- /* @__PURE__ */ n(a, { mt: 0.5, container: !0, className: s["field-set"], children: [
325
- /* @__PURE__ */ e(a, { size: 7, children: /* @__PURE__ */ n(
326
- N,
327
- {
328
- className: `${s.amount} ${s["crypto-field"]}`,
329
- fullWidth: !0,
330
- children: [
331
- /* @__PURE__ */ e(
332
- A,
333
- {
334
- disableUnderline: !0,
335
- value: F && parseFloat(F).toFixed(5),
336
- type: "text",
337
- readOnly: !0,
338
- fullWidth: !0
339
- }
340
- ),
341
- /* @__PURE__ */ e(pe, { className: s["crypto-helper-text"], children: V > 0 ? "$" + (V * 1).toFixed(2) : /* @__PURE__ */ e(y, { children: " " }) })
342
- ]
343
- }
344
- ) }),
345
- /* @__PURE__ */ e(a, { size: 5, className: "content-center", children: C ? /* @__PURE__ */ e(
346
- h,
347
- {
348
- sx: { ml: 1 },
349
- size: 30
350
- }
351
- ) : /* @__PURE__ */ n(
352
- N,
353
- {
354
- variant: "filled",
355
- className: `text-left ${s["crypto-picker"]}`,
356
- fullWidth: !0,
357
- children: [
358
- (r == null ? void 0 : r.network) && /* @__PURE__ */ e(
359
- q,
360
- {
361
- className: `${s["network-label"]} ${s[ce(r == null ? void 0 : r.network.name)]}`,
362
- children: r == null ? void 0 : r.network.name
363
- }
364
- ),
365
- /* @__PURE__ */ n(
366
- G,
367
- {
368
- IconComponent: ue,
369
- input: /* @__PURE__ */ e(A, { disableUnderline: !0 }),
370
- sx: {
371
- borderTopLeftRadius: 0,
372
- "&::before": {
373
- borderBottom: "none"
374
- },
375
- ".MuiSelect-select": {
376
- fontSize: "21px",
377
- fontWeight: "bold",
378
- color: "#16359d",
379
- padding: "28px 12px 23px !important"
380
- },
381
- ".dropdown-list-item, span": {
382
- position: "relative",
383
- bottom: "5px"
384
- },
385
- ".MuiSvgIcon-root": {
386
- fill: "#16359D !important"
387
- },
388
- padding: r && r.symbol !== "" ? "0px" : "4.95px"
389
- },
390
- className: "buy-select-dd",
391
- variant: "filled",
392
- value: r && r.symbol,
393
- displayEmpty: !0,
394
- onChange: (t) => ae(t.target.value),
395
- onOpen: (t) => {
396
- ee(!0), t.preventDefault();
397
- },
398
- defaultOpen: !1,
399
- open: !1,
400
- children: [
401
- /* @__PURE__ */ e(_, { value: "", children: "Please select output" }),
402
- v && v.map((t) => /* @__PURE__ */ n(_, { value: t.symbol, children: [
403
- /* @__PURE__ */ e(fe, { className: s["dropdown-list-item"], children: /* @__PURE__ */ e(
404
- "img",
405
- {
406
- src: t.icon_uri,
407
- onError: ({ currentTarget: i }) => {
408
- i.onerror = null, i.src = Ue;
409
- },
410
- alt: "tokenImage",
411
- width: "40",
412
- height: "40"
413
- }
414
- ) }),
415
- /* @__PURE__ */ e("span", { children: t.symbol.toUpperCase() })
416
- ] }, t.id))
417
- ]
418
- }
419
- )
420
- ]
421
- }
422
- ) })
423
- ] }),
424
- /* @__PURE__ */ e(k, { mt: 2.5, className: s["fee-area"], children: /* @__PURE__ */ n(a, { container: !0, children: [
425
- /* @__PURE__ */ e(a, { className: "text-left", size: 12, children: /* @__PURE__ */ n(
426
- he,
427
- {
428
- sx: { padding: "0" },
429
- onClick: () => _e((t) => !t),
430
- disableFocusRipple: !0,
431
- disableRipple: !0,
432
- children: [
433
- /* @__PURE__ */ e(l, { variant: "caption", fontWeight: 700, children: "Fee Calculation" }),
434
- /* @__PURE__ */ e(
435
- De,
436
- {
437
- sx: {
438
- transform: `rotate(${oe ? "90" : "0"}deg)`,
439
- fontSize: "15px"
440
- }
441
- }
442
- )
443
- ]
444
- }
445
- ) }),
446
- oe && /* @__PURE__ */ n(y, { children: [
447
- /* @__PURE__ */ e(a, { className: "text-left", size: 6, children: /* @__PURE__ */ e(l, { variant: "caption", children: "Everest Fee" }) }),
448
- /* @__PURE__ */ e(a, { className: "text-right", size: 6, children: /* @__PURE__ */ n(l, { variant: "caption", children: [
449
- $,
450
- S ? /* @__PURE__ */ e(
451
- h,
452
- {
453
- sx: { ml: 1 },
454
- size: 15
455
- }
456
- ) : J.toFixed(2)
457
- ] }) }),
458
- /* @__PURE__ */ e(a, { className: "text-left", size: 6, children: /* @__PURE__ */ e(l, { variant: "caption", children: "Network Fee" }) }),
459
- /* @__PURE__ */ e(a, { className: "text-right", size: 6, children: /* @__PURE__ */ n(l, { variant: "caption", children: [
460
- $,
461
- S ? /* @__PURE__ */ e(
462
- h,
463
- {
464
- sx: { ml: 1 },
465
- size: 15
466
- }
467
- ) : Q.toFixed(2)
468
- ] }) })
469
- ] }),
470
- /* @__PURE__ */ e(a, { className: "text-left", size: 6, children: /* @__PURE__ */ e(l, { variant: "caption", children: "Total Fees" }) }),
471
- /* @__PURE__ */ e(a, { className: "text-right", size: 6, children: /* @__PURE__ */ n(l, { variant: "caption", children: [
472
- $,
473
- S ? /* @__PURE__ */ e(
474
- h,
475
- {
476
- sx: { ml: 1 },
477
- size: 15
478
- }
479
- ) : Number(we).toFixed(2)
480
- ] }) }),
481
- r && o && /* @__PURE__ */ n(y, { children: [
482
- /* @__PURE__ */ e(a, { className: "text-left", size: 6, children: /* @__PURE__ */ n(l, { variant: "caption", children: [
483
- "1 ",
484
- o == null ? void 0 : o.symbol,
485
- " ",
486
- /* @__PURE__ */ e(ot, { title: tt, placement: "right", children: /* @__PURE__ */ e(he, { className: s["info-fee-icon"], children: /* @__PURE__ */ e(Be, { sx: { fontSize: "14px" } }) }) })
487
- ] }) }),
488
- /* @__PURE__ */ e(a, { className: "text-right", size: 6, children: /* @__PURE__ */ e(l, { variant: "caption", children: S ? /* @__PURE__ */ e(
489
- h,
490
- {
491
- sx: { ml: 1 },
492
- size: 15
493
- }
494
- ) : X && parseFloat(X).toFixed(6) + " " + (r == null ? void 0 : r.symbol) }) })
495
- ] })
496
- ] }) }),
497
- /* @__PURE__ */ e(k, { sx: { alignItems: "left", width: "100%" }, children: be ? /* @__PURE__ */ e(k, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(h, {}) }) : /* @__PURE__ */ e(y, { children: /* @__PURE__ */ n(
498
- N,
499
- {
500
- variant: "filled",
501
- fullWidth: !0,
502
- children: [
503
- !p && /* @__PURE__ */ e(q, { children: "Select wallet address" }),
504
- /* @__PURE__ */ e(
505
- G,
506
- {
507
- value: p,
508
- onChange: (t) => Re(t.target.value),
509
- children: ye.map((t, i) => /* @__PURE__ */ e(_, { value: t.address, children: t.name + "(" + t.address + ")" }, i))
510
- }
511
- )
512
- ]
513
- }
514
- ) }) }),
515
- /* @__PURE__ */ e(k, { mt: 4, children: /* @__PURE__ */ e(
516
- nt,
517
- {
518
- fullWidth: !0,
519
- onClick: We,
520
- disabled: E || !F,
521
- children: /* @__PURE__ */ e("strong", { children: W ? /* @__PURE__ */ n(y, { children: [
522
- /* @__PURE__ */ e(h, { size: 15, color: "inherit" }),
523
- " Processing..."
524
- ] }) : "Swap" })
525
- }
526
- ) })
527
- ] }),
528
- /* @__PURE__ */ e(
529
- me,
530
- {
531
- open: Ne,
532
- setModal: te,
533
- loader: C,
534
- tokenList: M,
535
- tokenSelect: se
536
- }
537
- ),
538
- /* @__PURE__ */ e(
539
- me,
540
- {
541
- open: ke,
542
- setModal: ee,
543
- loader: C,
544
- tokenList: v ?? [],
545
- tokenSelect: ae,
546
- showBalance: !1
547
- }
548
- )
549
- ] });
550
- }, to = at(lt);
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import "../../../hoc/withThemeProvider.js";
4
+ import { F as e, M as f, a as F, i as I } from "../../../index-BOev7FOu.js";
5
+ import "../../../react-redux-B4BZippc.js";
6
+ import "../../../constants-CQOuVN6n.js";
7
+ import "../../../wallet-4-2Lns3R.js";
8
+ import "../../../order-DWfxKnom.js";
9
+ import "../../../util/constants.js";
10
+ import "../../../context/snackBarContext.js";
11
+ import "../Shared/Container/index.js";
12
+ import "../../Shared/MinimalKyc/index.js";
13
+ import "../Shared/Input/index.js";
14
+ import "../Shared/appButton.js";
15
+ import "../../../index-BAFH0iyw.js";
551
16
  export {
552
- to as default
17
+ e as FORM_SCREEN,
18
+ f as MANUAL_SEND_SCREEN,
19
+ F as MINIMAL_KYC_SCREEN,
20
+ I as default
553
21
  };
@@ -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-BwKpr_VI.js";
5
- import { G as i } from "../../../Grid-CPkjiKqX.js";
6
- import { T as c } from "../../../Typography-BQDN44CM.js";
4
+ import { B as t } from "../../../Box-B0YSYLco.js";
5
+ import { G as i } from "../../../Grid-CFe3amXO.js";
6
+ import { T as c } from "../../../Typography-pAaje37G.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",
@@ -1,21 +1,21 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import "../../../react-redux-C7I9-1M6.js";
3
+ import "../../../react-redux-B4BZippc.js";
4
4
  import "../Shared/backBtn.js";
5
5
  import "../Shared/addBank.js";
6
- import { W as j } from "../../../index-Cz_n7X7q.js";
7
- import "../../../constants-DWENgBjv.js";
8
- import "../../../index-v4KC1K_V.js";
9
- import "../../../order-BLu2iLAt.js";
10
- import "../../../bank-BNgO--wu.js";
6
+ import { W as j } from "../../../index-CpkMJeD0.js";
7
+ import "../../../constants-CQOuVN6n.js";
8
+ import "../../../index-FwnHkXdK.js";
9
+ import "../../../order-DWfxKnom.js";
10
+ import "../../../bank-D6E7Zpfd.js";
11
11
  import "../Shared/connectPlaidBank.js";
12
- import "../../../styles.module-CRVptIQs.js";
12
+ import "../../../styles.module-CHEBh2ID.js";
13
13
  import "../../../util/constants.js";
14
- import "../../../Box-BwKpr_VI.js";
15
- import "../../../CircularProgress-Yx712vpT.js";
16
- import "../../../Grid-CPkjiKqX.js";
17
- import "../../../Typography-BQDN44CM.js";
18
- import "../../../Stack-DH-Nxf9q.js";
14
+ import "../../../Box-B0YSYLco.js";
15
+ import "../../../CircularProgress-xZA3lvba.js";
16
+ import "../../../Grid-CFe3amXO.js";
17
+ import "../../../Typography-pAaje37G.js";
18
+ import "../../../Stack-k55YTxET.js";
19
19
  export {
20
20
  j as default
21
21
  };
@@ -2,18 +2,18 @@ import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "../Shared/backBtn.js";
4
4
  import "../../../util/constants.js";
5
- import "../../../styles.module-CRVptIQs.js";
5
+ import "../../../styles.module-CHEBh2ID.js";
6
6
  import "../Shared/appButton.js";
7
- import "../../../constants-DWENgBjv.js";
8
- import "../../../index-v4KC1K_V.js";
9
- import "../../../order-BLu2iLAt.js";
10
- import { B as g } from "../../../index-Cz_n7X7q.js";
11
- import "../../../react-redux-C7I9-1M6.js";
7
+ import "../../../constants-CQOuVN6n.js";
8
+ import "../../../index-FwnHkXdK.js";
9
+ import "../../../order-DWfxKnom.js";
10
+ import { B as g } from "../../../index-CpkMJeD0.js";
11
+ import "../../../react-redux-B4BZippc.js";
12
12
  import "../../../hooks/useDialog/index.js";
13
- import "../../../Typography-BQDN44CM.js";
14
- import "../../../Box-BwKpr_VI.js";
15
- import "../../../Grid-CPkjiKqX.js";
16
- import "../../../CircularProgress-Yx712vpT.js";
13
+ import "../../../Typography-pAaje37G.js";
14
+ import "../../../Box-B0YSYLco.js";
15
+ import "../../../Grid-CFe3amXO.js";
16
+ import "../../../CircularProgress-xZA3lvba.js";
17
17
  export {
18
18
  g as default
19
19
  };