everest-npm-features 0.0.32 → 0.0.33

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 (230) hide show
  1. package/dist/{Alert-CUoIVlUd.js → Alert-DzsbFW3-.js} +38 -37
  2. package/dist/{Avatar-CwczQLPi.js → Avatar-1XklXr4O.js} +54 -53
  3. package/dist/{Backdrop-yR8IRnFX.js → Backdrop-CioURPVG.js} +7 -6
  4. package/dist/{Box-BwKpr_VI.js → Box-B0YSYLco.js} +5 -5
  5. package/dist/{Button-tAfK4lud.js → Button-Df4vgU24.js} +24 -22
  6. package/dist/{ButtonBase-CaH152Zd.js → ButtonBase-DLF5c6wi.js} +13 -12
  7. package/dist/{Cancel-BoEk0xRy.js → Cancel-4lT7GZUA.js} +1 -1
  8. package/dist/{CardContent-ZS4vlcvi.js → CardContent-D9wTdpu-.js} +14 -13
  9. package/dist/{CircularProgress-Yx712vpT.js → CircularProgress-xZA3lvba.js} +6 -5
  10. package/dist/{Close-CFg1QB5M.js → Close-CNwiMz_O.js} +1 -1
  11. package/dist/{Close-B_8kEwSt.js → Close-CxzDL3J-.js} +1 -1
  12. package/dist/{Container-CBPBT38n.js → Container-urNKV7hm.js} +4 -4
  13. package/dist/{ContentCopy-D4Eg7Nkm.js → ContentCopy-coPwrEuz.js} +1 -1
  14. package/dist/DefaultPropsProvider-CeF7UYM9.js +92 -0
  15. package/dist/DefaultPropsProvider-oAu9El-f.js +226 -0
  16. package/dist/{Delete-BGp4FPdE.js → Delete-jpMstGIF.js} +1 -1
  17. package/dist/{DialogContent-_gvZOy18.js → DialogContent-BMwlOnbW.js} +23 -22
  18. package/dist/{DialogTitle-dq22bYlF.js → DialogTitle-CfS0bb2K.js} +5 -5
  19. package/dist/{Divider-CIL55YSC.js → Divider-BShhMFf4.js} +5 -5
  20. package/dist/{ErrorOutline-BykbFh0r.js → ErrorOutline-CPQcnl2b.js} +1 -1
  21. package/dist/{FileDownload-BSy7tA6m.js → FileDownload-Bt3R_NBr.js} +1 -1
  22. package/dist/{FilledInput-QaJVaeIX.js → FilledInput-DuNqnPjc.js} +15 -14
  23. package/dist/{FormControl-H4D1Z6Ov.js → FormControl-RtZDQMdA.js} +6 -5
  24. package/dist/{FormControlLabel-BvI1nkJ1.js → FormControlLabel-BliKW48y.js} +18 -17
  25. package/dist/{GlobalStyles-DhHHc9O0.js → GlobalStyles-ChMhDfTS.js} +4 -4
  26. package/dist/{Grid-CPkjiKqX.js → Grid-CFe3amXO.js} +7 -7
  27. package/dist/{Grow-B2p7O_1C.js → Grow-CnGtel3u.js} +4 -4
  28. package/dist/{IconButton-WneJM4uP.js → IconButton-DHm-hucF.js} +11 -10
  29. package/dist/{Info-0vSsl6Bm.js → Info-BVeUSPyk.js} +1 -1
  30. package/dist/{InputAdornment-Bqn4-Kns.js → InputAdornment-DMiED3JH.js} +21 -20
  31. package/dist/{Link-DhdK4VfZ.js → Link-DBA9Yifs.js} +20 -19
  32. package/dist/{ListItemIcon-D657XWHf.js → ListItemIcon-CUcyTEEm.js} +6 -6
  33. package/dist/{Menu-BAFJBGa-.js → Menu-DLYFFrEk.js} +21 -20
  34. package/dist/{MenuItem-ByxiQtY2.js → MenuItem-DUdYOJr4.js} +40 -39
  35. package/dist/{Modal-DEfOsvWK.js → Modal-CFIQ_s3T.js} +15 -14
  36. package/dist/{Paper-jx_cZiyU.js → Paper-Bgt2WXI6.js} +11 -10
  37. package/dist/PlayArrow-BkJLdzUI.js +13 -0
  38. package/dist/{Popper-B1He9eVi.js → Popper-BBAoiZKn.js} +14 -13
  39. package/dist/{Portal-CLa9CbMv.js → Portal-BMAxiQwe.js} +2 -2
  40. package/dist/{RadioGroup-_-H2gvH2.js → RadioGroup-nvoSN0JN.js} +25 -24
  41. package/dist/{Select-CGei0bav.js → Select-CB5yWmyn.js} +12 -11
  42. package/dist/{Slide-DHG0r2gy.js → Slide-B9Nw0LZ4.js} +3 -3
  43. package/dist/{Stack-DH-Nxf9q.js → Stack-k55YTxET.js} +5 -5
  44. package/dist/{SwitchBase-BDUzpdBf.js → SwitchBase-C8zFyg_x.js} +11 -10
  45. package/dist/{TextField-DmiK1A_S.js → TextField-DPpRUQe3.js} +10 -9
  46. package/dist/{Typography-BQDN44CM.js → Typography-pAaje37G.js} +13 -12
  47. package/dist/assets/styles2.css +1 -1
  48. package/dist/assets/styles3.css +1 -1
  49. package/dist/{auth-IOh0JhPD.js → auth-BwI9H3c0.js} +1 -1
  50. package/dist/{bank-BNgO--wu.js → bank-D6E7Zpfd.js} +1 -1
  51. package/dist/clsx-BTaloaeC.js +264 -0
  52. package/dist/components/RocketRamp/MinimalKyc/form.js +10 -10
  53. package/dist/components/RocketRamp/MinimalKyc/index.js +1 -1
  54. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +7 -7
  55. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +7 -7
  56. package/dist/components/RocketRamp/Player/Buy/form.js +16 -16
  57. package/dist/components/RocketRamp/Player/Buy/index.js +7 -7
  58. package/dist/components/RocketRamp/Player/Dashboard/balance.js +7 -7
  59. package/dist/components/RocketRamp/Player/Dashboard/index.js +5 -5
  60. package/dist/components/RocketRamp/Player/Dashboard/transaction.js +4 -4
  61. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +10 -10
  62. package/dist/components/RocketRamp/Player/Sell/form.js +16 -16
  63. package/dist/components/RocketRamp/Player/Sell/index.js +8 -8
  64. package/dist/components/RocketRamp/Player/SignIn/index.js +6 -6
  65. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +5 -5
  66. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +5 -5
  67. package/dist/components/RocketRamp/Player/SignUp/email.js +5 -5
  68. package/dist/components/RocketRamp/Player/SignUp/index.js +7 -7
  69. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +9 -9
  70. package/dist/components/RocketRamp/Player/SignUp/summary.js +3 -3
  71. package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +3 -3
  72. package/dist/components/RocketRamp/ResetPassword/index.js +6 -6
  73. package/dist/components/RocketRamp/Shared/Button/index.js +2 -2
  74. package/dist/components/RocketRamp/Shared/Input/index.js +6 -6
  75. package/dist/components/RocketRamp/Shared/backBtn.js +3 -3
  76. package/dist/components/RocketRamp/Shared/transactionItem.js +5 -5
  77. package/dist/components/RocketRamp/Store/Dashboard/balance.js +6 -6
  78. package/dist/components/RocketRamp/Store/Dashboard/index.js +2 -2
  79. package/dist/components/RocketRamp/Store/Dashboard/stats.js +6 -6
  80. package/dist/components/RocketRamp/Store/Dashboard/transaction.js +4 -4
  81. package/dist/components/RocketRamp/Store/SignUp/index.js +7 -7
  82. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +9 -9
  83. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +7 -7
  84. package/dist/components/RocketRamp/Store/SignUp/summary.js +3 -3
  85. package/dist/components/RocketRamp/Store/SignUp/validateEmail.js +3 -3
  86. package/dist/components/RocketRamp/Transactions/index.js +9 -9
  87. package/dist/components/Shared/FullKyc/index.js +5 -5
  88. package/dist/components/Shared/FullKyc/pep.js +9 -9
  89. package/dist/components/Shared/FullKyc/personalDetails.js +7 -7
  90. package/dist/components/Shared/FullKyc/userInfo.js +12 -12
  91. package/dist/components/Shared/HistoryItem/index.js +99 -75
  92. package/dist/components/Shared/Incode/index.js +5 -5
  93. package/dist/components/Shared/MinimalKyc/index.js +9 -9
  94. package/dist/components/Shared/loader.js +2 -2
  95. package/dist/components/Shared/tooltip.js +2 -2
  96. package/dist/components/Shared/transition.js +1 -1
  97. package/dist/components/Wallet/Account/createIban.js +8 -8
  98. package/dist/components/Wallet/Account/iban.js +16 -16
  99. package/dist/components/Wallet/Account/index.js +24 -24
  100. package/dist/components/Wallet/Account/sendIban.js +19 -19
  101. package/dist/components/Wallet/Buy/confirmTransaction.js +8 -8
  102. package/dist/components/Wallet/Buy/form.js +20 -20
  103. package/dist/components/Wallet/Buy/index.js +7 -7
  104. package/dist/components/Wallet/Deposit/index.js +27 -25
  105. package/dist/components/Wallet/EnterpriseKyc/edd.js +8 -8
  106. package/dist/components/Wallet/EnterpriseKyc/index.js +85 -89
  107. package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +5 -5
  108. package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +3 -3
  109. package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +1 -1
  110. package/dist/components/Wallet/EnterpriseKyc/kycType.js +5 -5
  111. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +21 -21
  112. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +16 -16
  113. package/dist/components/Wallet/EnterpriseKyc/success.js +2 -2
  114. package/dist/components/Wallet/EnterpriseKyc/verify.js +5 -5
  115. package/dist/components/Wallet/History/index.js +18 -17
  116. package/dist/components/Wallet/Home/index.js +2 -2
  117. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +41 -41
  118. package/dist/components/Wallet/Portfolio/dropdown.js +7 -7
  119. package/dist/components/Wallet/Portfolio/index.js +159 -147
  120. package/dist/components/Wallet/Portfolio/tokenRow.js +3 -3
  121. package/dist/components/Wallet/Profile/documents.js +17 -17
  122. package/dist/components/Wallet/Profile/index.js +12 -12
  123. package/dist/components/Wallet/Receive/index.js +11 -11
  124. package/dist/components/Wallet/Sell/confirmTransaction.js +26 -10
  125. package/dist/components/Wallet/Sell/form.js +20 -20
  126. package/dist/components/Wallet/Sell/index.d.ts +1 -0
  127. package/dist/components/Wallet/Sell/index.js +12 -11
  128. package/dist/components/Wallet/Send/index.js +15 -15
  129. package/dist/components/Wallet/Shared/Auth/emailForm.js +3 -3
  130. package/dist/components/Wallet/Shared/Auth/otpForm.js +7 -7
  131. package/dist/components/Wallet/Shared/CardPayment/index.js +4 -4
  132. package/dist/components/Wallet/Shared/ConnectWallet/index.js +11 -11
  133. package/dist/components/Wallet/Shared/Container/index.js +2 -2
  134. package/dist/components/Wallet/Shared/Input/index.js +1 -1
  135. package/dist/components/Wallet/Shared/Keyboard/keyboard.js +3 -3
  136. package/dist/components/Wallet/Shared/Order/paymentButton.js +2 -2
  137. package/dist/components/Wallet/Shared/TokenModal/index.js +11 -11
  138. package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +4 -4
  139. package/dist/components/Wallet/Shared/addBank.js +12 -12
  140. package/dist/components/Wallet/Shared/appButton.js +6 -6
  141. package/dist/components/Wallet/Shared/backBtn.js +2 -2
  142. package/dist/components/Wallet/Shared/button.js +1 -1
  143. package/dist/components/Wallet/Shared/connectPlaidBank.js +6 -6
  144. package/dist/components/Wallet/Shared/inputField.js +1 -1
  145. package/dist/components/Wallet/Shared/manualSend.d.ts +11 -0
  146. package/dist/components/Wallet/Shared/manualSend.js +38 -0
  147. package/dist/components/Wallet/Shared/noData.js +2 -2
  148. package/dist/components/Wallet/Shared/pin.js +4 -4
  149. package/dist/components/Wallet/Shared/radioButton.js +3 -3
  150. package/dist/components/Wallet/Shared/step.js +2 -2
  151. package/dist/components/Wallet/Shared/timer.d.ts +9 -0
  152. package/dist/components/Wallet/Shared/timer.js +53 -0
  153. package/dist/components/Wallet/SignIn/index.js +3 -3
  154. package/dist/components/Wallet/SignUp/index.js +12 -11
  155. package/dist/components/Wallet/SignUp/terms.js +1 -1
  156. package/dist/components/Wallet/Stake/gems/index.js +11 -11
  157. package/dist/components/Wallet/Stake/id/index.js +12 -12
  158. package/dist/components/Wallet/Stake/index.js +12 -12
  159. package/dist/components/Wallet/Swap/form.d.ts +3 -0
  160. package/dist/components/Wallet/Swap/form.js +46 -0
  161. package/dist/components/Wallet/Swap/index.d.ts +3 -0
  162. package/dist/components/Wallet/Swap/index.js +19 -551
  163. package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -3
  164. package/dist/components/Wallet/Withdraw/bankSelect.js +12 -12
  165. package/dist/components/Wallet/Withdraw/confirmTransaction.js +10 -10
  166. package/dist/components/Wallet/Withdraw/form.js +17 -17
  167. package/dist/components/Wallet/Withdraw/index.js +6 -6
  168. package/dist/{constants-DWENgBjv.js → constants-CQOuVN6n.js} +130 -128
  169. package/dist/{createSvgIcon-BgBEJXMh.js → createSvgIcon-Cuzqm90l.js} +25 -24
  170. package/dist/{createTheme-DmGCMO09.js → createTheme-CD19zQB7.js} +13 -13
  171. package/dist/{cryptoAssets-C7fIAflf.js → cryptoAssets-Cma8qeDc.js} +1 -1
  172. package/dist/defaultTheme-C35y5cLB.js +5 -0
  173. package/dist/{dividerClasses-BVK5cNr7.js → dividerClasses-BDxa2gAa.js} +2 -2
  174. package/dist/{documents-BA_pUCQh.js → documents-72bUeBkP.js} +17 -17
  175. package/dist/{elementAcceptingRef-BbsmdE_3.js → elementAcceptingRef-CqLvP78G.js} +1 -1
  176. package/dist/{elementTypeAcceptingRef-CdmXUhJ8.js → elementTypeAcceptingRef-BdsMpCbS.js} +1 -1
  177. package/dist/{emotion-react.browser.esm-C2mxoK1z.js → emotion-react.browser.esm-BIrDfk-B.js} +43 -43
  178. package/dist/{extendSxProp-Bwha5fon.js → extendSxProp-B8UjbJ56.js} +1 -1
  179. package/dist/generateUtilityClasses-BRiE4Guh.js +10 -0
  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 +23 -22
  184. package/dist/icons/buyIcon.js +1 -1
  185. package/dist/icons/canceledBuyIcon.js +1 -1
  186. package/dist/icons/canceledRedeemIcon.js +1 -1
  187. package/dist/icons/failedBuyIcon.js +1 -1
  188. package/dist/icons/failedRedeemIcon.js +1 -1
  189. package/dist/icons/pendingBuyIcon.js +1 -1
  190. package/dist/icons/pendingRedeemIcon.js +1 -1
  191. package/dist/icons/redeemIcon.js +1 -1
  192. package/dist/{index-BvD3O03n.js → index--NaHRmjW.js} +12 -12
  193. package/dist/{index-x9CniyQB.js → index-B0Z-Gjno.js} +1 -1
  194. package/dist/index-BAFH0iyw.js +917 -0
  195. package/dist/index-BIpSerUL.js +730 -0
  196. package/dist/index-BOev7FOu.js +623 -0
  197. package/dist/{index-CNLxRkdf.js → index-CRXWl3nL.js} +39 -40
  198. package/dist/{index-Cz_n7X7q.js → index-CpkMJeD0.js} +40 -41
  199. package/dist/{index-GXDDOdOI.js → index-DKuH9hDK.js} +42 -43
  200. package/dist/{index-C86AoaoB.js → index-DUcLo3x5.js} +4 -4
  201. package/dist/{index-v4KC1K_V.js → index-FwnHkXdK.js} +4 -4
  202. package/dist/{kyc-DbZ4KGFX.js → kyc-C_JyEEpu.js} +1 -1
  203. package/dist/main.js +10 -10
  204. package/dist/{memoTheme-BUUB1UEO.js → memoTheme-yHaPezod.js} +1 -1
  205. package/dist/order-DWfxKnom.js +51 -0
  206. package/dist/{pep-C_LViPSb.js → pep-B3tW-JmQ.js} +25 -24
  207. package/dist/{radioButton-CBcYX40o.js → radioButton-CzlYB0Lh.js} +18 -17
  208. package/dist/{react-redux-C7I9-1M6.js → react-redux-B4BZippc.js} +2 -2
  209. package/dist/{refType-CaiGhRso.js → refType-BsTH3qnM.js} +1 -1
  210. package/dist/{stake-tw1n23io.js → stake-fFsvxcKJ.js} +1 -1
  211. package/dist/styles.module-CHEBh2ID.js +35 -0
  212. package/dist/{styles.module-verVx4pE.js → styles.module-CUA1zLEJ.js} +1 -1
  213. package/dist/{tokenRow-C5N2uPgO.js → tokenRow-D32W5WH3.js} +2 -2
  214. package/dist/{tooltip-Dv3Lfsa2.js → tooltip-3UvETWtS.js} +19 -18
  215. package/dist/{useSlot-DtSnboW7.js → useSlot-CW7SOYlh.js} +1 -1
  216. package/dist/{useSlotProps-D62tWbb1.js → useSlotProps-BfEOwJvJ.js} +1 -1
  217. package/dist/{useTheme-XTDzJ69d.js → useTheme-BQJ5lp0i.js} +3 -3
  218. package/dist/{useTheme-Bfw5Gt1b.js → useTheme-S5_DHFsQ.js} +1 -1
  219. package/dist/{useThemeProps-DLhzJP-y.js → useThemeProps-DN9MjdTl.js} +3 -3
  220. package/dist/{wallet-DZwD-8oa.js → wallet-4-2Lns3R.js} +1 -1
  221. package/package.json +2 -2
  222. package/dist/DefaultPropsProvider-4P82EuVL.js +0 -232
  223. package/dist/DefaultPropsProvider-CZh8M2jM.js +0 -351
  224. package/dist/PlayArrow-BCWGWaUq.js +0 -8
  225. package/dist/defaultTheme-9fAph5zo.js +0 -5
  226. package/dist/fiatAssets-Bkh4X4hq.js +0 -8
  227. package/dist/index-BtYuKn1z.js +0 -724
  228. package/dist/index-dsM-tUkI.js +0 -708
  229. package/dist/order-BLu2iLAt.js +0 -43
  230. package/dist/styles.module-CRVptIQs.js +0 -33
@@ -0,0 +1,730 @@
1
+ import { jsxs as a, Fragment as S, jsx as e } from "react/jsx-runtime";
2
+ import { useMemo as Qe, useState as d, useEffect as g } from "react";
3
+ import Ze from "./hoc/withThemeProvider.js";
4
+ import { P as et, f as tt } from "./PlayArrow-BkJLdzUI.js";
5
+ import { I as rt } from "./Info-BVeUSPyk.js";
6
+ import { G as Me } from "./generic-token-B_ptO5yb.js";
7
+ import { PAYMENT_PROVIDER_PAYSAFE as nt, ID_TOKEN_SYMBOL as Re, FIAT_TO_EVER_ID as le, FIAT_TO_TOKEN as ce, ESTIMATE_TOOLTIP_TEXT as it, PAYMENT_BANK as Se, SEPA_ICON as at, VISA_ICON as st } from "./util/constants.js";
8
+ import { ah as P } from "./constants-CQOuVN6n.js";
9
+ import { c as ot, d as lt } from "./index-FwnHkXdK.js";
10
+ import { d as ct, e as Be, f as mt, g as Pe, b as dt, h as pt } from "./order-DWfxKnom.js";
11
+ import { M as ut } from "./tooltip-3UvETWtS.js";
12
+ import { getCurrencySymbol as ke, getNetworkBackGround as ft } from "./util/functions.js";
13
+ import de from "./components/Wallet/Shared/appButton.js";
14
+ import ht from "./components/Wallet/Shared/backBtn.js";
15
+ import { s as c } from "./styles.module-CHEBh2ID.js";
16
+ import { T as o } from "./Typography-pAaje37G.js";
17
+ import { B as F } from "./Box-B0YSYLco.js";
18
+ import { G as i } from "./Grid-CFe3amXO.js";
19
+ import { C as E } from "./CircularProgress-xZA3lvba.js";
20
+ import { a as T, u as yt } from "./react-redux-B4BZippc.js";
21
+ import { f as xt } from "./cryptoAssets-Cma8qeDc.js";
22
+ import { u as _t, a as gt } from "./wallet-4-2Lns3R.js";
23
+ import { useSnackBarContext as Nt } from "./context/snackBarContext.js";
24
+ import { AuthContainer as bt } from "./components/Wallet/Shared/Container/index.js";
25
+ import vt from "./components/Wallet/Shared/CardPayment/index.js";
26
+ import Ct from "./components/Shared/MinimalKyc/index.js";
27
+ import Et from "./components/Wallet/Shared/Input/index.js";
28
+ import Ft from "./components/Wallet/Shared/TokenModal/index.js";
29
+ import { PaymentButton as At } from "./components/Wallet/Shared/Order/paymentButton.js";
30
+ import ze from "./components/Wallet/Shared/Order/selectCustomIcon.js";
31
+ import { F as G } from "./FormControl-RtZDQMdA.js";
32
+ import { F as ee } from "./FilledInput-DuNqnPjc.js";
33
+ import { F as Ie, I as we } from "./TextField-DPpRUQe3.js";
34
+ import { S as oe } from "./Select-CB5yWmyn.js";
35
+ import { M as te } from "./MenuItem-DUdYOJr4.js";
36
+ import { L as Oe } from "./ListItemIcon-CUcyTEEm.js";
37
+ import { I as We } from "./IconButton-DHm-hucF.js";
38
+ const Mt = ({
39
+ setScreen: A,
40
+ orderData: y,
41
+ dispatch: M,
42
+ fiatAssets: N,
43
+ cryptoAssets: m,
44
+ getCryptoAssets: r,
45
+ showAlertMessage: f,
46
+ partnerKey: $,
47
+ walletAddress: b,
48
+ setWalletAddress: z,
49
+ outputToken: s,
50
+ setOutputToken: I,
51
+ paymentId: p,
52
+ setPaymentId: w,
53
+ currencyId: h,
54
+ setCurrencyId: re,
55
+ paymentOptions: V,
56
+ setPaymentOptions: ne
57
+ }) => {
58
+ var Ee, Fe;
59
+ const ie = T(ot), ae = T(lt), { data: Y, loader: q } = ie, { data: H, loader: pe } = ae, K = N.fiats, u = N.loader, R = m.featureTokens.buy.list, O = m.featureTokens.buy.default, X = m.loader, J = y.loader, x = y.estimate[P], Q = x.crypto_out_amount, Te = x.conversion_price, $e = x.total_fee;
60
+ let ue = 0, fe = 0;
61
+ const he = x.fee_breakdown;
62
+ for (let t = 0; t < he.length; t++) {
63
+ const n = he[t];
64
+ n.name === "ev_fee" ? ue = Number(n.value) : n.name === "network_fee" && (fe = Number(n.value));
65
+ }
66
+ const Ye = Qe(() => [
67
+ ...Y,
68
+ ...H.filter(
69
+ (t) => !Y.some(
70
+ (n) => n.address.toLowerCase() === t.address.toLowerCase()
71
+ )
72
+ )
73
+ ], [Y, H]), [se, U] = d(!1), [W, qe] = d([]), [ye, Ke] = d(!1), [xe, Ue] = d(50), [_e, De] = d(3e3), [D, je] = d(50), [ge, Ge] = d(3e3), [Ne, j] = d(""), [B, be] = d(
74
+ x.fiat_amount || D.toString()
75
+ ), [Ve, ve] = d(!1), k = K.find((t) => t.id === h), v = ke(k == null ? void 0 : k.symbol);
76
+ g(() => {
77
+ const t = [];
78
+ for (let n = 0; n < K.length; n++) {
79
+ const l = {}, _ = K[n];
80
+ l.id = _.id, l.name = _.name, l.icon_uri = _.icon_uri, l.symbol = _.symbol, l.payment_options = [];
81
+ const C = _.payment_options;
82
+ for (let L = 0; L < C.length; L++) {
83
+ const Ae = {}, Z = C[L];
84
+ Z.payment_provider !== nt && Z.active && Z.payin_allowed && (Object.assign(Ae, Z), l.payment_options.push(Ae));
85
+ }
86
+ l.payment_options.length > 0 && t.push(l);
87
+ }
88
+ qe(t);
89
+ }, [K]), g(() => {
90
+ if (!h || W.length === 0)
91
+ return;
92
+ const t = [];
93
+ for (let n = 0; n < W.length; n++) {
94
+ if (W[n].id === h) {
95
+ const l = W[n].payment_options;
96
+ let _ = !1;
97
+ for (let C = 0; C < l.length; C++) {
98
+ const L = l[C];
99
+ L.active && (t.push(L), l[C].id === p && (_ = !0));
100
+ }
101
+ _ || w(t[0].id);
102
+ }
103
+ ne(t);
104
+ }
105
+ }, [h, W]), g(() => {
106
+ !s.symbol && O && O.id && I(O);
107
+ }, [O]), g(() => {
108
+ h && r && r(h);
109
+ }, [h, b]), g(() => {
110
+ if (s && s.id && B && p && h) {
111
+ M(ct(P)), U(!1), j("");
112
+ const t = setTimeout(() => {
113
+ He();
114
+ }, 1e3);
115
+ return () => clearTimeout(t);
116
+ }
117
+ }, [s, B, p, R, h]);
118
+ const He = () => {
119
+ var _;
120
+ const t = parseFloat(B);
121
+ if (s.symbol === Re) {
122
+ if (xe > t)
123
+ return j(
124
+ `Minimum value should be greater than ${v + xe}`
125
+ ), U(!0), !1;
126
+ if (_e * 1 < t)
127
+ return j(
128
+ `Maximum value should be less than ${v + _e}`
129
+ ), U(!0), !1;
130
+ } else {
131
+ if (D * 1 > t)
132
+ return j(
133
+ `Minimum value should be greater than ${v + D}`
134
+ ), U(!0), !1;
135
+ if (ge * 1 < t)
136
+ return j(
137
+ `Maximum value should be less than ${v + ge}`
138
+ ), U(!0), !1;
139
+ }
140
+ const n = V.find((C) => C.id === p), l = n.payment_type;
141
+ M(
142
+ Be(
143
+ {
144
+ apiKey: $,
145
+ transaction_type: s.symbol === Re ? le : ce,
146
+ coin_amount: B,
147
+ exchange: s.exchange,
148
+ payment_type: l,
149
+ fiat_ccy: k == null ? void 0 : k.symbol,
150
+ crypto_ccy: s.symbol,
151
+ network: (_ = s.network) == null ? void 0 : _.name,
152
+ payment_provider: n.payment_provider
153
+ },
154
+ P
155
+ )
156
+ );
157
+ };
158
+ g(() => {
159
+ const t = y.types.length;
160
+ if (t > 0)
161
+ for (let n = 0; n < t; n++) {
162
+ const l = y.types[n];
163
+ if (l.type === le) {
164
+ Ue(parseFloat(l.min_deposit_amount)), De(parseFloat(l.max_deposit_amount));
165
+ break;
166
+ }
167
+ if (l.type === ce) {
168
+ je(parseFloat(l.min_deposit_amount)), Ge(parseFloat(l.max_deposit_amount));
169
+ break;
170
+ }
171
+ }
172
+ }, [y.types]);
173
+ const Xe = (t) => {
174
+ const n = t.target.value;
175
+ n ? /^([0-9.]+)$/.test(n) && be(n) : be("");
176
+ }, Ce = (t) => {
177
+ const n = R.find((l) => l.symbol === t);
178
+ I(n);
179
+ }, Je = () => {
180
+ if (!s.id)
181
+ return f({ message: "Please select token" }), !1;
182
+ if (!p)
183
+ return f({ message: "Please select payment method" }), !1;
184
+ if (!B)
185
+ return f({ message: "Please enter amount" }), !1;
186
+ if (!b)
187
+ return f({ message: "Please select wallet address" }), !1;
188
+ if (!Q)
189
+ return f({
190
+ message: "Please wait for the estimate to be calculated and then press next"
191
+ }), !1;
192
+ A(me);
193
+ };
194
+ return /* @__PURE__ */ a(S, { children: [
195
+ /* @__PURE__ */ e(i, { container: !0, children: /* @__PURE__ */ e(i, { size: { xs: 6 }, children: /* @__PURE__ */ e(o, { className: c.label, variant: "caption", component: "p", children: "You Pay" }) }) }),
196
+ /* @__PURE__ */ a(i, { mt: 0.5, spacing: 0, container: !0, className: c["field-set"], children: [
197
+ /* @__PURE__ */ e(i, { size: { xs: 7 }, children: /* @__PURE__ */ a(
198
+ G,
199
+ {
200
+ variant: "filled",
201
+ className: `${c.amount} ${c["fiat-field"]}`,
202
+ fullWidth: !0,
203
+ children: [
204
+ /* @__PURE__ */ e(
205
+ ee,
206
+ {
207
+ value: B,
208
+ onChange: Xe,
209
+ type: "text",
210
+ placeholder: `${D > 0 ? "$" + D + " minimum value" : ""}`,
211
+ error: se,
212
+ disableUnderline: !0,
213
+ required: !0,
214
+ fullWidth: !0
215
+ }
216
+ ),
217
+ /* @__PURE__ */ e(Ie, { className: c["amount-symbol"], children: " " })
218
+ ]
219
+ }
220
+ ) }),
221
+ /* @__PURE__ */ e(i, { size: { xs: 5 }, className: "content-center", children: u ? /* @__PURE__ */ e(
222
+ E,
223
+ {
224
+ sx: { ml: 1 },
225
+ size: 30
226
+ }
227
+ ) : /* @__PURE__ */ e(
228
+ G,
229
+ {
230
+ variant: "filled",
231
+ className: `text-left ${c["fiat-picker"]}`,
232
+ fullWidth: !0,
233
+ children: /* @__PURE__ */ e(
234
+ oe,
235
+ {
236
+ IconComponent: ze,
237
+ input: /* @__PURE__ */ e(ee, { disableUnderline: !0 }),
238
+ sx: {
239
+ borderTopLeftRadius: 0,
240
+ "&::before": {
241
+ borderBottom: "none"
242
+ },
243
+ ".MuiSelect-select": {
244
+ fontSize: "21px",
245
+ fontWeight: "bold",
246
+ color: "#16359d",
247
+ padding: "28px 12px 23px !important"
248
+ },
249
+ ".dropdown-list-item, span": {
250
+ position: "relative",
251
+ bottom: "5px"
252
+ },
253
+ ".MuiSvgIcon-root": {
254
+ fill: "#16359D !important"
255
+ }
256
+ },
257
+ value: h,
258
+ variant: "filled",
259
+ displayEmpty: !0,
260
+ onChange: (t) => re(t.target.value),
261
+ error: se,
262
+ children: W.map((t) => /* @__PURE__ */ a(te, { value: t.id, children: [
263
+ /* @__PURE__ */ e(Oe, { className: c["dropdown-list-item"], children: /* @__PURE__ */ e(
264
+ "img",
265
+ {
266
+ src: t.icon_uri,
267
+ onError: ({ currentTarget: n }) => {
268
+ n.onerror = null, n.src = Me;
269
+ },
270
+ alt: "tokenImg",
271
+ width: "40",
272
+ height: "40"
273
+ }
274
+ ) }),
275
+ /* @__PURE__ */ e("span", { children: t.symbol })
276
+ ] }, t.id))
277
+ }
278
+ )
279
+ }
280
+ ) }),
281
+ Ne && /* @__PURE__ */ e(o, { variant: "caption", sx: { color: "red" }, children: /* @__PURE__ */ e("strong", { children: Ne }) })
282
+ ] }),
283
+ /* @__PURE__ */ a(F, { className: "text-left", mt: 3, children: [
284
+ /* @__PURE__ */ e(o, { variant: "sm", fontWeight: 600, children: "Select Payment Method" }),
285
+ u ? /* @__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(
286
+ At,
287
+ {
288
+ label: t.payment_type,
289
+ value: t.id,
290
+ paymentId: p,
291
+ setPaymentId: w
292
+ }
293
+ ) }, t.id)) })
294
+ ] }),
295
+ /* @__PURE__ */ e(i, { mt: 4, container: !0, children: /* @__PURE__ */ e(i, { size: { xs: 4 }, children: /* @__PURE__ */ e(o, { className: c.label, variant: "caption", component: "p", children: "You Receive" }) }) }),
296
+ /* @__PURE__ */ a(i, { mt: 0.5, container: !0, className: c["field-set"], children: [
297
+ /* @__PURE__ */ e(i, { size: { xs: 7 }, children: /* @__PURE__ */ a(
298
+ G,
299
+ {
300
+ className: `${c.amount} ${c["crypto-field"]}`,
301
+ fullWidth: !0,
302
+ children: [
303
+ /* @__PURE__ */ e(
304
+ ee,
305
+ {
306
+ disableUnderline: !0,
307
+ value: Q && parseFloat((+Q * 1).toFixed(5)),
308
+ type: "text",
309
+ readOnly: !0,
310
+ fullWidth: !0
311
+ }
312
+ ),
313
+ /* @__PURE__ */ e(Ie, { className: c["crypto-helper-text"], children: +((Ee = x == null ? void 0 : x.output_token) == null ? void 0 : Ee.fiat_amount) * 1 > 0 ? v + (+((Fe = x == null ? void 0 : x.output_token) == null ? void 0 : Fe.fiat_amount) * 1).toFixed(2) : /* @__PURE__ */ e(S, { children: " " }) })
314
+ ]
315
+ }
316
+ ) }),
317
+ /* @__PURE__ */ e(i, { size: { xs: 5 }, className: "content-center", children: X ? /* @__PURE__ */ e(E, { sx: { ml: 1 }, size: 30 }) : /* @__PURE__ */ a(
318
+ G,
319
+ {
320
+ variant: "filled",
321
+ className: `text-left ${c["crypto-picker"]}`,
322
+ fullWidth: !0,
323
+ children: [
324
+ (s == null ? void 0 : s.network) && /* @__PURE__ */ e(
325
+ we,
326
+ {
327
+ className: `${c["network-label"]} ${c[ft(s == null ? void 0 : s.network.name)]}`,
328
+ children: s == null ? void 0 : s.network.name
329
+ }
330
+ ),
331
+ /* @__PURE__ */ a(
332
+ oe,
333
+ {
334
+ IconComponent: ze,
335
+ input: /* @__PURE__ */ e(ee, { disableUnderline: !0 }),
336
+ sx: {
337
+ borderTopLeftRadius: 0,
338
+ "&::before": {
339
+ borderBottom: "none"
340
+ },
341
+ ".MuiSelect-select": {
342
+ fontSize: "21px",
343
+ fontWeight: "bold",
344
+ color: "#16359d",
345
+ padding: "28px 12px 23px !important"
346
+ },
347
+ ".dropdown-list-item, span": {
348
+ position: "relative",
349
+ bottom: "5px"
350
+ },
351
+ ".MuiSvgIcon-root": {
352
+ fill: "#16359D !important"
353
+ }
354
+ },
355
+ className: "buy-select-dd",
356
+ variant: "filled",
357
+ value: s.symbol,
358
+ displayEmpty: !0,
359
+ onChange: (t) => Ce(t.target.value),
360
+ onOpen: (t) => {
361
+ ve(!0), t.preventDefault();
362
+ },
363
+ defaultOpen: !1,
364
+ open: !1,
365
+ children: [
366
+ /* @__PURE__ */ e(te, { value: "", children: "Please select" }),
367
+ R.map((t) => /* @__PURE__ */ a(te, { value: t.symbol, children: [
368
+ /* @__PURE__ */ e(Oe, { className: c["dropdown-list-item"], children: /* @__PURE__ */ e(
369
+ "img",
370
+ {
371
+ src: t.icon_uri,
372
+ onError: ({ currentTarget: n }) => {
373
+ n.onerror = null, n.src = Me;
374
+ },
375
+ alt: "tokenImg",
376
+ width: "40",
377
+ height: "40"
378
+ }
379
+ ) }),
380
+ /* @__PURE__ */ e("span", { children: t.symbol })
381
+ ] }, t.id))
382
+ ]
383
+ }
384
+ )
385
+ ]
386
+ }
387
+ ) })
388
+ ] }),
389
+ /* @__PURE__ */ e(F, { mt: 3, sx: { color: "#1A202C" }, children: /* @__PURE__ */ a(i, { container: !0, children: [
390
+ /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 12 }, children: /* @__PURE__ */ a(
391
+ We,
392
+ {
393
+ sx: { padding: "0" },
394
+ onClick: () => Ke((t) => !t),
395
+ disableFocusRipple: !0,
396
+ disableRipple: !0,
397
+ children: [
398
+ /* @__PURE__ */ e(o, { variant: "caption", fontWeight: 700, children: "Fee Calculation" }),
399
+ /* @__PURE__ */ e(
400
+ et,
401
+ {
402
+ sx: {
403
+ transform: `rotate(${ye ? "90" : "0"}deg)`,
404
+ fontSize: "15px"
405
+ }
406
+ }
407
+ )
408
+ ]
409
+ }
410
+ ) }),
411
+ ye && /* @__PURE__ */ a(S, { children: [
412
+ /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(o, { variant: "caption", children: "Everest Fee" }) }),
413
+ /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(o, { variant: "caption", children: [
414
+ v,
415
+ J ? /* @__PURE__ */ e(
416
+ E,
417
+ {
418
+ sx: { ml: 1 },
419
+ size: 15,
420
+ color: "primary"
421
+ }
422
+ ) : ue.toFixed(2)
423
+ ] }) }),
424
+ /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(o, { variant: "caption", children: "Network Fee" }) }),
425
+ /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(o, { variant: "caption", children: [
426
+ v,
427
+ J ? /* @__PURE__ */ e(
428
+ E,
429
+ {
430
+ sx: { ml: 1 },
431
+ size: 15,
432
+ color: "primary"
433
+ }
434
+ ) : fe.toFixed(2)
435
+ ] }) })
436
+ ] }),
437
+ /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(o, { variant: "caption", children: "Total Fees" }) }),
438
+ /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(o, { variant: "caption", children: [
439
+ v,
440
+ J ? /* @__PURE__ */ e(E, { sx: { ml: 1 }, size: 15, color: "primary" }) : Number($e).toFixed(2)
441
+ ] }) }),
442
+ s && /* @__PURE__ */ a(S, { children: [
443
+ /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(o, { variant: "caption", children: [
444
+ "1 ",
445
+ s.symbol,
446
+ " ",
447
+ /* @__PURE__ */ e(
448
+ ut,
449
+ {
450
+ title: it,
451
+ placement: "right",
452
+ children: /* @__PURE__ */ e(We, { className: "info-fee-icon", children: /* @__PURE__ */ e(
453
+ rt,
454
+ {
455
+ sx: {
456
+ fontSize: "14px"
457
+ }
458
+ }
459
+ ) })
460
+ }
461
+ )
462
+ ] }) }),
463
+ /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(o, { variant: "caption", children: [
464
+ v,
465
+ J ? /* @__PURE__ */ e(
466
+ E,
467
+ {
468
+ sx: { ml: 1 },
469
+ size: 15,
470
+ color: "primary"
471
+ }
472
+ ) : Number(Te).toFixed(2)
473
+ ] }) })
474
+ ] })
475
+ ] }) }),
476
+ /* @__PURE__ */ e(F, { sx: { alignItems: "left", width: "100%" }, children: q || pe ? /* @__PURE__ */ e(F, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(E, {}) }) : /* @__PURE__ */ e(S, { children: /* @__PURE__ */ a(G, { variant: "filled", fullWidth: !0, children: [
477
+ !b && /* @__PURE__ */ e(we, { children: "Select wallet address" }),
478
+ /* @__PURE__ */ e(
479
+ oe,
480
+ {
481
+ value: b,
482
+ onChange: (t) => z && z(t.target.value),
483
+ children: Ye.map((t, n) => /* @__PURE__ */ e(te, { value: t.address, children: t.name + "(" + t.address + ")" }, n))
484
+ }
485
+ )
486
+ ] }) }) }),
487
+ /* @__PURE__ */ e(F, { mt: 4, children: /* @__PURE__ */ e(
488
+ de,
489
+ {
490
+ onClick: Je,
491
+ disabled: se || !Q,
492
+ fullWidth: !0,
493
+ children: /* @__PURE__ */ e("strong", { children: "Next" })
494
+ }
495
+ ) }),
496
+ /* @__PURE__ */ e(
497
+ Ft,
498
+ {
499
+ open: Ve,
500
+ setModal: ve,
501
+ loader: X,
502
+ tokenList: R,
503
+ tokenSelect: Ce
504
+ }
505
+ )
506
+ ] });
507
+ }, Rt = ({
508
+ setScreen: A,
509
+ partnerKey: y,
510
+ orderData: M,
511
+ dispatch: N,
512
+ walletAddress: m
513
+ }) => {
514
+ const r = M.estimate[P], f = M.create.order_id, $ = M.loader, b = r.fiat_amount, z = ke(r.fiat_currency), [s, I] = d(!1);
515
+ g(() => {
516
+ f && s && A(St);
517
+ }, [f]), g(() => {
518
+ p();
519
+ }, []);
520
+ const p = () => {
521
+ N(
522
+ Be(
523
+ {
524
+ apiKey: y,
525
+ transaction_type: r.transaction_type,
526
+ coin_amount: r.fiat_amount,
527
+ exchange: r.exchange,
528
+ payment_type: r.payment_type,
529
+ fiat_ccy: r.fiat_currency,
530
+ crypto_ccy: r.crypto_currency,
531
+ network: r.network,
532
+ payment_provider: r.payment_provider
533
+ },
534
+ P
535
+ )
536
+ );
537
+ }, w = () => {
538
+ N(
539
+ mt({
540
+ apiKey: y,
541
+ quoteId: r.quote_id,
542
+ walletAddress: m
543
+ })
544
+ ), I(!0);
545
+ };
546
+ return /* @__PURE__ */ a(S, { children: [
547
+ /* @__PURE__ */ e(
548
+ ht,
549
+ {
550
+ onClickHandler: () => A(Le),
551
+ backBtnText: "Confirm Your Order"
552
+ }
553
+ ),
554
+ /* @__PURE__ */ e(o, { mt: 2, variant: "sm", fontWeight: 600, children: "Using payment method" }),
555
+ r.payment_type && /* @__PURE__ */ a(F, { mt: 2, className: c["confirm-payment"], children: [
556
+ /* @__PURE__ */ e(
557
+ "img",
558
+ {
559
+ src: r.payment_type === Se ? at : st,
560
+ width: 100,
561
+ alt: "payment"
562
+ }
563
+ ),
564
+ /* @__PURE__ */ e(o, { variant: "caption", component: "span", children: /* @__PURE__ */ e("strong", { children: r.payment_type === Se ? "Bank Account" : "Debit Card" }) })
565
+ ] }),
566
+ /* @__PURE__ */ e(o, { mt: 4, variant: "sm", fontWeight: 600, children: "To Wallet Address" }),
567
+ /* @__PURE__ */ e(
568
+ F,
569
+ {
570
+ mt: 2,
571
+ className: c["confirm-payment"],
572
+ sx: { width: "100% !important" },
573
+ children: /* @__PURE__ */ e(o, { variant: "caption", component: "p", children: /* @__PURE__ */ e("strong", { children: m }) })
574
+ }
575
+ ),
576
+ /* @__PURE__ */ e(o, { mt: 3, variant: "sm", fontWeight: 600, component: "p", children: "Order Estimate Details" }),
577
+ /* @__PURE__ */ e(F, { sx: { color: "#A6A6A6" }, children: /* @__PURE__ */ a(i, { container: !0, children: [
578
+ /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(o, { variant: "caption", children: [
579
+ r.crypto_currency.toUpperCase(),
580
+ " @",
581
+ " ",
582
+ Number(r.conversion_price).toFixed(2),
583
+ " ",
584
+ r.fiat_currency
585
+ ] }) }),
586
+ /* @__PURE__ */ e(i, { className: "flex-right", size: { xs: 6 }, children: /* @__PURE__ */ e(
587
+ "span",
588
+ {
589
+ className: c["confirm-transaction-network"],
590
+ style: {
591
+ backgroundColor: r.network === "Ethereum" ? "#A1A9DC" : "#5D8CCC"
592
+ },
593
+ children: r.network
594
+ }
595
+ ) }),
596
+ /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(o, { variant: "caption", children: [
597
+ Number(r.crypto_out_amount).toFixed(5),
598
+ " ",
599
+ r.crypto_currency.toUpperCase()
600
+ ] }) }),
601
+ /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(o, { variant: "caption", children: [
602
+ (Number(b) - Number(r.total_fee)).toFixed(2),
603
+ " ",
604
+ r.fiat_currency
605
+ ] }) }),
606
+ /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(o, { variant: "caption", children: "Total Fees" }) }),
607
+ /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(o, { variant: "caption", children: [
608
+ Number(r.total_fee).toFixed(2),
609
+ " ",
610
+ r.fiat_currency
611
+ ] }) }),
612
+ /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(o, { variant: "caption", children: /* @__PURE__ */ e("strong", { children: "Order Total" }) }) }),
613
+ /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ e(o, { variant: "caption", children: /* @__PURE__ */ a("strong", { children: [
614
+ z,
615
+ Number(b).toFixed(2),
616
+ " ",
617
+ r.fiat_currency
618
+ ] }) }) })
619
+ ] }) }),
620
+ /* @__PURE__ */ e(F, { mt: 4, children: /* @__PURE__ */ e(
621
+ de,
622
+ {
623
+ onClick: w,
624
+ disabled: $,
625
+ fullWidth: !0,
626
+ children: /* @__PURE__ */ e("strong", { children: $ ? /* @__PURE__ */ a(S, { children: [
627
+ /* @__PURE__ */ e(E, { size: 15, color: "inherit" }),
628
+ " Processing..."
629
+ ] }) : "Payment Details" })
630
+ }
631
+ ) })
632
+ ] });
633
+ }, Le = "FORM_SCREEN", me = "CONFIRM_SCREEN", St = "PAYMENT_SCREEN", Pt = "MINIMAL_KYC_SCREEN", zt = ({ partnerKey: A, baseUrl: y, checkoutSdkKey: M }) => {
634
+ const { showAlertMessage: N } = Nt(), m = yt(), r = T((u) => u.order), f = r.error, b = T(
635
+ (u) => u.user.profile
636
+ ).everWalletAddress, z = T((u) => u.fiatAssets), s = T(
637
+ (u) => u.cryptoAssets
638
+ ), [I, p] = d(Le), [w, h] = d({
639
+ symbol: ""
640
+ }), [re, V] = d(0), [ne, ie] = d(1), [ae, Y] = d([]), [q, H] = d(b);
641
+ return g(() => {
642
+ f && N({ message: f });
643
+ }, [f]), g(() => {
644
+ r.initMinimalKyc && (N({ message: f, type: "info" }), p(Pt));
645
+ }, [r.initMinimalKyc]), g(() => (m(tt()), m(Pe(ce)), m(Pe(le)), m(_t()), m(gt()), () => {
646
+ m(dt());
647
+ }), []), /* @__PURE__ */ e(bt, { addPadding: !0, children: {
648
+ FORM_SCREEN: /* @__PURE__ */ e(
649
+ Mt,
650
+ {
651
+ showAlertMessage: N,
652
+ setScreen: p,
653
+ fiatAssets: z,
654
+ cryptoAssets: s,
655
+ orderData: r,
656
+ dispatch: m,
657
+ getCryptoAssets: (u) => {
658
+ m(
659
+ xt({
660
+ type: P,
661
+ id: u,
662
+ partnerKey: A,
663
+ walletAddress: q
664
+ })
665
+ );
666
+ },
667
+ partnerKey: A,
668
+ walletAddress: q,
669
+ setWalletAddress: H,
670
+ outputToken: w,
671
+ setOutputToken: h,
672
+ paymentId: re,
673
+ setPaymentId: V,
674
+ currencyId: ne,
675
+ setCurrencyId: ie,
676
+ paymentOptions: ae,
677
+ setPaymentOptions: Y
678
+ }
679
+ ),
680
+ CONFIRM_SCREEN: /* @__PURE__ */ e(
681
+ Rt,
682
+ {
683
+ partnerKey: A,
684
+ setScreen: p,
685
+ showAlertMessage: N,
686
+ orderData: r,
687
+ dispatch: m,
688
+ walletAddress: q
689
+ }
690
+ ),
691
+ PAYMENT_SCREEN: /* @__PURE__ */ e(
692
+ vt,
693
+ {
694
+ checkoutKey: M,
695
+ orderData: r,
696
+ initPaymentRequest: (u) => {
697
+ const R = r.estimate[P], O = r.create.order_id, X = {
698
+ token: u,
699
+ amount: Number(R.fiat_amount),
700
+ currency: R.fiat_currency,
701
+ reference: O,
702
+ success_url: `${y}/dashboard?payment=success`,
703
+ fail_url: `${y}/dashboard?payment=failed`
704
+ };
705
+ m(pt(X));
706
+ },
707
+ backBtnFunc: () => p(me)
708
+ }
709
+ ),
710
+ MINIMAL_KYC_SCREEN: /* @__PURE__ */ e(
711
+ Ct,
712
+ {
713
+ inputComponent: Et,
714
+ buttonComponent: de,
715
+ onComplete: () => {
716
+ p(me);
717
+ }
718
+ }
719
+ )
720
+ }[I] });
721
+ }, hr = Ze(zt);
722
+ export {
723
+ Mt as B,
724
+ me as C,
725
+ Le as F,
726
+ Pt as M,
727
+ St as P,
728
+ Rt as a,
729
+ hr as i
730
+ };