@vpdev2/metakyc 1.0.30 → 1.0.31

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 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";
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 ye = (e, t, i) => lr(e, typeof t != "symbol" ? t + "" : t, i);
4
+ import cr from "axios";
5
5
  import { jsx as r, jsxs as o, Fragment as ut } from "react/jsx-runtime";
6
6
  import * as Et from "react";
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 mr, { createPortal as zt } from "react-dom";
9
- import { useForm as ur, Controller as at } from "react-hook-form";
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 || {}), 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 || {});
7
+ import Ce, { createContext as _t, useMemo as Fe, useState as b, useEffect as fe, useContext as Gt, useCallback as te, useRef as de, 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";
10
+ import { z as Qe } from "zod";
11
+ var ce = /* @__PURE__ */ ((e) => (e[e.IdentitySdk = 0] = "IdentitySdk", e[e.RiskScoring = 1] = "RiskScoring", e[e.Questionaries = 2] = "Questionaries", e[e.AdditionalData = 3] = "AdditionalData", e[e.AppropriatenessTest = 4] = "AppropriatenessTest", e[e.UploadDocument = 5] = "UploadDocument", e[e.ManualReview = 6] = "ManualReview", e[e.Overview = 7] = "Overview", e[e.InvestorCategorization = 8] = "InvestorCategorization", e))(ce || {}), 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 || {}), _e = /* @__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))(_e || {}), 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 || {}), Ee = /* @__PURE__ */ ((e) => (e[e.Individual = 0] = "Individual", e[e.Sophisticated = 1] = "Sophisticated", e[e.HighNetWorth = 2] = "HighNetWorth", e[e.Business = 3] = "Business", e))(Ee || {}), wr = /* @__PURE__ */ ((e) => (e[e.Retail = 0] = "Retail", e[e.Professional = 1] = "Professional", e[e.EligibleCounterparty = 2] = "EligibleCounterparty", e))(wr || {});
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
- }, Cr = [
61
+ }, Sr = [
62
62
  "companyName",
63
63
  "email",
64
64
  "phone",
65
65
  "registrationNumber"
66
- ], Nr = [
66
+ ], Cr = [
67
67
  "firstName",
68
68
  "lastName",
69
69
  "email",
@@ -88,8 +88,8 @@ const tt = {
88
88
  { value: "FI", label: "Finnish" },
89
89
  { value: "NO", label: "Norwegian" }
90
90
  ];
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 Tr = {
91
+ var De = /* @__PURE__ */ ((e) => (e.Default = "default", e.Corporate = "corporate", e.Fintech = "fintech", e.Healthcare = "healthcare", e.Modern = "modern", e.Minimal = "minimal", e))(De || {});
92
+ const Nr = {
93
93
  timeout: 3e4,
94
94
  retries: 3,
95
95
  locale: "en",
@@ -97,7 +97,7 @@ const Tr = {
97
97
  pattern: "host-controller"
98
98
  }
99
99
  };
100
- class Rr {
100
+ class Tr {
101
101
  constructor(t) {
102
102
  this.config = t;
103
103
  }
@@ -137,11 +137,11 @@ class Rr {
137
137
  }[t] || t;
138
138
  }
139
139
  }
140
- class _e extends Error {
140
+ class $e extends Error {
141
141
  constructor(i, a, n, l, s) {
142
142
  super(i);
143
- fe(this, "response");
144
- this.code = a, this.details = n, this.validationErrors = l, this.name = "MetaKYCError", this.response = s, Object.setPrototypeOf(this, _e.prototype);
143
+ ye(this, "response");
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 {
@@ -149,7 +149,7 @@ class gt {
149
149
  * Process an error from the API response
150
150
  */
151
151
  static handleApiError(t) {
152
- return new _e(
152
+ return new $e(
153
153
  t.message || "An unknown error occurred",
154
154
  t.code,
155
155
  t.details || void 0,
@@ -162,44 +162,44 @@ class gt {
162
162
  static handleAxiosError(t) {
163
163
  if (t.response) {
164
164
  const i = t.response.data;
165
- return i && i.error ? new _e(
165
+ return i && i.error ? new $e(
166
166
  i.error.message || "An unknown error occurred",
167
167
  i.error.code,
168
168
  i.error.details || void 0,
169
169
  i.error.validationErrors || void 0,
170
170
  t.response
171
- ) : i && i.result && i.result.message ? new _e(
171
+ ) : i && i.result && i.result.message ? new $e(
172
172
  i.result.message,
173
173
  t.response.status,
174
174
  `HTTP ${t.response.status}: ${t.response.statusText}`,
175
175
  void 0,
176
176
  t.response
177
- ) : new _e(
177
+ ) : new $e(
178
178
  (i == null ? void 0 : i.message) || t.message || "Request failed",
179
179
  t.response.status,
180
180
  `HTTP ${t.response.status}: ${t.response.statusText}`,
181
181
  void 0,
182
182
  t.response
183
183
  );
184
- } else return t.request ? new _e(
184
+ } else return t.request ? new $e(
185
185
  "No response from server",
186
186
  0,
187
187
  "The request was made but no response was received. Please check your network connection."
188
- ) : new _e(t.message || "An unexpected error occurred", 0, t.toString());
188
+ ) : new $e(t.message || "An unexpected error occurred", 0, t.toString());
189
189
  }
190
190
  /**
191
191
  * Check if an error is a MetaKYCError
192
192
  */
193
193
  static isMetaKYCError(t) {
194
- return t instanceof _e;
194
+ return t instanceof $e;
195
195
  }
196
196
  }
197
- class Ir {
197
+ class Rr {
198
198
  constructor(t) {
199
- fe(this, "axiosInstance");
200
- fe(this, "endpointBuilder");
201
- fe(this, "config");
202
- this.config = { ...Tr, ...t }, this.endpointBuilder = new Rr(this.config.endpoints), this.axiosInstance = dr.create({
199
+ ye(this, "axiosInstance");
200
+ ye(this, "endpointBuilder");
201
+ ye(this, "config");
202
+ this.config = { ...Nr, ...t }, this.endpointBuilder = new Tr(this.config.endpoints), this.axiosInstance = cr.create({
203
203
  baseURL: this.config.baseUrl,
204
204
  timeout: this.config.timeout,
205
205
  headers: {
@@ -295,7 +295,7 @@ class Ir {
295
295
  return this.axiosInstance;
296
296
  }
297
297
  }
298
- class zr {
298
+ class Ir {
299
299
  constructor(t) {
300
300
  this.httpClient = t;
301
301
  }
@@ -414,7 +414,7 @@ class zr {
414
414
  )).result;
415
415
  }
416
416
  }
417
- class Ar {
417
+ class zr {
418
418
  constructor(t) {
419
419
  this.httpClient = t;
420
420
  }
@@ -441,7 +441,7 @@ class Ar {
441
441
  )).result;
442
442
  }
443
443
  }
444
- class Lr {
444
+ class Ar {
445
445
  constructor(t) {
446
446
  this.httpClient = t;
447
447
  }
@@ -469,7 +469,7 @@ class Lr {
469
469
  await this.httpClient.post("UploadDocument", "ReviewUploadDocument", t);
470
470
  }
471
471
  }
472
- class Er {
472
+ class Lr {
473
473
  constructor(t) {
474
474
  this.httpClient = t;
475
475
  }
@@ -495,7 +495,7 @@ class Er {
495
495
  )).result;
496
496
  }
497
497
  }
498
- class Pr {
498
+ class Er {
499
499
  constructor(t) {
500
500
  this.httpClient = t;
501
501
  }
@@ -517,7 +517,7 @@ class Pr {
517
517
  await this.httpClient.get("Applicant", "PassOverview", { applicantId: t });
518
518
  }
519
519
  }
520
- class Dr {
520
+ class Pr {
521
521
  constructor(t) {
522
522
  this.httpClient = t;
523
523
  }
@@ -552,7 +552,7 @@ class Dr {
552
552
  )).result;
553
553
  }
554
554
  }
555
- class jr {
555
+ class Dr {
556
556
  constructor(t) {
557
557
  this.httpClient = t;
558
558
  }
@@ -620,7 +620,7 @@ class jr {
620
620
  return console.log("[IdentityService] Sumsub token refresh result:", i), i.result.accessToken;
621
621
  }
622
622
  }
623
- class Mr {
623
+ class jr {
624
624
  constructor(t) {
625
625
  this.httpClient = t;
626
626
  }
@@ -656,7 +656,7 @@ class Mr {
656
656
  )).result;
657
657
  }
658
658
  }
659
- class Fr {
659
+ class Mr {
660
660
  constructor(t) {
661
661
  this.httpClient = t;
662
662
  }
@@ -682,7 +682,7 @@ class Fr {
682
682
  )).result;
683
683
  }
684
684
  }
685
- const Ee = {
685
+ const Pe = {
686
686
  name: "Default",
687
687
  title: "KYC Verification",
688
688
  logo: {
@@ -741,7 +741,7 @@ const Ee = {
741
741
  textMuted: "#9ca3af"
742
742
  }
743
743
  }
744
- }, Or = {
744
+ }, Fr = {
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
- }, Vr = {
777
+ }, Or = {
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
- }, Br = {
810
+ }, Vr = {
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
- }, qr = {
852
+ }, Br = {
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
- }, Ur = {
885
+ }, qr = {
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
- }, Wr = {
919
- [Pe.Default]: Ee,
920
- [Pe.Corporate]: Or,
921
- [Pe.Fintech]: Vr,
922
- [Pe.Healthcare]: Br,
923
- [Pe.Modern]: qr,
924
- [Pe.Minimal]: Ur
918
+ }, Ur = {
919
+ [De.Default]: Pe,
920
+ [De.Corporate]: Fr,
921
+ [De.Fintech]: Or,
922
+ [De.Healthcare]: Vr,
923
+ [De.Modern]: Br,
924
+ [De.Minimal]: qr
925
925
  };
926
926
  function yt(e) {
927
- return Wr[e] || Ee;
927
+ return Ur[e] || Pe;
928
928
  }
929
- class Kr {
929
+ class Wr {
930
930
  constructor(t) {
931
931
  this.httpClient = t;
932
932
  }
@@ -941,8 +941,8 @@ class Kr {
941
941
  "GetThemeConfiguration"
942
942
  );
943
943
  if (!i.result.isEnabled)
944
- return yt(Pe.Default);
945
- let a = i.result.preset ? yt(i.result.preset) : yt(Pe.Default);
944
+ return yt(De.Default);
945
+ let a = i.result.preset ? yt(i.result.preset) : yt(De.Default);
946
946
  if (i.result.title && (a.title = i.result.title), i.result.logo && (a.logo = { ...a.logo, ...i.result.logo }), i.result.colors && (a.colors = { ...a.colors, ...i.result.colors }), i.result.typography && (a.typography = { ...a.typography, ...i.result.typography }), i.result.spacing && (a.spacing = { ...a.spacing, ...i.result.spacing }), i.result.customCSS && (a.customCSS = i.result.customCSS), i.result.darkMode && (a.darkMode = {
947
947
  colors: {
948
948
  ...(t = a.darkMode) == null ? void 0 : t.colors,
@@ -992,7 +992,7 @@ class Kr {
992
992
  }
993
993
  return a;
994
994
  } catch (i) {
995
- return console.warn("[ThemeService] Failed to fetch theme configuration:", i), yt(Pe.Default);
995
+ return console.warn("[ThemeService] Failed to fetch theme configuration:", i), yt(De.Default);
996
996
  }
997
997
  }
998
998
  /**
@@ -1006,12 +1006,12 @@ class Kr {
1006
1006
  */
1007
1007
  getAvailablePresets() {
1008
1008
  return [
1009
- { id: Pe.Default, name: "Default" },
1010
- { id: Pe.Corporate, name: "Corporate" },
1011
- { id: Pe.Fintech, name: "Fintech" },
1012
- { id: Pe.Healthcare, name: "Healthcare" },
1013
- { id: Pe.Modern, name: "Modern" },
1014
- { id: Pe.Minimal, name: "Minimal" }
1009
+ { id: De.Default, name: "Default" },
1010
+ { id: De.Corporate, name: "Corporate" },
1011
+ { id: De.Fintech, name: "Fintech" },
1012
+ { id: De.Healthcare, name: "Healthcare" },
1013
+ { id: De.Modern, name: "Modern" },
1014
+ { id: De.Minimal, name: "Minimal" }
1015
1015
  ];
1016
1016
  }
1017
1017
  /**
@@ -1029,7 +1029,7 @@ class Kr {
1029
1029
  } : a;
1030
1030
  }
1031
1031
  }
1032
- class Yr {
1032
+ class Kr {
1033
1033
  constructor(t) {
1034
1034
  this.httpClient = t;
1035
1035
  }
@@ -1046,9 +1046,9 @@ class Yr {
1046
1046
  }
1047
1047
  }
1048
1048
  }
1049
- class Hr {
1049
+ class Yr {
1050
1050
  constructor() {
1051
- fe(this, "listeners", /* @__PURE__ */ new Map());
1051
+ ye(this, "listeners", /* @__PURE__ */ new Map());
1052
1052
  }
1053
1053
  /**
1054
1054
  * Subscribe to an event
@@ -1091,12 +1091,12 @@ class Hr {
1091
1091
  this.listeners.delete(t);
1092
1092
  }
1093
1093
  }
1094
- class $r {
1094
+ class Hr {
1095
1095
  constructor() {
1096
- fe(this, "events", new Hr());
1097
- fe(this, "_applicantId", null);
1098
- fe(this, "_progress", null);
1099
- fe(this, "_error", null);
1096
+ ye(this, "events", new Yr());
1097
+ ye(this, "_applicantId", null);
1098
+ ye(this, "_progress", null);
1099
+ ye(this, "_error", null);
1100
1100
  }
1101
1101
  /**
1102
1102
  * Get current applicant ID
@@ -1231,9 +1231,9 @@ class $r {
1231
1231
  this.events.clear();
1232
1232
  }
1233
1233
  }
1234
- class _r {
1234
+ class $r {
1235
1235
  constructor() {
1236
- fe(this, "handlers", /* @__PURE__ */ new Map());
1236
+ ye(this, "handlers", /* @__PURE__ */ new Map());
1237
1237
  }
1238
1238
  /**
1239
1239
  * Register a step handler
@@ -1259,7 +1259,7 @@ class _r {
1259
1259
  async loadStepData(t, i) {
1260
1260
  const a = this.getHandler(t);
1261
1261
  if (!a)
1262
- throw new Error(`No handler registered for step action: ${de[t]}`);
1262
+ throw new Error(`No handler registered for step action: ${ce[t]}`);
1263
1263
  return a.loadData(i);
1264
1264
  }
1265
1265
  /**
@@ -1268,61 +1268,61 @@ class _r {
1268
1268
  async submitStepData(t, i) {
1269
1269
  const a = this.getHandler(t);
1270
1270
  if (!a)
1271
- throw new Error(`No handler registered for step action: ${de[t]}`);
1271
+ throw new Error(`No handler registered for step action: ${ce[t]}`);
1272
1272
  return a.submitData(i);
1273
1273
  }
1274
1274
  }
1275
- class Gr {
1275
+ class _r {
1276
1276
  constructor(t, i, a, n, l, s, p, u) {
1277
- fe(this, "state");
1278
- fe(this, "stepRouter");
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();
1277
+ ye(this, "state");
1278
+ ye(this, "stepRouter");
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 Hr(), this.stepRouter = new $r(), this.registerStepHandlers();
1280
1280
  }
1281
1281
  /**
1282
1282
  * Register all step handlers
1283
1283
  */
1284
1284
  registerStepHandlers() {
1285
- this.stepRouter.registerHandler(de.Questionaries, {
1285
+ this.stepRouter.registerHandler(ce.Questionaries, {
1286
1286
  loadData: (t) => this.questionnaireService.getQuestionnaire(t),
1287
1287
  submitData: async (t) => {
1288
1288
  await this.questionnaireService.fillQuestionnaire(t);
1289
1289
  }
1290
- }), this.stepRouter.registerHandler(de.UploadDocument, {
1290
+ }), this.stepRouter.registerHandler(ce.UploadDocument, {
1291
1291
  loadData: (t) => this.uploadDocumentService.getUploadDocument(t),
1292
1292
  submitData: (t) => this.uploadDocumentService.fillUploadDocument(t)
1293
- }), this.stepRouter.registerHandler(de.AppropriatenessTest, {
1293
+ }), this.stepRouter.registerHandler(ce.AppropriatenessTest, {
1294
1294
  loadData: (t) => this.appropriatenessTestService.getAppropriatenessTest(t),
1295
1295
  submitData: async (t) => {
1296
1296
  await this.appropriatenessTestService.fillAppropriatenessTest(t);
1297
1297
  }
1298
- }), this.stepRouter.registerHandler(de.Overview, {
1298
+ }), this.stepRouter.registerHandler(ce.Overview, {
1299
1299
  loadData: (t) => this.overviewService.getOverviewData(t),
1300
1300
  submitData: (t) => this.overviewService.passOverview(t.applicantId)
1301
- }), this.stepRouter.registerHandler(de.RiskScoring, {
1301
+ }), this.stepRouter.registerHandler(ce.RiskScoring, {
1302
1302
  loadData: (t) => this.riskScoringService.getRiskCriterias(t),
1303
1303
  submitData: async (t) => {
1304
1304
  await this.riskScoringService.submitRiskScoring(t);
1305
1305
  }
1306
- }), this.stepRouter.registerHandler(de.IdentitySdk, {
1306
+ }), this.stepRouter.registerHandler(ce.IdentitySdk, {
1307
1307
  loadData: async (t) => ({
1308
1308
  applicantId: t,
1309
1309
  message: "Identity verification required"
1310
1310
  }),
1311
1311
  submitData: async () => {
1312
1312
  }
1313
- }), this.stepRouter.registerHandler(de.InvestorCategorization, {
1313
+ }), this.stepRouter.registerHandler(ce.InvestorCategorization, {
1314
1314
  loadData: (t) => this.investorCategorizationService.getInvestorCategorization(t),
1315
1315
  submitData: async (t) => {
1316
1316
  await this.investorCategorizationService.setInvestorCategorization(t);
1317
1317
  }
1318
- }), this.stepRouter.registerHandler(de.ManualReview, {
1318
+ }), this.stepRouter.registerHandler(ce.ManualReview, {
1319
1319
  loadData: async (t) => ({
1320
1320
  applicantId: t,
1321
1321
  message: "Your application is under manual review"
1322
1322
  }),
1323
1323
  submitData: async () => {
1324
1324
  }
1325
- }), this.stepRouter.registerHandler(de.AdditionalData, {
1325
+ }), this.stepRouter.registerHandler(ce.AdditionalData, {
1326
1326
  loadData: async (t) => ({
1327
1327
  applicantId: t,
1328
1328
  message: "Additional data required"
@@ -1426,15 +1426,15 @@ function Qt(e, t) {
1426
1426
  n.src = e, t && (n.id = t), n.async = !0, n.onload = () => i(), n.onerror = () => a(new Error(`Failed to load script: ${e}`)), document.head.appendChild(n);
1427
1427
  });
1428
1428
  }
1429
- function Ia(e) {
1429
+ function Ra(e) {
1430
1430
  return !!document.getElementById(e);
1431
1431
  }
1432
- function za(e) {
1432
+ function Ia(e) {
1433
1433
  const t = document.getElementById(e);
1434
1434
  t && t.remove();
1435
1435
  }
1436
- const Qr = "https://static.sumsub.com/idensic/static/sns-websdk-builder.js";
1437
- function $e(e, t) {
1436
+ const Gr = "https://static.sumsub.com/idensic/static/sns-websdk-builder.js";
1437
+ function He(e, t) {
1438
1438
  try {
1439
1439
  const i = document.querySelector(".metakyc-sdk") || document.documentElement;
1440
1440
  return getComputedStyle(i).getPropertyValue(e).trim() || t;
@@ -1442,10 +1442,10 @@ function $e(e, t) {
1442
1442
  return t;
1443
1443
  }
1444
1444
  }
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");
1445
+ function Qr() {
1446
+ const e = He("--metakyc-primary", "#2563eb"), t = He("--metakyc-primary-hover", "#1d4ed8"), i = He("--metakyc-background", "#ffffff"), a = He("--metakyc-surface", "#f9fafb"), n = He("--metakyc-text-primary", "#111827"), l = He("--metakyc-text-secondary", "#6b7280"), s = He("--metakyc-text-muted", "#9ca3af"), p = He("--metakyc-border", "#e5e7eb");
1447
1447
  return `
1448
- body, html { font-family: ${$e(
1448
+ body, html { font-family: ${He(
1449
1449
  "--metakyc-font-family",
1450
1450
  "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"
1451
1451
  )} !important; background-color: ${i} !important; }
@@ -1469,16 +1469,16 @@ a { color: ${e}; }
1469
1469
  a:hover { color: ${t}; }
1470
1470
  `.trim();
1471
1471
  }
1472
- class Zr {
1472
+ class Xr {
1473
1473
  constructor(t) {
1474
- fe(this, "sdk", null);
1475
- fe(this, "config");
1476
- fe(this, "completeCallback", null);
1477
- fe(this, "errorCallback", null);
1474
+ ye(this, "sdk", null);
1475
+ ye(this, "config");
1476
+ ye(this, "completeCallback", null);
1477
+ ye(this, "errorCallback", null);
1478
1478
  this.config = t;
1479
1479
  }
1480
1480
  async loadSDK() {
1481
- if (!window.snsWebSdk && (await Qt(Qr, "sumsub-websdk"), !window.snsWebSdk))
1481
+ if (!window.snsWebSdk && (await Qt(Gr, "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 Zr {
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 = Xr()), i.uiConf = 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;
1492
1492
  }
1493
1493
  const a = window.snsWebSdk.init(
1494
1494
  this.config.accessToken,
@@ -1526,10 +1526,10 @@ class Zr {
1526
1526
  this.errorCallback = t;
1527
1527
  }
1528
1528
  }
1529
- class Jr {
1529
+ class Zr {
1530
1530
  constructor(t) {
1531
- fe(this, "sdk", null);
1532
- fe(this, "config");
1531
+ ye(this, "sdk", null);
1532
+ ye(this, "config");
1533
1533
  this.config = t;
1534
1534
  }
1535
1535
  /**
@@ -1592,11 +1592,11 @@ class Jr {
1592
1592
  this.sdk && (this.sdk.tearDown(), this.sdk = null);
1593
1593
  }
1594
1594
  }
1595
- class ei {
1595
+ class Jr {
1596
1596
  constructor(t) {
1597
- fe(this, "sardineContext", null);
1598
- fe(this, "config");
1599
- fe(this, "sessionKey");
1597
+ ye(this, "sardineContext", null);
1598
+ ye(this, "config");
1599
+ ye(this, "sessionKey");
1600
1600
  this.config = t, this.sessionKey = t.sessionKey || this.generateSessionKey();
1601
1601
  }
1602
1602
  /**
@@ -1743,11 +1743,11 @@ class et {
1743
1743
  static createProvider(t, i) {
1744
1744
  switch (t) {
1745
1745
  case Be.Sumsub:
1746
- return new Zr(i);
1746
+ return new Xr(i);
1747
1747
  case Be.Onfido:
1748
- return new Jr(i);
1748
+ return new Zr(i);
1749
1749
  case Be.SardinAI:
1750
- return new ei(i);
1750
+ return new Jr(i);
1751
1751
  default:
1752
1752
  throw new Error(`Unsupported identity provider: ${t}`);
1753
1753
  }
@@ -1791,11 +1791,11 @@ class et {
1791
1791
  }
1792
1792
  }
1793
1793
  }
1794
- class ti {
1794
+ class ei {
1795
1795
  constructor() {
1796
- fe(this, "currentTheme", Ee);
1797
- fe(this, "customStyleElement", null);
1798
- fe(this, "themeStyleElement", null);
1796
+ ye(this, "currentTheme", Pe);
1797
+ ye(this, "customStyleElement", null);
1798
+ ye(this, "themeStyleElement", null);
1799
1799
  }
1800
1800
  /**
1801
1801
  * Apply theme configuration
@@ -1909,19 +1909,19 @@ ${Object.entries(n).filter(([, u]) => !!u).map(([u, d]) => ` --metakyc-${u}: ${
1909
1909
  mergeWithDefault(t) {
1910
1910
  var i;
1911
1911
  return {
1912
- name: t.name || Ee.name,
1913
- title: t.title || Ee.title,
1914
- logo: { ...Ee.logo, ...t.logo },
1915
- colors: { ...Ee.colors, ...t.colors },
1916
- typography: t.typography ? { ...Ee.typography, ...t.typography } : Ee.typography,
1917
- spacing: t.spacing ? { ...Ee.spacing, ...t.spacing } : Ee.spacing,
1912
+ name: t.name || Pe.name,
1913
+ title: t.title || Pe.title,
1914
+ logo: { ...Pe.logo, ...t.logo },
1915
+ colors: { ...Pe.colors, ...t.colors },
1916
+ typography: t.typography ? { ...Pe.typography, ...t.typography } : Pe.typography,
1917
+ spacing: t.spacing ? { ...Pe.spacing, ...t.spacing } : Pe.spacing,
1918
1918
  customCSS: t.customCSS,
1919
1919
  darkMode: t.darkMode ? {
1920
1920
  colors: {
1921
- ...(i = Ee.darkMode) == null ? void 0 : i.colors,
1921
+ ...(i = Pe.darkMode) == null ? void 0 : i.colors,
1922
1922
  ...t.darkMode.colors
1923
1923
  }
1924
- } : Ee.darkMode,
1924
+ } : Pe.darkMode,
1925
1925
  applicantFormVisibleFields: t.applicantFormVisibleFields,
1926
1926
  applicantFormRequiredFields: t.applicantFormRequiredFields,
1927
1927
  allowedLanguages: t.allowedLanguages,
@@ -1945,7 +1945,7 @@ ${Object.entries(n).filter(([, u]) => !!u).map(([u, d]) => ` --metakyc-${u}: ${
1945
1945
  * Reset to default theme
1946
1946
  */
1947
1947
  resetTheme() {
1948
- this.applyTheme(Ee);
1948
+ this.applyTheme(Pe);
1949
1949
  }
1950
1950
  /**
1951
1951
  * Remove all custom styles
@@ -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 ri = {
1963
+ const ti = {
1964
1964
  common: {
1965
1965
  next: "Next",
1966
1966
  previous: "Previous",
@@ -2237,7 +2237,7 @@ const ri = {
2237
2237
  logo: {
2238
2238
  companyLogo: "Company Logo"
2239
2239
  }
2240
- }, ii = {
2240
+ }, ri = {
2241
2241
  common: {
2242
2242
  next: "Weiter",
2243
2243
  previous: "Zurück",
@@ -2514,7 +2514,7 @@ const ri = {
2514
2514
  logo: {
2515
2515
  companyLogo: "Firmenlogo"
2516
2516
  }
2517
- }, ai = {
2517
+ }, ii = {
2518
2518
  common: {
2519
2519
  next: "Suivant",
2520
2520
  previous: "Précédent",
@@ -2791,7 +2791,7 @@ const ri = {
2791
2791
  logo: {
2792
2792
  companyLogo: "Logo de l'entreprise"
2793
2793
  }
2794
- }, ni = {
2794
+ }, ai = {
2795
2795
  common: {
2796
2796
  next: "Siguiente",
2797
2797
  previous: "Anterior",
@@ -3068,7 +3068,7 @@ const ri = {
3068
3068
  logo: {
3069
3069
  companyLogo: "Logo de la empresa"
3070
3070
  }
3071
- }, oi = {
3071
+ }, ni = {
3072
3072
  common: {
3073
3073
  next: "Avanti",
3074
3074
  previous: "Precedente",
@@ -3345,7 +3345,7 @@ const ri = {
3345
3345
  logo: {
3346
3346
  companyLogo: "Logo aziendale"
3347
3347
  }
3348
- }, si = {
3348
+ }, oi = {
3349
3349
  common: {
3350
3350
  next: "Próximo",
3351
3351
  previous: "Anterior",
@@ -3622,7 +3622,7 @@ const ri = {
3622
3622
  logo: {
3623
3623
  companyLogo: "Logo da Empresa"
3624
3624
  }
3625
- }, li = {
3625
+ }, si = {
3626
3626
  common: {
3627
3627
  next: "Volgende",
3628
3628
  previous: "Vorige",
@@ -3899,7 +3899,7 @@ const ri = {
3899
3899
  logo: {
3900
3900
  companyLogo: "Bedrijfslogo"
3901
3901
  }
3902
- }, ci = {
3902
+ }, li = {
3903
3903
  common: {
3904
3904
  next: "Dalej",
3905
3905
  previous: "Wstecz",
@@ -4176,7 +4176,7 @@ const ri = {
4176
4176
  logo: {
4177
4177
  companyLogo: "Logo Firmy"
4178
4178
  }
4179
- }, di = {
4179
+ }, ci = {
4180
4180
  common: {
4181
4181
  next: "Далее",
4182
4182
  previous: "Назад",
@@ -4453,7 +4453,7 @@ const ri = {
4453
4453
  logo: {
4454
4454
  companyLogo: "Логотип Компании"
4455
4455
  }
4456
- }, mi = {
4456
+ }, di = {
4457
4457
  common: {
4458
4458
  next: "下一步",
4459
4459
  previous: "上一步",
@@ -4730,7 +4730,7 @@ const ri = {
4730
4730
  logo: {
4731
4731
  companyLogo: "公司标志"
4732
4732
  }
4733
- }, ui = {
4733
+ }, mi = {
4734
4734
  common: {
4735
4735
  next: "次へ",
4736
4736
  previous: "前へ",
@@ -5007,7 +5007,7 @@ const ri = {
5007
5007
  logo: {
5008
5008
  companyLogo: "会社ロゴ"
5009
5009
  }
5010
- }, pi = {
5010
+ }, ui = {
5011
5011
  common: {
5012
5012
  next: "التالي",
5013
5013
  previous: "السابق",
@@ -5284,7 +5284,7 @@ const ri = {
5284
5284
  logo: {
5285
5285
  companyLogo: "شعار الشركة"
5286
5286
  }
5287
- }, gi = {
5287
+ }, pi = {
5288
5288
  common: {
5289
5289
  next: "İleri",
5290
5290
  previous: "Geri",
@@ -5561,7 +5561,7 @@ const ri = {
5561
5561
  logo: {
5562
5562
  companyLogo: "Şirket Logosu"
5563
5563
  }
5564
- }, yi = {
5564
+ }, gi = {
5565
5565
  common: {
5566
5566
  next: "Nästa",
5567
5567
  previous: "Föregående",
@@ -5838,7 +5838,7 @@ const ri = {
5838
5838
  logo: {
5839
5839
  companyLogo: "Företagslogotyp"
5840
5840
  }
5841
- }, fi = {
5841
+ }, yi = {
5842
5842
  common: {
5843
5843
  next: "Næste",
5844
5844
  previous: "Forrige",
@@ -6115,7 +6115,7 @@ const ri = {
6115
6115
  logo: {
6116
6116
  companyLogo: "Virksomhedslogo"
6117
6117
  }
6118
- }, ki = {
6118
+ }, fi = {
6119
6119
  common: {
6120
6120
  next: "Seuraava",
6121
6121
  previous: "Edellinen",
@@ -6392,7 +6392,7 @@ const ri = {
6392
6392
  logo: {
6393
6393
  companyLogo: "Yrityksen logo"
6394
6394
  }
6395
- }, hi = {
6395
+ }, ki = {
6396
6396
  common: {
6397
6397
  next: "Neste",
6398
6398
  previous: "Forrige",
@@ -6670,23 +6670,23 @@ const ri = {
6670
6670
  companyLogo: "Firmalogo"
6671
6671
  }
6672
6672
  }, Rt = {
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
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
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 vi(e, t) {
6700
+ function hi(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,24 +6726,24 @@ 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 vi(l, a);
6729
+ return hi(l, a);
6730
6730
  };
6731
6731
  }
6732
- const bi = /^t\(['"](.+?)['"]\)$/, Ft = "$t:";
6732
+ const vi = /^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 = bi.exec(i);
6738
+ const a = vi.exec(i);
6739
6739
  return a ? t(a[1]) : e;
6740
6740
  }
6741
- const Zt = "1.0.30", Jt = _t(null), Ot = `metakyc-translations-${Zt}-`, xi = ({
6741
+ const Zt = "1.0.31", Jt = _t(null), Ot = `metakyc-translations-${Zt}-`, bi = ({
6742
6742
  locale: e,
6743
6743
  fetchTranslations: t,
6744
6744
  children: i
6745
6745
  }) => {
6746
- const a = e.toLowerCase().split(/[-_]/)[0], n = Me(() => {
6746
+ const a = e.toLowerCase().split(/[-_]/)[0], n = Fe(() => {
6747
6747
  const u = It(a);
6748
6748
  if (typeof window > "u") return u;
6749
6749
  try {
@@ -6753,7 +6753,7 @@ const Zt = "1.0.30", Jt = _t(null), Ot = `metakyc-translations-${Zt}-`, xi = ({
6753
6753
  }
6754
6754
  return u;
6755
6755
  }, [a]), [l, s] = b(n);
6756
- ke(() => {
6756
+ fe(() => {
6757
6757
  if (!t) return;
6758
6758
  let u = !1;
6759
6759
  return t(a).then((d) => {
@@ -6775,14 +6775,14 @@ const Zt = "1.0.30", Jt = _t(null), Ot = `metakyc-translations-${Zt}-`, xi = ({
6775
6775
  u = !0;
6776
6776
  };
6777
6777
  }, [a, t]);
6778
- const p = Me(() => ({
6778
+ const p = Fe(() => ({
6779
6779
  t: Xt(l),
6780
6780
  locale: a,
6781
6781
  dictionary: l
6782
6782
  }), [l, a]);
6783
6783
  return /* @__PURE__ */ r(Jt.Provider, { value: p, children: i });
6784
6784
  };
6785
- function Te() {
6785
+ function Re() {
6786
6786
  const e = Gt(Jt);
6787
6787
  if (!e) {
6788
6788
  const t = It("en");
@@ -6790,30 +6790,30 @@ function Te() {
6790
6790
  }
6791
6791
  return e;
6792
6792
  }
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";
6793
+ const er = _t(null), xi = '.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";
6794
6794
  let wt = !1;
6795
- function Si() {
6795
+ function wi() {
6796
6796
  if (wt || typeof document > "u") return;
6797
6797
  if (document.getElementById(Vt)) {
6798
6798
  wt = !0;
6799
6799
  return;
6800
6800
  }
6801
6801
  const e = document.createElement("style");
6802
- e.id = Vt, e.textContent = wi, document.head.appendChild(e), wt = !0;
6802
+ e.id = Vt, e.textContent = xi, document.head.appendChild(e), wt = !0;
6803
6803
  }
6804
- const Bt = "metakyc-theme-cache", Aa = ({ config: e, children: t }) => {
6805
- Si();
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();
6804
+ const Bt = "metakyc-theme-cache", za = ({ config: e, children: t }) => {
6805
+ wi();
6806
+ const [i, a] = b(null), n = Ce.useRef(!1), l = Ce.useRef(!1), s = Fe(() => {
6807
+ 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();
6808
6808
  if (typeof document < "u")
6809
6809
  if (e.theme)
6810
6810
  K.applyTheme(e.theme);
6811
6811
  else
6812
6812
  try {
6813
6813
  const J = localStorage.getItem(Bt);
6814
- K.applyTheme(J ? JSON.parse(J) : Ee);
6814
+ K.applyTheme(J ? JSON.parse(J) : Pe);
6815
6815
  } catch {
6816
- K.applyTheme(Ee);
6816
+ K.applyTheme(Pe);
6817
6817
  }
6818
6818
  return {
6819
6819
  httpClient: d,
@@ -6830,11 +6830,11 @@ const Bt = "metakyc-theme-cache", Aa = ({ config: e, children: t }) => {
6830
6830
  translationService: U,
6831
6831
  themeManager: K
6832
6832
  };
6833
- }, [e]), p = Me(() => ({
6833
+ }, [e]), p = Fe(() => ({
6834
6834
  config: e,
6835
6835
  ...s,
6836
6836
  currentTheme: i,
6837
- createOrchestrator: () => new Gr(
6837
+ createOrchestrator: () => new _r(
6838
6838
  s.applicantService,
6839
6839
  s.questionnaireService,
6840
6840
  s.uploadDocumentService,
@@ -6845,7 +6845,7 @@ const Bt = "metakyc-theme-cache", Aa = ({ config: e, children: t }) => {
6845
6845
  s.investorCategorizationService
6846
6846
  )
6847
6847
  }), [e, s, i]);
6848
- ke(() => ((async () => {
6848
+ fe(() => ((async () => {
6849
6849
  if (n.current || l.current) {
6850
6850
  console.log("[MetaKYC] Theme already loading or loaded, skipping...");
6851
6851
  return;
@@ -6877,7 +6877,7 @@ const Bt = "metakyc-theme-cache", Aa = ({ config: e, children: t }) => {
6877
6877
  [s.translationService]
6878
6878
  );
6879
6879
  return /* @__PURE__ */ r(er.Provider, { value: p, children: /* @__PURE__ */ o(
6880
- xi,
6880
+ bi,
6881
6881
  {
6882
6882
  locale: e.locale || "en",
6883
6883
  fetchTranslations: u,
@@ -6907,13 +6907,13 @@ const Bt = "metakyc-theme-cache", Aa = ({ config: e, children: t }) => {
6907
6907
  }
6908
6908
  ) });
6909
6909
  };
6910
- function Fe() {
6910
+ function Oe() {
6911
6911
  const e = Gt(er);
6912
6912
  if (!e)
6913
6913
  throw new Error("useMetaKYC must be used within a MetaKYCProvider");
6914
6914
  return e;
6915
6915
  }
6916
- async function Ci(e) {
6916
+ async function Si(e) {
6917
6917
  return new Promise((t, i) => {
6918
6918
  const a = new FileReader();
6919
6919
  a.readAsDataURL(e), a.onload = () => {
@@ -6922,10 +6922,10 @@ async function Ci(e) {
6922
6922
  }, a.onerror = (n) => i(n);
6923
6923
  });
6924
6924
  }
6925
- function La(e, t) {
6925
+ function Aa(e, t) {
6926
6926
  return e.size <= t;
6927
6927
  }
6928
- function Ea(e, t) {
6928
+ function La(e, t) {
6929
6929
  return t.split(",").map((a) => a.trim()).some((a) => {
6930
6930
  if (a.endsWith("/*")) {
6931
6931
  const n = a.slice(0, -2);
@@ -6939,24 +6939,24 @@ function St(e) {
6939
6939
  const t = 1024, i = ["Bytes", "KB", "MB", "GB"], a = Math.floor(Math.log(e) / Math.log(t));
6940
6940
  return Math.round(e / Math.pow(t, a) * 100) / 100 + " " + i[a];
6941
6941
  }
6942
- function Pa(e) {
6942
+ function Ea(e) {
6943
6943
  return e;
6944
6944
  }
6945
- function De(...e) {
6945
+ function je(...e) {
6946
6946
  return e.filter(Boolean).join(" ");
6947
6947
  }
6948
6948
  const pt = {
6949
6949
  APPLICANT_ID: "metakyc_applicant_id",
6950
6950
  WORKFLOW_STATE: "metakyc_workflow_state"
6951
6951
  };
6952
- function Ni(e) {
6952
+ function Ci(e) {
6953
6953
  try {
6954
6954
  localStorage.setItem(pt.APPLICANT_ID, e.toString());
6955
6955
  } catch (t) {
6956
6956
  console.warn("Failed to save applicant ID to storage:", t);
6957
6957
  }
6958
6958
  }
6959
- function Ti() {
6959
+ function Ni() {
6960
6960
  try {
6961
6961
  const e = localStorage.getItem(pt.APPLICANT_ID);
6962
6962
  return e ? parseInt(e, 10) : null;
@@ -6964,21 +6964,21 @@ function Ti() {
6964
6964
  return console.warn("Failed to retrieve applicant ID from storage:", e), null;
6965
6965
  }
6966
6966
  }
6967
- function Ri() {
6967
+ function Ti() {
6968
6968
  try {
6969
6969
  localStorage.removeItem(pt.APPLICANT_ID);
6970
6970
  } catch (e) {
6971
6971
  console.warn("Failed to clear applicant ID from storage:", e);
6972
6972
  }
6973
6973
  }
6974
- function Ii(e) {
6974
+ function Ri(e) {
6975
6975
  try {
6976
6976
  localStorage.setItem(pt.WORKFLOW_STATE, JSON.stringify(e));
6977
6977
  } catch (t) {
6978
6978
  console.warn("Failed to save workflow state to storage:", t);
6979
6979
  }
6980
6980
  }
6981
- function Da() {
6981
+ function Pa() {
6982
6982
  try {
6983
6983
  const e = localStorage.getItem(pt.WORKFLOW_STATE);
6984
6984
  return e ? JSON.parse(e) : null;
@@ -6986,23 +6986,23 @@ function Da() {
6986
6986
  return console.warn("Failed to retrieve workflow state from storage:", e), null;
6987
6987
  }
6988
6988
  }
6989
- function zi() {
6989
+ function Ii() {
6990
6990
  try {
6991
6991
  localStorage.removeItem(pt.WORKFLOW_STATE);
6992
6992
  } catch (e) {
6993
6993
  console.warn("Failed to clear workflow state from storage:", e);
6994
6994
  }
6995
6995
  }
6996
- function ja() {
6997
- Ri(), zi();
6996
+ function Da() {
6997
+ Ti(), Ii();
6998
6998
  }
6999
- function Ai(e) {
7000
- const { createOrchestrator: t } = Fe(), [i, a] = b(null), [n, l] = b(!1), [s, p] = b(null), u = me(null), d = e || Ti();
7001
- ke(() => {
6999
+ function zi(e) {
7000
+ const { createOrchestrator: t } = Oe(), [i, a] = b(null), [n, l] = b(!1), [s, p] = b(null), u = de(null), d = e || Ni();
7001
+ fe(() => {
7002
7002
  u.current || (u.current = t());
7003
- }, [t]), ke(() => {
7003
+ }, [t]), fe(() => {
7004
7004
  var F;
7005
- i && d && (Ni(d), Ii({
7005
+ i && d && (Ci(d), Ri({
7006
7006
  applicantId: d,
7007
7007
  currentStepOrder: (F = i.currentStep) == null ? void 0 : F.order,
7008
7008
  status: i.status,
@@ -7011,7 +7011,7 @@ function Ai(e) {
7011
7011
  nextWorkflowKey: i.nextWorkflowKey
7012
7012
  }));
7013
7013
  }, [i, d]);
7014
- const y = me(!1), v = me(!1), T = te(async () => {
7014
+ const y = de(!1), v = de(!1), T = te(async () => {
7015
7015
  if (!(!d || !u.current)) {
7016
7016
  if (y.current) {
7017
7017
  console.log("[Workflow] Load already in progress, skipping...");
@@ -7028,7 +7028,7 @@ function Ai(e) {
7028
7028
  }
7029
7029
  }
7030
7030
  }, [d]);
7031
- ke(() => {
7031
+ fe(() => {
7032
7032
  d && !v.current && T();
7033
7033
  }, [d, T]);
7034
7034
  const I = te(async () => {
@@ -7106,8 +7106,8 @@ function Ai(e) {
7106
7106
  orchestrator: u.current
7107
7107
  };
7108
7108
  }
7109
- function Li(e) {
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 () => {
7109
+ function Ai(e) {
7110
+ const { questionnaireService: t, applicantService: i } = Oe(), [a, n] = b(null), [l, s] = b({}), [p, u] = b(!1), [d, y] = b(!1), [v, T] = b(null), I = de(!1), x = de(null), q = te(async () => {
7111
7111
  var L, B;
7112
7112
  if (e) {
7113
7113
  if (I.current) {
@@ -7139,7 +7139,7 @@ function Li(e) {
7139
7139
  }
7140
7140
  }
7141
7141
  }, [e, t, i]);
7142
- ke(() => {
7142
+ fe(() => {
7143
7143
  e && x.current !== e && q();
7144
7144
  }, [e]);
7145
7145
  const S = te(
@@ -7165,8 +7165,8 @@ function Li(e) {
7165
7165
  submit: S
7166
7166
  };
7167
7167
  }
7168
- function Ei(e) {
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 () => {
7168
+ function Li(e) {
7169
+ const { uploadDocumentService: t } = Oe(), [i, a] = b(null), [n, l] = b(!1), [s, p] = b(!1), [u, d] = b(0), [y, v] = b(null), T = de(!1), I = de(null), x = te(async () => {
7170
7170
  if (e) {
7171
7171
  if (T.current) {
7172
7172
  console.log("[UploadDocument] Load already in progress, skipping...");
@@ -7183,7 +7183,7 @@ function Ei(e) {
7183
7183
  }
7184
7184
  }
7185
7185
  }, [e, t]);
7186
- ke(() => {
7186
+ fe(() => {
7187
7187
  e && I.current !== e && x();
7188
7188
  }, [e]);
7189
7189
  const q = te(
@@ -7209,8 +7209,8 @@ function Ei(e) {
7209
7209
  submit: q
7210
7210
  };
7211
7211
  }
7212
- function Ma(e) {
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 () => {
7212
+ function ja(e) {
7213
+ const { appropriatenessTestService: t } = Oe(), [i, a] = b(null), [n, l] = b(!1), [s, p] = b(!1), [u, d] = b(null), [y, v] = b(null), T = de(!1), I = de(null), x = te(async () => {
7214
7214
  if (e) {
7215
7215
  if (T.current) {
7216
7216
  console.log("[AppropriatenessTest] Load already in progress, skipping...");
@@ -7227,7 +7227,7 @@ function Ma(e) {
7227
7227
  }
7228
7228
  }
7229
7229
  }, [e, t]);
7230
- ke(() => {
7230
+ fe(() => {
7231
7231
  e && I.current !== e && x();
7232
7232
  }, [e]);
7233
7233
  const q = te(
@@ -7254,8 +7254,8 @@ function Ma(e) {
7254
7254
  submit: q
7255
7255
  };
7256
7256
  }
7257
- function Pi(e) {
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 () => {
7257
+ function Ei(e) {
7258
+ const { overviewService: t } = Oe(), [i, a] = b(null), [n, l] = b(!1), [s, p] = b(!1), [u, d] = b(null), y = de(!1), v = de(null), T = te(async () => {
7259
7259
  if (e) {
7260
7260
  if (y.current) {
7261
7261
  console.log("[Overview] Load already in progress, skipping...");
@@ -7272,7 +7272,7 @@ function Pi(e) {
7272
7272
  }
7273
7273
  }
7274
7274
  }, [e, t]);
7275
- ke(() => {
7275
+ fe(() => {
7276
7276
  e && v.current !== e && T();
7277
7277
  }, [e]);
7278
7278
  const I = te(async () => {
@@ -7296,10 +7296,10 @@ function Pi(e) {
7296
7296
  passOverview: I
7297
7297
  };
7298
7298
  }
7299
- function Di(e) {
7300
- const { identityService: t } = Fe(), [i, a] = b(
7299
+ function Pi(e) {
7300
+ const { identityService: t } = Oe(), [i, a] = b(
7301
7301
  null
7302
- ), [n, l] = b(!1), [s, p] = b(null), u = me(!1), d = te(
7302
+ ), [n, l] = b(!1), [s, p] = b(null), u = de(!1), d = te(
7303
7303
  async (T, I) => {
7304
7304
  if (e) {
7305
7305
  if (u.current) {
@@ -7382,8 +7382,8 @@ function Di(e) {
7382
7382
  restartIdentity: v
7383
7383
  };
7384
7384
  }
7385
- function ji(e) {
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 () => {
7385
+ function Di(e) {
7386
+ const { riskScoringService: t, applicantService: i } = Oe(), [a, n] = b(null), [l, s] = b({}), [p, u] = b(!1), [d, y] = b(!1), [v, T] = b(null), [I, x] = b(null), q = de(!1), S = de(null), L = te(async () => {
7387
7387
  var F;
7388
7388
  if (e) {
7389
7389
  if (q.current) {
@@ -7415,7 +7415,7 @@ function ji(e) {
7415
7415
  }
7416
7416
  }
7417
7417
  }, [e, t, i]);
7418
- ke(() => {
7418
+ fe(() => {
7419
7419
  e && S.current !== e && L();
7420
7420
  }, [e]);
7421
7421
  const B = te(
@@ -7444,7 +7444,7 @@ function ji(e) {
7444
7444
  };
7445
7445
  }
7446
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) {
7447
+ const { applicantService: e, config: t } = Oe(), [i, a] = b(!1), [n, l] = b(null), s = de(!1), p = de(!1), u = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(I) {
7448
7448
  const x = Math.random() * 16 | 0;
7449
7449
  return (I === "x" ? x : x & 3 | 8).toString(16);
7450
7450
  }), d = te(
@@ -7517,7 +7517,7 @@ function tr() {
7517
7517
  stopProgress: T
7518
7518
  };
7519
7519
  }
7520
- const Mi = {
7520
+ const ji = {
7521
7521
  primary: {
7522
7522
  backgroundColor: "var(--metakyc-primary, #2563eb)",
7523
7523
  color: "#ffffff",
@@ -7565,7 +7565,7 @@ const Mi = {
7565
7565
  return /* @__PURE__ */ o(
7566
7566
  "button",
7567
7567
  {
7568
- className: De(u, d[i], l),
7568
+ className: je(u, d[i], l),
7569
7569
  style: {
7570
7570
  display: "inline-flex",
7571
7571
  alignItems: "center",
@@ -7578,7 +7578,7 @@ const Mi = {
7578
7578
  opacity: n || a ? 0.5 : 1,
7579
7579
  lineHeight: "1.25rem",
7580
7580
  ...y[i],
7581
- ...Mi[t],
7581
+ ...ji[t],
7582
7582
  ...s
7583
7583
  },
7584
7584
  disabled: n || a,
@@ -7618,7 +7618,7 @@ const Mi = {
7618
7618
  ]
7619
7619
  }
7620
7620
  );
7621
- }, we = kt(
7621
+ }, Se = kt(
7622
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
7623
  e && /* @__PURE__ */ o(
7624
7624
  "label",
@@ -7637,7 +7637,7 @@ const Mi = {
7637
7637
  "input",
7638
7638
  {
7639
7639
  ref: u,
7640
- className: De(
7640
+ className: je(
7641
7641
  "block w-full rounded-lg border px-3 py-2 text-sm transition-colors",
7642
7642
  "focus:outline-none focus:ring-2 focus:ring-offset-0",
7643
7643
  "disabled:opacity-60 disabled:cursor-not-allowed",
@@ -7662,11 +7662,11 @@ const Mi = {
7662
7662
  !t && i && /* @__PURE__ */ r("p", { className: "mt-1 text-sm", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: i })
7663
7663
  ] })
7664
7664
  );
7665
- we.displayName = "Input";
7665
+ Se.displayName = "Input";
7666
7666
  const re = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
7667
7667
  "div",
7668
7668
  {
7669
- className: De("metakyc-card rounded-xl shadow-sm border", t),
7669
+ className: je("metakyc-card rounded-xl shadow-sm border", t),
7670
7670
  style: {
7671
7671
  backgroundColor: "var(--metakyc-surface, #ffffff)",
7672
7672
  borderColor: "var(--metakyc-border, #e5e7eb)",
@@ -7679,10 +7679,10 @@ const re = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
7679
7679
  ...a,
7680
7680
  children: e
7681
7681
  }
7682
- ), Ce = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
7682
+ ), Ne = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
7683
7683
  "div",
7684
7684
  {
7685
- className: De("px-6 py-4 border-b", t),
7685
+ className: je("px-6 py-4 border-b", t),
7686
7686
  style: {
7687
7687
  padding: "1rem 1.5rem",
7688
7688
  borderBottomWidth: "1px",
@@ -7696,15 +7696,15 @@ const re = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
7696
7696
  ), ie = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
7697
7697
  "div",
7698
7698
  {
7699
- className: De("px-6 py-4", t),
7699
+ className: je("px-6 py-4", t),
7700
7700
  style: { padding: "1rem 1.5rem", ...i },
7701
7701
  ...a,
7702
7702
  children: e
7703
7703
  }
7704
- ), Ne = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
7704
+ ), Te = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
7705
7705
  "div",
7706
7706
  {
7707
- className: De("px-6 py-4 border-t", t),
7707
+ className: je("px-6 py-4 border-t", t),
7708
7708
  style: {
7709
7709
  padding: "1rem 1.5rem",
7710
7710
  borderTopWidth: "1px",
@@ -7715,7 +7715,7 @@ const re = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
7715
7715
  ...a,
7716
7716
  children: e
7717
7717
  }
7718
- ), Fi = {
7718
+ ), Mi = {
7719
7719
  display: "inline-flex",
7720
7720
  alignItems: "center",
7721
7721
  justifyContent: "center",
@@ -7749,7 +7749,7 @@ const re = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
7749
7749
  (p.key === " " || p.key === "Enter") && (p.preventDefault(), i || t(!e));
7750
7750
  },
7751
7751
  style: {
7752
- ...Fi,
7752
+ ...Mi,
7753
7753
  backgroundColor: e ? s : l,
7754
7754
  borderColor: e ? s : n,
7755
7755
  opacity: i ? 0.5 : 1,
@@ -7778,7 +7778,7 @@ const re = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
7778
7778
  )
7779
7779
  }
7780
7780
  );
7781
- }, Oi = {
7781
+ }, Fi = {
7782
7782
  default: {
7783
7783
  backgroundColor: "var(--metakyc-surface, #f3f4f6)",
7784
7784
  color: "var(--metakyc-text-secondary, #6b7280)"
@@ -7805,11 +7805,11 @@ const re = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
7805
7805
  }, rr = ({ children: e, variant: t = "default", className: i, style: a, ...n }) => /* @__PURE__ */ r(
7806
7806
  "span",
7807
7807
  {
7808
- className: De(
7808
+ className: je(
7809
7809
  "inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",
7810
7810
  i
7811
7811
  ),
7812
- style: { ...Oi[t], ...a },
7812
+ style: { ...Fi[t], ...a },
7813
7813
  ...n,
7814
7814
  children: e
7815
7815
  }
@@ -7819,10 +7819,10 @@ const re = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
7819
7819
  md: "h-8 w-8",
7820
7820
  lg: "h-12 w-12"
7821
7821
  };
7822
- return /* @__PURE__ */ r("div", { className: De("flex items-center justify-center", t), ...i, children: /* @__PURE__ */ o(
7822
+ return /* @__PURE__ */ r("div", { className: je("flex items-center justify-center", t), ...i, children: /* @__PURE__ */ o(
7823
7823
  "svg",
7824
7824
  {
7825
- className: De("animate-spin text-primary-500", a[e]),
7825
+ className: je("animate-spin text-primary-500", a[e]),
7826
7826
  xmlns: "http://www.w3.org/2000/svg",
7827
7827
  fill: "none",
7828
7828
  viewBox: "0 0 24 24",
@@ -7866,7 +7866,7 @@ const re = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
7866
7866
  "select",
7867
7867
  {
7868
7868
  ref: u,
7869
- className: De(
7869
+ className: je(
7870
7870
  "block w-full rounded-lg border px-3 py-2 text-sm transition-colors",
7871
7871
  "focus:outline-none focus:ring-2 focus:ring-offset-0",
7872
7872
  "disabled:opacity-60 disabled:cursor-not-allowed",
@@ -7916,7 +7916,7 @@ const re = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
7916
7916
  ] })
7917
7917
  );
7918
7918
  At.displayName = "Select";
7919
- const qt = 280, Vi = ({
7919
+ const qt = 280, Oi = ({
7920
7920
  label: e,
7921
7921
  value: t,
7922
7922
  onChange: i,
@@ -7926,7 +7926,7 @@ const qt = 280, Vi = ({
7926
7926
  readOnly: s = !1,
7927
7927
  required: p = !1
7928
7928
  }) => {
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({
7929
+ const { t: u } = Re(), d = n ?? u("common.select"), y = l || s, [v, T] = b(!1), [I, x] = b(""), [q, S] = b(null), [L, B] = b({
7930
7930
  bg: "#ffffff",
7931
7931
  borderColor: "#d1d5db",
7932
7932
  textPrimary: "#111827",
@@ -7934,12 +7934,12 @@ const qt = 280, Vi = ({
7934
7934
  primaryColor: "#2563eb",
7935
7935
  primaryLight: "#eff6ff",
7936
7936
  hoverBg: "#f9fafb"
7937
- }), F = me(null), U = me(null), K = me(null), J = te(() => {
7937
+ }), F = de(null), U = de(null), K = de(null), J = te(() => {
7938
7938
  if (!U.current) return null;
7939
7939
  const P = U.current.getBoundingClientRect(), O = window.innerHeight - P.bottom < qt && P.top > qt;
7940
7940
  return { top: O ? P.top : P.bottom + 4, left: P.left, width: P.width, openUp: O };
7941
7941
  }, []), ae = te(() => {
7942
- const P = getComputedStyle(document.querySelector(".metakyc-sdk") || document.documentElement), A = (he, se) => P.getPropertyValue(he).trim() || se, O = A("--metakyc-input-bg", A("--metakyc-background", "#ffffff"));
7942
+ const P = getComputedStyle(document.querySelector(".metakyc-sdk") || document.documentElement), A = (ke, se) => P.getPropertyValue(ke).trim() || se, O = A("--metakyc-input-bg", A("--metakyc-background", "#ffffff"));
7943
7943
  B({
7944
7944
  bg: O,
7945
7945
  borderColor: A("--metakyc-input-border", A("--metakyc-border", "#d1d5db")),
@@ -7957,15 +7957,15 @@ const qt = 280, Vi = ({
7957
7957
  }, [y, J, ae]), R = te(() => {
7958
7958
  T(!1), x("");
7959
7959
  }, []);
7960
- ke(() => {
7960
+ fe(() => {
7961
7961
  if (!v) return;
7962
7962
  const P = (A) => {
7963
- var he, se;
7963
+ var ke, se;
7964
7964
  const O = A.target;
7965
- !((he = F.current) != null && he.contains(O)) && !((se = K.current) != null && se.contains(O)) && R();
7965
+ !((ke = F.current) != null && ke.contains(O)) && !((se = K.current) != null && se.contains(O)) && R();
7966
7966
  };
7967
7967
  return document.addEventListener("mousedown", P), () => document.removeEventListener("mousedown", P);
7968
- }, [v, R]), ke(() => {
7968
+ }, [v, R]), fe(() => {
7969
7969
  if (!v) return;
7970
7970
  const P = () => {
7971
7971
  const A = J();
@@ -7984,7 +7984,7 @@ const qt = 280, Vi = ({
7984
7984
  }, W = (P) => {
7985
7985
  var A;
7986
7986
  return ((A = a.find((O) => O.value === P)) == null ? void 0 : A.label) || P;
7987
- }, { bg: _, borderColor: oe, textPrimary: H, textSecondary: je, primaryColor: ge, primaryLight: ye, hoverBg: be } = L, ue = v && q && /* @__PURE__ */ o(
7987
+ }, { bg: _, borderColor: oe, textPrimary: H, textSecondary: Me, primaryColor: pe, primaryLight: ge, hoverBg: xe } = L, me = v && q && /* @__PURE__ */ o(
7988
7988
  "div",
7989
7989
  {
7990
7990
  ref: K,
@@ -8034,7 +8034,7 @@ const qt = 280, Vi = ({
8034
8034
  }
8035
8035
  }
8036
8036
  ) }),
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) => {
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: Me }, children: u("common.noResults") }) : V.map((P) => {
8038
8038
  const A = t.includes(P.value);
8039
8039
  return /* @__PURE__ */ o(
8040
8040
  "li",
@@ -8048,12 +8048,12 @@ const qt = 280, Vi = ({
8048
8048
  padding: "8px 12px",
8049
8049
  fontSize: "13px",
8050
8050
  cursor: "pointer",
8051
- backgroundColor: A ? ye : "transparent",
8052
- color: A ? ge : H,
8051
+ backgroundColor: A ? ge : "transparent",
8052
+ color: A ? pe : H,
8053
8053
  userSelect: "none"
8054
8054
  },
8055
8055
  onMouseEnter: (O) => {
8056
- A || (O.currentTarget.style.backgroundColor = be);
8056
+ A || (O.currentTarget.style.backgroundColor = xe);
8057
8057
  },
8058
8058
  onMouseLeave: (O) => {
8059
8059
  A || (O.currentTarget.style.backgroundColor = "transparent");
@@ -8109,7 +8109,7 @@ const qt = 280, Vi = ({
8109
8109
  {
8110
8110
  ref: U,
8111
8111
  onClick: () => v ? R() : w(),
8112
- className: De(
8112
+ className: je(
8113
8113
  "metakyc-multiselect-trigger",
8114
8114
  "w-full px-3 py-2 rounded-lg border text-sm transition-colors relative",
8115
8115
  y ? "opacity-50 cursor-not-allowed" : "cursor-pointer"
@@ -8182,9 +8182,9 @@ const qt = 280, Vi = ({
8182
8182
  ]
8183
8183
  }
8184
8184
  ),
8185
- typeof document < "u" && ue ? zt(ue, document.body) : null
8185
+ typeof document < "u" && me ? zt(me, document.body) : null
8186
8186
  ] });
8187
- }, Ut = 260, Qe = ({
8187
+ }, Ut = 260, Ge = ({
8188
8188
  label: e,
8189
8189
  error: t,
8190
8190
  helperText: i,
@@ -8198,7 +8198,7 @@ const qt = 280, Vi = ({
8198
8198
  className: y
8199
8199
  }) => {
8200
8200
  var se;
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({
8201
+ const { t: v } = Re(), T = n ?? v("common.select"), I = p || u, [x, q] = b(!1), [S, L] = b(""), [B, F] = b(null), [U, K] = b({
8202
8202
  bg: "#ffffff",
8203
8203
  border: "#d1d5db",
8204
8204
  text: "#111827",
@@ -8207,7 +8207,7 @@ const qt = 280, Vi = ({
8207
8207
  primaryLight: "#eff6ff",
8208
8208
  hoverBg: "#f9fafb"
8209
8209
  }), J = te(() => {
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"));
8210
+ const D = getComputedStyle(document.querySelector(".metakyc-sdk") || document.documentElement), ne = (Ie, Ae) => D.getPropertyValue(Ie).trim() || Ae, Z = ne("--metakyc-input-bg", ne("--metakyc-background", "#ffffff"));
8211
8211
  K({
8212
8212
  bg: Z,
8213
8213
  border: ne("--metakyc-input-border", ne("--metakyc-border", "#d1d5db")),
@@ -8217,7 +8217,7 @@ const qt = 280, Vi = ({
8217
8217
  primaryLight: ne("--metakyc-primary-light", "#eff6ff"),
8218
8218
  hoverBg: ne("--metakyc-surface", Z)
8219
8219
  });
8220
- }, []), ae = me(null), w = me(null), R = me(null), V = me(null), Q = te(() => {
8220
+ }, []), ae = de(null), w = de(null), R = de(null), V = de(null), Q = te(() => {
8221
8221
  if (!w.current) return null;
8222
8222
  const D = w.current.getBoundingClientRect(), Z = window.innerHeight - D.bottom < Ut && D.top > Ut;
8223
8223
  return {
@@ -8234,15 +8234,15 @@ const qt = 280, Vi = ({
8234
8234
  }, [I, Q, J]), W = te(() => {
8235
8235
  q(!1), L("");
8236
8236
  }, []), _ = () => x ? W() : X();
8237
- ke(() => {
8237
+ fe(() => {
8238
8238
  if (!x) return;
8239
8239
  const D = (ne) => {
8240
- var Re, ze;
8240
+ var Ie, Ae;
8241
8241
  const Z = ne.target;
8242
- !((Re = ae.current) != null && Re.contains(Z)) && !((ze = R.current) != null && ze.contains(Z)) && W();
8242
+ !((Ie = ae.current) != null && Ie.contains(Z)) && !((Ae = R.current) != null && Ae.contains(Z)) && W();
8243
8243
  };
8244
8244
  return document.addEventListener("mousedown", D), () => document.removeEventListener("mousedown", D);
8245
- }, [x, W]), ke(() => {
8245
+ }, [x, W]), fe(() => {
8246
8246
  if (!x) return;
8247
8247
  const D = () => {
8248
8248
  const ne = Q();
@@ -8251,7 +8251,7 @@ const qt = 280, Vi = ({
8251
8251
  return window.addEventListener("scroll", D, !0), window.addEventListener("resize", D), () => {
8252
8252
  window.removeEventListener("scroll", D, !0), window.removeEventListener("resize", D);
8253
8253
  };
8254
- }, [x, Q]), ke(() => {
8254
+ }, [x, Q]), fe(() => {
8255
8255
  x && V.current && setTimeout(() => {
8256
8256
  var D;
8257
8257
  return (D = V.current) == null ? void 0 : D.focus();
@@ -8259,9 +8259,9 @@ const qt = 280, Vi = ({
8259
8259
  }, [x]);
8260
8260
  const oe = a.filter(
8261
8261
  (D) => D.label.toLowerCase().includes(S.toLowerCase()) || D.value.toLowerCase().includes(S.toLowerCase())
8262
- ), H = (se = a.find((D) => D.value === l)) == null ? void 0 : se.label, je = (D, ne) => {
8262
+ ), H = (se = a.find((D) => D.value === l)) == null ? void 0 : se.label, Me = (D, ne) => {
8263
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(
8264
+ }, { bg: pe, border: ge, text: xe, textSecondary: me, primary: P, primaryLight: A, hoverBg: O } = U, ke = x && B && /* @__PURE__ */ o(
8265
8265
  "div",
8266
8266
  {
8267
8267
  ref: R,
@@ -8275,12 +8275,12 @@ const qt = 280, Vi = ({
8275
8275
  zIndex: 99999,
8276
8276
  borderRadius: "8px",
8277
8277
  boxShadow: "0 4px 16px rgba(0,0,0,0.18)",
8278
- border: `1px solid ${ye}`,
8279
- backgroundColor: ge,
8278
+ border: `1px solid ${ge}`,
8279
+ backgroundColor: pe,
8280
8280
  overflow: "hidden"
8281
8281
  },
8282
8282
  children: [
8283
- /* @__PURE__ */ r("div", { style: { padding: "8px", borderBottom: `1px solid ${ye}` }, children: /* @__PURE__ */ r(
8283
+ /* @__PURE__ */ r("div", { style: { padding: "8px", borderBottom: `1px solid ${ge}` }, children: /* @__PURE__ */ r(
8284
8284
  "input",
8285
8285
  {
8286
8286
  ref: V,
@@ -8296,18 +8296,18 @@ const qt = 280, Vi = ({
8296
8296
  padding: "6px 8px",
8297
8297
  fontSize: "13px",
8298
8298
  borderRadius: "6px",
8299
- border: `1px solid ${ye}`,
8300
- backgroundColor: ge,
8301
- color: be,
8299
+ border: `1px solid ${ge}`,
8300
+ backgroundColor: pe,
8301
+ color: xe,
8302
8302
  outline: "none",
8303
8303
  boxSizing: "border-box"
8304
8304
  },
8305
8305
  onFocus: (D) => {
8306
8306
  const ne = getComputedStyle(document.querySelector(".metakyc-sdk") || document.documentElement), Z = ne.getPropertyValue("--metakyc-input-border-focus").trim() || ne.getPropertyValue("--metakyc-primary").trim() || "#2563eb";
8307
- D.currentTarget.style.backgroundColor = ge, D.currentTarget.style.color = be, D.currentTarget.style.borderColor = Z, D.currentTarget.style.outline = "none", D.currentTarget.style.boxShadow = `0 0 0 2px ${Z}33`;
8307
+ D.currentTarget.style.backgroundColor = pe, D.currentTarget.style.color = xe, D.currentTarget.style.borderColor = Z, D.currentTarget.style.outline = "none", D.currentTarget.style.boxShadow = `0 0 0 2px ${Z}33`;
8308
8308
  },
8309
8309
  onBlur: (D) => {
8310
- D.currentTarget.style.backgroundColor = ge, D.currentTarget.style.color = be, D.currentTarget.style.borderColor = ye, D.currentTarget.style.outline = "none", D.currentTarget.style.boxShadow = "none";
8310
+ D.currentTarget.style.backgroundColor = pe, D.currentTarget.style.color = xe, D.currentTarget.style.borderColor = ge, D.currentTarget.style.outline = "none", D.currentTarget.style.boxShadow = "none";
8311
8311
  }
8312
8312
  }
8313
8313
  ) }),
@@ -8321,20 +8321,20 @@ const qt = 280, Vi = ({
8321
8321
  maxHeight: "208px",
8322
8322
  overflowY: "auto"
8323
8323
  },
8324
- children: oe.length === 0 ? /* @__PURE__ */ r("li", { style: { padding: "8px 12px", fontSize: "13px", color: ue }, children: v("common.noResults") }) : oe.map((D) => {
8324
+ children: oe.length === 0 ? /* @__PURE__ */ r("li", { style: { padding: "8px 12px", fontSize: "13px", color: me }, children: v("common.noResults") }) : oe.map((D) => {
8325
8325
  const ne = D.value === l;
8326
8326
  return /* @__PURE__ */ r(
8327
8327
  "li",
8328
8328
  {
8329
8329
  className: "metakyc-searchable-select-option",
8330
- onClick: () => je(D.value, D.disabled),
8330
+ onClick: () => Me(D.value, D.disabled),
8331
8331
  style: {
8332
8332
  padding: "8px 12px",
8333
8333
  fontSize: "13px",
8334
8334
  cursor: D.disabled ? "not-allowed" : "pointer",
8335
8335
  opacity: D.disabled ? 0.4 : 1,
8336
8336
  backgroundColor: ne ? A : "transparent",
8337
- color: ne ? P : be,
8337
+ color: ne ? P : xe,
8338
8338
  userSelect: "none"
8339
8339
  },
8340
8340
  onMouseEnter: (Z) => {
@@ -8356,7 +8356,7 @@ const qt = 280, Vi = ({
8356
8356
  return /* @__PURE__ */ o(
8357
8357
  "div",
8358
8358
  {
8359
- className: De("w-full metakyc-searchable-select", y),
8359
+ className: je("w-full metakyc-searchable-select", y),
8360
8360
  ref: ae,
8361
8361
  children: [
8362
8362
  e && /* @__PURE__ */ o(
@@ -8380,7 +8380,7 @@ const qt = 280, Vi = ({
8380
8380
  onKeyDown: (D) => {
8381
8381
  (D.key === "Enter" || D.key === " ") && (D.preventDefault(), _()), D.key === "Escape" && W();
8382
8382
  },
8383
- className: De(
8383
+ className: je(
8384
8384
  "metakyc-searchable-select-trigger",
8385
8385
  "w-full px-3 py-2 rounded-lg border text-sm transition-colors text-left",
8386
8386
  "flex items-center justify-between gap-2",
@@ -8408,19 +8408,19 @@ const qt = 280, Vi = ({
8408
8408
  ]
8409
8409
  }
8410
8410
  ),
8411
- typeof document < "u" && he ? zt(he, document.body) : null,
8411
+ typeof document < "u" && ke ? zt(ke, document.body) : null,
8412
8412
  t && /* @__PURE__ */ r("p", { className: "mt-1 text-sm", style: { color: "var(--metakyc-error, #ef4444)" }, children: t }),
8413
8413
  !t && i && /* @__PURE__ */ r("p", { className: "mt-1 text-sm", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: i })
8414
8414
  ]
8415
8415
  }
8416
8416
  );
8417
8417
  };
8418
- Qe.displayName = "SearchableSelect";
8419
- function Bi(e) {
8418
+ Ge.displayName = "SearchableSelect";
8419
+ function Vi(e) {
8420
8420
  const t = e.type;
8421
8421
  return t.startsWith("image/") ? "image" : t === "application/pdf" ? "pdf" : "file";
8422
8422
  }
8423
- const qi = ({
8423
+ const Bi = ({
8424
8424
  label: e,
8425
8425
  subtitle: t,
8426
8426
  error: i,
@@ -8432,7 +8432,7 @@ const qi = ({
8432
8432
  value: u = [],
8433
8433
  className: d
8434
8434
  }) => {
8435
- const { t: y } = Te(), [v, T] = b(!1), [I, x] = b(null), q = me(null), S = te((w) => {
8435
+ const { t: y } = Re(), [v, T] = b(!1), [I, x] = b(null), q = de(null), S = te((w) => {
8436
8436
  if (!w) return;
8437
8437
  x(null);
8438
8438
  const R = Array.from(w);
@@ -8455,7 +8455,7 @@ const qi = ({
8455
8455
  const R = u.filter((V, Q) => Q !== w);
8456
8456
  p == null || p(R);
8457
8457
  }, J = i || I, ae = u.length > 0;
8458
- return /* @__PURE__ */ o("div", { className: De("metakyc-file-upload", d), style: { width: "100%" }, children: [
8458
+ return /* @__PURE__ */ o("div", { className: je("metakyc-file-upload", d), style: { width: "100%" }, children: [
8459
8459
  e && /* @__PURE__ */ o("div", { style: { marginBottom: "8px" }, children: [
8460
8460
  /* @__PURE__ */ o(
8461
8461
  "label",
@@ -8557,7 +8557,7 @@ const qi = ({
8557
8557
  }
8558
8558
  ),
8559
8559
  ae && /* @__PURE__ */ r("div", { style: { marginTop: "12px", display: "flex", flexDirection: "column", gap: "8px" }, children: u.map((w, R) => {
8560
- const V = Bi(w), Q = V === "image", X = Q ? URL.createObjectURL(w) : null;
8560
+ const V = Vi(w), Q = V === "image", X = Q ? URL.createObjectURL(w) : null;
8561
8561
  return /* @__PURE__ */ o(
8562
8562
  "div",
8563
8563
  {
@@ -8659,7 +8659,7 @@ const qi = ({
8659
8659
  }) }),
8660
8660
  J && /* @__PURE__ */ r("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", marginTop: "6px" }, children: J })
8661
8661
  ] });
8662
- }, Ui = kt(
8662
+ }, qi = kt(
8663
8663
  ({ countryCode: e = "+1", onCountryCodeChange: t, className: i, ...a }, n) => /* @__PURE__ */ o("div", { className: "w-full", children: [
8664
8664
  a.label && /* @__PURE__ */ o(
8665
8665
  "label",
@@ -8679,7 +8679,7 @@ const qi = ({
8679
8679
  type: "text",
8680
8680
  value: e,
8681
8681
  onChange: (l) => t == null ? void 0 : t(l.target.value),
8682
- className: De(
8682
+ className: je(
8683
8683
  "w-20 rounded-lg border px-3 py-2 text-sm",
8684
8684
  "focus:outline-none focus:ring-2 focus:ring-offset-0"
8685
8685
  ),
@@ -8693,11 +8693,11 @@ const qi = ({
8693
8693
  }
8694
8694
  ),
8695
8695
  /* @__PURE__ */ r(
8696
- we,
8696
+ Se,
8697
8697
  {
8698
8698
  ref: n,
8699
8699
  type: "tel",
8700
- className: De("flex-1", i),
8700
+ className: je("flex-1", i),
8701
8701
  ...a,
8702
8702
  label: ""
8703
8703
  }
@@ -8706,7 +8706,7 @@ const qi = ({
8706
8706
  a.error && /* @__PURE__ */ r("p", { className: "mt-1 text-sm text-danger-500", children: a.error })
8707
8707
  ] })
8708
8708
  );
8709
- Ui.displayName = "PhoneInput";
8709
+ qi.displayName = "PhoneInput";
8710
8710
  /**
8711
8711
  * @license lucide-react v0.574.0 - ISC
8712
8712
  *
@@ -8720,14 +8720,14 @@ const ir = (...e) => e.filter((t, i, a) => !!t && t.trim() !== "" && a.indexOf(t
8720
8720
  * This source code is licensed under the ISC license.
8721
8721
  * See the LICENSE file in the root directory of this source tree.
8722
8722
  */
8723
- const Wi = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
8723
+ const Ui = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
8724
8724
  /**
8725
8725
  * @license lucide-react v0.574.0 - ISC
8726
8726
  *
8727
8727
  * This source code is licensed under the ISC license.
8728
8728
  * See the LICENSE file in the root directory of this source tree.
8729
8729
  */
8730
- const Ki = (e) => e.replace(
8730
+ const Wi = (e) => e.replace(
8731
8731
  /^([A-Z])|[\s-_]+(\w)/g,
8732
8732
  (t, i, a) => a ? a.toUpperCase() : i.toLowerCase()
8733
8733
  );
@@ -8738,7 +8738,7 @@ const Ki = (e) => e.replace(
8738
8738
  * See the LICENSE file in the root directory of this source tree.
8739
8739
  */
8740
8740
  const Wt = (e) => {
8741
- const t = Ki(e);
8741
+ const t = Wi(e);
8742
8742
  return t.charAt(0).toUpperCase() + t.slice(1);
8743
8743
  };
8744
8744
  /**
@@ -8747,7 +8747,7 @@ const Wt = (e) => {
8747
8747
  * This source code is licensed under the ISC license.
8748
8748
  * See the LICENSE file in the root directory of this source tree.
8749
8749
  */
8750
- var Yi = {
8750
+ var Ki = {
8751
8751
  xmlns: "http://www.w3.org/2000/svg",
8752
8752
  width: 24,
8753
8753
  height: 24,
@@ -8764,7 +8764,7 @@ var Yi = {
8764
8764
  * This source code is licensed under the ISC license.
8765
8765
  * See the LICENSE file in the root directory of this source tree.
8766
8766
  */
8767
- const Hi = (e) => {
8767
+ const Yi = (e) => {
8768
8768
  for (const t in e)
8769
8769
  if (t.startsWith("aria-") || t === "role" || t === "title")
8770
8770
  return !0;
@@ -8776,7 +8776,7 @@ const Hi = (e) => {
8776
8776
  * This source code is licensed under the ISC license.
8777
8777
  * See the LICENSE file in the root directory of this source tree.
8778
8778
  */
8779
- const $i = kt(
8779
+ const Hi = kt(
8780
8780
  ({
8781
8781
  color: e = "currentColor",
8782
8782
  size: t = 24,
@@ -8790,13 +8790,13 @@ const $i = kt(
8790
8790
  "svg",
8791
8791
  {
8792
8792
  ref: u,
8793
- ...Yi,
8793
+ ...Ki,
8794
8794
  width: t,
8795
8795
  height: t,
8796
8796
  stroke: e,
8797
8797
  strokeWidth: a ? Number(i) * 24 / Number(t) : i,
8798
8798
  className: ir("lucide", n),
8799
- ...!l && !Hi(p) && { "aria-hidden": "true" },
8799
+ ...!l && !Yi(p) && { "aria-hidden": "true" },
8800
8800
  ...p
8801
8801
  },
8802
8802
  [
@@ -8813,11 +8813,11 @@ const $i = kt(
8813
8813
  */
8814
8814
  const ar = (e, t) => {
8815
8815
  const i = kt(
8816
- ({ className: a, ...n }, l) => Tt($i, {
8816
+ ({ className: a, ...n }, l) => Tt(Hi, {
8817
8817
  ref: l,
8818
8818
  iconNode: t,
8819
8819
  className: ir(
8820
- `lucide-${Wi(Wt(e))}`,
8820
+ `lucide-${Ui(Wt(e))}`,
8821
8821
  `lucide-${e}`,
8822
8822
  a
8823
8823
  ),
@@ -8832,15 +8832,15 @@ const ar = (e, t) => {
8832
8832
  * This source code is licensed under the ISC license.
8833
8833
  * See the LICENSE file in the root directory of this source tree.
8834
8834
  */
8835
- const _i = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], nr = ar("chevron-left", _i);
8835
+ const $i = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], nr = ar("chevron-left", $i);
8836
8836
  /**
8837
8837
  * @license lucide-react v0.574.0 - ISC
8838
8838
  *
8839
8839
  * This source code is licensed under the ISC license.
8840
8840
  * See the LICENSE file in the root directory of this source tree.
8841
8841
  */
8842
- const Gi = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], or = ar("chevron-right", Gi);
8843
- function Qi(e, t) {
8842
+ const _i = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], or = ar("chevron-right", _i);
8843
+ function Gi(e, t) {
8844
8844
  const i = !t || t.length === 0 || t.every((a) => !a || !a.trim());
8845
8845
  if (e.isRequired && i)
8846
8846
  return e.errorMessage || "This field is required";
@@ -8869,7 +8869,7 @@ function Qi(e, t) {
8869
8869
  }
8870
8870
  return null;
8871
8871
  }
8872
- function Xi(e) {
8872
+ function Qi(e) {
8873
8873
  const t = e.flatMap(
8874
8874
  (a, n) => (a.questions ?? []).map((l, s) => ({ question: l, groupIndex: n, qIdx: s }))
8875
8875
  ), i = /* @__PURE__ */ new Map();
@@ -8879,17 +8879,17 @@ function Xi(e) {
8879
8879
  }
8880
8880
  return Array.from(i.entries()).sort(([a], [n]) => a - n).map(([, a]) => a);
8881
8881
  }
8882
- const Zi = ({
8882
+ const Xi = ({
8883
8883
  applicantId: e,
8884
8884
  onComplete: t,
8885
8885
  onBack: i
8886
8886
  }) => {
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);
8888
- Se.useEffect(() => {
8887
+ const { t: a } = Re(), { questionnaire: n, initialAnswers: l, isLoading: s, isSubmitting: p, error: u, submit: d } = Ai(e), [y, v] = b({}), [T, I] = b({}), [x, q] = b(0);
8888
+ Ce.useEffect(() => {
8889
8889
  l && Object.keys(l).length > 0 && Object.keys(y).length === 0 && v(l);
8890
8890
  }, [l]);
8891
- const S = Me(
8892
- () => n ? Xi(n.questionGroups) : [],
8891
+ const S = Fe(
8892
+ () => n ? Qi(n.questionGroups) : [],
8893
8893
  [n]
8894
8894
  ), L = x === S.length - 1, B = S[x] ?? [], F = te((w, R) => {
8895
8895
  v((V) => ({ ...V, [w]: R })), I((V) => {
@@ -8899,7 +8899,7 @@ const Zi = ({
8899
8899
  }, []), U = te(() => {
8900
8900
  const w = {};
8901
8901
  for (const { question: R } of B) {
8902
- const V = Qi(R, y[R.id] ?? []);
8902
+ const V = Gi(R, y[R.id] ?? []);
8903
8903
  V && (w[R.id] = V);
8904
8904
  }
8905
8905
  return I((R) => ({ ...R, ...w })), Object.keys(w).length === 0;
@@ -8930,7 +8930,7 @@ const Zi = ({
8930
8930
  " ",
8931
8931
  u.message
8932
8932
  ] }) }) }) : n ? /* @__PURE__ */ o(re, { children: [
8933
- /* @__PURE__ */ o(Ce, { children: [
8933
+ /* @__PURE__ */ o(Ne, { children: [
8934
8934
  /* @__PURE__ */ r("h2", { className: "text-lg font-bold", children: n.displayName }),
8935
8935
  n.subtitle && /* @__PURE__ */ r("p", { className: "text-sm", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: n.subtitle }),
8936
8936
  S.length > 1 && /* @__PURE__ */ o("div", { className: "flex items-center justify-between mt-3", children: [
@@ -8950,7 +8950,7 @@ const Zi = ({
8950
8950
  ] })
8951
8951
  ] }),
8952
8952
  /* @__PURE__ */ r(ie, { className: "space-y-6", children: B.map(({ question: w }) => /* @__PURE__ */ r(
8953
- Ji,
8953
+ Zi,
8954
8954
  {
8955
8955
  question: w,
8956
8956
  value: y[w.id] ?? [],
@@ -8959,7 +8959,7 @@ const Zi = ({
8959
8959
  },
8960
8960
  w.id
8961
8961
  )) }),
8962
- /* @__PURE__ */ o(Ne, { style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
8962
+ /* @__PURE__ */ o(Te, { style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
8963
8963
  /* @__PURE__ */ o(
8964
8964
  G,
8965
8965
  {
@@ -8996,9 +8996,9 @@ const Zi = ({
8996
8996
  ] }),
8997
8997
  u && /* @__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: u.message }) })
8998
8998
  ] }) : null;
8999
- }, Ji = ({ question: e, value: t, error: i, onChange: a }) => {
8999
+ }, Zi = ({ question: e, value: t, error: i, onChange: a }) => {
9000
9000
  var p;
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";
9001
+ const { t: n } = Re(), 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
9002
  return /* @__PURE__ */ o("div", { className: "space-y-2", children: [
9003
9003
  /* @__PURE__ */ o("label", { className: "block text-sm font-medium", style: { color: "var(--metakyc-text-primary, #111827)" }, children: [
9004
9004
  e.text,
@@ -9007,7 +9007,7 @@ const Zi = ({
9007
9007
  e.subtitle && /* @__PURE__ */ r("p", { className: "text-xs", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: e.subtitle }),
9008
9008
  e.description && /* @__PURE__ */ r("p", { className: "text-xs", style: { color: "var(--metakyc-text-muted, #9ca3af)" }, children: e.description }),
9009
9009
  s === "text" && /* @__PURE__ */ r(
9010
- we,
9010
+ Se,
9011
9011
  {
9012
9012
  value: t[0] ?? "",
9013
9013
  onChange: (u) => a([u.target.value]),
@@ -9089,7 +9089,7 @@ const Zi = ({
9089
9089
  i && s === "text" && null
9090
9090
  ] });
9091
9091
  };
9092
- function ea(e) {
9092
+ function Ji(e) {
9093
9093
  const t = /* @__PURE__ */ new Map();
9094
9094
  for (const i of e) {
9095
9095
  const a = i.pageNumber != null && i.pageNumber > 0 ? i.pageNumber : 1;
@@ -9097,13 +9097,13 @@ function ea(e) {
9097
9097
  }
9098
9098
  return Array.from(t.entries()).sort(([i], [a]) => i - a).map(([, i]) => i);
9099
9099
  }
9100
- const ta = ({
9100
+ const ea = ({
9101
9101
  applicantId: e,
9102
9102
  onComplete: t,
9103
9103
  onBack: i
9104
9104
  }) => {
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(
9106
- () => n ? ea(n.uploadDocumentFiles) : [],
9105
+ const { t: a } = Re(), { uploadDocument: n, isLoading: l, isSubmitting: s, error: p, submit: u } = Li(e), [d, y] = b({}), [v, T] = b(null), [I, x] = b(0), [q, S] = b({}), L = Fe(
9106
+ () => n ? Ji(n.uploadDocumentFiles) : [],
9107
9107
  [n]
9108
9108
  ), B = L[I] ?? [], F = I === L.length - 1, U = L.length, K = te(() => {
9109
9109
  const R = {};
@@ -9123,7 +9123,7 @@ const ta = ({
9123
9123
  const X = d[Q.id] || [], W = await Promise.all(
9124
9124
  X.map(async (_) => ({
9125
9125
  fileName: _.name,
9126
- fileData: await Ci(_)
9126
+ fileData: await Si(_)
9127
9127
  }))
9128
9128
  );
9129
9129
  return {
@@ -9169,7 +9169,7 @@ const ta = ({
9169
9169
  /* @__PURE__ */ r("p", { style: { fontSize: "14px", color: "var(--metakyc-danger, #ef4444)", fontWeight: 500 }, children: a("uploadDocument.errorLoading") }),
9170
9170
  /* @__PURE__ */ r("p", { style: { fontSize: "13px", color: "var(--metakyc-text-muted, #9ca3af)" }, children: p.message })
9171
9171
  ] }) }) }) : n ? /* @__PURE__ */ o(re, { children: [
9172
- /* @__PURE__ */ o(Ce, { children: [
9172
+ /* @__PURE__ */ o(Ne, { children: [
9173
9173
  /* @__PURE__ */ r("h2", { style: {
9174
9174
  fontSize: "18px",
9175
9175
  fontWeight: 700,
@@ -9240,7 +9240,7 @@ const ta = ({
9240
9240
  }, children: n.description })
9241
9241
  ] }),
9242
9242
  /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ r("div", { style: { display: "flex", flexDirection: "column", gap: "24px" }, children: B.map((R) => /* @__PURE__ */ r(
9243
- qi,
9243
+ Bi,
9244
9244
  {
9245
9245
  label: R.displayName,
9246
9246
  subtitle: R.subtitle,
@@ -9276,7 +9276,7 @@ const ta = ({
9276
9276
  ] }),
9277
9277
  /* @__PURE__ */ r("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", margin: 0 }, children: v })
9278
9278
  ] }),
9279
- /* @__PURE__ */ r(Ne, { children: /* @__PURE__ */ o("div", { style: {
9279
+ /* @__PURE__ */ r(Te, { children: /* @__PURE__ */ o("div", { style: {
9280
9280
  display: "flex",
9281
9281
  alignItems: "center",
9282
9282
  justifyContent: "space-between",
@@ -9309,8 +9309,8 @@ const ta = ({
9309
9309
  )
9310
9310
  ] }) })
9311
9311
  ] }) : null;
9312
- }, ra = ({ applicantId: e, onComplete: t, onBack: i }) => {
9313
- const { t: a } = Te(), { overview: n, isLoading: l, isSubmitting: s, error: p, passOverview: u } = Pi(e), d = async () => {
9312
+ }, ta = ({ applicantId: e, onComplete: t, onBack: i }) => {
9313
+ const { t: a } = Re(), { overview: n, isLoading: l, isSubmitting: s, error: p, passOverview: u } = Ei(e), d = async () => {
9314
9314
  await u(), t == null || t();
9315
9315
  };
9316
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: [
@@ -9318,7 +9318,7 @@ const ta = ({
9318
9318
  " ",
9319
9319
  p.message
9320
9320
  ] }) }) }) : n ? /* @__PURE__ */ o(re, { children: [
9321
- /* @__PURE__ */ o(Ce, { children: [
9321
+ /* @__PURE__ */ o(Ne, { children: [
9322
9322
  /* @__PURE__ */ r("h2", { className: "text-lg font-bold", children: n.title || a("overview.title") }),
9323
9323
  n.description && /* @__PURE__ */ r("p", { className: "mt-1", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: n.description })
9324
9324
  ] }),
@@ -9348,13 +9348,13 @@ const ta = ({
9348
9348
  }
9349
9349
  )
9350
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") }) }) }),
9351
- /* @__PURE__ */ o(Ne, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
9351
+ /* @__PURE__ */ o(Te, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
9352
9352
  i && /* @__PURE__ */ r(G, { type: "button", variant: "outline", onClick: i, children: a("common.back") }),
9353
9353
  /* @__PURE__ */ r(G, { onClick: d, isLoading: s, children: a("common.continue") })
9354
9354
  ] })
9355
9355
  ] }) : null;
9356
9356
  };
9357
- function ia(e) {
9357
+ function ra(e) {
9358
9358
  const t = (e ?? "en").toLowerCase().replace("_", "-");
9359
9359
  try {
9360
9360
  return Intl.NumberFormat.supportedLocalesOf([t]), t;
@@ -9362,11 +9362,11 @@ function ia(e) {
9362
9362
  return "en";
9363
9363
  }
9364
9364
  }
9365
- function aa(e) {
9366
- return e.valueDataType === Ge.Money && Array.isArray(e.defaultValues) && e.defaultValues.length > 0;
9365
+ function ia(e) {
9366
+ return e.valueDataType === _e.Money && Array.isArray(e.defaultValues) && e.defaultValues.length > 0;
9367
9367
  }
9368
- function na(e, t) {
9369
- const i = new Intl.NumberFormat(ia(t), {
9368
+ function aa(e, t) {
9369
+ const i = new Intl.NumberFormat(ra(t), {
9370
9370
  minimumFractionDigits: 0,
9371
9371
  maximumFractionDigits: 2
9372
9372
  });
@@ -9375,7 +9375,7 @@ function na(e, t) {
9375
9375
  return isNaN(n) ? a : i.format(n);
9376
9376
  });
9377
9377
  }
9378
- function oa(e, t) {
9378
+ function na(e, t) {
9379
9379
  const i = !t || t.length === 0 || t.every((a) => !a || !a.trim());
9380
9380
  if (e.isRequired && i)
9381
9381
  return e.errorMessage || `${e.displayName} is required`;
@@ -9387,7 +9387,7 @@ function oa(e, t) {
9387
9387
  return e.errorMessage || "Invalid format";
9388
9388
  } catch {
9389
9389
  }
9390
- const n = e.valueDataType === Ge.Integer || e.valueDataType === Ge.Money || e.valueDataType === Ge.DigitOnly;
9390
+ const n = e.valueDataType === _e.Integer || e.valueDataType === _e.Money || e.valueDataType === _e.DigitOnly;
9391
9391
  if (n && a.trim() !== "") {
9392
9392
  const l = Number(a);
9393
9393
  if (!isNaN(l)) {
@@ -9405,30 +9405,30 @@ function oa(e, t) {
9405
9405
  }
9406
9406
  return null;
9407
9407
  }
9408
- function sa(e) {
9408
+ function oa(e) {
9409
9409
  const t = /* @__PURE__ */ new Map();
9410
9410
  return e.forEach((i, a) => {
9411
9411
  const n = i.pageNumber != null && i.pageNumber > 0 ? i.pageNumber : 1;
9412
9412
  t.has(n) || t.set(n, []), t.get(n).push({ criterion: i, idx: a });
9413
9413
  }), Array.from(t.entries()).sort(([i], [a]) => i - a).map(([, i]) => i);
9414
9414
  }
9415
- function la(e) {
9415
+ function sa(e) {
9416
9416
  return e.builtInType === 1 ? "country" : !e.defaultValues || e.defaultValues.length === 0 ? "text" : e.multipleValue ? "checkbox" : "radio";
9417
9417
  }
9418
- const ca = ({
9418
+ const la = ({
9419
9419
  applicantId: e,
9420
9420
  onComplete: t,
9421
9421
  onBack: i
9422
9422
  }) => {
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);
9424
- Se.useEffect(() => {
9423
+ const { t: a } = Re(), { config: n } = Oe(), l = n.locale ?? "en", { criteria: s, initialAnswers: p, isLoading: u, isSubmitting: d, error: y, submit: v } = Di(e), [T, I] = b({}), [x, q] = b({}), [S, L] = b(0), [B, F] = b(!1);
9424
+ Ce.useEffect(() => {
9425
9425
  p && Object.keys(p).length > 0 && Object.keys(T).length === 0 && I(p);
9426
9426
  }, [p]);
9427
- const U = Me(
9428
- () => s && s.length > 0 ? sa(s) : [],
9427
+ const U = Fe(
9428
+ () => s && s.length > 0 ? oa(s) : [],
9429
9429
  [s]
9430
9430
  ), K = S === U.length - 1, J = U[S] ?? [];
9431
- Se.useEffect(() => {
9431
+ Ce.useEffect(() => {
9432
9432
  !u && s && s.length === 0 && !B && !d && (F(!0), v({ applicantId: e, criteriaValueInputs: [] }).then(() => t == null ? void 0 : t()).catch(console.error));
9433
9433
  }, [u, s, B, d, v, e, t]);
9434
9434
  const ae = te((X, W) => {
@@ -9439,7 +9439,7 @@ const ca = ({
9439
9439
  }, []), w = te(() => {
9440
9440
  const X = {};
9441
9441
  for (const { criterion: W } of J) {
9442
- const _ = oa(W, T[W.id] ?? []);
9442
+ const _ = na(W, T[W.id] ?? []);
9443
9443
  _ && (X[W.id] = _);
9444
9444
  }
9445
9445
  return q((W) => ({ ...W, ...X })), Object.keys(X).length === 0;
@@ -9470,7 +9470,7 @@ const ca = ({
9470
9470
  " ",
9471
9471
  y.message
9472
9472
  ] }) }) }) : s ? /* @__PURE__ */ o(re, { children: [
9473
- /* @__PURE__ */ o(Ce, { children: [
9473
+ /* @__PURE__ */ o(Ne, { children: [
9474
9474
  /* @__PURE__ */ r("h2", { className: "text-lg font-bold", children: a("riskScoring.title") }),
9475
9475
  /* @__PURE__ */ r("p", { className: "text-sm", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: a("riskScoring.subtitle") }),
9476
9476
  U.length > 1 && /* @__PURE__ */ o("div", { className: "flex items-center justify-between mt-3", children: [
@@ -9490,7 +9490,7 @@ const ca = ({
9490
9490
  ] })
9491
9491
  ] }),
9492
9492
  /* @__PURE__ */ r(ie, { className: "space-y-6", children: J.map(({ criterion: X }) => /* @__PURE__ */ r(
9493
- da,
9493
+ ca,
9494
9494
  {
9495
9495
  criterion: X,
9496
9496
  value: T[X.id] ?? [],
@@ -9500,7 +9500,7 @@ const ca = ({
9500
9500
  },
9501
9501
  X.id
9502
9502
  )) }),
9503
- /* @__PURE__ */ o(Ne, { style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
9503
+ /* @__PURE__ */ o(Te, { style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
9504
9504
  /* @__PURE__ */ o(
9505
9505
  G,
9506
9506
  {
@@ -9529,8 +9529,8 @@ const ca = ({
9529
9529
  ] }),
9530
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 }) })
9531
9531
  ] }) : null;
9532
- }, da = ({ criterion: e, value: t, error: i, locale: a, onChange: n }) => {
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;
9532
+ }, ca = ({ criterion: e, value: t, error: i, locale: a, onChange: n }) => {
9533
+ const { t: l } = Re(), s = sa(e), p = e.valueDataType === _e.Integer || e.valueDataType === _e.Money || e.valueDataType === _e.DigitOnly, u = ia(e), d = (y) => u ? aa(y, a) : y;
9534
9534
  return /* @__PURE__ */ o("div", { className: "space-y-2", children: [
9535
9535
  /* @__PURE__ */ o("label", { className: "block text-sm font-medium", style: { color: "var(--metakyc-text-primary, #111827)" }, children: [
9536
9536
  e.displayName,
@@ -9539,7 +9539,7 @@ const ca = ({
9539
9539
  e.description && /* @__PURE__ */ r("p", { className: "text-xs", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: e.description }),
9540
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 }) }),
9541
9541
  s === "text" && /* @__PURE__ */ r(
9542
- we,
9542
+ Se,
9543
9543
  {
9544
9544
  value: t[0] ?? "",
9545
9545
  onChange: (y) => n([y.target.value]),
@@ -9550,7 +9550,7 @@ const ca = ({
9550
9550
  min: e.min,
9551
9551
  max: e.max,
9552
9552
  onKeyDown: (y) => {
9553
- e.valueDataType === Ge.DigitOnly && ["e", "E", "+", "-", "."].includes(y.key) && y.preventDefault();
9553
+ e.valueDataType === _e.DigitOnly && ["e", "E", "+", "-", "."].includes(y.key) && y.preventDefault();
9554
9554
  }
9555
9555
  }
9556
9556
  ),
@@ -9631,12 +9631,12 @@ const ca = ({
9631
9631
  }
9632
9632
  )
9633
9633
  ] });
9634
- }, ma = ({
9634
+ }, da = ({
9635
9635
  applicantId: e,
9636
9636
  onComplete: t,
9637
9637
  onBack: i
9638
9638
  }) => {
9639
- const { t: a } = Te(), { investorCategorizationService: n } = Fe(), [l, s] = b(null), [p, u] = b(!1), [d, y] = b(null);
9639
+ const { t: a } = Re(), { investorCategorizationService: n } = Oe(), [l, s] = b(null), [p, u] = b(!1), [d, y] = b(null);
9640
9640
  return /* @__PURE__ */ r("form", { onSubmit: async (T) => {
9641
9641
  if (T.preventDefault(), l === null) {
9642
9642
  y(a("investorCategorization.pleaseSelect"));
@@ -9657,7 +9657,7 @@ const ca = ({
9657
9657
  u(!1);
9658
9658
  }
9659
9659
  }, children: /* @__PURE__ */ o(re, { children: [
9660
- /* @__PURE__ */ o(Ce, { children: [
9660
+ /* @__PURE__ */ o(Ne, { children: [
9661
9661
  /* @__PURE__ */ r("h2", { className: "text-lg font-bold", style: { color: "var(--metakyc-text-primary, #111827)" }, children: a("investorCategorization.whichStatement") }),
9662
9662
  /* @__PURE__ */ r("p", { className: "mt-2", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: a("investorCategorization.retailInvestorInfo") })
9663
9663
  ] }),
@@ -9668,8 +9668,8 @@ const ca = ({
9668
9668
  {
9669
9669
  className: "block p-4 border-2 rounded-lg cursor-pointer transition-all",
9670
9670
  style: {
9671
- borderColor: l === Le.Individual ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #e5e7eb)",
9672
- backgroundColor: l === Le.Individual ? "var(--metakyc-primary-light, #dbeafe)" : "transparent"
9671
+ borderColor: l === Ee.Individual ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #e5e7eb)",
9672
+ backgroundColor: l === Ee.Individual ? "var(--metakyc-primary-light, #dbeafe)" : "transparent"
9673
9673
  },
9674
9674
  children: /* @__PURE__ */ o("div", { className: "flex items-start", children: [
9675
9675
  /* @__PURE__ */ r(
@@ -9677,9 +9677,9 @@ const ca = ({
9677
9677
  {
9678
9678
  type: "radio",
9679
9679
  name: "investorType",
9680
- value: Le.Individual,
9681
- checked: l === Le.Individual,
9682
- onChange: () => s(Le.Individual),
9680
+ value: Ee.Individual,
9681
+ checked: l === Ee.Individual,
9682
+ onChange: () => s(Ee.Individual),
9683
9683
  className: "mt-1"
9684
9684
  }
9685
9685
  ),
@@ -9695,8 +9695,8 @@ const ca = ({
9695
9695
  {
9696
9696
  className: "block p-4 border-2 rounded-lg cursor-pointer transition-all",
9697
9697
  style: {
9698
- borderColor: l === Le.Sophisticated ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #e5e7eb)",
9699
- backgroundColor: l === Le.Sophisticated ? "var(--metakyc-primary-light, #dbeafe)" : "transparent"
9698
+ borderColor: l === Ee.Sophisticated ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #e5e7eb)",
9699
+ backgroundColor: l === Ee.Sophisticated ? "var(--metakyc-primary-light, #dbeafe)" : "transparent"
9700
9700
  },
9701
9701
  children: /* @__PURE__ */ o("div", { className: "flex items-start", children: [
9702
9702
  /* @__PURE__ */ r(
@@ -9704,9 +9704,9 @@ const ca = ({
9704
9704
  {
9705
9705
  type: "radio",
9706
9706
  name: "investorType",
9707
- value: Le.Sophisticated,
9708
- checked: l === Le.Sophisticated,
9709
- onChange: () => s(Le.Sophisticated),
9707
+ value: Ee.Sophisticated,
9708
+ checked: l === Ee.Sophisticated,
9709
+ onChange: () => s(Ee.Sophisticated),
9710
9710
  className: "mt-1"
9711
9711
  }
9712
9712
  ),
@@ -9722,8 +9722,8 @@ const ca = ({
9722
9722
  {
9723
9723
  className: "block p-4 border-2 rounded-lg cursor-pointer transition-all",
9724
9724
  style: {
9725
- borderColor: l === Le.HighNetWorth ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #e5e7eb)",
9726
- backgroundColor: l === Le.HighNetWorth ? "var(--metakyc-primary-light, #dbeafe)" : "transparent"
9725
+ borderColor: l === Ee.HighNetWorth ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #e5e7eb)",
9726
+ backgroundColor: l === Ee.HighNetWorth ? "var(--metakyc-primary-light, #dbeafe)" : "transparent"
9727
9727
  },
9728
9728
  children: /* @__PURE__ */ o("div", { className: "flex items-start", children: [
9729
9729
  /* @__PURE__ */ r(
@@ -9731,9 +9731,9 @@ const ca = ({
9731
9731
  {
9732
9732
  type: "radio",
9733
9733
  name: "investorType",
9734
- value: Le.HighNetWorth,
9735
- checked: l === Le.HighNetWorth,
9736
- onChange: () => s(Le.HighNetWorth),
9734
+ value: Ee.HighNetWorth,
9735
+ checked: l === Ee.HighNetWorth,
9736
+ onChange: () => s(Ee.HighNetWorth),
9737
9737
  className: "mt-1"
9738
9738
  }
9739
9739
  ),
@@ -9750,7 +9750,7 @@ const ca = ({
9750
9750
  d
9751
9751
  ] }) })
9752
9752
  ] }),
9753
- /* @__PURE__ */ o(Ne, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
9753
+ /* @__PURE__ */ o(Te, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
9754
9754
  i && /* @__PURE__ */ r(G, { type: "button", variant: "outline", onClick: i, children: a("common.back") }),
9755
9755
  /* @__PURE__ */ r(
9756
9756
  G,
@@ -9772,13 +9772,13 @@ function Ct(e) {
9772
9772
  const t = Math.floor(e / 60), i = e % 60;
9773
9773
  return `${t.toString().padStart(2, "0")}:${i.toString().padStart(2, "0")}`;
9774
9774
  }
9775
- const ua = ({
9775
+ const ma = ({
9776
9776
  applicantId: e,
9777
9777
  onComplete: t,
9778
9778
  onBack: i
9779
9779
  }) => {
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);
9781
- ke(() => {
9780
+ const { t: a } = Re(), { appropriatenessTestService: n } = Oe(), [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);
9781
+ fe(() => {
9782
9782
  (async () => {
9783
9783
  try {
9784
9784
  u(!0), T(null);
@@ -9793,25 +9793,25 @@ const ua = ({
9793
9793
  u(!1);
9794
9794
  }
9795
9795
  })();
9796
- }, [e, n]), ke(() => {
9796
+ }, [e, n]), fe(() => {
9797
9797
  if (!L || q <= 0) return;
9798
9798
  const A = setInterval(() => {
9799
9799
  S((O) => O <= 1 ? (U(!0), 0) : O - 1);
9800
9800
  }, 1e3);
9801
9801
  return () => clearInterval(A);
9802
- }, [L, q]), ke(() => {
9802
+ }, [L, q]), fe(() => {
9803
9803
  if (K <= 0) return;
9804
9804
  const A = setInterval(() => {
9805
9805
  J((O) => O <= 1 ? 0 : O - 1);
9806
9806
  }, 1e3);
9807
9807
  return () => clearInterval(A);
9808
- }, [K]), ke(() => {
9808
+ }, [K]), fe(() => {
9809
9809
  F && !d && _();
9810
9810
  }, [F]);
9811
9811
  const Q = () => {
9812
9812
  l && (B(!0), S(l.testDurationSec), w(0), x({}), T(null));
9813
9813
  }, X = (A, O) => {
9814
- x((he) => ({ ...he, [A]: O }));
9814
+ x((ke) => ({ ...ke, [A]: O }));
9815
9815
  }, W = te(async () => {
9816
9816
  try {
9817
9817
  const A = await n.getAppropriatenessTest(e);
@@ -9834,13 +9834,13 @@ const ua = ({
9834
9834
  try {
9835
9835
  const O = l.appropriatenessQuestions.map(
9836
9836
  (se) => ({ appropriatenessQuestionId: se.id, value: I[se.id] || "" })
9837
- ), he = {
9837
+ ), ke = {
9838
9838
  applicantId: e,
9839
9839
  appropriatenessTestId: l.id,
9840
9840
  appropriatenessQuestionResults: O
9841
9841
  };
9842
9842
  try {
9843
- const se = await n.fillAppropriatenessTest(he);
9843
+ const se = await n.fillAppropriatenessTest(ke);
9844
9844
  se.isSuccess ? V({ success: !0, message: se.message || a("appropriatenessTest.passedMessage") }) : (V({ success: !1, message: se.message || a("appropriatenessTest.failedMessage") }), setTimeout(() => W(), 1e3));
9845
9845
  } catch (se) {
9846
9846
  if (se.code === 400 && se.message)
@@ -9867,10 +9867,10 @@ const ua = ({
9867
9867
  /* @__PURE__ */ r("p", { style: { fontSize: "16px", fontWeight: 600, color: "var(--metakyc-danger, #ef4444)" }, children: a("appropriatenessTest.noTestData") }),
9868
9868
  v && /* @__PURE__ */ r("p", { style: { fontSize: "14px", color: "var(--metakyc-text-muted, #9ca3af)", marginTop: "8px" }, children: v })
9869
9869
  ] }) }) });
9870
- const H = l.testAllowedMaxTry - l.totalFailedTries, je = l.appropriatenessQuestions.length, ge = Object.keys(I).length;
9870
+ const H = l.testAllowedMaxTry - l.totalFailedTries, Me = l.appropriatenessQuestions.length, pe = Object.keys(I).length;
9871
9871
  if (K > 0)
9872
9872
  return /* @__PURE__ */ o(re, { children: [
9873
- /* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ r("h2", { style: { fontSize: "18px", fontWeight: 700, color: "var(--metakyc-text-primary, #111827)", margin: 0 }, children: l.displayName }) }),
9873
+ /* @__PURE__ */ r(Ne, { children: /* @__PURE__ */ r("h2", { style: { fontSize: "18px", fontWeight: 700, color: "var(--metakyc-text-primary, #111827)", margin: 0 }, children: l.displayName }) }),
9874
9874
  /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ o("div", { style: { textAlign: "center", padding: "32px 0" }, children: [
9875
9875
  /* @__PURE__ */ r("div", { style: {
9876
9876
  width: "100px",
@@ -9964,7 +9964,7 @@ const ua = ({
9964
9964
  margin: 0
9965
9965
  }, children: a("appropriatenessTest.noAttemptsRemaining") }) })
9966
9966
  ] }) }),
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: [
9967
+ /* @__PURE__ */ r(Te, { 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: [
9968
9968
  H > 0 && K <= 0 && /* @__PURE__ */ r(G, { type: "button", onClick: A, children: a("appropriatenessTest.retakeTest") }),
9969
9969
  H > 0 && K > 0 && /* @__PURE__ */ r(G, { type: "button", onClick: A, children: a("appropriatenessTest.ok") }),
9970
9970
  H <= 0 && i && /* @__PURE__ */ r(G, { type: "button", variant: "outline", onClick: i, children: a("common.back") })
@@ -9973,7 +9973,7 @@ const ua = ({
9973
9973
  }
9974
9974
  if (!L)
9975
9975
  return /* @__PURE__ */ o(re, { children: [
9976
- /* @__PURE__ */ o(Ce, { children: [
9976
+ /* @__PURE__ */ o(Ne, { children: [
9977
9977
  /* @__PURE__ */ r("h2", { style: { fontSize: "18px", fontWeight: 700, color: "var(--metakyc-text-primary, #111827)", margin: 0 }, children: l.displayName }),
9978
9978
  l.subtitle && /* @__PURE__ */ r("p", { style: { fontSize: "14px", color: "var(--metakyc-text-secondary, #6b7280)", marginTop: "4px" }, children: l.subtitle })
9979
9979
  ] }),
@@ -10035,18 +10035,18 @@ const ua = ({
10035
10035
  border: "1px solid color-mix(in srgb, var(--metakyc-danger, #ef4444) 20%, transparent)"
10036
10036
  }, children: /* @__PURE__ */ r("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", margin: 0 }, children: a("appropriatenessTest.allAttemptsUsed") }) })
10037
10037
  ] }),
10038
- /* @__PURE__ */ r(Ne, { children: /* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "center", justifyContent: i ? "space-between" : "flex-end", width: "100%" }, children: [
10038
+ /* @__PURE__ */ r(Te, { children: /* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "center", justifyContent: i ? "space-between" : "flex-end", width: "100%" }, children: [
10039
10039
  i && /* @__PURE__ */ r(G, { type: "button", variant: "outline", onClick: i, children: a("common.back") }),
10040
10040
  /* @__PURE__ */ r(G, { type: "button", onClick: Q, disabled: H <= 0, children: a("appropriatenessTest.startTest") })
10041
10041
  ] }) })
10042
10042
  ] });
10043
- const ye = l.appropriatenessQuestions[ae], be = ae === je - 1, ue = ge === je, P = q <= 60;
10043
+ const ge = l.appropriatenessQuestions[ae], xe = ae === Me - 1, me = pe === Me, P = q <= 60;
10044
10044
  return /* @__PURE__ */ o(re, { children: [
10045
- /* @__PURE__ */ o(Ce, { children: [
10045
+ /* @__PURE__ */ o(Ne, { children: [
10046
10046
  /* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
10047
10047
  /* @__PURE__ */ o("div", { children: [
10048
10048
  /* @__PURE__ */ r("h2", { style: { fontSize: "18px", fontWeight: 700, color: "var(--metakyc-text-primary, #111827)", margin: 0 }, children: l.displayName }),
10049
- /* @__PURE__ */ r("p", { style: { fontSize: "12px", color: "var(--metakyc-text-muted, #9ca3af)", marginTop: "2px" }, children: a("appropriatenessTest.questionXofY", { current: ae + 1, total: je }) })
10049
+ /* @__PURE__ */ r("p", { style: { fontSize: "12px", color: "var(--metakyc-text-muted, #9ca3af)", marginTop: "2px" }, children: a("appropriatenessTest.questionXofY", { current: ae + 1, total: Me }) })
10050
10050
  ] }),
10051
10051
  /* @__PURE__ */ o("div", { style: {
10052
10052
  display: "flex",
@@ -10093,7 +10093,7 @@ const ua = ({
10093
10093
  height: "100%",
10094
10094
  borderRadius: "999px",
10095
10095
  backgroundColor: "var(--metakyc-primary, #2563eb)",
10096
- width: `${ge / je * 100}%`,
10096
+ width: `${pe / Me * 100}%`,
10097
10097
  transition: "width 0.3s ease"
10098
10098
  } }) }),
10099
10099
  /* @__PURE__ */ o("div", { style: {
@@ -10102,7 +10102,7 @@ const ua = ({
10102
10102
  marginTop: "4px"
10103
10103
  }, children: [
10104
10104
  /* @__PURE__ */ o("span", { style: { fontSize: "11px", color: "var(--metakyc-text-muted, #9ca3af)" }, children: [
10105
- ge,
10105
+ pe,
10106
10106
  " ",
10107
10107
  a("appropriatenessTest.answered")
10108
10108
  ] }),
@@ -10115,17 +10115,17 @@ const ua = ({
10115
10115
  ] })
10116
10116
  ] }),
10117
10117
  /* @__PURE__ */ o(ie, { children: [
10118
- ye && /* @__PURE__ */ r(
10119
- ga,
10118
+ ge && /* @__PURE__ */ r(
10119
+ pa,
10120
10120
  {
10121
- question: ye,
10121
+ question: ge,
10122
10122
  index: ae,
10123
- selectedAnswer: I[ye.id],
10124
- onSelect: (A) => X(ye.id, A),
10123
+ selectedAnswer: I[ge.id],
10124
+ onSelect: (A) => X(ge.id, A),
10125
10125
  disabled: d
10126
10126
  }
10127
10127
  ),
10128
- je > 1 && /* @__PURE__ */ r("div", { style: {
10128
+ Me > 1 && /* @__PURE__ */ r("div", { style: {
10129
10129
  display: "flex",
10130
10130
  justifyContent: "center",
10131
10131
  gap: "6px",
@@ -10180,7 +10180,7 @@ const ua = ({
10180
10180
  border: "1px solid color-mix(in srgb, var(--metakyc-danger, #ef4444) 20%, transparent)"
10181
10181
  }, children: /* @__PURE__ */ r("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", margin: 0 }, children: v }) })
10182
10182
  ] }),
10183
- /* @__PURE__ */ r(Ne, { children: /* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", width: "100%" }, children: [
10183
+ /* @__PURE__ */ r(Te, { children: /* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", width: "100%" }, children: [
10184
10184
  /* @__PURE__ */ r(
10185
10185
  G,
10186
10186
  {
@@ -10194,7 +10194,7 @@ const ua = ({
10194
10194
  }
10195
10195
  ),
10196
10196
  /* @__PURE__ */ o("div", { style: { display: "flex", gap: "8px" }, children: [
10197
- !be && /* @__PURE__ */ r(
10197
+ !xe && /* @__PURE__ */ r(
10198
10198
  G,
10199
10199
  {
10200
10200
  type: "button",
@@ -10202,21 +10202,21 @@ const ua = ({
10202
10202
  children: a("common.next")
10203
10203
  }
10204
10204
  ),
10205
- (be || ue) && /* @__PURE__ */ r(
10205
+ (xe || me) && /* @__PURE__ */ r(
10206
10206
  G,
10207
10207
  {
10208
10208
  type: "button",
10209
10209
  isLoading: d,
10210
10210
  onClick: () => _(),
10211
- disabled: !ue && !F,
10212
- style: { opacity: ue || F ? 1 : 0.5 },
10211
+ disabled: !me && !F,
10212
+ style: { opacity: me || F ? 1 : 0.5 },
10213
10213
  children: a(F ? "appropriatenessTest.submitting" : "appropriatenessTest.submitTest")
10214
10214
  }
10215
10215
  )
10216
10216
  ] })
10217
10217
  ] }) })
10218
10218
  ] });
10219
- }, pa = {
10219
+ }, ua = {
10220
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: [
10221
10221
  /* @__PURE__ */ r("path", { d: "M9 11l3 3L22 4" }),
10222
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" })
@@ -10248,7 +10248,7 @@ const ua = ({
10248
10248
  /* @__PURE__ */ r("div", { style: {
10249
10249
  color: n ? "#f59e0b" : "var(--metakyc-primary, #2563eb)",
10250
10250
  flexShrink: 0
10251
- }, children: pa[e] }),
10251
+ }, children: ua[e] }),
10252
10252
  /* @__PURE__ */ o("div", { children: [
10253
10253
  /* @__PURE__ */ r("p", { style: { fontSize: "12px", color: "var(--metakyc-text-muted, #9ca3af)", margin: 0 }, children: t }),
10254
10254
  /* @__PURE__ */ r("p", { style: {
@@ -10260,7 +10260,7 @@ const ua = ({
10260
10260
  }, children: i })
10261
10261
  ] })
10262
10262
  ] });
10263
- }, ga = ({ question: e, selectedAnswer: t, onSelect: i, disabled: a }) => /* @__PURE__ */ o("div", { children: [
10263
+ }, pa = ({ question: e, selectedAnswer: t, onSelect: i, disabled: a }) => /* @__PURE__ */ o("div", { children: [
10264
10264
  /* @__PURE__ */ o("div", { style: { marginBottom: "16px" }, children: [
10265
10265
  e.groupName && /* @__PURE__ */ r("span", { style: {
10266
10266
  display: "inline-block",
@@ -10342,15 +10342,15 @@ const ua = ({
10342
10342
  l
10343
10343
  );
10344
10344
  }) })
10345
- ] }), ya = ({
10345
+ ] }), ga = ({
10346
10346
  applicantId: e,
10347
10347
  onComplete: t,
10348
10348
  onBack: i
10349
10349
  }) => {
10350
- var rt, Ye, ct, Ze;
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);
10350
+ var rt, Ke, ct, Xe;
10351
+ const { t: a } = Re(), { applicantService: n, baseInformationService: l, identityService: s, config: p, currentTheme: u } = Oe(), { identityData: d, provider: y, token: v, isLoading: T, error: I, requestIdentity: x, restartIdentity: q } = Pi(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 = Ce.useRef(!1), [Me, pe] = b({}), [ge, xe] = b({}), me = u != null && u.reviewPageFields && u.reviewPageFields.length > 0 ? u.reviewPageFields[0] : null, P = !!(u != null && u.reviewPageDisabled), A = de(!1);
10352
10352
  A.current = P;
10353
- const O = ur({
10353
+ const O = mr({
10354
10354
  defaultValues: {
10355
10355
  street: "",
10356
10356
  streetNumber: "",
@@ -10361,7 +10361,7 @@ const ua = ({
10361
10361
  phonenumber: ""
10362
10362
  }
10363
10363
  });
10364
- ke(() => {
10364
+ fe(() => {
10365
10365
  if (P) {
10366
10366
  H.current || (H.current = !0, x().then(() => Q(!0)).catch((M) => console.error("[Identity] Auto-request failed:", M)).finally(() => R(!1)));
10367
10367
  return;
@@ -10380,7 +10380,7 @@ const ua = ({
10380
10380
  const z = /* @__PURE__ */ new Set(), E = Y.filter((k) => k.countryCode).map((k) => ({ value: k.countryCode, label: `${k.countryCode} – ${k.name}` })).filter((k) => z.has(k.value) ? !1 : (z.add(k.value), !0));
10381
10381
  ae(E);
10382
10382
  const m = M.applicantRequestData;
10383
- if (ge({
10383
+ if (pe({
10384
10384
  firstName: (m == null ? void 0 : m.firstName) || "",
10385
10385
  lastName: (m == null ? void 0 : m.lastName) || "",
10386
10386
  email: (m == null ? void 0 : m.email) || "",
@@ -10424,9 +10424,9 @@ const ua = ({
10424
10424
  R(!1);
10425
10425
  }
10426
10426
  })();
10427
- }, [e]), ke(() => {
10427
+ }, [e]), fe(() => {
10428
10428
  d && !V && A.current && (console.log("[Identity] Review page disabled — showing cached provider"), Q(!0));
10429
- }, [d, V]), ke(() => {
10429
+ }, [d, V]), fe(() => {
10430
10430
  if (v) {
10431
10431
  if (v.expiresAt) {
10432
10432
  const f = new Date(v.expiresAt).getTime();
@@ -10451,11 +10451,11 @@ const ua = ({
10451
10451
  }
10452
10452
  }
10453
10453
  }, [v]);
10454
- const he = y !== null && y === Be.Sumsub;
10455
- ke(() => {
10454
+ const ke = y !== null && y === Be.Sumsub;
10455
+ fe(() => {
10456
10456
  if (y !== null && v && !S && V && !_) {
10457
10457
  const f = y;
10458
- if (he) {
10458
+ if (ke) {
10459
10459
  console.log("[Sumsub] Fetching access token for Web SDK…"), W(null), (async () => {
10460
10460
  try {
10461
10461
  const M = await s.refreshSumsubToken(e), $ = et.parseProviderConfig(y, v, p);
@@ -10525,7 +10525,7 @@ const ua = ({
10525
10525
  console.error("[Identity] Error destroying provider:", f);
10526
10526
  }
10527
10527
  };
10528
- }, [y, v, S, V, t, _, he, e, p, s]);
10528
+ }, [y, v, S, V, t, _, ke, e, p, s]);
10529
10529
  const se = async () => {
10530
10530
  try {
10531
10531
  W(null), oe(!1), await x(), Q(!0);
@@ -10551,7 +10551,7 @@ const ua = ({
10551
10551
  ] }) }) });
10552
10552
  if (V && (X || _))
10553
10553
  return /* @__PURE__ */ o(re, { children: [
10554
- /* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ r("h2", { className: "text-2xl font-bold text-gray-900 dark:text-white", children: a("identity.sessionIssueTitle") }) }),
10554
+ /* @__PURE__ */ r(Ne, { children: /* @__PURE__ */ r("h2", { className: "text-2xl font-bold text-gray-900 dark:text-white", children: a("identity.sessionIssueTitle") }) }),
10555
10555
  /* @__PURE__ */ o(ie, { children: [
10556
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: [
10557
10557
  /* @__PURE__ */ r(
@@ -10586,14 +10586,14 @@ const ua = ({
10586
10586
  ] })
10587
10587
  ] })
10588
10588
  ] }),
10589
- /* @__PURE__ */ o(Ne, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
10589
+ /* @__PURE__ */ o(Te, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
10590
10590
  i && /* @__PURE__ */ r(G, { type: "button", variant: "outline", onClick: i, children: a("common.back") }),
10591
10591
  /* @__PURE__ */ r(G, { type: "button", onClick: D, disabled: T, children: a(T ? "identity.restarting" : "identity.restartVerification") })
10592
10592
  ] })
10593
10593
  ] });
10594
10594
  if (V && d) {
10595
10595
  const f = y;
10596
- return he ? /* @__PURE__ */ o("div", { style: {
10596
+ return ke ? /* @__PURE__ */ o("div", { style: {
10597
10597
  background: "var(--metakyc-background, #ffffff)",
10598
10598
  borderRadius: "12px",
10599
10599
  border: "1px solid var(--metakyc-border, #e5e7eb)",
@@ -10657,7 +10657,7 @@ const ua = ({
10657
10657
  borderTop: "1px solid var(--metakyc-border, #e5e7eb)"
10658
10658
  }, children: /* @__PURE__ */ r(G, { variant: "outline", onClick: i, children: a("common.back") }) })
10659
10659
  ] }) : v != null && v.url ? /* @__PURE__ */ o(re, { children: [
10660
- /* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ o("div", { className: "flex items-center justify-between", children: [
10660
+ /* @__PURE__ */ r(Ne, { children: /* @__PURE__ */ o("div", { className: "flex items-center justify-between", children: [
10661
10661
  /* @__PURE__ */ o("div", { children: [
10662
10662
  /* @__PURE__ */ r("h2", { className: "text-2xl font-bold", children: a("identity.title") }),
10663
10663
  /* @__PURE__ */ r("p", { className: "text-gray-600 dark:text-gray-400 mt-1", children: a("identity.subtitle") })
@@ -10699,9 +10699,9 @@ const ua = ({
10699
10699
  }
10700
10700
  ) })
10701
10701
  ] }),
10702
- i && /* @__PURE__ */ r(Ne, { children: /* @__PURE__ */ r(G, { variant: "outline", onClick: i, children: a("common.back") }) })
10702
+ i && /* @__PURE__ */ r(Te, { children: /* @__PURE__ */ r(G, { variant: "outline", onClick: i, children: a("common.back") }) })
10703
10703
  ] }) : f === Be.SardinAI ? /* @__PURE__ */ o(re, { children: [
10704
- /* @__PURE__ */ o(Ce, { children: [
10704
+ /* @__PURE__ */ o(Ne, { children: [
10705
10705
  /* @__PURE__ */ r("h2", { className: "text-2xl font-bold", children: a("identity.deviceRiskAssessment") }),
10706
10706
  /* @__PURE__ */ r("p", { className: "text-gray-600 dark:text-gray-400 mt-1", children: a("identity.analyzingDevice") })
10707
10707
  ] }),
@@ -10711,26 +10711,26 @@ const ua = ({
10711
10711
  /* @__PURE__ */ r("p", { className: "text-sm text-gray-500 dark:text-gray-500 mt-2", children: a("identity.automaticProcess") })
10712
10712
  ] }) })
10713
10713
  ] }) : /* @__PURE__ */ o(re, { children: [
10714
- /* @__PURE__ */ o(Ce, { children: [
10714
+ /* @__PURE__ */ o(Ne, { children: [
10715
10715
  /* @__PURE__ */ r("h2", { className: "text-2xl font-bold", children: a("identity.title") }),
10716
10716
  /* @__PURE__ */ r("p", { className: "text-gray-600 dark:text-gray-400 mt-1", children: a("identity.subtitle") })
10717
10717
  ] }),
10718
10718
  /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ r("div", { id: "identity-container", className: "min-h-[400px]" }) }),
10719
- i && /* @__PURE__ */ r(Ne, { children: /* @__PURE__ */ r(G, { variant: "outline", onClick: i, children: a("common.back") }) })
10719
+ i && /* @__PURE__ */ r(Te, { children: /* @__PURE__ */ r(G, { variant: "outline", onClick: i, children: a("common.back") }) })
10720
10720
  ] });
10721
10721
  }
10722
10722
  const ne = /* @__PURE__ */ new Set(["country", "nationality", "taxCountry", "countryOfBirth", "mobileCountryCode", "otherNationality"]), Z = (f = 4) => {
10723
10723
  const M = Math.min(4, Math.max(1, Number(f) || 4));
10724
10724
  return { gridColumn: `span ${M} / span ${M}` };
10725
- }, Re = (f, M) => {
10725
+ }, Ie = (f, M) => {
10726
10726
  if (!M && M !== 0) return "—";
10727
10727
  if (ne.has(f) && f !== "mobileCountryCode") {
10728
10728
  const $ = U.find((Y) => Y.value === M);
10729
10729
  return $ ? $.label : String(M);
10730
10730
  }
10731
10731
  return String(M);
10732
- }, ze = ({ helpText: f }) => {
10733
- const [M, $] = b(!1), Y = me(null), [, ee] = b({ top: 0, left: 0 });
10732
+ }, Ae = ({ helpText: f }) => {
10733
+ const [M, $] = b(!1), Y = de(null), [, ee] = b({ top: 0, left: 0 });
10734
10734
  return /* @__PURE__ */ o(ut, { children: [
10735
10735
  /* @__PURE__ */ r(
10736
10736
  "button",
@@ -10766,7 +10766,7 @@ const ua = ({
10766
10766
  children: "?"
10767
10767
  }
10768
10768
  ),
10769
- M && mr.createPortal(
10769
+ M && dr.createPortal(
10770
10770
  /* @__PURE__ */ r(
10771
10771
  "div",
10772
10772
  {
@@ -10823,11 +10823,11 @@ const ua = ({
10823
10823
  document.body
10824
10824
  )
10825
10825
  ] });
10826
- }, Ie = (f, M) => M ? /* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "flex-start", gap: 5, flexWrap: "nowrap" }, children: [
10826
+ }, ze = (f, M) => M ? /* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "flex-start", gap: 5, flexWrap: "nowrap" }, children: [
10827
10827
  /* @__PURE__ */ r("div", { style: { flex: 1, minWidth: 0 }, children: f }),
10828
- /* @__PURE__ */ r("div", { style: { paddingTop: 24 }, children: /* @__PURE__ */ r(ze, { helpText: M }) })
10829
- ] }) : f, Ke = (f, M) => {
10830
- const $ = `cf-${M}`, Y = f.paramName ?? "", ee = ye[Y];
10828
+ /* @__PURE__ */ r("div", { style: { paddingTop: 24 }, children: /* @__PURE__ */ r(Ae, { helpText: M }) })
10829
+ ] }) : f, We = (f, M) => {
10830
+ const $ = `cf-${M}`, Y = f.paramName ?? "", ee = ge[Y];
10831
10831
  if (f.customType === "br")
10832
10832
  return /* @__PURE__ */ r("div", { style: { ...Z(f.colSpan), minHeight: "0.5rem" } }, $);
10833
10833
  if (f.customType === "paragraph")
@@ -10849,7 +10849,7 @@ const ua = ({
10849
10849
  $
10850
10850
  );
10851
10851
  if (f.customType === "link")
10852
- return /* @__PURE__ */ r("div", { style: Z(f.colSpan), children: Ie(
10852
+ return /* @__PURE__ */ r("div", { style: Z(f.colSpan), children: ze(
10853
10853
  /* @__PURE__ */ r(
10854
10854
  "a",
10855
10855
  {
@@ -10865,13 +10865,13 @@ const ua = ({
10865
10865
  ) }, $);
10866
10866
  if (f.customType === "checkbox" || f.customType === "link_checkbox") {
10867
10867
  const g = ee === "true" || ee === !0;
10868
- return /* @__PURE__ */ r("div", { style: Z(f.colSpan), children: Ie(
10868
+ return /* @__PURE__ */ r("div", { style: Z(f.colSpan), children: ze(
10869
10869
  /* @__PURE__ */ o("label", { style: { display: "flex", alignItems: "flex-start", gap: 8, cursor: "pointer" }, children: [
10870
10870
  /* @__PURE__ */ r(
10871
10871
  Ue,
10872
10872
  {
10873
10873
  checked: !!g,
10874
- onChange: (z) => be((E) => ({ ...E, [Y]: String(z) })),
10874
+ onChange: (z) => xe((E) => ({ ...E, [Y]: String(z) })),
10875
10875
  style: { marginTop: 2 }
10876
10876
  }
10877
10877
  ),
@@ -10885,12 +10885,12 @@ const ua = ({
10885
10885
  }
10886
10886
  if (f.customType === "group_checkbox") {
10887
10887
  const g = Array.isArray(ee) ? ee : ee ? [ee] : [], z = (E) => {
10888
- f.singleSelect ? be((m) => ({ ...m, [Y]: g[0] === E ? [] : [E] })) : be((m) => ({
10888
+ f.singleSelect ? xe((m) => ({ ...m, [Y]: g[0] === E ? [] : [E] })) : xe((m) => ({
10889
10889
  ...m,
10890
10890
  [Y]: g.includes(E) ? g.filter((c) => c !== E) : [...g, E]
10891
10891
  }));
10892
10892
  };
10893
- return /* @__PURE__ */ r("div", { style: Z(f.colSpan), children: Ie(
10893
+ return /* @__PURE__ */ r("div", { style: Z(f.colSpan), children: ze(
10894
10894
  /* @__PURE__ */ o("div", { className: "space-y-1.5", children: [
10895
10895
  f.label && /* @__PURE__ */ r("p", { className: "text-sm font-medium", style: { color: "var(--metakyc-text-primary, #111827)" }, children: f.displayText || f.label }),
10896
10896
  (f.options || []).map((E) => /* @__PURE__ */ o("label", { style: { display: "flex", alignItems: "flex-start", gap: 8, cursor: "pointer" }, children: [
@@ -10908,7 +10908,7 @@ const ua = ({
10908
10908
  f.helpText
10909
10909
  ) }, $);
10910
10910
  }
10911
- return f.customType === "radio_group" ? /* @__PURE__ */ r("div", { style: Z(f.colSpan), children: Ie(
10911
+ return f.customType === "radio_group" ? /* @__PURE__ */ r("div", { style: Z(f.colSpan), children: ze(
10912
10912
  /* @__PURE__ */ o("div", { className: "space-y-1.5", children: [
10913
10913
  f.label && /* @__PURE__ */ r("p", { className: "text-sm font-medium", style: { color: "var(--metakyc-text-primary, #111827)" }, children: f.displayText || f.label }),
10914
10914
  (f.options || []).map((g) => /* @__PURE__ */ o("label", { style: { display: "flex", alignItems: "flex-start", gap: 8, cursor: "pointer" }, children: [
@@ -10919,7 +10919,7 @@ const ua = ({
10919
10919
  name: `rg-${Y}`,
10920
10920
  value: g.value,
10921
10921
  checked: ee === g.value,
10922
- onChange: () => be((z) => ({ ...z, [Y]: g.value })),
10922
+ onChange: () => xe((z) => ({ ...z, [Y]: g.value })),
10923
10923
  style: { width: 16, height: 16, flexShrink: 0, marginTop: 2, accentColor: "var(--metakyc-primary, #6366f1)" }
10924
10924
  }
10925
10925
  ),
@@ -10927,87 +10927,87 @@ const ua = ({
10927
10927
  ] }, g.value))
10928
10928
  ] }),
10929
10929
  f.helpText
10930
- ) }, $) : /* @__PURE__ */ r("div", { style: Z(f.colSpan), children: Ie(
10930
+ ) }, $) : /* @__PURE__ */ r("div", { style: Z(f.colSpan), children: ze(
10931
10931
  /* @__PURE__ */ r(
10932
- we,
10932
+ Se,
10933
10933
  {
10934
10934
  label: f.displayText || f.label || Y,
10935
10935
  value: String(ee ?? ""),
10936
- onChange: (g) => be((z) => ({ ...z, [Y]: g.target.value }))
10936
+ onChange: (g) => xe((z) => ({ ...z, [Y]: g.target.value }))
10937
10937
  }
10938
10938
  ),
10939
10939
  f.helpText
10940
10940
  ) }, $);
10941
10941
  }, lt = (f, M) => {
10942
- if (f.isCustom) return Ke(f, M);
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;
10944
- return f.editable ? z ? /* @__PURE__ */ r("div", { style: Z(f.colSpan ?? 2), children: Ie(
10942
+ if (f.isCustom) return We(f, M);
10943
+ const $ = f.name ?? "", Y = st[$], ee = f.displayText || (Y == null ? void 0 : Y.label) || $, g = Me[$] ?? "", z = $ === "mobileCountryCode", E = !!(Y != null && Y.countriesType) && !z;
10944
+ return f.editable ? z ? /* @__PURE__ */ r("div", { style: Z(f.colSpan ?? 2), children: ze(
10945
10945
  /* @__PURE__ */ r(
10946
- Qe,
10946
+ Ge,
10947
10947
  {
10948
10948
  label: ee,
10949
10949
  value: String(g),
10950
- onChange: (m) => ge((c) => ({ ...c, [$]: m })),
10950
+ onChange: (m) => pe((c) => ({ ...c, [$]: m })),
10951
10951
  options: [{ value: "", label: a("placeholders.selectCountryCode") }, ...J]
10952
10952
  }
10953
10953
  ),
10954
10954
  f.helpText
10955
- ) }, `epc-${M}`) : E ? /* @__PURE__ */ r("div", { style: Z(f.colSpan ?? 2), children: Ie(
10955
+ ) }, `epc-${M}`) : E ? /* @__PURE__ */ r("div", { style: Z(f.colSpan ?? 2), children: ze(
10956
10956
  /* @__PURE__ */ r(
10957
- Qe,
10957
+ Ge,
10958
10958
  {
10959
10959
  label: ee,
10960
10960
  value: String(g),
10961
- onChange: (m) => ge((c) => ({ ...c, [$]: m })),
10961
+ onChange: (m) => pe((c) => ({ ...c, [$]: m })),
10962
10962
  options: [{ value: "", label: a("common.select") }, ...U]
10963
10963
  }
10964
10964
  ),
10965
10965
  f.helpText
10966
- ) }, `ec-${M}`) : /* @__PURE__ */ r("div", { style: Z(f.colSpan ?? 2), children: Ie(
10966
+ ) }, `ec-${M}`) : /* @__PURE__ */ r("div", { style: Z(f.colSpan ?? 2), children: ze(
10967
10967
  /* @__PURE__ */ r(
10968
- we,
10968
+ Se,
10969
10969
  {
10970
10970
  label: ee,
10971
10971
  type: (Y == null ? void 0 : Y.type) === "date" ? "date" : (Y == null ? void 0 : Y.type) === "email" ? "email" : "text",
10972
10972
  value: String(g),
10973
- onChange: (m) => ge((c) => ({ ...c, [$]: m.target.value }))
10973
+ onChange: (m) => pe((c) => ({ ...c, [$]: m.target.value }))
10974
10974
  }
10975
10975
  ),
10976
10976
  f.helpText
10977
- ) }, `ei-${M}`) : /* @__PURE__ */ r("div", { style: Z(f.colSpan ?? 2), children: Ie(
10977
+ ) }, `ei-${M}`) : /* @__PURE__ */ r("div", { style: Z(f.colSpan ?? 2), children: ze(
10978
10978
  /* @__PURE__ */ o(ut, { children: [
10979
10979
  /* @__PURE__ */ r("label", { className: "block text-sm font-medium mb-0.5", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: ee }),
10980
- /* @__PURE__ */ r("p", { className: "text-sm", style: { color: "var(--metakyc-text-primary, #111827)", minHeight: "1.5rem" }, children: Re($, g) })
10980
+ /* @__PURE__ */ r("p", { className: "text-sm", style: { color: "var(--metakyc-text-primary, #111827)", minHeight: "1.5rem" }, children: Ie($, g) })
10981
10981
  ] }),
10982
10982
  f.helpText
10983
10983
  ) }, `ro-${M}`);
10984
10984
  };
10985
- if (ue) {
10986
- const f = ue.title || a("identity.reviewYourInformation"), M = ue.subtitle || a("identity.reviewSubtitle");
10985
+ if (me) {
10986
+ const f = me.title || a("identity.reviewYourInformation"), M = me.subtitle || a("identity.reviewSubtitle");
10987
10987
  return /* @__PURE__ */ r("form", { onSubmit: ($) => {
10988
10988
  $.preventDefault(), se();
10989
10989
  }, children: /* @__PURE__ */ o(re, { children: [
10990
- /* @__PURE__ */ o(Ce, { children: [
10990
+ /* @__PURE__ */ o(Ne, { children: [
10991
10991
  /* @__PURE__ */ r("h2", { className: "text-lg font-bold", style: { color: "var(--metakyc-text-primary, #111827)" }, children: f }),
10992
10992
  M && /* @__PURE__ */ r("p", { className: "mt-1 text-sm", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: M })
10993
10993
  ] }),
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)) }) }),
10995
- /* @__PURE__ */ o(Ne, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
10994
+ /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ r("div", { style: { display: "grid", gridTemplateColumns: "repeat(4, minmax(0, 1fr))", gap: "1rem" }, children: me.fields.map(($, Y) => lt($, Y)) }) }),
10995
+ /* @__PURE__ */ o(Te, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
10996
10996
  i && /* @__PURE__ */ r(G, { type: "button", variant: "outline", onClick: i, children: a("common.back") }),
10997
10997
  /* @__PURE__ */ r(G, { type: "submit", isLoading: T, children: a("identity.confirmAndStart") })
10998
10998
  ] })
10999
10999
  ] }) });
11000
11000
  }
11001
11001
  return /* @__PURE__ */ r("form", { onSubmit: O.handleSubmit(se), children: /* @__PURE__ */ o(re, { children: [
11002
- /* @__PURE__ */ o(Ce, { children: [
11002
+ /* @__PURE__ */ o(Ne, { children: [
11003
11003
  /* @__PURE__ */ r("h2", { className: "text-lg font-bold", style: { color: "var(--metakyc-text-primary, #111827)" }, children: a("identity.reviewYourInformation") }),
11004
11004
  /* @__PURE__ */ r("p", { className: "mt-1 text-sm", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: a("identity.reviewSubtitle") })
11005
11005
  ] }),
11006
11006
  /* @__PURE__ */ o(ie, { className: "space-y-6", children: [
11007
11007
  /* @__PURE__ */ r("div", { className: "space-y-4 pb-4", style: { borderBottom: "1px solid var(--metakyc-border, #e5e7eb)" }, children: [
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() },
11008
+ { label: a("fields.name"), value: `${((rt = B == null ? void 0 : B.applicantRequestData) == null ? void 0 : rt.firstName) || ""} ${((Ke = B == null ? void 0 : B.applicantRequestData) == null ? void 0 : Ke.lastName) || ""}`.trim() },
11009
11009
  { label: a("fields.email"), value: (ct = B == null ? void 0 : B.applicantRequestData) == null ? void 0 : ct.email },
11010
- { label: a("fields.dateOfBirth"), value: ((Ze = B == null ? void 0 : B.applicantRequestData) == null ? void 0 : Ze.dateOfBirth) || a("fields.notProvided") }
11010
+ { label: a("fields.dateOfBirth"), value: ((Xe = B == null ? void 0 : B.applicantRequestData) == null ? void 0 : Xe.dateOfBirth) || a("fields.notProvided") }
11011
11011
  ].map(({ label: f, value: M }) => /* @__PURE__ */ o("div", { children: [
11012
11012
  /* @__PURE__ */ r("label", { className: "block text-sm font-medium", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: f }),
11013
11013
  /* @__PURE__ */ r("p", { className: "mt-1 text-base", style: { color: "var(--metakyc-text-primary, #111827)" }, children: M })
@@ -11021,7 +11021,7 @@ const ua = ({
11021
11021
  control: O.control,
11022
11022
  name: "country",
11023
11023
  render: ({ field: f }) => /* @__PURE__ */ r(
11024
- Qe,
11024
+ Ge,
11025
11025
  {
11026
11026
  label: a("fields.country"),
11027
11027
  value: f.value,
@@ -11037,7 +11037,7 @@ const ua = ({
11037
11037
  control: O.control,
11038
11038
  name: "nationality",
11039
11039
  render: ({ field: f }) => /* @__PURE__ */ r(
11040
- Qe,
11040
+ Ge,
11041
11041
  {
11042
11042
  label: a("fields.nationality"),
11043
11043
  value: f.value,
@@ -11049,17 +11049,17 @@ const ua = ({
11049
11049
  )
11050
11050
  ] }),
11051
11051
  /* @__PURE__ */ o("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
11052
- /* @__PURE__ */ r(at, { control: O.control, name: "street", render: ({ field: f }) => /* @__PURE__ */ r(we, { ...f, label: a("fields.street") }) }),
11053
- /* @__PURE__ */ r(at, { control: O.control, name: "streetNumber", render: ({ field: f }) => /* @__PURE__ */ r(we, { ...f, label: a("fields.streetNumber") }) })
11052
+ /* @__PURE__ */ r(at, { control: O.control, name: "street", render: ({ field: f }) => /* @__PURE__ */ r(Se, { ...f, label: a("fields.street") }) }),
11053
+ /* @__PURE__ */ r(at, { control: O.control, name: "streetNumber", render: ({ field: f }) => /* @__PURE__ */ r(Se, { ...f, label: a("fields.streetNumber") }) })
11054
11054
  ] }),
11055
11055
  /* @__PURE__ */ o("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
11056
- /* @__PURE__ */ r(at, { control: O.control, name: "city", render: ({ field: f }) => /* @__PURE__ */ r(we, { ...f, label: a("fields.city") }) }),
11057
- /* @__PURE__ */ r(at, { control: O.control, name: "zip", render: ({ field: f }) => /* @__PURE__ */ r(we, { ...f, label: a("fields.zip") }) })
11056
+ /* @__PURE__ */ r(at, { control: O.control, name: "city", render: ({ field: f }) => /* @__PURE__ */ r(Se, { ...f, label: a("fields.city") }) }),
11057
+ /* @__PURE__ */ r(at, { control: O.control, name: "zip", render: ({ field: f }) => /* @__PURE__ */ r(Se, { ...f, label: a("fields.zip") }) })
11058
11058
  ] }),
11059
- /* @__PURE__ */ r(at, { control: O.control, name: "phonenumber", render: ({ field: f }) => /* @__PURE__ */ r(we, { ...f, label: a("fields.phoneNumber"), type: "tel" }) })
11059
+ /* @__PURE__ */ r(at, { control: O.control, name: "phonenumber", render: ({ field: f }) => /* @__PURE__ */ r(Se, { ...f, label: a("fields.phoneNumber"), type: "tel" }) })
11060
11060
  ] })
11061
11061
  ] }),
11062
- /* @__PURE__ */ o(Ne, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
11062
+ /* @__PURE__ */ o(Te, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
11063
11063
  i && /* @__PURE__ */ r(G, { type: "button", variant: "outline", onClick: i, children: a("common.back") }),
11064
11064
  /* @__PURE__ */ r(G, { type: "submit", isLoading: T, children: a("identity.confirmAndStart") })
11065
11065
  ] })
@@ -11072,7 +11072,7 @@ const ua = ({
11072
11072
  onContinue: n,
11073
11073
  onContactSupport: l
11074
11074
  }) => {
11075
- const { t: s } = Te(), u = e === nt.Approved ? {
11075
+ const { t: s } = Re(), u = e === nt.Approved ? {
11076
11076
  type: "success",
11077
11077
  title: s("status.verificationApproved"),
11078
11078
  icon: "✓",
@@ -11223,7 +11223,7 @@ const ua = ({
11223
11223
  ] })
11224
11224
  ] }) })
11225
11225
  ] }),
11226
- /* @__PURE__ */ o(Ne, { style: { display: "flex", justifyContent: "center", gap: "1rem" }, children: [
11226
+ /* @__PURE__ */ o(Te, { style: { display: "flex", justifyContent: "center", gap: "1rem" }, children: [
11227
11227
  u.type === "success" && n && /* @__PURE__ */ r(G, { onClick: n, size: "lg", children: s("common.continue") }),
11228
11228
  u.type === "error" && /* @__PURE__ */ o(ut, { children: [
11229
11229
  l && /* @__PURE__ */ r(G, { variant: "outline", onClick: l, children: s("status.contactSupport") }),
@@ -11232,8 +11232,8 @@ const ua = ({
11232
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") }) })
11233
11233
  ] })
11234
11234
  ] });
11235
- }, fa = ({ config: e, className: t = "" }) => {
11236
- const { t: i } = Te();
11235
+ }, ya = ({ config: e, className: t = "" }) => {
11236
+ const { t: i } = Re();
11237
11237
  return !(e != null && e.visible) || !(e != null && e.url) ? null : /* @__PURE__ */ r("div", { className: `metakyc-logo ${t}`, children: /* @__PURE__ */ r(
11238
11238
  "img",
11239
11239
  {
@@ -11255,7 +11255,7 @@ const ua = ({
11255
11255
  subtitle: t,
11256
11256
  className: i = ""
11257
11257
  }) => {
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;
11258
+ const { currentTheme: a } = Oe(), { t: n } = Re(), 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
11259
  return !u && !d ? null : /* @__PURE__ */ o("div", { className: `metakyc-header ${i}`, children: [
11260
11260
  /* @__PURE__ */ o(
11261
11261
  "div",
@@ -11263,7 +11263,7 @@ const ua = ({
11263
11263
  className: "metakyc-header-title flex items-center text-xl font-bold",
11264
11264
  style: { color: "var(--metakyc-text-primary, #111827)" },
11265
11265
  children: [
11266
- u && /* @__PURE__ */ r(fa, { config: a.logo }),
11266
+ u && /* @__PURE__ */ r(ya, { config: a.logo }),
11267
11267
  u && d && /* @__PURE__ */ r(
11268
11268
  "span",
11269
11269
  {
@@ -11281,7 +11281,7 @@ const ua = ({
11281
11281
  function mt(e) {
11282
11282
  return e == null || e === "" || Array.isArray(e) && e.length === 0;
11283
11283
  }
11284
- const ka = {
11284
+ const fa = {
11285
11285
  width: "16px",
11286
11286
  height: "16px",
11287
11287
  minWidth: "16px",
@@ -11294,7 +11294,7 @@ const ka = {
11294
11294
  display: "inline-block",
11295
11295
  verticalAlign: "middle"
11296
11296
  }, Ht = ({ helpText: e, children: t }) => {
11297
- const [i, a] = Se.useState(!1);
11297
+ const [i, a] = Ce.useState(!1);
11298
11298
  if (!e) return /* @__PURE__ */ r(ut, { children: t });
11299
11299
  const n = i ? /* @__PURE__ */ r(
11300
11300
  "div",
@@ -11414,22 +11414,22 @@ const ka = {
11414
11414
  ),
11415
11415
  typeof document < "u" && n ? zt(n, document.body) : null
11416
11416
  ] });
11417
- }, Fa = ({
11417
+ }, Ma = ({
11418
11418
  workflowKey: e,
11419
11419
  externalRefId: t,
11420
11420
  onSuccess: i,
11421
11421
  onCancel: a
11422
11422
  }) => {
11423
11423
  var $, Y, ee, g, z, E, m;
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);
11424
+ const { config: n, baseInformationService: l, currentTheme: s } = Oe(), { createApplicant: p, isLoading: u } = tr(), { t: d } = Re(), y = e || (($ = n.applicantForm) == null ? void 0 : $.workflowKey);
11425
11425
  if (!y)
11426
11426
  throw new Error(
11427
11427
  "workflowKey is required. Provide it either as a prop to CreateApplicantForm or set it in config.applicantForm.workflowKey"
11428
11428
  );
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(
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 = Fe(
11430
11430
  () => s != null && s.applicantFormPages && s.applicantFormPages.length > 0 ? s.applicantFormPages : null,
11431
11431
  [s == null ? void 0 : s.applicantFormPages]
11432
- ), B = Me(() => {
11432
+ ), B = Fe(() => {
11433
11433
  const c = new Set(vt), k = s == null ? void 0 : s.applicantFormRequiredFields;
11434
11434
  if (k) for (const j of k) c.add(j);
11435
11435
  if (L)
@@ -11437,7 +11437,7 @@ const ka = {
11437
11437
  for (const h of j.fields)
11438
11438
  !h.isCustom && h.name && h.required && c.add(h.name);
11439
11439
  return Array.from(c);
11440
- }, [s == null ? void 0 : s.applicantFormRequiredFields, L]), F = Me(() => {
11440
+ }, [s == null ? void 0 : s.applicantFormRequiredFields, L]), F = Fe(() => {
11441
11441
  var j;
11442
11442
  if (L) {
11443
11443
  const h = L.flatMap((C) => C.fields).filter((C) => !C.isCustom && C.name).map((C) => C.name), N = new Set(h);
@@ -11445,7 +11445,7 @@ const ka = {
11445
11445
  return Array.from(N);
11446
11446
  }
11447
11447
  let c;
11448
- (j = n.applicantForm) != null && j.visibleFields ? c = n.applicantForm.visibleFields : s != null && s.applicantFormVisibleFields && s.applicantFormVisibleFields.length > 0 ? c = s.applicantFormVisibleFields : c = Nr;
11448
+ (j = n.applicantForm) != null && j.visibleFields ? c = n.applicantForm.visibleFields : s != null && s.applicantFormVisibleFields && s.applicantFormVisibleFields.length > 0 ? c = s.applicantFormVisibleFields : c = Cr;
11449
11449
  const k = new Set(c);
11450
11450
  for (const h of vt) k.add(h);
11451
11451
  return Array.from(k);
@@ -11456,7 +11456,7 @@ const ka = {
11456
11456
  "countryOfBirth",
11457
11457
  "mobileCountryCode",
11458
11458
  "otherNationality"
11459
- ]), K = Me(() => {
11459
+ ]), K = Fe(() => {
11460
11460
  var k, j;
11461
11461
  const c = /* @__PURE__ */ new Set();
11462
11462
  if (L)
@@ -11467,8 +11467,8 @@ const ka = {
11467
11467
  for (const h of F)
11468
11468
  U.has(h) && c.add((j = st[h]) == null ? void 0 : j.countriesType);
11469
11469
  return c.size === 0 && c.add(void 0), Array.from(c);
11470
- }, [F, L]), [J, ae] = b({}), [w, R] = b(!0), V = me(/* @__PURE__ */ new Set()), Q = me(/* @__PURE__ */ new Set());
11471
- ke(() => {
11470
+ }, [F, L]), [J, ae] = b({}), [w, R] = b(!0), V = de(/* @__PURE__ */ new Set()), Q = de(/* @__PURE__ */ new Set());
11471
+ fe(() => {
11472
11472
  if (!s) return;
11473
11473
  const c = K.filter((h) => {
11474
11474
  const N = h != null ? String(h) : "all";
@@ -11487,11 +11487,11 @@ const ka = {
11487
11487
  try {
11488
11488
  const h = await Promise.all(
11489
11489
  c.map(async (N) => {
11490
- const C = N != null ? String(N) : "all", pe = await l.getCountries("", n.locale || "en", N), le = N === 40, xe = /* @__PURE__ */ new Set(), Oe = pe.map((ce) => le && ce.countryCode ? {
11491
- value: ce.countryCode,
11492
- label: `${ce.countryCode} – ${ce.name}`
11493
- } : { value: ce.abbreviation3 || ce.abbreviation, label: ce.name }).filter((ce) => !ce.value || xe.has(ce.value) ? !1 : (xe.add(ce.value), !0));
11494
- return Q.current.add(C), V.current.delete(C), [C, Oe];
11490
+ const C = N != null ? String(N) : "all", ue = await l.getCountries("", n.locale || "en", N), le = N === 40, we = /* @__PURE__ */ new Set(), be = ue.map((he) => le && he.countryCode ? {
11491
+ value: he.countryCode,
11492
+ label: `${he.countryCode} – ${he.name}`
11493
+ } : { value: he.abbreviation3 || he.abbreviation, label: he.name }).filter((he) => !he.value || we.has(he.value) ? !1 : (we.add(he.value), !0));
11494
+ return Q.current.add(C), V.current.delete(C), [C, be];
11495
11495
  })
11496
11496
  );
11497
11497
  ae((N) => ({ ...N, ...Object.fromEntries(h) }));
@@ -11536,7 +11536,7 @@ const ka = {
11536
11536
  Object.entries(I).filter(([c]) => c in W)
11537
11537
  ), oe = Object.fromEntries(
11538
11538
  Object.entries(x).filter(([c]) => c in W)
11539
- ), [H, je] = b({
11539
+ ), [H, Me] = b({
11540
11540
  workflowKey: y,
11541
11541
  firstName: "",
11542
11542
  lastName: "",
@@ -11563,16 +11563,16 @@ const ka = {
11563
11563
  taxNumber: "",
11564
11564
  ..._,
11565
11565
  ...oe
11566
- }), ge = Object.fromEntries(
11566
+ }), pe = Object.fromEntries(
11567
11567
  Object.entries(I).filter(([c]) => !(c in _) && c !== "externalRefId" && c !== "workflowKey")
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) => {
11568
+ ), [ge, xe] = b({ ...pe }), [me, P] = b(0), [A, O] = b({}), [ke, se] = b(null), [D, ne] = b(!1), Z = (c, k) => Me((j) => ({ ...j, [c]: k })), Ie = (c, k) => xe((j) => ({ ...j, [c]: k })), Ae = (c) => !c.conditionalOn || ge[c.conditionalOn] === "true", ze = L && me < L.length - 1 ? me + 1 : -1, We = L && me > 0 ? me - 1 : -1, lt = (c) => {
11569
11569
  var j;
11570
11570
  const k = {};
11571
11571
  for (const h of c.fields)
11572
11572
  if (h.isCustom) {
11573
11573
  if (h.customType === "paragraph" || h.customType === "html" || h.customType === "br" || h.customType === "link") continue;
11574
11574
  if (h.required && h.paramName) {
11575
- const N = ye[h.paramName], C = ve(h.displayText, d) || ve(h.label, d) || h.paramName;
11575
+ const N = ge[h.paramName], C = ve(h.displayText, d) || ve(h.label, d) || h.paramName;
11576
11576
  h.customType === "checkbox" || h.customType === "link_checkbox" ? N !== "true" && (k[h.paramName] = d("validation.fieldRequired", { field: C })) : (!N || N.trim() === "") && (k[h.paramName] = d("validation.fieldRequired", { field: C }));
11577
11577
  }
11578
11578
  } else if (h.name) {
@@ -11585,9 +11585,9 @@ const ka = {
11585
11585
  return k;
11586
11586
  }, rt = async () => {
11587
11587
  if (!L) return;
11588
- const c = L[ue];
11589
- if (c.conditionalOn && !ze(c)) {
11590
- O({}), Ie >= 0 ? P(Ie) : await Ye();
11588
+ const c = L[me];
11589
+ if (c.conditionalOn && !Ae(c)) {
11590
+ O({}), ze >= 0 ? P(ze) : await Ke();
11591
11591
  return;
11592
11592
  }
11593
11593
  const k = lt(c);
@@ -11595,12 +11595,12 @@ const ka = {
11595
11595
  O(k);
11596
11596
  return;
11597
11597
  }
11598
- O({}), Ie >= 0 ? P(Ie) : await Ye();
11599
- }, Ye = async () => {
11598
+ O({}), ze >= 0 ? P(ze) : await Ke();
11599
+ }, Ke = async () => {
11600
11600
  if (L) {
11601
11601
  let c = {};
11602
11602
  for (const k of L)
11603
- ze(k) && (c = { ...c, ...lt(k) });
11603
+ Ae(k) && (c = { ...c, ...lt(k) });
11604
11604
  if (Object.keys(c).length > 0) {
11605
11605
  O(c);
11606
11606
  return;
@@ -11618,11 +11618,11 @@ const ka = {
11618
11618
  };
11619
11619
  if (L) {
11620
11620
  for (const N of L)
11621
- if (ze(N)) {
11621
+ if (Ae(N)) {
11622
11622
  for (const C of N.fields)
11623
11623
  if (!C.isCustom && C.name) {
11624
- const pe = C.name, le = H[pe];
11625
- mt(le) || (c[pe] = le);
11624
+ const ue = C.name, le = H[ue];
11625
+ mt(le) || (c[ue] = le);
11626
11626
  }
11627
11627
  }
11628
11628
  for (const N of vt)
@@ -11639,21 +11639,21 @@ const ka = {
11639
11639
  const k = [];
11640
11640
  if (L) {
11641
11641
  for (const N of L)
11642
- if (ze(N))
11642
+ if (Ae(N))
11643
11643
  for (const C of N.fields) {
11644
11644
  if (!C.isCustom || !C.paramName || C.customType === "paragraph" || C.customType === "html" || C.customType === "br" || C.customType === "link") continue;
11645
- const pe = ye[C.paramName] ?? "";
11645
+ const ue = ge[C.paramName] ?? "";
11646
11646
  let le;
11647
11647
  if (C.customType === "checkbox" || C.customType === "link_checkbox")
11648
- le = pe === "true" ? "yes" : "no";
11649
- else if (le = pe, !le && !C.required) continue;
11648
+ le = ue === "true" ? "yes" : "no";
11649
+ else if (le = ue, !le && !C.required) continue;
11650
11650
  k.push({ paramName: C.paramName, value: le });
11651
11651
  }
11652
11652
  }
11653
11653
  for (const [N, C] of Object.entries(_))
11654
11654
  c[N] === void 0 && !mt(C) && (c[N] = C);
11655
11655
  const j = new Set(k.map((N) => N.paramName));
11656
- for (const [N, C] of Object.entries(ge))
11656
+ for (const [N, C] of Object.entries(pe))
11657
11657
  !j.has(N) && C && k.push({ paramName: N, value: C });
11658
11658
  k.length > 0 && (c.applicantAdditionalDatas = k);
11659
11659
  const h = await p(c);
@@ -11672,145 +11672,145 @@ const ka = {
11672
11672
  se(d("validation.fieldRequired", { field: h }));
11673
11673
  return;
11674
11674
  }
11675
- await Ye();
11676
- }, Ze = (c, k, j, h, N) => {
11675
+ await Ke();
11676
+ }, Xe = (c, k, j, h, N) => {
11677
11677
  var Lt;
11678
11678
  const C = st[c];
11679
11679
  if (!C) return null;
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;
11680
+ const ue = B.includes(c), le = A[c], we = ve(j, d) || C.label, be = c in oe, he = k ?? c, Ze = { required: ue }, Ye = N ? N !== "placeholder" : S, Je = Ye ? we : void 0;
11681
11681
  switch (C.type) {
11682
11682
  case "select":
11683
11683
  if (c === "country" || c === "nationality" || c === "taxCountry" || c === "countryOfBirth" || c === "mobileCountryCode") {
11684
- const Ae = X(c, h);
11684
+ const Le = X(c, h);
11685
11685
  return /* @__PURE__ */ r(
11686
- Qe,
11686
+ Ge,
11687
11687
  {
11688
- ...We,
11688
+ ...Ze,
11689
11689
  label: Je,
11690
11690
  value: H[c] || "",
11691
11691
  onChange: (it) => Z(c, it),
11692
- options: [{ value: "", label: `Select ${sr.toLowerCase()}` }, ...Ae],
11692
+ options: [{ value: "", label: Ye ? d("placeholders.selectCountry") : we }, ...Le],
11693
11693
  disabled: w,
11694
- readOnly: Oe,
11694
+ readOnly: be,
11695
11695
  error: le
11696
11696
  },
11697
- ce
11697
+ he
11698
11698
  );
11699
11699
  }
11700
11700
  if (c === "salutation")
11701
11701
  return /* @__PURE__ */ r(
11702
- Qe,
11702
+ Ge,
11703
11703
  {
11704
- ...We,
11704
+ ...Ze,
11705
11705
  label: Je,
11706
11706
  value: ((Lt = H[c]) == null ? void 0 : Lt.toString()) || "",
11707
- onChange: (Ae) => Z(c, Ae ? Number(Ae) : null),
11707
+ onChange: (Le) => Z(c, Le ? Number(Le) : null),
11708
11708
  options: [
11709
- { value: "", label: He ? d("placeholders.selectSalutation") : xe },
11709
+ { value: "", label: Ye ? d("placeholders.selectSalutation") : we },
11710
11710
  { value: xt.Male.toString(), label: d("gender.male") },
11711
11711
  { value: xt.Female.toString(), label: d("gender.female") },
11712
11712
  { value: xt.Other.toString(), label: d("gender.other") }
11713
11713
  ],
11714
- readOnly: Oe,
11714
+ readOnly: be,
11715
11715
  error: le
11716
11716
  },
11717
- ce
11717
+ he
11718
11718
  );
11719
11719
  if (c === "defaultLanguage") {
11720
- const Ae = s != null && s.allowedLanguages && s.allowedLanguages.length > 0 ? Pt.filter((it) => s.allowedLanguages.includes(it.value)) : Pt;
11720
+ const Le = s != null && s.allowedLanguages && s.allowedLanguages.length > 0 ? Pt.filter((it) => s.allowedLanguages.includes(it.value)) : Pt;
11721
11721
  return /* @__PURE__ */ r(
11722
- Qe,
11722
+ Ge,
11723
11723
  {
11724
- ...We,
11724
+ ...Ze,
11725
11725
  label: Je,
11726
11726
  value: H[c] || "",
11727
11727
  onChange: (it) => Z(c, it),
11728
- options: [{ value: "", label: He ? d("placeholders.selectLanguage") : xe }, ...Ae],
11729
- readOnly: Oe,
11728
+ options: [{ value: "", label: Ye ? d("placeholders.selectLanguage") : we }, ...Le],
11729
+ readOnly: be,
11730
11730
  error: le
11731
11731
  },
11732
- ce
11732
+ he
11733
11733
  );
11734
11734
  }
11735
11735
  return null;
11736
11736
  case "multiselect":
11737
11737
  if (c === "otherNationality") {
11738
- const Ae = X(c, h);
11738
+ const Le = X(c, h);
11739
11739
  return /* @__PURE__ */ r(
11740
- Vi,
11740
+ Oi,
11741
11741
  {
11742
- ...We,
11742
+ ...Ze,
11743
11743
  label: Je,
11744
11744
  value: H[c] || [],
11745
11745
  onChange: (it) => Z(c, it),
11746
- options: Ae,
11747
- placeholder: He ? d("placeholders.selectOtherNationalities") : xe,
11746
+ options: Le,
11747
+ placeholder: Ye ? d("placeholders.selectOtherNationalities") : we,
11748
11748
  disabled: w,
11749
- readOnly: Oe
11749
+ readOnly: be
11750
11750
  },
11751
- ce
11751
+ he
11752
11752
  );
11753
11753
  }
11754
11754
  return null;
11755
11755
  case "date":
11756
11756
  return /* @__PURE__ */ r(
11757
- we,
11757
+ Se,
11758
11758
  {
11759
- ...We,
11759
+ ...Ze,
11760
11760
  type: "date",
11761
11761
  label: Je,
11762
- placeholder: He ? void 0 : xe,
11762
+ placeholder: Ye ? void 0 : we,
11763
11763
  value: H[c] || "",
11764
- onChange: (Ae) => Z(c, Ae.target.value),
11765
- readOnly: Oe,
11764
+ onChange: (Le) => Z(c, Le.target.value),
11765
+ readOnly: be,
11766
11766
  error: le
11767
11767
  },
11768
- ce
11768
+ he
11769
11769
  );
11770
11770
  case "email":
11771
11771
  return /* @__PURE__ */ r(
11772
- we,
11772
+ Se,
11773
11773
  {
11774
- ...We,
11774
+ ...Ze,
11775
11775
  type: "email",
11776
11776
  label: Je,
11777
- placeholder: He ? void 0 : xe,
11777
+ placeholder: Ye ? void 0 : we,
11778
11778
  value: H[c] || "",
11779
- onChange: (Ae) => Z(c, Ae.target.value),
11780
- readOnly: Oe,
11779
+ onChange: (Le) => Z(c, Le.target.value),
11780
+ readOnly: be,
11781
11781
  error: le
11782
11782
  },
11783
- ce
11783
+ he
11784
11784
  );
11785
11785
  case "tel":
11786
11786
  return /* @__PURE__ */ r(
11787
- we,
11787
+ Se,
11788
11788
  {
11789
- ...We,
11789
+ ...Ze,
11790
11790
  type: "tel",
11791
11791
  label: Je,
11792
- placeholder: He ? void 0 : xe,
11792
+ placeholder: Ye ? void 0 : we,
11793
11793
  value: H[c] || "",
11794
- onChange: (Ae) => Z(c, Ae.target.value),
11795
- readOnly: Oe,
11794
+ onChange: (Le) => Z(c, Le.target.value),
11795
+ readOnly: be,
11796
11796
  error: le
11797
11797
  },
11798
- ce
11798
+ he
11799
11799
  );
11800
11800
  default:
11801
11801
  return /* @__PURE__ */ r(
11802
- we,
11802
+ Se,
11803
11803
  {
11804
- ...We,
11804
+ ...Ze,
11805
11805
  type: "text",
11806
11806
  label: Je,
11807
- placeholder: He ? void 0 : xe,
11807
+ placeholder: Ye ? void 0 : we,
11808
11808
  value: H[c] || "",
11809
- onChange: (Ae) => Z(c, Ae.target.value),
11810
- readOnly: Oe,
11809
+ onChange: (Le) => Z(c, Le.target.value),
11810
+ readOnly: be,
11811
11811
  error: le
11812
11812
  },
11813
- ce
11813
+ he
11814
11814
  );
11815
11815
  }
11816
11816
  }, f = (c, k) => {
@@ -11879,8 +11879,8 @@ const ka = {
11879
11879
  /* @__PURE__ */ r(
11880
11880
  Ue,
11881
11881
  {
11882
- checked: ye[c.paramName] === "true",
11883
- onChange: (C) => Re(c.paramName, C ? "true" : "false")
11882
+ checked: ge[c.paramName] === "true",
11883
+ onChange: (C) => Ie(c.paramName, C ? "true" : "false")
11884
11884
  }
11885
11885
  ),
11886
11886
  /* @__PURE__ */ o(
@@ -11910,8 +11910,8 @@ const ka = {
11910
11910
  /* @__PURE__ */ r(
11911
11911
  Ue,
11912
11912
  {
11913
- checked: ye[c.paramName] === "true",
11914
- onChange: (C) => Re(c.paramName, C ? "true" : "false")
11913
+ checked: ge[c.paramName] === "true",
11914
+ onChange: (C) => Ie(c.paramName, C ? "true" : "false")
11915
11915
  }
11916
11916
  ),
11917
11917
  /* @__PURE__ */ o(
@@ -11944,7 +11944,7 @@ const ka = {
11944
11944
  h && /* @__PURE__ */ r("p", { className: "text-red-500 text-xs mt-0.5", children: h })
11945
11945
  ] }, `custom-${k}`);
11946
11946
  if (c.customType === "group_checkbox") {
11947
- const C = (ye[c.paramName] || "").split(",").filter(Boolean);
11947
+ const C = (ge[c.paramName] || "").split(",").filter(Boolean);
11948
11948
  return /* @__PURE__ */ o("div", { className: "flex flex-col gap-1.5", children: [
11949
11949
  j && /* @__PURE__ */ o(
11950
11950
  "div",
@@ -11957,8 +11957,8 @@ const ka = {
11957
11957
  ]
11958
11958
  }
11959
11959
  ),
11960
- /* @__PURE__ */ r("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: (c.options || []).map((pe) => {
11961
- const le = c.singleSelect ? ye[c.paramName] === pe.value : C.includes(pe.value);
11960
+ /* @__PURE__ */ r("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: (c.options || []).map((ue) => {
11961
+ const le = c.singleSelect ? ge[c.paramName] === ue.value : C.includes(ue.value);
11962
11962
  return /* @__PURE__ */ o(
11963
11963
  "label",
11964
11964
  {
@@ -11969,12 +11969,12 @@ const ka = {
11969
11969
  Ue,
11970
11970
  {
11971
11971
  checked: le,
11972
- onChange: (xe) => {
11972
+ onChange: (we) => {
11973
11973
  if (c.singleSelect)
11974
- Re(c.paramName, xe ? pe.value : "");
11974
+ Ie(c.paramName, we ? ue.value : "");
11975
11975
  else {
11976
- const Oe = xe ? [...C, pe.value] : C.filter((ce) => ce !== pe.value);
11977
- Re(c.paramName, Oe.join(","));
11976
+ const be = we ? [...C, ue.value] : C.filter((he) => he !== ue.value);
11977
+ Ie(c.paramName, be.join(","));
11978
11978
  }
11979
11979
  }
11980
11980
  }
@@ -11984,12 +11984,12 @@ const ka = {
11984
11984
  {
11985
11985
  className: "metakyc-option-text",
11986
11986
  style: { fontSize: "14px", color: "var(--metakyc-text-primary, #111827)", lineHeight: "1.4" },
11987
- children: pe.label
11987
+ children: ue.label
11988
11988
  }
11989
11989
  )
11990
11990
  ]
11991
11991
  },
11992
- pe.value
11992
+ ue.value
11993
11993
  );
11994
11994
  }) }),
11995
11995
  h && /* @__PURE__ */ r("p", { className: "text-red-500 text-xs", children: h })
@@ -12017,11 +12017,11 @@ const ka = {
12017
12017
  "input",
12018
12018
  {
12019
12019
  type: "radio",
12020
- checked: ye[c.paramName] === C.value,
12021
- onChange: () => Re(c.paramName, C.value),
12020
+ checked: ge[c.paramName] === C.value,
12021
+ onChange: () => Ie(c.paramName, C.value),
12022
12022
  name: `radio-group-${c.paramName}-${k}`,
12023
12023
  className: "metakyc-option-input",
12024
- style: ka
12024
+ style: fa
12025
12025
  }
12026
12026
  ),
12027
12027
  /* @__PURE__ */ r(
@@ -12038,20 +12038,20 @@ const ka = {
12038
12038
  )) }),
12039
12039
  h && /* @__PURE__ */ r("p", { className: "text-red-500 text-xs", children: h })
12040
12040
  ] }, `custom-${k}`) : /* @__PURE__ */ r(
12041
- we,
12041
+ Se,
12042
12042
  {
12043
12043
  type: "text",
12044
12044
  label: j ? `${N}${c.required ? " *" : ""}` : void 0,
12045
12045
  placeholder: j ? void 0 : N,
12046
- value: ye[c.paramName] || "",
12047
- onChange: (C) => Re(c.paramName, C.target.value),
12046
+ value: ge[c.paramName] || "",
12047
+ onChange: (C) => Ie(c.paramName, C.target.value),
12048
12048
  required: c.required,
12049
12049
  error: h
12050
12050
  },
12051
12051
  `custom-${k}`
12052
12052
  );
12053
12053
  }, M = (c, k) => {
12054
- const j = ze(c);
12054
+ const j = Ae(c);
12055
12055
  return /* @__PURE__ */ o("div", { className: "space-y-4", children: [
12056
12056
  c.conditionalOn && /* @__PURE__ */ r(Ht, { helpText: c.conditionalHelpText, children: /* @__PURE__ */ o(
12057
12057
  "label",
@@ -12063,7 +12063,7 @@ const ka = {
12063
12063
  Ue,
12064
12064
  {
12065
12065
  checked: j,
12066
- onChange: (h) => Re(c.conditionalOn, h ? "true" : "false")
12066
+ onChange: (h) => Ie(c.conditionalOn, h ? "true" : "false")
12067
12067
  }
12068
12068
  ),
12069
12069
  /* @__PURE__ */ r(
@@ -12078,8 +12078,8 @@ const ka = {
12078
12078
  }
12079
12079
  ) }),
12080
12080
  j && /* @__PURE__ */ r("div", { style: { display: "grid", gridTemplateColumns: "repeat(4, minmax(0, 1fr))", gap: "1rem" }, children: c.fields.map((h, N) => {
12081
- const C = Math.min(4, Math.max(1, Number(h.colSpan) || 4)), pe = h.isCustom ? `custom-${N}-${h.paramName}` : `builtin-${h.name}-${N}`;
12082
- return /* @__PURE__ */ r("div", { style: { gridColumn: `span ${C} / span ${C}` }, children: /* @__PURE__ */ r(Ht, { helpText: h.helpText, children: h.isCustom ? f(h, N) : Ze(h.name, pe, h.displayText, h.countriesType, h.labelMode) }) }, pe);
12081
+ const C = Math.min(4, Math.max(1, Number(h.colSpan) || 4)), ue = h.isCustom ? `custom-${N}-${h.paramName}` : `builtin-${h.name}-${N}`;
12082
+ return /* @__PURE__ */ r("div", { style: { gridColumn: `span ${C} / span ${C}` }, children: /* @__PURE__ */ r(Ht, { helpText: h.helpText, children: h.isCustom ? f(h, N) : Xe(h.name, ue, h.displayText, h.countriesType, h.labelMode) }) }, ue);
12083
12083
  }) })
12084
12084
  ] });
12085
12085
  };
@@ -12089,9 +12089,9 @@ const ka = {
12089
12089
  /* @__PURE__ */ r("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)", fontSize: "0.875rem" }, children: d("common.loadingForm") })
12090
12090
  ] }) }) });
12091
12091
  if (L) {
12092
- const c = L[ue] ?? L[0], k = Ke === -1, j = Ie === -1, h = L.length, N = ze(c), C = Object.values(A);
12092
+ const c = L[me] ?? L[0], k = We === -1, j = ze === -1, h = L.length, N = Ae(c), C = Object.values(A);
12093
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") }) }),
12094
+ /* @__PURE__ */ r(Ne, { children: /* @__PURE__ */ r(ft, { title: (s == null ? void 0 : s.title) || d("createApplicant.title") }) }),
12095
12095
  /* @__PURE__ */ o(ie, { children: [
12096
12096
  (c.title || c.subtitle || c.description) && /* @__PURE__ */ o("div", { className: "mb-4", children: [
12097
12097
  c.title && /* @__PURE__ */ r(
@@ -12120,35 +12120,35 @@ const ka = {
12120
12120
  )
12121
12121
  ] }),
12122
12122
  h > 1 && /* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem", marginBottom: "1rem" }, children: [
12123
- L.map((pe, le) => /* @__PURE__ */ r(
12123
+ L.map((ue, le) => /* @__PURE__ */ r(
12124
12124
  "div",
12125
12125
  {
12126
12126
  style: {
12127
12127
  height: "0.375rem",
12128
12128
  borderRadius: "9999px",
12129
12129
  transition: "all 150ms",
12130
- ...le === ue ? { flex: "1 1 0%", backgroundColor: "var(--metakyc-primary, #2563eb)", opacity: 0.3 } : le < ue ? { width: "2rem", backgroundColor: "var(--metakyc-primary-light, #93c5fd)", opacity: 0.7 } : { width: "2rem", backgroundColor: "#e5e7eb", opacity: 0.3 }
12130
+ ...le === me ? { flex: "1 1 0%", backgroundColor: "var(--metakyc-primary, #2563eb)", opacity: 0.3 } : le < me ? { width: "2rem", backgroundColor: "var(--metakyc-primary-light, #93c5fd)", opacity: 0.7 } : { width: "2rem", backgroundColor: "#e5e7eb", opacity: 0.3 }
12131
12131
  }
12132
12132
  },
12133
12133
  le
12134
12134
  )),
12135
12135
  /* @__PURE__ */ o("span", { style: { fontSize: "0.75rem", color: "var(--metakyc-text-muted, #9ca3af)", flexShrink: 0 }, children: [
12136
- ue + 1,
12136
+ me + 1,
12137
12137
  " / ",
12138
12138
  h
12139
12139
  ] })
12140
12140
  ] }),
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: [
12141
+ (ke || C.length > 0) && /* @__PURE__ */ o("div", { className: "mb-4 p-3 bg-red-50 border border-red-200 rounded-lg", children: [
12142
+ ke && /* @__PURE__ */ o("p", { className: "text-red-600 text-sm", children: [
12143
12143
  /* @__PURE__ */ r("strong", { children: d("common.errorPrefix") }),
12144
12144
  " ",
12145
- he
12145
+ ke
12146
12146
  ] }),
12147
- C.map((pe, le) => /* @__PURE__ */ r("p", { className: "text-red-600 text-sm", children: pe }, le))
12147
+ C.map((ue, le) => /* @__PURE__ */ r("p", { className: "text-red-600 text-sm", children: ue }, le))
12148
12148
  ] }),
12149
12149
  M(c)
12150
12150
  ] }),
12151
- /* @__PURE__ */ o(Ne, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
12151
+ /* @__PURE__ */ o(Te, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
12152
12152
  /* @__PURE__ */ o("div", { children: [
12153
12153
  !k && /* @__PURE__ */ r(
12154
12154
  G,
@@ -12156,7 +12156,7 @@ const ka = {
12156
12156
  type: "button",
12157
12157
  variant: "outline",
12158
12158
  onClick: () => {
12159
- P(Ke), O({});
12159
+ P(We), O({});
12160
12160
  },
12161
12161
  disabled: D || u,
12162
12162
  children: d("common.previous")
@@ -12169,7 +12169,7 @@ const ka = {
12169
12169
  {
12170
12170
  type: "button",
12171
12171
  isLoading: D || u,
12172
- onClick: j ? Ye : rt,
12172
+ onClick: j ? Ke : rt,
12173
12173
  children: j ? c.conditionalOn && !N ? d("common.skipAndSubmit") : d("common.submit") : c.conditionalOn && !N ? d("common.skip") : d("common.next")
12174
12174
  }
12175
12175
  )
@@ -12177,16 +12177,16 @@ const ka = {
12177
12177
  ] }) });
12178
12178
  }
12179
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") }) }),
12180
+ /* @__PURE__ */ r(Ne, { children: /* @__PURE__ */ r(ft, { title: (s == null ? void 0 : s.title) || d("createApplicant.title") }) }),
12181
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: [
12182
+ ke && /* @__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: [
12183
12183
  /* @__PURE__ */ r("strong", { children: d("common.errorPrefix") }),
12184
12184
  " ",
12185
- he
12185
+ ke
12186
12186
  ] }) }),
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)) })
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: Xe(c) }, c)) })
12188
12188
  ] }),
12189
- /* @__PURE__ */ o(Ne, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
12189
+ /* @__PURE__ */ o(Te, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
12190
12190
  a && /* @__PURE__ */ r(G, { type: "button", variant: "outline", onClick: a, disabled: D || u, children: "Cancel" }),
12191
12191
  /* @__PURE__ */ r(G, { type: "submit", isLoading: D || u, children: d("createApplicant.createApplicant") })
12192
12192
  ] })
@@ -12195,22 +12195,22 @@ const ka = {
12195
12195
  function Nt(e) {
12196
12196
  return e == null || e === "" || Array.isArray(e) && e.length === 0;
12197
12197
  }
12198
- const Oa = ({
12198
+ const Fa = ({
12199
12199
  workflowKey: e,
12200
12200
  externalRefId: t,
12201
12201
  onSuccess: i,
12202
12202
  onCancel: a
12203
12203
  }) => {
12204
- var Ze, f, M, $, Y, ee;
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);
12204
+ var Xe, f, M, $, Y, ee;
12205
+ const { config: n, baseInformationService: l, currentTheme: s } = Oe(), { createCompanyApplicant: p, isLoading: u } = tr(), { t: d } = Re(), y = e || ((Xe = n.applicantForm) == null ? void 0 : Xe.workflowKey);
12206
12206
  if (!y)
12207
12207
  throw new Error(
12208
12208
  "workflowKey is required. Provide it either as a prop to CreateCompanyApplicantForm or set it in config.applicantForm.workflowKey"
12209
12209
  );
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(
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 = Fe(
12211
12211
  () => s != null && s.companyFormPages && s.companyFormPages.length > 0 ? s.companyFormPages : null,
12212
12212
  [s == null ? void 0 : s.companyFormPages]
12213
- ), L = Me(() => {
12213
+ ), L = Fe(() => {
12214
12214
  const g = new Set($t), z = s == null ? void 0 : s.companyFormRequiredFields;
12215
12215
  if (z) for (const E of z) g.add(E);
12216
12216
  if (S)
@@ -12218,15 +12218,15 @@ const Oa = ({
12218
12218
  for (const m of E.fields)
12219
12219
  !m.isCustom && m.name && m.required && g.add(m.name);
12220
12220
  return Array.from(g);
12221
- }, [s == null ? void 0 : s.companyFormRequiredFields, S]), B = Me(() => {
12221
+ }, [s == null ? void 0 : s.companyFormRequiredFields, S]), B = Fe(() => {
12222
12222
  var g;
12223
12223
  if (S) {
12224
12224
  const z = S.flatMap((m) => m.fields).filter((m) => !m.isCustom && m.name).map((m) => m.name), E = new Set(z);
12225
12225
  for (const m of $t) E.add(m);
12226
12226
  return Array.from(E);
12227
12227
  }
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(() => {
12228
+ return (g = n.applicantForm) != null && g.visibleFields ? n.applicantForm.visibleFields : s != null && s.companyFormVisibleFields && s.companyFormVisibleFields.length > 0 ? s.companyFormVisibleFields : Sr;
12229
+ }, [(ee = n.applicantForm) == null ? void 0 : ee.visibleFields, s == null ? void 0 : s.companyFormVisibleFields, S]), F = /* @__PURE__ */ new Set(["countryResidence", "addressCountry"]), U = Fe(() => {
12230
12230
  var z, E;
12231
12231
  const g = /* @__PURE__ */ new Set();
12232
12232
  if (S)
@@ -12237,8 +12237,8 @@ const Oa = ({
12237
12237
  for (const m of B)
12238
12238
  F.has(m) && g.add((E = dt[m]) == null ? void 0 : E.countriesType);
12239
12239
  return g.size === 0 && g.add(void 0), Array.from(g);
12240
- }, [B, S]), [K, J] = b({}), [ae, w] = b(!0), R = me(/* @__PURE__ */ new Set()), V = me(/* @__PURE__ */ new Set());
12241
- ke(() => {
12240
+ }, [B, S]), [K, J] = b({}), [ae, w] = b(!0), R = de(/* @__PURE__ */ new Set()), V = de(/* @__PURE__ */ new Set());
12241
+ fe(() => {
12242
12242
  if (!s) return;
12243
12243
  const g = U.filter((m) => {
12244
12244
  const c = m != null ? String(m) : "all";
@@ -12315,7 +12315,7 @@ const Oa = ({
12315
12315
  lei: "",
12316
12316
  externalRefId: v,
12317
12317
  ...W
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) => {
12318
+ }), [H, Me] = b({}), [pe, ge] = b(0), [xe, me] = b({}), [P, A] = b(null), [O, ke] = b(!1), se = (g, z) => oe((E) => ({ ...E, [g]: z })), D = (g, z) => Me((E) => ({ ...E, [g]: z })), ne = (g) => !g.conditionalOn || H[g.conditionalOn] === "true", Z = S && pe < S.length - 1 ? pe + 1 : -1, Ie = S && pe > 0 ? pe - 1 : -1, Ae = (g) => {
12319
12319
  var E;
12320
12320
  const z = {};
12321
12321
  for (const m of g.fields)
@@ -12333,31 +12333,31 @@ const Oa = ({
12333
12333
  }
12334
12334
  }
12335
12335
  return z;
12336
- }, Ie = async () => {
12336
+ }, ze = async () => {
12337
12337
  if (!S) return;
12338
- const g = S[ge];
12338
+ const g = S[pe];
12339
12339
  if (g.conditionalOn && !ne(g)) {
12340
- ue({}), Z >= 0 ? ye(Z) : await Ke();
12340
+ me({}), Z >= 0 ? ge(Z) : await We();
12341
12341
  return;
12342
12342
  }
12343
- const z = ze(g);
12343
+ const z = Ae(g);
12344
12344
  if (Object.keys(z).length > 0) {
12345
- ue(z);
12345
+ me(z);
12346
12346
  return;
12347
12347
  }
12348
- ue({}), Z >= 0 ? ye(Z) : await Ke();
12349
- }, Ke = async () => {
12348
+ me({}), Z >= 0 ? ge(Z) : await We();
12349
+ }, We = async () => {
12350
12350
  var g;
12351
12351
  if (S) {
12352
12352
  let z = {};
12353
12353
  for (const E of S)
12354
- ne(E) && (z = { ...z, ...ze(E) });
12354
+ ne(E) && (z = { ...z, ...Ae(E) });
12355
12355
  if (Object.keys(z).length > 0) {
12356
- ue(z);
12356
+ me(z);
12357
12357
  return;
12358
12358
  }
12359
12359
  }
12360
- he(!0), A(null);
12360
+ ke(!0), A(null);
12361
12361
  try {
12362
12362
  const z = {
12363
12363
  workflowKey: _.workflowKey,
@@ -12416,7 +12416,7 @@ const Oa = ({
12416
12416
  } catch (z) {
12417
12417
  console.error("Error creating company applicant:", z), A(z.message || d("createCompany.failedToCreate"));
12418
12418
  } finally {
12419
- he(!1);
12419
+ ke(!1);
12420
12420
  }
12421
12421
  }, lt = async (g) => {
12422
12422
  var z;
@@ -12427,93 +12427,93 @@ const Oa = ({
12427
12427
  A(d("validation.fieldRequired", { field: m }));
12428
12428
  return;
12429
12429
  }
12430
- await Ke();
12430
+ await We();
12431
12431
  }, rt = (g, z, E, m, c) => {
12432
12432
  const k = dt[g];
12433
12433
  if (!k) return null;
12434
- const j = L.includes(g), h = be[g], N = ve(E, d) || k.label, C = g in W, pe = z ?? g, le = c ? c !== "placeholder" : q, xe = le ? N : void 0, Oe = le ? "..." : N;
12434
+ const j = L.includes(g), h = xe[g], N = ve(E, d) || k.label, C = g in W, ue = z ?? g, le = c ? c !== "placeholder" : q, we = le ? N : void 0;
12435
12435
  switch (k.type) {
12436
12436
  case "select":
12437
12437
  if (g === "countryResidence" || g === "addressCountry") {
12438
- const ce = Q(g, m);
12438
+ const be = Q(g, m);
12439
12439
  return /* @__PURE__ */ r(
12440
- Qe,
12440
+ Ge,
12441
12441
  {
12442
12442
  required: j,
12443
- label: xe,
12443
+ label: we,
12444
12444
  value: _[g] || "",
12445
- onChange: (We) => se(g, We),
12446
- options: [{ value: "", label: `Select ${Oe.toLowerCase()}` }, ...ce],
12445
+ onChange: (he) => se(g, he),
12446
+ options: [{ value: "", label: le ? d("placeholders.selectCountry") : N }, ...be],
12447
12447
  disabled: ae,
12448
12448
  readOnly: C,
12449
12449
  error: h
12450
12450
  },
12451
- pe
12451
+ ue
12452
12452
  );
12453
12453
  }
12454
12454
  return null;
12455
12455
  case "date":
12456
12456
  return /* @__PURE__ */ r(
12457
- we,
12457
+ Se,
12458
12458
  {
12459
12459
  required: j,
12460
12460
  type: "date",
12461
- label: xe,
12461
+ label: we,
12462
12462
  placeholder: le ? void 0 : N,
12463
12463
  value: _[g] || "",
12464
- onChange: (ce) => se(g, ce.target.value),
12464
+ onChange: (be) => se(g, be.target.value),
12465
12465
  readOnly: C,
12466
12466
  error: h
12467
12467
  },
12468
- pe
12468
+ ue
12469
12469
  );
12470
12470
  case "email":
12471
12471
  return /* @__PURE__ */ r(
12472
- we,
12472
+ Se,
12473
12473
  {
12474
12474
  required: j,
12475
12475
  type: "email",
12476
- label: xe,
12476
+ label: we,
12477
12477
  placeholder: le ? void 0 : N,
12478
12478
  value: _[g] || "",
12479
- onChange: (ce) => se(g, ce.target.value),
12479
+ onChange: (be) => se(g, be.target.value),
12480
12480
  readOnly: C,
12481
12481
  error: h
12482
12482
  },
12483
- pe
12483
+ ue
12484
12484
  );
12485
12485
  case "tel":
12486
12486
  return /* @__PURE__ */ r(
12487
- we,
12487
+ Se,
12488
12488
  {
12489
12489
  required: j,
12490
12490
  type: "tel",
12491
- label: xe,
12491
+ label: we,
12492
12492
  placeholder: le ? void 0 : N,
12493
12493
  value: _[g] || "",
12494
- onChange: (ce) => se(g, ce.target.value),
12494
+ onChange: (be) => se(g, be.target.value),
12495
12495
  readOnly: C,
12496
12496
  error: h
12497
12497
  },
12498
- pe
12498
+ ue
12499
12499
  );
12500
12500
  default:
12501
12501
  return /* @__PURE__ */ r(
12502
- we,
12502
+ Se,
12503
12503
  {
12504
12504
  required: j,
12505
12505
  type: "text",
12506
- label: xe,
12506
+ label: we,
12507
12507
  placeholder: le ? void 0 : N,
12508
12508
  value: _[g] || "",
12509
- onChange: (ce) => se(g, ce.target.value),
12509
+ onChange: (be) => se(g, be.target.value),
12510
12510
  readOnly: C,
12511
12511
  error: h
12512
12512
  },
12513
- pe
12513
+ ue
12514
12514
  );
12515
12515
  }
12516
- }, Ye = (g, z) => {
12516
+ }, Ke = (g, z) => {
12517
12517
  if (g.customType === "paragraph")
12518
12518
  return /* @__PURE__ */ r(
12519
12519
  "p",
@@ -12539,7 +12539,7 @@ const Oa = ({
12539
12539
  }
12540
12540
  ) }, `custom-${z}`);
12541
12541
  if (!g.paramName) return null;
12542
- const E = be[g.paramName], m = ve(g.displayText, d) || ve(g.label, d) || g.paramName, c = g.labelMode ? g.labelMode !== "placeholder" : q;
12542
+ const E = xe[g.paramName], m = ve(g.displayText, d) || ve(g.label, d) || g.paramName, c = g.labelMode ? g.labelMode !== "placeholder" : q;
12543
12543
  return g.customType === "checkbox" ? /* @__PURE__ */ o("div", { className: "flex flex-col gap-1", children: [
12544
12544
  /* @__PURE__ */ o("label", { style: { display: "flex", alignItems: "center", gap: "10px", cursor: "pointer" }, children: [
12545
12545
  /* @__PURE__ */ r(
@@ -12556,7 +12556,7 @@ const Oa = ({
12556
12556
  ] }),
12557
12557
  E && /* @__PURE__ */ r("p", { className: "text-red-500 text-xs mt-0.5", children: E })
12558
12558
  ] }, `custom-${z}`) : /* @__PURE__ */ r(
12559
- we,
12559
+ Se,
12560
12560
  {
12561
12561
  type: "text",
12562
12562
  label: c ? `${m}${g.required ? " *" : ""}` : void 0,
@@ -12583,7 +12583,7 @@ const Oa = ({
12583
12583
  ] }),
12584
12584
  z && /* @__PURE__ */ r("div", { style: { display: "grid", gridTemplateColumns: "repeat(4, minmax(0, 1fr))", gap: "1rem" }, children: g.fields.map((E, m) => {
12585
12585
  const c = Math.min(4, Math.max(1, Number(E.colSpan) || 4)), k = E.isCustom ? `custom-${m}-${E.paramName}` : `builtin-${E.name}-${m}`;
12586
- return /* @__PURE__ */ r("div", { style: { gridColumn: `span ${c} / span ${c}` }, children: E.isCustom ? Ye(E, m) : rt(E.name, k, E.displayText, E.countriesType, E.labelMode) }, k);
12586
+ return /* @__PURE__ */ r("div", { style: { gridColumn: `span ${c} / span ${c}` }, children: E.isCustom ? Ke(E, m) : rt(E.name, k, E.displayText, E.countriesType, E.labelMode) }, k);
12587
12587
  }) })
12588
12588
  ] });
12589
12589
  };
@@ -12593,9 +12593,9 @@ const Oa = ({
12593
12593
  /* @__PURE__ */ r("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)", fontSize: "0.875rem" }, children: d("common.loadingForm") })
12594
12594
  ] }) }) });
12595
12595
  if (S) {
12596
- const g = S[ge] ?? S[0], z = Re === -1, E = Z === -1, m = S.length, c = ne(g), k = Object.values(be);
12596
+ const g = S[pe] ?? S[0], z = Ie === -1, E = Z === -1, m = S.length, c = ne(g), k = Object.values(xe);
12597
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") }) }),
12598
+ /* @__PURE__ */ r(Ne, { children: /* @__PURE__ */ r(ft, { title: (s == null ? void 0 : s.title) || d("createCompany.title") }) }),
12599
12599
  /* @__PURE__ */ o(ie, { children: [
12600
12600
  (g.title || g.subtitle) && /* @__PURE__ */ o("div", { className: "mb-4", children: [
12601
12601
  g.title && /* @__PURE__ */ r("h3", { className: "font-semibold text-base", style: { color: "var(--metakyc-text-primary, #111827)" }, children: g.title }),
@@ -12617,20 +12617,20 @@ const Oa = ({
12617
12617
  height: "0.375rem",
12618
12618
  borderRadius: "9999px",
12619
12619
  transition: "all 150ms",
12620
- ...h === ge ? { flex: "1 1 0%", backgroundColor: "var(--metakyc-primary, #2563eb)", opacity: 0.3 } : h < ge ? { width: "2rem", backgroundColor: "var(--metakyc-primary-light, #93c5fd)", opacity: 0.7 } : { width: "2rem", backgroundColor: "#e5e7eb", opacity: 0.3 }
12620
+ ...h === pe ? { flex: "1 1 0%", backgroundColor: "var(--metakyc-primary, #2563eb)", opacity: 0.3 } : h < pe ? { width: "2rem", backgroundColor: "var(--metakyc-primary-light, #93c5fd)", opacity: 0.7 } : { width: "2rem", backgroundColor: "#e5e7eb", opacity: 0.3 }
12621
12621
  }
12622
12622
  },
12623
12623
  h
12624
12624
  )),
12625
12625
  /* @__PURE__ */ o("span", { style: { fontSize: "0.75rem", color: "var(--metakyc-text-muted, #9ca3af)", flexShrink: 0 }, children: [
12626
- ge + 1,
12626
+ pe + 1,
12627
12627
  " / ",
12628
12628
  m
12629
12629
  ] })
12630
12630
  ] }),
12631
12631
  ct(g)
12632
12632
  ] }),
12633
- /* @__PURE__ */ o(Ne, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
12633
+ /* @__PURE__ */ o(Te, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
12634
12634
  /* @__PURE__ */ o("div", { children: [
12635
12635
  !z && /* @__PURE__ */ r(
12636
12636
  G,
@@ -12638,7 +12638,7 @@ const Oa = ({
12638
12638
  type: "button",
12639
12639
  variant: "outline",
12640
12640
  onClick: () => {
12641
- ye(Re), ue({});
12641
+ ge(Ie), me({});
12642
12642
  },
12643
12643
  disabled: O || u,
12644
12644
  children: d("common.previous")
@@ -12646,12 +12646,12 @@ const Oa = ({
12646
12646
  ),
12647
12647
  z && a && /* @__PURE__ */ r(G, { type: "button", variant: "outline", onClick: a, disabled: O || u, children: "Cancel" })
12648
12648
  ] }),
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") })
12649
+ /* @__PURE__ */ r(G, { type: "button", isLoading: O || u, onClick: E ? We : ze, children: E ? g.conditionalOn && !c ? d("common.skipAndSubmit") : d("common.submit") : g.conditionalOn && !c ? d("common.skip") : d("common.next") })
12650
12650
  ] })
12651
12651
  ] }) });
12652
12652
  }
12653
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") }) }),
12654
+ /* @__PURE__ */ r(Ne, { children: /* @__PURE__ */ r(ft, { title: (s == null ? void 0 : s.title) || d("createCompany.title") }) }),
12655
12655
  /* @__PURE__ */ o(ie, { children: [
12656
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: [
12657
12657
  /* @__PURE__ */ r("strong", { children: d("common.errorPrefix") }),
@@ -12660,18 +12660,18 @@ const Oa = ({
12660
12660
  ] }) }),
12661
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)) })
12662
12662
  ] }),
12663
- /* @__PURE__ */ o(Ne, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
12663
+ /* @__PURE__ */ o(Te, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
12664
12664
  a && /* @__PURE__ */ r(G, { type: "button", variant: "outline", onClick: a, disabled: O || u, children: "Cancel" }),
12665
12665
  /* @__PURE__ */ r(G, { type: "submit", isLoading: O || u, children: d("createCompany.registerCompany") })
12666
12666
  ] })
12667
12667
  ] }) }) });
12668
- }, Va = ({
12668
+ }, Oa = ({
12669
12669
  applicantId: e,
12670
12670
  onComplete: t,
12671
12671
  onError: i,
12672
12672
  className: a
12673
12673
  }) => {
12674
- const { t: n } = Te(), {
12674
+ const { t: n } = Re(), {
12675
12675
  progress: l,
12676
12676
  currentStep: s,
12677
12677
  steps: p,
@@ -12682,12 +12682,12 @@ const Oa = ({
12682
12682
  error: T,
12683
12683
  moveBack: I,
12684
12684
  refreshProgress: x
12685
- } = Ai(e), [q, S] = Se.useState(!1), L = Se.useRef(null);
12686
- if (Se.useEffect(() => {
12685
+ } = zi(e), [q, S] = Ce.useState(!1), L = Ce.useRef(null);
12686
+ if (Ce.useEffect(() => {
12687
12687
  T && i && i(T);
12688
- }, [T, i]), Se.useEffect(() => {
12688
+ }, [T, i]), Ce.useEffect(() => {
12689
12689
  l != null && l.workflowResult && t && t(l.workflowResult);
12690
- }, [l == null ? void 0 : l.workflowResult, t]), Se.useEffect(() => {
12690
+ }, [l == null ? void 0 : l.workflowResult, t]), Ce.useEffect(() => {
12691
12691
  y && S(!1);
12692
12692
  }, [y]), v || !l)
12693
12693
  return /* @__PURE__ */ r("div", { className: `metakyc-sdk ${a || ""}`, children: /* @__PURE__ */ r(re, { children: /* @__PURE__ */ o(ie, { children: [
@@ -12749,23 +12749,23 @@ const Oa = ({
12749
12749
  ] }) }) });
12750
12750
  const B = (K) => {
12751
12751
  switch (K) {
12752
- case de.Overview:
12752
+ case ce.Overview:
12753
12753
  return n("stepNames.overview");
12754
- case de.Questionaries:
12754
+ case ce.Questionaries:
12755
12755
  return n("stepNames.questionnaire");
12756
- case de.UploadDocument:
12756
+ case ce.UploadDocument:
12757
12757
  return n("stepNames.documents");
12758
- case de.IdentitySdk:
12758
+ case ce.IdentitySdk:
12759
12759
  return n("stepNames.identity");
12760
- case de.RiskScoring:
12760
+ case ce.RiskScoring:
12761
12761
  return n("stepNames.riskAssessment");
12762
- case de.InvestorCategorization:
12762
+ case ce.InvestorCategorization:
12763
12763
  return n("stepNames.investorCategorization");
12764
- case de.AppropriatenessTest:
12764
+ case ce.AppropriatenessTest:
12765
12765
  return n("stepNames.appropriatenessTest");
12766
- case de.AdditionalData:
12766
+ case ce.AdditionalData:
12767
12767
  return n("stepNames.additionalData");
12768
- case de.ManualReview:
12768
+ case ce.ManualReview:
12769
12769
  return n("stepNames.review");
12770
12770
  default:
12771
12771
  return "";
@@ -12798,7 +12798,7 @@ const Oa = ({
12798
12798
  } })
12799
12799
  ] }),
12800
12800
  /* @__PURE__ */ r(
12801
- ha,
12801
+ ka,
12802
12802
  {
12803
12803
  ref: L,
12804
12804
  visibleSteps: K,
@@ -12816,22 +12816,22 @@ const Oa = ({
12816
12816
  onBack: s.order > 0 ? I : void 0
12817
12817
  };
12818
12818
  switch (s.action) {
12819
- case de.Questionaries:
12820
- return /* @__PURE__ */ r(Zi, { ...K });
12821
- case de.UploadDocument:
12819
+ case ce.Questionaries:
12820
+ return /* @__PURE__ */ r(Xi, { ...K });
12821
+ case ce.UploadDocument:
12822
+ return /* @__PURE__ */ r(ea, { ...K });
12823
+ case ce.Overview:
12822
12824
  return /* @__PURE__ */ r(ta, { ...K });
12823
- case de.Overview:
12824
- return /* @__PURE__ */ r(ra, { ...K });
12825
- case de.IdentitySdk:
12826
- return /* @__PURE__ */ r(ya, { ...K });
12827
- case de.RiskScoring:
12828
- return /* @__PURE__ */ r(ca, { ...K });
12829
- case de.AdditionalData:
12830
- case de.InvestorCategorization:
12825
+ case ce.IdentitySdk:
12826
+ return /* @__PURE__ */ r(ga, { ...K });
12827
+ case ce.RiskScoring:
12828
+ return /* @__PURE__ */ r(la, { ...K });
12829
+ case ce.AdditionalData:
12830
+ case ce.InvestorCategorization:
12831
+ return /* @__PURE__ */ r(da, { ...K });
12832
+ case ce.AppropriatenessTest:
12831
12833
  return /* @__PURE__ */ r(ma, { ...K });
12832
- case de.AppropriatenessTest:
12833
- return /* @__PURE__ */ r(ua, { ...K });
12834
- case de.ManualReview:
12834
+ case ce.ManualReview:
12835
12835
  return /* @__PURE__ */ r(
12836
12836
  Yt,
12837
12837
  {
@@ -12852,7 +12852,7 @@ const Oa = ({
12852
12852
  /* @__PURE__ */ o("p", { className: "text-sm text-gray-500 dark:text-gray-400", children: [
12853
12853
  n("workflow.actionType"),
12854
12854
  " ",
12855
- de[s.action]
12855
+ ce[s.action]
12856
12856
  ] })
12857
12857
  ] }) });
12858
12858
  }
@@ -12861,10 +12861,10 @@ const Oa = ({
12861
12861
  F(),
12862
12862
  U()
12863
12863
  ] });
12864
- }, ha = Se.forwardRef(
12864
+ }, ka = Ce.forwardRef(
12865
12865
  ({ visibleSteps: e, currentVisibleStepIndex: t, getStepFallbackName: i }, a) => {
12866
- const n = Se.useRef(null), l = Se.useRef(null);
12867
- return Se.useImperativeHandle(a, () => n.current), Se.useEffect(() => {
12866
+ const n = Ce.useRef(null), l = Ce.useRef(null);
12867
+ return Ce.useImperativeHandle(a, () => n.current), Ce.useEffect(() => {
12868
12868
  if (l.current && n.current) {
12869
12869
  const s = n.current, p = l.current, u = p.offsetLeft - s.offsetWidth / 2 + p.offsetWidth / 2;
12870
12870
  s.scrollTo({ left: Math.max(0, u), behavior: "smooth" });
@@ -12888,7 +12888,7 @@ const Oa = ({
12888
12888
  },
12889
12889
  children: e.map((s, p) => {
12890
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: [
12891
+ return /* @__PURE__ */ o(Ce.Fragment, { children: [
12892
12892
  /* @__PURE__ */ o(
12893
12893
  "div",
12894
12894
  {
@@ -12947,13 +12947,13 @@ const Oa = ({
12947
12947
  );
12948
12948
  }
12949
12949
  );
12950
- function Ba(e) {
12951
- return Xe.object({
12952
- questionResults: Xe.any()
12950
+ function Va(e) {
12951
+ return Qe.object({
12952
+ questionResults: Qe.any()
12953
12953
  }).passthrough();
12954
12954
  }
12955
- function va(e) {
12956
- let t = Xe.array(Xe.instanceof(File));
12955
+ function ha(e) {
12956
+ let t = Qe.array(Qe.instanceof(File));
12957
12957
  if (e.isRequired ? t = t.min(
12958
12958
  1,
12959
12959
  `${e.displayName} is required`
@@ -12974,150 +12974,150 @@ function va(e) {
12974
12974
  }
12975
12975
  return t;
12976
12976
  }
12977
- function qa(e) {
12977
+ function Ba(e) {
12978
12978
  const t = {};
12979
12979
  return e.uploadDocumentFiles.forEach((i) => {
12980
12980
  const a = `file_${i.id}`;
12981
- t[a] = va(i);
12982
- }), Xe.object(t);
12981
+ t[a] = ha(i);
12982
+ }), Qe.object(t);
12983
12983
  }
12984
- function Ua(e) {
12985
- return Xe.any();
12984
+ function qa(e) {
12985
+ return Qe.any();
12986
12986
  }
12987
- function ba(e) {
12988
- return Xe.string().min(1, "This question is required");
12987
+ function va(e) {
12988
+ return Qe.string().min(1, "This question is required");
12989
12989
  }
12990
- function Wa(e) {
12990
+ function Ua(e) {
12991
12991
  const t = {};
12992
12992
  return e.appropriatenessQuestions.forEach((i) => {
12993
12993
  const a = `question_${i.id}`;
12994
- t[a] = ba();
12995
- }), Xe.object(t);
12994
+ t[a] = va();
12995
+ }), Qe.object(t);
12996
12996
  }
12997
- const Ka = Xe.any();
12997
+ const Wa = Qe.any();
12998
12998
  export {
12999
12999
  Pt as ALLOWED_LANGUAGES,
13000
- pr as ApplicantProgressOnHoldReason,
13000
+ ur as ApplicantProgressOnHoldReason,
13001
13001
  qe as ApplicantProgressStatus,
13002
- zr as ApplicantService,
13003
- yr as ApplicantStatus,
13004
- br as AppropriatenessQuestionType,
13005
- Er as AppropriatenessTestService,
13006
- ua as AppropriatenessTestStep,
13002
+ Ir as ApplicantService,
13003
+ gr as ApplicantStatus,
13004
+ vr as AppropriatenessQuestionType,
13005
+ Lr as AppropriatenessTestService,
13006
+ ma as AppropriatenessTestStep,
13007
13007
  rr as Badge,
13008
- Mr as BaseInformationService,
13008
+ jr as BaseInformationService,
13009
13009
  G as Button,
13010
13010
  dt as COMPANY_FIELD_METADATA,
13011
13011
  re as Card,
13012
13012
  ie as CardContent,
13013
- Ne as CardFooter,
13014
- Ce as CardHeader,
13013
+ Te as CardFooter,
13014
+ Ne as CardHeader,
13015
13015
  Ue as Checkbox,
13016
13016
  tt as CountriesType,
13017
- Fa as CreateApplicantForm,
13018
- Oa as CreateCompanyApplicantForm,
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,
13017
+ Ma as CreateApplicantForm,
13018
+ Fa as CreateCompanyApplicantForm,
13019
+ xr as CriteriaBuiltInType,
13020
+ Sr as DEFAULT_COMPANY_VISIBLE_FIELDS,
13021
+ Cr as DEFAULT_VISIBLE_FIELDS,
13022
+ hr as DocumentReviewStatus,
13023
+ Tr as EndpointBuilder,
13024
13024
  gt as ErrorHandler,
13025
- Hr as EventEmitter,
13025
+ Yr as EventEmitter,
13026
13026
  st as FIELD_METADATA,
13027
- hr as FileType,
13028
- qi as FileUpload,
13027
+ kr as FileType,
13028
+ Bi as FileUpload,
13029
13029
  xt as GenderType,
13030
13030
  ft as Header,
13031
- Ir as HttpClient,
13031
+ Rr as HttpClient,
13032
13032
  et as IdentityProviderManager,
13033
- jr as IdentityService,
13033
+ Dr as IdentityService,
13034
13034
  Be as IdentityVerificationProvider,
13035
- ya as IdentityVerificationStep,
13036
- we as Input,
13037
- Fr as InvestorCategorizationService,
13038
- ma as InvestorCategorizationStep,
13039
- Le as InvestorCategorizationType,
13040
- Sr as InvestorCategoryType,
13041
- fr as KycProcessStatus,
13035
+ ga as IdentityVerificationStep,
13036
+ Se as Input,
13037
+ Mr as InvestorCategorizationService,
13038
+ da as InvestorCategorizationStep,
13039
+ Ee as InvestorCategorizationType,
13040
+ wr as InvestorCategoryType,
13041
+ yr as KycProcessStatus,
13042
13042
  nt as KycStatus,
13043
13043
  Yt as KycStatusDisplay,
13044
- Va as KycWorkflow,
13045
- fa as Logo,
13044
+ Oa as KycWorkflow,
13045
+ ya as Logo,
13046
13046
  er as MetaKYCContext,
13047
- _e as MetaKYCError,
13048
- Aa as MetaKYCProvider,
13049
- Vi as MultiSelect,
13050
- Jr as OnfidoProvider,
13051
- Pr as OverviewService,
13052
- ra as OverviewStep,
13053
- Ui as PhoneInput,
13054
- Ar as QuestionnaireService,
13055
- Zi as QuestionnaireStep,
13047
+ $e as MetaKYCError,
13048
+ za as MetaKYCProvider,
13049
+ Oi as MultiSelect,
13050
+ Zr as OnfidoProvider,
13051
+ Er as OverviewService,
13052
+ ta as OverviewStep,
13053
+ qi as PhoneInput,
13054
+ zr as QuestionnaireService,
13055
+ Xi as QuestionnaireStep,
13056
13056
  ot as ReviewStatus,
13057
- xr as RiskCriteriaType,
13058
- gr as RiskLevel,
13059
- Dr as RiskScoringService,
13060
- ca as RiskScoringStep,
13057
+ br as RiskCriteriaType,
13058
+ pr as RiskLevel,
13059
+ Pr as RiskScoringService,
13060
+ la as RiskScoringStep,
13061
13061
  Zt as SDK_VERSION,
13062
- ei as SardinAIProvider,
13063
- Qe as SearchableSelect,
13062
+ Jr as SardinAIProvider,
13063
+ Ge as SearchableSelect,
13064
13064
  At as Select,
13065
13065
  Ve as Spinner,
13066
- _r as StepRouter,
13067
- Zr as SumsubProvider,
13068
- ti as ThemeManager,
13069
- Pe as ThemePreset,
13070
- Kr as ThemeService,
13071
- xi as TranslationProvider,
13072
- Yr as TranslationService,
13073
- Lr as UploadDocumentService,
13074
- ta as UploadDocumentStep,
13075
- kr as UserType,
13076
- Ge as ValueDataType,
13077
- Gr as WorkflowOrchestrator,
13066
+ $r as StepRouter,
13067
+ Xr as SumsubProvider,
13068
+ ei as ThemeManager,
13069
+ De as ThemePreset,
13070
+ Wr as ThemeService,
13071
+ bi as TranslationProvider,
13072
+ Kr as TranslationService,
13073
+ Ar as UploadDocumentService,
13074
+ ea as UploadDocumentStep,
13075
+ fr as UserType,
13076
+ _e as ValueDataType,
13077
+ _r as WorkflowOrchestrator,
13078
13078
  bt as WorkflowResultType,
13079
- $r as WorkflowState,
13080
- de as WorkflowStepAction,
13081
- Ka as appropriatenessTestSchema,
13082
- ja as clearAllStorage,
13083
- Ri as clearApplicantId,
13084
- zi as clearWorkflowState,
13085
- De as cn,
13086
- Or as corporateTheme,
13087
- Tr as defaultConfig,
13088
- Ee as defaultTheme,
13089
- Ci as fileToBase64,
13090
- Vr as fintechTheme,
13079
+ Hr as WorkflowState,
13080
+ ce as WorkflowStepAction,
13081
+ Wa as appropriatenessTestSchema,
13082
+ Da as clearAllStorage,
13083
+ Ti as clearApplicantId,
13084
+ Ii as clearWorkflowState,
13085
+ je as cn,
13086
+ Fr as corporateTheme,
13087
+ Nr as defaultConfig,
13088
+ Pe as defaultTheme,
13089
+ Si as fileToBase64,
13090
+ Or as fintechTheme,
13091
13091
  St as formatFileSize,
13092
- Wa as generateAppropriatenessSchema,
13093
- Ba as generateQuestionnaireSchema,
13094
- Ua as generateRiskScoringSchema,
13095
- qa as generateUploadDocumentSchema,
13096
- Pa as getAcceptString,
13097
- Ti as getApplicantId,
13092
+ Ua as generateAppropriatenessSchema,
13093
+ Va as generateQuestionnaireSchema,
13094
+ qa as generateRiskScoringSchema,
13095
+ Ba as generateUploadDocumentSchema,
13096
+ Ea as getAcceptString,
13097
+ Ni as getApplicantId,
13098
13098
  yt as getThemePreset,
13099
- Da as getWorkflowState,
13100
- Br as healthcareTheme,
13101
- Ia as isScriptLoaded,
13099
+ Pa as getWorkflowState,
13100
+ Vr as healthcareTheme,
13101
+ Ra as isScriptLoaded,
13102
13102
  Qt as loadScript,
13103
- Ur as minimalTheme,
13104
- qr as modernTheme,
13105
- za as removeScript,
13103
+ qr as minimalTheme,
13104
+ Br as modernTheme,
13105
+ Ia as removeScript,
13106
13106
  ve as resolveDisplayText,
13107
- Ni as saveApplicantId,
13108
- Ii as saveWorkflowState,
13109
- Wr as themePresets,
13107
+ Ci as saveApplicantId,
13108
+ Ri as saveWorkflowState,
13109
+ Ur as themePresets,
13110
13110
  tr as useApplicant,
13111
- Ma as useAppropriatenessTest,
13112
- Di as useIdentityVerification,
13113
- Ai as useKycWorkflow,
13114
- Fe as useMetaKYC,
13115
- Pi as useOverview,
13116
- Li as useQuestionnaire,
13117
- ji as useRiskScoring,
13118
- Te as useTranslation,
13119
- Ei as useUploadDocument,
13120
- La as validateFileSize,
13121
- Ea as validateFileType
13111
+ ja as useAppropriatenessTest,
13112
+ Pi as useIdentityVerification,
13113
+ zi as useKycWorkflow,
13114
+ Oe as useMetaKYC,
13115
+ Ei as useOverview,
13116
+ Ai as useQuestionnaire,
13117
+ Di as useRiskScoring,
13118
+ Re as useTranslation,
13119
+ Li as useUploadDocument,
13120
+ Aa as validateFileSize,
13121
+ La as validateFileType
13122
13122
  };
13123
13123
  //# sourceMappingURL=index.js.map