everest-npm-features 0.0.1
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/README.md +3 -0
- package/dist/ArrowRight-C6tjImpU.js +300 -0
- package/dist/Box-wAem3MQD.js +58 -0
- package/dist/Button-fWdSk-yh.js +451 -0
- package/dist/ButtonBase-SYP7klDp.js +876 -0
- package/dist/CircularProgress-DcXA6nAu.js +249 -0
- package/dist/Close-CdRA3xUs.js +75 -0
- package/dist/Container-CIMHcpEe.js +181 -0
- package/dist/ContentCopy-CexUUXuC.js +8 -0
- package/dist/DefaultPropsProvider-Y8MI-J-I.js +555 -0
- package/dist/DialogContent-JgT9A6nk.js +501 -0
- package/dist/FormControl-D4QuPCnV.js +249 -0
- package/dist/GlobalStyles-BOnEiMUE.js +23 -0
- package/dist/Grid-dtT_MVn3.js +501 -0
- package/dist/Grow-B3Swdn2Z.js +215 -0
- package/dist/IconButton-CRGy76pJ.js +237 -0
- package/dist/Modal-0q_y4zbS.js +1170 -0
- package/dist/Select-BNAaKK32.js +4046 -0
- package/dist/Slide-BlS6unRJ.js +229 -0
- package/dist/TextField-CPZo0_di.js +963 -0
- package/dist/TransitionGroupContext-VwpFXTPO.js +43 -0
- package/dist/Typography-kyxogyUq.js +256 -0
- package/dist/__vite-browser-external-DYxpcVy9-DYxpcVy9.js +4 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/assets/documents.css +1 -0
- package/dist/assets/index.css +1 -0
- package/dist/assets/index2.css +1 -0
- package/dist/assets/keyboard.css +1 -0
- package/dist/assets/styles.css +1 -0
- package/dist/assets/styles2.css +1 -0
- package/dist/assets/tokenRow.css +1 -0
- package/dist/assets/withThemeProvider.css +1 -0
- package/dist/auth-Cj5FKr_m.js +19 -0
- package/dist/axios-xPiQW9EP.js +118114 -0
- package/dist/components/Profile/documents.d.ts +6 -0
- package/dist/components/Profile/documents.js +24 -0
- package/dist/components/Profile/index.d.ts +6 -0
- package/dist/components/Profile/index.js +592 -0
- package/dist/components/Receive/index.d.ts +2 -0
- package/dist/components/Receive/index.js +75 -0
- package/dist/components/Send/index.d.ts +6 -0
- package/dist/components/Send/index.js +387 -0
- package/dist/components/Shared/Keyboard/index.d.ts +1 -0
- package/dist/components/Shared/Keyboard/index.js +4 -0
- package/dist/components/Shared/Keyboard/keyboard.d.ts +8 -0
- package/dist/components/Shared/Keyboard/keyboard.js +152 -0
- package/dist/components/Shared/button.d.ts +11 -0
- package/dist/components/Shared/button.js +64 -0
- package/dist/components/Shared/incode.d.ts +20 -0
- package/dist/components/Shared/incode.js +202 -0
- package/dist/components/Shared/inputField.d.ts +7 -0
- package/dist/components/Shared/inputField.js +48 -0
- package/dist/components/Shared/pin.d.ts +9 -0
- package/dist/components/Shared/pin.js +96 -0
- package/dist/components/Shared/step.d.ts +8 -0
- package/dist/components/Shared/step.js +48 -0
- package/dist/components/Shared/transition.d.ts +7 -0
- package/dist/components/Shared/transition.js +11 -0
- package/dist/components/SignIn/index.d.ts +4 -0
- package/dist/components/SignIn/index.js +266 -0
- package/dist/components/SignIn/types.d.ts +7 -0
- package/dist/components/SignIn/types.js +1 -0
- package/dist/components/SignUp/biometric.d.ts +3 -0
- package/dist/components/SignUp/biometric.js +77 -0
- package/dist/components/SignUp/index.d.ts +3 -0
- package/dist/components/SignUp/index.js +393 -0
- package/dist/components/SignUp/pin.d.ts +3 -0
- package/dist/components/SignUp/pin.js +950 -0
- package/dist/components/SignUp/privacy.d.ts +2 -0
- package/dist/components/SignUp/privacy.js +259 -0
- package/dist/components/SignUp/terms.d.ts +2 -0
- package/dist/components/SignUp/terms.js +524 -0
- package/dist/components/SignUp/types.d.ts +54 -0
- package/dist/components/SignUp/types.js +1 -0
- package/dist/components/SignUp/userInfo.d.ts +3 -0
- package/dist/components/SignUp/userInfo.js +47 -0
- package/dist/components/WalletPortfolio/index.d.ts +3 -0
- package/dist/components/WalletPortfolio/index.js +557 -0
- package/dist/components/WalletPortfolio/tokenRow.d.ts +17 -0
- package/dist/components/WalletPortfolio/tokenRow.js +11 -0
- package/dist/components/WalletPortfolio/types.d.ts +10 -0
- package/dist/components/WalletPortfolio/types.js +1 -0
- package/dist/createSimplePaletteValueFilter-CsgjlRAs.js +659 -0
- package/dist/createSvgIcon-CAZr4ukt.js +249 -0
- package/dist/createTheme-NrBCWesw.js +3386 -0
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/defaultTheme-OIfL8Ia7.js +5 -0
- package/dist/dialog-success-BDNJV4Tk.js +4 -0
- package/dist/dividerClasses-Z7VLlu5C.js +10 -0
- package/dist/documents-CL4Ajr_B.js +569 -0
- package/dist/exactProp-C1Lmtwf_.js +13 -0
- package/dist/extendSxProp-CuERe1TA.js +37 -0
- package/dist/hoc/withThemeProvider.d.ts +6 -0
- package/dist/hoc/withThemeProvider.js +635 -0
- package/dist/hooks/useDialog/index.d.ts +5 -0
- package/dist/hooks/useDialog/index.js +78 -0
- package/dist/hooks/useDialog/types.d.ts +14 -0
- package/dist/hooks/useDialog/types.js +1 -0
- package/dist/hooks/useSnackBar.d.ts +14 -0
- package/dist/hooks/useSnackBar.js +968 -0
- package/dist/index-CAoLi5Qq.js +827 -0
- package/dist/index-Cq3eHOnB.js +22 -0
- package/dist/index-DKTkUdik.js +6 -0
- package/dist/index-iAyNk1r6.js +72 -0
- package/dist/main.d.ts +7 -0
- package/dist/main.js +16 -0
- package/dist/pin-empty-D9665KFr.js +6 -0
- package/dist/react-redux-VW99uJjf.js +5908 -0
- package/dist/react-webcam-Cov1TP0q.js +639 -0
- package/dist/styled-Da6GnxEE.js +5 -0
- package/dist/styles.module-Ctfaq7f2.js +10 -0
- package/dist/styles.module-KeND8lCR.js +9 -0
- package/dist/tokenRow-Cdd_jFjp.js +206 -0
- package/dist/useFormControl-Bo6Tf_xo.js +46 -0
- package/dist/useSlot-CURNJ3JC.js +306 -0
- package/dist/useTheme-DWRMvRU8.js +9 -0
- package/dist/useTheme-nlj1B_-c.js +11 -0
- package/dist/useThemeProps-BqWuFW3z.js +40 -0
- package/dist/useThemeWithoutDefault-BdYkMk0o.js +12 -0
- package/dist/useTimeout-lr7ryrda.js +75 -0
- package/dist/util/constants.d.ts +20 -0
- package/dist/util/constants.js +23 -0
- package/dist/util/conversions.d.ts +9 -0
- package/dist/util/conversions.js +22284 -0
- package/dist/util/functions.d.ts +15 -0
- package/dist/util/functions.js +94 -0
- package/dist/utils-_FXWkn40.js +19473 -0
- package/dist/wallet-DN7ej6mj.js +273 -0
- package/package.json +59 -0
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
import { jsxs as oe, Fragment as se, jsx as h } from "react/jsx-runtime";
|
|
2
|
+
import { useState as w, useEffect as B } from "react";
|
|
3
|
+
import ne from "../Shared/step.js";
|
|
4
|
+
import ie from "./biometric.js";
|
|
5
|
+
import { useDialog as ae } from "../../hooks/useDialog/index.js";
|
|
6
|
+
import ce from "./userInfo.js";
|
|
7
|
+
import ue from "./pin.js";
|
|
8
|
+
import { useSnackBar as de } from "../../hooks/useSnackBar.js";
|
|
9
|
+
import { _ as A, u as pe, a as le } from "../../react-redux-VW99uJjf.js";
|
|
10
|
+
import { D as fe } from "../../dialog-success-BDNJV4Tk.js";
|
|
11
|
+
import he from "../../hoc/withThemeProvider.js";
|
|
12
|
+
import { r as we } from "../../auth-Cj5FKr_m.js";
|
|
13
|
+
import { B as ge } from "../../Box-wAem3MQD.js";
|
|
14
|
+
const me = (e) => ({
|
|
15
|
+
get: (o, i, a) => A(o, "GET", i, a, e),
|
|
16
|
+
post: (o, i, a) => A(o, "POST", i, a, e),
|
|
17
|
+
put: (o, i, a) => A(o, "PUT", i, a, e),
|
|
18
|
+
delete: (o, i, a) => A(o, "DELETE", i, a, e)
|
|
19
|
+
}), ye = (e) => ({
|
|
20
|
+
get: async (i) => {
|
|
21
|
+
let a = "";
|
|
22
|
+
i && (a = "?network=" + i);
|
|
23
|
+
try {
|
|
24
|
+
return await e.get(`/v3/payment/assets/crypto${a}`);
|
|
25
|
+
} catch (s) {
|
|
26
|
+
throw s;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}), ke = (e) => ({
|
|
30
|
+
get: async () => {
|
|
31
|
+
if (!e.token || !e.uuid)
|
|
32
|
+
throw new Error("Authorization token & uuid is required for this request.");
|
|
33
|
+
try {
|
|
34
|
+
return await e.get(`/v1/mobile/everid/${e.uuid}/listDocument`, null, {
|
|
35
|
+
headers: { token: "Bearer " + e.token }
|
|
36
|
+
});
|
|
37
|
+
} catch (n) {
|
|
38
|
+
throw n;
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
preview: async (n) => {
|
|
42
|
+
if (!e.token || !e.uuid)
|
|
43
|
+
throw new Error("Authorization token & uuid is required for this request.");
|
|
44
|
+
try {
|
|
45
|
+
return await e.get(`/v1/mobile/everid/${e.uuid}/getDocument/${n}`, null, {
|
|
46
|
+
headers: { token: "Bearer " + e.token }
|
|
47
|
+
});
|
|
48
|
+
} catch (u) {
|
|
49
|
+
throw u;
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
previewIdentity: async (n) => {
|
|
53
|
+
if (!e.token || !e.uuid)
|
|
54
|
+
throw new Error("Authorization token & uuid is required for this request.");
|
|
55
|
+
try {
|
|
56
|
+
return await e.get(`/v3/mobile/everid/${e.uuid}/kyc/document/${n}`, null, {
|
|
57
|
+
headers: { token: "Bearer " + e.token }
|
|
58
|
+
});
|
|
59
|
+
} catch (u) {
|
|
60
|
+
throw u;
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
remove: async (n) => {
|
|
64
|
+
if (!e.token || !e.uuid)
|
|
65
|
+
throw new Error("Authorization token & uuid is required for this request.");
|
|
66
|
+
try {
|
|
67
|
+
return await e.delete(`/v1/mobile/everid/${e.uuid}/deleteDocument/${n}`, null, {
|
|
68
|
+
headers: { token: "Bearer " + e.token }
|
|
69
|
+
});
|
|
70
|
+
} catch (u) {
|
|
71
|
+
throw u;
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
upload: async (n) => {
|
|
75
|
+
if (!e.token || !e.uuid)
|
|
76
|
+
throw new Error("Authorization token & uuid is required for this request.");
|
|
77
|
+
try {
|
|
78
|
+
return await e.post(`/v1/mobile/everid/${e.uuid}/uploadDocument`, n, {
|
|
79
|
+
headers: { token: "Bearer " + e.token }
|
|
80
|
+
});
|
|
81
|
+
} catch (u) {
|
|
82
|
+
throw u;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}), Ce = (e) => ({
|
|
86
|
+
get: async () => {
|
|
87
|
+
try {
|
|
88
|
+
return await e.get("/v3/mobile/everid/networks");
|
|
89
|
+
} catch (i) {
|
|
90
|
+
throw i;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}), ve = (e) => ({
|
|
94
|
+
suggestGas: async (s) => {
|
|
95
|
+
if (!e.token)
|
|
96
|
+
throw new Error("Authorization token is required for this request.");
|
|
97
|
+
try {
|
|
98
|
+
return await e.post("/v3/mobile/everid/sendERC20/suggestAllChainGas", s, {
|
|
99
|
+
headers: { token: "Bearer " + e.token }
|
|
100
|
+
});
|
|
101
|
+
} catch (c) {
|
|
102
|
+
throw c;
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
sendNativeToken: async (s) => {
|
|
106
|
+
if (!e.token || !e.uuid)
|
|
107
|
+
throw new Error("Authorization token & uuid is required for this request.");
|
|
108
|
+
const c = {
|
|
109
|
+
token: "Bearer " + e.token,
|
|
110
|
+
"X-Credential-Pin": s.pin
|
|
111
|
+
};
|
|
112
|
+
try {
|
|
113
|
+
return await e.post(`/v3/mobile/everid/${e.uuid}/transferNativeCurrency`, s.payload, {
|
|
114
|
+
headers: c
|
|
115
|
+
});
|
|
116
|
+
} catch (n) {
|
|
117
|
+
throw n;
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
sendToken: async (s) => {
|
|
121
|
+
if (!e.token || !e.uuid)
|
|
122
|
+
throw new Error("Authorization token & uuid is required for this request.");
|
|
123
|
+
const c = {
|
|
124
|
+
token: "Bearer " + e.token,
|
|
125
|
+
"X-Credential-Pin": s.pin
|
|
126
|
+
};
|
|
127
|
+
try {
|
|
128
|
+
return await e.post(`/v3/mobile/everid/${e.uuid}/sendERC20/sendAllChainToken`, s.payload, {
|
|
129
|
+
headers: c
|
|
130
|
+
});
|
|
131
|
+
} catch (n) {
|
|
132
|
+
throw n;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}), Se = (e) => ({
|
|
136
|
+
login: async (r) => {
|
|
137
|
+
const t = {};
|
|
138
|
+
r.pin !== "" && (t["X-Credential-Pin"] = r.pin), r.twoFaCode ? t["X-Credential-TwoFACode"] = r.twoFaCode : r.twoFaCodeSkip && (t["X-Credential-TwoFASkip"] = r.twoFaCodeSkip);
|
|
139
|
+
try {
|
|
140
|
+
return await e.post("/v3/auth/login", r.payload, {
|
|
141
|
+
headers: t
|
|
142
|
+
});
|
|
143
|
+
} catch (g) {
|
|
144
|
+
throw g;
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
create: async (r) => {
|
|
148
|
+
try {
|
|
149
|
+
return await e.post("/v3/auth/signup", r);
|
|
150
|
+
} catch (t) {
|
|
151
|
+
throw t;
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
getReferralCode: async (r) => {
|
|
155
|
+
try {
|
|
156
|
+
return await e.post("/v3/referral", null, {
|
|
157
|
+
headers: { token: "Bearer " + r }
|
|
158
|
+
});
|
|
159
|
+
} catch (t) {
|
|
160
|
+
throw t;
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
getReferralCount: async (r) => {
|
|
164
|
+
try {
|
|
165
|
+
return await e.get("/v3/referral/refcount", null, {
|
|
166
|
+
headers: { token: "Bearer " + r }
|
|
167
|
+
});
|
|
168
|
+
} catch (t) {
|
|
169
|
+
throw t;
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
twitterInfo: async (r) => {
|
|
173
|
+
try {
|
|
174
|
+
return await e.get(`/v3/social/Twitter/users/${r.uuid}`, null, {
|
|
175
|
+
headers: { token: "Bearer " + r.token }
|
|
176
|
+
});
|
|
177
|
+
} catch (t) {
|
|
178
|
+
throw t;
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
reSendSms: async (r) => {
|
|
182
|
+
try {
|
|
183
|
+
return await e.post(`/v3/mobile/sms/${r}/re-send`);
|
|
184
|
+
} catch (t) {
|
|
185
|
+
throw t;
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
getData: async (r) => {
|
|
189
|
+
try {
|
|
190
|
+
return await e.get(`/v3/mobile/everid/${r.uuid}/getProfile`, null, {
|
|
191
|
+
headers: { token: "Bearer " + r.token }
|
|
192
|
+
});
|
|
193
|
+
} catch (t) {
|
|
194
|
+
throw t;
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
twitterUpdate: async (r) => {
|
|
198
|
+
if (!e.token || !e.uuid)
|
|
199
|
+
throw new Error("Authorization token & uuid is required for this request.");
|
|
200
|
+
try {
|
|
201
|
+
return await e.put(`/v3/social/Twitter/users/${e.uuid}`, r, {
|
|
202
|
+
headers: { token: "Bearer " + e.token }
|
|
203
|
+
});
|
|
204
|
+
} catch (t) {
|
|
205
|
+
throw t;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}), _e = (e) => ({
|
|
209
|
+
get: async (s) => {
|
|
210
|
+
try {
|
|
211
|
+
return await e.get(`/v3/mobile/everid/${s.uuid}/wallets`, null, {
|
|
212
|
+
headers: { token: "Bearer " + s.token }
|
|
213
|
+
});
|
|
214
|
+
} catch (c) {
|
|
215
|
+
throw c;
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
getAssociated: async (s) => {
|
|
219
|
+
try {
|
|
220
|
+
return await e.get(`/v3/mobile/everid/${s.uuid}/wallets/associated`, null, {
|
|
221
|
+
headers: { token: "Bearer " + s.token }
|
|
222
|
+
});
|
|
223
|
+
} catch (c) {
|
|
224
|
+
throw c;
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
getTokens: async (s, c, n) => {
|
|
228
|
+
let u = "";
|
|
229
|
+
n && (u = "?provider=" + n);
|
|
230
|
+
try {
|
|
231
|
+
return await e.get(`/v3/mobile/everid/crypto-assets/wallet/${c}${u}`, null, {
|
|
232
|
+
headers: { token: "Bearer " + s.token }
|
|
233
|
+
});
|
|
234
|
+
} catch (l) {
|
|
235
|
+
throw l;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}), Be = (e) => {
|
|
239
|
+
const o = me(e);
|
|
240
|
+
return {
|
|
241
|
+
setCredentials: (i, a) => {
|
|
242
|
+
o.token = i, o.uuid = a;
|
|
243
|
+
},
|
|
244
|
+
User: Se(o),
|
|
245
|
+
Wallet: _e(o),
|
|
246
|
+
CryptoAssets: ye(o),
|
|
247
|
+
Document: ke(o),
|
|
248
|
+
Network: Ce(o),
|
|
249
|
+
Send: ve(o)
|
|
250
|
+
};
|
|
251
|
+
}, Ae = "data:image/svg+xml,%3csvg%20width='204'%20height='213'%20viewBox='0%200%20204%20213'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23filter0_d_10382_12993)'%3e%3cellipse%20cx='101.67'%20cy='110.622'%20rx='89.6702'%20ry='89.6938'%20fill='url(%23paint0_linear_10382_12993)'/%3e%3c/g%3e%3cg%20filter='url(%23filter1_d_10382_12993)'%3e%3cpath%20d='M101.684%207.60793e-06C98.7759%20-0.00246695%2095.8987%200.598741%2093.2368%201.76522C90.5748%202.9317%2088.1866%204.63781%2086.2247%206.77458C84.2628%208.91135%2082.7703%2011.4318%2081.8425%2014.1749C80.9148%2016.9181%2080.5722%2019.8236%2080.8366%2022.706L89.1987%20114.031C89.5229%20117.102%2090.9781%20119.944%2093.2837%20122.01C95.5893%20124.076%2098.582%20125.219%20101.684%20125.219C104.787%20125.219%20107.78%20124.076%20110.085%20122.01C112.391%20119.944%20113.846%20117.102%20114.17%20114.031L122.509%2022.706C122.774%2019.8255%20122.432%2016.9219%20121.505%2014.1803C120.579%2011.4388%20119.089%208.91941%20117.129%206.78299C115.17%204.64657%20112.784%202.94%20110.125%201.77212C107.466%200.604244%20104.591%200.000702809%20101.684%207.60793e-06ZM101.684%20182.377C106.545%20182.377%20111.207%20180.456%20114.644%20177.036C118.081%20173.615%20120.012%20168.977%20120.012%20164.14C120.012%20159.303%20118.081%20154.664%20114.644%20151.244C111.207%20147.823%20106.545%20145.902%20101.684%20145.902C96.8237%20145.902%2092.1619%20147.823%2088.7248%20151.244C85.2876%20154.664%2083.3567%20159.303%2083.3567%20164.14C83.3567%20168.977%2085.2876%20173.615%2088.7248%20177.036C92.1619%20180.456%2096.8237%20182.377%20101.684%20182.377Z'%20fill='url(%23paint1_linear_10382_12993)'%20shape-rendering='crispEdges'/%3e%3cpath%20d='M101.684%200.250008L101.684%200.250008C104.557%200.250695%20107.397%200.847061%20110.025%202.00102C112.652%203.15498%20115.009%204.84117%20116.945%206.95197C118.881%209.06278%20120.353%2011.5518%20121.269%2014.2604C122.184%2016.9689%20122.522%2019.8375%20122.261%2022.6831L122.261%2022.6832L113.922%20114.005C113.922%20114.006%20113.922%20114.006%20113.922%20114.007C113.604%20117.015%20112.178%20119.799%20109.918%20121.824C107.659%20123.848%20104.726%20124.969%20101.684%20124.969C98.6434%20124.969%2095.7102%20123.848%2093.4505%20121.824C91.1914%20119.799%2089.7655%20117.015%2089.4475%20114.007C89.4474%20114.006%2089.4474%20114.006%2089.4473%20114.005L81.0856%2022.6832L81.0856%2022.6831C80.8243%2019.8356%2081.1628%2016.9651%2082.0794%2014.255C82.9959%2011.545%2084.4705%209.05481%2086.4088%206.94366C88.3472%204.83251%2090.7069%203.14677%2093.3371%201.9942C95.9673%200.841624%2098.8102%200.247562%20101.684%200.250008ZM114.468%20176.858C111.078%20180.232%20106.479%20182.127%20101.684%20182.127C96.8896%20182.127%2092.2913%20180.232%2088.9011%20176.858C85.511%20173.485%2083.6067%20168.91%2083.6067%20164.14C83.6067%20159.369%2085.511%20154.794%2088.9011%20151.421C92.2913%20148.047%2096.8896%20146.152%20101.684%20146.152C106.479%20146.152%20111.078%20148.047%20114.468%20151.421C117.858%20154.794%20119.762%20159.369%20119.762%20164.14C119.762%20168.91%20117.858%20173.485%20114.468%20176.858Z'%20stroke='url(%23paint2_linear_10382_12993)'%20stroke-opacity='0.9'%20stroke-width='0.5'%20shape-rendering='crispEdges'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_10382_12993'%20x='0'%20y='8.92871'%20width='203.344'%20height='203.387'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset/%3e%3cfeGaussianBlur%20stdDeviation='6'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.25%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_10382_12993'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_10382_12993'%20result='shape'/%3e%3c/filter%3e%3cfilter%20id='filter1_d_10382_12993'%20x='79.75'%20y='0'%20width='43.8438'%20height='184.377'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='1'/%3e%3cfeGaussianBlur%20stdDeviation='0.5'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.1%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_10382_12993'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_10382_12993'%20result='shape'/%3e%3c/filter%3e%3clinearGradient%20id='paint0_linear_10382_12993'%20x1='-43.8324'%20y1='144.469'%20x2='191.353'%20y2='66.6586'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2335E0F4'/%3e%3cstop%20offset='0.0696'%20stop-color='%2333D7F0'/%3e%3cstop%20offset='0.1854'%20stop-color='%232EBDE4'/%3e%3cstop%20offset='0.333'%20stop-color='%232594D0'/%3e%3cstop%20offset='0.505'%20stop-color='%23195BB6'/%3e%3cstop%20offset='0.6164'%20stop-color='%231132A3'/%3e%3cstop%20offset='1'%20stop-color='%231132A3'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_10382_12993'%20x1='82.7266'%20y1='58.5799'%20x2='139.922'%20y2='68.6319'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2344DCB7'/%3e%3cstop%20offset='0.42045'%20stop-color='%2335E0F4'/%3e%3cstop%20offset='1'%20stop-color='%2344DCB7'%20stop-opacity='0.02'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_10382_12993'%20x1='139.37'%20y1='34.1052'%20x2='201.045'%20y2='172.276'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'/%3e%3cstop%20offset='1'%20stop-color='white'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e", xe = (e) => {
|
|
252
|
+
const {
|
|
253
|
+
apiBaseUrl: o,
|
|
254
|
+
incodeApiUrl: i,
|
|
255
|
+
incodeApiKey: a,
|
|
256
|
+
incodeOnBoardingUrl: s,
|
|
257
|
+
walletUrl: c,
|
|
258
|
+
inCodeFlowId: n,
|
|
259
|
+
organization: u,
|
|
260
|
+
connectWalletAddress: l,
|
|
261
|
+
service: r = "buySell",
|
|
262
|
+
navigate: t,
|
|
263
|
+
referralCode: g,
|
|
264
|
+
twitterFlow: U,
|
|
265
|
+
isNonMlmCampaign: D,
|
|
266
|
+
isExchangeCampaign: be,
|
|
267
|
+
isMobile: q,
|
|
268
|
+
onCreactAccount: W,
|
|
269
|
+
navigatePath: F
|
|
270
|
+
} = e, X = Be(o), Z = pe(), f = le((d) => d.session), y = f.partialRegistration, $ = f.partialRegistrationUuid, P = f.partialRegistrationToken, R = f.uuid, k = f.token, x = f.error, { showAlertMessage: m, snackBar: j } = de(), { openDialog: G, ConfirmDialog: Y } = ae(), [b, C] = w(
|
|
271
|
+
y ? "pin" : "biometric"
|
|
272
|
+
), [M, L] = w({ email: "" }), [O, E] = w(""), [z, J] = w(!1), [T, K] = w(""), [H, Q] = w(""), N = ["INF"];
|
|
273
|
+
u && N.push(u), B(() => {
|
|
274
|
+
x && (m({ message: x }), V());
|
|
275
|
+
}, [x]), B(() => {
|
|
276
|
+
if (R && k) {
|
|
277
|
+
W(O, k);
|
|
278
|
+
let d = "450px", p = fe, v = "Sign up Successful", S = "It will take a few minutes for your account to be approved.";
|
|
279
|
+
U && (S = "Your EverWallet is now ready to use. To connect your Twitter account, click the Plus Sign next to Add Twitter Account Now on the next screen.", q && (S = "Your EverWallet is now ready to use. To connect your Twitter account and share with your followers, please visit <a href='https://wallet.everest.org/r/' target='_blank'>wallet.everest.org/r/</a> from a desktop computer."));
|
|
280
|
+
let _ = "Let’s get started";
|
|
281
|
+
U && (_ = "Continue", q && (_ = "Close")), D && (d = "570px", p = Ae, v = "Welcome!", S = "Let’s look at your link page.<br /><br />This is where you send people to verify your identity claims.<br /><br />It’s designed to provide verification across services.", _ = "Next"), G({
|
|
282
|
+
icon: p,
|
|
283
|
+
title: v,
|
|
284
|
+
message: S,
|
|
285
|
+
confirmButtonText: _,
|
|
286
|
+
cancelButtonShow: !1,
|
|
287
|
+
height: d,
|
|
288
|
+
onConfirm: () => {
|
|
289
|
+
te(k);
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
}, [R, k]), B(() => {
|
|
294
|
+
y && $ && (C("pin"), E($));
|
|
295
|
+
}, [y]), B(() => {
|
|
296
|
+
T && ee();
|
|
297
|
+
}, [T]);
|
|
298
|
+
const I = {
|
|
299
|
+
orgs: N,
|
|
300
|
+
lang: "english",
|
|
301
|
+
...M
|
|
302
|
+
};
|
|
303
|
+
l && (I.metadata = {
|
|
304
|
+
associated_wallets: JSON.stringify([l])
|
|
305
|
+
});
|
|
306
|
+
const V = () => {
|
|
307
|
+
C("biometric"), L({ email: "" }), E("");
|
|
308
|
+
}, ee = () => {
|
|
309
|
+
if (!z) {
|
|
310
|
+
J(!0), I.uuid = O;
|
|
311
|
+
const d = {
|
|
312
|
+
session_id: y && P ? P : H,
|
|
313
|
+
profile: I,
|
|
314
|
+
pin: T
|
|
315
|
+
};
|
|
316
|
+
g && (d.referralCode = g), Z(we(d));
|
|
317
|
+
}
|
|
318
|
+
}, te = (d) => {
|
|
319
|
+
D && X.User.getReferralCode(d).then((p) => {
|
|
320
|
+
if (p.data.success) {
|
|
321
|
+
const v = p.data.data;
|
|
322
|
+
window.open(c + "/r1/" + v.code, "_blank");
|
|
323
|
+
} else
|
|
324
|
+
m({ message: "Something went wrong." });
|
|
325
|
+
}).catch((p) => {
|
|
326
|
+
m({ message: "Something went wrong." + p });
|
|
327
|
+
}), t(F || "/");
|
|
328
|
+
}, re = () => {
|
|
329
|
+
if (r === "identity")
|
|
330
|
+
switch (b) {
|
|
331
|
+
case "biometric":
|
|
332
|
+
return 1;
|
|
333
|
+
case "pin":
|
|
334
|
+
return 2;
|
|
335
|
+
default:
|
|
336
|
+
return 3;
|
|
337
|
+
}
|
|
338
|
+
else
|
|
339
|
+
switch (b) {
|
|
340
|
+
case "biometric":
|
|
341
|
+
return 1;
|
|
342
|
+
case "userInfo":
|
|
343
|
+
return 2;
|
|
344
|
+
case "pin":
|
|
345
|
+
return 3;
|
|
346
|
+
default:
|
|
347
|
+
return 4;
|
|
348
|
+
}
|
|
349
|
+
};
|
|
350
|
+
return /* @__PURE__ */ oe(se, { children: [
|
|
351
|
+
/* @__PURE__ */ h(ge, { sx: { textAlign: "center" }, children: /* @__PURE__ */ h(ne, { totalSteps: r === "identity" ? 2 : 3, currentStep: re() }) }),
|
|
352
|
+
j,
|
|
353
|
+
/* @__PURE__ */ h(Y, {}),
|
|
354
|
+
{
|
|
355
|
+
biometric: /* @__PURE__ */ h(
|
|
356
|
+
ie,
|
|
357
|
+
{
|
|
358
|
+
incodeApiUrl: i,
|
|
359
|
+
incodeApiKey: a,
|
|
360
|
+
incodeOnBoardingUrl: s,
|
|
361
|
+
inCodeFlowId: n,
|
|
362
|
+
setShowScreen: C,
|
|
363
|
+
setUuid: E,
|
|
364
|
+
setIncodeSessiontoken: Q,
|
|
365
|
+
service: r,
|
|
366
|
+
setConfirmDialog: G,
|
|
367
|
+
navigate: t
|
|
368
|
+
}
|
|
369
|
+
),
|
|
370
|
+
userInfo: /* @__PURE__ */ h(
|
|
371
|
+
ce,
|
|
372
|
+
{
|
|
373
|
+
setShowScreen: C,
|
|
374
|
+
userInfo: M,
|
|
375
|
+
setUserInfo: L,
|
|
376
|
+
showAlertMessage: m
|
|
377
|
+
}
|
|
378
|
+
),
|
|
379
|
+
pin: /* @__PURE__ */ h(
|
|
380
|
+
ue,
|
|
381
|
+
{
|
|
382
|
+
showAlertMessage: m,
|
|
383
|
+
setAccountPin: K,
|
|
384
|
+
loading: z
|
|
385
|
+
}
|
|
386
|
+
)
|
|
387
|
+
// twitter: <Twitter navigateTo={navigateTo} />,
|
|
388
|
+
}[b]
|
|
389
|
+
] });
|
|
390
|
+
}, ze = he(xe);
|
|
391
|
+
export {
|
|
392
|
+
ze as default
|
|
393
|
+
};
|