everest-npm-features 0.0.32 → 0.0.34
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/{Alert-CUoIVlUd.js → Alert-DzsbFW3-.js} +38 -37
- package/dist/{pep-C_LViPSb.js → Autocomplete-CE-OI2t8.js} +934 -1197
- package/dist/{Avatar-CwczQLPi.js → Avatar-1XklXr4O.js} +54 -53
- package/dist/{Backdrop-yR8IRnFX.js → Backdrop-CioURPVG.js} +7 -6
- package/dist/{Box-BwKpr_VI.js → Box-B0YSYLco.js} +5 -5
- package/dist/{Button-tAfK4lud.js → Button-Df4vgU24.js} +24 -22
- package/dist/{ButtonBase-CaH152Zd.js → ButtonBase-DLF5c6wi.js} +13 -12
- package/dist/{Cancel-BoEk0xRy.js → Cancel-4lT7GZUA.js} +1 -1
- package/dist/{CardContent-ZS4vlcvi.js → CardContent-D9wTdpu-.js} +14 -13
- package/dist/{CircularProgress-Yx712vpT.js → CircularProgress-xZA3lvba.js} +6 -5
- package/dist/{Close-CFg1QB5M.js → Close-CNwiMz_O.js} +1 -1
- package/dist/{Close-B_8kEwSt.js → Close-CxzDL3J-.js} +1 -1
- package/dist/{Container-CBPBT38n.js → Container-urNKV7hm.js} +4 -4
- package/dist/{ContentCopy-D4Eg7Nkm.js → ContentCopy-coPwrEuz.js} +1 -1
- package/dist/DefaultPropsProvider-CeF7UYM9.js +92 -0
- package/dist/DefaultPropsProvider-oAu9El-f.js +226 -0
- package/dist/{Delete-BGp4FPdE.js → Delete-jpMstGIF.js} +1 -1
- package/dist/{DialogContent-_gvZOy18.js → DialogContent-BMwlOnbW.js} +23 -22
- package/dist/{DialogTitle-dq22bYlF.js → DialogTitle-CfS0bb2K.js} +5 -5
- package/dist/{Divider-CIL55YSC.js → Divider-BShhMFf4.js} +5 -5
- package/dist/{ErrorOutline-BykbFh0r.js → ErrorOutline-CPQcnl2b.js} +1 -1
- package/dist/{FileDownload-BSy7tA6m.js → FileDownload-Bt3R_NBr.js} +1 -1
- package/dist/{FilledInput-QaJVaeIX.js → FilledInput-DuNqnPjc.js} +15 -14
- package/dist/{FormControl-H4D1Z6Ov.js → FormControl-RtZDQMdA.js} +6 -5
- package/dist/{FormControlLabel-BvI1nkJ1.js → FormControlLabel-BliKW48y.js} +18 -17
- package/dist/{GlobalStyles-DhHHc9O0.js → GlobalStyles-ChMhDfTS.js} +4 -4
- package/dist/{Grid-CPkjiKqX.js → Grid-CFe3amXO.js} +7 -7
- package/dist/{Grow-B2p7O_1C.js → Grow-CnGtel3u.js} +4 -4
- package/dist/{IconButton-WneJM4uP.js → IconButton-DHm-hucF.js} +11 -10
- package/dist/{Info-0vSsl6Bm.js → Info-BVeUSPyk.js} +1 -1
- package/dist/{InputAdornment-Bqn4-Kns.js → InputAdornment-DMiED3JH.js} +21 -20
- package/dist/{Link-DhdK4VfZ.js → Link-DBA9Yifs.js} +20 -19
- package/dist/{ListItemIcon-D657XWHf.js → ListItemIcon-CUcyTEEm.js} +6 -6
- package/dist/{Menu-BAFJBGa-.js → Menu-DLYFFrEk.js} +21 -20
- package/dist/{MenuItem-ByxiQtY2.js → MenuItem-DUdYOJr4.js} +40 -39
- package/dist/{Modal-DEfOsvWK.js → Modal-CFIQ_s3T.js} +15 -14
- package/dist/{Paper-jx_cZiyU.js → Paper-Bgt2WXI6.js} +11 -10
- package/dist/PlayArrow-CcX9hutu.js +13 -0
- package/dist/{Popper-B1He9eVi.js → Popper-BBAoiZKn.js} +14 -13
- package/dist/{Portal-CLa9CbMv.js → Portal-BMAxiQwe.js} +2 -2
- package/dist/{RadioGroup-_-H2gvH2.js → RadioGroup-nvoSN0JN.js} +25 -24
- package/dist/{Select-CGei0bav.js → Select-CB5yWmyn.js} +12 -11
- package/dist/{Slide-DHG0r2gy.js → Slide-B9Nw0LZ4.js} +3 -3
- package/dist/{Stack-DH-Nxf9q.js → Stack-k55YTxET.js} +5 -5
- package/dist/{SwitchBase-BDUzpdBf.js → SwitchBase-C8zFyg_x.js} +11 -10
- package/dist/{TextField-DmiK1A_S.js → TextField-DPpRUQe3.js} +10 -9
- package/dist/{Typography-BQDN44CM.js → Typography-pAaje37G.js} +13 -12
- package/dist/assets/styles2.css +1 -1
- package/dist/assets/styles3.css +1 -1
- package/dist/assets/withThemeProvider.css +1 -1
- package/dist/{auth-IOh0JhPD.js → auth-BzJj8HQz.js} +5 -5
- package/dist/{bank-BNgO--wu.js → bank-CCdUsDB2.js} +1 -1
- package/dist/clsx-BTaloaeC.js +264 -0
- package/dist/components/RocketRamp/MinimalKyc/form.js +10 -10
- package/dist/components/RocketRamp/MinimalKyc/index.js +1 -1
- package/dist/components/RocketRamp/Player/Buy/cardPayment.js +7 -7
- package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +7 -7
- package/dist/components/RocketRamp/Player/Buy/form.js +16 -16
- package/dist/components/RocketRamp/Player/Buy/index.js +7 -7
- package/dist/components/RocketRamp/Player/Dashboard/balance.js +7 -7
- package/dist/components/RocketRamp/Player/Dashboard/index.js +5 -5
- package/dist/components/RocketRamp/Player/Dashboard/transaction.js +4 -4
- package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +10 -10
- package/dist/components/RocketRamp/Player/Sell/form.js +16 -16
- package/dist/components/RocketRamp/Player/Sell/index.js +8 -8
- package/dist/components/RocketRamp/Player/SignIn/index.js +6 -6
- package/dist/components/RocketRamp/Player/SignIn/loginForm.js +5 -5
- package/dist/components/RocketRamp/Player/SignIn/otpForm.js +5 -5
- package/dist/components/RocketRamp/Player/SignUp/email.js +5 -5
- package/dist/components/RocketRamp/Player/SignUp/index.js +7 -7
- package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +9 -9
- package/dist/components/RocketRamp/Player/SignUp/summary.js +3 -3
- package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +3 -3
- package/dist/components/RocketRamp/ResetPassword/index.js +6 -6
- package/dist/components/RocketRamp/Shared/Button/index.js +2 -2
- package/dist/components/RocketRamp/Shared/Input/index.js +6 -6
- package/dist/components/RocketRamp/Shared/backBtn.js +3 -3
- package/dist/components/RocketRamp/Shared/transactionItem.js +5 -5
- package/dist/components/RocketRamp/Store/Dashboard/balance.js +6 -6
- package/dist/components/RocketRamp/Store/Dashboard/index.js +2 -2
- package/dist/components/RocketRamp/Store/Dashboard/stats.js +6 -6
- package/dist/components/RocketRamp/Store/Dashboard/transaction.js +4 -4
- package/dist/components/RocketRamp/Store/SignUp/index.js +7 -7
- package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +9 -9
- package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +7 -7
- package/dist/components/RocketRamp/Store/SignUp/summary.js +3 -3
- package/dist/components/RocketRamp/Store/SignUp/validateEmail.js +3 -3
- package/dist/components/RocketRamp/Transactions/index.js +9 -9
- package/dist/components/Shared/FullKyc/countryList.d.ts +10 -0
- package/dist/components/Shared/FullKyc/countryList.js +54 -0
- package/dist/components/Shared/FullKyc/edd.d.ts +3 -0
- package/dist/components/Shared/FullKyc/edd.js +184 -0
- package/dist/components/Shared/FullKyc/index.d.ts +1 -0
- package/dist/components/Shared/FullKyc/index.js +12 -10
- package/dist/components/Shared/FullKyc/pep.js +276 -15
- package/dist/components/Shared/FullKyc/personalDetails.js +7 -9
- package/dist/components/Shared/FullKyc/types.d.ts +21 -3
- package/dist/components/Shared/FullKyc/userInfo.js +13 -13
- package/dist/components/Shared/HistoryItem/index.js +99 -75
- package/dist/components/Shared/Incode/index.d.ts +2 -1
- package/dist/components/Shared/Incode/index.js +42 -40
- package/dist/components/Shared/MinimalKyc/index.js +9 -9
- package/dist/components/Shared/loader.js +2 -2
- package/dist/components/Shared/tooltip.js +2 -2
- package/dist/components/Shared/transition.js +1 -1
- package/dist/components/Wallet/Account/createIban.js +8 -8
- package/dist/components/Wallet/Account/iban.js +14 -14
- package/dist/components/Wallet/Account/index.js +24 -24
- package/dist/components/Wallet/Account/sendIban.js +16 -16
- package/dist/components/Wallet/Buy/confirmTransaction.js +8 -8
- package/dist/components/Wallet/Buy/form.js +20 -20
- package/dist/components/Wallet/Buy/index.js +7 -7
- package/dist/components/Wallet/Deposit/index.js +27 -25
- package/dist/components/Wallet/EnterpriseKyc/edd.js +8 -8
- package/dist/components/Wallet/EnterpriseKyc/index.js +123 -113
- package/dist/components/Wallet/EnterpriseKyc/individualKyc.js +5 -5
- package/dist/components/Wallet/EnterpriseKyc/kybIntro.js +3 -3
- package/dist/components/Wallet/EnterpriseKyc/kybTerms.js +1 -1
- package/dist/components/Wallet/EnterpriseKyc/kycType.js +5 -5
- package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +21 -21
- package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +16 -16
- package/dist/components/Wallet/EnterpriseKyc/success.js +2 -2
- package/dist/components/Wallet/EnterpriseKyc/verify.js +5 -5
- package/dist/components/Wallet/History/index.js +18 -17
- package/dist/components/Wallet/Home/index.js +2 -2
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +41 -41
- package/dist/components/Wallet/Portfolio/dropdown.js +7 -7
- package/dist/components/Wallet/Portfolio/index.js +159 -147
- package/dist/components/Wallet/Portfolio/tokenRow.js +3 -3
- package/dist/components/Wallet/Profile/documents.js +17 -17
- package/dist/components/Wallet/Profile/index.js +12 -12
- package/dist/components/Wallet/Receive/index.js +11 -11
- package/dist/components/Wallet/Sell/confirmTransaction.js +26 -10
- package/dist/components/Wallet/Sell/form.js +20 -20
- package/dist/components/Wallet/Sell/index.d.ts +1 -0
- package/dist/components/Wallet/Sell/index.js +12 -11
- package/dist/components/Wallet/Send/index.js +21 -21
- package/dist/components/Wallet/Shared/Auth/emailForm.js +3 -3
- package/dist/components/Wallet/Shared/Auth/otpForm.js +7 -7
- package/dist/components/Wallet/Shared/CardPayment/index.js +4 -4
- package/dist/components/Wallet/Shared/ConnectWallet/index.js +11 -11
- package/dist/components/Wallet/Shared/Container/index.js +2 -2
- package/dist/components/Wallet/Shared/Input/index.js +1 -1
- package/dist/components/Wallet/Shared/Keyboard/keyboard.js +3 -3
- package/dist/components/Wallet/Shared/Order/paymentButton.js +2 -2
- package/dist/components/Wallet/Shared/TokenModal/index.js +11 -11
- package/dist/components/Wallet/Shared/TokenModal/tokenGrid.js +4 -4
- package/dist/components/Wallet/Shared/addBank.js +12 -12
- package/dist/components/Wallet/Shared/appButton.js +6 -6
- package/dist/components/Wallet/Shared/backBtn.js +2 -2
- package/dist/components/Wallet/Shared/button.js +1 -1
- package/dist/components/Wallet/Shared/connectPlaidBank.js +6 -6
- package/dist/components/Wallet/Shared/inputField.js +1 -1
- package/dist/components/Wallet/Shared/manualSend.d.ts +11 -0
- package/dist/components/Wallet/Shared/manualSend.js +38 -0
- package/dist/components/Wallet/Shared/noData.js +2 -2
- package/dist/components/Wallet/Shared/pin.js +4 -4
- package/dist/components/Wallet/Shared/radioButton.js +3 -3
- package/dist/components/Wallet/Shared/step.js +2 -2
- package/dist/components/Wallet/Shared/timer.d.ts +9 -0
- package/dist/components/Wallet/Shared/timer.js +53 -0
- package/dist/components/Wallet/SignIn/index.js +3 -3
- package/dist/components/Wallet/SignUp/index.js +12 -11
- package/dist/components/Wallet/SignUp/terms.js +1 -1
- package/dist/components/Wallet/Stake/gems/index.js +11 -11
- package/dist/components/Wallet/Stake/id/index.js +12 -12
- package/dist/components/Wallet/Stake/index.js +12 -12
- package/dist/components/Wallet/Swap/form.d.ts +3 -0
- package/dist/components/Wallet/Swap/form.js +46 -0
- package/dist/components/Wallet/Swap/index.d.ts +3 -0
- package/dist/components/Wallet/Swap/index.js +19 -551
- package/dist/components/Wallet/SwapAndUniSwap/index.js +3 -3
- package/dist/components/Wallet/Withdraw/bankSelect.js +12 -12
- package/dist/components/Wallet/Withdraw/confirmTransaction.js +10 -10
- package/dist/components/Wallet/Withdraw/form.js +17 -17
- package/dist/components/Wallet/Withdraw/index.js +6 -6
- package/dist/{constants-DWENgBjv.js → constants-B1fWUUck.js} +1107 -1102
- package/dist/{createSvgIcon-BgBEJXMh.js → createSvgIcon-Cuzqm90l.js} +25 -24
- package/dist/{createTheme-DmGCMO09.js → createTheme-CD19zQB7.js} +13 -13
- package/dist/cryptoAssets-BU3EHVIY.js +16 -0
- package/dist/defaultTheme-C35y5cLB.js +5 -0
- package/dist/{dividerClasses-BVK5cNr7.js → dividerClasses-BDxa2gAa.js} +2 -2
- package/dist/{documents-BA_pUCQh.js → documents-PylmjRbk.js} +24 -24
- package/dist/{elementAcceptingRef-BbsmdE_3.js → elementAcceptingRef-CqLvP78G.js} +1 -1
- package/dist/{elementTypeAcceptingRef-CdmXUhJ8.js → elementTypeAcceptingRef-BdsMpCbS.js} +1 -1
- package/dist/{emotion-react.browser.esm-C2mxoK1z.js → emotion-react.browser.esm-BIrDfk-B.js} +43 -43
- package/dist/{extendSxProp-Bwha5fon.js → extendSxProp-B8UjbJ56.js} +1 -1
- package/dist/generateUtilityClasses-BRiE4Guh.js +10 -0
- package/dist/hoc/withThemeProvider.js +5 -5
- package/dist/hooks/useDialog/index.js +4 -4
- package/dist/hooks/useRrDialog/index.js +4 -4
- package/dist/hooks/useSnackBar.js +23 -22
- 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 +1 -1
- package/dist/icons/failedRedeemIcon.js +1 -1
- package/dist/icons/pendingBuyIcon.js +1 -1
- package/dist/icons/pendingRedeemIcon.js +1 -1
- package/dist/icons/redeemIcon.js +1 -1
- package/dist/{index-x9CniyQB.js → index-B0Z-Gjno.js} +1 -1
- package/dist/index-BJsAyUhP.js +730 -0
- package/dist/index-BW-RJYiq.js +499 -0
- package/dist/index-CQ-u6bTN.js +917 -0
- package/dist/{index-CNLxRkdf.js → index-DUCRi3yf.js} +31 -32
- package/dist/{index-C86AoaoB.js → index-DUcLo3x5.js} +4 -4
- package/dist/index-DjWC9DGk.js +623 -0
- package/dist/{index-GXDDOdOI.js → index-Dka1TfUt.js} +42 -43
- package/dist/{index-v4KC1K_V.js → index-FwnHkXdK.js} +4 -4
- package/dist/{index-Cz_n7X7q.js → index-OSl1NZiT.js} +40 -41
- package/dist/{kyc-DbZ4KGFX.js → kyc-CSbzb5MW.js} +3 -3
- package/dist/main.js +10 -10
- package/dist/{memoTheme-BUUB1UEO.js → memoTheme-yHaPezod.js} +1 -1
- package/dist/order-BtLfPFH9.js +51 -0
- package/dist/{radioButton-CBcYX40o.js → radioButton-CzlYB0Lh.js} +18 -17
- package/dist/{react-redux-C7I9-1M6.js → react-redux-B4BZippc.js} +2 -2
- package/dist/{refType-CaiGhRso.js → refType-BsTH3qnM.js} +1 -1
- package/dist/{stake-tw1n23io.js → stake-C7IQSI0J.js} +1 -1
- package/dist/styles.module-CHEBh2ID.js +35 -0
- package/dist/{styles.module-verVx4pE.js → styles.module-CUA1zLEJ.js} +1 -1
- package/dist/{tokenRow-C5N2uPgO.js → tokenRow-D32W5WH3.js} +2 -2
- package/dist/{tooltip-Dv3Lfsa2.js → tooltip-3UvETWtS.js} +19 -18
- package/dist/{useSlot-DtSnboW7.js → useSlot-CW7SOYlh.js} +1 -1
- package/dist/{useSlotProps-D62tWbb1.js → useSlotProps-BfEOwJvJ.js} +1 -1
- package/dist/{useTheme-XTDzJ69d.js → useTheme-BQJ5lp0i.js} +3 -3
- package/dist/{useTheme-Bfw5Gt1b.js → useTheme-S5_DHFsQ.js} +1 -1
- package/dist/{useThemeProps-DLhzJP-y.js → useThemeProps-DN9MjdTl.js} +3 -3
- package/dist/{wallet-DZwD-8oa.js → wallet-Bq1E67kO.js} +1 -1
- package/package.json +2 -2
- package/dist/DefaultPropsProvider-4P82EuVL.js +0 -232
- package/dist/DefaultPropsProvider-CZh8M2jM.js +0 -351
- package/dist/PlayArrow-BCWGWaUq.js +0 -8
- package/dist/cryptoAssets-C7fIAflf.js +0 -16
- package/dist/defaultTheme-9fAph5zo.js +0 -5
- package/dist/fiatAssets-Bkh4X4hq.js +0 -8
- package/dist/index-BtYuKn1z.js +0 -724
- package/dist/index-BvD3O03n.js +0 -483
- package/dist/index-dsM-tUkI.js +0 -708
- package/dist/order-BLu2iLAt.js +0 -43
- package/dist/styles.module-CRVptIQs.js +0 -33
package/dist/index-BvD3O03n.js
DELETED
|
@@ -1,483 +0,0 @@
|
|
|
1
|
-
import { jsxs as E, Fragment as ee, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { useState as n, useEffect as U } from "react";
|
|
3
|
-
import { AuthContainer as ce } from "./components/Wallet/Shared/Container/index.js";
|
|
4
|
-
import pe from "./components/Shared/Incode/index.js";
|
|
5
|
-
import de from "./hoc/withThemeProvider.js";
|
|
6
|
-
import te from "./components/Wallet/Shared/Input/index.js";
|
|
7
|
-
import oe from "./components/Wallet/Shared/appButton.js";
|
|
8
|
-
import { a as ne, u as Y } from "./react-redux-C7I9-1M6.js";
|
|
9
|
-
import "./components/Wallet/Shared/Auth/otpForm.js";
|
|
10
|
-
import "./constants-DWENgBjv.js";
|
|
11
|
-
import { b as ue, c as me } from "./kyc-DbZ4KGFX.js";
|
|
12
|
-
import { useSnackBarContext as re } from "./context/snackBarContext.js";
|
|
13
|
-
import "./util/conversions.js";
|
|
14
|
-
import "./index-CAoLi5Qq.js";
|
|
15
|
-
import se from "./components/Wallet/Shared/step.js";
|
|
16
|
-
import "./react-webcam-B3cXh1XT.js";
|
|
17
|
-
import "./components/Shared/transition.js";
|
|
18
|
-
import { useDialog as he } from "./hooks/useDialog/index.js";
|
|
19
|
-
import "./components/Wallet/Shared/pin.js";
|
|
20
|
-
import "./moment-h96o7c8I.js";
|
|
21
|
-
import "./tooltip-Dv3Lfsa2.js";
|
|
22
|
-
import "./index.esm-BsMAMhYW.js";
|
|
23
|
-
import { c as M } from "./countries-BVn1FubK.js";
|
|
24
|
-
import "./web3-u4qDZYpo.js";
|
|
25
|
-
import "./index-B8QKlEgj.js";
|
|
26
|
-
import "./index-ceeCtFuh.js";
|
|
27
|
-
import "./context/dialogContext.js";
|
|
28
|
-
import { B as T } from "./Box-BwKpr_VI.js";
|
|
29
|
-
import { T as K } from "./Typography-BQDN44CM.js";
|
|
30
|
-
import { A as j, P as ge } from "./pep-C_LViPSb.js";
|
|
31
|
-
import { I as fe, T as Z } from "./TextField-DmiK1A_S.js";
|
|
32
|
-
import { F as ye } from "./FormControl-H4D1Z6Ov.js";
|
|
33
|
-
import { S as Ce } from "./Select-CGei0bav.js";
|
|
34
|
-
import { M as H } from "./MenuItem-ByxiQtY2.js";
|
|
35
|
-
import { G as V } from "./Grid-CPkjiKqX.js";
|
|
36
|
-
const Ee = ({
|
|
37
|
-
inputComponent: p,
|
|
38
|
-
buttonComponent: w,
|
|
39
|
-
setUserInfo: P,
|
|
40
|
-
userInfo: l,
|
|
41
|
-
docData: i,
|
|
42
|
-
setScreen: d,
|
|
43
|
-
userEmail: g
|
|
44
|
-
}) => {
|
|
45
|
-
const N = ne(), { openDialog: f, ConfirmDialog: R } = he(), { showAlertMessage: a } = re(), c = p ?? te, y = w ?? oe, [m, h] = n(l.gender || ""), [_, S] = n(!1), [C, u] = n(l.email || ""), [b, e] = n(!1), [o, W] = n(""), [O, A] = n(l.address || ""), [r, L] = n(l.city || ""), [F, B] = n(l.state || ""), [x, k] = n(l.zipCode || ""), [D, I] = n(!1);
|
|
46
|
-
U(() => {
|
|
47
|
-
g && (u(g), e(!0));
|
|
48
|
-
}, [g]), U(() => {
|
|
49
|
-
var s;
|
|
50
|
-
if (i != null && i.issuingCountry) {
|
|
51
|
-
i.gender && (h(i.gender), S(!0));
|
|
52
|
-
const z = M.find(
|
|
53
|
-
(v) => v.alpha3 === i.issuingCountry
|
|
54
|
-
);
|
|
55
|
-
P({ ...l, country: z, nationality: z });
|
|
56
|
-
const G = new Date(i.birthDate), ie = G.getTimezoneOffset() * 6e4, le = new Date(
|
|
57
|
-
G.getTime() + ie
|
|
58
|
-
);
|
|
59
|
-
if (W(le.toLocaleDateString("en-US")), (s = i.checkedAddressBean) != null && s.street) {
|
|
60
|
-
const v = i.checkedAddressBean;
|
|
61
|
-
I(!0), A(v.street), L(v.city), B(v.state), k(v.postalCode);
|
|
62
|
-
}
|
|
63
|
-
} else
|
|
64
|
-
q();
|
|
65
|
-
}, []);
|
|
66
|
-
const q = () => {
|
|
67
|
-
N(ue());
|
|
68
|
-
};
|
|
69
|
-
return /* @__PURE__ */ E(ee, { children: [
|
|
70
|
-
/* @__PURE__ */ t(T, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ t(se, { totalSteps: 4, currentStep: 2 }) }),
|
|
71
|
-
/* @__PURE__ */ t(R, {}),
|
|
72
|
-
/* @__PURE__ */ E(T, { pl: 2, mt: 4, children: [
|
|
73
|
-
/* @__PURE__ */ t(K, { variant: "h5", sx: { fontWeight: "bold" }, color: "primary", children: "Personal details" }),
|
|
74
|
-
/* @__PURE__ */ t(K, { variant: "caption", children: "Good news! Some of the information will be populated from scanning your document earlier." }),
|
|
75
|
-
/* @__PURE__ */ t(
|
|
76
|
-
c,
|
|
77
|
-
{
|
|
78
|
-
sx: { mt: 3 },
|
|
79
|
-
label: "Date of Birth",
|
|
80
|
-
value: o,
|
|
81
|
-
disabled: !0,
|
|
82
|
-
required: !0
|
|
83
|
-
}
|
|
84
|
-
),
|
|
85
|
-
/* @__PURE__ */ E(ye, { sx: { mt: 3 }, fullWidth: !0, children: [
|
|
86
|
-
/* @__PURE__ */ t(fe, { children: "Gender" }),
|
|
87
|
-
/* @__PURE__ */ E(
|
|
88
|
-
Ce,
|
|
89
|
-
{
|
|
90
|
-
value: m,
|
|
91
|
-
label: "Gender",
|
|
92
|
-
onChange: (s) => h(s.target.value),
|
|
93
|
-
disabled: !!(_ && m),
|
|
94
|
-
required: !0,
|
|
95
|
-
children: [
|
|
96
|
-
/* @__PURE__ */ t(H, { value: "M", children: "Male" }, "M"),
|
|
97
|
-
/* @__PURE__ */ t(H, { value: "F", children: "Female" }, "F"),
|
|
98
|
-
/* @__PURE__ */ t(H, { value: "X", children: "Another" }, "X")
|
|
99
|
-
]
|
|
100
|
-
}
|
|
101
|
-
)
|
|
102
|
-
] }),
|
|
103
|
-
/* @__PURE__ */ t(
|
|
104
|
-
c,
|
|
105
|
-
{
|
|
106
|
-
sx: { mt: 3 },
|
|
107
|
-
label: "Email",
|
|
108
|
-
value: C,
|
|
109
|
-
onChange: (s) => u(s.target.value),
|
|
110
|
-
disabled: b,
|
|
111
|
-
required: !0
|
|
112
|
-
}
|
|
113
|
-
),
|
|
114
|
-
/* @__PURE__ */ t(
|
|
115
|
-
c,
|
|
116
|
-
{
|
|
117
|
-
sx: { mt: 3 },
|
|
118
|
-
label: "Home Address",
|
|
119
|
-
value: O,
|
|
120
|
-
onChange: (s) => A(s.target.value),
|
|
121
|
-
disabled: !!(D && O),
|
|
122
|
-
required: !0
|
|
123
|
-
}
|
|
124
|
-
),
|
|
125
|
-
/* @__PURE__ */ E(V, { container: !0, spacing: 2, sx: { mt: 3 }, children: [
|
|
126
|
-
/* @__PURE__ */ t(V, { size: 6, children: /* @__PURE__ */ t(
|
|
127
|
-
c,
|
|
128
|
-
{
|
|
129
|
-
label: "City",
|
|
130
|
-
value: r,
|
|
131
|
-
onChange: (s) => L(s.target.value),
|
|
132
|
-
disabled: !!(D && r),
|
|
133
|
-
required: !0
|
|
134
|
-
}
|
|
135
|
-
) }),
|
|
136
|
-
/* @__PURE__ */ t(V, { size: 6, children: /* @__PURE__ */ t(
|
|
137
|
-
c,
|
|
138
|
-
{
|
|
139
|
-
label: "State",
|
|
140
|
-
value: F,
|
|
141
|
-
onChange: (s) => B(s.target.value)
|
|
142
|
-
}
|
|
143
|
-
) })
|
|
144
|
-
] }),
|
|
145
|
-
/* @__PURE__ */ t(
|
|
146
|
-
c,
|
|
147
|
-
{
|
|
148
|
-
sx: { mt: 3 },
|
|
149
|
-
label: "Zipcode",
|
|
150
|
-
value: x,
|
|
151
|
-
onChange: (s) => k(s.target.value),
|
|
152
|
-
disabled: !!(D && x),
|
|
153
|
-
required: !0
|
|
154
|
-
}
|
|
155
|
-
)
|
|
156
|
-
] }),
|
|
157
|
-
/* @__PURE__ */ t(
|
|
158
|
-
y,
|
|
159
|
-
{
|
|
160
|
-
sx: { mt: 3 },
|
|
161
|
-
variant: "contained",
|
|
162
|
-
onClick: () => {
|
|
163
|
-
if (!o)
|
|
164
|
-
return a({ message: "Please provide date of birth" });
|
|
165
|
-
if (!m) return a({ message: "Please provide gender" });
|
|
166
|
-
if (!O)
|
|
167
|
-
return a({ message: "Please provide address" });
|
|
168
|
-
if (!r) return a({ message: "Please provide city" });
|
|
169
|
-
if (!x)
|
|
170
|
-
return a({ message: "Please provide zip code" });
|
|
171
|
-
P({ ...l, gender: m, email: C, address: O, city: r, state: F, zipCode: x }), d(J);
|
|
172
|
-
},
|
|
173
|
-
disabled: !C || !O || !m,
|
|
174
|
-
fullWidth: !0,
|
|
175
|
-
children: /* @__PURE__ */ t("strong", { children: "Next" })
|
|
176
|
-
}
|
|
177
|
-
)
|
|
178
|
-
] });
|
|
179
|
-
}, Se = ({
|
|
180
|
-
userInfo: p,
|
|
181
|
-
setUserInfo: w,
|
|
182
|
-
setScreen: P,
|
|
183
|
-
inputComponent: l,
|
|
184
|
-
buttonComponent: i
|
|
185
|
-
}) => {
|
|
186
|
-
const { showAlertMessage: d } = re(), g = l ?? te, N = i ?? oe, [f, R] = n(
|
|
187
|
-
p.placeOfBirth || null
|
|
188
|
-
), [a, c] = n(
|
|
189
|
-
p.country || null
|
|
190
|
-
), [y, m] = n(
|
|
191
|
-
p.nationality || null
|
|
192
|
-
), [h, _] = n(p.occupation || ""), [S, C] = n(p.employer || ""), u = () => {
|
|
193
|
-
if (!f) {
|
|
194
|
-
d({ message: "Please select place of birth" });
|
|
195
|
-
return;
|
|
196
|
-
}
|
|
197
|
-
if (!a) {
|
|
198
|
-
d({ message: "Please select country of residency" });
|
|
199
|
-
return;
|
|
200
|
-
}
|
|
201
|
-
if (!y) {
|
|
202
|
-
d({ message: "Please provide address" });
|
|
203
|
-
return;
|
|
204
|
-
}
|
|
205
|
-
if (!h) {
|
|
206
|
-
d({ message: "Please provide city" });
|
|
207
|
-
return;
|
|
208
|
-
}
|
|
209
|
-
w({
|
|
210
|
-
...p,
|
|
211
|
-
placeOfBirth: f,
|
|
212
|
-
country: a,
|
|
213
|
-
nationality: y,
|
|
214
|
-
occupation: h,
|
|
215
|
-
employer: S
|
|
216
|
-
}), P(ae);
|
|
217
|
-
}, b = (e, o) => /* @__PURE__ */ E(T, { component: "li", sx: { "& > img": { mr: 2, flexShrink: 0 } }, ...e, children: [
|
|
218
|
-
/* @__PURE__ */ t(
|
|
219
|
-
"img",
|
|
220
|
-
{
|
|
221
|
-
loading: "lazy",
|
|
222
|
-
width: "20",
|
|
223
|
-
src: `https://flagcdn.com/w20/${o.alpha2.toLowerCase()}.png`,
|
|
224
|
-
srcSet: `https://flagcdn.com/w40/${o.alpha2.toLowerCase()}.png 2x`,
|
|
225
|
-
alt: ""
|
|
226
|
-
}
|
|
227
|
-
),
|
|
228
|
-
o.name,
|
|
229
|
-
" (",
|
|
230
|
-
o.alpha3,
|
|
231
|
-
")"
|
|
232
|
-
] });
|
|
233
|
-
return /* @__PURE__ */ E(ee, { children: [
|
|
234
|
-
/* @__PURE__ */ t(T, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ t(se, { totalSteps: 4, currentStep: 3 }) }),
|
|
235
|
-
/* @__PURE__ */ E(T, { pl: 2, mt: 4, children: [
|
|
236
|
-
/* @__PURE__ */ t(K, { variant: "h5", sx: { fontWeight: "bold" }, color: "primary", children: "More Personal details" }),
|
|
237
|
-
/* @__PURE__ */ t(K, { variant: "caption", children: "Good news! Some of the information will be populated from scanning your document earlier." }),
|
|
238
|
-
/* @__PURE__ */ t(
|
|
239
|
-
j,
|
|
240
|
-
{
|
|
241
|
-
sx: { mt: 2 },
|
|
242
|
-
value: f,
|
|
243
|
-
onChange: (e, o) => R(o),
|
|
244
|
-
options: M,
|
|
245
|
-
isOptionEqualToValue: (e, o) => e.alpha3 === (o == null ? void 0 : o.alpha3),
|
|
246
|
-
getOptionLabel: (e) => e.name,
|
|
247
|
-
autoHighlight: !0,
|
|
248
|
-
openOnFocus: !0,
|
|
249
|
-
renderOption: b,
|
|
250
|
-
renderInput: (e) => /* @__PURE__ */ t(
|
|
251
|
-
Z,
|
|
252
|
-
{
|
|
253
|
-
...e,
|
|
254
|
-
label: "Place Of Birth",
|
|
255
|
-
inputProps: {
|
|
256
|
-
...e.inputProps,
|
|
257
|
-
autoComplete: "new-password"
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
)
|
|
261
|
-
}
|
|
262
|
-
),
|
|
263
|
-
/* @__PURE__ */ t(
|
|
264
|
-
j,
|
|
265
|
-
{
|
|
266
|
-
sx: { mt: 2 },
|
|
267
|
-
value: a,
|
|
268
|
-
onChange: (e, o) => c(o),
|
|
269
|
-
options: M,
|
|
270
|
-
isOptionEqualToValue: (e, o) => e.alpha3 === (o == null ? void 0 : o.alpha3),
|
|
271
|
-
getOptionLabel: (e) => e.name,
|
|
272
|
-
autoHighlight: !0,
|
|
273
|
-
openOnFocus: !0,
|
|
274
|
-
renderOption: b,
|
|
275
|
-
renderInput: (e) => /* @__PURE__ */ t(
|
|
276
|
-
Z,
|
|
277
|
-
{
|
|
278
|
-
...e,
|
|
279
|
-
label: "Country of residence",
|
|
280
|
-
inputProps: {
|
|
281
|
-
...e.inputProps,
|
|
282
|
-
autoComplete: "new-password"
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
)
|
|
286
|
-
}
|
|
287
|
-
),
|
|
288
|
-
/* @__PURE__ */ t(
|
|
289
|
-
j,
|
|
290
|
-
{
|
|
291
|
-
sx: { mt: 2 },
|
|
292
|
-
value: y,
|
|
293
|
-
onChange: (e, o) => m(o),
|
|
294
|
-
options: M,
|
|
295
|
-
isOptionEqualToValue: (e, o) => e.alpha3 === (o == null ? void 0 : o.alpha3),
|
|
296
|
-
getOptionLabel: (e) => e.name,
|
|
297
|
-
autoHighlight: !0,
|
|
298
|
-
openOnFocus: !0,
|
|
299
|
-
renderOption: b,
|
|
300
|
-
renderInput: (e) => /* @__PURE__ */ t(
|
|
301
|
-
Z,
|
|
302
|
-
{
|
|
303
|
-
...e,
|
|
304
|
-
label: "Country of citizenship",
|
|
305
|
-
inputProps: {
|
|
306
|
-
...e.inputProps,
|
|
307
|
-
autoComplete: "new-password"
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
)
|
|
311
|
-
}
|
|
312
|
-
),
|
|
313
|
-
/* @__PURE__ */ t(
|
|
314
|
-
g,
|
|
315
|
-
{
|
|
316
|
-
sx: { mt: 3 },
|
|
317
|
-
label: "Occupation",
|
|
318
|
-
value: h,
|
|
319
|
-
onChange: (e) => _(e.target.value)
|
|
320
|
-
}
|
|
321
|
-
),
|
|
322
|
-
/* @__PURE__ */ t(
|
|
323
|
-
g,
|
|
324
|
-
{
|
|
325
|
-
sx: { mt: 3 },
|
|
326
|
-
label: "Employer",
|
|
327
|
-
value: S,
|
|
328
|
-
onChange: (e) => C(e.target.value)
|
|
329
|
-
}
|
|
330
|
-
)
|
|
331
|
-
] }),
|
|
332
|
-
/* @__PURE__ */ t(
|
|
333
|
-
N,
|
|
334
|
-
{
|
|
335
|
-
sx: { mt: 3 },
|
|
336
|
-
variant: "contained",
|
|
337
|
-
onClick: u,
|
|
338
|
-
disabled: !f || !a || !y || !h || !S,
|
|
339
|
-
fullWidth: !0,
|
|
340
|
-
children: /* @__PURE__ */ t("strong", { children: "Next" })
|
|
341
|
-
}
|
|
342
|
-
)
|
|
343
|
-
] });
|
|
344
|
-
}, $ = "INCODE_SCREEN", X = "USER_INFO_SCREEN", J = "PERSONAL_DETAILS_SCREEN", ae = "PEP_SCREEN", be = ({
|
|
345
|
-
configurationId: p,
|
|
346
|
-
incodeApiKey: w,
|
|
347
|
-
incodeApiUrl: P,
|
|
348
|
-
incodeOnBoardingUrl: l,
|
|
349
|
-
withContainer: i = !1,
|
|
350
|
-
successHandler: d,
|
|
351
|
-
updateScreen: g
|
|
352
|
-
}) => {
|
|
353
|
-
const N = ne(), f = Y((r) => r.user), R = Y((r) => r.session.uuid), a = f.kyc, c = a.processComplete, y = {}, [m, h] = n(y), [_, S] = n({ token: "" }), [C, u] = n($);
|
|
354
|
-
U(() => {
|
|
355
|
-
let r;
|
|
356
|
-
switch (C) {
|
|
357
|
-
case X:
|
|
358
|
-
r = $;
|
|
359
|
-
break;
|
|
360
|
-
case J:
|
|
361
|
-
r = X;
|
|
362
|
-
break;
|
|
363
|
-
case ae:
|
|
364
|
-
r = J;
|
|
365
|
-
break;
|
|
366
|
-
default:
|
|
367
|
-
r = $;
|
|
368
|
-
}
|
|
369
|
-
u(r);
|
|
370
|
-
}, [g]), U(() => {
|
|
371
|
-
d && c && d();
|
|
372
|
-
}, [d, c]);
|
|
373
|
-
const b = {
|
|
374
|
-
gender: "",
|
|
375
|
-
email: "",
|
|
376
|
-
address: "",
|
|
377
|
-
city: "",
|
|
378
|
-
state: "",
|
|
379
|
-
zipCode: "",
|
|
380
|
-
placeOfBirth: "",
|
|
381
|
-
country: "",
|
|
382
|
-
nationality: "",
|
|
383
|
-
occupation: "",
|
|
384
|
-
employer: "",
|
|
385
|
-
isPoliticalExpose: !1,
|
|
386
|
-
politicalExpose: "",
|
|
387
|
-
origin: "",
|
|
388
|
-
frequency: "",
|
|
389
|
-
reason: "",
|
|
390
|
-
source: ""
|
|
391
|
-
}, [e, o] = n(b), W = (r, L, F, B, x, k) => {
|
|
392
|
-
var D, I, q;
|
|
393
|
-
if (!a.loader) {
|
|
394
|
-
const Q = {
|
|
395
|
-
street: e.address,
|
|
396
|
-
city: e.city,
|
|
397
|
-
postcode: e.zipCode,
|
|
398
|
-
state: e.state,
|
|
399
|
-
country: (D = e.country) == null ? void 0 : D.alpha3
|
|
400
|
-
}, s = {
|
|
401
|
-
isExposed: r,
|
|
402
|
-
exposed: L,
|
|
403
|
-
frequency: F,
|
|
404
|
-
reason: B,
|
|
405
|
-
source: x,
|
|
406
|
-
originFunds: k
|
|
407
|
-
}, z = {
|
|
408
|
-
frequency: F,
|
|
409
|
-
reason: B,
|
|
410
|
-
source: x,
|
|
411
|
-
originFunds: k
|
|
412
|
-
}, G = {
|
|
413
|
-
email: e.email,
|
|
414
|
-
gender: e.gender,
|
|
415
|
-
birthPlace: (I = e.placeOfBirth) == null ? void 0 : I.alpha3,
|
|
416
|
-
nationality: (q = e.nationality) == null ? void 0 : q.alpha3,
|
|
417
|
-
occupation: e.occupation,
|
|
418
|
-
employer: e.employer,
|
|
419
|
-
residentialAddress: Q,
|
|
420
|
-
politicalExposure: s,
|
|
421
|
-
customerDueDiligence: z,
|
|
422
|
-
workflow: {
|
|
423
|
-
token: _.token
|
|
424
|
-
}
|
|
425
|
-
};
|
|
426
|
-
N(me(G));
|
|
427
|
-
}
|
|
428
|
-
}, A = {
|
|
429
|
-
INCODE_SCREEN: /* @__PURE__ */ t(
|
|
430
|
-
pe,
|
|
431
|
-
{
|
|
432
|
-
uuid: R,
|
|
433
|
-
successHandler: () => {
|
|
434
|
-
u(X);
|
|
435
|
-
},
|
|
436
|
-
configurationId: p,
|
|
437
|
-
apiKey: w,
|
|
438
|
-
apiUrl: P,
|
|
439
|
-
onBoardingUrl: l,
|
|
440
|
-
setDocumentsData: h,
|
|
441
|
-
setIncodeSessionData: S
|
|
442
|
-
}
|
|
443
|
-
),
|
|
444
|
-
USER_INFO_SCREEN: /* @__PURE__ */ t(
|
|
445
|
-
Ee,
|
|
446
|
-
{
|
|
447
|
-
docData: m,
|
|
448
|
-
setScreen: u,
|
|
449
|
-
setUserInfo: o,
|
|
450
|
-
userInfo: e,
|
|
451
|
-
userEmail: f.profile.email
|
|
452
|
-
}
|
|
453
|
-
),
|
|
454
|
-
PERSONAL_DETAILS_SCREEN: /* @__PURE__ */ t(
|
|
455
|
-
Se,
|
|
456
|
-
{
|
|
457
|
-
setScreen: u,
|
|
458
|
-
setUserInfo: o,
|
|
459
|
-
userInfo: e
|
|
460
|
-
}
|
|
461
|
-
),
|
|
462
|
-
PEP_SCREEN: /* @__PURE__ */ t(
|
|
463
|
-
ge,
|
|
464
|
-
{
|
|
465
|
-
setScreen: u,
|
|
466
|
-
setUserInfo: o,
|
|
467
|
-
userInfo: e,
|
|
468
|
-
processKyc: W,
|
|
469
|
-
processLoader: a.loader
|
|
470
|
-
}
|
|
471
|
-
)
|
|
472
|
-
}[C];
|
|
473
|
-
return i ? /* @__PURE__ */ t(ce, { addPadding: !1, children: A }) : A;
|
|
474
|
-
}, nt = de(be);
|
|
475
|
-
export {
|
|
476
|
-
nt as F,
|
|
477
|
-
$ as I,
|
|
478
|
-
Se as P,
|
|
479
|
-
Ee as U,
|
|
480
|
-
X as a,
|
|
481
|
-
J as b,
|
|
482
|
-
ae as c
|
|
483
|
-
};
|