@vpdev2/metakyc-sdk 1.0.82 → 1.0.83

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
@@ -8,7 +8,7 @@ import { jsx as r, jsxs as o, Fragment as qe } from "react/jsx-runtime";
8
8
  import Ct, { createPortal as it } from "react-dom";
9
9
  import { useForm as Et, Controller as Le } from "react-hook-form";
10
10
  import { z as Ae } from "zod";
11
- var ee = /* @__PURE__ */ ((e) => (e[e.IdentitySdk = 0] = "IdentitySdk", e[e.RiskScoring = 1] = "RiskScoring", e[e.Questionaries = 2] = "Questionaries", e[e.AdditionalData = 3] = "AdditionalData", e[e.AppropriatenessTest = 4] = "AppropriatenessTest", e[e.UploadDocument = 5] = "UploadDocument", e[e.ManualReview = 6] = "ManualReview", e[e.Overview = 7] = "Overview", e[e.InvestorCategorization = 8] = "InvestorCategorization", e))(ee || {}), Je = /* @__PURE__ */ ((e) => (e[e.NotStarted = 0] = "NotStarted", e[e.InProgress = 1] = "InProgress", e[e.Success = 2] = "Success", e[e.PartialSuccess = 3] = "PartialSuccess", e[e.Failed = 4] = "Failed", e[e.Skipped = 5] = "Skipped", e[e.AdminReview = 6] = "AdminReview", e[e.SkippedAndAdminReview = 7] = "SkippedAndAdminReview", e))(Je || {}), Ne = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.InProgress = 1] = "InProgress", e[e.Finished = 2] = "Finished", e[e.OnHold = 3] = "OnHold", e[e.IdentityPending = 4] = "IdentityPending", e))(Ne || {}), It = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.RepresentativeKYC = 1] = "RepresentativeKYC", e[e.ManualRiskCriteria = 2] = "ManualRiskCriteria", e[e.UploadDocumentReview = 3] = "UploadDocumentReview", e[e.AdminReview = 4] = "AdminReview", e))(It || {}), At = /* @__PURE__ */ ((e) => (e[e.LowRisk = 0] = "LowRisk", e[e.MediumRisk = 1] = "MediumRisk", e[e.HighRisk = 2] = "HighRisk", e[e.Alert = 3] = "Alert", e))(At || {}), De = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Pending = 1] = "Pending", e[e.Approved = 2] = "Approved", e[e.Rejected = 3] = "Rejected", e[e.ResendRequested = 4] = "ResendRequested", e[e.Unknown = 5] = "Unknown", e[e.InProgress = 6] = "InProgress", e))(De || {}), Me = /* @__PURE__ */ ((e) => (e[e.Approved = 0] = "Approved", e[e.Reject = 1] = "Reject", e[e.UnderReview = 2] = "UnderReview", e[e.Closed = 3] = "Closed", e[e.AdminReview = 4] = "AdminReview", e[e.New = 5] = "New", e[e.InProgress = 6] = "InProgress", e))(Me || {}), Rt = /* @__PURE__ */ ((e) => (e[e.ProviderResultPending = 0] = "ProviderResultPending", e[e.ProviderResultReceived = 1] = "ProviderResultReceived", e[e.Canceled = 2] = "Canceled", e[e.ExtendedToNewApplicant = 3] = "ExtendedToNewApplicant", e))(Rt || {}), Pt = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.ProviderResultPending = 1] = "ProviderResultPending", e[e.ProviderResultReceived = 2] = "ProviderResultReceived", e[e.Canceled = 3] = "Canceled", e))(Pt || {}), we = /* @__PURE__ */ ((e) => (e[e.Onfido = 0] = "Onfido", e[e.Sumsub = 2] = "Sumsub", e[e.SardinAI = 3] = "SardinAI", e))(we || {}), Tt = /* @__PURE__ */ ((e) => (e[e.Individual = 0] = "Individual", e[e.Company = 1] = "Company", e))(Tt || {}), Ze = /* @__PURE__ */ ((e) => (e[e.Male = 0] = "Male", e[e.Female = 1] = "Female", e[e.Other = 2] = "Other", e))(Ze || {}), Ft = /* @__PURE__ */ ((e) => (e[e.Image = 0] = "Image", e[e.Video = 1] = "Video", e[e.PDF = 2] = "PDF", e[e.OfficePDF = 3] = "OfficePDF", e[e.Custom = 4] = "Custom", e))(Ft || {}), Lt = /* @__PURE__ */ ((e) => (e[e.Pending = 0] = "Pending", e[e.Approved = 1] = "Approved", e[e.Rejected = 2] = "Rejected", e[e.RequiresRevision = 3] = "RequiresRevision", e))(Lt || {}), Dt = /* @__PURE__ */ ((e) => (e[e.SingleChoice = 0] = "SingleChoice", e[e.MultipleChoice = 1] = "MultipleChoice", e[e.Text = 2] = "Text", e))(Dt || {}), Ie = /* @__PURE__ */ ((e) => (e[e.String = 0] = "String", e[e.Integer = 1] = "Integer", e[e.Money = 2] = "Money", e[e.Boolean = 3] = "Boolean", e[e.Date = 4] = "Date", e[e.Country = 5] = "Country", e[e.DigitOnly = 6] = "DigitOnly", e))(Ie || {}), Mt = /* @__PURE__ */ ((e) => (e[e.Text = 0] = "Text", e[e.Radio = 1] = "Radio", e[e.Checkbox = 2] = "Checkbox", e[e.Dropdown = 3] = "Dropdown", e[e.Country = 4] = "Country", e))(Mt || {}), Ot = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Country = 1] = "Country", e))(Ot || {}), xe = /* @__PURE__ */ ((e) => (e[e.Individual = 0] = "Individual", e[e.Sophisticated = 1] = "Sophisticated", e[e.HighNetWorth = 2] = "HighNetWorth", e[e.Business = 3] = "Business", e))(xe || {}), Bt = /* @__PURE__ */ ((e) => (e[e.Retail = 0] = "Retail", e[e.Professional = 1] = "Professional", e[e.EligibleCounterparty = 2] = "EligibleCounterparty", e))(Bt || {});
11
+ var ee = /* @__PURE__ */ ((e) => (e[e.IdentitySdk = 0] = "IdentitySdk", e[e.RiskScoring = 1] = "RiskScoring", e[e.Questionaries = 2] = "Questionaries", e[e.AdditionalData = 3] = "AdditionalData", e[e.AppropriatenessTest = 4] = "AppropriatenessTest", e[e.UploadDocument = 5] = "UploadDocument", e[e.ManualReview = 6] = "ManualReview", e[e.Overview = 7] = "Overview", e[e.InvestorCategorization = 8] = "InvestorCategorization", e))(ee || {}), Je = /* @__PURE__ */ ((e) => (e[e.NotStarted = 0] = "NotStarted", e[e.InProgress = 1] = "InProgress", e[e.Success = 2] = "Success", e[e.PartialSuccess = 3] = "PartialSuccess", e[e.Failed = 4] = "Failed", e[e.Skipped = 5] = "Skipped", e[e.AdminReview = 6] = "AdminReview", e[e.SkippedAndAdminReview = 7] = "SkippedAndAdminReview", e))(Je || {}), Ne = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.InProgress = 1] = "InProgress", e[e.Finished = 2] = "Finished", e[e.OnHold = 3] = "OnHold", e[e.IdentityPending = 4] = "IdentityPending", e))(Ne || {}), It = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.RepresentativeKYC = 1] = "RepresentativeKYC", e[e.ManualRiskCriteria = 2] = "ManualRiskCriteria", e[e.UploadDocumentReview = 3] = "UploadDocumentReview", e[e.AdminReview = 4] = "AdminReview", e))(It || {}), At = /* @__PURE__ */ ((e) => (e[e.LowRisk = 0] = "LowRisk", e[e.MediumRisk = 1] = "MediumRisk", e[e.HighRisk = 2] = "HighRisk", e[e.Alert = 3] = "Alert", e))(At || {}), De = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Pending = 1] = "Pending", e[e.Approved = 2] = "Approved", e[e.Rejected = 3] = "Rejected", e[e.ResendRequested = 4] = "ResendRequested", e[e.Unknown = 5] = "Unknown", e[e.InProgress = 6] = "InProgress", e))(De || {}), Me = /* @__PURE__ */ ((e) => (e[e.Approved = 0] = "Approved", e[e.Reject = 1] = "Reject", e[e.UnderReview = 2] = "UnderReview", e[e.Closed = 3] = "Closed", e[e.AdminReview = 4] = "AdminReview", e[e.New = 5] = "New", e[e.InProgress = 6] = "InProgress", e))(Me || {}), Rt = /* @__PURE__ */ ((e) => (e[e.ProviderResultPending = 0] = "ProviderResultPending", e[e.ProviderResultReceived = 1] = "ProviderResultReceived", e[e.Canceled = 2] = "Canceled", e[e.ExtendedToNewApplicant = 3] = "ExtendedToNewApplicant", e))(Rt || {}), Pt = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.ProviderResultPending = 1] = "ProviderResultPending", e[e.ProviderResultReceived = 2] = "ProviderResultReceived", e[e.Canceled = 3] = "Canceled", e))(Pt || {}), we = /* @__PURE__ */ ((e) => (e[e.Onfido = 0] = "Onfido", e[e.Sumsub = 2] = "Sumsub", e[e.SardinAI = 3] = "SardinAI", e))(we || {}), Ft = /* @__PURE__ */ ((e) => (e[e.Individual = 0] = "Individual", e[e.Company = 1] = "Company", e))(Ft || {}), Ze = /* @__PURE__ */ ((e) => (e[e.Male = 0] = "Male", e[e.Female = 1] = "Female", e[e.Other = 2] = "Other", e))(Ze || {}), Tt = /* @__PURE__ */ ((e) => (e[e.Image = 0] = "Image", e[e.Video = 1] = "Video", e[e.PDF = 2] = "PDF", e[e.OfficePDF = 3] = "OfficePDF", e[e.Custom = 4] = "Custom", e))(Tt || {}), Lt = /* @__PURE__ */ ((e) => (e[e.Pending = 0] = "Pending", e[e.Approved = 1] = "Approved", e[e.Rejected = 2] = "Rejected", e[e.RequiresRevision = 3] = "RequiresRevision", e))(Lt || {}), Dt = /* @__PURE__ */ ((e) => (e[e.SingleChoice = 0] = "SingleChoice", e[e.MultipleChoice = 1] = "MultipleChoice", e[e.Text = 2] = "Text", e))(Dt || {}), Ie = /* @__PURE__ */ ((e) => (e[e.String = 0] = "String", e[e.Integer = 1] = "Integer", e[e.Money = 2] = "Money", e[e.Boolean = 3] = "Boolean", e[e.Date = 4] = "Date", e[e.Country = 5] = "Country", e[e.DigitOnly = 6] = "DigitOnly", e))(Ie || {}), Mt = /* @__PURE__ */ ((e) => (e[e.Text = 0] = "Text", e[e.Radio = 1] = "Radio", e[e.Checkbox = 2] = "Checkbox", e[e.Dropdown = 3] = "Dropdown", e[e.Country = 4] = "Country", e))(Mt || {}), Ot = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Country = 1] = "Country", e))(Ot || {}), xe = /* @__PURE__ */ ((e) => (e[e.Individual = 0] = "Individual", e[e.Sophisticated = 1] = "Sophisticated", e[e.HighNetWorth = 2] = "HighNetWorth", e[e.Business = 3] = "Business", e))(xe || {}), Bt = /* @__PURE__ */ ((e) => (e[e.Retail = 0] = "Retail", e[e.Professional = 1] = "Professional", e[e.EligibleCounterparty = 2] = "EligibleCounterparty", e))(Bt || {});
12
12
  const Be = {
13
13
  Nationality: 10,
14
14
  Address: 20,
@@ -1845,7 +1845,7 @@ class mr {
1845
1845
  }
1846
1846
  const yt = Nt(null), mn = ({ config: e, children: t }) => {
1847
1847
  const [n, a] = k(null), s = ve.useRef(!1), l = ve.useRef(!1), c = Pe(() => {
1848
- const h = new Ht(e), m = new Ut(h), v = new jt(h), w = new Kt(h), f = new Wt(h), N = new Yt(h), b = new Vt(h), P = new qt(h), T = new Qt(h), R = new Gt(h), O = new nr(h), A = new mr();
1848
+ const h = new Ht(e), m = new Ut(h), v = new jt(h), w = new Kt(h), f = new Wt(h), N = new Yt(h), b = new Vt(h), P = new qt(h), F = new Qt(h), R = new Gt(h), O = new nr(h), A = new mr();
1849
1849
  return {
1850
1850
  httpClient: h,
1851
1851
  applicantService: m,
@@ -1855,7 +1855,7 @@ const yt = Nt(null), mn = ({ config: e, children: t }) => {
1855
1855
  overviewService: N,
1856
1856
  riskScoringService: b,
1857
1857
  identityService: P,
1858
- baseInformationService: T,
1858
+ baseInformationService: F,
1859
1859
  investorCategorizationService: R,
1860
1860
  themeService: O,
1861
1861
  themeManager: A
@@ -2062,20 +2062,20 @@ function xr(e) {
2062
2062
  l(!1);
2063
2063
  }
2064
2064
  }
2065
- }, []), T = Q(async (A) => {
2065
+ }, []), F = Q(async (A) => {
2066
2066
  if (h.current) {
2067
2067
  l(!0), u(null);
2068
2068
  try {
2069
2069
  await h.current.submitCurrentStep(A);
2070
- const F = await h.current.refreshProgress();
2071
- a(F);
2072
- } catch (F) {
2073
- throw u(F), F;
2070
+ const T = await h.current.refreshProgress();
2071
+ a(T);
2072
+ } catch (T) {
2073
+ throw u(T), T;
2074
2074
  } finally {
2075
2075
  l(!1);
2076
2076
  }
2077
2077
  }
2078
- }, []), R = ot.useMemo(() => n != null && n.stepInfoList ? [...n.stepInfoList].sort((A, F) => A.order - F.order) : [], [n == null ? void 0 : n.stepInfoList]), O = ot.useMemo(() => n ? n.nextWorkflowKey && n.nextWorkflowKey !== n.workFlowKey : !1, [n]);
2078
+ }, []), R = ot.useMemo(() => n != null && n.stepInfoList ? [...n.stepInfoList].sort((A, T) => A.order - T.order) : [], [n == null ? void 0 : n.stepInfoList]), O = ot.useMemo(() => n ? n.nextWorkflowKey && n.nextWorkflowKey !== n.workFlowKey : !1, [n]);
2079
2079
  return {
2080
2080
  progress: n,
2081
2081
  applicantId: m,
@@ -2093,7 +2093,7 @@ function xr(e) {
2093
2093
  refreshProgress: N,
2094
2094
  moveToNext: b,
2095
2095
  moveBack: P,
2096
- submitCurrentStep: T,
2096
+ submitCurrentStep: F,
2097
2097
  orchestrator: h.current
2098
2098
  };
2099
2099
  }
@@ -2107,13 +2107,13 @@ function vr(e) {
2107
2107
  }
2108
2108
  N.current = !0, h(!0), f(null);
2109
2109
  try {
2110
- const [A, F] = await Promise.all([
2110
+ const [A, T] = await Promise.all([
2111
2111
  t.getQuestionnaire(e),
2112
2112
  n.getApplicantData(e).catch(() => null)
2113
2113
  ]);
2114
- if (s(A), (R = F == null ? void 0 : F.questionnaireResults) != null && R.length && A) {
2114
+ if (s(A), (R = T == null ? void 0 : T.questionnaireResults) != null && R.length && A) {
2115
2115
  const K = /* @__PURE__ */ new Map();
2116
- for (const S of F.questionnaireResults)
2116
+ for (const S of T.questionnaireResults)
2117
2117
  S.question && ((O = S.answers) != null && O.length) && K.set(S.question.trim().toLowerCase(), S.answers);
2118
2118
  const re = {}, B = A.questionGroups.flatMap((S) => S.questions ?? []);
2119
2119
  for (const S of B) {
@@ -2133,7 +2133,7 @@ function vr(e) {
2133
2133
  ie(() => {
2134
2134
  e && b.current !== e && P();
2135
2135
  }, [e]);
2136
- const T = Q(
2136
+ const F = Q(
2137
2137
  async (R) => {
2138
2138
  v(!0), f(null);
2139
2139
  try {
@@ -2153,7 +2153,7 @@ function vr(e) {
2153
2153
  isSubmitting: m,
2154
2154
  error: w,
2155
2155
  load: P,
2156
- submit: T
2156
+ submit: F
2157
2157
  };
2158
2158
  }
2159
2159
  function kr(e) {
@@ -2165,10 +2165,10 @@ function kr(e) {
2165
2165
  }
2166
2166
  f.current = !0, l(!0), w(null);
2167
2167
  try {
2168
- const T = await t.getUploadDocument(e);
2169
- a(T), N.current = e;
2170
- } catch (T) {
2171
- w(T);
2168
+ const F = await t.getUploadDocument(e);
2169
+ a(F), N.current = e;
2170
+ } catch (F) {
2171
+ w(F);
2172
2172
  } finally {
2173
2173
  l(!1), f.current = !1;
2174
2174
  }
@@ -2178,10 +2178,10 @@ function kr(e) {
2178
2178
  e && N.current !== e && b();
2179
2179
  }, [e]);
2180
2180
  const P = Q(
2181
- async (T) => {
2181
+ async (F) => {
2182
2182
  u(!0), m(0), w(null);
2183
2183
  try {
2184
- await t.fillUploadDocument(T), m(100);
2184
+ await t.fillUploadDocument(F), m(100);
2185
2185
  } catch (R) {
2186
2186
  throw w(R), R;
2187
2187
  } finally {
@@ -2209,10 +2209,10 @@ function bn(e) {
2209
2209
  }
2210
2210
  f.current = !0, l(!0), m(null);
2211
2211
  try {
2212
- const T = await t.getAppropriatenessTest(e);
2213
- a(T), N.current = e;
2214
- } catch (T) {
2215
- m(T);
2212
+ const F = await t.getAppropriatenessTest(e);
2213
+ a(F), N.current = e;
2214
+ } catch (F) {
2215
+ m(F);
2216
2216
  } finally {
2217
2217
  l(!1), f.current = !1;
2218
2218
  }
@@ -2222,10 +2222,10 @@ function bn(e) {
2222
2222
  e && N.current !== e && b();
2223
2223
  }, [e]);
2224
2224
  const P = Q(
2225
- async (T) => {
2225
+ async (F) => {
2226
2226
  u(!0), m(null);
2227
2227
  try {
2228
- const R = await t.fillAppropriatenessTest(T);
2228
+ const R = await t.fillAppropriatenessTest(F);
2229
2229
  return w(R), R;
2230
2230
  } catch (R) {
2231
2231
  throw m(R), R;
@@ -2374,7 +2374,7 @@ function Nr(e) {
2374
2374
  };
2375
2375
  }
2376
2376
  function Sr(e) {
2377
- const { riskScoringService: t, applicantService: n } = be(), [a, s] = k(null), [l, c] = k({}), [u, h] = k(!1), [m, v] = k(!1), [w, f] = k(null), [N, b] = k(null), P = te(!1), T = te(null), R = Q(async () => {
2377
+ const { riskScoringService: t, applicantService: n } = be(), [a, s] = k(null), [l, c] = k({}), [u, h] = k(!1), [m, v] = k(!1), [w, f] = k(null), [N, b] = k(null), P = te(!1), F = te(null), R = Q(async () => {
2378
2378
  var A;
2379
2379
  if (e) {
2380
2380
  if (P.current) {
@@ -2383,11 +2383,11 @@ function Sr(e) {
2383
2383
  }
2384
2384
  P.current = !0, h(!0), f(null);
2385
2385
  try {
2386
- const [F, K] = await Promise.all([
2386
+ const [T, K] = await Promise.all([
2387
2387
  t.getRiskCriterias(e),
2388
2388
  n.getApplicantData(e).catch(() => null)
2389
2389
  ]);
2390
- if (s(F), (A = K == null ? void 0 : K.riskScoringResults) != null && A.length) {
2390
+ if (s(T), (A = K == null ? void 0 : K.riskScoringResults) != null && A.length) {
2391
2391
  const re = K.riskScoringResults[0], B = {};
2392
2392
  for (const S of re.riskCriteriaResults ?? [])
2393
2393
  if (S.riskCriteriaId != null && S.answer != null && S.answer !== "") {
@@ -2398,25 +2398,25 @@ function Sr(e) {
2398
2398
  }
2399
2399
  c(B);
2400
2400
  }
2401
- T.current = e;
2402
- } catch (F) {
2403
- f(F);
2401
+ F.current = e;
2402
+ } catch (T) {
2403
+ f(T);
2404
2404
  } finally {
2405
2405
  h(!1), P.current = !1;
2406
2406
  }
2407
2407
  }
2408
2408
  }, [e, t, n]);
2409
2409
  ie(() => {
2410
- e && T.current !== e && R();
2410
+ e && F.current !== e && R();
2411
2411
  }, [e]);
2412
2412
  const O = Q(
2413
2413
  async (A) => {
2414
2414
  v(!0), f(null);
2415
2415
  try {
2416
- const F = await t.submitRiskScoring(A);
2417
- return b(F), F;
2418
- } catch (F) {
2419
- throw f(F), F;
2416
+ const T = await t.submitRiskScoring(A);
2417
+ return b(T), T;
2418
+ } catch (T) {
2419
+ throw f(T), T;
2420
2420
  } finally {
2421
2421
  v(!1);
2422
2422
  }
@@ -2446,10 +2446,10 @@ function Cr() {
2446
2446
  c.current = !0, a(!0), l(null);
2447
2447
  try {
2448
2448
  if (N.applicantAdditionalDatas || (N.applicantAdditionalDatas = []), (b = t.identityProviders) != null && b.sardinai) {
2449
- const T = h();
2450
- console.log("[SardinAI] Generated session key:", T), N.applicantAdditionalDatas.push({
2449
+ const F = h();
2450
+ console.log("[SardinAI] Generated session key:", F), N.applicantAdditionalDatas.push({
2451
2451
  paramName: "sessionKey",
2452
- value: T
2452
+ value: F
2453
2453
  });
2454
2454
  }
2455
2455
  return await e.createApplicant(N);
@@ -2783,9 +2783,9 @@ const ct = 280, Er = ({
2783
2783
  primaryColor: "#2563eb",
2784
2784
  primaryLight: "#eff6ff",
2785
2785
  hoverBg: "#f9fafb"
2786
- }), P = te(null), T = te(null), R = te(null), O = Q(() => {
2787
- if (!T.current) return null;
2788
- const E = T.current.getBoundingClientRect(), G = window.innerHeight - E.bottom < ct && E.top > ct;
2786
+ }), P = te(null), F = te(null), R = te(null), O = Q(() => {
2787
+ if (!F.current) return null;
2788
+ const E = F.current.getBoundingClientRect(), G = window.innerHeight - E.bottom < ct && E.top > ct;
2789
2789
  return { top: G ? E.top : E.bottom + 4, left: E.left, width: E.width, openUp: G };
2790
2790
  }, []), A = Q(() => {
2791
2791
  const E = getComputedStyle(document.documentElement), _ = (le, ne) => E.getPropertyValue(le).trim() || ne, G = _("--metakyc-input-bg", _("--metakyc-background", "#ffffff"));
@@ -2798,7 +2798,7 @@ const ct = 280, Er = ({
2798
2798
  primaryLight: _("--metakyc-primary-light", "#eff6ff"),
2799
2799
  hoverBg: _("--metakyc-surface", G)
2800
2800
  });
2801
- }, []), F = Q(() => {
2801
+ }, []), T = Q(() => {
2802
2802
  if (l) return;
2803
2803
  A();
2804
2804
  const E = O();
@@ -2956,8 +2956,8 @@ const ct = 280, Er = ({
2956
2956
  /* @__PURE__ */ o(
2957
2957
  "div",
2958
2958
  {
2959
- ref: T,
2960
- onClick: () => u ? K() : F(),
2959
+ ref: F,
2960
+ onClick: () => u ? K() : T(),
2961
2961
  className: ue(
2962
2962
  "metakyc-multiselect-trigger",
2963
2963
  "min-h-[42px] w-full px-3 py-2 rounded-lg border text-sm transition-colors relative",
@@ -3032,7 +3032,7 @@ const ct = 280, Er = ({
3032
3032
  ),
3033
3033
  typeof document < "u" && de ? it(de, document.body) : null
3034
3034
  ] });
3035
- }, dt = 260, Te = ({
3035
+ }, dt = 260, Fe = ({
3036
3036
  label: e,
3037
3037
  error: t,
3038
3038
  helperText: n,
@@ -3045,7 +3045,7 @@ const ct = 280, Er = ({
3045
3045
  className: m
3046
3046
  }) => {
3047
3047
  var ne;
3048
- const [v, w] = k(!1), [f, N] = k(""), [b, P] = k(null), [T, R] = k({
3048
+ const [v, w] = k(!1), [f, N] = k(""), [b, P] = k(null), [F, R] = k({
3049
3049
  bg: "#ffffff",
3050
3050
  border: "#d1d5db",
3051
3051
  text: "#111827",
@@ -3064,9 +3064,9 @@ const ct = 280, Er = ({
3064
3064
  primaryLight: X("--metakyc-primary-light", "#eff6ff"),
3065
3065
  hoverBg: X("--metakyc-surface", oe)
3066
3066
  });
3067
- }, []), A = te(null), F = te(null), K = te(null), re = te(null), B = Q(() => {
3068
- if (!F.current) return null;
3069
- const I = F.current.getBoundingClientRect(), oe = window.innerHeight - I.bottom < dt && I.top > dt;
3067
+ }, []), A = te(null), T = te(null), K = te(null), re = te(null), B = Q(() => {
3068
+ if (!T.current) return null;
3069
+ const I = T.current.getBoundingClientRect(), oe = window.innerHeight - I.bottom < dt && I.top > dt;
3070
3070
  return {
3071
3071
  top: oe ? I.top : I.bottom + 4,
3072
3072
  left: I.left,
@@ -3108,7 +3108,7 @@ const ct = 280, Er = ({
3108
3108
  (I) => I.label.toLowerCase().includes(f.toLowerCase()) || I.value.toLowerCase().includes(f.toLowerCase())
3109
3109
  ), z = (ne = a.find((I) => I.value === l)) == null ? void 0 : ne.label, L = (I, X) => {
3110
3110
  u || X || (c(I), U());
3111
- }, { bg: D, border: q, text: W, textSecondary: de, primary: E, primaryLight: _, hoverBg: G } = T, le = v && b && /* @__PURE__ */ o(
3111
+ }, { bg: D, border: q, text: W, textSecondary: de, primary: E, primaryLight: _, hoverBg: G } = F, le = v && b && /* @__PURE__ */ o(
3112
3112
  "div",
3113
3113
  {
3114
3114
  ref: K,
@@ -3220,7 +3220,7 @@ const ct = 280, Er = ({
3220
3220
  /* @__PURE__ */ o(
3221
3221
  "div",
3222
3222
  {
3223
- ref: F,
3223
+ ref: T,
3224
3224
  role: "button",
3225
3225
  tabIndex: u ? -1 : 0,
3226
3226
  onClick: j,
@@ -3262,7 +3262,7 @@ const ct = 280, Er = ({
3262
3262
  }
3263
3263
  );
3264
3264
  };
3265
- Te.displayName = "SearchableSelect";
3265
+ Fe.displayName = "SearchableSelect";
3266
3266
  const Ir = ({
3267
3267
  label: e,
3268
3268
  error: t,
@@ -3276,9 +3276,9 @@ const Ir = ({
3276
3276
  const [h, m] = k(!1), v = te(null), w = (R) => {
3277
3277
  if (!R) return;
3278
3278
  const O = Array.from(R);
3279
- if (s && O.filter((F) => F.size > s).length > 0) {
3280
- const F = rt(s);
3281
- alert(`Some files exceed the maximum size of ${F}`);
3279
+ if (s && O.filter((T) => T.size > s).length > 0) {
3280
+ const T = rt(s);
3281
+ alert(`Some files exceed the maximum size of ${T}`);
3282
3282
  return;
3283
3283
  }
3284
3284
  l == null || l(a ? [...c, ...O] : [O[0]]);
@@ -3291,8 +3291,8 @@ const Ir = ({
3291
3291
  }, P = () => {
3292
3292
  var R;
3293
3293
  (R = v.current) == null || R.click();
3294
- }, T = (R) => {
3295
- const O = c.filter((A, F) => F !== R);
3294
+ }, F = (R) => {
3295
+ const O = c.filter((A, T) => T !== R);
3296
3296
  l == null || l(O);
3297
3297
  };
3298
3298
  return /* @__PURE__ */ o("div", { className: ue("w-full", u), children: [
@@ -3386,7 +3386,7 @@ const Ir = ({
3386
3386
  {
3387
3387
  type: "button",
3388
3388
  onClick: (A) => {
3389
- A.stopPropagation(), T(O);
3389
+ A.stopPropagation(), F(O);
3390
3390
  },
3391
3391
  className: "ml-2 text-danger-500 hover:text-danger-700 focus:outline-none",
3392
3392
  children: /* @__PURE__ */ r("svg", { className: "h-5 w-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ r(
@@ -3492,7 +3492,7 @@ const ut = (e) => {
3492
3492
  * This source code is licensed under the ISC license.
3493
3493
  * See the LICENSE file in the root directory of this source tree.
3494
3494
  */
3495
- var Tr = {
3495
+ var Fr = {
3496
3496
  xmlns: "http://www.w3.org/2000/svg",
3497
3497
  width: 24,
3498
3498
  height: 24,
@@ -3509,7 +3509,7 @@ var Tr = {
3509
3509
  * This source code is licensed under the ISC license.
3510
3510
  * See the LICENSE file in the root directory of this source tree.
3511
3511
  */
3512
- const Fr = (e) => {
3512
+ const Tr = (e) => {
3513
3513
  for (const t in e)
3514
3514
  if (t.startsWith("aria-") || t === "role" || t === "title")
3515
3515
  return !0;
@@ -3535,13 +3535,13 @@ const Lr = Qe(
3535
3535
  "svg",
3536
3536
  {
3537
3537
  ref: h,
3538
- ...Tr,
3538
+ ...Fr,
3539
3539
  width: t,
3540
3540
  height: t,
3541
3541
  stroke: e,
3542
3542
  strokeWidth: a ? Number(n) * 24 / Number(t) : n,
3543
3543
  className: gt("lucide", s),
3544
- ...!l && !Fr(u) && { "aria-hidden": "true" },
3544
+ ...!l && !Tr(u) && { "aria-hidden": "true" },
3545
3545
  ...u
3546
3546
  },
3547
3547
  [
@@ -3636,7 +3636,7 @@ const $r = ({
3636
3636
  const P = Pe(
3637
3637
  () => a ? Br(a.questionGroups) : [],
3638
3638
  [a]
3639
- ), T = N === P.length - 1, R = P[N] ?? [], O = Q((B, S) => {
3639
+ ), F = N === P.length - 1, R = P[N] ?? [], O = Q((B, S) => {
3640
3640
  v((U) => ({ ...U, [B]: S })), f((U) => {
3641
3641
  const j = { ...U };
3642
3642
  return delete j[B], j;
@@ -3648,7 +3648,7 @@ const $r = ({
3648
3648
  U && (B[S.id] = U);
3649
3649
  }
3650
3650
  return f((S) => ({ ...S, ...B })), Object.keys(B).length === 0;
3651
- }, [R, m]), F = () => {
3651
+ }, [R, m]), T = () => {
3652
3652
  A() && b((B) => B + 1);
3653
3653
  }, K = () => {
3654
3654
  N > 0 ? b((B) => B - 1) : n == null || n();
@@ -3722,7 +3722,7 @@ const $r = ({
3722
3722
  ]
3723
3723
  }
3724
3724
  ),
3725
- T ? /* @__PURE__ */ r(
3725
+ F ? /* @__PURE__ */ r(
3726
3726
  Z,
3727
3727
  {
3728
3728
  type: "button",
@@ -3734,7 +3734,7 @@ const $r = ({
3734
3734
  Z,
3735
3735
  {
3736
3736
  type: "button",
3737
- onClick: F,
3737
+ onClick: T,
3738
3738
  style: { display: "flex", alignItems: "center", gap: "4px" },
3739
3739
  children: [
3740
3740
  "Next",
@@ -3861,7 +3861,7 @@ const $r = ({
3861
3861
  if (w.preventDefault(), !a) return;
3862
3862
  const f = await Promise.all(
3863
3863
  a.uploadDocumentFiles.map(async (b) => {
3864
- const P = h[b.id] || [], T = await Promise.all(
3864
+ const P = h[b.id] || [], F = await Promise.all(
3865
3865
  P.map(async (R) => ({
3866
3866
  fileName: R.name,
3867
3867
  fileData: await pr(R)
@@ -3869,7 +3869,7 @@ const $r = ({
3869
3869
  );
3870
3870
  return {
3871
3871
  uploadDocumentFileId: b.id,
3872
- valueList: T
3872
+ valueList: F
3873
3873
  };
3874
3874
  })
3875
3875
  ), N = {
@@ -4009,14 +4009,14 @@ const qr = ({
4009
4009
  onComplete: t,
4010
4010
  onBack: n
4011
4011
  }) => {
4012
- const { config: a } = be(), s = a.locale ?? "en", { criteria: l, initialAnswers: c, isLoading: u, isSubmitting: h, error: m, submit: v } = Sr(e), [w, f] = k({}), [N, b] = k({}), [P, T] = k(0), [R, O] = k(!1);
4012
+ const { config: a } = be(), s = a.locale ?? "en", { criteria: l, initialAnswers: c, isLoading: u, isSubmitting: h, error: m, submit: v } = Sr(e), [w, f] = k({}), [N, b] = k({}), [P, F] = k(0), [R, O] = k(!1);
4013
4013
  ve.useEffect(() => {
4014
4014
  c && Object.keys(c).length > 0 && Object.keys(w).length === 0 && f(c);
4015
4015
  }, [c]);
4016
4016
  const A = Pe(
4017
4017
  () => l && l.length > 0 ? Yr(l) : [],
4018
4018
  [l]
4019
- ), F = P === A.length - 1, K = A[P] ?? [];
4019
+ ), T = P === A.length - 1, K = A[P] ?? [];
4020
4020
  ve.useEffect(() => {
4021
4021
  !u && l && l.length === 0 && !R && !h && (O(!0), v({ applicantId: e, criteriaValueInputs: [] }).then(() => t == null ? void 0 : t()).catch(console.error));
4022
4022
  }, [u, l, R, h, v, e, t]);
@@ -4033,9 +4033,9 @@ const qr = ({
4033
4033
  }
4034
4034
  return b((z) => ({ ...z, ...M })), Object.keys(M).length === 0;
4035
4035
  }, [K, w]), S = () => {
4036
- B() && T((M) => M + 1);
4036
+ B() && F((M) => M + 1);
4037
4037
  }, U = () => {
4038
- P > 0 ? T((M) => M - 1) : n == null || n();
4038
+ P > 0 ? F((M) => M - 1) : n == null || n();
4039
4039
  }, j = async () => {
4040
4040
  if (!(!B() || !l))
4041
4041
  try {
@@ -4107,7 +4107,7 @@ const qr = ({
4107
4107
  ]
4108
4108
  }
4109
4109
  ),
4110
- F ? /* @__PURE__ */ r(Z, { type: "button", isLoading: h, onClick: j, children: "Continue" }) : /* @__PURE__ */ o(
4110
+ T ? /* @__PURE__ */ r(Z, { type: "button", isLoading: h, onClick: j, children: "Continue" }) : /* @__PURE__ */ o(
4111
4111
  Z,
4112
4112
  {
4113
4113
  type: "button",
@@ -4382,7 +4382,7 @@ const qr = ({
4382
4382
  onComplete: t,
4383
4383
  onBack: n
4384
4384
  }) => {
4385
- const { appropriatenessTestService: a } = be(), [s, l] = k(null), [c, u] = k(!0), [h, m] = k(!1), [v, w] = k(null), [f, N] = k({}), [b, P] = k(0), [T, R] = k(!1), [O, A] = k(!1), [F, K] = k(0);
4385
+ const { appropriatenessTestService: a } = be(), [s, l] = k(null), [c, u] = k(!0), [h, m] = k(!1), [v, w] = k(null), [f, N] = k({}), [b, P] = k(0), [F, R] = k(!1), [O, A] = k(!1), [T, K] = k(0);
4386
4386
  ie(() => {
4387
4387
  (async () => {
4388
4388
  try {
@@ -4411,18 +4411,18 @@ const qr = ({
4411
4411
  return `${D.toString().padStart(2, "0")}:${q.toString().padStart(2, "0")}`;
4412
4412
  };
4413
4413
  ie(() => {
4414
- if (!T || b <= 0) return;
4414
+ if (!F || b <= 0) return;
4415
4415
  const L = setInterval(() => {
4416
4416
  P((D) => D <= 1 ? (A(!0), 0) : D - 1);
4417
4417
  }, 1e3);
4418
4418
  return () => clearInterval(L);
4419
- }, [T, b]), ie(() => {
4420
- if (F <= 0) return;
4419
+ }, [F, b]), ie(() => {
4420
+ if (T <= 0) return;
4421
4421
  const L = setInterval(() => {
4422
4422
  K((D) => D <= 1 ? 0 : D - 1);
4423
4423
  }, 1e3);
4424
4424
  return () => clearInterval(L);
4425
- }, [F]), ie(() => {
4425
+ }, [T]), ie(() => {
4426
4426
  O && !h && j();
4427
4427
  }, [O]);
4428
4428
  const S = () => {
@@ -4494,7 +4494,7 @@ Failed to reload test data. Please refresh the page.`);
4494
4494
  /* @__PURE__ */ r("p", { className: "text-danger-500 text-lg mb-4", children: "No test data available" }),
4495
4495
  v && /* @__PURE__ */ r("p", { className: "text-gray-600 dark:text-gray-400", children: v })
4496
4496
  ] }) });
4497
- if (F > 0)
4497
+ if (T > 0)
4498
4498
  return /* @__PURE__ */ o(Y, { children: [
4499
4499
  /* @__PURE__ */ o(ye, { children: [
4500
4500
  /* @__PURE__ */ r("h2", { className: "text-lg font-bold text-gray-900 dark:text-white", children: s.displayName }),
@@ -4502,14 +4502,14 @@ Failed to reload test data. Please refresh the page.`);
4502
4502
  ] }),
4503
4503
  /* @__PURE__ */ o(V, { className: "py-12 text-center", children: [
4504
4504
  /* @__PURE__ */ o("div", { className: "mb-6", children: [
4505
- /* @__PURE__ */ r("div", { className: "text-6xl font-bold text-primary-500 mb-2", children: B(F) }),
4505
+ /* @__PURE__ */ r("div", { className: "text-6xl font-bold text-primary-500 mb-2", children: B(T) }),
4506
4506
  /* @__PURE__ */ r("p", { className: "text-gray-600 dark:text-gray-400", children: "Please wait before attempting the test again" })
4507
4507
  ] }),
4508
4508
  v && /* @__PURE__ */ r("div", { className: "mt-4 p-4 bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg", children: /* @__PURE__ */ r("p", { className: "text-red-600 dark:text-red-400 text-sm", children: v }) })
4509
4509
  ] })
4510
4510
  ] });
4511
4511
  const z = s.testAllowedMaxTry - s.totalFailedTries;
4512
- return T ? /* @__PURE__ */ r("form", { onSubmit: j, children: /* @__PURE__ */ o(Y, { children: [
4512
+ return F ? /* @__PURE__ */ r("form", { onSubmit: j, children: /* @__PURE__ */ o(Y, { children: [
4513
4513
  /* @__PURE__ */ r(ye, { children: /* @__PURE__ */ o("div", { className: "flex items-center justify-between", children: [
4514
4514
  /* @__PURE__ */ o("div", { children: [
4515
4515
  /* @__PURE__ */ r("h2", { className: "text-lg font-bold text-gray-900 dark:text-white", children: s.displayName }),
@@ -4665,7 +4665,7 @@ Failed to reload test data. Please refresh the page.`);
4665
4665
  onBack: n
4666
4666
  }) => {
4667
4667
  var _e, He, Ue, je;
4668
- const { applicantService: a, baseInformationService: s, config: l, currentTheme: c } = be(), { identityData: u, provider: h, token: m, isLoading: v, error: w, requestIdentity: f, restartIdentity: N } = Nr(e), [b, P] = k(null), [T, R] = k(null), [O, A] = k([]), [F, K] = k([]), [re, B] = k(!0), [S, U] = k(!1), [j, M] = k(null), [z, L] = k(!1), D = ve.useRef(!1), [q, W] = k({}), [de, E] = k({}), _ = c != null && c.reviewPageFields && c.reviewPageFields.length > 0 ? c.reviewPageFields[0] : null, G = !!(c != null && c.reviewPageDisabled), le = te(!1);
4668
+ const { applicantService: a, baseInformationService: s, config: l, currentTheme: c } = be(), { identityData: u, provider: h, token: m, isLoading: v, error: w, requestIdentity: f, restartIdentity: N } = Nr(e), [b, P] = k(null), [F, R] = k(null), [O, A] = k([]), [T, K] = k([]), [re, B] = k(!0), [S, U] = k(!1), [j, M] = k(null), [z, L] = k(!1), D = ve.useRef(!1), [q, W] = k({}), [de, E] = k({}), _ = c != null && c.reviewPageFields && c.reviewPageFields.length > 0 ? c.reviewPageFields[0] : null, G = !!(c != null && c.reviewPageDisabled), le = te(!1);
4669
4669
  le.current = G;
4670
4670
  const ne = Et({
4671
4671
  defaultValues: {
@@ -5020,7 +5020,9 @@ Failed to reload test data. Please refresh the page.`);
5020
5020
  position: "fixed",
5021
5021
  inset: 0,
5022
5022
  zIndex: 99999,
5023
- background: "rgba(0,0,0,0.25)",
5023
+ background: "rgba(0,0,0,0.55)",
5024
+ backdropFilter: "blur(6px)",
5025
+ WebkitBackdropFilter: "blur(6px)",
5024
5026
  display: "flex",
5025
5027
  alignItems: "center",
5026
5028
  justifyContent: "center"
@@ -5031,13 +5033,13 @@ Failed to reload test data. Please refresh the page.`);
5031
5033
  {
5032
5034
  onClick: ($) => $.stopPropagation(),
5033
5035
  style: {
5034
- background: "var(--metakyc-surface, #fff)",
5036
+ background: "var(--metakyc-surface, var(--metakyc-background, #ffffff))",
5035
5037
  border: "1px solid var(--metakyc-border, #e5e7eb)",
5036
5038
  borderRadius: "var(--metakyc-border-radius, 8px)",
5037
- padding: "16px 20px",
5039
+ padding: "20px 24px",
5038
5040
  maxWidth: 400,
5039
5041
  width: "90%",
5040
- boxShadow: "0 10px 30px rgba(0,0,0,0.15)"
5042
+ boxShadow: "0 24px 64px rgba(0,0,0,0.4)"
5041
5043
  },
5042
5044
  children: [
5043
5045
  /* @__PURE__ */ r("div", { dangerouslySetInnerHTML: { __html: i }, style: { fontSize: 13, color: "var(--metakyc-text-primary, #111827)", lineHeight: 1.6 } }),
@@ -5195,18 +5197,18 @@ Failed to reload test data. Please refresh the page.`);
5195
5197
  const x = i.name ?? "", d = Oe[x], p = i.displayText || (d == null ? void 0 : d.label) || x, C = q[x] ?? "", $ = x === "mobileCountryCode", H = !!(d != null && d.countriesType) && !$;
5196
5198
  return i.editable ? $ ? /* @__PURE__ */ r("div", { className: ce(i.colSpan ?? 2), children: ke(
5197
5199
  /* @__PURE__ */ r(
5198
- Te,
5200
+ Fe,
5199
5201
  {
5200
5202
  label: p,
5201
5203
  value: String(C),
5202
5204
  onChange: (g) => W((se) => ({ ...se, [x]: g })),
5203
- options: [{ value: "", label: "Select country code…" }, ...F]
5205
+ options: [{ value: "", label: "Select country code…" }, ...T]
5204
5206
  }
5205
5207
  ),
5206
5208
  i.helpText
5207
5209
  ) }, `epc-${y}`) : H ? /* @__PURE__ */ r("div", { className: ce(i.colSpan ?? 2), children: ke(
5208
5210
  /* @__PURE__ */ r(
5209
- Te,
5211
+ Fe,
5210
5212
  {
5211
5213
  label: p,
5212
5214
  value: String(C),
@@ -5257,9 +5259,9 @@ Failed to reload test data. Please refresh the page.`);
5257
5259
  ] }),
5258
5260
  /* @__PURE__ */ o(V, { className: "space-y-6", children: [
5259
5261
  /* @__PURE__ */ r("div", { className: "space-y-4 pb-4", style: { borderBottom: "1px solid var(--metakyc-border, #e5e7eb)" }, children: [
5260
- { label: "Name", value: `${((_e = T == null ? void 0 : T.applicantRequestData) == null ? void 0 : _e.firstName) || ""} ${((He = T == null ? void 0 : T.applicantRequestData) == null ? void 0 : He.lastName) || ""}`.trim() },
5261
- { label: "Email", value: (Ue = T == null ? void 0 : T.applicantRequestData) == null ? void 0 : Ue.email },
5262
- { label: "Date of Birth", value: ((je = T == null ? void 0 : T.applicantRequestData) == null ? void 0 : je.dateOfBirth) || "Not provided" }
5262
+ { label: "Name", value: `${((_e = F == null ? void 0 : F.applicantRequestData) == null ? void 0 : _e.firstName) || ""} ${((He = F == null ? void 0 : F.applicantRequestData) == null ? void 0 : He.lastName) || ""}`.trim() },
5263
+ { label: "Email", value: (Ue = F == null ? void 0 : F.applicantRequestData) == null ? void 0 : Ue.email },
5264
+ { label: "Date of Birth", value: ((je = F == null ? void 0 : F.applicantRequestData) == null ? void 0 : je.dateOfBirth) || "Not provided" }
5263
5265
  ].map(({ label: i, value: y }) => /* @__PURE__ */ o("div", { children: [
5264
5266
  /* @__PURE__ */ r("label", { className: "block text-sm font-medium", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: i }),
5265
5267
  /* @__PURE__ */ r("p", { className: "mt-1 text-base", style: { color: "var(--metakyc-text-primary, #111827)" }, children: y })
@@ -5273,7 +5275,7 @@ Failed to reload test data. Please refresh the page.`);
5273
5275
  control: ne.control,
5274
5276
  name: "country",
5275
5277
  render: ({ field: i }) => /* @__PURE__ */ r(
5276
- Te,
5278
+ Fe,
5277
5279
  {
5278
5280
  label: "Country",
5279
5281
  value: i.value,
@@ -5289,7 +5291,7 @@ Failed to reload test data. Please refresh the page.`);
5289
5291
  control: ne.control,
5290
5292
  name: "nationality",
5291
5293
  render: ({ field: i }) => /* @__PURE__ */ r(
5292
- Te,
5294
+ Fe,
5293
5295
  {
5294
5296
  label: "Nationality",
5295
5297
  value: i.value,
@@ -5529,7 +5531,9 @@ const Ve = {
5529
5531
  position: "fixed",
5530
5532
  inset: 0,
5531
5533
  zIndex: 999999,
5532
- background: "rgba(0, 0, 0, 0.45)",
5534
+ background: "rgba(0, 0, 0, 0.55)",
5535
+ backdropFilter: "blur(6px)",
5536
+ WebkitBackdropFilter: "blur(6px)",
5533
5537
  display: "flex",
5534
5538
  alignItems: "center",
5535
5539
  justifyContent: "center",
@@ -5540,14 +5544,15 @@ const Ve = {
5540
5544
  {
5541
5545
  onClick: (l) => l.stopPropagation(),
5542
5546
  style: {
5543
- background: "var(--metakyc-card-bg, #ffffff)",
5547
+ background: "var(--metakyc-surface, var(--metakyc-background, #ffffff))",
5548
+ border: "1px solid var(--metakyc-border, #e5e7eb)",
5544
5549
  borderRadius: "12px",
5545
5550
  padding: "28px 24px 24px",
5546
5551
  maxWidth: "480px",
5547
5552
  width: "100%",
5548
5553
  maxHeight: "80vh",
5549
5554
  overflowY: "auto",
5550
- boxShadow: "0 24px 64px rgba(0,0,0,0.25)",
5555
+ boxShadow: "0 24px 64px rgba(0,0,0,0.4)",
5551
5556
  position: "relative"
5552
5557
  },
5553
5558
  children: [
@@ -5676,7 +5681,7 @@ const Ve = {
5676
5681
  "countryOfBirth",
5677
5682
  "mobileCountryCode",
5678
5683
  "otherNationality"
5679
- ]), T = Pe(() => {
5684
+ ]), F = Pe(() => {
5680
5685
  var y, x;
5681
5686
  const i = /* @__PURE__ */ new Set();
5682
5687
  if (f)
@@ -5687,21 +5692,21 @@ const Ve = {
5687
5692
  for (const d of b)
5688
5693
  P.has(d) && i.add((x = Oe[d]) == null ? void 0 : x.countriesType);
5689
5694
  return i.size === 0 && i.add(void 0), Array.from(i);
5690
- }, [b, f]), [R, O] = k({}), [A, F] = k(!0), K = te(/* @__PURE__ */ new Set()), re = te(/* @__PURE__ */ new Set());
5695
+ }, [b, f]), [R, O] = k({}), [A, T] = k(!0), K = te(/* @__PURE__ */ new Set()), re = te(/* @__PURE__ */ new Set());
5691
5696
  ie(() => {
5692
5697
  if (!c) return;
5693
- const i = T.filter((d) => {
5698
+ const i = F.filter((d) => {
5694
5699
  const p = d != null ? String(d) : "all";
5695
5700
  return !re.current.has(p) && !K.current.has(p);
5696
5701
  });
5697
5702
  if (i.length === 0) {
5698
- T.every((p) => {
5703
+ F.every((p) => {
5699
5704
  const C = p != null ? String(p) : "all";
5700
5705
  return re.current.has(C);
5701
- }) && F(!1);
5706
+ }) && T(!1);
5702
5707
  return;
5703
5708
  }
5704
- F(!0);
5709
+ T(!0);
5705
5710
  const y = i.map((d) => d != null ? String(d) : "all");
5706
5711
  y.forEach((d) => K.current.add(d)), (async () => {
5707
5712
  try {
@@ -5718,13 +5723,13 @@ const Ve = {
5718
5723
  } catch (d) {
5719
5724
  y.forEach((p) => K.current.delete(p)), console.error("Failed to load countries:", d);
5720
5725
  } finally {
5721
- T.every((p) => {
5726
+ F.every((p) => {
5722
5727
  const C = p != null ? String(p) : "all";
5723
5728
  return re.current.has(C);
5724
- }) && F(!1);
5729
+ }) && T(!1);
5725
5730
  }
5726
5731
  })();
5727
- }, [T, c]);
5732
+ }, [F, c]);
5728
5733
  const B = (i, y) => {
5729
5734
  var p;
5730
5735
  const x = y ?? ((p = Oe[i]) == null ? void 0 : p.countriesType), d = x != null ? String(x) : "all";
@@ -5867,12 +5872,12 @@ const Ve = {
5867
5872
  if (i === "country" || i === "nationality" || i === "taxCountry" || i === "countryOfBirth" || i === "mobileCountryCode") {
5868
5873
  const me = B(i, d);
5869
5874
  return /* @__PURE__ */ r(
5870
- Te,
5875
+ Fe,
5871
5876
  {
5872
5877
  ...se,
5873
5878
  label: H,
5874
5879
  value: S[i] || "",
5875
- onChange: (Fe) => G(i, Fe),
5880
+ onChange: (Te) => G(i, Te),
5876
5881
  options: [{ value: "", label: `Select ${H.toLowerCase()}...` }, ...me],
5877
5882
  disabled: A,
5878
5883
  error: $
@@ -5882,7 +5887,7 @@ const Ve = {
5882
5887
  }
5883
5888
  if (i === "salutation")
5884
5889
  return /* @__PURE__ */ r(
5885
- Te,
5890
+ Fe,
5886
5891
  {
5887
5892
  ...se,
5888
5893
  label: H,
@@ -5899,14 +5904,14 @@ const Ve = {
5899
5904
  g
5900
5905
  );
5901
5906
  if (i === "defaultLanguage") {
5902
- const me = c != null && c.allowedLanguages && c.allowedLanguages.length > 0 ? lt.filter((Fe) => c.allowedLanguages.includes(Fe.value)) : lt;
5907
+ const me = c != null && c.allowedLanguages && c.allowedLanguages.length > 0 ? lt.filter((Te) => c.allowedLanguages.includes(Te.value)) : lt;
5903
5908
  return /* @__PURE__ */ r(
5904
- Te,
5909
+ Fe,
5905
5910
  {
5906
5911
  ...se,
5907
5912
  label: H,
5908
5913
  value: S[i] || "",
5909
- onChange: (Fe) => G(i, Fe),
5914
+ onChange: (Te) => G(i, Te),
5910
5915
  options: [{ value: "", label: "Select language..." }, ...me],
5911
5916
  error: $
5912
5917
  },
@@ -5923,7 +5928,7 @@ const Ve = {
5923
5928
  ...se,
5924
5929
  label: H,
5925
5930
  value: S[i] || [],
5926
- onChange: (Fe) => G(i, Fe),
5931
+ onChange: (Te) => G(i, Te),
5927
5932
  options: me,
5928
5933
  placeholder: "Select other nationalities...",
5929
5934
  disabled: A
@@ -6387,7 +6392,7 @@ const Ve = {
6387
6392
  error: f,
6388
6393
  moveBack: N,
6389
6394
  refreshProgress: b
6390
- } = xr(e), [P, T] = ve.useState(!1);
6395
+ } = xr(e), [P, F] = ve.useState(!1);
6391
6396
  if (ve.useEffect(() => {
6392
6397
  f && n && n(f);
6393
6398
  }, [f, n]), ve.useEffect(() => {
@@ -6395,7 +6400,7 @@ const Ve = {
6395
6400
  }, [l == null ? void 0 : l.workflowResult, t]), ve.useEffect(() => {
6396
6401
  a === "dark" ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark");
6397
6402
  }, [a]), ve.useEffect(() => {
6398
- v && T(!1);
6403
+ v && F(!1);
6399
6404
  }, [v]), w || !l)
6400
6405
  return /* @__PURE__ */ r("div", { className: s, children: /* @__PURE__ */ r(Y, { children: /* @__PURE__ */ o(V, { children: [
6401
6406
  /* @__PURE__ */ r(Se, { className: "my-8" }),
@@ -6428,7 +6433,7 @@ const Ve = {
6428
6433
  /* @__PURE__ */ r(
6429
6434
  "button",
6430
6435
  {
6431
- onClick: () => T(!0),
6436
+ onClick: () => F(!0),
6432
6437
  className: "px-6 py-3 bg-blue-600 hover:bg-blue-700 text-white font-medium rounded-lg transition-colors",
6433
6438
  children: "Continue with New Workflow"
6434
6439
  }
@@ -6453,8 +6458,8 @@ const Ve = {
6453
6458
  /* @__PURE__ */ r(Se, { className: "my-8" }),
6454
6459
  /* @__PURE__ */ r("p", { className: "text-center text-gray-600 dark:text-gray-400 mt-4", children: l.status === Ne.IdentityPending ? "Loading identity verification..." : "Loading current step..." })
6455
6460
  ] }) }) });
6456
- const R = (F) => {
6457
- switch (F) {
6461
+ const R = (T) => {
6462
+ switch (T) {
6458
6463
  case ee.Overview:
6459
6464
  return "Overview";
6460
6465
  case ee.Questionaries:
@@ -6477,7 +6482,7 @@ const Ve = {
6477
6482
  return "";
6478
6483
  }
6479
6484
  }, O = () => {
6480
- const F = u.filter((S) => S.visibility !== !1), K = F.findIndex((S) => S.order === c.order), re = K >= 0 ? K + 1 : 1, B = F.length;
6485
+ const T = u.filter((S) => S.visibility !== !1), K = T.findIndex((S) => S.order === c.order), re = K >= 0 ? K + 1 : 1, B = T.length;
6481
6486
  return /* @__PURE__ */ o("div", { className: "mb-6", children: [
6482
6487
  /* @__PURE__ */ o("div", { className: "flex items-start justify-between mb-4", children: [
6483
6488
  /* @__PURE__ */ r(at, {}),
@@ -6488,7 +6493,7 @@ const Ve = {
6488
6493
  B
6489
6494
  ] })
6490
6495
  ] }),
6491
- /* @__PURE__ */ r("div", { className: "flex items-center", children: F.map((S, U) => {
6496
+ /* @__PURE__ */ r("div", { className: "flex items-center", children: T.map((S, U) => {
6492
6497
  const j = U < K, M = S.order === c.order;
6493
6498
  return /* @__PURE__ */ o(ve.Fragment, { children: [
6494
6499
  /* @__PURE__ */ o("div", { className: "flex items-center", children: [
@@ -6510,7 +6515,7 @@ const Ve = {
6510
6515
  }
6511
6516
  )
6512
6517
  ] }),
6513
- U < F.length - 1 && /* @__PURE__ */ r(
6518
+ U < T.length - 1 && /* @__PURE__ */ r(
6514
6519
  "div",
6515
6520
  {
6516
6521
  className: `flex-1 h-0.5 mx-4 ${j ? "bg-primary-500" : "bg-gray-200 dark:bg-gray-700"}`
@@ -6520,7 +6525,7 @@ const Ve = {
6520
6525
  }) })
6521
6526
  ] });
6522
6527
  }, A = () => {
6523
- const F = {
6528
+ const T = {
6524
6529
  applicantId: e,
6525
6530
  onComplete: async () => {
6526
6531
  await b();
@@ -6529,20 +6534,20 @@ const Ve = {
6529
6534
  };
6530
6535
  switch (c.action) {
6531
6536
  case ee.Questionaries:
6532
- return /* @__PURE__ */ r($r, { ...F });
6537
+ return /* @__PURE__ */ r($r, { ...T });
6533
6538
  case ee.UploadDocument:
6534
- return /* @__PURE__ */ r(_r, { ...F });
6539
+ return /* @__PURE__ */ r(_r, { ...T });
6535
6540
  case ee.Overview:
6536
- return /* @__PURE__ */ r(Hr, { ...F });
6541
+ return /* @__PURE__ */ r(Hr, { ...T });
6537
6542
  case ee.IdentitySdk:
6538
- return /* @__PURE__ */ r(Zr, { ...F });
6543
+ return /* @__PURE__ */ r(Zr, { ...T });
6539
6544
  case ee.RiskScoring:
6540
- return /* @__PURE__ */ r(qr, { ...F });
6545
+ return /* @__PURE__ */ r(qr, { ...T });
6541
6546
  case ee.AdditionalData:
6542
6547
  case ee.InvestorCategorization:
6543
- return /* @__PURE__ */ r(Gr, { ...F });
6548
+ return /* @__PURE__ */ r(Gr, { ...T });
6544
6549
  case ee.AppropriatenessTest:
6545
- return /* @__PURE__ */ r(Jr, { ...F });
6550
+ return /* @__PURE__ */ r(Jr, { ...T });
6546
6551
  case ee.ManualReview:
6547
6552
  return /* @__PURE__ */ r(
6548
6553
  mt,
@@ -6645,7 +6650,7 @@ export {
6645
6650
  Ke as ErrorHandler,
6646
6651
  ar as EventEmitter,
6647
6652
  Oe as FIELD_METADATA,
6648
- Ft as FileType,
6653
+ Tt as FileType,
6649
6654
  Ir as FileUpload,
6650
6655
  Ze as GenderType,
6651
6656
  at as Header,
@@ -6680,7 +6685,7 @@ export {
6680
6685
  Vt as RiskScoringService,
6681
6686
  qr as RiskScoringStep,
6682
6687
  dr as SardinAIProvider,
6683
- Te as SearchableSelect,
6688
+ Fe as SearchableSelect,
6684
6689
  st as Select,
6685
6690
  Se as Spinner,
6686
6691
  sr as StepRouter,
@@ -6690,7 +6695,7 @@ export {
6690
6695
  nr as ThemeService,
6691
6696
  Kt as UploadDocumentService,
6692
6697
  _r as UploadDocumentStep,
6693
- Tt as UserType,
6698
+ Ft as UserType,
6694
6699
  Ie as ValueDataType,
6695
6700
  or as WorkflowOrchestrator,
6696
6701
  Je as WorkflowResultType,