everest-npm-features 0.0.26 → 0.0.27

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 (218) hide show
  1. package/dist/{Alert-CbQZ8Nii.js → Alert-CUoIVlUd.js} +8 -7
  2. package/dist/{ArrowBack-BoYSBb8u.js → ArrowBack-BV158RTp.js} +1 -1
  3. package/dist/Avatar-CwczQLPi.js +280 -0
  4. package/dist/{Backdrop-CJBRZv_z.js → Backdrop-yR8IRnFX.js} +1 -1
  5. package/dist/{Box-B12x52NC.js → Box-BwKpr_VI.js} +1 -1
  6. package/dist/{Button-C57IMamW.js → Button-tAfK4lud.js} +13 -12
  7. package/dist/{ButtonBase-DugIO1pR.js → ButtonBase-CaH152Zd.js} +1 -1
  8. package/dist/{Cancel-D1JNu4Hj.js → Cancel-BoEk0xRy.js} +1 -1
  9. package/dist/{CardContent-CbObWW6t.js → CardContent-ZS4vlcvi.js} +2 -2
  10. package/dist/{CircularProgress-t8uGhLMo.js → CircularProgress-Yx712vpT.js} +7 -6
  11. package/dist/{Close-jnEgOCZv.js → Close-B_8kEwSt.js} +1 -1
  12. package/dist/{Close-VV7zb3cu.js → Close-CFg1QB5M.js} +1 -1
  13. package/dist/{Container-B3Af6Sc3.js → Container-CBPBT38n.js} +2 -2
  14. package/dist/{ContentCopy-Ufwoeeov.js → ContentCopy-D4Eg7Nkm.js} +1 -1
  15. package/dist/DefaultPropsProvider-4P82EuVL.js +232 -0
  16. package/dist/{Delete-TCARcVtU.js → Delete-BGp4FPdE.js} +1 -1
  17. package/dist/{DialogContent-DzidtXui.js → DialogContent-_gvZOy18.js} +13 -12
  18. package/dist/{DialogTitle-Bg61Hr7M.js → DialogTitle-dq22bYlF.js} +3 -3
  19. package/dist/{Divider-Dy5hKfey.js → Divider-CIL55YSC.js} +10 -9
  20. package/dist/{ErrorOutline-CI_ys3Zo.js → ErrorOutline-BykbFh0r.js} +1 -1
  21. package/dist/{FileDownload-BcYF17B0.js → FileDownload-BSy7tA6m.js} +1 -1
  22. package/dist/{FilledInput-DrGeWgue.js → FilledInput-QaJVaeIX.js} +12 -14
  23. package/dist/{FormControl-DeeQCuu5.js → FormControl-H4D1Z6Ov.js} +1 -1
  24. package/dist/{FormControlLabel-DVnrJkC8.js → FormControlLabel-BvI1nkJ1.js} +7 -6
  25. package/dist/{Grid-BXyV_lM8.js → Grid-CPkjiKqX.js} +2 -2
  26. package/dist/{IconButton-eWRhV6Q9.js → IconButton-WneJM4uP.js} +10 -9
  27. package/dist/{Info-D2UkGxyK.js → Info-0vSsl6Bm.js} +1 -1
  28. package/dist/{InputAdornment-BKuUMfPj.js → InputAdornment-Bqn4-Kns.js} +6 -5
  29. package/dist/{Link-Cm4BkRHO.js → Link-DhdK4VfZ.js} +6 -5
  30. package/dist/{ListItemIcon-GKRFb1Gr.js → ListItemIcon-D657XWHf.js} +15 -14
  31. package/dist/Menu-BAFJBGa-.js +1238 -0
  32. package/dist/{MenuItem-CeCt0bfa.js → MenuItem-ByxiQtY2.js} +36 -35
  33. package/dist/{Modal-csf3Y8d2.js → Modal-DEfOsvWK.js} +16 -15
  34. package/dist/{Paper-CnStNE24.js → Paper-jx_cZiyU.js} +27 -26
  35. package/dist/{PlayArrow-DRCGjsrx.js → PlayArrow-BCWGWaUq.js} +1 -1
  36. package/dist/{Popper-pPBEFLi4.js → Popper-B1He9eVi.js} +1 -1
  37. package/dist/{RadioGroup-KiyYjXaT.js → RadioGroup-_-H2gvH2.js} +3 -3
  38. package/dist/Select-CGei0bav.js +1885 -0
  39. package/dist/{Stack-CcR5RCg8.js → Stack-DH-Nxf9q.js} +2 -2
  40. package/dist/{SwitchBase-CHO5ZceN.js → SwitchBase-BDUzpdBf.js} +2 -2
  41. package/dist/{TextField-q_SeLeNd.js → TextField-DmiK1A_S.js} +17 -16
  42. package/dist/{Typography-DBlMiOti.js → Typography-BQDN44CM.js} +16 -15
  43. package/dist/assets/documents.css +1 -1
  44. package/dist/assets/index10.css +1 -1
  45. package/dist/assets/index3.css +1 -1
  46. package/dist/assets/index4.css +1 -1
  47. package/dist/assets/styles2.css +1 -1
  48. package/dist/assets/styles3.css +1 -1
  49. package/dist/assets/tokenRow.css +1 -1
  50. package/dist/assets/withThemeProvider.css +1 -1
  51. package/dist/{auth-Bf9zHZ-x.js → auth-SxpGte_3.js} +1 -1
  52. package/dist/{bank-BC4YNBRb.js → bank-DyVf4Uoo.js} +6 -6
  53. package/dist/components/RocketRamp/MinimalKyc/form.js +13 -12
  54. package/dist/components/RocketRamp/MinimalKyc/index.js +1 -1
  55. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +7 -7
  56. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +7 -7
  57. package/dist/components/RocketRamp/Player/Buy/form.js +16 -16
  58. package/dist/components/RocketRamp/Player/Buy/index.js +6 -6
  59. package/dist/components/RocketRamp/Player/Dashboard/balance.js +6 -6
  60. package/dist/components/RocketRamp/Player/Dashboard/index.js +16 -14
  61. package/dist/components/RocketRamp/Player/Dashboard/transaction.js +4 -4
  62. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +10 -10
  63. package/dist/components/RocketRamp/Player/Sell/form.js +16 -16
  64. package/dist/components/RocketRamp/Player/Sell/index.js +14 -13
  65. package/dist/components/RocketRamp/Player/SignIn/index.js +5 -5
  66. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +5 -5
  67. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +5 -5
  68. package/dist/components/RocketRamp/Player/SignUp/email.js +5 -5
  69. package/dist/components/RocketRamp/Player/SignUp/index.js +6 -6
  70. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +9 -9
  71. package/dist/components/RocketRamp/Player/SignUp/summary.js +3 -3
  72. package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +3 -3
  73. package/dist/components/RocketRamp/ResetPassword/index.js +5 -5
  74. package/dist/components/RocketRamp/Shared/Button/index.js +2 -2
  75. package/dist/components/RocketRamp/Shared/Input/index.js +6 -6
  76. package/dist/components/RocketRamp/Shared/backBtn.js +3 -3
  77. package/dist/components/RocketRamp/Shared/transactionItem.js +5 -5
  78. package/dist/components/RocketRamp/Store/Dashboard/balance.js +5 -5
  79. package/dist/components/RocketRamp/Store/Dashboard/index.js +2 -2
  80. package/dist/components/RocketRamp/Store/Dashboard/stats.js +5 -5
  81. package/dist/components/RocketRamp/Store/Dashboard/transaction.js +4 -4
  82. package/dist/components/RocketRamp/Store/SignUp/index.js +6 -6
  83. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +9 -9
  84. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +7 -7
  85. package/dist/components/RocketRamp/Store/SignUp/summary.js +3 -3
  86. package/dist/components/RocketRamp/Store/SignUp/validateEmail.js +3 -3
  87. package/dist/components/RocketRamp/Transactions/index.js +4 -4
  88. package/dist/components/Shared/FullKyc/index.js +4 -4
  89. package/dist/components/Shared/FullKyc/pep.js +9 -9
  90. package/dist/components/Shared/FullKyc/personalDetails.js +10 -9
  91. package/dist/components/Shared/FullKyc/userInfo.js +15 -14
  92. package/dist/components/Shared/HistoryItem/index.js +64 -65
  93. package/dist/components/Shared/Incode/index.js +5 -5
  94. package/dist/components/Shared/MinimalKyc/index.js +8 -8
  95. package/dist/components/Shared/loader.js +2 -2
  96. package/dist/components/Shared/tooltip.js +2 -2
  97. package/dist/components/Wallet/Account/createIban.js +76 -85
  98. package/dist/components/Wallet/Account/iban.d.ts +5 -1
  99. package/dist/components/Wallet/Account/iban.js +223 -25
  100. package/dist/components/Wallet/Account/index.js +144 -149
  101. package/dist/components/Wallet/Account/sendIban.js +25 -27
  102. package/dist/components/Wallet/Buy/confirmTransaction.js +8 -8
  103. package/dist/components/Wallet/Buy/form.js +21 -20
  104. package/dist/components/Wallet/Buy/index.js +6 -6
  105. package/dist/components/Wallet/Deposit/index.js +25 -24
  106. package/dist/components/Wallet/EnterpriseKyc/edd.js +23 -22
  107. package/dist/components/Wallet/EnterpriseKyc/index.js +15 -14
  108. package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +5 -5
  109. package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +3 -3
  110. package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +2 -2
  111. package/dist/components/Wallet/EnterpriseKyc/kycType.js +5 -5
  112. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +26 -25
  113. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +30 -28
  114. package/dist/components/Wallet/EnterpriseKyc/success.js +2 -2
  115. package/dist/components/Wallet/EnterpriseKyc/verify.js +8 -7
  116. package/dist/components/Wallet/History/index.js +111 -112
  117. package/dist/components/Wallet/Home/index.d.ts +5 -0
  118. package/dist/components/Wallet/Home/index.js +20 -0
  119. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +18 -17
  120. package/dist/components/Wallet/Portfolio/dropdown.d.ts +14 -0
  121. package/dist/components/Wallet/Portfolio/dropdown.js +76 -0
  122. package/dist/components/Wallet/Portfolio/index.js +309 -304
  123. package/dist/components/Wallet/Portfolio/tokenRow.js +5 -7
  124. package/dist/components/Wallet/Profile/documents.js +18 -18
  125. package/dist/components/Wallet/Profile/index.js +152 -419
  126. package/dist/components/Wallet/Receive/index.js +10 -10
  127. package/dist/components/Wallet/Sell/confirmTransaction.js +8 -8
  128. package/dist/components/Wallet/Sell/form.js +19 -19
  129. package/dist/components/Wallet/Sell/index.js +6 -6
  130. package/dist/components/Wallet/Send/index.js +20 -19
  131. package/dist/components/Wallet/Shared/Auth/emailForm.js +14 -13
  132. package/dist/components/Wallet/Shared/Auth/otpForm.d.ts +1 -1
  133. package/dist/components/Wallet/Shared/Auth/otpForm.js +98 -88
  134. package/dist/components/Wallet/Shared/CardPayment/index.js +4 -4
  135. package/dist/components/Wallet/Shared/ConnectWallet/index.js +10 -12
  136. package/dist/components/Wallet/Shared/Container/index.d.ts +7 -4
  137. package/dist/components/Wallet/Shared/Container/index.js +62 -26
  138. package/dist/components/Wallet/Shared/Input/index.js +1 -1
  139. package/dist/components/Wallet/Shared/Keyboard/keyboard.js +3 -3
  140. package/dist/components/Wallet/Shared/Order/paymentButton.d.ts +2 -0
  141. package/dist/components/Wallet/Shared/Order/paymentButton.js +46 -0
  142. package/dist/components/Wallet/Shared/Order/types.d.ts +2 -0
  143. package/dist/components/Wallet/Shared/TokenModal/index.js +11 -11
  144. package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +13 -11
  145. package/dist/components/Wallet/Shared/addBank.js +44 -48
  146. package/dist/components/Wallet/Shared/appButton.d.ts +1 -1
  147. package/dist/components/Wallet/Shared/appButton.js +77 -57
  148. package/dist/components/Wallet/Shared/backBtn.js +2 -2
  149. package/dist/components/Wallet/Shared/button.js +1 -1
  150. package/dist/components/Wallet/Shared/connectPlaidBank.d.ts +5 -1
  151. package/dist/components/Wallet/Shared/connectPlaidBank.js +39 -38
  152. package/dist/components/Wallet/Shared/inputField.js +1 -1
  153. package/dist/components/Wallet/Shared/noData.js +7 -7
  154. package/dist/components/Wallet/Shared/pin.js +4 -4
  155. package/dist/components/Wallet/Shared/radioButton.js +3 -3
  156. package/dist/components/Wallet/Shared/step.js +2 -2
  157. package/dist/components/Wallet/SignIn/index.js +2 -2
  158. package/dist/components/Wallet/SignUp/index.js +2 -2
  159. package/dist/components/Wallet/SignUp/terms.js +4 -4
  160. package/dist/components/Wallet/Stake/gems/index.js +11 -11
  161. package/dist/components/Wallet/Stake/id/index.js +12 -12
  162. package/dist/components/Wallet/Stake/index.js +30 -29
  163. package/dist/components/Wallet/Swap/index.js +112 -116
  164. package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -3
  165. package/dist/components/Wallet/Withdraw/bankSelect.js +12 -12
  166. package/dist/components/Wallet/Withdraw/confirmTransaction.js +9 -9
  167. package/dist/components/Wallet/Withdraw/form.js +19 -18
  168. package/dist/components/Wallet/Withdraw/index.js +5 -5
  169. package/dist/{constants-CsMPRK0U.js → constants-BF50a6s-.js} +30 -30
  170. package/dist/context/dialogContext.d.ts +6 -0
  171. package/dist/context/dialogContext.js +13 -0
  172. package/dist/{createSvgIcon-CH41ZVFw.js → createSvgIcon-BgBEJXMh.js} +15 -14
  173. package/dist/cryptoAssets-Dck03SPI.js +16 -0
  174. package/dist/{dividerClasses-DnbM--4s.js → dividerClasses-BVK5cNr7.js} +1 -1
  175. package/dist/documents-Sh6RH769.js +549 -0
  176. package/dist/{fiatAssets-DVHfFafS.js → fiatAssets-CTIJw9N4.js} +1 -1
  177. package/dist/hooks/useDialog/index.js +35 -38
  178. package/dist/hooks/useRrDialog/index.js +4 -4
  179. package/dist/hooks/useSnackBar.js +12 -11
  180. package/dist/index-BRwse7X5.js +631 -0
  181. package/dist/{index-DxX5Mo0o.js → index-CWzs4-wZ.js} +18 -18
  182. package/dist/{index-DZ__IpVI.js → index-CbogTdwW.js} +25 -24
  183. package/dist/{index-C9uGghB8.js → index-CmJNKC9m.js} +26 -26
  184. package/dist/{index-VE9lYjq3.js → index-D8j7wPDM.js} +15 -14
  185. package/dist/{index-eEYiDlpX.js → index-GxLtFwhs.js} +228 -230
  186. package/dist/{index-f15o1nhn.js → index-v4KC1K_V.js} +2 -2
  187. package/dist/isHostComponent-kiaBvYVo.js +6 -0
  188. package/dist/{kyc-BweeW6k9.js → kyc-kWxxF1vI.js} +1 -1
  189. package/dist/main.d.ts +7 -0
  190. package/dist/main.js +66 -59
  191. package/dist/memoTheme-BUUB1UEO.js +15 -0
  192. package/dist/{order-DmTHC7ZG.js → order-D-FBHreS.js} +1 -1
  193. package/dist/{pep-C5Ge-kU4.js → pep-D8bFjgpy.js} +19 -18
  194. package/dist/{radioButton-Bgy7Kxxo.js → radioButton-CBcYX40o.js} +8 -7
  195. package/dist/{stake-B150utJI.js → stake-mS8fdG8g.js} +1 -1
  196. package/dist/styles.module-B-t8vvWh.js +31 -0
  197. package/dist/styles.module-verVx4pE.js +8 -0
  198. package/dist/tokenRow-DBnoUm0z.js +186 -0
  199. package/dist/{tooltip-DGtrVEzU.js → tooltip-Dv3Lfsa2.js} +5 -4
  200. package/dist/{useThemeProps-lRuJRcRX.js → useThemeProps-DLhzJP-y.js} +1 -1
  201. package/dist/util/constants.d.ts +5 -0
  202. package/dist/util/constants.js +88 -83
  203. package/dist/{wallet-DDW5KCHp.js → wallet-BTc5u8j2.js} +1 -1
  204. package/package.json +1 -1
  205. package/dist/ArrowDropDown-BC_iEASy.js +0 -8
  206. package/dist/ArrowRight-rYkfGJuF.js +0 -8
  207. package/dist/CheckCircle-CyxKX1TY.js +0 -8
  208. package/dist/DefaultPropsProvider-B2njZVNv.js +0 -242
  209. package/dist/Select-Chubcks_.js +0 -3108
  210. package/dist/assets/iban.css +0 -1
  211. package/dist/assets/index11.css +0 -1
  212. package/dist/cryptoAssets-CzNDY1j6.js +0 -16
  213. package/dist/documents-CEeV8SyW.js +0 -569
  214. package/dist/iban-DRT7i0vb.js +0 -275
  215. package/dist/index-BB3__zW3.js +0 -644
  216. package/dist/styles.module-BFHktEw2.js +0 -30
  217. package/dist/styles.module-DJk7Pf0F.js +0 -10
  218. package/dist/tokenRow-X6vlp1LH.js +0 -198
@@ -1,175 +1,164 @@
1
- import { jsxs as o, Fragment as R, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as a, Fragment as P, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as m, useEffect as g } from "react";
3
3
  import Ge from "./hoc/withThemeProvider.js";
4
- import { P as He } from "./PlayArrow-DRCGjsrx.js";
5
- import { I as Xe } from "./Info-D2UkGxyK.js";
4
+ import { P as Ve } from "./PlayArrow-BCWGWaUq.js";
5
+ import { I as He } from "./Info-0vSsl6Bm.js";
6
6
  import { G as Ee } from "./generic-token-B_ptO5yb.js";
7
- import { PAYMENT_PROVIDER_PAYSAFE as Je, ID_TOKEN_SYMBOL as Ae, FIAT_TO_EVER_ID as oe, FIAT_TO_TOKEN as se, ESTIMATE_TOOLTIP_TEXT as Qe, VISA_PAYMENT as Ze, VISA_PAYMENT_ACTIVE as et, SEPA_PAYMENT as tt, SEPA_PAYMENT_ACTIVE as nt, PAYMENT_BANK as Fe, SEPA_ICON as rt, VISA_ICON as it } from "./util/constants.js";
8
- import { aa as z } from "./constants-CsMPRK0U.js";
9
- import { u as at } from "./index-f15o1nhn.js";
10
- import { b as ot, c as Ie, d as st, a as Me, o as lt, g as ct } from "./order-DmTHC7ZG.js";
11
- import { M as mt } from "./tooltip-DGtrVEzU.js";
12
- import { getCurrencySymbol as Oe, getNetworkBackGround as dt } from "./util/functions.js";
7
+ import { PAYMENT_PROVIDER_PAYSAFE as Xe, ID_TOKEN_SYMBOL as Fe, FIAT_TO_EVER_ID as oe, FIAT_TO_TOKEN as se, ESTIMATE_TOOLTIP_TEXT as Je, PAYMENT_BANK as Ae, SEPA_ICON as Qe, VISA_ICON as Ze } from "./util/constants.js";
8
+ import { ae as z } from "./constants-BF50a6s-.js";
9
+ import { u as et } from "./index-v4KC1K_V.js";
10
+ import { b as tt, c as Ie, d as nt, a as Me, o as rt, g as it } from "./order-D-FBHreS.js";
11
+ import { M as at } from "./tooltip-Dv3Lfsa2.js";
12
+ import { getCurrencySymbol as Oe, getNetworkBackGround as ot } from "./util/functions.js";
13
13
  import ce from "./components/Wallet/Shared/appButton.js";
14
- import pt from "./components/Wallet/Shared/backBtn.js";
15
- import { s as c } from "./styles.module-BFHktEw2.js";
16
- import { T as l } from "./Typography-DBlMiOti.js";
17
- import { B as b } from "./Box-B12x52NC.js";
18
- import { G as i } from "./Grid-BXyV_lM8.js";
19
- import { C as A } from "./CircularProgress-t8uGhLMo.js";
20
- import { u as D, a as ft } from "./react-redux-C7I9-1M6.js";
21
- import { f as ut } from "./fiatAssets-DVHfFafS.js";
22
- import { f as ht } from "./cryptoAssets-CzNDY1j6.js";
23
- import { u as yt } from "./wallet-DDW5KCHp.js";
24
- import { useSnackBarContext as xt } from "./context/snackBarContext.js";
25
- import { AuthContainer as _t } from "./components/Wallet/Shared/Container/index.js";
26
- import gt from "./components/Wallet/Shared/CardPayment/index.js";
27
- import Nt from "./components/Shared/MinimalKyc/index.js";
28
- import bt from "./components/Wallet/Shared/Input/index.js";
29
- import vt from "./components/Wallet/Shared/TokenModal/index.js";
30
- import { F as j } from "./FormControl-DeeQCuu5.js";
31
- import { F as Q } from "./FilledInput-DrGeWgue.js";
32
- import { F as Pe, I as Se } from "./TextField-q_SeLeNd.js";
33
- import { S as ae } from "./Select-Chubcks_.js";
34
- import { M as Z } from "./MenuItem-CeCt0bfa.js";
35
- import { L as Re } from "./ListItemIcon-GKRFb1Gr.js";
36
- import { I as ze } from "./IconButton-eWRhV6Q9.js";
37
- const Ct = ({
38
- setScreen: F,
14
+ import st from "./components/Wallet/Shared/backBtn.js";
15
+ import { s as c } from "./styles.module-B-t8vvWh.js";
16
+ import { T as s } from "./Typography-BQDN44CM.js";
17
+ import { B as F } from "./Box-BwKpr_VI.js";
18
+ import { G as i } from "./Grid-CPkjiKqX.js";
19
+ import { C as E } from "./CircularProgress-Yx712vpT.js";
20
+ import { u as G, a as lt } from "./react-redux-C7I9-1M6.js";
21
+ import { f as ct } from "./fiatAssets-CTIJw9N4.js";
22
+ import { f as mt } from "./cryptoAssets-Dck03SPI.js";
23
+ import { u as dt } from "./wallet-BTc5u8j2.js";
24
+ import { useSnackBarContext as pt } from "./context/snackBarContext.js";
25
+ import { AuthContainer as ft } from "./components/Wallet/Shared/Container/index.js";
26
+ import ut from "./components/Wallet/Shared/CardPayment/index.js";
27
+ import ht from "./components/Shared/MinimalKyc/index.js";
28
+ import yt from "./components/Wallet/Shared/Input/index.js";
29
+ import xt from "./components/Wallet/Shared/TokenModal/index.js";
30
+ import { PaymentButton as _t } from "./components/Wallet/Shared/Order/paymentButton.js";
31
+ import { F as D } from "./FormControl-H4D1Z6Ov.js";
32
+ import { F as Q } from "./FilledInput-QaJVaeIX.js";
33
+ import { F as Re, I as Se } from "./TextField-DmiK1A_S.js";
34
+ import { S as ae } from "./Select-CGei0bav.js";
35
+ import { M as Z } from "./MenuItem-ByxiQtY2.js";
36
+ import { L as Pe } from "./ListItemIcon-D657XWHf.js";
37
+ import { I as ze } from "./IconButton-WneJM4uP.js";
38
+ const gt = ({
39
+ setScreen: A,
39
40
  orderData: x,
40
41
  dispatch: M,
41
42
  fiatAssets: N,
42
43
  cryptoAssets: d,
43
44
  getCryptoAssets: n,
44
45
  showAlertMessage: u,
45
- partnerKey: $,
46
- walletAddress: v,
46
+ partnerKey: L,
47
+ walletAddress: b,
47
48
  setWalletAddress: I,
48
- outputToken: s,
49
+ outputToken: o,
49
50
  setOutputToken: O,
50
51
  paymentId: p,
51
52
  setPaymentId: w,
52
53
  currencyId: y,
53
54
  setCurrencyId: ee,
54
- paymentOptions: G,
55
+ paymentOptions: V,
55
56
  setPaymentOptions: te
56
57
  }) => {
57
58
  var be, ve;
58
- const H = D(at), ne = H.data, { loader: re } = H, P = N.fiats, X = N.loader, L = d.featureTokens.buy.list, q = d.featureTokens.buy.default, f = d.loader, S = x.loader, h = x.estimate[z], T = h.crypto_out_amount, Te = h.conversion_price, We = h.total_fee;
59
+ const H = G(et), ne = H.data, { loader: re } = H, R = N.fiats, X = N.loader, Y = d.featureTokens.buy.list, q = d.featureTokens.buy.default, f = d.loader, S = x.loader, h = x.estimate[z], W = h.crypto_out_amount, We = h.conversion_price, Be = h.total_fee;
59
60
  let me = 0, de = 0;
60
61
  const pe = h.fee_breakdown;
61
62
  for (let t = 0; t < pe.length; t++) {
62
63
  const r = pe[t];
63
64
  r.name === "ev_fee" ? me = Number(r.value) : r.name === "network_fee" && (de = Number(r.value));
64
65
  }
65
- const [ie, K] = m(!1), [W, ke] = m([]), [fe, Be] = m(!1), [ue, Ye] = m(50), [he, $e] = m(3e3), [U, Le] = m(50), [ye, qe] = m(3e3), [xe, V] = m(""), [k, _e] = m(
66
+ const [ie, K] = m(!1), [B, ke] = m([]), [fe, Te] = m(!1), [ue, $e] = m(50), [he, Le] = m(3e3), [U, Ye] = m(50), [ye, qe] = m(3e3), [xe, j] = m(""), [k, _e] = m(
66
67
  h.fiat_amount || U.toString()
67
- ), [Ke, ge] = m(!1), B = P.find((t) => t.id === y), C = Oe(B == null ? void 0 : B.symbol);
68
+ ), [Ke, ge] = m(!1), T = R.find((t) => t.id === y), v = Oe(T == null ? void 0 : T.symbol);
68
69
  g(() => {
69
70
  const t = [];
70
- for (let r = 0; r < P.length; r++) {
71
- const a = {}, _ = P[r];
72
- a.id = _.id, a.name = _.name, a.icon_uri = _.icon_uri, a.symbol = _.symbol, a.payment_options = [];
73
- const E = _.payment_options;
74
- for (let Y = 0; Y < E.length; Y++) {
75
- const Ce = {}, J = E[Y];
76
- J.payment_provider !== Je && J.active && J.payin_allowed && (Object.assign(Ce, J), a.payment_options.push(Ce));
71
+ for (let r = 0; r < R.length; r++) {
72
+ const l = {}, _ = R[r];
73
+ l.id = _.id, l.name = _.name, l.icon_uri = _.icon_uri, l.symbol = _.symbol, l.payment_options = [];
74
+ const C = _.payment_options;
75
+ for (let $ = 0; $ < C.length; $++) {
76
+ const Ce = {}, J = C[$];
77
+ J.payment_provider !== Xe && J.active && J.payin_allowed && (Object.assign(Ce, J), l.payment_options.push(Ce));
77
78
  }
78
- a.payment_options.length > 0 && t.push(a);
79
+ l.payment_options.length > 0 && t.push(l);
79
80
  }
80
81
  ke(t);
81
- }, [P]), g(() => {
82
- if (!y || W.length === 0)
82
+ }, [R]), g(() => {
83
+ if (!y || B.length === 0)
83
84
  return;
84
85
  const t = [];
85
- for (let r = 0; r < W.length; r++) {
86
- if (W[r].id === y) {
87
- const a = W[r].payment_options;
86
+ for (let r = 0; r < B.length; r++) {
87
+ if (B[r].id === y) {
88
+ const l = B[r].payment_options;
88
89
  let _ = !1;
89
- for (let E = 0; E < a.length; E++) {
90
- const Y = a[E];
91
- Y.active && (t.push(Y), a[E].id === p && (_ = !0));
90
+ for (let C = 0; C < l.length; C++) {
91
+ const $ = l[C];
92
+ $.active && (t.push($), l[C].id === p && (_ = !0));
92
93
  }
93
94
  _ || w(t[0].id);
94
95
  }
95
96
  te(t);
96
97
  }
97
- }, [y, W]), g(() => {
98
- !s.symbol && q && q.id && O(q);
98
+ }, [y, B]), g(() => {
99
+ !o.symbol && q && q.id && O(q);
99
100
  }, [q]), g(() => {
100
101
  y && n && n(y);
101
- }, [y, v]), g(() => {
102
- if (s && s.id && k && p && y) {
103
- M(ot(z)), K(!1), V("");
102
+ }, [y, b]), g(() => {
103
+ if (o && o.id && k && p && y) {
104
+ M(tt(z)), K(!1), j("");
104
105
  const t = setTimeout(() => {
105
106
  Ue();
106
107
  }, 1e3);
107
108
  return () => clearTimeout(t);
108
109
  }
109
- }, [s, k, p, L, y]);
110
+ }, [o, k, p, Y, y]);
110
111
  const Ue = () => {
111
112
  var _;
112
113
  const t = parseFloat(k);
113
- if (s.symbol === Ae) {
114
+ if (o.symbol === Fe) {
114
115
  if (ue > t)
115
- return V(
116
- `Minimum value should be greater than ${C + ue}`
116
+ return j(
117
+ `Minimum value should be greater than ${v + ue}`
117
118
  ), K(!0), !1;
118
119
  if (he * 1 < t)
119
- return V(
120
- `Maximum value should be less than ${C + he}`
120
+ return j(
121
+ `Maximum value should be less than ${v + he}`
121
122
  ), K(!0), !1;
122
123
  } else {
123
124
  if (U * 1 > t)
124
- return V(
125
- `Minimum value should be greater than ${C + U}`
125
+ return j(
126
+ `Minimum value should be greater than ${v + U}`
126
127
  ), K(!0), !1;
127
128
  if (ye * 1 < t)
128
- return V(
129
- `Maximum value should be less than ${C + ye}`
129
+ return j(
130
+ `Maximum value should be less than ${v + ye}`
130
131
  ), K(!0), !1;
131
132
  }
132
- const r = G.find((E) => E.id === p), a = r.payment_type;
133
+ const r = V.find((C) => C.id === p), l = r.payment_type;
133
134
  M(
134
135
  Ie(
135
136
  {
136
- apiKey: $,
137
- transaction_type: s.symbol === Ae ? oe : se,
137
+ apiKey: L,
138
+ transaction_type: o.symbol === Fe ? oe : se,
138
139
  coin_amount: k,
139
- exchange: s.exchange,
140
- payment_type: a,
141
- fiat_ccy: B == null ? void 0 : B.symbol,
142
- crypto_ccy: s.symbol,
143
- network: (_ = s.network) == null ? void 0 : _.name,
140
+ exchange: o.exchange,
141
+ payment_type: l,
142
+ fiat_ccy: T == null ? void 0 : T.symbol,
143
+ crypto_ccy: o.symbol,
144
+ network: (_ = o.network) == null ? void 0 : _.name,
144
145
  payment_provider: r.payment_provider
145
146
  },
146
147
  z
147
148
  )
148
149
  );
149
- }, Ve = ({ value: t, label: r }) => {
150
- let a;
151
- if (r === "credit_debit_card" ? (a = Ze, p === t && (a = et)) : (a = tt, p === t && (a = nt)), r)
152
- return /* @__PURE__ */ e(
153
- b,
154
- {
155
- mt: 0.5,
156
- sx: { cursor: "pointer" },
157
- onClick: () => w(t * 1),
158
- children: /* @__PURE__ */ e("img", { src: a, alt: "payment", width: "90%" })
159
- }
160
- );
161
150
  };
162
151
  g(() => {
163
152
  const t = x.types.length;
164
153
  if (t > 0)
165
154
  for (let r = 0; r < t; r++) {
166
- const a = x.types[r];
167
- if (a.type === oe) {
168
- Ye(parseFloat(a.min_deposit_amount)), $e(parseFloat(a.max_deposit_amount));
155
+ const l = x.types[r];
156
+ if (l.type === oe) {
157
+ $e(parseFloat(l.min_deposit_amount)), Le(parseFloat(l.max_deposit_amount));
169
158
  break;
170
159
  }
171
- if (a.type === se) {
172
- Le(parseFloat(a.min_deposit_amount)), qe(parseFloat(a.max_deposit_amount));
160
+ if (l.type === se) {
161
+ Ye(parseFloat(l.min_deposit_amount)), qe(parseFloat(l.max_deposit_amount));
173
162
  break;
174
163
  }
175
164
  }
@@ -178,28 +167,28 @@ const Ct = ({
178
167
  const r = t.target.value;
179
168
  r ? /^([0-9.]+)$/.test(r) && _e(r) : _e("");
180
169
  }, Ne = (t) => {
181
- const r = L.find((a) => a.symbol === t);
170
+ const r = Y.find((l) => l.symbol === t);
182
171
  O(r);
183
172
  }, De = () => {
184
- if (!s.id)
173
+ if (!o.id)
185
174
  return u({ message: "Please select token" }), !1;
186
175
  if (!p)
187
176
  return u({ message: "Please select payment method" }), !1;
188
177
  if (!k)
189
178
  return u({ message: "Please enter amount" }), !1;
190
- if (!v)
179
+ if (!b)
191
180
  return u({ message: "Please select wallet address" }), !1;
192
- if (!T)
181
+ if (!W)
193
182
  return u({
194
183
  message: "Please wait for the estimate to be calculated and then press next"
195
184
  }), !1;
196
- F(le);
185
+ A(le);
197
186
  };
198
- return /* @__PURE__ */ o(R, { children: [
199
- /* @__PURE__ */ e(i, { container: !0, children: /* @__PURE__ */ e(i, { size: { xs: 6 }, children: /* @__PURE__ */ e(l, { className: c.label, variant: "caption", component: "p", children: "You Pay" }) }) }),
200
- /* @__PURE__ */ o(i, { mt: 0.5, spacing: 0, container: !0, children: [
201
- /* @__PURE__ */ e(i, { size: { xs: 6 }, children: /* @__PURE__ */ o(
202
- j,
187
+ return /* @__PURE__ */ a(P, { children: [
188
+ /* @__PURE__ */ e(i, { container: !0, children: /* @__PURE__ */ e(i, { size: { xs: 6 }, children: /* @__PURE__ */ e(s, { className: c.label, variant: "caption", component: "p", children: "You Pay" }) }) }),
189
+ /* @__PURE__ */ a(i, { mt: 0.5, spacing: 0, container: !0, className: c["field-set"], children: [
190
+ /* @__PURE__ */ e(i, { size: { xs: 6 }, children: /* @__PURE__ */ a(
191
+ D,
203
192
  {
204
193
  variant: "filled",
205
194
  className: `${c.amount} ${c["fiat-field"]}`,
@@ -218,18 +207,18 @@ const Ct = ({
218
207
  fullWidth: !0
219
208
  }
220
209
  ),
221
- /* @__PURE__ */ e(Pe, { className: c["amount-symbol"], children: " " })
210
+ /* @__PURE__ */ e(Re, { className: c["amount-symbol"], children: " " })
222
211
  ]
223
212
  }
224
213
  ) }),
225
214
  /* @__PURE__ */ e(i, { size: { xs: 6 }, className: "content-center", children: X ? /* @__PURE__ */ e(
226
- A,
215
+ E,
227
216
  {
228
217
  sx: { ml: 1 },
229
218
  size: 30
230
219
  }
231
220
  ) : /* @__PURE__ */ e(
232
- j,
221
+ D,
233
222
  {
234
223
  variant: "filled",
235
224
  className: `text-left ${c["fiat-picker"]}`,
@@ -247,7 +236,7 @@ const Ct = ({
247
236
  fontSize: "21px",
248
237
  fontWeight: "bold",
249
238
  color: "#16359d",
250
- padding: "27px 12px 10px !important"
239
+ padding: "28px 12px 23px !important"
251
240
  },
252
241
  ".dropdown-list-item, span": {
253
242
  position: "relative",
@@ -262,8 +251,8 @@ const Ct = ({
262
251
  displayEmpty: !0,
263
252
  onChange: (t) => ee(t.target.value),
264
253
  error: ie,
265
- children: W.map((t) => /* @__PURE__ */ o(Z, { value: t.id, children: [
266
- /* @__PURE__ */ e(Re, { className: c["dropdown-list-item"], children: /* @__PURE__ */ e(
254
+ children: B.map((t) => /* @__PURE__ */ a(Z, { value: t.id, children: [
255
+ /* @__PURE__ */ e(Pe, { className: c["dropdown-list-item"], children: /* @__PURE__ */ e(
267
256
  "img",
268
257
  {
269
258
  src: t.icon_uri,
@@ -281,22 +270,24 @@ const Ct = ({
281
270
  )
282
271
  }
283
272
  ) }),
284
- xe && /* @__PURE__ */ e(l, { variant: "caption", sx: { color: "red" }, children: /* @__PURE__ */ e("strong", { children: xe }) })
273
+ xe && /* @__PURE__ */ e(s, { variant: "caption", sx: { color: "red" }, children: /* @__PURE__ */ e("strong", { children: xe }) })
285
274
  ] }),
286
- /* @__PURE__ */ o(b, { className: "text-left", mt: 3, children: [
287
- /* @__PURE__ */ e(l, { variant: "sm", fontWeight: 600, children: "Select Payment Method" }),
288
- X ? /* @__PURE__ */ e(A, { sx: { ml: 1, mt: 3 }, size: 50 }) : /* @__PURE__ */ e(i, { mt: 0.5, container: !0, children: G.map((t) => /* @__PURE__ */ e(i, { size: { xs: 2.5 }, children: /* @__PURE__ */ e(
289
- Ve,
275
+ /* @__PURE__ */ a(F, { className: "text-left", mt: 3, children: [
276
+ /* @__PURE__ */ e(s, { variant: "sm", fontWeight: 600, children: "Select Payment Method" }),
277
+ X ? /* @__PURE__ */ e(E, { sx: { ml: 1, mt: 3 }, size: 50 }) : /* @__PURE__ */ e(i, { mt: 0.5, container: !0, children: V.map((t) => /* @__PURE__ */ e(i, { size: { xs: 2.5 }, children: /* @__PURE__ */ e(
278
+ _t,
290
279
  {
291
280
  label: t.payment_type,
292
- value: t.id
281
+ value: t.id,
282
+ paymentId: p,
283
+ setPaymentId: w
293
284
  }
294
285
  ) }, t.id)) })
295
286
  ] }),
296
- /* @__PURE__ */ e(i, { mt: 4, container: !0, children: /* @__PURE__ */ e(i, { size: { xs: 4 }, children: /* @__PURE__ */ e(l, { className: c.label, variant: "caption", component: "p", children: "You Receive" }) }) }),
297
- /* @__PURE__ */ o(i, { mt: 0.5, container: !0, children: [
298
- /* @__PURE__ */ e(i, { size: { xs: 6 }, children: /* @__PURE__ */ o(
299
- j,
287
+ /* @__PURE__ */ e(i, { mt: 4, container: !0, children: /* @__PURE__ */ e(i, { size: { xs: 4 }, children: /* @__PURE__ */ e(s, { className: c.label, variant: "caption", component: "p", children: "You Receive" }) }) }),
288
+ /* @__PURE__ */ a(i, { mt: 0.5, container: !0, className: c["field-set"], children: [
289
+ /* @__PURE__ */ e(i, { size: { xs: 6 }, children: /* @__PURE__ */ a(
290
+ D,
300
291
  {
301
292
  className: `${c.amount} ${c["fiat-field"]}`,
302
293
  fullWidth: !0,
@@ -305,31 +296,31 @@ const Ct = ({
305
296
  Q,
306
297
  {
307
298
  disableUnderline: !0,
308
- value: T && parseFloat((+T * 1).toFixed(5)),
299
+ value: W && parseFloat((+W * 1).toFixed(5)),
309
300
  type: "text",
310
301
  readOnly: !0,
311
302
  fullWidth: !0
312
303
  }
313
304
  ),
314
- /* @__PURE__ */ e(Pe, { className: c["amount-symbol"], children: +((be = h == null ? void 0 : h.output_token) == null ? void 0 : be.fiat_amount) * 1 > 0 ? C + (+((ve = h == null ? void 0 : h.output_token) == null ? void 0 : ve.fiat_amount) * 1).toFixed(2) : /* @__PURE__ */ e(R, { children: " " }) })
305
+ /* @__PURE__ */ e(Re, { className: c["amount-symbol"], children: +((be = h == null ? void 0 : h.output_token) == null ? void 0 : be.fiat_amount) * 1 > 0 ? v + (+((ve = h == null ? void 0 : h.output_token) == null ? void 0 : ve.fiat_amount) * 1).toFixed(2) : /* @__PURE__ */ e(P, { children: " " }) })
315
306
  ]
316
307
  }
317
308
  ) }),
318
- /* @__PURE__ */ e(i, { size: { xs: 6 }, className: "content-center", children: f ? /* @__PURE__ */ e(A, { sx: { ml: 1 }, size: 30 }) : /* @__PURE__ */ o(
319
- j,
309
+ /* @__PURE__ */ e(i, { size: { xs: 6 }, className: "content-center", children: f ? /* @__PURE__ */ e(E, { sx: { ml: 1 }, size: 30 }) : /* @__PURE__ */ a(
310
+ D,
320
311
  {
321
312
  variant: "filled",
322
313
  className: `text-left ${c["crypto-picker"]}`,
323
314
  fullWidth: !0,
324
315
  children: [
325
- (s == null ? void 0 : s.network) && /* @__PURE__ */ e(
316
+ (o == null ? void 0 : o.network) && /* @__PURE__ */ e(
326
317
  Se,
327
318
  {
328
- className: `${c["network-label"]} ${c[dt(s == null ? void 0 : s.network.name)]}`,
329
- children: s == null ? void 0 : s.network.name
319
+ className: `${c["network-label"]} ${c[ot(o == null ? void 0 : o.network.name)]}`,
320
+ children: o == null ? void 0 : o.network.name
330
321
  }
331
322
  ),
332
- /* @__PURE__ */ o(
323
+ /* @__PURE__ */ a(
333
324
  ae,
334
325
  {
335
326
  input: /* @__PURE__ */ e(Q, { disableUnderline: !0 }),
@@ -342,7 +333,7 @@ const Ct = ({
342
333
  fontSize: "21px",
343
334
  fontWeight: "bold",
344
335
  color: "#16359d",
345
- padding: "27px 12px 10px !important"
336
+ padding: "28px 12px 23px !important"
346
337
  },
347
338
  ".dropdown-list-item, span": {
348
339
  position: "relative",
@@ -354,7 +345,7 @@ const Ct = ({
354
345
  },
355
346
  className: "buy-select-dd",
356
347
  variant: "filled",
357
- value: s.symbol,
348
+ value: o.symbol,
358
349
  displayEmpty: !0,
359
350
  onChange: (t) => Ne(t.target.value),
360
351
  onOpen: (t) => {
@@ -364,8 +355,8 @@ const Ct = ({
364
355
  open: !1,
365
356
  children: [
366
357
  /* @__PURE__ */ e(Z, { value: "", children: "Please select" }),
367
- L.map((t) => /* @__PURE__ */ o(Z, { value: t.symbol, children: [
368
- /* @__PURE__ */ e(Re, { className: c["dropdown-list-item"], children: /* @__PURE__ */ e(
358
+ Y.map((t) => /* @__PURE__ */ a(Z, { value: t.symbol, children: [
359
+ /* @__PURE__ */ e(Pe, { className: c["dropdown-list-item"], children: /* @__PURE__ */ e(
369
360
  "img",
370
361
  {
371
362
  src: t.icon_uri,
@@ -386,18 +377,18 @@ const Ct = ({
386
377
  }
387
378
  ) })
388
379
  ] }),
389
- /* @__PURE__ */ e(b, { mt: 3, sx: { color: "#1A202C" }, children: /* @__PURE__ */ o(i, { container: !0, children: [
390
- /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 12 }, children: /* @__PURE__ */ o(
380
+ /* @__PURE__ */ e(F, { mt: 3, sx: { color: "#1A202C" }, children: /* @__PURE__ */ a(i, { container: !0, children: [
381
+ /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 12 }, children: /* @__PURE__ */ a(
391
382
  ze,
392
383
  {
393
384
  sx: { padding: "0" },
394
- onClick: () => Be((t) => !t),
385
+ onClick: () => Te((t) => !t),
395
386
  disableFocusRipple: !0,
396
387
  disableRipple: !0,
397
388
  children: [
398
- /* @__PURE__ */ e(l, { variant: "caption", fontWeight: 500, children: "Fee Calculation" }),
389
+ /* @__PURE__ */ e(s, { variant: "caption", fontWeight: 700, children: "Fee Calculation" }),
399
390
  /* @__PURE__ */ e(
400
- He,
391
+ Ve,
401
392
  {
402
393
  sx: {
403
394
  transform: `rotate(${fe ? "90" : "0"}deg)`,
@@ -408,17 +399,24 @@ const Ct = ({
408
399
  ]
409
400
  }
410
401
  ) }),
411
- fe && /* @__PURE__ */ o(R, { children: [
412
- /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(l, { variant: "caption", children: "Everest Fee" }) }),
413
- /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ o(l, { variant: "caption", children: [
414
- C,
415
- S ? /* @__PURE__ */ e(A, { size: 30, color: "primary" }) : me.toFixed(2)
402
+ fe && /* @__PURE__ */ a(P, { children: [
403
+ /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Everest Fee" }) }),
404
+ /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
405
+ v,
406
+ S ? /* @__PURE__ */ e(
407
+ E,
408
+ {
409
+ sx: { ml: 1 },
410
+ size: 15,
411
+ color: "primary"
412
+ }
413
+ ) : me.toFixed(2)
416
414
  ] }) }),
417
- /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(l, { variant: "caption", children: "Network Fee" }) }),
418
- /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ o(l, { variant: "caption", children: [
419
- C,
415
+ /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Network Fee" }) }),
416
+ /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
417
+ v,
420
418
  S ? /* @__PURE__ */ e(
421
- A,
419
+ E,
422
420
  {
423
421
  sx: { ml: 1 },
424
422
  size: 15,
@@ -427,23 +425,23 @@ const Ct = ({
427
425
  ) : de.toFixed(2)
428
426
  ] }) })
429
427
  ] }),
430
- /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(l, { variant: "caption", children: "Total Fees" }) }),
431
- /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ o(l, { variant: "caption", children: [
432
- C,
433
- S ? /* @__PURE__ */ e(A, { sx: { ml: 1 }, size: 15, color: "primary" }) : Number(We).toFixed(2)
428
+ /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Total Fees" }) }),
429
+ /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
430
+ v,
431
+ S ? /* @__PURE__ */ e(E, { sx: { ml: 1 }, size: 15, color: "primary" }) : Number(Be).toFixed(2)
434
432
  ] }) }),
435
- s && /* @__PURE__ */ o(R, { children: [
436
- /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ o(l, { variant: "caption", children: [
433
+ o && /* @__PURE__ */ a(P, { children: [
434
+ /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
437
435
  "1 ",
438
- s.symbol,
436
+ o.symbol,
439
437
  " ",
440
438
  /* @__PURE__ */ e(
441
- mt,
439
+ at,
442
440
  {
443
- title: Qe,
441
+ title: Je,
444
442
  placement: "right",
445
443
  children: /* @__PURE__ */ e(ze, { className: "info-fee-icon", children: /* @__PURE__ */ e(
446
- Xe,
444
+ He,
447
445
  {
448
446
  sx: {
449
447
  fontSize: "14px"
@@ -453,60 +451,60 @@ const Ct = ({
453
451
  }
454
452
  )
455
453
  ] }) }),
456
- /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ o(l, { variant: "caption", children: [
457
- C,
454
+ /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
455
+ v,
458
456
  S ? /* @__PURE__ */ e(
459
- A,
457
+ E,
460
458
  {
461
459
  sx: { ml: 1 },
462
460
  size: 15,
463
461
  color: "primary"
464
462
  }
465
- ) : Number(Te).toFixed(2)
463
+ ) : Number(We).toFixed(2)
466
464
  ] }) })
467
465
  ] })
468
466
  ] }) }),
469
- /* @__PURE__ */ e(b, { sx: { alignItems: "left", width: "100%" }, children: re ? /* @__PURE__ */ e(b, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(A, {}) }) : /* @__PURE__ */ e(R, { children: /* @__PURE__ */ o(j, { variant: "filled", fullWidth: !0, children: [
470
- !v && /* @__PURE__ */ e(Se, { children: "Select wallet address" }),
467
+ /* @__PURE__ */ e(F, { sx: { alignItems: "left", width: "100%" }, children: re ? /* @__PURE__ */ e(F, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(E, {}) }) : /* @__PURE__ */ e(P, { children: /* @__PURE__ */ a(D, { variant: "filled", fullWidth: !0, children: [
468
+ !b && /* @__PURE__ */ e(Se, { children: "Select wallet address" }),
471
469
  /* @__PURE__ */ e(
472
470
  ae,
473
471
  {
474
- value: v,
472
+ value: b,
475
473
  onChange: (t) => I && I(t.target.value),
476
474
  children: ne.map((t, r) => /* @__PURE__ */ e(Z, { value: t.address, children: t.name + "(" + t.address + ")" }, r))
477
475
  }
478
476
  )
479
477
  ] }) }) }),
480
- /* @__PURE__ */ e(b, { mt: 4, children: /* @__PURE__ */ e(
478
+ /* @__PURE__ */ e(F, { mt: 4, children: /* @__PURE__ */ e(
481
479
  ce,
482
480
  {
483
481
  onClick: De,
484
- disabled: ie || !T,
482
+ disabled: ie || !W,
485
483
  fullWidth: !0,
486
484
  children: /* @__PURE__ */ e("strong", { children: "Next" })
487
485
  }
488
486
  ) }),
489
487
  /* @__PURE__ */ e(
490
- vt,
488
+ xt,
491
489
  {
492
490
  open: Ke,
493
491
  setModal: ge,
494
492
  loader: f,
495
- tokenList: L,
493
+ tokenList: Y,
496
494
  tokenSelect: Ne
497
495
  }
498
496
  )
499
497
  ] });
500
- }, Et = ({
501
- setScreen: F,
498
+ }, Nt = ({
499
+ setScreen: A,
502
500
  partnerKey: x,
503
501
  orderData: M,
504
502
  dispatch: N,
505
503
  walletAddress: d
506
504
  }) => {
507
- const n = M.estimate[z], u = M.create.order_id, $ = M.loader, v = n.fiat_amount, I = Oe(n.fiat_currency), [s, O] = m(!1);
505
+ const n = M.estimate[z], u = M.create.order_id, L = M.loader, b = n.fiat_amount, I = Oe(n.fiat_currency), [o, O] = m(!1);
508
506
  g(() => {
509
- u && s && F(At);
507
+ u && o && A(bt);
510
508
  }, [u]), g(() => {
511
509
  p();
512
510
  }, []);
@@ -529,46 +527,46 @@ const Ct = ({
529
527
  );
530
528
  }, w = () => {
531
529
  N(
532
- st({
530
+ nt({
533
531
  apiKey: x,
534
532
  quoteId: n.quote_id,
535
533
  walletAddress: d
536
534
  })
537
535
  ), O(!0);
538
536
  };
539
- return /* @__PURE__ */ o(R, { children: [
537
+ return /* @__PURE__ */ a(P, { children: [
540
538
  /* @__PURE__ */ e(
541
- pt,
539
+ st,
542
540
  {
543
- onClickHandler: () => F(we),
541
+ onClickHandler: () => A(we),
544
542
  backBtnText: "Confirm Your Order"
545
543
  }
546
544
  ),
547
- /* @__PURE__ */ e(l, { mt: 2, variant: "sm", fontWeight: 600, children: "Using payment method" }),
548
- n.payment_type && /* @__PURE__ */ o(b, { mt: 2, className: c["confirm-payment"], children: [
545
+ /* @__PURE__ */ e(s, { mt: 2, variant: "sm", fontWeight: 600, children: "Using payment method" }),
546
+ n.payment_type && /* @__PURE__ */ a(F, { mt: 2, className: c["confirm-payment"], children: [
549
547
  /* @__PURE__ */ e(
550
548
  "img",
551
549
  {
552
- src: n.payment_type === Fe ? rt : it,
550
+ src: n.payment_type === Ae ? Qe : Ze,
553
551
  width: 100,
554
552
  alt: "payment"
555
553
  }
556
554
  ),
557
- /* @__PURE__ */ e(l, { variant: "caption", component: "span", children: /* @__PURE__ */ e("strong", { children: n.payment_type === Fe ? "Bank Account" : "Debit Card" }) })
555
+ /* @__PURE__ */ e(s, { variant: "caption", component: "span", children: /* @__PURE__ */ e("strong", { children: n.payment_type === Ae ? "Bank Account" : "Debit Card" }) })
558
556
  ] }),
559
- /* @__PURE__ */ e(l, { mt: 4, variant: "sm", fontWeight: 600, children: "To Wallet Address" }),
557
+ /* @__PURE__ */ e(s, { mt: 4, variant: "sm", fontWeight: 600, children: "To Wallet Address" }),
560
558
  /* @__PURE__ */ e(
561
- b,
559
+ F,
562
560
  {
563
561
  mt: 2,
564
562
  className: c["confirm-payment"],
565
563
  sx: { width: "100% !important" },
566
- children: /* @__PURE__ */ e(l, { variant: "caption", component: "p", children: /* @__PURE__ */ e("strong", { children: d }) })
564
+ children: /* @__PURE__ */ e(s, { variant: "caption", component: "p", children: /* @__PURE__ */ e("strong", { children: d }) })
567
565
  }
568
566
  ),
569
- /* @__PURE__ */ e(l, { mt: 3, variant: "sm", fontWeight: 600, component: "p", children: "Order Estimate Details" }),
570
- /* @__PURE__ */ e(b, { sx: { color: "#A6A6A6" }, children: /* @__PURE__ */ o(i, { container: !0, children: [
571
- /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ o(l, { variant: "caption", children: [
567
+ /* @__PURE__ */ e(s, { mt: 3, variant: "sm", fontWeight: 600, component: "p", children: "Order Estimate Details" }),
568
+ /* @__PURE__ */ e(F, { sx: { color: "#A6A6A6" }, children: /* @__PURE__ */ a(i, { container: !0, children: [
569
+ /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
572
570
  n.crypto_currency.toUpperCase(),
573
571
  " @",
574
572
  " ",
@@ -586,84 +584,84 @@ const Ct = ({
586
584
  children: n.network
587
585
  }
588
586
  ) }),
589
- /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ o(l, { variant: "caption", children: [
587
+ /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
590
588
  Number(n.crypto_out_amount).toFixed(5),
591
589
  " ",
592
590
  n.crypto_currency.toUpperCase()
593
591
  ] }) }),
594
- /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ o(l, { variant: "caption", children: [
595
- (Number(v) - Number(n.total_fee)).toFixed(2),
592
+ /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
593
+ (Number(b) - Number(n.total_fee)).toFixed(2),
596
594
  " ",
597
595
  n.fiat_currency
598
596
  ] }) }),
599
- /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(l, { variant: "caption", children: "Total Fees" }) }),
600
- /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ o(l, { variant: "caption", children: [
597
+ /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Total Fees" }) }),
598
+ /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
601
599
  Number(n.total_fee).toFixed(2),
602
600
  " ",
603
601
  n.fiat_currency
604
602
  ] }) }),
605
- /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(l, { variant: "caption", children: /* @__PURE__ */ e("strong", { children: "Order Total" }) }) }),
606
- /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ e(l, { variant: "caption", children: /* @__PURE__ */ o("strong", { children: [
603
+ /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: /* @__PURE__ */ e("strong", { children: "Order Total" }) }) }),
604
+ /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: /* @__PURE__ */ a("strong", { children: [
607
605
  I,
608
- Number(v).toFixed(2),
606
+ Number(b).toFixed(2),
609
607
  " ",
610
608
  n.fiat_currency
611
609
  ] }) }) })
612
610
  ] }) }),
613
- /* @__PURE__ */ e(b, { mt: 4, children: /* @__PURE__ */ e(
611
+ /* @__PURE__ */ e(F, { mt: 4, children: /* @__PURE__ */ e(
614
612
  ce,
615
613
  {
616
614
  onClick: w,
617
- disabled: $,
615
+ disabled: L,
618
616
  fullWidth: !0,
619
- children: /* @__PURE__ */ e("strong", { children: $ ? /* @__PURE__ */ o(R, { children: [
620
- /* @__PURE__ */ e(A, { size: 15, color: "inherit" }),
617
+ children: /* @__PURE__ */ e("strong", { children: L ? /* @__PURE__ */ a(P, { children: [
618
+ /* @__PURE__ */ e(E, { size: 15, color: "inherit" }),
621
619
  " Processing..."
622
620
  ] }) : "Payment Details" })
623
621
  }
624
622
  ) })
625
623
  ] });
626
- }, we = "FORM_SCREEN", le = "CONFIRM_SCREEN", At = "PAYMENT_SCREEN", Ft = "MINIMAL_KYC_SCREEN", Mt = ({ partnerKey: F, baseUrl: x, checkoutSdkKey: M }) => {
627
- const { showAlertMessage: N } = xt(), d = ft(), n = D((f) => f.order), u = n.error, v = D(
624
+ }, we = "FORM_SCREEN", le = "CONFIRM_SCREEN", bt = "PAYMENT_SCREEN", vt = "MINIMAL_KYC_SCREEN", Ct = ({ partnerKey: A, baseUrl: x, checkoutSdkKey: M }) => {
625
+ const { showAlertMessage: N } = pt(), d = lt(), n = G((f) => f.order), u = n.error, b = G(
628
626
  (f) => f.user.profile
629
- ).everWalletAddress, I = D((f) => f.fiatAssets), s = D(
627
+ ).everWalletAddress, I = G((f) => f.fiatAssets), o = G(
630
628
  (f) => f.cryptoAssets
631
629
  ), [O, p] = m(we), [w, y] = m({
632
630
  symbol: ""
633
- }), [ee, G] = m(0), [te, H] = m(1), [ne, re] = m([]), [P, X] = m(v);
631
+ }), [ee, V] = m(0), [te, H] = m(1), [ne, re] = m([]), [R, X] = m(b);
634
632
  return g(() => {
635
633
  u && N({ message: u });
636
634
  }, [u]), g(() => {
637
- n.initMinimalKyc && (N({ message: u, type: "info" }), p(Ft));
638
- }, [n.initMinimalKyc]), g(() => (d(ut()), d(Me(se)), d(Me(oe)), d(yt()), () => {
639
- d(lt());
640
- }), []), /* @__PURE__ */ e(_t, { addPadding: !0, children: {
635
+ n.initMinimalKyc && (N({ message: u, type: "info" }), p(vt));
636
+ }, [n.initMinimalKyc]), g(() => (d(ct()), d(Me(se)), d(Me(oe)), d(dt()), () => {
637
+ d(rt());
638
+ }), []), /* @__PURE__ */ e(ft, { addPadding: !0, children: {
641
639
  FORM_SCREEN: /* @__PURE__ */ e(
642
- Ct,
640
+ gt,
643
641
  {
644
642
  showAlertMessage: N,
645
643
  setScreen: p,
646
644
  fiatAssets: I,
647
- cryptoAssets: s,
645
+ cryptoAssets: o,
648
646
  orderData: n,
649
647
  dispatch: d,
650
648
  getCryptoAssets: (f) => {
651
649
  d(
652
- ht({
650
+ mt({
653
651
  type: z,
654
652
  id: f,
655
- partnerKey: F,
656
- walletAddress: P
653
+ partnerKey: A,
654
+ walletAddress: R
657
655
  })
658
656
  );
659
657
  },
660
- partnerKey: F,
661
- walletAddress: P,
658
+ partnerKey: A,
659
+ walletAddress: R,
662
660
  setWalletAddress: X,
663
661
  outputToken: w,
664
662
  setOutputToken: y,
665
663
  paymentId: ee,
666
- setPaymentId: G,
664
+ setPaymentId: V,
667
665
  currencyId: te,
668
666
  setCurrencyId: H,
669
667
  paymentOptions: ne,
@@ -671,23 +669,23 @@ const Ct = ({
671
669
  }
672
670
  ),
673
671
  CONFIRM_SCREEN: /* @__PURE__ */ e(
674
- Et,
672
+ Nt,
675
673
  {
676
- partnerKey: F,
674
+ partnerKey: A,
677
675
  setScreen: p,
678
676
  showAlertMessage: N,
679
677
  orderData: n,
680
678
  dispatch: d,
681
- walletAddress: P
679
+ walletAddress: R
682
680
  }
683
681
  ),
684
682
  PAYMENT_SCREEN: /* @__PURE__ */ e(
685
- gt,
683
+ ut,
686
684
  {
687
685
  checkoutKey: M,
688
686
  orderData: n,
689
687
  initPaymentRequest: (f) => {
690
- const S = n.estimate[z], h = n.create.order_id, T = {
688
+ const S = n.estimate[z], h = n.create.order_id, W = {
691
689
  token: f,
692
690
  amount: Number(S.fiat_amount),
693
691
  currency: S.fiat_currency,
@@ -695,15 +693,15 @@ const Ct = ({
695
693
  success_url: `${x}/dashboard?payment=success`,
696
694
  fail_url: `${x}/dashboard?payment=failed`
697
695
  };
698
- d(ct(T));
696
+ d(it(W));
699
697
  },
700
698
  backBtnFunc: () => p(le)
701
699
  }
702
700
  ),
703
701
  MINIMAL_KYC_SCREEN: /* @__PURE__ */ e(
704
- Nt,
702
+ ht,
705
703
  {
706
- inputComponent: bt,
704
+ inputComponent: yt,
707
705
  buttonComponent: ce,
708
706
  onComplete: () => {
709
707
  p(le);
@@ -711,13 +709,13 @@ const Ct = ({
711
709
  }
712
710
  )
713
711
  }[O] });
714
- }, dn = Ge(Mt);
712
+ }, ln = Ge(Ct);
715
713
  export {
716
- Ct as B,
714
+ gt as B,
717
715
  le as C,
718
716
  we as F,
719
- Ft as M,
720
- At as P,
721
- Et as a,
722
- dn as i
717
+ vt as M,
718
+ bt as P,
719
+ Nt as a,
720
+ ln as i
723
721
  };