everest-npm-features 0.0.47 → 0.0.49

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 (112) hide show
  1. package/dist/{PlayArrow-Cm8tJN8W.js → PlayArrow-C3uVNo4F.js} +1 -1
  2. package/dist/assets/styles.css +1 -1
  3. package/dist/assets/styles2.css +1 -1
  4. package/dist/assets/styles3.css +1 -1
  5. package/dist/assets/styles4.css +1 -0
  6. package/dist/{auth-D0r8wtCH.js → auth-ClBgT--j.js} +1 -1
  7. package/dist/{bank-BmV_keEr.js → bank-Dz5km1qK.js} +3 -3
  8. package/dist/components/RocketRamp/MinimalKyc/form.js +14 -13
  9. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +3 -3
  10. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +3 -3
  11. package/dist/components/RocketRamp/Player/Buy/form.js +4 -4
  12. package/dist/components/RocketRamp/Player/Buy/index.js +12 -11
  13. package/dist/components/RocketRamp/Player/Dashboard/index.js +25 -24
  14. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +3 -3
  15. package/dist/components/RocketRamp/Player/Sell/form.js +4 -4
  16. package/dist/components/RocketRamp/Player/Sell/index.js +12 -11
  17. package/dist/components/RocketRamp/Player/SignIn/index.js +20 -19
  18. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +2 -2
  19. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +2 -2
  20. package/dist/components/RocketRamp/Player/SignUp/email.js +2 -2
  21. package/dist/components/RocketRamp/Player/SignUp/index.js +39 -38
  22. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +2 -2
  23. package/dist/components/RocketRamp/ResetPassword/index.js +21 -20
  24. package/dist/components/RocketRamp/Store/SignUp/index.js +48 -47
  25. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +2 -2
  26. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +2 -2
  27. package/dist/components/RocketRamp/Transactions/index.js +14 -13
  28. package/dist/components/Shared/FullKyc/edd.js +41 -41
  29. package/dist/components/Shared/FullKyc/index.js +11 -10
  30. package/dist/components/Shared/FullKyc/pep.js +1 -1
  31. package/dist/components/Shared/FullKyc/personalDetails.js +2 -2
  32. package/dist/components/Shared/FullKyc/userInfo.js +4 -4
  33. package/dist/components/Shared/MinimalKyc/index.js +31 -30
  34. package/dist/components/Wallet/Account/createIban.d.ts +2 -0
  35. package/dist/components/Wallet/Account/createIban.js +70 -62
  36. package/dist/components/Wallet/Account/eWallet.d.ts +20 -0
  37. package/dist/components/Wallet/Account/eWallet.js +96 -0
  38. package/dist/components/Wallet/Account/iban.d.ts +2 -0
  39. package/dist/components/Wallet/Account/iban.js +38 -32
  40. package/dist/components/Wallet/Account/ibanItem.d.ts +5 -2
  41. package/dist/components/Wallet/Account/ibanItem.js +233 -76
  42. package/dist/components/Wallet/Account/index.d.ts +2 -0
  43. package/dist/components/Wallet/Account/index.js +164 -143
  44. package/dist/components/Wallet/Account/sendIban.js +3 -3
  45. package/dist/components/Wallet/Buy/confirmTransaction.js +6 -6
  46. package/dist/components/Wallet/Buy/form.js +6 -6
  47. package/dist/components/Wallet/Buy/index.js +14 -13
  48. package/dist/components/Wallet/Deposit/index.js +1 -1
  49. package/dist/components/Wallet/EnterpriseKyc/edd.js +9 -9
  50. package/dist/components/Wallet/EnterpriseKyc/index.js +23 -22
  51. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +24 -24
  52. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +1 -1
  53. package/dist/components/Wallet/EnterpriseKyc/verify.js +1 -1
  54. package/dist/components/Wallet/History/index.js +25 -24
  55. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +49 -48
  56. package/dist/components/Wallet/Portfolio/index.js +34 -33
  57. package/dist/components/Wallet/Profile/documents.js +527 -28
  58. package/dist/components/Wallet/Profile/index.js +179 -149
  59. package/dist/components/Wallet/Profile/storage.d.ts +11 -0
  60. package/dist/components/Wallet/Profile/storage.js +267 -0
  61. package/dist/components/Wallet/Receive/index.js +22 -21
  62. package/dist/components/Wallet/Sell/confirmTransaction.js +5 -5
  63. package/dist/components/Wallet/Sell/form.js +6 -6
  64. package/dist/components/Wallet/Sell/index.js +13 -12
  65. package/dist/components/Wallet/Send/index.js +44 -43
  66. package/dist/components/Wallet/Shared/Auth/otpForm.js +2 -2
  67. package/dist/components/Wallet/Shared/BankSelect/index.js +36 -35
  68. package/dist/components/Wallet/Shared/CardCorp/index.d.ts +1 -1
  69. package/dist/components/Wallet/Shared/CardCorp/index.js +16 -16
  70. package/dist/components/Wallet/Shared/addBank.js +39 -38
  71. package/dist/components/Wallet/Shared/connectPlaidBank.js +19 -18
  72. package/dist/components/Wallet/Shared/manualSend.js +7 -6
  73. package/dist/components/Wallet/Shared/pin.js +1 -1
  74. package/dist/components/Wallet/SignIn/index.js +24 -23
  75. package/dist/components/Wallet/SignUp/index.js +22 -21
  76. package/dist/components/Wallet/Stake/gems/index.js +1 -1
  77. package/dist/components/Wallet/Stake/id/index.js +1 -1
  78. package/dist/components/Wallet/Stake/index.js +31 -30
  79. package/dist/components/Wallet/Swap/form.js +9 -8
  80. package/dist/components/Wallet/Swap/index.js +11 -10
  81. package/dist/components/Wallet/Withdraw/bankSelect.js +28 -27
  82. package/dist/components/Wallet/Withdraw/confirmTransaction.js +5 -5
  83. package/dist/components/Wallet/Withdraw/form.js +5 -5
  84. package/dist/components/Wallet/Withdraw/index.js +12 -11
  85. package/dist/{constants-BJhUp96H.js → constants-t7n9qCW3.js} +559 -553
  86. package/dist/{cryptoAssets-Q_UWeuzR.js → cryptoAssets-shEFU26O.js} +1 -1
  87. package/dist/hooks/useDialog/index.js +1 -1
  88. package/dist/hooks/useEverestDispatch.d.ts +6 -0
  89. package/dist/hooks/useEverestDispatch.js +5 -0
  90. package/dist/{index-Dkjl8hIv.js → index-B6MSTmAM.js} +112 -111
  91. package/dist/{index-MUaN67Ei.js → index-C2EjFXaz.js} +88 -87
  92. package/dist/{index-pCrOsXNC.js → index-Cs7bSfT3.js} +29 -28
  93. package/dist/{index-DegQ9bTI.js → index-DFRU-R-5.js} +39 -38
  94. package/dist/{index-BRnTzw1Z.js → index-Da0r8FX2.js} +11 -10
  95. package/dist/{index-Dq5wTY4S.js → index-RDV0mQbt.js} +36 -35
  96. package/dist/{index-B2wXmFh5.js → index-j0zehpzg.js} +41 -40
  97. package/dist/{kyc-DLaLS7sp.js → kyc-D9xahfH9.js} +1 -1
  98. package/dist/main.js +7 -7
  99. package/dist/{order-fWKVFTau.js → order-jqH948WM.js} +29 -25
  100. package/dist/{react-redux-B4BZippc.js → react-redux-C7I9-1M6.js} +2 -2
  101. package/dist/{stake-CQLutF0z.js → stake-Dcq6QpaA.js} +3 -3
  102. package/dist/{styles.module-O5VVND5e.js → styles.module-C1sNeKjL.js} +1 -1
  103. package/dist/styles.module-CHPRGltL.js +28 -0
  104. package/dist/{styles.module-CHEBh2ID.js → styles.module-DMd29SPQ.js} +1 -1
  105. package/dist/{styles.module-CUA1zLEJ.js → styles.module-verVx4pE.js} +1 -1
  106. package/dist/util/constants.d.ts +5 -0
  107. package/dist/util/constants.js +86 -81
  108. package/dist/util/functions.js +36 -36
  109. package/dist/{wallet-CuQDBP6a.js → wallet-DpkUmmq0.js} +1 -1
  110. package/package.json +3 -2
  111. package/dist/assets/documents.css +0 -1
  112. package/dist/documents-RjwlADn2.js +0 -552
@@ -1,23 +1,24 @@
1
- import { jsxs as a, Fragment as v, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as a, Fragment as _, jsx as e } from "react/jsx-runtime";
2
2
  import { useRef as ye, useMemo as Ve, useState as p, useEffect as h } from "react";
3
3
  import Je from "./hoc/withThemeProvider.js";
4
- import { a as C, u as Ie } from "./react-redux-B4BZippc.js";
5
- import { P as Qe } from "./PlayArrow-Cm8tJN8W.js";
4
+ import { u as C } from "./react-redux-C7I9-1M6.js";
5
+ import { P as Qe } from "./PlayArrow-C3uVNo4F.js";
6
6
  import { I as Ze } from "./Info-BVeUSPyk.js";
7
7
  import { G as et } from "./generic-token-B_ptO5yb.js";
8
8
  import { getCentralLedgetNetwork as V, getNetworkBackGround as be, getCurrencySymbol as tt } from "./util/functions.js";
9
9
  import Ne from "./components/Wallet/Shared/TokenModal/index.js";
10
- import { formatNumberWithoutRounding as _e } from "./util/conversions.js";
11
- import { ac as A } from "./constants-BJhUp96H.js";
10
+ import { formatNumberWithoutRounding as ve } from "./util/conversions.js";
11
+ import { ad as A } from "./constants-t7n9qCW3.js";
12
12
  import { c as ot, d as rt } from "./index-BQNs1mvn.js";
13
- import { f as nt, a as at, b as st } from "./cryptoAssets-Q_UWeuzR.js";
14
- import { c as Z, d as ve, e as it, f as lt, g as ct, h as mt } from "./order-fWKVFTau.js";
13
+ import { f as nt, a as at, b as st } from "./cryptoAssets-shEFU26O.js";
14
+ import { c as Z, d as _e, e as it, f as lt, g as ct, h as mt } from "./order-jqH948WM.js";
15
15
  import { DIALOG_SUCCESS_ICON as dt, TOKEN_TO_TOKEN as ee, ARROW_ICON as ut, ESTIMATE_TOOLTIP_TEXT as pt } from "./util/constants.js";
16
16
  import { M as ft } from "./tooltip-3UvETWtS.js";
17
17
  import "./index-DlQqWbXG.js";
18
- import Fe from "./components/Wallet/Shared/appButton.js";
18
+ import Ie from "./components/Wallet/Shared/appButton.js";
19
19
  import "./components/Wallet/Shared/Auth/otpForm.js";
20
20
  import { useSnackBarContext as ht } from "./context/snackBarContext.js";
21
+ import Fe from "./hooks/useEverestDispatch.js";
21
22
  import "./index-CAoLi5Qq.js";
22
23
  import "./react-webcam-B3cXh1XT.js";
23
24
  import "./components/Shared/transition.js";
@@ -26,14 +27,14 @@ import "./moment-h96o7c8I.js";
26
27
  import "./index.esm-BsMAMhYW.js";
27
28
  import "./web3-u4qDZYpo.js";
28
29
  import "./index-ceeCtFuh.js";
29
- import { s as i } from "./styles.module-CHEBh2ID.js";
30
+ import { s as i } from "./styles.module-DMd29SPQ.js";
30
31
  import Ce from "./components/Wallet/Shared/Order/selectCustomIcon.js";
31
- import { u as xt, a as gt } from "./wallet-CuQDBP6a.js";
32
+ import { u as xt, a as gt } from "./wallet-DpkUmmq0.js";
32
33
  import { AuthContainer as yt } from "./components/Wallet/Shared/Container/index.js";
33
34
  import bt from "./components/Shared/MinimalKyc/index.js";
34
35
  import Nt from "./components/Wallet/Shared/Input/index.js";
35
- import { M as _t } from "./index-pCrOsXNC.js";
36
- import { useDialogContext as vt } from "./context/dialogContext.js";
36
+ import { M as vt } from "./index-Cs7bSfT3.js";
37
+ import { useDialogContext as _t } from "./context/dialogContext.js";
37
38
  import { B as R } from "./Box-B0YSYLco.js";
38
39
  import { G as s } from "./Grid-CFe3amXO.js";
39
40
  import { T as m } from "./Typography-pAaje37G.js";
@@ -54,7 +55,7 @@ const Ct = ({
54
55
  setScreen: U
55
56
  }) => {
56
57
  var xe, ge;
57
- const B = ye(null), z = ye(null), { openDialog: S } = vt(), d = C((t) => t.order), b = C(
58
+ const B = ye(null), z = ye(null), { openDialog: S } = _t(), d = C((t) => t.order), b = C(
58
59
  (t) => t.cryptoAssets
59
60
  ), E = C(ot), N = C(rt), { data: L, loader: Re } = E, { data: te, loader: Te } = N, Me = Ve(() => [
60
61
  ...L,
@@ -70,7 +71,7 @@ const Ct = ({
70
71
  const n = le[t];
71
72
  n.name === "ev_fee" ? se = Number(n.value) : n.name === "network_fee" && (ie = Number(n.value));
72
73
  }
73
- const [_, Y] = p("0.05"), [G, ze] = p(!1), [Le, ce] = p(!1), [We, me] = p(!1), [de, Oe] = p(!1), [j, ue] = p(!1), [H, De] = p(50), [$e, Pe] = p(1e4), [pe, Ue] = p(""), Be = /^([0-9]*(\,|\.)[0-9]+|[0-9]+)$/, X = tt("USD"), f = Ie(), qe = (t) => {
74
+ const [v, Y] = p("0.05"), [G, ze] = p(!1), [Le, ce] = p(!1), [We, me] = p(!1), [de, Oe] = p(!1), [j, ue] = p(!1), [H, De] = p(50), [$e, Pe] = p(1e4), [pe, Ue] = p(""), Be = /^([0-9]*(\,|\.)[0-9]+|[0-9]+)$/, X = tt("USD"), f = Fe(), qe = (t) => {
74
75
  f(at(t));
75
76
  }, Ke = (t) => {
76
77
  f(st(t));
@@ -89,10 +90,10 @@ const Ct = ({
89
90
  w && w("/history"), f(Z());
90
91
  },
91
92
  height: "490px"
92
- }) : f(ve(F)));
93
+ }) : f(_e(F)));
93
94
  }, [F]), h(() => {
94
95
  re > 0 && (B.current = setTimeout(() => {
95
- f(ve(F));
96
+ f(_e(F));
96
97
  }, 1e4));
97
98
  }, [re, F]), h(() => {
98
99
  oe && U(St);
@@ -120,21 +121,21 @@ const Ct = ({
120
121
  }, [d.types]), h(() => {
121
122
  K && c({ message: K });
122
123
  }, [K]), h(() => {
123
- if (r && r.id && _) {
124
+ if (r && r.id && v) {
124
125
  f(it(A)), ze(!1), Ue("");
125
126
  const t = setTimeout(() => {
126
127
  Ye();
127
128
  }, 1e3);
128
129
  return () => clearTimeout(t);
129
130
  }
130
- }, [_, o, r]);
131
+ }, [v, o, r]);
131
132
  const Ye = () => {
132
133
  o.network && r && r.network && f(
133
134
  lt(
134
135
  {
135
136
  apiKey: k,
136
137
  transaction_type: ee,
137
- coin_amount: _,
138
+ coin_amount: v,
138
139
  input_token: o.symbol,
139
140
  input_token_network: V(
140
141
  o.network.name
@@ -153,7 +154,7 @@ const Ct = ({
153
154
  y && y(t);
154
155
  }, je = (t) => {
155
156
  const n = t.target.value;
156
- n ? /^([0-9.]+)$/.test(n) && Y(_e(n, 8)) : Y("");
157
+ n ? /^([0-9.]+)$/.test(n) && Y(ve(n, 8)) : Y("");
157
158
  }, fe = (t) => {
158
159
  if (I) {
159
160
  const n = I.find((x) => x.symbol === t);
@@ -171,17 +172,17 @@ const Ct = ({
171
172
  return c({
172
173
  message: "Please select token you want to receive"
173
174
  }), !1;
174
- if (!_)
175
+ if (!v)
175
176
  return c({ message: "Please enter amount" }), !1;
176
177
  if (!l)
177
178
  return c({ message: "Please select/enter wallet address" }), !1;
178
- if (!Be.test(_))
179
+ if (!Be.test(v))
179
180
  return c({ message: "Please provide a valid amount" }), !1;
180
181
  if (!D)
181
182
  return c({
182
183
  message: "Please wait for the estimate to be calculated and then press next"
183
184
  }), !1;
184
- if (o.fmt_balance && _ > o.fmt_balance)
185
+ if (o.fmt_balance && v > o.fmt_balance)
185
186
  return c({
186
187
  message: "You don't have enough balance to make this swap"
187
188
  }), !1;
@@ -203,9 +204,9 @@ const Ct = ({
203
204
  })
204
205
  );
205
206
  }, Xe = () => {
206
- o && Y(_e(o.fmt_balance + "", 8));
207
+ o && Y(ve(o.fmt_balance + "", 8));
207
208
  };
208
- return /* @__PURE__ */ a(v, { children: [
209
+ return /* @__PURE__ */ a(_, { children: [
209
210
  /* @__PURE__ */ a(R, { children: [
210
211
  /* @__PURE__ */ a(s, { container: !0, children: [
211
212
  /* @__PURE__ */ e(s, { size: 2.5, children: /* @__PURE__ */ e(
@@ -245,7 +246,7 @@ const Ct = ({
245
246
  P,
246
247
  {
247
248
  disableUnderline: !0,
248
- value: _,
249
+ value: v,
249
250
  onChange: je,
250
251
  type: "text",
251
252
  placeholder: `${H > 0 ? "$" + H + " minimum value" : ""}`,
@@ -254,7 +255,7 @@ const Ct = ({
254
255
  fullWidth: !0
255
256
  }
256
257
  ),
257
- /* @__PURE__ */ e(Se, { className: i["crypto-helper-text"], children: $ > 0 ? "$" + ($ * 1).toFixed(2) : /* @__PURE__ */ e(v, { children: " " }) })
258
+ /* @__PURE__ */ e(Se, { className: i["crypto-helper-text"], children: $ > 0 ? "$" + ($ * 1).toFixed(2) : /* @__PURE__ */ e(_, { children: " " }) })
258
259
  ]
259
260
  }
260
261
  ) }),
@@ -357,7 +358,7 @@ const Ct = ({
357
358
  fullWidth: !0
358
359
  }
359
360
  ),
360
- /* @__PURE__ */ e(Se, { className: i["crypto-helper-text"], children: ae > 0 ? "$" + (ae * 1).toFixed(2) : /* @__PURE__ */ e(v, { children: " " }) })
361
+ /* @__PURE__ */ e(Se, { className: i["crypto-helper-text"], children: ae > 0 ? "$" + (ae * 1).toFixed(2) : /* @__PURE__ */ e(_, { children: " " }) })
361
362
  ]
362
363
  }
363
364
  ) }),
@@ -462,7 +463,7 @@ const Ct = ({
462
463
  ]
463
464
  }
464
465
  ) }),
465
- de && /* @__PURE__ */ a(v, { children: [
466
+ de && /* @__PURE__ */ a(_, { children: [
466
467
  /* @__PURE__ */ e(s, { className: "text-left", size: 6, children: /* @__PURE__ */ e(m, { variant: "caption", children: "Everest Fee" }) }),
467
468
  /* @__PURE__ */ e(s, { className: "text-right", size: 6, children: /* @__PURE__ */ a(m, { variant: "caption", children: [
468
469
  X,
@@ -497,7 +498,7 @@ const Ct = ({
497
498
  }
498
499
  ) : Number(Ae).toFixed(2)
499
500
  ] }) }),
500
- r && o && /* @__PURE__ */ a(v, { children: [
501
+ r && o && /* @__PURE__ */ a(_, { children: [
501
502
  /* @__PURE__ */ e(s, { className: "text-left", size: 6, children: /* @__PURE__ */ a(m, { variant: "caption", children: [
502
503
  "1 ",
503
504
  o == null ? void 0 : o.symbol,
@@ -513,7 +514,7 @@ const Ct = ({
513
514
  ) : ne && parseFloat(ne).toFixed(6) + " " + (r == null ? void 0 : r.symbol) }) })
514
515
  ] })
515
516
  ] }) }),
516
- /* @__PURE__ */ e(R, { sx: { alignItems: "left", width: "100%" }, children: Re || Te ? /* @__PURE__ */ e(R, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(g, {}) }) : /* @__PURE__ */ e(v, { children: /* @__PURE__ */ a(
517
+ /* @__PURE__ */ e(R, { sx: { alignItems: "left", width: "100%" }, children: Re || Te ? /* @__PURE__ */ e(R, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(g, {}) }) : /* @__PURE__ */ e(_, { children: /* @__PURE__ */ a(
517
518
  T,
518
519
  {
519
520
  variant: "filled",
@@ -532,12 +533,12 @@ const Ct = ({
532
533
  }
533
534
  ) }) }),
534
535
  /* @__PURE__ */ e(R, { mt: 4, children: /* @__PURE__ */ e(
535
- Fe,
536
+ Ie,
536
537
  {
537
538
  fullWidth: !0,
538
539
  onClick: He,
539
540
  disabled: G || !D,
540
- children: /* @__PURE__ */ e("strong", { children: j ? /* @__PURE__ */ a(v, { children: [
541
+ children: /* @__PURE__ */ e("strong", { children: j ? /* @__PURE__ */ a(_, { children: [
541
542
  /* @__PURE__ */ e(g, { size: 15, color: "inherit" }),
542
543
  " Processing..."
543
544
  ] }) : "Swap" })
@@ -567,7 +568,7 @@ const Ct = ({
567
568
  )
568
569
  ] });
569
570
  }, Ee = "FORM_SCREEN", St = "MANUAL_SEND_SCREEN", kt = "MINIMAL_KYC_SCREEN", wt = ({ partnerKey: k, navigate: w }) => {
570
- const c = Ie(), l = C((N) => N.order), y = l.error, U = C((N) => N.fiatAssets), B = C(
571
+ const c = Fe(), l = C((N) => N.order), y = l.error, U = C((N) => N.fiatAssets), B = C(
571
572
  (N) => N.cryptoAssets
572
573
  ), [z, S] = p(Ee), [d, b] = p(""), { showAlertMessage: E } = ht();
573
574
  return h(() => {
@@ -593,7 +594,7 @@ const Ct = ({
593
594
  }
594
595
  ),
595
596
  MANUAL_SEND_SCREEN: /* @__PURE__ */ e(
596
- _t,
597
+ vt,
597
598
  {
598
599
  orderData: l,
599
600
  setScreen: S,
@@ -606,18 +607,18 @@ const Ct = ({
606
607
  bt,
607
608
  {
608
609
  inputComponent: Nt,
609
- buttonComponent: Fe,
610
+ buttonComponent: Ie,
610
611
  onComplete: () => {
611
612
  S(Ee);
612
613
  }
613
614
  }
614
615
  )
615
616
  }[z] });
616
- }, vo = Je(wt);
617
+ }, Co = Je(wt);
617
618
  export {
618
619
  Ee as F,
619
620
  St as M,
620
621
  Ct as S,
621
622
  kt as a,
622
- vo as i
623
+ Co as i
623
624
  };
@@ -6,11 +6,11 @@ import Se from "./hoc/withThemeProvider.js";
6
6
  import ce from "./components/Wallet/Shared/Input/index.js";
7
7
  import de from "./components/Wallet/Shared/appButton.js";
8
8
  import "./index-DlQqWbXG.js";
9
- import { u as ue, a as J } from "./react-redux-B4BZippc.js";
10
9
  import "./components/Wallet/Shared/Auth/otpForm.js";
11
- import { d as v, f as be } from "./constants-BJhUp96H.js";
12
- import { b as ve, c as xe } from "./kyc-DLaLS7sp.js";
13
- import { useSnackBarContext as pe } from "./context/snackBarContext.js";
10
+ import { d as v, f as be } from "./constants-t7n9qCW3.js";
11
+ import { b as ve, c as xe } from "./kyc-D9xahfH9.js";
12
+ import { useSnackBarContext as ue } from "./context/snackBarContext.js";
13
+ import pe from "./hooks/useEverestDispatch.js";
14
14
  import "./util/conversions.js";
15
15
  import "./index-CAoLi5Qq.js";
16
16
  import me from "./components/Wallet/Shared/step.js";
@@ -28,6 +28,7 @@ import re from "./components/Shared/FullKyc/countryList.js";
28
28
  import { B as w } from "./Box-B0YSYLco.js";
29
29
  import { T as j } from "./Typography-pAaje37G.js";
30
30
  import Ne from "./components/Shared/FullKyc/pep.js";
31
+ import { u as J } from "./react-redux-C7I9-1M6.js";
31
32
  import Pe from "./components/Shared/FullKyc/edd.js";
32
33
  import { F as Oe } from "./FormControl-RtZDQMdA.js";
33
34
  import { I as Re } from "./TextField-DPpRUQe3.js";
@@ -44,9 +45,9 @@ const Be = ({
44
45
  userEmail: g,
45
46
  kycFlow: p
46
47
  }) => {
47
- const l = ue();
48
+ const l = pe();
48
49
  _e();
49
- const { showAlertMessage: c } = pe(), a = f ?? ce, D = R ?? de, [d, _] = r(i.gender || ""), [m, N] = r(!1), [P, C] = r(i.email || ""), [Y, Z] = r(!1), [K, q] = r(""), [u, z] = r(i.address || ""), [t, O] = r(i.city || ""), [y, I] = r(i.state || ""), [b, A] = r(i.zipCode || ""), [B, M] = r(
50
+ const { showAlertMessage: c } = ue(), a = f ?? ce, D = R ?? de, [d, _] = r(i.gender || ""), [m, N] = r(!1), [P, C] = r(i.email || ""), [Y, Z] = r(!1), [K, q] = r(""), [u, z] = r(i.address || ""), [t, O] = r(i.city || ""), [y, I] = r(i.state || ""), [b, A] = r(i.zipCode || ""), [B, M] = r(
50
51
  i.country || null
51
52
  ), [s, X] = r(!1);
52
53
  F(() => {
@@ -218,7 +219,7 @@ const Be = ({
218
219
  inputComponent: i,
219
220
  buttonComponent: n
220
221
  }) => {
221
- const { showAlertMessage: h } = pe(), g = i ?? ce, p = n ?? de, [l, c] = r(
222
+ const { showAlertMessage: h } = ue(), g = i ?? ce, p = n ?? de, [l, c] = r(
222
223
  f.placeOfBirth || null
223
224
  ), [a, D] = r(
224
225
  f.nationality || null
@@ -322,7 +323,7 @@ const Be = ({
322
323
  isModalView: p = !1,
323
324
  kycFlow: l
324
325
  }) => {
325
- const c = ge(!0), a = ue(), D = J((s) => s.user), d = J((s) => s.user.kyc), _ = J((s) => s.session.uuid), m = D.kyc, N = m.processComplete, P = {}, [C, Y] = r(P), [Z, K] = r({ token: "" }), [q, u] = r(
326
+ const c = ge(!0), a = pe(), D = J((s) => s.user), d = J((s) => s.user.kyc), _ = J((s) => s.session.uuid), m = D.kyc, N = m.processComplete, P = {}, [C, Y] = r(P), [Z, K] = r({ token: "" }), [q, u] = r(
326
327
  l === v ? k : ee
327
328
  );
328
329
  F(() => {
@@ -489,10 +490,10 @@ const Be = ({
489
490
  )
490
491
  }[q];
491
492
  return n ? /* @__PURE__ */ e(Ce, { addPadding: !1, children: M }) : M;
492
- }, Ct = Se(Ke);
493
+ }, yt = Se(Ke);
493
494
  export {
494
495
  Te as E,
495
- Ct as F,
496
+ yt as F,
496
497
  ee as I,
497
498
  Le as P,
498
499
  Be as U,
@@ -1,15 +1,15 @@
1
1
  import { jsxs as a, Fragment as F, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as c, useEffect as g } from "react";
3
3
  import Oe from "./hoc/withThemeProvider.js";
4
- import { P as we, f as Be } from "./PlayArrow-Cm8tJN8W.js";
4
+ import { P as we, f as Be } from "./PlayArrow-C3uVNo4F.js";
5
5
  import { I as Le } from "./Info-BVeUSPyk.js";
6
6
  import { G as Ve } from "./generic-token-B_ptO5yb.js";
7
7
  import ne from "./components/RocketRamp/Shared/Input/index.js";
8
- import { ID_TOKEN_SYMBOL as pe, FIAT_TO_EVER_ID as ae, FIAT_TO_TOKEN as ie, ESTIMATE_TOOLTIP_TEXT as Ye, VISA_PAYMENT as We, VISA_PAYMENT_ACTIVE as Ke, SEPA_PAYMENT as qe, SEPA_PAYMENT_ACTIVE as $e, PAYMENT_BANK as he, SEPA_ICON as De, VISA_ICON as be, PAYMENT_PROVIDER_CHECKOUT as fe } from "./util/constants.js";
9
- import { aD as Ue, ap as te } from "./constants-BJhUp96H.js";
10
- import { e as Ge, f as Ce, g as je, i as He, h as ye } from "./order-fWKVFTau.js";
8
+ import { ID_TOKEN_SYMBOL as pe, FIAT_TO_EVER_ID as ae, FIAT_TO_TOKEN as ie, ESTIMATE_TOOLTIP_TEXT as Ye, VISA_PAYMENT as We, VISA_PAYMENT_ACTIVE as qe, SEPA_PAYMENT as Ke, SEPA_PAYMENT_ACTIVE as $e, PAYMENT_BANK as he, SEPA_ICON as De, VISA_ICON as be, PAYMENT_PROVIDER_CHECKOUT as fe } from "./util/constants.js";
9
+ import { aJ as Ue, aq as te } from "./constants-t7n9qCW3.js";
10
+ import { e as Ge, f as Ce, g as je, i as He, h as ye } from "./order-jqH948WM.js";
11
11
  import { M as Xe } from "./tooltip-3UvETWtS.js";
12
- import { getCurrencySymbol as Ne, removeExtraSpace as Qe, getOrionBalance as Je } from "./util/functions.js";
12
+ import { getCurrencySymbol as Ne, removeExtraSpace as Je, getOrionBalance as Qe } from "./util/functions.js";
13
13
  import oe from "./components/RocketRamp/Shared/Button/index.js";
14
14
  import Ee from "./components/RocketRamp/Shared/backBtn.js";
15
15
  import { T as s } from "./Typography-pAaje37G.js";
@@ -18,10 +18,11 @@ import { G as o } from "./Grid-CFe3amXO.js";
18
18
  import { C as I } from "./CircularProgress-xZA3lvba.js";
19
19
  import { E as Ze } from "./ErrorOutline-CPQcnl2b.js";
20
20
  import { s as xe, p as et, h as tt, v as rt } from "./index-ceeCtFuh.js";
21
- import { u as nt, a as q } from "./react-redux-B4BZippc.js";
22
- import { f as at } from "./cryptoAssets-Q_UWeuzR.js";
23
- import it from "./components/RocketRamp/MinimalKyc/form.js";
24
- import { useSnackBarContext as ot } from "./context/snackBarContext.js";
21
+ import { u as K } from "./react-redux-C7I9-1M6.js";
22
+ import { f as nt } from "./cryptoAssets-shEFU26O.js";
23
+ import at from "./components/RocketRamp/MinimalKyc/form.js";
24
+ import { useSnackBarContext as it } from "./context/snackBarContext.js";
25
+ import ot from "./hooks/useEverestDispatch.js";
25
26
  import { I as st } from "./TextField-DPpRUQe3.js";
26
27
  import { F as ct } from "./FormControl-RtZDQMdA.js";
27
28
  import { S as lt } from "./Select-CB5yWmyn.js";
@@ -56,7 +57,7 @@ import './assets/index9.css';const dt = (C) => ({
56
57
  }
57
58
  const [x, V] = c({
58
59
  symbol: ""
59
- }), [G, R] = c(!1), [T, Q] = c(0), [n, S] = c(0), [w, Y] = c([]), [J, ve] = c(!1), [le, ke] = c(50), [me, Ae] = c(3e3), [re, Ie] = c(50), [de, Te] = c(3e3), [Fe, W] = c(""), [K, ue] = c(
60
+ }), [G, R] = c(!1), [T, J] = c(0), [n, S] = c(0), [w, Y] = c([]), [Q, ve] = c(!1), [le, ke] = c(50), [me, Ae] = c(3e3), [re, Ie] = c(50), [de, Te] = c(3e3), [Fe, W] = c(""), [q, ue] = c(
60
61
  A.fiat_amount || re.toString()
61
62
  );
62
63
  g(() => {
@@ -82,22 +83,22 @@ import './assets/index9.css';const dt = (C) => ({
82
83
  const ee = l[B];
83
84
  ee.active && (t.push(ee), l[B].id === T && (Z = !0));
84
85
  }
85
- Z || Q(t[0].id);
86
+ Z || J(t[0].id);
86
87
  }
87
88
  Y(t);
88
89
  }
89
90
  }, [b, m]), g(() => {
90
- if (x && x.id && K && T && n) {
91
+ if (x && x.id && q && T && n) {
91
92
  v(Ge(te)), R(!1), W("");
92
93
  const t = setTimeout(() => {
93
94
  Pe();
94
95
  }, 1e3);
95
96
  return () => clearTimeout(t);
96
97
  }
97
- }, [x, K, T, k, n]);
98
+ }, [x, q, T, k, n]);
98
99
  const Pe = () => {
99
100
  var B;
100
- const t = parseFloat(K);
101
+ const t = parseFloat(q);
101
102
  if (x.symbol === pe) {
102
103
  if (le > t)
103
104
  return W(
@@ -128,7 +129,7 @@ import './assets/index9.css';const dt = (C) => ({
128
129
  {
129
130
  apiKey: E,
130
131
  transaction_type: x.symbol === pe ? ae : ie,
131
- coin_amount: K,
132
+ coin_amount: q,
132
133
  exchange: x.exchange,
133
134
  payment_type: Z,
134
135
  fiat_ccy: b,
@@ -141,13 +142,13 @@ import './assets/index9.css';const dt = (C) => ({
141
142
  );
142
143
  }, Me = ({ value: t, label: i }) => {
143
144
  let l;
144
- if (i === "credit_debit_card" ? (l = We, T === t && (l = Ke)) : (l = qe, T === t && (l = $e)), i)
145
+ if (i === "credit_debit_card" ? (l = We, T === t && (l = qe)) : (l = Ke, T === t && (l = $e)), i)
145
146
  return /* @__PURE__ */ e(
146
147
  y,
147
148
  {
148
149
  mt: 0.5,
149
150
  sx: { cursor: "pointer" },
150
- onClick: () => Q(t * 1),
151
+ onClick: () => J(t * 1),
151
152
  children: /* @__PURE__ */ e("img", { src: l, alt: "payment", width: "90%" })
152
153
  }
153
154
  );
@@ -178,7 +179,7 @@ import './assets/index9.css';const dt = (C) => ({
178
179
  return r({ message: "Please select token" }), !1;
179
180
  if (!T)
180
181
  return r({ message: "Please select payment method" }), !1;
181
- if (!K)
182
+ if (!q)
182
183
  return r({ message: "Please enter amount" }), !1;
183
184
  if (!O)
184
185
  return r({
@@ -232,7 +233,7 @@ import './assets/index9.css';const dt = (C) => ({
232
233
  ne,
233
234
  {
234
235
  label: "You Pay",
235
- value: K,
236
+ value: q,
236
237
  onChange: Re,
237
238
  type: "text",
238
239
  labelFontWeight: 600,
@@ -317,7 +318,7 @@ import './assets/index9.css';const dt = (C) => ({
317
318
  we,
318
319
  {
319
320
  sx: {
320
- transform: `rotate(${J ? "90" : "0"}deg)`,
321
+ transform: `rotate(${Q ? "90" : "0"}deg)`,
321
322
  fontSize: "15px"
322
323
  }
323
324
  }
@@ -325,7 +326,7 @@ import './assets/index9.css';const dt = (C) => ({
325
326
  ]
326
327
  }
327
328
  ) }),
328
- J && /* @__PURE__ */ a(F, { children: [
329
+ Q && /* @__PURE__ */ a(F, { children: [
329
330
  /* @__PURE__ */ e(o, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Everest Fee" }) }),
330
331
  /* @__PURE__ */ e(o, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
331
332
  f,
@@ -545,8 +546,8 @@ import './assets/index9.css';const dt = (C) => ({
545
546
  if (n !== "" && !Y.test(n))
546
547
  return !1;
547
548
  S(n);
548
- const J = typeof n == "string" ? Qe(n) : n;
549
- w(!J);
549
+ const Q = typeof n == "string" ? Je(n) : n;
550
+ w(!Q);
550
551
  }, T = (n) => {
551
552
  if (n && n.element)
552
553
  switch (n.element) {
@@ -563,7 +564,7 @@ import './assets/index9.css';const dt = (C) => ({
563
564
  console.log("NOOP");
564
565
  break;
565
566
  }
566
- }, Q = (n) => {
567
+ }, J = (n) => {
567
568
  if (n === "") {
568
569
  v({ message: "Error processing card" }), O(!1), _(se);
569
570
  return;
@@ -651,7 +652,7 @@ import './assets/index9.css';const dt = (C) => ({
651
652
  O(!0);
652
653
  },
653
654
  cardTokenized: (n) => {
654
- Q(n.token);
655
+ J(n.token);
655
656
  },
656
657
  cardTokenizationFailed: (n) => {
657
658
  alert("card tokenization failed"), console.log(n);
@@ -723,17 +724,17 @@ import './assets/index9.css';const dt = (C) => ({
723
724
  rrBaseUrl: _,
724
725
  checkoutSdkKey: v
725
726
  }) => {
726
- const u = nt(), p = q((d) => d.order), P = q(
727
+ const u = ot(), p = K((d) => d.order), P = K(
727
728
  (d) => d.user.profile
728
- ), r = p.error, E = q(
729
+ ), r = p.error, E = K(
729
730
  (d) => d.user.profile.everWalletAddress
730
- ), M = q(
731
+ ), M = K(
731
732
  (d) => d.fiatAssets
732
- ), h = q(
733
+ ), h = K(
733
734
  (d) => d.cryptoAssets
734
- ), b = q((d) => d.app), [f, m] = c(se), [z, k] = c(0), { showAlertMessage: N } = ot();
735
+ ), b = K((d) => d.app), [f, m] = c(se), [z, k] = c(0), { showAlertMessage: N } = it();
735
736
  return g(() => {
736
- k(Je(P.tokens.list));
737
+ k(Qe(P.tokens.list));
737
738
  }, [P.tokens]), g(() => {
738
739
  r && N({ message: r });
739
740
  }, [r]), g(() => {
@@ -760,7 +761,7 @@ import './assets/index9.css';const dt = (C) => ({
760
761
  orderData: p,
761
762
  dispatch: u,
762
763
  getCryptoAssets: (d) => {
763
- u(at({ type: te, id: d, partnerKey: C }));
764
+ u(nt({ type: te, id: d, partnerKey: C }));
764
765
  },
765
766
  partnerKey: C,
766
767
  balance: z,
@@ -792,7 +793,7 @@ import './assets/index9.css';const dt = (C) => ({
792
793
  }
793
794
  ),
794
795
  MINIMAL_KYC_SCREEN: /* @__PURE__ */ e(
795
- it,
796
+ at,
796
797
  {
797
798
  onComplete: () => {
798
799
  m(ce);
@@ -802,7 +803,7 @@ import './assets/index9.css';const dt = (C) => ({
802
803
  }[f]
803
804
  }
804
805
  );
805
- }, jt = Oe(xt);
806
+ }, Ht = Oe(xt);
806
807
  export {
807
808
  ut as B,
808
809
  ht as C,
@@ -811,5 +812,5 @@ export {
811
812
  ft as P,
812
813
  pt as a,
813
814
  ce as b,
814
- jt as i
815
+ Ht as i
815
816
  };