everest-npm-features 0.0.7 → 0.0.9

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 (222) hide show
  1. package/dist/Alert-D1uo0xUN.js +342 -0
  2. package/dist/{ArrowDropDown-DRUQbGft.js → ArrowDropDown-HhWGPJLx.js} +1 -1
  3. package/dist/{ArrowRight-t-YgAHUn.js → ArrowRight-D1Uf-LL_.js} +1 -1
  4. package/dist/{Box-BOgpENcC.js → Box-Bt8cGqC7.js} +4 -4
  5. package/dist/{Button-DXdgxFxa.js → Button-DwM6qNzr.js} +4 -4
  6. package/dist/{ButtonBase-AOLUTpPg.js → ButtonBase-Bkt2XiiC.js} +6 -6
  7. package/dist/{Cancel-kWZwZbQf.js → Cancel-5JDQ2Kc0.js} +1 -1
  8. package/dist/{CardContent-DEA5pnhr.js → CardContent-D9I3IU_z.js} +4 -4
  9. package/dist/{CircularProgress-BAEiXRSn.js → CircularProgress-B06C3TSm.js} +4 -4
  10. package/dist/{Close-mXCsZSxZ.js → Close-BMBeNE5d.js} +1 -1
  11. package/dist/{Container-BOehNoF1.js → Container-Htc6vdB5.js} +4 -4
  12. package/dist/{ContentCopy-HD_Xx6nx.js → ContentCopy-C-P8eJzn.js} +1 -1
  13. package/dist/{DefaultPropsProvider-DmUB0SYC.js → DefaultPropsProvider-BV5W_lW_.js} +3 -3
  14. package/dist/{DefaultPropsProvider-tqUom3mB.js → DefaultPropsProvider-CMlwfX3T.js} +1 -1
  15. package/dist/{Delete-BbHDZPfy.js → Delete-Dfs1xFC1.js} +1 -1
  16. package/dist/{DialogContent-zttWtNJM.js → DialogContent-CGAaVPRP.js} +6 -6
  17. package/dist/{DialogTitle-BqL8DXBp.js → DialogTitle-CtNXjsMb.js} +4 -4
  18. package/dist/{Divider-EGEkrkBH.js → Divider-CeyW_GlS.js} +3 -3
  19. package/dist/{FormControl-Nd-4LC8N.js → FormControl-C_Aq5EJK.js} +3 -3
  20. package/dist/{FormControlLabel-BMeMEwyK.js → FormControlLabel-DzW2M9Zf.js} +7 -7
  21. package/dist/{GlobalStyles-CModZHM-.js → GlobalStyles-BUcuFXdM.js} +2 -2
  22. package/dist/{Grid-EISqvBSJ.js → Grid-LdrR4mx1.js} +5 -5
  23. package/dist/{Grid2-B0mJbwjl.js → Grid2-IYppkw5f.js} +6 -6
  24. package/dist/{Grow-dkRwE_ok.js → Grow-BG0VcbVU.js} +6 -6
  25. package/dist/{IconButton-DAR3jsEV.js → IconButton-DS04obIe.js} +4 -4
  26. package/dist/{Info-CkE3Gsf2.js → Info-DTcjrneu.js} +1 -1
  27. package/dist/{InputAdornment-DZJP9Njd.js → InputAdornment-HG4f5A6g.js} +3 -3
  28. package/dist/Link-0ytX5jId.js +263 -0
  29. package/dist/{ListItemIcon-JAntieDc.js → ListItemIcon-DcAQQVML.js} +4 -4
  30. package/dist/{MenuItem-D12FP5Iq.js → MenuItem-B5Ey6jYk.js} +7 -7
  31. package/dist/{Modal-DceAu_d2.js → Modal-C4LVcV2P.js} +10 -10
  32. package/dist/{Paper-L8ipwfkc.js → Paper-DcwigMU2.js} +4 -4
  33. package/dist/{PlayArrow-Dwss80PJ.js → PlayArrow-BWNpsDIu.js} +2 -2
  34. package/dist/{Portal-DxdKGEvu.js → Portal-CLVGr58E.js} +4 -4
  35. package/dist/{Select-DTQDmdn_.js → Select-PHF4wwtI.js} +19 -18
  36. package/dist/{Slide-CWqC2RDG.js → Slide-C7btcybu.js} +6 -5
  37. package/dist/{Stack-CkCveRRR.js → Stack-Ce-OQAtj.js} +5 -5
  38. package/dist/{TextField-BqIvz6Zw.js → TextField-CWAqkoYU.js} +7 -7
  39. package/dist/TransitionGroupContext-D3TPEzqp.js +37 -0
  40. package/dist/{Typography-Dx54MRM5.js → Typography-Du8mj1kr.js} +3 -3
  41. package/dist/assets/index10.css +1 -1
  42. package/dist/assets/index11.css +1 -1
  43. package/dist/assets/index12.css +1 -0
  44. package/dist/assets/index8.css +1 -1
  45. package/dist/assets/index9.css +1 -1
  46. package/dist/auth-CD4Ih2jU.js +66 -0
  47. package/dist/{bank-CRy2oyUW.js → bank-WoJNjqIT.js} +1 -1
  48. package/dist/chainPropTypes-D9lkm76m.js +8 -0
  49. package/dist/components/Account/index.js +15 -15
  50. package/dist/components/History/index.js +13 -13
  51. package/dist/components/MoveToEthereumOrEverChain/index.js +31 -31
  52. package/dist/components/Profile/documents.js +16 -16
  53. package/dist/components/Profile/index.js +13 -13
  54. package/dist/components/Receive/index.js +9 -9
  55. package/dist/components/RocketRamp/MinimalKyc/form.js +8 -8
  56. package/dist/components/RocketRamp/MinimalKyc/index.js +1 -1
  57. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +17 -0
  58. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +16 -0
  59. package/dist/components/RocketRamp/{Buy → Player/Buy}/form.d.ts +1 -1
  60. package/dist/components/RocketRamp/Player/Buy/form.js +26 -0
  61. package/dist/components/RocketRamp/{Buy → Player/Buy}/index.d.ts +1 -1
  62. package/dist/components/RocketRamp/Player/Buy/index.js +35 -0
  63. package/dist/components/RocketRamp/{Buy → Player/Buy}/types.d.ts +3 -2
  64. package/dist/components/RocketRamp/{Dashboard → Player/Dashboard}/balance.js +8 -8
  65. package/dist/components/RocketRamp/{Dashboard → Player/Dashboard}/index.d.ts +1 -1
  66. package/dist/components/RocketRamp/{Dashboard → Player/Dashboard}/index.js +8 -8
  67. package/dist/components/RocketRamp/{Dashboard → Player/Dashboard}/transaction.js +6 -6
  68. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.d.ts +3 -0
  69. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +20 -0
  70. package/dist/components/RocketRamp/Player/Sell/form.d.ts +3 -0
  71. package/dist/components/RocketRamp/Player/Sell/form.js +26 -0
  72. package/dist/components/RocketRamp/Player/Sell/index.d.ts +7 -0
  73. package/dist/components/RocketRamp/Player/Sell/index.js +36 -0
  74. package/dist/components/RocketRamp/Player/Sell/types.d.ts +35 -0
  75. package/dist/components/RocketRamp/{SignIn → Player/SignIn}/index.d.ts +1 -1
  76. package/dist/components/RocketRamp/{SignIn → Player/SignIn}/index.js +9 -9
  77. package/dist/components/RocketRamp/{SignIn → Player/SignIn}/loginForm.js +8 -8
  78. package/dist/components/RocketRamp/{SignIn → Player/SignIn}/otpForm.js +12 -12
  79. package/dist/components/RocketRamp/{SignUp → Player/SignUp}/email.d.ts +1 -1
  80. package/dist/components/RocketRamp/Player/SignUp/email.js +73 -0
  81. package/dist/components/RocketRamp/{SignUp → Player/SignUp}/index.d.ts +1 -1
  82. package/dist/components/RocketRamp/{SignUp → Player/SignUp}/index.js +31 -29
  83. package/dist/components/RocketRamp/{SignUp → Player/SignUp}/personalInfo.d.ts +1 -1
  84. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +165 -0
  85. package/dist/components/RocketRamp/{SignUp → Player/SignUp}/summary.js +4 -4
  86. package/dist/components/RocketRamp/{SignUp → Player/SignUp}/types.d.ts +2 -0
  87. package/dist/components/RocketRamp/Player/SignUp/types.js +1 -0
  88. package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +100 -0
  89. package/dist/components/RocketRamp/ResetPassword/form.d.ts +8 -0
  90. package/dist/components/RocketRamp/ResetPassword/form.js +104 -0
  91. package/dist/components/RocketRamp/ResetPassword/index.d.ts +7 -0
  92. package/dist/components/RocketRamp/ResetPassword/index.js +53 -0
  93. package/dist/components/RocketRamp/Shared/Button/index.js +2 -2
  94. package/dist/components/RocketRamp/Shared/Input/index.d.ts +2 -1
  95. package/dist/components/RocketRamp/Shared/Input/index.js +25 -23
  96. package/dist/components/RocketRamp/Shared/backBtn.js +3 -3
  97. package/dist/components/RocketRamp/Shared/transactionItem.js +5 -5
  98. package/dist/components/RocketRamp/Store/Dashboard/balance.d.ts +6 -0
  99. package/dist/components/RocketRamp/Store/Dashboard/balance.js +42 -0
  100. package/dist/components/RocketRamp/Store/Dashboard/index.d.ts +5 -0
  101. package/dist/components/RocketRamp/Store/Dashboard/index.js +20 -0
  102. package/dist/components/RocketRamp/Store/Dashboard/stats.d.ts +6 -0
  103. package/dist/components/RocketRamp/Store/Dashboard/stats.js +42 -0
  104. package/dist/components/RocketRamp/Store/Dashboard/transaction.d.ts +8 -0
  105. package/dist/components/RocketRamp/Store/Dashboard/transaction.js +28 -0
  106. package/dist/components/RocketRamp/Store/SignUp/index.d.ts +3 -0
  107. package/dist/components/RocketRamp/Store/SignUp/index.js +158 -0
  108. package/dist/components/RocketRamp/Store/SignUp/personalInfo.d.ts +3 -0
  109. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +168 -0
  110. package/dist/components/RocketRamp/Store/SignUp/storeInfo.d.ts +3 -0
  111. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +136 -0
  112. package/dist/components/RocketRamp/Store/SignUp/summary.d.ts +3 -0
  113. package/dist/components/RocketRamp/Store/SignUp/summary.js +55 -0
  114. package/dist/components/RocketRamp/Store/SignUp/types.d.ts +49 -0
  115. package/dist/components/RocketRamp/Store/SignUp/types.js +1 -0
  116. package/dist/components/RocketRamp/Store/SignUp/validateEmail.d.ts +3 -0
  117. package/dist/components/RocketRamp/{SignUp → Store/SignUp}/validateEmail.js +6 -6
  118. package/dist/components/RocketRamp/Transactions/index.js +4 -4
  119. package/dist/components/Send/index.js +14 -14
  120. package/dist/components/Shared/ConnectWallet/index.js +10 -10
  121. package/dist/components/Shared/HistoryItem/index.js +45 -45
  122. package/dist/components/Shared/Keyboard/keyboard.js +3 -3
  123. package/dist/components/Shared/TokenModal/index.js +11 -11
  124. package/dist/components/Shared/TokenModal/tokenGrid.js +4 -4
  125. package/dist/components/Shared/addBank.js +10 -10
  126. package/dist/components/Shared/button.js +1 -1
  127. package/dist/components/Shared/connectPlaidBank.js +5 -5
  128. package/dist/components/Shared/incode.js +9 -9
  129. package/dist/components/Shared/inputField.js +1 -1
  130. package/dist/components/Shared/noData.js +2 -2
  131. package/dist/components/Shared/pin.js +3 -3
  132. package/dist/components/Shared/step.js +2 -2
  133. package/dist/components/Shared/tooltip.js +80 -79
  134. package/dist/components/Shared/transition.js +1 -1
  135. package/dist/components/SignIn/index.js +15 -15
  136. package/dist/components/SignUp/index.js +4 -4
  137. package/dist/components/SignUp/pin.js +10 -10
  138. package/dist/components/SignUp/privacy.js +2 -2
  139. package/dist/components/SignUp/terms.js +2 -2
  140. package/dist/components/SignUp/userInfo.js +3 -3
  141. package/dist/components/Stake/gems/index.js +10 -10
  142. package/dist/components/Stake/id/index.js +11 -11
  143. package/dist/components/Stake/index.js +9 -9
  144. package/dist/components/Swap/index.js +14 -14
  145. package/dist/components/SwapAndUniSwap/index.js +3 -3
  146. package/dist/components/WalletPortfolio/index.js +14 -14
  147. package/dist/components/WalletPortfolio/tokenRow.js +6 -6
  148. package/dist/{constants-Bg2zYFVK.js → constants-74hrsFxy.js} +448 -441
  149. package/dist/{createSvgIcon-jkXneOQN.js → createSvgIcon-DhzhBkIq.js} +2 -2
  150. package/dist/{createTheme-F9Dk4FhK.js → createTheme-BYjetuXd.js} +3 -3
  151. package/dist/defaultTheme-BauSyTuG.js +5 -0
  152. package/dist/{dividerClasses-SUAUDDqL.js → dividerClasses-DxWPaPyZ.js} +2 -2
  153. package/dist/{documents-BGFSTan8.js → documents-DFzrb5Js.js} +26 -26
  154. package/dist/{elementTypeAcceptingRef-BufevUW8.js → elementTypeAcceptingRef-CXUi-GtI.js} +2 -2
  155. package/dist/{emotion-react.browser.esm-CI0uV1W5.js → emotion-react.browser.esm-GqNZEJqq.js} +2 -2
  156. package/dist/{extendSxProp-Cm2UBzGf.js → extendSxProp-Ydv2_GZV.js} +1 -1
  157. package/dist/fiatAssets-BySmKCPn.js +8 -0
  158. package/dist/hoc/withThemeProvider.js +5 -5
  159. package/dist/hooks/useDialog/index.js +4 -4
  160. package/dist/hooks/useRrDialog/index.js +4 -4
  161. package/dist/hooks/useSnackBar.js +292 -625
  162. package/dist/icons/buyIcon.js +1 -1
  163. package/dist/icons/canceledBuyIcon.js +1 -1
  164. package/dist/icons/canceledRedeemIcon.js +1 -1
  165. package/dist/icons/failedBuyIcon.js +1 -1
  166. package/dist/icons/failedRedeemIcon.js +1 -1
  167. package/dist/icons/pendingBuyIcon.js +1 -1
  168. package/dist/icons/pendingRedeemIcon.js +1 -1
  169. package/dist/icons/redeemIcon.js +1 -1
  170. package/dist/index-BMhrzXlc.js +820 -0
  171. package/dist/{index-BJlsh9ro.js → index-BiAKQoFR.js} +1 -1
  172. package/dist/{index-_kqRfgnc.js → index-CrpPVKHn.js} +5 -5
  173. package/dist/index-Dxl09QM3.js +670 -0
  174. package/dist/main.d.ts +8 -4
  175. package/dist/main.js +32 -24
  176. package/dist/order-BJOkWhkX.js +30 -0
  177. package/dist/{ownerWindow-C-760D__.js → ownerWindow-CQLKd2qC.js} +1 -1
  178. package/dist/{resolveComponentProps-BdTgLKBb.js → resolveComponentProps-q6q4ysGz.js} +1 -1
  179. package/dist/{stake-CQWZT4ug.js → stake-DeB_prrU.js} +1 -1
  180. package/dist/store.d.ts +12 -2
  181. package/dist/styled-wRBkgUU9.js +5 -0
  182. package/dist/{tokenRow-CgnPD-4U.js → tokenRow-4ZCv_fEG.js} +5 -5
  183. package/dist/{useSlot-DaP6eodX.js → useSlot-CLUg2AtS.js} +2 -2
  184. package/dist/useTheme-CqTIiZp7.js +9 -0
  185. package/dist/{useTheme-c0OHvtiA.js → useTheme-D5is61S1.js} +3 -3
  186. package/dist/{useThemeProps-CV9AmzHf.js → useThemeProps-PA8LTWC3.js} +4 -4
  187. package/dist/{useThemeWithoutDefault-D8MaPbCK.js → useThemeWithoutDefault-Dka2QjJP.js} +1 -1
  188. package/dist/{useTimeout-D29bZ7Gz.js → useTimeout-Bcu0-_W1.js} +3 -3
  189. package/dist/user-Doi440iN.js +24 -0
  190. package/dist/util/constants.d.ts +2 -0
  191. package/dist/util/constants.js +9 -7
  192. package/dist/util/functions.d.ts +1 -0
  193. package/dist/util/functions.js +9 -2
  194. package/dist/{utils-EFg3So7T.js → utils-DeERUHi2.js} +17 -16
  195. package/dist/{wallet-CmeFL8-U.js → wallet-BeLTGObA.js} +12 -12
  196. package/package.json +2 -2
  197. package/dist/TransitionGroupContext-VwpFXTPO.js +0 -43
  198. package/dist/auth-NmISGQ2S.js +0 -46
  199. package/dist/components/RocketRamp/Buy/cardPayment.js +0 -17
  200. package/dist/components/RocketRamp/Buy/confirmTransaction.js +0 -16
  201. package/dist/components/RocketRamp/Buy/form.js +0 -26
  202. package/dist/components/RocketRamp/Buy/index.js +0 -34
  203. package/dist/components/RocketRamp/SignUp/email.js +0 -70
  204. package/dist/components/RocketRamp/SignUp/personalInfo.js +0 -415
  205. package/dist/defaultTheme-Bc00Q3Kt.js +0 -5
  206. package/dist/index-CX4sR9ID.js +0 -816
  207. package/dist/order-CtACU1eX.js +0 -27
  208. package/dist/styled-BTIMwpiX.js +0 -5
  209. package/dist/useTheme-BghcbbEW.js +0 -9
  210. package/dist/user-Djw_k_OF.js +0 -24
  211. /package/dist/components/RocketRamp/{Buy → Player/Buy}/cardPayment.d.ts +0 -0
  212. /package/dist/components/RocketRamp/{Buy → Player/Buy}/confirmTransaction.d.ts +0 -0
  213. /package/dist/components/RocketRamp/{Buy → Player/Buy}/types.js +0 -0
  214. /package/dist/components/RocketRamp/{Dashboard → Player/Dashboard}/balance.d.ts +0 -0
  215. /package/dist/components/RocketRamp/{Dashboard → Player/Dashboard}/transaction.d.ts +0 -0
  216. /package/dist/components/RocketRamp/{SignIn → Player/Sell}/types.js +0 -0
  217. /package/dist/components/RocketRamp/{SignIn → Player/SignIn}/loginForm.d.ts +0 -0
  218. /package/dist/components/RocketRamp/{SignIn → Player/SignIn}/otpForm.d.ts +0 -0
  219. /package/dist/components/RocketRamp/{SignIn → Player/SignIn}/types.d.ts +0 -0
  220. /package/dist/components/RocketRamp/{SignUp → Player/SignIn}/types.js +0 -0
  221. /package/dist/components/RocketRamp/{SignUp → Player/SignUp}/summary.d.ts +0 -0
  222. /package/dist/components/RocketRamp/{SignUp → Player/SignUp}/validateEmail.d.ts +0 -0
@@ -0,0 +1,820 @@
1
+ import { jsxs as r, Fragment as F, jsx as e } from "react/jsx-runtime";
2
+ import { useState as c, useEffect as x } from "react";
3
+ import Re from "./hoc/withThemeProvider.js";
4
+ import { P as Oe, F as we } from "./PlayArrow-BWNpsDIu.js";
5
+ import { I as Be } from "./Info-DTcjrneu.js";
6
+ import { G as Le } from "./generic-token-B_ptO5yb.js";
7
+ import te from "./components/RocketRamp/Shared/Input/index.js";
8
+ import { ID_TOKEN_SYMBOL as pe, FIAT_TO_EVER_ID as re, FIAT_TO_TOKEN as ne, ESTIMATE_TOOLTIP_TEXT as Ve, VISA_PAYMENT as Ye, VISA_PAYMENT_ACTIVE as We, SEPA_PAYMENT as De, SEPA_PAYMENT_ACTIVE as qe, PAYMENT_BANK as ue, SEPA_ICON as Ke, VISA_ICON as ge, PAYMENT_PROVIDER_CHECKOUT as he } from "./util/constants.js";
9
+ import { ae as $e } from "./constants-74hrsFxy.js";
10
+ import { c as Ge, d as be, a as Ue, f as je, e as fe } from "./order-BJOkWhkX.js";
11
+ import He from "./components/Shared/tooltip.js";
12
+ import { getCurrencySymbol as Ce, removeExtraSpace as Xe, getOrionBalance as Qe } from "./util/functions.js";
13
+ import ae from "./components/RocketRamp/Shared/Button/index.js";
14
+ import Ne from "./components/RocketRamp/Shared/backBtn.js";
15
+ import { T as s } from "./Typography-Du8mj1kr.js";
16
+ import { B as f } from "./Box-Bt8cGqC7.js";
17
+ import { G as o } from "./Grid2-IYppkw5f.js";
18
+ import { C as I } from "./CircularProgress-B06C3TSm.js";
19
+ import "@incodetech/welcome";
20
+ import "./axios-BEX6n2A7.js";
21
+ import { useSnackBar as Je } from "./hooks/useSnackBar.js";
22
+ import "./components/SignUp/pin.js";
23
+ import { f as Ze } from "./fiatAssets-BySmKCPn.js";
24
+ import { u as et, a as V } from "./react-redux-B4BZippc.js";
25
+ import './assets/main.css';import './assets/index10.css';/* empty css */
26
+ import "./util/conversions.js";
27
+ import "./index-CAoLi5Qq.js";
28
+ import "./react-webcam-B3cXh1XT.js";
29
+ import "./components/Shared/transition.js";
30
+ import "./components/Shared/pin.js";
31
+ import "./moment-h96o7c8I.js";
32
+ import "./index.esm-BsMAMhYW.js";
33
+ import "./web3-u4qDZYpo.js";
34
+ import "./index-B8QKlEgj.js";
35
+ import tt from "./components/RocketRamp/MinimalKyc/form.js";
36
+ import { c as rt } from "./createSvgIcon-DhzhBkIq.js";
37
+ import { s as ye, p as nt, h as at, v as it } from "./index-ceeCtFuh.js";
38
+ import { I as ot } from "./TextField-CWAqkoYU.js";
39
+ import { F as st } from "./FormControl-C_Aq5EJK.js";
40
+ import { S as ct } from "./Select-PHF4wwtI.js";
41
+ import { M as xe } from "./MenuItem-B5Ey6jYk.js";
42
+ import { L as lt } from "./ListItemIcon-DcAQQVML.js";
43
+ import { I as _e } from "./IconButton-DS04obIe.js";
44
+ const mt = (b) => ({
45
+ type: $e,
46
+ payload: b
47
+ }), Y = {
48
+ "confirm-payment": "_confirm-payment_alxbn_1",
49
+ "confirm-transaction-network": "_confirm-transaction-network_alxbn_33",
50
+ "buy-info": "_buy-info_alxbn_57"
51
+ }, dt = ({
52
+ setScreen: b,
53
+ orderData: _,
54
+ dispatch: p,
55
+ fiatAssets: u,
56
+ cryptoAssets: g,
57
+ getCryptoAssets: n,
58
+ showAlertMessage: y,
59
+ partnerKey: P,
60
+ balance: k,
61
+ store: v
62
+ }) => {
63
+ const A = "USD", l = Ce(A), C = u.fiats, O = u.loader, N = g.featureTokens.list, S = g.featureTokens.default, $ = g.loader, d = _.loader, E = _.estimate, z = E.crypto_out_amount, W = E.conversion_price, G = E.total_fee;
64
+ let U = 0, D = 0;
65
+ const j = E.fee_breakdown;
66
+ for (let t = 0; t < j.length; t++) {
67
+ const i = j[t];
68
+ i.name === "ev_fee" ? U = Number(i.value) : i.name === "network_fee" && (D = Number(i.value));
69
+ }
70
+ const [h, q] = c({
71
+ symbol: ""
72
+ }), [K, R] = c(!1), [T, a] = c(0), [M, J] = c(0), [H, Z] = c([]), [se, ve] = c(!1), [ce, Ee] = c(50), [le, ke] = c(3e3), [ee, Ae] = c(50), [me, Ie] = c(3e3), [Fe, B] = c(""), [L, de] = c(
73
+ E.fiat_amount || ee.toString()
74
+ );
75
+ x(() => {
76
+ if (E.crypto_currency) {
77
+ const t = N.find(
78
+ (i) => i.symbol === E.crypto_currency
79
+ );
80
+ q(t);
81
+ } else
82
+ S && S.id && q(S);
83
+ }, [S, E.crypto_currency]), x(() => {
84
+ M && n(M);
85
+ }, [M]), x(() => {
86
+ if (C.length === 0)
87
+ return;
88
+ const t = [];
89
+ for (let i = 0; i < C.length; i++) {
90
+ if (C[i].symbol === A) {
91
+ const m = C[i].payment_options;
92
+ J(C[i].id);
93
+ let X = !1;
94
+ for (let w = 0; w < m.length; w++) {
95
+ const Q = m[w];
96
+ Q.active && (t.push(Q), m[w].id === T && (X = !0));
97
+ }
98
+ X || a(t[0].id);
99
+ }
100
+ Z(t);
101
+ }
102
+ }, [A, C]), x(() => {
103
+ if (h && h.id && L && T && M) {
104
+ p(Ge()), R(!1), B("");
105
+ const t = setTimeout(() => {
106
+ Te();
107
+ }, 1e3);
108
+ return () => clearTimeout(t);
109
+ }
110
+ }, [h, L, T, N, M]);
111
+ const Te = () => {
112
+ var w;
113
+ const t = parseFloat(L);
114
+ if (h.symbol === pe) {
115
+ if (ce > t)
116
+ return B(
117
+ `Minimum value should be greater than ${l + ce}`
118
+ ), R(!0), !1;
119
+ if (le * 1 < t)
120
+ return B(
121
+ `Maximum value should be less than ${l + le}`
122
+ ), R(!0), !1;
123
+ } else {
124
+ if (ee * 1 > t)
125
+ return B(
126
+ `Minimum value should be greater than ${l + ee}`
127
+ ), R(!0), !1;
128
+ if (me * 1 < t)
129
+ return B(
130
+ `Maximum value should be less than ${l + me}`
131
+ ), R(!0), !1;
132
+ }
133
+ const i = parseFloat(v.balance);
134
+ if (t > i)
135
+ return B(
136
+ `Store doesn't have enough balance. Currently only ${v.balance} credits can be purchased`
137
+ ), R(!0), !1;
138
+ const m = H.find((Q) => Q.id === T), X = m.payment_type;
139
+ p(
140
+ be({
141
+ apiKey: P,
142
+ transaction_type: h.symbol === pe ? re : ne,
143
+ coin_amount: L,
144
+ exchange: h.exchange,
145
+ payment_type: X,
146
+ fiat_ccy: A,
147
+ crypto_ccy: h.symbol,
148
+ network: (w = h.network) == null ? void 0 : w.name,
149
+ payment_provider: m.payment_provider
150
+ })
151
+ );
152
+ }, Me = ({ value: t, label: i }) => {
153
+ let m;
154
+ if (i === "credit_debit_card" ? (m = Ye, T === t && (m = We)) : (m = De, T === t && (m = qe)), i)
155
+ return /* @__PURE__ */ e(
156
+ f,
157
+ {
158
+ mt: 0.5,
159
+ sx: { cursor: "pointer" },
160
+ onClick: () => a(t * 1),
161
+ children: /* @__PURE__ */ e("img", { src: m, alt: "payment", width: "90%" })
162
+ }
163
+ );
164
+ };
165
+ x(() => {
166
+ const t = _.types.length;
167
+ if (t > 0)
168
+ for (let i = 0; i < t; i++) {
169
+ const m = _.types[i];
170
+ if (m.type === re) {
171
+ Ee(parseFloat(m.min_deposit_amount)), ke(parseFloat(m.max_deposit_amount));
172
+ break;
173
+ }
174
+ if (m.type === ne) {
175
+ Ae(parseFloat(m.min_deposit_amount)), Ie(parseFloat(m.max_deposit_amount));
176
+ break;
177
+ }
178
+ }
179
+ }, [_.types]);
180
+ const Pe = (t) => {
181
+ const i = t.target.value;
182
+ i ? /^([0-9]+)$/.test(i) && de(i) : de("");
183
+ }, Se = (t) => {
184
+ const i = N.find((m) => m.symbol === t);
185
+ q(i);
186
+ }, ze = () => {
187
+ if (!h.id)
188
+ return y({ message: "Please select token" }), !1;
189
+ if (!T)
190
+ return y({ message: "Please select payment method" }), !1;
191
+ if (!L)
192
+ return y({ message: "Please enter amount" }), !1;
193
+ if (!z)
194
+ return y({
195
+ message: "Please wait for the estimate to be calculated and then press next"
196
+ }), !1;
197
+ b(oe);
198
+ };
199
+ return /* @__PURE__ */ r(F, { children: [
200
+ /* @__PURE__ */ r(o, { mt: 0.5, spacing: 1, container: !0, children: [
201
+ /* @__PURE__ */ e(o, { size: { xs: 3.5 }, children: /* @__PURE__ */ r(f, { className: Y["buy-info"], children: [
202
+ /* @__PURE__ */ e(s, { variant: "2xl", children: /* @__PURE__ */ e("strong", { children: "Buy Credits" }) }),
203
+ /* @__PURE__ */ r(s, { variant: "md", children: [
204
+ "1 credit = ",
205
+ W,
206
+ l
207
+ ] })
208
+ ] }) }),
209
+ /* @__PURE__ */ e(o, { size: { xs: 6 }, children: /* @__PURE__ */ r(
210
+ f,
211
+ {
212
+ className: Y["buy-info"],
213
+ sx: {
214
+ padding: "0px 50px !important",
215
+ alignItems: "center"
216
+ },
217
+ children: [
218
+ /* @__PURE__ */ e(s, { variant: "md", children: "MAX amount you can request:" }),
219
+ /* @__PURE__ */ e(s, { variant: "md", children: v.balanceLoader ? /* @__PURE__ */ e(I, { sx: { ml: 1 }, size: 15, color: "primary" }) : /* @__PURE__ */ r(F, { children: [
220
+ v.balance,
221
+ " credits"
222
+ ] }) })
223
+ ]
224
+ }
225
+ ) }),
226
+ /* @__PURE__ */ e(o, { size: { xs: 2.5 }, children: /* @__PURE__ */ r(
227
+ f,
228
+ {
229
+ className: Y["buy-info"],
230
+ sx: {
231
+ background: "black !important",
232
+ color: "white !important"
233
+ },
234
+ children: [
235
+ /* @__PURE__ */ e(s, { variant: "md", className: "text-right", children: "Game Balance" }),
236
+ /* @__PURE__ */ e(s, { variant: "lg", className: "text-right", children: k })
237
+ ]
238
+ }
239
+ ) })
240
+ ] }),
241
+ /* @__PURE__ */ e(o, { mt: 2, spacing: 2, container: !0, children: /* @__PURE__ */ e(o, { size: { xs: 6 }, children: /* @__PURE__ */ e(
242
+ te,
243
+ {
244
+ label: "You Pay",
245
+ value: L,
246
+ onChange: Pe,
247
+ type: "text",
248
+ labelFontWeight: 600,
249
+ error: K,
250
+ errorText: Fe,
251
+ required: !0,
252
+ fullWidth: !0
253
+ }
254
+ ) }) }),
255
+ /* @__PURE__ */ r(f, { className: "text-left", mt: 3, children: [
256
+ /* @__PURE__ */ e(s, { variant: "sm", fontWeight: 600, children: "Select Payment Method" }),
257
+ O ? /* @__PURE__ */ e(I, { sx: { ml: 1, mt: 3 }, size: 50 }) : /* @__PURE__ */ e(o, { mt: 0.5, container: !0, children: H.map((t) => /* @__PURE__ */ e(o, { size: { xs: 2.5 }, children: /* @__PURE__ */ e(
258
+ Me,
259
+ {
260
+ label: t.payment_type,
261
+ value: t.id
262
+ }
263
+ ) }, t.id)) })
264
+ ] }),
265
+ /* @__PURE__ */ r(o, { mt: 3, spacing: 2, container: !0, children: [
266
+ /* @__PURE__ */ e(o, { size: { xs: 6 }, children: /* @__PURE__ */ e(
267
+ te,
268
+ {
269
+ label: "You Receive",
270
+ labelFontWeight: 600,
271
+ value: z && parseFloat((+z * 1).toFixed(5)),
272
+ type: "text",
273
+ error: K,
274
+ readOnly: !0,
275
+ required: !0,
276
+ fullWidth: !0
277
+ }
278
+ ) }),
279
+ /* @__PURE__ */ e(o, { size: { xs: 5 }, className: "content-center", children: $ ? /* @__PURE__ */ e(I, { sx: { ml: 1 }, size: 30 }) : /* @__PURE__ */ r(F, { children: [
280
+ /* @__PURE__ */ e(ot, { children: " " }),
281
+ /* @__PURE__ */ e(st, { variant: "outlined", fullWidth: !0, children: /* @__PURE__ */ r(
282
+ ct,
283
+ {
284
+ sx: { marginTop: "-2px" },
285
+ inputProps: {
286
+ sx: {
287
+ display: "flex",
288
+ alignItems: "center",
289
+ padding: "10px"
290
+ }
291
+ },
292
+ value: h.symbol,
293
+ onChange: (t) => Se(t.target.value),
294
+ children: [
295
+ /* @__PURE__ */ e(xe, { value: "", children: "Please select" }),
296
+ N.map((t) => /* @__PURE__ */ r(xe, { value: t.symbol, children: [
297
+ /* @__PURE__ */ e(lt, { className: "dropdown-list-item", children: /* @__PURE__ */ e(
298
+ "img",
299
+ {
300
+ src: t.icon_uri,
301
+ onError: ({ currentTarget: i }) => {
302
+ i.onerror = null, i.src = Le;
303
+ },
304
+ alt: "tokenImg",
305
+ width: "36",
306
+ height: "36"
307
+ }
308
+ ) }),
309
+ /* @__PURE__ */ e("span", { children: t.name })
310
+ ] }, t.id))
311
+ ]
312
+ }
313
+ ) })
314
+ ] }) })
315
+ ] }),
316
+ /* @__PURE__ */ e(f, { mt: 3, sx: { color: "#1A202C" }, children: /* @__PURE__ */ r(o, { container: !0, children: [
317
+ /* @__PURE__ */ e(o, { className: "text-left", size: { xs: 12 }, children: /* @__PURE__ */ r(
318
+ _e,
319
+ {
320
+ sx: { padding: "0" },
321
+ onClick: () => ve((t) => !t),
322
+ disableFocusRipple: !0,
323
+ disableRipple: !0,
324
+ children: [
325
+ /* @__PURE__ */ e(s, { variant: "md", fontWeight: 500, children: "Fee Calculation" }),
326
+ /* @__PURE__ */ e(
327
+ Oe,
328
+ {
329
+ sx: {
330
+ transform: `rotate(${se ? "90" : "0"}deg)`,
331
+ fontSize: "15px"
332
+ }
333
+ }
334
+ )
335
+ ]
336
+ }
337
+ ) }),
338
+ se && /* @__PURE__ */ r(F, { children: [
339
+ /* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Everest Fee" }) }),
340
+ /* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ r(s, { variant: "caption", children: [
341
+ l,
342
+ d ? /* @__PURE__ */ e(I, { size: 30, color: "primary" }) : U.toFixed(2)
343
+ ] }) }),
344
+ /* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Network Fee" }) }),
345
+ /* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ r(s, { variant: "caption", children: [
346
+ l,
347
+ d ? /* @__PURE__ */ e(
348
+ I,
349
+ {
350
+ sx: { ml: 1 },
351
+ size: 15,
352
+ color: "primary"
353
+ }
354
+ ) : D.toFixed(2)
355
+ ] }) })
356
+ ] }),
357
+ /* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Total Fees" }) }),
358
+ /* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ r(s, { variant: "caption", children: [
359
+ l,
360
+ d ? /* @__PURE__ */ e(I, { sx: { ml: 1 }, size: 15, color: "primary" }) : Number(G).toFixed(2)
361
+ ] }) }),
362
+ h && /* @__PURE__ */ r(F, { children: [
363
+ /* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ r(s, { variant: "caption", children: [
364
+ "1 ",
365
+ h.symbol,
366
+ " ",
367
+ /* @__PURE__ */ e(
368
+ He,
369
+ {
370
+ title: Ve,
371
+ placement: "right",
372
+ children: /* @__PURE__ */ e(_e, { className: "info-fee-icon", children: /* @__PURE__ */ e(
373
+ Be,
374
+ {
375
+ sx: {
376
+ fontSize: "14px"
377
+ }
378
+ }
379
+ ) })
380
+ }
381
+ )
382
+ ] }) }),
383
+ /* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ r(s, { variant: "caption", children: [
384
+ l,
385
+ d ? /* @__PURE__ */ e(
386
+ I,
387
+ {
388
+ sx: { ml: 1 },
389
+ size: 15,
390
+ color: "primary"
391
+ }
392
+ ) : Number(W).toFixed(2)
393
+ ] }) })
394
+ ] })
395
+ ] }) }),
396
+ /* @__PURE__ */ e(f, { mt: 4, children: /* @__PURE__ */ e(
397
+ ae,
398
+ {
399
+ onClick: ze,
400
+ disabled: K || !z,
401
+ fullWidth: !0,
402
+ children: /* @__PURE__ */ e("strong", { children: "Next" })
403
+ }
404
+ ) })
405
+ ] });
406
+ }, pt = ({
407
+ setScreen: b,
408
+ partnerKey: _,
409
+ orderData: p,
410
+ dispatch: u,
411
+ walletAddress: g
412
+ }) => {
413
+ const n = p.estimate, y = p.create.order_id, P = p.loader, k = n.fiat_amount, v = Ce(n.fiat_currency), [A, l] = c(!1);
414
+ x(() => {
415
+ y && A && b(ft);
416
+ }, [y]), x(() => {
417
+ C();
418
+ }, []);
419
+ const C = () => {
420
+ u(
421
+ be({
422
+ ...n,
423
+ apiKey: _,
424
+ transaction_type: n.transaction_type,
425
+ coin_amount: n.fiat_amount,
426
+ exchange: n.exchange,
427
+ payment_type: n.payment_type,
428
+ fiat_ccy: n.fiat_currency,
429
+ crypto_ccy: n.crypto_currency,
430
+ network: n.network,
431
+ payment_provider: n.payment_provider
432
+ })
433
+ );
434
+ }, O = () => {
435
+ u(
436
+ Ue({
437
+ apiKey: _,
438
+ quoteId: n.quote_id,
439
+ walletAddress: g
440
+ })
441
+ ), l(!0);
442
+ };
443
+ return /* @__PURE__ */ r(F, { children: [
444
+ /* @__PURE__ */ e(Ne, { onClickHandler: () => b(ie) }),
445
+ /* @__PURE__ */ e(s, { mt: 2, variant: "sm", fontWeight: 600, children: "Using payment method" }),
446
+ /* @__PURE__ */ r(f, { mt: 2, className: Y["confirm-payment"], children: [
447
+ /* @__PURE__ */ e(
448
+ "img",
449
+ {
450
+ src: n.payment_type === ue ? Ke : ge,
451
+ width: 100,
452
+ alt: "payment"
453
+ }
454
+ ),
455
+ /* @__PURE__ */ e(s, { variant: "caption", component: "span", children: /* @__PURE__ */ e("strong", { children: n.payment_type === ue ? "Bank Account" : "Debit Card" }) })
456
+ ] }),
457
+ /* @__PURE__ */ e(s, { mt: 4, variant: "sm", fontWeight: 600, children: "To Wallet Address" }),
458
+ /* @__PURE__ */ e(
459
+ f,
460
+ {
461
+ mt: 2,
462
+ className: Y["confirm-payment"],
463
+ sx: { width: "100% !important" },
464
+ children: /* @__PURE__ */ e(s, { variant: "caption", component: "p", children: /* @__PURE__ */ e("strong", { children: g }) })
465
+ }
466
+ ),
467
+ /* @__PURE__ */ e(s, { mt: 3, variant: "sm", fontWeight: 600, component: "p", children: "Order Estimate Details" }),
468
+ /* @__PURE__ */ e(f, { sx: { color: "#A6A6A6" }, children: /* @__PURE__ */ r(o, { container: !0, children: [
469
+ /* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ r(s, { variant: "caption", children: [
470
+ n.crypto_currency.toUpperCase(),
471
+ " @",
472
+ " ",
473
+ Number(n.conversion_price).toFixed(2),
474
+ " ",
475
+ n.fiat_currency
476
+ ] }) }),
477
+ /* @__PURE__ */ e(o, { className: "flex-right", size: { xs: 6 }, children: /* @__PURE__ */ e(
478
+ "span",
479
+ {
480
+ className: Y["confirm-transaction-network"],
481
+ style: {
482
+ backgroundColor: n.network === "Ethereum" ? "#A1A9DC" : "#5D8CCC"
483
+ },
484
+ children: n.network
485
+ }
486
+ ) }),
487
+ /* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ r(s, { variant: "caption", children: [
488
+ Number(n.crypto_out_amount).toFixed(5),
489
+ " ",
490
+ n.crypto_currency.toUpperCase()
491
+ ] }) }),
492
+ /* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ r(s, { variant: "caption", children: [
493
+ (Number(k) - Number(n.total_fee)).toFixed(2),
494
+ " ",
495
+ n.fiat_currency
496
+ ] }) }),
497
+ /* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Total Fees" }) }),
498
+ /* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ r(s, { variant: "caption", children: [
499
+ Number(n.total_fee).toFixed(2),
500
+ " ",
501
+ n.fiat_currency
502
+ ] }) }),
503
+ /* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: /* @__PURE__ */ e("strong", { children: "Order Total" }) }) }),
504
+ /* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: /* @__PURE__ */ r("strong", { children: [
505
+ v,
506
+ Number(k).toFixed(2),
507
+ " ",
508
+ n.fiat_currency
509
+ ] }) }) })
510
+ ] }) }),
511
+ /* @__PURE__ */ e(f, { mt: 4, children: /* @__PURE__ */ e(
512
+ ae,
513
+ {
514
+ onClick: O,
515
+ disabled: P,
516
+ fullWidth: !0,
517
+ children: /* @__PURE__ */ e("strong", { children: P ? /* @__PURE__ */ r(F, { children: [
518
+ /* @__PURE__ */ e(I, { size: 15, color: "inherit" }),
519
+ " Processing..."
520
+ ] }) : "Payment Details" })
521
+ }
522
+ ) })
523
+ ] });
524
+ }, ut = rt(/* @__PURE__ */ e("path", {
525
+ d: "M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"
526
+ }), "ErrorOutline"), ht = ({
527
+ checkoutKey: b,
528
+ setScreen: _,
529
+ showAlertMessage: p,
530
+ rrBaseUrl: u,
531
+ orderData: g,
532
+ dispatch: n
533
+ }) => {
534
+ const y = g.estimate, P = g.create.order_id, k = g.payment, [v, A] = c(!0), [l, C] = c(""), [O, N] = c(!1), [S, $] = c({
535
+ name: "",
536
+ billingAddress: {
537
+ addressLine1: ""
538
+ }
539
+ }), [d, E] = c(!1), [z, W] = c(!0), [G, U] = c(!0), [D, j] = c(!0), [h, q] = c(!0);
540
+ x(() => {
541
+ k._links.redirect.href && window.location.replace(k._links.redirect.href);
542
+ }, [k]), x(() => {
543
+ $({
544
+ name: l,
545
+ billingAddress: {
546
+ addressLine1: ""
547
+ }
548
+ });
549
+ }, [l]), x(() => {
550
+ !G && !D && !h && l !== "" ? z && W(!1) : z || W(!0);
551
+ }, [l, G, D, h]);
552
+ const K = (a, M, J, H = /./) => {
553
+ if (a !== "" && !H.test(a))
554
+ return !1;
555
+ M(a);
556
+ const Z = typeof a == "string" ? Xe(a) : a;
557
+ J(!Z);
558
+ }, R = (a) => {
559
+ if (a && a.element)
560
+ switch (a.element) {
561
+ case "card-number":
562
+ U(a.isEmpty || !a.isValid);
563
+ break;
564
+ case "expiry-date":
565
+ j(a.isEmpty || !a.isValid);
566
+ break;
567
+ case "cvv":
568
+ q(a.isEmpty || !a.isValid);
569
+ break;
570
+ default:
571
+ console.log("NOOP");
572
+ break;
573
+ }
574
+ }, T = (a) => {
575
+ if (a === "") {
576
+ p({ message: "Error processing card" }), E(!1), _(ie);
577
+ return;
578
+ }
579
+ const M = {
580
+ token: a,
581
+ amount: Number(y.fiat_amount),
582
+ currency: y.fiat_currency,
583
+ reference: P,
584
+ success_url: `${u}/dashboard?payment=success`,
585
+ fail_url: `${u}/dashboard?payment=failed`
586
+ };
587
+ n(je(M));
588
+ };
589
+ return /* @__PURE__ */ r(F, { children: [
590
+ /* @__PURE__ */ e(Ne, { onClickHandler: () => _(oe) }),
591
+ /* @__PURE__ */ r(s, { className: "text-center", variant: "subtitle1", mt: 2, children: [
592
+ /* @__PURE__ */ e("img", { src: ge, width: 140, alt: "Debit Card" }),
593
+ /* @__PURE__ */ e("br", {}),
594
+ /* @__PURE__ */ e("b", { children: "Debit Card" })
595
+ ] }),
596
+ /* @__PURE__ */ r(
597
+ s,
598
+ {
599
+ className: "text-center d-flex items-center",
600
+ variant: "caption",
601
+ mt: 2,
602
+ children: [
603
+ /* @__PURE__ */ e(ut, {}),
604
+ "   ",
605
+ /* @__PURE__ */ e("b", { style: { marginTop: "3px" }, children: "Fiat purchasing is not available for users with Chase and Citi bank accounts" })
606
+ ]
607
+ }
608
+ ),
609
+ y.payment_provider === he && v && /* @__PURE__ */ e(f, { className: "text-center", mt: 8, children: /* @__PURE__ */ e(I, {}) }),
610
+ /* @__PURE__ */ e(f, { mt: 2, children: y.payment_provider === he && /* @__PURE__ */ r(
611
+ ye,
612
+ {
613
+ config: {
614
+ debug: !1,
615
+ publicKey: b,
616
+ acceptedPaymentMethods: ["Visa", "Mastercard"],
617
+ cardholder: S,
618
+ localization: {
619
+ cardNumberPlaceholder: "Card number",
620
+ expiryMonthPlaceholder: "MM",
621
+ expiryYearPlaceholder: "YY",
622
+ cvvPlaceholder: "CVV"
623
+ },
624
+ style: {
625
+ base: {
626
+ color: "black",
627
+ fontSize: "18px"
628
+ },
629
+ // autofill: {
630
+ // backgroundColor: "yellow",
631
+ // },
632
+ // hover: {
633
+ // color: "blue",
634
+ // },
635
+ focus: {
636
+ color: "blue"
637
+ },
638
+ valid: {
639
+ color: "green"
640
+ },
641
+ invalid: {
642
+ color: "red"
643
+ },
644
+ placeholder: {
645
+ base: {
646
+ color: "gray",
647
+ marginLeft: "20px"
648
+ }
649
+ }
650
+ }
651
+ },
652
+ ready: () => {
653
+ A(!1);
654
+ },
655
+ frameValidationChanged: (a) => {
656
+ R(a);
657
+ },
658
+ cardSubmitted: () => {
659
+ E(!0);
660
+ },
661
+ cardTokenized: (a) => {
662
+ T(a.token);
663
+ },
664
+ cardTokenizationFailed: (a) => {
665
+ alert("card tokenization failed"), console.log(a);
666
+ },
667
+ children: [
668
+ /* @__PURE__ */ e(
669
+ te,
670
+ {
671
+ label: "Name on Card",
672
+ value: l,
673
+ onChange: (a) => K(a.target.value, C, N),
674
+ error: O
675
+ }
676
+ ),
677
+ /* @__PURE__ */ e(
678
+ nt,
679
+ {
680
+ style: {
681
+ height: "4em",
682
+ margin: "20px 0",
683
+ padding: "20px",
684
+ border: "1px solid #999"
685
+ }
686
+ }
687
+ ),
688
+ /* @__PURE__ */ e(
689
+ at,
690
+ {
691
+ style: {
692
+ height: "4em",
693
+ margin: "20px 0",
694
+ padding: "20px",
695
+ border: "1px solid #999"
696
+ }
697
+ }
698
+ ),
699
+ /* @__PURE__ */ e(
700
+ it,
701
+ {
702
+ style: {
703
+ height: "4em",
704
+ margin: "20px 0",
705
+ padding: "20px",
706
+ border: "1px solid #999"
707
+ }
708
+ }
709
+ ),
710
+ /* @__PURE__ */ e(
711
+ ae,
712
+ {
713
+ onClick: () => {
714
+ ye.submitCard();
715
+ },
716
+ fullWidth: !0,
717
+ disabled: z,
718
+ children: /* @__PURE__ */ e("strong", { children: d ? /* @__PURE__ */ r(F, { children: [
719
+ /* @__PURE__ */ e(I, { size: 15, color: "inherit" }),
720
+ " Processing..."
721
+ ] }) : "Pay" })
722
+ }
723
+ )
724
+ ]
725
+ }
726
+ ) }),
727
+ /* @__PURE__ */ e(f, { mt: 8, children: /* @__PURE__ */ e("div", { id: "st-animated-card" }) })
728
+ ] });
729
+ }, ie = "FORM_SCREEN", oe = "CONFIRM_SCREEN", ft = "PAYMENT_SCREEN", yt = "MINIMAL_KYC_SCREEN", xt = ({ partnerKey: b, rrBaseUrl: _ }) => {
730
+ const p = et(), u = V((d) => d.order), g = V(
731
+ (d) => d.user.profile
732
+ ), n = u.error, y = V(
733
+ (d) => d.user.profile.everWalletAddress
734
+ ), P = V(
735
+ (d) => d.fiatAssets
736
+ ), k = V(
737
+ (d) => d.cryptoAssets
738
+ ), v = V((d) => d.app), [A, l] = c(ie), [C, O] = c(0), { showAlertMessage: N, snackBar: S } = Je();
739
+ return x(() => {
740
+ O(Qe(g.tokens.list));
741
+ }, [g.tokens]), x(() => {
742
+ n && N({ message: n });
743
+ }, [n]), x(() => {
744
+ u.initMinimalKyc && (N({ message: n, type: "info" }), l(yt));
745
+ }, [u.initMinimalKyc]), x(() => {
746
+ p(Ze()), p(fe(ne)), p(fe(re)), p(mt(v.store.info.id));
747
+ }, []), /* @__PURE__ */ r(F, { children: [
748
+ S,
749
+ /* @__PURE__ */ e(
750
+ f,
751
+ {
752
+ sx: {
753
+ padding: { xs: "1rem", md: "2rem" },
754
+ backgroundColor: "#FFFFFF",
755
+ borderRadius: "1rem",
756
+ boxShadow: "0px 0px 64px 0px rgba(247, 247, 248, 1)"
757
+ },
758
+ children: {
759
+ FORM_SCREEN: /* @__PURE__ */ e(
760
+ dt,
761
+ {
762
+ showAlertMessage: N,
763
+ setScreen: l,
764
+ fiatAssets: P,
765
+ cryptoAssets: k,
766
+ orderData: u,
767
+ dispatch: p,
768
+ getCryptoAssets: (d) => {
769
+ p(we({ type: "buy", id: d, partnerKey: b }));
770
+ },
771
+ partnerKey: b,
772
+ balance: C,
773
+ store: v.store
774
+ }
775
+ ),
776
+ CONFIRM_SCREEN: /* @__PURE__ */ e(
777
+ pt,
778
+ {
779
+ partnerKey: b,
780
+ setScreen: l,
781
+ showAlertMessage: N,
782
+ orderData: u,
783
+ dispatch: p,
784
+ walletAddress: y
785
+ }
786
+ ),
787
+ PAYMENT_SCREEN: /* @__PURE__ */ e(
788
+ ht,
789
+ {
790
+ checkoutKey: "pk_sbox_xnmwsvzydkhjeyi34z4b6ea5qi4",
791
+ setScreen: l,
792
+ showAlertMessage: N,
793
+ orderData: u,
794
+ rrBaseUrl: _,
795
+ dispatch: p
796
+ }
797
+ ),
798
+ MINIMAL_KYC_SCREEN: /* @__PURE__ */ e(
799
+ tt,
800
+ {
801
+ onComplete: () => {
802
+ l(oe);
803
+ }
804
+ }
805
+ )
806
+ }[A]
807
+ }
808
+ )
809
+ ] });
810
+ }, sr = Re(xt);
811
+ export {
812
+ dt as B,
813
+ ht as C,
814
+ ie as F,
815
+ yt as M,
816
+ ft as P,
817
+ pt as a,
818
+ oe as b,
819
+ sr as i
820
+ };