everest-npm-features 0.0.42 → 0.0.43
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-C6lnbwD4.js → PlayArrow-Cd3sLvFW.js} +3 -3
- package/dist/{auth-BMzyEvqd.js → auth-CzQ2SiN_.js} +1 -1
- package/dist/{bank-Bp23LpvN.js → bank-DJqJqzwJ.js} +1 -1
- package/dist/components/RocketRamp/MinimalKyc/form.js +2 -2
- 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 +5 -5
- package/dist/components/RocketRamp/Player/Dashboard/index.js +2 -2
- 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 +5 -5
- package/dist/components/RocketRamp/Player/SignIn/index.js +2 -2
- 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 +2 -2
- package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +2 -2
- package/dist/components/RocketRamp/ResetPassword/index.js +2 -2
- package/dist/components/RocketRamp/Store/SignUp/index.js +2 -2
- 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 +6 -6
- package/dist/components/Shared/FullKyc/edd.js +2 -2
- package/dist/components/Shared/FullKyc/index.js +3 -3
- 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 +3 -3
- package/dist/components/Shared/MinimalKyc/index.js +2 -2
- package/dist/components/Wallet/Account/createIban.js +1 -1
- package/dist/components/Wallet/Account/iban.js +5 -5
- package/dist/components/Wallet/Account/ibanItem.js +1 -1
- package/dist/components/Wallet/Account/index.js +11 -11
- package/dist/components/Wallet/Account/sendIban.js +2 -2
- package/dist/components/Wallet/Buy/confirmTransaction.js +3 -3
- package/dist/components/Wallet/Buy/form.js +5 -5
- package/dist/components/Wallet/Buy/index.d.ts +2 -0
- package/dist/components/Wallet/Buy/index.js +15 -11
- package/dist/components/Wallet/Deposit/index.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/edd.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/index.js +3 -3
- package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +2 -2
- 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 +2 -2
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +25 -25
- package/dist/components/Wallet/Portfolio/index.js +195 -186
- package/dist/components/Wallet/Profile/documents.js +3 -3
- package/dist/components/Wallet/Profile/index.js +10 -10
- package/dist/components/Wallet/Receive/index.js +3 -3
- package/dist/components/Wallet/Sell/confirmTransaction.js +4 -4
- package/dist/components/Wallet/Sell/form.js +5 -5
- package/dist/components/Wallet/Sell/index.js +6 -6
- package/dist/components/Wallet/Send/index.js +12 -12
- package/dist/components/Wallet/Shared/Auth/otpForm.js +2 -2
- package/dist/components/Wallet/Shared/BankSelect/index.d.ts +4 -0
- package/dist/components/Wallet/Shared/BankSelect/index.js +71 -0
- package/dist/components/Wallet/Shared/CardCorp/index.d.ts +11 -0
- package/dist/components/Wallet/Shared/CardCorp/index.js +72 -0
- package/dist/components/Wallet/Shared/Order/types.d.ts +3 -0
- package/dist/components/Wallet/Shared/addBank.js +3 -3
- package/dist/components/Wallet/Shared/connectPlaidBank.js +3 -3
- package/dist/components/Wallet/Shared/manualSend.js +3 -3
- package/dist/components/Wallet/SignIn/index.js +2 -2
- package/dist/components/Wallet/SignUp/index.js +2 -2
- package/dist/components/Wallet/Stake/index.js +4 -4
- package/dist/components/Wallet/Swap/form.js +6 -6
- package/dist/components/Wallet/Swap/index.js +5 -5
- package/dist/components/Wallet/Withdraw/bankSelect.js +69 -19
- package/dist/components/Wallet/Withdraw/confirmTransaction.js +4 -4
- package/dist/components/Wallet/Withdraw/form.js +5 -5
- package/dist/components/Wallet/Withdraw/index.js +11 -10
- package/dist/{constants-9grj4Du1.js → constants-BQibkMPf.js} +119 -118
- package/dist/{cryptoAssets-Cf7xMoh9.js → cryptoAssets-CI_6_gpT.js} +1 -1
- package/dist/{documents-vj042AkQ.js → documents-DhAyY9OB.js} +2 -2
- package/dist/{index-FwnHkXdK.js → index-BQNs1mvn.js} +2 -2
- package/dist/{index-ufcy2D20.js → index-BmnzQEjv.js} +2 -2
- package/dist/{index-DVQ-d6A4.js → index-C3ZgWBrd.js} +6 -6
- package/dist/{index-Y7QJR4pX.js → index-C4Z1sQwf.js} +7 -7
- package/dist/index-ChAYuyXl.js +592 -0
- package/dist/{index-Cf_gfO-E.js → index-Dh9NbI7I.js} +4 -4
- package/dist/{index-CUBxw5s4.js → index-DpOHb_Wl.js} +4 -4
- package/dist/index-e2FmUhS_.js +760 -0
- package/dist/{kyc-MeOwOyUF.js → kyc-BbIvXp_G.js} +1 -1
- package/dist/main.js +7 -7
- package/dist/order-BQbk7Nb4.js +55 -0
- package/dist/{stake-ClJWsrHb.js → stake-DWzckUqA.js} +1 -1
- package/dist/util/constants.d.ts +1 -0
- package/dist/util/constants.js +63 -62
- package/dist/{wallet-nsVuNagB.js → wallet-CHtpHvyK.js} +3 -3
- package/package.json +2 -2
- package/dist/index-BXj7Wdol.js +0 -730
- package/dist/index-CUhPCwCD.js +0 -643
- package/dist/order-Cs5_3wOs.js +0 -51
package/dist/index-BXj7Wdol.js
DELETED
|
@@ -1,730 +0,0 @@
|
|
|
1
|
-
import { jsxs as a, Fragment as S, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo as Qe, useState as d, useEffect as g } from "react";
|
|
3
|
-
import Ze from "./hoc/withThemeProvider.js";
|
|
4
|
-
import { P as et, f as tt } from "./PlayArrow-C6lnbwD4.js";
|
|
5
|
-
import { I as rt } from "./Info-BVeUSPyk.js";
|
|
6
|
-
import { G as Me } from "./generic-token-B_ptO5yb.js";
|
|
7
|
-
import { PAYMENT_PROVIDER_PAYSAFE as nt, ID_TOKEN_SYMBOL as Re, FIAT_TO_EVER_ID as le, FIAT_TO_TOKEN as ce, ESTIMATE_TOOLTIP_TEXT as it, PAYMENT_BANK as Se, SEPA_ICON as at, VISA_ICON as st } from "./util/constants.js";
|
|
8
|
-
import { am as P } from "./constants-9grj4Du1.js";
|
|
9
|
-
import { c as ot, d as lt } from "./index-FwnHkXdK.js";
|
|
10
|
-
import { d as ct, e as Be, f as mt, g as Pe, b as dt, h as pt } from "./order-Cs5_3wOs.js";
|
|
11
|
-
import { M as ut } from "./tooltip-3UvETWtS.js";
|
|
12
|
-
import { getCurrencySymbol as ke, getNetworkBackGround as ft } from "./util/functions.js";
|
|
13
|
-
import de from "./components/Wallet/Shared/appButton.js";
|
|
14
|
-
import ht from "./components/Wallet/Shared/backBtn.js";
|
|
15
|
-
import { s as c } from "./styles.module-CHEBh2ID.js";
|
|
16
|
-
import { T as o } from "./Typography-pAaje37G.js";
|
|
17
|
-
import { B as F } from "./Box-B0YSYLco.js";
|
|
18
|
-
import { G as i } from "./Grid-CFe3amXO.js";
|
|
19
|
-
import { C as E } from "./CircularProgress-xZA3lvba.js";
|
|
20
|
-
import { a as T, u as yt } from "./react-redux-B4BZippc.js";
|
|
21
|
-
import { f as xt } from "./cryptoAssets-Cf7xMoh9.js";
|
|
22
|
-
import { u as _t, a as gt } from "./wallet-nsVuNagB.js";
|
|
23
|
-
import { useSnackBarContext as Nt } from "./context/snackBarContext.js";
|
|
24
|
-
import { AuthContainer as bt } from "./components/Wallet/Shared/Container/index.js";
|
|
25
|
-
import vt from "./components/Wallet/Shared/CardPayment/index.js";
|
|
26
|
-
import Ct from "./components/Shared/MinimalKyc/index.js";
|
|
27
|
-
import Et from "./components/Wallet/Shared/Input/index.js";
|
|
28
|
-
import Ft from "./components/Wallet/Shared/TokenModal/index.js";
|
|
29
|
-
import { PaymentButton as At } from "./components/Wallet/Shared/Order/paymentButton.js";
|
|
30
|
-
import ze from "./components/Wallet/Shared/Order/selectCustomIcon.js";
|
|
31
|
-
import { F as G } from "./FormControl-RtZDQMdA.js";
|
|
32
|
-
import { F as ee } from "./FilledInput-DuNqnPjc.js";
|
|
33
|
-
import { F as Ie, I as we } from "./TextField-DPpRUQe3.js";
|
|
34
|
-
import { S as oe } from "./Select-CB5yWmyn.js";
|
|
35
|
-
import { M as te } from "./MenuItem-DUdYOJr4.js";
|
|
36
|
-
import { L as Oe } from "./ListItemIcon-CUcyTEEm.js";
|
|
37
|
-
import { I as We } from "./IconButton-DHm-hucF.js";
|
|
38
|
-
const Mt = ({
|
|
39
|
-
setScreen: A,
|
|
40
|
-
orderData: y,
|
|
41
|
-
dispatch: M,
|
|
42
|
-
fiatAssets: N,
|
|
43
|
-
cryptoAssets: m,
|
|
44
|
-
getCryptoAssets: r,
|
|
45
|
-
showAlertMessage: f,
|
|
46
|
-
partnerKey: $,
|
|
47
|
-
walletAddress: b,
|
|
48
|
-
setWalletAddress: z,
|
|
49
|
-
outputToken: s,
|
|
50
|
-
setOutputToken: I,
|
|
51
|
-
paymentId: p,
|
|
52
|
-
setPaymentId: w,
|
|
53
|
-
currencyId: h,
|
|
54
|
-
setCurrencyId: re,
|
|
55
|
-
paymentOptions: V,
|
|
56
|
-
setPaymentOptions: ne
|
|
57
|
-
}) => {
|
|
58
|
-
var Ee, Fe;
|
|
59
|
-
const ie = T(ot), ae = T(lt), { data: Y, loader: q } = ie, { data: H, loader: pe } = ae, K = N.fiats, u = N.loader, R = m.featureTokens.buy.list, O = m.featureTokens.buy.default, X = m.loader, J = y.loader, x = y.estimate[P], Q = x.crypto_out_amount, Te = x.conversion_price, $e = x.total_fee;
|
|
60
|
-
let ue = 0, fe = 0;
|
|
61
|
-
const he = x.fee_breakdown;
|
|
62
|
-
for (let t = 0; t < he.length; t++) {
|
|
63
|
-
const n = he[t];
|
|
64
|
-
n.name === "ev_fee" ? ue = Number(n.value) : n.name === "network_fee" && (fe = Number(n.value));
|
|
65
|
-
}
|
|
66
|
-
const Ye = Qe(() => [
|
|
67
|
-
...Y,
|
|
68
|
-
...H.filter(
|
|
69
|
-
(t) => !Y.some(
|
|
70
|
-
(n) => n.address.toLowerCase() === t.address.toLowerCase()
|
|
71
|
-
)
|
|
72
|
-
)
|
|
73
|
-
], [Y, H]), [se, U] = d(!1), [W, qe] = d([]), [ye, Ke] = d(!1), [xe, Ue] = d(50), [_e, De] = d(3e3), [D, je] = d(50), [ge, Ge] = d(3e3), [Ne, j] = d(""), [B, be] = d(
|
|
74
|
-
x.fiat_amount || D.toString()
|
|
75
|
-
), [Ve, ve] = d(!1), k = K.find((t) => t.id === h), v = ke(k == null ? void 0 : k.symbol);
|
|
76
|
-
g(() => {
|
|
77
|
-
const t = [];
|
|
78
|
-
for (let n = 0; n < K.length; n++) {
|
|
79
|
-
const l = {}, _ = K[n];
|
|
80
|
-
l.id = _.id, l.name = _.name, l.icon_uri = _.icon_uri, l.symbol = _.symbol, l.payment_options = [];
|
|
81
|
-
const C = _.payment_options;
|
|
82
|
-
for (let L = 0; L < C.length; L++) {
|
|
83
|
-
const Ae = {}, Z = C[L];
|
|
84
|
-
Z.payment_provider !== nt && Z.active && Z.payin_allowed && (Object.assign(Ae, Z), l.payment_options.push(Ae));
|
|
85
|
-
}
|
|
86
|
-
l.payment_options.length > 0 && t.push(l);
|
|
87
|
-
}
|
|
88
|
-
qe(t);
|
|
89
|
-
}, [K]), g(() => {
|
|
90
|
-
if (!h || W.length === 0)
|
|
91
|
-
return;
|
|
92
|
-
const t = [];
|
|
93
|
-
for (let n = 0; n < W.length; n++) {
|
|
94
|
-
if (W[n].id === h) {
|
|
95
|
-
const l = W[n].payment_options;
|
|
96
|
-
let _ = !1;
|
|
97
|
-
for (let C = 0; C < l.length; C++) {
|
|
98
|
-
const L = l[C];
|
|
99
|
-
L.active && (t.push(L), l[C].id === p && (_ = !0));
|
|
100
|
-
}
|
|
101
|
-
_ || w(t[0].id);
|
|
102
|
-
}
|
|
103
|
-
ne(t);
|
|
104
|
-
}
|
|
105
|
-
}, [h, W]), g(() => {
|
|
106
|
-
!s.symbol && O && O.id && I(O);
|
|
107
|
-
}, [O]), g(() => {
|
|
108
|
-
h && r && r(h);
|
|
109
|
-
}, [h, b]), g(() => {
|
|
110
|
-
if (s && s.id && B && p && h) {
|
|
111
|
-
M(ct(P)), U(!1), j("");
|
|
112
|
-
const t = setTimeout(() => {
|
|
113
|
-
He();
|
|
114
|
-
}, 1e3);
|
|
115
|
-
return () => clearTimeout(t);
|
|
116
|
-
}
|
|
117
|
-
}, [s, B, p, R, h]);
|
|
118
|
-
const He = () => {
|
|
119
|
-
var _;
|
|
120
|
-
const t = parseFloat(B);
|
|
121
|
-
if (s.symbol === Re) {
|
|
122
|
-
if (xe > t)
|
|
123
|
-
return j(
|
|
124
|
-
`Minimum value should be greater than ${v + xe}`
|
|
125
|
-
), U(!0), !1;
|
|
126
|
-
if (_e * 1 < t)
|
|
127
|
-
return j(
|
|
128
|
-
`Maximum value should be less than ${v + _e}`
|
|
129
|
-
), U(!0), !1;
|
|
130
|
-
} else {
|
|
131
|
-
if (D * 1 > t)
|
|
132
|
-
return j(
|
|
133
|
-
`Minimum value should be greater than ${v + D}`
|
|
134
|
-
), U(!0), !1;
|
|
135
|
-
if (ge * 1 < t)
|
|
136
|
-
return j(
|
|
137
|
-
`Maximum value should be less than ${v + ge}`
|
|
138
|
-
), U(!0), !1;
|
|
139
|
-
}
|
|
140
|
-
const n = V.find((C) => C.id === p), l = n.payment_type;
|
|
141
|
-
M(
|
|
142
|
-
Be(
|
|
143
|
-
{
|
|
144
|
-
apiKey: $,
|
|
145
|
-
transaction_type: s.symbol === Re ? le : ce,
|
|
146
|
-
coin_amount: B,
|
|
147
|
-
exchange: s.exchange,
|
|
148
|
-
payment_type: l,
|
|
149
|
-
fiat_ccy: k == null ? void 0 : k.symbol,
|
|
150
|
-
crypto_ccy: s.symbol,
|
|
151
|
-
network: (_ = s.network) == null ? void 0 : _.name,
|
|
152
|
-
payment_provider: n.payment_provider
|
|
153
|
-
},
|
|
154
|
-
P
|
|
155
|
-
)
|
|
156
|
-
);
|
|
157
|
-
};
|
|
158
|
-
g(() => {
|
|
159
|
-
const t = y.types.length;
|
|
160
|
-
if (t > 0)
|
|
161
|
-
for (let n = 0; n < t; n++) {
|
|
162
|
-
const l = y.types[n];
|
|
163
|
-
if (l.type === le) {
|
|
164
|
-
Ue(parseFloat(l.min_deposit_amount)), De(parseFloat(l.max_deposit_amount));
|
|
165
|
-
break;
|
|
166
|
-
}
|
|
167
|
-
if (l.type === ce) {
|
|
168
|
-
je(parseFloat(l.min_deposit_amount)), Ge(parseFloat(l.max_deposit_amount));
|
|
169
|
-
break;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
}, [y.types]);
|
|
173
|
-
const Xe = (t) => {
|
|
174
|
-
const n = t.target.value;
|
|
175
|
-
n ? /^([0-9.]+)$/.test(n) && be(n) : be("");
|
|
176
|
-
}, Ce = (t) => {
|
|
177
|
-
const n = R.find((l) => l.symbol === t);
|
|
178
|
-
I(n);
|
|
179
|
-
}, Je = () => {
|
|
180
|
-
if (!s.id)
|
|
181
|
-
return f({ message: "Please select token" }), !1;
|
|
182
|
-
if (!p)
|
|
183
|
-
return f({ message: "Please select payment method" }), !1;
|
|
184
|
-
if (!B)
|
|
185
|
-
return f({ message: "Please enter amount" }), !1;
|
|
186
|
-
if (!b)
|
|
187
|
-
return f({ message: "Please select wallet address" }), !1;
|
|
188
|
-
if (!Q)
|
|
189
|
-
return f({
|
|
190
|
-
message: "Please wait for the estimate to be calculated and then press next"
|
|
191
|
-
}), !1;
|
|
192
|
-
A(me);
|
|
193
|
-
};
|
|
194
|
-
return /* @__PURE__ */ a(S, { children: [
|
|
195
|
-
/* @__PURE__ */ e(i, { container: !0, children: /* @__PURE__ */ e(i, { size: { xs: 6 }, children: /* @__PURE__ */ e(o, { className: c.label, variant: "caption", component: "p", children: "You Pay" }) }) }),
|
|
196
|
-
/* @__PURE__ */ a(i, { mt: 0.5, spacing: 0, container: !0, className: c["field-set"], children: [
|
|
197
|
-
/* @__PURE__ */ e(i, { size: { xs: 7 }, children: /* @__PURE__ */ a(
|
|
198
|
-
G,
|
|
199
|
-
{
|
|
200
|
-
variant: "filled",
|
|
201
|
-
className: `${c.amount} ${c["fiat-field"]}`,
|
|
202
|
-
fullWidth: !0,
|
|
203
|
-
children: [
|
|
204
|
-
/* @__PURE__ */ e(
|
|
205
|
-
ee,
|
|
206
|
-
{
|
|
207
|
-
value: B,
|
|
208
|
-
onChange: Xe,
|
|
209
|
-
type: "text",
|
|
210
|
-
placeholder: `${D > 0 ? "$" + D + " minimum value" : ""}`,
|
|
211
|
-
error: se,
|
|
212
|
-
disableUnderline: !0,
|
|
213
|
-
required: !0,
|
|
214
|
-
fullWidth: !0
|
|
215
|
-
}
|
|
216
|
-
),
|
|
217
|
-
/* @__PURE__ */ e(Ie, { className: c["amount-symbol"], children: " " })
|
|
218
|
-
]
|
|
219
|
-
}
|
|
220
|
-
) }),
|
|
221
|
-
/* @__PURE__ */ e(i, { size: { xs: 5 }, className: "content-center", children: u ? /* @__PURE__ */ e(
|
|
222
|
-
E,
|
|
223
|
-
{
|
|
224
|
-
sx: { ml: 1 },
|
|
225
|
-
size: 30
|
|
226
|
-
}
|
|
227
|
-
) : /* @__PURE__ */ e(
|
|
228
|
-
G,
|
|
229
|
-
{
|
|
230
|
-
variant: "filled",
|
|
231
|
-
className: `text-left ${c["fiat-picker"]}`,
|
|
232
|
-
fullWidth: !0,
|
|
233
|
-
children: /* @__PURE__ */ e(
|
|
234
|
-
oe,
|
|
235
|
-
{
|
|
236
|
-
IconComponent: ze,
|
|
237
|
-
input: /* @__PURE__ */ e(ee, { disableUnderline: !0 }),
|
|
238
|
-
sx: {
|
|
239
|
-
borderTopLeftRadius: 0,
|
|
240
|
-
"&::before": {
|
|
241
|
-
borderBottom: "none"
|
|
242
|
-
},
|
|
243
|
-
".MuiSelect-select": {
|
|
244
|
-
fontSize: "21px",
|
|
245
|
-
fontWeight: "bold",
|
|
246
|
-
color: "#16359d",
|
|
247
|
-
padding: "28px 12px 23px !important"
|
|
248
|
-
},
|
|
249
|
-
".dropdown-list-item, span": {
|
|
250
|
-
position: "relative",
|
|
251
|
-
bottom: "5px"
|
|
252
|
-
},
|
|
253
|
-
".MuiSvgIcon-root": {
|
|
254
|
-
fill: "#16359D !important"
|
|
255
|
-
}
|
|
256
|
-
},
|
|
257
|
-
value: h,
|
|
258
|
-
variant: "filled",
|
|
259
|
-
displayEmpty: !0,
|
|
260
|
-
onChange: (t) => re(t.target.value),
|
|
261
|
-
error: se,
|
|
262
|
-
children: W.map((t) => /* @__PURE__ */ a(te, { value: t.id, children: [
|
|
263
|
-
/* @__PURE__ */ e(Oe, { className: c["dropdown-list-item"], children: /* @__PURE__ */ e(
|
|
264
|
-
"img",
|
|
265
|
-
{
|
|
266
|
-
src: t.icon_uri,
|
|
267
|
-
onError: ({ currentTarget: n }) => {
|
|
268
|
-
n.onerror = null, n.src = Me;
|
|
269
|
-
},
|
|
270
|
-
alt: "tokenImg",
|
|
271
|
-
width: "40",
|
|
272
|
-
height: "40"
|
|
273
|
-
}
|
|
274
|
-
) }),
|
|
275
|
-
/* @__PURE__ */ e("span", { children: t.symbol })
|
|
276
|
-
] }, t.id))
|
|
277
|
-
}
|
|
278
|
-
)
|
|
279
|
-
}
|
|
280
|
-
) }),
|
|
281
|
-
Ne && /* @__PURE__ */ e(o, { variant: "caption", sx: { color: "red" }, children: /* @__PURE__ */ e("strong", { children: Ne }) })
|
|
282
|
-
] }),
|
|
283
|
-
/* @__PURE__ */ a(F, { className: "text-left", mt: 3, children: [
|
|
284
|
-
/* @__PURE__ */ e(o, { variant: "sm", fontWeight: 600, children: "Select Payment Method" }),
|
|
285
|
-
u ? /* @__PURE__ */ e(E, { sx: { ml: 1, mt: 3 }, size: 50 }) : /* @__PURE__ */ e(i, { mt: 0.5, container: !0, children: V.map((t) => /* @__PURE__ */ e(i, { size: { xs: 2.5 }, children: /* @__PURE__ */ e(
|
|
286
|
-
At,
|
|
287
|
-
{
|
|
288
|
-
label: t.payment_type,
|
|
289
|
-
value: t.id,
|
|
290
|
-
paymentId: p,
|
|
291
|
-
setPaymentId: w
|
|
292
|
-
}
|
|
293
|
-
) }, t.id)) })
|
|
294
|
-
] }),
|
|
295
|
-
/* @__PURE__ */ e(i, { mt: 4, container: !0, children: /* @__PURE__ */ e(i, { size: { xs: 4 }, children: /* @__PURE__ */ e(o, { className: c.label, variant: "caption", component: "p", children: "You Receive" }) }) }),
|
|
296
|
-
/* @__PURE__ */ a(i, { mt: 0.5, container: !0, className: c["field-set"], children: [
|
|
297
|
-
/* @__PURE__ */ e(i, { size: { xs: 7 }, children: /* @__PURE__ */ a(
|
|
298
|
-
G,
|
|
299
|
-
{
|
|
300
|
-
className: `${c.amount} ${c["crypto-field"]}`,
|
|
301
|
-
fullWidth: !0,
|
|
302
|
-
children: [
|
|
303
|
-
/* @__PURE__ */ e(
|
|
304
|
-
ee,
|
|
305
|
-
{
|
|
306
|
-
disableUnderline: !0,
|
|
307
|
-
value: Q && parseFloat((+Q * 1).toFixed(5)),
|
|
308
|
-
type: "text",
|
|
309
|
-
readOnly: !0,
|
|
310
|
-
fullWidth: !0
|
|
311
|
-
}
|
|
312
|
-
),
|
|
313
|
-
/* @__PURE__ */ e(Ie, { className: c["crypto-helper-text"], children: +((Ee = x == null ? void 0 : x.output_token) == null ? void 0 : Ee.fiat_amount) * 1 > 0 ? v + (+((Fe = x == null ? void 0 : x.output_token) == null ? void 0 : Fe.fiat_amount) * 1).toFixed(2) : /* @__PURE__ */ e(S, { children: " " }) })
|
|
314
|
-
]
|
|
315
|
-
}
|
|
316
|
-
) }),
|
|
317
|
-
/* @__PURE__ */ e(i, { size: { xs: 5 }, className: "content-center", children: X ? /* @__PURE__ */ e(E, { sx: { ml: 1 }, size: 30 }) : /* @__PURE__ */ a(
|
|
318
|
-
G,
|
|
319
|
-
{
|
|
320
|
-
variant: "filled",
|
|
321
|
-
className: `text-left ${c["crypto-picker"]}`,
|
|
322
|
-
fullWidth: !0,
|
|
323
|
-
children: [
|
|
324
|
-
(s == null ? void 0 : s.network) && /* @__PURE__ */ e(
|
|
325
|
-
we,
|
|
326
|
-
{
|
|
327
|
-
className: `${c["network-label"]} ${c[ft(s == null ? void 0 : s.network.name)]}`,
|
|
328
|
-
children: s == null ? void 0 : s.network.name
|
|
329
|
-
}
|
|
330
|
-
),
|
|
331
|
-
/* @__PURE__ */ a(
|
|
332
|
-
oe,
|
|
333
|
-
{
|
|
334
|
-
IconComponent: ze,
|
|
335
|
-
input: /* @__PURE__ */ e(ee, { disableUnderline: !0 }),
|
|
336
|
-
sx: {
|
|
337
|
-
borderTopLeftRadius: 0,
|
|
338
|
-
"&::before": {
|
|
339
|
-
borderBottom: "none"
|
|
340
|
-
},
|
|
341
|
-
".MuiSelect-select": {
|
|
342
|
-
fontSize: "21px",
|
|
343
|
-
fontWeight: "bold",
|
|
344
|
-
color: "#16359d",
|
|
345
|
-
padding: "28px 12px 23px !important"
|
|
346
|
-
},
|
|
347
|
-
".dropdown-list-item, span": {
|
|
348
|
-
position: "relative",
|
|
349
|
-
bottom: "5px"
|
|
350
|
-
},
|
|
351
|
-
".MuiSvgIcon-root": {
|
|
352
|
-
fill: "#16359D !important"
|
|
353
|
-
}
|
|
354
|
-
},
|
|
355
|
-
className: "buy-select-dd",
|
|
356
|
-
variant: "filled",
|
|
357
|
-
value: s.symbol,
|
|
358
|
-
displayEmpty: !0,
|
|
359
|
-
onChange: (t) => Ce(t.target.value),
|
|
360
|
-
onOpen: (t) => {
|
|
361
|
-
ve(!0), t.preventDefault();
|
|
362
|
-
},
|
|
363
|
-
defaultOpen: !1,
|
|
364
|
-
open: !1,
|
|
365
|
-
children: [
|
|
366
|
-
/* @__PURE__ */ e(te, { value: "", children: "Please select" }),
|
|
367
|
-
R.map((t) => /* @__PURE__ */ a(te, { value: t.symbol, children: [
|
|
368
|
-
/* @__PURE__ */ e(Oe, { className: c["dropdown-list-item"], children: /* @__PURE__ */ e(
|
|
369
|
-
"img",
|
|
370
|
-
{
|
|
371
|
-
src: t.icon_uri,
|
|
372
|
-
onError: ({ currentTarget: n }) => {
|
|
373
|
-
n.onerror = null, n.src = Me;
|
|
374
|
-
},
|
|
375
|
-
alt: "tokenImg",
|
|
376
|
-
width: "40",
|
|
377
|
-
height: "40"
|
|
378
|
-
}
|
|
379
|
-
) }),
|
|
380
|
-
/* @__PURE__ */ e("span", { children: t.symbol })
|
|
381
|
-
] }, t.id))
|
|
382
|
-
]
|
|
383
|
-
}
|
|
384
|
-
)
|
|
385
|
-
]
|
|
386
|
-
}
|
|
387
|
-
) })
|
|
388
|
-
] }),
|
|
389
|
-
/* @__PURE__ */ e(F, { mt: 3, sx: { color: "#1A202C" }, children: /* @__PURE__ */ a(i, { container: !0, children: [
|
|
390
|
-
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 12 }, children: /* @__PURE__ */ a(
|
|
391
|
-
We,
|
|
392
|
-
{
|
|
393
|
-
sx: { padding: "0" },
|
|
394
|
-
onClick: () => Ke((t) => !t),
|
|
395
|
-
disableFocusRipple: !0,
|
|
396
|
-
disableRipple: !0,
|
|
397
|
-
children: [
|
|
398
|
-
/* @__PURE__ */ e(o, { variant: "caption", fontWeight: 700, children: "Fee Calculation" }),
|
|
399
|
-
/* @__PURE__ */ e(
|
|
400
|
-
et,
|
|
401
|
-
{
|
|
402
|
-
sx: {
|
|
403
|
-
transform: `rotate(${ye ? "90" : "0"}deg)`,
|
|
404
|
-
fontSize: "15px"
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
)
|
|
408
|
-
]
|
|
409
|
-
}
|
|
410
|
-
) }),
|
|
411
|
-
ye && /* @__PURE__ */ a(S, { children: [
|
|
412
|
-
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(o, { variant: "caption", children: "Everest Fee" }) }),
|
|
413
|
-
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(o, { variant: "caption", children: [
|
|
414
|
-
v,
|
|
415
|
-
J ? /* @__PURE__ */ e(
|
|
416
|
-
E,
|
|
417
|
-
{
|
|
418
|
-
sx: { ml: 1 },
|
|
419
|
-
size: 15,
|
|
420
|
-
color: "primary"
|
|
421
|
-
}
|
|
422
|
-
) : ue.toFixed(2)
|
|
423
|
-
] }) }),
|
|
424
|
-
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(o, { variant: "caption", children: "Network Fee" }) }),
|
|
425
|
-
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(o, { variant: "caption", children: [
|
|
426
|
-
v,
|
|
427
|
-
J ? /* @__PURE__ */ e(
|
|
428
|
-
E,
|
|
429
|
-
{
|
|
430
|
-
sx: { ml: 1 },
|
|
431
|
-
size: 15,
|
|
432
|
-
color: "primary"
|
|
433
|
-
}
|
|
434
|
-
) : fe.toFixed(2)
|
|
435
|
-
] }) })
|
|
436
|
-
] }),
|
|
437
|
-
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(o, { variant: "caption", children: "Total Fees" }) }),
|
|
438
|
-
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(o, { variant: "caption", children: [
|
|
439
|
-
v,
|
|
440
|
-
J ? /* @__PURE__ */ e(E, { sx: { ml: 1 }, size: 15, color: "primary" }) : Number($e).toFixed(2)
|
|
441
|
-
] }) }),
|
|
442
|
-
s && /* @__PURE__ */ a(S, { children: [
|
|
443
|
-
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(o, { variant: "caption", children: [
|
|
444
|
-
"1 ",
|
|
445
|
-
s.symbol,
|
|
446
|
-
" ",
|
|
447
|
-
/* @__PURE__ */ e(
|
|
448
|
-
ut,
|
|
449
|
-
{
|
|
450
|
-
title: it,
|
|
451
|
-
placement: "right",
|
|
452
|
-
children: /* @__PURE__ */ e(We, { className: "info-fee-icon", children: /* @__PURE__ */ e(
|
|
453
|
-
rt,
|
|
454
|
-
{
|
|
455
|
-
sx: {
|
|
456
|
-
fontSize: "14px"
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
) })
|
|
460
|
-
}
|
|
461
|
-
)
|
|
462
|
-
] }) }),
|
|
463
|
-
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(o, { variant: "caption", children: [
|
|
464
|
-
v,
|
|
465
|
-
J ? /* @__PURE__ */ e(
|
|
466
|
-
E,
|
|
467
|
-
{
|
|
468
|
-
sx: { ml: 1 },
|
|
469
|
-
size: 15,
|
|
470
|
-
color: "primary"
|
|
471
|
-
}
|
|
472
|
-
) : Number(Te).toFixed(2)
|
|
473
|
-
] }) })
|
|
474
|
-
] })
|
|
475
|
-
] }) }),
|
|
476
|
-
/* @__PURE__ */ e(F, { sx: { alignItems: "left", width: "100%" }, children: q || pe ? /* @__PURE__ */ e(F, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(E, {}) }) : /* @__PURE__ */ e(S, { children: /* @__PURE__ */ a(G, { variant: "filled", fullWidth: !0, children: [
|
|
477
|
-
!b && /* @__PURE__ */ e(we, { children: "Select wallet address" }),
|
|
478
|
-
/* @__PURE__ */ e(
|
|
479
|
-
oe,
|
|
480
|
-
{
|
|
481
|
-
value: b,
|
|
482
|
-
onChange: (t) => z && z(t.target.value),
|
|
483
|
-
children: Ye.map((t, n) => /* @__PURE__ */ e(te, { value: t.address, children: t.name + "(" + t.address + ")" }, n))
|
|
484
|
-
}
|
|
485
|
-
)
|
|
486
|
-
] }) }) }),
|
|
487
|
-
/* @__PURE__ */ e(F, { mt: 4, children: /* @__PURE__ */ e(
|
|
488
|
-
de,
|
|
489
|
-
{
|
|
490
|
-
onClick: Je,
|
|
491
|
-
disabled: se || !Q,
|
|
492
|
-
fullWidth: !0,
|
|
493
|
-
children: /* @__PURE__ */ e("strong", { children: "Next" })
|
|
494
|
-
}
|
|
495
|
-
) }),
|
|
496
|
-
/* @__PURE__ */ e(
|
|
497
|
-
Ft,
|
|
498
|
-
{
|
|
499
|
-
open: Ve,
|
|
500
|
-
setModal: ve,
|
|
501
|
-
loader: X,
|
|
502
|
-
tokenList: R,
|
|
503
|
-
tokenSelect: Ce
|
|
504
|
-
}
|
|
505
|
-
)
|
|
506
|
-
] });
|
|
507
|
-
}, Rt = ({
|
|
508
|
-
setScreen: A,
|
|
509
|
-
partnerKey: y,
|
|
510
|
-
orderData: M,
|
|
511
|
-
dispatch: N,
|
|
512
|
-
walletAddress: m
|
|
513
|
-
}) => {
|
|
514
|
-
const r = M.estimate[P], f = M.create.order_id, $ = M.loader, b = r.fiat_amount, z = ke(r.fiat_currency), [s, I] = d(!1);
|
|
515
|
-
g(() => {
|
|
516
|
-
f && s && A(St);
|
|
517
|
-
}, [f]), g(() => {
|
|
518
|
-
p();
|
|
519
|
-
}, []);
|
|
520
|
-
const p = () => {
|
|
521
|
-
N(
|
|
522
|
-
Be(
|
|
523
|
-
{
|
|
524
|
-
apiKey: y,
|
|
525
|
-
transaction_type: r.transaction_type,
|
|
526
|
-
coin_amount: r.fiat_amount,
|
|
527
|
-
exchange: r.exchange,
|
|
528
|
-
payment_type: r.payment_type,
|
|
529
|
-
fiat_ccy: r.fiat_currency,
|
|
530
|
-
crypto_ccy: r.crypto_currency,
|
|
531
|
-
network: r.network,
|
|
532
|
-
payment_provider: r.payment_provider
|
|
533
|
-
},
|
|
534
|
-
P
|
|
535
|
-
)
|
|
536
|
-
);
|
|
537
|
-
}, w = () => {
|
|
538
|
-
N(
|
|
539
|
-
mt({
|
|
540
|
-
apiKey: y,
|
|
541
|
-
quoteId: r.quote_id,
|
|
542
|
-
walletAddress: m
|
|
543
|
-
})
|
|
544
|
-
), I(!0);
|
|
545
|
-
};
|
|
546
|
-
return /* @__PURE__ */ a(S, { children: [
|
|
547
|
-
/* @__PURE__ */ e(
|
|
548
|
-
ht,
|
|
549
|
-
{
|
|
550
|
-
onClickHandler: () => A(Le),
|
|
551
|
-
backBtnText: "Confirm Your Order"
|
|
552
|
-
}
|
|
553
|
-
),
|
|
554
|
-
/* @__PURE__ */ e(o, { mt: 2, variant: "sm", fontWeight: 600, children: "Using payment method" }),
|
|
555
|
-
r.payment_type && /* @__PURE__ */ a(F, { mt: 2, className: c["confirm-payment"], children: [
|
|
556
|
-
/* @__PURE__ */ e(
|
|
557
|
-
"img",
|
|
558
|
-
{
|
|
559
|
-
src: r.payment_type === Se ? at : st,
|
|
560
|
-
width: 100,
|
|
561
|
-
alt: "payment"
|
|
562
|
-
}
|
|
563
|
-
),
|
|
564
|
-
/* @__PURE__ */ e(o, { variant: "caption", component: "span", children: /* @__PURE__ */ e("strong", { children: r.payment_type === Se ? "Bank Account" : "Debit Card" }) })
|
|
565
|
-
] }),
|
|
566
|
-
/* @__PURE__ */ e(o, { mt: 4, variant: "sm", fontWeight: 600, children: "To Wallet Address" }),
|
|
567
|
-
/* @__PURE__ */ e(
|
|
568
|
-
F,
|
|
569
|
-
{
|
|
570
|
-
mt: 2,
|
|
571
|
-
className: c["confirm-payment"],
|
|
572
|
-
sx: { width: "100% !important" },
|
|
573
|
-
children: /* @__PURE__ */ e(o, { variant: "caption", component: "p", children: /* @__PURE__ */ e("strong", { children: m }) })
|
|
574
|
-
}
|
|
575
|
-
),
|
|
576
|
-
/* @__PURE__ */ e(o, { mt: 3, variant: "sm", fontWeight: 600, component: "p", children: "Order Estimate Details" }),
|
|
577
|
-
/* @__PURE__ */ e(F, { sx: { color: "#A6A6A6" }, children: /* @__PURE__ */ a(i, { container: !0, children: [
|
|
578
|
-
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(o, { variant: "caption", children: [
|
|
579
|
-
r.crypto_currency.toUpperCase(),
|
|
580
|
-
" @",
|
|
581
|
-
" ",
|
|
582
|
-
Number(r.conversion_price).toFixed(2),
|
|
583
|
-
" ",
|
|
584
|
-
r.fiat_currency
|
|
585
|
-
] }) }),
|
|
586
|
-
/* @__PURE__ */ e(i, { className: "flex-right", size: { xs: 6 }, children: /* @__PURE__ */ e(
|
|
587
|
-
"span",
|
|
588
|
-
{
|
|
589
|
-
className: c["confirm-transaction-network"],
|
|
590
|
-
style: {
|
|
591
|
-
backgroundColor: r.network === "Ethereum" ? "#A1A9DC" : "#5D8CCC"
|
|
592
|
-
},
|
|
593
|
-
children: r.network
|
|
594
|
-
}
|
|
595
|
-
) }),
|
|
596
|
-
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(o, { variant: "caption", children: [
|
|
597
|
-
Number(r.crypto_out_amount).toFixed(5),
|
|
598
|
-
" ",
|
|
599
|
-
r.crypto_currency.toUpperCase()
|
|
600
|
-
] }) }),
|
|
601
|
-
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(o, { variant: "caption", children: [
|
|
602
|
-
(Number(b) - Number(r.total_fee)).toFixed(2),
|
|
603
|
-
" ",
|
|
604
|
-
r.fiat_currency
|
|
605
|
-
] }) }),
|
|
606
|
-
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(o, { variant: "caption", children: "Total Fees" }) }),
|
|
607
|
-
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(o, { variant: "caption", children: [
|
|
608
|
-
Number(r.total_fee).toFixed(2),
|
|
609
|
-
" ",
|
|
610
|
-
r.fiat_currency
|
|
611
|
-
] }) }),
|
|
612
|
-
/* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(o, { variant: "caption", children: /* @__PURE__ */ e("strong", { children: "Order Total" }) }) }),
|
|
613
|
-
/* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ e(o, { variant: "caption", children: /* @__PURE__ */ a("strong", { children: [
|
|
614
|
-
z,
|
|
615
|
-
Number(b).toFixed(2),
|
|
616
|
-
" ",
|
|
617
|
-
r.fiat_currency
|
|
618
|
-
] }) }) })
|
|
619
|
-
] }) }),
|
|
620
|
-
/* @__PURE__ */ e(F, { mt: 4, children: /* @__PURE__ */ e(
|
|
621
|
-
de,
|
|
622
|
-
{
|
|
623
|
-
onClick: w,
|
|
624
|
-
disabled: $,
|
|
625
|
-
fullWidth: !0,
|
|
626
|
-
children: /* @__PURE__ */ e("strong", { children: $ ? /* @__PURE__ */ a(S, { children: [
|
|
627
|
-
/* @__PURE__ */ e(E, { size: 15, color: "inherit" }),
|
|
628
|
-
" Processing..."
|
|
629
|
-
] }) : "Payment Details" })
|
|
630
|
-
}
|
|
631
|
-
) })
|
|
632
|
-
] });
|
|
633
|
-
}, Le = "FORM_SCREEN", me = "CONFIRM_SCREEN", St = "PAYMENT_SCREEN", Pt = "MINIMAL_KYC_SCREEN", zt = ({ partnerKey: A, baseUrl: y, checkoutSdkKey: M }) => {
|
|
634
|
-
const { showAlertMessage: N } = Nt(), m = yt(), r = T((u) => u.order), f = r.error, b = T(
|
|
635
|
-
(u) => u.user.profile
|
|
636
|
-
).everWalletAddress, z = T((u) => u.fiatAssets), s = T(
|
|
637
|
-
(u) => u.cryptoAssets
|
|
638
|
-
), [I, p] = d(Le), [w, h] = d({
|
|
639
|
-
symbol: ""
|
|
640
|
-
}), [re, V] = d(0), [ne, ie] = d(1), [ae, Y] = d([]), [q, H] = d(b);
|
|
641
|
-
return g(() => {
|
|
642
|
-
f && N({ message: f });
|
|
643
|
-
}, [f]), g(() => {
|
|
644
|
-
r.initMinimalKyc && (N({ message: f, type: "info" }), p(Pt));
|
|
645
|
-
}, [r.initMinimalKyc]), g(() => (m(tt()), m(Pe(ce)), m(Pe(le)), m(_t()), m(gt()), () => {
|
|
646
|
-
m(dt());
|
|
647
|
-
}), []), /* @__PURE__ */ e(bt, { addPadding: !0, children: {
|
|
648
|
-
FORM_SCREEN: /* @__PURE__ */ e(
|
|
649
|
-
Mt,
|
|
650
|
-
{
|
|
651
|
-
showAlertMessage: N,
|
|
652
|
-
setScreen: p,
|
|
653
|
-
fiatAssets: z,
|
|
654
|
-
cryptoAssets: s,
|
|
655
|
-
orderData: r,
|
|
656
|
-
dispatch: m,
|
|
657
|
-
getCryptoAssets: (u) => {
|
|
658
|
-
m(
|
|
659
|
-
xt({
|
|
660
|
-
type: P,
|
|
661
|
-
id: u,
|
|
662
|
-
partnerKey: A,
|
|
663
|
-
walletAddress: q
|
|
664
|
-
})
|
|
665
|
-
);
|
|
666
|
-
},
|
|
667
|
-
partnerKey: A,
|
|
668
|
-
walletAddress: q,
|
|
669
|
-
setWalletAddress: H,
|
|
670
|
-
outputToken: w,
|
|
671
|
-
setOutputToken: h,
|
|
672
|
-
paymentId: re,
|
|
673
|
-
setPaymentId: V,
|
|
674
|
-
currencyId: ne,
|
|
675
|
-
setCurrencyId: ie,
|
|
676
|
-
paymentOptions: ae,
|
|
677
|
-
setPaymentOptions: Y
|
|
678
|
-
}
|
|
679
|
-
),
|
|
680
|
-
CONFIRM_SCREEN: /* @__PURE__ */ e(
|
|
681
|
-
Rt,
|
|
682
|
-
{
|
|
683
|
-
partnerKey: A,
|
|
684
|
-
setScreen: p,
|
|
685
|
-
showAlertMessage: N,
|
|
686
|
-
orderData: r,
|
|
687
|
-
dispatch: m,
|
|
688
|
-
walletAddress: q
|
|
689
|
-
}
|
|
690
|
-
),
|
|
691
|
-
PAYMENT_SCREEN: /* @__PURE__ */ e(
|
|
692
|
-
vt,
|
|
693
|
-
{
|
|
694
|
-
checkoutKey: M,
|
|
695
|
-
orderData: r,
|
|
696
|
-
initPaymentRequest: (u) => {
|
|
697
|
-
const R = r.estimate[P], O = r.create.order_id, X = {
|
|
698
|
-
token: u,
|
|
699
|
-
amount: Number(R.fiat_amount),
|
|
700
|
-
currency: R.fiat_currency,
|
|
701
|
-
reference: O,
|
|
702
|
-
success_url: `${y}/dashboard?payment=success`,
|
|
703
|
-
fail_url: `${y}/dashboard?payment=failed`
|
|
704
|
-
};
|
|
705
|
-
m(pt(X));
|
|
706
|
-
},
|
|
707
|
-
backBtnFunc: () => p(me)
|
|
708
|
-
}
|
|
709
|
-
),
|
|
710
|
-
MINIMAL_KYC_SCREEN: /* @__PURE__ */ e(
|
|
711
|
-
Ct,
|
|
712
|
-
{
|
|
713
|
-
inputComponent: Et,
|
|
714
|
-
buttonComponent: de,
|
|
715
|
-
onComplete: () => {
|
|
716
|
-
p(me);
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
)
|
|
720
|
-
}[I] });
|
|
721
|
-
}, hr = Ze(zt);
|
|
722
|
-
export {
|
|
723
|
-
Mt as B,
|
|
724
|
-
me as C,
|
|
725
|
-
Le as F,
|
|
726
|
-
Pt as M,
|
|
727
|
-
St as P,
|
|
728
|
-
Rt as a,
|
|
729
|
-
hr as i
|
|
730
|
-
};
|