@vpdev2/metakyc 1.0.12 → 1.0.14

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
@@ -1,14 +1,14 @@
1
- var qt = Object.defineProperty;
2
- var Yt = (e, t, a) => t in e ? qt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
- var ge = (e, t, a) => Yt(e, typeof t != "symbol" ? t + "" : t, a);
4
- import Vt from "axios";
1
+ var Yt = Object.defineProperty;
2
+ var Vt = (e, t, a) => t in e ? Yt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
+ var he = (e, t, a) => Vt(e, typeof t != "symbol" ? t + "" : t, a);
4
+ import Qt from "axios";
5
5
  import * as Rt from "react";
6
- import we, { createContext as Qt, useState as x, useMemo as De, useEffect as fe, useContext as Gt, useRef as de, useCallback as ae, forwardRef as yt, createElement as St } from "react";
6
+ import we, { createContext as Gt, useState as x, useMemo as De, useEffect as fe, useContext as Jt, useRef as de, useCallback as ae, forwardRef as yt, createElement as St } from "react";
7
7
  import { jsxs as o, jsx as r, Fragment as ct } from "react/jsx-runtime";
8
- import Jt, { createPortal as Ct } from "react-dom";
9
- import { useForm as Xt, Controller as tt } from "react-hook-form";
8
+ import Xt, { createPortal as Ct } from "react-dom";
9
+ import { useForm as Zt, Controller as tt } from "react-hook-form";
10
10
  import { z as Ve } from "zod";
11
- var ce = /* @__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))(ce || {}), ft = /* @__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))(ft || {}), Oe = /* @__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))(Oe || {}), Zt = /* @__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))(Zt || {}), er = /* @__PURE__ */ ((e) => (e[e.LowRisk = 0] = "LowRisk", e[e.MediumRisk = 1] = "MediumRisk", e[e.HighRisk = 2] = "HighRisk", e[e.Alert = 3] = "Alert", e))(er || {}), rt = /* @__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))(rt || {}), 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 || {}), tr = /* @__PURE__ */ ((e) => (e[e.ProviderResultPending = 0] = "ProviderResultPending", e[e.ProviderResultReceived = 1] = "ProviderResultReceived", e[e.Canceled = 2] = "Canceled", e[e.ExtendedToNewApplicant = 3] = "ExtendedToNewApplicant", e))(tr || {}), rr = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.ProviderResultPending = 1] = "ProviderResultPending", e[e.ProviderResultReceived = 2] = "ProviderResultReceived", e[e.Canceled = 3] = "Canceled", e))(rr || {}), ze = /* @__PURE__ */ ((e) => (e[e.Onfido = 0] = "Onfido", e[e.Sumsub = 2] = "Sumsub", e[e.SardinAI = 3] = "SardinAI", e))(ze || {}), ar = /* @__PURE__ */ ((e) => (e[e.Individual = 0] = "Individual", e[e.Company = 1] = "Company", e))(ar || {}), kt = /* @__PURE__ */ ((e) => (e[e.Male = 0] = "Male", e[e.Female = 1] = "Female", e[e.Other = 2] = "Other", e))(kt || {}), nr = /* @__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))(nr || {}), ir = /* @__PURE__ */ ((e) => (e[e.Pending = 0] = "Pending", e[e.Approved = 1] = "Approved", e[e.Rejected = 2] = "Rejected", e[e.RequiresRevision = 3] = "RequiresRevision", e))(ir || {}), or = /* @__PURE__ */ ((e) => (e[e.SingleChoice = 0] = "SingleChoice", e[e.MultipleChoice = 1] = "MultipleChoice", e[e.Text = 2] = "Text", e))(or || {}), qe = /* @__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))(qe || {}), sr = /* @__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))(sr || {}), lr = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Country = 1] = "Country", e))(lr || {}), Ee = /* @__PURE__ */ ((e) => (e[e.Individual = 0] = "Individual", e[e.Sophisticated = 1] = "Sophisticated", e[e.HighNetWorth = 2] = "HighNetWorth", e[e.Business = 3] = "Business", e))(Ee || {}), cr = /* @__PURE__ */ ((e) => (e[e.Retail = 0] = "Retail", e[e.Professional = 1] = "Professional", e[e.EligibleCounterparty = 2] = "EligibleCounterparty", e))(cr || {});
11
+ var ce = /* @__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))(ce || {}), ft = /* @__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))(ft || {}), Oe = /* @__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))(Oe || {}), er = /* @__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))(er || {}), tr = /* @__PURE__ */ ((e) => (e[e.LowRisk = 0] = "LowRisk", e[e.MediumRisk = 1] = "MediumRisk", e[e.HighRisk = 2] = "HighRisk", e[e.Alert = 3] = "Alert", e))(tr || {}), rt = /* @__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))(rt || {}), 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 || {}), rr = /* @__PURE__ */ ((e) => (e[e.ProviderResultPending = 0] = "ProviderResultPending", e[e.ProviderResultReceived = 1] = "ProviderResultReceived", e[e.Canceled = 2] = "Canceled", e[e.ExtendedToNewApplicant = 3] = "ExtendedToNewApplicant", e))(rr || {}), ar = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.ProviderResultPending = 1] = "ProviderResultPending", e[e.ProviderResultReceived = 2] = "ProviderResultReceived", e[e.Canceled = 3] = "Canceled", e))(ar || {}), ze = /* @__PURE__ */ ((e) => (e[e.Onfido = 0] = "Onfido", e[e.Sumsub = 2] = "Sumsub", e[e.SardinAI = 3] = "SardinAI", e))(ze || {}), nr = /* @__PURE__ */ ((e) => (e[e.Individual = 0] = "Individual", e[e.Company = 1] = "Company", e))(nr || {}), kt = /* @__PURE__ */ ((e) => (e[e.Male = 0] = "Male", e[e.Female = 1] = "Female", e[e.Other = 2] = "Other", e))(kt || {}), ir = /* @__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))(ir || {}), or = /* @__PURE__ */ ((e) => (e[e.Pending = 0] = "Pending", e[e.Approved = 1] = "Approved", e[e.Rejected = 2] = "Rejected", e[e.RequiresRevision = 3] = "RequiresRevision", e))(or || {}), sr = /* @__PURE__ */ ((e) => (e[e.SingleChoice = 0] = "SingleChoice", e[e.MultipleChoice = 1] = "MultipleChoice", e[e.Text = 2] = "Text", e))(sr || {}), qe = /* @__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))(qe || {}), lr = /* @__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))(lr || {}), cr = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Country = 1] = "Country", e))(cr || {}), Ee = /* @__PURE__ */ ((e) => (e[e.Individual = 0] = "Individual", e[e.Sophisticated = 1] = "Sophisticated", e[e.HighNetWorth = 2] = "HighNetWorth", e[e.Business = 3] = "Business", e))(Ee || {}), dr = /* @__PURE__ */ ((e) => (e[e.Retail = 0] = "Retail", e[e.Professional = 1] = "Professional", e[e.EligibleCounterparty = 2] = "EligibleCounterparty", e))(dr || {});
12
12
  const Xe = {
13
13
  Nationality: 10,
14
14
  Address: 20,
@@ -58,12 +58,12 @@ const Xe = {
58
58
  postalCode: { label: "Postal Code", type: "text" },
59
59
  addressCountry: { label: "Address Country", type: "select", countriesType: Xe.Address },
60
60
  lei: { label: "LEI", type: "text" }
61
- }, dr = [
61
+ }, mr = [
62
62
  "companyName",
63
63
  "email",
64
64
  "phone",
65
65
  "registrationNumber"
66
- ], mr = [
66
+ ], pr = [
67
67
  "firstName",
68
68
  "lastName",
69
69
  "email",
@@ -88,8 +88,8 @@ const Xe = {
88
88
  { value: "FI", label: "Finnish" },
89
89
  { value: "NO", label: "Norwegian" }
90
90
  ];
91
- var Fe = /* @__PURE__ */ ((e) => (e.Default = "default", e.Corporate = "corporate", e.Fintech = "fintech", e.Healthcare = "healthcare", e.Modern = "modern", e.Minimal = "minimal", e))(Fe || {});
92
- const pr = {
91
+ var Ae = /* @__PURE__ */ ((e) => (e.Default = "default", e.Corporate = "corporate", e.Fintech = "fintech", e.Healthcare = "healthcare", e.Modern = "modern", e.Minimal = "minimal", e))(Ae || {});
92
+ const ur = {
93
93
  timeout: 3e4,
94
94
  retries: 3,
95
95
  locale: "en",
@@ -97,7 +97,7 @@ const pr = {
97
97
  pattern: "host-controller"
98
98
  }
99
99
  };
100
- class ur {
100
+ class yr {
101
101
  constructor(t) {
102
102
  this.config = t;
103
103
  }
@@ -140,7 +140,7 @@ class ur {
140
140
  class Ke extends Error {
141
141
  constructor(a, n, i, l, c) {
142
142
  super(a);
143
- ge(this, "response");
143
+ he(this, "response");
144
144
  this.code = n, this.details = i, this.validationErrors = l, this.name = "MetaKYCError", this.response = c, Object.setPrototypeOf(this, Ke.prototype);
145
145
  }
146
146
  }
@@ -194,12 +194,12 @@ class mt {
194
194
  return t instanceof Ke;
195
195
  }
196
196
  }
197
- class yr {
197
+ class hr {
198
198
  constructor(t) {
199
- ge(this, "axiosInstance");
200
- ge(this, "endpointBuilder");
201
- ge(this, "config");
202
- this.config = { ...pr, ...t }, this.endpointBuilder = new ur(this.config.endpoints), this.axiosInstance = Vt.create({
199
+ he(this, "axiosInstance");
200
+ he(this, "endpointBuilder");
201
+ he(this, "config");
202
+ this.config = { ...ur, ...t }, this.endpointBuilder = new yr(this.config.endpoints), this.axiosInstance = Qt.create({
203
203
  baseURL: this.config.baseUrl,
204
204
  timeout: this.config.timeout,
205
205
  headers: {
@@ -414,7 +414,7 @@ class gr {
414
414
  )).result;
415
415
  }
416
416
  }
417
- class hr {
417
+ class fr {
418
418
  constructor(t) {
419
419
  this.httpClient = t;
420
420
  }
@@ -441,7 +441,7 @@ class hr {
441
441
  )).result;
442
442
  }
443
443
  }
444
- class fr {
444
+ class kr {
445
445
  constructor(t) {
446
446
  this.httpClient = t;
447
447
  }
@@ -469,7 +469,7 @@ class fr {
469
469
  await this.httpClient.post("UploadDocument", "ReviewUploadDocument", t);
470
470
  }
471
471
  }
472
- class kr {
472
+ class br {
473
473
  constructor(t) {
474
474
  this.httpClient = t;
475
475
  }
@@ -495,7 +495,7 @@ class kr {
495
495
  )).result;
496
496
  }
497
497
  }
498
- class br {
498
+ class xr {
499
499
  constructor(t) {
500
500
  this.httpClient = t;
501
501
  }
@@ -517,7 +517,7 @@ class br {
517
517
  await this.httpClient.get("Applicant", "PassOverview", { applicantId: t });
518
518
  }
519
519
  }
520
- class xr {
520
+ class vr {
521
521
  constructor(t) {
522
522
  this.httpClient = t;
523
523
  }
@@ -552,7 +552,7 @@ class xr {
552
552
  )).result;
553
553
  }
554
554
  }
555
- class vr {
555
+ class wr {
556
556
  constructor(t) {
557
557
  this.httpClient = t;
558
558
  }
@@ -620,7 +620,7 @@ class vr {
620
620
  return console.log("[IdentityService] Sumsub token refresh result:", a), a.result.accessToken;
621
621
  }
622
622
  }
623
- class wr {
623
+ class Sr {
624
624
  constructor(t) {
625
625
  this.httpClient = t;
626
626
  }
@@ -656,7 +656,7 @@ class wr {
656
656
  )).result;
657
657
  }
658
658
  }
659
- class Sr {
659
+ class Cr {
660
660
  constructor(t) {
661
661
  this.httpClient = t;
662
662
  }
@@ -682,7 +682,7 @@ class Sr {
682
682
  )).result;
683
683
  }
684
684
  }
685
- const Pe = {
685
+ const Fe = {
686
686
  name: "Default",
687
687
  title: "KYC Verification",
688
688
  logo: {
@@ -741,7 +741,7 @@ const Pe = {
741
741
  textMuted: "#9ca3af"
742
742
  }
743
743
  }
744
- }, Cr = {
744
+ }, Nr = {
745
745
  name: "Corporate",
746
746
  logo: {
747
747
  url: "",
@@ -774,7 +774,7 @@ const Pe = {
774
774
  cardPadding: "1.5rem",
775
775
  inputHeight: "2.5rem"
776
776
  }
777
- }, Nr = {
777
+ }, Ir = {
778
778
  name: "Fintech",
779
779
  logo: {
780
780
  url: "",
@@ -807,7 +807,7 @@ const Pe = {
807
807
  cardPadding: "2rem",
808
808
  inputHeight: "3rem"
809
809
  }
810
- }, Ir = {
810
+ }, Rr = {
811
811
  name: "Healthcare",
812
812
  logo: {
813
813
  url: "",
@@ -849,7 +849,7 @@ const Pe = {
849
849
  textSecondary: "#CBD5E1"
850
850
  }
851
851
  }
852
- }, Rr = {
852
+ }, Er = {
853
853
  name: "Modern",
854
854
  logo: {
855
855
  url: "",
@@ -882,7 +882,7 @@ const Pe = {
882
882
  cardPadding: "2rem",
883
883
  inputHeight: "3rem"
884
884
  }
885
- }, Er = {
885
+ }, Fr = {
886
886
  name: "Minimal",
887
887
  logo: {
888
888
  url: "",
@@ -915,18 +915,18 @@ const Pe = {
915
915
  cardPadding: "1.25rem",
916
916
  inputHeight: "2.25rem"
917
917
  }
918
- }, Fr = {
919
- [Fe.Default]: Pe,
920
- [Fe.Corporate]: Cr,
921
- [Fe.Fintech]: Nr,
922
- [Fe.Healthcare]: Ir,
923
- [Fe.Modern]: Rr,
924
- [Fe.Minimal]: Er
918
+ }, Ar = {
919
+ [Ae.Default]: Fe,
920
+ [Ae.Corporate]: Nr,
921
+ [Ae.Fintech]: Ir,
922
+ [Ae.Healthcare]: Rr,
923
+ [Ae.Modern]: Er,
924
+ [Ae.Minimal]: Fr
925
925
  };
926
926
  function pt(e) {
927
- return Fr[e] || Pe;
927
+ return Ar[e] || Fe;
928
928
  }
929
- class Ar {
929
+ class Tr {
930
930
  constructor(t) {
931
931
  this.httpClient = t;
932
932
  }
@@ -941,8 +941,8 @@ class Ar {
941
941
  "GetThemeConfiguration"
942
942
  );
943
943
  if (!a.result.isEnabled)
944
- return pt(Fe.Default);
945
- let n = a.result.preset ? pt(a.result.preset) : pt(Fe.Default);
944
+ return pt(Ae.Default);
945
+ let n = a.result.preset ? pt(a.result.preset) : pt(Ae.Default);
946
946
  if (a.result.title && (n.title = a.result.title), a.result.logo && (n.logo = { ...n.logo, ...a.result.logo }), a.result.colors && (n.colors = { ...n.colors, ...a.result.colors }), a.result.typography && (n.typography = { ...n.typography, ...a.result.typography }), a.result.spacing && (n.spacing = { ...n.spacing, ...a.result.spacing }), a.result.customCSS && (n.customCSS = a.result.customCSS), a.result.darkMode && (n.darkMode = {
947
947
  colors: {
948
948
  ...(t = n.darkMode) == null ? void 0 : t.colors,
@@ -992,7 +992,7 @@ class Ar {
992
992
  }
993
993
  return n;
994
994
  } catch (a) {
995
- return console.warn("[ThemeService] Failed to fetch theme configuration:", a), pt(Fe.Default);
995
+ return console.warn("[ThemeService] Failed to fetch theme configuration:", a), pt(Ae.Default);
996
996
  }
997
997
  }
998
998
  /**
@@ -1006,12 +1006,12 @@ class Ar {
1006
1006
  */
1007
1007
  getAvailablePresets() {
1008
1008
  return [
1009
- { id: Fe.Default, name: "Default" },
1010
- { id: Fe.Corporate, name: "Corporate" },
1011
- { id: Fe.Fintech, name: "Fintech" },
1012
- { id: Fe.Healthcare, name: "Healthcare" },
1013
- { id: Fe.Modern, name: "Modern" },
1014
- { id: Fe.Minimal, name: "Minimal" }
1009
+ { id: Ae.Default, name: "Default" },
1010
+ { id: Ae.Corporate, name: "Corporate" },
1011
+ { id: Ae.Fintech, name: "Fintech" },
1012
+ { id: Ae.Healthcare, name: "Healthcare" },
1013
+ { id: Ae.Modern, name: "Modern" },
1014
+ { id: Ae.Minimal, name: "Minimal" }
1015
1015
  ];
1016
1016
  }
1017
1017
  /**
@@ -1029,9 +1029,9 @@ class Ar {
1029
1029
  } : n;
1030
1030
  }
1031
1031
  }
1032
- class Tr {
1032
+ class Lr {
1033
1033
  constructor() {
1034
- ge(this, "listeners", /* @__PURE__ */ new Map());
1034
+ he(this, "listeners", /* @__PURE__ */ new Map());
1035
1035
  }
1036
1036
  /**
1037
1037
  * Subscribe to an event
@@ -1074,12 +1074,12 @@ class Tr {
1074
1074
  this.listeners.delete(t);
1075
1075
  }
1076
1076
  }
1077
- class Lr {
1077
+ class Pr {
1078
1078
  constructor() {
1079
- ge(this, "events", new Tr());
1080
- ge(this, "_applicantId", null);
1081
- ge(this, "_progress", null);
1082
- ge(this, "_error", null);
1079
+ he(this, "events", new Lr());
1080
+ he(this, "_applicantId", null);
1081
+ he(this, "_progress", null);
1082
+ he(this, "_error", null);
1083
1083
  }
1084
1084
  /**
1085
1085
  * Get current applicant ID
@@ -1214,9 +1214,9 @@ class Lr {
1214
1214
  this.events.clear();
1215
1215
  }
1216
1216
  }
1217
- class Pr {
1217
+ class Dr {
1218
1218
  constructor() {
1219
- ge(this, "handlers", /* @__PURE__ */ new Map());
1219
+ he(this, "handlers", /* @__PURE__ */ new Map());
1220
1220
  }
1221
1221
  /**
1222
1222
  * Register a step handler
@@ -1255,11 +1255,11 @@ class Pr {
1255
1255
  return n.submitData(a);
1256
1256
  }
1257
1257
  }
1258
- class Dr {
1258
+ class Mr {
1259
1259
  constructor(t, a, n, i, l, c, d, y) {
1260
- ge(this, "state");
1261
- ge(this, "stepRouter");
1262
- this.applicantService = t, this.questionnaireService = a, this.uploadDocumentService = n, this.appropriatenessTestService = i, this.overviewService = l, this.riskScoringService = c, this.investorCategorizationService = y, this.state = new Lr(), this.stepRouter = new Pr(), this.registerStepHandlers();
1260
+ he(this, "state");
1261
+ he(this, "stepRouter");
1262
+ this.applicantService = t, this.questionnaireService = a, this.uploadDocumentService = n, this.appropriatenessTestService = i, this.overviewService = l, this.riskScoringService = c, this.investorCategorizationService = y, this.state = new Pr(), this.stepRouter = new Dr(), this.registerStepHandlers();
1263
1263
  }
1264
1264
  /**
1265
1265
  * Register all step handlers
@@ -1399,7 +1399,7 @@ class Dr {
1399
1399
  return this.stepRouter;
1400
1400
  }
1401
1401
  }
1402
- function Ot(e, t) {
1402
+ function $t(e, t) {
1403
1403
  return new Promise((a, n) => {
1404
1404
  if (t && document.getElementById(t)) {
1405
1405
  a();
@@ -1409,14 +1409,14 @@ function Ot(e, t) {
1409
1409
  i.src = e, t && (i.id = t), i.async = !0, i.onload = () => a(), i.onerror = () => n(new Error(`Failed to load script: ${e}`)), document.head.appendChild(i);
1410
1410
  });
1411
1411
  }
1412
- function Va(e) {
1412
+ function Qa(e) {
1413
1413
  return !!document.getElementById(e);
1414
1414
  }
1415
- function Qa(e) {
1415
+ function Ga(e) {
1416
1416
  const t = document.getElementById(e);
1417
1417
  t && t.remove();
1418
1418
  }
1419
- const Mr = "https://static.sumsub.com/idensic/static/sns-websdk-builder.js";
1419
+ const zr = "https://static.sumsub.com/idensic/static/sns-websdk-builder.js";
1420
1420
  function Ue(e, t) {
1421
1421
  try {
1422
1422
  const a = document.querySelector(".metakyc-sdk") || document.documentElement;
@@ -1425,7 +1425,7 @@ function Ue(e, t) {
1425
1425
  return t;
1426
1426
  }
1427
1427
  }
1428
- function zr() {
1428
+ function Or() {
1429
1429
  const e = Ue("--metakyc-primary", "#2563eb"), t = Ue("--metakyc-primary-hover", "#1d4ed8"), a = Ue("--metakyc-background", "#ffffff"), n = Ue("--metakyc-surface", "#f9fafb"), i = Ue("--metakyc-text-primary", "#111827"), l = Ue("--metakyc-text-secondary", "#6b7280"), c = Ue("--metakyc-text-muted", "#9ca3af"), d = Ue("--metakyc-border", "#e5e7eb");
1430
1430
  return `
1431
1431
  body, html { font-family: ${Ue(
@@ -1452,16 +1452,16 @@ a { color: ${e}; }
1452
1452
  a:hover { color: ${t}; }
1453
1453
  `.trim();
1454
1454
  }
1455
- class Or {
1455
+ class $r {
1456
1456
  constructor(t) {
1457
- ge(this, "sdk", null);
1458
- ge(this, "config");
1459
- ge(this, "completeCallback", null);
1460
- ge(this, "errorCallback", null);
1457
+ he(this, "sdk", null);
1458
+ he(this, "config");
1459
+ he(this, "completeCallback", null);
1460
+ he(this, "errorCallback", null);
1461
1461
  this.config = t;
1462
1462
  }
1463
1463
  async loadSDK() {
1464
- if (!window.snsWebSdk && (await Ot(Mr, "sumsub-websdk"), !window.snsWebSdk))
1464
+ if (!window.snsWebSdk && (await $t(zr, "sumsub-websdk"), !window.snsWebSdk))
1465
1465
  throw new Error("Sumsub Web SDK failed to load from CDN");
1466
1466
  }
1467
1467
  async initialize(t) {
@@ -1471,7 +1471,7 @@ class Or {
1471
1471
  };
1472
1472
  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) {
1473
1473
  const i = {};
1474
- this.config.customCss && (i.customCss = this.config.customCss), this.config.customCssStr && (i.customCssStr = this.config.customCssStr), i.customCssStr || (i.customCssStr = zr()), a.uiConf = i;
1474
+ this.config.customCss && (i.customCss = this.config.customCss), this.config.customCssStr && (i.customCssStr = this.config.customCssStr), i.customCssStr || (i.customCssStr = Or()), a.uiConf = i;
1475
1475
  }
1476
1476
  const n = window.snsWebSdk.init(
1477
1477
  this.config.accessToken,
@@ -1509,17 +1509,17 @@ class Or {
1509
1509
  this.errorCallback = t;
1510
1510
  }
1511
1511
  }
1512
- class $r {
1512
+ class Br {
1513
1513
  constructor(t) {
1514
- ge(this, "sdk", null);
1515
- ge(this, "config");
1514
+ he(this, "sdk", null);
1515
+ he(this, "config");
1516
1516
  this.config = t;
1517
1517
  }
1518
1518
  /**
1519
1519
  * Load Onfido SDK
1520
1520
  */
1521
1521
  async loadSDK() {
1522
- await Ot(
1522
+ await $t(
1523
1523
  "https://sdk.onfido.com/v12.0.0/onfido.min.js",
1524
1524
  "onfido-sdk"
1525
1525
  );
@@ -1575,11 +1575,11 @@ class $r {
1575
1575
  this.sdk && (this.sdk.tearDown(), this.sdk = null);
1576
1576
  }
1577
1577
  }
1578
- class Br {
1578
+ class _r {
1579
1579
  constructor(t) {
1580
- ge(this, "sardineContext", null);
1581
- ge(this, "config");
1582
- ge(this, "sessionKey");
1580
+ he(this, "sardineContext", null);
1581
+ he(this, "config");
1582
+ he(this, "sessionKey");
1583
1583
  this.config = t, this.sessionKey = t.sessionKey || this.generateSessionKey();
1584
1584
  }
1585
1585
  /**
@@ -1726,11 +1726,11 @@ class Je {
1726
1726
  static createProvider(t, a) {
1727
1727
  switch (t) {
1728
1728
  case ze.Sumsub:
1729
- return new Or(a);
1730
- case ze.Onfido:
1731
1729
  return new $r(a);
1732
- case ze.SardinAI:
1730
+ case ze.Onfido:
1733
1731
  return new Br(a);
1732
+ case ze.SardinAI:
1733
+ return new _r(a);
1734
1734
  default:
1735
1735
  throw new Error(`Unsupported identity provider: ${t}`);
1736
1736
  }
@@ -1774,11 +1774,11 @@ class Je {
1774
1774
  }
1775
1775
  }
1776
1776
  }
1777
- class _r {
1777
+ class jr {
1778
1778
  constructor() {
1779
- ge(this, "currentTheme", Pe);
1780
- ge(this, "customStyleElement", null);
1781
- ge(this, "themeStyleElement", null);
1779
+ he(this, "currentTheme", Fe);
1780
+ he(this, "customStyleElement", null);
1781
+ he(this, "themeStyleElement", null);
1782
1782
  }
1783
1783
  /**
1784
1784
  * Apply theme configuration
@@ -1892,19 +1892,19 @@ ${Object.entries(i).filter(([, y]) => !!y).map(([y, p]) => ` --metakyc-${y}: ${
1892
1892
  mergeWithDefault(t) {
1893
1893
  var a;
1894
1894
  return {
1895
- name: t.name || Pe.name,
1896
- title: t.title || Pe.title,
1897
- logo: { ...Pe.logo, ...t.logo },
1898
- colors: { ...Pe.colors, ...t.colors },
1899
- typography: t.typography ? { ...Pe.typography, ...t.typography } : Pe.typography,
1900
- spacing: t.spacing ? { ...Pe.spacing, ...t.spacing } : Pe.spacing,
1895
+ name: t.name || Fe.name,
1896
+ title: t.title || Fe.title,
1897
+ logo: { ...Fe.logo, ...t.logo },
1898
+ colors: { ...Fe.colors, ...t.colors },
1899
+ typography: t.typography ? { ...Fe.typography, ...t.typography } : Fe.typography,
1900
+ spacing: t.spacing ? { ...Fe.spacing, ...t.spacing } : Fe.spacing,
1901
1901
  customCSS: t.customCSS,
1902
1902
  darkMode: t.darkMode ? {
1903
1903
  colors: {
1904
- ...(a = Pe.darkMode) == null ? void 0 : a.colors,
1904
+ ...(a = Fe.darkMode) == null ? void 0 : a.colors,
1905
1905
  ...t.darkMode.colors
1906
1906
  }
1907
- } : Pe.darkMode,
1907
+ } : Fe.darkMode,
1908
1908
  applicantFormVisibleFields: t.applicantFormVisibleFields,
1909
1909
  applicantFormRequiredFields: t.applicantFormRequiredFields,
1910
1910
  allowedLanguages: t.allowedLanguages,
@@ -1928,7 +1928,7 @@ ${Object.entries(i).filter(([, y]) => !!y).map(([y, p]) => ` --metakyc-${y}: ${
1928
1928
  * Reset to default theme
1929
1929
  */
1930
1930
  resetTheme() {
1931
- this.applyTheme(Pe);
1931
+ this.applyTheme(Fe);
1932
1932
  }
1933
1933
  /**
1934
1934
  * Remove all custom styles
@@ -1943,21 +1943,31 @@ ${Object.entries(i).filter(([, y]) => !!y).map(([y, p]) => ` --metakyc-${y}: ${
1943
1943
  return t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1944
1944
  }
1945
1945
  }
1946
- const $t = Qt(null), jr = "1.0.12", Hr = '.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-4{margin-left:1rem;margin-right:1rem}.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-16{height:4rem}.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-16{width:4rem}.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 .list-none{list-style-type:none}.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-blue-200{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity, 1))}.metakyc-sdk .border-danger-500{border-color:var(--metakyc-danger, #EF4444)}.metakyc-sdk .border-green-200{--tw-border-opacity: 1;border-color:rgb(187 247 208 / var(--tw-border-opacity, 1))}.metakyc-sdk .border-red-200{--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1))}.metakyc-sdk .border-yellow-200{--tw-border-opacity: 1;border-color:rgb(254 240 138 / var(--tw-border-opacity, 1))}.metakyc-sdk .bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.metakyc-sdk .bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.metakyc-sdk .bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.metakyc-sdk .bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.metakyc-sdk .bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.metakyc-sdk .bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.metakyc-sdk .bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity, 1))}.metakyc-sdk .bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity, 1))}.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-right{text-align:right}.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 .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-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-blue-900{--tw-text-opacity: 1;color:rgb(30 58 138 / var(--tw-text-opacity, 1))}.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-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-green-900{--tw-text-opacity: 1;color:rgb(20 83 45 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-primary,.metakyc-sdk .text-primary-500{color:var(--metakyc-primary, #3B82F6)}.metakyc-sdk .text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-red-900{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-secondary{color:var(--metakyc-secondary, #64748b)}.metakyc-sdk .text-yellow-700{--tw-text-opacity: 1;color:rgb(161 98 7 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity, 1))}.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 .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-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{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 .hover\\:opacity-90:hover{opacity:.9}.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\\:border-blue-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(30 64 175 / var(--tw-border-opacity, 1))}.metakyc-sdk .dark\\:border-green-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(22 101 52 / var(--tw-border-opacity, 1))}.metakyc-sdk .dark\\:border-red-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(153 27 27 / var(--tw-border-opacity, 1))}.metakyc-sdk .dark\\:border-yellow-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(133 77 14 / var(--tw-border-opacity, 1))}.metakyc-sdk .dark\\:bg-blue-900\\/20:is(.dark *){background-color:#1e3a8a33}.metakyc-sdk .dark\\:bg-blue-900\\/30:is(.dark *){background-color:#1e3a8a4d}.metakyc-sdk .dark\\:bg-green-900\\/20:is(.dark *){background-color:#14532d33}.metakyc-sdk .dark\\:bg-green-900\\/30:is(.dark *){background-color:#14532d4d}.metakyc-sdk .dark\\:bg-red-900\\/20:is(.dark *){background-color:#7f1d1d33}.metakyc-sdk .dark\\:bg-red-900\\/30:is(.dark *){background-color:#7f1d1d4d}.metakyc-sdk .dark\\:bg-yellow-900\\/20:is(.dark *){background-color:#713f1233}.metakyc-sdk .dark\\:bg-yellow-900\\/30:is(.dark *){background-color:#713f124d}.metakyc-sdk .dark\\:text-blue-100:is(.dark *){--tw-text-opacity: 1;color:rgb(219 234 254 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-blue-200:is(.dark *){--tw-text-opacity: 1;color:rgb(191 219 254 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-blue-400:is(.dark *){--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.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-green-100:is(.dark *){--tw-text-opacity: 1;color:rgb(220 252 231 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-green-200:is(.dark *){--tw-text-opacity: 1;color:rgb(187 247 208 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-green-400:is(.dark *){--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-red-100:is(.dark *){--tw-text-opacity: 1;color:rgb(254 226 226 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-red-200:is(.dark *){--tw-text-opacity: 1;color:rgb(254 202 202 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(248 113 113 / 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))}.metakyc-sdk .dark\\:text-yellow-200:is(.dark *){--tw-text-opacity: 1;color:rgb(254 240 138 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-yellow-400:is(.dark *){--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.metakyc-sdk .md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}', Ft = "metakyc-sdk-styles";
1946
+ const Bt = Gt(null), Hr = "1.0.13", Wr = '.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-4{margin-left:1rem;margin-right:1rem}.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-16{height:4rem}.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-16{width:4rem}.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 .list-none{list-style-type:none}.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-blue-200{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity, 1))}.metakyc-sdk .border-danger-500{border-color:var(--metakyc-danger, #EF4444)}.metakyc-sdk .border-green-200{--tw-border-opacity: 1;border-color:rgb(187 247 208 / var(--tw-border-opacity, 1))}.metakyc-sdk .border-red-200{--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1))}.metakyc-sdk .border-yellow-200{--tw-border-opacity: 1;border-color:rgb(254 240 138 / var(--tw-border-opacity, 1))}.metakyc-sdk .bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.metakyc-sdk .bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.metakyc-sdk .bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.metakyc-sdk .bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.metakyc-sdk .bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.metakyc-sdk .bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.metakyc-sdk .bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity, 1))}.metakyc-sdk .bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity, 1))}.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-right{text-align:right}.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 .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-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-blue-900{--tw-text-opacity: 1;color:rgb(30 58 138 / var(--tw-text-opacity, 1))}.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-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-green-900{--tw-text-opacity: 1;color:rgb(20 83 45 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-primary,.metakyc-sdk .text-primary-500{color:var(--metakyc-primary, #3B82F6)}.metakyc-sdk .text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-red-900{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-secondary{color:var(--metakyc-secondary, #64748b)}.metakyc-sdk .text-yellow-700{--tw-text-opacity: 1;color:rgb(161 98 7 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity, 1))}.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 .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-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{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 .hover\\:opacity-90:hover{opacity:.9}.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\\:border-blue-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(30 64 175 / var(--tw-border-opacity, 1))}.metakyc-sdk .dark\\:border-green-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(22 101 52 / var(--tw-border-opacity, 1))}.metakyc-sdk .dark\\:border-red-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(153 27 27 / var(--tw-border-opacity, 1))}.metakyc-sdk .dark\\:border-yellow-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(133 77 14 / var(--tw-border-opacity, 1))}.metakyc-sdk .dark\\:bg-blue-900\\/20:is(.dark *){background-color:#1e3a8a33}.metakyc-sdk .dark\\:bg-blue-900\\/30:is(.dark *){background-color:#1e3a8a4d}.metakyc-sdk .dark\\:bg-green-900\\/20:is(.dark *){background-color:#14532d33}.metakyc-sdk .dark\\:bg-green-900\\/30:is(.dark *){background-color:#14532d4d}.metakyc-sdk .dark\\:bg-red-900\\/20:is(.dark *){background-color:#7f1d1d33}.metakyc-sdk .dark\\:bg-red-900\\/30:is(.dark *){background-color:#7f1d1d4d}.metakyc-sdk .dark\\:bg-yellow-900\\/20:is(.dark *){background-color:#713f1233}.metakyc-sdk .dark\\:bg-yellow-900\\/30:is(.dark *){background-color:#713f124d}.metakyc-sdk .dark\\:text-blue-100:is(.dark *){--tw-text-opacity: 1;color:rgb(219 234 254 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-blue-200:is(.dark *){--tw-text-opacity: 1;color:rgb(191 219 254 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-blue-400:is(.dark *){--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.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-green-100:is(.dark *){--tw-text-opacity: 1;color:rgb(220 252 231 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-green-200:is(.dark *){--tw-text-opacity: 1;color:rgb(187 247 208 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-green-400:is(.dark *){--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-red-100:is(.dark *){--tw-text-opacity: 1;color:rgb(254 226 226 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-red-200:is(.dark *){--tw-text-opacity: 1;color:rgb(254 202 202 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(248 113 113 / 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))}.metakyc-sdk .dark\\:text-yellow-200:is(.dark *){--tw-text-opacity: 1;color:rgb(254 240 138 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-yellow-400:is(.dark *){--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.metakyc-sdk .md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}', Ft = "metakyc-sdk-styles";
1947
1947
  let bt = !1;
1948
- function Wr() {
1948
+ function Ur() {
1949
1949
  if (bt || typeof document > "u") return;
1950
1950
  if (document.getElementById(Ft)) {
1951
1951
  bt = !0;
1952
1952
  return;
1953
1953
  }
1954
1954
  const e = document.createElement("style");
1955
- e.id = Ft, e.textContent = Hr, document.head.appendChild(e), bt = !0;
1955
+ e.id = Ft, e.textContent = Wr, document.head.appendChild(e), bt = !0;
1956
1956
  }
1957
- const Ga = ({ config: e, children: t }) => {
1958
- Wr();
1957
+ const At = "metakyc-theme-cache", Ja = ({ config: e, children: t }) => {
1958
+ Ur();
1959
1959
  const [a, n] = x(null), i = we.useRef(!1), l = we.useRef(!1), c = De(() => {
1960
- const y = new yr(e), p = new gr(y), b = new hr(y), F = new fr(y), S = new kr(y), T = new br(y), L = new xr(y), v = new vr(y), N = new wr(y), B = new Sr(y), Y = new Ar(y), M = new _r();
1960
+ const y = new hr(e), p = new gr(y), b = new fr(y), F = new kr(y), S = new br(y), T = new xr(y), L = new vr(y), v = new wr(y), N = new Sr(y), B = new Cr(y), Y = new Tr(y), P = new jr();
1961
+ if (typeof document < "u")
1962
+ if (e.theme)
1963
+ P.applyTheme(e.theme);
1964
+ else
1965
+ try {
1966
+ const z = localStorage.getItem(At);
1967
+ P.applyTheme(z ? JSON.parse(z) : Fe);
1968
+ } catch {
1969
+ P.applyTheme(Fe);
1970
+ }
1961
1971
  return {
1962
1972
  httpClient: y,
1963
1973
  applicantService: p,
@@ -1970,13 +1980,13 @@ const Ga = ({ config: e, children: t }) => {
1970
1980
  baseInformationService: N,
1971
1981
  investorCategorizationService: B,
1972
1982
  themeService: Y,
1973
- themeManager: M
1983
+ themeManager: P
1974
1984
  };
1975
1985
  }, [e]), d = De(() => ({
1976
1986
  config: e,
1977
1987
  ...c,
1978
1988
  currentTheme: a,
1979
- createOrchestrator: () => new Dr(
1989
+ createOrchestrator: () => new Mr(
1980
1990
  c.applicantService,
1981
1991
  c.questionnaireService,
1982
1992
  c.uploadDocumentService,
@@ -2000,7 +2010,12 @@ const Ga = ({ config: e, children: t }) => {
2000
2010
  }
2001
2011
  console.log("[MetaKYC] Fetching theme from backend...");
2002
2012
  const p = await c.themeService.getThemeConfiguration();
2003
- c.themeManager.applyTheme(p), n(c.themeManager.getCurrentTheme()), l.current = !0, console.log("[MetaKYC] Theme loaded and applied", p);
2013
+ c.themeManager.applyTheme(p), n(c.themeManager.getCurrentTheme()), l.current = !0;
2014
+ try {
2015
+ localStorage.setItem(At, JSON.stringify(p));
2016
+ } catch {
2017
+ }
2018
+ console.log("[MetaKYC] Theme loaded and applied", p);
2004
2019
  } catch (p) {
2005
2020
  console.warn("[MetaKYC] Failed to load theme, using default:", p), n(c.themeManager.getCurrentTheme()), l.current = !0;
2006
2021
  } finally {
@@ -2008,7 +2023,7 @@ const Ga = ({ config: e, children: t }) => {
2008
2023
  }
2009
2024
  })(), () => {
2010
2025
  c.themeManager.cleanup();
2011
- }), []), /* @__PURE__ */ o($t.Provider, { value: d, children: [
2026
+ }), []), /* @__PURE__ */ o(Bt.Provider, { value: d, children: [
2012
2027
  e.showVersion && /* @__PURE__ */ o(
2013
2028
  "div",
2014
2029
  {
@@ -2025,20 +2040,20 @@ const Ga = ({ config: e, children: t }) => {
2025
2040
  },
2026
2041
  children: [
2027
2042
  "SDK v",
2028
- jr
2043
+ Hr
2029
2044
  ]
2030
2045
  }
2031
2046
  ),
2032
2047
  t
2033
2048
  ] });
2034
2049
  };
2035
- function Te() {
2036
- const e = Gt($t);
2050
+ function Le() {
2051
+ const e = Jt(Bt);
2037
2052
  if (!e)
2038
2053
  throw new Error("useMetaKYC must be used within a MetaKYCProvider");
2039
2054
  return e;
2040
2055
  }
2041
- async function Ur(e) {
2056
+ async function Kr(e) {
2042
2057
  return new Promise((t, a) => {
2043
2058
  const n = new FileReader();
2044
2059
  n.readAsDataURL(e), n.onload = () => {
@@ -2047,10 +2062,10 @@ async function Ur(e) {
2047
2062
  }, n.onerror = (i) => a(i);
2048
2063
  });
2049
2064
  }
2050
- function Ja(e, t) {
2065
+ function Xa(e, t) {
2051
2066
  return e.size <= t;
2052
2067
  }
2053
- function Xa(e, t) {
2068
+ function Za(e, t) {
2054
2069
  return t.split(",").map((n) => n.trim()).some((n) => {
2055
2070
  if (n.endsWith("/*")) {
2056
2071
  const i = n.slice(0, -2);
@@ -2064,24 +2079,24 @@ function xt(e) {
2064
2079
  const t = 1024, a = ["Bytes", "KB", "MB", "GB"], n = Math.floor(Math.log(e) / Math.log(t));
2065
2080
  return Math.round(e / Math.pow(t, n) * 100) / 100 + " " + a[n];
2066
2081
  }
2067
- function Za(e) {
2082
+ function en(e) {
2068
2083
  return e;
2069
2084
  }
2070
- function Ae(...e) {
2085
+ function Te(...e) {
2071
2086
  return e.filter(Boolean).join(" ");
2072
2087
  }
2073
2088
  const dt = {
2074
2089
  APPLICANT_ID: "metakyc_applicant_id",
2075
2090
  WORKFLOW_STATE: "metakyc_workflow_state"
2076
2091
  };
2077
- function Kr(e) {
2092
+ function qr(e) {
2078
2093
  try {
2079
2094
  localStorage.setItem(dt.APPLICANT_ID, e.toString());
2080
2095
  } catch (t) {
2081
2096
  console.warn("Failed to save applicant ID to storage:", t);
2082
2097
  }
2083
2098
  }
2084
- function qr() {
2099
+ function Yr() {
2085
2100
  try {
2086
2101
  const e = localStorage.getItem(dt.APPLICANT_ID);
2087
2102
  return e ? parseInt(e, 10) : null;
@@ -2089,21 +2104,21 @@ function qr() {
2089
2104
  return console.warn("Failed to retrieve applicant ID from storage:", e), null;
2090
2105
  }
2091
2106
  }
2092
- function Yr() {
2107
+ function Vr() {
2093
2108
  try {
2094
2109
  localStorage.removeItem(dt.APPLICANT_ID);
2095
2110
  } catch (e) {
2096
2111
  console.warn("Failed to clear applicant ID from storage:", e);
2097
2112
  }
2098
2113
  }
2099
- function Vr(e) {
2114
+ function Qr(e) {
2100
2115
  try {
2101
2116
  localStorage.setItem(dt.WORKFLOW_STATE, JSON.stringify(e));
2102
2117
  } catch (t) {
2103
2118
  console.warn("Failed to save workflow state to storage:", t);
2104
2119
  }
2105
2120
  }
2106
- function en() {
2121
+ function tn() {
2107
2122
  try {
2108
2123
  const e = localStorage.getItem(dt.WORKFLOW_STATE);
2109
2124
  return e ? JSON.parse(e) : null;
@@ -2111,25 +2126,25 @@ function en() {
2111
2126
  return console.warn("Failed to retrieve workflow state from storage:", e), null;
2112
2127
  }
2113
2128
  }
2114
- function Qr() {
2129
+ function Gr() {
2115
2130
  try {
2116
2131
  localStorage.removeItem(dt.WORKFLOW_STATE);
2117
2132
  } catch (e) {
2118
2133
  console.warn("Failed to clear workflow state from storage:", e);
2119
2134
  }
2120
2135
  }
2121
- function tn() {
2122
- Yr(), Qr();
2136
+ function rn() {
2137
+ Vr(), Gr();
2123
2138
  }
2124
- function Gr(e) {
2125
- const { createOrchestrator: t } = Te(), [a, n] = x(null), [i, l] = x(!1), [c, d] = x(null), y = de(null), p = e || qr();
2139
+ function Jr(e) {
2140
+ const { createOrchestrator: t } = Le(), [a, n] = x(null), [i, l] = x(!1), [c, d] = x(null), y = de(null), p = e || Yr();
2126
2141
  fe(() => {
2127
2142
  y.current || (y.current = t());
2128
2143
  }, [t]), fe(() => {
2129
- var M;
2130
- a && p && (Kr(p), Vr({
2144
+ var P;
2145
+ a && p && (qr(p), Qr({
2131
2146
  applicantId: p,
2132
- currentStepOrder: (M = a.currentStep) == null ? void 0 : M.order,
2147
+ currentStepOrder: (P = a.currentStep) == null ? void 0 : P.order,
2133
2148
  status: a.status,
2134
2149
  lastUpdated: (/* @__PURE__ */ new Date()).toISOString(),
2135
2150
  workflowKey: a.workFlowKey,
@@ -2144,10 +2159,10 @@ function Gr(e) {
2144
2159
  }
2145
2160
  b.current = !0, l(!0), d(null);
2146
2161
  try {
2147
- const M = await y.current.initialize(p);
2148
- n(M), F.current = !0;
2149
- } catch (M) {
2150
- d(M);
2162
+ const P = await y.current.initialize(p);
2163
+ n(P), F.current = !0;
2164
+ } catch (P) {
2165
+ d(P);
2151
2166
  } finally {
2152
2167
  l(!1), b.current = !1;
2153
2168
  }
@@ -2164,10 +2179,10 @@ function Gr(e) {
2164
2179
  }
2165
2180
  b.current = !0, l(!0), d(null);
2166
2181
  try {
2167
- const M = await y.current.refreshProgress();
2168
- n(M);
2169
- } catch (M) {
2170
- d(M);
2182
+ const P = await y.current.refreshProgress();
2183
+ n(P);
2184
+ } catch (P) {
2185
+ d(P);
2171
2186
  } finally {
2172
2187
  l(!1), b.current = !1;
2173
2188
  }
@@ -2176,10 +2191,10 @@ function Gr(e) {
2176
2191
  if (y.current) {
2177
2192
  l(!0), d(null);
2178
2193
  try {
2179
- const M = await y.current.moveToNextStep();
2180
- n(M);
2181
- } catch (M) {
2182
- d(M);
2194
+ const P = await y.current.moveToNextStep();
2195
+ n(P);
2196
+ } catch (P) {
2197
+ d(P);
2183
2198
  } finally {
2184
2199
  l(!1);
2185
2200
  }
@@ -2188,28 +2203,28 @@ function Gr(e) {
2188
2203
  if (y.current) {
2189
2204
  l(!0), d(null);
2190
2205
  try {
2191
- const M = await y.current.moveToPreviousStep();
2192
- n(M);
2193
- } catch (M) {
2194
- d(M);
2206
+ const P = await y.current.moveToPreviousStep();
2207
+ n(P);
2208
+ } catch (P) {
2209
+ d(P);
2195
2210
  } finally {
2196
2211
  l(!1);
2197
2212
  }
2198
2213
  }
2199
- }, []), N = ae(async (M) => {
2214
+ }, []), N = ae(async (P) => {
2200
2215
  if (y.current) {
2201
2216
  l(!0), d(null);
2202
2217
  try {
2203
- await y.current.submitCurrentStep(M);
2204
- const O = await y.current.refreshProgress();
2205
- n(O);
2206
- } catch (O) {
2207
- throw d(O), O;
2218
+ await y.current.submitCurrentStep(P);
2219
+ const z = await y.current.refreshProgress();
2220
+ n(z);
2221
+ } catch (z) {
2222
+ throw d(z), z;
2208
2223
  } finally {
2209
2224
  l(!1);
2210
2225
  }
2211
2226
  }
2212
- }, []), B = Rt.useMemo(() => a != null && a.stepInfoList ? [...a.stepInfoList].sort((M, O) => M.order - O.order) : [], [a == null ? void 0 : a.stepInfoList]), Y = Rt.useMemo(() => a ? a.nextWorkflowKey && a.nextWorkflowKey !== a.workFlowKey : !1, [a]);
2227
+ }, []), B = Rt.useMemo(() => a != null && a.stepInfoList ? [...a.stepInfoList].sort((P, z) => P.order - z.order) : [], [a == null ? void 0 : a.stepInfoList]), Y = Rt.useMemo(() => a ? a.nextWorkflowKey && a.nextWorkflowKey !== a.workFlowKey : !1, [a]);
2213
2228
  return {
2214
2229
  progress: a,
2215
2230
  applicantId: p,
@@ -2231,8 +2246,8 @@ function Gr(e) {
2231
2246
  orchestrator: y.current
2232
2247
  };
2233
2248
  }
2234
- function Jr(e) {
2235
- const { questionnaireService: t, applicantService: a } = Te(), [n, i] = x(null), [l, c] = x({}), [d, y] = x(!1), [p, b] = x(!1), [F, S] = x(null), T = de(!1), L = de(null), v = ae(async () => {
2249
+ function Xr(e) {
2250
+ const { questionnaireService: t, applicantService: a } = Le(), [n, i] = x(null), [l, c] = x({}), [d, y] = x(!1), [p, b] = x(!1), [F, S] = x(null), T = de(!1), L = de(null), v = ae(async () => {
2236
2251
  var B, Y;
2237
2252
  if (e) {
2238
2253
  if (T.current) {
@@ -2241,15 +2256,15 @@ function Jr(e) {
2241
2256
  }
2242
2257
  T.current = !0, y(!0), S(null);
2243
2258
  try {
2244
- const [M, O] = await Promise.all([
2259
+ const [P, z] = await Promise.all([
2245
2260
  t.getQuestionnaire(e),
2246
2261
  a.getApplicantData(e).catch(() => null)
2247
2262
  ]);
2248
- if (i(M), (B = O == null ? void 0 : O.questionnaireResults) != null && B.length && M) {
2263
+ if (i(P), (B = z == null ? void 0 : z.questionnaireResults) != null && B.length && P) {
2249
2264
  const Z = /* @__PURE__ */ new Map();
2250
- for (const f of O.questionnaireResults)
2265
+ for (const f of z.questionnaireResults)
2251
2266
  f.question && ((Y = f.answers) != null && Y.length) && Z.set(f.question.trim().toLowerCase(), f.answers);
2252
- const ne = {}, R = M.questionGroups.flatMap((f) => f.questions ?? []);
2267
+ const ne = {}, R = P.questionGroups.flatMap((f) => f.questions ?? []);
2253
2268
  for (const f of R) {
2254
2269
  const $ = f.text.trim().toLowerCase();
2255
2270
  Z.has($) && (ne[f.id] = Z.get($));
@@ -2257,8 +2272,8 @@ function Jr(e) {
2257
2272
  c(ne);
2258
2273
  }
2259
2274
  L.current = e;
2260
- } catch (M) {
2261
- S(M);
2275
+ } catch (P) {
2276
+ S(P);
2262
2277
  } finally {
2263
2278
  y(!1), T.current = !1;
2264
2279
  }
@@ -2290,8 +2305,8 @@ function Jr(e) {
2290
2305
  submit: N
2291
2306
  };
2292
2307
  }
2293
- function Xr(e) {
2294
- const { uploadDocumentService: t } = Te(), [a, n] = x(null), [i, l] = x(!1), [c, d] = x(!1), [y, p] = x(0), [b, F] = x(null), S = de(!1), T = de(null), L = ae(async () => {
2308
+ function Zr(e) {
2309
+ const { uploadDocumentService: t } = Le(), [a, n] = x(null), [i, l] = x(!1), [c, d] = x(!1), [y, p] = x(0), [b, F] = x(null), S = de(!1), T = de(null), L = ae(async () => {
2295
2310
  if (e) {
2296
2311
  if (S.current) {
2297
2312
  console.log("[UploadDocument] Load already in progress, skipping...");
@@ -2334,8 +2349,8 @@ function Xr(e) {
2334
2349
  submit: v
2335
2350
  };
2336
2351
  }
2337
- function rn(e) {
2338
- const { appropriatenessTestService: t } = Te(), [a, n] = x(null), [i, l] = x(!1), [c, d] = x(!1), [y, p] = x(null), [b, F] = x(null), S = de(!1), T = de(null), L = ae(async () => {
2352
+ function an(e) {
2353
+ const { appropriatenessTestService: t } = Le(), [a, n] = x(null), [i, l] = x(!1), [c, d] = x(!1), [y, p] = x(null), [b, F] = x(null), S = de(!1), T = de(null), L = ae(async () => {
2339
2354
  if (e) {
2340
2355
  if (S.current) {
2341
2356
  console.log("[AppropriatenessTest] Load already in progress, skipping...");
@@ -2379,8 +2394,8 @@ function rn(e) {
2379
2394
  submit: v
2380
2395
  };
2381
2396
  }
2382
- function Zr(e) {
2383
- const { overviewService: t } = Te(), [a, n] = x(null), [i, l] = x(!1), [c, d] = x(!1), [y, p] = x(null), b = de(!1), F = de(null), S = ae(async () => {
2397
+ function ea(e) {
2398
+ const { overviewService: t } = Le(), [a, n] = x(null), [i, l] = x(!1), [c, d] = x(!1), [y, p] = x(null), b = de(!1), F = de(null), S = ae(async () => {
2384
2399
  if (e) {
2385
2400
  if (b.current) {
2386
2401
  console.log("[Overview] Load already in progress, skipping...");
@@ -2421,8 +2436,8 @@ function Zr(e) {
2421
2436
  passOverview: T
2422
2437
  };
2423
2438
  }
2424
- function ea(e) {
2425
- const { identityService: t } = Te(), [a, n] = x(
2439
+ function ta(e) {
2440
+ const { identityService: t } = Le(), [a, n] = x(
2426
2441
  null
2427
2442
  ), [i, l] = x(!1), [c, d] = x(null), y = de(!1), p = ae(
2428
2443
  async (S, T) => {
@@ -2507,9 +2522,9 @@ function ea(e) {
2507
2522
  restartIdentity: F
2508
2523
  };
2509
2524
  }
2510
- function ta(e) {
2511
- const { riskScoringService: t, applicantService: a } = Te(), [n, i] = x(null), [l, c] = x({}), [d, y] = x(!1), [p, b] = x(!1), [F, S] = x(null), [T, L] = x(null), v = de(!1), N = de(null), B = ae(async () => {
2512
- var M;
2525
+ function ra(e) {
2526
+ const { riskScoringService: t, applicantService: a } = Le(), [n, i] = x(null), [l, c] = x({}), [d, y] = x(!1), [p, b] = x(!1), [F, S] = x(null), [T, L] = x(null), v = de(!1), N = de(null), B = ae(async () => {
2527
+ var P;
2513
2528
  if (e) {
2514
2529
  if (v.current) {
2515
2530
  console.log("[RiskScoring] Load already in progress, skipping...");
@@ -2517,11 +2532,11 @@ function ta(e) {
2517
2532
  }
2518
2533
  v.current = !0, y(!0), S(null);
2519
2534
  try {
2520
- const [O, Z] = await Promise.all([
2535
+ const [z, Z] = await Promise.all([
2521
2536
  t.getRiskCriterias(e),
2522
2537
  a.getApplicantData(e).catch(() => null)
2523
2538
  ]);
2524
- if (i(O), (M = Z == null ? void 0 : Z.riskScoringResults) != null && M.length) {
2539
+ if (i(z), (P = Z == null ? void 0 : Z.riskScoringResults) != null && P.length) {
2525
2540
  const ne = Z.riskScoringResults[0], R = {};
2526
2541
  for (const f of ne.riskCriteriaResults ?? [])
2527
2542
  if (f.riskCriteriaId != null && f.answer != null && f.answer !== "") {
@@ -2533,8 +2548,8 @@ function ta(e) {
2533
2548
  c(R);
2534
2549
  }
2535
2550
  N.current = e;
2536
- } catch (O) {
2537
- S(O);
2551
+ } catch (z) {
2552
+ S(z);
2538
2553
  } finally {
2539
2554
  y(!1), v.current = !1;
2540
2555
  }
@@ -2544,13 +2559,13 @@ function ta(e) {
2544
2559
  e && N.current !== e && B();
2545
2560
  }, [e]);
2546
2561
  const Y = ae(
2547
- async (M) => {
2562
+ async (P) => {
2548
2563
  b(!0), S(null);
2549
2564
  try {
2550
- const O = await t.submitRiskScoring(M);
2551
- return L(O), O;
2552
- } catch (O) {
2553
- throw S(O), O;
2565
+ const z = await t.submitRiskScoring(P);
2566
+ return L(z), z;
2567
+ } catch (z) {
2568
+ throw S(z), z;
2554
2569
  } finally {
2555
2570
  b(!1);
2556
2571
  }
@@ -2568,8 +2583,8 @@ function ta(e) {
2568
2583
  submit: Y
2569
2584
  };
2570
2585
  }
2571
- function Bt() {
2572
- const { applicantService: e, config: t } = Te(), [a, n] = x(!1), [i, l] = x(null), c = de(!1), d = de(!1), y = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(T) {
2586
+ function _t() {
2587
+ const { applicantService: e, config: t } = Le(), [a, n] = x(!1), [i, l] = x(null), c = de(!1), d = de(!1), y = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(T) {
2573
2588
  const L = Math.random() * 16 | 0;
2574
2589
  return (T === "x" ? L : L & 3 | 8).toString(16);
2575
2590
  }), p = ae(
@@ -2642,7 +2657,7 @@ function Bt() {
2642
2657
  stopProgress: S
2643
2658
  };
2644
2659
  }
2645
- const ra = {
2660
+ const aa = {
2646
2661
  primary: {
2647
2662
  backgroundColor: "var(--metakyc-primary, #2563eb)",
2648
2663
  color: "#ffffff",
@@ -2690,7 +2705,7 @@ const ra = {
2690
2705
  return /* @__PURE__ */ o(
2691
2706
  "button",
2692
2707
  {
2693
- className: Ae(y, p[a], l),
2708
+ className: Te(y, p[a], l),
2694
2709
  style: {
2695
2710
  display: "inline-flex",
2696
2711
  alignItems: "center",
@@ -2703,7 +2718,7 @@ const ra = {
2703
2718
  opacity: i || n ? 0.5 : 1,
2704
2719
  lineHeight: "1.25rem",
2705
2720
  ...b[a],
2706
- ...ra[t],
2721
+ ...aa[t],
2707
2722
  ...c
2708
2723
  },
2709
2724
  disabled: i || n,
@@ -2762,7 +2777,7 @@ const ra = {
2762
2777
  "input",
2763
2778
  {
2764
2779
  ref: y,
2765
- className: Ae(
2780
+ className: Te(
2766
2781
  "block w-full rounded-lg border px-3 py-2 text-sm transition-colors",
2767
2782
  "focus:outline-none focus:ring-2 focus:ring-offset-0",
2768
2783
  "disabled:opacity-60 disabled:cursor-not-allowed",
@@ -2791,7 +2806,7 @@ be.displayName = "Input";
2791
2806
  const te = ({ children: e, className: t, style: a, ...n }) => /* @__PURE__ */ r(
2792
2807
  "div",
2793
2808
  {
2794
- className: Ae("metakyc-card rounded-xl shadow-sm border", t),
2809
+ className: Te("metakyc-card rounded-xl shadow-sm border", t),
2795
2810
  style: {
2796
2811
  backgroundColor: "var(--metakyc-surface, #ffffff)",
2797
2812
  borderColor: "var(--metakyc-border, #e5e7eb)",
@@ -2807,7 +2822,7 @@ const te = ({ children: e, className: t, style: a, ...n }) => /* @__PURE__ */ r(
2807
2822
  ), Se = ({ children: e, className: t, style: a, ...n }) => /* @__PURE__ */ r(
2808
2823
  "div",
2809
2824
  {
2810
- className: Ae("px-6 py-4 border-b", t),
2825
+ className: Te("px-6 py-4 border-b", t),
2811
2826
  style: {
2812
2827
  padding: "1rem 1.5rem",
2813
2828
  borderBottomWidth: "1px",
@@ -2821,7 +2836,7 @@ const te = ({ children: e, className: t, style: a, ...n }) => /* @__PURE__ */ r(
2821
2836
  ), re = ({ children: e, className: t, style: a, ...n }) => /* @__PURE__ */ r(
2822
2837
  "div",
2823
2838
  {
2824
- className: Ae("px-6 py-4", t),
2839
+ className: Te("px-6 py-4", t),
2825
2840
  style: { padding: "1rem 1.5rem", ...a },
2826
2841
  ...n,
2827
2842
  children: e
@@ -2829,7 +2844,7 @@ const te = ({ children: e, className: t, style: a, ...n }) => /* @__PURE__ */ r(
2829
2844
  ), Ce = ({ children: e, className: t, style: a, ...n }) => /* @__PURE__ */ r(
2830
2845
  "div",
2831
2846
  {
2832
- className: Ae("px-6 py-4 border-t", t),
2847
+ className: Te("px-6 py-4 border-t", t),
2833
2848
  style: {
2834
2849
  padding: "1rem 1.5rem",
2835
2850
  borderTopWidth: "1px",
@@ -2840,7 +2855,7 @@ const te = ({ children: e, className: t, style: a, ...n }) => /* @__PURE__ */ r(
2840
2855
  ...n,
2841
2856
  children: e
2842
2857
  }
2843
- ), aa = {
2858
+ ), na = {
2844
2859
  display: "inline-flex",
2845
2860
  alignItems: "center",
2846
2861
  justifyContent: "center",
@@ -2874,7 +2889,7 @@ const te = ({ children: e, className: t, style: a, ...n }) => /* @__PURE__ */ r(
2874
2889
  (d.key === " " || d.key === "Enter") && (d.preventDefault(), a || t(!e));
2875
2890
  },
2876
2891
  style: {
2877
- ...aa,
2892
+ ...na,
2878
2893
  backgroundColor: e ? c : l,
2879
2894
  borderColor: e ? c : i,
2880
2895
  opacity: a ? 0.5 : 1,
@@ -2903,20 +2918,21 @@ const te = ({ children: e, className: t, style: a, ...n }) => /* @__PURE__ */ r(
2903
2918
  )
2904
2919
  }
2905
2920
  );
2906
- }, na = {
2907
- // Theme-aware variants
2921
+ }, ia = {
2908
2922
  default: {
2909
2923
  backgroundColor: "var(--metakyc-surface, #f3f4f6)",
2910
2924
  color: "var(--metakyc-text-secondary, #6b7280)"
2911
2925
  },
2926
+ // Inherits input styling — matches inputs/selects visually
2912
2927
  info: {
2913
- backgroundColor: "var(--metakyc-primary-light, #dbeafe)",
2914
- color: "var(--metakyc-primary, #2563eb)"
2928
+ backgroundColor: "var(--metakyc-input-bg, var(--metakyc-surface, #f9fafb))",
2929
+ color: "var(--metakyc-input-text, var(--metakyc-text-secondary, #6b7280))",
2930
+ border: "1px solid var(--metakyc-input-border, var(--metakyc-border, #e5e7eb))"
2915
2931
  },
2916
- // Semantic variants — intentional fixed colors
2917
2932
  success: {
2918
- backgroundColor: "#d1fae5",
2919
- color: "#065f46"
2933
+ backgroundColor: "var(--metakyc-input-bg, var(--metakyc-surface, #f9fafb))",
2934
+ color: "var(--metakyc-input-text, var(--metakyc-text-secondary, #6b7280))",
2935
+ border: "1px solid var(--metakyc-input-border, var(--metakyc-border, #e5e7eb))"
2920
2936
  },
2921
2937
  danger: {
2922
2938
  backgroundColor: "#fee2e2",
@@ -2926,14 +2942,14 @@ const te = ({ children: e, className: t, style: a, ...n }) => /* @__PURE__ */ r(
2926
2942
  backgroundColor: "#fef3c7",
2927
2943
  color: "#92400e"
2928
2944
  }
2929
- }, _t = ({ children: e, variant: t = "default", className: a, style: n, ...i }) => /* @__PURE__ */ r(
2945
+ }, jt = ({ children: e, variant: t = "default", className: a, style: n, ...i }) => /* @__PURE__ */ r(
2930
2946
  "span",
2931
2947
  {
2932
- className: Ae(
2948
+ className: Te(
2933
2949
  "inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",
2934
2950
  a
2935
2951
  ),
2936
- style: { ...na[t], ...n },
2952
+ style: { ...ia[t], ...n },
2937
2953
  ...i,
2938
2954
  children: e
2939
2955
  }
@@ -2943,10 +2959,10 @@ const te = ({ children: e, className: t, style: a, ...n }) => /* @__PURE__ */ r(
2943
2959
  md: "h-8 w-8",
2944
2960
  lg: "h-12 w-12"
2945
2961
  };
2946
- return /* @__PURE__ */ r("div", { className: Ae("flex items-center justify-center", t), ...a, children: /* @__PURE__ */ o(
2962
+ return /* @__PURE__ */ r("div", { className: Te("flex items-center justify-center", t), ...a, children: /* @__PURE__ */ o(
2947
2963
  "svg",
2948
2964
  {
2949
- className: Ae("animate-spin text-primary-500", n[e]),
2965
+ className: Te("animate-spin text-primary-500", n[e]),
2950
2966
  xmlns: "http://www.w3.org/2000/svg",
2951
2967
  fill: "none",
2952
2968
  viewBox: "0 0 24 24",
@@ -2990,7 +3006,7 @@ const te = ({ children: e, className: t, style: a, ...n }) => /* @__PURE__ */ r(
2990
3006
  "select",
2991
3007
  {
2992
3008
  ref: y,
2993
- className: Ae(
3009
+ className: Te(
2994
3010
  "block w-full rounded-lg border px-3 py-2 text-sm transition-colors",
2995
3011
  "focus:outline-none focus:ring-2 focus:ring-offset-0",
2996
3012
  "disabled:opacity-60 disabled:cursor-not-allowed",
@@ -3040,7 +3056,7 @@ const te = ({ children: e, className: t, style: a, ...n }) => /* @__PURE__ */ r(
3040
3056
  ] })
3041
3057
  );
3042
3058
  Nt.displayName = "Select";
3043
- const At = 280, ia = ({
3059
+ const Tt = 280, oa = ({
3044
3060
  label: e,
3045
3061
  value: t,
3046
3062
  onChange: a,
@@ -3058,12 +3074,12 @@ const At = 280, ia = ({
3058
3074
  primaryColor: "#2563eb",
3059
3075
  primaryLight: "#eff6ff",
3060
3076
  hoverBg: "#f9fafb"
3061
- }), B = de(null), Y = de(null), M = de(null), O = ae(() => {
3077
+ }), B = de(null), Y = de(null), P = de(null), z = ae(() => {
3062
3078
  if (!Y.current) return null;
3063
- const A = Y.current.getBoundingClientRect(), _ = window.innerHeight - A.bottom < At && A.top > At;
3079
+ const A = Y.current.getBoundingClientRect(), _ = window.innerHeight - A.bottom < Tt && A.top > Tt;
3064
3080
  return { top: _ ? A.top : A.bottom + 4, left: A.left, width: A.width, openUp: _ };
3065
3081
  }, []), Z = ae(() => {
3066
- const A = getComputedStyle(document.querySelector(".metakyc-sdk") || document.documentElement), U = (H, he) => A.getPropertyValue(H).trim() || he, _ = U("--metakyc-input-bg", U("--metakyc-background", "#ffffff"));
3082
+ const A = getComputedStyle(document.querySelector(".metakyc-sdk") || document.documentElement), U = (H, ge) => A.getPropertyValue(H).trim() || ge, _ = U("--metakyc-input-bg", U("--metakyc-background", "#ffffff"));
3067
3083
  N({
3068
3084
  bg: _,
3069
3085
  borderColor: U("--metakyc-input-border", U("--metakyc-border", "#d1d5db")),
@@ -3076,29 +3092,29 @@ const At = 280, ia = ({
3076
3092
  }, []), ne = ae(() => {
3077
3093
  if (y) return;
3078
3094
  Z();
3079
- const A = O();
3095
+ const A = z();
3080
3096
  A && L(A), b(!0);
3081
- }, [y, O, Z]), R = ae(() => {
3097
+ }, [y, z, Z]), R = ae(() => {
3082
3098
  b(!1), S("");
3083
3099
  }, []);
3084
3100
  fe(() => {
3085
3101
  if (!p) return;
3086
3102
  const A = (U) => {
3087
- var H, he;
3103
+ var H, ge;
3088
3104
  const _ = U.target;
3089
- !((H = B.current) != null && H.contains(_)) && !((he = M.current) != null && he.contains(_)) && R();
3105
+ !((H = B.current) != null && H.contains(_)) && !((ge = P.current) != null && ge.contains(_)) && R();
3090
3106
  };
3091
3107
  return document.addEventListener("mousedown", A), () => document.removeEventListener("mousedown", A);
3092
3108
  }, [p, R]), fe(() => {
3093
3109
  if (!p) return;
3094
3110
  const A = () => {
3095
- const U = O();
3111
+ const U = z();
3096
3112
  U && L(U);
3097
3113
  };
3098
3114
  return window.addEventListener("scroll", A, !0), window.addEventListener("resize", A), () => {
3099
3115
  window.removeEventListener("scroll", A, !0), window.removeEventListener("resize", A);
3100
3116
  };
3101
- }, [p, O]);
3117
+ }, [p, z]);
3102
3118
  const f = n.filter(
3103
3119
  (A) => A.label.toLowerCase().includes(F.toLowerCase())
3104
3120
  ), $ = (A) => {
@@ -3111,7 +3127,7 @@ const At = 280, ia = ({
3111
3127
  }, { bg: j, borderColor: Q, textPrimary: ie, textSecondary: q, primaryColor: ve, primaryLight: pe, hoverBg: ue } = v, xe = p && T && /* @__PURE__ */ o(
3112
3128
  "div",
3113
3129
  {
3114
- ref: M,
3130
+ ref: P,
3115
3131
  className: "metakyc-multiselect-dropdown",
3116
3132
  style: {
3117
3133
  position: "fixed",
@@ -3232,7 +3248,7 @@ const At = 280, ia = ({
3232
3248
  {
3233
3249
  ref: Y,
3234
3250
  onClick: () => p ? R() : ne(),
3235
- className: Ae(
3251
+ className: Te(
3236
3252
  "metakyc-multiselect-trigger",
3237
3253
  "w-full px-3 py-2 rounded-lg border text-sm transition-colors relative",
3238
3254
  y ? "opacity-50 cursor-not-allowed" : "cursor-pointer"
@@ -3307,7 +3323,7 @@ const At = 280, ia = ({
3307
3323
  ),
3308
3324
  typeof document < "u" && xe ? Ct(xe, document.body) : null
3309
3325
  ] });
3310
- }, Tt = 260, Ye = ({
3326
+ }, Lt = 260, Ye = ({
3311
3327
  label: e,
3312
3328
  error: t,
3313
3329
  helperText: a,
@@ -3320,8 +3336,8 @@ const At = 280, ia = ({
3320
3336
  required: p = !1,
3321
3337
  className: b
3322
3338
  }) => {
3323
- var he;
3324
- const F = d || y, [S, T] = x(!1), [L, v] = x(""), [N, B] = x(null), [Y, M] = x({
3339
+ var ge;
3340
+ const F = d || y, [S, T] = x(!1), [L, v] = x(""), [N, B] = x(null), [Y, P] = x({
3325
3341
  bg: "#ffffff",
3326
3342
  border: "#d1d5db",
3327
3343
  text: "#111827",
@@ -3329,9 +3345,9 @@ const At = 280, ia = ({
3329
3345
  primary: "#2563eb",
3330
3346
  primaryLight: "#eff6ff",
3331
3347
  hoverBg: "#f9fafb"
3332
- }), O = ae(() => {
3348
+ }), z = ae(() => {
3333
3349
  const E = getComputedStyle(document.querySelector(".metakyc-sdk") || document.documentElement), ee = (oe, Ne) => E.getPropertyValue(oe).trim() || Ne, ye = ee("--metakyc-input-bg", ee("--metakyc-background", "#ffffff"));
3334
- M({
3350
+ P({
3335
3351
  bg: ye,
3336
3352
  border: ee("--metakyc-input-border", ee("--metakyc-border", "#d1d5db")),
3337
3353
  text: ee("--metakyc-input-text", ee("--metakyc-text-primary", "#111827")),
@@ -3342,7 +3358,7 @@ const At = 280, ia = ({
3342
3358
  });
3343
3359
  }, []), Z = de(null), ne = de(null), R = de(null), f = de(null), $ = ae(() => {
3344
3360
  if (!ne.current) return null;
3345
- const E = ne.current.getBoundingClientRect(), ye = window.innerHeight - E.bottom < Tt && E.top > Tt;
3361
+ const E = ne.current.getBoundingClientRect(), ye = window.innerHeight - E.bottom < Lt && E.top > Lt;
3346
3362
  return {
3347
3363
  top: ye ? E.top : E.bottom + 4,
3348
3364
  left: E.left,
@@ -3351,10 +3367,10 @@ const At = 280, ia = ({
3351
3367
  };
3352
3368
  }, []), G = ae(() => {
3353
3369
  if (F) return;
3354
- O();
3370
+ z();
3355
3371
  const E = $();
3356
3372
  E && B(E), T(!0);
3357
- }, [F, $, O]), V = ae(() => {
3373
+ }, [F, $, z]), V = ae(() => {
3358
3374
  T(!1), v("");
3359
3375
  }, []), j = () => S ? V() : G();
3360
3376
  fe(() => {
@@ -3382,7 +3398,7 @@ const At = 280, ia = ({
3382
3398
  }, [S]);
3383
3399
  const Q = n.filter(
3384
3400
  (E) => E.label.toLowerCase().includes(L.toLowerCase()) || E.value.toLowerCase().includes(L.toLowerCase())
3385
- ), ie = (he = n.find((E) => E.value === l)) == null ? void 0 : he.label, q = (E, ee) => {
3401
+ ), ie = (ge = n.find((E) => E.value === l)) == null ? void 0 : ge.label, q = (E, ee) => {
3386
3402
  F || ee || (c(E), V());
3387
3403
  }, { bg: ve, border: pe, text: ue, textSecondary: xe, primary: A, primaryLight: U, hoverBg: _ } = Y, H = S && N && /* @__PURE__ */ o(
3388
3404
  "div",
@@ -3479,7 +3495,7 @@ const At = 280, ia = ({
3479
3495
  return /* @__PURE__ */ o(
3480
3496
  "div",
3481
3497
  {
3482
- className: Ae("w-full metakyc-searchable-select", b),
3498
+ className: Te("w-full metakyc-searchable-select", b),
3483
3499
  ref: Z,
3484
3500
  children: [
3485
3501
  e && /* @__PURE__ */ o(
@@ -3503,7 +3519,7 @@ const At = 280, ia = ({
3503
3519
  onKeyDown: (E) => {
3504
3520
  (E.key === "Enter" || E.key === " ") && (E.preventDefault(), j()), E.key === "Escape" && V();
3505
3521
  },
3506
- className: Ae(
3522
+ className: Te(
3507
3523
  "metakyc-searchable-select-trigger",
3508
3524
  "w-full px-3 py-2 rounded-lg border text-sm transition-colors text-left",
3509
3525
  "flex items-center justify-between gap-2",
@@ -3539,11 +3555,11 @@ const At = 280, ia = ({
3539
3555
  );
3540
3556
  };
3541
3557
  Ye.displayName = "SearchableSelect";
3542
- function oa(e) {
3558
+ function sa(e) {
3543
3559
  const t = e.type;
3544
3560
  return t.startsWith("image/") ? "image" : t === "application/pdf" ? "pdf" : "file";
3545
3561
  }
3546
- const sa = ({
3562
+ const la = ({
3547
3563
  label: e,
3548
3564
  subtitle: t,
3549
3565
  error: a,
@@ -3570,15 +3586,15 @@ const sa = ({
3570
3586
  R.preventDefault(), R.stopPropagation(), F(!1);
3571
3587
  }, []), Y = ae((R) => {
3572
3588
  R.preventDefault(), R.stopPropagation(), F(!1), v(R.dataTransfer.files);
3573
- }, [v]), M = () => {
3589
+ }, [v]), P = () => {
3574
3590
  var R;
3575
3591
  (R = L.current) == null || R.click();
3576
- }, O = (R) => {
3592
+ }, z = (R) => {
3577
3593
  T(null);
3578
3594
  const f = y.filter(($, G) => G !== R);
3579
3595
  d == null || d(f);
3580
3596
  }, Z = a || S, ne = y.length > 0;
3581
- return /* @__PURE__ */ o("div", { className: Ae("metakyc-file-upload", p), style: { width: "100%" }, children: [
3597
+ return /* @__PURE__ */ o("div", { className: Te("metakyc-file-upload", p), style: { width: "100%" }, children: [
3582
3598
  e && /* @__PURE__ */ o("div", { style: { marginBottom: "8px" }, children: [
3583
3599
  /* @__PURE__ */ o(
3584
3600
  "label",
@@ -3601,7 +3617,7 @@ const sa = ({
3601
3617
  "div",
3602
3618
  {
3603
3619
  className: "metakyc-file-dropzone",
3604
- onClick: M,
3620
+ onClick: P,
3605
3621
  onDragOver: N,
3606
3622
  onDragLeave: B,
3607
3623
  onDrop: Y,
@@ -3683,7 +3699,7 @@ const sa = ({
3683
3699
  }
3684
3700
  ),
3685
3701
  ne && /* @__PURE__ */ r("div", { style: { marginTop: "12px", display: "flex", flexDirection: "column", gap: "8px" }, children: y.map((R, f) => {
3686
- const $ = oa(R), G = $ === "image", V = G ? URL.createObjectURL(R) : null;
3702
+ const $ = sa(R), G = $ === "image", V = G ? URL.createObjectURL(R) : null;
3687
3703
  return /* @__PURE__ */ o(
3688
3704
  "div",
3689
3705
  {
@@ -3749,7 +3765,7 @@ const sa = ({
3749
3765
  {
3750
3766
  type: "button",
3751
3767
  onClick: (j) => {
3752
- j.stopPropagation(), O(f);
3768
+ j.stopPropagation(), z(f);
3753
3769
  },
3754
3770
  style: {
3755
3771
  display: "flex",
@@ -3785,7 +3801,7 @@ const sa = ({
3785
3801
  }) }),
3786
3802
  Z && /* @__PURE__ */ r("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", marginTop: "6px" }, children: Z })
3787
3803
  ] });
3788
- }, la = yt(
3804
+ }, ca = yt(
3789
3805
  ({ countryCode: e = "+1", onCountryCodeChange: t, className: a, ...n }, i) => /* @__PURE__ */ o("div", { className: "w-full", children: [
3790
3806
  n.label && /* @__PURE__ */ o(
3791
3807
  "label",
@@ -3805,7 +3821,7 @@ const sa = ({
3805
3821
  type: "text",
3806
3822
  value: e,
3807
3823
  onChange: (l) => t == null ? void 0 : t(l.target.value),
3808
- className: Ae(
3824
+ className: Te(
3809
3825
  "w-20 rounded-lg border px-3 py-2 text-sm",
3810
3826
  "focus:outline-none focus:ring-2 focus:ring-offset-0"
3811
3827
  ),
@@ -3823,7 +3839,7 @@ const sa = ({
3823
3839
  {
3824
3840
  ref: i,
3825
3841
  type: "tel",
3826
- className: Ae("flex-1", a),
3842
+ className: Te("flex-1", a),
3827
3843
  ...n,
3828
3844
  label: ""
3829
3845
  }
@@ -3832,28 +3848,28 @@ const sa = ({
3832
3848
  n.error && /* @__PURE__ */ r("p", { className: "mt-1 text-sm text-danger-500", children: n.error })
3833
3849
  ] })
3834
3850
  );
3835
- la.displayName = "PhoneInput";
3851
+ ca.displayName = "PhoneInput";
3836
3852
  /**
3837
3853
  * @license lucide-react v0.574.0 - ISC
3838
3854
  *
3839
3855
  * This source code is licensed under the ISC license.
3840
3856
  * See the LICENSE file in the root directory of this source tree.
3841
3857
  */
3842
- const jt = (...e) => e.filter((t, a, n) => !!t && t.trim() !== "" && n.indexOf(t) === a).join(" ").trim();
3858
+ const Ht = (...e) => e.filter((t, a, n) => !!t && t.trim() !== "" && n.indexOf(t) === a).join(" ").trim();
3843
3859
  /**
3844
3860
  * @license lucide-react v0.574.0 - ISC
3845
3861
  *
3846
3862
  * This source code is licensed under the ISC license.
3847
3863
  * See the LICENSE file in the root directory of this source tree.
3848
3864
  */
3849
- const ca = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
3865
+ const da = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
3850
3866
  /**
3851
3867
  * @license lucide-react v0.574.0 - ISC
3852
3868
  *
3853
3869
  * This source code is licensed under the ISC license.
3854
3870
  * See the LICENSE file in the root directory of this source tree.
3855
3871
  */
3856
- const da = (e) => e.replace(
3872
+ const ma = (e) => e.replace(
3857
3873
  /^([A-Z])|[\s-_]+(\w)/g,
3858
3874
  (t, a, n) => n ? n.toUpperCase() : a.toLowerCase()
3859
3875
  );
@@ -3863,8 +3879,8 @@ const da = (e) => e.replace(
3863
3879
  * This source code is licensed under the ISC license.
3864
3880
  * See the LICENSE file in the root directory of this source tree.
3865
3881
  */
3866
- const Lt = (e) => {
3867
- const t = da(e);
3882
+ const Pt = (e) => {
3883
+ const t = ma(e);
3868
3884
  return t.charAt(0).toUpperCase() + t.slice(1);
3869
3885
  };
3870
3886
  /**
@@ -3873,7 +3889,7 @@ const Lt = (e) => {
3873
3889
  * This source code is licensed under the ISC license.
3874
3890
  * See the LICENSE file in the root directory of this source tree.
3875
3891
  */
3876
- var ma = {
3892
+ var pa = {
3877
3893
  xmlns: "http://www.w3.org/2000/svg",
3878
3894
  width: 24,
3879
3895
  height: 24,
@@ -3890,7 +3906,7 @@ var ma = {
3890
3906
  * This source code is licensed under the ISC license.
3891
3907
  * See the LICENSE file in the root directory of this source tree.
3892
3908
  */
3893
- const pa = (e) => {
3909
+ const ua = (e) => {
3894
3910
  for (const t in e)
3895
3911
  if (t.startsWith("aria-") || t === "role" || t === "title")
3896
3912
  return !0;
@@ -3902,7 +3918,7 @@ const pa = (e) => {
3902
3918
  * This source code is licensed under the ISC license.
3903
3919
  * See the LICENSE file in the root directory of this source tree.
3904
3920
  */
3905
- const ua = yt(
3921
+ const ya = yt(
3906
3922
  ({
3907
3923
  color: e = "currentColor",
3908
3924
  size: t = 24,
@@ -3916,13 +3932,13 @@ const ua = yt(
3916
3932
  "svg",
3917
3933
  {
3918
3934
  ref: y,
3919
- ...ma,
3935
+ ...pa,
3920
3936
  width: t,
3921
3937
  height: t,
3922
3938
  stroke: e,
3923
3939
  strokeWidth: n ? Number(a) * 24 / Number(t) : a,
3924
- className: jt("lucide", i),
3925
- ...!l && !pa(d) && { "aria-hidden": "true" },
3940
+ className: Ht("lucide", i),
3941
+ ...!l && !ua(d) && { "aria-hidden": "true" },
3926
3942
  ...d
3927
3943
  },
3928
3944
  [
@@ -3937,20 +3953,20 @@ const ua = yt(
3937
3953
  * This source code is licensed under the ISC license.
3938
3954
  * See the LICENSE file in the root directory of this source tree.
3939
3955
  */
3940
- const Ht = (e, t) => {
3956
+ const Wt = (e, t) => {
3941
3957
  const a = yt(
3942
- ({ className: n, ...i }, l) => St(ua, {
3958
+ ({ className: n, ...i }, l) => St(ya, {
3943
3959
  ref: l,
3944
3960
  iconNode: t,
3945
- className: jt(
3946
- `lucide-${ca(Lt(e))}`,
3961
+ className: Ht(
3962
+ `lucide-${da(Pt(e))}`,
3947
3963
  `lucide-${e}`,
3948
3964
  n
3949
3965
  ),
3950
3966
  ...i
3951
3967
  })
3952
3968
  );
3953
- return a.displayName = Lt(e), a;
3969
+ return a.displayName = Pt(e), a;
3954
3970
  };
3955
3971
  /**
3956
3972
  * @license lucide-react v0.574.0 - ISC
@@ -3958,15 +3974,15 @@ const Ht = (e, t) => {
3958
3974
  * This source code is licensed under the ISC license.
3959
3975
  * See the LICENSE file in the root directory of this source tree.
3960
3976
  */
3961
- const ya = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Wt = Ht("chevron-left", ya);
3977
+ const ha = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Ut = Wt("chevron-left", ha);
3962
3978
  /**
3963
3979
  * @license lucide-react v0.574.0 - ISC
3964
3980
  *
3965
3981
  * This source code is licensed under the ISC license.
3966
3982
  * See the LICENSE file in the root directory of this source tree.
3967
3983
  */
3968
- const ga = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Ut = Ht("chevron-right", ga);
3969
- function ha(e, t) {
3984
+ const ga = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Kt = Wt("chevron-right", ga);
3985
+ function fa(e, t) {
3970
3986
  const a = !t || t.length === 0 || t.every((n) => !n || !n.trim());
3971
3987
  if (e.isRequired && a)
3972
3988
  return e.errorMessage || "This field is required";
@@ -3995,7 +4011,7 @@ function ha(e, t) {
3995
4011
  }
3996
4012
  return null;
3997
4013
  }
3998
- function fa(e) {
4014
+ function ka(e) {
3999
4015
  const t = e.flatMap(
4000
4016
  (n, i) => (n.questions ?? []).map((l, c) => ({ question: l, groupIndex: i, qIdx: c }))
4001
4017
  ), a = /* @__PURE__ */ new Map();
@@ -4005,36 +4021,36 @@ function fa(e) {
4005
4021
  }
4006
4022
  return Array.from(a.entries()).sort(([n], [i]) => n - i).map(([, n]) => n);
4007
4023
  }
4008
- const ka = ({
4024
+ const ba = ({
4009
4025
  applicantId: e,
4010
4026
  onComplete: t,
4011
4027
  onBack: a
4012
4028
  }) => {
4013
- const { questionnaire: n, initialAnswers: i, isLoading: l, isSubmitting: c, error: d, submit: y } = Jr(e), [p, b] = x({}), [F, S] = x({}), [T, L] = x(0);
4029
+ const { questionnaire: n, initialAnswers: i, isLoading: l, isSubmitting: c, error: d, submit: y } = Xr(e), [p, b] = x({}), [F, S] = x({}), [T, L] = x(0);
4014
4030
  we.useEffect(() => {
4015
4031
  i && Object.keys(i).length > 0 && Object.keys(p).length === 0 && b(i);
4016
4032
  }, [i]);
4017
4033
  const v = De(
4018
- () => n ? fa(n.questionGroups) : [],
4034
+ () => n ? ka(n.questionGroups) : [],
4019
4035
  [n]
4020
4036
  ), N = T === v.length - 1, B = v[T] ?? [], Y = ae((R, f) => {
4021
4037
  b(($) => ({ ...$, [R]: f })), S(($) => {
4022
4038
  const G = { ...$ };
4023
4039
  return delete G[R], G;
4024
4040
  });
4025
- }, []), M = ae(() => {
4041
+ }, []), P = ae(() => {
4026
4042
  const R = {};
4027
4043
  for (const { question: f } of B) {
4028
- const $ = ha(f, p[f.id] ?? []);
4044
+ const $ = fa(f, p[f.id] ?? []);
4029
4045
  $ && (R[f.id] = $);
4030
4046
  }
4031
4047
  return S((f) => ({ ...f, ...R })), Object.keys(R).length === 0;
4032
- }, [B, p]), O = () => {
4033
- M() && L((R) => R + 1);
4048
+ }, [B, p]), z = () => {
4049
+ P() && L((R) => R + 1);
4034
4050
  }, Z = () => {
4035
4051
  T > 0 ? L((R) => R - 1) : a == null || a();
4036
4052
  }, ne = async () => {
4037
- if (!(!M() || !n))
4053
+ if (!(!P() || !n))
4038
4054
  try {
4039
4055
  const R = n.questionGroups.flatMap(
4040
4056
  ($) => ($.questions ?? []).map((G) => ({
@@ -4080,7 +4096,7 @@ const ka = ({
4080
4096
  ] })
4081
4097
  ] }),
4082
4098
  /* @__PURE__ */ r(re, { className: "space-y-6", children: B.map(({ question: R }) => /* @__PURE__ */ r(
4083
- ba,
4099
+ xa,
4084
4100
  {
4085
4101
  question: R,
4086
4102
  value: p[R.id] ?? [],
@@ -4098,7 +4114,7 @@ const ka = ({
4098
4114
  onClick: Z,
4099
4115
  style: { display: "flex", alignItems: "center", gap: "4px" },
4100
4116
  children: [
4101
- /* @__PURE__ */ r(Wt, { size: 14 }),
4117
+ /* @__PURE__ */ r(Ut, { size: 14 }),
4102
4118
  T > 0 ? "Previous" : "Back"
4103
4119
  ]
4104
4120
  }
@@ -4115,18 +4131,18 @@ const ka = ({
4115
4131
  J,
4116
4132
  {
4117
4133
  type: "button",
4118
- onClick: O,
4134
+ onClick: z,
4119
4135
  style: { display: "flex", alignItems: "center", gap: "4px" },
4120
4136
  children: [
4121
4137
  "Next",
4122
- /* @__PURE__ */ r(Ut, { size: 14 })
4138
+ /* @__PURE__ */ r(Kt, { size: 14 })
4123
4139
  ]
4124
4140
  }
4125
4141
  )
4126
4142
  ] }),
4127
4143
  d && /* @__PURE__ */ r("div", { className: "mx-6 mb-4 p-3 bg-red-50 border border-red-200 rounded", children: /* @__PURE__ */ r("p", { className: "text-red-600 text-sm", children: d.message }) })
4128
4144
  ] }) : null;
4129
- }, ba = ({ question: e, value: t, error: a, onChange: n }) => {
4145
+ }, xa = ({ question: e, value: t, error: a, onChange: n }) => {
4130
4146
  var c;
4131
4147
  const l = (((c = e.defaultAnswers) == null ? void 0 : c.length) ?? 0) > 0 ? e.showAsDropdown ? e.canMultipleAnswer ? "multi-select" : "single-select" : e.canMultipleAnswer ? "checkbox" : "radio" : "text";
4132
4148
  return /* @__PURE__ */ o("div", { className: "space-y-2", children: [
@@ -4219,7 +4235,7 @@ const ka = ({
4219
4235
  a && l === "text" && null
4220
4236
  ] });
4221
4237
  };
4222
- function xa(e) {
4238
+ function va(e) {
4223
4239
  const t = /* @__PURE__ */ new Map();
4224
4240
  for (const a of e) {
4225
4241
  const n = a.pageNumber != null && a.pageNumber > 0 ? a.pageNumber : 1;
@@ -4227,25 +4243,25 @@ function xa(e) {
4227
4243
  }
4228
4244
  return Array.from(t.entries()).sort(([a], [n]) => a - n).map(([, a]) => a);
4229
4245
  }
4230
- const va = ({
4246
+ const wa = ({
4231
4247
  applicantId: e,
4232
4248
  onComplete: t,
4233
4249
  onBack: a
4234
4250
  }) => {
4235
- const { uploadDocument: n, isLoading: i, isSubmitting: l, error: c, submit: d } = Xr(e), [y, p] = x({}), [b, F] = x(null), [S, T] = x(0), [L, v] = x({}), N = De(
4236
- () => n ? xa(n.uploadDocumentFiles) : [],
4251
+ const { uploadDocument: n, isLoading: i, isSubmitting: l, error: c, submit: d } = Zr(e), [y, p] = x({}), [b, F] = x(null), [S, T] = x(0), [L, v] = x({}), N = De(
4252
+ () => n ? va(n.uploadDocumentFiles) : [],
4237
4253
  [n]
4238
- ), B = N[S] ?? [], Y = S === N.length - 1, M = N.length, O = ae(() => {
4254
+ ), B = N[S] ?? [], Y = S === N.length - 1, P = N.length, z = ae(() => {
4239
4255
  const f = {};
4240
4256
  for (const $ of B)
4241
4257
  $.isRequired && (y[$.id] || []).length === 0 && (f[$.id] = `${$.displayName} is required`);
4242
4258
  return v(f), Object.keys(f).length === 0;
4243
4259
  }, [B, y]), Z = () => {
4244
- O() && (T((f) => f + 1), v({}));
4260
+ z() && (T((f) => f + 1), v({}));
4245
4261
  }, ne = () => {
4246
4262
  S > 0 ? (T((f) => f - 1), v({})) : a == null || a();
4247
4263
  }, R = async () => {
4248
- if (!(!O() || !n)) {
4264
+ if (!(!z() || !n)) {
4249
4265
  F(null);
4250
4266
  try {
4251
4267
  const f = await Promise.all(
@@ -4253,7 +4269,7 @@ const va = ({
4253
4269
  const V = y[G.id] || [], j = await Promise.all(
4254
4270
  V.map(async (Q) => ({
4255
4271
  fileName: Q.name,
4256
- fileData: await Ur(Q)
4272
+ fileData: await Kr(Q)
4257
4273
  }))
4258
4274
  );
4259
4275
  return {
@@ -4311,7 +4327,7 @@ const va = ({
4311
4327
  color: "var(--metakyc-text-secondary, #6b7280)",
4312
4328
  marginTop: "4px"
4313
4329
  }, children: n.subtitle }),
4314
- M > 1 && /* @__PURE__ */ o("div", { style: {
4330
+ P > 1 && /* @__PURE__ */ o("div", { style: {
4315
4331
  display: "flex",
4316
4332
  alignItems: "center",
4317
4333
  justifyContent: "space-between",
@@ -4321,7 +4337,7 @@ const va = ({
4321
4337
  "Page ",
4322
4338
  S + 1,
4323
4339
  " of ",
4324
- M
4340
+ P
4325
4341
  ] }),
4326
4342
  /* @__PURE__ */ r("div", { style: { display: "flex", alignItems: "center", gap: "6px" }, children: N.map((f, $) => /* @__PURE__ */ r(
4327
4343
  "div",
@@ -4375,7 +4391,7 @@ const va = ({
4375
4391
  }, children: n.description })
4376
4392
  ] }),
4377
4393
  /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r("div", { style: { display: "flex", flexDirection: "column", gap: "24px" }, children: B.map((f) => /* @__PURE__ */ r(
4378
- sa,
4394
+ la,
4379
4395
  {
4380
4396
  label: f.displayName,
4381
4397
  subtitle: f.subtitle,
@@ -4444,8 +4460,8 @@ const va = ({
4444
4460
  )
4445
4461
  ] }) })
4446
4462
  ] }) : null;
4447
- }, wa = ({ applicantId: e, onComplete: t, onBack: a }) => {
4448
- const { overview: n, isLoading: i, isSubmitting: l, error: c, passOverview: d } = Zr(e), y = async () => {
4463
+ }, Sa = ({ applicantId: e, onComplete: t, onBack: a }) => {
4464
+ const { overview: n, isLoading: i, isSubmitting: l, error: c, passOverview: d } = ea(e), y = async () => {
4449
4465
  await d(), t == null || t();
4450
4466
  };
4451
4467
  return i ? /* @__PURE__ */ r(te, { children: /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(Me, { className: "my-8" }) }) }) : c ? /* @__PURE__ */ r(te, { children: /* @__PURE__ */ r(re, { children: /* @__PURE__ */ o("p", { className: "text-danger-500", children: [
@@ -4488,7 +4504,7 @@ const va = ({
4488
4504
  ] })
4489
4505
  ] }) : null;
4490
4506
  };
4491
- function Sa(e) {
4507
+ function Ca(e) {
4492
4508
  const t = (e ?? "en").toLowerCase().replace("_", "-");
4493
4509
  try {
4494
4510
  return Intl.NumberFormat.supportedLocalesOf([t]), t;
@@ -4496,11 +4512,11 @@ function Sa(e) {
4496
4512
  return "en";
4497
4513
  }
4498
4514
  }
4499
- function Ca(e) {
4515
+ function Na(e) {
4500
4516
  return e.valueDataType === qe.Money && Array.isArray(e.defaultValues) && e.defaultValues.length > 0;
4501
4517
  }
4502
- function Na(e, t) {
4503
- const a = new Intl.NumberFormat(Sa(t), {
4518
+ function Ia(e, t) {
4519
+ const a = new Intl.NumberFormat(Ca(t), {
4504
4520
  minimumFractionDigits: 0,
4505
4521
  maximumFractionDigits: 2
4506
4522
  });
@@ -4509,7 +4525,7 @@ function Na(e, t) {
4509
4525
  return isNaN(i) ? n : a.format(i);
4510
4526
  });
4511
4527
  }
4512
- function Ia(e, t) {
4528
+ function Ra(e, t) {
4513
4529
  const a = !t || t.length === 0 || t.every((n) => !n || !n.trim());
4514
4530
  if (e.isRequired && a)
4515
4531
  return e.errorMessage || `${e.displayName} is required`;
@@ -4539,29 +4555,29 @@ function Ia(e, t) {
4539
4555
  }
4540
4556
  return null;
4541
4557
  }
4542
- function Ra(e) {
4558
+ function Ea(e) {
4543
4559
  const t = /* @__PURE__ */ new Map();
4544
4560
  return e.forEach((a, n) => {
4545
4561
  const i = a.pageNumber != null && a.pageNumber > 0 ? a.pageNumber : 1;
4546
4562
  t.has(i) || t.set(i, []), t.get(i).push({ criterion: a, idx: n });
4547
4563
  }), Array.from(t.entries()).sort(([a], [n]) => a - n).map(([, a]) => a);
4548
4564
  }
4549
- function Ea(e) {
4565
+ function Fa(e) {
4550
4566
  return e.builtInType === 1 ? "country" : !e.defaultValues || e.defaultValues.length === 0 ? "text" : e.multipleValue ? "checkbox" : "radio";
4551
4567
  }
4552
- const Fa = ({
4568
+ const Aa = ({
4553
4569
  applicantId: e,
4554
4570
  onComplete: t,
4555
4571
  onBack: a
4556
4572
  }) => {
4557
- const { config: n } = Te(), i = n.locale ?? "en", { criteria: l, initialAnswers: c, isLoading: d, isSubmitting: y, error: p, submit: b } = ta(e), [F, S] = x({}), [T, L] = x({}), [v, N] = x(0), [B, Y] = x(!1);
4573
+ const { config: n } = Le(), i = n.locale ?? "en", { criteria: l, initialAnswers: c, isLoading: d, isSubmitting: y, error: p, submit: b } = ra(e), [F, S] = x({}), [T, L] = x({}), [v, N] = x(0), [B, Y] = x(!1);
4558
4574
  we.useEffect(() => {
4559
4575
  c && Object.keys(c).length > 0 && Object.keys(F).length === 0 && S(c);
4560
4576
  }, [c]);
4561
- const M = De(
4562
- () => l && l.length > 0 ? Ra(l) : [],
4577
+ const P = De(
4578
+ () => l && l.length > 0 ? Ea(l) : [],
4563
4579
  [l]
4564
- ), O = v === M.length - 1, Z = M[v] ?? [];
4580
+ ), z = v === P.length - 1, Z = P[v] ?? [];
4565
4581
  we.useEffect(() => {
4566
4582
  !d && l && l.length === 0 && !B && !y && (Y(!0), b({ applicantId: e, criteriaValueInputs: [] }).then(() => t == null ? void 0 : t()).catch(console.error));
4567
4583
  }, [d, l, B, y, b, e, t]);
@@ -4573,7 +4589,7 @@ const Fa = ({
4573
4589
  }, []), R = ae(() => {
4574
4590
  const V = {};
4575
4591
  for (const { criterion: j } of Z) {
4576
- const Q = Ia(j, F[j.id] ?? []);
4592
+ const Q = Ra(j, F[j.id] ?? []);
4577
4593
  Q && (V[j.id] = Q);
4578
4594
  }
4579
4595
  return L((j) => ({ ...j, ...V })), Object.keys(V).length === 0;
@@ -4606,14 +4622,14 @@ const Fa = ({
4606
4622
  /* @__PURE__ */ o(Se, { children: [
4607
4623
  /* @__PURE__ */ r("h2", { className: "text-lg font-bold", children: "Risk Assessment" }),
4608
4624
  /* @__PURE__ */ r("p", { className: "text-sm", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: "Please answer the following questions for risk evaluation" }),
4609
- M.length > 1 && /* @__PURE__ */ o("div", { className: "flex items-center justify-between mt-3", children: [
4625
+ P.length > 1 && /* @__PURE__ */ o("div", { className: "flex items-center justify-between mt-3", children: [
4610
4626
  /* @__PURE__ */ o("span", { className: "text-xs", style: { color: "var(--metakyc-text-muted, #9ca3af)" }, children: [
4611
4627
  "Page ",
4612
4628
  v + 1,
4613
4629
  " of ",
4614
- M.length
4630
+ P.length
4615
4631
  ] }),
4616
- /* @__PURE__ */ r("div", { className: "flex items-center gap-1.5", children: M.map((V, j) => /* @__PURE__ */ r(
4632
+ /* @__PURE__ */ r("div", { className: "flex items-center gap-1.5", children: P.map((V, j) => /* @__PURE__ */ r(
4617
4633
  "div",
4618
4634
  {
4619
4635
  className: "rounded-full transition-all duration-200",
@@ -4628,7 +4644,7 @@ const Fa = ({
4628
4644
  ] })
4629
4645
  ] }),
4630
4646
  /* @__PURE__ */ r(re, { className: "space-y-6", children: Z.map(({ criterion: V }) => /* @__PURE__ */ r(
4631
- Aa,
4647
+ Ta,
4632
4648
  {
4633
4649
  criterion: V,
4634
4650
  value: F[V.id] ?? [],
@@ -4647,12 +4663,12 @@ const Fa = ({
4647
4663
  onClick: $,
4648
4664
  style: { display: "flex", alignItems: "center", gap: "4px" },
4649
4665
  children: [
4650
- /* @__PURE__ */ r(Wt, { size: 14 }),
4666
+ /* @__PURE__ */ r(Ut, { size: 14 }),
4651
4667
  v > 0 ? "Previous" : "Back"
4652
4668
  ]
4653
4669
  }
4654
4670
  ),
4655
- O ? /* @__PURE__ */ r(J, { type: "button", isLoading: y, onClick: G, children: "Continue" }) : /* @__PURE__ */ o(
4671
+ z ? /* @__PURE__ */ r(J, { type: "button", isLoading: y, onClick: G, children: "Continue" }) : /* @__PURE__ */ o(
4656
4672
  J,
4657
4673
  {
4658
4674
  type: "button",
@@ -4660,15 +4676,15 @@ const Fa = ({
4660
4676
  style: { display: "flex", alignItems: "center", gap: "4px" },
4661
4677
  children: [
4662
4678
  "Next",
4663
- /* @__PURE__ */ r(Ut, { size: 14 })
4679
+ /* @__PURE__ */ r(Kt, { size: 14 })
4664
4680
  ]
4665
4681
  }
4666
4682
  )
4667
4683
  ] }),
4668
4684
  p && /* @__PURE__ */ r("div", { className: "mx-6 mb-4 p-3 bg-red-50 border border-red-200 rounded", children: /* @__PURE__ */ r("p", { className: "text-red-600 text-sm", children: p.message }) })
4669
4685
  ] }) : null;
4670
- }, Aa = ({ criterion: e, value: t, error: a, locale: n, onChange: i }) => {
4671
- const l = Ea(e), c = e.valueDataType === qe.Integer || e.valueDataType === qe.Money || e.valueDataType === qe.DigitOnly, d = Ca(e), y = (p) => d ? Na(p, n) : p;
4686
+ }, Ta = ({ criterion: e, value: t, error: a, locale: n, onChange: i }) => {
4687
+ const l = Fa(e), c = e.valueDataType === qe.Integer || e.valueDataType === qe.Money || e.valueDataType === qe.DigitOnly, d = Na(e), y = (p) => d ? Ia(p, n) : p;
4672
4688
  return /* @__PURE__ */ o("div", { className: "space-y-2", children: [
4673
4689
  /* @__PURE__ */ o("label", { className: "block text-sm font-medium", style: { color: "var(--metakyc-text-primary, #111827)" }, children: [
4674
4690
  e.displayName,
@@ -4769,12 +4785,12 @@ const Fa = ({
4769
4785
  }
4770
4786
  )
4771
4787
  ] });
4772
- }, Ta = ({
4788
+ }, La = ({
4773
4789
  applicantId: e,
4774
4790
  onComplete: t,
4775
4791
  onBack: a
4776
4792
  }) => {
4777
- const { investorCategorizationService: n } = Te(), [i, l] = x(null), [c, d] = x(!1), [y, p] = x(null);
4793
+ const { investorCategorizationService: n } = Le(), [i, l] = x(null), [c, d] = x(!1), [y, p] = x(null);
4778
4794
  return /* @__PURE__ */ r("form", { onSubmit: async (F) => {
4779
4795
  if (F.preventDefault(), i === null) {
4780
4796
  p("Please select an investor type");
@@ -4911,7 +4927,7 @@ const Fa = ({
4911
4927
  ] })
4912
4928
  ] }) });
4913
4929
  };
4914
- function Pt(e) {
4930
+ function Dt(e) {
4915
4931
  const t = e.split(":").map(Number);
4916
4932
  return t.length === 3 ? t[0] * 3600 + t[1] * 60 + t[2] : 0;
4917
4933
  }
@@ -4919,19 +4935,19 @@ function vt(e) {
4919
4935
  const t = Math.floor(e / 60), a = e % 60;
4920
4936
  return `${t.toString().padStart(2, "0")}:${a.toString().padStart(2, "0")}`;
4921
4937
  }
4922
- const La = ({
4938
+ const Pa = ({
4923
4939
  applicantId: e,
4924
4940
  onComplete: t,
4925
4941
  onBack: a
4926
4942
  }) => {
4927
- const { appropriatenessTestService: n } = Te(), [i, l] = x(null), [c, d] = x(!0), [y, p] = x(!1), [b, F] = x(null), [S, T] = x({}), [L, v] = x(0), [N, B] = x(!1), [Y, M] = x(!1), [O, Z] = x(0), [ne, R] = x(0), [f, $] = x(null);
4943
+ const { appropriatenessTestService: n } = Le(), [i, l] = x(null), [c, d] = x(!0), [y, p] = x(!1), [b, F] = x(null), [S, T] = x({}), [L, v] = x(0), [N, B] = x(!1), [Y, P] = x(!1), [z, Z] = x(0), [ne, R] = x(0), [f, $] = x(null);
4928
4944
  fe(() => {
4929
4945
  (async () => {
4930
4946
  try {
4931
4947
  d(!0), F(null);
4932
4948
  const _ = await n.getAppropriatenessTest(e);
4933
4949
  if (l(_), _.waitTimeSpanForNextTry && _.waitTimeSpanForNextTry !== "00:00:00") {
4934
- const H = Pt(_.waitTimeSpanForNextTry);
4950
+ const H = Dt(_.waitTimeSpanForNextTry);
4935
4951
  H > 0 && Z(H);
4936
4952
  }
4937
4953
  } catch (_) {
@@ -4943,27 +4959,27 @@ const La = ({
4943
4959
  }, [e, n]), fe(() => {
4944
4960
  if (!N || L <= 0) return;
4945
4961
  const _ = setInterval(() => {
4946
- v((H) => H <= 1 ? (M(!0), 0) : H - 1);
4962
+ v((H) => H <= 1 ? (P(!0), 0) : H - 1);
4947
4963
  }, 1e3);
4948
4964
  return () => clearInterval(_);
4949
4965
  }, [N, L]), fe(() => {
4950
- if (O <= 0) return;
4966
+ if (z <= 0) return;
4951
4967
  const _ = setInterval(() => {
4952
4968
  Z((H) => H <= 1 ? 0 : H - 1);
4953
4969
  }, 1e3);
4954
4970
  return () => clearInterval(_);
4955
- }, [O]), fe(() => {
4971
+ }, [z]), fe(() => {
4956
4972
  Y && !y && Q();
4957
4973
  }, [Y]);
4958
4974
  const G = () => {
4959
4975
  i && (B(!0), v(i.testDurationSec), R(0), T({}), F(null));
4960
4976
  }, V = (_, H) => {
4961
- T((he) => ({ ...he, [_]: H }));
4977
+ T((ge) => ({ ...ge, [_]: H }));
4962
4978
  }, j = ae(async () => {
4963
4979
  try {
4964
4980
  const _ = await n.getAppropriatenessTest(e);
4965
4981
  if (l(_), _.waitTimeSpanForNextTry && _.waitTimeSpanForNextTry !== "00:00:00") {
4966
- const H = Pt(_.waitTimeSpanForNextTry);
4982
+ const H = Dt(_.waitTimeSpanForNextTry);
4967
4983
  H > 0 && Z(H);
4968
4984
  }
4969
4985
  } catch {
@@ -4981,13 +4997,13 @@ const La = ({
4981
4997
  try {
4982
4998
  const H = i.appropriatenessQuestions.map(
4983
4999
  (E) => ({ appropriatenessQuestionId: E.id, value: S[E.id] || "" })
4984
- ), he = {
5000
+ ), ge = {
4985
5001
  applicantId: e,
4986
5002
  appropriatenessTestId: i.id,
4987
5003
  appropriatenessQuestionResults: H
4988
5004
  };
4989
5005
  try {
4990
- const E = await n.fillAppropriatenessTest(he);
5006
+ const E = await n.fillAppropriatenessTest(ge);
4991
5007
  E.isSuccess ? $({ success: !0, message: E.message || "Congratulations! You have passed the test." }) : ($({ success: !1, message: E.message || "You did not pass the test." }), setTimeout(() => j(), 1e3));
4992
5008
  } catch (E) {
4993
5009
  if (E.code === 400 && E.message)
@@ -5002,7 +5018,7 @@ const La = ({
5002
5018
  }
5003
5019
  }
5004
5020
  }, ie = () => {
5005
- B(!1), M(!1), T({}), R(0);
5021
+ B(!1), P(!1), T({}), R(0);
5006
5022
  };
5007
5023
  if (c)
5008
5024
  return /* @__PURE__ */ r(te, { children: /* @__PURE__ */ r(re, { children: /* @__PURE__ */ o("div", { style: { display: "flex", flexDirection: "column", alignItems: "center", padding: "48px 0", gap: "16px" }, children: [
@@ -5015,7 +5031,7 @@ const La = ({
5015
5031
  b && /* @__PURE__ */ r("p", { style: { fontSize: "14px", color: "var(--metakyc-text-muted, #9ca3af)", marginTop: "8px" }, children: b })
5016
5032
  ] }) }) });
5017
5033
  const q = i.testAllowedMaxTry - i.totalFailedTries, ve = i.appropriatenessQuestions.length, pe = Object.keys(S).length;
5018
- if (O > 0)
5034
+ if (z > 0)
5019
5035
  return /* @__PURE__ */ o(te, { children: [
5020
5036
  /* @__PURE__ */ r(Se, { children: /* @__PURE__ */ r("h2", { style: { fontSize: "18px", fontWeight: 700, color: "var(--metakyc-text-primary, #111827)", margin: 0 }, children: i.displayName }) }),
5021
5037
  /* @__PURE__ */ r(re, { children: /* @__PURE__ */ o("div", { style: { textAlign: "center", padding: "32px 0" }, children: [
@@ -5033,7 +5049,7 @@ const La = ({
5033
5049
  fontWeight: 700,
5034
5050
  color: "var(--metakyc-primary, #2563eb)",
5035
5051
  fontVariantNumeric: "tabular-nums"
5036
- }, children: vt(O) }) }),
5052
+ }, children: vt(z) }) }),
5037
5053
  /* @__PURE__ */ r("p", { style: { fontSize: "15px", fontWeight: 500, color: "var(--metakyc-text-primary, #111827)" }, children: "Please wait before retrying" }),
5038
5054
  /* @__PURE__ */ r("p", { style: { fontSize: "13px", color: "var(--metakyc-text-muted, #9ca3af)", marginTop: "4px" }, children: "You can attempt the test again once the timer expires" }),
5039
5055
  b && /* @__PURE__ */ r("div", { style: {
@@ -5118,8 +5134,8 @@ const La = ({
5118
5134
  }, children: "No attempts remaining. Please contact support for assistance." }) })
5119
5135
  ] }) }),
5120
5136
  /* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ r("div", { style: { display: "flex", justifyContent: "center", width: "100%", gap: "12px" }, children: f.success ? /* @__PURE__ */ r(J, { type: "button", onClick: () => t == null ? void 0 : t(), children: "Continue" }) : /* @__PURE__ */ o(ct, { children: [
5121
- q > 0 && O <= 0 && /* @__PURE__ */ r(J, { type: "button", onClick: _, children: "Retake Test" }),
5122
- q > 0 && O > 0 && /* @__PURE__ */ r(J, { type: "button", onClick: _, children: "OK" }),
5137
+ q > 0 && z <= 0 && /* @__PURE__ */ r(J, { type: "button", onClick: _, children: "Retake Test" }),
5138
+ q > 0 && z > 0 && /* @__PURE__ */ r(J, { type: "button", onClick: _, children: "OK" }),
5123
5139
  q <= 0 && a && /* @__PURE__ */ r(J, { type: "button", variant: "outline", onClick: a, children: "Back" })
5124
5140
  ] }) }) })
5125
5141
  ] });
@@ -5148,11 +5164,11 @@ const La = ({
5148
5164
  /* @__PURE__ */ r("p", { style: { fontSize: "13px", color: "var(--metakyc-text-secondary, #374151)", margin: 0, lineHeight: 1.5 }, children: i.description })
5149
5165
  ] }),
5150
5166
  /* @__PURE__ */ o("div", { style: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "12px", marginBottom: "20px" }, children: [
5151
- /* @__PURE__ */ r(gt, { icon: "questions", label: "Questions", value: String(i.totalQuestionCount) }),
5152
- /* @__PURE__ */ r(gt, { icon: "time", label: "Time Limit", value: vt(i.testDurationSec) }),
5153
- /* @__PURE__ */ r(gt, { icon: "target", label: "Pass Requirement", value: `${i.testCorrectAnswerPassLimit} correct` }),
5167
+ /* @__PURE__ */ r(ht, { icon: "questions", label: "Questions", value: String(i.totalQuestionCount) }),
5168
+ /* @__PURE__ */ r(ht, { icon: "time", label: "Time Limit", value: vt(i.testDurationSec) }),
5169
+ /* @__PURE__ */ r(ht, { icon: "target", label: "Pass Requirement", value: `${i.testCorrectAnswerPassLimit} correct` }),
5154
5170
  /* @__PURE__ */ r(
5155
- gt,
5171
+ ht,
5156
5172
  {
5157
5173
  icon: "retry",
5158
5174
  label: "Attempts Left",
@@ -5274,7 +5290,7 @@ const La = ({
5274
5290
  ] }),
5275
5291
  /* @__PURE__ */ o(re, { children: [
5276
5292
  ue && /* @__PURE__ */ r(
5277
- Da,
5293
+ Ma,
5278
5294
  {
5279
5295
  question: ue,
5280
5296
  index: ne,
@@ -5374,7 +5390,7 @@ const La = ({
5374
5390
  ] })
5375
5391
  ] }) })
5376
5392
  ] });
5377
- }, Pa = {
5393
+ }, Da = {
5378
5394
  questions: /* @__PURE__ */ o("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
5379
5395
  /* @__PURE__ */ r("path", { d: "M9 11l3 3L22 4" }),
5380
5396
  /* @__PURE__ */ r("path", { d: "M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11" })
@@ -5392,7 +5408,7 @@ const La = ({
5392
5408
  /* @__PURE__ */ r("polyline", { points: "23 4 23 10 17 10" }),
5393
5409
  /* @__PURE__ */ r("path", { d: "M20.49 15a9 9 0 1 1-2.12-9.36L23 10" })
5394
5410
  ] })
5395
- }, gt = ({ icon: e, label: t, value: a, variant: n = "default" }) => {
5411
+ }, ht = ({ icon: e, label: t, value: a, variant: n = "default" }) => {
5396
5412
  const i = n === "warning";
5397
5413
  return /* @__PURE__ */ o("div", { style: {
5398
5414
  display: "flex",
@@ -5406,7 +5422,7 @@ const La = ({
5406
5422
  /* @__PURE__ */ r("div", { style: {
5407
5423
  color: i ? "#f59e0b" : "var(--metakyc-primary, #2563eb)",
5408
5424
  flexShrink: 0
5409
- }, children: Pa[e] }),
5425
+ }, children: Da[e] }),
5410
5426
  /* @__PURE__ */ o("div", { children: [
5411
5427
  /* @__PURE__ */ r("p", { style: { fontSize: "12px", color: "var(--metakyc-text-muted, #9ca3af)", margin: 0 }, children: t }),
5412
5428
  /* @__PURE__ */ r("p", { style: {
@@ -5418,7 +5434,7 @@ const La = ({
5418
5434
  }, children: a })
5419
5435
  ] })
5420
5436
  ] });
5421
- }, Da = ({ question: e, selectedAnswer: t, onSelect: a, disabled: n }) => /* @__PURE__ */ o("div", { children: [
5437
+ }, Ma = ({ question: e, selectedAnswer: t, onSelect: a, disabled: n }) => /* @__PURE__ */ o("div", { children: [
5422
5438
  /* @__PURE__ */ o("div", { style: { marginBottom: "16px" }, children: [
5423
5439
  e.groupName && /* @__PURE__ */ r("span", { style: {
5424
5440
  display: "inline-block",
@@ -5500,15 +5516,15 @@ const La = ({
5500
5516
  l
5501
5517
  );
5502
5518
  }) })
5503
- ] }), Ma = ({
5519
+ ] }), za = ({
5504
5520
  applicantId: e,
5505
5521
  onComplete: t,
5506
5522
  onBack: a
5507
5523
  }) => {
5508
5524
  var Ze, He, ot, Qe;
5509
- const { applicantService: n, baseInformationService: i, identityService: l, config: c, currentTheme: d } = Te(), { identityData: y, provider: p, token: b, isLoading: F, error: S, requestIdentity: T, restartIdentity: L } = ea(e), [v, N] = x(null), [B, Y] = x(null), [M, O] = x([]), [Z, ne] = x([]), [R, f] = x(!0), [$, G] = x(!1), [V, j] = x(null), [Q, ie] = x(!1), q = we.useRef(!1), [ve, pe] = x({}), [ue, xe] = x({}), A = d != null && d.reviewPageFields && d.reviewPageFields.length > 0 ? d.reviewPageFields[0] : null, U = !!(d != null && d.reviewPageDisabled), _ = de(!1);
5525
+ const { applicantService: n, baseInformationService: i, identityService: l, config: c, currentTheme: d } = Le(), { identityData: y, provider: p, token: b, isLoading: F, error: S, requestIdentity: T, restartIdentity: L } = ta(e), [v, N] = x(null), [B, Y] = x(null), [P, z] = x([]), [Z, ne] = x([]), [R, f] = x(!0), [$, G] = x(!1), [V, j] = x(null), [Q, ie] = x(!1), q = we.useRef(!1), [ve, pe] = x({}), [ue, xe] = x({}), A = d != null && d.reviewPageFields && d.reviewPageFields.length > 0 ? d.reviewPageFields[0] : null, U = !!(d != null && d.reviewPageDisabled), _ = de(!1);
5510
5526
  _.current = U;
5511
- const H = Xt({
5527
+ const H = Zt({
5512
5528
  defaultValues: {
5513
5529
  street: "",
5514
5530
  streetNumber: "",
@@ -5521,23 +5537,23 @@ const La = ({
5521
5537
  });
5522
5538
  fe(() => {
5523
5539
  if (U) {
5524
- q.current || (q.current = !0, T().then(() => G(!0)).catch((z) => console.error("[Identity] Auto-request failed:", z)).finally(() => f(!1)));
5540
+ q.current || (q.current = !0, T().then(() => G(!0)).catch((O) => console.error("[Identity] Auto-request failed:", O)).finally(() => f(!1)));
5525
5541
  return;
5526
5542
  }
5527
5543
  (async () => {
5528
5544
  try {
5529
- const [z, K, W] = await Promise.all([
5545
+ const [O, K, W] = await Promise.all([
5530
5546
  n.getApplicantData(e),
5531
5547
  i.getCountries("", "en"),
5532
5548
  i.getCountries("", "en", 40)
5533
5549
  // CountriesType.PhoneNumber
5534
5550
  ]);
5535
- Y(z);
5536
- const X = /* @__PURE__ */ new Set(), u = K.map((h) => ({ value: h.abbreviation3 || h.abbreviation, label: h.name })).filter((h) => !h.value || X.has(h.value) ? !1 : (X.add(h.value), !0));
5537
- O(u);
5538
- const I = /* @__PURE__ */ new Set(), P = W.filter((h) => h.countryCode).map((h) => ({ value: h.countryCode, label: `${h.countryCode} – ${h.name}` })).filter((h) => I.has(h.value) ? !1 : (I.add(h.value), !0));
5539
- ne(P);
5540
- const m = z.applicantRequestData;
5551
+ Y(O);
5552
+ const X = /* @__PURE__ */ new Set(), u = K.map((g) => ({ value: g.abbreviation3 || g.abbreviation, label: g.name })).filter((g) => !g.value || X.has(g.value) ? !1 : (X.add(g.value), !0));
5553
+ z(u);
5554
+ const I = /* @__PURE__ */ new Set(), D = W.filter((g) => g.countryCode).map((g) => ({ value: g.countryCode, label: `${g.countryCode} – ${g.name}` })).filter((g) => I.has(g.value) ? !1 : (I.add(g.value), !0));
5555
+ ne(D);
5556
+ const m = O.applicantRequestData;
5541
5557
  if (pe({
5542
5558
  firstName: (m == null ? void 0 : m.firstName) || "",
5543
5559
  lastName: (m == null ? void 0 : m.lastName) || "",
@@ -5568,16 +5584,16 @@ const La = ({
5568
5584
  country: (m == null ? void 0 : m.country) || "",
5569
5585
  nationality: (m == null ? void 0 : m.nationality) || "",
5570
5586
  phonenumber: (m == null ? void 0 : m.phonenumber) || ""
5571
- }), z.kycRecords && z.kycRecords.length > 0 && z.kycRecords[0].providerTokenObject !== null && !q.current && _.current) {
5587
+ }), O.kycRecords && O.kycRecords.length > 0 && O.kycRecords[0].providerTokenObject !== null && !q.current && _.current) {
5572
5588
  console.log("[Identity] Review page disabled + existing identity — auto-requesting..."), q.current = !0;
5573
5589
  try {
5574
5590
  await T(), G(!0);
5575
- } catch (h) {
5576
- console.error("[Identity] Auto-request failed:", h);
5591
+ } catch (g) {
5592
+ console.error("[Identity] Auto-request failed:", g);
5577
5593
  }
5578
5594
  }
5579
- } catch (z) {
5580
- console.error("Error loading applicant data:", z);
5595
+ } catch (O) {
5596
+ console.error("Error loading applicant data:", O);
5581
5597
  } finally {
5582
5598
  f(!1);
5583
5599
  }
@@ -5587,16 +5603,16 @@ const La = ({
5587
5603
  }, [y, $]), fe(() => {
5588
5604
  if (b) {
5589
5605
  if (b.expiresAt) {
5590
- const g = new Date(b.expiresAt).getTime();
5591
- if (Date.now() >= g) {
5606
+ const h = new Date(b.expiresAt).getTime();
5607
+ if (Date.now() >= h) {
5592
5608
  console.warn("[Identity] Token has expired (expiresAt)"), ie(!0), j("Your verification session has expired. Please restart.");
5593
5609
  return;
5594
5610
  }
5595
5611
  }
5596
5612
  if (b.url)
5597
5613
  try {
5598
- const z = new URL(b.url).toString().toLowerCase();
5599
- if (z.includes("expired") || z.includes("invalid") || z.includes("error")) {
5614
+ const O = new URL(b.url).toString().toLowerCase();
5615
+ if (O.includes("expired") || O.includes("invalid") || O.includes("error")) {
5600
5616
  console.warn("[Identity] Token URL indicates expiration"), ie(!0), j("Your verification link has expired. Please restart.");
5601
5617
  return;
5602
5618
  }
@@ -5609,23 +5625,23 @@ const La = ({
5609
5625
  }
5610
5626
  }
5611
5627
  }, [b]);
5612
- const he = p !== null && p === ze.Sumsub;
5628
+ const ge = p !== null && p === ze.Sumsub;
5613
5629
  fe(() => {
5614
5630
  if (p !== null && b && !v && $ && !Q) {
5615
- const g = p;
5616
- if (he) {
5631
+ const h = p;
5632
+ if (ge) {
5617
5633
  console.log("[Sumsub] Fetching access token for Web SDK…"), j(null), (async () => {
5618
5634
  try {
5619
- const z = await l.refreshSumsubToken(e), K = Je.parseProviderConfig(p, b, c);
5620
- K.accessToken = z, K.onTokenRefresh = () => l.refreshSumsubToken(e);
5635
+ const O = await l.refreshSumsubToken(e), K = Je.parseProviderConfig(p, b, c);
5636
+ K.accessToken = O, K.onTokenRefresh = () => l.refreshSumsubToken(e);
5621
5637
  const W = Je.createProvider(p, K);
5622
5638
  W.onComplete((X) => {
5623
5639
  console.log("[Sumsub] Verification complete:", X), t == null || t();
5624
5640
  }), W.onError((X) => {
5625
5641
  console.error("[Sumsub] SDK error:", X), (typeof X == "string" ? X : (X == null ? void 0 : X.message) || "Unknown error").toLowerCase().includes("expired") && (ie(!0), j("Session expired. Please restart."));
5626
5642
  }), await W.initialize("sumsub-websdk-container"), console.log("[Sumsub] Web SDK launched"), N(W);
5627
- } catch (z) {
5628
- console.error("[Sumsub] Initialization error:", z), j(`Failed to initialize: ${z.message || z}`), String(z.message || z).toLowerCase().includes("expired") && ie(!0);
5643
+ } catch (O) {
5644
+ console.error("[Sumsub] Initialization error:", O), j(`Failed to initialize: ${O.message || O}`), String(O.message || O).toLowerCase().includes("expired") && ie(!0);
5629
5645
  }
5630
5646
  })();
5631
5647
  return;
@@ -5633,25 +5649,25 @@ const La = ({
5633
5649
  if (b.url) {
5634
5650
  console.log("[Identity] Loading provider URL for user verification:", b.url), j(null);
5635
5651
  try {
5636
- if (new URL(b.url), g === ze.SardinAI) {
5652
+ if (new URL(b.url), h === ze.SardinAI) {
5637
5653
  console.log("[SardinAI] Initializing Risk SDK in background...");
5638
5654
  try {
5639
- const z = Je.parseProviderConfig(p, b, c);
5640
- Je.createProvider(p, z).initialize().then(() => console.log("[SardinAI] Risk SDK initialized in background")).catch((W) => console.warn("[SardinAI] Risk SDK init failed (non-blocking):", W));
5641
- } catch (z) {
5642
- console.warn("[SardinAI] Risk SDK setup failed (non-blocking):", z);
5655
+ const O = Je.parseProviderConfig(p, b, c);
5656
+ Je.createProvider(p, O).initialize().then(() => console.log("[SardinAI] Risk SDK initialized in background")).catch((W) => console.warn("[SardinAI] Risk SDK init failed (non-blocking):", W));
5657
+ } catch (O) {
5658
+ console.warn("[SardinAI] Risk SDK setup failed (non-blocking):", O);
5643
5659
  }
5644
5660
  }
5645
5661
  N({ type: "url", url: b.url });
5646
- } catch (z) {
5647
- console.error("[Identity] Invalid URL:", z), j("Invalid verification URL. Please restart."), ie(!0);
5662
+ } catch (O) {
5663
+ console.error("[Identity] Invalid URL:", O), j("Invalid verification URL. Please restart."), ie(!0);
5648
5664
  }
5649
5665
  return;
5650
5666
  }
5651
- if (g === ze.SardinAI) {
5667
+ if (h === ze.SardinAI) {
5652
5668
  console.log("[SardinAI] No URL provided - initializing Risk SDK only..."), j(null);
5653
5669
  try {
5654
- const z = Je.parseProviderConfig(p, b, c), K = Je.createProvider(p, z);
5670
+ const O = Je.parseProviderConfig(p, b, c), K = Je.createProvider(p, O);
5655
5671
  K.initialize().then(() => {
5656
5672
  console.log("[SardinAI] Risk SDK initialized successfully"), N(K), setTimeout(() => t == null ? void 0 : t(), 2e3);
5657
5673
  }).catch((W) => {
@@ -5660,41 +5676,41 @@ const La = ({
5660
5676
  const X = ((u = W.message) == null ? void 0 : u.toLowerCase()) || "";
5661
5677
  X.includes("expired") || X.includes("invalid") || X.includes("401") || X.includes("400") ? (ie(!0), j("Session expired or invalid. Please restart verification.")) : j(`Failed to initialize: ${W.message}`);
5662
5678
  });
5663
- } catch (z) {
5664
- console.error("[SardinAI] Error creating provider:", z), j(`Configuration error: ${z.message}`);
5679
+ } catch (O) {
5680
+ console.error("[SardinAI] Error creating provider:", O), j(`Configuration error: ${O.message}`);
5665
5681
  }
5666
5682
  return;
5667
5683
  }
5668
5684
  try {
5669
5685
  j(null);
5670
- const z = Je.parseProviderConfig(p, b, c), K = Je.createProvider(p, z);
5671
- g === ze.Onfido && K.initialize("identity-container").catch((W) => {
5686
+ const O = Je.parseProviderConfig(p, b, c), K = Je.createProvider(p, O);
5687
+ h === ze.Onfido && K.initialize("identity-container").catch((W) => {
5672
5688
  console.error("[Onfido] Initialization error:", W), j(`Failed to initialize: ${W.message}`);
5673
5689
  }), N(K);
5674
- } catch (z) {
5675
- console.error("[Identity] Provider setup error:", z), j(`Setup error: ${z.message}`);
5690
+ } catch (O) {
5691
+ console.error("[Identity] Provider setup error:", O), j(`Setup error: ${O.message}`);
5676
5692
  }
5677
5693
  }
5678
5694
  return () => {
5679
5695
  if (v && v.destroy)
5680
5696
  try {
5681
5697
  v.destroy();
5682
- } catch (g) {
5683
- console.error("[Identity] Error destroying provider:", g);
5698
+ } catch (h) {
5699
+ console.error("[Identity] Error destroying provider:", h);
5684
5700
  }
5685
5701
  };
5686
- }, [p, b, v, $, t, Q, he, e, c, l]);
5702
+ }, [p, b, v, $, t, Q, ge, e, c, l]);
5687
5703
  const E = async () => {
5688
5704
  try {
5689
5705
  j(null), ie(!1), await T(), G(!0);
5690
- } catch (g) {
5691
- console.error("Error starting identity verification:", g);
5706
+ } catch (h) {
5707
+ console.error("Error starting identity verification:", h);
5692
5708
  }
5693
5709
  }, ee = async () => {
5694
5710
  try {
5695
5711
  j(null), ie(!1), N(null), console.log("[Identity] Restarting verification..."), await L(), G(!0);
5696
- } catch (g) {
5697
- console.error("Error restarting identity verification:", g), j(g.message || "Failed to restart verification");
5712
+ } catch (h) {
5713
+ console.error("Error restarting identity verification:", h), j(h.message || "Failed to restart verification");
5698
5714
  }
5699
5715
  };
5700
5716
  if (R || F)
@@ -5750,8 +5766,8 @@ const La = ({
5750
5766
  ] })
5751
5767
  ] });
5752
5768
  if ($ && y) {
5753
- const g = p;
5754
- return he ? /* @__PURE__ */ o("div", { style: {
5769
+ const h = p;
5770
+ return ge ? /* @__PURE__ */ o("div", { style: {
5755
5771
  background: "var(--metakyc-background, #ffffff)",
5756
5772
  borderRadius: "12px",
5757
5773
  border: "1px solid var(--metakyc-border, #e5e7eb)",
@@ -5844,14 +5860,14 @@ const La = ({
5844
5860
  className: "w-full h-full border-0 rounded-lg",
5845
5861
  allow: "camera; microphone; geolocation",
5846
5862
  title: "Identity Verification",
5847
- onLoad: (z) => {
5863
+ onLoad: (O) => {
5848
5864
  var K, W, X;
5849
5865
  console.log("[Identity] Iframe loaded");
5850
5866
  try {
5851
- const u = z.target, I = u.contentDocument || ((K = u.contentWindow) == null ? void 0 : K.document);
5867
+ const u = O.target, I = u.contentDocument || ((K = u.contentWindow) == null ? void 0 : K.document);
5852
5868
  if (I) {
5853
- const P = ((X = (W = I.body) == null ? void 0 : W.textContent) == null ? void 0 : X.toLowerCase()) || "";
5854
- (P.includes("expired") || P.includes("invalid") || P.includes("error")) && (console.warn("[Identity] Iframe shows expiration message"), ie(!0), j("Your verification link has expired."));
5869
+ const D = ((X = (W = I.body) == null ? void 0 : W.textContent) == null ? void 0 : X.toLowerCase()) || "";
5870
+ (D.includes("expired") || D.includes("invalid") || D.includes("error")) && (console.warn("[Identity] Iframe shows expiration message"), ie(!0), j("Your verification link has expired."));
5855
5871
  }
5856
5872
  } catch {
5857
5873
  console.log("[Identity] Cannot check iframe content (CORS)");
@@ -5861,7 +5877,7 @@ const La = ({
5861
5877
  ) })
5862
5878
  ] }),
5863
5879
  a && /* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ r(J, { variant: "outline", onClick: a, children: "Back" }) })
5864
- ] }) : g === ze.SardinAI ? /* @__PURE__ */ o(te, { children: [
5880
+ ] }) : h === ze.SardinAI ? /* @__PURE__ */ o(te, { children: [
5865
5881
  /* @__PURE__ */ o(Se, { children: [
5866
5882
  /* @__PURE__ */ r("h2", { className: "text-2xl font-bold", children: "Device Risk Assessment" }),
5867
5883
  /* @__PURE__ */ r("p", { className: "text-gray-600 dark:text-gray-400 mt-1", children: "Analyzing device security and behavioral patterns..." })
@@ -5880,18 +5896,18 @@ const La = ({
5880
5896
  a && /* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ r(J, { variant: "outline", onClick: a, children: "Back" }) })
5881
5897
  ] });
5882
5898
  }
5883
- const ye = /* @__PURE__ */ new Set(["country", "nationality", "taxCountry", "countryOfBirth", "mobileCountryCode", "otherNationality"]), oe = (g = 4) => {
5884
- const z = Math.min(4, Math.max(1, Number(g) || 4));
5885
- return { gridColumn: `span ${z} / span ${z}` };
5886
- }, Ne = (g, z) => {
5887
- if (!z && z !== 0) return "—";
5888
- if (ye.has(g) && g !== "mobileCountryCode") {
5889
- const K = M.find((W) => W.value === z);
5890
- return K ? K.label : String(z);
5899
+ const ye = /* @__PURE__ */ new Set(["country", "nationality", "taxCountry", "countryOfBirth", "mobileCountryCode", "otherNationality"]), oe = (h = 4) => {
5900
+ const O = Math.min(4, Math.max(1, Number(h) || 4));
5901
+ return { gridColumn: `span ${O} / span ${O}` };
5902
+ }, Ne = (h, O) => {
5903
+ if (!O && O !== 0) return "—";
5904
+ if (ye.has(h) && h !== "mobileCountryCode") {
5905
+ const K = P.find((W) => W.value === O);
5906
+ return K ? K.label : String(O);
5891
5907
  }
5892
- return String(z);
5893
- }, $e = ({ helpText: g }) => {
5894
- const [z, K] = x(!1), W = de(null), [, X] = x({ top: 0, left: 0 });
5908
+ return String(O);
5909
+ }, $e = ({ helpText: h }) => {
5910
+ const [O, K] = x(!1), W = de(null), [, X] = x({ top: 0, left: 0 });
5895
5911
  return /* @__PURE__ */ o(ct, { children: [
5896
5912
  /* @__PURE__ */ r(
5897
5913
  "button",
@@ -5927,7 +5943,7 @@ const La = ({
5927
5943
  children: "?"
5928
5944
  }
5929
5945
  ),
5930
- z && Jt.createPortal(
5946
+ O && Xt.createPortal(
5931
5947
  /* @__PURE__ */ r(
5932
5948
  "div",
5933
5949
  {
@@ -5957,7 +5973,7 @@ const La = ({
5957
5973
  boxShadow: "0 24px 64px rgba(0,0,0,0.4)"
5958
5974
  },
5959
5975
  children: [
5960
- /* @__PURE__ */ r("div", { dangerouslySetInnerHTML: { __html: g }, style: { fontSize: 13, color: "var(--metakyc-text-primary, #111827)", lineHeight: 1.6 } }),
5976
+ /* @__PURE__ */ r("div", { dangerouslySetInnerHTML: { __html: h }, style: { fontSize: 13, color: "var(--metakyc-text-primary, #111827)", lineHeight: 1.6 } }),
5961
5977
  /* @__PURE__ */ r(
5962
5978
  "button",
5963
5979
  {
@@ -5984,95 +6000,95 @@ const La = ({
5984
6000
  document.body
5985
6001
  )
5986
6002
  ] });
5987
- }, Ie = (g, z) => z ? /* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "flex-start", gap: 5, flexWrap: "nowrap" }, children: [
5988
- /* @__PURE__ */ r("div", { style: { flex: 1, minWidth: 0 }, children: g }),
5989
- /* @__PURE__ */ r("div", { style: { paddingTop: 24 }, children: /* @__PURE__ */ r($e, { helpText: z }) })
5990
- ] }) : g, je = (g, z) => {
5991
- const K = `cf-${z}`, W = g.paramName ?? "", X = ue[W];
5992
- if (g.customType === "br")
5993
- return /* @__PURE__ */ r("div", { style: { ...oe(g.colSpan), minHeight: "0.5rem" } }, K);
5994
- if (g.customType === "paragraph")
5995
- return /* @__PURE__ */ r("div", { style: oe(g.colSpan), children: /* @__PURE__ */ r(
6003
+ }, Ie = (h, O) => O ? /* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "flex-start", gap: 5, flexWrap: "nowrap" }, children: [
6004
+ /* @__PURE__ */ r("div", { style: { flex: 1, minWidth: 0 }, children: h }),
6005
+ /* @__PURE__ */ r("div", { style: { paddingTop: 24 }, children: /* @__PURE__ */ r($e, { helpText: O }) })
6006
+ ] }) : h, je = (h, O) => {
6007
+ const K = `cf-${O}`, W = h.paramName ?? "", X = ue[W];
6008
+ if (h.customType === "br")
6009
+ return /* @__PURE__ */ r("div", { style: { ...oe(h.colSpan), minHeight: "0.5rem" } }, K);
6010
+ if (h.customType === "paragraph")
6011
+ return /* @__PURE__ */ r("div", { style: oe(h.colSpan), children: /* @__PURE__ */ r(
5996
6012
  "div",
5997
6013
  {
5998
6014
  className: "text-sm",
5999
6015
  style: { color: "var(--metakyc-text-secondary, #6b7280)" },
6000
- dangerouslySetInnerHTML: { __html: g.label || "" }
6016
+ dangerouslySetInnerHTML: { __html: h.label || "" }
6001
6017
  }
6002
6018
  ) }, K);
6003
- if (g.customType === "html")
6019
+ if (h.customType === "html")
6004
6020
  return /* @__PURE__ */ r(
6005
6021
  "div",
6006
6022
  {
6007
- style: oe(g.colSpan),
6008
- dangerouslySetInnerHTML: { __html: g.label || "" }
6023
+ style: oe(h.colSpan),
6024
+ dangerouslySetInnerHTML: { __html: h.label || "" }
6009
6025
  },
6010
6026
  K
6011
6027
  );
6012
- if (g.customType === "link")
6013
- return /* @__PURE__ */ r("div", { style: oe(g.colSpan), children: Ie(
6028
+ if (h.customType === "link")
6029
+ return /* @__PURE__ */ r("div", { style: oe(h.colSpan), children: Ie(
6014
6030
  /* @__PURE__ */ r(
6015
6031
  "a",
6016
6032
  {
6017
- href: g.linkUrl ?? "#",
6033
+ href: h.linkUrl ?? "#",
6018
6034
  target: "_blank",
6019
6035
  rel: "noopener noreferrer",
6020
6036
  className: "text-sm underline",
6021
6037
  style: { color: "var(--metakyc-primary, #6366f1)" },
6022
- children: g.displayText || g.label || g.linkText || g.linkUrl
6038
+ children: h.displayText || h.label || h.linkText || h.linkUrl
6023
6039
  }
6024
6040
  ),
6025
- g.helpText
6041
+ h.helpText
6026
6042
  ) }, K);
6027
- if (g.customType === "checkbox" || g.customType === "link_checkbox") {
6043
+ if (h.customType === "checkbox" || h.customType === "link_checkbox") {
6028
6044
  const u = X === "true" || X === !0;
6029
- return /* @__PURE__ */ r("div", { style: oe(g.colSpan), children: Ie(
6045
+ return /* @__PURE__ */ r("div", { style: oe(h.colSpan), children: Ie(
6030
6046
  /* @__PURE__ */ o("label", { style: { display: "flex", alignItems: "flex-start", gap: 8, cursor: "pointer" }, children: [
6031
6047
  /* @__PURE__ */ r(
6032
6048
  Be,
6033
6049
  {
6034
6050
  checked: !!u,
6035
- onChange: (I) => xe((P) => ({ ...P, [W]: String(I) })),
6051
+ onChange: (I) => xe((D) => ({ ...D, [W]: String(I) })),
6036
6052
  style: { marginTop: 2 }
6037
6053
  }
6038
6054
  ),
6039
- /* @__PURE__ */ r("span", { className: "text-sm", style: { color: "var(--metakyc-text-primary, #111827)" }, children: g.customType === "link_checkbox" && g.linkUrl ? /* @__PURE__ */ o(ct, { children: [
6040
- /* @__PURE__ */ r("a", { href: g.linkUrl, target: "_blank", rel: "noopener noreferrer", style: { color: "var(--metakyc-primary, #6366f1)", textDecoration: "underline" }, children: g.linkText || g.label }),
6041
- g.label && g.linkText ? ` ${g.label}` : ""
6042
- ] }) : g.displayText || g.label })
6055
+ /* @__PURE__ */ r("span", { className: "text-sm", style: { color: "var(--metakyc-text-primary, #111827)" }, children: h.customType === "link_checkbox" && h.linkUrl ? /* @__PURE__ */ o(ct, { children: [
6056
+ /* @__PURE__ */ r("a", { href: h.linkUrl, target: "_blank", rel: "noopener noreferrer", style: { color: "var(--metakyc-primary, #6366f1)", textDecoration: "underline" }, children: h.linkText || h.label }),
6057
+ h.label && h.linkText ? ` ${h.label}` : ""
6058
+ ] }) : h.displayText || h.label })
6043
6059
  ] }),
6044
- g.helpText
6060
+ h.helpText
6045
6061
  ) }, K);
6046
6062
  }
6047
- if (g.customType === "group_checkbox") {
6048
- const u = Array.isArray(X) ? X : X ? [X] : [], I = (P) => {
6049
- g.singleSelect ? xe((m) => ({ ...m, [W]: u[0] === P ? [] : [P] })) : xe((m) => ({
6063
+ if (h.customType === "group_checkbox") {
6064
+ const u = Array.isArray(X) ? X : X ? [X] : [], I = (D) => {
6065
+ h.singleSelect ? xe((m) => ({ ...m, [W]: u[0] === D ? [] : [D] })) : xe((m) => ({
6050
6066
  ...m,
6051
- [W]: u.includes(P) ? u.filter((s) => s !== P) : [...u, P]
6067
+ [W]: u.includes(D) ? u.filter((s) => s !== D) : [...u, D]
6052
6068
  }));
6053
6069
  };
6054
- return /* @__PURE__ */ r("div", { style: oe(g.colSpan), children: Ie(
6070
+ return /* @__PURE__ */ r("div", { style: oe(h.colSpan), children: Ie(
6055
6071
  /* @__PURE__ */ o("div", { className: "space-y-1.5", children: [
6056
- g.label && /* @__PURE__ */ r("p", { className: "text-sm font-medium", style: { color: "var(--metakyc-text-primary, #111827)" }, children: g.displayText || g.label }),
6057
- (g.options || []).map((P) => /* @__PURE__ */ o("label", { style: { display: "flex", alignItems: "flex-start", gap: 8, cursor: "pointer" }, children: [
6072
+ h.label && /* @__PURE__ */ r("p", { className: "text-sm font-medium", style: { color: "var(--metakyc-text-primary, #111827)" }, children: h.displayText || h.label }),
6073
+ (h.options || []).map((D) => /* @__PURE__ */ o("label", { style: { display: "flex", alignItems: "flex-start", gap: 8, cursor: "pointer" }, children: [
6058
6074
  /* @__PURE__ */ r(
6059
6075
  Be,
6060
6076
  {
6061
- checked: u.includes(P.value),
6062
- onChange: () => I(P.value),
6077
+ checked: u.includes(D.value),
6078
+ onChange: () => I(D.value),
6063
6079
  style: { marginTop: 2 }
6064
6080
  }
6065
6081
  ),
6066
- /* @__PURE__ */ r("span", { className: "text-sm", style: { color: "var(--metakyc-text-primary, #111827)" }, children: P.label })
6067
- ] }, P.value))
6082
+ /* @__PURE__ */ r("span", { className: "text-sm", style: { color: "var(--metakyc-text-primary, #111827)" }, children: D.label })
6083
+ ] }, D.value))
6068
6084
  ] }),
6069
- g.helpText
6085
+ h.helpText
6070
6086
  ) }, K);
6071
6087
  }
6072
- return g.customType === "radio_group" ? /* @__PURE__ */ r("div", { style: oe(g.colSpan), children: Ie(
6088
+ return h.customType === "radio_group" ? /* @__PURE__ */ r("div", { style: oe(h.colSpan), children: Ie(
6073
6089
  /* @__PURE__ */ o("div", { className: "space-y-1.5", children: [
6074
- g.label && /* @__PURE__ */ r("p", { className: "text-sm font-medium", style: { color: "var(--metakyc-text-primary, #111827)" }, children: g.displayText || g.label }),
6075
- (g.options || []).map((u) => /* @__PURE__ */ o("label", { style: { display: "flex", alignItems: "flex-start", gap: 8, cursor: "pointer" }, children: [
6090
+ h.label && /* @__PURE__ */ r("p", { className: "text-sm font-medium", style: { color: "var(--metakyc-text-primary, #111827)" }, children: h.displayText || h.label }),
6091
+ (h.options || []).map((u) => /* @__PURE__ */ o("label", { style: { display: "flex", alignItems: "flex-start", gap: 8, cursor: "pointer" }, children: [
6076
6092
  /* @__PURE__ */ r(
6077
6093
  "input",
6078
6094
  {
@@ -6087,22 +6103,22 @@ const La = ({
6087
6103
  /* @__PURE__ */ r("span", { className: "text-sm", style: { color: "var(--metakyc-text-primary, #111827)" }, children: u.label })
6088
6104
  ] }, u.value))
6089
6105
  ] }),
6090
- g.helpText
6091
- ) }, K) : /* @__PURE__ */ r("div", { style: oe(g.colSpan), children: Ie(
6106
+ h.helpText
6107
+ ) }, K) : /* @__PURE__ */ r("div", { style: oe(h.colSpan), children: Ie(
6092
6108
  /* @__PURE__ */ r(
6093
6109
  be,
6094
6110
  {
6095
- label: g.displayText || g.label || W,
6111
+ label: h.displayText || h.label || W,
6096
6112
  value: String(X ?? ""),
6097
6113
  onChange: (u) => xe((I) => ({ ...I, [W]: u.target.value }))
6098
6114
  }
6099
6115
  ),
6100
- g.helpText
6116
+ h.helpText
6101
6117
  ) }, K);
6102
- }, it = (g, z) => {
6103
- if (g.isCustom) return je(g, z);
6104
- const K = g.name ?? "", W = nt[K], X = g.displayText || (W == null ? void 0 : W.label) || K, u = ve[K] ?? "", I = K === "mobileCountryCode", P = !!(W != null && W.countriesType) && !I;
6105
- return g.editable ? I ? /* @__PURE__ */ r("div", { style: oe(g.colSpan ?? 2), children: Ie(
6118
+ }, it = (h, O) => {
6119
+ if (h.isCustom) return je(h, O);
6120
+ const K = h.name ?? "", W = nt[K], X = h.displayText || (W == null ? void 0 : W.label) || K, u = ve[K] ?? "", I = K === "mobileCountryCode", D = !!(W != null && W.countriesType) && !I;
6121
+ return h.editable ? I ? /* @__PURE__ */ r("div", { style: oe(h.colSpan ?? 2), children: Ie(
6106
6122
  /* @__PURE__ */ r(
6107
6123
  Ye,
6108
6124
  {
@@ -6112,19 +6128,19 @@ const La = ({
6112
6128
  options: [{ value: "", label: "Select country code…" }, ...Z]
6113
6129
  }
6114
6130
  ),
6115
- g.helpText
6116
- ) }, `epc-${z}`) : P ? /* @__PURE__ */ r("div", { style: oe(g.colSpan ?? 2), children: Ie(
6131
+ h.helpText
6132
+ ) }, `epc-${O}`) : D ? /* @__PURE__ */ r("div", { style: oe(h.colSpan ?? 2), children: Ie(
6117
6133
  /* @__PURE__ */ r(
6118
6134
  Ye,
6119
6135
  {
6120
6136
  label: X,
6121
6137
  value: String(u),
6122
6138
  onChange: (m) => pe((s) => ({ ...s, [K]: m })),
6123
- options: [{ value: "", label: `Select ${X.toLowerCase()}…` }, ...M]
6139
+ options: [{ value: "", label: `Select ${X.toLowerCase()}…` }, ...P]
6124
6140
  }
6125
6141
  ),
6126
- g.helpText
6127
- ) }, `ec-${z}`) : /* @__PURE__ */ r("div", { style: oe(g.colSpan ?? 2), children: Ie(
6142
+ h.helpText
6143
+ ) }, `ec-${O}`) : /* @__PURE__ */ r("div", { style: oe(h.colSpan ?? 2), children: Ie(
6128
6144
  /* @__PURE__ */ r(
6129
6145
  be,
6130
6146
  {
@@ -6134,23 +6150,23 @@ const La = ({
6134
6150
  onChange: (m) => pe((s) => ({ ...s, [K]: m.target.value }))
6135
6151
  }
6136
6152
  ),
6137
- g.helpText
6138
- ) }, `ei-${z}`) : /* @__PURE__ */ r("div", { style: oe(g.colSpan ?? 2), children: Ie(
6153
+ h.helpText
6154
+ ) }, `ei-${O}`) : /* @__PURE__ */ r("div", { style: oe(h.colSpan ?? 2), children: Ie(
6139
6155
  /* @__PURE__ */ o(ct, { children: [
6140
6156
  /* @__PURE__ */ r("label", { className: "block text-sm font-medium mb-0.5", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: X }),
6141
6157
  /* @__PURE__ */ r("p", { className: "text-sm", style: { color: "var(--metakyc-text-primary, #111827)", minHeight: "1.5rem" }, children: Ne(K, u) })
6142
6158
  ] }),
6143
- g.helpText
6144
- ) }, `ro-${z}`);
6159
+ h.helpText
6160
+ ) }, `ro-${O}`);
6145
6161
  };
6146
6162
  if (A) {
6147
- const g = A.title || "Review Your Information", z = A.subtitle || "Please review and confirm your information before starting identity verification";
6163
+ const h = A.title || "Review Your Information", O = A.subtitle || "Please review and confirm your information before starting identity verification";
6148
6164
  return /* @__PURE__ */ r("form", { onSubmit: (K) => {
6149
6165
  K.preventDefault(), E();
6150
6166
  }, children: /* @__PURE__ */ o(te, { children: [
6151
6167
  /* @__PURE__ */ o(Se, { children: [
6152
- /* @__PURE__ */ r("h2", { className: "text-lg font-bold", style: { color: "var(--metakyc-text-primary, #111827)" }, children: g }),
6153
- /* @__PURE__ */ r("p", { className: "mt-1 text-sm", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: z })
6168
+ /* @__PURE__ */ r("h2", { className: "text-lg font-bold", style: { color: "var(--metakyc-text-primary, #111827)" }, children: h }),
6169
+ /* @__PURE__ */ r("p", { className: "mt-1 text-sm", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: O })
6154
6170
  ] }),
6155
6171
  /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r("div", { style: { display: "grid", gridTemplateColumns: "repeat(4, minmax(0, 1fr))", gap: "1rem" }, children: A.fields.map((K, W) => it(K, W)) }) }),
6156
6172
  /* @__PURE__ */ o(Ce, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
@@ -6169,10 +6185,10 @@ const La = ({
6169
6185
  { label: "Name", value: `${((Ze = B == null ? void 0 : B.applicantRequestData) == null ? void 0 : Ze.firstName) || ""} ${((He = B == null ? void 0 : B.applicantRequestData) == null ? void 0 : He.lastName) || ""}`.trim() },
6170
6186
  { label: "Email", value: (ot = B == null ? void 0 : B.applicantRequestData) == null ? void 0 : ot.email },
6171
6187
  { label: "Date of Birth", value: ((Qe = B == null ? void 0 : B.applicantRequestData) == null ? void 0 : Qe.dateOfBirth) || "Not provided" }
6172
- ].map(({ label: g, value: z }) => /* @__PURE__ */ o("div", { children: [
6173
- /* @__PURE__ */ r("label", { className: "block text-sm font-medium", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: g }),
6174
- /* @__PURE__ */ r("p", { className: "mt-1 text-base", style: { color: "var(--metakyc-text-primary, #111827)" }, children: z })
6175
- ] }, g)) }),
6188
+ ].map(({ label: h, value: O }) => /* @__PURE__ */ o("div", { children: [
6189
+ /* @__PURE__ */ r("label", { className: "block text-sm font-medium", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: h }),
6190
+ /* @__PURE__ */ r("p", { className: "mt-1 text-base", style: { color: "var(--metakyc-text-primary, #111827)" }, children: O })
6191
+ ] }, h)) }),
6176
6192
  /* @__PURE__ */ o("div", { className: "space-y-4", children: [
6177
6193
  /* @__PURE__ */ r("h3", { className: "text-base font-semibold", style: { color: "var(--metakyc-text-primary, #111827)" }, children: "Address Information" }),
6178
6194
  /* @__PURE__ */ o("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
@@ -6181,13 +6197,13 @@ const La = ({
6181
6197
  {
6182
6198
  control: H.control,
6183
6199
  name: "country",
6184
- render: ({ field: g }) => /* @__PURE__ */ r(
6200
+ render: ({ field: h }) => /* @__PURE__ */ r(
6185
6201
  Ye,
6186
6202
  {
6187
6203
  label: "Country",
6188
- value: g.value,
6189
- onChange: g.onChange,
6190
- options: [{ value: "", label: "Select country…" }, ...M]
6204
+ value: h.value,
6205
+ onChange: h.onChange,
6206
+ options: [{ value: "", label: "Select country…" }, ...P]
6191
6207
  }
6192
6208
  )
6193
6209
  }
@@ -6197,27 +6213,27 @@ const La = ({
6197
6213
  {
6198
6214
  control: H.control,
6199
6215
  name: "nationality",
6200
- render: ({ field: g }) => /* @__PURE__ */ r(
6216
+ render: ({ field: h }) => /* @__PURE__ */ r(
6201
6217
  Ye,
6202
6218
  {
6203
6219
  label: "Nationality",
6204
- value: g.value,
6205
- onChange: g.onChange,
6206
- options: [{ value: "", label: "Select nationality…" }, ...M]
6220
+ value: h.value,
6221
+ onChange: h.onChange,
6222
+ options: [{ value: "", label: "Select nationality…" }, ...P]
6207
6223
  }
6208
6224
  )
6209
6225
  }
6210
6226
  )
6211
6227
  ] }),
6212
6228
  /* @__PURE__ */ o("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
6213
- /* @__PURE__ */ r(tt, { control: H.control, name: "street", render: ({ field: g }) => /* @__PURE__ */ r(be, { ...g, label: "Street" }) }),
6214
- /* @__PURE__ */ r(tt, { control: H.control, name: "streetNumber", render: ({ field: g }) => /* @__PURE__ */ r(be, { ...g, label: "Street Number" }) })
6229
+ /* @__PURE__ */ r(tt, { control: H.control, name: "street", render: ({ field: h }) => /* @__PURE__ */ r(be, { ...h, label: "Street" }) }),
6230
+ /* @__PURE__ */ r(tt, { control: H.control, name: "streetNumber", render: ({ field: h }) => /* @__PURE__ */ r(be, { ...h, label: "Street Number" }) })
6215
6231
  ] }),
6216
6232
  /* @__PURE__ */ o("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
6217
- /* @__PURE__ */ r(tt, { control: H.control, name: "city", render: ({ field: g }) => /* @__PURE__ */ r(be, { ...g, label: "City" }) }),
6218
- /* @__PURE__ */ r(tt, { control: H.control, name: "zip", render: ({ field: g }) => /* @__PURE__ */ r(be, { ...g, label: "ZIP / Postal Code" }) })
6233
+ /* @__PURE__ */ r(tt, { control: H.control, name: "city", render: ({ field: h }) => /* @__PURE__ */ r(be, { ...h, label: "City" }) }),
6234
+ /* @__PURE__ */ r(tt, { control: H.control, name: "zip", render: ({ field: h }) => /* @__PURE__ */ r(be, { ...h, label: "ZIP / Postal Code" }) })
6219
6235
  ] }),
6220
- /* @__PURE__ */ r(tt, { control: H.control, name: "phonenumber", render: ({ field: g }) => /* @__PURE__ */ r(be, { ...g, label: "Phone Number", type: "tel" }) })
6236
+ /* @__PURE__ */ r(tt, { control: H.control, name: "phonenumber", render: ({ field: h }) => /* @__PURE__ */ r(be, { ...h, label: "Phone Number", type: "tel" }) })
6221
6237
  ] })
6222
6238
  ] }),
6223
6239
  /* @__PURE__ */ o(Ce, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
@@ -6225,7 +6241,7 @@ const La = ({
6225
6241
  /* @__PURE__ */ r(J, { type: "submit", isLoading: F, children: "Confirm and Start Verification" })
6226
6242
  ] })
6227
6243
  ] }) });
6228
- }, Dt = ({
6244
+ }, Mt = ({
6229
6245
  kycStatus: e,
6230
6246
  reviewStatus: t,
6231
6247
  workflowResult: a,
@@ -6315,7 +6331,7 @@ const La = ({
6315
6331
  ) }),
6316
6332
  /* @__PURE__ */ r("h2", { className: "text-3xl font-bold text-center mb-4", style: { color: "var(--metakyc-text-primary, #111827)" }, children: d.title }),
6317
6333
  /* @__PURE__ */ r("div", { className: "flex justify-center mb-6", children: /* @__PURE__ */ r(
6318
- _t,
6334
+ jt,
6319
6335
  {
6320
6336
  variant: d.type === "success" ? "success" : d.type === "error" ? "danger" : d.type === "pending" ? "warning" : "info",
6321
6337
  children: e != null ? rt[e] : at[t]
@@ -6367,7 +6383,7 @@ const La = ({
6367
6383
  d.type === "pending" && /* @__PURE__ */ r("div", { className: "text-center", children: /* @__PURE__ */ r("p", { className: "text-sm text-gray-500 dark:text-gray-400", children: "Please check back later or wait for our email notification" }) })
6368
6384
  ] })
6369
6385
  ] });
6370
- }, za = ({ config: e, className: t = "" }) => !(e != null && e.visible) || !(e != null && e.url) ? null : /* @__PURE__ */ r("div", { className: `metakyc-logo ${t}`, children: /* @__PURE__ */ r(
6386
+ }, Oa = ({ config: e, className: t = "" }) => !(e != null && e.visible) || !(e != null && e.url) ? null : /* @__PURE__ */ r("div", { className: `metakyc-logo ${t}`, children: /* @__PURE__ */ r(
6371
6387
  "img",
6372
6388
  {
6373
6389
  src: e.url,
@@ -6387,7 +6403,7 @@ const La = ({
6387
6403
  subtitle: t,
6388
6404
  className: a = ""
6389
6405
  }) => {
6390
- const { currentTheme: n } = Te(), i = e || (n == null ? void 0 : n.title) || "", l = !!(n != null && n.logo && n.logo.visible && n.logo.url), c = !!i;
6406
+ const { currentTheme: n } = Le(), i = e || (n == null ? void 0 : n.title) || "", l = !!(n != null && n.logo && n.logo.visible && n.logo.url), c = !!i;
6391
6407
  return !l && !c ? null : /* @__PURE__ */ o("div", { className: `metakyc-header ${a}`, children: [
6392
6408
  /* @__PURE__ */ o(
6393
6409
  "div",
@@ -6395,7 +6411,7 @@ const La = ({
6395
6411
  className: "metakyc-header-title flex items-center text-xl font-bold",
6396
6412
  style: { color: "var(--metakyc-text-primary, #111827)" },
6397
6413
  children: [
6398
- l && /* @__PURE__ */ r(za, { config: n.logo }),
6414
+ l && /* @__PURE__ */ r(Oa, { config: n.logo }),
6399
6415
  l && c && /* @__PURE__ */ r(
6400
6416
  "span",
6401
6417
  {
@@ -6409,11 +6425,11 @@ const La = ({
6409
6425
  ),
6410
6426
  t && /* @__PURE__ */ r("p", { className: "text-sm mt-1", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: t })
6411
6427
  ] });
6412
- }, ht = ["firstName", "lastName", "email", "phonenumber", "dateOfBirth"];
6428
+ }, gt = ["firstName", "lastName", "email", "phonenumber", "dateOfBirth"];
6413
6429
  function lt(e) {
6414
6430
  return e == null || e === "" || Array.isArray(e) && e.length === 0;
6415
6431
  }
6416
- const Oa = {
6432
+ const $a = {
6417
6433
  width: "16px",
6418
6434
  height: "16px",
6419
6435
  minWidth: "16px",
@@ -6425,7 +6441,7 @@ const Oa = {
6425
6441
  padding: 0,
6426
6442
  display: "inline-block",
6427
6443
  verticalAlign: "middle"
6428
- }, Mt = ({ helpText: e, children: t }) => {
6444
+ }, zt = ({ helpText: e, children: t }) => {
6429
6445
  const [a, n] = we.useState(!1);
6430
6446
  if (!e) return /* @__PURE__ */ r(ct, { children: t });
6431
6447
  const i = a ? /* @__PURE__ */ r(
@@ -6546,100 +6562,100 @@ const Oa = {
6546
6562
  ),
6547
6563
  typeof document < "u" && i ? Ct(i, document.body) : null
6548
6564
  ] });
6549
- }, an = ({
6565
+ }, nn = ({
6550
6566
  workflowKey: e,
6551
6567
  externalRefId: t,
6552
6568
  onSuccess: a,
6553
6569
  onCancel: n
6554
6570
  }) => {
6555
- var K, W, X, u, I, P, m;
6556
- const { config: i, baseInformationService: l, currentTheme: c } = Te(), { createApplicant: d, isLoading: y } = Bt(), p = e || ((K = i.applicantForm) == null ? void 0 : K.workflowKey);
6571
+ var K, W, X, u, I, D, m;
6572
+ const { config: i, baseInformationService: l, currentTheme: c } = Le(), { createApplicant: d, isLoading: y } = _t(), p = e || ((K = i.applicantForm) == null ? void 0 : K.workflowKey);
6557
6573
  if (!p)
6558
6574
  throw new Error(
6559
6575
  "workflowKey is required. Provide it either as a prop to CreateApplicantForm or set it in config.applicantForm.workflowKey"
6560
6576
  );
6561
- const b = t || ((W = i.applicantForm) == null ? void 0 : W.externalRefId) || "", F = ((X = i.applicantForm) == null ? void 0 : X.email) || "", S = ((u = i.applicantForm) == null ? void 0 : u.hiddenValues) || {}, T = ((I = i.applicantForm) == null ? void 0 : I.initialValues) || {}, v = (((P = i.applicantForm) == null ? void 0 : P.fieldLabelMode) || (c == null ? void 0 : c.fieldLabelMode) || "label") !== "placeholder", N = De(
6577
+ const b = t || ((W = i.applicantForm) == null ? void 0 : W.externalRefId) || "", F = ((X = i.applicantForm) == null ? void 0 : X.email) || "", S = ((u = i.applicantForm) == null ? void 0 : u.hiddenValues) || {}, T = ((I = i.applicantForm) == null ? void 0 : I.initialValues) || {}, v = (((D = i.applicantForm) == null ? void 0 : D.fieldLabelMode) || (c == null ? void 0 : c.fieldLabelMode) || "label") !== "placeholder", N = De(
6562
6578
  () => c != null && c.applicantFormPages && c.applicantFormPages.length > 0 ? c.applicantFormPages : null,
6563
6579
  [c == null ? void 0 : c.applicantFormPages]
6564
6580
  ), B = De(() => {
6565
- const s = new Set(ht), h = c == null ? void 0 : c.applicantFormRequiredFields;
6566
- if (h) for (const D of h) s.add(D);
6581
+ const s = new Set(gt), g = c == null ? void 0 : c.applicantFormRequiredFields;
6582
+ if (g) for (const M of g) s.add(M);
6567
6583
  if (N)
6568
- for (const D of N)
6569
- for (const k of D.fields)
6584
+ for (const M of N)
6585
+ for (const k of M.fields)
6570
6586
  !k.isCustom && k.name && k.required && s.add(k.name);
6571
6587
  return Array.from(s);
6572
6588
  }, [c == null ? void 0 : c.applicantFormRequiredFields, N]), Y = De(() => {
6573
- var D;
6589
+ var M;
6574
6590
  if (N) {
6575
6591
  const k = N.flatMap((w) => w.fields).filter((w) => !w.isCustom && w.name).map((w) => w.name), C = new Set(k);
6576
- for (const w of ht) C.add(w);
6592
+ for (const w of gt) C.add(w);
6577
6593
  return Array.from(C);
6578
6594
  }
6579
6595
  let s;
6580
- (D = i.applicantForm) != null && D.visibleFields ? s = i.applicantForm.visibleFields : c != null && c.applicantFormVisibleFields && c.applicantFormVisibleFields.length > 0 ? s = c.applicantFormVisibleFields : s = mr;
6581
- const h = new Set(s);
6582
- for (const k of ht) h.add(k);
6583
- return Array.from(h);
6584
- }, [(m = i.applicantForm) == null ? void 0 : m.visibleFields, c == null ? void 0 : c.applicantFormVisibleFields, N]), M = /* @__PURE__ */ new Set([
6596
+ (M = i.applicantForm) != null && M.visibleFields ? s = i.applicantForm.visibleFields : c != null && c.applicantFormVisibleFields && c.applicantFormVisibleFields.length > 0 ? s = c.applicantFormVisibleFields : s = pr;
6597
+ const g = new Set(s);
6598
+ for (const k of gt) g.add(k);
6599
+ return Array.from(g);
6600
+ }, [(m = i.applicantForm) == null ? void 0 : m.visibleFields, c == null ? void 0 : c.applicantFormVisibleFields, N]), P = /* @__PURE__ */ new Set([
6585
6601
  "country",
6586
6602
  "nationality",
6587
6603
  "taxCountry",
6588
6604
  "countryOfBirth",
6589
6605
  "mobileCountryCode",
6590
6606
  "otherNationality"
6591
- ]), O = De(() => {
6592
- var h, D;
6607
+ ]), z = De(() => {
6608
+ var g, M;
6593
6609
  const s = /* @__PURE__ */ new Set();
6594
6610
  if (N)
6595
6611
  for (const k of N)
6596
6612
  for (const C of k.fields)
6597
- !C.isCustom && C.name && M.has(C.name) && s.add(C.countriesType ?? ((h = nt[C.name]) == null ? void 0 : h.countriesType));
6613
+ !C.isCustom && C.name && P.has(C.name) && s.add(C.countriesType ?? ((g = nt[C.name]) == null ? void 0 : g.countriesType));
6598
6614
  else
6599
6615
  for (const k of Y)
6600
- M.has(k) && s.add((D = nt[k]) == null ? void 0 : D.countriesType);
6616
+ P.has(k) && s.add((M = nt[k]) == null ? void 0 : M.countriesType);
6601
6617
  return s.size === 0 && s.add(void 0), Array.from(s);
6602
6618
  }, [Y, N]), [Z, ne] = x({}), [R, f] = x(!0), $ = de(/* @__PURE__ */ new Set()), G = de(/* @__PURE__ */ new Set());
6603
6619
  fe(() => {
6604
6620
  if (!c) return;
6605
- const s = O.filter((k) => {
6621
+ const s = z.filter((k) => {
6606
6622
  const C = k != null ? String(k) : "all";
6607
6623
  return !G.current.has(C) && !$.current.has(C);
6608
6624
  });
6609
6625
  if (s.length === 0) {
6610
- O.every((C) => {
6626
+ z.every((C) => {
6611
6627
  const w = C != null ? String(C) : "all";
6612
6628
  return G.current.has(w);
6613
6629
  }) && f(!1);
6614
6630
  return;
6615
6631
  }
6616
6632
  f(!0);
6617
- const h = s.map((k) => k != null ? String(k) : "all");
6618
- h.forEach((k) => $.current.add(k)), (async () => {
6633
+ const g = s.map((k) => k != null ? String(k) : "all");
6634
+ g.forEach((k) => $.current.add(k)), (async () => {
6619
6635
  try {
6620
6636
  const k = await Promise.all(
6621
6637
  s.map(async (C) => {
6622
- const w = C != null ? String(C) : "all", me = await l.getCountries("", i.locale || "en", C), se = C === 40, ke = /* @__PURE__ */ new Set(), Le = me.map((le) => se && le.countryCode ? {
6638
+ const w = C != null ? String(C) : "all", me = await l.getCountries("", i.locale || "en", C), se = C === 40, ke = /* @__PURE__ */ new Set(), Pe = me.map((le) => se && le.countryCode ? {
6623
6639
  value: le.countryCode,
6624
6640
  label: `${le.countryCode} – ${le.name}`
6625
6641
  } : { value: le.abbreviation3 || le.abbreviation, label: le.name }).filter((le) => !le.value || ke.has(le.value) ? !1 : (ke.add(le.value), !0));
6626
- return G.current.add(w), $.current.delete(w), [w, Le];
6642
+ return G.current.add(w), $.current.delete(w), [w, Pe];
6627
6643
  })
6628
6644
  );
6629
6645
  ne((C) => ({ ...C, ...Object.fromEntries(k) }));
6630
6646
  } catch (k) {
6631
- h.forEach((C) => $.current.delete(C)), console.error("Failed to load countries:", k);
6647
+ g.forEach((C) => $.current.delete(C)), console.error("Failed to load countries:", k);
6632
6648
  } finally {
6633
- O.every((C) => {
6649
+ z.every((C) => {
6634
6650
  const w = C != null ? String(C) : "all";
6635
6651
  return G.current.has(w);
6636
6652
  }) && f(!1);
6637
6653
  }
6638
6654
  })();
6639
- }, [O, c]);
6640
- const V = (s, h) => {
6655
+ }, [z, c]);
6656
+ const V = (s, g) => {
6641
6657
  var C;
6642
- const D = h ?? ((C = nt[s]) == null ? void 0 : C.countriesType), k = D != null ? String(D) : "all";
6658
+ const M = g ?? ((C = nt[s]) == null ? void 0 : C.countriesType), k = M != null ? String(M) : "all";
6643
6659
  return Z[k] || [];
6644
6660
  }, j = {
6645
6661
  firstName: 1,
@@ -6697,24 +6713,24 @@ const Oa = {
6697
6713
  ...ie
6698
6714
  }), pe = Object.fromEntries(
6699
6715
  Object.entries(S).filter(([s]) => !(s in Q) && s !== "externalRefId" && s !== "workflowKey")
6700
- ), [ue, xe] = x({ ...pe }), [A, U] = x(0), [_, H] = x({}), [he, E] = x(null), [ee, ye] = x(!1), oe = (s, h) => ve((D) => ({ ...D, [s]: h })), Ne = (s, h) => xe((D) => ({ ...D, [s]: h })), $e = (s) => !s.conditionalOn || ue[s.conditionalOn] === "true", Ie = N && A < N.length - 1 ? A + 1 : -1, je = N && A > 0 ? A - 1 : -1, it = (s) => {
6701
- var D;
6702
- const h = {};
6716
+ ), [ue, xe] = x({ ...pe }), [A, U] = x(0), [_, H] = x({}), [ge, E] = x(null), [ee, ye] = x(!1), oe = (s, g) => ve((M) => ({ ...M, [s]: g })), Ne = (s, g) => xe((M) => ({ ...M, [s]: g })), $e = (s) => !s.conditionalOn || ue[s.conditionalOn] === "true", Ie = N && A < N.length - 1 ? A + 1 : -1, je = N && A > 0 ? A - 1 : -1, it = (s) => {
6717
+ var M;
6718
+ const g = {};
6703
6719
  for (const k of s.fields)
6704
6720
  if (k.isCustom) {
6705
6721
  if (k.customType === "paragraph" || k.customType === "html" || k.customType === "br" || k.customType === "link") continue;
6706
6722
  if (k.required && k.paramName) {
6707
6723
  const C = ue[k.paramName], w = k.displayText || k.label || k.paramName;
6708
- k.customType === "checkbox" || k.customType === "link_checkbox" ? C !== "true" && (h[k.paramName] = `${w} is required.`) : (!C || C.trim() === "") && (h[k.paramName] = `${w} is required.`);
6724
+ k.customType === "checkbox" || k.customType === "link_checkbox" ? C !== "true" && (g[k.paramName] = `${w} is required.`) : (!C || C.trim() === "") && (g[k.paramName] = `${w} is required.`);
6709
6725
  }
6710
6726
  } else if (k.name) {
6711
6727
  const C = k.name;
6712
6728
  if (B.includes(C) && lt(q[C])) {
6713
- const w = k.displayText || ((D = nt[C]) == null ? void 0 : D.label) || C;
6714
- h[C] = `${w} is required.`;
6729
+ const w = k.displayText || ((M = nt[C]) == null ? void 0 : M.label) || C;
6730
+ g[C] = `${w} is required.`;
6715
6731
  }
6716
6732
  }
6717
- return h;
6733
+ return g;
6718
6734
  }, Ze = async () => {
6719
6735
  if (!N) return;
6720
6736
  const s = N[A];
@@ -6722,17 +6738,17 @@ const Oa = {
6722
6738
  H({}), Ie >= 0 ? U(Ie) : await He();
6723
6739
  return;
6724
6740
  }
6725
- const h = it(s);
6726
- if (Object.keys(h).length > 0) {
6727
- H(h);
6741
+ const g = it(s);
6742
+ if (Object.keys(g).length > 0) {
6743
+ H(g);
6728
6744
  return;
6729
6745
  }
6730
6746
  H({}), Ie >= 0 ? U(Ie) : await He();
6731
6747
  }, He = async () => {
6732
6748
  if (N) {
6733
6749
  let s = {};
6734
- for (const h of N)
6735
- $e(h) && (s = { ...s, ...it(h) });
6750
+ for (const g of N)
6751
+ $e(g) && (s = { ...s, ...it(g) });
6736
6752
  if (Object.keys(s).length > 0) {
6737
6753
  H(s);
6738
6754
  return;
@@ -6757,7 +6773,7 @@ const Oa = {
6757
6773
  lt(se) || (s[me] = se);
6758
6774
  }
6759
6775
  }
6760
- for (const C of ht)
6776
+ for (const C of gt)
6761
6777
  if (s[C] === void 0) {
6762
6778
  const w = q[C];
6763
6779
  lt(w) || (s[C] = w);
@@ -6768,7 +6784,7 @@ const Oa = {
6768
6784
  const w = q[C];
6769
6785
  lt(w) || (s[C] = w);
6770
6786
  });
6771
- const h = [];
6787
+ const g = [];
6772
6788
  if (N) {
6773
6789
  for (const C of N)
6774
6790
  if ($e(C))
@@ -6779,15 +6795,15 @@ const Oa = {
6779
6795
  if (w.customType === "checkbox" || w.customType === "link_checkbox")
6780
6796
  se = me === "true" ? "yes" : "no";
6781
6797
  else if (se = me, !se && !w.required) continue;
6782
- h.push({ paramName: w.paramName, value: se });
6798
+ g.push({ paramName: w.paramName, value: se });
6783
6799
  }
6784
6800
  }
6785
6801
  for (const [C, w] of Object.entries(Q))
6786
6802
  s[C] === void 0 && !lt(w) && (s[C] = w);
6787
- const D = new Set(h.map((C) => C.paramName));
6803
+ const M = new Set(g.map((C) => C.paramName));
6788
6804
  for (const [C, w] of Object.entries(pe))
6789
- !D.has(C) && w && h.push({ paramName: C, value: w });
6790
- h.length > 0 && (s.applicantAdditionalDatas = h);
6805
+ !M.has(C) && w && g.push({ paramName: C, value: w });
6806
+ g.length > 0 && (s.applicantAdditionalDatas = g);
6791
6807
  const k = await d(s);
6792
6808
  a(k.applicantId);
6793
6809
  } catch (s) {
@@ -6796,20 +6812,20 @@ const Oa = {
6796
6812
  ye(!1);
6797
6813
  }
6798
6814
  }, ot = async (s) => {
6799
- var h;
6815
+ var g;
6800
6816
  s.preventDefault();
6801
- for (const D of B)
6802
- if (lt(q[D])) {
6803
- const k = ((h = nt[D]) == null ? void 0 : h.label) || D;
6817
+ for (const M of B)
6818
+ if (lt(q[M])) {
6819
+ const k = ((g = nt[M]) == null ? void 0 : g.label) || M;
6804
6820
  E(`${k} is required.`);
6805
6821
  return;
6806
6822
  }
6807
6823
  await He();
6808
- }, Qe = (s, h, D, k, C) => {
6824
+ }, Qe = (s, g, M, k, C) => {
6809
6825
  var It;
6810
6826
  const w = nt[s];
6811
6827
  if (!w) return null;
6812
- const me = B.includes(s), se = _[s], ke = D || w.label, Le = s in ie, le = h ?? s, _e = { required: me }, We = C ? C !== "placeholder" : v, Ge = We ? ke : void 0, Kt = We ? "..." : ke;
6828
+ const me = B.includes(s), se = _[s], ke = M || w.label, Pe = s in ie, le = g ?? s, _e = { required: me }, We = C ? C !== "placeholder" : v, Ge = We ? ke : void 0, qt = We ? "..." : ke;
6813
6829
  switch (w.type) {
6814
6830
  case "select":
6815
6831
  if (s === "country" || s === "nationality" || s === "taxCountry" || s === "countryOfBirth" || s === "mobileCountryCode") {
@@ -6821,9 +6837,9 @@ const Oa = {
6821
6837
  label: Ge,
6822
6838
  value: q[s] || "",
6823
6839
  onChange: (et) => oe(s, et),
6824
- options: [{ value: "", label: `Select ${Kt.toLowerCase()}` }, ...Re],
6840
+ options: [{ value: "", label: `Select ${qt.toLowerCase()}` }, ...Re],
6825
6841
  disabled: R,
6826
- readOnly: Le,
6842
+ readOnly: Pe,
6827
6843
  error: se
6828
6844
  },
6829
6845
  le
@@ -6843,7 +6859,7 @@ const Oa = {
6843
6859
  { value: kt.Female.toString(), label: "Female" },
6844
6860
  { value: kt.Other.toString(), label: "Other" }
6845
6861
  ],
6846
- readOnly: Le,
6862
+ readOnly: Pe,
6847
6863
  error: se
6848
6864
  },
6849
6865
  le
@@ -6858,7 +6874,7 @@ const Oa = {
6858
6874
  value: q[s] || "",
6859
6875
  onChange: (et) => oe(s, et),
6860
6876
  options: [{ value: "", label: We ? "Select language..." : ke }, ...Re],
6861
- readOnly: Le,
6877
+ readOnly: Pe,
6862
6878
  error: se
6863
6879
  },
6864
6880
  le
@@ -6869,7 +6885,7 @@ const Oa = {
6869
6885
  if (s === "otherNationality") {
6870
6886
  const Re = V(s, k);
6871
6887
  return /* @__PURE__ */ r(
6872
- ia,
6888
+ oa,
6873
6889
  {
6874
6890
  ..._e,
6875
6891
  label: Ge,
@@ -6878,7 +6894,7 @@ const Oa = {
6878
6894
  options: Re,
6879
6895
  placeholder: We ? "Select other nationalities..." : ke,
6880
6896
  disabled: R,
6881
- readOnly: Le
6897
+ readOnly: Pe
6882
6898
  },
6883
6899
  le
6884
6900
  );
@@ -6894,7 +6910,7 @@ const Oa = {
6894
6910
  placeholder: We ? void 0 : ke,
6895
6911
  value: q[s] || "",
6896
6912
  onChange: (Re) => oe(s, Re.target.value),
6897
- readOnly: Le,
6913
+ readOnly: Pe,
6898
6914
  error: se
6899
6915
  },
6900
6916
  le
@@ -6909,7 +6925,7 @@ const Oa = {
6909
6925
  placeholder: We ? void 0 : ke,
6910
6926
  value: q[s] || "",
6911
6927
  onChange: (Re) => oe(s, Re.target.value),
6912
- readOnly: Le,
6928
+ readOnly: Pe,
6913
6929
  error: se
6914
6930
  },
6915
6931
  le
@@ -6924,7 +6940,7 @@ const Oa = {
6924
6940
  placeholder: We ? void 0 : ke,
6925
6941
  value: q[s] || "",
6926
6942
  onChange: (Re) => oe(s, Re.target.value),
6927
- readOnly: Le,
6943
+ readOnly: Pe,
6928
6944
  error: se
6929
6945
  },
6930
6946
  le
@@ -6939,14 +6955,14 @@ const Oa = {
6939
6955
  placeholder: We ? void 0 : ke,
6940
6956
  value: q[s] || "",
6941
6957
  onChange: (Re) => oe(s, Re.target.value),
6942
- readOnly: Le,
6958
+ readOnly: Pe,
6943
6959
  error: se
6944
6960
  },
6945
6961
  le
6946
6962
  );
6947
6963
  }
6948
- }, g = (s, h) => {
6949
- const D = s.labelMode ? s.labelMode !== "placeholder" : v;
6964
+ }, h = (s, g) => {
6965
+ const M = s.labelMode ? s.labelMode !== "placeholder" : v;
6950
6966
  if (s.customType === "paragraph") {
6951
6967
  const w = s.displayText || s.label || "";
6952
6968
  return /* @__PURE__ */ r(
@@ -6961,7 +6977,7 @@ const Oa = {
6961
6977
  },
6962
6978
  dangerouslySetInnerHTML: { __html: w }
6963
6979
  },
6964
- `custom-${h}`
6980
+ `custom-${g}`
6965
6981
  );
6966
6982
  }
6967
6983
  if (s.customType === "html")
@@ -6970,10 +6986,10 @@ const Oa = {
6970
6986
  {
6971
6987
  dangerouslySetInnerHTML: { __html: s.label || "" }
6972
6988
  },
6973
- `custom-${h}`
6989
+ `custom-${g}`
6974
6990
  );
6975
6991
  if (s.customType === "br")
6976
- return /* @__PURE__ */ r("div", { style: { height: "12px" } }, `custom-${h}`);
6992
+ return /* @__PURE__ */ r("div", { style: { height: "12px" } }, `custom-${g}`);
6977
6993
  if (s.customType === "link") {
6978
6994
  const w = s.displayText || s.label || s.linkText || s.linkUrl || "";
6979
6995
  return /* @__PURE__ */ r("div", { className: "metakyc-link-field", children: /* @__PURE__ */ o(
@@ -6996,7 +7012,7 @@ const Oa = {
6996
7012
  /* @__PURE__ */ r("span", { style: { fontSize: "10px", opacity: 0.7 }, children: "↗" })
6997
7013
  ]
6998
7014
  }
6999
- ) }, `custom-${h}`);
7015
+ ) }, `custom-${g}`);
7000
7016
  }
7001
7017
  if (!s.paramName) return null;
7002
7018
  const k = _[s.paramName], C = s.displayText || s.label || s.paramName;
@@ -7030,7 +7046,7 @@ const Oa = {
7030
7046
  }
7031
7047
  ),
7032
7048
  k && /* @__PURE__ */ r("p", { className: "text-red-500 text-xs mt-0.5", children: k })
7033
- ] }, `custom-${h}`);
7049
+ ] }, `custom-${g}`);
7034
7050
  if (s.customType === "link_checkbox")
7035
7051
  return /* @__PURE__ */ o("div", { className: "flex flex-col gap-1", children: [
7036
7052
  /* @__PURE__ */ o(
@@ -7074,11 +7090,11 @@ const Oa = {
7074
7090
  }
7075
7091
  ),
7076
7092
  k && /* @__PURE__ */ r("p", { className: "text-red-500 text-xs mt-0.5", children: k })
7077
- ] }, `custom-${h}`);
7093
+ ] }, `custom-${g}`);
7078
7094
  if (s.customType === "group_checkbox") {
7079
7095
  const w = (ue[s.paramName] || "").split(",").filter(Boolean);
7080
7096
  return /* @__PURE__ */ o("div", { className: "flex flex-col gap-1.5", children: [
7081
- D && /* @__PURE__ */ o(
7097
+ M && /* @__PURE__ */ o(
7082
7098
  "div",
7083
7099
  {
7084
7100
  className: "text-sm font-medium",
@@ -7105,8 +7121,8 @@ const Oa = {
7105
7121
  if (s.singleSelect)
7106
7122
  Ne(s.paramName, ke ? me.value : "");
7107
7123
  else {
7108
- const Le = ke ? [...w, me.value] : w.filter((le) => le !== me.value);
7109
- Ne(s.paramName, Le.join(","));
7124
+ const Pe = ke ? [...w, me.value] : w.filter((le) => le !== me.value);
7125
+ Ne(s.paramName, Pe.join(","));
7110
7126
  }
7111
7127
  }
7112
7128
  }
@@ -7125,10 +7141,10 @@ const Oa = {
7125
7141
  );
7126
7142
  }) }),
7127
7143
  k && /* @__PURE__ */ r("p", { className: "text-red-500 text-xs", children: k })
7128
- ] }, `custom-${h}`);
7144
+ ] }, `custom-${g}`);
7129
7145
  }
7130
7146
  return s.customType === "radio_group" ? /* @__PURE__ */ o("div", { className: "flex flex-col gap-1.5", children: [
7131
- D && /* @__PURE__ */ o(
7147
+ M && /* @__PURE__ */ o(
7132
7148
  "div",
7133
7149
  {
7134
7150
  className: "text-sm font-medium",
@@ -7151,9 +7167,9 @@ const Oa = {
7151
7167
  type: "radio",
7152
7168
  checked: ue[s.paramName] === w.value,
7153
7169
  onChange: () => Ne(s.paramName, w.value),
7154
- name: `radio-group-${s.paramName}-${h}`,
7170
+ name: `radio-group-${s.paramName}-${g}`,
7155
7171
  className: "metakyc-option-input",
7156
- style: Oa
7172
+ style: $a
7157
7173
  }
7158
7174
  ),
7159
7175
  /* @__PURE__ */ r(
@@ -7169,23 +7185,23 @@ const Oa = {
7169
7185
  w.value
7170
7186
  )) }),
7171
7187
  k && /* @__PURE__ */ r("p", { className: "text-red-500 text-xs", children: k })
7172
- ] }, `custom-${h}`) : /* @__PURE__ */ r(
7188
+ ] }, `custom-${g}`) : /* @__PURE__ */ r(
7173
7189
  be,
7174
7190
  {
7175
7191
  type: "text",
7176
- label: D ? `${C}${s.required ? " *" : ""}` : void 0,
7177
- placeholder: D ? void 0 : C,
7192
+ label: M ? `${C}${s.required ? " *" : ""}` : void 0,
7193
+ placeholder: M ? void 0 : C,
7178
7194
  value: ue[s.paramName] || "",
7179
7195
  onChange: (w) => Ne(s.paramName, w.target.value),
7180
7196
  required: s.required,
7181
7197
  error: k
7182
7198
  },
7183
- `custom-${h}`
7199
+ `custom-${g}`
7184
7200
  );
7185
- }, z = (s, h) => {
7186
- const D = $e(s);
7201
+ }, O = (s, g) => {
7202
+ const M = $e(s);
7187
7203
  return /* @__PURE__ */ o("div", { className: "space-y-4", children: [
7188
- s.conditionalOn && /* @__PURE__ */ r(Mt, { helpText: s.conditionalHelpText, children: /* @__PURE__ */ o(
7204
+ s.conditionalOn && /* @__PURE__ */ r(zt, { helpText: s.conditionalHelpText, children: /* @__PURE__ */ o(
7189
7205
  "label",
7190
7206
  {
7191
7207
  className: "metakyc-option-label",
@@ -7194,7 +7210,7 @@ const Oa = {
7194
7210
  /* @__PURE__ */ r(
7195
7211
  Be,
7196
7212
  {
7197
- checked: D,
7213
+ checked: M,
7198
7214
  onChange: (k) => Ne(s.conditionalOn, k ? "true" : "false")
7199
7215
  }
7200
7216
  ),
@@ -7209,9 +7225,9 @@ const Oa = {
7209
7225
  ]
7210
7226
  }
7211
7227
  ) }),
7212
- D && /* @__PURE__ */ r("div", { style: { display: "grid", gridTemplateColumns: "repeat(4, minmax(0, 1fr))", gap: "1rem" }, children: s.fields.map((k, C) => {
7228
+ M && /* @__PURE__ */ r("div", { style: { display: "grid", gridTemplateColumns: "repeat(4, minmax(0, 1fr))", gap: "1rem" }, children: s.fields.map((k, C) => {
7213
7229
  const w = Math.min(4, Math.max(1, Number(k.colSpan) || 4)), me = k.isCustom ? `custom-${C}-${k.paramName}` : `builtin-${k.name}-${C}`;
7214
- return /* @__PURE__ */ r("div", { style: { gridColumn: `span ${w} / span ${w}` }, children: /* @__PURE__ */ r(Mt, { helpText: k.helpText, children: k.isCustom ? g(k, C) : Qe(k.name, me, k.displayText, k.countriesType, k.labelMode) }) }, me);
7230
+ return /* @__PURE__ */ r("div", { style: { gridColumn: `span ${w} / span ${w}` }, children: /* @__PURE__ */ r(zt, { helpText: k.helpText, children: k.isCustom ? h(k, C) : Qe(k.name, me, k.displayText, k.countriesType, k.labelMode) }) }, me);
7215
7231
  }) })
7216
7232
  ] });
7217
7233
  };
@@ -7221,7 +7237,7 @@ const Oa = {
7221
7237
  /* @__PURE__ */ r("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)", fontSize: "0.875rem" }, children: "Loading form…" })
7222
7238
  ] }) }) });
7223
7239
  if (N) {
7224
- const s = N[A] ?? N[0], h = je === -1, D = Ie === -1, k = N.length, C = $e(s), w = Object.values(_);
7240
+ const s = N[A] ?? N[0], g = je === -1, M = Ie === -1, k = N.length, C = $e(s), w = Object.values(_);
7225
7241
  return /* @__PURE__ */ r("div", { className: "metakyc-sdk", children: /* @__PURE__ */ o(te, { children: [
7226
7242
  /* @__PURE__ */ r(Se, { children: /* @__PURE__ */ r(ut, { title: (c == null ? void 0 : c.title) || "Create Applicant" }) }),
7227
7243
  /* @__PURE__ */ o(re, { children: [
@@ -7251,11 +7267,11 @@ const Oa = {
7251
7267
  }
7252
7268
  )
7253
7269
  ] }),
7254
- (he || w.length > 0) && /* @__PURE__ */ o("div", { className: "mb-4 p-3 bg-red-50 border border-red-200 rounded-lg", children: [
7255
- he && /* @__PURE__ */ o("p", { className: "text-red-600 text-sm", children: [
7270
+ (ge || w.length > 0) && /* @__PURE__ */ o("div", { className: "mb-4 p-3 bg-red-50 border border-red-200 rounded-lg", children: [
7271
+ ge && /* @__PURE__ */ o("p", { className: "text-red-600 text-sm", children: [
7256
7272
  /* @__PURE__ */ r("strong", { children: "Error:" }),
7257
7273
  " ",
7258
- he
7274
+ ge
7259
7275
  ] }),
7260
7276
  w.map((me, se) => /* @__PURE__ */ r("p", { className: "text-red-600 text-sm", children: me }, se))
7261
7277
  ] }),
@@ -7278,11 +7294,11 @@ const Oa = {
7278
7294
  k
7279
7295
  ] })
7280
7296
  ] }),
7281
- z(s)
7297
+ O(s)
7282
7298
  ] }),
7283
7299
  /* @__PURE__ */ o(Ce, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
7284
7300
  /* @__PURE__ */ o("div", { children: [
7285
- !h && /* @__PURE__ */ r(
7301
+ !g && /* @__PURE__ */ r(
7286
7302
  J,
7287
7303
  {
7288
7304
  type: "button",
@@ -7294,15 +7310,15 @@ const Oa = {
7294
7310
  children: "Previous"
7295
7311
  }
7296
7312
  ),
7297
- h && n && /* @__PURE__ */ r(J, { type: "button", variant: "outline", onClick: n, disabled: ee || y, children: "Cancel" })
7313
+ g && n && /* @__PURE__ */ r(J, { type: "button", variant: "outline", onClick: n, disabled: ee || y, children: "Cancel" })
7298
7314
  ] }),
7299
7315
  /* @__PURE__ */ r(
7300
7316
  J,
7301
7317
  {
7302
7318
  type: "button",
7303
7319
  isLoading: ee || y,
7304
- onClick: D ? He : Ze,
7305
- children: D ? s.conditionalOn && !C ? "Skip & Submit" : "Submit" : s.conditionalOn && !C ? "Skip" : "Next"
7320
+ onClick: M ? He : Ze,
7321
+ children: M ? s.conditionalOn && !C ? "Skip & Submit" : "Submit" : s.conditionalOn && !C ? "Skip" : "Next"
7306
7322
  }
7307
7323
  )
7308
7324
  ] })
@@ -7311,10 +7327,10 @@ const Oa = {
7311
7327
  return /* @__PURE__ */ r("div", { className: "metakyc-sdk", children: /* @__PURE__ */ r("form", { onSubmit: ot, children: /* @__PURE__ */ o(te, { children: [
7312
7328
  /* @__PURE__ */ r(Se, { children: /* @__PURE__ */ r(ut, { title: (c == null ? void 0 : c.title) || "Create Applicant" }) }),
7313
7329
  /* @__PURE__ */ o(re, { children: [
7314
- he && /* @__PURE__ */ r("div", { className: "mb-6 p-4 bg-red-50 border border-red-200 rounded-lg", children: /* @__PURE__ */ o("p", { className: "text-red-600 text-sm", children: [
7330
+ ge && /* @__PURE__ */ r("div", { className: "mb-6 p-4 bg-red-50 border border-red-200 rounded-lg", children: /* @__PURE__ */ o("p", { className: "text-red-600 text-sm", children: [
7315
7331
  /* @__PURE__ */ r("strong", { children: "Error:" }),
7316
7332
  " ",
7317
- he
7333
+ ge
7318
7334
  ] }) }),
7319
7335
  /* @__PURE__ */ r("div", { style: { display: "grid", gridTemplateColumns: "repeat(4, minmax(0, 1fr))", gap: "1rem" }, children: Y.map((s) => /* @__PURE__ */ r("div", { style: { gridColumn: "span 4 / span 4" }, children: Qe(s) }, s)) })
7320
7336
  ] }),
@@ -7323,43 +7339,43 @@ const Oa = {
7323
7339
  /* @__PURE__ */ r(J, { type: "submit", isLoading: ee || y, children: "Create Applicant" })
7324
7340
  ] })
7325
7341
  ] }) }) });
7326
- }, zt = ["companyName", "email"];
7342
+ }, Ot = ["companyName", "email"];
7327
7343
  function wt(e) {
7328
7344
  return e == null || e === "" || Array.isArray(e) && e.length === 0;
7329
7345
  }
7330
- const nn = ({
7346
+ const on = ({
7331
7347
  workflowKey: e,
7332
7348
  externalRefId: t,
7333
7349
  onSuccess: a,
7334
7350
  onCancel: n
7335
7351
  }) => {
7336
- var Qe, g, z, K, W, X;
7337
- const { config: i, baseInformationService: l, currentTheme: c } = Te(), { createCompanyApplicant: d, isLoading: y } = Bt(), p = e || ((Qe = i.applicantForm) == null ? void 0 : Qe.workflowKey);
7352
+ var Qe, h, O, K, W, X;
7353
+ const { config: i, baseInformationService: l, currentTheme: c } = Le(), { createCompanyApplicant: d, isLoading: y } = _t(), p = e || ((Qe = i.applicantForm) == null ? void 0 : Qe.workflowKey);
7338
7354
  if (!p)
7339
7355
  throw new Error(
7340
7356
  "workflowKey is required. Provide it either as a prop to CreateCompanyApplicantForm or set it in config.applicantForm.workflowKey"
7341
7357
  );
7342
- const b = t || ((g = i.applicantForm) == null ? void 0 : g.externalRefId) || "", F = ((z = i.applicantForm) == null ? void 0 : z.email) || "", S = ((K = i.applicantForm) == null ? void 0 : K.initialValues) || {}, L = (((W = i.applicantForm) == null ? void 0 : W.fieldLabelMode) || (c == null ? void 0 : c.fieldLabelMode) || "label") !== "placeholder", v = De(
7358
+ const b = t || ((h = i.applicantForm) == null ? void 0 : h.externalRefId) || "", F = ((O = i.applicantForm) == null ? void 0 : O.email) || "", S = ((K = i.applicantForm) == null ? void 0 : K.initialValues) || {}, L = (((W = i.applicantForm) == null ? void 0 : W.fieldLabelMode) || (c == null ? void 0 : c.fieldLabelMode) || "label") !== "placeholder", v = De(
7343
7359
  () => c != null && c.companyFormPages && c.companyFormPages.length > 0 ? c.companyFormPages : null,
7344
7360
  [c == null ? void 0 : c.companyFormPages]
7345
7361
  ), N = De(() => {
7346
- const u = new Set(zt), I = c == null ? void 0 : c.companyFormRequiredFields;
7347
- if (I) for (const P of I) u.add(P);
7362
+ const u = new Set(Ot), I = c == null ? void 0 : c.companyFormRequiredFields;
7363
+ if (I) for (const D of I) u.add(D);
7348
7364
  if (v)
7349
- for (const P of v)
7350
- for (const m of P.fields)
7365
+ for (const D of v)
7366
+ for (const m of D.fields)
7351
7367
  !m.isCustom && m.name && m.required && u.add(m.name);
7352
7368
  return Array.from(u);
7353
7369
  }, [c == null ? void 0 : c.companyFormRequiredFields, v]), B = De(() => {
7354
7370
  var u;
7355
7371
  if (v) {
7356
- const I = v.flatMap((m) => m.fields).filter((m) => !m.isCustom && m.name).map((m) => m.name), P = new Set(I);
7357
- for (const m of zt) P.add(m);
7358
- return Array.from(P);
7372
+ const I = v.flatMap((m) => m.fields).filter((m) => !m.isCustom && m.name).map((m) => m.name), D = new Set(I);
7373
+ for (const m of Ot) D.add(m);
7374
+ return Array.from(D);
7359
7375
  }
7360
- return (u = i.applicantForm) != null && u.visibleFields ? i.applicantForm.visibleFields : c != null && c.companyFormVisibleFields && c.companyFormVisibleFields.length > 0 ? c.companyFormVisibleFields : dr;
7361
- }, [(X = i.applicantForm) == null ? void 0 : X.visibleFields, c == null ? void 0 : c.companyFormVisibleFields, v]), Y = /* @__PURE__ */ new Set(["countryResidence", "addressCountry"]), M = De(() => {
7362
- var I, P;
7376
+ return (u = i.applicantForm) != null && u.visibleFields ? i.applicantForm.visibleFields : c != null && c.companyFormVisibleFields && c.companyFormVisibleFields.length > 0 ? c.companyFormVisibleFields : mr;
7377
+ }, [(X = i.applicantForm) == null ? void 0 : X.visibleFields, c == null ? void 0 : c.companyFormVisibleFields, v]), Y = /* @__PURE__ */ new Set(["countryResidence", "addressCountry"]), P = De(() => {
7378
+ var I, D;
7363
7379
  const u = /* @__PURE__ */ new Set();
7364
7380
  if (v)
7365
7381
  for (const m of v)
@@ -7367,17 +7383,17 @@ const nn = ({
7367
7383
  !s.isCustom && s.name && Y.has(s.name) && u.add(s.countriesType ?? ((I = st[s.name]) == null ? void 0 : I.countriesType));
7368
7384
  else
7369
7385
  for (const m of B)
7370
- Y.has(m) && u.add((P = st[m]) == null ? void 0 : P.countriesType);
7386
+ Y.has(m) && u.add((D = st[m]) == null ? void 0 : D.countriesType);
7371
7387
  return u.size === 0 && u.add(void 0), Array.from(u);
7372
- }, [B, v]), [O, Z] = x({}), [ne, R] = x(!0), f = de(/* @__PURE__ */ new Set()), $ = de(/* @__PURE__ */ new Set());
7388
+ }, [B, v]), [z, Z] = x({}), [ne, R] = x(!0), f = de(/* @__PURE__ */ new Set()), $ = de(/* @__PURE__ */ new Set());
7373
7389
  fe(() => {
7374
7390
  if (!c) return;
7375
- const u = M.filter((m) => {
7391
+ const u = P.filter((m) => {
7376
7392
  const s = m != null ? String(m) : "all";
7377
7393
  return !$.current.has(s) && !f.current.has(s);
7378
7394
  });
7379
7395
  if (u.length === 0) {
7380
- M.every((s) => $.current.has(s != null ? String(s) : "all")) && R(!1);
7396
+ P.every((s) => $.current.has(s != null ? String(s) : "all")) && R(!1);
7381
7397
  return;
7382
7398
  }
7383
7399
  R(!0);
@@ -7386,22 +7402,22 @@ const nn = ({
7386
7402
  try {
7387
7403
  const m = await Promise.all(
7388
7404
  u.map(async (s) => {
7389
- const h = s != null ? String(s) : "all", D = await l.getCountries("", i.locale || "en", s), k = /* @__PURE__ */ new Set(), C = D.map((w) => ({ value: w.abbreviation3 || w.abbreviation, label: w.name })).filter((w) => !w.value || k.has(w.value) ? !1 : (k.add(w.value), !0));
7390
- return $.current.add(h), f.current.delete(h), [h, C];
7405
+ const g = s != null ? String(s) : "all", M = await l.getCountries("", i.locale || "en", s), k = /* @__PURE__ */ new Set(), C = M.map((w) => ({ value: w.abbreviation3 || w.abbreviation, label: w.name })).filter((w) => !w.value || k.has(w.value) ? !1 : (k.add(w.value), !0));
7406
+ return $.current.add(g), f.current.delete(g), [g, C];
7391
7407
  })
7392
7408
  );
7393
7409
  Z((s) => ({ ...s, ...Object.fromEntries(m) }));
7394
7410
  } catch (m) {
7395
7411
  I.forEach((s) => f.current.delete(s)), console.error("Failed to load countries:", m);
7396
7412
  } finally {
7397
- M.every((s) => $.current.has(s != null ? String(s) : "all")) && R(!1);
7413
+ P.every((s) => $.current.has(s != null ? String(s) : "all")) && R(!1);
7398
7414
  }
7399
7415
  })();
7400
- }, [M, c]);
7416
+ }, [P, c]);
7401
7417
  const G = (u, I) => {
7402
7418
  var s;
7403
- const P = I ?? ((s = st[u]) == null ? void 0 : s.countriesType), m = P != null ? String(P) : "all";
7404
- return O[m] || [];
7419
+ const D = I ?? ((s = st[u]) == null ? void 0 : s.countriesType), m = D != null ? String(D) : "all";
7420
+ return z[m] || [];
7405
7421
  }, V = {
7406
7422
  companyName: 1,
7407
7423
  registrationNumber: 1,
@@ -7447,21 +7463,21 @@ const nn = ({
7447
7463
  lei: "",
7448
7464
  externalRefId: b,
7449
7465
  ...j
7450
- }), [q, ve] = x({}), [pe, ue] = x(0), [xe, A] = x({}), [U, _] = x(null), [H, he] = x(!1), E = (u, I) => ie((P) => ({ ...P, [u]: I })), ee = (u, I) => ve((P) => ({ ...P, [u]: I })), ye = (u) => !u.conditionalOn || q[u.conditionalOn] === "true", oe = v && pe < v.length - 1 ? pe + 1 : -1, Ne = v && pe > 0 ? pe - 1 : -1, $e = (u) => {
7451
- var P;
7466
+ }), [q, ve] = x({}), [pe, ue] = x(0), [xe, A] = x({}), [U, _] = x(null), [H, ge] = x(!1), E = (u, I) => ie((D) => ({ ...D, [u]: I })), ee = (u, I) => ve((D) => ({ ...D, [u]: I })), ye = (u) => !u.conditionalOn || q[u.conditionalOn] === "true", oe = v && pe < v.length - 1 ? pe + 1 : -1, Ne = v && pe > 0 ? pe - 1 : -1, $e = (u) => {
7467
+ var D;
7452
7468
  const I = {};
7453
7469
  for (const m of u.fields)
7454
7470
  if (m.isCustom) {
7455
7471
  if (m.customType === "paragraph" || m.customType === "html" || m.customType === "br" || m.customType === "link") continue;
7456
7472
  if (m.required && m.paramName) {
7457
- const s = q[m.paramName], h = m.displayText || m.label || m.paramName;
7458
- m.customType === "checkbox" || m.customType === "link_checkbox" ? s !== "true" && (I[m.paramName] = `${h} is required.`) : (!s || s.trim() === "") && (I[m.paramName] = `${h} is required.`);
7473
+ const s = q[m.paramName], g = m.displayText || m.label || m.paramName;
7474
+ m.customType === "checkbox" || m.customType === "link_checkbox" ? s !== "true" && (I[m.paramName] = `${g} is required.`) : (!s || s.trim() === "") && (I[m.paramName] = `${g} is required.`);
7459
7475
  }
7460
7476
  } else if (m.name) {
7461
7477
  const s = m.name;
7462
7478
  if (N.includes(s) && wt(Q[s])) {
7463
- const h = m.displayText || ((P = st[s]) == null ? void 0 : P.label) || s;
7464
- I[s] = `${h} is required.`;
7479
+ const g = m.displayText || ((D = st[s]) == null ? void 0 : D.label) || s;
7480
+ I[s] = `${g} is required.`;
7465
7481
  }
7466
7482
  }
7467
7483
  return I;
@@ -7482,64 +7498,64 @@ const nn = ({
7482
7498
  var u;
7483
7499
  if (v) {
7484
7500
  let I = {};
7485
- for (const P of v)
7486
- ye(P) && (I = { ...I, ...$e(P) });
7501
+ for (const D of v)
7502
+ ye(D) && (I = { ...I, ...$e(D) });
7487
7503
  if (Object.keys(I).length > 0) {
7488
7504
  A(I);
7489
7505
  return;
7490
7506
  }
7491
7507
  }
7492
- he(!0), _(null);
7508
+ ge(!0), _(null);
7493
7509
  try {
7494
7510
  const I = {
7495
7511
  workflowKey: Q.workflowKey,
7496
7512
  externalRefId: ((u = Q.externalRefId) == null ? void 0 : u.trim()) || void 0
7497
- }, P = v ? v.filter((h) => ye(h)).flatMap((h) => h.fields).filter((h) => !h.isCustom && h.name).map((h) => h.name) : B;
7498
- for (const h of P) {
7499
- const D = Q[h];
7500
- if (!wt(D))
7501
- switch (h) {
7513
+ }, D = v ? v.filter((g) => ye(g)).flatMap((g) => g.fields).filter((g) => !g.isCustom && g.name).map((g) => g.name) : B;
7514
+ for (const g of D) {
7515
+ const M = Q[g];
7516
+ if (!wt(M))
7517
+ switch (g) {
7502
7518
  case "companyName":
7503
- I.companyName = D;
7519
+ I.companyName = M;
7504
7520
  break;
7505
7521
  case "email":
7506
- I.companyEmail = D;
7522
+ I.companyEmail = M;
7507
7523
  break;
7508
7524
  case "phone":
7509
- I.companyPhone = D;
7525
+ I.companyPhone = M;
7510
7526
  break;
7511
7527
  case "registrationNumber":
7512
- I.companyRegistrationNumber = D;
7528
+ I.companyRegistrationNumber = M;
7513
7529
  break;
7514
7530
  case "countryResidence":
7515
- I.companyCountry = D;
7531
+ I.companyCountry = M;
7516
7532
  break;
7517
7533
  case "city":
7518
- I.companyCity = D;
7534
+ I.companyCity = M;
7519
7535
  break;
7520
7536
  case "street":
7521
- I.companyStreet = D;
7537
+ I.companyStreet = M;
7522
7538
  break;
7523
7539
  case "postalCode":
7524
- I.companyZip = D;
7540
+ I.companyZip = M;
7525
7541
  break;
7526
7542
  default:
7527
- I[h] = D;
7543
+ I[g] = M;
7528
7544
  break;
7529
7545
  }
7530
7546
  }
7531
7547
  const m = [];
7532
7548
  if (v) {
7533
- for (const h of v)
7534
- if (ye(h))
7535
- for (const D of h.fields) {
7536
- if (!D.isCustom || !D.paramName || D.customType === "paragraph" || D.customType === "html" || D.customType === "br" || D.customType === "link") continue;
7537
- const k = q[D.paramName] ?? "";
7549
+ for (const g of v)
7550
+ if (ye(g))
7551
+ for (const M of g.fields) {
7552
+ if (!M.isCustom || !M.paramName || M.customType === "paragraph" || M.customType === "html" || M.customType === "br" || M.customType === "link") continue;
7553
+ const k = q[M.paramName] ?? "";
7538
7554
  let C;
7539
- if (D.customType === "checkbox" || D.customType === "link_checkbox")
7555
+ if (M.customType === "checkbox" || M.customType === "link_checkbox")
7540
7556
  C = k === "true" ? "yes" : "no";
7541
- else if (C = k, !C && !D.required) continue;
7542
- m.push({ paramName: D.paramName, value: C });
7557
+ else if (C = k, !C && !M.required) continue;
7558
+ m.push({ paramName: M.paramName, value: C });
7543
7559
  }
7544
7560
  }
7545
7561
  m.length > 0 && (I.applicantAdditionalDatas = m);
@@ -7548,34 +7564,34 @@ const nn = ({
7548
7564
  } catch (I) {
7549
7565
  console.error("Error creating company applicant:", I), _(I.message || "Failed to create company applicant");
7550
7566
  } finally {
7551
- he(!1);
7567
+ ge(!1);
7552
7568
  }
7553
7569
  }, it = async (u) => {
7554
7570
  var I;
7555
7571
  u.preventDefault();
7556
- for (const P of N)
7557
- if (wt(Q[P])) {
7558
- const m = ((I = st[P]) == null ? void 0 : I.label) || P;
7572
+ for (const D of N)
7573
+ if (wt(Q[D])) {
7574
+ const m = ((I = st[D]) == null ? void 0 : I.label) || D;
7559
7575
  _(`${m} is required.`);
7560
7576
  return;
7561
7577
  }
7562
7578
  await je();
7563
- }, Ze = (u, I, P, m, s) => {
7564
- const h = st[u];
7565
- if (!h) return null;
7566
- const D = N.includes(u), k = xe[u], C = P || h.label, w = u in j, me = I ?? u, se = s ? s !== "placeholder" : L, ke = se ? C : void 0, Le = se ? "..." : C;
7567
- switch (h.type) {
7579
+ }, Ze = (u, I, D, m, s) => {
7580
+ const g = st[u];
7581
+ if (!g) return null;
7582
+ const M = N.includes(u), k = xe[u], C = D || g.label, w = u in j, me = I ?? u, se = s ? s !== "placeholder" : L, ke = se ? C : void 0, Pe = se ? "..." : C;
7583
+ switch (g.type) {
7568
7584
  case "select":
7569
7585
  if (u === "countryResidence" || u === "addressCountry") {
7570
7586
  const le = G(u, m);
7571
7587
  return /* @__PURE__ */ r(
7572
7588
  Ye,
7573
7589
  {
7574
- required: D,
7590
+ required: M,
7575
7591
  label: ke,
7576
7592
  value: Q[u] || "",
7577
7593
  onChange: (_e) => E(u, _e),
7578
- options: [{ value: "", label: `Select ${Le.toLowerCase()}` }, ...le],
7594
+ options: [{ value: "", label: `Select ${Pe.toLowerCase()}` }, ...le],
7579
7595
  disabled: ne,
7580
7596
  readOnly: w,
7581
7597
  error: k
@@ -7588,7 +7604,7 @@ const nn = ({
7588
7604
  return /* @__PURE__ */ r(
7589
7605
  be,
7590
7606
  {
7591
- required: D,
7607
+ required: M,
7592
7608
  type: "date",
7593
7609
  label: ke,
7594
7610
  placeholder: se ? void 0 : C,
@@ -7603,7 +7619,7 @@ const nn = ({
7603
7619
  return /* @__PURE__ */ r(
7604
7620
  be,
7605
7621
  {
7606
- required: D,
7622
+ required: M,
7607
7623
  type: "email",
7608
7624
  label: ke,
7609
7625
  placeholder: se ? void 0 : C,
@@ -7618,7 +7634,7 @@ const nn = ({
7618
7634
  return /* @__PURE__ */ r(
7619
7635
  be,
7620
7636
  {
7621
- required: D,
7637
+ required: M,
7622
7638
  type: "tel",
7623
7639
  label: ke,
7624
7640
  placeholder: se ? void 0 : C,
@@ -7633,7 +7649,7 @@ const nn = ({
7633
7649
  return /* @__PURE__ */ r(
7634
7650
  be,
7635
7651
  {
7636
- required: D,
7652
+ required: M,
7637
7653
  type: "text",
7638
7654
  label: ke,
7639
7655
  placeholder: se ? void 0 : C,
@@ -7671,14 +7687,14 @@ const nn = ({
7671
7687
  }
7672
7688
  ) }, `custom-${I}`);
7673
7689
  if (!u.paramName) return null;
7674
- const P = xe[u.paramName], m = u.displayText || u.label || u.paramName, s = u.labelMode ? u.labelMode !== "placeholder" : L;
7690
+ const D = xe[u.paramName], m = u.displayText || u.label || u.paramName, s = u.labelMode ? u.labelMode !== "placeholder" : L;
7675
7691
  return u.customType === "checkbox" ? /* @__PURE__ */ o("div", { className: "flex flex-col gap-1", children: [
7676
7692
  /* @__PURE__ */ o("label", { style: { display: "flex", alignItems: "center", gap: "10px", cursor: "pointer" }, children: [
7677
7693
  /* @__PURE__ */ r(
7678
7694
  Be,
7679
7695
  {
7680
7696
  checked: q[u.paramName] === "true",
7681
- onChange: (h) => ee(u.paramName, h ? "true" : "false")
7697
+ onChange: (g) => ee(u.paramName, g ? "true" : "false")
7682
7698
  }
7683
7699
  ),
7684
7700
  /* @__PURE__ */ o("span", { style: { fontSize: "14px", color: "var(--metakyc-text-primary, #111827)" }, children: [
@@ -7686,7 +7702,7 @@ const nn = ({
7686
7702
  u.required && /* @__PURE__ */ r("span", { className: "text-red-500 ml-0.5", children: "*" })
7687
7703
  ] })
7688
7704
  ] }),
7689
- P && /* @__PURE__ */ r("p", { className: "text-red-500 text-xs mt-0.5", children: P })
7705
+ D && /* @__PURE__ */ r("p", { className: "text-red-500 text-xs mt-0.5", children: D })
7690
7706
  ] }, `custom-${I}`) : /* @__PURE__ */ r(
7691
7707
  be,
7692
7708
  {
@@ -7694,9 +7710,9 @@ const nn = ({
7694
7710
  label: s ? `${m}${u.required ? " *" : ""}` : void 0,
7695
7711
  placeholder: s ? void 0 : m,
7696
7712
  value: q[u.paramName] || "",
7697
- onChange: (h) => ee(u.paramName, h.target.value),
7713
+ onChange: (g) => ee(u.paramName, g.target.value),
7698
7714
  required: u.required,
7699
- error: P
7715
+ error: D
7700
7716
  },
7701
7717
  `custom-${I}`
7702
7718
  );
@@ -7708,14 +7724,14 @@ const nn = ({
7708
7724
  Be,
7709
7725
  {
7710
7726
  checked: I,
7711
- onChange: (P) => ee(u.conditionalOn, P ? "true" : "false")
7727
+ onChange: (D) => ee(u.conditionalOn, D ? "true" : "false")
7712
7728
  }
7713
7729
  ),
7714
7730
  /* @__PURE__ */ r("span", { style: { fontSize: "14px", fontWeight: 500 }, children: u.conditionalOn })
7715
7731
  ] }),
7716
- I && /* @__PURE__ */ r("div", { style: { display: "grid", gridTemplateColumns: "repeat(4, minmax(0, 1fr))", gap: "1rem" }, children: u.fields.map((P, m) => {
7717
- const s = Math.min(4, Math.max(1, Number(P.colSpan) || 4)), h = P.isCustom ? `custom-${m}-${P.paramName}` : `builtin-${P.name}-${m}`;
7718
- return /* @__PURE__ */ r("div", { style: { gridColumn: `span ${s} / span ${s}` }, children: P.isCustom ? He(P, m) : Ze(P.name, h, P.displayText, P.countriesType, P.labelMode) }, h);
7732
+ I && /* @__PURE__ */ r("div", { style: { display: "grid", gridTemplateColumns: "repeat(4, minmax(0, 1fr))", gap: "1rem" }, children: u.fields.map((D, m) => {
7733
+ const s = Math.min(4, Math.max(1, Number(D.colSpan) || 4)), g = D.isCustom ? `custom-${m}-${D.paramName}` : `builtin-${D.name}-${m}`;
7734
+ return /* @__PURE__ */ r("div", { style: { gridColumn: `span ${s} / span ${s}` }, children: D.isCustom ? He(D, m) : Ze(D.name, g, D.displayText, D.countriesType, D.labelMode) }, g);
7719
7735
  }) })
7720
7736
  ] });
7721
7737
  };
@@ -7725,7 +7741,7 @@ const nn = ({
7725
7741
  /* @__PURE__ */ r("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)", fontSize: "0.875rem" }, children: "Loading form…" })
7726
7742
  ] }) }) });
7727
7743
  if (v) {
7728
- const u = v[pe] ?? v[0], I = Ne === -1, P = oe === -1, m = v.length, s = ye(u), h = Object.values(xe);
7744
+ const u = v[pe] ?? v[0], I = Ne === -1, D = oe === -1, m = v.length, s = ye(u), g = Object.values(xe);
7729
7745
  return /* @__PURE__ */ r("div", { className: "metakyc-sdk", children: /* @__PURE__ */ o(te, { children: [
7730
7746
  /* @__PURE__ */ r(Se, { children: /* @__PURE__ */ r(ut, { title: (c == null ? void 0 : c.title) || "Company Registration" }) }),
7731
7747
  /* @__PURE__ */ o(re, { children: [
@@ -7733,16 +7749,16 @@ const nn = ({
7733
7749
  u.title && /* @__PURE__ */ r("h3", { className: "font-semibold text-base", style: { color: "var(--metakyc-text-primary, #111827)" }, children: u.title }),
7734
7750
  u.subtitle && /* @__PURE__ */ r("p", { className: "text-sm mt-0.5", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: u.subtitle })
7735
7751
  ] }),
7736
- (U || h.length > 0) && /* @__PURE__ */ o("div", { className: "mb-4 p-3 bg-red-50 border border-red-200 rounded-lg", children: [
7752
+ (U || g.length > 0) && /* @__PURE__ */ o("div", { className: "mb-4 p-3 bg-red-50 border border-red-200 rounded-lg", children: [
7737
7753
  U && /* @__PURE__ */ o("p", { className: "text-red-600 text-sm", children: [
7738
7754
  /* @__PURE__ */ r("strong", { children: "Error:" }),
7739
7755
  " ",
7740
7756
  U
7741
7757
  ] }),
7742
- h.map((D, k) => /* @__PURE__ */ r("p", { className: "text-red-600 text-sm", children: D }, k))
7758
+ g.map((M, k) => /* @__PURE__ */ r("p", { className: "text-red-600 text-sm", children: M }, k))
7743
7759
  ] }),
7744
7760
  m > 1 && /* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem", marginBottom: "1rem" }, children: [
7745
- v.map((D, k) => /* @__PURE__ */ r(
7761
+ v.map((M, k) => /* @__PURE__ */ r(
7746
7762
  "div",
7747
7763
  {
7748
7764
  style: {
@@ -7778,7 +7794,7 @@ const nn = ({
7778
7794
  ),
7779
7795
  I && n && /* @__PURE__ */ r(J, { type: "button", variant: "outline", onClick: n, disabled: H || y, children: "Cancel" })
7780
7796
  ] }),
7781
- /* @__PURE__ */ r(J, { type: "button", isLoading: H || y, onClick: P ? je : Ie, children: P ? u.conditionalOn && !s ? "Skip & Submit" : "Submit" : u.conditionalOn && !s ? "Skip" : "Next" })
7797
+ /* @__PURE__ */ r(J, { type: "button", isLoading: H || y, onClick: D ? je : Ie, children: D ? u.conditionalOn && !s ? "Skip & Submit" : "Submit" : u.conditionalOn && !s ? "Skip" : "Next" })
7782
7798
  ] })
7783
7799
  ] }) });
7784
7800
  }
@@ -7797,7 +7813,7 @@ const nn = ({
7797
7813
  /* @__PURE__ */ r(J, { type: "submit", isLoading: H || y, children: "Register Company" })
7798
7814
  ] })
7799
7815
  ] }) }) });
7800
- }, on = ({
7816
+ }, sn = ({
7801
7817
  applicantId: e,
7802
7818
  onComplete: t,
7803
7819
  onError: a,
@@ -7814,7 +7830,7 @@ const nn = ({
7814
7830
  error: F,
7815
7831
  moveBack: S,
7816
7832
  refreshProgress: T
7817
- } = Gr(e), [L, v] = we.useState(!1), N = we.useRef(null);
7833
+ } = Jr(e), [L, v] = we.useState(!1), N = we.useRef(null);
7818
7834
  if (we.useEffect(() => {
7819
7835
  F && a && a(F);
7820
7836
  }, [F, a]), we.useEffect(() => {
@@ -7862,7 +7878,7 @@ const nn = ({
7862
7878
  ] }) }) }) });
7863
7879
  if (i.status === Oe.Finished || i.status === Oe.OnHold)
7864
7880
  return /* @__PURE__ */ r("div", { className: `metakyc-sdk ${n || ""}`, children: /* @__PURE__ */ r(
7865
- Dt,
7881
+ Mt,
7866
7882
  {
7867
7883
  kycStatus: i.kycStatus,
7868
7884
  reviewStatus: i.reviewStatus,
@@ -7879,8 +7895,8 @@ const nn = ({
7879
7895
  /* @__PURE__ */ r(Me, { className: "my-8" }),
7880
7896
  /* @__PURE__ */ r("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: i.status === Oe.IdentityPending ? "Loading identity verification..." : "Loading current step..." })
7881
7897
  ] }) }) });
7882
- const B = (O) => {
7883
- switch (O) {
7898
+ const B = (z) => {
7899
+ switch (z) {
7884
7900
  case ce.Overview:
7885
7901
  return "Overview";
7886
7902
  case ce.Questionaries:
@@ -7903,7 +7919,7 @@ const nn = ({
7903
7919
  return "";
7904
7920
  }
7905
7921
  }, Y = () => {
7906
- const O = c.filter(($) => $.visibility !== !1), Z = O.findIndex(($) => $.order === l.order), ne = Z >= 0 ? Z + 1 : 1, R = O.length, f = R > 1 ? Z / (R - 1) * 100 : 100;
7922
+ const z = c.filter(($) => $.visibility !== !1), Z = z.findIndex(($) => $.order === l.order), ne = Z >= 0 ? Z + 1 : 1, R = z.length, f = R > 1 ? Z / (R - 1) * 100 : 100;
7907
7923
  return /* @__PURE__ */ o("div", { style: {
7908
7924
  marginBottom: "24px",
7909
7925
  backgroundColor: "var(--metakyc-surface, var(--metakyc-background, #ffffff))",
@@ -7914,7 +7930,7 @@ const nn = ({
7914
7930
  }, children: [
7915
7931
  /* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "flex-start", justifyContent: "space-between", marginBottom: "16px" }, children: [
7916
7932
  /* @__PURE__ */ r(ut, {}),
7917
- /* @__PURE__ */ o(_t, { variant: i.status === 1 ? "info" : "success", children: [
7933
+ /* @__PURE__ */ o(jt, { variant: i.status === 1 ? "info" : "success", children: [
7918
7934
  "Step ",
7919
7935
  ne,
7920
7936
  " of ",
@@ -7934,17 +7950,17 @@ const nn = ({
7934
7950
  transition: "width 0.4s ease"
7935
7951
  } }) }) }),
7936
7952
  /* @__PURE__ */ r(
7937
- $a,
7953
+ Ba,
7938
7954
  {
7939
7955
  ref: N,
7940
- visibleSteps: O,
7956
+ visibleSteps: z,
7941
7957
  currentVisibleStepIndex: Z,
7942
7958
  getStepFallbackName: B
7943
7959
  }
7944
7960
  )
7945
7961
  ] });
7946
- }, M = () => {
7947
- const O = {
7962
+ }, P = () => {
7963
+ const z = {
7948
7964
  applicantId: e,
7949
7965
  onComplete: async () => {
7950
7966
  await T();
@@ -7953,23 +7969,23 @@ const nn = ({
7953
7969
  };
7954
7970
  switch (l.action) {
7955
7971
  case ce.Questionaries:
7956
- return /* @__PURE__ */ r(ka, { ...O });
7972
+ return /* @__PURE__ */ r(ba, { ...z });
7957
7973
  case ce.UploadDocument:
7958
- return /* @__PURE__ */ r(va, { ...O });
7974
+ return /* @__PURE__ */ r(wa, { ...z });
7959
7975
  case ce.Overview:
7960
- return /* @__PURE__ */ r(wa, { ...O });
7976
+ return /* @__PURE__ */ r(Sa, { ...z });
7961
7977
  case ce.IdentitySdk:
7962
- return /* @__PURE__ */ r(Ma, { ...O });
7978
+ return /* @__PURE__ */ r(za, { ...z });
7963
7979
  case ce.RiskScoring:
7964
- return /* @__PURE__ */ r(Fa, { ...O });
7980
+ return /* @__PURE__ */ r(Aa, { ...z });
7965
7981
  case ce.AdditionalData:
7966
7982
  case ce.InvestorCategorization:
7967
- return /* @__PURE__ */ r(Ta, { ...O });
7983
+ return /* @__PURE__ */ r(La, { ...z });
7968
7984
  case ce.AppropriatenessTest:
7969
- return /* @__PURE__ */ r(La, { ...O });
7985
+ return /* @__PURE__ */ r(Pa, { ...z });
7970
7986
  case ce.ManualReview:
7971
7987
  return /* @__PURE__ */ r(
7972
- Dt,
7988
+ Mt,
7973
7989
  {
7974
7990
  kycStatus: i.kycStatus,
7975
7991
  reviewStatus: i.reviewStatus,
@@ -7993,9 +8009,9 @@ const nn = ({
7993
8009
  };
7994
8010
  return /* @__PURE__ */ o("div", { className: `metakyc-sdk ${n || ""}`, children: [
7995
8011
  Y(),
7996
- M()
8012
+ P()
7997
8013
  ] });
7998
- }, $a = we.forwardRef(
8014
+ }, Ba = we.forwardRef(
7999
8015
  ({ visibleSteps: e, currentVisibleStepIndex: t, getStepFallbackName: a }, n) => {
8000
8016
  const i = we.useRef(null), l = we.useRef(null);
8001
8017
  return we.useImperativeHandle(n, () => i.current), we.useEffect(() => {
@@ -8081,12 +8097,12 @@ const nn = ({
8081
8097
  );
8082
8098
  }
8083
8099
  );
8084
- function sn(e) {
8100
+ function ln(e) {
8085
8101
  return Ve.object({
8086
8102
  questionResults: Ve.any()
8087
8103
  }).passthrough();
8088
8104
  }
8089
- function Ba(e) {
8105
+ function _a(e) {
8090
8106
  let t = Ve.array(Ve.instanceof(File));
8091
8107
  if (e.isRequired ? t = t.min(
8092
8108
  1,
@@ -8108,38 +8124,38 @@ function Ba(e) {
8108
8124
  }
8109
8125
  return t;
8110
8126
  }
8111
- function ln(e) {
8127
+ function cn(e) {
8112
8128
  const t = {};
8113
8129
  return e.uploadDocumentFiles.forEach((a) => {
8114
8130
  const n = `file_${a.id}`;
8115
- t[n] = Ba(a);
8131
+ t[n] = _a(a);
8116
8132
  }), Ve.object(t);
8117
8133
  }
8118
- function cn(e) {
8134
+ function dn(e) {
8119
8135
  return Ve.any();
8120
8136
  }
8121
- function _a(e) {
8137
+ function ja(e) {
8122
8138
  return Ve.string().min(1, "This question is required");
8123
8139
  }
8124
- function dn(e) {
8140
+ function mn(e) {
8125
8141
  const t = {};
8126
8142
  return e.appropriatenessQuestions.forEach((a) => {
8127
8143
  const n = `question_${a.id}`;
8128
- t[n] = _a();
8144
+ t[n] = ja();
8129
8145
  }), Ve.object(t);
8130
8146
  }
8131
- const mn = Ve.any();
8147
+ const pn = Ve.any();
8132
8148
  export {
8133
8149
  Et as ALLOWED_LANGUAGES,
8134
- Zt as ApplicantProgressOnHoldReason,
8150
+ er as ApplicantProgressOnHoldReason,
8135
8151
  Oe as ApplicantProgressStatus,
8136
8152
  gr as ApplicantService,
8137
- tr as ApplicantStatus,
8138
- or as AppropriatenessQuestionType,
8139
- kr as AppropriatenessTestService,
8140
- La as AppropriatenessTestStep,
8141
- _t as Badge,
8142
- wr as BaseInformationService,
8153
+ rr as ApplicantStatus,
8154
+ sr as AppropriatenessQuestionType,
8155
+ br as AppropriatenessTestService,
8156
+ Pa as AppropriatenessTestStep,
8157
+ jt as Badge,
8158
+ Sr as BaseInformationService,
8143
8159
  J as Button,
8144
8160
  st as COMPANY_FIELD_METADATA,
8145
8161
  te as Card,
@@ -8148,106 +8164,106 @@ export {
8148
8164
  Se as CardHeader,
8149
8165
  Be as Checkbox,
8150
8166
  Xe as CountriesType,
8151
- an as CreateApplicantForm,
8152
- nn as CreateCompanyApplicantForm,
8153
- lr as CriteriaBuiltInType,
8154
- dr as DEFAULT_COMPANY_VISIBLE_FIELDS,
8155
- mr as DEFAULT_VISIBLE_FIELDS,
8156
- ir as DocumentReviewStatus,
8157
- ur as EndpointBuilder,
8167
+ nn as CreateApplicantForm,
8168
+ on as CreateCompanyApplicantForm,
8169
+ cr as CriteriaBuiltInType,
8170
+ mr as DEFAULT_COMPANY_VISIBLE_FIELDS,
8171
+ pr as DEFAULT_VISIBLE_FIELDS,
8172
+ or as DocumentReviewStatus,
8173
+ yr as EndpointBuilder,
8158
8174
  mt as ErrorHandler,
8159
- Tr as EventEmitter,
8175
+ Lr as EventEmitter,
8160
8176
  nt as FIELD_METADATA,
8161
- nr as FileType,
8162
- sa as FileUpload,
8177
+ ir as FileType,
8178
+ la as FileUpload,
8163
8179
  kt as GenderType,
8164
8180
  ut as Header,
8165
- yr as HttpClient,
8181
+ hr as HttpClient,
8166
8182
  Je as IdentityProviderManager,
8167
- vr as IdentityService,
8183
+ wr as IdentityService,
8168
8184
  ze as IdentityVerificationProvider,
8169
- Ma as IdentityVerificationStep,
8185
+ za as IdentityVerificationStep,
8170
8186
  be as Input,
8171
- Sr as InvestorCategorizationService,
8172
- Ta as InvestorCategorizationStep,
8187
+ Cr as InvestorCategorizationService,
8188
+ La as InvestorCategorizationStep,
8173
8189
  Ee as InvestorCategorizationType,
8174
- cr as InvestorCategoryType,
8175
- rr as KycProcessStatus,
8190
+ dr as InvestorCategoryType,
8191
+ ar as KycProcessStatus,
8176
8192
  rt as KycStatus,
8177
- Dt as KycStatusDisplay,
8178
- on as KycWorkflow,
8179
- za as Logo,
8180
- $t as MetaKYCContext,
8193
+ Mt as KycStatusDisplay,
8194
+ sn as KycWorkflow,
8195
+ Oa as Logo,
8196
+ Bt as MetaKYCContext,
8181
8197
  Ke as MetaKYCError,
8182
- Ga as MetaKYCProvider,
8183
- ia as MultiSelect,
8184
- $r as OnfidoProvider,
8185
- br as OverviewService,
8186
- wa as OverviewStep,
8187
- la as PhoneInput,
8188
- hr as QuestionnaireService,
8189
- ka as QuestionnaireStep,
8198
+ Ja as MetaKYCProvider,
8199
+ oa as MultiSelect,
8200
+ Br as OnfidoProvider,
8201
+ xr as OverviewService,
8202
+ Sa as OverviewStep,
8203
+ ca as PhoneInput,
8204
+ fr as QuestionnaireService,
8205
+ ba as QuestionnaireStep,
8190
8206
  at as ReviewStatus,
8191
- sr as RiskCriteriaType,
8192
- er as RiskLevel,
8193
- xr as RiskScoringService,
8194
- Fa as RiskScoringStep,
8195
- jr as SDK_VERSION,
8196
- Br as SardinAIProvider,
8207
+ lr as RiskCriteriaType,
8208
+ tr as RiskLevel,
8209
+ vr as RiskScoringService,
8210
+ Aa as RiskScoringStep,
8211
+ Hr as SDK_VERSION,
8212
+ _r as SardinAIProvider,
8197
8213
  Ye as SearchableSelect,
8198
8214
  Nt as Select,
8199
8215
  Me as Spinner,
8200
- Pr as StepRouter,
8201
- Or as SumsubProvider,
8202
- _r as ThemeManager,
8203
- Fe as ThemePreset,
8204
- Ar as ThemeService,
8205
- fr as UploadDocumentService,
8206
- va as UploadDocumentStep,
8207
- ar as UserType,
8216
+ Dr as StepRouter,
8217
+ $r as SumsubProvider,
8218
+ jr as ThemeManager,
8219
+ Ae as ThemePreset,
8220
+ Tr as ThemeService,
8221
+ kr as UploadDocumentService,
8222
+ wa as UploadDocumentStep,
8223
+ nr as UserType,
8208
8224
  qe as ValueDataType,
8209
- Dr as WorkflowOrchestrator,
8225
+ Mr as WorkflowOrchestrator,
8210
8226
  ft as WorkflowResultType,
8211
- Lr as WorkflowState,
8227
+ Pr as WorkflowState,
8212
8228
  ce as WorkflowStepAction,
8213
- mn as appropriatenessTestSchema,
8214
- tn as clearAllStorage,
8215
- Yr as clearApplicantId,
8216
- Qr as clearWorkflowState,
8217
- Ae as cn,
8218
- Cr as corporateTheme,
8219
- pr as defaultConfig,
8220
- Pe as defaultTheme,
8221
- Ur as fileToBase64,
8222
- Nr as fintechTheme,
8229
+ pn as appropriatenessTestSchema,
8230
+ rn as clearAllStorage,
8231
+ Vr as clearApplicantId,
8232
+ Gr as clearWorkflowState,
8233
+ Te as cn,
8234
+ Nr as corporateTheme,
8235
+ ur as defaultConfig,
8236
+ Fe as defaultTheme,
8237
+ Kr as fileToBase64,
8238
+ Ir as fintechTheme,
8223
8239
  xt as formatFileSize,
8224
- dn as generateAppropriatenessSchema,
8225
- sn as generateQuestionnaireSchema,
8226
- cn as generateRiskScoringSchema,
8227
- ln as generateUploadDocumentSchema,
8228
- Za as getAcceptString,
8229
- qr as getApplicantId,
8240
+ mn as generateAppropriatenessSchema,
8241
+ ln as generateQuestionnaireSchema,
8242
+ dn as generateRiskScoringSchema,
8243
+ cn as generateUploadDocumentSchema,
8244
+ en as getAcceptString,
8245
+ Yr as getApplicantId,
8230
8246
  pt as getThemePreset,
8231
- en as getWorkflowState,
8232
- Ir as healthcareTheme,
8233
- Va as isScriptLoaded,
8234
- Ot as loadScript,
8235
- Er as minimalTheme,
8236
- Rr as modernTheme,
8237
- Qa as removeScript,
8238
- Kr as saveApplicantId,
8239
- Vr as saveWorkflowState,
8240
- Fr as themePresets,
8241
- Bt as useApplicant,
8242
- rn as useAppropriatenessTest,
8243
- ea as useIdentityVerification,
8244
- Gr as useKycWorkflow,
8245
- Te as useMetaKYC,
8246
- Zr as useOverview,
8247
- Jr as useQuestionnaire,
8248
- ta as useRiskScoring,
8249
- Xr as useUploadDocument,
8250
- Ja as validateFileSize,
8251
- Xa as validateFileType
8247
+ tn as getWorkflowState,
8248
+ Rr as healthcareTheme,
8249
+ Qa as isScriptLoaded,
8250
+ $t as loadScript,
8251
+ Fr as minimalTheme,
8252
+ Er as modernTheme,
8253
+ Ga as removeScript,
8254
+ qr as saveApplicantId,
8255
+ Qr as saveWorkflowState,
8256
+ Ar as themePresets,
8257
+ _t as useApplicant,
8258
+ an as useAppropriatenessTest,
8259
+ ta as useIdentityVerification,
8260
+ Jr as useKycWorkflow,
8261
+ Le as useMetaKYC,
8262
+ ea as useOverview,
8263
+ Xr as useQuestionnaire,
8264
+ ra as useRiskScoring,
8265
+ Zr as useUploadDocument,
8266
+ Xa as validateFileSize,
8267
+ Za as validateFileType
8252
8268
  };
8253
8269
  //# sourceMappingURL=index.js.map