everest-npm-features 0.0.57 → 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 +30 -28
  33. package/dist/components/Wallet/Account/iban.d.ts +4 -2
  34. package/dist/components/Wallet/Account/iban.js +30 -28
  35. package/dist/components/Wallet/Account/ibanItem.d.ts +4 -2
  36. package/dist/components/Wallet/Account/ibanItem.js +179 -175
  37. package/dist/components/Wallet/Account/index.js +190 -177
  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,15 +1,15 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import "../../../PlayArrow-jzz8Y3XD.js";
3
+ import "../../../PlayArrow-BRz9FV4L.js";
4
4
  import "../../../Info-BVeUSPyk.js";
5
5
  import "../../../generic-token-B_ptO5yb.js";
6
6
  import "../../../util/constants.js";
7
- import "../../../constants-Dtk3Gd0Y.js";
7
+ import "../../../constants-Styrbvke.js";
8
8
  import "../../../index-BQNs1mvn.js";
9
- import "../../../order-DuPcaU0K.js";
9
+ import "../../../order-uVUTqaQ2.js";
10
10
  import "../../../tooltip-3UvETWtS.js";
11
11
  import "../../../util/functions.js";
12
- import { S as E } from "../../../index-BGJ8RVKA.js";
12
+ import { S as E } from "../../../index-DAla2tRU.js";
13
13
  import "../../../styles.module-DMd29SPQ.js";
14
14
  import "../Shared/TokenModal/index.js";
15
15
  import "../Shared/appButton.js";
@@ -1,13 +1,13 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "../../../hoc/withThemeProvider.js";
4
- import { C as e, F as f, b as L, c as O, i as b } from "../../../index-BGJ8RVKA.js";
4
+ import { C as e, F as f, b as L, c as O, i as b } from "../../../index-DAla2tRU.js";
5
5
  import "../../../react-redux-C7I9-1M6.js";
6
- import "../../../constants-Dtk3Gd0Y.js";
7
- import "../../../PlayArrow-jzz8Y3XD.js";
8
- import "../../../cryptoAssets-DT2afvDJ.js";
9
- import "../../../wallet-BxwOFeSW.js";
10
- import "../../../order-DuPcaU0K.js";
6
+ import "../../../constants-Styrbvke.js";
7
+ import "../../../PlayArrow-BRz9FV4L.js";
8
+ import "../../../cryptoAssets-CFtzXGbk.js";
9
+ import "../../../wallet-BkdExH6h.js";
10
+ import "../../../order-uVUTqaQ2.js";
11
11
  import "../../../util/constants.js";
12
12
  import "../../../context/snackBarContext.js";
13
13
  import "../Shared/Container/index.js";
@@ -1,7 +1,7 @@
1
1
  import { jsxs as r, Fragment as B, jsx as t } from "react/jsx-runtime";
2
2
  import { useState as n, useEffect as u } from "react";
3
- import { aD as Se, aE as Ce, aF as Ne, aG as We, aH as Ie, aI as Re } from "../../../constants-Dtk3Gd0Y.js";
4
- import { f as Fe } from "../../../wallet-BxwOFeSW.js";
3
+ import { aD as Se, aE as Ce, aF as Ne, aG as We, aH as Ie, aI as Re } from "../../../constants-Styrbvke.js";
4
+ import { f as Fe } from "../../../wallet-BkdExH6h.js";
5
5
  import { useDialog as Be } from "../../../hooks/useDialog/index.js";
6
6
  import { ETHEREUM_NETWORK as He, EVER_CHAIN_NETWORK as Ge, SYNTHETIC_EUR as X, ID_TOKEN_SYMBOL as Le } from "../../../util/constants.js";
7
7
  import "../../../index-DlQqWbXG.js";
@@ -21,9 +21,9 @@ import "../../../tooltip-3UvETWtS.js";
21
21
  import "../../../moment-h96o7c8I.js";
22
22
  import "../../../index.esm-BsMAMhYW.js";
23
23
  import "../../../web3-u4qDZYpo.js";
24
- import Ke from "../Shared/pin.js";
25
24
  import "../../../index-ceeCtFuh.js";
26
25
  import "../../../context/dialogContext.js";
26
+ import Ke from "../Shared/pin.js";
27
27
  import { B as Je } from "../../../Backdrop-CioURPVG.js";
28
28
  import { C as L } from "../../../CircularProgress-xZA3lvba.js";
29
29
  import { B as V } from "../../../Box-B0YSYLco.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as R, jsxs as T, Fragment as X } from "react/jsx-runtime";
2
2
  import S, { useState as L, useEffect as Z } from "react";
3
- import "../../../../constants-Dtk3Gd0Y.js";
4
- import { l as ee } from "../../../../auth-jjVjqywi.js";
3
+ import "../../../../constants-Styrbvke.js";
4
+ import { l as ee } from "../../../../auth-CD7qxhDF.js";
5
5
  import { RESEND_EMAIL_TIMER as _ } from "../../../../util/constants.js";
6
6
  import z from "../appButton.js";
7
7
  import { s as H } from "../../../../DefaultPropsProvider-oAu9El-f.js";
@@ -3,10 +3,10 @@ import { useState as N, useEffect as S } from "react";
3
3
  import { u as T } from "../../../../react-redux-C7I9-1M6.js";
4
4
  import b from "../backBtn.js";
5
5
  import A from "../addBank.js";
6
- import "../../../../constants-Dtk3Gd0Y.js";
6
+ import "../../../../constants-Styrbvke.js";
7
7
  import { u as y } from "../../../../index-BQNs1mvn.js";
8
- import { o as C } from "../../../../order-DuPcaU0K.js";
9
- import { u as E } from "../../../../bank-BM66KfAv.js";
8
+ import { o as C } from "../../../../order-uVUTqaQ2.js";
9
+ import { u as E } from "../../../../bank-C2LtDonX.js";
10
10
  import O from "../connectPlaidBank.js";
11
11
  import { s as o } from "../../../../styles.module-DMd29SPQ.js";
12
12
  import { RADIO_BUTTON_SELECTED as D, RADIO_BUTTON as I } from "../../../../util/constants.js";
@@ -6,7 +6,7 @@ import "../../../../index-DlQqWbXG.js";
6
6
  import "../appButton.js";
7
7
  import "../../../../hoc/withThemeProvider.js";
8
8
  import "../Auth/otpForm.js";
9
- import "../../../../constants-Dtk3Gd0Y.js";
9
+ import "../../../../constants-Styrbvke.js";
10
10
  import { useSnackBarContext as b } from "../../../../context/snackBarContext.js";
11
11
  import "../../../../util/conversions.js";
12
12
  import "../../../../index-CAoLi5Qq.js";
@@ -9,9 +9,9 @@ import "../../../index-DlQqWbXG.js";
9
9
  import x from "./appButton.js";
10
10
  import "../../../hoc/withThemeProvider.js";
11
11
  import "./Auth/otpForm.js";
12
- import "../../../constants-Dtk3Gd0Y.js";
12
+ import "../../../constants-Styrbvke.js";
13
13
  import { a as O, u as w } from "../../../index-BQNs1mvn.js";
14
- import { a as F } from "../../../bank-BM66KfAv.js";
14
+ import { a as F } from "../../../bank-C2LtDonX.js";
15
15
  import { useSnackBarContext as W } from "../../../context/snackBarContext.js";
16
16
  import j from "../../../hooks/useEverestDispatch.js";
17
17
  import "../../../util/conversions.js";
@@ -2,9 +2,9 @@ import { jsx as t, Fragment as h } from "react/jsx-runtime";
2
2
  import { useState as y, useEffect as c, useCallback as C } from "react";
3
3
  import { u as r } from "../../../react-redux-C7I9-1M6.js";
4
4
  import { u as S } from "../../../index.esm-BsMAMhYW.js";
5
- import "../../../constants-Dtk3Gd0Y.js";
5
+ import "../../../constants-Styrbvke.js";
6
6
  import { u as P, a as b, b as B } from "../../../index-BQNs1mvn.js";
7
- import { p as g, b as x } from "../../../bank-BM66KfAv.js";
7
+ import { p as g, b as x } from "../../../bank-C2LtDonX.js";
8
8
  import { c as A } from "../../../countries-BVn1FubK.js";
9
9
  import T from "./appButton.js";
10
10
  import q from "../../../hooks/useEverestDispatch.js";
@@ -7,8 +7,8 @@ import "../../../generic-token-B_ptO5yb.js";
7
7
  import "./appButton.js";
8
8
  import "./timer.js";
9
9
  import "../../../util/functions.js";
10
- import "../../../constants-Dtk3Gd0Y.js";
11
- import "../../../order-DuPcaU0K.js";
10
+ import "../../../constants-Styrbvke.js";
11
+ import "../../../order-uVUTqaQ2.js";
12
12
  import "../../../index-DlQqWbXG.js";
13
13
  import "../../../hoc/withThemeProvider.js";
14
14
  import "./Input/index.js";
@@ -26,7 +26,7 @@ import "../../../index.esm-BsMAMhYW.js";
26
26
  import "../../../web3-u4qDZYpo.js";
27
27
  import "../../../styles.module-DMd29SPQ.js";
28
28
  import "../../../index-ceeCtFuh.js";
29
- import { M as K } from "../../../index-BGJ8RVKA.js";
29
+ import { M as K } from "../../../index-DAla2tRU.js";
30
30
  import "../../../context/dialogContext.js";
31
31
  import "../../../Box-B0YSYLco.js";
32
32
  import "../../../Grid-CFe3amXO.js";
@@ -4,8 +4,8 @@ import { u as L } from "../../../react-redux-C7I9-1M6.js";
4
4
  import S from "../../../hoc/withThemeProvider.js";
5
5
  import v from "../Shared/Auth/emailForm.js";
6
6
  import x from "../Shared/Auth/otpForm.js";
7
- import "../../../constants-Dtk3Gd0Y.js";
8
- import { a as O, l as R, v as k } from "../../../auth-jjVjqywi.js";
7
+ import "../../../constants-Styrbvke.js";
8
+ import { a as O, l as R, v as k } from "../../../auth-CD7qxhDF.js";
9
9
  import q from "../Shared/Container/index.js";
10
10
  import { LOGIN_SCREEN as f } from "../../../util/constants.js";
11
11
  import { useSnackBarContext as C } from "../../../context/snackBarContext.js";
@@ -5,8 +5,8 @@ import { u as w } from "../../../react-redux-C7I9-1M6.js";
5
5
  import B from "../../../hoc/withThemeProvider.js";
6
6
  import M from "../Shared/Auth/emailForm.js";
7
7
  import L from "../Shared/Auth/otpForm.js";
8
- import "../../../constants-Dtk3Gd0Y.js";
9
- import { a as N, h as P, i as U } from "../../../auth-jjVjqywi.js";
8
+ import "../../../constants-Styrbvke.js";
9
+ import { a as N, h as P, i as U } from "../../../auth-CD7qxhDF.js";
10
10
  import k from "../Shared/Container/index.js";
11
11
  import { REGISTER_SCREEN as S } from "../../../util/constants.js";
12
12
  import q from "./terms.js";
@@ -1,2 +1,26 @@
1
- declare const _default: import('react').FC<any>;
2
- export default _default;
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ interface StakeListItem {
3
+ tokensStake: number | string;
4
+ tokensReward: number | string;
5
+ days: number;
6
+ }
7
+ type StakeItemRenderer = (props: {
8
+ data: StakeListItem;
9
+ }) => JSX.Element;
10
+ interface StakeGemProps {
11
+ onMoveToEthereum: (balance: number) => void;
12
+ onMoveToEverChain: (balance: number) => void;
13
+ ethereumBalance: number;
14
+ loader: boolean;
15
+ stakeData: StakeListItem[];
16
+ totalStake: number;
17
+ totalReward: number;
18
+ StakeItem: StakeItemRenderer;
19
+ stakeStart: (action?: string) => void;
20
+ amount: string;
21
+ setAmount: Dispatch<SetStateAction<string>>;
22
+ balanceLoader: boolean;
23
+ balance: number;
24
+ }
25
+ declare const StakeGem: ({ loader, stakeData, totalStake, totalReward, StakeItem, stakeStart, amount, setAmount, balanceLoader, balance, onMoveToEthereum, onMoveToEverChain, ethereumBalance, }: StakeGemProps) => import("react/jsx-runtime").JSX.Element;
26
+ export default StakeGem;
@@ -1,34 +1,35 @@
1
- import { jsxs as i, Fragment as z, jsx as e } from "react/jsx-runtime";
2
- import I from "../../Shared/noData.js";
1
+ import { jsxs as t, Fragment as C, jsx as e } from "react/jsx-runtime";
2
+ import M from "../../Shared/noData.js";
3
3
  import { M as h } from "../../../../tooltip-3UvETWtS.js";
4
4
  import { I as p } from "../../../../Info-BVeUSPyk.js";
5
- import C from "../../../../hoc/withThemeProvider.js";
6
- import { s as r } from "../../../../styles.module-C1sNeKjL.js";
7
- import { B as G } from "../../../../Backdrop-CioURPVG.js";
5
+ import { s as i } from "../../../../styles.module-C1sNeKjL.js";
6
+ import s from "../../Shared/appButton.js";
7
+ import { B as w } from "../../../../Backdrop-CioURPVG.js";
8
8
  import { C as f } from "../../../../CircularProgress-xZA3lvba.js";
9
- import { G as t } from "../../../../Grid-CFe3amXO.js";
9
+ import { G as r } from "../../../../Grid-CFe3amXO.js";
10
10
  import { B as a } from "../../../../Box-B0YSYLco.js";
11
11
  import { T as o } from "../../../../Typography-pAaje37G.js";
12
12
  import { I as u } from "../../../../IconButton-DHm-hucF.js";
13
- import { B as s } from "../../../../Button-Df4vgU24.js";
14
- import { F as M } from "../../../../FormControl-RtZDQMdA.js";
15
- import { T as y } from "../../../../TextField-DPpRUQe3.js";
16
- const B = ({
17
- history: c,
13
+ import { F as G } from "../../../../FormControl-RtZDQMdA.js";
14
+ import { T as B } from "../../../../TextField-DPpRUQe3.js";
15
+ const Q = ({
18
16
  loader: x,
19
- stakeData: l,
17
+ stakeData: c,
20
18
  totalStake: g,
21
- totalReward: v,
22
- StakeItem: k,
23
- stakeStart: T,
24
- amount: N,
25
- setAmount: m,
26
- balanceLoader: E,
27
- balance: S
19
+ totalReward: k,
20
+ StakeItem: T,
21
+ stakeStart: v,
22
+ amount: E,
23
+ setAmount: l,
24
+ balanceLoader: N,
25
+ balance: m,
26
+ onMoveToEthereum: S,
27
+ onMoveToEverChain: y,
28
+ ethereumBalance: D
28
29
  }) => {
29
- const D = (n) => {
30
- n ? /^([0-9.,]+)$/.test(n) && m(n) : m("");
31
- }, w = [
30
+ const z = (n) => {
31
+ n ? /^([0-9.,]+)$/.test(n) && l(n) : l("");
32
+ }, I = [
32
33
  "To earn reward tokens you must stake GEMS “to EverChain”",
33
34
  "Staking GEMS for a 365 day commitment will earn up to 20% APY in ID tokens*",
34
35
  "* there is a 10M maximum supply of IDs for staking GEMS",
@@ -36,9 +37,9 @@ const B = ({
36
37
  ].join(`
37
38
 
38
39
  `);
39
- return /* @__PURE__ */ i(z, { children: [
40
+ return /* @__PURE__ */ t(C, { children: [
40
41
  /* @__PURE__ */ e(
41
- G,
42
+ w,
42
43
  {
43
44
  sx: {
44
45
  color: "#fff",
@@ -48,38 +49,31 @@ const B = ({
48
49
  children: /* @__PURE__ */ e(f, { color: "inherit" })
49
50
  }
50
51
  ),
51
- /* @__PURE__ */ i(t, { spacing: 2, container: !0, width: "100%", children: [
52
- /* @__PURE__ */ e(t, { size: { xs: 12, md: 5 }, children: /* @__PURE__ */ e(a, { className: r["inner-container"], children: /* @__PURE__ */ i(a, { p: 3, children: [
53
- /* @__PURE__ */ e(
54
- o,
55
- {
56
- className: r["heading-text"],
57
- variant: "h6",
58
- children: /* @__PURE__ */ e("strong", { children: "Current Stakes" })
59
- }
60
- ),
61
- /* @__PURE__ */ i(t, { mt: 4, spacing: 1, container: !0, width: "100%", children: [
62
- /* @__PURE__ */ e(t, { size: 6, children: /* @__PURE__ */ e(o, { className: "fs16", children: /* @__PURE__ */ e("strong", { children: "Total Staked" }) }) }),
63
- /* @__PURE__ */ e(t, { size: 6, children: /* @__PURE__ */ i(o, { className: "text-right fs16 fw500", children: [
52
+ /* @__PURE__ */ t(r, { spacing: 2, container: !0, width: "100%", children: [
53
+ /* @__PURE__ */ e(r, { size: { xs: 12, md: 5 }, children: /* @__PURE__ */ e(a, { className: i["inner-container"], children: /* @__PURE__ */ t(a, { p: 3, children: [
54
+ /* @__PURE__ */ e(o, { className: i["heading-text"], variant: "h6", children: /* @__PURE__ */ e("strong", { children: "Current Stakes" }) }),
55
+ /* @__PURE__ */ t(r, { mt: 4, spacing: 1, container: !0, width: "100%", children: [
56
+ /* @__PURE__ */ e(r, { size: 6, children: /* @__PURE__ */ e(o, { className: "fs16", children: /* @__PURE__ */ e("strong", { children: "Total Staked" }) }) }),
57
+ /* @__PURE__ */ e(r, { size: 6, children: /* @__PURE__ */ t(o, { className: "text-right fs16 fw500", children: [
64
58
  g,
65
59
  " GEMS"
66
60
  ] }) }),
67
- /* @__PURE__ */ e(t, { size: 6, children: /* @__PURE__ */ e(o, { className: "fs16", children: /* @__PURE__ */ e("strong", { children: "Total Reward" }) }) }),
68
- /* @__PURE__ */ e(t, { size: 6, children: /* @__PURE__ */ i(o, { className: "text-right fs16 fw500", children: [
69
- v,
61
+ /* @__PURE__ */ e(r, { size: 6, children: /* @__PURE__ */ e(o, { className: "fs16", children: /* @__PURE__ */ e("strong", { children: "Total Reward" }) }) }),
62
+ /* @__PURE__ */ e(r, { size: 6, children: /* @__PURE__ */ t(o, { className: "text-right fs16 fw500", children: [
63
+ k,
70
64
  " ID"
71
65
  ] }) })
72
66
  ] }),
73
- /* @__PURE__ */ i(a, { mt: 6, children: [
74
- l.length === 0 && /* @__PURE__ */ e(I, { text: "No GEM are staked at the moment" }),
75
- l.map((n, d) => /* @__PURE__ */ e(k, { data: n }, d))
67
+ /* @__PURE__ */ t(a, { mt: 6, children: [
68
+ c.length === 0 && /* @__PURE__ */ e(M, { text: "No GEM are staked at the moment" }),
69
+ c.map((n, d) => /* @__PURE__ */ e(T, { data: n }, d))
76
70
  ] })
77
71
  ] }) }) }),
78
- /* @__PURE__ */ e(t, { size: { xs: 12, md: 7 }, children: /* @__PURE__ */ i(a, { p: 3, className: r["inner-container"], children: [
72
+ /* @__PURE__ */ e(r, { size: { xs: 12, md: 7 }, children: /* @__PURE__ */ t(a, { p: 3, className: i["inner-container"], children: [
79
73
  /* @__PURE__ */ e(
80
74
  o,
81
75
  {
82
- className: r["heading-text"],
76
+ className: i["heading-text"],
83
77
  variant: "h6",
84
78
  component: "span",
85
79
  children: /* @__PURE__ */ e("strong", { children: "Stake Tokens" })
@@ -88,9 +82,9 @@ const B = ({
88
82
  /* @__PURE__ */ e(
89
83
  h,
90
84
  {
91
- title: /* @__PURE__ */ e(a, { sx: { whiteSpace: "pre-line" }, children: w }),
85
+ title: /* @__PURE__ */ e(a, { sx: { whiteSpace: "pre-line" }, children: I }),
92
86
  placement: "bottom",
93
- children: /* @__PURE__ */ e(u, { className: r["info-icon"], children: /* @__PURE__ */ e(
87
+ children: /* @__PURE__ */ e(u, { className: i["info-icon"], children: /* @__PURE__ */ e(
94
88
  p,
95
89
  {
96
90
  sx: {
@@ -101,52 +95,57 @@ const B = ({
101
95
  ) })
102
96
  }
103
97
  ),
104
- /* @__PURE__ */ i(a, { className: `${r["add-container"]} text-center`, children: [
98
+ /* @__PURE__ */ t(a, { className: `${i["add-container"]} text-center`, children: [
105
99
  /* @__PURE__ */ e(o, { variant: "h6", children: /* @__PURE__ */ e("strong", { children: "Available GEMS on EverChain" }) }),
106
- E ? /* @__PURE__ */ e(f, {}) : /* @__PURE__ */ e(
100
+ N ? /* @__PURE__ */ e(f, {}) : /* @__PURE__ */ e(
107
101
  o,
108
102
  {
109
103
  sx: { mt: 2 },
110
104
  className: "secondary-text-color",
111
105
  variant: "h3",
112
- children: /* @__PURE__ */ i("strong", { children: [
113
- S,
106
+ children: /* @__PURE__ */ t("strong", { children: [
107
+ m,
114
108
  " GEMS"
115
109
  ] })
116
110
  }
117
111
  ),
118
- /* @__PURE__ */ i(t, { className: "items-center", container: !0, mt: 4, width: "100%", children: [
119
- /* @__PURE__ */ e(t, { size: 11, children: /* @__PURE__ */ i("fieldset", { className: r["move-id"], children: [
120
- /* @__PURE__ */ e("legend", { className: r["move-id-text"], style: { width: "135px" }, children: "Move GEMS Tokens" }),
112
+ /* @__PURE__ */ t(r, { className: "items-center", container: !0, mt: 4, width: "100%", children: [
113
+ /* @__PURE__ */ e(r, { size: 11, children: /* @__PURE__ */ t("fieldset", { className: i["move-id"], children: [
114
+ /* @__PURE__ */ e(
115
+ "legend",
116
+ {
117
+ className: i["move-id-text"],
118
+ style: { width: "135px" },
119
+ children: "Move GEMS Tokens"
120
+ }
121
+ ),
121
122
  /* @__PURE__ */ e(
122
123
  s,
123
124
  {
124
- className: r["move-btn"],
125
- variant: "contained",
126
- onClick: () => c.push("/move/gems/everchain"),
125
+ variantType: "secondary",
126
+ onClick: () => y(Number(D)),
127
127
  children: "To EverChain"
128
128
  }
129
129
  ),
130
130
  /* @__PURE__ */ e(
131
131
  s,
132
132
  {
133
+ variantType: "secondary",
133
134
  sx: {
134
135
  ml: { md: 3 },
135
136
  mt: { xs: 1, md: 0 }
136
137
  },
137
- className: r["move-btn"],
138
- variant: "contained",
139
- onClick: () => c.push("/move/gems/ethereum"),
138
+ onClick: () => S(Number(m)),
140
139
  children: "To Ethereum"
141
140
  }
142
141
  )
143
142
  ] }) }),
144
- /* @__PURE__ */ e(t, { size: 1, children: /* @__PURE__ */ e(
143
+ /* @__PURE__ */ e(r, { size: 1, children: /* @__PURE__ */ e(
145
144
  h,
146
145
  {
147
146
  title: "To stake your GEMS token, the token must be on EverChain. To move GEMS from Ethereum to EverChain or back requires ETH to pay the network fees.",
148
147
  placement: "top",
149
- children: /* @__PURE__ */ e(u, { className: r["button-icon"], children: /* @__PURE__ */ e(
148
+ children: /* @__PURE__ */ e(u, { className: i["button-icon"], children: /* @__PURE__ */ e(
150
149
  p,
151
150
  {
152
151
  sx: {
@@ -158,8 +157,8 @@ const B = ({
158
157
  }
159
158
  ) })
160
159
  ] }),
161
- /* @__PURE__ */ i(
162
- t,
160
+ /* @__PURE__ */ t(
161
+ r,
163
162
  {
164
163
  mt: 4,
165
164
  sx: {
@@ -169,46 +168,36 @@ const B = ({
169
168
  container: !0,
170
169
  width: "100%",
171
170
  children: [
172
- /* @__PURE__ */ e(t, { size: 4 }),
171
+ /* @__PURE__ */ e(r, { size: 4 }),
173
172
  /* @__PURE__ */ e(
174
- t,
173
+ r,
175
174
  {
176
- className: `${r["time-item"]} ${r["item-last"]} ${r.active}`,
175
+ className: `${i["time-item"]} ${i["item-last"]} ${i.active}`,
177
176
  size: 4,
178
177
  children: /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e("strong", { children: "365 Days" }) })
179
178
  }
180
179
  ),
181
- /* @__PURE__ */ e(t, { size: 4 })
180
+ /* @__PURE__ */ e(r, { size: 4 })
182
181
  ]
183
182
  }
184
183
  ),
185
- /* @__PURE__ */ e(M, { sx: { mt: 4 }, fullWidth: !0, children: /* @__PURE__ */ e(
186
- y,
184
+ /* @__PURE__ */ e(G, { sx: { mt: 4 }, fullWidth: !0, children: /* @__PURE__ */ e(
185
+ B,
187
186
  {
188
187
  variant: "filled",
189
188
  placeholder: "Amount to Stake",
190
- value: N,
189
+ value: E,
191
190
  fullWidth: !0,
192
191
  required: !0,
193
- onChange: (n) => D(n.target.value)
192
+ onChange: (n) => z(n.target.value)
194
193
  }
195
194
  ) }),
196
- /* @__PURE__ */ e(
197
- s,
198
- {
199
- sx: { mt: 4 },
200
- onClick: T,
201
- className: "wallet-btn",
202
- variant: "contained",
203
- fullWidth: !0,
204
- children: /* @__PURE__ */ e("strong", { children: "Stake" })
205
- }
206
- )
195
+ /* @__PURE__ */ e(s, { sx: { mt: 4 }, onClick: () => v(), fullWidth: !0, children: /* @__PURE__ */ e("strong", { children: "Stake" }) })
207
196
  ] })
208
197
  ] }) })
209
198
  ] })
210
199
  ] });
211
- }, U = C(B);
200
+ };
212
201
  export {
213
- U as default
202
+ Q as default
214
203
  };
@@ -1,2 +1,28 @@
1
- declare const StakeID: ({ history, loader, stakeData, totalStake, totalReward, StakeItem, stakeStart, amount, setAmount, stakeDuration, setStakeDuration, balanceLoader, balance, }: any) => import("react/jsx-runtime").JSX.Element;
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ interface StakeListItem {
3
+ tokensStake: number | string;
4
+ tokensReward: number | string;
5
+ days: number;
6
+ }
7
+ type StakeItemRenderer = (props: {
8
+ data: StakeListItem;
9
+ }) => JSX.Element;
10
+ interface StakeIDProps {
11
+ onMoveToEthereum: (balance: number) => void;
12
+ onMoveToEverChain: (balance: number) => void;
13
+ ethereumBalance: number;
14
+ loader: boolean;
15
+ stakeData: StakeListItem[];
16
+ totalStake: number;
17
+ totalReward: number;
18
+ StakeItem: StakeItemRenderer;
19
+ stakeStart: (action?: string) => void;
20
+ amount: string;
21
+ setAmount: Dispatch<SetStateAction<string>>;
22
+ stakeDuration: number;
23
+ setStakeDuration: Dispatch<SetStateAction<number>>;
24
+ balanceLoader: boolean;
25
+ balance: number;
26
+ }
27
+ declare const StakeID: ({ loader, stakeData, totalStake, totalReward, StakeItem, stakeStart, amount, setAmount, stakeDuration, setStakeDuration, balanceLoader, balance, onMoveToEthereum, onMoveToEverChain, ethereumBalance, }: StakeIDProps) => import("react/jsx-runtime").JSX.Element;
2
28
  export default StakeID;