@vpdev2/metakyc 1.0.46 → 1.0.48
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/client/index.d.ts +1 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/session.d.ts +25 -0
- package/dist/client/session.d.ts.map +1 -0
- package/dist/index.cjs +13 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +321 -303
- package/dist/index.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import
|
|
1
|
+
var ui = Object.defineProperty;
|
|
2
|
+
var pi = (e, t, a) => t in e ? ui(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
|
|
3
|
+
var ve = (e, t, a) => pi(e, typeof t != "symbol" ? t + "" : t, a);
|
|
4
|
+
import Xt from "axios";
|
|
5
5
|
import { jsx as i, jsxs as s, Fragment as pt } from "react/jsx-runtime";
|
|
6
6
|
import * as Mt from "react";
|
|
7
|
-
import Ne, { createContext as
|
|
7
|
+
import Ne, { createContext as Zt, useMemo as Fe, useState as S, useEffect as be, useContext as Jt, useCallback as ie, useRef as ue, forwardRef as ht, createElement as It } from "react";
|
|
8
8
|
import gi, { createPortal as Lt } from "react-dom";
|
|
9
9
|
import { useForm as yi, Controller as ot } from "react-hook-form";
|
|
10
10
|
import { z as Ze } from "zod";
|
|
11
|
-
var me = /* @__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))(me || {}), xt = /* @__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))(xt || {}), Ue = /* @__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))(Ue || {}), fi = /* @__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))(fi || {}), ki = /* @__PURE__ */ ((e) => (e[e.LowRisk = 0] = "LowRisk", e[e.MediumRisk = 1] = "MediumRisk", e[e.HighRisk = 2] = "HighRisk", e[e.Alert = 3] = "Alert", e))(ki || {}),
|
|
11
|
+
var me = /* @__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))(me || {}), xt = /* @__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))(xt || {}), Ue = /* @__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))(Ue || {}), fi = /* @__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))(fi || {}), ki = /* @__PURE__ */ ((e) => (e[e.LowRisk = 0] = "LowRisk", e[e.MediumRisk = 1] = "MediumRisk", e[e.HighRisk = 2] = "HighRisk", e[e.Alert = 3] = "Alert", e))(ki || {}), ei = /* @__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))(ei || {}), Ke = /* @__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))(Ke || {}), hi = /* @__PURE__ */ ((e) => (e[e.ProviderResultPending = 0] = "ProviderResultPending", e[e.ProviderResultReceived = 1] = "ProviderResultReceived", e[e.Canceled = 2] = "Canceled", e[e.ExtendedToNewApplicant = 3] = "ExtendedToNewApplicant", e))(hi || {}), vi = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.ProviderResultPending = 1] = "ProviderResultPending", e[e.ProviderResultReceived = 2] = "ProviderResultReceived", e[e.Canceled = 3] = "Canceled", e))(vi || {}), qe = /* @__PURE__ */ ((e) => (e[e.Onfido = 0] = "Onfido", e[e.Sumsub = 2] = "Sumsub", e[e.SardinAI = 3] = "SardinAI", e))(qe || {}), bi = /* @__PURE__ */ ((e) => (e[e.Individual = 0] = "Individual", e[e.Company = 1] = "Company", e))(bi || {}), wt = /* @__PURE__ */ ((e) => (e[e.Male = 0] = "Male", e[e.Female = 1] = "Female", e[e.Other = 2] = "Other", e))(wt || {}), xi = /* @__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))(xi || {}), wi = /* @__PURE__ */ ((e) => (e[e.Pending = 0] = "Pending", e[e.Approved = 1] = "Approved", e[e.Rejected = 2] = "Rejected", e[e.RequiresRevision = 3] = "RequiresRevision", e))(wi || {}), Si = /* @__PURE__ */ ((e) => (e[e.SingleChoice = 0] = "SingleChoice", e[e.MultipleChoice = 1] = "MultipleChoice", e[e.Text = 2] = "Text", e))(Si || {}), 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 || {}), Ci = /* @__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))(Ci || {}), Ni = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Country = 1] = "Country", e))(Ni || {}), 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 || {}), Ti = /* @__PURE__ */ ((e) => (e[e.Retail = 0] = "Retail", e[e.Professional = 1] = "Professional", e[e.EligibleCounterparty = 2] = "EligibleCounterparty", e))(Ti || {});
|
|
12
12
|
const it = {
|
|
13
13
|
Nationality: 10,
|
|
14
14
|
Address: 20,
|
|
@@ -140,7 +140,7 @@ class Ai {
|
|
|
140
140
|
class Ge extends Error {
|
|
141
141
|
constructor(a, r, n, l, o) {
|
|
142
142
|
super(a);
|
|
143
|
-
|
|
143
|
+
ve(this, "response");
|
|
144
144
|
this.code = r, this.details = n, this.validationErrors = l, this.name = "MetaKYCError", this.response = o, Object.setPrototypeOf(this, Ge.prototype);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
@@ -196,10 +196,10 @@ class yt {
|
|
|
196
196
|
}
|
|
197
197
|
class Li {
|
|
198
198
|
constructor(t) {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
this.config = { ...zi, ...t }, this.endpointBuilder = new Ai(this.config.endpoints), this.axiosInstance =
|
|
199
|
+
ve(this, "axiosInstance");
|
|
200
|
+
ve(this, "endpointBuilder");
|
|
201
|
+
ve(this, "config");
|
|
202
|
+
this.config = { ...zi, ...t }, this.endpointBuilder = new Ai(this.config.endpoints), this.axiosInstance = Xt.create({
|
|
203
203
|
baseURL: this.config.baseUrl,
|
|
204
204
|
timeout: this.config.timeout,
|
|
205
205
|
headers: {
|
|
@@ -295,6 +295,23 @@ class Li {
|
|
|
295
295
|
return this.axiosInstance;
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
|
+
class Ea {
|
|
299
|
+
static async createToken(t) {
|
|
300
|
+
const { baseUrl: a, apiKey: r, secretKey: n, tenantId: l, clientId: o } = t;
|
|
301
|
+
if (!l && !o)
|
|
302
|
+
throw new Error("Either tenantId or clientId must be provided.");
|
|
303
|
+
const p = { apiKey: r, secretKey: n };
|
|
304
|
+
l != null && (p.tenantId = l), o && (p.clientId = o);
|
|
305
|
+
const d = (await Xt.post(
|
|
306
|
+
`${a.replace(/\/+$/, "")}/api/SdkSession/CreateToken`,
|
|
307
|
+
p,
|
|
308
|
+
{ headers: { "Content-Type": "application/json" } }
|
|
309
|
+
)).data;
|
|
310
|
+
if (!d.success)
|
|
311
|
+
throw new Error(d.error || "Failed to create session token.");
|
|
312
|
+
return d.result;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
298
315
|
class Ei {
|
|
299
316
|
constructor(t) {
|
|
300
317
|
this.httpClient = t;
|
|
@@ -1048,7 +1065,7 @@ class _i {
|
|
|
1048
1065
|
}
|
|
1049
1066
|
class Gi {
|
|
1050
1067
|
constructor() {
|
|
1051
|
-
|
|
1068
|
+
ve(this, "listeners", /* @__PURE__ */ new Map());
|
|
1052
1069
|
}
|
|
1053
1070
|
/**
|
|
1054
1071
|
* Subscribe to an event
|
|
@@ -1093,10 +1110,10 @@ class Gi {
|
|
|
1093
1110
|
}
|
|
1094
1111
|
class Qi {
|
|
1095
1112
|
constructor() {
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1113
|
+
ve(this, "events", new Gi());
|
|
1114
|
+
ve(this, "_applicantId", null);
|
|
1115
|
+
ve(this, "_progress", null);
|
|
1116
|
+
ve(this, "_error", null);
|
|
1100
1117
|
}
|
|
1101
1118
|
/**
|
|
1102
1119
|
* Get current applicant ID
|
|
@@ -1233,7 +1250,7 @@ class Qi {
|
|
|
1233
1250
|
}
|
|
1234
1251
|
class Xi {
|
|
1235
1252
|
constructor() {
|
|
1236
|
-
|
|
1253
|
+
ve(this, "handlers", /* @__PURE__ */ new Map());
|
|
1237
1254
|
}
|
|
1238
1255
|
/**
|
|
1239
1256
|
* Register a step handler
|
|
@@ -1274,8 +1291,8 @@ class Xi {
|
|
|
1274
1291
|
}
|
|
1275
1292
|
class Zi {
|
|
1276
1293
|
constructor(t, a, r, n, l, o, p, m) {
|
|
1277
|
-
|
|
1278
|
-
|
|
1294
|
+
ve(this, "state");
|
|
1295
|
+
ve(this, "stepRouter");
|
|
1279
1296
|
this.applicantService = t, this.questionnaireService = a, this.uploadDocumentService = r, this.appropriatenessTestService = n, this.overviewService = l, this.riskScoringService = o, this.investorCategorizationService = m, this.state = new Qi(), this.stepRouter = new Xi(), this.registerStepHandlers();
|
|
1280
1297
|
}
|
|
1281
1298
|
/**
|
|
@@ -1416,7 +1433,7 @@ class Zi {
|
|
|
1416
1433
|
return this.stepRouter;
|
|
1417
1434
|
}
|
|
1418
1435
|
}
|
|
1419
|
-
function
|
|
1436
|
+
function ti(e, t) {
|
|
1420
1437
|
return new Promise((a, r) => {
|
|
1421
1438
|
if (t && document.getElementById(t)) {
|
|
1422
1439
|
a();
|
|
@@ -1426,10 +1443,10 @@ function ei(e, t) {
|
|
|
1426
1443
|
n.src = e, t && (n.id = t), n.async = !0, n.onload = () => a(), n.onerror = () => r(new Error(`Failed to load script: ${e}`)), document.head.appendChild(n);
|
|
1427
1444
|
});
|
|
1428
1445
|
}
|
|
1429
|
-
function
|
|
1446
|
+
function Pa(e) {
|
|
1430
1447
|
return !!document.getElementById(e);
|
|
1431
1448
|
}
|
|
1432
|
-
function
|
|
1449
|
+
function Da(e) {
|
|
1433
1450
|
const t = document.getElementById(e);
|
|
1434
1451
|
t && t.remove();
|
|
1435
1452
|
}
|
|
@@ -1471,14 +1488,14 @@ a:hover { color: ${t}; }
|
|
|
1471
1488
|
}
|
|
1472
1489
|
class tr {
|
|
1473
1490
|
constructor(t) {
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1491
|
+
ve(this, "sdk", null);
|
|
1492
|
+
ve(this, "config");
|
|
1493
|
+
ve(this, "completeCallback", null);
|
|
1494
|
+
ve(this, "errorCallback", null);
|
|
1478
1495
|
this.config = t;
|
|
1479
1496
|
}
|
|
1480
1497
|
async loadSDK() {
|
|
1481
|
-
if (!window.snsWebSdk && (await
|
|
1498
|
+
if (!window.snsWebSdk && (await ti(Ji, "sumsub-websdk"), !window.snsWebSdk))
|
|
1482
1499
|
throw new Error("Sumsub Web SDK failed to load from CDN");
|
|
1483
1500
|
}
|
|
1484
1501
|
async initialize(t) {
|
|
@@ -1528,15 +1545,15 @@ class tr {
|
|
|
1528
1545
|
}
|
|
1529
1546
|
class ir {
|
|
1530
1547
|
constructor(t) {
|
|
1531
|
-
|
|
1532
|
-
|
|
1548
|
+
ve(this, "sdk", null);
|
|
1549
|
+
ve(this, "config");
|
|
1533
1550
|
this.config = t;
|
|
1534
1551
|
}
|
|
1535
1552
|
/**
|
|
1536
1553
|
* Load Onfido SDK
|
|
1537
1554
|
*/
|
|
1538
1555
|
async loadSDK() {
|
|
1539
|
-
await
|
|
1556
|
+
await ti(
|
|
1540
1557
|
"https://sdk.onfido.com/v12.0.0/onfido.min.js",
|
|
1541
1558
|
"onfido-sdk"
|
|
1542
1559
|
);
|
|
@@ -1594,9 +1611,9 @@ class ir {
|
|
|
1594
1611
|
}
|
|
1595
1612
|
class rr {
|
|
1596
1613
|
constructor(t) {
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1614
|
+
ve(this, "sardineContext", null);
|
|
1615
|
+
ve(this, "config");
|
|
1616
|
+
ve(this, "sessionKey");
|
|
1600
1617
|
this.config = t, this.sessionKey = t.sessionKey || this.generateSessionKey();
|
|
1601
1618
|
}
|
|
1602
1619
|
/**
|
|
@@ -1793,9 +1810,9 @@ class tt {
|
|
|
1793
1810
|
}
|
|
1794
1811
|
class ar {
|
|
1795
1812
|
constructor() {
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1813
|
+
ve(this, "currentTheme", Pe);
|
|
1814
|
+
ve(this, "customStyleElement", null);
|
|
1815
|
+
ve(this, "themeStyleElement", null);
|
|
1799
1816
|
}
|
|
1800
1817
|
/**
|
|
1801
1818
|
* Apply theme configuration
|
|
@@ -5605,7 +5622,7 @@ const nr = {
|
|
|
5605
5622
|
logo: {
|
|
5606
5623
|
companyLogo: "Şirket Logosu"
|
|
5607
5624
|
}
|
|
5608
|
-
},
|
|
5625
|
+
}, hr = {
|
|
5609
5626
|
common: {
|
|
5610
5627
|
next: "Nästa",
|
|
5611
5628
|
previous: "Föregående",
|
|
@@ -5885,7 +5902,7 @@ const nr = {
|
|
|
5885
5902
|
logo: {
|
|
5886
5903
|
companyLogo: "Företagslogotyp"
|
|
5887
5904
|
}
|
|
5888
|
-
},
|
|
5905
|
+
}, vr = {
|
|
5889
5906
|
common: {
|
|
5890
5907
|
next: "Næste",
|
|
5891
5908
|
previous: "Forrige",
|
|
@@ -6739,8 +6756,8 @@ const nr = {
|
|
|
6739
6756
|
ja: yr,
|
|
6740
6757
|
ar: fr,
|
|
6741
6758
|
tr: kr,
|
|
6742
|
-
sv:
|
|
6743
|
-
da:
|
|
6759
|
+
sv: hr,
|
|
6760
|
+
da: vr,
|
|
6744
6761
|
fi: br,
|
|
6745
6762
|
no: xr
|
|
6746
6763
|
};
|
|
@@ -6778,7 +6795,7 @@ function Vt(e, t) {
|
|
|
6778
6795
|
return r[t];
|
|
6779
6796
|
}
|
|
6780
6797
|
}
|
|
6781
|
-
function
|
|
6798
|
+
function ii(e) {
|
|
6782
6799
|
const t = zt.en;
|
|
6783
6800
|
return (a, r) => {
|
|
6784
6801
|
const n = !a.includes("."), l = Ft(e, a) ?? (n ? Vt(e, a) : void 0) ?? Ft(t, a) ?? (n ? Vt(t, a) : void 0) ?? a;
|
|
@@ -6794,7 +6811,7 @@ function G(e, t) {
|
|
|
6794
6811
|
const r = Sr.exec(a);
|
|
6795
6812
|
return r ? t(r[1]) : e;
|
|
6796
6813
|
}
|
|
6797
|
-
const
|
|
6814
|
+
const ri = "1.0.48", ai = Zt(null), qt = `metakyc-translations-${ri}-`, Cr = ({
|
|
6798
6815
|
locale: e,
|
|
6799
6816
|
fetchTranslations: t,
|
|
6800
6817
|
children: a
|
|
@@ -6819,8 +6836,8 @@ const ii = "1.0.46", ri = Xt(null), qt = `metakyc-translations-${ii}-`, Cr = ({
|
|
|
6819
6836
|
return;
|
|
6820
6837
|
}
|
|
6821
6838
|
console.debug("[MetaKYC i18n] Remote overrides loaded for locale:", r, d);
|
|
6822
|
-
const y = At(r),
|
|
6823
|
-
o(
|
|
6839
|
+
const y = At(r), v = Ot(y, d);
|
|
6840
|
+
o(v);
|
|
6824
6841
|
try {
|
|
6825
6842
|
localStorage.setItem(qt + r, JSON.stringify(d));
|
|
6826
6843
|
} catch {
|
|
@@ -6832,21 +6849,21 @@ const ii = "1.0.46", ri = Xt(null), qt = `metakyc-translations-${ii}-`, Cr = ({
|
|
|
6832
6849
|
};
|
|
6833
6850
|
}, [r, t]);
|
|
6834
6851
|
const p = Fe(() => ({
|
|
6835
|
-
t:
|
|
6852
|
+
t: ii(l),
|
|
6836
6853
|
locale: r,
|
|
6837
6854
|
dictionary: l
|
|
6838
6855
|
}), [l, r]);
|
|
6839
|
-
return /* @__PURE__ */ i(
|
|
6856
|
+
return /* @__PURE__ */ i(ai.Provider, { value: p, children: a });
|
|
6840
6857
|
};
|
|
6841
6858
|
function Ie() {
|
|
6842
|
-
const e =
|
|
6859
|
+
const e = Jt(ai);
|
|
6843
6860
|
if (!e) {
|
|
6844
6861
|
const t = At("en");
|
|
6845
|
-
return { t:
|
|
6862
|
+
return { t: ii(t), locale: "en", dictionary: t };
|
|
6846
6863
|
}
|
|
6847
6864
|
return e;
|
|
6848
6865
|
}
|
|
6849
|
-
const ai = Xt(null), Nr = '.metakyc-sdk .pointer-events-none{pointer-events:none}.metakyc-sdk .visible{visibility:visible}.metakyc-sdk .static{position:static}.metakyc-sdk .fixed{position:fixed}.metakyc-sdk .absolute{position:absolute}.metakyc-sdk .relative{position:relative}.metakyc-sdk .inset-y-0{top:0;bottom:0}.metakyc-sdk .left-0{left:0}.metakyc-sdk .right-0{right:0}.metakyc-sdk .right-3{right:.75rem}.metakyc-sdk .top-1\\/2{top:50%}.metakyc-sdk .mx-4{margin-left:1rem;margin-right:1rem}.metakyc-sdk .mx-6{margin-left:1.5rem;margin-right:1.5rem}.metakyc-sdk .mx-auto{margin-left:auto;margin-right:auto}.metakyc-sdk .my-8{margin-top:2rem;margin-bottom:2rem}.metakyc-sdk .-ml-1{margin-left:-.25rem}.metakyc-sdk .mb-0\\.5{margin-bottom:.125rem}.metakyc-sdk .mb-1{margin-bottom:.25rem}.metakyc-sdk .mb-2{margin-bottom:.5rem}.metakyc-sdk .mb-3{margin-bottom:.75rem}.metakyc-sdk .mb-4{margin-bottom:1rem}.metakyc-sdk .mb-6{margin-bottom:1.5rem}.metakyc-sdk .ml-0\\.5{margin-left:.125rem}.metakyc-sdk .ml-1{margin-left:.25rem}.metakyc-sdk .ml-3{margin-left:.75rem}.metakyc-sdk .mr-2{margin-right:.5rem}.metakyc-sdk .mr-3{margin-right:.75rem}.metakyc-sdk .mt-0\\.5{margin-top:.125rem}.metakyc-sdk .mt-1{margin-top:.25rem}.metakyc-sdk .mt-2{margin-top:.5rem}.metakyc-sdk .mt-3{margin-top:.75rem}.metakyc-sdk .mt-4{margin-top:1rem}.metakyc-sdk .mt-6{margin-top:1.5rem}.metakyc-sdk .block{display:block}.metakyc-sdk .inline-block{display:inline-block}.metakyc-sdk .inline{display:inline}.metakyc-sdk .flex{display:flex}.metakyc-sdk .inline-flex{display:inline-flex}.metakyc-sdk .grid{display:grid}.metakyc-sdk .hidden{display:none}.metakyc-sdk .h-12{height:3rem}.metakyc-sdk .h-16{height:4rem}.metakyc-sdk .h-24{height:6rem}.metakyc-sdk .h-4{height:1rem}.metakyc-sdk .h-6{height:1.5rem}.metakyc-sdk .h-8{height:2rem}.metakyc-sdk .h-full{height:100%}.metakyc-sdk .max-h-52{max-height:13rem}.metakyc-sdk .min-h-\\[400px\\]{min-height:400px}.metakyc-sdk .w-12{width:3rem}.metakyc-sdk .w-16{width:4rem}.metakyc-sdk .w-20{width:5rem}.metakyc-sdk .w-24{width:6rem}.metakyc-sdk .w-4{width:1rem}.metakyc-sdk .w-6{width:1.5rem}.metakyc-sdk .w-8{width:2rem}.metakyc-sdk .w-full{width:100%}.metakyc-sdk .max-w-md{max-width:28rem}.metakyc-sdk .flex-1{flex:1 1 0%}.metakyc-sdk .flex-shrink-0{flex-shrink:0}.metakyc-sdk .-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.metakyc-sdk .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.metakyc-sdk .animate-spin{animation:spin 1s linear infinite}.metakyc-sdk .cursor-not-allowed{cursor:not-allowed}.metakyc-sdk .cursor-pointer{cursor:pointer}.metakyc-sdk .resize{resize:both}.metakyc-sdk .list-inside{list-style-position:inside}.metakyc-sdk .list-disc{list-style-type:disc}.metakyc-sdk .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.metakyc-sdk .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.metakyc-sdk .flex-col{flex-direction:column}.metakyc-sdk .flex-wrap{flex-wrap:wrap}.metakyc-sdk .items-start{align-items:flex-start}.metakyc-sdk .items-center{align-items:center}.metakyc-sdk .justify-center{justify-content:center}.metakyc-sdk .justify-between{justify-content:space-between}.metakyc-sdk .gap-1{gap:.25rem}.metakyc-sdk .gap-1\\.5{gap:.375rem}.metakyc-sdk .gap-2{gap:.5rem}.metakyc-sdk .gap-4{gap:1rem}.metakyc-sdk :is(.space-x-3>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.metakyc-sdk :is(.space-y-1>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-1\\.5>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-2>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-4>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-6>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-8>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.metakyc-sdk .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.metakyc-sdk .rounded{border-radius:.25rem}.metakyc-sdk .rounded-full{border-radius:9999px}.metakyc-sdk .rounded-lg{border-radius:.5rem}.metakyc-sdk .rounded-xl{border-radius:.75rem}.metakyc-sdk .border{border-width:1px}.metakyc-sdk .border-0{border-width:0px}.metakyc-sdk .border-2{border-width:2px}.metakyc-sdk .border-b{border-bottom-width:1px}.metakyc-sdk .border-t{border-top-width:1px}.metakyc-sdk .border-danger-500{border-color:var(--metakyc-danger, #EF4444)}.metakyc-sdk .p-3{padding:.75rem}.metakyc-sdk .p-4{padding:1rem}.metakyc-sdk .px-2{padding-left:.5rem;padding-right:.5rem}.metakyc-sdk .px-2\\.5{padding-left:.625rem;padding-right:.625rem}.metakyc-sdk .px-3{padding-left:.75rem;padding-right:.75rem}.metakyc-sdk .px-4{padding-left:1rem;padding-right:1rem}.metakyc-sdk .px-6{padding-left:1.5rem;padding-right:1.5rem}.metakyc-sdk .py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.metakyc-sdk .py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.metakyc-sdk .py-12{padding-top:3rem;padding-bottom:3rem}.metakyc-sdk .py-2{padding-top:.5rem;padding-bottom:.5rem}.metakyc-sdk .py-3{padding-top:.75rem;padding-bottom:.75rem}.metakyc-sdk .py-4{padding-top:1rem;padding-bottom:1rem}.metakyc-sdk .py-8{padding-top:2rem;padding-bottom:2rem}.metakyc-sdk .pb-4{padding-bottom:1rem}.metakyc-sdk .pl-10{padding-left:2.5rem}.metakyc-sdk .pl-3{padding-left:.75rem}.metakyc-sdk .pr-10{padding-right:2.5rem}.metakyc-sdk .pr-3{padding-right:.75rem}.metakyc-sdk .pr-6{padding-right:1.5rem}.metakyc-sdk .pt-6{padding-top:1.5rem}.metakyc-sdk .text-left{text-align:left}.metakyc-sdk .text-center{text-align:center}.metakyc-sdk .text-right{text-align:right}.metakyc-sdk .text-2xl{font-size:1.5rem;line-height:2rem}.metakyc-sdk .text-3xl{font-size:1.875rem;line-height:2.25rem}.metakyc-sdk .text-5xl{font-size:3rem;line-height:1}.metakyc-sdk .text-base{font-size:1rem;line-height:1.5rem}.metakyc-sdk .text-lg{font-size:1.125rem;line-height:1.75rem}.metakyc-sdk .text-sm{font-size:.875rem;line-height:1.25rem}.metakyc-sdk .text-xl{font-size:1.25rem;line-height:1.75rem}.metakyc-sdk .text-xs{font-size:.75rem;line-height:1rem}.metakyc-sdk .font-bold{font-weight:700}.metakyc-sdk .font-medium{font-weight:500}.metakyc-sdk .font-semibold{font-weight:600}.metakyc-sdk .uppercase{text-transform:uppercase}.metakyc-sdk .lowercase{text-transform:lowercase}.metakyc-sdk .tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.metakyc-sdk .leading-6{line-height:1.5rem}.metakyc-sdk .text-danger-500{color:var(--metakyc-danger, #EF4444)}.metakyc-sdk .text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-primary,.metakyc-sdk .text-primary-500{color:var(--metakyc-primary, #3B82F6)}.metakyc-sdk .text-secondary{color:var(--metakyc-secondary, #64748b)}.metakyc-sdk .underline{text-decoration-line:underline}.metakyc-sdk .opacity-25{opacity:.25}.metakyc-sdk .opacity-50{opacity:.5}.metakyc-sdk .opacity-60{opacity:.6}.metakyc-sdk .opacity-75{opacity:.75}.metakyc-sdk .shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.metakyc-sdk .outline{outline-style:solid}.metakyc-sdk .ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.metakyc-sdk .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.metakyc-sdk .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.metakyc-sdk .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .duration-200{transition-duration:.2s}.metakyc-sdk .grid{display:grid!important}.metakyc-sdk .flex{display:flex!important}.metakyc-sdk .inline-flex{display:inline-flex!important}.metakyc-sdk .hidden{display:none!important}.metakyc-sdk .block{display:block!important}.metakyc-sdk .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.metakyc-sdk .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.metakyc-sdk .grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.metakyc-sdk .grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}.metakyc-sdk .col-span-1{grid-column:span 1 / span 1!important}.metakyc-sdk .col-span-2{grid-column:span 2 / span 2!important}.metakyc-sdk .col-span-3{grid-column:span 3 / span 3!important}.metakyc-sdk .col-span-4{grid-column:span 4 / span 4!important}.metakyc-sdk .gap-1{gap:.25rem!important}.metakyc-sdk .gap-2{gap:.5rem!important}.metakyc-sdk .gap-3{gap:.75rem!important}.metakyc-sdk .gap-4{gap:1rem!important}.metakyc-sdk .gap-6{gap:1.5rem!important}.metakyc-sdk .gap-8{gap:2rem!important}.metakyc-sdk .flex-col{flex-direction:column!important}.metakyc-sdk .flex-row{flex-direction:row!important}.metakyc-sdk .flex-wrap{flex-wrap:wrap!important}.metakyc-sdk .flex-1{flex:1 1 0%!important}.metakyc-sdk .flex-shrink-0{flex-shrink:0!important}.metakyc-sdk .items-center{align-items:center!important}.metakyc-sdk .items-start{align-items:flex-start!important}.metakyc-sdk .items-end{align-items:flex-end!important}.metakyc-sdk .justify-between{justify-content:space-between!important}.metakyc-sdk .justify-center{justify-content:center!important}.metakyc-sdk .justify-end{justify-content:flex-end!important}.metakyc-sdk .justify-start{justify-content:flex-start!important}.metakyc-sdk .space-y-1>*+*{margin-top:.25rem!important}.metakyc-sdk .space-y-1\\.5>*+*{margin-top:.375rem!important}.metakyc-sdk .space-y-2>*+*{margin-top:.5rem!important}.metakyc-sdk .space-y-3>*+*{margin-top:.75rem!important}.metakyc-sdk .space-y-4>*+*{margin-top:1rem!important}.metakyc-sdk .space-y-6>*+*{margin-top:1.5rem!important}.metakyc-sdk .w-full{width:100%!important}.metakyc-sdk .relative{position:relative!important}.metakyc-sdk .absolute{position:absolute!important}.metakyc-sdk .overflow-hidden{overflow:hidden!important}.metakyc-sdk .overflow-auto{overflow:auto!important}.metakyc-sdk .overflow-x-auto{overflow-x:auto!important}@media (min-width: 768px){.metakyc-sdk .md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.metakyc-sdk .md\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}}.metakyc-sdk .metakyc-form-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:1rem!important}@media (max-width: 767px){.metakyc-sdk .metakyc-form-grid{grid-template-columns:1fr!important}.metakyc-sdk .metakyc-form-grid>*{grid-column:span 1 / span 1!important}.metakyc-sdk .metakyc-grid-2{grid-template-columns:1fr!important}}@media (max-width: 767px){.metakyc-sdk .metakyc-card-content,.metakyc-sdk .metakyc-card-header,.metakyc-sdk .metakyc-card-footer,.metakyc-sdk .metakyc-progress-wrapper{padding-left:12px!important;padding-right:12px!important}.metakyc-sdk .metakyc-form-grid{gap:.75rem!important}}.metakyc-sdk *,.metakyc-sdk *:before,.metakyc-sdk *:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--metakyc-border, #e5e7eb)}.metakyc-sdk{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4}.metakyc-sdk img,.metakyc-sdk video{max-width:100%;height:auto}.metakyc-sdk h1,.metakyc-sdk h2,.metakyc-sdk h3,.metakyc-sdk h4,.metakyc-sdk h5,.metakyc-sdk h6,.metakyc-sdk p{margin:0}.metakyc-sdk ol,.metakyc-sdk ul{list-style:none;margin:0;padding:0}.metakyc-sdk button,.metakyc-sdk input,.metakyc-sdk optgroup,.metakyc-sdk select,.metakyc-sdk textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}.metakyc-sdk button,.metakyc-sdk [role=button]{cursor:pointer}.metakyc-sdk a{color:inherit;text-decoration:inherit}.metakyc-sdk input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]),.metakyc-sdk select,.metakyc-sdk textarea,.metakyc-sdk .metakyc-searchable-select-trigger,.metakyc-sdk .metakyc-multiselect-trigger{background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important;border-color:var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important}.metakyc-sdk input::-moz-placeholder,.metakyc-sdk textarea::-moz-placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-sdk input::placeholder,.metakyc-sdk textarea::placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-sdk input:not([type=checkbox]):not([type=radio]):focus,.metakyc-sdk select:focus,.metakyc-sdk textarea:focus{outline:none!important;border-color:var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb))!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb)) 20%,transparent)!important}.metakyc-sdk input[type=checkbox],.metakyc-sdk input[type=radio]{appearance:none!important;-webkit-appearance:none!important;-moz-appearance:none!important;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-width:16px!important;max-height:16px!important;flex-shrink:0!important;cursor:pointer!important;background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;border:1.5px solid var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important;position:relative!important;transition:background-color .15s,border-color .15s!important;vertical-align:middle!important;display:inline-block!important;padding:0!important;margin:0!important;color-scheme:light!important}.metakyc-sdk input[type=checkbox]{border-radius:4px!important}.metakyc-sdk input[type=radio]{border-radius:50%!important}.metakyc-sdk input[type=checkbox]:checked,.metakyc-sdk input[type=radio]:checked{background-color:var(--metakyc-primary, #2563eb)!important;border-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk input[type=checkbox]:checked:after{content:""!important;display:block!important;position:absolute!important;left:4px!important;top:1px!important;width:5px!important;height:9px!important;border:2px solid #ffffff!important;border-top:none!important;border-left:none!important;transform:rotate(45deg)!important}.metakyc-sdk input[type=radio]:checked:after{content:""!important;display:block!important;position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:6px!important;height:6px!important;border-radius:50%!important;background:#fff!important}.metakyc-sdk input[type=checkbox]:focus,.metakyc-sdk input[type=radio]:focus{outline:none!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--metakyc-primary, #2563eb) 30%,transparent)!important}.metakyc-searchable-select-dropdown,.metakyc-multiselect-dropdown{background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;border-color:var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important}.metakyc-searchable-select-dropdown input,.metakyc-multiselect-dropdown input{background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important;border-color:var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important}.metakyc-searchable-select-dropdown input::-moz-placeholder,.metakyc-multiselect-dropdown input::-moz-placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-searchable-select-dropdown input::placeholder,.metakyc-multiselect-dropdown input::placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-searchable-select-dropdown input:focus,.metakyc-multiselect-dropdown input:focus{outline:none!important;background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important;border-color:var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb))!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb)) 20%,transparent)!important}.metakyc-searchable-select-dropdown li:hover,.metakyc-multiselect-dropdown li:hover{background-color:var(--metakyc-surface, var(--metakyc-background, #f9fafb))!important}.metakyc-sdk .metakyc-help-btn{color:var(--metakyc-primary, #2563eb)!important;border-color:var(--metakyc-primary, #2563eb)!important;background:transparent!important;position:relative!important;z-index:2!important}.metakyc-sdk .metakyc-overview-step-item,.metakyc-sdk .metakyc-overview-step-item *,.metakyc-sdk .metakyc-step-content,.metakyc-sdk .metakyc-step-content *,.metakyc-sdk .metakyc-step-title,.metakyc-sdk .metakyc-step-title *,.metakyc-sdk .metakyc-step-icon,.metakyc-sdk .metakyc-step-icon *,.metakyc-sdk .metakyc-step-description,.metakyc-sdk .metakyc-step-description *{border-top-width:0!important;border-bottom-width:0!important;border-left-width:0!important;border-right-width:0!important;border-top-style:none!important;border-bottom-style:none!important;border-left-style:none!important;border-right-style:none!important;border-top-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important;border-right-color:transparent!important;border:0!important;box-shadow:none!important;outline:none!important;outline-width:0!important;outline-style:none!important;text-decoration:none!important;text-decoration-line:none!important}.metakyc-sdk .metakyc-overview-step-item:before,.metakyc-sdk .metakyc-overview-step-item:after,.metakyc-sdk .metakyc-overview-step-item *:before,.metakyc-sdk .metakyc-overview-step-item *:after,.metakyc-sdk .metakyc-step-content:before,.metakyc-sdk .metakyc-step-content:after,.metakyc-sdk .metakyc-step-content *:before,.metakyc-sdk .metakyc-step-content *:after,.metakyc-sdk .metakyc-step-title:before,.metakyc-sdk .metakyc-step-title:after,.metakyc-sdk .metakyc-step-description:before,.metakyc-sdk .metakyc-step-description:after{content:none!important;display:none!important;visibility:hidden!important;border:none!important;box-shadow:none!important;outline:none!important;background:none!important;height:0!important;width:0!important}.metakyc-sdk .metakyc-overview-step-item{border-width:0!important;border-style:none!important;border:0!important;box-shadow:none!important;outline:none!important}.metakyc-sdk .metakyc-step-content{border-width:0!important;border-style:none!important;border:0!important;padding-top:0!important;margin-top:0!important;box-shadow:none!important;outline:none!important}.metakyc-sdk .metakyc-step-title{border-width:0!important;border-style:none!important;border:0!important;padding-top:0!important;margin-top:0!important;box-shadow:none!important;outline:none!important;text-decoration:none!important}.metakyc-sdk hr,.metakyc-sdk .metakyc-overview-step-item hr,.metakyc-sdk .metakyc-overview-step-item * hr,.metakyc-sdk .metakyc-step-content hr,.metakyc-sdk .metakyc-step-content * hr{display:block!important;height:0!important;border:0!important;border-top:1px solid var(--metakyc-primary, #2563eb)!important;opacity:.25!important;margin:1rem 0!important;overflow:visible!important}.metakyc-sdk{background-color:var(--metakyc-background, #ffffff)!important;color:var(--metakyc-text-primary, #111827)!important;font-family:var(--metakyc-font-family, inherit)!important;padding:1.5rem!important;border-radius:.75rem!important}.metakyc-sdk h1,.metakyc-sdk h2,.metakyc-sdk h3,.metakyc-sdk h4,.metakyc-sdk h5,.metakyc-sdk h6{color:var(--metakyc-text-primary, #111827);letter-spacing:normal}.metakyc-sdk .text-gray-900{color:var(--metakyc-text-primary, #111827)!important}.metakyc-sdk .text-gray-800{color:var(--metakyc-text-primary, #1f2937)!important}.metakyc-sdk .text-gray-700{color:var(--metakyc-text-secondary, #374151)!important}.metakyc-sdk .text-gray-600{color:var(--metakyc-text-secondary, #6b7280)!important}.metakyc-sdk .text-gray-500{color:var(--metakyc-text-muted, #6b7280)!important}.metakyc-sdk .text-gray-400{color:var(--metakyc-text-muted, #9ca3af)!important}.metakyc-sdk .text-gray-300{color:var(--metakyc-text-muted, #d1d5db)!important}.metakyc-sdk .text-white{color:#fff!important}.metakyc-sdk .bg-white{background-color:var(--metakyc-background, #ffffff)!important}.metakyc-sdk .bg-gray-50{background-color:var(--metakyc-surface, #f9fafb)!important}.metakyc-sdk .bg-gray-100{background-color:var(--metakyc-surface, #f3f4f6)!important}.metakyc-sdk .bg-gray-200{background-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .bg-gray-800{background-color:var(--metakyc-surface, #1f2937)!important}.metakyc-sdk .border-gray-100,.metakyc-sdk .border-gray-200,.metakyc-sdk .border-gray-300{border-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .border-t{border-top-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .border-b{border-bottom-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .divide-gray-200>*{border-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .bg-primary-500,.metakyc-sdk .bg-primary-600{background-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .bg-primary-50,.metakyc-sdk .bg-primary-100{background-color:var(--metakyc-primary-light, #dbeafe)!important}.metakyc-sdk .text-primary-500,.metakyc-sdk .text-primary-600,.metakyc-sdk .text-primary-800{color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .text-primary-900{color:var(--metakyc-primary-dark, #1e40af)!important}.metakyc-sdk .border-primary-500,.metakyc-sdk .border-primary-600{border-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .hover\\:bg-primary-50:hover{background-color:var(--metakyc-primary-light, #dbeafe)!important}.metakyc-sdk .hover\\:bg-primary-600:hover{background-color:var(--metakyc-primary-hover, #1d4ed8)!important}.metakyc-sdk .bg-blue-600{background-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .bg-blue-100{background-color:var(--metakyc-primary-light, #dbeafe)!important}.metakyc-sdk .text-blue-600,.metakyc-sdk .text-blue-400{color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .hover\\:bg-blue-700:hover{background-color:var(--metakyc-primary-hover, #1d4ed8)!important}.metakyc-sdk .metakyc-overview-steps h3:before,.metakyc-sdk .metakyc-overview-steps h3:after{content:none!important;display:none!important}.metakyc-sdk .metakyc-overview-steps *:before,.metakyc-sdk .metakyc-overview-steps *:after{content:none!important;display:none!important}.metakyc-sdk .metakyc-stepper-scroll::-webkit-scrollbar{display:none!important;height:0!important;width:0!important}.metakyc-sdk .metakyc-file-dropzone:hover{border-color:var(--metakyc-primary, #2563eb)!important;background-color:color-mix(in srgb,var(--metakyc-primary, #2563eb) 3%,var(--metakyc-background, #ffffff))!important}.metakyc-sdk .metakyc-file-item:hover{background-color:color-mix(in srgb,var(--metakyc-surface, #f9fafb) 80%,var(--metakyc-border, #e5e7eb))!important}.metakyc-sdk .metakyc-file-upload label{color:var(--metakyc-text-primary, #111827)!important}.metakyc-sdk .metakyc-file-upload p{margin:0!important;line-height:1.4!important}.metakyc-sdk .metakyc-file-item button{background:transparent!important;border:none!important;box-shadow:none!important;outline:none!important}.metakyc-sdk .metakyc-file-dropzone{box-shadow:none!important;outline:none!important}.metakyc-sdk .hover\\:opacity-90:hover{opacity:.9}.metakyc-sdk .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.metakyc-sdk .focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.metakyc-sdk .focus\\:ring-offset-0:focus{--tw-ring-offset-width: 0px}.metakyc-sdk .focus\\:ring-offset-1:focus{--tw-ring-offset-width: 1px}.metakyc-sdk .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.metakyc-sdk .disabled\\:opacity-50:disabled{opacity:.5}.metakyc-sdk .disabled\\:opacity-60:disabled{opacity:.6}.metakyc-sdk .dark\\:text-gray-400:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-gray-500:is(.dark *){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.metakyc-sdk .md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}', Ut = "metakyc-sdk-styles";
|
|
6866
|
+
const ni = Zt(null), Nr = '.metakyc-sdk .pointer-events-none{pointer-events:none}.metakyc-sdk .visible{visibility:visible}.metakyc-sdk .static{position:static}.metakyc-sdk .fixed{position:fixed}.metakyc-sdk .absolute{position:absolute}.metakyc-sdk .relative{position:relative}.metakyc-sdk .inset-y-0{top:0;bottom:0}.metakyc-sdk .left-0{left:0}.metakyc-sdk .right-0{right:0}.metakyc-sdk .right-3{right:.75rem}.metakyc-sdk .top-1\\/2{top:50%}.metakyc-sdk .mx-4{margin-left:1rem;margin-right:1rem}.metakyc-sdk .mx-6{margin-left:1.5rem;margin-right:1.5rem}.metakyc-sdk .mx-auto{margin-left:auto;margin-right:auto}.metakyc-sdk .my-8{margin-top:2rem;margin-bottom:2rem}.metakyc-sdk .-ml-1{margin-left:-.25rem}.metakyc-sdk .mb-0\\.5{margin-bottom:.125rem}.metakyc-sdk .mb-1{margin-bottom:.25rem}.metakyc-sdk .mb-2{margin-bottom:.5rem}.metakyc-sdk .mb-3{margin-bottom:.75rem}.metakyc-sdk .mb-4{margin-bottom:1rem}.metakyc-sdk .mb-6{margin-bottom:1.5rem}.metakyc-sdk .ml-0\\.5{margin-left:.125rem}.metakyc-sdk .ml-1{margin-left:.25rem}.metakyc-sdk .ml-3{margin-left:.75rem}.metakyc-sdk .mr-2{margin-right:.5rem}.metakyc-sdk .mr-3{margin-right:.75rem}.metakyc-sdk .mt-0\\.5{margin-top:.125rem}.metakyc-sdk .mt-1{margin-top:.25rem}.metakyc-sdk .mt-2{margin-top:.5rem}.metakyc-sdk .mt-3{margin-top:.75rem}.metakyc-sdk .mt-4{margin-top:1rem}.metakyc-sdk .mt-6{margin-top:1.5rem}.metakyc-sdk .block{display:block}.metakyc-sdk .inline-block{display:inline-block}.metakyc-sdk .inline{display:inline}.metakyc-sdk .flex{display:flex}.metakyc-sdk .inline-flex{display:inline-flex}.metakyc-sdk .grid{display:grid}.metakyc-sdk .hidden{display:none}.metakyc-sdk .h-12{height:3rem}.metakyc-sdk .h-16{height:4rem}.metakyc-sdk .h-24{height:6rem}.metakyc-sdk .h-4{height:1rem}.metakyc-sdk .h-6{height:1.5rem}.metakyc-sdk .h-8{height:2rem}.metakyc-sdk .h-full{height:100%}.metakyc-sdk .max-h-52{max-height:13rem}.metakyc-sdk .min-h-\\[400px\\]{min-height:400px}.metakyc-sdk .w-12{width:3rem}.metakyc-sdk .w-16{width:4rem}.metakyc-sdk .w-20{width:5rem}.metakyc-sdk .w-24{width:6rem}.metakyc-sdk .w-4{width:1rem}.metakyc-sdk .w-6{width:1.5rem}.metakyc-sdk .w-8{width:2rem}.metakyc-sdk .w-full{width:100%}.metakyc-sdk .max-w-md{max-width:28rem}.metakyc-sdk .flex-1{flex:1 1 0%}.metakyc-sdk .flex-shrink-0{flex-shrink:0}.metakyc-sdk .-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.metakyc-sdk .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.metakyc-sdk .animate-spin{animation:spin 1s linear infinite}.metakyc-sdk .cursor-not-allowed{cursor:not-allowed}.metakyc-sdk .cursor-pointer{cursor:pointer}.metakyc-sdk .resize{resize:both}.metakyc-sdk .list-inside{list-style-position:inside}.metakyc-sdk .list-disc{list-style-type:disc}.metakyc-sdk .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.metakyc-sdk .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.metakyc-sdk .flex-col{flex-direction:column}.metakyc-sdk .flex-wrap{flex-wrap:wrap}.metakyc-sdk .items-start{align-items:flex-start}.metakyc-sdk .items-center{align-items:center}.metakyc-sdk .justify-center{justify-content:center}.metakyc-sdk .justify-between{justify-content:space-between}.metakyc-sdk .gap-1{gap:.25rem}.metakyc-sdk .gap-1\\.5{gap:.375rem}.metakyc-sdk .gap-2{gap:.5rem}.metakyc-sdk .gap-4{gap:1rem}.metakyc-sdk :is(.space-x-3>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.metakyc-sdk :is(.space-y-1>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-1\\.5>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-2>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-4>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-6>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-8>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.metakyc-sdk .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.metakyc-sdk .rounded{border-radius:.25rem}.metakyc-sdk .rounded-full{border-radius:9999px}.metakyc-sdk .rounded-lg{border-radius:.5rem}.metakyc-sdk .rounded-xl{border-radius:.75rem}.metakyc-sdk .border{border-width:1px}.metakyc-sdk .border-0{border-width:0px}.metakyc-sdk .border-2{border-width:2px}.metakyc-sdk .border-b{border-bottom-width:1px}.metakyc-sdk .border-t{border-top-width:1px}.metakyc-sdk .border-danger-500{border-color:var(--metakyc-danger, #EF4444)}.metakyc-sdk .p-3{padding:.75rem}.metakyc-sdk .p-4{padding:1rem}.metakyc-sdk .px-2{padding-left:.5rem;padding-right:.5rem}.metakyc-sdk .px-2\\.5{padding-left:.625rem;padding-right:.625rem}.metakyc-sdk .px-3{padding-left:.75rem;padding-right:.75rem}.metakyc-sdk .px-4{padding-left:1rem;padding-right:1rem}.metakyc-sdk .px-6{padding-left:1.5rem;padding-right:1.5rem}.metakyc-sdk .py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.metakyc-sdk .py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.metakyc-sdk .py-12{padding-top:3rem;padding-bottom:3rem}.metakyc-sdk .py-2{padding-top:.5rem;padding-bottom:.5rem}.metakyc-sdk .py-3{padding-top:.75rem;padding-bottom:.75rem}.metakyc-sdk .py-4{padding-top:1rem;padding-bottom:1rem}.metakyc-sdk .py-8{padding-top:2rem;padding-bottom:2rem}.metakyc-sdk .pb-4{padding-bottom:1rem}.metakyc-sdk .pl-10{padding-left:2.5rem}.metakyc-sdk .pl-3{padding-left:.75rem}.metakyc-sdk .pr-10{padding-right:2.5rem}.metakyc-sdk .pr-3{padding-right:.75rem}.metakyc-sdk .pr-6{padding-right:1.5rem}.metakyc-sdk .pt-6{padding-top:1.5rem}.metakyc-sdk .text-left{text-align:left}.metakyc-sdk .text-center{text-align:center}.metakyc-sdk .text-right{text-align:right}.metakyc-sdk .text-2xl{font-size:1.5rem;line-height:2rem}.metakyc-sdk .text-3xl{font-size:1.875rem;line-height:2.25rem}.metakyc-sdk .text-5xl{font-size:3rem;line-height:1}.metakyc-sdk .text-base{font-size:1rem;line-height:1.5rem}.metakyc-sdk .text-lg{font-size:1.125rem;line-height:1.75rem}.metakyc-sdk .text-sm{font-size:.875rem;line-height:1.25rem}.metakyc-sdk .text-xl{font-size:1.25rem;line-height:1.75rem}.metakyc-sdk .text-xs{font-size:.75rem;line-height:1rem}.metakyc-sdk .font-bold{font-weight:700}.metakyc-sdk .font-medium{font-weight:500}.metakyc-sdk .font-semibold{font-weight:600}.metakyc-sdk .uppercase{text-transform:uppercase}.metakyc-sdk .lowercase{text-transform:lowercase}.metakyc-sdk .tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.metakyc-sdk .leading-6{line-height:1.5rem}.metakyc-sdk .text-danger-500{color:var(--metakyc-danger, #EF4444)}.metakyc-sdk .text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-primary,.metakyc-sdk .text-primary-500{color:var(--metakyc-primary, #3B82F6)}.metakyc-sdk .text-secondary{color:var(--metakyc-secondary, #64748b)}.metakyc-sdk .underline{text-decoration-line:underline}.metakyc-sdk .opacity-25{opacity:.25}.metakyc-sdk .opacity-50{opacity:.5}.metakyc-sdk .opacity-60{opacity:.6}.metakyc-sdk .opacity-75{opacity:.75}.metakyc-sdk .shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.metakyc-sdk .outline{outline-style:solid}.metakyc-sdk .ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.metakyc-sdk .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.metakyc-sdk .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.metakyc-sdk .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .duration-200{transition-duration:.2s}.metakyc-sdk .grid{display:grid!important}.metakyc-sdk .flex{display:flex!important}.metakyc-sdk .inline-flex{display:inline-flex!important}.metakyc-sdk .hidden{display:none!important}.metakyc-sdk .block{display:block!important}.metakyc-sdk .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.metakyc-sdk .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.metakyc-sdk .grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.metakyc-sdk .grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}.metakyc-sdk .col-span-1{grid-column:span 1 / span 1!important}.metakyc-sdk .col-span-2{grid-column:span 2 / span 2!important}.metakyc-sdk .col-span-3{grid-column:span 3 / span 3!important}.metakyc-sdk .col-span-4{grid-column:span 4 / span 4!important}.metakyc-sdk .gap-1{gap:.25rem!important}.metakyc-sdk .gap-2{gap:.5rem!important}.metakyc-sdk .gap-3{gap:.75rem!important}.metakyc-sdk .gap-4{gap:1rem!important}.metakyc-sdk .gap-6{gap:1.5rem!important}.metakyc-sdk .gap-8{gap:2rem!important}.metakyc-sdk .flex-col{flex-direction:column!important}.metakyc-sdk .flex-row{flex-direction:row!important}.metakyc-sdk .flex-wrap{flex-wrap:wrap!important}.metakyc-sdk .flex-1{flex:1 1 0%!important}.metakyc-sdk .flex-shrink-0{flex-shrink:0!important}.metakyc-sdk .items-center{align-items:center!important}.metakyc-sdk .items-start{align-items:flex-start!important}.metakyc-sdk .items-end{align-items:flex-end!important}.metakyc-sdk .justify-between{justify-content:space-between!important}.metakyc-sdk .justify-center{justify-content:center!important}.metakyc-sdk .justify-end{justify-content:flex-end!important}.metakyc-sdk .justify-start{justify-content:flex-start!important}.metakyc-sdk .space-y-1>*+*{margin-top:.25rem!important}.metakyc-sdk .space-y-1\\.5>*+*{margin-top:.375rem!important}.metakyc-sdk .space-y-2>*+*{margin-top:.5rem!important}.metakyc-sdk .space-y-3>*+*{margin-top:.75rem!important}.metakyc-sdk .space-y-4>*+*{margin-top:1rem!important}.metakyc-sdk .space-y-6>*+*{margin-top:1.5rem!important}.metakyc-sdk .w-full{width:100%!important}.metakyc-sdk .relative{position:relative!important}.metakyc-sdk .absolute{position:absolute!important}.metakyc-sdk .overflow-hidden{overflow:hidden!important}.metakyc-sdk .overflow-auto{overflow:auto!important}.metakyc-sdk .overflow-x-auto{overflow-x:auto!important}@media (min-width: 768px){.metakyc-sdk .md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.metakyc-sdk .md\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}}.metakyc-sdk .metakyc-form-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:1rem!important}@media (max-width: 767px){.metakyc-sdk .metakyc-form-grid{grid-template-columns:1fr!important}.metakyc-sdk .metakyc-form-grid>*{grid-column:span 1 / span 1!important}.metakyc-sdk .metakyc-grid-2{grid-template-columns:1fr!important}}@media (max-width: 767px){.metakyc-sdk .metakyc-card-content,.metakyc-sdk .metakyc-card-header,.metakyc-sdk .metakyc-card-footer,.metakyc-sdk .metakyc-progress-wrapper{padding-left:12px!important;padding-right:12px!important}.metakyc-sdk .metakyc-form-grid{gap:.75rem!important}}.metakyc-sdk *,.metakyc-sdk *:before,.metakyc-sdk *:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--metakyc-border, #e5e7eb)}.metakyc-sdk{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4}.metakyc-sdk img,.metakyc-sdk video{max-width:100%;height:auto}.metakyc-sdk h1,.metakyc-sdk h2,.metakyc-sdk h3,.metakyc-sdk h4,.metakyc-sdk h5,.metakyc-sdk h6,.metakyc-sdk p{margin:0}.metakyc-sdk ol,.metakyc-sdk ul{list-style:none;margin:0;padding:0}.metakyc-sdk button,.metakyc-sdk input,.metakyc-sdk optgroup,.metakyc-sdk select,.metakyc-sdk textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}.metakyc-sdk button,.metakyc-sdk [role=button]{cursor:pointer}.metakyc-sdk a{color:inherit;text-decoration:inherit}.metakyc-sdk input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]),.metakyc-sdk select,.metakyc-sdk textarea,.metakyc-sdk .metakyc-searchable-select-trigger,.metakyc-sdk .metakyc-multiselect-trigger{background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important;border-color:var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important}.metakyc-sdk input::-moz-placeholder,.metakyc-sdk textarea::-moz-placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-sdk input::placeholder,.metakyc-sdk textarea::placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-sdk input:not([type=checkbox]):not([type=radio]):focus,.metakyc-sdk select:focus,.metakyc-sdk textarea:focus{outline:none!important;border-color:var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb))!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb)) 20%,transparent)!important}.metakyc-sdk input[type=checkbox],.metakyc-sdk input[type=radio]{appearance:none!important;-webkit-appearance:none!important;-moz-appearance:none!important;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-width:16px!important;max-height:16px!important;flex-shrink:0!important;cursor:pointer!important;background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;border:1.5px solid var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important;position:relative!important;transition:background-color .15s,border-color .15s!important;vertical-align:middle!important;display:inline-block!important;padding:0!important;margin:0!important;color-scheme:light!important}.metakyc-sdk input[type=checkbox]{border-radius:4px!important}.metakyc-sdk input[type=radio]{border-radius:50%!important}.metakyc-sdk input[type=checkbox]:checked,.metakyc-sdk input[type=radio]:checked{background-color:var(--metakyc-primary, #2563eb)!important;border-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk input[type=checkbox]:checked:after{content:""!important;display:block!important;position:absolute!important;left:4px!important;top:1px!important;width:5px!important;height:9px!important;border:2px solid #ffffff!important;border-top:none!important;border-left:none!important;transform:rotate(45deg)!important}.metakyc-sdk input[type=radio]:checked:after{content:""!important;display:block!important;position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:6px!important;height:6px!important;border-radius:50%!important;background:#fff!important}.metakyc-sdk input[type=checkbox]:focus,.metakyc-sdk input[type=radio]:focus{outline:none!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--metakyc-primary, #2563eb) 30%,transparent)!important}.metakyc-searchable-select-dropdown,.metakyc-multiselect-dropdown{background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;border-color:var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important}.metakyc-searchable-select-dropdown input,.metakyc-multiselect-dropdown input{background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important;border-color:var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important}.metakyc-searchable-select-dropdown input::-moz-placeholder,.metakyc-multiselect-dropdown input::-moz-placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-searchable-select-dropdown input::placeholder,.metakyc-multiselect-dropdown input::placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-searchable-select-dropdown input:focus,.metakyc-multiselect-dropdown input:focus{outline:none!important;background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important;border-color:var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb))!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb)) 20%,transparent)!important}.metakyc-searchable-select-dropdown li:hover,.metakyc-multiselect-dropdown li:hover{background-color:var(--metakyc-surface, var(--metakyc-background, #f9fafb))!important}.metakyc-sdk .metakyc-help-btn{color:var(--metakyc-primary, #2563eb)!important;border-color:var(--metakyc-primary, #2563eb)!important;background:transparent!important;position:relative!important;z-index:2!important}.metakyc-sdk .metakyc-overview-step-item,.metakyc-sdk .metakyc-overview-step-item *,.metakyc-sdk .metakyc-step-content,.metakyc-sdk .metakyc-step-content *,.metakyc-sdk .metakyc-step-title,.metakyc-sdk .metakyc-step-title *,.metakyc-sdk .metakyc-step-icon,.metakyc-sdk .metakyc-step-icon *,.metakyc-sdk .metakyc-step-description,.metakyc-sdk .metakyc-step-description *{border-top-width:0!important;border-bottom-width:0!important;border-left-width:0!important;border-right-width:0!important;border-top-style:none!important;border-bottom-style:none!important;border-left-style:none!important;border-right-style:none!important;border-top-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important;border-right-color:transparent!important;border:0!important;box-shadow:none!important;outline:none!important;outline-width:0!important;outline-style:none!important;text-decoration:none!important;text-decoration-line:none!important}.metakyc-sdk .metakyc-overview-step-item:before,.metakyc-sdk .metakyc-overview-step-item:after,.metakyc-sdk .metakyc-overview-step-item *:before,.metakyc-sdk .metakyc-overview-step-item *:after,.metakyc-sdk .metakyc-step-content:before,.metakyc-sdk .metakyc-step-content:after,.metakyc-sdk .metakyc-step-content *:before,.metakyc-sdk .metakyc-step-content *:after,.metakyc-sdk .metakyc-step-title:before,.metakyc-sdk .metakyc-step-title:after,.metakyc-sdk .metakyc-step-description:before,.metakyc-sdk .metakyc-step-description:after{content:none!important;display:none!important;visibility:hidden!important;border:none!important;box-shadow:none!important;outline:none!important;background:none!important;height:0!important;width:0!important}.metakyc-sdk .metakyc-overview-step-item{border-width:0!important;border-style:none!important;border:0!important;box-shadow:none!important;outline:none!important}.metakyc-sdk .metakyc-step-content{border-width:0!important;border-style:none!important;border:0!important;padding-top:0!important;margin-top:0!important;box-shadow:none!important;outline:none!important}.metakyc-sdk .metakyc-step-title{border-width:0!important;border-style:none!important;border:0!important;padding-top:0!important;margin-top:0!important;box-shadow:none!important;outline:none!important;text-decoration:none!important}.metakyc-sdk hr,.metakyc-sdk .metakyc-overview-step-item hr,.metakyc-sdk .metakyc-overview-step-item * hr,.metakyc-sdk .metakyc-step-content hr,.metakyc-sdk .metakyc-step-content * hr{display:block!important;height:0!important;border:0!important;border-top:1px solid var(--metakyc-primary, #2563eb)!important;opacity:.25!important;margin:1rem 0!important;overflow:visible!important}.metakyc-sdk{background-color:var(--metakyc-background, #ffffff)!important;color:var(--metakyc-text-primary, #111827)!important;font-family:var(--metakyc-font-family, inherit)!important;padding:1.5rem!important;border-radius:.75rem!important}.metakyc-sdk h1,.metakyc-sdk h2,.metakyc-sdk h3,.metakyc-sdk h4,.metakyc-sdk h5,.metakyc-sdk h6{color:var(--metakyc-text-primary, #111827);letter-spacing:normal}.metakyc-sdk .text-gray-900{color:var(--metakyc-text-primary, #111827)!important}.metakyc-sdk .text-gray-800{color:var(--metakyc-text-primary, #1f2937)!important}.metakyc-sdk .text-gray-700{color:var(--metakyc-text-secondary, #374151)!important}.metakyc-sdk .text-gray-600{color:var(--metakyc-text-secondary, #6b7280)!important}.metakyc-sdk .text-gray-500{color:var(--metakyc-text-muted, #6b7280)!important}.metakyc-sdk .text-gray-400{color:var(--metakyc-text-muted, #9ca3af)!important}.metakyc-sdk .text-gray-300{color:var(--metakyc-text-muted, #d1d5db)!important}.metakyc-sdk .text-white{color:#fff!important}.metakyc-sdk .bg-white{background-color:var(--metakyc-background, #ffffff)!important}.metakyc-sdk .bg-gray-50{background-color:var(--metakyc-surface, #f9fafb)!important}.metakyc-sdk .bg-gray-100{background-color:var(--metakyc-surface, #f3f4f6)!important}.metakyc-sdk .bg-gray-200{background-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .bg-gray-800{background-color:var(--metakyc-surface, #1f2937)!important}.metakyc-sdk .border-gray-100,.metakyc-sdk .border-gray-200,.metakyc-sdk .border-gray-300{border-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .border-t{border-top-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .border-b{border-bottom-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .divide-gray-200>*{border-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .bg-primary-500,.metakyc-sdk .bg-primary-600{background-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .bg-primary-50,.metakyc-sdk .bg-primary-100{background-color:var(--metakyc-primary-light, #dbeafe)!important}.metakyc-sdk .text-primary-500,.metakyc-sdk .text-primary-600,.metakyc-sdk .text-primary-800{color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .text-primary-900{color:var(--metakyc-primary-dark, #1e40af)!important}.metakyc-sdk .border-primary-500,.metakyc-sdk .border-primary-600{border-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .hover\\:bg-primary-50:hover{background-color:var(--metakyc-primary-light, #dbeafe)!important}.metakyc-sdk .hover\\:bg-primary-600:hover{background-color:var(--metakyc-primary-hover, #1d4ed8)!important}.metakyc-sdk .bg-blue-600{background-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .bg-blue-100{background-color:var(--metakyc-primary-light, #dbeafe)!important}.metakyc-sdk .text-blue-600,.metakyc-sdk .text-blue-400{color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .hover\\:bg-blue-700:hover{background-color:var(--metakyc-primary-hover, #1d4ed8)!important}.metakyc-sdk .metakyc-overview-steps h3:before,.metakyc-sdk .metakyc-overview-steps h3:after{content:none!important;display:none!important}.metakyc-sdk .metakyc-overview-steps *:before,.metakyc-sdk .metakyc-overview-steps *:after{content:none!important;display:none!important}.metakyc-sdk .metakyc-stepper-scroll::-webkit-scrollbar{display:none!important;height:0!important;width:0!important}.metakyc-sdk .metakyc-file-dropzone:hover{border-color:var(--metakyc-primary, #2563eb)!important;background-color:color-mix(in srgb,var(--metakyc-primary, #2563eb) 3%,var(--metakyc-background, #ffffff))!important}.metakyc-sdk .metakyc-file-item:hover{background-color:color-mix(in srgb,var(--metakyc-surface, #f9fafb) 80%,var(--metakyc-border, #e5e7eb))!important}.metakyc-sdk .metakyc-file-upload label{color:var(--metakyc-text-primary, #111827)!important}.metakyc-sdk .metakyc-file-upload p{margin:0!important;line-height:1.4!important}.metakyc-sdk .metakyc-file-item button{background:transparent!important;border:none!important;box-shadow:none!important;outline:none!important}.metakyc-sdk .metakyc-file-dropzone{box-shadow:none!important;outline:none!important}.metakyc-sdk .hover\\:opacity-90:hover{opacity:.9}.metakyc-sdk .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.metakyc-sdk .focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.metakyc-sdk .focus\\:ring-offset-0:focus{--tw-ring-offset-width: 0px}.metakyc-sdk .focus\\:ring-offset-1:focus{--tw-ring-offset-width: 1px}.metakyc-sdk .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.metakyc-sdk .disabled\\:opacity-50:disabled{opacity:.5}.metakyc-sdk .disabled\\:opacity-60:disabled{opacity:.6}.metakyc-sdk .dark\\:text-gray-400:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-gray-500:is(.dark *){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.metakyc-sdk .md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}', Ut = "metakyc-sdk-styles";
|
|
6850
6867
|
let St = !1;
|
|
6851
6868
|
function Tr() {
|
|
6852
6869
|
if (St || typeof document > "u") return;
|
|
@@ -6857,10 +6874,10 @@ function Tr() {
|
|
|
6857
6874
|
const e = document.createElement("style");
|
|
6858
6875
|
e.id = Ut, e.textContent = Nr, document.head.appendChild(e), St = !0;
|
|
6859
6876
|
}
|
|
6860
|
-
const Wt = "metakyc-theme-cache",
|
|
6877
|
+
const Wt = "metakyc-theme-cache", Ma = ({ config: e, children: t }) => {
|
|
6861
6878
|
Tr();
|
|
6862
6879
|
const [a, r] = S(null), n = Ne.useRef(!1), l = Ne.useRef(!1), o = Fe(() => {
|
|
6863
|
-
const d = new Li(e), y = new Ei(d),
|
|
6880
|
+
const d = new Li(e), y = new Ei(d), v = new Pi(d), z = new Di(d), L = new Mi(d), C = new ji(d), q = new Fi(d), T = new Oi(d), P = new Vi(d), B = new Bi(d), O = new $i(d), U = new _i(d), H = new ar();
|
|
6864
6881
|
if (typeof document < "u")
|
|
6865
6882
|
if (e.theme)
|
|
6866
6883
|
H.applyTheme(e.theme);
|
|
@@ -6874,7 +6891,7 @@ const Wt = "metakyc-theme-cache", Da = ({ config: e, children: t }) => {
|
|
|
6874
6891
|
return {
|
|
6875
6892
|
httpClient: d,
|
|
6876
6893
|
applicantService: y,
|
|
6877
|
-
questionnaireService:
|
|
6894
|
+
questionnaireService: v,
|
|
6878
6895
|
uploadDocumentService: z,
|
|
6879
6896
|
appropriatenessTestService: L,
|
|
6880
6897
|
overviewService: C,
|
|
@@ -6932,7 +6949,7 @@ const Wt = "metakyc-theme-cache", Da = ({ config: e, children: t }) => {
|
|
|
6932
6949
|
(d) => o.translationService.getTranslations(d),
|
|
6933
6950
|
[o.translationService]
|
|
6934
6951
|
);
|
|
6935
|
-
return /* @__PURE__ */ i(
|
|
6952
|
+
return /* @__PURE__ */ i(ni.Provider, { value: p, children: /* @__PURE__ */ s(
|
|
6936
6953
|
Cr,
|
|
6937
6954
|
{
|
|
6938
6955
|
locale: e.locale || "en",
|
|
@@ -6954,7 +6971,7 @@ const Wt = "metakyc-theme-cache", Da = ({ config: e, children: t }) => {
|
|
|
6954
6971
|
},
|
|
6955
6972
|
children: [
|
|
6956
6973
|
"SDK v",
|
|
6957
|
-
|
|
6974
|
+
ri
|
|
6958
6975
|
]
|
|
6959
6976
|
}
|
|
6960
6977
|
),
|
|
@@ -6964,7 +6981,7 @@ const Wt = "metakyc-theme-cache", Da = ({ config: e, children: t }) => {
|
|
|
6964
6981
|
) });
|
|
6965
6982
|
};
|
|
6966
6983
|
function Oe() {
|
|
6967
|
-
const e =
|
|
6984
|
+
const e = Jt(ni);
|
|
6968
6985
|
if (!e)
|
|
6969
6986
|
throw new Error("useMetaKYC must be used within a MetaKYCProvider");
|
|
6970
6987
|
return e;
|
|
@@ -6978,10 +6995,10 @@ async function Rr(e) {
|
|
|
6978
6995
|
}, r.onerror = (n) => a(n);
|
|
6979
6996
|
});
|
|
6980
6997
|
}
|
|
6981
|
-
function
|
|
6998
|
+
function ja(e, t) {
|
|
6982
6999
|
return e.size <= t;
|
|
6983
7000
|
}
|
|
6984
|
-
function
|
|
7001
|
+
function Fa(e, t) {
|
|
6985
7002
|
return t.split(",").map((r) => r.trim()).some((r) => {
|
|
6986
7003
|
if (r.endsWith("/*")) {
|
|
6987
7004
|
const n = r.slice(0, -2);
|
|
@@ -6995,7 +7012,7 @@ function Ct(e) {
|
|
|
6995
7012
|
const t = 1024, a = ["Bytes", "KB", "MB", "GB"], r = Math.floor(Math.log(e) / Math.log(t));
|
|
6996
7013
|
return Math.round(e / Math.pow(t, r) * 100) / 100 + " " + a[r];
|
|
6997
7014
|
}
|
|
6998
|
-
function
|
|
7015
|
+
function Oa(e) {
|
|
6999
7016
|
return e;
|
|
7000
7017
|
}
|
|
7001
7018
|
function Me(...e) {
|
|
@@ -7034,7 +7051,7 @@ function Lr(e) {
|
|
|
7034
7051
|
console.warn("Failed to save workflow state to storage:", t);
|
|
7035
7052
|
}
|
|
7036
7053
|
}
|
|
7037
|
-
function
|
|
7054
|
+
function Va() {
|
|
7038
7055
|
try {
|
|
7039
7056
|
const e = localStorage.getItem(gt.WORKFLOW_STATE);
|
|
7040
7057
|
return e ? JSON.parse(e) : null;
|
|
@@ -7049,7 +7066,7 @@ function Er() {
|
|
|
7049
7066
|
console.warn("Failed to clear workflow state from storage:", e);
|
|
7050
7067
|
}
|
|
7051
7068
|
}
|
|
7052
|
-
function
|
|
7069
|
+
function Ba() {
|
|
7053
7070
|
Ar(), Er();
|
|
7054
7071
|
}
|
|
7055
7072
|
function Pr(e) {
|
|
@@ -7067,7 +7084,7 @@ function Pr(e) {
|
|
|
7067
7084
|
nextWorkflowKey: a.nextWorkflowKey
|
|
7068
7085
|
}));
|
|
7069
7086
|
}, [a, d]);
|
|
7070
|
-
const y = ue(!1),
|
|
7087
|
+
const y = ue(!1), v = ue(!1), z = ie(async () => {
|
|
7071
7088
|
if (!(!d || !m.current)) {
|
|
7072
7089
|
if (y.current) {
|
|
7073
7090
|
console.log("[Workflow] Load already in progress, skipping...");
|
|
@@ -7076,7 +7093,7 @@ function Pr(e) {
|
|
|
7076
7093
|
y.current = !0, l(!0), p(null);
|
|
7077
7094
|
try {
|
|
7078
7095
|
const O = await m.current.initialize(d);
|
|
7079
|
-
r(O),
|
|
7096
|
+
r(O), v.current = !0;
|
|
7080
7097
|
} catch (O) {
|
|
7081
7098
|
p(O);
|
|
7082
7099
|
} finally {
|
|
@@ -7085,7 +7102,7 @@ function Pr(e) {
|
|
|
7085
7102
|
}
|
|
7086
7103
|
}, [d]);
|
|
7087
7104
|
be(() => {
|
|
7088
|
-
d && !
|
|
7105
|
+
d && !v.current && z();
|
|
7089
7106
|
}, [d, z]);
|
|
7090
7107
|
const L = ie(async () => {
|
|
7091
7108
|
if (m.current) {
|
|
@@ -7163,7 +7180,7 @@ function Pr(e) {
|
|
|
7163
7180
|
};
|
|
7164
7181
|
}
|
|
7165
7182
|
function Dr(e) {
|
|
7166
|
-
const { questionnaireService: t, applicantService: a } = Oe(), [r, n] = S(null), [l, o] = S({}), [p, m] = S(!1), [d, y] = S(!1), [
|
|
7183
|
+
const { questionnaireService: t, applicantService: a } = Oe(), [r, n] = S(null), [l, o] = S({}), [p, m] = S(!1), [d, y] = S(!1), [v, z] = S(null), L = ue(!1), C = ue(null), q = ie(async () => {
|
|
7167
7184
|
var P, B;
|
|
7168
7185
|
if (e) {
|
|
7169
7186
|
if (L.current) {
|
|
@@ -7216,24 +7233,24 @@ function Dr(e) {
|
|
|
7216
7233
|
initialAnswers: l,
|
|
7217
7234
|
isLoading: p,
|
|
7218
7235
|
isSubmitting: d,
|
|
7219
|
-
error:
|
|
7236
|
+
error: v,
|
|
7220
7237
|
load: q,
|
|
7221
7238
|
submit: T
|
|
7222
7239
|
};
|
|
7223
7240
|
}
|
|
7224
7241
|
function Mr(e) {
|
|
7225
|
-
const { uploadDocumentService: t } = Oe(), [a, r] = S(null), [n, l] = S(!1), [o, p] = S(!1), [m, d] = S(0), [y,
|
|
7242
|
+
const { uploadDocumentService: t } = Oe(), [a, r] = S(null), [n, l] = S(!1), [o, p] = S(!1), [m, d] = S(0), [y, v] = S(null), z = ue(!1), L = ue(null), C = ie(async () => {
|
|
7226
7243
|
if (e) {
|
|
7227
7244
|
if (z.current) {
|
|
7228
7245
|
console.log("[UploadDocument] Load already in progress, skipping...");
|
|
7229
7246
|
return;
|
|
7230
7247
|
}
|
|
7231
|
-
z.current = !0, l(!0),
|
|
7248
|
+
z.current = !0, l(!0), v(null);
|
|
7232
7249
|
try {
|
|
7233
7250
|
const T = await t.getUploadDocument(e);
|
|
7234
7251
|
r(T), L.current = e;
|
|
7235
7252
|
} catch (T) {
|
|
7236
|
-
|
|
7253
|
+
v(T);
|
|
7237
7254
|
} finally {
|
|
7238
7255
|
l(!1), z.current = !1;
|
|
7239
7256
|
}
|
|
@@ -7244,11 +7261,11 @@ function Mr(e) {
|
|
|
7244
7261
|
}, [e]);
|
|
7245
7262
|
const q = ie(
|
|
7246
7263
|
async (T) => {
|
|
7247
|
-
p(!0), d(0),
|
|
7264
|
+
p(!0), d(0), v(null);
|
|
7248
7265
|
try {
|
|
7249
7266
|
await t.fillUploadDocument(T), d(100);
|
|
7250
7267
|
} catch (P) {
|
|
7251
|
-
throw
|
|
7268
|
+
throw v(P), P;
|
|
7252
7269
|
} finally {
|
|
7253
7270
|
p(!1);
|
|
7254
7271
|
}
|
|
@@ -7265,8 +7282,8 @@ function Mr(e) {
|
|
|
7265
7282
|
submit: q
|
|
7266
7283
|
};
|
|
7267
7284
|
}
|
|
7268
|
-
function
|
|
7269
|
-
const { appropriatenessTestService: t } = Oe(), [a, r] = S(null), [n, l] = S(!1), [o, p] = S(!1), [m, d] = S(null), [y,
|
|
7285
|
+
function qa(e) {
|
|
7286
|
+
const { appropriatenessTestService: t } = Oe(), [a, r] = S(null), [n, l] = S(!1), [o, p] = S(!1), [m, d] = S(null), [y, v] = S(null), z = ue(!1), L = ue(null), C = ie(async () => {
|
|
7270
7287
|
if (e) {
|
|
7271
7288
|
if (z.current) {
|
|
7272
7289
|
console.log("[AppropriatenessTest] Load already in progress, skipping...");
|
|
@@ -7291,7 +7308,7 @@ function Ba(e) {
|
|
|
7291
7308
|
p(!0), d(null);
|
|
7292
7309
|
try {
|
|
7293
7310
|
const P = await t.fillAppropriatenessTest(T);
|
|
7294
|
-
return
|
|
7311
|
+
return v(P), P;
|
|
7295
7312
|
} catch (P) {
|
|
7296
7313
|
throw d(P), P;
|
|
7297
7314
|
} finally {
|
|
@@ -7311,7 +7328,7 @@ function Ba(e) {
|
|
|
7311
7328
|
};
|
|
7312
7329
|
}
|
|
7313
7330
|
function jr(e) {
|
|
7314
|
-
const { overviewService: t } = Oe(), [a, r] = S(null), [n, l] = S(!1), [o, p] = S(!1), [m, d] = S(null), y = ue(!1),
|
|
7331
|
+
const { overviewService: t } = Oe(), [a, r] = S(null), [n, l] = S(!1), [o, p] = S(!1), [m, d] = S(null), y = ue(!1), v = ue(null), z = ie(async () => {
|
|
7315
7332
|
if (e) {
|
|
7316
7333
|
if (y.current) {
|
|
7317
7334
|
console.log("[Overview] Load already in progress, skipping...");
|
|
@@ -7320,7 +7337,7 @@ function jr(e) {
|
|
|
7320
7337
|
y.current = !0, l(!0), d(null);
|
|
7321
7338
|
try {
|
|
7322
7339
|
const C = await t.getOverviewData(e);
|
|
7323
|
-
r(C),
|
|
7340
|
+
r(C), v.current = e;
|
|
7324
7341
|
} catch (C) {
|
|
7325
7342
|
d(C);
|
|
7326
7343
|
} finally {
|
|
@@ -7329,7 +7346,7 @@ function jr(e) {
|
|
|
7329
7346
|
}
|
|
7330
7347
|
}, [e, t]);
|
|
7331
7348
|
be(() => {
|
|
7332
|
-
e &&
|
|
7349
|
+
e && v.current !== e && z();
|
|
7333
7350
|
}, [e]);
|
|
7334
7351
|
const L = ie(async () => {
|
|
7335
7352
|
if (e) {
|
|
@@ -7402,7 +7419,7 @@ function Fr(e) {
|
|
|
7402
7419
|
}
|
|
7403
7420
|
},
|
|
7404
7421
|
[e, t]
|
|
7405
|
-
),
|
|
7422
|
+
), v = ie(async () => {
|
|
7406
7423
|
if (e) {
|
|
7407
7424
|
if (m.current) {
|
|
7408
7425
|
console.log("[Identity] Restart already in progress, skipping...");
|
|
@@ -7435,11 +7452,11 @@ function Fr(e) {
|
|
|
7435
7452
|
error: o,
|
|
7436
7453
|
requestIdentity: d,
|
|
7437
7454
|
requestCompanyIdentity: y,
|
|
7438
|
-
restartIdentity:
|
|
7455
|
+
restartIdentity: v
|
|
7439
7456
|
};
|
|
7440
7457
|
}
|
|
7441
7458
|
function Or(e) {
|
|
7442
|
-
const { riskScoringService: t, applicantService: a } = Oe(), [r, n] = S(null), [l, o] = S({}), [p, m] = S(!1), [d, y] = S(!1), [
|
|
7459
|
+
const { riskScoringService: t, applicantService: a } = Oe(), [r, n] = S(null), [l, o] = S({}), [p, m] = S(!1), [d, y] = S(!1), [v, z] = S(null), [L, C] = S(null), q = ue(!1), T = ue(null), P = ie(async () => {
|
|
7443
7460
|
var O;
|
|
7444
7461
|
if (e) {
|
|
7445
7462
|
if (q.current) {
|
|
@@ -7494,12 +7511,12 @@ function Or(e) {
|
|
|
7494
7511
|
result: L,
|
|
7495
7512
|
isLoading: p,
|
|
7496
7513
|
isSubmitting: d,
|
|
7497
|
-
error:
|
|
7514
|
+
error: v,
|
|
7498
7515
|
load: P,
|
|
7499
7516
|
submit: B
|
|
7500
7517
|
};
|
|
7501
7518
|
}
|
|
7502
|
-
function
|
|
7519
|
+
function oi() {
|
|
7503
7520
|
const { applicantService: e, config: t } = Oe(), [a, r] = S(!1), [n, l] = S(null), o = ue(!1), p = ue(!1), m = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(L) {
|
|
7504
7521
|
const C = Math.random() * 16 | 0;
|
|
7505
7522
|
return (L === "x" ? C : C & 3 | 8).toString(16);
|
|
@@ -7537,7 +7554,7 @@ function ni() {
|
|
|
7537
7554
|
}
|
|
7538
7555
|
},
|
|
7539
7556
|
[e]
|
|
7540
|
-
),
|
|
7557
|
+
), v = ie(
|
|
7541
7558
|
async (L) => {
|
|
7542
7559
|
if (p.current)
|
|
7543
7560
|
throw console.log("[Applicant] Data load already in progress, skipping..."), new Error("Data load already in progress");
|
|
@@ -7569,7 +7586,7 @@ function ni() {
|
|
|
7569
7586
|
error: n,
|
|
7570
7587
|
createApplicant: d,
|
|
7571
7588
|
createCompanyApplicant: y,
|
|
7572
|
-
getApplicantData:
|
|
7589
|
+
getApplicantData: v,
|
|
7573
7590
|
stopProgress: z
|
|
7574
7591
|
};
|
|
7575
7592
|
}
|
|
@@ -7674,7 +7691,7 @@ const Vr = {
|
|
|
7674
7691
|
]
|
|
7675
7692
|
}
|
|
7676
7693
|
);
|
|
7677
|
-
}, Ce =
|
|
7694
|
+
}, Ce = ht(
|
|
7678
7695
|
({ label: e, error: t, helperText: a, leftIcon: r, rightIcon: n, className: l, style: o, ...p }, m) => /* @__PURE__ */ s("div", { className: "w-full", children: [
|
|
7679
7696
|
e && /* @__PURE__ */ s(
|
|
7680
7697
|
"label",
|
|
@@ -7860,7 +7877,7 @@ const ne = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
|
|
|
7860
7877
|
backgroundColor: "#fef3c7",
|
|
7861
7878
|
color: "#92400e"
|
|
7862
7879
|
}
|
|
7863
|
-
},
|
|
7880
|
+
}, si = ({ children: e, variant: t = "default", className: a, style: r, ...n }) => /* @__PURE__ */ i(
|
|
7864
7881
|
"span",
|
|
7865
7882
|
{
|
|
7866
7883
|
className: Me(
|
|
@@ -7907,7 +7924,7 @@ const ne = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
|
|
|
7907
7924
|
]
|
|
7908
7925
|
}
|
|
7909
7926
|
) });
|
|
7910
|
-
}, Et =
|
|
7927
|
+
}, Et = ht(
|
|
7911
7928
|
({ label: e, error: t, helperText: a, options: r, placeholder: n, className: l, style: o, ...p }, m) => /* @__PURE__ */ s("div", { className: "w-full", children: [
|
|
7912
7929
|
e && /* @__PURE__ */ s(
|
|
7913
7930
|
"label",
|
|
@@ -7984,7 +8001,7 @@ const Kt = 280, Ur = ({
|
|
|
7984
8001
|
readOnly: o = !1,
|
|
7985
8002
|
required: p = !1
|
|
7986
8003
|
}) => {
|
|
7987
|
-
const { t: m } = Ie(), d = n ?? m("common.select"), y = l || o, [
|
|
8004
|
+
const { t: m } = Ie(), d = n ?? m("common.select"), y = l || o, [v, z] = S(!1), [L, C] = S(""), [q, T] = S(null), [P, B] = S({
|
|
7988
8005
|
bg: "#ffffff",
|
|
7989
8006
|
borderColor: "#d1d5db",
|
|
7990
8007
|
textPrimary: "#111827",
|
|
@@ -8016,15 +8033,15 @@ const Kt = 280, Ur = ({
|
|
|
8016
8033
|
z(!1), C("");
|
|
8017
8034
|
}, []);
|
|
8018
8035
|
be(() => {
|
|
8019
|
-
if (!
|
|
8036
|
+
if (!v) return;
|
|
8020
8037
|
const M = (E) => {
|
|
8021
8038
|
var xe, de;
|
|
8022
8039
|
const F = E.target;
|
|
8023
8040
|
!((xe = O.current) != null && xe.contains(F)) && !((de = H.current) != null && de.contains(F)) && R();
|
|
8024
8041
|
};
|
|
8025
8042
|
return document.addEventListener("mousedown", M), () => document.removeEventListener("mousedown", M);
|
|
8026
|
-
}, [
|
|
8027
|
-
if (!
|
|
8043
|
+
}, [v, R]), be(() => {
|
|
8044
|
+
if (!v) return;
|
|
8028
8045
|
const M = () => {
|
|
8029
8046
|
const E = J();
|
|
8030
8047
|
E && T(E);
|
|
@@ -8032,7 +8049,7 @@ const Kt = 280, Ur = ({
|
|
|
8032
8049
|
return window.addEventListener("scroll", M, !0), window.addEventListener("resize", M), () => {
|
|
8033
8050
|
window.removeEventListener("scroll", M, !0), window.removeEventListener("resize", M);
|
|
8034
8051
|
};
|
|
8035
|
-
}, [
|
|
8052
|
+
}, [v, J]);
|
|
8036
8053
|
const V = r.filter(
|
|
8037
8054
|
(M) => M.label.toLowerCase().includes(L.toLowerCase())
|
|
8038
8055
|
), Q = (M) => {
|
|
@@ -8042,7 +8059,7 @@ const Kt = 280, Ur = ({
|
|
|
8042
8059
|
}, W = (M) => {
|
|
8043
8060
|
var E;
|
|
8044
8061
|
return ((E = r.find((F) => F.value === M)) == null ? void 0 : E.label) || M;
|
|
8045
|
-
}, { bg: X, borderColor: ce, textPrimary: Y, textSecondary: je, primaryColor: ye, primaryLight: fe, hoverBg: Se } = P, pe =
|
|
8062
|
+
}, { bg: X, borderColor: ce, textPrimary: Y, textSecondary: je, primaryColor: ye, primaryLight: fe, hoverBg: Se } = P, pe = v && q && /* @__PURE__ */ s(
|
|
8046
8063
|
"div",
|
|
8047
8064
|
{
|
|
8048
8065
|
ref: H,
|
|
@@ -8166,7 +8183,7 @@ const Kt = 280, Ur = ({
|
|
|
8166
8183
|
"div",
|
|
8167
8184
|
{
|
|
8168
8185
|
ref: U,
|
|
8169
|
-
onClick: () =>
|
|
8186
|
+
onClick: () => v ? R() : b(),
|
|
8170
8187
|
className: Me(
|
|
8171
8188
|
"metakyc-multiselect-trigger",
|
|
8172
8189
|
"w-full px-3 py-2 rounded-lg border text-sm transition-colors relative",
|
|
@@ -8175,8 +8192,8 @@ const Kt = 280, Ur = ({
|
|
|
8175
8192
|
style: {
|
|
8176
8193
|
minHeight: "38px",
|
|
8177
8194
|
backgroundColor: "var(--metakyc-input-bg, #ffffff)",
|
|
8178
|
-
borderColor:
|
|
8179
|
-
outline:
|
|
8195
|
+
borderColor: v ? "var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb))" : "var(--metakyc-input-border, var(--metakyc-border, #d1d5db))",
|
|
8196
|
+
outline: v ? "2px solid var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb))" : "none",
|
|
8180
8197
|
outlineOffset: "-1px"
|
|
8181
8198
|
},
|
|
8182
8199
|
children: [
|
|
@@ -8234,7 +8251,7 @@ const Kt = 280, Ur = ({
|
|
|
8234
8251
|
{
|
|
8235
8252
|
className: "metakyc-multiselect-arrow absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-xs",
|
|
8236
8253
|
style: { color: "var(--metakyc-text-secondary, #6b7280)" },
|
|
8237
|
-
children:
|
|
8254
|
+
children: v ? "▲" : "▼"
|
|
8238
8255
|
}
|
|
8239
8256
|
)
|
|
8240
8257
|
]
|
|
@@ -8256,7 +8273,7 @@ const Kt = 280, Ur = ({
|
|
|
8256
8273
|
className: y
|
|
8257
8274
|
}) => {
|
|
8258
8275
|
var de;
|
|
8259
|
-
const { t:
|
|
8276
|
+
const { t: v } = Ie(), z = n ?? v("common.select"), L = p || m, [C, q] = S(!1), [T, P] = S(""), [B, O] = S(null), [U, H] = S({
|
|
8260
8277
|
bg: "#ffffff",
|
|
8261
8278
|
border: "#d1d5db",
|
|
8262
8279
|
text: "#111827",
|
|
@@ -8345,7 +8362,7 @@ const Kt = 280, Ur = ({
|
|
|
8345
8362
|
type: "text",
|
|
8346
8363
|
value: T,
|
|
8347
8364
|
onChange: (D) => P(D.target.value),
|
|
8348
|
-
placeholder:
|
|
8365
|
+
placeholder: v("common.search"),
|
|
8349
8366
|
onClick: (D) => D.stopPropagation(),
|
|
8350
8367
|
className: "metakyc-searchable-select-search w-full",
|
|
8351
8368
|
style: {
|
|
@@ -8379,7 +8396,7 @@ const Kt = 280, Ur = ({
|
|
|
8379
8396
|
maxHeight: "208px",
|
|
8380
8397
|
overflowY: "auto"
|
|
8381
8398
|
},
|
|
8382
|
-
children: ce.length === 0 ? /* @__PURE__ */ i("li", { style: { padding: "8px 12px", fontSize: "13px", color: pe }, children:
|
|
8399
|
+
children: ce.length === 0 ? /* @__PURE__ */ i("li", { style: { padding: "8px 12px", fontSize: "13px", color: pe }, children: v("common.noResults") }) : ce.map((D) => {
|
|
8383
8400
|
const _ = D.value === l;
|
|
8384
8401
|
return /* @__PURE__ */ i(
|
|
8385
8402
|
"li",
|
|
@@ -8490,7 +8507,7 @@ const Kr = ({
|
|
|
8490
8507
|
value: m = [],
|
|
8491
8508
|
className: d
|
|
8492
8509
|
}) => {
|
|
8493
|
-
const { t: y } = Ie(), [
|
|
8510
|
+
const { t: y } = Ie(), [v, z] = S(!1), [L, C] = S(null), q = ue(null), T = ie((b) => {
|
|
8494
8511
|
if (!b) return;
|
|
8495
8512
|
C(null);
|
|
8496
8513
|
const R = Array.from(b);
|
|
@@ -8541,13 +8558,13 @@ const Kr = ({
|
|
|
8541
8558
|
onDragLeave: B,
|
|
8542
8559
|
onDrop: O,
|
|
8543
8560
|
style: {
|
|
8544
|
-
border: `2px dashed ${J ? "var(--metakyc-danger, #ef4444)" :
|
|
8561
|
+
border: `2px dashed ${J ? "var(--metakyc-danger, #ef4444)" : v ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #d1d5db)"}`,
|
|
8545
8562
|
borderRadius: "12px",
|
|
8546
8563
|
padding: re ? "20px" : "32px 20px",
|
|
8547
8564
|
textAlign: "center",
|
|
8548
8565
|
cursor: "pointer",
|
|
8549
8566
|
transition: "all 0.2s ease",
|
|
8550
|
-
backgroundColor:
|
|
8567
|
+
backgroundColor: v ? "color-mix(in srgb, var(--metakyc-primary, #2563eb) 5%, var(--metakyc-background, #ffffff))" : "var(--metakyc-background, #ffffff)"
|
|
8551
8568
|
},
|
|
8552
8569
|
children: [
|
|
8553
8570
|
/* @__PURE__ */ i(
|
|
@@ -8574,7 +8591,7 @@ const Kr = ({
|
|
|
8574
8591
|
display: "flex",
|
|
8575
8592
|
alignItems: "center",
|
|
8576
8593
|
justifyContent: "center",
|
|
8577
|
-
backgroundColor:
|
|
8594
|
+
backgroundColor: v ? "color-mix(in srgb, var(--metakyc-primary, #2563eb) 15%, transparent)" : "var(--metakyc-surface, #f9fafb)",
|
|
8578
8595
|
transition: "background-color 0.2s ease"
|
|
8579
8596
|
},
|
|
8580
8597
|
children: /* @__PURE__ */ s(
|
|
@@ -8584,7 +8601,7 @@ const Kr = ({
|
|
|
8584
8601
|
height: "24",
|
|
8585
8602
|
viewBox: "0 0 24 24",
|
|
8586
8603
|
fill: "none",
|
|
8587
|
-
stroke:
|
|
8604
|
+
stroke: v ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-text-muted, #9ca3af)",
|
|
8588
8605
|
strokeWidth: "2",
|
|
8589
8606
|
strokeLinecap: "round",
|
|
8590
8607
|
strokeLinejoin: "round",
|
|
@@ -8717,7 +8734,7 @@ const Kr = ({
|
|
|
8717
8734
|
}) }),
|
|
8718
8735
|
J && /* @__PURE__ */ i("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", marginTop: "6px" }, children: J })
|
|
8719
8736
|
] });
|
|
8720
|
-
}, Yr =
|
|
8737
|
+
}, Yr = ht(
|
|
8721
8738
|
({ countryCode: e = "+1", onCountryCodeChange: t, className: a, ...r }, n) => /* @__PURE__ */ s("div", { className: "w-full", children: [
|
|
8722
8739
|
r.label && /* @__PURE__ */ s(
|
|
8723
8740
|
"label",
|
|
@@ -8771,7 +8788,7 @@ Yr.displayName = "PhoneInput";
|
|
|
8771
8788
|
* This source code is licensed under the ISC license.
|
|
8772
8789
|
* See the LICENSE file in the root directory of this source tree.
|
|
8773
8790
|
*/
|
|
8774
|
-
const
|
|
8791
|
+
const li = (...e) => e.filter((t, a, r) => !!t && t.trim() !== "" && r.indexOf(t) === a).join(" ").trim();
|
|
8775
8792
|
/**
|
|
8776
8793
|
* @license lucide-react v0.574.0 - ISC
|
|
8777
8794
|
*
|
|
@@ -8834,7 +8851,7 @@ const Gr = (e) => {
|
|
|
8834
8851
|
* This source code is licensed under the ISC license.
|
|
8835
8852
|
* See the LICENSE file in the root directory of this source tree.
|
|
8836
8853
|
*/
|
|
8837
|
-
const Qr =
|
|
8854
|
+
const Qr = ht(
|
|
8838
8855
|
({
|
|
8839
8856
|
color: e = "currentColor",
|
|
8840
8857
|
size: t = 24,
|
|
@@ -8853,7 +8870,7 @@ const Qr = vt(
|
|
|
8853
8870
|
height: t,
|
|
8854
8871
|
stroke: e,
|
|
8855
8872
|
strokeWidth: r ? Number(a) * 24 / Number(t) : a,
|
|
8856
|
-
className:
|
|
8873
|
+
className: li("lucide", n),
|
|
8857
8874
|
...!l && !Gr(p) && { "aria-hidden": "true" },
|
|
8858
8875
|
...p
|
|
8859
8876
|
},
|
|
@@ -8869,12 +8886,12 @@ const Qr = vt(
|
|
|
8869
8886
|
* This source code is licensed under the ISC license.
|
|
8870
8887
|
* See the LICENSE file in the root directory of this source tree.
|
|
8871
8888
|
*/
|
|
8872
|
-
const
|
|
8873
|
-
const a =
|
|
8889
|
+
const ci = (e, t) => {
|
|
8890
|
+
const a = ht(
|
|
8874
8891
|
({ className: r, ...n }, l) => It(Qr, {
|
|
8875
8892
|
ref: l,
|
|
8876
8893
|
iconNode: t,
|
|
8877
|
-
className:
|
|
8894
|
+
className: li(
|
|
8878
8895
|
`lucide-${Hr(Ht(e))}`,
|
|
8879
8896
|
`lucide-${e}`,
|
|
8880
8897
|
r
|
|
@@ -8890,14 +8907,14 @@ const li = (e, t) => {
|
|
|
8890
8907
|
* This source code is licensed under the ISC license.
|
|
8891
8908
|
* See the LICENSE file in the root directory of this source tree.
|
|
8892
8909
|
*/
|
|
8893
|
-
const Xr = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]],
|
|
8910
|
+
const Xr = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], di = ci("chevron-left", Xr);
|
|
8894
8911
|
/**
|
|
8895
8912
|
* @license lucide-react v0.574.0 - ISC
|
|
8896
8913
|
*
|
|
8897
8914
|
* This source code is licensed under the ISC license.
|
|
8898
8915
|
* See the LICENSE file in the root directory of this source tree.
|
|
8899
8916
|
*/
|
|
8900
|
-
const Zr = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]],
|
|
8917
|
+
const Zr = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], mi = ci("chevron-right", Zr);
|
|
8901
8918
|
function Jr(e, t) {
|
|
8902
8919
|
const a = !t || t.length === 0 || t.every((r) => !r || !r.trim());
|
|
8903
8920
|
if (e.isRequired && a)
|
|
@@ -8942,15 +8959,15 @@ const ta = ({
|
|
|
8942
8959
|
onComplete: t,
|
|
8943
8960
|
onBack: a
|
|
8944
8961
|
}) => {
|
|
8945
|
-
const { t: r } = Ie(), { questionnaire: n, initialAnswers: l, isLoading: o, isSubmitting: p, error: m, submit: d } = Dr(e), [y,
|
|
8962
|
+
const { t: r } = Ie(), { questionnaire: n, initialAnswers: l, isLoading: o, isSubmitting: p, error: m, submit: d } = Dr(e), [y, v] = S({}), [z, L] = S({}), [C, q] = S(0);
|
|
8946
8963
|
Ne.useEffect(() => {
|
|
8947
|
-
l && Object.keys(l).length > 0 && Object.keys(y).length === 0 &&
|
|
8964
|
+
l && Object.keys(l).length > 0 && Object.keys(y).length === 0 && v(l);
|
|
8948
8965
|
}, [l]);
|
|
8949
8966
|
const T = Fe(
|
|
8950
8967
|
() => n ? ea(n.questionGroups) : [],
|
|
8951
8968
|
[n]
|
|
8952
8969
|
), P = C === T.length - 1, B = T[C] ?? [], O = ie((b, R) => {
|
|
8953
|
-
|
|
8970
|
+
v((V) => ({ ...V, [b]: R })), L((V) => {
|
|
8954
8971
|
const Q = { ...V };
|
|
8955
8972
|
return delete Q[b], Q;
|
|
8956
8973
|
});
|
|
@@ -9026,7 +9043,7 @@ const ta = ({
|
|
|
9026
9043
|
onClick: J,
|
|
9027
9044
|
style: { display: "flex", alignItems: "center", gap: "4px" },
|
|
9028
9045
|
children: [
|
|
9029
|
-
/* @__PURE__ */ i(
|
|
9046
|
+
/* @__PURE__ */ i(di, { size: 14 }),
|
|
9030
9047
|
C > 0 ? r("common.previous") : r("common.back")
|
|
9031
9048
|
]
|
|
9032
9049
|
}
|
|
@@ -9047,7 +9064,7 @@ const ta = ({
|
|
|
9047
9064
|
style: { display: "flex", alignItems: "center", gap: "4px" },
|
|
9048
9065
|
children: [
|
|
9049
9066
|
r("common.next"),
|
|
9050
|
-
/* @__PURE__ */ i(
|
|
9067
|
+
/* @__PURE__ */ i(mi, { size: 14 })
|
|
9051
9068
|
]
|
|
9052
9069
|
}
|
|
9053
9070
|
)
|
|
@@ -9129,7 +9146,7 @@ const ta = ({
|
|
|
9129
9146
|
(o === "checkbox" || o === "multi-select") && /* @__PURE__ */ s("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
|
|
9130
9147
|
(e.defaultAnswers ?? []).map((m) => {
|
|
9131
9148
|
const d = t.includes(m), y = () => {
|
|
9132
|
-
r(d ? t.filter((
|
|
9149
|
+
r(d ? t.filter((v) => v !== m) : [...t, m]);
|
|
9133
9150
|
};
|
|
9134
9151
|
return /* @__PURE__ */ s(
|
|
9135
9152
|
"div",
|
|
@@ -9163,7 +9180,7 @@ const aa = ({
|
|
|
9163
9180
|
onComplete: t,
|
|
9164
9181
|
onBack: a
|
|
9165
9182
|
}) => {
|
|
9166
|
-
const { t: r } = Ie(), { uploadDocument: n, isLoading: l, isSubmitting: o, error: p, submit: m } = Mr(e), [d, y] = S({}), [
|
|
9183
|
+
const { t: r } = Ie(), { uploadDocument: n, isLoading: l, isSubmitting: o, error: p, submit: m } = Mr(e), [d, y] = S({}), [v, z] = S(null), [L, C] = S(0), [q, T] = S({}), P = Fe(
|
|
9167
9184
|
() => n ? ra(n.uploadDocumentFiles) : [],
|
|
9168
9185
|
[n]
|
|
9169
9186
|
), B = P[L] ?? [], O = L === P.length - 1, U = P.length, H = ie(() => {
|
|
@@ -9320,7 +9337,7 @@ const aa = ({
|
|
|
9320
9337
|
},
|
|
9321
9338
|
R.id
|
|
9322
9339
|
)) }) }),
|
|
9323
|
-
|
|
9340
|
+
v && /* @__PURE__ */ s("div", { style: {
|
|
9324
9341
|
margin: "0 24px",
|
|
9325
9342
|
padding: "10px 14px",
|
|
9326
9343
|
borderRadius: "8px",
|
|
@@ -9335,7 +9352,7 @@ const aa = ({
|
|
|
9335
9352
|
/* @__PURE__ */ i("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
|
|
9336
9353
|
/* @__PURE__ */ i("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
|
|
9337
9354
|
] }),
|
|
9338
|
-
/* @__PURE__ */ i("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", margin: 0 }, children:
|
|
9355
|
+
/* @__PURE__ */ i("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", margin: 0 }, children: v })
|
|
9339
9356
|
] }),
|
|
9340
9357
|
/* @__PURE__ */ i(Re, { children: /* @__PURE__ */ s("div", { style: {
|
|
9341
9358
|
display: "flex",
|
|
@@ -9383,7 +9400,7 @@ const aa = ({
|
|
|
9383
9400
|
/* @__PURE__ */ i("h2", { className: "text-lg font-bold", children: n.title || r("overview.title") }),
|
|
9384
9401
|
n.description && /* @__PURE__ */ i("p", { className: "mt-1", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: n.description })
|
|
9385
9402
|
] }),
|
|
9386
|
-
/* @__PURE__ */ i(oe, { className: "space-y-8", children: n.steps && n.steps.length > 0 ? n.steps.sort((y,
|
|
9403
|
+
/* @__PURE__ */ i(oe, { className: "space-y-8", children: n.steps && n.steps.length > 0 ? n.steps.sort((y, v) => y.order - v.order).map((y) => /* @__PURE__ */ s("div", { className: "metakyc-overview-step-item flex items-center space-x-3", children: [
|
|
9387
9404
|
/* @__PURE__ */ i("div", { className: "metakyc-step-icon flex-shrink-0", children: /* @__PURE__ */ i(
|
|
9388
9405
|
"div",
|
|
9389
9406
|
{
|
|
@@ -9481,7 +9498,7 @@ const ua = ({
|
|
|
9481
9498
|
onComplete: t,
|
|
9482
9499
|
onBack: a
|
|
9483
9500
|
}) => {
|
|
9484
|
-
const { t: r } = Ie(), { config: n } = Oe(), l = n.locale ?? "en", { criteria: o, initialAnswers: p, isLoading: m, isSubmitting: d, error: y, submit:
|
|
9501
|
+
const { t: r } = Ie(), { config: n } = Oe(), l = n.locale ?? "en", { criteria: o, initialAnswers: p, isLoading: m, isSubmitting: d, error: y, submit: v } = Or(e), [z, L] = S({}), [C, q] = S({}), [T, P] = S(0), [B, O] = S(!1);
|
|
9485
9502
|
Ne.useEffect(() => {
|
|
9486
9503
|
p && Object.keys(p).length > 0 && Object.keys(z).length === 0 && L(p);
|
|
9487
9504
|
}, [p]);
|
|
@@ -9490,8 +9507,8 @@ const ua = ({
|
|
|
9490
9507
|
[o]
|
|
9491
9508
|
), H = T === U.length - 1, J = U[T] ?? [];
|
|
9492
9509
|
Ne.useEffect(() => {
|
|
9493
|
-
!m && o && o.length === 0 && !B && !d && (O(!0),
|
|
9494
|
-
}, [m, o, B, d,
|
|
9510
|
+
!m && o && o.length === 0 && !B && !d && (O(!0), v({ applicantId: e, criteriaValueInputs: [] }).then(() => t == null ? void 0 : t()).catch(console.error));
|
|
9511
|
+
}, [m, o, B, d, v, e, t]);
|
|
9495
9512
|
const re = ie((ee, W) => {
|
|
9496
9513
|
L((X) => ({ ...X, [ee]: W })), q((X) => {
|
|
9497
9514
|
const ce = { ...X };
|
|
@@ -9515,7 +9532,7 @@ const ua = ({
|
|
|
9515
9532
|
const ce = (z[X.id] ?? []).filter((Y) => Y && Y.trim());
|
|
9516
9533
|
return ce.length > 0 ? { riskCriteriaId: X.id, values: ce } : null;
|
|
9517
9534
|
}).filter((X) => X !== null);
|
|
9518
|
-
await
|
|
9535
|
+
await v({ applicantId: e, criteriaValueInputs: ee }), t == null || t();
|
|
9519
9536
|
} catch (ee) {
|
|
9520
9537
|
console.error("Risk scoring submit error:", ee);
|
|
9521
9538
|
}
|
|
@@ -9570,7 +9587,7 @@ const ua = ({
|
|
|
9570
9587
|
onClick: V,
|
|
9571
9588
|
style: { display: "flex", alignItems: "center", gap: "4px" },
|
|
9572
9589
|
children: [
|
|
9573
|
-
/* @__PURE__ */ i(
|
|
9590
|
+
/* @__PURE__ */ i(di, { size: 14 }),
|
|
9574
9591
|
T > 0 ? r("common.previous") : r("common.back")
|
|
9575
9592
|
]
|
|
9576
9593
|
}
|
|
@@ -9583,7 +9600,7 @@ const ua = ({
|
|
|
9583
9600
|
style: { display: "flex", alignItems: "center", gap: "4px" },
|
|
9584
9601
|
children: [
|
|
9585
9602
|
r("common.next"),
|
|
9586
|
-
/* @__PURE__ */ i(
|
|
9603
|
+
/* @__PURE__ */ i(mi, { size: 14 })
|
|
9587
9604
|
]
|
|
9588
9605
|
}
|
|
9589
9606
|
)
|
|
@@ -9632,7 +9649,7 @@ const ua = ({
|
|
|
9632
9649
|
type: "radio",
|
|
9633
9650
|
checked: t[0] === y,
|
|
9634
9651
|
onChange: () => n([y]),
|
|
9635
|
-
onClick: (
|
|
9652
|
+
onClick: (v) => v.stopPropagation(),
|
|
9636
9653
|
className: "metakyc-option-input",
|
|
9637
9654
|
style: {
|
|
9638
9655
|
width: "16px",
|
|
@@ -9658,8 +9675,8 @@ const ua = ({
|
|
|
9658
9675
|
] }),
|
|
9659
9676
|
o === "checkbox" && /* @__PURE__ */ s("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
|
|
9660
9677
|
(e.defaultValues ?? []).map((y) => {
|
|
9661
|
-
const
|
|
9662
|
-
n(
|
|
9678
|
+
const v = t.includes(y), z = () => {
|
|
9679
|
+
n(v ? t.filter((L) => L !== y) : [...t, y]);
|
|
9663
9680
|
};
|
|
9664
9681
|
return /* @__PURE__ */ s(
|
|
9665
9682
|
"div",
|
|
@@ -9668,7 +9685,7 @@ const ua = ({
|
|
|
9668
9685
|
onClick: z,
|
|
9669
9686
|
style: { display: "flex", alignItems: "center", gap: "10px", cursor: "pointer", margin: 0, padding: 0, userSelect: "none" },
|
|
9670
9687
|
children: [
|
|
9671
|
-
/* @__PURE__ */ i(We, { checked:
|
|
9688
|
+
/* @__PURE__ */ i(We, { checked: v, onChange: () => z() }),
|
|
9672
9689
|
/* @__PURE__ */ i("span", { className: "metakyc-option-text", style: { fontSize: "14px", color: "var(--metakyc-text-primary, #111827)", lineHeight: "1.4", marginLeft: 0 }, children: d(y) })
|
|
9673
9690
|
]
|
|
9674
9691
|
},
|
|
@@ -9841,7 +9858,7 @@ const ya = ({
|
|
|
9841
9858
|
onComplete: t,
|
|
9842
9859
|
onBack: a
|
|
9843
9860
|
}) => {
|
|
9844
|
-
const { t: r } = Ie(), { appropriatenessTestService: n } = Oe(), [l, o] = S(null), [p, m] = S(!0), [d, y] = S(!1), [
|
|
9861
|
+
const { t: r } = Ie(), { appropriatenessTestService: n } = Oe(), [l, o] = S(null), [p, m] = S(!0), [d, y] = S(!1), [v, z] = S(null), [L, C] = S({}), [q, T] = S(0), [P, B] = S(!1), [O, U] = S(!1), [H, J] = S(0), [re, b] = S(0), [R, V] = S(null);
|
|
9845
9862
|
be(() => {
|
|
9846
9863
|
(async () => {
|
|
9847
9864
|
try {
|
|
@@ -9929,7 +9946,7 @@ const ya = ({
|
|
|
9929
9946
|
if (!l)
|
|
9930
9947
|
return /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ i(oe, { children: /* @__PURE__ */ s("div", { style: { textAlign: "center", padding: "48px 0" }, children: [
|
|
9931
9948
|
/* @__PURE__ */ i("p", { style: { fontSize: "16px", fontWeight: 600, color: "var(--metakyc-danger, #ef4444)" }, children: r("appropriatenessTest.noTestData") }),
|
|
9932
|
-
|
|
9949
|
+
v && /* @__PURE__ */ i("p", { style: { fontSize: "14px", color: "var(--metakyc-text-muted, #9ca3af)", marginTop: "8px" }, children: v })
|
|
9933
9950
|
] }) }) });
|
|
9934
9951
|
const Y = l.testAllowedMaxTry - l.totalFailedTries, je = l.appropriatenessQuestions.length, ye = Object.keys(L).length;
|
|
9935
9952
|
if (H > 0)
|
|
@@ -9953,13 +9970,13 @@ const ya = ({
|
|
|
9953
9970
|
}, children: Nt(H) }) }),
|
|
9954
9971
|
/* @__PURE__ */ i("p", { style: { fontSize: "15px", fontWeight: 500, color: "var(--metakyc-text-primary, #111827)" }, children: r("appropriatenessTest.waitBeforeRetrying") }),
|
|
9955
9972
|
/* @__PURE__ */ i("p", { style: { fontSize: "13px", color: "var(--metakyc-text-muted, #9ca3af)", marginTop: "4px" }, children: r("appropriatenessTest.waitTimerMessage") }),
|
|
9956
|
-
|
|
9973
|
+
v && /* @__PURE__ */ i("div", { style: {
|
|
9957
9974
|
marginTop: "20px",
|
|
9958
9975
|
padding: "12px 16px",
|
|
9959
9976
|
borderRadius: "10px",
|
|
9960
9977
|
backgroundColor: "color-mix(in srgb, var(--metakyc-danger, #ef4444) 8%, transparent)",
|
|
9961
9978
|
border: "1px solid color-mix(in srgb, var(--metakyc-danger, #ef4444) 20%, transparent)"
|
|
9962
|
-
}, children: /* @__PURE__ */ i("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", margin: 0 }, children:
|
|
9979
|
+
}, children: /* @__PURE__ */ i("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", margin: 0 }, children: v }) })
|
|
9963
9980
|
] }) })
|
|
9964
9981
|
] });
|
|
9965
9982
|
if (R) {
|
|
@@ -10059,11 +10076,11 @@ const ya = ({
|
|
|
10059
10076
|
/* @__PURE__ */ i("p", { style: { fontSize: "13px", color: "var(--metakyc-text-secondary, #374151)", margin: 0, lineHeight: 1.5 }, children: l.description })
|
|
10060
10077
|
] }),
|
|
10061
10078
|
/* @__PURE__ */ s("div", { className: "metakyc-grid-2", style: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: "12px", marginBottom: "20px" }, children: [
|
|
10062
|
-
/* @__PURE__ */ i(
|
|
10063
|
-
/* @__PURE__ */ i(
|
|
10064
|
-
/* @__PURE__ */ i(
|
|
10079
|
+
/* @__PURE__ */ i(vt, { icon: "questions", label: r("appropriatenessTest.questions"), value: String(l.totalQuestionCount) }),
|
|
10080
|
+
/* @__PURE__ */ i(vt, { icon: "time", label: r("appropriatenessTest.timeLimit"), value: Nt(l.testDurationSec) }),
|
|
10081
|
+
/* @__PURE__ */ i(vt, { icon: "target", label: r("appropriatenessTest.passRequirement"), value: r("appropriatenessTest.correct", { count: l.testCorrectAnswerPassLimit }) }),
|
|
10065
10082
|
/* @__PURE__ */ i(
|
|
10066
|
-
|
|
10083
|
+
vt,
|
|
10067
10084
|
{
|
|
10068
10085
|
icon: "retry",
|
|
10069
10086
|
label: r("appropriatenessTest.attemptsLeftLabel"),
|
|
@@ -10072,7 +10089,7 @@ const ya = ({
|
|
|
10072
10089
|
}
|
|
10073
10090
|
)
|
|
10074
10091
|
] }),
|
|
10075
|
-
|
|
10092
|
+
v && /* @__PURE__ */ s("div", { style: {
|
|
10076
10093
|
marginBottom: "16px",
|
|
10077
10094
|
padding: "12px 14px",
|
|
10078
10095
|
borderRadius: "10px",
|
|
@@ -10089,7 +10106,7 @@ const ya = ({
|
|
|
10089
10106
|
/* @__PURE__ */ s("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", margin: 0, lineHeight: 1.5 }, children: [
|
|
10090
10107
|
/* @__PURE__ */ i("strong", { children: r("appropriatenessTest.previousAttempt") }),
|
|
10091
10108
|
" ",
|
|
10092
|
-
|
|
10109
|
+
v
|
|
10093
10110
|
] })
|
|
10094
10111
|
] }),
|
|
10095
10112
|
Y <= 0 && /* @__PURE__ */ i("div", { style: {
|
|
@@ -10236,13 +10253,13 @@ const ya = ({
|
|
|
10236
10253
|
] }),
|
|
10237
10254
|
/* @__PURE__ */ i("p", { style: { fontSize: "13px", color: "#b45309", margin: 0, fontWeight: 500 }, children: r("appropriatenessTest.timesUp") })
|
|
10238
10255
|
] }),
|
|
10239
|
-
|
|
10256
|
+
v && !O && /* @__PURE__ */ i("div", { style: {
|
|
10240
10257
|
marginTop: "16px",
|
|
10241
10258
|
padding: "12px 14px",
|
|
10242
10259
|
borderRadius: "10px",
|
|
10243
10260
|
backgroundColor: "color-mix(in srgb, var(--metakyc-danger, #ef4444) 8%, transparent)",
|
|
10244
10261
|
border: "1px solid color-mix(in srgb, var(--metakyc-danger, #ef4444) 20%, transparent)"
|
|
10245
|
-
}, children: /* @__PURE__ */ i("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", margin: 0 }, children:
|
|
10262
|
+
}, children: /* @__PURE__ */ i("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", margin: 0 }, children: v }) })
|
|
10246
10263
|
] }),
|
|
10247
10264
|
/* @__PURE__ */ i(Re, { children: /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", width: "100%" }, children: [
|
|
10248
10265
|
/* @__PURE__ */ i(
|
|
@@ -10298,7 +10315,7 @@ const ya = ({
|
|
|
10298
10315
|
/* @__PURE__ */ i("polyline", { points: "23 4 23 10 17 10" }),
|
|
10299
10316
|
/* @__PURE__ */ i("path", { d: "M20.49 15a9 9 0 1 1-2.12-9.36L23 10" })
|
|
10300
10317
|
] })
|
|
10301
|
-
},
|
|
10318
|
+
}, vt = ({ icon: e, label: t, value: a, variant: r = "default" }) => {
|
|
10302
10319
|
const n = r === "warning";
|
|
10303
10320
|
return /* @__PURE__ */ s("div", { style: {
|
|
10304
10321
|
display: "flex",
|
|
@@ -10406,13 +10423,13 @@ const ya = ({
|
|
|
10406
10423
|
l
|
|
10407
10424
|
);
|
|
10408
10425
|
}) })
|
|
10409
|
-
] }),
|
|
10426
|
+
] }), ha = ({
|
|
10410
10427
|
applicantId: e,
|
|
10411
10428
|
onComplete: t,
|
|
10412
10429
|
onBack: a
|
|
10413
10430
|
}) => {
|
|
10414
10431
|
var at, He, dt, Je;
|
|
10415
|
-
const { t: r } = Ie(), { applicantService: n, baseInformationService: l, identityService: o, config: p, currentTheme: m } = Oe(), { identityData: d, provider: y, token:
|
|
10432
|
+
const { t: r } = Ie(), { applicantService: n, baseInformationService: l, identityService: o, config: p, currentTheme: m } = Oe(), { identityData: d, provider: y, token: v, isLoading: z, error: L, requestIdentity: C, restartIdentity: q } = Fr(e), [T, P] = S(null), [B, O] = S(null), [U, H] = S([]), [J, re] = S([]), [b, R] = S(!0), [V, Q] = S(!1), [ee, W] = S(null), [X, ce] = S(!1), Y = Ne.useRef(!1), [je, ye] = S({}), [fe, Se] = S({}), pe = m != null && m.reviewPageFields && m.reviewPageFields.length > 0 ? m.reviewPageFields[0] : null, M = !!(m != null && m.reviewPageDisabled), E = ue(!1);
|
|
10416
10433
|
E.current = M;
|
|
10417
10434
|
const F = yi({
|
|
10418
10435
|
defaultValues: {
|
|
@@ -10491,17 +10508,17 @@ const ya = ({
|
|
|
10491
10508
|
}, [e]), be(() => {
|
|
10492
10509
|
d && !V && E.current && (console.log("[Identity] Review page disabled — showing cached provider"), Q(!0));
|
|
10493
10510
|
}, [d, V]), be(() => {
|
|
10494
|
-
if (
|
|
10495
|
-
if (
|
|
10496
|
-
const k = new Date(
|
|
10511
|
+
if (v) {
|
|
10512
|
+
if (v.expiresAt) {
|
|
10513
|
+
const k = new Date(v.expiresAt).getTime();
|
|
10497
10514
|
if (Date.now() >= k) {
|
|
10498
10515
|
console.warn("[Identity] Token has expired (expiresAt)"), ce(!0), W(r("identity.sessionExpired"));
|
|
10499
10516
|
return;
|
|
10500
10517
|
}
|
|
10501
10518
|
}
|
|
10502
|
-
if (
|
|
10519
|
+
if (v.url)
|
|
10503
10520
|
try {
|
|
10504
|
-
const j = new URL(
|
|
10521
|
+
const j = new URL(v.url).toString().toLowerCase();
|
|
10505
10522
|
if (j.includes("expired") || j.includes("invalid") || j.includes("error")) {
|
|
10506
10523
|
console.warn("[Identity] Token URL indicates expiration"), ce(!0), W(r("identity.linkExpired"));
|
|
10507
10524
|
return;
|
|
@@ -10509,20 +10526,20 @@ const ya = ({
|
|
|
10509
10526
|
} catch {
|
|
10510
10527
|
console.error("[Identity] Invalid token URL");
|
|
10511
10528
|
}
|
|
10512
|
-
if (
|
|
10529
|
+
if (v.status === "expired" || v.error === "expired" || v.expired === !0) {
|
|
10513
10530
|
console.warn("[Identity] Token object indicates expiration"), ce(!0), W(r("identity.sessionExpired"));
|
|
10514
10531
|
return;
|
|
10515
10532
|
}
|
|
10516
10533
|
}
|
|
10517
|
-
}, [
|
|
10534
|
+
}, [v]);
|
|
10518
10535
|
const xe = y !== null && y === qe.Sumsub;
|
|
10519
10536
|
be(() => {
|
|
10520
|
-
if (y !== null &&
|
|
10537
|
+
if (y !== null && v && !T && V && !X) {
|
|
10521
10538
|
const k = y;
|
|
10522
10539
|
if (xe) {
|
|
10523
10540
|
console.log("[Sumsub] Fetching access token for Web SDK…"), W(null), (async () => {
|
|
10524
10541
|
try {
|
|
10525
|
-
const j = await o.refreshSumsubToken(e), $ = tt.parseProviderConfig(y,
|
|
10542
|
+
const j = await o.refreshSumsubToken(e), $ = tt.parseProviderConfig(y, v, p);
|
|
10526
10543
|
$.accessToken = j, $.onTokenRefresh = () => o.refreshSumsubToken(e);
|
|
10527
10544
|
const K = tt.createProvider(y, $);
|
|
10528
10545
|
K.onComplete((te) => {
|
|
@@ -10536,19 +10553,19 @@ const ya = ({
|
|
|
10536
10553
|
})();
|
|
10537
10554
|
return;
|
|
10538
10555
|
}
|
|
10539
|
-
if (
|
|
10540
|
-
console.log("[Identity] Loading provider URL for user verification:",
|
|
10556
|
+
if (v.url) {
|
|
10557
|
+
console.log("[Identity] Loading provider URL for user verification:", v.url), W(null);
|
|
10541
10558
|
try {
|
|
10542
|
-
if (new URL(
|
|
10559
|
+
if (new URL(v.url), k === qe.SardinAI) {
|
|
10543
10560
|
console.log("[SardinAI] Initializing Risk SDK in background...");
|
|
10544
10561
|
try {
|
|
10545
|
-
const j = tt.parseProviderConfig(y,
|
|
10562
|
+
const j = tt.parseProviderConfig(y, v, p);
|
|
10546
10563
|
tt.createProvider(y, j).initialize().then(() => console.log("[SardinAI] Risk SDK initialized in background")).catch((K) => console.warn("[SardinAI] Risk SDK init failed (non-blocking):", K));
|
|
10547
10564
|
} catch (j) {
|
|
10548
10565
|
console.warn("[SardinAI] Risk SDK setup failed (non-blocking):", j);
|
|
10549
10566
|
}
|
|
10550
10567
|
}
|
|
10551
|
-
P({ type: "url", url:
|
|
10568
|
+
P({ type: "url", url: v.url });
|
|
10552
10569
|
} catch (j) {
|
|
10553
10570
|
console.error("[Identity] Invalid URL:", j), W(r("identity.invalidUrl")), ce(!0);
|
|
10554
10571
|
}
|
|
@@ -10557,7 +10574,7 @@ const ya = ({
|
|
|
10557
10574
|
if (k === qe.SardinAI) {
|
|
10558
10575
|
console.log("[SardinAI] No URL provided - initializing Risk SDK only..."), W(null);
|
|
10559
10576
|
try {
|
|
10560
|
-
const j = tt.parseProviderConfig(y,
|
|
10577
|
+
const j = tt.parseProviderConfig(y, v, p), $ = tt.createProvider(y, j);
|
|
10561
10578
|
$.initialize().then(() => {
|
|
10562
10579
|
console.log("[SardinAI] Risk SDK initialized successfully"), P($), setTimeout(() => t == null ? void 0 : t(), 2e3);
|
|
10563
10580
|
}).catch((K) => {
|
|
@@ -10573,7 +10590,7 @@ const ya = ({
|
|
|
10573
10590
|
}
|
|
10574
10591
|
try {
|
|
10575
10592
|
W(null);
|
|
10576
|
-
const j = tt.parseProviderConfig(y,
|
|
10593
|
+
const j = tt.parseProviderConfig(y, v, p), $ = tt.createProvider(y, j);
|
|
10577
10594
|
k === qe.Onfido && $.initialize("identity-container").catch((K) => {
|
|
10578
10595
|
console.error("[Onfido] Initialization error:", K), W(r("identity.failedToInitialize", { message: K.message }));
|
|
10579
10596
|
}), P($);
|
|
@@ -10589,7 +10606,7 @@ const ya = ({
|
|
|
10589
10606
|
console.error("[Identity] Error destroying provider:", k);
|
|
10590
10607
|
}
|
|
10591
10608
|
};
|
|
10592
|
-
}, [y,
|
|
10609
|
+
}, [y, v, T, V, t, X, xe, e, p, o]);
|
|
10593
10610
|
const de = async () => {
|
|
10594
10611
|
try {
|
|
10595
10612
|
W(null), ce(!1), await C(), Q(!0);
|
|
@@ -10728,7 +10745,7 @@ const ya = ({
|
|
|
10728
10745
|
padding: "16px 24px",
|
|
10729
10746
|
borderTop: "1px solid var(--metakyc-border, #e5e7eb)"
|
|
10730
10747
|
}, children: /* @__PURE__ */ i(Z, { variant: "outline", onClick: _, children: r("common.back") }) })
|
|
10731
|
-
] }) :
|
|
10748
|
+
] }) : v != null && v.url ? /* @__PURE__ */ s(ne, { children: [
|
|
10732
10749
|
/* @__PURE__ */ i(Te, { children: /* @__PURE__ */ s("div", { className: "flex items-center justify-between", children: [
|
|
10733
10750
|
/* @__PURE__ */ s("div", { children: [
|
|
10734
10751
|
/* @__PURE__ */ i("h2", { className: "text-2xl font-bold", children: r("identity.title") }),
|
|
@@ -10754,7 +10771,7 @@ const ya = ({
|
|
|
10754
10771
|
/* @__PURE__ */ i("div", { className: "w-full", style: { height: "600px", maxHeight: "70vh" }, children: /* @__PURE__ */ i(
|
|
10755
10772
|
"iframe",
|
|
10756
10773
|
{
|
|
10757
|
-
src:
|
|
10774
|
+
src: v.url,
|
|
10758
10775
|
className: "w-full h-full border-0 rounded-lg",
|
|
10759
10776
|
allow: "camera; microphone; geolocation",
|
|
10760
10777
|
title: "Identity Verification",
|
|
@@ -11155,7 +11172,7 @@ function st(e) {
|
|
|
11155
11172
|
const { color: t, fallback: a } = Pt[e];
|
|
11156
11173
|
return { color: `var(${t}, ${a})` };
|
|
11157
11174
|
}
|
|
11158
|
-
function
|
|
11175
|
+
function va(e) {
|
|
11159
11176
|
const { color: t, fallback: a } = Pt[e];
|
|
11160
11177
|
return {
|
|
11161
11178
|
backgroundColor: `color-mix(in srgb, var(${t}, ${a}) 15%, transparent)`
|
|
@@ -11176,13 +11193,13 @@ const _t = ({
|
|
|
11176
11193
|
"div",
|
|
11177
11194
|
{
|
|
11178
11195
|
className: "w-24 h-24 rounded-full flex items-center justify-center",
|
|
11179
|
-
style:
|
|
11196
|
+
style: va(m.type),
|
|
11180
11197
|
children: /* @__PURE__ */ i("span", { className: "text-5xl", style: st(m.type), children: m.icon })
|
|
11181
11198
|
}
|
|
11182
11199
|
) }),
|
|
11183
11200
|
/* @__PURE__ */ i("h2", { className: "text-3xl font-bold text-center mb-4", style: { color: "var(--metakyc-text-primary, #111827)" }, children: m.title }),
|
|
11184
11201
|
/* @__PURE__ */ i("div", { className: "flex justify-center mb-6", children: /* @__PURE__ */ i(
|
|
11185
|
-
|
|
11202
|
+
si,
|
|
11186
11203
|
{
|
|
11187
11204
|
variant: m.type === "success" ? "success" : m.type === "error" ? "danger" : "warning",
|
|
11188
11205
|
children: Ke[t]
|
|
@@ -11243,7 +11260,7 @@ const _t = ({
|
|
|
11243
11260
|
/* @__PURE__ */ i("div", { className: "mt-6 pt-6", style: { borderTop: "1px solid var(--metakyc-border, #e5e7eb)" }, children: /* @__PURE__ */ s("div", { className: "grid grid-cols-2 metakyc-grid-2 gap-4 text-sm", children: [
|
|
11244
11261
|
/* @__PURE__ */ s("div", { children: [
|
|
11245
11262
|
/* @__PURE__ */ i("span", { style: { color: "var(--metakyc-text-muted, #9ca3af)" }, children: o("status.kycStatus") }),
|
|
11246
|
-
/* @__PURE__ */ i("div", { className: "font-medium mt-1", style: { color: "var(--metakyc-text-primary, #111827)" }, children: e != null ?
|
|
11263
|
+
/* @__PURE__ */ i("div", { className: "font-medium mt-1", style: { color: "var(--metakyc-text-primary, #111827)" }, children: e != null ? ei[e] : o("status.notAvailable") })
|
|
11247
11264
|
] }),
|
|
11248
11265
|
/* @__PURE__ */ s("div", { children: [
|
|
11249
11266
|
/* @__PURE__ */ i("span", { style: { color: "var(--metakyc-text-muted, #9ca3af)" }, children: o("status.reviewStatus") }),
|
|
@@ -11442,38 +11459,38 @@ const xa = {
|
|
|
11442
11459
|
),
|
|
11443
11460
|
typeof document < "u" && n ? Lt(n, document.body) : null
|
|
11444
11461
|
] });
|
|
11445
|
-
},
|
|
11462
|
+
}, Ua = ({
|
|
11446
11463
|
workflowKey: e,
|
|
11447
11464
|
externalRefId: t,
|
|
11448
11465
|
onSuccess: a,
|
|
11449
11466
|
onCancel: r
|
|
11450
11467
|
}) => {
|
|
11451
11468
|
var $, K, te, g, I, x, u;
|
|
11452
|
-
const { config: n, baseInformationService: l, currentTheme: o } = Oe(), { createApplicant: p, isLoading: m } =
|
|
11469
|
+
const { config: n, baseInformationService: l, currentTheme: o } = Oe(), { createApplicant: p, isLoading: m } = oi(), { t: d } = Ie(), y = e || (($ = n.applicantForm) == null ? void 0 : $.workflowKey);
|
|
11453
11470
|
if (!y)
|
|
11454
11471
|
throw new Error(
|
|
11455
11472
|
"workflowKey is required. Provide it either as a prop to CreateApplicantForm or set it in config.applicantForm.workflowKey"
|
|
11456
11473
|
);
|
|
11457
|
-
const
|
|
11474
|
+
const v = t || ((K = n.applicantForm) == null ? void 0 : K.externalRefId) || "", z = ((te = n.applicantForm) == null ? void 0 : te.email) || "", L = ((g = n.applicantForm) == null ? void 0 : g.hiddenValues) || {}, C = ((I = n.applicantForm) == null ? void 0 : I.initialValues) || {}, T = (((x = n.applicantForm) == null ? void 0 : x.fieldLabelMode) || (o == null ? void 0 : o.fieldLabelMode) || "label") !== "placeholder", P = Fe(
|
|
11458
11475
|
() => o != null && o.applicantFormPages && o.applicantFormPages.length > 0 ? o.applicantFormPages : null,
|
|
11459
11476
|
[o == null ? void 0 : o.applicantFormPages]
|
|
11460
11477
|
), B = Fe(() => {
|
|
11461
11478
|
const c = new Set(bt), f = o == null ? void 0 : o.applicantFormRequiredFields;
|
|
11462
|
-
if (f) for (const
|
|
11479
|
+
if (f) for (const h of f) c.add(h);
|
|
11463
11480
|
if (P)
|
|
11464
|
-
for (const
|
|
11465
|
-
for (const A of
|
|
11481
|
+
for (const h of P)
|
|
11482
|
+
for (const A of h.fields)
|
|
11466
11483
|
!A.isCustom && A.name && A.required && c.add(A.name);
|
|
11467
11484
|
return Array.from(c);
|
|
11468
11485
|
}, [o == null ? void 0 : o.applicantFormRequiredFields, P]), O = Fe(() => {
|
|
11469
|
-
var
|
|
11486
|
+
var h;
|
|
11470
11487
|
if (P) {
|
|
11471
11488
|
const A = P.flatMap((w) => w.fields).filter((w) => !w.isCustom && w.name).map((w) => w.name), N = new Set(A);
|
|
11472
11489
|
for (const w of bt) N.add(w);
|
|
11473
11490
|
return Array.from(N);
|
|
11474
11491
|
}
|
|
11475
11492
|
let c;
|
|
11476
|
-
(
|
|
11493
|
+
(h = n.applicantForm) != null && h.visibleFields ? c = n.applicantForm.visibleFields : o != null && o.applicantFormVisibleFields && o.applicantFormVisibleFields.length > 0 ? c = o.applicantFormVisibleFields : c = Ii;
|
|
11477
11494
|
const f = new Set(c);
|
|
11478
11495
|
for (const A of bt) f.add(A);
|
|
11479
11496
|
return Array.from(f);
|
|
@@ -11485,7 +11502,7 @@ const xa = {
|
|
|
11485
11502
|
"mobileCountryCode",
|
|
11486
11503
|
"otherNationality"
|
|
11487
11504
|
]), H = Fe(() => {
|
|
11488
|
-
var f,
|
|
11505
|
+
var f, h;
|
|
11489
11506
|
const c = /* @__PURE__ */ new Set();
|
|
11490
11507
|
if (P)
|
|
11491
11508
|
for (const A of P)
|
|
@@ -11493,7 +11510,7 @@ const xa = {
|
|
|
11493
11510
|
!N.isCustom && N.name && U.has(N.name) && c.add(N.countriesType ?? ((f = lt[N.name]) == null ? void 0 : f.countriesType));
|
|
11494
11511
|
else
|
|
11495
11512
|
for (const A of O)
|
|
11496
|
-
U.has(A) && c.add((
|
|
11513
|
+
U.has(A) && c.add((h = lt[A]) == null ? void 0 : h.countriesType);
|
|
11497
11514
|
return c.size === 0 && c.add(void 0), Array.from(c);
|
|
11498
11515
|
}, [O, P]), [J, re] = S({}), [b, R] = S(!0), V = ue(/* @__PURE__ */ new Set()), Q = ue(/* @__PURE__ */ new Set());
|
|
11499
11516
|
be(() => {
|
|
@@ -11515,10 +11532,10 @@ const xa = {
|
|
|
11515
11532
|
try {
|
|
11516
11533
|
const A = await Promise.all(
|
|
11517
11534
|
c.map(async (N) => {
|
|
11518
|
-
const w = N != null ? String(N) : "all", ae = await l.getCountries("", n.locale || "en", N), se = N === 40, we = /* @__PURE__ */ new Set(), ke = ae.map((
|
|
11519
|
-
value:
|
|
11520
|
-
label: `${
|
|
11521
|
-
} : { value:
|
|
11535
|
+
const w = N != null ? String(N) : "all", ae = await l.getCountries("", n.locale || "en", N), se = N === 40, we = /* @__PURE__ */ new Set(), ke = ae.map((he) => se && he.countryCode ? {
|
|
11536
|
+
value: he.countryCode,
|
|
11537
|
+
label: `${he.countryCode} – ${he.name}`
|
|
11538
|
+
} : { value: he.abbreviation3 || he.abbreviation, label: he.name }).filter((he) => !he.value || we.has(he.value) ? !1 : (we.add(he.value), !0));
|
|
11522
11539
|
return Q.current.add(w), V.current.delete(w), [w, ke];
|
|
11523
11540
|
})
|
|
11524
11541
|
);
|
|
@@ -11535,7 +11552,7 @@ const xa = {
|
|
|
11535
11552
|
}, [H, o]);
|
|
11536
11553
|
const ee = (c, f) => {
|
|
11537
11554
|
var N;
|
|
11538
|
-
const
|
|
11555
|
+
const h = f ?? ((N = lt[c]) == null ? void 0 : N.countriesType), A = h != null ? String(h) : "all";
|
|
11539
11556
|
return J[A] || [];
|
|
11540
11557
|
}, W = {
|
|
11541
11558
|
firstName: 1,
|
|
@@ -11572,7 +11589,7 @@ const xa = {
|
|
|
11572
11589
|
email: z,
|
|
11573
11590
|
dateOfBirth: "",
|
|
11574
11591
|
phonenumber: "",
|
|
11575
|
-
externalRefId:
|
|
11592
|
+
externalRefId: v,
|
|
11576
11593
|
mobileCountryCode: "",
|
|
11577
11594
|
street: "",
|
|
11578
11595
|
streetNumber: "",
|
|
@@ -11593,30 +11610,30 @@ const xa = {
|
|
|
11593
11610
|
...ce
|
|
11594
11611
|
}), ye = Object.fromEntries(
|
|
11595
11612
|
Object.entries(L).filter(([c]) => !(c in X) && c !== "externalRefId" && c !== "workflowKey")
|
|
11596
|
-
), [fe, Se] = S({ ...ye }), [pe, M] = S(0), [E, F] = S({}), [xe, de] = S(null), [D, _] = S(!1), ge = (c, f) => je((
|
|
11613
|
+
), [fe, Se] = S({ ...ye }), [pe, M] = S(0), [E, F] = S({}), [xe, de] = S(null), [D, _] = S(!1), ge = (c, f) => je((h) => ({ ...h, [c]: f })), le = (c, f) => Se((h) => ({ ...h, [c]: f })), ze = (c) => !c.conditionalOn || fe[c.conditionalOn] === "true", rt = (c) => {
|
|
11597
11614
|
var f;
|
|
11598
|
-
for (const
|
|
11599
|
-
if (!
|
|
11600
|
-
const A = fe[
|
|
11601
|
-
if (
|
|
11602
|
-
if (A.split(",").filter(Boolean).some((w) =>
|
|
11603
|
-
} else if (
|
|
11615
|
+
for (const h of c.fields) {
|
|
11616
|
+
if (!h.isCustom || !h.paramName || !((f = h.blockingValues) != null && f.length)) continue;
|
|
11617
|
+
const A = fe[h.paramName] ?? "";
|
|
11618
|
+
if (h.customType === "group_checkbox") {
|
|
11619
|
+
if (A.split(",").filter(Boolean).some((w) => h.blockingValues.includes(w))) return !0;
|
|
11620
|
+
} else if (h.customType === "radio_group" && h.blockingValues.includes(A))
|
|
11604
11621
|
return !0;
|
|
11605
11622
|
}
|
|
11606
11623
|
return !1;
|
|
11607
11624
|
}, Ae = P && pe < P.length - 1 ? pe + 1 : -1, Ye = P && pe > 0 ? pe - 1 : -1, ct = (c) => {
|
|
11608
11625
|
const f = {};
|
|
11609
|
-
for (const
|
|
11610
|
-
if (
|
|
11611
|
-
if (
|
|
11612
|
-
if (
|
|
11613
|
-
const A = fe[
|
|
11614
|
-
|
|
11626
|
+
for (const h of c.fields)
|
|
11627
|
+
if (h.isCustom) {
|
|
11628
|
+
if (h.customType === "paragraph" || h.customType === "html" || h.customType === "br" || h.customType === "link") continue;
|
|
11629
|
+
if (h.required && h.paramName) {
|
|
11630
|
+
const A = fe[h.paramName], N = G(h.displayText, d) || G(h.label, d) || h.paramName;
|
|
11631
|
+
h.customType === "checkbox" || h.customType === "link_checkbox" ? A !== "true" && (f[h.paramName] = d("validation.fieldRequired", { field: N })) : (!A || A.trim() === "") && (f[h.paramName] = d("validation.fieldRequired", { field: N }));
|
|
11615
11632
|
}
|
|
11616
|
-
} else if (
|
|
11617
|
-
const A =
|
|
11633
|
+
} else if (h.name) {
|
|
11634
|
+
const A = h.name;
|
|
11618
11635
|
if (B.includes(A) && ut(Y[A])) {
|
|
11619
|
-
const N = lt[A], w = G(
|
|
11636
|
+
const N = lt[A], w = G(h.displayText, d) || (N != null && N.translationKey ? d(`fields.${N.translationKey}`) : void 0) || (N == null ? void 0 : N.label) || A;
|
|
11620
11637
|
f[A] = d("validation.fieldRequired", { field: w });
|
|
11621
11638
|
}
|
|
11622
11639
|
}
|
|
@@ -11691,9 +11708,9 @@ const xa = {
|
|
|
11691
11708
|
}
|
|
11692
11709
|
for (const [N, w] of Object.entries(X))
|
|
11693
11710
|
c[N] === void 0 && !ut(w) && (c[N] = w);
|
|
11694
|
-
const
|
|
11711
|
+
const h = new Set(f.map((N) => N.paramName));
|
|
11695
11712
|
for (const [N, w] of Object.entries(ye))
|
|
11696
|
-
!
|
|
11713
|
+
!h.has(N) && w && f.push({ paramName: N, value: w });
|
|
11697
11714
|
f.length > 0 && (c.applicantAdditionalDatas = f);
|
|
11698
11715
|
const A = await p(c);
|
|
11699
11716
|
a(A.applicantId);
|
|
@@ -11706,16 +11723,16 @@ const xa = {
|
|
|
11706
11723
|
c.preventDefault();
|
|
11707
11724
|
for (const f of B)
|
|
11708
11725
|
if (ut(Y[f])) {
|
|
11709
|
-
const
|
|
11726
|
+
const h = lt[f], A = (h != null && h.translationKey ? d(`fields.${h.translationKey}`) : void 0) || (h == null ? void 0 : h.label) || f;
|
|
11710
11727
|
de(d("validation.fieldRequired", { field: A }));
|
|
11711
11728
|
return;
|
|
11712
11729
|
}
|
|
11713
11730
|
await He();
|
|
11714
|
-
}, Je = (c, f,
|
|
11731
|
+
}, Je = (c, f, h, A, N) => {
|
|
11715
11732
|
var Dt;
|
|
11716
11733
|
const w = lt[c];
|
|
11717
11734
|
if (!w) return null;
|
|
11718
|
-
const ae = B.includes(c), se = E[c], we = G(
|
|
11735
|
+
const ae = B.includes(c), se = E[c], we = G(h, d) || (w.translationKey ? d(`fields.${w.translationKey}`) : void 0) || w.label, ke = c in ce, he = f ?? c, Ve = { required: ae }, $e = N ? N !== "placeholder" : T, et = $e ? we : void 0;
|
|
11719
11736
|
switch (w.type) {
|
|
11720
11737
|
case "select":
|
|
11721
11738
|
if (c === "country" || c === "nationality" || c === "taxCountry" || c === "countryOfBirth" || c === "mobileCountryCode") {
|
|
@@ -11732,7 +11749,7 @@ const xa = {
|
|
|
11732
11749
|
readOnly: ke,
|
|
11733
11750
|
error: se
|
|
11734
11751
|
},
|
|
11735
|
-
|
|
11752
|
+
he
|
|
11736
11753
|
);
|
|
11737
11754
|
}
|
|
11738
11755
|
if (c === "salutation")
|
|
@@ -11752,7 +11769,7 @@ const xa = {
|
|
|
11752
11769
|
readOnly: ke,
|
|
11753
11770
|
error: se
|
|
11754
11771
|
},
|
|
11755
|
-
|
|
11772
|
+
he
|
|
11756
11773
|
);
|
|
11757
11774
|
if (c === "defaultLanguage") {
|
|
11758
11775
|
const Le = o != null && o.allowedLanguages && o.allowedLanguages.length > 0 ? jt.filter((nt) => o.allowedLanguages.includes(nt.value)) : jt;
|
|
@@ -11767,7 +11784,7 @@ const xa = {
|
|
|
11767
11784
|
readOnly: ke,
|
|
11768
11785
|
error: se
|
|
11769
11786
|
},
|
|
11770
|
-
|
|
11787
|
+
he
|
|
11771
11788
|
);
|
|
11772
11789
|
}
|
|
11773
11790
|
return null;
|
|
@@ -11786,7 +11803,7 @@ const xa = {
|
|
|
11786
11803
|
disabled: b,
|
|
11787
11804
|
readOnly: ke
|
|
11788
11805
|
},
|
|
11789
|
-
|
|
11806
|
+
he
|
|
11790
11807
|
);
|
|
11791
11808
|
}
|
|
11792
11809
|
return null;
|
|
@@ -11803,7 +11820,7 @@ const xa = {
|
|
|
11803
11820
|
readOnly: ke,
|
|
11804
11821
|
error: se
|
|
11805
11822
|
},
|
|
11806
|
-
|
|
11823
|
+
he
|
|
11807
11824
|
);
|
|
11808
11825
|
case "email":
|
|
11809
11826
|
return /* @__PURE__ */ i(
|
|
@@ -11818,7 +11835,7 @@ const xa = {
|
|
|
11818
11835
|
readOnly: ke,
|
|
11819
11836
|
error: se
|
|
11820
11837
|
},
|
|
11821
|
-
|
|
11838
|
+
he
|
|
11822
11839
|
);
|
|
11823
11840
|
case "tel":
|
|
11824
11841
|
return /* @__PURE__ */ i(
|
|
@@ -11833,7 +11850,7 @@ const xa = {
|
|
|
11833
11850
|
readOnly: ke,
|
|
11834
11851
|
error: se
|
|
11835
11852
|
},
|
|
11836
|
-
|
|
11853
|
+
he
|
|
11837
11854
|
);
|
|
11838
11855
|
default:
|
|
11839
11856
|
return /* @__PURE__ */ i(
|
|
@@ -11848,11 +11865,11 @@ const xa = {
|
|
|
11848
11865
|
readOnly: ke,
|
|
11849
11866
|
error: se
|
|
11850
11867
|
},
|
|
11851
|
-
|
|
11868
|
+
he
|
|
11852
11869
|
);
|
|
11853
11870
|
}
|
|
11854
11871
|
}, k = (c, f) => {
|
|
11855
|
-
const
|
|
11872
|
+
const h = c.labelMode ? c.labelMode !== "placeholder" : T;
|
|
11856
11873
|
if (c.customType === "paragraph") {
|
|
11857
11874
|
const w = G(c.displayText, d) || G(c.label, d) || "";
|
|
11858
11875
|
return /* @__PURE__ */ i(
|
|
@@ -11994,7 +12011,7 @@ const xa = {
|
|
|
11994
12011
|
if (c.customType === "group_checkbox") {
|
|
11995
12012
|
const w = (fe[c.paramName] || "").split(",").filter(Boolean);
|
|
11996
12013
|
return /* @__PURE__ */ s("div", { className: "flex flex-col gap-1.5", children: [
|
|
11997
|
-
|
|
12014
|
+
h && /* @__PURE__ */ s(
|
|
11998
12015
|
"div",
|
|
11999
12016
|
{
|
|
12000
12017
|
className: "text-sm font-medium",
|
|
@@ -12010,7 +12027,7 @@ const xa = {
|
|
|
12010
12027
|
if (c.singleSelect)
|
|
12011
12028
|
le(c.paramName, se ? "" : ae.value);
|
|
12012
12029
|
else {
|
|
12013
|
-
const ke = se ? w.filter((
|
|
12030
|
+
const ke = se ? w.filter((he) => he !== ae.value) : [...w, ae.value];
|
|
12014
12031
|
le(c.paramName, ke.join(","));
|
|
12015
12032
|
}
|
|
12016
12033
|
};
|
|
@@ -12039,7 +12056,7 @@ const xa = {
|
|
|
12039
12056
|
] }, `custom-${f}`);
|
|
12040
12057
|
}
|
|
12041
12058
|
return c.customType === "radio_group" ? /* @__PURE__ */ s("div", { className: "flex flex-col gap-1.5", children: [
|
|
12042
|
-
|
|
12059
|
+
h && /* @__PURE__ */ s(
|
|
12043
12060
|
"div",
|
|
12044
12061
|
{
|
|
12045
12062
|
className: "text-sm font-medium",
|
|
@@ -12086,8 +12103,8 @@ const xa = {
|
|
|
12086
12103
|
Ce,
|
|
12087
12104
|
{
|
|
12088
12105
|
type: "text",
|
|
12089
|
-
label:
|
|
12090
|
-
placeholder:
|
|
12106
|
+
label: h ? `${N}${c.required ? " *" : ""}` : void 0,
|
|
12107
|
+
placeholder: h ? void 0 : N,
|
|
12091
12108
|
value: fe[c.paramName] || "",
|
|
12092
12109
|
onChange: (w) => le(c.paramName, w.target.value),
|
|
12093
12110
|
required: c.required,
|
|
@@ -12096,21 +12113,21 @@ const xa = {
|
|
|
12096
12113
|
`custom-${f}`
|
|
12097
12114
|
);
|
|
12098
12115
|
}, j = (c, f) => {
|
|
12099
|
-
const
|
|
12116
|
+
const h = ze(c);
|
|
12100
12117
|
return /* @__PURE__ */ s("div", { className: "space-y-4", children: [
|
|
12101
12118
|
c.conditionalOn && /* @__PURE__ */ i(Gt, { helpText: c.conditionalHelpText, children: /* @__PURE__ */ s(
|
|
12102
12119
|
"div",
|
|
12103
12120
|
{
|
|
12104
12121
|
className: "metakyc-option-label",
|
|
12105
12122
|
role: "checkbox",
|
|
12106
|
-
"aria-checked":
|
|
12107
|
-
onClick: () => le(c.conditionalOn,
|
|
12123
|
+
"aria-checked": h,
|
|
12124
|
+
onClick: () => le(c.conditionalOn, h ? "false" : "true"),
|
|
12108
12125
|
style: { display: "flex", alignItems: "center", gap: "10px", cursor: "pointer", margin: 0, padding: 0, userSelect: "none" },
|
|
12109
12126
|
children: [
|
|
12110
12127
|
/* @__PURE__ */ i(
|
|
12111
12128
|
We,
|
|
12112
12129
|
{
|
|
12113
|
-
checked:
|
|
12130
|
+
checked: h,
|
|
12114
12131
|
onChange: (A) => le(c.conditionalOn, A ? "true" : "false")
|
|
12115
12132
|
}
|
|
12116
12133
|
),
|
|
@@ -12125,7 +12142,7 @@ const xa = {
|
|
|
12125
12142
|
]
|
|
12126
12143
|
}
|
|
12127
12144
|
) }),
|
|
12128
|
-
|
|
12145
|
+
h && /* @__PURE__ */ i("div", { className: "metakyc-form-grid", children: c.fields.map((A, N) => {
|
|
12129
12146
|
const w = Math.min(4, Math.max(1, Number(A.colSpan) || 4)), ae = A.isCustom ? `custom-${N}-${A.paramName}` : `builtin-${A.name}-${N}`;
|
|
12130
12147
|
return /* @__PURE__ */ i("div", { style: { gridColumn: `span ${w} / span ${w}` }, children: /* @__PURE__ */ i(Gt, { helpText: A.helpText, children: A.isCustom ? k(A, N) : Je(A.name, ae, A.displayText, A.countriesType, A.labelMode) }) }, ae);
|
|
12131
12148
|
}) })
|
|
@@ -12137,9 +12154,9 @@ const xa = {
|
|
|
12137
12154
|
/* @__PURE__ */ i("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)", fontSize: "0.875rem" }, children: d("common.loadingForm") })
|
|
12138
12155
|
] }) }) });
|
|
12139
12156
|
if (P) {
|
|
12140
|
-
const c = P[pe] ?? P[0], f = Ye === -1,
|
|
12157
|
+
const c = P[pe] ?? P[0], f = Ye === -1, h = Ae === -1, A = P.length, N = ze(c), w = rt(c), ae = Object.values(E), se = !N && !!c.conditionalOn && c.conditionalMode === "block", we = D || m || se || w;
|
|
12141
12158
|
let ke;
|
|
12142
|
-
return se || w ? ke = d("common.blocked") :
|
|
12159
|
+
return se || w ? ke = d("common.blocked") : h ? ke = c.conditionalOn && !N ? d("common.skipAndSubmit") : d("common.submit") : ke = c.conditionalOn && !N ? d("common.skip") : d("common.next"), /* @__PURE__ */ i("div", { className: "metakyc-sdk", children: /* @__PURE__ */ s(ne, { children: [
|
|
12143
12160
|
/* @__PURE__ */ i(Te, { children: /* @__PURE__ */ i(kt, { title: (o == null ? void 0 : o.title) || d("createApplicant.title") }) }),
|
|
12144
12161
|
/* @__PURE__ */ s(oe, { children: [
|
|
12145
12162
|
(c.title || c.subtitle || c.description) && /* @__PURE__ */ s("div", { className: "mb-4", children: [
|
|
@@ -12169,7 +12186,7 @@ const xa = {
|
|
|
12169
12186
|
)
|
|
12170
12187
|
] }),
|
|
12171
12188
|
A > 1 && /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem", marginBottom: "1rem" }, children: [
|
|
12172
|
-
P.map((
|
|
12189
|
+
P.map((he, Ve) => /* @__PURE__ */ i(
|
|
12173
12190
|
"div",
|
|
12174
12191
|
{
|
|
12175
12192
|
style: {
|
|
@@ -12196,7 +12213,7 @@ const xa = {
|
|
|
12196
12213
|
" ",
|
|
12197
12214
|
xe
|
|
12198
12215
|
] }),
|
|
12199
|
-
ae.map((
|
|
12216
|
+
ae.map((he, Ve) => /* @__PURE__ */ i("p", { className: "text-sm", style: { color: "var(--metakyc-danger, #ef4444)" }, children: he }, Ve))
|
|
12200
12217
|
] }),
|
|
12201
12218
|
j(c)
|
|
12202
12219
|
] }),
|
|
@@ -12222,7 +12239,7 @@ const xa = {
|
|
|
12222
12239
|
type: "button",
|
|
12223
12240
|
isLoading: D || m,
|
|
12224
12241
|
disabled: we,
|
|
12225
|
-
onClick:
|
|
12242
|
+
onClick: h ? He : at,
|
|
12226
12243
|
children: ke
|
|
12227
12244
|
}
|
|
12228
12245
|
)
|
|
@@ -12251,19 +12268,19 @@ const xa = {
|
|
|
12251
12268
|
function Rt(e) {
|
|
12252
12269
|
return e == null || e === "" || Array.isArray(e) && e.length === 0;
|
|
12253
12270
|
}
|
|
12254
|
-
const
|
|
12271
|
+
const Wa = ({
|
|
12255
12272
|
workflowKey: e,
|
|
12256
12273
|
externalRefId: t,
|
|
12257
12274
|
onSuccess: a,
|
|
12258
12275
|
onCancel: r
|
|
12259
12276
|
}) => {
|
|
12260
12277
|
var Je, k, j, $, K, te;
|
|
12261
|
-
const { config: n, baseInformationService: l, currentTheme: o } = Oe(), { createCompanyApplicant: p, isLoading: m } =
|
|
12278
|
+
const { config: n, baseInformationService: l, currentTheme: o } = Oe(), { createCompanyApplicant: p, isLoading: m } = oi(), { t: d } = Ie(), y = e || ((Je = n.applicantForm) == null ? void 0 : Je.workflowKey);
|
|
12262
12279
|
if (!y)
|
|
12263
12280
|
throw new Error(
|
|
12264
12281
|
"workflowKey is required. Provide it either as a prop to CreateCompanyApplicantForm or set it in config.applicantForm.workflowKey"
|
|
12265
12282
|
);
|
|
12266
|
-
const
|
|
12283
|
+
const v = t || ((k = n.applicantForm) == null ? void 0 : k.externalRefId) || "", z = ((j = n.applicantForm) == null ? void 0 : j.email) || "", L = (($ = n.applicantForm) == null ? void 0 : $.initialValues) || {}, q = (((K = n.applicantForm) == null ? void 0 : K.fieldLabelMode) || (o == null ? void 0 : o.fieldLabelMode) || "label") !== "placeholder", T = Fe(
|
|
12267
12284
|
() => o != null && o.companyFormPages && o.companyFormPages.length > 0 ? o.companyFormPages : null,
|
|
12268
12285
|
[o == null ? void 0 : o.companyFormPages]
|
|
12269
12286
|
), P = Fe(() => {
|
|
@@ -12310,7 +12327,7 @@ const Ua = ({
|
|
|
12310
12327
|
try {
|
|
12311
12328
|
const u = await Promise.all(
|
|
12312
12329
|
g.map(async (c) => {
|
|
12313
|
-
const f = c != null ? String(c) : "all",
|
|
12330
|
+
const f = c != null ? String(c) : "all", h = await l.getCountries("", n.locale || "en", c), A = /* @__PURE__ */ new Set(), N = h.map((w) => ({ value: w.abbreviation3 || w.abbreviation, label: w.name })).filter((w) => !w.value || A.has(w.value) ? !1 : (A.add(w.value), !0));
|
|
12314
12331
|
return V.current.add(f), R.current.delete(f), [f, N];
|
|
12315
12332
|
})
|
|
12316
12333
|
);
|
|
@@ -12369,7 +12386,7 @@ const Ua = ({
|
|
|
12369
12386
|
postalCode: "",
|
|
12370
12387
|
addressCountry: "",
|
|
12371
12388
|
lei: "",
|
|
12372
|
-
externalRefId:
|
|
12389
|
+
externalRefId: v,
|
|
12373
12390
|
...W
|
|
12374
12391
|
}), [Y, je] = S({}), [ye, fe] = S(0), [Se, pe] = S({}), [M, E] = S(null), [F, xe] = S(!1), de = (g, I) => ce((x) => ({ ...x, [g]: I })), D = (g, I) => je((x) => ({ ...x, [g]: I })), _ = (g) => !g.conditionalOn || Y[g.conditionalOn] === "true", ge = (g) => {
|
|
12375
12392
|
var I;
|
|
@@ -12431,35 +12448,35 @@ const Ua = ({
|
|
|
12431
12448
|
externalRefId: ((g = X.externalRefId) == null ? void 0 : g.trim()) || void 0
|
|
12432
12449
|
}, x = T ? T.filter((f) => _(f)).flatMap((f) => f.fields).filter((f) => !f.isCustom && f.name).map((f) => f.name) : B;
|
|
12433
12450
|
for (const f of x) {
|
|
12434
|
-
const
|
|
12435
|
-
if (!Rt(
|
|
12451
|
+
const h = X[f];
|
|
12452
|
+
if (!Rt(h))
|
|
12436
12453
|
switch (f) {
|
|
12437
12454
|
case "companyName":
|
|
12438
|
-
I.companyName =
|
|
12455
|
+
I.companyName = h;
|
|
12439
12456
|
break;
|
|
12440
12457
|
case "email":
|
|
12441
|
-
I.companyEmail =
|
|
12458
|
+
I.companyEmail = h;
|
|
12442
12459
|
break;
|
|
12443
12460
|
case "phone":
|
|
12444
|
-
I.companyPhone =
|
|
12461
|
+
I.companyPhone = h;
|
|
12445
12462
|
break;
|
|
12446
12463
|
case "registrationNumber":
|
|
12447
|
-
I.companyRegistrationNumber =
|
|
12464
|
+
I.companyRegistrationNumber = h;
|
|
12448
12465
|
break;
|
|
12449
12466
|
case "countryResidence":
|
|
12450
|
-
I.companyCountry =
|
|
12467
|
+
I.companyCountry = h;
|
|
12451
12468
|
break;
|
|
12452
12469
|
case "city":
|
|
12453
|
-
I.companyCity =
|
|
12470
|
+
I.companyCity = h;
|
|
12454
12471
|
break;
|
|
12455
12472
|
case "street":
|
|
12456
|
-
I.companyStreet =
|
|
12473
|
+
I.companyStreet = h;
|
|
12457
12474
|
break;
|
|
12458
12475
|
case "postalCode":
|
|
12459
|
-
I.companyZip =
|
|
12476
|
+
I.companyZip = h;
|
|
12460
12477
|
break;
|
|
12461
12478
|
default:
|
|
12462
|
-
I[f] =
|
|
12479
|
+
I[f] = h;
|
|
12463
12480
|
break;
|
|
12464
12481
|
}
|
|
12465
12482
|
}
|
|
@@ -12467,14 +12484,14 @@ const Ua = ({
|
|
|
12467
12484
|
if (T) {
|
|
12468
12485
|
for (const f of T)
|
|
12469
12486
|
if (_(f))
|
|
12470
|
-
for (const
|
|
12471
|
-
if (!
|
|
12472
|
-
const A = Y[
|
|
12487
|
+
for (const h of f.fields) {
|
|
12488
|
+
if (!h.isCustom || !h.paramName || h.customType === "paragraph" || h.customType === "html" || h.customType === "br" || h.customType === "link") continue;
|
|
12489
|
+
const A = Y[h.paramName] ?? "";
|
|
12473
12490
|
let N;
|
|
12474
|
-
if (
|
|
12491
|
+
if (h.customType === "checkbox" || h.customType === "link_checkbox")
|
|
12475
12492
|
N = A === "true" ? "yes" : "no";
|
|
12476
|
-
else if (N = A, !N && !
|
|
12477
|
-
u.push({ paramName:
|
|
12493
|
+
else if (N = A, !N && !h.required) continue;
|
|
12494
|
+
u.push({ paramName: h.paramName, value: N });
|
|
12478
12495
|
}
|
|
12479
12496
|
}
|
|
12480
12497
|
u.length > 0 && (I.applicantAdditionalDatas = u);
|
|
@@ -12497,7 +12514,7 @@ const Ua = ({
|
|
|
12497
12514
|
}, at = (g, I, x, u, c) => {
|
|
12498
12515
|
const f = mt[g];
|
|
12499
12516
|
if (!f) return null;
|
|
12500
|
-
const
|
|
12517
|
+
const h = P.includes(g), A = Se[g], N = G(x, d) || (f.translationKey ? d(`fields.${f.translationKey}`) : void 0) || f.label, w = g in W, ae = I ?? g, se = c ? c !== "placeholder" : q, we = se ? N : void 0;
|
|
12501
12518
|
switch (f.type) {
|
|
12502
12519
|
case "select":
|
|
12503
12520
|
if (g === "countryResidence" || g === "addressCountry") {
|
|
@@ -12505,10 +12522,10 @@ const Ua = ({
|
|
|
12505
12522
|
return /* @__PURE__ */ i(
|
|
12506
12523
|
Xe,
|
|
12507
12524
|
{
|
|
12508
|
-
required:
|
|
12525
|
+
required: h,
|
|
12509
12526
|
label: we,
|
|
12510
12527
|
value: X[g] || "",
|
|
12511
|
-
onChange: (
|
|
12528
|
+
onChange: (he) => de(g, he),
|
|
12512
12529
|
options: [{ value: "", label: se ? d("placeholders.selectCountry") : N }, ...ke],
|
|
12513
12530
|
disabled: re,
|
|
12514
12531
|
readOnly: w,
|
|
@@ -12522,7 +12539,7 @@ const Ua = ({
|
|
|
12522
12539
|
return /* @__PURE__ */ i(
|
|
12523
12540
|
Ce,
|
|
12524
12541
|
{
|
|
12525
|
-
required:
|
|
12542
|
+
required: h,
|
|
12526
12543
|
type: "date",
|
|
12527
12544
|
label: we,
|
|
12528
12545
|
placeholder: se ? void 0 : N,
|
|
@@ -12537,7 +12554,7 @@ const Ua = ({
|
|
|
12537
12554
|
return /* @__PURE__ */ i(
|
|
12538
12555
|
Ce,
|
|
12539
12556
|
{
|
|
12540
|
-
required:
|
|
12557
|
+
required: h,
|
|
12541
12558
|
type: "email",
|
|
12542
12559
|
label: we,
|
|
12543
12560
|
placeholder: se ? void 0 : N,
|
|
@@ -12552,7 +12569,7 @@ const Ua = ({
|
|
|
12552
12569
|
return /* @__PURE__ */ i(
|
|
12553
12570
|
Ce,
|
|
12554
12571
|
{
|
|
12555
|
-
required:
|
|
12572
|
+
required: h,
|
|
12556
12573
|
type: "tel",
|
|
12557
12574
|
label: we,
|
|
12558
12575
|
placeholder: se ? void 0 : N,
|
|
@@ -12567,7 +12584,7 @@ const Ua = ({
|
|
|
12567
12584
|
return /* @__PURE__ */ i(
|
|
12568
12585
|
Ce,
|
|
12569
12586
|
{
|
|
12570
|
-
required:
|
|
12587
|
+
required: h,
|
|
12571
12588
|
type: "text",
|
|
12572
12589
|
label: we,
|
|
12573
12590
|
placeholder: se ? void 0 : N,
|
|
@@ -12621,7 +12638,7 @@ const Ua = ({
|
|
|
12621
12638
|
We,
|
|
12622
12639
|
{
|
|
12623
12640
|
checked: f,
|
|
12624
|
-
onChange: (
|
|
12641
|
+
onChange: (h) => D(g.paramName, h ? "true" : "false")
|
|
12625
12642
|
}
|
|
12626
12643
|
),
|
|
12627
12644
|
/* @__PURE__ */ s("span", { style: { fontSize: "14px", color: "var(--metakyc-text-primary, #111827)" }, children: [
|
|
@@ -12681,7 +12698,7 @@ const Ua = ({
|
|
|
12681
12698
|
/* @__PURE__ */ i("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)", fontSize: "0.875rem" }, children: d("common.loadingForm") })
|
|
12682
12699
|
] }) }) });
|
|
12683
12700
|
if (T) {
|
|
12684
|
-
const g = T[ye] ?? T[0], I = ze === -1, x = le === -1, u = T.length, c = _(g), f = ge(g),
|
|
12701
|
+
const g = T[ye] ?? T[0], I = ze === -1, x = le === -1, u = T.length, c = _(g), f = ge(g), h = Object.values(Se), A = !c && !!g.conditionalOn && g.conditionalMode === "block", N = F || m || A || f;
|
|
12685
12702
|
let w;
|
|
12686
12703
|
return A || f ? w = d("common.blocked") : x ? w = g.conditionalOn && !c ? d("common.skipAndSubmit") : d("common.submit") : w = g.conditionalOn && !c ? d("common.skip") : d("common.next"), /* @__PURE__ */ i("div", { className: "metakyc-sdk", children: /* @__PURE__ */ s(ne, { children: [
|
|
12687
12704
|
/* @__PURE__ */ i(Te, { children: /* @__PURE__ */ i(kt, { title: (o == null ? void 0 : o.title) || d("createCompany.title") }) }),
|
|
@@ -12690,7 +12707,7 @@ const Ua = ({
|
|
|
12690
12707
|
g.title && /* @__PURE__ */ i("h3", { className: "font-semibold text-base", style: { color: "var(--metakyc-text-primary, #111827)" }, children: G(g.title, d) }),
|
|
12691
12708
|
g.subtitle && /* @__PURE__ */ i("p", { className: "text-sm mt-0.5", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: G(g.subtitle, d) })
|
|
12692
12709
|
] }),
|
|
12693
|
-
(M ||
|
|
12710
|
+
(M || h.length > 0) && /* @__PURE__ */ s("div", { className: "mb-4 p-3 rounded-lg", style: {
|
|
12694
12711
|
backgroundColor: "var(--metakyc-danger-bg, color-mix(in srgb, var(--metakyc-danger, #ef4444) 10%, transparent))",
|
|
12695
12712
|
border: "1px solid color-mix(in srgb, var(--metakyc-danger, #ef4444) 30%, transparent)"
|
|
12696
12713
|
}, children: [
|
|
@@ -12699,7 +12716,7 @@ const Ua = ({
|
|
|
12699
12716
|
" ",
|
|
12700
12717
|
M
|
|
12701
12718
|
] }),
|
|
12702
|
-
|
|
12719
|
+
h.map((ae, se) => /* @__PURE__ */ i("p", { className: "text-sm", style: { color: "var(--metakyc-danger, #ef4444)" }, children: ae }, se))
|
|
12703
12720
|
] }),
|
|
12704
12721
|
u > 1 && /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem", marginBottom: "1rem" }, children: [
|
|
12705
12722
|
T.map((ae, se) => /* @__PURE__ */ i(
|
|
@@ -12760,7 +12777,7 @@ const Ua = ({
|
|
|
12760
12777
|
/* @__PURE__ */ i(Z, { type: "submit", isLoading: F || m, children: d("createCompany.registerCompany") })
|
|
12761
12778
|
] })
|
|
12762
12779
|
] }) }) });
|
|
12763
|
-
},
|
|
12780
|
+
}, Ka = ({
|
|
12764
12781
|
applicantId: e,
|
|
12765
12782
|
onComplete: t,
|
|
12766
12783
|
onError: a,
|
|
@@ -12773,7 +12790,7 @@ const Ua = ({
|
|
|
12773
12790
|
workflowKey: m,
|
|
12774
12791
|
nextWorkflowKey: d,
|
|
12775
12792
|
hasWorkflowChanged: y,
|
|
12776
|
-
isLoading:
|
|
12793
|
+
isLoading: v,
|
|
12777
12794
|
error: z,
|
|
12778
12795
|
moveBack: L,
|
|
12779
12796
|
refreshProgress: C
|
|
@@ -12784,7 +12801,7 @@ const Ua = ({
|
|
|
12784
12801
|
l != null && l.workflowResult && t && t(l.workflowResult);
|
|
12785
12802
|
}, [l == null ? void 0 : l.workflowResult, t]), Ne.useEffect(() => {
|
|
12786
12803
|
y && T(!1);
|
|
12787
|
-
}, [y]),
|
|
12804
|
+
}, [y]), v || !l)
|
|
12788
12805
|
return /* @__PURE__ */ i("div", { className: `metakyc-sdk ${r || ""}`, children: /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ s(oe, { children: [
|
|
12789
12806
|
/* @__PURE__ */ i(Be, { className: "my-8" }),
|
|
12790
12807
|
/* @__PURE__ */ i("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: n("workflow.loadingWorkflow") })
|
|
@@ -12877,7 +12894,7 @@ const Ua = ({
|
|
|
12877
12894
|
}, children: [
|
|
12878
12895
|
/* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "flex-start", justifyContent: "space-between", marginBottom: "16px", gap: "8px", flexWrap: "wrap" }, children: [
|
|
12879
12896
|
/* @__PURE__ */ i(kt, {}),
|
|
12880
|
-
/* @__PURE__ */ i(
|
|
12897
|
+
/* @__PURE__ */ i(si, { variant: l.status === 1 ? "info" : "success", children: n("common.stepXofY", { current: re, total: b }) })
|
|
12881
12898
|
] }),
|
|
12882
12899
|
/* @__PURE__ */ s("div", { style: { position: "relative", height: "4px", borderRadius: "999px", overflow: "hidden", marginBottom: "16px" }, children: [
|
|
12883
12900
|
/* @__PURE__ */ i("div", { style: { position: "absolute", inset: 0, backgroundColor: "var(--metakyc-border, #e5e7eb)", opacity: 0.3 } }),
|
|
@@ -12918,7 +12935,7 @@ const Ua = ({
|
|
|
12918
12935
|
case me.Overview:
|
|
12919
12936
|
return /* @__PURE__ */ i(na, { ...b });
|
|
12920
12937
|
case me.IdentitySdk:
|
|
12921
|
-
return /* @__PURE__ */ i(
|
|
12938
|
+
return /* @__PURE__ */ i(ha, { ...b });
|
|
12922
12939
|
case me.RiskScoring:
|
|
12923
12940
|
return /* @__PURE__ */ i(ua, { ...b });
|
|
12924
12941
|
case me.AdditionalData:
|
|
@@ -12982,7 +12999,7 @@ const Ua = ({
|
|
|
12982
12999
|
gap: "0"
|
|
12983
13000
|
},
|
|
12984
13001
|
children: e.map((o, p) => {
|
|
12985
|
-
const m = p < t, d = p === t, y = m || d,
|
|
13002
|
+
const m = p < t, d = p === t, y = m || d, v = o.displayName || o.name || a(o.action) || `Step ${p + 1}`;
|
|
12986
13003
|
return /* @__PURE__ */ s(Ne.Fragment, { children: [
|
|
12987
13004
|
/* @__PURE__ */ s(
|
|
12988
13005
|
"div",
|
|
@@ -13022,7 +13039,7 @@ const Ua = ({
|
|
|
13022
13039
|
fontWeight: d ? 600 : 400,
|
|
13023
13040
|
color: d ? "var(--metakyc-text-primary, #111827)" : m ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-text-muted, #9ca3af)",
|
|
13024
13041
|
transition: "color 0.2s ease"
|
|
13025
|
-
}, children:
|
|
13042
|
+
}, children: v })
|
|
13026
13043
|
]
|
|
13027
13044
|
}
|
|
13028
13045
|
),
|
|
@@ -13042,7 +13059,7 @@ const Ua = ({
|
|
|
13042
13059
|
);
|
|
13043
13060
|
}
|
|
13044
13061
|
);
|
|
13045
|
-
function
|
|
13062
|
+
function Ya(e) {
|
|
13046
13063
|
return Ze.object({
|
|
13047
13064
|
questionResults: Ze.any()
|
|
13048
13065
|
}).passthrough();
|
|
@@ -13069,37 +13086,37 @@ function Sa(e) {
|
|
|
13069
13086
|
}
|
|
13070
13087
|
return t;
|
|
13071
13088
|
}
|
|
13072
|
-
function
|
|
13089
|
+
function Ha(e) {
|
|
13073
13090
|
const t = {};
|
|
13074
13091
|
return e.uploadDocumentFiles.forEach((a) => {
|
|
13075
13092
|
const r = `file_${a.id}`;
|
|
13076
13093
|
t[r] = Sa(a);
|
|
13077
13094
|
}), Ze.object(t);
|
|
13078
13095
|
}
|
|
13079
|
-
function
|
|
13096
|
+
function $a(e) {
|
|
13080
13097
|
return Ze.any();
|
|
13081
13098
|
}
|
|
13082
13099
|
function Ca(e) {
|
|
13083
13100
|
return Ze.string().min(1, "This question is required");
|
|
13084
13101
|
}
|
|
13085
|
-
function
|
|
13102
|
+
function _a(e) {
|
|
13086
13103
|
const t = {};
|
|
13087
13104
|
return e.appropriatenessQuestions.forEach((a) => {
|
|
13088
13105
|
const r = `question_${a.id}`;
|
|
13089
13106
|
t[r] = Ca();
|
|
13090
13107
|
}), Ze.object(t);
|
|
13091
13108
|
}
|
|
13092
|
-
const
|
|
13109
|
+
const Ga = Ze.any();
|
|
13093
13110
|
export {
|
|
13094
13111
|
jt as ALLOWED_LANGUAGES,
|
|
13095
13112
|
fi as ApplicantProgressOnHoldReason,
|
|
13096
13113
|
Ue as ApplicantProgressStatus,
|
|
13097
13114
|
Ei as ApplicantService,
|
|
13098
|
-
|
|
13115
|
+
hi as ApplicantStatus,
|
|
13099
13116
|
Si as AppropriatenessQuestionType,
|
|
13100
13117
|
Mi as AppropriatenessTestService,
|
|
13101
13118
|
ya as AppropriatenessTestStep,
|
|
13102
|
-
|
|
13119
|
+
si as Badge,
|
|
13103
13120
|
Vi as BaseInformationService,
|
|
13104
13121
|
Z as Button,
|
|
13105
13122
|
mt as COMPANY_FIELD_METADATA,
|
|
@@ -13109,8 +13126,8 @@ export {
|
|
|
13109
13126
|
Te as CardHeader,
|
|
13110
13127
|
We as Checkbox,
|
|
13111
13128
|
it as CountriesType,
|
|
13112
|
-
|
|
13113
|
-
|
|
13129
|
+
Ua as CreateApplicantForm,
|
|
13130
|
+
Wa as CreateCompanyApplicantForm,
|
|
13114
13131
|
Ni as CriteriaBuiltInType,
|
|
13115
13132
|
Ri as DEFAULT_COMPANY_VISIBLE_FIELDS,
|
|
13116
13133
|
Ii as DEFAULT_VISIBLE_FIELDS,
|
|
@@ -13127,20 +13144,21 @@ export {
|
|
|
13127
13144
|
tt as IdentityProviderManager,
|
|
13128
13145
|
Oi as IdentityService,
|
|
13129
13146
|
qe as IdentityVerificationProvider,
|
|
13130
|
-
|
|
13147
|
+
ha as IdentityVerificationStep,
|
|
13131
13148
|
Ce as Input,
|
|
13132
13149
|
Bi as InvestorCategorizationService,
|
|
13133
13150
|
ga as InvestorCategorizationStep,
|
|
13134
13151
|
Ee as InvestorCategorizationType,
|
|
13135
13152
|
Ti as InvestorCategoryType,
|
|
13136
|
-
|
|
13137
|
-
|
|
13153
|
+
vi as KycProcessStatus,
|
|
13154
|
+
ei as KycStatus,
|
|
13138
13155
|
_t as KycStatusDisplay,
|
|
13139
|
-
|
|
13156
|
+
Ka as KycWorkflow,
|
|
13140
13157
|
ba as Logo,
|
|
13141
|
-
|
|
13158
|
+
ni as MetaKYCContext,
|
|
13142
13159
|
Ge as MetaKYCError,
|
|
13143
|
-
|
|
13160
|
+
Ma as MetaKYCProvider,
|
|
13161
|
+
Ea as MetaKYCSession,
|
|
13144
13162
|
Ur as MultiSelect,
|
|
13145
13163
|
ir as OnfidoProvider,
|
|
13146
13164
|
ji as OverviewService,
|
|
@@ -13153,7 +13171,7 @@ export {
|
|
|
13153
13171
|
ki as RiskLevel,
|
|
13154
13172
|
Fi as RiskScoringService,
|
|
13155
13173
|
ua as RiskScoringStep,
|
|
13156
|
-
|
|
13174
|
+
ri as SDK_VERSION,
|
|
13157
13175
|
rr as SardinAIProvider,
|
|
13158
13176
|
Xe as SearchableSelect,
|
|
13159
13177
|
Et as Select,
|
|
@@ -13173,8 +13191,8 @@ export {
|
|
|
13173
13191
|
xt as WorkflowResultType,
|
|
13174
13192
|
Qi as WorkflowState,
|
|
13175
13193
|
me as WorkflowStepAction,
|
|
13176
|
-
|
|
13177
|
-
|
|
13194
|
+
Ga as appropriatenessTestSchema,
|
|
13195
|
+
Ba as clearAllStorage,
|
|
13178
13196
|
Ar as clearApplicantId,
|
|
13179
13197
|
Er as clearWorkflowState,
|
|
13180
13198
|
Me as cn,
|
|
@@ -13184,26 +13202,26 @@ export {
|
|
|
13184
13202
|
Rr as fileToBase64,
|
|
13185
13203
|
Ui as fintechTheme,
|
|
13186
13204
|
Ct as formatFileSize,
|
|
13187
|
-
|
|
13188
|
-
|
|
13189
|
-
|
|
13190
|
-
|
|
13191
|
-
|
|
13205
|
+
_a as generateAppropriatenessSchema,
|
|
13206
|
+
Ya as generateQuestionnaireSchema,
|
|
13207
|
+
$a as generateRiskScoringSchema,
|
|
13208
|
+
Ha as generateUploadDocumentSchema,
|
|
13209
|
+
Oa as getAcceptString,
|
|
13192
13210
|
zr as getApplicantId,
|
|
13193
13211
|
ft as getThemePreset,
|
|
13194
|
-
|
|
13212
|
+
Va as getWorkflowState,
|
|
13195
13213
|
Wi as healthcareTheme,
|
|
13196
|
-
|
|
13197
|
-
|
|
13214
|
+
Pa as isScriptLoaded,
|
|
13215
|
+
ti as loadScript,
|
|
13198
13216
|
Yi as minimalTheme,
|
|
13199
13217
|
Ki as modernTheme,
|
|
13200
|
-
|
|
13218
|
+
Da as removeScript,
|
|
13201
13219
|
G as resolveDisplayText,
|
|
13202
13220
|
Ir as saveApplicantId,
|
|
13203
13221
|
Lr as saveWorkflowState,
|
|
13204
13222
|
Hi as themePresets,
|
|
13205
|
-
|
|
13206
|
-
|
|
13223
|
+
oi as useApplicant,
|
|
13224
|
+
qa as useAppropriatenessTest,
|
|
13207
13225
|
Fr as useIdentityVerification,
|
|
13208
13226
|
Pr as useKycWorkflow,
|
|
13209
13227
|
Oe as useMetaKYC,
|
|
@@ -13212,7 +13230,7 @@ export {
|
|
|
13212
13230
|
Or as useRiskScoring,
|
|
13213
13231
|
Ie as useTranslation,
|
|
13214
13232
|
Mr as useUploadDocument,
|
|
13215
|
-
|
|
13216
|
-
|
|
13233
|
+
ja as validateFileSize,
|
|
13234
|
+
Fa as validateFileType
|
|
13217
13235
|
};
|
|
13218
13236
|
//# sourceMappingURL=index.js.map
|