everest-npm-features 0.0.32 → 0.0.34

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