everest-npm-features 0.0.1 → 0.0.2
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/ArrowDropDown-DRUQbGft.js +8 -0
- package/dist/ArrowRight-t-YgAHUn.js +8 -0
- package/dist/{Box-wAem3MQD.js → Box-BOgpENcC.js} +11 -11
- package/dist/{Button-fWdSk-yh.js → Button-DXdgxFxa.js} +8 -7
- package/dist/{ButtonBase-SYP7klDp.js → ButtonBase-AOLUTpPg.js} +204 -211
- package/dist/Cancel-BMPJ8ZAg.js +11 -0
- package/dist/CardContent-DEA5pnhr.js +141 -0
- package/dist/{CircularProgress-DcXA6nAu.js → CircularProgress-BAEiXRSn.js} +31 -30
- package/dist/Close-mXCsZSxZ.js +8 -0
- package/dist/{Container-CIMHcpEe.js → Container-BOehNoF1.js} +4 -4
- package/dist/{ContentCopy-CexUUXuC.js → ContentCopy-HD_Xx6nx.js} +1 -1
- package/dist/{createSimplePaletteValueFilter-CsgjlRAs.js → DefaultPropsProvider-DmUB0SYC.js} +54 -69
- package/dist/DefaultPropsProvider-tqUom3mB.js +329 -0
- package/dist/{DialogContent-JgT9A6nk.js → DialogContent-zttWtNJM.js} +91 -90
- package/dist/{Close-CdRA3xUs.js → DialogTitle-BqL8DXBp.js} +16 -21
- package/dist/{ArrowRight-C6tjImpU.js → Divider-EGEkrkBH.js} +50 -55
- package/dist/{FormControl-D4QuPCnV.js → FormControl-Nd-4LC8N.js} +60 -69
- package/dist/FormControlLabel-BMeMEwyK.js +738 -0
- package/dist/{GlobalStyles-BOnEiMUE.js → GlobalStyles-CModZHM-.js} +2 -2
- package/dist/{Grid-dtT_MVn3.js → Grid-EISqvBSJ.js} +5 -5
- package/dist/Grid2-B0mJbwjl.js +374 -0
- package/dist/{Grow-B3Swdn2Z.js → Grow-dkRwE_ok.js} +5 -5
- package/dist/{IconButton-CRGy76pJ.js → IconButton-DAR3jsEV.js} +12 -11
- package/dist/Info-CkE3Gsf2.js +8 -0
- package/dist/InputAdornment-DZJP9Njd.js +169 -0
- package/dist/ListItemIcon-JAntieDc.js +82 -0
- package/dist/{wallet-DN7ej6mj.js → MenuItem-D12FP5Iq.js} +64 -75
- package/dist/{Modal-0q_y4zbS.js → Modal-DceAu_d2.js} +324 -397
- package/dist/Paper-L8ipwfkc.js +183 -0
- package/dist/PlayArrow-D98xCL5M.js +21 -0
- package/dist/Portal-DxdKGEvu.js +86 -0
- package/dist/{Select-BNAaKK32.js → Select-DTQDmdn_.js} +39 -33
- package/dist/{Slide-BlS6unRJ.js → Slide-CWqC2RDG.js} +4 -3
- package/dist/Stack-CkCveRRR.js +174 -0
- package/dist/{TextField-CPZo0_di.js → TextField-BqIvz6Zw.js} +23 -21
- package/dist/{Typography-kyxogyUq.js → Typography-Dx54MRM5.js} +14 -13
- package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -0
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index3.css +1 -0
- package/dist/assets/index4.css +1 -0
- package/dist/assets/index5.css +1 -0
- package/dist/assets/index6.css +1 -0
- package/dist/assets/index7.css +1 -0
- package/dist/assets/index8.css +1 -0
- package/dist/assets/index9.css +1 -0
- package/dist/assets/{withThemeProvider.css → main.css} +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles3.css +1 -0
- package/dist/auth-AwdxCQXF.js +46 -0
- package/dist/axios-BEX6n2A7.js +796 -0
- package/dist/bank-D2rGgUDP.js +23 -0
- package/dist/components/Account/index.d.ts +4 -0
- package/dist/components/Account/index.js +310 -0
- package/dist/components/History/index.d.ts +2 -0
- package/dist/components/History/index.js +804 -0
- package/dist/components/MoveToEthereumOrEverChain/index.d.ts +18 -0
- package/dist/components/MoveToEthereumOrEverChain/index.js +345 -0
- package/dist/components/Profile/documents.js +19 -14
- package/dist/components/Profile/index.js +128 -135
- package/dist/components/Receive/index.js +25 -23
- package/dist/components/RocketRamp/Buy/cardPayment.d.ts +3 -0
- package/dist/components/RocketRamp/Buy/cardPayment.js +17 -0
- package/dist/components/RocketRamp/Buy/confirmTransaction.d.ts +3 -0
- package/dist/components/RocketRamp/Buy/confirmTransaction.js +16 -0
- package/dist/components/RocketRamp/Buy/form.d.ts +3 -0
- package/dist/components/RocketRamp/Buy/form.js +26 -0
- package/dist/components/RocketRamp/Buy/index.d.ts +6 -0
- package/dist/components/RocketRamp/Buy/index.js +29 -0
- package/dist/components/RocketRamp/Buy/types.d.ts +32 -0
- package/dist/components/RocketRamp/Buy/types.js +1 -0
- package/dist/components/RocketRamp/Dashboard/balance.d.ts +9 -0
- package/dist/components/RocketRamp/Dashboard/balance.js +75 -0
- package/dist/components/RocketRamp/Dashboard/index.d.ts +5 -0
- package/dist/components/RocketRamp/Dashboard/index.js +36 -0
- package/dist/components/RocketRamp/Dashboard/transaction.d.ts +8 -0
- package/dist/components/RocketRamp/Dashboard/transaction.js +28 -0
- package/dist/components/RocketRamp/MinimalKyc/index.d.ts +6 -0
- package/dist/components/RocketRamp/MinimalKyc/index.js +254 -0
- package/dist/components/RocketRamp/Shared/Button/index.d.ts +10 -0
- package/dist/components/RocketRamp/Shared/Button/index.js +82 -0
- package/dist/components/RocketRamp/Shared/Input/index.d.ts +11 -0
- package/dist/components/RocketRamp/Shared/Input/index.js +46 -0
- package/dist/components/RocketRamp/Shared/backBtn.d.ts +5 -0
- package/dist/components/RocketRamp/Shared/backBtn.js +21 -0
- package/dist/components/RocketRamp/Shared/transactionItem.d.ts +7 -0
- package/dist/components/RocketRamp/Shared/transactionItem.js +125 -0
- package/dist/components/RocketRamp/SignIn/index.d.ts +3 -0
- package/dist/components/RocketRamp/SignIn/index.js +82 -0
- package/dist/components/RocketRamp/SignIn/loginForm.d.ts +3 -0
- package/dist/components/RocketRamp/SignIn/loginForm.js +81 -0
- package/dist/components/RocketRamp/SignIn/otpForm.d.ts +3 -0
- package/dist/components/RocketRamp/SignIn/otpForm.js +112 -0
- package/dist/components/RocketRamp/SignIn/types.d.ts +22 -0
- package/dist/components/RocketRamp/SignIn/types.js +1 -0
- package/dist/components/RocketRamp/SignUp/email.d.ts +3 -0
- package/dist/components/RocketRamp/SignUp/email.js +70 -0
- package/dist/components/RocketRamp/SignUp/index.d.ts +3 -0
- package/dist/components/RocketRamp/SignUp/index.js +163 -0
- package/dist/components/RocketRamp/SignUp/personalInfo.d.ts +3 -0
- package/dist/components/RocketRamp/SignUp/personalInfo.js +415 -0
- package/dist/components/RocketRamp/SignUp/summary.d.ts +3 -0
- package/dist/components/RocketRamp/SignUp/summary.js +57 -0
- package/dist/components/RocketRamp/SignUp/types.d.ts +50 -0
- package/dist/components/RocketRamp/SignUp/types.js +1 -0
- package/dist/components/RocketRamp/SignUp/validateEmail.d.ts +3 -0
- package/dist/components/RocketRamp/SignUp/validateEmail.js +99 -0
- package/dist/components/RocketRamp/Transactions/index.d.ts +5 -0
- package/dist/components/RocketRamp/Transactions/index.js +38 -0
- package/dist/components/Send/index.js +62 -51
- package/dist/components/Shared/ConnectWallet/index.d.ts +20 -0
- package/dist/components/Shared/ConnectWallet/index.js +25364 -0
- package/dist/components/Shared/HistoryItem/index.d.ts +5 -0
- package/dist/components/Shared/HistoryItem/index.js +120 -0
- package/dist/components/Shared/Keyboard/keyboard.js +3 -3
- package/dist/components/Shared/TokenModal/index.d.ts +10 -0
- package/dist/components/Shared/TokenModal/index.js +104 -0
- package/dist/components/Shared/TokenModal/tokenGrid.d.ts +7 -0
- package/dist/components/Shared/TokenModal/tokenGrid.js +51 -0
- package/dist/components/Shared/addBank.d.ts +2 -0
- package/dist/components/Shared/addBank.js +172 -0
- package/dist/components/Shared/button.js +1 -1
- package/dist/components/Shared/connectPlaidBank.d.ts +2 -0
- package/dist/components/Shared/connectPlaidBank.js +57 -0
- package/dist/components/Shared/incode.js +34 -32
- package/dist/components/Shared/inputField.js +1 -1
- package/dist/components/Shared/noData.d.ts +4 -0
- package/dist/components/Shared/noData.js +14 -0
- package/dist/components/Shared/pin.js +3 -3
- package/dist/components/Shared/step.js +2 -2
- package/dist/components/Shared/tooltip.d.ts +4 -0
- package/dist/components/Shared/tooltip.js +2107 -0
- package/dist/components/Shared/transition.js +1 -1
- package/dist/components/SignIn/index.js +26 -24
- package/dist/components/SignUp/index.js +108 -348
- package/dist/components/SignUp/pin.js +116 -844
- package/dist/components/SignUp/privacy.js +3 -3
- package/dist/components/SignUp/terms.js +3 -3
- package/dist/components/SignUp/types.d.ts +0 -1
- package/dist/components/SignUp/userInfo.js +4 -4
- package/dist/components/Stake/gems/index.d.ts +2 -0
- package/dist/components/Stake/gems/index.js +214 -0
- package/dist/components/Stake/id/index.d.ts +2 -0
- package/dist/components/Stake/id/index.js +233 -0
- package/dist/components/Stake/index.d.ts +5 -0
- package/dist/components/Stake/index.js +346 -0
- package/dist/components/Swap/index.d.ts +2 -0
- package/dist/components/Swap/index.js +489 -0
- package/dist/components/SwapAndUniSwap/index.d.ts +3 -0
- package/dist/components/SwapAndUniSwap/index.js +43 -0
- package/dist/components/WalletPortfolio/index.js +191 -263
- package/dist/components/WalletPortfolio/tokenRow.js +8 -5
- package/dist/constants-d3SWzaRo.js +3981 -0
- package/dist/countries-BVn1FubK.js +1925 -0
- package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +17 -0
- package/dist/{createSvgIcon-CAZr4ukt.js → createSvgIcon-jkXneOQN.js} +6 -6
- package/dist/{createTheme-NrBCWesw.js → createTheme-F9Dk4FhK.js} +182 -174
- package/dist/data/countries.json.d.ts +1925 -0
- package/dist/defaultTheme-Bc00Q3Kt.js +5 -0
- package/dist/dividerClasses-SUAUDDqL.js +10 -0
- package/dist/{documents-CL4Ajr_B.js → documents-2UqIXbDq.js} +130 -129
- package/dist/elementTypeAcceptingRef-BufevUW8.js +23 -0
- package/dist/emotion-react.browser.esm-CI0uV1W5.js +233 -0
- package/dist/{extendSxProp-CuERe1TA.js → extendSxProp-Cm2UBzGf.js} +1 -1
- package/dist/generic-token-B_ptO5yb.js +4 -0
- package/dist/hoc/withThemeProvider.js +33 -32
- package/dist/hooks/useDialog/index.js +4 -4
- package/dist/hooks/useSnackBar.js +63 -60
- package/dist/icons/buyIcon.d.ts +2 -0
- package/dist/icons/buyIcon.js +19 -0
- package/dist/icons/canceledBuyIcon.d.ts +2 -0
- package/dist/icons/canceledBuyIcon.js +34 -0
- package/dist/icons/canceledRedeemIcon.d.ts +2 -0
- package/dist/icons/canceledRedeemIcon.js +35 -0
- package/dist/icons/failedBuyIcon.d.ts +2 -0
- package/dist/icons/failedBuyIcon.js +48 -0
- package/dist/icons/failedRedeemIcon.d.ts +2 -0
- package/dist/icons/failedRedeemIcon.js +48 -0
- package/dist/icons/pendingBuyIcon.d.ts +2 -0
- package/dist/icons/pendingBuyIcon.js +38 -0
- package/dist/icons/pendingRedeemIcon.d.ts +2 -0
- package/dist/icons/pendingRedeemIcon.js +34 -0
- package/dist/icons/redeemIcon.d.ts +2 -0
- package/dist/icons/redeemIcon.js +19 -0
- package/dist/index-B8QKlEgj.js +37095 -0
- package/dist/{index-Cq3eHOnB.js → index-BJlsh9ro.js} +1 -1
- package/dist/index-C3FYdQkQ.js +4050 -0
- package/dist/index-CrajlEO_.js +576 -0
- package/dist/index-DxLB0ZV1.js +760 -0
- package/dist/index-TElEjliR.js +9 -0
- package/dist/{index-iAyNk1r6.js → index-_kqRfgnc.js} +5 -5
- package/dist/index-ceeCtFuh.js +136 -0
- package/dist/index.esm-BsMAMhYW.js +237 -0
- package/dist/isFocusVisible-CPZqtjv2.js +12 -0
- package/dist/isMuiElement-DnSE4qG4.js +13 -0
- package/dist/main.d.ts +99 -0
- package/dist/main.js +34 -12
- package/dist/moment-h96o7c8I.js +2578 -0
- package/dist/order-Cry6kuj8.js +23 -0
- package/dist/ownerWindow-C-760D__.js +7 -0
- package/dist/providers/metaMask.d.ts +6 -0
- package/dist/providers/metaMask.js +24 -0
- package/dist/react-redux-B4BZippc.js +255 -0
- package/dist/react-webcam-B3cXh1XT.js +267 -0
- package/dist/resolveComponentProps-BdTgLKBb.js +80 -0
- package/dist/rr-primary-logo-CqI24c8v.js +4 -0
- package/dist/stake-Q_O90kTv.js +17 -0
- package/dist/store.d.ts +65 -0
- package/dist/store.js +1 -0
- package/dist/styled-BTIMwpiX.js +5 -0
- package/dist/{styles.module-KeND8lCR.js → styles.module-6SB62f3J.js} +1 -1
- package/dist/styles.module-O5VVND5e.js +22 -0
- package/dist/tokenRow-CgnPD-4U.js +206 -0
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/useFormControl-CfmEP6sW.js +18 -0
- package/dist/useSlot-DaP6eodX.js +50 -0
- package/dist/useTheme-BghcbbEW.js +9 -0
- package/dist/{useTheme-nlj1B_-c.js → useTheme-c0OHvtiA.js} +3 -3
- package/dist/{useThemeProps-BqWuFW3z.js → useThemeProps-CV9AmzHf.js} +4 -4
- package/dist/{useThemeWithoutDefault-BdYkMk0o.js → useThemeWithoutDefault-D8MaPbCK.js} +1 -1
- package/dist/useTimeout-D29bZ7Gz.js +56 -0
- package/dist/user-Dzur3Cro.js +24 -0
- package/dist/util/constants.d.ts +48 -0
- package/dist/util/constants.js +69 -21
- package/dist/util/conversions.js +54 -22271
- package/dist/util/functions.d.ts +5 -0
- package/dist/util/functions.js +81 -24
- package/dist/util/regex.d.ts +3 -0
- package/dist/util/regex.js +6 -0
- package/dist/{utils-_FXWkn40.js → utils-EFg3So7T.js} +163 -168
- package/dist/wallet-Dw896DF7.js +35 -0
- package/dist/web3-u4qDZYpo.js +22328 -0
- package/package.json +8 -3
- package/dist/DefaultPropsProvider-Y8MI-J-I.js +0 -555
- package/dist/__vite-browser-external-DYxpcVy9-DYxpcVy9.js +0 -4
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist/auth-Cj5FKr_m.js +0 -19
- package/dist/axios-xPiQW9EP.js +0 -118114
- package/dist/defaultTheme-OIfL8Ia7.js +0 -5
- package/dist/dividerClasses-Z7VLlu5C.js +0 -10
- package/dist/index-DKTkUdik.js +0 -6
- package/dist/react-redux-VW99uJjf.js +0 -5908
- package/dist/react-webcam-Cov1TP0q.js +0 -639
- package/dist/styled-Da6GnxEE.js +0 -5
- package/dist/tokenRow-Cdd_jFjp.js +0 -206
- package/dist/useFormControl-Bo6Tf_xo.js +0 -46
- package/dist/useSlot-CURNJ3JC.js +0 -306
- package/dist/useTheme-DWRMvRU8.js +0 -9
- package/dist/useTimeout-lr7ryrda.js +0 -75
|
@@ -1,333 +1,93 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { useDialog as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { useSnackBar as
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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) => {
|
|
1
|
+
import { jsxs as r0, Fragment as i0, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as r, useEffect as i } from "react";
|
|
3
|
+
import s0 from "../Shared/step.js";
|
|
4
|
+
import n0 from "./biometric.js";
|
|
5
|
+
import { useDialog as a0 } from "../../hooks/useDialog/index.js";
|
|
6
|
+
import c0 from "./userInfo.js";
|
|
7
|
+
import l0 from "./pin.js";
|
|
8
|
+
import { useSnackBar as f0 } from "../../hooks/useSnackBar.js";
|
|
9
|
+
import "../../constants-d3SWzaRo.js";
|
|
10
|
+
import { u as p0 } from "../../index-TElEjliR.js";
|
|
11
|
+
import { d as d0 } from "../../auth-AwdxCQXF.js";
|
|
12
|
+
import { a as u0 } from "../../user-Dzur3Cro.js";
|
|
13
|
+
import { D as m0 } from "../../dialog-success-BDNJV4Tk.js";
|
|
14
|
+
import { u as g0, a as O } from "../../react-redux-B4BZippc.js";
|
|
15
|
+
import '../../assets/main.css';/* empty css */
|
|
16
|
+
import C0 from "../../hoc/withThemeProvider.js";
|
|
17
|
+
import { B as h0 } from "../../Box-BOgpENcC.js";
|
|
18
|
+
const _0 = "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", w0 = (P) => {
|
|
252
19
|
const {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
20
|
+
incodeApiUrl: N,
|
|
21
|
+
incodeApiKey: W,
|
|
22
|
+
incodeOnBoardingUrl: Z,
|
|
23
|
+
walletUrl: j,
|
|
24
|
+
inCodeFlowId: q,
|
|
25
|
+
organization: w,
|
|
26
|
+
connectWalletAddress: x,
|
|
27
|
+
service: l = "buySell",
|
|
28
|
+
navigate: S,
|
|
29
|
+
referralCode: y,
|
|
30
|
+
twitterFlow: B,
|
|
31
|
+
isNonMlmCampaign: f,
|
|
32
|
+
isExchangeCampaign: x0,
|
|
33
|
+
isMobile: v,
|
|
34
|
+
onCreactAccount: Y,
|
|
35
|
+
navigatePath: k
|
|
36
|
+
} = P, U = g0(), t = O((e) => e.session), z = O(p0), s = t.partialRegistration, A = t.partialRegistrationUuid, D = t.partialRegistrationToken, b = t.uuid, p = z.referral.code, d = t.token, u = t.error, { showAlertMessage: m, snackBar: J } = f0(), { openDialog: I, ConfirmDialog: K } = a0(), [g, n] = r(
|
|
37
|
+
s ? "pin" : "biometric"
|
|
38
|
+
), [F, R] = r({ email: "" }), [G, C] = r(""), [M, H] = r(!1), [h, Q] = r(""), [V, X] = r(""), T = ["INF"];
|
|
39
|
+
w && T.push(w), i(() => {
|
|
40
|
+
u && (m({ message: u }), $());
|
|
41
|
+
}, [u]), i(() => {
|
|
42
|
+
p && f && window.open(j + "/r1/" + p, "_blank");
|
|
43
|
+
}, [p]), i(() => {
|
|
44
|
+
if (b && d) {
|
|
45
|
+
Y(G, d);
|
|
46
|
+
let e = "450px", E = m0, L = "Sign up Successful", a = "It will take a few minutes for your account to be approved.";
|
|
47
|
+
B && (a = "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.", v && (a = "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."));
|
|
48
|
+
let c = "Let’s get started";
|
|
49
|
+
B && (c = "Continue", v && (c = "Close")), f && (e = "570px", E = _0, L = "Welcome!", a = "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.", c = "Next"), I({
|
|
50
|
+
icon: E,
|
|
51
|
+
title: L,
|
|
52
|
+
message: a,
|
|
53
|
+
confirmButtonText: c,
|
|
286
54
|
cancelButtonShow: !1,
|
|
287
|
-
height:
|
|
55
|
+
height: e,
|
|
288
56
|
onConfirm: () => {
|
|
289
|
-
|
|
57
|
+
t0();
|
|
290
58
|
}
|
|
291
59
|
});
|
|
292
60
|
}
|
|
293
|
-
}, [
|
|
294
|
-
|
|
295
|
-
}, [
|
|
296
|
-
|
|
297
|
-
}, [
|
|
298
|
-
const
|
|
299
|
-
orgs:
|
|
61
|
+
}, [b, d]), i(() => {
|
|
62
|
+
s && A && (n("pin"), C(A));
|
|
63
|
+
}, [s]), i(() => {
|
|
64
|
+
h && e0();
|
|
65
|
+
}, [h]);
|
|
66
|
+
const _ = {
|
|
67
|
+
orgs: T,
|
|
300
68
|
lang: "english",
|
|
301
|
-
...
|
|
69
|
+
...F
|
|
302
70
|
};
|
|
303
|
-
|
|
304
|
-
associated_wallets: JSON.stringify([
|
|
71
|
+
x && (_.metadata = {
|
|
72
|
+
associated_wallets: JSON.stringify([x])
|
|
305
73
|
});
|
|
306
|
-
const
|
|
307
|
-
|
|
308
|
-
},
|
|
309
|
-
if (!
|
|
310
|
-
|
|
311
|
-
const
|
|
312
|
-
session_id:
|
|
313
|
-
profile:
|
|
314
|
-
pin:
|
|
74
|
+
const $ = () => {
|
|
75
|
+
n("biometric"), R({ email: "" }), C("");
|
|
76
|
+
}, e0 = () => {
|
|
77
|
+
if (!M) {
|
|
78
|
+
H(!0), _.uuid = G;
|
|
79
|
+
const e = {
|
|
80
|
+
session_id: s && D ? D : V,
|
|
81
|
+
profile: _,
|
|
82
|
+
pin: h
|
|
315
83
|
};
|
|
316
|
-
|
|
84
|
+
y && (e.referralCode = y), U(d0(e));
|
|
317
85
|
}
|
|
318
|
-
},
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
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) {
|
|
86
|
+
}, t0 = () => {
|
|
87
|
+
f && U(u0()), S(k || "/");
|
|
88
|
+
}, o0 = () => {
|
|
89
|
+
if (l === "identity")
|
|
90
|
+
switch (g) {
|
|
331
91
|
case "biometric":
|
|
332
92
|
return 1;
|
|
333
93
|
case "pin":
|
|
@@ -336,7 +96,7 @@ const me = (e) => ({
|
|
|
336
96
|
return 3;
|
|
337
97
|
}
|
|
338
98
|
else
|
|
339
|
-
switch (
|
|
99
|
+
switch (g) {
|
|
340
100
|
case "biometric":
|
|
341
101
|
return 1;
|
|
342
102
|
case "userInfo":
|
|
@@ -347,47 +107,47 @@ const me = (e) => ({
|
|
|
347
107
|
return 4;
|
|
348
108
|
}
|
|
349
109
|
};
|
|
350
|
-
return /* @__PURE__ */
|
|
351
|
-
/* @__PURE__ */
|
|
352
|
-
|
|
353
|
-
/* @__PURE__ */
|
|
110
|
+
return /* @__PURE__ */ r0(i0, { children: [
|
|
111
|
+
/* @__PURE__ */ o(h0, { sx: { textAlign: "center" }, children: /* @__PURE__ */ o(s0, { totalSteps: l === "identity" ? 2 : 3, currentStep: o0() }) }),
|
|
112
|
+
J,
|
|
113
|
+
/* @__PURE__ */ o(K, {}),
|
|
354
114
|
{
|
|
355
|
-
biometric: /* @__PURE__ */
|
|
356
|
-
|
|
115
|
+
biometric: /* @__PURE__ */ o(
|
|
116
|
+
n0,
|
|
357
117
|
{
|
|
358
|
-
incodeApiUrl:
|
|
359
|
-
incodeApiKey:
|
|
360
|
-
incodeOnBoardingUrl:
|
|
361
|
-
inCodeFlowId:
|
|
362
|
-
setShowScreen:
|
|
363
|
-
setUuid:
|
|
364
|
-
setIncodeSessiontoken:
|
|
365
|
-
service:
|
|
366
|
-
setConfirmDialog:
|
|
367
|
-
navigate:
|
|
118
|
+
incodeApiUrl: N,
|
|
119
|
+
incodeApiKey: W,
|
|
120
|
+
incodeOnBoardingUrl: Z,
|
|
121
|
+
inCodeFlowId: q,
|
|
122
|
+
setShowScreen: n,
|
|
123
|
+
setUuid: C,
|
|
124
|
+
setIncodeSessiontoken: X,
|
|
125
|
+
service: l,
|
|
126
|
+
setConfirmDialog: I,
|
|
127
|
+
navigate: S
|
|
368
128
|
}
|
|
369
129
|
),
|
|
370
|
-
userInfo: /* @__PURE__ */
|
|
371
|
-
|
|
130
|
+
userInfo: /* @__PURE__ */ o(
|
|
131
|
+
c0,
|
|
372
132
|
{
|
|
373
|
-
setShowScreen:
|
|
374
|
-
userInfo:
|
|
375
|
-
setUserInfo:
|
|
133
|
+
setShowScreen: n,
|
|
134
|
+
userInfo: F,
|
|
135
|
+
setUserInfo: R,
|
|
376
136
|
showAlertMessage: m
|
|
377
137
|
}
|
|
378
138
|
),
|
|
379
|
-
pin: /* @__PURE__ */
|
|
380
|
-
|
|
139
|
+
pin: /* @__PURE__ */ o(
|
|
140
|
+
l0,
|
|
381
141
|
{
|
|
382
142
|
showAlertMessage: m,
|
|
383
|
-
setAccountPin:
|
|
384
|
-
loading:
|
|
143
|
+
setAccountPin: Q,
|
|
144
|
+
loading: M
|
|
385
145
|
}
|
|
386
146
|
)
|
|
387
147
|
// twitter: <Twitter navigateTo={navigateTo} />,
|
|
388
|
-
}[
|
|
148
|
+
}[g]
|
|
389
149
|
] });
|
|
390
|
-
},
|
|
150
|
+
}, P0 = C0(w0);
|
|
391
151
|
export {
|
|
392
|
-
|
|
152
|
+
P0 as default
|
|
393
153
|
};
|