everest-npm-features 0.0.57 → 0.0.59

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 (103) hide show
  1. package/dist/{PlayArrow-jzz8Y3XD.js → PlayArrow-BlkZJiHn.js} +1 -1
  2. package/dist/{auth-jjVjqywi.js → auth-WhDJHZtr.js} +1 -1
  3. package/dist/{bank-BM66KfAv.js → bank-BaOrdTcI.js} +1 -1
  4. package/dist/components/RocketRamp/MinimalKyc/form.js +5 -4
  5. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +3 -3
  6. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +3 -3
  7. package/dist/components/RocketRamp/Player/Buy/form.js +4 -4
  8. package/dist/components/RocketRamp/Player/Buy/index.js +5 -5
  9. package/dist/components/RocketRamp/Player/Dashboard/index.js +2 -2
  10. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +3 -3
  11. package/dist/components/RocketRamp/Player/Sell/form.js +4 -4
  12. package/dist/components/RocketRamp/Player/Sell/index.js +11 -10
  13. package/dist/components/RocketRamp/Player/SignIn/index.js +2 -2
  14. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +2 -2
  15. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +2 -2
  16. package/dist/components/RocketRamp/Player/SignUp/email.js +2 -2
  17. package/dist/components/RocketRamp/Player/SignUp/index.js +2 -2
  18. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +2 -2
  19. package/dist/components/RocketRamp/ResetPassword/index.js +2 -2
  20. package/dist/components/RocketRamp/Store/SignUp/index.js +2 -2
  21. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +2 -2
  22. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +2 -2
  23. package/dist/components/RocketRamp/Transactions/index.js +2 -2
  24. package/dist/components/Shared/FullKyc/edd.js +5 -4
  25. package/dist/components/Shared/FullKyc/index.js +4 -4
  26. package/dist/components/Shared/FullKyc/pep.js +1 -1
  27. package/dist/components/Shared/FullKyc/personalDetails.js +2 -2
  28. package/dist/components/Shared/FullKyc/userInfo.js +3 -3
  29. package/dist/components/Shared/MinimalKyc/index.js +2 -2
  30. package/dist/components/Shared/Sumsub/index.d.ts +5 -0
  31. package/dist/components/Shared/Sumsub/index.js +83 -0
  32. package/dist/components/Wallet/Account/createIban.js +4 -3
  33. package/dist/components/Wallet/Account/eWallet.d.ts +4 -2
  34. package/dist/components/Wallet/Account/eWallet.js +30 -28
  35. package/dist/components/Wallet/Account/iban.d.ts +4 -2
  36. package/dist/components/Wallet/Account/iban.js +30 -28
  37. package/dist/components/Wallet/Account/ibanItem.d.ts +4 -2
  38. package/dist/components/Wallet/Account/ibanItem.js +180 -175
  39. package/dist/components/Wallet/Account/index.js +191 -177
  40. package/dist/components/Wallet/Account/sendIban.js +11 -11
  41. package/dist/components/Wallet/Buy/confirmTransaction.js +6 -5
  42. package/dist/components/Wallet/Buy/form.js +4 -4
  43. package/dist/components/Wallet/Buy/index.js +6 -6
  44. package/dist/components/Wallet/Deposit/index.js +4 -3
  45. package/dist/components/Wallet/EnterpriseKyc/edd.js +4 -3
  46. package/dist/components/Wallet/EnterpriseKyc/index.js +3 -3
  47. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +13 -12
  48. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +4 -3
  49. package/dist/components/Wallet/EnterpriseKyc/verify.js +4 -3
  50. package/dist/components/Wallet/History/index.js +2 -2
  51. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.d.ts +7 -13
  52. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +216 -231
  53. package/dist/components/Wallet/Portfolio/index.js +8 -7
  54. package/dist/components/Wallet/Portfolio/tokenRow.js +1 -1
  55. package/dist/components/Wallet/Profile/documents.js +15 -15
  56. package/dist/components/Wallet/Profile/index.js +4 -3
  57. package/dist/components/Wallet/Profile/storage.js +12 -12
  58. package/dist/components/Wallet/Receive/index.js +2 -2
  59. package/dist/components/Wallet/Sell/confirmTransaction.js +5 -4
  60. package/dist/components/Wallet/Sell/form.js +4 -4
  61. package/dist/components/Wallet/Sell/index.js +6 -6
  62. package/dist/components/Wallet/Send/index.js +14 -13
  63. package/dist/components/Wallet/Shared/Auth/otpForm.js +2 -2
  64. package/dist/components/Wallet/Shared/BankSelect/index.js +3 -3
  65. package/dist/components/Wallet/Shared/CardCorp/index.js +4 -3
  66. package/dist/components/Wallet/Shared/addBank.js +5 -4
  67. package/dist/components/Wallet/Shared/connectPlaidBank.js +2 -2
  68. package/dist/components/Wallet/Shared/manualSend.js +5 -4
  69. package/dist/components/Wallet/SignIn/index.js +2 -2
  70. package/dist/components/Wallet/SignUp/index.js +2 -2
  71. package/dist/components/Wallet/Stake/gems/index.d.ts +26 -2
  72. package/dist/components/Wallet/Stake/gems/index.js +74 -85
  73. package/dist/components/Wallet/Stake/id/index.d.ts +27 -1
  74. package/dist/components/Wallet/Stake/id/index.js +68 -78
  75. package/dist/components/Wallet/Stake/index.d.ts +4 -1
  76. package/dist/components/Wallet/Stake/index.js +233 -201
  77. package/dist/components/Wallet/Swap/form.js +7 -6
  78. package/dist/components/Wallet/Swap/index.js +5 -5
  79. package/dist/components/Wallet/Withdraw/bankSelect.js +4 -4
  80. package/dist/components/Wallet/Withdraw/confirmTransaction.js +3 -3
  81. package/dist/components/Wallet/Withdraw/form.js +4 -4
  82. package/dist/components/Wallet/Withdraw/index.js +5 -5
  83. package/dist/{constants-Dtk3Gd0Y.js → constants-DREDnCMu.js} +482 -481
  84. package/dist/{cryptoAssets-DT2afvDJ.js → cryptoAssets-DbyDgq4J.js} +1 -1
  85. package/dist/{index-BGJ8RVKA.js → index-BXutc9ik.js} +8 -7
  86. package/dist/index-CWoxdH_Z.js +543 -0
  87. package/dist/{index-CyPm8GTl.js → index-CuPCW3XC.js} +29 -29
  88. package/dist/{index-BUnkeQv6.js → index-DJ7xuxBy.js} +9 -8
  89. package/dist/{index-BEFNlxwM.js → index-DV1dVcrY.js} +31 -30
  90. package/dist/{index-B4pP4oLo.js → index-DYP5Ex_T.js} +9 -8
  91. package/dist/{index-JdlBukUO.js → index-PoMNqntN.js} +4 -4
  92. package/dist/index.esm-I_Bp2YLf.js +224 -0
  93. package/dist/kyc-D4s_B9Cf.js +33 -0
  94. package/dist/main.js +7 -7
  95. package/dist/{order-DuPcaU0K.js → order-DGBbo_Ox.js} +1 -1
  96. package/dist/{stake-WaB8Q4v-.js → stake-CdMc5H7D.js} +1 -1
  97. package/dist/{tokenRow-B-tustzZ.js → tokenRow-C-iMHhPj.js} +14 -12
  98. package/dist/util/constants.d.ts +5 -0
  99. package/dist/util/constants.js +105 -101
  100. package/dist/{wallet-BxwOFeSW.js → wallet-DvfdQOju.js} +10 -10
  101. package/package.json +4 -2
  102. package/dist/index-BU6Lajc_.js +0 -503
  103. package/dist/kyc-BOm2LCSg.js +0 -26
@@ -1,23 +1,22 @@
1
- import { jsxs as o, Fragment as _e, jsx as e } from "react/jsx-runtime";
2
- import { useState as r, useEffect as _ } from "react";
3
- import xe from "./id/index.js";
4
- import we from "./gems/index.js";
5
- import { u as K } from "../../../react-redux-C7I9-1M6.js";
6
- import { ID_STAKE as i, STAKE_ID_MIN_DAYS as ee, GEM_SYNTHETIC_TOKEN_SYMBOL as Ae, ID_TOKEN_SYMBOL as De, EVER_CHAIN_NETWORK as be, GEMS_STAKE as T, STAKE_GEM_MAX_DAYS as Ie, STAKE_ID_ICON as Te, STAKE_GEM_ICON as Ee, STAKE_GEM_MAX_APY as ve, STAKE_ID_MIN_APY as Ne, STAKE_ID_MID_DAYS as Re, STAKE_ID_MID_APY as ye, STAKE_ID_MAX_DAYS as Me, STAKE_ID_MAX_APY as Ce } from "../../../util/constants.js";
7
- import "../../../constants-Dtk3Gd0Y.js";
8
- import { a as Fe } from "../../../index-BQNs1mvn.js";
9
- import { f as Pe } from "../../../wallet-BxwOFeSW.js";
10
- import { s as Be, a as Ge, b as Ke } from "../../../stake-WaB8Q4v-.js";
11
- import { fromHuman as Le, numberFormat as u, toHuman as E } from "../../../util/conversions.js";
1
+ import { jsx as t, Fragment as ne, jsxs as r } from "react/jsx-runtime";
2
+ import { useState as s, useEffect as w } from "react";
3
+ import Re from "./id/index.js";
4
+ import ye from "./gems/index.js";
5
+ import { u as W } from "../../../react-redux-C7I9-1M6.js";
6
+ import { ID_STAKE as i, STAKE_ID_MIN_DAYS as le, GEM_SYNTHETIC_TOKEN_SYMBOL as Be, EVER_CHAIN_NETWORK as C, GEMS_TOKEN_SYMBOL as z, ETHEREUM_NETWORK as N, ID_TOKEN_SYMBOL as $, GEMS_STAKE as R, STAKE_GEM_MAX_DAYS as Ge, STAKE_ID_ICON as Le, STAKE_GEM_ICON as Fe, STAKE_GEM_MAX_APY as Ke, STAKE_ID_MIN_APY as Pe, STAKE_ID_MID_DAYS as Ye, STAKE_ID_MID_APY as Oe, STAKE_ID_MAX_DAYS as We, STAKE_ID_MAX_APY as ze } from "../../../util/constants.js";
7
+ import "../../../constants-DREDnCMu.js";
8
+ import { a as $e } from "../../../index-BQNs1mvn.js";
9
+ import { f as He } from "../../../wallet-DvfdQOju.js";
10
+ import { s as Xe, a as je, b as qe } from "../../../stake-CdMc5H7D.js";
11
+ import { fromHuman as Ue, numberFormat as x, toHuman as y } from "../../../util/conversions.js";
12
12
  import "../../../index-DlQqWbXG.js";
13
- import "../Shared/appButton.js";
14
- import Ye from "../../../hoc/withThemeProvider.js";
15
- import { decimalNumbersWithCommaOrDot as We } from "../../../util/regex.js";
13
+ import ie from "../Shared/appButton.js";
14
+ import Ve from "../../../hoc/withThemeProvider.js";
15
+ import { decimalNumbersWithCommaOrDot as Je } from "../../../util/regex.js";
16
16
  import "../Shared/Auth/otpForm.js";
17
- import "../../../context/snackBarContext.js";
18
- import Oe from "../../../hooks/useEverestDispatch.js";
17
+ import { useSnackBarContext as Qe } from "../../../context/snackBarContext.js";
18
+ import Ze from "../../../hooks/useEverestDispatch.js";
19
19
  import "../../../index-CAoLi5Qq.js";
20
- import { useSnackBar as ze } from "../../../hooks/useSnackBar.js";
21
20
  import "../../../react-webcam-B3cXh1XT.js";
22
21
  import "../../Shared/transition.js";
23
22
  import "../../../tooltip-3UvETWtS.js";
@@ -25,144 +24,155 @@ import "../Shared/pin.js";
25
24
  import "../../../moment-h96o7c8I.js";
26
25
  import "../../../index.esm-BsMAMhYW.js";
27
26
  import "../../../web3-u4qDZYpo.js";
27
+ import et from "../MoveToEthereumOrEverChain/index.js";
28
28
  import "../../../index-ceeCtFuh.js";
29
+ import "../../../index.esm-I_Bp2YLf.js";
29
30
  import "../../../context/dialogContext.js";
30
- import { s as x } from "../../../styles.module-C1sNeKjL.js";
31
- import { B as h } from "../../../Box-B0YSYLco.js";
32
- import { G as f } from "../../../Grid-CFe3amXO.js";
31
+ import { s as E } from "../../../styles.module-C1sNeKjL.js";
32
+ import { B as S } from "../../../Box-B0YSYLco.js";
33
+ import { G as u } from "../../../Grid-CFe3amXO.js";
33
34
  import { T as c } from "../../../Typography-pAaje37G.js";
34
- import { D as $e, a as He } from "../../../DialogContent-BMwlOnbW.js";
35
- import { C as Xe } from "../../../CircularProgress-xZA3lvba.js";
36
- import { B as te } from "../../../Button-Df4vgU24.js";
37
- const je = ({ router: v }) => {
38
- const D = Oe(), { showAlertMessage: m, snackBar: ae } = ze(), N = K(Fe).everWalletAddress, L = K((t) => t.user.wallets);
39
- L.loader;
40
- const R = L.data, se = K((t) => t.stake), {
41
- loader: Y,
42
- data: y,
43
- addLoader: oe,
44
- error: M,
45
- tx: W
46
- } = se, [a, O] = r(i), [z, re] = r(!0), [$, ne] = r(0), [H, le] = r(0), [p, C] = r(""), [k, X] = r(ee), [F, ie] = r({
35
+ import { D as tt, a as at } from "../../../DialogContent-BMwlOnbW.js";
36
+ import { C as ot } from "../../../CircularProgress-xZA3lvba.js";
37
+ const st = ({
38
+ navigate: ce,
39
+ depositAddress: H,
40
+ gemTokenAddress: de,
41
+ idTokenAddress: me
42
+ }) => {
43
+ const D = Ze(), { showAlertMessage: m } = Qe(), B = W($e).everWalletAddress, X = W((e) => e.user.wallets);
44
+ X.loader;
45
+ const G = X.data, ke = W((e) => e.stake), {
46
+ loader: j,
47
+ data: L,
48
+ addLoader: ue,
49
+ error: F,
50
+ tx: q
51
+ } = ke, [a, U] = s(i), [V, fe] = s(!0), [J, he] = s(0), [pe, Se] = s(0), [Q, ge] = s(0), [_e, we] = s(0), [g, A] = s(null), [f, K] = s(""), [h, Z] = s(le), [P, xe] = s({
47
52
  data: [],
48
53
  totalStake: 0,
49
54
  totalReward: 0
50
- }), [P, ce] = r({
55
+ }), [Y, Ee] = s({
51
56
  data: [],
52
57
  totalStake: 0,
53
58
  totalReward: 0
54
- }), [de, b] = r(!1), [me, j] = r(""), [fe, q] = r(""), [pe, V] = r(
59
+ }), [Ae, b] = s(!1), [Te, ee] = s(""), [ve, te] = s(""), [De, ae] = s(
55
60
  void 0
56
- ), ke = a === i ? 18 : 6, ue = Le(p.toString(), ke);
57
- let I = ve;
58
- a === i && (I = Ne, k === Re ? I = ye : k === Me && (I = Ce)), _(() => {
59
- M && (Se(), m({ message: M }));
60
- }, [M]), _(() => {
61
- W && (b(!1), m({
61
+ ), be = a === i ? 18 : 6, Ie = Ue(f.toString(), be);
62
+ let I = Ke;
63
+ a === i && (I = Pe, h === Ye ? I = Oe : h === We && (I = ze)), w(() => {
64
+ F && (Ce(), m({ message: F }));
65
+ }, [F]), w(() => {
66
+ q && (b(!1), m({
62
67
  message: "Token has been successfully staked.",
63
68
  type: "success"
64
- }), v.push("/wallet"));
65
- }, [W]), _(() => {
66
- let t = Ie;
67
- a === i && (t = ee), X(t), C("");
68
- }, [a]), _(() => (D(Be()), D(Pe()), () => {
69
- D(Ge());
70
- }), []), _(() => {
71
- if (N && R.length > 0) {
72
- const t = R.find(
73
- (s) => s.address === N
69
+ }), ce("/dashboard"));
70
+ }, [q]), w(() => {
71
+ let e = Ge;
72
+ a === i && (e = le), Z(e), K("");
73
+ }, [a]), w(() => (D(Xe()), D(He()), () => {
74
+ D(je());
75
+ }), []), w(() => {
76
+ if (B && G.length > 0) {
77
+ const e = G.find(
78
+ (o) => o.address === B
74
79
  );
75
- if (t) {
76
- const s = t.tokens, l = s.length;
80
+ if (e) {
81
+ const o = e.tokens, l = o.length;
77
82
  for (let d = 0; d < l; d++) {
78
- const n = s[d];
79
- if (n.symbol === Ae) {
80
- const S = n.fmt_balance.replaceAll(",", "");
81
- ne(parseFloat(u(S)));
82
- }
83
- if (n.symbol === De && n.network.toLowerCase() === be.toLowerCase()) {
84
- const S = n.fmt_balance.replaceAll(",", "");
85
- le(parseFloat(u(S)));
86
- }
83
+ const n = o[d], M = n.fmt_balance.replaceAll(",", ""), p = parseFloat(x(M)), k = n.network.toLowerCase();
84
+ n.symbol === Be && k === C.toLowerCase() && ge(p), n.symbol === z && k === N.toLowerCase() && we(p), n.symbol === $ && (k === C.toLowerCase() ? he(p) : k === N.toLowerCase() && Se(p));
87
85
  }
88
- re(!1);
86
+ fe(!1);
89
87
  }
90
88
  }
91
- }, [N, R]), _(() => {
92
- const t = y.length;
93
- if (t > 0) {
94
- const s = [], l = [];
95
- let d = 0, n = 0, S = 0, U = 0;
96
- for (let G = 0; G < t; G++) {
97
- const g = y[G], Z = g.days_left;
98
- if (g.token === i) {
99
- const w = E(g.tokens_staked, 18), A = E(g.reward_tokens, 18);
100
- s.push({
101
- tokensStake: parseFloat(u(w)),
102
- tokensReward: parseFloat(u(A)),
103
- days: Z
104
- }), d += parseFloat(w), n += parseFloat(A);
89
+ }, [B, G]), w(() => {
90
+ const e = L.length;
91
+ if (e > 0) {
92
+ const o = [], l = [];
93
+ let d = 0, n = 0, M = 0, p = 0;
94
+ for (let k = 0; k < e; k++) {
95
+ const _ = L[k], re = _.days_left;
96
+ if (_.token === i) {
97
+ const T = y(_.tokens_staked, 18), v = y(_.reward_tokens, 18);
98
+ o.push({
99
+ tokensStake: parseFloat(x(T)),
100
+ tokensReward: parseFloat(x(v)),
101
+ days: re
102
+ }), d += parseFloat(T), n += parseFloat(v);
105
103
  } else {
106
- const w = E(g.tokens_staked, 6), A = E(g.reward_tokens, 18);
104
+ const T = y(_.tokens_staked, 6), v = y(_.reward_tokens, 18);
107
105
  l.push({
108
- tokensStake: u(w),
109
- tokensReward: u(A),
110
- days: Z
111
- }), S += parseFloat(w), U += parseFloat(A);
106
+ tokensStake: x(T),
107
+ tokensReward: x(v),
108
+ days: re
109
+ }), M += parseFloat(T), p += parseFloat(v);
112
110
  }
113
111
  }
114
- ie({
115
- data: s,
112
+ xe({
113
+ data: o,
116
114
  totalStake: d,
117
115
  totalReward: n
118
- }), ce({
116
+ }), Ee({
119
117
  data: l,
120
- totalStake: S,
121
- totalReward: parseFloat(u(U + ""))
118
+ totalStake: M,
119
+ totalReward: parseFloat(x(p + ""))
122
120
  });
123
121
  }
124
- }, [y]);
125
- const he = () => {
122
+ }, [L]);
123
+ const Me = () => {
126
124
  D(
127
- Ke({
128
- amount: ue,
125
+ qe({
126
+ amount: Ie,
129
127
  type: a,
130
- period: k.toString()
128
+ period: h.toString()
131
129
  })
132
130
  );
133
- }, Se = () => {
131
+ }, Ce = () => {
134
132
  b(!1);
135
- const { title: t, html: s, func: l } = J();
136
- j(t), q(s), V(() => l);
137
- }, ge = () => {
138
- B("review");
139
- }, B = (t) => {
140
- if (!k)
141
- return m({
133
+ const { title: e, html: o, func: l } = oe();
134
+ ee(e), te(o), ae(() => l);
135
+ }, Ne = () => {
136
+ O("review");
137
+ }, O = (e) => {
138
+ if (!h) {
139
+ m({
142
140
  message: "Please select the stake duration period"
143
- }), !1;
144
- if (!p)
145
- return m({ message: "Please provide the amount to stake" }), !1;
146
- if (!We.test(p))
147
- return m({
141
+ });
142
+ return;
143
+ }
144
+ if (!f) {
145
+ m({ message: "Please provide the amount to stake" });
146
+ return;
147
+ }
148
+ if (!Je.test(f)) {
149
+ m({
148
150
  message: "Please provide the valid amount"
149
- }), !1;
150
- const s = parseFloat(p.replaceAll(",", "."));
151
- if (s * 1 <= 0)
152
- return m({
151
+ });
152
+ return;
153
+ }
154
+ const o = parseFloat(f.replaceAll(",", "."));
155
+ if (o * 1 <= 0) {
156
+ m({
153
157
  message: "Please provide the amount greater than 0"
154
- }), !1;
155
- if (a === i && s * 1 > H * 1)
156
- return m({ message: "Insufficient balance to stake" }), !1;
157
- if (a === T && s * 1 > $ * 1)
158
- return m({ message: "Insufficient balance to stake" }), !1;
159
- let { title: l, html: d, func: n } = J();
160
- t === "review" && (l = "Please Review", d = `You are about to stake <strong>${p} ${a}</strong> Tokens for <strong>${k} days</strong> for ${a === T ? "up to" : ""} <strong>${I}% APY</strong>`, n = he), j(l), q(d), b(!0), V(() => n);
161
- }, J = () => {
162
- let t = "Are you sure?", s = `You will not have access to your ${a} Tokens during the staking period of <strong>${k} days</strong>`;
163
- return { title: t, html: s, func: ge };
164
- }, Q = ({ data: t }) => /* @__PURE__ */ o(
165
- h,
158
+ });
159
+ return;
160
+ }
161
+ if (a === i && o * 1 > J * 1) {
162
+ m({ message: "Insufficient balance to stake" });
163
+ return;
164
+ }
165
+ if (a === R && o * 1 > Q * 1) {
166
+ m({ message: "Insufficient balance to stake" });
167
+ return;
168
+ }
169
+ let { title: l, html: d, func: n } = oe();
170
+ e === "review" && (l = "Please Review", d = `You are about to stake <strong>${f} ${a}</strong> Tokens for <strong>${h} days</strong> for ${a === R ? "up to" : ""} <strong>${I}% APY</strong>`, n = Me), ee(l), te(d), b(!0), ae(() => n);
171
+ }, oe = () => {
172
+ let e = "Are you sure?", o = `You will not have access to your ${a} Tokens during the staking period of <strong>${h} days</strong>`;
173
+ return { title: e, html: o, func: Ne };
174
+ }, se = ({ data: e }) => /* @__PURE__ */ r(
175
+ S,
166
176
  {
167
177
  mb: 2,
168
178
  sx: {
@@ -170,8 +180,8 @@ const je = ({ router: v }) => {
170
180
  boxShadow: "0px 2px 2px 0px rgba(0, 0, 0, 0.10);"
171
181
  },
172
182
  children: [
173
- /* @__PURE__ */ o(
174
- h,
183
+ /* @__PURE__ */ r(
184
+ S,
175
185
  {
176
186
  sx: {
177
187
  background: "#F0F0F0",
@@ -179,106 +189,139 @@ const je = ({ router: v }) => {
179
189
  display: "flex"
180
190
  },
181
191
  children: [
182
- /* @__PURE__ */ e(
192
+ /* @__PURE__ */ t(
183
193
  "img",
184
194
  {
185
- src: a === i ? Te : Ee,
195
+ src: a === i ? Le : Fe,
186
196
  alt: "id",
187
197
  width: 32
188
198
  }
189
199
  ),
190
- /* @__PURE__ */ e(c, { sx: { ml: "10px" }, variant: "h6", component: "span", children: /* @__PURE__ */ o("strong", { children: [
191
- t.tokensStake,
200
+ /* @__PURE__ */ t(c, { sx: { ml: "10px" }, variant: "h6", component: "span", children: /* @__PURE__ */ r("strong", { children: [
201
+ e.tokensStake,
192
202
  " ",
193
203
  a
194
204
  ] }) })
195
205
  ]
196
206
  }
197
207
  ),
198
- /* @__PURE__ */ e(h, { sx: { padding: "20px" }, children: /* @__PURE__ */ o(f, { spacing: 1, container: !0, children: [
199
- /* @__PURE__ */ e(f, { size: 6, children: /* @__PURE__ */ e(c, { className: "fs16", children: /* @__PURE__ */ e("strong", { children: "Days Remaining" }) }) }),
200
- /* @__PURE__ */ e(f, { size: 6, children: /* @__PURE__ */ e(c, { className: "text-right fs16 fw500", children: t.days }) }),
201
- /* @__PURE__ */ e(f, { size: 6, children: /* @__PURE__ */ e(c, { className: "fs16", children: /* @__PURE__ */ e("strong", { children: "Rewards" }) }) }),
202
- /* @__PURE__ */ e(f, { size: 6, children: /* @__PURE__ */ o(c, { className: "text-right fs16 fw500", children: [
203
- t.tokensReward,
208
+ /* @__PURE__ */ t(S, { sx: { padding: "20px" }, children: /* @__PURE__ */ r(u, { spacing: 1, container: !0, children: [
209
+ /* @__PURE__ */ t(u, { size: 6, children: /* @__PURE__ */ t(c, { className: "fs16", children: /* @__PURE__ */ t("strong", { children: "Days Remaining" }) }) }),
210
+ /* @__PURE__ */ t(u, { size: 6, children: /* @__PURE__ */ t(c, { className: "text-right fs16 fw500", children: e.days }) }),
211
+ /* @__PURE__ */ t(u, { size: 6, children: /* @__PURE__ */ t(c, { className: "fs16", children: /* @__PURE__ */ t("strong", { children: "Rewards" }) }) }),
212
+ /* @__PURE__ */ t(u, { size: 6, children: /* @__PURE__ */ r(c, { className: "text-right fs16 fw500", children: [
213
+ e.tokensReward,
204
214
  " ID"
205
215
  ] }) })
206
216
  ] }) })
207
217
  ]
208
218
  }
209
219
  );
210
- return /* @__PURE__ */ o(_e, { children: [
211
- ae,
212
- /* @__PURE__ */ o(h, { className: x.container, children: [
213
- /* @__PURE__ */ e(h, { className: x["sub-tabs"], children: /* @__PURE__ */ o(
214
- f,
220
+ return g ? /* @__PURE__ */ t(ne, { children: /* @__PURE__ */ t(
221
+ et,
222
+ {
223
+ token: g.token,
224
+ network: g.network,
225
+ initialBalance: g.balance.toString(),
226
+ depositAddress: g.depositAddress,
227
+ tokenAddress: g.tokenAddress,
228
+ onBack: () => A(null)
229
+ }
230
+ ) }) : /* @__PURE__ */ r(ne, { children: [
231
+ /* @__PURE__ */ r(S, { className: E.container, children: [
232
+ /* @__PURE__ */ t(S, { className: E["sub-tabs"], children: /* @__PURE__ */ r(
233
+ u,
215
234
  {
216
235
  container: !0,
217
236
  spacing: 1,
218
237
  mb: 3,
219
238
  sx: { width: "250px", marginLeft: "-250px" },
220
239
  children: [
221
- /* @__PURE__ */ e(f, { className: x["sub-tabs-item"], size: 6, children: /* @__PURE__ */ e(
240
+ /* @__PURE__ */ t(u, { className: E["sub-tabs-item"], size: 6, children: /* @__PURE__ */ t(
222
241
  c,
223
242
  {
224
243
  fontSize: 25,
225
- className: `font-bold ${a === i ? x.active : ""}`,
244
+ className: `font-bold ${a === i ? E.active : ""}`,
226
245
  variant: "h5",
227
- onClick: () => O(i),
246
+ onClick: () => U(i),
228
247
  children: "ID"
229
248
  }
230
249
  ) }),
231
- /* @__PURE__ */ e(f, { className: x["sub-tabs-item"], size: 6, children: /* @__PURE__ */ e(
250
+ /* @__PURE__ */ t(u, { className: E["sub-tabs-item"], size: 6, children: /* @__PURE__ */ t(
232
251
  c,
233
252
  {
234
253
  fontSize: 25,
235
- className: `font-bold ${a === T ? x.active : ""}`,
254
+ className: `font-bold ${a === R ? E.active : ""}`,
236
255
  variant: "h5",
237
- onClick: () => O(T),
256
+ onClick: () => U(R),
238
257
  children: "GEMS"
239
258
  }
240
259
  ) })
241
260
  ]
242
261
  }
243
262
  ) }),
244
- a === i ? /* @__PURE__ */ e(
245
- xe,
246
- {
247
- history: v,
248
- loader: Y,
249
- stakeData: F.data,
250
- totalStake: F.totalStake,
251
- totalReward: F.totalReward,
252
- StakeItem: Q,
253
- stakeStart: B,
254
- amount: p,
255
- setAmount: C,
256
- stakeDuration: k,
257
- setStakeDuration: X,
258
- balanceLoader: z,
259
- balance: H
260
- }
261
- ) : /* @__PURE__ */ e(
262
- we,
263
+ a === i ? /* @__PURE__ */ t(
264
+ Re,
263
265
  {
264
- history: v,
265
- loader: Y,
266
+ loader: j,
266
267
  stakeData: P.data,
267
268
  totalStake: P.totalStake,
268
269
  totalReward: P.totalReward,
269
- StakeItem: Q,
270
- stakeStart: B,
271
- amount: p,
272
- setAmount: C,
273
- balanceLoader: z,
274
- balance: $
270
+ StakeItem: se,
271
+ stakeStart: O,
272
+ amount: f,
273
+ setAmount: K,
274
+ stakeDuration: h,
275
+ setStakeDuration: Z,
276
+ balanceLoader: V,
277
+ balance: J,
278
+ ethereumBalance: pe,
279
+ onMoveToEthereum: (e) => A({
280
+ token: $,
281
+ balance: e,
282
+ network: N
283
+ }),
284
+ onMoveToEverChain: (e) => A({
285
+ token: $,
286
+ balance: e,
287
+ network: C,
288
+ depositAddress: H,
289
+ tokenAddress: me
290
+ })
291
+ }
292
+ ) : /* @__PURE__ */ t(
293
+ ye,
294
+ {
295
+ loader: j,
296
+ stakeData: Y.data,
297
+ totalStake: Y.totalStake,
298
+ totalReward: Y.totalReward,
299
+ StakeItem: se,
300
+ stakeStart: O,
301
+ amount: f,
302
+ setAmount: K,
303
+ balanceLoader: V,
304
+ balance: Q,
305
+ ethereumBalance: _e,
306
+ onMoveToEthereum: (e) => A({
307
+ token: z,
308
+ balance: e,
309
+ network: N
310
+ }),
311
+ onMoveToEverChain: (e) => A({
312
+ token: z,
313
+ balance: e,
314
+ network: C,
315
+ depositAddress: H,
316
+ tokenAddress: de
317
+ })
275
318
  }
276
319
  )
277
320
  ] }),
278
- /* @__PURE__ */ e(
279
- $e,
321
+ /* @__PURE__ */ t(
322
+ tt,
280
323
  {
281
- open: de,
324
+ open: Ae,
282
325
  fullWidth: !0,
283
326
  sx: {
284
327
  "& .MuiDialog-container": {
@@ -287,20 +330,20 @@ const je = ({ router: v }) => {
287
330
  }
288
331
  }
289
332
  },
290
- children: /* @__PURE__ */ o(He, { sx: { mt: 3 }, className: "stake-modal-content", children: [
291
- /* @__PURE__ */ e(c, { variant: "h4", className: "text-center", children: /* @__PURE__ */ e("strong", { children: me }) }),
292
- /* @__PURE__ */ e(
333
+ children: /* @__PURE__ */ r(at, { sx: { mt: 3 }, className: "stake-modal-content", children: [
334
+ /* @__PURE__ */ t(c, { variant: "h4", className: "text-center", children: /* @__PURE__ */ t("strong", { children: Te }) }),
335
+ /* @__PURE__ */ t(
293
336
  c,
294
337
  {
295
338
  sx: { mt: 5 },
296
339
  variant: "h6",
297
340
  className: "text-center fw500",
298
- dangerouslySetInnerHTML: { __html: fe }
341
+ dangerouslySetInnerHTML: { __html: ve }
299
342
  }
300
343
  ),
301
- oe ? /* @__PURE__ */ o(h, { mt: 4, sx: { color: "#00B171", textAlign: "center" }, children: [
302
- /* @__PURE__ */ e(Xe, { size: 30 }),
303
- /* @__PURE__ */ o(
344
+ ue ? /* @__PURE__ */ r(S, { mt: 4, sx: { color: "#00B171", textAlign: "center" }, children: [
345
+ /* @__PURE__ */ t(ot, { size: 30 }),
346
+ /* @__PURE__ */ r(
304
347
  c,
305
348
  {
306
349
  className: "secondary-text-color",
@@ -308,32 +351,21 @@ const je = ({ router: v }) => {
308
351
  sx: { fontWeight: "bold" },
309
352
  children: [
310
353
  "Staking in Progress...",
311
- /* @__PURE__ */ e("br", {}),
354
+ /* @__PURE__ */ t("br", {}),
312
355
  "one moment please"
313
356
  ]
314
357
  }
315
358
  )
316
- ] }) : /* @__PURE__ */ o(h, { px: { xs: 6, md: 15 }, children: [
317
- /* @__PURE__ */ e(
318
- te,
319
- {
320
- sx: { mt: 6 },
321
- onClick: pe,
322
- className: "wallet-btn",
323
- variant: "contained",
324
- fullWidth: !0,
325
- children: /* @__PURE__ */ e("strong", { children: "Ok" })
326
- }
327
- ),
328
- /* @__PURE__ */ e(
329
- te,
359
+ ] }) : /* @__PURE__ */ r(S, { px: { xs: 6, md: 15 }, children: [
360
+ /* @__PURE__ */ t(ie, { sx: { mt: 6 }, onClick: De, fullWidth: !0, children: /* @__PURE__ */ t("strong", { children: "Ok" }) }),
361
+ /* @__PURE__ */ t(
362
+ ie,
330
363
  {
331
- className: "sdk-btn-connect-wallet",
364
+ variantType: "cancel",
332
365
  onClick: () => b(!1),
333
366
  sx: { mt: 2 },
334
- variant: "contained",
335
367
  fullWidth: !0,
336
- children: /* @__PURE__ */ e("strong", { children: "Cancel" })
368
+ children: "Cancel"
337
369
  }
338
370
  )
339
371
  ] })
@@ -341,7 +373,7 @@ const je = ({ router: v }) => {
341
373
  }
342
374
  )
343
375
  ] });
344
- }, yt = Ye(je);
376
+ }, Wt = Ve(st);
345
377
  export {
346
- yt as default
378
+ Wt as default
347
379
  };
@@ -1,16 +1,16 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "../../../react-redux-C7I9-1M6.js";
4
- import "../../../PlayArrow-jzz8Y3XD.js";
4
+ import "../../../PlayArrow-BlkZJiHn.js";
5
5
  import "../../../Info-BVeUSPyk.js";
6
6
  import "../../../generic-token-B_ptO5yb.js";
7
7
  import "../../../util/functions.js";
8
8
  import "../Shared/TokenModal/index.js";
9
9
  import "../../../util/conversions.js";
10
- import "../../../constants-Dtk3Gd0Y.js";
10
+ import "../../../constants-DREDnCMu.js";
11
11
  import "../../../index-BQNs1mvn.js";
12
- import "../../../cryptoAssets-DT2afvDJ.js";
13
- import "../../../order-DuPcaU0K.js";
12
+ import "../../../cryptoAssets-DbyDgq4J.js";
13
+ import "../../../order-DGBbo_Ox.js";
14
14
  import "../../../util/constants.js";
15
15
  import "../../../tooltip-3UvETWtS.js";
16
16
  import "../../../index-DlQqWbXG.js";
@@ -29,7 +29,8 @@ import "../../../web3-u4qDZYpo.js";
29
29
  import "../../../styles.module-DMd29SPQ.js";
30
30
  import "../Shared/Order/selectCustomIcon.js";
31
31
  import "../../../index-ceeCtFuh.js";
32
- import { S as T } from "../../../index-B4pP4oLo.js";
32
+ import { S as U } from "../../../index-DYP5Ex_T.js";
33
+ import "../../../index.esm-I_Bp2YLf.js";
33
34
  import "../../../context/dialogContext.js";
34
35
  import "../../../Box-B0YSYLco.js";
35
36
  import "../../../Grid-CFe3amXO.js";
@@ -43,5 +44,5 @@ import "../../../MenuItem-DUdYOJr4.js";
43
44
  import "../../../ListItemIcon-CUcyTEEm.js";
44
45
  import "../../../IconButton-DHm-hucF.js";
45
46
  export {
46
- T as default
47
+ U as default
47
48
  };
@@ -1,18 +1,18 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "../../../hoc/withThemeProvider.js";
4
- import { F as f, M as F, a as I, i as L } from "../../../index-B4pP4oLo.js";
4
+ import { F as f, M as F, a as I, i as L } from "../../../index-DYP5Ex_T.js";
5
5
  import "../../../react-redux-C7I9-1M6.js";
6
- import "../../../constants-Dtk3Gd0Y.js";
7
- import "../../../wallet-BxwOFeSW.js";
8
- import "../../../order-DuPcaU0K.js";
6
+ import "../../../constants-DREDnCMu.js";
7
+ import "../../../wallet-DvfdQOju.js";
8
+ import "../../../order-DGBbo_Ox.js";
9
9
  import "../../../util/constants.js";
10
10
  import "../../../context/snackBarContext.js";
11
11
  import "../Shared/Container/index.js";
12
12
  import "../../Shared/MinimalKyc/index.js";
13
13
  import "../Shared/Input/index.js";
14
14
  import "../Shared/appButton.js";
15
- import "../../../index-BGJ8RVKA.js";
15
+ import "../../../index-BXutc9ik.js";
16
16
  import "../../../hooks/useEverestDispatch.js";
17
17
  export {
18
18
  f as FORM_SCREEN,