@vpdev2/metakyc 1.0.71 → 1.0.72

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
@@ -3,12 +3,12 @@ var Fi = (e, t, a) => t in e ? ji(e, t, { enumerable: !0, configurable: !0, writ
3
3
  var Re = (e, t, a) => Fi(e, typeof t != "symbol" ? t + "" : t, a);
4
4
  import xi from "axios";
5
5
  import { jsx as i, jsxs as l, Fragment as wt } from "react/jsx-runtime";
6
- import * as ei from "react";
7
- import we, { createContext as Gt, useMemo as He, useState as w, useEffect as Ne, useContext as Qt, useCallback as ee, useRef as be, forwardRef as Rt, createElement as Kt } from "react";
6
+ import * as Jt from "react";
7
+ import we, { createContext as _t, useMemo as Ye, useState as S, useEffect as Ne, useContext as Gt, useCallback as ee, useRef as be, forwardRef as Rt, createElement as Ut } from "react";
8
8
  import Oi, { createPortal as Mt } from "react-dom";
9
9
  import { useForm as Bi, Controller as kt } from "react-hook-form";
10
10
  import { z as dt } from "zod";
11
- var de = /* @__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))(de || {}), Lt = /* @__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))(Lt || {}), Xe = /* @__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))(Xe || {}), Vi = /* @__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))(Vi || {}), qi = /* @__PURE__ */ ((e) => (e[e.LowRisk = 0] = "LowRisk", e[e.MediumRisk = 1] = "MediumRisk", e[e.HighRisk = 2] = "HighRisk", e[e.Alert = 3] = "Alert", e))(qi || {}), wi = /* @__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))(wi || {}), at = /* @__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))(at || {}), Ki = /* @__PURE__ */ ((e) => (e[e.ProviderResultPending = 0] = "ProviderResultPending", e[e.ProviderResultReceived = 1] = "ProviderResultReceived", e[e.Canceled = 2] = "Canceled", e[e.ExtendedToNewApplicant = 3] = "ExtendedToNewApplicant", e))(Ki || {}), Ui = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.ProviderResultPending = 1] = "ProviderResultPending", e[e.ProviderResultReceived = 2] = "ProviderResultReceived", e[e.Canceled = 3] = "Canceled", e))(Ui || {}), et = /* @__PURE__ */ ((e) => (e[e.Onfido = 0] = "Onfido", e[e.Sumsub = 2] = "Sumsub", e[e.SardinAI = 3] = "SardinAI", e))(et || {}), Wi = /* @__PURE__ */ ((e) => (e[e.Individual = 0] = "Individual", e[e.Company = 1] = "Company", e))(Wi || {}), Et = /* @__PURE__ */ ((e) => (e[e.Male = 0] = "Male", e[e.Female = 1] = "Female", e[e.Other = 2] = "Other", e))(Et || {}), $i = /* @__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))($i || {}), Hi = /* @__PURE__ */ ((e) => (e[e.Pending = 0] = "Pending", e[e.Approved = 1] = "Approved", e[e.Rejected = 2] = "Rejected", e[e.RequiresRevision = 3] = "RequiresRevision", e))(Hi || {}), Yi = /* @__PURE__ */ ((e) => (e[e.SingleChoice = 0] = "SingleChoice", e[e.MultipleChoice = 1] = "MultipleChoice", e[e.Text = 2] = "Text", e))(Yi || {}), lt = /* @__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))(lt || {}), _i = /* @__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))(_i || {}), Gi = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Country = 1] = "Country", e))(Gi || {}), Ue = /* @__PURE__ */ ((e) => (e[e.Individual = 0] = "Individual", e[e.Sophisticated = 1] = "Sophisticated", e[e.HighNetWorth = 2] = "HighNetWorth", e[e.Business = 3] = "Business", e))(Ue || {}), Qi = /* @__PURE__ */ ((e) => (e[e.Retail = 0] = "Retail", e[e.Professional = 1] = "Professional", e[e.EligibleCounterparty = 2] = "EligibleCounterparty", e))(Qi || {});
11
+ var de = /* @__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))(de || {}), Lt = /* @__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))(Lt || {}), Xe = /* @__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))(Xe || {}), Vi = /* @__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))(Vi || {}), qi = /* @__PURE__ */ ((e) => (e[e.LowRisk = 0] = "LowRisk", e[e.MediumRisk = 1] = "MediumRisk", e[e.HighRisk = 2] = "HighRisk", e[e.Alert = 3] = "Alert", e))(qi || {}), wi = /* @__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))(wi || {}), at = /* @__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))(at || {}), Ui = /* @__PURE__ */ ((e) => (e[e.ProviderResultPending = 0] = "ProviderResultPending", e[e.ProviderResultReceived = 1] = "ProviderResultReceived", e[e.Canceled = 2] = "Canceled", e[e.ExtendedToNewApplicant = 3] = "ExtendedToNewApplicant", e))(Ui || {}), Ki = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.ProviderResultPending = 1] = "ProviderResultPending", e[e.ProviderResultReceived = 2] = "ProviderResultReceived", e[e.Canceled = 3] = "Canceled", e))(Ki || {}), et = /* @__PURE__ */ ((e) => (e[e.Onfido = 0] = "Onfido", e[e.Sumsub = 2] = "Sumsub", e[e.SardinAI = 3] = "SardinAI", e))(et || {}), Wi = /* @__PURE__ */ ((e) => (e[e.Individual = 0] = "Individual", e[e.Company = 1] = "Company", e))(Wi || {}), Et = /* @__PURE__ */ ((e) => (e[e.Male = 0] = "Male", e[e.Female = 1] = "Female", e[e.Other = 2] = "Other", e))(Et || {}), $i = /* @__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))($i || {}), Yi = /* @__PURE__ */ ((e) => (e[e.Pending = 0] = "Pending", e[e.Approved = 1] = "Approved", e[e.Rejected = 2] = "Rejected", e[e.RequiresRevision = 3] = "RequiresRevision", e))(Yi || {}), Hi = /* @__PURE__ */ ((e) => (e[e.SingleChoice = 0] = "SingleChoice", e[e.MultipleChoice = 1] = "MultipleChoice", e[e.Text = 2] = "Text", e))(Hi || {}), lt = /* @__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))(lt || {}), _i = /* @__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))(_i || {}), Gi = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Country = 1] = "Country", e))(Gi || {}), Ke = /* @__PURE__ */ ((e) => (e[e.Individual = 0] = "Individual", e[e.Sophisticated = 1] = "Sophisticated", e[e.HighNetWorth = 2] = "HighNetWorth", e[e.Business = 3] = "Business", e))(Ke || {}), Qi = /* @__PURE__ */ ((e) => (e[e.Retail = 0] = "Retail", e[e.Professional = 1] = "Professional", e[e.EligibleCounterparty = 2] = "EligibleCounterparty", e))(Qi || {});
12
12
  const ft = {
13
13
  Nationality: 10,
14
14
  Address: 20,
@@ -69,7 +69,7 @@ const ft = {
69
69
  "email",
70
70
  "phonenumber",
71
71
  "dateOfBirth"
72
- ], ti = [
72
+ ], ei = [
73
73
  { value: "EN", label: "English" },
74
74
  { value: "DE", label: "German" },
75
75
  { value: "FR", label: "French" },
@@ -194,7 +194,7 @@ class Ct {
194
194
  return t instanceof st;
195
195
  }
196
196
  }
197
- const ii = {
197
+ const ti = {
198
198
  none: 0,
199
199
  error: 1,
200
200
  warn: 2,
@@ -222,7 +222,7 @@ class tr {
222
222
  return this.level !== "none";
223
223
  }
224
224
  shouldLog(t) {
225
- return ii[this.level] >= ii[t];
225
+ return ti[this.level] >= ti[t];
226
226
  }
227
227
  request(t, a, r) {
228
228
  const n = ++this.requestCounter;
@@ -268,72 +268,43 @@ class tr {
268
268
  this.shouldLog("debug") && console.log(`%c[MetaKYC]%c ${t}`, ze.prefix, ze.dim, ...a);
269
269
  }
270
270
  }
271
- const H = new tr(), ir = 16, ri = 32;
272
- function Ut(e) {
271
+ const Y = new tr(), ir = 16, ii = 32;
272
+ function ri(e) {
273
273
  const t = new Uint8Array(e);
274
274
  let a = "";
275
275
  for (let r = 0; r < t.byteLength; r++)
276
276
  a += String.fromCharCode(t[r]);
277
277
  return btoa(a);
278
278
  }
279
- function Wt(e) {
279
+ function Kt(e) {
280
280
  const t = atob(e), a = new Uint8Array(t.length);
281
281
  for (let r = 0; r < t.length; r++)
282
282
  a[r] = t.charCodeAt(r);
283
283
  return a;
284
284
  }
285
- async function rr() {
286
- return crypto.subtle.generateKey(
287
- { name: "ECDH", namedCurve: "P-256" },
288
- !1,
289
- ["deriveKey", "deriveBits"]
290
- );
291
- }
292
- async function ar(e) {
293
- const t = await crypto.subtle.exportKey("raw", e);
294
- return Ut(t);
295
- }
296
- async function nr(e) {
297
- const t = Wt(e);
298
- return crypto.subtle.importKey(
299
- "raw",
300
- t.buffer,
301
- { name: "ECDH", namedCurve: "P-256" },
302
- !1,
303
- []
304
- );
305
- }
306
- async function or(e, t) {
307
- const a = await nr(t), r = await crypto.subtle.deriveBits(
308
- { name: "ECDH", public: a },
309
- e,
310
- 256
311
- );
312
- return crypto.subtle.digest("SHA-256", r);
313
- }
314
- async function sr(e, t) {
285
+ async function rr(e, t) {
315
286
  const a = crypto.getRandomValues(new Uint8Array(ir)), 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), s = new Uint8Array(o), c = await crypto.subtle.importKey("raw", e, { name: "HMAC", hash: "SHA-256" }, !1, ["sign"]), d = new Uint8Array(a.length + s.length);
316
287
  d.set(a, 0), d.set(s, a.length);
317
288
  const u = new Uint8Array(await crypto.subtle.sign("HMAC", c, d)), g = new Uint8Array(s.length + u.length);
318
289
  return g.set(s, 0), g.set(u, s.length), {
319
- iv: Ut(a.buffer),
320
- data: Ut(g.buffer)
290
+ iv: ri(a.buffer),
291
+ data: ri(g.buffer)
321
292
  };
322
293
  }
323
- async function lr(e, t) {
324
- const a = Wt(t.iv), r = Wt(t.data), n = r.slice(0, r.length - ri), o = r.slice(r.length - ri), s = await crypto.subtle.importKey("raw", e, { name: "HMAC", hash: "SHA-256" }, !1, ["verify"]), c = new Uint8Array(a.length + n.length);
294
+ async function ar(e, t) {
295
+ const a = Kt(t.iv), r = Kt(t.data), n = r.slice(0, r.length - ii), o = r.slice(r.length - ii), s = await crypto.subtle.importKey("raw", e, { name: "HMAC", hash: "SHA-256" }, !1, ["verify"]), c = new Uint8Array(a.length + n.length);
325
296
  if (c.set(a, 0), c.set(n, a.length), !await crypto.subtle.verify("HMAC", s, o, c)) throw new Error("HMAC verification failed — payload may have been tampered with");
326
297
  const u = await crypto.subtle.importKey("raw", e, { name: "AES-CBC" }, !1, ["decrypt"]), g = await crypto.subtle.decrypt({ name: "AES-CBC", iv: a.buffer }, u, n);
327
298
  return new TextDecoder().decode(g);
328
299
  }
329
300
  const ai = 200;
330
- class cr {
301
+ class nr {
331
302
  constructor(t) {
332
303
  Re(this, "axiosInstance");
333
304
  Re(this, "endpointBuilder");
334
305
  Re(this, "config");
335
306
  Re(this, "inflightGets", /* @__PURE__ */ new Map());
336
- this.config = { ...Ji, ...t }, H.setLevel(this.config.debug ?? this.config.logLevel ?? "none"), this.endpointBuilder = new er(this.config.endpoints), this.axiosInstance = xi.create({
307
+ this.config = { ...Ji, ...t }, Y.setLevel(this.config.debug ?? this.config.logLevel ?? "none"), this.endpointBuilder = new er(this.config.endpoints), this.axiosInstance = xi.create({
337
308
  baseURL: this.config.baseUrl,
338
309
  timeout: this.config.timeout,
339
310
  headers: {
@@ -350,7 +321,7 @@ class cr {
350
321
  const r = (a.method || "").toUpperCase();
351
322
  if ((r === "POST" || r === "PUT") && a.data != null) {
352
323
  const n = typeof a.data == "string" ? a.data : JSON.stringify(a.data);
353
- a.data = await sr(this.config.encryptionKey, n);
324
+ a.data = await rr(this.config.encryptionKey, n);
354
325
  }
355
326
  }
356
327
  return a;
@@ -361,10 +332,10 @@ class cr {
361
332
  var r;
362
333
  if (this.isEncryptionActive() && ((r = a.headers) == null ? void 0 : r["x-sdk-encrypted"]) === "1")
363
334
  try {
364
- const n = a.data, o = await lr(this.config.encryptionKey, n);
335
+ const n = a.data, o = await ar(this.config.encryptionKey, n);
365
336
  a.data = JSON.parse(o);
366
337
  } catch (n) {
367
- H.debug(`Failed to decrypt response: ${(n == null ? void 0 : n.message) || n} — passing through as-is`), console.warn("[SDK-ENC] Decrypt failed:", (n == null ? void 0 : n.message) || n);
338
+ Y.debug(`Failed to decrypt response: ${(n == null ? void 0 : n.message) || n} — passing through as-is`), console.warn("[SDK-ENC] Decrypt failed:", (n == null ? void 0 : n.message) || n);
368
339
  }
369
340
  return a;
370
341
  },
@@ -386,19 +357,19 @@ class cr {
386
357
  async get(t, a, r) {
387
358
  const n = this.buildEndpoint(t, a), o = this.dedupKey(n, r), s = this.inflightGets.get(o);
388
359
  if (s && Date.now() - s.timestamp < ai)
389
- return H.debug(`Dedup → reusing in-flight GET ${a}`), s.promise;
360
+ return Y.debug(`Dedup → reusing in-flight GET ${a}`), s.promise;
390
361
  const c = performance.now();
391
- H.request("GET", n, r);
362
+ Y.request("GET", n, r);
392
363
  const d = (async () => {
393
364
  var u;
394
365
  try {
395
366
  const g = await this.axiosInstance.get(n, {
396
367
  params: r
397
368
  }), p = Math.round(performance.now() - c);
398
- return H.response("GET", n, g.status, p, (u = g.data) == null ? void 0 : u.result), this.handleResponse(g);
369
+ return Y.response("GET", n, g.status, p, (u = g.data) == null ? void 0 : u.result), this.handleResponse(g);
399
370
  } catch (g) {
400
371
  const p = Math.round(performance.now() - c);
401
- throw H.error("GET", n, g, p), Ct.handleAxiosError(g);
372
+ throw Y.error("GET", n, g, p), Ct.handleAxiosError(g);
402
373
  } finally {
403
374
  setTimeout(() => this.inflightGets.delete(o), ai);
404
375
  }
@@ -408,39 +379,39 @@ class cr {
408
379
  async post(t, a, r) {
409
380
  var s;
410
381
  const n = this.buildEndpoint(t, a), o = performance.now();
411
- H.request("POST", n, r);
382
+ Y.request("POST", n, r);
412
383
  try {
413
384
  const c = await this.axiosInstance.post(n, r), d = Math.round(performance.now() - o);
414
- return H.response("POST", n, c.status, d, (s = c.data) == null ? void 0 : s.result), this.handleResponse(c);
385
+ return Y.response("POST", n, c.status, d, (s = c.data) == null ? void 0 : s.result), this.handleResponse(c);
415
386
  } catch (c) {
416
387
  const d = Math.round(performance.now() - o);
417
- throw H.error("POST", n, c, d), Ct.handleAxiosError(c);
388
+ throw Y.error("POST", n, c, d), Ct.handleAxiosError(c);
418
389
  }
419
390
  }
420
391
  async put(t, a, r) {
421
392
  var s;
422
393
  const n = this.buildEndpoint(t, a), o = performance.now();
423
- H.request("PUT", n, r);
394
+ Y.request("PUT", n, r);
424
395
  try {
425
396
  const c = await this.axiosInstance.put(n, r), d = Math.round(performance.now() - o);
426
- return H.response("PUT", n, c.status, d, (s = c.data) == null ? void 0 : s.result), this.handleResponse(c);
397
+ return Y.response("PUT", n, c.status, d, (s = c.data) == null ? void 0 : s.result), this.handleResponse(c);
427
398
  } catch (c) {
428
399
  const d = Math.round(performance.now() - o);
429
- throw H.error("PUT", n, c, d), Ct.handleAxiosError(c);
400
+ throw Y.error("PUT", n, c, d), Ct.handleAxiosError(c);
430
401
  }
431
402
  }
432
403
  async delete(t, a, r) {
433
404
  var s;
434
405
  const n = this.buildEndpoint(t, a), o = performance.now();
435
- H.request("DELETE", n, r);
406
+ Y.request("DELETE", n, r);
436
407
  try {
437
408
  const c = await this.axiosInstance.delete(n, {
438
409
  params: r
439
410
  }), d = Math.round(performance.now() - o);
440
- return H.response("DELETE", n, c.status, d, (s = c.data) == null ? void 0 : s.result), this.handleResponse(c);
411
+ return Y.response("DELETE", n, c.status, d, (s = c.data) == null ? void 0 : s.result), this.handleResponse(c);
441
412
  } catch (c) {
442
413
  const d = Math.round(performance.now() - o);
443
- throw H.error("DELETE", n, c, d), Ct.handleAxiosError(c);
414
+ throw Y.error("DELETE", n, c, d), Ct.handleAxiosError(c);
444
415
  }
445
416
  }
446
417
  handleResponse(t) {
@@ -456,7 +427,7 @@ class cr {
456
427
  return this.axiosInstance;
457
428
  }
458
429
  }
459
- class Sn {
430
+ class vn {
460
431
  static async createToken(t) {
461
432
  const { baseUrl: a, apiKey: r, secretKey: n, tenantId: o, clientId: s, externalRefId: c, workflowKey: d, email: u, isCompany: g, applicant: p } = t, z = t.enableEncryption !== !1;
462
433
  if (!o && !s)
@@ -467,30 +438,33 @@ class Sn {
467
438
  throw new Error("workflowKey is required. Pass the workflow key for this KYC session.");
468
439
  if (!u)
469
440
  throw new Error("email is required. Pass the applicant's email address.");
470
- let S = null;
471
- const x = {
441
+ const w = {
472
442
  apiKey: r,
473
443
  secretKey: n,
474
444
  externalRefId: c,
475
445
  workflowKey: d,
476
446
  email: u
477
447
  };
478
- o != null && (x.tenantId = o), s && (x.clientId = s), g != null && (x.isCompany = g), p && (x.applicant = p), z && typeof crypto < "u" && crypto.subtle && (S = await rr(), x.sdkPublicKey = await ar(S.publicKey));
479
- const C = (await xi.post(
448
+ o != null && (w.tenantId = o), s && (w.clientId = s), g != null && (w.isCompany = g), p && (w.applicant = p), z && (w.sdkPublicKey = "1");
449
+ const F = (await xi.post(
480
450
  `${a.replace(/\/+$/, "")}/api/SdkSession/CreateToken`,
481
- x,
451
+ w,
482
452
  { headers: { "Content-Type": "application/json" } }
483
453
  )).data;
484
- if (!C.success)
485
- throw new Error(C.error || "Failed to create session token.");
486
- const K = C.result;
487
- return S && K.serverPublicKey && K.encSessionId && (K.encryptionKey = await or(
488
- S.privateKey,
489
- K.serverPublicKey
490
- )), K;
454
+ if (!F.success)
455
+ throw new Error(F.error || "Failed to create session token.");
456
+ const C = F.result;
457
+ if (C.encSessionKey && C.encSessionId) {
458
+ const W = Kt(C.encSessionKey);
459
+ C.encryptionKey = W.buffer.slice(
460
+ W.byteOffset,
461
+ W.byteOffset + W.byteLength
462
+ );
463
+ }
464
+ return C;
491
465
  }
492
466
  }
493
- class dr {
467
+ class or {
494
468
  constructor(t) {
495
469
  this.httpClient = t;
496
470
  }
@@ -620,7 +594,7 @@ class dr {
620
594
  )).result;
621
595
  }
622
596
  }
623
- class mr {
597
+ class sr {
624
598
  constructor(t) {
625
599
  this.httpClient = t;
626
600
  }
@@ -647,7 +621,7 @@ class mr {
647
621
  )).result;
648
622
  }
649
623
  }
650
- class ur {
624
+ class lr {
651
625
  constructor(t) {
652
626
  this.httpClient = t;
653
627
  }
@@ -675,7 +649,7 @@ class ur {
675
649
  await this.httpClient.post("UploadDocument", "ReviewUploadDocument", t);
676
650
  }
677
651
  }
678
- class pr {
652
+ class cr {
679
653
  constructor(t) {
680
654
  this.httpClient = t;
681
655
  }
@@ -701,7 +675,7 @@ class pr {
701
675
  )).result;
702
676
  }
703
677
  }
704
- class gr {
678
+ class dr {
705
679
  constructor(t) {
706
680
  this.httpClient = t;
707
681
  }
@@ -723,7 +697,7 @@ class gr {
723
697
  await this.httpClient.get("Applicant", "PassOverview", { applicantId: t });
724
698
  }
725
699
  }
726
- class fr {
700
+ class mr {
727
701
  constructor(t) {
728
702
  this.httpClient = t;
729
703
  }
@@ -758,7 +732,7 @@ class fr {
758
732
  )).result;
759
733
  }
760
734
  }
761
- class yr {
735
+ class ur {
762
736
  constructor(t) {
763
737
  this.httpClient = t;
764
738
  }
@@ -766,13 +740,13 @@ class yr {
766
740
  * Request identity verification for individual applicant
767
741
  */
768
742
  async identityRequest(t) {
769
- H.debug("IdentityRequest input:", t);
743
+ Y.debug("IdentityRequest input:", t);
770
744
  const a = await this.httpClient.post(
771
745
  "Applicant",
772
746
  "IdentityRequest",
773
747
  t
774
748
  );
775
- return H.debug("IdentityRequest response:", a), a.result;
749
+ return Y.debug("IdentityRequest response:", a), a.result;
776
750
  }
777
751
  /**
778
752
  * Request identity verification for company applicant
@@ -796,7 +770,7 @@ class yr {
796
770
  ttl: 604800
797
771
  // 7 days
798
772
  };
799
- return H.debug("Restarting identity with restart=true:", a), this.identityRequest(a);
773
+ return Y.debug("Restarting identity with restart=true:", a), this.identityRequest(a);
800
774
  }
801
775
  /**
802
776
  * Restart identity verification (company)
@@ -817,16 +791,16 @@ class yr {
817
791
  * Returns a fresh short-lived token without restarting the verification.
818
792
  */
819
793
  async refreshSumsubToken(t) {
820
- H.debug(`Refreshing Sumsub token for applicant: ${t}`);
794
+ Y.debug(`Refreshing Sumsub token for applicant: ${t}`);
821
795
  const a = await this.httpClient.post(
822
796
  "Applicant",
823
797
  "RefreshSumsubToken",
824
798
  { applicantId: t }
825
799
  );
826
- return H.debug("Sumsub token refresh result:", a), a.result.accessToken;
800
+ return Y.debug("Sumsub token refresh result:", a), a.result.accessToken;
827
801
  }
828
802
  }
829
- class hr {
803
+ class pr {
830
804
  constructor(t) {
831
805
  this.httpClient = t;
832
806
  }
@@ -862,7 +836,7 @@ class hr {
862
836
  )).result;
863
837
  }
864
838
  }
865
- class kr {
839
+ class gr {
866
840
  constructor(t) {
867
841
  this.httpClient = t;
868
842
  }
@@ -947,7 +921,7 @@ const We = {
947
921
  textMuted: "#9ca3af"
948
922
  }
949
923
  }
950
- }, vr = {
924
+ }, fr = {
951
925
  name: "Corporate",
952
926
  logo: {
953
927
  url: "",
@@ -980,7 +954,7 @@ const We = {
980
954
  cardPadding: "1.5rem",
981
955
  inputHeight: "2.5rem"
982
956
  }
983
- }, br = {
957
+ }, yr = {
984
958
  name: "Fintech",
985
959
  logo: {
986
960
  url: "",
@@ -1013,7 +987,7 @@ const We = {
1013
987
  cardPadding: "2rem",
1014
988
  inputHeight: "3rem"
1015
989
  }
1016
- }, xr = {
990
+ }, hr = {
1017
991
  name: "Healthcare",
1018
992
  logo: {
1019
993
  url: "",
@@ -1055,7 +1029,7 @@ const We = {
1055
1029
  textSecondary: "#CBD5E1"
1056
1030
  }
1057
1031
  }
1058
- }, wr = {
1032
+ }, kr = {
1059
1033
  name: "Modern",
1060
1034
  logo: {
1061
1035
  url: "",
@@ -1088,7 +1062,7 @@ const We = {
1088
1062
  cardPadding: "2rem",
1089
1063
  inputHeight: "3rem"
1090
1064
  }
1091
- }, Sr = {
1065
+ }, vr = {
1092
1066
  name: "Minimal",
1093
1067
  logo: {
1094
1068
  url: "",
@@ -1121,18 +1095,18 @@ const We = {
1121
1095
  cardPadding: "1.25rem",
1122
1096
  inputHeight: "2.25rem"
1123
1097
  }
1124
- }, Cr = {
1098
+ }, br = {
1125
1099
  [$e.Default]: We,
1126
- [$e.Corporate]: vr,
1127
- [$e.Fintech]: br,
1128
- [$e.Healthcare]: xr,
1129
- [$e.Modern]: wr,
1130
- [$e.Minimal]: Sr
1100
+ [$e.Corporate]: fr,
1101
+ [$e.Fintech]: yr,
1102
+ [$e.Healthcare]: hr,
1103
+ [$e.Modern]: kr,
1104
+ [$e.Minimal]: vr
1131
1105
  };
1132
1106
  function Nt(e) {
1133
- return Cr[e] || We;
1107
+ return br[e] || We;
1134
1108
  }
1135
- class Nr {
1109
+ class xr {
1136
1110
  constructor(t) {
1137
1111
  this.httpClient = t;
1138
1112
  }
@@ -1236,7 +1210,7 @@ class Nr {
1236
1210
  } : r;
1237
1211
  }
1238
1212
  }
1239
- class Tr {
1213
+ class wr {
1240
1214
  constructor(t) {
1241
1215
  this.httpClient = t;
1242
1216
  }
@@ -1249,11 +1223,11 @@ class Tr {
1249
1223
  );
1250
1224
  return a.result ?? a;
1251
1225
  } catch {
1252
- return H.warn(`Failed to fetch translations for locale ${t}`), {};
1226
+ return Y.warn(`Failed to fetch translations for locale ${t}`), {};
1253
1227
  }
1254
1228
  }
1255
1229
  }
1256
- class Rr {
1230
+ class Sr {
1257
1231
  constructor() {
1258
1232
  Re(this, "listeners", /* @__PURE__ */ new Map());
1259
1233
  }
@@ -1298,9 +1272,9 @@ class Rr {
1298
1272
  this.listeners.delete(t);
1299
1273
  }
1300
1274
  }
1301
- class Ar {
1275
+ class Cr {
1302
1276
  constructor() {
1303
- Re(this, "events", new Rr());
1277
+ Re(this, "events", new Sr());
1304
1278
  Re(this, "_applicantId", null);
1305
1279
  Re(this, "_progress", null);
1306
1280
  Re(this, "_error", null);
@@ -1438,7 +1412,7 @@ class Ar {
1438
1412
  this.events.clear();
1439
1413
  }
1440
1414
  }
1441
- class Ir {
1415
+ class Nr {
1442
1416
  constructor() {
1443
1417
  Re(this, "handlers", /* @__PURE__ */ new Map());
1444
1418
  }
@@ -1479,11 +1453,11 @@ class Ir {
1479
1453
  return r.submitData(a);
1480
1454
  }
1481
1455
  }
1482
- class zr {
1456
+ class Tr {
1483
1457
  constructor(t, a, r, n, o, s, c, d) {
1484
1458
  Re(this, "state");
1485
1459
  Re(this, "stepRouter");
1486
- this.applicantService = t, this.questionnaireService = a, this.uploadDocumentService = r, this.appropriatenessTestService = n, this.overviewService = o, this.riskScoringService = s, this.investorCategorizationService = d, this.state = new Ar(), this.stepRouter = new Ir(), this.registerStepHandlers();
1460
+ this.applicantService = t, this.questionnaireService = a, this.uploadDocumentService = r, this.appropriatenessTestService = n, this.overviewService = o, this.riskScoringService = s, this.investorCategorizationService = d, this.state = new Cr(), this.stepRouter = new Nr(), this.registerStepHandlers();
1487
1461
  }
1488
1462
  /**
1489
1463
  * Register all step handlers
@@ -1633,14 +1607,14 @@ function Si(e, t) {
1633
1607
  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);
1634
1608
  });
1635
1609
  }
1636
- function Cn(e) {
1610
+ function bn(e) {
1637
1611
  return !!document.getElementById(e);
1638
1612
  }
1639
- function Nn(e) {
1613
+ function xn(e) {
1640
1614
  const t = document.getElementById(e);
1641
1615
  t && t.remove();
1642
1616
  }
1643
- const Lr = "https://static.sumsub.com/idensic/static/sns-websdk-builder.js";
1617
+ const Rr = "https://static.sumsub.com/idensic/static/sns-websdk-builder.js";
1644
1618
  function ot(e, t) {
1645
1619
  try {
1646
1620
  const a = document.querySelector(".metakyc-sdk") || document.documentElement;
@@ -1649,7 +1623,7 @@ function ot(e, t) {
1649
1623
  return t;
1650
1624
  }
1651
1625
  }
1652
- function Er() {
1626
+ function Ar() {
1653
1627
  const e = ot("--metakyc-primary", "#2563eb"), t = ot("--metakyc-primary-hover", "#1d4ed8"), a = ot("--metakyc-background", "#ffffff"), r = ot("--metakyc-surface", "#f9fafb"), n = ot("--metakyc-text-primary", "#111827"), o = ot("--metakyc-text-secondary", "#6b7280"), s = ot("--metakyc-text-muted", "#9ca3af"), c = ot("--metakyc-border", "#e5e7eb");
1654
1628
  return `
1655
1629
  body, html { font-family: ${ot(
@@ -1676,7 +1650,7 @@ a { color: ${e}; }
1676
1650
  a:hover { color: ${t}; }
1677
1651
  `.trim();
1678
1652
  }
1679
- class Dr {
1653
+ class Ir {
1680
1654
  constructor(t) {
1681
1655
  Re(this, "sdk", null);
1682
1656
  Re(this, "config");
@@ -1685,7 +1659,7 @@ class Dr {
1685
1659
  this.config = t;
1686
1660
  }
1687
1661
  async loadSDK() {
1688
- if (!window.snsWebSdk && (await Si(Lr, "sumsub-websdk"), !window.snsWebSdk))
1662
+ if (!window.snsWebSdk && (await Si(Rr, "sumsub-websdk"), !window.snsWebSdk))
1689
1663
  throw new Error("Sumsub Web SDK failed to load from CDN");
1690
1664
  }
1691
1665
  async initialize(t) {
@@ -1695,7 +1669,7 @@ class Dr {
1695
1669
  };
1696
1670
  if (this.config.applicantEmail && (a.email = this.config.applicantEmail), this.config.applicantPhone && (a.phone = this.config.applicantPhone), this.config.theme && (a.theme = this.config.theme), this.config.customizationName && (a.customizationName = this.config.customizationName), !this.config.customizationName) {
1697
1671
  const n = {};
1698
- this.config.customCss && (n.customCss = this.config.customCss), this.config.customCssStr && (n.customCssStr = this.config.customCssStr), n.customCssStr || (n.customCssStr = Er()), a.uiConf = n;
1672
+ this.config.customCss && (n.customCss = this.config.customCss), this.config.customCssStr && (n.customCssStr = this.config.customCssStr), n.customCssStr || (n.customCssStr = Ar()), a.uiConf = n;
1699
1673
  }
1700
1674
  const r = window.snsWebSdk.init(
1701
1675
  this.config.accessToken,
@@ -1733,7 +1707,7 @@ class Dr {
1733
1707
  this.errorCallback = t;
1734
1708
  }
1735
1709
  }
1736
- class Pr {
1710
+ class zr {
1737
1711
  constructor(t) {
1738
1712
  Re(this, "sdk", null);
1739
1713
  Re(this, "config");
@@ -1799,7 +1773,7 @@ class Pr {
1799
1773
  this.sdk && (this.sdk.tearDown(), this.sdk = null);
1800
1774
  }
1801
1775
  }
1802
- class Mr {
1776
+ class Lr {
1803
1777
  constructor(t) {
1804
1778
  Re(this, "sardineContext", null);
1805
1779
  Re(this, "config");
@@ -1950,11 +1924,11 @@ class pt {
1950
1924
  static createProvider(t, a) {
1951
1925
  switch (t) {
1952
1926
  case et.Sumsub:
1953
- return new Dr(a);
1927
+ return new Ir(a);
1954
1928
  case et.Onfido:
1955
- return new Pr(a);
1929
+ return new zr(a);
1956
1930
  case et.SardinAI:
1957
- return new Mr(a);
1931
+ return new Lr(a);
1958
1932
  default:
1959
1933
  throw new Error(`Unsupported identity provider: ${t}`);
1960
1934
  }
@@ -1998,7 +1972,7 @@ class pt {
1998
1972
  }
1999
1973
  }
2000
1974
  }
2001
- class jr {
1975
+ class Er {
2002
1976
  constructor() {
2003
1977
  Re(this, "currentTheme", We);
2004
1978
  Re(this, "customStyleElement", null);
@@ -2008,7 +1982,7 @@ class jr {
2008
1982
  * Apply theme configuration
2009
1983
  */
2010
1984
  applyTheme(t) {
2011
- this.currentTheme = this.mergeWithDefault(t), this.injectThemeCSS(), this.currentTheme.customCSS && this.injectCustomCSS(this.currentTheme.customCSS), H.debug(`Theme applied: ${this.currentTheme.name || "Custom"}`);
1985
+ this.currentTheme = this.mergeWithDefault(t), this.injectThemeCSS(), this.currentTheme.customCSS && this.injectCustomCSS(this.currentTheme.customCSS), Y.debug(`Theme applied: ${this.currentTheme.name || "Custom"}`);
2012
1986
  }
2013
1987
  /**
2014
1988
  * Build and inject a single <style> tag that sets all CSS variables on
@@ -2172,7 +2146,7 @@ ${Object.entries(n).filter(([, d]) => !!d).map(([d, u]) => ` --metakyc-${d}: ${
2172
2146
  return t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
2173
2147
  }
2174
2148
  }
2175
- const Fr = {
2149
+ const Dr = {
2176
2150
  common: {
2177
2151
  next: "Next",
2178
2152
  previous: "Previous",
@@ -2452,7 +2426,7 @@ const Fr = {
2452
2426
  logo: {
2453
2427
  companyLogo: "Company Logo"
2454
2428
  }
2455
- }, Or = {
2429
+ }, Pr = {
2456
2430
  common: {
2457
2431
  next: "Weiter",
2458
2432
  previous: "Zurück",
@@ -2732,7 +2706,7 @@ const Fr = {
2732
2706
  logo: {
2733
2707
  companyLogo: "Firmenlogo"
2734
2708
  }
2735
- }, Br = {
2709
+ }, Mr = {
2736
2710
  common: {
2737
2711
  next: "Suivant",
2738
2712
  previous: "Précédent",
@@ -3012,7 +2986,7 @@ const Fr = {
3012
2986
  logo: {
3013
2987
  companyLogo: "Logo de l'entreprise"
3014
2988
  }
3015
- }, Vr = {
2989
+ }, jr = {
3016
2990
  common: {
3017
2991
  next: "Siguiente",
3018
2992
  previous: "Anterior",
@@ -3292,7 +3266,7 @@ const Fr = {
3292
3266
  logo: {
3293
3267
  companyLogo: "Logo de la empresa"
3294
3268
  }
3295
- }, qr = {
3269
+ }, Fr = {
3296
3270
  common: {
3297
3271
  next: "Avanti",
3298
3272
  previous: "Precedente",
@@ -3572,7 +3546,7 @@ const Fr = {
3572
3546
  logo: {
3573
3547
  companyLogo: "Logo aziendale"
3574
3548
  }
3575
- }, Kr = {
3549
+ }, Or = {
3576
3550
  common: {
3577
3551
  next: "Próximo",
3578
3552
  previous: "Anterior",
@@ -3852,7 +3826,7 @@ const Fr = {
3852
3826
  logo: {
3853
3827
  companyLogo: "Logo da Empresa"
3854
3828
  }
3855
- }, Ur = {
3829
+ }, Br = {
3856
3830
  common: {
3857
3831
  next: "Volgende",
3858
3832
  previous: "Vorige",
@@ -4132,7 +4106,7 @@ const Fr = {
4132
4106
  logo: {
4133
4107
  companyLogo: "Bedrijfslogo"
4134
4108
  }
4135
- }, Wr = {
4109
+ }, Vr = {
4136
4110
  common: {
4137
4111
  next: "Dalej",
4138
4112
  previous: "Wstecz",
@@ -4412,7 +4386,7 @@ const Fr = {
4412
4386
  logo: {
4413
4387
  companyLogo: "Logo Firmy"
4414
4388
  }
4415
- }, $r = {
4389
+ }, qr = {
4416
4390
  common: {
4417
4391
  next: "Далее",
4418
4392
  previous: "Назад",
@@ -4692,7 +4666,7 @@ const Fr = {
4692
4666
  logo: {
4693
4667
  companyLogo: "Логотип Компании"
4694
4668
  }
4695
- }, Hr = {
4669
+ }, Ur = {
4696
4670
  common: {
4697
4671
  next: "下一步",
4698
4672
  previous: "上一步",
@@ -4972,7 +4946,7 @@ const Fr = {
4972
4946
  logo: {
4973
4947
  companyLogo: "公司标志"
4974
4948
  }
4975
- }, Yr = {
4949
+ }, Kr = {
4976
4950
  common: {
4977
4951
  next: "次へ",
4978
4952
  previous: "前へ",
@@ -5252,7 +5226,7 @@ const Fr = {
5252
5226
  logo: {
5253
5227
  companyLogo: "会社ロゴ"
5254
5228
  }
5255
- }, _r = {
5229
+ }, Wr = {
5256
5230
  common: {
5257
5231
  next: "التالي",
5258
5232
  previous: "السابق",
@@ -5532,7 +5506,7 @@ const Fr = {
5532
5506
  logo: {
5533
5507
  companyLogo: "شعار الشركة"
5534
5508
  }
5535
- }, Gr = {
5509
+ }, $r = {
5536
5510
  common: {
5537
5511
  next: "İleri",
5538
5512
  previous: "Geri",
@@ -5812,7 +5786,7 @@ const Fr = {
5812
5786
  logo: {
5813
5787
  companyLogo: "Şirket Logosu"
5814
5788
  }
5815
- }, Qr = {
5789
+ }, Yr = {
5816
5790
  common: {
5817
5791
  next: "Nästa",
5818
5792
  previous: "Föregående",
@@ -6092,7 +6066,7 @@ const Fr = {
6092
6066
  logo: {
6093
6067
  companyLogo: "Företagslogotyp"
6094
6068
  }
6095
- }, Xr = {
6069
+ }, Hr = {
6096
6070
  common: {
6097
6071
  next: "Næste",
6098
6072
  previous: "Forrige",
@@ -6372,7 +6346,7 @@ const Fr = {
6372
6346
  logo: {
6373
6347
  companyLogo: "Virksomhedslogo"
6374
6348
  }
6375
- }, Zr = {
6349
+ }, _r = {
6376
6350
  common: {
6377
6351
  next: "Seuraava",
6378
6352
  previous: "Edellinen",
@@ -6652,7 +6626,7 @@ const Fr = {
6652
6626
  logo: {
6653
6627
  companyLogo: "Yrityksen logo"
6654
6628
  }
6655
- }, Jr = {
6629
+ }, Gr = {
6656
6630
  common: {
6657
6631
  next: "Neste",
6658
6632
  previous: "Forrige",
@@ -6932,24 +6906,24 @@ const Fr = {
6932
6906
  logo: {
6933
6907
  companyLogo: "Firmalogo"
6934
6908
  }
6935
- }, $t = {
6936
- en: Fr,
6937
- de: Or,
6938
- fr: Br,
6939
- es: Vr,
6940
- it: qr,
6941
- pt: Kr,
6942
- nl: Ur,
6943
- pl: Wr,
6944
- ru: $r,
6945
- zh: Hr,
6946
- ja: Yr,
6947
- ar: _r,
6948
- tr: Gr,
6949
- sv: Qr,
6950
- da: Xr,
6951
- fi: Zr,
6952
- no: Jr
6909
+ }, Wt = {
6910
+ en: Dr,
6911
+ de: Pr,
6912
+ fr: Mr,
6913
+ es: jr,
6914
+ it: Fr,
6915
+ pt: Or,
6916
+ nl: Br,
6917
+ pl: Vr,
6918
+ ru: qr,
6919
+ zh: Ur,
6920
+ ja: Kr,
6921
+ ar: Wr,
6922
+ tr: $r,
6923
+ sv: Yr,
6924
+ da: Hr,
6925
+ fi: _r,
6926
+ no: Gr
6953
6927
  };
6954
6928
  function ni(e, t) {
6955
6929
  const a = t.split(".");
@@ -6960,7 +6934,7 @@ function ni(e, t) {
6960
6934
  }
6961
6935
  return typeof r == "string" ? r : void 0;
6962
6936
  }
6963
- function ea(e, t) {
6937
+ function Qr(e, t) {
6964
6938
  return t ? e.replace(/\{\{(\w+)\}\}/g, (a, r) => {
6965
6939
  const n = t[r];
6966
6940
  return n != null ? String(n) : `{{${r}}}`;
@@ -6974,9 +6948,9 @@ function oi(e, t) {
6974
6948
  }
6975
6949
  return a;
6976
6950
  }
6977
- function Ht(e) {
6951
+ function $t(e) {
6978
6952
  const t = e.toLowerCase().split(/[-_]/)[0];
6979
- return $t[t] || $t.en;
6953
+ return Wt[t] || Wt.en;
6980
6954
  }
6981
6955
  function si(e, t) {
6982
6956
  for (const a of Object.keys(e)) {
@@ -6986,28 +6960,28 @@ function si(e, t) {
6986
6960
  }
6987
6961
  }
6988
6962
  function Ci(e) {
6989
- const t = $t.en;
6963
+ const t = Wt.en;
6990
6964
  return (a, r) => {
6991
6965
  const n = !a.includes("."), o = ni(e, a) ?? (n ? si(e, a) : void 0) ?? ni(t, a) ?? (n ? si(t, a) : void 0) ?? a;
6992
- return ea(o, r);
6966
+ return Qr(o, r);
6993
6967
  };
6994
6968
  }
6995
- const ta = /^t\(['"](.+?)['"]\)$/, li = "$t:";
6969
+ const Xr = /^t\(['"](.+?)['"]\)$/, li = "$t:";
6996
6970
  function oe(e, t) {
6997
6971
  if (!e) return "";
6998
6972
  const a = e.trim();
6999
6973
  if (a.startsWith(li))
7000
6974
  return t(a.slice(li.length));
7001
- const r = ta.exec(a);
6975
+ const r = Xr.exec(a);
7002
6976
  return r ? t(r[1]) : e;
7003
6977
  }
7004
- const Yt = "1.0.70", Ni = Gt(null), ci = `metakyc-translations-${Yt}-`, ia = ({
6978
+ const Yt = "1.0.72", Ni = _t(null), ci = `metakyc-translations-${Yt}-`, Zr = ({
7005
6979
  locale: e,
7006
6980
  fetchTranslations: t,
7007
6981
  children: a
7008
6982
  }) => {
7009
- const r = e.toLowerCase().split(/[-_]/)[0], n = He(() => {
7010
- const d = Ht(r);
6983
+ const r = e.toLowerCase().split(/[-_]/)[0], n = Ye(() => {
6984
+ const d = $t(r);
7011
6985
  if (typeof window > "u") return d;
7012
6986
  try {
7013
6987
  const u = localStorage.getItem(ci + r);
@@ -7015,30 +6989,30 @@ const Yt = "1.0.70", Ni = Gt(null), ci = `metakyc-translations-${Yt}-`, ia = ({
7015
6989
  } catch {
7016
6990
  }
7017
6991
  return d;
7018
- }, [r]), [o, s] = w(n);
6992
+ }, [r]), [o, s] = S(n);
7019
6993
  Ne(() => {
7020
6994
  if (!t) return;
7021
6995
  let d = !1;
7022
6996
  return t(r).then((u) => {
7023
6997
  if (d) return;
7024
6998
  if (!u || Object.keys(u).length === 0) {
7025
- H.debug(`No remote translation overrides for locale: ${r}`);
6999
+ Y.debug(`No remote translation overrides for locale: ${r}`);
7026
7000
  return;
7027
7001
  }
7028
- H.debug(`Remote translation overrides loaded for locale: ${r}`);
7029
- const g = Ht(r), p = oi(g, u);
7002
+ Y.debug(`Remote translation overrides loaded for locale: ${r}`);
7003
+ const g = $t(r), p = oi(g, u);
7030
7004
  s(p);
7031
7005
  try {
7032
7006
  localStorage.setItem(ci + r, JSON.stringify(u));
7033
7007
  } catch {
7034
7008
  }
7035
7009
  }).catch((u) => {
7036
- H.warn(`Failed to fetch remote translations: ${u}`);
7010
+ Y.warn(`Failed to fetch remote translations: ${u}`);
7037
7011
  }), () => {
7038
7012
  d = !0;
7039
7013
  };
7040
7014
  }, [r, t]);
7041
- const c = He(() => ({
7015
+ const c = Ye(() => ({
7042
7016
  t: Ci(o),
7043
7017
  locale: r,
7044
7018
  dictionary: o
@@ -7046,29 +7020,29 @@ const Yt = "1.0.70", Ni = Gt(null), ci = `metakyc-translations-${Yt}-`, ia = ({
7046
7020
  return /* @__PURE__ */ i(Ni.Provider, { value: c, children: a });
7047
7021
  };
7048
7022
  function je() {
7049
- const e = Qt(Ni);
7023
+ const e = Gt(Ni);
7050
7024
  if (!e) {
7051
- const t = Ht("en");
7025
+ const t = $t("en");
7052
7026
  return { t: Ci(t), locale: "en", dictionary: t };
7053
7027
  }
7054
7028
  return e;
7055
7029
  }
7056
- const Ti = Gt(null), ra = '.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 .mt-6{margin-top:1.5rem}.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 .grid-cols-2{grid-template-columns:repeat(2,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 .pt-6{padding-top: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 .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))}}', di = "metakyc-sdk-styles";
7030
+ const Ti = _t(null), Jr = '.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 .mt-6{margin-top:1.5rem}.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 .grid-cols-2{grid-template-columns:repeat(2,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 .pt-6{padding-top: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 .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))}}', di = "metakyc-sdk-styles";
7057
7031
  let Ft = !1;
7058
- function aa() {
7032
+ function ea() {
7059
7033
  if (Ft || typeof document > "u") return;
7060
7034
  if (document.getElementById(di)) {
7061
7035
  Ft = !0;
7062
7036
  return;
7063
7037
  }
7064
7038
  const e = document.createElement("style");
7065
- e.id = di, e.textContent = ra, document.head.appendChild(e), Ft = !0;
7039
+ e.id = di, e.textContent = Jr, document.head.appendChild(e), Ft = !0;
7066
7040
  }
7067
- const mi = "metakyc-theme-cache", Tn = ({ config: e, children: t }) => {
7068
- aa();
7069
- const [a, r] = w(null), n = we.useRef(!1), o = we.useRef(!1), s = He(() => {
7070
- H.setLevel(e.debug ?? e.logLevel ?? "none"), H.info(`SDK v${Yt} initializing — baseUrl=${e.baseUrl}`);
7071
- const u = new cr(e), g = new dr(u), p = new mr(u), z = new ur(u), S = new pr(u), x = new gr(u), F = new fr(u), C = new yr(u), K = new hr(u), U = new kr(u), P = new Nr(u), D = new Tr(u), V = new jr();
7041
+ const mi = "metakyc-theme-cache", wn = ({ config: e, children: t }) => {
7042
+ ea();
7043
+ const [a, r] = S(null), n = we.useRef(!1), o = we.useRef(!1), s = Ye(() => {
7044
+ Y.setLevel(e.debug ?? e.logLevel ?? "none"), Y.info(`SDK v${Yt} initializing — baseUrl=${e.baseUrl}`);
7045
+ const u = new nr(e), g = new or(u), p = new sr(u), z = new lr(u), w = new cr(u), x = new dr(u), F = new mr(u), C = new ur(u), W = new pr(u), U = new gr(u), P = new xr(u), D = new wr(u), V = new Er();
7072
7046
  if (typeof document < "u")
7073
7047
  if (e.theme)
7074
7048
  V.applyTheme(e.theme);
@@ -7084,21 +7058,21 @@ const mi = "metakyc-theme-cache", Tn = ({ config: e, children: t }) => {
7084
7058
  applicantService: g,
7085
7059
  questionnaireService: p,
7086
7060
  uploadDocumentService: z,
7087
- appropriatenessTestService: S,
7061
+ appropriatenessTestService: w,
7088
7062
  overviewService: x,
7089
7063
  riskScoringService: F,
7090
7064
  identityService: C,
7091
- baseInformationService: K,
7065
+ baseInformationService: W,
7092
7066
  investorCategorizationService: U,
7093
7067
  themeService: P,
7094
7068
  translationService: D,
7095
7069
  themeManager: V
7096
7070
  };
7097
- }, [e]), c = He(() => ({
7071
+ }, [e]), c = Ye(() => ({
7098
7072
  config: e,
7099
7073
  ...s,
7100
7074
  currentTheme: a,
7101
- createOrchestrator: () => new zr(
7075
+ createOrchestrator: () => new Tr(
7102
7076
  s.applicantService,
7103
7077
  s.questionnaireService,
7104
7078
  s.uploadDocumentService,
@@ -7111,25 +7085,25 @@ const mi = "metakyc-theme-cache", Tn = ({ config: e, children: t }) => {
7111
7085
  }), [e, s, a]);
7112
7086
  Ne(() => ((async () => {
7113
7087
  if (n.current || o.current) {
7114
- H.debug("Theme already loading or loaded, skipping");
7088
+ Y.debug("Theme already loading or loaded, skipping");
7115
7089
  return;
7116
7090
  }
7117
7091
  n.current = !0;
7118
7092
  try {
7119
7093
  if (e.theme) {
7120
- H.debug("Applying static theme from config"), s.themeManager.applyTheme(e.theme), r(s.themeManager.getCurrentTheme()), o.current = !0;
7094
+ Y.debug("Applying static theme from config"), s.themeManager.applyTheme(e.theme), r(s.themeManager.getCurrentTheme()), o.current = !0;
7121
7095
  return;
7122
7096
  }
7123
- H.debug("Fetching theme from backend...");
7097
+ Y.debug("Fetching theme from backend...");
7124
7098
  const g = await s.themeService.getThemeConfiguration(e.configVersion);
7125
7099
  s.themeManager.applyTheme(g), r(s.themeManager.getCurrentTheme()), o.current = !0;
7126
7100
  try {
7127
7101
  localStorage.setItem(mi, JSON.stringify(g));
7128
7102
  } catch {
7129
7103
  }
7130
- H.info("Theme loaded and applied");
7104
+ Y.info("Theme loaded and applied");
7131
7105
  } catch {
7132
- H.warn("Failed to load theme, using default"), r(s.themeManager.getCurrentTheme()), o.current = !0;
7106
+ Y.warn("Failed to load theme, using default"), r(s.themeManager.getCurrentTheme()), o.current = !0;
7133
7107
  } finally {
7134
7108
  n.current = !1;
7135
7109
  }
@@ -7141,7 +7115,7 @@ const mi = "metakyc-theme-cache", Tn = ({ config: e, children: t }) => {
7141
7115
  [s.translationService]
7142
7116
  );
7143
7117
  return /* @__PURE__ */ i(Ti.Provider, { value: c, children: /* @__PURE__ */ l(
7144
- ia,
7118
+ Zr,
7145
7119
  {
7146
7120
  locale: e.locale || "en",
7147
7121
  fetchTranslations: d,
@@ -7172,12 +7146,12 @@ const mi = "metakyc-theme-cache", Tn = ({ config: e, children: t }) => {
7172
7146
  ) });
7173
7147
  };
7174
7148
  function Ee() {
7175
- const e = Qt(Ti);
7149
+ const e = Gt(Ti);
7176
7150
  if (!e)
7177
7151
  throw new Error("useMetaKYC must be used within a MetaKYCProvider");
7178
7152
  return e;
7179
7153
  }
7180
- async function na(e) {
7154
+ async function ta(e) {
7181
7155
  return new Promise((t, a) => {
7182
7156
  const r = new FileReader();
7183
7157
  r.readAsDataURL(e), r.onload = () => {
@@ -7186,10 +7160,10 @@ async function na(e) {
7186
7160
  }, r.onerror = (n) => a(n);
7187
7161
  });
7188
7162
  }
7189
- function Rn(e, t) {
7163
+ function Sn(e, t) {
7190
7164
  return e.size <= t;
7191
7165
  }
7192
- function An(e, t) {
7166
+ function Cn(e, t) {
7193
7167
  return t.split(",").map((r) => r.trim()).some((r) => {
7194
7168
  if (r.endsWith("/*")) {
7195
7169
  const n = r.slice(0, -2);
@@ -7203,35 +7177,35 @@ function Ot(e) {
7203
7177
  const t = 1024, a = ["Bytes", "KB", "MB", "GB"], r = Math.floor(Math.log(e) / Math.log(t));
7204
7178
  return Math.round(e / Math.pow(t, r) * 100) / 100 + " " + a[r];
7205
7179
  }
7206
- function In(e) {
7180
+ function Nn(e) {
7207
7181
  return e;
7208
7182
  }
7209
- function Ye(...e) {
7183
+ function He(...e) {
7210
7184
  return e.filter(Boolean).join(" ");
7211
7185
  }
7212
7186
  const jt = {
7213
7187
  APPLICANT_ID: "metakyc_applicant_id",
7214
7188
  WORKFLOW_STATE: "metakyc_workflow_state"
7215
7189
  };
7216
- function zn(e) {
7190
+ function Tn(e) {
7217
7191
  }
7218
- function Ln() {
7192
+ function Rn() {
7219
7193
  return null;
7220
7194
  }
7221
- function oa() {
7195
+ function ia() {
7222
7196
  try {
7223
7197
  localStorage.removeItem(jt.APPLICANT_ID);
7224
7198
  } catch {
7225
7199
  }
7226
7200
  }
7227
- function sa(e) {
7201
+ function ra(e) {
7228
7202
  try {
7229
7203
  localStorage.setItem(jt.WORKFLOW_STATE, JSON.stringify(e));
7230
7204
  } catch (t) {
7231
7205
  console.warn("Failed to save workflow state to storage:", t);
7232
7206
  }
7233
7207
  }
7234
- function En() {
7208
+ function An() {
7235
7209
  try {
7236
7210
  const e = localStorage.getItem(jt.WORKFLOW_STATE);
7237
7211
  return e ? JSON.parse(e) : null;
@@ -7239,23 +7213,23 @@ function En() {
7239
7213
  return console.warn("Failed to retrieve workflow state from storage:", e), null;
7240
7214
  }
7241
7215
  }
7242
- function la() {
7216
+ function aa() {
7243
7217
  try {
7244
7218
  localStorage.removeItem(jt.WORKFLOW_STATE);
7245
7219
  } catch (e) {
7246
7220
  console.warn("Failed to clear workflow state from storage:", e);
7247
7221
  }
7248
7222
  }
7249
- function Dn() {
7250
- oa(), la();
7223
+ function In() {
7224
+ ia(), aa();
7251
7225
  }
7252
- function ca(e) {
7253
- const { createOrchestrator: t, config: a } = Ee(), [r, n] = w(null), [o, s] = w(!1), [c, d] = w(null), u = be(null), g = e || a.applicantId || void 0;
7226
+ function na(e) {
7227
+ const { createOrchestrator: t, config: a } = Ee(), [r, n] = S(null), [o, s] = S(!1), [c, d] = S(null), u = be(null), g = e || a.applicantId || void 0;
7254
7228
  Ne(() => {
7255
7229
  u.current || (u.current = t());
7256
7230
  }, [t]), Ne(() => {
7257
7231
  var D;
7258
- r && g && sa({
7232
+ r && g && ra({
7259
7233
  applicantId: g,
7260
7234
  currentStepOrder: (D = r.currentStep) == null ? void 0 : D.order,
7261
7235
  status: r.status,
@@ -7264,10 +7238,10 @@ function ca(e) {
7264
7238
  nextWorkflowKey: r.nextWorkflowKey
7265
7239
  });
7266
7240
  }, [r, g]);
7267
- const p = be(!1), z = be(void 0), S = ee(async () => {
7241
+ const p = be(!1), z = be(void 0), w = ee(async () => {
7268
7242
  if (!(!g || !u.current)) {
7269
7243
  if (p.current) {
7270
- H.debug("Workflow load already in progress, skipping");
7244
+ Y.debug("Workflow load already in progress, skipping");
7271
7245
  return;
7272
7246
  }
7273
7247
  p.current = !0, s(!0), d(null);
@@ -7282,12 +7256,12 @@ function ca(e) {
7282
7256
  }
7283
7257
  }, [g]);
7284
7258
  Ne(() => {
7285
- g && z.current !== g && S();
7286
- }, [g, S]);
7259
+ g && z.current !== g && w();
7260
+ }, [g, w]);
7287
7261
  const x = ee(async () => {
7288
7262
  if (u.current) {
7289
7263
  if (p.current) {
7290
- H.debug("Workflow refresh already in progress, skipping");
7264
+ Y.debug("Workflow refresh already in progress, skipping");
7291
7265
  return;
7292
7266
  }
7293
7267
  p.current = !0, s(!0), d(null);
@@ -7324,7 +7298,7 @@ function ca(e) {
7324
7298
  s(!1);
7325
7299
  }
7326
7300
  }
7327
- }, []), K = ee(async (D) => {
7301
+ }, []), W = ee(async (D) => {
7328
7302
  if (u.current) {
7329
7303
  s(!0), d(null);
7330
7304
  try {
@@ -7337,7 +7311,7 @@ function ca(e) {
7337
7311
  s(!1);
7338
7312
  }
7339
7313
  }
7340
- }, []), U = ei.useMemo(() => r != null && r.stepInfoList ? [...r.stepInfoList].sort((D, V) => D.order - V.order) : [], [r == null ? void 0 : r.stepInfoList]), P = ei.useMemo(() => r ? r.nextWorkflowKey && r.nextWorkflowKey !== r.workFlowKey : !1, [r]);
7314
+ }, []), U = Jt.useMemo(() => r != null && r.stepInfoList ? [...r.stepInfoList].sort((D, V) => D.order - V.order) : [], [r == null ? void 0 : r.stepInfoList]), P = Jt.useMemo(() => r ? r.nextWorkflowKey && r.nextWorkflowKey !== r.workFlowKey : !1, [r]);
7341
7315
  return {
7342
7316
  progress: r,
7343
7317
  applicantId: g,
@@ -7355,17 +7329,17 @@ function ca(e) {
7355
7329
  refreshProgress: x,
7356
7330
  moveToNext: F,
7357
7331
  moveBack: C,
7358
- submitCurrentStep: K,
7332
+ submitCurrentStep: W,
7359
7333
  orchestrator: u.current
7360
7334
  };
7361
7335
  }
7362
- function da(e) {
7336
+ function oa(e) {
7363
7337
  var V;
7364
- const { applicantService: t, config: a } = Ee(), [r, n] = w(null), [o, s] = w(!0), [c, d] = w(null), [u, g] = w(), [p, z] = w(), S = be(!1), x = ee(async () => {
7338
+ const { applicantService: t, config: a } = Ee(), [r, n] = S(null), [o, s] = S(!0), [c, d] = S(null), [u, g] = S(), [p, z] = S(), w = be(!1), x = ee(async () => {
7365
7339
  try {
7366
7340
  s(!0), d(null);
7367
7341
  const _ = await t.getSdkState();
7368
- n(_), S.current = !0, H.info(`SDK state resolved → phase=${_.phase}, applicantId=${_.applicantId ?? "none"}`);
7342
+ n(_), w.current = !0, Y.info(`SDK state resolved → phase=${_.phase}, applicantId=${_.applicantId ?? "none"}`);
7369
7343
  } catch (_) {
7370
7344
  d(_ instanceof Error ? _ : new Error(String(_)));
7371
7345
  } finally {
@@ -7373,15 +7347,15 @@ function da(e) {
7373
7347
  }
7374
7348
  }, [t]);
7375
7349
  Ne(() => {
7376
- S.current || x();
7350
+ w.current || x();
7377
7351
  }, [x]);
7378
7352
  const F = ee((_) => {
7379
- H.info(`Transitioning to workflow → applicantId=${_}`), g(_), z("workflow");
7353
+ Y.info(`Transitioning to workflow → applicantId=${_}`), g(_), z("workflow");
7380
7354
  }, []), C = ee((_) => {
7381
- H.info(`Switching applicant → newApplicantId=${_}`), g(_), z("workflow");
7382
- }, []), K = p || (r == null ? void 0 : r.phase) || "loading", U = u || (r == null ? void 0 : r.applicantId), P = e ?? (r == null ? void 0 : r.isCompany) ?? !1, D = (r == null ? void 0 : r.workflowKey) || ((V = a.applicantForm) == null ? void 0 : V.workflowKey);
7355
+ Y.info(`Switching applicant → newApplicantId=${_}`), g(_), z("workflow");
7356
+ }, []), W = p || (r == null ? void 0 : r.phase) || "loading", U = u || (r == null ? void 0 : r.applicantId), P = e ?? (r == null ? void 0 : r.isCompany) ?? !1, D = (r == null ? void 0 : r.workflowKey) || ((V = a.applicantForm) == null ? void 0 : V.workflowKey);
7383
7357
  return {
7384
- phase: c ? "error" : o ? "loading" : K,
7358
+ phase: c ? "error" : o ? "loading" : W,
7385
7359
  applicantId: U,
7386
7360
  isCompany: P,
7387
7361
  workflowKey: D,
@@ -7392,21 +7366,21 @@ function da(e) {
7392
7366
  refresh: x
7393
7367
  };
7394
7368
  }
7395
- function ma(e) {
7396
- const { questionnaireService: t, applicantService: a } = Ee(), [r, n] = w(null), [o, s] = w({}), [c, d] = w(!1), [u, g] = w(!1), [p, z] = w(null), S = be(!1), x = be(null), F = ee(async () => {
7397
- var K, U;
7369
+ function sa(e) {
7370
+ const { questionnaireService: t, applicantService: a } = Ee(), [r, n] = S(null), [o, s] = S({}), [c, d] = S(!1), [u, g] = S(!1), [p, z] = S(null), w = be(!1), x = be(null), F = ee(async () => {
7371
+ var W, U;
7398
7372
  if (e) {
7399
- if (S.current) {
7400
- H.debug("Questionnaire load already in progress, skipping");
7373
+ if (w.current) {
7374
+ Y.debug("Questionnaire load already in progress, skipping");
7401
7375
  return;
7402
7376
  }
7403
- S.current = !0, d(!0), z(null);
7377
+ w.current = !0, d(!0), z(null);
7404
7378
  try {
7405
7379
  const [P, D] = await Promise.all([
7406
7380
  t.getQuestionnaire(e),
7407
7381
  a.getApplicantData(e).catch(() => null)
7408
7382
  ]);
7409
- if (n(P), (K = D == null ? void 0 : D.questionnaireResults) != null && K.length && P) {
7383
+ if (n(P), (W = D == null ? void 0 : D.questionnaireResults) != null && W.length && P) {
7410
7384
  const V = /* @__PURE__ */ new Map();
7411
7385
  for (const h of D.questionnaireResults)
7412
7386
  h.question && ((U = h.answers) != null && U.length) && V.set(h.question.trim().toLowerCase(), h.answers);
@@ -7421,7 +7395,7 @@ function ma(e) {
7421
7395
  } catch (P) {
7422
7396
  z(P);
7423
7397
  } finally {
7424
- d(!1), S.current = !1;
7398
+ d(!1), w.current = !1;
7425
7399
  }
7426
7400
  }
7427
7401
  }, [e, t, a]);
@@ -7429,10 +7403,10 @@ function ma(e) {
7429
7403
  e && x.current !== e && F();
7430
7404
  }, [e]);
7431
7405
  const C = ee(
7432
- async (K) => {
7406
+ async (W) => {
7433
7407
  g(!0), z(null);
7434
7408
  try {
7435
- return await t.fillQuestionnaire(K);
7409
+ return await t.fillQuestionnaire(W);
7436
7410
  } catch (U) {
7437
7411
  throw z(U), U;
7438
7412
  } finally {
@@ -7451,17 +7425,17 @@ function ma(e) {
7451
7425
  submit: C
7452
7426
  };
7453
7427
  }
7454
- function ua(e) {
7455
- const { uploadDocumentService: t } = Ee(), [a, r] = w(null), [n, o] = w(!1), [s, c] = w(!1), [d, u] = w(0), [g, p] = w(null), z = be(!1), S = be(null), x = ee(async () => {
7428
+ function la(e) {
7429
+ const { uploadDocumentService: t } = Ee(), [a, r] = S(null), [n, o] = S(!1), [s, c] = S(!1), [d, u] = S(0), [g, p] = S(null), z = be(!1), w = be(null), x = ee(async () => {
7456
7430
  if (e) {
7457
7431
  if (z.current) {
7458
- H.debug("UploadDocument load already in progress, skipping");
7432
+ Y.debug("UploadDocument load already in progress, skipping");
7459
7433
  return;
7460
7434
  }
7461
7435
  z.current = !0, o(!0), p(null);
7462
7436
  try {
7463
7437
  const C = await t.getUploadDocument(e);
7464
- r(C), S.current = e;
7438
+ r(C), w.current = e;
7465
7439
  } catch (C) {
7466
7440
  p(C);
7467
7441
  } finally {
@@ -7470,15 +7444,15 @@ function ua(e) {
7470
7444
  }
7471
7445
  }, [e, t]);
7472
7446
  Ne(() => {
7473
- e && S.current !== e && x();
7447
+ e && w.current !== e && x();
7474
7448
  }, [e]);
7475
7449
  const F = ee(
7476
7450
  async (C) => {
7477
7451
  c(!0), u(0), p(null);
7478
7452
  try {
7479
7453
  await t.fillUploadDocument(C), u(100);
7480
- } catch (K) {
7481
- throw p(K), K;
7454
+ } catch (W) {
7455
+ throw p(W), W;
7482
7456
  } finally {
7483
7457
  c(!1);
7484
7458
  }
@@ -7495,17 +7469,17 @@ function ua(e) {
7495
7469
  submit: F
7496
7470
  };
7497
7471
  }
7498
- function Pn(e) {
7499
- const { appropriatenessTestService: t } = Ee(), [a, r] = w(null), [n, o] = w(!1), [s, c] = w(!1), [d, u] = w(null), [g, p] = w(null), z = be(!1), S = be(null), x = ee(async () => {
7472
+ function zn(e) {
7473
+ const { appropriatenessTestService: t } = Ee(), [a, r] = S(null), [n, o] = S(!1), [s, c] = S(!1), [d, u] = S(null), [g, p] = S(null), z = be(!1), w = be(null), x = ee(async () => {
7500
7474
  if (e) {
7501
7475
  if (z.current) {
7502
- H.debug("AppropriatenessTest load already in progress, skipping");
7476
+ Y.debug("AppropriatenessTest load already in progress, skipping");
7503
7477
  return;
7504
7478
  }
7505
7479
  z.current = !0, o(!0), u(null);
7506
7480
  try {
7507
7481
  const C = await t.getAppropriatenessTest(e);
7508
- r(C), S.current = e;
7482
+ r(C), w.current = e;
7509
7483
  } catch (C) {
7510
7484
  u(C);
7511
7485
  } finally {
@@ -7514,16 +7488,16 @@ function Pn(e) {
7514
7488
  }
7515
7489
  }, [e, t]);
7516
7490
  Ne(() => {
7517
- e && S.current !== e && x();
7491
+ e && w.current !== e && x();
7518
7492
  }, [e]);
7519
7493
  const F = ee(
7520
7494
  async (C) => {
7521
7495
  c(!0), u(null);
7522
7496
  try {
7523
- const K = await t.fillAppropriatenessTest(C);
7524
- return p(K), K;
7525
- } catch (K) {
7526
- throw u(K), K;
7497
+ const W = await t.fillAppropriatenessTest(C);
7498
+ return p(W), W;
7499
+ } catch (W) {
7500
+ throw u(W), W;
7527
7501
  } finally {
7528
7502
  c(!1);
7529
7503
  }
@@ -7540,11 +7514,11 @@ function Pn(e) {
7540
7514
  submit: F
7541
7515
  };
7542
7516
  }
7543
- function pa(e) {
7544
- const { overviewService: t } = Ee(), [a, r] = w(null), [n, o] = w(!1), [s, c] = w(!1), [d, u] = w(null), g = be(!1), p = be(null), z = ee(async () => {
7517
+ function ca(e) {
7518
+ const { overviewService: t } = Ee(), [a, r] = S(null), [n, o] = S(!1), [s, c] = S(!1), [d, u] = S(null), g = be(!1), p = be(null), z = ee(async () => {
7545
7519
  if (e) {
7546
7520
  if (g.current) {
7547
- H.debug("Overview load already in progress, skipping");
7521
+ Y.debug("Overview load already in progress, skipping");
7548
7522
  return;
7549
7523
  }
7550
7524
  g.current = !0, o(!0), u(null);
@@ -7561,7 +7535,7 @@ function pa(e) {
7561
7535
  Ne(() => {
7562
7536
  e && p.current !== e && z();
7563
7537
  }, [e]);
7564
- const S = ee(async () => {
7538
+ const w = ee(async () => {
7565
7539
  if (e) {
7566
7540
  c(!0), u(null);
7567
7541
  try {
@@ -7579,17 +7553,17 @@ function pa(e) {
7579
7553
  isSubmitting: s,
7580
7554
  error: d,
7581
7555
  load: z,
7582
- passOverview: S
7556
+ passOverview: w
7583
7557
  };
7584
7558
  }
7585
- function ga(e) {
7586
- const { identityService: t } = Ee(), [a, r] = w(
7559
+ function da(e) {
7560
+ const { identityService: t } = Ee(), [a, r] = S(
7587
7561
  null
7588
- ), [n, o] = w(!1), [s, c] = w(null), d = be(!1), u = ee(
7589
- async (z, S) => {
7562
+ ), [n, o] = S(!1), [s, c] = S(null), d = be(!1), u = ee(
7563
+ async (z, w) => {
7590
7564
  if (e) {
7591
7565
  if (d.current) {
7592
- H.debug("Identity request already in progress, skipping");
7566
+ Y.debug("Identity request already in progress, skipping");
7593
7567
  return;
7594
7568
  }
7595
7569
  d.current = !0, o(!0), c(null);
@@ -7598,11 +7572,11 @@ function ga(e) {
7598
7572
  applicantId: e,
7599
7573
  restart: !1,
7600
7574
  redirectUrl: z || "",
7601
- ttl: S || 604800
7575
+ ttl: w || 604800
7602
7576
  };
7603
- H.debug("Identity request input:", x);
7577
+ Y.debug("Identity request input:", x);
7604
7578
  const F = await t.identityRequest(x);
7605
- return H.debug("Identity request result:", F), r(F), F;
7579
+ return Y.debug("Identity request result:", F), r(F), F;
7606
7580
  } catch (x) {
7607
7581
  throw c(x), x;
7608
7582
  } finally {
@@ -7612,7 +7586,7 @@ function ga(e) {
7612
7586
  },
7613
7587
  [e, t]
7614
7588
  ), g = ee(
7615
- async (z, S) => {
7589
+ async (z, w) => {
7616
7590
  if (e) {
7617
7591
  o(!0), c(null);
7618
7592
  try {
@@ -7620,7 +7594,7 @@ function ga(e) {
7620
7594
  applicantId: e,
7621
7595
  restart: !1,
7622
7596
  redirectUrl: z,
7623
- ttl: S
7597
+ ttl: w
7624
7598
  }, F = await t.identityCompanyRequest(x);
7625
7599
  return r(F), F;
7626
7600
  } catch (x) {
@@ -7634,7 +7608,7 @@ function ga(e) {
7634
7608
  ), p = ee(async () => {
7635
7609
  if (e) {
7636
7610
  if (d.current) {
7637
- H.debug("Identity restart already in progress, skipping");
7611
+ Y.debug("Identity restart already in progress, skipping");
7638
7612
  return;
7639
7613
  }
7640
7614
  d.current = !0, o(!0), c(null);
@@ -7645,9 +7619,9 @@ function ga(e) {
7645
7619
  redirectUrl: "",
7646
7620
  ttl: 604800
7647
7621
  };
7648
- H.debug("Restarting identity with input:", z);
7649
- const S = await t.identityRequest(z);
7650
- return H.debug("Restart identity result:", S), r(S), S;
7622
+ Y.debug("Restarting identity with input:", z);
7623
+ const w = await t.identityRequest(z);
7624
+ return Y.debug("Restart identity result:", w), r(w), w;
7651
7625
  } catch (z) {
7652
7626
  throw c(z), z;
7653
7627
  } finally {
@@ -7666,12 +7640,12 @@ function ga(e) {
7666
7640
  restartIdentity: p
7667
7641
  };
7668
7642
  }
7669
- function fa(e) {
7670
- const { riskScoringService: t, applicantService: a } = Ee(), [r, n] = w(null), [o, s] = w({}), [c, d] = w(!1), [u, g] = w(!1), [p, z] = w(null), [S, x] = w(null), F = be(!1), C = be(null), K = ee(async () => {
7643
+ function ma(e) {
7644
+ const { riskScoringService: t, applicantService: a } = Ee(), [r, n] = S(null), [o, s] = S({}), [c, d] = S(!1), [u, g] = S(!1), [p, z] = S(null), [w, x] = S(null), F = be(!1), C = be(null), W = ee(async () => {
7671
7645
  var P;
7672
7646
  if (e) {
7673
7647
  if (F.current) {
7674
- H.debug("RiskScoring load already in progress, skipping");
7648
+ Y.debug("RiskScoring load already in progress, skipping");
7675
7649
  return;
7676
7650
  }
7677
7651
  F.current = !0, d(!0), z(null);
@@ -7700,7 +7674,7 @@ function fa(e) {
7700
7674
  }
7701
7675
  }, [e, t, a]);
7702
7676
  Ne(() => {
7703
- e && C.current !== e && K();
7677
+ e && C.current !== e && W();
7704
7678
  }, [e]);
7705
7679
  const U = ee(
7706
7680
  async (P) => {
@@ -7719,33 +7693,33 @@ function fa(e) {
7719
7693
  return {
7720
7694
  criteria: r,
7721
7695
  initialAnswers: o,
7722
- result: S,
7696
+ result: w,
7723
7697
  isLoading: c,
7724
7698
  isSubmitting: u,
7725
7699
  error: p,
7726
- load: K,
7700
+ load: W,
7727
7701
  submit: U
7728
7702
  };
7729
7703
  }
7730
7704
  function Ri() {
7731
- const { applicantService: e, config: t } = Ee(), [a, r] = w(!1), [n, o] = w(null), s = be(!1), c = be(!1), d = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(S) {
7705
+ const { applicantService: e, config: t } = Ee(), [a, r] = S(!1), [n, o] = S(null), s = be(!1), c = be(!1), d = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(w) {
7732
7706
  const x = Math.random() * 16 | 0;
7733
- return (S === "x" ? x : x & 3 | 8).toString(16);
7707
+ return (w === "x" ? x : x & 3 | 8).toString(16);
7734
7708
  }), u = ee(
7735
- async (S) => {
7709
+ async (w) => {
7736
7710
  var x;
7737
7711
  if (s.current)
7738
- throw H.debug("Applicant creation already in progress, skipping"), new Error("Creation already in progress");
7712
+ throw Y.debug("Applicant creation already in progress, skipping"), new Error("Creation already in progress");
7739
7713
  s.current = !0, r(!0), o(null);
7740
7714
  try {
7741
- if (S.applicantAdditionalDatas || (S.applicantAdditionalDatas = []), (x = t.identityProviders) != null && x.sardinai) {
7715
+ if (w.applicantAdditionalDatas || (w.applicantAdditionalDatas = []), (x = t.identityProviders) != null && x.sardinai) {
7742
7716
  const C = d();
7743
- H.debug(`SardinAI session key generated: ${C}`), S.applicantAdditionalDatas.push({
7717
+ Y.debug(`SardinAI session key generated: ${C}`), w.applicantAdditionalDatas.push({
7744
7718
  paramName: "sessionKey",
7745
7719
  value: C
7746
7720
  });
7747
7721
  }
7748
- return await e.createApplicant(S);
7722
+ return await e.createApplicant(w);
7749
7723
  } catch (F) {
7750
7724
  throw o(F), F;
7751
7725
  } finally {
@@ -7754,10 +7728,10 @@ function Ri() {
7754
7728
  },
7755
7729
  [e, t]
7756
7730
  ), g = ee(
7757
- async (S) => {
7731
+ async (w) => {
7758
7732
  r(!0), o(null);
7759
7733
  try {
7760
- return await e.createCompanyApplicant(S);
7734
+ return await e.createCompanyApplicant(w);
7761
7735
  } catch (x) {
7762
7736
  throw o(x), x;
7763
7737
  } finally {
@@ -7766,10 +7740,10 @@ function Ri() {
7766
7740
  },
7767
7741
  [e]
7768
7742
  ), p = ee(
7769
- async (S) => {
7743
+ async (w) => {
7770
7744
  c.current = !0, r(!0), o(null);
7771
7745
  try {
7772
- return await e.getApplicantData(S);
7746
+ return await e.getApplicantData(w);
7773
7747
  } catch (x) {
7774
7748
  throw o(x), x;
7775
7749
  } finally {
@@ -7778,10 +7752,10 @@ function Ri() {
7778
7752
  },
7779
7753
  [e]
7780
7754
  ), z = ee(
7781
- async (S) => {
7755
+ async (w) => {
7782
7756
  r(!0), o(null);
7783
7757
  try {
7784
- await e.stopProgress(S);
7758
+ await e.stopProgress(w);
7785
7759
  } catch (x) {
7786
7760
  throw o(x), x;
7787
7761
  } finally {
@@ -7799,7 +7773,7 @@ function Ri() {
7799
7773
  stopProgress: z
7800
7774
  };
7801
7775
  }
7802
- const ya = {
7776
+ const ua = {
7803
7777
  primary: {
7804
7778
  backgroundColor: "var(--metakyc-primary, #2563eb)",
7805
7779
  color: "#ffffff",
@@ -7847,7 +7821,7 @@ const ya = {
7847
7821
  return /* @__PURE__ */ l(
7848
7822
  "button",
7849
7823
  {
7850
- className: Ye(d, u[a], o),
7824
+ className: He(d, u[a], o),
7851
7825
  style: {
7852
7826
  display: "inline-flex",
7853
7827
  alignItems: "center",
@@ -7860,7 +7834,7 @@ const ya = {
7860
7834
  opacity: n || r ? 0.5 : 1,
7861
7835
  lineHeight: "1.25rem",
7862
7836
  ...g[a],
7863
- ...ya[t],
7837
+ ...ua[t],
7864
7838
  ...s
7865
7839
  },
7866
7840
  disabled: n || r,
@@ -7919,7 +7893,7 @@ const ya = {
7919
7893
  "input",
7920
7894
  {
7921
7895
  ref: d,
7922
- className: Ye(
7896
+ className: He(
7923
7897
  "block w-full rounded-lg border px-3 py-2 text-sm transition-colors",
7924
7898
  "focus:outline-none focus:ring-2 focus:ring-offset-0",
7925
7899
  "disabled:opacity-60 disabled:cursor-not-allowed",
@@ -7948,7 +7922,7 @@ Le.displayName = "Input";
7948
7922
  const me = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
7949
7923
  "div",
7950
7924
  {
7951
- className: Ye("metakyc-card rounded-xl shadow-sm border", t),
7925
+ className: He("metakyc-card rounded-xl shadow-sm border", t),
7952
7926
  style: {
7953
7927
  backgroundColor: "var(--metakyc-surface, #ffffff)",
7954
7928
  borderColor: "var(--metakyc-border, #e5e7eb)",
@@ -7964,7 +7938,7 @@ const me = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
7964
7938
  ), Fe = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
7965
7939
  "div",
7966
7940
  {
7967
- className: Ye("metakyc-card-header px-6 py-4 border-b", t),
7941
+ className: He("metakyc-card-header px-6 py-4 border-b", t),
7968
7942
  style: {
7969
7943
  padding: "1rem 1.5rem",
7970
7944
  borderBottomWidth: "1px",
@@ -7978,7 +7952,7 @@ const me = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
7978
7952
  ), ue = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
7979
7953
  "div",
7980
7954
  {
7981
- className: Ye("metakyc-card-content px-6 py-4", t),
7955
+ className: He("metakyc-card-content px-6 py-4", t),
7982
7956
  style: { padding: "1rem 1.5rem", ...a },
7983
7957
  ...r,
7984
7958
  children: e
@@ -7986,7 +7960,7 @@ const me = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
7986
7960
  ), Oe = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
7987
7961
  "div",
7988
7962
  {
7989
- className: Ye("metakyc-card-footer px-6 py-4 border-t", t),
7963
+ className: He("metakyc-card-footer px-6 py-4 border-t", t),
7990
7964
  style: {
7991
7965
  padding: "1rem 1.5rem",
7992
7966
  borderTopWidth: "1px",
@@ -7997,7 +7971,7 @@ const me = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
7997
7971
  ...r,
7998
7972
  children: e
7999
7973
  }
8000
- ), ha = {
7974
+ ), pa = {
8001
7975
  display: "inline-flex",
8002
7976
  alignItems: "center",
8003
7977
  justifyContent: "center",
@@ -8033,7 +8007,7 @@ const me = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
8033
8007
  (c.key === " " || c.key === "Enter") && (c.preventDefault(), a || t(!e));
8034
8008
  },
8035
8009
  style: {
8036
- ...ha,
8010
+ ...pa,
8037
8011
  backgroundColor: e ? s : o,
8038
8012
  borderColor: e ? s : n,
8039
8013
  opacity: a ? 0.5 : 1,
@@ -8062,7 +8036,7 @@ const me = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
8062
8036
  )
8063
8037
  }
8064
8038
  );
8065
- }, ka = {
8039
+ }, ga = {
8066
8040
  default: {
8067
8041
  backgroundColor: "var(--metakyc-surface, #f3f4f6)",
8068
8042
  color: "var(--metakyc-text-secondary, #6b7280)"
@@ -8089,11 +8063,11 @@ const me = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
8089
8063
  }, Ai = ({ children: e, variant: t = "default", className: a, style: r, ...n }) => /* @__PURE__ */ i(
8090
8064
  "span",
8091
8065
  {
8092
- className: Ye(
8066
+ className: He(
8093
8067
  "inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",
8094
8068
  a
8095
8069
  ),
8096
- style: { ...ka[t], ...r },
8070
+ style: { ...ga[t], ...r },
8097
8071
  ...n,
8098
8072
  children: e
8099
8073
  }
@@ -8103,10 +8077,10 @@ const me = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
8103
8077
  md: "h-8 w-8",
8104
8078
  lg: "h-12 w-12"
8105
8079
  };
8106
- return /* @__PURE__ */ i("div", { className: Ye("flex items-center justify-center", t), ...a, children: /* @__PURE__ */ l(
8080
+ return /* @__PURE__ */ i("div", { className: He("flex items-center justify-center", t), ...a, children: /* @__PURE__ */ l(
8107
8081
  "svg",
8108
8082
  {
8109
- className: Ye("animate-spin text-primary-500", r[e]),
8083
+ className: He("animate-spin text-primary-500", r[e]),
8110
8084
  xmlns: "http://www.w3.org/2000/svg",
8111
8085
  fill: "none",
8112
8086
  viewBox: "0 0 24 24",
@@ -8133,7 +8107,7 @@ const me = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
8133
8107
  ]
8134
8108
  }
8135
8109
  ) });
8136
- }, Xt = Rt(
8110
+ }, Qt = Rt(
8137
8111
  ({ label: e, error: t, helperText: a, options: r, placeholder: n, className: o, style: s, ...c }, d) => /* @__PURE__ */ l("div", { className: "w-full", children: [
8138
8112
  e && /* @__PURE__ */ l(
8139
8113
  "label",
@@ -8150,7 +8124,7 @@ const me = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
8150
8124
  "select",
8151
8125
  {
8152
8126
  ref: d,
8153
- className: Ye(
8127
+ className: He(
8154
8128
  "block w-full rounded-lg border px-3 py-2 text-sm transition-colors",
8155
8129
  "focus:outline-none focus:ring-2 focus:ring-offset-0",
8156
8130
  "disabled:opacity-60 disabled:cursor-not-allowed",
@@ -8199,8 +8173,8 @@ const me = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
8199
8173
  !t && a && /* @__PURE__ */ i("p", { className: "mt-1 text-sm", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: a })
8200
8174
  ] })
8201
8175
  );
8202
- Xt.displayName = "Select";
8203
- const ui = 280, va = ({
8176
+ Qt.displayName = "Select";
8177
+ const ui = 280, fa = ({
8204
8178
  label: e,
8205
8179
  value: t,
8206
8180
  onChange: a,
@@ -8210,7 +8184,7 @@ const ui = 280, va = ({
8210
8184
  readOnly: s = !1,
8211
8185
  required: c = !1
8212
8186
  }) => {
8213
- const { t: d } = je(), u = n ?? d("common.select"), g = o || s, [p, z] = w(!1), [S, x] = w(""), [F, C] = w(null), [K, U] = w({
8187
+ const { t: d } = je(), u = n ?? d("common.select"), g = o || s, [p, z] = S(!1), [w, x] = S(""), [F, C] = S(null), [W, U] = S({
8214
8188
  bg: "#ffffff",
8215
8189
  borderColor: "#d1d5db",
8216
8190
  textPrimary: "#111827",
@@ -8260,7 +8234,7 @@ const ui = 280, va = ({
8260
8234
  };
8261
8235
  }, [p, _]);
8262
8236
  const M = r.filter(
8263
- (I) => I.label.toLowerCase().includes(S.toLowerCase())
8237
+ (I) => I.label.toLowerCase().includes(w.toLowerCase())
8264
8238
  ), Z = (I) => {
8265
8239
  g || a(t.includes(I) ? t.filter((T) => T !== I) : [...t, I]);
8266
8240
  }, ae = (I, T) => {
@@ -8268,7 +8242,7 @@ const ui = 280, va = ({
8268
8242
  }, $ = (I) => {
8269
8243
  var T;
8270
8244
  return ((T = r.find((O) => O.value === I)) == null ? void 0 : T.label) || I;
8271
- }, { bg: re, borderColor: he, textPrimary: fe, textSecondary: De, primaryColor: se, primaryLight: G, hoverBg: Q } = K, te = p && F && /* @__PURE__ */ l(
8245
+ }, { bg: re, borderColor: he, textPrimary: fe, textSecondary: De, primaryColor: se, primaryLight: G, hoverBg: Q } = W, te = p && F && /* @__PURE__ */ l(
8272
8246
  "div",
8273
8247
  {
8274
8248
  ref: V,
@@ -8291,7 +8265,7 @@ const ui = 280, va = ({
8291
8265
  "input",
8292
8266
  {
8293
8267
  type: "text",
8294
- value: S,
8268
+ value: w,
8295
8269
  onChange: (I) => x(I.target.value),
8296
8270
  placeholder: d("common.search"),
8297
8271
  autoFocus: !0,
@@ -8393,7 +8367,7 @@ const ui = 280, va = ({
8393
8367
  {
8394
8368
  ref: D,
8395
8369
  onClick: () => p ? L() : h(),
8396
- className: Ye(
8370
+ className: He(
8397
8371
  "metakyc-multiselect-trigger",
8398
8372
  "w-full px-3 py-2 rounded-lg border text-sm transition-colors relative",
8399
8373
  g ? "opacity-50 cursor-not-allowed" : "cursor-pointer"
@@ -8482,7 +8456,7 @@ const ui = 280, va = ({
8482
8456
  className: g
8483
8457
  }) => {
8484
8458
  var xe;
8485
- const { t: p } = je(), z = n ?? p("common.select"), S = c || d, [x, F] = w(!1), [C, K] = w(""), [U, P] = w(null), [D, V] = w({
8459
+ const { t: p } = je(), z = n ?? p("common.select"), w = c || d, [x, F] = S(!1), [C, W] = S(""), [U, P] = S(null), [D, V] = S({
8486
8460
  bg: "#ffffff",
8487
8461
  border: "#d1d5db",
8488
8462
  text: "#111827",
@@ -8511,12 +8485,12 @@ const ui = 280, va = ({
8511
8485
  openUp: Te
8512
8486
  };
8513
8487
  }, []), ae = ee(() => {
8514
- if (S) return;
8488
+ if (w) return;
8515
8489
  _();
8516
8490
  const q = Z();
8517
8491
  q && P(q), F(!0);
8518
- }, [S, Z, _]), $ = ee(() => {
8519
- F(!1), K("");
8492
+ }, [w, Z, _]), $ = ee(() => {
8493
+ F(!1), W("");
8520
8494
  }, []), re = () => x ? $() : ae();
8521
8495
  Ne(() => {
8522
8496
  if (!x) return;
@@ -8544,7 +8518,7 @@ const ui = 280, va = ({
8544
8518
  const he = r.filter(
8545
8519
  (q) => q.label.toLowerCase().includes(C.toLowerCase()) || q.value.toLowerCase().includes(C.toLowerCase())
8546
8520
  ), fe = (xe = r.find((q) => q.value === o)) == null ? void 0 : xe.label, De = (q, ie) => {
8547
- S || ie || (s(q), $());
8521
+ w || ie || (s(q), $());
8548
8522
  }, { bg: se, border: G, text: Q, textSecondary: te, primary: I, primaryLight: T, hoverBg: O } = D, Se = x && U && /* @__PURE__ */ l(
8549
8523
  "div",
8550
8524
  {
@@ -8570,7 +8544,7 @@ const ui = 280, va = ({
8570
8544
  ref: M,
8571
8545
  type: "text",
8572
8546
  value: C,
8573
- onChange: (q) => K(q.target.value),
8547
+ onChange: (q) => W(q.target.value),
8574
8548
  placeholder: p("common.search"),
8575
8549
  onClick: (q) => q.stopPropagation(),
8576
8550
  className: "metakyc-searchable-select-search w-full",
@@ -8640,7 +8614,7 @@ const ui = 280, va = ({
8640
8614
  return /* @__PURE__ */ l(
8641
8615
  "div",
8642
8616
  {
8643
- className: Ye("w-full metakyc-searchable-select", g),
8617
+ className: He("w-full metakyc-searchable-select", g),
8644
8618
  ref: ce,
8645
8619
  children: [
8646
8620
  e && /* @__PURE__ */ l(
@@ -8659,17 +8633,17 @@ const ui = 280, va = ({
8659
8633
  {
8660
8634
  ref: h,
8661
8635
  role: "button",
8662
- tabIndex: S ? -1 : 0,
8636
+ tabIndex: w ? -1 : 0,
8663
8637
  onClick: re,
8664
8638
  onKeyDown: (q) => {
8665
8639
  (q.key === "Enter" || q.key === " ") && (q.preventDefault(), re()), q.key === "Escape" && $();
8666
8640
  },
8667
- className: Ye(
8641
+ className: He(
8668
8642
  "metakyc-searchable-select-trigger",
8669
8643
  "w-full px-3 py-2 rounded-lg border text-sm transition-colors text-left",
8670
8644
  "flex items-center justify-between gap-2",
8671
8645
  "focus:outline-none",
8672
- S ? "opacity-60 cursor-not-allowed" : "cursor-pointer"
8646
+ w ? "opacity-60 cursor-not-allowed" : "cursor-pointer"
8673
8647
  ),
8674
8648
  style: {
8675
8649
  backgroundColor: "var(--metakyc-input-bg, #ffffff)",
@@ -8700,11 +8674,11 @@ const ui = 280, va = ({
8700
8674
  );
8701
8675
  };
8702
8676
  ct.displayName = "SearchableSelect";
8703
- function ba(e) {
8677
+ function ya(e) {
8704
8678
  const t = e.type;
8705
8679
  return t.startsWith("image/") ? "image" : t === "application/pdf" ? "pdf" : "file";
8706
8680
  }
8707
- const xa = ({
8681
+ const ha = ({
8708
8682
  label: e,
8709
8683
  subtitle: t,
8710
8684
  error: a,
@@ -8716,7 +8690,7 @@ const xa = ({
8716
8690
  value: d = [],
8717
8691
  className: u
8718
8692
  }) => {
8719
- const { t: g } = je(), [p, z] = w(!1), [S, x] = w(null), F = be(null), C = ee((h) => {
8693
+ const { t: g } = je(), [p, z] = S(!1), [w, x] = S(null), F = be(null), C = ee((h) => {
8720
8694
  if (!h) return;
8721
8695
  x(null);
8722
8696
  const L = Array.from(h);
@@ -8725,7 +8699,7 @@ const xa = ({
8725
8699
  return;
8726
8700
  }
8727
8701
  c == null || c(n ? [...d, ...L] : [L[0]]);
8728
- }, [o, n, c, d]), K = ee((h) => {
8702
+ }, [o, n, c, d]), W = ee((h) => {
8729
8703
  h.preventDefault(), h.stopPropagation(), z(!0);
8730
8704
  }, []), U = ee((h) => {
8731
8705
  h.preventDefault(), h.stopPropagation(), z(!1);
@@ -8738,8 +8712,8 @@ const xa = ({
8738
8712
  x(null);
8739
8713
  const L = d.filter((M, Z) => Z !== h);
8740
8714
  c == null || c(L);
8741
- }, _ = a || S, ce = d.length > 0;
8742
- return /* @__PURE__ */ l("div", { className: Ye("metakyc-file-upload", u), style: { width: "100%" }, children: [
8715
+ }, _ = a || w, ce = d.length > 0;
8716
+ return /* @__PURE__ */ l("div", { className: He("metakyc-file-upload", u), style: { width: "100%" }, children: [
8743
8717
  e && /* @__PURE__ */ l("div", { style: { marginBottom: "8px" }, children: [
8744
8718
  /* @__PURE__ */ l(
8745
8719
  "label",
@@ -8763,7 +8737,7 @@ const xa = ({
8763
8737
  {
8764
8738
  className: "metakyc-file-dropzone",
8765
8739
  onClick: D,
8766
- onDragOver: K,
8740
+ onDragOver: W,
8767
8741
  onDragLeave: U,
8768
8742
  onDrop: P,
8769
8743
  style: {
@@ -8841,7 +8815,7 @@ const xa = ({
8841
8815
  }
8842
8816
  ),
8843
8817
  ce && /* @__PURE__ */ i("div", { style: { marginTop: "12px", display: "flex", flexDirection: "column", gap: "8px" }, children: d.map((h, L) => {
8844
- const M = ba(h), Z = M === "image", ae = Z ? URL.createObjectURL(h) : null;
8818
+ const M = ya(h), Z = M === "image", ae = Z ? URL.createObjectURL(h) : null;
8845
8819
  return /* @__PURE__ */ l(
8846
8820
  "div",
8847
8821
  {
@@ -8943,7 +8917,7 @@ const xa = ({
8943
8917
  }) }),
8944
8918
  _ && /* @__PURE__ */ i("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", marginTop: "6px" }, children: _ })
8945
8919
  ] });
8946
- }, wa = Rt(
8920
+ }, ka = Rt(
8947
8921
  ({ countryCode: e = "+1", onCountryCodeChange: t, className: a, ...r }, n) => /* @__PURE__ */ l("div", { className: "w-full", children: [
8948
8922
  r.label && /* @__PURE__ */ l(
8949
8923
  "label",
@@ -8963,7 +8937,7 @@ const xa = ({
8963
8937
  type: "text",
8964
8938
  value: e,
8965
8939
  onChange: (o) => t == null ? void 0 : t(o.target.value),
8966
- className: Ye(
8940
+ className: He(
8967
8941
  "w-20 rounded-lg border px-3 py-2 text-sm",
8968
8942
  "focus:outline-none focus:ring-2 focus:ring-offset-0"
8969
8943
  ),
@@ -8981,7 +8955,7 @@ const xa = ({
8981
8955
  {
8982
8956
  ref: n,
8983
8957
  type: "tel",
8984
- className: Ye("flex-1", a),
8958
+ className: He("flex-1", a),
8985
8959
  ...r,
8986
8960
  label: ""
8987
8961
  }
@@ -8990,7 +8964,7 @@ const xa = ({
8990
8964
  r.error && /* @__PURE__ */ i("p", { className: "mt-1 text-sm text-danger-500", children: r.error })
8991
8965
  ] })
8992
8966
  );
8993
- wa.displayName = "PhoneInput";
8967
+ ka.displayName = "PhoneInput";
8994
8968
  /**
8995
8969
  * @license lucide-react v0.574.0 - ISC
8996
8970
  *
@@ -9004,14 +8978,14 @@ const Ii = (...e) => e.filter((t, a, r) => !!t && t.trim() !== "" && r.indexOf(t
9004
8978
  * This source code is licensed under the ISC license.
9005
8979
  * See the LICENSE file in the root directory of this source tree.
9006
8980
  */
9007
- const Sa = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
8981
+ const va = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
9008
8982
  /**
9009
8983
  * @license lucide-react v0.574.0 - ISC
9010
8984
  *
9011
8985
  * This source code is licensed under the ISC license.
9012
8986
  * See the LICENSE file in the root directory of this source tree.
9013
8987
  */
9014
- const Ca = (e) => e.replace(
8988
+ const ba = (e) => e.replace(
9015
8989
  /^([A-Z])|[\s-_]+(\w)/g,
9016
8990
  (t, a, r) => r ? r.toUpperCase() : a.toLowerCase()
9017
8991
  );
@@ -9022,7 +8996,7 @@ const Ca = (e) => e.replace(
9022
8996
  * See the LICENSE file in the root directory of this source tree.
9023
8997
  */
9024
8998
  const gi = (e) => {
9025
- const t = Ca(e);
8999
+ const t = ba(e);
9026
9000
  return t.charAt(0).toUpperCase() + t.slice(1);
9027
9001
  };
9028
9002
  /**
@@ -9031,7 +9005,7 @@ const gi = (e) => {
9031
9005
  * This source code is licensed under the ISC license.
9032
9006
  * See the LICENSE file in the root directory of this source tree.
9033
9007
  */
9034
- var Na = {
9008
+ var xa = {
9035
9009
  xmlns: "http://www.w3.org/2000/svg",
9036
9010
  width: 24,
9037
9011
  height: 24,
@@ -9048,7 +9022,7 @@ var Na = {
9048
9022
  * This source code is licensed under the ISC license.
9049
9023
  * See the LICENSE file in the root directory of this source tree.
9050
9024
  */
9051
- const Ta = (e) => {
9025
+ const wa = (e) => {
9052
9026
  for (const t in e)
9053
9027
  if (t.startsWith("aria-") || t === "role" || t === "title")
9054
9028
  return !0;
@@ -9060,7 +9034,7 @@ const Ta = (e) => {
9060
9034
  * This source code is licensed under the ISC license.
9061
9035
  * See the LICENSE file in the root directory of this source tree.
9062
9036
  */
9063
- const Ra = Rt(
9037
+ const Sa = Rt(
9064
9038
  ({
9065
9039
  color: e = "currentColor",
9066
9040
  size: t = 24,
@@ -9070,21 +9044,21 @@ const Ra = Rt(
9070
9044
  children: o,
9071
9045
  iconNode: s,
9072
9046
  ...c
9073
- }, d) => Kt(
9047
+ }, d) => Ut(
9074
9048
  "svg",
9075
9049
  {
9076
9050
  ref: d,
9077
- ...Na,
9051
+ ...xa,
9078
9052
  width: t,
9079
9053
  height: t,
9080
9054
  stroke: e,
9081
9055
  strokeWidth: r ? Number(a) * 24 / Number(t) : a,
9082
9056
  className: Ii("lucide", n),
9083
- ...!o && !Ta(c) && { "aria-hidden": "true" },
9057
+ ...!o && !wa(c) && { "aria-hidden": "true" },
9084
9058
  ...c
9085
9059
  },
9086
9060
  [
9087
- ...s.map(([u, g]) => Kt(u, g)),
9061
+ ...s.map(([u, g]) => Ut(u, g)),
9088
9062
  ...Array.isArray(o) ? o : [o]
9089
9063
  ]
9090
9064
  )
@@ -9097,11 +9071,11 @@ const Ra = Rt(
9097
9071
  */
9098
9072
  const zi = (e, t) => {
9099
9073
  const a = Rt(
9100
- ({ className: r, ...n }, o) => Kt(Ra, {
9074
+ ({ className: r, ...n }, o) => Ut(Sa, {
9101
9075
  ref: o,
9102
9076
  iconNode: t,
9103
9077
  className: Ii(
9104
- `lucide-${Sa(gi(e))}`,
9078
+ `lucide-${va(gi(e))}`,
9105
9079
  `lucide-${e}`,
9106
9080
  r
9107
9081
  ),
@@ -9116,15 +9090,15 @@ const zi = (e, t) => {
9116
9090
  * This source code is licensed under the ISC license.
9117
9091
  * See the LICENSE file in the root directory of this source tree.
9118
9092
  */
9119
- const Aa = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Li = zi("chevron-left", Aa);
9093
+ const Ca = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Li = zi("chevron-left", Ca);
9120
9094
  /**
9121
9095
  * @license lucide-react v0.574.0 - ISC
9122
9096
  *
9123
9097
  * This source code is licensed under the ISC license.
9124
9098
  * See the LICENSE file in the root directory of this source tree.
9125
9099
  */
9126
- const Ia = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Ei = zi("chevron-right", Ia);
9127
- function za(e, t) {
9100
+ const Na = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Ei = zi("chevron-right", Na);
9101
+ function Ta(e, t) {
9128
9102
  const a = !t || t.length === 0 || t.every((r) => !r || !r.trim());
9129
9103
  if (e.isRequired && a)
9130
9104
  return e.errorMessage || "This field is required";
@@ -9153,7 +9127,7 @@ function za(e, t) {
9153
9127
  }
9154
9128
  return null;
9155
9129
  }
9156
- function La(e) {
9130
+ function Ra(e) {
9157
9131
  const t = e.flatMap(
9158
9132
  (r, n) => (r.questions ?? []).map((o, s) => ({ question: o, groupIndex: n, qIdx: s }))
9159
9133
  ), a = /* @__PURE__ */ new Map();
@@ -9163,30 +9137,30 @@ function La(e) {
9163
9137
  }
9164
9138
  return Array.from(a.entries()).sort(([r], [n]) => r - n).map(([, r]) => r);
9165
9139
  }
9166
- const Ea = ({
9140
+ const Aa = ({
9167
9141
  applicantId: e,
9168
9142
  onComplete: t,
9169
9143
  onBack: a
9170
9144
  }) => {
9171
- const { t: r } = je(), { questionnaire: n, initialAnswers: o, isLoading: s, isSubmitting: c, error: d, submit: u } = ma(e), [g, p] = w({}), [z, S] = w({}), [x, F] = w(0);
9145
+ const { t: r } = je(), { questionnaire: n, initialAnswers: o, isLoading: s, isSubmitting: c, error: d, submit: u } = sa(e), [g, p] = S({}), [z, w] = S({}), [x, F] = S(0);
9172
9146
  we.useEffect(() => {
9173
9147
  o && Object.keys(o).length > 0 && Object.keys(g).length === 0 && p(o);
9174
9148
  }, [o]);
9175
- const C = He(
9176
- () => n ? La(n.questionGroups) : [],
9149
+ const C = Ye(
9150
+ () => n ? Ra(n.questionGroups) : [],
9177
9151
  [n]
9178
- ), K = x === C.length - 1, U = C[x] ?? [], P = ee((h, L) => {
9179
- p((M) => ({ ...M, [h]: L })), S((M) => {
9152
+ ), W = x === C.length - 1, U = C[x] ?? [], P = ee((h, L) => {
9153
+ p((M) => ({ ...M, [h]: L })), w((M) => {
9180
9154
  const Z = { ...M };
9181
9155
  return delete Z[h], Z;
9182
9156
  });
9183
9157
  }, []), D = ee(() => {
9184
9158
  const h = {};
9185
9159
  for (const { question: L } of U) {
9186
- const M = za(L, g[L.id] ?? []);
9160
+ const M = Ta(L, g[L.id] ?? []);
9187
9161
  M && (h[L.id] = M);
9188
9162
  }
9189
- return S((L) => ({ ...L, ...h })), Object.keys(h).length === 0;
9163
+ return w((L) => ({ ...L, ...h })), Object.keys(h).length === 0;
9190
9164
  }, [U, g]), V = () => {
9191
9165
  D() && F((h) => h + 1);
9192
9166
  }, _ = () => {
@@ -9234,7 +9208,7 @@ const Ea = ({
9234
9208
  ] })
9235
9209
  ] }),
9236
9210
  /* @__PURE__ */ i(ue, { className: "space-y-6", children: U.map(({ question: h }) => /* @__PURE__ */ i(
9237
- Da,
9211
+ Ia,
9238
9212
  {
9239
9213
  question: h,
9240
9214
  value: g[h.id] ?? [],
@@ -9257,7 +9231,7 @@ const Ea = ({
9257
9231
  ]
9258
9232
  }
9259
9233
  ),
9260
- K ? /* @__PURE__ */ i(
9234
+ W ? /* @__PURE__ */ i(
9261
9235
  le,
9262
9236
  {
9263
9237
  type: "button",
@@ -9283,7 +9257,7 @@ const Ea = ({
9283
9257
  border: "1px solid color-mix(in srgb, var(--metakyc-danger, #ef4444) 30%, transparent)"
9284
9258
  }, children: /* @__PURE__ */ i("p", { className: "text-sm", style: { color: "var(--metakyc-danger, #ef4444)" }, children: d.message }) })
9285
9259
  ] }) : null;
9286
- }, Da = ({ question: e, value: t, error: a, onChange: r }) => {
9260
+ }, Ia = ({ question: e, value: t, error: a, onChange: r }) => {
9287
9261
  var c;
9288
9262
  const { t: n } = je(), s = (((c = e.defaultAnswers) == null ? void 0 : c.length) ?? 0) > 0 ? e.showAsDropdown ? e.canMultipleAnswer ? "multi-select" : "single-select" : e.canMultipleAnswer ? "checkbox" : "radio" : "text";
9289
9263
  return /* @__PURE__ */ l("div", { className: "space-y-2", children: [
@@ -9304,7 +9278,7 @@ const Ea = ({
9304
9278
  }
9305
9279
  ),
9306
9280
  s === "single-select" && /* @__PURE__ */ i(
9307
- Xt,
9281
+ Qt,
9308
9282
  {
9309
9283
  value: t[0] ?? "",
9310
9284
  onChange: (d) => r([d.target.value]),
@@ -9376,7 +9350,7 @@ const Ea = ({
9376
9350
  a && s === "text" && null
9377
9351
  ] });
9378
9352
  };
9379
- function Pa(e) {
9353
+ function za(e) {
9380
9354
  const t = /* @__PURE__ */ new Map();
9381
9355
  for (const a of e) {
9382
9356
  const r = a.pageNumber != null && a.pageNumber > 0 ? a.pageNumber : 1;
@@ -9384,15 +9358,15 @@ function Pa(e) {
9384
9358
  }
9385
9359
  return Array.from(t.entries()).sort(([a], [r]) => a - r).map(([, a]) => a);
9386
9360
  }
9387
- const Ma = ({
9361
+ const La = ({
9388
9362
  applicantId: e,
9389
9363
  onComplete: t,
9390
9364
  onBack: a
9391
9365
  }) => {
9392
- const { t: r } = je(), { uploadDocument: n, isLoading: o, isSubmitting: s, error: c, submit: d } = ua(e), [u, g] = w({}), [p, z] = w(null), [S, x] = w(0), [F, C] = w({}), K = He(
9393
- () => n ? Pa(n.uploadDocumentFiles) : [],
9366
+ const { t: r } = je(), { uploadDocument: n, isLoading: o, isSubmitting: s, error: c, submit: d } = la(e), [u, g] = S({}), [p, z] = S(null), [w, x] = S(0), [F, C] = S({}), W = Ye(
9367
+ () => n ? za(n.uploadDocumentFiles) : [],
9394
9368
  [n]
9395
- ), U = K[S] ?? [], P = S === K.length - 1, D = K.length, V = ee(() => {
9369
+ ), U = W[w] ?? [], P = w === W.length - 1, D = W.length, V = ee(() => {
9396
9370
  const L = {};
9397
9371
  for (const M of U)
9398
9372
  M.isRequired && (u[M.id] || []).length === 0 && (L[M.id] = `${M.displayName} is required`);
@@ -9400,7 +9374,7 @@ const Ma = ({
9400
9374
  }, [U, u]), _ = () => {
9401
9375
  V() && (x((L) => L + 1), C({}));
9402
9376
  }, ce = () => {
9403
- S > 0 ? (x((L) => L - 1), C({})) : a == null || a();
9377
+ w > 0 ? (x((L) => L - 1), C({})) : a == null || a();
9404
9378
  }, h = async () => {
9405
9379
  if (!(!V() || !n)) {
9406
9380
  z(null);
@@ -9410,7 +9384,7 @@ const Ma = ({
9410
9384
  const ae = u[Z.id] || [], $ = await Promise.all(
9411
9385
  ae.map(async (re) => ({
9412
9386
  fileName: re.name,
9413
- fileData: await na(re)
9387
+ fileData: await ta(re)
9414
9388
  }))
9415
9389
  );
9416
9390
  return {
@@ -9474,23 +9448,23 @@ const Ma = ({
9474
9448
  justifyContent: "space-between",
9475
9449
  marginTop: "12px"
9476
9450
  }, children: [
9477
- /* @__PURE__ */ i("span", { style: { fontSize: "12px", color: "var(--metakyc-text-muted, #9ca3af)" }, children: r("common.pageXofY", { current: S + 1, total: D }) }),
9478
- /* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "center", gap: "6px" }, children: K.map((L, M) => /* @__PURE__ */ i(
9451
+ /* @__PURE__ */ i("span", { style: { fontSize: "12px", color: "var(--metakyc-text-muted, #9ca3af)" }, children: r("common.pageXofY", { current: w + 1, total: D }) }),
9452
+ /* @__PURE__ */ i("div", { style: { display: "flex", alignItems: "center", gap: "6px" }, children: W.map((L, M) => /* @__PURE__ */ i(
9479
9453
  "div",
9480
9454
  {
9481
9455
  style: {
9482
9456
  height: "6px",
9483
- width: M === S ? "20px" : "6px",
9457
+ width: M === w ? "20px" : "6px",
9484
9458
  borderRadius: "999px",
9485
9459
  transition: "all 0.2s ease",
9486
- backgroundColor: M <= S ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #e5e7eb)"
9460
+ backgroundColor: M <= w ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #e5e7eb)"
9487
9461
  }
9488
9462
  },
9489
9463
  M
9490
9464
  )) })
9491
9465
  ] })
9492
9466
  ] }),
9493
- n.description && S === 0 && /* @__PURE__ */ l("div", { style: {
9467
+ n.description && w === 0 && /* @__PURE__ */ l("div", { style: {
9494
9468
  margin: "0 24px",
9495
9469
  marginTop: "4px",
9496
9470
  display: "flex",
@@ -9527,7 +9501,7 @@ const Ma = ({
9527
9501
  }, children: n.description })
9528
9502
  ] }),
9529
9503
  /* @__PURE__ */ i(ue, { children: /* @__PURE__ */ i("div", { style: { display: "flex", flexDirection: "column", gap: "24px" }, children: U.map((L) => /* @__PURE__ */ i(
9530
- xa,
9504
+ ha,
9531
9505
  {
9532
9506
  label: L.displayName,
9533
9507
  subtitle: L.subtitle,
@@ -9575,7 +9549,7 @@ const Ma = ({
9575
9549
  type: "button",
9576
9550
  variant: "outline",
9577
9551
  onClick: ce,
9578
- children: S > 0 ? r("common.previous") : r("common.back")
9552
+ children: w > 0 ? r("common.previous") : r("common.back")
9579
9553
  }
9580
9554
  ),
9581
9555
  P ? /* @__PURE__ */ i(
@@ -9596,8 +9570,8 @@ const Ma = ({
9596
9570
  )
9597
9571
  ] }) })
9598
9572
  ] }) : null;
9599
- }, ja = ({ applicantId: e, onComplete: t, onBack: a }) => {
9600
- const { t: r } = je(), { overview: n, isLoading: o, isSubmitting: s, error: c, passOverview: d } = pa(e), u = async () => {
9573
+ }, Ea = ({ applicantId: e, onComplete: t, onBack: a }) => {
9574
+ const { t: r } = je(), { overview: n, isLoading: o, isSubmitting: s, error: c, passOverview: d } = ca(e), u = async () => {
9601
9575
  await d(), t == null || t();
9602
9576
  };
9603
9577
  return o ? /* @__PURE__ */ i(me, { children: /* @__PURE__ */ i(ue, { children: /* @__PURE__ */ i(Ge, { className: "my-8" }) }) }) : c ? /* @__PURE__ */ i(me, { children: /* @__PURE__ */ i(ue, { children: /* @__PURE__ */ l("p", { className: "text-danger-500", children: [
@@ -9641,7 +9615,7 @@ const Ma = ({
9641
9615
  ] })
9642
9616
  ] }) : null;
9643
9617
  };
9644
- function Fa(e) {
9618
+ function Da(e) {
9645
9619
  const t = (e ?? "en").toLowerCase().replace("_", "-");
9646
9620
  try {
9647
9621
  return Intl.NumberFormat.supportedLocalesOf([t]), t;
@@ -9649,11 +9623,11 @@ function Fa(e) {
9649
9623
  return "en";
9650
9624
  }
9651
9625
  }
9652
- function Oa(e) {
9626
+ function Pa(e) {
9653
9627
  return e.valueDataType === lt.Money && Array.isArray(e.defaultValues) && e.defaultValues.length > 0;
9654
9628
  }
9655
- function Ba(e, t) {
9656
- const a = new Intl.NumberFormat(Fa(t), {
9629
+ function Ma(e, t) {
9630
+ const a = new Intl.NumberFormat(Da(t), {
9657
9631
  minimumFractionDigits: 0,
9658
9632
  maximumFractionDigits: 2
9659
9633
  });
@@ -9662,7 +9636,7 @@ function Ba(e, t) {
9662
9636
  return isNaN(n) ? r : a.format(n);
9663
9637
  });
9664
9638
  }
9665
- function Va(e, t) {
9639
+ function ja(e, t) {
9666
9640
  const a = !t || t.length === 0 || t.every((r) => !r || !r.trim());
9667
9641
  if (e.isRequired && a)
9668
9642
  return e.errorMessage || `${e.displayName} is required`;
@@ -9692,48 +9666,48 @@ function Va(e, t) {
9692
9666
  }
9693
9667
  return null;
9694
9668
  }
9695
- function qa(e) {
9669
+ function Fa(e) {
9696
9670
  const t = /* @__PURE__ */ new Map();
9697
9671
  return e.forEach((a, r) => {
9698
9672
  const n = a.pageNumber != null && a.pageNumber > 0 ? a.pageNumber : 1;
9699
9673
  t.has(n) || t.set(n, []), t.get(n).push({ criterion: a, idx: r });
9700
9674
  }), Array.from(t.entries()).sort(([a], [r]) => a - r).map(([, a]) => a);
9701
9675
  }
9702
- function Ka(e) {
9676
+ function Oa(e) {
9703
9677
  return e.builtInType === 1 ? "country" : !e.defaultValues || e.defaultValues.length === 0 ? "text" : e.multipleValue ? "checkbox" : "radio";
9704
9678
  }
9705
- const Ua = ({
9679
+ const Ba = ({
9706
9680
  applicantId: e,
9707
9681
  onComplete: t,
9708
9682
  onBack: a
9709
9683
  }) => {
9710
- const { t: r } = je(), { config: n } = Ee(), o = n.locale ?? "en", { criteria: s, initialAnswers: c, isLoading: d, isSubmitting: u, error: g, submit: p } = fa(e), [z, S] = w({}), [x, F] = w({}), [C, K] = w(0), [U, P] = w(!1);
9684
+ const { t: r } = je(), { config: n } = Ee(), o = n.locale ?? "en", { criteria: s, initialAnswers: c, isLoading: d, isSubmitting: u, error: g, submit: p } = ma(e), [z, w] = S({}), [x, F] = S({}), [C, W] = S(0), [U, P] = S(!1);
9711
9685
  we.useEffect(() => {
9712
- c && Object.keys(c).length > 0 && Object.keys(z).length === 0 && S(c);
9686
+ c && Object.keys(c).length > 0 && Object.keys(z).length === 0 && w(c);
9713
9687
  }, [c]);
9714
- const D = He(
9715
- () => s && s.length > 0 ? qa(s) : [],
9688
+ const D = Ye(
9689
+ () => s && s.length > 0 ? Fa(s) : [],
9716
9690
  [s]
9717
9691
  ), V = C === D.length - 1, _ = D[C] ?? [];
9718
9692
  we.useEffect(() => {
9719
9693
  !d && s && s.length === 0 && !U && !u && (P(!0), p({ applicantId: e, criteriaValueInputs: [] }).then(() => t == null ? void 0 : t()).catch(console.error));
9720
9694
  }, [d, s, U, u, p, e, t]);
9721
9695
  const ce = ee((ae, $) => {
9722
- S((re) => ({ ...re, [ae]: $ })), F((re) => {
9696
+ w((re) => ({ ...re, [ae]: $ })), F((re) => {
9723
9697
  const he = { ...re };
9724
9698
  return delete he[ae], he;
9725
9699
  });
9726
9700
  }, []), h = ee(() => {
9727
9701
  const ae = {};
9728
9702
  for (const { criterion: $ } of _) {
9729
- const re = Va($, z[$.id] ?? []);
9703
+ const re = ja($, z[$.id] ?? []);
9730
9704
  re && (ae[$.id] = re);
9731
9705
  }
9732
9706
  return F(($) => ({ ...$, ...ae })), Object.keys(ae).length === 0;
9733
9707
  }, [_, z]), L = () => {
9734
- h() && K((ae) => ae + 1);
9708
+ h() && W((ae) => ae + 1);
9735
9709
  }, M = () => {
9736
- C > 0 ? K((ae) => ae - 1) : a == null || a();
9710
+ C > 0 ? W((ae) => ae - 1) : a == null || a();
9737
9711
  }, Z = async () => {
9738
9712
  if (!(!h() || !s))
9739
9713
  try {
@@ -9777,7 +9751,7 @@ const Ua = ({
9777
9751
  ] })
9778
9752
  ] }),
9779
9753
  /* @__PURE__ */ i(ue, { className: "space-y-6", children: _.map(({ criterion: ae }) => /* @__PURE__ */ i(
9780
- Wa,
9754
+ Va,
9781
9755
  {
9782
9756
  criterion: ae,
9783
9757
  value: z[ae.id] ?? [],
@@ -9819,8 +9793,8 @@ const Ua = ({
9819
9793
  border: "1px solid color-mix(in srgb, var(--metakyc-danger, #ef4444) 30%, transparent)"
9820
9794
  }, children: /* @__PURE__ */ i("p", { className: "text-sm", style: { color: "var(--metakyc-danger, #ef4444)" }, children: g.message }) })
9821
9795
  ] }) : null;
9822
- }, Wa = ({ criterion: e, value: t, error: a, locale: r, onChange: n }) => {
9823
- const { t: o } = je(), s = Ka(e), c = e.valueDataType === lt.Integer || e.valueDataType === lt.Money || e.valueDataType === lt.DigitOnly, d = Oa(e), u = (g) => d ? Ba(g, r) : g;
9796
+ }, Va = ({ criterion: e, value: t, error: a, locale: r, onChange: n }) => {
9797
+ const { t: o } = je(), s = Oa(e), c = e.valueDataType === lt.Integer || e.valueDataType === lt.Money || e.valueDataType === lt.DigitOnly, d = Pa(e), u = (g) => d ? Ma(g, r) : g;
9824
9798
  return /* @__PURE__ */ l("div", { className: "space-y-2", children: [
9825
9799
  /* @__PURE__ */ l("label", { className: "block text-sm font-medium", style: { color: "var(--metakyc-text-primary, #111827)" }, children: [
9826
9800
  e.displayName,
@@ -9885,7 +9859,7 @@ const Ua = ({
9885
9859
  s === "checkbox" && /* @__PURE__ */ l("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
9886
9860
  (e.defaultValues ?? []).map((g) => {
9887
9861
  const p = t.includes(g), z = () => {
9888
- n(p ? t.filter((S) => S !== g) : [...t, g]);
9862
+ n(p ? t.filter((w) => w !== g) : [...t, g]);
9889
9863
  };
9890
9864
  return /* @__PURE__ */ l(
9891
9865
  "div",
@@ -9904,7 +9878,7 @@ const Ua = ({
9904
9878
  a && /* @__PURE__ */ i("p", { className: "text-sm text-danger-500", children: a })
9905
9879
  ] }),
9906
9880
  s === "country" && /* @__PURE__ */ i(
9907
- Xt,
9881
+ Qt,
9908
9882
  {
9909
9883
  value: t[0] ?? "",
9910
9884
  onChange: (g) => n([g.target.value]),
@@ -9921,12 +9895,12 @@ const Ua = ({
9921
9895
  }
9922
9896
  )
9923
9897
  ] });
9924
- }, $a = ({
9898
+ }, qa = ({
9925
9899
  applicantId: e,
9926
9900
  onComplete: t,
9927
9901
  onBack: a
9928
9902
  }) => {
9929
- const { t: r } = je(), { investorCategorizationService: n } = Ee(), [o, s] = w(null), [c, d] = w(!1), [u, g] = w(null);
9903
+ const { t: r } = je(), { investorCategorizationService: n } = Ee(), [o, s] = S(null), [c, d] = S(!1), [u, g] = S(null);
9930
9904
  return /* @__PURE__ */ i("form", { onSubmit: async (z) => {
9931
9905
  if (z.preventDefault(), o === null) {
9932
9906
  g(r("investorCategorization.pleaseSelect"));
@@ -9934,15 +9908,15 @@ const Ua = ({
9934
9908
  }
9935
9909
  d(!0), g(null);
9936
9910
  try {
9937
- const S = {
9911
+ const w = {
9938
9912
  applicantId: e,
9939
9913
  investorType: o
9940
9914
  };
9941
- console.log("Submitting investor categorization:", S);
9942
- const x = await n.setInvestorCategorization(S);
9915
+ console.log("Submitting investor categorization:", w);
9916
+ const x = await n.setInvestorCategorization(w);
9943
9917
  console.log("Investor categorization result:", x), t == null || t();
9944
- } catch (S) {
9945
- console.error("Error submitting investor categorization:", S), g(S.message || r("investorCategorization.failedToSubmit"));
9918
+ } catch (w) {
9919
+ console.error("Error submitting investor categorization:", w), g(w.message || r("investorCategorization.failedToSubmit"));
9946
9920
  } finally {
9947
9921
  d(!1);
9948
9922
  }
@@ -9958,8 +9932,8 @@ const Ua = ({
9958
9932
  {
9959
9933
  className: "block p-4 border-2 rounded-lg cursor-pointer transition-all",
9960
9934
  style: {
9961
- borderColor: o === Ue.Individual ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #e5e7eb)",
9962
- backgroundColor: o === Ue.Individual ? "var(--metakyc-primary-light, #dbeafe)" : "transparent"
9935
+ borderColor: o === Ke.Individual ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #e5e7eb)",
9936
+ backgroundColor: o === Ke.Individual ? "var(--metakyc-primary-light, #dbeafe)" : "transparent"
9963
9937
  },
9964
9938
  children: /* @__PURE__ */ l("div", { className: "flex items-start", children: [
9965
9939
  /* @__PURE__ */ i(
@@ -9967,9 +9941,9 @@ const Ua = ({
9967
9941
  {
9968
9942
  type: "radio",
9969
9943
  name: "investorType",
9970
- value: Ue.Individual,
9971
- checked: o === Ue.Individual,
9972
- onChange: () => s(Ue.Individual),
9944
+ value: Ke.Individual,
9945
+ checked: o === Ke.Individual,
9946
+ onChange: () => s(Ke.Individual),
9973
9947
  className: "mt-1"
9974
9948
  }
9975
9949
  ),
@@ -9985,8 +9959,8 @@ const Ua = ({
9985
9959
  {
9986
9960
  className: "block p-4 border-2 rounded-lg cursor-pointer transition-all",
9987
9961
  style: {
9988
- borderColor: o === Ue.Sophisticated ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #e5e7eb)",
9989
- backgroundColor: o === Ue.Sophisticated ? "var(--metakyc-primary-light, #dbeafe)" : "transparent"
9962
+ borderColor: o === Ke.Sophisticated ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #e5e7eb)",
9963
+ backgroundColor: o === Ke.Sophisticated ? "var(--metakyc-primary-light, #dbeafe)" : "transparent"
9990
9964
  },
9991
9965
  children: /* @__PURE__ */ l("div", { className: "flex items-start", children: [
9992
9966
  /* @__PURE__ */ i(
@@ -9994,9 +9968,9 @@ const Ua = ({
9994
9968
  {
9995
9969
  type: "radio",
9996
9970
  name: "investorType",
9997
- value: Ue.Sophisticated,
9998
- checked: o === Ue.Sophisticated,
9999
- onChange: () => s(Ue.Sophisticated),
9971
+ value: Ke.Sophisticated,
9972
+ checked: o === Ke.Sophisticated,
9973
+ onChange: () => s(Ke.Sophisticated),
10000
9974
  className: "mt-1"
10001
9975
  }
10002
9976
  ),
@@ -10012,8 +9986,8 @@ const Ua = ({
10012
9986
  {
10013
9987
  className: "block p-4 border-2 rounded-lg cursor-pointer transition-all",
10014
9988
  style: {
10015
- borderColor: o === Ue.HighNetWorth ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #e5e7eb)",
10016
- backgroundColor: o === Ue.HighNetWorth ? "var(--metakyc-primary-light, #dbeafe)" : "transparent"
9989
+ borderColor: o === Ke.HighNetWorth ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #e5e7eb)",
9990
+ backgroundColor: o === Ke.HighNetWorth ? "var(--metakyc-primary-light, #dbeafe)" : "transparent"
10017
9991
  },
10018
9992
  children: /* @__PURE__ */ l("div", { className: "flex items-start", children: [
10019
9993
  /* @__PURE__ */ i(
@@ -10021,9 +9995,9 @@ const Ua = ({
10021
9995
  {
10022
9996
  type: "radio",
10023
9997
  name: "investorType",
10024
- value: Ue.HighNetWorth,
10025
- checked: o === Ue.HighNetWorth,
10026
- onChange: () => s(Ue.HighNetWorth),
9998
+ value: Ke.HighNetWorth,
9999
+ checked: o === Ke.HighNetWorth,
10000
+ onChange: () => s(Ke.HighNetWorth),
10027
10001
  className: "mt-1"
10028
10002
  }
10029
10003
  ),
@@ -10062,12 +10036,12 @@ function Bt(e) {
10062
10036
  const t = Math.floor(e / 60), a = e % 60;
10063
10037
  return `${t.toString().padStart(2, "0")}:${a.toString().padStart(2, "0")}`;
10064
10038
  }
10065
- const Ha = ({
10039
+ const Ua = ({
10066
10040
  applicantId: e,
10067
10041
  onComplete: t,
10068
10042
  onBack: a
10069
10043
  }) => {
10070
- const { t: r } = je(), { appropriatenessTestService: n } = Ee(), [o, s] = w(null), [c, d] = w(!0), [u, g] = w(!1), [p, z] = w(null), [S, x] = w({}), [F, C] = w(0), [K, U] = w(!1), [P, D] = w(!1), [V, _] = w(0), [ce, h] = w(0), [L, M] = w(null);
10044
+ const { t: r } = je(), { appropriatenessTestService: n } = Ee(), [o, s] = S(null), [c, d] = S(!0), [u, g] = S(!1), [p, z] = S(null), [w, x] = S({}), [F, C] = S(0), [W, U] = S(!1), [P, D] = S(!1), [V, _] = S(0), [ce, h] = S(0), [L, M] = S(null);
10071
10045
  Ne(() => {
10072
10046
  (async () => {
10073
10047
  try {
@@ -10084,12 +10058,12 @@ const Ha = ({
10084
10058
  }
10085
10059
  })();
10086
10060
  }, [e, n]), Ne(() => {
10087
- if (!K || F <= 0) return;
10061
+ if (!W || F <= 0) return;
10088
10062
  const T = setInterval(() => {
10089
10063
  C((O) => O <= 1 ? (D(!0), 0) : O - 1);
10090
10064
  }, 1e3);
10091
10065
  return () => clearInterval(T);
10092
- }, [K, F]), Ne(() => {
10066
+ }, [W, F]), Ne(() => {
10093
10067
  if (V <= 0) return;
10094
10068
  const T = setInterval(() => {
10095
10069
  _((O) => O <= 1 ? 0 : O - 1);
@@ -10114,7 +10088,7 @@ const Ha = ({
10114
10088
  }, [e, n]), re = async (T) => {
10115
10089
  if (o) {
10116
10090
  if (!P) {
10117
- const O = o.appropriatenessQuestions.length - Object.keys(S).length;
10091
+ const O = o.appropriatenessQuestions.length - Object.keys(w).length;
10118
10092
  if (O > 0) {
10119
10093
  z(r("appropriatenessTest.answerAllQuestions", { remaining: O }));
10120
10094
  return;
@@ -10123,7 +10097,7 @@ const Ha = ({
10123
10097
  g(!0), z(null);
10124
10098
  try {
10125
10099
  const O = o.appropriatenessQuestions.map(
10126
- (xe) => ({ appropriatenessQuestionId: xe.id, value: S[xe.id] || "" })
10100
+ (xe) => ({ appropriatenessQuestionId: xe.id, value: w[xe.id] || "" })
10127
10101
  ), Se = {
10128
10102
  applicantId: e,
10129
10103
  appropriatenessTestId: o.id,
@@ -10157,7 +10131,7 @@ const Ha = ({
10157
10131
  /* @__PURE__ */ i("p", { style: { fontSize: "16px", fontWeight: 600, color: "var(--metakyc-danger, #ef4444)" }, children: r("appropriatenessTest.noTestData") }),
10158
10132
  p && /* @__PURE__ */ i("p", { style: { fontSize: "14px", color: "var(--metakyc-text-muted, #9ca3af)", marginTop: "8px" }, children: p })
10159
10133
  ] }) }) });
10160
- const fe = o.testAllowedMaxTry - o.totalFailedTries, De = o.appropriatenessQuestions.length, se = Object.keys(S).length;
10134
+ const fe = o.testAllowedMaxTry - o.totalFailedTries, De = o.appropriatenessQuestions.length, se = Object.keys(w).length;
10161
10135
  if (V > 0)
10162
10136
  return /* @__PURE__ */ l(me, { children: [
10163
10137
  /* @__PURE__ */ i(Fe, { children: /* @__PURE__ */ i("h2", { style: { fontSize: "18px", fontWeight: 700, color: "var(--metakyc-text-primary, #111827)", margin: 0 }, children: o.displayName }) }),
@@ -10261,7 +10235,7 @@ const Ha = ({
10261
10235
  ] }) }) })
10262
10236
  ] });
10263
10237
  }
10264
- if (!K)
10238
+ if (!W)
10265
10239
  return /* @__PURE__ */ l(me, { children: [
10266
10240
  /* @__PURE__ */ l(Fe, { children: [
10267
10241
  /* @__PURE__ */ i("h2", { style: { fontSize: "18px", fontWeight: 700, color: "var(--metakyc-text-primary, #111827)", margin: 0 }, children: o.displayName }),
@@ -10406,11 +10380,11 @@ const Ha = ({
10406
10380
  ] }),
10407
10381
  /* @__PURE__ */ l(ue, { children: [
10408
10382
  G && /* @__PURE__ */ i(
10409
- _a,
10383
+ Wa,
10410
10384
  {
10411
10385
  question: G,
10412
10386
  index: ce,
10413
- selectedAnswer: S[G.id],
10387
+ selectedAnswer: w[G.id],
10414
10388
  onSelect: (T) => ae(G.id, T),
10415
10389
  disabled: u
10416
10390
  }
@@ -10431,8 +10405,8 @@ const Ha = ({
10431
10405
  height: "28px",
10432
10406
  borderRadius: "8px",
10433
10407
  border: O === ce ? "2px solid var(--metakyc-primary, #2563eb)" : "1px solid var(--metakyc-border, #e5e7eb)",
10434
- backgroundColor: S[T.id] ? O === ce ? "color-mix(in srgb, var(--metakyc-primary, #2563eb) 15%, transparent)" : "color-mix(in srgb, var(--metakyc-primary, #2563eb) 8%, transparent)" : O === ce ? "var(--metakyc-surface, #f9fafb)" : "var(--metakyc-background, #ffffff)",
10435
- color: S[T.id] ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-text-muted, #9ca3af)",
10408
+ backgroundColor: w[T.id] ? O === ce ? "color-mix(in srgb, var(--metakyc-primary, #2563eb) 15%, transparent)" : "color-mix(in srgb, var(--metakyc-primary, #2563eb) 8%, transparent)" : O === ce ? "var(--metakyc-surface, #f9fafb)" : "var(--metakyc-background, #ffffff)",
10409
+ color: w[T.id] ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-text-muted, #9ca3af)",
10436
10410
  fontSize: "12px",
10437
10411
  fontWeight: 600,
10438
10412
  cursor: "pointer",
@@ -10506,7 +10480,7 @@ const Ha = ({
10506
10480
  ] })
10507
10481
  ] }) })
10508
10482
  ] });
10509
- }, Ya = {
10483
+ }, Ka = {
10510
10484
  questions: /* @__PURE__ */ l("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
10511
10485
  /* @__PURE__ */ i("path", { d: "M9 11l3 3L22 4" }),
10512
10486
  /* @__PURE__ */ i("path", { d: "M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11" })
@@ -10538,7 +10512,7 @@ const Ha = ({
10538
10512
  /* @__PURE__ */ i("div", { style: {
10539
10513
  color: n ? "#f59e0b" : "var(--metakyc-primary, #2563eb)",
10540
10514
  flexShrink: 0
10541
- }, children: Ya[e] }),
10515
+ }, children: Ka[e] }),
10542
10516
  /* @__PURE__ */ l("div", { children: [
10543
10517
  /* @__PURE__ */ i("p", { style: { fontSize: "12px", color: "var(--metakyc-text-muted, #9ca3af)", margin: 0 }, children: t }),
10544
10518
  /* @__PURE__ */ i("p", { style: {
@@ -10550,7 +10524,7 @@ const Ha = ({
10550
10524
  }, children: a })
10551
10525
  ] })
10552
10526
  ] });
10553
- }, _a = ({ question: e, selectedAnswer: t, onSelect: a, disabled: r }) => /* @__PURE__ */ l("div", { children: [
10527
+ }, Wa = ({ question: e, selectedAnswer: t, onSelect: a, disabled: r }) => /* @__PURE__ */ l("div", { children: [
10554
10528
  /* @__PURE__ */ l("div", { style: { marginBottom: "16px" }, children: [
10555
10529
  e.groupName && /* @__PURE__ */ i("span", { style: {
10556
10530
  display: "inline-block",
@@ -10632,13 +10606,13 @@ const Ha = ({
10632
10606
  o
10633
10607
  );
10634
10608
  }) })
10635
- ] }), Ga = ({
10609
+ ] }), $a = ({
10636
10610
  applicantId: e,
10637
10611
  onComplete: t,
10638
10612
  onBack: a
10639
10613
  }) => {
10640
10614
  var Pe, Je, mt, rt;
10641
- const { t: r } = je(), { applicantService: n, baseInformationService: o, identityService: s, config: c, currentTheme: d } = Ee(), { identityData: u, provider: g, token: p, isLoading: z, error: S, requestIdentity: x, restartIdentity: F } = ga(e), [C, K] = w(null), [U, P] = w(null), [D, V] = w([]), [_, ce] = w([]), [h, L] = w(!0), [M, Z] = w(!1), [ae, $] = w(null), [re, he] = w(!1), fe = we.useRef(!1), [De, se] = w({}), [G, Q] = w({}), te = d != null && d.reviewPageFields && d.reviewPageFields.length > 0 ? d.reviewPageFields[0] : null, I = !!(d != null && d.reviewPageDisabled), T = be(!1);
10615
+ const { t: r } = je(), { applicantService: n, baseInformationService: o, identityService: s, config: c, currentTheme: d } = Ee(), { identityData: u, provider: g, token: p, isLoading: z, error: w, requestIdentity: x, restartIdentity: F } = da(e), [C, W] = S(null), [U, P] = S(null), [D, V] = S([]), [_, ce] = S([]), [h, L] = S(!0), [M, Z] = S(!1), [ae, $] = S(null), [re, he] = S(!1), fe = we.useRef(!1), [De, se] = S({}), [G, Q] = S({}), te = d != null && d.reviewPageFields && d.reviewPageFields.length > 0 ? d.reviewPageFields[0] : null, I = !!(d != null && d.reviewPageDisabled), T = be(!1);
10642
10616
  T.current = I;
10643
10617
  const O = Bi({
10644
10618
  defaultValues: {
@@ -10658,7 +10632,7 @@ const Ha = ({
10658
10632
  }
10659
10633
  (async () => {
10660
10634
  try {
10661
- const [B, J, Y] = await Promise.all([
10635
+ const [B, J, H] = await Promise.all([
10662
10636
  n.getApplicantData(e),
10663
10637
  o.getCountries("", "en"),
10664
10638
  o.getCountries("", "en", 40)
@@ -10667,7 +10641,7 @@ const Ha = ({
10667
10641
  P(B);
10668
10642
  const ye = /* @__PURE__ */ new Set(), ke = J.map((A) => ({ value: A.abbreviation3 || A.abbreviation, label: A.name })).filter((A) => !A.value || ye.has(A.value) ? !1 : (ye.add(A.value), !0));
10669
10643
  V(ke);
10670
- const Ae = /* @__PURE__ */ new Set(), y = Y.filter((A) => A.countryCode).map((A) => ({ value: A.countryCode, label: `${A.countryCode} – ${A.name}` })).filter((A) => Ae.has(A.value) ? !1 : (Ae.add(A.value), !0));
10644
+ const Ae = /* @__PURE__ */ new Set(), y = H.filter((A) => A.countryCode).map((A) => ({ value: A.countryCode, label: `${A.countryCode} – ${A.name}` })).filter((A) => Ae.has(A.value) ? !1 : (Ae.add(A.value), !0));
10671
10645
  ce(y);
10672
10646
  const f = B.applicantRequestData;
10673
10647
  if (se({
@@ -10750,12 +10724,12 @@ const Ha = ({
10750
10724
  try {
10751
10725
  const B = await s.refreshSumsubToken(e), J = pt.parseProviderConfig(g, p, c);
10752
10726
  J.accessToken = B, J.onTokenRefresh = () => s.refreshSumsubToken(e);
10753
- const Y = pt.createProvider(g, J);
10754
- Y.onComplete((ye) => {
10727
+ const H = pt.createProvider(g, J);
10728
+ H.onComplete((ye) => {
10755
10729
  console.log("[Sumsub] Verification complete:", ye), t == null || t();
10756
- }), Y.onError((ye) => {
10730
+ }), H.onError((ye) => {
10757
10731
  console.error("[Sumsub] SDK error:", ye), (typeof ye == "string" ? ye : (ye == null ? void 0 : ye.message) || "Unknown error").toLowerCase().includes("expired") && (he(!0), $(r("identity.sessionExpiredRestart")));
10758
- }), await Y.initialize("sumsub-websdk-container"), console.log("[Sumsub] Web SDK launched"), K(Y);
10732
+ }), await H.initialize("sumsub-websdk-container"), console.log("[Sumsub] Web SDK launched"), W(H);
10759
10733
  } catch (B) {
10760
10734
  console.error("[Sumsub] Initialization error:", B), $(r("identity.failedToInitialize", { message: B.message || B })), String(B.message || B).toLowerCase().includes("expired") && he(!0);
10761
10735
  }
@@ -10769,12 +10743,12 @@ const Ha = ({
10769
10743
  console.log("[SardinAI] Initializing Risk SDK in background...");
10770
10744
  try {
10771
10745
  const B = pt.parseProviderConfig(g, p, c);
10772
- pt.createProvider(g, B).initialize().then(() => console.log("[SardinAI] Risk SDK initialized in background")).catch((Y) => console.warn("[SardinAI] Risk SDK init failed (non-blocking):", Y));
10746
+ pt.createProvider(g, B).initialize().then(() => console.log("[SardinAI] Risk SDK initialized in background")).catch((H) => console.warn("[SardinAI] Risk SDK init failed (non-blocking):", H));
10773
10747
  } catch (B) {
10774
10748
  console.warn("[SardinAI] Risk SDK setup failed (non-blocking):", B);
10775
10749
  }
10776
10750
  }
10777
- K({ type: "url", url: p.url });
10751
+ W({ type: "url", url: p.url });
10778
10752
  } catch (B) {
10779
10753
  console.error("[Identity] Invalid URL:", B), $(r("identity.invalidUrl")), he(!0);
10780
10754
  }
@@ -10785,12 +10759,12 @@ const Ha = ({
10785
10759
  try {
10786
10760
  const B = pt.parseProviderConfig(g, p, c), J = pt.createProvider(g, B);
10787
10761
  J.initialize().then(() => {
10788
- console.log("[SardinAI] Risk SDK initialized successfully"), K(J), setTimeout(() => t == null ? void 0 : t(), 2e3);
10789
- }).catch((Y) => {
10762
+ console.log("[SardinAI] Risk SDK initialized successfully"), W(J), setTimeout(() => t == null ? void 0 : t(), 2e3);
10763
+ }).catch((H) => {
10790
10764
  var ke;
10791
- console.error("[SardinAI] Failed to initialize:", Y);
10792
- const ye = ((ke = Y.message) == null ? void 0 : ke.toLowerCase()) || "";
10793
- ye.includes("expired") || ye.includes("invalid") || ye.includes("401") || ye.includes("400") ? (he(!0), $(r("identity.sessionExpiredOrInvalid"))) : $(r("identity.failedToInitialize", { message: Y.message }));
10765
+ console.error("[SardinAI] Failed to initialize:", H);
10766
+ const ye = ((ke = H.message) == null ? void 0 : ke.toLowerCase()) || "";
10767
+ ye.includes("expired") || ye.includes("invalid") || ye.includes("401") || ye.includes("400") ? (he(!0), $(r("identity.sessionExpiredOrInvalid"))) : $(r("identity.failedToInitialize", { message: H.message }));
10794
10768
  });
10795
10769
  } catch (B) {
10796
10770
  console.error("[SardinAI] Error creating provider:", B), $(r("identity.configurationError", { message: B.message }));
@@ -10800,9 +10774,9 @@ const Ha = ({
10800
10774
  try {
10801
10775
  $(null);
10802
10776
  const B = pt.parseProviderConfig(g, p, c), J = pt.createProvider(g, B);
10803
- b === et.Onfido && J.initialize("identity-container").catch((Y) => {
10804
- console.error("[Onfido] Initialization error:", Y), $(r("identity.failedToInitialize", { message: Y.message }));
10805
- }), K(J);
10777
+ b === et.Onfido && J.initialize("identity-container").catch((H) => {
10778
+ console.error("[Onfido] Initialization error:", H), $(r("identity.failedToInitialize", { message: H.message }));
10779
+ }), W(J);
10806
10780
  } catch (B) {
10807
10781
  console.error("[Identity] Provider setup error:", B), $(r("identity.setupError", { message: B.message }));
10808
10782
  }
@@ -10824,7 +10798,7 @@ const Ha = ({
10824
10798
  }
10825
10799
  }, q = async () => {
10826
10800
  try {
10827
- $(null), he(!1), K(null), console.log("[Identity] Restarting verification..."), await F(), Z(!0);
10801
+ $(null), he(!1), W(null), console.log("[Identity] Restarting verification..."), await F(), Z(!0);
10828
10802
  } catch (b) {
10829
10803
  console.error("Error restarting identity verification:", b), $(b.message || r("identity.failedToRestart"));
10830
10804
  }
@@ -10834,10 +10808,10 @@ const Ha = ({
10834
10808
  /* @__PURE__ */ i(Ge, { className: "my-8" }),
10835
10809
  /* @__PURE__ */ i("p", { className: "text-center text-gray-600 dark:text-gray-400 mt-4", children: r("identity.loadingIdentity") })
10836
10810
  ] }) });
10837
- if (S)
10811
+ if (w)
10838
10812
  return /* @__PURE__ */ i(me, { children: /* @__PURE__ */ i(ue, { children: /* @__PURE__ */ l("p", { className: "text-danger-500", children: [
10839
10813
  "Error: ",
10840
- S.message
10814
+ w.message
10841
10815
  ] }) }) });
10842
10816
  const ie = I ? a : () => Z(!1);
10843
10817
  if (M && (ae || re))
@@ -10985,12 +10959,12 @@ const Ha = ({
10985
10959
  allow: "camera; microphone; geolocation",
10986
10960
  title: "Identity Verification",
10987
10961
  onLoad: (B) => {
10988
- var J, Y, ye;
10962
+ var J, H, ye;
10989
10963
  console.log("[Identity] Iframe loaded");
10990
10964
  try {
10991
10965
  const ke = B.target, Ae = ke.contentDocument || ((J = ke.contentWindow) == null ? void 0 : J.document);
10992
10966
  if (Ae) {
10993
- const y = ((ye = (Y = Ae.body) == null ? void 0 : Y.textContent) == null ? void 0 : ye.toLowerCase()) || "";
10967
+ const y = ((ye = (H = Ae.body) == null ? void 0 : H.textContent) == null ? void 0 : ye.toLowerCase()) || "";
10994
10968
  (y.includes("expired") || y.includes("invalid") || y.includes("error")) && (console.warn("[Identity] Iframe shows expiration message"), he(!0), $(r("identity.linkExpired")));
10995
10969
  }
10996
10970
  } catch {
@@ -11026,22 +11000,22 @@ const Ha = ({
11026
11000
  }, qe = (b, B) => {
11027
11001
  if (!B && B !== 0) return "—";
11028
11002
  if (Te.has(b) && b !== "mobileCountryCode") {
11029
- const J = D.find((Y) => Y.value === B);
11003
+ const J = D.find((H) => H.value === B);
11030
11004
  return J ? J.label : String(B);
11031
11005
  }
11032
11006
  return String(B);
11033
11007
  }, it = ({ helpText: b }) => {
11034
- const [B, J] = w(!1), Y = be(null), [, ye] = w({ top: 0, left: 0 });
11008
+ const [B, J] = S(!1), H = be(null), [, ye] = S({ top: 0, left: 0 });
11035
11009
  return /* @__PURE__ */ l(wt, { children: [
11036
11010
  /* @__PURE__ */ i(
11037
11011
  "button",
11038
11012
  {
11039
11013
  type: "button",
11040
11014
  className: "metakyc-help-btn",
11041
- ref: Y,
11015
+ ref: H,
11042
11016
  onClick: () => {
11043
- if (Y.current) {
11044
- const Ae = Y.current.getBoundingClientRect();
11017
+ if (H.current) {
11018
+ const Ae = H.current.getBoundingClientRect();
11045
11019
  ye({ top: Ae.bottom + window.scrollY + 6, left: Ae.left + window.scrollX });
11046
11020
  }
11047
11021
  J(!0);
@@ -11128,7 +11102,7 @@ const Ha = ({
11128
11102
  /* @__PURE__ */ i("div", { style: { flex: 1, minWidth: 0 }, children: b }),
11129
11103
  /* @__PURE__ */ i("div", { style: { paddingTop: 24 }, children: /* @__PURE__ */ i(it, { helpText: B }) })
11130
11104
  ] }) : b, yt = (b, B) => {
11131
- const J = `cf-${B}`, Y = b.paramName ?? "", ye = G[Y];
11105
+ const J = `cf-${B}`, H = b.paramName ?? "", ye = G[H];
11132
11106
  if (b.customType === "br")
11133
11107
  return /* @__PURE__ */ i("div", { style: { ...Ce(b.colSpan), minHeight: "0.5rem" } }, J);
11134
11108
  if (b.customType === "paragraph")
@@ -11172,7 +11146,7 @@ const Ha = ({
11172
11146
  tt,
11173
11147
  {
11174
11148
  checked: !!ke,
11175
- onChange: (Ae) => Q((y) => ({ ...y, [Y]: String(Ae) })),
11149
+ onChange: (Ae) => Q((y) => ({ ...y, [H]: String(Ae) })),
11176
11150
  style: { marginTop: 2 }
11177
11151
  }
11178
11152
  ),
@@ -11186,9 +11160,9 @@ const Ha = ({
11186
11160
  }
11187
11161
  if (b.customType === "group_checkbox") {
11188
11162
  const ke = Array.isArray(ye) ? ye : ye ? [ye] : [], Ae = (y) => {
11189
- b.singleSelect ? Q((f) => ({ ...f, [Y]: ke[0] === y ? [] : [y] })) : Q((f) => ({
11163
+ b.singleSelect ? Q((f) => ({ ...f, [H]: ke[0] === y ? [] : [y] })) : Q((f) => ({
11190
11164
  ...f,
11191
- [Y]: ke.includes(y) ? ke.filter((R) => R !== y) : [...ke, y]
11165
+ [H]: ke.includes(y) ? ke.filter((R) => R !== y) : [...ke, y]
11192
11166
  }));
11193
11167
  };
11194
11168
  return /* @__PURE__ */ i("div", { style: Ce(b.colSpan), children: _e(
@@ -11217,10 +11191,10 @@ const Ha = ({
11217
11191
  "input",
11218
11192
  {
11219
11193
  type: "radio",
11220
- name: `rg-${Y}`,
11194
+ name: `rg-${H}`,
11221
11195
  value: ke.value,
11222
11196
  checked: ye === ke.value,
11223
- onChange: () => Q((Ae) => ({ ...Ae, [Y]: ke.value })),
11197
+ onChange: () => Q((Ae) => ({ ...Ae, [H]: ke.value })),
11224
11198
  style: { width: 16, height: 16, flexShrink: 0, marginTop: 2, accentColor: "var(--metakyc-primary, #6366f1)" }
11225
11199
  }
11226
11200
  ),
@@ -11232,16 +11206,16 @@ const Ha = ({
11232
11206
  /* @__PURE__ */ i(
11233
11207
  Le,
11234
11208
  {
11235
- label: oe(b.displayText, r) || oe(b.label, r) || Y,
11209
+ label: oe(b.displayText, r) || oe(b.label, r) || H,
11236
11210
  value: String(ye ?? ""),
11237
- onChange: (ke) => Q((Ae) => ({ ...Ae, [Y]: ke.target.value }))
11211
+ onChange: (ke) => Q((Ae) => ({ ...Ae, [H]: ke.target.value }))
11238
11212
  }
11239
11213
  ),
11240
11214
  b.helpText
11241
11215
  ) }, J);
11242
11216
  }, Ze = (b, B) => {
11243
11217
  if (b.isCustom) return yt(b, B);
11244
- const J = b.name ?? "", Y = gt[J], ye = oe(b.displayText, r) || (Y != null && Y.translationKey ? r(`fields.${Y.translationKey}`) : void 0) || (Y == null ? void 0 : Y.label) || J, ke = De[J] ?? "", Ae = J === "mobileCountryCode", y = !!(Y != null && Y.countriesType) && !Ae;
11218
+ const J = b.name ?? "", H = gt[J], ye = oe(b.displayText, r) || (H != null && H.translationKey ? r(`fields.${H.translationKey}`) : void 0) || (H == null ? void 0 : H.label) || J, ke = De[J] ?? "", Ae = J === "mobileCountryCode", y = !!(H != null && H.countriesType) && !Ae;
11245
11219
  return b.editable ? Ae ? /* @__PURE__ */ i("div", { style: Ce(b.colSpan ?? 2), children: _e(
11246
11220
  /* @__PURE__ */ i(
11247
11221
  ct,
@@ -11269,7 +11243,7 @@ const Ha = ({
11269
11243
  Le,
11270
11244
  {
11271
11245
  label: ye,
11272
- type: (Y == null ? void 0 : Y.type) === "date" ? "date" : (Y == null ? void 0 : Y.type) === "email" ? "email" : "text",
11246
+ type: (H == null ? void 0 : H.type) === "date" ? "date" : (H == null ? void 0 : H.type) === "email" ? "email" : "text",
11273
11247
  value: String(ke),
11274
11248
  onChange: (f) => se((R) => ({ ...R, [J]: f.target.value }))
11275
11249
  }
@@ -11292,7 +11266,7 @@ const Ha = ({
11292
11266
  /* @__PURE__ */ i("h2", { className: "text-lg font-bold", style: { color: "var(--metakyc-text-primary, #111827)" }, children: b }),
11293
11267
  B && /* @__PURE__ */ i("p", { className: "mt-1 text-sm", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: B })
11294
11268
  ] }),
11295
- /* @__PURE__ */ i(ue, { children: /* @__PURE__ */ i("div", { className: "metakyc-form-grid", children: te.fields.map((J, Y) => Ze(J, Y)) }) }),
11269
+ /* @__PURE__ */ i(ue, { children: /* @__PURE__ */ i("div", { className: "metakyc-form-grid", children: te.fields.map((J, H) => Ze(J, H)) }) }),
11296
11270
  /* @__PURE__ */ l(Oe, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
11297
11271
  a && /* @__PURE__ */ i(le, { type: "button", variant: "outline", onClick: a, children: r("common.back") }),
11298
11272
  /* @__PURE__ */ i(le, { type: "submit", isLoading: z, children: r("identity.confirmAndStart") })
@@ -11365,24 +11339,24 @@ const Ha = ({
11365
11339
  /* @__PURE__ */ i(le, { type: "submit", isLoading: z, children: r("identity.confirmAndStart") })
11366
11340
  ] })
11367
11341
  ] }) });
11368
- }, Zt = {
11342
+ }, Xt = {
11369
11343
  success: { color: "--metakyc-success", fallback: "#22c55e", bgVar: "--metakyc-success-bg" },
11370
11344
  error: { color: "--metakyc-danger", fallback: "#ef4444", bgVar: "--metakyc-danger-bg" },
11371
11345
  pending: { color: "--metakyc-warning", fallback: "#f59e0b", bgVar: "--metakyc-warning-bg" }
11372
11346
  };
11373
11347
  function Vt(e) {
11374
- const { color: t, fallback: a, bgVar: r } = Zt[e];
11348
+ const { color: t, fallback: a, bgVar: r } = Xt[e];
11375
11349
  return {
11376
11350
  backgroundColor: `var(${r}, color-mix(in srgb, var(${t}, ${a}) 10%, transparent))`,
11377
11351
  border: `1px solid color-mix(in srgb, var(${t}, ${a}) 30%, transparent)`
11378
11352
  };
11379
11353
  }
11380
11354
  function bt(e) {
11381
- const { color: t, fallback: a } = Zt[e];
11355
+ const { color: t, fallback: a } = Xt[e];
11382
11356
  return { color: `var(${t}, ${a})` };
11383
11357
  }
11384
- function Qa(e) {
11385
- const { color: t, fallback: a } = Zt[e];
11358
+ function Ya(e) {
11359
+ const { color: t, fallback: a } = Xt[e];
11386
11360
  return {
11387
11361
  backgroundColor: `color-mix(in srgb, var(${t}, ${a}) 15%, transparent)`
11388
11362
  };
@@ -11402,7 +11376,7 @@ const yi = ({
11402
11376
  "div",
11403
11377
  {
11404
11378
  className: "w-24 h-24 rounded-full flex items-center justify-center",
11405
- style: Qa(d.type),
11379
+ style: Ya(d.type),
11406
11380
  children: /* @__PURE__ */ i("span", { className: "text-5xl", style: bt(d.type), children: d.icon })
11407
11381
  }
11408
11382
  ) }),
@@ -11486,7 +11460,7 @@ const yi = ({
11486
11460
  d.type === "pending" && /* @__PURE__ */ i("div", { className: "text-center", children: /* @__PURE__ */ i("p", { className: "text-sm", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: s("status.checkBackLater") }) })
11487
11461
  ] })
11488
11462
  ] });
11489
- }, Xa = ({ config: e, className: t = "" }) => {
11463
+ }, Ha = ({ config: e, className: t = "" }) => {
11490
11464
  const { t: a } = je();
11491
11465
  return !(e != null && e.visible) || !(e != null && e.url) ? null : /* @__PURE__ */ i("div", { className: `metakyc-logo ${t}`, children: /* @__PURE__ */ i(
11492
11466
  "img",
@@ -11517,7 +11491,7 @@ const yi = ({
11517
11491
  className: "metakyc-header-title flex items-center text-xl font-bold",
11518
11492
  style: { color: "var(--metakyc-text-primary, #111827)" },
11519
11493
  children: [
11520
- d && /* @__PURE__ */ i(Xa, { config: r.logo }),
11494
+ d && /* @__PURE__ */ i(Ha, { config: r.logo }),
11521
11495
  d && u && /* @__PURE__ */ i(
11522
11496
  "span",
11523
11497
  {
@@ -11531,13 +11505,13 @@ const yi = ({
11531
11505
  ),
11532
11506
  c && /* @__PURE__ */ i("p", { className: "text-sm mt-1", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: c })
11533
11507
  ] });
11534
- }, Di = Gt(null), Pi = () => Qt(Di);
11508
+ }, Di = _t(null), Pi = () => Gt(Di);
11535
11509
  function At() {
11536
11510
  const e = Pi(), t = be(e);
11537
11511
  return t.current = e, t;
11538
11512
  }
11539
- const Za = ({ children: e }) => {
11540
- const [t, a] = w([]), [r, n] = w({}), o = be([]), s = ee((g) => {
11513
+ const _a = ({ children: e }) => {
11514
+ const [t, a] = S([]), [r, n] = S({}), o = be([]), s = ee((g) => {
11541
11515
  o.current = [...o.current.filter((p) => p.id !== g.id), g], a([...o.current]);
11542
11516
  }, []), c = ee((g) => {
11543
11517
  o.current = o.current.filter((p) => p.id !== g), a([...o.current]);
@@ -11546,13 +11520,13 @@ const Za = ({ children: e }) => {
11546
11520
  const z = { ...p, ...g };
11547
11521
  return Object.keys(g).some((x) => p[x] !== g[x]) ? z : p;
11548
11522
  });
11549
- }, []), u = He(
11523
+ }, []), u = Ye(
11550
11524
  () => ({ actions: t, registerAction: s, unregisterAction: c, sdkState: r, updateSdkState: d }),
11551
11525
  [t, s, c, r, d]
11552
11526
  );
11553
11527
  return /* @__PURE__ */ i(Di.Provider, { value: u, children: e });
11554
- }, hi = 2147483640, Ja = () => {
11555
- const e = Pi(), [t, a] = w(!1), [r, n] = w("actions"), [o, s] = w(null), c = be(null);
11528
+ }, hi = 2147483640, Ga = () => {
11529
+ const e = Pi(), [t, a] = S(!1), [r, n] = S("actions"), [o, s] = S(null), c = be(null);
11556
11530
  if (Ne(() => {
11557
11531
  if (!t) return;
11558
11532
  const h = (M) => {
@@ -11562,7 +11536,7 @@ const Za = ({ children: e }) => {
11562
11536
  clearTimeout(L), document.removeEventListener("mousedown", h);
11563
11537
  };
11564
11538
  }, [t]), !e) return null;
11565
- const { actions: d, sdkState: u } = e, g = d.filter((h) => h.group === "form"), p = d.filter((h) => h.group === "workflow"), z = d.filter((h) => !h.group || h.group === "general"), S = async (h, L) => {
11539
+ const { actions: d, sdkState: u } = e, g = d.filter((h) => h.group === "form"), p = d.filter((h) => h.group === "workflow"), z = d.filter((h) => !h.group || h.group === "general"), w = async (h, L) => {
11566
11540
  s(h);
11567
11541
  try {
11568
11542
  await L();
@@ -11612,7 +11586,7 @@ const Za = ({ children: e }) => {
11612
11586
  display: "flex",
11613
11587
  borderBottom: "1px solid rgba(165,180,252,0.1)",
11614
11588
  background: "#181825"
11615
- }, K = (h) => ({
11589
+ }, W = (h) => ({
11616
11590
  flex: 1,
11617
11591
  padding: "10px 0",
11618
11592
  border: "none",
@@ -11654,7 +11628,7 @@ const Za = ({ children: e }) => {
11654
11628
  "button",
11655
11629
  {
11656
11630
  style: P(o === M.id),
11657
- onClick: () => S(M.id, M.handler),
11631
+ onClick: () => w(M.id, M.handler),
11658
11632
  disabled: o !== null,
11659
11633
  onMouseEnter: (Z) => {
11660
11634
  Z.currentTarget.style.background = "rgba(165,180,252,0.06)";
@@ -11701,8 +11675,8 @@ const Za = ({ children: e }) => {
11701
11675
  )
11702
11676
  ] }),
11703
11677
  /* @__PURE__ */ l("div", { style: C, children: [
11704
- /* @__PURE__ */ i("button", { style: K(r === "actions"), onClick: () => n("actions"), children: "Actions" }),
11705
- /* @__PURE__ */ i("button", { style: K(r === "state"), onClick: () => n("state"), children: "State" })
11678
+ /* @__PURE__ */ i("button", { style: W(r === "actions"), onClick: () => n("actions"), children: "Actions" }),
11679
+ /* @__PURE__ */ i("button", { style: W(r === "state"), onClick: () => n("state"), children: "State" })
11706
11680
  ] }),
11707
11681
  /* @__PURE__ */ i("div", { style: { flex: 1, overflowY: "auto", overflowX: "hidden" }, children: r === "actions" ? /* @__PURE__ */ l("div", { style: { paddingBottom: "8px" }, children: [
11708
11682
  V("Form", g),
@@ -11745,7 +11719,7 @@ const Za = ({ children: e }) => {
11745
11719
  )
11746
11720
  ] });
11747
11721
  return typeof document > "u" ? null : Mt(ce, document.body);
11748
- }, en = ["James", "Emma", "Alexander", "Sophia", "Michael", "Olivia", "Daniel", "Isabella", "Lukas", "Anna"], tn = ["Anderson", "Mueller", "Johnson", "Williams", "Brown", "Schmidt", "Garcia", "Chen", "Huber", "Wagner"], rn = ["Acme Corp", "Global Holdings Ltd", "TechVentures AG", "Alpine Solutions GmbH", "Meridian Capital LLC", "Nordic Innovations AS"], Dt = ["Vienna", "Zurich", "Munich", "Berlin", "London", "Amsterdam", "Paris", "Milan"], Pt = ["AUT", "CHE", "DEU", "GBR", "NLD", "FRA", "ITA"], _t = ["Main Street", "Oak Avenue", "Elm Road", "Park Lane", "Lake Boulevard", "Ringstrasse", "Bahnhofstrasse"], an = ["Software Engineer", "Financial Analyst", "Doctor", "Teacher", "Lawyer", "Architect", "Accountant"];
11722
+ }, Qa = ["James", "Emma", "Alexander", "Sophia", "Michael", "Olivia", "Daniel", "Isabella", "Lukas", "Anna"], Xa = ["Anderson", "Mueller", "Johnson", "Williams", "Brown", "Schmidt", "Garcia", "Chen", "Huber", "Wagner"], Za = ["Acme Corp", "Global Holdings Ltd", "TechVentures AG", "Alpine Solutions GmbH", "Meridian Capital LLC", "Nordic Innovations AS"], Dt = ["Vienna", "Zurich", "Munich", "Berlin", "London", "Amsterdam", "Paris", "Milan"], Pt = ["AUT", "CHE", "DEU", "GBR", "NLD", "FRA", "ITA"], Ht = ["Main Street", "Oak Avenue", "Elm Road", "Park Lane", "Lake Boulevard", "Ringstrasse", "Bahnhofstrasse"], Ja = ["Software Engineer", "Financial Analyst", "Doctor", "Teacher", "Lawyer", "Architect", "Accountant"];
11749
11723
  function Me(e) {
11750
11724
  return e[Math.floor(Math.random() * e.length)];
11751
11725
  }
@@ -11756,15 +11730,15 @@ function Mi(e, t) {
11756
11730
  const a = e + Math.floor(Math.random() * (t - e)), r = String(1 + Math.floor(Math.random() * 12)).padStart(2, "0"), n = String(1 + Math.floor(Math.random() * 28)).padStart(2, "0");
11757
11731
  return `${a}-${r}-${n}`;
11758
11732
  }
11759
- function nn() {
11760
- const e = Me(en), t = Me(tn), a = Me(Pt);
11733
+ function en() {
11734
+ const e = Me(Qa), t = Me(Xa), a = Me(Pt);
11761
11735
  return {
11762
11736
  firstName: e,
11763
11737
  lastName: t,
11764
11738
  email: `${e.toLowerCase()}.${t.toLowerCase()}@example.com`,
11765
11739
  phonenumber: `+43${xt(9)}`,
11766
11740
  dateOfBirth: Mi(1970, 2e3),
11767
- street: Me(_t),
11741
+ street: Me(Ht),
11768
11742
  streetNumber: String(1 + Math.floor(Math.random() * 200)),
11769
11743
  zip: xt(5),
11770
11744
  city: Me(Dt),
@@ -11773,7 +11747,7 @@ function nn() {
11773
11747
  placeOfBirth: Me(Dt),
11774
11748
  countryOfBirth: Me(Pt),
11775
11749
  taxCountry: a,
11776
- occupation: Me(an),
11750
+ occupation: Me(Ja),
11777
11751
  educationLevel: Me(["Bachelor", "Master", "PhD", "High School"]),
11778
11752
  taxNumber: xt(10),
11779
11753
  defaultLanguage: "EN",
@@ -11782,21 +11756,21 @@ function nn() {
11782
11756
  title: Me(["Mr", "Ms", "Dr", "Prof"])
11783
11757
  };
11784
11758
  }
11785
- function on() {
11786
- const e = Me(rn), t = e.split(" ")[0].toLowerCase();
11759
+ function tn() {
11760
+ const e = Me(Za), t = e.split(" ")[0].toLowerCase();
11787
11761
  return {
11788
11762
  companyName: e,
11789
11763
  email: `info@${t}.com`,
11790
11764
  phone: `+43${xt(9)}`,
11791
11765
  registrationNumber: `FN ${xt(6)}`,
11792
11766
  countryResidence: Me(Pt),
11793
- legalAddress: `${Me(_t)} ${1 + Math.floor(Math.random() * 100)}`,
11767
+ legalAddress: `${Me(Ht)} ${1 + Math.floor(Math.random() * 100)}`,
11794
11768
  incorporatedOn: Mi(2005, 2023),
11795
11769
  taxId: `ATU${xt(8)}`,
11796
11770
  website: `https://www.${t}.com`,
11797
11771
  city: Me(Dt),
11798
11772
  postalCode: xt(5),
11799
- street: Me(_t),
11773
+ street: Me(Ht),
11800
11774
  streetNumber: String(1 + Math.floor(Math.random() * 100)),
11801
11775
  registrationLocation: Me(Dt),
11802
11776
  addressCountry: Me(Pt)
@@ -11806,7 +11780,7 @@ const zt = ["firstName", "lastName", "email", "phonenumber", "dateOfBirth"];
11806
11780
  function St(e) {
11807
11781
  return e == null || e === "" || Array.isArray(e) && e.length === 0;
11808
11782
  }
11809
- const sn = {
11783
+ const rn = {
11810
11784
  width: "16px",
11811
11785
  height: "16px",
11812
11786
  minWidth: "16px",
@@ -11939,23 +11913,23 @@ const sn = {
11939
11913
  ),
11940
11914
  typeof document < "u" && n ? Mt(n, document.body) : null
11941
11915
  ] });
11942
- }, ln = ({
11916
+ }, an = ({
11943
11917
  workflowKey: e,
11944
11918
  externalRefId: t,
11945
11919
  applicantId: a,
11946
11920
  onSuccess: r,
11947
11921
  onCancel: n
11948
11922
  }) => {
11949
- var f, R, A, W, X, ne, ve;
11923
+ var f, R, A, K, X, ne, ve;
11950
11924
  const { config: o, baseInformationService: s, currentTheme: c } = Ee(), { createApplicant: d, getApplicantData: u, isLoading: g } = Ri(), { t: p } = je(), z = e || ((f = o.applicantForm) == null ? void 0 : f.workflowKey);
11951
11925
  if (!z)
11952
11926
  throw new Error(
11953
11927
  "workflowKey is required. Provide it either as a prop to CreateApplicantForm or set it in config.applicantForm.workflowKey"
11954
11928
  );
11955
- const S = t || ((R = o.applicantForm) == null ? void 0 : R.externalRefId) || "", x = ((A = o.applicantForm) == null ? void 0 : A.email) || "", F = ((W = o.applicantForm) == null ? void 0 : W.hiddenValues) || {}, C = ((X = o.applicantForm) == null ? void 0 : X.initialValues) || {}, U = (((ne = o.applicantForm) == null ? void 0 : ne.fieldLabelMode) || (c == null ? void 0 : c.fieldLabelMode) || "label") !== "placeholder", P = He(
11929
+ const w = t || ((R = o.applicantForm) == null ? void 0 : R.externalRefId) || "", x = ((A = o.applicantForm) == null ? void 0 : A.email) || "", F = ((K = o.applicantForm) == null ? void 0 : K.hiddenValues) || {}, C = ((X = o.applicantForm) == null ? void 0 : X.initialValues) || {}, U = (((ne = o.applicantForm) == null ? void 0 : ne.fieldLabelMode) || (c == null ? void 0 : c.fieldLabelMode) || "label") !== "placeholder", P = Ye(
11956
11930
  () => c != null && c.applicantFormPages && c.applicantFormPages.length > 0 ? c.applicantFormPages : null,
11957
11931
  [c == null ? void 0 : c.applicantFormPages]
11958
- ), D = He(() => {
11932
+ ), D = Ye(() => {
11959
11933
  const m = new Set(zt), j = c == null ? void 0 : c.applicantFormRequiredFields;
11960
11934
  if (j) for (const E of j) m.add(E);
11961
11935
  if (P)
@@ -11963,7 +11937,7 @@ const sn = {
11963
11937
  for (const k of E.fields)
11964
11938
  !k.isCustom && k.name && k.required && m.add(k.name);
11965
11939
  return Array.from(m);
11966
- }, [c == null ? void 0 : c.applicantFormRequiredFields, P]), V = He(() => {
11940
+ }, [c == null ? void 0 : c.applicantFormRequiredFields, P]), V = Ye(() => {
11967
11941
  var E;
11968
11942
  if (P) {
11969
11943
  const k = P.flatMap((N) => N.fields).filter((N) => !N.isCustom && N.name).map((N) => N.name), v = new Set(k);
@@ -11982,7 +11956,7 @@ const sn = {
11982
11956
  "countryOfBirth",
11983
11957
  "mobileCountryCode",
11984
11958
  "otherNationality"
11985
- ]), ce = He(() => {
11959
+ ]), ce = Ye(() => {
11986
11960
  var j, E;
11987
11961
  const m = /* @__PURE__ */ new Set();
11988
11962
  if (P)
@@ -11993,7 +11967,7 @@ const sn = {
11993
11967
  for (const k of V)
11994
11968
  _.has(k) && m.add((E = gt[k]) == null ? void 0 : E.countriesType);
11995
11969
  return m.size === 0 && m.add(void 0), Array.from(m);
11996
- }, [V, P]), [h, L] = w({}), [M, Z] = w(!0), ae = be(/* @__PURE__ */ new Set()), $ = be(/* @__PURE__ */ new Set());
11970
+ }, [V, P]), [h, L] = S({}), [M, Z] = S(!0), ae = be(/* @__PURE__ */ new Set()), $ = be(/* @__PURE__ */ new Set());
11997
11971
  Ne(() => {
11998
11972
  if (!c) return;
11999
11973
  const m = ce.filter((k) => {
@@ -12062,7 +12036,7 @@ const sn = {
12062
12036
  Object.entries(F).filter(([m]) => m in he)
12063
12037
  ), De = Object.fromEntries(
12064
12038
  Object.entries(C).filter(([m]) => m in he)
12065
- ), [se, G] = w({
12039
+ ), [se, G] = S({
12066
12040
  workflowKey: z,
12067
12041
  firstName: "",
12068
12042
  lastName: "",
@@ -12070,7 +12044,7 @@ const sn = {
12070
12044
  email: x,
12071
12045
  dateOfBirth: "",
12072
12046
  phonenumber: "",
12073
- externalRefId: S,
12047
+ externalRefId: w,
12074
12048
  mobileCountryCode: "",
12075
12049
  street: "",
12076
12050
  streetNumber: "",
@@ -12091,7 +12065,7 @@ const sn = {
12091
12065
  ...De
12092
12066
  }), Q = Object.fromEntries(
12093
12067
  Object.entries(F).filter(([m]) => !(m in fe) && m !== "externalRefId" && m !== "workflowKey")
12094
- ), [te, I] = w({ ...Q }), [T, O] = w(!!a);
12068
+ ), [te, I] = S({ ...Q }), [T, O] = S(!!a);
12095
12069
  Ne(() => {
12096
12070
  if (!a) return;
12097
12071
  let m = !1;
@@ -12137,8 +12111,8 @@ const sn = {
12137
12111
  m = !0;
12138
12112
  };
12139
12113
  }, [a]);
12140
- const [Se, xe] = w(0), [q, ie] = w({}), [Te, Ce] = w(null), [qe, it] = w(!1), _e = At(), yt = ee(() => {
12141
- const m = nn(), j = (E) => {
12114
+ const [Se, xe] = S(0), [q, ie] = S({}), [Te, Ce] = S(null), [qe, it] = S(!1), _e = At(), yt = ee(() => {
12115
+ const m = en(), j = (E) => {
12142
12116
  var ge;
12143
12117
  const k = (ge = gt[E]) == null ? void 0 : ge.countriesType, v = k != null ? String(k) : "all", N = (h[v] || []).filter((pe) => pe.value);
12144
12118
  if (N.length)
@@ -12207,7 +12181,7 @@ const sn = {
12207
12181
  const m = P[Se];
12208
12182
  if (mt(m) || m.conditionalOn && m.conditionalMode === "block" && !Je(m)) return;
12209
12183
  if (m.conditionalOn && !Je(m)) {
12210
- ie({}), rt >= 0 ? xe(rt) : await Y();
12184
+ ie({}), rt >= 0 ? xe(rt) : await H();
12211
12185
  return;
12212
12186
  }
12213
12187
  const j = B(m);
@@ -12215,8 +12189,8 @@ const sn = {
12215
12189
  ie(j);
12216
12190
  return;
12217
12191
  }
12218
- ie({}), rt >= 0 ? xe(rt) : await Y();
12219
- }, Y = async () => {
12192
+ ie({}), rt >= 0 ? xe(rt) : await H();
12193
+ }, H = async () => {
12220
12194
  if (P) {
12221
12195
  let m = {};
12222
12196
  for (const j of P)
@@ -12292,16 +12266,16 @@ const sn = {
12292
12266
  Ce(p("validation.fieldRequired", { field: k }));
12293
12267
  return;
12294
12268
  }
12295
- await Y();
12269
+ await H();
12296
12270
  }, ke = (m, j, E, k, v) => {
12297
- var Jt;
12271
+ var Zt;
12298
12272
  const N = gt[m];
12299
12273
  if (!N) return null;
12300
12274
  const ge = D.includes(m), pe = q[m], Be = oe(E, p) || (N.translationKey ? p(`fields.${N.translationKey}`) : void 0) || N.label, Ve = m in De, Ie = j ?? m, Qe = { required: ge }, nt = v ? v !== "placeholder" : U, ut = nt ? Be : void 0;
12301
12275
  switch (N.type) {
12302
12276
  case "select":
12303
12277
  if (m === "country" || m === "nationality" || m === "taxCountry" || m === "countryOfBirth" || m === "mobileCountryCode") {
12304
- const Ke = re(m, k);
12278
+ const Ue = re(m, k);
12305
12279
  return /* @__PURE__ */ i(
12306
12280
  ct,
12307
12281
  {
@@ -12309,7 +12283,7 @@ const sn = {
12309
12283
  label: ut,
12310
12284
  value: se[m] || "",
12311
12285
  onChange: (ht) => Ze(m, ht),
12312
- options: [{ value: "", label: nt ? p("placeholders.selectCountry") : Be }, ...Ke],
12286
+ options: [{ value: "", label: nt ? p("placeholders.selectCountry") : Be }, ...Ue],
12313
12287
  disabled: M,
12314
12288
  readOnly: Ve,
12315
12289
  error: pe
@@ -12323,8 +12297,8 @@ const sn = {
12323
12297
  {
12324
12298
  ...Qe,
12325
12299
  label: ut,
12326
- value: ((Jt = se[m]) == null ? void 0 : Jt.toString()) || "",
12327
- onChange: (Ke) => Ze(m, Ke ? Number(Ke) : null),
12300
+ value: ((Zt = se[m]) == null ? void 0 : Zt.toString()) || "",
12301
+ onChange: (Ue) => Ze(m, Ue ? Number(Ue) : null),
12328
12302
  options: [
12329
12303
  { value: "", label: nt ? p("placeholders.selectSalutation") : Be },
12330
12304
  { value: Et.Male.toString(), label: p("gender.male") },
@@ -12337,7 +12311,7 @@ const sn = {
12337
12311
  Ie
12338
12312
  );
12339
12313
  if (m === "defaultLanguage") {
12340
- const Ke = c != null && c.allowedLanguages && c.allowedLanguages.length > 0 ? ti.filter((ht) => c.allowedLanguages.includes(ht.value)) : ti;
12314
+ const Ue = c != null && c.allowedLanguages && c.allowedLanguages.length > 0 ? ei.filter((ht) => c.allowedLanguages.includes(ht.value)) : ei;
12341
12315
  return /* @__PURE__ */ i(
12342
12316
  ct,
12343
12317
  {
@@ -12345,7 +12319,7 @@ const sn = {
12345
12319
  label: ut,
12346
12320
  value: se[m] || "",
12347
12321
  onChange: (ht) => Ze(m, ht),
12348
- options: [{ value: "", label: nt ? p("placeholders.selectLanguage") : Be }, ...Ke],
12322
+ options: [{ value: "", label: nt ? p("placeholders.selectLanguage") : Be }, ...Ue],
12349
12323
  readOnly: Ve,
12350
12324
  error: pe
12351
12325
  },
@@ -12355,15 +12329,15 @@ const sn = {
12355
12329
  return null;
12356
12330
  case "multiselect":
12357
12331
  if (m === "otherNationality") {
12358
- const Ke = re(m, k);
12332
+ const Ue = re(m, k);
12359
12333
  return /* @__PURE__ */ i(
12360
- va,
12334
+ fa,
12361
12335
  {
12362
12336
  ...Qe,
12363
12337
  label: ut,
12364
12338
  value: se[m] || [],
12365
12339
  onChange: (ht) => Ze(m, ht),
12366
- options: Ke,
12340
+ options: Ue,
12367
12341
  placeholder: nt ? p("placeholders.selectOtherNationalities") : Be,
12368
12342
  disabled: M,
12369
12343
  readOnly: Ve
@@ -12381,7 +12355,7 @@ const sn = {
12381
12355
  label: ut,
12382
12356
  placeholder: nt ? void 0 : Be,
12383
12357
  value: se[m] || "",
12384
- onChange: (Ke) => Ze(m, Ke.target.value),
12358
+ onChange: (Ue) => Ze(m, Ue.target.value),
12385
12359
  readOnly: Ve,
12386
12360
  error: pe
12387
12361
  },
@@ -12396,7 +12370,7 @@ const sn = {
12396
12370
  label: ut,
12397
12371
  placeholder: nt ? void 0 : Be,
12398
12372
  value: se[m] || "",
12399
- onChange: (Ke) => Ze(m, Ke.target.value),
12373
+ onChange: (Ue) => Ze(m, Ue.target.value),
12400
12374
  readOnly: Ve,
12401
12375
  error: pe
12402
12376
  },
@@ -12411,7 +12385,7 @@ const sn = {
12411
12385
  label: ut,
12412
12386
  placeholder: nt ? void 0 : Be,
12413
12387
  value: se[m] || "",
12414
- onChange: (Ke) => Ze(m, Ke.target.value),
12388
+ onChange: (Ue) => Ze(m, Ue.target.value),
12415
12389
  readOnly: Ve,
12416
12390
  error: pe
12417
12391
  },
@@ -12426,7 +12400,7 @@ const sn = {
12426
12400
  label: ut,
12427
12401
  placeholder: nt ? void 0 : Be,
12428
12402
  value: se[m] || "",
12429
- onChange: (Ke) => Ze(m, Ke.target.value),
12403
+ onChange: (Ue) => Ze(m, Ue.target.value),
12430
12404
  readOnly: Ve,
12431
12405
  error: pe
12432
12406
  },
@@ -12648,7 +12622,7 @@ const sn = {
12648
12622
  name: `radio-group-${m.paramName}-${j}`,
12649
12623
  className: "metakyc-option-input",
12650
12624
  onClick: (ge) => ge.stopPropagation(),
12651
- style: sn
12625
+ style: rn
12652
12626
  }
12653
12627
  ),
12654
12628
  /* @__PURE__ */ i(
@@ -12804,7 +12778,7 @@ const sn = {
12804
12778
  type: "button",
12805
12779
  isLoading: qe || g,
12806
12780
  disabled: Be,
12807
- onClick: E ? Y : J,
12781
+ onClick: E ? H : J,
12808
12782
  children: Ve
12809
12783
  }
12810
12784
  )
@@ -12833,22 +12807,22 @@ const sn = {
12833
12807
  function qt(e) {
12834
12808
  return e == null || e === "" || Array.isArray(e) && e.length === 0;
12835
12809
  }
12836
- const cn = ({
12810
+ const nn = ({
12837
12811
  workflowKey: e,
12838
12812
  externalRefId: t,
12839
12813
  onSuccess: a,
12840
12814
  onCancel: r
12841
12815
  }) => {
12842
- var B, J, Y, ye, ke, Ae;
12816
+ var B, J, H, ye, ke, Ae;
12843
12817
  const { config: n, baseInformationService: o, currentTheme: s } = Ee(), { createCompanyApplicant: c, isLoading: d } = Ri(), { t: u } = je(), g = e || ((B = n.applicantForm) == null ? void 0 : B.workflowKey);
12844
12818
  if (!g)
12845
12819
  throw new Error(
12846
12820
  "workflowKey is required. Provide it either as a prop to CreateCompanyApplicantForm or set it in config.applicantForm.workflowKey"
12847
12821
  );
12848
- const p = t || ((J = n.applicantForm) == null ? void 0 : J.externalRefId) || "", z = ((Y = n.applicantForm) == null ? void 0 : Y.email) || "", S = ((ye = n.applicantForm) == null ? void 0 : ye.initialValues) || {}, F = (((ke = n.applicantForm) == null ? void 0 : ke.fieldLabelMode) || (s == null ? void 0 : s.fieldLabelMode) || "label") !== "placeholder", C = He(
12822
+ const p = t || ((J = n.applicantForm) == null ? void 0 : J.externalRefId) || "", z = ((H = n.applicantForm) == null ? void 0 : H.email) || "", w = ((ye = n.applicantForm) == null ? void 0 : ye.initialValues) || {}, F = (((ke = n.applicantForm) == null ? void 0 : ke.fieldLabelMode) || (s == null ? void 0 : s.fieldLabelMode) || "label") !== "placeholder", C = Ye(
12849
12823
  () => s != null && s.companyFormPages && s.companyFormPages.length > 0 ? s.companyFormPages : null,
12850
12824
  [s == null ? void 0 : s.companyFormPages]
12851
- ), K = He(() => {
12825
+ ), W = Ye(() => {
12852
12826
  const y = new Set(vi), f = s == null ? void 0 : s.companyFormRequiredFields;
12853
12827
  if (f) for (const R of f) y.add(R);
12854
12828
  if (C)
@@ -12856,7 +12830,7 @@ const cn = ({
12856
12830
  for (const A of R.fields)
12857
12831
  !A.isCustom && A.name && A.required && y.add(A.name);
12858
12832
  return Array.from(y);
12859
- }, [s == null ? void 0 : s.companyFormRequiredFields, C]), U = He(() => {
12833
+ }, [s == null ? void 0 : s.companyFormRequiredFields, C]), U = Ye(() => {
12860
12834
  var y;
12861
12835
  if (C) {
12862
12836
  const f = C.flatMap((A) => A.fields).filter((A) => !A.isCustom && A.name).map((A) => A.name), R = new Set(f);
@@ -12864,26 +12838,26 @@ const cn = ({
12864
12838
  return Array.from(R);
12865
12839
  }
12866
12840
  return (y = n.applicantForm) != null && y.visibleFields ? n.applicantForm.visibleFields : s != null && s.companyFormVisibleFields && s.companyFormVisibleFields.length > 0 ? s.companyFormVisibleFields : Xi;
12867
- }, [(Ae = n.applicantForm) == null ? void 0 : Ae.visibleFields, s == null ? void 0 : s.companyFormVisibleFields, C]), P = /* @__PURE__ */ new Set(["countryResidence", "addressCountry"]), D = He(() => {
12841
+ }, [(Ae = n.applicantForm) == null ? void 0 : Ae.visibleFields, s == null ? void 0 : s.companyFormVisibleFields, C]), P = /* @__PURE__ */ new Set(["countryResidence", "addressCountry"]), D = Ye(() => {
12868
12842
  var f, R;
12869
12843
  const y = /* @__PURE__ */ new Set();
12870
12844
  if (C)
12871
12845
  for (const A of C)
12872
- for (const W of A.fields)
12873
- !W.isCustom && W.name && P.has(W.name) && y.add(W.countriesType ?? ((f = vt[W.name]) == null ? void 0 : f.countriesType));
12846
+ for (const K of A.fields)
12847
+ !K.isCustom && K.name && P.has(K.name) && y.add(K.countriesType ?? ((f = vt[K.name]) == null ? void 0 : f.countriesType));
12874
12848
  else
12875
12849
  for (const A of U)
12876
12850
  P.has(A) && y.add((R = vt[A]) == null ? void 0 : R.countriesType);
12877
12851
  return y.size === 0 && y.add(void 0), Array.from(y);
12878
- }, [U, C]), [V, _] = w({}), [ce, h] = w(!0), L = be(/* @__PURE__ */ new Set()), M = be(/* @__PURE__ */ new Set());
12852
+ }, [U, C]), [V, _] = S({}), [ce, h] = S(!0), L = be(/* @__PURE__ */ new Set()), M = be(/* @__PURE__ */ new Set());
12879
12853
  Ne(() => {
12880
12854
  if (!s) return;
12881
12855
  const y = D.filter((A) => {
12882
- const W = A != null ? String(A) : "all";
12883
- return !M.current.has(W) && !L.current.has(W);
12856
+ const K = A != null ? String(A) : "all";
12857
+ return !M.current.has(K) && !L.current.has(K);
12884
12858
  });
12885
12859
  if (y.length === 0) {
12886
- D.every((W) => M.current.has(W != null ? String(W) : "all")) && h(!1);
12860
+ D.every((K) => M.current.has(K != null ? String(K) : "all")) && h(!1);
12887
12861
  return;
12888
12862
  }
12889
12863
  h(!0);
@@ -12891,22 +12865,22 @@ const cn = ({
12891
12865
  f.forEach((A) => L.current.add(A)), (async () => {
12892
12866
  try {
12893
12867
  const A = await Promise.all(
12894
- y.map(async (W) => {
12895
- const X = W != null ? String(W) : "all", ne = await o.getCountries("", n.locale || "en", W), ve = /* @__PURE__ */ new Set(), m = ne.map((j) => ({ value: j.abbreviation3 || j.abbreviation, label: j.name })).filter((j) => !j.value || ve.has(j.value) ? !1 : (ve.add(j.value), !0));
12868
+ y.map(async (K) => {
12869
+ const X = K != null ? String(K) : "all", ne = await o.getCountries("", n.locale || "en", K), ve = /* @__PURE__ */ new Set(), m = ne.map((j) => ({ value: j.abbreviation3 || j.abbreviation, label: j.name })).filter((j) => !j.value || ve.has(j.value) ? !1 : (ve.add(j.value), !0));
12896
12870
  return M.current.add(X), L.current.delete(X), [X, m];
12897
12871
  })
12898
12872
  );
12899
- _((W) => ({ ...W, ...Object.fromEntries(A) }));
12873
+ _((K) => ({ ...K, ...Object.fromEntries(A) }));
12900
12874
  } catch (A) {
12901
- f.forEach((W) => L.current.delete(W)), console.error("Failed to load countries:", A);
12875
+ f.forEach((K) => L.current.delete(K)), console.error("Failed to load countries:", A);
12902
12876
  } finally {
12903
- D.every((W) => M.current.has(W != null ? String(W) : "all")) && h(!1);
12877
+ D.every((K) => M.current.has(K != null ? String(K) : "all")) && h(!1);
12904
12878
  }
12905
12879
  })();
12906
12880
  }, [D, s]);
12907
12881
  const Z = (y, f) => {
12908
- var W;
12909
- const R = f ?? ((W = vt[y]) == null ? void 0 : W.countriesType), A = R != null ? String(R) : "all";
12882
+ var K;
12883
+ const R = f ?? ((K = vt[y]) == null ? void 0 : K.countriesType), A = R != null ? String(R) : "all";
12910
12884
  return V[A] || [];
12911
12885
  }, ae = {
12912
12886
  companyName: 1,
@@ -12929,8 +12903,8 @@ const cn = ({
12929
12903
  addressCountry: 1,
12930
12904
  lei: 1
12931
12905
  }, $ = Object.fromEntries(
12932
- Object.entries(S).filter(([y]) => y in ae)
12933
- ), [re, he] = w({
12906
+ Object.entries(w).filter(([y]) => y in ae)
12907
+ ), [re, he] = S({
12934
12908
  workflowKey: g,
12935
12909
  companyName: "",
12936
12910
  email: z,
@@ -12953,29 +12927,29 @@ const cn = ({
12953
12927
  lei: "",
12954
12928
  externalRefId: p,
12955
12929
  ...$
12956
- }), [fe, De] = w({}), [se, G] = w(0), [Q, te] = w({}), [I, T] = w(null), [O, Se] = w(!1), xe = At(), q = ee(() => {
12957
- const y = on(), f = (R) => {
12930
+ }), [fe, De] = S({}), [se, G] = S(0), [Q, te] = S({}), [I, T] = S(null), [O, Se] = S(!1), xe = At(), q = ee(() => {
12931
+ const y = tn(), f = (R) => {
12958
12932
  var ne;
12959
- const A = (ne = vt[R]) == null ? void 0 : ne.countriesType, W = A != null ? String(A) : "all", X = (V[W] || []).filter((ve) => ve.value);
12933
+ const A = (ne = vt[R]) == null ? void 0 : ne.countriesType, K = A != null ? String(A) : "all", X = (V[K] || []).filter((ve) => ve.value);
12960
12934
  if (X.length)
12961
12935
  return X[Math.floor(Math.random() * X.length)].value;
12962
12936
  };
12963
12937
  he((R) => {
12964
12938
  const A = { ...R };
12965
- for (const [W, X] of Object.entries(y))
12966
- if (W in R && (R[W] === "" || R[W] === null || R[W] === void 0))
12967
- if (P.has(W)) {
12968
- const ne = f(W);
12969
- ne && (A[W] = ne);
12939
+ for (const [K, X] of Object.entries(y))
12940
+ if (K in R && (R[K] === "" || R[K] === null || R[K] === void 0))
12941
+ if (P.has(K)) {
12942
+ const ne = f(K);
12943
+ ne && (A[K] = ne);
12970
12944
  } else
12971
- A[W] = X;
12945
+ A[K] = X;
12972
12946
  return A;
12973
12947
  }), C && De((R) => {
12974
- var W, X;
12948
+ var K, X;
12975
12949
  const A = { ...R };
12976
12950
  for (const ne of C)
12977
12951
  for (const ve of ne.fields)
12978
- !ve.isCustom || !ve.paramName || A[ve.paramName] || (ve.customType === "checkbox" || ve.customType === "link_checkbox" ? A[ve.paramName] = "true" : ve.customType === "radio_group" && ((W = ve.options) != null && W.length) || ve.customType === "group_checkbox" && ((X = ve.options) != null && X.length) ? A[ve.paramName] = ve.options[0].value : ve.customType === "text" && (A[ve.paramName] = "Sample value"));
12952
+ !ve.isCustom || !ve.paramName || A[ve.paramName] || (ve.customType === "checkbox" || ve.customType === "link_checkbox" ? A[ve.paramName] = "true" : ve.customType === "radio_group" && ((K = ve.options) != null && K.length) || ve.customType === "group_checkbox" && ((X = ve.options) != null && X.length) ? A[ve.paramName] = ve.options[0].value : ve.customType === "text" && (A[ve.paramName] = "Sample value"));
12979
12953
  return A;
12980
12954
  }), te({}), T(null);
12981
12955
  }, [C, V]);
@@ -13007,13 +12981,13 @@ const cn = ({
13007
12981
  if (R.isCustom) {
13008
12982
  if (R.customType === "paragraph" || R.customType === "html" || R.customType === "br" || R.customType === "link") continue;
13009
12983
  if (R.required && R.paramName) {
13010
- const A = fe[R.paramName], W = oe(R.displayText, u) || oe(R.label, u) || R.paramName;
13011
- R.customType === "checkbox" || R.customType === "link_checkbox" ? A !== "true" && (f[R.paramName] = u("validation.fieldRequired", { field: W })) : (!A || A.trim() === "") && (f[R.paramName] = u("validation.fieldRequired", { field: W }));
12984
+ const A = fe[R.paramName], K = oe(R.displayText, u) || oe(R.label, u) || R.paramName;
12985
+ R.customType === "checkbox" || R.customType === "link_checkbox" ? A !== "true" && (f[R.paramName] = u("validation.fieldRequired", { field: K })) : (!A || A.trim() === "") && (f[R.paramName] = u("validation.fieldRequired", { field: K }));
13012
12986
  }
13013
12987
  } else if (R.name) {
13014
12988
  const A = R.name;
13015
- if (K.includes(A) && qt(re[A])) {
13016
- const W = vt[A], X = oe(R.displayText, u) || (W != null && W.translationKey ? u(`fields.${W.translationKey}`) : void 0) || (W == null ? void 0 : W.label) || A;
12989
+ if (W.includes(A) && qt(re[A])) {
12990
+ const K = vt[A], X = oe(R.displayText, u) || (K != null && K.translationKey ? u(`fields.${K.translationKey}`) : void 0) || (K == null ? void 0 : K.label) || A;
13017
12991
  f[A] = u("validation.fieldRequired", { field: X });
13018
12992
  }
13019
12993
  }
@@ -13097,8 +13071,8 @@ const cn = ({
13097
13071
  }
13098
13072
  }
13099
13073
  A.length > 0 && (f.applicantAdditionalDatas = A);
13100
- const W = await c(f);
13101
- a(W.applicantId);
13074
+ const K = await c(f);
13075
+ a(K.applicantId);
13102
13076
  } catch (f) {
13103
13077
  console.error("Error creating company applicant:", f), T(f.message || u("createCompany.failedToCreate"));
13104
13078
  } finally {
@@ -13106,17 +13080,17 @@ const cn = ({
13106
13080
  }
13107
13081
  }, Je = async (y) => {
13108
13082
  y.preventDefault();
13109
- for (const f of K)
13083
+ for (const f of W)
13110
13084
  if (qt(re[f])) {
13111
13085
  const R = vt[f], A = (R != null && R.translationKey ? u(`fields.${R.translationKey}`) : void 0) || (R == null ? void 0 : R.label) || f;
13112
13086
  T(u("validation.fieldRequired", { field: A }));
13113
13087
  return;
13114
13088
  }
13115
13089
  await Pe();
13116
- }, mt = (y, f, R, A, W) => {
13090
+ }, mt = (y, f, R, A, K) => {
13117
13091
  const X = vt[y];
13118
13092
  if (!X) return null;
13119
- const ne = K.includes(y), ve = Q[y], m = oe(R, u) || (X.translationKey ? u(`fields.${X.translationKey}`) : void 0) || X.label, j = y in $, E = f ?? y, k = W ? W !== "placeholder" : F, v = k ? m : void 0;
13093
+ const ne = W.includes(y), ve = Q[y], m = oe(R, u) || (X.translationKey ? u(`fields.${X.translationKey}`) : void 0) || X.label, j = y in $, E = f ?? y, k = K ? K !== "placeholder" : F, v = k ? m : void 0;
13120
13094
  switch (X.type) {
13121
13095
  case "select":
13122
13096
  if (y === "countryResidence" || y === "addressCountry") {
@@ -13224,7 +13198,7 @@ const cn = ({
13224
13198
  }
13225
13199
  ) }, `custom-${f}`);
13226
13200
  if (!y.paramName) return null;
13227
- const R = Q[y.paramName], A = oe(y.displayText, u) || oe(y.label, u) || y.paramName, W = y.labelMode ? y.labelMode !== "placeholder" : F;
13201
+ const R = Q[y.paramName], A = oe(y.displayText, u) || oe(y.label, u) || y.paramName, K = y.labelMode ? y.labelMode !== "placeholder" : F;
13228
13202
  if (y.customType === "checkbox") {
13229
13203
  const X = fe[y.paramName] === "true";
13230
13204
  return /* @__PURE__ */ l("div", { className: "flex flex-col gap-1", children: [
@@ -13257,8 +13231,8 @@ const cn = ({
13257
13231
  Le,
13258
13232
  {
13259
13233
  type: "text",
13260
- label: W ? `${A}${y.required ? " *" : ""}` : void 0,
13261
- placeholder: W ? void 0 : A,
13234
+ label: K ? `${A}${y.required ? " *" : ""}` : void 0,
13235
+ placeholder: K ? void 0 : A,
13262
13236
  value: fe[y.paramName] || "",
13263
13237
  onChange: (X) => Te(y.paramName, X.target.value),
13264
13238
  required: y.required,
@@ -13289,8 +13263,8 @@ const cn = ({
13289
13263
  }
13290
13264
  ),
13291
13265
  f && /* @__PURE__ */ i("div", { className: "metakyc-form-grid", children: y.fields.map((R, A) => {
13292
- const W = Math.min(4, Math.max(1, Number(R.colSpan) || 4)), X = R.isCustom ? `custom-${A}-${R.paramName}` : `builtin-${R.name}-${A}`;
13293
- return /* @__PURE__ */ i("div", { style: { gridColumn: `span ${W} / span ${W}` }, children: R.isCustom ? rt(R, A) : mt(R.name, X, R.displayText, R.countriesType, R.labelMode) }, X);
13266
+ const K = Math.min(4, Math.max(1, Number(R.colSpan) || 4)), X = R.isCustom ? `custom-${A}-${R.paramName}` : `builtin-${R.name}-${A}`;
13267
+ return /* @__PURE__ */ i("div", { style: { gridColumn: `span ${K} / span ${K}` }, children: R.isCustom ? rt(R, A) : mt(R.name, X, R.displayText, R.countriesType, R.labelMode) }, X);
13294
13268
  }) })
13295
13269
  ] });
13296
13270
  };
@@ -13300,9 +13274,9 @@ const cn = ({
13300
13274
  /* @__PURE__ */ i("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)", fontSize: "0.875rem" }, children: u("common.loadingForm") })
13301
13275
  ] }) }) });
13302
13276
  if (C) {
13303
- const y = C[se] ?? C[0], f = _e === -1, R = it === -1, A = C.length, W = Ce(y), X = qe(y), ne = Object.values(Q), ve = !W && !!y.conditionalOn && y.conditionalMode === "block", m = O || d || ve || X;
13277
+ const y = C[se] ?? C[0], f = _e === -1, R = it === -1, A = C.length, K = Ce(y), X = qe(y), ne = Object.values(Q), ve = !K && !!y.conditionalOn && y.conditionalMode === "block", m = O || d || ve || X;
13304
13278
  let j;
13305
- return ve || X ? j = u("common.blocked") : R ? j = y.conditionalOn && !W ? u("common.skipAndSubmit") : u("common.submit") : j = y.conditionalOn && !W ? u("common.skip") : u("common.next"), /* @__PURE__ */ i("div", { className: "metakyc-sdk", children: /* @__PURE__ */ l(me, { children: [
13279
+ return ve || X ? j = u("common.blocked") : R ? j = y.conditionalOn && !K ? u("common.skipAndSubmit") : u("common.submit") : j = y.conditionalOn && !K ? u("common.skip") : u("common.next"), /* @__PURE__ */ i("div", { className: "metakyc-sdk", children: /* @__PURE__ */ l(me, { children: [
13306
13280
  /* @__PURE__ */ i(Fe, { children: /* @__PURE__ */ i(Tt, { title: (s == null ? void 0 : s.title) || u("createCompany.title") }) }),
13307
13281
  /* @__PURE__ */ l(ue, { children: [
13308
13282
  (y.title || y.subtitle) && /* @__PURE__ */ l("div", { className: "mb-4", children: [
@@ -13379,7 +13353,7 @@ const cn = ({
13379
13353
  /* @__PURE__ */ i(le, { type: "submit", isLoading: O || d, children: u("createCompany.registerCompany") })
13380
13354
  ] })
13381
13355
  ] }) }) });
13382
- }, dn = "JVBERi0xLjAKMSAwIG9iago8PCAvVHlwZSAvQ2F0YWxvZyAvUGFnZXMgMiAwIFIgPj4KZW5kb2JqCjIgMCBvYmoKPDwgL1R5cGUgL1BhZ2VzIC9LaWRzIFszIDAgUl0gL0NvdW50IDEgPj4KZW5kb2JqCjMgMCBvYmoKPDwgL1R5cGUgL1BhZ2UgL1BhcmVudCAyIDAgUiAvTWVkaWFCb3ggWzAgMCA2MTIgNzkyXSA+PgplbmRvYmoKeHJlZgowIDQKMDAwMDAwMDAwMCA2NTUzNSBmIAowMDAwMDAwMDA5IDAwMDAwIG4gCjAwMDAwMDAwNTggMDAwMDAgbiAKMDAwMDAwMDExNSAwMMDAwIG4gCnRyYWlsZXIKPDwgL1NpemUgNCAvUm9vdCAxIDAgUiA+PgpzdGFydHhyZWYKMjA2CiUlRU9G", mn = ({
13356
+ }, on = "JVBERi0xLjAKMSAwIG9iago8PCAvVHlwZSAvQ2F0YWxvZyAvUGFnZXMgMiAwIFIgPj4KZW5kb2JqCjIgMCBvYmoKPDwgL1R5cGUgL1BhZ2VzIC9LaWRzIFszIDAgUl0gL0NvdW50IDEgPj4KZW5kb2JqCjMgMCBvYmoKPDwgL1R5cGUgL1BhZ2UgL1BhcmVudCAyIDAgUiAvTWVkaWFCb3ggWzAgMCA2MTIgNzkyXSA+PgplbmRvYmoKeHJlZgowIDQKMDAwMDAwMDAwMCA2NTUzNSBmIAowMDAwMDAwMDA5IDAwMDAwIG4gCjAwMDAwMDAwNTggMDAwMDAgbiAKMDAwMDAwMDExNSAwMMDAwIG4gCnRyYWlsZXIKPDwgL1NpemUgNCAvUm9vdCAxIDAgUiA+PgpzdGFydHhyZWYKMjA2CiUlRU9G", sn = ({
13383
13357
  applicantId: e,
13384
13358
  onComplete: t,
13385
13359
  onError: a,
@@ -13393,10 +13367,10 @@ const cn = ({
13393
13367
  nextWorkflowKey: g,
13394
13368
  hasWorkflowChanged: p,
13395
13369
  isLoading: z,
13396
- error: S,
13370
+ error: w,
13397
13371
  moveBack: x,
13398
13372
  refreshProgress: F
13399
- } = ca(e), [C, K] = we.useState(!1), [U, P] = we.useState(null), D = we.useRef(null), V = At(), {
13373
+ } = na(e), [C, W] = we.useState(!1), [U, P] = we.useState(null), D = we.useRef(null), V = At(), {
13400
13374
  questionnaireService: _,
13401
13375
  overviewService: ce,
13402
13376
  riskScoringService: h,
@@ -13451,11 +13425,11 @@ const cn = ({
13451
13425
  try {
13452
13426
  switch (G) {
13453
13427
  case de.Overview: {
13454
- H.info("[DevTools] Skipping Overview step"), await ce.passOverview(e);
13428
+ Y.info("[DevTools] Skipping Overview step"), await ce.passOverview(e);
13455
13429
  break;
13456
13430
  }
13457
13431
  case de.Questionaries: {
13458
- H.info("[DevTools] Skipping Questionnaire step");
13432
+ Y.info("[DevTools] Skipping Questionnaire step");
13459
13433
  const Q = await _.getQuestionnaire(e), I = Q.questionGroups.flatMap((T) => T.questions ?? []).map((T) => {
13460
13434
  var Se, xe;
13461
13435
  const O = (Se = T.questionDefaultAnswers) != null && Se.length ? [T.questionDefaultAnswers[0].answer] : (xe = T.defaultAnswers) != null && xe.length ? [T.defaultAnswers[0]] : ["N/A"];
@@ -13469,7 +13443,7 @@ const cn = ({
13469
13443
  break;
13470
13444
  }
13471
13445
  case de.RiskScoring: {
13472
- H.info("[DevTools] Skipping Risk Scoring step");
13446
+ Y.info("[DevTools] Skipping Risk Scoring step");
13473
13447
  const te = (await h.getRiskCriterias(e)).map((I) => {
13474
13448
  var T;
13475
13449
  return {
@@ -13484,7 +13458,7 @@ const cn = ({
13484
13458
  break;
13485
13459
  }
13486
13460
  case de.AppropriatenessTest: {
13487
- H.info("[DevTools] Skipping Appropriateness Test step");
13461
+ Y.info("[DevTools] Skipping Appropriateness Test step");
13488
13462
  const Q = await L.getAppropriatenessTest(e), te = Q.appropriatenessQuestions.map((I) => {
13489
13463
  var T;
13490
13464
  return {
@@ -13500,12 +13474,12 @@ const cn = ({
13500
13474
  break;
13501
13475
  }
13502
13476
  case de.UploadDocument: {
13503
- H.info("[DevTools] Skipping Upload Document step");
13477
+ Y.info("[DevTools] Skipping Upload Document step");
13504
13478
  const Q = await M.getUploadDocument(e), te = Q.uploadDocumentFiles.map((I) => ({
13505
13479
  uploadDocumentFileId: I.id,
13506
13480
  valueList: [{
13507
13481
  fileName: "dev-placeholder.pdf",
13508
- fileData: dn
13482
+ fileData: on
13509
13483
  }]
13510
13484
  }));
13511
13485
  await M.fillUploadDocument({
@@ -13517,7 +13491,7 @@ const cn = ({
13517
13491
  }
13518
13492
  case de.InvestorCategorization:
13519
13493
  case de.AdditionalData: {
13520
- H.info("[DevTools] Skipping Investor Categorization step");
13494
+ Y.info("[DevTools] Skipping Investor Categorization step");
13521
13495
  const te = (await h.getRiskCriterias(e)).map((I) => {
13522
13496
  var T;
13523
13497
  return {
@@ -13532,12 +13506,12 @@ const cn = ({
13532
13506
  break;
13533
13507
  }
13534
13508
  default:
13535
- H.warn(`[DevTools] Cannot skip step type: ${de[G]}`);
13509
+ Y.warn(`[DevTools] Cannot skip step type: ${de[G]}`);
13536
13510
  return;
13537
13511
  }
13538
13512
  await F();
13539
13513
  } catch (Q) {
13540
- H.warn(`[DevTools] Failed to skip step: ${Q}`);
13514
+ Y.warn(`[DevTools] Failed to skip step: ${Q}`);
13541
13515
  }
13542
13516
  }, [
13543
13517
  d,
@@ -13565,8 +13539,8 @@ const cn = ({
13565
13539
  handler: re
13566
13540
  }), () => G.unregisterAction("workflow-skip");
13567
13541
  }, [V, d, re]), we.useEffect(() => {
13568
- S && a && a(S);
13569
- }, [S, a]), we.useEffect(() => {
13542
+ w && a && a(w);
13543
+ }, [w, a]), we.useEffect(() => {
13570
13544
  c != null && c.workflowResult && t && t(c.workflowResult);
13571
13545
  }, [c == null ? void 0 : c.workflowResult, t]);
13572
13546
  const he = we.useRef(!1);
@@ -13574,21 +13548,21 @@ const cn = ({
13574
13548
  if (!p || !g || !e || he.current) return;
13575
13549
  he.current = !0;
13576
13550
  let G = !1;
13577
- return K(!0), P(null), (async () => {
13551
+ return W(!0), P(null), (async () => {
13578
13552
  try {
13579
- H.info(`[SDK] Auto-duplicating applicant ${e} → workflow ${g}`);
13553
+ Y.info(`[SDK] Auto-duplicating applicant ${e} → workflow ${g}`);
13580
13554
  const Q = await s.duplicateApplicant({
13581
13555
  applicantId: e,
13582
13556
  workflowKey: g
13583
13557
  });
13584
13558
  if (G) return;
13585
- H.info(`[SDK] Duplicated → new applicantId=${Q.applicantId}`), r && r(Q.applicantId);
13559
+ Y.info(`[SDK] Duplicated → new applicantId=${Q.applicantId}`), r && r(Q.applicantId);
13586
13560
  } catch (Q) {
13587
13561
  if (G) return;
13588
13562
  const te = (Q == null ? void 0 : Q.message) || "Failed to continue with new workflow";
13589
- H.warn(`[SDK] Duplicate applicant failed: ${te}`), P(te);
13563
+ Y.warn(`[SDK] Duplicate applicant failed: ${te}`), P(te);
13590
13564
  } finally {
13591
- G || K(!1);
13565
+ G || W(!1);
13592
13566
  }
13593
13567
  })(), () => {
13594
13568
  G = !0;
@@ -13598,10 +13572,10 @@ const cn = ({
13598
13572
  /* @__PURE__ */ i(Ge, { className: "my-8" }),
13599
13573
  /* @__PURE__ */ i("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: o("workflow.loadingWorkflow") })
13600
13574
  ] }) }) });
13601
- if (S)
13575
+ if (w)
13602
13576
  return /* @__PURE__ */ i("div", { className: `metakyc-sdk ${n || ""}`, children: /* @__PURE__ */ i(me, { children: /* @__PURE__ */ i(ue, { children: /* @__PURE__ */ l("div", { className: "text-center py-8", children: [
13603
13577
  /* @__PURE__ */ i("p", { className: "text-lg mb-4", style: { color: "var(--metakyc-danger, #ef4444)" }, children: o("workflow.errorOccurred") }),
13604
- /* @__PURE__ */ i("p", { style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: S.message })
13578
+ /* @__PURE__ */ i("p", { style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: w.message })
13605
13579
  ] }) }) }) });
13606
13580
  if (p)
13607
13581
  return U ? /* @__PURE__ */ i("div", { className: `metakyc-sdk ${n || ""}`, children: /* @__PURE__ */ i(me, { children: /* @__PURE__ */ i(ue, { children: /* @__PURE__ */ l("div", { className: "text-center py-8", children: [
@@ -13681,7 +13655,7 @@ const cn = ({
13681
13655
  } })
13682
13656
  ] }),
13683
13657
  /* @__PURE__ */ i(
13684
- un,
13658
+ ln,
13685
13659
  {
13686
13660
  ref: D,
13687
13661
  visibleSteps: G,
@@ -13700,20 +13674,20 @@ const cn = ({
13700
13674
  };
13701
13675
  switch (d.action) {
13702
13676
  case de.Questionaries:
13703
- return /* @__PURE__ */ i(Ea, { ...I });
13677
+ return /* @__PURE__ */ i(Aa, { ...I });
13704
13678
  case de.UploadDocument:
13705
- return /* @__PURE__ */ i(Ma, { ...I });
13679
+ return /* @__PURE__ */ i(La, { ...I });
13706
13680
  case de.Overview:
13707
- return /* @__PURE__ */ i(ja, { ...I });
13681
+ return /* @__PURE__ */ i(Ea, { ...I });
13708
13682
  case de.IdentitySdk:
13709
- return /* @__PURE__ */ i(Ga, { ...I });
13683
+ return /* @__PURE__ */ i($a, { ...I });
13710
13684
  case de.RiskScoring:
13711
- return /* @__PURE__ */ i(Ua, { ...I });
13685
+ return /* @__PURE__ */ i(Ba, { ...I });
13712
13686
  case de.AdditionalData:
13713
13687
  case de.InvestorCategorization:
13714
- return /* @__PURE__ */ i($a, { ...I });
13688
+ return /* @__PURE__ */ i(qa, { ...I });
13715
13689
  case de.AppropriatenessTest:
13716
- return /* @__PURE__ */ i(Ha, { ...I });
13690
+ return /* @__PURE__ */ i(Ua, { ...I });
13717
13691
  case de.ManualReview:
13718
13692
  return /* @__PURE__ */ i(
13719
13693
  yi,
@@ -13744,7 +13718,7 @@ const cn = ({
13744
13718
  De(),
13745
13719
  se()
13746
13720
  ] });
13747
- }, un = we.forwardRef(
13721
+ }, ln = we.forwardRef(
13748
13722
  ({ visibleSteps: e, currentVisibleStepIndex: t, getStepFallbackName: a }, r) => {
13749
13723
  const n = we.useRef(null), o = we.useRef(null);
13750
13724
  return we.useImperativeHandle(r, () => n.current), we.useEffect(() => {
@@ -13829,14 +13803,14 @@ const cn = ({
13829
13803
  }
13830
13804
  );
13831
13805
  }
13832
- ), Mn = (e) => {
13806
+ ), Ln = (e) => {
13833
13807
  const { config: t } = Ee();
13834
- return t.debug || t.logLevel && t.logLevel !== "none" ? /* @__PURE__ */ l(Za, { children: [
13808
+ return t.debug || t.logLevel && t.logLevel !== "none" ? /* @__PURE__ */ l(_a, { children: [
13835
13809
  /* @__PURE__ */ i(bi, { ...e }),
13836
- /* @__PURE__ */ i(Ja, {})
13810
+ /* @__PURE__ */ i(Ga, {})
13837
13811
  ] }) : /* @__PURE__ */ i(bi, { ...e });
13838
13812
  };
13839
- function pn(e, t, a, r) {
13813
+ function cn(e, t, a, r) {
13840
13814
  const n = At();
13841
13815
  we.useEffect(() => {
13842
13816
  var o;
@@ -13858,11 +13832,11 @@ const bi = ({
13858
13832
  workflowKey: g,
13859
13833
  error: p,
13860
13834
  isLoading: z,
13861
- transitionToWorkflow: S,
13835
+ transitionToWorkflow: w,
13862
13836
  switchApplicant: x,
13863
13837
  refresh: F
13864
- } = da(e);
13865
- pn(c, d, u, g);
13838
+ } = oa(e);
13839
+ cn(c, d, u, g);
13866
13840
  const C = At();
13867
13841
  we.useEffect(() => {
13868
13842
  const D = C.current;
@@ -13877,9 +13851,9 @@ const bi = ({
13877
13851
  }, [C, F]), we.useEffect(() => {
13878
13852
  p && a && a(p);
13879
13853
  }, [p, a]);
13880
- const K = we.useCallback((D) => {
13881
- r == null || r(D), S(D);
13882
- }, [r, S]);
13854
+ const W = we.useCallback((D) => {
13855
+ r == null || r(D), w(D);
13856
+ }, [r, w]);
13883
13857
  if (c === "loading" || z)
13884
13858
  return /* @__PURE__ */ i("div", { className: `metakyc-sdk ${n || ""}`, children: /* @__PURE__ */ i(me, { children: /* @__PURE__ */ l(ue, { children: [
13885
13859
  /* @__PURE__ */ i(Ge, { className: "my-8" }),
@@ -13893,24 +13867,24 @@ const bi = ({
13893
13867
  if (c === "create_applicant") {
13894
13868
  const D = g || ((U = s.applicantForm) == null ? void 0 : U.workflowKey), V = (P = s.applicantForm) == null ? void 0 : P.externalRefId;
13895
13869
  return u ? /* @__PURE__ */ i("div", { className: `metakyc-sdk ${n || ""}`, children: /* @__PURE__ */ i(
13896
- cn,
13870
+ nn,
13897
13871
  {
13898
13872
  workflowKey: D,
13899
13873
  externalRefId: V,
13900
- onSuccess: K
13874
+ onSuccess: W
13901
13875
  }
13902
13876
  ) }) : /* @__PURE__ */ i("div", { className: `metakyc-sdk ${n || ""}`, children: /* @__PURE__ */ i(
13903
- ln,
13877
+ an,
13904
13878
  {
13905
13879
  workflowKey: D,
13906
13880
  externalRefId: V,
13907
13881
  applicantId: d,
13908
- onSuccess: K
13882
+ onSuccess: W
13909
13883
  }
13910
13884
  ) });
13911
13885
  }
13912
13886
  return d ? /* @__PURE__ */ i("div", { className: `metakyc-sdk ${n || ""}`, children: /* @__PURE__ */ i(
13913
- mn,
13887
+ sn,
13914
13888
  {
13915
13889
  applicantId: d,
13916
13890
  onComplete: t,
@@ -13920,12 +13894,12 @@ const bi = ({
13920
13894
  }
13921
13895
  ) }) : /* @__PURE__ */ i("div", { className: `metakyc-sdk ${n || ""}`, children: /* @__PURE__ */ i(me, { children: /* @__PURE__ */ i(ue, { 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." }) }) }) }) });
13922
13896
  };
13923
- function jn(e) {
13897
+ function En(e) {
13924
13898
  return dt.object({
13925
13899
  questionResults: dt.any()
13926
13900
  }).passthrough();
13927
13901
  }
13928
- function gn(e) {
13902
+ function dn(e) {
13929
13903
  let t = dt.array(dt.instanceof(File));
13930
13904
  if (e.isRequired ? t = t.min(
13931
13905
  1,
@@ -13947,38 +13921,38 @@ function gn(e) {
13947
13921
  }
13948
13922
  return t;
13949
13923
  }
13950
- function Fn(e) {
13924
+ function Dn(e) {
13951
13925
  const t = {};
13952
13926
  return e.uploadDocumentFiles.forEach((a) => {
13953
13927
  const r = `file_${a.id}`;
13954
- t[r] = gn(a);
13928
+ t[r] = dn(a);
13955
13929
  }), dt.object(t);
13956
13930
  }
13957
- function On(e) {
13931
+ function Pn(e) {
13958
13932
  return dt.any();
13959
13933
  }
13960
- function fn(e) {
13934
+ function mn(e) {
13961
13935
  return dt.string().min(1, "This question is required");
13962
13936
  }
13963
- function Bn(e) {
13937
+ function Mn(e) {
13964
13938
  const t = {};
13965
13939
  return e.appropriatenessQuestions.forEach((a) => {
13966
13940
  const r = `question_${a.id}`;
13967
- t[r] = fn();
13941
+ t[r] = mn();
13968
13942
  }), dt.object(t);
13969
13943
  }
13970
- const Vn = dt.any();
13944
+ const jn = dt.any();
13971
13945
  export {
13972
- ti as ALLOWED_LANGUAGES,
13946
+ ei as ALLOWED_LANGUAGES,
13973
13947
  Vi as ApplicantProgressOnHoldReason,
13974
13948
  Xe as ApplicantProgressStatus,
13975
- dr as ApplicantService,
13976
- Ki as ApplicantStatus,
13977
- Yi as AppropriatenessQuestionType,
13978
- pr as AppropriatenessTestService,
13979
- Ha as AppropriatenessTestStep,
13949
+ or as ApplicantService,
13950
+ Ui as ApplicantStatus,
13951
+ Hi as AppropriatenessQuestionType,
13952
+ cr as AppropriatenessTestService,
13953
+ Ua as AppropriatenessTestStep,
13980
13954
  Ai as Badge,
13981
- hr as BaseInformationService,
13955
+ pr as BaseInformationService,
13982
13956
  le as Button,
13983
13957
  vt as COMPANY_FIELD_METADATA,
13984
13958
  me as Card,
@@ -13987,114 +13961,114 @@ export {
13987
13961
  Fe as CardHeader,
13988
13962
  tt as Checkbox,
13989
13963
  ft as CountriesType,
13990
- ln as CreateApplicantForm,
13991
- cn as CreateCompanyApplicantForm,
13964
+ an as CreateApplicantForm,
13965
+ nn as CreateCompanyApplicantForm,
13992
13966
  Gi as CriteriaBuiltInType,
13993
13967
  Xi as DEFAULT_COMPANY_VISIBLE_FIELDS,
13994
13968
  Zi as DEFAULT_VISIBLE_FIELDS,
13995
- Hi as DocumentReviewStatus,
13969
+ Yi as DocumentReviewStatus,
13996
13970
  er as EndpointBuilder,
13997
13971
  Ct as ErrorHandler,
13998
- Rr as EventEmitter,
13972
+ Sr as EventEmitter,
13999
13973
  gt as FIELD_METADATA,
14000
13974
  $i as FileType,
14001
- xa as FileUpload,
13975
+ ha as FileUpload,
14002
13976
  Et as GenderType,
14003
13977
  Tt as Header,
14004
- cr as HttpClient,
13978
+ nr as HttpClient,
14005
13979
  pt as IdentityProviderManager,
14006
- yr as IdentityService,
13980
+ ur as IdentityService,
14007
13981
  et as IdentityVerificationProvider,
14008
- Ga as IdentityVerificationStep,
13982
+ $a as IdentityVerificationStep,
14009
13983
  Le as Input,
14010
- kr as InvestorCategorizationService,
14011
- $a as InvestorCategorizationStep,
14012
- Ue as InvestorCategorizationType,
13984
+ gr as InvestorCategorizationService,
13985
+ qa as InvestorCategorizationStep,
13986
+ Ke as InvestorCategorizationType,
14013
13987
  Qi as InvestorCategoryType,
14014
- Ui as KycProcessStatus,
13988
+ Ki as KycProcessStatus,
14015
13989
  wi as KycStatus,
14016
13990
  yi as KycStatusDisplay,
14017
- mn as KycWorkflow,
14018
- Xa as Logo,
14019
- Mn as MetaKYC,
13991
+ sn as KycWorkflow,
13992
+ Ha as Logo,
13993
+ Ln as MetaKYC,
14020
13994
  Ti as MetaKYCContext,
14021
13995
  st as MetaKYCError,
14022
- Tn as MetaKYCProvider,
14023
- Sn as MetaKYCSession,
14024
- va as MultiSelect,
14025
- Pr as OnfidoProvider,
14026
- gr as OverviewService,
14027
- ja as OverviewStep,
14028
- wa as PhoneInput,
14029
- mr as QuestionnaireService,
14030
- Ea as QuestionnaireStep,
13996
+ wn as MetaKYCProvider,
13997
+ vn as MetaKYCSession,
13998
+ fa as MultiSelect,
13999
+ zr as OnfidoProvider,
14000
+ dr as OverviewService,
14001
+ Ea as OverviewStep,
14002
+ ka as PhoneInput,
14003
+ sr as QuestionnaireService,
14004
+ Aa as QuestionnaireStep,
14031
14005
  at as ReviewStatus,
14032
14006
  _i as RiskCriteriaType,
14033
14007
  qi as RiskLevel,
14034
- fr as RiskScoringService,
14035
- Ua as RiskScoringStep,
14008
+ mr as RiskScoringService,
14009
+ Ba as RiskScoringStep,
14036
14010
  Yt as SDK_VERSION,
14037
- Mr as SardinAIProvider,
14011
+ Lr as SardinAIProvider,
14038
14012
  ct as SearchableSelect,
14039
- Xt as Select,
14013
+ Qt as Select,
14040
14014
  Ge as Spinner,
14041
- Ir as StepRouter,
14042
- Dr as SumsubProvider,
14043
- jr as ThemeManager,
14015
+ Nr as StepRouter,
14016
+ Ir as SumsubProvider,
14017
+ Er as ThemeManager,
14044
14018
  $e as ThemePreset,
14045
- Nr as ThemeService,
14046
- ia as TranslationProvider,
14047
- Tr as TranslationService,
14048
- ur as UploadDocumentService,
14049
- Ma as UploadDocumentStep,
14019
+ xr as ThemeService,
14020
+ Zr as TranslationProvider,
14021
+ wr as TranslationService,
14022
+ lr as UploadDocumentService,
14023
+ La as UploadDocumentStep,
14050
14024
  Wi as UserType,
14051
14025
  lt as ValueDataType,
14052
- zr as WorkflowOrchestrator,
14026
+ Tr as WorkflowOrchestrator,
14053
14027
  Lt as WorkflowResultType,
14054
- Ar as WorkflowState,
14028
+ Cr as WorkflowState,
14055
14029
  de as WorkflowStepAction,
14056
- Vn as appropriatenessTestSchema,
14057
- Dn as clearAllStorage,
14058
- oa as clearApplicantId,
14059
- la as clearWorkflowState,
14060
- Ye as cn,
14061
- vr as corporateTheme,
14030
+ jn as appropriatenessTestSchema,
14031
+ In as clearAllStorage,
14032
+ ia as clearApplicantId,
14033
+ aa as clearWorkflowState,
14034
+ He as cn,
14035
+ fr as corporateTheme,
14062
14036
  Ji as defaultConfig,
14063
14037
  We as defaultTheme,
14064
- na as fileToBase64,
14065
- br as fintechTheme,
14038
+ ta as fileToBase64,
14039
+ yr as fintechTheme,
14066
14040
  Ot as formatFileSize,
14067
- Bn as generateAppropriatenessSchema,
14068
- jn as generateQuestionnaireSchema,
14069
- On as generateRiskScoringSchema,
14070
- Fn as generateUploadDocumentSchema,
14071
- In as getAcceptString,
14072
- Ln as getApplicantId,
14041
+ Mn as generateAppropriatenessSchema,
14042
+ En as generateQuestionnaireSchema,
14043
+ Pn as generateRiskScoringSchema,
14044
+ Dn as generateUploadDocumentSchema,
14045
+ Nn as getAcceptString,
14046
+ Rn as getApplicantId,
14073
14047
  Nt as getThemePreset,
14074
- En as getWorkflowState,
14075
- xr as healthcareTheme,
14076
- Cn as isScriptLoaded,
14048
+ An as getWorkflowState,
14049
+ hr as healthcareTheme,
14050
+ bn as isScriptLoaded,
14077
14051
  Si as loadScript,
14078
- H as logger,
14079
- Sr as minimalTheme,
14080
- wr as modernTheme,
14081
- Nn as removeScript,
14052
+ Y as logger,
14053
+ vr as minimalTheme,
14054
+ kr as modernTheme,
14055
+ xn as removeScript,
14082
14056
  oe as resolveDisplayText,
14083
- zn as saveApplicantId,
14084
- sa as saveWorkflowState,
14085
- Cr as themePresets,
14057
+ Tn as saveApplicantId,
14058
+ ra as saveWorkflowState,
14059
+ br as themePresets,
14086
14060
  Ri as useApplicant,
14087
- Pn as useAppropriatenessTest,
14088
- ga as useIdentityVerification,
14089
- ca as useKycWorkflow,
14061
+ zn as useAppropriatenessTest,
14062
+ da as useIdentityVerification,
14063
+ na as useKycWorkflow,
14090
14064
  Ee as useMetaKYC,
14091
- da as useMetaKYCFlow,
14092
- pa as useOverview,
14093
- ma as useQuestionnaire,
14094
- fa as useRiskScoring,
14065
+ oa as useMetaKYCFlow,
14066
+ ca as useOverview,
14067
+ sa as useQuestionnaire,
14068
+ ma as useRiskScoring,
14095
14069
  je as useTranslation,
14096
- ua as useUploadDocument,
14097
- Rn as validateFileSize,
14098
- An as validateFileType
14070
+ la as useUploadDocument,
14071
+ Sn as validateFileSize,
14072
+ Cn as validateFileType
14099
14073
  };
14100
14074
  //# sourceMappingURL=index.js.map