@vpdev2/metakyc-sdk 1.0.18 → 1.0.19

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 _e, useForm as Te, Controller as J } from "react-hook-form";
8
+ import { get as De, set as Ee, appendErrors as je, 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 jt {
1341
+ class _t {
1342
1342
  constructor(e) {
1343
1343
  K(this, "sdk", null);
1344
1344
  K(this, "config");
@@ -1393,7 +1393,7 @@ class jt {
1393
1393
  this.sdk && this.sdk.on("idCheck.onError", e);
1394
1394
  }
1395
1395
  }
1396
- class _t {
1396
+ class jt {
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 jt(r);
1614
- case oe.Onfido:
1615
1613
  return new _t(r);
1614
+ case oe.Onfido:
1615
+ return new jt(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 jr(t) {
1865
+ function _r(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 _r() {
1904
+ function jr() {
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 j = ({
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] = _e(l, e, r, a, u ? [].concat(u, s.message) : s.message);
2947
+ r[l] = je(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] = _e(l, e, r, a, u ? [].concat(u, s.message) : s.message);
2966
+ r[l] = je(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(_, { type: "button", variant: "outline", onClick: r, children: "Back" }),
3197
+ r && /* @__PURE__ */ n(j, { type: "button", variant: "outline", onClick: r, children: "Back" }),
3198
3198
  /* @__PURE__ */ n(
3199
- _,
3199
+ j,
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(_, { type: "button", variant: "outline", onClick: r, children: "Back" }),
3266
- /* @__PURE__ */ n(_, { type: "submit", isLoading: i, children: "Continue" })
3265
+ r && /* @__PURE__ */ n(j, { type: "button", variant: "outline", onClick: r, children: "Back" }),
3266
+ /* @__PURE__ */ n(j, { type: "submit", isLoading: i, children: "Continue" })
3267
3267
  ] })
3268
3268
  ] }) }) : null;
3269
3269
  }, kr = ({ applicantId: t, onComplete: e, onBack: r }) => {
@@ -3278,76 +3278,13 @@ 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-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: {
3286
- border: "0",
3287
- borderWidth: "0",
3288
- borderStyle: "none",
3289
- borderTop: "0",
3290
- borderBottom: "0",
3291
- borderLeft: "0",
3292
- borderRight: "0"
3293
- },
3294
- children: [
3295
- /* @__PURE__ */ n(
3296
- "div",
3297
- {
3298
- className: "metakyc-step-icon flex-shrink-0",
3299
- style: {
3300
- border: "0",
3301
- borderTop: "0"
3302
- },
3303
- 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 })
3304
- }
3305
- ),
3306
- /* @__PURE__ */ o(
3307
- "div",
3308
- {
3309
- className: "metakyc-step-content",
3310
- style: {
3311
- flex: 1,
3312
- marginLeft: "1rem",
3313
- border: "none",
3314
- height: "auto",
3315
- background: "transparent",
3316
- margin: "0 0 0 1rem"
3317
- },
3318
- children: [
3319
- /* @__PURE__ */ n(
3320
- "h3",
3321
- {
3322
- className: "metakyc-step-title text-lg font-semibold text-gray-900 dark:text-white",
3323
- style: {
3324
- border: "0",
3325
- borderWidth: "0",
3326
- borderStyle: "none",
3327
- borderTop: "0",
3328
- borderBottom: "0",
3329
- borderLeft: "0",
3330
- borderRight: "0",
3331
- paddingTop: "0",
3332
- marginTop: "0",
3333
- boxShadow: "none",
3334
- outline: "none",
3335
- textDecoration: "none"
3336
- },
3337
- children: u.title
3338
- }
3339
- ),
3340
- u.description && /* @__PURE__ */ n("p", { className: "metakyc-step-description text-sm text-gray-600 dark:text-gray-400 mt-1", children: u.description })
3341
- ]
3342
- }
3343
- )
3344
- ]
3345
- },
3346
- u.order
3347
- )) }) : /* @__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-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..." }) }) }),
3348
3285
  /* @__PURE__ */ o(ne, { className: "flex justify-between", children: [
3349
- r && /* @__PURE__ */ n(_, { type: "button", variant: "outline", onClick: r, children: "Back" }),
3350
- /* @__PURE__ */ n(_, { onClick: d, isLoading: i, children: "Continue" })
3286
+ r && /* @__PURE__ */ n(j, { type: "button", variant: "outline", onClick: r, children: "Back" }),
3287
+ /* @__PURE__ */ n(j, { onClick: d, isLoading: i, children: "Continue" })
3351
3288
  ] })
3352
3289
  ] }) : null;
3353
3290
  }, Nr = ({
@@ -3514,9 +3451,9 @@ const Vr = ue.any(), xr = ({
3514
3451
  ] }, h.id);
3515
3452
  }) }),
3516
3453
  /* @__PURE__ */ o(ne, { className: "flex justify-between", children: [
3517
- r && /* @__PURE__ */ n(_, { type: "button", variant: "outline", onClick: r, children: "Back" }),
3454
+ r && /* @__PURE__ */ n(j, { type: "button", variant: "outline", onClick: r, children: "Back" }),
3518
3455
  /* @__PURE__ */ n(
3519
- _,
3456
+ j,
3520
3457
  {
3521
3458
  type: "submit",
3522
3459
  isLoading: i,
@@ -3658,9 +3595,9 @@ const Vr = ue.any(), xr = ({
3658
3595
  ] }) })
3659
3596
  ] }),
3660
3597
  /* @__PURE__ */ o(ne, { className: "flex justify-between", children: [
3661
- r && /* @__PURE__ */ n(_, { type: "button", variant: "outline", onClick: r, children: "Back" }),
3598
+ r && /* @__PURE__ */ n(j, { type: "button", variant: "outline", onClick: r, children: "Back" }),
3662
3599
  /* @__PURE__ */ n(
3663
- _,
3600
+ j,
3664
3601
  {
3665
3602
  type: "submit",
3666
3603
  isLoading: l,
@@ -3888,7 +3825,7 @@ Failed to reload test data. Please refresh the page.`);
3888
3825
  ] }),
3889
3826
  /* @__PURE__ */ o(ne, { className: "flex justify-between", children: [
3890
3827
  /* @__PURE__ */ n(
3891
- _,
3828
+ j,
3892
3829
  {
3893
3830
  type: "button",
3894
3831
  variant: "outline",
@@ -3898,7 +3835,7 @@ Failed to reload test data. Please refresh the page.`);
3898
3835
  }
3899
3836
  ),
3900
3837
  /* @__PURE__ */ n(
3901
- _,
3838
+ j,
3902
3839
  {
3903
3840
  type: "submit",
3904
3841
  isLoading: d,
@@ -3940,9 +3877,9 @@ Failed to reload test data. Please refresh the page.`);
3940
3877
  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." }) })
3941
3878
  ] }),
3942
3879
  /* @__PURE__ */ o(ne, { className: "flex justify-between", children: [
3943
- r && /* @__PURE__ */ n(_, { type: "button", variant: "outline", onClick: r, children: "Back" }),
3880
+ r && /* @__PURE__ */ n(j, { type: "button", variant: "outline", onClick: r, children: "Back" }),
3944
3881
  /* @__PURE__ */ n(
3945
- _,
3882
+ j,
3946
3883
  {
3947
3884
  type: "button",
3948
3885
  onClick: C,
@@ -3982,15 +3919,15 @@ Failed to reload test data. Please refresh the page.`);
3982
3919
  return !Ae || Y.has(Ae) ? !1 : (Y.add(Ae), !0);
3983
3920
  });
3984
3921
  A(ae);
3985
- const j = D.applicantRequestData;
3922
+ const _ = D.applicantRequestData;
3986
3923
  if (U.reset({
3987
- street: (j == null ? void 0 : j.street) || "",
3988
- streetNumber: (j == null ? void 0 : j.streetNumber) || "",
3989
- city: (j == null ? void 0 : j.city) || "",
3990
- zip: (j == null ? void 0 : j.zip) || "",
3991
- country: (j == null ? void 0 : j.country) || "",
3992
- nationality: (j == null ? void 0 : j.nationality) || "",
3993
- phonenumber: (j == null ? void 0 : j.phonenumber) || ""
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) || ""
3994
3931
  }), D.kycRecords && D.kycRecords.length > 0 && D.kycRecords[0].providerTokenObject !== null && !V.current) {
3995
3932
  console.log("[Identity] Found existing identity verification, auto-requesting..."), V.current = !0;
3996
3933
  try {
@@ -4065,9 +4002,9 @@ Failed to reload test data. Please refresh the page.`);
4065
4002
  e == null || e();
4066
4003
  }, 2e3);
4067
4004
  }).catch((Y) => {
4068
- var j;
4005
+ var _;
4069
4006
  console.error("[SardinAI] Failed to initialize:", Y);
4070
- const ae = ((j = Y.message) == null ? void 0 : j.toLowerCase()) || "";
4007
+ const ae = ((_ = Y.message) == null ? void 0 : _.toLowerCase()) || "";
4071
4008
  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}`);
4072
4009
  });
4073
4010
  } catch (D) {
@@ -4160,8 +4097,8 @@ Failed to reload test data. Please refresh the page.`);
4160
4097
  ] })
4161
4098
  ] }),
4162
4099
  /* @__PURE__ */ o(ne, { className: "flex justify-between", children: [
4163
- r && /* @__PURE__ */ n(_, { type: "button", variant: "outline", onClick: r, children: "Back" }),
4164
- /* @__PURE__ */ n(_, { type: "button", onClick: x, disabled: u, children: u ? "Restarting..." : "Restart Verification" })
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" })
4165
4102
  ] })
4166
4103
  ] });
4167
4104
  if (E && l) {
@@ -4173,7 +4110,7 @@ Failed to reload test data. Please refresh the page.`);
4173
4110
  /* @__PURE__ */ n("p", { className: "text-gray-600 dark:text-gray-400 mt-1", children: "Please complete the identity verification process" })
4174
4111
  ] }),
4175
4112
  /* @__PURE__ */ n(
4176
- _,
4113
+ j,
4177
4114
  {
4178
4115
  type: "button",
4179
4116
  variant: "outline",
@@ -4200,7 +4137,7 @@ Failed to reload test data. Please refresh the page.`);
4200
4137
  var G, Y, ae;
4201
4138
  console.log("[Identity] Iframe loaded");
4202
4139
  try {
4203
- const j = D.target, Ce = j.contentDocument || ((G = j.contentWindow) == null ? void 0 : G.document);
4140
+ const _ = D.target, Ce = _.contentDocument || ((G = _.contentWindow) == null ? void 0 : G.document);
4204
4141
  if (Ce) {
4205
4142
  const me = ((ae = (Y = Ce.body) == null ? void 0 : Y.textContent) == null ? void 0 : ae.toLowerCase()) || "";
4206
4143
  (me.includes("expired") || me.includes("invalid") || me.includes("error")) && (console.warn("[Identity] Iframe shows expiration message"), O(!0), C("Your verification link has expired."));
@@ -4212,7 +4149,7 @@ Failed to reload test data. Please refresh the page.`);
4212
4149
  }
4213
4150
  ) })
4214
4151
  ] }),
4215
- r && /* @__PURE__ */ n(ne, { children: /* @__PURE__ */ n(_, { variant: "outline", onClick: r, children: "Back" }) })
4152
+ r && /* @__PURE__ */ n(ne, { children: /* @__PURE__ */ n(j, { variant: "outline", onClick: r, children: "Back" }) })
4216
4153
  ] }) : L === oe.SardinAI ? /* @__PURE__ */ o(T, { children: [
4217
4154
  /* @__PURE__ */ o(ee, { children: [
4218
4155
  /* @__PURE__ */ n("h2", { className: "text-2xl font-bold", children: "Device Risk Assessment" }),
@@ -4229,7 +4166,7 @@ Failed to reload test data. Please refresh the page.`);
4229
4166
  /* @__PURE__ */ n("p", { className: "text-gray-600 dark:text-gray-400 mt-1", children: "Please complete the identity verification process" })
4230
4167
  ] }),
4231
4168
  /* @__PURE__ */ n(M, { children: /* @__PURE__ */ n("div", { id: "identity-container", className: "min-h-[400px]" }) }),
4232
- r && /* @__PURE__ */ n(ne, { children: /* @__PURE__ */ n(_, { variant: "outline", onClick: r, children: "Back" }) })
4169
+ r && /* @__PURE__ */ n(ne, { children: /* @__PURE__ */ n(j, { variant: "outline", onClick: r, children: "Back" }) })
4233
4170
  ] });
4234
4171
  }
4235
4172
  return /* @__PURE__ */ n("form", { onSubmit: U.handleSubmit(p), children: /* @__PURE__ */ o(T, { children: [
@@ -4349,11 +4286,11 @@ Failed to reload test data. Please refresh the page.`);
4349
4286
  ] })
4350
4287
  ] }),
4351
4288
  /* @__PURE__ */ o(ne, { className: "flex justify-between", children: [
4352
- r && /* @__PURE__ */ n(_, { type: "button", variant: "outline", onClick: r, children: "Back" }),
4353
- /* @__PURE__ */ n(_, { type: "submit", isLoading: u, children: "Confirm and Start Verification" })
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" })
4354
4291
  ] })
4355
4292
  ] }) });
4356
- }, je = ({
4293
+ }, _e = ({
4357
4294
  kycStatus: t,
4358
4295
  reviewStatus: e,
4359
4296
  workflowResult: r,
@@ -4487,10 +4424,10 @@ Failed to reload test data. Please refresh the page.`);
4487
4424
  ] }) })
4488
4425
  ] }),
4489
4426
  /* @__PURE__ */ o(ne, { className: "flex justify-center gap-4", children: [
4490
- c.type === "success" && a && /* @__PURE__ */ n(_, { onClick: a, size: "lg", children: "Continue" }),
4427
+ c.type === "success" && a && /* @__PURE__ */ n(j, { onClick: a, size: "lg", children: "Continue" }),
4491
4428
  c.type === "error" && /* @__PURE__ */ o(nt, { children: [
4492
- i && /* @__PURE__ */ n(_, { variant: "outline", onClick: i, children: "Contact Support" }),
4493
- a && /* @__PURE__ */ n(_, { onClick: a, children: "Try Again" })
4429
+ i && /* @__PURE__ */ n(j, { variant: "outline", onClick: i, children: "Contact Support" }),
4430
+ a && /* @__PURE__ */ n(j, { onClick: a, children: "Try Again" })
4494
4431
  ] }),
4495
4432
  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" }) })
4496
4433
  ] })
@@ -4728,8 +4665,8 @@ Failed to reload test data. Please refresh the page.`);
4728
4665
  /* @__PURE__ */ n("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: w.map((p) => F(p)) })
4729
4666
  ] }),
4730
4667
  /* @__PURE__ */ o(ne, { className: "flex justify-between", children: [
4731
- s && /* @__PURE__ */ n(_, { type: "button", variant: "outline", onClick: s, disabled: g || c, children: "Cancel" }),
4732
- /* @__PURE__ */ n(_, { type: "submit", isLoading: g || c, children: "Create Applicant" })
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" })
4733
4670
  ] })
4734
4671
  ] }) }) });
4735
4672
  }, Wr = ({
@@ -4799,7 +4736,7 @@ Failed to reload test data. Please refresh the page.`);
4799
4736
  ] }) }) }) });
4800
4737
  if (i.status === le.Finished || i.status === le.OnHold)
4801
4738
  return /* @__PURE__ */ n("div", { className: `metakyc-sdk ${a || ""}`, children: /* @__PURE__ */ n(
4802
- je,
4739
+ _e,
4803
4740
  {
4804
4741
  kycStatus: i.kycStatus,
4805
4742
  reviewStatus: i.reviewStatus,
@@ -4908,7 +4845,7 @@ Failed to reload test data. Please refresh the page.`);
4908
4845
  return /* @__PURE__ */ n(Cr, { ...w });
4909
4846
  case B.ManualReview:
4910
4847
  return /* @__PURE__ */ n(
4911
- je,
4848
+ _e,
4912
4849
  {
4913
4850
  kycStatus: i.kycStatus,
4914
4851
  reviewStatus: i.reviewStatus,
@@ -4946,7 +4883,7 @@ export {
4946
4883
  Cr as AppropriatenessTestStep,
4947
4884
  he as Badge,
4948
4885
  Et as BaseInformationService,
4949
- _ as Button,
4886
+ j as Button,
4950
4887
  T as Card,
4951
4888
  M as CardContent,
4952
4889
  ne as CardFooter,
@@ -4975,13 +4912,13 @@ export {
4975
4912
  pt as InvestorCategoryType,
4976
4913
  ot as KycProcessStatus,
4977
4914
  pe as KycStatus,
4978
- je as KycStatusDisplay,
4915
+ _e as KycStatusDisplay,
4979
4916
  Wr as KycWorkflow,
4980
4917
  Er as Logo,
4981
4918
  Ke as MetaKYCContext,
4982
4919
  de as MetaKYCError,
4983
4920
  Or as MetaKYCProvider,
4984
- _t as OnfidoProvider,
4921
+ jt as OnfidoProvider,
4985
4922
  St as OverviewService,
4986
4923
  kr as OverviewStep,
4987
4924
  sr as PhoneInput,
@@ -4996,7 +4933,7 @@ export {
4996
4933
  ye as Select,
4997
4934
  ce as Spinner,
4998
4935
  zt as StepRouter,
4999
- jt as SumsubProvider,
4936
+ _t as SumsubProvider,
5000
4937
  Kt as ThemeManager,
5001
4938
  Q as ThemePreset,
5002
4939
  Mt as ThemeService,
@@ -5023,10 +4960,10 @@ export {
5023
4960
  yr as generateQuestionnaireSchema,
5024
4961
  br as generateRiskScoringSchema,
5025
4962
  qr as generateUploadDocumentSchema,
5026
- jr as getAcceptString,
4963
+ _r as getAcceptString,
5027
4964
  Vt as getApplicantId,
5028
4965
  xe as getThemePreset,
5029
- _r as getWorkflowState,
4966
+ jr as getWorkflowState,
5030
4967
  Pt as healthcareTheme,
5031
4968
  Mr as isScriptLoaded,
5032
4969
  Ue as loadScript,