everest-npm-features 0.0.64 → 0.0.65

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.
Files changed (104) hide show
  1. package/dist/{PlayArrow-WUr_Eyo1.js → PlayArrow-DbQI55la.js} +1 -1
  2. package/dist/assets/styles.css +1 -1
  3. package/dist/assets/styles2.css +1 -1
  4. package/dist/{auth-Cg-RJNB1.js → auth-D_DKdP4p.js} +1 -1
  5. package/dist/{bank-CPJa0NOE.js → bank-DIuQN1YY.js} +1 -1
  6. package/dist/components/RocketRamp/MinimalKyc/form.js +5 -5
  7. package/dist/components/RocketRamp/Player/Buy/cardPayment.js +3 -3
  8. package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +3 -3
  9. package/dist/components/RocketRamp/Player/Buy/form.js +4 -4
  10. package/dist/components/RocketRamp/Player/Buy/index.js +5 -5
  11. package/dist/components/RocketRamp/Player/Dashboard/index.js +2 -2
  12. package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +3 -3
  13. package/dist/components/RocketRamp/Player/Sell/form.js +4 -4
  14. package/dist/components/RocketRamp/Player/Sell/index.js +7 -7
  15. package/dist/components/RocketRamp/Player/SignIn/index.js +2 -2
  16. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +2 -2
  17. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +2 -2
  18. package/dist/components/RocketRamp/Player/SignUp/email.js +2 -2
  19. package/dist/components/RocketRamp/Player/SignUp/index.js +2 -2
  20. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +2 -2
  21. package/dist/components/RocketRamp/ResetPassword/index.js +2 -2
  22. package/dist/components/RocketRamp/Store/SignUp/index.js +2 -2
  23. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +2 -2
  24. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +2 -2
  25. package/dist/components/RocketRamp/Transactions/index.js +2 -2
  26. package/dist/components/Shared/FullKyc/edd.js +5 -5
  27. package/dist/components/Shared/FullKyc/index.js +4 -4
  28. package/dist/components/Shared/FullKyc/pep.js +27 -27
  29. package/dist/components/Shared/FullKyc/personalDetails.js +3 -3
  30. package/dist/components/Shared/FullKyc/types.d.ts +4 -4
  31. package/dist/components/Shared/FullKyc/userInfo.js +5 -5
  32. package/dist/components/Shared/MinimalKyc/index.js +2 -2
  33. package/dist/components/Shared/Sumsub/index.d.ts +1 -1
  34. package/dist/components/Shared/Sumsub/index.js +36 -34
  35. package/dist/components/Wallet/Account/createIban.js +5 -5
  36. package/dist/components/Wallet/Account/eWallet.js +1 -1
  37. package/dist/components/Wallet/Account/iban.js +3 -3
  38. package/dist/components/Wallet/Account/ibanItem.js +21 -6
  39. package/dist/components/Wallet/Account/index.js +6 -6
  40. package/dist/components/Wallet/Account/sendIban.js +2 -2
  41. package/dist/components/Wallet/Buy/confirmTransaction.js +6 -6
  42. package/dist/components/Wallet/Buy/form.js +4 -4
  43. package/dist/components/Wallet/Buy/index.js +6 -6
  44. package/dist/components/Wallet/Deposit/index.js +3 -3
  45. package/dist/components/Wallet/EnterpriseKyc/edd.js +4 -4
  46. package/dist/components/Wallet/EnterpriseKyc/index.d.ts +1 -1
  47. package/dist/components/Wallet/EnterpriseKyc/index.js +111 -109
  48. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +5 -5
  49. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +3 -3
  50. package/dist/components/Wallet/EnterpriseKyc/types.d.ts +16 -4
  51. package/dist/components/Wallet/EnterpriseKyc/verify.js +3 -3
  52. package/dist/components/Wallet/History/index.js +2 -2
  53. package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +11 -11
  54. package/dist/components/Wallet/Portfolio/index.js +7 -7
  55. package/dist/components/Wallet/Profile/documents.js +47 -40
  56. package/dist/components/Wallet/Profile/index.js +69 -48
  57. package/dist/components/Wallet/Profile/storage.js +40 -33
  58. package/dist/components/Wallet/Receive/index.js +2 -2
  59. package/dist/components/Wallet/Sell/confirmTransaction.js +5 -5
  60. package/dist/components/Wallet/Sell/form.js +4 -4
  61. package/dist/components/Wallet/Sell/index.js +6 -6
  62. package/dist/components/Wallet/Send/index.js +4 -4
  63. package/dist/components/Wallet/Shared/Auth/otpForm.js +3 -3
  64. package/dist/components/Wallet/Shared/BankSelect/index.js +3 -3
  65. package/dist/components/Wallet/Shared/CardCorp/index.js +3 -3
  66. package/dist/components/Wallet/Shared/addBank.js +4 -4
  67. package/dist/components/Wallet/Shared/connectPlaidBank.js +2 -2
  68. package/dist/components/Wallet/Shared/manualSend.js +5 -5
  69. package/dist/components/Wallet/SignIn/index.js +3 -3
  70. package/dist/components/Wallet/SignUp/index.js +3 -3
  71. package/dist/components/Wallet/Stake/gems/index.js +1 -1
  72. package/dist/components/Wallet/Stake/id/index.js +19 -14
  73. package/dist/components/Wallet/Stake/index.js +6 -6
  74. package/dist/components/Wallet/Swap/form.js +7 -7
  75. package/dist/components/Wallet/Swap/index.js +5 -5
  76. package/dist/components/Wallet/Withdraw/bankSelect.js +4 -4
  77. package/dist/components/Wallet/Withdraw/confirmTransaction.js +3 -3
  78. package/dist/components/Wallet/Withdraw/form.js +4 -4
  79. package/dist/components/Wallet/Withdraw/index.js +5 -5
  80. package/dist/{constants-BRS2liAt.js → constants-B-_x7F8X.js} +19 -19
  81. package/dist/{createIban-DKoCQ4o3.js → createIban-CbxsxTxl.js} +77 -70
  82. package/dist/{cryptoAssets-BD0cJpXM.js → cryptoAssets-Cmdg7BR-.js} +1 -1
  83. package/dist/hooks/useDialog/index.js +11 -9
  84. package/dist/{index-DX8IEulu.js → index-9VVh1IhH.js} +4 -4
  85. package/dist/{index-BUtxhHso.js → index-BeEuJLqT.js} +7 -7
  86. package/dist/{index-CZhiRUiE.js → index-C_Vf8Evc.js} +4 -4
  87. package/dist/{index-hgn4Pjw3.js → index-Cx8dey5q.js} +6 -6
  88. package/dist/{index-C2weAjLp.js → index-DXw2h9nQ.js} +8 -8
  89. package/dist/index-DtTDOPWZ.js +562 -0
  90. package/dist/{index-D7Eq-pbC.js → index-DuOJBwgp.js} +8 -8
  91. package/dist/{kyc-C7NviI9l.js → kyc-BXoUxN4z.js} +1 -1
  92. package/dist/main.js +7 -7
  93. package/dist/{order-DBuLYKfx.js → order-DAiOqPsI.js} +1 -1
  94. package/dist/{otpForm-DhVp5Gvi.js → otpForm-WjQmPs8D.js} +2 -2
  95. package/dist/{stake-DGXpiw_Y.js → stake-CzXNB3em.js} +1 -1
  96. package/dist/styles.module-4N8hJhXS.js +22 -0
  97. package/dist/styles.module-DYytghn2.js +28 -0
  98. package/dist/util/constants.d.ts +2 -2
  99. package/dist/util/constants.js +1 -1
  100. package/dist/{wallet-BLx0XKpK.js → wallet-Cw-0XynY.js} +1 -1
  101. package/package.json +1 -1
  102. package/dist/index-oPbOSCUk.js +0 -545
  103. package/dist/styles.module-C99UuHOT.js +0 -22
  104. package/dist/styles.module-DFoezEqS.js +0 -28
@@ -0,0 +1,22 @@
1
+ import './assets/styles2.css';const t = "_container_12mt6_1", _ = "_active_12mt6_43", e = {
2
+ container: t,
3
+ "inner-container": "_inner-container_12mt6_15",
4
+ "sub-tabs": "_sub-tabs_12mt6_29",
5
+ active: _,
6
+ "sub-tabs-item": "_sub-tabs-item_12mt6_53",
7
+ "buy-sell-text": "_buy-sell-text_12mt6_65",
8
+ "heading-text": "_heading-text_12mt6_75",
9
+ "info-icon": "_info-icon_12mt6_89",
10
+ "button-icon": "_button-icon_12mt6_99",
11
+ "add-container": "_add-container_12mt6_109",
12
+ "move-id": "_move-id_12mt6_117",
13
+ "move-id-text": "_move-id-text_12mt6_133",
14
+ "move-btn": "_move-btn_12mt6_145",
15
+ "time-item": "_time-item_12mt6_169",
16
+ "item-1st": "_item-1st_12mt6_193",
17
+ "item-last": "_item-last_12mt6_203",
18
+ "stake-modal-content": "_stake-modal-content_12mt6_215"
19
+ };
20
+ export {
21
+ e as s
22
+ };
@@ -0,0 +1,28 @@
1
+ import './assets/styles.css';const e = "_container_1fgq8_1", t = "_heading_1fgq8_27", _ = "_sBtn_1fgq8_73", n = "_twitterCancelBtn_1fgq8_405", o = {
2
+ container: e,
3
+ "inner-container": "_inner-container_1fgq8_13",
4
+ heading: t,
5
+ "profile-feat-btn": "_profile-feat-btn_1fgq8_41",
6
+ "ref-btn": "_ref-btn_1fgq8_57",
7
+ sBtn: _,
8
+ "doc-video-box": "_doc-video-box_1fgq8_117",
9
+ "image-corner-color": "_image-corner-color_1fgq8_193",
10
+ "video-box-inner-content": "_video-box-inner-content_1fgq8_207",
11
+ "menu-item": "_menu-item_1fgq8_217",
12
+ "remove-icon": "_remove-icon_1fgq8_233",
13
+ "delete-disable": "_delete-disable_1fgq8_247",
14
+ "confirm-edit": "_confirm-edit_1fgq8_263",
15
+ "asset-header": "_asset-header_1fgq8_279",
16
+ "asset-close-btn": "_asset-close-btn_1fgq8_295",
17
+ "dialog-container": "_dialog-container_1fgq8_309",
18
+ "confirm-dialog": "_confirm-dialog_1fgq8_323",
19
+ "confirm-dialog-title": "_confirm-dialog-title_1fgq8_331",
20
+ "tweet-text-parent": "_tweet-text-parent_1fgq8_343",
21
+ "tweet-disable-text": "_tweet-disable-text_1fgq8_369",
22
+ "tweet-text-area": "_tweet-text-area_1fgq8_387",
23
+ twitterCancelBtn: n,
24
+ "kyc-approved": "_kyc-approved_1fgq8_449"
25
+ };
26
+ export {
27
+ o as s
28
+ };
@@ -101,8 +101,8 @@ export declare const KYC_OVER_TRANSATION = "Over $100,000";
101
101
  export declare const KYC_BETWEEN_TRANSATION = "Over $1,000 & Under $100,000";
102
102
  export declare const KYC_UNDER_TRANSATION = "Under $1,000";
103
103
  export declare const CARD_PAYMENT_DECLINE = "Declined";
104
- export declare const KYC_APROVED_TOOLTIP = "You are allowed to transact up to $10,000";
105
- export declare const KYC_ELITE_TOOLTIP = "You are allowed to transact more than $10,000";
104
+ export declare const KYC_APROVED_TOOLTIP = "You are allowed to transact up to $100,000";
105
+ export declare const KYC_ELITE_TOOLTIP = "You are allowed to transact more than $100,000";
106
106
  export declare const FEATURE_EWALLET = "eWallet";
107
107
  export declare const FEATURE_VIRTUAL_IBAN = "Virtual IBAN";
108
108
  export declare const KYC_PROVIDER_INCODE: "incode";
@@ -1,4 +1,4 @@
1
- const _ = "https://static-assets.everest.org", E = _ + "/web/widget", n = _ + "/web/enterprise", s = _ + "/web/wallet/images", t = s + "/new", e = t + "/sell-withdraw.png", c = t + "/back-btn.png", T = t + "/delete.png", A = n + "/history-buy.svg", a = n + "/history-sell.svg", I = n + "/history-swap.svg", O = t + "/wallet-icon.png", N = t + "/stake-id.png", R = s + "/stake-gem.png", S = n + "/swap-receive-down-arrow.svg", r = t + "/sepa-payment.png", i = t + "/sepa-payment-selected.png", P = t + "/visa-payment.png", L = t + "/visa-payment-selected.png", C = t + "/sepa.png", D = t + "/visa.png", d = t + "/dialog-error.png", Y = t + "/dialog-success.png", p = n + "/expand-down-arrow.svg", M = n + "/expand-right-arrow.svg", g = n + "/back-arrow.svg", l = n + "/right-arrow.svg", K = n + "/radio-button.svg", U = n + "/radio-button-selected.svg", B = n + "/sepa.png", u = n + "/sepa-selected.png", h = n + "/visa.png", v = n + "/visa-selected.png", W = t + "/cloud-icon.png", y = t + "/storage-success.png", m = "vortex", V = "railsbank", w = "open_payd", G = "checkout", b = "trustpayments", k = "paysafe", H = "cardcorp", F = "plaid", f = "$", X = "€", $ = "USD", x = "EUR", j = "GBP", z = "Binance", Z = "Polygon", q = "EverChain", J = "IDChain", Q = "Ethereum", tt = "Avalanche", nt = "USD.c", _t = "EUR.c", st = "EURE.c", ot = "GBP.c", Et = "BTC.c", et = "GEMS.c", ct = "ID", Tt = "GEMS", At = "USDR.c", at = "fiat_to_token", It = "fiat_to_everid", Ot = "token_to_fiat", Nt = "token_to_token", Rt = "withdraw", St = "iban_creation", rt = "bank_transfer", it = "bank_deposit", Pt = "Created", Lt = "In Process", Ct = "Completed", Dt = "Failed", dt = "Awaiting Approved", Yt = "Rejected", pt = "ID", Mt = "GEMS", gt = 90, lt = 3, Kt = 180, Ut = 8, Bt = 365, ut = 18, ht = 365, vt = 20, Wt = "Linked Wallets make transactions easier, automating the signing process during Sell, Swap, Stake, Send and Remit transactions because you have backed up your Private Key with Everest.", yt = "Connected Wallets are those that you have demonstrated you control, but you must manually move tokens as the system can not do so without the Private Key.", mt = "The rate shown here is an estimate and the rate you receive will be determined at the time when your payment is settled. The time taken for your payment to settle can vary depending on currency and payment method.", Vt = 300, wt = "username can only contain letters, numbers, underscores & cannot exceed more than 13 characters", Gt = "_rr", bt = "credit_debit_card", kt = "sepa_bank_transfer", Ht = "player", Ft = "store", ft = "login_screen", Xt = "register_screen", $t = "Individual", xt = "Organization", jt = "Over $100,000", zt = "Over $1,000 & Under $100,000", Zt = "Under $1,000", qt = "Declined", Jt = "You are allowed to transact up to $10,000", Qt = "You are allowed to transact more than $10,000", tn = "eWallet", nn = "Virtual IBAN", _n = "incode", o = "sumsub", sn = o;
1
+ const _ = "https://static-assets.everest.org", E = _ + "/web/widget", n = _ + "/web/enterprise", s = _ + "/web/wallet/images", t = s + "/new", e = t + "/sell-withdraw.png", c = t + "/back-btn.png", T = t + "/delete.png", A = n + "/history-buy.svg", a = n + "/history-sell.svg", I = n + "/history-swap.svg", O = t + "/wallet-icon.png", N = t + "/stake-id.png", R = s + "/stake-gem.png", S = n + "/swap-receive-down-arrow.svg", r = t + "/sepa-payment.png", i = t + "/sepa-payment-selected.png", P = t + "/visa-payment.png", L = t + "/visa-payment-selected.png", C = t + "/sepa.png", D = t + "/visa.png", d = t + "/dialog-error.png", Y = t + "/dialog-success.png", p = n + "/expand-down-arrow.svg", M = n + "/expand-right-arrow.svg", g = n + "/back-arrow.svg", l = n + "/right-arrow.svg", K = n + "/radio-button.svg", U = n + "/radio-button-selected.svg", B = n + "/sepa.png", u = n + "/sepa-selected.png", h = n + "/visa.png", v = n + "/visa-selected.png", W = t + "/cloud-icon.png", y = t + "/storage-success.png", m = "vortex", V = "railsbank", w = "open_payd", G = "checkout", b = "trustpayments", k = "paysafe", H = "cardcorp", F = "plaid", f = "$", X = "€", $ = "USD", x = "EUR", j = "GBP", z = "Binance", Z = "Polygon", q = "EverChain", J = "IDChain", Q = "Ethereum", tt = "Avalanche", nt = "USD.c", _t = "EUR.c", st = "EURE.c", ot = "GBP.c", Et = "BTC.c", et = "GEMS.c", ct = "ID", Tt = "GEMS", At = "USDR.c", at = "fiat_to_token", It = "fiat_to_everid", Ot = "token_to_fiat", Nt = "token_to_token", Rt = "withdraw", St = "iban_creation", rt = "bank_transfer", it = "bank_deposit", Pt = "Created", Lt = "In Process", Ct = "Completed", Dt = "Failed", dt = "Awaiting Approved", Yt = "Rejected", pt = "ID", Mt = "GEMS", gt = 90, lt = 3, Kt = 180, Ut = 8, Bt = 365, ut = 18, ht = 365, vt = 20, Wt = "Linked Wallets make transactions easier, automating the signing process during Sell, Swap, Stake, Send and Remit transactions because you have backed up your Private Key with Everest.", yt = "Connected Wallets are those that you have demonstrated you control, but you must manually move tokens as the system can not do so without the Private Key.", mt = "The rate shown here is an estimate and the rate you receive will be determined at the time when your payment is settled. The time taken for your payment to settle can vary depending on currency and payment method.", Vt = 300, wt = "username can only contain letters, numbers, underscores & cannot exceed more than 13 characters", Gt = "_rr", bt = "credit_debit_card", kt = "sepa_bank_transfer", Ht = "player", Ft = "store", ft = "login_screen", Xt = "register_screen", $t = "Individual", xt = "Organization", jt = "Over $100,000", zt = "Over $1,000 & Under $100,000", Zt = "Under $1,000", qt = "Declined", Jt = "You are allowed to transact up to $100,000", Qt = "You are allowed to transact more than $100,000", tn = "eWallet", nn = "Virtual IBAN", _n = "incode", o = "sumsub", sn = o;
2
2
  export {
3
3
  S as ARROW_ICON,
4
4
  tt as AVALANCHE_NETWORK,
@@ -1,4 +1,4 @@
1
- import { F as a, U as e, p as t, q as E, r as T, s as A, t as _, u as o, v as S, w as l } from "./constants-BRS2liAt.js";
1
+ import { F as a, U as e, p as t, q as E, r as T, s as A, t as _, u as o, v as S, w as l } from "./constants-B-_x7F8X.js";
2
2
  const L = () => ({
3
3
  type: e
4
4
  }), d = () => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "everest-npm-features",
3
- "version": "0.0.64",
3
+ "version": "0.0.65",
4
4
  "description": "Everest frontend features library.",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
@@ -1,545 +0,0 @@
1
- import { jsxs as A, Fragment as le, jsx as t } from "react/jsx-runtime";
2
- import { useState as r, useEffect as M, useRef as Ae } from "react";
3
- import { AuthContainer as Oe } from "./components/Wallet/Shared/Container/index.js";
4
- import { Box as ee, Typography as te, FormControl as _e, InputLabel as Pe, Select as Re, MenuItem as oe, Grid as se } from "@mui/material";
5
- import be from "./hoc/withThemeProvider.js";
6
- import Se from "./components/Wallet/Shared/Input/index.js";
7
- import ve from "./components/Wallet/Shared/appButton.js";
8
- import "./index-DlQqWbXG.js";
9
- import "./otpForm-DhVp5Gvi.js";
10
- import { d as B, f as Be } from "./constants-BRS2liAt.js";
11
- import { c as Le, d as Te } from "./kyc-C7NviI9l.js";
12
- import { useSnackBarContext as pe } from "./context/snackBarContext.js";
13
- import xe from "./hooks/useEverestDispatch.js";
14
- import "./util/conversions.js";
15
- import "./index-CAoLi5Qq.js";
16
- import Ne from "./components/Wallet/Shared/step.js";
17
- import "./react-webcam-B3cXh1XT.js";
18
- import "./components/Shared/transition.js";
19
- import "./tooltip-BW0UyWw7.js";
20
- import "./moment-h96o7c8I.js";
21
- import "./index.esm-BsMAMhYW.js";
22
- import { c as Ie } from "./countries-BVn1FubK.js";
23
- import "./web3-u4qDZYpo.js";
24
- import "./index-ceeCtFuh.js";
25
- import "./context/dialogContext.js";
26
- import "@mui/icons-material";
27
- import de from "./components/Shared/FullKyc/countryList.js";
28
- import Ke from "./components/Shared/FullKyc/pep.js";
29
- import { p as Fe } from "./index-CREgBh59.js";
30
- import { u as H } from "./react-redux-C7I9-1M6.js";
31
- import ze from "./components/Shared/FullKyc/edd.js";
32
- import Me from "./components/Shared/Sumsub/index.js";
33
- const qe = ({
34
- inputComponent: g,
35
- buttonComponent: Z,
36
- setUserInfo: q,
37
- userInfo: l,
38
- docData: s,
39
- setScreen: u,
40
- userEmail: y,
41
- kycFlow: h
42
- }) => {
43
- const d = xe(), { showAlertMessage: m } = pe(), o = g ?? Se, w = Z ?? ve, [a, c] = r(l.gender || ""), [f, L] = r(!1), [E, S] = r(l.email || ""), [ne, re] = r(!1), [$, ie] = r(""), [v, C] = r(l.address || ""), [T, n] = r(l.city || ""), [I, O] = r(l.state || ""), [K, U] = r(l.zipCode || ""), [_, V] = r(
44
- l.country || null
45
- ), [e, W] = r(!1);
46
- M(() => {
47
- y && (S(y), re(!0));
48
- }, [y]), M(() => {
49
- var i;
50
- if (s != null && s.issuingCountry) {
51
- s.gender && (c(s.gender), L(!0));
52
- const x = Ie.find(
53
- (p) => p.alpha3 === s.issuingCountry
54
- );
55
- q({ ...l, country: x, nationality: x });
56
- const N = new Date(s.birthDate), z = N.getTimezoneOffset() * 6e4, R = new Date(
57
- N.getTime() + z
58
- );
59
- if (ie(R.toLocaleDateString("en-US")), (i = s.checkedAddressBean) != null && i.street) {
60
- const p = s.checkedAddressBean;
61
- W(!0), C(p.street), n(p.city), O(p.state), U(p.postalCode);
62
- }
63
- } else
64
- P();
65
- }, []);
66
- const P = () => {
67
- d(Le());
68
- };
69
- return /* @__PURE__ */ A(le, { children: [
70
- h !== B && /* @__PURE__ */ t(ee, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ t(Ne, { totalSteps: 4, currentStep: 2 }) }),
71
- /* @__PURE__ */ A(ee, { mt: 4, children: [
72
- /* @__PURE__ */ t(te, { variant: "h5", sx: { fontWeight: "bold" }, color: "primary", children: "Personal details" }),
73
- h !== B && /* @__PURE__ */ A(le, { children: [
74
- /* @__PURE__ */ t(te, { variant: "caption", children: "Good news! Some of the information will be populated from scanning your document earlier." }),
75
- /* @__PURE__ */ t(
76
- o,
77
- {
78
- sx: { mt: 3 },
79
- label: "Date of Birth",
80
- value: $,
81
- disabled: !0,
82
- required: !0
83
- }
84
- ),
85
- /* @__PURE__ */ A(_e, { sx: { mt: 3 }, fullWidth: !0, children: [
86
- /* @__PURE__ */ t(Pe, { children: "Gender" }),
87
- /* @__PURE__ */ A(
88
- Re,
89
- {
90
- value: a,
91
- label: "Gender",
92
- onChange: (i) => c(i.target.value),
93
- disabled: !!(f && a),
94
- required: !0,
95
- children: [
96
- /* @__PURE__ */ t(oe, { value: "M", children: "Male" }, "M"),
97
- /* @__PURE__ */ t(oe, { value: "F", children: "Female" }, "F"),
98
- /* @__PURE__ */ t(oe, { value: "X", children: "Another" }, "X")
99
- ]
100
- }
101
- )
102
- ] }),
103
- /* @__PURE__ */ t(
104
- o,
105
- {
106
- sx: { mt: 3 },
107
- label: "Email",
108
- value: E,
109
- onChange: (i) => S(i.target.value),
110
- disabled: ne,
111
- required: !0
112
- }
113
- )
114
- ] }),
115
- /* @__PURE__ */ t(
116
- o,
117
- {
118
- sx: { mt: 3 },
119
- label: "Home Address",
120
- value: v,
121
- onChange: (i) => C(i.target.value),
122
- disabled: !!(e && v),
123
- required: !0
124
- }
125
- ),
126
- /* @__PURE__ */ A(se, { container: !0, spacing: 2, sx: { mt: 3 }, children: [
127
- /* @__PURE__ */ t(se, { size: 6, children: /* @__PURE__ */ t(
128
- o,
129
- {
130
- label: "City",
131
- value: T,
132
- onChange: (i) => n(i.target.value),
133
- disabled: !!(e && T),
134
- required: !0
135
- }
136
- ) }),
137
- /* @__PURE__ */ t(se, { size: 6, children: /* @__PURE__ */ t(
138
- o,
139
- {
140
- label: "State/Province",
141
- value: I,
142
- onChange: (i) => O(i.target.value)
143
- }
144
- ) })
145
- ] }),
146
- /* @__PURE__ */ t(
147
- o,
148
- {
149
- sx: { mt: 3 },
150
- label: "Zipcode",
151
- value: K,
152
- onChange: (i) => U(i.target.value),
153
- disabled: !!(e && K),
154
- required: !0
155
- }
156
- ),
157
- /* @__PURE__ */ t(
158
- de,
159
- {
160
- value: _,
161
- onChange: V,
162
- label: "Country of residence"
163
- }
164
- )
165
- ] }),
166
- /* @__PURE__ */ t(
167
- w,
168
- {
169
- sx: { mt: 3 },
170
- variant: "contained",
171
- onClick: () => {
172
- if (h !== B) {
173
- if (!$)
174
- return m({ message: "Please provide date of birth" });
175
- if (!a)
176
- return m({ message: "Please provide gender" });
177
- }
178
- if (!v)
179
- return m({ message: "Please provide address" });
180
- if (!T) return m({ message: "Please provide city" });
181
- if (!K)
182
- return m({ message: "Please provide zip code" });
183
- if (!_)
184
- return m({
185
- message: "Please select country of residency"
186
- });
187
- q({
188
- ...l,
189
- gender: a,
190
- email: E,
191
- address: v,
192
- city: T,
193
- state: I,
194
- zipCode: K,
195
- country: _
196
- }), u(
197
- h !== B ? ce : me
198
- );
199
- },
200
- disabled: h !== B && !E || h !== B && !a || !v || !_,
201
- fullWidth: !0,
202
- children: /* @__PURE__ */ t("strong", { children: "Next" })
203
- }
204
- )
205
- ] });
206
- }, we = ({
207
- userInfo: g,
208
- setUserInfo: Z,
209
- setScreen: q,
210
- inputComponent: l,
211
- buttonComponent: s
212
- }) => {
213
- const { showAlertMessage: u } = pe(), y = l ?? Se, h = s ?? ve, [d, m] = r(
214
- g.placeOfBirth || null
215
- ), [o, w] = r(
216
- g.nationality || null
217
- ), [a, c] = r(g.occupation || ""), [f, L] = r(g.employer || "");
218
- return /* @__PURE__ */ A(le, { children: [
219
- /* @__PURE__ */ t(ee, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ t(Ne, { totalSteps: 4, currentStep: 3 }) }),
220
- /* @__PURE__ */ A(ee, { mt: 4, children: [
221
- /* @__PURE__ */ t(te, { variant: "h5", sx: { fontWeight: "bold" }, color: "primary", children: "More Personal details" }),
222
- /* @__PURE__ */ t(te, { variant: "caption", children: "Good news! Some of the information will be populated from scanning your document earlier." }),
223
- /* @__PURE__ */ t(
224
- de,
225
- {
226
- value: d,
227
- onChange: m,
228
- label: "Place Of Birth"
229
- }
230
- ),
231
- /* @__PURE__ */ t(
232
- de,
233
- {
234
- value: o,
235
- onChange: w,
236
- label: "Country of citizenship"
237
- }
238
- ),
239
- /* @__PURE__ */ t(
240
- y,
241
- {
242
- sx: { mt: 3 },
243
- label: "Occupation",
244
- value: a,
245
- onChange: (S) => c(S.target.value)
246
- }
247
- ),
248
- /* @__PURE__ */ t(
249
- y,
250
- {
251
- sx: { mt: 3 },
252
- label: "Employer",
253
- value: f,
254
- onChange: (S) => L(S.target.value)
255
- }
256
- )
257
- ] }),
258
- /* @__PURE__ */ t(
259
- h,
260
- {
261
- sx: { mt: 3 },
262
- variant: "contained",
263
- onClick: () => {
264
- if (!d) {
265
- u({ message: "Please select place of birth" });
266
- return;
267
- }
268
- if (!o) {
269
- u({ message: "Please provide address" });
270
- return;
271
- }
272
- if (!a) {
273
- u({ message: "Please provide city" });
274
- return;
275
- }
276
- Z({
277
- ...g,
278
- placeOfBirth: d,
279
- nationality: o,
280
- occupation: a,
281
- employer: f
282
- }), q(me);
283
- },
284
- disabled: !d || !o || !a || !f,
285
- fullWidth: !0,
286
- children: /* @__PURE__ */ t("strong", { children: "Next" })
287
- }
288
- )
289
- ] });
290
- }, ae = "INCODE_SCREEN", D = "USER_INFO_SCREEN", ce = "PERSONAL_DETAILS_SCREEN", me = "PEP_SCREEN", Ue = "EDD_SCREEN", We = {
291
- BANK_STATEMENT: {
292
- text: "",
293
- file: [],
294
- preview: []
295
- },
296
- PROOF_OF_INCOME: {
297
- text: "",
298
- file: [],
299
- preview: []
300
- },
301
- SOURCE_OF_WEALTH: {
302
- text: "",
303
- file: [],
304
- preview: []
305
- }
306
- }, Ge = ({
307
- configurationId: g,
308
- incodeApiKey: Z,
309
- incodeApiUrl: q,
310
- incodeOnBoardingUrl: l,
311
- withContainer: s = !1,
312
- successHandler: u,
313
- updateScreen: y,
314
- isModalView: h = !1,
315
- kycFlow: d
316
- }) => {
317
- const m = Ae(!0), { showAlertMessage: o } = pe(), w = xe(), a = H((e) => e.user), c = H((e) => e.user.kyc);
318
- H((e) => e.session.uuid);
319
- const f = a.kyc, L = f.processComplete, E = H(Fe), S = {}, [ne, re] = r(S);
320
- r({ token: "" });
321
- const [$, ie] = r(""), [v, C] = r(
322
- d === B ? D : ae
323
- );
324
- M(() => {
325
- if (m.current) {
326
- m.current = !1;
327
- return;
328
- }
329
- let e;
330
- switch (v) {
331
- case D:
332
- e = ae;
333
- break;
334
- case ce:
335
- e = D;
336
- break;
337
- case me:
338
- e = ce;
339
- break;
340
- default:
341
- e = ae;
342
- }
343
- C(e);
344
- }, [y]), M(() => {
345
- let e;
346
- return u && L && (E.shouldAutoCreate && E.currency ? e = setTimeout(() => {
347
- o({
348
- message: "KYC verification complete. Creating your Virtual IBAN...",
349
- type: "success"
350
- }), u();
351
- }, 1e3) : (o({
352
- message: "KYC request has been received and will be processed shortly.",
353
- type: "success"
354
- }), u())), () => {
355
- e && clearTimeout(e);
356
- };
357
- }, [u, L, E.shouldAutoCreate, E.currency]);
358
- const T = {
359
- gender: "",
360
- email: "",
361
- address: "",
362
- city: "",
363
- state: "",
364
- zipCode: "",
365
- placeOfBirth: "",
366
- country: "",
367
- nationality: "",
368
- occupation: "",
369
- employer: "",
370
- isPoliticalExpose: !1,
371
- politicalExpose: "",
372
- origin: "",
373
- frequency: "",
374
- reason: "",
375
- source: ""
376
- }, [n, I] = r(T), [O, K] = r(We);
377
- M(() => {
378
- O.BANK_STATEMENT.file.length > 0 && U(O);
379
- }, [O]);
380
- const U = (e) => {
381
- _(
382
- n.isPoliticalExpose,
383
- n.politicalExpose,
384
- n.frequency,
385
- n.reason,
386
- n.source,
387
- n.origin,
388
- e,
389
- !0
390
- );
391
- }, _ = (e, W, P, F, i, x, N, z = !1) => {
392
- var R, p, G;
393
- if (d !== Be && !z) {
394
- C(Ue);
395
- return;
396
- }
397
- if (!f.loader) {
398
- const X = {
399
- street: n.address,
400
- city: n.city,
401
- postcode: n.zipCode,
402
- state: n.state,
403
- country: (R = n.country) == null ? void 0 : R.alpha3
404
- }, J = {
405
- isExposed: e,
406
- exposed: W,
407
- frequency: P,
408
- reason: F,
409
- source: i,
410
- originFunds: x
411
- }, Q = {
412
- frequency: P,
413
- reason: F,
414
- source: i,
415
- originFunds: x
416
- }, Y = {
417
- kycFlow: d,
418
- email: n.email,
419
- gender: n.gender,
420
- birthPlace: (p = n.placeOfBirth) == null ? void 0 : p.alpha3,
421
- nationality: (G = n.nationality) == null ? void 0 : G.alpha3,
422
- occupation: n.occupation,
423
- employer: n.employer,
424
- residentialAddress: X,
425
- politicalExposure: J,
426
- customerDueDiligence: Q,
427
- workflow: {
428
- token: $
429
- }
430
- };
431
- if (N) {
432
- const j = Object.entries(N).filter(([k, b]) => b.file && b.file.length > 0).map(([k, b]) => ({
433
- file: b.file[0],
434
- type: k
435
- }));
436
- j.length > 0 && (Y.eddDocuments = j);
437
- }
438
- w(Te(Y));
439
- }
440
- };
441
- M(() => {
442
- var P, F, i, x, N, z, R, p, G, X, J, Q, Y, j, k, b, ue, fe, he, Ee, Ce, ge, ye;
443
- const e = c == null ? void 0 : c.sumsubDocumentData;
444
- if (!e) return;
445
- const W = {
446
- name: {
447
- fullName: `${((P = e == null ? void 0 : e.documentData) == null ? void 0 : P.firstName) ?? ""} ${((F = e == null ? void 0 : e.documentData) == null ? void 0 : F.lastName) ?? ""}`.trim(),
448
- firstName: ((i = e == null ? void 0 : e.documentData) == null ? void 0 : i.firstName) ?? "",
449
- givenName: ((x = e == null ? void 0 : e.documentData) == null ? void 0 : x.firstName) ?? "",
450
- paternalLastName: ((N = e == null ? void 0 : e.documentData) == null ? void 0 : N.lastName) ?? ""
451
- },
452
- address: ((R = (z = e == null ? void 0 : e.documentData) == null ? void 0 : z.address) == null ? void 0 : R.street) ?? "",
453
- checkedAddressBean: {
454
- street: ((G = (p = e == null ? void 0 : e.documentData) == null ? void 0 : p.address) == null ? void 0 : G.street) ?? "",
455
- city: ((J = (X = e == null ? void 0 : e.documentData) == null ? void 0 : X.address) == null ? void 0 : J.city) ?? "",
456
- state: ((Y = (Q = e == null ? void 0 : e.documentData) == null ? void 0 : Q.address) == null ? void 0 : Y.state) ?? "",
457
- postalCode: ((k = (j = e == null ? void 0 : e.documentData) == null ? void 0 : j.address) == null ? void 0 : k.postcode) ?? "",
458
- zipColonyOptions: []
459
- },
460
- typeOfId: ((b = e == null ? void 0 : e.document) == null ? void 0 : b.docType) ?? "",
461
- documentFrontSubtype: "",
462
- documentBackSubtype: "",
463
- issueFront: 0,
464
- issueBack: 0,
465
- birthDate: Date.parse(((ue = e == null ? void 0 : e.documentData) == null ? void 0 : ue.dateOfBirth) ?? "") || 0,
466
- gender: ((fe = e == null ? void 0 : e.documentData) == null ? void 0 : fe.gender) ?? "",
467
- personalNumber: ((he = e == null ? void 0 : e.documentData) == null ? void 0 : he.number) ?? "",
468
- issuedAt: "",
469
- expireAt: ((Ee = e == null ? void 0 : e.documentData) == null ? void 0 : Ee.dateOfExpiry) ?? "",
470
- expirationDate: Date.parse(((Ce = e == null ? void 0 : e.documentData) == null ? void 0 : Ce.dateOfExpiry) ?? "") || 0,
471
- issueDate: 0,
472
- issuingCountry: ((ge = e == null ? void 0 : e.document) == null ? void 0 : ge.issuingCountry) ?? ((ye = e == null ? void 0 : e.documentData) == null ? void 0 : ye.issuingCountry) ?? "",
473
- notExtracted: 0,
474
- notExtractedDetails: [],
475
- additionalAttrs: [],
476
- ocrDataConfidence: {
477
- birthDateConfidence: 0,
478
- nameConfidence: 0,
479
- givenNameConfidence: 0,
480
- fathersSurnameConfidence: 0,
481
- addressConfidence: 0,
482
- issueDateConfidence: 0,
483
- expirationDateConfidence: 0,
484
- issuedAtConfidence: 0,
485
- expireAtConfidence: 0,
486
- personalNumberConfidence: 0
487
- }
488
- };
489
- re(W), C(D);
490
- }, [c == null ? void 0 : c.sumsubDocumentData]);
491
- const V = {
492
- INCODE_SCREEN: /* @__PURE__ */ t(Me, { onApplicantIdLoaded: ie }),
493
- USER_INFO_SCREEN: /* @__PURE__ */ t(
494
- qe,
495
- {
496
- docData: ne,
497
- setScreen: C,
498
- setUserInfo: I,
499
- userInfo: n,
500
- userEmail: a.profile.email,
501
- kycFlow: d
502
- }
503
- ),
504
- PERSONAL_DETAILS_SCREEN: /* @__PURE__ */ t(
505
- we,
506
- {
507
- setScreen: C,
508
- setUserInfo: I,
509
- userInfo: n
510
- }
511
- ),
512
- PEP_SCREEN: /* @__PURE__ */ t(
513
- Ke,
514
- {
515
- setScreen: C,
516
- setUserInfo: I,
517
- userInfo: n,
518
- processKyc: _,
519
- processLoader: f.loader,
520
- kycFlow: d
521
- }
522
- ),
523
- EDD_SCREEN: /* @__PURE__ */ t(
524
- ze,
525
- {
526
- kycStoreData: c,
527
- eddData: O,
528
- setEddData: K,
529
- processKyc: U,
530
- processLoader: f.loader
531
- }
532
- )
533
- }[v];
534
- return s ? /* @__PURE__ */ t(Oe, { addPadding: !0, children: V }) : V;
535
- }, vt = be(Ge);
536
- export {
537
- Ue as E,
538
- vt as F,
539
- ae as I,
540
- we as P,
541
- qe as U,
542
- D as a,
543
- ce as b,
544
- me as c
545
- };
@@ -1,22 +0,0 @@
1
- import './assets/styles2.css';const t = "_container_1dbo2_1", _ = "_active_1dbo2_43", o = {
2
- container: t,
3
- "inner-container": "_inner-container_1dbo2_15",
4
- "sub-tabs": "_sub-tabs_1dbo2_29",
5
- active: _,
6
- "sub-tabs-item": "_sub-tabs-item_1dbo2_53",
7
- "buy-sell-text": "_buy-sell-text_1dbo2_65",
8
- "heading-text": "_heading-text_1dbo2_75",
9
- "info-icon": "_info-icon_1dbo2_89",
10
- "button-icon": "_button-icon_1dbo2_99",
11
- "add-container": "_add-container_1dbo2_109",
12
- "move-id": "_move-id_1dbo2_117",
13
- "move-id-text": "_move-id-text_1dbo2_133",
14
- "move-btn": "_move-btn_1dbo2_145",
15
- "time-item": "_time-item_1dbo2_169",
16
- "item-1st": "_item-1st_1dbo2_191",
17
- "item-last": "_item-last_1dbo2_201",
18
- "stake-modal-content": "_stake-modal-content_1dbo2_213"
19
- };
20
- export {
21
- o as s
22
- };