everest-npm-features 0.0.22 → 0.0.24

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 (246) hide show
  1. package/dist/{Alert-C1UNQHPD.js → Alert-CbQZ8Nii.js} +142 -116
  2. package/dist/{ArrowBack-Clp4i3dA.js → ArrowBack-BoYSBb8u.js} +1 -1
  3. package/dist/{ArrowDropDown-CoJNyIet.js → ArrowDropDown-BC_iEASy.js} +1 -1
  4. package/dist/{ArrowRight-DXtbS-1g.js → ArrowRight-rYkfGJuF.js} +1 -1
  5. package/dist/{Backdrop-DD6Ysl5O.js → Backdrop-CJBRZv_z.js} +106 -107
  6. package/dist/{Box-Be0E_-eR.js → Box-B12x52NC.js} +17 -16
  7. package/dist/Button-C57IMamW.js +660 -0
  8. package/dist/{ButtonBase-CE33gcZ6.js → ButtonBase-DugIO1pR.js} +194 -194
  9. package/dist/{Cancel-DEk2meuc.js → Cancel-D1JNu4Hj.js} +1 -1
  10. package/dist/{CardContent-B5tGyfc5.js → CardContent-CbObWW6t.js} +44 -45
  11. package/dist/{CheckCircle-BIckgNlV.js → CheckCircle-CyxKX1TY.js} +1 -1
  12. package/dist/{CircularProgress-fePUtoaj.js → CircularProgress-t8uGhLMo.js} +17 -17
  13. package/dist/{Close-D20PIPiF.js → Close-VV7zb3cu.js} +1 -1
  14. package/dist/{Close-Bj6AaxRi.js → Close-jnEgOCZv.js} +1 -1
  15. package/dist/{Container-CTfl6Vy4.js → Container-B3Af6Sc3.js} +20 -20
  16. package/dist/{ContentCopy-DzhD9ue3.js → ContentCopy-Ufwoeeov.js} +1 -1
  17. package/dist/DefaultPropsProvider-B2njZVNv.js +242 -0
  18. package/dist/DefaultPropsProvider-CZh8M2jM.js +351 -0
  19. package/dist/{Delete-BqqmGzYe.js → Delete-TCARcVtU.js} +1 -1
  20. package/dist/{DialogContent-D8jGp88c.js → DialogContent-DzidtXui.js} +202 -140
  21. package/dist/{DialogTitle-CxbjAJOw.js → DialogTitle-Bg61Hr7M.js} +23 -23
  22. package/dist/{Divider-D3PIEE97.js → Divider-Dy5hKfey.js} +31 -30
  23. package/dist/{ErrorOutline-CnwdlXPx.js → ErrorOutline-CI_ys3Zo.js} +1 -1
  24. package/dist/{FileDownload-BX69Jvdx.js → FileDownload-BcYF17B0.js} +1 -1
  25. package/dist/{FilledInput-n9W_V8GV.js → FilledInput-DrGeWgue.js} +352 -335
  26. package/dist/{FormControl-Cc-02KHW.js → FormControl-DeeQCuu5.js} +98 -81
  27. package/dist/{FormControlLabel-BEN9P8rJ.js → FormControlLabel-DVnrJkC8.js} +194 -165
  28. package/dist/GlobalStyles-DhHHc9O0.js +59 -0
  29. package/dist/Grid-BXyV_lM8.js +410 -0
  30. package/dist/Grow-B2p7O_1C.js +196 -0
  31. package/dist/{ownerDocument-C0GI-r2b.js → HTMLElementType-BrQSV2FE.js} +6 -6
  32. package/dist/IconButton-eWRhV6Q9.js +295 -0
  33. package/dist/{Info-83BXSu73.js → Info-D2UkGxyK.js} +1 -1
  34. package/dist/{InputAdornment-Ck_-Z38v.js → InputAdornment-BKuUMfPj.js} +14 -12
  35. package/dist/{Link-BqusVoz5.js → Link-Cm4BkRHO.js} +50 -49
  36. package/dist/{ListItemIcon-DIz-ZmJ0.js → ListItemIcon-GKRFb1Gr.js} +14 -13
  37. package/dist/{MenuItem-BkJ_C9Xs.js → MenuItem-CeCt0bfa.js} +46 -39
  38. package/dist/{Modal-CQcBtr07.js → Modal-csf3Y8d2.js} +265 -269
  39. package/dist/{Paper-B5pcGZbI.js → Paper-CnStNE24.js} +39 -38
  40. package/dist/{PlayArrow-1Y66tCVx.js → PlayArrow-DRCGjsrx.js} +1 -1
  41. package/dist/{Popper-CYsd-3n5.js → Popper-pPBEFLi4.js} +15 -15
  42. package/dist/{Portal-Bw0-5YJ9.js → Portal-CLa9CbMv.js} +36 -37
  43. package/dist/{RadioGroup-DtQqYrwU.js → RadioGroup-KiyYjXaT.js} +29 -28
  44. package/dist/{Select-DpKw-a6h.js → Select-Chubcks_.js} +1248 -933
  45. package/dist/{Slide-CdNJY-CT.js → Slide-DHG0r2gy.js} +68 -66
  46. package/dist/{Stack-C4POCZZb.js → Stack-CcR5RCg8.js} +41 -43
  47. package/dist/SwitchBase-CHO5ZceN.js +317 -0
  48. package/dist/{TextField-Cm9apaOp.js → TextField-q_SeLeNd.js} +144 -135
  49. package/dist/TransitionGroupContext-CYRQkQ6k.js +49 -0
  50. package/dist/{Typography-Ds4fpvK8.js → Typography-DBlMiOti.js} +39 -38
  51. package/dist/{auth-CR0412E5.js → auth-Bf9zHZ-x.js} +1 -1
  52. package/dist/{bank-iFS1RXp-.js → bank-BC4YNBRb.js} +3 -3
  53. package/dist/components/RocketRamp/MinimalKyc/form.js +9 -9
  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 +7 -7
  60. package/dist/components/RocketRamp/Player/Dashboard/index.js +4 -4
  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 +7 -7
  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 +6 -6
  79. package/dist/components/RocketRamp/Store/Dashboard/index.js +2 -2
  80. package/dist/components/RocketRamp/Store/Dashboard/stats.js +6 -6
  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 +7 -7
  91. package/dist/components/Shared/FullKyc/userInfo.js +11 -11
  92. package/dist/components/Shared/HistoryItem/index.js +7 -7
  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/Shared/transition.js +1 -1
  98. package/dist/components/Wallet/Account/createIban.d.ts +1 -0
  99. package/dist/components/Wallet/Account/createIban.js +36 -35
  100. package/dist/components/Wallet/Account/iban.d.ts +1 -0
  101. package/dist/components/Wallet/Account/iban.js +16 -16
  102. package/dist/components/Wallet/Account/index.d.ts +1 -0
  103. package/dist/components/Wallet/Account/index.js +76 -70
  104. package/dist/components/Wallet/Account/sendIban.js +61 -61
  105. package/dist/components/Wallet/Buy/confirmTransaction.js +7 -7
  106. package/dist/components/Wallet/Buy/form.d.ts +2 -2
  107. package/dist/components/Wallet/Buy/form.js +17 -17
  108. package/dist/components/Wallet/Buy/index.js +6 -6
  109. package/dist/components/Wallet/Deposit/index.js +7 -7
  110. package/dist/components/Wallet/EnterpriseKyc/edd.js +7 -7
  111. package/dist/components/Wallet/EnterpriseKyc/index.js +26 -24
  112. package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +5 -5
  113. package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +3 -3
  114. package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +2 -2
  115. package/dist/components/Wallet/EnterpriseKyc/kycType.js +5 -5
  116. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +45 -44
  117. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +3626 -100
  118. package/dist/components/Wallet/EnterpriseKyc/success.js +2 -2
  119. package/dist/components/Wallet/EnterpriseKyc/types.d.ts +0 -1
  120. package/dist/components/Wallet/EnterpriseKyc/verify.js +5 -5
  121. package/dist/components/Wallet/History/index.js +61 -62
  122. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +14 -14
  123. package/dist/components/Wallet/Portfolio/index.js +95 -95
  124. package/dist/components/Wallet/Portfolio/tokenRow.js +6 -6
  125. package/dist/components/Wallet/Profile/documents.js +17 -17
  126. package/dist/components/Wallet/Profile/index.js +225 -206
  127. package/dist/components/Wallet/Receive/index.js +9 -9
  128. package/dist/components/Wallet/Sell/confirmTransaction.js +7 -7
  129. package/dist/components/Wallet/Sell/form.js +17 -17
  130. package/dist/components/Wallet/Sell/index.js +6 -6
  131. package/dist/components/Wallet/Send/index.js +14 -14
  132. package/dist/components/Wallet/Shared/Auth/emailForm.js +3 -3
  133. package/dist/components/Wallet/Shared/Auth/otpForm.js +217 -10451
  134. package/dist/components/Wallet/Shared/CardPayment/index.js +57 -55
  135. package/dist/components/Wallet/Shared/ConnectWallet/index.js +9 -9
  136. package/dist/components/Wallet/Shared/Container/index.js +3 -3
  137. package/dist/components/Wallet/Shared/Input/index.js +1 -1
  138. package/dist/components/Wallet/Shared/Keyboard/keyboard.js +9 -10
  139. package/dist/components/Wallet/Shared/Order/types.d.ts +23 -2
  140. package/dist/components/Wallet/Shared/TokenModal/index.js +11 -11
  141. package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +4 -4
  142. package/dist/components/Wallet/Shared/addBank.js +11 -11
  143. package/dist/components/Wallet/Shared/appButton.js +5 -5
  144. package/dist/components/Wallet/Shared/backBtn.js +8 -8
  145. package/dist/components/Wallet/Shared/button.js +1 -1
  146. package/dist/components/Wallet/Shared/connectPlaidBank.js +5 -5
  147. package/dist/components/Wallet/Shared/inputField.js +1 -1
  148. package/dist/components/Wallet/Shared/noData.js +2 -2
  149. package/dist/components/Wallet/Shared/pin.js +3 -3
  150. package/dist/components/Wallet/Shared/radioButton.js +3 -3
  151. package/dist/components/Wallet/Shared/step.js +2 -2
  152. package/dist/components/Wallet/SignIn/index.js +2 -2
  153. package/dist/components/Wallet/SignUp/index.js +2 -2
  154. package/dist/components/Wallet/SignUp/terms.js +4 -4
  155. package/dist/components/Wallet/Stake/gems/index.js +11 -11
  156. package/dist/components/Wallet/Stake/id/index.js +12 -12
  157. package/dist/components/Wallet/Stake/index.js +10 -10
  158. package/dist/components/Wallet/Swap/index.js +138 -150
  159. package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -3
  160. package/dist/components/Wallet/Withdraw/bankSelect.js +10 -10
  161. package/dist/components/Wallet/Withdraw/confirmTransaction.js +7 -7
  162. package/dist/components/Wallet/Withdraw/form.d.ts +2 -2
  163. package/dist/components/Wallet/Withdraw/form.js +16 -16
  164. package/dist/components/Wallet/Withdraw/index.js +5 -5
  165. package/dist/{constants-BJByDTQY.js → constants-CsMPRK0U.js} +285 -284
  166. package/dist/{createSvgIcon-C0wzKL72.js → createSvgIcon-CH41ZVFw.js} +58 -57
  167. package/dist/createTheme-DmGCMO09.js +3825 -0
  168. package/dist/{cryptoAssets-BcVSdM1C.js → cryptoAssets-CzNDY1j6.js} +1 -1
  169. package/dist/defaultTheme-9fAph5zo.js +5 -0
  170. package/dist/{dividerClasses-Cb_Is0-O.js → dividerClasses-DnbM--4s.js} +2 -2
  171. package/dist/{documents-HjBKq9qA.js → documents-CEeV8SyW.js} +16 -16
  172. package/dist/{Transition-CYSgg85A.js → elementAcceptingRef-BbsmdE_3.js} +109 -66
  173. package/dist/{elementTypeAcceptingRef-Bc1kRXA9.js → elementTypeAcceptingRef-CdmXUhJ8.js} +1 -1
  174. package/dist/{emotion-react.browser.esm-BjxI_t8k.js → emotion-react.browser.esm-C2mxoK1z.js} +42 -42
  175. package/dist/{extendSxProp-a8ZTL0ZI.js → extendSxProp-Bwha5fon.js} +1 -1
  176. package/dist/{fiatAssets-C_F8qNzr.js → fiatAssets-DVHfFafS.js} +1 -1
  177. package/dist/hoc/withThemeProvider.js +518 -417
  178. package/dist/hooks/useDialog/index.js +4 -4
  179. package/dist/hooks/useRrDialog/index.js +4 -4
  180. package/dist/hooks/useSnackBar.js +363 -288
  181. package/dist/{iban-Dh7qBGGc.js → iban-DRT7i0vb.js} +74 -85
  182. package/dist/icons/buyIcon.js +1 -1
  183. package/dist/icons/canceledBuyIcon.js +1 -1
  184. package/dist/icons/canceledRedeemIcon.js +1 -1
  185. package/dist/icons/failedBuyIcon.js +1 -1
  186. package/dist/icons/failedRedeemIcon.js +1 -1
  187. package/dist/icons/pendingBuyIcon.js +1 -1
  188. package/dist/icons/pendingRedeemIcon.js +1 -1
  189. package/dist/icons/redeemIcon.js +1 -1
  190. package/dist/index-BB3__zW3.js +644 -0
  191. package/dist/index-C86AoaoB.js +43 -0
  192. package/dist/{index-BFIhKqqi.js → index-C9uGghB8.js} +141 -133
  193. package/dist/{index-DkMQ44xy.js → index-DZ__IpVI.js} +19 -19
  194. package/dist/{index-B2OIoTNN.js → index-DxX5Mo0o.js} +18 -18
  195. package/dist/{index-CQe8cwpc.js → index-VE9lYjq3.js} +22 -22
  196. package/dist/index-eEYiDlpX.js +723 -0
  197. package/dist/{index-CtkDfW5M.js → index-x9CniyQB.js} +1 -1
  198. package/dist/{kyc-DJpiKj5d.js → kyc-BweeW6k9.js} +1 -1
  199. package/dist/main.js +6 -6
  200. package/dist/{order-DhUA-ZNX.js → order-DmTHC7ZG.js} +7 -7
  201. package/dist/{ownerWindow-iFlVse9X.js → ownerWindow-CRgpWY6I.js} +1 -1
  202. package/dist/pep-C5Ge-kU4.js +2691 -0
  203. package/dist/{radioButton-CdYLf2fc.js → radioButton-Bgy7Kxxo.js} +172 -121
  204. package/dist/refType-CaiGhRso.js +56 -0
  205. package/dist/{stake-DWRuAE1u.js → stake-B150utJI.js} +1 -1
  206. package/dist/tokenRow-BR8f4g7G.js +198 -0
  207. package/dist/{tooltip-CwdohO6q.js → tooltip-DGtrVEzU.js} +258 -235
  208. package/dist/useControlled-nm4pBabJ.js +31 -0
  209. package/dist/useEnhancedEffect-CJGo-L3B.js +5 -0
  210. package/dist/useSlot-DtSnboW7.js +125 -0
  211. package/dist/useSlotProps-D62tWbb1.js +25 -0
  212. package/dist/useTheme-Bfw5Gt1b.js +17 -0
  213. package/dist/{useTheme-BzIjfC6u.js → useTheme-XTDzJ69d.js} +3 -3
  214. package/dist/useThemeProps-lRuJRcRX.js +29 -0
  215. package/dist/util/constants.d.ts +1 -3
  216. package/dist/util/constants.js +27 -29
  217. package/dist/wallet-DDW5KCHp.js +39 -0
  218. package/package.json +7 -6
  219. package/dist/Button-DCBtFwk3.js +0 -452
  220. package/dist/DefaultPropsProvider-5cxFAZuq.js +0 -647
  221. package/dist/DefaultPropsProvider-DOLtk4kZ.js +0 -88
  222. package/dist/GlobalStyles-O5U8h5ZQ.js +0 -23
  223. package/dist/Grid-BaaKMDwM.js +0 -501
  224. package/dist/Grid2-DX2sucnU.js +0 -374
  225. package/dist/Grow-CC3Va50c.js +0 -216
  226. package/dist/IconButton-8B2ygvr4.js +0 -238
  227. package/dist/SwitchBase-B9rcpVZ0.js +0 -261
  228. package/dist/TransitionGroupContext-BzyZRJGo.js +0 -37
  229. package/dist/createTheme-D_EHVLXp.js +0 -3662
  230. package/dist/defaultTheme-CGLnLLk_.js +0 -5
  231. package/dist/index-BEH1PkNC.js +0 -572
  232. package/dist/index-DSZxScyY.js +0 -704
  233. package/dist/index-DlZLKtdr.js +0 -72
  234. package/dist/pep-BsWvrgyM.js +0 -2600
  235. package/dist/resolveComponentProps-CPnCrKvI.js +0 -80
  236. package/dist/styled-CyBKg0N-.js +0 -5
  237. package/dist/tokenRow-QlGBYRKR.js +0 -206
  238. package/dist/useControlled-BYdyS7Pn.js +0 -31
  239. package/dist/useSlot-BdP6R4tz.js +0 -50
  240. package/dist/useTheme-BFI_g9FY.js +0 -9
  241. package/dist/useThemeProps-BOrAzOS4.js +0 -40
  242. package/dist/useThemeWithoutDefault-BWt80cCE.js +0 -12
  243. package/dist/useTimeout-_ag1gI7y.js +0 -56
  244. package/dist/utils-B-vKE_Dv.js +0 -50
  245. package/dist/utils-asicApOI.js +0 -21
  246. package/dist/wallet-z7NHqtCj.js +0 -35
@@ -1,5 +0,0 @@
1
- import { c as e } from "./createTheme-D_EHVLXp.js";
2
- const a = e();
3
- export {
4
- a as d
5
- };
@@ -1,572 +0,0 @@
1
- import { jsxs as a, Fragment as E, jsx as e } from "react/jsx-runtime";
2
- import { useState as p, useEffect as _ } from "react";
3
- import be from "./hoc/withThemeProvider.js";
4
- import se from "./components/Wallet/Shared/backBtn.js";
5
- import { DIALOG_SUCCESS_ICON as ve, PAYMENT_BANK as H, SEPA_ICON as ke, VISA_ICON as Ee, PAYMENT_PROVIDER_PAYSAFE as Ie, FIAT_WITHDRAW as J, VISA_PAYMENT as Fe, VISA_PAYMENT_ACTIVE as Se, SEPA_PAYMENT as Be, SEPA_PAYMENT_ACTIVE as Re } from "./util/constants.js";
6
- import { s as u } from "./styles.module-BFHktEw2.js";
7
- import X from "./components/Wallet/Shared/appButton.js";
8
- import { ah as z } from "./constants-BJByDTQY.js";
9
- import { b as ce } from "./index-f15o1nhn.js";
10
- import { o as Q, c as le, d as Te, h as Pe, b as Me, a as we } from "./order-DhUA-ZNX.js";
11
- import { u as Y, a as me } from "./react-redux-C7I9-1M6.js";
12
- import { f as We } from "./fiatAssets-C_F8qNzr.js";
13
- import { u as Oe } from "./wallet-z7NHqtCj.js";
14
- import { useSnackBarContext as ze } from "./context/snackBarContext.js";
15
- import { AuthContainer as Ye } from "./components/Wallet/Shared/Container/index.js";
16
- import Le from "./components/Shared/MinimalKyc/index.js";
17
- import Ke from "./components/Wallet/Shared/Input/index.js";
18
- import { A as qe } from "./ArrowRight-DXtbS-1g.js";
19
- import { C as $e } from "./CheckCircle-BIckgNlV.js";
20
- import Ge from "./components/Wallet/Shared/addBank.js";
21
- import { u as Ve } from "./bank-iFS1RXp-.js";
22
- import je from "./components/Wallet/Shared/connectPlaidBank.js";
23
- import { B as y } from "./Box-Be0E_-eR.js";
24
- import { C as k } from "./CircularProgress-fePUtoaj.js";
25
- import { G as m } from "./Grid-BaaKMDwM.js";
26
- import { T as r } from "./Typography-Ds4fpvK8.js";
27
- import { P as He } from "./PlayArrow-1Y66tCVx.js";
28
- import { G as Ue } from "./generic-token-B_ptO5yb.js";
29
- import { getCurrencySymbol as De } from "./util/functions.js";
30
- import { G as l } from "./Grid2-DX2sucnU.js";
31
- import { F as U } from "./FormControl-Cc-02KHW.js";
32
- import { F as D } from "./FilledInput-n9W_V8GV.js";
33
- import { F as oe } from "./TextField-Cm9apaOp.js";
34
- import { S as Je } from "./Select-DpKw-a6h.js";
35
- import { M as Qe } from "./MenuItem-BkJ_C9Xs.js";
36
- import { L as Xe } from "./ListItemIcon-DIz-ZmJ0.js";
37
- import { I as Ze } from "./InputAdornment-Ck_-Z38v.js";
38
- import { I as et } from "./IconButton-8B2ygvr4.js";
39
- import { useDialog as tt } from "./hooks/useDialog/index.js";
40
- const nt = ({
41
- setScreen: N,
42
- partnerKey: x,
43
- orderData: c,
44
- dispatch: d,
45
- navigate: h
46
- }) => {
47
- const { openDialog: I, ConfirmDialog: g } = tt(), f = Y(ce).banks, n = c.estimate[z], s = c.create.order_id, P = c.create.bank_id, M = c.loader, L = n.fiat_amount, [K, w] = p(!1), [B, A] = p({});
48
- _(() => {
49
- if (P) {
50
- const $ = f.find((G) => G.id === P);
51
- $ && A($);
52
- }
53
- }, [P]), _(() => {
54
- s && K && I({
55
- icon: ve,
56
- title: "Withdraw Success",
57
- message: "Your transaction was successful for more details on the transaction please track your order.",
58
- cancelButtonText: "Withdraw again",
59
- onCancel: () => {
60
- d(Q()), N(Z);
61
- },
62
- confirmButtonText: "Track Order",
63
- onConfirm: () => {
64
- h && h("/history"), d(Q());
65
- },
66
- height: "490px"
67
- });
68
- }, [s]), _(() => {
69
- q();
70
- }, []);
71
- const q = () => {
72
- d(
73
- le(
74
- {
75
- apiKey: x,
76
- transaction_type: n.transaction_type,
77
- coin_amount: n.fiat_amount,
78
- payment_type: n.payment_type,
79
- fiat_ccy: n.fiat_currency,
80
- payment_provider: n.payment_provider
81
- },
82
- z
83
- )
84
- );
85
- }, C = () => {
86
- d(
87
- Te({
88
- apiKey: x,
89
- quoteId: n.quote_id,
90
- bankId: c.create.bank_id
91
- })
92
- ), w(!0);
93
- };
94
- return /* @__PURE__ */ a(E, { children: [
95
- /* @__PURE__ */ e(g, {}),
96
- /* @__PURE__ */ e(
97
- se,
98
- {
99
- onClickHandler: () => N(de),
100
- backBtnText: "Confirm Your Order"
101
- }
102
- ),
103
- /* @__PURE__ */ e(r, { mt: 2, variant: "sm", fontWeight: 600, children: "Funds received at" }),
104
- /* @__PURE__ */ a(y, { mt: 2, className: u["confirm-payment"], children: [
105
- /* @__PURE__ */ e(
106
- "img",
107
- {
108
- src: n.payment_type === H ? ke : Ee,
109
- width: 100,
110
- alt: "payment"
111
- }
112
- ),
113
- /* @__PURE__ */ e(r, { variant: "caption", component: "span", children: /* @__PURE__ */ e("strong", { children: n.payment_type === H ? "Bank Account" : "Debit Card" }) })
114
- ] }),
115
- n.payment_type === H && /* @__PURE__ */ a(E, { children: [
116
- /* @__PURE__ */ e(r, { mt: 3, variant: "caption", component: "p", children: /* @__PURE__ */ e("b", { children: "Bank Details" }) }),
117
- /* @__PURE__ */ e(y, { sx: { color: "#A6A6A6" }, children: /* @__PURE__ */ a(m, { container: !0, children: [
118
- /* @__PURE__ */ e(m, { className: "text-left", item: !0, xs: 6, children: /* @__PURE__ */ e(r, { variant: "caption", children: "Account Name" }) }),
119
- /* @__PURE__ */ e(m, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ e(r, { variant: "caption", children: B.accountName }) }),
120
- /* @__PURE__ */ e(m, { className: "text-left", item: !0, xs: 6, children: /* @__PURE__ */ e(r, { variant: "caption", children: "Bank Name" }) }),
121
- /* @__PURE__ */ e(m, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ e(r, { variant: "caption", children: B.bankName }) }),
122
- /* @__PURE__ */ e(m, { className: "text-left", item: !0, xs: 6, children: /* @__PURE__ */ e(r, { variant: "caption", children: "IBAN" }) }),
123
- /* @__PURE__ */ e(m, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ e(r, { variant: "caption", children: B.accountNumber }) }),
124
- /* @__PURE__ */ e(m, { className: "text-left", item: !0, xs: 6, children: /* @__PURE__ */ e(r, { variant: "caption", children: "BIC" }) }),
125
- /* @__PURE__ */ e(m, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ e(r, { variant: "caption", children: B.bicCode }) })
126
- ] }) })
127
- ] }),
128
- /* @__PURE__ */ e(r, { mt: 3, variant: "sm", fontWeight: 600, component: "p", children: "Order Estimate Details" }),
129
- /* @__PURE__ */ e(y, { sx: { color: "#A6A6A6" }, children: /* @__PURE__ */ a(m, { container: !0, children: [
130
- /* @__PURE__ */ e(m, { className: "text-left", item: !0, xs: 6, children: /* @__PURE__ */ e(r, { variant: "caption", children: "Withdraw Amount" }) }),
131
- /* @__PURE__ */ e(m, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ a(r, { variant: "caption", children: [
132
- (+L * 1).toFixed(2),
133
- " ",
134
- n.fiat_currency
135
- ] }) }),
136
- /* @__PURE__ */ e(m, { className: "text-left", item: !0, xs: 6, children: /* @__PURE__ */ e(r, { variant: "caption", children: "Total Amount received" }) }),
137
- /* @__PURE__ */ e(m, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ a(r, { variant: "caption", children: [
138
- (+n.fiat_out_amount * 1).toFixed(2),
139
- " ",
140
- n.fiat_currency
141
- ] }) }),
142
- /* @__PURE__ */ e(m, { className: "text-left", item: !0, xs: 6, children: /* @__PURE__ */ e(r, { variant: "caption", children: "Total Fees" }) }),
143
- /* @__PURE__ */ e(m, { className: "text-right", item: !0, xs: 6, children: /* @__PURE__ */ a(r, { variant: "caption", children: [
144
- (+n.total_fee * 1).toFixed(2),
145
- " ",
146
- n.fiat_currency
147
- ] }) })
148
- ] }) }),
149
- /* @__PURE__ */ e(y, { mt: 4, children: /* @__PURE__ */ e(
150
- X,
151
- {
152
- onClick: C,
153
- disabled: M,
154
- fullWidth: !0,
155
- children: /* @__PURE__ */ e("strong", { children: M ? /* @__PURE__ */ a(E, { children: [
156
- /* @__PURE__ */ e(k, { size: 15, color: "inherit" }),
157
- " Processing..."
158
- ] }) : "Payment Details" })
159
- }
160
- ) })
161
- ] });
162
- }, rt = ({
163
- setScreen: N,
164
- orderData: x
165
- }) => {
166
- const c = me(), d = Y(ce), h = d.loader;
167
- d.message;
168
- const I = d.banks, g = x.create.bank_id, [b, f] = p(!1);
169
- _(() => {
170
- c(Ve());
171
- }, []);
172
- const n = (s) => {
173
- b || (f(!0), c(Pe(s.id)), N(pe));
174
- };
175
- return /* @__PURE__ */ a(E, { children: [
176
- /* @__PURE__ */ e(
177
- se,
178
- {
179
- onClickHandler: () => N(Z),
180
- backBtnText: "Select Bank Account"
181
- }
182
- ),
183
- h ? /* @__PURE__ */ e(y, { className: "text-center", mt: 8, children: /* @__PURE__ */ e(k, {}) }) : /* @__PURE__ */ a(E, { children: [
184
- I.map((s) => /* @__PURE__ */ e(
185
- y,
186
- {
187
- className: u["bank-item"],
188
- onClick: () => n(s),
189
- children: /* @__PURE__ */ a(m, { container: !0, children: [
190
- /* @__PURE__ */ e(m, { item: !0, xs: 10, className: "content-center", children: /* @__PURE__ */ a(y, { sx: { textAlign: "left" }, children: [
191
- /* @__PURE__ */ e("p", { className: u["bank-name"], children: /* @__PURE__ */ e("strong", { children: s.bankName }) }),
192
- /* @__PURE__ */ a("p", { className: u["bank-account"], children: [
193
- s.accountName,
194
- " | ***",
195
- s.accountNumber.slice(-4)
196
- ] })
197
- ] }) }),
198
- /* @__PURE__ */ e(m, { item: !0, xs: 2, children: /* @__PURE__ */ e(r, { sx: { textAlign: "right" }, children: g === s.id ? /* @__PURE__ */ e(
199
- $e,
200
- {
201
- sx: { fontSize: 30, color: "#195BB6" }
202
- }
203
- ) : /* @__PURE__ */ e(qe, { sx: { fontSize: 30, color: "#195BB6" } }) }) })
204
- ] })
205
- },
206
- s.id
207
- )),
208
- b && /* @__PURE__ */ e(y, { mt: 4, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(k, {}) })
209
- ] }),
210
- /* @__PURE__ */ e(je, {}),
211
- /* @__PURE__ */ e(r, { className: "text-center", variant: "h6", mt: 2, mb: 2, children: /* @__PURE__ */ e("strong", { children: "OR" }) }),
212
- /* @__PURE__ */ e(Ge, {})
213
- ] });
214
- }, it = ({
215
- setScreen: N,
216
- orderData: x,
217
- dispatch: c,
218
- fiatAssets: d,
219
- showAlertMessage: h,
220
- partnerKey: I
221
- }) => {
222
- var re, ie;
223
- const g = d.fiats, b = d.loader, f = x.loader, n = x.estimate[z], s = n.fiat_out_amount, P = n.total_fee;
224
- let M = 0, L = 0;
225
- const K = n.fee_breakdown;
226
- for (let t = 0; t < K.length; t++) {
227
- const i = K[t];
228
- i.name === "ev_fee" ? M = Number(i.value) : i.name === "network_fee" && (L = Number(i.value));
229
- }
230
- const [w, B] = p(!1), [A, q] = p(0), [C, $] = p(2), [G, ue] = p([]), [R, he] = p([]), [ee, fe] = p(!1), [j, xe] = p(50), [st, ye] = p(3e3), [te, _e] = p(""), [W, ne] = p(
231
- n.fiat_amount || j.toString()
232
- ), T = g.find((t) => t.id === C), O = De(T == null ? void 0 : T.symbol);
233
- _(() => {
234
- const t = [];
235
- for (let i = 0; i < g.length; i++) {
236
- const o = {}, v = g[i];
237
- o.id = v.id, o.name = v.name, o.icon_uri = v.icon_uri, o.symbol = v.symbol, o.payment_options = [];
238
- const F = v.payment_options;
239
- for (let S = 0; S < F.length; S++) {
240
- const ae = {}, V = F[S];
241
- V.payment_provider !== Ie && V.active && V.payout_allowed && (Object.assign(ae, V), o.payment_options.push(ae));
242
- }
243
- o.payment_options.length > 0 && t.push(o);
244
- }
245
- he(t);
246
- }, [g]), _(() => {
247
- if (!C || R.length === 0)
248
- return;
249
- const t = [];
250
- for (let i = 0; i < R.length; i++) {
251
- if (R[i].id === C) {
252
- const o = R[i].payment_options;
253
- let v = !1;
254
- for (let F = 0; F < o.length; F++) {
255
- const S = o[F];
256
- S.active && S.payout_allowed && (t.push(S), o[F].id === A && (v = !0));
257
- }
258
- v || q(t[0].id);
259
- }
260
- ue(t);
261
- }
262
- }, [C, R]), _(() => {
263
- if (W && A && C) {
264
- c(Me(z)), B(!1), _e("");
265
- const t = setTimeout(() => {
266
- Ne();
267
- }, 1e3);
268
- return () => clearTimeout(t);
269
- }
270
- }, [W, A, C]);
271
- const Ne = () => {
272
- const t = G.find((o) => o.id === A), i = t.payment_type;
273
- c(
274
- le({
275
- apiKey: I,
276
- transaction_type: J,
277
- coin_amount: W,
278
- payment_type: i,
279
- fiat_ccy: T == null ? void 0 : T.symbol,
280
- payment_provider: t.payment_provider
281
- }, z)
282
- );
283
- }, ge = ({ value: t, label: i }) => {
284
- let o;
285
- if (i === "credit_debit_card" ? (o = Fe, A === t && (o = Se)) : (o = Be, A === t && (o = Re)), i)
286
- return /* @__PURE__ */ e(
287
- y,
288
- {
289
- mt: 0.5,
290
- sx: { cursor: "pointer" },
291
- onClick: () => q(t * 1),
292
- children: /* @__PURE__ */ e("img", { src: o, alt: "payment", width: "90%" })
293
- }
294
- );
295
- };
296
- _(() => {
297
- const t = x.types.length;
298
- if (t > 0)
299
- for (let i = 0; i < t; i++) {
300
- const o = x.types[i];
301
- if (o.type === J) {
302
- xe(parseFloat(o.min_deposit_amount)), ye(parseFloat(o.max_deposit_amount));
303
- break;
304
- }
305
- }
306
- }, [x.types]);
307
- const Ae = (t) => {
308
- const i = t.target.value;
309
- i ? /^([0-9]+)$/.test(i) && ne(i) : ne("");
310
- }, Ce = () => {
311
- if (!A)
312
- return h({ message: "Please select payment method" }), !1;
313
- if (!W)
314
- return h({ message: "Please enter amount" }), !1;
315
- if (!s)
316
- return h({
317
- message: "Please wait for the estimate to be calculated and then press next"
318
- }), !1;
319
- N(de);
320
- };
321
- return /* @__PURE__ */ a(E, { children: [
322
- /* @__PURE__ */ e(l, { container: !0, children: /* @__PURE__ */ e(l, { size: { xs: 6 }, children: /* @__PURE__ */ e(r, { className: u.label, variant: "caption", component: "p", children: "You Pay" }) }) }),
323
- /* @__PURE__ */ a(l, { mt: 0.5, spacing: 0, container: !0, children: [
324
- /* @__PURE__ */ e(l, { size: { xs: 6 }, children: /* @__PURE__ */ a(
325
- U,
326
- {
327
- variant: "filled",
328
- className: `${u.amount} ${u["fiat-field"]}`,
329
- fullWidth: !0,
330
- children: [
331
- /* @__PURE__ */ e(
332
- D,
333
- {
334
- value: W,
335
- onChange: Ae,
336
- type: "text",
337
- placeholder: `${j > 0 ? "$" + j + " minimum value" : ""}`,
338
- error: w,
339
- disableUnderline: !0,
340
- required: !0,
341
- fullWidth: !0
342
- }
343
- ),
344
- /* @__PURE__ */ e(oe, { className: u["amount-symbol"], children: " " })
345
- ]
346
- }
347
- ) }),
348
- /* @__PURE__ */ e(l, { size: { xs: 6 }, className: "content-center", children: b ? /* @__PURE__ */ e(
349
- k,
350
- {
351
- sx: { ml: 1 },
352
- size: 30
353
- }
354
- ) : /* @__PURE__ */ e(
355
- U,
356
- {
357
- variant: "filled",
358
- className: `text-left ${u["fiat-picker"]}`,
359
- fullWidth: !0,
360
- children: /* @__PURE__ */ e(
361
- Je,
362
- {
363
- input: /* @__PURE__ */ e(D, { disableUnderline: !0 }),
364
- sx: {
365
- borderTopLeftRadius: 0,
366
- "&::before": {
367
- borderBottom: "none"
368
- },
369
- ".MuiSelect-select": {
370
- fontSize: "21px",
371
- fontWeight: "bold",
372
- color: "#16359d",
373
- padding: "27px 12px 10px !important"
374
- },
375
- ".dropdown-list-item, span": {
376
- position: "relative",
377
- bottom: "5px"
378
- },
379
- ".MuiSvgIcon-root": {
380
- fill: "#16359D !important"
381
- }
382
- },
383
- value: C,
384
- variant: "filled",
385
- displayEmpty: !0,
386
- onChange: (t) => $(t.target.value),
387
- error: w,
388
- children: R.map((t) => /* @__PURE__ */ a(Qe, { value: t.id, children: [
389
- /* @__PURE__ */ e(Xe, { className: u["dropdown-list-item"], children: /* @__PURE__ */ e(
390
- "img",
391
- {
392
- src: t.icon_uri,
393
- onError: ({ currentTarget: i }) => {
394
- i.onerror = null, i.src = Ue;
395
- },
396
- alt: "tokenImg",
397
- width: "40",
398
- height: "40"
399
- }
400
- ) }),
401
- /* @__PURE__ */ e("span", { children: t.symbol })
402
- ] }, t.id))
403
- }
404
- )
405
- }
406
- ) }),
407
- te && /* @__PURE__ */ e(r, { variant: "caption", sx: { color: "red" }, children: /* @__PURE__ */ e("strong", { children: te }) })
408
- ] }),
409
- /* @__PURE__ */ a(y, { className: "text-left", mt: 3, children: [
410
- /* @__PURE__ */ e(r, { variant: "sm", fontWeight: 600, children: "Select Payment Method" }),
411
- b ? /* @__PURE__ */ e(k, { sx: { ml: 1, mt: 3 }, size: 50 }) : /* @__PURE__ */ e(l, { mt: 0.5, container: !0, children: G.map((t) => /* @__PURE__ */ e(l, { size: { xs: 2.5 }, children: /* @__PURE__ */ e(
412
- ge,
413
- {
414
- label: t.payment_type,
415
- value: t.id
416
- }
417
- ) }, t.id)) })
418
- ] }),
419
- /* @__PURE__ */ e(l, { mt: 4, container: !0, children: /* @__PURE__ */ e(l, { size: { xs: 4 }, children: /* @__PURE__ */ e(r, { className: u.label, variant: "caption", component: "p", children: "You Receive" }) }) }),
420
- /* @__PURE__ */ e(l, { mt: 0.5, container: !0, children: /* @__PURE__ */ e(l, { size: { xs: 12 }, children: /* @__PURE__ */ a(
421
- U,
422
- {
423
- className: `${u.amount} ${u["fiat-field"]}`,
424
- fullWidth: !0,
425
- children: [
426
- /* @__PURE__ */ e(
427
- D,
428
- {
429
- disableUnderline: !0,
430
- value: s && parseFloat((+s * 1).toFixed(5)),
431
- startAdornment: /* @__PURE__ */ e(Ze, { position: "start", children: /* @__PURE__ */ e(
432
- r,
433
- {
434
- sx: {
435
- fontWeight: "bold",
436
- fontSize: "24px",
437
- marginTop: "12px"
438
- },
439
- children: O
440
- }
441
- ) }),
442
- type: "text",
443
- readOnly: !0,
444
- fullWidth: !0
445
- }
446
- ),
447
- /* @__PURE__ */ e(oe, { className: u["amount-symbol"], children: +((re = n == null ? void 0 : n.output_token) == null ? void 0 : re.fiat_amount) * 1 > 0 ? O + (+((ie = n == null ? void 0 : n.output_token) == null ? void 0 : ie.fiat_amount) * 1).toFixed(2) : /* @__PURE__ */ e(E, { children: " " }) })
448
- ]
449
- }
450
- ) }) }),
451
- /* @__PURE__ */ e(y, { mt: 3, sx: { color: "#1A202C" }, children: /* @__PURE__ */ a(l, { container: !0, children: [
452
- /* @__PURE__ */ e(l, { className: "text-left", size: { xs: 12 }, children: /* @__PURE__ */ a(
453
- et,
454
- {
455
- sx: { padding: "0" },
456
- onClick: () => fe((t) => !t),
457
- disableFocusRipple: !0,
458
- disableRipple: !0,
459
- children: [
460
- /* @__PURE__ */ e(r, { variant: "caption", fontWeight: 500, children: "Fee Calculation" }),
461
- /* @__PURE__ */ e(
462
- He,
463
- {
464
- sx: {
465
- transform: `rotate(${ee ? "90" : "0"}deg)`,
466
- fontSize: "15px"
467
- }
468
- }
469
- )
470
- ]
471
- }
472
- ) }),
473
- ee && /* @__PURE__ */ a(E, { children: [
474
- /* @__PURE__ */ e(l, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(r, { variant: "caption", children: "Everest Fee" }) }),
475
- /* @__PURE__ */ e(l, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(r, { variant: "caption", children: [
476
- O,
477
- f ? /* @__PURE__ */ e(k, { size: 30, color: "primary" }) : M.toFixed(2)
478
- ] }) }),
479
- /* @__PURE__ */ e(l, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(r, { variant: "caption", children: "Network Fee" }) }),
480
- /* @__PURE__ */ e(l, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(r, { variant: "caption", children: [
481
- O,
482
- f ? /* @__PURE__ */ e(
483
- k,
484
- {
485
- sx: { ml: 1 },
486
- size: 15,
487
- color: "primary"
488
- }
489
- ) : L.toFixed(2)
490
- ] }) })
491
- ] }),
492
- /* @__PURE__ */ e(l, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(r, { variant: "caption", children: "Total Fees" }) }),
493
- /* @__PURE__ */ e(l, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(r, { variant: "caption", children: [
494
- O,
495
- f ? /* @__PURE__ */ e(k, { sx: { ml: 1 }, size: 15, color: "primary" }) : Number(P).toFixed(2)
496
- ] }) })
497
- ] }) }),
498
- /* @__PURE__ */ e(y, { mt: 4, children: /* @__PURE__ */ e(
499
- X,
500
- {
501
- onClick: Ce,
502
- disabled: w || !s,
503
- fullWidth: !0,
504
- children: /* @__PURE__ */ e("strong", { children: "Next" })
505
- }
506
- ) })
507
- ] });
508
- }, Z = "FORM_SCREEN", de = "BANK_SCREEN", pe = "CONFIRM_SCREEN", at = "MINIMAL_KYC_SCREEN", ot = ({ partnerKey: N, navigate: x }) => {
509
- const c = me(), d = Y((s) => s.order), h = d.error, I = Y((s) => s.fiatAssets), g = Y(
510
- (s) => s.cryptoAssets
511
- ), [b, f] = p(Z), { showAlertMessage: n } = ze();
512
- return _(() => {
513
- h && n({ message: h });
514
- }, [h]), _(() => {
515
- d.initMinimalKyc && (n({ message: h, type: "info" }), f(at));
516
- }, [d.initMinimalKyc]), _(() => (c(We()), c(we(J)), c(Oe()), () => {
517
- c(Q());
518
- }), []), /* @__PURE__ */ e(Ye, { addPadding: !0, children: {
519
- FORM_SCREEN: /* @__PURE__ */ e(
520
- it,
521
- {
522
- cryptoAssets: g,
523
- showAlertMessage: n,
524
- setScreen: f,
525
- fiatAssets: I,
526
- orderData: d,
527
- dispatch: c,
528
- partnerKey: N
529
- }
530
- ),
531
- BANK_SCREEN: /* @__PURE__ */ e(
532
- rt,
533
- {
534
- showAlertMessage: n,
535
- setScreen: f,
536
- orderData: d,
537
- dispatch: c
538
- }
539
- ),
540
- CONFIRM_SCREEN: /* @__PURE__ */ e(
541
- nt,
542
- {
543
- partnerKey: N,
544
- setScreen: f,
545
- showAlertMessage: n,
546
- orderData: d,
547
- dispatch: c,
548
- navigate: x
549
- }
550
- ),
551
- MINIMAL_KYC_SCREEN: /* @__PURE__ */ e(
552
- Le,
553
- {
554
- inputComponent: Ke,
555
- buttonComponent: X,
556
- onComplete: () => {
557
- f(pe);
558
- }
559
- }
560
- )
561
- }[b] });
562
- }, Ht = be(ot);
563
- export {
564
- nt as B,
565
- pe as C,
566
- Z as F,
567
- at as M,
568
- rt as W,
569
- it as a,
570
- de as b,
571
- Ht as i
572
- };