everest-npm-features 0.0.60 → 0.0.62
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/{Cancel-4lT7GZUA.js → Cancel-pHQsCjtK.js} +1 -1
- package/dist/{Close-CNwiMz_O.js → Close-DSxLLo08.js} +1 -1
- package/dist/{ContentCopy-coPwrEuz.js → ContentCopy-D0C0zbQj.js} +1 -1
- package/dist/{Delete-jpMstGIF.js → Delete-Bj8zmXnh.js} +1 -1
- package/dist/{ErrorOutline-CPQcnl2b.js → ErrorOutline-Bt7P4ChN.js} +1 -1
- package/dist/{FileDownload-Bt3R_NBr.js → FileDownload-DqREXR3D.js} +1 -1
- package/dist/{Info-BVeUSPyk.js → Info-DOoRR7sR.js} +1 -1
- package/dist/{PlayArrow-BlkZJiHn.js → PlayArrow-BVDyfxsQ.js} +2 -2
- package/dist/Portal-BeS9yJCZ.js +968 -0
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/{auth-WhDJHZtr.js → auth-DTJdu6mq.js} +11 -11
- package/dist/{bank-BaOrdTcI.js → bank-C4pmTe--.js} +1 -1
- package/dist/components/RocketRamp/MinimalKyc/form.js +46 -52
- package/dist/components/RocketRamp/MinimalKyc/index.js +6 -6
- package/dist/components/RocketRamp/Player/Buy/cardPayment.js +6 -8
- package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +5 -8
- package/dist/components/RocketRamp/Player/Buy/form.js +8 -17
- package/dist/components/RocketRamp/Player/Buy/index.js +6 -6
- package/dist/components/RocketRamp/Player/Dashboard/balance.js +20 -26
- package/dist/components/RocketRamp/Player/Dashboard/index.js +4 -4
- package/dist/components/RocketRamp/Player/Dashboard/transaction.js +13 -16
- package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +6 -11
- package/dist/components/RocketRamp/Player/Sell/form.js +8 -17
- package/dist/components/RocketRamp/Player/Sell/index.js +9 -9
- package/dist/components/RocketRamp/Player/SignIn/index.js +23 -25
- package/dist/components/RocketRamp/Player/SignIn/loginForm.js +33 -35
- package/dist/components/RocketRamp/Player/SignIn/otpForm.js +31 -33
- package/dist/components/RocketRamp/Player/SignUp/email.js +21 -23
- package/dist/components/RocketRamp/Player/SignUp/index.js +49 -52
- package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +68 -74
- package/dist/components/RocketRamp/Player/SignUp/summary.js +23 -25
- package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +23 -25
- package/dist/components/RocketRamp/ResetPassword/index.js +23 -25
- package/dist/components/RocketRamp/Shared/Button/index.js +16 -17
- package/dist/components/RocketRamp/Shared/Input/index.js +27 -30
- package/dist/components/RocketRamp/Shared/backBtn.js +10 -11
- package/dist/components/RocketRamp/Shared/transactionItem.js +40 -45
- package/dist/components/RocketRamp/Store/Dashboard/balance.js +12 -17
- package/dist/components/RocketRamp/Store/Dashboard/index.js +11 -12
- package/dist/components/RocketRamp/Store/Dashboard/stats.js +12 -17
- package/dist/components/RocketRamp/Store/Dashboard/transaction.js +13 -16
- package/dist/components/RocketRamp/Store/SignUp/index.js +53 -56
- package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +48 -54
- package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +33 -37
- package/dist/components/RocketRamp/Store/SignUp/summary.js +21 -23
- package/dist/components/RocketRamp/Store/SignUp/validateEmail.js +23 -25
- package/dist/components/RocketRamp/Transactions/index.js +23 -24
- package/dist/components/Shared/FullKyc/countryList.js +15 -17
- package/dist/components/Shared/FullKyc/edd.js +51 -54
- package/dist/components/Shared/FullKyc/index.js +13 -12
- package/dist/components/Shared/FullKyc/pep.js +35 -43
- package/dist/components/Shared/FullKyc/personalDetails.js +7 -8
- package/dist/components/Shared/FullKyc/userInfo.js +8 -14
- package/dist/components/Shared/HistoryItem/index.js +43 -48
- package/dist/components/Shared/Incode/index.js +31 -35
- package/dist/components/Shared/MinimalKyc/index.js +60 -65
- package/dist/components/Shared/Sumsub/index.js +75 -62
- package/dist/components/Shared/loader.js +4 -5
- package/dist/components/Shared/tooltip.js +2 -2
- package/dist/components/Shared/transition.js +4 -4
- package/dist/components/Wallet/Account/createIban.js +34 -38
- package/dist/components/Wallet/Account/eWallet.js +35 -39
- package/dist/components/Wallet/Account/iban.js +49 -53
- package/dist/components/Wallet/Account/ibanItem.js +70 -76
- package/dist/components/Wallet/Account/index.js +68 -76
- package/dist/components/Wallet/Account/sendIban.js +79 -88
- package/dist/components/Wallet/Buy/confirmTransaction.js +9 -12
- package/dist/components/Wallet/Buy/form.js +8 -18
- package/dist/components/Wallet/Buy/index.js +6 -6
- package/dist/components/Wallet/Deposit/index.js +16 -19
- package/dist/components/Wallet/EnterpriseKyc/edd.js +32 -34
- package/dist/components/Wallet/EnterpriseKyc/index.js +76 -81
- package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +23 -26
- package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +5 -7
- package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/kycType.js +23 -26
- package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +37 -39
- package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +3591 -1483
- package/dist/components/Wallet/EnterpriseKyc/success.js +3 -4
- package/dist/components/Wallet/EnterpriseKyc/verify.js +23 -24
- package/dist/components/Wallet/History/index.js +23 -797
- package/dist/components/Wallet/Home/index.js +13 -14
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +91 -97
- package/dist/components/Wallet/Portfolio/dropdown.js +25 -30
- package/dist/components/Wallet/Portfolio/index.js +48 -52
- package/dist/components/Wallet/Portfolio/tokenRow.js +3 -4
- package/dist/components/Wallet/Profile/documents.js +125 -134
- package/dist/components/Wallet/Profile/index.js +38 -44
- package/dist/components/Wallet/Profile/storage.js +39 -47
- package/dist/components/Wallet/Receive/index.js +32 -37
- package/dist/components/Wallet/Sell/confirmTransaction.js +8 -11
- package/dist/components/Wallet/Sell/form.js +8 -18
- package/dist/components/Wallet/Sell/index.js +6 -6
- package/dist/components/Wallet/Send/index.js +336 -324
- package/dist/components/Wallet/Shared/Auth/emailForm.js +13 -15
- package/dist/components/Wallet/Shared/Auth/otpForm.js +9 -356
- package/dist/components/Wallet/Shared/BankSelect/index.js +45 -49
- package/dist/components/Wallet/Shared/CardCorp/index.js +18 -20
- package/dist/components/Wallet/Shared/CardPayment/index.js +14 -16
- package/dist/components/Wallet/Shared/ConnectWallet/index.js +22 -28
- package/dist/components/Wallet/Shared/Container/index.js +15 -16
- package/dist/components/Wallet/Shared/Input/index.js +3 -3
- package/dist/components/Wallet/Shared/Keyboard/keyboard.js +29 -30
- package/dist/components/Wallet/Shared/Order/paymentButton.js +13 -14
- package/dist/components/Wallet/Shared/TokenModal/index.js +55 -63
- package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +11 -13
- package/dist/components/Wallet/Shared/addBank.js +41 -46
- package/dist/components/Wallet/Shared/appButton.js +11 -15
- package/dist/components/Wallet/Shared/backBtn.js +8 -9
- package/dist/components/Wallet/Shared/button.js +7 -7
- package/dist/components/Wallet/Shared/connectPlaidBank.js +16 -17
- package/dist/components/Wallet/Shared/inputField.js +5 -5
- package/dist/components/Wallet/Shared/manualSend.js +9 -14
- package/dist/components/Wallet/Shared/noData.js +4 -5
- package/dist/components/Wallet/Shared/pin.js +25 -27
- package/dist/components/Wallet/Shared/radioButton.js +39 -5
- package/dist/components/Wallet/Shared/step.js +12 -13
- package/dist/components/Wallet/Shared/timer.js +1 -1
- package/dist/components/Wallet/SignIn/index.js +17 -17
- package/dist/components/Wallet/SignUp/index.js +63 -153
- package/dist/components/Wallet/SignUp/terms.js +1 -1
- package/dist/components/Wallet/Stake/gems/index.js +51 -58
- package/dist/components/Wallet/Stake/id/index.js +73 -81
- package/dist/components/Wallet/Stake/index.js +65 -69
- package/dist/components/Wallet/Swap/form.js +11 -21
- package/dist/components/Wallet/Swap/index.js +5 -5
- package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -5
- package/dist/components/Wallet/Withdraw/bankSelect.js +41 -45
- package/dist/components/Wallet/Withdraw/confirmTransaction.js +5 -8
- package/dist/components/Wallet/Withdraw/form.js +6 -17
- package/dist/components/Wallet/Withdraw/index.js +5 -5
- package/dist/{constants-DREDnCMu.js → constants-DrmtdI1J.js} +7 -7
- package/dist/{createSvgIcon-Cuzqm90l.js → createSvgIcon-B28GrUxG.js} +41 -45
- package/dist/{cryptoAssets-DbyDgq4J.js → cryptoAssets-DyGDknvq.js} +1 -1
- package/dist/hoc/withThemeProvider.js +5 -732
- package/dist/hooks/useDialog/index.js +22 -23
- package/dist/hooks/useRrDialog/index.js +43 -46
- package/dist/hooks/useSnackBar.js +24 -696
- package/dist/icons/buyIcon.js +1 -1
- package/dist/icons/canceledBuyIcon.js +1 -1
- package/dist/icons/canceledRedeemIcon.js +1 -1
- package/dist/icons/failedBuyIcon.js +2 -2
- package/dist/icons/failedRedeemIcon.js +2 -2
- package/dist/icons/pendingBuyIcon.js +1 -1
- package/dist/icons/pendingRedeemIcon.js +1 -1
- package/dist/icons/redeemIcon.js +1 -1
- package/dist/{index-DYP5Ex_T.js → index-3OQ4M69t.js} +89 -99
- package/dist/{index-B3HnUBnB.js → index-BBFbUCRZ.js} +123 -129
- package/dist/{index-PoMNqntN.js → index-C1WPCgkl.js} +130 -141
- package/dist/{index-BXutc9ik.js → index-CDwzoHu7.js} +134 -145
- package/dist/{index-DV1dVcrY.js → index-CK4kLRAw.js} +172 -182
- package/dist/{index-DJ7xuxBy.js → index-CYX3j0V7.js} +175 -185
- package/dist/{index-CuPCW3XC.js → index-ILpK4BCB.js} +154 -163
- package/dist/{kyc-D4s_B9Cf.js → kyc-ksV3vBP_.js} +1 -1
- package/dist/main.js +7 -7
- package/dist/memoTheme-DnE8lj0t.js +3481 -0
- package/dist/{order-DGBbo_Ox.js → order-DEp_Lmar.js} +1 -1
- package/dist/otpForm-fiNqeB5H.js +7378 -0
- package/dist/{stake-CdMc5H7D.js → stake-Ct7-_aWW.js} +1 -1
- package/dist/{tokenRow-C-iMHhPj.js → tokenRow-BiNtHOKV.js} +20 -21
- package/dist/tooltip-BW0UyWw7.js +2129 -0
- package/dist/{wallet-DvfdQOju.js → wallet-CauUBXou.js} +1 -1
- package/package.json +6 -6
- package/dist/Alert-DzsbFW3-.js +0 -369
- package/dist/Autocomplete-CE-OI2t8.js +0 -2429
- package/dist/Avatar-1XklXr4O.js +0 -281
- package/dist/Backdrop-CioURPVG.js +0 -359
- package/dist/Box-B0YSYLco.js +0 -59
- package/dist/Button-Df4vgU24.js +0 -663
- package/dist/ButtonBase-DLF5c6wi.js +0 -870
- package/dist/CardContent-D9wTdpu-.js +0 -141
- package/dist/CircularProgress-xZA3lvba.js +0 -252
- package/dist/Close-CxzDL3J-.js +0 -9
- package/dist/Container-urNKV7hm.js +0 -181
- package/dist/DefaultPropsProvider-CeF7UYM9.js +0 -92
- package/dist/DefaultPropsProvider-oAu9El-f.js +0 -226
- package/dist/DialogContent-BMwlOnbW.js +0 -567
- package/dist/DialogTitle-CfS0bb2K.js +0 -70
- package/dist/Divider-BShhMFf4.js +0 -297
- package/dist/FilledInput-DuNqnPjc.js +0 -1292
- package/dist/FormControl-RtZDQMdA.js +0 -258
- package/dist/FormControlLabel-BliKW48y.js +0 -519
- package/dist/GlobalStyles-ChMhDfTS.js +0 -59
- package/dist/Grid-CFe3amXO.js +0 -410
- package/dist/Grow-CnGtel3u.js +0 -196
- package/dist/HTMLElementType-BrQSV2FE.js +0 -13
- package/dist/IconButton-DHm-hucF.js +0 -297
- package/dist/InputAdornment-DMiED3JH.js +0 -173
- package/dist/Link-DBA9Yifs.js +0 -266
- package/dist/ListItemIcon-CUcyTEEm.js +0 -84
- package/dist/Menu-DLYFFrEk.js +0 -1239
- package/dist/MenuItem-DUdYOJr4.js +0 -271
- package/dist/Modal-CFIQ_s3T.js +0 -743
- package/dist/Paper-Bgt2WXI6.js +0 -186
- package/dist/Popper-BBAoiZKn.js +0 -1409
- package/dist/Portal-BMAxiQwe.js +0 -69
- package/dist/RadioGroup-nvoSN0JN.js +0 -189
- package/dist/Select-CB5yWmyn.js +0 -1886
- package/dist/Slide-B9Nw0LZ4.js +0 -235
- package/dist/Stack-k55YTxET.js +0 -172
- package/dist/SwitchBase-C8zFyg_x.js +0 -318
- package/dist/TextField-DPpRUQe3.js +0 -978
- package/dist/TransitionGroupContext-CYRQkQ6k.js +0 -49
- package/dist/Typography-pAaje37G.js +0 -260
- package/dist/chainPropTypes-D9lkm76m.js +0 -8
- package/dist/clsx-BTaloaeC.js +0 -264
- package/dist/createChainedFunction-C0nujS3O.js +0 -9
- package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +0 -17
- package/dist/createTheme-CD19zQB7.js +0 -3825
- package/dist/debounce-46wSf_lW.js +0 -15
- package/dist/defaultTheme-C35y5cLB.js +0 -5
- package/dist/dividerClasses-BDxa2gAa.js +0 -10
- package/dist/elementAcceptingRef-CqLvP78G.js +0 -391
- package/dist/elementTypeAcceptingRef-BdsMpCbS.js +0 -23
- package/dist/emotion-react.browser.esm-BIrDfk-B.js +0 -246
- package/dist/exactProp-C1Lmtwf_.js +0 -13
- package/dist/extendSxProp-B8UjbJ56.js +0 -37
- package/dist/generateUtilityClasses-BRiE4Guh.js +0 -10
- package/dist/index-B0Z-Gjno.js +0 -22
- package/dist/index-DUcLo3x5.js +0 -43
- package/dist/isFocusVisible-CPZqtjv2.js +0 -12
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/isMuiElement-DnSE4qG4.js +0 -13
- package/dist/memoTheme-yHaPezod.js +0 -15
- package/dist/ownerWindow-CRgpWY6I.js +0 -7
- package/dist/radioButton-CzlYB0Lh.js +0 -402
- package/dist/refType-BsTH3qnM.js +0 -56
- package/dist/tooltip-3UvETWtS.js +0 -740
- package/dist/useControlled-nm4pBabJ.js +0 -31
- package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
- package/dist/useFormControl-CatNKXAi.js +0 -10
- package/dist/useId-CK6Kn3Tn.js +0 -21
- package/dist/useSlot-CW7SOYlh.js +0 -125
- package/dist/useSlotProps-BfEOwJvJ.js +0 -25
- package/dist/useTheme-BQJ5lp0i.js +0 -11
- package/dist/useTheme-S5_DHFsQ.js +0 -17
- package/dist/useThemeProps-DN9MjdTl.js +0 -29
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { jsxs as v, Fragment as ae, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
2
|
+
import { useState as r, useEffect as z, useRef as Ne } from "react";
|
|
3
3
|
import { AuthContainer as Oe } from "./components/Wallet/Shared/Container/index.js";
|
|
4
|
-
import Ae from "
|
|
4
|
+
import { Box as D, Typography as ee, FormControl as Ae, InputLabel as _e, Select as Pe, MenuItem as re, Grid as ie } from "@mui/material";
|
|
5
|
+
import Re from "./hoc/withThemeProvider.js";
|
|
5
6
|
import ye from "./components/Wallet/Shared/Input/index.js";
|
|
6
7
|
import Se from "./components/Wallet/Shared/appButton.js";
|
|
7
8
|
import "./index-DlQqWbXG.js";
|
|
8
|
-
import "./
|
|
9
|
-
import { d as T, f as
|
|
10
|
-
import { c as
|
|
9
|
+
import "./otpForm-fiNqeB5H.js";
|
|
10
|
+
import { d as T, f as be } from "./constants-DrmtdI1J.js";
|
|
11
|
+
import { c as Be, d as Le } from "./kyc-ksV3vBP_.js";
|
|
11
12
|
import { useSnackBarContext as ce } from "./context/snackBarContext.js";
|
|
12
13
|
import xe from "./hooks/useEverestDispatch.js";
|
|
13
14
|
import "./util/conversions.js";
|
|
@@ -15,30 +16,23 @@ import "./index-CAoLi5Qq.js";
|
|
|
15
16
|
import ve from "./components/Wallet/Shared/step.js";
|
|
16
17
|
import "./react-webcam-B3cXh1XT.js";
|
|
17
18
|
import "./components/Shared/transition.js";
|
|
18
|
-
import "./tooltip-
|
|
19
|
-
import "./components/Wallet/Shared/pin.js";
|
|
19
|
+
import "./tooltip-BW0UyWw7.js";
|
|
20
20
|
import "./moment-h96o7c8I.js";
|
|
21
21
|
import "./index.esm-BsMAMhYW.js";
|
|
22
|
-
import { c as
|
|
22
|
+
import { c as Te } from "./countries-BVn1FubK.js";
|
|
23
23
|
import "./web3-u4qDZYpo.js";
|
|
24
24
|
import "./index-ceeCtFuh.js";
|
|
25
|
-
import { useDialogContext as
|
|
25
|
+
import { useDialogContext as Fe } from "./context/dialogContext.js";
|
|
26
|
+
import "@mui/icons-material";
|
|
26
27
|
import le from "./components/Shared/FullKyc/countryList.js";
|
|
27
|
-
import
|
|
28
|
-
import {
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import Te from "./components/Shared/FullKyc/edd.js";
|
|
32
|
-
import Fe from "./components/Shared/Sumsub/index.js";
|
|
33
|
-
import { F as Ie } from "./FormControl-RtZDQMdA.js";
|
|
34
|
-
import { I as Ke } from "./TextField-DPpRUQe3.js";
|
|
35
|
-
import { S as Me } from "./Select-CB5yWmyn.js";
|
|
36
|
-
import { M as ie } from "./MenuItem-DUdYOJr4.js";
|
|
37
|
-
import { G as oe } from "./Grid-CFe3amXO.js";
|
|
28
|
+
import Ke from "./components/Shared/FullKyc/pep.js";
|
|
29
|
+
import { u as oe } from "./react-redux-C7I9-1M6.js";
|
|
30
|
+
import Ie from "./components/Shared/FullKyc/edd.js";
|
|
31
|
+
import qe from "./components/Shared/Sumsub/index.js";
|
|
38
32
|
const ze = ({
|
|
39
33
|
inputComponent: g,
|
|
40
34
|
buttonComponent: k,
|
|
41
|
-
setUserInfo:
|
|
35
|
+
setUserInfo: M,
|
|
42
36
|
userInfo: l,
|
|
43
37
|
docData: o,
|
|
44
38
|
setScreen: h,
|
|
@@ -46,32 +40,32 @@ const ze = ({
|
|
|
46
40
|
kycFlow: E
|
|
47
41
|
}) => {
|
|
48
42
|
const d = xe();
|
|
49
|
-
|
|
50
|
-
const { showAlertMessage: c } = ce(), s = g ?? ye,
|
|
43
|
+
Fe();
|
|
44
|
+
const { showAlertMessage: c } = ce(), s = g ?? ye, w = k ?? Se, [a, p] = r(l.gender || ""), [f, F] = r(!1), [K, y] = r(l.email || ""), [te, ne] = r(!1), [Y, Z] = r(""), [m, $] = r(l.address || ""), [n, I] = r(l.city || ""), [S, X] = r(l.state || ""), [N, U] = r(l.zipCode || ""), [O, e] = r(
|
|
51
45
|
l.country || null
|
|
52
|
-
), [A, _] =
|
|
46
|
+
), [A, _] = r(!1);
|
|
53
47
|
z(() => {
|
|
54
|
-
C && (y(C),
|
|
48
|
+
C && (y(C), ne(!0));
|
|
55
49
|
}, [C]), z(() => {
|
|
56
50
|
var i;
|
|
57
51
|
if (o != null && o.issuingCountry) {
|
|
58
52
|
o.gender && (p(o.gender), F(!0));
|
|
59
|
-
const x =
|
|
60
|
-
(
|
|
53
|
+
const x = Te.find(
|
|
54
|
+
(u) => u.alpha3 === o.issuingCountry
|
|
61
55
|
);
|
|
62
|
-
|
|
63
|
-
const R = new Date(o.birthDate),
|
|
64
|
-
R.getTime() +
|
|
56
|
+
M({ ...l, country: x, nationality: x });
|
|
57
|
+
const R = new Date(o.birthDate), b = R.getTimezoneOffset() * 6e4, B = new Date(
|
|
58
|
+
R.getTime() + b
|
|
65
59
|
);
|
|
66
|
-
if (Z(
|
|
67
|
-
const
|
|
68
|
-
_(!0), $(
|
|
60
|
+
if (Z(B.toLocaleDateString("en-US")), (i = o.checkedAddressBean) != null && i.street) {
|
|
61
|
+
const u = o.checkedAddressBean;
|
|
62
|
+
_(!0), $(u.street), I(u.city), X(u.state), U(u.postalCode);
|
|
69
63
|
}
|
|
70
64
|
} else
|
|
71
65
|
P();
|
|
72
66
|
}, []);
|
|
73
67
|
const P = () => {
|
|
74
|
-
d(
|
|
68
|
+
d(Be());
|
|
75
69
|
};
|
|
76
70
|
return /* @__PURE__ */ v(ae, { children: [
|
|
77
71
|
E !== T && /* @__PURE__ */ t(D, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ t(ve, { totalSteps: 4, currentStep: 2 }) }),
|
|
@@ -89,20 +83,20 @@ const ze = ({
|
|
|
89
83
|
required: !0
|
|
90
84
|
}
|
|
91
85
|
),
|
|
92
|
-
/* @__PURE__ */ v(
|
|
93
|
-
/* @__PURE__ */ t(
|
|
86
|
+
/* @__PURE__ */ v(Ae, { sx: { mt: 3 }, fullWidth: !0, children: [
|
|
87
|
+
/* @__PURE__ */ t(_e, { children: "Gender" }),
|
|
94
88
|
/* @__PURE__ */ v(
|
|
95
|
-
|
|
89
|
+
Pe,
|
|
96
90
|
{
|
|
97
91
|
value: a,
|
|
98
92
|
label: "Gender",
|
|
99
93
|
onChange: (i) => p(i.target.value),
|
|
100
|
-
disabled: !!(
|
|
94
|
+
disabled: !!(f && a),
|
|
101
95
|
required: !0,
|
|
102
96
|
children: [
|
|
103
|
-
/* @__PURE__ */ t(
|
|
104
|
-
/* @__PURE__ */ t(
|
|
105
|
-
/* @__PURE__ */ t(
|
|
97
|
+
/* @__PURE__ */ t(re, { value: "M", children: "Male" }, "M"),
|
|
98
|
+
/* @__PURE__ */ t(re, { value: "F", children: "Female" }, "F"),
|
|
99
|
+
/* @__PURE__ */ t(re, { value: "X", children: "Another" }, "X")
|
|
106
100
|
]
|
|
107
101
|
}
|
|
108
102
|
)
|
|
@@ -112,7 +106,7 @@ const ze = ({
|
|
|
112
106
|
{
|
|
113
107
|
sx: { mt: 3 },
|
|
114
108
|
label: "Email",
|
|
115
|
-
value:
|
|
109
|
+
value: K,
|
|
116
110
|
onChange: (i) => y(i.target.value),
|
|
117
111
|
disabled: te,
|
|
118
112
|
required: !0
|
|
@@ -130,18 +124,18 @@ const ze = ({
|
|
|
130
124
|
required: !0
|
|
131
125
|
}
|
|
132
126
|
),
|
|
133
|
-
/* @__PURE__ */ v(
|
|
134
|
-
/* @__PURE__ */ t(
|
|
127
|
+
/* @__PURE__ */ v(ie, { container: !0, spacing: 2, sx: { mt: 3 }, children: [
|
|
128
|
+
/* @__PURE__ */ t(ie, { size: 6, children: /* @__PURE__ */ t(
|
|
135
129
|
s,
|
|
136
130
|
{
|
|
137
131
|
label: "City",
|
|
138
|
-
value:
|
|
139
|
-
onChange: (i) =>
|
|
140
|
-
disabled: !!(A &&
|
|
132
|
+
value: n,
|
|
133
|
+
onChange: (i) => I(i.target.value),
|
|
134
|
+
disabled: !!(A && n),
|
|
141
135
|
required: !0
|
|
142
136
|
}
|
|
143
137
|
) }),
|
|
144
|
-
/* @__PURE__ */ t(
|
|
138
|
+
/* @__PURE__ */ t(ie, { size: 6, children: /* @__PURE__ */ t(
|
|
145
139
|
s,
|
|
146
140
|
{
|
|
147
141
|
label: "State/Province",
|
|
@@ -157,7 +151,7 @@ const ze = ({
|
|
|
157
151
|
sx: { mt: 3 },
|
|
158
152
|
label: "Zipcode",
|
|
159
153
|
value: N,
|
|
160
|
-
onChange: (i) =>
|
|
154
|
+
onChange: (i) => U(i.target.value),
|
|
161
155
|
disabled: !!(A && N),
|
|
162
156
|
required: !0
|
|
163
157
|
}
|
|
@@ -172,7 +166,7 @@ const ze = ({
|
|
|
172
166
|
)
|
|
173
167
|
] }),
|
|
174
168
|
/* @__PURE__ */ t(
|
|
175
|
-
|
|
169
|
+
w,
|
|
176
170
|
{
|
|
177
171
|
sx: { mt: 3 },
|
|
178
172
|
variant: "contained",
|
|
@@ -185,7 +179,7 @@ const ze = ({
|
|
|
185
179
|
}
|
|
186
180
|
if (!m)
|
|
187
181
|
return c({ message: "Please provide address" });
|
|
188
|
-
if (!
|
|
182
|
+
if (!n) return c({ message: "Please provide city" });
|
|
189
183
|
if (!S) return c({ message: "Please provide state" });
|
|
190
184
|
if (!N)
|
|
191
185
|
return c({ message: "Please provide zip code" });
|
|
@@ -193,12 +187,12 @@ const ze = ({
|
|
|
193
187
|
return c({
|
|
194
188
|
message: "Please select country of residency"
|
|
195
189
|
});
|
|
196
|
-
|
|
190
|
+
M({
|
|
197
191
|
...l,
|
|
198
192
|
gender: a,
|
|
199
|
-
email:
|
|
193
|
+
email: K,
|
|
200
194
|
address: m,
|
|
201
|
-
city:
|
|
195
|
+
city: n,
|
|
202
196
|
state: S,
|
|
203
197
|
zipCode: N,
|
|
204
198
|
country: O
|
|
@@ -206,24 +200,24 @@ const ze = ({
|
|
|
206
200
|
E !== T ? de : pe
|
|
207
201
|
);
|
|
208
202
|
},
|
|
209
|
-
disabled: E !== T && !
|
|
203
|
+
disabled: E !== T && !K || E !== T && !a || !m || !O,
|
|
210
204
|
fullWidth: !0,
|
|
211
205
|
children: /* @__PURE__ */ t("strong", { children: "Next" })
|
|
212
206
|
}
|
|
213
207
|
)
|
|
214
208
|
] });
|
|
215
|
-
},
|
|
209
|
+
}, Me = ({
|
|
216
210
|
userInfo: g,
|
|
217
211
|
setUserInfo: k,
|
|
218
|
-
setScreen:
|
|
212
|
+
setScreen: M,
|
|
219
213
|
inputComponent: l,
|
|
220
214
|
buttonComponent: o
|
|
221
215
|
}) => {
|
|
222
|
-
const { showAlertMessage: h } = ce(), C = l ?? ye, E = o ?? Se, [d, c] =
|
|
216
|
+
const { showAlertMessage: h } = ce(), C = l ?? ye, E = o ?? Se, [d, c] = r(
|
|
223
217
|
g.placeOfBirth || null
|
|
224
|
-
), [s,
|
|
218
|
+
), [s, w] = r(
|
|
225
219
|
g.nationality || null
|
|
226
|
-
), [a, p] =
|
|
220
|
+
), [a, p] = r(g.occupation || ""), [f, F] = r(g.employer || "");
|
|
227
221
|
return /* @__PURE__ */ v(ae, { children: [
|
|
228
222
|
/* @__PURE__ */ t(D, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ t(ve, { totalSteps: 4, currentStep: 3 }) }),
|
|
229
223
|
/* @__PURE__ */ v(D, { pl: 2, mt: 4, children: [
|
|
@@ -241,7 +235,7 @@ const ze = ({
|
|
|
241
235
|
le,
|
|
242
236
|
{
|
|
243
237
|
value: s,
|
|
244
|
-
onChange:
|
|
238
|
+
onChange: w,
|
|
245
239
|
label: "Country of citizenship"
|
|
246
240
|
}
|
|
247
241
|
),
|
|
@@ -259,7 +253,7 @@ const ze = ({
|
|
|
259
253
|
{
|
|
260
254
|
sx: { mt: 3 },
|
|
261
255
|
label: "Employer",
|
|
262
|
-
value:
|
|
256
|
+
value: f,
|
|
263
257
|
onChange: (y) => F(y.target.value)
|
|
264
258
|
}
|
|
265
259
|
)
|
|
@@ -287,16 +281,16 @@ const ze = ({
|
|
|
287
281
|
placeOfBirth: d,
|
|
288
282
|
nationality: s,
|
|
289
283
|
occupation: a,
|
|
290
|
-
employer:
|
|
291
|
-
}),
|
|
284
|
+
employer: f
|
|
285
|
+
}), M(pe);
|
|
292
286
|
},
|
|
293
|
-
disabled: !d || !s || !a || !
|
|
287
|
+
disabled: !d || !s || !a || !f,
|
|
294
288
|
fullWidth: !0,
|
|
295
289
|
children: /* @__PURE__ */ t("strong", { children: "Next" })
|
|
296
290
|
}
|
|
297
291
|
)
|
|
298
292
|
] });
|
|
299
|
-
}, se = "INCODE_SCREEN", Q = "USER_INFO_SCREEN", de = "PERSONAL_DETAILS_SCREEN", pe = "PEP_SCREEN",
|
|
293
|
+
}, se = "INCODE_SCREEN", Q = "USER_INFO_SCREEN", de = "PERSONAL_DETAILS_SCREEN", pe = "PEP_SCREEN", we = "EDD_SCREEN", Ue = {
|
|
300
294
|
BANK_STATEMENT: {
|
|
301
295
|
text: "",
|
|
302
296
|
file: [],
|
|
@@ -312,10 +306,10 @@ const ze = ({
|
|
|
312
306
|
file: [],
|
|
313
307
|
preview: []
|
|
314
308
|
}
|
|
315
|
-
},
|
|
309
|
+
}, We = ({
|
|
316
310
|
configurationId: g,
|
|
317
311
|
incodeApiKey: k,
|
|
318
|
-
incodeApiUrl:
|
|
312
|
+
incodeApiUrl: M,
|
|
319
313
|
incodeOnBoardingUrl: l,
|
|
320
314
|
withContainer: o = !1,
|
|
321
315
|
successHandler: h,
|
|
@@ -323,11 +317,11 @@ const ze = ({
|
|
|
323
317
|
isModalView: E = !1,
|
|
324
318
|
kycFlow: d
|
|
325
319
|
}) => {
|
|
326
|
-
const c = Ne(!0), { showAlertMessage: s } = ce(),
|
|
327
|
-
|
|
328
|
-
const
|
|
329
|
-
|
|
330
|
-
const [
|
|
320
|
+
const c = Ne(!0), { showAlertMessage: s } = ce(), w = xe(), a = oe((e) => e.user), p = oe((e) => e.user.kyc);
|
|
321
|
+
oe((e) => e.session.uuid);
|
|
322
|
+
const f = a.kyc, F = f.processComplete, K = {}, [y, te] = r(K);
|
|
323
|
+
r({ token: "" });
|
|
324
|
+
const [ne, Y] = r(""), [Z, m] = r(
|
|
331
325
|
d === T ? Q : se
|
|
332
326
|
);
|
|
333
327
|
z(() => {
|
|
@@ -351,7 +345,7 @@ const ze = ({
|
|
|
351
345
|
}
|
|
352
346
|
m(e);
|
|
353
347
|
}, [C]), z(() => {
|
|
354
|
-
h && F && (s({ message: "KYC has been
|
|
348
|
+
h && F && (s({ message: "KYC request has been received and will be processed shortly.", type: "success" }), h());
|
|
355
349
|
}, [h, F]);
|
|
356
350
|
const $ = {
|
|
357
351
|
gender: "",
|
|
@@ -371,59 +365,59 @@ const ze = ({
|
|
|
371
365
|
frequency: "",
|
|
372
366
|
reason: "",
|
|
373
367
|
source: ""
|
|
374
|
-
}, [
|
|
368
|
+
}, [n, I] = r($), [S, X] = r(Ue);
|
|
375
369
|
z(() => {
|
|
376
370
|
S.BANK_STATEMENT.file.length > 0 && N(S);
|
|
377
371
|
}, [S]);
|
|
378
372
|
const N = (e) => {
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
373
|
+
U(
|
|
374
|
+
n.isPoliticalExpose,
|
|
375
|
+
n.politicalExpose,
|
|
376
|
+
n.frequency,
|
|
377
|
+
n.reason,
|
|
378
|
+
n.source,
|
|
379
|
+
n.origin,
|
|
386
380
|
e,
|
|
387
381
|
!0
|
|
388
382
|
);
|
|
389
|
-
},
|
|
390
|
-
var
|
|
391
|
-
if (d !==
|
|
392
|
-
m(
|
|
383
|
+
}, U = (e, A, _, P, q, i, x, R = !1) => {
|
|
384
|
+
var b, B, u;
|
|
385
|
+
if (d !== be && !R) {
|
|
386
|
+
m(we);
|
|
393
387
|
return;
|
|
394
388
|
}
|
|
395
|
-
if (!
|
|
389
|
+
if (!f.loader) {
|
|
396
390
|
const V = {
|
|
397
|
-
street:
|
|
398
|
-
city:
|
|
399
|
-
postcode:
|
|
400
|
-
state:
|
|
401
|
-
country: (
|
|
391
|
+
street: n.address,
|
|
392
|
+
city: n.city,
|
|
393
|
+
postcode: n.zipCode,
|
|
394
|
+
state: n.state,
|
|
395
|
+
country: (b = n.country) == null ? void 0 : b.alpha3
|
|
402
396
|
}, H = {
|
|
403
397
|
isExposed: e,
|
|
404
398
|
exposed: A,
|
|
405
399
|
frequency: _,
|
|
406
400
|
reason: P,
|
|
407
|
-
source:
|
|
401
|
+
source: q,
|
|
408
402
|
originFunds: i
|
|
409
403
|
}, J = {
|
|
410
404
|
frequency: _,
|
|
411
405
|
reason: P,
|
|
412
|
-
source:
|
|
406
|
+
source: q,
|
|
413
407
|
originFunds: i
|
|
414
|
-
},
|
|
408
|
+
}, W = {
|
|
415
409
|
kycFlow: d,
|
|
416
|
-
email:
|
|
417
|
-
gender:
|
|
418
|
-
birthPlace: (
|
|
419
|
-
nationality: (
|
|
420
|
-
occupation:
|
|
421
|
-
employer:
|
|
410
|
+
email: n.email,
|
|
411
|
+
gender: n.gender,
|
|
412
|
+
birthPlace: (B = n.placeOfBirth) == null ? void 0 : B.alpha3,
|
|
413
|
+
nationality: (u = n.nationality) == null ? void 0 : u.alpha3,
|
|
414
|
+
occupation: n.occupation,
|
|
415
|
+
employer: n.employer,
|
|
422
416
|
residentialAddress: V,
|
|
423
417
|
politicalExposure: H,
|
|
424
418
|
customerDueDiligence: J,
|
|
425
419
|
workflow: {
|
|
426
|
-
token:
|
|
420
|
+
token: ne
|
|
427
421
|
}
|
|
428
422
|
};
|
|
429
423
|
if (x) {
|
|
@@ -431,27 +425,27 @@ const ze = ({
|
|
|
431
425
|
file: L.file[0],
|
|
432
426
|
type: j
|
|
433
427
|
}));
|
|
434
|
-
G.length > 0 && (
|
|
428
|
+
G.length > 0 && (W.eddDocuments = G);
|
|
435
429
|
}
|
|
436
|
-
|
|
430
|
+
w(Le(W));
|
|
437
431
|
}
|
|
438
432
|
};
|
|
439
433
|
z(() => {
|
|
440
|
-
var _, P,
|
|
434
|
+
var _, P, q, i, x, R, b, B, u, V, H, J, W, G, j, L, me, ue, fe, he, Ee, ge, Ce;
|
|
441
435
|
const e = p == null ? void 0 : p.sumsubDocumentData;
|
|
442
436
|
if (!e) return;
|
|
443
437
|
const A = {
|
|
444
438
|
name: {
|
|
445
439
|
fullName: `${((_ = e == null ? void 0 : e.documentData) == null ? void 0 : _.firstName) ?? ""} ${((P = e == null ? void 0 : e.documentData) == null ? void 0 : P.lastName) ?? ""}`.trim(),
|
|
446
|
-
firstName: ((
|
|
440
|
+
firstName: ((q = e == null ? void 0 : e.documentData) == null ? void 0 : q.firstName) ?? "",
|
|
447
441
|
givenName: ((i = e == null ? void 0 : e.documentData) == null ? void 0 : i.firstName) ?? "",
|
|
448
442
|
paternalLastName: ((x = e == null ? void 0 : e.documentData) == null ? void 0 : x.lastName) ?? ""
|
|
449
443
|
},
|
|
450
|
-
address: ((
|
|
444
|
+
address: ((b = (R = e == null ? void 0 : e.documentData) == null ? void 0 : R.address) == null ? void 0 : b.street) ?? "",
|
|
451
445
|
checkedAddressBean: {
|
|
452
|
-
street: ((
|
|
446
|
+
street: ((u = (B = e == null ? void 0 : e.documentData) == null ? void 0 : B.address) == null ? void 0 : u.street) ?? "",
|
|
453
447
|
city: ((H = (V = e == null ? void 0 : e.documentData) == null ? void 0 : V.address) == null ? void 0 : H.city) ?? "",
|
|
454
|
-
state: ((
|
|
448
|
+
state: ((W = (J = e == null ? void 0 : e.documentData) == null ? void 0 : J.address) == null ? void 0 : W.state) ?? "",
|
|
455
449
|
postalCode: ((j = (G = e == null ? void 0 : e.documentData) == null ? void 0 : G.address) == null ? void 0 : j.postcode) ?? "",
|
|
456
450
|
zipColonyOptions: []
|
|
457
451
|
},
|
|
@@ -461,8 +455,8 @@ const ze = ({
|
|
|
461
455
|
issueFront: 0,
|
|
462
456
|
issueBack: 0,
|
|
463
457
|
birthDate: Date.parse(((me = e == null ? void 0 : e.documentData) == null ? void 0 : me.dateOfBirth) ?? "") || 0,
|
|
464
|
-
gender: ((
|
|
465
|
-
personalNumber: ((
|
|
458
|
+
gender: ((ue = e == null ? void 0 : e.documentData) == null ? void 0 : ue.gender) ?? "",
|
|
459
|
+
personalNumber: ((fe = e == null ? void 0 : e.documentData) == null ? void 0 : fe.number) ?? "",
|
|
466
460
|
issuedAt: "",
|
|
467
461
|
expireAt: ((he = e == null ? void 0 : e.documentData) == null ? void 0 : he.dateOfExpiry) ?? "",
|
|
468
462
|
expirationDate: Date.parse(((Ee = e == null ? void 0 : e.documentData) == null ? void 0 : Ee.dateOfExpiry) ?? "") || 0,
|
|
@@ -487,55 +481,55 @@ const ze = ({
|
|
|
487
481
|
te(A), m(Q);
|
|
488
482
|
}, [p == null ? void 0 : p.sumsubDocumentData]);
|
|
489
483
|
const O = {
|
|
490
|
-
INCODE_SCREEN: /* @__PURE__ */ t(
|
|
484
|
+
INCODE_SCREEN: /* @__PURE__ */ t(qe, { onApplicantIdLoaded: Y }),
|
|
491
485
|
USER_INFO_SCREEN: /* @__PURE__ */ t(
|
|
492
486
|
ze,
|
|
493
487
|
{
|
|
494
488
|
docData: y,
|
|
495
489
|
setScreen: m,
|
|
496
|
-
setUserInfo:
|
|
497
|
-
userInfo:
|
|
490
|
+
setUserInfo: I,
|
|
491
|
+
userInfo: n,
|
|
498
492
|
userEmail: a.profile.email,
|
|
499
493
|
kycFlow: d
|
|
500
494
|
}
|
|
501
495
|
),
|
|
502
496
|
PERSONAL_DETAILS_SCREEN: /* @__PURE__ */ t(
|
|
503
|
-
|
|
497
|
+
Me,
|
|
504
498
|
{
|
|
505
499
|
setScreen: m,
|
|
506
|
-
setUserInfo:
|
|
507
|
-
userInfo:
|
|
500
|
+
setUserInfo: I,
|
|
501
|
+
userInfo: n
|
|
508
502
|
}
|
|
509
503
|
),
|
|
510
504
|
PEP_SCREEN: /* @__PURE__ */ t(
|
|
511
|
-
|
|
505
|
+
Ke,
|
|
512
506
|
{
|
|
513
507
|
setScreen: m,
|
|
514
|
-
setUserInfo:
|
|
515
|
-
userInfo:
|
|
516
|
-
processKyc:
|
|
517
|
-
processLoader:
|
|
508
|
+
setUserInfo: I,
|
|
509
|
+
userInfo: n,
|
|
510
|
+
processKyc: U,
|
|
511
|
+
processLoader: f.loader,
|
|
518
512
|
kycFlow: d
|
|
519
513
|
}
|
|
520
514
|
),
|
|
521
515
|
EDD_SCREEN: /* @__PURE__ */ t(
|
|
522
|
-
|
|
516
|
+
Ie,
|
|
523
517
|
{
|
|
524
518
|
kycStoreData: p,
|
|
525
519
|
eddData: S,
|
|
526
520
|
setEddData: X,
|
|
527
521
|
processKyc: N,
|
|
528
|
-
processLoader:
|
|
522
|
+
processLoader: f.loader
|
|
529
523
|
}
|
|
530
524
|
)
|
|
531
525
|
}[Z];
|
|
532
|
-
return o ? /* @__PURE__ */ t(Oe, { addPadding: !
|
|
533
|
-
},
|
|
526
|
+
return o ? /* @__PURE__ */ t(Oe, { addPadding: !0, children: O }) : O;
|
|
527
|
+
}, yt = Re(We);
|
|
534
528
|
export {
|
|
535
|
-
|
|
536
|
-
|
|
529
|
+
we as E,
|
|
530
|
+
yt as F,
|
|
537
531
|
se as I,
|
|
538
|
-
|
|
532
|
+
Me as P,
|
|
539
533
|
ze as U,
|
|
540
534
|
Q as a,
|
|
541
535
|
de as b,
|