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
@@ -0,0 +1,723 @@
1
+ import { jsxs as o, Fragment as R, jsx as e } from "react/jsx-runtime";
2
+ import { useState as m, useEffect as g } from "react";
3
+ import Ge from "./hoc/withThemeProvider.js";
4
+ import { P as He } from "./PlayArrow-DRCGjsrx.js";
5
+ import { I as Xe } from "./Info-D2UkGxyK.js";
6
+ import { G as Ee } from "./generic-token-B_ptO5yb.js";
7
+ import { PAYMENT_PROVIDER_PAYSAFE as Je, ID_TOKEN_SYMBOL as Ae, FIAT_TO_EVER_ID as oe, FIAT_TO_TOKEN as se, ESTIMATE_TOOLTIP_TEXT as Qe, VISA_PAYMENT as Ze, VISA_PAYMENT_ACTIVE as et, SEPA_PAYMENT as tt, SEPA_PAYMENT_ACTIVE as nt, PAYMENT_BANK as Fe, SEPA_ICON as rt, VISA_ICON as it } from "./util/constants.js";
8
+ import { aa as z } from "./constants-CsMPRK0U.js";
9
+ import { u as at } from "./index-f15o1nhn.js";
10
+ import { b as ot, c as Ie, d as st, a as Me, o as lt, g as ct } from "./order-DmTHC7ZG.js";
11
+ import { M as mt } from "./tooltip-DGtrVEzU.js";
12
+ import { getCurrencySymbol as Oe, getNetworkBackGround as dt } from "./util/functions.js";
13
+ import ce from "./components/Wallet/Shared/appButton.js";
14
+ import pt from "./components/Wallet/Shared/backBtn.js";
15
+ import { s as c } from "./styles.module-BFHktEw2.js";
16
+ import { T as l } from "./Typography-DBlMiOti.js";
17
+ import { B as b } from "./Box-B12x52NC.js";
18
+ import { G as i } from "./Grid-BXyV_lM8.js";
19
+ import { C as A } from "./CircularProgress-t8uGhLMo.js";
20
+ import { u as D, a as ft } from "./react-redux-C7I9-1M6.js";
21
+ import { f as ut } from "./fiatAssets-DVHfFafS.js";
22
+ import { f as ht } from "./cryptoAssets-CzNDY1j6.js";
23
+ import { u as yt } from "./wallet-DDW5KCHp.js";
24
+ import { useSnackBarContext as xt } from "./context/snackBarContext.js";
25
+ import { AuthContainer as _t } from "./components/Wallet/Shared/Container/index.js";
26
+ import gt from "./components/Wallet/Shared/CardPayment/index.js";
27
+ import Nt from "./components/Shared/MinimalKyc/index.js";
28
+ import bt from "./components/Wallet/Shared/Input/index.js";
29
+ import vt from "./components/Wallet/Shared/TokenModal/index.js";
30
+ import { F as j } from "./FormControl-DeeQCuu5.js";
31
+ import { F as Q } from "./FilledInput-DrGeWgue.js";
32
+ import { F as Pe, I as Se } from "./TextField-q_SeLeNd.js";
33
+ import { S as ae } from "./Select-Chubcks_.js";
34
+ import { M as Z } from "./MenuItem-CeCt0bfa.js";
35
+ import { L as Re } from "./ListItemIcon-GKRFb1Gr.js";
36
+ import { I as ze } from "./IconButton-eWRhV6Q9.js";
37
+ const Ct = ({
38
+ setScreen: F,
39
+ orderData: x,
40
+ dispatch: M,
41
+ fiatAssets: N,
42
+ cryptoAssets: d,
43
+ getCryptoAssets: n,
44
+ showAlertMessage: u,
45
+ partnerKey: $,
46
+ walletAddress: v,
47
+ setWalletAddress: I,
48
+ outputToken: s,
49
+ setOutputToken: O,
50
+ paymentId: p,
51
+ setPaymentId: w,
52
+ currencyId: y,
53
+ setCurrencyId: ee,
54
+ paymentOptions: G,
55
+ setPaymentOptions: te
56
+ }) => {
57
+ var be, ve;
58
+ const H = D(at), ne = H.data, { loader: re } = H, P = N.fiats, X = N.loader, L = d.featureTokens.buy.list, q = d.featureTokens.buy.default, f = d.loader, S = x.loader, h = x.estimate[z], T = h.crypto_out_amount, Te = h.conversion_price, We = h.total_fee;
59
+ let me = 0, de = 0;
60
+ const pe = h.fee_breakdown;
61
+ for (let t = 0; t < pe.length; t++) {
62
+ const r = pe[t];
63
+ r.name === "ev_fee" ? me = Number(r.value) : r.name === "network_fee" && (de = Number(r.value));
64
+ }
65
+ const [ie, K] = m(!1), [W, ke] = m([]), [fe, Be] = m(!1), [ue, Ye] = m(50), [he, $e] = m(3e3), [U, Le] = m(50), [ye, qe] = m(3e3), [xe, V] = m(""), [k, _e] = m(
66
+ h.fiat_amount || U.toString()
67
+ ), [Ke, ge] = m(!1), B = P.find((t) => t.id === y), C = Oe(B == null ? void 0 : B.symbol);
68
+ g(() => {
69
+ const t = [];
70
+ for (let r = 0; r < P.length; r++) {
71
+ const a = {}, _ = P[r];
72
+ a.id = _.id, a.name = _.name, a.icon_uri = _.icon_uri, a.symbol = _.symbol, a.payment_options = [];
73
+ const E = _.payment_options;
74
+ for (let Y = 0; Y < E.length; Y++) {
75
+ const Ce = {}, J = E[Y];
76
+ J.payment_provider !== Je && J.active && J.payin_allowed && (Object.assign(Ce, J), a.payment_options.push(Ce));
77
+ }
78
+ a.payment_options.length > 0 && t.push(a);
79
+ }
80
+ ke(t);
81
+ }, [P]), g(() => {
82
+ if (!y || W.length === 0)
83
+ return;
84
+ const t = [];
85
+ for (let r = 0; r < W.length; r++) {
86
+ if (W[r].id === y) {
87
+ const a = W[r].payment_options;
88
+ let _ = !1;
89
+ for (let E = 0; E < a.length; E++) {
90
+ const Y = a[E];
91
+ Y.active && (t.push(Y), a[E].id === p && (_ = !0));
92
+ }
93
+ _ || w(t[0].id);
94
+ }
95
+ te(t);
96
+ }
97
+ }, [y, W]), g(() => {
98
+ !s.symbol && q && q.id && O(q);
99
+ }, [q]), g(() => {
100
+ y && n && n(y);
101
+ }, [y, v]), g(() => {
102
+ if (s && s.id && k && p && y) {
103
+ M(ot(z)), K(!1), V("");
104
+ const t = setTimeout(() => {
105
+ Ue();
106
+ }, 1e3);
107
+ return () => clearTimeout(t);
108
+ }
109
+ }, [s, k, p, L, y]);
110
+ const Ue = () => {
111
+ var _;
112
+ const t = parseFloat(k);
113
+ if (s.symbol === Ae) {
114
+ if (ue > t)
115
+ return V(
116
+ `Minimum value should be greater than ${C + ue}`
117
+ ), K(!0), !1;
118
+ if (he * 1 < t)
119
+ return V(
120
+ `Maximum value should be less than ${C + he}`
121
+ ), K(!0), !1;
122
+ } else {
123
+ if (U * 1 > t)
124
+ return V(
125
+ `Minimum value should be greater than ${C + U}`
126
+ ), K(!0), !1;
127
+ if (ye * 1 < t)
128
+ return V(
129
+ `Maximum value should be less than ${C + ye}`
130
+ ), K(!0), !1;
131
+ }
132
+ const r = G.find((E) => E.id === p), a = r.payment_type;
133
+ M(
134
+ Ie(
135
+ {
136
+ apiKey: $,
137
+ transaction_type: s.symbol === Ae ? oe : se,
138
+ coin_amount: k,
139
+ exchange: s.exchange,
140
+ payment_type: a,
141
+ fiat_ccy: B == null ? void 0 : B.symbol,
142
+ crypto_ccy: s.symbol,
143
+ network: (_ = s.network) == null ? void 0 : _.name,
144
+ payment_provider: r.payment_provider
145
+ },
146
+ z
147
+ )
148
+ );
149
+ }, Ve = ({ value: t, label: r }) => {
150
+ let a;
151
+ if (r === "credit_debit_card" ? (a = Ze, p === t && (a = et)) : (a = tt, p === t && (a = nt)), r)
152
+ return /* @__PURE__ */ e(
153
+ b,
154
+ {
155
+ mt: 0.5,
156
+ sx: { cursor: "pointer" },
157
+ onClick: () => w(t * 1),
158
+ children: /* @__PURE__ */ e("img", { src: a, alt: "payment", width: "90%" })
159
+ }
160
+ );
161
+ };
162
+ g(() => {
163
+ const t = x.types.length;
164
+ if (t > 0)
165
+ for (let r = 0; r < t; r++) {
166
+ const a = x.types[r];
167
+ if (a.type === oe) {
168
+ Ye(parseFloat(a.min_deposit_amount)), $e(parseFloat(a.max_deposit_amount));
169
+ break;
170
+ }
171
+ if (a.type === se) {
172
+ Le(parseFloat(a.min_deposit_amount)), qe(parseFloat(a.max_deposit_amount));
173
+ break;
174
+ }
175
+ }
176
+ }, [x.types]);
177
+ const je = (t) => {
178
+ const r = t.target.value;
179
+ r ? /^([0-9.]+)$/.test(r) && _e(r) : _e("");
180
+ }, Ne = (t) => {
181
+ const r = L.find((a) => a.symbol === t);
182
+ O(r);
183
+ }, De = () => {
184
+ if (!s.id)
185
+ return u({ message: "Please select token" }), !1;
186
+ if (!p)
187
+ return u({ message: "Please select payment method" }), !1;
188
+ if (!k)
189
+ return u({ message: "Please enter amount" }), !1;
190
+ if (!v)
191
+ return u({ message: "Please select wallet address" }), !1;
192
+ if (!T)
193
+ return u({
194
+ message: "Please wait for the estimate to be calculated and then press next"
195
+ }), !1;
196
+ F(le);
197
+ };
198
+ return /* @__PURE__ */ o(R, { children: [
199
+ /* @__PURE__ */ e(i, { container: !0, children: /* @__PURE__ */ e(i, { size: { xs: 6 }, children: /* @__PURE__ */ e(l, { className: c.label, variant: "caption", component: "p", children: "You Pay" }) }) }),
200
+ /* @__PURE__ */ o(i, { mt: 0.5, spacing: 0, container: !0, children: [
201
+ /* @__PURE__ */ e(i, { size: { xs: 6 }, children: /* @__PURE__ */ o(
202
+ j,
203
+ {
204
+ variant: "filled",
205
+ className: `${c.amount} ${c["fiat-field"]}`,
206
+ fullWidth: !0,
207
+ children: [
208
+ /* @__PURE__ */ e(
209
+ Q,
210
+ {
211
+ value: k,
212
+ onChange: je,
213
+ type: "text",
214
+ placeholder: `${U > 0 ? "$" + U + " minimum value" : ""}`,
215
+ error: ie,
216
+ disableUnderline: !0,
217
+ required: !0,
218
+ fullWidth: !0
219
+ }
220
+ ),
221
+ /* @__PURE__ */ e(Pe, { className: c["amount-symbol"], children: " " })
222
+ ]
223
+ }
224
+ ) }),
225
+ /* @__PURE__ */ e(i, { size: { xs: 6 }, className: "content-center", children: X ? /* @__PURE__ */ e(
226
+ A,
227
+ {
228
+ sx: { ml: 1 },
229
+ size: 30
230
+ }
231
+ ) : /* @__PURE__ */ e(
232
+ j,
233
+ {
234
+ variant: "filled",
235
+ className: `text-left ${c["fiat-picker"]}`,
236
+ fullWidth: !0,
237
+ children: /* @__PURE__ */ e(
238
+ ae,
239
+ {
240
+ input: /* @__PURE__ */ e(Q, { disableUnderline: !0 }),
241
+ sx: {
242
+ borderTopLeftRadius: 0,
243
+ "&::before": {
244
+ borderBottom: "none"
245
+ },
246
+ ".MuiSelect-select": {
247
+ fontSize: "21px",
248
+ fontWeight: "bold",
249
+ color: "#16359d",
250
+ padding: "27px 12px 10px !important"
251
+ },
252
+ ".dropdown-list-item, span": {
253
+ position: "relative",
254
+ bottom: "5px"
255
+ },
256
+ ".MuiSvgIcon-root": {
257
+ fill: "#16359D !important"
258
+ }
259
+ },
260
+ value: y,
261
+ variant: "filled",
262
+ displayEmpty: !0,
263
+ onChange: (t) => ee(t.target.value),
264
+ error: ie,
265
+ children: W.map((t) => /* @__PURE__ */ o(Z, { value: t.id, children: [
266
+ /* @__PURE__ */ e(Re, { className: c["dropdown-list-item"], children: /* @__PURE__ */ e(
267
+ "img",
268
+ {
269
+ src: t.icon_uri,
270
+ onError: ({ currentTarget: r }) => {
271
+ r.onerror = null, r.src = Ee;
272
+ },
273
+ alt: "tokenImg",
274
+ width: "40",
275
+ height: "40"
276
+ }
277
+ ) }),
278
+ /* @__PURE__ */ e("span", { children: t.symbol })
279
+ ] }, t.id))
280
+ }
281
+ )
282
+ }
283
+ ) }),
284
+ xe && /* @__PURE__ */ e(l, { variant: "caption", sx: { color: "red" }, children: /* @__PURE__ */ e("strong", { children: xe }) })
285
+ ] }),
286
+ /* @__PURE__ */ o(b, { className: "text-left", mt: 3, children: [
287
+ /* @__PURE__ */ e(l, { variant: "sm", fontWeight: 600, children: "Select Payment Method" }),
288
+ X ? /* @__PURE__ */ e(A, { sx: { ml: 1, mt: 3 }, size: 50 }) : /* @__PURE__ */ e(i, { mt: 0.5, container: !0, children: G.map((t) => /* @__PURE__ */ e(i, { size: { xs: 2.5 }, children: /* @__PURE__ */ e(
289
+ Ve,
290
+ {
291
+ label: t.payment_type,
292
+ value: t.id
293
+ }
294
+ ) }, t.id)) })
295
+ ] }),
296
+ /* @__PURE__ */ e(i, { mt: 4, container: !0, children: /* @__PURE__ */ e(i, { size: { xs: 4 }, children: /* @__PURE__ */ e(l, { className: c.label, variant: "caption", component: "p", children: "You Receive" }) }) }),
297
+ /* @__PURE__ */ o(i, { mt: 0.5, container: !0, children: [
298
+ /* @__PURE__ */ e(i, { size: { xs: 6 }, children: /* @__PURE__ */ o(
299
+ j,
300
+ {
301
+ className: `${c.amount} ${c["fiat-field"]}`,
302
+ fullWidth: !0,
303
+ children: [
304
+ /* @__PURE__ */ e(
305
+ Q,
306
+ {
307
+ disableUnderline: !0,
308
+ value: T && parseFloat((+T * 1).toFixed(5)),
309
+ type: "text",
310
+ readOnly: !0,
311
+ fullWidth: !0
312
+ }
313
+ ),
314
+ /* @__PURE__ */ e(Pe, { className: c["amount-symbol"], children: +((be = h == null ? void 0 : h.output_token) == null ? void 0 : be.fiat_amount) * 1 > 0 ? C + (+((ve = h == null ? void 0 : h.output_token) == null ? void 0 : ve.fiat_amount) * 1).toFixed(2) : /* @__PURE__ */ e(R, { children: " " }) })
315
+ ]
316
+ }
317
+ ) }),
318
+ /* @__PURE__ */ e(i, { size: { xs: 6 }, className: "content-center", children: f ? /* @__PURE__ */ e(A, { sx: { ml: 1 }, size: 30 }) : /* @__PURE__ */ o(
319
+ j,
320
+ {
321
+ variant: "filled",
322
+ className: `text-left ${c["crypto-picker"]}`,
323
+ fullWidth: !0,
324
+ children: [
325
+ (s == null ? void 0 : s.network) && /* @__PURE__ */ e(
326
+ Se,
327
+ {
328
+ className: `${c["network-label"]} ${c[dt(s == null ? void 0 : s.network.name)]}`,
329
+ children: s == null ? void 0 : s.network.name
330
+ }
331
+ ),
332
+ /* @__PURE__ */ o(
333
+ ae,
334
+ {
335
+ input: /* @__PURE__ */ e(Q, { 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: "27px 12px 10px !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) => Ne(t.target.value),
360
+ onOpen: (t) => {
361
+ ge(!0), t.preventDefault();
362
+ },
363
+ defaultOpen: !1,
364
+ open: !1,
365
+ children: [
366
+ /* @__PURE__ */ e(Z, { value: "", children: "Please select" }),
367
+ L.map((t) => /* @__PURE__ */ o(Z, { value: t.symbol, children: [
368
+ /* @__PURE__ */ e(Re, { className: c["dropdown-list-item"], children: /* @__PURE__ */ e(
369
+ "img",
370
+ {
371
+ src: t.icon_uri,
372
+ onError: ({ currentTarget: r }) => {
373
+ r.onerror = null, r.src = Ee;
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(b, { mt: 3, sx: { color: "#1A202C" }, children: /* @__PURE__ */ o(i, { container: !0, children: [
390
+ /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 12 }, children: /* @__PURE__ */ o(
391
+ ze,
392
+ {
393
+ sx: { padding: "0" },
394
+ onClick: () => Be((t) => !t),
395
+ disableFocusRipple: !0,
396
+ disableRipple: !0,
397
+ children: [
398
+ /* @__PURE__ */ e(l, { variant: "caption", fontWeight: 500, children: "Fee Calculation" }),
399
+ /* @__PURE__ */ e(
400
+ He,
401
+ {
402
+ sx: {
403
+ transform: `rotate(${fe ? "90" : "0"}deg)`,
404
+ fontSize: "15px"
405
+ }
406
+ }
407
+ )
408
+ ]
409
+ }
410
+ ) }),
411
+ fe && /* @__PURE__ */ o(R, { children: [
412
+ /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(l, { variant: "caption", children: "Everest Fee" }) }),
413
+ /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ o(l, { variant: "caption", children: [
414
+ C,
415
+ S ? /* @__PURE__ */ e(A, { size: 30, color: "primary" }) : me.toFixed(2)
416
+ ] }) }),
417
+ /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(l, { variant: "caption", children: "Network Fee" }) }),
418
+ /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ o(l, { variant: "caption", children: [
419
+ C,
420
+ S ? /* @__PURE__ */ e(
421
+ A,
422
+ {
423
+ sx: { ml: 1 },
424
+ size: 15,
425
+ color: "primary"
426
+ }
427
+ ) : de.toFixed(2)
428
+ ] }) })
429
+ ] }),
430
+ /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(l, { variant: "caption", children: "Total Fees" }) }),
431
+ /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ o(l, { variant: "caption", children: [
432
+ C,
433
+ S ? /* @__PURE__ */ e(A, { sx: { ml: 1 }, size: 15, color: "primary" }) : Number(We).toFixed(2)
434
+ ] }) }),
435
+ s && /* @__PURE__ */ o(R, { children: [
436
+ /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ o(l, { variant: "caption", children: [
437
+ "1 ",
438
+ s.symbol,
439
+ " ",
440
+ /* @__PURE__ */ e(
441
+ mt,
442
+ {
443
+ title: Qe,
444
+ placement: "right",
445
+ children: /* @__PURE__ */ e(ze, { className: "info-fee-icon", children: /* @__PURE__ */ e(
446
+ Xe,
447
+ {
448
+ sx: {
449
+ fontSize: "14px"
450
+ }
451
+ }
452
+ ) })
453
+ }
454
+ )
455
+ ] }) }),
456
+ /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ o(l, { variant: "caption", children: [
457
+ C,
458
+ S ? /* @__PURE__ */ e(
459
+ A,
460
+ {
461
+ sx: { ml: 1 },
462
+ size: 15,
463
+ color: "primary"
464
+ }
465
+ ) : Number(Te).toFixed(2)
466
+ ] }) })
467
+ ] })
468
+ ] }) }),
469
+ /* @__PURE__ */ e(b, { sx: { alignItems: "left", width: "100%" }, children: re ? /* @__PURE__ */ e(b, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(A, {}) }) : /* @__PURE__ */ e(R, { children: /* @__PURE__ */ o(j, { variant: "filled", fullWidth: !0, children: [
470
+ !v && /* @__PURE__ */ e(Se, { children: "Select wallet address" }),
471
+ /* @__PURE__ */ e(
472
+ ae,
473
+ {
474
+ value: v,
475
+ onChange: (t) => I && I(t.target.value),
476
+ children: ne.map((t, r) => /* @__PURE__ */ e(Z, { value: t.address, children: t.name + "(" + t.address + ")" }, r))
477
+ }
478
+ )
479
+ ] }) }) }),
480
+ /* @__PURE__ */ e(b, { mt: 4, children: /* @__PURE__ */ e(
481
+ ce,
482
+ {
483
+ onClick: De,
484
+ disabled: ie || !T,
485
+ fullWidth: !0,
486
+ children: /* @__PURE__ */ e("strong", { children: "Next" })
487
+ }
488
+ ) }),
489
+ /* @__PURE__ */ e(
490
+ vt,
491
+ {
492
+ open: Ke,
493
+ setModal: ge,
494
+ loader: f,
495
+ tokenList: L,
496
+ tokenSelect: Ne
497
+ }
498
+ )
499
+ ] });
500
+ }, Et = ({
501
+ setScreen: F,
502
+ partnerKey: x,
503
+ orderData: M,
504
+ dispatch: N,
505
+ walletAddress: d
506
+ }) => {
507
+ const n = M.estimate[z], u = M.create.order_id, $ = M.loader, v = n.fiat_amount, I = Oe(n.fiat_currency), [s, O] = m(!1);
508
+ g(() => {
509
+ u && s && F(At);
510
+ }, [u]), g(() => {
511
+ p();
512
+ }, []);
513
+ const p = () => {
514
+ N(
515
+ Ie(
516
+ {
517
+ apiKey: x,
518
+ transaction_type: n.transaction_type,
519
+ coin_amount: n.fiat_amount,
520
+ exchange: n.exchange,
521
+ payment_type: n.payment_type,
522
+ fiat_ccy: n.fiat_currency,
523
+ crypto_ccy: n.crypto_currency,
524
+ network: n.network,
525
+ payment_provider: n.payment_provider
526
+ },
527
+ z
528
+ )
529
+ );
530
+ }, w = () => {
531
+ N(
532
+ st({
533
+ apiKey: x,
534
+ quoteId: n.quote_id,
535
+ walletAddress: d
536
+ })
537
+ ), O(!0);
538
+ };
539
+ return /* @__PURE__ */ o(R, { children: [
540
+ /* @__PURE__ */ e(
541
+ pt,
542
+ {
543
+ onClickHandler: () => F(we),
544
+ backBtnText: "Confirm Your Order"
545
+ }
546
+ ),
547
+ /* @__PURE__ */ e(l, { mt: 2, variant: "sm", fontWeight: 600, children: "Using payment method" }),
548
+ n.payment_type && /* @__PURE__ */ o(b, { mt: 2, className: c["confirm-payment"], children: [
549
+ /* @__PURE__ */ e(
550
+ "img",
551
+ {
552
+ src: n.payment_type === Fe ? rt : it,
553
+ width: 100,
554
+ alt: "payment"
555
+ }
556
+ ),
557
+ /* @__PURE__ */ e(l, { variant: "caption", component: "span", children: /* @__PURE__ */ e("strong", { children: n.payment_type === Fe ? "Bank Account" : "Debit Card" }) })
558
+ ] }),
559
+ /* @__PURE__ */ e(l, { mt: 4, variant: "sm", fontWeight: 600, children: "To Wallet Address" }),
560
+ /* @__PURE__ */ e(
561
+ b,
562
+ {
563
+ mt: 2,
564
+ className: c["confirm-payment"],
565
+ sx: { width: "100% !important" },
566
+ children: /* @__PURE__ */ e(l, { variant: "caption", component: "p", children: /* @__PURE__ */ e("strong", { children: d }) })
567
+ }
568
+ ),
569
+ /* @__PURE__ */ e(l, { mt: 3, variant: "sm", fontWeight: 600, component: "p", children: "Order Estimate Details" }),
570
+ /* @__PURE__ */ e(b, { sx: { color: "#A6A6A6" }, children: /* @__PURE__ */ o(i, { container: !0, children: [
571
+ /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ o(l, { variant: "caption", children: [
572
+ n.crypto_currency.toUpperCase(),
573
+ " @",
574
+ " ",
575
+ Number(n.conversion_price).toFixed(2),
576
+ " ",
577
+ n.fiat_currency
578
+ ] }) }),
579
+ /* @__PURE__ */ e(i, { className: "flex-right", size: { xs: 6 }, children: /* @__PURE__ */ e(
580
+ "span",
581
+ {
582
+ className: c["confirm-transaction-network"],
583
+ style: {
584
+ backgroundColor: n.network === "Ethereum" ? "#A1A9DC" : "#5D8CCC"
585
+ },
586
+ children: n.network
587
+ }
588
+ ) }),
589
+ /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ o(l, { variant: "caption", children: [
590
+ Number(n.crypto_out_amount).toFixed(5),
591
+ " ",
592
+ n.crypto_currency.toUpperCase()
593
+ ] }) }),
594
+ /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ o(l, { variant: "caption", children: [
595
+ (Number(v) - Number(n.total_fee)).toFixed(2),
596
+ " ",
597
+ n.fiat_currency
598
+ ] }) }),
599
+ /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(l, { variant: "caption", children: "Total Fees" }) }),
600
+ /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ o(l, { variant: "caption", children: [
601
+ Number(n.total_fee).toFixed(2),
602
+ " ",
603
+ n.fiat_currency
604
+ ] }) }),
605
+ /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(l, { variant: "caption", children: /* @__PURE__ */ e("strong", { children: "Order Total" }) }) }),
606
+ /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ e(l, { variant: "caption", children: /* @__PURE__ */ o("strong", { children: [
607
+ I,
608
+ Number(v).toFixed(2),
609
+ " ",
610
+ n.fiat_currency
611
+ ] }) }) })
612
+ ] }) }),
613
+ /* @__PURE__ */ e(b, { mt: 4, children: /* @__PURE__ */ e(
614
+ ce,
615
+ {
616
+ onClick: w,
617
+ disabled: $,
618
+ fullWidth: !0,
619
+ children: /* @__PURE__ */ e("strong", { children: $ ? /* @__PURE__ */ o(R, { children: [
620
+ /* @__PURE__ */ e(A, { size: 15, color: "inherit" }),
621
+ " Processing..."
622
+ ] }) : "Payment Details" })
623
+ }
624
+ ) })
625
+ ] });
626
+ }, we = "FORM_SCREEN", le = "CONFIRM_SCREEN", At = "PAYMENT_SCREEN", Ft = "MINIMAL_KYC_SCREEN", Mt = ({ partnerKey: F, baseUrl: x, checkoutSdkKey: M }) => {
627
+ const { showAlertMessage: N } = xt(), d = ft(), n = D((f) => f.order), u = n.error, v = D(
628
+ (f) => f.user.profile
629
+ ).everWalletAddress, I = D((f) => f.fiatAssets), s = D(
630
+ (f) => f.cryptoAssets
631
+ ), [O, p] = m(we), [w, y] = m({
632
+ symbol: ""
633
+ }), [ee, G] = m(0), [te, H] = m(1), [ne, re] = m([]), [P, X] = m(v);
634
+ return g(() => {
635
+ u && N({ message: u });
636
+ }, [u]), g(() => {
637
+ n.initMinimalKyc && (N({ message: u, type: "info" }), p(Ft));
638
+ }, [n.initMinimalKyc]), g(() => (d(ut()), d(Me(se)), d(Me(oe)), d(yt()), () => {
639
+ d(lt());
640
+ }), []), /* @__PURE__ */ e(_t, { addPadding: !0, children: {
641
+ FORM_SCREEN: /* @__PURE__ */ e(
642
+ Ct,
643
+ {
644
+ showAlertMessage: N,
645
+ setScreen: p,
646
+ fiatAssets: I,
647
+ cryptoAssets: s,
648
+ orderData: n,
649
+ dispatch: d,
650
+ getCryptoAssets: (f) => {
651
+ d(
652
+ ht({
653
+ type: z,
654
+ id: f,
655
+ partnerKey: F,
656
+ walletAddress: P
657
+ })
658
+ );
659
+ },
660
+ partnerKey: F,
661
+ walletAddress: P,
662
+ setWalletAddress: X,
663
+ outputToken: w,
664
+ setOutputToken: y,
665
+ paymentId: ee,
666
+ setPaymentId: G,
667
+ currencyId: te,
668
+ setCurrencyId: H,
669
+ paymentOptions: ne,
670
+ setPaymentOptions: re
671
+ }
672
+ ),
673
+ CONFIRM_SCREEN: /* @__PURE__ */ e(
674
+ Et,
675
+ {
676
+ partnerKey: F,
677
+ setScreen: p,
678
+ showAlertMessage: N,
679
+ orderData: n,
680
+ dispatch: d,
681
+ walletAddress: P
682
+ }
683
+ ),
684
+ PAYMENT_SCREEN: /* @__PURE__ */ e(
685
+ gt,
686
+ {
687
+ checkoutKey: M,
688
+ orderData: n,
689
+ initPaymentRequest: (f) => {
690
+ const S = n.estimate[z], h = n.create.order_id, T = {
691
+ token: f,
692
+ amount: Number(S.fiat_amount),
693
+ currency: S.fiat_currency,
694
+ reference: h,
695
+ success_url: `${x}/dashboard?payment=success`,
696
+ fail_url: `${x}/dashboard?payment=failed`
697
+ };
698
+ d(ct(T));
699
+ },
700
+ backBtnFunc: () => p(le)
701
+ }
702
+ ),
703
+ MINIMAL_KYC_SCREEN: /* @__PURE__ */ e(
704
+ Nt,
705
+ {
706
+ inputComponent: bt,
707
+ buttonComponent: ce,
708
+ onComplete: () => {
709
+ p(le);
710
+ }
711
+ }
712
+ )
713
+ }[O] });
714
+ }, dn = Ge(Mt);
715
+ export {
716
+ Ct as B,
717
+ le as C,
718
+ we as F,
719
+ Ft as M,
720
+ At as P,
721
+ Et as a,
722
+ dn as i
723
+ };