everest-npm-features 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/dist/{Alert-BtAF4uo6.js → Alert-D1uo0xUN.js} +3 -3
  2. package/dist/{Button-S_vW7i_8.js → Button-DwM6qNzr.js} +1 -1
  3. package/dist/{ButtonBase-ILHWXvZi.js → ButtonBase-Bkt2XiiC.js} +2 -2
  4. package/dist/{CardContent-BLsvyJUZ.js → CardContent-D9I3IU_z.js} +2 -2
  5. package/dist/{CircularProgress-DYCklg37.js → CircularProgress-B06C3TSm.js} +1 -1
  6. package/dist/{DialogContent-BgKUjL4i.js → DialogContent-CGAaVPRP.js} +3 -3
  7. package/dist/{DialogTitle-1A1JxHKy.js → DialogTitle-CtNXjsMb.js} +1 -1
  8. package/dist/{FormControl-CKGUH1ax.js → FormControl-C_Aq5EJK.js} +1 -1
  9. package/dist/{FormControlLabel-Do2nmNuE.js → FormControlLabel-DzW2M9Zf.js} +2 -2
  10. package/dist/{Grow-Cl5q_s4E.js → Grow-BG0VcbVU.js} +2 -2
  11. package/dist/{IconButton-DJRmyJ7l.js → IconButton-DS04obIe.js} +2 -2
  12. package/dist/{Link-BoX8sDwo.js → Link-0ytX5jId.js} +1 -1
  13. package/dist/{ListItemIcon-SEyOLp6t.js → ListItemIcon-DcAQQVML.js} +2 -2
  14. package/dist/{MenuItem-DI0pq5k0.js → MenuItem-B5Ey6jYk.js} +3 -3
  15. package/dist/{Modal-DXE_7QA2.js → Modal-C4LVcV2P.js} +5 -5
  16. package/dist/{Paper-B2H6ZIFg.js → Paper-DcwigMU2.js} +1 -1
  17. package/dist/{PlayArrow-DNFHtcCO.js → PlayArrow-BWNpsDIu.js} +5 -5
  18. package/dist/{Portal-lSfc4EZw.js → Portal-CLVGr58E.js} +2 -2
  19. package/dist/{Select-Bs7YLhIQ.js → Select-PHF4wwtI.js} +12 -11
  20. package/dist/{Slide-BjOaaE2D.js → Slide-C7btcybu.js} +4 -3
  21. package/dist/{TextField-D4JEGFa0.js → TextField-CWAqkoYU.js} +4 -4
  22. package/dist/TransitionGroupContext-D3TPEzqp.js +37 -0
  23. package/dist/auth-CD4Ih2jU.js +66 -0
  24. package/dist/{bank-D37HPNrs.js → bank-WoJNjqIT.js} +1 -1
  25. package/dist/chainPropTypes-D9lkm76m.js +8 -0
  26. package/dist/components/Account/index.js +8 -8
  27. package/dist/components/History/index.js +6 -6
  28. package/dist/components/MoveToEthereumOrEverChain/index.js +17 -17
  29. package/dist/components/Profile/documents.js +8 -8
  30. package/dist/components/Profile/index.js +6 -6
  31. package/dist/components/Receive/index.js +7 -7
  32. package/dist/components/RocketRamp/MinimalKyc/form.js +6 -6
  33. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +4 -4
  34. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +4 -4
  35. package/dist/components/RocketRamp/Player/Buy/form.d.ts +1 -1
  36. package/dist/components/RocketRamp/Player/Buy/form.js +11 -11
  37. package/dist/components/RocketRamp/Player/Buy/index.js +5 -5
  38. package/dist/components/RocketRamp/Player/Buy/types.d.ts +1 -0
  39. package/dist/components/RocketRamp/Player/Dashboard/balance.js +2 -2
  40. package/dist/components/RocketRamp/Player/Dashboard/index.js +15 -13
  41. package/dist/components/RocketRamp/Player/Dashboard/transaction.js +1 -1
  42. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +6 -6
  43. package/dist/components/RocketRamp/Player/Sell/form.js +11 -11
  44. package/dist/components/RocketRamp/Player/Sell/index.js +5 -5
  45. package/dist/components/RocketRamp/Player/SignIn/index.js +2 -2
  46. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +2 -2
  47. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +2 -2
  48. package/dist/components/RocketRamp/Player/SignUp/email.js +2 -2
  49. package/dist/components/RocketRamp/Player/SignUp/index.js +9 -9
  50. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +5 -5
  51. package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +16 -16
  52. package/dist/components/RocketRamp/ResetPassword/form.d.ts +8 -0
  53. package/dist/components/RocketRamp/ResetPassword/form.js +104 -0
  54. package/dist/components/RocketRamp/ResetPassword/index.d.ts +7 -0
  55. package/dist/components/RocketRamp/ResetPassword/index.js +53 -0
  56. package/dist/components/RocketRamp/Shared/Button/index.js +2 -2
  57. package/dist/components/RocketRamp/Shared/Input/index.js +2 -2
  58. package/dist/components/RocketRamp/Shared/backBtn.js +1 -1
  59. package/dist/components/RocketRamp/Shared/transactionItem.js +2 -2
  60. package/dist/components/RocketRamp/Store/Dashboard/balance.d.ts +1 -4
  61. package/dist/components/RocketRamp/Store/Dashboard/balance.js +35 -68
  62. package/dist/components/RocketRamp/Store/Dashboard/index.js +17 -61
  63. package/dist/components/RocketRamp/Store/Dashboard/stats.d.ts +6 -0
  64. package/dist/components/RocketRamp/Store/Dashboard/stats.js +42 -0
  65. package/dist/components/RocketRamp/Store/Dashboard/transaction.js +1 -1
  66. package/dist/components/RocketRamp/Store/SignUp/index.js +2 -2
  67. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +49 -45
  68. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +3 -3
  69. package/dist/components/RocketRamp/Transactions/index.js +2 -2
  70. package/dist/components/Send/index.js +10 -10
  71. package/dist/components/Shared/ConnectWallet/index.js +5 -5
  72. package/dist/components/Shared/HistoryItem/index.js +2 -2
  73. package/dist/components/Shared/TokenModal/index.js +5 -5
  74. package/dist/components/Shared/addBank.js +7 -7
  75. package/dist/components/Shared/button.js +1 -1
  76. package/dist/components/Shared/connectPlaidBank.js +4 -4
  77. package/dist/components/Shared/incode.js +6 -6
  78. package/dist/components/Shared/inputField.js +1 -1
  79. package/dist/components/Shared/pin.js +1 -1
  80. package/dist/components/Shared/tooltip.js +7 -6
  81. package/dist/components/Shared/transition.js +1 -1
  82. package/dist/components/SignIn/index.js +5 -5
  83. package/dist/components/SignUp/index.js +3 -3
  84. package/dist/components/SignUp/pin.js +6 -6
  85. package/dist/components/SignUp/userInfo.js +1 -1
  86. package/dist/components/Stake/gems/index.js +6 -6
  87. package/dist/components/Stake/id/index.js +6 -6
  88. package/dist/components/Stake/index.js +6 -6
  89. package/dist/components/Swap/index.js +10 -10
  90. package/dist/components/WalletPortfolio/index.js +9 -9
  91. package/dist/components/WalletPortfolio/tokenRow.js +2 -2
  92. package/dist/{constants-Bb9tNMO0.js → constants-74hrsFxy.js} +290 -287
  93. package/dist/{documents-DvBUIEko.js → documents-DFzrb5Js.js} +7 -7
  94. package/dist/{elementTypeAcceptingRef-BPeKuzZ8.js → elementTypeAcceptingRef-CXUi-GtI.js} +1 -1
  95. package/dist/{fiatAssets-Dymvf3Le.js → fiatAssets-BySmKCPn.js} +1 -1
  96. package/dist/hooks/useDialog/index.js +2 -2
  97. package/dist/hooks/useRrDialog/index.js +2 -2
  98. package/dist/hooks/useSnackBar.js +6 -6
  99. package/dist/index-BMhrzXlc.js +820 -0
  100. package/dist/{index-DYCdRrDV.js → index-Dxl09QM3.js} +12 -12
  101. package/dist/main.d.ts +2 -0
  102. package/dist/main.js +25 -21
  103. package/dist/{order-DMts-8Nr.js → order-BJOkWhkX.js} +1 -1
  104. package/dist/{ownerWindow-mVfGbIa3.js → ownerWindow-CQLKd2qC.js} +1 -1
  105. package/dist/{stake-BRmggIPz.js → stake-DeB_prrU.js} +1 -1
  106. package/dist/store.d.ts +10 -2
  107. package/dist/{tokenRow-g9IBe02c.js → tokenRow-4ZCv_fEG.js} +1 -1
  108. package/dist/{useSlot-D3uYAK6m.js → useSlot-CLUg2AtS.js} +1 -1
  109. package/dist/user-Doi440iN.js +24 -0
  110. package/dist/util/constants.d.ts +2 -0
  111. package/dist/util/constants.js +9 -7
  112. package/dist/{utils-gxE2aXKK.js → utils-DeERUHi2.js} +16 -15
  113. package/dist/{wallet-Dfn4nFOn.js → wallet-BeLTGObA.js} +1 -1
  114. package/package.json +1 -1
  115. package/dist/CheckCircle-Czm8oSt7.js +0 -8
  116. package/dist/TransitionGroupContext-VwpFXTPO.js +0 -43
  117. package/dist/auth-Czk2iJ8q.js +0 -58
  118. package/dist/index-CMHIKDWK.js +0 -814
  119. package/dist/user-CsPLUenD.js +0 -24
@@ -0,0 +1,104 @@
1
+ import { jsxs as P, Fragment as h, jsx as s } from "react/jsx-runtime";
2
+ import { useState as u, useEffect as m } from "react";
3
+ import { u as R, a as S } from "../../../react-redux-B4BZippc.js";
4
+ import c from "../Shared/Input/index.js";
5
+ import q from "../Shared/Button/index.js";
6
+ import "../../../constants-74hrsFxy.js";
7
+ import { g as x, h as W } from "../../../auth-CD4Ih2jU.js";
8
+ import { B as d } from "../../../Box-Bt8cGqC7.js";
9
+ import { C as k } from "../../../CircularProgress-B06C3TSm.js";
10
+ const K = ({
11
+ onComplete: g,
12
+ showAlertMessage: r,
13
+ type: C
14
+ }) => {
15
+ const p = R(), o = S((e) => e.session), w = o.loader, n = o.error, [i, v] = u(""), [t, b] = u(""), [a, y] = u("");
16
+ m(() => {
17
+ n && r({ message: n });
18
+ }, [n]), m(() => {
19
+ o.resetPasswordSuccess && (r({
20
+ message: "Reset Password has been done successfully.",
21
+ type: "success"
22
+ }), g());
23
+ }, [o.resetPasswordSuccess]), m(() => () => {
24
+ p(x(!1));
25
+ }, []);
26
+ const N = () => {
27
+ if (!i) {
28
+ r({ message: "Please provide old password" });
29
+ return;
30
+ }
31
+ if (!t) {
32
+ r({ message: "Please provide new password" });
33
+ return;
34
+ }
35
+ if (!a) {
36
+ r({ message: "Please provide confirm new password" });
37
+ return;
38
+ }
39
+ if (t !== a) {
40
+ r({
41
+ message: "New password & Confirm new password are not same"
42
+ });
43
+ return;
44
+ }
45
+ w || p(W(C, {
46
+ old_password: i,
47
+ new_password: t,
48
+ confirm_password: a
49
+ }));
50
+ }, l = (e, f) => {
51
+ f(e || "");
52
+ };
53
+ return /* @__PURE__ */ P(h, { children: [
54
+ /* @__PURE__ */ s(d, { mt: 2, children: /* @__PURE__ */ s(
55
+ c,
56
+ {
57
+ type: "password",
58
+ autoComplete: "",
59
+ label: "Old Password",
60
+ value: i,
61
+ onChange: (e) => {
62
+ l(e.target.value, v);
63
+ },
64
+ fullWidth: !0,
65
+ required: !0
66
+ }
67
+ ) }),
68
+ /* @__PURE__ */ s(d, { mt: 2, children: /* @__PURE__ */ s(
69
+ c,
70
+ {
71
+ type: "password",
72
+ autoComplete: "",
73
+ label: "New Password",
74
+ value: t,
75
+ onChange: (e) => {
76
+ l(e.target.value, b);
77
+ },
78
+ fullWidth: !0,
79
+ required: !0
80
+ }
81
+ ) }),
82
+ /* @__PURE__ */ s(d, { mt: 2, children: /* @__PURE__ */ s(
83
+ c,
84
+ {
85
+ type: "password",
86
+ autoComplete: "",
87
+ label: "Confirm New Password",
88
+ value: a,
89
+ onChange: (e) => {
90
+ l(e.target.value, y);
91
+ },
92
+ fullWidth: !0,
93
+ required: !0
94
+ }
95
+ ) }),
96
+ /* @__PURE__ */ s(d, { mt: 4, children: /* @__PURE__ */ s(q, { onClick: N, fullWidth: !0, children: /* @__PURE__ */ s("strong", { children: w ? /* @__PURE__ */ P(h, { children: [
97
+ /* @__PURE__ */ s(k, { size: 15, color: "inherit" }),
98
+ " Processing..."
99
+ ] }) : "Submit" }) }) })
100
+ ] });
101
+ };
102
+ export {
103
+ K as default
104
+ };
@@ -0,0 +1,7 @@
1
+ import { PLAYER_WEBSITE, STORE_WEBSITE } from '../../../util/constants';
2
+ interface ResetPasswordProps {
3
+ onComplete: () => void;
4
+ type: typeof PLAYER_WEBSITE | typeof STORE_WEBSITE;
5
+ }
6
+ declare const _default: import('react').FC<ResetPasswordProps & import('../../../hoc/withThemeProvider').WithThemeProviderProps>;
7
+ export default _default;
@@ -0,0 +1,53 @@
1
+ import { jsxs as s, jsx as r } from "react/jsx-runtime";
2
+ import e from "../../../hoc/withThemeProvider.js";
3
+ import a from "./form.js";
4
+ import "react";
5
+ import "@incodetech/welcome";
6
+ import "../../../axios-BEX6n2A7.js";
7
+ import { useSnackBar as n } from "../../../hooks/useSnackBar.js";
8
+ import "../../SignUp/pin.js";
9
+ import "../../../constants-74hrsFxy.js";
10
+ import '../../../assets/main.css';/* empty css */
11
+ import "../../../util/conversions.js";
12
+ import "../../../index-CAoLi5Qq.js";
13
+ import "../../../react-webcam-B3cXh1XT.js";
14
+ import "../../Shared/transition.js";
15
+ import "../../Shared/pin.js";
16
+ import "../../../moment-h96o7c8I.js";
17
+ import "../../Shared/tooltip.js";
18
+ import "../../../index.esm-BsMAMhYW.js";
19
+ import "../../../web3-u4qDZYpo.js";
20
+ import "../../../index-B8QKlEgj.js";
21
+ import "../../../index-ceeCtFuh.js";
22
+ import { B as d } from "../../../Box-Bt8cGqC7.js";
23
+ import { T as o } from "../../../Typography-Du8mj1kr.js";
24
+ const c = ({ onComplete: t, type: i }) => {
25
+ const { showAlertMessage: m, snackBar: p } = n();
26
+ return /* @__PURE__ */ s(
27
+ d,
28
+ {
29
+ sx: {
30
+ padding: { xs: "1rem", md: "2rem" },
31
+ backgroundColor: "#FFFFFF",
32
+ borderRadius: "1rem",
33
+ boxShadow: "0px 0px 64px 0px rgba(247, 247, 248, 1)"
34
+ },
35
+ children: [
36
+ p,
37
+ /* @__PURE__ */ r(o, { variant: "4xl", fontWeight: 600, children: /* @__PURE__ */ r("b", { children: "Reset Password" }) }),
38
+ /* @__PURE__ */ r(o, { variant: "lg", children: "Reset Password of your Orion Stars account" }),
39
+ /* @__PURE__ */ r(
40
+ a,
41
+ {
42
+ onComplete: t,
43
+ type: i,
44
+ showAlertMessage: m
45
+ }
46
+ )
47
+ ]
48
+ }
49
+ );
50
+ }, W = e(c);
51
+ export {
52
+ W as default
53
+ };
@@ -1,6 +1,6 @@
1
1
  import { jsx as t, jsxs as s } from "react/jsx-runtime";
2
- import { B as d } from "../../../../Button-S_vW7i_8.js";
3
- import { C as m } from "../../../../CircularProgress-DYCklg37.js";
2
+ import { B as d } from "../../../../Button-DwM6qNzr.js";
3
+ import { C as m } from "../../../../CircularProgress-B06C3TSm.js";
4
4
  const f = ({
5
5
  children: o,
6
6
  variant: r = "contained",
@@ -1,6 +1,6 @@
1
1
  import { jsxs as d, jsx as o } from "react/jsx-runtime";
2
- import { F as c } from "../../../../FormControl-CKGUH1ax.js";
3
- import { T as s, F as a } from "../../../../TextField-D4JEGFa0.js";
2
+ import { F as c } from "../../../../FormControl-C_Aq5EJK.js";
3
+ import { T as s, F as a } from "../../../../TextField-CWAqkoYU.js";
4
4
  const C = ({
5
5
  label: t,
6
6
  highlightedLabel: e,
@@ -1,6 +1,6 @@
1
1
  import { jsx as o, jsxs as a } from "react/jsx-runtime";
2
2
  import { c as r } from "../../../createSvgIcon-DhzhBkIq.js";
3
- import { I as e } from "../../../IconButton-DJRmyJ7l.js";
3
+ import { I as e } from "../../../IconButton-DS04obIe.js";
4
4
  import { T as c } from "../../../Typography-Du8mj1kr.js";
5
5
  const n = r(/* @__PURE__ */ o("path", {
6
6
  d: "M21 11H6.83l3.58-3.59L9 6l-6 6 6 6 1.41-1.41L6.83 13H21z"
@@ -8,10 +8,10 @@ import _ from "../../../icons/pendingRedeemIcon.js";
8
8
  import y from "../../../icons/canceledRedeemIcon.js";
9
9
  import L from "../../../icons/failedRedeemIcon.js";
10
10
  import { TS_COMPLETE_LABEL as o, TOKEN_TO_FIAT as A, TS_WAIT_APPROVAL_LABEL as c, TS_CREATED_LABEL as m, TS_PENDING_LABEL as l, TS_NOT_APPROVAL_LABEL as d, TS_FAIL_LABEL as p, FIAT_TO_TOKEN as B } from "../../../util/constants.js";
11
- import { C as E, a as C } from "../../../CardContent-BLsvyJUZ.js";
11
+ import { C as E, a as C } from "../../../CardContent-D9I3IU_z.js";
12
12
  import { B as t } from "../../../Box-Bt8cGqC7.js";
13
13
  import { T as i } from "../../../Typography-Du8mj1kr.js";
14
- import { I as D } from "../../../IconButton-DJRmyJ7l.js";
14
+ import { I as D } from "../../../IconButton-DS04obIe.js";
15
15
  import { c as R } from "../../../createSvgIcon-DhzhBkIq.js";
16
16
  const S = R(/* @__PURE__ */ e("path", {
17
17
  d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
@@ -1,9 +1,6 @@
1
1
  interface BalanceProps {
2
- navigate: any;
3
2
  isLoading: boolean;
4
3
  amount: string | number;
5
- isBuyAvailable: boolean;
6
- isRedeemAvailable: boolean;
7
4
  }
8
- declare const Balance: ({ isLoading, amount, isBuyAvailable, isRedeemAvailable, navigate, }: BalanceProps) => import("react/jsx-runtime").JSX.Element;
5
+ declare const Balance: ({ isLoading, amount }: BalanceProps) => import("react/jsx-runtime").JSX.Element;
9
6
  export default Balance;
@@ -1,75 +1,42 @@
1
- import { jsx as r, jsxs as o } from "react/jsx-runtime";
2
- import t from "../../Shared/Button/index.js";
3
- import { u as s } from "../../../../useTheme-D5is61S1.js";
4
- import { C as f, a as p } from "../../../../CardContent-BLsvyJUZ.js";
5
- import { S as a } from "../../../../Stack-Ce-OQAtj.js";
6
- import { G as h } from "../../../../Grid2-IYppkw5f.js";
7
- import { B as y } from "../../../../Box-Bt8cGqC7.js";
8
- import { T as i } from "../../../../Typography-Du8mj1kr.js";
9
- import { C as u } from "../../../../CircularProgress-DYCklg37.js";
10
- const j = ({
11
- isLoading: c,
12
- amount: l,
13
- isBuyAvailable: d,
14
- isRedeemAvailable: m,
15
- navigate: n
16
- }) => {
17
- const e = s();
18
- return /* @__PURE__ */ r(f, { sx: { backgroundColor: "#000", borderRadius: "1rem" }, children: /* @__PURE__ */ r(p, { sx: { color: "#fff" }, children: /* @__PURE__ */ o(a, { direction: "column", spacing: 2, children: [
19
- /* @__PURE__ */ o(h, { container: !0, justifyContent: "space-between", children: [
20
- /* @__PURE__ */ o(y, { children: [
21
- /* @__PURE__ */ r(i, { variant: "2xl", fontWeight: 600, color: "primary", children: "Game balance" }),
1
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
2
+ import { u as n } from "../../../../useTheme-D5is61S1.js";
3
+ import { C as s, a as c } from "../../../../CardContent-D9I3IU_z.js";
4
+ import { S as m } from "../../../../Stack-Ce-OQAtj.js";
5
+ import { B as l } from "../../../../Box-Bt8cGqC7.js";
6
+ import { T as o } from "../../../../Typography-Du8mj1kr.js";
7
+ import { C as d } from "../../../../CircularProgress-B06C3TSm.js";
8
+ const C = ({ isLoading: e, amount: a }) => {
9
+ const t = n();
10
+ return /* @__PURE__ */ r(
11
+ s,
12
+ {
13
+ sx: {
14
+ background: "url(/src/images/space.jpg) center/cover no-repeat",
15
+ borderRadius: "1rem"
16
+ },
17
+ children: /* @__PURE__ */ r(c, { sx: { color: "#fff" }, children: /* @__PURE__ */ r(m, { direction: "column", spacing: 2, children: /* @__PURE__ */ i(l, { children: [
18
+ /* @__PURE__ */ r(o, { fontSize: "2.5rem", fontWeight: 600, color: "primary", children: "Available balance" }),
22
19
  /* @__PURE__ */ r(
23
- i,
20
+ o,
24
21
  {
25
- variant: "5xl",
26
- fontWeight: 400,
27
- fontFamily: e.typography.redHatMono.fontFamily,
28
- children: c ? /* @__PURE__ */ r(u, { size: 24 }) : l
22
+ fontSize: "5rem",
23
+ fontWeight: "500",
24
+ children: e ? /* @__PURE__ */ r(d, { size: 24 }) : a
25
+ }
26
+ ),
27
+ /* @__PURE__ */ r(
28
+ o,
29
+ {
30
+ variant: "xl",
31
+ sx: { opacity: "0.75" },
32
+ fontFamily: t.typography.redHatMono.fontFamily,
33
+ children: "Want to add more credits? Please contact your Distributor"
29
34
  }
30
35
  )
31
- ] }),
32
- /* @__PURE__ */ o(
33
- a,
34
- {
35
- direction: "row",
36
- spacing: 1,
37
- fontFamily: e.typography.redHatMono.fontFamily,
38
- children: [
39
- /* @__PURE__ */ r(i, { variant: "sm", color: "#fff", children: "1 credit =" }),
40
- /* @__PURE__ */ r(i, { variant: "sm", color: "primary", children: "1$" })
41
- ]
42
- }
43
- )
44
- ] }),
45
- /* @__PURE__ */ o(a, { direction: "row", spacing: 2, children: [
46
- /* @__PURE__ */ r(
47
- t,
48
- {
49
- onClick: () => n("/buy"),
50
- sx: {
51
- color: e.palette.primary.main,
52
- background: "#fff"
53
- },
54
- disabled: !d,
55
- children: "Buy"
56
- }
57
- ),
58
- /* @__PURE__ */ r(
59
- t,
60
- {
61
- onClick: () => n("/sell"),
62
- variant: "outlined",
63
- sx: {
64
- border: "1px solid #fff"
65
- },
66
- disabled: !m,
67
- children: "Redeem"
68
- }
69
- )
70
- ] })
71
- ] }) }) });
36
+ ] }) }) })
37
+ }
38
+ );
72
39
  };
73
40
  export {
74
- j as default
41
+ C as default
75
42
  };
@@ -1,64 +1,20 @@
1
- import { jsx as e, jsxs as g, Fragment as y } from "react/jsx-runtime";
2
- import w from "../../../../hoc/withThemeProvider.js";
3
- import x from "./balance.js";
4
- import S from "./transaction.js";
5
- import { u as C, a as c } from "../../../../react-redux-B4BZippc.js";
6
- import "../../../../constants-Bb9tNMO0.js";
7
- import { o as b } from "../../../../order-DMts-8Nr.js";
8
- import { useState as B, useEffect as r } from "react";
9
- import { getOrionBalance as D } from "../../../../util/functions.js";
10
- import { useRrDialog as P } from "../../../../hooks/useRrDialog/index.js";
11
- import { C as T } from "../../../../CheckCircle-Czm8oSt7.js";
12
- import { C as v } from "../../../../Cancel-5JDQ2Kc0.js";
13
- const L = ({ navigate: s }) => {
14
- const { openDialog: m, ConfirmDialog: l } = P(), p = C(), i = c((o) => o.order), n = c(
15
- (o) => o.user.profile
16
- ), u = i.list, f = i.loader, [d, h] = B(0);
17
- return r(() => {
18
- p(b(1));
19
- }, []), r(() => {
20
- const t = new URLSearchParams(window.location.search).get("payment");
21
- if (console.log(t), t) {
22
- let a = {
23
- icon: /* @__PURE__ */ e(v, { sx: { fontSize: 80 }, color: "primary" }),
24
- title: "Transaction Failed",
25
- message: "Your payment has been failed. Please try again or contact support.",
26
- confirmButtonText: "Close",
27
- cancelButtonShow: !1,
28
- height: "400px",
29
- width: "65%"
30
- };
31
- t === "success" && (a = {
32
- ...a,
33
- icon: /* @__PURE__ */ e(T, { sx: { fontSize: 80 }, color: "primary" }),
34
- title: "Transaction Success",
35
- message: "We have received your payment. Your transaction is in process and will be completed in few minutes."
36
- }), m(a);
37
- }
38
- }, []), r(() => {
39
- h(D(n.tokens.list));
40
- }, [n.tokens]), /* @__PURE__ */ g(y, { children: [
41
- /* @__PURE__ */ e(l, {}),
42
- /* @__PURE__ */ e(
43
- x,
44
- {
45
- amount: d,
46
- isBuyAvailable: !0,
47
- isRedeemAvailable: !0,
48
- isLoading: !1,
49
- navigate: s
50
- }
51
- ),
52
- /* @__PURE__ */ e(
53
- S,
54
- {
55
- isLoading: f,
56
- transactions: u,
57
- navigate: s
58
- }
59
- )
1
+ import { jsxs as i, Fragment as e, jsx as r } from "react/jsx-runtime";
2
+ import n from "../../../../hoc/withThemeProvider.js";
3
+ import t from "./balance.js";
4
+ import { useRrDialog as s } from "../../../../hooks/useRrDialog/index.js";
5
+ import m from "./stats.js";
6
+ import { C as d, a as l } from "../../../../CardContent-D9I3IU_z.js";
7
+ import { G as o } from "../../../../Grid2-IYppkw5f.js";
8
+ const c = ({}) => {
9
+ const { openDialog: f, ConfirmDialog: a } = s();
10
+ return /* @__PURE__ */ i(e, { children: [
11
+ /* @__PURE__ */ r(a, {}),
12
+ /* @__PURE__ */ r(d, { sx: { backgroundColor: "#FFF", borderRadius: "1rem" }, children: /* @__PURE__ */ r(l, { children: /* @__PURE__ */ i(o, { container: !0, spacing: 2, children: [
13
+ /* @__PURE__ */ r(o, { size: 7, children: /* @__PURE__ */ r(t, { amount: 267, isLoading: !1 }) }),
14
+ /* @__PURE__ */ r(o, { size: 5, children: /* @__PURE__ */ r(m, { amount: 267, isLoading: !1 }) })
15
+ ] }) }) })
60
16
  ] });
61
- }, W = w(L);
17
+ }, F = n(c);
62
18
  export {
63
- W as default
19
+ F as default
64
20
  };
@@ -0,0 +1,6 @@
1
+ interface StatProps {
2
+ isLoading: boolean;
3
+ amount: string | number;
4
+ }
5
+ declare const Stats: ({ isLoading, amount }: StatProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default Stats;
@@ -0,0 +1,42 @@
1
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
2
+ import { u as n } from "../../../../useTheme-D5is61S1.js";
3
+ import { C as s, a as m } from "../../../../CardContent-D9I3IU_z.js";
4
+ import { S as c } from "../../../../Stack-Ce-OQAtj.js";
5
+ import { B as l } from "../../../../Box-Bt8cGqC7.js";
6
+ import { T as o } from "../../../../Typography-Du8mj1kr.js";
7
+ import { C as d } from "../../../../CircularProgress-B06C3TSm.js";
8
+ const C = ({ isLoading: t, amount: a }) => {
9
+ const e = n();
10
+ return /* @__PURE__ */ r(
11
+ s,
12
+ {
13
+ sx: {
14
+ background: "#E5F6EA",
15
+ borderRadius: "1rem"
16
+ },
17
+ children: /* @__PURE__ */ r(m, { sx: { color: "#fff" }, children: /* @__PURE__ */ r(c, { direction: "column", spacing: 2, children: /* @__PURE__ */ i(l, { children: [
18
+ /* @__PURE__ */ r(o, { fontSize: "2.5rem", fontWeight: 600, color: "primary", children: "Available balance" }),
19
+ /* @__PURE__ */ r(
20
+ o,
21
+ {
22
+ fontSize: "5rem",
23
+ fontWeight: "500",
24
+ children: t ? /* @__PURE__ */ r(d, { size: 24 }) : a
25
+ }
26
+ ),
27
+ /* @__PURE__ */ r(
28
+ o,
29
+ {
30
+ variant: "xl",
31
+ sx: { opacity: "0.75" },
32
+ fontFamily: e.typography.redHatMono.fontFamily,
33
+ children: "Want to add more credits? Please contact your Distributor"
34
+ }
35
+ )
36
+ ] }) }) })
37
+ }
38
+ );
39
+ };
40
+ export {
41
+ C as default
42
+ };
@@ -4,7 +4,7 @@ import d from "../../../Shared/HistoryItem/index.js";
4
4
  import { T as i } from "../../../../Typography-Du8mj1kr.js";
5
5
  import { S as o } from "../../../../Stack-Ce-OQAtj.js";
6
6
  import { B as p } from "../../../../Box-Bt8cGqC7.js";
7
- import { C as h } from "../../../../CircularProgress-DYCklg37.js";
7
+ import { C as h } from "../../../../CircularProgress-B06C3TSm.js";
8
8
  const j = ({
9
9
  isLoading: n,
10
10
  transactions: t,
@@ -8,8 +8,8 @@ import q from "./storeInfo.js";
8
8
  import C from "./personalInfo.js";
9
9
  import D from "./summary.js";
10
10
  import L from "./validateEmail.js";
11
- import "../../../../constants-Bb9tNMO0.js";
12
- import { a as _, u as V, b as j, c as z, l as A } from "../../../../auth-Czk2iJ8q.js";
11
+ import "../../../../constants-74hrsFxy.js";
12
+ import { a as _, u as V, b as j, c as z, l as A } from "../../../../auth-CD4Ih2jU.js";
13
13
  import { C as O } from "../../../../Container-Htc6vdB5.js";
14
14
  import { T as f } from "../../../../Typography-Du8mj1kr.js";
15
15
  import { B as S } from "../../../../Box-Bt8cGqC7.js";