everest-npm-features 0.0.56 → 0.0.58

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