@vpdev2/metakyc 1.0.45 → 1.0.47
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/config.d.ts +4 -2
- package/dist/client/config.d.ts.map +1 -1
- package/dist/client/http-client.d.ts.map +1 -1
- 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 +324 -304
- 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: {
|
|
@@ -207,7 +207,7 @@ class Li {
|
|
|
207
207
|
}
|
|
208
208
|
}), this.axiosInstance.interceptors.request.use(
|
|
209
209
|
(a) => {
|
|
210
|
-
if (a.headers["Abp-TenantId"] = this.config.tenantId.toString(), this.config.getAccessToken) {
|
|
210
|
+
if (this.config.tenantId != null && (a.headers["Abp-TenantId"] = this.config.tenantId.toString()), this.config.clientId && (a.headers.ClientId = this.config.clientId), this.config.getAccessToken) {
|
|
211
211
|
const r = this.config.getAccessToken();
|
|
212
212
|
r && (a.headers.Authorization = `Bearer ${r}`);
|
|
213
213
|
} else this.config.apiKey && (a.headers.ApiKey = this.config.apiKey, a.headers["X-API-KEY"] = this.config.apiKey);
|
|
@@ -295,6 +295,25 @@ 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 = {
|
|
304
|
+
"Content-Type": "application/json"
|
|
305
|
+
};
|
|
306
|
+
l != null && (p["Abp-TenantId"] = l.toString()), o && (p.ClientId = o);
|
|
307
|
+
const d = (await Xt.post(
|
|
308
|
+
`${a.replace(/\/+$/, "")}/api/SdkSession/CreateToken`,
|
|
309
|
+
{ apiKey: r, secretKey: n },
|
|
310
|
+
{ headers: p }
|
|
311
|
+
)).data;
|
|
312
|
+
if (!d.success)
|
|
313
|
+
throw new Error(d.error || "Failed to create session token.");
|
|
314
|
+
return d.result;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
298
317
|
class Ei {
|
|
299
318
|
constructor(t) {
|
|
300
319
|
this.httpClient = t;
|
|
@@ -1048,7 +1067,7 @@ class _i {
|
|
|
1048
1067
|
}
|
|
1049
1068
|
class Gi {
|
|
1050
1069
|
constructor() {
|
|
1051
|
-
|
|
1070
|
+
ve(this, "listeners", /* @__PURE__ */ new Map());
|
|
1052
1071
|
}
|
|
1053
1072
|
/**
|
|
1054
1073
|
* Subscribe to an event
|
|
@@ -1093,10 +1112,10 @@ class Gi {
|
|
|
1093
1112
|
}
|
|
1094
1113
|
class Qi {
|
|
1095
1114
|
constructor() {
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1115
|
+
ve(this, "events", new Gi());
|
|
1116
|
+
ve(this, "_applicantId", null);
|
|
1117
|
+
ve(this, "_progress", null);
|
|
1118
|
+
ve(this, "_error", null);
|
|
1100
1119
|
}
|
|
1101
1120
|
/**
|
|
1102
1121
|
* Get current applicant ID
|
|
@@ -1233,7 +1252,7 @@ class Qi {
|
|
|
1233
1252
|
}
|
|
1234
1253
|
class Xi {
|
|
1235
1254
|
constructor() {
|
|
1236
|
-
|
|
1255
|
+
ve(this, "handlers", /* @__PURE__ */ new Map());
|
|
1237
1256
|
}
|
|
1238
1257
|
/**
|
|
1239
1258
|
* Register a step handler
|
|
@@ -1274,8 +1293,8 @@ class Xi {
|
|
|
1274
1293
|
}
|
|
1275
1294
|
class Zi {
|
|
1276
1295
|
constructor(t, a, r, n, l, o, p, m) {
|
|
1277
|
-
|
|
1278
|
-
|
|
1296
|
+
ve(this, "state");
|
|
1297
|
+
ve(this, "stepRouter");
|
|
1279
1298
|
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
1299
|
}
|
|
1281
1300
|
/**
|
|
@@ -1416,7 +1435,7 @@ class Zi {
|
|
|
1416
1435
|
return this.stepRouter;
|
|
1417
1436
|
}
|
|
1418
1437
|
}
|
|
1419
|
-
function
|
|
1438
|
+
function ti(e, t) {
|
|
1420
1439
|
return new Promise((a, r) => {
|
|
1421
1440
|
if (t && document.getElementById(t)) {
|
|
1422
1441
|
a();
|
|
@@ -1426,10 +1445,10 @@ function ei(e, t) {
|
|
|
1426
1445
|
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
1446
|
});
|
|
1428
1447
|
}
|
|
1429
|
-
function
|
|
1448
|
+
function Pa(e) {
|
|
1430
1449
|
return !!document.getElementById(e);
|
|
1431
1450
|
}
|
|
1432
|
-
function
|
|
1451
|
+
function Da(e) {
|
|
1433
1452
|
const t = document.getElementById(e);
|
|
1434
1453
|
t && t.remove();
|
|
1435
1454
|
}
|
|
@@ -1471,14 +1490,14 @@ a:hover { color: ${t}; }
|
|
|
1471
1490
|
}
|
|
1472
1491
|
class tr {
|
|
1473
1492
|
constructor(t) {
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1493
|
+
ve(this, "sdk", null);
|
|
1494
|
+
ve(this, "config");
|
|
1495
|
+
ve(this, "completeCallback", null);
|
|
1496
|
+
ve(this, "errorCallback", null);
|
|
1478
1497
|
this.config = t;
|
|
1479
1498
|
}
|
|
1480
1499
|
async loadSDK() {
|
|
1481
|
-
if (!window.snsWebSdk && (await
|
|
1500
|
+
if (!window.snsWebSdk && (await ti(Ji, "sumsub-websdk"), !window.snsWebSdk))
|
|
1482
1501
|
throw new Error("Sumsub Web SDK failed to load from CDN");
|
|
1483
1502
|
}
|
|
1484
1503
|
async initialize(t) {
|
|
@@ -1528,15 +1547,15 @@ class tr {
|
|
|
1528
1547
|
}
|
|
1529
1548
|
class ir {
|
|
1530
1549
|
constructor(t) {
|
|
1531
|
-
|
|
1532
|
-
|
|
1550
|
+
ve(this, "sdk", null);
|
|
1551
|
+
ve(this, "config");
|
|
1533
1552
|
this.config = t;
|
|
1534
1553
|
}
|
|
1535
1554
|
/**
|
|
1536
1555
|
* Load Onfido SDK
|
|
1537
1556
|
*/
|
|
1538
1557
|
async loadSDK() {
|
|
1539
|
-
await
|
|
1558
|
+
await ti(
|
|
1540
1559
|
"https://sdk.onfido.com/v12.0.0/onfido.min.js",
|
|
1541
1560
|
"onfido-sdk"
|
|
1542
1561
|
);
|
|
@@ -1594,9 +1613,9 @@ class ir {
|
|
|
1594
1613
|
}
|
|
1595
1614
|
class rr {
|
|
1596
1615
|
constructor(t) {
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1616
|
+
ve(this, "sardineContext", null);
|
|
1617
|
+
ve(this, "config");
|
|
1618
|
+
ve(this, "sessionKey");
|
|
1600
1619
|
this.config = t, this.sessionKey = t.sessionKey || this.generateSessionKey();
|
|
1601
1620
|
}
|
|
1602
1621
|
/**
|
|
@@ -1793,9 +1812,9 @@ class tt {
|
|
|
1793
1812
|
}
|
|
1794
1813
|
class ar {
|
|
1795
1814
|
constructor() {
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1815
|
+
ve(this, "currentTheme", Pe);
|
|
1816
|
+
ve(this, "customStyleElement", null);
|
|
1817
|
+
ve(this, "themeStyleElement", null);
|
|
1799
1818
|
}
|
|
1800
1819
|
/**
|
|
1801
1820
|
* Apply theme configuration
|
|
@@ -5605,7 +5624,7 @@ const nr = {
|
|
|
5605
5624
|
logo: {
|
|
5606
5625
|
companyLogo: "Şirket Logosu"
|
|
5607
5626
|
}
|
|
5608
|
-
},
|
|
5627
|
+
}, hr = {
|
|
5609
5628
|
common: {
|
|
5610
5629
|
next: "Nästa",
|
|
5611
5630
|
previous: "Föregående",
|
|
@@ -5885,7 +5904,7 @@ const nr = {
|
|
|
5885
5904
|
logo: {
|
|
5886
5905
|
companyLogo: "Företagslogotyp"
|
|
5887
5906
|
}
|
|
5888
|
-
},
|
|
5907
|
+
}, vr = {
|
|
5889
5908
|
common: {
|
|
5890
5909
|
next: "Næste",
|
|
5891
5910
|
previous: "Forrige",
|
|
@@ -6739,8 +6758,8 @@ const nr = {
|
|
|
6739
6758
|
ja: yr,
|
|
6740
6759
|
ar: fr,
|
|
6741
6760
|
tr: kr,
|
|
6742
|
-
sv:
|
|
6743
|
-
da:
|
|
6761
|
+
sv: hr,
|
|
6762
|
+
da: vr,
|
|
6744
6763
|
fi: br,
|
|
6745
6764
|
no: xr
|
|
6746
6765
|
};
|
|
@@ -6778,7 +6797,7 @@ function Vt(e, t) {
|
|
|
6778
6797
|
return r[t];
|
|
6779
6798
|
}
|
|
6780
6799
|
}
|
|
6781
|
-
function
|
|
6800
|
+
function ii(e) {
|
|
6782
6801
|
const t = zt.en;
|
|
6783
6802
|
return (a, r) => {
|
|
6784
6803
|
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 +6813,7 @@ function G(e, t) {
|
|
|
6794
6813
|
const r = Sr.exec(a);
|
|
6795
6814
|
return r ? t(r[1]) : e;
|
|
6796
6815
|
}
|
|
6797
|
-
const
|
|
6816
|
+
const ri = "1.0.47", ai = Zt(null), qt = `metakyc-translations-${ri}-`, Cr = ({
|
|
6798
6817
|
locale: e,
|
|
6799
6818
|
fetchTranslations: t,
|
|
6800
6819
|
children: a
|
|
@@ -6819,8 +6838,8 @@ const ii = "1.0.45", ri = Xt(null), qt = `metakyc-translations-${ii}-`, Cr = ({
|
|
|
6819
6838
|
return;
|
|
6820
6839
|
}
|
|
6821
6840
|
console.debug("[MetaKYC i18n] Remote overrides loaded for locale:", r, d);
|
|
6822
|
-
const y = At(r),
|
|
6823
|
-
o(
|
|
6841
|
+
const y = At(r), v = Ot(y, d);
|
|
6842
|
+
o(v);
|
|
6824
6843
|
try {
|
|
6825
6844
|
localStorage.setItem(qt + r, JSON.stringify(d));
|
|
6826
6845
|
} catch {
|
|
@@ -6832,21 +6851,21 @@ const ii = "1.0.45", ri = Xt(null), qt = `metakyc-translations-${ii}-`, Cr = ({
|
|
|
6832
6851
|
};
|
|
6833
6852
|
}, [r, t]);
|
|
6834
6853
|
const p = Fe(() => ({
|
|
6835
|
-
t:
|
|
6854
|
+
t: ii(l),
|
|
6836
6855
|
locale: r,
|
|
6837
6856
|
dictionary: l
|
|
6838
6857
|
}), [l, r]);
|
|
6839
|
-
return /* @__PURE__ */ i(
|
|
6858
|
+
return /* @__PURE__ */ i(ai.Provider, { value: p, children: a });
|
|
6840
6859
|
};
|
|
6841
6860
|
function Ie() {
|
|
6842
|
-
const e =
|
|
6861
|
+
const e = Jt(ai);
|
|
6843
6862
|
if (!e) {
|
|
6844
6863
|
const t = At("en");
|
|
6845
|
-
return { t:
|
|
6864
|
+
return { t: ii(t), locale: "en", dictionary: t };
|
|
6846
6865
|
}
|
|
6847
6866
|
return e;
|
|
6848
6867
|
}
|
|
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";
|
|
6868
|
+
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
6869
|
let St = !1;
|
|
6851
6870
|
function Tr() {
|
|
6852
6871
|
if (St || typeof document > "u") return;
|
|
@@ -6857,10 +6876,10 @@ function Tr() {
|
|
|
6857
6876
|
const e = document.createElement("style");
|
|
6858
6877
|
e.id = Ut, e.textContent = Nr, document.head.appendChild(e), St = !0;
|
|
6859
6878
|
}
|
|
6860
|
-
const Wt = "metakyc-theme-cache",
|
|
6879
|
+
const Wt = "metakyc-theme-cache", Ma = ({ config: e, children: t }) => {
|
|
6861
6880
|
Tr();
|
|
6862
6881
|
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),
|
|
6882
|
+
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
6883
|
if (typeof document < "u")
|
|
6865
6884
|
if (e.theme)
|
|
6866
6885
|
H.applyTheme(e.theme);
|
|
@@ -6874,7 +6893,7 @@ const Wt = "metakyc-theme-cache", Da = ({ config: e, children: t }) => {
|
|
|
6874
6893
|
return {
|
|
6875
6894
|
httpClient: d,
|
|
6876
6895
|
applicantService: y,
|
|
6877
|
-
questionnaireService:
|
|
6896
|
+
questionnaireService: v,
|
|
6878
6897
|
uploadDocumentService: z,
|
|
6879
6898
|
appropriatenessTestService: L,
|
|
6880
6899
|
overviewService: C,
|
|
@@ -6932,7 +6951,7 @@ const Wt = "metakyc-theme-cache", Da = ({ config: e, children: t }) => {
|
|
|
6932
6951
|
(d) => o.translationService.getTranslations(d),
|
|
6933
6952
|
[o.translationService]
|
|
6934
6953
|
);
|
|
6935
|
-
return /* @__PURE__ */ i(
|
|
6954
|
+
return /* @__PURE__ */ i(ni.Provider, { value: p, children: /* @__PURE__ */ s(
|
|
6936
6955
|
Cr,
|
|
6937
6956
|
{
|
|
6938
6957
|
locale: e.locale || "en",
|
|
@@ -6954,7 +6973,7 @@ const Wt = "metakyc-theme-cache", Da = ({ config: e, children: t }) => {
|
|
|
6954
6973
|
},
|
|
6955
6974
|
children: [
|
|
6956
6975
|
"SDK v",
|
|
6957
|
-
|
|
6976
|
+
ri
|
|
6958
6977
|
]
|
|
6959
6978
|
}
|
|
6960
6979
|
),
|
|
@@ -6964,7 +6983,7 @@ const Wt = "metakyc-theme-cache", Da = ({ config: e, children: t }) => {
|
|
|
6964
6983
|
) });
|
|
6965
6984
|
};
|
|
6966
6985
|
function Oe() {
|
|
6967
|
-
const e =
|
|
6986
|
+
const e = Jt(ni);
|
|
6968
6987
|
if (!e)
|
|
6969
6988
|
throw new Error("useMetaKYC must be used within a MetaKYCProvider");
|
|
6970
6989
|
return e;
|
|
@@ -6978,10 +6997,10 @@ async function Rr(e) {
|
|
|
6978
6997
|
}, r.onerror = (n) => a(n);
|
|
6979
6998
|
});
|
|
6980
6999
|
}
|
|
6981
|
-
function
|
|
7000
|
+
function ja(e, t) {
|
|
6982
7001
|
return e.size <= t;
|
|
6983
7002
|
}
|
|
6984
|
-
function
|
|
7003
|
+
function Fa(e, t) {
|
|
6985
7004
|
return t.split(",").map((r) => r.trim()).some((r) => {
|
|
6986
7005
|
if (r.endsWith("/*")) {
|
|
6987
7006
|
const n = r.slice(0, -2);
|
|
@@ -6995,7 +7014,7 @@ function Ct(e) {
|
|
|
6995
7014
|
const t = 1024, a = ["Bytes", "KB", "MB", "GB"], r = Math.floor(Math.log(e) / Math.log(t));
|
|
6996
7015
|
return Math.round(e / Math.pow(t, r) * 100) / 100 + " " + a[r];
|
|
6997
7016
|
}
|
|
6998
|
-
function
|
|
7017
|
+
function Oa(e) {
|
|
6999
7018
|
return e;
|
|
7000
7019
|
}
|
|
7001
7020
|
function Me(...e) {
|
|
@@ -7034,7 +7053,7 @@ function Lr(e) {
|
|
|
7034
7053
|
console.warn("Failed to save workflow state to storage:", t);
|
|
7035
7054
|
}
|
|
7036
7055
|
}
|
|
7037
|
-
function
|
|
7056
|
+
function Va() {
|
|
7038
7057
|
try {
|
|
7039
7058
|
const e = localStorage.getItem(gt.WORKFLOW_STATE);
|
|
7040
7059
|
return e ? JSON.parse(e) : null;
|
|
@@ -7049,7 +7068,7 @@ function Er() {
|
|
|
7049
7068
|
console.warn("Failed to clear workflow state from storage:", e);
|
|
7050
7069
|
}
|
|
7051
7070
|
}
|
|
7052
|
-
function
|
|
7071
|
+
function Ba() {
|
|
7053
7072
|
Ar(), Er();
|
|
7054
7073
|
}
|
|
7055
7074
|
function Pr(e) {
|
|
@@ -7067,7 +7086,7 @@ function Pr(e) {
|
|
|
7067
7086
|
nextWorkflowKey: a.nextWorkflowKey
|
|
7068
7087
|
}));
|
|
7069
7088
|
}, [a, d]);
|
|
7070
|
-
const y = ue(!1),
|
|
7089
|
+
const y = ue(!1), v = ue(!1), z = ie(async () => {
|
|
7071
7090
|
if (!(!d || !m.current)) {
|
|
7072
7091
|
if (y.current) {
|
|
7073
7092
|
console.log("[Workflow] Load already in progress, skipping...");
|
|
@@ -7076,7 +7095,7 @@ function Pr(e) {
|
|
|
7076
7095
|
y.current = !0, l(!0), p(null);
|
|
7077
7096
|
try {
|
|
7078
7097
|
const O = await m.current.initialize(d);
|
|
7079
|
-
r(O),
|
|
7098
|
+
r(O), v.current = !0;
|
|
7080
7099
|
} catch (O) {
|
|
7081
7100
|
p(O);
|
|
7082
7101
|
} finally {
|
|
@@ -7085,7 +7104,7 @@ function Pr(e) {
|
|
|
7085
7104
|
}
|
|
7086
7105
|
}, [d]);
|
|
7087
7106
|
be(() => {
|
|
7088
|
-
d && !
|
|
7107
|
+
d && !v.current && z();
|
|
7089
7108
|
}, [d, z]);
|
|
7090
7109
|
const L = ie(async () => {
|
|
7091
7110
|
if (m.current) {
|
|
@@ -7163,7 +7182,7 @@ function Pr(e) {
|
|
|
7163
7182
|
};
|
|
7164
7183
|
}
|
|
7165
7184
|
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), [
|
|
7185
|
+
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
7186
|
var P, B;
|
|
7168
7187
|
if (e) {
|
|
7169
7188
|
if (L.current) {
|
|
@@ -7216,24 +7235,24 @@ function Dr(e) {
|
|
|
7216
7235
|
initialAnswers: l,
|
|
7217
7236
|
isLoading: p,
|
|
7218
7237
|
isSubmitting: d,
|
|
7219
|
-
error:
|
|
7238
|
+
error: v,
|
|
7220
7239
|
load: q,
|
|
7221
7240
|
submit: T
|
|
7222
7241
|
};
|
|
7223
7242
|
}
|
|
7224
7243
|
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,
|
|
7244
|
+
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
7245
|
if (e) {
|
|
7227
7246
|
if (z.current) {
|
|
7228
7247
|
console.log("[UploadDocument] Load already in progress, skipping...");
|
|
7229
7248
|
return;
|
|
7230
7249
|
}
|
|
7231
|
-
z.current = !0, l(!0),
|
|
7250
|
+
z.current = !0, l(!0), v(null);
|
|
7232
7251
|
try {
|
|
7233
7252
|
const T = await t.getUploadDocument(e);
|
|
7234
7253
|
r(T), L.current = e;
|
|
7235
7254
|
} catch (T) {
|
|
7236
|
-
|
|
7255
|
+
v(T);
|
|
7237
7256
|
} finally {
|
|
7238
7257
|
l(!1), z.current = !1;
|
|
7239
7258
|
}
|
|
@@ -7244,11 +7263,11 @@ function Mr(e) {
|
|
|
7244
7263
|
}, [e]);
|
|
7245
7264
|
const q = ie(
|
|
7246
7265
|
async (T) => {
|
|
7247
|
-
p(!0), d(0),
|
|
7266
|
+
p(!0), d(0), v(null);
|
|
7248
7267
|
try {
|
|
7249
7268
|
await t.fillUploadDocument(T), d(100);
|
|
7250
7269
|
} catch (P) {
|
|
7251
|
-
throw
|
|
7270
|
+
throw v(P), P;
|
|
7252
7271
|
} finally {
|
|
7253
7272
|
p(!1);
|
|
7254
7273
|
}
|
|
@@ -7265,8 +7284,8 @@ function Mr(e) {
|
|
|
7265
7284
|
submit: q
|
|
7266
7285
|
};
|
|
7267
7286
|
}
|
|
7268
|
-
function
|
|
7269
|
-
const { appropriatenessTestService: t } = Oe(), [a, r] = S(null), [n, l] = S(!1), [o, p] = S(!1), [m, d] = S(null), [y,
|
|
7287
|
+
function qa(e) {
|
|
7288
|
+
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
7289
|
if (e) {
|
|
7271
7290
|
if (z.current) {
|
|
7272
7291
|
console.log("[AppropriatenessTest] Load already in progress, skipping...");
|
|
@@ -7291,7 +7310,7 @@ function Ba(e) {
|
|
|
7291
7310
|
p(!0), d(null);
|
|
7292
7311
|
try {
|
|
7293
7312
|
const P = await t.fillAppropriatenessTest(T);
|
|
7294
|
-
return
|
|
7313
|
+
return v(P), P;
|
|
7295
7314
|
} catch (P) {
|
|
7296
7315
|
throw d(P), P;
|
|
7297
7316
|
} finally {
|
|
@@ -7311,7 +7330,7 @@ function Ba(e) {
|
|
|
7311
7330
|
};
|
|
7312
7331
|
}
|
|
7313
7332
|
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),
|
|
7333
|
+
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
7334
|
if (e) {
|
|
7316
7335
|
if (y.current) {
|
|
7317
7336
|
console.log("[Overview] Load already in progress, skipping...");
|
|
@@ -7320,7 +7339,7 @@ function jr(e) {
|
|
|
7320
7339
|
y.current = !0, l(!0), d(null);
|
|
7321
7340
|
try {
|
|
7322
7341
|
const C = await t.getOverviewData(e);
|
|
7323
|
-
r(C),
|
|
7342
|
+
r(C), v.current = e;
|
|
7324
7343
|
} catch (C) {
|
|
7325
7344
|
d(C);
|
|
7326
7345
|
} finally {
|
|
@@ -7329,7 +7348,7 @@ function jr(e) {
|
|
|
7329
7348
|
}
|
|
7330
7349
|
}, [e, t]);
|
|
7331
7350
|
be(() => {
|
|
7332
|
-
e &&
|
|
7351
|
+
e && v.current !== e && z();
|
|
7333
7352
|
}, [e]);
|
|
7334
7353
|
const L = ie(async () => {
|
|
7335
7354
|
if (e) {
|
|
@@ -7402,7 +7421,7 @@ function Fr(e) {
|
|
|
7402
7421
|
}
|
|
7403
7422
|
},
|
|
7404
7423
|
[e, t]
|
|
7405
|
-
),
|
|
7424
|
+
), v = ie(async () => {
|
|
7406
7425
|
if (e) {
|
|
7407
7426
|
if (m.current) {
|
|
7408
7427
|
console.log("[Identity] Restart already in progress, skipping...");
|
|
@@ -7435,11 +7454,11 @@ function Fr(e) {
|
|
|
7435
7454
|
error: o,
|
|
7436
7455
|
requestIdentity: d,
|
|
7437
7456
|
requestCompanyIdentity: y,
|
|
7438
|
-
restartIdentity:
|
|
7457
|
+
restartIdentity: v
|
|
7439
7458
|
};
|
|
7440
7459
|
}
|
|
7441
7460
|
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), [
|
|
7461
|
+
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
7462
|
var O;
|
|
7444
7463
|
if (e) {
|
|
7445
7464
|
if (q.current) {
|
|
@@ -7494,12 +7513,12 @@ function Or(e) {
|
|
|
7494
7513
|
result: L,
|
|
7495
7514
|
isLoading: p,
|
|
7496
7515
|
isSubmitting: d,
|
|
7497
|
-
error:
|
|
7516
|
+
error: v,
|
|
7498
7517
|
load: P,
|
|
7499
7518
|
submit: B
|
|
7500
7519
|
};
|
|
7501
7520
|
}
|
|
7502
|
-
function
|
|
7521
|
+
function oi() {
|
|
7503
7522
|
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
7523
|
const C = Math.random() * 16 | 0;
|
|
7505
7524
|
return (L === "x" ? C : C & 3 | 8).toString(16);
|
|
@@ -7537,7 +7556,7 @@ function ni() {
|
|
|
7537
7556
|
}
|
|
7538
7557
|
},
|
|
7539
7558
|
[e]
|
|
7540
|
-
),
|
|
7559
|
+
), v = ie(
|
|
7541
7560
|
async (L) => {
|
|
7542
7561
|
if (p.current)
|
|
7543
7562
|
throw console.log("[Applicant] Data load already in progress, skipping..."), new Error("Data load already in progress");
|
|
@@ -7569,7 +7588,7 @@ function ni() {
|
|
|
7569
7588
|
error: n,
|
|
7570
7589
|
createApplicant: d,
|
|
7571
7590
|
createCompanyApplicant: y,
|
|
7572
|
-
getApplicantData:
|
|
7591
|
+
getApplicantData: v,
|
|
7573
7592
|
stopProgress: z
|
|
7574
7593
|
};
|
|
7575
7594
|
}
|
|
@@ -7674,7 +7693,7 @@ const Vr = {
|
|
|
7674
7693
|
]
|
|
7675
7694
|
}
|
|
7676
7695
|
);
|
|
7677
|
-
}, Ce =
|
|
7696
|
+
}, Ce = ht(
|
|
7678
7697
|
({ label: e, error: t, helperText: a, leftIcon: r, rightIcon: n, className: l, style: o, ...p }, m) => /* @__PURE__ */ s("div", { className: "w-full", children: [
|
|
7679
7698
|
e && /* @__PURE__ */ s(
|
|
7680
7699
|
"label",
|
|
@@ -7860,7 +7879,7 @@ const ne = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
|
|
|
7860
7879
|
backgroundColor: "#fef3c7",
|
|
7861
7880
|
color: "#92400e"
|
|
7862
7881
|
}
|
|
7863
|
-
},
|
|
7882
|
+
}, si = ({ children: e, variant: t = "default", className: a, style: r, ...n }) => /* @__PURE__ */ i(
|
|
7864
7883
|
"span",
|
|
7865
7884
|
{
|
|
7866
7885
|
className: Me(
|
|
@@ -7907,7 +7926,7 @@ const ne = ({ children: e, className: t, style: a, ...r }) => /* @__PURE__ */ i(
|
|
|
7907
7926
|
]
|
|
7908
7927
|
}
|
|
7909
7928
|
) });
|
|
7910
|
-
}, Et =
|
|
7929
|
+
}, Et = ht(
|
|
7911
7930
|
({ label: e, error: t, helperText: a, options: r, placeholder: n, className: l, style: o, ...p }, m) => /* @__PURE__ */ s("div", { className: "w-full", children: [
|
|
7912
7931
|
e && /* @__PURE__ */ s(
|
|
7913
7932
|
"label",
|
|
@@ -7984,7 +8003,7 @@ const Kt = 280, Ur = ({
|
|
|
7984
8003
|
readOnly: o = !1,
|
|
7985
8004
|
required: p = !1
|
|
7986
8005
|
}) => {
|
|
7987
|
-
const { t: m } = Ie(), d = n ?? m("common.select"), y = l || o, [
|
|
8006
|
+
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
8007
|
bg: "#ffffff",
|
|
7989
8008
|
borderColor: "#d1d5db",
|
|
7990
8009
|
textPrimary: "#111827",
|
|
@@ -8016,15 +8035,15 @@ const Kt = 280, Ur = ({
|
|
|
8016
8035
|
z(!1), C("");
|
|
8017
8036
|
}, []);
|
|
8018
8037
|
be(() => {
|
|
8019
|
-
if (!
|
|
8038
|
+
if (!v) return;
|
|
8020
8039
|
const M = (E) => {
|
|
8021
8040
|
var xe, de;
|
|
8022
8041
|
const F = E.target;
|
|
8023
8042
|
!((xe = O.current) != null && xe.contains(F)) && !((de = H.current) != null && de.contains(F)) && R();
|
|
8024
8043
|
};
|
|
8025
8044
|
return document.addEventListener("mousedown", M), () => document.removeEventListener("mousedown", M);
|
|
8026
|
-
}, [
|
|
8027
|
-
if (!
|
|
8045
|
+
}, [v, R]), be(() => {
|
|
8046
|
+
if (!v) return;
|
|
8028
8047
|
const M = () => {
|
|
8029
8048
|
const E = J();
|
|
8030
8049
|
E && T(E);
|
|
@@ -8032,7 +8051,7 @@ const Kt = 280, Ur = ({
|
|
|
8032
8051
|
return window.addEventListener("scroll", M, !0), window.addEventListener("resize", M), () => {
|
|
8033
8052
|
window.removeEventListener("scroll", M, !0), window.removeEventListener("resize", M);
|
|
8034
8053
|
};
|
|
8035
|
-
}, [
|
|
8054
|
+
}, [v, J]);
|
|
8036
8055
|
const V = r.filter(
|
|
8037
8056
|
(M) => M.label.toLowerCase().includes(L.toLowerCase())
|
|
8038
8057
|
), Q = (M) => {
|
|
@@ -8042,7 +8061,7 @@ const Kt = 280, Ur = ({
|
|
|
8042
8061
|
}, W = (M) => {
|
|
8043
8062
|
var E;
|
|
8044
8063
|
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 =
|
|
8064
|
+
}, { bg: X, borderColor: ce, textPrimary: Y, textSecondary: je, primaryColor: ye, primaryLight: fe, hoverBg: Se } = P, pe = v && q && /* @__PURE__ */ s(
|
|
8046
8065
|
"div",
|
|
8047
8066
|
{
|
|
8048
8067
|
ref: H,
|
|
@@ -8166,7 +8185,7 @@ const Kt = 280, Ur = ({
|
|
|
8166
8185
|
"div",
|
|
8167
8186
|
{
|
|
8168
8187
|
ref: U,
|
|
8169
|
-
onClick: () =>
|
|
8188
|
+
onClick: () => v ? R() : b(),
|
|
8170
8189
|
className: Me(
|
|
8171
8190
|
"metakyc-multiselect-trigger",
|
|
8172
8191
|
"w-full px-3 py-2 rounded-lg border text-sm transition-colors relative",
|
|
@@ -8175,8 +8194,8 @@ const Kt = 280, Ur = ({
|
|
|
8175
8194
|
style: {
|
|
8176
8195
|
minHeight: "38px",
|
|
8177
8196
|
backgroundColor: "var(--metakyc-input-bg, #ffffff)",
|
|
8178
|
-
borderColor:
|
|
8179
|
-
outline:
|
|
8197
|
+
borderColor: v ? "var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb))" : "var(--metakyc-input-border, var(--metakyc-border, #d1d5db))",
|
|
8198
|
+
outline: v ? "2px solid var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb))" : "none",
|
|
8180
8199
|
outlineOffset: "-1px"
|
|
8181
8200
|
},
|
|
8182
8201
|
children: [
|
|
@@ -8234,7 +8253,7 @@ const Kt = 280, Ur = ({
|
|
|
8234
8253
|
{
|
|
8235
8254
|
className: "metakyc-multiselect-arrow absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-xs",
|
|
8236
8255
|
style: { color: "var(--metakyc-text-secondary, #6b7280)" },
|
|
8237
|
-
children:
|
|
8256
|
+
children: v ? "▲" : "▼"
|
|
8238
8257
|
}
|
|
8239
8258
|
)
|
|
8240
8259
|
]
|
|
@@ -8256,7 +8275,7 @@ const Kt = 280, Ur = ({
|
|
|
8256
8275
|
className: y
|
|
8257
8276
|
}) => {
|
|
8258
8277
|
var de;
|
|
8259
|
-
const { t:
|
|
8278
|
+
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
8279
|
bg: "#ffffff",
|
|
8261
8280
|
border: "#d1d5db",
|
|
8262
8281
|
text: "#111827",
|
|
@@ -8345,7 +8364,7 @@ const Kt = 280, Ur = ({
|
|
|
8345
8364
|
type: "text",
|
|
8346
8365
|
value: T,
|
|
8347
8366
|
onChange: (D) => P(D.target.value),
|
|
8348
|
-
placeholder:
|
|
8367
|
+
placeholder: v("common.search"),
|
|
8349
8368
|
onClick: (D) => D.stopPropagation(),
|
|
8350
8369
|
className: "metakyc-searchable-select-search w-full",
|
|
8351
8370
|
style: {
|
|
@@ -8379,7 +8398,7 @@ const Kt = 280, Ur = ({
|
|
|
8379
8398
|
maxHeight: "208px",
|
|
8380
8399
|
overflowY: "auto"
|
|
8381
8400
|
},
|
|
8382
|
-
children: ce.length === 0 ? /* @__PURE__ */ i("li", { style: { padding: "8px 12px", fontSize: "13px", color: pe }, children:
|
|
8401
|
+
children: ce.length === 0 ? /* @__PURE__ */ i("li", { style: { padding: "8px 12px", fontSize: "13px", color: pe }, children: v("common.noResults") }) : ce.map((D) => {
|
|
8383
8402
|
const _ = D.value === l;
|
|
8384
8403
|
return /* @__PURE__ */ i(
|
|
8385
8404
|
"li",
|
|
@@ -8490,7 +8509,7 @@ const Kr = ({
|
|
|
8490
8509
|
value: m = [],
|
|
8491
8510
|
className: d
|
|
8492
8511
|
}) => {
|
|
8493
|
-
const { t: y } = Ie(), [
|
|
8512
|
+
const { t: y } = Ie(), [v, z] = S(!1), [L, C] = S(null), q = ue(null), T = ie((b) => {
|
|
8494
8513
|
if (!b) return;
|
|
8495
8514
|
C(null);
|
|
8496
8515
|
const R = Array.from(b);
|
|
@@ -8541,13 +8560,13 @@ const Kr = ({
|
|
|
8541
8560
|
onDragLeave: B,
|
|
8542
8561
|
onDrop: O,
|
|
8543
8562
|
style: {
|
|
8544
|
-
border: `2px dashed ${J ? "var(--metakyc-danger, #ef4444)" :
|
|
8563
|
+
border: `2px dashed ${J ? "var(--metakyc-danger, #ef4444)" : v ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-border, #d1d5db)"}`,
|
|
8545
8564
|
borderRadius: "12px",
|
|
8546
8565
|
padding: re ? "20px" : "32px 20px",
|
|
8547
8566
|
textAlign: "center",
|
|
8548
8567
|
cursor: "pointer",
|
|
8549
8568
|
transition: "all 0.2s ease",
|
|
8550
|
-
backgroundColor:
|
|
8569
|
+
backgroundColor: v ? "color-mix(in srgb, var(--metakyc-primary, #2563eb) 5%, var(--metakyc-background, #ffffff))" : "var(--metakyc-background, #ffffff)"
|
|
8551
8570
|
},
|
|
8552
8571
|
children: [
|
|
8553
8572
|
/* @__PURE__ */ i(
|
|
@@ -8574,7 +8593,7 @@ const Kr = ({
|
|
|
8574
8593
|
display: "flex",
|
|
8575
8594
|
alignItems: "center",
|
|
8576
8595
|
justifyContent: "center",
|
|
8577
|
-
backgroundColor:
|
|
8596
|
+
backgroundColor: v ? "color-mix(in srgb, var(--metakyc-primary, #2563eb) 15%, transparent)" : "var(--metakyc-surface, #f9fafb)",
|
|
8578
8597
|
transition: "background-color 0.2s ease"
|
|
8579
8598
|
},
|
|
8580
8599
|
children: /* @__PURE__ */ s(
|
|
@@ -8584,7 +8603,7 @@ const Kr = ({
|
|
|
8584
8603
|
height: "24",
|
|
8585
8604
|
viewBox: "0 0 24 24",
|
|
8586
8605
|
fill: "none",
|
|
8587
|
-
stroke:
|
|
8606
|
+
stroke: v ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-text-muted, #9ca3af)",
|
|
8588
8607
|
strokeWidth: "2",
|
|
8589
8608
|
strokeLinecap: "round",
|
|
8590
8609
|
strokeLinejoin: "round",
|
|
@@ -8717,7 +8736,7 @@ const Kr = ({
|
|
|
8717
8736
|
}) }),
|
|
8718
8737
|
J && /* @__PURE__ */ i("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", marginTop: "6px" }, children: J })
|
|
8719
8738
|
] });
|
|
8720
|
-
}, Yr =
|
|
8739
|
+
}, Yr = ht(
|
|
8721
8740
|
({ countryCode: e = "+1", onCountryCodeChange: t, className: a, ...r }, n) => /* @__PURE__ */ s("div", { className: "w-full", children: [
|
|
8722
8741
|
r.label && /* @__PURE__ */ s(
|
|
8723
8742
|
"label",
|
|
@@ -8771,7 +8790,7 @@ Yr.displayName = "PhoneInput";
|
|
|
8771
8790
|
* This source code is licensed under the ISC license.
|
|
8772
8791
|
* See the LICENSE file in the root directory of this source tree.
|
|
8773
8792
|
*/
|
|
8774
|
-
const
|
|
8793
|
+
const li = (...e) => e.filter((t, a, r) => !!t && t.trim() !== "" && r.indexOf(t) === a).join(" ").trim();
|
|
8775
8794
|
/**
|
|
8776
8795
|
* @license lucide-react v0.574.0 - ISC
|
|
8777
8796
|
*
|
|
@@ -8834,7 +8853,7 @@ const Gr = (e) => {
|
|
|
8834
8853
|
* This source code is licensed under the ISC license.
|
|
8835
8854
|
* See the LICENSE file in the root directory of this source tree.
|
|
8836
8855
|
*/
|
|
8837
|
-
const Qr =
|
|
8856
|
+
const Qr = ht(
|
|
8838
8857
|
({
|
|
8839
8858
|
color: e = "currentColor",
|
|
8840
8859
|
size: t = 24,
|
|
@@ -8853,7 +8872,7 @@ const Qr = vt(
|
|
|
8853
8872
|
height: t,
|
|
8854
8873
|
stroke: e,
|
|
8855
8874
|
strokeWidth: r ? Number(a) * 24 / Number(t) : a,
|
|
8856
|
-
className:
|
|
8875
|
+
className: li("lucide", n),
|
|
8857
8876
|
...!l && !Gr(p) && { "aria-hidden": "true" },
|
|
8858
8877
|
...p
|
|
8859
8878
|
},
|
|
@@ -8869,12 +8888,12 @@ const Qr = vt(
|
|
|
8869
8888
|
* This source code is licensed under the ISC license.
|
|
8870
8889
|
* See the LICENSE file in the root directory of this source tree.
|
|
8871
8890
|
*/
|
|
8872
|
-
const
|
|
8873
|
-
const a =
|
|
8891
|
+
const ci = (e, t) => {
|
|
8892
|
+
const a = ht(
|
|
8874
8893
|
({ className: r, ...n }, l) => It(Qr, {
|
|
8875
8894
|
ref: l,
|
|
8876
8895
|
iconNode: t,
|
|
8877
|
-
className:
|
|
8896
|
+
className: li(
|
|
8878
8897
|
`lucide-${Hr(Ht(e))}`,
|
|
8879
8898
|
`lucide-${e}`,
|
|
8880
8899
|
r
|
|
@@ -8890,14 +8909,14 @@ const li = (e, t) => {
|
|
|
8890
8909
|
* This source code is licensed under the ISC license.
|
|
8891
8910
|
* See the LICENSE file in the root directory of this source tree.
|
|
8892
8911
|
*/
|
|
8893
|
-
const Xr = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]],
|
|
8912
|
+
const Xr = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], di = ci("chevron-left", Xr);
|
|
8894
8913
|
/**
|
|
8895
8914
|
* @license lucide-react v0.574.0 - ISC
|
|
8896
8915
|
*
|
|
8897
8916
|
* This source code is licensed under the ISC license.
|
|
8898
8917
|
* See the LICENSE file in the root directory of this source tree.
|
|
8899
8918
|
*/
|
|
8900
|
-
const Zr = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]],
|
|
8919
|
+
const Zr = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], mi = ci("chevron-right", Zr);
|
|
8901
8920
|
function Jr(e, t) {
|
|
8902
8921
|
const a = !t || t.length === 0 || t.every((r) => !r || !r.trim());
|
|
8903
8922
|
if (e.isRequired && a)
|
|
@@ -8942,15 +8961,15 @@ const ta = ({
|
|
|
8942
8961
|
onComplete: t,
|
|
8943
8962
|
onBack: a
|
|
8944
8963
|
}) => {
|
|
8945
|
-
const { t: r } = Ie(), { questionnaire: n, initialAnswers: l, isLoading: o, isSubmitting: p, error: m, submit: d } = Dr(e), [y,
|
|
8964
|
+
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
8965
|
Ne.useEffect(() => {
|
|
8947
|
-
l && Object.keys(l).length > 0 && Object.keys(y).length === 0 &&
|
|
8966
|
+
l && Object.keys(l).length > 0 && Object.keys(y).length === 0 && v(l);
|
|
8948
8967
|
}, [l]);
|
|
8949
8968
|
const T = Fe(
|
|
8950
8969
|
() => n ? ea(n.questionGroups) : [],
|
|
8951
8970
|
[n]
|
|
8952
8971
|
), P = C === T.length - 1, B = T[C] ?? [], O = ie((b, R) => {
|
|
8953
|
-
|
|
8972
|
+
v((V) => ({ ...V, [b]: R })), L((V) => {
|
|
8954
8973
|
const Q = { ...V };
|
|
8955
8974
|
return delete Q[b], Q;
|
|
8956
8975
|
});
|
|
@@ -9026,7 +9045,7 @@ const ta = ({
|
|
|
9026
9045
|
onClick: J,
|
|
9027
9046
|
style: { display: "flex", alignItems: "center", gap: "4px" },
|
|
9028
9047
|
children: [
|
|
9029
|
-
/* @__PURE__ */ i(
|
|
9048
|
+
/* @__PURE__ */ i(di, { size: 14 }),
|
|
9030
9049
|
C > 0 ? r("common.previous") : r("common.back")
|
|
9031
9050
|
]
|
|
9032
9051
|
}
|
|
@@ -9047,7 +9066,7 @@ const ta = ({
|
|
|
9047
9066
|
style: { display: "flex", alignItems: "center", gap: "4px" },
|
|
9048
9067
|
children: [
|
|
9049
9068
|
r("common.next"),
|
|
9050
|
-
/* @__PURE__ */ i(
|
|
9069
|
+
/* @__PURE__ */ i(mi, { size: 14 })
|
|
9051
9070
|
]
|
|
9052
9071
|
}
|
|
9053
9072
|
)
|
|
@@ -9129,7 +9148,7 @@ const ta = ({
|
|
|
9129
9148
|
(o === "checkbox" || o === "multi-select") && /* @__PURE__ */ s("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
|
|
9130
9149
|
(e.defaultAnswers ?? []).map((m) => {
|
|
9131
9150
|
const d = t.includes(m), y = () => {
|
|
9132
|
-
r(d ? t.filter((
|
|
9151
|
+
r(d ? t.filter((v) => v !== m) : [...t, m]);
|
|
9133
9152
|
};
|
|
9134
9153
|
return /* @__PURE__ */ s(
|
|
9135
9154
|
"div",
|
|
@@ -9163,7 +9182,7 @@ const aa = ({
|
|
|
9163
9182
|
onComplete: t,
|
|
9164
9183
|
onBack: a
|
|
9165
9184
|
}) => {
|
|
9166
|
-
const { t: r } = Ie(), { uploadDocument: n, isLoading: l, isSubmitting: o, error: p, submit: m } = Mr(e), [d, y] = S({}), [
|
|
9185
|
+
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
9186
|
() => n ? ra(n.uploadDocumentFiles) : [],
|
|
9168
9187
|
[n]
|
|
9169
9188
|
), B = P[L] ?? [], O = L === P.length - 1, U = P.length, H = ie(() => {
|
|
@@ -9320,7 +9339,7 @@ const aa = ({
|
|
|
9320
9339
|
},
|
|
9321
9340
|
R.id
|
|
9322
9341
|
)) }) }),
|
|
9323
|
-
|
|
9342
|
+
v && /* @__PURE__ */ s("div", { style: {
|
|
9324
9343
|
margin: "0 24px",
|
|
9325
9344
|
padding: "10px 14px",
|
|
9326
9345
|
borderRadius: "8px",
|
|
@@ -9335,7 +9354,7 @@ const aa = ({
|
|
|
9335
9354
|
/* @__PURE__ */ i("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
|
|
9336
9355
|
/* @__PURE__ */ i("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
|
|
9337
9356
|
] }),
|
|
9338
|
-
/* @__PURE__ */ i("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", margin: 0 }, children:
|
|
9357
|
+
/* @__PURE__ */ i("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", margin: 0 }, children: v })
|
|
9339
9358
|
] }),
|
|
9340
9359
|
/* @__PURE__ */ i(Re, { children: /* @__PURE__ */ s("div", { style: {
|
|
9341
9360
|
display: "flex",
|
|
@@ -9383,7 +9402,7 @@ const aa = ({
|
|
|
9383
9402
|
/* @__PURE__ */ i("h2", { className: "text-lg font-bold", children: n.title || r("overview.title") }),
|
|
9384
9403
|
n.description && /* @__PURE__ */ i("p", { className: "mt-1", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: n.description })
|
|
9385
9404
|
] }),
|
|
9386
|
-
/* @__PURE__ */ i(oe, { className: "space-y-8", children: n.steps && n.steps.length > 0 ? n.steps.sort((y,
|
|
9405
|
+
/* @__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
9406
|
/* @__PURE__ */ i("div", { className: "metakyc-step-icon flex-shrink-0", children: /* @__PURE__ */ i(
|
|
9388
9407
|
"div",
|
|
9389
9408
|
{
|
|
@@ -9481,7 +9500,7 @@ const ua = ({
|
|
|
9481
9500
|
onComplete: t,
|
|
9482
9501
|
onBack: a
|
|
9483
9502
|
}) => {
|
|
9484
|
-
const { t: r } = Ie(), { config: n } = Oe(), l = n.locale ?? "en", { criteria: o, initialAnswers: p, isLoading: m, isSubmitting: d, error: y, submit:
|
|
9503
|
+
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
9504
|
Ne.useEffect(() => {
|
|
9486
9505
|
p && Object.keys(p).length > 0 && Object.keys(z).length === 0 && L(p);
|
|
9487
9506
|
}, [p]);
|
|
@@ -9490,8 +9509,8 @@ const ua = ({
|
|
|
9490
9509
|
[o]
|
|
9491
9510
|
), H = T === U.length - 1, J = U[T] ?? [];
|
|
9492
9511
|
Ne.useEffect(() => {
|
|
9493
|
-
!m && o && o.length === 0 && !B && !d && (O(!0),
|
|
9494
|
-
}, [m, o, B, d,
|
|
9512
|
+
!m && o && o.length === 0 && !B && !d && (O(!0), v({ applicantId: e, criteriaValueInputs: [] }).then(() => t == null ? void 0 : t()).catch(console.error));
|
|
9513
|
+
}, [m, o, B, d, v, e, t]);
|
|
9495
9514
|
const re = ie((ee, W) => {
|
|
9496
9515
|
L((X) => ({ ...X, [ee]: W })), q((X) => {
|
|
9497
9516
|
const ce = { ...X };
|
|
@@ -9515,7 +9534,7 @@ const ua = ({
|
|
|
9515
9534
|
const ce = (z[X.id] ?? []).filter((Y) => Y && Y.trim());
|
|
9516
9535
|
return ce.length > 0 ? { riskCriteriaId: X.id, values: ce } : null;
|
|
9517
9536
|
}).filter((X) => X !== null);
|
|
9518
|
-
await
|
|
9537
|
+
await v({ applicantId: e, criteriaValueInputs: ee }), t == null || t();
|
|
9519
9538
|
} catch (ee) {
|
|
9520
9539
|
console.error("Risk scoring submit error:", ee);
|
|
9521
9540
|
}
|
|
@@ -9570,7 +9589,7 @@ const ua = ({
|
|
|
9570
9589
|
onClick: V,
|
|
9571
9590
|
style: { display: "flex", alignItems: "center", gap: "4px" },
|
|
9572
9591
|
children: [
|
|
9573
|
-
/* @__PURE__ */ i(
|
|
9592
|
+
/* @__PURE__ */ i(di, { size: 14 }),
|
|
9574
9593
|
T > 0 ? r("common.previous") : r("common.back")
|
|
9575
9594
|
]
|
|
9576
9595
|
}
|
|
@@ -9583,7 +9602,7 @@ const ua = ({
|
|
|
9583
9602
|
style: { display: "flex", alignItems: "center", gap: "4px" },
|
|
9584
9603
|
children: [
|
|
9585
9604
|
r("common.next"),
|
|
9586
|
-
/* @__PURE__ */ i(
|
|
9605
|
+
/* @__PURE__ */ i(mi, { size: 14 })
|
|
9587
9606
|
]
|
|
9588
9607
|
}
|
|
9589
9608
|
)
|
|
@@ -9632,7 +9651,7 @@ const ua = ({
|
|
|
9632
9651
|
type: "radio",
|
|
9633
9652
|
checked: t[0] === y,
|
|
9634
9653
|
onChange: () => n([y]),
|
|
9635
|
-
onClick: (
|
|
9654
|
+
onClick: (v) => v.stopPropagation(),
|
|
9636
9655
|
className: "metakyc-option-input",
|
|
9637
9656
|
style: {
|
|
9638
9657
|
width: "16px",
|
|
@@ -9658,8 +9677,8 @@ const ua = ({
|
|
|
9658
9677
|
] }),
|
|
9659
9678
|
o === "checkbox" && /* @__PURE__ */ s("div", { className: "metakyc-options-group", style: { display: "flex", flexDirection: "column", gap: "8px" }, children: [
|
|
9660
9679
|
(e.defaultValues ?? []).map((y) => {
|
|
9661
|
-
const
|
|
9662
|
-
n(
|
|
9680
|
+
const v = t.includes(y), z = () => {
|
|
9681
|
+
n(v ? t.filter((L) => L !== y) : [...t, y]);
|
|
9663
9682
|
};
|
|
9664
9683
|
return /* @__PURE__ */ s(
|
|
9665
9684
|
"div",
|
|
@@ -9668,7 +9687,7 @@ const ua = ({
|
|
|
9668
9687
|
onClick: z,
|
|
9669
9688
|
style: { display: "flex", alignItems: "center", gap: "10px", cursor: "pointer", margin: 0, padding: 0, userSelect: "none" },
|
|
9670
9689
|
children: [
|
|
9671
|
-
/* @__PURE__ */ i(We, { checked:
|
|
9690
|
+
/* @__PURE__ */ i(We, { checked: v, onChange: () => z() }),
|
|
9672
9691
|
/* @__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
9692
|
]
|
|
9674
9693
|
},
|
|
@@ -9841,7 +9860,7 @@ const ya = ({
|
|
|
9841
9860
|
onComplete: t,
|
|
9842
9861
|
onBack: a
|
|
9843
9862
|
}) => {
|
|
9844
|
-
const { t: r } = Ie(), { appropriatenessTestService: n } = Oe(), [l, o] = S(null), [p, m] = S(!0), [d, y] = S(!1), [
|
|
9863
|
+
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
9864
|
be(() => {
|
|
9846
9865
|
(async () => {
|
|
9847
9866
|
try {
|
|
@@ -9929,7 +9948,7 @@ const ya = ({
|
|
|
9929
9948
|
if (!l)
|
|
9930
9949
|
return /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ i(oe, { children: /* @__PURE__ */ s("div", { style: { textAlign: "center", padding: "48px 0" }, children: [
|
|
9931
9950
|
/* @__PURE__ */ i("p", { style: { fontSize: "16px", fontWeight: 600, color: "var(--metakyc-danger, #ef4444)" }, children: r("appropriatenessTest.noTestData") }),
|
|
9932
|
-
|
|
9951
|
+
v && /* @__PURE__ */ i("p", { style: { fontSize: "14px", color: "var(--metakyc-text-muted, #9ca3af)", marginTop: "8px" }, children: v })
|
|
9933
9952
|
] }) }) });
|
|
9934
9953
|
const Y = l.testAllowedMaxTry - l.totalFailedTries, je = l.appropriatenessQuestions.length, ye = Object.keys(L).length;
|
|
9935
9954
|
if (H > 0)
|
|
@@ -9953,13 +9972,13 @@ const ya = ({
|
|
|
9953
9972
|
}, children: Nt(H) }) }),
|
|
9954
9973
|
/* @__PURE__ */ i("p", { style: { fontSize: "15px", fontWeight: 500, color: "var(--metakyc-text-primary, #111827)" }, children: r("appropriatenessTest.waitBeforeRetrying") }),
|
|
9955
9974
|
/* @__PURE__ */ i("p", { style: { fontSize: "13px", color: "var(--metakyc-text-muted, #9ca3af)", marginTop: "4px" }, children: r("appropriatenessTest.waitTimerMessage") }),
|
|
9956
|
-
|
|
9975
|
+
v && /* @__PURE__ */ i("div", { style: {
|
|
9957
9976
|
marginTop: "20px",
|
|
9958
9977
|
padding: "12px 16px",
|
|
9959
9978
|
borderRadius: "10px",
|
|
9960
9979
|
backgroundColor: "color-mix(in srgb, var(--metakyc-danger, #ef4444) 8%, transparent)",
|
|
9961
9980
|
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:
|
|
9981
|
+
}, children: /* @__PURE__ */ i("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", margin: 0 }, children: v }) })
|
|
9963
9982
|
] }) })
|
|
9964
9983
|
] });
|
|
9965
9984
|
if (R) {
|
|
@@ -10059,11 +10078,11 @@ const ya = ({
|
|
|
10059
10078
|
/* @__PURE__ */ i("p", { style: { fontSize: "13px", color: "var(--metakyc-text-secondary, #374151)", margin: 0, lineHeight: 1.5 }, children: l.description })
|
|
10060
10079
|
] }),
|
|
10061
10080
|
/* @__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(
|
|
10081
|
+
/* @__PURE__ */ i(vt, { icon: "questions", label: r("appropriatenessTest.questions"), value: String(l.totalQuestionCount) }),
|
|
10082
|
+
/* @__PURE__ */ i(vt, { icon: "time", label: r("appropriatenessTest.timeLimit"), value: Nt(l.testDurationSec) }),
|
|
10083
|
+
/* @__PURE__ */ i(vt, { icon: "target", label: r("appropriatenessTest.passRequirement"), value: r("appropriatenessTest.correct", { count: l.testCorrectAnswerPassLimit }) }),
|
|
10065
10084
|
/* @__PURE__ */ i(
|
|
10066
|
-
|
|
10085
|
+
vt,
|
|
10067
10086
|
{
|
|
10068
10087
|
icon: "retry",
|
|
10069
10088
|
label: r("appropriatenessTest.attemptsLeftLabel"),
|
|
@@ -10072,7 +10091,7 @@ const ya = ({
|
|
|
10072
10091
|
}
|
|
10073
10092
|
)
|
|
10074
10093
|
] }),
|
|
10075
|
-
|
|
10094
|
+
v && /* @__PURE__ */ s("div", { style: {
|
|
10076
10095
|
marginBottom: "16px",
|
|
10077
10096
|
padding: "12px 14px",
|
|
10078
10097
|
borderRadius: "10px",
|
|
@@ -10089,7 +10108,7 @@ const ya = ({
|
|
|
10089
10108
|
/* @__PURE__ */ s("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", margin: 0, lineHeight: 1.5 }, children: [
|
|
10090
10109
|
/* @__PURE__ */ i("strong", { children: r("appropriatenessTest.previousAttempt") }),
|
|
10091
10110
|
" ",
|
|
10092
|
-
|
|
10111
|
+
v
|
|
10093
10112
|
] })
|
|
10094
10113
|
] }),
|
|
10095
10114
|
Y <= 0 && /* @__PURE__ */ i("div", { style: {
|
|
@@ -10236,13 +10255,13 @@ const ya = ({
|
|
|
10236
10255
|
] }),
|
|
10237
10256
|
/* @__PURE__ */ i("p", { style: { fontSize: "13px", color: "#b45309", margin: 0, fontWeight: 500 }, children: r("appropriatenessTest.timesUp") })
|
|
10238
10257
|
] }),
|
|
10239
|
-
|
|
10258
|
+
v && !O && /* @__PURE__ */ i("div", { style: {
|
|
10240
10259
|
marginTop: "16px",
|
|
10241
10260
|
padding: "12px 14px",
|
|
10242
10261
|
borderRadius: "10px",
|
|
10243
10262
|
backgroundColor: "color-mix(in srgb, var(--metakyc-danger, #ef4444) 8%, transparent)",
|
|
10244
10263
|
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:
|
|
10264
|
+
}, children: /* @__PURE__ */ i("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", margin: 0 }, children: v }) })
|
|
10246
10265
|
] }),
|
|
10247
10266
|
/* @__PURE__ */ i(Re, { children: /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", justifyContent: "space-between", width: "100%" }, children: [
|
|
10248
10267
|
/* @__PURE__ */ i(
|
|
@@ -10298,7 +10317,7 @@ const ya = ({
|
|
|
10298
10317
|
/* @__PURE__ */ i("polyline", { points: "23 4 23 10 17 10" }),
|
|
10299
10318
|
/* @__PURE__ */ i("path", { d: "M20.49 15a9 9 0 1 1-2.12-9.36L23 10" })
|
|
10300
10319
|
] })
|
|
10301
|
-
},
|
|
10320
|
+
}, vt = ({ icon: e, label: t, value: a, variant: r = "default" }) => {
|
|
10302
10321
|
const n = r === "warning";
|
|
10303
10322
|
return /* @__PURE__ */ s("div", { style: {
|
|
10304
10323
|
display: "flex",
|
|
@@ -10406,13 +10425,13 @@ const ya = ({
|
|
|
10406
10425
|
l
|
|
10407
10426
|
);
|
|
10408
10427
|
}) })
|
|
10409
|
-
] }),
|
|
10428
|
+
] }), ha = ({
|
|
10410
10429
|
applicantId: e,
|
|
10411
10430
|
onComplete: t,
|
|
10412
10431
|
onBack: a
|
|
10413
10432
|
}) => {
|
|
10414
10433
|
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:
|
|
10434
|
+
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
10435
|
E.current = M;
|
|
10417
10436
|
const F = yi({
|
|
10418
10437
|
defaultValues: {
|
|
@@ -10491,17 +10510,17 @@ const ya = ({
|
|
|
10491
10510
|
}, [e]), be(() => {
|
|
10492
10511
|
d && !V && E.current && (console.log("[Identity] Review page disabled — showing cached provider"), Q(!0));
|
|
10493
10512
|
}, [d, V]), be(() => {
|
|
10494
|
-
if (
|
|
10495
|
-
if (
|
|
10496
|
-
const k = new Date(
|
|
10513
|
+
if (v) {
|
|
10514
|
+
if (v.expiresAt) {
|
|
10515
|
+
const k = new Date(v.expiresAt).getTime();
|
|
10497
10516
|
if (Date.now() >= k) {
|
|
10498
10517
|
console.warn("[Identity] Token has expired (expiresAt)"), ce(!0), W(r("identity.sessionExpired"));
|
|
10499
10518
|
return;
|
|
10500
10519
|
}
|
|
10501
10520
|
}
|
|
10502
|
-
if (
|
|
10521
|
+
if (v.url)
|
|
10503
10522
|
try {
|
|
10504
|
-
const j = new URL(
|
|
10523
|
+
const j = new URL(v.url).toString().toLowerCase();
|
|
10505
10524
|
if (j.includes("expired") || j.includes("invalid") || j.includes("error")) {
|
|
10506
10525
|
console.warn("[Identity] Token URL indicates expiration"), ce(!0), W(r("identity.linkExpired"));
|
|
10507
10526
|
return;
|
|
@@ -10509,20 +10528,20 @@ const ya = ({
|
|
|
10509
10528
|
} catch {
|
|
10510
10529
|
console.error("[Identity] Invalid token URL");
|
|
10511
10530
|
}
|
|
10512
|
-
if (
|
|
10531
|
+
if (v.status === "expired" || v.error === "expired" || v.expired === !0) {
|
|
10513
10532
|
console.warn("[Identity] Token object indicates expiration"), ce(!0), W(r("identity.sessionExpired"));
|
|
10514
10533
|
return;
|
|
10515
10534
|
}
|
|
10516
10535
|
}
|
|
10517
|
-
}, [
|
|
10536
|
+
}, [v]);
|
|
10518
10537
|
const xe = y !== null && y === qe.Sumsub;
|
|
10519
10538
|
be(() => {
|
|
10520
|
-
if (y !== null &&
|
|
10539
|
+
if (y !== null && v && !T && V && !X) {
|
|
10521
10540
|
const k = y;
|
|
10522
10541
|
if (xe) {
|
|
10523
10542
|
console.log("[Sumsub] Fetching access token for Web SDK…"), W(null), (async () => {
|
|
10524
10543
|
try {
|
|
10525
|
-
const j = await o.refreshSumsubToken(e), $ = tt.parseProviderConfig(y,
|
|
10544
|
+
const j = await o.refreshSumsubToken(e), $ = tt.parseProviderConfig(y, v, p);
|
|
10526
10545
|
$.accessToken = j, $.onTokenRefresh = () => o.refreshSumsubToken(e);
|
|
10527
10546
|
const K = tt.createProvider(y, $);
|
|
10528
10547
|
K.onComplete((te) => {
|
|
@@ -10536,19 +10555,19 @@ const ya = ({
|
|
|
10536
10555
|
})();
|
|
10537
10556
|
return;
|
|
10538
10557
|
}
|
|
10539
|
-
if (
|
|
10540
|
-
console.log("[Identity] Loading provider URL for user verification:",
|
|
10558
|
+
if (v.url) {
|
|
10559
|
+
console.log("[Identity] Loading provider URL for user verification:", v.url), W(null);
|
|
10541
10560
|
try {
|
|
10542
|
-
if (new URL(
|
|
10561
|
+
if (new URL(v.url), k === qe.SardinAI) {
|
|
10543
10562
|
console.log("[SardinAI] Initializing Risk SDK in background...");
|
|
10544
10563
|
try {
|
|
10545
|
-
const j = tt.parseProviderConfig(y,
|
|
10564
|
+
const j = tt.parseProviderConfig(y, v, p);
|
|
10546
10565
|
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
10566
|
} catch (j) {
|
|
10548
10567
|
console.warn("[SardinAI] Risk SDK setup failed (non-blocking):", j);
|
|
10549
10568
|
}
|
|
10550
10569
|
}
|
|
10551
|
-
P({ type: "url", url:
|
|
10570
|
+
P({ type: "url", url: v.url });
|
|
10552
10571
|
} catch (j) {
|
|
10553
10572
|
console.error("[Identity] Invalid URL:", j), W(r("identity.invalidUrl")), ce(!0);
|
|
10554
10573
|
}
|
|
@@ -10557,7 +10576,7 @@ const ya = ({
|
|
|
10557
10576
|
if (k === qe.SardinAI) {
|
|
10558
10577
|
console.log("[SardinAI] No URL provided - initializing Risk SDK only..."), W(null);
|
|
10559
10578
|
try {
|
|
10560
|
-
const j = tt.parseProviderConfig(y,
|
|
10579
|
+
const j = tt.parseProviderConfig(y, v, p), $ = tt.createProvider(y, j);
|
|
10561
10580
|
$.initialize().then(() => {
|
|
10562
10581
|
console.log("[SardinAI] Risk SDK initialized successfully"), P($), setTimeout(() => t == null ? void 0 : t(), 2e3);
|
|
10563
10582
|
}).catch((K) => {
|
|
@@ -10573,7 +10592,7 @@ const ya = ({
|
|
|
10573
10592
|
}
|
|
10574
10593
|
try {
|
|
10575
10594
|
W(null);
|
|
10576
|
-
const j = tt.parseProviderConfig(y,
|
|
10595
|
+
const j = tt.parseProviderConfig(y, v, p), $ = tt.createProvider(y, j);
|
|
10577
10596
|
k === qe.Onfido && $.initialize("identity-container").catch((K) => {
|
|
10578
10597
|
console.error("[Onfido] Initialization error:", K), W(r("identity.failedToInitialize", { message: K.message }));
|
|
10579
10598
|
}), P($);
|
|
@@ -10589,7 +10608,7 @@ const ya = ({
|
|
|
10589
10608
|
console.error("[Identity] Error destroying provider:", k);
|
|
10590
10609
|
}
|
|
10591
10610
|
};
|
|
10592
|
-
}, [y,
|
|
10611
|
+
}, [y, v, T, V, t, X, xe, e, p, o]);
|
|
10593
10612
|
const de = async () => {
|
|
10594
10613
|
try {
|
|
10595
10614
|
W(null), ce(!1), await C(), Q(!0);
|
|
@@ -10728,7 +10747,7 @@ const ya = ({
|
|
|
10728
10747
|
padding: "16px 24px",
|
|
10729
10748
|
borderTop: "1px solid var(--metakyc-border, #e5e7eb)"
|
|
10730
10749
|
}, children: /* @__PURE__ */ i(Z, { variant: "outline", onClick: _, children: r("common.back") }) })
|
|
10731
|
-
] }) :
|
|
10750
|
+
] }) : v != null && v.url ? /* @__PURE__ */ s(ne, { children: [
|
|
10732
10751
|
/* @__PURE__ */ i(Te, { children: /* @__PURE__ */ s("div", { className: "flex items-center justify-between", children: [
|
|
10733
10752
|
/* @__PURE__ */ s("div", { children: [
|
|
10734
10753
|
/* @__PURE__ */ i("h2", { className: "text-2xl font-bold", children: r("identity.title") }),
|
|
@@ -10754,7 +10773,7 @@ const ya = ({
|
|
|
10754
10773
|
/* @__PURE__ */ i("div", { className: "w-full", style: { height: "600px", maxHeight: "70vh" }, children: /* @__PURE__ */ i(
|
|
10755
10774
|
"iframe",
|
|
10756
10775
|
{
|
|
10757
|
-
src:
|
|
10776
|
+
src: v.url,
|
|
10758
10777
|
className: "w-full h-full border-0 rounded-lg",
|
|
10759
10778
|
allow: "camera; microphone; geolocation",
|
|
10760
10779
|
title: "Identity Verification",
|
|
@@ -11155,7 +11174,7 @@ function st(e) {
|
|
|
11155
11174
|
const { color: t, fallback: a } = Pt[e];
|
|
11156
11175
|
return { color: `var(${t}, ${a})` };
|
|
11157
11176
|
}
|
|
11158
|
-
function
|
|
11177
|
+
function va(e) {
|
|
11159
11178
|
const { color: t, fallback: a } = Pt[e];
|
|
11160
11179
|
return {
|
|
11161
11180
|
backgroundColor: `color-mix(in srgb, var(${t}, ${a}) 15%, transparent)`
|
|
@@ -11176,13 +11195,13 @@ const _t = ({
|
|
|
11176
11195
|
"div",
|
|
11177
11196
|
{
|
|
11178
11197
|
className: "w-24 h-24 rounded-full flex items-center justify-center",
|
|
11179
|
-
style:
|
|
11198
|
+
style: va(m.type),
|
|
11180
11199
|
children: /* @__PURE__ */ i("span", { className: "text-5xl", style: st(m.type), children: m.icon })
|
|
11181
11200
|
}
|
|
11182
11201
|
) }),
|
|
11183
11202
|
/* @__PURE__ */ i("h2", { className: "text-3xl font-bold text-center mb-4", style: { color: "var(--metakyc-text-primary, #111827)" }, children: m.title }),
|
|
11184
11203
|
/* @__PURE__ */ i("div", { className: "flex justify-center mb-6", children: /* @__PURE__ */ i(
|
|
11185
|
-
|
|
11204
|
+
si,
|
|
11186
11205
|
{
|
|
11187
11206
|
variant: m.type === "success" ? "success" : m.type === "error" ? "danger" : "warning",
|
|
11188
11207
|
children: Ke[t]
|
|
@@ -11243,7 +11262,7 @@ const _t = ({
|
|
|
11243
11262
|
/* @__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
11263
|
/* @__PURE__ */ s("div", { children: [
|
|
11245
11264
|
/* @__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 ?
|
|
11265
|
+
/* @__PURE__ */ i("div", { className: "font-medium mt-1", style: { color: "var(--metakyc-text-primary, #111827)" }, children: e != null ? ei[e] : o("status.notAvailable") })
|
|
11247
11266
|
] }),
|
|
11248
11267
|
/* @__PURE__ */ s("div", { children: [
|
|
11249
11268
|
/* @__PURE__ */ i("span", { style: { color: "var(--metakyc-text-muted, #9ca3af)" }, children: o("status.reviewStatus") }),
|
|
@@ -11442,38 +11461,38 @@ const xa = {
|
|
|
11442
11461
|
),
|
|
11443
11462
|
typeof document < "u" && n ? Lt(n, document.body) : null
|
|
11444
11463
|
] });
|
|
11445
|
-
},
|
|
11464
|
+
}, Ua = ({
|
|
11446
11465
|
workflowKey: e,
|
|
11447
11466
|
externalRefId: t,
|
|
11448
11467
|
onSuccess: a,
|
|
11449
11468
|
onCancel: r
|
|
11450
11469
|
}) => {
|
|
11451
11470
|
var $, K, te, g, I, x, u;
|
|
11452
|
-
const { config: n, baseInformationService: l, currentTheme: o } = Oe(), { createApplicant: p, isLoading: m } =
|
|
11471
|
+
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
11472
|
if (!y)
|
|
11454
11473
|
throw new Error(
|
|
11455
11474
|
"workflowKey is required. Provide it either as a prop to CreateApplicantForm or set it in config.applicantForm.workflowKey"
|
|
11456
11475
|
);
|
|
11457
|
-
const
|
|
11476
|
+
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
11477
|
() => o != null && o.applicantFormPages && o.applicantFormPages.length > 0 ? o.applicantFormPages : null,
|
|
11459
11478
|
[o == null ? void 0 : o.applicantFormPages]
|
|
11460
11479
|
), B = Fe(() => {
|
|
11461
11480
|
const c = new Set(bt), f = o == null ? void 0 : o.applicantFormRequiredFields;
|
|
11462
|
-
if (f) for (const
|
|
11481
|
+
if (f) for (const h of f) c.add(h);
|
|
11463
11482
|
if (P)
|
|
11464
|
-
for (const
|
|
11465
|
-
for (const A of
|
|
11483
|
+
for (const h of P)
|
|
11484
|
+
for (const A of h.fields)
|
|
11466
11485
|
!A.isCustom && A.name && A.required && c.add(A.name);
|
|
11467
11486
|
return Array.from(c);
|
|
11468
11487
|
}, [o == null ? void 0 : o.applicantFormRequiredFields, P]), O = Fe(() => {
|
|
11469
|
-
var
|
|
11488
|
+
var h;
|
|
11470
11489
|
if (P) {
|
|
11471
11490
|
const A = P.flatMap((w) => w.fields).filter((w) => !w.isCustom && w.name).map((w) => w.name), N = new Set(A);
|
|
11472
11491
|
for (const w of bt) N.add(w);
|
|
11473
11492
|
return Array.from(N);
|
|
11474
11493
|
}
|
|
11475
11494
|
let c;
|
|
11476
|
-
(
|
|
11495
|
+
(h = n.applicantForm) != null && h.visibleFields ? c = n.applicantForm.visibleFields : o != null && o.applicantFormVisibleFields && o.applicantFormVisibleFields.length > 0 ? c = o.applicantFormVisibleFields : c = Ii;
|
|
11477
11496
|
const f = new Set(c);
|
|
11478
11497
|
for (const A of bt) f.add(A);
|
|
11479
11498
|
return Array.from(f);
|
|
@@ -11485,7 +11504,7 @@ const xa = {
|
|
|
11485
11504
|
"mobileCountryCode",
|
|
11486
11505
|
"otherNationality"
|
|
11487
11506
|
]), H = Fe(() => {
|
|
11488
|
-
var f,
|
|
11507
|
+
var f, h;
|
|
11489
11508
|
const c = /* @__PURE__ */ new Set();
|
|
11490
11509
|
if (P)
|
|
11491
11510
|
for (const A of P)
|
|
@@ -11493,7 +11512,7 @@ const xa = {
|
|
|
11493
11512
|
!N.isCustom && N.name && U.has(N.name) && c.add(N.countriesType ?? ((f = lt[N.name]) == null ? void 0 : f.countriesType));
|
|
11494
11513
|
else
|
|
11495
11514
|
for (const A of O)
|
|
11496
|
-
U.has(A) && c.add((
|
|
11515
|
+
U.has(A) && c.add((h = lt[A]) == null ? void 0 : h.countriesType);
|
|
11497
11516
|
return c.size === 0 && c.add(void 0), Array.from(c);
|
|
11498
11517
|
}, [O, P]), [J, re] = S({}), [b, R] = S(!0), V = ue(/* @__PURE__ */ new Set()), Q = ue(/* @__PURE__ */ new Set());
|
|
11499
11518
|
be(() => {
|
|
@@ -11515,10 +11534,10 @@ const xa = {
|
|
|
11515
11534
|
try {
|
|
11516
11535
|
const A = await Promise.all(
|
|
11517
11536
|
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:
|
|
11537
|
+
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 ? {
|
|
11538
|
+
value: he.countryCode,
|
|
11539
|
+
label: `${he.countryCode} – ${he.name}`
|
|
11540
|
+
} : { value: he.abbreviation3 || he.abbreviation, label: he.name }).filter((he) => !he.value || we.has(he.value) ? !1 : (we.add(he.value), !0));
|
|
11522
11541
|
return Q.current.add(w), V.current.delete(w), [w, ke];
|
|
11523
11542
|
})
|
|
11524
11543
|
);
|
|
@@ -11535,7 +11554,7 @@ const xa = {
|
|
|
11535
11554
|
}, [H, o]);
|
|
11536
11555
|
const ee = (c, f) => {
|
|
11537
11556
|
var N;
|
|
11538
|
-
const
|
|
11557
|
+
const h = f ?? ((N = lt[c]) == null ? void 0 : N.countriesType), A = h != null ? String(h) : "all";
|
|
11539
11558
|
return J[A] || [];
|
|
11540
11559
|
}, W = {
|
|
11541
11560
|
firstName: 1,
|
|
@@ -11572,7 +11591,7 @@ const xa = {
|
|
|
11572
11591
|
email: z,
|
|
11573
11592
|
dateOfBirth: "",
|
|
11574
11593
|
phonenumber: "",
|
|
11575
|
-
externalRefId:
|
|
11594
|
+
externalRefId: v,
|
|
11576
11595
|
mobileCountryCode: "",
|
|
11577
11596
|
street: "",
|
|
11578
11597
|
streetNumber: "",
|
|
@@ -11593,30 +11612,30 @@ const xa = {
|
|
|
11593
11612
|
...ce
|
|
11594
11613
|
}), ye = Object.fromEntries(
|
|
11595
11614
|
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((
|
|
11615
|
+
), [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
11616
|
var f;
|
|
11598
|
-
for (const
|
|
11599
|
-
if (!
|
|
11600
|
-
const A = fe[
|
|
11601
|
-
if (
|
|
11602
|
-
if (A.split(",").filter(Boolean).some((w) =>
|
|
11603
|
-
} else if (
|
|
11617
|
+
for (const h of c.fields) {
|
|
11618
|
+
if (!h.isCustom || !h.paramName || !((f = h.blockingValues) != null && f.length)) continue;
|
|
11619
|
+
const A = fe[h.paramName] ?? "";
|
|
11620
|
+
if (h.customType === "group_checkbox") {
|
|
11621
|
+
if (A.split(",").filter(Boolean).some((w) => h.blockingValues.includes(w))) return !0;
|
|
11622
|
+
} else if (h.customType === "radio_group" && h.blockingValues.includes(A))
|
|
11604
11623
|
return !0;
|
|
11605
11624
|
}
|
|
11606
11625
|
return !1;
|
|
11607
11626
|
}, Ae = P && pe < P.length - 1 ? pe + 1 : -1, Ye = P && pe > 0 ? pe - 1 : -1, ct = (c) => {
|
|
11608
11627
|
const f = {};
|
|
11609
|
-
for (const
|
|
11610
|
-
if (
|
|
11611
|
-
if (
|
|
11612
|
-
if (
|
|
11613
|
-
const A = fe[
|
|
11614
|
-
|
|
11628
|
+
for (const h of c.fields)
|
|
11629
|
+
if (h.isCustom) {
|
|
11630
|
+
if (h.customType === "paragraph" || h.customType === "html" || h.customType === "br" || h.customType === "link") continue;
|
|
11631
|
+
if (h.required && h.paramName) {
|
|
11632
|
+
const A = fe[h.paramName], N = G(h.displayText, d) || G(h.label, d) || h.paramName;
|
|
11633
|
+
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
11634
|
}
|
|
11616
|
-
} else if (
|
|
11617
|
-
const A =
|
|
11635
|
+
} else if (h.name) {
|
|
11636
|
+
const A = h.name;
|
|
11618
11637
|
if (B.includes(A) && ut(Y[A])) {
|
|
11619
|
-
const N = lt[A], w = G(
|
|
11638
|
+
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
11639
|
f[A] = d("validation.fieldRequired", { field: w });
|
|
11621
11640
|
}
|
|
11622
11641
|
}
|
|
@@ -11691,9 +11710,9 @@ const xa = {
|
|
|
11691
11710
|
}
|
|
11692
11711
|
for (const [N, w] of Object.entries(X))
|
|
11693
11712
|
c[N] === void 0 && !ut(w) && (c[N] = w);
|
|
11694
|
-
const
|
|
11713
|
+
const h = new Set(f.map((N) => N.paramName));
|
|
11695
11714
|
for (const [N, w] of Object.entries(ye))
|
|
11696
|
-
!
|
|
11715
|
+
!h.has(N) && w && f.push({ paramName: N, value: w });
|
|
11697
11716
|
f.length > 0 && (c.applicantAdditionalDatas = f);
|
|
11698
11717
|
const A = await p(c);
|
|
11699
11718
|
a(A.applicantId);
|
|
@@ -11706,16 +11725,16 @@ const xa = {
|
|
|
11706
11725
|
c.preventDefault();
|
|
11707
11726
|
for (const f of B)
|
|
11708
11727
|
if (ut(Y[f])) {
|
|
11709
|
-
const
|
|
11728
|
+
const h = lt[f], A = (h != null && h.translationKey ? d(`fields.${h.translationKey}`) : void 0) || (h == null ? void 0 : h.label) || f;
|
|
11710
11729
|
de(d("validation.fieldRequired", { field: A }));
|
|
11711
11730
|
return;
|
|
11712
11731
|
}
|
|
11713
11732
|
await He();
|
|
11714
|
-
}, Je = (c, f,
|
|
11733
|
+
}, Je = (c, f, h, A, N) => {
|
|
11715
11734
|
var Dt;
|
|
11716
11735
|
const w = lt[c];
|
|
11717
11736
|
if (!w) return null;
|
|
11718
|
-
const ae = B.includes(c), se = E[c], we = G(
|
|
11737
|
+
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
11738
|
switch (w.type) {
|
|
11720
11739
|
case "select":
|
|
11721
11740
|
if (c === "country" || c === "nationality" || c === "taxCountry" || c === "countryOfBirth" || c === "mobileCountryCode") {
|
|
@@ -11732,7 +11751,7 @@ const xa = {
|
|
|
11732
11751
|
readOnly: ke,
|
|
11733
11752
|
error: se
|
|
11734
11753
|
},
|
|
11735
|
-
|
|
11754
|
+
he
|
|
11736
11755
|
);
|
|
11737
11756
|
}
|
|
11738
11757
|
if (c === "salutation")
|
|
@@ -11752,7 +11771,7 @@ const xa = {
|
|
|
11752
11771
|
readOnly: ke,
|
|
11753
11772
|
error: se
|
|
11754
11773
|
},
|
|
11755
|
-
|
|
11774
|
+
he
|
|
11756
11775
|
);
|
|
11757
11776
|
if (c === "defaultLanguage") {
|
|
11758
11777
|
const Le = o != null && o.allowedLanguages && o.allowedLanguages.length > 0 ? jt.filter((nt) => o.allowedLanguages.includes(nt.value)) : jt;
|
|
@@ -11767,7 +11786,7 @@ const xa = {
|
|
|
11767
11786
|
readOnly: ke,
|
|
11768
11787
|
error: se
|
|
11769
11788
|
},
|
|
11770
|
-
|
|
11789
|
+
he
|
|
11771
11790
|
);
|
|
11772
11791
|
}
|
|
11773
11792
|
return null;
|
|
@@ -11786,7 +11805,7 @@ const xa = {
|
|
|
11786
11805
|
disabled: b,
|
|
11787
11806
|
readOnly: ke
|
|
11788
11807
|
},
|
|
11789
|
-
|
|
11808
|
+
he
|
|
11790
11809
|
);
|
|
11791
11810
|
}
|
|
11792
11811
|
return null;
|
|
@@ -11803,7 +11822,7 @@ const xa = {
|
|
|
11803
11822
|
readOnly: ke,
|
|
11804
11823
|
error: se
|
|
11805
11824
|
},
|
|
11806
|
-
|
|
11825
|
+
he
|
|
11807
11826
|
);
|
|
11808
11827
|
case "email":
|
|
11809
11828
|
return /* @__PURE__ */ i(
|
|
@@ -11818,7 +11837,7 @@ const xa = {
|
|
|
11818
11837
|
readOnly: ke,
|
|
11819
11838
|
error: se
|
|
11820
11839
|
},
|
|
11821
|
-
|
|
11840
|
+
he
|
|
11822
11841
|
);
|
|
11823
11842
|
case "tel":
|
|
11824
11843
|
return /* @__PURE__ */ i(
|
|
@@ -11833,7 +11852,7 @@ const xa = {
|
|
|
11833
11852
|
readOnly: ke,
|
|
11834
11853
|
error: se
|
|
11835
11854
|
},
|
|
11836
|
-
|
|
11855
|
+
he
|
|
11837
11856
|
);
|
|
11838
11857
|
default:
|
|
11839
11858
|
return /* @__PURE__ */ i(
|
|
@@ -11848,11 +11867,11 @@ const xa = {
|
|
|
11848
11867
|
readOnly: ke,
|
|
11849
11868
|
error: se
|
|
11850
11869
|
},
|
|
11851
|
-
|
|
11870
|
+
he
|
|
11852
11871
|
);
|
|
11853
11872
|
}
|
|
11854
11873
|
}, k = (c, f) => {
|
|
11855
|
-
const
|
|
11874
|
+
const h = c.labelMode ? c.labelMode !== "placeholder" : T;
|
|
11856
11875
|
if (c.customType === "paragraph") {
|
|
11857
11876
|
const w = G(c.displayText, d) || G(c.label, d) || "";
|
|
11858
11877
|
return /* @__PURE__ */ i(
|
|
@@ -11994,7 +12013,7 @@ const xa = {
|
|
|
11994
12013
|
if (c.customType === "group_checkbox") {
|
|
11995
12014
|
const w = (fe[c.paramName] || "").split(",").filter(Boolean);
|
|
11996
12015
|
return /* @__PURE__ */ s("div", { className: "flex flex-col gap-1.5", children: [
|
|
11997
|
-
|
|
12016
|
+
h && /* @__PURE__ */ s(
|
|
11998
12017
|
"div",
|
|
11999
12018
|
{
|
|
12000
12019
|
className: "text-sm font-medium",
|
|
@@ -12010,7 +12029,7 @@ const xa = {
|
|
|
12010
12029
|
if (c.singleSelect)
|
|
12011
12030
|
le(c.paramName, se ? "" : ae.value);
|
|
12012
12031
|
else {
|
|
12013
|
-
const ke = se ? w.filter((
|
|
12032
|
+
const ke = se ? w.filter((he) => he !== ae.value) : [...w, ae.value];
|
|
12014
12033
|
le(c.paramName, ke.join(","));
|
|
12015
12034
|
}
|
|
12016
12035
|
};
|
|
@@ -12039,7 +12058,7 @@ const xa = {
|
|
|
12039
12058
|
] }, `custom-${f}`);
|
|
12040
12059
|
}
|
|
12041
12060
|
return c.customType === "radio_group" ? /* @__PURE__ */ s("div", { className: "flex flex-col gap-1.5", children: [
|
|
12042
|
-
|
|
12061
|
+
h && /* @__PURE__ */ s(
|
|
12043
12062
|
"div",
|
|
12044
12063
|
{
|
|
12045
12064
|
className: "text-sm font-medium",
|
|
@@ -12086,8 +12105,8 @@ const xa = {
|
|
|
12086
12105
|
Ce,
|
|
12087
12106
|
{
|
|
12088
12107
|
type: "text",
|
|
12089
|
-
label:
|
|
12090
|
-
placeholder:
|
|
12108
|
+
label: h ? `${N}${c.required ? " *" : ""}` : void 0,
|
|
12109
|
+
placeholder: h ? void 0 : N,
|
|
12091
12110
|
value: fe[c.paramName] || "",
|
|
12092
12111
|
onChange: (w) => le(c.paramName, w.target.value),
|
|
12093
12112
|
required: c.required,
|
|
@@ -12096,21 +12115,21 @@ const xa = {
|
|
|
12096
12115
|
`custom-${f}`
|
|
12097
12116
|
);
|
|
12098
12117
|
}, j = (c, f) => {
|
|
12099
|
-
const
|
|
12118
|
+
const h = ze(c);
|
|
12100
12119
|
return /* @__PURE__ */ s("div", { className: "space-y-4", children: [
|
|
12101
12120
|
c.conditionalOn && /* @__PURE__ */ i(Gt, { helpText: c.conditionalHelpText, children: /* @__PURE__ */ s(
|
|
12102
12121
|
"div",
|
|
12103
12122
|
{
|
|
12104
12123
|
className: "metakyc-option-label",
|
|
12105
12124
|
role: "checkbox",
|
|
12106
|
-
"aria-checked":
|
|
12107
|
-
onClick: () => le(c.conditionalOn,
|
|
12125
|
+
"aria-checked": h,
|
|
12126
|
+
onClick: () => le(c.conditionalOn, h ? "false" : "true"),
|
|
12108
12127
|
style: { display: "flex", alignItems: "center", gap: "10px", cursor: "pointer", margin: 0, padding: 0, userSelect: "none" },
|
|
12109
12128
|
children: [
|
|
12110
12129
|
/* @__PURE__ */ i(
|
|
12111
12130
|
We,
|
|
12112
12131
|
{
|
|
12113
|
-
checked:
|
|
12132
|
+
checked: h,
|
|
12114
12133
|
onChange: (A) => le(c.conditionalOn, A ? "true" : "false")
|
|
12115
12134
|
}
|
|
12116
12135
|
),
|
|
@@ -12125,7 +12144,7 @@ const xa = {
|
|
|
12125
12144
|
]
|
|
12126
12145
|
}
|
|
12127
12146
|
) }),
|
|
12128
|
-
|
|
12147
|
+
h && /* @__PURE__ */ i("div", { className: "metakyc-form-grid", children: c.fields.map((A, N) => {
|
|
12129
12148
|
const w = Math.min(4, Math.max(1, Number(A.colSpan) || 4)), ae = A.isCustom ? `custom-${N}-${A.paramName}` : `builtin-${A.name}-${N}`;
|
|
12130
12149
|
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
12150
|
}) })
|
|
@@ -12137,9 +12156,9 @@ const xa = {
|
|
|
12137
12156
|
/* @__PURE__ */ i("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)", fontSize: "0.875rem" }, children: d("common.loadingForm") })
|
|
12138
12157
|
] }) }) });
|
|
12139
12158
|
if (P) {
|
|
12140
|
-
const c = P[pe] ?? P[0], f = Ye === -1,
|
|
12159
|
+
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
12160
|
let ke;
|
|
12142
|
-
return se || w ? ke = d("common.blocked") :
|
|
12161
|
+
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
12162
|
/* @__PURE__ */ i(Te, { children: /* @__PURE__ */ i(kt, { title: (o == null ? void 0 : o.title) || d("createApplicant.title") }) }),
|
|
12144
12163
|
/* @__PURE__ */ s(oe, { children: [
|
|
12145
12164
|
(c.title || c.subtitle || c.description) && /* @__PURE__ */ s("div", { className: "mb-4", children: [
|
|
@@ -12169,7 +12188,7 @@ const xa = {
|
|
|
12169
12188
|
)
|
|
12170
12189
|
] }),
|
|
12171
12190
|
A > 1 && /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem", marginBottom: "1rem" }, children: [
|
|
12172
|
-
P.map((
|
|
12191
|
+
P.map((he, Ve) => /* @__PURE__ */ i(
|
|
12173
12192
|
"div",
|
|
12174
12193
|
{
|
|
12175
12194
|
style: {
|
|
@@ -12196,7 +12215,7 @@ const xa = {
|
|
|
12196
12215
|
" ",
|
|
12197
12216
|
xe
|
|
12198
12217
|
] }),
|
|
12199
|
-
ae.map((
|
|
12218
|
+
ae.map((he, Ve) => /* @__PURE__ */ i("p", { className: "text-sm", style: { color: "var(--metakyc-danger, #ef4444)" }, children: he }, Ve))
|
|
12200
12219
|
] }),
|
|
12201
12220
|
j(c)
|
|
12202
12221
|
] }),
|
|
@@ -12222,7 +12241,7 @@ const xa = {
|
|
|
12222
12241
|
type: "button",
|
|
12223
12242
|
isLoading: D || m,
|
|
12224
12243
|
disabled: we,
|
|
12225
|
-
onClick:
|
|
12244
|
+
onClick: h ? He : at,
|
|
12226
12245
|
children: ke
|
|
12227
12246
|
}
|
|
12228
12247
|
)
|
|
@@ -12251,19 +12270,19 @@ const xa = {
|
|
|
12251
12270
|
function Rt(e) {
|
|
12252
12271
|
return e == null || e === "" || Array.isArray(e) && e.length === 0;
|
|
12253
12272
|
}
|
|
12254
|
-
const
|
|
12273
|
+
const Wa = ({
|
|
12255
12274
|
workflowKey: e,
|
|
12256
12275
|
externalRefId: t,
|
|
12257
12276
|
onSuccess: a,
|
|
12258
12277
|
onCancel: r
|
|
12259
12278
|
}) => {
|
|
12260
12279
|
var Je, k, j, $, K, te;
|
|
12261
|
-
const { config: n, baseInformationService: l, currentTheme: o } = Oe(), { createCompanyApplicant: p, isLoading: m } =
|
|
12280
|
+
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
12281
|
if (!y)
|
|
12263
12282
|
throw new Error(
|
|
12264
12283
|
"workflowKey is required. Provide it either as a prop to CreateCompanyApplicantForm or set it in config.applicantForm.workflowKey"
|
|
12265
12284
|
);
|
|
12266
|
-
const
|
|
12285
|
+
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
12286
|
() => o != null && o.companyFormPages && o.companyFormPages.length > 0 ? o.companyFormPages : null,
|
|
12268
12287
|
[o == null ? void 0 : o.companyFormPages]
|
|
12269
12288
|
), P = Fe(() => {
|
|
@@ -12310,7 +12329,7 @@ const Ua = ({
|
|
|
12310
12329
|
try {
|
|
12311
12330
|
const u = await Promise.all(
|
|
12312
12331
|
g.map(async (c) => {
|
|
12313
|
-
const f = c != null ? String(c) : "all",
|
|
12332
|
+
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
12333
|
return V.current.add(f), R.current.delete(f), [f, N];
|
|
12315
12334
|
})
|
|
12316
12335
|
);
|
|
@@ -12369,7 +12388,7 @@ const Ua = ({
|
|
|
12369
12388
|
postalCode: "",
|
|
12370
12389
|
addressCountry: "",
|
|
12371
12390
|
lei: "",
|
|
12372
|
-
externalRefId:
|
|
12391
|
+
externalRefId: v,
|
|
12373
12392
|
...W
|
|
12374
12393
|
}), [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
12394
|
var I;
|
|
@@ -12431,35 +12450,35 @@ const Ua = ({
|
|
|
12431
12450
|
externalRefId: ((g = X.externalRefId) == null ? void 0 : g.trim()) || void 0
|
|
12432
12451
|
}, x = T ? T.filter((f) => _(f)).flatMap((f) => f.fields).filter((f) => !f.isCustom && f.name).map((f) => f.name) : B;
|
|
12433
12452
|
for (const f of x) {
|
|
12434
|
-
const
|
|
12435
|
-
if (!Rt(
|
|
12453
|
+
const h = X[f];
|
|
12454
|
+
if (!Rt(h))
|
|
12436
12455
|
switch (f) {
|
|
12437
12456
|
case "companyName":
|
|
12438
|
-
I.companyName =
|
|
12457
|
+
I.companyName = h;
|
|
12439
12458
|
break;
|
|
12440
12459
|
case "email":
|
|
12441
|
-
I.companyEmail =
|
|
12460
|
+
I.companyEmail = h;
|
|
12442
12461
|
break;
|
|
12443
12462
|
case "phone":
|
|
12444
|
-
I.companyPhone =
|
|
12463
|
+
I.companyPhone = h;
|
|
12445
12464
|
break;
|
|
12446
12465
|
case "registrationNumber":
|
|
12447
|
-
I.companyRegistrationNumber =
|
|
12466
|
+
I.companyRegistrationNumber = h;
|
|
12448
12467
|
break;
|
|
12449
12468
|
case "countryResidence":
|
|
12450
|
-
I.companyCountry =
|
|
12469
|
+
I.companyCountry = h;
|
|
12451
12470
|
break;
|
|
12452
12471
|
case "city":
|
|
12453
|
-
I.companyCity =
|
|
12472
|
+
I.companyCity = h;
|
|
12454
12473
|
break;
|
|
12455
12474
|
case "street":
|
|
12456
|
-
I.companyStreet =
|
|
12475
|
+
I.companyStreet = h;
|
|
12457
12476
|
break;
|
|
12458
12477
|
case "postalCode":
|
|
12459
|
-
I.companyZip =
|
|
12478
|
+
I.companyZip = h;
|
|
12460
12479
|
break;
|
|
12461
12480
|
default:
|
|
12462
|
-
I[f] =
|
|
12481
|
+
I[f] = h;
|
|
12463
12482
|
break;
|
|
12464
12483
|
}
|
|
12465
12484
|
}
|
|
@@ -12467,14 +12486,14 @@ const Ua = ({
|
|
|
12467
12486
|
if (T) {
|
|
12468
12487
|
for (const f of T)
|
|
12469
12488
|
if (_(f))
|
|
12470
|
-
for (const
|
|
12471
|
-
if (!
|
|
12472
|
-
const A = Y[
|
|
12489
|
+
for (const h of f.fields) {
|
|
12490
|
+
if (!h.isCustom || !h.paramName || h.customType === "paragraph" || h.customType === "html" || h.customType === "br" || h.customType === "link") continue;
|
|
12491
|
+
const A = Y[h.paramName] ?? "";
|
|
12473
12492
|
let N;
|
|
12474
|
-
if (
|
|
12493
|
+
if (h.customType === "checkbox" || h.customType === "link_checkbox")
|
|
12475
12494
|
N = A === "true" ? "yes" : "no";
|
|
12476
|
-
else if (N = A, !N && !
|
|
12477
|
-
u.push({ paramName:
|
|
12495
|
+
else if (N = A, !N && !h.required) continue;
|
|
12496
|
+
u.push({ paramName: h.paramName, value: N });
|
|
12478
12497
|
}
|
|
12479
12498
|
}
|
|
12480
12499
|
u.length > 0 && (I.applicantAdditionalDatas = u);
|
|
@@ -12497,7 +12516,7 @@ const Ua = ({
|
|
|
12497
12516
|
}, at = (g, I, x, u, c) => {
|
|
12498
12517
|
const f = mt[g];
|
|
12499
12518
|
if (!f) return null;
|
|
12500
|
-
const
|
|
12519
|
+
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
12520
|
switch (f.type) {
|
|
12502
12521
|
case "select":
|
|
12503
12522
|
if (g === "countryResidence" || g === "addressCountry") {
|
|
@@ -12505,10 +12524,10 @@ const Ua = ({
|
|
|
12505
12524
|
return /* @__PURE__ */ i(
|
|
12506
12525
|
Xe,
|
|
12507
12526
|
{
|
|
12508
|
-
required:
|
|
12527
|
+
required: h,
|
|
12509
12528
|
label: we,
|
|
12510
12529
|
value: X[g] || "",
|
|
12511
|
-
onChange: (
|
|
12530
|
+
onChange: (he) => de(g, he),
|
|
12512
12531
|
options: [{ value: "", label: se ? d("placeholders.selectCountry") : N }, ...ke],
|
|
12513
12532
|
disabled: re,
|
|
12514
12533
|
readOnly: w,
|
|
@@ -12522,7 +12541,7 @@ const Ua = ({
|
|
|
12522
12541
|
return /* @__PURE__ */ i(
|
|
12523
12542
|
Ce,
|
|
12524
12543
|
{
|
|
12525
|
-
required:
|
|
12544
|
+
required: h,
|
|
12526
12545
|
type: "date",
|
|
12527
12546
|
label: we,
|
|
12528
12547
|
placeholder: se ? void 0 : N,
|
|
@@ -12537,7 +12556,7 @@ const Ua = ({
|
|
|
12537
12556
|
return /* @__PURE__ */ i(
|
|
12538
12557
|
Ce,
|
|
12539
12558
|
{
|
|
12540
|
-
required:
|
|
12559
|
+
required: h,
|
|
12541
12560
|
type: "email",
|
|
12542
12561
|
label: we,
|
|
12543
12562
|
placeholder: se ? void 0 : N,
|
|
@@ -12552,7 +12571,7 @@ const Ua = ({
|
|
|
12552
12571
|
return /* @__PURE__ */ i(
|
|
12553
12572
|
Ce,
|
|
12554
12573
|
{
|
|
12555
|
-
required:
|
|
12574
|
+
required: h,
|
|
12556
12575
|
type: "tel",
|
|
12557
12576
|
label: we,
|
|
12558
12577
|
placeholder: se ? void 0 : N,
|
|
@@ -12567,7 +12586,7 @@ const Ua = ({
|
|
|
12567
12586
|
return /* @__PURE__ */ i(
|
|
12568
12587
|
Ce,
|
|
12569
12588
|
{
|
|
12570
|
-
required:
|
|
12589
|
+
required: h,
|
|
12571
12590
|
type: "text",
|
|
12572
12591
|
label: we,
|
|
12573
12592
|
placeholder: se ? void 0 : N,
|
|
@@ -12621,7 +12640,7 @@ const Ua = ({
|
|
|
12621
12640
|
We,
|
|
12622
12641
|
{
|
|
12623
12642
|
checked: f,
|
|
12624
|
-
onChange: (
|
|
12643
|
+
onChange: (h) => D(g.paramName, h ? "true" : "false")
|
|
12625
12644
|
}
|
|
12626
12645
|
),
|
|
12627
12646
|
/* @__PURE__ */ s("span", { style: { fontSize: "14px", color: "var(--metakyc-text-primary, #111827)" }, children: [
|
|
@@ -12681,7 +12700,7 @@ const Ua = ({
|
|
|
12681
12700
|
/* @__PURE__ */ i("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)", fontSize: "0.875rem" }, children: d("common.loadingForm") })
|
|
12682
12701
|
] }) }) });
|
|
12683
12702
|
if (T) {
|
|
12684
|
-
const g = T[ye] ?? T[0], I = ze === -1, x = le === -1, u = T.length, c = _(g), f = ge(g),
|
|
12703
|
+
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
12704
|
let w;
|
|
12686
12705
|
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
12706
|
/* @__PURE__ */ i(Te, { children: /* @__PURE__ */ i(kt, { title: (o == null ? void 0 : o.title) || d("createCompany.title") }) }),
|
|
@@ -12690,7 +12709,7 @@ const Ua = ({
|
|
|
12690
12709
|
g.title && /* @__PURE__ */ i("h3", { className: "font-semibold text-base", style: { color: "var(--metakyc-text-primary, #111827)" }, children: G(g.title, d) }),
|
|
12691
12710
|
g.subtitle && /* @__PURE__ */ i("p", { className: "text-sm mt-0.5", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: G(g.subtitle, d) })
|
|
12692
12711
|
] }),
|
|
12693
|
-
(M ||
|
|
12712
|
+
(M || h.length > 0) && /* @__PURE__ */ s("div", { className: "mb-4 p-3 rounded-lg", style: {
|
|
12694
12713
|
backgroundColor: "var(--metakyc-danger-bg, color-mix(in srgb, var(--metakyc-danger, #ef4444) 10%, transparent))",
|
|
12695
12714
|
border: "1px solid color-mix(in srgb, var(--metakyc-danger, #ef4444) 30%, transparent)"
|
|
12696
12715
|
}, children: [
|
|
@@ -12699,7 +12718,7 @@ const Ua = ({
|
|
|
12699
12718
|
" ",
|
|
12700
12719
|
M
|
|
12701
12720
|
] }),
|
|
12702
|
-
|
|
12721
|
+
h.map((ae, se) => /* @__PURE__ */ i("p", { className: "text-sm", style: { color: "var(--metakyc-danger, #ef4444)" }, children: ae }, se))
|
|
12703
12722
|
] }),
|
|
12704
12723
|
u > 1 && /* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", gap: "0.5rem", marginBottom: "1rem" }, children: [
|
|
12705
12724
|
T.map((ae, se) => /* @__PURE__ */ i(
|
|
@@ -12760,7 +12779,7 @@ const Ua = ({
|
|
|
12760
12779
|
/* @__PURE__ */ i(Z, { type: "submit", isLoading: F || m, children: d("createCompany.registerCompany") })
|
|
12761
12780
|
] })
|
|
12762
12781
|
] }) }) });
|
|
12763
|
-
},
|
|
12782
|
+
}, Ka = ({
|
|
12764
12783
|
applicantId: e,
|
|
12765
12784
|
onComplete: t,
|
|
12766
12785
|
onError: a,
|
|
@@ -12773,7 +12792,7 @@ const Ua = ({
|
|
|
12773
12792
|
workflowKey: m,
|
|
12774
12793
|
nextWorkflowKey: d,
|
|
12775
12794
|
hasWorkflowChanged: y,
|
|
12776
|
-
isLoading:
|
|
12795
|
+
isLoading: v,
|
|
12777
12796
|
error: z,
|
|
12778
12797
|
moveBack: L,
|
|
12779
12798
|
refreshProgress: C
|
|
@@ -12784,7 +12803,7 @@ const Ua = ({
|
|
|
12784
12803
|
l != null && l.workflowResult && t && t(l.workflowResult);
|
|
12785
12804
|
}, [l == null ? void 0 : l.workflowResult, t]), Ne.useEffect(() => {
|
|
12786
12805
|
y && T(!1);
|
|
12787
|
-
}, [y]),
|
|
12806
|
+
}, [y]), v || !l)
|
|
12788
12807
|
return /* @__PURE__ */ i("div", { className: `metakyc-sdk ${r || ""}`, children: /* @__PURE__ */ i(ne, { children: /* @__PURE__ */ s(oe, { children: [
|
|
12789
12808
|
/* @__PURE__ */ i(Be, { className: "my-8" }),
|
|
12790
12809
|
/* @__PURE__ */ i("p", { className: "text-center mt-4", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: n("workflow.loadingWorkflow") })
|
|
@@ -12877,7 +12896,7 @@ const Ua = ({
|
|
|
12877
12896
|
}, children: [
|
|
12878
12897
|
/* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "flex-start", justifyContent: "space-between", marginBottom: "16px", gap: "8px", flexWrap: "wrap" }, children: [
|
|
12879
12898
|
/* @__PURE__ */ i(kt, {}),
|
|
12880
|
-
/* @__PURE__ */ i(
|
|
12899
|
+
/* @__PURE__ */ i(si, { variant: l.status === 1 ? "info" : "success", children: n("common.stepXofY", { current: re, total: b }) })
|
|
12881
12900
|
] }),
|
|
12882
12901
|
/* @__PURE__ */ s("div", { style: { position: "relative", height: "4px", borderRadius: "999px", overflow: "hidden", marginBottom: "16px" }, children: [
|
|
12883
12902
|
/* @__PURE__ */ i("div", { style: { position: "absolute", inset: 0, backgroundColor: "var(--metakyc-border, #e5e7eb)", opacity: 0.3 } }),
|
|
@@ -12918,7 +12937,7 @@ const Ua = ({
|
|
|
12918
12937
|
case me.Overview:
|
|
12919
12938
|
return /* @__PURE__ */ i(na, { ...b });
|
|
12920
12939
|
case me.IdentitySdk:
|
|
12921
|
-
return /* @__PURE__ */ i(
|
|
12940
|
+
return /* @__PURE__ */ i(ha, { ...b });
|
|
12922
12941
|
case me.RiskScoring:
|
|
12923
12942
|
return /* @__PURE__ */ i(ua, { ...b });
|
|
12924
12943
|
case me.AdditionalData:
|
|
@@ -12982,7 +13001,7 @@ const Ua = ({
|
|
|
12982
13001
|
gap: "0"
|
|
12983
13002
|
},
|
|
12984
13003
|
children: e.map((o, p) => {
|
|
12985
|
-
const m = p < t, d = p === t, y = m || d,
|
|
13004
|
+
const m = p < t, d = p === t, y = m || d, v = o.displayName || o.name || a(o.action) || `Step ${p + 1}`;
|
|
12986
13005
|
return /* @__PURE__ */ s(Ne.Fragment, { children: [
|
|
12987
13006
|
/* @__PURE__ */ s(
|
|
12988
13007
|
"div",
|
|
@@ -13022,7 +13041,7 @@ const Ua = ({
|
|
|
13022
13041
|
fontWeight: d ? 600 : 400,
|
|
13023
13042
|
color: d ? "var(--metakyc-text-primary, #111827)" : m ? "var(--metakyc-primary, #2563eb)" : "var(--metakyc-text-muted, #9ca3af)",
|
|
13024
13043
|
transition: "color 0.2s ease"
|
|
13025
|
-
}, children:
|
|
13044
|
+
}, children: v })
|
|
13026
13045
|
]
|
|
13027
13046
|
}
|
|
13028
13047
|
),
|
|
@@ -13042,7 +13061,7 @@ const Ua = ({
|
|
|
13042
13061
|
);
|
|
13043
13062
|
}
|
|
13044
13063
|
);
|
|
13045
|
-
function
|
|
13064
|
+
function Ya(e) {
|
|
13046
13065
|
return Ze.object({
|
|
13047
13066
|
questionResults: Ze.any()
|
|
13048
13067
|
}).passthrough();
|
|
@@ -13069,37 +13088,37 @@ function Sa(e) {
|
|
|
13069
13088
|
}
|
|
13070
13089
|
return t;
|
|
13071
13090
|
}
|
|
13072
|
-
function
|
|
13091
|
+
function Ha(e) {
|
|
13073
13092
|
const t = {};
|
|
13074
13093
|
return e.uploadDocumentFiles.forEach((a) => {
|
|
13075
13094
|
const r = `file_${a.id}`;
|
|
13076
13095
|
t[r] = Sa(a);
|
|
13077
13096
|
}), Ze.object(t);
|
|
13078
13097
|
}
|
|
13079
|
-
function
|
|
13098
|
+
function $a(e) {
|
|
13080
13099
|
return Ze.any();
|
|
13081
13100
|
}
|
|
13082
13101
|
function Ca(e) {
|
|
13083
13102
|
return Ze.string().min(1, "This question is required");
|
|
13084
13103
|
}
|
|
13085
|
-
function
|
|
13104
|
+
function _a(e) {
|
|
13086
13105
|
const t = {};
|
|
13087
13106
|
return e.appropriatenessQuestions.forEach((a) => {
|
|
13088
13107
|
const r = `question_${a.id}`;
|
|
13089
13108
|
t[r] = Ca();
|
|
13090
13109
|
}), Ze.object(t);
|
|
13091
13110
|
}
|
|
13092
|
-
const
|
|
13111
|
+
const Ga = Ze.any();
|
|
13093
13112
|
export {
|
|
13094
13113
|
jt as ALLOWED_LANGUAGES,
|
|
13095
13114
|
fi as ApplicantProgressOnHoldReason,
|
|
13096
13115
|
Ue as ApplicantProgressStatus,
|
|
13097
13116
|
Ei as ApplicantService,
|
|
13098
|
-
|
|
13117
|
+
hi as ApplicantStatus,
|
|
13099
13118
|
Si as AppropriatenessQuestionType,
|
|
13100
13119
|
Mi as AppropriatenessTestService,
|
|
13101
13120
|
ya as AppropriatenessTestStep,
|
|
13102
|
-
|
|
13121
|
+
si as Badge,
|
|
13103
13122
|
Vi as BaseInformationService,
|
|
13104
13123
|
Z as Button,
|
|
13105
13124
|
mt as COMPANY_FIELD_METADATA,
|
|
@@ -13109,8 +13128,8 @@ export {
|
|
|
13109
13128
|
Te as CardHeader,
|
|
13110
13129
|
We as Checkbox,
|
|
13111
13130
|
it as CountriesType,
|
|
13112
|
-
|
|
13113
|
-
|
|
13131
|
+
Ua as CreateApplicantForm,
|
|
13132
|
+
Wa as CreateCompanyApplicantForm,
|
|
13114
13133
|
Ni as CriteriaBuiltInType,
|
|
13115
13134
|
Ri as DEFAULT_COMPANY_VISIBLE_FIELDS,
|
|
13116
13135
|
Ii as DEFAULT_VISIBLE_FIELDS,
|
|
@@ -13127,20 +13146,21 @@ export {
|
|
|
13127
13146
|
tt as IdentityProviderManager,
|
|
13128
13147
|
Oi as IdentityService,
|
|
13129
13148
|
qe as IdentityVerificationProvider,
|
|
13130
|
-
|
|
13149
|
+
ha as IdentityVerificationStep,
|
|
13131
13150
|
Ce as Input,
|
|
13132
13151
|
Bi as InvestorCategorizationService,
|
|
13133
13152
|
ga as InvestorCategorizationStep,
|
|
13134
13153
|
Ee as InvestorCategorizationType,
|
|
13135
13154
|
Ti as InvestorCategoryType,
|
|
13136
|
-
|
|
13137
|
-
|
|
13155
|
+
vi as KycProcessStatus,
|
|
13156
|
+
ei as KycStatus,
|
|
13138
13157
|
_t as KycStatusDisplay,
|
|
13139
|
-
|
|
13158
|
+
Ka as KycWorkflow,
|
|
13140
13159
|
ba as Logo,
|
|
13141
|
-
|
|
13160
|
+
ni as MetaKYCContext,
|
|
13142
13161
|
Ge as MetaKYCError,
|
|
13143
|
-
|
|
13162
|
+
Ma as MetaKYCProvider,
|
|
13163
|
+
Ea as MetaKYCSession,
|
|
13144
13164
|
Ur as MultiSelect,
|
|
13145
13165
|
ir as OnfidoProvider,
|
|
13146
13166
|
ji as OverviewService,
|
|
@@ -13153,7 +13173,7 @@ export {
|
|
|
13153
13173
|
ki as RiskLevel,
|
|
13154
13174
|
Fi as RiskScoringService,
|
|
13155
13175
|
ua as RiskScoringStep,
|
|
13156
|
-
|
|
13176
|
+
ri as SDK_VERSION,
|
|
13157
13177
|
rr as SardinAIProvider,
|
|
13158
13178
|
Xe as SearchableSelect,
|
|
13159
13179
|
Et as Select,
|
|
@@ -13173,8 +13193,8 @@ export {
|
|
|
13173
13193
|
xt as WorkflowResultType,
|
|
13174
13194
|
Qi as WorkflowState,
|
|
13175
13195
|
me as WorkflowStepAction,
|
|
13176
|
-
|
|
13177
|
-
|
|
13196
|
+
Ga as appropriatenessTestSchema,
|
|
13197
|
+
Ba as clearAllStorage,
|
|
13178
13198
|
Ar as clearApplicantId,
|
|
13179
13199
|
Er as clearWorkflowState,
|
|
13180
13200
|
Me as cn,
|
|
@@ -13184,26 +13204,26 @@ export {
|
|
|
13184
13204
|
Rr as fileToBase64,
|
|
13185
13205
|
Ui as fintechTheme,
|
|
13186
13206
|
Ct as formatFileSize,
|
|
13187
|
-
|
|
13188
|
-
|
|
13189
|
-
|
|
13190
|
-
|
|
13191
|
-
|
|
13207
|
+
_a as generateAppropriatenessSchema,
|
|
13208
|
+
Ya as generateQuestionnaireSchema,
|
|
13209
|
+
$a as generateRiskScoringSchema,
|
|
13210
|
+
Ha as generateUploadDocumentSchema,
|
|
13211
|
+
Oa as getAcceptString,
|
|
13192
13212
|
zr as getApplicantId,
|
|
13193
13213
|
ft as getThemePreset,
|
|
13194
|
-
|
|
13214
|
+
Va as getWorkflowState,
|
|
13195
13215
|
Wi as healthcareTheme,
|
|
13196
|
-
|
|
13197
|
-
|
|
13216
|
+
Pa as isScriptLoaded,
|
|
13217
|
+
ti as loadScript,
|
|
13198
13218
|
Yi as minimalTheme,
|
|
13199
13219
|
Ki as modernTheme,
|
|
13200
|
-
|
|
13220
|
+
Da as removeScript,
|
|
13201
13221
|
G as resolveDisplayText,
|
|
13202
13222
|
Ir as saveApplicantId,
|
|
13203
13223
|
Lr as saveWorkflowState,
|
|
13204
13224
|
Hi as themePresets,
|
|
13205
|
-
|
|
13206
|
-
|
|
13225
|
+
oi as useApplicant,
|
|
13226
|
+
qa as useAppropriatenessTest,
|
|
13207
13227
|
Fr as useIdentityVerification,
|
|
13208
13228
|
Pr as useKycWorkflow,
|
|
13209
13229
|
Oe as useMetaKYC,
|
|
@@ -13212,7 +13232,7 @@ export {
|
|
|
13212
13232
|
Or as useRiskScoring,
|
|
13213
13233
|
Ie as useTranslation,
|
|
13214
13234
|
Mr as useUploadDocument,
|
|
13215
|
-
|
|
13216
|
-
|
|
13235
|
+
ja as validateFileSize,
|
|
13236
|
+
Fa as validateFileType
|
|
13217
13237
|
};
|
|
13218
13238
|
//# sourceMappingURL=index.js.map
|