@vpdev2/metakyc-sdk 1.0.81 → 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,
@@ -5480,19 +5482,25 @@ Failed to reload test data. Please refresh the page.`);
5480
5482
  }) => {
5481
5483
  const { currentTheme: a } = be(), s = e || (a == null ? void 0 : a.title) || "", l = !!(a != null && a.logo && a.logo.visible && a.logo.url), c = !!s;
5482
5484
  return !l && !c ? null : /* @__PURE__ */ o("div", { className: `metakyc-header ${n}`, children: [
5483
- /* @__PURE__ */ o("div", { className: "metakyc-header-title flex items-center text-xl font-bold text-gray-900 dark:text-white", children: [
5484
- l && /* @__PURE__ */ r(Xr, { config: a.logo }),
5485
- l && c && /* @__PURE__ */ r(
5486
- "span",
5487
- {
5488
- className: "text-gray-400 dark:text-gray-500 mx-3",
5489
- style: { fontSize: "1.5rem", fontWeight: 300 },
5490
- children: "|"
5491
- }
5492
- ),
5493
- c && /* @__PURE__ */ r("span", { children: s })
5494
- ] }),
5495
- t && /* @__PURE__ */ r("p", { className: "text-sm text-gray-600 dark:text-gray-400 mt-1", children: t })
5485
+ /* @__PURE__ */ o(
5486
+ "div",
5487
+ {
5488
+ className: "metakyc-header-title flex items-center text-xl font-bold",
5489
+ style: { color: "var(--metakyc-text-primary, #111827)" },
5490
+ children: [
5491
+ l && /* @__PURE__ */ r(Xr, { config: a.logo }),
5492
+ l && c && /* @__PURE__ */ r(
5493
+ "span",
5494
+ {
5495
+ style: { fontSize: "1.5rem", fontWeight: 300, color: "var(--metakyc-text-muted, #9ca3af)", margin: "0 12px" },
5496
+ children: "|"
5497
+ }
5498
+ ),
5499
+ c && /* @__PURE__ */ r("span", { style: { color: "var(--metakyc-text-primary, #111827)" }, children: s })
5500
+ ]
5501
+ }
5502
+ ),
5503
+ t && /* @__PURE__ */ r("p", { className: "text-sm mt-1", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: t })
5496
5504
  ] });
5497
5505
  }, Ge = ["firstName", "lastName", "email", "phonenumber", "dateOfBirth"];
5498
5506
  function Ye(e) {
@@ -5523,7 +5531,9 @@ const Ve = {
5523
5531
  position: "fixed",
5524
5532
  inset: 0,
5525
5533
  zIndex: 999999,
5526
- background: "rgba(0, 0, 0, 0.45)",
5534
+ background: "rgba(0, 0, 0, 0.55)",
5535
+ backdropFilter: "blur(6px)",
5536
+ WebkitBackdropFilter: "blur(6px)",
5527
5537
  display: "flex",
5528
5538
  alignItems: "center",
5529
5539
  justifyContent: "center",
@@ -5534,14 +5544,15 @@ const Ve = {
5534
5544
  {
5535
5545
  onClick: (l) => l.stopPropagation(),
5536
5546
  style: {
5537
- background: "var(--metakyc-card-bg, #ffffff)",
5547
+ background: "var(--metakyc-surface, var(--metakyc-background, #ffffff))",
5548
+ border: "1px solid var(--metakyc-border, #e5e7eb)",
5538
5549
  borderRadius: "12px",
5539
5550
  padding: "28px 24px 24px",
5540
5551
  maxWidth: "480px",
5541
5552
  width: "100%",
5542
5553
  maxHeight: "80vh",
5543
5554
  overflowY: "auto",
5544
- boxShadow: "0 24px 64px rgba(0,0,0,0.25)",
5555
+ boxShadow: "0 24px 64px rgba(0,0,0,0.4)",
5545
5556
  position: "relative"
5546
5557
  },
5547
5558
  children: [
@@ -5670,7 +5681,7 @@ const Ve = {
5670
5681
  "countryOfBirth",
5671
5682
  "mobileCountryCode",
5672
5683
  "otherNationality"
5673
- ]), T = Pe(() => {
5684
+ ]), F = Pe(() => {
5674
5685
  var y, x;
5675
5686
  const i = /* @__PURE__ */ new Set();
5676
5687
  if (f)
@@ -5681,21 +5692,21 @@ const Ve = {
5681
5692
  for (const d of b)
5682
5693
  P.has(d) && i.add((x = Oe[d]) == null ? void 0 : x.countriesType);
5683
5694
  return i.size === 0 && i.add(void 0), Array.from(i);
5684
- }, [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());
5685
5696
  ie(() => {
5686
5697
  if (!c) return;
5687
- const i = T.filter((d) => {
5698
+ const i = F.filter((d) => {
5688
5699
  const p = d != null ? String(d) : "all";
5689
5700
  return !re.current.has(p) && !K.current.has(p);
5690
5701
  });
5691
5702
  if (i.length === 0) {
5692
- T.every((p) => {
5703
+ F.every((p) => {
5693
5704
  const C = p != null ? String(p) : "all";
5694
5705
  return re.current.has(C);
5695
- }) && F(!1);
5706
+ }) && T(!1);
5696
5707
  return;
5697
5708
  }
5698
- F(!0);
5709
+ T(!0);
5699
5710
  const y = i.map((d) => d != null ? String(d) : "all");
5700
5711
  y.forEach((d) => K.current.add(d)), (async () => {
5701
5712
  try {
@@ -5712,13 +5723,13 @@ const Ve = {
5712
5723
  } catch (d) {
5713
5724
  y.forEach((p) => K.current.delete(p)), console.error("Failed to load countries:", d);
5714
5725
  } finally {
5715
- T.every((p) => {
5726
+ F.every((p) => {
5716
5727
  const C = p != null ? String(p) : "all";
5717
5728
  return re.current.has(C);
5718
- }) && F(!1);
5729
+ }) && T(!1);
5719
5730
  }
5720
5731
  })();
5721
- }, [T, c]);
5732
+ }, [F, c]);
5722
5733
  const B = (i, y) => {
5723
5734
  var p;
5724
5735
  const x = y ?? ((p = Oe[i]) == null ? void 0 : p.countriesType), d = x != null ? String(x) : "all";
@@ -5861,12 +5872,12 @@ const Ve = {
5861
5872
  if (i === "country" || i === "nationality" || i === "taxCountry" || i === "countryOfBirth" || i === "mobileCountryCode") {
5862
5873
  const me = B(i, d);
5863
5874
  return /* @__PURE__ */ r(
5864
- Te,
5875
+ Fe,
5865
5876
  {
5866
5877
  ...se,
5867
5878
  label: H,
5868
5879
  value: S[i] || "",
5869
- onChange: (Fe) => G(i, Fe),
5880
+ onChange: (Te) => G(i, Te),
5870
5881
  options: [{ value: "", label: `Select ${H.toLowerCase()}...` }, ...me],
5871
5882
  disabled: A,
5872
5883
  error: $
@@ -5876,7 +5887,7 @@ const Ve = {
5876
5887
  }
5877
5888
  if (i === "salutation")
5878
5889
  return /* @__PURE__ */ r(
5879
- Te,
5890
+ Fe,
5880
5891
  {
5881
5892
  ...se,
5882
5893
  label: H,
@@ -5893,14 +5904,14 @@ const Ve = {
5893
5904
  g
5894
5905
  );
5895
5906
  if (i === "defaultLanguage") {
5896
- 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;
5897
5908
  return /* @__PURE__ */ r(
5898
- Te,
5909
+ Fe,
5899
5910
  {
5900
5911
  ...se,
5901
5912
  label: H,
5902
5913
  value: S[i] || "",
5903
- onChange: (Fe) => G(i, Fe),
5914
+ onChange: (Te) => G(i, Te),
5904
5915
  options: [{ value: "", label: "Select language..." }, ...me],
5905
5916
  error: $
5906
5917
  },
@@ -5917,7 +5928,7 @@ const Ve = {
5917
5928
  ...se,
5918
5929
  label: H,
5919
5930
  value: S[i] || [],
5920
- onChange: (Fe) => G(i, Fe),
5931
+ onChange: (Te) => G(i, Te),
5921
5932
  options: me,
5922
5933
  placeholder: "Select other nationalities...",
5923
5934
  disabled: A
@@ -6381,7 +6392,7 @@ const Ve = {
6381
6392
  error: f,
6382
6393
  moveBack: N,
6383
6394
  refreshProgress: b
6384
- } = xr(e), [P, T] = ve.useState(!1);
6395
+ } = xr(e), [P, F] = ve.useState(!1);
6385
6396
  if (ve.useEffect(() => {
6386
6397
  f && n && n(f);
6387
6398
  }, [f, n]), ve.useEffect(() => {
@@ -6389,7 +6400,7 @@ const Ve = {
6389
6400
  }, [l == null ? void 0 : l.workflowResult, t]), ve.useEffect(() => {
6390
6401
  a === "dark" ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark");
6391
6402
  }, [a]), ve.useEffect(() => {
6392
- v && T(!1);
6403
+ v && F(!1);
6393
6404
  }, [v]), w || !l)
6394
6405
  return /* @__PURE__ */ r("div", { className: s, children: /* @__PURE__ */ r(Y, { children: /* @__PURE__ */ o(V, { children: [
6395
6406
  /* @__PURE__ */ r(Se, { className: "my-8" }),
@@ -6422,7 +6433,7 @@ const Ve = {
6422
6433
  /* @__PURE__ */ r(
6423
6434
  "button",
6424
6435
  {
6425
- onClick: () => T(!0),
6436
+ onClick: () => F(!0),
6426
6437
  className: "px-6 py-3 bg-blue-600 hover:bg-blue-700 text-white font-medium rounded-lg transition-colors",
6427
6438
  children: "Continue with New Workflow"
6428
6439
  }
@@ -6447,8 +6458,8 @@ const Ve = {
6447
6458
  /* @__PURE__ */ r(Se, { className: "my-8" }),
6448
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..." })
6449
6460
  ] }) }) });
6450
- const R = (F) => {
6451
- switch (F) {
6461
+ const R = (T) => {
6462
+ switch (T) {
6452
6463
  case ee.Overview:
6453
6464
  return "Overview";
6454
6465
  case ee.Questionaries:
@@ -6471,7 +6482,7 @@ const Ve = {
6471
6482
  return "";
6472
6483
  }
6473
6484
  }, O = () => {
6474
- 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;
6475
6486
  return /* @__PURE__ */ o("div", { className: "mb-6", children: [
6476
6487
  /* @__PURE__ */ o("div", { className: "flex items-start justify-between mb-4", children: [
6477
6488
  /* @__PURE__ */ r(at, {}),
@@ -6482,7 +6493,7 @@ const Ve = {
6482
6493
  B
6483
6494
  ] })
6484
6495
  ] }),
6485
- /* @__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) => {
6486
6497
  const j = U < K, M = S.order === c.order;
6487
6498
  return /* @__PURE__ */ o(ve.Fragment, { children: [
6488
6499
  /* @__PURE__ */ o("div", { className: "flex items-center", children: [
@@ -6504,7 +6515,7 @@ const Ve = {
6504
6515
  }
6505
6516
  )
6506
6517
  ] }),
6507
- U < F.length - 1 && /* @__PURE__ */ r(
6518
+ U < T.length - 1 && /* @__PURE__ */ r(
6508
6519
  "div",
6509
6520
  {
6510
6521
  className: `flex-1 h-0.5 mx-4 ${j ? "bg-primary-500" : "bg-gray-200 dark:bg-gray-700"}`
@@ -6514,7 +6525,7 @@ const Ve = {
6514
6525
  }) })
6515
6526
  ] });
6516
6527
  }, A = () => {
6517
- const F = {
6528
+ const T = {
6518
6529
  applicantId: e,
6519
6530
  onComplete: async () => {
6520
6531
  await b();
@@ -6523,20 +6534,20 @@ const Ve = {
6523
6534
  };
6524
6535
  switch (c.action) {
6525
6536
  case ee.Questionaries:
6526
- return /* @__PURE__ */ r($r, { ...F });
6537
+ return /* @__PURE__ */ r($r, { ...T });
6527
6538
  case ee.UploadDocument:
6528
- return /* @__PURE__ */ r(_r, { ...F });
6539
+ return /* @__PURE__ */ r(_r, { ...T });
6529
6540
  case ee.Overview:
6530
- return /* @__PURE__ */ r(Hr, { ...F });
6541
+ return /* @__PURE__ */ r(Hr, { ...T });
6531
6542
  case ee.IdentitySdk:
6532
- return /* @__PURE__ */ r(Zr, { ...F });
6543
+ return /* @__PURE__ */ r(Zr, { ...T });
6533
6544
  case ee.RiskScoring:
6534
- return /* @__PURE__ */ r(qr, { ...F });
6545
+ return /* @__PURE__ */ r(qr, { ...T });
6535
6546
  case ee.AdditionalData:
6536
6547
  case ee.InvestorCategorization:
6537
- return /* @__PURE__ */ r(Gr, { ...F });
6548
+ return /* @__PURE__ */ r(Gr, { ...T });
6538
6549
  case ee.AppropriatenessTest:
6539
- return /* @__PURE__ */ r(Jr, { ...F });
6550
+ return /* @__PURE__ */ r(Jr, { ...T });
6540
6551
  case ee.ManualReview:
6541
6552
  return /* @__PURE__ */ r(
6542
6553
  mt,
@@ -6639,7 +6650,7 @@ export {
6639
6650
  Ke as ErrorHandler,
6640
6651
  ar as EventEmitter,
6641
6652
  Oe as FIELD_METADATA,
6642
- Ft as FileType,
6653
+ Tt as FileType,
6643
6654
  Ir as FileUpload,
6644
6655
  Ze as GenderType,
6645
6656
  at as Header,
@@ -6674,7 +6685,7 @@ export {
6674
6685
  Vt as RiskScoringService,
6675
6686
  qr as RiskScoringStep,
6676
6687
  dr as SardinAIProvider,
6677
- Te as SearchableSelect,
6688
+ Fe as SearchableSelect,
6678
6689
  st as Select,
6679
6690
  Se as Spinner,
6680
6691
  sr as StepRouter,
@@ -6684,7 +6695,7 @@ export {
6684
6695
  nr as ThemeService,
6685
6696
  Kt as UploadDocumentService,
6686
6697
  _r as UploadDocumentStep,
6687
- Tt as UserType,
6698
+ Ft as UserType,
6688
6699
  Ie as ValueDataType,
6689
6700
  or as WorkflowOrchestrator,
6690
6701
  Je as WorkflowResultType,