@vpdev2/metakyc 1.0.92 → 1.0.93

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
@@ -2,13 +2,13 @@ var Fi = Object.defineProperty;
2
2
  var Oi = (e, t, a) => t in e ? Fi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
3
  var be = (e, t, a) => Oi(e, typeof t != "symbol" ? t + "" : t, a);
4
4
  import Si from "axios";
5
- import { jsx as i, jsxs as s, Fragment as bt } from "react/jsx-runtime";
5
+ import { jsx as i, jsxs as s, Fragment as Ct } from "react/jsx-runtime";
6
6
  import * as ei from "react";
7
- import ye, { createContext as Gt, useMemo as Ue, useState as T, useEffect as ge, useContext as Qt, useCallback as J, useRef as me, forwardRef as Rt, createElement as Wt } from "react";
7
+ import ye, { createContext as Gt, useMemo as Ue, useState as T, useEffect as ge, useContext as Qt, useCallback as J, useRef as me, forwardRef as At, createElement as Wt } from "react";
8
8
  import Vi, { createPortal as Ft } from "react-dom";
9
9
  import { useForm as Bi, Controller as yt } from "react-hook-form";
10
10
  import { z as ot } from "zod";
11
- var se = /* @__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))(se || {}), Et = /* @__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))(Et || {}), qe = /* @__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))(qe || {}), qi = /* @__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))(qi || {}), Ui = /* @__PURE__ */ ((e) => (e[e.LowRisk = 0] = "LowRisk", e[e.MediumRisk = 1] = "MediumRisk", e[e.HighRisk = 2] = "HighRisk", e[e.Alert = 3] = "Alert", e))(Ui || {}), Ki = /* @__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))(Ki || {}), it = /* @__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))(it || {}), Wi = /* @__PURE__ */ ((e) => (e[e.ProviderResultPending = 0] = "ProviderResultPending", e[e.ProviderResultReceived = 1] = "ProviderResultReceived", e[e.Canceled = 2] = "Canceled", e[e.ExtendedToNewApplicant = 3] = "ExtendedToNewApplicant", e))(Wi || {}), Hi = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.ProviderResultPending = 1] = "ProviderResultPending", e[e.ProviderResultReceived = 2] = "ProviderResultReceived", e[e.Canceled = 3] = "Canceled", e))(Hi || {}), Ge = /* @__PURE__ */ ((e) => (e[e.Onfido = 0] = "Onfido", e[e.Sumsub = 2] = "Sumsub", e[e.SardinAI = 3] = "SardinAI", e))(Ge || {}), $i = /* @__PURE__ */ ((e) => (e[e.Individual = 0] = "Individual", e[e.Company = 1] = "Company", e))($i || {}), Dt = /* @__PURE__ */ ((e) => (e[e.Male = 0] = "Male", e[e.Female = 1] = "Female", e[e.Other = 2] = "Other", e))(Dt || {}), Yi = /* @__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))(Yi || {}), _i = /* @__PURE__ */ ((e) => (e[e.Pending = 0] = "Pending", e[e.Approved = 1] = "Approved", e[e.Rejected = 2] = "Rejected", e[e.RequiresRevision = 3] = "RequiresRevision", e))(_i || {}), Gi = /* @__PURE__ */ ((e) => (e[e.SingleChoice = 0] = "SingleChoice", e[e.MultipleChoice = 1] = "MultipleChoice", e[e.Text = 2] = "Text", e))(Gi || {}), at = /* @__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))(at || {}), Qi = /* @__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))(Qi || {}), Xi = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Country = 1] = "Country", e))(Xi || {}), Re = /* @__PURE__ */ ((e) => (e[e.Individual = 0] = "Individual", e[e.Sophisticated = 1] = "Sophisticated", e[e.HighNetWorth = 2] = "HighNetWorth", e[e.Business = 3] = "Business", e))(Re || {}), Zi = /* @__PURE__ */ ((e) => (e[e.Retail = 0] = "Retail", e[e.Professional = 1] = "Professional", e[e.EligibleCounterparty = 2] = "EligibleCounterparty", e))(Zi || {});
11
+ var oe = /* @__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))(oe || {}), Et = /* @__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))(Et || {}), qe = /* @__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))(qe || {}), qi = /* @__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))(qi || {}), Ui = /* @__PURE__ */ ((e) => (e[e.LowRisk = 0] = "LowRisk", e[e.MediumRisk = 1] = "MediumRisk", e[e.HighRisk = 2] = "HighRisk", e[e.Alert = 3] = "Alert", e))(Ui || {}), Ki = /* @__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))(Ki || {}), it = /* @__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))(it || {}), Wi = /* @__PURE__ */ ((e) => (e[e.ProviderResultPending = 0] = "ProviderResultPending", e[e.ProviderResultReceived = 1] = "ProviderResultReceived", e[e.Canceled = 2] = "Canceled", e[e.ExtendedToNewApplicant = 3] = "ExtendedToNewApplicant", e))(Wi || {}), Hi = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.ProviderResultPending = 1] = "ProviderResultPending", e[e.ProviderResultReceived = 2] = "ProviderResultReceived", e[e.Canceled = 3] = "Canceled", e))(Hi || {}), Ge = /* @__PURE__ */ ((e) => (e[e.Onfido = 0] = "Onfido", e[e.Sumsub = 2] = "Sumsub", e[e.SardinAI = 3] = "SardinAI", e))(Ge || {}), $i = /* @__PURE__ */ ((e) => (e[e.Individual = 0] = "Individual", e[e.Company = 1] = "Company", e))($i || {}), Dt = /* @__PURE__ */ ((e) => (e[e.Male = 0] = "Male", e[e.Female = 1] = "Female", e[e.Other = 2] = "Other", e))(Dt || {}), Yi = /* @__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))(Yi || {}), _i = /* @__PURE__ */ ((e) => (e[e.Pending = 0] = "Pending", e[e.Approved = 1] = "Approved", e[e.Rejected = 2] = "Rejected", e[e.RequiresRevision = 3] = "RequiresRevision", e))(_i || {}), Gi = /* @__PURE__ */ ((e) => (e[e.SingleChoice = 0] = "SingleChoice", e[e.MultipleChoice = 1] = "MultipleChoice", e[e.Text = 2] = "Text", e))(Gi || {}), at = /* @__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))(at || {}), Qi = /* @__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))(Qi || {}), Xi = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Country = 1] = "Country", e))(Xi || {}), Ae = /* @__PURE__ */ ((e) => (e[e.Individual = 0] = "Individual", e[e.Sophisticated = 1] = "Sophisticated", e[e.HighNetWorth = 2] = "HighNetWorth", e[e.Business = 3] = "Business", e))(Ae || {}), Zi = /* @__PURE__ */ ((e) => (e[e.Retail = 0] = "Retail", e[e.Professional = 1] = "Professional", e[e.EligibleCounterparty = 2] = "EligibleCounterparty", e))(Zi || {});
12
12
  const ut = {
13
13
  Nationality: 10,
14
14
  Address: 20,
@@ -138,10 +138,10 @@ class ir {
138
138
  }
139
139
  }
140
140
  class rt extends Error {
141
- constructor(a, r, n, o, d) {
141
+ constructor(a, r, n, o, l) {
142
142
  super(a);
143
143
  be(this, "response");
144
- this.code = r, this.details = n, this.validationErrors = o, this.name = "MetaKYCError", this.response = d, Object.setPrototypeOf(this, rt.prototype);
144
+ this.code = r, this.details = n, this.validationErrors = o, this.name = "MetaKYCError", this.response = l, Object.setPrototypeOf(this, rt.prototype);
145
145
  }
146
146
  }
147
147
  class Nt {
@@ -238,15 +238,15 @@ class rr {
238
238
  }
239
239
  response(t, a, r, n, o) {
240
240
  if (!this.shouldLog("debug")) return;
241
- const d = r >= 200 && r < 300, l = [
241
+ const l = r >= 200 && r < 300, d = [
242
242
  `%c[MetaKYC]%c ←%c ${r}%c ${t} ${a.split("/").pop()} %c(${n}ms)`,
243
243
  xe.prefix,
244
244
  xe.arrow,
245
- d ? xe.status : xe.statusErr,
245
+ l ? xe.status : xe.statusErr,
246
246
  xe.dim,
247
247
  xe.timing
248
248
  ];
249
- o && this.shouldLog("debug") ? (console.groupCollapsed(...l), console.log("%cResponse:", xe.dim, o), console.groupEnd()) : console.log(...l);
249
+ o && this.shouldLog("debug") ? (console.groupCollapsed(...d), console.log("%cResponse:", xe.dim, o), console.groupEnd()) : console.log(...d);
250
250
  }
251
251
  error(t, a, r, n) {
252
252
  this.shouldLog("error") && (console.log(
@@ -283,17 +283,17 @@ function Ht(e) {
283
283
  return a;
284
284
  }
285
285
  async function nr(e, t) {
286
- const a = crypto.getRandomValues(new Uint8Array(ar)), r = new TextEncoder().encode(t), n = await crypto.subtle.importKey("raw", e, { name: "AES-CBC" }, !1, ["encrypt"]), o = await crypto.subtle.encrypt({ name: "AES-CBC", iv: a }, n, r), d = new Uint8Array(o), l = await crypto.subtle.importKey("raw", e, { name: "HMAC", hash: "SHA-256" }, !1, ["sign"]), p = new Uint8Array(a.length + d.length);
287
- p.set(a, 0), p.set(d, a.length);
288
- const f = new Uint8Array(await crypto.subtle.sign("HMAC", l, p)), g = new Uint8Array(d.length + f.length);
289
- return g.set(d, 0), g.set(f, d.length), {
286
+ const a = crypto.getRandomValues(new Uint8Array(ar)), r = new TextEncoder().encode(t), n = await crypto.subtle.importKey("raw", e, { name: "AES-CBC" }, !1, ["encrypt"]), o = await crypto.subtle.encrypt({ name: "AES-CBC", iv: a }, n, r), l = new Uint8Array(o), d = await crypto.subtle.importKey("raw", e, { name: "HMAC", hash: "SHA-256" }, !1, ["sign"]), p = new Uint8Array(a.length + l.length);
287
+ p.set(a, 0), p.set(l, a.length);
288
+ const f = new Uint8Array(await crypto.subtle.sign("HMAC", d, p)), g = new Uint8Array(l.length + f.length);
289
+ return g.set(l, 0), g.set(f, l.length), {
290
290
  iv: ai(a.buffer),
291
291
  data: ai(g.buffer)
292
292
  };
293
293
  }
294
294
  async function or(e, t) {
295
- const a = Ht(t.iv), r = Ht(t.data), n = r.slice(0, r.length - ri), o = r.slice(r.length - ri), d = await crypto.subtle.importKey("raw", e, { name: "HMAC", hash: "SHA-256" }, !1, ["verify"]), l = new Uint8Array(a.length + n.length);
296
- if (l.set(a, 0), l.set(n, a.length), !await crypto.subtle.verify("HMAC", d, o, l)) throw new Error("HMAC verification failed — payload may have been tampered with");
295
+ const a = Ht(t.iv), r = Ht(t.data), n = r.slice(0, r.length - ri), o = r.slice(r.length - ri), l = await crypto.subtle.importKey("raw", e, { name: "HMAC", hash: "SHA-256" }, !1, ["verify"]), d = new Uint8Array(a.length + n.length);
296
+ if (d.set(a, 0), d.set(n, a.length), !await crypto.subtle.verify("HMAC", l, o, d)) throw new Error("HMAC verification failed — payload may have been tampered with");
297
297
  const f = await crypto.subtle.importKey("raw", e, { name: "AES-CBC" }, !1, ["decrypt"]), g = await crypto.subtle.decrypt({ name: "AES-CBC", iv: a.buffer }, f, n);
298
298
  return new TextDecoder().decode(g);
299
299
  }
@@ -354,20 +354,20 @@ class sr {
354
354
  return a ? `${t}?${JSON.stringify(a)}` : t;
355
355
  }
356
356
  async get(t, a, r) {
357
- const n = this.buildEndpoint(t, a), o = this.dedupKey(n, r), d = this.inflightGets.get(o);
358
- if (d && Date.now() - d.timestamp < ni)
359
- return Y.debug(`Dedup → reusing in-flight GET ${a}`), d.promise;
360
- const l = performance.now();
357
+ const n = this.buildEndpoint(t, a), o = this.dedupKey(n, r), l = this.inflightGets.get(o);
358
+ if (l && Date.now() - l.timestamp < ni)
359
+ return Y.debug(`Dedup → reusing in-flight GET ${a}`), l.promise;
360
+ const d = performance.now();
361
361
  Y.request("GET", n, r);
362
362
  const p = (async () => {
363
363
  var f;
364
364
  try {
365
365
  const g = await this.axiosInstance.get(n, {
366
366
  params: r
367
- }), m = Math.round(performance.now() - l);
367
+ }), m = Math.round(performance.now() - d);
368
368
  return Y.response("GET", n, g.status, m, (f = g.data) == null ? void 0 : f.result), this.handleResponse(g);
369
369
  } catch (g) {
370
- const m = Math.round(performance.now() - l);
370
+ const m = Math.round(performance.now() - d);
371
371
  throw Y.error("GET", n, g, m), Nt.handleAxiosError(g);
372
372
  } finally {
373
373
  setTimeout(() => this.inflightGets.delete(o), ni);
@@ -376,41 +376,41 @@ class sr {
376
376
  return this.inflightGets.set(o, { promise: p, timestamp: Date.now() }), p;
377
377
  }
378
378
  async post(t, a, r) {
379
- var d;
379
+ var l;
380
380
  const n = this.buildEndpoint(t, a), o = performance.now();
381
381
  Y.request("POST", n, r);
382
382
  try {
383
- const l = await this.axiosInstance.post(n, r), p = Math.round(performance.now() - o);
384
- return Y.response("POST", n, l.status, p, (d = l.data) == null ? void 0 : d.result), this.handleResponse(l);
385
- } catch (l) {
383
+ const d = await this.axiosInstance.post(n, r), p = Math.round(performance.now() - o);
384
+ return Y.response("POST", n, d.status, p, (l = d.data) == null ? void 0 : l.result), this.handleResponse(d);
385
+ } catch (d) {
386
386
  const p = Math.round(performance.now() - o);
387
- throw Y.error("POST", n, l, p), Nt.handleAxiosError(l);
387
+ throw Y.error("POST", n, d, p), Nt.handleAxiosError(d);
388
388
  }
389
389
  }
390
390
  async put(t, a, r) {
391
- var d;
391
+ var l;
392
392
  const n = this.buildEndpoint(t, a), o = performance.now();
393
393
  Y.request("PUT", n, r);
394
394
  try {
395
- const l = await this.axiosInstance.put(n, r), p = Math.round(performance.now() - o);
396
- return Y.response("PUT", n, l.status, p, (d = l.data) == null ? void 0 : d.result), this.handleResponse(l);
397
- } catch (l) {
395
+ const d = await this.axiosInstance.put(n, r), p = Math.round(performance.now() - o);
396
+ return Y.response("PUT", n, d.status, p, (l = d.data) == null ? void 0 : l.result), this.handleResponse(d);
397
+ } catch (d) {
398
398
  const p = Math.round(performance.now() - o);
399
- throw Y.error("PUT", n, l, p), Nt.handleAxiosError(l);
399
+ throw Y.error("PUT", n, d, p), Nt.handleAxiosError(d);
400
400
  }
401
401
  }
402
402
  async delete(t, a, r) {
403
- var d;
403
+ var l;
404
404
  const n = this.buildEndpoint(t, a), o = performance.now();
405
405
  Y.request("DELETE", n, r);
406
406
  try {
407
- const l = await this.axiosInstance.delete(n, {
407
+ const d = await this.axiosInstance.delete(n, {
408
408
  params: r
409
409
  }), p = Math.round(performance.now() - o);
410
- return Y.response("DELETE", n, l.status, p, (d = l.data) == null ? void 0 : d.result), this.handleResponse(l);
411
- } catch (l) {
410
+ return Y.response("DELETE", n, d.status, p, (l = d.data) == null ? void 0 : l.result), this.handleResponse(d);
411
+ } catch (d) {
412
412
  const p = Math.round(performance.now() - o);
413
- throw Y.error("DELETE", n, l, p), Nt.handleAxiosError(l);
413
+ throw Y.error("DELETE", n, d, p), Nt.handleAxiosError(d);
414
414
  }
415
415
  }
416
416
  handleResponse(t) {
@@ -426,12 +426,12 @@ class sr {
426
426
  return this.axiosInstance;
427
427
  }
428
428
  }
429
- class An {
429
+ class Rn {
430
430
  static async createToken(t) {
431
- const { baseUrl: a, apiKey: r, secretKey: n, tenantId: o, clientId: d, externalRefId: l, workflowKey: p, email: f, isCompany: g, tenantClientId: m, applicant: w } = t, C = t.enableEncryption !== !1;
432
- if (!o && !d)
431
+ const { baseUrl: a, apiKey: r, secretKey: n, tenantId: o, clientId: l, externalRefId: d, workflowKey: p, email: f, isCompany: g, tenantClientId: m, applicant: w } = t, C = t.enableEncryption !== !1;
432
+ if (!o && !l)
433
433
  throw new Error("Either tenantId or clientId must be provided.");
434
- if (!l)
434
+ if (!d)
435
435
  throw new Error("externalRefId is required. Pass your user's unique ID.");
436
436
  if (!p)
437
437
  throw new Error("workflowKey is required. Pass the workflow key for this KYC session.");
@@ -440,19 +440,19 @@ class An {
440
440
  const S = {
441
441
  apiKey: r,
442
442
  secretKey: n,
443
- externalRefId: l,
443
+ externalRefId: d,
444
444
  workflowKey: p,
445
445
  email: f
446
446
  };
447
- o != null && (S.tenantId = o), d && (S.clientId = d), g != null && (S.isCompany = g), m != null && (S.tenantClientId = m), w && (S.applicant = w), C && (S.sdkPublicKey = "1");
448
- const A = (await Si.post(
447
+ o != null && (S.tenantId = o), l && (S.clientId = l), g != null && (S.isCompany = g), m != null && (S.tenantClientId = m), w && (S.applicant = w), C && (S.sdkPublicKey = "1");
448
+ const R = (await Si.post(
449
449
  `${a.replace(/\/+$/, "")}/api/SdkSession/CreateToken`,
450
450
  S,
451
451
  { headers: { "Content-Type": "application/json" } }
452
452
  )).data;
453
- if (!A.success)
454
- throw new Error(A.error || "Failed to create session token.");
455
- const W = A.result;
453
+ if (!R.success)
454
+ throw new Error(R.error || "Failed to create session token.");
455
+ const W = R.result;
456
456
  if (W.encSessionKey && W.encSessionId) {
457
457
  const V = Ht(W.encSessionKey);
458
458
  W.encryptionKey = V.buffer.slice(
@@ -1160,12 +1160,12 @@ class Cr {
1160
1160
  }
1161
1161
  }), n.result.applicantFormVisibleFields && n.result.applicantFormVisibleFields.length > 0 && (o.applicantFormVisibleFields = n.result.applicantFormVisibleFields), n.result.applicantFormRequiredFields && n.result.applicantFormRequiredFields.length > 0 && (o.applicantFormRequiredFields = n.result.applicantFormRequiredFields), n.result.allowedLanguages && n.result.allowedLanguages.length > 0 && (o.allowedLanguages = n.result.allowedLanguages), n.result.applicantFormPages)
1162
1162
  try {
1163
- const d = typeof n.result.applicantFormPages == "string" ? JSON.parse(n.result.applicantFormPages) : n.result.applicantFormPages;
1164
- Array.isArray(d) && d.length > 0 && (o.applicantFormPages = d.map((l) => {
1165
- const p = !l._v || l._v < 4;
1163
+ const l = typeof n.result.applicantFormPages == "string" ? JSON.parse(n.result.applicantFormPages) : n.result.applicantFormPages;
1164
+ Array.isArray(l) && l.length > 0 && (o.applicantFormPages = l.map((d) => {
1165
+ const p = !d._v || d._v < 4;
1166
1166
  return {
1167
- ...l,
1168
- fields: (l.fields || []).map((f) => ({
1167
+ ...d,
1168
+ fields: (d.fields || []).map((f) => ({
1169
1169
  ...f,
1170
1170
  colSpan: p ? f.colSpan === 1 ? 2 : 4 : Math.min(4, Math.max(1, f.colSpan ?? 4))
1171
1171
  }))
@@ -1175,18 +1175,18 @@ class Cr {
1175
1175
  }
1176
1176
  if (n.result.reviewPageFields)
1177
1177
  try {
1178
- const d = typeof n.result.reviewPageFields == "string" ? JSON.parse(n.result.reviewPageFields) : n.result.reviewPageFields;
1179
- Array.isArray(d) && d.length > 0 && (o.reviewPageFields = d);
1178
+ const l = typeof n.result.reviewPageFields == "string" ? JSON.parse(n.result.reviewPageFields) : n.result.reviewPageFields;
1179
+ Array.isArray(l) && l.length > 0 && (o.reviewPageFields = l);
1180
1180
  } catch {
1181
1181
  }
1182
1182
  if (n.result.reviewPageDisabled && (o.reviewPageDisabled = !0), n.result.fieldLabelMode === "placeholder" && (o.fieldLabelMode = "placeholder"), n.result.companyFormVisibleFields && n.result.companyFormVisibleFields.length > 0 && (o.companyFormVisibleFields = n.result.companyFormVisibleFields), n.result.companyFormRequiredFields && n.result.companyFormRequiredFields.length > 0 && (o.companyFormRequiredFields = n.result.companyFormRequiredFields), n.result.companyFormPages)
1183
1183
  try {
1184
- const d = typeof n.result.companyFormPages == "string" ? JSON.parse(n.result.companyFormPages) : n.result.companyFormPages;
1185
- Array.isArray(d) && d.length > 0 && (o.companyFormPages = d.map((l) => {
1186
- const p = !l._v || l._v < 4;
1184
+ const l = typeof n.result.companyFormPages == "string" ? JSON.parse(n.result.companyFormPages) : n.result.companyFormPages;
1185
+ Array.isArray(l) && l.length > 0 && (o.companyFormPages = l.map((d) => {
1186
+ const p = !d._v || d._v < 4;
1187
1187
  return {
1188
- ...l,
1189
- fields: (l.fields || []).map((f) => ({
1188
+ ...d,
1189
+ fields: (d.fields || []).map((f) => ({
1190
1190
  ...f,
1191
1191
  colSpan: p ? f.colSpan === 1 ? 2 : 4 : Math.min(4, Math.max(1, f.colSpan ?? 4))
1192
1192
  }))
@@ -1196,8 +1196,8 @@ class Cr {
1196
1196
  }
1197
1197
  if (n.result.companyReviewPageFields)
1198
1198
  try {
1199
- const d = typeof n.result.companyReviewPageFields == "string" ? JSON.parse(n.result.companyReviewPageFields) : n.result.companyReviewPageFields;
1200
- Array.isArray(d) && d.length > 0 && (o.companyReviewPageFields = d);
1199
+ const l = typeof n.result.companyReviewPageFields == "string" ? JSON.parse(n.result.companyReviewPageFields) : n.result.companyReviewPageFields;
1200
+ Array.isArray(l) && l.length > 0 && (o.companyReviewPageFields = l);
1201
1201
  } catch {
1202
1202
  }
1203
1203
  return o;
@@ -1301,7 +1301,7 @@ class Tr {
1301
1301
  this.listeners.delete(t);
1302
1302
  }
1303
1303
  }
1304
- class Ar {
1304
+ class Rr {
1305
1305
  constructor() {
1306
1306
  be(this, "events", new Tr());
1307
1307
  be(this, "_applicantId", null);
@@ -1441,7 +1441,7 @@ class Ar {
1441
1441
  this.events.clear();
1442
1442
  }
1443
1443
  }
1444
- class Rr {
1444
+ class Ar {
1445
1445
  constructor() {
1446
1446
  be(this, "handlers", /* @__PURE__ */ new Map());
1447
1447
  }
@@ -1469,7 +1469,7 @@ class Rr {
1469
1469
  async loadStepData(t, a) {
1470
1470
  const r = this.getHandler(t);
1471
1471
  if (!r)
1472
- throw new Error(`No handler registered for step action: ${se[t]}`);
1472
+ throw new Error(`No handler registered for step action: ${oe[t]}`);
1473
1473
  return r.loadData(a);
1474
1474
  }
1475
1475
  /**
@@ -1478,61 +1478,61 @@ class Rr {
1478
1478
  async submitStepData(t, a) {
1479
1479
  const r = this.getHandler(t);
1480
1480
  if (!r)
1481
- throw new Error(`No handler registered for step action: ${se[t]}`);
1481
+ throw new Error(`No handler registered for step action: ${oe[t]}`);
1482
1482
  return r.submitData(a);
1483
1483
  }
1484
1484
  }
1485
1485
  class Ir {
1486
- constructor(t, a, r, n, o, d, l, p) {
1486
+ constructor(t, a, r, n, o, l, d, p) {
1487
1487
  be(this, "state");
1488
1488
  be(this, "stepRouter");
1489
- this.applicantService = t, this.questionnaireService = a, this.uploadDocumentService = r, this.appropriatenessTestService = n, this.overviewService = o, this.riskScoringService = d, this.investorCategorizationService = p, this.state = new Ar(), this.stepRouter = new Rr(), this.registerStepHandlers();
1489
+ this.applicantService = t, this.questionnaireService = a, this.uploadDocumentService = r, this.appropriatenessTestService = n, this.overviewService = o, this.riskScoringService = l, this.investorCategorizationService = p, this.state = new Rr(), this.stepRouter = new Ar(), this.registerStepHandlers();
1490
1490
  }
1491
1491
  /**
1492
1492
  * Register all step handlers
1493
1493
  */
1494
1494
  registerStepHandlers() {
1495
- this.stepRouter.registerHandler(se.Questionaries, {
1495
+ this.stepRouter.registerHandler(oe.Questionaries, {
1496
1496
  loadData: (t) => this.questionnaireService.getQuestionnaire(t),
1497
1497
  submitData: async (t) => {
1498
1498
  await this.questionnaireService.fillQuestionnaire(t);
1499
1499
  }
1500
- }), this.stepRouter.registerHandler(se.UploadDocument, {
1500
+ }), this.stepRouter.registerHandler(oe.UploadDocument, {
1501
1501
  loadData: (t) => this.uploadDocumentService.getUploadDocument(t),
1502
1502
  submitData: (t) => this.uploadDocumentService.fillUploadDocument(t)
1503
- }), this.stepRouter.registerHandler(se.AppropriatenessTest, {
1503
+ }), this.stepRouter.registerHandler(oe.AppropriatenessTest, {
1504
1504
  loadData: (t) => this.appropriatenessTestService.getAppropriatenessTest(t),
1505
1505
  submitData: async (t) => {
1506
1506
  await this.appropriatenessTestService.fillAppropriatenessTest(t);
1507
1507
  }
1508
- }), this.stepRouter.registerHandler(se.Overview, {
1508
+ }), this.stepRouter.registerHandler(oe.Overview, {
1509
1509
  loadData: (t) => this.overviewService.getOverviewData(t),
1510
1510
  submitData: (t) => this.overviewService.passOverview(t.applicantId)
1511
- }), this.stepRouter.registerHandler(se.RiskScoring, {
1511
+ }), this.stepRouter.registerHandler(oe.RiskScoring, {
1512
1512
  loadData: (t) => this.riskScoringService.getRiskCriterias(t),
1513
1513
  submitData: async (t) => {
1514
1514
  await this.riskScoringService.submitRiskScoring(t);
1515
1515
  }
1516
- }), this.stepRouter.registerHandler(se.IdentitySdk, {
1516
+ }), this.stepRouter.registerHandler(oe.IdentitySdk, {
1517
1517
  loadData: async (t) => ({
1518
1518
  applicantId: t,
1519
1519
  message: "Identity verification required"
1520
1520
  }),
1521
1521
  submitData: async () => {
1522
1522
  }
1523
- }), this.stepRouter.registerHandler(se.InvestorCategorization, {
1523
+ }), this.stepRouter.registerHandler(oe.InvestorCategorization, {
1524
1524
  loadData: (t) => this.investorCategorizationService.getInvestorCategorization(t),
1525
1525
  submitData: async (t) => {
1526
1526
  await this.investorCategorizationService.setInvestorCategorization(t);
1527
1527
  }
1528
- }), this.stepRouter.registerHandler(se.ManualReview, {
1528
+ }), this.stepRouter.registerHandler(oe.ManualReview, {
1529
1529
  loadData: async (t) => ({
1530
1530
  applicantId: t,
1531
1531
  message: "Your application is under manual review"
1532
1532
  }),
1533
1533
  submitData: async () => {
1534
1534
  }
1535
- }), this.stepRouter.registerHandler(se.AdditionalData, {
1535
+ }), this.stepRouter.registerHandler(oe.AdditionalData, {
1536
1536
  loadData: async (t) => ({
1537
1537
  applicantId: t,
1538
1538
  message: "Additional data required"
@@ -1636,7 +1636,7 @@ function Ci(e, t) {
1636
1636
  n.src = e, t && (n.id = t), n.async = !0, n.onload = () => a(), n.onerror = () => r(new Error(`Failed to load script: ${e}`)), document.head.appendChild(n);
1637
1637
  });
1638
1638
  }
1639
- function Rn(e) {
1639
+ function An(e) {
1640
1640
  return !!document.getElementById(e);
1641
1641
  }
1642
1642
  function In(e) {
@@ -1653,7 +1653,7 @@ function tt(e, t) {
1653
1653
  }
1654
1654
  }
1655
1655
  function Lr() {
1656
- const e = tt("--metakyc-primary", "#2563eb"), t = tt("--metakyc-primary-hover", "#1d4ed8"), a = tt("--metakyc-background", "#ffffff"), r = tt("--metakyc-surface", "#f9fafb"), n = tt("--metakyc-text-primary", "#111827"), o = tt("--metakyc-text-secondary", "#6b7280"), d = tt("--metakyc-text-muted", "#9ca3af"), l = tt("--metakyc-border", "#e5e7eb");
1656
+ const e = tt("--metakyc-primary", "#2563eb"), t = tt("--metakyc-primary-hover", "#1d4ed8"), a = tt("--metakyc-background", "#ffffff"), r = tt("--metakyc-surface", "#f9fafb"), n = tt("--metakyc-text-primary", "#111827"), o = tt("--metakyc-text-secondary", "#6b7280"), l = tt("--metakyc-text-muted", "#9ca3af"), d = tt("--metakyc-border", "#e5e7eb");
1657
1657
  return `
1658
1658
  body, html { font-family: ${tt(
1659
1659
  "--metakyc-font-family",
@@ -1662,19 +1662,19 @@ body, html { font-family: ${tt(
1662
1662
  p, span, label, div { color: ${n}; }
1663
1663
  h1, h2, h3, h4 { color: ${n}; }
1664
1664
  .step-desc { color: ${o}; }
1665
- section.content { background-color: ${r}; color: ${n}; padding: 32px 32px 16px; box-shadow: none; border-radius: 10px; border: 1px solid ${l}; }
1666
- input { color: ${n}; font-weight: 500; outline: none; background-color: ${a}; border: 1px solid ${l}; border-radius: 6px; }
1665
+ section.content { background-color: ${r}; color: ${n}; padding: 32px 32px 16px; box-shadow: none; border-radius: 10px; border: 1px solid ${d}; }
1666
+ input { color: ${n}; font-weight: 500; outline: none; background-color: ${a}; border: 1px solid ${d}; border-radius: 6px; }
1667
1667
  input:focus { border-color: ${e}; box-shadow: 0 0 0 2px ${e}33; }
1668
1668
  button.submit, button.back { border-radius: 8px; height: 44px; padding: 0 24px; font-size: 14px; font-weight: 600; background-image: none !important; transform: none !important; box-shadow: none !important; transition: all 0.15s ease; cursor: pointer; }
1669
1669
  button.submit { min-width: 120px; background: none; background-color: ${e}; color: #ffffff; border: none; }
1670
1670
  button.submit:hover { background-color: ${t}; }
1671
- button.back { background: none; background-color: ${a}; border: 1px solid ${l}; color: ${n}; }
1671
+ button.back { background: none; background-color: ${a}; border: 1px solid ${d}; color: ${n}; }
1672
1672
  button.back:hover { background-color: ${r}; }
1673
1673
  .round-icon { background-color: ${e} !important; background-image: none !important; }
1674
- .upload-item, .document-status { border-color: ${l} !important; }
1675
- select { background-color: ${a}; color: ${n}; border: 1px solid ${l}; border-radius: 6px; }
1674
+ .upload-item, .document-status { border-color: ${d} !important; }
1675
+ select { background-color: ${a}; color: ${n}; border: 1px solid ${d}; border-radius: 6px; }
1676
1676
  .description { color: ${o}; }
1677
- .subtitle { color: ${d}; }
1677
+ .subtitle { color: ${l}; }
1678
1678
  a { color: ${e}; }
1679
1679
  a:hover { color: ${t}; }
1680
1680
  `.trim();
@@ -1709,14 +1709,14 @@ class Er {
1709
1709
  }).on("idCheck.onStepCompleted", (n) => {
1710
1710
  console.log("[Sumsub] Step completed:", n);
1711
1711
  }).on("idCheck.applicantStatus", (n) => {
1712
- var o, d;
1713
- console.log("[Sumsub] Applicant status:", n), ((n == null ? void 0 : n.reviewStatus) === "completed" || ((o = n == null ? void 0 : n.reviewResult) == null ? void 0 : o.reviewAnswer) === "GREEN") && ((d = this.completeCallback) == null || d.call(this, n));
1712
+ var o, l;
1713
+ console.log("[Sumsub] Applicant status:", n), ((n == null ? void 0 : n.reviewStatus) === "completed" || ((o = n == null ? void 0 : n.reviewResult) == null ? void 0 : o.reviewAnswer) === "GREEN") && ((l = this.completeCallback) == null || l.call(this, n));
1714
1714
  }).on("idCheck.onError", (n) => {
1715
1715
  var o;
1716
1716
  console.error("[Sumsub] Error:", n), (o = this.errorCallback) == null || o.call(this, n);
1717
1717
  }).onMessage((n, o) => {
1718
- var d;
1719
- console.log("[Sumsub] Message:", n, o), n === "idCheck.onApplicantSubmitted" && ((d = this.completeCallback) == null || d.call(this, o));
1718
+ var l;
1719
+ console.log("[Sumsub] Message:", n, o), n === "idCheck.onApplicantSubmitted" && ((l = this.completeCallback) == null || l.call(this, o));
1720
1720
  });
1721
1721
  this.sdk = r.build(), this.sdk.launch(`#${t}`);
1722
1722
  }
@@ -1862,7 +1862,7 @@ class Pr {
1862
1862
  try {
1863
1863
  if (await this.loadSDK(), !window._Sardine)
1864
1864
  throw new Error("SardinAI SDK not available after loading");
1865
- const t = this.getSardineHost(), { clientId: a, environment: r, flow: n, enableBiometrics: o, enablePortScanning: d } = this.config;
1865
+ const t = this.getSardineHost(), { clientId: a, environment: r, flow: n, enableBiometrics: o, enablePortScanning: l } = this.config;
1866
1866
  this.sardineContext = window._Sardine.createContext({
1867
1867
  clientId: a,
1868
1868
  sessionKey: this.sessionKey,
@@ -1873,16 +1873,16 @@ class Pr {
1873
1873
  parentElement: document.body,
1874
1874
  enableBiometrics: o !== !1,
1875
1875
  // Default true
1876
- enablePortScanning: d === !0,
1876
+ enablePortScanning: l === !0,
1877
1877
  // Default false
1878
1878
  region: this.config.region,
1879
1879
  // Callback for device response (deprecated but kept for compatibility)
1880
- onDeviceResponse: (l) => {
1881
- console.log(`[SardinAI] Device ID: ${l.deviceId}`);
1880
+ onDeviceResponse: (d) => {
1881
+ console.log(`[SardinAI] Device ID: ${d.deviceId}`);
1882
1882
  },
1883
1883
  // New callback for session updates
1884
- onConfigUpdate: (l, p, f) => {
1885
- switch (l) {
1884
+ onConfigUpdate: (d, p, f) => {
1885
+ switch (d) {
1886
1886
  case "SESSION_UPDATE_FAILED":
1887
1887
  console.error("[SardinAI] Session update failed:", f);
1888
1888
  break;
@@ -1893,7 +1893,7 @@ class Pr {
1893
1893
  console.log("[SardinAI] No session update");
1894
1894
  break;
1895
1895
  default:
1896
- console.warn("[SardinAI] Unknown event:", l);
1896
+ console.warn("[SardinAI] Unknown event:", d);
1897
1897
  }
1898
1898
  }
1899
1899
  }), this.addNoScriptFallback(t), console.log("[SardinAI] SDK initialized with sessionKey:", this.sessionKey);
@@ -1969,32 +1969,32 @@ class ct {
1969
1969
  var n, o;
1970
1970
  switch (t) {
1971
1971
  case Ge.Sumsub:
1972
- const d = ((n = r == null ? void 0 : r.identityProviders) == null ? void 0 : n.sumsub) || {};
1972
+ const l = ((n = r == null ? void 0 : r.identityProviders) == null ? void 0 : n.sumsub) || {};
1973
1973
  return {
1974
1974
  accessToken: a.accessToken || a.token,
1975
1975
  applicantEmail: a.email,
1976
1976
  applicantPhone: a.phone,
1977
1977
  externalUserId: a.externalUserId,
1978
- lang: d.lang || a.lang || "en",
1979
- theme: d.theme,
1980
- customizationName: d.customizationName,
1981
- customCss: d.customCss,
1982
- adaptIframeHeight: d.adaptIframeHeight
1978
+ lang: l.lang || a.lang || "en",
1979
+ theme: l.theme,
1980
+ customizationName: l.customizationName,
1981
+ customCss: l.customCss,
1982
+ adaptIframeHeight: l.adaptIframeHeight
1983
1983
  };
1984
1984
  case Ge.Onfido:
1985
1985
  return {
1986
1986
  token: a.token || a.sdkToken
1987
1987
  };
1988
1988
  case Ge.SardinAI:
1989
- const l = ((o = r == null ? void 0 : r.identityProviders) == null ? void 0 : o.sardinai) || {};
1989
+ const d = ((o = r == null ? void 0 : r.identityProviders) == null ? void 0 : o.sardinai) || {};
1990
1990
  return {
1991
- clientId: l.clientId || a.clientId,
1992
- sessionKey: l.sessionKey || (r == null ? void 0 : r.sardinSessionKey) || a.sessionKey,
1993
- environment: l.environment || a.environment || "production",
1994
- flow: l.flow || a.flow,
1995
- region: l.region,
1996
- enableBiometrics: l.enableBiometrics,
1997
- enablePortScanning: l.enablePortScanning
1991
+ clientId: d.clientId || a.clientId,
1992
+ sessionKey: d.sessionKey || (r == null ? void 0 : r.sardinSessionKey) || a.sessionKey,
1993
+ environment: d.environment || a.environment || "production",
1994
+ flow: d.flow || a.flow,
1995
+ region: d.region,
1996
+ enableBiometrics: d.enableBiometrics,
1997
+ enablePortScanning: d.enablePortScanning
1998
1998
  };
1999
1999
  default:
2000
2000
  throw new Error(`Unsupported identity provider: ${t}`);
@@ -2019,7 +2019,7 @@ class Mr {
2019
2019
  * Scoping to .metakyc-sdk means host-app variables can never interfere.
2020
2020
  */
2021
2021
  injectThemeCSS() {
2022
- var l;
2022
+ var d;
2023
2023
  this.themeStyleElement && this.themeStyleElement.remove();
2024
2024
  const t = this.currentTheme.colors, a = this.currentTheme.typography, r = this.currentTheme.spacing, n = {
2025
2025
  primary: t.primary,
@@ -2061,7 +2061,7 @@ class Mr {
2061
2061
  }), r && Object.entries(r).forEach(([p, f]) => {
2062
2062
  n[this.kebabCase(p)] = f;
2063
2063
  });
2064
- const d = `
2064
+ const l = `
2065
2065
  /* ── metakyc-theme-vars: scoped CSS variables ──────────────────────────────── */
2066
2066
  .metakyc-sdk,
2067
2067
  .metakyc-searchable-select-dropdown,
@@ -2115,7 +2115,7 @@ ${Object.entries(n).filter(([, p]) => !!p).map(([p, f]) => ` --metakyc-${p}: ${
2115
2115
  border-color: var(--metakyc-input-border, var(--metakyc-border, #d1d5db)) !important;
2116
2116
  }
2117
2117
  `;
2118
- this.themeStyleElement = document.createElement("style"), this.themeStyleElement.id = "metakyc-theme-vars", this.themeStyleElement.textContent = d, (l = this.customStyleElement) != null && l.parentNode ? document.head.insertBefore(this.themeStyleElement, this.customStyleElement) : document.head.appendChild(this.themeStyleElement);
2118
+ this.themeStyleElement = document.createElement("style"), this.themeStyleElement.id = "metakyc-theme-vars", this.themeStyleElement.textContent = l, (d = this.customStyleElement) != null && d.parentNode ? document.head.insertBefore(this.themeStyleElement, this.customStyleElement) : document.head.appendChild(this.themeStyleElement);
2119
2119
  }
2120
2120
  /**
2121
2121
  * Inject custom CSS into document
@@ -7179,7 +7179,7 @@ function ie(e, t) {
7179
7179
  const r = ea.exec(a);
7180
7180
  return r ? t(r[1]) : e;
7181
7181
  }
7182
- const Yt = "1.0.92", Ti = Gt(null), di = `metakyc-translations-${Yt}-`, ta = ({
7182
+ const Yt = "1.0.93", Ti = Gt(null), di = `metakyc-translations-${Yt}-`, ta = ({
7183
7183
  locale: e,
7184
7184
  fetchTranslations: t,
7185
7185
  children: a
@@ -7193,9 +7193,9 @@ const Yt = "1.0.92", Ti = Gt(null), di = `metakyc-translations-${Yt}-`, ta = ({
7193
7193
  } catch {
7194
7194
  }
7195
7195
  return p;
7196
- }, [r]), [o, d] = T(n);
7196
+ }, [r]), [o, l] = T(n);
7197
7197
  ge(() => {
7198
- d(n);
7198
+ l(n);
7199
7199
  }, [n]), ge(() => {
7200
7200
  if (!t) return;
7201
7201
  let p = !1;
@@ -7207,7 +7207,7 @@ const Yt = "1.0.92", Ti = Gt(null), di = `metakyc-translations-${Yt}-`, ta = ({
7207
7207
  }
7208
7208
  Y.debug(`Remote translation overrides loaded for locale: ${r}`);
7209
7209
  const g = $t(r), m = si(g, f);
7210
- d(m);
7210
+ l(m);
7211
7211
  try {
7212
7212
  localStorage.setItem(di + r, JSON.stringify(f));
7213
7213
  } catch {
@@ -7218,12 +7218,12 @@ const Yt = "1.0.92", Ti = Gt(null), di = `metakyc-translations-${Yt}-`, ta = ({
7218
7218
  p = !0;
7219
7219
  };
7220
7220
  }, [r, t]);
7221
- const l = Ue(() => ({
7221
+ const d = Ue(() => ({
7222
7222
  t: Ni(o),
7223
7223
  locale: r,
7224
7224
  dictionary: o
7225
7225
  }), [o, r]);
7226
- return /* @__PURE__ */ i(Ti.Provider, { value: l, children: a });
7226
+ return /* @__PURE__ */ i(Ti.Provider, { value: d, children: a });
7227
7227
  };
7228
7228
  function Ie() {
7229
7229
  const e = Qt(Ti);
@@ -7233,7 +7233,7 @@ function Ie() {
7233
7233
  }
7234
7234
  return e;
7235
7235
  }
7236
- const Ai = Gt(null), ia = '.metakyc-sdk .pointer-events-none{pointer-events:none}.metakyc-sdk .visible{visibility:visible}.metakyc-sdk .static{position:static}.metakyc-sdk .fixed{position:fixed}.metakyc-sdk .absolute{position:absolute}.metakyc-sdk .relative{position:relative}.metakyc-sdk .inset-y-0{top:0;bottom:0}.metakyc-sdk .left-0{left:0}.metakyc-sdk .right-0{right:0}.metakyc-sdk .right-3{right:.75rem}.metakyc-sdk .top-1\\/2{top:50%}.metakyc-sdk .mx-6{margin-left:1.5rem;margin-right:1.5rem}.metakyc-sdk .mx-auto{margin-left:auto;margin-right:auto}.metakyc-sdk .my-8{margin-top:2rem;margin-bottom:2rem}.metakyc-sdk .-ml-1{margin-left:-.25rem}.metakyc-sdk .mb-0\\.5{margin-bottom:.125rem}.metakyc-sdk .mb-1{margin-bottom:.25rem}.metakyc-sdk .mb-2{margin-bottom:.5rem}.metakyc-sdk .mb-3{margin-bottom:.75rem}.metakyc-sdk .mb-4{margin-bottom:1rem}.metakyc-sdk .mb-6{margin-bottom:1.5rem}.metakyc-sdk .ml-0\\.5{margin-left:.125rem}.metakyc-sdk .ml-1{margin-left:.25rem}.metakyc-sdk .ml-3{margin-left:.75rem}.metakyc-sdk .mr-2{margin-right:.5rem}.metakyc-sdk .mr-3{margin-right:.75rem}.metakyc-sdk .mt-0\\.5{margin-top:.125rem}.metakyc-sdk .mt-1{margin-top:.25rem}.metakyc-sdk .mt-2{margin-top:.5rem}.metakyc-sdk .mt-3{margin-top:.75rem}.metakyc-sdk .mt-4{margin-top:1rem}.metakyc-sdk .block{display:block}.metakyc-sdk .inline-block{display:inline-block}.metakyc-sdk .inline{display:inline}.metakyc-sdk .flex{display:flex}.metakyc-sdk .inline-flex{display:inline-flex}.metakyc-sdk .grid{display:grid}.metakyc-sdk .hidden{display:none}.metakyc-sdk .h-12{height:3rem}.metakyc-sdk .h-24{height:6rem}.metakyc-sdk .h-4{height:1rem}.metakyc-sdk .h-6{height:1.5rem}.metakyc-sdk .h-8{height:2rem}.metakyc-sdk .h-full{height:100%}.metakyc-sdk .max-h-52{max-height:13rem}.metakyc-sdk .min-h-\\[400px\\]{min-height:400px}.metakyc-sdk .w-12{width:3rem}.metakyc-sdk .w-20{width:5rem}.metakyc-sdk .w-24{width:6rem}.metakyc-sdk .w-4{width:1rem}.metakyc-sdk .w-6{width:1.5rem}.metakyc-sdk .w-8{width:2rem}.metakyc-sdk .w-full{width:100%}.metakyc-sdk .max-w-md{max-width:28rem}.metakyc-sdk .flex-1{flex:1 1 0%}.metakyc-sdk .flex-shrink-0{flex-shrink:0}.metakyc-sdk .-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.metakyc-sdk .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.metakyc-sdk .animate-spin{animation:spin 1s linear infinite}.metakyc-sdk .cursor-not-allowed{cursor:not-allowed}.metakyc-sdk .cursor-pointer{cursor:pointer}.metakyc-sdk .resize{resize:both}.metakyc-sdk .list-inside{list-style-position:inside}.metakyc-sdk .list-disc{list-style-type:disc}.metakyc-sdk .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.metakyc-sdk .flex-col{flex-direction:column}.metakyc-sdk .flex-wrap{flex-wrap:wrap}.metakyc-sdk .items-start{align-items:flex-start}.metakyc-sdk .items-center{align-items:center}.metakyc-sdk .justify-center{justify-content:center}.metakyc-sdk .justify-between{justify-content:space-between}.metakyc-sdk .gap-1{gap:.25rem}.metakyc-sdk .gap-1\\.5{gap:.375rem}.metakyc-sdk .gap-2{gap:.5rem}.metakyc-sdk .gap-4{gap:1rem}.metakyc-sdk :is(.space-x-3>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.metakyc-sdk :is(.space-y-1>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-1\\.5>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-2>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-4>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-6>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-8>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.metakyc-sdk .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.metakyc-sdk .rounded{border-radius:.25rem}.metakyc-sdk .rounded-full{border-radius:9999px}.metakyc-sdk .rounded-lg{border-radius:.5rem}.metakyc-sdk .rounded-xl{border-radius:.75rem}.metakyc-sdk .border{border-width:1px}.metakyc-sdk .border-0{border-width:0px}.metakyc-sdk .border-2{border-width:2px}.metakyc-sdk .border-b{border-bottom-width:1px}.metakyc-sdk .border-t{border-top-width:1px}.metakyc-sdk .border-danger-500{border-color:var(--metakyc-danger, #EF4444)}.metakyc-sdk .p-3{padding:.75rem}.metakyc-sdk .p-4{padding:1rem}.metakyc-sdk .px-2{padding-left:.5rem;padding-right:.5rem}.metakyc-sdk .px-2\\.5{padding-left:.625rem;padding-right:.625rem}.metakyc-sdk .px-3{padding-left:.75rem;padding-right:.75rem}.metakyc-sdk .px-4{padding-left:1rem;padding-right:1rem}.metakyc-sdk .px-6{padding-left:1.5rem;padding-right:1.5rem}.metakyc-sdk .py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.metakyc-sdk .py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.metakyc-sdk .py-12{padding-top:3rem;padding-bottom:3rem}.metakyc-sdk .py-2{padding-top:.5rem;padding-bottom:.5rem}.metakyc-sdk .py-3{padding-top:.75rem;padding-bottom:.75rem}.metakyc-sdk .py-4{padding-top:1rem;padding-bottom:1rem}.metakyc-sdk .py-8{padding-top:2rem;padding-bottom:2rem}.metakyc-sdk .pb-4{padding-bottom:1rem}.metakyc-sdk .pl-10{padding-left:2.5rem}.metakyc-sdk .pl-3{padding-left:.75rem}.metakyc-sdk .pr-10{padding-right:2.5rem}.metakyc-sdk .pr-3{padding-right:.75rem}.metakyc-sdk .pr-6{padding-right:1.5rem}.metakyc-sdk .text-left{text-align:left}.metakyc-sdk .text-center{text-align:center}.metakyc-sdk .text-2xl{font-size:1.5rem;line-height:2rem}.metakyc-sdk .text-3xl{font-size:1.875rem;line-height:2.25rem}.metakyc-sdk .text-5xl{font-size:3rem;line-height:1}.metakyc-sdk .text-base{font-size:1rem;line-height:1.5rem}.metakyc-sdk .text-lg{font-size:1.125rem;line-height:1.75rem}.metakyc-sdk .text-sm{font-size:.875rem;line-height:1.25rem}.metakyc-sdk .text-xl{font-size:1.25rem;line-height:1.75rem}.metakyc-sdk .text-xs{font-size:.75rem;line-height:1rem}.metakyc-sdk .font-bold{font-weight:700}.metakyc-sdk .font-medium{font-weight:500}.metakyc-sdk .font-semibold{font-weight:600}.metakyc-sdk .uppercase{text-transform:uppercase}.metakyc-sdk .lowercase{text-transform:lowercase}.metakyc-sdk .italic{font-style:italic}.metakyc-sdk .tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.metakyc-sdk .leading-6{line-height:1.5rem}.metakyc-sdk .text-danger-500{color:var(--metakyc-danger, #EF4444)}.metakyc-sdk .text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-primary,.metakyc-sdk .text-primary-500{color:var(--metakyc-primary, #3B82F6)}.metakyc-sdk .text-secondary{color:var(--metakyc-secondary, #64748b)}.metakyc-sdk .underline{text-decoration-line:underline}.metakyc-sdk .opacity-25{opacity:.25}.metakyc-sdk .opacity-50{opacity:.5}.metakyc-sdk .opacity-60{opacity:.6}.metakyc-sdk .opacity-75{opacity:.75}.metakyc-sdk .shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.metakyc-sdk .outline{outline-style:solid}.metakyc-sdk .ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.metakyc-sdk .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.metakyc-sdk .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.metakyc-sdk .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .duration-200{transition-duration:.2s}.metakyc-sdk .grid{display:grid!important}.metakyc-sdk .flex{display:flex!important}.metakyc-sdk .inline-flex{display:inline-flex!important}.metakyc-sdk .hidden{display:none!important}.metakyc-sdk .block{display:block!important}.metakyc-sdk .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.metakyc-sdk .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.metakyc-sdk .grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.metakyc-sdk .grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}.metakyc-sdk .col-span-1{grid-column:span 1 / span 1!important}.metakyc-sdk .col-span-2{grid-column:span 2 / span 2!important}.metakyc-sdk .col-span-3{grid-column:span 3 / span 3!important}.metakyc-sdk .col-span-4{grid-column:span 4 / span 4!important}.metakyc-sdk .gap-1{gap:.25rem!important}.metakyc-sdk .gap-2{gap:.5rem!important}.metakyc-sdk .gap-3{gap:.75rem!important}.metakyc-sdk .gap-4{gap:1rem!important}.metakyc-sdk .gap-6{gap:1.5rem!important}.metakyc-sdk .gap-8{gap:2rem!important}.metakyc-sdk .flex-col{flex-direction:column!important}.metakyc-sdk .flex-row{flex-direction:row!important}.metakyc-sdk .flex-wrap{flex-wrap:wrap!important}.metakyc-sdk .flex-1{flex:1 1 0%!important}.metakyc-sdk .flex-shrink-0{flex-shrink:0!important}.metakyc-sdk .items-center{align-items:center!important}.metakyc-sdk .items-start{align-items:flex-start!important}.metakyc-sdk .items-end{align-items:flex-end!important}.metakyc-sdk .justify-between{justify-content:space-between!important}.metakyc-sdk .justify-center{justify-content:center!important}.metakyc-sdk .justify-end{justify-content:flex-end!important}.metakyc-sdk .justify-start{justify-content:flex-start!important}.metakyc-sdk .space-y-1>*+*{margin-top:.25rem!important}.metakyc-sdk .space-y-1\\.5>*+*{margin-top:.375rem!important}.metakyc-sdk .space-y-2>*+*{margin-top:.5rem!important}.metakyc-sdk .space-y-3>*+*{margin-top:.75rem!important}.metakyc-sdk .space-y-4>*+*{margin-top:1rem!important}.metakyc-sdk .space-y-6>*+*{margin-top:1.5rem!important}.metakyc-sdk .w-full{width:100%!important}.metakyc-sdk .relative{position:relative!important}.metakyc-sdk .absolute{position:absolute!important}.metakyc-sdk .overflow-hidden{overflow:hidden!important}.metakyc-sdk .overflow-auto{overflow:auto!important}.metakyc-sdk .overflow-x-auto{overflow-x:auto!important}@media(min-width:768px){.metakyc-sdk .md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.metakyc-sdk .md\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}}.metakyc-sdk .metakyc-form-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:1rem!important}@media(max-width:767px){.metakyc-sdk .metakyc-form-grid{grid-template-columns:1fr!important}.metakyc-sdk .metakyc-form-grid>*{grid-column:span 1 / span 1!important}.metakyc-sdk .metakyc-grid-2{grid-template-columns:1fr!important}}@media(max-width:767px){.metakyc-sdk .metakyc-card-content,.metakyc-sdk .metakyc-card-header,.metakyc-sdk .metakyc-card-footer,.metakyc-sdk .metakyc-progress-wrapper{padding-left:12px!important;padding-right:12px!important}.metakyc-sdk .metakyc-form-grid{gap:.75rem!important}}.metakyc-sdk *,.metakyc-sdk *:before,.metakyc-sdk *:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--metakyc-border, #e5e7eb)}.metakyc-sdk{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4}.metakyc-sdk img,.metakyc-sdk video{max-width:100%;height:auto}.metakyc-sdk h1,.metakyc-sdk h2,.metakyc-sdk h3,.metakyc-sdk h4,.metakyc-sdk h5,.metakyc-sdk h6,.metakyc-sdk p{margin:0}.metakyc-sdk ol,.metakyc-sdk ul{list-style:none;margin:0;padding:0}.metakyc-sdk button,.metakyc-sdk input,.metakyc-sdk optgroup,.metakyc-sdk select,.metakyc-sdk textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}.metakyc-sdk button,.metakyc-sdk [role=button]{cursor:pointer}.metakyc-sdk a{color:inherit;text-decoration:inherit}.metakyc-sdk input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]),.metakyc-sdk select,.metakyc-sdk textarea,.metakyc-sdk .metakyc-searchable-select-trigger,.metakyc-sdk .metakyc-multiselect-trigger{background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important;border-color:var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important}.metakyc-sdk input::-moz-placeholder,.metakyc-sdk textarea::-moz-placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-sdk input::placeholder,.metakyc-sdk textarea::placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-sdk input:not([type=checkbox]):not([type=radio]):focus,.metakyc-sdk select:focus,.metakyc-sdk textarea:focus{outline:none!important;border-color:var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb))!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb)) 20%,transparent)!important}.metakyc-sdk input[type=checkbox],.metakyc-sdk input[type=radio]{appearance:none!important;-webkit-appearance:none!important;-moz-appearance:none!important;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-width:16px!important;max-height:16px!important;flex-shrink:0!important;cursor:pointer!important;background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;border:1.5px solid var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important;position:relative!important;transition:background-color .15s,border-color .15s!important;vertical-align:middle!important;display:inline-block!important;padding:0!important;margin:0!important;color-scheme:light!important}.metakyc-sdk input[type=checkbox]{border-radius:4px!important}.metakyc-sdk input[type=radio]{border-radius:50%!important}.metakyc-sdk input[type=checkbox]:checked,.metakyc-sdk input[type=radio]:checked{background-color:var(--metakyc-primary, #2563eb)!important;border-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk input[type=checkbox]:checked:after{content:""!important;display:block!important;position:absolute!important;left:4px!important;top:1px!important;width:5px!important;height:9px!important;border:2px solid #ffffff!important;border-top:none!important;border-left:none!important;transform:rotate(45deg)!important}.metakyc-sdk input[type=radio]:checked:after{content:""!important;display:block!important;position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:6px!important;height:6px!important;border-radius:50%!important;background:#fff!important}.metakyc-sdk input[type=checkbox]:focus,.metakyc-sdk input[type=radio]:focus{outline:none!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--metakyc-primary, #2563eb) 30%,transparent)!important}.metakyc-searchable-select-dropdown,.metakyc-multiselect-dropdown{background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;border-color:var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important}.metakyc-searchable-select-dropdown input,.metakyc-multiselect-dropdown input{background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important;border-color:var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important}.metakyc-searchable-select-dropdown input::-moz-placeholder,.metakyc-multiselect-dropdown input::-moz-placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-searchable-select-dropdown input::placeholder,.metakyc-multiselect-dropdown input::placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-searchable-select-dropdown input:focus,.metakyc-multiselect-dropdown input:focus{outline:none!important;background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important;border-color:var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb))!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb)) 20%,transparent)!important}.metakyc-searchable-select-dropdown li:hover,.metakyc-multiselect-dropdown li:hover{background-color:var(--metakyc-surface, var(--metakyc-background, #f9fafb))!important}.metakyc-sdk .metakyc-help-btn{color:var(--metakyc-primary, #2563eb)!important;border-color:var(--metakyc-primary, #2563eb)!important;background:transparent!important;position:relative!important;z-index:2!important}.metakyc-sdk .metakyc-overview-step-item,.metakyc-sdk .metakyc-overview-step-item *,.metakyc-sdk .metakyc-step-content,.metakyc-sdk .metakyc-step-content *,.metakyc-sdk .metakyc-step-title,.metakyc-sdk .metakyc-step-title *,.metakyc-sdk .metakyc-step-icon,.metakyc-sdk .metakyc-step-icon *,.metakyc-sdk .metakyc-step-description,.metakyc-sdk .metakyc-step-description *{border-top-width:0!important;border-bottom-width:0!important;border-left-width:0!important;border-right-width:0!important;border-top-style:none!important;border-bottom-style:none!important;border-left-style:none!important;border-right-style:none!important;border-top-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important;border-right-color:transparent!important;border:0!important;box-shadow:none!important;outline:none!important;outline-width:0!important;outline-style:none!important;text-decoration:none!important;text-decoration-line:none!important}.metakyc-sdk .metakyc-overview-step-item:before,.metakyc-sdk .metakyc-overview-step-item:after,.metakyc-sdk .metakyc-overview-step-item *:before,.metakyc-sdk .metakyc-overview-step-item *:after,.metakyc-sdk .metakyc-step-content:before,.metakyc-sdk .metakyc-step-content:after,.metakyc-sdk .metakyc-step-content *:before,.metakyc-sdk .metakyc-step-content *:after,.metakyc-sdk .metakyc-step-title:before,.metakyc-sdk .metakyc-step-title:after,.metakyc-sdk .metakyc-step-description:before,.metakyc-sdk .metakyc-step-description:after{content:none!important;display:none!important;visibility:hidden!important;border:none!important;box-shadow:none!important;outline:none!important;background:none!important;height:0!important;width:0!important}.metakyc-sdk .metakyc-overview-step-item{border-width:0!important;border-style:none!important;border:0!important;box-shadow:none!important;outline:none!important}.metakyc-sdk .metakyc-step-content{border-width:0!important;border-style:none!important;border:0!important;padding-top:0!important;margin-top:0!important;box-shadow:none!important;outline:none!important}.metakyc-sdk .metakyc-step-title{border-width:0!important;border-style:none!important;border:0!important;padding-top:0!important;margin-top:0!important;box-shadow:none!important;outline:none!important;text-decoration:none!important}.metakyc-sdk hr,.metakyc-sdk .metakyc-overview-step-item hr,.metakyc-sdk .metakyc-overview-step-item * hr,.metakyc-sdk .metakyc-step-content hr,.metakyc-sdk .metakyc-step-content * hr{display:block!important;height:0!important;border:0!important;border-top:1px solid var(--metakyc-primary, #2563eb)!important;opacity:.25!important;margin:1rem 0!important;overflow:visible!important}.metakyc-sdk{background-color:var(--metakyc-background, #ffffff)!important;color:var(--metakyc-text-primary, #111827)!important;font-family:var(--metakyc-font-family, inherit)!important;padding:1.5rem!important;border-radius:.75rem!important}.metakyc-sdk h1,.metakyc-sdk h2,.metakyc-sdk h3,.metakyc-sdk h4,.metakyc-sdk h5,.metakyc-sdk h6{color:var(--metakyc-text-primary, #111827);letter-spacing:normal}.metakyc-sdk .text-gray-900{color:var(--metakyc-text-primary, #111827)!important}.metakyc-sdk .text-gray-800{color:var(--metakyc-text-primary, #1f2937)!important}.metakyc-sdk .text-gray-700{color:var(--metakyc-text-secondary, #374151)!important}.metakyc-sdk .text-gray-600{color:var(--metakyc-text-secondary, #6b7280)!important}.metakyc-sdk .text-gray-500{color:var(--metakyc-text-muted, #6b7280)!important}.metakyc-sdk .text-gray-400{color:var(--metakyc-text-muted, #9ca3af)!important}.metakyc-sdk .text-gray-300{color:var(--metakyc-text-muted, #d1d5db)!important}.metakyc-sdk .text-white{color:#fff!important}.metakyc-sdk .bg-white{background-color:var(--metakyc-background, #ffffff)!important}.metakyc-sdk .bg-gray-50{background-color:var(--metakyc-surface, #f9fafb)!important}.metakyc-sdk .bg-gray-100{background-color:var(--metakyc-surface, #f3f4f6)!important}.metakyc-sdk .bg-gray-200{background-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .bg-gray-800{background-color:var(--metakyc-surface, #1f2937)!important}.metakyc-sdk .border-gray-100,.metakyc-sdk .border-gray-200,.metakyc-sdk .border-gray-300{border-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .border-t{border-top-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .border-b{border-bottom-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .divide-gray-200>*{border-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .bg-primary-500,.metakyc-sdk .bg-primary-600{background-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .bg-primary-50,.metakyc-sdk .bg-primary-100{background-color:var(--metakyc-primary-light, #dbeafe)!important}.metakyc-sdk .text-primary-500,.metakyc-sdk .text-primary-600,.metakyc-sdk .text-primary-800{color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .text-primary-900{color:var(--metakyc-primary-dark, #1e40af)!important}.metakyc-sdk .border-primary-500,.metakyc-sdk .border-primary-600{border-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .hover\\:bg-primary-50:hover{background-color:var(--metakyc-primary-light, #dbeafe)!important}.metakyc-sdk .hover\\:bg-primary-600:hover{background-color:var(--metakyc-primary-hover, #1d4ed8)!important}.metakyc-sdk .bg-blue-600{background-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .bg-blue-100{background-color:var(--metakyc-primary-light, #dbeafe)!important}.metakyc-sdk .text-blue-600,.metakyc-sdk .text-blue-400{color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .hover\\:bg-blue-700:hover{background-color:var(--metakyc-primary-hover, #1d4ed8)!important}.metakyc-sdk .metakyc-overview-steps h3:before,.metakyc-sdk .metakyc-overview-steps h3:after{content:none!important;display:none!important}.metakyc-sdk .metakyc-overview-steps *:before,.metakyc-sdk .metakyc-overview-steps *:after{content:none!important;display:none!important}.metakyc-sdk .metakyc-stepper-scroll::-webkit-scrollbar{display:none!important;height:0!important;width:0!important}.metakyc-sdk .metakyc-file-dropzone:hover{border-color:var(--metakyc-primary, #2563eb)!important;background-color:color-mix(in srgb,var(--metakyc-primary, #2563eb) 3%,var(--metakyc-background, #ffffff))!important}.metakyc-sdk .metakyc-file-item:hover{background-color:color-mix(in srgb,var(--metakyc-surface, #f9fafb) 80%,var(--metakyc-border, #e5e7eb))!important}.metakyc-sdk .metakyc-file-upload label{color:var(--metakyc-text-primary, #111827)!important}.metakyc-sdk .metakyc-file-upload p{margin:0!important;line-height:1.4!important}.metakyc-sdk .metakyc-file-item button{background:transparent!important;border:none!important;box-shadow:none!important;outline:none!important}.metakyc-sdk .metakyc-file-dropzone{box-shadow:none!important;outline:none!important}.metakyc-sdk[dir=rtl]{direction:rtl!important;text-align:right!important}.metakyc-sdk[dir=rtl] .text-center{text-align:center!important}.metakyc-sdk[dir=rtl] .text-left{text-align:right!important}.metakyc-sdk[dir=rtl] .text-right{text-align:left!important}.metakyc-sdk[dir=rtl] .metakyc-stepper-scroll{direction:rtl!important}.metakyc-sdk[dir=rtl] .ml-1{margin-left:0!important;margin-right:.25rem!important}.metakyc-sdk[dir=rtl] .ml-2{margin-left:0!important;margin-right:.5rem!important}.metakyc-sdk[dir=rtl] .ml-3{margin-left:0!important;margin-right:.75rem!important}.metakyc-sdk[dir=rtl] .ml-4{margin-left:0!important;margin-right:1rem!important}.metakyc-sdk[dir=rtl] .mr-1{margin-right:0!important;margin-left:.25rem!important}.metakyc-sdk[dir=rtl] .mr-2{margin-right:0!important;margin-left:.5rem!important}.metakyc-sdk[dir=rtl] .mr-3{margin-right:0!important;margin-left:.75rem!important}.metakyc-sdk[dir=rtl] .mr-4{margin-right:0!important;margin-left:1rem!important}.metakyc-sdk[dir=rtl] .pl-1{padding-left:0!important;padding-right:.25rem!important}.metakyc-sdk[dir=rtl] .pl-2{padding-left:0!important;padding-right:.5rem!important}.metakyc-sdk[dir=rtl] .pl-4{padding-left:0!important;padding-right:1rem!important}.metakyc-sdk[dir=rtl] .pr-1{padding-right:0!important;padding-left:.25rem!important}.metakyc-sdk[dir=rtl] .pr-2{padding-right:0!important;padding-left:.5rem!important}.metakyc-sdk[dir=rtl] .pr-4{padding-right:0!important;padding-left:1rem!important}.metakyc-sdk[dir=rtl] input[type=checkbox]:checked:after{left:auto!important;right:4px!important}.metakyc-sdk[dir=rtl] input,.metakyc-sdk[dir=rtl] textarea,.metakyc-sdk[dir=rtl] select{text-align:right!important}.metakyc-sdk[dir=rtl] input[type=email],.metakyc-sdk[dir=rtl] input[type=tel],.metakyc-sdk[dir=rtl] input[type=url],.metakyc-sdk[dir=rtl] input[type=number]{direction:ltr!important;text-align:left!important}.metakyc-sdk .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.metakyc-sdk .focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.metakyc-sdk .focus\\:ring-offset-0:focus{--tw-ring-offset-width: 0px}.metakyc-sdk .focus\\:ring-offset-1:focus{--tw-ring-offset-width: 1px}.metakyc-sdk .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.metakyc-sdk .disabled\\:opacity-50:disabled{opacity:.5}.metakyc-sdk .disabled\\:opacity-60:disabled{opacity:.6}.metakyc-sdk .dark\\:text-gray-400:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-gray-500:is(.dark *){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media(min-width:768px){.metakyc-sdk .md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}', ui = "metakyc-sdk-styles";
7236
+ const Ri = Gt(null), ia = '.metakyc-sdk .pointer-events-none{pointer-events:none}.metakyc-sdk .visible{visibility:visible}.metakyc-sdk .static{position:static}.metakyc-sdk .fixed{position:fixed}.metakyc-sdk .absolute{position:absolute}.metakyc-sdk .relative{position:relative}.metakyc-sdk .inset-y-0{top:0;bottom:0}.metakyc-sdk .left-0{left:0}.metakyc-sdk .right-0{right:0}.metakyc-sdk .right-3{right:.75rem}.metakyc-sdk .top-1\\/2{top:50%}.metakyc-sdk .mx-6{margin-left:1.5rem;margin-right:1.5rem}.metakyc-sdk .mx-auto{margin-left:auto;margin-right:auto}.metakyc-sdk .my-8{margin-top:2rem;margin-bottom:2rem}.metakyc-sdk .-ml-1{margin-left:-.25rem}.metakyc-sdk .mb-0\\.5{margin-bottom:.125rem}.metakyc-sdk .mb-1{margin-bottom:.25rem}.metakyc-sdk .mb-2{margin-bottom:.5rem}.metakyc-sdk .mb-3{margin-bottom:.75rem}.metakyc-sdk .mb-4{margin-bottom:1rem}.metakyc-sdk .mb-6{margin-bottom:1.5rem}.metakyc-sdk .ml-0\\.5{margin-left:.125rem}.metakyc-sdk .ml-1{margin-left:.25rem}.metakyc-sdk .ml-3{margin-left:.75rem}.metakyc-sdk .mr-2{margin-right:.5rem}.metakyc-sdk .mr-3{margin-right:.75rem}.metakyc-sdk .mt-0\\.5{margin-top:.125rem}.metakyc-sdk .mt-1{margin-top:.25rem}.metakyc-sdk .mt-2{margin-top:.5rem}.metakyc-sdk .mt-3{margin-top:.75rem}.metakyc-sdk .mt-4{margin-top:1rem}.metakyc-sdk .block{display:block}.metakyc-sdk .inline-block{display:inline-block}.metakyc-sdk .inline{display:inline}.metakyc-sdk .flex{display:flex}.metakyc-sdk .inline-flex{display:inline-flex}.metakyc-sdk .grid{display:grid}.metakyc-sdk .hidden{display:none}.metakyc-sdk .h-12{height:3rem}.metakyc-sdk .h-24{height:6rem}.metakyc-sdk .h-4{height:1rem}.metakyc-sdk .h-6{height:1.5rem}.metakyc-sdk .h-8{height:2rem}.metakyc-sdk .h-full{height:100%}.metakyc-sdk .max-h-52{max-height:13rem}.metakyc-sdk .min-h-\\[400px\\]{min-height:400px}.metakyc-sdk .w-12{width:3rem}.metakyc-sdk .w-20{width:5rem}.metakyc-sdk .w-24{width:6rem}.metakyc-sdk .w-4{width:1rem}.metakyc-sdk .w-6{width:1.5rem}.metakyc-sdk .w-8{width:2rem}.metakyc-sdk .w-full{width:100%}.metakyc-sdk .max-w-md{max-width:28rem}.metakyc-sdk .flex-1{flex:1 1 0%}.metakyc-sdk .flex-shrink-0{flex-shrink:0}.metakyc-sdk .-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.metakyc-sdk .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.metakyc-sdk .animate-spin{animation:spin 1s linear infinite}.metakyc-sdk .cursor-not-allowed{cursor:not-allowed}.metakyc-sdk .cursor-pointer{cursor:pointer}.metakyc-sdk .resize{resize:both}.metakyc-sdk .list-inside{list-style-position:inside}.metakyc-sdk .list-disc{list-style-type:disc}.metakyc-sdk .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.metakyc-sdk .flex-col{flex-direction:column}.metakyc-sdk .flex-wrap{flex-wrap:wrap}.metakyc-sdk .items-start{align-items:flex-start}.metakyc-sdk .items-center{align-items:center}.metakyc-sdk .justify-center{justify-content:center}.metakyc-sdk .justify-between{justify-content:space-between}.metakyc-sdk .gap-1{gap:.25rem}.metakyc-sdk .gap-1\\.5{gap:.375rem}.metakyc-sdk .gap-2{gap:.5rem}.metakyc-sdk .gap-4{gap:1rem}.metakyc-sdk :is(.space-x-3>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.metakyc-sdk :is(.space-y-1>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-1\\.5>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-2>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-4>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-6>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-8>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.metakyc-sdk .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.metakyc-sdk .rounded{border-radius:.25rem}.metakyc-sdk .rounded-full{border-radius:9999px}.metakyc-sdk .rounded-lg{border-radius:.5rem}.metakyc-sdk .rounded-xl{border-radius:.75rem}.metakyc-sdk .border{border-width:1px}.metakyc-sdk .border-0{border-width:0px}.metakyc-sdk .border-2{border-width:2px}.metakyc-sdk .border-b{border-bottom-width:1px}.metakyc-sdk .border-t{border-top-width:1px}.metakyc-sdk .border-danger-500{border-color:var(--metakyc-danger, #EF4444)}.metakyc-sdk .p-3{padding:.75rem}.metakyc-sdk .p-4{padding:1rem}.metakyc-sdk .px-2{padding-left:.5rem;padding-right:.5rem}.metakyc-sdk .px-2\\.5{padding-left:.625rem;padding-right:.625rem}.metakyc-sdk .px-3{padding-left:.75rem;padding-right:.75rem}.metakyc-sdk .px-4{padding-left:1rem;padding-right:1rem}.metakyc-sdk .px-6{padding-left:1.5rem;padding-right:1.5rem}.metakyc-sdk .py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.metakyc-sdk .py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.metakyc-sdk .py-12{padding-top:3rem;padding-bottom:3rem}.metakyc-sdk .py-2{padding-top:.5rem;padding-bottom:.5rem}.metakyc-sdk .py-3{padding-top:.75rem;padding-bottom:.75rem}.metakyc-sdk .py-4{padding-top:1rem;padding-bottom:1rem}.metakyc-sdk .py-8{padding-top:2rem;padding-bottom:2rem}.metakyc-sdk .pb-4{padding-bottom:1rem}.metakyc-sdk .pl-10{padding-left:2.5rem}.metakyc-sdk .pl-3{padding-left:.75rem}.metakyc-sdk .pr-10{padding-right:2.5rem}.metakyc-sdk .pr-3{padding-right:.75rem}.metakyc-sdk .pr-6{padding-right:1.5rem}.metakyc-sdk .text-left{text-align:left}.metakyc-sdk .text-center{text-align:center}.metakyc-sdk .text-2xl{font-size:1.5rem;line-height:2rem}.metakyc-sdk .text-3xl{font-size:1.875rem;line-height:2.25rem}.metakyc-sdk .text-5xl{font-size:3rem;line-height:1}.metakyc-sdk .text-base{font-size:1rem;line-height:1.5rem}.metakyc-sdk .text-lg{font-size:1.125rem;line-height:1.75rem}.metakyc-sdk .text-sm{font-size:.875rem;line-height:1.25rem}.metakyc-sdk .text-xl{font-size:1.25rem;line-height:1.75rem}.metakyc-sdk .text-xs{font-size:.75rem;line-height:1rem}.metakyc-sdk .font-bold{font-weight:700}.metakyc-sdk .font-medium{font-weight:500}.metakyc-sdk .font-semibold{font-weight:600}.metakyc-sdk .uppercase{text-transform:uppercase}.metakyc-sdk .lowercase{text-transform:lowercase}.metakyc-sdk .italic{font-style:italic}.metakyc-sdk .tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.metakyc-sdk .leading-6{line-height:1.5rem}.metakyc-sdk .text-danger-500{color:var(--metakyc-danger, #EF4444)}.metakyc-sdk .text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-primary,.metakyc-sdk .text-primary-500{color:var(--metakyc-primary, #3B82F6)}.metakyc-sdk .text-secondary{color:var(--metakyc-secondary, #64748b)}.metakyc-sdk .underline{text-decoration-line:underline}.metakyc-sdk .opacity-25{opacity:.25}.metakyc-sdk .opacity-50{opacity:.5}.metakyc-sdk .opacity-60{opacity:.6}.metakyc-sdk .opacity-75{opacity:.75}.metakyc-sdk .shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.metakyc-sdk .outline{outline-style:solid}.metakyc-sdk .ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.metakyc-sdk .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.metakyc-sdk .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.metakyc-sdk .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .duration-200{transition-duration:.2s}.metakyc-sdk .grid{display:grid!important}.metakyc-sdk .flex{display:flex!important}.metakyc-sdk .inline-flex{display:inline-flex!important}.metakyc-sdk .hidden{display:none!important}.metakyc-sdk .block{display:block!important}.metakyc-sdk .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.metakyc-sdk .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.metakyc-sdk .grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.metakyc-sdk .grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}.metakyc-sdk .col-span-1{grid-column:span 1 / span 1!important}.metakyc-sdk .col-span-2{grid-column:span 2 / span 2!important}.metakyc-sdk .col-span-3{grid-column:span 3 / span 3!important}.metakyc-sdk .col-span-4{grid-column:span 4 / span 4!important}.metakyc-sdk .gap-1{gap:.25rem!important}.metakyc-sdk .gap-2{gap:.5rem!important}.metakyc-sdk .gap-3{gap:.75rem!important}.metakyc-sdk .gap-4{gap:1rem!important}.metakyc-sdk .gap-6{gap:1.5rem!important}.metakyc-sdk .gap-8{gap:2rem!important}.metakyc-sdk .flex-col{flex-direction:column!important}.metakyc-sdk .flex-row{flex-direction:row!important}.metakyc-sdk .flex-wrap{flex-wrap:wrap!important}.metakyc-sdk .flex-1{flex:1 1 0%!important}.metakyc-sdk .flex-shrink-0{flex-shrink:0!important}.metakyc-sdk .items-center{align-items:center!important}.metakyc-sdk .items-start{align-items:flex-start!important}.metakyc-sdk .items-end{align-items:flex-end!important}.metakyc-sdk .justify-between{justify-content:space-between!important}.metakyc-sdk .justify-center{justify-content:center!important}.metakyc-sdk .justify-end{justify-content:flex-end!important}.metakyc-sdk .justify-start{justify-content:flex-start!important}.metakyc-sdk .space-y-1>*+*{margin-top:.25rem!important}.metakyc-sdk .space-y-1\\.5>*+*{margin-top:.375rem!important}.metakyc-sdk .space-y-2>*+*{margin-top:.5rem!important}.metakyc-sdk .space-y-3>*+*{margin-top:.75rem!important}.metakyc-sdk .space-y-4>*+*{margin-top:1rem!important}.metakyc-sdk .space-y-6>*+*{margin-top:1.5rem!important}.metakyc-sdk .w-full{width:100%!important}.metakyc-sdk .relative{position:relative!important}.metakyc-sdk .absolute{position:absolute!important}.metakyc-sdk .overflow-hidden{overflow:hidden!important}.metakyc-sdk .overflow-auto{overflow:auto!important}.metakyc-sdk .overflow-x-auto{overflow-x:auto!important}@media(min-width:768px){.metakyc-sdk .md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.metakyc-sdk .md\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}}.metakyc-sdk .metakyc-form-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:1rem!important}@media(max-width:767px){.metakyc-sdk .metakyc-form-grid{grid-template-columns:1fr!important}.metakyc-sdk .metakyc-form-grid>*{grid-column:span 1 / span 1!important}.metakyc-sdk .metakyc-grid-2{grid-template-columns:1fr!important}}@media(max-width:767px){.metakyc-sdk .metakyc-card-content,.metakyc-sdk .metakyc-card-header,.metakyc-sdk .metakyc-card-footer,.metakyc-sdk .metakyc-progress-wrapper{padding-left:12px!important;padding-right:12px!important}.metakyc-sdk .metakyc-form-grid{gap:.75rem!important}}.metakyc-sdk *,.metakyc-sdk *:before,.metakyc-sdk *:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--metakyc-border, #e5e7eb)}.metakyc-sdk{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4}.metakyc-sdk img,.metakyc-sdk video{max-width:100%;height:auto}.metakyc-sdk h1,.metakyc-sdk h2,.metakyc-sdk h3,.metakyc-sdk h4,.metakyc-sdk h5,.metakyc-sdk h6,.metakyc-sdk p{margin:0}.metakyc-sdk ol,.metakyc-sdk ul{list-style:none;margin:0;padding:0}.metakyc-sdk button,.metakyc-sdk input,.metakyc-sdk optgroup,.metakyc-sdk select,.metakyc-sdk textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}.metakyc-sdk button,.metakyc-sdk [role=button]{cursor:pointer}.metakyc-sdk a{color:inherit;text-decoration:inherit}.metakyc-sdk input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]),.metakyc-sdk select,.metakyc-sdk textarea,.metakyc-sdk .metakyc-searchable-select-trigger,.metakyc-sdk .metakyc-multiselect-trigger{background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important;border-color:var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important}.metakyc-sdk input::-moz-placeholder,.metakyc-sdk textarea::-moz-placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-sdk input::placeholder,.metakyc-sdk textarea::placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-sdk input:not([type=checkbox]):not([type=radio]):focus,.metakyc-sdk select:focus,.metakyc-sdk textarea:focus{outline:none!important;border-color:var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb))!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb)) 20%,transparent)!important}.metakyc-sdk input[type=checkbox],.metakyc-sdk input[type=radio]{appearance:none!important;-webkit-appearance:none!important;-moz-appearance:none!important;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-width:16px!important;max-height:16px!important;flex-shrink:0!important;cursor:pointer!important;background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;border:1.5px solid var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important;position:relative!important;transition:background-color .15s,border-color .15s!important;vertical-align:middle!important;display:inline-block!important;padding:0!important;margin:0!important;color-scheme:light!important}.metakyc-sdk input[type=checkbox]{border-radius:4px!important}.metakyc-sdk input[type=radio]{border-radius:50%!important}.metakyc-sdk input[type=checkbox]:checked,.metakyc-sdk input[type=radio]:checked{background-color:var(--metakyc-primary, #2563eb)!important;border-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk input[type=checkbox]:checked:after{content:""!important;display:block!important;position:absolute!important;left:4px!important;top:1px!important;width:5px!important;height:9px!important;border:2px solid #ffffff!important;border-top:none!important;border-left:none!important;transform:rotate(45deg)!important}.metakyc-sdk input[type=radio]:checked:after{content:""!important;display:block!important;position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:6px!important;height:6px!important;border-radius:50%!important;background:#fff!important}.metakyc-sdk input[type=checkbox]:focus,.metakyc-sdk input[type=radio]:focus{outline:none!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--metakyc-primary, #2563eb) 30%,transparent)!important}.metakyc-searchable-select-dropdown,.metakyc-multiselect-dropdown{background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;border-color:var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important}.metakyc-searchable-select-dropdown input,.metakyc-multiselect-dropdown input{background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important;border-color:var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important}.metakyc-searchable-select-dropdown input::-moz-placeholder,.metakyc-multiselect-dropdown input::-moz-placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-searchable-select-dropdown input::placeholder,.metakyc-multiselect-dropdown input::placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-searchable-select-dropdown input:focus,.metakyc-multiselect-dropdown input:focus{outline:none!important;background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important;border-color:var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb))!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb)) 20%,transparent)!important}.metakyc-searchable-select-dropdown li:hover,.metakyc-multiselect-dropdown li:hover{background-color:var(--metakyc-surface, var(--metakyc-background, #f9fafb))!important}.metakyc-sdk .metakyc-help-btn{color:var(--metakyc-primary, #2563eb)!important;border-color:var(--metakyc-primary, #2563eb)!important;background:transparent!important;position:relative!important;z-index:2!important}.metakyc-sdk .metakyc-overview-step-item,.metakyc-sdk .metakyc-overview-step-item *,.metakyc-sdk .metakyc-step-content,.metakyc-sdk .metakyc-step-content *,.metakyc-sdk .metakyc-step-title,.metakyc-sdk .metakyc-step-title *,.metakyc-sdk .metakyc-step-icon,.metakyc-sdk .metakyc-step-icon *,.metakyc-sdk .metakyc-step-description,.metakyc-sdk .metakyc-step-description *{border-top-width:0!important;border-bottom-width:0!important;border-left-width:0!important;border-right-width:0!important;border-top-style:none!important;border-bottom-style:none!important;border-left-style:none!important;border-right-style:none!important;border-top-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important;border-right-color:transparent!important;border:0!important;box-shadow:none!important;outline:none!important;outline-width:0!important;outline-style:none!important;text-decoration:none!important;text-decoration-line:none!important}.metakyc-sdk .metakyc-overview-step-item:before,.metakyc-sdk .metakyc-overview-step-item:after,.metakyc-sdk .metakyc-overview-step-item *:before,.metakyc-sdk .metakyc-overview-step-item *:after,.metakyc-sdk .metakyc-step-content:before,.metakyc-sdk .metakyc-step-content:after,.metakyc-sdk .metakyc-step-content *:before,.metakyc-sdk .metakyc-step-content *:after,.metakyc-sdk .metakyc-step-title:before,.metakyc-sdk .metakyc-step-title:after,.metakyc-sdk .metakyc-step-description:before,.metakyc-sdk .metakyc-step-description:after{content:none!important;display:none!important;visibility:hidden!important;border:none!important;box-shadow:none!important;outline:none!important;background:none!important;height:0!important;width:0!important}.metakyc-sdk .metakyc-overview-step-item{border-width:0!important;border-style:none!important;border:0!important;box-shadow:none!important;outline:none!important}.metakyc-sdk .metakyc-step-content{border-width:0!important;border-style:none!important;border:0!important;padding-top:0!important;margin-top:0!important;box-shadow:none!important;outline:none!important}.metakyc-sdk .metakyc-step-title{border-width:0!important;border-style:none!important;border:0!important;padding-top:0!important;margin-top:0!important;box-shadow:none!important;outline:none!important;text-decoration:none!important}.metakyc-sdk hr,.metakyc-sdk .metakyc-overview-step-item hr,.metakyc-sdk .metakyc-overview-step-item * hr,.metakyc-sdk .metakyc-step-content hr,.metakyc-sdk .metakyc-step-content * hr{display:block!important;height:0!important;border:0!important;border-top:1px solid var(--metakyc-primary, #2563eb)!important;opacity:.25!important;margin:1rem 0!important;overflow:visible!important}.metakyc-sdk{background-color:var(--metakyc-background, #ffffff)!important;color:var(--metakyc-text-primary, #111827)!important;font-family:var(--metakyc-font-family, inherit)!important;padding:1.5rem!important;border-radius:.75rem!important}.metakyc-sdk h1,.metakyc-sdk h2,.metakyc-sdk h3,.metakyc-sdk h4,.metakyc-sdk h5,.metakyc-sdk h6{color:var(--metakyc-text-primary, #111827);letter-spacing:normal}.metakyc-sdk .text-gray-900{color:var(--metakyc-text-primary, #111827)!important}.metakyc-sdk .text-gray-800{color:var(--metakyc-text-primary, #1f2937)!important}.metakyc-sdk .text-gray-700{color:var(--metakyc-text-secondary, #374151)!important}.metakyc-sdk .text-gray-600{color:var(--metakyc-text-secondary, #6b7280)!important}.metakyc-sdk .text-gray-500{color:var(--metakyc-text-muted, #6b7280)!important}.metakyc-sdk .text-gray-400{color:var(--metakyc-text-muted, #9ca3af)!important}.metakyc-sdk .text-gray-300{color:var(--metakyc-text-muted, #d1d5db)!important}.metakyc-sdk .text-white{color:#fff!important}.metakyc-sdk .bg-white{background-color:var(--metakyc-background, #ffffff)!important}.metakyc-sdk .bg-gray-50{background-color:var(--metakyc-surface, #f9fafb)!important}.metakyc-sdk .bg-gray-100{background-color:var(--metakyc-surface, #f3f4f6)!important}.metakyc-sdk .bg-gray-200{background-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .bg-gray-800{background-color:var(--metakyc-surface, #1f2937)!important}.metakyc-sdk .border-gray-100,.metakyc-sdk .border-gray-200,.metakyc-sdk .border-gray-300{border-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .border-t{border-top-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .border-b{border-bottom-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .divide-gray-200>*{border-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .bg-primary-500,.metakyc-sdk .bg-primary-600{background-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .bg-primary-50,.metakyc-sdk .bg-primary-100{background-color:var(--metakyc-primary-light, #dbeafe)!important}.metakyc-sdk .text-primary-500,.metakyc-sdk .text-primary-600,.metakyc-sdk .text-primary-800{color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .text-primary-900{color:var(--metakyc-primary-dark, #1e40af)!important}.metakyc-sdk .border-primary-500,.metakyc-sdk .border-primary-600{border-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .hover\\:bg-primary-50:hover{background-color:var(--metakyc-primary-light, #dbeafe)!important}.metakyc-sdk .hover\\:bg-primary-600:hover{background-color:var(--metakyc-primary-hover, #1d4ed8)!important}.metakyc-sdk .bg-blue-600{background-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .bg-blue-100{background-color:var(--metakyc-primary-light, #dbeafe)!important}.metakyc-sdk .text-blue-600,.metakyc-sdk .text-blue-400{color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .hover\\:bg-blue-700:hover{background-color:var(--metakyc-primary-hover, #1d4ed8)!important}.metakyc-sdk .metakyc-overview-steps h3:before,.metakyc-sdk .metakyc-overview-steps h3:after{content:none!important;display:none!important}.metakyc-sdk .metakyc-overview-steps *:before,.metakyc-sdk .metakyc-overview-steps *:after{content:none!important;display:none!important}.metakyc-sdk .metakyc-stepper-scroll::-webkit-scrollbar{display:none!important;height:0!important;width:0!important}.metakyc-sdk .metakyc-file-dropzone:hover{border-color:var(--metakyc-primary, #2563eb)!important;background-color:color-mix(in srgb,var(--metakyc-primary, #2563eb) 3%,var(--metakyc-background, #ffffff))!important}.metakyc-sdk .metakyc-file-item:hover{background-color:color-mix(in srgb,var(--metakyc-surface, #f9fafb) 80%,var(--metakyc-border, #e5e7eb))!important}.metakyc-sdk .metakyc-file-upload label{color:var(--metakyc-text-primary, #111827)!important}.metakyc-sdk .metakyc-file-upload p{margin:0!important;line-height:1.4!important}.metakyc-sdk .metakyc-file-item button{background:transparent!important;border:none!important;box-shadow:none!important;outline:none!important}.metakyc-sdk .metakyc-file-dropzone{box-shadow:none!important;outline:none!important}.metakyc-sdk[dir=rtl]{direction:rtl!important;text-align:right!important}.metakyc-sdk[dir=rtl] .text-center{text-align:center!important}.metakyc-sdk[dir=rtl] .text-left{text-align:right!important}.metakyc-sdk[dir=rtl] .text-right{text-align:left!important}.metakyc-sdk[dir=rtl] .metakyc-stepper-scroll{direction:rtl!important}.metakyc-sdk[dir=rtl] .ml-1{margin-left:0!important;margin-right:.25rem!important}.metakyc-sdk[dir=rtl] .ml-2{margin-left:0!important;margin-right:.5rem!important}.metakyc-sdk[dir=rtl] .ml-3{margin-left:0!important;margin-right:.75rem!important}.metakyc-sdk[dir=rtl] .ml-4{margin-left:0!important;margin-right:1rem!important}.metakyc-sdk[dir=rtl] .mr-1{margin-right:0!important;margin-left:.25rem!important}.metakyc-sdk[dir=rtl] .mr-2{margin-right:0!important;margin-left:.5rem!important}.metakyc-sdk[dir=rtl] .mr-3{margin-right:0!important;margin-left:.75rem!important}.metakyc-sdk[dir=rtl] .mr-4{margin-right:0!important;margin-left:1rem!important}.metakyc-sdk[dir=rtl] .pl-1{padding-left:0!important;padding-right:.25rem!important}.metakyc-sdk[dir=rtl] .pl-2{padding-left:0!important;padding-right:.5rem!important}.metakyc-sdk[dir=rtl] .pl-4{padding-left:0!important;padding-right:1rem!important}.metakyc-sdk[dir=rtl] .pr-1{padding-right:0!important;padding-left:.25rem!important}.metakyc-sdk[dir=rtl] .pr-2{padding-right:0!important;padding-left:.5rem!important}.metakyc-sdk[dir=rtl] .pr-4{padding-right:0!important;padding-left:1rem!important}.metakyc-sdk[dir=rtl] input[type=checkbox]:checked:after{left:auto!important;right:4px!important}.metakyc-sdk[dir=rtl] input,.metakyc-sdk[dir=rtl] textarea,.metakyc-sdk[dir=rtl] select{text-align:right!important}.metakyc-sdk[dir=rtl] input[type=email],.metakyc-sdk[dir=rtl] input[type=tel],.metakyc-sdk[dir=rtl] input[type=url],.metakyc-sdk[dir=rtl] input[type=number]{direction:ltr!important;text-align:left!important}.metakyc-sdk .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.metakyc-sdk .focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.metakyc-sdk .focus\\:ring-offset-0:focus{--tw-ring-offset-width: 0px}.metakyc-sdk .focus\\:ring-offset-1:focus{--tw-ring-offset-width: 1px}.metakyc-sdk .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.metakyc-sdk .disabled\\:opacity-50:disabled{opacity:.5}.metakyc-sdk .disabled\\:opacity-60:disabled{opacity:.6}.metakyc-sdk .dark\\:text-gray-400:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-gray-500:is(.dark *){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media(min-width:768px){.metakyc-sdk .md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}', ui = "metakyc-sdk-styles";
7237
7237
  let Vt = !1;
7238
7238
  function ra() {
7239
7239
  if (Vt || typeof document > "u") return;
@@ -7246,9 +7246,9 @@ function ra() {
7246
7246
  }
7247
7247
  const mi = "metakyc-theme-cache", zn = ({ config: e, children: t }) => {
7248
7248
  ra();
7249
- const [a, r] = T(null), [n, o] = T(e.locale || "en"), d = ye.useRef(!1), l = ye.useRef(!1), p = Ue(() => {
7249
+ const [a, r] = T(null), [n, o] = T(e.locale || "en"), l = ye.useRef(!1), d = ye.useRef(!1), p = Ue(() => {
7250
7250
  Y.setLevel(e.debug ?? e.logLevel ?? "none"), Y.info(`SDK v${Yt} initializing — baseUrl=${e.baseUrl}`);
7251
- const w = new sr(e), C = new lr(w), S = new cr(w), K = new dr(w), A = new ur(w), W = new mr(w), V = new pr(w), F = new gr(w), M = new fr(w), $ = new yr(w), _ = new hr(w), oe = new Cr(w), v = new Nr(w), z = new Mr();
7251
+ const w = new sr(e), C = new lr(w), S = new cr(w), K = new dr(w), R = new ur(w), W = new mr(w), V = new pr(w), F = new gr(w), M = new fr(w), $ = new yr(w), _ = new hr(w), ne = new Cr(w), v = new Nr(w), z = new Mr();
7252
7252
  if (typeof document < "u")
7253
7253
  if (e.theme)
7254
7254
  z.applyTheme(e.theme);
@@ -7264,14 +7264,14 @@ const mi = "metakyc-theme-cache", zn = ({ config: e, children: t }) => {
7264
7264
  applicantService: C,
7265
7265
  questionnaireService: S,
7266
7266
  uploadDocumentService: K,
7267
- appropriatenessTestService: A,
7267
+ appropriatenessTestService: R,
7268
7268
  overviewService: W,
7269
7269
  riskScoringService: V,
7270
7270
  identityService: F,
7271
7271
  baseInformationService: M,
7272
7272
  investorCategorizationService: $,
7273
7273
  additionalDataService: _,
7274
- themeService: oe,
7274
+ themeService: ne,
7275
7275
  translationService: v,
7276
7276
  themeManager: z
7277
7277
  };
@@ -7295,28 +7295,28 @@ const mi = "metakyc-theme-cache", zn = ({ config: e, children: t }) => {
7295
7295
  setLocale: f
7296
7296
  }), [e, p, a, n, f]);
7297
7297
  ge(() => ((async () => {
7298
- if (d.current || l.current) {
7298
+ if (l.current || d.current) {
7299
7299
  Y.debug("Theme already loading or loaded, skipping");
7300
7300
  return;
7301
7301
  }
7302
- d.current = !0;
7302
+ l.current = !0;
7303
7303
  try {
7304
7304
  if (e.theme) {
7305
- Y.debug("Applying static theme from config"), p.themeManager.applyTheme(e.theme), r(p.themeManager.getCurrentTheme()), l.current = !0;
7305
+ Y.debug("Applying static theme from config"), p.themeManager.applyTheme(e.theme), r(p.themeManager.getCurrentTheme()), d.current = !0;
7306
7306
  return;
7307
7307
  }
7308
7308
  Y.debug("Fetching theme from backend...");
7309
7309
  const C = await p.themeService.getThemeConfiguration(e.configVersion);
7310
- p.themeManager.applyTheme(C), r(p.themeManager.getCurrentTheme()), l.current = !0;
7310
+ p.themeManager.applyTheme(C), r(p.themeManager.getCurrentTheme()), d.current = !0;
7311
7311
  try {
7312
7312
  localStorage.setItem(mi, JSON.stringify(C));
7313
7313
  } catch {
7314
7314
  }
7315
7315
  Y.info("Theme loaded and applied");
7316
7316
  } catch {
7317
- Y.warn("Failed to load theme, using default"), r(p.themeManager.getCurrentTheme()), l.current = !0;
7317
+ Y.warn("Failed to load theme, using default"), r(p.themeManager.getCurrentTheme()), d.current = !0;
7318
7318
  } finally {
7319
- d.current = !1;
7319
+ l.current = !1;
7320
7320
  }
7321
7321
  })(), () => {
7322
7322
  p.themeManager.cleanup();
@@ -7325,7 +7325,7 @@ const mi = "metakyc-theme-cache", zn = ({ config: e, children: t }) => {
7325
7325
  (w) => p.translationService.getTranslations(w),
7326
7326
  [p.translationService]
7327
7327
  );
7328
- return /* @__PURE__ */ i(Ai.Provider, { value: g, children: /* @__PURE__ */ s(
7328
+ return /* @__PURE__ */ i(Ri.Provider, { value: g, children: /* @__PURE__ */ s(
7329
7329
  ta,
7330
7330
  {
7331
7331
  locale: n,
@@ -7357,7 +7357,7 @@ const mi = "metakyc-theme-cache", zn = ({ config: e, children: t }) => {
7357
7357
  ) });
7358
7358
  };
7359
7359
  function Se() {
7360
- const e = Qt(Ai);
7360
+ const e = Qt(Ri);
7361
7361
  if (!e)
7362
7362
  throw new Error("useMetaKYC must be used within a MetaKYCProvider");
7363
7363
  return e;
@@ -7435,7 +7435,7 @@ function Fn() {
7435
7435
  na(), sa();
7436
7436
  }
7437
7437
  function la(e) {
7438
- const { createOrchestrator: t, config: a } = Se(), [r, n] = T(null), [o, d] = T(!1), [l, p] = T(null), f = me(null), g = e || a.applicantId || void 0;
7438
+ const { createOrchestrator: t, config: a } = Se(), [r, n] = T(null), [o, l] = T(!1), [d, p] = T(null), f = me(null), g = e || a.applicantId || void 0;
7439
7439
  ge(() => {
7440
7440
  f.current || (f.current = t());
7441
7441
  }, [t]), ge(() => {
@@ -7455,14 +7455,14 @@ function la(e) {
7455
7455
  Y.debug("Workflow load already in progress, skipping");
7456
7456
  return;
7457
7457
  }
7458
- m.current = !0, d(!0), p(null);
7458
+ m.current = !0, l(!0), p(null);
7459
7459
  try {
7460
7460
  const M = await f.current.initialize(g);
7461
7461
  n(M), w.current = g;
7462
7462
  } catch (M) {
7463
7463
  p(M);
7464
7464
  } finally {
7465
- d(!1), m.current = !1;
7465
+ l(!1), m.current = !1;
7466
7466
  }
7467
7467
  }
7468
7468
  }, [g]);
@@ -7475,43 +7475,43 @@ function la(e) {
7475
7475
  Y.debug("Workflow refresh already in progress, skipping");
7476
7476
  return;
7477
7477
  }
7478
- m.current = !0, d(!0), p(null);
7478
+ m.current = !0, l(!0), p(null);
7479
7479
  try {
7480
7480
  const M = await f.current.refreshProgress();
7481
7481
  n(M);
7482
7482
  } catch (M) {
7483
7483
  p(M);
7484
7484
  } finally {
7485
- d(!1), m.current = !1;
7485
+ l(!1), m.current = !1;
7486
7486
  }
7487
7487
  }
7488
7488
  }, []), K = J(async () => {
7489
7489
  if (f.current) {
7490
- d(!0), p(null);
7490
+ l(!0), p(null);
7491
7491
  try {
7492
7492
  const M = await f.current.moveToNextStep();
7493
7493
  n(M);
7494
7494
  } catch (M) {
7495
7495
  p(M);
7496
7496
  } finally {
7497
- d(!1);
7497
+ l(!1);
7498
7498
  }
7499
7499
  }
7500
- }, []), A = J(async () => {
7500
+ }, []), R = J(async () => {
7501
7501
  if (f.current) {
7502
- d(!0), p(null);
7502
+ l(!0), p(null);
7503
7503
  try {
7504
7504
  const M = await f.current.moveToPreviousStep();
7505
7505
  n(M);
7506
7506
  } catch (M) {
7507
7507
  p(M);
7508
7508
  } finally {
7509
- d(!1);
7509
+ l(!1);
7510
7510
  }
7511
7511
  }
7512
7512
  }, []), W = J(async (M) => {
7513
7513
  if (f.current) {
7514
- d(!0), p(null);
7514
+ l(!0), p(null);
7515
7515
  try {
7516
7516
  await f.current.submitCurrentStep(M);
7517
7517
  const $ = await f.current.refreshProgress();
@@ -7519,7 +7519,7 @@ function la(e) {
7519
7519
  } catch ($) {
7520
7520
  throw p($), $;
7521
7521
  } finally {
7522
- d(!1);
7522
+ l(!1);
7523
7523
  }
7524
7524
  }
7525
7525
  }, []), V = ei.useMemo(() => r != null && r.stepInfoList ? [...r.stepInfoList].sort((M, $) => M.order - $.order) : [], [r == null ? void 0 : r.stepInfoList]), F = ei.useMemo(() => r ? r.nextWorkflowKey && r.nextWorkflowKey !== r.workFlowKey : !1, [r]);
@@ -7534,27 +7534,27 @@ function la(e) {
7534
7534
  nextWorkflowKey: r == null ? void 0 : r.nextWorkflowKey,
7535
7535
  hasWorkflowChanged: F,
7536
7536
  isLoading: o,
7537
- error: l,
7537
+ error: d,
7538
7538
  isComplete: (r == null ? void 0 : r.status) === qe.Finished,
7539
7539
  isOnHold: (r == null ? void 0 : r.status) === qe.OnHold,
7540
7540
  refreshProgress: S,
7541
7541
  moveToNext: K,
7542
- moveBack: A,
7542
+ moveBack: R,
7543
7543
  submitCurrentStep: W,
7544
7544
  orchestrator: f.current
7545
7545
  };
7546
7546
  }
7547
7547
  function ca(e) {
7548
7548
  var $;
7549
- const { applicantService: t, config: a } = Se(), [r, n] = T(null), [o, d] = T(!0), [l, p] = T(null), [f, g] = T(), [m, w] = T(), C = me(!1), S = J(async () => {
7549
+ const { applicantService: t, config: a } = Se(), [r, n] = T(null), [o, l] = T(!0), [d, p] = T(null), [f, g] = T(), [m, w] = T(), C = me(!1), S = J(async () => {
7550
7550
  try {
7551
- d(!0), p(null);
7551
+ l(!0), p(null);
7552
7552
  const _ = await t.getSdkState();
7553
7553
  n(_), C.current = !0, Y.info(`SDK state resolved → phase=${_.phase}, applicantId=${_.applicantId ?? "none"}`);
7554
7554
  } catch (_) {
7555
7555
  p(_ instanceof Error ? _ : new Error(String(_)));
7556
7556
  } finally {
7557
- d(!1);
7557
+ l(!1);
7558
7558
  }
7559
7559
  }, [t]);
7560
7560
  ge(() => {
@@ -7562,23 +7562,23 @@ function ca(e) {
7562
7562
  }, [S]);
7563
7563
  const K = J((_) => {
7564
7564
  Y.info(`Transitioning to workflow → applicantId=${_}`), g(_), w("workflow");
7565
- }, []), A = J((_) => {
7565
+ }, []), R = J((_) => {
7566
7566
  Y.info(`Switching applicant → newApplicantId=${_}`), g(_), w("workflow");
7567
7567
  }, []), W = m || (r == null ? void 0 : r.phase) || "loading", V = f || (r == null ? void 0 : r.applicantId), F = e ?? (r == null ? void 0 : r.isCompany) ?? !1, M = (r == null ? void 0 : r.workflowKey) || (($ = a.applicantForm) == null ? void 0 : $.workflowKey);
7568
7568
  return {
7569
- phase: l ? "error" : o ? "loading" : W,
7569
+ phase: d ? "error" : o ? "loading" : W,
7570
7570
  applicantId: V,
7571
7571
  isCompany: F,
7572
7572
  workflowKey: M,
7573
- error: l || void 0,
7573
+ error: d || void 0,
7574
7574
  isLoading: o,
7575
7575
  transitionToWorkflow: K,
7576
- switchApplicant: A,
7576
+ switchApplicant: R,
7577
7577
  refresh: S
7578
7578
  };
7579
7579
  }
7580
7580
  function da(e) {
7581
- const { questionnaireService: t, applicantService: a } = Se(), [r, n] = T(null), [o, d] = T({}), [l, p] = T(!1), [f, g] = T(!1), [m, w] = T(null), C = me(!1), S = me(null), K = J(async () => {
7581
+ const { questionnaireService: t, applicantService: a } = Se(), [r, n] = T(null), [o, l] = T({}), [d, p] = T(!1), [f, g] = T(!1), [m, w] = T(null), C = me(!1), S = me(null), K = J(async () => {
7582
7582
  var W, V;
7583
7583
  if (e) {
7584
7584
  if (C.current) {
@@ -7595,12 +7595,12 @@ function da(e) {
7595
7595
  const $ = /* @__PURE__ */ new Map();
7596
7596
  for (const v of M.questionnaireResults)
7597
7597
  v.question && ((V = v.answers) != null && V.length) && $.set(v.question.trim().toLowerCase(), v.answers);
7598
- const _ = {}, oe = F.questionGroups.flatMap((v) => v.questions ?? []);
7599
- for (const v of oe) {
7598
+ const _ = {}, ne = F.questionGroups.flatMap((v) => v.questions ?? []);
7599
+ for (const v of ne) {
7600
7600
  const z = v.text.trim().toLowerCase();
7601
7601
  $.has(z) && (_[v.id] = $.get(z));
7602
7602
  }
7603
- d(_);
7603
+ l(_);
7604
7604
  }
7605
7605
  S.current = e;
7606
7606
  } catch (F) {
@@ -7613,7 +7613,7 @@ function da(e) {
7613
7613
  ge(() => {
7614
7614
  e && S.current !== e && K();
7615
7615
  }, [e]);
7616
- const A = J(
7616
+ const R = J(
7617
7617
  async (W) => {
7618
7618
  g(!0), w(null);
7619
7619
  try {
@@ -7629,15 +7629,15 @@ function da(e) {
7629
7629
  return {
7630
7630
  questionnaire: r,
7631
7631
  initialAnswers: o,
7632
- isLoading: l,
7632
+ isLoading: d,
7633
7633
  isSubmitting: f,
7634
7634
  error: m,
7635
7635
  load: K,
7636
- submit: A
7636
+ submit: R
7637
7637
  };
7638
7638
  }
7639
7639
  function ua(e) {
7640
- const { uploadDocumentService: t } = Se(), [a, r] = T(null), [n, o] = T(!1), [d, l] = T(!1), [p, f] = T(0), [g, m] = T(null), w = me(!1), C = me(null), S = J(async () => {
7640
+ const { uploadDocumentService: t } = Se(), [a, r] = T(null), [n, o] = T(!1), [l, d] = T(!1), [p, f] = T(0), [g, m] = T(null), w = me(!1), C = me(null), S = J(async () => {
7641
7641
  if (e) {
7642
7642
  if (w.current) {
7643
7643
  Y.debug("UploadDocument load already in progress, skipping");
@@ -7645,10 +7645,10 @@ function ua(e) {
7645
7645
  }
7646
7646
  w.current = !0, o(!0), m(null);
7647
7647
  try {
7648
- const A = await t.getUploadDocument(e);
7649
- r(A), C.current = e;
7650
- } catch (A) {
7651
- m(A);
7648
+ const R = await t.getUploadDocument(e);
7649
+ r(R), C.current = e;
7650
+ } catch (R) {
7651
+ m(R);
7652
7652
  } finally {
7653
7653
  o(!1), w.current = !1;
7654
7654
  }
@@ -7658,14 +7658,14 @@ function ua(e) {
7658
7658
  e && C.current !== e && S();
7659
7659
  }, [e]);
7660
7660
  const K = J(
7661
- async (A) => {
7662
- l(!0), f(0), m(null);
7661
+ async (R) => {
7662
+ d(!0), f(0), m(null);
7663
7663
  try {
7664
- await t.fillUploadDocument(A), f(100);
7664
+ await t.fillUploadDocument(R), f(100);
7665
7665
  } catch (W) {
7666
7666
  throw m(W), W;
7667
7667
  } finally {
7668
- l(!1);
7668
+ d(!1);
7669
7669
  }
7670
7670
  },
7671
7671
  [t]
@@ -7673,7 +7673,7 @@ function ua(e) {
7673
7673
  return {
7674
7674
  uploadDocument: a,
7675
7675
  isLoading: n,
7676
- isSubmitting: d,
7676
+ isSubmitting: l,
7677
7677
  uploadProgress: p,
7678
7678
  error: g,
7679
7679
  load: S,
@@ -7681,7 +7681,7 @@ function ua(e) {
7681
7681
  };
7682
7682
  }
7683
7683
  function On(e) {
7684
- const { appropriatenessTestService: t } = Se(), [a, r] = T(null), [n, o] = T(!1), [d, l] = T(!1), [p, f] = T(null), [g, m] = T(null), w = me(!1), C = me(null), S = J(async () => {
7684
+ const { appropriatenessTestService: t } = Se(), [a, r] = T(null), [n, o] = T(!1), [l, d] = T(!1), [p, f] = T(null), [g, m] = T(null), w = me(!1), C = me(null), S = J(async () => {
7685
7685
  if (e) {
7686
7686
  if (w.current) {
7687
7687
  Y.debug("AppropriatenessTest load already in progress, skipping");
@@ -7689,10 +7689,10 @@ function On(e) {
7689
7689
  }
7690
7690
  w.current = !0, o(!0), f(null);
7691
7691
  try {
7692
- const A = await t.getAppropriatenessTest(e);
7693
- r(A), C.current = e;
7694
- } catch (A) {
7695
- f(A);
7692
+ const R = await t.getAppropriatenessTest(e);
7693
+ r(R), C.current = e;
7694
+ } catch (R) {
7695
+ f(R);
7696
7696
  } finally {
7697
7697
  o(!1), w.current = !1;
7698
7698
  }
@@ -7702,15 +7702,15 @@ function On(e) {
7702
7702
  e && C.current !== e && S();
7703
7703
  }, [e]);
7704
7704
  const K = J(
7705
- async (A) => {
7706
- l(!0), f(null);
7705
+ async (R) => {
7706
+ d(!0), f(null);
7707
7707
  try {
7708
- const W = await t.fillAppropriatenessTest(A);
7708
+ const W = await t.fillAppropriatenessTest(R);
7709
7709
  return m(W), W;
7710
7710
  } catch (W) {
7711
7711
  throw f(W), W;
7712
7712
  } finally {
7713
- l(!1);
7713
+ d(!1);
7714
7714
  }
7715
7715
  },
7716
7716
  [t]
@@ -7719,14 +7719,14 @@ function On(e) {
7719
7719
  test: a,
7720
7720
  result: g,
7721
7721
  isLoading: n,
7722
- isSubmitting: d,
7722
+ isSubmitting: l,
7723
7723
  error: p,
7724
7724
  load: S,
7725
7725
  submit: K
7726
7726
  };
7727
7727
  }
7728
7728
  function ma(e) {
7729
- const { overviewService: t } = Se(), [a, r] = T(null), [n, o] = T(!1), [d, l] = T(!1), [p, f] = T(null), g = me(!1), m = me(null), w = J(async () => {
7729
+ const { overviewService: t } = Se(), [a, r] = T(null), [n, o] = T(!1), [l, d] = T(!1), [p, f] = T(null), g = me(!1), m = me(null), w = J(async () => {
7730
7730
  if (e) {
7731
7731
  if (g.current) {
7732
7732
  Y.debug("Overview load already in progress, skipping");
@@ -7748,20 +7748,20 @@ function ma(e) {
7748
7748
  }, [e]);
7749
7749
  const C = J(async () => {
7750
7750
  if (e) {
7751
- l(!0), f(null);
7751
+ d(!0), f(null);
7752
7752
  try {
7753
7753
  await t.passOverview(e);
7754
7754
  } catch (S) {
7755
7755
  throw f(S), S;
7756
7756
  } finally {
7757
- l(!1);
7757
+ d(!1);
7758
7758
  }
7759
7759
  }
7760
7760
  }, [e, t]);
7761
7761
  return {
7762
7762
  overview: a,
7763
7763
  isLoading: n,
7764
- isSubmitting: d,
7764
+ isSubmitting: l,
7765
7765
  error: p,
7766
7766
  load: w,
7767
7767
  passOverview: C
@@ -7770,14 +7770,14 @@ function ma(e) {
7770
7770
  function pa(e) {
7771
7771
  const { identityService: t } = Se(), [a, r] = T(
7772
7772
  null
7773
- ), [n, o] = T(!1), [d, l] = T(null), p = me(!1), f = J(
7773
+ ), [n, o] = T(!1), [l, d] = T(null), p = me(!1), f = J(
7774
7774
  async (w, C) => {
7775
7775
  if (e) {
7776
7776
  if (p.current) {
7777
7777
  Y.debug("Identity request already in progress, skipping");
7778
7778
  return;
7779
7779
  }
7780
- p.current = !0, o(!0), l(null);
7780
+ p.current = !0, o(!0), d(null);
7781
7781
  try {
7782
7782
  const S = {
7783
7783
  applicantId: e,
@@ -7789,7 +7789,7 @@ function pa(e) {
7789
7789
  const K = await t.identityRequest(S);
7790
7790
  return Y.debug("Identity request result:", K), r(K), K;
7791
7791
  } catch (S) {
7792
- throw l(S), S;
7792
+ throw d(S), S;
7793
7793
  } finally {
7794
7794
  o(!1), p.current = !1;
7795
7795
  }
@@ -7799,7 +7799,7 @@ function pa(e) {
7799
7799
  ), g = J(
7800
7800
  async (w, C) => {
7801
7801
  if (e) {
7802
- o(!0), l(null);
7802
+ o(!0), d(null);
7803
7803
  try {
7804
7804
  const S = {
7805
7805
  applicantId: e,
@@ -7809,7 +7809,7 @@ function pa(e) {
7809
7809
  }, K = await t.identityCompanyRequest(S);
7810
7810
  return r(K), K;
7811
7811
  } catch (S) {
7812
- throw l(S), S;
7812
+ throw d(S), S;
7813
7813
  } finally {
7814
7814
  o(!1);
7815
7815
  }
@@ -7822,7 +7822,7 @@ function pa(e) {
7822
7822
  Y.debug("Identity restart already in progress, skipping");
7823
7823
  return;
7824
7824
  }
7825
- p.current = !0, o(!0), l(null);
7825
+ p.current = !0, o(!0), d(null);
7826
7826
  try {
7827
7827
  const w = {
7828
7828
  applicantId: e,
@@ -7834,7 +7834,7 @@ function pa(e) {
7834
7834
  const C = await t.identityRequest(w);
7835
7835
  return Y.debug("Restart identity result:", C), r(C), C;
7836
7836
  } catch (w) {
7837
- throw l(w), w;
7837
+ throw d(w), w;
7838
7838
  } finally {
7839
7839
  o(!1), p.current = !1;
7840
7840
  }
@@ -7845,14 +7845,14 @@ function pa(e) {
7845
7845
  provider: (a == null ? void 0 : a.provider) || null,
7846
7846
  token: (a == null ? void 0 : a.publicProviderTokenObject) || null,
7847
7847
  isLoading: n,
7848
- error: d,
7848
+ error: l,
7849
7849
  requestIdentity: f,
7850
7850
  requestCompanyIdentity: g,
7851
7851
  restartIdentity: m
7852
7852
  };
7853
7853
  }
7854
7854
  function ga(e) {
7855
- const { riskScoringService: t, applicantService: a } = Se(), [r, n] = T(null), [o, d] = T({}), [l, p] = T(!1), [f, g] = T(!1), [m, w] = T(null), [C, S] = T(null), K = me(!1), A = me(null), W = J(async () => {
7855
+ const { riskScoringService: t, applicantService: a } = Se(), [r, n] = T(null), [o, l] = T({}), [d, p] = T(!1), [f, g] = T(!1), [m, w] = T(null), [C, S] = T(null), K = me(!1), R = me(null), W = J(async () => {
7856
7856
  var F;
7857
7857
  if (e) {
7858
7858
  if (K.current) {
@@ -7866,17 +7866,17 @@ function ga(e) {
7866
7866
  a.getApplicantData(e).catch(() => null)
7867
7867
  ]);
7868
7868
  if (n(M), (F = $ == null ? void 0 : $.riskScoringResults) != null && F.length) {
7869
- const _ = $.riskScoringResults[0], oe = {};
7869
+ const _ = $.riskScoringResults[0], ne = {};
7870
7870
  for (const v of _.riskCriteriaResults ?? [])
7871
7871
  if (v.riskCriteriaId != null && v.answer != null && v.answer !== "") {
7872
7872
  const z = [...new Set(
7873
7873
  v.answer.split(",").map((j) => j.trim()).filter((j) => j !== "")
7874
7874
  )];
7875
- z.length > 0 && (oe[v.riskCriteriaId] = z);
7875
+ z.length > 0 && (ne[v.riskCriteriaId] = z);
7876
7876
  }
7877
- d(oe);
7877
+ l(ne);
7878
7878
  }
7879
- A.current = e;
7879
+ R.current = e;
7880
7880
  } catch (M) {
7881
7881
  w(M);
7882
7882
  } finally {
@@ -7885,7 +7885,7 @@ function ga(e) {
7885
7885
  }
7886
7886
  }, [e, t, a]);
7887
7887
  ge(() => {
7888
- e && A.current !== e && W();
7888
+ e && R.current !== e && W();
7889
7889
  }, [e]);
7890
7890
  const V = J(
7891
7891
  async (F) => {
@@ -7905,36 +7905,36 @@ function ga(e) {
7905
7905
  criteria: r,
7906
7906
  initialAnswers: o,
7907
7907
  result: C,
7908
- isLoading: l,
7908
+ isLoading: d,
7909
7909
  isSubmitting: f,
7910
7910
  error: m,
7911
7911
  load: W,
7912
7912
  submit: V
7913
7913
  };
7914
7914
  }
7915
- function Ri() {
7916
- const { applicantService: e, config: t } = Se(), [a, r] = T(!1), [n, o] = T(null), d = me(!1), l = me(!1), p = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(C) {
7915
+ function Ai() {
7916
+ const { applicantService: e, config: t } = Se(), [a, r] = T(!1), [n, o] = T(null), l = me(!1), d = me(!1), p = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(C) {
7917
7917
  const S = Math.random() * 16 | 0;
7918
7918
  return (C === "x" ? S : S & 3 | 8).toString(16);
7919
7919
  }), f = J(
7920
7920
  async (C) => {
7921
7921
  var S;
7922
- if (d.current)
7922
+ if (l.current)
7923
7923
  throw Y.debug("Applicant creation already in progress, skipping"), new Error("Creation already in progress");
7924
- d.current = !0, r(!0), o(null);
7924
+ l.current = !0, r(!0), o(null);
7925
7925
  try {
7926
7926
  if (C.applicantAdditionalDatas || (C.applicantAdditionalDatas = []), (S = t.identityProviders) != null && S.sardinai || t.sardinSessionKey) {
7927
- const A = t.sardinSessionKey || p();
7928
- Y.debug(`SardinAI session key: ${A} (pre-generated: ${!!t.sardinSessionKey})`), C.applicantAdditionalDatas.push({
7927
+ const R = t.sardinSessionKey || p();
7928
+ Y.debug(`SardinAI session key: ${R} (pre-generated: ${!!t.sardinSessionKey})`), C.applicantAdditionalDatas.push({
7929
7929
  paramName: "sessionKey",
7930
- value: A
7930
+ value: R
7931
7931
  });
7932
7932
  }
7933
7933
  return await e.createApplicant(C);
7934
7934
  } catch (K) {
7935
7935
  throw o(K), K;
7936
7936
  } finally {
7937
- r(!1), d.current = !1;
7937
+ r(!1), l.current = !1;
7938
7938
  }
7939
7939
  },
7940
7940
  [e, t]
@@ -7952,13 +7952,13 @@ function Ri() {
7952
7952
  [e]
7953
7953
  ), m = J(
7954
7954
  async (C) => {
7955
- l.current = !0, r(!0), o(null);
7955
+ d.current = !0, r(!0), o(null);
7956
7956
  try {
7957
7957
  return await e.getApplicantData(C);
7958
7958
  } catch (S) {
7959
7959
  throw o(S), S;
7960
7960
  } finally {
7961
- r(!1), l.current = !1;
7961
+ r(!1), d.current = !1;
7962
7962
  }
7963
7963
  },
7964
7964
  [e]
@@ -8010,15 +8010,15 @@ const fa = {
8010
8010
  color: "var(--metakyc-text-secondary, #6b7280)",
8011
8011
  borderColor: "transparent"
8012
8012
  }
8013
- }, re = ({
8013
+ }, le = ({
8014
8014
  children: e,
8015
8015
  variant: t = "primary",
8016
8016
  size: a = "md",
8017
8017
  isLoading: r = !1,
8018
8018
  disabled: n,
8019
8019
  className: o,
8020
- style: d,
8021
- ...l
8020
+ style: l,
8021
+ ...d
8022
8022
  }) => {
8023
8023
  const p = "inline-flex items-center justify-center rounded-lg font-medium transition-opacity border focus:outline-none focus:ring-2 focus:ring-offset-1 disabled:opacity-50 disabled:cursor-not-allowed", f = {
8024
8024
  sm: "px-3 py-1.5 text-sm",
@@ -8046,10 +8046,10 @@ const fa = {
8046
8046
  lineHeight: "1.25rem",
8047
8047
  ...g[a],
8048
8048
  ...fa[t],
8049
- ...d
8049
+ ...l
8050
8050
  },
8051
8051
  disabled: n || r,
8052
- ...l,
8052
+ ...d,
8053
8053
  children: [
8054
8054
  r && /* @__PURE__ */ s(
8055
8055
  "svg",
@@ -8085,8 +8085,8 @@ const fa = {
8085
8085
  ]
8086
8086
  }
8087
8087
  );
8088
- }, Ne = Rt(
8089
- ({ label: e, error: t, helperText: a, leftIcon: r, rightIcon: n, className: o, style: d, ...l }, p) => /* @__PURE__ */ s("div", { className: "w-full", children: [
8088
+ }, Ne = At(
8089
+ ({ label: e, error: t, helperText: a, leftIcon: r, rightIcon: n, className: o, style: l, ...d }, p) => /* @__PURE__ */ s("div", { className: "w-full", children: [
8090
8090
  e && /* @__PURE__ */ s(
8091
8091
  "label",
8092
8092
  {
@@ -8094,7 +8094,7 @@ const fa = {
8094
8094
  style: { color: "var(--metakyc-text-primary, #374151)" },
8095
8095
  children: [
8096
8096
  e,
8097
- l.required && /* @__PURE__ */ i("span", { className: "text-danger-500 ml-1", children: "*" })
8097
+ d.required && /* @__PURE__ */ i("span", { className: "text-danger-500 ml-1", children: "*" })
8098
8098
  ]
8099
8099
  }
8100
8100
  ),
@@ -8114,13 +8114,13 @@ const fa = {
8114
8114
  ),
8115
8115
  style: {
8116
8116
  minHeight: "38px",
8117
- backgroundColor: l.readOnly ? "var(--metakyc-surface, #f3f4f6)" : "var(--metakyc-input-bg, #ffffff)",
8117
+ backgroundColor: d.readOnly ? "var(--metakyc-surface, #f3f4f6)" : "var(--metakyc-input-bg, #ffffff)",
8118
8118
  color: "var(--metakyc-input-text, var(--metakyc-text-primary, #111827))",
8119
8119
  borderColor: t ? "var(--metakyc-danger, #ef4444)" : "var(--metakyc-input-border, var(--metakyc-border, #d1d5db))",
8120
- cursor: l.readOnly ? "default" : void 0,
8121
- ...d
8120
+ cursor: d.readOnly ? "default" : void 0,
8121
+ ...l
8122
8122
  },
8123
- ...l
8123
+ ...d
8124
8124
  }
8125
8125
  ),
8126
8126
  n && /* @__PURE__ */ i("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none", children: n })
@@ -8130,7 +8130,7 @@ const fa = {
8130
8130
  ] })
8131
8131
  );
8132
8132
  Ne.displayName = "Input";
8133
- const ae = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
8133
+ const re = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
8134
8134
  "div",
8135
8135
  {
8136
8136
  className: We("metakyc-card rounded-xl shadow-sm border", t),
@@ -8162,7 +8162,7 @@ const ae = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
8162
8162
  ...r,
8163
8163
  children: e
8164
8164
  }
8165
- ), ne = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
8165
+ ), ae = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
8166
8166
  "div",
8167
8167
  {
8168
8168
  className: We("metakyc-card-content px-6 py-4", t),
@@ -8208,23 +8208,23 @@ const ae = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
8208
8208
  margin: 0,
8209
8209
  verticalAlign: "middle"
8210
8210
  }, Xe = ({ checked: e, onChange: t, disabled: a, style: r }) => {
8211
- const n = "var(--metakyc-input-border, var(--metakyc-border, #d1d5db))", o = "var(--metakyc-input-bg, var(--metakyc-background, #ffffff))", d = "var(--metakyc-primary, #2563eb)";
8211
+ const n = "var(--metakyc-input-border, var(--metakyc-border, #d1d5db))", o = "var(--metakyc-input-bg, var(--metakyc-background, #ffffff))", l = "var(--metakyc-primary, #2563eb)";
8212
8212
  return /* @__PURE__ */ i(
8213
8213
  "span",
8214
8214
  {
8215
8215
  role: "checkbox",
8216
8216
  "aria-checked": e,
8217
8217
  tabIndex: 0,
8218
- onClick: (l) => {
8219
- l.stopPropagation(), a || t(!e);
8218
+ onClick: (d) => {
8219
+ d.stopPropagation(), a || t(!e);
8220
8220
  },
8221
- onKeyDown: (l) => {
8222
- (l.key === " " || l.key === "Enter") && (l.preventDefault(), a || t(!e));
8221
+ onKeyDown: (d) => {
8222
+ (d.key === " " || d.key === "Enter") && (d.preventDefault(), a || t(!e));
8223
8223
  },
8224
8224
  style: {
8225
8225
  ...ya,
8226
- backgroundColor: e ? d : o,
8227
- borderColor: e ? d : n,
8226
+ backgroundColor: e ? l : o,
8227
+ borderColor: e ? l : n,
8228
8228
  opacity: a ? 0.5 : 1,
8229
8229
  cursor: a ? "not-allowed" : "pointer",
8230
8230
  ...r
@@ -8322,8 +8322,8 @@ const ae = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
8322
8322
  ]
8323
8323
  }
8324
8324
  ) });
8325
- }, Xt = Rt(
8326
- ({ label: e, error: t, helperText: a, options: r, placeholder: n, className: o, style: d, ...l }, p) => /* @__PURE__ */ s("div", { className: "w-full", children: [
8325
+ }, Xt = At(
8326
+ ({ label: e, error: t, helperText: a, options: r, placeholder: n, className: o, style: l, ...d }, p) => /* @__PURE__ */ s("div", { className: "w-full", children: [
8327
8327
  e && /* @__PURE__ */ s(
8328
8328
  "label",
8329
8329
  {
@@ -8331,7 +8331,7 @@ const ae = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
8331
8331
  style: { color: "var(--metakyc-text-primary, #374151)" },
8332
8332
  children: [
8333
8333
  e,
8334
- l.required && /* @__PURE__ */ i("span", { className: "text-danger-500 ml-1", children: "*" })
8334
+ d.required && /* @__PURE__ */ i("span", { className: "text-danger-500 ml-1", children: "*" })
8335
8335
  ]
8336
8336
  }
8337
8337
  ),
@@ -8351,9 +8351,9 @@ const ae = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
8351
8351
  backgroundColor: "var(--metakyc-input-bg, #ffffff)",
8352
8352
  color: "var(--metakyc-input-text, var(--metakyc-text-primary, #111827))",
8353
8353
  borderColor: t ? "var(--metakyc-danger, #ef4444)" : "var(--metakyc-input-border, var(--metakyc-border, #d1d5db))",
8354
- ...d
8354
+ ...l
8355
8355
  },
8356
- ...l,
8356
+ ...d,
8357
8357
  children: [
8358
8358
  n && /* @__PURE__ */ i(
8359
8359
  "option",
@@ -8396,10 +8396,10 @@ const pi = 280, ka = ({
8396
8396
  options: r,
8397
8397
  placeholder: n,
8398
8398
  disabled: o = !1,
8399
- readOnly: d = !1,
8400
- required: l = !1
8399
+ readOnly: l = !1,
8400
+ required: d = !1
8401
8401
  }) => {
8402
- const { t: p } = Ie(), f = n ?? p("common.select"), g = o || d, [m, w] = T(!1), [C, S] = T(""), [K, A] = T(null), [W, V] = T({
8402
+ const { t: p } = Ie(), f = n ?? p("common.select"), g = o || l, [m, w] = T(!1), [C, S] = T(""), [K, R] = T(null), [W, V] = T({
8403
8403
  bg: "#ffffff",
8404
8404
  borderColor: "#d1d5db",
8405
8405
  textPrimary: "#111827",
@@ -8409,10 +8409,10 @@ const pi = 280, ka = ({
8409
8409
  hoverBg: "#f9fafb"
8410
8410
  }), F = me(null), M = me(null), $ = me(null), _ = J(() => {
8411
8411
  if (!M.current) return null;
8412
- const R = M.current.getBoundingClientRect(), O = window.innerHeight - R.bottom < pi && R.top > pi;
8413
- return { top: O ? R.top : R.bottom + 4, left: R.left, width: R.width, openUp: O };
8414
- }, []), oe = J(() => {
8415
- const R = getComputedStyle(document.querySelector(".metakyc-sdk") || document.documentElement), I = (G, X) => R.getPropertyValue(G).trim() || X, O = I("--metakyc-input-bg", I("--metakyc-background", "#ffffff"));
8412
+ const A = M.current.getBoundingClientRect(), O = window.innerHeight - A.bottom < pi && A.top > pi;
8413
+ return { top: O ? A.top : A.bottom + 4, left: A.left, width: A.width, openUp: O };
8414
+ }, []), ne = J(() => {
8415
+ const A = getComputedStyle(document.querySelector(".metakyc-sdk") || document.documentElement), I = (G, X) => A.getPropertyValue(G).trim() || X, O = I("--metakyc-input-bg", I("--metakyc-background", "#ffffff"));
8416
8416
  V({
8417
8417
  bg: O,
8418
8418
  borderColor: I("--metakyc-input-border", I("--metakyc-border", "#d1d5db")),
@@ -8424,40 +8424,40 @@ const pi = 280, ka = ({
8424
8424
  });
8425
8425
  }, []), v = J(() => {
8426
8426
  if (g) return;
8427
- oe();
8428
- const R = _();
8429
- R && A(R), w(!0);
8430
- }, [g, _, oe]), z = J(() => {
8427
+ ne();
8428
+ const A = _();
8429
+ A && R(A), w(!0);
8430
+ }, [g, _, ne]), z = J(() => {
8431
8431
  w(!1), S("");
8432
8432
  }, []);
8433
8433
  ge(() => {
8434
8434
  if (!m) return;
8435
- const R = (I) => {
8435
+ const A = (I) => {
8436
8436
  var G, X;
8437
8437
  const O = I.target;
8438
8438
  !((G = F.current) != null && G.contains(O)) && !((X = $.current) != null && X.contains(O)) && z();
8439
8439
  };
8440
- return document.addEventListener("mousedown", R), () => document.removeEventListener("mousedown", R);
8440
+ return document.addEventListener("mousedown", A), () => document.removeEventListener("mousedown", A);
8441
8441
  }, [m, z]), ge(() => {
8442
8442
  if (!m) return;
8443
- const R = () => {
8443
+ const A = () => {
8444
8444
  const I = _();
8445
- I && A(I);
8445
+ I && R(I);
8446
8446
  };
8447
- return window.addEventListener("scroll", R, !0), window.addEventListener("resize", R), () => {
8448
- window.removeEventListener("scroll", R, !0), window.removeEventListener("resize", R);
8447
+ return window.addEventListener("scroll", A, !0), window.addEventListener("resize", A), () => {
8448
+ window.removeEventListener("scroll", A, !0), window.removeEventListener("resize", A);
8449
8449
  };
8450
8450
  }, [m, _]);
8451
8451
  const j = r.filter(
8452
- (R) => R.label.toLowerCase().includes(C.toLowerCase())
8453
- ), Q = (R) => {
8454
- g || a(t.includes(R) ? t.filter((I) => I !== R) : [...t, R]);
8455
- }, ee = (R, I) => {
8456
- I.stopPropagation(), g || a(t.filter((O) => O !== R));
8457
- }, H = (R) => {
8452
+ (A) => A.label.toLowerCase().includes(C.toLowerCase())
8453
+ ), Q = (A) => {
8454
+ g || a(t.includes(A) ? t.filter((I) => I !== A) : [...t, A]);
8455
+ }, ee = (A, I) => {
8456
+ I.stopPropagation(), g || a(t.filter((O) => O !== A));
8457
+ }, H = (A) => {
8458
8458
  var I;
8459
- return ((I = r.find((O) => O.value === R)) == null ? void 0 : I.label) || R;
8460
- }, { bg: te, borderColor: pe, textPrimary: de, textSecondary: Te, primaryColor: le, primaryLight: ke, hoverBg: ve } = W, he = m && K && /* @__PURE__ */ s(
8459
+ return ((I = r.find((O) => O.value === A)) == null ? void 0 : I.label) || A;
8460
+ }, { bg: te, borderColor: pe, textPrimary: de, textSecondary: Te, primaryColor: se, primaryLight: ke, hoverBg: ve } = W, he = m && K && /* @__PURE__ */ s(
8461
8461
  "div",
8462
8462
  {
8463
8463
  ref: $,
@@ -8481,10 +8481,10 @@ const pi = 280, ka = ({
8481
8481
  {
8482
8482
  type: "text",
8483
8483
  value: C,
8484
- onChange: (R) => S(R.target.value),
8484
+ onChange: (A) => S(A.target.value),
8485
8485
  placeholder: p("common.search"),
8486
8486
  autoFocus: !0,
8487
- onClick: (R) => R.stopPropagation(),
8487
+ onClick: (A) => A.stopPropagation(),
8488
8488
  className: "metakyc-multiselect-search w-full",
8489
8489
  style: {
8490
8490
  display: "block",
@@ -8498,21 +8498,21 @@ const pi = 280, ka = ({
8498
8498
  outline: "none",
8499
8499
  boxSizing: "border-box"
8500
8500
  },
8501
- onFocus: (R) => {
8501
+ onFocus: (A) => {
8502
8502
  const I = getComputedStyle(document.querySelector(".metakyc-sdk") || document.documentElement), O = I.getPropertyValue("--metakyc-input-border-focus").trim() || I.getPropertyValue("--metakyc-primary").trim() || "#2563eb";
8503
- R.currentTarget.style.backgroundColor = te, R.currentTarget.style.color = de, R.currentTarget.style.borderColor = O, R.currentTarget.style.outline = "none", R.currentTarget.style.boxShadow = `0 0 0 2px ${O}33`;
8503
+ A.currentTarget.style.backgroundColor = te, A.currentTarget.style.color = de, A.currentTarget.style.borderColor = O, A.currentTarget.style.outline = "none", A.currentTarget.style.boxShadow = `0 0 0 2px ${O}33`;
8504
8504
  },
8505
- onBlur: (R) => {
8506
- R.currentTarget.style.backgroundColor = te, R.currentTarget.style.color = de, R.currentTarget.style.borderColor = pe, R.currentTarget.style.outline = "none", R.currentTarget.style.boxShadow = "none";
8505
+ onBlur: (A) => {
8506
+ A.currentTarget.style.backgroundColor = te, A.currentTarget.style.color = de, A.currentTarget.style.borderColor = pe, A.currentTarget.style.outline = "none", A.currentTarget.style.boxShadow = "none";
8507
8507
  }
8508
8508
  }
8509
8509
  ) }),
8510
- /* @__PURE__ */ i("ul", { style: { listStyle: "none", margin: 0, padding: "4px 0", maxHeight: "192px", overflowY: "auto" }, children: j.length === 0 ? /* @__PURE__ */ i("li", { style: { padding: "8px 12px", fontSize: "13px", color: Te }, children: p("common.noResults") }) : j.map((R) => {
8511
- const I = t.includes(R.value);
8510
+ /* @__PURE__ */ i("ul", { style: { listStyle: "none", margin: 0, padding: "4px 0", maxHeight: "192px", overflowY: "auto" }, children: j.length === 0 ? /* @__PURE__ */ i("li", { style: { padding: "8px 12px", fontSize: "13px", color: Te }, children: p("common.noResults") }) : j.map((A) => {
8511
+ const I = t.includes(A.value);
8512
8512
  return /* @__PURE__ */ s(
8513
8513
  "li",
8514
8514
  {
8515
- onClick: () => Q(R.value),
8515
+ onClick: () => Q(A.value),
8516
8516
  className: "metakyc-multiselect-option",
8517
8517
  style: {
8518
8518
  display: "flex",
@@ -8522,7 +8522,7 @@ const pi = 280, ka = ({
8522
8522
  fontSize: "13px",
8523
8523
  cursor: "pointer",
8524
8524
  backgroundColor: I ? ke : "transparent",
8525
- color: I ? le : de,
8525
+ color: I ? se : de,
8526
8526
  userSelect: "none"
8527
8527
  },
8528
8528
  onMouseEnter: (O) => {
@@ -8540,10 +8540,10 @@ const pi = 280, ka = ({
8540
8540
  }
8541
8541
  }
8542
8542
  ),
8543
- /* @__PURE__ */ i("span", { children: R.label })
8543
+ /* @__PURE__ */ i("span", { children: A.label })
8544
8544
  ]
8545
8545
  },
8546
- R.value
8546
+ A.value
8547
8547
  );
8548
8548
  }) }),
8549
8549
  t.length > 0 && /* @__PURE__ */ i("div", { style: { padding: "6px 12px", borderTop: `1px solid ${pe}` }, children: /* @__PURE__ */ s(
@@ -8573,7 +8573,7 @@ const pi = 280, ka = ({
8573
8573
  style: { color: "var(--metakyc-text-primary, #374151)" },
8574
8574
  children: [
8575
8575
  e,
8576
- l && /* @__PURE__ */ i("span", { style: { color: "var(--metakyc-error, #ef4444)", marginLeft: "4px" }, children: "*" })
8576
+ d && /* @__PURE__ */ i("span", { style: { color: "var(--metakyc-error, #ef4444)", marginLeft: "4px" }, children: "*" })
8577
8577
  ]
8578
8578
  }
8579
8579
  ),
@@ -8602,7 +8602,7 @@ const pi = 280, ka = ({
8602
8602
  style: { color: "var(--metakyc-text-secondary, #9ca3af)" },
8603
8603
  children: f
8604
8604
  }
8605
- ) : /* @__PURE__ */ i("div", { className: "flex flex-wrap gap-1 pr-6", children: t.map((R) => /* @__PURE__ */ s(
8605
+ ) : /* @__PURE__ */ i("div", { className: "flex flex-wrap gap-1 pr-6", children: t.map((A) => /* @__PURE__ */ s(
8606
8606
  "span",
8607
8607
  {
8608
8608
  className: "metakyc-multiselect-chip inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs font-medium",
@@ -8611,12 +8611,12 @@ const pi = 280, ka = ({
8611
8611
  color: "var(--metakyc-primary, #2563eb)"
8612
8612
  },
8613
8613
  children: [
8614
- H(R),
8614
+ H(A),
8615
8615
  !g && /* @__PURE__ */ i(
8616
8616
  "button",
8617
8617
  {
8618
8618
  type: "button",
8619
- onClick: (I) => ee(R, I),
8619
+ onClick: (I) => ee(A, I),
8620
8620
  className: "metakyc-multiselect-chip-remove",
8621
8621
  style: {
8622
8622
  background: "transparent",
@@ -8642,7 +8642,7 @@ const pi = 280, ka = ({
8642
8642
  )
8643
8643
  ]
8644
8644
  },
8645
- R
8645
+ A
8646
8646
  )) }),
8647
8647
  /* @__PURE__ */ i(
8648
8648
  "span",
@@ -8664,14 +8664,14 @@ const pi = 280, ka = ({
8664
8664
  options: r,
8665
8665
  placeholder: n,
8666
8666
  value: o,
8667
- onChange: d,
8668
- disabled: l = !1,
8667
+ onChange: l,
8668
+ disabled: d = !1,
8669
8669
  readOnly: p = !1,
8670
8670
  required: f = !1,
8671
8671
  className: g
8672
8672
  }) => {
8673
8673
  var X;
8674
- const { t: m } = Ie(), w = n ?? m("common.select"), C = l || p, [S, K] = T(!1), [A, W] = T(""), [V, F] = T(null), [M, $] = T({
8674
+ const { t: m } = Ie(), w = n ?? m("common.select"), C = d || p, [S, K] = T(!1), [R, W] = T(""), [V, F] = T(null), [M, $] = T({
8675
8675
  bg: "#ffffff",
8676
8676
  border: "#d1d5db",
8677
8677
  text: "#111827",
@@ -8680,7 +8680,7 @@ const pi = 280, ka = ({
8680
8680
  primaryLight: "#eff6ff",
8681
8681
  hoverBg: "#f9fafb"
8682
8682
  }), _ = J(() => {
8683
- const B = getComputedStyle(document.querySelector(".metakyc-sdk") || document.documentElement), Z = (Ae, Ce) => B.getPropertyValue(Ae).trim() || Ce, fe = Z("--metakyc-input-bg", Z("--metakyc-background", "#ffffff"));
8683
+ const B = getComputedStyle(document.querySelector(".metakyc-sdk") || document.documentElement), Z = (Re, Ce) => B.getPropertyValue(Re).trim() || Ce, fe = Z("--metakyc-input-bg", Z("--metakyc-background", "#ffffff"));
8684
8684
  $({
8685
8685
  bg: fe,
8686
8686
  border: Z("--metakyc-input-border", Z("--metakyc-border", "#d1d5db")),
@@ -8690,7 +8690,7 @@ const pi = 280, ka = ({
8690
8690
  primaryLight: Z("--metakyc-primary-light", "#eff6ff"),
8691
8691
  hoverBg: Z("--metakyc-surface", fe)
8692
8692
  });
8693
- }, []), oe = me(null), v = me(null), z = me(null), j = me(null), Q = J(() => {
8693
+ }, []), ne = me(null), v = me(null), z = me(null), j = me(null), Q = J(() => {
8694
8694
  if (!v.current) return null;
8695
8695
  const B = v.current.getBoundingClientRect(), fe = window.innerHeight - B.bottom < gi && B.top > gi;
8696
8696
  return {
@@ -8710,9 +8710,9 @@ const pi = 280, ka = ({
8710
8710
  ge(() => {
8711
8711
  if (!S) return;
8712
8712
  const B = (Z) => {
8713
- var Ae, Ce;
8713
+ var Re, Ce;
8714
8714
  const fe = Z.target;
8715
- !((Ae = oe.current) != null && Ae.contains(fe)) && !((Ce = z.current) != null && Ce.contains(fe)) && H();
8715
+ !((Re = ne.current) != null && Re.contains(fe)) && !((Ce = z.current) != null && Ce.contains(fe)) && H();
8716
8716
  };
8717
8717
  return document.addEventListener("mousedown", B), () => document.removeEventListener("mousedown", B);
8718
8718
  }, [S, H]), ge(() => {
@@ -8731,10 +8731,10 @@ const pi = 280, ka = ({
8731
8731
  }, 0);
8732
8732
  }, [S]);
8733
8733
  const pe = r.filter(
8734
- (B) => B.label.toLowerCase().includes(A.toLowerCase()) || B.value.toLowerCase().includes(A.toLowerCase())
8734
+ (B) => B.label.toLowerCase().includes(R.toLowerCase()) || B.value.toLowerCase().includes(R.toLowerCase())
8735
8735
  ), de = (X = r.find((B) => B.value === o)) == null ? void 0 : X.label, Te = (B, Z) => {
8736
- C || Z || (d(B), H());
8737
- }, { bg: le, border: ke, text: ve, textSecondary: he, primary: R, primaryLight: I, hoverBg: O } = M, G = S && V && /* @__PURE__ */ s(
8736
+ C || Z || (l(B), H());
8737
+ }, { bg: se, border: ke, text: ve, textSecondary: he, primary: A, primaryLight: I, hoverBg: O } = M, G = S && V && /* @__PURE__ */ s(
8738
8738
  "div",
8739
8739
  {
8740
8740
  ref: z,
@@ -8749,7 +8749,7 @@ const pi = 280, ka = ({
8749
8749
  borderRadius: "8px",
8750
8750
  boxShadow: "0 4px 16px rgba(0,0,0,0.18)",
8751
8751
  border: `1px solid ${ke}`,
8752
- backgroundColor: le,
8752
+ backgroundColor: se,
8753
8753
  overflow: "hidden"
8754
8754
  },
8755
8755
  children: [
@@ -8758,7 +8758,7 @@ const pi = 280, ka = ({
8758
8758
  {
8759
8759
  ref: j,
8760
8760
  type: "text",
8761
- value: A,
8761
+ value: R,
8762
8762
  onChange: (B) => W(B.target.value),
8763
8763
  placeholder: m("common.search"),
8764
8764
  onClick: (B) => B.stopPropagation(),
@@ -8770,17 +8770,17 @@ const pi = 280, ka = ({
8770
8770
  fontSize: "13px",
8771
8771
  borderRadius: "6px",
8772
8772
  border: `1px solid ${ke}`,
8773
- backgroundColor: le,
8773
+ backgroundColor: se,
8774
8774
  color: ve,
8775
8775
  outline: "none",
8776
8776
  boxSizing: "border-box"
8777
8777
  },
8778
8778
  onFocus: (B) => {
8779
8779
  const Z = getComputedStyle(document.querySelector(".metakyc-sdk") || document.documentElement), fe = Z.getPropertyValue("--metakyc-input-border-focus").trim() || Z.getPropertyValue("--metakyc-primary").trim() || "#2563eb";
8780
- B.currentTarget.style.backgroundColor = le, B.currentTarget.style.color = ve, B.currentTarget.style.borderColor = fe, B.currentTarget.style.outline = "none", B.currentTarget.style.boxShadow = `0 0 0 2px ${fe}33`;
8780
+ B.currentTarget.style.backgroundColor = se, B.currentTarget.style.color = ve, B.currentTarget.style.borderColor = fe, B.currentTarget.style.outline = "none", B.currentTarget.style.boxShadow = `0 0 0 2px ${fe}33`;
8781
8781
  },
8782
8782
  onBlur: (B) => {
8783
- B.currentTarget.style.backgroundColor = le, B.currentTarget.style.color = ve, B.currentTarget.style.borderColor = ke, B.currentTarget.style.outline = "none", B.currentTarget.style.boxShadow = "none";
8783
+ B.currentTarget.style.backgroundColor = se, B.currentTarget.style.color = ve, B.currentTarget.style.borderColor = ke, B.currentTarget.style.outline = "none", B.currentTarget.style.boxShadow = "none";
8784
8784
  }
8785
8785
  }
8786
8786
  ) }),
@@ -8807,7 +8807,7 @@ const pi = 280, ka = ({
8807
8807
  cursor: B.disabled ? "not-allowed" : "pointer",
8808
8808
  opacity: B.disabled ? 0.4 : 1,
8809
8809
  backgroundColor: Z ? I : "transparent",
8810
- color: Z ? R : ve,
8810
+ color: Z ? A : ve,
8811
8811
  userSelect: "none"
8812
8812
  },
8813
8813
  onMouseEnter: (fe) => {
@@ -8830,7 +8830,7 @@ const pi = 280, ka = ({
8830
8830
  "div",
8831
8831
  {
8832
8832
  className: We("w-full metakyc-searchable-select", g),
8833
- ref: oe,
8833
+ ref: ne,
8834
8834
  children: [
8835
8835
  e && /* @__PURE__ */ s(
8836
8836
  "label",
@@ -8900,12 +8900,12 @@ const wa = ({
8900
8900
  accept: r,
8901
8901
  multiple: n = !1,
8902
8902
  maxSize: o,
8903
- required: d,
8904
- onChange: l,
8903
+ required: l,
8904
+ onChange: d,
8905
8905
  value: p = [],
8906
8906
  className: f
8907
8907
  }) => {
8908
- const { t: g } = Ie(), [m, w] = T(!1), [C, S] = T(null), K = me(null), A = J((v) => {
8908
+ const { t: g } = Ie(), [m, w] = T(!1), [C, S] = T(null), K = me(null), R = J((v) => {
8909
8909
  if (!v) return;
8910
8910
  S(null);
8911
8911
  const z = Array.from(v);
@@ -8913,21 +8913,21 @@ const wa = ({
8913
8913
  S(`File exceeds the maximum size of ${Bt(o)}`);
8914
8914
  return;
8915
8915
  }
8916
- l == null || l(n ? [...p, ...z] : [z[0]]);
8917
- }, [o, n, l, p]), W = J((v) => {
8916
+ d == null || d(n ? [...p, ...z] : [z[0]]);
8917
+ }, [o, n, d, p]), W = J((v) => {
8918
8918
  v.preventDefault(), v.stopPropagation(), w(!0);
8919
8919
  }, []), V = J((v) => {
8920
8920
  v.preventDefault(), v.stopPropagation(), w(!1);
8921
8921
  }, []), F = J((v) => {
8922
- v.preventDefault(), v.stopPropagation(), w(!1), A(v.dataTransfer.files);
8923
- }, [A]), M = () => {
8922
+ v.preventDefault(), v.stopPropagation(), w(!1), R(v.dataTransfer.files);
8923
+ }, [R]), M = () => {
8924
8924
  var v;
8925
8925
  (v = K.current) == null || v.click();
8926
8926
  }, $ = (v) => {
8927
8927
  S(null);
8928
8928
  const z = p.filter((j, Q) => Q !== v);
8929
- l == null || l(z);
8930
- }, _ = a || C, oe = p.length > 0;
8929
+ d == null || d(z);
8930
+ }, _ = a || C, ne = p.length > 0;
8931
8931
  return /* @__PURE__ */ s("div", { className: We("metakyc-file-upload", f), style: { width: "100%" }, children: [
8932
8932
  e && /* @__PURE__ */ s("div", { style: { marginBottom: "8px" }, children: [
8933
8933
  /* @__PURE__ */ s(
@@ -8941,7 +8941,7 @@ const wa = ({
8941
8941
  },
8942
8942
  children: [
8943
8943
  e,
8944
- d && /* @__PURE__ */ i("span", { style: { color: "var(--metakyc-danger, #ef4444)", marginLeft: "2px" }, children: "*" })
8944
+ l && /* @__PURE__ */ i("span", { style: { color: "var(--metakyc-danger, #ef4444)", marginLeft: "2px" }, children: "*" })
8945
8945
  ]
8946
8946
  }
8947
8947
  ),
@@ -8958,7 +8958,7 @@ const wa = ({
8958
8958
  style: {
8959
8959
  border: `2px dashed ${_ ? "var(--metakyc-danger, #ef4444)" : m ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #d1d5db)"}`,
8960
8960
  borderRadius: "12px",
8961
- padding: oe ? "20px" : "32px 20px",
8961
+ padding: ne ? "20px" : "32px 20px",
8962
8962
  textAlign: "center",
8963
8963
  cursor: "pointer",
8964
8964
  transition: "all 0.2s ease",
@@ -8974,7 +8974,7 @@ const wa = ({
8974
8974
  accept: r,
8975
8975
  multiple: n,
8976
8976
  onChange: (v) => {
8977
- A(v.target.files), v.target.value = "";
8977
+ R(v.target.files), v.target.value = "";
8978
8978
  }
8979
8979
  }
8980
8980
  ),
@@ -9029,7 +9029,7 @@ const wa = ({
9029
9029
  ]
9030
9030
  }
9031
9031
  ),
9032
- oe && /* @__PURE__ */ i("div", { style: { marginTop: "12px", display: "flex", flexDirection: "column", gap: "8px" }, children: p.map((v, z) => {
9032
+ ne && /* @__PURE__ */ i("div", { style: { marginTop: "12px", display: "flex", flexDirection: "column", gap: "8px" }, children: p.map((v, z) => {
9033
9033
  const j = ba(v), Q = j === "image", ee = Q ? URL.createObjectURL(v) : null;
9034
9034
  return /* @__PURE__ */ s(
9035
9035
  "div",
@@ -9132,7 +9132,7 @@ const wa = ({
9132
9132
  }) }),
9133
9133
  _ && /* @__PURE__ */ i("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", marginTop: "6px" }, children: _ })
9134
9134
  ] });
9135
- }, xa = Rt(
9135
+ }, xa = At(
9136
9136
  ({ countryCode: e = "+1", onCountryCodeChange: t, className: a, ...r }, n) => /* @__PURE__ */ s("div", { className: "w-full", children: [
9137
9137
  r.label && /* @__PURE__ */ s(
9138
9138
  "label",
@@ -9249,7 +9249,7 @@ const Ta = (e) => {
9249
9249
  * This source code is licensed under the ISC license.
9250
9250
  * See the LICENSE file in the root directory of this source tree.
9251
9251
  */
9252
- const Aa = Rt(
9252
+ const Ra = At(
9253
9253
  ({
9254
9254
  color: e = "currentColor",
9255
9255
  size: t = 24,
@@ -9257,8 +9257,8 @@ const Aa = Rt(
9257
9257
  absoluteStrokeWidth: r,
9258
9258
  className: n = "",
9259
9259
  children: o,
9260
- iconNode: d,
9261
- ...l
9260
+ iconNode: l,
9261
+ ...d
9262
9262
  }, p) => Wt(
9263
9263
  "svg",
9264
9264
  {
@@ -9269,11 +9269,11 @@ const Aa = Rt(
9269
9269
  stroke: e,
9270
9270
  strokeWidth: r ? Number(a) * 24 / Number(t) : a,
9271
9271
  className: Ii("lucide", n),
9272
- ...!o && !Ta(l) && { "aria-hidden": "true" },
9273
- ...l
9272
+ ...!o && !Ta(d) && { "aria-hidden": "true" },
9273
+ ...d
9274
9274
  },
9275
9275
  [
9276
- ...d.map(([f, g]) => Wt(f, g)),
9276
+ ...l.map(([f, g]) => Wt(f, g)),
9277
9277
  ...Array.isArray(o) ? o : [o]
9278
9278
  ]
9279
9279
  )
@@ -9285,8 +9285,8 @@ const Aa = Rt(
9285
9285
  * See the LICENSE file in the root directory of this source tree.
9286
9286
  */
9287
9287
  const zi = (e, t) => {
9288
- const a = Rt(
9289
- ({ className: r, ...n }, o) => Wt(Aa, {
9288
+ const a = At(
9289
+ ({ className: r, ...n }, o) => Wt(Ra, {
9290
9290
  ref: o,
9291
9291
  iconNode: t,
9292
9292
  className: Ii(
@@ -9305,7 +9305,7 @@ const zi = (e, t) => {
9305
9305
  * This source code is licensed under the ISC license.
9306
9306
  * See the LICENSE file in the root directory of this source tree.
9307
9307
  */
9308
- const Ra = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Li = zi("chevron-left", Ra);
9308
+ const Aa = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Li = zi("chevron-left", Aa);
9309
9309
  /**
9310
9310
  * @license lucide-react v0.574.0 - ISC
9311
9311
  *
@@ -9344,7 +9344,7 @@ function za(e, t) {
9344
9344
  }
9345
9345
  function La(e) {
9346
9346
  const t = e.flatMap(
9347
- (r, n) => (r.questions ?? []).map((o, d) => ({ question: o, groupIndex: n, qIdx: d }))
9347
+ (r, n) => (r.questions ?? []).map((o, l) => ({ question: o, groupIndex: n, qIdx: l }))
9348
9348
  ), a = /* @__PURE__ */ new Map();
9349
9349
  for (const r of t) {
9350
9350
  const n = r.question.pageNumber != null && r.question.pageNumber > 0 ? r.question.pageNumber : 1;
@@ -9357,14 +9357,14 @@ const Ea = ({
9357
9357
  onComplete: t,
9358
9358
  onBack: a
9359
9359
  }) => {
9360
- const { t: r } = Ie(), { questionnaire: n, initialAnswers: o, isLoading: d, isSubmitting: l, error: p, submit: f } = da(e), [g, m] = T({}), [w, C] = T({}), [S, K] = T(0);
9360
+ const { t: r } = Ie(), { questionnaire: n, initialAnswers: o, isLoading: l, isSubmitting: d, error: p, submit: f } = da(e), [g, m] = T({}), [w, C] = T({}), [S, K] = T(0);
9361
9361
  ye.useEffect(() => {
9362
9362
  o && Object.keys(o).length > 0 && Object.keys(g).length === 0 && m(o);
9363
9363
  }, [o]);
9364
- const A = Ue(
9364
+ const R = Ue(
9365
9365
  () => n ? La(n.questionGroups) : [],
9366
9366
  [n]
9367
- ), W = S === A.length - 1, V = A[S] ?? [], F = J((v, z) => {
9367
+ ), W = S === R.length - 1, V = R[S] ?? [], F = J((v, z) => {
9368
9368
  m((j) => ({ ...j, [v]: z })), C((j) => {
9369
9369
  const Q = { ...j };
9370
9370
  return delete Q[v], Q;
@@ -9380,7 +9380,7 @@ const Ea = ({
9380
9380
  M() && K((v) => v + 1);
9381
9381
  }, _ = () => {
9382
9382
  S > 0 ? K((v) => v - 1) : a == null || a();
9383
- }, oe = async () => {
9383
+ }, ne = async () => {
9384
9384
  if (!(!M() || !n))
9385
9385
  try {
9386
9386
  const v = n.questionGroups.flatMap(
@@ -9398,17 +9398,17 @@ const Ea = ({
9398
9398
  console.error("Questionnaire submit error:", v);
9399
9399
  }
9400
9400
  };
9401
- return d ? /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ i(Ke, { className: "my-8" }) }) }) : p ? /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ s("p", { className: "text-danger-500", children: [
9401
+ return l ? /* @__PURE__ */ i(re, { children: /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(Ke, { className: "my-8" }) }) }) : p ? /* @__PURE__ */ i(re, { children: /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ s("p", { className: "text-danger-500", children: [
9402
9402
  r("questionnaire.errorLoading"),
9403
9403
  " ",
9404
9404
  p.message
9405
- ] }) }) }) : n ? /* @__PURE__ */ s(ae, { children: [
9405
+ ] }) }) }) : n ? /* @__PURE__ */ s(re, { children: [
9406
9406
  /* @__PURE__ */ s(Le, { children: [
9407
9407
  /* @__PURE__ */ i("h2", { className: "text-lg font-bold", children: n.displayName }),
9408
9408
  n.subtitle && /* @__PURE__ */ i("p", { className: "text-sm", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: n.subtitle }),
9409
- A.length > 1 && /* @__PURE__ */ s("div", { className: "flex items-center justify-between mt-3", children: [
9410
- /* @__PURE__ */ i("span", { className: "text-xs", style: { color: "var(--metakyc-text-muted, #9ca3af)" }, children: r("common.pageXofY", { current: S + 1, total: A.length }) }),
9411
- /* @__PURE__ */ i("div", { className: "flex items-center gap-1.5", children: A.map((v, z) => /* @__PURE__ */ i(
9409
+ R.length > 1 && /* @__PURE__ */ s("div", { className: "flex items-center justify-between mt-3", children: [
9410
+ /* @__PURE__ */ i("span", { className: "text-xs", style: { color: "var(--metakyc-text-muted, #9ca3af)" }, children: r("common.pageXofY", { current: S + 1, total: R.length }) }),
9411
+ /* @__PURE__ */ i("div", { className: "flex items-center gap-1.5", children: R.map((v, z) => /* @__PURE__ */ i(
9412
9412
  "div",
9413
9413
  {
9414
9414
  className: "rounded-full transition-all duration-200",
@@ -9422,7 +9422,7 @@ const Ea = ({
9422
9422
  )) })
9423
9423
  ] })
9424
9424
  ] }),
9425
- /* @__PURE__ */ i(ne, { className: "space-y-6", children: V.map(({ question: v }) => /* @__PURE__ */ i(
9425
+ /* @__PURE__ */ i(ae, { className: "space-y-6", children: V.map(({ question: v }) => /* @__PURE__ */ i(
9426
9426
  Da,
9427
9427
  {
9428
9428
  question: v,
@@ -9434,7 +9434,7 @@ const Ea = ({
9434
9434
  )) }),
9435
9435
  /* @__PURE__ */ s(Ee, { style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
9436
9436
  /* @__PURE__ */ s(
9437
- re,
9437
+ le,
9438
9438
  {
9439
9439
  type: "button",
9440
9440
  variant: "outline",
@@ -9447,15 +9447,15 @@ const Ea = ({
9447
9447
  }
9448
9448
  ),
9449
9449
  W ? /* @__PURE__ */ i(
9450
- re,
9450
+ le,
9451
9451
  {
9452
9452
  type: "button",
9453
- isLoading: l,
9454
- onClick: oe,
9453
+ isLoading: d,
9454
+ onClick: ne,
9455
9455
  children: r("common.continue")
9456
9456
  }
9457
9457
  ) : /* @__PURE__ */ s(
9458
- re,
9458
+ le,
9459
9459
  {
9460
9460
  type: "button",
9461
9461
  onClick: $,
@@ -9473,8 +9473,8 @@ const Ea = ({
9473
9473
  }, children: /* @__PURE__ */ i("p", { className: "text-sm", style: { color: "var(--metakyc-danger, #ef4444)" }, children: p.message }) })
9474
9474
  ] }) : null;
9475
9475
  }, Da = ({ question: e, value: t, error: a, onChange: r }) => {
9476
- var l;
9477
- const { t: n } = Ie(), d = (((l = e.defaultAnswers) == null ? void 0 : l.length) ?? 0) > 0 ? e.showAsDropdown ? e.canMultipleAnswer ? "multi-select" : "single-select" : e.canMultipleAnswer ? "checkbox" : "radio" : "text";
9476
+ var d;
9477
+ const { t: n } = Ie(), l = (((d = e.defaultAnswers) == null ? void 0 : d.length) ?? 0) > 0 ? e.showAsDropdown ? e.canMultipleAnswer ? "multi-select" : "single-select" : e.canMultipleAnswer ? "checkbox" : "radio" : "text";
9478
9478
  return /* @__PURE__ */ s("div", { className: "space-y-2", children: [
9479
9479
  /* @__PURE__ */ s("label", { className: "block text-sm font-medium", style: { color: "var(--metakyc-text-primary, #111827)" }, children: [
9480
9480
  e.text,
@@ -9482,7 +9482,7 @@ const Ea = ({
9482
9482
  ] }),
9483
9483
  e.subtitle && /* @__PURE__ */ i("p", { className: "text-xs", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: e.subtitle }),
9484
9484
  e.description && /* @__PURE__ */ i("p", { className: "text-xs", style: { color: "var(--metakyc-text-muted, #9ca3af)" }, children: e.description }),
9485
- d === "text" && /* @__PURE__ */ i(
9485
+ l === "text" && /* @__PURE__ */ i(
9486
9486
  Ne,
9487
9487
  {
9488
9488
  value: t[0] ?? "",
@@ -9492,7 +9492,7 @@ const Ea = ({
9492
9492
  required: e.isRequired
9493
9493
  }
9494
9494
  ),
9495
- d === "single-select" && /* @__PURE__ */ i(
9495
+ l === "single-select" && /* @__PURE__ */ i(
9496
9496
  Xt,
9497
9497
  {
9498
9498
  value: t[0] ?? "",
@@ -9503,7 +9503,7 @@ const Ea = ({
9503
9503
  required: e.isRequired
9504
9504
  }
9505
9505
  ),
9506
- d === "radio" && /* @__PURE__ */ s("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
9506
+ l === "radio" && /* @__PURE__ */ s("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
9507
9507
  (e.defaultAnswers ?? []).map((p) => /* @__PURE__ */ s(
9508
9508
  "div",
9509
9509
  {
@@ -9541,7 +9541,7 @@ const Ea = ({
9541
9541
  )),
9542
9542
  a && /* @__PURE__ */ i("p", { className: "text-sm text-danger-500", children: a })
9543
9543
  ] }),
9544
- (d === "checkbox" || d === "multi-select") && /* @__PURE__ */ s("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
9544
+ (l === "checkbox" || l === "multi-select") && /* @__PURE__ */ s("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
9545
9545
  (e.defaultAnswers ?? []).map((p) => {
9546
9546
  const f = t.includes(p), g = () => {
9547
9547
  r(f ? t.filter((m) => m !== p) : [...t, p]);
@@ -9562,7 +9562,7 @@ const Ea = ({
9562
9562
  }),
9563
9563
  a && /* @__PURE__ */ i("p", { className: "text-sm text-danger-500", children: a })
9564
9564
  ] }),
9565
- a && d === "text" && null
9565
+ a && l === "text" && null
9566
9566
  ] });
9567
9567
  };
9568
9568
  function Pa(e) {
@@ -9578,18 +9578,18 @@ const Ma = ({
9578
9578
  onComplete: t,
9579
9579
  onBack: a
9580
9580
  }) => {
9581
- const { t: r } = Ie(), { uploadDocument: n, isLoading: o, isSubmitting: d, error: l, submit: p } = ua(e), [f, g] = T({}), [m, w] = T(null), [C, S] = T(0), [K, A] = T({}), W = Ue(
9581
+ const { t: r } = Ie(), { uploadDocument: n, isLoading: o, isSubmitting: l, error: d, submit: p } = ua(e), [f, g] = T({}), [m, w] = T(null), [C, S] = T(0), [K, R] = T({}), W = Ue(
9582
9582
  () => n ? Pa(n.uploadDocumentFiles) : [],
9583
9583
  [n]
9584
9584
  ), V = W[C] ?? [], F = C === W.length - 1, M = W.length, $ = J(() => {
9585
9585
  const z = {};
9586
9586
  for (const j of V)
9587
9587
  j.isRequired && (f[j.id] || []).length === 0 && (z[j.id] = `${j.displayName} is required`);
9588
- return A(z), Object.keys(z).length === 0;
9588
+ return R(z), Object.keys(z).length === 0;
9589
9589
  }, [V, f]), _ = () => {
9590
- $() && (S((z) => z + 1), A({}));
9591
- }, oe = () => {
9592
- C > 0 ? (S((z) => z - 1), A({})) : a == null || a();
9590
+ $() && (S((z) => z + 1), R({}));
9591
+ }, ne = () => {
9592
+ C > 0 ? (S((z) => z - 1), R({})) : a == null || a();
9593
9593
  }, v = async () => {
9594
9594
  if (!(!$() || !n)) {
9595
9595
  w(null);
@@ -9618,10 +9618,10 @@ const Ma = ({
9618
9618
  }
9619
9619
  }
9620
9620
  };
9621
- return o ? /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ s("div", { style: { display: "flex", flexDirection: "column", alignItems: "center", padding: "48px 0", gap: "16px" }, children: [
9621
+ return o ? /* @__PURE__ */ i(re, { children: /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ s("div", { style: { display: "flex", flexDirection: "column", alignItems: "center", padding: "48px 0", gap: "16px" }, children: [
9622
9622
  /* @__PURE__ */ i(Ke, { className: "my-8" }),
9623
9623
  /* @__PURE__ */ i("p", { style: { fontSize: "14px", color: "var(--metakyc-text-muted, #9ca3af)" }, children: r("uploadDocument.loading") })
9624
- ] }) }) }) : l ? /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ s("div", { style: {
9624
+ ] }) }) }) : d ? /* @__PURE__ */ i(re, { children: /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ s("div", { style: {
9625
9625
  display: "flex",
9626
9626
  flexDirection: "column",
9627
9627
  alignItems: "center",
@@ -9643,8 +9643,8 @@ const Ma = ({
9643
9643
  /* @__PURE__ */ i("line", { x1: "9", y1: "9", x2: "15", y2: "15" })
9644
9644
  ] }) }),
9645
9645
  /* @__PURE__ */ i("p", { style: { fontSize: "14px", color: "var(--metakyc-danger, #ef4444)", fontWeight: 500 }, children: r("uploadDocument.errorLoading") }),
9646
- /* @__PURE__ */ i("p", { style: { fontSize: "13px", color: "var(--metakyc-text-muted, #9ca3af)" }, children: l.message })
9647
- ] }) }) }) : n ? /* @__PURE__ */ s(ae, { children: [
9646
+ /* @__PURE__ */ i("p", { style: { fontSize: "13px", color: "var(--metakyc-text-muted, #9ca3af)" }, children: d.message })
9647
+ ] }) }) }) : n ? /* @__PURE__ */ s(re, { children: [
9648
9648
  /* @__PURE__ */ s(Le, { children: [
9649
9649
  /* @__PURE__ */ i("h2", { style: {
9650
9650
  fontSize: "18px",
@@ -9715,7 +9715,7 @@ const Ma = ({
9715
9715
  lineHeight: 1.5
9716
9716
  }, children: n.description })
9717
9717
  ] }),
9718
- /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: "24px" }, children: V.map((z) => /* @__PURE__ */ i(
9718
+ /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: "24px" }, children: V.map((z) => /* @__PURE__ */ i(
9719
9719
  wa,
9720
9720
  {
9721
9721
  label: z.displayName,
@@ -9727,7 +9727,7 @@ const Ma = ({
9727
9727
  error: K[z.id],
9728
9728
  value: f[z.id] || [],
9729
9729
  onChange: (j) => {
9730
- w(null), A((Q) => {
9730
+ w(null), R((Q) => {
9731
9731
  const ee = { ...Q };
9732
9732
  return delete ee[z.id], ee;
9733
9733
  }), g((Q) => ({ ...Q, [z.id]: j }));
@@ -9759,24 +9759,24 @@ const Ma = ({
9759
9759
  width: "100%"
9760
9760
  }, children: [
9761
9761
  /* @__PURE__ */ i(
9762
- re,
9762
+ le,
9763
9763
  {
9764
9764
  type: "button",
9765
9765
  variant: "outline",
9766
- onClick: oe,
9766
+ onClick: ne,
9767
9767
  children: C > 0 ? r("common.previous") : r("common.back")
9768
9768
  }
9769
9769
  ),
9770
9770
  F ? /* @__PURE__ */ i(
9771
- re,
9771
+ le,
9772
9772
  {
9773
9773
  type: "button",
9774
- isLoading: d,
9774
+ isLoading: l,
9775
9775
  onClick: v,
9776
- children: r(d ? "uploadDocument.uploading" : "common.continue")
9776
+ children: r(l ? "uploadDocument.uploading" : "common.continue")
9777
9777
  }
9778
9778
  ) : /* @__PURE__ */ i(
9779
- re,
9779
+ le,
9780
9780
  {
9781
9781
  type: "button",
9782
9782
  onClick: _,
@@ -9786,19 +9786,19 @@ const Ma = ({
9786
9786
  ] }) })
9787
9787
  ] }) : null;
9788
9788
  }, ja = ({ applicantId: e, onComplete: t, onBack: a }) => {
9789
- const { t: r } = Ie(), { overview: n, isLoading: o, isSubmitting: d, error: l, passOverview: p } = ma(e), f = async () => {
9789
+ const { t: r } = Ie(), { overview: n, isLoading: o, isSubmitting: l, error: d, passOverview: p } = ma(e), f = async () => {
9790
9790
  await p(), t == null || t();
9791
9791
  };
9792
- return o ? /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ i(Ke, { className: "my-8" }) }) }) : l ? /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ s("p", { className: "text-danger-500", children: [
9792
+ return o ? /* @__PURE__ */ i(re, { children: /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(Ke, { className: "my-8" }) }) }) : d ? /* @__PURE__ */ i(re, { children: /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ s("p", { className: "text-danger-500", children: [
9793
9793
  r("overview.errorLoading"),
9794
9794
  " ",
9795
- l.message
9796
- ] }) }) }) : n ? /* @__PURE__ */ s(ae, { children: [
9795
+ d.message
9796
+ ] }) }) }) : n ? /* @__PURE__ */ s(re, { children: [
9797
9797
  /* @__PURE__ */ s(Le, { children: [
9798
9798
  /* @__PURE__ */ i("h2", { className: "text-lg font-bold", children: n.title || r("overview.title") }),
9799
9799
  n.description && /* @__PURE__ */ i("p", { className: "mt-1", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: n.description })
9800
9800
  ] }),
9801
- /* @__PURE__ */ i(ne, { className: "space-y-8", children: n.steps && n.steps.length > 0 ? n.steps.sort((g, m) => g.order - m.order).map((g) => /* @__PURE__ */ s("div", { className: "metakyc-overview-step-item flex items-center space-x-3", children: [
9801
+ /* @__PURE__ */ i(ae, { className: "space-y-8", children: n.steps && n.steps.length > 0 ? n.steps.sort((g, m) => g.order - m.order).map((g) => /* @__PURE__ */ s("div", { className: "metakyc-overview-step-item flex items-center space-x-3", children: [
9802
9802
  /* @__PURE__ */ i("div", { className: "metakyc-step-icon flex-shrink-0", children: /* @__PURE__ */ i(
9803
9803
  "div",
9804
9804
  {
@@ -9825,8 +9825,8 @@ const Ma = ({
9825
9825
  )
9826
9826
  ] }, g.order)) : /* @__PURE__ */ i("div", { className: "text-center py-8", children: /* @__PURE__ */ i("p", { style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: r("overview.loadingOverview") }) }) }),
9827
9827
  /* @__PURE__ */ s(Ee, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
9828
- a && /* @__PURE__ */ i(re, { type: "button", variant: "outline", onClick: a, children: r("common.back") }),
9829
- /* @__PURE__ */ i(re, { onClick: f, isLoading: d, children: r("common.continue") })
9828
+ a && /* @__PURE__ */ i(le, { type: "button", variant: "outline", onClick: a, children: r("common.back") }),
9829
+ /* @__PURE__ */ i(le, { onClick: f, isLoading: l, children: r("common.continue") })
9830
9830
  ] })
9831
9831
  ] }) : null;
9832
9832
  };
@@ -9896,18 +9896,18 @@ const Ka = ({
9896
9896
  onComplete: t,
9897
9897
  onBack: a
9898
9898
  }) => {
9899
- const { t: r } = Ie(), { config: n } = Se(), o = n.locale ?? "en", { criteria: d, initialAnswers: l, isLoading: p, isSubmitting: f, error: g, submit: m } = ga(e), [w, C] = T({}), [S, K] = T({}), [A, W] = T(0), [V, F] = T(!1);
9899
+ const { t: r } = Ie(), { config: n } = Se(), o = n.locale ?? "en", { criteria: l, initialAnswers: d, isLoading: p, isSubmitting: f, error: g, submit: m } = ga(e), [w, C] = T({}), [S, K] = T({}), [R, W] = T(0), [V, F] = T(!1);
9900
9900
  ye.useEffect(() => {
9901
- l && Object.keys(l).length > 0 && Object.keys(w).length === 0 && C(l);
9902
- }, [l]);
9901
+ d && Object.keys(d).length > 0 && Object.keys(w).length === 0 && C(d);
9902
+ }, [d]);
9903
9903
  const M = Ue(
9904
- () => d && d.length > 0 ? qa(d) : [],
9905
- [d]
9906
- ), $ = A === M.length - 1, _ = M[A] ?? [];
9904
+ () => l && l.length > 0 ? qa(l) : [],
9905
+ [l]
9906
+ ), $ = R === M.length - 1, _ = M[R] ?? [];
9907
9907
  ye.useEffect(() => {
9908
- !p && d && d.length === 0 && !V && !f && (F(!0), m({ applicantId: e, criteriaValueInputs: [] }).then(() => t == null ? void 0 : t()).catch(console.error));
9909
- }, [p, d, V, f, m, e, t]);
9910
- const oe = J((ee, H) => {
9908
+ !p && l && l.length === 0 && !V && !f && (F(!0), m({ applicantId: e, criteriaValueInputs: [] }).then(() => t == null ? void 0 : t()).catch(console.error));
9909
+ }, [p, l, V, f, m, e, t]);
9910
+ const ne = J((ee, H) => {
9911
9911
  C((te) => ({ ...te, [ee]: H })), K((te) => {
9912
9912
  const pe = { ...te };
9913
9913
  return delete pe[ee], pe;
@@ -9922,11 +9922,11 @@ const Ka = ({
9922
9922
  }, [_, w]), z = () => {
9923
9923
  v() && W((ee) => ee + 1);
9924
9924
  }, j = () => {
9925
- A > 0 ? W((ee) => ee - 1) : a == null || a();
9925
+ R > 0 ? W((ee) => ee - 1) : a == null || a();
9926
9926
  }, Q = async () => {
9927
- if (!(!v() || !d))
9927
+ if (!(!v() || !l))
9928
9928
  try {
9929
- const ee = d.map((te) => {
9929
+ const ee = l.map((te) => {
9930
9930
  const pe = (w[te.id] ?? []).filter((de) => de && de.trim());
9931
9931
  return pe.length > 0 ? { riskCriteriaId: te.id, values: pe } : null;
9932
9932
  }).filter((te) => te !== null);
@@ -9935,50 +9935,50 @@ const Ka = ({
9935
9935
  console.error("Risk scoring submit error:", ee);
9936
9936
  }
9937
9937
  };
9938
- return p ? /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ s(ne, { children: [
9938
+ return p ? /* @__PURE__ */ i(re, { children: /* @__PURE__ */ s(ae, { children: [
9939
9939
  /* @__PURE__ */ i(Ke, { className: "my-8" }),
9940
9940
  /* @__PURE__ */ i("p", { className: "text-center text-sm mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: r("riskScoring.loadingCriteria") })
9941
- ] }) }) : !p && d && d.length === 0 ? /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ s(ne, { children: [
9941
+ ] }) }) : !p && l && l.length === 0 ? /* @__PURE__ */ i(re, { children: /* @__PURE__ */ s(ae, { children: [
9942
9942
  /* @__PURE__ */ i(Ke, { className: "my-8" }),
9943
9943
  /* @__PURE__ */ i("p", { className: "text-center text-sm mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: r("riskScoring.noCriteria") })
9944
- ] }) }) : g ? /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ s("p", { className: "text-danger-500", children: [
9944
+ ] }) }) : g ? /* @__PURE__ */ i(re, { children: /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ s("p", { className: "text-danger-500", children: [
9945
9945
  r("riskScoring.errorLoading"),
9946
9946
  " ",
9947
9947
  g.message
9948
- ] }) }) }) : d ? /* @__PURE__ */ s(ae, { children: [
9948
+ ] }) }) }) : l ? /* @__PURE__ */ s(re, { children: [
9949
9949
  /* @__PURE__ */ s(Le, { children: [
9950
9950
  /* @__PURE__ */ i("h2", { className: "text-lg font-bold", children: r("riskScoring.title") }),
9951
9951
  /* @__PURE__ */ i("p", { className: "text-sm", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: r("riskScoring.subtitle") }),
9952
9952
  M.length > 1 && /* @__PURE__ */ s("div", { className: "flex items-center justify-between mt-3", children: [
9953
- /* @__PURE__ */ i("span", { className: "text-xs", style: { color: "var(--metakyc-text-muted, #9ca3af)" }, children: r("common.pageXofY", { current: A + 1, total: M.length }) }),
9953
+ /* @__PURE__ */ i("span", { className: "text-xs", style: { color: "var(--metakyc-text-muted, #9ca3af)" }, children: r("common.pageXofY", { current: R + 1, total: M.length }) }),
9954
9954
  /* @__PURE__ */ i("div", { className: "flex items-center gap-1.5", children: M.map((ee, H) => /* @__PURE__ */ i(
9955
9955
  "div",
9956
9956
  {
9957
9957
  className: "rounded-full transition-all duration-200",
9958
9958
  style: {
9959
9959
  height: "6px",
9960
- width: H === A ? "20px" : "6px",
9961
- backgroundColor: H <= A ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #e5e7eb)"
9960
+ width: H === R ? "20px" : "6px",
9961
+ backgroundColor: H <= R ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #e5e7eb)"
9962
9962
  }
9963
9963
  },
9964
9964
  H
9965
9965
  )) })
9966
9966
  ] })
9967
9967
  ] }),
9968
- /* @__PURE__ */ i(ne, { className: "space-y-6", children: _.map(({ criterion: ee }) => /* @__PURE__ */ i(
9968
+ /* @__PURE__ */ i(ae, { className: "space-y-6", children: _.map(({ criterion: ee }) => /* @__PURE__ */ i(
9969
9969
  Wa,
9970
9970
  {
9971
9971
  criterion: ee,
9972
9972
  value: w[ee.id] ?? [],
9973
9973
  error: S[ee.id],
9974
9974
  locale: o,
9975
- onChange: (H) => oe(ee.id, H)
9975
+ onChange: (H) => ne(ee.id, H)
9976
9976
  },
9977
9977
  ee.id
9978
9978
  )) }),
9979
9979
  /* @__PURE__ */ s(Ee, { style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
9980
9980
  /* @__PURE__ */ s(
9981
- re,
9981
+ le,
9982
9982
  {
9983
9983
  type: "button",
9984
9984
  variant: "outline",
@@ -9986,12 +9986,12 @@ const Ka = ({
9986
9986
  style: { display: "flex", alignItems: "center", gap: "4px" },
9987
9987
  children: [
9988
9988
  /* @__PURE__ */ i(Li, { size: 14 }),
9989
- A > 0 ? r("common.previous") : r("common.back")
9989
+ R > 0 ? r("common.previous") : r("common.back")
9990
9990
  ]
9991
9991
  }
9992
9992
  ),
9993
- $ ? /* @__PURE__ */ i(re, { type: "button", isLoading: f, onClick: Q, children: r("common.continue") }) : /* @__PURE__ */ s(
9994
- re,
9993
+ $ ? /* @__PURE__ */ i(le, { type: "button", isLoading: f, onClick: Q, children: r("common.continue") }) : /* @__PURE__ */ s(
9994
+ le,
9995
9995
  {
9996
9996
  type: "button",
9997
9997
  onClick: z,
@@ -10009,20 +10009,20 @@ const Ka = ({
10009
10009
  }, children: /* @__PURE__ */ i("p", { className: "text-sm", style: { color: "var(--metakyc-danger, #ef4444)" }, children: g.message }) })
10010
10010
  ] }) : null;
10011
10011
  }, Wa = ({ criterion: e, value: t, error: a, locale: r, onChange: n }) => {
10012
- const { t: o } = Ie(), d = Ua(e), l = e.valueDataType === at.Integer || e.valueDataType === at.Money || e.valueDataType === at.DigitOnly, p = Oa(e), f = (g) => p ? Va(g, r) : g;
10012
+ const { t: o } = Ie(), l = Ua(e), d = e.valueDataType === at.Integer || e.valueDataType === at.Money || e.valueDataType === at.DigitOnly, p = Oa(e), f = (g) => p ? Va(g, r) : g;
10013
10013
  return /* @__PURE__ */ s("div", { className: "space-y-2", children: [
10014
10014
  /* @__PURE__ */ s("label", { className: "block text-sm font-medium", style: { color: "var(--metakyc-text-primary, #111827)" }, children: [
10015
10015
  e.displayName,
10016
10016
  e.isRequired && /* @__PURE__ */ i("span", { className: "text-danger-500 ml-1", children: "*" })
10017
10017
  ] }),
10018
10018
  e.description && /* @__PURE__ */ i("p", { className: "text-xs", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: e.description }),
10019
- l && (e.min !== void 0 || e.max !== void 0) && /* @__PURE__ */ i("p", { className: "text-xs", style: { color: "var(--metakyc-text-muted, #9ca3af)" }, children: e.min !== void 0 && e.max !== void 0 ? o("riskScoring.range", { min: e.min, max: e.max }) : e.min !== void 0 ? o("riskScoring.minimum", { min: e.min }) : o("riskScoring.maximum", { max: e.max }) }),
10020
- d === "text" && /* @__PURE__ */ i(
10019
+ d && (e.min !== void 0 || e.max !== void 0) && /* @__PURE__ */ i("p", { className: "text-xs", style: { color: "var(--metakyc-text-muted, #9ca3af)" }, children: e.min !== void 0 && e.max !== void 0 ? o("riskScoring.range", { min: e.min, max: e.max }) : e.min !== void 0 ? o("riskScoring.minimum", { min: e.min }) : o("riskScoring.maximum", { max: e.max }) }),
10020
+ l === "text" && /* @__PURE__ */ i(
10021
10021
  Ne,
10022
10022
  {
10023
10023
  value: t[0] ?? "",
10024
10024
  onChange: (g) => n([g.target.value]),
10025
- type: l ? "number" : "text",
10025
+ type: d ? "number" : "text",
10026
10026
  placeholder: o("placeholders.enterAnswer"),
10027
10027
  error: a,
10028
10028
  required: e.isRequired,
@@ -10033,7 +10033,7 @@ const Ka = ({
10033
10033
  }
10034
10034
  }
10035
10035
  ),
10036
- d === "radio" && /* @__PURE__ */ s("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
10036
+ l === "radio" && /* @__PURE__ */ s("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
10037
10037
  (e.defaultValues ?? []).map((g) => /* @__PURE__ */ s(
10038
10038
  "div",
10039
10039
  {
@@ -10071,7 +10071,7 @@ const Ka = ({
10071
10071
  )),
10072
10072
  a && /* @__PURE__ */ i("p", { className: "text-sm text-danger-500", children: a })
10073
10073
  ] }),
10074
- d === "checkbox" && /* @__PURE__ */ s("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
10074
+ l === "checkbox" && /* @__PURE__ */ s("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
10075
10075
  (e.defaultValues ?? []).map((g) => {
10076
10076
  const m = t.includes(g), w = () => {
10077
10077
  n(m ? t.filter((C) => C !== g) : [...t, g]);
@@ -10092,7 +10092,7 @@ const Ka = ({
10092
10092
  }),
10093
10093
  a && /* @__PURE__ */ i("p", { className: "text-sm text-danger-500", children: a })
10094
10094
  ] }),
10095
- d === "country" && /* @__PURE__ */ i(
10095
+ l === "country" && /* @__PURE__ */ i(
10096
10096
  Xt,
10097
10097
  {
10098
10098
  value: t[0] ?? "",
@@ -10115,7 +10115,7 @@ const Ka = ({
10115
10115
  onComplete: t,
10116
10116
  onBack: a
10117
10117
  }) => {
10118
- const { t: r } = Ie(), { investorCategorizationService: n } = Se(), [o, d] = T(null), [l, p] = T(!1), [f, g] = T(null);
10118
+ const { t: r } = Ie(), { investorCategorizationService: n } = Se(), [o, l] = T(null), [d, p] = T(!1), [f, g] = T(null);
10119
10119
  return /* @__PURE__ */ i("form", { onSubmit: async (w) => {
10120
10120
  if (w.preventDefault(), o === null) {
10121
10121
  g(r("investorCategorization.pleaseSelect"));
@@ -10135,20 +10135,20 @@ const Ka = ({
10135
10135
  } finally {
10136
10136
  p(!1);
10137
10137
  }
10138
- }, children: /* @__PURE__ */ s(ae, { children: [
10138
+ }, children: /* @__PURE__ */ s(re, { children: [
10139
10139
  /* @__PURE__ */ s(Le, { children: [
10140
10140
  /* @__PURE__ */ i("h2", { className: "text-lg font-bold", style: { color: "var(--metakyc-text-primary, #111827)" }, children: r("investorCategorization.whichStatement") }),
10141
10141
  /* @__PURE__ */ i("p", { className: "mt-2", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: r("investorCategorization.retailInvestorInfo") })
10142
10142
  ] }),
10143
- /* @__PURE__ */ s(ne, { className: "space-y-4", children: [
10143
+ /* @__PURE__ */ s(ae, { className: "space-y-4", children: [
10144
10144
  /* @__PURE__ */ i("p", { className: "text-sm font-medium mb-3", style: { color: "var(--metakyc-text-secondary, #374151)" }, children: r("investorCategorization.chooseOne") }),
10145
10145
  /* @__PURE__ */ i(
10146
10146
  "label",
10147
10147
  {
10148
10148
  className: "block p-4 border-2 rounded-lg cursor-pointer transition-all",
10149
10149
  style: {
10150
- borderColor: o === Re.Individual ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #e5e7eb)",
10151
- backgroundColor: o === Re.Individual ? "var(--metakyc-primary-light, #dbeafe)" : "transparent"
10150
+ borderColor: o === Ae.Individual ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #e5e7eb)",
10151
+ backgroundColor: o === Ae.Individual ? "var(--metakyc-primary-light, #dbeafe)" : "transparent"
10152
10152
  },
10153
10153
  children: /* @__PURE__ */ s("div", { className: "flex items-start", children: [
10154
10154
  /* @__PURE__ */ i(
@@ -10156,9 +10156,9 @@ const Ka = ({
10156
10156
  {
10157
10157
  type: "radio",
10158
10158
  name: "investorType",
10159
- value: Re.Individual,
10160
- checked: o === Re.Individual,
10161
- onChange: () => d(Re.Individual),
10159
+ value: Ae.Individual,
10160
+ checked: o === Ae.Individual,
10161
+ onChange: () => l(Ae.Individual),
10162
10162
  className: "mt-1"
10163
10163
  }
10164
10164
  ),
@@ -10174,8 +10174,8 @@ const Ka = ({
10174
10174
  {
10175
10175
  className: "block p-4 border-2 rounded-lg cursor-pointer transition-all",
10176
10176
  style: {
10177
- borderColor: o === Re.Sophisticated ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #e5e7eb)",
10178
- backgroundColor: o === Re.Sophisticated ? "var(--metakyc-primary-light, #dbeafe)" : "transparent"
10177
+ borderColor: o === Ae.Sophisticated ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #e5e7eb)",
10178
+ backgroundColor: o === Ae.Sophisticated ? "var(--metakyc-primary-light, #dbeafe)" : "transparent"
10179
10179
  },
10180
10180
  children: /* @__PURE__ */ s("div", { className: "flex items-start", children: [
10181
10181
  /* @__PURE__ */ i(
@@ -10183,9 +10183,9 @@ const Ka = ({
10183
10183
  {
10184
10184
  type: "radio",
10185
10185
  name: "investorType",
10186
- value: Re.Sophisticated,
10187
- checked: o === Re.Sophisticated,
10188
- onChange: () => d(Re.Sophisticated),
10186
+ value: Ae.Sophisticated,
10187
+ checked: o === Ae.Sophisticated,
10188
+ onChange: () => l(Ae.Sophisticated),
10189
10189
  className: "mt-1"
10190
10190
  }
10191
10191
  ),
@@ -10201,8 +10201,8 @@ const Ka = ({
10201
10201
  {
10202
10202
  className: "block p-4 border-2 rounded-lg cursor-pointer transition-all",
10203
10203
  style: {
10204
- borderColor: o === Re.HighNetWorth ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #e5e7eb)",
10205
- backgroundColor: o === Re.HighNetWorth ? "var(--metakyc-primary-light, #dbeafe)" : "transparent"
10204
+ borderColor: o === Ae.HighNetWorth ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #e5e7eb)",
10205
+ backgroundColor: o === Ae.HighNetWorth ? "var(--metakyc-primary-light, #dbeafe)" : "transparent"
10206
10206
  },
10207
10207
  children: /* @__PURE__ */ s("div", { className: "flex items-start", children: [
10208
10208
  /* @__PURE__ */ i(
@@ -10210,9 +10210,9 @@ const Ka = ({
10210
10210
  {
10211
10211
  type: "radio",
10212
10212
  name: "investorType",
10213
- value: Re.HighNetWorth,
10214
- checked: o === Re.HighNetWorth,
10215
- onChange: () => d(Re.HighNetWorth),
10213
+ value: Ae.HighNetWorth,
10214
+ checked: o === Ae.HighNetWorth,
10215
+ onChange: () => l(Ae.HighNetWorth),
10216
10216
  className: "mt-1"
10217
10217
  }
10218
10218
  ),
@@ -10230,12 +10230,12 @@ const Ka = ({
10230
10230
  ] }) })
10231
10231
  ] }),
10232
10232
  /* @__PURE__ */ s(Ee, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
10233
- a && /* @__PURE__ */ i(re, { type: "button", variant: "outline", onClick: a, children: r("common.back") }),
10233
+ a && /* @__PURE__ */ i(le, { type: "button", variant: "outline", onClick: a, children: r("common.back") }),
10234
10234
  /* @__PURE__ */ i(
10235
- re,
10235
+ le,
10236
10236
  {
10237
10237
  type: "submit",
10238
- isLoading: l,
10238
+ isLoading: d,
10239
10239
  disabled: o === null,
10240
10240
  children: r("common.submit")
10241
10241
  }
@@ -10247,7 +10247,7 @@ const Ka = ({
10247
10247
  onComplete: t,
10248
10248
  onBack: a
10249
10249
  }) => {
10250
- const { t: r } = Ie(), { additionalDataService: n } = Se(), [o, d] = T(null), [l, p] = T(!1), [f, g] = T(null), m = async (C) => {
10250
+ const { t: r } = Ie(), { additionalDataService: n } = Se(), [o, l] = T(null), [d, p] = T(!1), [f, g] = T(null), m = async (C) => {
10251
10251
  if (C.preventDefault(), o === null) {
10252
10252
  g(r("investorCategorization.pleaseSelect"));
10253
10253
  return;
@@ -10257,7 +10257,7 @@ const Ka = ({
10257
10257
  (await n.setAdditionalData({
10258
10258
  applicantId: e,
10259
10259
  items: [
10260
- { paramName: "investor_type", value: Re[o] }
10260
+ { paramName: "investor_type", value: Ae[o] }
10261
10261
  ]
10262
10262
  })).isSuccess && (t == null || t());
10263
10263
  } catch (S) {
@@ -10267,27 +10267,27 @@ const Ka = ({
10267
10267
  }
10268
10268
  }, w = [
10269
10269
  {
10270
- value: Re.Individual,
10270
+ value: Ae.Individual,
10271
10271
  label: r("investorCategorization.individualInvestor"),
10272
10272
  desc: r("investorCategorization.individualInvestorDesc")
10273
10273
  },
10274
10274
  {
10275
- value: Re.Sophisticated,
10275
+ value: Ae.Sophisticated,
10276
10276
  label: r("investorCategorization.sophisticatedInvestor"),
10277
10277
  desc: r("investorCategorization.sophisticatedInvestorDesc")
10278
10278
  },
10279
10279
  {
10280
- value: Re.HighNetWorth,
10280
+ value: Ae.HighNetWorth,
10281
10281
  label: r("investorCategorization.highNetworthInvestor"),
10282
10282
  desc: r("investorCategorization.highNetworthInvestorDesc")
10283
10283
  }
10284
10284
  ];
10285
- return /* @__PURE__ */ i("form", { onSubmit: m, children: /* @__PURE__ */ s(ae, { children: [
10285
+ return /* @__PURE__ */ i("form", { onSubmit: m, children: /* @__PURE__ */ s(re, { children: [
10286
10286
  /* @__PURE__ */ s(Le, { children: [
10287
10287
  /* @__PURE__ */ i("h2", { className: "text-lg font-bold", style: { color: "var(--metakyc-text-primary, #111827)" }, children: r("investorCategorization.whichStatement") }),
10288
10288
  /* @__PURE__ */ i("p", { className: "mt-2", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: r("investorCategorization.retailInvestorInfo") })
10289
10289
  ] }),
10290
- /* @__PURE__ */ s(ne, { className: "space-y-4", children: [
10290
+ /* @__PURE__ */ s(ae, { className: "space-y-4", children: [
10291
10291
  /* @__PURE__ */ i("p", { className: "text-sm font-medium mb-3", style: { color: "var(--metakyc-text-secondary, #374151)" }, children: r("investorCategorization.chooseOne") }),
10292
10292
  w.map((C) => /* @__PURE__ */ i(
10293
10293
  "label",
@@ -10305,7 +10305,7 @@ const Ka = ({
10305
10305
  name: "additionalDataType",
10306
10306
  value: C.value,
10307
10307
  checked: o === C.value,
10308
- onChange: () => d(C.value),
10308
+ onChange: () => l(C.value),
10309
10309
  className: "mt-1"
10310
10310
  }
10311
10311
  ),
@@ -10324,12 +10324,12 @@ const Ka = ({
10324
10324
  ] }) })
10325
10325
  ] }),
10326
10326
  /* @__PURE__ */ s(Ee, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
10327
- a && /* @__PURE__ */ i(re, { type: "button", variant: "outline", onClick: a, children: r("common.back") }),
10327
+ a && /* @__PURE__ */ i(le, { type: "button", variant: "outline", onClick: a, children: r("common.back") }),
10328
10328
  /* @__PURE__ */ i(
10329
- re,
10329
+ le,
10330
10330
  {
10331
10331
  type: "submit",
10332
- isLoading: l,
10332
+ isLoading: d,
10333
10333
  disabled: o === null,
10334
10334
  children: r("common.submit")
10335
10335
  }
@@ -10350,13 +10350,13 @@ const Ya = ({
10350
10350
  onComplete: t,
10351
10351
  onBack: a
10352
10352
  }) => {
10353
- const { t: r } = Ie(), { appropriatenessTestService: n } = Se(), [o, d] = T(null), [l, p] = T(!0), [f, g] = T(!1), [m, w] = T(null), [C, S] = T({}), [K, A] = T(0), [W, V] = T(!1), [F, M] = T(!1), [$, _] = T(0), [oe, v] = T(0), [z, j] = T(null);
10353
+ const { t: r } = Ie(), { appropriatenessTestService: n } = Se(), [o, l] = T(null), [d, p] = T(!0), [f, g] = T(!1), [m, w] = T(null), [C, S] = T({}), [K, R] = T(0), [W, V] = T(!1), [F, M] = T(!1), [$, _] = T(0), [ne, v] = T(0), [z, j] = T(null);
10354
10354
  ge(() => {
10355
10355
  (async () => {
10356
10356
  try {
10357
10357
  p(!0), w(null);
10358
10358
  const I = await n.getAppropriatenessTest(e);
10359
- if (d(I), I.waitTimeSpanForNextTry && I.waitTimeSpanForNextTry !== "00:00:00") {
10359
+ if (l(I), I.waitTimeSpanForNextTry && I.waitTimeSpanForNextTry !== "00:00:00") {
10360
10360
  const O = yi(I.waitTimeSpanForNextTry);
10361
10361
  O > 0 && _(O);
10362
10362
  }
@@ -10369,7 +10369,7 @@ const Ya = ({
10369
10369
  }, [e, n]), ge(() => {
10370
10370
  if (!W || K <= 0) return;
10371
10371
  const I = setInterval(() => {
10372
- A((O) => O <= 1 ? (M(!0), 0) : O - 1);
10372
+ R((O) => O <= 1 ? (M(!0), 0) : O - 1);
10373
10373
  }, 1e3);
10374
10374
  return () => clearInterval(I);
10375
10375
  }, [W, K]), ge(() => {
@@ -10382,13 +10382,13 @@ const Ya = ({
10382
10382
  F && !f && te();
10383
10383
  }, [F]);
10384
10384
  const Q = () => {
10385
- o && (V(!0), A(o.testDurationSec), v(0), S({}), w(null));
10385
+ o && (V(!0), R(o.testDurationSec), v(0), S({}), w(null));
10386
10386
  }, ee = (I, O) => {
10387
10387
  S((G) => ({ ...G, [I]: O }));
10388
10388
  }, H = J(async () => {
10389
10389
  try {
10390
10390
  const I = await n.getAppropriatenessTest(e);
10391
- if (d(I), I.waitTimeSpanForNextTry && I.waitTimeSpanForNextTry !== "00:00:00") {
10391
+ if (l(I), I.waitTimeSpanForNextTry && I.waitTimeSpanForNextTry !== "00:00:00") {
10392
10392
  const O = yi(I.waitTimeSpanForNextTry);
10393
10393
  O > 0 && _(O);
10394
10394
  }
@@ -10430,21 +10430,21 @@ const Ya = ({
10430
10430
  }, pe = () => {
10431
10431
  V(!1), M(!1), S({}), v(0);
10432
10432
  };
10433
- if (l)
10434
- return /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ s("div", { style: { display: "flex", flexDirection: "column", alignItems: "center", padding: "48px 0", gap: "16px" }, children: [
10433
+ if (d)
10434
+ return /* @__PURE__ */ i(re, { children: /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ s("div", { style: { display: "flex", flexDirection: "column", alignItems: "center", padding: "48px 0", gap: "16px" }, children: [
10435
10435
  /* @__PURE__ */ i(Ke, { className: "my-8" }),
10436
10436
  /* @__PURE__ */ i("p", { style: { fontSize: "14px", color: "var(--metakyc-text-muted, #9ca3af)" }, children: r("appropriatenessTest.loadingTest") })
10437
10437
  ] }) }) });
10438
10438
  if (!o)
10439
- return /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ s("div", { style: { textAlign: "center", padding: "48px 0" }, children: [
10439
+ return /* @__PURE__ */ i(re, { children: /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ s("div", { style: { textAlign: "center", padding: "48px 0" }, children: [
10440
10440
  /* @__PURE__ */ i("p", { style: { fontSize: "16px", fontWeight: 600, color: "var(--metakyc-danger, #ef4444)" }, children: r("appropriatenessTest.noTestData") }),
10441
10441
  m && /* @__PURE__ */ i("p", { style: { fontSize: "14px", color: "var(--metakyc-text-muted, #9ca3af)", marginTop: "8px" }, children: m })
10442
10442
  ] }) }) });
10443
- const de = o.testAllowedMaxTry - o.totalFailedTries, Te = o.appropriatenessQuestions.length, le = Object.keys(C).length;
10443
+ const de = o.testAllowedMaxTry - o.totalFailedTries, Te = o.appropriatenessQuestions.length, se = Object.keys(C).length;
10444
10444
  if ($ > 0)
10445
- return /* @__PURE__ */ s(ae, { children: [
10445
+ return /* @__PURE__ */ s(re, { children: [
10446
10446
  /* @__PURE__ */ i(Le, { children: /* @__PURE__ */ i("h2", { style: { fontSize: "18px", fontWeight: 700, color: "var(--metakyc-text-primary, #111827)", margin: 0 }, children: o.displayName }) }),
10447
- /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ s("div", { style: { textAlign: "center", padding: "32px 0" }, children: [
10447
+ /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ s("div", { style: { textAlign: "center", padding: "32px 0" }, children: [
10448
10448
  /* @__PURE__ */ i("div", { style: {
10449
10449
  width: "100px",
10450
10450
  height: "100px",
@@ -10475,8 +10475,8 @@ const Ya = ({
10475
10475
  const I = () => {
10476
10476
  j(null), pe(), w(null);
10477
10477
  };
10478
- return /* @__PURE__ */ s(ae, { children: [
10479
- /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ s("div", { style: {
10478
+ return /* @__PURE__ */ s(re, { children: [
10479
+ /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ s("div", { style: {
10480
10480
  display: "flex",
10481
10481
  flexDirection: "column",
10482
10482
  alignItems: "center",
@@ -10537,20 +10537,20 @@ const Ya = ({
10537
10537
  margin: 0
10538
10538
  }, children: r("appropriatenessTest.noAttemptsRemaining") }) })
10539
10539
  ] }) }),
10540
- /* @__PURE__ */ i(Ee, { children: /* @__PURE__ */ i("div", { style: { display: "flex", justifyContent: "center", width: "100%", gap: "12px" }, children: z.success ? /* @__PURE__ */ i(re, { type: "button", onClick: () => t == null ? void 0 : t(), children: r("common.continue") }) : /* @__PURE__ */ s(bt, { children: [
10541
- de > 0 && $ <= 0 && /* @__PURE__ */ i(re, { type: "button", onClick: I, children: r("appropriatenessTest.retakeTest") }),
10542
- de > 0 && $ > 0 && /* @__PURE__ */ i(re, { type: "button", onClick: I, children: r("appropriatenessTest.ok") }),
10543
- de <= 0 && a && /* @__PURE__ */ i(re, { type: "button", variant: "outline", onClick: a, children: r("common.back") })
10540
+ /* @__PURE__ */ i(Ee, { children: /* @__PURE__ */ i("div", { style: { display: "flex", justifyContent: "center", width: "100%", gap: "12px" }, children: z.success ? /* @__PURE__ */ i(le, { type: "button", onClick: () => t == null ? void 0 : t(), children: r("common.continue") }) : /* @__PURE__ */ s(Ct, { children: [
10541
+ de > 0 && $ <= 0 && /* @__PURE__ */ i(le, { type: "button", onClick: I, children: r("appropriatenessTest.retakeTest") }),
10542
+ de > 0 && $ > 0 && /* @__PURE__ */ i(le, { type: "button", onClick: I, children: r("appropriatenessTest.ok") }),
10543
+ de <= 0 && a && /* @__PURE__ */ i(le, { type: "button", variant: "outline", onClick: a, children: r("common.back") })
10544
10544
  ] }) }) })
10545
10545
  ] });
10546
10546
  }
10547
10547
  if (!W)
10548
- return /* @__PURE__ */ s(ae, { children: [
10548
+ return /* @__PURE__ */ s(re, { children: [
10549
10549
  /* @__PURE__ */ s(Le, { children: [
10550
10550
  /* @__PURE__ */ i("h2", { style: { fontSize: "18px", fontWeight: 700, color: "var(--metakyc-text-primary, #111827)", margin: 0 }, children: o.displayName }),
10551
10551
  o.subtitle && /* @__PURE__ */ i("p", { style: { fontSize: "14px", color: "var(--metakyc-text-secondary, #6b7280)", marginTop: "4px" }, children: o.subtitle })
10552
10552
  ] }),
10553
- /* @__PURE__ */ s(ne, { children: [
10553
+ /* @__PURE__ */ s(ae, { children: [
10554
10554
  o.description && /* @__PURE__ */ s("div", { style: {
10555
10555
  marginBottom: "20px",
10556
10556
  padding: "12px 14px",
@@ -10609,17 +10609,17 @@ const Ya = ({
10609
10609
  }, children: /* @__PURE__ */ i("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", margin: 0 }, children: r("appropriatenessTest.allAttemptsUsed") }) })
10610
10610
  ] }),
10611
10611
  /* @__PURE__ */ i(Ee, { children: /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", justifyContent: a ? "space-between" : "flex-end", width: "100%" }, children: [
10612
- a && /* @__PURE__ */ i(re, { type: "button", variant: "outline", onClick: a, children: r("common.back") }),
10613
- /* @__PURE__ */ i(re, { type: "button", onClick: Q, disabled: de <= 0, children: r("appropriatenessTest.startTest") })
10612
+ a && /* @__PURE__ */ i(le, { type: "button", variant: "outline", onClick: a, children: r("common.back") }),
10613
+ /* @__PURE__ */ i(le, { type: "button", onClick: Q, disabled: de <= 0, children: r("appropriatenessTest.startTest") })
10614
10614
  ] }) })
10615
10615
  ] });
10616
- const ke = o.appropriatenessQuestions[oe], ve = oe === Te - 1, he = le === Te, R = K <= 60;
10617
- return /* @__PURE__ */ s(ae, { children: [
10616
+ const ke = o.appropriatenessQuestions[ne], ve = ne === Te - 1, he = se === Te, A = K <= 60;
10617
+ return /* @__PURE__ */ s(re, { children: [
10618
10618
  /* @__PURE__ */ s(Le, { children: [
10619
10619
  /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
10620
10620
  /* @__PURE__ */ s("div", { children: [
10621
10621
  /* @__PURE__ */ i("h2", { style: { fontSize: "18px", fontWeight: 700, color: "var(--metakyc-text-primary, #111827)", margin: 0 }, children: o.displayName }),
10622
- /* @__PURE__ */ i("p", { style: { fontSize: "12px", color: "var(--metakyc-text-muted, #9ca3af)", marginTop: "2px" }, children: r("appropriatenessTest.questionXofY", { current: oe + 1, total: Te }) })
10622
+ /* @__PURE__ */ i("p", { style: { fontSize: "12px", color: "var(--metakyc-text-muted, #9ca3af)", marginTop: "2px" }, children: r("appropriatenessTest.questionXofY", { current: ne + 1, total: Te }) })
10623
10623
  ] }),
10624
10624
  /* @__PURE__ */ s("div", { style: {
10625
10625
  display: "flex",
@@ -10627,7 +10627,7 @@ const Ya = ({
10627
10627
  gap: "8px",
10628
10628
  padding: "6px 14px",
10629
10629
  borderRadius: "999px",
10630
- backgroundColor: R ? "color-mix(in srgb, var(--metakyc-danger, #ef4444) 10%, transparent)" : "var(--metakyc-surface, #f3f4f6)",
10630
+ backgroundColor: A ? "color-mix(in srgb, var(--metakyc-danger, #ef4444) 10%, transparent)" : "var(--metakyc-surface, #f3f4f6)",
10631
10631
  transition: "all 0.3s ease"
10632
10632
  }, children: [
10633
10633
  /* @__PURE__ */ s(
@@ -10637,7 +10637,7 @@ const Ya = ({
10637
10637
  height: "16",
10638
10638
  viewBox: "0 0 24 24",
10639
10639
  fill: "none",
10640
- stroke: R ? "var(--metakyc-danger, #ef4444)" : "var(--metakyc-text-muted, #9ca3af)",
10640
+ stroke: A ? "var(--metakyc-danger, #ef4444)" : "var(--metakyc-text-muted, #9ca3af)",
10641
10641
  strokeWidth: "2",
10642
10642
  strokeLinecap: "round",
10643
10643
  strokeLinejoin: "round",
@@ -10651,7 +10651,7 @@ const Ya = ({
10651
10651
  fontSize: "16px",
10652
10652
  fontWeight: 700,
10653
10653
  fontVariantNumeric: "tabular-nums",
10654
- color: R ? "var(--metakyc-danger, #ef4444)" : "var(--metakyc-text-primary, #111827)",
10654
+ color: A ? "var(--metakyc-danger, #ef4444)" : "var(--metakyc-text-primary, #111827)",
10655
10655
  transition: "color 0.3s ease"
10656
10656
  }, children: qt(K) })
10657
10657
  ] })
@@ -10666,7 +10666,7 @@ const Ya = ({
10666
10666
  height: "100%",
10667
10667
  borderRadius: "999px",
10668
10668
  backgroundColor: "var(--metakyc-primary, #2563eb)",
10669
- width: `${le / Te * 100}%`,
10669
+ width: `${se / Te * 100}%`,
10670
10670
  transition: "width 0.3s ease"
10671
10671
  } }) }),
10672
10672
  /* @__PURE__ */ s("div", { style: {
@@ -10675,7 +10675,7 @@ const Ya = ({
10675
10675
  marginTop: "4px"
10676
10676
  }, children: [
10677
10677
  /* @__PURE__ */ s("span", { style: { fontSize: "11px", color: "var(--metakyc-text-muted, #9ca3af)" }, children: [
10678
- le,
10678
+ se,
10679
10679
  " ",
10680
10680
  r("appropriatenessTest.answered")
10681
10681
  ] }),
@@ -10687,12 +10687,12 @@ const Ya = ({
10687
10687
  ] })
10688
10688
  ] })
10689
10689
  ] }),
10690
- /* @__PURE__ */ s(ne, { children: [
10690
+ /* @__PURE__ */ s(ae, { children: [
10691
10691
  ke && /* @__PURE__ */ i(
10692
10692
  Ga,
10693
10693
  {
10694
10694
  question: ke,
10695
- index: oe,
10695
+ index: ne,
10696
10696
  selectedAnswer: C[ke.id],
10697
10697
  onSelect: (I) => ee(ke.id, I),
10698
10698
  disabled: f
@@ -10713,8 +10713,8 @@ const Ya = ({
10713
10713
  width: "28px",
10714
10714
  height: "28px",
10715
10715
  borderRadius: "8px",
10716
- border: O === oe ? "2px solid var(--metakyc-primary, #2563eb)" : "1px solid var(--metakyc-border, #e5e7eb)",
10717
- backgroundColor: C[I.id] ? O === oe ? "color-mix(in srgb, var(--metakyc-primary, #2563eb) 15%, transparent)" : "color-mix(in srgb, var(--metakyc-primary, #2563eb) 8%, transparent)" : O === oe ? "var(--metakyc-surface, #f9fafb)" : "var(--metakyc-background, #ffffff)",
10716
+ border: O === ne ? "2px solid var(--metakyc-primary, #2563eb)" : "1px solid var(--metakyc-border, #e5e7eb)",
10717
+ backgroundColor: C[I.id] ? O === ne ? "color-mix(in srgb, var(--metakyc-primary, #2563eb) 15%, transparent)" : "color-mix(in srgb, var(--metakyc-primary, #2563eb) 8%, transparent)" : O === ne ? "var(--metakyc-surface, #f9fafb)" : "var(--metakyc-background, #ffffff)",
10718
10718
  color: C[I.id] ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-text-muted, #9ca3af)",
10719
10719
  fontSize: "12px",
10720
10720
  fontWeight: 600,
@@ -10755,20 +10755,20 @@ const Ya = ({
10755
10755
  ] }),
10756
10756
  /* @__PURE__ */ i(Ee, { children: /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", width: "100%" }, children: [
10757
10757
  /* @__PURE__ */ i(
10758
- re,
10758
+ le,
10759
10759
  {
10760
10760
  type: "button",
10761
10761
  variant: "outline",
10762
10762
  onClick: () => {
10763
- oe > 0 ? v((I) => I - 1) : a == null || a();
10763
+ ne > 0 ? v((I) => I - 1) : a == null || a();
10764
10764
  },
10765
10765
  disabled: f,
10766
- children: oe > 0 ? r("common.previous") : r("common.cancel")
10766
+ children: ne > 0 ? r("common.previous") : r("common.cancel")
10767
10767
  }
10768
10768
  ),
10769
10769
  /* @__PURE__ */ s("div", { style: { display: "flex", gap: "8px" }, children: [
10770
10770
  !ve && /* @__PURE__ */ i(
10771
- re,
10771
+ le,
10772
10772
  {
10773
10773
  type: "button",
10774
10774
  onClick: () => v((I) => I + 1),
@@ -10776,7 +10776,7 @@ const Ya = ({
10776
10776
  }
10777
10777
  ),
10778
10778
  (ve || he) && /* @__PURE__ */ i(
10779
- re,
10779
+ le,
10780
10780
  {
10781
10781
  type: "button",
10782
10782
  isLoading: f,
@@ -10853,7 +10853,7 @@ const Ya = ({
10853
10853
  }, children: e.question })
10854
10854
  ] }),
10855
10855
  /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: "8px" }, children: e.answers.map((n, o) => {
10856
- const d = t === n;
10856
+ const l = t === n;
10857
10857
  return /* @__PURE__ */ s(
10858
10858
  "label",
10859
10859
  {
@@ -10863,30 +10863,30 @@ const Ya = ({
10863
10863
  gap: "12px",
10864
10864
  padding: "14px 16px",
10865
10865
  borderRadius: "10px",
10866
- border: `2px solid ${d ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #e5e7eb)"}`,
10867
- backgroundColor: d ? "color-mix(in srgb, var(--metakyc-primary, #2563eb) 5%, var(--metakyc-background, #ffffff))" : "var(--metakyc-background, #ffffff)",
10866
+ border: `2px solid ${l ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #e5e7eb)"}`,
10867
+ backgroundColor: l ? "color-mix(in srgb, var(--metakyc-primary, #2563eb) 5%, var(--metakyc-background, #ffffff))" : "var(--metakyc-background, #ffffff)",
10868
10868
  cursor: r ? "default" : "pointer",
10869
10869
  transition: "all 0.15s ease",
10870
10870
  opacity: r ? 0.6 : 1
10871
10871
  },
10872
- onMouseEnter: (l) => {
10873
- !r && !d && (l.currentTarget.style.borderColor = "color-mix(in srgb, var(--metakyc-primary, #2563eb) 50%, var(--metakyc-border, #e5e7eb))");
10872
+ onMouseEnter: (d) => {
10873
+ !r && !l && (d.currentTarget.style.borderColor = "color-mix(in srgb, var(--metakyc-primary, #2563eb) 50%, var(--metakyc-border, #e5e7eb))");
10874
10874
  },
10875
- onMouseLeave: (l) => {
10876
- d || (l.currentTarget.style.borderColor = "var(--metakyc-border, #e5e7eb)");
10875
+ onMouseLeave: (d) => {
10876
+ l || (d.currentTarget.style.borderColor = "var(--metakyc-border, #e5e7eb)");
10877
10877
  },
10878
10878
  children: [
10879
10879
  /* @__PURE__ */ i("div", { style: {
10880
10880
  width: "20px",
10881
10881
  height: "20px",
10882
10882
  borderRadius: "50%",
10883
- border: `2px solid ${d ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #d1d5db)"}`,
10883
+ border: `2px solid ${l ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #d1d5db)"}`,
10884
10884
  display: "flex",
10885
10885
  alignItems: "center",
10886
10886
  justifyContent: "center",
10887
10887
  flexShrink: 0,
10888
10888
  transition: "border-color 0.15s ease"
10889
- }, children: d && /* @__PURE__ */ i("div", { style: {
10889
+ }, children: l && /* @__PURE__ */ i("div", { style: {
10890
10890
  width: "10px",
10891
10891
  height: "10px",
10892
10892
  borderRadius: "50%",
@@ -10898,7 +10898,7 @@ const Ya = ({
10898
10898
  type: "radio",
10899
10899
  name: `q-${e.id}`,
10900
10900
  value: n,
10901
- checked: d,
10901
+ checked: l,
10902
10902
  onChange: () => a(n),
10903
10903
  disabled: r,
10904
10904
  style: { position: "absolute", opacity: 0, width: 0, height: 0 }
@@ -10906,8 +10906,8 @@ const Ya = ({
10906
10906
  ),
10907
10907
  /* @__PURE__ */ i("span", { style: {
10908
10908
  fontSize: "14px",
10909
- color: d ? "var(--metakyc-text-primary, #111827)" : "var(--metakyc-text-secondary, #6b7280)",
10910
- fontWeight: d ? 500 : 400,
10909
+ color: l ? "var(--metakyc-text-primary, #111827)" : "var(--metakyc-text-secondary, #6b7280)",
10910
+ fontWeight: l ? 500 : 400,
10911
10911
  transition: "color 0.15s ease"
10912
10912
  }, children: n })
10913
10913
  ]
@@ -10921,7 +10921,7 @@ const Ya = ({
10921
10921
  onBack: a
10922
10922
  }) => {
10923
10923
  var gt, b, q, P;
10924
- const { t: r } = Ie(), { applicantService: n, baseInformationService: o, identityService: d, config: l, currentTheme: p } = Se(), { identityData: f, provider: g, token: m, isLoading: w, error: C, requestIdentity: S, restartIdentity: K } = pa(e), [A, W] = T(null), [V, F] = T(null), [M, $] = T([]), [_, oe] = T([]), [v, z] = T(!0), [j, Q] = T(!1), [ee, H] = T(null), [te, pe] = T(!1), de = ye.useRef(!1), [Te, le] = T("idle"), ke = me(!1), ve = me(null), [he, R] = T({}), [I, O] = T({}), G = p != null && p.reviewPageFields && p.reviewPageFields.length > 0 ? p.reviewPageFields[0] : null, X = !!(p != null && p.reviewPageDisabled), B = me(!1);
10924
+ const { t: r } = Ie(), { applicantService: n, baseInformationService: o, identityService: l, config: d, currentTheme: p } = Se(), { identityData: f, provider: g, token: m, isLoading: w, error: C, requestIdentity: S, restartIdentity: K } = pa(e), [R, W] = T(null), [V, F] = T(null), [M, $] = T([]), [_, ne] = T([]), [v, z] = T(!0), [j, Q] = T(!1), [ee, H] = T(null), [te, pe] = T(!1), de = ye.useRef(!1), [Te, se] = T("idle"), ke = me(!1), ve = me(null), [he, A] = T({}), [I, O] = T({}), G = p != null && p.reviewPageFields && p.reviewPageFields.length > 0 ? p.reviewPageFields[0] : null, X = !!(p != null && p.reviewPageDisabled), B = me(!1);
10925
10925
  B.current = X;
10926
10926
  const Z = Bi({
10927
10927
  defaultValues: {
@@ -10951,9 +10951,9 @@ const Ya = ({
10951
10951
  const U = /* @__PURE__ */ new Set(), c = D.map((x) => ({ value: x.abbreviation3 || x.abbreviation, label: x.name })).filter((x) => !x.value || U.has(x.value) ? !1 : (U.add(x.value), !0));
10952
10952
  $(c);
10953
10953
  const E = /* @__PURE__ */ new Set(), N = L.filter((x) => x.countryCode).map((x) => ({ value: x.countryCode, label: `${x.countryCode} – ${x.name}` })).filter((x) => E.has(x.value) ? !1 : (E.add(x.value), !0));
10954
- oe(N);
10954
+ ne(N);
10955
10955
  const u = h.applicantRequestData;
10956
- if (R({
10956
+ if (A({
10957
10957
  firstName: (u == null ? void 0 : u.firstName) || "",
10958
10958
  lastName: (u == null ? void 0 : u.lastName) || "",
10959
10959
  email: (u == null ? void 0 : u.email) || "",
@@ -11024,7 +11024,7 @@ const Ya = ({
11024
11024
  }
11025
11025
  }
11026
11026
  }, [m]);
11027
- const fe = 5e3, Ae = 600 * 1e3, Ce = J(() => {
11027
+ const fe = 5e3, Re = 600 * 1e3, Ce = J(() => {
11028
11028
  ke.current || (ke.current = !0, ve.current && (clearInterval(ve.current), ve.current = null), t == null || t());
11029
11029
  }, [t]);
11030
11030
  ge(() => {
@@ -11036,7 +11036,7 @@ const Ya = ({
11036
11036
  const L = await n.getProgress(e);
11037
11037
  if (ke.current) return;
11038
11038
  const U = (D = L.currentStep) == null ? void 0 : D.action, c = L.status;
11039
- if (U !== void 0 && U !== se.IdentitySdk) {
11039
+ if (U !== void 0 && U !== oe.IdentitySdk) {
11040
11040
  console.log("[Identity Polling] Step changed — advancing"), Ce();
11041
11041
  return;
11042
11042
  }
@@ -11050,7 +11050,7 @@ const Ya = ({
11050
11050
  console.log("[Identity Polling] On hold — keep polling");
11051
11051
  return;
11052
11052
  }
11053
- Date.now() - y > Ae && (console.log("[Identity Polling] Max poll duration reached — stopping"), ve.current && (clearInterval(ve.current), ve.current = null));
11053
+ Date.now() - y > Re && (console.log("[Identity Polling] Max poll duration reached — stopping"), ve.current && (clearInterval(ve.current), ve.current = null));
11054
11054
  } catch (L) {
11055
11055
  console.warn("[Identity Polling] Error:", L);
11056
11056
  }
@@ -11061,16 +11061,16 @@ const Ya = ({
11061
11061
  }, [j, e, n, Ce]);
11062
11062
  const _e = g !== null && g === Ge.Sumsub;
11063
11063
  ge(() => {
11064
- if (g !== null && m && !A && j && !te) {
11064
+ if (g !== null && m && !R && j && !te) {
11065
11065
  const y = g;
11066
11066
  if (_e) {
11067
11067
  console.log("[Sumsub] Fetching access token for Web SDK…"), H(null), (async () => {
11068
11068
  try {
11069
- const h = await d.refreshSumsubToken(e), D = ct.parseProviderConfig(g, m, l);
11070
- D.accessToken = h, D.onTokenRefresh = () => d.refreshSumsubToken(e);
11069
+ const h = await l.refreshSumsubToken(e), D = ct.parseProviderConfig(g, m, d);
11070
+ D.accessToken = h, D.onTokenRefresh = () => l.refreshSumsubToken(e);
11071
11071
  const L = ct.createProvider(g, D);
11072
11072
  L.onComplete((U) => {
11073
- console.log("[Sumsub] Verification complete:", U), le("processing"), setTimeout(() => Ce(), 3e3);
11073
+ console.log("[Sumsub] Verification complete:", U), se("processing"), setTimeout(() => Ce(), 3e3);
11074
11074
  }), L.onError((U) => {
11075
11075
  console.error("[Sumsub] SDK error:", U), (typeof U == "string" ? U : (U == null ? void 0 : U.message) || "Unknown error").toLowerCase().includes("expired") && (pe(!0), H(r("identity.sessionExpiredRestart")));
11076
11076
  }), await L.initialize("sumsub-websdk-container"), console.log("[Sumsub] Web SDK launched"), W(L);
@@ -11086,7 +11086,7 @@ const Ya = ({
11086
11086
  if (new URL(m.url), y === Ge.SardinAI) {
11087
11087
  console.log("[SardinAI] Initializing Risk SDK in background...");
11088
11088
  try {
11089
- const h = ct.parseProviderConfig(g, m, l);
11089
+ const h = ct.parseProviderConfig(g, m, d);
11090
11090
  ct.createProvider(g, h).initialize().then(() => console.log("[SardinAI] Risk SDK initialized in background")).catch((L) => console.warn("[SardinAI] Risk SDK init failed (non-blocking):", L));
11091
11091
  } catch (h) {
11092
11092
  console.warn("[SardinAI] Risk SDK setup failed (non-blocking):", h);
@@ -11101,9 +11101,9 @@ const Ya = ({
11101
11101
  if (y === Ge.SardinAI) {
11102
11102
  console.log("[SardinAI] No URL provided - initializing Risk SDK only..."), H(null);
11103
11103
  try {
11104
- const h = ct.parseProviderConfig(g, m, l), D = ct.createProvider(g, h);
11104
+ const h = ct.parseProviderConfig(g, m, d), D = ct.createProvider(g, h);
11105
11105
  D.initialize().then(() => {
11106
- console.log("[SardinAI] Risk SDK initialized successfully"), W(D), le("processing"), setTimeout(() => Ce(), 3e3);
11106
+ console.log("[SardinAI] Risk SDK initialized successfully"), W(D), se("processing"), setTimeout(() => Ce(), 3e3);
11107
11107
  }).catch((L) => {
11108
11108
  var c;
11109
11109
  console.error("[SardinAI] Failed to initialize:", L);
@@ -11117,7 +11117,7 @@ const Ya = ({
11117
11117
  }
11118
11118
  try {
11119
11119
  H(null);
11120
- const h = ct.parseProviderConfig(g, m, l), D = ct.createProvider(g, h);
11120
+ const h = ct.parseProviderConfig(g, m, d), D = ct.createProvider(g, h);
11121
11121
  y === Ge.Onfido && D.initialize("identity-container").catch((L) => {
11122
11122
  console.error("[Onfido] Initialization error:", L), H(r("identity.failedToInitialize", { message: L.message }));
11123
11123
  }), W(D);
@@ -11126,14 +11126,14 @@ const Ya = ({
11126
11126
  }
11127
11127
  }
11128
11128
  return () => {
11129
- if (A && A.destroy)
11129
+ if (R && R.destroy)
11130
11130
  try {
11131
- A.destroy();
11131
+ R.destroy();
11132
11132
  } catch (y) {
11133
11133
  console.error("[Identity] Error destroying provider:", y);
11134
11134
  }
11135
11135
  };
11136
- }, [g, m, A, j, t, te, _e, e, l, d, Ce]);
11136
+ }, [g, m, R, j, t, te, _e, e, d, l, Ce]);
11137
11137
  const st = async () => {
11138
11138
  try {
11139
11139
  H(null), pe(!1), await S(), Q(!0);
@@ -11142,9 +11142,9 @@ const Ya = ({
11142
11142
  }
11143
11143
  }, [Ze, Ye] = T(!1), De = async () => {
11144
11144
  try {
11145
- if (Ye(!0), H(null), console.log("[Sumsub] Resetting KYC data..."), await n.resetKyc(e), console.log("[Sumsub] KYC data reset — re-initializing widget"), A && A.destroy)
11145
+ if (Ye(!0), H(null), console.log("[Sumsub] Resetting KYC data..."), await n.resetKyc(e), console.log("[Sumsub] KYC data reset — re-initializing widget"), R && R.destroy)
11146
11146
  try {
11147
- A.destroy();
11147
+ R.destroy();
11148
11148
  } catch {
11149
11149
  }
11150
11150
  W(null);
@@ -11161,20 +11161,20 @@ const Ya = ({
11161
11161
  }
11162
11162
  };
11163
11163
  if (v || w)
11164
- return /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ s(ne, { children: [
11164
+ return /* @__PURE__ */ i(re, { children: /* @__PURE__ */ s(ae, { children: [
11165
11165
  /* @__PURE__ */ i(Ke, { className: "my-8" }),
11166
11166
  /* @__PURE__ */ i("p", { className: "text-center text-gray-600 dark:text-gray-400 mt-4", children: r("identity.loadingIdentity") })
11167
11167
  ] }) });
11168
11168
  if (C)
11169
- return /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ s("p", { className: "text-danger-500", children: [
11169
+ return /* @__PURE__ */ i(re, { children: /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ s("p", { className: "text-danger-500", children: [
11170
11170
  "Error: ",
11171
11171
  C.message
11172
11172
  ] }) }) });
11173
11173
  const He = X ? a : () => Q(!1);
11174
11174
  if (j && (ee || te))
11175
- return /* @__PURE__ */ s(ae, { children: [
11175
+ return /* @__PURE__ */ s(re, { children: [
11176
11176
  /* @__PURE__ */ i(Le, { children: /* @__PURE__ */ i("h2", { className: "text-2xl font-bold text-gray-900 dark:text-white", children: r("identity.sessionIssueTitle") }) }),
11177
- /* @__PURE__ */ s(ne, { children: [
11177
+ /* @__PURE__ */ s(ae, { children: [
11178
11178
  /* @__PURE__ */ i("div", { className: "p-4 rounded-lg mb-6", style: {
11179
11179
  backgroundColor: "var(--metakyc-danger-bg, color-mix(in srgb, var(--metakyc-danger, #ef4444) 10%, transparent))",
11180
11180
  border: "1px solid color-mix(in srgb, var(--metakyc-danger, #ef4444) 30%, transparent)"
@@ -11216,12 +11216,12 @@ const Ya = ({
11216
11216
  ] })
11217
11217
  ] }),
11218
11218
  /* @__PURE__ */ s(Ee, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
11219
- He && /* @__PURE__ */ i(re, { type: "button", variant: "outline", onClick: He, children: r("common.back") }),
11220
- /* @__PURE__ */ i(re, { type: "button", onClick: Qe, disabled: w, children: r(w ? "identity.restarting" : "identity.restartVerification") })
11219
+ He && /* @__PURE__ */ i(le, { type: "button", variant: "outline", onClick: He, children: r("common.back") }),
11220
+ /* @__PURE__ */ i(le, { type: "button", onClick: Qe, disabled: w, children: r(w ? "identity.restarting" : "identity.restartVerification") })
11221
11221
  ] })
11222
11222
  ] });
11223
11223
  if (j && Te === "processing")
11224
- return /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ s("div", { className: "text-center py-12", children: [
11224
+ return /* @__PURE__ */ i(re, { children: /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ s("div", { className: "text-center py-12", children: [
11225
11225
  /* @__PURE__ */ i(Ke, { className: "mb-4" }),
11226
11226
  /* @__PURE__ */ i("h3", { className: "text-lg font-semibold mb-2", style: { color: "var(--metakyc-text-primary, #111827)" }, children: r("identity.verificationProcessing") }),
11227
11227
  /* @__PURE__ */ i("p", { className: "text-sm", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: r("identity.processingSubtitle") })
@@ -11290,13 +11290,13 @@ const Ya = ({
11290
11290
  He && /* @__PURE__ */ i("div", { style: {
11291
11291
  padding: "16px 24px",
11292
11292
  borderTop: "1px solid var(--metakyc-border, #e5e7eb)"
11293
- }, children: /* @__PURE__ */ i(re, { variant: "outline", onClick: He, children: r("common.back") }) })
11294
- ] }) : m != null && m.url ? /* @__PURE__ */ s(ae, { children: [
11293
+ }, children: /* @__PURE__ */ i(le, { variant: "outline", onClick: He, children: r("common.back") }) })
11294
+ ] }) : m != null && m.url ? /* @__PURE__ */ s(re, { children: [
11295
11295
  /* @__PURE__ */ i(Le, { children: /* @__PURE__ */ i("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ s("div", { children: [
11296
11296
  /* @__PURE__ */ i("h2", { className: "text-2xl font-bold", children: r("identity.title") }),
11297
11297
  /* @__PURE__ */ i("p", { className: "text-gray-600 dark:text-gray-400 mt-1", children: r("identity.subtitle") })
11298
11298
  ] }) }) }),
11299
- /* @__PURE__ */ s(ne, { children: [
11299
+ /* @__PURE__ */ s(ae, { children: [
11300
11300
  /* @__PURE__ */ i("div", { className: "mb-4 p-3 rounded-lg", style: {
11301
11301
  backgroundColor: "var(--metakyc-warning-bg, color-mix(in srgb, var(--metakyc-warning, #f59e0b) 10%, transparent))",
11302
11302
  border: "1px solid color-mix(in srgb, var(--metakyc-warning, #f59e0b) 30%, transparent)"
@@ -11324,24 +11324,24 @@ const Ya = ({
11324
11324
  }
11325
11325
  ) })
11326
11326
  ] }),
11327
- He && /* @__PURE__ */ i(Ee, { children: /* @__PURE__ */ i(re, { variant: "outline", onClick: He, children: r("common.back") }) })
11328
- ] }) : y === Ge.SardinAI ? /* @__PURE__ */ s(ae, { children: [
11327
+ He && /* @__PURE__ */ i(Ee, { children: /* @__PURE__ */ i(le, { variant: "outline", onClick: He, children: r("common.back") }) })
11328
+ ] }) : y === Ge.SardinAI ? /* @__PURE__ */ s(re, { children: [
11329
11329
  /* @__PURE__ */ s(Le, { children: [
11330
11330
  /* @__PURE__ */ i("h2", { className: "text-2xl font-bold", children: r("identity.deviceRiskAssessment") }),
11331
11331
  /* @__PURE__ */ i("p", { className: "text-gray-600 dark:text-gray-400 mt-1", children: r("identity.analyzingDevice") })
11332
11332
  ] }),
11333
- /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ s("div", { className: "text-center py-12", children: [
11333
+ /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ s("div", { className: "text-center py-12", children: [
11334
11334
  /* @__PURE__ */ i(Ke, { className: "mb-4" }),
11335
11335
  /* @__PURE__ */ i("p", { className: "text-gray-600 dark:text-gray-400", children: r("identity.pleaseWaitDevice") }),
11336
11336
  /* @__PURE__ */ i("p", { className: "text-sm text-gray-500 dark:text-gray-500 mt-2", children: r("identity.automaticProcess") })
11337
11337
  ] }) })
11338
- ] }) : /* @__PURE__ */ s(ae, { children: [
11338
+ ] }) : /* @__PURE__ */ s(re, { children: [
11339
11339
  /* @__PURE__ */ s(Le, { children: [
11340
11340
  /* @__PURE__ */ i("h2", { className: "text-2xl font-bold", children: r("identity.title") }),
11341
11341
  /* @__PURE__ */ i("p", { className: "text-gray-600 dark:text-gray-400 mt-1", children: r("identity.subtitle") })
11342
11342
  ] }),
11343
- /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ i("div", { id: "identity-container", className: "min-h-[400px]" }) }),
11344
- He && /* @__PURE__ */ i(Ee, { children: /* @__PURE__ */ i(re, { variant: "outline", onClick: He, children: r("common.back") }) })
11343
+ /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i("div", { id: "identity-container", className: "min-h-[400px]" }) }),
11344
+ He && /* @__PURE__ */ i(Ee, { children: /* @__PURE__ */ i(le, { variant: "outline", onClick: He, children: r("common.back") }) })
11345
11345
  ] });
11346
11346
  }
11347
11347
  const Je = /* @__PURE__ */ new Set(["country", "nationality", "taxCountry", "countryOfBirth", "mobileCountryCode", "otherNationality"]), Pe = (y = 4) => {
@@ -11354,9 +11354,9 @@ const Ya = ({
11354
11354
  return D ? D.label : String(h);
11355
11355
  }
11356
11356
  return String(h);
11357
- }, wt = ({ helpText: y }) => {
11357
+ }, bt = ({ helpText: y }) => {
11358
11358
  const [h, D] = T(!1), L = me(null), [, U] = T({ top: 0, left: 0 });
11359
- return /* @__PURE__ */ s(bt, { children: [
11359
+ return /* @__PURE__ */ s(Ct, { children: [
11360
11360
  /* @__PURE__ */ i(
11361
11361
  "button",
11362
11362
  {
@@ -11450,8 +11450,8 @@ const Ya = ({
11450
11450
  ] });
11451
11451
  }, Me = (y, h) => h ? /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "flex-start", gap: 5, flexWrap: "nowrap" }, children: [
11452
11452
  /* @__PURE__ */ i("div", { style: { flex: 1, minWidth: 0 }, children: y }),
11453
- /* @__PURE__ */ i("div", { style: { paddingTop: 24 }, children: /* @__PURE__ */ i(wt, { helpText: h }) })
11454
- ] }) : y, xt = (y, h) => {
11453
+ /* @__PURE__ */ i("div", { style: { paddingTop: 24 }, children: /* @__PURE__ */ i(bt, { helpText: h }) })
11454
+ ] }) : y, wt = (y, h) => {
11455
11455
  const D = `cf-${h}`, L = y.paramName ?? "", U = I[L];
11456
11456
  if (y.customType === "br")
11457
11457
  return /* @__PURE__ */ i("div", { style: { ...Pe(y.colSpan), minHeight: "0.5rem" } }, D);
@@ -11500,7 +11500,7 @@ const Ya = ({
11500
11500
  style: { marginTop: 2 }
11501
11501
  }
11502
11502
  ),
11503
- /* @__PURE__ */ i("span", { className: "text-sm", style: { color: "var(--metakyc-text-primary, #111827)" }, children: y.customType === "link_checkbox" && y.linkUrl ? /* @__PURE__ */ s(bt, { children: [
11503
+ /* @__PURE__ */ i("span", { className: "text-sm", style: { color: "var(--metakyc-text-primary, #111827)" }, children: y.customType === "link_checkbox" && y.linkUrl ? /* @__PURE__ */ s(Ct, { children: [
11504
11504
  /* @__PURE__ */ i("a", { href: y.linkUrl, target: "_blank", rel: "noopener noreferrer", style: { color: "var(--metakyc-primary, #6366f1)", textDecoration: "underline" }, children: y.linkText || ie(y.label, r) }),
11505
11505
  y.label && y.linkText ? ` ${ie(y.label, r)}` : ""
11506
11506
  ] }) : ie(y.displayText, r) || ie(y.label, r) })
@@ -11564,7 +11564,7 @@ const Ya = ({
11564
11564
  y.helpText
11565
11565
  ) }, D);
11566
11566
  }, pt = (y, h) => {
11567
- if (y.isCustom) return xt(y, h);
11567
+ if (y.isCustom) return wt(y, h);
11568
11568
  const D = y.name ?? "", L = dt[D], U = ie(y.displayText, r) || (L != null && L.translationKey ? r(`fields.${L.translationKey}`) : void 0) || (L == null ? void 0 : L.label) || D, c = he[D] ?? "", E = D === "mobileCountryCode", N = !!(L != null && L.countriesType) && !E;
11569
11569
  return y.editable ? E ? /* @__PURE__ */ i("div", { style: Pe(y.colSpan ?? 2), children: Me(
11570
11570
  /* @__PURE__ */ i(
@@ -11572,7 +11572,7 @@ const Ya = ({
11572
11572
  {
11573
11573
  label: U,
11574
11574
  value: String(c),
11575
- onChange: (u) => R((k) => ({ ...k, [D]: u })),
11575
+ onChange: (u) => A((k) => ({ ...k, [D]: u })),
11576
11576
  options: [{ value: "", label: r("placeholders.selectCountryCode") }, ..._]
11577
11577
  }
11578
11578
  ),
@@ -11583,7 +11583,7 @@ const Ya = ({
11583
11583
  {
11584
11584
  label: U,
11585
11585
  value: String(c),
11586
- onChange: (u) => R((k) => ({ ...k, [D]: u })),
11586
+ onChange: (u) => A((k) => ({ ...k, [D]: u })),
11587
11587
  options: [{ value: "", label: r("common.select") }, ...M]
11588
11588
  }
11589
11589
  ),
@@ -11595,12 +11595,12 @@ const Ya = ({
11595
11595
  label: U,
11596
11596
  type: (L == null ? void 0 : L.type) === "date" ? "date" : (L == null ? void 0 : L.type) === "email" ? "email" : "text",
11597
11597
  value: String(c),
11598
- onChange: (u) => R((k) => ({ ...k, [D]: u.target.value }))
11598
+ onChange: (u) => A((k) => ({ ...k, [D]: u.target.value }))
11599
11599
  }
11600
11600
  ),
11601
11601
  y.helpText
11602
11602
  ) }, `ei-${h}`) : /* @__PURE__ */ i("div", { style: Pe(y.colSpan ?? 2), children: Me(
11603
- /* @__PURE__ */ s(bt, { children: [
11603
+ /* @__PURE__ */ s(Ct, { children: [
11604
11604
  /* @__PURE__ */ i("label", { className: "block text-sm font-medium mb-0.5", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: U }),
11605
11605
  /* @__PURE__ */ i("p", { className: "text-sm", style: { color: "var(--metakyc-text-primary, #111827)", minHeight: "1.5rem" }, children: mt(D, c) })
11606
11606
  ] }),
@@ -11611,24 +11611,24 @@ const Ya = ({
11611
11611
  const y = ie(G.title, r) || r("identity.reviewYourInformation"), h = ie(G.subtitle, r) || r("identity.reviewSubtitle");
11612
11612
  return /* @__PURE__ */ i("form", { onSubmit: (D) => {
11613
11613
  D.preventDefault(), st();
11614
- }, children: /* @__PURE__ */ s(ae, { children: [
11614
+ }, children: /* @__PURE__ */ s(re, { children: [
11615
11615
  /* @__PURE__ */ s(Le, { children: [
11616
11616
  /* @__PURE__ */ i("h2", { className: "text-lg font-bold", style: { color: "var(--metakyc-text-primary, #111827)" }, children: y }),
11617
11617
  h && /* @__PURE__ */ i("p", { className: "mt-1 text-sm", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: h })
11618
11618
  ] }),
11619
- /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ i("div", { className: "metakyc-form-grid", children: G.fields.map((D, L) => pt(D, L)) }) }),
11619
+ /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i("div", { className: "metakyc-form-grid", children: G.fields.map((D, L) => pt(D, L)) }) }),
11620
11620
  /* @__PURE__ */ s(Ee, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
11621
- a && /* @__PURE__ */ i(re, { type: "button", variant: "outline", onClick: a, children: r("common.back") }),
11622
- /* @__PURE__ */ i(re, { type: "submit", isLoading: w, children: r("identity.confirmAndStart") })
11621
+ a && /* @__PURE__ */ i(le, { type: "button", variant: "outline", onClick: a, children: r("common.back") }),
11622
+ /* @__PURE__ */ i(le, { type: "submit", isLoading: w, children: r("identity.confirmAndStart") })
11623
11623
  ] })
11624
11624
  ] }) });
11625
11625
  }
11626
- return /* @__PURE__ */ i("form", { onSubmit: Z.handleSubmit(st), children: /* @__PURE__ */ s(ae, { children: [
11626
+ return /* @__PURE__ */ i("form", { onSubmit: Z.handleSubmit(st), children: /* @__PURE__ */ s(re, { children: [
11627
11627
  /* @__PURE__ */ s(Le, { children: [
11628
11628
  /* @__PURE__ */ i("h2", { className: "text-lg font-bold", style: { color: "var(--metakyc-text-primary, #111827)" }, children: r("identity.reviewYourInformation") }),
11629
11629
  /* @__PURE__ */ i("p", { className: "mt-1 text-sm", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: r("identity.reviewSubtitle") })
11630
11630
  ] }),
11631
- /* @__PURE__ */ s(ne, { className: "space-y-6", children: [
11631
+ /* @__PURE__ */ s(ae, { className: "space-y-6", children: [
11632
11632
  /* @__PURE__ */ i("div", { className: "space-y-4 pb-4", style: { borderBottom: "1px solid var(--metakyc-border, #e5e7eb)" }, children: [
11633
11633
  { label: r("fields.name"), value: `${((gt = V == null ? void 0 : V.applicantRequestData) == null ? void 0 : gt.firstName) || ""} ${((b = V == null ? void 0 : V.applicantRequestData) == null ? void 0 : b.lastName) || ""}`.trim() },
11634
11634
  { label: r("fields.email"), value: (q = V == null ? void 0 : V.applicantRequestData) == null ? void 0 : q.email },
@@ -11685,8 +11685,8 @@ const Ya = ({
11685
11685
  ] })
11686
11686
  ] }),
11687
11687
  /* @__PURE__ */ s(Ee, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
11688
- a && /* @__PURE__ */ i(re, { type: "button", variant: "outline", onClick: a, children: r("common.back") }),
11689
- /* @__PURE__ */ i(re, { type: "submit", isLoading: w, children: r("identity.confirmAndStart") })
11688
+ a && /* @__PURE__ */ i(le, { type: "button", variant: "outline", onClick: a, children: r("common.back") }),
11689
+ /* @__PURE__ */ i(le, { type: "submit", isLoading: w, children: r("identity.confirmAndStart") })
11690
11690
  ] })
11691
11691
  ] }) });
11692
11692
  }, Zt = {
@@ -11715,12 +11715,11 @@ const hi = ({
11715
11715
  reviewStatus: e,
11716
11716
  workflowResult: t,
11717
11717
  customMessage: a,
11718
- onContinue: r,
11719
- onContactSupport: n
11718
+ onContinue: r
11720
11719
  }) => {
11721
- const { t: o } = Ie(), l = e === it.Approved ? { type: "success", title: o("status.applicationApproved"), icon: "✓", message: o("status.applicationApprovedMsg") } : e === it.Reject ? { type: "error", title: o("status.applicationRejected"), icon: "✕", message: o("status.applicationRejectedMsg") } : e === it.UnderReview ? { type: "pending", title: o("status.underReview"), icon: "📋", message: o("status.underReviewMsg") } : e === it.AdminReview ? { type: "pending", title: o("status.adminReviewRequired"), icon: "⏳", message: o("status.adminReviewRequiredMsg") } : e === it.Closed ? { type: "error", title: o("status.applicationRejected"), icon: "✕", message: o("status.applicationRejectedMsg") } : e === it.InProgress ? { type: "pending", title: o("status.verificationPending"), icon: "⏱", message: o("status.verificationPendingMsg") } : e === it.New ? { type: "pending", title: o("status.processing"), icon: "⏱", message: o("status.processingMsg") } : t === Et.Success ? { type: "success", title: o("status.processComplete"), icon: "✓", message: o("status.processCompleteMsg") } : t === Et.Failed ? { type: "error", title: o("status.processFailed"), icon: "✕", message: o("status.processFailedMsg") } : t === Et.AdminReview ? { type: "pending", title: o("status.adminReviewRequired"), icon: "⏳", message: o("status.adminReviewRequiredMsg") } : { type: "pending", title: o("status.processing"), icon: "⏱", message: o("status.processingMsg") };
11722
- return /* @__PURE__ */ s(ae, { children: [
11723
- /* @__PURE__ */ s(ne, { className: "py-12", children: [
11720
+ const { t: n } = Ie(), l = e === it.Approved ? { type: "success", title: n("status.applicationApproved"), icon: "✓", message: n("status.applicationApprovedMsg") } : e === it.Reject ? { type: "error", title: n("status.applicationRejected"), icon: "✕", message: n("status.applicationRejectedMsg") } : e === it.UnderReview ? { type: "pending", title: n("status.underReview"), icon: "📋", message: n("status.underReviewMsg") } : e === it.AdminReview ? { type: "pending", title: n("status.adminReviewRequired"), icon: "⏳", message: n("status.adminReviewRequiredMsg") } : e === it.Closed ? { type: "error", title: n("status.applicationRejected"), icon: "✕", message: n("status.applicationRejectedMsg") } : e === it.InProgress ? { type: "pending", title: n("status.verificationPending"), icon: "⏱", message: n("status.verificationPendingMsg") } : e === it.New ? { type: "pending", title: n("status.processing"), icon: "⏱", message: n("status.processingMsg") } : t === Et.Success ? { type: "success", title: n("status.processComplete"), icon: "✓", message: n("status.processCompleteMsg") } : t === Et.Failed ? { type: "error", title: n("status.processFailed"), icon: "✕", message: n("status.processFailedMsg") } : t === Et.AdminReview ? { type: "pending", title: n("status.adminReviewRequired"), icon: "⏳", message: n("status.adminReviewRequiredMsg") } : { type: "pending", title: n("status.processing"), icon: "⏱", message: n("status.processingMsg") };
11721
+ return /* @__PURE__ */ s(re, { children: [
11722
+ /* @__PURE__ */ s(ae, { className: "py-12", children: [
11724
11723
  /* @__PURE__ */ i("div", { className: "flex justify-center mb-6", children: /* @__PURE__ */ i(
11725
11724
  "div",
11726
11725
  {
@@ -11732,64 +11731,60 @@ const hi = ({
11732
11731
  /* @__PURE__ */ i("h2", { className: "text-3xl font-bold text-center mb-4", style: { color: "var(--metakyc-text-primary, #111827)" }, children: l.title }),
11733
11732
  /* @__PURE__ */ i("p", { className: "text-center mb-6 max-w-md mx-auto", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: a || l.message }),
11734
11733
  l.type === "success" && /* @__PURE__ */ s("div", { className: "rounded-lg p-4 mb-6", style: Ut("success"), children: [
11735
- /* @__PURE__ */ i("h3", { className: "font-semibold mb-2", style: vt("success"), children: o("status.whatsNext") }),
11734
+ /* @__PURE__ */ i("h3", { className: "font-semibold mb-2", style: vt("success"), children: n("status.whatsNext") }),
11736
11735
  /* @__PURE__ */ s("ul", { className: "text-sm space-y-1", style: vt("success"), children: [
11737
11736
  /* @__PURE__ */ s("li", { children: [
11738
11737
  "✓ ",
11739
- o("status.identityVerified")
11738
+ n("status.identityVerified")
11740
11739
  ] }),
11741
11740
  /* @__PURE__ */ s("li", { children: [
11742
11741
  "✓ ",
11743
- o("status.canProceed")
11742
+ n("status.canProceed")
11744
11743
  ] }),
11745
11744
  /* @__PURE__ */ s("li", { children: [
11746
11745
  "✓ ",
11747
- o("status.allFeaturesAccessible")
11746
+ n("status.allFeaturesAccessible")
11748
11747
  ] })
11749
11748
  ] })
11750
11749
  ] }),
11751
11750
  l.type === "error" && /* @__PURE__ */ s("div", { className: "rounded-lg p-4 mb-6", style: Ut("error"), children: [
11752
- /* @__PURE__ */ i("h3", { className: "font-semibold mb-2", style: vt("error"), children: o("status.whatCanYouDo") }),
11751
+ /* @__PURE__ */ i("h3", { className: "font-semibold mb-2", style: vt("error"), children: n("status.whatCanYouDo") }),
11753
11752
  /* @__PURE__ */ s("ul", { className: "text-sm space-y-2", style: vt("error"), children: [
11754
11753
  /* @__PURE__ */ s("li", { children: [
11755
11754
  "• ",
11756
- o("status.reviewSubmittedInfo")
11755
+ n("status.reviewSubmittedInfo")
11757
11756
  ] }),
11758
11757
  /* @__PURE__ */ s("li", { children: [
11759
11758
  "• ",
11760
- o("status.contactSupportTeam")
11759
+ n("status.contactSupportTeam")
11761
11760
  ] }),
11762
11761
  /* @__PURE__ */ s("li", { children: [
11763
11762
  "• ",
11764
- o("status.resubmitIfNeeded")
11763
+ n("status.resubmitIfNeeded")
11765
11764
  ] })
11766
11765
  ] })
11767
11766
  ] }),
11768
11767
  l.type === "pending" && /* @__PURE__ */ s("div", { className: "rounded-lg p-4 mb-6", style: Ut("pending"), children: [
11769
- /* @__PURE__ */ i("h3", { className: "font-semibold mb-2", style: vt("pending"), children: o("status.whatHappensNext") }),
11768
+ /* @__PURE__ */ i("h3", { className: "font-semibold mb-2", style: vt("pending"), children: n("status.whatHappensNext") }),
11770
11769
  /* @__PURE__ */ s("ul", { className: "text-sm space-y-2", style: vt("pending"), children: [
11771
11770
  /* @__PURE__ */ s("li", { children: [
11772
11771
  "• ",
11773
- o("status.teamReviewing")
11772
+ n("status.teamReviewing")
11774
11773
  ] }),
11775
11774
  /* @__PURE__ */ s("li", { children: [
11776
11775
  "• ",
11777
- o("status.notifiedByEmail")
11776
+ n("status.notifiedByEmail")
11778
11777
  ] }),
11779
11778
  /* @__PURE__ */ s("li", { children: [
11780
11779
  "• ",
11781
- o("status.noActionRequired")
11780
+ n("status.noActionRequired")
11782
11781
  ] })
11783
11782
  ] })
11784
11783
  ] })
11785
11784
  ] }),
11786
11785
  /* @__PURE__ */ s(Ee, { style: { display: "flex", justifyContent: "center", gap: "1rem" }, children: [
11787
- l.type === "success" && r && /* @__PURE__ */ i(re, { onClick: r, size: "lg", children: o("common.continue") }),
11788
- l.type === "error" && /* @__PURE__ */ s(bt, { children: [
11789
- n && /* @__PURE__ */ i(re, { variant: "outline", onClick: n, children: o("status.contactSupport") }),
11790
- r && /* @__PURE__ */ i(re, { onClick: r, children: o("status.tryAgain") })
11791
- ] }),
11792
- l.type === "pending" && /* @__PURE__ */ i("div", { className: "text-center", children: /* @__PURE__ */ i("p", { className: "text-sm", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: o("status.checkBackLater") }) })
11786
+ l.type === "success" && r && /* @__PURE__ */ i(le, { onClick: r, size: "lg", children: n("common.continue") }),
11787
+ l.type === "pending" && /* @__PURE__ */ i("div", { className: "text-center", children: /* @__PURE__ */ i("p", { className: "text-sm", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: n("status.checkBackLater") }) })
11793
11788
  ] })
11794
11789
  ] });
11795
11790
  }, Za = ({ config: e, className: t = "" }) => {
@@ -11846,12 +11841,12 @@ const hi = ({
11846
11841
  ]
11847
11842
  }
11848
11843
  ), Di = () => {
11849
- const { locale: e, setLocale: t, currentTheme: a } = Se(), [r, n] = T(!1), o = me(null), d = Object.keys(Pt), l = a != null && a.allowedLanguages && a.allowedLanguages.length > 0 ? d.filter((f) => {
11844
+ const { locale: e, setLocale: t, currentTheme: a } = Se(), [r, n] = T(!1), o = me(null), l = Object.keys(Pt), d = a != null && a.allowedLanguages && a.allowedLanguages.length > 0 ? l.filter((f) => {
11850
11845
  const g = f.toUpperCase();
11851
11846
  return a.allowedLanguages.some(
11852
11847
  (m) => m.toUpperCase() === g
11853
11848
  );
11854
- }) : d;
11849
+ }) : l;
11855
11850
  ge(() => {
11856
11851
  const f = (g) => {
11857
11852
  o.current && !o.current.contains(g.target) && n(!1);
@@ -11932,7 +11927,7 @@ const hi = ({
11932
11927
  padding: "4px 0",
11933
11928
  zIndex: 51
11934
11929
  },
11935
- children: l.map((f) => {
11930
+ children: d.map((f) => {
11936
11931
  const g = f === e;
11937
11932
  return /* @__PURE__ */ i(
11938
11933
  "button",
@@ -11972,13 +11967,13 @@ const hi = ({
11972
11967
  ]
11973
11968
  }
11974
11969
  );
11975
- }, At = ({
11970
+ }, Rt = ({
11976
11971
  title: e,
11977
11972
  subtitle: t,
11978
11973
  className: a = "",
11979
11974
  hideLanguagePicker: r = !1
11980
11975
  }) => {
11981
- const { currentTheme: n, config: o } = Se(), { t: d } = Ie(), l = e || (n == null ? void 0 : n.title) || "", p = ie(l, d), f = ie(t, d), g = !!(n != null && n.logo && n.logo.visible && n.logo.url), m = !!p, w = !!o.showLanguagePicker && !r;
11976
+ const { currentTheme: n, config: o } = Se(), { t: l } = Ie(), d = e || (n == null ? void 0 : n.title) || "", p = ie(d, l), f = ie(t, l), g = !!(n != null && n.logo && n.logo.visible && n.logo.url), m = !!p, w = !!o.showLanguagePicker && !r;
11982
11977
  return !g && !m && !w ? null : /* @__PURE__ */ s("div", { className: `metakyc-header ${a}`, children: [
11983
11978
  /* @__PURE__ */ s(
11984
11979
  "div",
@@ -12009,9 +12004,9 @@ function It() {
12009
12004
  return t.current = e, t;
12010
12005
  }
12011
12006
  const en = ({ children: e }) => {
12012
- const [t, a] = T([]), [r, n] = T({}), o = me([]), d = J((g) => {
12007
+ const [t, a] = T([]), [r, n] = T({}), o = me([]), l = J((g) => {
12013
12008
  o.current = [...o.current.filter((m) => m.id !== g.id), g], a([...o.current]);
12014
- }, []), l = J((g) => {
12009
+ }, []), d = J((g) => {
12015
12010
  o.current = o.current.filter((m) => m.id !== g), a([...o.current]);
12016
12011
  }, []), p = J((g) => {
12017
12012
  n((m) => {
@@ -12019,28 +12014,28 @@ const en = ({ children: e }) => {
12019
12014
  return Object.keys(g).some((S) => m[S] !== g[S]) ? w : m;
12020
12015
  });
12021
12016
  }, []), f = Ue(
12022
- () => ({ actions: t, registerAction: d, unregisterAction: l, sdkState: r, updateSdkState: p }),
12023
- [t, d, l, r, p]
12017
+ () => ({ actions: t, registerAction: l, unregisterAction: d, sdkState: r, updateSdkState: p }),
12018
+ [t, l, d, r, p]
12024
12019
  );
12025
12020
  return /* @__PURE__ */ i(Pi.Provider, { value: f, children: e });
12026
12021
  }, ki = 2147483640, tn = () => {
12027
- const e = Mi(), [t, a] = T(!1), [r, n] = T("actions"), [o, d] = T(null), l = me(null);
12022
+ const e = Mi(), [t, a] = T(!1), [r, n] = T("actions"), [o, l] = T(null), d = me(null);
12028
12023
  if (ge(() => {
12029
12024
  if (!t) return;
12030
12025
  const v = (j) => {
12031
- l.current && !l.current.contains(j.target) && a(!1);
12026
+ d.current && !d.current.contains(j.target) && a(!1);
12032
12027
  }, z = setTimeout(() => document.addEventListener("mousedown", v), 0);
12033
12028
  return () => {
12034
12029
  clearTimeout(z), document.removeEventListener("mousedown", v);
12035
12030
  };
12036
12031
  }, [t]), !e) return null;
12037
12032
  const { actions: p, sdkState: f } = e, g = p.filter((v) => v.group === "form"), m = p.filter((v) => v.group === "workflow"), w = p.filter((v) => !v.group || v.group === "general"), C = async (v, z) => {
12038
- d(v);
12033
+ l(v);
12039
12034
  try {
12040
12035
  await z();
12041
12036
  } catch {
12042
12037
  }
12043
- d(null);
12038
+ l(null);
12044
12039
  }, S = {
12045
12040
  position: "fixed",
12046
12041
  bottom: "16px",
@@ -12080,7 +12075,7 @@ const en = ({ children: e }) => {
12080
12075
  overflow: "hidden",
12081
12076
  display: "flex",
12082
12077
  flexDirection: "column"
12083
- }, A = {
12078
+ }, R = {
12084
12079
  display: "flex",
12085
12080
  borderBottom: "1px solid rgba(165,180,252,0.1)",
12086
12081
  background: "#181825"
@@ -12148,8 +12143,8 @@ const en = ({ children: e }) => {
12148
12143
  /* @__PURE__ */ i("span", { style: { color: "#89b4fa", flexShrink: 0 }, children: z }),
12149
12144
  /* @__PURE__ */ i("span", { style: { color: "#a6adc8", textAlign: "right", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: j == null ? /* @__PURE__ */ i("span", { style: { color: "#6c7086", fontStyle: "italic" }, children: "null" }) : typeof j == "object" ? JSON.stringify(j) : String(j) })
12150
12145
  ] }, z)) });
12151
- }, oe = /* @__PURE__ */ s(bt, { children: [
12152
- t && /* @__PURE__ */ s("div", { ref: l, style: K, children: [
12146
+ }, ne = /* @__PURE__ */ s(Ct, { children: [
12147
+ t && /* @__PURE__ */ s("div", { ref: d, style: K, children: [
12153
12148
  /* @__PURE__ */ s("div", { style: { padding: "12px 14px 8px", display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
12154
12149
  /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", gap: "6px" }, children: [
12155
12150
  /* @__PURE__ */ i("span", { style: { fontSize: "14px" }, children: "🔧" }),
@@ -12172,7 +12167,7 @@ const en = ({ children: e }) => {
12172
12167
  }
12173
12168
  )
12174
12169
  ] }),
12175
- /* @__PURE__ */ s("div", { style: A, children: [
12170
+ /* @__PURE__ */ s("div", { style: R, children: [
12176
12171
  /* @__PURE__ */ i("button", { style: W(r === "actions"), onClick: () => n("actions"), children: "Actions" }),
12177
12172
  /* @__PURE__ */ i("button", { style: W(r === "state"), onClick: () => n("state"), children: "State" })
12178
12173
  ] }),
@@ -12216,7 +12211,7 @@ const en = ({ children: e }) => {
12216
12211
  }
12217
12212
  )
12218
12213
  ] });
12219
- return typeof document > "u" ? null : Ft(oe, document.body);
12214
+ return typeof document > "u" ? null : Ft(ne, document.body);
12220
12215
  }, rn = ["James", "Emma", "Alexander", "Sophia", "Michael", "Olivia", "Daniel", "Isabella", "Lukas", "Anna"], an = ["Anderson", "Mueller", "Johnson", "Williams", "Brown", "Schmidt", "Garcia", "Chen", "Huber", "Wagner"], nn = ["Acme Corp", "Global Holdings Ltd", "TechVentures AG", "Alpine Solutions GmbH", "Meridian Capital LLC", "Nordic Innovations AS"], Mt = ["Vienna", "Zurich", "Munich", "Berlin", "London", "Amsterdam", "Paris", "Milan"], jt = ["AUT", "CHE", "DEU", "GBR", "NLD", "FRA", "ITA"], _t = ["Main Street", "Oak Avenue", "Elm Road", "Park Lane", "Lake Boulevard", "Ringstrasse", "Bahnhofstrasse"], on = ["Software Engineer", "Financial Analyst", "Doctor", "Teacher", "Lawyer", "Architect", "Accountant"];
12221
12216
  function ze(e) {
12222
12217
  return e[Math.floor(Math.random() * e.length)];
@@ -12275,7 +12270,7 @@ function ln() {
12275
12270
  };
12276
12271
  }
12277
12272
  const Lt = ["firstName", "lastName", "email", "phonenumber", "dateOfBirth"];
12278
- function St(e) {
12273
+ function xt(e) {
12279
12274
  return e == null || e === "" || Array.isArray(e) && e.length === 0;
12280
12275
  }
12281
12276
  const cn = {
@@ -12292,7 +12287,7 @@ const cn = {
12292
12287
  verticalAlign: "middle"
12293
12288
  }, bi = ({ helpText: e, children: t }) => {
12294
12289
  const [a, r] = ye.useState(!1);
12295
- if (!e) return /* @__PURE__ */ i(bt, { children: t });
12290
+ if (!e) return /* @__PURE__ */ i(Ct, { children: t });
12296
12291
  const n = a ? /* @__PURE__ */ i(
12297
12292
  "div",
12298
12293
  {
@@ -12419,23 +12414,23 @@ const cn = {
12419
12414
  onCancel: n
12420
12415
  }) => {
12421
12416
  var q, P, y, h, D, L, U;
12422
- const { config: o, baseInformationService: d, currentTheme: l } = Se(), { createApplicant: p, getApplicantData: f, isLoading: g } = Ri(), { t: m } = Ie(), w = e || ((q = o.applicantForm) == null ? void 0 : q.workflowKey);
12417
+ const { config: o, baseInformationService: l, currentTheme: d } = Se(), { createApplicant: p, getApplicantData: f, isLoading: g } = Ai(), { t: m } = Ie(), w = e || ((q = o.applicantForm) == null ? void 0 : q.workflowKey);
12423
12418
  if (!w)
12424
12419
  throw new Error(
12425
12420
  "workflowKey is required. Provide it either as a prop to CreateApplicantForm or set it in config.applicantForm.workflowKey"
12426
12421
  );
12427
- const C = t || ((P = o.applicantForm) == null ? void 0 : P.externalRefId) || "", S = ((y = o.applicantForm) == null ? void 0 : y.email) || "", K = ((h = o.applicantForm) == null ? void 0 : h.hiddenValues) || {}, A = ((D = o.applicantForm) == null ? void 0 : D.initialValues) || {}, V = (((L = o.applicantForm) == null ? void 0 : L.fieldLabelMode) || (l == null ? void 0 : l.fieldLabelMode) || "label") !== "placeholder", F = Ue(
12428
- () => l != null && l.applicantFormPages && l.applicantFormPages.length > 0 ? l.applicantFormPages : null,
12429
- [l == null ? void 0 : l.applicantFormPages]
12422
+ const C = t || ((P = o.applicantForm) == null ? void 0 : P.externalRefId) || "", S = ((y = o.applicantForm) == null ? void 0 : y.email) || "", K = ((h = o.applicantForm) == null ? void 0 : h.hiddenValues) || {}, R = ((D = o.applicantForm) == null ? void 0 : D.initialValues) || {}, V = (((L = o.applicantForm) == null ? void 0 : L.fieldLabelMode) || (d == null ? void 0 : d.fieldLabelMode) || "label") !== "placeholder", F = Ue(
12423
+ () => d != null && d.applicantFormPages && d.applicantFormPages.length > 0 ? d.applicantFormPages : null,
12424
+ [d == null ? void 0 : d.applicantFormPages]
12430
12425
  ), M = Ue(() => {
12431
- const c = new Set(Lt), E = l == null ? void 0 : l.applicantFormRequiredFields;
12426
+ const c = new Set(Lt), E = d == null ? void 0 : d.applicantFormRequiredFields;
12432
12427
  if (E) for (const N of E) c.add(N);
12433
12428
  if (F)
12434
12429
  for (const N of F)
12435
12430
  for (const u of N.fields)
12436
12431
  !u.isCustom && u.name && u.required && c.add(u.name);
12437
12432
  return Array.from(c);
12438
- }, [l == null ? void 0 : l.applicantFormRequiredFields, F]), $ = Ue(() => {
12433
+ }, [d == null ? void 0 : d.applicantFormRequiredFields, F]), $ = Ue(() => {
12439
12434
  var N;
12440
12435
  if (F) {
12441
12436
  const u = F.flatMap((x) => x.fields).filter((x) => !x.isCustom && x.name).map((x) => x.name), k = new Set(u);
@@ -12443,18 +12438,18 @@ const cn = {
12443
12438
  return Array.from(k);
12444
12439
  }
12445
12440
  let c;
12446
- (N = o.applicantForm) != null && N.visibleFields ? c = o.applicantForm.visibleFields : l != null && l.applicantFormVisibleFields && l.applicantFormVisibleFields.length > 0 ? c = l.applicantFormVisibleFields : c = er;
12441
+ (N = o.applicantForm) != null && N.visibleFields ? c = o.applicantForm.visibleFields : d != null && d.applicantFormVisibleFields && d.applicantFormVisibleFields.length > 0 ? c = d.applicantFormVisibleFields : c = er;
12447
12442
  const E = new Set(c);
12448
12443
  for (const u of Lt) E.add(u);
12449
12444
  return Array.from(E);
12450
- }, [(U = o.applicantForm) == null ? void 0 : U.visibleFields, l == null ? void 0 : l.applicantFormVisibleFields, F]), _ = /* @__PURE__ */ new Set([
12445
+ }, [(U = o.applicantForm) == null ? void 0 : U.visibleFields, d == null ? void 0 : d.applicantFormVisibleFields, F]), _ = /* @__PURE__ */ new Set([
12451
12446
  "country",
12452
12447
  "nationality",
12453
12448
  "taxCountry",
12454
12449
  "countryOfBirth",
12455
12450
  "mobileCountryCode",
12456
12451
  "otherNationality"
12457
- ]), oe = Ue(() => {
12452
+ ]), ne = Ue(() => {
12458
12453
  var E, N;
12459
12454
  const c = /* @__PURE__ */ new Set();
12460
12455
  if (F)
@@ -12467,13 +12462,13 @@ const cn = {
12467
12462
  return c.size === 0 && c.add(void 0), Array.from(c);
12468
12463
  }, [$, F]), [v, z] = T({}), [j, Q] = T(!0), ee = me(/* @__PURE__ */ new Set()), H = me(/* @__PURE__ */ new Set());
12469
12464
  ge(() => {
12470
- if (!l) return;
12471
- const c = oe.filter((u) => {
12465
+ if (!d) return;
12466
+ const c = ne.filter((u) => {
12472
12467
  const k = u != null ? String(u) : "all";
12473
12468
  return !H.current.has(k) && !ee.current.has(k);
12474
12469
  });
12475
12470
  if (c.length === 0) {
12476
- oe.every((k) => {
12471
+ ne.every((k) => {
12477
12472
  const x = k != null ? String(k) : "all";
12478
12473
  return H.current.has(x);
12479
12474
  }) && Q(!1);
@@ -12485,7 +12480,7 @@ const cn = {
12485
12480
  try {
12486
12481
  const u = await Promise.all(
12487
12482
  c.map(async (k) => {
12488
- const x = k != null ? String(k) : "all", ue = await d.getCountries("", o.locale || "en", k), ce = k === 40, je = /* @__PURE__ */ new Set(), Fe = ue.map((we) => ce && we.countryCode ? {
12483
+ const x = k != null ? String(k) : "all", ue = await l.getCountries("", o.locale || "en", k), ce = k === 40, je = /* @__PURE__ */ new Set(), Fe = ue.map((we) => ce && we.countryCode ? {
12489
12484
  value: we.countryCode,
12490
12485
  label: `${we.countryCode} – ${we.name}`
12491
12486
  } : { value: we.abbreviation3 || we.abbreviation, label: we.name }).filter((we) => !we.value || je.has(we.value) ? !1 : (je.add(we.value), !0));
@@ -12496,13 +12491,13 @@ const cn = {
12496
12491
  } catch (u) {
12497
12492
  E.forEach((k) => ee.current.delete(k)), console.error("Failed to load countries:", u);
12498
12493
  } finally {
12499
- oe.every((k) => {
12494
+ ne.every((k) => {
12500
12495
  const x = k != null ? String(k) : "all";
12501
12496
  return H.current.has(x);
12502
12497
  }) && Q(!1);
12503
12498
  }
12504
12499
  })();
12505
- }, [oe, l]);
12500
+ }, [ne, d]);
12506
12501
  const te = (c, E) => {
12507
12502
  var k;
12508
12503
  const N = E ?? ((k = dt[c]) == null ? void 0 : k.countriesType), u = N != null ? String(N) : "all";
@@ -12533,8 +12528,8 @@ const cn = {
12533
12528
  }, de = Object.fromEntries(
12534
12529
  Object.entries(K).filter(([c]) => c in pe)
12535
12530
  ), Te = Object.fromEntries(
12536
- Object.entries(A).filter(([c]) => c in pe)
12537
- ), [le, ke] = T({
12531
+ Object.entries(R).filter(([c]) => c in pe)
12532
+ ), [se, ke] = T({
12538
12533
  workflowKey: w,
12539
12534
  firstName: "",
12540
12535
  lastName: "",
@@ -12563,7 +12558,7 @@ const cn = {
12563
12558
  ...Te
12564
12559
  }), ve = Object.fromEntries(
12565
12560
  Object.entries(K).filter(([c]) => !(c in de) && c !== "externalRefId" && c !== "workflowKey")
12566
- ), [he, R] = T({ ...ve }), [I, O] = T(!!a);
12561
+ ), [he, A] = T({ ...ve }), [I, O] = T(!!a);
12567
12562
  ge(() => {
12568
12563
  if (!a) return;
12569
12564
  let c = !1;
@@ -12609,7 +12604,7 @@ const cn = {
12609
12604
  c = !0;
12610
12605
  };
12611
12606
  }, [a]);
12612
- const [G, X] = T(0), [B, Z] = T({}), [fe, Ae] = T(null), [Ce, _e] = T(!1), st = It(), Ze = J(() => {
12607
+ const [G, X] = T(0), [B, Z] = T({}), [fe, Re] = T(null), [Ce, _e] = T(!1), st = It(), Ze = J(() => {
12613
12608
  const c = sn(), E = (N) => {
12614
12609
  var ue;
12615
12610
  const u = (ue = dt[N]) == null ? void 0 : ue.countriesType, k = u != null ? String(u) : "all", x = (v[k] || []).filter((ce) => ce.value);
@@ -12626,14 +12621,14 @@ const cn = {
12626
12621
  } else
12627
12622
  u[k] = x;
12628
12623
  return u;
12629
- }), F && R((N) => {
12624
+ }), F && A((N) => {
12630
12625
  var k, x;
12631
12626
  const u = { ...N };
12632
12627
  for (const ue of F)
12633
12628
  for (const ce of ue.fields)
12634
12629
  !ce.isCustom || !ce.paramName || u[ce.paramName] || (ce.customType === "checkbox" || ce.customType === "link_checkbox" ? u[ce.paramName] = "true" : ce.customType === "radio_group" && ((k = ce.options) != null && k.length) || ce.customType === "group_checkbox" && ((x = ce.options) != null && x.length) ? u[ce.paramName] = ce.options[0].value : ce.customType === "text" && (u[ce.paramName] = "Sample value"));
12635
12630
  return u;
12636
- }), Z({}), Ae(null);
12631
+ }), Z({}), Re(null);
12637
12632
  }, [F, v]);
12638
12633
  ge(() => {
12639
12634
  const c = st.current;
@@ -12646,7 +12641,7 @@ const cn = {
12646
12641
  handler: Ze
12647
12642
  }), () => c.unregisterAction("fill-individual-form");
12648
12643
  }, [st, Ze]);
12649
- const Ye = (c, E) => ke((N) => ({ ...N, [c]: E })), De = (c, E) => R((N) => ({ ...N, [c]: E })), Qe = (c) => !c.conditionalOn || he[c.conditionalOn] === "true", He = (c) => {
12644
+ const Ye = (c, E) => ke((N) => ({ ...N, [c]: E })), De = (c, E) => A((N) => ({ ...N, [c]: E })), Qe = (c) => !c.conditionalOn || he[c.conditionalOn] === "true", He = (c) => {
12650
12645
  var E;
12651
12646
  for (const N of c.fields) {
12652
12647
  if (!N.isCustom || !N.paramName || !((E = N.blockingValues) != null && E.length)) continue;
@@ -12668,13 +12663,13 @@ const cn = {
12668
12663
  }
12669
12664
  } else if (N.name) {
12670
12665
  const u = N.name;
12671
- if (M.includes(u) && St(le[u])) {
12666
+ if (M.includes(u) && xt(se[u])) {
12672
12667
  const k = dt[u], x = ie(N.displayText, m) || (k != null && k.translationKey ? m(`fields.${k.translationKey}`) : void 0) || (k == null ? void 0 : k.label) || u;
12673
12668
  E[u] = m("validation.fieldRequired", { field: x });
12674
12669
  }
12675
12670
  }
12676
12671
  return E;
12677
- }, wt = async () => {
12672
+ }, bt = async () => {
12678
12673
  if (!F) return;
12679
12674
  const c = F[G];
12680
12675
  if (He(c) || c.conditionalOn && c.conditionalMode === "block" && !Qe(c)) return;
@@ -12698,36 +12693,36 @@ const cn = {
12698
12693
  return;
12699
12694
  }
12700
12695
  }
12701
- _e(!0), Ae(null);
12696
+ _e(!0), Re(null);
12702
12697
  try {
12703
- if (!le.externalRefId || le.externalRefId.trim() === "") {
12704
- Ae(m("createApplicant.externalRefIdRequired"));
12698
+ if (!se.externalRefId || se.externalRefId.trim() === "") {
12699
+ Re(m("createApplicant.externalRefIdRequired"));
12705
12700
  return;
12706
12701
  }
12707
12702
  const c = {
12708
12703
  ...a ? { applicantId: a } : {},
12709
- workflowKey: le.workflowKey,
12710
- externalRefId: le.externalRefId.trim()
12704
+ workflowKey: se.workflowKey,
12705
+ externalRefId: se.externalRefId.trim()
12711
12706
  };
12712
12707
  if (F) {
12713
12708
  for (const k of F)
12714
12709
  if (Qe(k)) {
12715
12710
  for (const x of k.fields)
12716
12711
  if (!x.isCustom && x.name) {
12717
- const ue = x.name, ce = le[ue];
12718
- St(ce) || (c[ue] = ce);
12712
+ const ue = x.name, ce = se[ue];
12713
+ xt(ce) || (c[ue] = ce);
12719
12714
  }
12720
12715
  }
12721
12716
  for (const k of Lt)
12722
12717
  if (c[k] === void 0) {
12723
- const x = le[k];
12724
- St(x) || (c[k] = x);
12718
+ const x = se[k];
12719
+ xt(x) || (c[k] = x);
12725
12720
  }
12726
12721
  } else
12727
12722
  $.forEach((k) => {
12728
12723
  if (k === "externalRefId") return;
12729
- const x = le[k];
12730
- St(x) || (c[k] = x);
12724
+ const x = se[k];
12725
+ xt(x) || (c[k] = x);
12731
12726
  });
12732
12727
  const E = [];
12733
12728
  if (F) {
@@ -12744,7 +12739,7 @@ const cn = {
12744
12739
  }
12745
12740
  }
12746
12741
  for (const [k, x] of Object.entries(de))
12747
- c[k] === void 0 && !St(x) && (c[k] = x);
12742
+ c[k] === void 0 && !xt(x) && (c[k] = x);
12748
12743
  const N = new Set(E.map((k) => k.paramName));
12749
12744
  for (const [k, x] of Object.entries(ve))
12750
12745
  !N.has(k) && x && E.push({ paramName: k, value: x });
@@ -12752,16 +12747,16 @@ const cn = {
12752
12747
  const u = await p(c);
12753
12748
  r(u.applicantId);
12754
12749
  } catch (c) {
12755
- console.error("Error creating applicant:", c), Ae(c.message || m("createApplicant.failedToCreate"));
12750
+ console.error("Error creating applicant:", c), Re(c.message || m("createApplicant.failedToCreate"));
12756
12751
  } finally {
12757
12752
  _e(!1);
12758
12753
  }
12759
- }, xt = async (c) => {
12754
+ }, wt = async (c) => {
12760
12755
  c.preventDefault();
12761
12756
  for (const E of M)
12762
- if (St(le[E])) {
12757
+ if (xt(se[E])) {
12763
12758
  const N = dt[E], u = (N != null && N.translationKey ? m(`fields.${N.translationKey}`) : void 0) || (N == null ? void 0 : N.label) || E;
12764
- Ae(m("validation.fieldRequired", { field: u }));
12759
+ Re(m("validation.fieldRequired", { field: u }));
12765
12760
  return;
12766
12761
  }
12767
12762
  await Me();
@@ -12779,7 +12774,7 @@ const cn = {
12779
12774
  {
12780
12775
  ...$e,
12781
12776
  label: lt,
12782
- value: le[c] || "",
12777
+ value: se[c] || "",
12783
12778
  onChange: (ft) => Ye(c, ft),
12784
12779
  options: [{ value: "", label: et ? m("placeholders.selectCountry") : je }, ...Oe],
12785
12780
  disabled: j,
@@ -12795,7 +12790,7 @@ const cn = {
12795
12790
  {
12796
12791
  ...$e,
12797
12792
  label: lt,
12798
- value: ((Jt = le[c]) == null ? void 0 : Jt.toString()) || "",
12793
+ value: ((Jt = se[c]) == null ? void 0 : Jt.toString()) || "",
12799
12794
  onChange: (Oe) => Ye(c, Oe ? Number(Oe) : null),
12800
12795
  options: [
12801
12796
  { value: "", label: et ? m("placeholders.selectSalutation") : je },
@@ -12809,13 +12804,13 @@ const cn = {
12809
12804
  we
12810
12805
  );
12811
12806
  if (c === "defaultLanguage") {
12812
- const Oe = l != null && l.allowedLanguages && l.allowedLanguages.length > 0 ? ti.filter((ft) => l.allowedLanguages.includes(ft.value)) : ti;
12807
+ const Oe = d != null && d.allowedLanguages && d.allowedLanguages.length > 0 ? ti.filter((ft) => d.allowedLanguages.includes(ft.value)) : ti;
12813
12808
  return /* @__PURE__ */ i(
12814
12809
  nt,
12815
12810
  {
12816
12811
  ...$e,
12817
12812
  label: lt,
12818
- value: le[c] || "",
12813
+ value: se[c] || "",
12819
12814
  onChange: (ft) => Ye(c, ft),
12820
12815
  options: [{ value: "", label: et ? m("placeholders.selectLanguage") : je }, ...Oe],
12821
12816
  readOnly: Fe,
@@ -12833,7 +12828,7 @@ const cn = {
12833
12828
  {
12834
12829
  ...$e,
12835
12830
  label: lt,
12836
- value: le[c] || [],
12831
+ value: se[c] || [],
12837
12832
  onChange: (ft) => Ye(c, ft),
12838
12833
  options: Oe,
12839
12834
  placeholder: et ? m("placeholders.selectOtherNationalities") : je,
@@ -12852,7 +12847,7 @@ const cn = {
12852
12847
  type: "date",
12853
12848
  label: lt,
12854
12849
  placeholder: et ? void 0 : je,
12855
- value: le[c] || "",
12850
+ value: se[c] || "",
12856
12851
  onChange: (Oe) => Ye(c, Oe.target.value),
12857
12852
  readOnly: Fe,
12858
12853
  error: ce
@@ -12867,7 +12862,7 @@ const cn = {
12867
12862
  type: "email",
12868
12863
  label: lt,
12869
12864
  placeholder: et ? void 0 : je,
12870
- value: le[c] || "",
12865
+ value: se[c] || "",
12871
12866
  onChange: (Oe) => Ye(c, Oe.target.value),
12872
12867
  readOnly: Fe,
12873
12868
  error: ce
@@ -12882,7 +12877,7 @@ const cn = {
12882
12877
  type: "tel",
12883
12878
  label: lt,
12884
12879
  placeholder: et ? void 0 : je,
12885
- value: le[c] || "",
12880
+ value: se[c] || "",
12886
12881
  onChange: (Oe) => Ye(c, Oe.target.value),
12887
12882
  readOnly: Fe,
12888
12883
  error: ce
@@ -12897,7 +12892,7 @@ const cn = {
12897
12892
  type: "text",
12898
12893
  label: lt,
12899
12894
  placeholder: et ? void 0 : je,
12900
- value: le[c] || "",
12895
+ value: se[c] || "",
12901
12896
  onChange: (Oe) => Ye(c, Oe.target.value),
12902
12897
  readOnly: Fe,
12903
12898
  error: ce
@@ -13185,17 +13180,17 @@ const cn = {
13185
13180
  }) })
13186
13181
  ] });
13187
13182
  };
13188
- if (!l || j || I)
13189
- return /* @__PURE__ */ i("div", { className: "metakyc-sdk", children: /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ s(ne, { children: [
13183
+ if (!d || j || I)
13184
+ return /* @__PURE__ */ i("div", { className: "metakyc-sdk", children: /* @__PURE__ */ i(re, { children: /* @__PURE__ */ s(ae, { children: [
13190
13185
  /* @__PURE__ */ i(Ke, { className: "my-8" }),
13191
13186
  /* @__PURE__ */ i("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)", fontSize: "0.875rem" }, children: m("common.loadingForm") })
13192
13187
  ] }) }) });
13193
13188
  if (F) {
13194
13189
  const c = F[G] ?? F[0], E = Pe === -1, N = Je === -1, u = F.length, k = Qe(c), x = He(c), ue = Object.values(B), ce = !k && !!c.conditionalOn && c.conditionalMode === "block", je = Ce || g || ce || x;
13195
13190
  let Fe;
13196
- return ce || x ? Fe = m("common.blocked") : N ? Fe = c.conditionalOn && !k ? m("common.skipAndSubmit") : m("common.submit") : Fe = c.conditionalOn && !k ? m("common.skip") : m("common.next"), /* @__PURE__ */ i("div", { className: "metakyc-sdk", children: /* @__PURE__ */ s(ae, { children: [
13197
- /* @__PURE__ */ i(Le, { children: /* @__PURE__ */ i(At, { title: (l == null ? void 0 : l.title) || m("createApplicant.title") }) }),
13198
- /* @__PURE__ */ s(ne, { children: [
13191
+ return ce || x ? Fe = m("common.blocked") : N ? Fe = c.conditionalOn && !k ? m("common.skipAndSubmit") : m("common.submit") : Fe = c.conditionalOn && !k ? m("common.skip") : m("common.next"), /* @__PURE__ */ i("div", { className: "metakyc-sdk", children: /* @__PURE__ */ s(re, { children: [
13192
+ /* @__PURE__ */ i(Le, { children: /* @__PURE__ */ i(Rt, { title: (d == null ? void 0 : d.title) || m("createApplicant.title") }) }),
13193
+ /* @__PURE__ */ s(ae, { children: [
13199
13194
  (c.title || c.subtitle || c.description) && /* @__PURE__ */ s("div", { className: "mb-4", children: [
13200
13195
  c.title && /* @__PURE__ */ i(
13201
13196
  "h3",
@@ -13257,7 +13252,7 @@ const cn = {
13257
13252
  /* @__PURE__ */ s(Ee, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
13258
13253
  /* @__PURE__ */ s("div", { children: [
13259
13254
  !E && /* @__PURE__ */ i(
13260
- re,
13255
+ le,
13261
13256
  {
13262
13257
  type: "button",
13263
13258
  variant: "outline",
@@ -13268,24 +13263,24 @@ const cn = {
13268
13263
  children: m("common.previous")
13269
13264
  }
13270
13265
  ),
13271
- E && n && /* @__PURE__ */ i(re, { type: "button", variant: "outline", onClick: n, disabled: Ce || g, children: "Cancel" })
13266
+ E && n && /* @__PURE__ */ i(le, { type: "button", variant: "outline", onClick: n, disabled: Ce || g, children: "Cancel" })
13272
13267
  ] }),
13273
13268
  /* @__PURE__ */ i(
13274
- re,
13269
+ le,
13275
13270
  {
13276
13271
  type: "button",
13277
13272
  isLoading: Ce || g,
13278
13273
  disabled: je,
13279
- onClick: N ? Me : wt,
13274
+ onClick: N ? Me : bt,
13280
13275
  children: Fe
13281
13276
  }
13282
13277
  )
13283
13278
  ] })
13284
13279
  ] }) });
13285
13280
  }
13286
- return /* @__PURE__ */ i("div", { className: "metakyc-sdk", children: /* @__PURE__ */ i("form", { onSubmit: xt, children: /* @__PURE__ */ s(ae, { children: [
13287
- /* @__PURE__ */ i(Le, { children: /* @__PURE__ */ i(At, { title: (l == null ? void 0 : l.title) || m("createApplicant.title") }) }),
13288
- /* @__PURE__ */ s(ne, { children: [
13281
+ return /* @__PURE__ */ i("div", { className: "metakyc-sdk", children: /* @__PURE__ */ i("form", { onSubmit: wt, children: /* @__PURE__ */ s(re, { children: [
13282
+ /* @__PURE__ */ i(Le, { children: /* @__PURE__ */ i(Rt, { title: (d == null ? void 0 : d.title) || m("createApplicant.title") }) }),
13283
+ /* @__PURE__ */ s(ae, { children: [
13289
13284
  fe && /* @__PURE__ */ i("div", { className: "mb-6 p-4 rounded-lg", style: {
13290
13285
  backgroundColor: "var(--metakyc-danger-bg, color-mix(in srgb, var(--metakyc-danger, #ef4444) 10%, transparent))",
13291
13286
  border: "1px solid color-mix(in srgb, var(--metakyc-danger, #ef4444) 30%, transparent)"
@@ -13297,8 +13292,8 @@ const cn = {
13297
13292
  /* @__PURE__ */ i("div", { className: "metakyc-form-grid", children: $.map((c) => /* @__PURE__ */ i("div", { style: { gridColumn: "span 4 / span 4" }, children: pt(c) }, c)) })
13298
13293
  ] }),
13299
13294
  /* @__PURE__ */ s(Ee, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
13300
- n && /* @__PURE__ */ i(re, { type: "button", variant: "outline", onClick: n, disabled: Ce || g, children: "Cancel" }),
13301
- /* @__PURE__ */ i(re, { type: "submit", isLoading: Ce || g, children: m("createApplicant.createApplicant") })
13295
+ n && /* @__PURE__ */ i(le, { type: "button", variant: "outline", onClick: n, disabled: Ce || g, children: "Cancel" }),
13296
+ /* @__PURE__ */ i(le, { type: "submit", isLoading: Ce || g, children: m("createApplicant.createApplicant") })
13302
13297
  ] })
13303
13298
  ] }) }) });
13304
13299
  }, wi = ["companyName", "email"];
@@ -13311,45 +13306,45 @@ const un = ({
13311
13306
  onSuccess: a,
13312
13307
  onCancel: r
13313
13308
  }) => {
13314
- var mt, wt, Me, xt, pt, gt;
13315
- const { config: n, baseInformationService: o, currentTheme: d } = Se(), { createCompanyApplicant: l, isLoading: p } = Ri(), { t: f } = Ie(), g = e || ((mt = n.applicantForm) == null ? void 0 : mt.workflowKey);
13309
+ var mt, bt, Me, wt, pt, gt;
13310
+ const { config: n, baseInformationService: o, currentTheme: l } = Se(), { createCompanyApplicant: d, isLoading: p } = Ai(), { t: f } = Ie(), g = e || ((mt = n.applicantForm) == null ? void 0 : mt.workflowKey);
13316
13311
  if (!g)
13317
13312
  throw new Error(
13318
13313
  "workflowKey is required. Provide it either as a prop to CreateCompanyApplicantForm or set it in config.applicantForm.workflowKey"
13319
13314
  );
13320
- const m = t || ((wt = n.applicantForm) == null ? void 0 : wt.externalRefId) || "", w = ((Me = n.applicantForm) == null ? void 0 : Me.email) || "", C = ((xt = n.applicantForm) == null ? void 0 : xt.initialValues) || {}, K = (((pt = n.applicantForm) == null ? void 0 : pt.fieldLabelMode) || (d == null ? void 0 : d.fieldLabelMode) || "label") !== "placeholder", A = Ue(
13321
- () => d != null && d.companyFormPages && d.companyFormPages.length > 0 ? d.companyFormPages : null,
13322
- [d == null ? void 0 : d.companyFormPages]
13315
+ const m = t || ((bt = n.applicantForm) == null ? void 0 : bt.externalRefId) || "", w = ((Me = n.applicantForm) == null ? void 0 : Me.email) || "", C = ((wt = n.applicantForm) == null ? void 0 : wt.initialValues) || {}, K = (((pt = n.applicantForm) == null ? void 0 : pt.fieldLabelMode) || (l == null ? void 0 : l.fieldLabelMode) || "label") !== "placeholder", R = Ue(
13316
+ () => l != null && l.companyFormPages && l.companyFormPages.length > 0 ? l.companyFormPages : null,
13317
+ [l == null ? void 0 : l.companyFormPages]
13323
13318
  ), W = Ue(() => {
13324
- const b = new Set(wi), q = d == null ? void 0 : d.companyFormRequiredFields;
13319
+ const b = new Set(wi), q = l == null ? void 0 : l.companyFormRequiredFields;
13325
13320
  if (q) for (const P of q) b.add(P);
13326
- if (A)
13327
- for (const P of A)
13321
+ if (R)
13322
+ for (const P of R)
13328
13323
  for (const y of P.fields)
13329
13324
  !y.isCustom && y.name && y.required && b.add(y.name);
13330
13325
  return Array.from(b);
13331
- }, [d == null ? void 0 : d.companyFormRequiredFields, A]), V = Ue(() => {
13326
+ }, [l == null ? void 0 : l.companyFormRequiredFields, R]), V = Ue(() => {
13332
13327
  var b;
13333
- if (A) {
13334
- const q = A.flatMap((y) => y.fields).filter((y) => !y.isCustom && y.name).map((y) => y.name), P = new Set(q);
13328
+ if (R) {
13329
+ const q = R.flatMap((y) => y.fields).filter((y) => !y.isCustom && y.name).map((y) => y.name), P = new Set(q);
13335
13330
  for (const y of wi) P.add(y);
13336
13331
  return Array.from(P);
13337
13332
  }
13338
- return (b = n.applicantForm) != null && b.visibleFields ? n.applicantForm.visibleFields : d != null && d.companyFormVisibleFields && d.companyFormVisibleFields.length > 0 ? d.companyFormVisibleFields : Ji;
13339
- }, [(gt = n.applicantForm) == null ? void 0 : gt.visibleFields, d == null ? void 0 : d.companyFormVisibleFields, A]), F = /* @__PURE__ */ new Set(["countryResidence", "addressCountry"]), M = Ue(() => {
13333
+ return (b = n.applicantForm) != null && b.visibleFields ? n.applicantForm.visibleFields : l != null && l.companyFormVisibleFields && l.companyFormVisibleFields.length > 0 ? l.companyFormVisibleFields : Ji;
13334
+ }, [(gt = n.applicantForm) == null ? void 0 : gt.visibleFields, l == null ? void 0 : l.companyFormVisibleFields, R]), F = /* @__PURE__ */ new Set(["countryResidence", "addressCountry"]), M = Ue(() => {
13340
13335
  var q, P;
13341
13336
  const b = /* @__PURE__ */ new Set();
13342
- if (A)
13343
- for (const y of A)
13337
+ if (R)
13338
+ for (const y of R)
13344
13339
  for (const h of y.fields)
13345
13340
  !h.isCustom && h.name && F.has(h.name) && b.add(h.countriesType ?? ((q = ht[h.name]) == null ? void 0 : q.countriesType));
13346
13341
  else
13347
13342
  for (const y of V)
13348
13343
  F.has(y) && b.add((P = ht[y]) == null ? void 0 : P.countriesType);
13349
13344
  return b.size === 0 && b.add(void 0), Array.from(b);
13350
- }, [V, A]), [$, _] = T({}), [oe, v] = T(!0), z = me(/* @__PURE__ */ new Set()), j = me(/* @__PURE__ */ new Set());
13345
+ }, [V, R]), [$, _] = T({}), [ne, v] = T(!0), z = me(/* @__PURE__ */ new Set()), j = me(/* @__PURE__ */ new Set());
13351
13346
  ge(() => {
13352
- if (!d) return;
13347
+ if (!l) return;
13353
13348
  const b = M.filter((y) => {
13354
13349
  const h = y != null ? String(y) : "all";
13355
13350
  return !j.current.has(h) && !z.current.has(h);
@@ -13375,7 +13370,7 @@ const un = ({
13375
13370
  M.every((h) => j.current.has(h != null ? String(h) : "all")) && v(!1);
13376
13371
  }
13377
13372
  })();
13378
- }, [M, d]);
13373
+ }, [M, l]);
13379
13374
  const Q = (b, q) => {
13380
13375
  var h;
13381
13376
  const P = q ?? ((h = ht[b]) == null ? void 0 : h.countriesType), y = P != null ? String(P) : "all";
@@ -13425,7 +13420,7 @@ const un = ({
13425
13420
  lei: "",
13426
13421
  externalRefId: m,
13427
13422
  ...H
13428
- }), [de, Te] = T({}), [le, ke] = T(0), [ve, he] = T({}), [R, I] = T(null), [O, G] = T(!1), X = It(), B = J(() => {
13423
+ }), [de, Te] = T({}), [se, ke] = T(0), [ve, he] = T({}), [A, I] = T(null), [O, G] = T(!1), X = It(), B = J(() => {
13429
13424
  const b = ln(), q = (P) => {
13430
13425
  var L;
13431
13426
  const y = (L = ht[P]) == null ? void 0 : L.countriesType, h = y != null ? String(y) : "all", D = ($[h] || []).filter((U) => U.value);
@@ -13442,15 +13437,15 @@ const un = ({
13442
13437
  } else
13443
13438
  y[h] = D;
13444
13439
  return y;
13445
- }), A && Te((P) => {
13440
+ }), R && Te((P) => {
13446
13441
  var h, D;
13447
13442
  const y = { ...P };
13448
- for (const L of A)
13443
+ for (const L of R)
13449
13444
  for (const U of L.fields)
13450
13445
  !U.isCustom || !U.paramName || y[U.paramName] || (U.customType === "checkbox" || U.customType === "link_checkbox" ? y[U.paramName] = "true" : U.customType === "radio_group" && ((h = U.options) != null && h.length) || U.customType === "group_checkbox" && ((D = U.options) != null && D.length) ? y[U.paramName] = U.options[0].value : U.customType === "text" && (y[U.paramName] = "Sample value"));
13451
13446
  return y;
13452
13447
  }), he({}), I(null);
13453
- }, [A, $]);
13448
+ }, [R, $]);
13454
13449
  ge(() => {
13455
13450
  const b = X.current;
13456
13451
  if (b)
@@ -13462,7 +13457,7 @@ const un = ({
13462
13457
  handler: B
13463
13458
  }), () => b.unregisterAction("fill-company-form");
13464
13459
  }, [X, B]);
13465
- const Z = (b, q) => pe((P) => ({ ...P, [b]: q })), fe = (b, q) => Te((P) => ({ ...P, [b]: q })), Ae = (b) => !b.conditionalOn || de[b.conditionalOn] === "true", Ce = (b) => {
13460
+ const Z = (b, q) => pe((P) => ({ ...P, [b]: q })), fe = (b, q) => Te((P) => ({ ...P, [b]: q })), Re = (b) => !b.conditionalOn || de[b.conditionalOn] === "true", Ce = (b) => {
13466
13461
  var q;
13467
13462
  for (const P of b.fields) {
13468
13463
  if (!P.isCustom || !P.paramName || !((q = P.blockingValues) != null && q.length)) continue;
@@ -13473,7 +13468,7 @@ const un = ({
13473
13468
  return !0;
13474
13469
  }
13475
13470
  return !1;
13476
- }, _e = A && le < A.length - 1 ? le + 1 : -1, st = A && le > 0 ? le - 1 : -1, Ze = (b) => {
13471
+ }, _e = R && se < R.length - 1 ? se + 1 : -1, st = R && se > 0 ? se - 1 : -1, Ze = (b) => {
13477
13472
  const q = {};
13478
13473
  for (const P of b.fields)
13479
13474
  if (P.isCustom) {
@@ -13491,10 +13486,10 @@ const un = ({
13491
13486
  }
13492
13487
  return q;
13493
13488
  }, Ye = async () => {
13494
- if (!A) return;
13495
- const b = A[le];
13496
- if (Ce(b) || b.conditionalOn && b.conditionalMode === "block" && !Ae(b)) return;
13497
- if (b.conditionalOn && !Ae(b)) {
13489
+ if (!R) return;
13490
+ const b = R[se];
13491
+ if (Ce(b) || b.conditionalOn && b.conditionalMode === "block" && !Re(b)) return;
13492
+ if (b.conditionalOn && !Re(b)) {
13498
13493
  he({}), _e >= 0 ? ke(_e) : await De();
13499
13494
  return;
13500
13495
  }
@@ -13506,10 +13501,10 @@ const un = ({
13506
13501
  he({}), _e >= 0 ? ke(_e) : await De();
13507
13502
  }, De = async () => {
13508
13503
  var b;
13509
- if (A) {
13504
+ if (R) {
13510
13505
  let q = {};
13511
- for (const P of A)
13512
- Ae(P) && (q = { ...q, ...Ze(P) });
13506
+ for (const P of R)
13507
+ Re(P) && (q = { ...q, ...Ze(P) });
13513
13508
  if (Object.keys(q).length > 0) {
13514
13509
  he(q);
13515
13510
  return;
@@ -13520,7 +13515,7 @@ const un = ({
13520
13515
  const q = {
13521
13516
  workflowKey: te.workflowKey,
13522
13517
  externalRefId: ((b = te.externalRefId) == null ? void 0 : b.trim()) || void 0
13523
- }, P = A ? A.filter((D) => Ae(D)).flatMap((D) => D.fields).filter((D) => !D.isCustom && D.name).map((D) => D.name) : V;
13518
+ }, P = R ? R.filter((D) => Re(D)).flatMap((D) => D.fields).filter((D) => !D.isCustom && D.name).map((D) => D.name) : V;
13524
13519
  for (const D of P) {
13525
13520
  const L = te[D];
13526
13521
  if (!Kt(L))
@@ -13555,9 +13550,9 @@ const un = ({
13555
13550
  }
13556
13551
  }
13557
13552
  const y = [];
13558
- if (A) {
13559
- for (const D of A)
13560
- if (Ae(D))
13553
+ if (R) {
13554
+ for (const D of R)
13555
+ if (Re(D))
13561
13556
  for (const L of D.fields) {
13562
13557
  if (!L.isCustom || !L.paramName || L.customType === "paragraph" || L.customType === "html" || L.customType === "br" || L.customType === "link") continue;
13563
13558
  const U = de[L.paramName] ?? "";
@@ -13569,7 +13564,7 @@ const un = ({
13569
13564
  }
13570
13565
  }
13571
13566
  y.length > 0 && (q.applicantAdditionalDatas = y);
13572
- const h = await l(q);
13567
+ const h = await d(q);
13573
13568
  a(h.applicantId);
13574
13569
  } catch (q) {
13575
13570
  console.error("Error creating company applicant:", q), I(q.message || f("createCompany.failedToCreate"));
@@ -13601,7 +13596,7 @@ const un = ({
13601
13596
  value: te[b] || "",
13602
13597
  onChange: (ue) => Z(b, ue),
13603
13598
  options: [{ value: "", label: u ? f("placeholders.selectCountry") : c }, ...x],
13604
- disabled: oe,
13599
+ disabled: ne,
13605
13600
  readOnly: E,
13606
13601
  error: U
13607
13602
  },
@@ -13739,7 +13734,7 @@ const un = ({
13739
13734
  `custom-${q}`
13740
13735
  );
13741
13736
  }, Pe = (b) => {
13742
- const q = Ae(b);
13737
+ const q = Re(b);
13743
13738
  return /* @__PURE__ */ s("div", { className: "space-y-4", children: [
13744
13739
  b.conditionalOn && /* @__PURE__ */ s(
13745
13740
  "div",
@@ -13766,47 +13761,47 @@ const un = ({
13766
13761
  }) })
13767
13762
  ] });
13768
13763
  };
13769
- if (!d || oe)
13770
- return /* @__PURE__ */ i("div", { className: "metakyc-sdk", children: /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ s(ne, { children: [
13764
+ if (!l || ne)
13765
+ return /* @__PURE__ */ i("div", { className: "metakyc-sdk", children: /* @__PURE__ */ i(re, { children: /* @__PURE__ */ s(ae, { children: [
13771
13766
  /* @__PURE__ */ i(Ke, { className: "my-8" }),
13772
13767
  /* @__PURE__ */ i("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)", fontSize: "0.875rem" }, children: f("common.loadingForm") })
13773
13768
  ] }) }) });
13774
- if (A) {
13775
- const b = A[le] ?? A[0], q = st === -1, P = _e === -1, y = A.length, h = Ae(b), D = Ce(b), L = Object.values(ve), U = !h && !!b.conditionalOn && b.conditionalMode === "block", c = O || p || U || D;
13769
+ if (R) {
13770
+ const b = R[se] ?? R[0], q = st === -1, P = _e === -1, y = R.length, h = Re(b), D = Ce(b), L = Object.values(ve), U = !h && !!b.conditionalOn && b.conditionalMode === "block", c = O || p || U || D;
13776
13771
  let E;
13777
- return U || D ? E = f("common.blocked") : P ? E = b.conditionalOn && !h ? f("common.skipAndSubmit") : f("common.submit") : E = b.conditionalOn && !h ? f("common.skip") : f("common.next"), /* @__PURE__ */ i("div", { className: "metakyc-sdk", children: /* @__PURE__ */ s(ae, { children: [
13778
- /* @__PURE__ */ i(Le, { children: /* @__PURE__ */ i(At, { title: (d == null ? void 0 : d.title) || f("createCompany.title") }) }),
13779
- /* @__PURE__ */ s(ne, { children: [
13772
+ return U || D ? E = f("common.blocked") : P ? E = b.conditionalOn && !h ? f("common.skipAndSubmit") : f("common.submit") : E = b.conditionalOn && !h ? f("common.skip") : f("common.next"), /* @__PURE__ */ i("div", { className: "metakyc-sdk", children: /* @__PURE__ */ s(re, { children: [
13773
+ /* @__PURE__ */ i(Le, { children: /* @__PURE__ */ i(Rt, { title: (l == null ? void 0 : l.title) || f("createCompany.title") }) }),
13774
+ /* @__PURE__ */ s(ae, { children: [
13780
13775
  (b.title || b.subtitle) && /* @__PURE__ */ s("div", { className: "mb-4", children: [
13781
13776
  b.title && /* @__PURE__ */ i("h3", { className: "font-semibold text-base", style: { color: "var(--metakyc-text-primary, #111827)" }, children: ie(b.title, f) }),
13782
13777
  b.subtitle && /* @__PURE__ */ i("p", { className: "text-sm mt-0.5", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: ie(b.subtitle, f) })
13783
13778
  ] }),
13784
- (R || L.length > 0) && /* @__PURE__ */ s("div", { className: "mb-4 p-3 rounded-lg", style: {
13779
+ (A || L.length > 0) && /* @__PURE__ */ s("div", { className: "mb-4 p-3 rounded-lg", style: {
13785
13780
  backgroundColor: "var(--metakyc-danger-bg, color-mix(in srgb, var(--metakyc-danger, #ef4444) 10%, transparent))",
13786
13781
  border: "1px solid color-mix(in srgb, var(--metakyc-danger, #ef4444) 30%, transparent)"
13787
13782
  }, children: [
13788
- R && /* @__PURE__ */ s("p", { className: "text-sm", style: { color: "var(--metakyc-danger, #ef4444)" }, children: [
13783
+ A && /* @__PURE__ */ s("p", { className: "text-sm", style: { color: "var(--metakyc-danger, #ef4444)" }, children: [
13789
13784
  /* @__PURE__ */ i("strong", { children: f("common.errorPrefix") }),
13790
13785
  " ",
13791
- R
13786
+ A
13792
13787
  ] }),
13793
13788
  L.map((N, u) => /* @__PURE__ */ i("p", { className: "text-sm", style: { color: "var(--metakyc-danger, #ef4444)" }, children: N }, u))
13794
13789
  ] }),
13795
13790
  y > 1 && /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem", marginBottom: "1rem" }, children: [
13796
- A.map((N, u) => /* @__PURE__ */ i(
13791
+ R.map((N, u) => /* @__PURE__ */ i(
13797
13792
  "div",
13798
13793
  {
13799
13794
  style: {
13800
13795
  height: "0.375rem",
13801
13796
  borderRadius: "9999px",
13802
13797
  transition: "all 150ms",
13803
- ...u === le ? { flex: "1 1 0%", backgroundColor: "var(--metakyc-primary, #2563eb)", opacity: 0.3 } : u < le ? { width: "2rem", backgroundColor: "var(--metakyc-primary-light, #93c5fd)", opacity: 0.7 } : { width: "2rem", backgroundColor: "#e5e7eb", opacity: 0.3 }
13798
+ ...u === se ? { flex: "1 1 0%", backgroundColor: "var(--metakyc-primary, #2563eb)", opacity: 0.3 } : u < se ? { width: "2rem", backgroundColor: "var(--metakyc-primary-light, #93c5fd)", opacity: 0.7 } : { width: "2rem", backgroundColor: "#e5e7eb", opacity: 0.3 }
13804
13799
  }
13805
13800
  },
13806
13801
  u
13807
13802
  )),
13808
13803
  /* @__PURE__ */ s("span", { style: { fontSize: "0.75rem", color: "var(--metakyc-text-muted, #9ca3af)", flexShrink: 0 }, children: [
13809
- le + 1,
13804
+ se + 1,
13810
13805
  " / ",
13811
13806
  y
13812
13807
  ] })
@@ -13816,7 +13811,7 @@ const un = ({
13816
13811
  /* @__PURE__ */ s(Ee, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
13817
13812
  /* @__PURE__ */ s("div", { children: [
13818
13813
  !q && /* @__PURE__ */ i(
13819
- re,
13814
+ le,
13820
13815
  {
13821
13816
  type: "button",
13822
13817
  variant: "outline",
@@ -13827,28 +13822,28 @@ const un = ({
13827
13822
  children: f("common.previous")
13828
13823
  }
13829
13824
  ),
13830
- q && r && /* @__PURE__ */ i(re, { type: "button", variant: "outline", onClick: r, disabled: O || p, children: "Cancel" })
13825
+ q && r && /* @__PURE__ */ i(le, { type: "button", variant: "outline", onClick: r, disabled: O || p, children: "Cancel" })
13831
13826
  ] }),
13832
- /* @__PURE__ */ i(re, { type: "button", isLoading: O || p, disabled: c, onClick: P ? De : Ye, children: E })
13827
+ /* @__PURE__ */ i(le, { type: "button", isLoading: O || p, disabled: c, onClick: P ? De : Ye, children: E })
13833
13828
  ] })
13834
13829
  ] }) });
13835
13830
  }
13836
- return /* @__PURE__ */ i("div", { className: "metakyc-sdk", children: /* @__PURE__ */ i("form", { onSubmit: Qe, children: /* @__PURE__ */ s(ae, { children: [
13837
- /* @__PURE__ */ i(Le, { children: /* @__PURE__ */ i(At, { title: (d == null ? void 0 : d.title) || f("createCompany.title") }) }),
13838
- /* @__PURE__ */ s(ne, { children: [
13839
- R && /* @__PURE__ */ i("div", { className: "mb-6 p-4 rounded-lg", style: {
13831
+ return /* @__PURE__ */ i("div", { className: "metakyc-sdk", children: /* @__PURE__ */ i("form", { onSubmit: Qe, children: /* @__PURE__ */ s(re, { children: [
13832
+ /* @__PURE__ */ i(Le, { children: /* @__PURE__ */ i(Rt, { title: (l == null ? void 0 : l.title) || f("createCompany.title") }) }),
13833
+ /* @__PURE__ */ s(ae, { children: [
13834
+ A && /* @__PURE__ */ i("div", { className: "mb-6 p-4 rounded-lg", style: {
13840
13835
  backgroundColor: "var(--metakyc-danger-bg, color-mix(in srgb, var(--metakyc-danger, #ef4444) 10%, transparent))",
13841
13836
  border: "1px solid color-mix(in srgb, var(--metakyc-danger, #ef4444) 30%, transparent)"
13842
13837
  }, children: /* @__PURE__ */ s("p", { className: "text-sm", style: { color: "var(--metakyc-danger, #ef4444)" }, children: [
13843
13838
  /* @__PURE__ */ i("strong", { children: f("common.errorPrefix") }),
13844
13839
  " ",
13845
- R
13840
+ A
13846
13841
  ] }) }),
13847
13842
  /* @__PURE__ */ i("div", { className: "metakyc-form-grid", children: V.map((b) => /* @__PURE__ */ i("div", { style: { gridColumn: "span 4 / span 4" }, children: He(b) }, b)) })
13848
13843
  ] }),
13849
13844
  /* @__PURE__ */ s(Ee, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
13850
- r && /* @__PURE__ */ i(re, { type: "button", variant: "outline", onClick: r, disabled: O || p, children: "Cancel" }),
13851
- /* @__PURE__ */ i(re, { type: "submit", isLoading: O || p, children: f("createCompany.registerCompany") })
13845
+ r && /* @__PURE__ */ i(le, { type: "button", variant: "outline", onClick: r, disabled: O || p, children: "Cancel" }),
13846
+ /* @__PURE__ */ i(le, { type: "submit", isLoading: O || p, children: f("createCompany.registerCompany") })
13852
13847
  ] })
13853
13848
  ] }) }) });
13854
13849
  }, mn = ["ar"], pn = "JVBERi0xLjAKMSAwIG9iago8PCAvVHlwZSAvQ2F0YWxvZyAvUGFnZXMgMiAwIFIgPj4KZW5kb2JqCjIgMCBvYmoKPDwgL1R5cGUgL1BhZ2VzIC9LaWRzIFszIDAgUl0gL0NvdW50IDEgPj4KZW5kb2JqCjMgMCBvYmoKPDwgL1R5cGUgL1BhZ2UgL1BhcmVudCAyIDAgUiAvTWVkaWFCb3ggWzAgMCA2MTIgNzkyXSA+PgplbmRvYmoKeHJlZgowIDQKMDAwMDAwMDAwMCA2NTUzNSBmIAowMDAwMDAwMDA5IDAwMDAwIG4gCjAwMDAwMDAwNTggMDAwMDAgbiAKMDAwMDAwMDExNSAwMMDAwIG4gCnRyYWlsZXIKPDwgL1NpemUgNCAvUm9vdCAxIDAgUiA+PgpzdGFydHhyZWYKMjA2CiUlRU9G", gn = ({
@@ -13858,17 +13853,17 @@ const un = ({
13858
13853
  onWorkflowChange: r,
13859
13854
  className: n
13860
13855
  }) => {
13861
- const { t: o } = Ie(), { applicantService: d, locale: l, config: p } = Se(), f = mn.includes(l), {
13856
+ const { t: o } = Ie(), { applicantService: l, locale: d, config: p } = Se(), f = mn.includes(d), {
13862
13857
  progress: g,
13863
13858
  currentStep: m,
13864
13859
  steps: w,
13865
13860
  nextWorkflowKey: C,
13866
13861
  hasWorkflowChanged: S,
13867
13862
  isLoading: K,
13868
- error: A,
13863
+ error: R,
13869
13864
  moveBack: W,
13870
13865
  refreshProgress: V
13871
- } = la(e), [F, M] = ye.useState(!1), [$, _] = ye.useState(null), oe = ye.useRef(null), v = It(), {
13866
+ } = la(e), [F, M] = ye.useState(!1), [$, _] = ye.useState(null), ne = ye.useRef(null), v = It(), {
13872
13867
  questionnaireService: z,
13873
13868
  overviewService: j,
13874
13869
  riskScoringService: Q,
@@ -13876,57 +13871,57 @@ const un = ({
13876
13871
  uploadDocumentService: H
13877
13872
  } = Se();
13878
13873
  ye.useEffect(() => {
13879
- const R = v.current;
13880
- if (!R) return;
13881
- const I = m ? m.title || m.name || se[m.action] : null;
13882
- R.updateSdkState({
13874
+ const A = v.current;
13875
+ if (!A) return;
13876
+ const I = m ? m.title || m.name || oe[m.action] : null;
13877
+ A.updateSdkState({
13883
13878
  currentStep: I,
13884
13879
  stepOrder: (m == null ? void 0 : m.order) ?? null,
13885
- stepAction: m ? se[m.action] : null,
13880
+ stepAction: m ? oe[m.action] : null,
13886
13881
  workflowStatus: (g == null ? void 0 : g.status) != null ? qe[g.status] : null,
13887
13882
  totalSteps: w.length
13888
13883
  });
13889
13884
  }, [v, m, g == null ? void 0 : g.status, w.length]), ye.useEffect(() => {
13890
- const R = v.current;
13891
- if (R)
13892
- return R.registerAction({
13885
+ const A = v.current;
13886
+ if (A)
13887
+ return A.registerAction({
13893
13888
  id: "workflow-refresh",
13894
13889
  label: "Refresh Progress",
13895
13890
  icon: "🔄",
13896
13891
  group: "workflow",
13897
13892
  handler: V
13898
- }), () => R.unregisterAction("workflow-refresh");
13893
+ }), () => A.unregisterAction("workflow-refresh");
13899
13894
  }, [v, V]);
13900
- const te = ye.useMemo(() => w.filter((R) => R.visibility !== !1), [w]), de = ye.useMemo(
13901
- () => te.findIndex((R) => R.order === (m == null ? void 0 : m.order)),
13895
+ const te = ye.useMemo(() => w.filter((A) => A.visibility !== !1), [w]), de = ye.useMemo(
13896
+ () => te.findIndex((A) => A.order === (m == null ? void 0 : m.order)),
13902
13897
  [te, m == null ? void 0 : m.order]
13903
13898
  ) <= 0;
13904
13899
  ye.useEffect(() => {
13905
- const R = v.current;
13906
- if (R) {
13900
+ const A = v.current;
13901
+ if (A) {
13907
13902
  if (de) {
13908
- R.unregisterAction("workflow-back");
13903
+ A.unregisterAction("workflow-back");
13909
13904
  return;
13910
13905
  }
13911
- return R.registerAction({
13906
+ return A.registerAction({
13912
13907
  id: "workflow-back",
13913
13908
  label: "Go to Previous Step",
13914
13909
  icon: "⏪",
13915
13910
  group: "workflow",
13916
13911
  handler: W
13917
- }), () => R.unregisterAction("workflow-back");
13912
+ }), () => A.unregisterAction("workflow-back");
13918
13913
  }
13919
13914
  }, [v, W, de]);
13920
13915
  const Te = ye.useCallback(async () => {
13921
13916
  if (!m || !e) return;
13922
- const R = m.action;
13917
+ const A = m.action;
13923
13918
  try {
13924
- switch (R) {
13925
- case se.Overview: {
13919
+ switch (A) {
13920
+ case oe.Overview: {
13926
13921
  Y.info("[DevTools] Skipping Overview step"), await j.passOverview(e);
13927
13922
  break;
13928
13923
  }
13929
- case se.Questionaries: {
13924
+ case oe.Questionaries: {
13930
13925
  Y.info("[DevTools] Skipping Questionnaire step");
13931
13926
  const I = await z.getQuestionnaire(e), G = I.questionGroups.flatMap((X) => X.questions ?? []).map((X) => {
13932
13927
  var Z, fe;
@@ -13940,7 +13935,7 @@ const un = ({
13940
13935
  });
13941
13936
  break;
13942
13937
  }
13943
- case se.RiskScoring: {
13938
+ case oe.RiskScoring: {
13944
13939
  Y.info("[DevTools] Skipping Risk Scoring step");
13945
13940
  const O = (await Q.getRiskCriterias(e)).map((G) => {
13946
13941
  var X;
@@ -13955,7 +13950,7 @@ const un = ({
13955
13950
  });
13956
13951
  break;
13957
13952
  }
13958
- case se.AppropriatenessTest: {
13953
+ case oe.AppropriatenessTest: {
13959
13954
  Y.info("[DevTools] Skipping Appropriateness Test step");
13960
13955
  const I = await ee.getAppropriatenessTest(e), O = I.appropriatenessQuestions.map((G) => {
13961
13956
  var X;
@@ -13971,7 +13966,7 @@ const un = ({
13971
13966
  });
13972
13967
  break;
13973
13968
  }
13974
- case se.UploadDocument: {
13969
+ case oe.UploadDocument: {
13975
13970
  Y.info("[DevTools] Skipping Upload Document step");
13976
13971
  const I = await H.getUploadDocument(e), O = I.uploadDocumentFiles.map((G) => ({
13977
13972
  uploadDocumentFileId: G.id,
@@ -13987,8 +13982,8 @@ const un = ({
13987
13982
  });
13988
13983
  break;
13989
13984
  }
13990
- case se.InvestorCategorization:
13991
- case se.AdditionalData: {
13985
+ case oe.InvestorCategorization:
13986
+ case oe.AdditionalData: {
13992
13987
  Y.info("[DevTools] Skipping Investor Categorization step");
13993
13988
  const O = (await Q.getRiskCriterias(e)).map((G) => {
13994
13989
  var X;
@@ -14004,7 +13999,7 @@ const un = ({
14004
13999
  break;
14005
14000
  }
14006
14001
  default:
14007
- Y.warn(`[DevTools] Cannot skip step type: ${se[R]}`);
14002
+ Y.warn(`[DevTools] Cannot skip step type: ${oe[A]}`);
14008
14003
  return;
14009
14004
  }
14010
14005
  await V();
@@ -14022,64 +14017,64 @@ const un = ({
14022
14017
  H
14023
14018
  ]);
14024
14019
  ye.useEffect(() => {
14025
- const R = v.current;
14026
- if (!R || !m) return;
14020
+ const A = v.current;
14021
+ if (!A || !m) return;
14027
14022
  const I = m.action;
14028
- if (!(I !== se.IdentitySdk && I !== se.ManualReview)) {
14029
- R.unregisterAction("workflow-skip");
14023
+ if (!(I !== oe.IdentitySdk && I !== oe.ManualReview)) {
14024
+ A.unregisterAction("workflow-skip");
14030
14025
  return;
14031
14026
  }
14032
- return R.registerAction({
14027
+ return A.registerAction({
14033
14028
  id: "workflow-skip",
14034
- label: `Skip: ${m.title || m.name || se[I]}`,
14029
+ label: `Skip: ${m.title || m.name || oe[I]}`,
14035
14030
  icon: "⏭️",
14036
14031
  group: "workflow",
14037
14032
  handler: Te
14038
- }), () => R.unregisterAction("workflow-skip");
14033
+ }), () => A.unregisterAction("workflow-skip");
14039
14034
  }, [v, m, Te]), ye.useEffect(() => {
14040
- A && a && a(A);
14041
- }, [A, a]), ye.useEffect(() => {
14035
+ R && a && a(R);
14036
+ }, [R, a]), ye.useEffect(() => {
14042
14037
  g != null && g.workflowResult && t && t(g.workflowResult);
14043
14038
  }, [g == null ? void 0 : g.workflowResult, t]);
14044
- const le = ye.useRef(!1);
14039
+ const se = ye.useRef(!1);
14045
14040
  if (ye.useEffect(() => {
14046
- if (!S || !C || !e || le.current) return;
14047
- le.current = !0;
14048
- let R = !1;
14041
+ if (!S || !C || !e || se.current) return;
14042
+ se.current = !0;
14043
+ let A = !1;
14049
14044
  return M(!0), _(null), (async () => {
14050
14045
  try {
14051
14046
  Y.info(`[SDK] Auto-duplicating applicant ${e} → workflow ${C}`);
14052
- const I = await d.duplicateApplicant({
14047
+ const I = await l.duplicateApplicant({
14053
14048
  applicantId: e,
14054
14049
  workflowKey: C
14055
14050
  });
14056
- if (R) return;
14051
+ if (A) return;
14057
14052
  Y.info(`[SDK] Duplicated → new applicantId=${I.applicantId}`), r && r(I.applicantId);
14058
14053
  } catch (I) {
14059
- if (R) return;
14054
+ if (A) return;
14060
14055
  const O = (I == null ? void 0 : I.message) || "Failed to continue with new workflow";
14061
14056
  Y.warn(`[SDK] Duplicate applicant failed: ${O}`), _(O);
14062
14057
  } finally {
14063
- R || M(!1);
14058
+ A || M(!1);
14064
14059
  }
14065
14060
  })(), () => {
14066
- R = !0;
14061
+ A = !0;
14067
14062
  };
14068
- }, [S, C, e, d, r]), K || F || !g)
14069
- return /* @__PURE__ */ i("div", { className: `metakyc-sdk ${n || ""}`, dir: f ? "rtl" : void 0, children: /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ s(ne, { children: [
14063
+ }, [S, C, e, l, r]), K || F || !g)
14064
+ return /* @__PURE__ */ i("div", { className: `metakyc-sdk ${n || ""}`, dir: f ? "rtl" : void 0, children: /* @__PURE__ */ i(re, { children: /* @__PURE__ */ s(ae, { children: [
14070
14065
  /* @__PURE__ */ i(Ke, { className: "my-8" }),
14071
14066
  /* @__PURE__ */ i("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: o("workflow.loadingWorkflow") })
14072
14067
  ] }) }) });
14073
- if (A)
14074
- return /* @__PURE__ */ i("div", { className: `metakyc-sdk ${n || ""}`, dir: f ? "rtl" : void 0, children: /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ s("div", { className: "text-center py-8", children: [
14068
+ if (R)
14069
+ return /* @__PURE__ */ i("div", { className: `metakyc-sdk ${n || ""}`, dir: f ? "rtl" : void 0, children: /* @__PURE__ */ i(re, { children: /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ s("div", { className: "text-center py-8", children: [
14075
14070
  /* @__PURE__ */ i("p", { className: "text-lg mb-4", style: { color: "var(--metakyc-danger, #ef4444)" }, children: o("workflow.errorOccurred") }),
14076
- /* @__PURE__ */ i("p", { style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: A.message })
14071
+ /* @__PURE__ */ i("p", { style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: R.message })
14077
14072
  ] }) }) }) });
14078
14073
  if (S)
14079
- return $ ? /* @__PURE__ */ i("div", { className: `metakyc-sdk ${n || ""}`, dir: f ? "rtl" : void 0, children: /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ s("div", { className: "text-center py-8", children: [
14074
+ return $ ? /* @__PURE__ */ i("div", { className: `metakyc-sdk ${n || ""}`, dir: f ? "rtl" : void 0, children: /* @__PURE__ */ i(re, { children: /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ s("div", { className: "text-center py-8", children: [
14080
14075
  /* @__PURE__ */ i("p", { className: "text-lg mb-2", style: { color: "var(--metakyc-danger, #ef4444)" }, children: o("workflow.errorOccurred") }),
14081
14076
  /* @__PURE__ */ i("p", { className: "text-sm", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: $ })
14082
- ] }) }) }) }) : /* @__PURE__ */ i("div", { className: `metakyc-sdk ${n || ""}`, dir: f ? "rtl" : void 0, children: /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ s(ne, { children: [
14077
+ ] }) }) }) }) : /* @__PURE__ */ i("div", { className: `metakyc-sdk ${n || ""}`, dir: f ? "rtl" : void 0, children: /* @__PURE__ */ i(re, { children: /* @__PURE__ */ s(ae, { children: [
14083
14078
  /* @__PURE__ */ i(Ke, { className: "my-8" }),
14084
14079
  /* @__PURE__ */ i("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: o("workflow.loadingWorkflow") })
14085
14080
  ] }) }) });
@@ -14091,42 +14086,39 @@ const un = ({
14091
14086
  reviewStatus: g.reviewStatus,
14092
14087
  workflowResult: g.workflowResult,
14093
14088
  customMessage: g.customMessage,
14094
- onContinue: t && g.workflowResult ? () => t(g.workflowResult) : void 0,
14095
- onContactSupport: () => {
14096
- typeof window < "u" && (window.location.href = "mailto:support@example.com");
14097
- }
14089
+ onContinue: t && g.workflowResult ? () => t(g.workflowResult) : void 0
14098
14090
  }
14099
14091
  ) });
14100
14092
  if (!m)
14101
- return /* @__PURE__ */ i("div", { className: `metakyc-sdk ${n || ""}`, dir: f ? "rtl" : void 0, children: /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ s(ne, { children: [
14093
+ return /* @__PURE__ */ i("div", { className: `metakyc-sdk ${n || ""}`, dir: f ? "rtl" : void 0, children: /* @__PURE__ */ i(re, { children: /* @__PURE__ */ s(ae, { children: [
14102
14094
  /* @__PURE__ */ i(Ke, { className: "my-8" }),
14103
14095
  /* @__PURE__ */ i("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: g.status === qe.IdentityPending ? o("workflow.loadingIdentityVerification") : o("workflow.loadingCurrentStep") })
14104
14096
  ] }) }) });
14105
- const ke = (R) => {
14106
- switch (R) {
14107
- case se.Overview:
14097
+ const ke = (A) => {
14098
+ switch (A) {
14099
+ case oe.Overview:
14108
14100
  return o("stepNames.overview");
14109
- case se.Questionaries:
14101
+ case oe.Questionaries:
14110
14102
  return o("stepNames.questionnaire");
14111
- case se.UploadDocument:
14103
+ case oe.UploadDocument:
14112
14104
  return o("stepNames.documents");
14113
- case se.IdentitySdk:
14105
+ case oe.IdentitySdk:
14114
14106
  return o("stepNames.identity");
14115
- case se.RiskScoring:
14107
+ case oe.RiskScoring:
14116
14108
  return o("stepNames.riskAssessment");
14117
- case se.InvestorCategorization:
14109
+ case oe.InvestorCategorization:
14118
14110
  return o("stepNames.investorCategorization");
14119
- case se.AppropriatenessTest:
14111
+ case oe.AppropriatenessTest:
14120
14112
  return o("stepNames.appropriatenessTest");
14121
- case se.AdditionalData:
14113
+ case oe.AdditionalData:
14122
14114
  return o("stepNames.additionalData");
14123
- case se.ManualReview:
14115
+ case oe.ManualReview:
14124
14116
  return o("stepNames.review");
14125
14117
  default:
14126
14118
  return "";
14127
14119
  }
14128
14120
  }, ve = () => {
14129
- const R = w.filter((B) => B.visibility !== !1), I = R.findIndex((B) => B.order === m.order), O = I >= 0 ? I + 1 : 1, G = R.length, X = G > 1 ? (I + 1) / G * 100 : 100;
14121
+ const A = w.filter((B) => B.visibility !== !1), I = A.findIndex((B) => B.order === m.order), O = I >= 0 ? I + 1 : 1, G = A.length, X = G > 1 ? (I + 1) / G * 100 : 100;
14130
14122
  return /* @__PURE__ */ s("div", { className: "metakyc-progress-wrapper", style: {
14131
14123
  marginBottom: "24px",
14132
14124
  backgroundColor: "var(--metakyc-header-bg, var(--metakyc-surface, var(--metakyc-background, #ffffff)))",
@@ -14138,7 +14130,7 @@ const un = ({
14138
14130
  }, children: [
14139
14131
  p.showLanguagePicker && /* @__PURE__ */ i("div", { style: { display: "flex", justifyContent: "flex-end", marginBottom: "8px" }, children: /* @__PURE__ */ i(Di, {}) }),
14140
14132
  /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "flex-start", justifyContent: "space-between", marginBottom: "16px", gap: "8px", flexWrap: "wrap" }, children: [
14141
- /* @__PURE__ */ i(At, { hideLanguagePicker: !0 }),
14133
+ /* @__PURE__ */ i(Rt, { hideLanguagePicker: !0 }),
14142
14134
  /* @__PURE__ */ i(va, { variant: g.status === 1 ? "info" : "success", children: o("common.stepXofY", { current: O, total: G }) })
14143
14135
  ] }),
14144
14136
  /* @__PURE__ */ s("div", { style: { position: "relative", height: "4px", borderRadius: "999px", overflow: "hidden", marginBottom: "16px" }, children: [
@@ -14157,8 +14149,8 @@ const un = ({
14157
14149
  /* @__PURE__ */ i(
14158
14150
  fn,
14159
14151
  {
14160
- ref: oe,
14161
- visibleSteps: R,
14152
+ ref: ne,
14153
+ visibleSteps: A,
14162
14154
  currentVisibleStepIndex: I,
14163
14155
  getStepFallbackName: ke
14164
14156
  }
@@ -14173,23 +14165,23 @@ const un = ({
14173
14165
  onBack: O ? void 0 : W
14174
14166
  };
14175
14167
  switch (m.action) {
14176
- case se.Questionaries:
14168
+ case oe.Questionaries:
14177
14169
  return /* @__PURE__ */ i(Ea, { ...G });
14178
- case se.UploadDocument:
14170
+ case oe.UploadDocument:
14179
14171
  return /* @__PURE__ */ i(Ma, { ...G });
14180
- case se.Overview:
14172
+ case oe.Overview:
14181
14173
  return /* @__PURE__ */ i(ja, { ...G });
14182
- case se.IdentitySdk:
14174
+ case oe.IdentitySdk:
14183
14175
  return /* @__PURE__ */ i(Qa, { ...G });
14184
- case se.RiskScoring:
14176
+ case oe.RiskScoring:
14185
14177
  return /* @__PURE__ */ i(Ka, { ...G });
14186
- case se.AdditionalData:
14178
+ case oe.AdditionalData:
14187
14179
  return /* @__PURE__ */ i($a, { ...G });
14188
- case se.InvestorCategorization:
14180
+ case oe.InvestorCategorization:
14189
14181
  return /* @__PURE__ */ i(Ha, { ...G });
14190
- case se.AppropriatenessTest:
14182
+ case oe.AppropriatenessTest:
14191
14183
  return /* @__PURE__ */ i(Ya, { ...G });
14192
- case se.ManualReview:
14184
+ case oe.ManualReview:
14193
14185
  return /* @__PURE__ */ i(
14194
14186
  hi,
14195
14187
  {
@@ -14200,7 +14192,7 @@ const un = ({
14200
14192
  }
14201
14193
  );
14202
14194
  default:
14203
- return /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ s(ne, { className: "py-12 text-center", children: [
14195
+ return /* @__PURE__ */ i(re, { children: /* @__PURE__ */ s(ae, { className: "py-12 text-center", children: [
14204
14196
  /* @__PURE__ */ i("div", { className: "mb-4", children: /* @__PURE__ */ i(Ke, {}) }),
14205
14197
  /* @__PURE__ */ s("p", { className: "text-gray-600 dark:text-gray-400 mb-2", children: [
14206
14198
  o("workflow.processingStep"),
@@ -14210,7 +14202,7 @@ const un = ({
14210
14202
  /* @__PURE__ */ s("p", { className: "text-sm text-gray-500 dark:text-gray-400", children: [
14211
14203
  o("workflow.actionType"),
14212
14204
  " ",
14213
- se[m.action]
14205
+ oe[m.action]
14214
14206
  ] })
14215
14207
  ] }) });
14216
14208
  }
@@ -14224,8 +14216,8 @@ const un = ({
14224
14216
  const n = ye.useRef(null), o = ye.useRef(null);
14225
14217
  return ye.useImperativeHandle(r, () => n.current), ye.useEffect(() => {
14226
14218
  if (o.current && n.current) {
14227
- const d = n.current, l = o.current, p = l.offsetLeft - d.offsetWidth / 2 + l.offsetWidth / 2;
14228
- d.scrollTo({ left: Math.max(0, p), behavior: "smooth" });
14219
+ const l = n.current, d = o.current, p = d.offsetLeft - l.offsetWidth / 2 + d.offsetWidth / 2;
14220
+ l.scrollTo({ left: Math.max(0, p), behavior: "smooth" });
14229
14221
  }
14230
14222
  }, [t]), /* @__PURE__ */ i(
14231
14223
  "div",
@@ -14244,8 +14236,8 @@ const un = ({
14244
14236
  padding: "4px 0",
14245
14237
  gap: "0"
14246
14238
  },
14247
- children: e.map((d, l) => {
14248
- const p = l < t, f = l === t, g = p || f, m = d.displayName || d.name || a(d.action) || `Step ${l + 1}`;
14239
+ children: e.map((l, d) => {
14240
+ const p = d < t, f = d === t, g = p || f, m = l.displayName || l.name || a(l.action) || `Step ${d + 1}`;
14249
14241
  return /* @__PURE__ */ s(ye.Fragment, { children: [
14250
14242
  /* @__PURE__ */ s(
14251
14243
  "div",
@@ -14277,7 +14269,7 @@ const un = ({
14277
14269
  color: "var(--metakyc-text-muted, #9ca3af)",
14278
14270
  border: "2px solid var(--metakyc-border, #e5e7eb)"
14279
14271
  }
14280
- }, children: p ? /* @__PURE__ */ i("svg", { width: "14", height: "14", fill: "none", stroke: "currentColor", strokeWidth: 2.5, viewBox: "0 0 24 24", children: /* @__PURE__ */ i("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M5 13l4 4L19 7" }) }) : l + 1 }),
14272
+ }, children: p ? /* @__PURE__ */ i("svg", { width: "14", height: "14", fill: "none", stroke: "currentColor", strokeWidth: 2.5, viewBox: "0 0 24 24", children: /* @__PURE__ */ i("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M5 13l4 4L19 7" }) }) : d + 1 }),
14281
14273
  /* @__PURE__ */ i("span", { style: {
14282
14274
  marginLeft: "6px",
14283
14275
  fontSize: "13px",
@@ -14289,7 +14281,7 @@ const un = ({
14289
14281
  ]
14290
14282
  }
14291
14283
  ),
14292
- l < e.length - 1 && /* @__PURE__ */ i("div", { style: {
14284
+ d < e.length - 1 && /* @__PURE__ */ i("div", { style: {
14293
14285
  flex: "1 1 0%",
14294
14286
  minWidth: "16px",
14295
14287
  height: "2px",
@@ -14299,12 +14291,12 @@ const un = ({
14299
14291
  opacity: p ? 1 : 0.25,
14300
14292
  transition: "opacity 0.2s ease"
14301
14293
  } })
14302
- ] }, d.order);
14294
+ ] }, l.order);
14303
14295
  })
14304
14296
  }
14305
14297
  );
14306
14298
  }
14307
- ), yn = ["ar"], Ct = ({ className: e, children: t }) => {
14299
+ ), yn = ["ar"], St = ({ className: e, children: t }) => {
14308
14300
  const { locale: a } = Se(), r = yn.includes(a);
14309
14301
  return /* @__PURE__ */ i("div", { className: `metakyc-sdk ${e || ""}`, dir: r ? "rtl" : "ltr", children: t });
14310
14302
  }, Vn = (e) => {
@@ -14329,8 +14321,8 @@ const xi = ({
14329
14321
  className: n
14330
14322
  }) => {
14331
14323
  var V, F;
14332
- const { t: o } = Ie(), { config: d } = Se(), {
14333
- phase: l,
14324
+ const { t: o } = Ie(), { config: l } = Se(), {
14325
+ phase: d,
14334
14326
  applicantId: p,
14335
14327
  isCompany: f,
14336
14328
  workflowKey: g,
@@ -14340,10 +14332,10 @@ const xi = ({
14340
14332
  switchApplicant: S,
14341
14333
  refresh: K
14342
14334
  } = ca(e);
14343
- hn(l, p, f, g);
14344
- const A = It();
14335
+ hn(d, p, f, g);
14336
+ const R = It();
14345
14337
  ye.useEffect(() => {
14346
- const M = A.current;
14338
+ const M = R.current;
14347
14339
  if (M)
14348
14340
  return M.registerAction({
14349
14341
  id: "dev-refresh-state",
@@ -14352,32 +14344,32 @@ const xi = ({
14352
14344
  group: "general",
14353
14345
  handler: K
14354
14346
  }), () => M.unregisterAction("dev-refresh-state");
14355
- }, [A, K]), ye.useEffect(() => {
14347
+ }, [R, K]), ye.useEffect(() => {
14356
14348
  m && a && a(m);
14357
14349
  }, [m, a]);
14358
14350
  const W = ye.useCallback((M) => {
14359
14351
  r == null || r(M), C(M);
14360
14352
  }, [r, C]);
14361
- if (l === "loading" || w)
14362
- return /* @__PURE__ */ i(Ct, { className: n, children: /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ s(ne, { children: [
14353
+ if (d === "loading" || w)
14354
+ return /* @__PURE__ */ i(St, { className: n, children: /* @__PURE__ */ i(re, { children: /* @__PURE__ */ s(ae, { children: [
14363
14355
  /* @__PURE__ */ i(Ke, { className: "my-8" }),
14364
14356
  /* @__PURE__ */ i("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: o("workflow.loadingWorkflow") })
14365
14357
  ] }) }) });
14366
- if (l === "error")
14367
- return /* @__PURE__ */ i(Ct, { className: n, children: /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ s("div", { className: "text-center py-8", children: [
14358
+ if (d === "error")
14359
+ return /* @__PURE__ */ i(St, { className: n, children: /* @__PURE__ */ i(re, { children: /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ s("div", { className: "text-center py-8", children: [
14368
14360
  /* @__PURE__ */ i("p", { className: "text-lg mb-4", style: { color: "var(--metakyc-danger, #ef4444)" }, children: o("workflow.errorOccurred") }),
14369
14361
  /* @__PURE__ */ i("p", { style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: (m == null ? void 0 : m.message) || "An unexpected error occurred." })
14370
14362
  ] }) }) }) });
14371
- if (l === "create_applicant") {
14372
- const M = g || ((V = d.applicantForm) == null ? void 0 : V.workflowKey), $ = (F = d.applicantForm) == null ? void 0 : F.externalRefId;
14373
- return f ? /* @__PURE__ */ i(Ct, { className: n, children: /* @__PURE__ */ i(
14363
+ if (d === "create_applicant") {
14364
+ const M = g || ((V = l.applicantForm) == null ? void 0 : V.workflowKey), $ = (F = l.applicantForm) == null ? void 0 : F.externalRefId;
14365
+ return f ? /* @__PURE__ */ i(St, { className: n, children: /* @__PURE__ */ i(
14374
14366
  un,
14375
14367
  {
14376
14368
  workflowKey: M,
14377
14369
  externalRefId: $,
14378
14370
  onSuccess: W
14379
14371
  }
14380
- ) }) : /* @__PURE__ */ i(Ct, { className: n, children: /* @__PURE__ */ i(
14372
+ ) }) : /* @__PURE__ */ i(St, { className: n, children: /* @__PURE__ */ i(
14381
14373
  dn,
14382
14374
  {
14383
14375
  workflowKey: M,
@@ -14387,7 +14379,7 @@ const xi = ({
14387
14379
  }
14388
14380
  ) });
14389
14381
  }
14390
- return p ? /* @__PURE__ */ i(Ct, { className: n, children: /* @__PURE__ */ i(
14382
+ return p ? /* @__PURE__ */ i(St, { className: n, children: /* @__PURE__ */ i(
14391
14383
  gn,
14392
14384
  {
14393
14385
  applicantId: p,
@@ -14396,7 +14388,7 @@ const xi = ({
14396
14388
  onWorkflowChange: S,
14397
14389
  className: ""
14398
14390
  }
14399
- ) }) : /* @__PURE__ */ i(Ct, { className: n, children: /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ i("div", { className: "text-center py-8", children: /* @__PURE__ */ i("p", { style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: "Unable to determine SDK state. Ensure the session token contains a valid ExternalRefId." }) }) }) }) });
14391
+ ) }) : /* @__PURE__ */ i(St, { className: n, children: /* @__PURE__ */ i(re, { children: /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i("div", { className: "text-center py-8", children: /* @__PURE__ */ i("p", { style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: "Unable to determine SDK state. Ensure the session token contains a valid ExternalRefId." }) }) }) }) });
14400
14392
  };
14401
14393
  function Bn(e) {
14402
14394
  return ot.object({
@@ -14459,10 +14451,10 @@ export {
14459
14451
  Ya as AppropriatenessTestStep,
14460
14452
  va as Badge,
14461
14453
  fr as BaseInformationService,
14462
- re as Button,
14454
+ le as Button,
14463
14455
  ht as COMPANY_FIELD_METADATA,
14464
- ae as Card,
14465
- ne as CardContent,
14456
+ re as Card,
14457
+ ae as CardContent,
14466
14458
  Ee as CardFooter,
14467
14459
  Le as CardHeader,
14468
14460
  Xe as Checkbox,
@@ -14480,7 +14472,7 @@ export {
14480
14472
  Yi as FileType,
14481
14473
  wa as FileUpload,
14482
14474
  Dt as GenderType,
14483
- At as Header,
14475
+ Rt as Header,
14484
14476
  sr as HttpClient,
14485
14477
  ct as IdentityProviderManager,
14486
14478
  gr as IdentityService,
@@ -14489,7 +14481,7 @@ export {
14489
14481
  Ne as Input,
14490
14482
  yr as InvestorCategorizationService,
14491
14483
  Ha as InvestorCategorizationStep,
14492
- Re as InvestorCategorizationType,
14484
+ Ae as InvestorCategorizationType,
14493
14485
  Zi as InvestorCategoryType,
14494
14486
  Hi as KycProcessStatus,
14495
14487
  Ki as KycStatus,
@@ -14498,10 +14490,10 @@ export {
14498
14490
  Di as LanguagePicker,
14499
14491
  Za as Logo,
14500
14492
  Vn as MetaKYC,
14501
- Ai as MetaKYCContext,
14493
+ Ri as MetaKYCContext,
14502
14494
  rt as MetaKYCError,
14503
14495
  zn as MetaKYCProvider,
14504
- An as MetaKYCSession,
14496
+ Rn as MetaKYCSession,
14505
14497
  ka as MultiSelect,
14506
14498
  Dr as OnfidoProvider,
14507
14499
  mr as OverviewService,
@@ -14519,7 +14511,7 @@ export {
14519
14511
  nt as SearchableSelect,
14520
14512
  Xt as Select,
14521
14513
  Ke as Spinner,
14522
- Rr as StepRouter,
14514
+ Ar as StepRouter,
14523
14515
  Er as SumsubProvider,
14524
14516
  Mr as ThemeManager,
14525
14517
  Be as ThemePreset,
@@ -14532,8 +14524,8 @@ export {
14532
14524
  at as ValueDataType,
14533
14525
  Ir as WorkflowOrchestrator,
14534
14526
  Et as WorkflowResultType,
14535
- Ar as WorkflowState,
14536
- se as WorkflowStepAction,
14527
+ Rr as WorkflowState,
14528
+ oe as WorkflowStepAction,
14537
14529
  Wn as appropriatenessTestSchema,
14538
14530
  Fn as clearAllStorage,
14539
14531
  na as clearApplicantId,
@@ -14554,7 +14546,7 @@ export {
14554
14546
  Tt as getThemePreset,
14555
14547
  jn as getWorkflowState,
14556
14548
  br as healthcareTheme,
14557
- Rn as isScriptLoaded,
14549
+ An as isScriptLoaded,
14558
14550
  Ci as loadScript,
14559
14551
  Y as logger,
14560
14552
  xr as minimalTheme,
@@ -14564,7 +14556,7 @@ export {
14564
14556
  Pn as saveApplicantId,
14565
14557
  oa as saveWorkflowState,
14566
14558
  Sr as themePresets,
14567
- Ri as useApplicant,
14559
+ Ai as useApplicant,
14568
14560
  On as useAppropriatenessTest,
14569
14561
  pa as useIdentityVerification,
14570
14562
  la as useKycWorkflow,