@vpdev2/metakyc 1.0.71 → 1.0.73

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