@vpdev2/metakyc 1.0.13 → 1.0.15

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.13", 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,7 +2918,7 @@ const te = ({ children: e, className: t, style: a, ...n }) => /* @__PURE__ */ r(
2903
2918
  )
2904
2919
  }
2905
2920
  );
2906
- }, na = {
2921
+ }, ia = {
2907
2922
  default: {
2908
2923
  backgroundColor: "var(--metakyc-surface, #f3f4f6)",
2909
2924
  color: "var(--metakyc-text-secondary, #6b7280)"
@@ -2927,14 +2942,14 @@ const te = ({ children: e, className: t, style: a, ...n }) => /* @__PURE__ */ r(
2927
2942
  backgroundColor: "#fef3c7",
2928
2943
  color: "#92400e"
2929
2944
  }
2930
- }, _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(
2931
2946
  "span",
2932
2947
  {
2933
- className: Ae(
2948
+ className: Te(
2934
2949
  "inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",
2935
2950
  a
2936
2951
  ),
2937
- style: { ...na[t], ...n },
2952
+ style: { ...ia[t], ...n },
2938
2953
  ...i,
2939
2954
  children: e
2940
2955
  }
@@ -2944,10 +2959,10 @@ const te = ({ children: e, className: t, style: a, ...n }) => /* @__PURE__ */ r(
2944
2959
  md: "h-8 w-8",
2945
2960
  lg: "h-12 w-12"
2946
2961
  };
2947
- 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(
2948
2963
  "svg",
2949
2964
  {
2950
- className: Ae("animate-spin text-primary-500", n[e]),
2965
+ className: Te("animate-spin text-primary-500", n[e]),
2951
2966
  xmlns: "http://www.w3.org/2000/svg",
2952
2967
  fill: "none",
2953
2968
  viewBox: "0 0 24 24",
@@ -2991,7 +3006,7 @@ const te = ({ children: e, className: t, style: a, ...n }) => /* @__PURE__ */ r(
2991
3006
  "select",
2992
3007
  {
2993
3008
  ref: y,
2994
- className: Ae(
3009
+ className: Te(
2995
3010
  "block w-full rounded-lg border px-3 py-2 text-sm transition-colors",
2996
3011
  "focus:outline-none focus:ring-2 focus:ring-offset-0",
2997
3012
  "disabled:opacity-60 disabled:cursor-not-allowed",
@@ -3041,7 +3056,7 @@ const te = ({ children: e, className: t, style: a, ...n }) => /* @__PURE__ */ r(
3041
3056
  ] })
3042
3057
  );
3043
3058
  Nt.displayName = "Select";
3044
- const At = 280, ia = ({
3059
+ const Tt = 280, oa = ({
3045
3060
  label: e,
3046
3061
  value: t,
3047
3062
  onChange: a,
@@ -3059,12 +3074,12 @@ const At = 280, ia = ({
3059
3074
  primaryColor: "#2563eb",
3060
3075
  primaryLight: "#eff6ff",
3061
3076
  hoverBg: "#f9fafb"
3062
- }), B = de(null), Y = de(null), M = de(null), O = ae(() => {
3077
+ }), B = de(null), Y = de(null), P = de(null), z = ae(() => {
3063
3078
  if (!Y.current) return null;
3064
- 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;
3065
3080
  return { top: _ ? A.top : A.bottom + 4, left: A.left, width: A.width, openUp: _ };
3066
3081
  }, []), Z = ae(() => {
3067
- 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"));
3068
3083
  N({
3069
3084
  bg: _,
3070
3085
  borderColor: U("--metakyc-input-border", U("--metakyc-border", "#d1d5db")),
@@ -3077,29 +3092,29 @@ const At = 280, ia = ({
3077
3092
  }, []), ne = ae(() => {
3078
3093
  if (y) return;
3079
3094
  Z();
3080
- const A = O();
3095
+ const A = z();
3081
3096
  A && L(A), b(!0);
3082
- }, [y, O, Z]), R = ae(() => {
3097
+ }, [y, z, Z]), R = ae(() => {
3083
3098
  b(!1), S("");
3084
3099
  }, []);
3085
3100
  fe(() => {
3086
3101
  if (!p) return;
3087
3102
  const A = (U) => {
3088
- var H, he;
3103
+ var H, ge;
3089
3104
  const _ = U.target;
3090
- !((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();
3091
3106
  };
3092
3107
  return document.addEventListener("mousedown", A), () => document.removeEventListener("mousedown", A);
3093
3108
  }, [p, R]), fe(() => {
3094
3109
  if (!p) return;
3095
3110
  const A = () => {
3096
- const U = O();
3111
+ const U = z();
3097
3112
  U && L(U);
3098
3113
  };
3099
3114
  return window.addEventListener("scroll", A, !0), window.addEventListener("resize", A), () => {
3100
3115
  window.removeEventListener("scroll", A, !0), window.removeEventListener("resize", A);
3101
3116
  };
3102
- }, [p, O]);
3117
+ }, [p, z]);
3103
3118
  const f = n.filter(
3104
3119
  (A) => A.label.toLowerCase().includes(F.toLowerCase())
3105
3120
  ), $ = (A) => {
@@ -3112,7 +3127,7 @@ const At = 280, ia = ({
3112
3127
  }, { bg: j, borderColor: Q, textPrimary: ie, textSecondary: q, primaryColor: ve, primaryLight: pe, hoverBg: ue } = v, xe = p && T && /* @__PURE__ */ o(
3113
3128
  "div",
3114
3129
  {
3115
- ref: M,
3130
+ ref: P,
3116
3131
  className: "metakyc-multiselect-dropdown",
3117
3132
  style: {
3118
3133
  position: "fixed",
@@ -3233,7 +3248,7 @@ const At = 280, ia = ({
3233
3248
  {
3234
3249
  ref: Y,
3235
3250
  onClick: () => p ? R() : ne(),
3236
- className: Ae(
3251
+ className: Te(
3237
3252
  "metakyc-multiselect-trigger",
3238
3253
  "w-full px-3 py-2 rounded-lg border text-sm transition-colors relative",
3239
3254
  y ? "opacity-50 cursor-not-allowed" : "cursor-pointer"
@@ -3308,7 +3323,7 @@ const At = 280, ia = ({
3308
3323
  ),
3309
3324
  typeof document < "u" && xe ? Ct(xe, document.body) : null
3310
3325
  ] });
3311
- }, Tt = 260, Ye = ({
3326
+ }, Lt = 260, Ye = ({
3312
3327
  label: e,
3313
3328
  error: t,
3314
3329
  helperText: a,
@@ -3321,8 +3336,8 @@ const At = 280, ia = ({
3321
3336
  required: p = !1,
3322
3337
  className: b
3323
3338
  }) => {
3324
- var he;
3325
- 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({
3326
3341
  bg: "#ffffff",
3327
3342
  border: "#d1d5db",
3328
3343
  text: "#111827",
@@ -3330,9 +3345,9 @@ const At = 280, ia = ({
3330
3345
  primary: "#2563eb",
3331
3346
  primaryLight: "#eff6ff",
3332
3347
  hoverBg: "#f9fafb"
3333
- }), O = ae(() => {
3348
+ }), z = ae(() => {
3334
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"));
3335
- M({
3350
+ P({
3336
3351
  bg: ye,
3337
3352
  border: ee("--metakyc-input-border", ee("--metakyc-border", "#d1d5db")),
3338
3353
  text: ee("--metakyc-input-text", ee("--metakyc-text-primary", "#111827")),
@@ -3343,7 +3358,7 @@ const At = 280, ia = ({
3343
3358
  });
3344
3359
  }, []), Z = de(null), ne = de(null), R = de(null), f = de(null), $ = ae(() => {
3345
3360
  if (!ne.current) return null;
3346
- 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;
3347
3362
  return {
3348
3363
  top: ye ? E.top : E.bottom + 4,
3349
3364
  left: E.left,
@@ -3352,10 +3367,10 @@ const At = 280, ia = ({
3352
3367
  };
3353
3368
  }, []), G = ae(() => {
3354
3369
  if (F) return;
3355
- O();
3370
+ z();
3356
3371
  const E = $();
3357
3372
  E && B(E), T(!0);
3358
- }, [F, $, O]), V = ae(() => {
3373
+ }, [F, $, z]), V = ae(() => {
3359
3374
  T(!1), v("");
3360
3375
  }, []), j = () => S ? V() : G();
3361
3376
  fe(() => {
@@ -3383,7 +3398,7 @@ const At = 280, ia = ({
3383
3398
  }, [S]);
3384
3399
  const Q = n.filter(
3385
3400
  (E) => E.label.toLowerCase().includes(L.toLowerCase()) || E.value.toLowerCase().includes(L.toLowerCase())
3386
- ), 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) => {
3387
3402
  F || ee || (c(E), V());
3388
3403
  }, { bg: ve, border: pe, text: ue, textSecondary: xe, primary: A, primaryLight: U, hoverBg: _ } = Y, H = S && N && /* @__PURE__ */ o(
3389
3404
  "div",
@@ -3480,7 +3495,7 @@ const At = 280, ia = ({
3480
3495
  return /* @__PURE__ */ o(
3481
3496
  "div",
3482
3497
  {
3483
- className: Ae("w-full metakyc-searchable-select", b),
3498
+ className: Te("w-full metakyc-searchable-select", b),
3484
3499
  ref: Z,
3485
3500
  children: [
3486
3501
  e && /* @__PURE__ */ o(
@@ -3504,7 +3519,7 @@ const At = 280, ia = ({
3504
3519
  onKeyDown: (E) => {
3505
3520
  (E.key === "Enter" || E.key === " ") && (E.preventDefault(), j()), E.key === "Escape" && V();
3506
3521
  },
3507
- className: Ae(
3522
+ className: Te(
3508
3523
  "metakyc-searchable-select-trigger",
3509
3524
  "w-full px-3 py-2 rounded-lg border text-sm transition-colors text-left",
3510
3525
  "flex items-center justify-between gap-2",
@@ -3540,11 +3555,11 @@ const At = 280, ia = ({
3540
3555
  );
3541
3556
  };
3542
3557
  Ye.displayName = "SearchableSelect";
3543
- function oa(e) {
3558
+ function sa(e) {
3544
3559
  const t = e.type;
3545
3560
  return t.startsWith("image/") ? "image" : t === "application/pdf" ? "pdf" : "file";
3546
3561
  }
3547
- const sa = ({
3562
+ const la = ({
3548
3563
  label: e,
3549
3564
  subtitle: t,
3550
3565
  error: a,
@@ -3571,15 +3586,15 @@ const sa = ({
3571
3586
  R.preventDefault(), R.stopPropagation(), F(!1);
3572
3587
  }, []), Y = ae((R) => {
3573
3588
  R.preventDefault(), R.stopPropagation(), F(!1), v(R.dataTransfer.files);
3574
- }, [v]), M = () => {
3589
+ }, [v]), P = () => {
3575
3590
  var R;
3576
3591
  (R = L.current) == null || R.click();
3577
- }, O = (R) => {
3592
+ }, z = (R) => {
3578
3593
  T(null);
3579
3594
  const f = y.filter(($, G) => G !== R);
3580
3595
  d == null || d(f);
3581
3596
  }, Z = a || S, ne = y.length > 0;
3582
- 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: [
3583
3598
  e && /* @__PURE__ */ o("div", { style: { marginBottom: "8px" }, children: [
3584
3599
  /* @__PURE__ */ o(
3585
3600
  "label",
@@ -3602,7 +3617,7 @@ const sa = ({
3602
3617
  "div",
3603
3618
  {
3604
3619
  className: "metakyc-file-dropzone",
3605
- onClick: M,
3620
+ onClick: P,
3606
3621
  onDragOver: N,
3607
3622
  onDragLeave: B,
3608
3623
  onDrop: Y,
@@ -3684,7 +3699,7 @@ const sa = ({
3684
3699
  }
3685
3700
  ),
3686
3701
  ne && /* @__PURE__ */ r("div", { style: { marginTop: "12px", display: "flex", flexDirection: "column", gap: "8px" }, children: y.map((R, f) => {
3687
- const $ = oa(R), G = $ === "image", V = G ? URL.createObjectURL(R) : null;
3702
+ const $ = sa(R), G = $ === "image", V = G ? URL.createObjectURL(R) : null;
3688
3703
  return /* @__PURE__ */ o(
3689
3704
  "div",
3690
3705
  {
@@ -3750,7 +3765,7 @@ const sa = ({
3750
3765
  {
3751
3766
  type: "button",
3752
3767
  onClick: (j) => {
3753
- j.stopPropagation(), O(f);
3768
+ j.stopPropagation(), z(f);
3754
3769
  },
3755
3770
  style: {
3756
3771
  display: "flex",
@@ -3786,7 +3801,7 @@ const sa = ({
3786
3801
  }) }),
3787
3802
  Z && /* @__PURE__ */ r("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", marginTop: "6px" }, children: Z })
3788
3803
  ] });
3789
- }, la = yt(
3804
+ }, ca = yt(
3790
3805
  ({ countryCode: e = "+1", onCountryCodeChange: t, className: a, ...n }, i) => /* @__PURE__ */ o("div", { className: "w-full", children: [
3791
3806
  n.label && /* @__PURE__ */ o(
3792
3807
  "label",
@@ -3806,7 +3821,7 @@ const sa = ({
3806
3821
  type: "text",
3807
3822
  value: e,
3808
3823
  onChange: (l) => t == null ? void 0 : t(l.target.value),
3809
- className: Ae(
3824
+ className: Te(
3810
3825
  "w-20 rounded-lg border px-3 py-2 text-sm",
3811
3826
  "focus:outline-none focus:ring-2 focus:ring-offset-0"
3812
3827
  ),
@@ -3824,7 +3839,7 @@ const sa = ({
3824
3839
  {
3825
3840
  ref: i,
3826
3841
  type: "tel",
3827
- className: Ae("flex-1", a),
3842
+ className: Te("flex-1", a),
3828
3843
  ...n,
3829
3844
  label: ""
3830
3845
  }
@@ -3833,28 +3848,28 @@ const sa = ({
3833
3848
  n.error && /* @__PURE__ */ r("p", { className: "mt-1 text-sm text-danger-500", children: n.error })
3834
3849
  ] })
3835
3850
  );
3836
- la.displayName = "PhoneInput";
3851
+ ca.displayName = "PhoneInput";
3837
3852
  /**
3838
3853
  * @license lucide-react v0.574.0 - ISC
3839
3854
  *
3840
3855
  * This source code is licensed under the ISC license.
3841
3856
  * See the LICENSE file in the root directory of this source tree.
3842
3857
  */
3843
- 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();
3844
3859
  /**
3845
3860
  * @license lucide-react v0.574.0 - ISC
3846
3861
  *
3847
3862
  * This source code is licensed under the ISC license.
3848
3863
  * See the LICENSE file in the root directory of this source tree.
3849
3864
  */
3850
- 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();
3851
3866
  /**
3852
3867
  * @license lucide-react v0.574.0 - ISC
3853
3868
  *
3854
3869
  * This source code is licensed under the ISC license.
3855
3870
  * See the LICENSE file in the root directory of this source tree.
3856
3871
  */
3857
- const da = (e) => e.replace(
3872
+ const ma = (e) => e.replace(
3858
3873
  /^([A-Z])|[\s-_]+(\w)/g,
3859
3874
  (t, a, n) => n ? n.toUpperCase() : a.toLowerCase()
3860
3875
  );
@@ -3864,8 +3879,8 @@ const da = (e) => e.replace(
3864
3879
  * This source code is licensed under the ISC license.
3865
3880
  * See the LICENSE file in the root directory of this source tree.
3866
3881
  */
3867
- const Lt = (e) => {
3868
- const t = da(e);
3882
+ const Pt = (e) => {
3883
+ const t = ma(e);
3869
3884
  return t.charAt(0).toUpperCase() + t.slice(1);
3870
3885
  };
3871
3886
  /**
@@ -3874,7 +3889,7 @@ const Lt = (e) => {
3874
3889
  * This source code is licensed under the ISC license.
3875
3890
  * See the LICENSE file in the root directory of this source tree.
3876
3891
  */
3877
- var ma = {
3892
+ var pa = {
3878
3893
  xmlns: "http://www.w3.org/2000/svg",
3879
3894
  width: 24,
3880
3895
  height: 24,
@@ -3891,7 +3906,7 @@ var ma = {
3891
3906
  * This source code is licensed under the ISC license.
3892
3907
  * See the LICENSE file in the root directory of this source tree.
3893
3908
  */
3894
- const pa = (e) => {
3909
+ const ua = (e) => {
3895
3910
  for (const t in e)
3896
3911
  if (t.startsWith("aria-") || t === "role" || t === "title")
3897
3912
  return !0;
@@ -3903,7 +3918,7 @@ const pa = (e) => {
3903
3918
  * This source code is licensed under the ISC license.
3904
3919
  * See the LICENSE file in the root directory of this source tree.
3905
3920
  */
3906
- const ua = yt(
3921
+ const ya = yt(
3907
3922
  ({
3908
3923
  color: e = "currentColor",
3909
3924
  size: t = 24,
@@ -3917,13 +3932,13 @@ const ua = yt(
3917
3932
  "svg",
3918
3933
  {
3919
3934
  ref: y,
3920
- ...ma,
3935
+ ...pa,
3921
3936
  width: t,
3922
3937
  height: t,
3923
3938
  stroke: e,
3924
3939
  strokeWidth: n ? Number(a) * 24 / Number(t) : a,
3925
- className: jt("lucide", i),
3926
- ...!l && !pa(d) && { "aria-hidden": "true" },
3940
+ className: Ht("lucide", i),
3941
+ ...!l && !ua(d) && { "aria-hidden": "true" },
3927
3942
  ...d
3928
3943
  },
3929
3944
  [
@@ -3938,20 +3953,20 @@ const ua = yt(
3938
3953
  * This source code is licensed under the ISC license.
3939
3954
  * See the LICENSE file in the root directory of this source tree.
3940
3955
  */
3941
- const Ht = (e, t) => {
3956
+ const Wt = (e, t) => {
3942
3957
  const a = yt(
3943
- ({ className: n, ...i }, l) => St(ua, {
3958
+ ({ className: n, ...i }, l) => St(ya, {
3944
3959
  ref: l,
3945
3960
  iconNode: t,
3946
- className: jt(
3947
- `lucide-${ca(Lt(e))}`,
3961
+ className: Ht(
3962
+ `lucide-${da(Pt(e))}`,
3948
3963
  `lucide-${e}`,
3949
3964
  n
3950
3965
  ),
3951
3966
  ...i
3952
3967
  })
3953
3968
  );
3954
- return a.displayName = Lt(e), a;
3969
+ return a.displayName = Pt(e), a;
3955
3970
  };
3956
3971
  /**
3957
3972
  * @license lucide-react v0.574.0 - ISC
@@ -3959,15 +3974,15 @@ const Ht = (e, t) => {
3959
3974
  * This source code is licensed under the ISC license.
3960
3975
  * See the LICENSE file in the root directory of this source tree.
3961
3976
  */
3962
- 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);
3963
3978
  /**
3964
3979
  * @license lucide-react v0.574.0 - ISC
3965
3980
  *
3966
3981
  * This source code is licensed under the ISC license.
3967
3982
  * See the LICENSE file in the root directory of this source tree.
3968
3983
  */
3969
- const ga = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Ut = Ht("chevron-right", ga);
3970
- 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) {
3971
3986
  const a = !t || t.length === 0 || t.every((n) => !n || !n.trim());
3972
3987
  if (e.isRequired && a)
3973
3988
  return e.errorMessage || "This field is required";
@@ -3996,7 +4011,7 @@ function ha(e, t) {
3996
4011
  }
3997
4012
  return null;
3998
4013
  }
3999
- function fa(e) {
4014
+ function ka(e) {
4000
4015
  const t = e.flatMap(
4001
4016
  (n, i) => (n.questions ?? []).map((l, c) => ({ question: l, groupIndex: i, qIdx: c }))
4002
4017
  ), a = /* @__PURE__ */ new Map();
@@ -4006,36 +4021,36 @@ function fa(e) {
4006
4021
  }
4007
4022
  return Array.from(a.entries()).sort(([n], [i]) => n - i).map(([, n]) => n);
4008
4023
  }
4009
- const ka = ({
4024
+ const ba = ({
4010
4025
  applicantId: e,
4011
4026
  onComplete: t,
4012
4027
  onBack: a
4013
4028
  }) => {
4014
- 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);
4015
4030
  we.useEffect(() => {
4016
4031
  i && Object.keys(i).length > 0 && Object.keys(p).length === 0 && b(i);
4017
4032
  }, [i]);
4018
4033
  const v = De(
4019
- () => n ? fa(n.questionGroups) : [],
4034
+ () => n ? ka(n.questionGroups) : [],
4020
4035
  [n]
4021
4036
  ), N = T === v.length - 1, B = v[T] ?? [], Y = ae((R, f) => {
4022
4037
  b(($) => ({ ...$, [R]: f })), S(($) => {
4023
4038
  const G = { ...$ };
4024
4039
  return delete G[R], G;
4025
4040
  });
4026
- }, []), M = ae(() => {
4041
+ }, []), P = ae(() => {
4027
4042
  const R = {};
4028
4043
  for (const { question: f } of B) {
4029
- const $ = ha(f, p[f.id] ?? []);
4044
+ const $ = fa(f, p[f.id] ?? []);
4030
4045
  $ && (R[f.id] = $);
4031
4046
  }
4032
4047
  return S((f) => ({ ...f, ...R })), Object.keys(R).length === 0;
4033
- }, [B, p]), O = () => {
4034
- M() && L((R) => R + 1);
4048
+ }, [B, p]), z = () => {
4049
+ P() && L((R) => R + 1);
4035
4050
  }, Z = () => {
4036
4051
  T > 0 ? L((R) => R - 1) : a == null || a();
4037
4052
  }, ne = async () => {
4038
- if (!(!M() || !n))
4053
+ if (!(!P() || !n))
4039
4054
  try {
4040
4055
  const R = n.questionGroups.flatMap(
4041
4056
  ($) => ($.questions ?? []).map((G) => ({
@@ -4081,7 +4096,7 @@ const ka = ({
4081
4096
  ] })
4082
4097
  ] }),
4083
4098
  /* @__PURE__ */ r(re, { className: "space-y-6", children: B.map(({ question: R }) => /* @__PURE__ */ r(
4084
- ba,
4099
+ xa,
4085
4100
  {
4086
4101
  question: R,
4087
4102
  value: p[R.id] ?? [],
@@ -4099,7 +4114,7 @@ const ka = ({
4099
4114
  onClick: Z,
4100
4115
  style: { display: "flex", alignItems: "center", gap: "4px" },
4101
4116
  children: [
4102
- /* @__PURE__ */ r(Wt, { size: 14 }),
4117
+ /* @__PURE__ */ r(Ut, { size: 14 }),
4103
4118
  T > 0 ? "Previous" : "Back"
4104
4119
  ]
4105
4120
  }
@@ -4116,18 +4131,18 @@ const ka = ({
4116
4131
  J,
4117
4132
  {
4118
4133
  type: "button",
4119
- onClick: O,
4134
+ onClick: z,
4120
4135
  style: { display: "flex", alignItems: "center", gap: "4px" },
4121
4136
  children: [
4122
4137
  "Next",
4123
- /* @__PURE__ */ r(Ut, { size: 14 })
4138
+ /* @__PURE__ */ r(Kt, { size: 14 })
4124
4139
  ]
4125
4140
  }
4126
4141
  )
4127
4142
  ] }),
4128
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 }) })
4129
4144
  ] }) : null;
4130
- }, ba = ({ question: e, value: t, error: a, onChange: n }) => {
4145
+ }, xa = ({ question: e, value: t, error: a, onChange: n }) => {
4131
4146
  var c;
4132
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";
4133
4148
  return /* @__PURE__ */ o("div", { className: "space-y-2", children: [
@@ -4220,7 +4235,7 @@ const ka = ({
4220
4235
  a && l === "text" && null
4221
4236
  ] });
4222
4237
  };
4223
- function xa(e) {
4238
+ function va(e) {
4224
4239
  const t = /* @__PURE__ */ new Map();
4225
4240
  for (const a of e) {
4226
4241
  const n = a.pageNumber != null && a.pageNumber > 0 ? a.pageNumber : 1;
@@ -4228,25 +4243,25 @@ function xa(e) {
4228
4243
  }
4229
4244
  return Array.from(t.entries()).sort(([a], [n]) => a - n).map(([, a]) => a);
4230
4245
  }
4231
- const va = ({
4246
+ const wa = ({
4232
4247
  applicantId: e,
4233
4248
  onComplete: t,
4234
4249
  onBack: a
4235
4250
  }) => {
4236
- 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(
4237
- () => 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) : [],
4238
4253
  [n]
4239
- ), 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(() => {
4240
4255
  const f = {};
4241
4256
  for (const $ of B)
4242
4257
  $.isRequired && (y[$.id] || []).length === 0 && (f[$.id] = `${$.displayName} is required`);
4243
4258
  return v(f), Object.keys(f).length === 0;
4244
4259
  }, [B, y]), Z = () => {
4245
- O() && (T((f) => f + 1), v({}));
4260
+ z() && (T((f) => f + 1), v({}));
4246
4261
  }, ne = () => {
4247
4262
  S > 0 ? (T((f) => f - 1), v({})) : a == null || a();
4248
4263
  }, R = async () => {
4249
- if (!(!O() || !n)) {
4264
+ if (!(!z() || !n)) {
4250
4265
  F(null);
4251
4266
  try {
4252
4267
  const f = await Promise.all(
@@ -4254,7 +4269,7 @@ const va = ({
4254
4269
  const V = y[G.id] || [], j = await Promise.all(
4255
4270
  V.map(async (Q) => ({
4256
4271
  fileName: Q.name,
4257
- fileData: await Ur(Q)
4272
+ fileData: await Kr(Q)
4258
4273
  }))
4259
4274
  );
4260
4275
  return {
@@ -4312,7 +4327,7 @@ const va = ({
4312
4327
  color: "var(--metakyc-text-secondary, #6b7280)",
4313
4328
  marginTop: "4px"
4314
4329
  }, children: n.subtitle }),
4315
- M > 1 && /* @__PURE__ */ o("div", { style: {
4330
+ P > 1 && /* @__PURE__ */ o("div", { style: {
4316
4331
  display: "flex",
4317
4332
  alignItems: "center",
4318
4333
  justifyContent: "space-between",
@@ -4322,7 +4337,7 @@ const va = ({
4322
4337
  "Page ",
4323
4338
  S + 1,
4324
4339
  " of ",
4325
- M
4340
+ P
4326
4341
  ] }),
4327
4342
  /* @__PURE__ */ r("div", { style: { display: "flex", alignItems: "center", gap: "6px" }, children: N.map((f, $) => /* @__PURE__ */ r(
4328
4343
  "div",
@@ -4376,7 +4391,7 @@ const va = ({
4376
4391
  }, children: n.description })
4377
4392
  ] }),
4378
4393
  /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r("div", { style: { display: "flex", flexDirection: "column", gap: "24px" }, children: B.map((f) => /* @__PURE__ */ r(
4379
- sa,
4394
+ la,
4380
4395
  {
4381
4396
  label: f.displayName,
4382
4397
  subtitle: f.subtitle,
@@ -4445,8 +4460,8 @@ const va = ({
4445
4460
  )
4446
4461
  ] }) })
4447
4462
  ] }) : null;
4448
- }, wa = ({ applicantId: e, onComplete: t, onBack: a }) => {
4449
- 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 () => {
4450
4465
  await d(), t == null || t();
4451
4466
  };
4452
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: [
@@ -4489,7 +4504,7 @@ const va = ({
4489
4504
  ] })
4490
4505
  ] }) : null;
4491
4506
  };
4492
- function Sa(e) {
4507
+ function Ca(e) {
4493
4508
  const t = (e ?? "en").toLowerCase().replace("_", "-");
4494
4509
  try {
4495
4510
  return Intl.NumberFormat.supportedLocalesOf([t]), t;
@@ -4497,11 +4512,11 @@ function Sa(e) {
4497
4512
  return "en";
4498
4513
  }
4499
4514
  }
4500
- function Ca(e) {
4515
+ function Na(e) {
4501
4516
  return e.valueDataType === qe.Money && Array.isArray(e.defaultValues) && e.defaultValues.length > 0;
4502
4517
  }
4503
- function Na(e, t) {
4504
- const a = new Intl.NumberFormat(Sa(t), {
4518
+ function Ia(e, t) {
4519
+ const a = new Intl.NumberFormat(Ca(t), {
4505
4520
  minimumFractionDigits: 0,
4506
4521
  maximumFractionDigits: 2
4507
4522
  });
@@ -4510,7 +4525,7 @@ function Na(e, t) {
4510
4525
  return isNaN(i) ? n : a.format(i);
4511
4526
  });
4512
4527
  }
4513
- function Ia(e, t) {
4528
+ function Ra(e, t) {
4514
4529
  const a = !t || t.length === 0 || t.every((n) => !n || !n.trim());
4515
4530
  if (e.isRequired && a)
4516
4531
  return e.errorMessage || `${e.displayName} is required`;
@@ -4540,29 +4555,29 @@ function Ia(e, t) {
4540
4555
  }
4541
4556
  return null;
4542
4557
  }
4543
- function Ra(e) {
4558
+ function Ea(e) {
4544
4559
  const t = /* @__PURE__ */ new Map();
4545
4560
  return e.forEach((a, n) => {
4546
4561
  const i = a.pageNumber != null && a.pageNumber > 0 ? a.pageNumber : 1;
4547
4562
  t.has(i) || t.set(i, []), t.get(i).push({ criterion: a, idx: n });
4548
4563
  }), Array.from(t.entries()).sort(([a], [n]) => a - n).map(([, a]) => a);
4549
4564
  }
4550
- function Ea(e) {
4565
+ function Fa(e) {
4551
4566
  return e.builtInType === 1 ? "country" : !e.defaultValues || e.defaultValues.length === 0 ? "text" : e.multipleValue ? "checkbox" : "radio";
4552
4567
  }
4553
- const Fa = ({
4568
+ const Aa = ({
4554
4569
  applicantId: e,
4555
4570
  onComplete: t,
4556
4571
  onBack: a
4557
4572
  }) => {
4558
- 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);
4559
4574
  we.useEffect(() => {
4560
4575
  c && Object.keys(c).length > 0 && Object.keys(F).length === 0 && S(c);
4561
4576
  }, [c]);
4562
- const M = De(
4563
- () => l && l.length > 0 ? Ra(l) : [],
4577
+ const P = De(
4578
+ () => l && l.length > 0 ? Ea(l) : [],
4564
4579
  [l]
4565
- ), O = v === M.length - 1, Z = M[v] ?? [];
4580
+ ), z = v === P.length - 1, Z = P[v] ?? [];
4566
4581
  we.useEffect(() => {
4567
4582
  !d && l && l.length === 0 && !B && !y && (Y(!0), b({ applicantId: e, criteriaValueInputs: [] }).then(() => t == null ? void 0 : t()).catch(console.error));
4568
4583
  }, [d, l, B, y, b, e, t]);
@@ -4574,7 +4589,7 @@ const Fa = ({
4574
4589
  }, []), R = ae(() => {
4575
4590
  const V = {};
4576
4591
  for (const { criterion: j } of Z) {
4577
- const Q = Ia(j, F[j.id] ?? []);
4592
+ const Q = Ra(j, F[j.id] ?? []);
4578
4593
  Q && (V[j.id] = Q);
4579
4594
  }
4580
4595
  return L((j) => ({ ...j, ...V })), Object.keys(V).length === 0;
@@ -4607,14 +4622,14 @@ const Fa = ({
4607
4622
  /* @__PURE__ */ o(Se, { children: [
4608
4623
  /* @__PURE__ */ r("h2", { className: "text-lg font-bold", children: "Risk Assessment" }),
4609
4624
  /* @__PURE__ */ r("p", { className: "text-sm", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: "Please answer the following questions for risk evaluation" }),
4610
- 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: [
4611
4626
  /* @__PURE__ */ o("span", { className: "text-xs", style: { color: "var(--metakyc-text-muted, #9ca3af)" }, children: [
4612
4627
  "Page ",
4613
4628
  v + 1,
4614
4629
  " of ",
4615
- M.length
4630
+ P.length
4616
4631
  ] }),
4617
- /* @__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(
4618
4633
  "div",
4619
4634
  {
4620
4635
  className: "rounded-full transition-all duration-200",
@@ -4629,7 +4644,7 @@ const Fa = ({
4629
4644
  ] })
4630
4645
  ] }),
4631
4646
  /* @__PURE__ */ r(re, { className: "space-y-6", children: Z.map(({ criterion: V }) => /* @__PURE__ */ r(
4632
- Aa,
4647
+ Ta,
4633
4648
  {
4634
4649
  criterion: V,
4635
4650
  value: F[V.id] ?? [],
@@ -4648,12 +4663,12 @@ const Fa = ({
4648
4663
  onClick: $,
4649
4664
  style: { display: "flex", alignItems: "center", gap: "4px" },
4650
4665
  children: [
4651
- /* @__PURE__ */ r(Wt, { size: 14 }),
4666
+ /* @__PURE__ */ r(Ut, { size: 14 }),
4652
4667
  v > 0 ? "Previous" : "Back"
4653
4668
  ]
4654
4669
  }
4655
4670
  ),
4656
- 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(
4657
4672
  J,
4658
4673
  {
4659
4674
  type: "button",
@@ -4661,15 +4676,15 @@ const Fa = ({
4661
4676
  style: { display: "flex", alignItems: "center", gap: "4px" },
4662
4677
  children: [
4663
4678
  "Next",
4664
- /* @__PURE__ */ r(Ut, { size: 14 })
4679
+ /* @__PURE__ */ r(Kt, { size: 14 })
4665
4680
  ]
4666
4681
  }
4667
4682
  )
4668
4683
  ] }),
4669
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 }) })
4670
4685
  ] }) : null;
4671
- }, Aa = ({ criterion: e, value: t, error: a, locale: n, onChange: i }) => {
4672
- 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;
4673
4688
  return /* @__PURE__ */ o("div", { className: "space-y-2", children: [
4674
4689
  /* @__PURE__ */ o("label", { className: "block text-sm font-medium", style: { color: "var(--metakyc-text-primary, #111827)" }, children: [
4675
4690
  e.displayName,
@@ -4770,12 +4785,12 @@ const Fa = ({
4770
4785
  }
4771
4786
  )
4772
4787
  ] });
4773
- }, Ta = ({
4788
+ }, La = ({
4774
4789
  applicantId: e,
4775
4790
  onComplete: t,
4776
4791
  onBack: a
4777
4792
  }) => {
4778
- 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);
4779
4794
  return /* @__PURE__ */ r("form", { onSubmit: async (F) => {
4780
4795
  if (F.preventDefault(), i === null) {
4781
4796
  p("Please select an investor type");
@@ -4912,7 +4927,7 @@ const Fa = ({
4912
4927
  ] })
4913
4928
  ] }) });
4914
4929
  };
4915
- function Pt(e) {
4930
+ function Dt(e) {
4916
4931
  const t = e.split(":").map(Number);
4917
4932
  return t.length === 3 ? t[0] * 3600 + t[1] * 60 + t[2] : 0;
4918
4933
  }
@@ -4920,19 +4935,19 @@ function vt(e) {
4920
4935
  const t = Math.floor(e / 60), a = e % 60;
4921
4936
  return `${t.toString().padStart(2, "0")}:${a.toString().padStart(2, "0")}`;
4922
4937
  }
4923
- const La = ({
4938
+ const Pa = ({
4924
4939
  applicantId: e,
4925
4940
  onComplete: t,
4926
4941
  onBack: a
4927
4942
  }) => {
4928
- 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);
4929
4944
  fe(() => {
4930
4945
  (async () => {
4931
4946
  try {
4932
4947
  d(!0), F(null);
4933
4948
  const _ = await n.getAppropriatenessTest(e);
4934
4949
  if (l(_), _.waitTimeSpanForNextTry && _.waitTimeSpanForNextTry !== "00:00:00") {
4935
- const H = Pt(_.waitTimeSpanForNextTry);
4950
+ const H = Dt(_.waitTimeSpanForNextTry);
4936
4951
  H > 0 && Z(H);
4937
4952
  }
4938
4953
  } catch (_) {
@@ -4944,27 +4959,27 @@ const La = ({
4944
4959
  }, [e, n]), fe(() => {
4945
4960
  if (!N || L <= 0) return;
4946
4961
  const _ = setInterval(() => {
4947
- v((H) => H <= 1 ? (M(!0), 0) : H - 1);
4962
+ v((H) => H <= 1 ? (P(!0), 0) : H - 1);
4948
4963
  }, 1e3);
4949
4964
  return () => clearInterval(_);
4950
4965
  }, [N, L]), fe(() => {
4951
- if (O <= 0) return;
4966
+ if (z <= 0) return;
4952
4967
  const _ = setInterval(() => {
4953
4968
  Z((H) => H <= 1 ? 0 : H - 1);
4954
4969
  }, 1e3);
4955
4970
  return () => clearInterval(_);
4956
- }, [O]), fe(() => {
4971
+ }, [z]), fe(() => {
4957
4972
  Y && !y && Q();
4958
4973
  }, [Y]);
4959
4974
  const G = () => {
4960
4975
  i && (B(!0), v(i.testDurationSec), R(0), T({}), F(null));
4961
4976
  }, V = (_, H) => {
4962
- T((he) => ({ ...he, [_]: H }));
4977
+ T((ge) => ({ ...ge, [_]: H }));
4963
4978
  }, j = ae(async () => {
4964
4979
  try {
4965
4980
  const _ = await n.getAppropriatenessTest(e);
4966
4981
  if (l(_), _.waitTimeSpanForNextTry && _.waitTimeSpanForNextTry !== "00:00:00") {
4967
- const H = Pt(_.waitTimeSpanForNextTry);
4982
+ const H = Dt(_.waitTimeSpanForNextTry);
4968
4983
  H > 0 && Z(H);
4969
4984
  }
4970
4985
  } catch {
@@ -4982,13 +4997,13 @@ const La = ({
4982
4997
  try {
4983
4998
  const H = i.appropriatenessQuestions.map(
4984
4999
  (E) => ({ appropriatenessQuestionId: E.id, value: S[E.id] || "" })
4985
- ), he = {
5000
+ ), ge = {
4986
5001
  applicantId: e,
4987
5002
  appropriatenessTestId: i.id,
4988
5003
  appropriatenessQuestionResults: H
4989
5004
  };
4990
5005
  try {
4991
- const E = await n.fillAppropriatenessTest(he);
5006
+ const E = await n.fillAppropriatenessTest(ge);
4992
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));
4993
5008
  } catch (E) {
4994
5009
  if (E.code === 400 && E.message)
@@ -5003,7 +5018,7 @@ const La = ({
5003
5018
  }
5004
5019
  }
5005
5020
  }, ie = () => {
5006
- B(!1), M(!1), T({}), R(0);
5021
+ B(!1), P(!1), T({}), R(0);
5007
5022
  };
5008
5023
  if (c)
5009
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: [
@@ -5016,7 +5031,7 @@ const La = ({
5016
5031
  b && /* @__PURE__ */ r("p", { style: { fontSize: "14px", color: "var(--metakyc-text-muted, #9ca3af)", marginTop: "8px" }, children: b })
5017
5032
  ] }) }) });
5018
5033
  const q = i.testAllowedMaxTry - i.totalFailedTries, ve = i.appropriatenessQuestions.length, pe = Object.keys(S).length;
5019
- if (O > 0)
5034
+ if (z > 0)
5020
5035
  return /* @__PURE__ */ o(te, { children: [
5021
5036
  /* @__PURE__ */ r(Se, { children: /* @__PURE__ */ r("h2", { style: { fontSize: "18px", fontWeight: 700, color: "var(--metakyc-text-primary, #111827)", margin: 0 }, children: i.displayName }) }),
5022
5037
  /* @__PURE__ */ r(re, { children: /* @__PURE__ */ o("div", { style: { textAlign: "center", padding: "32px 0" }, children: [
@@ -5034,7 +5049,7 @@ const La = ({
5034
5049
  fontWeight: 700,
5035
5050
  color: "var(--metakyc-primary, #2563eb)",
5036
5051
  fontVariantNumeric: "tabular-nums"
5037
- }, children: vt(O) }) }),
5052
+ }, children: vt(z) }) }),
5038
5053
  /* @__PURE__ */ r("p", { style: { fontSize: "15px", fontWeight: 500, color: "var(--metakyc-text-primary, #111827)" }, children: "Please wait before retrying" }),
5039
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" }),
5040
5055
  b && /* @__PURE__ */ r("div", { style: {
@@ -5119,8 +5134,8 @@ const La = ({
5119
5134
  }, children: "No attempts remaining. Please contact support for assistance." }) })
5120
5135
  ] }) }),
5121
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: [
5122
- q > 0 && O <= 0 && /* @__PURE__ */ r(J, { type: "button", onClick: _, children: "Retake Test" }),
5123
- 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" }),
5124
5139
  q <= 0 && a && /* @__PURE__ */ r(J, { type: "button", variant: "outline", onClick: a, children: "Back" })
5125
5140
  ] }) }) })
5126
5141
  ] });
@@ -5149,11 +5164,11 @@ const La = ({
5149
5164
  /* @__PURE__ */ r("p", { style: { fontSize: "13px", color: "var(--metakyc-text-secondary, #374151)", margin: 0, lineHeight: 1.5 }, children: i.description })
5150
5165
  ] }),
5151
5166
  /* @__PURE__ */ o("div", { style: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "12px", marginBottom: "20px" }, children: [
5152
- /* @__PURE__ */ r(gt, { icon: "questions", label: "Questions", value: String(i.totalQuestionCount) }),
5153
- /* @__PURE__ */ r(gt, { icon: "time", label: "Time Limit", value: vt(i.testDurationSec) }),
5154
- /* @__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` }),
5155
5170
  /* @__PURE__ */ r(
5156
- gt,
5171
+ ht,
5157
5172
  {
5158
5173
  icon: "retry",
5159
5174
  label: "Attempts Left",
@@ -5275,7 +5290,7 @@ const La = ({
5275
5290
  ] }),
5276
5291
  /* @__PURE__ */ o(re, { children: [
5277
5292
  ue && /* @__PURE__ */ r(
5278
- Da,
5293
+ Ma,
5279
5294
  {
5280
5295
  question: ue,
5281
5296
  index: ne,
@@ -5375,7 +5390,7 @@ const La = ({
5375
5390
  ] })
5376
5391
  ] }) })
5377
5392
  ] });
5378
- }, Pa = {
5393
+ }, Da = {
5379
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: [
5380
5395
  /* @__PURE__ */ r("path", { d: "M9 11l3 3L22 4" }),
5381
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" })
@@ -5393,7 +5408,7 @@ const La = ({
5393
5408
  /* @__PURE__ */ r("polyline", { points: "23 4 23 10 17 10" }),
5394
5409
  /* @__PURE__ */ r("path", { d: "M20.49 15a9 9 0 1 1-2.12-9.36L23 10" })
5395
5410
  ] })
5396
- }, gt = ({ icon: e, label: t, value: a, variant: n = "default" }) => {
5411
+ }, ht = ({ icon: e, label: t, value: a, variant: n = "default" }) => {
5397
5412
  const i = n === "warning";
5398
5413
  return /* @__PURE__ */ o("div", { style: {
5399
5414
  display: "flex",
@@ -5407,7 +5422,7 @@ const La = ({
5407
5422
  /* @__PURE__ */ r("div", { style: {
5408
5423
  color: i ? "#f59e0b" : "var(--metakyc-primary, #2563eb)",
5409
5424
  flexShrink: 0
5410
- }, children: Pa[e] }),
5425
+ }, children: Da[e] }),
5411
5426
  /* @__PURE__ */ o("div", { children: [
5412
5427
  /* @__PURE__ */ r("p", { style: { fontSize: "12px", color: "var(--metakyc-text-muted, #9ca3af)", margin: 0 }, children: t }),
5413
5428
  /* @__PURE__ */ r("p", { style: {
@@ -5419,7 +5434,7 @@ const La = ({
5419
5434
  }, children: a })
5420
5435
  ] })
5421
5436
  ] });
5422
- }, 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: [
5423
5438
  /* @__PURE__ */ o("div", { style: { marginBottom: "16px" }, children: [
5424
5439
  e.groupName && /* @__PURE__ */ r("span", { style: {
5425
5440
  display: "inline-block",
@@ -5501,15 +5516,15 @@ const La = ({
5501
5516
  l
5502
5517
  );
5503
5518
  }) })
5504
- ] }), Ma = ({
5519
+ ] }), za = ({
5505
5520
  applicantId: e,
5506
5521
  onComplete: t,
5507
5522
  onBack: a
5508
5523
  }) => {
5509
5524
  var Ze, He, ot, Qe;
5510
- 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);
5511
5526
  _.current = U;
5512
- const H = Xt({
5527
+ const H = Zt({
5513
5528
  defaultValues: {
5514
5529
  street: "",
5515
5530
  streetNumber: "",
@@ -5522,23 +5537,23 @@ const La = ({
5522
5537
  });
5523
5538
  fe(() => {
5524
5539
  if (U) {
5525
- 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)));
5526
5541
  return;
5527
5542
  }
5528
5543
  (async () => {
5529
5544
  try {
5530
- const [z, K, W] = await Promise.all([
5545
+ const [O, K, W] = await Promise.all([
5531
5546
  n.getApplicantData(e),
5532
5547
  i.getCountries("", "en"),
5533
5548
  i.getCountries("", "en", 40)
5534
5549
  // CountriesType.PhoneNumber
5535
5550
  ]);
5536
- Y(z);
5537
- 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));
5538
- O(u);
5539
- 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));
5540
- ne(P);
5541
- 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;
5542
5557
  if (pe({
5543
5558
  firstName: (m == null ? void 0 : m.firstName) || "",
5544
5559
  lastName: (m == null ? void 0 : m.lastName) || "",
@@ -5569,16 +5584,16 @@ const La = ({
5569
5584
  country: (m == null ? void 0 : m.country) || "",
5570
5585
  nationality: (m == null ? void 0 : m.nationality) || "",
5571
5586
  phonenumber: (m == null ? void 0 : m.phonenumber) || ""
5572
- }), 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) {
5573
5588
  console.log("[Identity] Review page disabled + existing identity — auto-requesting..."), q.current = !0;
5574
5589
  try {
5575
5590
  await T(), G(!0);
5576
- } catch (h) {
5577
- console.error("[Identity] Auto-request failed:", h);
5591
+ } catch (g) {
5592
+ console.error("[Identity] Auto-request failed:", g);
5578
5593
  }
5579
5594
  }
5580
- } catch (z) {
5581
- console.error("Error loading applicant data:", z);
5595
+ } catch (O) {
5596
+ console.error("Error loading applicant data:", O);
5582
5597
  } finally {
5583
5598
  f(!1);
5584
5599
  }
@@ -5588,16 +5603,16 @@ const La = ({
5588
5603
  }, [y, $]), fe(() => {
5589
5604
  if (b) {
5590
5605
  if (b.expiresAt) {
5591
- const g = new Date(b.expiresAt).getTime();
5592
- if (Date.now() >= g) {
5606
+ const h = new Date(b.expiresAt).getTime();
5607
+ if (Date.now() >= h) {
5593
5608
  console.warn("[Identity] Token has expired (expiresAt)"), ie(!0), j("Your verification session has expired. Please restart.");
5594
5609
  return;
5595
5610
  }
5596
5611
  }
5597
5612
  if (b.url)
5598
5613
  try {
5599
- const z = new URL(b.url).toString().toLowerCase();
5600
- 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")) {
5601
5616
  console.warn("[Identity] Token URL indicates expiration"), ie(!0), j("Your verification link has expired. Please restart.");
5602
5617
  return;
5603
5618
  }
@@ -5610,23 +5625,23 @@ const La = ({
5610
5625
  }
5611
5626
  }
5612
5627
  }, [b]);
5613
- const he = p !== null && p === ze.Sumsub;
5628
+ const ge = p !== null && p === ze.Sumsub;
5614
5629
  fe(() => {
5615
5630
  if (p !== null && b && !v && $ && !Q) {
5616
- const g = p;
5617
- if (he) {
5631
+ const h = p;
5632
+ if (ge) {
5618
5633
  console.log("[Sumsub] Fetching access token for Web SDK…"), j(null), (async () => {
5619
5634
  try {
5620
- const z = await l.refreshSumsubToken(e), K = Je.parseProviderConfig(p, b, c);
5621
- 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);
5622
5637
  const W = Je.createProvider(p, K);
5623
5638
  W.onComplete((X) => {
5624
5639
  console.log("[Sumsub] Verification complete:", X), t == null || t();
5625
5640
  }), W.onError((X) => {
5626
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."));
5627
5642
  }), await W.initialize("sumsub-websdk-container"), console.log("[Sumsub] Web SDK launched"), N(W);
5628
- } catch (z) {
5629
- 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);
5630
5645
  }
5631
5646
  })();
5632
5647
  return;
@@ -5634,25 +5649,25 @@ const La = ({
5634
5649
  if (b.url) {
5635
5650
  console.log("[Identity] Loading provider URL for user verification:", b.url), j(null);
5636
5651
  try {
5637
- if (new URL(b.url), g === ze.SardinAI) {
5652
+ if (new URL(b.url), h === ze.SardinAI) {
5638
5653
  console.log("[SardinAI] Initializing Risk SDK in background...");
5639
5654
  try {
5640
- const z = Je.parseProviderConfig(p, b, c);
5641
- 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));
5642
- } catch (z) {
5643
- 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);
5644
5659
  }
5645
5660
  }
5646
5661
  N({ type: "url", url: b.url });
5647
- } catch (z) {
5648
- 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);
5649
5664
  }
5650
5665
  return;
5651
5666
  }
5652
- if (g === ze.SardinAI) {
5667
+ if (h === ze.SardinAI) {
5653
5668
  console.log("[SardinAI] No URL provided - initializing Risk SDK only..."), j(null);
5654
5669
  try {
5655
- 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);
5656
5671
  K.initialize().then(() => {
5657
5672
  console.log("[SardinAI] Risk SDK initialized successfully"), N(K), setTimeout(() => t == null ? void 0 : t(), 2e3);
5658
5673
  }).catch((W) => {
@@ -5661,41 +5676,41 @@ const La = ({
5661
5676
  const X = ((u = W.message) == null ? void 0 : u.toLowerCase()) || "";
5662
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}`);
5663
5678
  });
5664
- } catch (z) {
5665
- 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}`);
5666
5681
  }
5667
5682
  return;
5668
5683
  }
5669
5684
  try {
5670
5685
  j(null);
5671
- const z = Je.parseProviderConfig(p, b, c), K = Je.createProvider(p, z);
5672
- 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) => {
5673
5688
  console.error("[Onfido] Initialization error:", W), j(`Failed to initialize: ${W.message}`);
5674
5689
  }), N(K);
5675
- } catch (z) {
5676
- 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}`);
5677
5692
  }
5678
5693
  }
5679
5694
  return () => {
5680
5695
  if (v && v.destroy)
5681
5696
  try {
5682
5697
  v.destroy();
5683
- } catch (g) {
5684
- console.error("[Identity] Error destroying provider:", g);
5698
+ } catch (h) {
5699
+ console.error("[Identity] Error destroying provider:", h);
5685
5700
  }
5686
5701
  };
5687
- }, [p, b, v, $, t, Q, he, e, c, l]);
5702
+ }, [p, b, v, $, t, Q, ge, e, c, l]);
5688
5703
  const E = async () => {
5689
5704
  try {
5690
5705
  j(null), ie(!1), await T(), G(!0);
5691
- } catch (g) {
5692
- console.error("Error starting identity verification:", g);
5706
+ } catch (h) {
5707
+ console.error("Error starting identity verification:", h);
5693
5708
  }
5694
5709
  }, ee = async () => {
5695
5710
  try {
5696
5711
  j(null), ie(!1), N(null), console.log("[Identity] Restarting verification..."), await L(), G(!0);
5697
- } catch (g) {
5698
- 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");
5699
5714
  }
5700
5715
  };
5701
5716
  if (R || F)
@@ -5751,8 +5766,8 @@ const La = ({
5751
5766
  ] })
5752
5767
  ] });
5753
5768
  if ($ && y) {
5754
- const g = p;
5755
- return he ? /* @__PURE__ */ o("div", { style: {
5769
+ const h = p;
5770
+ return ge ? /* @__PURE__ */ o("div", { style: {
5756
5771
  background: "var(--metakyc-background, #ffffff)",
5757
5772
  borderRadius: "12px",
5758
5773
  border: "1px solid var(--metakyc-border, #e5e7eb)",
@@ -5845,14 +5860,14 @@ const La = ({
5845
5860
  className: "w-full h-full border-0 rounded-lg",
5846
5861
  allow: "camera; microphone; geolocation",
5847
5862
  title: "Identity Verification",
5848
- onLoad: (z) => {
5863
+ onLoad: (O) => {
5849
5864
  var K, W, X;
5850
5865
  console.log("[Identity] Iframe loaded");
5851
5866
  try {
5852
- 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);
5853
5868
  if (I) {
5854
- const P = ((X = (W = I.body) == null ? void 0 : W.textContent) == null ? void 0 : X.toLowerCase()) || "";
5855
- (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."));
5856
5871
  }
5857
5872
  } catch {
5858
5873
  console.log("[Identity] Cannot check iframe content (CORS)");
@@ -5862,7 +5877,7 @@ const La = ({
5862
5877
  ) })
5863
5878
  ] }),
5864
5879
  a && /* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ r(J, { variant: "outline", onClick: a, children: "Back" }) })
5865
- ] }) : g === ze.SardinAI ? /* @__PURE__ */ o(te, { children: [
5880
+ ] }) : h === ze.SardinAI ? /* @__PURE__ */ o(te, { children: [
5866
5881
  /* @__PURE__ */ o(Se, { children: [
5867
5882
  /* @__PURE__ */ r("h2", { className: "text-2xl font-bold", children: "Device Risk Assessment" }),
5868
5883
  /* @__PURE__ */ r("p", { className: "text-gray-600 dark:text-gray-400 mt-1", children: "Analyzing device security and behavioral patterns..." })
@@ -5881,18 +5896,18 @@ const La = ({
5881
5896
  a && /* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ r(J, { variant: "outline", onClick: a, children: "Back" }) })
5882
5897
  ] });
5883
5898
  }
5884
- const ye = /* @__PURE__ */ new Set(["country", "nationality", "taxCountry", "countryOfBirth", "mobileCountryCode", "otherNationality"]), oe = (g = 4) => {
5885
- const z = Math.min(4, Math.max(1, Number(g) || 4));
5886
- return { gridColumn: `span ${z} / span ${z}` };
5887
- }, Ne = (g, z) => {
5888
- if (!z && z !== 0) return "—";
5889
- if (ye.has(g) && g !== "mobileCountryCode") {
5890
- const K = M.find((W) => W.value === z);
5891
- 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);
5892
5907
  }
5893
- return String(z);
5894
- }, $e = ({ helpText: g }) => {
5895
- 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 });
5896
5911
  return /* @__PURE__ */ o(ct, { children: [
5897
5912
  /* @__PURE__ */ r(
5898
5913
  "button",
@@ -5928,7 +5943,7 @@ const La = ({
5928
5943
  children: "?"
5929
5944
  }
5930
5945
  ),
5931
- z && Jt.createPortal(
5946
+ O && Xt.createPortal(
5932
5947
  /* @__PURE__ */ r(
5933
5948
  "div",
5934
5949
  {
@@ -5958,7 +5973,7 @@ const La = ({
5958
5973
  boxShadow: "0 24px 64px rgba(0,0,0,0.4)"
5959
5974
  },
5960
5975
  children: [
5961
- /* @__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 } }),
5962
5977
  /* @__PURE__ */ r(
5963
5978
  "button",
5964
5979
  {
@@ -5985,95 +6000,95 @@ const La = ({
5985
6000
  document.body
5986
6001
  )
5987
6002
  ] });
5988
- }, Ie = (g, z) => z ? /* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "flex-start", gap: 5, flexWrap: "nowrap" }, children: [
5989
- /* @__PURE__ */ r("div", { style: { flex: 1, minWidth: 0 }, children: g }),
5990
- /* @__PURE__ */ r("div", { style: { paddingTop: 24 }, children: /* @__PURE__ */ r($e, { helpText: z }) })
5991
- ] }) : g, je = (g, z) => {
5992
- const K = `cf-${z}`, W = g.paramName ?? "", X = ue[W];
5993
- if (g.customType === "br")
5994
- return /* @__PURE__ */ r("div", { style: { ...oe(g.colSpan), minHeight: "0.5rem" } }, K);
5995
- if (g.customType === "paragraph")
5996
- 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(
5997
6012
  "div",
5998
6013
  {
5999
6014
  className: "text-sm",
6000
6015
  style: { color: "var(--metakyc-text-secondary, #6b7280)" },
6001
- dangerouslySetInnerHTML: { __html: g.label || "" }
6016
+ dangerouslySetInnerHTML: { __html: h.label || "" }
6002
6017
  }
6003
6018
  ) }, K);
6004
- if (g.customType === "html")
6019
+ if (h.customType === "html")
6005
6020
  return /* @__PURE__ */ r(
6006
6021
  "div",
6007
6022
  {
6008
- style: oe(g.colSpan),
6009
- dangerouslySetInnerHTML: { __html: g.label || "" }
6023
+ style: oe(h.colSpan),
6024
+ dangerouslySetInnerHTML: { __html: h.label || "" }
6010
6025
  },
6011
6026
  K
6012
6027
  );
6013
- if (g.customType === "link")
6014
- 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(
6015
6030
  /* @__PURE__ */ r(
6016
6031
  "a",
6017
6032
  {
6018
- href: g.linkUrl ?? "#",
6033
+ href: h.linkUrl ?? "#",
6019
6034
  target: "_blank",
6020
6035
  rel: "noopener noreferrer",
6021
6036
  className: "text-sm underline",
6022
6037
  style: { color: "var(--metakyc-primary, #6366f1)" },
6023
- children: g.displayText || g.label || g.linkText || g.linkUrl
6038
+ children: h.displayText || h.label || h.linkText || h.linkUrl
6024
6039
  }
6025
6040
  ),
6026
- g.helpText
6041
+ h.helpText
6027
6042
  ) }, K);
6028
- if (g.customType === "checkbox" || g.customType === "link_checkbox") {
6043
+ if (h.customType === "checkbox" || h.customType === "link_checkbox") {
6029
6044
  const u = X === "true" || X === !0;
6030
- return /* @__PURE__ */ r("div", { style: oe(g.colSpan), children: Ie(
6045
+ return /* @__PURE__ */ r("div", { style: oe(h.colSpan), children: Ie(
6031
6046
  /* @__PURE__ */ o("label", { style: { display: "flex", alignItems: "flex-start", gap: 8, cursor: "pointer" }, children: [
6032
6047
  /* @__PURE__ */ r(
6033
6048
  Be,
6034
6049
  {
6035
6050
  checked: !!u,
6036
- onChange: (I) => xe((P) => ({ ...P, [W]: String(I) })),
6051
+ onChange: (I) => xe((D) => ({ ...D, [W]: String(I) })),
6037
6052
  style: { marginTop: 2 }
6038
6053
  }
6039
6054
  ),
6040
- /* @__PURE__ */ r("span", { className: "text-sm", style: { color: "var(--metakyc-text-primary, #111827)" }, children: g.customType === "link_checkbox" && g.linkUrl ? /* @__PURE__ */ o(ct, { children: [
6041
- /* @__PURE__ */ r("a", { href: g.linkUrl, target: "_blank", rel: "noopener noreferrer", style: { color: "var(--metakyc-primary, #6366f1)", textDecoration: "underline" }, children: g.linkText || g.label }),
6042
- g.label && g.linkText ? ` ${g.label}` : ""
6043
- ] }) : 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 })
6044
6059
  ] }),
6045
- g.helpText
6060
+ h.helpText
6046
6061
  ) }, K);
6047
6062
  }
6048
- if (g.customType === "group_checkbox") {
6049
- const u = Array.isArray(X) ? X : X ? [X] : [], I = (P) => {
6050
- 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) => ({
6051
6066
  ...m,
6052
- [W]: u.includes(P) ? u.filter((s) => s !== P) : [...u, P]
6067
+ [W]: u.includes(D) ? u.filter((s) => s !== D) : [...u, D]
6053
6068
  }));
6054
6069
  };
6055
- return /* @__PURE__ */ r("div", { style: oe(g.colSpan), children: Ie(
6070
+ return /* @__PURE__ */ r("div", { style: oe(h.colSpan), children: Ie(
6056
6071
  /* @__PURE__ */ o("div", { className: "space-y-1.5", children: [
6057
- g.label && /* @__PURE__ */ r("p", { className: "text-sm font-medium", style: { color: "var(--metakyc-text-primary, #111827)" }, children: g.displayText || g.label }),
6058
- (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: [
6059
6074
  /* @__PURE__ */ r(
6060
6075
  Be,
6061
6076
  {
6062
- checked: u.includes(P.value),
6063
- onChange: () => I(P.value),
6077
+ checked: u.includes(D.value),
6078
+ onChange: () => I(D.value),
6064
6079
  style: { marginTop: 2 }
6065
6080
  }
6066
6081
  ),
6067
- /* @__PURE__ */ r("span", { className: "text-sm", style: { color: "var(--metakyc-text-primary, #111827)" }, children: P.label })
6068
- ] }, P.value))
6082
+ /* @__PURE__ */ r("span", { className: "text-sm", style: { color: "var(--metakyc-text-primary, #111827)" }, children: D.label })
6083
+ ] }, D.value))
6069
6084
  ] }),
6070
- g.helpText
6085
+ h.helpText
6071
6086
  ) }, K);
6072
6087
  }
6073
- 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(
6074
6089
  /* @__PURE__ */ o("div", { className: "space-y-1.5", children: [
6075
- g.label && /* @__PURE__ */ r("p", { className: "text-sm font-medium", style: { color: "var(--metakyc-text-primary, #111827)" }, children: g.displayText || g.label }),
6076
- (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: [
6077
6092
  /* @__PURE__ */ r(
6078
6093
  "input",
6079
6094
  {
@@ -6088,22 +6103,22 @@ const La = ({
6088
6103
  /* @__PURE__ */ r("span", { className: "text-sm", style: { color: "var(--metakyc-text-primary, #111827)" }, children: u.label })
6089
6104
  ] }, u.value))
6090
6105
  ] }),
6091
- g.helpText
6092
- ) }, K) : /* @__PURE__ */ r("div", { style: oe(g.colSpan), children: Ie(
6106
+ h.helpText
6107
+ ) }, K) : /* @__PURE__ */ r("div", { style: oe(h.colSpan), children: Ie(
6093
6108
  /* @__PURE__ */ r(
6094
6109
  be,
6095
6110
  {
6096
- label: g.displayText || g.label || W,
6111
+ label: h.displayText || h.label || W,
6097
6112
  value: String(X ?? ""),
6098
6113
  onChange: (u) => xe((I) => ({ ...I, [W]: u.target.value }))
6099
6114
  }
6100
6115
  ),
6101
- g.helpText
6116
+ h.helpText
6102
6117
  ) }, K);
6103
- }, it = (g, z) => {
6104
- if (g.isCustom) return je(g, z);
6105
- 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;
6106
- 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(
6107
6122
  /* @__PURE__ */ r(
6108
6123
  Ye,
6109
6124
  {
@@ -6113,19 +6128,19 @@ const La = ({
6113
6128
  options: [{ value: "", label: "Select country code…" }, ...Z]
6114
6129
  }
6115
6130
  ),
6116
- g.helpText
6117
- ) }, `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(
6118
6133
  /* @__PURE__ */ r(
6119
6134
  Ye,
6120
6135
  {
6121
6136
  label: X,
6122
6137
  value: String(u),
6123
6138
  onChange: (m) => pe((s) => ({ ...s, [K]: m })),
6124
- options: [{ value: "", label: `Select ${X.toLowerCase()}…` }, ...M]
6139
+ options: [{ value: "", label: `Select ${X.toLowerCase()}…` }, ...P]
6125
6140
  }
6126
6141
  ),
6127
- g.helpText
6128
- ) }, `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(
6129
6144
  /* @__PURE__ */ r(
6130
6145
  be,
6131
6146
  {
@@ -6135,23 +6150,23 @@ const La = ({
6135
6150
  onChange: (m) => pe((s) => ({ ...s, [K]: m.target.value }))
6136
6151
  }
6137
6152
  ),
6138
- g.helpText
6139
- ) }, `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(
6140
6155
  /* @__PURE__ */ o(ct, { children: [
6141
6156
  /* @__PURE__ */ r("label", { className: "block text-sm font-medium mb-0.5", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: X }),
6142
6157
  /* @__PURE__ */ r("p", { className: "text-sm", style: { color: "var(--metakyc-text-primary, #111827)", minHeight: "1.5rem" }, children: Ne(K, u) })
6143
6158
  ] }),
6144
- g.helpText
6145
- ) }, `ro-${z}`);
6159
+ h.helpText
6160
+ ) }, `ro-${O}`);
6146
6161
  };
6147
6162
  if (A) {
6148
- 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";
6149
6164
  return /* @__PURE__ */ r("form", { onSubmit: (K) => {
6150
6165
  K.preventDefault(), E();
6151
6166
  }, children: /* @__PURE__ */ o(te, { children: [
6152
6167
  /* @__PURE__ */ o(Se, { children: [
6153
- /* @__PURE__ */ r("h2", { className: "text-lg font-bold", style: { color: "var(--metakyc-text-primary, #111827)" }, children: g }),
6154
- /* @__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 })
6155
6170
  ] }),
6156
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)) }) }),
6157
6172
  /* @__PURE__ */ o(Ce, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
@@ -6170,10 +6185,10 @@ const La = ({
6170
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() },
6171
6186
  { label: "Email", value: (ot = B == null ? void 0 : B.applicantRequestData) == null ? void 0 : ot.email },
6172
6187
  { label: "Date of Birth", value: ((Qe = B == null ? void 0 : B.applicantRequestData) == null ? void 0 : Qe.dateOfBirth) || "Not provided" }
6173
- ].map(({ label: g, value: z }) => /* @__PURE__ */ o("div", { children: [
6174
- /* @__PURE__ */ r("label", { className: "block text-sm font-medium", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: g }),
6175
- /* @__PURE__ */ r("p", { className: "mt-1 text-base", style: { color: "var(--metakyc-text-primary, #111827)" }, children: z })
6176
- ] }, 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)) }),
6177
6192
  /* @__PURE__ */ o("div", { className: "space-y-4", children: [
6178
6193
  /* @__PURE__ */ r("h3", { className: "text-base font-semibold", style: { color: "var(--metakyc-text-primary, #111827)" }, children: "Address Information" }),
6179
6194
  /* @__PURE__ */ o("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
@@ -6182,13 +6197,13 @@ const La = ({
6182
6197
  {
6183
6198
  control: H.control,
6184
6199
  name: "country",
6185
- render: ({ field: g }) => /* @__PURE__ */ r(
6200
+ render: ({ field: h }) => /* @__PURE__ */ r(
6186
6201
  Ye,
6187
6202
  {
6188
6203
  label: "Country",
6189
- value: g.value,
6190
- onChange: g.onChange,
6191
- options: [{ value: "", label: "Select country…" }, ...M]
6204
+ value: h.value,
6205
+ onChange: h.onChange,
6206
+ options: [{ value: "", label: "Select country…" }, ...P]
6192
6207
  }
6193
6208
  )
6194
6209
  }
@@ -6198,27 +6213,27 @@ const La = ({
6198
6213
  {
6199
6214
  control: H.control,
6200
6215
  name: "nationality",
6201
- render: ({ field: g }) => /* @__PURE__ */ r(
6216
+ render: ({ field: h }) => /* @__PURE__ */ r(
6202
6217
  Ye,
6203
6218
  {
6204
6219
  label: "Nationality",
6205
- value: g.value,
6206
- onChange: g.onChange,
6207
- options: [{ value: "", label: "Select nationality…" }, ...M]
6220
+ value: h.value,
6221
+ onChange: h.onChange,
6222
+ options: [{ value: "", label: "Select nationality…" }, ...P]
6208
6223
  }
6209
6224
  )
6210
6225
  }
6211
6226
  )
6212
6227
  ] }),
6213
6228
  /* @__PURE__ */ o("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
6214
- /* @__PURE__ */ r(tt, { control: H.control, name: "street", render: ({ field: g }) => /* @__PURE__ */ r(be, { ...g, label: "Street" }) }),
6215
- /* @__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" }) })
6216
6231
  ] }),
6217
6232
  /* @__PURE__ */ o("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
6218
- /* @__PURE__ */ r(tt, { control: H.control, name: "city", render: ({ field: g }) => /* @__PURE__ */ r(be, { ...g, label: "City" }) }),
6219
- /* @__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" }) })
6220
6235
  ] }),
6221
- /* @__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" }) })
6222
6237
  ] })
6223
6238
  ] }),
6224
6239
  /* @__PURE__ */ o(Ce, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
@@ -6226,7 +6241,7 @@ const La = ({
6226
6241
  /* @__PURE__ */ r(J, { type: "submit", isLoading: F, children: "Confirm and Start Verification" })
6227
6242
  ] })
6228
6243
  ] }) });
6229
- }, Dt = ({
6244
+ }, Mt = ({
6230
6245
  kycStatus: e,
6231
6246
  reviewStatus: t,
6232
6247
  workflowResult: a,
@@ -6316,7 +6331,7 @@ const La = ({
6316
6331
  ) }),
6317
6332
  /* @__PURE__ */ r("h2", { className: "text-3xl font-bold text-center mb-4", style: { color: "var(--metakyc-text-primary, #111827)" }, children: d.title }),
6318
6333
  /* @__PURE__ */ r("div", { className: "flex justify-center mb-6", children: /* @__PURE__ */ r(
6319
- _t,
6334
+ jt,
6320
6335
  {
6321
6336
  variant: d.type === "success" ? "success" : d.type === "error" ? "danger" : d.type === "pending" ? "warning" : "info",
6322
6337
  children: e != null ? rt[e] : at[t]
@@ -6368,7 +6383,7 @@ const La = ({
6368
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" }) })
6369
6384
  ] })
6370
6385
  ] });
6371
- }, 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(
6372
6387
  "img",
6373
6388
  {
6374
6389
  src: e.url,
@@ -6388,7 +6403,7 @@ const La = ({
6388
6403
  subtitle: t,
6389
6404
  className: a = ""
6390
6405
  }) => {
6391
- 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;
6392
6407
  return !l && !c ? null : /* @__PURE__ */ o("div", { className: `metakyc-header ${a}`, children: [
6393
6408
  /* @__PURE__ */ o(
6394
6409
  "div",
@@ -6396,7 +6411,7 @@ const La = ({
6396
6411
  className: "metakyc-header-title flex items-center text-xl font-bold",
6397
6412
  style: { color: "var(--metakyc-text-primary, #111827)" },
6398
6413
  children: [
6399
- l && /* @__PURE__ */ r(za, { config: n.logo }),
6414
+ l && /* @__PURE__ */ r(Oa, { config: n.logo }),
6400
6415
  l && c && /* @__PURE__ */ r(
6401
6416
  "span",
6402
6417
  {
@@ -6410,11 +6425,11 @@ const La = ({
6410
6425
  ),
6411
6426
  t && /* @__PURE__ */ r("p", { className: "text-sm mt-1", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: t })
6412
6427
  ] });
6413
- }, ht = ["firstName", "lastName", "email", "phonenumber", "dateOfBirth"];
6428
+ }, gt = ["firstName", "lastName", "email", "phonenumber", "dateOfBirth"];
6414
6429
  function lt(e) {
6415
6430
  return e == null || e === "" || Array.isArray(e) && e.length === 0;
6416
6431
  }
6417
- const Oa = {
6432
+ const $a = {
6418
6433
  width: "16px",
6419
6434
  height: "16px",
6420
6435
  minWidth: "16px",
@@ -6426,7 +6441,7 @@ const Oa = {
6426
6441
  padding: 0,
6427
6442
  display: "inline-block",
6428
6443
  verticalAlign: "middle"
6429
- }, Mt = ({ helpText: e, children: t }) => {
6444
+ }, zt = ({ helpText: e, children: t }) => {
6430
6445
  const [a, n] = we.useState(!1);
6431
6446
  if (!e) return /* @__PURE__ */ r(ct, { children: t });
6432
6447
  const i = a ? /* @__PURE__ */ r(
@@ -6547,100 +6562,100 @@ const Oa = {
6547
6562
  ),
6548
6563
  typeof document < "u" && i ? Ct(i, document.body) : null
6549
6564
  ] });
6550
- }, an = ({
6565
+ }, nn = ({
6551
6566
  workflowKey: e,
6552
6567
  externalRefId: t,
6553
6568
  onSuccess: a,
6554
6569
  onCancel: n
6555
6570
  }) => {
6556
- var K, W, X, u, I, P, m;
6557
- 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);
6558
6573
  if (!p)
6559
6574
  throw new Error(
6560
6575
  "workflowKey is required. Provide it either as a prop to CreateApplicantForm or set it in config.applicantForm.workflowKey"
6561
6576
  );
6562
- 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(
6563
6578
  () => c != null && c.applicantFormPages && c.applicantFormPages.length > 0 ? c.applicantFormPages : null,
6564
6579
  [c == null ? void 0 : c.applicantFormPages]
6565
6580
  ), B = De(() => {
6566
- const s = new Set(ht), h = c == null ? void 0 : c.applicantFormRequiredFields;
6567
- 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);
6568
6583
  if (N)
6569
- for (const D of N)
6570
- for (const k of D.fields)
6584
+ for (const M of N)
6585
+ for (const k of M.fields)
6571
6586
  !k.isCustom && k.name && k.required && s.add(k.name);
6572
6587
  return Array.from(s);
6573
6588
  }, [c == null ? void 0 : c.applicantFormRequiredFields, N]), Y = De(() => {
6574
- var D;
6589
+ var M;
6575
6590
  if (N) {
6576
6591
  const k = N.flatMap((w) => w.fields).filter((w) => !w.isCustom && w.name).map((w) => w.name), C = new Set(k);
6577
- for (const w of ht) C.add(w);
6592
+ for (const w of gt) C.add(w);
6578
6593
  return Array.from(C);
6579
6594
  }
6580
6595
  let s;
6581
- (D = i.applicantForm) != null && D.visibleFields ? s = i.applicantForm.visibleFields : c != null && c.applicantFormVisibleFields && c.applicantFormVisibleFields.length > 0 ? s = c.applicantFormVisibleFields : s = mr;
6582
- const h = new Set(s);
6583
- for (const k of ht) h.add(k);
6584
- return Array.from(h);
6585
- }, [(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([
6586
6601
  "country",
6587
6602
  "nationality",
6588
6603
  "taxCountry",
6589
6604
  "countryOfBirth",
6590
6605
  "mobileCountryCode",
6591
6606
  "otherNationality"
6592
- ]), O = De(() => {
6593
- var h, D;
6607
+ ]), z = De(() => {
6608
+ var g, M;
6594
6609
  const s = /* @__PURE__ */ new Set();
6595
6610
  if (N)
6596
6611
  for (const k of N)
6597
6612
  for (const C of k.fields)
6598
- !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));
6599
6614
  else
6600
6615
  for (const k of Y)
6601
- 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);
6602
6617
  return s.size === 0 && s.add(void 0), Array.from(s);
6603
6618
  }, [Y, N]), [Z, ne] = x({}), [R, f] = x(!0), $ = de(/* @__PURE__ */ new Set()), G = de(/* @__PURE__ */ new Set());
6604
6619
  fe(() => {
6605
6620
  if (!c) return;
6606
- const s = O.filter((k) => {
6621
+ const s = z.filter((k) => {
6607
6622
  const C = k != null ? String(k) : "all";
6608
6623
  return !G.current.has(C) && !$.current.has(C);
6609
6624
  });
6610
6625
  if (s.length === 0) {
6611
- O.every((C) => {
6626
+ z.every((C) => {
6612
6627
  const w = C != null ? String(C) : "all";
6613
6628
  return G.current.has(w);
6614
6629
  }) && f(!1);
6615
6630
  return;
6616
6631
  }
6617
6632
  f(!0);
6618
- const h = s.map((k) => k != null ? String(k) : "all");
6619
- 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 () => {
6620
6635
  try {
6621
6636
  const k = await Promise.all(
6622
6637
  s.map(async (C) => {
6623
- 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 ? {
6624
6639
  value: le.countryCode,
6625
6640
  label: `${le.countryCode} – ${le.name}`
6626
6641
  } : { value: le.abbreviation3 || le.abbreviation, label: le.name }).filter((le) => !le.value || ke.has(le.value) ? !1 : (ke.add(le.value), !0));
6627
- return G.current.add(w), $.current.delete(w), [w, Le];
6642
+ return G.current.add(w), $.current.delete(w), [w, Pe];
6628
6643
  })
6629
6644
  );
6630
6645
  ne((C) => ({ ...C, ...Object.fromEntries(k) }));
6631
6646
  } catch (k) {
6632
- 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);
6633
6648
  } finally {
6634
- O.every((C) => {
6649
+ z.every((C) => {
6635
6650
  const w = C != null ? String(C) : "all";
6636
6651
  return G.current.has(w);
6637
6652
  }) && f(!1);
6638
6653
  }
6639
6654
  })();
6640
- }, [O, c]);
6641
- const V = (s, h) => {
6655
+ }, [z, c]);
6656
+ const V = (s, g) => {
6642
6657
  var C;
6643
- 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";
6644
6659
  return Z[k] || [];
6645
6660
  }, j = {
6646
6661
  firstName: 1,
@@ -6698,24 +6713,24 @@ const Oa = {
6698
6713
  ...ie
6699
6714
  }), pe = Object.fromEntries(
6700
6715
  Object.entries(S).filter(([s]) => !(s in Q) && s !== "externalRefId" && s !== "workflowKey")
6701
- ), [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) => {
6702
- var D;
6703
- 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 = {};
6704
6719
  for (const k of s.fields)
6705
6720
  if (k.isCustom) {
6706
6721
  if (k.customType === "paragraph" || k.customType === "html" || k.customType === "br" || k.customType === "link") continue;
6707
6722
  if (k.required && k.paramName) {
6708
6723
  const C = ue[k.paramName], w = k.displayText || k.label || k.paramName;
6709
- 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.`);
6710
6725
  }
6711
6726
  } else if (k.name) {
6712
6727
  const C = k.name;
6713
6728
  if (B.includes(C) && lt(q[C])) {
6714
- const w = k.displayText || ((D = nt[C]) == null ? void 0 : D.label) || C;
6715
- 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.`;
6716
6731
  }
6717
6732
  }
6718
- return h;
6733
+ return g;
6719
6734
  }, Ze = async () => {
6720
6735
  if (!N) return;
6721
6736
  const s = N[A];
@@ -6723,17 +6738,17 @@ const Oa = {
6723
6738
  H({}), Ie >= 0 ? U(Ie) : await He();
6724
6739
  return;
6725
6740
  }
6726
- const h = it(s);
6727
- if (Object.keys(h).length > 0) {
6728
- H(h);
6741
+ const g = it(s);
6742
+ if (Object.keys(g).length > 0) {
6743
+ H(g);
6729
6744
  return;
6730
6745
  }
6731
6746
  H({}), Ie >= 0 ? U(Ie) : await He();
6732
6747
  }, He = async () => {
6733
6748
  if (N) {
6734
6749
  let s = {};
6735
- for (const h of N)
6736
- $e(h) && (s = { ...s, ...it(h) });
6750
+ for (const g of N)
6751
+ $e(g) && (s = { ...s, ...it(g) });
6737
6752
  if (Object.keys(s).length > 0) {
6738
6753
  H(s);
6739
6754
  return;
@@ -6758,7 +6773,7 @@ const Oa = {
6758
6773
  lt(se) || (s[me] = se);
6759
6774
  }
6760
6775
  }
6761
- for (const C of ht)
6776
+ for (const C of gt)
6762
6777
  if (s[C] === void 0) {
6763
6778
  const w = q[C];
6764
6779
  lt(w) || (s[C] = w);
@@ -6769,7 +6784,7 @@ const Oa = {
6769
6784
  const w = q[C];
6770
6785
  lt(w) || (s[C] = w);
6771
6786
  });
6772
- const h = [];
6787
+ const g = [];
6773
6788
  if (N) {
6774
6789
  for (const C of N)
6775
6790
  if ($e(C))
@@ -6780,15 +6795,15 @@ const Oa = {
6780
6795
  if (w.customType === "checkbox" || w.customType === "link_checkbox")
6781
6796
  se = me === "true" ? "yes" : "no";
6782
6797
  else if (se = me, !se && !w.required) continue;
6783
- h.push({ paramName: w.paramName, value: se });
6798
+ g.push({ paramName: w.paramName, value: se });
6784
6799
  }
6785
6800
  }
6786
6801
  for (const [C, w] of Object.entries(Q))
6787
6802
  s[C] === void 0 && !lt(w) && (s[C] = w);
6788
- const D = new Set(h.map((C) => C.paramName));
6803
+ const M = new Set(g.map((C) => C.paramName));
6789
6804
  for (const [C, w] of Object.entries(pe))
6790
- !D.has(C) && w && h.push({ paramName: C, value: w });
6791
- h.length > 0 && (s.applicantAdditionalDatas = h);
6805
+ !M.has(C) && w && g.push({ paramName: C, value: w });
6806
+ g.length > 0 && (s.applicantAdditionalDatas = g);
6792
6807
  const k = await d(s);
6793
6808
  a(k.applicantId);
6794
6809
  } catch (s) {
@@ -6797,20 +6812,20 @@ const Oa = {
6797
6812
  ye(!1);
6798
6813
  }
6799
6814
  }, ot = async (s) => {
6800
- var h;
6815
+ var g;
6801
6816
  s.preventDefault();
6802
- for (const D of B)
6803
- if (lt(q[D])) {
6804
- 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;
6805
6820
  E(`${k} is required.`);
6806
6821
  return;
6807
6822
  }
6808
6823
  await He();
6809
- }, Qe = (s, h, D, k, C) => {
6824
+ }, Qe = (s, g, M, k, C) => {
6810
6825
  var It;
6811
6826
  const w = nt[s];
6812
6827
  if (!w) return null;
6813
- 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;
6814
6829
  switch (w.type) {
6815
6830
  case "select":
6816
6831
  if (s === "country" || s === "nationality" || s === "taxCountry" || s === "countryOfBirth" || s === "mobileCountryCode") {
@@ -6822,9 +6837,9 @@ const Oa = {
6822
6837
  label: Ge,
6823
6838
  value: q[s] || "",
6824
6839
  onChange: (et) => oe(s, et),
6825
- options: [{ value: "", label: `Select ${Kt.toLowerCase()}` }, ...Re],
6840
+ options: [{ value: "", label: `Select ${qt.toLowerCase()}` }, ...Re],
6826
6841
  disabled: R,
6827
- readOnly: Le,
6842
+ readOnly: Pe,
6828
6843
  error: se
6829
6844
  },
6830
6845
  le
@@ -6844,7 +6859,7 @@ const Oa = {
6844
6859
  { value: kt.Female.toString(), label: "Female" },
6845
6860
  { value: kt.Other.toString(), label: "Other" }
6846
6861
  ],
6847
- readOnly: Le,
6862
+ readOnly: Pe,
6848
6863
  error: se
6849
6864
  },
6850
6865
  le
@@ -6859,7 +6874,7 @@ const Oa = {
6859
6874
  value: q[s] || "",
6860
6875
  onChange: (et) => oe(s, et),
6861
6876
  options: [{ value: "", label: We ? "Select language..." : ke }, ...Re],
6862
- readOnly: Le,
6877
+ readOnly: Pe,
6863
6878
  error: se
6864
6879
  },
6865
6880
  le
@@ -6870,7 +6885,7 @@ const Oa = {
6870
6885
  if (s === "otherNationality") {
6871
6886
  const Re = V(s, k);
6872
6887
  return /* @__PURE__ */ r(
6873
- ia,
6888
+ oa,
6874
6889
  {
6875
6890
  ..._e,
6876
6891
  label: Ge,
@@ -6879,7 +6894,7 @@ const Oa = {
6879
6894
  options: Re,
6880
6895
  placeholder: We ? "Select other nationalities..." : ke,
6881
6896
  disabled: R,
6882
- readOnly: Le
6897
+ readOnly: Pe
6883
6898
  },
6884
6899
  le
6885
6900
  );
@@ -6895,7 +6910,7 @@ const Oa = {
6895
6910
  placeholder: We ? void 0 : ke,
6896
6911
  value: q[s] || "",
6897
6912
  onChange: (Re) => oe(s, Re.target.value),
6898
- readOnly: Le,
6913
+ readOnly: Pe,
6899
6914
  error: se
6900
6915
  },
6901
6916
  le
@@ -6910,7 +6925,7 @@ const Oa = {
6910
6925
  placeholder: We ? void 0 : ke,
6911
6926
  value: q[s] || "",
6912
6927
  onChange: (Re) => oe(s, Re.target.value),
6913
- readOnly: Le,
6928
+ readOnly: Pe,
6914
6929
  error: se
6915
6930
  },
6916
6931
  le
@@ -6925,7 +6940,7 @@ const Oa = {
6925
6940
  placeholder: We ? void 0 : ke,
6926
6941
  value: q[s] || "",
6927
6942
  onChange: (Re) => oe(s, Re.target.value),
6928
- readOnly: Le,
6943
+ readOnly: Pe,
6929
6944
  error: se
6930
6945
  },
6931
6946
  le
@@ -6940,14 +6955,14 @@ const Oa = {
6940
6955
  placeholder: We ? void 0 : ke,
6941
6956
  value: q[s] || "",
6942
6957
  onChange: (Re) => oe(s, Re.target.value),
6943
- readOnly: Le,
6958
+ readOnly: Pe,
6944
6959
  error: se
6945
6960
  },
6946
6961
  le
6947
6962
  );
6948
6963
  }
6949
- }, g = (s, h) => {
6950
- const D = s.labelMode ? s.labelMode !== "placeholder" : v;
6964
+ }, h = (s, g) => {
6965
+ const M = s.labelMode ? s.labelMode !== "placeholder" : v;
6951
6966
  if (s.customType === "paragraph") {
6952
6967
  const w = s.displayText || s.label || "";
6953
6968
  return /* @__PURE__ */ r(
@@ -6962,7 +6977,7 @@ const Oa = {
6962
6977
  },
6963
6978
  dangerouslySetInnerHTML: { __html: w }
6964
6979
  },
6965
- `custom-${h}`
6980
+ `custom-${g}`
6966
6981
  );
6967
6982
  }
6968
6983
  if (s.customType === "html")
@@ -6971,10 +6986,10 @@ const Oa = {
6971
6986
  {
6972
6987
  dangerouslySetInnerHTML: { __html: s.label || "" }
6973
6988
  },
6974
- `custom-${h}`
6989
+ `custom-${g}`
6975
6990
  );
6976
6991
  if (s.customType === "br")
6977
- return /* @__PURE__ */ r("div", { style: { height: "12px" } }, `custom-${h}`);
6992
+ return /* @__PURE__ */ r("div", { style: { height: "12px" } }, `custom-${g}`);
6978
6993
  if (s.customType === "link") {
6979
6994
  const w = s.displayText || s.label || s.linkText || s.linkUrl || "";
6980
6995
  return /* @__PURE__ */ r("div", { className: "metakyc-link-field", children: /* @__PURE__ */ o(
@@ -6997,7 +7012,7 @@ const Oa = {
6997
7012
  /* @__PURE__ */ r("span", { style: { fontSize: "10px", opacity: 0.7 }, children: "↗" })
6998
7013
  ]
6999
7014
  }
7000
- ) }, `custom-${h}`);
7015
+ ) }, `custom-${g}`);
7001
7016
  }
7002
7017
  if (!s.paramName) return null;
7003
7018
  const k = _[s.paramName], C = s.displayText || s.label || s.paramName;
@@ -7031,7 +7046,7 @@ const Oa = {
7031
7046
  }
7032
7047
  ),
7033
7048
  k && /* @__PURE__ */ r("p", { className: "text-red-500 text-xs mt-0.5", children: k })
7034
- ] }, `custom-${h}`);
7049
+ ] }, `custom-${g}`);
7035
7050
  if (s.customType === "link_checkbox")
7036
7051
  return /* @__PURE__ */ o("div", { className: "flex flex-col gap-1", children: [
7037
7052
  /* @__PURE__ */ o(
@@ -7075,11 +7090,11 @@ const Oa = {
7075
7090
  }
7076
7091
  ),
7077
7092
  k && /* @__PURE__ */ r("p", { className: "text-red-500 text-xs mt-0.5", children: k })
7078
- ] }, `custom-${h}`);
7093
+ ] }, `custom-${g}`);
7079
7094
  if (s.customType === "group_checkbox") {
7080
7095
  const w = (ue[s.paramName] || "").split(",").filter(Boolean);
7081
7096
  return /* @__PURE__ */ o("div", { className: "flex flex-col gap-1.5", children: [
7082
- D && /* @__PURE__ */ o(
7097
+ M && /* @__PURE__ */ o(
7083
7098
  "div",
7084
7099
  {
7085
7100
  className: "text-sm font-medium",
@@ -7106,8 +7121,8 @@ const Oa = {
7106
7121
  if (s.singleSelect)
7107
7122
  Ne(s.paramName, ke ? me.value : "");
7108
7123
  else {
7109
- const Le = ke ? [...w, me.value] : w.filter((le) => le !== me.value);
7110
- Ne(s.paramName, Le.join(","));
7124
+ const Pe = ke ? [...w, me.value] : w.filter((le) => le !== me.value);
7125
+ Ne(s.paramName, Pe.join(","));
7111
7126
  }
7112
7127
  }
7113
7128
  }
@@ -7126,10 +7141,10 @@ const Oa = {
7126
7141
  );
7127
7142
  }) }),
7128
7143
  k && /* @__PURE__ */ r("p", { className: "text-red-500 text-xs", children: k })
7129
- ] }, `custom-${h}`);
7144
+ ] }, `custom-${g}`);
7130
7145
  }
7131
7146
  return s.customType === "radio_group" ? /* @__PURE__ */ o("div", { className: "flex flex-col gap-1.5", children: [
7132
- D && /* @__PURE__ */ o(
7147
+ M && /* @__PURE__ */ o(
7133
7148
  "div",
7134
7149
  {
7135
7150
  className: "text-sm font-medium",
@@ -7152,9 +7167,9 @@ const Oa = {
7152
7167
  type: "radio",
7153
7168
  checked: ue[s.paramName] === w.value,
7154
7169
  onChange: () => Ne(s.paramName, w.value),
7155
- name: `radio-group-${s.paramName}-${h}`,
7170
+ name: `radio-group-${s.paramName}-${g}`,
7156
7171
  className: "metakyc-option-input",
7157
- style: Oa
7172
+ style: $a
7158
7173
  }
7159
7174
  ),
7160
7175
  /* @__PURE__ */ r(
@@ -7170,23 +7185,23 @@ const Oa = {
7170
7185
  w.value
7171
7186
  )) }),
7172
7187
  k && /* @__PURE__ */ r("p", { className: "text-red-500 text-xs", children: k })
7173
- ] }, `custom-${h}`) : /* @__PURE__ */ r(
7188
+ ] }, `custom-${g}`) : /* @__PURE__ */ r(
7174
7189
  be,
7175
7190
  {
7176
7191
  type: "text",
7177
- label: D ? `${C}${s.required ? " *" : ""}` : void 0,
7178
- placeholder: D ? void 0 : C,
7192
+ label: M ? `${C}${s.required ? " *" : ""}` : void 0,
7193
+ placeholder: M ? void 0 : C,
7179
7194
  value: ue[s.paramName] || "",
7180
7195
  onChange: (w) => Ne(s.paramName, w.target.value),
7181
7196
  required: s.required,
7182
7197
  error: k
7183
7198
  },
7184
- `custom-${h}`
7199
+ `custom-${g}`
7185
7200
  );
7186
- }, z = (s, h) => {
7187
- const D = $e(s);
7201
+ }, O = (s, g) => {
7202
+ const M = $e(s);
7188
7203
  return /* @__PURE__ */ o("div", { className: "space-y-4", children: [
7189
- s.conditionalOn && /* @__PURE__ */ r(Mt, { helpText: s.conditionalHelpText, children: /* @__PURE__ */ o(
7204
+ s.conditionalOn && /* @__PURE__ */ r(zt, { helpText: s.conditionalHelpText, children: /* @__PURE__ */ o(
7190
7205
  "label",
7191
7206
  {
7192
7207
  className: "metakyc-option-label",
@@ -7195,7 +7210,7 @@ const Oa = {
7195
7210
  /* @__PURE__ */ r(
7196
7211
  Be,
7197
7212
  {
7198
- checked: D,
7213
+ checked: M,
7199
7214
  onChange: (k) => Ne(s.conditionalOn, k ? "true" : "false")
7200
7215
  }
7201
7216
  ),
@@ -7210,9 +7225,9 @@ const Oa = {
7210
7225
  ]
7211
7226
  }
7212
7227
  ) }),
7213
- 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) => {
7214
7229
  const w = Math.min(4, Math.max(1, Number(k.colSpan) || 4)), me = k.isCustom ? `custom-${C}-${k.paramName}` : `builtin-${k.name}-${C}`;
7215
- 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);
7216
7231
  }) })
7217
7232
  ] });
7218
7233
  };
@@ -7222,7 +7237,7 @@ const Oa = {
7222
7237
  /* @__PURE__ */ r("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)", fontSize: "0.875rem" }, children: "Loading form…" })
7223
7238
  ] }) }) });
7224
7239
  if (N) {
7225
- 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(_);
7226
7241
  return /* @__PURE__ */ r("div", { className: "metakyc-sdk", children: /* @__PURE__ */ o(te, { children: [
7227
7242
  /* @__PURE__ */ r(Se, { children: /* @__PURE__ */ r(ut, { title: (c == null ? void 0 : c.title) || "Create Applicant" }) }),
7228
7243
  /* @__PURE__ */ o(re, { children: [
@@ -7252,11 +7267,11 @@ const Oa = {
7252
7267
  }
7253
7268
  )
7254
7269
  ] }),
7255
- (he || w.length > 0) && /* @__PURE__ */ o("div", { className: "mb-4 p-3 bg-red-50 border border-red-200 rounded-lg", children: [
7256
- 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: [
7257
7272
  /* @__PURE__ */ r("strong", { children: "Error:" }),
7258
7273
  " ",
7259
- he
7274
+ ge
7260
7275
  ] }),
7261
7276
  w.map((me, se) => /* @__PURE__ */ r("p", { className: "text-red-600 text-sm", children: me }, se))
7262
7277
  ] }),
@@ -7279,11 +7294,11 @@ const Oa = {
7279
7294
  k
7280
7295
  ] })
7281
7296
  ] }),
7282
- z(s)
7297
+ O(s)
7283
7298
  ] }),
7284
7299
  /* @__PURE__ */ o(Ce, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
7285
7300
  /* @__PURE__ */ o("div", { children: [
7286
- !h && /* @__PURE__ */ r(
7301
+ !g && /* @__PURE__ */ r(
7287
7302
  J,
7288
7303
  {
7289
7304
  type: "button",
@@ -7295,15 +7310,15 @@ const Oa = {
7295
7310
  children: "Previous"
7296
7311
  }
7297
7312
  ),
7298
- 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" })
7299
7314
  ] }),
7300
7315
  /* @__PURE__ */ r(
7301
7316
  J,
7302
7317
  {
7303
7318
  type: "button",
7304
7319
  isLoading: ee || y,
7305
- onClick: D ? He : Ze,
7306
- 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"
7307
7322
  }
7308
7323
  )
7309
7324
  ] })
@@ -7312,10 +7327,10 @@ const Oa = {
7312
7327
  return /* @__PURE__ */ r("div", { className: "metakyc-sdk", children: /* @__PURE__ */ r("form", { onSubmit: ot, children: /* @__PURE__ */ o(te, { children: [
7313
7328
  /* @__PURE__ */ r(Se, { children: /* @__PURE__ */ r(ut, { title: (c == null ? void 0 : c.title) || "Create Applicant" }) }),
7314
7329
  /* @__PURE__ */ o(re, { children: [
7315
- 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: [
7316
7331
  /* @__PURE__ */ r("strong", { children: "Error:" }),
7317
7332
  " ",
7318
- he
7333
+ ge
7319
7334
  ] }) }),
7320
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)) })
7321
7336
  ] }),
@@ -7324,43 +7339,43 @@ const Oa = {
7324
7339
  /* @__PURE__ */ r(J, { type: "submit", isLoading: ee || y, children: "Create Applicant" })
7325
7340
  ] })
7326
7341
  ] }) }) });
7327
- }, zt = ["companyName", "email"];
7342
+ }, Ot = ["companyName", "email"];
7328
7343
  function wt(e) {
7329
7344
  return e == null || e === "" || Array.isArray(e) && e.length === 0;
7330
7345
  }
7331
- const nn = ({
7346
+ const on = ({
7332
7347
  workflowKey: e,
7333
7348
  externalRefId: t,
7334
7349
  onSuccess: a,
7335
7350
  onCancel: n
7336
7351
  }) => {
7337
- var Qe, g, z, K, W, X;
7338
- 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);
7339
7354
  if (!p)
7340
7355
  throw new Error(
7341
7356
  "workflowKey is required. Provide it either as a prop to CreateCompanyApplicantForm or set it in config.applicantForm.workflowKey"
7342
7357
  );
7343
- 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(
7344
7359
  () => c != null && c.companyFormPages && c.companyFormPages.length > 0 ? c.companyFormPages : null,
7345
7360
  [c == null ? void 0 : c.companyFormPages]
7346
7361
  ), N = De(() => {
7347
- const u = new Set(zt), I = c == null ? void 0 : c.companyFormRequiredFields;
7348
- 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);
7349
7364
  if (v)
7350
- for (const P of v)
7351
- for (const m of P.fields)
7365
+ for (const D of v)
7366
+ for (const m of D.fields)
7352
7367
  !m.isCustom && m.name && m.required && u.add(m.name);
7353
7368
  return Array.from(u);
7354
7369
  }, [c == null ? void 0 : c.companyFormRequiredFields, v]), B = De(() => {
7355
7370
  var u;
7356
7371
  if (v) {
7357
- const I = v.flatMap((m) => m.fields).filter((m) => !m.isCustom && m.name).map((m) => m.name), P = new Set(I);
7358
- for (const m of zt) P.add(m);
7359
- 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);
7360
7375
  }
7361
- return (u = i.applicantForm) != null && u.visibleFields ? i.applicantForm.visibleFields : c != null && c.companyFormVisibleFields && c.companyFormVisibleFields.length > 0 ? c.companyFormVisibleFields : dr;
7362
- }, [(X = i.applicantForm) == null ? void 0 : X.visibleFields, c == null ? void 0 : c.companyFormVisibleFields, v]), Y = /* @__PURE__ */ new Set(["countryResidence", "addressCountry"]), M = De(() => {
7363
- 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;
7364
7379
  const u = /* @__PURE__ */ new Set();
7365
7380
  if (v)
7366
7381
  for (const m of v)
@@ -7368,17 +7383,17 @@ const nn = ({
7368
7383
  !s.isCustom && s.name && Y.has(s.name) && u.add(s.countriesType ?? ((I = st[s.name]) == null ? void 0 : I.countriesType));
7369
7384
  else
7370
7385
  for (const m of B)
7371
- 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);
7372
7387
  return u.size === 0 && u.add(void 0), Array.from(u);
7373
- }, [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());
7374
7389
  fe(() => {
7375
7390
  if (!c) return;
7376
- const u = M.filter((m) => {
7391
+ const u = P.filter((m) => {
7377
7392
  const s = m != null ? String(m) : "all";
7378
7393
  return !$.current.has(s) && !f.current.has(s);
7379
7394
  });
7380
7395
  if (u.length === 0) {
7381
- 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);
7382
7397
  return;
7383
7398
  }
7384
7399
  R(!0);
@@ -7387,22 +7402,22 @@ const nn = ({
7387
7402
  try {
7388
7403
  const m = await Promise.all(
7389
7404
  u.map(async (s) => {
7390
- 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));
7391
- 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];
7392
7407
  })
7393
7408
  );
7394
7409
  Z((s) => ({ ...s, ...Object.fromEntries(m) }));
7395
7410
  } catch (m) {
7396
7411
  I.forEach((s) => f.current.delete(s)), console.error("Failed to load countries:", m);
7397
7412
  } finally {
7398
- 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);
7399
7414
  }
7400
7415
  })();
7401
- }, [M, c]);
7416
+ }, [P, c]);
7402
7417
  const G = (u, I) => {
7403
7418
  var s;
7404
- const P = I ?? ((s = st[u]) == null ? void 0 : s.countriesType), m = P != null ? String(P) : "all";
7405
- 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] || [];
7406
7421
  }, V = {
7407
7422
  companyName: 1,
7408
7423
  registrationNumber: 1,
@@ -7448,21 +7463,21 @@ const nn = ({
7448
7463
  lei: "",
7449
7464
  externalRefId: b,
7450
7465
  ...j
7451
- }), [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) => {
7452
- 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;
7453
7468
  const I = {};
7454
7469
  for (const m of u.fields)
7455
7470
  if (m.isCustom) {
7456
7471
  if (m.customType === "paragraph" || m.customType === "html" || m.customType === "br" || m.customType === "link") continue;
7457
7472
  if (m.required && m.paramName) {
7458
- const s = q[m.paramName], h = m.displayText || m.label || m.paramName;
7459
- 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.`);
7460
7475
  }
7461
7476
  } else if (m.name) {
7462
7477
  const s = m.name;
7463
7478
  if (N.includes(s) && wt(Q[s])) {
7464
- const h = m.displayText || ((P = st[s]) == null ? void 0 : P.label) || s;
7465
- 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.`;
7466
7481
  }
7467
7482
  }
7468
7483
  return I;
@@ -7483,64 +7498,64 @@ const nn = ({
7483
7498
  var u;
7484
7499
  if (v) {
7485
7500
  let I = {};
7486
- for (const P of v)
7487
- ye(P) && (I = { ...I, ...$e(P) });
7501
+ for (const D of v)
7502
+ ye(D) && (I = { ...I, ...$e(D) });
7488
7503
  if (Object.keys(I).length > 0) {
7489
7504
  A(I);
7490
7505
  return;
7491
7506
  }
7492
7507
  }
7493
- he(!0), _(null);
7508
+ ge(!0), _(null);
7494
7509
  try {
7495
7510
  const I = {
7496
7511
  workflowKey: Q.workflowKey,
7497
7512
  externalRefId: ((u = Q.externalRefId) == null ? void 0 : u.trim()) || void 0
7498
- }, P = v ? v.filter((h) => ye(h)).flatMap((h) => h.fields).filter((h) => !h.isCustom && h.name).map((h) => h.name) : B;
7499
- for (const h of P) {
7500
- const D = Q[h];
7501
- if (!wt(D))
7502
- 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) {
7503
7518
  case "companyName":
7504
- I.companyName = D;
7519
+ I.companyName = M;
7505
7520
  break;
7506
7521
  case "email":
7507
- I.companyEmail = D;
7522
+ I.companyEmail = M;
7508
7523
  break;
7509
7524
  case "phone":
7510
- I.companyPhone = D;
7525
+ I.companyPhone = M;
7511
7526
  break;
7512
7527
  case "registrationNumber":
7513
- I.companyRegistrationNumber = D;
7528
+ I.companyRegistrationNumber = M;
7514
7529
  break;
7515
7530
  case "countryResidence":
7516
- I.companyCountry = D;
7531
+ I.companyCountry = M;
7517
7532
  break;
7518
7533
  case "city":
7519
- I.companyCity = D;
7534
+ I.companyCity = M;
7520
7535
  break;
7521
7536
  case "street":
7522
- I.companyStreet = D;
7537
+ I.companyStreet = M;
7523
7538
  break;
7524
7539
  case "postalCode":
7525
- I.companyZip = D;
7540
+ I.companyZip = M;
7526
7541
  break;
7527
7542
  default:
7528
- I[h] = D;
7543
+ I[g] = M;
7529
7544
  break;
7530
7545
  }
7531
7546
  }
7532
7547
  const m = [];
7533
7548
  if (v) {
7534
- for (const h of v)
7535
- if (ye(h))
7536
- for (const D of h.fields) {
7537
- if (!D.isCustom || !D.paramName || D.customType === "paragraph" || D.customType === "html" || D.customType === "br" || D.customType === "link") continue;
7538
- 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] ?? "";
7539
7554
  let C;
7540
- if (D.customType === "checkbox" || D.customType === "link_checkbox")
7555
+ if (M.customType === "checkbox" || M.customType === "link_checkbox")
7541
7556
  C = k === "true" ? "yes" : "no";
7542
- else if (C = k, !C && !D.required) continue;
7543
- m.push({ paramName: D.paramName, value: C });
7557
+ else if (C = k, !C && !M.required) continue;
7558
+ m.push({ paramName: M.paramName, value: C });
7544
7559
  }
7545
7560
  }
7546
7561
  m.length > 0 && (I.applicantAdditionalDatas = m);
@@ -7549,34 +7564,34 @@ const nn = ({
7549
7564
  } catch (I) {
7550
7565
  console.error("Error creating company applicant:", I), _(I.message || "Failed to create company applicant");
7551
7566
  } finally {
7552
- he(!1);
7567
+ ge(!1);
7553
7568
  }
7554
7569
  }, it = async (u) => {
7555
7570
  var I;
7556
7571
  u.preventDefault();
7557
- for (const P of N)
7558
- if (wt(Q[P])) {
7559
- 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;
7560
7575
  _(`${m} is required.`);
7561
7576
  return;
7562
7577
  }
7563
7578
  await je();
7564
- }, Ze = (u, I, P, m, s) => {
7565
- const h = st[u];
7566
- if (!h) return null;
7567
- 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;
7568
- 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) {
7569
7584
  case "select":
7570
7585
  if (u === "countryResidence" || u === "addressCountry") {
7571
7586
  const le = G(u, m);
7572
7587
  return /* @__PURE__ */ r(
7573
7588
  Ye,
7574
7589
  {
7575
- required: D,
7590
+ required: M,
7576
7591
  label: ke,
7577
7592
  value: Q[u] || "",
7578
7593
  onChange: (_e) => E(u, _e),
7579
- options: [{ value: "", label: `Select ${Le.toLowerCase()}` }, ...le],
7594
+ options: [{ value: "", label: `Select ${Pe.toLowerCase()}` }, ...le],
7580
7595
  disabled: ne,
7581
7596
  readOnly: w,
7582
7597
  error: k
@@ -7589,7 +7604,7 @@ const nn = ({
7589
7604
  return /* @__PURE__ */ r(
7590
7605
  be,
7591
7606
  {
7592
- required: D,
7607
+ required: M,
7593
7608
  type: "date",
7594
7609
  label: ke,
7595
7610
  placeholder: se ? void 0 : C,
@@ -7604,7 +7619,7 @@ const nn = ({
7604
7619
  return /* @__PURE__ */ r(
7605
7620
  be,
7606
7621
  {
7607
- required: D,
7622
+ required: M,
7608
7623
  type: "email",
7609
7624
  label: ke,
7610
7625
  placeholder: se ? void 0 : C,
@@ -7619,7 +7634,7 @@ const nn = ({
7619
7634
  return /* @__PURE__ */ r(
7620
7635
  be,
7621
7636
  {
7622
- required: D,
7637
+ required: M,
7623
7638
  type: "tel",
7624
7639
  label: ke,
7625
7640
  placeholder: se ? void 0 : C,
@@ -7634,7 +7649,7 @@ const nn = ({
7634
7649
  return /* @__PURE__ */ r(
7635
7650
  be,
7636
7651
  {
7637
- required: D,
7652
+ required: M,
7638
7653
  type: "text",
7639
7654
  label: ke,
7640
7655
  placeholder: se ? void 0 : C,
@@ -7672,14 +7687,14 @@ const nn = ({
7672
7687
  }
7673
7688
  ) }, `custom-${I}`);
7674
7689
  if (!u.paramName) return null;
7675
- 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;
7676
7691
  return u.customType === "checkbox" ? /* @__PURE__ */ o("div", { className: "flex flex-col gap-1", children: [
7677
7692
  /* @__PURE__ */ o("label", { style: { display: "flex", alignItems: "center", gap: "10px", cursor: "pointer" }, children: [
7678
7693
  /* @__PURE__ */ r(
7679
7694
  Be,
7680
7695
  {
7681
7696
  checked: q[u.paramName] === "true",
7682
- onChange: (h) => ee(u.paramName, h ? "true" : "false")
7697
+ onChange: (g) => ee(u.paramName, g ? "true" : "false")
7683
7698
  }
7684
7699
  ),
7685
7700
  /* @__PURE__ */ o("span", { style: { fontSize: "14px", color: "var(--metakyc-text-primary, #111827)" }, children: [
@@ -7687,7 +7702,7 @@ const nn = ({
7687
7702
  u.required && /* @__PURE__ */ r("span", { className: "text-red-500 ml-0.5", children: "*" })
7688
7703
  ] })
7689
7704
  ] }),
7690
- 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 })
7691
7706
  ] }, `custom-${I}`) : /* @__PURE__ */ r(
7692
7707
  be,
7693
7708
  {
@@ -7695,9 +7710,9 @@ const nn = ({
7695
7710
  label: s ? `${m}${u.required ? " *" : ""}` : void 0,
7696
7711
  placeholder: s ? void 0 : m,
7697
7712
  value: q[u.paramName] || "",
7698
- onChange: (h) => ee(u.paramName, h.target.value),
7713
+ onChange: (g) => ee(u.paramName, g.target.value),
7699
7714
  required: u.required,
7700
- error: P
7715
+ error: D
7701
7716
  },
7702
7717
  `custom-${I}`
7703
7718
  );
@@ -7709,14 +7724,14 @@ const nn = ({
7709
7724
  Be,
7710
7725
  {
7711
7726
  checked: I,
7712
- onChange: (P) => ee(u.conditionalOn, P ? "true" : "false")
7727
+ onChange: (D) => ee(u.conditionalOn, D ? "true" : "false")
7713
7728
  }
7714
7729
  ),
7715
7730
  /* @__PURE__ */ r("span", { style: { fontSize: "14px", fontWeight: 500 }, children: u.conditionalOn })
7716
7731
  ] }),
7717
- I && /* @__PURE__ */ r("div", { style: { display: "grid", gridTemplateColumns: "repeat(4, minmax(0, 1fr))", gap: "1rem" }, children: u.fields.map((P, m) => {
7718
- const s = Math.min(4, Math.max(1, Number(P.colSpan) || 4)), h = P.isCustom ? `custom-${m}-${P.paramName}` : `builtin-${P.name}-${m}`;
7719
- 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);
7720
7735
  }) })
7721
7736
  ] });
7722
7737
  };
@@ -7726,7 +7741,7 @@ const nn = ({
7726
7741
  /* @__PURE__ */ r("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)", fontSize: "0.875rem" }, children: "Loading form…" })
7727
7742
  ] }) }) });
7728
7743
  if (v) {
7729
- 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);
7730
7745
  return /* @__PURE__ */ r("div", { className: "metakyc-sdk", children: /* @__PURE__ */ o(te, { children: [
7731
7746
  /* @__PURE__ */ r(Se, { children: /* @__PURE__ */ r(ut, { title: (c == null ? void 0 : c.title) || "Company Registration" }) }),
7732
7747
  /* @__PURE__ */ o(re, { children: [
@@ -7734,16 +7749,16 @@ const nn = ({
7734
7749
  u.title && /* @__PURE__ */ r("h3", { className: "font-semibold text-base", style: { color: "var(--metakyc-text-primary, #111827)" }, children: u.title }),
7735
7750
  u.subtitle && /* @__PURE__ */ r("p", { className: "text-sm mt-0.5", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: u.subtitle })
7736
7751
  ] }),
7737
- (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: [
7738
7753
  U && /* @__PURE__ */ o("p", { className: "text-red-600 text-sm", children: [
7739
7754
  /* @__PURE__ */ r("strong", { children: "Error:" }),
7740
7755
  " ",
7741
7756
  U
7742
7757
  ] }),
7743
- 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))
7744
7759
  ] }),
7745
7760
  m > 1 && /* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem", marginBottom: "1rem" }, children: [
7746
- v.map((D, k) => /* @__PURE__ */ r(
7761
+ v.map((M, k) => /* @__PURE__ */ r(
7747
7762
  "div",
7748
7763
  {
7749
7764
  style: {
@@ -7779,7 +7794,7 @@ const nn = ({
7779
7794
  ),
7780
7795
  I && n && /* @__PURE__ */ r(J, { type: "button", variant: "outline", onClick: n, disabled: H || y, children: "Cancel" })
7781
7796
  ] }),
7782
- /* @__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" })
7783
7798
  ] })
7784
7799
  ] }) });
7785
7800
  }
@@ -7798,7 +7813,7 @@ const nn = ({
7798
7813
  /* @__PURE__ */ r(J, { type: "submit", isLoading: H || y, children: "Register Company" })
7799
7814
  ] })
7800
7815
  ] }) }) });
7801
- }, on = ({
7816
+ }, sn = ({
7802
7817
  applicantId: e,
7803
7818
  onComplete: t,
7804
7819
  onError: a,
@@ -7815,7 +7830,7 @@ const nn = ({
7815
7830
  error: F,
7816
7831
  moveBack: S,
7817
7832
  refreshProgress: T
7818
- } = Gr(e), [L, v] = we.useState(!1), N = we.useRef(null);
7833
+ } = Jr(e), [L, v] = we.useState(!1), N = we.useRef(null);
7819
7834
  if (we.useEffect(() => {
7820
7835
  F && a && a(F);
7821
7836
  }, [F, a]), we.useEffect(() => {
@@ -7863,7 +7878,7 @@ const nn = ({
7863
7878
  ] }) }) }) });
7864
7879
  if (i.status === Oe.Finished || i.status === Oe.OnHold)
7865
7880
  return /* @__PURE__ */ r("div", { className: `metakyc-sdk ${n || ""}`, children: /* @__PURE__ */ r(
7866
- Dt,
7881
+ Mt,
7867
7882
  {
7868
7883
  kycStatus: i.kycStatus,
7869
7884
  reviewStatus: i.reviewStatus,
@@ -7880,8 +7895,8 @@ const nn = ({
7880
7895
  /* @__PURE__ */ r(Me, { className: "my-8" }),
7881
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..." })
7882
7897
  ] }) }) });
7883
- const B = (O) => {
7884
- switch (O) {
7898
+ const B = (z) => {
7899
+ switch (z) {
7885
7900
  case ce.Overview:
7886
7901
  return "Overview";
7887
7902
  case ce.Questionaries:
@@ -7904,7 +7919,7 @@ const nn = ({
7904
7919
  return "";
7905
7920
  }
7906
7921
  }, Y = () => {
7907
- 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 + 1) / R * 100 : 100;
7908
7923
  return /* @__PURE__ */ o("div", { style: {
7909
7924
  marginBottom: "24px",
7910
7925
  backgroundColor: "var(--metakyc-surface, var(--metakyc-background, #ffffff))",
@@ -7915,7 +7930,7 @@ const nn = ({
7915
7930
  }, children: [
7916
7931
  /* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "flex-start", justifyContent: "space-between", marginBottom: "16px" }, children: [
7917
7932
  /* @__PURE__ */ r(ut, {}),
7918
- /* @__PURE__ */ o(_t, { variant: i.status === 1 ? "info" : "success", children: [
7933
+ /* @__PURE__ */ o(jt, { variant: i.status === 1 ? "info" : "success", children: [
7919
7934
  "Step ",
7920
7935
  ne,
7921
7936
  " of ",
@@ -7935,17 +7950,17 @@ const nn = ({
7935
7950
  transition: "width 0.4s ease"
7936
7951
  } }) }) }),
7937
7952
  /* @__PURE__ */ r(
7938
- $a,
7953
+ Ba,
7939
7954
  {
7940
7955
  ref: N,
7941
- visibleSteps: O,
7956
+ visibleSteps: z,
7942
7957
  currentVisibleStepIndex: Z,
7943
7958
  getStepFallbackName: B
7944
7959
  }
7945
7960
  )
7946
7961
  ] });
7947
- }, M = () => {
7948
- const O = {
7962
+ }, P = () => {
7963
+ const z = {
7949
7964
  applicantId: e,
7950
7965
  onComplete: async () => {
7951
7966
  await T();
@@ -7954,23 +7969,23 @@ const nn = ({
7954
7969
  };
7955
7970
  switch (l.action) {
7956
7971
  case ce.Questionaries:
7957
- return /* @__PURE__ */ r(ka, { ...O });
7972
+ return /* @__PURE__ */ r(ba, { ...z });
7958
7973
  case ce.UploadDocument:
7959
- return /* @__PURE__ */ r(va, { ...O });
7974
+ return /* @__PURE__ */ r(wa, { ...z });
7960
7975
  case ce.Overview:
7961
- return /* @__PURE__ */ r(wa, { ...O });
7976
+ return /* @__PURE__ */ r(Sa, { ...z });
7962
7977
  case ce.IdentitySdk:
7963
- return /* @__PURE__ */ r(Ma, { ...O });
7978
+ return /* @__PURE__ */ r(za, { ...z });
7964
7979
  case ce.RiskScoring:
7965
- return /* @__PURE__ */ r(Fa, { ...O });
7980
+ return /* @__PURE__ */ r(Aa, { ...z });
7966
7981
  case ce.AdditionalData:
7967
7982
  case ce.InvestorCategorization:
7968
- return /* @__PURE__ */ r(Ta, { ...O });
7983
+ return /* @__PURE__ */ r(La, { ...z });
7969
7984
  case ce.AppropriatenessTest:
7970
- return /* @__PURE__ */ r(La, { ...O });
7985
+ return /* @__PURE__ */ r(Pa, { ...z });
7971
7986
  case ce.ManualReview:
7972
7987
  return /* @__PURE__ */ r(
7973
- Dt,
7988
+ Mt,
7974
7989
  {
7975
7990
  kycStatus: i.kycStatus,
7976
7991
  reviewStatus: i.reviewStatus,
@@ -7994,9 +8009,9 @@ const nn = ({
7994
8009
  };
7995
8010
  return /* @__PURE__ */ o("div", { className: `metakyc-sdk ${n || ""}`, children: [
7996
8011
  Y(),
7997
- M()
8012
+ P()
7998
8013
  ] });
7999
- }, $a = we.forwardRef(
8014
+ }, Ba = we.forwardRef(
8000
8015
  ({ visibleSteps: e, currentVisibleStepIndex: t, getStepFallbackName: a }, n) => {
8001
8016
  const i = we.useRef(null), l = we.useRef(null);
8002
8017
  return we.useImperativeHandle(n, () => i.current), we.useEffect(() => {
@@ -8082,12 +8097,12 @@ const nn = ({
8082
8097
  );
8083
8098
  }
8084
8099
  );
8085
- function sn(e) {
8100
+ function ln(e) {
8086
8101
  return Ve.object({
8087
8102
  questionResults: Ve.any()
8088
8103
  }).passthrough();
8089
8104
  }
8090
- function Ba(e) {
8105
+ function _a(e) {
8091
8106
  let t = Ve.array(Ve.instanceof(File));
8092
8107
  if (e.isRequired ? t = t.min(
8093
8108
  1,
@@ -8109,38 +8124,38 @@ function Ba(e) {
8109
8124
  }
8110
8125
  return t;
8111
8126
  }
8112
- function ln(e) {
8127
+ function cn(e) {
8113
8128
  const t = {};
8114
8129
  return e.uploadDocumentFiles.forEach((a) => {
8115
8130
  const n = `file_${a.id}`;
8116
- t[n] = Ba(a);
8131
+ t[n] = _a(a);
8117
8132
  }), Ve.object(t);
8118
8133
  }
8119
- function cn(e) {
8134
+ function dn(e) {
8120
8135
  return Ve.any();
8121
8136
  }
8122
- function _a(e) {
8137
+ function ja(e) {
8123
8138
  return Ve.string().min(1, "This question is required");
8124
8139
  }
8125
- function dn(e) {
8140
+ function mn(e) {
8126
8141
  const t = {};
8127
8142
  return e.appropriatenessQuestions.forEach((a) => {
8128
8143
  const n = `question_${a.id}`;
8129
- t[n] = _a();
8144
+ t[n] = ja();
8130
8145
  }), Ve.object(t);
8131
8146
  }
8132
- const mn = Ve.any();
8147
+ const pn = Ve.any();
8133
8148
  export {
8134
8149
  Et as ALLOWED_LANGUAGES,
8135
- Zt as ApplicantProgressOnHoldReason,
8150
+ er as ApplicantProgressOnHoldReason,
8136
8151
  Oe as ApplicantProgressStatus,
8137
8152
  gr as ApplicantService,
8138
- tr as ApplicantStatus,
8139
- or as AppropriatenessQuestionType,
8140
- kr as AppropriatenessTestService,
8141
- La as AppropriatenessTestStep,
8142
- _t as Badge,
8143
- 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,
8144
8159
  J as Button,
8145
8160
  st as COMPANY_FIELD_METADATA,
8146
8161
  te as Card,
@@ -8149,106 +8164,106 @@ export {
8149
8164
  Se as CardHeader,
8150
8165
  Be as Checkbox,
8151
8166
  Xe as CountriesType,
8152
- an as CreateApplicantForm,
8153
- nn as CreateCompanyApplicantForm,
8154
- lr as CriteriaBuiltInType,
8155
- dr as DEFAULT_COMPANY_VISIBLE_FIELDS,
8156
- mr as DEFAULT_VISIBLE_FIELDS,
8157
- ir as DocumentReviewStatus,
8158
- 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,
8159
8174
  mt as ErrorHandler,
8160
- Tr as EventEmitter,
8175
+ Lr as EventEmitter,
8161
8176
  nt as FIELD_METADATA,
8162
- nr as FileType,
8163
- sa as FileUpload,
8177
+ ir as FileType,
8178
+ la as FileUpload,
8164
8179
  kt as GenderType,
8165
8180
  ut as Header,
8166
- yr as HttpClient,
8181
+ hr as HttpClient,
8167
8182
  Je as IdentityProviderManager,
8168
- vr as IdentityService,
8183
+ wr as IdentityService,
8169
8184
  ze as IdentityVerificationProvider,
8170
- Ma as IdentityVerificationStep,
8185
+ za as IdentityVerificationStep,
8171
8186
  be as Input,
8172
- Sr as InvestorCategorizationService,
8173
- Ta as InvestorCategorizationStep,
8187
+ Cr as InvestorCategorizationService,
8188
+ La as InvestorCategorizationStep,
8174
8189
  Ee as InvestorCategorizationType,
8175
- cr as InvestorCategoryType,
8176
- rr as KycProcessStatus,
8190
+ dr as InvestorCategoryType,
8191
+ ar as KycProcessStatus,
8177
8192
  rt as KycStatus,
8178
- Dt as KycStatusDisplay,
8179
- on as KycWorkflow,
8180
- za as Logo,
8181
- $t as MetaKYCContext,
8193
+ Mt as KycStatusDisplay,
8194
+ sn as KycWorkflow,
8195
+ Oa as Logo,
8196
+ Bt as MetaKYCContext,
8182
8197
  Ke as MetaKYCError,
8183
- Ga as MetaKYCProvider,
8184
- ia as MultiSelect,
8185
- $r as OnfidoProvider,
8186
- br as OverviewService,
8187
- wa as OverviewStep,
8188
- la as PhoneInput,
8189
- hr as QuestionnaireService,
8190
- 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,
8191
8206
  at as ReviewStatus,
8192
- sr as RiskCriteriaType,
8193
- er as RiskLevel,
8194
- xr as RiskScoringService,
8195
- Fa as RiskScoringStep,
8196
- jr as SDK_VERSION,
8197
- 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,
8198
8213
  Ye as SearchableSelect,
8199
8214
  Nt as Select,
8200
8215
  Me as Spinner,
8201
- Pr as StepRouter,
8202
- Or as SumsubProvider,
8203
- _r as ThemeManager,
8204
- Fe as ThemePreset,
8205
- Ar as ThemeService,
8206
- fr as UploadDocumentService,
8207
- va as UploadDocumentStep,
8208
- 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,
8209
8224
  qe as ValueDataType,
8210
- Dr as WorkflowOrchestrator,
8225
+ Mr as WorkflowOrchestrator,
8211
8226
  ft as WorkflowResultType,
8212
- Lr as WorkflowState,
8227
+ Pr as WorkflowState,
8213
8228
  ce as WorkflowStepAction,
8214
- mn as appropriatenessTestSchema,
8215
- tn as clearAllStorage,
8216
- Yr as clearApplicantId,
8217
- Qr as clearWorkflowState,
8218
- Ae as cn,
8219
- Cr as corporateTheme,
8220
- pr as defaultConfig,
8221
- Pe as defaultTheme,
8222
- Ur as fileToBase64,
8223
- 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,
8224
8239
  xt as formatFileSize,
8225
- dn as generateAppropriatenessSchema,
8226
- sn as generateQuestionnaireSchema,
8227
- cn as generateRiskScoringSchema,
8228
- ln as generateUploadDocumentSchema,
8229
- Za as getAcceptString,
8230
- 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,
8231
8246
  pt as getThemePreset,
8232
- en as getWorkflowState,
8233
- Ir as healthcareTheme,
8234
- Va as isScriptLoaded,
8235
- Ot as loadScript,
8236
- Er as minimalTheme,
8237
- Rr as modernTheme,
8238
- Qa as removeScript,
8239
- Kr as saveApplicantId,
8240
- Vr as saveWorkflowState,
8241
- Fr as themePresets,
8242
- Bt as useApplicant,
8243
- rn as useAppropriatenessTest,
8244
- ea as useIdentityVerification,
8245
- Gr as useKycWorkflow,
8246
- Te as useMetaKYC,
8247
- Zr as useOverview,
8248
- Jr as useQuestionnaire,
8249
- ta as useRiskScoring,
8250
- Xr as useUploadDocument,
8251
- Ja as validateFileSize,
8252
- 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
8253
8268
  };
8254
8269
  //# sourceMappingURL=index.js.map