@vpdev2/metakyc-sdk 1.0.19 → 1.0.20

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/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 je, useForm as Te, Controller as J } from "react-hook-form";
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 _t {
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 jt {
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 _r(t) {
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 jr() {
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 j = ({
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] = je(l, e, r, a, u ? [].concat(u, s.message) : s.message);
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] = je(l, e, r, a, u ? [].concat(u, s.message) : s.message);
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(j, { type: "button", variant: "outline", onClick: r, children: "Back" }),
3197
+ r && /* @__PURE__ */ n(_, { type: "button", variant: "outline", onClick: r, children: "Back" }),
3198
3198
  /* @__PURE__ */ n(
3199
- j,
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(j, { type: "button", variant: "outline", onClick: r, children: "Back" }),
3266
- /* @__PURE__ */ n(j, { type: "submit", isLoading: i, children: "Continue" })
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,38 @@ 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-y-2", children: [
3282
- /* @__PURE__ */ n("label", { className: "block text-sm font-medium text-gray-700 dark:text-gray-300", children: u.title }),
3283
- u.description && /* @__PURE__ */ n("p", { className: "text-sm text-gray-500 dark:text-gray-400", children: u.description })
3284
- ] }, 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..." }) }) }),
3281
+ /* @__PURE__ */ n(M, { className: "space-y-6", children: s.steps && s.steps.length > 0 ? /* @__PURE__ */ n("div", { className: "metakyc-overview-steps space-y-3", children: s.steps.sort((u, y) => u.order - y.order).map((u) => /* @__PURE__ */ o(
3282
+ "div",
3283
+ {
3284
+ className: "metakyc-overview-step-item flex items-start p-4 rounded-lg bg-gray-50 dark:bg-gray-800",
3285
+ style: { border: "0" },
3286
+ children: [
3287
+ /* @__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 }) }),
3288
+ /* @__PURE__ */ o(
3289
+ "div",
3290
+ {
3291
+ className: "metakyc-step-content",
3292
+ style: {
3293
+ flex: 1,
3294
+ marginLeft: "1rem",
3295
+ border: "none",
3296
+ height: "auto",
3297
+ background: "transparent",
3298
+ margin: "0 0 0 1rem"
3299
+ },
3300
+ children: [
3301
+ /* @__PURE__ */ n("h3", { className: "metakyc-step-title text-sm font-semibold text-gray-900 dark:text-white", children: u.title }),
3302
+ u.description && /* @__PURE__ */ n("p", { className: "metakyc-step-description text-sm text-gray-600 dark:text-gray-400 mt-1", children: u.description })
3303
+ ]
3304
+ }
3305
+ )
3306
+ ]
3307
+ },
3308
+ u.order
3309
+ )) }) : /* @__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
3310
  /* @__PURE__ */ o(ne, { className: "flex justify-between", children: [
3286
- r && /* @__PURE__ */ n(j, { type: "button", variant: "outline", onClick: r, children: "Back" }),
3287
- /* @__PURE__ */ n(j, { onClick: d, isLoading: i, children: "Continue" })
3311
+ r && /* @__PURE__ */ n(_, { type: "button", variant: "outline", onClick: r, children: "Back" }),
3312
+ /* @__PURE__ */ n(_, { onClick: d, isLoading: i, children: "Continue" })
3288
3313
  ] })
3289
3314
  ] }) : null;
3290
3315
  }, Nr = ({
@@ -3451,9 +3476,9 @@ const Vr = ue.any(), xr = ({
3451
3476
  ] }, h.id);
3452
3477
  }) }),
3453
3478
  /* @__PURE__ */ o(ne, { className: "flex justify-between", children: [
3454
- r && /* @__PURE__ */ n(j, { type: "button", variant: "outline", onClick: r, children: "Back" }),
3479
+ r && /* @__PURE__ */ n(_, { type: "button", variant: "outline", onClick: r, children: "Back" }),
3455
3480
  /* @__PURE__ */ n(
3456
- j,
3481
+ _,
3457
3482
  {
3458
3483
  type: "submit",
3459
3484
  isLoading: i,
@@ -3595,9 +3620,9 @@ const Vr = ue.any(), xr = ({
3595
3620
  ] }) })
3596
3621
  ] }),
3597
3622
  /* @__PURE__ */ o(ne, { className: "flex justify-between", children: [
3598
- r && /* @__PURE__ */ n(j, { type: "button", variant: "outline", onClick: r, children: "Back" }),
3623
+ r && /* @__PURE__ */ n(_, { type: "button", variant: "outline", onClick: r, children: "Back" }),
3599
3624
  /* @__PURE__ */ n(
3600
- j,
3625
+ _,
3601
3626
  {
3602
3627
  type: "submit",
3603
3628
  isLoading: l,
@@ -3825,7 +3850,7 @@ Failed to reload test data. Please refresh the page.`);
3825
3850
  ] }),
3826
3851
  /* @__PURE__ */ o(ne, { className: "flex justify-between", children: [
3827
3852
  /* @__PURE__ */ n(
3828
- j,
3853
+ _,
3829
3854
  {
3830
3855
  type: "button",
3831
3856
  variant: "outline",
@@ -3835,7 +3860,7 @@ Failed to reload test data. Please refresh the page.`);
3835
3860
  }
3836
3861
  ),
3837
3862
  /* @__PURE__ */ n(
3838
- j,
3863
+ _,
3839
3864
  {
3840
3865
  type: "submit",
3841
3866
  isLoading: d,
@@ -3877,9 +3902,9 @@ Failed to reload test data. Please refresh the page.`);
3877
3902
  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
3903
  ] }),
3879
3904
  /* @__PURE__ */ o(ne, { className: "flex justify-between", children: [
3880
- r && /* @__PURE__ */ n(j, { type: "button", variant: "outline", onClick: r, children: "Back" }),
3905
+ r && /* @__PURE__ */ n(_, { type: "button", variant: "outline", onClick: r, children: "Back" }),
3881
3906
  /* @__PURE__ */ n(
3882
- j,
3907
+ _,
3883
3908
  {
3884
3909
  type: "button",
3885
3910
  onClick: C,
@@ -3919,15 +3944,15 @@ Failed to reload test data. Please refresh the page.`);
3919
3944
  return !Ae || Y.has(Ae) ? !1 : (Y.add(Ae), !0);
3920
3945
  });
3921
3946
  A(ae);
3922
- const _ = D.applicantRequestData;
3947
+ const j = D.applicantRequestData;
3923
3948
  if (U.reset({
3924
- street: (_ == null ? void 0 : _.street) || "",
3925
- streetNumber: (_ == null ? void 0 : _.streetNumber) || "",
3926
- city: (_ == null ? void 0 : _.city) || "",
3927
- zip: (_ == null ? void 0 : _.zip) || "",
3928
- country: (_ == null ? void 0 : _.country) || "",
3929
- nationality: (_ == null ? void 0 : _.nationality) || "",
3930
- phonenumber: (_ == null ? void 0 : _.phonenumber) || ""
3949
+ street: (j == null ? void 0 : j.street) || "",
3950
+ streetNumber: (j == null ? void 0 : j.streetNumber) || "",
3951
+ city: (j == null ? void 0 : j.city) || "",
3952
+ zip: (j == null ? void 0 : j.zip) || "",
3953
+ country: (j == null ? void 0 : j.country) || "",
3954
+ nationality: (j == null ? void 0 : j.nationality) || "",
3955
+ phonenumber: (j == null ? void 0 : j.phonenumber) || ""
3931
3956
  }), D.kycRecords && D.kycRecords.length > 0 && D.kycRecords[0].providerTokenObject !== null && !V.current) {
3932
3957
  console.log("[Identity] Found existing identity verification, auto-requesting..."), V.current = !0;
3933
3958
  try {
@@ -4002,9 +4027,9 @@ Failed to reload test data. Please refresh the page.`);
4002
4027
  e == null || e();
4003
4028
  }, 2e3);
4004
4029
  }).catch((Y) => {
4005
- var _;
4030
+ var j;
4006
4031
  console.error("[SardinAI] Failed to initialize:", Y);
4007
- const ae = ((_ = Y.message) == null ? void 0 : _.toLowerCase()) || "";
4032
+ const ae = ((j = Y.message) == null ? void 0 : j.toLowerCase()) || "";
4008
4033
  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
4034
  });
4010
4035
  } catch (D) {
@@ -4097,8 +4122,8 @@ Failed to reload test data. Please refresh the page.`);
4097
4122
  ] })
4098
4123
  ] }),
4099
4124
  /* @__PURE__ */ o(ne, { className: "flex justify-between", children: [
4100
- r && /* @__PURE__ */ n(j, { type: "button", variant: "outline", onClick: r, children: "Back" }),
4101
- /* @__PURE__ */ n(j, { type: "button", onClick: x, disabled: u, children: u ? "Restarting..." : "Restart Verification" })
4125
+ r && /* @__PURE__ */ n(_, { type: "button", variant: "outline", onClick: r, children: "Back" }),
4126
+ /* @__PURE__ */ n(_, { type: "button", onClick: x, disabled: u, children: u ? "Restarting..." : "Restart Verification" })
4102
4127
  ] })
4103
4128
  ] });
4104
4129
  if (E && l) {
@@ -4110,7 +4135,7 @@ Failed to reload test data. Please refresh the page.`);
4110
4135
  /* @__PURE__ */ n("p", { className: "text-gray-600 dark:text-gray-400 mt-1", children: "Please complete the identity verification process" })
4111
4136
  ] }),
4112
4137
  /* @__PURE__ */ n(
4113
- j,
4138
+ _,
4114
4139
  {
4115
4140
  type: "button",
4116
4141
  variant: "outline",
@@ -4137,7 +4162,7 @@ Failed to reload test data. Please refresh the page.`);
4137
4162
  var G, Y, ae;
4138
4163
  console.log("[Identity] Iframe loaded");
4139
4164
  try {
4140
- const _ = D.target, Ce = _.contentDocument || ((G = _.contentWindow) == null ? void 0 : G.document);
4165
+ const j = D.target, Ce = j.contentDocument || ((G = j.contentWindow) == null ? void 0 : G.document);
4141
4166
  if (Ce) {
4142
4167
  const me = ((ae = (Y = Ce.body) == null ? void 0 : Y.textContent) == null ? void 0 : ae.toLowerCase()) || "";
4143
4168
  (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 +4174,7 @@ Failed to reload test data. Please refresh the page.`);
4149
4174
  }
4150
4175
  ) })
4151
4176
  ] }),
4152
- r && /* @__PURE__ */ n(ne, { children: /* @__PURE__ */ n(j, { variant: "outline", onClick: r, children: "Back" }) })
4177
+ r && /* @__PURE__ */ n(ne, { children: /* @__PURE__ */ n(_, { variant: "outline", onClick: r, children: "Back" }) })
4153
4178
  ] }) : L === oe.SardinAI ? /* @__PURE__ */ o(T, { children: [
4154
4179
  /* @__PURE__ */ o(ee, { children: [
4155
4180
  /* @__PURE__ */ n("h2", { className: "text-2xl font-bold", children: "Device Risk Assessment" }),
@@ -4166,7 +4191,7 @@ Failed to reload test data. Please refresh the page.`);
4166
4191
  /* @__PURE__ */ n("p", { className: "text-gray-600 dark:text-gray-400 mt-1", children: "Please complete the identity verification process" })
4167
4192
  ] }),
4168
4193
  /* @__PURE__ */ n(M, { children: /* @__PURE__ */ n("div", { id: "identity-container", className: "min-h-[400px]" }) }),
4169
- r && /* @__PURE__ */ n(ne, { children: /* @__PURE__ */ n(j, { variant: "outline", onClick: r, children: "Back" }) })
4194
+ r && /* @__PURE__ */ n(ne, { children: /* @__PURE__ */ n(_, { variant: "outline", onClick: r, children: "Back" }) })
4170
4195
  ] });
4171
4196
  }
4172
4197
  return /* @__PURE__ */ n("form", { onSubmit: U.handleSubmit(p), children: /* @__PURE__ */ o(T, { children: [
@@ -4286,11 +4311,11 @@ Failed to reload test data. Please refresh the page.`);
4286
4311
  ] })
4287
4312
  ] }),
4288
4313
  /* @__PURE__ */ o(ne, { className: "flex justify-between", children: [
4289
- r && /* @__PURE__ */ n(j, { type: "button", variant: "outline", onClick: r, children: "Back" }),
4290
- /* @__PURE__ */ n(j, { type: "submit", isLoading: u, children: "Confirm and Start Verification" })
4314
+ r && /* @__PURE__ */ n(_, { type: "button", variant: "outline", onClick: r, children: "Back" }),
4315
+ /* @__PURE__ */ n(_, { type: "submit", isLoading: u, children: "Confirm and Start Verification" })
4291
4316
  ] })
4292
4317
  ] }) });
4293
- }, _e = ({
4318
+ }, je = ({
4294
4319
  kycStatus: t,
4295
4320
  reviewStatus: e,
4296
4321
  workflowResult: r,
@@ -4424,10 +4449,10 @@ Failed to reload test data. Please refresh the page.`);
4424
4449
  ] }) })
4425
4450
  ] }),
4426
4451
  /* @__PURE__ */ o(ne, { className: "flex justify-center gap-4", children: [
4427
- c.type === "success" && a && /* @__PURE__ */ n(j, { onClick: a, size: "lg", children: "Continue" }),
4452
+ c.type === "success" && a && /* @__PURE__ */ n(_, { onClick: a, size: "lg", children: "Continue" }),
4428
4453
  c.type === "error" && /* @__PURE__ */ o(nt, { children: [
4429
- i && /* @__PURE__ */ n(j, { variant: "outline", onClick: i, children: "Contact Support" }),
4430
- a && /* @__PURE__ */ n(j, { onClick: a, children: "Try Again" })
4454
+ i && /* @__PURE__ */ n(_, { variant: "outline", onClick: i, children: "Contact Support" }),
4455
+ a && /* @__PURE__ */ n(_, { onClick: a, children: "Try Again" })
4431
4456
  ] }),
4432
4457
  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
4458
  ] })
@@ -4665,8 +4690,8 @@ Failed to reload test data. Please refresh the page.`);
4665
4690
  /* @__PURE__ */ n("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: w.map((p) => F(p)) })
4666
4691
  ] }),
4667
4692
  /* @__PURE__ */ o(ne, { className: "flex justify-between", children: [
4668
- s && /* @__PURE__ */ n(j, { type: "button", variant: "outline", onClick: s, disabled: g || c, children: "Cancel" }),
4669
- /* @__PURE__ */ n(j, { type: "submit", isLoading: g || c, children: "Create Applicant" })
4693
+ s && /* @__PURE__ */ n(_, { type: "button", variant: "outline", onClick: s, disabled: g || c, children: "Cancel" }),
4694
+ /* @__PURE__ */ n(_, { type: "submit", isLoading: g || c, children: "Create Applicant" })
4670
4695
  ] })
4671
4696
  ] }) }) });
4672
4697
  }, Wr = ({
@@ -4736,7 +4761,7 @@ Failed to reload test data. Please refresh the page.`);
4736
4761
  ] }) }) }) });
4737
4762
  if (i.status === le.Finished || i.status === le.OnHold)
4738
4763
  return /* @__PURE__ */ n("div", { className: `metakyc-sdk ${a || ""}`, children: /* @__PURE__ */ n(
4739
- _e,
4764
+ je,
4740
4765
  {
4741
4766
  kycStatus: i.kycStatus,
4742
4767
  reviewStatus: i.reviewStatus,
@@ -4845,7 +4870,7 @@ Failed to reload test data. Please refresh the page.`);
4845
4870
  return /* @__PURE__ */ n(Cr, { ...w });
4846
4871
  case B.ManualReview:
4847
4872
  return /* @__PURE__ */ n(
4848
- _e,
4873
+ je,
4849
4874
  {
4850
4875
  kycStatus: i.kycStatus,
4851
4876
  reviewStatus: i.reviewStatus,
@@ -4883,7 +4908,7 @@ export {
4883
4908
  Cr as AppropriatenessTestStep,
4884
4909
  he as Badge,
4885
4910
  Et as BaseInformationService,
4886
- j as Button,
4911
+ _ as Button,
4887
4912
  T as Card,
4888
4913
  M as CardContent,
4889
4914
  ne as CardFooter,
@@ -4912,13 +4937,13 @@ export {
4912
4937
  pt as InvestorCategoryType,
4913
4938
  ot as KycProcessStatus,
4914
4939
  pe as KycStatus,
4915
- _e as KycStatusDisplay,
4940
+ je as KycStatusDisplay,
4916
4941
  Wr as KycWorkflow,
4917
4942
  Er as Logo,
4918
4943
  Ke as MetaKYCContext,
4919
4944
  de as MetaKYCError,
4920
4945
  Or as MetaKYCProvider,
4921
- jt as OnfidoProvider,
4946
+ _t as OnfidoProvider,
4922
4947
  St as OverviewService,
4923
4948
  kr as OverviewStep,
4924
4949
  sr as PhoneInput,
@@ -4933,7 +4958,7 @@ export {
4933
4958
  ye as Select,
4934
4959
  ce as Spinner,
4935
4960
  zt as StepRouter,
4936
- _t as SumsubProvider,
4961
+ jt as SumsubProvider,
4937
4962
  Kt as ThemeManager,
4938
4963
  Q as ThemePreset,
4939
4964
  Mt as ThemeService,
@@ -4960,10 +4985,10 @@ export {
4960
4985
  yr as generateQuestionnaireSchema,
4961
4986
  br as generateRiskScoringSchema,
4962
4987
  qr as generateUploadDocumentSchema,
4963
- _r as getAcceptString,
4988
+ jr as getAcceptString,
4964
4989
  Vt as getApplicantId,
4965
4990
  xe as getThemePreset,
4966
- jr as getWorkflowState,
4991
+ _r as getWorkflowState,
4967
4992
  Pt as healthcareTheme,
4968
4993
  Mr as isScriptLoaded,
4969
4994
  Ue as loadScript,