everest-npm-features 0.0.47 → 0.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PlayArrow-Cm8tJN8W.js → PlayArrow-C3uVNo4F.js} +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles2.css +1 -1
- package/dist/assets/styles3.css +1 -1
- package/dist/assets/styles4.css +1 -0
- package/dist/{auth-D0r8wtCH.js → auth-ClBgT--j.js} +1 -1
- package/dist/{bank-BmV_keEr.js → bank-Dz5km1qK.js} +3 -3
- package/dist/components/RocketRamp/MinimalKyc/form.js +14 -13
- package/dist/components/RocketRamp/Player/Buy/cardPayment.js +3 -3
- package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +3 -3
- package/dist/components/RocketRamp/Player/Buy/form.js +4 -4
- package/dist/components/RocketRamp/Player/Buy/index.js +12 -11
- package/dist/components/RocketRamp/Player/Dashboard/index.js +25 -24
- package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +3 -3
- package/dist/components/RocketRamp/Player/Sell/form.js +4 -4
- package/dist/components/RocketRamp/Player/Sell/index.js +12 -11
- package/dist/components/RocketRamp/Player/SignIn/index.js +20 -19
- package/dist/components/RocketRamp/Player/SignIn/loginForm.js +2 -2
- package/dist/components/RocketRamp/Player/SignIn/otpForm.js +2 -2
- package/dist/components/RocketRamp/Player/SignUp/email.js +2 -2
- package/dist/components/RocketRamp/Player/SignUp/index.js +39 -38
- package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +2 -2
- package/dist/components/RocketRamp/ResetPassword/index.js +21 -20
- package/dist/components/RocketRamp/Store/SignUp/index.js +48 -47
- package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +2 -2
- package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +2 -2
- package/dist/components/RocketRamp/Transactions/index.js +14 -13
- package/dist/components/Shared/FullKyc/edd.js +41 -41
- package/dist/components/Shared/FullKyc/index.js +11 -10
- package/dist/components/Shared/FullKyc/pep.js +1 -1
- package/dist/components/Shared/FullKyc/personalDetails.js +2 -2
- package/dist/components/Shared/FullKyc/userInfo.js +4 -4
- package/dist/components/Shared/MinimalKyc/index.js +31 -30
- package/dist/components/Wallet/Account/createIban.d.ts +2 -0
- package/dist/components/Wallet/Account/createIban.js +70 -62
- package/dist/components/Wallet/Account/eWallet.d.ts +20 -0
- package/dist/components/Wallet/Account/eWallet.js +96 -0
- package/dist/components/Wallet/Account/iban.d.ts +2 -0
- package/dist/components/Wallet/Account/iban.js +38 -32
- package/dist/components/Wallet/Account/ibanItem.d.ts +5 -2
- package/dist/components/Wallet/Account/ibanItem.js +233 -76
- package/dist/components/Wallet/Account/index.d.ts +2 -0
- package/dist/components/Wallet/Account/index.js +164 -143
- package/dist/components/Wallet/Account/sendIban.js +3 -3
- package/dist/components/Wallet/Buy/confirmTransaction.js +6 -6
- package/dist/components/Wallet/Buy/form.js +6 -6
- package/dist/components/Wallet/Buy/index.js +14 -13
- package/dist/components/Wallet/Deposit/index.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/edd.js +9 -9
- package/dist/components/Wallet/EnterpriseKyc/index.js +23 -22
- package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +24 -24
- package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/verify.js +1 -1
- package/dist/components/Wallet/History/index.js +25 -24
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +49 -48
- package/dist/components/Wallet/Portfolio/index.js +34 -33
- package/dist/components/Wallet/Profile/documents.js +527 -28
- package/dist/components/Wallet/Profile/index.js +179 -149
- package/dist/components/Wallet/Profile/storage.d.ts +11 -0
- package/dist/components/Wallet/Profile/storage.js +267 -0
- package/dist/components/Wallet/Receive/index.js +22 -21
- package/dist/components/Wallet/Sell/confirmTransaction.js +5 -5
- package/dist/components/Wallet/Sell/form.js +6 -6
- package/dist/components/Wallet/Sell/index.js +13 -12
- package/dist/components/Wallet/Send/index.js +44 -43
- package/dist/components/Wallet/Shared/Auth/otpForm.js +2 -2
- package/dist/components/Wallet/Shared/BankSelect/index.js +36 -35
- package/dist/components/Wallet/Shared/CardCorp/index.d.ts +1 -1
- package/dist/components/Wallet/Shared/CardCorp/index.js +16 -16
- package/dist/components/Wallet/Shared/addBank.js +39 -38
- package/dist/components/Wallet/Shared/connectPlaidBank.js +19 -18
- package/dist/components/Wallet/Shared/manualSend.js +7 -6
- package/dist/components/Wallet/Shared/pin.js +1 -1
- package/dist/components/Wallet/SignIn/index.js +24 -23
- package/dist/components/Wallet/SignUp/index.js +22 -21
- package/dist/components/Wallet/Stake/gems/index.js +1 -1
- package/dist/components/Wallet/Stake/id/index.js +1 -1
- package/dist/components/Wallet/Stake/index.js +31 -30
- package/dist/components/Wallet/Swap/form.js +9 -8
- package/dist/components/Wallet/Swap/index.js +11 -10
- package/dist/components/Wallet/Withdraw/bankSelect.js +28 -27
- package/dist/components/Wallet/Withdraw/confirmTransaction.js +5 -5
- package/dist/components/Wallet/Withdraw/form.js +5 -5
- package/dist/components/Wallet/Withdraw/index.js +12 -11
- package/dist/{constants-BJhUp96H.js → constants-t7n9qCW3.js} +559 -553
- package/dist/{cryptoAssets-Q_UWeuzR.js → cryptoAssets-shEFU26O.js} +1 -1
- package/dist/hooks/useDialog/index.js +1 -1
- package/dist/hooks/useEverestDispatch.d.ts +6 -0
- package/dist/hooks/useEverestDispatch.js +5 -0
- package/dist/{index-Dkjl8hIv.js → index-B6MSTmAM.js} +112 -111
- package/dist/{index-MUaN67Ei.js → index-C2EjFXaz.js} +88 -87
- package/dist/{index-pCrOsXNC.js → index-Cs7bSfT3.js} +29 -28
- package/dist/{index-DegQ9bTI.js → index-DFRU-R-5.js} +39 -38
- package/dist/{index-BRnTzw1Z.js → index-Da0r8FX2.js} +11 -10
- package/dist/{index-Dq5wTY4S.js → index-RDV0mQbt.js} +36 -35
- package/dist/{index-B2wXmFh5.js → index-j0zehpzg.js} +41 -40
- package/dist/{kyc-DLaLS7sp.js → kyc-D9xahfH9.js} +1 -1
- package/dist/main.js +7 -7
- package/dist/{order-fWKVFTau.js → order-jqH948WM.js} +29 -25
- package/dist/{react-redux-B4BZippc.js → react-redux-C7I9-1M6.js} +2 -2
- package/dist/{stake-CQLutF0z.js → stake-Dcq6QpaA.js} +3 -3
- package/dist/{styles.module-O5VVND5e.js → styles.module-C1sNeKjL.js} +1 -1
- package/dist/styles.module-CHPRGltL.js +28 -0
- package/dist/{styles.module-CHEBh2ID.js → styles.module-DMd29SPQ.js} +1 -1
- package/dist/{styles.module-CUA1zLEJ.js → styles.module-verVx4pE.js} +1 -1
- package/dist/util/constants.d.ts +5 -0
- package/dist/util/constants.js +86 -81
- package/dist/util/functions.js +36 -36
- package/dist/{wallet-CuQDBP6a.js → wallet-DpkUmmq0.js} +1 -1
- package/package.json +3 -2
- package/dist/assets/documents.css +0 -1
- package/dist/documents-RjwlADn2.js +0 -552
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o, jsxs as y } from "react/jsx-runtime";
|
|
2
2
|
import { useState as T, useEffect as N } from "react";
|
|
3
|
-
import { s as i } from "../../styles.module-
|
|
3
|
+
import { s as i } from "../../styles.module-verVx4pE.js";
|
|
4
4
|
import u from "../../components/Wallet/Shared/appButton.js";
|
|
5
5
|
import { D as W, a as w } from "../../DialogContent-BMwlOnbW.js";
|
|
6
6
|
import { B as S } from "../../Box-B0YSYLco.js";
|
|
@@ -3,22 +3,23 @@ import { useState as c, useEffect as f } from "react";
|
|
|
3
3
|
import Re from "./hoc/withThemeProvider.js";
|
|
4
4
|
import Se from "./components/RocketRamp/Shared/backBtn.js";
|
|
5
5
|
import { getCurrencySymbol as ue, getOrionBalance as Me } from "./util/functions.js";
|
|
6
|
-
import { PAYMENT_BANK as
|
|
6
|
+
import { PAYMENT_BANK as oe, SEPA_ICON as ze, VISA_ICON as Oe, ID_TOKEN_SYMBOL as Pe, FIAT_WITHDRAW as we, FIAT_TO_EVER_ID as We, FIAT_TO_TOKEN as Be, ESTIMATE_TOOLTIP_TEXT as Le, TOKEN_TO_FIAT as Xe } from "./util/constants.js";
|
|
7
7
|
import U from "./components/RocketRamp/Shared/Button/index.js";
|
|
8
|
-
import {
|
|
9
|
-
import { f as pe, g as De, k as
|
|
8
|
+
import { aC as j } from "./constants-t7n9qCW3.js";
|
|
9
|
+
import { f as pe, g as De, k as Ye, e as qe, h as Ke } from "./order-jqH948WM.js";
|
|
10
10
|
import "./index-DlQqWbXG.js";
|
|
11
11
|
import "./components/Wallet/Shared/appButton.js";
|
|
12
|
-
import { u as
|
|
12
|
+
import { u as W } from "./react-redux-C7I9-1M6.js";
|
|
13
13
|
import "./components/Wallet/Shared/Auth/otpForm.js";
|
|
14
|
-
import { P as
|
|
15
|
-
import { f as
|
|
14
|
+
import { P as $e, f as Ge } from "./PlayArrow-C3uVNo4F.js";
|
|
15
|
+
import { f as Ue } from "./cryptoAssets-shEFU26O.js";
|
|
16
16
|
import "./context/snackBarContext.js";
|
|
17
|
+
import je from "./hooks/useEverestDispatch.js";
|
|
17
18
|
import "./util/conversions.js";
|
|
18
19
|
import "./index-CAoLi5Qq.js";
|
|
19
20
|
import { useSnackBar as Ve } from "./hooks/useSnackBar.js";
|
|
20
21
|
import "./react-webcam-B3cXh1XT.js";
|
|
21
|
-
import
|
|
22
|
+
import ae from "./components/Shared/transition.js";
|
|
22
23
|
import { M as He } from "./tooltip-3UvETWtS.js";
|
|
23
24
|
import "./components/Wallet/Shared/pin.js";
|
|
24
25
|
import "./moment-h96o7c8I.js";
|
|
@@ -32,7 +33,7 @@ import { G as Ze } from "./generic-token-B_ptO5yb.js";
|
|
|
32
33
|
import se from "./components/RocketRamp/Shared/Input/index.js";
|
|
33
34
|
import { G as n } from "./Grid-CFe3amXO.js";
|
|
34
35
|
import { B as C } from "./Box-B0YSYLco.js";
|
|
35
|
-
import { T as
|
|
36
|
+
import { T as i } from "./Typography-pAaje37G.js";
|
|
36
37
|
import { C as I } from "./CircularProgress-xZA3lvba.js";
|
|
37
38
|
import { I as et } from "./TextField-DPpRUQe3.js";
|
|
38
39
|
import { F as tt } from "./FormControl-RtZDQMdA.js";
|
|
@@ -47,7 +48,7 @@ import './assets/index7.css';const E = {
|
|
|
47
48
|
"confirm-transaction-network": "_confirm-transaction-network_1oe7d_33",
|
|
48
49
|
"buy-info": "_buy-info_1oe7d_57",
|
|
49
50
|
"close-btn": "_close-btn_1oe7d_77"
|
|
50
|
-
},
|
|
51
|
+
}, it = ({
|
|
51
52
|
setScreen: T,
|
|
52
53
|
partnerKey: y,
|
|
53
54
|
orderData: d,
|
|
@@ -56,7 +57,7 @@ import './assets/index7.css';const E = {
|
|
|
56
57
|
navigate: S,
|
|
57
58
|
store: p
|
|
58
59
|
}) => {
|
|
59
|
-
const
|
|
60
|
+
const o = d.estimate, A = d.create.order_id, x = d.loader, h = d.card, l = o.crypto_amount, b = ue(o.fiat_currency), [F, _] = c(!1), [B, N] = c(!1), [s, L] = c(!1);
|
|
60
61
|
f(() => {
|
|
61
62
|
A && F && (N(!1), L(!0));
|
|
62
63
|
}, [A]), f(() => {
|
|
@@ -67,14 +68,14 @@ import './assets/index7.css';const E = {
|
|
|
67
68
|
pe(
|
|
68
69
|
{
|
|
69
70
|
apiKey: y,
|
|
70
|
-
transaction_type:
|
|
71
|
-
coin_amount:
|
|
72
|
-
exchange:
|
|
73
|
-
payment_type:
|
|
74
|
-
fiat_ccy:
|
|
75
|
-
crypto_ccy:
|
|
76
|
-
network:
|
|
77
|
-
payment_provider:
|
|
71
|
+
transaction_type: o.transaction_type,
|
|
72
|
+
coin_amount: o.fiat_amount,
|
|
73
|
+
exchange: o.exchange,
|
|
74
|
+
payment_type: o.payment_type,
|
|
75
|
+
fiat_ccy: o.fiat_currency,
|
|
76
|
+
crypto_ccy: o.crypto_currency,
|
|
77
|
+
network: o.network,
|
|
78
|
+
payment_provider: o.payment_provider
|
|
78
79
|
},
|
|
79
80
|
j
|
|
80
81
|
)
|
|
@@ -83,82 +84,82 @@ import './assets/index7.css';const E = {
|
|
|
83
84
|
k(
|
|
84
85
|
De({
|
|
85
86
|
apiKey: y,
|
|
86
|
-
quoteId:
|
|
87
|
+
quoteId: o.quote_id,
|
|
87
88
|
walletAddress: u,
|
|
88
89
|
paymentMethodId: h.payment_method.id,
|
|
89
90
|
storeId: p.info.id
|
|
90
91
|
})
|
|
91
92
|
), _(!0);
|
|
92
|
-
}, z = ({ label:
|
|
93
|
-
/* @__PURE__ */ e(n, { size: 4, children: /* @__PURE__ */ e("strong", { children:
|
|
94
|
-
/* @__PURE__ */ e(n, { className: "fw500 text-right", size: 8, children:
|
|
93
|
+
}, z = ({ label: Y, value: q }) => /* @__PURE__ */ t(v, { children: [
|
|
94
|
+
/* @__PURE__ */ e(n, { size: 4, children: /* @__PURE__ */ e("strong", { children: Y }) }),
|
|
95
|
+
/* @__PURE__ */ e(n, { className: "fw500 text-right", size: 8, children: q })
|
|
95
96
|
] });
|
|
96
97
|
return /* @__PURE__ */ t(v, { children: [
|
|
97
98
|
/* @__PURE__ */ e(Se, { onClickHandler: () => T(he) }),
|
|
98
|
-
/* @__PURE__ */ e(
|
|
99
|
+
/* @__PURE__ */ e(i, { mt: 2, variant: "sm", fontWeight: 600, children: "Token Send From" }),
|
|
99
100
|
/* @__PURE__ */ t(C, { mt: 2, className: E["confirm-payment"], children: [
|
|
100
101
|
/* @__PURE__ */ e(
|
|
101
102
|
"img",
|
|
102
103
|
{
|
|
103
|
-
src:
|
|
104
|
+
src: o.payment_type === oe ? ze : Oe,
|
|
104
105
|
width: 100,
|
|
105
106
|
alt: "payment"
|
|
106
107
|
}
|
|
107
108
|
),
|
|
108
|
-
/* @__PURE__ */ e(
|
|
109
|
+
/* @__PURE__ */ e(i, { variant: "caption", component: "span", children: /* @__PURE__ */ e("strong", { children: o.payment_type === oe ? "Bank Account" : "Debit Card" }) })
|
|
109
110
|
] }),
|
|
110
|
-
/* @__PURE__ */ e(
|
|
111
|
+
/* @__PURE__ */ e(i, { mt: 4, variant: "sm", fontWeight: 600, children: "To Wallet Address" }),
|
|
111
112
|
/* @__PURE__ */ e(
|
|
112
113
|
C,
|
|
113
114
|
{
|
|
114
115
|
mt: 2,
|
|
115
116
|
className: E["confirm-payment"],
|
|
116
117
|
sx: { width: "100% !important" },
|
|
117
|
-
children: /* @__PURE__ */ e(
|
|
118
|
+
children: /* @__PURE__ */ e(i, { variant: "caption", component: "p", children: /* @__PURE__ */ e("strong", { children: u }) })
|
|
118
119
|
}
|
|
119
120
|
),
|
|
120
|
-
/* @__PURE__ */ e(
|
|
121
|
+
/* @__PURE__ */ e(i, { mt: 3, variant: "sm", fontWeight: 600, component: "p", children: "Order Estimate Details" }),
|
|
121
122
|
/* @__PURE__ */ e(C, { sx: { color: "#A6A6A6" }, children: /* @__PURE__ */ t(n, { container: !0, children: [
|
|
122
|
-
/* @__PURE__ */ e(n, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ t(
|
|
123
|
-
|
|
123
|
+
/* @__PURE__ */ e(n, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ t(i, { variant: "caption", children: [
|
|
124
|
+
o.crypto_currency.toUpperCase(),
|
|
124
125
|
" @",
|
|
125
126
|
" ",
|
|
126
|
-
Number(
|
|
127
|
+
Number(o.conversion_price).toFixed(2),
|
|
127
128
|
" ",
|
|
128
|
-
|
|
129
|
+
o.fiat_currency
|
|
129
130
|
] }) }),
|
|
130
131
|
/* @__PURE__ */ e(n, { className: "flex-right", size: { xs: 6 }, children: /* @__PURE__ */ e(
|
|
131
132
|
"span",
|
|
132
133
|
{
|
|
133
134
|
className: E["confirm-transaction-network"],
|
|
134
135
|
style: {
|
|
135
|
-
backgroundColor:
|
|
136
|
+
backgroundColor: o.network === "Ethereum" ? "#A1A9DC" : "#5D8CCC"
|
|
136
137
|
},
|
|
137
|
-
children:
|
|
138
|
+
children: o.network
|
|
138
139
|
}
|
|
139
140
|
) }),
|
|
140
|
-
/* @__PURE__ */ e(n, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ t(
|
|
141
|
-
Number(
|
|
141
|
+
/* @__PURE__ */ e(n, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ t(i, { variant: "caption", children: [
|
|
142
|
+
Number(o.crypto_amount).toFixed(2),
|
|
142
143
|
" ",
|
|
143
|
-
|
|
144
|
+
o.crypto_currency.toUpperCase()
|
|
144
145
|
] }) }),
|
|
145
|
-
/* @__PURE__ */ e(n, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ t(
|
|
146
|
-
(Number(l) - Number(
|
|
146
|
+
/* @__PURE__ */ e(n, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ t(i, { variant: "caption", children: [
|
|
147
|
+
(Number(l) - Number(o.total_fee)).toFixed(2),
|
|
147
148
|
" ",
|
|
148
|
-
|
|
149
|
+
o.fiat_currency
|
|
149
150
|
] }) }),
|
|
150
|
-
/* @__PURE__ */ e(n, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(
|
|
151
|
-
/* @__PURE__ */ e(n, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ t(
|
|
152
|
-
Number(
|
|
151
|
+
/* @__PURE__ */ e(n, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(i, { variant: "caption", children: "Total Fees" }) }),
|
|
152
|
+
/* @__PURE__ */ e(n, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ t(i, { variant: "caption", children: [
|
|
153
|
+
Number(o.total_fee).toFixed(2),
|
|
153
154
|
" ",
|
|
154
|
-
|
|
155
|
+
o.fiat_currency
|
|
155
156
|
] }) }),
|
|
156
|
-
/* @__PURE__ */ e(n, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(
|
|
157
|
-
/* @__PURE__ */ e(n, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ e(
|
|
157
|
+
/* @__PURE__ */ e(n, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(i, { variant: "caption", children: /* @__PURE__ */ e("strong", { children: "Total Receive" }) }) }),
|
|
158
|
+
/* @__PURE__ */ e(n, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ e(i, { variant: "caption", children: /* @__PURE__ */ t("strong", { children: [
|
|
158
159
|
b,
|
|
159
|
-
Number(
|
|
160
|
+
Number(o.fiat_out_amount).toFixed(2),
|
|
160
161
|
" ",
|
|
161
|
-
|
|
162
|
+
o.fiat_currency
|
|
162
163
|
] }) }) })
|
|
163
164
|
] }) }),
|
|
164
165
|
/* @__PURE__ */ e(C, { mt: 4, children: /* @__PURE__ */ e(
|
|
@@ -182,7 +183,7 @@ import './assets/index7.css';const E = {
|
|
|
182
183
|
open: B,
|
|
183
184
|
fullWidth: !0,
|
|
184
185
|
onClose: () => N(!1),
|
|
185
|
-
TransitionComponent:
|
|
186
|
+
TransitionComponent: ae,
|
|
186
187
|
children: [
|
|
187
188
|
/* @__PURE__ */ e(
|
|
188
189
|
V,
|
|
@@ -194,8 +195,8 @@ import './assets/index7.css';const E = {
|
|
|
194
195
|
}
|
|
195
196
|
),
|
|
196
197
|
/* @__PURE__ */ t(de, { sx: { mt: 1 }, children: [
|
|
197
|
-
/* @__PURE__ */ e(
|
|
198
|
-
/* @__PURE__ */ e(
|
|
198
|
+
/* @__PURE__ */ e(i, { className: "text-center", variant: "h4", children: /* @__PURE__ */ e("strong", { children: "Payout Details" }) }),
|
|
199
|
+
/* @__PURE__ */ e(i, { sx: { mt: 2 }, className: "text-center", variant: "body1", children: "You will receieve funds in the following card:" }),
|
|
199
200
|
/* @__PURE__ */ t(n, { container: !0, spacing: 1, sx: { padding: "0% 15%" }, children: [
|
|
200
201
|
/* @__PURE__ */ e(z, { label: "Name", value: h.account_holder_name }),
|
|
201
202
|
/* @__PURE__ */ e(
|
|
@@ -239,7 +240,7 @@ import './assets/index7.css';const E = {
|
|
|
239
240
|
open: s,
|
|
240
241
|
fullWidth: !0,
|
|
241
242
|
onClose: () => L(!1),
|
|
242
|
-
TransitionComponent:
|
|
243
|
+
TransitionComponent: ae,
|
|
243
244
|
children: [
|
|
244
245
|
/* @__PURE__ */ e(
|
|
245
246
|
V,
|
|
@@ -251,8 +252,8 @@ import './assets/index7.css';const E = {
|
|
|
251
252
|
}
|
|
252
253
|
),
|
|
253
254
|
/* @__PURE__ */ t(de, { sx: { mt: 1 }, children: [
|
|
254
|
-
/* @__PURE__ */ e(
|
|
255
|
-
/* @__PURE__ */ e(
|
|
255
|
+
/* @__PURE__ */ e(i, { className: "text-center", variant: "h4", children: /* @__PURE__ */ e("strong", { children: "Order Complete" }) }),
|
|
256
|
+
/* @__PURE__ */ e(i, { sx: { mt: 2 }, className: "text-center", variant: "body1", children: "Your order has been successfully completed. You can track your order either from dashboard or transaction history page." }),
|
|
256
257
|
/* @__PURE__ */ t(n, { container: !0, spacing: 1, sx: { padding: "0% 15%" }, children: [
|
|
257
258
|
/* @__PURE__ */ e(z, { label: "Order ID ", value: A }),
|
|
258
259
|
/* @__PURE__ */ e(
|
|
@@ -270,7 +271,7 @@ import './assets/index7.css';const E = {
|
|
|
270
271
|
}
|
|
271
272
|
)
|
|
272
273
|
] });
|
|
273
|
-
},
|
|
274
|
+
}, ot = ({
|
|
274
275
|
setScreen: T,
|
|
275
276
|
orderData: y,
|
|
276
277
|
dispatch: d,
|
|
@@ -278,30 +279,30 @@ import './assets/index7.css';const E = {
|
|
|
278
279
|
cryptoAssets: u,
|
|
279
280
|
getCryptoAssets: S,
|
|
280
281
|
showAlertMessage: p,
|
|
281
|
-
partnerKey:
|
|
282
|
+
partnerKey: o,
|
|
282
283
|
balance: A,
|
|
283
284
|
store: x
|
|
284
285
|
}) => {
|
|
285
286
|
const h = "USD", l = ue(h), b = k.fiats;
|
|
286
287
|
k.loader;
|
|
287
288
|
const F = u.featureTokens.list, _ = u.featureTokens.default, B = u.loader, N = y.loader, s = y.estimate, L = y.card, M = s.fiat_out_amount, D = s.conversion_price, z = s.total_fee;
|
|
288
|
-
let
|
|
289
|
+
let Y = 0, q = 0;
|
|
289
290
|
const Z = s.fee_breakdown;
|
|
290
291
|
for (let r = 0; r < Z.length; r++) {
|
|
291
|
-
const
|
|
292
|
-
|
|
292
|
+
const a = Z[r];
|
|
293
|
+
a.name === "ev_fee" ? Y = Number(a.value) : a.name === "network_fee" && (q = Number(a.value));
|
|
293
294
|
}
|
|
294
295
|
const [g, H] = c({
|
|
295
296
|
symbol: ""
|
|
296
|
-
}), [J, O] = c(!1), [X, ye] = c(0), [K, xe] = c(0), [_e, ge] = c([]), [ee, be] = c(!1), [te, Ne] = c(50), [re, ve] = c(3e3), [Q, Ce] = c(50), [ne, ke] = c(3e3), [Fe, P] = c(""), [w,
|
|
297
|
+
}), [J, O] = c(!1), [X, ye] = c(0), [K, xe] = c(0), [_e, ge] = c([]), [ee, be] = c(!1), [te, Ne] = c(50), [re, ve] = c(3e3), [Q, Ce] = c(50), [ne, ke] = c(3e3), [Fe, P] = c(""), [w, ie] = c(
|
|
297
298
|
s.crypto_amount || Q.toString()
|
|
298
299
|
);
|
|
299
300
|
f(() => {
|
|
300
|
-
d(
|
|
301
|
+
d(Ye());
|
|
301
302
|
}, []), f(() => {
|
|
302
303
|
if (s.crypto_currency) {
|
|
303
304
|
const r = F.find(
|
|
304
|
-
(
|
|
305
|
+
(a) => a.symbol === s.crypto_currency
|
|
305
306
|
);
|
|
306
307
|
H(r);
|
|
307
308
|
} else
|
|
@@ -312,10 +313,10 @@ import './assets/index7.css';const E = {
|
|
|
312
313
|
if (b.length === 0)
|
|
313
314
|
return;
|
|
314
315
|
const r = [];
|
|
315
|
-
for (let
|
|
316
|
-
if (b[
|
|
317
|
-
const m = b[
|
|
318
|
-
xe(b[
|
|
316
|
+
for (let a = 0; a < b.length; a++) {
|
|
317
|
+
if (b[a].symbol === h) {
|
|
318
|
+
const m = b[a].payment_options;
|
|
319
|
+
xe(b[a].id);
|
|
319
320
|
let $ = !1;
|
|
320
321
|
for (let R = 0; R < m.length; R++) {
|
|
321
322
|
const G = m[R];
|
|
@@ -327,7 +328,7 @@ import './assets/index7.css';const E = {
|
|
|
327
328
|
}
|
|
328
329
|
}, [h, b]), f(() => {
|
|
329
330
|
if (g && g.id && w && X && K) {
|
|
330
|
-
d(
|
|
331
|
+
d(qe(j)), O(!1), P("");
|
|
331
332
|
const r = setTimeout(() => {
|
|
332
333
|
Ie();
|
|
333
334
|
}, 1e3);
|
|
@@ -356,8 +357,8 @@ import './assets/index7.css';const E = {
|
|
|
356
357
|
`Maximum value should be less than ${l + ne}`
|
|
357
358
|
), O(!0), !1;
|
|
358
359
|
}
|
|
359
|
-
const
|
|
360
|
-
if (r >
|
|
360
|
+
const a = parseFloat(x.balance.usd);
|
|
361
|
+
if (r > a)
|
|
361
362
|
return P(
|
|
362
363
|
`Store doesn't have enough balance. Currently only ${x.balance.usd} credits can be purchased`
|
|
363
364
|
), O(!0), !1;
|
|
@@ -365,7 +366,7 @@ import './assets/index7.css';const E = {
|
|
|
365
366
|
d(
|
|
366
367
|
pe(
|
|
367
368
|
{
|
|
368
|
-
apiKey:
|
|
369
|
+
apiKey: o,
|
|
369
370
|
transaction_type: we,
|
|
370
371
|
coin_amount: w,
|
|
371
372
|
exchange: g.exchange,
|
|
@@ -382,8 +383,8 @@ import './assets/index7.css';const E = {
|
|
|
382
383
|
f(() => {
|
|
383
384
|
const r = y.types.length;
|
|
384
385
|
if (r > 0)
|
|
385
|
-
for (let
|
|
386
|
-
const m = y.types[
|
|
386
|
+
for (let a = 0; a < r; a++) {
|
|
387
|
+
const m = y.types[a];
|
|
387
388
|
if (m.type === We) {
|
|
388
389
|
Ne(parseFloat(m.min_deposit_amount)), ve(parseFloat(m.max_deposit_amount));
|
|
389
390
|
break;
|
|
@@ -395,11 +396,11 @@ import './assets/index7.css';const E = {
|
|
|
395
396
|
}
|
|
396
397
|
}, [y.types]);
|
|
397
398
|
const Ee = (r) => {
|
|
398
|
-
const
|
|
399
|
-
|
|
399
|
+
const a = r.target.value;
|
|
400
|
+
a ? /^([0-9]+)$/.test(a) && ie(a) : ie("");
|
|
400
401
|
}, Te = (r) => {
|
|
401
|
-
const
|
|
402
|
-
H(
|
|
402
|
+
const a = F.find((m) => m.symbol === r);
|
|
403
|
+
H(a);
|
|
403
404
|
}, Ae = () => {
|
|
404
405
|
if (!g.id)
|
|
405
406
|
return p({ message: "Please select token" }), !1;
|
|
@@ -420,8 +421,8 @@ import './assets/index7.css';const E = {
|
|
|
420
421
|
return /* @__PURE__ */ t(v, { children: [
|
|
421
422
|
/* @__PURE__ */ t(n, { mt: 0.5, spacing: 1, container: !0, children: [
|
|
422
423
|
/* @__PURE__ */ e(n, { size: { xs: 3.5 }, children: /* @__PURE__ */ t(C, { className: E["buy-info"], children: [
|
|
423
|
-
/* @__PURE__ */ e(
|
|
424
|
-
/* @__PURE__ */ t(
|
|
424
|
+
/* @__PURE__ */ e(i, { variant: "2xl", children: /* @__PURE__ */ e("strong", { children: "Redeem Request" }) }),
|
|
425
|
+
/* @__PURE__ */ t(i, { variant: "md", children: [
|
|
425
426
|
"1 credit = ",
|
|
426
427
|
D,
|
|
427
428
|
l
|
|
@@ -436,8 +437,8 @@ import './assets/index7.css';const E = {
|
|
|
436
437
|
alignItems: "center"
|
|
437
438
|
},
|
|
438
439
|
children: [
|
|
439
|
-
/* @__PURE__ */ e(
|
|
440
|
-
/* @__PURE__ */ e(
|
|
440
|
+
/* @__PURE__ */ e(i, { variant: "md", children: "MAX amount you can request:" }),
|
|
441
|
+
/* @__PURE__ */ e(i, { variant: "md", children: x.balanceLoader ? /* @__PURE__ */ e(I, { sx: { ml: 1 }, size: 15, color: "primary" }) : /* @__PURE__ */ t(v, { children: [
|
|
441
442
|
x.balance.usd,
|
|
442
443
|
" credits"
|
|
443
444
|
] }) })
|
|
@@ -453,8 +454,8 @@ import './assets/index7.css';const E = {
|
|
|
453
454
|
color: "white !important"
|
|
454
455
|
},
|
|
455
456
|
children: [
|
|
456
|
-
/* @__PURE__ */ e(
|
|
457
|
-
/* @__PURE__ */ e(
|
|
457
|
+
/* @__PURE__ */ e(i, { variant: "md", className: "text-right", children: "Game Balance" }),
|
|
458
|
+
/* @__PURE__ */ e(i, { variant: "lg", className: "text-right", children: A })
|
|
458
459
|
]
|
|
459
460
|
}
|
|
460
461
|
) })
|
|
@@ -496,8 +497,8 @@ import './assets/index7.css';const E = {
|
|
|
496
497
|
"img",
|
|
497
498
|
{
|
|
498
499
|
src: r.icon_uri,
|
|
499
|
-
onError: ({ currentTarget:
|
|
500
|
-
|
|
500
|
+
onError: ({ currentTarget: a }) => {
|
|
501
|
+
a.onerror = null, a.src = Ze;
|
|
501
502
|
},
|
|
502
503
|
alt: "tokenImg",
|
|
503
504
|
width: "36",
|
|
@@ -533,9 +534,9 @@ import './assets/index7.css';const E = {
|
|
|
533
534
|
disableFocusRipple: !0,
|
|
534
535
|
disableRipple: !0,
|
|
535
536
|
children: [
|
|
536
|
-
/* @__PURE__ */ e(
|
|
537
|
+
/* @__PURE__ */ e(i, { variant: "md", fontWeight: 500, children: "Fee Calculation" }),
|
|
537
538
|
/* @__PURE__ */ e(
|
|
538
|
-
|
|
539
|
+
$e,
|
|
539
540
|
{
|
|
540
541
|
sx: {
|
|
541
542
|
transform: `rotate(${ee ? "90" : "0"}deg)`,
|
|
@@ -547,8 +548,8 @@ import './assets/index7.css';const E = {
|
|
|
547
548
|
}
|
|
548
549
|
) }),
|
|
549
550
|
ee && /* @__PURE__ */ t(v, { children: [
|
|
550
|
-
/* @__PURE__ */ e(n, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(
|
|
551
|
-
/* @__PURE__ */ e(n, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ t(
|
|
551
|
+
/* @__PURE__ */ e(n, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(i, { variant: "caption", children: "Everest Fee" }) }),
|
|
552
|
+
/* @__PURE__ */ e(n, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ t(i, { variant: "caption", children: [
|
|
552
553
|
l,
|
|
553
554
|
N ? /* @__PURE__ */ e(
|
|
554
555
|
I,
|
|
@@ -557,10 +558,10 @@ import './assets/index7.css';const E = {
|
|
|
557
558
|
size: 15,
|
|
558
559
|
color: "primary"
|
|
559
560
|
}
|
|
560
|
-
) :
|
|
561
|
+
) : Y.toFixed(2)
|
|
561
562
|
] }) }),
|
|
562
|
-
/* @__PURE__ */ e(n, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(
|
|
563
|
-
/* @__PURE__ */ e(n, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ t(
|
|
563
|
+
/* @__PURE__ */ e(n, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(i, { variant: "caption", children: "Network Fee" }) }),
|
|
564
|
+
/* @__PURE__ */ e(n, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ t(i, { variant: "caption", children: [
|
|
564
565
|
l,
|
|
565
566
|
N ? /* @__PURE__ */ e(
|
|
566
567
|
I,
|
|
@@ -569,16 +570,16 @@ import './assets/index7.css';const E = {
|
|
|
569
570
|
size: 15,
|
|
570
571
|
color: "primary"
|
|
571
572
|
}
|
|
572
|
-
) :
|
|
573
|
+
) : q.toFixed(2)
|
|
573
574
|
] }) })
|
|
574
575
|
] }),
|
|
575
|
-
/* @__PURE__ */ e(n, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(
|
|
576
|
-
/* @__PURE__ */ e(n, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ t(
|
|
576
|
+
/* @__PURE__ */ e(n, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(i, { variant: "caption", children: "Total Fees" }) }),
|
|
577
|
+
/* @__PURE__ */ e(n, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ t(i, { variant: "caption", children: [
|
|
577
578
|
l,
|
|
578
579
|
N ? /* @__PURE__ */ e(I, { sx: { ml: 1 }, size: 15, color: "primary" }) : Number(z).toFixed(2)
|
|
579
580
|
] }) }),
|
|
580
581
|
g && /* @__PURE__ */ t(v, { children: [
|
|
581
|
-
/* @__PURE__ */ e(n, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ t(
|
|
582
|
+
/* @__PURE__ */ e(n, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ t(i, { variant: "caption", children: [
|
|
582
583
|
"1 ",
|
|
583
584
|
g.symbol,
|
|
584
585
|
" ",
|
|
@@ -598,7 +599,7 @@ import './assets/index7.css';const E = {
|
|
|
598
599
|
}
|
|
599
600
|
)
|
|
600
601
|
] }) }),
|
|
601
|
-
/* @__PURE__ */ e(n, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ t(
|
|
602
|
+
/* @__PURE__ */ e(n, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ t(i, { variant: "caption", children: [
|
|
602
603
|
l,
|
|
603
604
|
N ? /* @__PURE__ */ e(
|
|
604
605
|
I,
|
|
@@ -621,10 +622,10 @@ import './assets/index7.css';const E = {
|
|
|
621
622
|
}
|
|
622
623
|
) })
|
|
623
624
|
] });
|
|
624
|
-
}, he = "FORM_SCREEN", fe = "CONFIRM_SCREEN",
|
|
625
|
-
const d =
|
|
625
|
+
}, he = "FORM_SCREEN", fe = "CONFIRM_SCREEN", Zt = "PAYMENT_SCREEN", at = "MINIMAL_KYC_SCREEN", st = ({ partnerKey: T, navigate: y }) => {
|
|
626
|
+
const d = je(), k = W((s) => s.app), u = W((s) => s.order), S = W(
|
|
626
627
|
(s) => s.user.profile
|
|
627
|
-
), p = u.error,
|
|
628
|
+
), p = u.error, o = W(
|
|
628
629
|
(s) => s.user.profile.everWalletAddress
|
|
629
630
|
), A = W(
|
|
630
631
|
(s) => s.fiatAssets
|
|
@@ -636,9 +637,9 @@ import './assets/index7.css';const E = {
|
|
|
636
637
|
}, [S.tokens]), f(() => {
|
|
637
638
|
p && _({ message: p });
|
|
638
639
|
}, [p]), f(() => {
|
|
639
|
-
u.initMinimalKyc && (_({ message: p, type: "info" }), l(
|
|
640
|
+
u.initMinimalKyc && (_({ message: p, type: "info" }), l(at));
|
|
640
641
|
}, [u.initMinimalKyc]), f(() => {
|
|
641
|
-
d(
|
|
642
|
+
d(Ge()), d(Ke(Xe));
|
|
642
643
|
}, []), /* @__PURE__ */ t(v, { children: [
|
|
643
644
|
B,
|
|
644
645
|
/* @__PURE__ */ e(
|
|
@@ -652,7 +653,7 @@ import './assets/index7.css';const E = {
|
|
|
652
653
|
},
|
|
653
654
|
children: {
|
|
654
655
|
FORM_SCREEN: /* @__PURE__ */ e(
|
|
655
|
-
|
|
656
|
+
ot,
|
|
656
657
|
{
|
|
657
658
|
showAlertMessage: _,
|
|
658
659
|
setScreen: l,
|
|
@@ -661,7 +662,7 @@ import './assets/index7.css';const E = {
|
|
|
661
662
|
orderData: u,
|
|
662
663
|
dispatch: d,
|
|
663
664
|
getCryptoAssets: (s) => {
|
|
664
|
-
d(
|
|
665
|
+
d(Ue({ type: j, id: s, partnerKey: T }));
|
|
665
666
|
},
|
|
666
667
|
partnerKey: T,
|
|
667
668
|
balance: b,
|
|
@@ -669,14 +670,14 @@ import './assets/index7.css';const E = {
|
|
|
669
670
|
}
|
|
670
671
|
),
|
|
671
672
|
CONFIRM_SCREEN: /* @__PURE__ */ e(
|
|
672
|
-
|
|
673
|
+
it,
|
|
673
674
|
{
|
|
674
675
|
partnerKey: T,
|
|
675
676
|
setScreen: l,
|
|
676
677
|
showAlertMessage: _,
|
|
677
678
|
orderData: u,
|
|
678
679
|
dispatch: d,
|
|
679
|
-
walletAddress:
|
|
680
|
+
walletAddress: o,
|
|
680
681
|
navigate: y,
|
|
681
682
|
store: k.store
|
|
682
683
|
}
|
|
@@ -693,13 +694,13 @@ import './assets/index7.css';const E = {
|
|
|
693
694
|
}
|
|
694
695
|
)
|
|
695
696
|
] });
|
|
696
|
-
},
|
|
697
|
+
}, er = Re(st);
|
|
697
698
|
export {
|
|
698
|
-
|
|
699
|
+
it as B,
|
|
699
700
|
fe as C,
|
|
700
701
|
he as F,
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
702
|
+
at as M,
|
|
703
|
+
Zt as P,
|
|
704
|
+
ot as S,
|
|
705
|
+
er as i
|
|
705
706
|
};
|