@vpdev2/metakyc-sdk 1.0.19 → 1.0.21
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/components/steps/OverviewStep.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +74 -59
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import et from "axios";
|
|
|
5
5
|
import * as Me from "react";
|
|
6
6
|
import ie, { createContext as tt, useState as N, useMemo as Re, useEffect as W, useContext as rt, useRef as H, useCallback as q, forwardRef as Le } from "react";
|
|
7
7
|
import { jsx as n, jsxs as o, Fragment as nt } from "react/jsx-runtime";
|
|
8
|
-
import { get as De, set as Ee, appendErrors as
|
|
8
|
+
import { get as De, set as Ee, appendErrors as _e, useForm as Te, Controller as J } from "react-hook-form";
|
|
9
9
|
import { z as ue } from "zod";
|
|
10
10
|
var B = /* @__PURE__ */ ((t) => (t[t.IdentitySdk = 0] = "IdentitySdk", t[t.RiskScoring = 1] = "RiskScoring", t[t.Questionaries = 2] = "Questionaries", t[t.AdditionalData = 3] = "AdditionalData", t[t.AppropriatenessTest = 4] = "AppropriatenessTest", t[t.UploadDocument = 5] = "UploadDocument", t[t.ManualReview = 6] = "ManualReview", t[t.Overview = 7] = "Overview", t[t.InvestorCategorization = 8] = "InvestorCategorization", t))(B || {}), Ne = /* @__PURE__ */ ((t) => (t[t.NotStarted = 0] = "NotStarted", t[t.InProgress = 1] = "InProgress", t[t.Success = 2] = "Success", t[t.PartialSuccess = 3] = "PartialSuccess", t[t.Failed = 4] = "Failed", t[t.Skipped = 5] = "Skipped", t[t.AdminReview = 6] = "AdminReview", t[t.SkippedAndAdminReview = 7] = "SkippedAndAdminReview", t))(Ne || {}), le = /* @__PURE__ */ ((t) => (t[t.None = 0] = "None", t[t.InProgress = 1] = "InProgress", t[t.Finished = 2] = "Finished", t[t.OnHold = 3] = "OnHold", t[t.IdentityPending = 4] = "IdentityPending", t))(le || {}), st = /* @__PURE__ */ ((t) => (t[t.None = 0] = "None", t[t.RepresentativeKYC = 1] = "RepresentativeKYC", t[t.ManualRiskCriteria = 2] = "ManualRiskCriteria", t[t.UploadDocumentReview = 3] = "UploadDocumentReview", t[t.AdminReview = 4] = "AdminReview", t))(st || {}), at = /* @__PURE__ */ ((t) => (t[t.LowRisk = 0] = "LowRisk", t[t.MediumRisk = 1] = "MediumRisk", t[t.HighRisk = 2] = "HighRisk", t[t.Alert = 3] = "Alert", t))(at || {}), pe = /* @__PURE__ */ ((t) => (t[t.None = 0] = "None", t[t.Pending = 1] = "Pending", t[t.Approved = 2] = "Approved", t[t.Rejected = 3] = "Rejected", t[t.ResendRequested = 4] = "ResendRequested", t[t.Unknown = 5] = "Unknown", t[t.InProgress = 6] = "InProgress", t))(pe || {}), ge = /* @__PURE__ */ ((t) => (t[t.Approved = 0] = "Approved", t[t.Reject = 1] = "Reject", t[t.UnderReview = 2] = "UnderReview", t[t.Closed = 3] = "Closed", t[t.AdminReview = 4] = "AdminReview", t[t.New = 5] = "New", t[t.InProgress = 6] = "InProgress", t))(ge || {}), it = /* @__PURE__ */ ((t) => (t[t.ProviderResultPending = 0] = "ProviderResultPending", t[t.ProviderResultReceived = 1] = "ProviderResultReceived", t[t.Canceled = 2] = "Canceled", t[t.ExtendedToNewApplicant = 3] = "ExtendedToNewApplicant", t))(it || {}), ot = /* @__PURE__ */ ((t) => (t[t.None = 0] = "None", t[t.ProviderResultPending = 1] = "ProviderResultPending", t[t.ProviderResultReceived = 2] = "ProviderResultReceived", t[t.Canceled = 3] = "Canceled", t))(ot || {}), oe = /* @__PURE__ */ ((t) => (t[t.Onfido = 0] = "Onfido", t[t.Sumsub = 2] = "Sumsub", t[t.SardinAI = 3] = "SardinAI", t))(oe || {}), lt = /* @__PURE__ */ ((t) => (t[t.Individual = 0] = "Individual", t[t.Company = 1] = "Company", t))(lt || {}), Se = /* @__PURE__ */ ((t) => (t[t.Male = 0] = "Male", t[t.Female = 1] = "Female", t[t.Other = 2] = "Other", t))(Se || {}), ct = /* @__PURE__ */ ((t) => (t[t.Image = 0] = "Image", t[t.Video = 1] = "Video", t[t.PDF = 2] = "PDF", t[t.OfficePDF = 3] = "OfficePDF", t[t.Custom = 4] = "Custom", t))(ct || {}), dt = /* @__PURE__ */ ((t) => (t[t.Pending = 0] = "Pending", t[t.Approved = 1] = "Approved", t[t.Rejected = 2] = "Rejected", t[t.RequiresRevision = 3] = "RequiresRevision", t))(dt || {}), ut = /* @__PURE__ */ ((t) => (t[t.SingleChoice = 0] = "SingleChoice", t[t.MultipleChoice = 1] = "MultipleChoice", t[t.Text = 2] = "Text", t))(ut || {}), Pe = /* @__PURE__ */ ((t) => (t[t.String = 0] = "String", t[t.Integer = 1] = "Integer", t[t.Decimal = 2] = "Decimal", t[t.Boolean = 3] = "Boolean", t[t.Date = 4] = "Date", t[t.Country = 5] = "Country", t[t.DigitOnly = 6] = "DigitOnly", t))(Pe || {}), mt = /* @__PURE__ */ ((t) => (t[t.Text = 0] = "Text", t[t.Radio = 1] = "Radio", t[t.Checkbox = 2] = "Checkbox", t[t.Dropdown = 3] = "Dropdown", t[t.Country = 4] = "Country", t))(mt || {}), ht = /* @__PURE__ */ ((t) => (t[t.None = 0] = "None", t[t.Country = 1] = "Country", t))(ht || {}), re = /* @__PURE__ */ ((t) => (t[t.Individual = 0] = "Individual", t[t.Sophisticated = 1] = "Sophisticated", t[t.HighNetWorth = 2] = "HighNetWorth", t[t.Business = 3] = "Business", t))(re || {}), pt = /* @__PURE__ */ ((t) => (t[t.Retail = 0] = "Retail", t[t.Professional = 1] = "Professional", t[t.EligibleCounterparty = 2] = "EligibleCounterparty", t))(pt || {});
|
|
11
11
|
const gt = [
|
|
@@ -1338,7 +1338,7 @@ function Br(t) {
|
|
|
1338
1338
|
const e = document.getElementById(t);
|
|
1339
1339
|
e && e.remove();
|
|
1340
1340
|
}
|
|
1341
|
-
class
|
|
1341
|
+
class jt {
|
|
1342
1342
|
constructor(e) {
|
|
1343
1343
|
K(this, "sdk", null);
|
|
1344
1344
|
K(this, "config");
|
|
@@ -1393,7 +1393,7 @@ class _t {
|
|
|
1393
1393
|
this.sdk && this.sdk.on("idCheck.onError", e);
|
|
1394
1394
|
}
|
|
1395
1395
|
}
|
|
1396
|
-
class
|
|
1396
|
+
class _t {
|
|
1397
1397
|
constructor(e) {
|
|
1398
1398
|
K(this, "sdk", null);
|
|
1399
1399
|
K(this, "config");
|
|
@@ -1610,9 +1610,9 @@ class fe {
|
|
|
1610
1610
|
static createProvider(e, r) {
|
|
1611
1611
|
switch (e) {
|
|
1612
1612
|
case oe.Sumsub:
|
|
1613
|
-
return new _t(r);
|
|
1614
|
-
case oe.Onfido:
|
|
1615
1613
|
return new jt(r);
|
|
1614
|
+
case oe.Onfido:
|
|
1615
|
+
return new _t(r);
|
|
1616
1616
|
case oe.SardinAI:
|
|
1617
1617
|
return new Ut(r);
|
|
1618
1618
|
default:
|
|
@@ -1862,7 +1862,7 @@ function Ie(t) {
|
|
|
1862
1862
|
const e = 1024, r = ["Bytes", "KB", "MB", "GB"], s = Math.floor(Math.log(t) / Math.log(e));
|
|
1863
1863
|
return Math.round(t / Math.pow(e, s) * 100) / 100 + " " + r[s];
|
|
1864
1864
|
}
|
|
1865
|
-
function
|
|
1865
|
+
function jr(t) {
|
|
1866
1866
|
return t;
|
|
1867
1867
|
}
|
|
1868
1868
|
function te(...t) {
|
|
@@ -1901,7 +1901,7 @@ function Wt(t) {
|
|
|
1901
1901
|
console.warn("Failed to save workflow state to storage:", e);
|
|
1902
1902
|
}
|
|
1903
1903
|
}
|
|
1904
|
-
function
|
|
1904
|
+
function _r() {
|
|
1905
1905
|
try {
|
|
1906
1906
|
const t = localStorage.getItem(be.WORKFLOW_STATE);
|
|
1907
1907
|
return t ? JSON.parse(t) : null;
|
|
@@ -2408,7 +2408,7 @@ function rr() {
|
|
|
2408
2408
|
stopProgress: g
|
|
2409
2409
|
};
|
|
2410
2410
|
}
|
|
2411
|
-
const
|
|
2411
|
+
const _ = ({
|
|
2412
2412
|
children: t,
|
|
2413
2413
|
variant: e = "primary",
|
|
2414
2414
|
size: r = "md",
|
|
@@ -2944,7 +2944,7 @@ function pr(t, e) {
|
|
|
2944
2944
|
});
|
|
2945
2945
|
}), e) {
|
|
2946
2946
|
var d = r[l].types, u = d && d[s.code];
|
|
2947
|
-
r[l] =
|
|
2947
|
+
r[l] = _e(l, e, r, a, u ? [].concat(u, s.message) : s.message);
|
|
2948
2948
|
}
|
|
2949
2949
|
t.shift();
|
|
2950
2950
|
}
|
|
@@ -2963,7 +2963,7 @@ function gr(t, e) {
|
|
|
2963
2963
|
});
|
|
2964
2964
|
}), e) {
|
|
2965
2965
|
var d = r[l].types, u = d && d[s.code];
|
|
2966
|
-
r[l] =
|
|
2966
|
+
r[l] = _e(l, e, r, a, u ? [].concat(u, s.message) : s.message);
|
|
2967
2967
|
}
|
|
2968
2968
|
t.shift();
|
|
2969
2969
|
}
|
|
@@ -3194,9 +3194,9 @@ const Vr = ue.any(), xr = ({
|
|
|
3194
3194
|
})
|
|
3195
3195
|
) }),
|
|
3196
3196
|
/* @__PURE__ */ o(ne, { className: "flex justify-between", children: [
|
|
3197
|
-
r && /* @__PURE__ */ n(
|
|
3197
|
+
r && /* @__PURE__ */ n(_, { type: "button", variant: "outline", onClick: r, children: "Back" }),
|
|
3198
3198
|
/* @__PURE__ */ n(
|
|
3199
|
-
|
|
3199
|
+
_,
|
|
3200
3200
|
{
|
|
3201
3201
|
type: "submit",
|
|
3202
3202
|
isLoading: i,
|
|
@@ -3262,8 +3262,8 @@ const Vr = ue.any(), xr = ({
|
|
|
3262
3262
|
v.id
|
|
3263
3263
|
)) }),
|
|
3264
3264
|
/* @__PURE__ */ o(ne, { className: "flex justify-between", children: [
|
|
3265
|
-
r && /* @__PURE__ */ n(
|
|
3266
|
-
/* @__PURE__ */ n(
|
|
3265
|
+
r && /* @__PURE__ */ n(_, { type: "button", variant: "outline", onClick: r, children: "Back" }),
|
|
3266
|
+
/* @__PURE__ */ n(_, { type: "submit", isLoading: i, children: "Continue" })
|
|
3267
3267
|
] })
|
|
3268
3268
|
] }) }) : null;
|
|
3269
3269
|
}, kr = ({ applicantId: t, onComplete: e, onBack: r }) => {
|
|
@@ -3278,13 +3278,28 @@ const Vr = ue.any(), xr = ({
|
|
|
3278
3278
|
/* @__PURE__ */ n("h2", { className: "text-lg font-bold", children: s.title || "Overview" }),
|
|
3279
3279
|
s.description && /* @__PURE__ */ n("p", { className: "text-gray-600 dark:text-gray-400 mt-1", children: s.description })
|
|
3280
3280
|
] }),
|
|
3281
|
-
/* @__PURE__ */ n(M, { className: "space-y-8", children: s.steps && s.steps.length > 0 ? s.steps.sort((u, y) => u.order - y.order).map((u) => /* @__PURE__ */ o("div", { className: "space-
|
|
3282
|
-
/* @__PURE__ */ n("
|
|
3283
|
-
|
|
3281
|
+
/* @__PURE__ */ n(M, { className: "space-y-8", children: s.steps && s.steps.length > 0 ? s.steps.sort((u, y) => u.order - y.order).map((u) => /* @__PURE__ */ o("div", { className: "metakyc-overview-step-item flex items-center space-x-3", children: [
|
|
3282
|
+
/* @__PURE__ */ n("div", { className: "metakyc-step-icon flex-shrink-0", children: /* @__PURE__ */ n("div", { className: "w-8 h-8 rounded-full bg-primary-500 text-white flex items-center justify-center font-medium text-sm", children: u.order + 1 }) }),
|
|
3283
|
+
/* @__PURE__ */ o(
|
|
3284
|
+
"div",
|
|
3285
|
+
{
|
|
3286
|
+
className: "metakyc-step-content",
|
|
3287
|
+
style: {
|
|
3288
|
+
flex: 1,
|
|
3289
|
+
border: "none",
|
|
3290
|
+
height: "auto",
|
|
3291
|
+
background: "transparent"
|
|
3292
|
+
},
|
|
3293
|
+
children: [
|
|
3294
|
+
/* @__PURE__ */ n("span", { className: "metakyc-step-title text-sm font-semibold text-gray-900 dark:text-white", children: u.title }),
|
|
3295
|
+
u.description && /* @__PURE__ */ n("p", { className: "metakyc-step-description text-sm text-gray-600 dark:text-gray-400", children: u.description })
|
|
3296
|
+
]
|
|
3297
|
+
}
|
|
3298
|
+
)
|
|
3284
3299
|
] }, u.order)) : /* @__PURE__ */ n("div", { className: "text-center py-8", children: /* @__PURE__ */ n("p", { className: "text-gray-600 dark:text-gray-400", children: "Loading overview data..." }) }) }),
|
|
3285
3300
|
/* @__PURE__ */ o(ne, { className: "flex justify-between", children: [
|
|
3286
|
-
r && /* @__PURE__ */ n(
|
|
3287
|
-
/* @__PURE__ */ n(
|
|
3301
|
+
r && /* @__PURE__ */ n(_, { type: "button", variant: "outline", onClick: r, children: "Back" }),
|
|
3302
|
+
/* @__PURE__ */ n(_, { onClick: d, isLoading: i, children: "Continue" })
|
|
3288
3303
|
] })
|
|
3289
3304
|
] }) : null;
|
|
3290
3305
|
}, Nr = ({
|
|
@@ -3451,9 +3466,9 @@ const Vr = ue.any(), xr = ({
|
|
|
3451
3466
|
] }, h.id);
|
|
3452
3467
|
}) }),
|
|
3453
3468
|
/* @__PURE__ */ o(ne, { className: "flex justify-between", children: [
|
|
3454
|
-
r && /* @__PURE__ */ n(
|
|
3469
|
+
r && /* @__PURE__ */ n(_, { type: "button", variant: "outline", onClick: r, children: "Back" }),
|
|
3455
3470
|
/* @__PURE__ */ n(
|
|
3456
|
-
|
|
3471
|
+
_,
|
|
3457
3472
|
{
|
|
3458
3473
|
type: "submit",
|
|
3459
3474
|
isLoading: i,
|
|
@@ -3595,9 +3610,9 @@ const Vr = ue.any(), xr = ({
|
|
|
3595
3610
|
] }) })
|
|
3596
3611
|
] }),
|
|
3597
3612
|
/* @__PURE__ */ o(ne, { className: "flex justify-between", children: [
|
|
3598
|
-
r && /* @__PURE__ */ n(
|
|
3613
|
+
r && /* @__PURE__ */ n(_, { type: "button", variant: "outline", onClick: r, children: "Back" }),
|
|
3599
3614
|
/* @__PURE__ */ n(
|
|
3600
|
-
|
|
3615
|
+
_,
|
|
3601
3616
|
{
|
|
3602
3617
|
type: "submit",
|
|
3603
3618
|
isLoading: l,
|
|
@@ -3825,7 +3840,7 @@ Failed to reload test data. Please refresh the page.`);
|
|
|
3825
3840
|
] }),
|
|
3826
3841
|
/* @__PURE__ */ o(ne, { className: "flex justify-between", children: [
|
|
3827
3842
|
/* @__PURE__ */ n(
|
|
3828
|
-
|
|
3843
|
+
_,
|
|
3829
3844
|
{
|
|
3830
3845
|
type: "button",
|
|
3831
3846
|
variant: "outline",
|
|
@@ -3835,7 +3850,7 @@ Failed to reload test data. Please refresh the page.`);
|
|
|
3835
3850
|
}
|
|
3836
3851
|
),
|
|
3837
3852
|
/* @__PURE__ */ n(
|
|
3838
|
-
|
|
3853
|
+
_,
|
|
3839
3854
|
{
|
|
3840
3855
|
type: "submit",
|
|
3841
3856
|
isLoading: d,
|
|
@@ -3877,9 +3892,9 @@ Failed to reload test data. Please refresh the page.`);
|
|
|
3877
3892
|
U <= 0 && /* @__PURE__ */ n("div", { className: "p-4 bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg", children: /* @__PURE__ */ n("p", { className: "text-red-600 dark:text-red-400", children: "You have used all your attempts. Please contact support for assistance." }) })
|
|
3878
3893
|
] }),
|
|
3879
3894
|
/* @__PURE__ */ o(ne, { className: "flex justify-between", children: [
|
|
3880
|
-
r && /* @__PURE__ */ n(
|
|
3895
|
+
r && /* @__PURE__ */ n(_, { type: "button", variant: "outline", onClick: r, children: "Back" }),
|
|
3881
3896
|
/* @__PURE__ */ n(
|
|
3882
|
-
|
|
3897
|
+
_,
|
|
3883
3898
|
{
|
|
3884
3899
|
type: "button",
|
|
3885
3900
|
onClick: C,
|
|
@@ -3919,15 +3934,15 @@ Failed to reload test data. Please refresh the page.`);
|
|
|
3919
3934
|
return !Ae || Y.has(Ae) ? !1 : (Y.add(Ae), !0);
|
|
3920
3935
|
});
|
|
3921
3936
|
A(ae);
|
|
3922
|
-
const
|
|
3937
|
+
const j = D.applicantRequestData;
|
|
3923
3938
|
if (U.reset({
|
|
3924
|
-
street: (
|
|
3925
|
-
streetNumber: (
|
|
3926
|
-
city: (
|
|
3927
|
-
zip: (
|
|
3928
|
-
country: (
|
|
3929
|
-
nationality: (
|
|
3930
|
-
phonenumber: (
|
|
3939
|
+
street: (j == null ? void 0 : j.street) || "",
|
|
3940
|
+
streetNumber: (j == null ? void 0 : j.streetNumber) || "",
|
|
3941
|
+
city: (j == null ? void 0 : j.city) || "",
|
|
3942
|
+
zip: (j == null ? void 0 : j.zip) || "",
|
|
3943
|
+
country: (j == null ? void 0 : j.country) || "",
|
|
3944
|
+
nationality: (j == null ? void 0 : j.nationality) || "",
|
|
3945
|
+
phonenumber: (j == null ? void 0 : j.phonenumber) || ""
|
|
3931
3946
|
}), D.kycRecords && D.kycRecords.length > 0 && D.kycRecords[0].providerTokenObject !== null && !V.current) {
|
|
3932
3947
|
console.log("[Identity] Found existing identity verification, auto-requesting..."), V.current = !0;
|
|
3933
3948
|
try {
|
|
@@ -4002,9 +4017,9 @@ Failed to reload test data. Please refresh the page.`);
|
|
|
4002
4017
|
e == null || e();
|
|
4003
4018
|
}, 2e3);
|
|
4004
4019
|
}).catch((Y) => {
|
|
4005
|
-
var
|
|
4020
|
+
var j;
|
|
4006
4021
|
console.error("[SardinAI] Failed to initialize:", Y);
|
|
4007
|
-
const ae = ((
|
|
4022
|
+
const ae = ((j = Y.message) == null ? void 0 : j.toLowerCase()) || "";
|
|
4008
4023
|
ae.includes("expired") || ae.includes("invalid") || ae.includes("401") || ae.includes("400") ? (O(!0), C("Session expired or invalid. Please restart verification.")) : C(`Failed to initialize: ${Y.message}`);
|
|
4009
4024
|
});
|
|
4010
4025
|
} catch (D) {
|
|
@@ -4097,8 +4112,8 @@ Failed to reload test data. Please refresh the page.`);
|
|
|
4097
4112
|
] })
|
|
4098
4113
|
] }),
|
|
4099
4114
|
/* @__PURE__ */ o(ne, { className: "flex justify-between", children: [
|
|
4100
|
-
r && /* @__PURE__ */ n(
|
|
4101
|
-
/* @__PURE__ */ n(
|
|
4115
|
+
r && /* @__PURE__ */ n(_, { type: "button", variant: "outline", onClick: r, children: "Back" }),
|
|
4116
|
+
/* @__PURE__ */ n(_, { type: "button", onClick: x, disabled: u, children: u ? "Restarting..." : "Restart Verification" })
|
|
4102
4117
|
] })
|
|
4103
4118
|
] });
|
|
4104
4119
|
if (E && l) {
|
|
@@ -4110,7 +4125,7 @@ Failed to reload test data. Please refresh the page.`);
|
|
|
4110
4125
|
/* @__PURE__ */ n("p", { className: "text-gray-600 dark:text-gray-400 mt-1", children: "Please complete the identity verification process" })
|
|
4111
4126
|
] }),
|
|
4112
4127
|
/* @__PURE__ */ n(
|
|
4113
|
-
|
|
4128
|
+
_,
|
|
4114
4129
|
{
|
|
4115
4130
|
type: "button",
|
|
4116
4131
|
variant: "outline",
|
|
@@ -4137,7 +4152,7 @@ Failed to reload test data. Please refresh the page.`);
|
|
|
4137
4152
|
var G, Y, ae;
|
|
4138
4153
|
console.log("[Identity] Iframe loaded");
|
|
4139
4154
|
try {
|
|
4140
|
-
const
|
|
4155
|
+
const j = D.target, Ce = j.contentDocument || ((G = j.contentWindow) == null ? void 0 : G.document);
|
|
4141
4156
|
if (Ce) {
|
|
4142
4157
|
const me = ((ae = (Y = Ce.body) == null ? void 0 : Y.textContent) == null ? void 0 : ae.toLowerCase()) || "";
|
|
4143
4158
|
(me.includes("expired") || me.includes("invalid") || me.includes("error")) && (console.warn("[Identity] Iframe shows expiration message"), O(!0), C("Your verification link has expired."));
|
|
@@ -4149,7 +4164,7 @@ Failed to reload test data. Please refresh the page.`);
|
|
|
4149
4164
|
}
|
|
4150
4165
|
) })
|
|
4151
4166
|
] }),
|
|
4152
|
-
r && /* @__PURE__ */ n(ne, { children: /* @__PURE__ */ n(
|
|
4167
|
+
r && /* @__PURE__ */ n(ne, { children: /* @__PURE__ */ n(_, { variant: "outline", onClick: r, children: "Back" }) })
|
|
4153
4168
|
] }) : L === oe.SardinAI ? /* @__PURE__ */ o(T, { children: [
|
|
4154
4169
|
/* @__PURE__ */ o(ee, { children: [
|
|
4155
4170
|
/* @__PURE__ */ n("h2", { className: "text-2xl font-bold", children: "Device Risk Assessment" }),
|
|
@@ -4166,7 +4181,7 @@ Failed to reload test data. Please refresh the page.`);
|
|
|
4166
4181
|
/* @__PURE__ */ n("p", { className: "text-gray-600 dark:text-gray-400 mt-1", children: "Please complete the identity verification process" })
|
|
4167
4182
|
] }),
|
|
4168
4183
|
/* @__PURE__ */ n(M, { children: /* @__PURE__ */ n("div", { id: "identity-container", className: "min-h-[400px]" }) }),
|
|
4169
|
-
r && /* @__PURE__ */ n(ne, { children: /* @__PURE__ */ n(
|
|
4184
|
+
r && /* @__PURE__ */ n(ne, { children: /* @__PURE__ */ n(_, { variant: "outline", onClick: r, children: "Back" }) })
|
|
4170
4185
|
] });
|
|
4171
4186
|
}
|
|
4172
4187
|
return /* @__PURE__ */ n("form", { onSubmit: U.handleSubmit(p), children: /* @__PURE__ */ o(T, { children: [
|
|
@@ -4286,11 +4301,11 @@ Failed to reload test data. Please refresh the page.`);
|
|
|
4286
4301
|
] })
|
|
4287
4302
|
] }),
|
|
4288
4303
|
/* @__PURE__ */ o(ne, { className: "flex justify-between", children: [
|
|
4289
|
-
r && /* @__PURE__ */ n(
|
|
4290
|
-
/* @__PURE__ */ n(
|
|
4304
|
+
r && /* @__PURE__ */ n(_, { type: "button", variant: "outline", onClick: r, children: "Back" }),
|
|
4305
|
+
/* @__PURE__ */ n(_, { type: "submit", isLoading: u, children: "Confirm and Start Verification" })
|
|
4291
4306
|
] })
|
|
4292
4307
|
] }) });
|
|
4293
|
-
},
|
|
4308
|
+
}, je = ({
|
|
4294
4309
|
kycStatus: t,
|
|
4295
4310
|
reviewStatus: e,
|
|
4296
4311
|
workflowResult: r,
|
|
@@ -4424,10 +4439,10 @@ Failed to reload test data. Please refresh the page.`);
|
|
|
4424
4439
|
] }) })
|
|
4425
4440
|
] }),
|
|
4426
4441
|
/* @__PURE__ */ o(ne, { className: "flex justify-center gap-4", children: [
|
|
4427
|
-
c.type === "success" && a && /* @__PURE__ */ n(
|
|
4442
|
+
c.type === "success" && a && /* @__PURE__ */ n(_, { onClick: a, size: "lg", children: "Continue" }),
|
|
4428
4443
|
c.type === "error" && /* @__PURE__ */ o(nt, { children: [
|
|
4429
|
-
i && /* @__PURE__ */ n(
|
|
4430
|
-
a && /* @__PURE__ */ n(
|
|
4444
|
+
i && /* @__PURE__ */ n(_, { variant: "outline", onClick: i, children: "Contact Support" }),
|
|
4445
|
+
a && /* @__PURE__ */ n(_, { onClick: a, children: "Try Again" })
|
|
4431
4446
|
] }),
|
|
4432
4447
|
c.type === "pending" && /* @__PURE__ */ n("div", { className: "text-center", children: /* @__PURE__ */ n("p", { className: "text-sm text-gray-500 dark:text-gray-400", children: "Please check back later or wait for our email notification" }) })
|
|
4433
4448
|
] })
|
|
@@ -4665,8 +4680,8 @@ Failed to reload test data. Please refresh the page.`);
|
|
|
4665
4680
|
/* @__PURE__ */ n("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: w.map((p) => F(p)) })
|
|
4666
4681
|
] }),
|
|
4667
4682
|
/* @__PURE__ */ o(ne, { className: "flex justify-between", children: [
|
|
4668
|
-
s && /* @__PURE__ */ n(
|
|
4669
|
-
/* @__PURE__ */ n(
|
|
4683
|
+
s && /* @__PURE__ */ n(_, { type: "button", variant: "outline", onClick: s, disabled: g || c, children: "Cancel" }),
|
|
4684
|
+
/* @__PURE__ */ n(_, { type: "submit", isLoading: g || c, children: "Create Applicant" })
|
|
4670
4685
|
] })
|
|
4671
4686
|
] }) }) });
|
|
4672
4687
|
}, Wr = ({
|
|
@@ -4736,7 +4751,7 @@ Failed to reload test data. Please refresh the page.`);
|
|
|
4736
4751
|
] }) }) }) });
|
|
4737
4752
|
if (i.status === le.Finished || i.status === le.OnHold)
|
|
4738
4753
|
return /* @__PURE__ */ n("div", { className: `metakyc-sdk ${a || ""}`, children: /* @__PURE__ */ n(
|
|
4739
|
-
|
|
4754
|
+
je,
|
|
4740
4755
|
{
|
|
4741
4756
|
kycStatus: i.kycStatus,
|
|
4742
4757
|
reviewStatus: i.reviewStatus,
|
|
@@ -4845,7 +4860,7 @@ Failed to reload test data. Please refresh the page.`);
|
|
|
4845
4860
|
return /* @__PURE__ */ n(Cr, { ...w });
|
|
4846
4861
|
case B.ManualReview:
|
|
4847
4862
|
return /* @__PURE__ */ n(
|
|
4848
|
-
|
|
4863
|
+
je,
|
|
4849
4864
|
{
|
|
4850
4865
|
kycStatus: i.kycStatus,
|
|
4851
4866
|
reviewStatus: i.reviewStatus,
|
|
@@ -4883,7 +4898,7 @@ export {
|
|
|
4883
4898
|
Cr as AppropriatenessTestStep,
|
|
4884
4899
|
he as Badge,
|
|
4885
4900
|
Et as BaseInformationService,
|
|
4886
|
-
|
|
4901
|
+
_ as Button,
|
|
4887
4902
|
T as Card,
|
|
4888
4903
|
M as CardContent,
|
|
4889
4904
|
ne as CardFooter,
|
|
@@ -4912,13 +4927,13 @@ export {
|
|
|
4912
4927
|
pt as InvestorCategoryType,
|
|
4913
4928
|
ot as KycProcessStatus,
|
|
4914
4929
|
pe as KycStatus,
|
|
4915
|
-
|
|
4930
|
+
je as KycStatusDisplay,
|
|
4916
4931
|
Wr as KycWorkflow,
|
|
4917
4932
|
Er as Logo,
|
|
4918
4933
|
Ke as MetaKYCContext,
|
|
4919
4934
|
de as MetaKYCError,
|
|
4920
4935
|
Or as MetaKYCProvider,
|
|
4921
|
-
|
|
4936
|
+
_t as OnfidoProvider,
|
|
4922
4937
|
St as OverviewService,
|
|
4923
4938
|
kr as OverviewStep,
|
|
4924
4939
|
sr as PhoneInput,
|
|
@@ -4933,7 +4948,7 @@ export {
|
|
|
4933
4948
|
ye as Select,
|
|
4934
4949
|
ce as Spinner,
|
|
4935
4950
|
zt as StepRouter,
|
|
4936
|
-
|
|
4951
|
+
jt as SumsubProvider,
|
|
4937
4952
|
Kt as ThemeManager,
|
|
4938
4953
|
Q as ThemePreset,
|
|
4939
4954
|
Mt as ThemeService,
|
|
@@ -4960,10 +4975,10 @@ export {
|
|
|
4960
4975
|
yr as generateQuestionnaireSchema,
|
|
4961
4976
|
br as generateRiskScoringSchema,
|
|
4962
4977
|
qr as generateUploadDocumentSchema,
|
|
4963
|
-
|
|
4978
|
+
jr as getAcceptString,
|
|
4964
4979
|
Vt as getApplicantId,
|
|
4965
4980
|
xe as getThemePreset,
|
|
4966
|
-
|
|
4981
|
+
_r as getWorkflowState,
|
|
4967
4982
|
Pt as healthcareTheme,
|
|
4968
4983
|
Mr as isScriptLoaded,
|
|
4969
4984
|
Ue as loadScript,
|