everest-npm-features 0.0.18 → 0.0.19

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 (225) hide show
  1. package/dist/{Alert-BhBjKBJe.js → Alert-C1UNQHPD.js} +114 -115
  2. package/dist/{ArrowBack-BT4ZQvY3.js → ArrowBack-Clp4i3dA.js} +1 -1
  3. package/dist/{ArrowDropDown-CzeT8wh0.js → ArrowDropDown-CoJNyIet.js} +1 -1
  4. package/dist/{ArrowRight-CZV_yDgu.js → ArrowRight-DXtbS-1g.js} +1 -1
  5. package/dist/{Backdrop-Cwqacwk8.js → Backdrop-DD6Ysl5O.js} +6 -6
  6. package/dist/{Box-rIIGCyb6.js → Box-Be0E_-eR.js} +4 -4
  7. package/dist/{Button-Csuq67Py.js → Button-DCBtFwk3.js} +4 -4
  8. package/dist/{ButtonBase-DC2O2INs.js → ButtonBase-CE33gcZ6.js} +5 -5
  9. package/dist/{Cancel-Ch0B8nr4.js → Cancel-DEk2meuc.js} +1 -1
  10. package/dist/{CardContent-KUuSGQyI.js → CardContent-B5tGyfc5.js} +3 -3
  11. package/dist/{CheckCircle-BiltyzEJ.js → CheckCircle-BIckgNlV.js} +1 -1
  12. package/dist/{CircularProgress-CBhr9Pli.js → CircularProgress-fePUtoaj.js} +3 -3
  13. package/dist/Close-Bj6AaxRi.js +9 -0
  14. package/dist/{Close-Dv525LOL.js → Close-D20PIPiF.js} +1 -1
  15. package/dist/{Container-CBfJit1k.js → Container-CTfl6Vy4.js} +4 -4
  16. package/dist/{ContentCopy-DJHPK7G4.js → ContentCopy-DzhD9ue3.js} +1 -1
  17. package/dist/{DefaultPropsProvider-Dta6YfYA.js → DefaultPropsProvider-5cxFAZuq.js} +3 -3
  18. package/dist/{DefaultPropsProvider-C9ddiClG.js → DefaultPropsProvider-DOLtk4kZ.js} +1 -1
  19. package/dist/{Delete-D8ao9Ydc.js → Delete-BqqmGzYe.js} +1 -1
  20. package/dist/{DialogContent-BLqflo8C.js → DialogContent-D8jGp88c.js} +6 -6
  21. package/dist/{DialogTitle-DsyiXz12.js → DialogTitle-CxbjAJOw.js} +4 -4
  22. package/dist/{Divider-B0HAAjZ-.js → Divider-D3PIEE97.js} +3 -3
  23. package/dist/{ErrorOutline-BIlI9R1l.js → ErrorOutline-CnwdlXPx.js} +1 -1
  24. package/dist/{FileDownload-71XI8nQB.js → FileDownload-BX69Jvdx.js} +1 -1
  25. package/dist/{FilledInput-Bvhqpjsa.js → FilledInput-n9W_V8GV.js} +6 -5
  26. package/dist/{FormControl-uQi14shL.js → FormControl-Cc-02KHW.js} +2 -2
  27. package/dist/{FormControlLabel-CiZDlj3X.js → FormControlLabel-BEN9P8rJ.js} +7 -7
  28. package/dist/{GlobalStyles-yJPIbrEZ.js → GlobalStyles-O5U8h5ZQ.js} +2 -2
  29. package/dist/{Grid-C6plET3a.js → Grid-BaaKMDwM.js} +5 -5
  30. package/dist/{Grid2-DJW3x_WO.js → Grid2-DX2sucnU.js} +6 -6
  31. package/dist/{Grow-DcFPfGou.js → Grow-CC3Va50c.js} +6 -6
  32. package/dist/{IconButton-DRnoPKKH.js → IconButton-8B2ygvr4.js} +3 -3
  33. package/dist/{Info-DPMWjNcQ.js → Info-83BXSu73.js} +1 -1
  34. package/dist/{InputAdornment-BStVwy6a.js → InputAdornment-Ck_-Z38v.js} +3 -3
  35. package/dist/{Link-DeejAzmE.js → Link-BqusVoz5.js} +5 -5
  36. package/dist/{ListItemIcon-BO6nZHNq.js → ListItemIcon-DIz-ZmJ0.js} +4 -4
  37. package/dist/{MenuItem-BKHoKEhO.js → MenuItem-BkJ_C9Xs.js} +6 -6
  38. package/dist/{Modal-HocZM2zy.js → Modal-CQcBtr07.js} +8 -8
  39. package/dist/{Paper-DFrj5M9m.js → Paper-B5pcGZbI.js} +3 -3
  40. package/dist/{PlayArrow-BYMBg9J8.js → PlayArrow-1Y66tCVx.js} +1 -1
  41. package/dist/Popper-CYsd-3n5.js +1408 -0
  42. package/dist/{Portal-CIaLgwgF.js → Portal-Bw0-5YJ9.js} +3 -3
  43. package/dist/{RadioGroup-0FcLpiQv.js → RadioGroup-DtQqYrwU.js} +3 -3
  44. package/dist/{Select-BsqVGicz.js → Select-DpKw-a6h.js} +85 -82
  45. package/dist/{Slide-B08-4SSu.js → Slide-CdNJY-CT.js} +4 -4
  46. package/dist/{Stack-euVJ1SJW.js → Stack-C4POCZZb.js} +5 -5
  47. package/dist/{SwitchBase-uAFZgVI7.js → SwitchBase-B9rcpVZ0.js} +4 -4
  48. package/dist/{TextField-BtFFWrf2.js → TextField-Cm9apaOp.js} +7 -7
  49. package/dist/{Transition-BZNWAtwm.js → Transition-CYSgg85A.js} +1 -1
  50. package/dist/{Typography-DiFeMX5p.js → Typography-Ds4fpvK8.js} +3 -3
  51. package/dist/assets/withThemeProvider.css +1 -1
  52. package/dist/{auth-RJ36qeYb.js → auth-CjrjTwt5.js} +1 -1
  53. package/dist/{bank-Dml7vXW5.js → bank-D3I5wL2-.js} +1 -1
  54. package/dist/components/RocketRamp/MinimalKyc/form.js +9 -9
  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 +6 -6
  60. package/dist/components/RocketRamp/Player/Dashboard/balance.js +7 -7
  61. package/dist/components/RocketRamp/Player/Dashboard/index.js +4 -4
  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 +7 -7
  66. package/dist/components/RocketRamp/Player/SignIn/index.js +5 -5
  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 +6 -6
  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 +5 -5
  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 +6 -6
  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 +4 -4
  89. package/dist/components/Shared/FullKyc/index.d.ts +8 -0
  90. package/dist/components/Shared/FullKyc/index.js +17 -0
  91. package/dist/components/Shared/FullKyc/pep.d.ts +4 -0
  92. package/dist/components/Shared/FullKyc/pep.js +17 -0
  93. package/dist/components/Shared/FullKyc/personalDetails.d.ts +4 -0
  94. package/dist/components/Shared/FullKyc/personalDetails.js +29 -0
  95. package/dist/components/Shared/FullKyc/types.d.ts +65 -0
  96. package/dist/components/Shared/FullKyc/types.js +1 -0
  97. package/dist/components/Shared/FullKyc/userInfo.d.ts +4 -0
  98. package/dist/components/Shared/FullKyc/userInfo.js +35 -0
  99. package/dist/components/Shared/HistoryItem/index.js +7 -7
  100. package/dist/components/Shared/Incode/index.d.ts +15 -0
  101. package/dist/components/Shared/Incode/index.js +125 -0
  102. package/dist/components/Shared/MinimalKyc/index.js +8 -8
  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 +16 -16
  108. package/dist/components/Wallet/Account/index.js +17 -17
  109. package/dist/components/Wallet/Account/sendIban.js +19 -19
  110. package/dist/components/Wallet/Buy/confirmTransaction.js +7 -7
  111. package/dist/components/Wallet/Buy/form.js +17 -17
  112. package/dist/components/Wallet/Buy/index.js +6 -6
  113. package/dist/components/Wallet/Deposit/index.js +7 -7
  114. package/dist/components/Wallet/EnterpriseKyc/edd.js +7 -7
  115. package/dist/components/Wallet/EnterpriseKyc/index.d.ts +3 -2
  116. package/dist/components/Wallet/EnterpriseKyc/index.js +119 -104
  117. package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +5 -5
  118. package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +3 -3
  119. package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +2 -2
  120. package/dist/components/Wallet/EnterpriseKyc/kycType.js +5 -5
  121. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +8 -8
  122. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +7 -7
  123. package/dist/components/Wallet/EnterpriseKyc/success.js +3 -3
  124. package/dist/components/Wallet/EnterpriseKyc/types.d.ts +6 -0
  125. package/dist/components/Wallet/EnterpriseKyc/verify.js +5 -5
  126. package/dist/components/Wallet/History/index.js +12 -12
  127. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +14 -14
  128. package/dist/components/Wallet/Portfolio/index.js +15 -15
  129. package/dist/components/Wallet/Portfolio/tokenRow.js +6 -6
  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 +9 -9
  133. package/dist/components/Wallet/Sell/confirmTransaction.js +7 -7
  134. package/dist/components/Wallet/Sell/form.js +17 -17
  135. package/dist/components/Wallet/Sell/index.js +6 -6
  136. package/dist/components/Wallet/Send/index.js +14 -14
  137. package/dist/components/Wallet/Shared/Auth/emailForm.js +3 -3
  138. package/dist/components/Wallet/Shared/Auth/otpForm.js +9 -9
  139. package/dist/components/Wallet/Shared/CardPayment/index.js +4 -4
  140. package/dist/components/Wallet/Shared/ConnectWallet/index.js +9 -9
  141. package/dist/components/Wallet/Shared/Container/index.js +3 -3
  142. package/dist/components/Wallet/Shared/Input/index.js +1 -1
  143. package/dist/components/Wallet/Shared/Keyboard/keyboard.js +3 -3
  144. package/dist/components/Wallet/Shared/TokenModal/index.d.ts +2 -1
  145. package/dist/components/Wallet/Shared/TokenModal/index.js +39 -38
  146. package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +4 -4
  147. package/dist/components/Wallet/Shared/addBank.js +11 -11
  148. package/dist/components/Wallet/Shared/appButton.js +5 -5
  149. package/dist/components/Wallet/Shared/backBtn.js +2 -2
  150. package/dist/components/Wallet/Shared/button.js +1 -1
  151. package/dist/components/Wallet/Shared/connectPlaidBank.js +5 -5
  152. package/dist/components/Wallet/Shared/inputField.js +1 -1
  153. package/dist/components/Wallet/Shared/noData.js +2 -2
  154. package/dist/components/Wallet/Shared/pin.js +3 -3
  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 +10 -10
  163. package/dist/components/Wallet/Swap/index.js +168 -163
  164. package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -3
  165. package/dist/components/Wallet/Withdraw/bankSelect.js +10 -10
  166. package/dist/components/Wallet/Withdraw/confirmTransaction.js +7 -7
  167. package/dist/components/Wallet/Withdraw/form.js +16 -16
  168. package/dist/components/Wallet/Withdraw/index.js +5 -5
  169. package/dist/{constants-QcvnheTz.js → constants-CdVZO8DH.js} +138 -136
  170. package/dist/{createSvgIcon-i5pI36SR.js → createSvgIcon-C0wzKL72.js} +2 -2
  171. package/dist/{createTheme-CKy7OHWe.js → createTheme-D_EHVLXp.js} +3 -3
  172. package/dist/{cryptoAssets-DBfxll21.js → cryptoAssets-awZZ9HTs.js} +1 -1
  173. package/dist/defaultTheme-CGLnLLk_.js +5 -0
  174. package/dist/{dividerClasses-DSno_h-b.js → dividerClasses-Cb_Is0-O.js} +2 -2
  175. package/dist/{documents-Bd28UFLu.js → documents-DvNPkuYe.js} +16 -16
  176. package/dist/{elementTypeAcceptingRef-BM55iE9I.js → elementTypeAcceptingRef-Bc1kRXA9.js} +1 -1
  177. package/dist/{emotion-react.browser.esm-DhKKo7i2.js → emotion-react.browser.esm-BjxI_t8k.js} +1 -1
  178. package/dist/{extendSxProp-CGbvrkKd.js → extendSxProp-a8ZTL0ZI.js} +1 -1
  179. package/dist/{fiatAssets-w5Lh-MSu.js → fiatAssets-yeCL6wA9.js} +1 -1
  180. package/dist/hoc/withThemeProvider.js +5 -5
  181. package/dist/hooks/useDialog/index.js +4 -4
  182. package/dist/hooks/useRrDialog/index.js +4 -4
  183. package/dist/hooks/useSnackBar.js +16 -16
  184. package/dist/{iban-CKaN4sIM.js → iban-DC_VgH01.js} +15 -15
  185. package/dist/icons/buyIcon.js +1 -1
  186. package/dist/icons/canceledBuyIcon.js +1 -1
  187. package/dist/icons/canceledRedeemIcon.js +1 -1
  188. package/dist/icons/failedBuyIcon.js +1 -1
  189. package/dist/icons/failedRedeemIcon.js +1 -1
  190. package/dist/icons/pendingBuyIcon.js +1 -1
  191. package/dist/icons/pendingRedeemIcon.js +1 -1
  192. package/dist/icons/redeemIcon.js +1 -1
  193. package/dist/{index-BNaxzTKI.js → index-86Hyynn-.js} +18 -18
  194. package/dist/{index-DSHZv8ZQ.js → index-CFWL7CoB.js} +21 -21
  195. package/dist/{index-BvftsxV1.js → index-CmBjDnIf.js} +67 -67
  196. package/dist/{index-BnKMvdnf.js → index-CtkDfW5M.js} +1 -1
  197. package/dist/{index-BEdISdN-.js → index-DO2BVre7.js} +302 -310
  198. package/dist/{index-Do_fdEkW.js → index-DlZLKtdr.js} +5 -5
  199. package/dist/index-Dx7-MJk2.js +477 -0
  200. package/dist/{index-_KAhqkWc.js → index-SbY3kKNL.js} +19 -19
  201. package/dist/kyc-Dur3dRxq.js +26 -0
  202. package/dist/main.d.ts +1 -0
  203. package/dist/main.js +38 -36
  204. package/dist/{order-6L4LZOBs.js → order-DNSedxgT.js} +1 -1
  205. package/dist/pep-BsWvrgyM.js +2600 -0
  206. package/dist/{radioButton-CFylJSI6.js → radioButton-CdYLf2fc.js} +7 -7
  207. package/dist/{resolveComponentProps-BION1Ldt.js → resolveComponentProps-CPnCrKvI.js} +1 -1
  208. package/dist/{stake-r4KUlRcz.js → stake-DaOB24Ou.js} +1 -1
  209. package/dist/styled-CyBKg0N-.js +5 -0
  210. package/dist/{tokenRow-D_FBu18C.js → tokenRow-QlGBYRKR.js} +5 -5
  211. package/dist/tooltip-CwdohO6q.js +715 -0
  212. package/dist/{useSlot-BofjcjWw.js → useSlot-BdP6R4tz.js} +1 -1
  213. package/dist/useTheme-BFI_g9FY.js +9 -0
  214. package/dist/{useTheme-g-gCeEAB.js → useTheme-BzIjfC6u.js} +3 -3
  215. package/dist/{useThemeProps-DIcjToML.js → useThemeProps-BOrAzOS4.js} +4 -4
  216. package/dist/{useThemeWithoutDefault-DaojF4V7.js → useThemeWithoutDefault-BWt80cCE.js} +1 -1
  217. package/dist/{useTimeout-BK0fBak5.js → useTimeout-_ag1gI7y.js} +1 -1
  218. package/dist/{utils-B-L_WHmI.js → utils-B-vKE_Dv.js} +1 -1
  219. package/dist/{wallet-D7MEPP5y.js → wallet-D76D_QSY.js} +1 -1
  220. package/package.json +2 -2
  221. package/dist/defaultTheme-Da-3ABGu.js +0 -5
  222. package/dist/kyc-V7cIa71M.js +0 -19
  223. package/dist/styled-uZIQpYgB.js +0 -5
  224. package/dist/tooltip-BVZ66d8C.js +0 -2111
  225. package/dist/useTheme-lpadr-l2.js +0 -9
@@ -1,240 +1,234 @@
1
- import { jsxs as a, Fragment as S, jsx as e } from "react/jsx-runtime";
2
- import { useState as c, useEffect as _ } from "react";
3
- import He from "./hoc/withThemeProvider.js";
4
- import { P as Xe } from "./PlayArrow-BYMBg9J8.js";
5
- import { I as Je } from "./Info-DPMWjNcQ.js";
6
- import { G as Ce } from "./generic-token-B_ptO5yb.js";
7
- import { PAYMENT_PROVIDER_PAYSAFE as Qe, ID_TOKEN_SYMBOL as Ee, FIAT_TO_EVER_ID as te, FIAT_TO_TOKEN as ne, ESTIMATE_TOOLTIP_TEXT as Ze, VISA_PAYMENT as et, VISA_PAYMENT_ACTIVE as tt, SEPA_PAYMENT as nt, SEPA_PAYMENT_ACTIVE as rt, PAYMENT_BANK as Ae, SEPA_ICON as it, VISA_ICON as ot } from "./util/constants.js";
8
- import { a7 as at } from "./constants-QcvnheTz.js";
9
- import { u as st } from "./index-f15o1nhn.js";
10
- import { a as lt, b as Se, c as ct, f as Ie, o as mt, g as dt } from "./order-6L4LZOBs.js";
11
- import { M as ut } from "./tooltip-BVZ66d8C.js";
12
- import { getCurrencySymbol as Pe, getNetworkBackGround as pt } from "./util/functions.js";
13
- import ie from "./components/Wallet/Shared/appButton.js";
14
- import ft from "./components/Wallet/Shared/backBtn.js";
1
+ import { jsxs as a, Fragment as P, jsx as e } from "react/jsx-runtime";
2
+ import { useState as c, useEffect as x } from "react";
3
+ import De from "./hoc/withThemeProvider.js";
4
+ import { P as Ge } from "./PlayArrow-1Y66tCVx.js";
5
+ import { I as He } from "./Info-83BXSu73.js";
6
+ import { G as be } from "./generic-token-B_ptO5yb.js";
7
+ import { PAYMENT_PROVIDER_PAYSAFE as Xe, ID_TOKEN_SYMBOL as ve, FIAT_TO_EVER_ID as ee, FIAT_TO_TOKEN as te, ESTIMATE_TOOLTIP_TEXT as Je, VISA_PAYMENT as Qe, VISA_PAYMENT_ACTIVE as Ze, SEPA_PAYMENT as et, SEPA_PAYMENT_ACTIVE as tt, PAYMENT_BANK as Ce, SEPA_ICON as nt, VISA_ICON as rt } from "./util/constants.js";
8
+ import { a9 as it } from "./constants-CdVZO8DH.js";
9
+ import { u as ot } from "./index-f15o1nhn.js";
10
+ import { a as at, b as Te, c as st, f as Ee, o as lt, g as ct } from "./order-DNSedxgT.js";
11
+ import { M as mt } from "./tooltip-CwdohO6q.js";
12
+ import { getCurrencySymbol as ke, getNetworkBackGround as dt } from "./util/functions.js";
13
+ import re from "./components/Wallet/Shared/appButton.js";
14
+ import ut from "./components/Wallet/Shared/backBtn.js";
15
15
  import { s as m } from "./styles.module-BFHktEw2.js";
16
- import { T as s } from "./Typography-DiFeMX5p.js";
17
- import { B as b } from "./Box-rIIGCyb6.js";
18
- import { G as i } from "./Grid2-DJW3x_WO.js";
19
- import { C as A } from "./CircularProgress-CBhr9Pli.js";
20
- import { u as U, a as ht } from "./react-redux-C7I9-1M6.js";
21
- import { f as yt } from "./fiatAssets-w5Lh-MSu.js";
22
- import { f as _t } from "./cryptoAssets-DBfxll21.js";
23
- import { u as xt } from "./wallet-D7MEPP5y.js";
24
- import { useSnackBarContext as gt } from "./context/snackBarContext.js";
25
- import { AuthContainer as Nt } from "./components/Wallet/Shared/Container/index.js";
26
- import bt from "./components/Wallet/Shared/CardPayment/index.js";
27
- import vt from "./components/Shared/MinimalKyc/index.js";
28
- import Ct from "./components/Wallet/Shared/Input/index.js";
29
- import Et from "./components/Wallet/Shared/TokenModal/index.js";
30
- import { F as K } from "./FormControl-uQi14shL.js";
31
- import { F as H } from "./FilledInput-Bvhqpjsa.js";
32
- import { F as Fe, I as Me } from "./TextField-BtFFWrf2.js";
33
- import { S as ee } from "./Select-BsqVGicz.js";
34
- import { M as X } from "./MenuItem-BKHoKEhO.js";
35
- import { L as Te } from "./ListItemIcon-BO6nZHNq.js";
36
- import { I as ke } from "./IconButton-DRnoPKKH.js";
37
- const At = ({
38
- setScreen: I,
16
+ import { T as s } from "./Typography-Ds4fpvK8.js";
17
+ import { B as b } from "./Box-Be0E_-eR.js";
18
+ import { G as i } from "./Grid2-DX2sucnU.js";
19
+ import { C as I } from "./CircularProgress-fePUtoaj.js";
20
+ import { u as D, a as pt } from "./react-redux-C7I9-1M6.js";
21
+ import { f as ft } from "./fiatAssets-yeCL6wA9.js";
22
+ import { f as ht } from "./cryptoAssets-awZZ9HTs.js";
23
+ import { u as yt } from "./wallet-D76D_QSY.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-Cc-02KHW.js";
31
+ import { F as X } from "./FilledInput-n9W_V8GV.js";
32
+ import { F as Ae, I as Ie } from "./TextField-Cm9apaOp.js";
33
+ import { S as Z } from "./Select-DpKw-a6h.js";
34
+ import { M as J } from "./MenuItem-BkJ_C9Xs.js";
35
+ import { L as Fe } from "./ListItemIcon-DIz-ZmJ0.js";
36
+ import { I as Me } from "./IconButton-8B2ygvr4.js";
37
+ const Ct = ({
38
+ setScreen: F,
39
39
  orderData: h,
40
- dispatch: F,
41
- fiatAssets: x,
40
+ dispatch: M,
41
+ fiatAssets: _,
42
42
  cryptoAssets: d,
43
- getCryptoAssets: r,
44
- showAlertMessage: f,
45
- partnerKey: P,
43
+ getCryptoAssets: n,
44
+ showAlertMessage: p,
45
+ partnerKey: Y,
46
46
  walletAddress: v,
47
- setWalletAddress: R
47
+ setWalletAddress: S
48
48
  }) => {
49
- var Ne, be;
50
- const g = U(st), M = g.data, { error: V, message: J, loader: oe } = g, u = x.fiats, Y = x.loader, T = d.featureTokens.buy.list, z = d.featureTokens.buy.default, ae = d.loader, j = h.loader, p = h.estimate, D = p.crypto_out_amount, ze = p.conversion_price, Oe = p.total_fee;
51
- let se = 0, le = 0;
52
- const ce = p.fee_breakdown;
53
- for (let t = 0; t < ce.length; t++) {
54
- const n = ce[t];
55
- n.name === "ev_fee" ? se = Number(n.value) : n.name === "network_fee" && (le = Number(n.value));
49
+ var _e, ge;
50
+ const R = D(ot), $ = R.data, { loader: C } = R, g = _.fiats, G = _.loader, L = d.featureTokens.buy.list, q = d.featureTokens.buy.default, u = d.loader, T = h.loader, f = h.estimate, z = f.crypto_out_amount, Se = f.conversion_price, Re = f.total_fee;
51
+ let ie = 0, oe = 0;
52
+ const ae = f.fee_breakdown;
53
+ for (let t = 0; t < ae.length; t++) {
54
+ const r = ae[t];
55
+ r.name === "ev_fee" ? ie = Number(r.value) : r.name === "network_fee" && (oe = Number(r.value));
56
56
  }
57
- const [l, Q] = c({
57
+ const [l, se] = c({
58
58
  symbol: ""
59
- }), [Z, $] = c(!1), [k, me] = c(0), [N, we] = c(1), [de, Be] = c([]), [O, We] = c([]), [ue, Ye] = c(!1), [pe, $e] = c(50), [fe, Le] = c(3e3), [L, qe] = c(50), [he, Ke] = c(3e3), [ye, q] = c(""), [w, _e] = c(
60
- p.fiat_amount || L.toString()
61
- ), [Ue, xe] = c(!1), B = u.find((t) => t.id === N), C = Pe(B == null ? void 0 : B.symbol);
62
- _(() => {
59
+ }), [Q, K] = c(!1), [k, le] = c(0), [N, ze] = c(1), [ce, Oe] = c([]), [O, we] = c([]), [me, We] = c(!1), [de, Be] = c(50), [ue, Ye] = c(3e3), [U, $e] = c(50), [pe, Le] = c(3e3), [fe, V] = c(""), [w, he] = c(
60
+ f.fiat_amount || U.toString()
61
+ ), [qe, ye] = c(!1), W = g.find((t) => t.id === N), E = ke(W == null ? void 0 : W.symbol);
62
+ x(() => {
63
63
  const t = [];
64
- for (let n = 0; n < u.length; n++) {
65
- const o = {}, y = u[n];
64
+ for (let r = 0; r < g.length; r++) {
65
+ const o = {}, y = g[r];
66
66
  o.id = y.id, o.name = y.name, o.icon_uri = y.icon_uri, o.symbol = y.symbol, o.payment_options = [];
67
- const E = y.payment_options;
68
- for (let W = 0; W < E.length; W++) {
69
- const ve = {}, G = E[W];
70
- G.payment_provider !== Qe && G.active && G.payin_allowed && (Object.assign(ve, G), o.payment_options.push(ve));
67
+ const A = y.payment_options;
68
+ for (let B = 0; B < A.length; B++) {
69
+ const Ne = {}, H = A[B];
70
+ H.payment_provider !== Xe && H.active && H.payin_allowed && (Object.assign(Ne, H), o.payment_options.push(Ne));
71
71
  }
72
72
  o.payment_options.length > 0 && t.push(o);
73
73
  }
74
- We(t);
75
- }, [u]), _(() => {
74
+ we(t);
75
+ }, [g]), x(() => {
76
76
  if (!N || O.length === 0)
77
77
  return;
78
78
  const t = [];
79
- for (let n = 0; n < O.length; n++) {
80
- if (O[n].id === N) {
81
- const o = O[n].payment_options;
79
+ for (let r = 0; r < O.length; r++) {
80
+ if (O[r].id === N) {
81
+ const o = O[r].payment_options;
82
82
  let y = !1;
83
- for (let E = 0; E < o.length; E++) {
84
- const W = o[E];
85
- W.active && (t.push(W), o[E].id === k && (y = !0));
83
+ for (let A = 0; A < o.length; A++) {
84
+ const B = o[A];
85
+ B.active && (t.push(B), o[A].id === k && (y = !0));
86
86
  }
87
- y || me(t[0].id);
87
+ y || le(t[0].id);
88
88
  }
89
- Be(t);
89
+ Oe(t);
90
90
  }
91
- }, [N, O]), _(() => {
92
- if (p.crypto_currency) {
93
- const t = T.find(
94
- (n) => n.symbol === p.crypto_currency
95
- );
96
- Q(t);
97
- } else
98
- z && z.id && Q(z);
99
- }, [z, p.crypto_currency]), _(() => {
100
- N && r && r(N);
101
- }, [N, v]), _(() => {
91
+ }, [N, O]), x(() => {
92
+ q && q.id && se(q);
93
+ }, [q]), x(() => {
94
+ N && n && n(N);
95
+ }, [N, v]), x(() => {
102
96
  if (l && l.id && w && k && N) {
103
- F(lt()), $(!1), q("");
97
+ M(at()), K(!1), V("");
104
98
  const t = setTimeout(() => {
105
- Ve();
99
+ Ke();
106
100
  }, 1e3);
107
101
  return () => clearTimeout(t);
108
102
  }
109
- }, [l, w, k, T, N]);
110
- const Ve = () => {
103
+ }, [l, w, k, L, N]);
104
+ const Ke = () => {
111
105
  var y;
112
106
  const t = parseFloat(w);
113
- if (l.symbol === Ee) {
114
- if (pe > t)
115
- return q(
116
- `Minimum value should be greater than ${C + pe}`
117
- ), $(!0), !1;
118
- if (fe * 1 < t)
119
- return q(
120
- `Maximum value should be less than ${C + fe}`
121
- ), $(!0), !1;
107
+ if (l.symbol === ve) {
108
+ if (de > t)
109
+ return V(
110
+ `Minimum value should be greater than ${E + de}`
111
+ ), K(!0), !1;
112
+ if (ue * 1 < t)
113
+ return V(
114
+ `Maximum value should be less than ${E + ue}`
115
+ ), K(!0), !1;
122
116
  } else {
123
- if (L * 1 > t)
124
- return q(
125
- `Minimum value should be greater than ${C + L}`
126
- ), $(!0), !1;
127
- if (he * 1 < t)
128
- return q(
129
- `Maximum value should be less than ${C + he}`
130
- ), $(!0), !1;
117
+ if (U * 1 > t)
118
+ return V(
119
+ `Minimum value should be greater than ${E + U}`
120
+ ), K(!0), !1;
121
+ if (pe * 1 < t)
122
+ return V(
123
+ `Maximum value should be less than ${E + pe}`
124
+ ), K(!0), !1;
131
125
  }
132
- const n = de.find((E) => E.id === k), o = n.payment_type;
133
- F(
134
- Se({
135
- apiKey: P,
136
- transaction_type: l.symbol === Ee ? te : ne,
126
+ const r = ce.find((A) => A.id === k), o = r.payment_type;
127
+ M(
128
+ Te({
129
+ apiKey: Y,
130
+ transaction_type: l.symbol === ve ? ee : te,
137
131
  coin_amount: w,
138
132
  exchange: l.exchange,
139
133
  payment_type: o,
140
- fiat_ccy: B == null ? void 0 : B.symbol,
134
+ fiat_ccy: W == null ? void 0 : W.symbol,
141
135
  crypto_ccy: l.symbol,
142
136
  network: (y = l.network) == null ? void 0 : y.name,
143
- payment_provider: n.payment_provider
137
+ payment_provider: r.payment_provider
144
138
  })
145
139
  );
146
- }, je = ({ value: t, label: n }) => {
140
+ }, Ue = ({ value: t, label: r }) => {
147
141
  let o;
148
- if (n === "credit_debit_card" ? (o = et, k === t && (o = tt)) : (o = nt, k === t && (o = rt)), n)
142
+ if (r === "credit_debit_card" ? (o = Qe, k === t && (o = Ze)) : (o = et, k === t && (o = tt)), r)
149
143
  return /* @__PURE__ */ e(
150
144
  b,
151
145
  {
152
146
  mt: 0.5,
153
147
  sx: { cursor: "pointer" },
154
- onClick: () => me(t * 1),
148
+ onClick: () => le(t * 1),
155
149
  children: /* @__PURE__ */ e("img", { src: o, alt: "payment", width: "90%" })
156
150
  }
157
151
  );
158
152
  };
159
- _(() => {
153
+ x(() => {
160
154
  const t = h.types.length;
161
155
  if (t > 0)
162
- for (let n = 0; n < t; n++) {
163
- const o = h.types[n];
164
- if (o.type === te) {
165
- $e(parseFloat(o.min_deposit_amount)), Le(parseFloat(o.max_deposit_amount));
156
+ for (let r = 0; r < t; r++) {
157
+ const o = h.types[r];
158
+ if (o.type === ee) {
159
+ Be(parseFloat(o.min_deposit_amount)), Ye(parseFloat(o.max_deposit_amount));
166
160
  break;
167
161
  }
168
- if (o.type === ne) {
169
- qe(parseFloat(o.min_deposit_amount)), Ke(parseFloat(o.max_deposit_amount));
162
+ if (o.type === te) {
163
+ $e(parseFloat(o.min_deposit_amount)), Le(parseFloat(o.max_deposit_amount));
170
164
  break;
171
165
  }
172
166
  }
173
167
  }, [h.types]);
174
- const De = (t) => {
175
- const n = t.target.value;
176
- n ? /^([0-9]+)$/.test(n) && _e(n) : _e("");
177
- }, ge = (t) => {
178
- const n = T.find((o) => o.symbol === t);
179
- Q(n);
180
- }, Ge = () => {
168
+ const Ve = (t) => {
169
+ const r = t.target.value;
170
+ r ? /^([0-9]+)$/.test(r) && he(r) : he("");
171
+ }, xe = (t) => {
172
+ const r = L.find((o) => o.symbol === t);
173
+ se(r);
174
+ }, je = () => {
181
175
  if (!l.id)
182
- return f({ message: "Please select token" }), !1;
176
+ return p({ message: "Please select token" }), !1;
183
177
  if (!k)
184
- return f({ message: "Please select payment method" }), !1;
178
+ return p({ message: "Please select payment method" }), !1;
185
179
  if (!w)
186
- return f({ message: "Please enter amount" }), !1;
180
+ return p({ message: "Please enter amount" }), !1;
187
181
  if (!v)
188
- return f({ message: "Please select wallet address" }), !1;
189
- if (!D)
190
- return f({
182
+ return p({ message: "Please select wallet address" }), !1;
183
+ if (!z)
184
+ return p({
191
185
  message: "Please wait for the estimate to be calculated and then press next"
192
186
  }), !1;
193
- I(re);
187
+ F(ne);
194
188
  };
195
- return /* @__PURE__ */ a(S, { children: [
189
+ return /* @__PURE__ */ a(P, { children: [
196
190
  /* @__PURE__ */ e(i, { container: !0, children: /* @__PURE__ */ e(i, { size: { xs: 6 }, children: /* @__PURE__ */ e(s, { className: m.label, variant: "caption", component: "p", children: "You Pay" }) }) }),
197
191
  /* @__PURE__ */ a(i, { mt: 0.5, spacing: 0, container: !0, children: [
198
192
  /* @__PURE__ */ e(i, { size: { xs: 6 }, children: /* @__PURE__ */ a(
199
- K,
193
+ j,
200
194
  {
201
195
  variant: "filled",
202
196
  className: `${m.amount} ${m["fiat-field"]}`,
203
197
  fullWidth: !0,
204
198
  children: [
205
199
  /* @__PURE__ */ e(
206
- H,
200
+ X,
207
201
  {
208
202
  value: w,
209
- onChange: De,
203
+ onChange: Ve,
210
204
  type: "text",
211
- placeholder: `${L > 0 ? "$" + L + " minimum value" : ""}`,
212
- error: Z,
205
+ placeholder: `${U > 0 ? "$" + U + " minimum value" : ""}`,
206
+ error: Q,
213
207
  disableUnderline: !0,
214
208
  required: !0,
215
209
  fullWidth: !0
216
210
  }
217
211
  ),
218
- /* @__PURE__ */ e(Fe, { className: m["amount-symbol"], children: " " })
212
+ /* @__PURE__ */ e(Ae, { className: m["amount-symbol"], children: " " })
219
213
  ]
220
214
  }
221
215
  ) }),
222
- /* @__PURE__ */ e(i, { size: { xs: 6 }, className: "content-center", children: Y ? /* @__PURE__ */ e(
223
- A,
216
+ /* @__PURE__ */ e(i, { size: { xs: 6 }, className: "content-center", children: G ? /* @__PURE__ */ e(
217
+ I,
224
218
  {
225
219
  sx: { ml: 1 },
226
220
  size: 30
227
221
  }
228
222
  ) : /* @__PURE__ */ e(
229
- K,
223
+ j,
230
224
  {
231
225
  variant: "filled",
232
226
  className: `text-left ${m["fiat-picker"]}`,
233
227
  fullWidth: !0,
234
228
  children: /* @__PURE__ */ e(
235
- ee,
229
+ Z,
236
230
  {
237
- input: /* @__PURE__ */ e(H, { disableUnderline: !0 }),
231
+ input: /* @__PURE__ */ e(X, { disableUnderline: !0 }),
238
232
  sx: {
239
233
  borderTopLeftRadius: 0,
240
234
  "&::before": {
@@ -257,15 +251,15 @@ const At = ({
257
251
  value: N,
258
252
  variant: "filled",
259
253
  displayEmpty: !0,
260
- onChange: (t) => we(t.target.value),
261
- error: Z,
262
- children: O.map((t) => /* @__PURE__ */ a(X, { value: t.id, children: [
263
- /* @__PURE__ */ e(Te, { className: m["dropdown-list-item"], children: /* @__PURE__ */ e(
254
+ onChange: (t) => ze(t.target.value),
255
+ error: Q,
256
+ children: O.map((t) => /* @__PURE__ */ a(J, { value: t.id, children: [
257
+ /* @__PURE__ */ e(Fe, { className: m["dropdown-list-item"], children: /* @__PURE__ */ e(
264
258
  "img",
265
259
  {
266
260
  src: t.icon_uri,
267
- onError: ({ currentTarget: n }) => {
268
- n.onerror = null, n.src = Ce;
261
+ onError: ({ currentTarget: r }) => {
262
+ r.onerror = null, r.src = be;
269
263
  },
270
264
  alt: "tokenImg",
271
265
  width: "40",
@@ -278,12 +272,12 @@ const At = ({
278
272
  )
279
273
  }
280
274
  ) }),
281
- ye && /* @__PURE__ */ e(s, { variant: "caption", sx: { color: "red" }, children: /* @__PURE__ */ e("strong", { children: ye }) })
275
+ fe && /* @__PURE__ */ e(s, { variant: "caption", sx: { color: "red" }, children: /* @__PURE__ */ e("strong", { children: fe }) })
282
276
  ] }),
283
277
  /* @__PURE__ */ a(b, { className: "text-left", mt: 3, children: [
284
278
  /* @__PURE__ */ e(s, { variant: "sm", fontWeight: 600, children: "Select Payment Method" }),
285
- Y ? /* @__PURE__ */ e(A, { sx: { ml: 1, mt: 3 }, size: 50 }) : /* @__PURE__ */ e(i, { mt: 0.5, container: !0, children: de.map((t) => /* @__PURE__ */ e(i, { size: { xs: 2.5 }, children: /* @__PURE__ */ e(
286
- je,
279
+ G ? /* @__PURE__ */ e(I, { sx: { ml: 1, mt: 3 }, size: 50 }) : /* @__PURE__ */ e(i, { mt: 0.5, container: !0, children: ce.map((t) => /* @__PURE__ */ e(i, { size: { xs: 2.5 }, children: /* @__PURE__ */ e(
280
+ Ue,
287
281
  {
288
282
  label: t.payment_type,
289
283
  value: t.id
@@ -293,43 +287,43 @@ const At = ({
293
287
  /* @__PURE__ */ e(i, { mt: 4, container: !0, children: /* @__PURE__ */ e(i, { size: { xs: 4 }, children: /* @__PURE__ */ e(s, { className: m.label, variant: "caption", component: "p", children: "You Receive" }) }) }),
294
288
  /* @__PURE__ */ a(i, { mt: 0.5, container: !0, children: [
295
289
  /* @__PURE__ */ e(i, { size: { xs: 6 }, children: /* @__PURE__ */ a(
296
- K,
290
+ j,
297
291
  {
298
292
  className: `${m.amount} ${m["fiat-field"]}`,
299
293
  fullWidth: !0,
300
294
  children: [
301
295
  /* @__PURE__ */ e(
302
- H,
296
+ X,
303
297
  {
304
298
  disableUnderline: !0,
305
- value: D && parseFloat((+D * 1).toFixed(5)),
299
+ value: z && parseFloat((+z * 1).toFixed(5)),
306
300
  type: "text",
307
301
  readOnly: !0,
308
302
  fullWidth: !0
309
303
  }
310
304
  ),
311
- /* @__PURE__ */ e(Fe, { className: m["amount-symbol"], children: +((Ne = p == null ? void 0 : p.output_token) == null ? void 0 : Ne.fiat_amount) * 1 > 0 ? C + (+((be = p == null ? void 0 : p.output_token) == null ? void 0 : be.fiat_amount) * 1).toFixed(2) : /* @__PURE__ */ e(S, { children: " " }) })
305
+ /* @__PURE__ */ e(Ae, { className: m["amount-symbol"], children: +((_e = f == null ? void 0 : f.output_token) == null ? void 0 : _e.fiat_amount) * 1 > 0 ? E + (+((ge = f == null ? void 0 : f.output_token) == null ? void 0 : ge.fiat_amount) * 1).toFixed(2) : /* @__PURE__ */ e(P, { children: " " }) })
312
306
  ]
313
307
  }
314
308
  ) }),
315
- /* @__PURE__ */ e(i, { size: { xs: 6 }, className: "content-center", children: ae ? /* @__PURE__ */ e(A, { sx: { ml: 1 }, size: 30 }) : /* @__PURE__ */ a(
316
- K,
309
+ /* @__PURE__ */ e(i, { size: { xs: 6 }, className: "content-center", children: u ? /* @__PURE__ */ e(I, { sx: { ml: 1 }, size: 30 }) : /* @__PURE__ */ a(
310
+ j,
317
311
  {
318
312
  variant: "filled",
319
313
  className: `text-left ${m["crypto-picker"]}`,
320
314
  fullWidth: !0,
321
315
  children: [
322
316
  (l == null ? void 0 : l.network) && /* @__PURE__ */ e(
323
- Me,
317
+ Ie,
324
318
  {
325
- className: `${m["network-label"]} ${m[pt(l == null ? void 0 : l.network.name)]}`,
319
+ className: `${m["network-label"]} ${m[dt(l == null ? void 0 : l.network.name)]}`,
326
320
  children: l == null ? void 0 : l.network.name
327
321
  }
328
322
  ),
329
323
  /* @__PURE__ */ a(
330
- ee,
324
+ Z,
331
325
  {
332
- input: /* @__PURE__ */ e(H, { disableUnderline: !0 }),
326
+ input: /* @__PURE__ */ e(X, { disableUnderline: !0 }),
333
327
  sx: {
334
328
  borderTopLeftRadius: 0,
335
329
  "&::before": {
@@ -353,21 +347,21 @@ const At = ({
353
347
  variant: "filled",
354
348
  value: l.symbol,
355
349
  displayEmpty: !0,
356
- onChange: (t) => ge(t.target.value),
350
+ onChange: (t) => xe(t.target.value),
357
351
  onOpen: (t) => {
358
- xe(!0), t.preventDefault();
352
+ ye(!0), t.preventDefault();
359
353
  },
360
354
  defaultOpen: !1,
361
355
  open: !1,
362
356
  children: [
363
- /* @__PURE__ */ e(X, { value: "", children: "Please select" }),
364
- T.map((t) => /* @__PURE__ */ a(X, { value: t.symbol, children: [
365
- /* @__PURE__ */ e(Te, { className: m["dropdown-list-item"], children: /* @__PURE__ */ e(
357
+ /* @__PURE__ */ e(J, { value: "", children: "Please select" }),
358
+ L.map((t) => /* @__PURE__ */ a(J, { value: t.symbol, children: [
359
+ /* @__PURE__ */ e(Fe, { className: m["dropdown-list-item"], children: /* @__PURE__ */ e(
366
360
  "img",
367
361
  {
368
362
  src: t.icon_uri,
369
- onError: ({ currentTarget: n }) => {
370
- n.onerror = null, n.src = Ce;
363
+ onError: ({ currentTarget: r }) => {
364
+ r.onerror = null, r.src = be;
371
365
  },
372
366
  alt: "tokenImg",
373
367
  width: "40",
@@ -385,19 +379,19 @@ const At = ({
385
379
  ] }),
386
380
  /* @__PURE__ */ e(b, { mt: 3, sx: { color: "#1A202C" }, children: /* @__PURE__ */ a(i, { container: !0, children: [
387
381
  /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 12 }, children: /* @__PURE__ */ a(
388
- ke,
382
+ Me,
389
383
  {
390
384
  sx: { padding: "0" },
391
- onClick: () => Ye((t) => !t),
385
+ onClick: () => We((t) => !t),
392
386
  disableFocusRipple: !0,
393
387
  disableRipple: !0,
394
388
  children: [
395
389
  /* @__PURE__ */ e(s, { variant: "caption", fontWeight: 500, children: "Fee Calculation" }),
396
390
  /* @__PURE__ */ e(
397
- Xe,
391
+ Ge,
398
392
  {
399
393
  sx: {
400
- transform: `rotate(${ue ? "90" : "0"}deg)`,
394
+ transform: `rotate(${me ? "90" : "0"}deg)`,
401
395
  fontSize: "15px"
402
396
  }
403
397
  }
@@ -405,42 +399,42 @@ const At = ({
405
399
  ]
406
400
  }
407
401
  ) }),
408
- ue && /* @__PURE__ */ a(S, { children: [
402
+ me && /* @__PURE__ */ a(P, { children: [
409
403
  /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Everest Fee" }) }),
410
404
  /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
411
- C,
412
- j ? /* @__PURE__ */ e(A, { size: 30, color: "primary" }) : se.toFixed(2)
405
+ E,
406
+ T ? /* @__PURE__ */ e(I, { size: 30, color: "primary" }) : ie.toFixed(2)
413
407
  ] }) }),
414
408
  /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Network Fee" }) }),
415
409
  /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
416
- C,
417
- j ? /* @__PURE__ */ e(
418
- A,
410
+ E,
411
+ T ? /* @__PURE__ */ e(
412
+ I,
419
413
  {
420
414
  sx: { ml: 1 },
421
415
  size: 15,
422
416
  color: "primary"
423
417
  }
424
- ) : le.toFixed(2)
418
+ ) : oe.toFixed(2)
425
419
  ] }) })
426
420
  ] }),
427
421
  /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Total Fees" }) }),
428
422
  /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
429
- C,
430
- j ? /* @__PURE__ */ e(A, { sx: { ml: 1 }, size: 15, color: "primary" }) : Number(Oe).toFixed(2)
423
+ E,
424
+ T ? /* @__PURE__ */ e(I, { sx: { ml: 1 }, size: 15, color: "primary" }) : Number(Re).toFixed(2)
431
425
  ] }) }),
432
- l && /* @__PURE__ */ a(S, { children: [
426
+ l && /* @__PURE__ */ a(P, { children: [
433
427
  /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
434
428
  "1 ",
435
429
  l.symbol,
436
430
  " ",
437
431
  /* @__PURE__ */ e(
438
- ut,
432
+ mt,
439
433
  {
440
- title: Ze,
434
+ title: Je,
441
435
  placement: "right",
442
- children: /* @__PURE__ */ e(ke, { className: "info-fee-icon", children: /* @__PURE__ */ e(
443
- Je,
436
+ children: /* @__PURE__ */ e(Me, { className: "info-fee-icon", children: /* @__PURE__ */ e(
437
+ He,
444
438
  {
445
439
  sx: {
446
440
  fontSize: "14px"
@@ -451,90 +445,90 @@ const At = ({
451
445
  )
452
446
  ] }) }),
453
447
  /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
454
- C,
455
- j ? /* @__PURE__ */ e(
456
- A,
448
+ E,
449
+ T ? /* @__PURE__ */ e(
450
+ I,
457
451
  {
458
452
  sx: { ml: 1 },
459
453
  size: 15,
460
454
  color: "primary"
461
455
  }
462
- ) : Number(ze).toFixed(2)
456
+ ) : Number(Se).toFixed(2)
463
457
  ] }) })
464
458
  ] })
465
459
  ] }) }),
466
- /* @__PURE__ */ e(b, { sx: { alignItems: "left", width: "100%" }, children: oe ? /* @__PURE__ */ e(b, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(A, {}) }) : /* @__PURE__ */ e(S, { children: /* @__PURE__ */ a(K, { variant: "filled", fullWidth: !0, children: [
467
- !v && /* @__PURE__ */ e(Me, { children: "Select wallet address" }),
460
+ /* @__PURE__ */ e(b, { sx: { alignItems: "left", width: "100%" }, children: C ? /* @__PURE__ */ e(b, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(I, {}) }) : /* @__PURE__ */ e(P, { children: /* @__PURE__ */ a(j, { variant: "filled", fullWidth: !0, children: [
461
+ !v && /* @__PURE__ */ e(Ie, { children: "Select wallet address" }),
468
462
  /* @__PURE__ */ e(
469
- ee,
463
+ Z,
470
464
  {
471
465
  value: v,
472
- onChange: (t) => R && R(t.target.value),
473
- children: M.map((t, n) => /* @__PURE__ */ e(X, { value: t.address, children: t.name + "(" + t.address + ")" }, n))
466
+ onChange: (t) => S && S(t.target.value),
467
+ children: $.map((t, r) => /* @__PURE__ */ e(J, { value: t.address, children: t.name + "(" + t.address + ")" }, r))
474
468
  }
475
469
  )
476
470
  ] }) }) }),
477
471
  /* @__PURE__ */ e(b, { mt: 4, children: /* @__PURE__ */ e(
478
- ie,
472
+ re,
479
473
  {
480
- onClick: Ge,
481
- disabled: Z || !D,
474
+ onClick: je,
475
+ disabled: Q || !z,
482
476
  fullWidth: !0,
483
477
  children: /* @__PURE__ */ e("strong", { children: "Next" })
484
478
  }
485
479
  ) }),
486
480
  /* @__PURE__ */ e(
487
- Et,
481
+ vt,
488
482
  {
489
- open: Ue,
490
- setModal: xe,
491
- loader: ae,
492
- tokenList: T,
493
- tokenSelect: ge
483
+ open: qe,
484
+ setModal: ye,
485
+ loader: u,
486
+ tokenList: L,
487
+ tokenSelect: xe
494
488
  }
495
489
  )
496
490
  ] });
497
- }, It = ({
498
- setScreen: I,
491
+ }, Et = ({
492
+ setScreen: F,
499
493
  partnerKey: h,
500
- orderData: F,
501
- dispatch: x,
494
+ orderData: M,
495
+ dispatch: _,
502
496
  walletAddress: d
503
497
  }) => {
504
- const r = F.estimate, f = F.create.order_id, P = F.loader, v = r.fiat_amount, R = Pe(r.fiat_currency), [g, M] = c(!1);
505
- _(() => {
506
- f && g && I(Ft);
507
- }, [f]), _(() => {
508
- V();
498
+ const n = M.estimate, p = M.create.order_id, Y = M.loader, v = n.fiat_amount, S = ke(n.fiat_currency), [R, $] = c(!1);
499
+ x(() => {
500
+ p && R && F(At);
501
+ }, [p]), x(() => {
502
+ C();
509
503
  }, []);
510
- const V = () => {
511
- x(
512
- Se({
504
+ const C = () => {
505
+ _(
506
+ Te({
513
507
  apiKey: h,
514
- transaction_type: r.transaction_type,
515
- coin_amount: r.fiat_amount,
516
- exchange: r.exchange,
517
- payment_type: r.payment_type,
518
- fiat_ccy: r.fiat_currency,
519
- crypto_ccy: r.crypto_currency,
520
- network: r.network,
521
- payment_provider: r.payment_provider
508
+ transaction_type: n.transaction_type,
509
+ coin_amount: n.fiat_amount,
510
+ exchange: n.exchange,
511
+ payment_type: n.payment_type,
512
+ fiat_ccy: n.fiat_currency,
513
+ crypto_ccy: n.crypto_currency,
514
+ network: n.network,
515
+ payment_provider: n.payment_provider
522
516
  })
523
517
  );
524
- }, J = () => {
525
- x(
526
- ct({
518
+ }, g = () => {
519
+ _(
520
+ st({
527
521
  apiKey: h,
528
- quoteId: r.quote_id,
522
+ quoteId: n.quote_id,
529
523
  walletAddress: d
530
524
  })
531
- ), M(!0);
525
+ ), $(!0);
532
526
  };
533
- return /* @__PURE__ */ a(S, { children: [
527
+ return /* @__PURE__ */ a(P, { children: [
534
528
  /* @__PURE__ */ e(
535
- ft,
529
+ ut,
536
530
  {
537
- onClickHandler: () => I(Re),
531
+ onClickHandler: () => F(Pe),
538
532
  backBtnText: "Confirm Your Order"
539
533
  }
540
534
  ),
@@ -543,12 +537,12 @@ const At = ({
543
537
  /* @__PURE__ */ e(
544
538
  "img",
545
539
  {
546
- src: r.payment_type === Ae ? it : ot,
540
+ src: n.payment_type === Ce ? nt : rt,
547
541
  width: 100,
548
542
  alt: "payment"
549
543
  }
550
544
  ),
551
- /* @__PURE__ */ e(s, { variant: "caption", component: "span", children: /* @__PURE__ */ e("strong", { children: r.payment_type === Ae ? "Bank Account" : "Debit Card" }) })
545
+ /* @__PURE__ */ e(s, { variant: "caption", component: "span", children: /* @__PURE__ */ e("strong", { children: n.payment_type === Ce ? "Bank Account" : "Debit Card" }) })
552
546
  ] }),
553
547
  /* @__PURE__ */ e(s, { mt: 4, variant: "sm", fontWeight: 600, children: "To Wallet Address" }),
554
548
  /* @__PURE__ */ e(
@@ -563,147 +557,145 @@ const At = ({
563
557
  /* @__PURE__ */ e(s, { mt: 3, variant: "sm", fontWeight: 600, component: "p", children: "Order Estimate Details" }),
564
558
  /* @__PURE__ */ e(b, { sx: { color: "#A6A6A6" }, children: /* @__PURE__ */ a(i, { container: !0, children: [
565
559
  /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
566
- r.crypto_currency.toUpperCase(),
560
+ n.crypto_currency.toUpperCase(),
567
561
  " @",
568
562
  " ",
569
- Number(r.conversion_price).toFixed(2),
563
+ Number(n.conversion_price).toFixed(2),
570
564
  " ",
571
- r.fiat_currency
565
+ n.fiat_currency
572
566
  ] }) }),
573
567
  /* @__PURE__ */ e(i, { className: "flex-right", size: { xs: 6 }, children: /* @__PURE__ */ e(
574
568
  "span",
575
569
  {
576
570
  className: m["confirm-transaction-network"],
577
571
  style: {
578
- backgroundColor: r.network === "Ethereum" ? "#A1A9DC" : "#5D8CCC"
572
+ backgroundColor: n.network === "Ethereum" ? "#A1A9DC" : "#5D8CCC"
579
573
  },
580
- children: r.network
574
+ children: n.network
581
575
  }
582
576
  ) }),
583
577
  /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
584
- Number(r.crypto_out_amount).toFixed(5),
578
+ Number(n.crypto_out_amount).toFixed(5),
585
579
  " ",
586
- r.crypto_currency.toUpperCase()
580
+ n.crypto_currency.toUpperCase()
587
581
  ] }) }),
588
582
  /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
589
- (Number(v) - Number(r.total_fee)).toFixed(2),
583
+ (Number(v) - Number(n.total_fee)).toFixed(2),
590
584
  " ",
591
- r.fiat_currency
585
+ n.fiat_currency
592
586
  ] }) }),
593
587
  /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Total Fees" }) }),
594
588
  /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
595
- Number(r.total_fee).toFixed(2),
589
+ Number(n.total_fee).toFixed(2),
596
590
  " ",
597
- r.fiat_currency
591
+ n.fiat_currency
598
592
  ] }) }),
599
593
  /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: /* @__PURE__ */ e("strong", { children: "Order Total" }) }) }),
600
594
  /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: /* @__PURE__ */ a("strong", { children: [
601
- R,
595
+ S,
602
596
  Number(v).toFixed(2),
603
597
  " ",
604
- r.fiat_currency
598
+ n.fiat_currency
605
599
  ] }) }) })
606
600
  ] }) }),
607
601
  /* @__PURE__ */ e(b, { mt: 4, children: /* @__PURE__ */ e(
608
- ie,
602
+ re,
609
603
  {
610
- onClick: J,
611
- disabled: P,
604
+ onClick: g,
605
+ disabled: Y,
612
606
  fullWidth: !0,
613
- children: /* @__PURE__ */ e("strong", { children: P ? /* @__PURE__ */ a(S, { children: [
614
- /* @__PURE__ */ e(A, { size: 15, color: "inherit" }),
607
+ children: /* @__PURE__ */ e("strong", { children: Y ? /* @__PURE__ */ a(P, { children: [
608
+ /* @__PURE__ */ e(I, { size: 15, color: "inherit" }),
615
609
  " Processing..."
616
610
  ] }) : "Payment Details" })
617
611
  }
618
612
  ) })
619
613
  ] });
620
- }, Re = "FORM_SCREEN", re = "CONFIRM_SCREEN", Ft = "PAYMENT_SCREEN", Mt = "MINIMAL_KYC_SCREEN", Tt = ({ partnerKey: I, baseUrl: h, checkoutSdkKey: F }) => {
621
- const { showAlertMessage: x } = gt(), d = ht(), r = U((u) => u.order), f = r.error;
622
- U(
614
+ }, Pe = "FORM_SCREEN", ne = "CONFIRM_SCREEN", At = "PAYMENT_SCREEN", It = "MINIMAL_KYC_SCREEN", Ft = ({ partnerKey: F, baseUrl: h, checkoutSdkKey: M }) => {
615
+ const { showAlertMessage: _ } = xt(), d = pt(), n = D((u) => u.order), p = n.error, v = D(
623
616
  (u) => u.user.profile
624
- );
625
- const P = U((u) => u.fiatAssets), v = U(
617
+ ).everWalletAddress, S = D((u) => u.fiatAssets), R = D(
626
618
  (u) => u.cryptoAssets
627
- ), [R, g] = c(Re), [M, V] = c("");
628
- return _(() => {
629
- f && x({ message: f });
630
- }, [f]), _(() => {
631
- r.initMinimalKyc && (x({ message: f, type: "info" }), g(Mt));
632
- }, [r.initMinimalKyc]), _(() => (d(yt()), d(Ie(ne)), d(Ie(te)), d(xt()), () => {
633
- d(mt());
634
- }), []), /* @__PURE__ */ e(Nt, { addPadding: !0, children: {
619
+ ), [$, C] = c(Pe), [g, G] = c(v);
620
+ return x(() => {
621
+ p && _({ message: p });
622
+ }, [p]), x(() => {
623
+ n.initMinimalKyc && (_({ message: p, type: "info" }), C(It));
624
+ }, [n.initMinimalKyc]), x(() => (d(ft()), d(Ee(te)), d(Ee(ee)), d(yt()), () => {
625
+ d(lt());
626
+ }), []), /* @__PURE__ */ e(_t, { addPadding: !0, children: {
635
627
  FORM_SCREEN: /* @__PURE__ */ e(
636
- At,
628
+ Ct,
637
629
  {
638
- showAlertMessage: x,
639
- setScreen: g,
640
- fiatAssets: P,
641
- cryptoAssets: v,
642
- orderData: r,
630
+ showAlertMessage: _,
631
+ setScreen: C,
632
+ fiatAssets: S,
633
+ cryptoAssets: R,
634
+ orderData: n,
643
635
  dispatch: d,
644
636
  getCryptoAssets: (u) => {
645
637
  d(
646
- _t({
647
- type: at,
638
+ ht({
639
+ type: it,
648
640
  id: u,
649
- partnerKey: I,
650
- walletAddress: M
641
+ partnerKey: F,
642
+ walletAddress: g
651
643
  })
652
644
  );
653
645
  },
654
- partnerKey: I,
655
- walletAddress: M,
656
- setWalletAddress: V
646
+ partnerKey: F,
647
+ walletAddress: g,
648
+ setWalletAddress: G
657
649
  }
658
650
  ),
659
651
  CONFIRM_SCREEN: /* @__PURE__ */ e(
660
- It,
652
+ Et,
661
653
  {
662
- partnerKey: I,
663
- setScreen: g,
664
- showAlertMessage: x,
665
- orderData: r,
654
+ partnerKey: F,
655
+ setScreen: C,
656
+ showAlertMessage: _,
657
+ orderData: n,
666
658
  dispatch: d,
667
- walletAddress: M
659
+ walletAddress: g
668
660
  }
669
661
  ),
670
662
  PAYMENT_SCREEN: /* @__PURE__ */ e(
671
- bt,
663
+ gt,
672
664
  {
673
- checkoutKey: F,
674
- orderData: r,
665
+ checkoutKey: M,
666
+ orderData: n,
675
667
  initPaymentRequest: (u) => {
676
- const Y = r.estimate, T = r.create.order_id, z = {
668
+ const T = n.estimate, f = n.create.order_id, z = {
677
669
  token: u,
678
- amount: Number(Y.fiat_amount),
679
- currency: Y.fiat_currency,
680
- reference: T,
670
+ amount: Number(T.fiat_amount),
671
+ currency: T.fiat_currency,
672
+ reference: f,
681
673
  success_url: `${h}/dashboard?payment=success`,
682
674
  fail_url: `${h}/dashboard?payment=failed`
683
675
  };
684
- d(dt(z));
676
+ d(ct(z));
685
677
  },
686
- backBtnFunc: () => g(re)
678
+ backBtnFunc: () => C(ne)
687
679
  }
688
680
  ),
689
681
  MINIMAL_KYC_SCREEN: /* @__PURE__ */ e(
690
- vt,
682
+ Nt,
691
683
  {
692
- inputComponent: Ct,
693
- buttonComponent: ie,
684
+ inputComponent: bt,
685
+ buttonComponent: re,
694
686
  onComplete: () => {
695
- g(re);
687
+ C(ne);
696
688
  }
697
689
  }
698
690
  )
699
- }[R] });
700
- }, pn = He(Tt);
691
+ }[$] });
692
+ }, dn = De(Ft);
701
693
  export {
702
- At as B,
703
- re as C,
704
- Re as F,
705
- Mt as M,
706
- Ft as P,
707
- It as a,
708
- pn as i
694
+ Ct as B,
695
+ ne as C,
696
+ Pe as F,
697
+ It as M,
698
+ At as P,
699
+ Et as a,
700
+ dn as i
709
701
  };