@vpdev2/metakyc 1.0.28 → 1.0.30

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 sr = Object.defineProperty;
2
- var lr = (e, t, i) => t in e ? sr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
3
- var fe = (e, t, i) => lr(e, typeof t != "symbol" ? t + "" : t, i);
4
- import cr from "axios";
5
- import { jsx as r, jsxs as s, Fragment as ut } from "react/jsx-runtime";
1
+ var lr = Object.defineProperty;
2
+ var cr = (e, t, i) => t in e ? lr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
3
+ var fe = (e, t, i) => cr(e, typeof t != "symbol" ? t + "" : t, i);
4
+ import dr from "axios";
5
+ import { jsx as r, jsxs as o, Fragment as ut } from "react/jsx-runtime";
6
6
  import * as Et from "react";
7
7
  import Se, { createContext as _t, useMemo as Me, useState as b, useEffect as ke, useContext as Gt, useCallback as te, useRef as me, forwardRef as kt, createElement as Tt } from "react";
8
- import dr, { createPortal as zt } from "react-dom";
9
- import { useForm as mr, Controller as at } from "react-hook-form";
8
+ import mr, { createPortal as zt } from "react-dom";
9
+ import { useForm as ur, Controller as at } from "react-hook-form";
10
10
  import { z as Xe } from "zod";
11
- var de = /* @__PURE__ */ ((e) => (e[e.IdentitySdk = 0] = "IdentitySdk", e[e.RiskScoring = 1] = "RiskScoring", e[e.Questionaries = 2] = "Questionaries", e[e.AdditionalData = 3] = "AdditionalData", e[e.AppropriatenessTest = 4] = "AppropriatenessTest", e[e.UploadDocument = 5] = "UploadDocument", e[e.ManualReview = 6] = "ManualReview", e[e.Overview = 7] = "Overview", e[e.InvestorCategorization = 8] = "InvestorCategorization", e))(de || {}), bt = /* @__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))(bt || {}), qe = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.InProgress = 1] = "InProgress", e[e.Finished = 2] = "Finished", e[e.OnHold = 3] = "OnHold", e[e.IdentityPending = 4] = "IdentityPending", e))(qe || {}), ur = /* @__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))(ur || {}), pr = /* @__PURE__ */ ((e) => (e[e.LowRisk = 0] = "LowRisk", e[e.MediumRisk = 1] = "MediumRisk", e[e.HighRisk = 2] = "HighRisk", e[e.Alert = 3] = "Alert", e))(pr || {}), nt = /* @__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))(nt || {}), ot = /* @__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))(ot || {}), gr = /* @__PURE__ */ ((e) => (e[e.ProviderResultPending = 0] = "ProviderResultPending", e[e.ProviderResultReceived = 1] = "ProviderResultReceived", e[e.Canceled = 2] = "Canceled", e[e.ExtendedToNewApplicant = 3] = "ExtendedToNewApplicant", e))(gr || {}), yr = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.ProviderResultPending = 1] = "ProviderResultPending", e[e.ProviderResultReceived = 2] = "ProviderResultReceived", e[e.Canceled = 3] = "Canceled", e))(yr || {}), Be = /* @__PURE__ */ ((e) => (e[e.Onfido = 0] = "Onfido", e[e.Sumsub = 2] = "Sumsub", e[e.SardinAI = 3] = "SardinAI", e))(Be || {}), fr = /* @__PURE__ */ ((e) => (e[e.Individual = 0] = "Individual", e[e.Company = 1] = "Company", e))(fr || {}), xt = /* @__PURE__ */ ((e) => (e[e.Male = 0] = "Male", e[e.Female = 1] = "Female", e[e.Other = 2] = "Other", e))(xt || {}), kr = /* @__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))(kr || {}), hr = /* @__PURE__ */ ((e) => (e[e.Pending = 0] = "Pending", e[e.Approved = 1] = "Approved", e[e.Rejected = 2] = "Rejected", e[e.RequiresRevision = 3] = "RequiresRevision", e))(hr || {}), vr = /* @__PURE__ */ ((e) => (e[e.SingleChoice = 0] = "SingleChoice", e[e.MultipleChoice = 1] = "MultipleChoice", e[e.Text = 2] = "Text", e))(vr || {}), Ge = /* @__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))(Ge || {}), br = /* @__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))(br || {}), xr = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Country = 1] = "Country", e))(xr || {}), Le = /* @__PURE__ */ ((e) => (e[e.Individual = 0] = "Individual", e[e.Sophisticated = 1] = "Sophisticated", e[e.HighNetWorth = 2] = "HighNetWorth", e[e.Business = 3] = "Business", e))(Le || {}), wr = /* @__PURE__ */ ((e) => (e[e.Retail = 0] = "Retail", e[e.Professional = 1] = "Professional", e[e.EligibleCounterparty = 2] = "EligibleCounterparty", e))(wr || {});
11
+ var de = /* @__PURE__ */ ((e) => (e[e.IdentitySdk = 0] = "IdentitySdk", e[e.RiskScoring = 1] = "RiskScoring", e[e.Questionaries = 2] = "Questionaries", e[e.AdditionalData = 3] = "AdditionalData", e[e.AppropriatenessTest = 4] = "AppropriatenessTest", e[e.UploadDocument = 5] = "UploadDocument", e[e.ManualReview = 6] = "ManualReview", e[e.Overview = 7] = "Overview", e[e.InvestorCategorization = 8] = "InvestorCategorization", e))(de || {}), bt = /* @__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))(bt || {}), qe = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.InProgress = 1] = "InProgress", e[e.Finished = 2] = "Finished", e[e.OnHold = 3] = "OnHold", e[e.IdentityPending = 4] = "IdentityPending", e))(qe || {}), pr = /* @__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))(pr || {}), gr = /* @__PURE__ */ ((e) => (e[e.LowRisk = 0] = "LowRisk", e[e.MediumRisk = 1] = "MediumRisk", e[e.HighRisk = 2] = "HighRisk", e[e.Alert = 3] = "Alert", e))(gr || {}), nt = /* @__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))(nt || {}), ot = /* @__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))(ot || {}), yr = /* @__PURE__ */ ((e) => (e[e.ProviderResultPending = 0] = "ProviderResultPending", e[e.ProviderResultReceived = 1] = "ProviderResultReceived", e[e.Canceled = 2] = "Canceled", e[e.ExtendedToNewApplicant = 3] = "ExtendedToNewApplicant", e))(yr || {}), fr = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.ProviderResultPending = 1] = "ProviderResultPending", e[e.ProviderResultReceived = 2] = "ProviderResultReceived", e[e.Canceled = 3] = "Canceled", e))(fr || {}), Be = /* @__PURE__ */ ((e) => (e[e.Onfido = 0] = "Onfido", e[e.Sumsub = 2] = "Sumsub", e[e.SardinAI = 3] = "SardinAI", e))(Be || {}), kr = /* @__PURE__ */ ((e) => (e[e.Individual = 0] = "Individual", e[e.Company = 1] = "Company", e))(kr || {}), xt = /* @__PURE__ */ ((e) => (e[e.Male = 0] = "Male", e[e.Female = 1] = "Female", e[e.Other = 2] = "Other", e))(xt || {}), hr = /* @__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))(hr || {}), vr = /* @__PURE__ */ ((e) => (e[e.Pending = 0] = "Pending", e[e.Approved = 1] = "Approved", e[e.Rejected = 2] = "Rejected", e[e.RequiresRevision = 3] = "RequiresRevision", e))(vr || {}), br = /* @__PURE__ */ ((e) => (e[e.SingleChoice = 0] = "SingleChoice", e[e.MultipleChoice = 1] = "MultipleChoice", e[e.Text = 2] = "Text", e))(br || {}), Ge = /* @__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))(Ge || {}), xr = /* @__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))(xr || {}), wr = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Country = 1] = "Country", e))(wr || {}), Le = /* @__PURE__ */ ((e) => (e[e.Individual = 0] = "Individual", e[e.Sophisticated = 1] = "Sophisticated", e[e.HighNetWorth = 2] = "HighNetWorth", e[e.Business = 3] = "Business", e))(Le || {}), Sr = /* @__PURE__ */ ((e) => (e[e.Retail = 0] = "Retail", e[e.Professional = 1] = "Professional", e[e.EligibleCounterparty = 2] = "EligibleCounterparty", e))(Sr || {});
12
12
  const tt = {
13
13
  Nationality: 10,
14
14
  Address: 20,
@@ -58,12 +58,12 @@ const tt = {
58
58
  postalCode: { label: "Postal Code", type: "text" },
59
59
  addressCountry: { label: "Address Country", type: "select", countriesType: tt.Address },
60
60
  lei: { label: "LEI", type: "text" }
61
- }, Sr = [
61
+ }, Cr = [
62
62
  "companyName",
63
63
  "email",
64
64
  "phone",
65
65
  "registrationNumber"
66
- ], Cr = [
66
+ ], Nr = [
67
67
  "firstName",
68
68
  "lastName",
69
69
  "email",
@@ -89,7 +89,7 @@ const tt = {
89
89
  { value: "NO", label: "Norwegian" }
90
90
  ];
91
91
  var Pe = /* @__PURE__ */ ((e) => (e.Default = "default", e.Corporate = "corporate", e.Fintech = "fintech", e.Healthcare = "healthcare", e.Modern = "modern", e.Minimal = "minimal", e))(Pe || {});
92
- const Nr = {
92
+ const Tr = {
93
93
  timeout: 3e4,
94
94
  retries: 3,
95
95
  locale: "en",
@@ -97,7 +97,7 @@ const Nr = {
97
97
  pattern: "host-controller"
98
98
  }
99
99
  };
100
- class Tr {
100
+ class Rr {
101
101
  constructor(t) {
102
102
  this.config = t;
103
103
  }
@@ -138,10 +138,10 @@ class Tr {
138
138
  }
139
139
  }
140
140
  class _e extends Error {
141
- constructor(i, a, n, l, o) {
141
+ constructor(i, a, n, l, s) {
142
142
  super(i);
143
143
  fe(this, "response");
144
- this.code = a, this.details = n, this.validationErrors = l, this.name = "MetaKYCError", this.response = o, Object.setPrototypeOf(this, _e.prototype);
144
+ this.code = a, this.details = n, this.validationErrors = l, this.name = "MetaKYCError", this.response = s, Object.setPrototypeOf(this, _e.prototype);
145
145
  }
146
146
  }
147
147
  class gt {
@@ -194,12 +194,12 @@ class gt {
194
194
  return t instanceof _e;
195
195
  }
196
196
  }
197
- class Rr {
197
+ class Ir {
198
198
  constructor(t) {
199
199
  fe(this, "axiosInstance");
200
200
  fe(this, "endpointBuilder");
201
201
  fe(this, "config");
202
- this.config = { ...Nr, ...t }, this.endpointBuilder = new Tr(this.config.endpoints), this.axiosInstance = cr.create({
202
+ this.config = { ...Tr, ...t }, this.endpointBuilder = new Rr(this.config.endpoints), this.axiosInstance = dr.create({
203
203
  baseURL: this.config.baseUrl,
204
204
  timeout: this.config.timeout,
205
205
  headers: {
@@ -295,7 +295,7 @@ class Rr {
295
295
  return this.axiosInstance;
296
296
  }
297
297
  }
298
- class Ir {
298
+ class zr {
299
299
  constructor(t) {
300
300
  this.httpClient = t;
301
301
  }
@@ -414,7 +414,7 @@ class Ir {
414
414
  )).result;
415
415
  }
416
416
  }
417
- class zr {
417
+ class Ar {
418
418
  constructor(t) {
419
419
  this.httpClient = t;
420
420
  }
@@ -441,7 +441,7 @@ class zr {
441
441
  )).result;
442
442
  }
443
443
  }
444
- class Ar {
444
+ class Lr {
445
445
  constructor(t) {
446
446
  this.httpClient = t;
447
447
  }
@@ -469,7 +469,7 @@ class Ar {
469
469
  await this.httpClient.post("UploadDocument", "ReviewUploadDocument", t);
470
470
  }
471
471
  }
472
- class Lr {
472
+ class Er {
473
473
  constructor(t) {
474
474
  this.httpClient = t;
475
475
  }
@@ -495,7 +495,7 @@ class Lr {
495
495
  )).result;
496
496
  }
497
497
  }
498
- class Er {
498
+ class Pr {
499
499
  constructor(t) {
500
500
  this.httpClient = t;
501
501
  }
@@ -517,7 +517,7 @@ class Er {
517
517
  await this.httpClient.get("Applicant", "PassOverview", { applicantId: t });
518
518
  }
519
519
  }
520
- class Pr {
520
+ class Dr {
521
521
  constructor(t) {
522
522
  this.httpClient = t;
523
523
  }
@@ -552,7 +552,7 @@ class Pr {
552
552
  )).result;
553
553
  }
554
554
  }
555
- class Dr {
555
+ class jr {
556
556
  constructor(t) {
557
557
  this.httpClient = t;
558
558
  }
@@ -620,7 +620,7 @@ class Dr {
620
620
  return console.log("[IdentityService] Sumsub token refresh result:", i), i.result.accessToken;
621
621
  }
622
622
  }
623
- class jr {
623
+ class Mr {
624
624
  constructor(t) {
625
625
  this.httpClient = t;
626
626
  }
@@ -656,7 +656,7 @@ class jr {
656
656
  )).result;
657
657
  }
658
658
  }
659
- class Mr {
659
+ class Fr {
660
660
  constructor(t) {
661
661
  this.httpClient = t;
662
662
  }
@@ -741,7 +741,7 @@ const Ee = {
741
741
  textMuted: "#9ca3af"
742
742
  }
743
743
  }
744
- }, Fr = {
744
+ }, Or = {
745
745
  name: "Corporate",
746
746
  logo: {
747
747
  url: "",
@@ -774,7 +774,7 @@ const Ee = {
774
774
  cardPadding: "1.5rem",
775
775
  inputHeight: "2.5rem"
776
776
  }
777
- }, Or = {
777
+ }, Vr = {
778
778
  name: "Fintech",
779
779
  logo: {
780
780
  url: "",
@@ -807,7 +807,7 @@ const Ee = {
807
807
  cardPadding: "2rem",
808
808
  inputHeight: "3rem"
809
809
  }
810
- }, Vr = {
810
+ }, Br = {
811
811
  name: "Healthcare",
812
812
  logo: {
813
813
  url: "",
@@ -849,7 +849,7 @@ const Ee = {
849
849
  textSecondary: "#CBD5E1"
850
850
  }
851
851
  }
852
- }, Br = {
852
+ }, qr = {
853
853
  name: "Modern",
854
854
  logo: {
855
855
  url: "",
@@ -882,7 +882,7 @@ const Ee = {
882
882
  cardPadding: "2rem",
883
883
  inputHeight: "3rem"
884
884
  }
885
- }, qr = {
885
+ }, Ur = {
886
886
  name: "Minimal",
887
887
  logo: {
888
888
  url: "",
@@ -915,18 +915,18 @@ const Ee = {
915
915
  cardPadding: "1.25rem",
916
916
  inputHeight: "2.25rem"
917
917
  }
918
- }, Ur = {
918
+ }, Wr = {
919
919
  [Pe.Default]: Ee,
920
- [Pe.Corporate]: Fr,
921
- [Pe.Fintech]: Or,
922
- [Pe.Healthcare]: Vr,
923
- [Pe.Modern]: Br,
924
- [Pe.Minimal]: qr
920
+ [Pe.Corporate]: Or,
921
+ [Pe.Fintech]: Vr,
922
+ [Pe.Healthcare]: Br,
923
+ [Pe.Modern]: qr,
924
+ [Pe.Minimal]: Ur
925
925
  };
926
926
  function yt(e) {
927
- return Ur[e] || Ee;
927
+ return Wr[e] || Ee;
928
928
  }
929
- class Wr {
929
+ class Kr {
930
930
  constructor(t) {
931
931
  this.httpClient = t;
932
932
  }
@@ -952,12 +952,12 @@ class Wr {
952
952
  try {
953
953
  const n = typeof i.result.applicantFormPages == "string" ? JSON.parse(i.result.applicantFormPages) : i.result.applicantFormPages;
954
954
  Array.isArray(n) && n.length > 0 && (a.applicantFormPages = n.map((l) => {
955
- const o = !l._v || l._v < 4;
955
+ const s = !l._v || l._v < 4;
956
956
  return {
957
957
  ...l,
958
958
  fields: (l.fields || []).map((p) => ({
959
959
  ...p,
960
- colSpan: o ? p.colSpan === 1 ? 2 : 4 : Math.min(4, Math.max(1, p.colSpan ?? 4))
960
+ colSpan: s ? p.colSpan === 1 ? 2 : 4 : Math.min(4, Math.max(1, p.colSpan ?? 4))
961
961
  }))
962
962
  };
963
963
  }));
@@ -973,12 +973,12 @@ class Wr {
973
973
  try {
974
974
  const n = typeof i.result.companyFormPages == "string" ? JSON.parse(i.result.companyFormPages) : i.result.companyFormPages;
975
975
  Array.isArray(n) && n.length > 0 && (a.companyFormPages = n.map((l) => {
976
- const o = !l._v || l._v < 4;
976
+ const s = !l._v || l._v < 4;
977
977
  return {
978
978
  ...l,
979
979
  fields: (l.fields || []).map((p) => ({
980
980
  ...p,
981
- colSpan: o ? p.colSpan === 1 ? 2 : 4 : Math.min(4, Math.max(1, p.colSpan ?? 4))
981
+ colSpan: s ? p.colSpan === 1 ? 2 : 4 : Math.min(4, Math.max(1, p.colSpan ?? 4))
982
982
  }))
983
983
  };
984
984
  }));
@@ -1029,7 +1029,7 @@ class Wr {
1029
1029
  } : a;
1030
1030
  }
1031
1031
  }
1032
- class Kr {
1032
+ class Yr {
1033
1033
  constructor(t) {
1034
1034
  this.httpClient = t;
1035
1035
  }
@@ -1046,7 +1046,7 @@ class Kr {
1046
1046
  }
1047
1047
  }
1048
1048
  }
1049
- class Yr {
1049
+ class Hr {
1050
1050
  constructor() {
1051
1051
  fe(this, "listeners", /* @__PURE__ */ new Map());
1052
1052
  }
@@ -1091,9 +1091,9 @@ class Yr {
1091
1091
  this.listeners.delete(t);
1092
1092
  }
1093
1093
  }
1094
- class Hr {
1094
+ class $r {
1095
1095
  constructor() {
1096
- fe(this, "events", new Yr());
1096
+ fe(this, "events", new Hr());
1097
1097
  fe(this, "_applicantId", null);
1098
1098
  fe(this, "_progress", null);
1099
1099
  fe(this, "_error", null);
@@ -1231,7 +1231,7 @@ class Hr {
1231
1231
  this.events.clear();
1232
1232
  }
1233
1233
  }
1234
- class $r {
1234
+ class _r {
1235
1235
  constructor() {
1236
1236
  fe(this, "handlers", /* @__PURE__ */ new Map());
1237
1237
  }
@@ -1272,11 +1272,11 @@ class $r {
1272
1272
  return a.submitData(i);
1273
1273
  }
1274
1274
  }
1275
- class _r {
1276
- constructor(t, i, a, n, l, o, p, u) {
1275
+ class Gr {
1276
+ constructor(t, i, a, n, l, s, p, u) {
1277
1277
  fe(this, "state");
1278
1278
  fe(this, "stepRouter");
1279
- this.applicantService = t, this.questionnaireService = i, this.uploadDocumentService = a, this.appropriatenessTestService = n, this.overviewService = l, this.riskScoringService = o, this.investorCategorizationService = u, this.state = new Hr(), this.stepRouter = new $r(), this.registerStepHandlers();
1279
+ this.applicantService = t, this.questionnaireService = i, this.uploadDocumentService = a, this.appropriatenessTestService = n, this.overviewService = l, this.riskScoringService = s, this.investorCategorizationService = u, this.state = new $r(), this.stepRouter = new _r(), this.registerStepHandlers();
1280
1280
  }
1281
1281
  /**
1282
1282
  * Register all step handlers
@@ -1433,7 +1433,7 @@ function za(e) {
1433
1433
  const t = document.getElementById(e);
1434
1434
  t && t.remove();
1435
1435
  }
1436
- const Gr = "https://static.sumsub.com/idensic/static/sns-websdk-builder.js";
1436
+ const Qr = "https://static.sumsub.com/idensic/static/sns-websdk-builder.js";
1437
1437
  function $e(e, t) {
1438
1438
  try {
1439
1439
  const i = document.querySelector(".metakyc-sdk") || document.documentElement;
@@ -1442,8 +1442,8 @@ function $e(e, t) {
1442
1442
  return t;
1443
1443
  }
1444
1444
  }
1445
- function Qr() {
1446
- const e = $e("--metakyc-primary", "#2563eb"), t = $e("--metakyc-primary-hover", "#1d4ed8"), i = $e("--metakyc-background", "#ffffff"), a = $e("--metakyc-surface", "#f9fafb"), n = $e("--metakyc-text-primary", "#111827"), l = $e("--metakyc-text-secondary", "#6b7280"), o = $e("--metakyc-text-muted", "#9ca3af"), p = $e("--metakyc-border", "#e5e7eb");
1445
+ function Xr() {
1446
+ const e = $e("--metakyc-primary", "#2563eb"), t = $e("--metakyc-primary-hover", "#1d4ed8"), i = $e("--metakyc-background", "#ffffff"), a = $e("--metakyc-surface", "#f9fafb"), n = $e("--metakyc-text-primary", "#111827"), l = $e("--metakyc-text-secondary", "#6b7280"), s = $e("--metakyc-text-muted", "#9ca3af"), p = $e("--metakyc-border", "#e5e7eb");
1447
1447
  return `
1448
1448
  body, html { font-family: ${$e(
1449
1449
  "--metakyc-font-family",
@@ -1464,12 +1464,12 @@ button.back:hover { background-color: ${a}; }
1464
1464
  .upload-item, .document-status { border-color: ${p} !important; }
1465
1465
  select { background-color: ${i}; color: ${n}; border: 1px solid ${p}; border-radius: 6px; }
1466
1466
  .description { color: ${l}; }
1467
- .subtitle { color: ${o}; }
1467
+ .subtitle { color: ${s}; }
1468
1468
  a { color: ${e}; }
1469
1469
  a:hover { color: ${t}; }
1470
1470
  `.trim();
1471
1471
  }
1472
- class Xr {
1472
+ class Zr {
1473
1473
  constructor(t) {
1474
1474
  fe(this, "sdk", null);
1475
1475
  fe(this, "config");
@@ -1478,7 +1478,7 @@ class Xr {
1478
1478
  this.config = t;
1479
1479
  }
1480
1480
  async loadSDK() {
1481
- if (!window.snsWebSdk && (await Qt(Gr, "sumsub-websdk"), !window.snsWebSdk))
1481
+ if (!window.snsWebSdk && (await Qt(Qr, "sumsub-websdk"), !window.snsWebSdk))
1482
1482
  throw new Error("Sumsub Web SDK failed to load from CDN");
1483
1483
  }
1484
1484
  async initialize(t) {
@@ -1488,7 +1488,7 @@ class Xr {
1488
1488
  };
1489
1489
  if (this.config.applicantEmail && (i.email = this.config.applicantEmail), this.config.applicantPhone && (i.phone = this.config.applicantPhone), this.config.theme && (i.theme = this.config.theme), this.config.customizationName && (i.customizationName = this.config.customizationName), !this.config.customizationName) {
1490
1490
  const n = {};
1491
- this.config.customCss && (n.customCss = this.config.customCss), this.config.customCssStr && (n.customCssStr = this.config.customCssStr), n.customCssStr || (n.customCssStr = Qr()), i.uiConf = n;
1491
+ this.config.customCss && (n.customCss = this.config.customCss), this.config.customCssStr && (n.customCssStr = this.config.customCssStr), n.customCssStr || (n.customCssStr = Xr()), i.uiConf = n;
1492
1492
  }
1493
1493
  const a = window.snsWebSdk.init(
1494
1494
  this.config.accessToken,
@@ -1499,14 +1499,14 @@ class Xr {
1499
1499
  }).on("idCheck.onStepCompleted", (n) => {
1500
1500
  console.log("[Sumsub] Step completed:", n);
1501
1501
  }).on("idCheck.applicantStatus", (n) => {
1502
- var l, o;
1503
- console.log("[Sumsub] Applicant status:", n), ((n == null ? void 0 : n.reviewStatus) === "completed" || ((l = n == null ? void 0 : n.reviewResult) == null ? void 0 : l.reviewAnswer) === "GREEN") && ((o = this.completeCallback) == null || o.call(this, n));
1502
+ var l, s;
1503
+ console.log("[Sumsub] Applicant status:", n), ((n == null ? void 0 : n.reviewStatus) === "completed" || ((l = n == null ? void 0 : n.reviewResult) == null ? void 0 : l.reviewAnswer) === "GREEN") && ((s = this.completeCallback) == null || s.call(this, n));
1504
1504
  }).on("idCheck.onError", (n) => {
1505
1505
  var l;
1506
1506
  console.error("[Sumsub] Error:", n), (l = this.errorCallback) == null || l.call(this, n);
1507
1507
  }).onMessage((n, l) => {
1508
- var o;
1509
- console.log("[Sumsub] Message:", n, l), n === "idCheck.onApplicantSubmitted" && ((o = this.completeCallback) == null || o.call(this, l));
1508
+ var s;
1509
+ console.log("[Sumsub] Message:", n, l), n === "idCheck.onApplicantSubmitted" && ((s = this.completeCallback) == null || s.call(this, l));
1510
1510
  });
1511
1511
  this.sdk = a.build(), this.sdk.launch(`#${t}`);
1512
1512
  }
@@ -1526,7 +1526,7 @@ class Xr {
1526
1526
  this.errorCallback = t;
1527
1527
  }
1528
1528
  }
1529
- class Zr {
1529
+ class Jr {
1530
1530
  constructor(t) {
1531
1531
  fe(this, "sdk", null);
1532
1532
  fe(this, "config");
@@ -1592,7 +1592,7 @@ class Zr {
1592
1592
  this.sdk && (this.sdk.tearDown(), this.sdk = null);
1593
1593
  }
1594
1594
  }
1595
- class Jr {
1595
+ class ei {
1596
1596
  constructor(t) {
1597
1597
  fe(this, "sardineContext", null);
1598
1598
  fe(this, "config");
@@ -1652,7 +1652,7 @@ class Jr {
1652
1652
  try {
1653
1653
  if (await this.loadSDK(), !window._Sardine)
1654
1654
  throw new Error("SardinAI SDK not available after loading");
1655
- const t = this.getSardineHost(), { clientId: i, environment: a, flow: n, enableBiometrics: l, enablePortScanning: o } = this.config;
1655
+ const t = this.getSardineHost(), { clientId: i, environment: a, flow: n, enableBiometrics: l, enablePortScanning: s } = this.config;
1656
1656
  this.sardineContext = window._Sardine.createContext({
1657
1657
  clientId: i,
1658
1658
  sessionKey: this.sessionKey,
@@ -1663,7 +1663,7 @@ class Jr {
1663
1663
  parentElement: document.body,
1664
1664
  enableBiometrics: l !== !1,
1665
1665
  // Default true
1666
- enablePortScanning: o === !0,
1666
+ enablePortScanning: s === !0,
1667
1667
  // Default false
1668
1668
  region: this.config.region,
1669
1669
  // Callback for device response (deprecated but kept for compatibility)
@@ -1743,11 +1743,11 @@ class et {
1743
1743
  static createProvider(t, i) {
1744
1744
  switch (t) {
1745
1745
  case Be.Sumsub:
1746
- return new Xr(i);
1747
- case Be.Onfido:
1748
1746
  return new Zr(i);
1749
- case Be.SardinAI:
1747
+ case Be.Onfido:
1750
1748
  return new Jr(i);
1749
+ case Be.SardinAI:
1750
+ return new ei(i);
1751
1751
  default:
1752
1752
  throw new Error(`Unsupported identity provider: ${t}`);
1753
1753
  }
@@ -1759,17 +1759,17 @@ class et {
1759
1759
  var n, l;
1760
1760
  switch (t) {
1761
1761
  case Be.Sumsub:
1762
- const o = ((n = a == null ? void 0 : a.identityProviders) == null ? void 0 : n.sumsub) || {};
1762
+ const s = ((n = a == null ? void 0 : a.identityProviders) == null ? void 0 : n.sumsub) || {};
1763
1763
  return {
1764
1764
  accessToken: i.accessToken || i.token,
1765
1765
  applicantEmail: i.email,
1766
1766
  applicantPhone: i.phone,
1767
1767
  externalUserId: i.externalUserId,
1768
- lang: o.lang || i.lang || "en",
1769
- theme: o.theme,
1770
- customizationName: o.customizationName,
1771
- customCss: o.customCss,
1772
- adaptIframeHeight: o.adaptIframeHeight
1768
+ lang: s.lang || i.lang || "en",
1769
+ theme: s.theme,
1770
+ customizationName: s.customizationName,
1771
+ customCss: s.customCss,
1772
+ adaptIframeHeight: s.adaptIframeHeight
1773
1773
  };
1774
1774
  case Be.Onfido:
1775
1775
  return {
@@ -1791,7 +1791,7 @@ class et {
1791
1791
  }
1792
1792
  }
1793
1793
  }
1794
- class ei {
1794
+ class ti {
1795
1795
  constructor() {
1796
1796
  fe(this, "currentTheme", Ee);
1797
1797
  fe(this, "customStyleElement", null);
@@ -1841,7 +1841,7 @@ class ei {
1841
1841
  }), a && Object.entries(a).forEach(([u, d]) => {
1842
1842
  n[this.kebabCase(u)] = d;
1843
1843
  });
1844
- const o = `
1844
+ const s = `
1845
1845
  /* ── metakyc-theme-vars: scoped CSS variables ──────────────────────────────── */
1846
1846
  .metakyc-sdk,
1847
1847
  .metakyc-searchable-select-dropdown,
@@ -1895,7 +1895,7 @@ ${Object.entries(n).filter(([, u]) => !!u).map(([u, d]) => ` --metakyc-${u}: ${
1895
1895
  border-color: var(--metakyc-input-border, var(--metakyc-border, #d1d5db)) !important;
1896
1896
  }
1897
1897
  `;
1898
- this.themeStyleElement = document.createElement("style"), this.themeStyleElement.id = "metakyc-theme-vars", this.themeStyleElement.textContent = o, (p = this.customStyleElement) != null && p.parentNode ? document.head.insertBefore(this.themeStyleElement, this.customStyleElement) : document.head.appendChild(this.themeStyleElement);
1898
+ this.themeStyleElement = document.createElement("style"), this.themeStyleElement.id = "metakyc-theme-vars", this.themeStyleElement.textContent = s, (p = this.customStyleElement) != null && p.parentNode ? document.head.insertBefore(this.themeStyleElement, this.customStyleElement) : document.head.appendChild(this.themeStyleElement);
1899
1899
  }
1900
1900
  /**
1901
1901
  * Inject custom CSS into document
@@ -1960,7 +1960,7 @@ ${Object.entries(n).filter(([, u]) => !!u).map(([u, d]) => ` --metakyc-${u}: ${
1960
1960
  return t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1961
1961
  }
1962
1962
  }
1963
- const ti = {
1963
+ const ri = {
1964
1964
  common: {
1965
1965
  next: "Next",
1966
1966
  previous: "Previous",
@@ -2237,7 +2237,7 @@ const ti = {
2237
2237
  logo: {
2238
2238
  companyLogo: "Company Logo"
2239
2239
  }
2240
- }, ri = {
2240
+ }, ii = {
2241
2241
  common: {
2242
2242
  next: "Weiter",
2243
2243
  previous: "Zurück",
@@ -2514,7 +2514,7 @@ const ti = {
2514
2514
  logo: {
2515
2515
  companyLogo: "Firmenlogo"
2516
2516
  }
2517
- }, ii = {
2517
+ }, ai = {
2518
2518
  common: {
2519
2519
  next: "Suivant",
2520
2520
  previous: "Précédent",
@@ -2791,7 +2791,7 @@ const ti = {
2791
2791
  logo: {
2792
2792
  companyLogo: "Logo de l'entreprise"
2793
2793
  }
2794
- }, ai = {
2794
+ }, ni = {
2795
2795
  common: {
2796
2796
  next: "Siguiente",
2797
2797
  previous: "Anterior",
@@ -3068,7 +3068,7 @@ const ti = {
3068
3068
  logo: {
3069
3069
  companyLogo: "Logo de la empresa"
3070
3070
  }
3071
- }, ni = {
3071
+ }, oi = {
3072
3072
  common: {
3073
3073
  next: "Avanti",
3074
3074
  previous: "Precedente",
@@ -3345,7 +3345,7 @@ const ti = {
3345
3345
  logo: {
3346
3346
  companyLogo: "Logo aziendale"
3347
3347
  }
3348
- }, oi = {
3348
+ }, si = {
3349
3349
  common: {
3350
3350
  next: "Próximo",
3351
3351
  previous: "Anterior",
@@ -3622,7 +3622,7 @@ const ti = {
3622
3622
  logo: {
3623
3623
  companyLogo: "Logo da Empresa"
3624
3624
  }
3625
- }, si = {
3625
+ }, li = {
3626
3626
  common: {
3627
3627
  next: "Volgende",
3628
3628
  previous: "Vorige",
@@ -3899,7 +3899,7 @@ const ti = {
3899
3899
  logo: {
3900
3900
  companyLogo: "Bedrijfslogo"
3901
3901
  }
3902
- }, li = {
3902
+ }, ci = {
3903
3903
  common: {
3904
3904
  next: "Dalej",
3905
3905
  previous: "Wstecz",
@@ -4176,7 +4176,7 @@ const ti = {
4176
4176
  logo: {
4177
4177
  companyLogo: "Logo Firmy"
4178
4178
  }
4179
- }, ci = {
4179
+ }, di = {
4180
4180
  common: {
4181
4181
  next: "Далее",
4182
4182
  previous: "Назад",
@@ -4453,7 +4453,7 @@ const ti = {
4453
4453
  logo: {
4454
4454
  companyLogo: "Логотип Компании"
4455
4455
  }
4456
- }, di = {
4456
+ }, mi = {
4457
4457
  common: {
4458
4458
  next: "下一步",
4459
4459
  previous: "上一步",
@@ -4730,7 +4730,7 @@ const ti = {
4730
4730
  logo: {
4731
4731
  companyLogo: "公司标志"
4732
4732
  }
4733
- }, mi = {
4733
+ }, ui = {
4734
4734
  common: {
4735
4735
  next: "次へ",
4736
4736
  previous: "前へ",
@@ -5007,7 +5007,7 @@ const ti = {
5007
5007
  logo: {
5008
5008
  companyLogo: "会社ロゴ"
5009
5009
  }
5010
- }, ui = {
5010
+ }, pi = {
5011
5011
  common: {
5012
5012
  next: "التالي",
5013
5013
  previous: "السابق",
@@ -5284,7 +5284,7 @@ const ti = {
5284
5284
  logo: {
5285
5285
  companyLogo: "شعار الشركة"
5286
5286
  }
5287
- }, pi = {
5287
+ }, gi = {
5288
5288
  common: {
5289
5289
  next: "İleri",
5290
5290
  previous: "Geri",
@@ -5561,7 +5561,7 @@ const ti = {
5561
5561
  logo: {
5562
5562
  companyLogo: "Şirket Logosu"
5563
5563
  }
5564
- }, gi = {
5564
+ }, yi = {
5565
5565
  common: {
5566
5566
  next: "Nästa",
5567
5567
  previous: "Föregående",
@@ -5838,7 +5838,7 @@ const ti = {
5838
5838
  logo: {
5839
5839
  companyLogo: "Företagslogotyp"
5840
5840
  }
5841
- }, yi = {
5841
+ }, fi = {
5842
5842
  common: {
5843
5843
  next: "Næste",
5844
5844
  previous: "Forrige",
@@ -6115,7 +6115,7 @@ const ti = {
6115
6115
  logo: {
6116
6116
  companyLogo: "Virksomhedslogo"
6117
6117
  }
6118
- }, fi = {
6118
+ }, ki = {
6119
6119
  common: {
6120
6120
  next: "Seuraava",
6121
6121
  previous: "Edellinen",
@@ -6392,7 +6392,7 @@ const ti = {
6392
6392
  logo: {
6393
6393
  companyLogo: "Yrityksen logo"
6394
6394
  }
6395
- }, ki = {
6395
+ }, hi = {
6396
6396
  common: {
6397
6397
  next: "Neste",
6398
6398
  previous: "Forrige",
@@ -6670,23 +6670,23 @@ const ti = {
6670
6670
  companyLogo: "Firmalogo"
6671
6671
  }
6672
6672
  }, Rt = {
6673
- en: ti,
6674
- de: ri,
6675
- fr: ii,
6676
- es: ai,
6677
- it: ni,
6678
- pt: oi,
6679
- nl: si,
6680
- pl: li,
6681
- ru: ci,
6682
- zh: di,
6683
- ja: mi,
6684
- ar: ui,
6685
- tr: pi,
6686
- sv: gi,
6687
- da: yi,
6688
- fi,
6689
- no: ki
6673
+ en: ri,
6674
+ de: ii,
6675
+ fr: ai,
6676
+ es: ni,
6677
+ it: oi,
6678
+ pt: si,
6679
+ nl: li,
6680
+ pl: ci,
6681
+ ru: di,
6682
+ zh: mi,
6683
+ ja: ui,
6684
+ ar: pi,
6685
+ tr: gi,
6686
+ sv: yi,
6687
+ da: fi,
6688
+ fi: ki,
6689
+ no: hi
6690
6690
  };
6691
6691
  function Dt(e, t) {
6692
6692
  const i = t.split(".");
@@ -6697,7 +6697,7 @@ function Dt(e, t) {
6697
6697
  }
6698
6698
  return typeof a == "string" ? a : void 0;
6699
6699
  }
6700
- function hi(e, t) {
6700
+ function vi(e, t) {
6701
6701
  return t ? e.replace(/\{\{(\w+)\}\}/g, (i, a) => {
6702
6702
  const n = t[a];
6703
6703
  return n != null ? String(n) : `{{${a}}}`;
@@ -6726,19 +6726,19 @@ function Xt(e) {
6726
6726
  const t = Rt.en;
6727
6727
  return (i, a) => {
6728
6728
  const n = !i.includes("."), l = Dt(e, i) ?? (n ? Mt(e, i) : void 0) ?? Dt(t, i) ?? (n ? Mt(t, i) : void 0) ?? i;
6729
- return hi(l, a);
6729
+ return vi(l, a);
6730
6730
  };
6731
6731
  }
6732
- const vi = /^t\(['"](.+?)['"]\)$/, Ft = "$t:";
6732
+ const bi = /^t\(['"](.+?)['"]\)$/, Ft = "$t:";
6733
6733
  function ve(e, t) {
6734
6734
  if (!e) return "";
6735
6735
  const i = e.trim();
6736
6736
  if (i.startsWith(Ft))
6737
6737
  return t(i.slice(Ft.length));
6738
- const a = vi.exec(i);
6738
+ const a = bi.exec(i);
6739
6739
  return a ? t(a[1]) : e;
6740
6740
  }
6741
- const Zt = _t(null), Ot = "metakyc-translations-", bi = ({
6741
+ const Zt = "1.0.30", Jt = _t(null), Ot = `metakyc-translations-${Zt}-`, xi = ({
6742
6742
  locale: e,
6743
6743
  fetchTranslations: t,
6744
6744
  children: i
@@ -6752,14 +6752,19 @@ const Zt = _t(null), Ot = "metakyc-translations-", bi = ({
6752
6752
  } catch {
6753
6753
  }
6754
6754
  return u;
6755
- }, [a]), [l, o] = b(n);
6755
+ }, [a]), [l, s] = b(n);
6756
6756
  ke(() => {
6757
6757
  if (!t) return;
6758
6758
  let u = !1;
6759
6759
  return t(a).then((d) => {
6760
- if (u || !d || Object.keys(d).length === 0) return;
6760
+ if (u) return;
6761
+ if (!d || Object.keys(d).length === 0) {
6762
+ console.debug("[MetaKYC i18n] No remote overrides for locale:", a);
6763
+ return;
6764
+ }
6765
+ console.debug("[MetaKYC i18n] Remote overrides loaded for locale:", a, d);
6761
6766
  const y = It(a), v = jt(y, d);
6762
- o(v);
6767
+ s(v);
6763
6768
  try {
6764
6769
  localStorage.setItem(Ot + a, JSON.stringify(d));
6765
6770
  } catch {
@@ -6775,17 +6780,17 @@ const Zt = _t(null), Ot = "metakyc-translations-", bi = ({
6775
6780
  locale: a,
6776
6781
  dictionary: l
6777
6782
  }), [l, a]);
6778
- return /* @__PURE__ */ r(Zt.Provider, { value: p, children: i });
6783
+ return /* @__PURE__ */ r(Jt.Provider, { value: p, children: i });
6779
6784
  };
6780
- function Ie() {
6781
- const e = Gt(Zt);
6785
+ function Te() {
6786
+ const e = Gt(Jt);
6782
6787
  if (!e) {
6783
6788
  const t = It("en");
6784
6789
  return { t: Xt(t), locale: "en", dictionary: t };
6785
6790
  }
6786
6791
  return e;
6787
6792
  }
6788
- const Jt = _t(null), xi = "1.0.28", wi = '.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 .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 .ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.metakyc-sdk .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.metakyc-sdk .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.metakyc-sdk .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .duration-200{transition-duration:.2s}.metakyc-sdk .grid{display:grid!important}.metakyc-sdk .flex{display:flex!important}.metakyc-sdk .inline-flex{display:inline-flex!important}.metakyc-sdk .hidden{display:none!important}.metakyc-sdk .block{display:block!important}.metakyc-sdk .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.metakyc-sdk .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.metakyc-sdk .grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.metakyc-sdk .grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}.metakyc-sdk .col-span-1{grid-column:span 1 / span 1!important}.metakyc-sdk .col-span-2{grid-column:span 2 / span 2!important}.metakyc-sdk .col-span-3{grid-column:span 3 / span 3!important}.metakyc-sdk .col-span-4{grid-column:span 4 / span 4!important}.metakyc-sdk .gap-1{gap:.25rem!important}.metakyc-sdk .gap-2{gap:.5rem!important}.metakyc-sdk .gap-3{gap:.75rem!important}.metakyc-sdk .gap-4{gap:1rem!important}.metakyc-sdk .gap-6{gap:1.5rem!important}.metakyc-sdk .gap-8{gap:2rem!important}.metakyc-sdk .flex-col{flex-direction:column!important}.metakyc-sdk .flex-row{flex-direction:row!important}.metakyc-sdk .flex-wrap{flex-wrap:wrap!important}.metakyc-sdk .flex-1{flex:1 1 0%!important}.metakyc-sdk .flex-shrink-0{flex-shrink:0!important}.metakyc-sdk .items-center{align-items:center!important}.metakyc-sdk .items-start{align-items:flex-start!important}.metakyc-sdk .items-end{align-items:flex-end!important}.metakyc-sdk .justify-between{justify-content:space-between!important}.metakyc-sdk .justify-center{justify-content:center!important}.metakyc-sdk .justify-end{justify-content:flex-end!important}.metakyc-sdk .justify-start{justify-content:flex-start!important}.metakyc-sdk .space-y-1>*+*{margin-top:.25rem!important}.metakyc-sdk .space-y-1\\.5>*+*{margin-top:.375rem!important}.metakyc-sdk .space-y-2>*+*{margin-top:.5rem!important}.metakyc-sdk .space-y-3>*+*{margin-top:.75rem!important}.metakyc-sdk .space-y-4>*+*{margin-top:1rem!important}.metakyc-sdk .space-y-6>*+*{margin-top:1.5rem!important}.metakyc-sdk .w-full{width:100%!important}.metakyc-sdk .relative{position:relative!important}.metakyc-sdk .absolute{position:absolute!important}.metakyc-sdk .overflow-hidden{overflow:hidden!important}.metakyc-sdk .overflow-auto{overflow:auto!important}.metakyc-sdk .overflow-x-auto{overflow-x:auto!important}@media (min-width: 768px){.metakyc-sdk .md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.metakyc-sdk .md\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}}.metakyc-sdk *,.metakyc-sdk *:before,.metakyc-sdk *:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--metakyc-border, #e5e7eb)}.metakyc-sdk{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4}.metakyc-sdk img,.metakyc-sdk video{max-width:100%;height:auto}.metakyc-sdk h1,.metakyc-sdk h2,.metakyc-sdk h3,.metakyc-sdk h4,.metakyc-sdk h5,.metakyc-sdk h6,.metakyc-sdk p{margin:0}.metakyc-sdk ol,.metakyc-sdk ul{list-style:none;margin:0;padding:0}.metakyc-sdk button,.metakyc-sdk input,.metakyc-sdk optgroup,.metakyc-sdk select,.metakyc-sdk textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}.metakyc-sdk button,.metakyc-sdk [role=button]{cursor:pointer}.metakyc-sdk a{color:inherit;text-decoration:inherit}.metakyc-sdk input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]),.metakyc-sdk select,.metakyc-sdk textarea,.metakyc-sdk .metakyc-searchable-select-trigger,.metakyc-sdk .metakyc-multiselect-trigger{background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important;border-color:var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important}.metakyc-sdk input::-moz-placeholder,.metakyc-sdk textarea::-moz-placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-sdk input::placeholder,.metakyc-sdk textarea::placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-sdk input:not([type=checkbox]):not([type=radio]):focus,.metakyc-sdk select:focus,.metakyc-sdk textarea:focus{outline:none!important;border-color:var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb))!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb)) 20%,transparent)!important}.metakyc-sdk input[type=checkbox],.metakyc-sdk input[type=radio]{appearance:none!important;-webkit-appearance:none!important;-moz-appearance:none!important;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-width:16px!important;max-height:16px!important;flex-shrink:0!important;cursor:pointer!important;background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;border:1.5px solid var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important;position:relative!important;transition:background-color .15s,border-color .15s!important;vertical-align:middle!important;display:inline-block!important;padding:0!important;margin:0!important;color-scheme:light!important}.metakyc-sdk input[type=checkbox]{border-radius:4px!important}.metakyc-sdk input[type=radio]{border-radius:50%!important}.metakyc-sdk input[type=checkbox]:checked,.metakyc-sdk input[type=radio]:checked{background-color:var(--metakyc-primary, #2563eb)!important;border-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk input[type=checkbox]:checked:after{content:""!important;display:block!important;position:absolute!important;left:4px!important;top:1px!important;width:5px!important;height:9px!important;border:2px solid #ffffff!important;border-top:none!important;border-left:none!important;transform:rotate(45deg)!important}.metakyc-sdk input[type=radio]:checked:after{content:""!important;display:block!important;position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:6px!important;height:6px!important;border-radius:50%!important;background:#fff!important}.metakyc-sdk input[type=checkbox]:focus,.metakyc-sdk input[type=radio]:focus{outline:none!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--metakyc-primary, #2563eb) 30%,transparent)!important}.metakyc-searchable-select-dropdown,.metakyc-multiselect-dropdown{background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;border-color:var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important}.metakyc-searchable-select-dropdown input,.metakyc-multiselect-dropdown input{background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important;border-color:var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important}.metakyc-searchable-select-dropdown input::-moz-placeholder,.metakyc-multiselect-dropdown input::-moz-placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-searchable-select-dropdown input::placeholder,.metakyc-multiselect-dropdown input::placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-searchable-select-dropdown input:focus,.metakyc-multiselect-dropdown input:focus{outline:none!important;background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important;border-color:var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb))!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb)) 20%,transparent)!important}.metakyc-searchable-select-dropdown li:hover,.metakyc-multiselect-dropdown li:hover{background-color:var(--metakyc-surface, var(--metakyc-background, #f9fafb))!important}.metakyc-sdk .metakyc-help-btn{color:var(--metakyc-primary, #2563eb)!important;border-color:var(--metakyc-primary, #2563eb)!important;background:transparent!important;position:relative!important;z-index:2!important}.metakyc-sdk .metakyc-overview-step-item,.metakyc-sdk .metakyc-overview-step-item *,.metakyc-sdk .metakyc-step-content,.metakyc-sdk .metakyc-step-content *,.metakyc-sdk .metakyc-step-title,.metakyc-sdk .metakyc-step-title *,.metakyc-sdk .metakyc-step-icon,.metakyc-sdk .metakyc-step-icon *,.metakyc-sdk .metakyc-step-description,.metakyc-sdk .metakyc-step-description *{border-top-width:0!important;border-bottom-width:0!important;border-left-width:0!important;border-right-width:0!important;border-top-style:none!important;border-bottom-style:none!important;border-left-style:none!important;border-right-style:none!important;border-top-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important;border-right-color:transparent!important;border:0!important;box-shadow:none!important;outline:none!important;outline-width:0!important;outline-style:none!important;text-decoration:none!important;text-decoration-line:none!important}.metakyc-sdk .metakyc-overview-step-item:before,.metakyc-sdk .metakyc-overview-step-item:after,.metakyc-sdk .metakyc-overview-step-item *:before,.metakyc-sdk .metakyc-overview-step-item *:after,.metakyc-sdk .metakyc-step-content:before,.metakyc-sdk .metakyc-step-content:after,.metakyc-sdk .metakyc-step-content *:before,.metakyc-sdk .metakyc-step-content *:after,.metakyc-sdk .metakyc-step-title:before,.metakyc-sdk .metakyc-step-title:after,.metakyc-sdk .metakyc-step-description:before,.metakyc-sdk .metakyc-step-description:after{content:none!important;display:none!important;visibility:hidden!important;border:none!important;box-shadow:none!important;outline:none!important;background:none!important;height:0!important;width:0!important}.metakyc-sdk .metakyc-overview-step-item{border-width:0!important;border-style:none!important;border:0!important;box-shadow:none!important;outline:none!important}.metakyc-sdk .metakyc-step-content{border-width:0!important;border-style:none!important;border:0!important;padding-top:0!important;margin-top:0!important;box-shadow:none!important;outline:none!important}.metakyc-sdk .metakyc-step-title{border-width:0!important;border-style:none!important;border:0!important;padding-top:0!important;margin-top:0!important;box-shadow:none!important;outline:none!important;text-decoration:none!important}.metakyc-sdk hr,.metakyc-sdk .metakyc-overview-step-item hr,.metakyc-sdk .metakyc-overview-step-item * hr,.metakyc-sdk .metakyc-step-content hr,.metakyc-sdk .metakyc-step-content * hr{display:block!important;height:0!important;border:0!important;border-top:1px solid var(--metakyc-primary, #2563eb)!important;opacity:.25!important;margin:1rem 0!important;overflow:visible!important}.metakyc-sdk{background-color:var(--metakyc-background, #ffffff)!important;color:var(--metakyc-text-primary, #111827)!important;font-family:var(--metakyc-font-family, inherit)!important;padding:1.5rem!important;border-radius:.75rem!important}.metakyc-sdk h1,.metakyc-sdk h2,.metakyc-sdk h3,.metakyc-sdk h4,.metakyc-sdk h5,.metakyc-sdk h6{color:var(--metakyc-text-primary, #111827);letter-spacing:normal}.metakyc-sdk .text-gray-900{color:var(--metakyc-text-primary, #111827)!important}.metakyc-sdk .text-gray-800{color:var(--metakyc-text-primary, #1f2937)!important}.metakyc-sdk .text-gray-700{color:var(--metakyc-text-secondary, #374151)!important}.metakyc-sdk .text-gray-600{color:var(--metakyc-text-secondary, #6b7280)!important}.metakyc-sdk .text-gray-500{color:var(--metakyc-text-muted, #6b7280)!important}.metakyc-sdk .text-gray-400{color:var(--metakyc-text-muted, #9ca3af)!important}.metakyc-sdk .text-gray-300{color:var(--metakyc-text-muted, #d1d5db)!important}.metakyc-sdk .text-white{color:#fff!important}.metakyc-sdk .bg-white{background-color:var(--metakyc-background, #ffffff)!important}.metakyc-sdk .bg-gray-50{background-color:var(--metakyc-surface, #f9fafb)!important}.metakyc-sdk .bg-gray-100{background-color:var(--metakyc-surface, #f3f4f6)!important}.metakyc-sdk .bg-gray-200{background-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .bg-gray-800{background-color:var(--metakyc-surface, #1f2937)!important}.metakyc-sdk .border-gray-100,.metakyc-sdk .border-gray-200,.metakyc-sdk .border-gray-300{border-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .border-t{border-top-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .border-b{border-bottom-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .divide-gray-200>*{border-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .bg-primary-500,.metakyc-sdk .bg-primary-600{background-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .bg-primary-50,.metakyc-sdk .bg-primary-100{background-color:var(--metakyc-primary-light, #dbeafe)!important}.metakyc-sdk .text-primary-500,.metakyc-sdk .text-primary-600,.metakyc-sdk .text-primary-800{color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .text-primary-900{color:var(--metakyc-primary-dark, #1e40af)!important}.metakyc-sdk .border-primary-500,.metakyc-sdk .border-primary-600{border-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .hover\\:bg-primary-50:hover{background-color:var(--metakyc-primary-light, #dbeafe)!important}.metakyc-sdk .hover\\:bg-primary-600:hover{background-color:var(--metakyc-primary-hover, #1d4ed8)!important}.metakyc-sdk .bg-blue-600{background-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .bg-blue-100{background-color:var(--metakyc-primary-light, #dbeafe)!important}.metakyc-sdk .text-blue-600,.metakyc-sdk .text-blue-400{color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .hover\\:bg-blue-700:hover{background-color:var(--metakyc-primary-hover, #1d4ed8)!important}.metakyc-sdk .metakyc-overview-steps h3:before,.metakyc-sdk .metakyc-overview-steps h3:after{content:none!important;display:none!important}.metakyc-sdk .metakyc-overview-steps *:before,.metakyc-sdk .metakyc-overview-steps *:after{content:none!important;display:none!important}.metakyc-sdk .metakyc-stepper-scroll::-webkit-scrollbar{display:none!important;height:0!important;width:0!important}.metakyc-sdk .metakyc-file-dropzone:hover{border-color:var(--metakyc-primary, #2563eb)!important;background-color:color-mix(in srgb,var(--metakyc-primary, #2563eb) 3%,var(--metakyc-background, #ffffff))!important}.metakyc-sdk .metakyc-file-item:hover{background-color:color-mix(in srgb,var(--metakyc-surface, #f9fafb) 80%,var(--metakyc-border, #e5e7eb))!important}.metakyc-sdk .metakyc-file-upload label{color:var(--metakyc-text-primary, #111827)!important}.metakyc-sdk .metakyc-file-upload p{margin:0!important;line-height:1.4!important}.metakyc-sdk .metakyc-file-item button{background:transparent!important;border:none!important;box-shadow:none!important;outline:none!important}.metakyc-sdk .metakyc-file-dropzone{box-shadow:none!important;outline:none!important}.metakyc-sdk .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))}}', Vt = "metakyc-sdk-styles";
6793
+ const er = _t(null), wi = '.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 .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 .ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.metakyc-sdk .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.metakyc-sdk .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.metakyc-sdk .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .duration-200{transition-duration:.2s}.metakyc-sdk .grid{display:grid!important}.metakyc-sdk .flex{display:flex!important}.metakyc-sdk .inline-flex{display:inline-flex!important}.metakyc-sdk .hidden{display:none!important}.metakyc-sdk .block{display:block!important}.metakyc-sdk .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.metakyc-sdk .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.metakyc-sdk .grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.metakyc-sdk .grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}.metakyc-sdk .col-span-1{grid-column:span 1 / span 1!important}.metakyc-sdk .col-span-2{grid-column:span 2 / span 2!important}.metakyc-sdk .col-span-3{grid-column:span 3 / span 3!important}.metakyc-sdk .col-span-4{grid-column:span 4 / span 4!important}.metakyc-sdk .gap-1{gap:.25rem!important}.metakyc-sdk .gap-2{gap:.5rem!important}.metakyc-sdk .gap-3{gap:.75rem!important}.metakyc-sdk .gap-4{gap:1rem!important}.metakyc-sdk .gap-6{gap:1.5rem!important}.metakyc-sdk .gap-8{gap:2rem!important}.metakyc-sdk .flex-col{flex-direction:column!important}.metakyc-sdk .flex-row{flex-direction:row!important}.metakyc-sdk .flex-wrap{flex-wrap:wrap!important}.metakyc-sdk .flex-1{flex:1 1 0%!important}.metakyc-sdk .flex-shrink-0{flex-shrink:0!important}.metakyc-sdk .items-center{align-items:center!important}.metakyc-sdk .items-start{align-items:flex-start!important}.metakyc-sdk .items-end{align-items:flex-end!important}.metakyc-sdk .justify-between{justify-content:space-between!important}.metakyc-sdk .justify-center{justify-content:center!important}.metakyc-sdk .justify-end{justify-content:flex-end!important}.metakyc-sdk .justify-start{justify-content:flex-start!important}.metakyc-sdk .space-y-1>*+*{margin-top:.25rem!important}.metakyc-sdk .space-y-1\\.5>*+*{margin-top:.375rem!important}.metakyc-sdk .space-y-2>*+*{margin-top:.5rem!important}.metakyc-sdk .space-y-3>*+*{margin-top:.75rem!important}.metakyc-sdk .space-y-4>*+*{margin-top:1rem!important}.metakyc-sdk .space-y-6>*+*{margin-top:1.5rem!important}.metakyc-sdk .w-full{width:100%!important}.metakyc-sdk .relative{position:relative!important}.metakyc-sdk .absolute{position:absolute!important}.metakyc-sdk .overflow-hidden{overflow:hidden!important}.metakyc-sdk .overflow-auto{overflow:auto!important}.metakyc-sdk .overflow-x-auto{overflow-x:auto!important}@media (min-width: 768px){.metakyc-sdk .md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.metakyc-sdk .md\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}}.metakyc-sdk *,.metakyc-sdk *:before,.metakyc-sdk *:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--metakyc-border, #e5e7eb)}.metakyc-sdk{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4}.metakyc-sdk img,.metakyc-sdk video{max-width:100%;height:auto}.metakyc-sdk h1,.metakyc-sdk h2,.metakyc-sdk h3,.metakyc-sdk h4,.metakyc-sdk h5,.metakyc-sdk h6,.metakyc-sdk p{margin:0}.metakyc-sdk ol,.metakyc-sdk ul{list-style:none;margin:0;padding:0}.metakyc-sdk button,.metakyc-sdk input,.metakyc-sdk optgroup,.metakyc-sdk select,.metakyc-sdk textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}.metakyc-sdk button,.metakyc-sdk [role=button]{cursor:pointer}.metakyc-sdk a{color:inherit;text-decoration:inherit}.metakyc-sdk input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]),.metakyc-sdk select,.metakyc-sdk textarea,.metakyc-sdk .metakyc-searchable-select-trigger,.metakyc-sdk .metakyc-multiselect-trigger{background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important;border-color:var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important}.metakyc-sdk input::-moz-placeholder,.metakyc-sdk textarea::-moz-placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-sdk input::placeholder,.metakyc-sdk textarea::placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-sdk input:not([type=checkbox]):not([type=radio]):focus,.metakyc-sdk select:focus,.metakyc-sdk textarea:focus{outline:none!important;border-color:var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb))!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb)) 20%,transparent)!important}.metakyc-sdk input[type=checkbox],.metakyc-sdk input[type=radio]{appearance:none!important;-webkit-appearance:none!important;-moz-appearance:none!important;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-width:16px!important;max-height:16px!important;flex-shrink:0!important;cursor:pointer!important;background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;border:1.5px solid var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important;position:relative!important;transition:background-color .15s,border-color .15s!important;vertical-align:middle!important;display:inline-block!important;padding:0!important;margin:0!important;color-scheme:light!important}.metakyc-sdk input[type=checkbox]{border-radius:4px!important}.metakyc-sdk input[type=radio]{border-radius:50%!important}.metakyc-sdk input[type=checkbox]:checked,.metakyc-sdk input[type=radio]:checked{background-color:var(--metakyc-primary, #2563eb)!important;border-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk input[type=checkbox]:checked:after{content:""!important;display:block!important;position:absolute!important;left:4px!important;top:1px!important;width:5px!important;height:9px!important;border:2px solid #ffffff!important;border-top:none!important;border-left:none!important;transform:rotate(45deg)!important}.metakyc-sdk input[type=radio]:checked:after{content:""!important;display:block!important;position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:6px!important;height:6px!important;border-radius:50%!important;background:#fff!important}.metakyc-sdk input[type=checkbox]:focus,.metakyc-sdk input[type=radio]:focus{outline:none!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--metakyc-primary, #2563eb) 30%,transparent)!important}.metakyc-searchable-select-dropdown,.metakyc-multiselect-dropdown{background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;border-color:var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important}.metakyc-searchable-select-dropdown input,.metakyc-multiselect-dropdown input{background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important;border-color:var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important}.metakyc-searchable-select-dropdown input::-moz-placeholder,.metakyc-multiselect-dropdown input::-moz-placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-searchable-select-dropdown input::placeholder,.metakyc-multiselect-dropdown input::placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-searchable-select-dropdown input:focus,.metakyc-multiselect-dropdown input:focus{outline:none!important;background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important;border-color:var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb))!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb)) 20%,transparent)!important}.metakyc-searchable-select-dropdown li:hover,.metakyc-multiselect-dropdown li:hover{background-color:var(--metakyc-surface, var(--metakyc-background, #f9fafb))!important}.metakyc-sdk .metakyc-help-btn{color:var(--metakyc-primary, #2563eb)!important;border-color:var(--metakyc-primary, #2563eb)!important;background:transparent!important;position:relative!important;z-index:2!important}.metakyc-sdk .metakyc-overview-step-item,.metakyc-sdk .metakyc-overview-step-item *,.metakyc-sdk .metakyc-step-content,.metakyc-sdk .metakyc-step-content *,.metakyc-sdk .metakyc-step-title,.metakyc-sdk .metakyc-step-title *,.metakyc-sdk .metakyc-step-icon,.metakyc-sdk .metakyc-step-icon *,.metakyc-sdk .metakyc-step-description,.metakyc-sdk .metakyc-step-description *{border-top-width:0!important;border-bottom-width:0!important;border-left-width:0!important;border-right-width:0!important;border-top-style:none!important;border-bottom-style:none!important;border-left-style:none!important;border-right-style:none!important;border-top-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important;border-right-color:transparent!important;border:0!important;box-shadow:none!important;outline:none!important;outline-width:0!important;outline-style:none!important;text-decoration:none!important;text-decoration-line:none!important}.metakyc-sdk .metakyc-overview-step-item:before,.metakyc-sdk .metakyc-overview-step-item:after,.metakyc-sdk .metakyc-overview-step-item *:before,.metakyc-sdk .metakyc-overview-step-item *:after,.metakyc-sdk .metakyc-step-content:before,.metakyc-sdk .metakyc-step-content:after,.metakyc-sdk .metakyc-step-content *:before,.metakyc-sdk .metakyc-step-content *:after,.metakyc-sdk .metakyc-step-title:before,.metakyc-sdk .metakyc-step-title:after,.metakyc-sdk .metakyc-step-description:before,.metakyc-sdk .metakyc-step-description:after{content:none!important;display:none!important;visibility:hidden!important;border:none!important;box-shadow:none!important;outline:none!important;background:none!important;height:0!important;width:0!important}.metakyc-sdk .metakyc-overview-step-item{border-width:0!important;border-style:none!important;border:0!important;box-shadow:none!important;outline:none!important}.metakyc-sdk .metakyc-step-content{border-width:0!important;border-style:none!important;border:0!important;padding-top:0!important;margin-top:0!important;box-shadow:none!important;outline:none!important}.metakyc-sdk .metakyc-step-title{border-width:0!important;border-style:none!important;border:0!important;padding-top:0!important;margin-top:0!important;box-shadow:none!important;outline:none!important;text-decoration:none!important}.metakyc-sdk hr,.metakyc-sdk .metakyc-overview-step-item hr,.metakyc-sdk .metakyc-overview-step-item * hr,.metakyc-sdk .metakyc-step-content hr,.metakyc-sdk .metakyc-step-content * hr{display:block!important;height:0!important;border:0!important;border-top:1px solid var(--metakyc-primary, #2563eb)!important;opacity:.25!important;margin:1rem 0!important;overflow:visible!important}.metakyc-sdk{background-color:var(--metakyc-background, #ffffff)!important;color:var(--metakyc-text-primary, #111827)!important;font-family:var(--metakyc-font-family, inherit)!important;padding:1.5rem!important;border-radius:.75rem!important}.metakyc-sdk h1,.metakyc-sdk h2,.metakyc-sdk h3,.metakyc-sdk h4,.metakyc-sdk h5,.metakyc-sdk h6{color:var(--metakyc-text-primary, #111827);letter-spacing:normal}.metakyc-sdk .text-gray-900{color:var(--metakyc-text-primary, #111827)!important}.metakyc-sdk .text-gray-800{color:var(--metakyc-text-primary, #1f2937)!important}.metakyc-sdk .text-gray-700{color:var(--metakyc-text-secondary, #374151)!important}.metakyc-sdk .text-gray-600{color:var(--metakyc-text-secondary, #6b7280)!important}.metakyc-sdk .text-gray-500{color:var(--metakyc-text-muted, #6b7280)!important}.metakyc-sdk .text-gray-400{color:var(--metakyc-text-muted, #9ca3af)!important}.metakyc-sdk .text-gray-300{color:var(--metakyc-text-muted, #d1d5db)!important}.metakyc-sdk .text-white{color:#fff!important}.metakyc-sdk .bg-white{background-color:var(--metakyc-background, #ffffff)!important}.metakyc-sdk .bg-gray-50{background-color:var(--metakyc-surface, #f9fafb)!important}.metakyc-sdk .bg-gray-100{background-color:var(--metakyc-surface, #f3f4f6)!important}.metakyc-sdk .bg-gray-200{background-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .bg-gray-800{background-color:var(--metakyc-surface, #1f2937)!important}.metakyc-sdk .border-gray-100,.metakyc-sdk .border-gray-200,.metakyc-sdk .border-gray-300{border-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .border-t{border-top-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .border-b{border-bottom-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .divide-gray-200>*{border-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .bg-primary-500,.metakyc-sdk .bg-primary-600{background-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .bg-primary-50,.metakyc-sdk .bg-primary-100{background-color:var(--metakyc-primary-light, #dbeafe)!important}.metakyc-sdk .text-primary-500,.metakyc-sdk .text-primary-600,.metakyc-sdk .text-primary-800{color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .text-primary-900{color:var(--metakyc-primary-dark, #1e40af)!important}.metakyc-sdk .border-primary-500,.metakyc-sdk .border-primary-600{border-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .hover\\:bg-primary-50:hover{background-color:var(--metakyc-primary-light, #dbeafe)!important}.metakyc-sdk .hover\\:bg-primary-600:hover{background-color:var(--metakyc-primary-hover, #1d4ed8)!important}.metakyc-sdk .bg-blue-600{background-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .bg-blue-100{background-color:var(--metakyc-primary-light, #dbeafe)!important}.metakyc-sdk .text-blue-600,.metakyc-sdk .text-blue-400{color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .hover\\:bg-blue-700:hover{background-color:var(--metakyc-primary-hover, #1d4ed8)!important}.metakyc-sdk .metakyc-overview-steps h3:before,.metakyc-sdk .metakyc-overview-steps h3:after{content:none!important;display:none!important}.metakyc-sdk .metakyc-overview-steps *:before,.metakyc-sdk .metakyc-overview-steps *:after{content:none!important;display:none!important}.metakyc-sdk .metakyc-stepper-scroll::-webkit-scrollbar{display:none!important;height:0!important;width:0!important}.metakyc-sdk .metakyc-file-dropzone:hover{border-color:var(--metakyc-primary, #2563eb)!important;background-color:color-mix(in srgb,var(--metakyc-primary, #2563eb) 3%,var(--metakyc-background, #ffffff))!important}.metakyc-sdk .metakyc-file-item:hover{background-color:color-mix(in srgb,var(--metakyc-surface, #f9fafb) 80%,var(--metakyc-border, #e5e7eb))!important}.metakyc-sdk .metakyc-file-upload label{color:var(--metakyc-text-primary, #111827)!important}.metakyc-sdk .metakyc-file-upload p{margin:0!important;line-height:1.4!important}.metakyc-sdk .metakyc-file-item button{background:transparent!important;border:none!important;box-shadow:none!important;outline:none!important}.metakyc-sdk .metakyc-file-dropzone{box-shadow:none!important;outline:none!important}.metakyc-sdk .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))}}', Vt = "metakyc-sdk-styles";
6789
6794
  let wt = !1;
6790
6795
  function Si() {
6791
6796
  if (wt || typeof document > "u") return;
@@ -6798,8 +6803,8 @@ function Si() {
6798
6803
  }
6799
6804
  const Bt = "metakyc-theme-cache", Aa = ({ config: e, children: t }) => {
6800
6805
  Si();
6801
- const [i, a] = b(null), n = Se.useRef(!1), l = Se.useRef(!1), o = Me(() => {
6802
- const d = new Rr(e), y = new Ir(d), v = new zr(d), T = new Ar(d), I = new Lr(d), x = new Er(d), q = new Pr(d), S = new Dr(d), L = new jr(d), B = new Mr(d), F = new Wr(d), U = new Kr(d), K = new ei();
6806
+ const [i, a] = b(null), n = Se.useRef(!1), l = Se.useRef(!1), s = Me(() => {
6807
+ const d = new Ir(e), y = new zr(d), v = new Ar(d), T = new Lr(d), I = new Er(d), x = new Pr(d), q = new Dr(d), S = new jr(d), L = new Mr(d), B = new Fr(d), F = new Kr(d), U = new Yr(d), K = new ti();
6803
6808
  if (typeof document < "u")
6804
6809
  if (e.theme)
6805
6810
  K.applyTheme(e.theme);
@@ -6827,19 +6832,19 @@ const Bt = "metakyc-theme-cache", Aa = ({ config: e, children: t }) => {
6827
6832
  };
6828
6833
  }, [e]), p = Me(() => ({
6829
6834
  config: e,
6830
- ...o,
6835
+ ...s,
6831
6836
  currentTheme: i,
6832
- createOrchestrator: () => new _r(
6833
- o.applicantService,
6834
- o.questionnaireService,
6835
- o.uploadDocumentService,
6836
- o.appropriatenessTestService,
6837
- o.overviewService,
6838
- o.riskScoringService,
6839
- o.identityService,
6840
- o.investorCategorizationService
6837
+ createOrchestrator: () => new Gr(
6838
+ s.applicantService,
6839
+ s.questionnaireService,
6840
+ s.uploadDocumentService,
6841
+ s.appropriatenessTestService,
6842
+ s.overviewService,
6843
+ s.riskScoringService,
6844
+ s.identityService,
6845
+ s.investorCategorizationService
6841
6846
  )
6842
- }), [e, o, i]);
6847
+ }), [e, s, i]);
6843
6848
  ke(() => ((async () => {
6844
6849
  if (n.current || l.current) {
6845
6850
  console.log("[MetaKYC] Theme already loading or loaded, skipping...");
@@ -6848,36 +6853,36 @@ const Bt = "metakyc-theme-cache", Aa = ({ config: e, children: t }) => {
6848
6853
  n.current = !0;
6849
6854
  try {
6850
6855
  if (e.theme) {
6851
- console.log("[MetaKYC] Applying static theme from config"), o.themeManager.applyTheme(e.theme), a(o.themeManager.getCurrentTheme()), l.current = !0;
6856
+ console.log("[MetaKYC] Applying static theme from config"), s.themeManager.applyTheme(e.theme), a(s.themeManager.getCurrentTheme()), l.current = !0;
6852
6857
  return;
6853
6858
  }
6854
6859
  console.log("[MetaKYC] Fetching theme from backend...");
6855
- const y = await o.themeService.getThemeConfiguration();
6856
- o.themeManager.applyTheme(y), a(o.themeManager.getCurrentTheme()), l.current = !0;
6860
+ const y = await s.themeService.getThemeConfiguration();
6861
+ s.themeManager.applyTheme(y), a(s.themeManager.getCurrentTheme()), l.current = !0;
6857
6862
  try {
6858
6863
  localStorage.setItem(Bt, JSON.stringify(y));
6859
6864
  } catch {
6860
6865
  }
6861
6866
  console.log("[MetaKYC] Theme loaded and applied", y);
6862
6867
  } catch (y) {
6863
- console.warn("[MetaKYC] Failed to load theme, using default:", y), a(o.themeManager.getCurrentTheme()), l.current = !0;
6868
+ console.warn("[MetaKYC] Failed to load theme, using default:", y), a(s.themeManager.getCurrentTheme()), l.current = !0;
6864
6869
  } finally {
6865
6870
  n.current = !1;
6866
6871
  }
6867
6872
  })(), () => {
6868
- o.themeManager.cleanup();
6873
+ s.themeManager.cleanup();
6869
6874
  }), []);
6870
6875
  const u = te(
6871
- (d) => o.translationService.getTranslations(d),
6872
- [o.translationService]
6876
+ (d) => s.translationService.getTranslations(d),
6877
+ [s.translationService]
6873
6878
  );
6874
- return /* @__PURE__ */ r(Jt.Provider, { value: p, children: /* @__PURE__ */ s(
6875
- bi,
6879
+ return /* @__PURE__ */ r(er.Provider, { value: p, children: /* @__PURE__ */ o(
6880
+ xi,
6876
6881
  {
6877
6882
  locale: e.locale || "en",
6878
6883
  fetchTranslations: u,
6879
6884
  children: [
6880
- e.showVersion && /* @__PURE__ */ s(
6885
+ e.showVersion && /* @__PURE__ */ o(
6881
6886
  "div",
6882
6887
  {
6883
6888
  style: {
@@ -6893,7 +6898,7 @@ const Bt = "metakyc-theme-cache", Aa = ({ config: e, children: t }) => {
6893
6898
  },
6894
6899
  children: [
6895
6900
  "SDK v",
6896
- xi
6901
+ Zt
6897
6902
  ]
6898
6903
  }
6899
6904
  ),
@@ -6903,7 +6908,7 @@ const Bt = "metakyc-theme-cache", Aa = ({ config: e, children: t }) => {
6903
6908
  ) });
6904
6909
  };
6905
6910
  function Fe() {
6906
- const e = Gt(Jt);
6911
+ const e = Gt(er);
6907
6912
  if (!e)
6908
6913
  throw new Error("useMetaKYC must be used within a MetaKYCProvider");
6909
6914
  return e;
@@ -6992,7 +6997,7 @@ function ja() {
6992
6997
  Ri(), zi();
6993
6998
  }
6994
6999
  function Ai(e) {
6995
- const { createOrchestrator: t } = Fe(), [i, a] = b(null), [n, l] = b(!1), [o, p] = b(null), u = me(null), d = e || Ti();
7000
+ const { createOrchestrator: t } = Fe(), [i, a] = b(null), [n, l] = b(!1), [s, p] = b(null), u = me(null), d = e || Ti();
6996
7001
  ke(() => {
6997
7002
  u.current || (u.current = t());
6998
7003
  }, [t]), ke(() => {
@@ -7091,7 +7096,7 @@ function Ai(e) {
7091
7096
  nextWorkflowKey: i == null ? void 0 : i.nextWorkflowKey,
7092
7097
  hasWorkflowChanged: B,
7093
7098
  isLoading: n,
7094
- error: o,
7099
+ error: s,
7095
7100
  isComplete: (i == null ? void 0 : i.status) === qe.Finished,
7096
7101
  isOnHold: (i == null ? void 0 : i.status) === qe.OnHold,
7097
7102
  refreshProgress: I,
@@ -7102,7 +7107,7 @@ function Ai(e) {
7102
7107
  };
7103
7108
  }
7104
7109
  function Li(e) {
7105
- const { questionnaireService: t, applicantService: i } = Fe(), [a, n] = b(null), [l, o] = b({}), [p, u] = b(!1), [d, y] = b(!1), [v, T] = b(null), I = me(!1), x = me(null), q = te(async () => {
7110
+ const { questionnaireService: t, applicantService: i } = Fe(), [a, n] = b(null), [l, s] = b({}), [p, u] = b(!1), [d, y] = b(!1), [v, T] = b(null), I = me(!1), x = me(null), q = te(async () => {
7106
7111
  var L, B;
7107
7112
  if (e) {
7108
7113
  if (I.current) {
@@ -7124,7 +7129,7 @@ function Li(e) {
7124
7129
  const R = w.text.trim().toLowerCase();
7125
7130
  K.has(R) && (J[w.id] = K.get(R));
7126
7131
  }
7127
- o(J);
7132
+ s(J);
7128
7133
  }
7129
7134
  x.current = e;
7130
7135
  } catch (F) {
@@ -7161,7 +7166,7 @@ function Li(e) {
7161
7166
  };
7162
7167
  }
7163
7168
  function Ei(e) {
7164
- const { uploadDocumentService: t } = Fe(), [i, a] = b(null), [n, l] = b(!1), [o, p] = b(!1), [u, d] = b(0), [y, v] = b(null), T = me(!1), I = me(null), x = te(async () => {
7169
+ const { uploadDocumentService: t } = Fe(), [i, a] = b(null), [n, l] = b(!1), [s, p] = b(!1), [u, d] = b(0), [y, v] = b(null), T = me(!1), I = me(null), x = te(async () => {
7165
7170
  if (e) {
7166
7171
  if (T.current) {
7167
7172
  console.log("[UploadDocument] Load already in progress, skipping...");
@@ -7197,7 +7202,7 @@ function Ei(e) {
7197
7202
  return {
7198
7203
  uploadDocument: i,
7199
7204
  isLoading: n,
7200
- isSubmitting: o,
7205
+ isSubmitting: s,
7201
7206
  uploadProgress: u,
7202
7207
  error: y,
7203
7208
  load: x,
@@ -7205,7 +7210,7 @@ function Ei(e) {
7205
7210
  };
7206
7211
  }
7207
7212
  function Ma(e) {
7208
- const { appropriatenessTestService: t } = Fe(), [i, a] = b(null), [n, l] = b(!1), [o, p] = b(!1), [u, d] = b(null), [y, v] = b(null), T = me(!1), I = me(null), x = te(async () => {
7213
+ const { appropriatenessTestService: t } = Fe(), [i, a] = b(null), [n, l] = b(!1), [s, p] = b(!1), [u, d] = b(null), [y, v] = b(null), T = me(!1), I = me(null), x = te(async () => {
7209
7214
  if (e) {
7210
7215
  if (T.current) {
7211
7216
  console.log("[AppropriatenessTest] Load already in progress, skipping...");
@@ -7243,14 +7248,14 @@ function Ma(e) {
7243
7248
  test: i,
7244
7249
  result: y,
7245
7250
  isLoading: n,
7246
- isSubmitting: o,
7251
+ isSubmitting: s,
7247
7252
  error: u,
7248
7253
  load: x,
7249
7254
  submit: q
7250
7255
  };
7251
7256
  }
7252
7257
  function Pi(e) {
7253
- const { overviewService: t } = Fe(), [i, a] = b(null), [n, l] = b(!1), [o, p] = b(!1), [u, d] = b(null), y = me(!1), v = me(null), T = te(async () => {
7258
+ const { overviewService: t } = Fe(), [i, a] = b(null), [n, l] = b(!1), [s, p] = b(!1), [u, d] = b(null), y = me(!1), v = me(null), T = te(async () => {
7254
7259
  if (e) {
7255
7260
  if (y.current) {
7256
7261
  console.log("[Overview] Load already in progress, skipping...");
@@ -7285,7 +7290,7 @@ function Pi(e) {
7285
7290
  return {
7286
7291
  overview: i,
7287
7292
  isLoading: n,
7288
- isSubmitting: o,
7293
+ isSubmitting: s,
7289
7294
  error: u,
7290
7295
  load: T,
7291
7296
  passOverview: I
@@ -7294,7 +7299,7 @@ function Pi(e) {
7294
7299
  function Di(e) {
7295
7300
  const { identityService: t } = Fe(), [i, a] = b(
7296
7301
  null
7297
- ), [n, l] = b(!1), [o, p] = b(null), u = me(!1), d = te(
7302
+ ), [n, l] = b(!1), [s, p] = b(null), u = me(!1), d = te(
7298
7303
  async (T, I) => {
7299
7304
  if (e) {
7300
7305
  if (u.current) {
@@ -7371,14 +7376,14 @@ function Di(e) {
7371
7376
  provider: (i == null ? void 0 : i.provider) || null,
7372
7377
  token: (i == null ? void 0 : i.publicProviderTokenObject) || null,
7373
7378
  isLoading: n,
7374
- error: o,
7379
+ error: s,
7375
7380
  requestIdentity: d,
7376
7381
  requestCompanyIdentity: y,
7377
7382
  restartIdentity: v
7378
7383
  };
7379
7384
  }
7380
7385
  function ji(e) {
7381
- const { riskScoringService: t, applicantService: i } = Fe(), [a, n] = b(null), [l, o] = b({}), [p, u] = b(!1), [d, y] = b(!1), [v, T] = b(null), [I, x] = b(null), q = me(!1), S = me(null), L = te(async () => {
7386
+ const { riskScoringService: t, applicantService: i } = Fe(), [a, n] = b(null), [l, s] = b({}), [p, u] = b(!1), [d, y] = b(!1), [v, T] = b(null), [I, x] = b(null), q = me(!1), S = me(null), L = te(async () => {
7382
7387
  var F;
7383
7388
  if (e) {
7384
7389
  if (q.current) {
@@ -7400,7 +7405,7 @@ function ji(e) {
7400
7405
  )];
7401
7406
  R.length > 0 && (ae[w.riskCriteriaId] = R);
7402
7407
  }
7403
- o(ae);
7408
+ s(ae);
7404
7409
  }
7405
7410
  S.current = e;
7406
7411
  } catch (U) {
@@ -7438,16 +7443,16 @@ function ji(e) {
7438
7443
  submit: B
7439
7444
  };
7440
7445
  }
7441
- function er() {
7442
- const { applicantService: e, config: t } = Fe(), [i, a] = b(!1), [n, l] = b(null), o = me(!1), p = me(!1), u = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(I) {
7446
+ function tr() {
7447
+ const { applicantService: e, config: t } = Fe(), [i, a] = b(!1), [n, l] = b(null), s = me(!1), p = me(!1), u = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(I) {
7443
7448
  const x = Math.random() * 16 | 0;
7444
7449
  return (I === "x" ? x : x & 3 | 8).toString(16);
7445
7450
  }), d = te(
7446
7451
  async (I) => {
7447
7452
  var x;
7448
- if (o.current)
7453
+ if (s.current)
7449
7454
  throw console.log("[Applicant] Create already in progress, skipping..."), new Error("Creation already in progress");
7450
- o.current = !0, a(!0), l(null);
7455
+ s.current = !0, a(!0), l(null);
7451
7456
  try {
7452
7457
  if (I.applicantAdditionalDatas || (I.applicantAdditionalDatas = []), (x = t.identityProviders) != null && x.sardinai) {
7453
7458
  const S = u();
@@ -7460,7 +7465,7 @@ function er() {
7460
7465
  } catch (q) {
7461
7466
  throw l(q), q;
7462
7467
  } finally {
7463
- a(!1), o.current = !1;
7468
+ a(!1), s.current = !1;
7464
7469
  }
7465
7470
  },
7466
7471
  [e, t]
@@ -7545,7 +7550,7 @@ const Mi = {
7545
7550
  isLoading: a = !1,
7546
7551
  disabled: n,
7547
7552
  className: l,
7548
- style: o,
7553
+ style: s,
7549
7554
  ...p
7550
7555
  }) => {
7551
7556
  const u = "inline-flex items-center justify-center rounded-lg font-medium transition-opacity border focus:outline-none focus:ring-2 focus:ring-offset-1 disabled:opacity-50 disabled:cursor-not-allowed", d = {
@@ -7557,7 +7562,7 @@ const Mi = {
7557
7562
  md: { padding: "0.5rem 1rem", fontSize: "0.875rem" },
7558
7563
  lg: { padding: "0.75rem 1.5rem", fontSize: "1rem" }
7559
7564
  };
7560
- return /* @__PURE__ */ s(
7565
+ return /* @__PURE__ */ o(
7561
7566
  "button",
7562
7567
  {
7563
7568
  className: De(u, d[i], l),
@@ -7574,12 +7579,12 @@ const Mi = {
7574
7579
  lineHeight: "1.25rem",
7575
7580
  ...y[i],
7576
7581
  ...Mi[t],
7577
- ...o
7582
+ ...s
7578
7583
  },
7579
7584
  disabled: n || a,
7580
7585
  ...p,
7581
7586
  children: [
7582
- a && /* @__PURE__ */ s(
7587
+ a && /* @__PURE__ */ o(
7583
7588
  "svg",
7584
7589
  {
7585
7590
  className: "animate-spin -ml-1 mr-2 h-4 w-4",
@@ -7614,8 +7619,8 @@ const Mi = {
7614
7619
  }
7615
7620
  );
7616
7621
  }, we = kt(
7617
- ({ label: e, error: t, helperText: i, leftIcon: a, rightIcon: n, className: l, style: o, ...p }, u) => /* @__PURE__ */ s("div", { className: "w-full", children: [
7618
- e && /* @__PURE__ */ s(
7622
+ ({ label: e, error: t, helperText: i, leftIcon: a, rightIcon: n, className: l, style: s, ...p }, u) => /* @__PURE__ */ o("div", { className: "w-full", children: [
7623
+ e && /* @__PURE__ */ o(
7619
7624
  "label",
7620
7625
  {
7621
7626
  className: "block text-sm font-medium mb-1",
@@ -7626,7 +7631,7 @@ const Mi = {
7626
7631
  ]
7627
7632
  }
7628
7633
  ),
7629
- /* @__PURE__ */ s("div", { className: "relative", children: [
7634
+ /* @__PURE__ */ o("div", { className: "relative", children: [
7630
7635
  a && /* @__PURE__ */ r("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none", children: a }),
7631
7636
  /* @__PURE__ */ r(
7632
7637
  "input",
@@ -7646,7 +7651,7 @@ const Mi = {
7646
7651
  color: "var(--metakyc-input-text, var(--metakyc-text-primary, #111827))",
7647
7652
  borderColor: t ? "var(--metakyc-danger, #ef4444)" : "var(--metakyc-input-border, var(--metakyc-border, #d1d5db))",
7648
7653
  cursor: p.readOnly ? "default" : void 0,
7649
- ...o
7654
+ ...s
7650
7655
  },
7651
7656
  ...p
7652
7657
  }
@@ -7732,7 +7737,7 @@ const re = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
7732
7737
  margin: 0,
7733
7738
  verticalAlign: "middle"
7734
7739
  }, Ue = ({ checked: e, onChange: t, disabled: i, style: a }) => {
7735
- const n = "var(--metakyc-input-border, var(--metakyc-border, #d1d5db))", l = "var(--metakyc-input-bg, var(--metakyc-background, #ffffff))", o = "var(--metakyc-primary, #2563eb)";
7740
+ const n = "var(--metakyc-input-border, var(--metakyc-border, #d1d5db))", l = "var(--metakyc-input-bg, var(--metakyc-background, #ffffff))", s = "var(--metakyc-primary, #2563eb)";
7736
7741
  return /* @__PURE__ */ r(
7737
7742
  "span",
7738
7743
  {
@@ -7745,8 +7750,8 @@ const re = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
7745
7750
  },
7746
7751
  style: {
7747
7752
  ...Fi,
7748
- backgroundColor: e ? o : l,
7749
- borderColor: e ? o : n,
7753
+ backgroundColor: e ? s : l,
7754
+ borderColor: e ? s : n,
7750
7755
  opacity: i ? 0.5 : 1,
7751
7756
  cursor: i ? "not-allowed" : "pointer",
7752
7757
  ...a
@@ -7797,7 +7802,7 @@ const re = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
7797
7802
  backgroundColor: "#fef3c7",
7798
7803
  color: "#92400e"
7799
7804
  }
7800
- }, tr = ({ children: e, variant: t = "default", className: i, style: a, ...n }) => /* @__PURE__ */ r(
7805
+ }, rr = ({ children: e, variant: t = "default", className: i, style: a, ...n }) => /* @__PURE__ */ r(
7801
7806
  "span",
7802
7807
  {
7803
7808
  className: De(
@@ -7814,7 +7819,7 @@ const re = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
7814
7819
  md: "h-8 w-8",
7815
7820
  lg: "h-12 w-12"
7816
7821
  };
7817
- return /* @__PURE__ */ r("div", { className: De("flex items-center justify-center", t), ...i, children: /* @__PURE__ */ s(
7822
+ return /* @__PURE__ */ r("div", { className: De("flex items-center justify-center", t), ...i, children: /* @__PURE__ */ o(
7818
7823
  "svg",
7819
7824
  {
7820
7825
  className: De("animate-spin text-primary-500", a[e]),
@@ -7845,8 +7850,8 @@ const re = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
7845
7850
  }
7846
7851
  ) });
7847
7852
  }, At = kt(
7848
- ({ label: e, error: t, helperText: i, options: a, placeholder: n, className: l, style: o, ...p }, u) => /* @__PURE__ */ s("div", { className: "w-full", children: [
7849
- e && /* @__PURE__ */ s(
7853
+ ({ label: e, error: t, helperText: i, options: a, placeholder: n, className: l, style: s, ...p }, u) => /* @__PURE__ */ o("div", { className: "w-full", children: [
7854
+ e && /* @__PURE__ */ o(
7850
7855
  "label",
7851
7856
  {
7852
7857
  className: "block text-sm font-medium mb-1",
@@ -7857,7 +7862,7 @@ const re = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
7857
7862
  ]
7858
7863
  }
7859
7864
  ),
7860
- /* @__PURE__ */ s(
7865
+ /* @__PURE__ */ o(
7861
7866
  "select",
7862
7867
  {
7863
7868
  ref: u,
@@ -7873,7 +7878,7 @@ const re = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
7873
7878
  backgroundColor: "var(--metakyc-input-bg, #ffffff)",
7874
7879
  color: "var(--metakyc-input-text, var(--metakyc-text-primary, #111827))",
7875
7880
  borderColor: t ? "var(--metakyc-danger, #ef4444)" : "var(--metakyc-input-border, var(--metakyc-border, #d1d5db))",
7876
- ...o
7881
+ ...s
7877
7882
  },
7878
7883
  ...p,
7879
7884
  children: [
@@ -7918,10 +7923,10 @@ const qt = 280, Vi = ({
7918
7923
  options: a,
7919
7924
  placeholder: n,
7920
7925
  disabled: l = !1,
7921
- readOnly: o = !1,
7926
+ readOnly: s = !1,
7922
7927
  required: p = !1
7923
7928
  }) => {
7924
- const { t: u } = Ie(), d = n ?? u("common.select"), y = l || o, [v, T] = b(!1), [I, x] = b(""), [q, S] = b(null), [L, B] = b({
7929
+ const { t: u } = Te(), d = n ?? u("common.select"), y = l || s, [v, T] = b(!1), [I, x] = b(""), [q, S] = b(null), [L, B] = b({
7925
7930
  bg: "#ffffff",
7926
7931
  borderColor: "#d1d5db",
7927
7932
  textPrimary: "#111827",
@@ -7979,7 +7984,7 @@ const qt = 280, Vi = ({
7979
7984
  }, W = (P) => {
7980
7985
  var A;
7981
7986
  return ((A = a.find((O) => O.value === P)) == null ? void 0 : A.label) || P;
7982
- }, { bg: _, borderColor: oe, textPrimary: H, textSecondary: je, primaryColor: ge, primaryLight: ye, hoverBg: be } = L, ue = v && q && /* @__PURE__ */ s(
7987
+ }, { bg: _, borderColor: oe, textPrimary: H, textSecondary: je, primaryColor: ge, primaryLight: ye, hoverBg: be } = L, ue = v && q && /* @__PURE__ */ o(
7983
7988
  "div",
7984
7989
  {
7985
7990
  ref: K,
@@ -8031,7 +8036,7 @@ const qt = 280, Vi = ({
8031
8036
  ) }),
8032
8037
  /* @__PURE__ */ r("ul", { style: { listStyle: "none", margin: 0, padding: "4px 0", maxHeight: "192px", overflowY: "auto" }, children: V.length === 0 ? /* @__PURE__ */ r("li", { style: { padding: "8px 12px", fontSize: "13px", color: je }, children: u("common.noResults") }) : V.map((P) => {
8033
8038
  const A = t.includes(P.value);
8034
- return /* @__PURE__ */ s(
8039
+ return /* @__PURE__ */ o(
8035
8040
  "li",
8036
8041
  {
8037
8042
  onClick: () => Q(P.value),
@@ -8068,7 +8073,7 @@ const qt = 280, Vi = ({
8068
8073
  P.value
8069
8074
  );
8070
8075
  }) }),
8071
- t.length > 0 && /* @__PURE__ */ r("div", { style: { padding: "6px 12px", borderTop: `1px solid ${oe}` }, children: /* @__PURE__ */ s(
8076
+ t.length > 0 && /* @__PURE__ */ r("div", { style: { padding: "6px 12px", borderTop: `1px solid ${oe}` }, children: /* @__PURE__ */ o(
8072
8077
  "button",
8073
8078
  {
8074
8079
  type: "button",
@@ -8087,8 +8092,8 @@ const qt = 280, Vi = ({
8087
8092
  ]
8088
8093
  }
8089
8094
  );
8090
- return /* @__PURE__ */ s("div", { className: "w-full metakyc-multiselect", ref: F, children: [
8091
- e && /* @__PURE__ */ s(
8095
+ return /* @__PURE__ */ o("div", { className: "w-full metakyc-multiselect", ref: F, children: [
8096
+ e && /* @__PURE__ */ o(
8092
8097
  "label",
8093
8098
  {
8094
8099
  className: "block text-sm font-medium mb-1",
@@ -8099,7 +8104,7 @@ const qt = 280, Vi = ({
8099
8104
  ]
8100
8105
  }
8101
8106
  ),
8102
- /* @__PURE__ */ s(
8107
+ /* @__PURE__ */ o(
8103
8108
  "div",
8104
8109
  {
8105
8110
  ref: U,
@@ -8124,7 +8129,7 @@ const qt = 280, Vi = ({
8124
8129
  style: { color: "var(--metakyc-text-secondary, #9ca3af)" },
8125
8130
  children: d
8126
8131
  }
8127
- ) : /* @__PURE__ */ r("div", { className: "flex flex-wrap gap-1 pr-6", children: t.map((P) => /* @__PURE__ */ s(
8132
+ ) : /* @__PURE__ */ r("div", { className: "flex flex-wrap gap-1 pr-6", children: t.map((P) => /* @__PURE__ */ o(
8128
8133
  "span",
8129
8134
  {
8130
8135
  className: "metakyc-multiselect-chip inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs font-medium",
@@ -8186,14 +8191,14 @@ const qt = 280, Vi = ({
8186
8191
  options: a,
8187
8192
  placeholder: n,
8188
8193
  value: l,
8189
- onChange: o,
8194
+ onChange: s,
8190
8195
  disabled: p = !1,
8191
8196
  readOnly: u = !1,
8192
8197
  required: d = !1,
8193
8198
  className: y
8194
8199
  }) => {
8195
8200
  var se;
8196
- const { t: v } = Ie(), T = n ?? v("common.select"), I = p || u, [x, q] = b(!1), [S, L] = b(""), [B, F] = b(null), [U, K] = b({
8201
+ const { t: v } = Te(), T = n ?? v("common.select"), I = p || u, [x, q] = b(!1), [S, L] = b(""), [B, F] = b(null), [U, K] = b({
8197
8202
  bg: "#ffffff",
8198
8203
  border: "#d1d5db",
8199
8204
  text: "#111827",
@@ -8202,7 +8207,7 @@ const qt = 280, Vi = ({
8202
8207
  primaryLight: "#eff6ff",
8203
8208
  hoverBg: "#f9fafb"
8204
8209
  }), J = te(() => {
8205
- const D = getComputedStyle(document.querySelector(".metakyc-sdk") || document.documentElement), ne = (Te, ze) => D.getPropertyValue(Te).trim() || ze, Z = ne("--metakyc-input-bg", ne("--metakyc-background", "#ffffff"));
8210
+ const D = getComputedStyle(document.querySelector(".metakyc-sdk") || document.documentElement), ne = (Re, ze) => D.getPropertyValue(Re).trim() || ze, Z = ne("--metakyc-input-bg", ne("--metakyc-background", "#ffffff"));
8206
8211
  K({
8207
8212
  bg: Z,
8208
8213
  border: ne("--metakyc-input-border", ne("--metakyc-border", "#d1d5db")),
@@ -8232,9 +8237,9 @@ const qt = 280, Vi = ({
8232
8237
  ke(() => {
8233
8238
  if (!x) return;
8234
8239
  const D = (ne) => {
8235
- var Te, ze;
8240
+ var Re, ze;
8236
8241
  const Z = ne.target;
8237
- !((Te = ae.current) != null && Te.contains(Z)) && !((ze = R.current) != null && ze.contains(Z)) && W();
8242
+ !((Re = ae.current) != null && Re.contains(Z)) && !((ze = R.current) != null && ze.contains(Z)) && W();
8238
8243
  };
8239
8244
  return document.addEventListener("mousedown", D), () => document.removeEventListener("mousedown", D);
8240
8245
  }, [x, W]), ke(() => {
@@ -8255,8 +8260,8 @@ const qt = 280, Vi = ({
8255
8260
  const oe = a.filter(
8256
8261
  (D) => D.label.toLowerCase().includes(S.toLowerCase()) || D.value.toLowerCase().includes(S.toLowerCase())
8257
8262
  ), H = (se = a.find((D) => D.value === l)) == null ? void 0 : se.label, je = (D, ne) => {
8258
- I || ne || (o(D), W());
8259
- }, { bg: ge, border: ye, text: be, textSecondary: ue, primary: P, primaryLight: A, hoverBg: O } = U, he = x && B && /* @__PURE__ */ s(
8263
+ I || ne || (s(D), W());
8264
+ }, { bg: ge, border: ye, text: be, textSecondary: ue, primary: P, primaryLight: A, hoverBg: O } = U, he = x && B && /* @__PURE__ */ o(
8260
8265
  "div",
8261
8266
  {
8262
8267
  ref: R,
@@ -8348,13 +8353,13 @@ const qt = 280, Vi = ({
8348
8353
  ]
8349
8354
  }
8350
8355
  );
8351
- return /* @__PURE__ */ s(
8356
+ return /* @__PURE__ */ o(
8352
8357
  "div",
8353
8358
  {
8354
8359
  className: De("w-full metakyc-searchable-select", y),
8355
8360
  ref: ae,
8356
8361
  children: [
8357
- e && /* @__PURE__ */ s(
8362
+ e && /* @__PURE__ */ o(
8358
8363
  "label",
8359
8364
  {
8360
8365
  className: "block text-sm font-medium mb-1",
@@ -8365,7 +8370,7 @@ const qt = 280, Vi = ({
8365
8370
  ]
8366
8371
  }
8367
8372
  ),
8368
- /* @__PURE__ */ s(
8373
+ /* @__PURE__ */ o(
8369
8374
  "div",
8370
8375
  {
8371
8376
  ref: w,
@@ -8422,12 +8427,12 @@ const qi = ({
8422
8427
  accept: a,
8423
8428
  multiple: n = !1,
8424
8429
  maxSize: l,
8425
- required: o,
8430
+ required: s,
8426
8431
  onChange: p,
8427
8432
  value: u = [],
8428
8433
  className: d
8429
8434
  }) => {
8430
- const { t: y } = Ie(), [v, T] = b(!1), [I, x] = b(null), q = me(null), S = te((w) => {
8435
+ const { t: y } = Te(), [v, T] = b(!1), [I, x] = b(null), q = me(null), S = te((w) => {
8431
8436
  if (!w) return;
8432
8437
  x(null);
8433
8438
  const R = Array.from(w);
@@ -8450,9 +8455,9 @@ const qi = ({
8450
8455
  const R = u.filter((V, Q) => Q !== w);
8451
8456
  p == null || p(R);
8452
8457
  }, J = i || I, ae = u.length > 0;
8453
- return /* @__PURE__ */ s("div", { className: De("metakyc-file-upload", d), style: { width: "100%" }, children: [
8454
- e && /* @__PURE__ */ s("div", { style: { marginBottom: "8px" }, children: [
8455
- /* @__PURE__ */ s(
8458
+ return /* @__PURE__ */ o("div", { className: De("metakyc-file-upload", d), style: { width: "100%" }, children: [
8459
+ e && /* @__PURE__ */ o("div", { style: { marginBottom: "8px" }, children: [
8460
+ /* @__PURE__ */ o(
8456
8461
  "label",
8457
8462
  {
8458
8463
  style: {
@@ -8463,13 +8468,13 @@ const qi = ({
8463
8468
  },
8464
8469
  children: [
8465
8470
  e,
8466
- o && /* @__PURE__ */ r("span", { style: { color: "var(--metakyc-danger, #ef4444)", marginLeft: "2px" }, children: "*" })
8471
+ s && /* @__PURE__ */ r("span", { style: { color: "var(--metakyc-danger, #ef4444)", marginLeft: "2px" }, children: "*" })
8467
8472
  ]
8468
8473
  }
8469
8474
  ),
8470
8475
  t && /* @__PURE__ */ r("p", { style: { fontSize: "13px", color: "var(--metakyc-text-muted, #9ca3af)", marginTop: "2px" }, children: t })
8471
8476
  ] }),
8472
- /* @__PURE__ */ s(
8477
+ /* @__PURE__ */ o(
8473
8478
  "div",
8474
8479
  {
8475
8480
  className: "metakyc-file-dropzone",
@@ -8500,7 +8505,7 @@ const qi = ({
8500
8505
  }
8501
8506
  }
8502
8507
  ),
8503
- /* @__PURE__ */ s("div", { style: { display: "flex", flexDirection: "column", alignItems: "center", gap: "12px" }, children: [
8508
+ /* @__PURE__ */ o("div", { style: { display: "flex", flexDirection: "column", alignItems: "center", gap: "12px" }, children: [
8504
8509
  /* @__PURE__ */ r(
8505
8510
  "div",
8506
8511
  {
@@ -8514,7 +8519,7 @@ const qi = ({
8514
8519
  backgroundColor: v ? "color-mix(in srgb, var(--metakyc-primary, #2563eb) 15%, transparent)" : "var(--metakyc-surface, #f9fafb)",
8515
8520
  transition: "background-color 0.2s ease"
8516
8521
  },
8517
- children: /* @__PURE__ */ s(
8522
+ children: /* @__PURE__ */ o(
8518
8523
  "svg",
8519
8524
  {
8520
8525
  width: "24",
@@ -8535,13 +8540,13 @@ const qi = ({
8535
8540
  )
8536
8541
  }
8537
8542
  ),
8538
- /* @__PURE__ */ s("div", { children: [
8539
- /* @__PURE__ */ s("p", { style: { fontSize: "14px", color: "var(--metakyc-text-secondary, #6b7280)", margin: 0 }, children: [
8543
+ /* @__PURE__ */ o("div", { children: [
8544
+ /* @__PURE__ */ o("p", { style: { fontSize: "14px", color: "var(--metakyc-text-secondary, #6b7280)", margin: 0 }, children: [
8540
8545
  /* @__PURE__ */ r("span", { style: { fontWeight: 600, color: "var(--metakyc-primary, #2563eb)" }, children: y("uploadDocument.clickToUpload") }),
8541
8546
  " ",
8542
8547
  y("uploadDocument.orDragDrop")
8543
8548
  ] }),
8544
- (a || l) && /* @__PURE__ */ s("p", { style: { fontSize: "12px", color: "var(--metakyc-text-muted, #9ca3af)", marginTop: "4px" }, children: [
8549
+ (a || l) && /* @__PURE__ */ o("p", { style: { fontSize: "12px", color: "var(--metakyc-text-muted, #9ca3af)", marginTop: "4px" }, children: [
8545
8550
  a && /* @__PURE__ */ r("span", { children: a }),
8546
8551
  a && l && /* @__PURE__ */ r("span", { children: " · " }),
8547
8552
  l && /* @__PURE__ */ r("span", { children: y("uploadDocument.maxSize", { size: St(l) }) })
@@ -8553,7 +8558,7 @@ const qi = ({
8553
8558
  ),
8554
8559
  ae && /* @__PURE__ */ r("div", { style: { marginTop: "12px", display: "flex", flexDirection: "column", gap: "8px" }, children: u.map((w, R) => {
8555
8560
  const V = Bi(w), Q = V === "image", X = Q ? URL.createObjectURL(w) : null;
8556
- return /* @__PURE__ */ s(
8561
+ return /* @__PURE__ */ o(
8557
8562
  "div",
8558
8563
  {
8559
8564
  className: "metakyc-file-item",
@@ -8589,19 +8594,19 @@ const qi = ({
8589
8594
  alt: w.name,
8590
8595
  style: { width: "100%", height: "100%", objectFit: "cover", borderRadius: "8px" }
8591
8596
  }
8592
- ) : V === "pdf" ? /* @__PURE__ */ s("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "var(--metakyc-danger, #ef4444)", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
8597
+ ) : V === "pdf" ? /* @__PURE__ */ o("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "var(--metakyc-danger, #ef4444)", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
8593
8598
  /* @__PURE__ */ r("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
8594
8599
  /* @__PURE__ */ r("polyline", { points: "14 2 14 8 20 8" }),
8595
8600
  /* @__PURE__ */ r("line", { x1: "16", y1: "13", x2: "8", y2: "13" }),
8596
8601
  /* @__PURE__ */ r("line", { x1: "16", y1: "17", x2: "8", y2: "17" }),
8597
8602
  /* @__PURE__ */ r("polyline", { points: "10 9 9 9 8 9" })
8598
- ] }) : /* @__PURE__ */ s("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "var(--metakyc-primary, #2563eb)", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
8603
+ ] }) : /* @__PURE__ */ o("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "var(--metakyc-primary, #2563eb)", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
8599
8604
  /* @__PURE__ */ r("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
8600
8605
  /* @__PURE__ */ r("polyline", { points: "14 2 14 8 20 8" })
8601
8606
  ] })
8602
8607
  }
8603
8608
  ),
8604
- /* @__PURE__ */ s("div", { style: { flex: 1, minWidth: 0 }, children: [
8609
+ /* @__PURE__ */ o("div", { style: { flex: 1, minWidth: 0 }, children: [
8605
8610
  /* @__PURE__ */ r("p", { style: {
8606
8611
  fontSize: "13px",
8607
8612
  fontWeight: 500,
@@ -8641,7 +8646,7 @@ const qi = ({
8641
8646
  onMouseLeave: (W) => {
8642
8647
  W.currentTarget.style.backgroundColor = "transparent", W.currentTarget.style.color = "var(--metakyc-text-muted, #9ca3af)";
8643
8648
  },
8644
- children: /* @__PURE__ */ s("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
8649
+ children: /* @__PURE__ */ o("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
8645
8650
  /* @__PURE__ */ r("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
8646
8651
  /* @__PURE__ */ r("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
8647
8652
  ] })
@@ -8655,8 +8660,8 @@ const qi = ({
8655
8660
  J && /* @__PURE__ */ r("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", marginTop: "6px" }, children: J })
8656
8661
  ] });
8657
8662
  }, Ui = kt(
8658
- ({ countryCode: e = "+1", onCountryCodeChange: t, className: i, ...a }, n) => /* @__PURE__ */ s("div", { className: "w-full", children: [
8659
- a.label && /* @__PURE__ */ s(
8663
+ ({ countryCode: e = "+1", onCountryCodeChange: t, className: i, ...a }, n) => /* @__PURE__ */ o("div", { className: "w-full", children: [
8664
+ a.label && /* @__PURE__ */ o(
8660
8665
  "label",
8661
8666
  {
8662
8667
  className: "block text-sm font-medium mb-1",
@@ -8667,7 +8672,7 @@ const qi = ({
8667
8672
  ]
8668
8673
  }
8669
8674
  ),
8670
- /* @__PURE__ */ s("div", { className: "flex gap-2", children: [
8675
+ /* @__PURE__ */ o("div", { className: "flex gap-2", children: [
8671
8676
  /* @__PURE__ */ r(
8672
8677
  "input",
8673
8678
  {
@@ -8708,7 +8713,7 @@ Ui.displayName = "PhoneInput";
8708
8713
  * This source code is licensed under the ISC license.
8709
8714
  * See the LICENSE file in the root directory of this source tree.
8710
8715
  */
8711
- const rr = (...e) => e.filter((t, i, a) => !!t && t.trim() !== "" && a.indexOf(t) === i).join(" ").trim();
8716
+ const ir = (...e) => e.filter((t, i, a) => !!t && t.trim() !== "" && a.indexOf(t) === i).join(" ").trim();
8712
8717
  /**
8713
8718
  * @license lucide-react v0.574.0 - ISC
8714
8719
  *
@@ -8779,7 +8784,7 @@ const $i = kt(
8779
8784
  absoluteStrokeWidth: a,
8780
8785
  className: n = "",
8781
8786
  children: l,
8782
- iconNode: o,
8787
+ iconNode: s,
8783
8788
  ...p
8784
8789
  }, u) => Tt(
8785
8790
  "svg",
@@ -8790,12 +8795,12 @@ const $i = kt(
8790
8795
  height: t,
8791
8796
  stroke: e,
8792
8797
  strokeWidth: a ? Number(i) * 24 / Number(t) : i,
8793
- className: rr("lucide", n),
8798
+ className: ir("lucide", n),
8794
8799
  ...!l && !Hi(p) && { "aria-hidden": "true" },
8795
8800
  ...p
8796
8801
  },
8797
8802
  [
8798
- ...o.map(([d, y]) => Tt(d, y)),
8803
+ ...s.map(([d, y]) => Tt(d, y)),
8799
8804
  ...Array.isArray(l) ? l : [l]
8800
8805
  ]
8801
8806
  )
@@ -8806,12 +8811,12 @@ const $i = kt(
8806
8811
  * This source code is licensed under the ISC license.
8807
8812
  * See the LICENSE file in the root directory of this source tree.
8808
8813
  */
8809
- const ir = (e, t) => {
8814
+ const ar = (e, t) => {
8810
8815
  const i = kt(
8811
8816
  ({ className: a, ...n }, l) => Tt($i, {
8812
8817
  ref: l,
8813
8818
  iconNode: t,
8814
- className: rr(
8819
+ className: ir(
8815
8820
  `lucide-${Wi(Wt(e))}`,
8816
8821
  `lucide-${e}`,
8817
8822
  a
@@ -8827,14 +8832,14 @@ const ir = (e, t) => {
8827
8832
  * This source code is licensed under the ISC license.
8828
8833
  * See the LICENSE file in the root directory of this source tree.
8829
8834
  */
8830
- const _i = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], ar = ir("chevron-left", _i);
8835
+ const _i = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], nr = ar("chevron-left", _i);
8831
8836
  /**
8832
8837
  * @license lucide-react v0.574.0 - ISC
8833
8838
  *
8834
8839
  * This source code is licensed under the ISC license.
8835
8840
  * See the LICENSE file in the root directory of this source tree.
8836
8841
  */
8837
- const Gi = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], nr = ir("chevron-right", Gi);
8842
+ const Gi = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], or = ar("chevron-right", Gi);
8838
8843
  function Qi(e, t) {
8839
8844
  const i = !t || t.length === 0 || t.every((a) => !a || !a.trim());
8840
8845
  if (e.isRequired && i)
@@ -8866,7 +8871,7 @@ function Qi(e, t) {
8866
8871
  }
8867
8872
  function Xi(e) {
8868
8873
  const t = e.flatMap(
8869
- (a, n) => (a.questions ?? []).map((l, o) => ({ question: l, groupIndex: n, qIdx: o }))
8874
+ (a, n) => (a.questions ?? []).map((l, s) => ({ question: l, groupIndex: n, qIdx: s }))
8870
8875
  ), i = /* @__PURE__ */ new Map();
8871
8876
  for (const a of t) {
8872
8877
  const n = a.question.pageNumber != null && a.question.pageNumber > 0 ? a.question.pageNumber : 1;
@@ -8879,7 +8884,7 @@ const Zi = ({
8879
8884
  onComplete: t,
8880
8885
  onBack: i
8881
8886
  }) => {
8882
- const { t: a } = Ie(), { questionnaire: n, initialAnswers: l, isLoading: o, isSubmitting: p, error: u, submit: d } = Li(e), [y, v] = b({}), [T, I] = b({}), [x, q] = b(0);
8887
+ const { t: a } = Te(), { questionnaire: n, initialAnswers: l, isLoading: s, isSubmitting: p, error: u, submit: d } = Li(e), [y, v] = b({}), [T, I] = b({}), [x, q] = b(0);
8883
8888
  Se.useEffect(() => {
8884
8889
  l && Object.keys(l).length > 0 && Object.keys(y).length === 0 && v(l);
8885
8890
  }, [l]);
@@ -8920,15 +8925,15 @@ const Zi = ({
8920
8925
  console.error("Questionnaire submit error:", w);
8921
8926
  }
8922
8927
  };
8923
- return o ? /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ r(Ve, { className: "my-8" }) }) }) : u ? /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ s("p", { className: "text-danger-500", children: [
8928
+ return s ? /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ r(Ve, { className: "my-8" }) }) }) : u ? /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ o("p", { className: "text-danger-500", children: [
8924
8929
  a("questionnaire.errorLoading"),
8925
8930
  " ",
8926
8931
  u.message
8927
- ] }) }) }) : n ? /* @__PURE__ */ s(re, { children: [
8928
- /* @__PURE__ */ s(Ce, { children: [
8932
+ ] }) }) }) : n ? /* @__PURE__ */ o(re, { children: [
8933
+ /* @__PURE__ */ o(Ce, { children: [
8929
8934
  /* @__PURE__ */ r("h2", { className: "text-lg font-bold", children: n.displayName }),
8930
8935
  n.subtitle && /* @__PURE__ */ r("p", { className: "text-sm", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: n.subtitle }),
8931
- S.length > 1 && /* @__PURE__ */ s("div", { className: "flex items-center justify-between mt-3", children: [
8936
+ S.length > 1 && /* @__PURE__ */ o("div", { className: "flex items-center justify-between mt-3", children: [
8932
8937
  /* @__PURE__ */ r("span", { className: "text-xs", style: { color: "var(--metakyc-text-muted, #9ca3af)" }, children: a("common.pageXofY", { current: x + 1, total: S.length }) }),
8933
8938
  /* @__PURE__ */ r("div", { className: "flex items-center gap-1.5", children: S.map((w, R) => /* @__PURE__ */ r(
8934
8939
  "div",
@@ -8954,8 +8959,8 @@ const Zi = ({
8954
8959
  },
8955
8960
  w.id
8956
8961
  )) }),
8957
- /* @__PURE__ */ s(Ne, { style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
8958
- /* @__PURE__ */ s(
8962
+ /* @__PURE__ */ o(Ne, { style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
8963
+ /* @__PURE__ */ o(
8959
8964
  G,
8960
8965
  {
8961
8966
  type: "button",
@@ -8963,7 +8968,7 @@ const Zi = ({
8963
8968
  onClick: J,
8964
8969
  style: { display: "flex", alignItems: "center", gap: "4px" },
8965
8970
  children: [
8966
- /* @__PURE__ */ r(ar, { size: 14 }),
8971
+ /* @__PURE__ */ r(nr, { size: 14 }),
8967
8972
  x > 0 ? a("common.previous") : a("common.back")
8968
8973
  ]
8969
8974
  }
@@ -8976,7 +8981,7 @@ const Zi = ({
8976
8981
  onClick: ae,
8977
8982
  children: a("common.continue")
8978
8983
  }
8979
- ) : /* @__PURE__ */ s(
8984
+ ) : /* @__PURE__ */ o(
8980
8985
  G,
8981
8986
  {
8982
8987
  type: "button",
@@ -8984,7 +8989,7 @@ const Zi = ({
8984
8989
  style: { display: "flex", alignItems: "center", gap: "4px" },
8985
8990
  children: [
8986
8991
  a("common.next"),
8987
- /* @__PURE__ */ r(nr, { size: 14 })
8992
+ /* @__PURE__ */ r(or, { size: 14 })
8988
8993
  ]
8989
8994
  }
8990
8995
  )
@@ -8993,15 +8998,15 @@ const Zi = ({
8993
8998
  ] }) : null;
8994
8999
  }, Ji = ({ question: e, value: t, error: i, onChange: a }) => {
8995
9000
  var p;
8996
- const { t: n } = Ie(), o = (((p = e.defaultAnswers) == null ? void 0 : p.length) ?? 0) > 0 ? e.showAsDropdown ? e.canMultipleAnswer ? "multi-select" : "single-select" : e.canMultipleAnswer ? "checkbox" : "radio" : "text";
8997
- return /* @__PURE__ */ s("div", { className: "space-y-2", children: [
8998
- /* @__PURE__ */ s("label", { className: "block text-sm font-medium", style: { color: "var(--metakyc-text-primary, #111827)" }, children: [
9001
+ const { t: n } = Te(), s = (((p = e.defaultAnswers) == null ? void 0 : p.length) ?? 0) > 0 ? e.showAsDropdown ? e.canMultipleAnswer ? "multi-select" : "single-select" : e.canMultipleAnswer ? "checkbox" : "radio" : "text";
9002
+ return /* @__PURE__ */ o("div", { className: "space-y-2", children: [
9003
+ /* @__PURE__ */ o("label", { className: "block text-sm font-medium", style: { color: "var(--metakyc-text-primary, #111827)" }, children: [
8999
9004
  e.text,
9000
9005
  e.isRequired && /* @__PURE__ */ r("span", { className: "text-danger-500 ml-1", children: "*" })
9001
9006
  ] }),
9002
9007
  e.subtitle && /* @__PURE__ */ r("p", { className: "text-xs", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: e.subtitle }),
9003
9008
  e.description && /* @__PURE__ */ r("p", { className: "text-xs", style: { color: "var(--metakyc-text-muted, #9ca3af)" }, children: e.description }),
9004
- o === "text" && /* @__PURE__ */ r(
9009
+ s === "text" && /* @__PURE__ */ r(
9005
9010
  we,
9006
9011
  {
9007
9012
  value: t[0] ?? "",
@@ -9011,7 +9016,7 @@ const Zi = ({
9011
9016
  required: e.isRequired
9012
9017
  }
9013
9018
  ),
9014
- o === "single-select" && /* @__PURE__ */ r(
9019
+ s === "single-select" && /* @__PURE__ */ r(
9015
9020
  At,
9016
9021
  {
9017
9022
  value: t[0] ?? "",
@@ -9022,8 +9027,8 @@ const Zi = ({
9022
9027
  required: e.isRequired
9023
9028
  }
9024
9029
  ),
9025
- o === "radio" && /* @__PURE__ */ s("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
9026
- (e.defaultAnswers ?? []).map((u) => /* @__PURE__ */ s(
9030
+ s === "radio" && /* @__PURE__ */ o("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
9031
+ (e.defaultAnswers ?? []).map((u) => /* @__PURE__ */ o(
9027
9032
  "label",
9028
9033
  {
9029
9034
  className: "metakyc-option-label",
@@ -9058,8 +9063,8 @@ const Zi = ({
9058
9063
  )),
9059
9064
  i && /* @__PURE__ */ r("p", { className: "text-sm text-danger-500", children: i })
9060
9065
  ] }),
9061
- (o === "checkbox" || o === "multi-select") && /* @__PURE__ */ s("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
9062
- (e.defaultAnswers ?? []).map((u) => /* @__PURE__ */ s(
9066
+ (s === "checkbox" || s === "multi-select") && /* @__PURE__ */ o("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
9067
+ (e.defaultAnswers ?? []).map((u) => /* @__PURE__ */ o(
9063
9068
  "label",
9064
9069
  {
9065
9070
  className: "metakyc-option-label",
@@ -9081,7 +9086,7 @@ const Zi = ({
9081
9086
  )),
9082
9087
  i && /* @__PURE__ */ r("p", { className: "text-sm text-danger-500", children: i })
9083
9088
  ] }),
9084
- i && o === "text" && null
9089
+ i && s === "text" && null
9085
9090
  ] });
9086
9091
  };
9087
9092
  function ea(e) {
@@ -9097,7 +9102,7 @@ const ta = ({
9097
9102
  onComplete: t,
9098
9103
  onBack: i
9099
9104
  }) => {
9100
- const { t: a } = Ie(), { uploadDocument: n, isLoading: l, isSubmitting: o, error: p, submit: u } = Ei(e), [d, y] = b({}), [v, T] = b(null), [I, x] = b(0), [q, S] = b({}), L = Me(
9105
+ const { t: a } = Te(), { uploadDocument: n, isLoading: l, isSubmitting: s, error: p, submit: u } = Ei(e), [d, y] = b({}), [v, T] = b(null), [I, x] = b(0), [q, S] = b({}), L = Me(
9101
9106
  () => n ? ea(n.uploadDocumentFiles) : [],
9102
9107
  [n]
9103
9108
  ), B = L[I] ?? [], F = I === L.length - 1, U = L.length, K = te(() => {
@@ -9137,10 +9142,10 @@ const ta = ({
9137
9142
  }
9138
9143
  }
9139
9144
  };
9140
- return l ? /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ s("div", { style: { display: "flex", flexDirection: "column", alignItems: "center", padding: "48px 0", gap: "16px" }, children: [
9145
+ return l ? /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ o("div", { style: { display: "flex", flexDirection: "column", alignItems: "center", padding: "48px 0", gap: "16px" }, children: [
9141
9146
  /* @__PURE__ */ r(Ve, { className: "my-8" }),
9142
9147
  /* @__PURE__ */ r("p", { style: { fontSize: "14px", color: "var(--metakyc-text-muted, #9ca3af)" }, children: a("uploadDocument.loading") })
9143
- ] }) }) }) : p ? /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ s("div", { style: {
9148
+ ] }) }) }) : p ? /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ o("div", { style: {
9144
9149
  display: "flex",
9145
9150
  flexDirection: "column",
9146
9151
  alignItems: "center",
@@ -9156,15 +9161,15 @@ const ta = ({
9156
9161
  display: "flex",
9157
9162
  alignItems: "center",
9158
9163
  justifyContent: "center"
9159
- }, children: /* @__PURE__ */ s("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "var(--metakyc-danger, #ef4444)", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
9164
+ }, children: /* @__PURE__ */ o("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "var(--metakyc-danger, #ef4444)", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
9160
9165
  /* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "10" }),
9161
9166
  /* @__PURE__ */ r("line", { x1: "15", y1: "9", x2: "9", y2: "15" }),
9162
9167
  /* @__PURE__ */ r("line", { x1: "9", y1: "9", x2: "15", y2: "15" })
9163
9168
  ] }) }),
9164
9169
  /* @__PURE__ */ r("p", { style: { fontSize: "14px", color: "var(--metakyc-danger, #ef4444)", fontWeight: 500 }, children: a("uploadDocument.errorLoading") }),
9165
9170
  /* @__PURE__ */ r("p", { style: { fontSize: "13px", color: "var(--metakyc-text-muted, #9ca3af)" }, children: p.message })
9166
- ] }) }) }) : n ? /* @__PURE__ */ s(re, { children: [
9167
- /* @__PURE__ */ s(Ce, { children: [
9171
+ ] }) }) }) : n ? /* @__PURE__ */ o(re, { children: [
9172
+ /* @__PURE__ */ o(Ce, { children: [
9168
9173
  /* @__PURE__ */ r("h2", { style: {
9169
9174
  fontSize: "18px",
9170
9175
  fontWeight: 700,
@@ -9176,7 +9181,7 @@ const ta = ({
9176
9181
  color: "var(--metakyc-text-secondary, #6b7280)",
9177
9182
  marginTop: "4px"
9178
9183
  }, children: n.subtitle }),
9179
- U > 1 && /* @__PURE__ */ s("div", { style: {
9184
+ U > 1 && /* @__PURE__ */ o("div", { style: {
9180
9185
  display: "flex",
9181
9186
  alignItems: "center",
9182
9187
  justifyContent: "space-between",
@@ -9198,7 +9203,7 @@ const ta = ({
9198
9203
  )) })
9199
9204
  ] })
9200
9205
  ] }),
9201
- n.description && I === 0 && /* @__PURE__ */ s("div", { style: {
9206
+ n.description && I === 0 && /* @__PURE__ */ o("div", { style: {
9202
9207
  margin: "0 24px",
9203
9208
  marginTop: "4px",
9204
9209
  display: "flex",
@@ -9208,7 +9213,7 @@ const ta = ({
9208
9213
  backgroundColor: "color-mix(in srgb, var(--metakyc-primary, #2563eb) 5%, var(--metakyc-background, #ffffff))",
9209
9214
  border: "1px solid color-mix(in srgb, var(--metakyc-primary, #2563eb) 15%, transparent)"
9210
9215
  }, children: [
9211
- /* @__PURE__ */ s(
9216
+ /* @__PURE__ */ o(
9212
9217
  "svg",
9213
9218
  {
9214
9219
  width: "18",
@@ -9254,7 +9259,7 @@ const ta = ({
9254
9259
  },
9255
9260
  R.id
9256
9261
  )) }) }),
9257
- v && /* @__PURE__ */ s("div", { style: {
9262
+ v && /* @__PURE__ */ o("div", { style: {
9258
9263
  margin: "0 24px",
9259
9264
  padding: "10px 14px",
9260
9265
  borderRadius: "8px",
@@ -9264,14 +9269,14 @@ const ta = ({
9264
9269
  alignItems: "center",
9265
9270
  gap: "8px"
9266
9271
  }, children: [
9267
- /* @__PURE__ */ s("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "var(--metakyc-danger, #ef4444)", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", style: { flexShrink: 0 }, children: [
9272
+ /* @__PURE__ */ o("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "var(--metakyc-danger, #ef4444)", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", style: { flexShrink: 0 }, children: [
9268
9273
  /* @__PURE__ */ r("path", { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }),
9269
9274
  /* @__PURE__ */ r("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
9270
9275
  /* @__PURE__ */ r("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
9271
9276
  ] }),
9272
9277
  /* @__PURE__ */ r("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", margin: 0 }, children: v })
9273
9278
  ] }),
9274
- /* @__PURE__ */ r(Ne, { children: /* @__PURE__ */ s("div", { style: {
9279
+ /* @__PURE__ */ r(Ne, { children: /* @__PURE__ */ o("div", { style: {
9275
9280
  display: "flex",
9276
9281
  alignItems: "center",
9277
9282
  justifyContent: "space-between",
@@ -9290,9 +9295,9 @@ const ta = ({
9290
9295
  G,
9291
9296
  {
9292
9297
  type: "button",
9293
- isLoading: o,
9298
+ isLoading: s,
9294
9299
  onClick: w,
9295
- children: a(o ? "uploadDocument.uploading" : "common.continue")
9300
+ children: a(s ? "uploadDocument.uploading" : "common.continue")
9296
9301
  }
9297
9302
  ) : /* @__PURE__ */ r(
9298
9303
  G,
@@ -9305,19 +9310,19 @@ const ta = ({
9305
9310
  ] }) })
9306
9311
  ] }) : null;
9307
9312
  }, ra = ({ applicantId: e, onComplete: t, onBack: i }) => {
9308
- const { t: a } = Ie(), { overview: n, isLoading: l, isSubmitting: o, error: p, passOverview: u } = Pi(e), d = async () => {
9313
+ const { t: a } = Te(), { overview: n, isLoading: l, isSubmitting: s, error: p, passOverview: u } = Pi(e), d = async () => {
9309
9314
  await u(), t == null || t();
9310
9315
  };
9311
- return l ? /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ r(Ve, { className: "my-8" }) }) }) : p ? /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ s("p", { className: "text-danger-500", children: [
9316
+ return l ? /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ r(Ve, { className: "my-8" }) }) }) : p ? /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ o("p", { className: "text-danger-500", children: [
9312
9317
  a("overview.errorLoading"),
9313
9318
  " ",
9314
9319
  p.message
9315
- ] }) }) }) : n ? /* @__PURE__ */ s(re, { children: [
9316
- /* @__PURE__ */ s(Ce, { children: [
9320
+ ] }) }) }) : n ? /* @__PURE__ */ o(re, { children: [
9321
+ /* @__PURE__ */ o(Ce, { children: [
9317
9322
  /* @__PURE__ */ r("h2", { className: "text-lg font-bold", children: n.title || a("overview.title") }),
9318
9323
  n.description && /* @__PURE__ */ r("p", { className: "mt-1", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: n.description })
9319
9324
  ] }),
9320
- /* @__PURE__ */ r(ie, { className: "space-y-8", children: n.steps && n.steps.length > 0 ? n.steps.sort((y, v) => y.order - v.order).map((y) => /* @__PURE__ */ s("div", { className: "metakyc-overview-step-item flex items-center space-x-3", children: [
9325
+ /* @__PURE__ */ r(ie, { className: "space-y-8", children: n.steps && n.steps.length > 0 ? n.steps.sort((y, v) => y.order - v.order).map((y) => /* @__PURE__ */ o("div", { className: "metakyc-overview-step-item flex items-center space-x-3", children: [
9321
9326
  /* @__PURE__ */ r("div", { className: "metakyc-step-icon flex-shrink-0", children: /* @__PURE__ */ r(
9322
9327
  "div",
9323
9328
  {
@@ -9326,7 +9331,7 @@ const ta = ({
9326
9331
  children: y.order + 1
9327
9332
  }
9328
9333
  ) }),
9329
- /* @__PURE__ */ s(
9334
+ /* @__PURE__ */ o(
9330
9335
  "div",
9331
9336
  {
9332
9337
  className: "metakyc-step-content",
@@ -9343,9 +9348,9 @@ const ta = ({
9343
9348
  }
9344
9349
  )
9345
9350
  ] }, y.order)) : /* @__PURE__ */ r("div", { className: "text-center py-8", children: /* @__PURE__ */ r("p", { style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: a("overview.loadingOverview") }) }) }),
9346
- /* @__PURE__ */ s(Ne, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
9351
+ /* @__PURE__ */ o(Ne, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
9347
9352
  i && /* @__PURE__ */ r(G, { type: "button", variant: "outline", onClick: i, children: a("common.back") }),
9348
- /* @__PURE__ */ r(G, { onClick: d, isLoading: o, children: a("common.continue") })
9353
+ /* @__PURE__ */ r(G, { onClick: d, isLoading: s, children: a("common.continue") })
9349
9354
  ] })
9350
9355
  ] }) : null;
9351
9356
  };
@@ -9415,17 +9420,17 @@ const ca = ({
9415
9420
  onComplete: t,
9416
9421
  onBack: i
9417
9422
  }) => {
9418
- const { t: a } = Ie(), { config: n } = Fe(), l = n.locale ?? "en", { criteria: o, initialAnswers: p, isLoading: u, isSubmitting: d, error: y, submit: v } = ji(e), [T, I] = b({}), [x, q] = b({}), [S, L] = b(0), [B, F] = b(!1);
9423
+ const { t: a } = Te(), { config: n } = Fe(), l = n.locale ?? "en", { criteria: s, initialAnswers: p, isLoading: u, isSubmitting: d, error: y, submit: v } = ji(e), [T, I] = b({}), [x, q] = b({}), [S, L] = b(0), [B, F] = b(!1);
9419
9424
  Se.useEffect(() => {
9420
9425
  p && Object.keys(p).length > 0 && Object.keys(T).length === 0 && I(p);
9421
9426
  }, [p]);
9422
9427
  const U = Me(
9423
- () => o && o.length > 0 ? sa(o) : [],
9424
- [o]
9428
+ () => s && s.length > 0 ? sa(s) : [],
9429
+ [s]
9425
9430
  ), K = S === U.length - 1, J = U[S] ?? [];
9426
9431
  Se.useEffect(() => {
9427
- !u && o && o.length === 0 && !B && !d && (F(!0), v({ applicantId: e, criteriaValueInputs: [] }).then(() => t == null ? void 0 : t()).catch(console.error));
9428
- }, [u, o, B, d, v, e, t]);
9432
+ !u && s && s.length === 0 && !B && !d && (F(!0), v({ applicantId: e, criteriaValueInputs: [] }).then(() => t == null ? void 0 : t()).catch(console.error));
9433
+ }, [u, s, B, d, v, e, t]);
9429
9434
  const ae = te((X, W) => {
9430
9435
  I((_) => ({ ..._, [X]: W })), q((_) => {
9431
9436
  const oe = { ..._ };
@@ -9443,9 +9448,9 @@ const ca = ({
9443
9448
  }, V = () => {
9444
9449
  S > 0 ? L((X) => X - 1) : i == null || i();
9445
9450
  }, Q = async () => {
9446
- if (!(!w() || !o))
9451
+ if (!(!w() || !s))
9447
9452
  try {
9448
- const X = o.map((_) => {
9453
+ const X = s.map((_) => {
9449
9454
  const oe = (T[_.id] ?? []).filter((H) => H && H.trim());
9450
9455
  return oe.length > 0 ? { riskCriteriaId: _.id, values: oe } : null;
9451
9456
  }).filter((_) => _ !== null);
@@ -9454,21 +9459,21 @@ const ca = ({
9454
9459
  console.error("Risk scoring submit error:", X);
9455
9460
  }
9456
9461
  };
9457
- return u ? /* @__PURE__ */ r(re, { children: /* @__PURE__ */ s(ie, { children: [
9462
+ return u ? /* @__PURE__ */ r(re, { children: /* @__PURE__ */ o(ie, { children: [
9458
9463
  /* @__PURE__ */ r(Ve, { className: "my-8" }),
9459
9464
  /* @__PURE__ */ r("p", { className: "text-center text-sm mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: a("riskScoring.loadingCriteria") })
9460
- ] }) }) : !u && o && o.length === 0 ? /* @__PURE__ */ r(re, { children: /* @__PURE__ */ s(ie, { children: [
9465
+ ] }) }) : !u && s && s.length === 0 ? /* @__PURE__ */ r(re, { children: /* @__PURE__ */ o(ie, { children: [
9461
9466
  /* @__PURE__ */ r(Ve, { className: "my-8" }),
9462
9467
  /* @__PURE__ */ r("p", { className: "text-center text-sm mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: a("riskScoring.noCriteria") })
9463
- ] }) }) : y ? /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ s("p", { className: "text-danger-500", children: [
9468
+ ] }) }) : y ? /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ o("p", { className: "text-danger-500", children: [
9464
9469
  a("riskScoring.errorLoading"),
9465
9470
  " ",
9466
9471
  y.message
9467
- ] }) }) }) : o ? /* @__PURE__ */ s(re, { children: [
9468
- /* @__PURE__ */ s(Ce, { children: [
9472
+ ] }) }) }) : s ? /* @__PURE__ */ o(re, { children: [
9473
+ /* @__PURE__ */ o(Ce, { children: [
9469
9474
  /* @__PURE__ */ r("h2", { className: "text-lg font-bold", children: a("riskScoring.title") }),
9470
9475
  /* @__PURE__ */ r("p", { className: "text-sm", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: a("riskScoring.subtitle") }),
9471
- U.length > 1 && /* @__PURE__ */ s("div", { className: "flex items-center justify-between mt-3", children: [
9476
+ U.length > 1 && /* @__PURE__ */ o("div", { className: "flex items-center justify-between mt-3", children: [
9472
9477
  /* @__PURE__ */ r("span", { className: "text-xs", style: { color: "var(--metakyc-text-muted, #9ca3af)" }, children: a("common.pageXofY", { current: S + 1, total: U.length }) }),
9473
9478
  /* @__PURE__ */ r("div", { className: "flex items-center gap-1.5", children: U.map((X, W) => /* @__PURE__ */ r(
9474
9479
  "div",
@@ -9495,8 +9500,8 @@ const ca = ({
9495
9500
  },
9496
9501
  X.id
9497
9502
  )) }),
9498
- /* @__PURE__ */ s(Ne, { style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
9499
- /* @__PURE__ */ s(
9503
+ /* @__PURE__ */ o(Ne, { style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
9504
+ /* @__PURE__ */ o(
9500
9505
  G,
9501
9506
  {
9502
9507
  type: "button",
@@ -9504,12 +9509,12 @@ const ca = ({
9504
9509
  onClick: V,
9505
9510
  style: { display: "flex", alignItems: "center", gap: "4px" },
9506
9511
  children: [
9507
- /* @__PURE__ */ r(ar, { size: 14 }),
9512
+ /* @__PURE__ */ r(nr, { size: 14 }),
9508
9513
  S > 0 ? a("common.previous") : a("common.back")
9509
9514
  ]
9510
9515
  }
9511
9516
  ),
9512
- K ? /* @__PURE__ */ r(G, { type: "button", isLoading: d, onClick: Q, children: a("common.continue") }) : /* @__PURE__ */ s(
9517
+ K ? /* @__PURE__ */ r(G, { type: "button", isLoading: d, onClick: Q, children: a("common.continue") }) : /* @__PURE__ */ o(
9513
9518
  G,
9514
9519
  {
9515
9520
  type: "button",
@@ -9517,7 +9522,7 @@ const ca = ({
9517
9522
  style: { display: "flex", alignItems: "center", gap: "4px" },
9518
9523
  children: [
9519
9524
  a("common.next"),
9520
- /* @__PURE__ */ r(nr, { size: 14 })
9525
+ /* @__PURE__ */ r(or, { size: 14 })
9521
9526
  ]
9522
9527
  }
9523
9528
  )
@@ -9525,15 +9530,15 @@ const ca = ({
9525
9530
  y && /* @__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: y.message }) })
9526
9531
  ] }) : null;
9527
9532
  }, da = ({ criterion: e, value: t, error: i, locale: a, onChange: n }) => {
9528
- const { t: l } = Ie(), o = la(e), p = e.valueDataType === Ge.Integer || e.valueDataType === Ge.Money || e.valueDataType === Ge.DigitOnly, u = aa(e), d = (y) => u ? na(y, a) : y;
9529
- return /* @__PURE__ */ s("div", { className: "space-y-2", children: [
9530
- /* @__PURE__ */ s("label", { className: "block text-sm font-medium", style: { color: "var(--metakyc-text-primary, #111827)" }, children: [
9533
+ const { t: l } = Te(), s = la(e), p = e.valueDataType === Ge.Integer || e.valueDataType === Ge.Money || e.valueDataType === Ge.DigitOnly, u = aa(e), d = (y) => u ? na(y, a) : y;
9534
+ return /* @__PURE__ */ o("div", { className: "space-y-2", children: [
9535
+ /* @__PURE__ */ o("label", { className: "block text-sm font-medium", style: { color: "var(--metakyc-text-primary, #111827)" }, children: [
9531
9536
  e.displayName,
9532
9537
  e.isRequired && /* @__PURE__ */ r("span", { className: "text-danger-500 ml-1", children: "*" })
9533
9538
  ] }),
9534
9539
  e.description && /* @__PURE__ */ r("p", { className: "text-xs", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: e.description }),
9535
9540
  p && (e.min !== void 0 || e.max !== void 0) && /* @__PURE__ */ r("p", { className: "text-xs", style: { color: "var(--metakyc-text-muted, #9ca3af)" }, children: e.min !== void 0 && e.max !== void 0 ? l("riskScoring.range", { min: e.min, max: e.max }) : e.min !== void 0 ? l("riskScoring.minimum", { min: e.min }) : l("riskScoring.maximum", { max: e.max }) }),
9536
- o === "text" && /* @__PURE__ */ r(
9541
+ s === "text" && /* @__PURE__ */ r(
9537
9542
  we,
9538
9543
  {
9539
9544
  value: t[0] ?? "",
@@ -9549,8 +9554,8 @@ const ca = ({
9549
9554
  }
9550
9555
  }
9551
9556
  ),
9552
- o === "radio" && /* @__PURE__ */ s("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
9553
- (e.defaultValues ?? []).map((y) => /* @__PURE__ */ s(
9557
+ s === "radio" && /* @__PURE__ */ o("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
9558
+ (e.defaultValues ?? []).map((y) => /* @__PURE__ */ o(
9554
9559
  "label",
9555
9560
  {
9556
9561
  className: "metakyc-option-label",
@@ -9585,8 +9590,8 @@ const ca = ({
9585
9590
  )),
9586
9591
  i && /* @__PURE__ */ r("p", { className: "text-sm text-danger-500", children: i })
9587
9592
  ] }),
9588
- o === "checkbox" && /* @__PURE__ */ s("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
9589
- (e.defaultValues ?? []).map((y) => /* @__PURE__ */ s(
9593
+ s === "checkbox" && /* @__PURE__ */ o("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
9594
+ (e.defaultValues ?? []).map((y) => /* @__PURE__ */ o(
9590
9595
  "label",
9591
9596
  {
9592
9597
  className: "metakyc-option-label",
@@ -9608,7 +9613,7 @@ const ca = ({
9608
9613
  )),
9609
9614
  i && /* @__PURE__ */ r("p", { className: "text-sm text-danger-500", children: i })
9610
9615
  ] }),
9611
- o === "country" && /* @__PURE__ */ r(
9616
+ s === "country" && /* @__PURE__ */ r(
9612
9617
  At,
9613
9618
  {
9614
9619
  value: t[0] ?? "",
@@ -9631,7 +9636,7 @@ const ca = ({
9631
9636
  onComplete: t,
9632
9637
  onBack: i
9633
9638
  }) => {
9634
- const { t: a } = Ie(), { investorCategorizationService: n } = Fe(), [l, o] = b(null), [p, u] = b(!1), [d, y] = b(null);
9639
+ const { t: a } = Te(), { investorCategorizationService: n } = Fe(), [l, s] = b(null), [p, u] = b(!1), [d, y] = b(null);
9635
9640
  return /* @__PURE__ */ r("form", { onSubmit: async (T) => {
9636
9641
  if (T.preventDefault(), l === null) {
9637
9642
  y(a("investorCategorization.pleaseSelect"));
@@ -9651,12 +9656,12 @@ const ca = ({
9651
9656
  } finally {
9652
9657
  u(!1);
9653
9658
  }
9654
- }, children: /* @__PURE__ */ s(re, { children: [
9655
- /* @__PURE__ */ s(Ce, { children: [
9659
+ }, children: /* @__PURE__ */ o(re, { children: [
9660
+ /* @__PURE__ */ o(Ce, { children: [
9656
9661
  /* @__PURE__ */ r("h2", { className: "text-lg font-bold", style: { color: "var(--metakyc-text-primary, #111827)" }, children: a("investorCategorization.whichStatement") }),
9657
9662
  /* @__PURE__ */ r("p", { className: "mt-2", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: a("investorCategorization.retailInvestorInfo") })
9658
9663
  ] }),
9659
- /* @__PURE__ */ s(ie, { className: "space-y-4", children: [
9664
+ /* @__PURE__ */ o(ie, { className: "space-y-4", children: [
9660
9665
  /* @__PURE__ */ r("p", { className: "text-sm font-medium mb-3", style: { color: "var(--metakyc-text-secondary, #374151)" }, children: a("investorCategorization.chooseOne") }),
9661
9666
  /* @__PURE__ */ r(
9662
9667
  "label",
@@ -9666,7 +9671,7 @@ const ca = ({
9666
9671
  borderColor: l === Le.Individual ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #e5e7eb)",
9667
9672
  backgroundColor: l === Le.Individual ? "var(--metakyc-primary-light, #dbeafe)" : "transparent"
9668
9673
  },
9669
- children: /* @__PURE__ */ s("div", { className: "flex items-start", children: [
9674
+ children: /* @__PURE__ */ o("div", { className: "flex items-start", children: [
9670
9675
  /* @__PURE__ */ r(
9671
9676
  "input",
9672
9677
  {
@@ -9674,11 +9679,11 @@ const ca = ({
9674
9679
  name: "investorType",
9675
9680
  value: Le.Individual,
9676
9681
  checked: l === Le.Individual,
9677
- onChange: () => o(Le.Individual),
9682
+ onChange: () => s(Le.Individual),
9678
9683
  className: "mt-1"
9679
9684
  }
9680
9685
  ),
9681
- /* @__PURE__ */ s("div", { className: "ml-3", children: [
9686
+ /* @__PURE__ */ o("div", { className: "ml-3", children: [
9682
9687
  /* @__PURE__ */ r("div", { className: "text-base font-semibold", style: { color: "var(--metakyc-text-primary, #111827)" }, children: a("investorCategorization.individualInvestor") }),
9683
9688
  /* @__PURE__ */ r("div", { className: "text-sm mt-1", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: a("investorCategorization.individualInvestorDesc") })
9684
9689
  ] })
@@ -9693,7 +9698,7 @@ const ca = ({
9693
9698
  borderColor: l === Le.Sophisticated ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #e5e7eb)",
9694
9699
  backgroundColor: l === Le.Sophisticated ? "var(--metakyc-primary-light, #dbeafe)" : "transparent"
9695
9700
  },
9696
- children: /* @__PURE__ */ s("div", { className: "flex items-start", children: [
9701
+ children: /* @__PURE__ */ o("div", { className: "flex items-start", children: [
9697
9702
  /* @__PURE__ */ r(
9698
9703
  "input",
9699
9704
  {
@@ -9701,11 +9706,11 @@ const ca = ({
9701
9706
  name: "investorType",
9702
9707
  value: Le.Sophisticated,
9703
9708
  checked: l === Le.Sophisticated,
9704
- onChange: () => o(Le.Sophisticated),
9709
+ onChange: () => s(Le.Sophisticated),
9705
9710
  className: "mt-1"
9706
9711
  }
9707
9712
  ),
9708
- /* @__PURE__ */ s("div", { className: "ml-3", children: [
9713
+ /* @__PURE__ */ o("div", { className: "ml-3", children: [
9709
9714
  /* @__PURE__ */ r("div", { className: "text-base font-semibold", style: { color: "var(--metakyc-text-primary, #111827)" }, children: a("investorCategorization.sophisticatedInvestor") }),
9710
9715
  /* @__PURE__ */ r("div", { className: "text-sm mt-1", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: a("investorCategorization.sophisticatedInvestorDesc") })
9711
9716
  ] })
@@ -9720,7 +9725,7 @@ const ca = ({
9720
9725
  borderColor: l === Le.HighNetWorth ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #e5e7eb)",
9721
9726
  backgroundColor: l === Le.HighNetWorth ? "var(--metakyc-primary-light, #dbeafe)" : "transparent"
9722
9727
  },
9723
- children: /* @__PURE__ */ s("div", { className: "flex items-start", children: [
9728
+ children: /* @__PURE__ */ o("div", { className: "flex items-start", children: [
9724
9729
  /* @__PURE__ */ r(
9725
9730
  "input",
9726
9731
  {
@@ -9728,24 +9733,24 @@ const ca = ({
9728
9733
  name: "investorType",
9729
9734
  value: Le.HighNetWorth,
9730
9735
  checked: l === Le.HighNetWorth,
9731
- onChange: () => o(Le.HighNetWorth),
9736
+ onChange: () => s(Le.HighNetWorth),
9732
9737
  className: "mt-1"
9733
9738
  }
9734
9739
  ),
9735
- /* @__PURE__ */ s("div", { className: "ml-3", children: [
9740
+ /* @__PURE__ */ o("div", { className: "ml-3", children: [
9736
9741
  /* @__PURE__ */ r("div", { className: "text-base font-semibold", style: { color: "var(--metakyc-text-primary, #111827)" }, children: a("investorCategorization.highNetworthInvestor") }),
9737
9742
  /* @__PURE__ */ r("div", { className: "text-sm mt-1", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: a("investorCategorization.highNetworthInvestorDesc") })
9738
9743
  ] })
9739
9744
  ] })
9740
9745
  }
9741
9746
  ),
9742
- d && /* @__PURE__ */ r("div", { className: "p-4 rounded-lg", style: { backgroundColor: "#fee2e2", border: "1px solid #fca5a5" }, children: /* @__PURE__ */ s("p", { className: "text-sm", style: { color: "#991b1b" }, children: [
9747
+ d && /* @__PURE__ */ r("div", { className: "p-4 rounded-lg", style: { backgroundColor: "#fee2e2", border: "1px solid #fca5a5" }, children: /* @__PURE__ */ o("p", { className: "text-sm", style: { color: "#991b1b" }, children: [
9743
9748
  /* @__PURE__ */ r("strong", { children: "Error:" }),
9744
9749
  " ",
9745
9750
  d
9746
9751
  ] }) })
9747
9752
  ] }),
9748
- /* @__PURE__ */ s(Ne, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
9753
+ /* @__PURE__ */ o(Ne, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
9749
9754
  i && /* @__PURE__ */ r(G, { type: "button", variant: "outline", onClick: i, children: a("common.back") }),
9750
9755
  /* @__PURE__ */ r(
9751
9756
  G,
@@ -9772,13 +9777,13 @@ const ua = ({
9772
9777
  onComplete: t,
9773
9778
  onBack: i
9774
9779
  }) => {
9775
- const { t: a } = Ie(), { appropriatenessTestService: n } = Fe(), [l, o] = b(null), [p, u] = b(!0), [d, y] = b(!1), [v, T] = b(null), [I, x] = b({}), [q, S] = b(0), [L, B] = b(!1), [F, U] = b(!1), [K, J] = b(0), [ae, w] = b(0), [R, V] = b(null);
9780
+ const { t: a } = Te(), { appropriatenessTestService: n } = Fe(), [l, s] = b(null), [p, u] = b(!0), [d, y] = b(!1), [v, T] = b(null), [I, x] = b({}), [q, S] = b(0), [L, B] = b(!1), [F, U] = b(!1), [K, J] = b(0), [ae, w] = b(0), [R, V] = b(null);
9776
9781
  ke(() => {
9777
9782
  (async () => {
9778
9783
  try {
9779
9784
  u(!0), T(null);
9780
9785
  const A = await n.getAppropriatenessTest(e);
9781
- if (o(A), A.waitTimeSpanForNextTry && A.waitTimeSpanForNextTry !== "00:00:00") {
9786
+ if (s(A), A.waitTimeSpanForNextTry && A.waitTimeSpanForNextTry !== "00:00:00") {
9782
9787
  const O = Kt(A.waitTimeSpanForNextTry);
9783
9788
  O > 0 && J(O);
9784
9789
  }
@@ -9810,7 +9815,7 @@ const ua = ({
9810
9815
  }, W = te(async () => {
9811
9816
  try {
9812
9817
  const A = await n.getAppropriatenessTest(e);
9813
- if (o(A), A.waitTimeSpanForNextTry && A.waitTimeSpanForNextTry !== "00:00:00") {
9818
+ if (s(A), A.waitTimeSpanForNextTry && A.waitTimeSpanForNextTry !== "00:00:00") {
9814
9819
  const O = Kt(A.waitTimeSpanForNextTry);
9815
9820
  O > 0 && J(O);
9816
9821
  }
@@ -9853,20 +9858,20 @@ const ua = ({
9853
9858
  B(!1), U(!1), x({}), w(0);
9854
9859
  };
9855
9860
  if (p)
9856
- return /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ s("div", { style: { display: "flex", flexDirection: "column", alignItems: "center", padding: "48px 0", gap: "16px" }, children: [
9861
+ return /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ o("div", { style: { display: "flex", flexDirection: "column", alignItems: "center", padding: "48px 0", gap: "16px" }, children: [
9857
9862
  /* @__PURE__ */ r(Ve, { className: "my-8" }),
9858
9863
  /* @__PURE__ */ r("p", { style: { fontSize: "14px", color: "var(--metakyc-text-muted, #9ca3af)" }, children: a("appropriatenessTest.loadingTest") })
9859
9864
  ] }) }) });
9860
9865
  if (!l)
9861
- return /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ s("div", { style: { textAlign: "center", padding: "48px 0" }, children: [
9866
+ return /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ o("div", { style: { textAlign: "center", padding: "48px 0" }, children: [
9862
9867
  /* @__PURE__ */ r("p", { style: { fontSize: "16px", fontWeight: 600, color: "var(--metakyc-danger, #ef4444)" }, children: a("appropriatenessTest.noTestData") }),
9863
9868
  v && /* @__PURE__ */ r("p", { style: { fontSize: "14px", color: "var(--metakyc-text-muted, #9ca3af)", marginTop: "8px" }, children: v })
9864
9869
  ] }) }) });
9865
9870
  const H = l.testAllowedMaxTry - l.totalFailedTries, je = l.appropriatenessQuestions.length, ge = Object.keys(I).length;
9866
9871
  if (K > 0)
9867
- return /* @__PURE__ */ s(re, { children: [
9872
+ return /* @__PURE__ */ o(re, { children: [
9868
9873
  /* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ r("h2", { style: { fontSize: "18px", fontWeight: 700, color: "var(--metakyc-text-primary, #111827)", margin: 0 }, children: l.displayName }) }),
9869
- /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ s("div", { style: { textAlign: "center", padding: "32px 0" }, children: [
9874
+ /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ o("div", { style: { textAlign: "center", padding: "32px 0" }, children: [
9870
9875
  /* @__PURE__ */ r("div", { style: {
9871
9876
  width: "100px",
9872
9877
  height: "100px",
@@ -9897,8 +9902,8 @@ const ua = ({
9897
9902
  const A = () => {
9898
9903
  V(null), oe(), T(null);
9899
9904
  };
9900
- return /* @__PURE__ */ s(re, { children: [
9901
- /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ s("div", { style: {
9905
+ return /* @__PURE__ */ o(re, { children: [
9906
+ /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ o("div", { style: {
9902
9907
  display: "flex",
9903
9908
  flexDirection: "column",
9904
9909
  alignItems: "center",
@@ -9914,10 +9919,10 @@ const ua = ({
9914
9919
  alignItems: "center",
9915
9920
  justifyContent: "center",
9916
9921
  backgroundColor: R.success ? "color-mix(in srgb, var(--metakyc-success, #10b981) 12%, transparent)" : "color-mix(in srgb, var(--metakyc-danger, #ef4444) 10%, transparent)"
9917
- }, children: R.success ? /* @__PURE__ */ s("svg", { width: "36", height: "36", viewBox: "0 0 24 24", fill: "none", stroke: "var(--metakyc-success, #10b981)", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: [
9922
+ }, children: R.success ? /* @__PURE__ */ o("svg", { width: "36", height: "36", viewBox: "0 0 24 24", fill: "none", stroke: "var(--metakyc-success, #10b981)", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: [
9918
9923
  /* @__PURE__ */ r("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
9919
9924
  /* @__PURE__ */ r("polyline", { points: "22 4 12 14.01 9 11.01" })
9920
- ] }) : /* @__PURE__ */ s("svg", { width: "36", height: "36", viewBox: "0 0 24 24", fill: "none", stroke: "var(--metakyc-danger, #ef4444)", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: [
9925
+ ] }) : /* @__PURE__ */ o("svg", { width: "36", height: "36", viewBox: "0 0 24 24", fill: "none", stroke: "var(--metakyc-danger, #ef4444)", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: [
9921
9926
  /* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "10" }),
9922
9927
  /* @__PURE__ */ r("line", { x1: "15", y1: "9", x2: "9", y2: "15" }),
9923
9928
  /* @__PURE__ */ r("line", { x1: "9", y1: "9", x2: "15", y2: "15" })
@@ -9959,7 +9964,7 @@ const ua = ({
9959
9964
  margin: 0
9960
9965
  }, children: a("appropriatenessTest.noAttemptsRemaining") }) })
9961
9966
  ] }) }),
9962
- /* @__PURE__ */ r(Ne, { children: /* @__PURE__ */ r("div", { style: { display: "flex", justifyContent: "center", width: "100%", gap: "12px" }, children: R.success ? /* @__PURE__ */ r(G, { type: "button", onClick: () => t == null ? void 0 : t(), children: a("common.continue") }) : /* @__PURE__ */ s(ut, { children: [
9967
+ /* @__PURE__ */ r(Ne, { children: /* @__PURE__ */ r("div", { style: { display: "flex", justifyContent: "center", width: "100%", gap: "12px" }, children: R.success ? /* @__PURE__ */ r(G, { type: "button", onClick: () => t == null ? void 0 : t(), children: a("common.continue") }) : /* @__PURE__ */ o(ut, { children: [
9963
9968
  H > 0 && K <= 0 && /* @__PURE__ */ r(G, { type: "button", onClick: A, children: a("appropriatenessTest.retakeTest") }),
9964
9969
  H > 0 && K > 0 && /* @__PURE__ */ r(G, { type: "button", onClick: A, children: a("appropriatenessTest.ok") }),
9965
9970
  H <= 0 && i && /* @__PURE__ */ r(G, { type: "button", variant: "outline", onClick: i, children: a("common.back") })
@@ -9967,13 +9972,13 @@ const ua = ({
9967
9972
  ] });
9968
9973
  }
9969
9974
  if (!L)
9970
- return /* @__PURE__ */ s(re, { children: [
9971
- /* @__PURE__ */ s(Ce, { children: [
9975
+ return /* @__PURE__ */ o(re, { children: [
9976
+ /* @__PURE__ */ o(Ce, { children: [
9972
9977
  /* @__PURE__ */ r("h2", { style: { fontSize: "18px", fontWeight: 700, color: "var(--metakyc-text-primary, #111827)", margin: 0 }, children: l.displayName }),
9973
9978
  l.subtitle && /* @__PURE__ */ r("p", { style: { fontSize: "14px", color: "var(--metakyc-text-secondary, #6b7280)", marginTop: "4px" }, children: l.subtitle })
9974
9979
  ] }),
9975
- /* @__PURE__ */ s(ie, { children: [
9976
- l.description && /* @__PURE__ */ s("div", { style: {
9980
+ /* @__PURE__ */ o(ie, { children: [
9981
+ l.description && /* @__PURE__ */ o("div", { style: {
9977
9982
  marginBottom: "20px",
9978
9983
  padding: "12px 14px",
9979
9984
  borderRadius: "10px",
@@ -9982,14 +9987,14 @@ const ua = ({
9982
9987
  display: "flex",
9983
9988
  gap: "10px"
9984
9989
  }, children: [
9985
- /* @__PURE__ */ s("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "var(--metakyc-primary, #2563eb)", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", style: { flexShrink: 0, marginTop: "1px" }, children: [
9990
+ /* @__PURE__ */ o("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "var(--metakyc-primary, #2563eb)", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", style: { flexShrink: 0, marginTop: "1px" }, children: [
9986
9991
  /* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "10" }),
9987
9992
  /* @__PURE__ */ r("line", { x1: "12", y1: "16", x2: "12", y2: "12" }),
9988
9993
  /* @__PURE__ */ r("line", { x1: "12", y1: "8", x2: "12.01", y2: "8" })
9989
9994
  ] }),
9990
9995
  /* @__PURE__ */ r("p", { style: { fontSize: "13px", color: "var(--metakyc-text-secondary, #374151)", margin: 0, lineHeight: 1.5 }, children: l.description })
9991
9996
  ] }),
9992
- /* @__PURE__ */ s("div", { style: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "12px", marginBottom: "20px" }, children: [
9997
+ /* @__PURE__ */ o("div", { style: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "12px", marginBottom: "20px" }, children: [
9993
9998
  /* @__PURE__ */ r(ht, { icon: "questions", label: a("appropriatenessTest.questions"), value: String(l.totalQuestionCount) }),
9994
9999
  /* @__PURE__ */ r(ht, { icon: "time", label: a("appropriatenessTest.timeLimit"), value: Ct(l.testDurationSec) }),
9995
10000
  /* @__PURE__ */ r(ht, { icon: "target", label: a("appropriatenessTest.passRequirement"), value: a("appropriatenessTest.correct", { count: l.testCorrectAnswerPassLimit }) }),
@@ -10003,7 +10008,7 @@ const ua = ({
10003
10008
  }
10004
10009
  )
10005
10010
  ] }),
10006
- v && /* @__PURE__ */ s("div", { style: {
10011
+ v && /* @__PURE__ */ o("div", { style: {
10007
10012
  marginBottom: "16px",
10008
10013
  padding: "12px 14px",
10009
10014
  borderRadius: "10px",
@@ -10012,12 +10017,12 @@ const ua = ({
10012
10017
  display: "flex",
10013
10018
  gap: "10px"
10014
10019
  }, children: [
10015
- /* @__PURE__ */ s("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "var(--metakyc-danger, #ef4444)", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", style: { flexShrink: 0, marginTop: "1px" }, children: [
10020
+ /* @__PURE__ */ o("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "var(--metakyc-danger, #ef4444)", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", style: { flexShrink: 0, marginTop: "1px" }, children: [
10016
10021
  /* @__PURE__ */ r("path", { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }),
10017
10022
  /* @__PURE__ */ r("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
10018
10023
  /* @__PURE__ */ r("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
10019
10024
  ] }),
10020
- /* @__PURE__ */ s("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", margin: 0, lineHeight: 1.5 }, children: [
10025
+ /* @__PURE__ */ o("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", margin: 0, lineHeight: 1.5 }, children: [
10021
10026
  /* @__PURE__ */ r("strong", { children: a("appropriatenessTest.previousAttempt") }),
10022
10027
  " ",
10023
10028
  v
@@ -10030,20 +10035,20 @@ const ua = ({
10030
10035
  border: "1px solid color-mix(in srgb, var(--metakyc-danger, #ef4444) 20%, transparent)"
10031
10036
  }, children: /* @__PURE__ */ r("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", margin: 0 }, children: a("appropriatenessTest.allAttemptsUsed") }) })
10032
10037
  ] }),
10033
- /* @__PURE__ */ r(Ne, { children: /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", justifyContent: i ? "space-between" : "flex-end", width: "100%" }, children: [
10038
+ /* @__PURE__ */ r(Ne, { children: /* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "center", justifyContent: i ? "space-between" : "flex-end", width: "100%" }, children: [
10034
10039
  i && /* @__PURE__ */ r(G, { type: "button", variant: "outline", onClick: i, children: a("common.back") }),
10035
10040
  /* @__PURE__ */ r(G, { type: "button", onClick: Q, disabled: H <= 0, children: a("appropriatenessTest.startTest") })
10036
10041
  ] }) })
10037
10042
  ] });
10038
10043
  const ye = l.appropriatenessQuestions[ae], be = ae === je - 1, ue = ge === je, P = q <= 60;
10039
- return /* @__PURE__ */ s(re, { children: [
10040
- /* @__PURE__ */ s(Ce, { children: [
10041
- /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
10042
- /* @__PURE__ */ s("div", { children: [
10044
+ return /* @__PURE__ */ o(re, { children: [
10045
+ /* @__PURE__ */ o(Ce, { children: [
10046
+ /* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
10047
+ /* @__PURE__ */ o("div", { children: [
10043
10048
  /* @__PURE__ */ r("h2", { style: { fontSize: "18px", fontWeight: 700, color: "var(--metakyc-text-primary, #111827)", margin: 0 }, children: l.displayName }),
10044
10049
  /* @__PURE__ */ r("p", { style: { fontSize: "12px", color: "var(--metakyc-text-muted, #9ca3af)", marginTop: "2px" }, children: a("appropriatenessTest.questionXofY", { current: ae + 1, total: je }) })
10045
10050
  ] }),
10046
- /* @__PURE__ */ s("div", { style: {
10051
+ /* @__PURE__ */ o("div", { style: {
10047
10052
  display: "flex",
10048
10053
  alignItems: "center",
10049
10054
  gap: "8px",
@@ -10052,7 +10057,7 @@ const ua = ({
10052
10057
  backgroundColor: P ? "color-mix(in srgb, var(--metakyc-danger, #ef4444) 10%, transparent)" : "var(--metakyc-surface, #f3f4f6)",
10053
10058
  transition: "all 0.3s ease"
10054
10059
  }, children: [
10055
- /* @__PURE__ */ s(
10060
+ /* @__PURE__ */ o(
10056
10061
  "svg",
10057
10062
  {
10058
10063
  width: "16",
@@ -10078,7 +10083,7 @@ const ua = ({
10078
10083
  }, children: Ct(q) })
10079
10084
  ] })
10080
10085
  ] }),
10081
- /* @__PURE__ */ s("div", { style: { marginTop: "12px" }, children: [
10086
+ /* @__PURE__ */ o("div", { style: { marginTop: "12px" }, children: [
10082
10087
  /* @__PURE__ */ r("div", { style: {
10083
10088
  height: "4px",
10084
10089
  borderRadius: "999px",
@@ -10091,17 +10096,17 @@ const ua = ({
10091
10096
  width: `${ge / je * 100}%`,
10092
10097
  transition: "width 0.3s ease"
10093
10098
  } }) }),
10094
- /* @__PURE__ */ s("div", { style: {
10099
+ /* @__PURE__ */ o("div", { style: {
10095
10100
  display: "flex",
10096
10101
  justifyContent: "space-between",
10097
10102
  marginTop: "4px"
10098
10103
  }, children: [
10099
- /* @__PURE__ */ s("span", { style: { fontSize: "11px", color: "var(--metakyc-text-muted, #9ca3af)" }, children: [
10104
+ /* @__PURE__ */ o("span", { style: { fontSize: "11px", color: "var(--metakyc-text-muted, #9ca3af)" }, children: [
10100
10105
  ge,
10101
10106
  " ",
10102
10107
  a("appropriatenessTest.answered")
10103
10108
  ] }),
10104
- /* @__PURE__ */ s("span", { style: { fontSize: "11px", color: "var(--metakyc-text-muted, #9ca3af)" }, children: [
10109
+ /* @__PURE__ */ o("span", { style: { fontSize: "11px", color: "var(--metakyc-text-muted, #9ca3af)" }, children: [
10105
10110
  H,
10106
10111
  " ",
10107
10112
  a("appropriatenessTest.attemptsLeft")
@@ -10109,7 +10114,7 @@ const ua = ({
10109
10114
  ] })
10110
10115
  ] })
10111
10116
  ] }),
10112
- /* @__PURE__ */ s(ie, { children: [
10117
+ /* @__PURE__ */ o(ie, { children: [
10113
10118
  ye && /* @__PURE__ */ r(
10114
10119
  ga,
10115
10120
  {
@@ -10151,7 +10156,7 @@ const ua = ({
10151
10156
  },
10152
10157
  A.id
10153
10158
  )) }),
10154
- F && /* @__PURE__ */ s("div", { style: {
10159
+ F && /* @__PURE__ */ o("div", { style: {
10155
10160
  marginTop: "16px",
10156
10161
  padding: "12px 14px",
10157
10162
  borderRadius: "10px",
@@ -10161,7 +10166,7 @@ const ua = ({
10161
10166
  alignItems: "center",
10162
10167
  gap: "10px"
10163
10168
  }, children: [
10164
- /* @__PURE__ */ s("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "#f59e0b", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", style: { flexShrink: 0 }, children: [
10169
+ /* @__PURE__ */ o("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "#f59e0b", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", style: { flexShrink: 0 }, children: [
10165
10170
  /* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "10" }),
10166
10171
  /* @__PURE__ */ r("polyline", { points: "12 6 12 12 16 14" })
10167
10172
  ] }),
@@ -10175,7 +10180,7 @@ const ua = ({
10175
10180
  border: "1px solid color-mix(in srgb, var(--metakyc-danger, #ef4444) 20%, transparent)"
10176
10181
  }, children: /* @__PURE__ */ r("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", margin: 0 }, children: v }) })
10177
10182
  ] }),
10178
- /* @__PURE__ */ r(Ne, { children: /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", width: "100%" }, children: [
10183
+ /* @__PURE__ */ r(Ne, { children: /* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", width: "100%" }, children: [
10179
10184
  /* @__PURE__ */ r(
10180
10185
  G,
10181
10186
  {
@@ -10188,7 +10193,7 @@ const ua = ({
10188
10193
  children: ae > 0 ? a("common.previous") : a("common.cancel")
10189
10194
  }
10190
10195
  ),
10191
- /* @__PURE__ */ s("div", { style: { display: "flex", gap: "8px" }, children: [
10196
+ /* @__PURE__ */ o("div", { style: { display: "flex", gap: "8px" }, children: [
10192
10197
  !be && /* @__PURE__ */ r(
10193
10198
  G,
10194
10199
  {
@@ -10212,26 +10217,26 @@ const ua = ({
10212
10217
  ] }) })
10213
10218
  ] });
10214
10219
  }, pa = {
10215
- questions: /* @__PURE__ */ s("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
10220
+ questions: /* @__PURE__ */ o("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
10216
10221
  /* @__PURE__ */ r("path", { d: "M9 11l3 3L22 4" }),
10217
10222
  /* @__PURE__ */ r("path", { d: "M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11" })
10218
10223
  ] }),
10219
- time: /* @__PURE__ */ s("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
10224
+ time: /* @__PURE__ */ o("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
10220
10225
  /* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "10" }),
10221
10226
  /* @__PURE__ */ r("polyline", { points: "12 6 12 12 16 14" })
10222
10227
  ] }),
10223
- target: /* @__PURE__ */ s("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
10228
+ target: /* @__PURE__ */ o("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
10224
10229
  /* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "10" }),
10225
10230
  /* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "6" }),
10226
10231
  /* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "2" })
10227
10232
  ] }),
10228
- retry: /* @__PURE__ */ s("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
10233
+ retry: /* @__PURE__ */ o("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
10229
10234
  /* @__PURE__ */ r("polyline", { points: "23 4 23 10 17 10" }),
10230
10235
  /* @__PURE__ */ r("path", { d: "M20.49 15a9 9 0 1 1-2.12-9.36L23 10" })
10231
10236
  ] })
10232
10237
  }, ht = ({ icon: e, label: t, value: i, variant: a = "default" }) => {
10233
10238
  const n = a === "warning";
10234
- return /* @__PURE__ */ s("div", { style: {
10239
+ return /* @__PURE__ */ o("div", { style: {
10235
10240
  display: "flex",
10236
10241
  alignItems: "center",
10237
10242
  gap: "12px",
@@ -10244,7 +10249,7 @@ const ua = ({
10244
10249
  color: n ? "#f59e0b" : "var(--metakyc-primary, #2563eb)",
10245
10250
  flexShrink: 0
10246
10251
  }, children: pa[e] }),
10247
- /* @__PURE__ */ s("div", { children: [
10252
+ /* @__PURE__ */ o("div", { children: [
10248
10253
  /* @__PURE__ */ r("p", { style: { fontSize: "12px", color: "var(--metakyc-text-muted, #9ca3af)", margin: 0 }, children: t }),
10249
10254
  /* @__PURE__ */ r("p", { style: {
10250
10255
  fontSize: "15px",
@@ -10255,8 +10260,8 @@ const ua = ({
10255
10260
  }, children: i })
10256
10261
  ] })
10257
10262
  ] });
10258
- }, ga = ({ question: e, selectedAnswer: t, onSelect: i, disabled: a }) => /* @__PURE__ */ s("div", { children: [
10259
- /* @__PURE__ */ s("div", { style: { marginBottom: "16px" }, children: [
10263
+ }, ga = ({ question: e, selectedAnswer: t, onSelect: i, disabled: a }) => /* @__PURE__ */ o("div", { children: [
10264
+ /* @__PURE__ */ o("div", { style: { marginBottom: "16px" }, children: [
10260
10265
  e.groupName && /* @__PURE__ */ r("span", { style: {
10261
10266
  display: "inline-block",
10262
10267
  fontSize: "11px",
@@ -10275,8 +10280,8 @@ const ua = ({
10275
10280
  }, children: e.question })
10276
10281
  ] }),
10277
10282
  /* @__PURE__ */ r("div", { style: { display: "flex", flexDirection: "column", gap: "8px" }, children: e.answers.map((n, l) => {
10278
- const o = t === n;
10279
- return /* @__PURE__ */ s(
10283
+ const s = t === n;
10284
+ return /* @__PURE__ */ o(
10280
10285
  "label",
10281
10286
  {
10282
10287
  style: {
@@ -10285,30 +10290,30 @@ const ua = ({
10285
10290
  gap: "12px",
10286
10291
  padding: "14px 16px",
10287
10292
  borderRadius: "10px",
10288
- border: `2px solid ${o ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #e5e7eb)"}`,
10289
- backgroundColor: o ? "color-mix(in srgb, var(--metakyc-primary, #2563eb) 5%, var(--metakyc-background, #ffffff))" : "var(--metakyc-background, #ffffff)",
10293
+ border: `2px solid ${s ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #e5e7eb)"}`,
10294
+ backgroundColor: s ? "color-mix(in srgb, var(--metakyc-primary, #2563eb) 5%, var(--metakyc-background, #ffffff))" : "var(--metakyc-background, #ffffff)",
10290
10295
  cursor: a ? "default" : "pointer",
10291
10296
  transition: "all 0.15s ease",
10292
10297
  opacity: a ? 0.6 : 1
10293
10298
  },
10294
10299
  onMouseEnter: (p) => {
10295
- !a && !o && (p.currentTarget.style.borderColor = "color-mix(in srgb, var(--metakyc-primary, #2563eb) 50%, var(--metakyc-border, #e5e7eb))");
10300
+ !a && !s && (p.currentTarget.style.borderColor = "color-mix(in srgb, var(--metakyc-primary, #2563eb) 50%, var(--metakyc-border, #e5e7eb))");
10296
10301
  },
10297
10302
  onMouseLeave: (p) => {
10298
- o || (p.currentTarget.style.borderColor = "var(--metakyc-border, #e5e7eb)");
10303
+ s || (p.currentTarget.style.borderColor = "var(--metakyc-border, #e5e7eb)");
10299
10304
  },
10300
10305
  children: [
10301
10306
  /* @__PURE__ */ r("div", { style: {
10302
10307
  width: "20px",
10303
10308
  height: "20px",
10304
10309
  borderRadius: "50%",
10305
- border: `2px solid ${o ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #d1d5db)"}`,
10310
+ border: `2px solid ${s ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #d1d5db)"}`,
10306
10311
  display: "flex",
10307
10312
  alignItems: "center",
10308
10313
  justifyContent: "center",
10309
10314
  flexShrink: 0,
10310
10315
  transition: "border-color 0.15s ease"
10311
- }, children: o && /* @__PURE__ */ r("div", { style: {
10316
+ }, children: s && /* @__PURE__ */ r("div", { style: {
10312
10317
  width: "10px",
10313
10318
  height: "10px",
10314
10319
  borderRadius: "50%",
@@ -10320,7 +10325,7 @@ const ua = ({
10320
10325
  type: "radio",
10321
10326
  name: `q-${e.id}`,
10322
10327
  value: n,
10323
- checked: o,
10328
+ checked: s,
10324
10329
  onChange: () => i(n),
10325
10330
  disabled: a,
10326
10331
  style: { position: "absolute", opacity: 0, width: 0, height: 0 }
@@ -10328,8 +10333,8 @@ const ua = ({
10328
10333
  ),
10329
10334
  /* @__PURE__ */ r("span", { style: {
10330
10335
  fontSize: "14px",
10331
- color: o ? "var(--metakyc-text-primary, #111827)" : "var(--metakyc-text-secondary, #6b7280)",
10332
- fontWeight: o ? 500 : 400,
10336
+ color: s ? "var(--metakyc-text-primary, #111827)" : "var(--metakyc-text-secondary, #6b7280)",
10337
+ fontWeight: s ? 500 : 400,
10333
10338
  transition: "color 0.15s ease"
10334
10339
  }, children: n })
10335
10340
  ]
@@ -10343,9 +10348,9 @@ const ua = ({
10343
10348
  onBack: i
10344
10349
  }) => {
10345
10350
  var rt, Ye, ct, Ze;
10346
- const { t: a } = Ie(), { applicantService: n, baseInformationService: l, identityService: o, config: p, currentTheme: u } = Fe(), { identityData: d, provider: y, token: v, isLoading: T, error: I, requestIdentity: x, restartIdentity: q } = Di(e), [S, L] = b(null), [B, F] = b(null), [U, K] = b([]), [J, ae] = b([]), [w, R] = b(!0), [V, Q] = b(!1), [X, W] = b(null), [_, oe] = b(!1), H = Se.useRef(!1), [je, ge] = b({}), [ye, be] = b({}), ue = u != null && u.reviewPageFields && u.reviewPageFields.length > 0 ? u.reviewPageFields[0] : null, P = !!(u != null && u.reviewPageDisabled), A = me(!1);
10351
+ const { t: a } = Te(), { applicantService: n, baseInformationService: l, identityService: s, config: p, currentTheme: u } = Fe(), { identityData: d, provider: y, token: v, isLoading: T, error: I, requestIdentity: x, restartIdentity: q } = Di(e), [S, L] = b(null), [B, F] = b(null), [U, K] = b([]), [J, ae] = b([]), [w, R] = b(!0), [V, Q] = b(!1), [X, W] = b(null), [_, oe] = b(!1), H = Se.useRef(!1), [je, ge] = b({}), [ye, be] = b({}), ue = u != null && u.reviewPageFields && u.reviewPageFields.length > 0 ? u.reviewPageFields[0] : null, P = !!(u != null && u.reviewPageDisabled), A = me(!1);
10347
10352
  A.current = P;
10348
- const O = mr({
10353
+ const O = ur({
10349
10354
  defaultValues: {
10350
10355
  street: "",
10351
10356
  streetNumber: "",
@@ -10453,8 +10458,8 @@ const ua = ({
10453
10458
  if (he) {
10454
10459
  console.log("[Sumsub] Fetching access token for Web SDK…"), W(null), (async () => {
10455
10460
  try {
10456
- const M = await o.refreshSumsubToken(e), $ = et.parseProviderConfig(y, v, p);
10457
- $.accessToken = M, $.onTokenRefresh = () => o.refreshSumsubToken(e);
10461
+ const M = await s.refreshSumsubToken(e), $ = et.parseProviderConfig(y, v, p);
10462
+ $.accessToken = M, $.onTokenRefresh = () => s.refreshSumsubToken(e);
10458
10463
  const Y = et.createProvider(y, $);
10459
10464
  Y.onComplete((ee) => {
10460
10465
  console.log("[Sumsub] Verification complete:", ee), t == null || t();
@@ -10520,7 +10525,7 @@ const ua = ({
10520
10525
  console.error("[Identity] Error destroying provider:", f);
10521
10526
  }
10522
10527
  };
10523
- }, [y, v, S, V, t, _, he, e, p, o]);
10528
+ }, [y, v, S, V, t, _, he, e, p, s]);
10524
10529
  const se = async () => {
10525
10530
  try {
10526
10531
  W(null), oe(!1), await x(), Q(!0);
@@ -10535,20 +10540,20 @@ const ua = ({
10535
10540
  }
10536
10541
  };
10537
10542
  if (w || T)
10538
- return /* @__PURE__ */ r(re, { children: /* @__PURE__ */ s(ie, { children: [
10543
+ return /* @__PURE__ */ r(re, { children: /* @__PURE__ */ o(ie, { children: [
10539
10544
  /* @__PURE__ */ r(Ve, { className: "my-8" }),
10540
10545
  /* @__PURE__ */ r("p", { className: "text-center text-gray-600 dark:text-gray-400 mt-4", children: a("identity.loadingIdentity") })
10541
10546
  ] }) });
10542
10547
  if (I)
10543
- return /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ s("p", { className: "text-danger-500", children: [
10548
+ return /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ o("p", { className: "text-danger-500", children: [
10544
10549
  "Error: ",
10545
10550
  I.message
10546
10551
  ] }) }) });
10547
10552
  if (V && (X || _))
10548
- return /* @__PURE__ */ s(re, { children: [
10553
+ return /* @__PURE__ */ o(re, { children: [
10549
10554
  /* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ r("h2", { className: "text-2xl font-bold text-gray-900 dark:text-white", children: a("identity.sessionIssueTitle") }) }),
10550
- /* @__PURE__ */ s(ie, { children: [
10551
- /* @__PURE__ */ r("div", { className: "p-4 bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg mb-6", children: /* @__PURE__ */ s("div", { className: "flex items-start", children: [
10555
+ /* @__PURE__ */ o(ie, { children: [
10556
+ /* @__PURE__ */ r("div", { className: "p-4 bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg mb-6", children: /* @__PURE__ */ o("div", { className: "flex items-start", children: [
10552
10557
  /* @__PURE__ */ r(
10553
10558
  "svg",
10554
10559
  {
@@ -10567,41 +10572,41 @@ const ua = ({
10567
10572
  )
10568
10573
  }
10569
10574
  ),
10570
- /* @__PURE__ */ s("div", { children: [
10575
+ /* @__PURE__ */ o("div", { children: [
10571
10576
  /* @__PURE__ */ r("h3", { className: "font-semibold text-red-900 dark:text-red-100 mb-1", children: a(_ ? "identity.sessionExpiredTitle" : "identity.verificationError") }),
10572
10577
  /* @__PURE__ */ r("p", { className: "text-red-800 dark:text-red-200 text-sm", children: X || a("identity.sessionExpiredMessage") })
10573
10578
  ] })
10574
10579
  ] }) }),
10575
- /* @__PURE__ */ s("div", { className: "bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded-lg p-4", children: [
10580
+ /* @__PURE__ */ o("div", { className: "bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded-lg p-4", children: [
10576
10581
  /* @__PURE__ */ r("h3", { className: "font-semibold text-blue-900 dark:text-blue-100 mb-2", children: a("identity.whatToDoNext") }),
10577
- /* @__PURE__ */ s("ul", { className: "text-blue-800 dark:text-blue-200 text-sm space-y-1 list-disc list-inside", children: [
10582
+ /* @__PURE__ */ o("ul", { className: "text-blue-800 dark:text-blue-200 text-sm space-y-1 list-disc list-inside", children: [
10578
10583
  /* @__PURE__ */ r("li", { children: a("identity.clickRestart") }),
10579
10584
  /* @__PURE__ */ r("li", { children: a("identity.completeWithoutDelays") }),
10580
10585
  /* @__PURE__ */ r("li", { children: a("identity.ifIssuesPersist") })
10581
10586
  ] })
10582
10587
  ] })
10583
10588
  ] }),
10584
- /* @__PURE__ */ s(Ne, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
10589
+ /* @__PURE__ */ o(Ne, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
10585
10590
  i && /* @__PURE__ */ r(G, { type: "button", variant: "outline", onClick: i, children: a("common.back") }),
10586
10591
  /* @__PURE__ */ r(G, { type: "button", onClick: D, disabled: T, children: a(T ? "identity.restarting" : "identity.restartVerification") })
10587
10592
  ] })
10588
10593
  ] });
10589
10594
  if (V && d) {
10590
10595
  const f = y;
10591
- return he ? /* @__PURE__ */ s("div", { style: {
10596
+ return he ? /* @__PURE__ */ o("div", { style: {
10592
10597
  background: "var(--metakyc-background, #ffffff)",
10593
10598
  borderRadius: "12px",
10594
10599
  border: "1px solid var(--metakyc-border, #e5e7eb)",
10595
10600
  overflow: "hidden"
10596
10601
  }, children: [
10597
- /* @__PURE__ */ s("div", { style: {
10602
+ /* @__PURE__ */ o("div", { style: {
10598
10603
  display: "flex",
10599
10604
  alignItems: "center",
10600
10605
  justifyContent: "space-between",
10601
10606
  padding: "20px 24px",
10602
10607
  borderBottom: "1px solid var(--metakyc-border, #e5e7eb)"
10603
10608
  }, children: [
10604
- /* @__PURE__ */ s("div", { children: [
10609
+ /* @__PURE__ */ o("div", { children: [
10605
10610
  /* @__PURE__ */ r("h2", { style: {
10606
10611
  margin: 0,
10607
10612
  fontSize: "20px",
@@ -10651,9 +10656,9 @@ const ua = ({
10651
10656
  padding: "16px 24px",
10652
10657
  borderTop: "1px solid var(--metakyc-border, #e5e7eb)"
10653
10658
  }, children: /* @__PURE__ */ r(G, { variant: "outline", onClick: i, children: a("common.back") }) })
10654
- ] }) : v != null && v.url ? /* @__PURE__ */ s(re, { children: [
10655
- /* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ s("div", { className: "flex items-center justify-between", children: [
10656
- /* @__PURE__ */ s("div", { children: [
10659
+ ] }) : v != null && v.url ? /* @__PURE__ */ o(re, { children: [
10660
+ /* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ o("div", { className: "flex items-center justify-between", children: [
10661
+ /* @__PURE__ */ o("div", { children: [
10657
10662
  /* @__PURE__ */ r("h2", { className: "text-2xl font-bold", children: a("identity.title") }),
10658
10663
  /* @__PURE__ */ r("p", { className: "text-gray-600 dark:text-gray-400 mt-1", children: a("identity.subtitle") })
10659
10664
  ] }),
@@ -10669,7 +10674,7 @@ const ua = ({
10669
10674
  }
10670
10675
  )
10671
10676
  ] }) }),
10672
- /* @__PURE__ */ s(ie, { children: [
10677
+ /* @__PURE__ */ o(ie, { children: [
10673
10678
  /* @__PURE__ */ r("div", { className: "mb-4 p-3 bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg", children: /* @__PURE__ */ r("p", { className: "text-yellow-800 dark:text-yellow-200 text-sm", children: a("identity.importantExpiredMessage") }) }),
10674
10679
  /* @__PURE__ */ r("div", { className: "w-full", style: { height: "600px" }, children: /* @__PURE__ */ r(
10675
10680
  "iframe",
@@ -10695,18 +10700,18 @@ const ua = ({
10695
10700
  ) })
10696
10701
  ] }),
10697
10702
  i && /* @__PURE__ */ r(Ne, { children: /* @__PURE__ */ r(G, { variant: "outline", onClick: i, children: a("common.back") }) })
10698
- ] }) : f === Be.SardinAI ? /* @__PURE__ */ s(re, { children: [
10699
- /* @__PURE__ */ s(Ce, { children: [
10703
+ ] }) : f === Be.SardinAI ? /* @__PURE__ */ o(re, { children: [
10704
+ /* @__PURE__ */ o(Ce, { children: [
10700
10705
  /* @__PURE__ */ r("h2", { className: "text-2xl font-bold", children: a("identity.deviceRiskAssessment") }),
10701
10706
  /* @__PURE__ */ r("p", { className: "text-gray-600 dark:text-gray-400 mt-1", children: a("identity.analyzingDevice") })
10702
10707
  ] }),
10703
- /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ s("div", { className: "text-center py-12", children: [
10708
+ /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ o("div", { className: "text-center py-12", children: [
10704
10709
  /* @__PURE__ */ r(Ve, { className: "mb-4" }),
10705
10710
  /* @__PURE__ */ r("p", { className: "text-gray-600 dark:text-gray-400", children: a("identity.pleaseWaitDevice") }),
10706
10711
  /* @__PURE__ */ r("p", { className: "text-sm text-gray-500 dark:text-gray-500 mt-2", children: a("identity.automaticProcess") })
10707
10712
  ] }) })
10708
- ] }) : /* @__PURE__ */ s(re, { children: [
10709
- /* @__PURE__ */ s(Ce, { children: [
10713
+ ] }) : /* @__PURE__ */ o(re, { children: [
10714
+ /* @__PURE__ */ o(Ce, { children: [
10710
10715
  /* @__PURE__ */ r("h2", { className: "text-2xl font-bold", children: a("identity.title") }),
10711
10716
  /* @__PURE__ */ r("p", { className: "text-gray-600 dark:text-gray-400 mt-1", children: a("identity.subtitle") })
10712
10717
  ] }),
@@ -10717,7 +10722,7 @@ const ua = ({
10717
10722
  const ne = /* @__PURE__ */ new Set(["country", "nationality", "taxCountry", "countryOfBirth", "mobileCountryCode", "otherNationality"]), Z = (f = 4) => {
10718
10723
  const M = Math.min(4, Math.max(1, Number(f) || 4));
10719
10724
  return { gridColumn: `span ${M} / span ${M}` };
10720
- }, Te = (f, M) => {
10725
+ }, Re = (f, M) => {
10721
10726
  if (!M && M !== 0) return "—";
10722
10727
  if (ne.has(f) && f !== "mobileCountryCode") {
10723
10728
  const $ = U.find((Y) => Y.value === M);
@@ -10726,7 +10731,7 @@ const ua = ({
10726
10731
  return String(M);
10727
10732
  }, ze = ({ helpText: f }) => {
10728
10733
  const [M, $] = b(!1), Y = me(null), [, ee] = b({ top: 0, left: 0 });
10729
- return /* @__PURE__ */ s(ut, { children: [
10734
+ return /* @__PURE__ */ o(ut, { children: [
10730
10735
  /* @__PURE__ */ r(
10731
10736
  "button",
10732
10737
  {
@@ -10761,7 +10766,7 @@ const ua = ({
10761
10766
  children: "?"
10762
10767
  }
10763
10768
  ),
10764
- M && dr.createPortal(
10769
+ M && mr.createPortal(
10765
10770
  /* @__PURE__ */ r(
10766
10771
  "div",
10767
10772
  {
@@ -10777,7 +10782,7 @@ const ua = ({
10777
10782
  justifyContent: "center"
10778
10783
  },
10779
10784
  onClick: () => $(!1),
10780
- children: /* @__PURE__ */ s(
10785
+ children: /* @__PURE__ */ o(
10781
10786
  "div",
10782
10787
  {
10783
10788
  onClick: (z) => z.stopPropagation(),
@@ -10818,7 +10823,7 @@ const ua = ({
10818
10823
  document.body
10819
10824
  )
10820
10825
  ] });
10821
- }, Re = (f, M) => M ? /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "flex-start", gap: 5, flexWrap: "nowrap" }, children: [
10826
+ }, Ie = (f, M) => M ? /* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "flex-start", gap: 5, flexWrap: "nowrap" }, children: [
10822
10827
  /* @__PURE__ */ r("div", { style: { flex: 1, minWidth: 0 }, children: f }),
10823
10828
  /* @__PURE__ */ r("div", { style: { paddingTop: 24 }, children: /* @__PURE__ */ r(ze, { helpText: M }) })
10824
10829
  ] }) : f, Ke = (f, M) => {
@@ -10844,7 +10849,7 @@ const ua = ({
10844
10849
  $
10845
10850
  );
10846
10851
  if (f.customType === "link")
10847
- return /* @__PURE__ */ r("div", { style: Z(f.colSpan), children: Re(
10852
+ return /* @__PURE__ */ r("div", { style: Z(f.colSpan), children: Ie(
10848
10853
  /* @__PURE__ */ r(
10849
10854
  "a",
10850
10855
  {
@@ -10860,8 +10865,8 @@ const ua = ({
10860
10865
  ) }, $);
10861
10866
  if (f.customType === "checkbox" || f.customType === "link_checkbox") {
10862
10867
  const g = ee === "true" || ee === !0;
10863
- return /* @__PURE__ */ r("div", { style: Z(f.colSpan), children: Re(
10864
- /* @__PURE__ */ s("label", { style: { display: "flex", alignItems: "flex-start", gap: 8, cursor: "pointer" }, children: [
10868
+ return /* @__PURE__ */ r("div", { style: Z(f.colSpan), children: Ie(
10869
+ /* @__PURE__ */ o("label", { style: { display: "flex", alignItems: "flex-start", gap: 8, cursor: "pointer" }, children: [
10865
10870
  /* @__PURE__ */ r(
10866
10871
  Ue,
10867
10872
  {
@@ -10870,7 +10875,7 @@ const ua = ({
10870
10875
  style: { marginTop: 2 }
10871
10876
  }
10872
10877
  ),
10873
- /* @__PURE__ */ r("span", { className: "text-sm", style: { color: "var(--metakyc-text-primary, #111827)" }, children: f.customType === "link_checkbox" && f.linkUrl ? /* @__PURE__ */ s(ut, { children: [
10878
+ /* @__PURE__ */ r("span", { className: "text-sm", style: { color: "var(--metakyc-text-primary, #111827)" }, children: f.customType === "link_checkbox" && f.linkUrl ? /* @__PURE__ */ o(ut, { children: [
10874
10879
  /* @__PURE__ */ r("a", { href: f.linkUrl, target: "_blank", rel: "noopener noreferrer", style: { color: "var(--metakyc-primary, #6366f1)", textDecoration: "underline" }, children: f.linkText || f.label }),
10875
10880
  f.label && f.linkText ? ` ${f.label}` : ""
10876
10881
  ] }) : f.displayText || f.label })
@@ -10885,10 +10890,10 @@ const ua = ({
10885
10890
  [Y]: g.includes(E) ? g.filter((c) => c !== E) : [...g, E]
10886
10891
  }));
10887
10892
  };
10888
- return /* @__PURE__ */ r("div", { style: Z(f.colSpan), children: Re(
10889
- /* @__PURE__ */ s("div", { className: "space-y-1.5", children: [
10893
+ return /* @__PURE__ */ r("div", { style: Z(f.colSpan), children: Ie(
10894
+ /* @__PURE__ */ o("div", { className: "space-y-1.5", children: [
10890
10895
  f.label && /* @__PURE__ */ r("p", { className: "text-sm font-medium", style: { color: "var(--metakyc-text-primary, #111827)" }, children: f.displayText || f.label }),
10891
- (f.options || []).map((E) => /* @__PURE__ */ s("label", { style: { display: "flex", alignItems: "flex-start", gap: 8, cursor: "pointer" }, children: [
10896
+ (f.options || []).map((E) => /* @__PURE__ */ o("label", { style: { display: "flex", alignItems: "flex-start", gap: 8, cursor: "pointer" }, children: [
10892
10897
  /* @__PURE__ */ r(
10893
10898
  Ue,
10894
10899
  {
@@ -10903,10 +10908,10 @@ const ua = ({
10903
10908
  f.helpText
10904
10909
  ) }, $);
10905
10910
  }
10906
- return f.customType === "radio_group" ? /* @__PURE__ */ r("div", { style: Z(f.colSpan), children: Re(
10907
- /* @__PURE__ */ s("div", { className: "space-y-1.5", children: [
10911
+ return f.customType === "radio_group" ? /* @__PURE__ */ r("div", { style: Z(f.colSpan), children: Ie(
10912
+ /* @__PURE__ */ o("div", { className: "space-y-1.5", children: [
10908
10913
  f.label && /* @__PURE__ */ r("p", { className: "text-sm font-medium", style: { color: "var(--metakyc-text-primary, #111827)" }, children: f.displayText || f.label }),
10909
- (f.options || []).map((g) => /* @__PURE__ */ s("label", { style: { display: "flex", alignItems: "flex-start", gap: 8, cursor: "pointer" }, children: [
10914
+ (f.options || []).map((g) => /* @__PURE__ */ o("label", { style: { display: "flex", alignItems: "flex-start", gap: 8, cursor: "pointer" }, children: [
10910
10915
  /* @__PURE__ */ r(
10911
10916
  "input",
10912
10917
  {
@@ -10922,7 +10927,7 @@ const ua = ({
10922
10927
  ] }, g.value))
10923
10928
  ] }),
10924
10929
  f.helpText
10925
- ) }, $) : /* @__PURE__ */ r("div", { style: Z(f.colSpan), children: Re(
10930
+ ) }, $) : /* @__PURE__ */ r("div", { style: Z(f.colSpan), children: Ie(
10926
10931
  /* @__PURE__ */ r(
10927
10932
  we,
10928
10933
  {
@@ -10936,7 +10941,7 @@ const ua = ({
10936
10941
  }, lt = (f, M) => {
10937
10942
  if (f.isCustom) return Ke(f, M);
10938
10943
  const $ = f.name ?? "", Y = st[$], ee = f.displayText || (Y == null ? void 0 : Y.label) || $, g = je[$] ?? "", z = $ === "mobileCountryCode", E = !!(Y != null && Y.countriesType) && !z;
10939
- return f.editable ? z ? /* @__PURE__ */ r("div", { style: Z(f.colSpan ?? 2), children: Re(
10944
+ return f.editable ? z ? /* @__PURE__ */ r("div", { style: Z(f.colSpan ?? 2), children: Ie(
10940
10945
  /* @__PURE__ */ r(
10941
10946
  Qe,
10942
10947
  {
@@ -10947,7 +10952,7 @@ const ua = ({
10947
10952
  }
10948
10953
  ),
10949
10954
  f.helpText
10950
- ) }, `epc-${M}`) : E ? /* @__PURE__ */ r("div", { style: Z(f.colSpan ?? 2), children: Re(
10955
+ ) }, `epc-${M}`) : E ? /* @__PURE__ */ r("div", { style: Z(f.colSpan ?? 2), children: Ie(
10951
10956
  /* @__PURE__ */ r(
10952
10957
  Qe,
10953
10958
  {
@@ -10958,7 +10963,7 @@ const ua = ({
10958
10963
  }
10959
10964
  ),
10960
10965
  f.helpText
10961
- ) }, `ec-${M}`) : /* @__PURE__ */ r("div", { style: Z(f.colSpan ?? 2), children: Re(
10966
+ ) }, `ec-${M}`) : /* @__PURE__ */ r("div", { style: Z(f.colSpan ?? 2), children: Ie(
10962
10967
  /* @__PURE__ */ r(
10963
10968
  we,
10964
10969
  {
@@ -10969,10 +10974,10 @@ const ua = ({
10969
10974
  }
10970
10975
  ),
10971
10976
  f.helpText
10972
- ) }, `ei-${M}`) : /* @__PURE__ */ r("div", { style: Z(f.colSpan ?? 2), children: Re(
10973
- /* @__PURE__ */ s(ut, { children: [
10977
+ ) }, `ei-${M}`) : /* @__PURE__ */ r("div", { style: Z(f.colSpan ?? 2), children: Ie(
10978
+ /* @__PURE__ */ o(ut, { children: [
10974
10979
  /* @__PURE__ */ r("label", { className: "block text-sm font-medium mb-0.5", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: ee }),
10975
- /* @__PURE__ */ r("p", { className: "text-sm", style: { color: "var(--metakyc-text-primary, #111827)", minHeight: "1.5rem" }, children: Te($, g) })
10980
+ /* @__PURE__ */ r("p", { className: "text-sm", style: { color: "var(--metakyc-text-primary, #111827)", minHeight: "1.5rem" }, children: Re($, g) })
10976
10981
  ] }),
10977
10982
  f.helpText
10978
10983
  ) }, `ro-${M}`);
@@ -10981,35 +10986,35 @@ const ua = ({
10981
10986
  const f = ue.title || a("identity.reviewYourInformation"), M = ue.subtitle || a("identity.reviewSubtitle");
10982
10987
  return /* @__PURE__ */ r("form", { onSubmit: ($) => {
10983
10988
  $.preventDefault(), se();
10984
- }, children: /* @__PURE__ */ s(re, { children: [
10985
- /* @__PURE__ */ s(Ce, { children: [
10989
+ }, children: /* @__PURE__ */ o(re, { children: [
10990
+ /* @__PURE__ */ o(Ce, { children: [
10986
10991
  /* @__PURE__ */ r("h2", { className: "text-lg font-bold", style: { color: "var(--metakyc-text-primary, #111827)" }, children: f }),
10987
10992
  M && /* @__PURE__ */ r("p", { className: "mt-1 text-sm", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: M })
10988
10993
  ] }),
10989
10994
  /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ r("div", { style: { display: "grid", gridTemplateColumns: "repeat(4, minmax(0, 1fr))", gap: "1rem" }, children: ue.fields.map(($, Y) => lt($, Y)) }) }),
10990
- /* @__PURE__ */ s(Ne, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
10995
+ /* @__PURE__ */ o(Ne, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
10991
10996
  i && /* @__PURE__ */ r(G, { type: "button", variant: "outline", onClick: i, children: a("common.back") }),
10992
10997
  /* @__PURE__ */ r(G, { type: "submit", isLoading: T, children: a("identity.confirmAndStart") })
10993
10998
  ] })
10994
10999
  ] }) });
10995
11000
  }
10996
- return /* @__PURE__ */ r("form", { onSubmit: O.handleSubmit(se), children: /* @__PURE__ */ s(re, { children: [
10997
- /* @__PURE__ */ s(Ce, { children: [
11001
+ return /* @__PURE__ */ r("form", { onSubmit: O.handleSubmit(se), children: /* @__PURE__ */ o(re, { children: [
11002
+ /* @__PURE__ */ o(Ce, { children: [
10998
11003
  /* @__PURE__ */ r("h2", { className: "text-lg font-bold", style: { color: "var(--metakyc-text-primary, #111827)" }, children: a("identity.reviewYourInformation") }),
10999
11004
  /* @__PURE__ */ r("p", { className: "mt-1 text-sm", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: a("identity.reviewSubtitle") })
11000
11005
  ] }),
11001
- /* @__PURE__ */ s(ie, { className: "space-y-6", children: [
11006
+ /* @__PURE__ */ o(ie, { className: "space-y-6", children: [
11002
11007
  /* @__PURE__ */ r("div", { className: "space-y-4 pb-4", style: { borderBottom: "1px solid var(--metakyc-border, #e5e7eb)" }, children: [
11003
11008
  { label: a("fields.name"), value: `${((rt = B == null ? void 0 : B.applicantRequestData) == null ? void 0 : rt.firstName) || ""} ${((Ye = B == null ? void 0 : B.applicantRequestData) == null ? void 0 : Ye.lastName) || ""}`.trim() },
11004
11009
  { label: a("fields.email"), value: (ct = B == null ? void 0 : B.applicantRequestData) == null ? void 0 : ct.email },
11005
11010
  { label: a("fields.dateOfBirth"), value: ((Ze = B == null ? void 0 : B.applicantRequestData) == null ? void 0 : Ze.dateOfBirth) || a("fields.notProvided") }
11006
- ].map(({ label: f, value: M }) => /* @__PURE__ */ s("div", { children: [
11011
+ ].map(({ label: f, value: M }) => /* @__PURE__ */ o("div", { children: [
11007
11012
  /* @__PURE__ */ r("label", { className: "block text-sm font-medium", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: f }),
11008
11013
  /* @__PURE__ */ r("p", { className: "mt-1 text-base", style: { color: "var(--metakyc-text-primary, #111827)" }, children: M })
11009
11014
  ] }, f)) }),
11010
- /* @__PURE__ */ s("div", { className: "space-y-4", children: [
11015
+ /* @__PURE__ */ o("div", { className: "space-y-4", children: [
11011
11016
  /* @__PURE__ */ r("h3", { className: "text-base font-semibold", style: { color: "var(--metakyc-text-primary, #111827)" }, children: a("fields.addressInformation") }),
11012
- /* @__PURE__ */ s("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
11017
+ /* @__PURE__ */ o("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
11013
11018
  /* @__PURE__ */ r(
11014
11019
  at,
11015
11020
  {
@@ -11043,18 +11048,18 @@ const ua = ({
11043
11048
  }
11044
11049
  )
11045
11050
  ] }),
11046
- /* @__PURE__ */ s("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
11051
+ /* @__PURE__ */ o("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
11047
11052
  /* @__PURE__ */ r(at, { control: O.control, name: "street", render: ({ field: f }) => /* @__PURE__ */ r(we, { ...f, label: a("fields.street") }) }),
11048
11053
  /* @__PURE__ */ r(at, { control: O.control, name: "streetNumber", render: ({ field: f }) => /* @__PURE__ */ r(we, { ...f, label: a("fields.streetNumber") }) })
11049
11054
  ] }),
11050
- /* @__PURE__ */ s("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
11055
+ /* @__PURE__ */ o("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
11051
11056
  /* @__PURE__ */ r(at, { control: O.control, name: "city", render: ({ field: f }) => /* @__PURE__ */ r(we, { ...f, label: a("fields.city") }) }),
11052
11057
  /* @__PURE__ */ r(at, { control: O.control, name: "zip", render: ({ field: f }) => /* @__PURE__ */ r(we, { ...f, label: a("fields.zip") }) })
11053
11058
  ] }),
11054
11059
  /* @__PURE__ */ r(at, { control: O.control, name: "phonenumber", render: ({ field: f }) => /* @__PURE__ */ r(we, { ...f, label: a("fields.phoneNumber"), type: "tel" }) })
11055
11060
  ] })
11056
11061
  ] }),
11057
- /* @__PURE__ */ s(Ne, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
11062
+ /* @__PURE__ */ o(Ne, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
11058
11063
  i && /* @__PURE__ */ r(G, { type: "button", variant: "outline", onClick: i, children: a("common.back") }),
11059
11064
  /* @__PURE__ */ r(G, { type: "submit", isLoading: T, children: a("identity.confirmAndStart") })
11060
11065
  ] })
@@ -11067,79 +11072,79 @@ const ua = ({
11067
11072
  onContinue: n,
11068
11073
  onContactSupport: l
11069
11074
  }) => {
11070
- const { t: o } = Ie(), u = e === nt.Approved ? {
11075
+ const { t: s } = Te(), u = e === nt.Approved ? {
11071
11076
  type: "success",
11072
- title: o("status.verificationApproved"),
11077
+ title: s("status.verificationApproved"),
11073
11078
  icon: "✓",
11074
11079
  iconBg: "bg-green-100 dark:bg-green-900/30",
11075
11080
  iconColor: "text-green-600 dark:text-green-400",
11076
- message: o("status.verificationApprovedMsg")
11081
+ message: s("status.verificationApprovedMsg")
11077
11082
  } : e === nt.Rejected ? {
11078
11083
  type: "error",
11079
- title: o("status.verificationRejected"),
11084
+ title: s("status.verificationRejected"),
11080
11085
  icon: "✕",
11081
11086
  iconBg: "bg-red-100 dark:bg-red-900/30",
11082
11087
  iconColor: "text-red-600 dark:text-red-400",
11083
- message: o("status.verificationRejectedMsg")
11088
+ message: s("status.verificationRejectedMsg")
11084
11089
  } : e === nt.Pending || e === nt.InProgress ? {
11085
11090
  type: "pending",
11086
- title: o("status.verificationPending"),
11091
+ title: s("status.verificationPending"),
11087
11092
  icon: "⏱",
11088
11093
  iconBg: "bg-blue-100 dark:bg-blue-900/30",
11089
11094
  iconColor: "text-blue-600 dark:text-blue-400",
11090
- message: o("status.verificationPendingMsg")
11095
+ message: s("status.verificationPendingMsg")
11091
11096
  } : t === ot.Approved ? {
11092
11097
  type: "success",
11093
- title: o("status.applicationApproved"),
11098
+ title: s("status.applicationApproved"),
11094
11099
  icon: "✓",
11095
11100
  iconBg: "bg-green-100 dark:bg-green-900/30",
11096
11101
  iconColor: "text-green-600 dark:text-green-400",
11097
- message: o("status.applicationApprovedMsg")
11102
+ message: s("status.applicationApprovedMsg")
11098
11103
  } : t === ot.Reject ? {
11099
11104
  type: "error",
11100
- title: o("status.applicationRejected"),
11105
+ title: s("status.applicationRejected"),
11101
11106
  icon: "✕",
11102
11107
  iconBg: "bg-red-100 dark:bg-red-900/30",
11103
11108
  iconColor: "text-red-600 dark:text-red-400",
11104
- message: o("status.applicationRejectedMsg")
11109
+ message: s("status.applicationRejectedMsg")
11105
11110
  } : t === ot.UnderReview || t === ot.AdminReview ? {
11106
11111
  type: "pending",
11107
- title: o("status.underReview"),
11112
+ title: s("status.underReview"),
11108
11113
  icon: "📋",
11109
11114
  iconBg: "bg-yellow-100 dark:bg-yellow-900/30",
11110
11115
  iconColor: "text-yellow-700 dark:text-yellow-400",
11111
- message: o("status.underReviewMsg")
11116
+ message: s("status.underReviewMsg")
11112
11117
  } : i === bt.Success ? {
11113
11118
  type: "success",
11114
- title: o("status.processComplete"),
11119
+ title: s("status.processComplete"),
11115
11120
  icon: "✓",
11116
11121
  iconBg: "bg-green-100 dark:bg-green-900/30",
11117
11122
  iconColor: "text-green-600 dark:text-green-400",
11118
- message: o("status.processCompleteMsg")
11123
+ message: s("status.processCompleteMsg")
11119
11124
  } : i === bt.Failed ? {
11120
11125
  type: "error",
11121
- title: o("status.processFailed"),
11126
+ title: s("status.processFailed"),
11122
11127
  icon: "✕",
11123
11128
  iconBg: "bg-red-100 dark:bg-red-900/30",
11124
11129
  iconColor: "text-red-600 dark:text-red-400",
11125
- message: o("status.processFailedMsg")
11130
+ message: s("status.processFailedMsg")
11126
11131
  } : i === bt.AdminReview ? {
11127
11132
  type: "pending",
11128
- title: o("status.adminReviewRequired"),
11133
+ title: s("status.adminReviewRequired"),
11129
11134
  icon: "📋",
11130
11135
  iconBg: "bg-yellow-100 dark:bg-yellow-900/30",
11131
11136
  iconColor: "text-yellow-700 dark:text-yellow-400",
11132
- message: o("status.adminReviewRequiredMsg")
11137
+ message: s("status.adminReviewRequiredMsg")
11133
11138
  } : {
11134
11139
  type: "pending",
11135
- title: o("status.processing"),
11140
+ title: s("status.processing"),
11136
11141
  icon: "⏱",
11137
11142
  iconBg: "bg-blue-100 dark:bg-blue-900/30",
11138
11143
  iconColor: "text-blue-600 dark:text-blue-400",
11139
- message: o("status.processingMsg")
11144
+ message: s("status.processingMsg")
11140
11145
  };
11141
- return /* @__PURE__ */ s(re, { children: [
11142
- /* @__PURE__ */ s(ie, { className: "py-12", children: [
11146
+ return /* @__PURE__ */ o(re, { children: [
11147
+ /* @__PURE__ */ o(ie, { className: "py-12", children: [
11143
11148
  /* @__PURE__ */ r("div", { className: "flex justify-center mb-6", children: /* @__PURE__ */ r(
11144
11149
  "div",
11145
11150
  {
@@ -11149,86 +11154,86 @@ const ua = ({
11149
11154
  ) }),
11150
11155
  /* @__PURE__ */ r("h2", { className: "text-3xl font-bold text-center mb-4", style: { color: "var(--metakyc-text-primary, #111827)" }, children: u.title }),
11151
11156
  /* @__PURE__ */ r("div", { className: "flex justify-center mb-6", children: /* @__PURE__ */ r(
11152
- tr,
11157
+ rr,
11153
11158
  {
11154
11159
  variant: u.type === "success" ? "success" : u.type === "error" ? "danger" : u.type === "pending" ? "warning" : "info",
11155
11160
  children: e != null ? nt[e] : ot[t]
11156
11161
  }
11157
11162
  ) }),
11158
11163
  /* @__PURE__ */ r("p", { className: "text-center mb-6 max-w-md mx-auto", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: a || u.message }),
11159
- u.type === "success" && /* @__PURE__ */ s("div", { className: "bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 rounded-lg p-4 mb-6", children: [
11160
- /* @__PURE__ */ r("h3", { className: "font-semibold text-green-900 dark:text-green-100 mb-2", children: o("status.whatsNext") }),
11161
- /* @__PURE__ */ s("ul", { className: "text-sm text-green-800 dark:text-green-200 space-y-1", children: [
11162
- /* @__PURE__ */ s("li", { children: [
11164
+ u.type === "success" && /* @__PURE__ */ o("div", { className: "bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 rounded-lg p-4 mb-6", children: [
11165
+ /* @__PURE__ */ r("h3", { className: "font-semibold text-green-900 dark:text-green-100 mb-2", children: s("status.whatsNext") }),
11166
+ /* @__PURE__ */ o("ul", { className: "text-sm text-green-800 dark:text-green-200 space-y-1", children: [
11167
+ /* @__PURE__ */ o("li", { children: [
11163
11168
  "✓ ",
11164
- o("status.identityVerified")
11169
+ s("status.identityVerified")
11165
11170
  ] }),
11166
- /* @__PURE__ */ s("li", { children: [
11171
+ /* @__PURE__ */ o("li", { children: [
11167
11172
  "✓ ",
11168
- o("status.canProceed")
11173
+ s("status.canProceed")
11169
11174
  ] }),
11170
- /* @__PURE__ */ s("li", { children: [
11175
+ /* @__PURE__ */ o("li", { children: [
11171
11176
  "✓ ",
11172
- o("status.allFeaturesAccessible")
11177
+ s("status.allFeaturesAccessible")
11173
11178
  ] })
11174
11179
  ] })
11175
11180
  ] }),
11176
- u.type === "error" && /* @__PURE__ */ s("div", { className: "bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg p-4 mb-6", children: [
11177
- /* @__PURE__ */ r("h3", { className: "font-semibold text-red-900 dark:text-red-100 mb-2", children: o("status.whatCanYouDo") }),
11178
- /* @__PURE__ */ s("ul", { className: "text-sm text-red-800 dark:text-red-200 space-y-2", children: [
11179
- /* @__PURE__ */ s("li", { children: [
11181
+ u.type === "error" && /* @__PURE__ */ o("div", { className: "bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg p-4 mb-6", children: [
11182
+ /* @__PURE__ */ r("h3", { className: "font-semibold text-red-900 dark:text-red-100 mb-2", children: s("status.whatCanYouDo") }),
11183
+ /* @__PURE__ */ o("ul", { className: "text-sm text-red-800 dark:text-red-200 space-y-2", children: [
11184
+ /* @__PURE__ */ o("li", { children: [
11180
11185
  "• ",
11181
- o("status.reviewSubmittedInfo")
11186
+ s("status.reviewSubmittedInfo")
11182
11187
  ] }),
11183
- /* @__PURE__ */ s("li", { children: [
11188
+ /* @__PURE__ */ o("li", { children: [
11184
11189
  "• ",
11185
- o("status.contactSupportTeam")
11190
+ s("status.contactSupportTeam")
11186
11191
  ] }),
11187
- /* @__PURE__ */ s("li", { children: [
11192
+ /* @__PURE__ */ o("li", { children: [
11188
11193
  "• ",
11189
- o("status.resubmitIfNeeded")
11194
+ s("status.resubmitIfNeeded")
11190
11195
  ] })
11191
11196
  ] })
11192
11197
  ] }),
11193
- u.type === "pending" && /* @__PURE__ */ s("div", { className: "bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded-lg p-4 mb-6", children: [
11194
- /* @__PURE__ */ r("h3", { className: "font-semibold text-blue-900 dark:text-blue-100 mb-2", children: o("status.whatHappensNext") }),
11195
- /* @__PURE__ */ s("ul", { className: "text-sm text-blue-800 dark:text-blue-200 space-y-2", children: [
11196
- /* @__PURE__ */ s("li", { children: [
11198
+ u.type === "pending" && /* @__PURE__ */ o("div", { className: "bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded-lg p-4 mb-6", children: [
11199
+ /* @__PURE__ */ r("h3", { className: "font-semibold text-blue-900 dark:text-blue-100 mb-2", children: s("status.whatHappensNext") }),
11200
+ /* @__PURE__ */ o("ul", { className: "text-sm text-blue-800 dark:text-blue-200 space-y-2", children: [
11201
+ /* @__PURE__ */ o("li", { children: [
11197
11202
  "• ",
11198
- o("status.teamReviewing")
11203
+ s("status.teamReviewing")
11199
11204
  ] }),
11200
- /* @__PURE__ */ s("li", { children: [
11205
+ /* @__PURE__ */ o("li", { children: [
11201
11206
  "• ",
11202
- o("status.notifiedByEmail")
11207
+ s("status.notifiedByEmail")
11203
11208
  ] }),
11204
- /* @__PURE__ */ s("li", { children: [
11209
+ /* @__PURE__ */ o("li", { children: [
11205
11210
  "• ",
11206
- o("status.noActionRequired")
11211
+ s("status.noActionRequired")
11207
11212
  ] })
11208
11213
  ] })
11209
11214
  ] }),
11210
- /* @__PURE__ */ r("div", { className: "mt-6 pt-6", style: { borderTop: "1px solid var(--metakyc-border, #e5e7eb)" }, children: /* @__PURE__ */ s("div", { className: "grid grid-cols-2 gap-4 text-sm", children: [
11211
- /* @__PURE__ */ s("div", { children: [
11212
- /* @__PURE__ */ r("span", { style: { color: "var(--metakyc-text-muted, #9ca3af)" }, children: o("status.kycStatus") }),
11213
- /* @__PURE__ */ r("div", { className: "font-medium mt-1", style: { color: "var(--metakyc-text-primary, #111827)" }, children: e != null ? nt[e] : o("status.notAvailable") })
11215
+ /* @__PURE__ */ r("div", { className: "mt-6 pt-6", style: { borderTop: "1px solid var(--metakyc-border, #e5e7eb)" }, children: /* @__PURE__ */ o("div", { className: "grid grid-cols-2 gap-4 text-sm", children: [
11216
+ /* @__PURE__ */ o("div", { children: [
11217
+ /* @__PURE__ */ r("span", { style: { color: "var(--metakyc-text-muted, #9ca3af)" }, children: s("status.kycStatus") }),
11218
+ /* @__PURE__ */ r("div", { className: "font-medium mt-1", style: { color: "var(--metakyc-text-primary, #111827)" }, children: e != null ? nt[e] : s("status.notAvailable") })
11214
11219
  ] }),
11215
- /* @__PURE__ */ s("div", { children: [
11216
- /* @__PURE__ */ r("span", { style: { color: "var(--metakyc-text-muted, #9ca3af)" }, children: o("status.reviewStatus") }),
11220
+ /* @__PURE__ */ o("div", { children: [
11221
+ /* @__PURE__ */ r("span", { style: { color: "var(--metakyc-text-muted, #9ca3af)" }, children: s("status.reviewStatus") }),
11217
11222
  /* @__PURE__ */ r("div", { className: "font-medium mt-1", style: { color: "var(--metakyc-text-primary, #111827)" }, children: ot[t] })
11218
11223
  ] })
11219
11224
  ] }) })
11220
11225
  ] }),
11221
- /* @__PURE__ */ s(Ne, { style: { display: "flex", justifyContent: "center", gap: "1rem" }, children: [
11222
- u.type === "success" && n && /* @__PURE__ */ r(G, { onClick: n, size: "lg", children: o("common.continue") }),
11223
- u.type === "error" && /* @__PURE__ */ s(ut, { children: [
11224
- l && /* @__PURE__ */ r(G, { variant: "outline", onClick: l, children: o("status.contactSupport") }),
11225
- n && /* @__PURE__ */ r(G, { onClick: n, children: o("status.tryAgain") })
11226
+ /* @__PURE__ */ o(Ne, { style: { display: "flex", justifyContent: "center", gap: "1rem" }, children: [
11227
+ u.type === "success" && n && /* @__PURE__ */ r(G, { onClick: n, size: "lg", children: s("common.continue") }),
11228
+ u.type === "error" && /* @__PURE__ */ o(ut, { children: [
11229
+ l && /* @__PURE__ */ r(G, { variant: "outline", onClick: l, children: s("status.contactSupport") }),
11230
+ n && /* @__PURE__ */ r(G, { onClick: n, children: s("status.tryAgain") })
11226
11231
  ] }),
11227
- u.type === "pending" && /* @__PURE__ */ r("div", { className: "text-center", children: /* @__PURE__ */ r("p", { className: "text-sm text-gray-500 dark:text-gray-400", children: o("status.checkBackLater") }) })
11232
+ u.type === "pending" && /* @__PURE__ */ r("div", { className: "text-center", children: /* @__PURE__ */ r("p", { className: "text-sm text-gray-500 dark:text-gray-400", children: s("status.checkBackLater") }) })
11228
11233
  ] })
11229
11234
  ] });
11230
11235
  }, fa = ({ config: e, className: t = "" }) => {
11231
- const { t: i } = Ie();
11236
+ const { t: i } = Te();
11232
11237
  return !(e != null && e.visible) || !(e != null && e.url) ? null : /* @__PURE__ */ r("div", { className: `metakyc-logo ${t}`, children: /* @__PURE__ */ r(
11233
11238
  "img",
11234
11239
  {
@@ -11250,27 +11255,27 @@ const ua = ({
11250
11255
  subtitle: t,
11251
11256
  className: i = ""
11252
11257
  }) => {
11253
- const { currentTheme: a } = Fe(), n = e || (a == null ? void 0 : a.title) || "", l = !!(a != null && a.logo && a.logo.visible && a.logo.url), o = !!n;
11254
- return !l && !o ? null : /* @__PURE__ */ s("div", { className: `metakyc-header ${i}`, children: [
11255
- /* @__PURE__ */ s(
11258
+ const { currentTheme: a } = Fe(), { t: n } = Te(), l = e || (a == null ? void 0 : a.title) || "", s = ve(l, n), p = ve(t, n), u = !!(a != null && a.logo && a.logo.visible && a.logo.url), d = !!s;
11259
+ return !u && !d ? null : /* @__PURE__ */ o("div", { className: `metakyc-header ${i}`, children: [
11260
+ /* @__PURE__ */ o(
11256
11261
  "div",
11257
11262
  {
11258
11263
  className: "metakyc-header-title flex items-center text-xl font-bold",
11259
11264
  style: { color: "var(--metakyc-text-primary, #111827)" },
11260
11265
  children: [
11261
- l && /* @__PURE__ */ r(fa, { config: a.logo }),
11262
- l && o && /* @__PURE__ */ r(
11266
+ u && /* @__PURE__ */ r(fa, { config: a.logo }),
11267
+ u && d && /* @__PURE__ */ r(
11263
11268
  "span",
11264
11269
  {
11265
11270
  style: { fontSize: "1.5rem", fontWeight: 300, color: "var(--metakyc-text-muted, #9ca3af)", margin: "0 12px" },
11266
11271
  children: "|"
11267
11272
  }
11268
11273
  ),
11269
- o && /* @__PURE__ */ r("span", { style: { color: "var(--metakyc-text-primary, #111827)" }, children: n })
11274
+ d && /* @__PURE__ */ r("span", { style: { color: "var(--metakyc-text-primary, #111827)" }, children: s })
11270
11275
  ]
11271
11276
  }
11272
11277
  ),
11273
- t && /* @__PURE__ */ r("p", { className: "text-sm mt-1", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: t })
11278
+ p && /* @__PURE__ */ r("p", { className: "text-sm mt-1", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: p })
11274
11279
  ] });
11275
11280
  }, vt = ["firstName", "lastName", "email", "phonenumber", "dateOfBirth"];
11276
11281
  function mt(e) {
@@ -11309,7 +11314,7 @@ const ka = {
11309
11314
  justifyContent: "center",
11310
11315
  padding: "16px"
11311
11316
  },
11312
- children: /* @__PURE__ */ s(
11317
+ children: /* @__PURE__ */ o(
11313
11318
  "div",
11314
11319
  {
11315
11320
  onClick: (l) => l.stopPropagation(),
@@ -11368,7 +11373,7 @@ const ka = {
11368
11373
  )
11369
11374
  }
11370
11375
  ) : null;
11371
- return /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "flex-start", gap: "5px", flexWrap: "nowrap" }, children: [
11376
+ return /* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "flex-start", gap: "5px", flexWrap: "nowrap" }, children: [
11372
11377
  t,
11373
11378
  /* @__PURE__ */ r(
11374
11379
  "button",
@@ -11416,23 +11421,23 @@ const ka = {
11416
11421
  onCancel: a
11417
11422
  }) => {
11418
11423
  var $, Y, ee, g, z, E, m;
11419
- const { config: n, baseInformationService: l, currentTheme: o } = Fe(), { createApplicant: p, isLoading: u } = er(), { t: d } = Ie(), y = e || (($ = n.applicantForm) == null ? void 0 : $.workflowKey);
11424
+ const { config: n, baseInformationService: l, currentTheme: s } = Fe(), { createApplicant: p, isLoading: u } = tr(), { t: d } = Te(), y = e || (($ = n.applicantForm) == null ? void 0 : $.workflowKey);
11420
11425
  if (!y)
11421
11426
  throw new Error(
11422
11427
  "workflowKey is required. Provide it either as a prop to CreateApplicantForm or set it in config.applicantForm.workflowKey"
11423
11428
  );
11424
- const v = t || ((Y = n.applicantForm) == null ? void 0 : Y.externalRefId) || "", T = ((ee = n.applicantForm) == null ? void 0 : ee.email) || "", I = ((g = n.applicantForm) == null ? void 0 : g.hiddenValues) || {}, x = ((z = n.applicantForm) == null ? void 0 : z.initialValues) || {}, S = (((E = n.applicantForm) == null ? void 0 : E.fieldLabelMode) || (o == null ? void 0 : o.fieldLabelMode) || "label") !== "placeholder", L = Me(
11425
- () => o != null && o.applicantFormPages && o.applicantFormPages.length > 0 ? o.applicantFormPages : null,
11426
- [o == null ? void 0 : o.applicantFormPages]
11429
+ const v = t || ((Y = n.applicantForm) == null ? void 0 : Y.externalRefId) || "", T = ((ee = n.applicantForm) == null ? void 0 : ee.email) || "", I = ((g = n.applicantForm) == null ? void 0 : g.hiddenValues) || {}, x = ((z = n.applicantForm) == null ? void 0 : z.initialValues) || {}, S = (((E = n.applicantForm) == null ? void 0 : E.fieldLabelMode) || (s == null ? void 0 : s.fieldLabelMode) || "label") !== "placeholder", L = Me(
11430
+ () => s != null && s.applicantFormPages && s.applicantFormPages.length > 0 ? s.applicantFormPages : null,
11431
+ [s == null ? void 0 : s.applicantFormPages]
11427
11432
  ), B = Me(() => {
11428
- const c = new Set(vt), k = o == null ? void 0 : o.applicantFormRequiredFields;
11433
+ const c = new Set(vt), k = s == null ? void 0 : s.applicantFormRequiredFields;
11429
11434
  if (k) for (const j of k) c.add(j);
11430
11435
  if (L)
11431
11436
  for (const j of L)
11432
11437
  for (const h of j.fields)
11433
11438
  !h.isCustom && h.name && h.required && c.add(h.name);
11434
11439
  return Array.from(c);
11435
- }, [o == null ? void 0 : o.applicantFormRequiredFields, L]), F = Me(() => {
11440
+ }, [s == null ? void 0 : s.applicantFormRequiredFields, L]), F = Me(() => {
11436
11441
  var j;
11437
11442
  if (L) {
11438
11443
  const h = L.flatMap((C) => C.fields).filter((C) => !C.isCustom && C.name).map((C) => C.name), N = new Set(h);
@@ -11440,11 +11445,11 @@ const ka = {
11440
11445
  return Array.from(N);
11441
11446
  }
11442
11447
  let c;
11443
- (j = n.applicantForm) != null && j.visibleFields ? c = n.applicantForm.visibleFields : o != null && o.applicantFormVisibleFields && o.applicantFormVisibleFields.length > 0 ? c = o.applicantFormVisibleFields : c = Cr;
11448
+ (j = n.applicantForm) != null && j.visibleFields ? c = n.applicantForm.visibleFields : s != null && s.applicantFormVisibleFields && s.applicantFormVisibleFields.length > 0 ? c = s.applicantFormVisibleFields : c = Nr;
11444
11449
  const k = new Set(c);
11445
11450
  for (const h of vt) k.add(h);
11446
11451
  return Array.from(k);
11447
- }, [(m = n.applicantForm) == null ? void 0 : m.visibleFields, o == null ? void 0 : o.applicantFormVisibleFields, L]), U = /* @__PURE__ */ new Set([
11452
+ }, [(m = n.applicantForm) == null ? void 0 : m.visibleFields, s == null ? void 0 : s.applicantFormVisibleFields, L]), U = /* @__PURE__ */ new Set([
11448
11453
  "country",
11449
11454
  "nationality",
11450
11455
  "taxCountry",
@@ -11464,7 +11469,7 @@ const ka = {
11464
11469
  return c.size === 0 && c.add(void 0), Array.from(c);
11465
11470
  }, [F, L]), [J, ae] = b({}), [w, R] = b(!0), V = me(/* @__PURE__ */ new Set()), Q = me(/* @__PURE__ */ new Set());
11466
11471
  ke(() => {
11467
- if (!o) return;
11472
+ if (!s) return;
11468
11473
  const c = K.filter((h) => {
11469
11474
  const N = h != null ? String(h) : "all";
11470
11475
  return !Q.current.has(N) && !V.current.has(N);
@@ -11499,7 +11504,7 @@ const ka = {
11499
11504
  }) && R(!1);
11500
11505
  }
11501
11506
  })();
11502
- }, [K, o]);
11507
+ }, [K, s]);
11503
11508
  const X = (c, k) => {
11504
11509
  var N;
11505
11510
  const j = k ?? ((N = st[c]) == null ? void 0 : N.countriesType), h = j != null ? String(j) : "all";
@@ -11560,7 +11565,7 @@ const ka = {
11560
11565
  ...oe
11561
11566
  }), ge = Object.fromEntries(
11562
11567
  Object.entries(I).filter(([c]) => !(c in _) && c !== "externalRefId" && c !== "workflowKey")
11563
- ), [ye, be] = b({ ...ge }), [ue, P] = b(0), [A, O] = b({}), [he, se] = b(null), [D, ne] = b(!1), Z = (c, k) => je((j) => ({ ...j, [c]: k })), Te = (c, k) => be((j) => ({ ...j, [c]: k })), ze = (c) => !c.conditionalOn || ye[c.conditionalOn] === "true", Re = L && ue < L.length - 1 ? ue + 1 : -1, Ke = L && ue > 0 ? ue - 1 : -1, lt = (c) => {
11568
+ ), [ye, be] = b({ ...ge }), [ue, P] = b(0), [A, O] = b({}), [he, se] = b(null), [D, ne] = b(!1), Z = (c, k) => je((j) => ({ ...j, [c]: k })), Re = (c, k) => be((j) => ({ ...j, [c]: k })), ze = (c) => !c.conditionalOn || ye[c.conditionalOn] === "true", Ie = L && ue < L.length - 1 ? ue + 1 : -1, Ke = L && ue > 0 ? ue - 1 : -1, lt = (c) => {
11564
11569
  var j;
11565
11570
  const k = {};
11566
11571
  for (const h of c.fields)
@@ -11582,7 +11587,7 @@ const ka = {
11582
11587
  if (!L) return;
11583
11588
  const c = L[ue];
11584
11589
  if (c.conditionalOn && !ze(c)) {
11585
- O({}), Re >= 0 ? P(Re) : await Ye();
11590
+ O({}), Ie >= 0 ? P(Ie) : await Ye();
11586
11591
  return;
11587
11592
  }
11588
11593
  const k = lt(c);
@@ -11590,7 +11595,7 @@ const ka = {
11590
11595
  O(k);
11591
11596
  return;
11592
11597
  }
11593
- O({}), Re >= 0 ? P(Re) : await Ye();
11598
+ O({}), Ie >= 0 ? P(Ie) : await Ye();
11594
11599
  }, Ye = async () => {
11595
11600
  if (L) {
11596
11601
  let c = {};
@@ -11672,7 +11677,7 @@ const ka = {
11672
11677
  var Lt;
11673
11678
  const C = st[c];
11674
11679
  if (!C) return null;
11675
- const pe = B.includes(c), le = A[c], xe = ve(j, d) || C.label, Oe = c in oe, ce = k ?? c, We = { required: pe }, He = N ? N !== "placeholder" : S, Je = He ? xe : void 0, or = He ? "..." : xe;
11680
+ const pe = B.includes(c), le = A[c], xe = ve(j, d) || C.label, Oe = c in oe, ce = k ?? c, We = { required: pe }, He = N ? N !== "placeholder" : S, Je = He ? xe : void 0, sr = He ? "..." : xe;
11676
11681
  switch (C.type) {
11677
11682
  case "select":
11678
11683
  if (c === "country" || c === "nationality" || c === "taxCountry" || c === "countryOfBirth" || c === "mobileCountryCode") {
@@ -11684,7 +11689,7 @@ const ka = {
11684
11689
  label: Je,
11685
11690
  value: H[c] || "",
11686
11691
  onChange: (it) => Z(c, it),
11687
- options: [{ value: "", label: `Select ${or.toLowerCase()}` }, ...Ae],
11692
+ options: [{ value: "", label: `Select ${sr.toLowerCase()}` }, ...Ae],
11688
11693
  disabled: w,
11689
11694
  readOnly: Oe,
11690
11695
  error: le
@@ -11712,7 +11717,7 @@ const ka = {
11712
11717
  ce
11713
11718
  );
11714
11719
  if (c === "defaultLanguage") {
11715
- const Ae = o != null && o.allowedLanguages && o.allowedLanguages.length > 0 ? Pt.filter((it) => o.allowedLanguages.includes(it.value)) : Pt;
11720
+ const Ae = s != null && s.allowedLanguages && s.allowedLanguages.length > 0 ? Pt.filter((it) => s.allowedLanguages.includes(it.value)) : Pt;
11716
11721
  return /* @__PURE__ */ r(
11717
11722
  Qe,
11718
11723
  {
@@ -11839,7 +11844,7 @@ const ka = {
11839
11844
  return /* @__PURE__ */ r("div", { style: { height: "12px" } }, `custom-${k}`);
11840
11845
  if (c.customType === "link") {
11841
11846
  const C = ve(c.displayText, d) || ve(c.label, d) || c.linkText || c.linkUrl || "";
11842
- return /* @__PURE__ */ r("div", { className: "metakyc-link-field", children: /* @__PURE__ */ s(
11847
+ return /* @__PURE__ */ r("div", { className: "metakyc-link-field", children: /* @__PURE__ */ o(
11843
11848
  "a",
11844
11849
  {
11845
11850
  href: c.linkUrl || "#",
@@ -11864,8 +11869,8 @@ const ka = {
11864
11869
  if (!c.paramName) return null;
11865
11870
  const h = A[c.paramName], N = ve(c.displayText, d) || ve(c.label, d) || c.paramName;
11866
11871
  if (c.customType === "checkbox")
11867
- return /* @__PURE__ */ s("div", { className: "flex flex-col gap-1", children: [
11868
- /* @__PURE__ */ s(
11872
+ return /* @__PURE__ */ o("div", { className: "flex flex-col gap-1", children: [
11873
+ /* @__PURE__ */ o(
11869
11874
  "label",
11870
11875
  {
11871
11876
  className: "metakyc-option-label",
@@ -11875,10 +11880,10 @@ const ka = {
11875
11880
  Ue,
11876
11881
  {
11877
11882
  checked: ye[c.paramName] === "true",
11878
- onChange: (C) => Te(c.paramName, C ? "true" : "false")
11883
+ onChange: (C) => Re(c.paramName, C ? "true" : "false")
11879
11884
  }
11880
11885
  ),
11881
- /* @__PURE__ */ s(
11886
+ /* @__PURE__ */ o(
11882
11887
  "span",
11883
11888
  {
11884
11889
  className: "metakyc-option-text",
@@ -11895,8 +11900,8 @@ const ka = {
11895
11900
  h && /* @__PURE__ */ r("p", { className: "text-red-500 text-xs mt-0.5", children: h })
11896
11901
  ] }, `custom-${k}`);
11897
11902
  if (c.customType === "link_checkbox")
11898
- return /* @__PURE__ */ s("div", { className: "flex flex-col gap-1", children: [
11899
- /* @__PURE__ */ s(
11903
+ return /* @__PURE__ */ o("div", { className: "flex flex-col gap-1", children: [
11904
+ /* @__PURE__ */ o(
11900
11905
  "label",
11901
11906
  {
11902
11907
  className: "metakyc-option-label",
@@ -11906,10 +11911,10 @@ const ka = {
11906
11911
  Ue,
11907
11912
  {
11908
11913
  checked: ye[c.paramName] === "true",
11909
- onChange: (C) => Te(c.paramName, C ? "true" : "false")
11914
+ onChange: (C) => Re(c.paramName, C ? "true" : "false")
11910
11915
  }
11911
11916
  ),
11912
- /* @__PURE__ */ s(
11917
+ /* @__PURE__ */ o(
11913
11918
  "span",
11914
11919
  {
11915
11920
  className: "metakyc-option-text",
@@ -11940,8 +11945,8 @@ const ka = {
11940
11945
  ] }, `custom-${k}`);
11941
11946
  if (c.customType === "group_checkbox") {
11942
11947
  const C = (ye[c.paramName] || "").split(",").filter(Boolean);
11943
- return /* @__PURE__ */ s("div", { className: "flex flex-col gap-1.5", children: [
11944
- j && /* @__PURE__ */ s(
11948
+ return /* @__PURE__ */ o("div", { className: "flex flex-col gap-1.5", children: [
11949
+ j && /* @__PURE__ */ o(
11945
11950
  "div",
11946
11951
  {
11947
11952
  className: "text-sm font-medium",
@@ -11954,7 +11959,7 @@ const ka = {
11954
11959
  ),
11955
11960
  /* @__PURE__ */ r("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: (c.options || []).map((pe) => {
11956
11961
  const le = c.singleSelect ? ye[c.paramName] === pe.value : C.includes(pe.value);
11957
- return /* @__PURE__ */ s(
11962
+ return /* @__PURE__ */ o(
11958
11963
  "label",
11959
11964
  {
11960
11965
  className: "metakyc-option-label",
@@ -11966,10 +11971,10 @@ const ka = {
11966
11971
  checked: le,
11967
11972
  onChange: (xe) => {
11968
11973
  if (c.singleSelect)
11969
- Te(c.paramName, xe ? pe.value : "");
11974
+ Re(c.paramName, xe ? pe.value : "");
11970
11975
  else {
11971
11976
  const Oe = xe ? [...C, pe.value] : C.filter((ce) => ce !== pe.value);
11972
- Te(c.paramName, Oe.join(","));
11977
+ Re(c.paramName, Oe.join(","));
11973
11978
  }
11974
11979
  }
11975
11980
  }
@@ -11990,8 +11995,8 @@ const ka = {
11990
11995
  h && /* @__PURE__ */ r("p", { className: "text-red-500 text-xs", children: h })
11991
11996
  ] }, `custom-${k}`);
11992
11997
  }
11993
- return c.customType === "radio_group" ? /* @__PURE__ */ s("div", { className: "flex flex-col gap-1.5", children: [
11994
- j && /* @__PURE__ */ s(
11998
+ return c.customType === "radio_group" ? /* @__PURE__ */ o("div", { className: "flex flex-col gap-1.5", children: [
11999
+ j && /* @__PURE__ */ o(
11995
12000
  "div",
11996
12001
  {
11997
12002
  className: "text-sm font-medium",
@@ -12002,7 +12007,7 @@ const ka = {
12002
12007
  ]
12003
12008
  }
12004
12009
  ),
12005
- /* @__PURE__ */ r("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: (c.options || []).map((C) => /* @__PURE__ */ s(
12010
+ /* @__PURE__ */ r("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: (c.options || []).map((C) => /* @__PURE__ */ o(
12006
12011
  "label",
12007
12012
  {
12008
12013
  className: "metakyc-option-label",
@@ -12013,7 +12018,7 @@ const ka = {
12013
12018
  {
12014
12019
  type: "radio",
12015
12020
  checked: ye[c.paramName] === C.value,
12016
- onChange: () => Te(c.paramName, C.value),
12021
+ onChange: () => Re(c.paramName, C.value),
12017
12022
  name: `radio-group-${c.paramName}-${k}`,
12018
12023
  className: "metakyc-option-input",
12019
12024
  style: ka
@@ -12039,7 +12044,7 @@ const ka = {
12039
12044
  label: j ? `${N}${c.required ? " *" : ""}` : void 0,
12040
12045
  placeholder: j ? void 0 : N,
12041
12046
  value: ye[c.paramName] || "",
12042
- onChange: (C) => Te(c.paramName, C.target.value),
12047
+ onChange: (C) => Re(c.paramName, C.target.value),
12043
12048
  required: c.required,
12044
12049
  error: h
12045
12050
  },
@@ -12047,8 +12052,8 @@ const ka = {
12047
12052
  );
12048
12053
  }, M = (c, k) => {
12049
12054
  const j = ze(c);
12050
- return /* @__PURE__ */ s("div", { className: "space-y-4", children: [
12051
- c.conditionalOn && /* @__PURE__ */ r(Ht, { helpText: c.conditionalHelpText, children: /* @__PURE__ */ s(
12055
+ return /* @__PURE__ */ o("div", { className: "space-y-4", children: [
12056
+ c.conditionalOn && /* @__PURE__ */ r(Ht, { helpText: c.conditionalHelpText, children: /* @__PURE__ */ o(
12052
12057
  "label",
12053
12058
  {
12054
12059
  className: "metakyc-option-label",
@@ -12058,7 +12063,7 @@ const ka = {
12058
12063
  Ue,
12059
12064
  {
12060
12065
  checked: j,
12061
- onChange: (h) => Te(c.conditionalOn, h ? "true" : "false")
12066
+ onChange: (h) => Re(c.conditionalOn, h ? "true" : "false")
12062
12067
  }
12063
12068
  ),
12064
12069
  /* @__PURE__ */ r(
@@ -12078,17 +12083,17 @@ const ka = {
12078
12083
  }) })
12079
12084
  ] });
12080
12085
  };
12081
- if (!o || w)
12082
- return /* @__PURE__ */ r("div", { className: "metakyc-sdk", children: /* @__PURE__ */ r(re, { children: /* @__PURE__ */ s(ie, { children: [
12086
+ if (!s || w)
12087
+ return /* @__PURE__ */ r("div", { className: "metakyc-sdk", children: /* @__PURE__ */ r(re, { children: /* @__PURE__ */ o(ie, { children: [
12083
12088
  /* @__PURE__ */ r(Ve, { className: "my-8" }),
12084
12089
  /* @__PURE__ */ r("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)", fontSize: "0.875rem" }, children: d("common.loadingForm") })
12085
12090
  ] }) }) });
12086
12091
  if (L) {
12087
- const c = L[ue] ?? L[0], k = Ke === -1, j = Re === -1, h = L.length, N = ze(c), C = Object.values(A);
12088
- return /* @__PURE__ */ r("div", { className: "metakyc-sdk", children: /* @__PURE__ */ s(re, { children: [
12089
- /* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ r(ft, { title: (o == null ? void 0 : o.title) || d("createApplicant.title") }) }),
12090
- /* @__PURE__ */ s(ie, { children: [
12091
- (c.title || c.subtitle || c.description) && /* @__PURE__ */ s("div", { className: "mb-4", children: [
12092
+ const c = L[ue] ?? L[0], k = Ke === -1, j = Ie === -1, h = L.length, N = ze(c), C = Object.values(A);
12093
+ return /* @__PURE__ */ r("div", { className: "metakyc-sdk", children: /* @__PURE__ */ o(re, { children: [
12094
+ /* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ r(ft, { title: (s == null ? void 0 : s.title) || d("createApplicant.title") }) }),
12095
+ /* @__PURE__ */ o(ie, { children: [
12096
+ (c.title || c.subtitle || c.description) && /* @__PURE__ */ o("div", { className: "mb-4", children: [
12092
12097
  c.title && /* @__PURE__ */ r(
12093
12098
  "h3",
12094
12099
  {
@@ -12114,7 +12119,7 @@ const ka = {
12114
12119
  }
12115
12120
  )
12116
12121
  ] }),
12117
- h > 1 && /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem", marginBottom: "1rem" }, children: [
12122
+ h > 1 && /* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem", marginBottom: "1rem" }, children: [
12118
12123
  L.map((pe, le) => /* @__PURE__ */ r(
12119
12124
  "div",
12120
12125
  {
@@ -12127,14 +12132,14 @@ const ka = {
12127
12132
  },
12128
12133
  le
12129
12134
  )),
12130
- /* @__PURE__ */ s("span", { style: { fontSize: "0.75rem", color: "var(--metakyc-text-muted, #9ca3af)", flexShrink: 0 }, children: [
12135
+ /* @__PURE__ */ o("span", { style: { fontSize: "0.75rem", color: "var(--metakyc-text-muted, #9ca3af)", flexShrink: 0 }, children: [
12131
12136
  ue + 1,
12132
12137
  " / ",
12133
12138
  h
12134
12139
  ] })
12135
12140
  ] }),
12136
- (he || C.length > 0) && /* @__PURE__ */ s("div", { className: "mb-4 p-3 bg-red-50 border border-red-200 rounded-lg", children: [
12137
- he && /* @__PURE__ */ s("p", { className: "text-red-600 text-sm", children: [
12141
+ (he || C.length > 0) && /* @__PURE__ */ o("div", { className: "mb-4 p-3 bg-red-50 border border-red-200 rounded-lg", children: [
12142
+ he && /* @__PURE__ */ o("p", { className: "text-red-600 text-sm", children: [
12138
12143
  /* @__PURE__ */ r("strong", { children: d("common.errorPrefix") }),
12139
12144
  " ",
12140
12145
  he
@@ -12143,8 +12148,8 @@ const ka = {
12143
12148
  ] }),
12144
12149
  M(c)
12145
12150
  ] }),
12146
- /* @__PURE__ */ s(Ne, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
12147
- /* @__PURE__ */ s("div", { children: [
12151
+ /* @__PURE__ */ o(Ne, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
12152
+ /* @__PURE__ */ o("div", { children: [
12148
12153
  !k && /* @__PURE__ */ r(
12149
12154
  G,
12150
12155
  {
@@ -12171,17 +12176,17 @@ const ka = {
12171
12176
  ] })
12172
12177
  ] }) });
12173
12178
  }
12174
- return /* @__PURE__ */ r("div", { className: "metakyc-sdk", children: /* @__PURE__ */ r("form", { onSubmit: ct, children: /* @__PURE__ */ s(re, { children: [
12175
- /* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ r(ft, { title: (o == null ? void 0 : o.title) || d("createApplicant.title") }) }),
12176
- /* @__PURE__ */ s(ie, { children: [
12177
- he && /* @__PURE__ */ r("div", { className: "mb-6 p-4 bg-red-50 border border-red-200 rounded-lg", children: /* @__PURE__ */ s("p", { className: "text-red-600 text-sm", children: [
12179
+ return /* @__PURE__ */ r("div", { className: "metakyc-sdk", children: /* @__PURE__ */ r("form", { onSubmit: ct, children: /* @__PURE__ */ o(re, { children: [
12180
+ /* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ r(ft, { title: (s == null ? void 0 : s.title) || d("createApplicant.title") }) }),
12181
+ /* @__PURE__ */ o(ie, { children: [
12182
+ 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: [
12178
12183
  /* @__PURE__ */ r("strong", { children: d("common.errorPrefix") }),
12179
12184
  " ",
12180
12185
  he
12181
12186
  ] }) }),
12182
12187
  /* @__PURE__ */ r("div", { style: { display: "grid", gridTemplateColumns: "repeat(4, minmax(0, 1fr))", gap: "1rem" }, children: F.map((c) => /* @__PURE__ */ r("div", { style: { gridColumn: "span 4 / span 4" }, children: Ze(c) }, c)) })
12183
12188
  ] }),
12184
- /* @__PURE__ */ s(Ne, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
12189
+ /* @__PURE__ */ o(Ne, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
12185
12190
  a && /* @__PURE__ */ r(G, { type: "button", variant: "outline", onClick: a, disabled: D || u, children: "Cancel" }),
12186
12191
  /* @__PURE__ */ r(G, { type: "submit", isLoading: D || u, children: d("createApplicant.createApplicant") })
12187
12192
  ] })
@@ -12197,31 +12202,31 @@ const Oa = ({
12197
12202
  onCancel: a
12198
12203
  }) => {
12199
12204
  var Ze, f, M, $, Y, ee;
12200
- const { config: n, baseInformationService: l, currentTheme: o } = Fe(), { createCompanyApplicant: p, isLoading: u } = er(), { t: d } = Ie(), y = e || ((Ze = n.applicantForm) == null ? void 0 : Ze.workflowKey);
12205
+ const { config: n, baseInformationService: l, currentTheme: s } = Fe(), { createCompanyApplicant: p, isLoading: u } = tr(), { t: d } = Te(), y = e || ((Ze = n.applicantForm) == null ? void 0 : Ze.workflowKey);
12201
12206
  if (!y)
12202
12207
  throw new Error(
12203
12208
  "workflowKey is required. Provide it either as a prop to CreateCompanyApplicantForm or set it in config.applicantForm.workflowKey"
12204
12209
  );
12205
- const v = t || ((f = n.applicantForm) == null ? void 0 : f.externalRefId) || "", T = ((M = n.applicantForm) == null ? void 0 : M.email) || "", I = (($ = n.applicantForm) == null ? void 0 : $.initialValues) || {}, q = (((Y = n.applicantForm) == null ? void 0 : Y.fieldLabelMode) || (o == null ? void 0 : o.fieldLabelMode) || "label") !== "placeholder", S = Me(
12206
- () => o != null && o.companyFormPages && o.companyFormPages.length > 0 ? o.companyFormPages : null,
12207
- [o == null ? void 0 : o.companyFormPages]
12210
+ const v = t || ((f = n.applicantForm) == null ? void 0 : f.externalRefId) || "", T = ((M = n.applicantForm) == null ? void 0 : M.email) || "", I = (($ = n.applicantForm) == null ? void 0 : $.initialValues) || {}, q = (((Y = n.applicantForm) == null ? void 0 : Y.fieldLabelMode) || (s == null ? void 0 : s.fieldLabelMode) || "label") !== "placeholder", S = Me(
12211
+ () => s != null && s.companyFormPages && s.companyFormPages.length > 0 ? s.companyFormPages : null,
12212
+ [s == null ? void 0 : s.companyFormPages]
12208
12213
  ), L = Me(() => {
12209
- const g = new Set($t), z = o == null ? void 0 : o.companyFormRequiredFields;
12214
+ const g = new Set($t), z = s == null ? void 0 : s.companyFormRequiredFields;
12210
12215
  if (z) for (const E of z) g.add(E);
12211
12216
  if (S)
12212
12217
  for (const E of S)
12213
12218
  for (const m of E.fields)
12214
12219
  !m.isCustom && m.name && m.required && g.add(m.name);
12215
12220
  return Array.from(g);
12216
- }, [o == null ? void 0 : o.companyFormRequiredFields, S]), B = Me(() => {
12221
+ }, [s == null ? void 0 : s.companyFormRequiredFields, S]), B = Me(() => {
12217
12222
  var g;
12218
12223
  if (S) {
12219
12224
  const z = S.flatMap((m) => m.fields).filter((m) => !m.isCustom && m.name).map((m) => m.name), E = new Set(z);
12220
12225
  for (const m of $t) E.add(m);
12221
12226
  return Array.from(E);
12222
12227
  }
12223
- return (g = n.applicantForm) != null && g.visibleFields ? n.applicantForm.visibleFields : o != null && o.companyFormVisibleFields && o.companyFormVisibleFields.length > 0 ? o.companyFormVisibleFields : Sr;
12224
- }, [(ee = n.applicantForm) == null ? void 0 : ee.visibleFields, o == null ? void 0 : o.companyFormVisibleFields, S]), F = /* @__PURE__ */ new Set(["countryResidence", "addressCountry"]), U = Me(() => {
12228
+ return (g = n.applicantForm) != null && g.visibleFields ? n.applicantForm.visibleFields : s != null && s.companyFormVisibleFields && s.companyFormVisibleFields.length > 0 ? s.companyFormVisibleFields : Cr;
12229
+ }, [(ee = n.applicantForm) == null ? void 0 : ee.visibleFields, s == null ? void 0 : s.companyFormVisibleFields, S]), F = /* @__PURE__ */ new Set(["countryResidence", "addressCountry"]), U = Me(() => {
12225
12230
  var z, E;
12226
12231
  const g = /* @__PURE__ */ new Set();
12227
12232
  if (S)
@@ -12234,7 +12239,7 @@ const Oa = ({
12234
12239
  return g.size === 0 && g.add(void 0), Array.from(g);
12235
12240
  }, [B, S]), [K, J] = b({}), [ae, w] = b(!0), R = me(/* @__PURE__ */ new Set()), V = me(/* @__PURE__ */ new Set());
12236
12241
  ke(() => {
12237
- if (!o) return;
12242
+ if (!s) return;
12238
12243
  const g = U.filter((m) => {
12239
12244
  const c = m != null ? String(m) : "all";
12240
12245
  return !V.current.has(c) && !R.current.has(c);
@@ -12260,7 +12265,7 @@ const Oa = ({
12260
12265
  U.every((c) => V.current.has(c != null ? String(c) : "all")) && w(!1);
12261
12266
  }
12262
12267
  })();
12263
- }, [U, o]);
12268
+ }, [U, s]);
12264
12269
  const Q = (g, z) => {
12265
12270
  var c;
12266
12271
  const E = z ?? ((c = dt[g]) == null ? void 0 : c.countriesType), m = E != null ? String(E) : "all";
@@ -12310,7 +12315,7 @@ const Oa = ({
12310
12315
  lei: "",
12311
12316
  externalRefId: v,
12312
12317
  ...W
12313
- }), [H, je] = b({}), [ge, ye] = b(0), [be, ue] = b({}), [P, A] = b(null), [O, he] = b(!1), se = (g, z) => oe((E) => ({ ...E, [g]: z })), D = (g, z) => je((E) => ({ ...E, [g]: z })), ne = (g) => !g.conditionalOn || H[g.conditionalOn] === "true", Z = S && ge < S.length - 1 ? ge + 1 : -1, Te = S && ge > 0 ? ge - 1 : -1, ze = (g) => {
12318
+ }), [H, je] = b({}), [ge, ye] = b(0), [be, ue] = b({}), [P, A] = b(null), [O, he] = b(!1), se = (g, z) => oe((E) => ({ ...E, [g]: z })), D = (g, z) => je((E) => ({ ...E, [g]: z })), ne = (g) => !g.conditionalOn || H[g.conditionalOn] === "true", Z = S && ge < S.length - 1 ? ge + 1 : -1, Re = S && ge > 0 ? ge - 1 : -1, ze = (g) => {
12314
12319
  var E;
12315
12320
  const z = {};
12316
12321
  for (const m of g.fields)
@@ -12328,7 +12333,7 @@ const Oa = ({
12328
12333
  }
12329
12334
  }
12330
12335
  return z;
12331
- }, Re = async () => {
12336
+ }, Ie = async () => {
12332
12337
  if (!S) return;
12333
12338
  const g = S[ge];
12334
12339
  if (g.conditionalOn && !ne(g)) {
@@ -12535,8 +12540,8 @@ const Oa = ({
12535
12540
  ) }, `custom-${z}`);
12536
12541
  if (!g.paramName) return null;
12537
12542
  const E = be[g.paramName], m = ve(g.displayText, d) || ve(g.label, d) || g.paramName, c = g.labelMode ? g.labelMode !== "placeholder" : q;
12538
- return g.customType === "checkbox" ? /* @__PURE__ */ s("div", { className: "flex flex-col gap-1", children: [
12539
- /* @__PURE__ */ s("label", { style: { display: "flex", alignItems: "center", gap: "10px", cursor: "pointer" }, children: [
12543
+ return g.customType === "checkbox" ? /* @__PURE__ */ o("div", { className: "flex flex-col gap-1", children: [
12544
+ /* @__PURE__ */ o("label", { style: { display: "flex", alignItems: "center", gap: "10px", cursor: "pointer" }, children: [
12540
12545
  /* @__PURE__ */ r(
12541
12546
  Ue,
12542
12547
  {
@@ -12544,7 +12549,7 @@ const Oa = ({
12544
12549
  onChange: (k) => D(g.paramName, k ? "true" : "false")
12545
12550
  }
12546
12551
  ),
12547
- /* @__PURE__ */ s("span", { style: { fontSize: "14px", color: "var(--metakyc-text-primary, #111827)" }, children: [
12552
+ /* @__PURE__ */ o("span", { style: { fontSize: "14px", color: "var(--metakyc-text-primary, #111827)" }, children: [
12548
12553
  m,
12549
12554
  g.required && /* @__PURE__ */ r("span", { className: "text-red-500 ml-0.5", children: "*" })
12550
12555
  ] })
@@ -12565,8 +12570,8 @@ const Oa = ({
12565
12570
  );
12566
12571
  }, ct = (g) => {
12567
12572
  const z = ne(g);
12568
- return /* @__PURE__ */ s("div", { className: "space-y-4", children: [
12569
- g.conditionalOn && /* @__PURE__ */ s("label", { style: { display: "flex", alignItems: "center", gap: "10px", cursor: "pointer" }, children: [
12573
+ return /* @__PURE__ */ o("div", { className: "space-y-4", children: [
12574
+ g.conditionalOn && /* @__PURE__ */ o("label", { style: { display: "flex", alignItems: "center", gap: "10px", cursor: "pointer" }, children: [
12570
12575
  /* @__PURE__ */ r(
12571
12576
  Ue,
12572
12577
  {
@@ -12582,29 +12587,29 @@ const Oa = ({
12582
12587
  }) })
12583
12588
  ] });
12584
12589
  };
12585
- if (!o || ae)
12586
- return /* @__PURE__ */ r("div", { className: "metakyc-sdk", children: /* @__PURE__ */ r(re, { children: /* @__PURE__ */ s(ie, { children: [
12590
+ if (!s || ae)
12591
+ return /* @__PURE__ */ r("div", { className: "metakyc-sdk", children: /* @__PURE__ */ r(re, { children: /* @__PURE__ */ o(ie, { children: [
12587
12592
  /* @__PURE__ */ r(Ve, { className: "my-8" }),
12588
12593
  /* @__PURE__ */ r("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)", fontSize: "0.875rem" }, children: d("common.loadingForm") })
12589
12594
  ] }) }) });
12590
12595
  if (S) {
12591
- const g = S[ge] ?? S[0], z = Te === -1, E = Z === -1, m = S.length, c = ne(g), k = Object.values(be);
12592
- return /* @__PURE__ */ r("div", { className: "metakyc-sdk", children: /* @__PURE__ */ s(re, { children: [
12593
- /* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ r(ft, { title: (o == null ? void 0 : o.title) || d("createCompany.title") }) }),
12594
- /* @__PURE__ */ s(ie, { children: [
12595
- (g.title || g.subtitle) && /* @__PURE__ */ s("div", { className: "mb-4", children: [
12596
+ const g = S[ge] ?? S[0], z = Re === -1, E = Z === -1, m = S.length, c = ne(g), k = Object.values(be);
12597
+ return /* @__PURE__ */ r("div", { className: "metakyc-sdk", children: /* @__PURE__ */ o(re, { children: [
12598
+ /* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ r(ft, { title: (s == null ? void 0 : s.title) || d("createCompany.title") }) }),
12599
+ /* @__PURE__ */ o(ie, { children: [
12600
+ (g.title || g.subtitle) && /* @__PURE__ */ o("div", { className: "mb-4", children: [
12596
12601
  g.title && /* @__PURE__ */ r("h3", { className: "font-semibold text-base", style: { color: "var(--metakyc-text-primary, #111827)" }, children: g.title }),
12597
12602
  g.subtitle && /* @__PURE__ */ r("p", { className: "text-sm mt-0.5", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: g.subtitle })
12598
12603
  ] }),
12599
- (P || k.length > 0) && /* @__PURE__ */ s("div", { className: "mb-4 p-3 bg-red-50 border border-red-200 rounded-lg", children: [
12600
- P && /* @__PURE__ */ s("p", { className: "text-red-600 text-sm", children: [
12604
+ (P || k.length > 0) && /* @__PURE__ */ o("div", { className: "mb-4 p-3 bg-red-50 border border-red-200 rounded-lg", children: [
12605
+ P && /* @__PURE__ */ o("p", { className: "text-red-600 text-sm", children: [
12601
12606
  /* @__PURE__ */ r("strong", { children: d("common.errorPrefix") }),
12602
12607
  " ",
12603
12608
  P
12604
12609
  ] }),
12605
12610
  k.map((j, h) => /* @__PURE__ */ r("p", { className: "text-red-600 text-sm", children: j }, h))
12606
12611
  ] }),
12607
- m > 1 && /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem", marginBottom: "1rem" }, children: [
12612
+ m > 1 && /* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem", marginBottom: "1rem" }, children: [
12608
12613
  S.map((j, h) => /* @__PURE__ */ r(
12609
12614
  "div",
12610
12615
  {
@@ -12617,7 +12622,7 @@ const Oa = ({
12617
12622
  },
12618
12623
  h
12619
12624
  )),
12620
- /* @__PURE__ */ s("span", { style: { fontSize: "0.75rem", color: "var(--metakyc-text-muted, #9ca3af)", flexShrink: 0 }, children: [
12625
+ /* @__PURE__ */ o("span", { style: { fontSize: "0.75rem", color: "var(--metakyc-text-muted, #9ca3af)", flexShrink: 0 }, children: [
12621
12626
  ge + 1,
12622
12627
  " / ",
12623
12628
  m
@@ -12625,15 +12630,15 @@ const Oa = ({
12625
12630
  ] }),
12626
12631
  ct(g)
12627
12632
  ] }),
12628
- /* @__PURE__ */ s(Ne, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
12629
- /* @__PURE__ */ s("div", { children: [
12633
+ /* @__PURE__ */ o(Ne, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
12634
+ /* @__PURE__ */ o("div", { children: [
12630
12635
  !z && /* @__PURE__ */ r(
12631
12636
  G,
12632
12637
  {
12633
12638
  type: "button",
12634
12639
  variant: "outline",
12635
12640
  onClick: () => {
12636
- ye(Te), ue({});
12641
+ ye(Re), ue({});
12637
12642
  },
12638
12643
  disabled: O || u,
12639
12644
  children: d("common.previous")
@@ -12641,21 +12646,21 @@ const Oa = ({
12641
12646
  ),
12642
12647
  z && a && /* @__PURE__ */ r(G, { type: "button", variant: "outline", onClick: a, disabled: O || u, children: "Cancel" })
12643
12648
  ] }),
12644
- /* @__PURE__ */ r(G, { type: "button", isLoading: O || u, onClick: E ? Ke : Re, children: E ? g.conditionalOn && !c ? d("common.skipAndSubmit") : d("common.submit") : g.conditionalOn && !c ? d("common.skip") : d("common.next") })
12649
+ /* @__PURE__ */ r(G, { type: "button", isLoading: O || u, onClick: E ? Ke : Ie, children: E ? g.conditionalOn && !c ? d("common.skipAndSubmit") : d("common.submit") : g.conditionalOn && !c ? d("common.skip") : d("common.next") })
12645
12650
  ] })
12646
12651
  ] }) });
12647
12652
  }
12648
- return /* @__PURE__ */ r("div", { className: "metakyc-sdk", children: /* @__PURE__ */ r("form", { onSubmit: lt, children: /* @__PURE__ */ s(re, { children: [
12649
- /* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ r(ft, { title: (o == null ? void 0 : o.title) || d("createCompany.title") }) }),
12650
- /* @__PURE__ */ s(ie, { children: [
12651
- P && /* @__PURE__ */ r("div", { className: "mb-6 p-4 bg-red-50 border border-red-200 rounded-lg", children: /* @__PURE__ */ s("p", { className: "text-red-600 text-sm", children: [
12653
+ return /* @__PURE__ */ r("div", { className: "metakyc-sdk", children: /* @__PURE__ */ r("form", { onSubmit: lt, children: /* @__PURE__ */ o(re, { children: [
12654
+ /* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ r(ft, { title: (s == null ? void 0 : s.title) || d("createCompany.title") }) }),
12655
+ /* @__PURE__ */ o(ie, { children: [
12656
+ P && /* @__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: [
12652
12657
  /* @__PURE__ */ r("strong", { children: d("common.errorPrefix") }),
12653
12658
  " ",
12654
12659
  P
12655
12660
  ] }) }),
12656
12661
  /* @__PURE__ */ r("div", { style: { display: "grid", gridTemplateColumns: "repeat(4, minmax(0, 1fr))", gap: "1rem" }, children: B.map((g) => /* @__PURE__ */ r("div", { style: { gridColumn: "span 4 / span 4" }, children: rt(g) }, g)) })
12657
12662
  ] }),
12658
- /* @__PURE__ */ s(Ne, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
12663
+ /* @__PURE__ */ o(Ne, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
12659
12664
  a && /* @__PURE__ */ r(G, { type: "button", variant: "outline", onClick: a, disabled: O || u, children: "Cancel" }),
12660
12665
  /* @__PURE__ */ r(G, { type: "submit", isLoading: O || u, children: d("createCompany.registerCompany") })
12661
12666
  ] })
@@ -12666,9 +12671,9 @@ const Oa = ({
12666
12671
  onError: i,
12667
12672
  className: a
12668
12673
  }) => {
12669
- const { t: n } = Ie(), {
12674
+ const { t: n } = Te(), {
12670
12675
  progress: l,
12671
- currentStep: o,
12676
+ currentStep: s,
12672
12677
  steps: p,
12673
12678
  workflowKey: u,
12674
12679
  nextWorkflowKey: d,
@@ -12685,28 +12690,28 @@ const Oa = ({
12685
12690
  }, [l == null ? void 0 : l.workflowResult, t]), Se.useEffect(() => {
12686
12691
  y && S(!1);
12687
12692
  }, [y]), v || !l)
12688
- return /* @__PURE__ */ r("div", { className: `metakyc-sdk ${a || ""}`, children: /* @__PURE__ */ r(re, { children: /* @__PURE__ */ s(ie, { children: [
12693
+ return /* @__PURE__ */ r("div", { className: `metakyc-sdk ${a || ""}`, children: /* @__PURE__ */ r(re, { children: /* @__PURE__ */ o(ie, { children: [
12689
12694
  /* @__PURE__ */ r(Ve, { className: "my-8" }),
12690
12695
  /* @__PURE__ */ r("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: n("workflow.loadingWorkflow") })
12691
12696
  ] }) }) });
12692
12697
  if (T)
12693
- return /* @__PURE__ */ r("div", { className: `metakyc-sdk ${a || ""}`, children: /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ s("div", { className: "text-center py-8", children: [
12698
+ return /* @__PURE__ */ r("div", { className: `metakyc-sdk ${a || ""}`, children: /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ o("div", { className: "text-center py-8", children: [
12694
12699
  /* @__PURE__ */ r("p", { className: "text-lg mb-4", style: { color: "var(--metakyc-danger, #ef4444)" }, children: n("workflow.errorOccurred") }),
12695
12700
  /* @__PURE__ */ r("p", { style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: T.message })
12696
12701
  ] }) }) }) });
12697
12702
  if (y && !q)
12698
- return /* @__PURE__ */ r("div", { className: `metakyc-sdk ${a || ""}`, children: /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ s("div", { className: "text-center py-8", children: [
12703
+ return /* @__PURE__ */ r("div", { className: `metakyc-sdk ${a || ""}`, children: /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ o("div", { className: "text-center py-8", children: [
12699
12704
  /* @__PURE__ */ r("div", { className: "mb-6", children: /* @__PURE__ */ r("div", { className: "inline-flex items-center justify-center w-16 h-16 rounded-full mb-4", style: { backgroundColor: "var(--metakyc-primary-light, #dbeafe)" }, children: /* @__PURE__ */ r("svg", { className: "w-8 h-8", style: { color: "var(--metakyc-primary, #2563eb)" }, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ r("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" }) }) }) }),
12700
12705
  /* @__PURE__ */ r("h3", { className: "text-xl font-semibold mb-2", style: { color: "var(--metakyc-text-primary, #111827)" }, children: n("workflow.workflowTransition") }),
12701
12706
  /* @__PURE__ */ r("p", { className: "mb-6", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: n("workflow.workflowUpdatedMessage") }),
12702
- /* @__PURE__ */ s("div", { className: "rounded-lg p-4 mb-6 max-w-md mx-auto", style: { backgroundColor: "var(--metakyc-surface, #f9fafb)" }, children: [
12703
- /* @__PURE__ */ s("div", { className: "flex items-center justify-between text-sm", children: [
12704
- /* @__PURE__ */ s("div", { className: "text-left", children: [
12707
+ /* @__PURE__ */ o("div", { className: "rounded-lg p-4 mb-6 max-w-md mx-auto", style: { backgroundColor: "var(--metakyc-surface, #f9fafb)" }, children: [
12708
+ /* @__PURE__ */ o("div", { className: "flex items-center justify-between text-sm", children: [
12709
+ /* @__PURE__ */ o("div", { className: "text-left", children: [
12705
12710
  /* @__PURE__ */ r("p", { className: "mb-1", style: { color: "var(--metakyc-text-muted, #9ca3af)" }, children: n("workflow.previousWorkflow") }),
12706
12711
  /* @__PURE__ */ r("p", { className: "font-medium", style: { color: "var(--metakyc-text-primary, #111827)" }, children: u })
12707
12712
  ] }),
12708
12713
  /* @__PURE__ */ r("svg", { className: "w-6 h-6 mx-4", style: { color: "var(--metakyc-text-muted, #9ca3af)" }, fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ r("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M13 7l5 5m0 0l-5 5m5-5H6" }) }),
12709
- /* @__PURE__ */ s("div", { className: "text-right", children: [
12714
+ /* @__PURE__ */ o("div", { className: "text-right", children: [
12710
12715
  /* @__PURE__ */ r("p", { className: "mb-1", style: { color: "var(--metakyc-text-muted, #9ca3af)" }, children: n("workflow.newWorkflow") }),
12711
12716
  /* @__PURE__ */ r("p", { className: "font-medium", style: { color: "var(--metakyc-primary, #2563eb)" }, children: d })
12712
12717
  ] })
@@ -12737,8 +12742,8 @@ const Oa = ({
12737
12742
  }
12738
12743
  }
12739
12744
  ) });
12740
- if (!o)
12741
- return /* @__PURE__ */ r("div", { className: `metakyc-sdk ${a || ""}`, children: /* @__PURE__ */ r(re, { children: /* @__PURE__ */ s(ie, { children: [
12745
+ if (!s)
12746
+ return /* @__PURE__ */ r("div", { className: `metakyc-sdk ${a || ""}`, children: /* @__PURE__ */ r(re, { children: /* @__PURE__ */ o(ie, { children: [
12742
12747
  /* @__PURE__ */ r(Ve, { className: "my-8" }),
12743
12748
  /* @__PURE__ */ r("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: l.status === qe.IdentityPending ? n("workflow.loadingIdentityVerification") : n("workflow.loadingCurrentStep") })
12744
12749
  ] }) }) });
@@ -12766,8 +12771,8 @@ const Oa = ({
12766
12771
  return "";
12767
12772
  }
12768
12773
  }, F = () => {
12769
- const K = p.filter((V) => V.visibility !== !1), J = K.findIndex((V) => V.order === o.order), ae = J >= 0 ? J + 1 : 1, w = K.length, R = w > 1 ? (J + 1) / w * 100 : 100;
12770
- return /* @__PURE__ */ s("div", { style: {
12774
+ const K = p.filter((V) => V.visibility !== !1), J = K.findIndex((V) => V.order === s.order), ae = J >= 0 ? J + 1 : 1, w = K.length, R = w > 1 ? (J + 1) / w * 100 : 100;
12775
+ return /* @__PURE__ */ o("div", { style: {
12771
12776
  marginBottom: "24px",
12772
12777
  backgroundColor: "var(--metakyc-surface, var(--metakyc-background, #ffffff))",
12773
12778
  borderRadius: "0.75rem",
@@ -12775,11 +12780,11 @@ const Oa = ({
12775
12780
  padding: "1rem 1.5rem",
12776
12781
  overflow: "hidden"
12777
12782
  }, children: [
12778
- /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "flex-start", justifyContent: "space-between", marginBottom: "16px" }, children: [
12783
+ /* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "flex-start", justifyContent: "space-between", marginBottom: "16px" }, children: [
12779
12784
  /* @__PURE__ */ r(ft, {}),
12780
- /* @__PURE__ */ r(tr, { variant: l.status === 1 ? "info" : "success", children: n("common.stepXofY", { current: ae, total: w }) })
12785
+ /* @__PURE__ */ r(rr, { variant: l.status === 1 ? "info" : "success", children: n("common.stepXofY", { current: ae, total: w }) })
12781
12786
  ] }),
12782
- /* @__PURE__ */ s("div", { style: { position: "relative", height: "4px", borderRadius: "999px", overflow: "hidden", marginBottom: "16px" }, children: [
12787
+ /* @__PURE__ */ o("div", { style: { position: "relative", height: "4px", borderRadius: "999px", overflow: "hidden", marginBottom: "16px" }, children: [
12783
12788
  /* @__PURE__ */ r("div", { style: { position: "absolute", inset: 0, backgroundColor: "var(--metakyc-border, #e5e7eb)", opacity: 0.3 } }),
12784
12789
  /* @__PURE__ */ r("div", { style: {
12785
12790
  position: "absolute",
@@ -12808,9 +12813,9 @@ const Oa = ({
12808
12813
  onComplete: async () => {
12809
12814
  await x();
12810
12815
  },
12811
- onBack: o.order > 0 ? I : void 0
12816
+ onBack: s.order > 0 ? I : void 0
12812
12817
  };
12813
- switch (o.action) {
12818
+ switch (s.action) {
12814
12819
  case de.Questionaries:
12815
12820
  return /* @__PURE__ */ r(Zi, { ...K });
12816
12821
  case de.UploadDocument:
@@ -12837,22 +12842,22 @@ const Oa = ({
12837
12842
  }
12838
12843
  );
12839
12844
  default:
12840
- return /* @__PURE__ */ r(re, { children: /* @__PURE__ */ s(ie, { className: "py-12 text-center", children: [
12845
+ return /* @__PURE__ */ r(re, { children: /* @__PURE__ */ o(ie, { className: "py-12 text-center", children: [
12841
12846
  /* @__PURE__ */ r("div", { className: "mb-4", children: /* @__PURE__ */ r(Ve, {}) }),
12842
- /* @__PURE__ */ s("p", { className: "text-gray-600 dark:text-gray-400 mb-2", children: [
12847
+ /* @__PURE__ */ o("p", { className: "text-gray-600 dark:text-gray-400 mb-2", children: [
12843
12848
  n("workflow.processingStep"),
12844
12849
  " ",
12845
- o.title || o.name
12850
+ s.title || s.name
12846
12851
  ] }),
12847
- /* @__PURE__ */ s("p", { className: "text-sm text-gray-500 dark:text-gray-400", children: [
12852
+ /* @__PURE__ */ o("p", { className: "text-sm text-gray-500 dark:text-gray-400", children: [
12848
12853
  n("workflow.actionType"),
12849
12854
  " ",
12850
- de[o.action]
12855
+ de[s.action]
12851
12856
  ] })
12852
12857
  ] }) });
12853
12858
  }
12854
12859
  };
12855
- return /* @__PURE__ */ s("div", { className: `metakyc-sdk ${a || ""}`, children: [
12860
+ return /* @__PURE__ */ o("div", { className: `metakyc-sdk ${a || ""}`, children: [
12856
12861
  F(),
12857
12862
  U()
12858
12863
  ] });
@@ -12861,8 +12866,8 @@ const Oa = ({
12861
12866
  const n = Se.useRef(null), l = Se.useRef(null);
12862
12867
  return Se.useImperativeHandle(a, () => n.current), Se.useEffect(() => {
12863
12868
  if (l.current && n.current) {
12864
- const o = n.current, p = l.current, u = p.offsetLeft - o.offsetWidth / 2 + p.offsetWidth / 2;
12865
- o.scrollTo({ left: Math.max(0, u), behavior: "smooth" });
12869
+ const s = n.current, p = l.current, u = p.offsetLeft - s.offsetWidth / 2 + p.offsetWidth / 2;
12870
+ s.scrollTo({ left: Math.max(0, u), behavior: "smooth" });
12866
12871
  }
12867
12872
  }, [t]), /* @__PURE__ */ r(
12868
12873
  "div",
@@ -12881,10 +12886,10 @@ const Oa = ({
12881
12886
  padding: "4px 0",
12882
12887
  gap: "0"
12883
12888
  },
12884
- children: e.map((o, p) => {
12885
- const u = p < t, d = p === t, y = u || d, v = o.displayName || o.name || i(o.action) || `Step ${p + 1}`;
12886
- return /* @__PURE__ */ s(Se.Fragment, { children: [
12887
- /* @__PURE__ */ s(
12889
+ children: e.map((s, p) => {
12890
+ const u = p < t, d = p === t, y = u || d, v = s.displayName || s.name || i(s.action) || `Step ${p + 1}`;
12891
+ return /* @__PURE__ */ o(Se.Fragment, { children: [
12892
+ /* @__PURE__ */ o(
12888
12893
  "div",
12889
12894
  {
12890
12895
  ref: d ? l : void 0,
@@ -12936,7 +12941,7 @@ const Oa = ({
12936
12941
  opacity: u ? 1 : 0.25,
12937
12942
  transition: "opacity 0.2s ease"
12938
12943
  } })
12939
- ] }, o.order);
12944
+ ] }, s.order);
12940
12945
  })
12941
12946
  }
12942
12947
  );
@@ -12992,15 +12997,15 @@ function Wa(e) {
12992
12997
  const Ka = Xe.any();
12993
12998
  export {
12994
12999
  Pt as ALLOWED_LANGUAGES,
12995
- ur as ApplicantProgressOnHoldReason,
13000
+ pr as ApplicantProgressOnHoldReason,
12996
13001
  qe as ApplicantProgressStatus,
12997
- Ir as ApplicantService,
12998
- gr as ApplicantStatus,
12999
- vr as AppropriatenessQuestionType,
13000
- Lr as AppropriatenessTestService,
13002
+ zr as ApplicantService,
13003
+ yr as ApplicantStatus,
13004
+ br as AppropriatenessQuestionType,
13005
+ Er as AppropriatenessTestService,
13001
13006
  ua as AppropriatenessTestStep,
13002
- tr as Badge,
13003
- jr as BaseInformationService,
13007
+ rr as Badge,
13008
+ Mr as BaseInformationService,
13004
13009
  G as Button,
13005
13010
  dt as COMPANY_FIELD_METADATA,
13006
13011
  re as Card,
@@ -13011,78 +13016,78 @@ export {
13011
13016
  tt as CountriesType,
13012
13017
  Fa as CreateApplicantForm,
13013
13018
  Oa as CreateCompanyApplicantForm,
13014
- xr as CriteriaBuiltInType,
13015
- Sr as DEFAULT_COMPANY_VISIBLE_FIELDS,
13016
- Cr as DEFAULT_VISIBLE_FIELDS,
13017
- hr as DocumentReviewStatus,
13018
- Tr as EndpointBuilder,
13019
+ wr as CriteriaBuiltInType,
13020
+ Cr as DEFAULT_COMPANY_VISIBLE_FIELDS,
13021
+ Nr as DEFAULT_VISIBLE_FIELDS,
13022
+ vr as DocumentReviewStatus,
13023
+ Rr as EndpointBuilder,
13019
13024
  gt as ErrorHandler,
13020
- Yr as EventEmitter,
13025
+ Hr as EventEmitter,
13021
13026
  st as FIELD_METADATA,
13022
- kr as FileType,
13027
+ hr as FileType,
13023
13028
  qi as FileUpload,
13024
13029
  xt as GenderType,
13025
13030
  ft as Header,
13026
- Rr as HttpClient,
13031
+ Ir as HttpClient,
13027
13032
  et as IdentityProviderManager,
13028
- Dr as IdentityService,
13033
+ jr as IdentityService,
13029
13034
  Be as IdentityVerificationProvider,
13030
13035
  ya as IdentityVerificationStep,
13031
13036
  we as Input,
13032
- Mr as InvestorCategorizationService,
13037
+ Fr as InvestorCategorizationService,
13033
13038
  ma as InvestorCategorizationStep,
13034
13039
  Le as InvestorCategorizationType,
13035
- wr as InvestorCategoryType,
13036
- yr as KycProcessStatus,
13040
+ Sr as InvestorCategoryType,
13041
+ fr as KycProcessStatus,
13037
13042
  nt as KycStatus,
13038
13043
  Yt as KycStatusDisplay,
13039
13044
  Va as KycWorkflow,
13040
13045
  fa as Logo,
13041
- Jt as MetaKYCContext,
13046
+ er as MetaKYCContext,
13042
13047
  _e as MetaKYCError,
13043
13048
  Aa as MetaKYCProvider,
13044
13049
  Vi as MultiSelect,
13045
- Zr as OnfidoProvider,
13046
- Er as OverviewService,
13050
+ Jr as OnfidoProvider,
13051
+ Pr as OverviewService,
13047
13052
  ra as OverviewStep,
13048
13053
  Ui as PhoneInput,
13049
- zr as QuestionnaireService,
13054
+ Ar as QuestionnaireService,
13050
13055
  Zi as QuestionnaireStep,
13051
13056
  ot as ReviewStatus,
13052
- br as RiskCriteriaType,
13053
- pr as RiskLevel,
13054
- Pr as RiskScoringService,
13057
+ xr as RiskCriteriaType,
13058
+ gr as RiskLevel,
13059
+ Dr as RiskScoringService,
13055
13060
  ca as RiskScoringStep,
13056
- xi as SDK_VERSION,
13057
- Jr as SardinAIProvider,
13061
+ Zt as SDK_VERSION,
13062
+ ei as SardinAIProvider,
13058
13063
  Qe as SearchableSelect,
13059
13064
  At as Select,
13060
13065
  Ve as Spinner,
13061
- $r as StepRouter,
13062
- Xr as SumsubProvider,
13063
- ei as ThemeManager,
13066
+ _r as StepRouter,
13067
+ Zr as SumsubProvider,
13068
+ ti as ThemeManager,
13064
13069
  Pe as ThemePreset,
13065
- Wr as ThemeService,
13066
- bi as TranslationProvider,
13067
- Kr as TranslationService,
13068
- Ar as UploadDocumentService,
13070
+ Kr as ThemeService,
13071
+ xi as TranslationProvider,
13072
+ Yr as TranslationService,
13073
+ Lr as UploadDocumentService,
13069
13074
  ta as UploadDocumentStep,
13070
- fr as UserType,
13075
+ kr as UserType,
13071
13076
  Ge as ValueDataType,
13072
- _r as WorkflowOrchestrator,
13077
+ Gr as WorkflowOrchestrator,
13073
13078
  bt as WorkflowResultType,
13074
- Hr as WorkflowState,
13079
+ $r as WorkflowState,
13075
13080
  de as WorkflowStepAction,
13076
13081
  Ka as appropriatenessTestSchema,
13077
13082
  ja as clearAllStorage,
13078
13083
  Ri as clearApplicantId,
13079
13084
  zi as clearWorkflowState,
13080
13085
  De as cn,
13081
- Fr as corporateTheme,
13082
- Nr as defaultConfig,
13086
+ Or as corporateTheme,
13087
+ Tr as defaultConfig,
13083
13088
  Ee as defaultTheme,
13084
13089
  Ci as fileToBase64,
13085
- Or as fintechTheme,
13090
+ Vr as fintechTheme,
13086
13091
  St as formatFileSize,
13087
13092
  Wa as generateAppropriatenessSchema,
13088
13093
  Ba as generateQuestionnaireSchema,
@@ -13092,17 +13097,17 @@ export {
13092
13097
  Ti as getApplicantId,
13093
13098
  yt as getThemePreset,
13094
13099
  Da as getWorkflowState,
13095
- Vr as healthcareTheme,
13100
+ Br as healthcareTheme,
13096
13101
  Ia as isScriptLoaded,
13097
13102
  Qt as loadScript,
13098
- qr as minimalTheme,
13099
- Br as modernTheme,
13103
+ Ur as minimalTheme,
13104
+ qr as modernTheme,
13100
13105
  za as removeScript,
13101
13106
  ve as resolveDisplayText,
13102
13107
  Ni as saveApplicantId,
13103
13108
  Ii as saveWorkflowState,
13104
- Ur as themePresets,
13105
- er as useApplicant,
13109
+ Wr as themePresets,
13110
+ tr as useApplicant,
13106
13111
  Ma as useAppropriatenessTest,
13107
13112
  Di as useIdentityVerification,
13108
13113
  Ai as useKycWorkflow,
@@ -13110,7 +13115,7 @@ export {
13110
13115
  Pi as useOverview,
13111
13116
  Li as useQuestionnaire,
13112
13117
  ji as useRiskScoring,
13113
- Ie as useTranslation,
13118
+ Te as useTranslation,
13114
13119
  Ei as useUploadDocument,
13115
13120
  La as validateFileSize,
13116
13121
  Ea as validateFileType