everest-npm-features 0.0.1 → 0.0.3

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 (250) hide show
  1. package/dist/ArrowDropDown-DRUQbGft.js +8 -0
  2. package/dist/ArrowRight-t-YgAHUn.js +8 -0
  3. package/dist/{Box-wAem3MQD.js → Box-BOgpENcC.js} +11 -11
  4. package/dist/{Button-fWdSk-yh.js → Button-DXdgxFxa.js} +8 -7
  5. package/dist/{ButtonBase-SYP7klDp.js → ButtonBase-AOLUTpPg.js} +204 -211
  6. package/dist/Cancel-BMPJ8ZAg.js +11 -0
  7. package/dist/CardContent-DEA5pnhr.js +141 -0
  8. package/dist/{CircularProgress-DcXA6nAu.js → CircularProgress-BAEiXRSn.js} +31 -30
  9. package/dist/Close-mXCsZSxZ.js +8 -0
  10. package/dist/{Container-CIMHcpEe.js → Container-BOehNoF1.js} +4 -4
  11. package/dist/{ContentCopy-CexUUXuC.js → ContentCopy-HD_Xx6nx.js} +1 -1
  12. package/dist/{createSimplePaletteValueFilter-CsgjlRAs.js → DefaultPropsProvider-DmUB0SYC.js} +54 -69
  13. package/dist/DefaultPropsProvider-tqUom3mB.js +329 -0
  14. package/dist/{DialogContent-JgT9A6nk.js → DialogContent-zttWtNJM.js} +91 -90
  15. package/dist/{Close-CdRA3xUs.js → DialogTitle-BqL8DXBp.js} +16 -21
  16. package/dist/{ArrowRight-C6tjImpU.js → Divider-EGEkrkBH.js} +50 -55
  17. package/dist/{FormControl-D4QuPCnV.js → FormControl-Nd-4LC8N.js} +60 -69
  18. package/dist/FormControlLabel-BMeMEwyK.js +738 -0
  19. package/dist/{GlobalStyles-BOnEiMUE.js → GlobalStyles-CModZHM-.js} +2 -2
  20. package/dist/{Grid-dtT_MVn3.js → Grid-EISqvBSJ.js} +5 -5
  21. package/dist/Grid2-B0mJbwjl.js +374 -0
  22. package/dist/{Grow-B3Swdn2Z.js → Grow-dkRwE_ok.js} +5 -5
  23. package/dist/{IconButton-CRGy76pJ.js → IconButton-DAR3jsEV.js} +12 -11
  24. package/dist/Info-CkE3Gsf2.js +8 -0
  25. package/dist/InputAdornment-DZJP9Njd.js +169 -0
  26. package/dist/ListItemIcon-JAntieDc.js +82 -0
  27. package/dist/{wallet-DN7ej6mj.js → MenuItem-D12FP5Iq.js} +64 -75
  28. package/dist/{Modal-0q_y4zbS.js → Modal-DceAu_d2.js} +324 -397
  29. package/dist/Paper-L8ipwfkc.js +183 -0
  30. package/dist/PlayArrow-D_p2nwO8.js +21 -0
  31. package/dist/Portal-DxdKGEvu.js +86 -0
  32. package/dist/{Select-BNAaKK32.js → Select-DTQDmdn_.js} +39 -33
  33. package/dist/{Slide-BlS6unRJ.js → Slide-CWqC2RDG.js} +4 -3
  34. package/dist/Stack-CkCveRRR.js +174 -0
  35. package/dist/{TextField-CPZo0_di.js → TextField-BqIvz6Zw.js} +23 -21
  36. package/dist/{Typography-kyxogyUq.js → Typography-Dx54MRM5.js} +14 -13
  37. package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
  38. package/dist/assets/index.css +1 -1
  39. package/dist/assets/index10.css +1 -0
  40. package/dist/assets/index2.css +1 -1
  41. package/dist/assets/index3.css +1 -0
  42. package/dist/assets/index4.css +1 -0
  43. package/dist/assets/index5.css +1 -0
  44. package/dist/assets/index6.css +1 -0
  45. package/dist/assets/index7.css +1 -0
  46. package/dist/assets/index8.css +1 -0
  47. package/dist/assets/index9.css +1 -0
  48. package/dist/assets/{withThemeProvider.css → main.css} +1 -1
  49. package/dist/assets/styles.css +1 -1
  50. package/dist/assets/styles3.css +1 -0
  51. package/dist/auth-DDk8JxR-.js +46 -0
  52. package/dist/axios-BEX6n2A7.js +796 -0
  53. package/dist/bank-BvPXd5sM.js +23 -0
  54. package/dist/components/Account/index.d.ts +4 -0
  55. package/dist/components/Account/index.js +310 -0
  56. package/dist/components/History/index.d.ts +2 -0
  57. package/dist/components/History/index.js +804 -0
  58. package/dist/components/MoveToEthereumOrEverChain/index.d.ts +18 -0
  59. package/dist/components/MoveToEthereumOrEverChain/index.js +345 -0
  60. package/dist/components/Profile/documents.js +19 -14
  61. package/dist/components/Profile/index.js +128 -135
  62. package/dist/components/Receive/index.js +25 -23
  63. package/dist/components/RocketRamp/Buy/cardPayment.d.ts +3 -0
  64. package/dist/components/RocketRamp/Buy/cardPayment.js +17 -0
  65. package/dist/components/RocketRamp/Buy/confirmTransaction.d.ts +3 -0
  66. package/dist/components/RocketRamp/Buy/confirmTransaction.js +16 -0
  67. package/dist/components/RocketRamp/Buy/form.d.ts +3 -0
  68. package/dist/components/RocketRamp/Buy/form.js +26 -0
  69. package/dist/components/RocketRamp/Buy/index.d.ts +6 -0
  70. package/dist/components/RocketRamp/Buy/index.js +31 -0
  71. package/dist/components/RocketRamp/Buy/types.d.ts +33 -0
  72. package/dist/components/RocketRamp/Buy/types.js +1 -0
  73. package/dist/components/RocketRamp/Dashboard/balance.d.ts +9 -0
  74. package/dist/components/RocketRamp/Dashboard/balance.js +75 -0
  75. package/dist/components/RocketRamp/Dashboard/index.d.ts +5 -0
  76. package/dist/components/RocketRamp/Dashboard/index.js +36 -0
  77. package/dist/components/RocketRamp/Dashboard/transaction.d.ts +8 -0
  78. package/dist/components/RocketRamp/Dashboard/transaction.js +28 -0
  79. package/dist/components/RocketRamp/MinimalKyc/index.d.ts +6 -0
  80. package/dist/components/RocketRamp/MinimalKyc/index.js +254 -0
  81. package/dist/components/RocketRamp/Shared/Button/index.d.ts +10 -0
  82. package/dist/components/RocketRamp/Shared/Button/index.js +82 -0
  83. package/dist/components/RocketRamp/Shared/Input/index.d.ts +11 -0
  84. package/dist/components/RocketRamp/Shared/Input/index.js +46 -0
  85. package/dist/components/RocketRamp/Shared/backBtn.d.ts +5 -0
  86. package/dist/components/RocketRamp/Shared/backBtn.js +21 -0
  87. package/dist/components/RocketRamp/Shared/transactionItem.d.ts +7 -0
  88. package/dist/components/RocketRamp/Shared/transactionItem.js +125 -0
  89. package/dist/components/RocketRamp/SignIn/index.d.ts +3 -0
  90. package/dist/components/RocketRamp/SignIn/index.js +82 -0
  91. package/dist/components/RocketRamp/SignIn/loginForm.d.ts +3 -0
  92. package/dist/components/RocketRamp/SignIn/loginForm.js +81 -0
  93. package/dist/components/RocketRamp/SignIn/otpForm.d.ts +3 -0
  94. package/dist/components/RocketRamp/SignIn/otpForm.js +112 -0
  95. package/dist/components/RocketRamp/SignIn/types.d.ts +22 -0
  96. package/dist/components/RocketRamp/SignIn/types.js +1 -0
  97. package/dist/components/RocketRamp/SignUp/email.d.ts +3 -0
  98. package/dist/components/RocketRamp/SignUp/email.js +70 -0
  99. package/dist/components/RocketRamp/SignUp/index.d.ts +3 -0
  100. package/dist/components/RocketRamp/SignUp/index.js +163 -0
  101. package/dist/components/RocketRamp/SignUp/personalInfo.d.ts +3 -0
  102. package/dist/components/RocketRamp/SignUp/personalInfo.js +415 -0
  103. package/dist/components/RocketRamp/SignUp/summary.d.ts +3 -0
  104. package/dist/components/RocketRamp/SignUp/summary.js +57 -0
  105. package/dist/components/RocketRamp/SignUp/types.d.ts +50 -0
  106. package/dist/components/RocketRamp/SignUp/types.js +1 -0
  107. package/dist/components/RocketRamp/SignUp/validateEmail.d.ts +3 -0
  108. package/dist/components/RocketRamp/SignUp/validateEmail.js +99 -0
  109. package/dist/components/RocketRamp/Transactions/index.d.ts +5 -0
  110. package/dist/components/RocketRamp/Transactions/index.js +38 -0
  111. package/dist/components/Send/index.js +62 -51
  112. package/dist/components/Shared/ConnectWallet/index.d.ts +20 -0
  113. package/dist/components/Shared/ConnectWallet/index.js +25364 -0
  114. package/dist/components/Shared/HistoryItem/index.d.ts +5 -0
  115. package/dist/components/Shared/HistoryItem/index.js +120 -0
  116. package/dist/components/Shared/Keyboard/keyboard.js +3 -3
  117. package/dist/components/Shared/TokenModal/index.d.ts +10 -0
  118. package/dist/components/Shared/TokenModal/index.js +104 -0
  119. package/dist/components/Shared/TokenModal/tokenGrid.d.ts +7 -0
  120. package/dist/components/Shared/TokenModal/tokenGrid.js +51 -0
  121. package/dist/components/Shared/addBank.d.ts +2 -0
  122. package/dist/components/Shared/addBank.js +172 -0
  123. package/dist/components/Shared/button.js +1 -1
  124. package/dist/components/Shared/connectPlaidBank.d.ts +2 -0
  125. package/dist/components/Shared/connectPlaidBank.js +57 -0
  126. package/dist/components/Shared/incode.js +34 -32
  127. package/dist/components/Shared/inputField.js +1 -1
  128. package/dist/components/Shared/noData.d.ts +4 -0
  129. package/dist/components/Shared/noData.js +14 -0
  130. package/dist/components/Shared/pin.js +3 -3
  131. package/dist/components/Shared/step.js +2 -2
  132. package/dist/components/Shared/tooltip.d.ts +4 -0
  133. package/dist/components/Shared/tooltip.js +2107 -0
  134. package/dist/components/Shared/transition.js +1 -1
  135. package/dist/components/SignIn/index.js +26 -24
  136. package/dist/components/SignUp/index.js +108 -348
  137. package/dist/components/SignUp/pin.js +116 -844
  138. package/dist/components/SignUp/privacy.js +3 -3
  139. package/dist/components/SignUp/terms.js +3 -3
  140. package/dist/components/SignUp/types.d.ts +0 -1
  141. package/dist/components/SignUp/userInfo.js +4 -4
  142. package/dist/components/Stake/gems/index.d.ts +2 -0
  143. package/dist/components/Stake/gems/index.js +214 -0
  144. package/dist/components/Stake/id/index.d.ts +2 -0
  145. package/dist/components/Stake/id/index.js +233 -0
  146. package/dist/components/Stake/index.d.ts +5 -0
  147. package/dist/components/Stake/index.js +346 -0
  148. package/dist/components/Swap/index.d.ts +2 -0
  149. package/dist/components/Swap/index.js +489 -0
  150. package/dist/components/SwapAndUniSwap/index.d.ts +3 -0
  151. package/dist/components/SwapAndUniSwap/index.js +43 -0
  152. package/dist/components/WalletPortfolio/index.js +191 -263
  153. package/dist/components/WalletPortfolio/tokenRow.js +8 -5
  154. package/dist/constants-SKm7VF9k.js +3982 -0
  155. package/dist/countries-BVn1FubK.js +1925 -0
  156. package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +17 -0
  157. package/dist/{createSvgIcon-CAZr4ukt.js → createSvgIcon-jkXneOQN.js} +6 -6
  158. package/dist/{createTheme-NrBCWesw.js → createTheme-F9Dk4FhK.js} +182 -174
  159. package/dist/data/countries.json.d.ts +1925 -0
  160. package/dist/defaultTheme-Bc00Q3Kt.js +5 -0
  161. package/dist/dividerClasses-SUAUDDqL.js +10 -0
  162. package/dist/{documents-CL4Ajr_B.js → documents-7w9u2Oig.js} +123 -122
  163. package/dist/elementTypeAcceptingRef-BufevUW8.js +23 -0
  164. package/dist/emotion-react.browser.esm-CI0uV1W5.js +233 -0
  165. package/dist/{extendSxProp-CuERe1TA.js → extendSxProp-Cm2UBzGf.js} +1 -1
  166. package/dist/generic-token-B_ptO5yb.js +4 -0
  167. package/dist/hoc/withThemeProvider.js +33 -32
  168. package/dist/hooks/useDialog/index.js +4 -4
  169. package/dist/hooks/useSnackBar.js +63 -60
  170. package/dist/icons/buyIcon.d.ts +2 -0
  171. package/dist/icons/buyIcon.js +19 -0
  172. package/dist/icons/canceledBuyIcon.d.ts +2 -0
  173. package/dist/icons/canceledBuyIcon.js +34 -0
  174. package/dist/icons/canceledRedeemIcon.d.ts +2 -0
  175. package/dist/icons/canceledRedeemIcon.js +35 -0
  176. package/dist/icons/failedBuyIcon.d.ts +2 -0
  177. package/dist/icons/failedBuyIcon.js +48 -0
  178. package/dist/icons/failedRedeemIcon.d.ts +2 -0
  179. package/dist/icons/failedRedeemIcon.js +48 -0
  180. package/dist/icons/pendingBuyIcon.d.ts +2 -0
  181. package/dist/icons/pendingBuyIcon.js +38 -0
  182. package/dist/icons/pendingRedeemIcon.d.ts +2 -0
  183. package/dist/icons/pendingRedeemIcon.js +34 -0
  184. package/dist/icons/redeemIcon.d.ts +2 -0
  185. package/dist/icons/redeemIcon.js +19 -0
  186. package/dist/index-B8QKlEgj.js +37095 -0
  187. package/dist/{index-Cq3eHOnB.js → index-BJlsh9ro.js} +1 -1
  188. package/dist/index-BhmBCie8.js +796 -0
  189. package/dist/index-C3FYdQkQ.js +4050 -0
  190. package/dist/index-CrajlEO_.js +576 -0
  191. package/dist/index-TElEjliR.js +9 -0
  192. package/dist/{index-iAyNk1r6.js → index-_kqRfgnc.js} +5 -5
  193. package/dist/index-ceeCtFuh.js +136 -0
  194. package/dist/index.esm-BsMAMhYW.js +237 -0
  195. package/dist/isFocusVisible-CPZqtjv2.js +12 -0
  196. package/dist/isMuiElement-DnSE4qG4.js +13 -0
  197. package/dist/main.d.ts +99 -0
  198. package/dist/main.js +34 -12
  199. package/dist/moment-h96o7c8I.js +2578 -0
  200. package/dist/order-CO4ra5N-.js +27 -0
  201. package/dist/ownerWindow-C-760D__.js +7 -0
  202. package/dist/providers/metaMask.d.ts +6 -0
  203. package/dist/providers/metaMask.js +24 -0
  204. package/dist/react-redux-B4BZippc.js +255 -0
  205. package/dist/react-webcam-B3cXh1XT.js +267 -0
  206. package/dist/resolveComponentProps-BdTgLKBb.js +80 -0
  207. package/dist/rr-primary-logo-CqI24c8v.js +4 -0
  208. package/dist/stake-DHpsHQbJ.js +17 -0
  209. package/dist/store.d.ts +66 -0
  210. package/dist/store.js +1 -0
  211. package/dist/styled-BTIMwpiX.js +5 -0
  212. package/dist/{styles.module-KeND8lCR.js → styles.module-6SB62f3J.js} +1 -1
  213. package/dist/styles.module-O5VVND5e.js +22 -0
  214. package/dist/tokenRow-CgnPD-4U.js +206 -0
  215. package/dist/useControlled-BYdyS7Pn.js +31 -0
  216. package/dist/useFormControl-CfmEP6sW.js +18 -0
  217. package/dist/useSlot-DaP6eodX.js +50 -0
  218. package/dist/useTheme-BghcbbEW.js +9 -0
  219. package/dist/{useTheme-nlj1B_-c.js → useTheme-c0OHvtiA.js} +3 -3
  220. package/dist/{useThemeProps-BqWuFW3z.js → useThemeProps-CV9AmzHf.js} +4 -4
  221. package/dist/{useThemeWithoutDefault-BdYkMk0o.js → useThemeWithoutDefault-D8MaPbCK.js} +1 -1
  222. package/dist/useTimeout-D29bZ7Gz.js +56 -0
  223. package/dist/user-CeKqBfJU.js +24 -0
  224. package/dist/util/constants.d.ts +48 -0
  225. package/dist/util/constants.js +69 -21
  226. package/dist/util/conversions.js +54 -22271
  227. package/dist/util/functions.d.ts +5 -0
  228. package/dist/util/functions.js +81 -24
  229. package/dist/util/regex.d.ts +3 -0
  230. package/dist/util/regex.js +6 -0
  231. package/dist/{utils-_FXWkn40.js → utils-EFg3So7T.js} +163 -168
  232. package/dist/wallet-BtAQ78cv.js +35 -0
  233. package/dist/web3-u4qDZYpo.js +22328 -0
  234. package/package.json +8 -3
  235. package/dist/DefaultPropsProvider-Y8MI-J-I.js +0 -555
  236. package/dist/__vite-browser-external-DYxpcVy9-DYxpcVy9.js +0 -4
  237. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
  238. package/dist/auth-Cj5FKr_m.js +0 -19
  239. package/dist/axios-xPiQW9EP.js +0 -118114
  240. package/dist/defaultTheme-OIfL8Ia7.js +0 -5
  241. package/dist/dividerClasses-Z7VLlu5C.js +0 -10
  242. package/dist/index-DKTkUdik.js +0 -6
  243. package/dist/react-redux-VW99uJjf.js +0 -5908
  244. package/dist/react-webcam-Cov1TP0q.js +0 -639
  245. package/dist/styled-Da6GnxEE.js +0 -5
  246. package/dist/tokenRow-Cdd_jFjp.js +0 -206
  247. package/dist/useFormControl-Bo6Tf_xo.js +0 -46
  248. package/dist/useSlot-CURNJ3JC.js +0 -306
  249. package/dist/useTheme-DWRMvRU8.js +0 -9
  250. package/dist/useTimeout-lr7ryrda.js +0 -75
@@ -0,0 +1,489 @@
1
+ import { jsxs as n, Fragment as u, jsx as e } from "react/jsx-runtime";
2
+ import { useRef as Ne, useState as a, useEffect as X } from "react";
3
+ import { a as Fe, u as Ie } from "../../react-redux-B4BZippc.js";
4
+ import { c as Ae, a as Se, P as Ce } from "../../PlayArrow-D_p2nwO8.js";
5
+ import { I as Le } from "../../Info-CkE3Gsf2.js";
6
+ import { G as Me } from "../../generic-token-B_ptO5yb.js";
7
+ import { getNetworkBackGround as J, getCentralLedgetNetwork as Te, getCurrencySymbol as We } from "../../util/functions.js";
8
+ import K from "../Shared/TokenModal/index.js";
9
+ import { formatNumberWithoutRounding as Q } from "../../util/conversions.js";
10
+ import "../../constants-SKm7VF9k.js";
11
+ import { ARROW_ICON as Oe, ESTIMATE_TOOLTIP_TEXT as Re } from "../../util/constants.js";
12
+ import Ee from "../Shared/tooltip.js";
13
+ import Pe from "../Shared/ConnectWallet/index.js";
14
+ import "@incodetech/welcome";
15
+ import "../../axios-BEX6n2A7.js";
16
+ import { useSnackBar as $e } from "../../hooks/useSnackBar.js";
17
+ import "../SignUp/pin.js";
18
+ import '../../assets/main.css';import '../../assets/index2.css';/* empty css */
19
+ import "../../index-CAoLi5Qq.js";
20
+ import "../../react-webcam-B3cXh1XT.js";
21
+ import "../Shared/transition.js";
22
+ import "../Shared/pin.js";
23
+ import "../../moment-h96o7c8I.js";
24
+ import "../../index.esm-BsMAMhYW.js";
25
+ import "../../index-B8QKlEgj.js";
26
+ import "../../index-ceeCtFuh.js";
27
+ import { B as h } from "../../Box-BOgpENcC.js";
28
+ import { G as l } from "../../Grid-EISqvBSJ.js";
29
+ import { T as i } from "../../Typography-Dx54MRM5.js";
30
+ import { F as f } from "../../FormControl-Nd-4LC8N.js";
31
+ import { F as Z, S as C } from "../../Select-DTQDmdn_.js";
32
+ import { F as ee, I as L } from "../../TextField-BqIvz6Zw.js";
33
+ import { C as d } from "../../CircularProgress-BAEiXRSn.js";
34
+ import { M as x } from "../../MenuItem-D12FP5Iq.js";
35
+ import { L as te } from "../../ListItemIcon-JAntieDc.js";
36
+ import { I as ae } from "../../IconButton-DAR3jsEV.js";
37
+ import { B as ze } from "../../Button-DXdgxFxa.js";
38
+ const Be = "_label_cuehd_1", De = "_amount_cuehd_71", s = {
39
+ label: Be,
40
+ "balance-label": "_balance-label_cuehd_13",
41
+ "max-btn": "_max-btn_cuehd_25",
42
+ amount: De,
43
+ "MuiFilledInput-root": "_MuiFilledInput-root_cuehd_91",
44
+ "amount-symbol": "_amount-symbol_cuehd_107",
45
+ "crypto-picker": "_crypto-picker_cuehd_125",
46
+ "fiat-picker": "_fiat-picker_cuehd_133",
47
+ "network-label": "_network-label_cuehd_141",
48
+ "eth-network": "_eth-network_cuehd_167",
49
+ "everchain-network": "_everchain-network_cuehd_175",
50
+ "buy-select-dd": "_buy-select-dd_cuehd_185",
51
+ "MuiSelect-select": "_MuiSelect-select_cuehd_201",
52
+ "dropdown-list-item": "_dropdown-list-item_cuehd_215",
53
+ "fee-area": "_fee-area_cuehd_239",
54
+ "info-fee-icon": "_info-fee-icon_cuehd_249",
55
+ "wallet-caption-text": "_wallet-caption-text_cuehd_259"
56
+ }, Gt = () => {
57
+ const { showAlertMessage: m, snackBar: ne } = $e(), M = Fe((t) => t.cryptoAssets.tokens);
58
+ Ne();
59
+ const [g, Ge] = a(""), [y, Ye] = a(""), [p, N] = a("0.5"), [F, qe] = a(!1);
60
+ a([]), a({});
61
+ const [_, He] = a(!1), [re, Ue] = a(0), [le, je] = a(0), [se, Ve] = a(0);
62
+ a("");
63
+ const [oe, T] = a(!1), [W, Xe] = a(!1), [I, Je] = a([]), [o, O] = a();
64
+ a({});
65
+ const [ie, R] = a(!1), [E, ce] = a(!0), [v, me] = a([]), [r, de] = a(), [P, ue] = a(!1), [$, pe] = a(!1), [b, Ke] = a(0), [z, Qe] = a(0);
66
+ a(!0), a(!1);
67
+ const [he, B] = a(""), [D, G] = a(""), [w, Y] = a(""), [fe, Ze] = a(!0), [xe, et] = a([]);
68
+ a([]), a([]), a([]);
69
+ const [A, tt] = a(50), [ge, at] = a(1e4), [q, nt] = a("");
70
+ parseFloat(p.replaceAll(",", "."));
71
+ let H = "0.00";
72
+ p && y && (H = y);
73
+ const _e = /^([0-9]*(\,|\.)[0-9]+|[0-9]+)$/, S = We("USD"), U = Ie();
74
+ X(() => {
75
+ U(Ae()), U(Se());
76
+ }, []), X(() => {
77
+ w || (me(M), ce(!1));
78
+ }, [M, w]), console.log("inputTokenList", v);
79
+ const ve = (t) => {
80
+ G(t), Y(t), B("");
81
+ }, be = (t) => {
82
+ B(t), Y(t), G("");
83
+ }, we = (t) => {
84
+ const c = t.target.value;
85
+ c ? /^([0-9.,]+)$/.test(c) && N(Q(c, 8)) : N("");
86
+ }, j = (t) => {
87
+ const c = I.find((k) => k.id === t);
88
+ O(c);
89
+ }, V = (t) => {
90
+ O({});
91
+ const c = v.find((k) => k.id === t);
92
+ de(c);
93
+ }, ke = () => {
94
+ if (!r)
95
+ return m({
96
+ message: "Please select token you want to swap"
97
+ }), !1;
98
+ if (!o)
99
+ return m({
100
+ message: "Please select token you want to receive"
101
+ }), !1;
102
+ if (!p)
103
+ return m({ message: "Please enter amount" }), !1;
104
+ if (!w)
105
+ return m({ message: "Please select/enter wallet address" }), !1;
106
+ if (!_e.test(p))
107
+ return m({ message: "Please provide a valid amount" }), !1;
108
+ if (!g)
109
+ return m({
110
+ message: "Please wait for the estimate to be calculated and then press next"
111
+ }), !1;
112
+ if (p > r.fmt_balance)
113
+ return m({
114
+ message: "You don't have enough balance to make this swap"
115
+ }), !1;
116
+ if (A * 1 > b * 1)
117
+ return m({
118
+ message: "The input amount of this transaction is below our minimum, please try a higher transaction amount"
119
+ }), !1;
120
+ if (ge * 1 < b * 1)
121
+ return m({
122
+ message: "The input amount of this transaction is above our maximum, please try a lower transaction amount"
123
+ }), !1;
124
+ if ($)
125
+ return !1;
126
+ pe(!0), alert("TRade");
127
+ }, ye = () => {
128
+ r && N(Q(r.fmt_balance + "", 8));
129
+ };
130
+ return /* @__PURE__ */ n(u, { children: [
131
+ ne,
132
+ /* @__PURE__ */ n(h, { children: [
133
+ /* @__PURE__ */ n(l, { container: !0, children: [
134
+ /* @__PURE__ */ e(l, { item: !0, xs: 2.5, children: /* @__PURE__ */ e(
135
+ i,
136
+ {
137
+ className: s.label,
138
+ variant: "caption",
139
+ component: "p",
140
+ children: "You Swap"
141
+ }
142
+ ) }),
143
+ /* @__PURE__ */ e(l, { item: !0, xs: 9.5, children: w && r && /* @__PURE__ */ n(
144
+ i,
145
+ {
146
+ className: s["balance-label"],
147
+ variant: "caption",
148
+ component: "p",
149
+ children: [
150
+ "You Have: ",
151
+ r.fmt_balance,
152
+ " ",
153
+ r.symbol,
154
+ " ",
155
+ /* @__PURE__ */ e("span", { className: s["max-btn"], onClick: ye, children: "MAX" })
156
+ ]
157
+ }
158
+ ) })
159
+ ] }),
160
+ /* @__PURE__ */ n(l, { mt: 0.5, container: !0, children: [
161
+ /* @__PURE__ */ e(l, { item: !0, xs: 6, children: /* @__PURE__ */ n(f, { variant: "filled", className: s.amount, fullWidth: !0, children: [
162
+ /* @__PURE__ */ e(
163
+ Z,
164
+ {
165
+ value: p,
166
+ onChange: we,
167
+ type: "text",
168
+ placeholder: `${A > 0 ? "$" + A + " minimum value" : ""}`,
169
+ error: F,
170
+ required: !0,
171
+ fullWidth: !0
172
+ }
173
+ ),
174
+ /* @__PURE__ */ e(ee, { className: s["amount-symbol"], children: b > 0 ? "$" + (b * 1).toFixed(2) : /* @__PURE__ */ e(u, { children: " " }) })
175
+ ] }) }),
176
+ /* @__PURE__ */ e(l, { item: !0, xs: 6, className: "content-center", children: E ? /* @__PURE__ */ e(
177
+ d,
178
+ {
179
+ sx: { ml: 1 },
180
+ size: 30
181
+ }
182
+ ) : /* @__PURE__ */ n(
183
+ f,
184
+ {
185
+ variant: "filled",
186
+ className: `text-left ${s["crypto-picker"]}`,
187
+ fullWidth: !0,
188
+ children: [
189
+ (r == null ? void 0 : r.network) && /* @__PURE__ */ e(
190
+ L,
191
+ {
192
+ className: `${s["network-label"]} ${s[J(r == null ? void 0 : r.network)]}`,
193
+ children: Te(r == null ? void 0 : r.network)
194
+ }
195
+ ),
196
+ /* @__PURE__ */ n(
197
+ C,
198
+ {
199
+ sx: {
200
+ fontWeight: "bold",
201
+ ".MuiSvgIcon-root ": {
202
+ fill: "#16359D !important"
203
+ },
204
+ padding: r && r.id > 0 ? "0px" : "4.95px"
205
+ },
206
+ className: s["buy-select-dd"],
207
+ value: r && r.id,
208
+ variant: "filled",
209
+ displayEmpty: !0,
210
+ onChange: (t) => V(t.target.value),
211
+ onOpen: (t) => {
212
+ R(!0), t.preventDefault();
213
+ },
214
+ defaultOpen: !1,
215
+ open: !1,
216
+ error: F,
217
+ children: [
218
+ /* @__PURE__ */ e(x, { value: "", children: "Please select input" }),
219
+ v.map((t) => /* @__PURE__ */ n(x, { value: t.id, children: [
220
+ /* @__PURE__ */ e(te, { className: s["dropdown-list-item"], children: /* @__PURE__ */ e(
221
+ "img",
222
+ {
223
+ src: t.icon_uri,
224
+ alt: "US Flag",
225
+ width: "40",
226
+ height: "40"
227
+ }
228
+ ) }),
229
+ /* @__PURE__ */ e("span", { children: t.symbol })
230
+ ] }, t.id))
231
+ ]
232
+ }
233
+ )
234
+ ]
235
+ }
236
+ ) }),
237
+ q && /* @__PURE__ */ e(i, { variant: "caption", sx: { color: "red" }, children: /* @__PURE__ */ e("strong", { children: q }) })
238
+ ] }),
239
+ /* @__PURE__ */ n(l, { mt: 4, container: !0, children: [
240
+ /* @__PURE__ */ e(l, { item: !0, xs: 4, children: /* @__PURE__ */ e(
241
+ i,
242
+ {
243
+ className: s.label,
244
+ variant: "caption",
245
+ component: "p",
246
+ children: "You Receive"
247
+ }
248
+ ) }),
249
+ /* @__PURE__ */ e(
250
+ l,
251
+ {
252
+ sx: { marginTop: "-20px" },
253
+ className: "text-center",
254
+ item: !0,
255
+ xs: 4,
256
+ children: /* @__PURE__ */ e("img", { src: Oe, alt: "arrow" })
257
+ }
258
+ )
259
+ ] }),
260
+ /* @__PURE__ */ n(l, { mt: 0.5, container: !0, children: [
261
+ /* @__PURE__ */ e(l, { item: !0, xs: 6, children: /* @__PURE__ */ n(f, { className: s.amount, fullWidth: !0, children: [
262
+ /* @__PURE__ */ e(
263
+ Z,
264
+ {
265
+ value: g && parseFloat(g).toFixed(5),
266
+ type: "text",
267
+ readOnly: !0,
268
+ fullWidth: !0
269
+ }
270
+ ),
271
+ /* @__PURE__ */ e(ee, { className: s["amount-symbol"], children: z > 0 ? "$" + (z * 1).toFixed(2) : /* @__PURE__ */ e(u, { children: " " }) })
272
+ ] }) }),
273
+ /* @__PURE__ */ e(l, { item: !0, xs: 6, className: "content-center", children: W ? /* @__PURE__ */ e(
274
+ d,
275
+ {
276
+ sx: { ml: 1 },
277
+ size: 30
278
+ }
279
+ ) : /* @__PURE__ */ n(
280
+ f,
281
+ {
282
+ variant: "filled",
283
+ className: `text-left ${s["crypto-picker"]}`,
284
+ fullWidth: !0,
285
+ children: [
286
+ (o == null ? void 0 : o.network) && /* @__PURE__ */ e(
287
+ L,
288
+ {
289
+ className: `${s["network-label"]} ${s[J(o == null ? void 0 : o.network)]}`,
290
+ children: o == null ? void 0 : o.network
291
+ }
292
+ ),
293
+ /* @__PURE__ */ n(
294
+ C,
295
+ {
296
+ sx: {
297
+ fontWeight: "bold",
298
+ ".MuiSvgIcon-root ": {
299
+ fill: "#16359D !important"
300
+ },
301
+ padding: o && o.id > 0 ? "0px" : "4.95px"
302
+ },
303
+ className: s["buy-select-dd"],
304
+ variant: "filled",
305
+ value: o && o.id,
306
+ displayEmpty: !0,
307
+ onChange: (t) => j(t.target.value),
308
+ onOpen: (t) => {
309
+ T(!0), t.preventDefault();
310
+ },
311
+ defaultOpen: !1,
312
+ open: !1,
313
+ children: [
314
+ /* @__PURE__ */ e(x, { value: "", children: "Please select output" }),
315
+ I.map((t) => /* @__PURE__ */ n(x, { value: t.id, children: [
316
+ /* @__PURE__ */ e(te, { className: s["dropdown-list-item"], children: /* @__PURE__ */ e(
317
+ "img",
318
+ {
319
+ src: t.icon_uri,
320
+ onError: ({ currentTarget: c }) => {
321
+ c.onerror = null, c.src = Me;
322
+ },
323
+ alt: "tokenImage",
324
+ width: "40",
325
+ height: "40"
326
+ }
327
+ ) }),
328
+ /* @__PURE__ */ e("span", { children: t.symbol.toUpperCase() })
329
+ ] }, t.id))
330
+ ]
331
+ }
332
+ )
333
+ ]
334
+ }
335
+ ) })
336
+ ] }),
337
+ /* @__PURE__ */ e(h, { mt: 2.5, className: s["fee-area"], children: /* @__PURE__ */ n(l, { container: !0, children: [
338
+ /* @__PURE__ */ e(l, { className: "text-left", item: !0, xs: 12, children: /* @__PURE__ */ n(
339
+ ae,
340
+ {
341
+ sx: { padding: "0" },
342
+ onClick: () => ue((t) => !t),
343
+ disableFocusRipple: !0,
344
+ disableRipple: !0,
345
+ children: [
346
+ /* @__PURE__ */ e(i, { variant: "caption", children: /* @__PURE__ */ e("strong", { children: "Fee Calculation" }) }),
347
+ /* @__PURE__ */ e(
348
+ Ce,
349
+ {
350
+ sx: {
351
+ transform: `rotate(${P ? "90" : "0"}deg)`,
352
+ fontSize: "15px"
353
+ }
354
+ }
355
+ )
356
+ ]
357
+ }
358
+ ) }),
359
+ P && /* @__PURE__ */ n(u, { children: [
360
+ /* @__PURE__ */ e(l, { className: "text-left", item: !0, xs: 6, children: /* @__PURE__ */ e(i, { variant: "caption", children: "Everest Fee" }) }),
361
+ /* @__PURE__ */ e(l, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ n(i, { variant: "caption", children: [
362
+ S,
363
+ _ ? /* @__PURE__ */ e(
364
+ d,
365
+ {
366
+ sx: { ml: 1 },
367
+ size: 15
368
+ }
369
+ ) : le.toFixed(2)
370
+ ] }) }),
371
+ /* @__PURE__ */ e(l, { className: "text-left", item: !0, xs: 6, children: /* @__PURE__ */ e(i, { variant: "caption", children: "Network Fee" }) }),
372
+ /* @__PURE__ */ e(l, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ n(i, { variant: "caption", children: [
373
+ S,
374
+ _ ? /* @__PURE__ */ e(
375
+ d,
376
+ {
377
+ sx: { ml: 1 },
378
+ size: 15
379
+ }
380
+ ) : se.toFixed(2)
381
+ ] }) })
382
+ ] }),
383
+ /* @__PURE__ */ e(l, { className: "text-left", item: !0, xs: 6, children: /* @__PURE__ */ e(i, { variant: "caption", children: "Total Fees" }) }),
384
+ /* @__PURE__ */ e(l, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ n(i, { variant: "caption", children: [
385
+ S,
386
+ _ ? /* @__PURE__ */ e(
387
+ d,
388
+ {
389
+ sx: { ml: 1 },
390
+ size: 15
391
+ }
392
+ ) : re.toFixed(2)
393
+ ] }) }),
394
+ o && r && /* @__PURE__ */ n(u, { children: [
395
+ /* @__PURE__ */ e(l, { className: "text-left", item: !0, xs: 6, children: /* @__PURE__ */ n(i, { variant: "caption", children: [
396
+ "1 ",
397
+ r == null ? void 0 : r.symbol,
398
+ " ",
399
+ /* @__PURE__ */ e(Ee, { title: Re, placement: "right", children: /* @__PURE__ */ e(ae, { className: s["info-fee-icon"], children: /* @__PURE__ */ e(Le, { sx: { fontSize: "14px" } }) }) })
400
+ ] }) }),
401
+ /* @__PURE__ */ e(l, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ e(i, { variant: "caption", children: _ ? /* @__PURE__ */ e(
402
+ d,
403
+ {
404
+ sx: { ml: 1 },
405
+ size: 15
406
+ }
407
+ ) : parseFloat(H).toFixed(6) + " " + (o == null ? void 0 : o.symbol) }) })
408
+ ] })
409
+ ] }) }),
410
+ /* @__PURE__ */ e(
411
+ Pe,
412
+ {
413
+ disabled: !y,
414
+ walletAddress: he,
415
+ from: "swap",
416
+ addressHandler: be
417
+ }
418
+ ),
419
+ /* @__PURE__ */ e(h, { sx: { alignItems: "left", width: "100%" }, children: fe ? /* @__PURE__ */ e(h, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(d, {}) }) : /* @__PURE__ */ n(u, { children: [
420
+ /* @__PURE__ */ e(
421
+ i,
422
+ {
423
+ className: s["wallet-caption-text"],
424
+ mt: 1,
425
+ mb: 1,
426
+ variant: "caption",
427
+ component: "p",
428
+ children: "Or"
429
+ }
430
+ ),
431
+ /* @__PURE__ */ n(
432
+ f,
433
+ {
434
+ variant: "filled",
435
+ fullWidth: !0,
436
+ children: [
437
+ !D && /* @__PURE__ */ e(L, { children: "Select wallet address" }),
438
+ /* @__PURE__ */ e(
439
+ C,
440
+ {
441
+ value: D,
442
+ onChange: (t) => ve(t.target.value),
443
+ children: xe.map((t, c) => /* @__PURE__ */ e(x, { value: t.address, children: t.name + "(" + t.address + ")" }, c))
444
+ }
445
+ )
446
+ ]
447
+ }
448
+ )
449
+ ] }) }),
450
+ /* @__PURE__ */ e(h, { mt: 4, children: /* @__PURE__ */ e(
451
+ ze,
452
+ {
453
+ className: "wallet-btn",
454
+ fullWidth: !0,
455
+ variant: "contained",
456
+ onClick: ke,
457
+ disabled: F || !g,
458
+ children: /* @__PURE__ */ e("strong", { children: $ ? /* @__PURE__ */ n(u, { children: [
459
+ /* @__PURE__ */ e(d, { size: 15, color: "inherit" }),
460
+ " Processing..."
461
+ ] }) : "Swap" })
462
+ }
463
+ ) })
464
+ ] }),
465
+ /* @__PURE__ */ e(
466
+ K,
467
+ {
468
+ open: ie,
469
+ setModal: R,
470
+ loader: E,
471
+ tokenList: v,
472
+ tokenSelect: V
473
+ }
474
+ ),
475
+ /* @__PURE__ */ e(
476
+ K,
477
+ {
478
+ open: oe,
479
+ setModal: T,
480
+ loader: W,
481
+ tokenList: I,
482
+ tokenSelect: j
483
+ }
484
+ )
485
+ ] });
486
+ };
487
+ export {
488
+ Gt as default
489
+ };
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ declare const _default: React.FC<object & import('../../hoc/withThemeProvider').WithThemeProviderProps>;
3
+ export default _default;
@@ -0,0 +1,43 @@
1
+ import { jsx as e, Fragment as s, jsxs as c } from "react/jsx-runtime";
2
+ import { useState as o } from "react";
3
+ import l from "../Swap/index.js";
4
+ import p from "../../hoc/withThemeProvider.js";
5
+ import { B as i } from "../../Box-BOgpENcC.js";
6
+ import { G as a } from "../../Grid2-B0mJbwjl.js";
7
+ import { T as m } from "../../Typography-Dx54MRM5.js";
8
+ import '../../assets/index.css';const d = "_container_1pyai_1", _ = "_active_1pyai_43", n = {
9
+ container: d,
10
+ "inner-container": "_inner-container_1pyai_13",
11
+ "menu-btn": "_menu-btn_1pyai_29",
12
+ active: _,
13
+ "menu-item": "_menu-item_1pyai_53",
14
+ "menu-text": "_menu-text_1pyai_65"
15
+ }, h = () => {
16
+ const [t, r] = o(!1);
17
+ return /* @__PURE__ */ e(s, { children: /* @__PURE__ */ e(i, { className: n.container, children: /* @__PURE__ */ c(i, { className: `${n["inner-container"]} text-center`, children: [
18
+ /* @__PURE__ */ e(i, { mb: 4, className: n["menu-btn"], children: /* @__PURE__ */ c(a, { container: !0, spacing: 5, sx: { width: "370px" }, children: [
19
+ /* @__PURE__ */ e(a, { className: n["menu-item"], size: 6, children: /* @__PURE__ */ e(
20
+ m,
21
+ {
22
+ className: `${n["menu-text"]} font-bold ${t ? "" : n.active}`,
23
+ variant: "h4",
24
+ onClick: () => r(!1),
25
+ children: "Everest"
26
+ }
27
+ ) }),
28
+ /* @__PURE__ */ e(a, { className: n["menu-item"], size: 6, children: /* @__PURE__ */ e(
29
+ m,
30
+ {
31
+ className: `${n["menu-text"]} font-bold ${t ? n.active : ""}`,
32
+ variant: "h4",
33
+ onClick: () => r(!0),
34
+ children: "Uniswap"
35
+ }
36
+ ) })
37
+ ] }) }),
38
+ t ? /* @__PURE__ */ e("h1", { children: "UniSwap" }) : /* @__PURE__ */ e(l, {})
39
+ ] }) }) });
40
+ }, S = p(h);
41
+ export {
42
+ S as default
43
+ };