@vpdev2/metakyc 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3,19 +3,19 @@ var Kt = (e, t, n) => t in e ? Ut(e, t, { enumerable: !0, configurable: !0, writ
3
3
  var he = (e, t, n) => Kt(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import qt from "axios";
5
5
  import * as It from "react";
6
- import we, { createContext as Vt, useState as k, useMemo as De, useEffect as ge, useContext as Yt, useRef as de, useCallback as ae, forwardRef as yt, createElement as wt } from "react";
7
- import { jsxs as o, jsx as r, Fragment as lt } from "react/jsx-runtime";
6
+ import ke, { createContext as Vt, useState as k, useMemo as De, useEffect as ge, useContext as Yt, useRef as de, useCallback as ae, forwardRef as yt, createElement as wt } from "react";
7
+ import { jsxs as o, jsx as r, Fragment as ct } from "react/jsx-runtime";
8
8
  import Qt, { createPortal as St } from "react-dom";
9
- import { useForm as Gt, Controller as et } from "react-hook-form";
10
- import { z as Ve } from "zod";
11
- var ce = /* @__PURE__ */ ((e) => (e[e.IdentitySdk = 0] = "IdentitySdk", e[e.RiskScoring = 1] = "RiskScoring", e[e.Questionaries = 2] = "Questionaries", e[e.AdditionalData = 3] = "AdditionalData", e[e.AppropriatenessTest = 4] = "AppropriatenessTest", e[e.UploadDocument = 5] = "UploadDocument", e[e.ManualReview = 6] = "ManualReview", e[e.Overview = 7] = "Overview", e[e.InvestorCategorization = 8] = "InvestorCategorization", e))(ce || {}), gt = /* @__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))(gt || {}), ze = /* @__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))(ze || {}), Jt = /* @__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))(Jt || {}), Zt = /* @__PURE__ */ ((e) => (e[e.LowRisk = 0] = "LowRisk", e[e.MediumRisk = 1] = "MediumRisk", e[e.HighRisk = 2] = "HighRisk", e[e.Alert = 3] = "Alert", e))(Zt || {}), tt = /* @__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))(tt || {}), rt = /* @__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))(rt || {}), Xt = /* @__PURE__ */ ((e) => (e[e.ProviderResultPending = 0] = "ProviderResultPending", e[e.ProviderResultReceived = 1] = "ProviderResultReceived", e[e.Canceled = 2] = "Canceled", e[e.ExtendedToNewApplicant = 3] = "ExtendedToNewApplicant", e))(Xt || {}), er = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.ProviderResultPending = 1] = "ProviderResultPending", e[e.ProviderResultReceived = 2] = "ProviderResultReceived", e[e.Canceled = 3] = "Canceled", e))(er || {}), Oe = /* @__PURE__ */ ((e) => (e[e.Onfido = 0] = "Onfido", e[e.Sumsub = 2] = "Sumsub", e[e.SardinAI = 3] = "SardinAI", e))(Oe || {}), tr = /* @__PURE__ */ ((e) => (e[e.Individual = 0] = "Individual", e[e.Company = 1] = "Company", e))(tr || {}), bt = /* @__PURE__ */ ((e) => (e[e.Male = 0] = "Male", e[e.Female = 1] = "Female", e[e.Other = 2] = "Other", e))(bt || {}), rr = /* @__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))(rr || {}), nr = /* @__PURE__ */ ((e) => (e[e.Pending = 0] = "Pending", e[e.Approved = 1] = "Approved", e[e.Rejected = 2] = "Rejected", e[e.RequiresRevision = 3] = "RequiresRevision", e))(nr || {}), ar = /* @__PURE__ */ ((e) => (e[e.SingleChoice = 0] = "SingleChoice", e[e.MultipleChoice = 1] = "MultipleChoice", e[e.Text = 2] = "Text", e))(ar || {}), Ke = /* @__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))(Ke || {}), ir = /* @__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))(ir || {}), or = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Country = 1] = "Country", e))(or || {}), 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 || {}), sr = /* @__PURE__ */ ((e) => (e[e.Retail = 0] = "Retail", e[e.Professional = 1] = "Professional", e[e.EligibleCounterparty = 2] = "EligibleCounterparty", e))(sr || {});
12
- const Je = {
9
+ import { useForm as Gt, Controller as tt } from "react-hook-form";
10
+ import { z as Ye } 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 || {}), gt = /* @__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))(gt || {}), ze = /* @__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))(ze || {}), Jt = /* @__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))(Jt || {}), Zt = /* @__PURE__ */ ((e) => (e[e.LowRisk = 0] = "LowRisk", e[e.MediumRisk = 1] = "MediumRisk", e[e.HighRisk = 2] = "HighRisk", e[e.Alert = 3] = "Alert", e))(Zt || {}), rt = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Pending = 1] = "Pending", e[e.Approved = 2] = "Approved", e[e.Rejected = 3] = "Rejected", e[e.ResendRequested = 4] = "ResendRequested", e[e.Unknown = 5] = "Unknown", e[e.InProgress = 6] = "InProgress", e))(rt || {}), nt = /* @__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))(nt || {}), Xt = /* @__PURE__ */ ((e) => (e[e.ProviderResultPending = 0] = "ProviderResultPending", e[e.ProviderResultReceived = 1] = "ProviderResultReceived", e[e.Canceled = 2] = "Canceled", e[e.ExtendedToNewApplicant = 3] = "ExtendedToNewApplicant", e))(Xt || {}), er = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.ProviderResultPending = 1] = "ProviderResultPending", e[e.ProviderResultReceived = 2] = "ProviderResultReceived", e[e.Canceled = 3] = "Canceled", e))(er || {}), Oe = /* @__PURE__ */ ((e) => (e[e.Onfido = 0] = "Onfido", e[e.Sumsub = 2] = "Sumsub", e[e.SardinAI = 3] = "SardinAI", e))(Oe || {}), tr = /* @__PURE__ */ ((e) => (e[e.Individual = 0] = "Individual", e[e.Company = 1] = "Company", e))(tr || {}), bt = /* @__PURE__ */ ((e) => (e[e.Male = 0] = "Male", e[e.Female = 1] = "Female", e[e.Other = 2] = "Other", e))(bt || {}), rr = /* @__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))(rr || {}), nr = /* @__PURE__ */ ((e) => (e[e.Pending = 0] = "Pending", e[e.Approved = 1] = "Approved", e[e.Rejected = 2] = "Rejected", e[e.RequiresRevision = 3] = "RequiresRevision", e))(nr || {}), ar = /* @__PURE__ */ ((e) => (e[e.SingleChoice = 0] = "SingleChoice", e[e.MultipleChoice = 1] = "MultipleChoice", e[e.Text = 2] = "Text", e))(ar || {}), qe = /* @__PURE__ */ ((e) => (e[e.String = 0] = "String", e[e.Integer = 1] = "Integer", e[e.Money = 2] = "Money", e[e.Boolean = 3] = "Boolean", e[e.Date = 4] = "Date", e[e.Country = 5] = "Country", e[e.DigitOnly = 6] = "DigitOnly", e))(qe || {}), ir = /* @__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))(ir || {}), or = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Country = 1] = "Country", e))(or || {}), 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 || {}), sr = /* @__PURE__ */ ((e) => (e[e.Retail = 0] = "Retail", e[e.Professional = 1] = "Professional", e[e.EligibleCounterparty = 2] = "EligibleCounterparty", e))(sr || {});
12
+ const Ze = {
13
13
  Nationality: 10,
14
14
  Address: 20,
15
15
  CountryOfBirth: 30,
16
16
  PhoneNumber: 40,
17
17
  UboAddress: 50
18
- }, nt = {
18
+ }, at = {
19
19
  firstName: { label: "First Name", type: "text" },
20
20
  lastName: { label: "Last Name", type: "text" },
21
21
  email: { label: "Email", type: "email" },
@@ -23,27 +23,27 @@ const Je = {
23
23
  dateOfBirth: { label: "Date of Birth", type: "date" },
24
24
  salutation: { label: "Salutation", type: "select" },
25
25
  title: { label: "Title", type: "text" },
26
- mobileCountryCode: { label: "Mobile Country Code", type: "select", countriesType: Je.PhoneNumber },
26
+ mobileCountryCode: { label: "Mobile Country Code", type: "select", countriesType: Ze.PhoneNumber },
27
27
  street: { label: "Street", type: "text" },
28
28
  streetNumber: { label: "Street Number", type: "text" },
29
29
  zip: { label: "ZIP / Postal Code", type: "text" },
30
30
  city: { label: "City", type: "text" },
31
- country: { label: "Country", type: "select", countriesType: Je.Address },
32
- nationality: { label: "Nationality", type: "select", countriesType: Je.Nationality },
33
- otherNationality: { label: "Other Nationalities", type: "multiselect", countriesType: Je.Nationality },
34
- countryOfBirth: { label: "Country of Birth", type: "select", countriesType: Je.CountryOfBirth },
31
+ country: { label: "Country", type: "select", countriesType: Ze.Address },
32
+ nationality: { label: "Nationality", type: "select", countriesType: Ze.Nationality },
33
+ otherNationality: { label: "Other Nationalities", type: "multiselect", countriesType: Ze.Nationality },
34
+ countryOfBirth: { label: "Country of Birth", type: "select", countriesType: Ze.CountryOfBirth },
35
35
  placeOfBirth: { label: "Place of Birth", type: "text" },
36
- taxCountry: { label: "Tax Country", type: "select", countriesType: Je.Address },
36
+ taxCountry: { label: "Tax Country", type: "select", countriesType: Ze.Address },
37
37
  taxNumber: { label: "Tax Number", type: "text" },
38
38
  defaultLanguage: { label: "Default Language", type: "select" },
39
39
  educationLevel: { label: "Education Level", type: "text" },
40
40
  occupation: { label: "Occupation", type: "text" }
41
- }, ot = {
41
+ }, st = {
42
42
  companyName: { label: "Company Name", type: "text" },
43
43
  email: { label: "Email", type: "email" },
44
44
  phone: { label: "Phone", type: "tel" },
45
45
  registrationNumber: { label: "Registration Number", type: "text" },
46
- countryResidence: { label: "Country of Residence", type: "select", countriesType: Je.Address },
46
+ countryResidence: { label: "Country of Residence", type: "select", countriesType: Ze.Address },
47
47
  legalAddress: { label: "Legal Address", type: "text" },
48
48
  incorporatedOn: { label: "Incorporation Date", type: "date" },
49
49
  controlScheme: { label: "Control Scheme", type: "text" },
@@ -56,7 +56,7 @@ const Je = {
56
56
  city: { label: "City", type: "text" },
57
57
  state: { label: "State / Province", type: "text" },
58
58
  postalCode: { label: "Postal Code", type: "text" },
59
- addressCountry: { label: "Address Country", type: "select", countriesType: Je.Address },
59
+ addressCountry: { label: "Address Country", type: "select", countriesType: Ze.Address },
60
60
  lei: { label: "LEI", type: "text" }
61
61
  }, lr = [
62
62
  "companyName",
@@ -137,19 +137,19 @@ class ur {
137
137
  }[t] || t;
138
138
  }
139
139
  }
140
- class Ue extends Error {
140
+ class Ke extends Error {
141
141
  constructor(n, a, i, s, c) {
142
142
  super(n);
143
143
  he(this, "response");
144
- this.code = a, this.details = i, this.validationErrors = s, this.name = "MetaKYCError", this.response = c, Object.setPrototypeOf(this, Ue.prototype);
144
+ this.code = a, this.details = i, this.validationErrors = s, this.name = "MetaKYCError", this.response = c, Object.setPrototypeOf(this, Ke.prototype);
145
145
  }
146
146
  }
147
- class dt {
147
+ class ut {
148
148
  /**
149
149
  * Process an error from the API response
150
150
  */
151
151
  static handleApiError(t) {
152
- return new Ue(
152
+ return new Ke(
153
153
  t.message || "An unknown error occurred",
154
154
  t.code,
155
155
  t.details || void 0,
@@ -162,36 +162,36 @@ class dt {
162
162
  static handleAxiosError(t) {
163
163
  if (t.response) {
164
164
  const n = t.response.data;
165
- return n && n.error ? new Ue(
165
+ return n && n.error ? new Ke(
166
166
  n.error.message || "An unknown error occurred",
167
167
  n.error.code,
168
168
  n.error.details || void 0,
169
169
  n.error.validationErrors || void 0,
170
170
  t.response
171
- ) : n && n.result && n.result.message ? new Ue(
171
+ ) : n && n.result && n.result.message ? new Ke(
172
172
  n.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 Ue(
177
+ ) : new Ke(
178
178
  (n == null ? void 0 : n.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 Ue(
184
+ } else return t.request ? new Ke(
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 Ue(t.message || "An unexpected error occurred", 0, t.toString());
188
+ ) : new Ke(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 Ue;
194
+ return t instanceof Ke;
195
195
  }
196
196
  }
197
197
  class pr {
@@ -241,7 +241,7 @@ class pr {
241
241
  });
242
242
  return this.handleResponse(s);
243
243
  } catch (i) {
244
- throw dt.handleAxiosError(i);
244
+ throw ut.handleAxiosError(i);
245
245
  }
246
246
  }
247
247
  /**
@@ -252,7 +252,7 @@ class pr {
252
252
  const i = this.buildEndpoint(t, n), s = await this.axiosInstance.post(i, a);
253
253
  return this.handleResponse(s);
254
254
  } catch (i) {
255
- throw dt.handleAxiosError(i);
255
+ throw ut.handleAxiosError(i);
256
256
  }
257
257
  }
258
258
  /**
@@ -263,7 +263,7 @@ class pr {
263
263
  const i = this.buildEndpoint(t, n), s = await this.axiosInstance.put(i, a);
264
264
  return this.handleResponse(s);
265
265
  } catch (i) {
266
- throw dt.handleAxiosError(i);
266
+ throw ut.handleAxiosError(i);
267
267
  }
268
268
  }
269
269
  /**
@@ -276,7 +276,7 @@ class pr {
276
276
  });
277
277
  return this.handleResponse(s);
278
278
  } catch (i) {
279
- throw dt.handleAxiosError(i);
279
+ throw ut.handleAxiosError(i);
280
280
  }
281
281
  }
282
282
  /**
@@ -285,7 +285,7 @@ class pr {
285
285
  handleResponse(t) {
286
286
  const n = t.data;
287
287
  if (!n.success && n.error)
288
- throw dt.handleApiError(n.error);
288
+ throw ut.handleApiError(n.error);
289
289
  return n;
290
290
  }
291
291
  /**
@@ -923,7 +923,7 @@ const Le = {
923
923
  [Fe.Modern]: Nr,
924
924
  [Fe.Minimal]: Ir
925
925
  };
926
- function ut(e) {
926
+ function pt(e) {
927
927
  return Rr[e] || Le;
928
928
  }
929
929
  class Er {
@@ -941,8 +941,8 @@ class Er {
941
941
  "GetThemeConfiguration"
942
942
  );
943
943
  if (!n.result.isEnabled)
944
- return ut(Fe.Default);
945
- let a = n.result.preset ? ut(n.result.preset) : ut(Fe.Default);
944
+ return pt(Fe.Default);
945
+ let a = n.result.preset ? pt(n.result.preset) : pt(Fe.Default);
946
946
  if (n.result.title && (a.title = n.result.title), n.result.logo && (a.logo = { ...a.logo, ...n.result.logo }), n.result.colors && (a.colors = { ...a.colors, ...n.result.colors }), n.result.typography && (a.typography = { ...a.typography, ...n.result.typography }), n.result.spacing && (a.spacing = { ...a.spacing, ...n.result.spacing }), n.result.customCSS && (a.customCSS = n.result.customCSS), n.result.darkMode && (a.darkMode = {
947
947
  colors: {
948
948
  ...(t = a.darkMode) == null ? void 0 : t.colors,
@@ -992,7 +992,7 @@ class Er {
992
992
  }
993
993
  return a;
994
994
  } catch (n) {
995
- return console.warn("[ThemeService] Failed to fetch theme configuration:", n), ut(Fe.Default);
995
+ return console.warn("[ThemeService] Failed to fetch theme configuration:", n), pt(Fe.Default);
996
996
  }
997
997
  }
998
998
  /**
@@ -1018,7 +1018,7 @@ class Er {
1018
1018
  * Preview theme (doesn't save)
1019
1019
  */
1020
1020
  getPreviewTheme(t, n) {
1021
- const a = ut(t);
1021
+ const a = pt(t);
1022
1022
  return n ? {
1023
1023
  ...a,
1024
1024
  ...n,
@@ -1409,15 +1409,15 @@ function Mt(e, t) {
1409
1409
  i.src = e, t && (i.id = t), i.async = !0, i.onload = () => n(), i.onerror = () => a(new Error(`Failed to load script: ${e}`)), document.head.appendChild(i);
1410
1410
  });
1411
1411
  }
1412
- function Un(e) {
1412
+ function qn(e) {
1413
1413
  return !!document.getElementById(e);
1414
1414
  }
1415
- function Kn(e) {
1415
+ function Vn(e) {
1416
1416
  const t = document.getElementById(e);
1417
1417
  t && t.remove();
1418
1418
  }
1419
1419
  const Lr = "https://static.sumsub.com/idensic/static/sns-websdk-builder.js";
1420
- function We(e, t) {
1420
+ function Ue(e, t) {
1421
1421
  try {
1422
1422
  return getComputedStyle(document.documentElement).getPropertyValue(e).trim() || t;
1423
1423
  } catch {
@@ -1425,9 +1425,9 @@ function We(e, t) {
1425
1425
  }
1426
1426
  }
1427
1427
  function Dr() {
1428
- const e = We("--metakyc-primary", "#2563eb"), t = We("--metakyc-primary-hover", "#1d4ed8"), n = We("--metakyc-background", "#ffffff"), a = We("--metakyc-surface", "#f9fafb"), i = We("--metakyc-text-primary", "#111827"), s = We("--metakyc-text-secondary", "#6b7280"), c = We("--metakyc-text-muted", "#9ca3af"), d = We("--metakyc-border", "#e5e7eb");
1428
+ const e = Ue("--metakyc-primary", "#2563eb"), t = Ue("--metakyc-primary-hover", "#1d4ed8"), n = Ue("--metakyc-background", "#ffffff"), a = Ue("--metakyc-surface", "#f9fafb"), i = Ue("--metakyc-text-primary", "#111827"), s = Ue("--metakyc-text-secondary", "#6b7280"), c = Ue("--metakyc-text-muted", "#9ca3af"), d = Ue("--metakyc-border", "#e5e7eb");
1429
1429
  return `
1430
- body, html { font-family: ${We(
1430
+ body, html { font-family: ${Ue(
1431
1431
  "--metakyc-font-family",
1432
1432
  "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"
1433
1433
  )} !important; background-color: ${n} !important; }
@@ -1718,7 +1718,7 @@ class zr {
1718
1718
  this.sardineContext && (this.sardineContext = null);
1719
1719
  }
1720
1720
  }
1721
- class Ge {
1721
+ class Je {
1722
1722
  /**
1723
1723
  * Create a provider instance
1724
1724
  */
@@ -1955,8 +1955,8 @@ class Br {
1955
1955
  return t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1956
1956
  }
1957
1957
  }
1958
- const Ot = Vt(null), _r = "1.0.4", qn = ({ config: e, children: t }) => {
1959
- const [n, a] = k(null), i = we.useRef(!1), s = we.useRef(!1), c = De(() => {
1958
+ const Ot = Vt(null), _r = "1.0.5", Yn = ({ config: e, children: t }) => {
1959
+ const [n, a] = k(null), i = ke.useRef(!1), s = ke.useRef(!1), c = De(() => {
1960
1960
  const y = new pr(e), p = new mr(y), b = new yr(y), P = new hr(y), v = new fr(y), A = new gr(y), T = new br(y), w = new xr(y), N = new vr(y), z = new kr(y), Q = new Er(y), M = new Br();
1961
1961
  return {
1962
1962
  httpClient: y,
@@ -2047,10 +2047,10 @@ async function Hr(e) {
2047
2047
  }, a.onerror = (i) => n(i);
2048
2048
  });
2049
2049
  }
2050
- function Vn(e, t) {
2050
+ function Qn(e, t) {
2051
2051
  return e.size <= t;
2052
2052
  }
2053
- function Yn(e, t) {
2053
+ function Gn(e, t) {
2054
2054
  return t.split(",").map((a) => a.trim()).some((a) => {
2055
2055
  if (a.endsWith("/*")) {
2056
2056
  const i = a.slice(0, -2);
@@ -2064,26 +2064,26 @@ function xt(e) {
2064
2064
  const t = 1024, n = ["Bytes", "KB", "MB", "GB"], a = Math.floor(Math.log(e) / Math.log(t));
2065
2065
  return Math.round(e / Math.pow(t, a) * 100) / 100 + " " + n[a];
2066
2066
  }
2067
- function Qn(e) {
2067
+ function Jn(e) {
2068
2068
  return e;
2069
2069
  }
2070
2070
  function Ae(...e) {
2071
2071
  return e.filter(Boolean).join(" ");
2072
2072
  }
2073
- const ct = {
2073
+ const dt = {
2074
2074
  APPLICANT_ID: "metakyc_applicant_id",
2075
2075
  WORKFLOW_STATE: "metakyc_workflow_state"
2076
2076
  };
2077
2077
  function jr(e) {
2078
2078
  try {
2079
- localStorage.setItem(ct.APPLICANT_ID, e.toString());
2079
+ localStorage.setItem(dt.APPLICANT_ID, e.toString());
2080
2080
  } catch (t) {
2081
2081
  console.warn("Failed to save applicant ID to storage:", t);
2082
2082
  }
2083
2083
  }
2084
2084
  function Wr() {
2085
2085
  try {
2086
- const e = localStorage.getItem(ct.APPLICANT_ID);
2086
+ const e = localStorage.getItem(dt.APPLICANT_ID);
2087
2087
  return e ? parseInt(e, 10) : null;
2088
2088
  } catch (e) {
2089
2089
  return console.warn("Failed to retrieve applicant ID from storage:", e), null;
@@ -2091,21 +2091,21 @@ function Wr() {
2091
2091
  }
2092
2092
  function Ur() {
2093
2093
  try {
2094
- localStorage.removeItem(ct.APPLICANT_ID);
2094
+ localStorage.removeItem(dt.APPLICANT_ID);
2095
2095
  } catch (e) {
2096
2096
  console.warn("Failed to clear applicant ID from storage:", e);
2097
2097
  }
2098
2098
  }
2099
2099
  function Kr(e) {
2100
2100
  try {
2101
- localStorage.setItem(ct.WORKFLOW_STATE, JSON.stringify(e));
2101
+ localStorage.setItem(dt.WORKFLOW_STATE, JSON.stringify(e));
2102
2102
  } catch (t) {
2103
2103
  console.warn("Failed to save workflow state to storage:", t);
2104
2104
  }
2105
2105
  }
2106
- function Gn() {
2106
+ function Zn() {
2107
2107
  try {
2108
- const e = localStorage.getItem(ct.WORKFLOW_STATE);
2108
+ const e = localStorage.getItem(dt.WORKFLOW_STATE);
2109
2109
  return e ? JSON.parse(e) : null;
2110
2110
  } catch (e) {
2111
2111
  return console.warn("Failed to retrieve workflow state from storage:", e), null;
@@ -2113,12 +2113,12 @@ function Gn() {
2113
2113
  }
2114
2114
  function qr() {
2115
2115
  try {
2116
- localStorage.removeItem(ct.WORKFLOW_STATE);
2116
+ localStorage.removeItem(dt.WORKFLOW_STATE);
2117
2117
  } catch (e) {
2118
2118
  console.warn("Failed to clear workflow state from storage:", e);
2119
2119
  }
2120
2120
  }
2121
- function Jn() {
2121
+ function Xn() {
2122
2122
  Ur(), qr();
2123
2123
  }
2124
2124
  function Vr(e) {
@@ -2334,7 +2334,7 @@ function Qr(e) {
2334
2334
  submit: w
2335
2335
  };
2336
2336
  }
2337
- function Zn(e) {
2337
+ function ea(e) {
2338
2338
  const { appropriatenessTestService: t } = Te(), [n, a] = k(null), [i, s] = k(!1), [c, d] = k(!1), [y, p] = k(null), [b, P] = k(null), v = de(!1), A = de(null), T = ae(async () => {
2339
2339
  if (e) {
2340
2340
  if (v.current) {
@@ -2841,6 +2841,69 @@ const re = ({ children: e, className: t, style: n, ...a }) => /* @__PURE__ */ r(
2841
2841
  children: e
2842
2842
  }
2843
2843
  ), en = {
2844
+ display: "inline-flex",
2845
+ alignItems: "center",
2846
+ justifyContent: "center",
2847
+ width: 16,
2848
+ height: 16,
2849
+ minWidth: 16,
2850
+ minHeight: 16,
2851
+ maxWidth: 16,
2852
+ maxHeight: 16,
2853
+ borderRadius: 4,
2854
+ borderWidth: "1.5px",
2855
+ borderStyle: "solid",
2856
+ cursor: "pointer",
2857
+ flexShrink: 0,
2858
+ position: "relative",
2859
+ transition: "background-color 0.15s, border-color 0.15s",
2860
+ boxSizing: "border-box",
2861
+ padding: 0,
2862
+ margin: 0,
2863
+ verticalAlign: "middle"
2864
+ }, Be = ({ checked: e, onChange: t, disabled: n, style: a }) => {
2865
+ const i = "var(--metakyc-input-border, var(--metakyc-border, #d1d5db))", s = "var(--metakyc-input-bg, var(--metakyc-background, #ffffff))", c = "var(--metakyc-primary, #2563eb)";
2866
+ return /* @__PURE__ */ r(
2867
+ "span",
2868
+ {
2869
+ role: "checkbox",
2870
+ "aria-checked": e,
2871
+ tabIndex: 0,
2872
+ onClick: () => !n && t(!e),
2873
+ onKeyDown: (d) => {
2874
+ (d.key === " " || d.key === "Enter") && (d.preventDefault(), n || t(!e));
2875
+ },
2876
+ style: {
2877
+ ...en,
2878
+ backgroundColor: e ? c : s,
2879
+ borderColor: e ? c : i,
2880
+ opacity: n ? 0.5 : 1,
2881
+ cursor: n ? "not-allowed" : "pointer",
2882
+ ...a
2883
+ },
2884
+ children: e && /* @__PURE__ */ r(
2885
+ "svg",
2886
+ {
2887
+ width: "10",
2888
+ height: "8",
2889
+ viewBox: "0 0 10 8",
2890
+ fill: "none",
2891
+ style: { display: "block", flexShrink: 0 },
2892
+ children: /* @__PURE__ */ r(
2893
+ "path",
2894
+ {
2895
+ d: "M1 4L3.5 6.5L9 1",
2896
+ stroke: "#ffffff",
2897
+ strokeWidth: "2",
2898
+ strokeLinecap: "round",
2899
+ strokeLinejoin: "round"
2900
+ }
2901
+ )
2902
+ }
2903
+ )
2904
+ }
2905
+ );
2906
+ }, tn = {
2844
2907
  // Theme-aware variants
2845
2908
  default: {
2846
2909
  backgroundColor: "var(--metakyc-surface, #f3f4f6)",
@@ -2870,7 +2933,7 @@ const re = ({ children: e, className: t, style: n, ...a }) => /* @__PURE__ */ r(
2870
2933
  "inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",
2871
2934
  n
2872
2935
  ),
2873
- style: { ...en[t], ...a },
2936
+ style: { ...tn[t], ...a },
2874
2937
  ...i,
2875
2938
  children: e
2876
2939
  }
@@ -2977,7 +3040,7 @@ const re = ({ children: e, className: t, style: n, ...a }) => /* @__PURE__ */ r(
2977
3040
  ] })
2978
3041
  );
2979
3042
  Ct.displayName = "Select";
2980
- const Et = 280, tn = ({
3043
+ const Et = 280, rn = ({
2981
3044
  label: e,
2982
3045
  value: t,
2983
3046
  onChange: n,
@@ -3045,7 +3108,7 @@ const Et = 280, tn = ({
3045
3108
  }, G = (F) => {
3046
3109
  var U;
3047
3110
  return ((U = a.find((B) => B.value === F)) == null ? void 0 : U.label) || F;
3048
- }, { bg: _, borderColor: J, textPrimary: ie, textSecondary: Y, primaryColor: ve, primaryLight: pe, hoverBg: me } = w, ke = p && A && /* @__PURE__ */ o(
3111
+ }, { bg: _, borderColor: J, textPrimary: ie, textSecondary: Y, primaryColor: we, primaryLight: pe, hoverBg: me } = w, ve = p && A && /* @__PURE__ */ o(
3049
3112
  "div",
3050
3113
  {
3051
3114
  ref: M,
@@ -3110,7 +3173,7 @@ const Et = 280, tn = ({
3110
3173
  fontSize: "13px",
3111
3174
  cursor: "pointer",
3112
3175
  backgroundColor: U ? pe : "transparent",
3113
- color: U ? ve : ie,
3176
+ color: U ? we : ie,
3114
3177
  userSelect: "none"
3115
3178
  },
3116
3179
  onMouseEnter: (B) => {
@@ -3121,12 +3184,11 @@ const Et = 280, tn = ({
3121
3184
  },
3122
3185
  children: [
3123
3186
  /* @__PURE__ */ r(
3124
- "input",
3187
+ Be,
3125
3188
  {
3126
- type: "checkbox",
3127
3189
  checked: U,
3128
- readOnly: !0,
3129
- style: { accentColor: ve, pointerEvents: "none", flexShrink: 0 }
3190
+ onChange: () => {
3191
+ }
3130
3192
  }
3131
3193
  ),
3132
3194
  /* @__PURE__ */ r("span", { children: F.label })
@@ -3243,9 +3305,9 @@ const Et = 280, tn = ({
3243
3305
  ]
3244
3306
  }
3245
3307
  ),
3246
- typeof document < "u" && ke ? St(ke, document.body) : null
3308
+ typeof document < "u" && ve ? St(ve, document.body) : null
3247
3309
  ] });
3248
- }, Ft = 260, qe = ({
3310
+ }, Ft = 260, Ve = ({
3249
3311
  label: e,
3250
3312
  error: t,
3251
3313
  helperText: n,
@@ -3322,7 +3384,7 @@ const Et = 280, tn = ({
3322
3384
  (R) => R.label.toLowerCase().includes(T.toLowerCase()) || R.value.toLowerCase().includes(T.toLowerCase())
3323
3385
  ), ie = (fe = a.find((R) => R.value === s)) == null ? void 0 : fe.label, Y = (R, te) => {
3324
3386
  P || te || (c(R), G());
3325
- }, { bg: ve, border: pe, text: me, textSecondary: ke, primary: F, primaryLight: U, hoverBg: B } = Q, j = v && N && /* @__PURE__ */ o(
3387
+ }, { bg: we, border: pe, text: me, textSecondary: ve, primary: F, primaryLight: U, hoverBg: B } = Q, j = v && N && /* @__PURE__ */ o(
3326
3388
  "div",
3327
3389
  {
3328
3390
  ref: E,
@@ -3337,7 +3399,7 @@ const Et = 280, tn = ({
3337
3399
  borderRadius: "8px",
3338
3400
  boxShadow: "0 4px 16px rgba(0,0,0,0.18)",
3339
3401
  border: `1px solid ${pe}`,
3340
- backgroundColor: ve,
3402
+ backgroundColor: we,
3341
3403
  overflow: "hidden"
3342
3404
  },
3343
3405
  children: [
@@ -3358,17 +3420,17 @@ const Et = 280, tn = ({
3358
3420
  fontSize: "13px",
3359
3421
  borderRadius: "6px",
3360
3422
  border: `1px solid ${pe}`,
3361
- backgroundColor: ve,
3423
+ backgroundColor: we,
3362
3424
  color: me,
3363
3425
  outline: "none",
3364
3426
  boxSizing: "border-box"
3365
3427
  },
3366
3428
  onFocus: (R) => {
3367
3429
  const te = getComputedStyle(document.documentElement), ye = te.getPropertyValue("--metakyc-input-border-focus").trim() || te.getPropertyValue("--metakyc-primary").trim() || "#2563eb";
3368
- R.currentTarget.style.backgroundColor = ve, R.currentTarget.style.color = me, R.currentTarget.style.borderColor = ye, R.currentTarget.style.outline = "none", R.currentTarget.style.boxShadow = `0 0 0 2px ${ye}33`;
3430
+ R.currentTarget.style.backgroundColor = we, R.currentTarget.style.color = me, R.currentTarget.style.borderColor = ye, R.currentTarget.style.outline = "none", R.currentTarget.style.boxShadow = `0 0 0 2px ${ye}33`;
3369
3431
  },
3370
3432
  onBlur: (R) => {
3371
- R.currentTarget.style.backgroundColor = ve, R.currentTarget.style.color = me, R.currentTarget.style.borderColor = pe, R.currentTarget.style.outline = "none", R.currentTarget.style.boxShadow = "none";
3433
+ R.currentTarget.style.backgroundColor = we, R.currentTarget.style.color = me, R.currentTarget.style.borderColor = pe, R.currentTarget.style.outline = "none", R.currentTarget.style.boxShadow = "none";
3372
3434
  }
3373
3435
  }
3374
3436
  ) }),
@@ -3382,7 +3444,7 @@ const Et = 280, tn = ({
3382
3444
  maxHeight: "208px",
3383
3445
  overflowY: "auto"
3384
3446
  },
3385
- children: J.length === 0 ? /* @__PURE__ */ r("li", { style: { padding: "8px 12px", fontSize: "13px", color: ke }, children: "No results" }) : J.map((R) => {
3447
+ children: J.length === 0 ? /* @__PURE__ */ r("li", { style: { padding: "8px 12px", fontSize: "13px", color: ve }, children: "No results" }) : J.map((R) => {
3386
3448
  const te = R.value === s;
3387
3449
  return /* @__PURE__ */ r(
3388
3450
  "li",
@@ -3476,12 +3538,12 @@ const Et = 280, tn = ({
3476
3538
  }
3477
3539
  );
3478
3540
  };
3479
- qe.displayName = "SearchableSelect";
3480
- function rn(e) {
3541
+ Ve.displayName = "SearchableSelect";
3542
+ function nn(e) {
3481
3543
  const t = e.type;
3482
3544
  return t.startsWith("image/") ? "image" : t === "application/pdf" ? "pdf" : "file";
3483
3545
  }
3484
- const nn = ({
3546
+ const an = ({
3485
3547
  label: e,
3486
3548
  subtitle: t,
3487
3549
  error: n,
@@ -3621,7 +3683,7 @@ const nn = ({
3621
3683
  }
3622
3684
  ),
3623
3685
  ee && /* @__PURE__ */ r("div", { style: { marginTop: "12px", display: "flex", flexDirection: "column", gap: "8px" }, children: y.map((E, g) => {
3624
- const $ = rn(E), V = $ === "image", G = V ? URL.createObjectURL(E) : null;
3686
+ const $ = nn(E), V = $ === "image", G = V ? URL.createObjectURL(E) : null;
3625
3687
  return /* @__PURE__ */ o(
3626
3688
  "div",
3627
3689
  {
@@ -3723,7 +3785,7 @@ const nn = ({
3723
3785
  }) }),
3724
3786
  K && /* @__PURE__ */ r("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", marginTop: "6px" }, children: K })
3725
3787
  ] });
3726
- }, an = yt(
3788
+ }, on = yt(
3727
3789
  ({ countryCode: e = "+1", onCountryCodeChange: t, className: n, ...a }, i) => /* @__PURE__ */ o("div", { className: "w-full", children: [
3728
3790
  a.label && /* @__PURE__ */ o(
3729
3791
  "label",
@@ -3770,7 +3832,7 @@ const nn = ({
3770
3832
  a.error && /* @__PURE__ */ r("p", { className: "mt-1 text-sm text-danger-500", children: a.error })
3771
3833
  ] })
3772
3834
  );
3773
- an.displayName = "PhoneInput";
3835
+ on.displayName = "PhoneInput";
3774
3836
  /**
3775
3837
  * @license lucide-react v0.574.0 - ISC
3776
3838
  *
@@ -3784,14 +3846,14 @@ const Bt = (...e) => e.filter((t, n, a) => !!t && t.trim() !== "" && a.indexOf(t
3784
3846
  * This source code is licensed under the ISC license.
3785
3847
  * See the LICENSE file in the root directory of this source tree.
3786
3848
  */
3787
- const on = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
3849
+ const sn = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
3788
3850
  /**
3789
3851
  * @license lucide-react v0.574.0 - ISC
3790
3852
  *
3791
3853
  * This source code is licensed under the ISC license.
3792
3854
  * See the LICENSE file in the root directory of this source tree.
3793
3855
  */
3794
- const sn = (e) => e.replace(
3856
+ const ln = (e) => e.replace(
3795
3857
  /^([A-Z])|[\s-_]+(\w)/g,
3796
3858
  (t, n, a) => a ? a.toUpperCase() : n.toLowerCase()
3797
3859
  );
@@ -3802,7 +3864,7 @@ const sn = (e) => e.replace(
3802
3864
  * See the LICENSE file in the root directory of this source tree.
3803
3865
  */
3804
3866
  const At = (e) => {
3805
- const t = sn(e);
3867
+ const t = ln(e);
3806
3868
  return t.charAt(0).toUpperCase() + t.slice(1);
3807
3869
  };
3808
3870
  /**
@@ -3811,7 +3873,7 @@ const At = (e) => {
3811
3873
  * This source code is licensed under the ISC license.
3812
3874
  * See the LICENSE file in the root directory of this source tree.
3813
3875
  */
3814
- var ln = {
3876
+ var cn = {
3815
3877
  xmlns: "http://www.w3.org/2000/svg",
3816
3878
  width: 24,
3817
3879
  height: 24,
@@ -3828,7 +3890,7 @@ var ln = {
3828
3890
  * This source code is licensed under the ISC license.
3829
3891
  * See the LICENSE file in the root directory of this source tree.
3830
3892
  */
3831
- const cn = (e) => {
3893
+ const dn = (e) => {
3832
3894
  for (const t in e)
3833
3895
  if (t.startsWith("aria-") || t === "role" || t === "title")
3834
3896
  return !0;
@@ -3840,7 +3902,7 @@ const cn = (e) => {
3840
3902
  * This source code is licensed under the ISC license.
3841
3903
  * See the LICENSE file in the root directory of this source tree.
3842
3904
  */
3843
- const dn = yt(
3905
+ const un = yt(
3844
3906
  ({
3845
3907
  color: e = "currentColor",
3846
3908
  size: t = 24,
@@ -3854,13 +3916,13 @@ const dn = yt(
3854
3916
  "svg",
3855
3917
  {
3856
3918
  ref: y,
3857
- ...ln,
3919
+ ...cn,
3858
3920
  width: t,
3859
3921
  height: t,
3860
3922
  stroke: e,
3861
3923
  strokeWidth: a ? Number(n) * 24 / Number(t) : n,
3862
3924
  className: Bt("lucide", i),
3863
- ...!s && !cn(d) && { "aria-hidden": "true" },
3925
+ ...!s && !dn(d) && { "aria-hidden": "true" },
3864
3926
  ...d
3865
3927
  },
3866
3928
  [
@@ -3877,11 +3939,11 @@ const dn = yt(
3877
3939
  */
3878
3940
  const _t = (e, t) => {
3879
3941
  const n = yt(
3880
- ({ className: a, ...i }, s) => wt(dn, {
3942
+ ({ className: a, ...i }, s) => wt(un, {
3881
3943
  ref: s,
3882
3944
  iconNode: t,
3883
3945
  className: Bt(
3884
- `lucide-${on(At(e))}`,
3946
+ `lucide-${sn(At(e))}`,
3885
3947
  `lucide-${e}`,
3886
3948
  a
3887
3949
  ),
@@ -3896,15 +3958,15 @@ const _t = (e, t) => {
3896
3958
  * This source code is licensed under the ISC license.
3897
3959
  * See the LICENSE file in the root directory of this source tree.
3898
3960
  */
3899
- const un = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Ht = _t("chevron-left", un);
3961
+ const pn = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Ht = _t("chevron-left", pn);
3900
3962
  /**
3901
3963
  * @license lucide-react v0.574.0 - ISC
3902
3964
  *
3903
3965
  * This source code is licensed under the ISC license.
3904
3966
  * See the LICENSE file in the root directory of this source tree.
3905
3967
  */
3906
- const pn = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], jt = _t("chevron-right", pn);
3907
- function mn(e, t) {
3968
+ const mn = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], jt = _t("chevron-right", mn);
3969
+ function yn(e, t) {
3908
3970
  const n = !t || t.length === 0 || t.every((a) => !a || !a.trim());
3909
3971
  if (e.isRequired && n)
3910
3972
  return e.errorMessage || "This field is required";
@@ -3933,7 +3995,7 @@ function mn(e, t) {
3933
3995
  }
3934
3996
  return null;
3935
3997
  }
3936
- function yn(e) {
3998
+ function hn(e) {
3937
3999
  const t = e.flatMap(
3938
4000
  (a, i) => (a.questions ?? []).map((s, c) => ({ question: s, groupIndex: i, qIdx: c }))
3939
4001
  ), n = /* @__PURE__ */ new Map();
@@ -3943,17 +4005,17 @@ function yn(e) {
3943
4005
  }
3944
4006
  return Array.from(n.entries()).sort(([a], [i]) => a - i).map(([, a]) => a);
3945
4007
  }
3946
- const hn = ({
4008
+ const fn = ({
3947
4009
  applicantId: e,
3948
4010
  onComplete: t,
3949
4011
  onBack: n
3950
4012
  }) => {
3951
4013
  const { questionnaire: a, initialAnswers: i, isLoading: s, isSubmitting: c, error: d, submit: y } = Yr(e), [p, b] = k({}), [P, v] = k({}), [A, T] = k(0);
3952
- we.useEffect(() => {
4014
+ ke.useEffect(() => {
3953
4015
  i && Object.keys(i).length > 0 && Object.keys(p).length === 0 && b(i);
3954
4016
  }, [i]);
3955
4017
  const w = De(
3956
- () => a ? yn(a.questionGroups) : [],
4018
+ () => a ? hn(a.questionGroups) : [],
3957
4019
  [a]
3958
4020
  ), N = A === w.length - 1, z = w[A] ?? [], Q = ae((E, g) => {
3959
4021
  b(($) => ({ ...$, [E]: g })), v(($) => {
@@ -3963,7 +4025,7 @@ const hn = ({
3963
4025
  }, []), M = ae(() => {
3964
4026
  const E = {};
3965
4027
  for (const { question: g } of z) {
3966
- const $ = mn(g, p[g.id] ?? []);
4028
+ const $ = yn(g, p[g.id] ?? []);
3967
4029
  $ && (E[g.id] = $);
3968
4030
  }
3969
4031
  return v((g) => ({ ...g, ...E })), Object.keys(E).length === 0;
@@ -4018,7 +4080,7 @@ const hn = ({
4018
4080
  ] })
4019
4081
  ] }),
4020
4082
  /* @__PURE__ */ r(ne, { className: "space-y-6", children: z.map(({ question: E }) => /* @__PURE__ */ r(
4021
- fn,
4083
+ gn,
4022
4084
  {
4023
4085
  question: E,
4024
4086
  value: p[E.id] ?? [],
@@ -4064,7 +4126,7 @@ const hn = ({
4064
4126
  ] }),
4065
4127
  d && /* @__PURE__ */ r("div", { className: "mx-6 mb-4 p-3 bg-red-50 border border-red-200 rounded", children: /* @__PURE__ */ r("p", { className: "text-red-600 text-sm", children: d.message }) })
4066
4128
  ] }) : null;
4067
- }, fn = ({ question: e, value: t, error: n, onChange: a }) => {
4129
+ }, gn = ({ question: e, value: t, error: n, onChange: a }) => {
4068
4130
  var c;
4069
4131
  const s = (((c = e.defaultAnswers) == null ? void 0 : c.length) ?? 0) > 0 ? e.showAsDropdown ? e.canMultipleAnswer ? "multi-select" : "single-select" : e.canMultipleAnswer ? "checkbox" : "radio" : "text";
4070
4132
  return /* @__PURE__ */ o("div", { className: "space-y-2", children: [
@@ -4139,26 +4201,11 @@ const hn = ({
4139
4201
  style: { display: "flex", alignItems: "center", gap: "10px", cursor: "pointer", margin: 0, padding: 0 },
4140
4202
  children: [
4141
4203
  /* @__PURE__ */ r(
4142
- "input",
4204
+ Be,
4143
4205
  {
4144
- type: "checkbox",
4145
4206
  checked: t.includes(d),
4146
4207
  onChange: (y) => {
4147
- y.target.checked ? a([...t, d]) : a(t.filter((p) => p !== d));
4148
- },
4149
- className: "metakyc-option-input",
4150
- style: {
4151
- width: "16px",
4152
- height: "16px",
4153
- minWidth: "16px",
4154
- flexShrink: 0,
4155
- flexGrow: 0,
4156
- accentColor: "var(--metakyc-primary, #2563eb)",
4157
- cursor: "pointer",
4158
- margin: 0,
4159
- padding: 0,
4160
- display: "inline-block",
4161
- verticalAlign: "middle"
4208
+ a(y ? [...t, d] : t.filter((p) => p !== d));
4162
4209
  }
4163
4210
  }
4164
4211
  ),
@@ -4172,7 +4219,7 @@ const hn = ({
4172
4219
  n && s === "text" && null
4173
4220
  ] });
4174
4221
  };
4175
- function gn(e) {
4222
+ function bn(e) {
4176
4223
  const t = /* @__PURE__ */ new Map();
4177
4224
  for (const n of e) {
4178
4225
  const a = n.pageNumber != null && n.pageNumber > 0 ? n.pageNumber : 1;
@@ -4180,13 +4227,13 @@ function gn(e) {
4180
4227
  }
4181
4228
  return Array.from(t.entries()).sort(([n], [a]) => n - a).map(([, n]) => n);
4182
4229
  }
4183
- const bn = ({
4230
+ const xn = ({
4184
4231
  applicantId: e,
4185
4232
  onComplete: t,
4186
4233
  onBack: n
4187
4234
  }) => {
4188
4235
  const { uploadDocument: a, isLoading: i, isSubmitting: s, error: c, submit: d } = Qr(e), [y, p] = k({}), [b, P] = k(null), [v, A] = k(0), [T, w] = k({}), N = De(
4189
- () => a ? gn(a.uploadDocumentFiles) : [],
4236
+ () => a ? bn(a.uploadDocumentFiles) : [],
4190
4237
  [a]
4191
4238
  ), z = N[v] ?? [], Q = v === N.length - 1, M = N.length, H = ae(() => {
4192
4239
  const g = {};
@@ -4328,7 +4375,7 @@ const bn = ({
4328
4375
  }, children: a.description })
4329
4376
  ] }),
4330
4377
  /* @__PURE__ */ r(ne, { children: /* @__PURE__ */ r("div", { style: { display: "flex", flexDirection: "column", gap: "24px" }, children: z.map((g) => /* @__PURE__ */ r(
4331
- nn,
4378
+ an,
4332
4379
  {
4333
4380
  label: g.displayName,
4334
4381
  subtitle: g.subtitle,
@@ -4397,7 +4444,7 @@ const bn = ({
4397
4444
  )
4398
4445
  ] }) })
4399
4446
  ] }) : null;
4400
- }, xn = ({ applicantId: e, onComplete: t, onBack: n }) => {
4447
+ }, vn = ({ applicantId: e, onComplete: t, onBack: n }) => {
4401
4448
  const { overview: a, isLoading: i, isSubmitting: s, error: c, passOverview: d } = Gr(e), y = async () => {
4402
4449
  await d(), t == null || t();
4403
4450
  };
@@ -4441,7 +4488,7 @@ const bn = ({
4441
4488
  ] })
4442
4489
  ] }) : null;
4443
4490
  };
4444
- function vn(e) {
4491
+ function kn(e) {
4445
4492
  const t = (e ?? "en").toLowerCase().replace("_", "-");
4446
4493
  try {
4447
4494
  return Intl.NumberFormat.supportedLocalesOf([t]), t;
@@ -4449,11 +4496,11 @@ function vn(e) {
4449
4496
  return "en";
4450
4497
  }
4451
4498
  }
4452
- function kn(e) {
4453
- return e.valueDataType === Ke.Money && Array.isArray(e.defaultValues) && e.defaultValues.length > 0;
4499
+ function wn(e) {
4500
+ return e.valueDataType === qe.Money && Array.isArray(e.defaultValues) && e.defaultValues.length > 0;
4454
4501
  }
4455
- function wn(e, t) {
4456
- const n = new Intl.NumberFormat(vn(t), {
4502
+ function Sn(e, t) {
4503
+ const n = new Intl.NumberFormat(kn(t), {
4457
4504
  minimumFractionDigits: 0,
4458
4505
  maximumFractionDigits: 2
4459
4506
  });
@@ -4462,7 +4509,7 @@ function wn(e, t) {
4462
4509
  return isNaN(i) ? a : n.format(i);
4463
4510
  });
4464
4511
  }
4465
- function Sn(e, t) {
4512
+ function Cn(e, t) {
4466
4513
  const n = !t || t.length === 0 || t.every((a) => !a || !a.trim());
4467
4514
  if (e.isRequired && n)
4468
4515
  return e.errorMessage || `${e.displayName} is required`;
@@ -4474,7 +4521,7 @@ function Sn(e, t) {
4474
4521
  return e.errorMessage || "Invalid format";
4475
4522
  } catch {
4476
4523
  }
4477
- const i = e.valueDataType === Ke.Integer || e.valueDataType === Ke.Money || e.valueDataType === Ke.DigitOnly;
4524
+ const i = e.valueDataType === qe.Integer || e.valueDataType === qe.Money || e.valueDataType === qe.DigitOnly;
4478
4525
  if (i && a.trim() !== "") {
4479
4526
  const s = Number(a);
4480
4527
  if (!isNaN(s)) {
@@ -4492,30 +4539,30 @@ function Sn(e, t) {
4492
4539
  }
4493
4540
  return null;
4494
4541
  }
4495
- function Cn(e) {
4542
+ function Nn(e) {
4496
4543
  const t = /* @__PURE__ */ new Map();
4497
4544
  return e.forEach((n, a) => {
4498
4545
  const i = n.pageNumber != null && n.pageNumber > 0 ? n.pageNumber : 1;
4499
4546
  t.has(i) || t.set(i, []), t.get(i).push({ criterion: n, idx: a });
4500
4547
  }), Array.from(t.entries()).sort(([n], [a]) => n - a).map(([, n]) => n);
4501
4548
  }
4502
- function Nn(e) {
4549
+ function In(e) {
4503
4550
  return e.builtInType === 1 ? "country" : !e.defaultValues || e.defaultValues.length === 0 ? "text" : e.multipleValue ? "checkbox" : "radio";
4504
4551
  }
4505
- const In = ({
4552
+ const Rn = ({
4506
4553
  applicantId: e,
4507
4554
  onComplete: t,
4508
4555
  onBack: n
4509
4556
  }) => {
4510
4557
  const { config: a } = Te(), i = a.locale ?? "en", { criteria: s, initialAnswers: c, isLoading: d, isSubmitting: y, error: p, submit: b } = Zr(e), [P, v] = k({}), [A, T] = k({}), [w, N] = k(0), [z, Q] = k(!1);
4511
- we.useEffect(() => {
4558
+ ke.useEffect(() => {
4512
4559
  c && Object.keys(c).length > 0 && Object.keys(P).length === 0 && v(c);
4513
4560
  }, [c]);
4514
4561
  const M = De(
4515
- () => s && s.length > 0 ? Cn(s) : [],
4562
+ () => s && s.length > 0 ? Nn(s) : [],
4516
4563
  [s]
4517
4564
  ), H = w === M.length - 1, K = M[w] ?? [];
4518
- we.useEffect(() => {
4565
+ ke.useEffect(() => {
4519
4566
  !d && s && s.length === 0 && !z && !y && (Q(!0), b({ applicantId: e, criteriaValueInputs: [] }).then(() => t == null ? void 0 : t()).catch(console.error));
4520
4567
  }, [d, s, z, y, b, e, t]);
4521
4568
  const ee = ae((G, _) => {
@@ -4526,7 +4573,7 @@ const In = ({
4526
4573
  }, []), E = ae(() => {
4527
4574
  const G = {};
4528
4575
  for (const { criterion: _ } of K) {
4529
- const J = Sn(_, P[_.id] ?? []);
4576
+ const J = Cn(_, P[_.id] ?? []);
4530
4577
  J && (G[_.id] = J);
4531
4578
  }
4532
4579
  return T((_) => ({ ..._, ...G })), Object.keys(G).length === 0;
@@ -4581,7 +4628,7 @@ const In = ({
4581
4628
  ] })
4582
4629
  ] }),
4583
4630
  /* @__PURE__ */ r(ne, { className: "space-y-6", children: K.map(({ criterion: G }) => /* @__PURE__ */ r(
4584
- Rn,
4631
+ En,
4585
4632
  {
4586
4633
  criterion: G,
4587
4634
  value: P[G.id] ?? [],
@@ -4620,8 +4667,8 @@ const In = ({
4620
4667
  ] }),
4621
4668
  p && /* @__PURE__ */ r("div", { className: "mx-6 mb-4 p-3 bg-red-50 border border-red-200 rounded", children: /* @__PURE__ */ r("p", { className: "text-red-600 text-sm", children: p.message }) })
4622
4669
  ] }) : null;
4623
- }, Rn = ({ criterion: e, value: t, error: n, locale: a, onChange: i }) => {
4624
- const s = Nn(e), c = e.valueDataType === Ke.Integer || e.valueDataType === Ke.Money || e.valueDataType === Ke.DigitOnly, d = kn(e), y = (p) => d ? wn(p, a) : p;
4670
+ }, En = ({ criterion: e, value: t, error: n, locale: a, onChange: i }) => {
4671
+ const s = In(e), c = e.valueDataType === qe.Integer || e.valueDataType === qe.Money || e.valueDataType === qe.DigitOnly, d = wn(e), y = (p) => d ? Sn(p, a) : p;
4625
4672
  return /* @__PURE__ */ o("div", { className: "space-y-2", children: [
4626
4673
  /* @__PURE__ */ o("label", { className: "block text-sm font-medium", style: { color: "var(--metakyc-text-primary, #111827)" }, children: [
4627
4674
  e.displayName,
@@ -4641,7 +4688,7 @@ const In = ({
4641
4688
  min: e.min,
4642
4689
  max: e.max,
4643
4690
  onKeyDown: (p) => {
4644
- e.valueDataType === Ke.DigitOnly && ["e", "E", "+", "-", "."].includes(p.key) && p.preventDefault();
4691
+ e.valueDataType === qe.DigitOnly && ["e", "E", "+", "-", "."].includes(p.key) && p.preventDefault();
4645
4692
  }
4646
4693
  }
4647
4694
  ),
@@ -4689,26 +4736,11 @@ const In = ({
4689
4736
  style: { display: "flex", alignItems: "center", gap: "10px", cursor: "pointer", margin: 0, padding: 0 },
4690
4737
  children: [
4691
4738
  /* @__PURE__ */ r(
4692
- "input",
4739
+ Be,
4693
4740
  {
4694
- type: "checkbox",
4695
4741
  checked: t.includes(p),
4696
4742
  onChange: (b) => {
4697
- b.target.checked ? i([...t, p]) : i(t.filter((P) => P !== p));
4698
- },
4699
- className: "metakyc-option-input",
4700
- style: {
4701
- width: "16px",
4702
- height: "16px",
4703
- minWidth: "16px",
4704
- flexShrink: 0,
4705
- flexGrow: 0,
4706
- accentColor: "var(--metakyc-primary, #2563eb)",
4707
- cursor: "pointer",
4708
- margin: 0,
4709
- padding: 0,
4710
- display: "inline-block",
4711
- verticalAlign: "middle"
4743
+ i(b ? [...t, p] : t.filter((P) => P !== p));
4712
4744
  }
4713
4745
  }
4714
4746
  ),
@@ -4737,7 +4769,7 @@ const In = ({
4737
4769
  }
4738
4770
  )
4739
4771
  ] });
4740
- }, En = ({
4772
+ }, Fn = ({
4741
4773
  applicantId: e,
4742
4774
  onComplete: t,
4743
4775
  onBack: n
@@ -4887,7 +4919,7 @@ function vt(e) {
4887
4919
  const t = Math.floor(e / 60), n = e % 60;
4888
4920
  return `${t.toString().padStart(2, "0")}:${n.toString().padStart(2, "0")}`;
4889
4921
  }
4890
- const Fn = ({
4922
+ const An = ({
4891
4923
  applicantId: e,
4892
4924
  onComplete: t,
4893
4925
  onBack: n
@@ -4982,7 +5014,7 @@ const Fn = ({
4982
5014
  /* @__PURE__ */ r("p", { style: { fontSize: "16px", fontWeight: 600, color: "var(--metakyc-danger, #ef4444)" }, children: "No test data available" }),
4983
5015
  b && /* @__PURE__ */ r("p", { style: { fontSize: "14px", color: "var(--metakyc-text-muted, #9ca3af)", marginTop: "8px" }, children: b })
4984
5016
  ] }) }) });
4985
- const Y = i.testAllowedMaxTry - i.totalFailedTries, ve = i.appropriatenessQuestions.length, pe = Object.keys(v).length;
5017
+ const Y = i.testAllowedMaxTry - i.totalFailedTries, we = i.appropriatenessQuestions.length, pe = Object.keys(v).length;
4986
5018
  if (H > 0)
4987
5019
  return /* @__PURE__ */ o(re, { children: [
4988
5020
  /* @__PURE__ */ r(Se, { children: /* @__PURE__ */ r("h2", { style: { fontSize: "18px", fontWeight: 700, color: "var(--metakyc-text-primary, #111827)", margin: 0 }, children: i.displayName }) }),
@@ -5085,7 +5117,7 @@ const Fn = ({
5085
5117
  margin: 0
5086
5118
  }, children: "No attempts remaining. Please contact support for assistance." }) })
5087
5119
  ] }) }),
5088
- /* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ r("div", { style: { display: "flex", justifyContent: "center", width: "100%", gap: "12px" }, children: g.success ? /* @__PURE__ */ r(Z, { type: "button", onClick: () => t == null ? void 0 : t(), children: "Continue" }) : /* @__PURE__ */ o(lt, { children: [
5120
+ /* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ r("div", { style: { display: "flex", justifyContent: "center", width: "100%", gap: "12px" }, children: g.success ? /* @__PURE__ */ r(Z, { type: "button", onClick: () => t == null ? void 0 : t(), children: "Continue" }) : /* @__PURE__ */ o(ct, { children: [
5089
5121
  Y > 0 && H <= 0 && /* @__PURE__ */ r(Z, { type: "button", onClick: B, children: "Retake Test" }),
5090
5122
  Y > 0 && H > 0 && /* @__PURE__ */ r(Z, { type: "button", onClick: B, children: "OK" }),
5091
5123
  Y <= 0 && n && /* @__PURE__ */ r(Z, { type: "button", variant: "outline", onClick: n, children: "Back" })
@@ -5161,7 +5193,7 @@ const Fn = ({
5161
5193
  /* @__PURE__ */ r(Z, { type: "button", onClick: V, disabled: Y <= 0, children: "Start Test" })
5162
5194
  ] }) })
5163
5195
  ] });
5164
- const me = i.appropriatenessQuestions[ee], ke = ee === ve - 1, F = pe === ve, U = T <= 60;
5196
+ const me = i.appropriatenessQuestions[ee], ve = ee === we - 1, F = pe === we, U = T <= 60;
5165
5197
  return /* @__PURE__ */ o(re, { children: [
5166
5198
  /* @__PURE__ */ o(Se, { children: [
5167
5199
  /* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between" }, children: [
@@ -5171,7 +5203,7 @@ const Fn = ({
5171
5203
  "Question ",
5172
5204
  ee + 1,
5173
5205
  " of ",
5174
- ve
5206
+ we
5175
5207
  ] })
5176
5208
  ] }),
5177
5209
  /* @__PURE__ */ o("div", { style: {
@@ -5219,7 +5251,7 @@ const Fn = ({
5219
5251
  height: "100%",
5220
5252
  borderRadius: "999px",
5221
5253
  backgroundColor: "var(--metakyc-primary, #2563eb)",
5222
- width: `${pe / ve * 100}%`,
5254
+ width: `${pe / we * 100}%`,
5223
5255
  transition: "width 0.3s ease"
5224
5256
  } }) }),
5225
5257
  /* @__PURE__ */ o("div", { style: {
@@ -5242,7 +5274,7 @@ const Fn = ({
5242
5274
  ] }),
5243
5275
  /* @__PURE__ */ o(ne, { children: [
5244
5276
  me && /* @__PURE__ */ r(
5245
- Tn,
5277
+ Pn,
5246
5278
  {
5247
5279
  question: me,
5248
5280
  index: ee,
@@ -5251,7 +5283,7 @@ const Fn = ({
5251
5283
  disabled: y
5252
5284
  }
5253
5285
  ),
5254
- ve > 1 && /* @__PURE__ */ r("div", { style: {
5286
+ we > 1 && /* @__PURE__ */ r("div", { style: {
5255
5287
  display: "flex",
5256
5288
  justifyContent: "center",
5257
5289
  gap: "6px",
@@ -5320,7 +5352,7 @@ const Fn = ({
5320
5352
  }
5321
5353
  ),
5322
5354
  /* @__PURE__ */ o("div", { style: { display: "flex", gap: "8px" }, children: [
5323
- !ke && /* @__PURE__ */ r(
5355
+ !ve && /* @__PURE__ */ r(
5324
5356
  Z,
5325
5357
  {
5326
5358
  type: "button",
@@ -5328,7 +5360,7 @@ const Fn = ({
5328
5360
  children: "Next"
5329
5361
  }
5330
5362
  ),
5331
- (ke || F) && /* @__PURE__ */ r(
5363
+ (ve || F) && /* @__PURE__ */ r(
5332
5364
  Z,
5333
5365
  {
5334
5366
  type: "button",
@@ -5342,7 +5374,7 @@ const Fn = ({
5342
5374
  ] })
5343
5375
  ] }) })
5344
5376
  ] });
5345
- }, An = {
5377
+ }, Tn = {
5346
5378
  questions: /* @__PURE__ */ o("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
5347
5379
  /* @__PURE__ */ r("path", { d: "M9 11l3 3L22 4" }),
5348
5380
  /* @__PURE__ */ r("path", { d: "M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11" })
@@ -5374,7 +5406,7 @@ const Fn = ({
5374
5406
  /* @__PURE__ */ r("div", { style: {
5375
5407
  color: i ? "#f59e0b" : "var(--metakyc-primary, #2563eb)",
5376
5408
  flexShrink: 0
5377
- }, children: An[e] }),
5409
+ }, children: Tn[e] }),
5378
5410
  /* @__PURE__ */ o("div", { children: [
5379
5411
  /* @__PURE__ */ r("p", { style: { fontSize: "12px", color: "var(--metakyc-text-muted, #9ca3af)", margin: 0 }, children: t }),
5380
5412
  /* @__PURE__ */ r("p", { style: {
@@ -5386,7 +5418,7 @@ const Fn = ({
5386
5418
  }, children: n })
5387
5419
  ] })
5388
5420
  ] });
5389
- }, Tn = ({ question: e, selectedAnswer: t, onSelect: n, disabled: a }) => /* @__PURE__ */ o("div", { children: [
5421
+ }, Pn = ({ question: e, selectedAnswer: t, onSelect: n, disabled: a }) => /* @__PURE__ */ o("div", { children: [
5390
5422
  /* @__PURE__ */ o("div", { style: { marginBottom: "16px" }, children: [
5391
5423
  e.groupName && /* @__PURE__ */ r("span", { style: {
5392
5424
  display: "inline-block",
@@ -5468,13 +5500,13 @@ const Fn = ({
5468
5500
  s
5469
5501
  );
5470
5502
  }) })
5471
- ] }), Pn = ({
5503
+ ] }), Ln = ({
5472
5504
  applicantId: e,
5473
5505
  onComplete: t,
5474
5506
  onBack: n
5475
5507
  }) => {
5476
- var Ze, He, it, Ye;
5477
- const { applicantService: a, baseInformationService: i, identityService: s, config: c, currentTheme: d } = Te(), { identityData: y, provider: p, token: b, isLoading: P, error: v, requestIdentity: A, restartIdentity: T } = Jr(e), [w, N] = k(null), [z, Q] = k(null), [M, H] = k([]), [K, ee] = k([]), [E, g] = k(!0), [$, V] = k(!1), [G, _] = k(null), [J, ie] = k(!1), Y = we.useRef(!1), [ve, pe] = k({}), [me, ke] = k({}), F = d != null && d.reviewPageFields && d.reviewPageFields.length > 0 ? d.reviewPageFields[0] : null, U = !!(d != null && d.reviewPageDisabled), B = de(!1);
5508
+ var Xe, je, ot, Qe;
5509
+ const { applicantService: a, baseInformationService: i, identityService: s, config: c, currentTheme: d } = Te(), { identityData: y, provider: p, token: b, isLoading: P, error: v, requestIdentity: A, restartIdentity: T } = Jr(e), [w, N] = k(null), [z, Q] = k(null), [M, H] = k([]), [K, ee] = k([]), [E, g] = k(!0), [$, V] = k(!1), [G, _] = k(null), [J, ie] = k(!1), Y = ke.useRef(!1), [we, pe] = k({}), [me, ve] = k({}), F = d != null && d.reviewPageFields && d.reviewPageFields.length > 0 ? d.reviewPageFields[0] : null, U = !!(d != null && d.reviewPageDisabled), B = de(!1);
5478
5510
  B.current = U;
5479
5511
  const j = Gt({
5480
5512
  defaultValues: {
@@ -5584,9 +5616,9 @@ const Fn = ({
5584
5616
  if (fe) {
5585
5617
  console.log("[Sumsub] Fetching access token for Web SDK…"), _(null), (async () => {
5586
5618
  try {
5587
- const O = await s.refreshSumsubToken(e), q = Ge.parseProviderConfig(p, b, c);
5619
+ const O = await s.refreshSumsubToken(e), q = Je.parseProviderConfig(p, b, c);
5588
5620
  q.accessToken = O, q.onTokenRefresh = () => s.refreshSumsubToken(e);
5589
- const W = Ge.createProvider(p, q);
5621
+ const W = Je.createProvider(p, q);
5590
5622
  W.onComplete((X) => {
5591
5623
  console.log("[Sumsub] Verification complete:", X), t == null || t();
5592
5624
  }), W.onError((X) => {
@@ -5604,8 +5636,8 @@ const Fn = ({
5604
5636
  if (new URL(b.url), h === Oe.SardinAI) {
5605
5637
  console.log("[SardinAI] Initializing Risk SDK in background...");
5606
5638
  try {
5607
- const O = Ge.parseProviderConfig(p, b, c);
5608
- Ge.createProvider(p, O).initialize().then(() => console.log("[SardinAI] Risk SDK initialized in background")).catch((W) => console.warn("[SardinAI] Risk SDK init failed (non-blocking):", W));
5639
+ const O = Je.parseProviderConfig(p, b, c);
5640
+ Je.createProvider(p, O).initialize().then(() => console.log("[SardinAI] Risk SDK initialized in background")).catch((W) => console.warn("[SardinAI] Risk SDK init failed (non-blocking):", W));
5609
5641
  } catch (O) {
5610
5642
  console.warn("[SardinAI] Risk SDK setup failed (non-blocking):", O);
5611
5643
  }
@@ -5619,7 +5651,7 @@ const Fn = ({
5619
5651
  if (h === Oe.SardinAI) {
5620
5652
  console.log("[SardinAI] No URL provided - initializing Risk SDK only..."), _(null);
5621
5653
  try {
5622
- const O = Ge.parseProviderConfig(p, b, c), q = Ge.createProvider(p, O);
5654
+ const O = Je.parseProviderConfig(p, b, c), q = Je.createProvider(p, O);
5623
5655
  q.initialize().then(() => {
5624
5656
  console.log("[SardinAI] Risk SDK initialized successfully"), N(q), setTimeout(() => t == null ? void 0 : t(), 2e3);
5625
5657
  }).catch((W) => {
@@ -5635,7 +5667,7 @@ const Fn = ({
5635
5667
  }
5636
5668
  try {
5637
5669
  _(null);
5638
- const O = Ge.parseProviderConfig(p, b, c), q = Ge.createProvider(p, O);
5670
+ const O = Je.parseProviderConfig(p, b, c), q = Je.createProvider(p, O);
5639
5671
  h === Oe.Onfido && q.initialize("identity-container").catch((W) => {
5640
5672
  console.error("[Onfido] Initialization error:", W), _(`Failed to initialize: ${W.message}`);
5641
5673
  }), N(q);
@@ -5860,7 +5892,7 @@ const Fn = ({
5860
5892
  return String(O);
5861
5893
  }, $e = ({ helpText: h }) => {
5862
5894
  const [O, q] = k(!1), W = de(null), [, X] = k({ top: 0, left: 0 });
5863
- return /* @__PURE__ */ o(lt, { children: [
5895
+ return /* @__PURE__ */ o(ct, { children: [
5864
5896
  /* @__PURE__ */ r(
5865
5897
  "button",
5866
5898
  {
@@ -5955,7 +5987,7 @@ const Fn = ({
5955
5987
  }, Ie = (h, O) => O ? /* @__PURE__ */ o("div", { style: { display: "flex", alignItems: "flex-start", gap: 5, flexWrap: "nowrap" }, children: [
5956
5988
  /* @__PURE__ */ r("div", { style: { flex: 1, minWidth: 0 }, children: h }),
5957
5989
  /* @__PURE__ */ r("div", { style: { paddingTop: 24 }, children: /* @__PURE__ */ r($e, { helpText: O }) })
5958
- ] }) : h, _e = (h, O) => {
5990
+ ] }) : h, He = (h, O) => {
5959
5991
  const q = `cf-${O}`, W = h.paramName ?? "", X = me[W];
5960
5992
  if (h.customType === "br")
5961
5993
  return /* @__PURE__ */ r("div", { style: { ...oe(h.colSpan), minHeight: "0.5rem" } }, q);
@@ -5997,21 +6029,14 @@ const Fn = ({
5997
6029
  return /* @__PURE__ */ r("div", { style: oe(h.colSpan), children: Ie(
5998
6030
  /* @__PURE__ */ o("label", { style: { display: "flex", alignItems: "flex-start", gap: 8, cursor: "pointer" }, children: [
5999
6031
  /* @__PURE__ */ r(
6000
- "input",
6032
+ Be,
6001
6033
  {
6002
- type: "checkbox",
6003
6034
  checked: !!m,
6004
- onChange: (I) => ke((L) => ({ ...L, [W]: String(I.target.checked) })),
6005
- style: {
6006
- width: 16,
6007
- height: 16,
6008
- flexShrink: 0,
6009
- marginTop: 2,
6010
- accentColor: "var(--metakyc-primary, #6366f1)"
6011
- }
6035
+ onChange: (I) => ve((L) => ({ ...L, [W]: String(I) })),
6036
+ style: { marginTop: 2 }
6012
6037
  }
6013
6038
  ),
6014
- /* @__PURE__ */ r("span", { className: "text-sm", style: { color: "var(--metakyc-text-primary, #111827)" }, children: h.customType === "link_checkbox" && h.linkUrl ? /* @__PURE__ */ o(lt, { children: [
6039
+ /* @__PURE__ */ r("span", { className: "text-sm", style: { color: "var(--metakyc-text-primary, #111827)" }, children: h.customType === "link_checkbox" && h.linkUrl ? /* @__PURE__ */ o(ct, { children: [
6015
6040
  /* @__PURE__ */ r("a", { href: h.linkUrl, target: "_blank", rel: "noopener noreferrer", style: { color: "var(--metakyc-primary, #6366f1)", textDecoration: "underline" }, children: h.linkText || h.label }),
6016
6041
  h.label && h.linkText ? ` ${h.label}` : ""
6017
6042
  ] }) : h.displayText || h.label })
@@ -6021,7 +6046,7 @@ const Fn = ({
6021
6046
  }
6022
6047
  if (h.customType === "group_checkbox") {
6023
6048
  const m = Array.isArray(X) ? X : X ? [X] : [], I = (L) => {
6024
- h.singleSelect ? ke((u) => ({ ...u, [W]: m[0] === L ? [] : [L] })) : ke((u) => ({
6049
+ h.singleSelect ? ve((u) => ({ ...u, [W]: m[0] === L ? [] : [L] })) : ve((u) => ({
6025
6050
  ...u,
6026
6051
  [W]: m.includes(L) ? m.filter((l) => l !== L) : [...m, L]
6027
6052
  }));
@@ -6031,12 +6056,11 @@ const Fn = ({
6031
6056
  h.label && /* @__PURE__ */ r("p", { className: "text-sm font-medium", style: { color: "var(--metakyc-text-primary, #111827)" }, children: h.displayText || h.label }),
6032
6057
  (h.options || []).map((L) => /* @__PURE__ */ o("label", { style: { display: "flex", alignItems: "flex-start", gap: 8, cursor: "pointer" }, children: [
6033
6058
  /* @__PURE__ */ r(
6034
- "input",
6059
+ Be,
6035
6060
  {
6036
- type: "checkbox",
6037
6061
  checked: m.includes(L.value),
6038
6062
  onChange: () => I(L.value),
6039
- style: { width: 16, height: 16, flexShrink: 0, marginTop: 2, accentColor: "var(--metakyc-primary, #6366f1)" }
6063
+ style: { marginTop: 2 }
6040
6064
  }
6041
6065
  ),
6042
6066
  /* @__PURE__ */ r("span", { className: "text-sm", style: { color: "var(--metakyc-text-primary, #111827)" }, children: L.label })
@@ -6056,7 +6080,7 @@ const Fn = ({
6056
6080
  name: `rg-${W}`,
6057
6081
  value: m.value,
6058
6082
  checked: X === m.value,
6059
- onChange: () => ke((I) => ({ ...I, [W]: m.value })),
6083
+ onChange: () => ve((I) => ({ ...I, [W]: m.value })),
6060
6084
  style: { width: 16, height: 16, flexShrink: 0, marginTop: 2, accentColor: "var(--metakyc-primary, #6366f1)" }
6061
6085
  }
6062
6086
  ),
@@ -6070,17 +6094,17 @@ const Fn = ({
6070
6094
  {
6071
6095
  label: h.displayText || h.label || W,
6072
6096
  value: String(X ?? ""),
6073
- onChange: (m) => ke((I) => ({ ...I, [W]: m.target.value }))
6097
+ onChange: (m) => ve((I) => ({ ...I, [W]: m.target.value }))
6074
6098
  }
6075
6099
  ),
6076
6100
  h.helpText
6077
6101
  ) }, q);
6078
- }, at = (h, O) => {
6079
- if (h.isCustom) return _e(h, O);
6080
- const q = h.name ?? "", W = nt[q], X = h.displayText || (W == null ? void 0 : W.label) || q, m = ve[q] ?? "", I = q === "mobileCountryCode", L = !!(W != null && W.countriesType) && !I;
6102
+ }, it = (h, O) => {
6103
+ if (h.isCustom) return He(h, O);
6104
+ const q = h.name ?? "", W = at[q], X = h.displayText || (W == null ? void 0 : W.label) || q, m = we[q] ?? "", I = q === "mobileCountryCode", L = !!(W != null && W.countriesType) && !I;
6081
6105
  return h.editable ? I ? /* @__PURE__ */ r("div", { style: oe(h.colSpan ?? 2), children: Ie(
6082
6106
  /* @__PURE__ */ r(
6083
- qe,
6107
+ Ve,
6084
6108
  {
6085
6109
  label: X,
6086
6110
  value: String(m),
@@ -6091,7 +6115,7 @@ const Fn = ({
6091
6115
  h.helpText
6092
6116
  ) }, `epc-${O}`) : L ? /* @__PURE__ */ r("div", { style: oe(h.colSpan ?? 2), children: Ie(
6093
6117
  /* @__PURE__ */ r(
6094
- qe,
6118
+ Ve,
6095
6119
  {
6096
6120
  label: X,
6097
6121
  value: String(m),
@@ -6112,7 +6136,7 @@ const Fn = ({
6112
6136
  ),
6113
6137
  h.helpText
6114
6138
  ) }, `ei-${O}`) : /* @__PURE__ */ r("div", { style: oe(h.colSpan ?? 2), children: Ie(
6115
- /* @__PURE__ */ o(lt, { children: [
6139
+ /* @__PURE__ */ o(ct, { children: [
6116
6140
  /* @__PURE__ */ r("label", { className: "block text-sm font-medium mb-0.5", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: X }),
6117
6141
  /* @__PURE__ */ r("p", { className: "text-sm", style: { color: "var(--metakyc-text-primary, #111827)", minHeight: "1.5rem" }, children: Ne(q, m) })
6118
6142
  ] }),
@@ -6128,7 +6152,7 @@ const Fn = ({
6128
6152
  /* @__PURE__ */ r("h2", { className: "text-lg font-bold", style: { color: "var(--metakyc-text-primary, #111827)" }, children: h }),
6129
6153
  /* @__PURE__ */ r("p", { className: "mt-1 text-sm", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: O })
6130
6154
  ] }),
6131
- /* @__PURE__ */ r(ne, { children: /* @__PURE__ */ r("div", { style: { display: "grid", gridTemplateColumns: "repeat(4, minmax(0, 1fr))", gap: "1rem" }, children: F.fields.map((q, W) => at(q, W)) }) }),
6155
+ /* @__PURE__ */ r(ne, { children: /* @__PURE__ */ r("div", { style: { display: "grid", gridTemplateColumns: "repeat(4, minmax(0, 1fr))", gap: "1rem" }, children: F.fields.map((q, W) => it(q, W)) }) }),
6132
6156
  /* @__PURE__ */ o(Ce, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
6133
6157
  n && /* @__PURE__ */ r(Z, { type: "button", variant: "outline", onClick: n, children: "Back" }),
6134
6158
  /* @__PURE__ */ r(Z, { type: "submit", isLoading: P, children: "Confirm and Start Verification" })
@@ -6142,9 +6166,9 @@ const Fn = ({
6142
6166
  ] }),
6143
6167
  /* @__PURE__ */ o(ne, { className: "space-y-6", children: [
6144
6168
  /* @__PURE__ */ r("div", { className: "space-y-4 pb-4", style: { borderBottom: "1px solid var(--metakyc-border, #e5e7eb)" }, children: [
6145
- { label: "Name", value: `${((Ze = z == null ? void 0 : z.applicantRequestData) == null ? void 0 : Ze.firstName) || ""} ${((He = z == null ? void 0 : z.applicantRequestData) == null ? void 0 : He.lastName) || ""}`.trim() },
6146
- { label: "Email", value: (it = z == null ? void 0 : z.applicantRequestData) == null ? void 0 : it.email },
6147
- { label: "Date of Birth", value: ((Ye = z == null ? void 0 : z.applicantRequestData) == null ? void 0 : Ye.dateOfBirth) || "Not provided" }
6169
+ { label: "Name", value: `${((Xe = z == null ? void 0 : z.applicantRequestData) == null ? void 0 : Xe.firstName) || ""} ${((je = z == null ? void 0 : z.applicantRequestData) == null ? void 0 : je.lastName) || ""}`.trim() },
6170
+ { label: "Email", value: (ot = z == null ? void 0 : z.applicantRequestData) == null ? void 0 : ot.email },
6171
+ { label: "Date of Birth", value: ((Qe = z == null ? void 0 : z.applicantRequestData) == null ? void 0 : Qe.dateOfBirth) || "Not provided" }
6148
6172
  ].map(({ label: h, value: O }) => /* @__PURE__ */ o("div", { children: [
6149
6173
  /* @__PURE__ */ r("label", { className: "block text-sm font-medium", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: h }),
6150
6174
  /* @__PURE__ */ r("p", { className: "mt-1 text-base", style: { color: "var(--metakyc-text-primary, #111827)" }, children: O })
@@ -6153,12 +6177,12 @@ const Fn = ({
6153
6177
  /* @__PURE__ */ r("h3", { className: "text-base font-semibold", style: { color: "var(--metakyc-text-primary, #111827)" }, children: "Address Information" }),
6154
6178
  /* @__PURE__ */ o("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
6155
6179
  /* @__PURE__ */ r(
6156
- et,
6180
+ tt,
6157
6181
  {
6158
6182
  control: j.control,
6159
6183
  name: "country",
6160
6184
  render: ({ field: h }) => /* @__PURE__ */ r(
6161
- qe,
6185
+ Ve,
6162
6186
  {
6163
6187
  label: "Country",
6164
6188
  value: h.value,
@@ -6169,12 +6193,12 @@ const Fn = ({
6169
6193
  }
6170
6194
  ),
6171
6195
  /* @__PURE__ */ r(
6172
- et,
6196
+ tt,
6173
6197
  {
6174
6198
  control: j.control,
6175
6199
  name: "nationality",
6176
6200
  render: ({ field: h }) => /* @__PURE__ */ r(
6177
- qe,
6201
+ Ve,
6178
6202
  {
6179
6203
  label: "Nationality",
6180
6204
  value: h.value,
@@ -6186,14 +6210,14 @@ const Fn = ({
6186
6210
  )
6187
6211
  ] }),
6188
6212
  /* @__PURE__ */ o("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
6189
- /* @__PURE__ */ r(et, { control: j.control, name: "street", render: ({ field: h }) => /* @__PURE__ */ r(xe, { ...h, label: "Street" }) }),
6190
- /* @__PURE__ */ r(et, { control: j.control, name: "streetNumber", render: ({ field: h }) => /* @__PURE__ */ r(xe, { ...h, label: "Street Number" }) })
6213
+ /* @__PURE__ */ r(tt, { control: j.control, name: "street", render: ({ field: h }) => /* @__PURE__ */ r(xe, { ...h, label: "Street" }) }),
6214
+ /* @__PURE__ */ r(tt, { control: j.control, name: "streetNumber", render: ({ field: h }) => /* @__PURE__ */ r(xe, { ...h, label: "Street Number" }) })
6191
6215
  ] }),
6192
6216
  /* @__PURE__ */ o("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: [
6193
- /* @__PURE__ */ r(et, { control: j.control, name: "city", render: ({ field: h }) => /* @__PURE__ */ r(xe, { ...h, label: "City" }) }),
6194
- /* @__PURE__ */ r(et, { control: j.control, name: "zip", render: ({ field: h }) => /* @__PURE__ */ r(xe, { ...h, label: "ZIP / Postal Code" }) })
6217
+ /* @__PURE__ */ r(tt, { control: j.control, name: "city", render: ({ field: h }) => /* @__PURE__ */ r(xe, { ...h, label: "City" }) }),
6218
+ /* @__PURE__ */ r(tt, { control: j.control, name: "zip", render: ({ field: h }) => /* @__PURE__ */ r(xe, { ...h, label: "ZIP / Postal Code" }) })
6195
6219
  ] }),
6196
- /* @__PURE__ */ r(et, { control: j.control, name: "phonenumber", render: ({ field: h }) => /* @__PURE__ */ r(xe, { ...h, label: "Phone Number", type: "tel" }) })
6220
+ /* @__PURE__ */ r(tt, { control: j.control, name: "phonenumber", render: ({ field: h }) => /* @__PURE__ */ r(xe, { ...h, label: "Phone Number", type: "tel" }) })
6197
6221
  ] })
6198
6222
  ] }),
6199
6223
  /* @__PURE__ */ o(Ce, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
@@ -6209,42 +6233,42 @@ const Fn = ({
6209
6233
  onContinue: i,
6210
6234
  onContactSupport: s
6211
6235
  }) => {
6212
- const d = e === tt.Approved ? {
6236
+ const d = e === rt.Approved ? {
6213
6237
  type: "success",
6214
6238
  title: "Verification Approved",
6215
6239
  icon: "✓",
6216
6240
  iconBg: "bg-green-100 dark:bg-green-900/30",
6217
6241
  iconColor: "text-green-600 dark:text-green-400",
6218
6242
  message: "Your identity verification has been successfully approved."
6219
- } : e === tt.Rejected ? {
6243
+ } : e === rt.Rejected ? {
6220
6244
  type: "error",
6221
6245
  title: "Verification Rejected",
6222
6246
  icon: "✕",
6223
6247
  iconBg: "bg-red-100 dark:bg-red-900/30",
6224
6248
  iconColor: "text-red-600 dark:text-red-400",
6225
6249
  message: "Unfortunately, your identity verification was not approved."
6226
- } : e === tt.Pending || e === tt.InProgress ? {
6250
+ } : e === rt.Pending || e === rt.InProgress ? {
6227
6251
  type: "pending",
6228
6252
  title: "Verification Pending",
6229
6253
  icon: "⏱",
6230
6254
  iconBg: "bg-blue-100 dark:bg-blue-900/30",
6231
6255
  iconColor: "text-blue-600 dark:text-blue-400",
6232
6256
  message: "Your identity verification is currently being processed."
6233
- } : t === rt.Approved ? {
6257
+ } : t === nt.Approved ? {
6234
6258
  type: "success",
6235
6259
  title: "Application Approved",
6236
6260
  icon: "✓",
6237
6261
  iconBg: "bg-green-100 dark:bg-green-900/30",
6238
6262
  iconColor: "text-green-600 dark:text-green-400",
6239
6263
  message: "Your application has been approved."
6240
- } : t === rt.Reject ? {
6264
+ } : t === nt.Reject ? {
6241
6265
  type: "error",
6242
6266
  title: "Application Rejected",
6243
6267
  icon: "✕",
6244
6268
  iconBg: "bg-red-100 dark:bg-red-900/30",
6245
6269
  iconColor: "text-red-600 dark:text-red-400",
6246
6270
  message: "Your application has been rejected."
6247
- } : t === rt.UnderReview || t === rt.AdminReview ? {
6271
+ } : t === nt.UnderReview || t === nt.AdminReview ? {
6248
6272
  type: "pending",
6249
6273
  title: "Under Review",
6250
6274
  icon: "📋",
@@ -6294,7 +6318,7 @@ const Fn = ({
6294
6318
  $t,
6295
6319
  {
6296
6320
  variant: d.type === "success" ? "success" : d.type === "error" ? "danger" : d.type === "pending" ? "warning" : "info",
6297
- children: e != null ? tt[e] : rt[t]
6321
+ children: e != null ? rt[e] : nt[t]
6298
6322
  }
6299
6323
  ) }),
6300
6324
  /* @__PURE__ */ r("p", { className: "text-center mb-6 max-w-md mx-auto", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: a || d.message }),
@@ -6326,24 +6350,24 @@ const Fn = ({
6326
6350
  /* @__PURE__ */ r("div", { className: "mt-6 pt-6", style: { borderTop: "1px solid var(--metakyc-border, #e5e7eb)" }, children: /* @__PURE__ */ o("div", { className: "grid grid-cols-2 gap-4 text-sm", children: [
6327
6351
  /* @__PURE__ */ o("div", { children: [
6328
6352
  /* @__PURE__ */ r("span", { style: { color: "var(--metakyc-text-muted, #9ca3af)" }, children: "KYC Status:" }),
6329
- /* @__PURE__ */ r("div", { className: "font-medium mt-1", style: { color: "var(--metakyc-text-primary, #111827)" }, children: e != null ? tt[e] : "Not Available" })
6353
+ /* @__PURE__ */ r("div", { className: "font-medium mt-1", style: { color: "var(--metakyc-text-primary, #111827)" }, children: e != null ? rt[e] : "Not Available" })
6330
6354
  ] }),
6331
6355
  /* @__PURE__ */ o("div", { children: [
6332
6356
  /* @__PURE__ */ r("span", { style: { color: "var(--metakyc-text-muted, #9ca3af)" }, children: "Review Status:" }),
6333
- /* @__PURE__ */ r("div", { className: "font-medium mt-1", style: { color: "var(--metakyc-text-primary, #111827)" }, children: rt[t] })
6357
+ /* @__PURE__ */ r("div", { className: "font-medium mt-1", style: { color: "var(--metakyc-text-primary, #111827)" }, children: nt[t] })
6334
6358
  ] })
6335
6359
  ] }) })
6336
6360
  ] }),
6337
6361
  /* @__PURE__ */ o(Ce, { style: { display: "flex", justifyContent: "center", gap: "1rem" }, children: [
6338
6362
  d.type === "success" && i && /* @__PURE__ */ r(Z, { onClick: i, size: "lg", children: "Continue" }),
6339
- d.type === "error" && /* @__PURE__ */ o(lt, { children: [
6363
+ d.type === "error" && /* @__PURE__ */ o(ct, { children: [
6340
6364
  s && /* @__PURE__ */ r(Z, { variant: "outline", onClick: s, children: "Contact Support" }),
6341
6365
  i && /* @__PURE__ */ r(Z, { onClick: i, children: "Try Again" })
6342
6366
  ] }),
6343
6367
  d.type === "pending" && /* @__PURE__ */ r("div", { className: "text-center", children: /* @__PURE__ */ r("p", { className: "text-sm text-gray-500 dark:text-gray-400", children: "Please check back later or wait for our email notification" }) })
6344
6368
  ] })
6345
6369
  ] });
6346
- }, Ln = ({ config: e, className: t = "" }) => !(e != null && e.visible) || !(e != null && e.url) ? null : /* @__PURE__ */ r("div", { className: `metakyc-logo ${t}`, children: /* @__PURE__ */ r(
6370
+ }, Dn = ({ config: e, className: t = "" }) => !(e != null && e.visible) || !(e != null && e.url) ? null : /* @__PURE__ */ r("div", { className: `metakyc-logo ${t}`, children: /* @__PURE__ */ r(
6347
6371
  "img",
6348
6372
  {
6349
6373
  src: e.url,
@@ -6371,7 +6395,7 @@ const Fn = ({
6371
6395
  className: "metakyc-header-title flex items-center text-xl font-bold",
6372
6396
  style: { color: "var(--metakyc-text-primary, #111827)" },
6373
6397
  children: [
6374
- s && /* @__PURE__ */ r(Ln, { config: a.logo }),
6398
+ s && /* @__PURE__ */ r(Dn, { config: a.logo }),
6375
6399
  s && c && /* @__PURE__ */ r(
6376
6400
  "span",
6377
6401
  {
@@ -6386,10 +6410,10 @@ const Fn = ({
6386
6410
  t && /* @__PURE__ */ r("p", { className: "text-sm mt-1", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: t })
6387
6411
  ] });
6388
6412
  }, ft = ["firstName", "lastName", "email", "phonenumber", "dateOfBirth"];
6389
- function st(e) {
6413
+ function lt(e) {
6390
6414
  return e == null || e === "" || Array.isArray(e) && e.length === 0;
6391
6415
  }
6392
- const pt = {
6416
+ const Mn = {
6393
6417
  width: "16px",
6394
6418
  height: "16px",
6395
6419
  minWidth: "16px",
@@ -6402,8 +6426,8 @@ const pt = {
6402
6426
  display: "inline-block",
6403
6427
  verticalAlign: "middle"
6404
6428
  }, Lt = ({ helpText: e, children: t }) => {
6405
- const [n, a] = we.useState(!1);
6406
- if (!e) return /* @__PURE__ */ r(lt, { children: t });
6429
+ const [n, a] = ke.useState(!1);
6430
+ if (!e) return /* @__PURE__ */ r(ct, { children: t });
6407
6431
  const i = n ? /* @__PURE__ */ r(
6408
6432
  "div",
6409
6433
  {
@@ -6522,7 +6546,7 @@ const pt = {
6522
6546
  ),
6523
6547
  typeof document < "u" && i ? St(i, document.body) : null
6524
6548
  ] });
6525
- }, Xn = ({
6549
+ }, ta = ({
6526
6550
  workflowKey: e,
6527
6551
  externalRefId: t,
6528
6552
  onSuccess: n,
@@ -6570,10 +6594,10 @@ const pt = {
6570
6594
  if (N)
6571
6595
  for (const x of N)
6572
6596
  for (const C of x.fields)
6573
- !C.isCustom && C.name && M.has(C.name) && l.add(C.countriesType ?? ((f = nt[C.name]) == null ? void 0 : f.countriesType));
6597
+ !C.isCustom && C.name && M.has(C.name) && l.add(C.countriesType ?? ((f = at[C.name]) == null ? void 0 : f.countriesType));
6574
6598
  else
6575
6599
  for (const x of Q)
6576
- M.has(x) && l.add((D = nt[x]) == null ? void 0 : D.countriesType);
6600
+ M.has(x) && l.add((D = at[x]) == null ? void 0 : D.countriesType);
6577
6601
  return l.size === 0 && l.add(void 0), Array.from(l);
6578
6602
  }, [Q, N]), [K, ee] = k({}), [E, g] = k(!0), $ = de(/* @__PURE__ */ new Set()), V = de(/* @__PURE__ */ new Set());
6579
6603
  ge(() => {
@@ -6615,7 +6639,7 @@ const pt = {
6615
6639
  }, [H, c]);
6616
6640
  const G = (l, f) => {
6617
6641
  var C;
6618
- const D = f ?? ((C = nt[l]) == null ? void 0 : C.countriesType), x = D != null ? String(D) : "all";
6642
+ const D = f ?? ((C = at[l]) == null ? void 0 : C.countriesType), x = D != null ? String(D) : "all";
6619
6643
  return K[x] || [];
6620
6644
  }, _ = {
6621
6645
  firstName: 1,
@@ -6644,7 +6668,7 @@ const pt = {
6644
6668
  Object.entries(v).filter(([l]) => l in _)
6645
6669
  ), ie = Object.fromEntries(
6646
6670
  Object.entries(A).filter(([l]) => l in _)
6647
- ), [Y, ve] = k({
6671
+ ), [Y, we] = k({
6648
6672
  workflowKey: p,
6649
6673
  firstName: "",
6650
6674
  lastName: "",
@@ -6673,7 +6697,7 @@ const pt = {
6673
6697
  ...ie
6674
6698
  }), pe = Object.fromEntries(
6675
6699
  Object.entries(v).filter(([l]) => !(l in J) && l !== "externalRefId" && l !== "workflowKey")
6676
- ), [me, ke] = k({ ...pe }), [F, U] = k(0), [B, j] = k({}), [fe, R] = k(null), [te, ye] = k(!1), oe = (l, f) => ve((D) => ({ ...D, [l]: f })), Ne = (l, f) => ke((D) => ({ ...D, [l]: f })), $e = (l) => !l.conditionalOn || me[l.conditionalOn] === "true", Ie = N && F < N.length - 1 ? F + 1 : -1, _e = N && F > 0 ? F - 1 : -1, at = (l) => {
6700
+ ), [me, ve] = k({ ...pe }), [F, U] = k(0), [B, j] = k({}), [fe, R] = k(null), [te, ye] = k(!1), oe = (l, f) => we((D) => ({ ...D, [l]: f })), Ne = (l, f) => ve((D) => ({ ...D, [l]: f })), $e = (l) => !l.conditionalOn || me[l.conditionalOn] === "true", Ie = N && F < N.length - 1 ? F + 1 : -1, He = N && F > 0 ? F - 1 : -1, it = (l) => {
6677
6701
  var D;
6678
6702
  const f = {};
6679
6703
  for (const x of l.fields)
@@ -6685,30 +6709,30 @@ const pt = {
6685
6709
  }
6686
6710
  } else if (x.name) {
6687
6711
  const C = x.name;
6688
- if (z.includes(C) && st(Y[C])) {
6689
- const S = x.displayText || ((D = nt[C]) == null ? void 0 : D.label) || C;
6712
+ if (z.includes(C) && lt(Y[C])) {
6713
+ const S = x.displayText || ((D = at[C]) == null ? void 0 : D.label) || C;
6690
6714
  f[C] = `${S} is required.`;
6691
6715
  }
6692
6716
  }
6693
6717
  return f;
6694
- }, Ze = async () => {
6718
+ }, Xe = async () => {
6695
6719
  if (!N) return;
6696
6720
  const l = N[F];
6697
6721
  if (l.conditionalOn && !$e(l)) {
6698
- j({}), Ie >= 0 ? U(Ie) : await He();
6722
+ j({}), Ie >= 0 ? U(Ie) : await je();
6699
6723
  return;
6700
6724
  }
6701
- const f = at(l);
6725
+ const f = it(l);
6702
6726
  if (Object.keys(f).length > 0) {
6703
6727
  j(f);
6704
6728
  return;
6705
6729
  }
6706
- j({}), Ie >= 0 ? U(Ie) : await He();
6707
- }, He = async () => {
6730
+ j({}), Ie >= 0 ? U(Ie) : await je();
6731
+ }, je = async () => {
6708
6732
  if (N) {
6709
6733
  let l = {};
6710
6734
  for (const f of N)
6711
- $e(f) && (l = { ...l, ...at(f) });
6735
+ $e(f) && (l = { ...l, ...it(f) });
6712
6736
  if (Object.keys(l).length > 0) {
6713
6737
  j(l);
6714
6738
  return;
@@ -6730,19 +6754,19 @@ const pt = {
6730
6754
  for (const S of C.fields)
6731
6755
  if (!S.isCustom && S.name) {
6732
6756
  const ue = S.name, se = Y[ue];
6733
- st(se) || (l[ue] = se);
6757
+ lt(se) || (l[ue] = se);
6734
6758
  }
6735
6759
  }
6736
6760
  for (const C of ft)
6737
6761
  if (l[C] === void 0) {
6738
6762
  const S = Y[C];
6739
- st(S) || (l[C] = S);
6763
+ lt(S) || (l[C] = S);
6740
6764
  }
6741
6765
  } else
6742
6766
  Q.forEach((C) => {
6743
6767
  if (C === "externalRefId") return;
6744
6768
  const S = Y[C];
6745
- st(S) || (l[C] = S);
6769
+ lt(S) || (l[C] = S);
6746
6770
  });
6747
6771
  const f = [];
6748
6772
  if (N) {
@@ -6759,7 +6783,7 @@ const pt = {
6759
6783
  }
6760
6784
  }
6761
6785
  for (const [C, S] of Object.entries(J))
6762
- l[C] === void 0 && !st(S) && (l[C] = S);
6786
+ l[C] === void 0 && !lt(S) && (l[C] = S);
6763
6787
  const D = new Set(f.map((C) => C.paramName));
6764
6788
  for (const [C, S] of Object.entries(pe))
6765
6789
  !D.has(C) && S && f.push({ paramName: C, value: S });
@@ -6771,32 +6795,32 @@ const pt = {
6771
6795
  } finally {
6772
6796
  ye(!1);
6773
6797
  }
6774
- }, it = async (l) => {
6798
+ }, ot = async (l) => {
6775
6799
  var f;
6776
6800
  l.preventDefault();
6777
6801
  for (const D of z)
6778
- if (st(Y[D])) {
6779
- const x = ((f = nt[D]) == null ? void 0 : f.label) || D;
6802
+ if (lt(Y[D])) {
6803
+ const x = ((f = at[D]) == null ? void 0 : f.label) || D;
6780
6804
  R(`${x} is required.`);
6781
6805
  return;
6782
6806
  }
6783
- await He();
6784
- }, Ye = (l, f, D, x, C) => {
6807
+ await je();
6808
+ }, Qe = (l, f, D, x, C) => {
6785
6809
  var Nt;
6786
- const S = nt[l];
6810
+ const S = at[l];
6787
6811
  if (!S) return null;
6788
- const ue = z.includes(l), se = B[l], be = D || S.label, Pe = l in ie, le = f ?? l, Be = { required: ue }, je = C ? C !== "placeholder" : w, Qe = je ? be : void 0, Wt = je ? "..." : be;
6812
+ const ue = z.includes(l), se = B[l], be = D || S.label, Pe = l in ie, le = f ?? l, _e = { required: ue }, We = C ? C !== "placeholder" : w, Ge = We ? be : void 0, Wt = We ? "..." : be;
6789
6813
  switch (S.type) {
6790
6814
  case "select":
6791
6815
  if (l === "country" || l === "nationality" || l === "taxCountry" || l === "countryOfBirth" || l === "mobileCountryCode") {
6792
6816
  const Re = G(l, x);
6793
6817
  return /* @__PURE__ */ r(
6794
- qe,
6818
+ Ve,
6795
6819
  {
6796
- ...Be,
6797
- label: Qe,
6820
+ ..._e,
6821
+ label: Ge,
6798
6822
  value: Y[l] || "",
6799
- onChange: (Xe) => oe(l, Xe),
6823
+ onChange: (et) => oe(l, et),
6800
6824
  options: [{ value: "", label: `Select ${Wt.toLowerCase()}` }, ...Re],
6801
6825
  disabled: E,
6802
6826
  readOnly: Pe,
@@ -6807,14 +6831,14 @@ const pt = {
6807
6831
  }
6808
6832
  if (l === "salutation")
6809
6833
  return /* @__PURE__ */ r(
6810
- qe,
6834
+ Ve,
6811
6835
  {
6812
- ...Be,
6813
- label: Qe,
6836
+ ..._e,
6837
+ label: Ge,
6814
6838
  value: ((Nt = Y[l]) == null ? void 0 : Nt.toString()) || "",
6815
6839
  onChange: (Re) => oe(l, Re ? Number(Re) : null),
6816
6840
  options: [
6817
- { value: "", label: je ? "Select salutation..." : be },
6841
+ { value: "", label: We ? "Select salutation..." : be },
6818
6842
  { value: bt.Male.toString(), label: "Male" },
6819
6843
  { value: bt.Female.toString(), label: "Female" },
6820
6844
  { value: bt.Other.toString(), label: "Other" }
@@ -6825,15 +6849,15 @@ const pt = {
6825
6849
  le
6826
6850
  );
6827
6851
  if (l === "defaultLanguage") {
6828
- const Re = c != null && c.allowedLanguages && c.allowedLanguages.length > 0 ? Rt.filter((Xe) => c.allowedLanguages.includes(Xe.value)) : Rt;
6852
+ const Re = c != null && c.allowedLanguages && c.allowedLanguages.length > 0 ? Rt.filter((et) => c.allowedLanguages.includes(et.value)) : Rt;
6829
6853
  return /* @__PURE__ */ r(
6830
- qe,
6854
+ Ve,
6831
6855
  {
6832
- ...Be,
6833
- label: Qe,
6856
+ ..._e,
6857
+ label: Ge,
6834
6858
  value: Y[l] || "",
6835
- onChange: (Xe) => oe(l, Xe),
6836
- options: [{ value: "", label: je ? "Select language..." : be }, ...Re],
6859
+ onChange: (et) => oe(l, et),
6860
+ options: [{ value: "", label: We ? "Select language..." : be }, ...Re],
6837
6861
  readOnly: Pe,
6838
6862
  error: se
6839
6863
  },
@@ -6845,14 +6869,14 @@ const pt = {
6845
6869
  if (l === "otherNationality") {
6846
6870
  const Re = G(l, x);
6847
6871
  return /* @__PURE__ */ r(
6848
- tn,
6872
+ rn,
6849
6873
  {
6850
- ...Be,
6851
- label: Qe,
6874
+ ..._e,
6875
+ label: Ge,
6852
6876
  value: Y[l] || [],
6853
- onChange: (Xe) => oe(l, Xe),
6877
+ onChange: (et) => oe(l, et),
6854
6878
  options: Re,
6855
- placeholder: je ? "Select other nationalities..." : be,
6879
+ placeholder: We ? "Select other nationalities..." : be,
6856
6880
  disabled: E,
6857
6881
  readOnly: Pe
6858
6882
  },
@@ -6864,10 +6888,10 @@ const pt = {
6864
6888
  return /* @__PURE__ */ r(
6865
6889
  xe,
6866
6890
  {
6867
- ...Be,
6891
+ ..._e,
6868
6892
  type: "date",
6869
- label: Qe,
6870
- placeholder: je ? void 0 : be,
6893
+ label: Ge,
6894
+ placeholder: We ? void 0 : be,
6871
6895
  value: Y[l] || "",
6872
6896
  onChange: (Re) => oe(l, Re.target.value),
6873
6897
  readOnly: Pe,
@@ -6879,10 +6903,10 @@ const pt = {
6879
6903
  return /* @__PURE__ */ r(
6880
6904
  xe,
6881
6905
  {
6882
- ...Be,
6906
+ ..._e,
6883
6907
  type: "email",
6884
- label: Qe,
6885
- placeholder: je ? void 0 : be,
6908
+ label: Ge,
6909
+ placeholder: We ? void 0 : be,
6886
6910
  value: Y[l] || "",
6887
6911
  onChange: (Re) => oe(l, Re.target.value),
6888
6912
  readOnly: Pe,
@@ -6894,10 +6918,10 @@ const pt = {
6894
6918
  return /* @__PURE__ */ r(
6895
6919
  xe,
6896
6920
  {
6897
- ...Be,
6921
+ ..._e,
6898
6922
  type: "tel",
6899
- label: Qe,
6900
- placeholder: je ? void 0 : be,
6923
+ label: Ge,
6924
+ placeholder: We ? void 0 : be,
6901
6925
  value: Y[l] || "",
6902
6926
  onChange: (Re) => oe(l, Re.target.value),
6903
6927
  readOnly: Pe,
@@ -6909,10 +6933,10 @@ const pt = {
6909
6933
  return /* @__PURE__ */ r(
6910
6934
  xe,
6911
6935
  {
6912
- ...Be,
6936
+ ..._e,
6913
6937
  type: "text",
6914
- label: Qe,
6915
- placeholder: je ? void 0 : be,
6938
+ label: Ge,
6939
+ placeholder: We ? void 0 : be,
6916
6940
  value: Y[l] || "",
6917
6941
  onChange: (Re) => oe(l, Re.target.value),
6918
6942
  readOnly: Pe,
@@ -6985,13 +7009,10 @@ const pt = {
6985
7009
  style: { display: "flex", alignItems: "center", gap: "10px", cursor: "pointer", margin: 0, padding: 0 },
6986
7010
  children: [
6987
7011
  /* @__PURE__ */ r(
6988
- "input",
7012
+ Be,
6989
7013
  {
6990
- type: "checkbox",
6991
7014
  checked: me[l.paramName] === "true",
6992
- onChange: (S) => Ne(l.paramName, S.target.checked ? "true" : "false"),
6993
- className: "metakyc-option-input",
6994
- style: pt
7015
+ onChange: (S) => Ne(l.paramName, S ? "true" : "false")
6995
7016
  }
6996
7017
  ),
6997
7018
  /* @__PURE__ */ o(
@@ -7019,13 +7040,10 @@ const pt = {
7019
7040
  style: { display: "flex", alignItems: "center", gap: "10px", cursor: "pointer", margin: 0, padding: 0 },
7020
7041
  children: [
7021
7042
  /* @__PURE__ */ r(
7022
- "input",
7043
+ Be,
7023
7044
  {
7024
- type: "checkbox",
7025
7045
  checked: me[l.paramName] === "true",
7026
- onChange: (S) => Ne(l.paramName, S.target.checked ? "true" : "false"),
7027
- className: "metakyc-option-input",
7028
- style: { ...pt, alignSelf: "flex-start", marginTop: "2px" }
7046
+ onChange: (S) => Ne(l.paramName, S ? "true" : "false")
7029
7047
  }
7030
7048
  ),
7031
7049
  /* @__PURE__ */ o(
@@ -7080,20 +7098,17 @@ const pt = {
7080
7098
  style: { display: "flex", alignItems: "center", gap: "10px", cursor: "pointer", margin: 0, padding: 0 },
7081
7099
  children: [
7082
7100
  /* @__PURE__ */ r(
7083
- "input",
7101
+ Be,
7084
7102
  {
7085
- type: "checkbox",
7086
7103
  checked: se,
7087
7104
  onChange: (be) => {
7088
7105
  if (l.singleSelect)
7089
- Ne(l.paramName, be.target.checked ? ue.value : "");
7106
+ Ne(l.paramName, be ? ue.value : "");
7090
7107
  else {
7091
- const Pe = be.target.checked ? [...S, ue.value] : S.filter((le) => le !== ue.value);
7108
+ const Pe = be ? [...S, ue.value] : S.filter((le) => le !== ue.value);
7092
7109
  Ne(l.paramName, Pe.join(","));
7093
7110
  }
7094
- },
7095
- className: "metakyc-option-input",
7096
- style: pt
7111
+ }
7097
7112
  }
7098
7113
  ),
7099
7114
  /* @__PURE__ */ r(
@@ -7138,7 +7153,7 @@ const pt = {
7138
7153
  onChange: () => Ne(l.paramName, S.value),
7139
7154
  name: `radio-group-${l.paramName}-${f}`,
7140
7155
  className: "metakyc-option-input",
7141
- style: pt
7156
+ style: Mn
7142
7157
  }
7143
7158
  ),
7144
7159
  /* @__PURE__ */ r(
@@ -7177,13 +7192,10 @@ const pt = {
7177
7192
  style: { display: "flex", alignItems: "center", gap: "10px", cursor: "pointer", margin: 0, padding: 0 },
7178
7193
  children: [
7179
7194
  /* @__PURE__ */ r(
7180
- "input",
7195
+ Be,
7181
7196
  {
7182
- type: "checkbox",
7183
7197
  checked: D,
7184
- onChange: (x) => Ne(l.conditionalOn, x.target.checked ? "true" : "false"),
7185
- className: "metakyc-option-input",
7186
- style: pt
7198
+ onChange: (x) => Ne(l.conditionalOn, x ? "true" : "false")
7187
7199
  }
7188
7200
  ),
7189
7201
  /* @__PURE__ */ r(
@@ -7199,7 +7211,7 @@ const pt = {
7199
7211
  ) }),
7200
7212
  D && /* @__PURE__ */ r("div", { style: { display: "grid", gridTemplateColumns: "repeat(4, minmax(0, 1fr))", gap: "1rem" }, children: l.fields.map((x, C) => {
7201
7213
  const S = Math.min(4, Math.max(1, Number(x.colSpan) || 4)), ue = x.isCustom ? `custom-${C}-${x.paramName}` : `builtin-${x.name}-${C}`;
7202
- return /* @__PURE__ */ r("div", { style: { gridColumn: `span ${S} / span ${S}` }, children: /* @__PURE__ */ r(Lt, { helpText: x.helpText, children: x.isCustom ? h(x, C) : Ye(x.name, ue, x.displayText, x.countriesType, x.labelMode) }) }, ue);
7214
+ return /* @__PURE__ */ r("div", { style: { gridColumn: `span ${S} / span ${S}` }, children: /* @__PURE__ */ r(Lt, { helpText: x.helpText, children: x.isCustom ? h(x, C) : Qe(x.name, ue, x.displayText, x.countriesType, x.labelMode) }) }, ue);
7203
7215
  }) })
7204
7216
  ] });
7205
7217
  };
@@ -7209,7 +7221,7 @@ const pt = {
7209
7221
  /* @__PURE__ */ r("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)", fontSize: "0.875rem" }, children: "Loading form…" })
7210
7222
  ] }) }) });
7211
7223
  if (N) {
7212
- const l = N[F] ?? N[0], f = _e === -1, D = Ie === -1, x = N.length, C = $e(l), S = Object.values(B);
7224
+ const l = N[F] ?? N[0], f = He === -1, D = Ie === -1, x = N.length, C = $e(l), S = Object.values(B);
7213
7225
  return /* @__PURE__ */ r("div", { className: "metakyc-sdk", children: /* @__PURE__ */ o(re, { children: [
7214
7226
  /* @__PURE__ */ r(Se, { children: /* @__PURE__ */ r(mt, { title: (c == null ? void 0 : c.title) || "Create Applicant" }) }),
7215
7227
  /* @__PURE__ */ o(ne, { children: [
@@ -7276,7 +7288,7 @@ const pt = {
7276
7288
  type: "button",
7277
7289
  variant: "outline",
7278
7290
  onClick: () => {
7279
- U(_e), j({});
7291
+ U(He), j({});
7280
7292
  },
7281
7293
  disabled: te || y,
7282
7294
  children: "Previous"
@@ -7289,14 +7301,14 @@ const pt = {
7289
7301
  {
7290
7302
  type: "button",
7291
7303
  isLoading: te || y,
7292
- onClick: D ? He : Ze,
7304
+ onClick: D ? je : Xe,
7293
7305
  children: D ? l.conditionalOn && !C ? "Skip & Submit" : "Submit" : l.conditionalOn && !C ? "Skip" : "Next"
7294
7306
  }
7295
7307
  )
7296
7308
  ] })
7297
7309
  ] }) });
7298
7310
  }
7299
- return /* @__PURE__ */ r("div", { className: "metakyc-sdk", children: /* @__PURE__ */ r("form", { onSubmit: it, children: /* @__PURE__ */ o(re, { children: [
7311
+ return /* @__PURE__ */ r("div", { className: "metakyc-sdk", children: /* @__PURE__ */ r("form", { onSubmit: ot, children: /* @__PURE__ */ o(re, { children: [
7300
7312
  /* @__PURE__ */ r(Se, { children: /* @__PURE__ */ r(mt, { title: (c == null ? void 0 : c.title) || "Create Applicant" }) }),
7301
7313
  /* @__PURE__ */ o(ne, { children: [
7302
7314
  fe && /* @__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: [
@@ -7304,7 +7316,7 @@ const pt = {
7304
7316
  " ",
7305
7317
  fe
7306
7318
  ] }) }),
7307
- /* @__PURE__ */ r("div", { style: { display: "grid", gridTemplateColumns: "repeat(4, minmax(0, 1fr))", gap: "1rem" }, children: Q.map((l) => /* @__PURE__ */ r("div", { style: { gridColumn: "span 4 / span 4" }, children: Ye(l) }, l)) })
7319
+ /* @__PURE__ */ r("div", { style: { display: "grid", gridTemplateColumns: "repeat(4, minmax(0, 1fr))", gap: "1rem" }, children: Q.map((l) => /* @__PURE__ */ r("div", { style: { gridColumn: "span 4 / span 4" }, children: Qe(l) }, l)) })
7308
7320
  ] }),
7309
7321
  /* @__PURE__ */ o(Ce, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
7310
7322
  a && /* @__PURE__ */ r(Z, { type: "button", variant: "outline", onClick: a, disabled: te || y, children: "Cancel" }),
@@ -7315,14 +7327,14 @@ const pt = {
7315
7327
  function kt(e) {
7316
7328
  return e == null || e === "" || Array.isArray(e) && e.length === 0;
7317
7329
  }
7318
- const ea = ({
7330
+ const ra = ({
7319
7331
  workflowKey: e,
7320
7332
  externalRefId: t,
7321
7333
  onSuccess: n,
7322
7334
  onCancel: a
7323
7335
  }) => {
7324
- var Ye, h, O, q, W, X;
7325
- const { config: i, baseInformationService: s, currentTheme: c } = Te(), { createCompanyApplicant: d, isLoading: y } = zt(), p = e || ((Ye = i.applicantForm) == null ? void 0 : Ye.workflowKey);
7336
+ var Qe, h, O, q, W, X;
7337
+ const { config: i, baseInformationService: s, currentTheme: c } = Te(), { createCompanyApplicant: d, isLoading: y } = zt(), p = e || ((Qe = i.applicantForm) == null ? void 0 : Qe.workflowKey);
7326
7338
  if (!p)
7327
7339
  throw new Error(
7328
7340
  "workflowKey is required. Provide it either as a prop to CreateCompanyApplicantForm or set it in config.applicantForm.workflowKey"
@@ -7352,10 +7364,10 @@ const ea = ({
7352
7364
  if (w)
7353
7365
  for (const u of w)
7354
7366
  for (const l of u.fields)
7355
- !l.isCustom && l.name && Q.has(l.name) && m.add(l.countriesType ?? ((I = ot[l.name]) == null ? void 0 : I.countriesType));
7367
+ !l.isCustom && l.name && Q.has(l.name) && m.add(l.countriesType ?? ((I = st[l.name]) == null ? void 0 : I.countriesType));
7356
7368
  else
7357
7369
  for (const u of z)
7358
- Q.has(u) && m.add((L = ot[u]) == null ? void 0 : L.countriesType);
7370
+ Q.has(u) && m.add((L = st[u]) == null ? void 0 : L.countriesType);
7359
7371
  return m.size === 0 && m.add(void 0), Array.from(m);
7360
7372
  }, [z, w]), [H, K] = k({}), [ee, E] = k(!0), g = de(/* @__PURE__ */ new Set()), $ = de(/* @__PURE__ */ new Set());
7361
7373
  ge(() => {
@@ -7388,7 +7400,7 @@ const ea = ({
7388
7400
  }, [M, c]);
7389
7401
  const V = (m, I) => {
7390
7402
  var l;
7391
- const L = I ?? ((l = ot[m]) == null ? void 0 : l.countriesType), u = L != null ? String(L) : "all";
7403
+ const L = I ?? ((l = st[m]) == null ? void 0 : l.countriesType), u = L != null ? String(L) : "all";
7392
7404
  return H[u] || [];
7393
7405
  }, G = {
7394
7406
  companyName: 1,
@@ -7435,7 +7447,7 @@ const ea = ({
7435
7447
  lei: "",
7436
7448
  externalRefId: b,
7437
7449
  ..._
7438
- }), [Y, ve] = k({}), [pe, me] = k(0), [ke, F] = k({}), [U, B] = k(null), [j, fe] = k(!1), R = (m, I) => ie((L) => ({ ...L, [m]: I })), te = (m, I) => ve((L) => ({ ...L, [m]: I })), ye = (m) => !m.conditionalOn || Y[m.conditionalOn] === "true", oe = w && pe < w.length - 1 ? pe + 1 : -1, Ne = w && pe > 0 ? pe - 1 : -1, $e = (m) => {
7450
+ }), [Y, we] = k({}), [pe, me] = k(0), [ve, F] = k({}), [U, B] = k(null), [j, fe] = k(!1), R = (m, I) => ie((L) => ({ ...L, [m]: I })), te = (m, I) => we((L) => ({ ...L, [m]: I })), ye = (m) => !m.conditionalOn || Y[m.conditionalOn] === "true", oe = w && pe < w.length - 1 ? pe + 1 : -1, Ne = w && pe > 0 ? pe - 1 : -1, $e = (m) => {
7439
7451
  var L;
7440
7452
  const I = {};
7441
7453
  for (const u of m.fields)
@@ -7448,7 +7460,7 @@ const ea = ({
7448
7460
  } else if (u.name) {
7449
7461
  const l = u.name;
7450
7462
  if (N.includes(l) && kt(J[l])) {
7451
- const f = u.displayText || ((L = ot[l]) == null ? void 0 : L.label) || l;
7463
+ const f = u.displayText || ((L = st[l]) == null ? void 0 : L.label) || l;
7452
7464
  I[l] = `${f} is required.`;
7453
7465
  }
7454
7466
  }
@@ -7457,7 +7469,7 @@ const ea = ({
7457
7469
  if (!w) return;
7458
7470
  const m = w[pe];
7459
7471
  if (m.conditionalOn && !ye(m)) {
7460
- F({}), oe >= 0 ? me(oe) : await _e();
7472
+ F({}), oe >= 0 ? me(oe) : await He();
7461
7473
  return;
7462
7474
  }
7463
7475
  const I = $e(m);
@@ -7465,8 +7477,8 @@ const ea = ({
7465
7477
  F(I);
7466
7478
  return;
7467
7479
  }
7468
- F({}), oe >= 0 ? me(oe) : await _e();
7469
- }, _e = async () => {
7480
+ F({}), oe >= 0 ? me(oe) : await He();
7481
+ }, He = async () => {
7470
7482
  var m;
7471
7483
  if (w) {
7472
7484
  let I = {};
@@ -7538,31 +7550,31 @@ const ea = ({
7538
7550
  } finally {
7539
7551
  fe(!1);
7540
7552
  }
7541
- }, at = async (m) => {
7553
+ }, it = async (m) => {
7542
7554
  var I;
7543
7555
  m.preventDefault();
7544
7556
  for (const L of N)
7545
7557
  if (kt(J[L])) {
7546
- const u = ((I = ot[L]) == null ? void 0 : I.label) || L;
7558
+ const u = ((I = st[L]) == null ? void 0 : I.label) || L;
7547
7559
  B(`${u} is required.`);
7548
7560
  return;
7549
7561
  }
7550
- await _e();
7551
- }, Ze = (m, I, L, u, l) => {
7552
- const f = ot[m];
7562
+ await He();
7563
+ }, Xe = (m, I, L, u, l) => {
7564
+ const f = st[m];
7553
7565
  if (!f) return null;
7554
- const D = N.includes(m), x = ke[m], C = L || f.label, S = m in _, ue = I ?? m, se = l ? l !== "placeholder" : T, be = se ? C : void 0, Pe = se ? "..." : C;
7566
+ const D = N.includes(m), x = ve[m], C = L || f.label, S = m in _, ue = I ?? m, se = l ? l !== "placeholder" : T, be = se ? C : void 0, Pe = se ? "..." : C;
7555
7567
  switch (f.type) {
7556
7568
  case "select":
7557
7569
  if (m === "countryResidence" || m === "addressCountry") {
7558
7570
  const le = V(m, u);
7559
7571
  return /* @__PURE__ */ r(
7560
- qe,
7572
+ Ve,
7561
7573
  {
7562
7574
  required: D,
7563
7575
  label: be,
7564
7576
  value: J[m] || "",
7565
- onChange: (Be) => R(m, Be),
7577
+ onChange: (_e) => R(m, _e),
7566
7578
  options: [{ value: "", label: `Select ${Pe.toLowerCase()}` }, ...le],
7567
7579
  disabled: ee,
7568
7580
  readOnly: S,
@@ -7633,7 +7645,7 @@ const ea = ({
7633
7645
  ue
7634
7646
  );
7635
7647
  }
7636
- }, He = (m, I) => {
7648
+ }, je = (m, I) => {
7637
7649
  if (m.customType === "paragraph")
7638
7650
  return /* @__PURE__ */ r(
7639
7651
  "p",
@@ -7659,16 +7671,14 @@ const ea = ({
7659
7671
  }
7660
7672
  ) }, `custom-${I}`);
7661
7673
  if (!m.paramName) return null;
7662
- const L = ke[m.paramName], u = m.displayText || m.label || m.paramName, l = m.labelMode ? m.labelMode !== "placeholder" : T;
7674
+ const L = ve[m.paramName], u = m.displayText || m.label || m.paramName, l = m.labelMode ? m.labelMode !== "placeholder" : T;
7663
7675
  return m.customType === "checkbox" ? /* @__PURE__ */ o("div", { className: "flex flex-col gap-1", children: [
7664
7676
  /* @__PURE__ */ o("label", { style: { display: "flex", alignItems: "center", gap: "10px", cursor: "pointer" }, children: [
7665
7677
  /* @__PURE__ */ r(
7666
- "input",
7678
+ Be,
7667
7679
  {
7668
- type: "checkbox",
7669
7680
  checked: Y[m.paramName] === "true",
7670
- onChange: (f) => te(m.paramName, f.target.checked ? "true" : "false"),
7671
- style: { width: "16px", height: "16px", accentColor: "var(--metakyc-primary, #2563eb)" }
7681
+ onChange: (f) => te(m.paramName, f ? "true" : "false")
7672
7682
  }
7673
7683
  ),
7674
7684
  /* @__PURE__ */ o("span", { style: { fontSize: "14px", color: "var(--metakyc-text-primary, #111827)" }, children: [
@@ -7690,24 +7700,22 @@ const ea = ({
7690
7700
  },
7691
7701
  `custom-${I}`
7692
7702
  );
7693
- }, it = (m) => {
7703
+ }, ot = (m) => {
7694
7704
  const I = ye(m);
7695
7705
  return /* @__PURE__ */ o("div", { className: "space-y-4", children: [
7696
7706
  m.conditionalOn && /* @__PURE__ */ o("label", { style: { display: "flex", alignItems: "center", gap: "10px", cursor: "pointer" }, children: [
7697
7707
  /* @__PURE__ */ r(
7698
- "input",
7708
+ Be,
7699
7709
  {
7700
- type: "checkbox",
7701
7710
  checked: I,
7702
- onChange: (L) => te(m.conditionalOn, L.target.checked ? "true" : "false"),
7703
- style: { width: "16px", height: "16px", accentColor: "var(--metakyc-primary, #2563eb)" }
7711
+ onChange: (L) => te(m.conditionalOn, L ? "true" : "false")
7704
7712
  }
7705
7713
  ),
7706
7714
  /* @__PURE__ */ r("span", { style: { fontSize: "14px", fontWeight: 500 }, children: m.conditionalOn })
7707
7715
  ] }),
7708
7716
  I && /* @__PURE__ */ r("div", { style: { display: "grid", gridTemplateColumns: "repeat(4, minmax(0, 1fr))", gap: "1rem" }, children: m.fields.map((L, u) => {
7709
7717
  const l = Math.min(4, Math.max(1, Number(L.colSpan) || 4)), f = L.isCustom ? `custom-${u}-${L.paramName}` : `builtin-${L.name}-${u}`;
7710
- return /* @__PURE__ */ r("div", { style: { gridColumn: `span ${l} / span ${l}` }, children: L.isCustom ? He(L, u) : Ze(L.name, f, L.displayText, L.countriesType, L.labelMode) }, f);
7718
+ return /* @__PURE__ */ r("div", { style: { gridColumn: `span ${l} / span ${l}` }, children: L.isCustom ? je(L, u) : Xe(L.name, f, L.displayText, L.countriesType, L.labelMode) }, f);
7711
7719
  }) })
7712
7720
  ] });
7713
7721
  };
@@ -7717,7 +7725,7 @@ const ea = ({
7717
7725
  /* @__PURE__ */ r("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)", fontSize: "0.875rem" }, children: "Loading form…" })
7718
7726
  ] }) }) });
7719
7727
  if (w) {
7720
- const m = w[pe] ?? w[0], I = Ne === -1, L = oe === -1, u = w.length, l = ye(m), f = Object.values(ke);
7728
+ const m = w[pe] ?? w[0], I = Ne === -1, L = oe === -1, u = w.length, l = ye(m), f = Object.values(ve);
7721
7729
  return /* @__PURE__ */ r("div", { className: "metakyc-sdk", children: /* @__PURE__ */ o(re, { children: [
7722
7730
  /* @__PURE__ */ r(Se, { children: /* @__PURE__ */ r(mt, { title: (c == null ? void 0 : c.title) || "Company Registration" }) }),
7723
7731
  /* @__PURE__ */ o(ne, { children: [
@@ -7752,7 +7760,7 @@ const ea = ({
7752
7760
  u
7753
7761
  ] })
7754
7762
  ] }),
7755
- it(m)
7763
+ ot(m)
7756
7764
  ] }),
7757
7765
  /* @__PURE__ */ o(Ce, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
7758
7766
  /* @__PURE__ */ o("div", { children: [
@@ -7770,11 +7778,11 @@ const ea = ({
7770
7778
  ),
7771
7779
  I && a && /* @__PURE__ */ r(Z, { type: "button", variant: "outline", onClick: a, disabled: j || y, children: "Cancel" })
7772
7780
  ] }),
7773
- /* @__PURE__ */ r(Z, { type: "button", isLoading: j || y, onClick: L ? _e : Ie, children: L ? m.conditionalOn && !l ? "Skip & Submit" : "Submit" : m.conditionalOn && !l ? "Skip" : "Next" })
7781
+ /* @__PURE__ */ r(Z, { type: "button", isLoading: j || y, onClick: L ? He : Ie, children: L ? m.conditionalOn && !l ? "Skip & Submit" : "Submit" : m.conditionalOn && !l ? "Skip" : "Next" })
7774
7782
  ] })
7775
7783
  ] }) });
7776
7784
  }
7777
- return /* @__PURE__ */ r("div", { className: "metakyc-sdk", children: /* @__PURE__ */ r("form", { onSubmit: at, children: /* @__PURE__ */ o(re, { children: [
7785
+ return /* @__PURE__ */ r("div", { className: "metakyc-sdk", children: /* @__PURE__ */ r("form", { onSubmit: it, children: /* @__PURE__ */ o(re, { children: [
7778
7786
  /* @__PURE__ */ r(Se, { children: /* @__PURE__ */ r(mt, { title: (c == null ? void 0 : c.title) || "Company Registration" }) }),
7779
7787
  /* @__PURE__ */ o(ne, { children: [
7780
7788
  U && /* @__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: [
@@ -7782,14 +7790,14 @@ const ea = ({
7782
7790
  " ",
7783
7791
  U
7784
7792
  ] }) }),
7785
- /* @__PURE__ */ r("div", { style: { display: "grid", gridTemplateColumns: "repeat(4, minmax(0, 1fr))", gap: "1rem" }, children: z.map((m) => /* @__PURE__ */ r("div", { style: { gridColumn: "span 4 / span 4" }, children: Ze(m) }, m)) })
7793
+ /* @__PURE__ */ r("div", { style: { display: "grid", gridTemplateColumns: "repeat(4, minmax(0, 1fr))", gap: "1rem" }, children: z.map((m) => /* @__PURE__ */ r("div", { style: { gridColumn: "span 4 / span 4" }, children: Xe(m) }, m)) })
7786
7794
  ] }),
7787
7795
  /* @__PURE__ */ o(Ce, { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
7788
7796
  a && /* @__PURE__ */ r(Z, { type: "button", variant: "outline", onClick: a, disabled: j || y, children: "Cancel" }),
7789
7797
  /* @__PURE__ */ r(Z, { type: "submit", isLoading: j || y, children: "Register Company" })
7790
7798
  ] })
7791
7799
  ] }) }) });
7792
- }, ta = ({
7800
+ }, na = ({
7793
7801
  applicantId: e,
7794
7802
  onComplete: t,
7795
7803
  onError: n,
@@ -7807,14 +7815,14 @@ const ea = ({
7807
7815
  error: v,
7808
7816
  moveBack: A,
7809
7817
  refreshProgress: T
7810
- } = Vr(e), [w, N] = we.useState(!1), z = we.useRef(null);
7811
- if (we.useEffect(() => {
7818
+ } = Vr(e), [w, N] = ke.useState(!1), z = ke.useRef(null);
7819
+ if (ke.useEffect(() => {
7812
7820
  v && n && n(v);
7813
- }, [v, n]), we.useEffect(() => {
7821
+ }, [v, n]), ke.useEffect(() => {
7814
7822
  s != null && s.workflowResult && t && t(s.workflowResult);
7815
- }, [s == null ? void 0 : s.workflowResult, t]), we.useEffect(() => {
7823
+ }, [s == null ? void 0 : s.workflowResult, t]), ke.useEffect(() => {
7816
7824
  a === "dark" ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark");
7817
- }, [a]), we.useEffect(() => {
7825
+ }, [a]), ke.useEffect(() => {
7818
7826
  b && N(!1);
7819
7827
  }, [b]), P || !s)
7820
7828
  return /* @__PURE__ */ r("div", { className: `metakyc-sdk ${i || ""}`, children: /* @__PURE__ */ r(re, { children: /* @__PURE__ */ o(ne, { children: [
@@ -7922,7 +7930,7 @@ const ea = ({
7922
7930
  transition: "width 0.4s ease"
7923
7931
  } }) }) }),
7924
7932
  /* @__PURE__ */ r(
7925
- Dn,
7933
+ On,
7926
7934
  {
7927
7935
  ref: z,
7928
7936
  visibleSteps: K,
@@ -7941,20 +7949,20 @@ const ea = ({
7941
7949
  };
7942
7950
  switch (c.action) {
7943
7951
  case ce.Questionaries:
7944
- return /* @__PURE__ */ r(hn, { ...K });
7952
+ return /* @__PURE__ */ r(fn, { ...K });
7945
7953
  case ce.UploadDocument:
7946
- return /* @__PURE__ */ r(bn, { ...K });
7947
- case ce.Overview:
7948
7954
  return /* @__PURE__ */ r(xn, { ...K });
7955
+ case ce.Overview:
7956
+ return /* @__PURE__ */ r(vn, { ...K });
7949
7957
  case ce.IdentitySdk:
7950
- return /* @__PURE__ */ r(Pn, { ...K });
7958
+ return /* @__PURE__ */ r(Ln, { ...K });
7951
7959
  case ce.RiskScoring:
7952
- return /* @__PURE__ */ r(In, { ...K });
7960
+ return /* @__PURE__ */ r(Rn, { ...K });
7953
7961
  case ce.AdditionalData:
7954
7962
  case ce.InvestorCategorization:
7955
- return /* @__PURE__ */ r(En, { ...K });
7956
- case ce.AppropriatenessTest:
7957
7963
  return /* @__PURE__ */ r(Fn, { ...K });
7964
+ case ce.AppropriatenessTest:
7965
+ return /* @__PURE__ */ r(An, { ...K });
7958
7966
  case ce.ManualReview:
7959
7967
  return /* @__PURE__ */ r(
7960
7968
  Pt,
@@ -7983,10 +7991,10 @@ const ea = ({
7983
7991
  M(),
7984
7992
  H()
7985
7993
  ] });
7986
- }, Dn = we.forwardRef(
7994
+ }, On = ke.forwardRef(
7987
7995
  ({ visibleSteps: e, currentVisibleStepIndex: t, getStepFallbackName: n }, a) => {
7988
- const i = we.useRef(null), s = we.useRef(null);
7989
- return we.useImperativeHandle(a, () => i.current), we.useEffect(() => {
7996
+ const i = ke.useRef(null), s = ke.useRef(null);
7997
+ return ke.useImperativeHandle(a, () => i.current), ke.useEffect(() => {
7990
7998
  if (s.current && i.current) {
7991
7999
  const c = i.current, d = s.current, y = d.offsetLeft - c.offsetWidth / 2 + d.offsetWidth / 2;
7992
8000
  c.scrollTo({ left: Math.max(0, y), behavior: "smooth" });
@@ -8009,7 +8017,7 @@ const ea = ({
8009
8017
  },
8010
8018
  children: e.map((c, d) => {
8011
8019
  const y = d < t, p = d === t, b = y || p, P = c.displayName || c.name || n(c.action) || `Step ${d + 1}`;
8012
- return /* @__PURE__ */ o(we.Fragment, { children: [
8020
+ return /* @__PURE__ */ o(ke.Fragment, { children: [
8013
8021
  /* @__PURE__ */ o(
8014
8022
  "div",
8015
8023
  {
@@ -8068,13 +8076,13 @@ const ea = ({
8068
8076
  );
8069
8077
  }
8070
8078
  );
8071
- function ra(e) {
8072
- return Ve.object({
8073
- questionResults: Ve.any()
8079
+ function aa(e) {
8080
+ return Ye.object({
8081
+ questionResults: Ye.any()
8074
8082
  }).passthrough();
8075
8083
  }
8076
- function Mn(e) {
8077
- let t = Ve.array(Ve.instanceof(File));
8084
+ function zn(e) {
8085
+ let t = Ye.array(Ye.instanceof(File));
8078
8086
  if (e.isRequired ? t = t.min(
8079
8087
  1,
8080
8088
  `${e.displayName} is required`
@@ -8095,27 +8103,27 @@ function Mn(e) {
8095
8103
  }
8096
8104
  return t;
8097
8105
  }
8098
- function na(e) {
8106
+ function ia(e) {
8099
8107
  const t = {};
8100
8108
  return e.uploadDocumentFiles.forEach((n) => {
8101
8109
  const a = `file_${n.id}`;
8102
- t[a] = Mn(n);
8103
- }), Ve.object(t);
8110
+ t[a] = zn(n);
8111
+ }), Ye.object(t);
8104
8112
  }
8105
- function aa(e) {
8106
- return Ve.any();
8113
+ function oa(e) {
8114
+ return Ye.any();
8107
8115
  }
8108
- function On(e) {
8109
- return Ve.string().min(1, "This question is required");
8116
+ function $n(e) {
8117
+ return Ye.string().min(1, "This question is required");
8110
8118
  }
8111
- function ia(e) {
8119
+ function sa(e) {
8112
8120
  const t = {};
8113
8121
  return e.appropriatenessQuestions.forEach((n) => {
8114
8122
  const a = `question_${n.id}`;
8115
- t[a] = On();
8116
- }), Ve.object(t);
8123
+ t[a] = $n();
8124
+ }), Ye.object(t);
8117
8125
  }
8118
- const oa = Ve.any();
8126
+ const la = Ye.any();
8119
8127
  export {
8120
8128
  Rt as ALLOWED_LANGUAGES,
8121
8129
  Jt as ApplicantProgressOnHoldReason,
@@ -8124,63 +8132,64 @@ export {
8124
8132
  Xt as ApplicantStatus,
8125
8133
  ar as AppropriatenessQuestionType,
8126
8134
  fr as AppropriatenessTestService,
8127
- Fn as AppropriatenessTestStep,
8135
+ An as AppropriatenessTestStep,
8128
8136
  $t as Badge,
8129
8137
  vr as BaseInformationService,
8130
8138
  Z as Button,
8131
- ot as COMPANY_FIELD_METADATA,
8139
+ st as COMPANY_FIELD_METADATA,
8132
8140
  re as Card,
8133
8141
  ne as CardContent,
8134
8142
  Ce as CardFooter,
8135
8143
  Se as CardHeader,
8136
- Je as CountriesType,
8137
- Xn as CreateApplicantForm,
8138
- ea as CreateCompanyApplicantForm,
8144
+ Be as Checkbox,
8145
+ Ze as CountriesType,
8146
+ ta as CreateApplicantForm,
8147
+ ra as CreateCompanyApplicantForm,
8139
8148
  or as CriteriaBuiltInType,
8140
8149
  lr as DEFAULT_COMPANY_VISIBLE_FIELDS,
8141
8150
  cr as DEFAULT_VISIBLE_FIELDS,
8142
8151
  nr as DocumentReviewStatus,
8143
8152
  ur as EndpointBuilder,
8144
- dt as ErrorHandler,
8153
+ ut as ErrorHandler,
8145
8154
  Fr as EventEmitter,
8146
- nt as FIELD_METADATA,
8155
+ at as FIELD_METADATA,
8147
8156
  rr as FileType,
8148
- nn as FileUpload,
8157
+ an as FileUpload,
8149
8158
  bt as GenderType,
8150
8159
  mt as Header,
8151
8160
  pr as HttpClient,
8152
- Ge as IdentityProviderManager,
8161
+ Je as IdentityProviderManager,
8153
8162
  xr as IdentityService,
8154
8163
  Oe as IdentityVerificationProvider,
8155
- Pn as IdentityVerificationStep,
8164
+ Ln as IdentityVerificationStep,
8156
8165
  xe as Input,
8157
8166
  kr as InvestorCategorizationService,
8158
- En as InvestorCategorizationStep,
8167
+ Fn as InvestorCategorizationStep,
8159
8168
  Ee as InvestorCategorizationType,
8160
8169
  sr as InvestorCategoryType,
8161
8170
  er as KycProcessStatus,
8162
- tt as KycStatus,
8171
+ rt as KycStatus,
8163
8172
  Pt as KycStatusDisplay,
8164
- ta as KycWorkflow,
8165
- Ln as Logo,
8173
+ na as KycWorkflow,
8174
+ Dn as Logo,
8166
8175
  Ot as MetaKYCContext,
8167
- Ue as MetaKYCError,
8168
- qn as MetaKYCProvider,
8169
- tn as MultiSelect,
8176
+ Ke as MetaKYCError,
8177
+ Yn as MetaKYCProvider,
8178
+ rn as MultiSelect,
8170
8179
  Or as OnfidoProvider,
8171
8180
  gr as OverviewService,
8172
- xn as OverviewStep,
8173
- an as PhoneInput,
8181
+ vn as OverviewStep,
8182
+ on as PhoneInput,
8174
8183
  yr as QuestionnaireService,
8175
- hn as QuestionnaireStep,
8176
- rt as ReviewStatus,
8184
+ fn as QuestionnaireStep,
8185
+ nt as ReviewStatus,
8177
8186
  ir as RiskCriteriaType,
8178
8187
  Zt as RiskLevel,
8179
8188
  br as RiskScoringService,
8180
- In as RiskScoringStep,
8189
+ Rn as RiskScoringStep,
8181
8190
  _r as SDK_VERSION,
8182
8191
  zr as SardinAIProvider,
8183
- qe as SearchableSelect,
8192
+ Ve as SearchableSelect,
8184
8193
  Ct as Select,
8185
8194
  Me as Spinner,
8186
8195
  Tr as StepRouter,
@@ -8189,15 +8198,15 @@ export {
8189
8198
  Fe as ThemePreset,
8190
8199
  Er as ThemeService,
8191
8200
  hr as UploadDocumentService,
8192
- bn as UploadDocumentStep,
8201
+ xn as UploadDocumentStep,
8193
8202
  tr as UserType,
8194
- Ke as ValueDataType,
8203
+ qe as ValueDataType,
8195
8204
  Pr as WorkflowOrchestrator,
8196
8205
  gt as WorkflowResultType,
8197
8206
  Ar as WorkflowState,
8198
8207
  ce as WorkflowStepAction,
8199
- oa as appropriatenessTestSchema,
8200
- Jn as clearAllStorage,
8208
+ la as appropriatenessTestSchema,
8209
+ Xn as clearAllStorage,
8201
8210
  Ur as clearApplicantId,
8202
8211
  qr as clearWorkflowState,
8203
8212
  Ae as cn,
@@ -8207,25 +8216,25 @@ export {
8207
8216
  Hr as fileToBase64,
8208
8217
  Sr as fintechTheme,
8209
8218
  xt as formatFileSize,
8210
- ia as generateAppropriatenessSchema,
8211
- ra as generateQuestionnaireSchema,
8212
- aa as generateRiskScoringSchema,
8213
- na as generateUploadDocumentSchema,
8214
- Qn as getAcceptString,
8219
+ sa as generateAppropriatenessSchema,
8220
+ aa as generateQuestionnaireSchema,
8221
+ oa as generateRiskScoringSchema,
8222
+ ia as generateUploadDocumentSchema,
8223
+ Jn as getAcceptString,
8215
8224
  Wr as getApplicantId,
8216
- ut as getThemePreset,
8217
- Gn as getWorkflowState,
8225
+ pt as getThemePreset,
8226
+ Zn as getWorkflowState,
8218
8227
  Cr as healthcareTheme,
8219
- Un as isScriptLoaded,
8228
+ qn as isScriptLoaded,
8220
8229
  Mt as loadScript,
8221
8230
  Ir as minimalTheme,
8222
8231
  Nr as modernTheme,
8223
- Kn as removeScript,
8232
+ Vn as removeScript,
8224
8233
  jr as saveApplicantId,
8225
8234
  Kr as saveWorkflowState,
8226
8235
  Rr as themePresets,
8227
8236
  zt as useApplicant,
8228
- Zn as useAppropriatenessTest,
8237
+ ea as useAppropriatenessTest,
8229
8238
  Jr as useIdentityVerification,
8230
8239
  Vr as useKycWorkflow,
8231
8240
  Te as useMetaKYC,
@@ -8233,7 +8242,7 @@ export {
8233
8242
  Yr as useQuestionnaire,
8234
8243
  Zr as useRiskScoring,
8235
8244
  Qr as useUploadDocument,
8236
- Vn as validateFileSize,
8237
- Yn as validateFileType
8245
+ Qn as validateFileSize,
8246
+ Gn as validateFileType
8238
8247
  };
8239
8248
  //# sourceMappingURL=index.js.map