@vpdev2/metakyc 1.0.27 → 1.0.29
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/i18n/TranslationContext.d.ts.map +1 -1
- package/dist/i18n/index.d.ts +8 -1
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/index.cjs +13 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +370 -358
- package/dist/index.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var fe = (e, t, i) =>
|
|
4
|
-
import
|
|
1
|
+
var lr = Object.defineProperty;
|
|
2
|
+
var cr = (e, t, i) => t in e ? lr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
|
|
3
|
+
var fe = (e, t, i) => cr(e, typeof t != "symbol" ? t + "" : t, i);
|
|
4
|
+
import dr from "axios";
|
|
5
5
|
import { jsx as r, jsxs as s, Fragment as ut } from "react/jsx-runtime";
|
|
6
6
|
import * as Et from "react";
|
|
7
|
-
import Se, { createContext as
|
|
8
|
-
import
|
|
9
|
-
import { useForm as
|
|
7
|
+
import Se, { createContext as _t, useMemo as Me, useState as b, useEffect as ke, useContext as Gt, useCallback as te, useRef as me, forwardRef as kt, createElement as Tt } from "react";
|
|
8
|
+
import mr, { createPortal as zt } from "react-dom";
|
|
9
|
+
import { useForm as ur, Controller as at } from "react-hook-form";
|
|
10
10
|
import { z as Xe } from "zod";
|
|
11
|
-
var de = /* @__PURE__ */ ((e) => (e[e.IdentitySdk = 0] = "IdentitySdk", e[e.RiskScoring = 1] = "RiskScoring", e[e.Questionaries = 2] = "Questionaries", e[e.AdditionalData = 3] = "AdditionalData", e[e.AppropriatenessTest = 4] = "AppropriatenessTest", e[e.UploadDocument = 5] = "UploadDocument", e[e.ManualReview = 6] = "ManualReview", e[e.Overview = 7] = "Overview", e[e.InvestorCategorization = 8] = "InvestorCategorization", e))(de || {}), bt = /* @__PURE__ */ ((e) => (e[e.NotStarted = 0] = "NotStarted", e[e.InProgress = 1] = "InProgress", e[e.Success = 2] = "Success", e[e.PartialSuccess = 3] = "PartialSuccess", e[e.Failed = 4] = "Failed", e[e.Skipped = 5] = "Skipped", e[e.AdminReview = 6] = "AdminReview", e[e.SkippedAndAdminReview = 7] = "SkippedAndAdminReview", e))(bt || {}), qe = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.InProgress = 1] = "InProgress", e[e.Finished = 2] = "Finished", e[e.OnHold = 3] = "OnHold", e[e.IdentityPending = 4] = "IdentityPending", e))(qe || {}),
|
|
11
|
+
var de = /* @__PURE__ */ ((e) => (e[e.IdentitySdk = 0] = "IdentitySdk", e[e.RiskScoring = 1] = "RiskScoring", e[e.Questionaries = 2] = "Questionaries", e[e.AdditionalData = 3] = "AdditionalData", e[e.AppropriatenessTest = 4] = "AppropriatenessTest", e[e.UploadDocument = 5] = "UploadDocument", e[e.ManualReview = 6] = "ManualReview", e[e.Overview = 7] = "Overview", e[e.InvestorCategorization = 8] = "InvestorCategorization", e))(de || {}), bt = /* @__PURE__ */ ((e) => (e[e.NotStarted = 0] = "NotStarted", e[e.InProgress = 1] = "InProgress", e[e.Success = 2] = "Success", e[e.PartialSuccess = 3] = "PartialSuccess", e[e.Failed = 4] = "Failed", e[e.Skipped = 5] = "Skipped", e[e.AdminReview = 6] = "AdminReview", e[e.SkippedAndAdminReview = 7] = "SkippedAndAdminReview", e))(bt || {}), qe = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.InProgress = 1] = "InProgress", e[e.Finished = 2] = "Finished", e[e.OnHold = 3] = "OnHold", e[e.IdentityPending = 4] = "IdentityPending", e))(qe || {}), pr = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.RepresentativeKYC = 1] = "RepresentativeKYC", e[e.ManualRiskCriteria = 2] = "ManualRiskCriteria", e[e.UploadDocumentReview = 3] = "UploadDocumentReview", e[e.AdminReview = 4] = "AdminReview", e))(pr || {}), gr = /* @__PURE__ */ ((e) => (e[e.LowRisk = 0] = "LowRisk", e[e.MediumRisk = 1] = "MediumRisk", e[e.HighRisk = 2] = "HighRisk", e[e.Alert = 3] = "Alert", e))(gr || {}), nt = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Pending = 1] = "Pending", e[e.Approved = 2] = "Approved", e[e.Rejected = 3] = "Rejected", e[e.ResendRequested = 4] = "ResendRequested", e[e.Unknown = 5] = "Unknown", e[e.InProgress = 6] = "InProgress", e))(nt || {}), ot = /* @__PURE__ */ ((e) => (e[e.Approved = 0] = "Approved", e[e.Reject = 1] = "Reject", e[e.UnderReview = 2] = "UnderReview", e[e.Closed = 3] = "Closed", e[e.AdminReview = 4] = "AdminReview", e[e.New = 5] = "New", e[e.InProgress = 6] = "InProgress", e))(ot || {}), yr = /* @__PURE__ */ ((e) => (e[e.ProviderResultPending = 0] = "ProviderResultPending", e[e.ProviderResultReceived = 1] = "ProviderResultReceived", e[e.Canceled = 2] = "Canceled", e[e.ExtendedToNewApplicant = 3] = "ExtendedToNewApplicant", e))(yr || {}), fr = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.ProviderResultPending = 1] = "ProviderResultPending", e[e.ProviderResultReceived = 2] = "ProviderResultReceived", e[e.Canceled = 3] = "Canceled", e))(fr || {}), Be = /* @__PURE__ */ ((e) => (e[e.Onfido = 0] = "Onfido", e[e.Sumsub = 2] = "Sumsub", e[e.SardinAI = 3] = "SardinAI", e))(Be || {}), kr = /* @__PURE__ */ ((e) => (e[e.Individual = 0] = "Individual", e[e.Company = 1] = "Company", e))(kr || {}), xt = /* @__PURE__ */ ((e) => (e[e.Male = 0] = "Male", e[e.Female = 1] = "Female", e[e.Other = 2] = "Other", e))(xt || {}), hr = /* @__PURE__ */ ((e) => (e[e.Image = 0] = "Image", e[e.Video = 1] = "Video", e[e.PDF = 2] = "PDF", e[e.OfficePDF = 3] = "OfficePDF", e[e.Custom = 4] = "Custom", e))(hr || {}), vr = /* @__PURE__ */ ((e) => (e[e.Pending = 0] = "Pending", e[e.Approved = 1] = "Approved", e[e.Rejected = 2] = "Rejected", e[e.RequiresRevision = 3] = "RequiresRevision", e))(vr || {}), br = /* @__PURE__ */ ((e) => (e[e.SingleChoice = 0] = "SingleChoice", e[e.MultipleChoice = 1] = "MultipleChoice", e[e.Text = 2] = "Text", e))(br || {}), Ge = /* @__PURE__ */ ((e) => (e[e.String = 0] = "String", e[e.Integer = 1] = "Integer", e[e.Money = 2] = "Money", e[e.Boolean = 3] = "Boolean", e[e.Date = 4] = "Date", e[e.Country = 5] = "Country", e[e.DigitOnly = 6] = "DigitOnly", e))(Ge || {}), xr = /* @__PURE__ */ ((e) => (e[e.Text = 0] = "Text", e[e.Radio = 1] = "Radio", e[e.Checkbox = 2] = "Checkbox", e[e.Dropdown = 3] = "Dropdown", e[e.Country = 4] = "Country", e))(xr || {}), wr = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Country = 1] = "Country", e))(wr || {}), Le = /* @__PURE__ */ ((e) => (e[e.Individual = 0] = "Individual", e[e.Sophisticated = 1] = "Sophisticated", e[e.HighNetWorth = 2] = "HighNetWorth", e[e.Business = 3] = "Business", e))(Le || {}), Sr = /* @__PURE__ */ ((e) => (e[e.Retail = 0] = "Retail", e[e.Professional = 1] = "Professional", e[e.EligibleCounterparty = 2] = "EligibleCounterparty", e))(Sr || {});
|
|
12
12
|
const tt = {
|
|
13
13
|
Nationality: 10,
|
|
14
14
|
Address: 20,
|
|
@@ -58,12 +58,12 @@ const tt = {
|
|
|
58
58
|
postalCode: { label: "Postal Code", type: "text" },
|
|
59
59
|
addressCountry: { label: "Address Country", type: "select", countriesType: tt.Address },
|
|
60
60
|
lei: { label: "LEI", type: "text" }
|
|
61
|
-
},
|
|
61
|
+
}, Cr = [
|
|
62
62
|
"companyName",
|
|
63
63
|
"email",
|
|
64
64
|
"phone",
|
|
65
65
|
"registrationNumber"
|
|
66
|
-
],
|
|
66
|
+
], Nr = [
|
|
67
67
|
"firstName",
|
|
68
68
|
"lastName",
|
|
69
69
|
"email",
|
|
@@ -89,7 +89,7 @@ const tt = {
|
|
|
89
89
|
{ value: "NO", label: "Norwegian" }
|
|
90
90
|
];
|
|
91
91
|
var Pe = /* @__PURE__ */ ((e) => (e.Default = "default", e.Corporate = "corporate", e.Fintech = "fintech", e.Healthcare = "healthcare", e.Modern = "modern", e.Minimal = "minimal", e))(Pe || {});
|
|
92
|
-
const
|
|
92
|
+
const Tr = {
|
|
93
93
|
timeout: 3e4,
|
|
94
94
|
retries: 3,
|
|
95
95
|
locale: "en",
|
|
@@ -97,7 +97,7 @@ const Cr = {
|
|
|
97
97
|
pattern: "host-controller"
|
|
98
98
|
}
|
|
99
99
|
};
|
|
100
|
-
class
|
|
100
|
+
class Rr {
|
|
101
101
|
constructor(t) {
|
|
102
102
|
this.config = t;
|
|
103
103
|
}
|
|
@@ -194,12 +194,12 @@ class gt {
|
|
|
194
194
|
return t instanceof _e;
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
class
|
|
197
|
+
class Ir {
|
|
198
198
|
constructor(t) {
|
|
199
199
|
fe(this, "axiosInstance");
|
|
200
200
|
fe(this, "endpointBuilder");
|
|
201
201
|
fe(this, "config");
|
|
202
|
-
this.config = { ...
|
|
202
|
+
this.config = { ...Tr, ...t }, this.endpointBuilder = new Rr(this.config.endpoints), this.axiosInstance = dr.create({
|
|
203
203
|
baseURL: this.config.baseUrl,
|
|
204
204
|
timeout: this.config.timeout,
|
|
205
205
|
headers: {
|
|
@@ -295,7 +295,7 @@ class Tr {
|
|
|
295
295
|
return this.axiosInstance;
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
|
-
class
|
|
298
|
+
class zr {
|
|
299
299
|
constructor(t) {
|
|
300
300
|
this.httpClient = t;
|
|
301
301
|
}
|
|
@@ -414,7 +414,7 @@ class Rr {
|
|
|
414
414
|
)).result;
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
class
|
|
417
|
+
class Ar {
|
|
418
418
|
constructor(t) {
|
|
419
419
|
this.httpClient = t;
|
|
420
420
|
}
|
|
@@ -441,7 +441,7 @@ class Ir {
|
|
|
441
441
|
)).result;
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
class
|
|
444
|
+
class Lr {
|
|
445
445
|
constructor(t) {
|
|
446
446
|
this.httpClient = t;
|
|
447
447
|
}
|
|
@@ -469,7 +469,7 @@ class zr {
|
|
|
469
469
|
await this.httpClient.post("UploadDocument", "ReviewUploadDocument", t);
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
class
|
|
472
|
+
class Er {
|
|
473
473
|
constructor(t) {
|
|
474
474
|
this.httpClient = t;
|
|
475
475
|
}
|
|
@@ -495,7 +495,7 @@ class Ar {
|
|
|
495
495
|
)).result;
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
class
|
|
498
|
+
class Pr {
|
|
499
499
|
constructor(t) {
|
|
500
500
|
this.httpClient = t;
|
|
501
501
|
}
|
|
@@ -517,7 +517,7 @@ class Lr {
|
|
|
517
517
|
await this.httpClient.get("Applicant", "PassOverview", { applicantId: t });
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
|
-
class
|
|
520
|
+
class Dr {
|
|
521
521
|
constructor(t) {
|
|
522
522
|
this.httpClient = t;
|
|
523
523
|
}
|
|
@@ -552,7 +552,7 @@ class Er {
|
|
|
552
552
|
)).result;
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
|
-
class
|
|
555
|
+
class jr {
|
|
556
556
|
constructor(t) {
|
|
557
557
|
this.httpClient = t;
|
|
558
558
|
}
|
|
@@ -620,7 +620,7 @@ class Pr {
|
|
|
620
620
|
return console.log("[IdentityService] Sumsub token refresh result:", i), i.result.accessToken;
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
class
|
|
623
|
+
class Mr {
|
|
624
624
|
constructor(t) {
|
|
625
625
|
this.httpClient = t;
|
|
626
626
|
}
|
|
@@ -656,7 +656,7 @@ class Dr {
|
|
|
656
656
|
)).result;
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
|
-
class
|
|
659
|
+
class Fr {
|
|
660
660
|
constructor(t) {
|
|
661
661
|
this.httpClient = t;
|
|
662
662
|
}
|
|
@@ -741,7 +741,7 @@ const Ee = {
|
|
|
741
741
|
textMuted: "#9ca3af"
|
|
742
742
|
}
|
|
743
743
|
}
|
|
744
|
-
},
|
|
744
|
+
}, Or = {
|
|
745
745
|
name: "Corporate",
|
|
746
746
|
logo: {
|
|
747
747
|
url: "",
|
|
@@ -774,7 +774,7 @@ const Ee = {
|
|
|
774
774
|
cardPadding: "1.5rem",
|
|
775
775
|
inputHeight: "2.5rem"
|
|
776
776
|
}
|
|
777
|
-
},
|
|
777
|
+
}, Vr = {
|
|
778
778
|
name: "Fintech",
|
|
779
779
|
logo: {
|
|
780
780
|
url: "",
|
|
@@ -807,7 +807,7 @@ const Ee = {
|
|
|
807
807
|
cardPadding: "2rem",
|
|
808
808
|
inputHeight: "3rem"
|
|
809
809
|
}
|
|
810
|
-
},
|
|
810
|
+
}, Br = {
|
|
811
811
|
name: "Healthcare",
|
|
812
812
|
logo: {
|
|
813
813
|
url: "",
|
|
@@ -849,7 +849,7 @@ const Ee = {
|
|
|
849
849
|
textSecondary: "#CBD5E1"
|
|
850
850
|
}
|
|
851
851
|
}
|
|
852
|
-
},
|
|
852
|
+
}, qr = {
|
|
853
853
|
name: "Modern",
|
|
854
854
|
logo: {
|
|
855
855
|
url: "",
|
|
@@ -882,7 +882,7 @@ const Ee = {
|
|
|
882
882
|
cardPadding: "2rem",
|
|
883
883
|
inputHeight: "3rem"
|
|
884
884
|
}
|
|
885
|
-
},
|
|
885
|
+
}, Ur = {
|
|
886
886
|
name: "Minimal",
|
|
887
887
|
logo: {
|
|
888
888
|
url: "",
|
|
@@ -915,18 +915,18 @@ const Ee = {
|
|
|
915
915
|
cardPadding: "1.25rem",
|
|
916
916
|
inputHeight: "2.25rem"
|
|
917
917
|
}
|
|
918
|
-
},
|
|
918
|
+
}, Wr = {
|
|
919
919
|
[Pe.Default]: Ee,
|
|
920
|
-
[Pe.Corporate]:
|
|
921
|
-
[Pe.Fintech]:
|
|
922
|
-
[Pe.Healthcare]:
|
|
923
|
-
[Pe.Modern]:
|
|
924
|
-
[Pe.Minimal]:
|
|
920
|
+
[Pe.Corporate]: Or,
|
|
921
|
+
[Pe.Fintech]: Vr,
|
|
922
|
+
[Pe.Healthcare]: Br,
|
|
923
|
+
[Pe.Modern]: qr,
|
|
924
|
+
[Pe.Minimal]: Ur
|
|
925
925
|
};
|
|
926
926
|
function yt(e) {
|
|
927
|
-
return
|
|
927
|
+
return Wr[e] || Ee;
|
|
928
928
|
}
|
|
929
|
-
class
|
|
929
|
+
class Kr {
|
|
930
930
|
constructor(t) {
|
|
931
931
|
this.httpClient = t;
|
|
932
932
|
}
|
|
@@ -1029,7 +1029,7 @@ class Ur {
|
|
|
1029
1029
|
} : a;
|
|
1030
1030
|
}
|
|
1031
1031
|
}
|
|
1032
|
-
class
|
|
1032
|
+
class Yr {
|
|
1033
1033
|
constructor(t) {
|
|
1034
1034
|
this.httpClient = t;
|
|
1035
1035
|
}
|
|
@@ -1046,7 +1046,7 @@ class Wr {
|
|
|
1046
1046
|
}
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
1049
|
-
class
|
|
1049
|
+
class Hr {
|
|
1050
1050
|
constructor() {
|
|
1051
1051
|
fe(this, "listeners", /* @__PURE__ */ new Map());
|
|
1052
1052
|
}
|
|
@@ -1091,9 +1091,9 @@ class Kr {
|
|
|
1091
1091
|
this.listeners.delete(t);
|
|
1092
1092
|
}
|
|
1093
1093
|
}
|
|
1094
|
-
class
|
|
1094
|
+
class $r {
|
|
1095
1095
|
constructor() {
|
|
1096
|
-
fe(this, "events", new
|
|
1096
|
+
fe(this, "events", new Hr());
|
|
1097
1097
|
fe(this, "_applicantId", null);
|
|
1098
1098
|
fe(this, "_progress", null);
|
|
1099
1099
|
fe(this, "_error", null);
|
|
@@ -1231,7 +1231,7 @@ class Yr {
|
|
|
1231
1231
|
this.events.clear();
|
|
1232
1232
|
}
|
|
1233
1233
|
}
|
|
1234
|
-
class
|
|
1234
|
+
class _r {
|
|
1235
1235
|
constructor() {
|
|
1236
1236
|
fe(this, "handlers", /* @__PURE__ */ new Map());
|
|
1237
1237
|
}
|
|
@@ -1272,11 +1272,11 @@ class Hr {
|
|
|
1272
1272
|
return a.submitData(i);
|
|
1273
1273
|
}
|
|
1274
1274
|
}
|
|
1275
|
-
class
|
|
1275
|
+
class Gr {
|
|
1276
1276
|
constructor(t, i, a, n, l, o, p, u) {
|
|
1277
1277
|
fe(this, "state");
|
|
1278
1278
|
fe(this, "stepRouter");
|
|
1279
|
-
this.applicantService = t, this.questionnaireService = i, this.uploadDocumentService = a, this.appropriatenessTestService = n, this.overviewService = l, this.riskScoringService = o, this.investorCategorizationService = u, this.state = new
|
|
1279
|
+
this.applicantService = t, this.questionnaireService = i, this.uploadDocumentService = a, this.appropriatenessTestService = n, this.overviewService = l, this.riskScoringService = o, this.investorCategorizationService = u, this.state = new $r(), this.stepRouter = new _r(), this.registerStepHandlers();
|
|
1280
1280
|
}
|
|
1281
1281
|
/**
|
|
1282
1282
|
* Register all step handlers
|
|
@@ -1416,7 +1416,7 @@ class $r {
|
|
|
1416
1416
|
return this.stepRouter;
|
|
1417
1417
|
}
|
|
1418
1418
|
}
|
|
1419
|
-
function
|
|
1419
|
+
function Qt(e, t) {
|
|
1420
1420
|
return new Promise((i, a) => {
|
|
1421
1421
|
if (t && document.getElementById(t)) {
|
|
1422
1422
|
i();
|
|
@@ -1426,14 +1426,14 @@ function Gt(e, t) {
|
|
|
1426
1426
|
n.src = e, t && (n.id = t), n.async = !0, n.onload = () => i(), n.onerror = () => a(new Error(`Failed to load script: ${e}`)), document.head.appendChild(n);
|
|
1427
1427
|
});
|
|
1428
1428
|
}
|
|
1429
|
-
function
|
|
1429
|
+
function Ia(e) {
|
|
1430
1430
|
return !!document.getElementById(e);
|
|
1431
1431
|
}
|
|
1432
|
-
function
|
|
1432
|
+
function za(e) {
|
|
1433
1433
|
const t = document.getElementById(e);
|
|
1434
1434
|
t && t.remove();
|
|
1435
1435
|
}
|
|
1436
|
-
const
|
|
1436
|
+
const Qr = "https://static.sumsub.com/idensic/static/sns-websdk-builder.js";
|
|
1437
1437
|
function $e(e, t) {
|
|
1438
1438
|
try {
|
|
1439
1439
|
const i = document.querySelector(".metakyc-sdk") || document.documentElement;
|
|
@@ -1442,7 +1442,7 @@ function $e(e, t) {
|
|
|
1442
1442
|
return t;
|
|
1443
1443
|
}
|
|
1444
1444
|
}
|
|
1445
|
-
function
|
|
1445
|
+
function Xr() {
|
|
1446
1446
|
const e = $e("--metakyc-primary", "#2563eb"), t = $e("--metakyc-primary-hover", "#1d4ed8"), i = $e("--metakyc-background", "#ffffff"), a = $e("--metakyc-surface", "#f9fafb"), n = $e("--metakyc-text-primary", "#111827"), l = $e("--metakyc-text-secondary", "#6b7280"), o = $e("--metakyc-text-muted", "#9ca3af"), p = $e("--metakyc-border", "#e5e7eb");
|
|
1447
1447
|
return `
|
|
1448
1448
|
body, html { font-family: ${$e(
|
|
@@ -1469,7 +1469,7 @@ a { color: ${e}; }
|
|
|
1469
1469
|
a:hover { color: ${t}; }
|
|
1470
1470
|
`.trim();
|
|
1471
1471
|
}
|
|
1472
|
-
class
|
|
1472
|
+
class Zr {
|
|
1473
1473
|
constructor(t) {
|
|
1474
1474
|
fe(this, "sdk", null);
|
|
1475
1475
|
fe(this, "config");
|
|
@@ -1478,7 +1478,7 @@ class Qr {
|
|
|
1478
1478
|
this.config = t;
|
|
1479
1479
|
}
|
|
1480
1480
|
async loadSDK() {
|
|
1481
|
-
if (!window.snsWebSdk && (await
|
|
1481
|
+
if (!window.snsWebSdk && (await Qt(Qr, "sumsub-websdk"), !window.snsWebSdk))
|
|
1482
1482
|
throw new Error("Sumsub Web SDK failed to load from CDN");
|
|
1483
1483
|
}
|
|
1484
1484
|
async initialize(t) {
|
|
@@ -1488,7 +1488,7 @@ class Qr {
|
|
|
1488
1488
|
};
|
|
1489
1489
|
if (this.config.applicantEmail && (i.email = this.config.applicantEmail), this.config.applicantPhone && (i.phone = this.config.applicantPhone), this.config.theme && (i.theme = this.config.theme), this.config.customizationName && (i.customizationName = this.config.customizationName), !this.config.customizationName) {
|
|
1490
1490
|
const n = {};
|
|
1491
|
-
this.config.customCss && (n.customCss = this.config.customCss), this.config.customCssStr && (n.customCssStr = this.config.customCssStr), n.customCssStr || (n.customCssStr =
|
|
1491
|
+
this.config.customCss && (n.customCss = this.config.customCss), this.config.customCssStr && (n.customCssStr = this.config.customCssStr), n.customCssStr || (n.customCssStr = Xr()), i.uiConf = n;
|
|
1492
1492
|
}
|
|
1493
1493
|
const a = window.snsWebSdk.init(
|
|
1494
1494
|
this.config.accessToken,
|
|
@@ -1526,7 +1526,7 @@ class Qr {
|
|
|
1526
1526
|
this.errorCallback = t;
|
|
1527
1527
|
}
|
|
1528
1528
|
}
|
|
1529
|
-
class
|
|
1529
|
+
class Jr {
|
|
1530
1530
|
constructor(t) {
|
|
1531
1531
|
fe(this, "sdk", null);
|
|
1532
1532
|
fe(this, "config");
|
|
@@ -1536,7 +1536,7 @@ class Xr {
|
|
|
1536
1536
|
* Load Onfido SDK
|
|
1537
1537
|
*/
|
|
1538
1538
|
async loadSDK() {
|
|
1539
|
-
await
|
|
1539
|
+
await Qt(
|
|
1540
1540
|
"https://sdk.onfido.com/v12.0.0/onfido.min.js",
|
|
1541
1541
|
"onfido-sdk"
|
|
1542
1542
|
);
|
|
@@ -1592,7 +1592,7 @@ class Xr {
|
|
|
1592
1592
|
this.sdk && (this.sdk.tearDown(), this.sdk = null);
|
|
1593
1593
|
}
|
|
1594
1594
|
}
|
|
1595
|
-
class
|
|
1595
|
+
class ei {
|
|
1596
1596
|
constructor(t) {
|
|
1597
1597
|
fe(this, "sardineContext", null);
|
|
1598
1598
|
fe(this, "config");
|
|
@@ -1743,11 +1743,11 @@ class et {
|
|
|
1743
1743
|
static createProvider(t, i) {
|
|
1744
1744
|
switch (t) {
|
|
1745
1745
|
case Be.Sumsub:
|
|
1746
|
-
return new
|
|
1746
|
+
return new Zr(i);
|
|
1747
1747
|
case Be.Onfido:
|
|
1748
|
-
return new
|
|
1748
|
+
return new Jr(i);
|
|
1749
1749
|
case Be.SardinAI:
|
|
1750
|
-
return new
|
|
1750
|
+
return new ei(i);
|
|
1751
1751
|
default:
|
|
1752
1752
|
throw new Error(`Unsupported identity provider: ${t}`);
|
|
1753
1753
|
}
|
|
@@ -1791,7 +1791,7 @@ class et {
|
|
|
1791
1791
|
}
|
|
1792
1792
|
}
|
|
1793
1793
|
}
|
|
1794
|
-
class
|
|
1794
|
+
class ti {
|
|
1795
1795
|
constructor() {
|
|
1796
1796
|
fe(this, "currentTheme", Ee);
|
|
1797
1797
|
fe(this, "customStyleElement", null);
|
|
@@ -1960,7 +1960,7 @@ ${Object.entries(n).filter(([, u]) => !!u).map(([u, d]) => ` --metakyc-${u}: ${
|
|
|
1960
1960
|
return t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
1961
1961
|
}
|
|
1962
1962
|
}
|
|
1963
|
-
const
|
|
1963
|
+
const ri = {
|
|
1964
1964
|
common: {
|
|
1965
1965
|
next: "Next",
|
|
1966
1966
|
previous: "Previous",
|
|
@@ -2237,7 +2237,7 @@ const ei = {
|
|
|
2237
2237
|
logo: {
|
|
2238
2238
|
companyLogo: "Company Logo"
|
|
2239
2239
|
}
|
|
2240
|
-
},
|
|
2240
|
+
}, ii = {
|
|
2241
2241
|
common: {
|
|
2242
2242
|
next: "Weiter",
|
|
2243
2243
|
previous: "Zurück",
|
|
@@ -2514,7 +2514,7 @@ const ei = {
|
|
|
2514
2514
|
logo: {
|
|
2515
2515
|
companyLogo: "Firmenlogo"
|
|
2516
2516
|
}
|
|
2517
|
-
},
|
|
2517
|
+
}, ai = {
|
|
2518
2518
|
common: {
|
|
2519
2519
|
next: "Suivant",
|
|
2520
2520
|
previous: "Précédent",
|
|
@@ -2791,7 +2791,7 @@ const ei = {
|
|
|
2791
2791
|
logo: {
|
|
2792
2792
|
companyLogo: "Logo de l'entreprise"
|
|
2793
2793
|
}
|
|
2794
|
-
},
|
|
2794
|
+
}, ni = {
|
|
2795
2795
|
common: {
|
|
2796
2796
|
next: "Siguiente",
|
|
2797
2797
|
previous: "Anterior",
|
|
@@ -3068,7 +3068,7 @@ const ei = {
|
|
|
3068
3068
|
logo: {
|
|
3069
3069
|
companyLogo: "Logo de la empresa"
|
|
3070
3070
|
}
|
|
3071
|
-
},
|
|
3071
|
+
}, oi = {
|
|
3072
3072
|
common: {
|
|
3073
3073
|
next: "Avanti",
|
|
3074
3074
|
previous: "Precedente",
|
|
@@ -3345,7 +3345,7 @@ const ei = {
|
|
|
3345
3345
|
logo: {
|
|
3346
3346
|
companyLogo: "Logo aziendale"
|
|
3347
3347
|
}
|
|
3348
|
-
},
|
|
3348
|
+
}, si = {
|
|
3349
3349
|
common: {
|
|
3350
3350
|
next: "Próximo",
|
|
3351
3351
|
previous: "Anterior",
|
|
@@ -3622,7 +3622,7 @@ const ei = {
|
|
|
3622
3622
|
logo: {
|
|
3623
3623
|
companyLogo: "Logo da Empresa"
|
|
3624
3624
|
}
|
|
3625
|
-
},
|
|
3625
|
+
}, li = {
|
|
3626
3626
|
common: {
|
|
3627
3627
|
next: "Volgende",
|
|
3628
3628
|
previous: "Vorige",
|
|
@@ -3899,7 +3899,7 @@ const ei = {
|
|
|
3899
3899
|
logo: {
|
|
3900
3900
|
companyLogo: "Bedrijfslogo"
|
|
3901
3901
|
}
|
|
3902
|
-
},
|
|
3902
|
+
}, ci = {
|
|
3903
3903
|
common: {
|
|
3904
3904
|
next: "Dalej",
|
|
3905
3905
|
previous: "Wstecz",
|
|
@@ -4176,7 +4176,7 @@ const ei = {
|
|
|
4176
4176
|
logo: {
|
|
4177
4177
|
companyLogo: "Logo Firmy"
|
|
4178
4178
|
}
|
|
4179
|
-
},
|
|
4179
|
+
}, di = {
|
|
4180
4180
|
common: {
|
|
4181
4181
|
next: "Далее",
|
|
4182
4182
|
previous: "Назад",
|
|
@@ -4453,7 +4453,7 @@ const ei = {
|
|
|
4453
4453
|
logo: {
|
|
4454
4454
|
companyLogo: "Логотип Компании"
|
|
4455
4455
|
}
|
|
4456
|
-
},
|
|
4456
|
+
}, mi = {
|
|
4457
4457
|
common: {
|
|
4458
4458
|
next: "下一步",
|
|
4459
4459
|
previous: "上一步",
|
|
@@ -4730,7 +4730,7 @@ const ei = {
|
|
|
4730
4730
|
logo: {
|
|
4731
4731
|
companyLogo: "公司标志"
|
|
4732
4732
|
}
|
|
4733
|
-
},
|
|
4733
|
+
}, ui = {
|
|
4734
4734
|
common: {
|
|
4735
4735
|
next: "次へ",
|
|
4736
4736
|
previous: "前へ",
|
|
@@ -5007,7 +5007,7 @@ const ei = {
|
|
|
5007
5007
|
logo: {
|
|
5008
5008
|
companyLogo: "会社ロゴ"
|
|
5009
5009
|
}
|
|
5010
|
-
},
|
|
5010
|
+
}, pi = {
|
|
5011
5011
|
common: {
|
|
5012
5012
|
next: "التالي",
|
|
5013
5013
|
previous: "السابق",
|
|
@@ -5284,7 +5284,7 @@ const ei = {
|
|
|
5284
5284
|
logo: {
|
|
5285
5285
|
companyLogo: "شعار الشركة"
|
|
5286
5286
|
}
|
|
5287
|
-
},
|
|
5287
|
+
}, gi = {
|
|
5288
5288
|
common: {
|
|
5289
5289
|
next: "İleri",
|
|
5290
5290
|
previous: "Geri",
|
|
@@ -5561,7 +5561,7 @@ const ei = {
|
|
|
5561
5561
|
logo: {
|
|
5562
5562
|
companyLogo: "Şirket Logosu"
|
|
5563
5563
|
}
|
|
5564
|
-
},
|
|
5564
|
+
}, yi = {
|
|
5565
5565
|
common: {
|
|
5566
5566
|
next: "Nästa",
|
|
5567
5567
|
previous: "Föregående",
|
|
@@ -5838,7 +5838,7 @@ const ei = {
|
|
|
5838
5838
|
logo: {
|
|
5839
5839
|
companyLogo: "Företagslogotyp"
|
|
5840
5840
|
}
|
|
5841
|
-
},
|
|
5841
|
+
}, fi = {
|
|
5842
5842
|
common: {
|
|
5843
5843
|
next: "Næste",
|
|
5844
5844
|
previous: "Forrige",
|
|
@@ -6115,7 +6115,7 @@ const ei = {
|
|
|
6115
6115
|
logo: {
|
|
6116
6116
|
companyLogo: "Virksomhedslogo"
|
|
6117
6117
|
}
|
|
6118
|
-
},
|
|
6118
|
+
}, ki = {
|
|
6119
6119
|
common: {
|
|
6120
6120
|
next: "Seuraava",
|
|
6121
6121
|
previous: "Edellinen",
|
|
@@ -6392,7 +6392,7 @@ const ei = {
|
|
|
6392
6392
|
logo: {
|
|
6393
6393
|
companyLogo: "Yrityksen logo"
|
|
6394
6394
|
}
|
|
6395
|
-
},
|
|
6395
|
+
}, hi = {
|
|
6396
6396
|
common: {
|
|
6397
6397
|
next: "Neste",
|
|
6398
6398
|
previous: "Forrige",
|
|
@@ -6670,23 +6670,23 @@ const ei = {
|
|
|
6670
6670
|
companyLogo: "Firmalogo"
|
|
6671
6671
|
}
|
|
6672
6672
|
}, Rt = {
|
|
6673
|
-
en:
|
|
6674
|
-
de:
|
|
6675
|
-
fr:
|
|
6676
|
-
es:
|
|
6677
|
-
it:
|
|
6678
|
-
pt:
|
|
6679
|
-
nl:
|
|
6680
|
-
pl:
|
|
6681
|
-
ru:
|
|
6682
|
-
zh:
|
|
6683
|
-
ja:
|
|
6684
|
-
ar:
|
|
6685
|
-
tr:
|
|
6686
|
-
sv:
|
|
6687
|
-
da:
|
|
6688
|
-
fi:
|
|
6689
|
-
no:
|
|
6673
|
+
en: ri,
|
|
6674
|
+
de: ii,
|
|
6675
|
+
fr: ai,
|
|
6676
|
+
es: ni,
|
|
6677
|
+
it: oi,
|
|
6678
|
+
pt: si,
|
|
6679
|
+
nl: li,
|
|
6680
|
+
pl: ci,
|
|
6681
|
+
ru: di,
|
|
6682
|
+
zh: mi,
|
|
6683
|
+
ja: ui,
|
|
6684
|
+
ar: pi,
|
|
6685
|
+
tr: gi,
|
|
6686
|
+
sv: yi,
|
|
6687
|
+
da: fi,
|
|
6688
|
+
fi: ki,
|
|
6689
|
+
no: hi
|
|
6690
6690
|
};
|
|
6691
6691
|
function Dt(e, t) {
|
|
6692
6692
|
const i = t.split(".");
|
|
@@ -6697,7 +6697,7 @@ function Dt(e, t) {
|
|
|
6697
6697
|
}
|
|
6698
6698
|
return typeof a == "string" ? a : void 0;
|
|
6699
6699
|
}
|
|
6700
|
-
function
|
|
6700
|
+
function vi(e, t) {
|
|
6701
6701
|
return t ? e.replace(/\{\{(\w+)\}\}/g, (i, a) => {
|
|
6702
6702
|
const n = t[a];
|
|
6703
6703
|
return n != null ? String(n) : `{{${a}}}`;
|
|
@@ -6707,7 +6707,7 @@ function jt(e, t) {
|
|
|
6707
6707
|
const i = { ...e };
|
|
6708
6708
|
for (const a of Object.keys(t)) {
|
|
6709
6709
|
const n = t[a];
|
|
6710
|
-
n && typeof n == "object"
|
|
6710
|
+
n && typeof n == "object" ? i[a] = { ...i[a] || {}, ...n } : typeof n == "string" && (i[a] = n);
|
|
6711
6711
|
}
|
|
6712
6712
|
return i;
|
|
6713
6713
|
}
|
|
@@ -6715,23 +6715,30 @@ function It(e) {
|
|
|
6715
6715
|
const t = e.toLowerCase().split(/[-_]/)[0];
|
|
6716
6716
|
return Rt[t] || Rt.en;
|
|
6717
6717
|
}
|
|
6718
|
-
function
|
|
6718
|
+
function Mt(e, t) {
|
|
6719
|
+
for (const i of Object.keys(e)) {
|
|
6720
|
+
const a = e[i];
|
|
6721
|
+
if (a && typeof a == "object" && typeof a[t] == "string")
|
|
6722
|
+
return a[t];
|
|
6723
|
+
}
|
|
6724
|
+
}
|
|
6725
|
+
function Xt(e) {
|
|
6719
6726
|
const t = Rt.en;
|
|
6720
6727
|
return (i, a) => {
|
|
6721
|
-
const n = Dt(e, i) ?? Dt(t, i) ?? i;
|
|
6722
|
-
return
|
|
6728
|
+
const n = !i.includes("."), l = Dt(e, i) ?? (n ? Mt(e, i) : void 0) ?? Dt(t, i) ?? (n ? Mt(t, i) : void 0) ?? i;
|
|
6729
|
+
return vi(l, a);
|
|
6723
6730
|
};
|
|
6724
6731
|
}
|
|
6725
|
-
const
|
|
6732
|
+
const bi = /^t\(['"](.+?)['"]\)$/, Ft = "$t:";
|
|
6726
6733
|
function ve(e, t) {
|
|
6727
6734
|
if (!e) return "";
|
|
6728
6735
|
const i = e.trim();
|
|
6729
|
-
if (i.startsWith(
|
|
6730
|
-
return t(i.slice(
|
|
6731
|
-
const a =
|
|
6736
|
+
if (i.startsWith(Ft))
|
|
6737
|
+
return t(i.slice(Ft.length));
|
|
6738
|
+
const a = bi.exec(i);
|
|
6732
6739
|
return a ? t(a[1]) : e;
|
|
6733
6740
|
}
|
|
6734
|
-
const
|
|
6741
|
+
const Zt = "1.0.29", Jt = _t(null), Ot = `metakyc-translations-${Zt}-`, xi = ({
|
|
6735
6742
|
locale: e,
|
|
6736
6743
|
fetchTranslations: t,
|
|
6737
6744
|
children: i
|
|
@@ -6740,7 +6747,7 @@ const Xt = $t(null), Ft = "metakyc-translations-", vi = ({
|
|
|
6740
6747
|
const u = It(a);
|
|
6741
6748
|
if (typeof window > "u") return u;
|
|
6742
6749
|
try {
|
|
6743
|
-
const d = localStorage.getItem(
|
|
6750
|
+
const d = localStorage.getItem(Ot + a);
|
|
6744
6751
|
if (d) return jt(u, JSON.parse(d));
|
|
6745
6752
|
} catch {
|
|
6746
6753
|
}
|
|
@@ -6750,11 +6757,16 @@ const Xt = $t(null), Ft = "metakyc-translations-", vi = ({
|
|
|
6750
6757
|
if (!t) return;
|
|
6751
6758
|
let u = !1;
|
|
6752
6759
|
return t(a).then((d) => {
|
|
6753
|
-
if (u
|
|
6760
|
+
if (u) return;
|
|
6761
|
+
if (!d || Object.keys(d).length === 0) {
|
|
6762
|
+
console.debug("[MetaKYC i18n] No remote overrides for locale:", a);
|
|
6763
|
+
return;
|
|
6764
|
+
}
|
|
6765
|
+
console.debug("[MetaKYC i18n] Remote overrides loaded for locale:", a, d);
|
|
6754
6766
|
const y = It(a), v = jt(y, d);
|
|
6755
6767
|
o(v);
|
|
6756
6768
|
try {
|
|
6757
|
-
localStorage.setItem(
|
|
6769
|
+
localStorage.setItem(Ot + a, JSON.stringify(d));
|
|
6758
6770
|
} catch {
|
|
6759
6771
|
}
|
|
6760
6772
|
}).catch((d) => {
|
|
@@ -6764,41 +6776,41 @@ const Xt = $t(null), Ft = "metakyc-translations-", vi = ({
|
|
|
6764
6776
|
};
|
|
6765
6777
|
}, [a, t]);
|
|
6766
6778
|
const p = Me(() => ({
|
|
6767
|
-
t:
|
|
6779
|
+
t: Xt(l),
|
|
6768
6780
|
locale: a,
|
|
6769
6781
|
dictionary: l
|
|
6770
6782
|
}), [l, a]);
|
|
6771
|
-
return /* @__PURE__ */ r(
|
|
6783
|
+
return /* @__PURE__ */ r(Jt.Provider, { value: p, children: i });
|
|
6772
6784
|
};
|
|
6773
6785
|
function Ie() {
|
|
6774
|
-
const e =
|
|
6786
|
+
const e = Gt(Jt);
|
|
6775
6787
|
if (!e) {
|
|
6776
6788
|
const t = It("en");
|
|
6777
|
-
return { t:
|
|
6789
|
+
return { t: Xt(t), locale: "en", dictionary: t };
|
|
6778
6790
|
}
|
|
6779
6791
|
return e;
|
|
6780
6792
|
}
|
|
6781
|
-
const Zt = $t(null), bi = "1.0.27", xi = '.metakyc-sdk .pointer-events-none{pointer-events:none}.metakyc-sdk .visible{visibility:visible}.metakyc-sdk .static{position:static}.metakyc-sdk .fixed{position:fixed}.metakyc-sdk .absolute{position:absolute}.metakyc-sdk .relative{position:relative}.metakyc-sdk .inset-y-0{top:0;bottom:0}.metakyc-sdk .left-0{left:0}.metakyc-sdk .right-0{right:0}.metakyc-sdk .right-3{right:.75rem}.metakyc-sdk .top-1\\/2{top:50%}.metakyc-sdk .mx-4{margin-left:1rem;margin-right:1rem}.metakyc-sdk .mx-6{margin-left:1.5rem;margin-right:1.5rem}.metakyc-sdk .mx-auto{margin-left:auto;margin-right:auto}.metakyc-sdk .my-8{margin-top:2rem;margin-bottom:2rem}.metakyc-sdk .-ml-1{margin-left:-.25rem}.metakyc-sdk .mb-0\\.5{margin-bottom:.125rem}.metakyc-sdk .mb-1{margin-bottom:.25rem}.metakyc-sdk .mb-2{margin-bottom:.5rem}.metakyc-sdk .mb-3{margin-bottom:.75rem}.metakyc-sdk .mb-4{margin-bottom:1rem}.metakyc-sdk .mb-6{margin-bottom:1.5rem}.metakyc-sdk .ml-0\\.5{margin-left:.125rem}.metakyc-sdk .ml-1{margin-left:.25rem}.metakyc-sdk .ml-3{margin-left:.75rem}.metakyc-sdk .mr-2{margin-right:.5rem}.metakyc-sdk .mr-3{margin-right:.75rem}.metakyc-sdk .mt-0\\.5{margin-top:.125rem}.metakyc-sdk .mt-1{margin-top:.25rem}.metakyc-sdk .mt-2{margin-top:.5rem}.metakyc-sdk .mt-3{margin-top:.75rem}.metakyc-sdk .mt-4{margin-top:1rem}.metakyc-sdk .mt-6{margin-top:1.5rem}.metakyc-sdk .block{display:block}.metakyc-sdk .inline-block{display:inline-block}.metakyc-sdk .inline{display:inline}.metakyc-sdk .flex{display:flex}.metakyc-sdk .inline-flex{display:inline-flex}.metakyc-sdk .grid{display:grid}.metakyc-sdk .hidden{display:none}.metakyc-sdk .h-12{height:3rem}.metakyc-sdk .h-16{height:4rem}.metakyc-sdk .h-24{height:6rem}.metakyc-sdk .h-4{height:1rem}.metakyc-sdk .h-6{height:1.5rem}.metakyc-sdk .h-8{height:2rem}.metakyc-sdk .h-full{height:100%}.metakyc-sdk .max-h-52{max-height:13rem}.metakyc-sdk .min-h-\\[400px\\]{min-height:400px}.metakyc-sdk .w-12{width:3rem}.metakyc-sdk .w-16{width:4rem}.metakyc-sdk .w-20{width:5rem}.metakyc-sdk .w-24{width:6rem}.metakyc-sdk .w-4{width:1rem}.metakyc-sdk .w-6{width:1.5rem}.metakyc-sdk .w-8{width:2rem}.metakyc-sdk .w-full{width:100%}.metakyc-sdk .max-w-md{max-width:28rem}.metakyc-sdk .flex-1{flex:1 1 0%}.metakyc-sdk .flex-shrink-0{flex-shrink:0}.metakyc-sdk .-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.metakyc-sdk .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.metakyc-sdk .animate-spin{animation:spin 1s linear infinite}.metakyc-sdk .cursor-not-allowed{cursor:not-allowed}.metakyc-sdk .cursor-pointer{cursor:pointer}.metakyc-sdk .resize{resize:both}.metakyc-sdk .list-inside{list-style-position:inside}.metakyc-sdk .list-disc{list-style-type:disc}.metakyc-sdk .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.metakyc-sdk .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.metakyc-sdk .flex-col{flex-direction:column}.metakyc-sdk .flex-wrap{flex-wrap:wrap}.metakyc-sdk .items-start{align-items:flex-start}.metakyc-sdk .items-center{align-items:center}.metakyc-sdk .justify-center{justify-content:center}.metakyc-sdk .justify-between{justify-content:space-between}.metakyc-sdk .gap-1{gap:.25rem}.metakyc-sdk .gap-1\\.5{gap:.375rem}.metakyc-sdk .gap-2{gap:.5rem}.metakyc-sdk .gap-4{gap:1rem}.metakyc-sdk :is(.space-x-3>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.metakyc-sdk :is(.space-y-1>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-1\\.5>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-2>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-4>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-6>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-8>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.metakyc-sdk .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.metakyc-sdk .rounded{border-radius:.25rem}.metakyc-sdk .rounded-full{border-radius:9999px}.metakyc-sdk .rounded-lg{border-radius:.5rem}.metakyc-sdk .rounded-xl{border-radius:.75rem}.metakyc-sdk .border{border-width:1px}.metakyc-sdk .border-0{border-width:0px}.metakyc-sdk .border-2{border-width:2px}.metakyc-sdk .border-b{border-bottom-width:1px}.metakyc-sdk .border-t{border-top-width:1px}.metakyc-sdk .border-blue-200{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity, 1))}.metakyc-sdk .border-danger-500{border-color:var(--metakyc-danger, #EF4444)}.metakyc-sdk .border-green-200{--tw-border-opacity: 1;border-color:rgb(187 247 208 / var(--tw-border-opacity, 1))}.metakyc-sdk .border-red-200{--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1))}.metakyc-sdk .border-yellow-200{--tw-border-opacity: 1;border-color:rgb(254 240 138 / var(--tw-border-opacity, 1))}.metakyc-sdk .bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.metakyc-sdk .bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.metakyc-sdk .bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.metakyc-sdk .bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.metakyc-sdk .bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.metakyc-sdk .bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.metakyc-sdk .bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity, 1))}.metakyc-sdk .bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity, 1))}.metakyc-sdk .p-3{padding:.75rem}.metakyc-sdk .p-4{padding:1rem}.metakyc-sdk .px-2{padding-left:.5rem;padding-right:.5rem}.metakyc-sdk .px-2\\.5{padding-left:.625rem;padding-right:.625rem}.metakyc-sdk .px-3{padding-left:.75rem;padding-right:.75rem}.metakyc-sdk .px-4{padding-left:1rem;padding-right:1rem}.metakyc-sdk .px-6{padding-left:1.5rem;padding-right:1.5rem}.metakyc-sdk .py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.metakyc-sdk .py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.metakyc-sdk .py-12{padding-top:3rem;padding-bottom:3rem}.metakyc-sdk .py-2{padding-top:.5rem;padding-bottom:.5rem}.metakyc-sdk .py-3{padding-top:.75rem;padding-bottom:.75rem}.metakyc-sdk .py-4{padding-top:1rem;padding-bottom:1rem}.metakyc-sdk .py-8{padding-top:2rem;padding-bottom:2rem}.metakyc-sdk .pb-4{padding-bottom:1rem}.metakyc-sdk .pl-10{padding-left:2.5rem}.metakyc-sdk .pl-3{padding-left:.75rem}.metakyc-sdk .pr-10{padding-right:2.5rem}.metakyc-sdk .pr-3{padding-right:.75rem}.metakyc-sdk .pr-6{padding-right:1.5rem}.metakyc-sdk .pt-6{padding-top:1.5rem}.metakyc-sdk .text-left{text-align:left}.metakyc-sdk .text-center{text-align:center}.metakyc-sdk .text-right{text-align:right}.metakyc-sdk .text-2xl{font-size:1.5rem;line-height:2rem}.metakyc-sdk .text-3xl{font-size:1.875rem;line-height:2.25rem}.metakyc-sdk .text-5xl{font-size:3rem;line-height:1}.metakyc-sdk .text-base{font-size:1rem;line-height:1.5rem}.metakyc-sdk .text-lg{font-size:1.125rem;line-height:1.75rem}.metakyc-sdk .text-sm{font-size:.875rem;line-height:1.25rem}.metakyc-sdk .text-xl{font-size:1.25rem;line-height:1.75rem}.metakyc-sdk .text-xs{font-size:.75rem;line-height:1rem}.metakyc-sdk .font-bold{font-weight:700}.metakyc-sdk .font-medium{font-weight:500}.metakyc-sdk .font-semibold{font-weight:600}.metakyc-sdk .uppercase{text-transform:uppercase}.metakyc-sdk .lowercase{text-transform:lowercase}.metakyc-sdk .tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.metakyc-sdk .leading-6{line-height:1.5rem}.metakyc-sdk .text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-blue-900{--tw-text-opacity: 1;color:rgb(30 58 138 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-danger-500{color:var(--metakyc-danger, #EF4444)}.metakyc-sdk .text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-green-900{--tw-text-opacity: 1;color:rgb(20 83 45 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-primary,.metakyc-sdk .text-primary-500{color:var(--metakyc-primary, #3B82F6)}.metakyc-sdk .text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-red-900{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-secondary{color:var(--metakyc-secondary, #64748b)}.metakyc-sdk .text-yellow-700{--tw-text-opacity: 1;color:rgb(161 98 7 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity, 1))}.metakyc-sdk .underline{text-decoration-line:underline}.metakyc-sdk .opacity-25{opacity:.25}.metakyc-sdk .opacity-50{opacity:.5}.metakyc-sdk .opacity-60{opacity:.6}.metakyc-sdk .opacity-75{opacity:.75}.metakyc-sdk .shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.metakyc-sdk .outline{outline-style:solid}.metakyc-sdk .ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.metakyc-sdk .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.metakyc-sdk .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.metakyc-sdk .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .duration-200{transition-duration:.2s}.metakyc-sdk .grid{display:grid!important}.metakyc-sdk .flex{display:flex!important}.metakyc-sdk .inline-flex{display:inline-flex!important}.metakyc-sdk .hidden{display:none!important}.metakyc-sdk .block{display:block!important}.metakyc-sdk .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.metakyc-sdk .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.metakyc-sdk .grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.metakyc-sdk .grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}.metakyc-sdk .col-span-1{grid-column:span 1 / span 1!important}.metakyc-sdk .col-span-2{grid-column:span 2 / span 2!important}.metakyc-sdk .col-span-3{grid-column:span 3 / span 3!important}.metakyc-sdk .col-span-4{grid-column:span 4 / span 4!important}.metakyc-sdk .gap-1{gap:.25rem!important}.metakyc-sdk .gap-2{gap:.5rem!important}.metakyc-sdk .gap-3{gap:.75rem!important}.metakyc-sdk .gap-4{gap:1rem!important}.metakyc-sdk .gap-6{gap:1.5rem!important}.metakyc-sdk .gap-8{gap:2rem!important}.metakyc-sdk .flex-col{flex-direction:column!important}.metakyc-sdk .flex-row{flex-direction:row!important}.metakyc-sdk .flex-wrap{flex-wrap:wrap!important}.metakyc-sdk .flex-1{flex:1 1 0%!important}.metakyc-sdk .flex-shrink-0{flex-shrink:0!important}.metakyc-sdk .items-center{align-items:center!important}.metakyc-sdk .items-start{align-items:flex-start!important}.metakyc-sdk .items-end{align-items:flex-end!important}.metakyc-sdk .justify-between{justify-content:space-between!important}.metakyc-sdk .justify-center{justify-content:center!important}.metakyc-sdk .justify-end{justify-content:flex-end!important}.metakyc-sdk .justify-start{justify-content:flex-start!important}.metakyc-sdk .space-y-1>*+*{margin-top:.25rem!important}.metakyc-sdk .space-y-1\\.5>*+*{margin-top:.375rem!important}.metakyc-sdk .space-y-2>*+*{margin-top:.5rem!important}.metakyc-sdk .space-y-3>*+*{margin-top:.75rem!important}.metakyc-sdk .space-y-4>*+*{margin-top:1rem!important}.metakyc-sdk .space-y-6>*+*{margin-top:1.5rem!important}.metakyc-sdk .w-full{width:100%!important}.metakyc-sdk .relative{position:relative!important}.metakyc-sdk .absolute{position:absolute!important}.metakyc-sdk .overflow-hidden{overflow:hidden!important}.metakyc-sdk .overflow-auto{overflow:auto!important}.metakyc-sdk .overflow-x-auto{overflow-x:auto!important}@media (min-width: 768px){.metakyc-sdk .md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.metakyc-sdk .md\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}}.metakyc-sdk *,.metakyc-sdk *:before,.metakyc-sdk *:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--metakyc-border, #e5e7eb)}.metakyc-sdk{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4}.metakyc-sdk img,.metakyc-sdk video{max-width:100%;height:auto}.metakyc-sdk h1,.metakyc-sdk h2,.metakyc-sdk h3,.metakyc-sdk h4,.metakyc-sdk h5,.metakyc-sdk h6,.metakyc-sdk p{margin:0}.metakyc-sdk ol,.metakyc-sdk ul{list-style:none;margin:0;padding:0}.metakyc-sdk button,.metakyc-sdk input,.metakyc-sdk optgroup,.metakyc-sdk select,.metakyc-sdk textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}.metakyc-sdk button,.metakyc-sdk [role=button]{cursor:pointer}.metakyc-sdk a{color:inherit;text-decoration:inherit}.metakyc-sdk input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]),.metakyc-sdk select,.metakyc-sdk textarea,.metakyc-sdk .metakyc-searchable-select-trigger,.metakyc-sdk .metakyc-multiselect-trigger{background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important;border-color:var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important}.metakyc-sdk input::-moz-placeholder,.metakyc-sdk textarea::-moz-placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-sdk input::placeholder,.metakyc-sdk textarea::placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-sdk input:not([type=checkbox]):not([type=radio]):focus,.metakyc-sdk select:focus,.metakyc-sdk textarea:focus{outline:none!important;border-color:var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb))!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb)) 20%,transparent)!important}.metakyc-sdk input[type=checkbox],.metakyc-sdk input[type=radio]{appearance:none!important;-webkit-appearance:none!important;-moz-appearance:none!important;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-width:16px!important;max-height:16px!important;flex-shrink:0!important;cursor:pointer!important;background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;border:1.5px solid var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important;position:relative!important;transition:background-color .15s,border-color .15s!important;vertical-align:middle!important;display:inline-block!important;padding:0!important;margin:0!important;color-scheme:light!important}.metakyc-sdk input[type=checkbox]{border-radius:4px!important}.metakyc-sdk input[type=radio]{border-radius:50%!important}.metakyc-sdk input[type=checkbox]:checked,.metakyc-sdk input[type=radio]:checked{background-color:var(--metakyc-primary, #2563eb)!important;border-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk input[type=checkbox]:checked:after{content:""!important;display:block!important;position:absolute!important;left:4px!important;top:1px!important;width:5px!important;height:9px!important;border:2px solid #ffffff!important;border-top:none!important;border-left:none!important;transform:rotate(45deg)!important}.metakyc-sdk input[type=radio]:checked:after{content:""!important;display:block!important;position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:6px!important;height:6px!important;border-radius:50%!important;background:#fff!important}.metakyc-sdk input[type=checkbox]:focus,.metakyc-sdk input[type=radio]:focus{outline:none!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--metakyc-primary, #2563eb) 30%,transparent)!important}.metakyc-searchable-select-dropdown,.metakyc-multiselect-dropdown{background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;border-color:var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important}.metakyc-searchable-select-dropdown input,.metakyc-multiselect-dropdown input{background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important;border-color:var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important}.metakyc-searchable-select-dropdown input::-moz-placeholder,.metakyc-multiselect-dropdown input::-moz-placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-searchable-select-dropdown input::placeholder,.metakyc-multiselect-dropdown input::placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-searchable-select-dropdown input:focus,.metakyc-multiselect-dropdown input:focus{outline:none!important;background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important;border-color:var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb))!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb)) 20%,transparent)!important}.metakyc-searchable-select-dropdown li:hover,.metakyc-multiselect-dropdown li:hover{background-color:var(--metakyc-surface, var(--metakyc-background, #f9fafb))!important}.metakyc-sdk .metakyc-help-btn{color:var(--metakyc-primary, #2563eb)!important;border-color:var(--metakyc-primary, #2563eb)!important;background:transparent!important;position:relative!important;z-index:2!important}.metakyc-sdk .metakyc-overview-step-item,.metakyc-sdk .metakyc-overview-step-item *,.metakyc-sdk .metakyc-step-content,.metakyc-sdk .metakyc-step-content *,.metakyc-sdk .metakyc-step-title,.metakyc-sdk .metakyc-step-title *,.metakyc-sdk .metakyc-step-icon,.metakyc-sdk .metakyc-step-icon *,.metakyc-sdk .metakyc-step-description,.metakyc-sdk .metakyc-step-description *{border-top-width:0!important;border-bottom-width:0!important;border-left-width:0!important;border-right-width:0!important;border-top-style:none!important;border-bottom-style:none!important;border-left-style:none!important;border-right-style:none!important;border-top-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important;border-right-color:transparent!important;border:0!important;box-shadow:none!important;outline:none!important;outline-width:0!important;outline-style:none!important;text-decoration:none!important;text-decoration-line:none!important}.metakyc-sdk .metakyc-overview-step-item:before,.metakyc-sdk .metakyc-overview-step-item:after,.metakyc-sdk .metakyc-overview-step-item *:before,.metakyc-sdk .metakyc-overview-step-item *:after,.metakyc-sdk .metakyc-step-content:before,.metakyc-sdk .metakyc-step-content:after,.metakyc-sdk .metakyc-step-content *:before,.metakyc-sdk .metakyc-step-content *:after,.metakyc-sdk .metakyc-step-title:before,.metakyc-sdk .metakyc-step-title:after,.metakyc-sdk .metakyc-step-description:before,.metakyc-sdk .metakyc-step-description:after{content:none!important;display:none!important;visibility:hidden!important;border:none!important;box-shadow:none!important;outline:none!important;background:none!important;height:0!important;width:0!important}.metakyc-sdk .metakyc-overview-step-item{border-width:0!important;border-style:none!important;border:0!important;box-shadow:none!important;outline:none!important}.metakyc-sdk .metakyc-step-content{border-width:0!important;border-style:none!important;border:0!important;padding-top:0!important;margin-top:0!important;box-shadow:none!important;outline:none!important}.metakyc-sdk .metakyc-step-title{border-width:0!important;border-style:none!important;border:0!important;padding-top:0!important;margin-top:0!important;box-shadow:none!important;outline:none!important;text-decoration:none!important}.metakyc-sdk hr,.metakyc-sdk .metakyc-overview-step-item hr,.metakyc-sdk .metakyc-overview-step-item * hr,.metakyc-sdk .metakyc-step-content hr,.metakyc-sdk .metakyc-step-content * hr{display:block!important;height:0!important;border:0!important;border-top:1px solid var(--metakyc-primary, #2563eb)!important;opacity:.25!important;margin:1rem 0!important;overflow:visible!important}.metakyc-sdk{background-color:var(--metakyc-background, #ffffff)!important;color:var(--metakyc-text-primary, #111827)!important;font-family:var(--metakyc-font-family, inherit)!important;padding:1.5rem!important;border-radius:.75rem!important}.metakyc-sdk h1,.metakyc-sdk h2,.metakyc-sdk h3,.metakyc-sdk h4,.metakyc-sdk h5,.metakyc-sdk h6{color:var(--metakyc-text-primary, #111827);letter-spacing:normal}.metakyc-sdk .text-gray-900{color:var(--metakyc-text-primary, #111827)!important}.metakyc-sdk .text-gray-800{color:var(--metakyc-text-primary, #1f2937)!important}.metakyc-sdk .text-gray-700{color:var(--metakyc-text-secondary, #374151)!important}.metakyc-sdk .text-gray-600{color:var(--metakyc-text-secondary, #6b7280)!important}.metakyc-sdk .text-gray-500{color:var(--metakyc-text-muted, #6b7280)!important}.metakyc-sdk .text-gray-400{color:var(--metakyc-text-muted, #9ca3af)!important}.metakyc-sdk .text-gray-300{color:var(--metakyc-text-muted, #d1d5db)!important}.metakyc-sdk .text-white{color:#fff!important}.metakyc-sdk .bg-white{background-color:var(--metakyc-background, #ffffff)!important}.metakyc-sdk .bg-gray-50{background-color:var(--metakyc-surface, #f9fafb)!important}.metakyc-sdk .bg-gray-100{background-color:var(--metakyc-surface, #f3f4f6)!important}.metakyc-sdk .bg-gray-200{background-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .bg-gray-800{background-color:var(--metakyc-surface, #1f2937)!important}.metakyc-sdk .border-gray-100,.metakyc-sdk .border-gray-200,.metakyc-sdk .border-gray-300{border-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .border-t{border-top-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .border-b{border-bottom-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .divide-gray-200>*{border-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .bg-primary-500,.metakyc-sdk .bg-primary-600{background-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .bg-primary-50,.metakyc-sdk .bg-primary-100{background-color:var(--metakyc-primary-light, #dbeafe)!important}.metakyc-sdk .text-primary-500,.metakyc-sdk .text-primary-600,.metakyc-sdk .text-primary-800{color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .text-primary-900{color:var(--metakyc-primary-dark, #1e40af)!important}.metakyc-sdk .border-primary-500,.metakyc-sdk .border-primary-600{border-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .hover\\:bg-primary-50:hover{background-color:var(--metakyc-primary-light, #dbeafe)!important}.metakyc-sdk .hover\\:bg-primary-600:hover{background-color:var(--metakyc-primary-hover, #1d4ed8)!important}.metakyc-sdk .bg-blue-600{background-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .bg-blue-100{background-color:var(--metakyc-primary-light, #dbeafe)!important}.metakyc-sdk .text-blue-600,.metakyc-sdk .text-blue-400{color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .hover\\:bg-blue-700:hover{background-color:var(--metakyc-primary-hover, #1d4ed8)!important}.metakyc-sdk .metakyc-overview-steps h3:before,.metakyc-sdk .metakyc-overview-steps h3:after{content:none!important;display:none!important}.metakyc-sdk .metakyc-overview-steps *:before,.metakyc-sdk .metakyc-overview-steps *:after{content:none!important;display:none!important}.metakyc-sdk .metakyc-stepper-scroll::-webkit-scrollbar{display:none!important;height:0!important;width:0!important}.metakyc-sdk .metakyc-file-dropzone:hover{border-color:var(--metakyc-primary, #2563eb)!important;background-color:color-mix(in srgb,var(--metakyc-primary, #2563eb) 3%,var(--metakyc-background, #ffffff))!important}.metakyc-sdk .metakyc-file-item:hover{background-color:color-mix(in srgb,var(--metakyc-surface, #f9fafb) 80%,var(--metakyc-border, #e5e7eb))!important}.metakyc-sdk .metakyc-file-upload label{color:var(--metakyc-text-primary, #111827)!important}.metakyc-sdk .metakyc-file-upload p{margin:0!important;line-height:1.4!important}.metakyc-sdk .metakyc-file-item button{background:transparent!important;border:none!important;box-shadow:none!important;outline:none!important}.metakyc-sdk .metakyc-file-dropzone{box-shadow:none!important;outline:none!important}.metakyc-sdk .hover\\:opacity-90:hover{opacity:.9}.metakyc-sdk .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.metakyc-sdk .focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.metakyc-sdk .focus\\:ring-offset-0:focus{--tw-ring-offset-width: 0px}.metakyc-sdk .focus\\:ring-offset-1:focus{--tw-ring-offset-width: 1px}.metakyc-sdk .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.metakyc-sdk .disabled\\:opacity-50:disabled{opacity:.5}.metakyc-sdk .disabled\\:opacity-60:disabled{opacity:.6}.metakyc-sdk .dark\\:border-blue-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(30 64 175 / var(--tw-border-opacity, 1))}.metakyc-sdk .dark\\:border-green-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(22 101 52 / var(--tw-border-opacity, 1))}.metakyc-sdk .dark\\:border-red-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(153 27 27 / var(--tw-border-opacity, 1))}.metakyc-sdk .dark\\:border-yellow-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(133 77 14 / var(--tw-border-opacity, 1))}.metakyc-sdk .dark\\:bg-blue-900\\/20:is(.dark *){background-color:#1e3a8a33}.metakyc-sdk .dark\\:bg-blue-900\\/30:is(.dark *){background-color:#1e3a8a4d}.metakyc-sdk .dark\\:bg-green-900\\/20:is(.dark *){background-color:#14532d33}.metakyc-sdk .dark\\:bg-green-900\\/30:is(.dark *){background-color:#14532d4d}.metakyc-sdk .dark\\:bg-red-900\\/20:is(.dark *){background-color:#7f1d1d33}.metakyc-sdk .dark\\:bg-red-900\\/30:is(.dark *){background-color:#7f1d1d4d}.metakyc-sdk .dark\\:bg-yellow-900\\/20:is(.dark *){background-color:#713f1233}.metakyc-sdk .dark\\:bg-yellow-900\\/30:is(.dark *){background-color:#713f124d}.metakyc-sdk .dark\\:text-blue-100:is(.dark *){--tw-text-opacity: 1;color:rgb(219 234 254 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-blue-200:is(.dark *){--tw-text-opacity: 1;color:rgb(191 219 254 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-blue-400:is(.dark *){--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-gray-400:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-gray-500:is(.dark *){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-green-100:is(.dark *){--tw-text-opacity: 1;color:rgb(220 252 231 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-green-200:is(.dark *){--tw-text-opacity: 1;color:rgb(187 247 208 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-green-400:is(.dark *){--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-red-100:is(.dark *){--tw-text-opacity: 1;color:rgb(254 226 226 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-red-200:is(.dark *){--tw-text-opacity: 1;color:rgb(254 202 202 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-yellow-200:is(.dark *){--tw-text-opacity: 1;color:rgb(254 240 138 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-yellow-400:is(.dark *){--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.metakyc-sdk .md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}', Ot = "metakyc-sdk-styles";
|
|
6793
|
+
const er = _t(null), wi = '.metakyc-sdk .pointer-events-none{pointer-events:none}.metakyc-sdk .visible{visibility:visible}.metakyc-sdk .static{position:static}.metakyc-sdk .fixed{position:fixed}.metakyc-sdk .absolute{position:absolute}.metakyc-sdk .relative{position:relative}.metakyc-sdk .inset-y-0{top:0;bottom:0}.metakyc-sdk .left-0{left:0}.metakyc-sdk .right-0{right:0}.metakyc-sdk .right-3{right:.75rem}.metakyc-sdk .top-1\\/2{top:50%}.metakyc-sdk .mx-4{margin-left:1rem;margin-right:1rem}.metakyc-sdk .mx-6{margin-left:1.5rem;margin-right:1.5rem}.metakyc-sdk .mx-auto{margin-left:auto;margin-right:auto}.metakyc-sdk .my-8{margin-top:2rem;margin-bottom:2rem}.metakyc-sdk .-ml-1{margin-left:-.25rem}.metakyc-sdk .mb-0\\.5{margin-bottom:.125rem}.metakyc-sdk .mb-1{margin-bottom:.25rem}.metakyc-sdk .mb-2{margin-bottom:.5rem}.metakyc-sdk .mb-3{margin-bottom:.75rem}.metakyc-sdk .mb-4{margin-bottom:1rem}.metakyc-sdk .mb-6{margin-bottom:1.5rem}.metakyc-sdk .ml-0\\.5{margin-left:.125rem}.metakyc-sdk .ml-1{margin-left:.25rem}.metakyc-sdk .ml-3{margin-left:.75rem}.metakyc-sdk .mr-2{margin-right:.5rem}.metakyc-sdk .mr-3{margin-right:.75rem}.metakyc-sdk .mt-0\\.5{margin-top:.125rem}.metakyc-sdk .mt-1{margin-top:.25rem}.metakyc-sdk .mt-2{margin-top:.5rem}.metakyc-sdk .mt-3{margin-top:.75rem}.metakyc-sdk .mt-4{margin-top:1rem}.metakyc-sdk .mt-6{margin-top:1.5rem}.metakyc-sdk .block{display:block}.metakyc-sdk .inline-block{display:inline-block}.metakyc-sdk .inline{display:inline}.metakyc-sdk .flex{display:flex}.metakyc-sdk .inline-flex{display:inline-flex}.metakyc-sdk .grid{display:grid}.metakyc-sdk .hidden{display:none}.metakyc-sdk .h-12{height:3rem}.metakyc-sdk .h-16{height:4rem}.metakyc-sdk .h-24{height:6rem}.metakyc-sdk .h-4{height:1rem}.metakyc-sdk .h-6{height:1.5rem}.metakyc-sdk .h-8{height:2rem}.metakyc-sdk .h-full{height:100%}.metakyc-sdk .max-h-52{max-height:13rem}.metakyc-sdk .min-h-\\[400px\\]{min-height:400px}.metakyc-sdk .w-12{width:3rem}.metakyc-sdk .w-16{width:4rem}.metakyc-sdk .w-20{width:5rem}.metakyc-sdk .w-24{width:6rem}.metakyc-sdk .w-4{width:1rem}.metakyc-sdk .w-6{width:1.5rem}.metakyc-sdk .w-8{width:2rem}.metakyc-sdk .w-full{width:100%}.metakyc-sdk .max-w-md{max-width:28rem}.metakyc-sdk .flex-1{flex:1 1 0%}.metakyc-sdk .flex-shrink-0{flex-shrink:0}.metakyc-sdk .-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.metakyc-sdk .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.metakyc-sdk .animate-spin{animation:spin 1s linear infinite}.metakyc-sdk .cursor-not-allowed{cursor:not-allowed}.metakyc-sdk .cursor-pointer{cursor:pointer}.metakyc-sdk .resize{resize:both}.metakyc-sdk .list-inside{list-style-position:inside}.metakyc-sdk .list-disc{list-style-type:disc}.metakyc-sdk .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.metakyc-sdk .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.metakyc-sdk .flex-col{flex-direction:column}.metakyc-sdk .flex-wrap{flex-wrap:wrap}.metakyc-sdk .items-start{align-items:flex-start}.metakyc-sdk .items-center{align-items:center}.metakyc-sdk .justify-center{justify-content:center}.metakyc-sdk .justify-between{justify-content:space-between}.metakyc-sdk .gap-1{gap:.25rem}.metakyc-sdk .gap-1\\.5{gap:.375rem}.metakyc-sdk .gap-2{gap:.5rem}.metakyc-sdk .gap-4{gap:1rem}.metakyc-sdk :is(.space-x-3>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.metakyc-sdk :is(.space-y-1>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-1\\.5>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-2>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-4>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-6>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.metakyc-sdk :is(.space-y-8>:not([hidden])~:not([hidden])){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.metakyc-sdk .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.metakyc-sdk .rounded{border-radius:.25rem}.metakyc-sdk .rounded-full{border-radius:9999px}.metakyc-sdk .rounded-lg{border-radius:.5rem}.metakyc-sdk .rounded-xl{border-radius:.75rem}.metakyc-sdk .border{border-width:1px}.metakyc-sdk .border-0{border-width:0px}.metakyc-sdk .border-2{border-width:2px}.metakyc-sdk .border-b{border-bottom-width:1px}.metakyc-sdk .border-t{border-top-width:1px}.metakyc-sdk .border-blue-200{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity, 1))}.metakyc-sdk .border-danger-500{border-color:var(--metakyc-danger, #EF4444)}.metakyc-sdk .border-green-200{--tw-border-opacity: 1;border-color:rgb(187 247 208 / var(--tw-border-opacity, 1))}.metakyc-sdk .border-red-200{--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1))}.metakyc-sdk .border-yellow-200{--tw-border-opacity: 1;border-color:rgb(254 240 138 / var(--tw-border-opacity, 1))}.metakyc-sdk .bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.metakyc-sdk .bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.metakyc-sdk .bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.metakyc-sdk .bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.metakyc-sdk .bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.metakyc-sdk .bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.metakyc-sdk .bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity, 1))}.metakyc-sdk .bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity, 1))}.metakyc-sdk .p-3{padding:.75rem}.metakyc-sdk .p-4{padding:1rem}.metakyc-sdk .px-2{padding-left:.5rem;padding-right:.5rem}.metakyc-sdk .px-2\\.5{padding-left:.625rem;padding-right:.625rem}.metakyc-sdk .px-3{padding-left:.75rem;padding-right:.75rem}.metakyc-sdk .px-4{padding-left:1rem;padding-right:1rem}.metakyc-sdk .px-6{padding-left:1.5rem;padding-right:1.5rem}.metakyc-sdk .py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.metakyc-sdk .py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.metakyc-sdk .py-12{padding-top:3rem;padding-bottom:3rem}.metakyc-sdk .py-2{padding-top:.5rem;padding-bottom:.5rem}.metakyc-sdk .py-3{padding-top:.75rem;padding-bottom:.75rem}.metakyc-sdk .py-4{padding-top:1rem;padding-bottom:1rem}.metakyc-sdk .py-8{padding-top:2rem;padding-bottom:2rem}.metakyc-sdk .pb-4{padding-bottom:1rem}.metakyc-sdk .pl-10{padding-left:2.5rem}.metakyc-sdk .pl-3{padding-left:.75rem}.metakyc-sdk .pr-10{padding-right:2.5rem}.metakyc-sdk .pr-3{padding-right:.75rem}.metakyc-sdk .pr-6{padding-right:1.5rem}.metakyc-sdk .pt-6{padding-top:1.5rem}.metakyc-sdk .text-left{text-align:left}.metakyc-sdk .text-center{text-align:center}.metakyc-sdk .text-right{text-align:right}.metakyc-sdk .text-2xl{font-size:1.5rem;line-height:2rem}.metakyc-sdk .text-3xl{font-size:1.875rem;line-height:2.25rem}.metakyc-sdk .text-5xl{font-size:3rem;line-height:1}.metakyc-sdk .text-base{font-size:1rem;line-height:1.5rem}.metakyc-sdk .text-lg{font-size:1.125rem;line-height:1.75rem}.metakyc-sdk .text-sm{font-size:.875rem;line-height:1.25rem}.metakyc-sdk .text-xl{font-size:1.25rem;line-height:1.75rem}.metakyc-sdk .text-xs{font-size:.75rem;line-height:1rem}.metakyc-sdk .font-bold{font-weight:700}.metakyc-sdk .font-medium{font-weight:500}.metakyc-sdk .font-semibold{font-weight:600}.metakyc-sdk .uppercase{text-transform:uppercase}.metakyc-sdk .lowercase{text-transform:lowercase}.metakyc-sdk .tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.metakyc-sdk .leading-6{line-height:1.5rem}.metakyc-sdk .text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-blue-900{--tw-text-opacity: 1;color:rgb(30 58 138 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-danger-500{color:var(--metakyc-danger, #EF4444)}.metakyc-sdk .text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-green-900{--tw-text-opacity: 1;color:rgb(20 83 45 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-primary,.metakyc-sdk .text-primary-500{color:var(--metakyc-primary, #3B82F6)}.metakyc-sdk .text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-red-900{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-secondary{color:var(--metakyc-secondary, #64748b)}.metakyc-sdk .text-yellow-700{--tw-text-opacity: 1;color:rgb(161 98 7 / var(--tw-text-opacity, 1))}.metakyc-sdk .text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity, 1))}.metakyc-sdk .underline{text-decoration-line:underline}.metakyc-sdk .opacity-25{opacity:.25}.metakyc-sdk .opacity-50{opacity:.5}.metakyc-sdk .opacity-60{opacity:.6}.metakyc-sdk .opacity-75{opacity:.75}.metakyc-sdk .shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.metakyc-sdk .outline{outline-style:solid}.metakyc-sdk .ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.metakyc-sdk .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.metakyc-sdk .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.metakyc-sdk .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.metakyc-sdk .duration-200{transition-duration:.2s}.metakyc-sdk .grid{display:grid!important}.metakyc-sdk .flex{display:flex!important}.metakyc-sdk .inline-flex{display:inline-flex!important}.metakyc-sdk .hidden{display:none!important}.metakyc-sdk .block{display:block!important}.metakyc-sdk .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.metakyc-sdk .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.metakyc-sdk .grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.metakyc-sdk .grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}.metakyc-sdk .col-span-1{grid-column:span 1 / span 1!important}.metakyc-sdk .col-span-2{grid-column:span 2 / span 2!important}.metakyc-sdk .col-span-3{grid-column:span 3 / span 3!important}.metakyc-sdk .col-span-4{grid-column:span 4 / span 4!important}.metakyc-sdk .gap-1{gap:.25rem!important}.metakyc-sdk .gap-2{gap:.5rem!important}.metakyc-sdk .gap-3{gap:.75rem!important}.metakyc-sdk .gap-4{gap:1rem!important}.metakyc-sdk .gap-6{gap:1.5rem!important}.metakyc-sdk .gap-8{gap:2rem!important}.metakyc-sdk .flex-col{flex-direction:column!important}.metakyc-sdk .flex-row{flex-direction:row!important}.metakyc-sdk .flex-wrap{flex-wrap:wrap!important}.metakyc-sdk .flex-1{flex:1 1 0%!important}.metakyc-sdk .flex-shrink-0{flex-shrink:0!important}.metakyc-sdk .items-center{align-items:center!important}.metakyc-sdk .items-start{align-items:flex-start!important}.metakyc-sdk .items-end{align-items:flex-end!important}.metakyc-sdk .justify-between{justify-content:space-between!important}.metakyc-sdk .justify-center{justify-content:center!important}.metakyc-sdk .justify-end{justify-content:flex-end!important}.metakyc-sdk .justify-start{justify-content:flex-start!important}.metakyc-sdk .space-y-1>*+*{margin-top:.25rem!important}.metakyc-sdk .space-y-1\\.5>*+*{margin-top:.375rem!important}.metakyc-sdk .space-y-2>*+*{margin-top:.5rem!important}.metakyc-sdk .space-y-3>*+*{margin-top:.75rem!important}.metakyc-sdk .space-y-4>*+*{margin-top:1rem!important}.metakyc-sdk .space-y-6>*+*{margin-top:1.5rem!important}.metakyc-sdk .w-full{width:100%!important}.metakyc-sdk .relative{position:relative!important}.metakyc-sdk .absolute{position:absolute!important}.metakyc-sdk .overflow-hidden{overflow:hidden!important}.metakyc-sdk .overflow-auto{overflow:auto!important}.metakyc-sdk .overflow-x-auto{overflow-x:auto!important}@media (min-width: 768px){.metakyc-sdk .md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.metakyc-sdk .md\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}}.metakyc-sdk *,.metakyc-sdk *:before,.metakyc-sdk *:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--metakyc-border, #e5e7eb)}.metakyc-sdk{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4}.metakyc-sdk img,.metakyc-sdk video{max-width:100%;height:auto}.metakyc-sdk h1,.metakyc-sdk h2,.metakyc-sdk h3,.metakyc-sdk h4,.metakyc-sdk h5,.metakyc-sdk h6,.metakyc-sdk p{margin:0}.metakyc-sdk ol,.metakyc-sdk ul{list-style:none;margin:0;padding:0}.metakyc-sdk button,.metakyc-sdk input,.metakyc-sdk optgroup,.metakyc-sdk select,.metakyc-sdk textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}.metakyc-sdk button,.metakyc-sdk [role=button]{cursor:pointer}.metakyc-sdk a{color:inherit;text-decoration:inherit}.metakyc-sdk input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]),.metakyc-sdk select,.metakyc-sdk textarea,.metakyc-sdk .metakyc-searchable-select-trigger,.metakyc-sdk .metakyc-multiselect-trigger{background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important;border-color:var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important}.metakyc-sdk input::-moz-placeholder,.metakyc-sdk textarea::-moz-placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-sdk input::placeholder,.metakyc-sdk textarea::placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-sdk input:not([type=checkbox]):not([type=radio]):focus,.metakyc-sdk select:focus,.metakyc-sdk textarea:focus{outline:none!important;border-color:var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb))!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb)) 20%,transparent)!important}.metakyc-sdk input[type=checkbox],.metakyc-sdk input[type=radio]{appearance:none!important;-webkit-appearance:none!important;-moz-appearance:none!important;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-width:16px!important;max-height:16px!important;flex-shrink:0!important;cursor:pointer!important;background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;border:1.5px solid var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important;position:relative!important;transition:background-color .15s,border-color .15s!important;vertical-align:middle!important;display:inline-block!important;padding:0!important;margin:0!important;color-scheme:light!important}.metakyc-sdk input[type=checkbox]{border-radius:4px!important}.metakyc-sdk input[type=radio]{border-radius:50%!important}.metakyc-sdk input[type=checkbox]:checked,.metakyc-sdk input[type=radio]:checked{background-color:var(--metakyc-primary, #2563eb)!important;border-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk input[type=checkbox]:checked:after{content:""!important;display:block!important;position:absolute!important;left:4px!important;top:1px!important;width:5px!important;height:9px!important;border:2px solid #ffffff!important;border-top:none!important;border-left:none!important;transform:rotate(45deg)!important}.metakyc-sdk input[type=radio]:checked:after{content:""!important;display:block!important;position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:6px!important;height:6px!important;border-radius:50%!important;background:#fff!important}.metakyc-sdk input[type=checkbox]:focus,.metakyc-sdk input[type=radio]:focus{outline:none!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--metakyc-primary, #2563eb) 30%,transparent)!important}.metakyc-searchable-select-dropdown,.metakyc-multiselect-dropdown{background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;border-color:var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important}.metakyc-searchable-select-dropdown input,.metakyc-multiselect-dropdown input{background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important;border-color:var(--metakyc-input-border, var(--metakyc-border, #d1d5db))!important}.metakyc-searchable-select-dropdown input::-moz-placeholder,.metakyc-multiselect-dropdown input::-moz-placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-searchable-select-dropdown input::placeholder,.metakyc-multiselect-dropdown input::placeholder{color:var(--metakyc-input-placeholder, var(--metakyc-text-muted, #9ca3af))!important;opacity:1!important}.metakyc-searchable-select-dropdown input:focus,.metakyc-multiselect-dropdown input:focus{outline:none!important;background-color:var(--metakyc-input-bg, var(--metakyc-background, #ffffff))!important;color:var(--metakyc-input-text, var(--metakyc-text-primary, #111827))!important;border-color:var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb))!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--metakyc-input-border-focus, var(--metakyc-primary, #2563eb)) 20%,transparent)!important}.metakyc-searchable-select-dropdown li:hover,.metakyc-multiselect-dropdown li:hover{background-color:var(--metakyc-surface, var(--metakyc-background, #f9fafb))!important}.metakyc-sdk .metakyc-help-btn{color:var(--metakyc-primary, #2563eb)!important;border-color:var(--metakyc-primary, #2563eb)!important;background:transparent!important;position:relative!important;z-index:2!important}.metakyc-sdk .metakyc-overview-step-item,.metakyc-sdk .metakyc-overview-step-item *,.metakyc-sdk .metakyc-step-content,.metakyc-sdk .metakyc-step-content *,.metakyc-sdk .metakyc-step-title,.metakyc-sdk .metakyc-step-title *,.metakyc-sdk .metakyc-step-icon,.metakyc-sdk .metakyc-step-icon *,.metakyc-sdk .metakyc-step-description,.metakyc-sdk .metakyc-step-description *{border-top-width:0!important;border-bottom-width:0!important;border-left-width:0!important;border-right-width:0!important;border-top-style:none!important;border-bottom-style:none!important;border-left-style:none!important;border-right-style:none!important;border-top-color:transparent!important;border-bottom-color:transparent!important;border-left-color:transparent!important;border-right-color:transparent!important;border:0!important;box-shadow:none!important;outline:none!important;outline-width:0!important;outline-style:none!important;text-decoration:none!important;text-decoration-line:none!important}.metakyc-sdk .metakyc-overview-step-item:before,.metakyc-sdk .metakyc-overview-step-item:after,.metakyc-sdk .metakyc-overview-step-item *:before,.metakyc-sdk .metakyc-overview-step-item *:after,.metakyc-sdk .metakyc-step-content:before,.metakyc-sdk .metakyc-step-content:after,.metakyc-sdk .metakyc-step-content *:before,.metakyc-sdk .metakyc-step-content *:after,.metakyc-sdk .metakyc-step-title:before,.metakyc-sdk .metakyc-step-title:after,.metakyc-sdk .metakyc-step-description:before,.metakyc-sdk .metakyc-step-description:after{content:none!important;display:none!important;visibility:hidden!important;border:none!important;box-shadow:none!important;outline:none!important;background:none!important;height:0!important;width:0!important}.metakyc-sdk .metakyc-overview-step-item{border-width:0!important;border-style:none!important;border:0!important;box-shadow:none!important;outline:none!important}.metakyc-sdk .metakyc-step-content{border-width:0!important;border-style:none!important;border:0!important;padding-top:0!important;margin-top:0!important;box-shadow:none!important;outline:none!important}.metakyc-sdk .metakyc-step-title{border-width:0!important;border-style:none!important;border:0!important;padding-top:0!important;margin-top:0!important;box-shadow:none!important;outline:none!important;text-decoration:none!important}.metakyc-sdk hr,.metakyc-sdk .metakyc-overview-step-item hr,.metakyc-sdk .metakyc-overview-step-item * hr,.metakyc-sdk .metakyc-step-content hr,.metakyc-sdk .metakyc-step-content * hr{display:block!important;height:0!important;border:0!important;border-top:1px solid var(--metakyc-primary, #2563eb)!important;opacity:.25!important;margin:1rem 0!important;overflow:visible!important}.metakyc-sdk{background-color:var(--metakyc-background, #ffffff)!important;color:var(--metakyc-text-primary, #111827)!important;font-family:var(--metakyc-font-family, inherit)!important;padding:1.5rem!important;border-radius:.75rem!important}.metakyc-sdk h1,.metakyc-sdk h2,.metakyc-sdk h3,.metakyc-sdk h4,.metakyc-sdk h5,.metakyc-sdk h6{color:var(--metakyc-text-primary, #111827);letter-spacing:normal}.metakyc-sdk .text-gray-900{color:var(--metakyc-text-primary, #111827)!important}.metakyc-sdk .text-gray-800{color:var(--metakyc-text-primary, #1f2937)!important}.metakyc-sdk .text-gray-700{color:var(--metakyc-text-secondary, #374151)!important}.metakyc-sdk .text-gray-600{color:var(--metakyc-text-secondary, #6b7280)!important}.metakyc-sdk .text-gray-500{color:var(--metakyc-text-muted, #6b7280)!important}.metakyc-sdk .text-gray-400{color:var(--metakyc-text-muted, #9ca3af)!important}.metakyc-sdk .text-gray-300{color:var(--metakyc-text-muted, #d1d5db)!important}.metakyc-sdk .text-white{color:#fff!important}.metakyc-sdk .bg-white{background-color:var(--metakyc-background, #ffffff)!important}.metakyc-sdk .bg-gray-50{background-color:var(--metakyc-surface, #f9fafb)!important}.metakyc-sdk .bg-gray-100{background-color:var(--metakyc-surface, #f3f4f6)!important}.metakyc-sdk .bg-gray-200{background-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .bg-gray-800{background-color:var(--metakyc-surface, #1f2937)!important}.metakyc-sdk .border-gray-100,.metakyc-sdk .border-gray-200,.metakyc-sdk .border-gray-300{border-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .border-t{border-top-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .border-b{border-bottom-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .divide-gray-200>*{border-color:var(--metakyc-border, #e5e7eb)!important}.metakyc-sdk .bg-primary-500,.metakyc-sdk .bg-primary-600{background-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .bg-primary-50,.metakyc-sdk .bg-primary-100{background-color:var(--metakyc-primary-light, #dbeafe)!important}.metakyc-sdk .text-primary-500,.metakyc-sdk .text-primary-600,.metakyc-sdk .text-primary-800{color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .text-primary-900{color:var(--metakyc-primary-dark, #1e40af)!important}.metakyc-sdk .border-primary-500,.metakyc-sdk .border-primary-600{border-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .hover\\:bg-primary-50:hover{background-color:var(--metakyc-primary-light, #dbeafe)!important}.metakyc-sdk .hover\\:bg-primary-600:hover{background-color:var(--metakyc-primary-hover, #1d4ed8)!important}.metakyc-sdk .bg-blue-600{background-color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .bg-blue-100{background-color:var(--metakyc-primary-light, #dbeafe)!important}.metakyc-sdk .text-blue-600,.metakyc-sdk .text-blue-400{color:var(--metakyc-primary, #2563eb)!important}.metakyc-sdk .hover\\:bg-blue-700:hover{background-color:var(--metakyc-primary-hover, #1d4ed8)!important}.metakyc-sdk .metakyc-overview-steps h3:before,.metakyc-sdk .metakyc-overview-steps h3:after{content:none!important;display:none!important}.metakyc-sdk .metakyc-overview-steps *:before,.metakyc-sdk .metakyc-overview-steps *:after{content:none!important;display:none!important}.metakyc-sdk .metakyc-stepper-scroll::-webkit-scrollbar{display:none!important;height:0!important;width:0!important}.metakyc-sdk .metakyc-file-dropzone:hover{border-color:var(--metakyc-primary, #2563eb)!important;background-color:color-mix(in srgb,var(--metakyc-primary, #2563eb) 3%,var(--metakyc-background, #ffffff))!important}.metakyc-sdk .metakyc-file-item:hover{background-color:color-mix(in srgb,var(--metakyc-surface, #f9fafb) 80%,var(--metakyc-border, #e5e7eb))!important}.metakyc-sdk .metakyc-file-upload label{color:var(--metakyc-text-primary, #111827)!important}.metakyc-sdk .metakyc-file-upload p{margin:0!important;line-height:1.4!important}.metakyc-sdk .metakyc-file-item button{background:transparent!important;border:none!important;box-shadow:none!important;outline:none!important}.metakyc-sdk .metakyc-file-dropzone{box-shadow:none!important;outline:none!important}.metakyc-sdk .hover\\:opacity-90:hover{opacity:.9}.metakyc-sdk .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.metakyc-sdk .focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.metakyc-sdk .focus\\:ring-offset-0:focus{--tw-ring-offset-width: 0px}.metakyc-sdk .focus\\:ring-offset-1:focus{--tw-ring-offset-width: 1px}.metakyc-sdk .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.metakyc-sdk .disabled\\:opacity-50:disabled{opacity:.5}.metakyc-sdk .disabled\\:opacity-60:disabled{opacity:.6}.metakyc-sdk .dark\\:border-blue-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(30 64 175 / var(--tw-border-opacity, 1))}.metakyc-sdk .dark\\:border-green-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(22 101 52 / var(--tw-border-opacity, 1))}.metakyc-sdk .dark\\:border-red-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(153 27 27 / var(--tw-border-opacity, 1))}.metakyc-sdk .dark\\:border-yellow-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(133 77 14 / var(--tw-border-opacity, 1))}.metakyc-sdk .dark\\:bg-blue-900\\/20:is(.dark *){background-color:#1e3a8a33}.metakyc-sdk .dark\\:bg-blue-900\\/30:is(.dark *){background-color:#1e3a8a4d}.metakyc-sdk .dark\\:bg-green-900\\/20:is(.dark *){background-color:#14532d33}.metakyc-sdk .dark\\:bg-green-900\\/30:is(.dark *){background-color:#14532d4d}.metakyc-sdk .dark\\:bg-red-900\\/20:is(.dark *){background-color:#7f1d1d33}.metakyc-sdk .dark\\:bg-red-900\\/30:is(.dark *){background-color:#7f1d1d4d}.metakyc-sdk .dark\\:bg-yellow-900\\/20:is(.dark *){background-color:#713f1233}.metakyc-sdk .dark\\:bg-yellow-900\\/30:is(.dark *){background-color:#713f124d}.metakyc-sdk .dark\\:text-blue-100:is(.dark *){--tw-text-opacity: 1;color:rgb(219 234 254 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-blue-200:is(.dark *){--tw-text-opacity: 1;color:rgb(191 219 254 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-blue-400:is(.dark *){--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-gray-400:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-gray-500:is(.dark *){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-green-100:is(.dark *){--tw-text-opacity: 1;color:rgb(220 252 231 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-green-200:is(.dark *){--tw-text-opacity: 1;color:rgb(187 247 208 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-green-400:is(.dark *){--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-red-100:is(.dark *){--tw-text-opacity: 1;color:rgb(254 226 226 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-red-200:is(.dark *){--tw-text-opacity: 1;color:rgb(254 202 202 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-yellow-200:is(.dark *){--tw-text-opacity: 1;color:rgb(254 240 138 / var(--tw-text-opacity, 1))}.metakyc-sdk .dark\\:text-yellow-400:is(.dark *){--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.metakyc-sdk .md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}', Vt = "metakyc-sdk-styles";
|
|
6782
6794
|
let wt = !1;
|
|
6783
|
-
function
|
|
6795
|
+
function Si() {
|
|
6784
6796
|
if (wt || typeof document > "u") return;
|
|
6785
|
-
if (document.getElementById(
|
|
6797
|
+
if (document.getElementById(Vt)) {
|
|
6786
6798
|
wt = !0;
|
|
6787
6799
|
return;
|
|
6788
6800
|
}
|
|
6789
6801
|
const e = document.createElement("style");
|
|
6790
|
-
e.id =
|
|
6802
|
+
e.id = Vt, e.textContent = wi, document.head.appendChild(e), wt = !0;
|
|
6791
6803
|
}
|
|
6792
|
-
const
|
|
6793
|
-
|
|
6804
|
+
const Bt = "metakyc-theme-cache", Aa = ({ config: e, children: t }) => {
|
|
6805
|
+
Si();
|
|
6794
6806
|
const [i, a] = b(null), n = Se.useRef(!1), l = Se.useRef(!1), o = Me(() => {
|
|
6795
|
-
const d = new
|
|
6807
|
+
const d = new Ir(e), y = new zr(d), v = new Ar(d), T = new Lr(d), I = new Er(d), x = new Pr(d), q = new Dr(d), S = new jr(d), L = new Mr(d), B = new Fr(d), F = new Kr(d), U = new Yr(d), K = new ti();
|
|
6796
6808
|
if (typeof document < "u")
|
|
6797
6809
|
if (e.theme)
|
|
6798
6810
|
K.applyTheme(e.theme);
|
|
6799
6811
|
else
|
|
6800
6812
|
try {
|
|
6801
|
-
const J = localStorage.getItem(
|
|
6813
|
+
const J = localStorage.getItem(Bt);
|
|
6802
6814
|
K.applyTheme(J ? JSON.parse(J) : Ee);
|
|
6803
6815
|
} catch {
|
|
6804
6816
|
K.applyTheme(Ee);
|
|
@@ -6822,7 +6834,7 @@ const Vt = "metakyc-theme-cache", za = ({ config: e, children: t }) => {
|
|
|
6822
6834
|
config: e,
|
|
6823
6835
|
...o,
|
|
6824
6836
|
currentTheme: i,
|
|
6825
|
-
createOrchestrator: () => new
|
|
6837
|
+
createOrchestrator: () => new Gr(
|
|
6826
6838
|
o.applicantService,
|
|
6827
6839
|
o.questionnaireService,
|
|
6828
6840
|
o.uploadDocumentService,
|
|
@@ -6848,7 +6860,7 @@ const Vt = "metakyc-theme-cache", za = ({ config: e, children: t }) => {
|
|
|
6848
6860
|
const y = await o.themeService.getThemeConfiguration();
|
|
6849
6861
|
o.themeManager.applyTheme(y), a(o.themeManager.getCurrentTheme()), l.current = !0;
|
|
6850
6862
|
try {
|
|
6851
|
-
localStorage.setItem(
|
|
6863
|
+
localStorage.setItem(Bt, JSON.stringify(y));
|
|
6852
6864
|
} catch {
|
|
6853
6865
|
}
|
|
6854
6866
|
console.log("[MetaKYC] Theme loaded and applied", y);
|
|
@@ -6864,8 +6876,8 @@ const Vt = "metakyc-theme-cache", za = ({ config: e, children: t }) => {
|
|
|
6864
6876
|
(d) => o.translationService.getTranslations(d),
|
|
6865
6877
|
[o.translationService]
|
|
6866
6878
|
);
|
|
6867
|
-
return /* @__PURE__ */ r(
|
|
6868
|
-
|
|
6879
|
+
return /* @__PURE__ */ r(er.Provider, { value: p, children: /* @__PURE__ */ s(
|
|
6880
|
+
xi,
|
|
6869
6881
|
{
|
|
6870
6882
|
locale: e.locale || "en",
|
|
6871
6883
|
fetchTranslations: u,
|
|
@@ -6886,7 +6898,7 @@ const Vt = "metakyc-theme-cache", za = ({ config: e, children: t }) => {
|
|
|
6886
6898
|
},
|
|
6887
6899
|
children: [
|
|
6888
6900
|
"SDK v",
|
|
6889
|
-
|
|
6901
|
+
Zt
|
|
6890
6902
|
]
|
|
6891
6903
|
}
|
|
6892
6904
|
),
|
|
@@ -6896,12 +6908,12 @@ const Vt = "metakyc-theme-cache", za = ({ config: e, children: t }) => {
|
|
|
6896
6908
|
) });
|
|
6897
6909
|
};
|
|
6898
6910
|
function Fe() {
|
|
6899
|
-
const e =
|
|
6911
|
+
const e = Gt(er);
|
|
6900
6912
|
if (!e)
|
|
6901
6913
|
throw new Error("useMetaKYC must be used within a MetaKYCProvider");
|
|
6902
6914
|
return e;
|
|
6903
6915
|
}
|
|
6904
|
-
async function
|
|
6916
|
+
async function Ci(e) {
|
|
6905
6917
|
return new Promise((t, i) => {
|
|
6906
6918
|
const a = new FileReader();
|
|
6907
6919
|
a.readAsDataURL(e), a.onload = () => {
|
|
@@ -6910,10 +6922,10 @@ async function Si(e) {
|
|
|
6910
6922
|
}, a.onerror = (n) => i(n);
|
|
6911
6923
|
});
|
|
6912
6924
|
}
|
|
6913
|
-
function
|
|
6925
|
+
function La(e, t) {
|
|
6914
6926
|
return e.size <= t;
|
|
6915
6927
|
}
|
|
6916
|
-
function
|
|
6928
|
+
function Ea(e, t) {
|
|
6917
6929
|
return t.split(",").map((a) => a.trim()).some((a) => {
|
|
6918
6930
|
if (a.endsWith("/*")) {
|
|
6919
6931
|
const n = a.slice(0, -2);
|
|
@@ -6927,7 +6939,7 @@ function St(e) {
|
|
|
6927
6939
|
const t = 1024, i = ["Bytes", "KB", "MB", "GB"], a = Math.floor(Math.log(e) / Math.log(t));
|
|
6928
6940
|
return Math.round(e / Math.pow(t, a) * 100) / 100 + " " + i[a];
|
|
6929
6941
|
}
|
|
6930
|
-
function
|
|
6942
|
+
function Pa(e) {
|
|
6931
6943
|
return e;
|
|
6932
6944
|
}
|
|
6933
6945
|
function De(...e) {
|
|
@@ -6937,14 +6949,14 @@ const pt = {
|
|
|
6937
6949
|
APPLICANT_ID: "metakyc_applicant_id",
|
|
6938
6950
|
WORKFLOW_STATE: "metakyc_workflow_state"
|
|
6939
6951
|
};
|
|
6940
|
-
function
|
|
6952
|
+
function Ni(e) {
|
|
6941
6953
|
try {
|
|
6942
6954
|
localStorage.setItem(pt.APPLICANT_ID, e.toString());
|
|
6943
6955
|
} catch (t) {
|
|
6944
6956
|
console.warn("Failed to save applicant ID to storage:", t);
|
|
6945
6957
|
}
|
|
6946
6958
|
}
|
|
6947
|
-
function
|
|
6959
|
+
function Ti() {
|
|
6948
6960
|
try {
|
|
6949
6961
|
const e = localStorage.getItem(pt.APPLICANT_ID);
|
|
6950
6962
|
return e ? parseInt(e, 10) : null;
|
|
@@ -6952,21 +6964,21 @@ function Ni() {
|
|
|
6952
6964
|
return console.warn("Failed to retrieve applicant ID from storage:", e), null;
|
|
6953
6965
|
}
|
|
6954
6966
|
}
|
|
6955
|
-
function
|
|
6967
|
+
function Ri() {
|
|
6956
6968
|
try {
|
|
6957
6969
|
localStorage.removeItem(pt.APPLICANT_ID);
|
|
6958
6970
|
} catch (e) {
|
|
6959
6971
|
console.warn("Failed to clear applicant ID from storage:", e);
|
|
6960
6972
|
}
|
|
6961
6973
|
}
|
|
6962
|
-
function
|
|
6974
|
+
function Ii(e) {
|
|
6963
6975
|
try {
|
|
6964
6976
|
localStorage.setItem(pt.WORKFLOW_STATE, JSON.stringify(e));
|
|
6965
6977
|
} catch (t) {
|
|
6966
6978
|
console.warn("Failed to save workflow state to storage:", t);
|
|
6967
6979
|
}
|
|
6968
6980
|
}
|
|
6969
|
-
function
|
|
6981
|
+
function Da() {
|
|
6970
6982
|
try {
|
|
6971
6983
|
const e = localStorage.getItem(pt.WORKFLOW_STATE);
|
|
6972
6984
|
return e ? JSON.parse(e) : null;
|
|
@@ -6974,23 +6986,23 @@ function Pa() {
|
|
|
6974
6986
|
return console.warn("Failed to retrieve workflow state from storage:", e), null;
|
|
6975
6987
|
}
|
|
6976
6988
|
}
|
|
6977
|
-
function
|
|
6989
|
+
function zi() {
|
|
6978
6990
|
try {
|
|
6979
6991
|
localStorage.removeItem(pt.WORKFLOW_STATE);
|
|
6980
6992
|
} catch (e) {
|
|
6981
6993
|
console.warn("Failed to clear workflow state from storage:", e);
|
|
6982
6994
|
}
|
|
6983
6995
|
}
|
|
6984
|
-
function
|
|
6985
|
-
|
|
6996
|
+
function ja() {
|
|
6997
|
+
Ri(), zi();
|
|
6986
6998
|
}
|
|
6987
|
-
function
|
|
6988
|
-
const { createOrchestrator: t } = Fe(), [i, a] = b(null), [n, l] = b(!1), [o, p] = b(null), u = me(null), d = e ||
|
|
6999
|
+
function Ai(e) {
|
|
7000
|
+
const { createOrchestrator: t } = Fe(), [i, a] = b(null), [n, l] = b(!1), [o, p] = b(null), u = me(null), d = e || Ti();
|
|
6989
7001
|
ke(() => {
|
|
6990
7002
|
u.current || (u.current = t());
|
|
6991
7003
|
}, [t]), ke(() => {
|
|
6992
7004
|
var F;
|
|
6993
|
-
i && d && (
|
|
7005
|
+
i && d && (Ni(d), Ii({
|
|
6994
7006
|
applicantId: d,
|
|
6995
7007
|
currentStepOrder: (F = i.currentStep) == null ? void 0 : F.order,
|
|
6996
7008
|
status: i.status,
|
|
@@ -7094,7 +7106,7 @@ function zi(e) {
|
|
|
7094
7106
|
orchestrator: u.current
|
|
7095
7107
|
};
|
|
7096
7108
|
}
|
|
7097
|
-
function
|
|
7109
|
+
function Li(e) {
|
|
7098
7110
|
const { questionnaireService: t, applicantService: i } = Fe(), [a, n] = b(null), [l, o] = b({}), [p, u] = b(!1), [d, y] = b(!1), [v, T] = b(null), I = me(!1), x = me(null), q = te(async () => {
|
|
7099
7111
|
var L, B;
|
|
7100
7112
|
if (e) {
|
|
@@ -7153,7 +7165,7 @@ function Ai(e) {
|
|
|
7153
7165
|
submit: S
|
|
7154
7166
|
};
|
|
7155
7167
|
}
|
|
7156
|
-
function
|
|
7168
|
+
function Ei(e) {
|
|
7157
7169
|
const { uploadDocumentService: t } = Fe(), [i, a] = b(null), [n, l] = b(!1), [o, p] = b(!1), [u, d] = b(0), [y, v] = b(null), T = me(!1), I = me(null), x = te(async () => {
|
|
7158
7170
|
if (e) {
|
|
7159
7171
|
if (T.current) {
|
|
@@ -7197,7 +7209,7 @@ function Li(e) {
|
|
|
7197
7209
|
submit: q
|
|
7198
7210
|
};
|
|
7199
7211
|
}
|
|
7200
|
-
function
|
|
7212
|
+
function Ma(e) {
|
|
7201
7213
|
const { appropriatenessTestService: t } = Fe(), [i, a] = b(null), [n, l] = b(!1), [o, p] = b(!1), [u, d] = b(null), [y, v] = b(null), T = me(!1), I = me(null), x = te(async () => {
|
|
7202
7214
|
if (e) {
|
|
7203
7215
|
if (T.current) {
|
|
@@ -7242,7 +7254,7 @@ function ja(e) {
|
|
|
7242
7254
|
submit: q
|
|
7243
7255
|
};
|
|
7244
7256
|
}
|
|
7245
|
-
function
|
|
7257
|
+
function Pi(e) {
|
|
7246
7258
|
const { overviewService: t } = Fe(), [i, a] = b(null), [n, l] = b(!1), [o, p] = b(!1), [u, d] = b(null), y = me(!1), v = me(null), T = te(async () => {
|
|
7247
7259
|
if (e) {
|
|
7248
7260
|
if (y.current) {
|
|
@@ -7284,7 +7296,7 @@ function Ei(e) {
|
|
|
7284
7296
|
passOverview: I
|
|
7285
7297
|
};
|
|
7286
7298
|
}
|
|
7287
|
-
function
|
|
7299
|
+
function Di(e) {
|
|
7288
7300
|
const { identityService: t } = Fe(), [i, a] = b(
|
|
7289
7301
|
null
|
|
7290
7302
|
), [n, l] = b(!1), [o, p] = b(null), u = me(!1), d = te(
|
|
@@ -7370,7 +7382,7 @@ function Pi(e) {
|
|
|
7370
7382
|
restartIdentity: v
|
|
7371
7383
|
};
|
|
7372
7384
|
}
|
|
7373
|
-
function
|
|
7385
|
+
function ji(e) {
|
|
7374
7386
|
const { riskScoringService: t, applicantService: i } = Fe(), [a, n] = b(null), [l, o] = b({}), [p, u] = b(!1), [d, y] = b(!1), [v, T] = b(null), [I, x] = b(null), q = me(!1), S = me(null), L = te(async () => {
|
|
7375
7387
|
var F;
|
|
7376
7388
|
if (e) {
|
|
@@ -7431,7 +7443,7 @@ function Di(e) {
|
|
|
7431
7443
|
submit: B
|
|
7432
7444
|
};
|
|
7433
7445
|
}
|
|
7434
|
-
function
|
|
7446
|
+
function tr() {
|
|
7435
7447
|
const { applicantService: e, config: t } = Fe(), [i, a] = b(!1), [n, l] = b(null), o = me(!1), p = me(!1), u = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(I) {
|
|
7436
7448
|
const x = Math.random() * 16 | 0;
|
|
7437
7449
|
return (I === "x" ? x : x & 3 | 8).toString(16);
|
|
@@ -7505,7 +7517,7 @@ function Jt() {
|
|
|
7505
7517
|
stopProgress: T
|
|
7506
7518
|
};
|
|
7507
7519
|
}
|
|
7508
|
-
const
|
|
7520
|
+
const Mi = {
|
|
7509
7521
|
primary: {
|
|
7510
7522
|
backgroundColor: "var(--metakyc-primary, #2563eb)",
|
|
7511
7523
|
color: "#ffffff",
|
|
@@ -7566,7 +7578,7 @@ const ji = {
|
|
|
7566
7578
|
opacity: n || a ? 0.5 : 1,
|
|
7567
7579
|
lineHeight: "1.25rem",
|
|
7568
7580
|
...y[i],
|
|
7569
|
-
...
|
|
7581
|
+
...Mi[t],
|
|
7570
7582
|
...o
|
|
7571
7583
|
},
|
|
7572
7584
|
disabled: n || a,
|
|
@@ -7703,7 +7715,7 @@ const re = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
|
|
|
7703
7715
|
...a,
|
|
7704
7716
|
children: e
|
|
7705
7717
|
}
|
|
7706
|
-
),
|
|
7718
|
+
), Fi = {
|
|
7707
7719
|
display: "inline-flex",
|
|
7708
7720
|
alignItems: "center",
|
|
7709
7721
|
justifyContent: "center",
|
|
@@ -7737,7 +7749,7 @@ const re = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
|
|
|
7737
7749
|
(p.key === " " || p.key === "Enter") && (p.preventDefault(), i || t(!e));
|
|
7738
7750
|
},
|
|
7739
7751
|
style: {
|
|
7740
|
-
...
|
|
7752
|
+
...Fi,
|
|
7741
7753
|
backgroundColor: e ? o : l,
|
|
7742
7754
|
borderColor: e ? o : n,
|
|
7743
7755
|
opacity: i ? 0.5 : 1,
|
|
@@ -7766,7 +7778,7 @@ const re = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
|
|
|
7766
7778
|
)
|
|
7767
7779
|
}
|
|
7768
7780
|
);
|
|
7769
|
-
},
|
|
7781
|
+
}, Oi = {
|
|
7770
7782
|
default: {
|
|
7771
7783
|
backgroundColor: "var(--metakyc-surface, #f3f4f6)",
|
|
7772
7784
|
color: "var(--metakyc-text-secondary, #6b7280)"
|
|
@@ -7790,14 +7802,14 @@ const re = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
|
|
|
7790
7802
|
backgroundColor: "#fef3c7",
|
|
7791
7803
|
color: "#92400e"
|
|
7792
7804
|
}
|
|
7793
|
-
},
|
|
7805
|
+
}, rr = ({ children: e, variant: t = "default", className: i, style: a, ...n }) => /* @__PURE__ */ r(
|
|
7794
7806
|
"span",
|
|
7795
7807
|
{
|
|
7796
7808
|
className: De(
|
|
7797
7809
|
"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",
|
|
7798
7810
|
i
|
|
7799
7811
|
),
|
|
7800
|
-
style: { ...
|
|
7812
|
+
style: { ...Oi[t], ...a },
|
|
7801
7813
|
...n,
|
|
7802
7814
|
children: e
|
|
7803
7815
|
}
|
|
@@ -7904,7 +7916,7 @@ const re = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
|
|
|
7904
7916
|
] })
|
|
7905
7917
|
);
|
|
7906
7918
|
At.displayName = "Select";
|
|
7907
|
-
const
|
|
7919
|
+
const qt = 280, Vi = ({
|
|
7908
7920
|
label: e,
|
|
7909
7921
|
value: t,
|
|
7910
7922
|
onChange: i,
|
|
@@ -7924,7 +7936,7 @@ const Bt = 280, Oi = ({
|
|
|
7924
7936
|
hoverBg: "#f9fafb"
|
|
7925
7937
|
}), F = me(null), U = me(null), K = me(null), J = te(() => {
|
|
7926
7938
|
if (!U.current) return null;
|
|
7927
|
-
const P = U.current.getBoundingClientRect(), O = window.innerHeight - P.bottom <
|
|
7939
|
+
const P = U.current.getBoundingClientRect(), O = window.innerHeight - P.bottom < qt && P.top > qt;
|
|
7928
7940
|
return { top: O ? P.top : P.bottom + 4, left: P.left, width: P.width, openUp: O };
|
|
7929
7941
|
}, []), ae = te(() => {
|
|
7930
7942
|
const P = getComputedStyle(document.querySelector(".metakyc-sdk") || document.documentElement), A = (he, se) => P.getPropertyValue(he).trim() || se, O = A("--metakyc-input-bg", A("--metakyc-background", "#ffffff"));
|
|
@@ -8172,7 +8184,7 @@ const Bt = 280, Oi = ({
|
|
|
8172
8184
|
),
|
|
8173
8185
|
typeof document < "u" && ue ? zt(ue, document.body) : null
|
|
8174
8186
|
] });
|
|
8175
|
-
},
|
|
8187
|
+
}, Ut = 260, Qe = ({
|
|
8176
8188
|
label: e,
|
|
8177
8189
|
error: t,
|
|
8178
8190
|
helperText: i,
|
|
@@ -8207,7 +8219,7 @@ const Bt = 280, Oi = ({
|
|
|
8207
8219
|
});
|
|
8208
8220
|
}, []), ae = me(null), w = me(null), R = me(null), V = me(null), Q = te(() => {
|
|
8209
8221
|
if (!w.current) return null;
|
|
8210
|
-
const D = w.current.getBoundingClientRect(), Z = window.innerHeight - D.bottom <
|
|
8222
|
+
const D = w.current.getBoundingClientRect(), Z = window.innerHeight - D.bottom < Ut && D.top > Ut;
|
|
8211
8223
|
return {
|
|
8212
8224
|
top: Z ? D.top : D.bottom + 4,
|
|
8213
8225
|
left: D.left,
|
|
@@ -8404,11 +8416,11 @@ const Bt = 280, Oi = ({
|
|
|
8404
8416
|
);
|
|
8405
8417
|
};
|
|
8406
8418
|
Qe.displayName = "SearchableSelect";
|
|
8407
|
-
function
|
|
8419
|
+
function Bi(e) {
|
|
8408
8420
|
const t = e.type;
|
|
8409
8421
|
return t.startsWith("image/") ? "image" : t === "application/pdf" ? "pdf" : "file";
|
|
8410
8422
|
}
|
|
8411
|
-
const
|
|
8423
|
+
const qi = ({
|
|
8412
8424
|
label: e,
|
|
8413
8425
|
subtitle: t,
|
|
8414
8426
|
error: i,
|
|
@@ -8545,7 +8557,7 @@ const Bi = ({
|
|
|
8545
8557
|
}
|
|
8546
8558
|
),
|
|
8547
8559
|
ae && /* @__PURE__ */ r("div", { style: { marginTop: "12px", display: "flex", flexDirection: "column", gap: "8px" }, children: u.map((w, R) => {
|
|
8548
|
-
const V =
|
|
8560
|
+
const V = Bi(w), Q = V === "image", X = Q ? URL.createObjectURL(w) : null;
|
|
8549
8561
|
return /* @__PURE__ */ s(
|
|
8550
8562
|
"div",
|
|
8551
8563
|
{
|
|
@@ -8647,7 +8659,7 @@ const Bi = ({
|
|
|
8647
8659
|
}) }),
|
|
8648
8660
|
J && /* @__PURE__ */ r("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", marginTop: "6px" }, children: J })
|
|
8649
8661
|
] });
|
|
8650
|
-
},
|
|
8662
|
+
}, Ui = kt(
|
|
8651
8663
|
({ countryCode: e = "+1", onCountryCodeChange: t, className: i, ...a }, n) => /* @__PURE__ */ s("div", { className: "w-full", children: [
|
|
8652
8664
|
a.label && /* @__PURE__ */ s(
|
|
8653
8665
|
"label",
|
|
@@ -8694,28 +8706,28 @@ const Bi = ({
|
|
|
8694
8706
|
a.error && /* @__PURE__ */ r("p", { className: "mt-1 text-sm text-danger-500", children: a.error })
|
|
8695
8707
|
] })
|
|
8696
8708
|
);
|
|
8697
|
-
|
|
8709
|
+
Ui.displayName = "PhoneInput";
|
|
8698
8710
|
/**
|
|
8699
8711
|
* @license lucide-react v0.574.0 - ISC
|
|
8700
8712
|
*
|
|
8701
8713
|
* This source code is licensed under the ISC license.
|
|
8702
8714
|
* See the LICENSE file in the root directory of this source tree.
|
|
8703
8715
|
*/
|
|
8704
|
-
const
|
|
8716
|
+
const ir = (...e) => e.filter((t, i, a) => !!t && t.trim() !== "" && a.indexOf(t) === i).join(" ").trim();
|
|
8705
8717
|
/**
|
|
8706
8718
|
* @license lucide-react v0.574.0 - ISC
|
|
8707
8719
|
*
|
|
8708
8720
|
* This source code is licensed under the ISC license.
|
|
8709
8721
|
* See the LICENSE file in the root directory of this source tree.
|
|
8710
8722
|
*/
|
|
8711
|
-
const
|
|
8723
|
+
const Wi = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
8712
8724
|
/**
|
|
8713
8725
|
* @license lucide-react v0.574.0 - ISC
|
|
8714
8726
|
*
|
|
8715
8727
|
* This source code is licensed under the ISC license.
|
|
8716
8728
|
* See the LICENSE file in the root directory of this source tree.
|
|
8717
8729
|
*/
|
|
8718
|
-
const
|
|
8730
|
+
const Ki = (e) => e.replace(
|
|
8719
8731
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
8720
8732
|
(t, i, a) => a ? a.toUpperCase() : i.toLowerCase()
|
|
8721
8733
|
);
|
|
@@ -8725,8 +8737,8 @@ const Wi = (e) => e.replace(
|
|
|
8725
8737
|
* This source code is licensed under the ISC license.
|
|
8726
8738
|
* See the LICENSE file in the root directory of this source tree.
|
|
8727
8739
|
*/
|
|
8728
|
-
const
|
|
8729
|
-
const t =
|
|
8740
|
+
const Wt = (e) => {
|
|
8741
|
+
const t = Ki(e);
|
|
8730
8742
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
8731
8743
|
};
|
|
8732
8744
|
/**
|
|
@@ -8735,7 +8747,7 @@ const Ut = (e) => {
|
|
|
8735
8747
|
* This source code is licensed under the ISC license.
|
|
8736
8748
|
* See the LICENSE file in the root directory of this source tree.
|
|
8737
8749
|
*/
|
|
8738
|
-
var
|
|
8750
|
+
var Yi = {
|
|
8739
8751
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8740
8752
|
width: 24,
|
|
8741
8753
|
height: 24,
|
|
@@ -8752,7 +8764,7 @@ var Ki = {
|
|
|
8752
8764
|
* This source code is licensed under the ISC license.
|
|
8753
8765
|
* See the LICENSE file in the root directory of this source tree.
|
|
8754
8766
|
*/
|
|
8755
|
-
const
|
|
8767
|
+
const Hi = (e) => {
|
|
8756
8768
|
for (const t in e)
|
|
8757
8769
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
8758
8770
|
return !0;
|
|
@@ -8764,7 +8776,7 @@ const Yi = (e) => {
|
|
|
8764
8776
|
* This source code is licensed under the ISC license.
|
|
8765
8777
|
* See the LICENSE file in the root directory of this source tree.
|
|
8766
8778
|
*/
|
|
8767
|
-
const
|
|
8779
|
+
const $i = kt(
|
|
8768
8780
|
({
|
|
8769
8781
|
color: e = "currentColor",
|
|
8770
8782
|
size: t = 24,
|
|
@@ -8778,13 +8790,13 @@ const Hi = kt(
|
|
|
8778
8790
|
"svg",
|
|
8779
8791
|
{
|
|
8780
8792
|
ref: u,
|
|
8781
|
-
...
|
|
8793
|
+
...Yi,
|
|
8782
8794
|
width: t,
|
|
8783
8795
|
height: t,
|
|
8784
8796
|
stroke: e,
|
|
8785
8797
|
strokeWidth: a ? Number(i) * 24 / Number(t) : i,
|
|
8786
|
-
className:
|
|
8787
|
-
...!l && !
|
|
8798
|
+
className: ir("lucide", n),
|
|
8799
|
+
...!l && !Hi(p) && { "aria-hidden": "true" },
|
|
8788
8800
|
...p
|
|
8789
8801
|
},
|
|
8790
8802
|
[
|
|
@@ -8799,20 +8811,20 @@ const Hi = kt(
|
|
|
8799
8811
|
* This source code is licensed under the ISC license.
|
|
8800
8812
|
* See the LICENSE file in the root directory of this source tree.
|
|
8801
8813
|
*/
|
|
8802
|
-
const
|
|
8814
|
+
const ar = (e, t) => {
|
|
8803
8815
|
const i = kt(
|
|
8804
|
-
({ className: a, ...n }, l) => Tt(
|
|
8816
|
+
({ className: a, ...n }, l) => Tt($i, {
|
|
8805
8817
|
ref: l,
|
|
8806
8818
|
iconNode: t,
|
|
8807
|
-
className:
|
|
8808
|
-
`lucide-${
|
|
8819
|
+
className: ir(
|
|
8820
|
+
`lucide-${Wi(Wt(e))}`,
|
|
8809
8821
|
`lucide-${e}`,
|
|
8810
8822
|
a
|
|
8811
8823
|
),
|
|
8812
8824
|
...n
|
|
8813
8825
|
})
|
|
8814
8826
|
);
|
|
8815
|
-
return i.displayName =
|
|
8827
|
+
return i.displayName = Wt(e), i;
|
|
8816
8828
|
};
|
|
8817
8829
|
/**
|
|
8818
8830
|
* @license lucide-react v0.574.0 - ISC
|
|
@@ -8820,15 +8832,15 @@ const rr = (e, t) => {
|
|
|
8820
8832
|
* This source code is licensed under the ISC license.
|
|
8821
8833
|
* See the LICENSE file in the root directory of this source tree.
|
|
8822
8834
|
*/
|
|
8823
|
-
const
|
|
8835
|
+
const _i = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], nr = ar("chevron-left", _i);
|
|
8824
8836
|
/**
|
|
8825
8837
|
* @license lucide-react v0.574.0 - ISC
|
|
8826
8838
|
*
|
|
8827
8839
|
* This source code is licensed under the ISC license.
|
|
8828
8840
|
* See the LICENSE file in the root directory of this source tree.
|
|
8829
8841
|
*/
|
|
8830
|
-
const
|
|
8831
|
-
function
|
|
8842
|
+
const Gi = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], or = ar("chevron-right", Gi);
|
|
8843
|
+
function Qi(e, t) {
|
|
8832
8844
|
const i = !t || t.length === 0 || t.every((a) => !a || !a.trim());
|
|
8833
8845
|
if (e.isRequired && i)
|
|
8834
8846
|
return e.errorMessage || "This field is required";
|
|
@@ -8857,7 +8869,7 @@ function Gi(e, t) {
|
|
|
8857
8869
|
}
|
|
8858
8870
|
return null;
|
|
8859
8871
|
}
|
|
8860
|
-
function
|
|
8872
|
+
function Xi(e) {
|
|
8861
8873
|
const t = e.flatMap(
|
|
8862
8874
|
(a, n) => (a.questions ?? []).map((l, o) => ({ question: l, groupIndex: n, qIdx: o }))
|
|
8863
8875
|
), i = /* @__PURE__ */ new Map();
|
|
@@ -8867,17 +8879,17 @@ function Qi(e) {
|
|
|
8867
8879
|
}
|
|
8868
8880
|
return Array.from(i.entries()).sort(([a], [n]) => a - n).map(([, a]) => a);
|
|
8869
8881
|
}
|
|
8870
|
-
const
|
|
8882
|
+
const Zi = ({
|
|
8871
8883
|
applicantId: e,
|
|
8872
8884
|
onComplete: t,
|
|
8873
8885
|
onBack: i
|
|
8874
8886
|
}) => {
|
|
8875
|
-
const { t: a } = Ie(), { questionnaire: n, initialAnswers: l, isLoading: o, isSubmitting: p, error: u, submit: d } =
|
|
8887
|
+
const { t: a } = Ie(), { questionnaire: n, initialAnswers: l, isLoading: o, isSubmitting: p, error: u, submit: d } = Li(e), [y, v] = b({}), [T, I] = b({}), [x, q] = b(0);
|
|
8876
8888
|
Se.useEffect(() => {
|
|
8877
8889
|
l && Object.keys(l).length > 0 && Object.keys(y).length === 0 && v(l);
|
|
8878
8890
|
}, [l]);
|
|
8879
8891
|
const S = Me(
|
|
8880
|
-
() => n ?
|
|
8892
|
+
() => n ? Xi(n.questionGroups) : [],
|
|
8881
8893
|
[n]
|
|
8882
8894
|
), L = x === S.length - 1, B = S[x] ?? [], F = te((w, R) => {
|
|
8883
8895
|
v((V) => ({ ...V, [w]: R })), I((V) => {
|
|
@@ -8887,7 +8899,7 @@ const Xi = ({
|
|
|
8887
8899
|
}, []), U = te(() => {
|
|
8888
8900
|
const w = {};
|
|
8889
8901
|
for (const { question: R } of B) {
|
|
8890
|
-
const V =
|
|
8902
|
+
const V = Qi(R, y[R.id] ?? []);
|
|
8891
8903
|
V && (w[R.id] = V);
|
|
8892
8904
|
}
|
|
8893
8905
|
return I((R) => ({ ...R, ...w })), Object.keys(w).length === 0;
|
|
@@ -8938,7 +8950,7 @@ const Xi = ({
|
|
|
8938
8950
|
] })
|
|
8939
8951
|
] }),
|
|
8940
8952
|
/* @__PURE__ */ r(ie, { className: "space-y-6", children: B.map(({ question: w }) => /* @__PURE__ */ r(
|
|
8941
|
-
|
|
8953
|
+
Ji,
|
|
8942
8954
|
{
|
|
8943
8955
|
question: w,
|
|
8944
8956
|
value: y[w.id] ?? [],
|
|
@@ -8956,7 +8968,7 @@ const Xi = ({
|
|
|
8956
8968
|
onClick: J,
|
|
8957
8969
|
style: { display: "flex", alignItems: "center", gap: "4px" },
|
|
8958
8970
|
children: [
|
|
8959
|
-
/* @__PURE__ */ r(
|
|
8971
|
+
/* @__PURE__ */ r(nr, { size: 14 }),
|
|
8960
8972
|
x > 0 ? a("common.previous") : a("common.back")
|
|
8961
8973
|
]
|
|
8962
8974
|
}
|
|
@@ -8977,14 +8989,14 @@ const Xi = ({
|
|
|
8977
8989
|
style: { display: "flex", alignItems: "center", gap: "4px" },
|
|
8978
8990
|
children: [
|
|
8979
8991
|
a("common.next"),
|
|
8980
|
-
/* @__PURE__ */ r(
|
|
8992
|
+
/* @__PURE__ */ r(or, { size: 14 })
|
|
8981
8993
|
]
|
|
8982
8994
|
}
|
|
8983
8995
|
)
|
|
8984
8996
|
] }),
|
|
8985
8997
|
u && /* @__PURE__ */ r("div", { className: "mx-6 mb-4 p-3 bg-red-50 border border-red-200 rounded", children: /* @__PURE__ */ r("p", { className: "text-red-600 text-sm", children: u.message }) })
|
|
8986
8998
|
] }) : null;
|
|
8987
|
-
},
|
|
8999
|
+
}, Ji = ({ question: e, value: t, error: i, onChange: a }) => {
|
|
8988
9000
|
var p;
|
|
8989
9001
|
const { t: n } = Ie(), o = (((p = e.defaultAnswers) == null ? void 0 : p.length) ?? 0) > 0 ? e.showAsDropdown ? e.canMultipleAnswer ? "multi-select" : "single-select" : e.canMultipleAnswer ? "checkbox" : "radio" : "text";
|
|
8990
9002
|
return /* @__PURE__ */ s("div", { className: "space-y-2", children: [
|
|
@@ -9077,7 +9089,7 @@ const Xi = ({
|
|
|
9077
9089
|
i && o === "text" && null
|
|
9078
9090
|
] });
|
|
9079
9091
|
};
|
|
9080
|
-
function
|
|
9092
|
+
function ea(e) {
|
|
9081
9093
|
const t = /* @__PURE__ */ new Map();
|
|
9082
9094
|
for (const i of e) {
|
|
9083
9095
|
const a = i.pageNumber != null && i.pageNumber > 0 ? i.pageNumber : 1;
|
|
@@ -9085,13 +9097,13 @@ function Ji(e) {
|
|
|
9085
9097
|
}
|
|
9086
9098
|
return Array.from(t.entries()).sort(([i], [a]) => i - a).map(([, i]) => i);
|
|
9087
9099
|
}
|
|
9088
|
-
const
|
|
9100
|
+
const ta = ({
|
|
9089
9101
|
applicantId: e,
|
|
9090
9102
|
onComplete: t,
|
|
9091
9103
|
onBack: i
|
|
9092
9104
|
}) => {
|
|
9093
|
-
const { t: a } = Ie(), { uploadDocument: n, isLoading: l, isSubmitting: o, error: p, submit: u } =
|
|
9094
|
-
() => n ?
|
|
9105
|
+
const { t: a } = Ie(), { uploadDocument: n, isLoading: l, isSubmitting: o, error: p, submit: u } = Ei(e), [d, y] = b({}), [v, T] = b(null), [I, x] = b(0), [q, S] = b({}), L = Me(
|
|
9106
|
+
() => n ? ea(n.uploadDocumentFiles) : [],
|
|
9095
9107
|
[n]
|
|
9096
9108
|
), B = L[I] ?? [], F = I === L.length - 1, U = L.length, K = te(() => {
|
|
9097
9109
|
const R = {};
|
|
@@ -9111,7 +9123,7 @@ const ea = ({
|
|
|
9111
9123
|
const X = d[Q.id] || [], W = await Promise.all(
|
|
9112
9124
|
X.map(async (_) => ({
|
|
9113
9125
|
fileName: _.name,
|
|
9114
|
-
fileData: await
|
|
9126
|
+
fileData: await Ci(_)
|
|
9115
9127
|
}))
|
|
9116
9128
|
);
|
|
9117
9129
|
return {
|
|
@@ -9228,7 +9240,7 @@ const ea = ({
|
|
|
9228
9240
|
}, children: n.description })
|
|
9229
9241
|
] }),
|
|
9230
9242
|
/* @__PURE__ */ r(ie, { children: /* @__PURE__ */ r("div", { style: { display: "flex", flexDirection: "column", gap: "24px" }, children: B.map((R) => /* @__PURE__ */ r(
|
|
9231
|
-
|
|
9243
|
+
qi,
|
|
9232
9244
|
{
|
|
9233
9245
|
label: R.displayName,
|
|
9234
9246
|
subtitle: R.subtitle,
|
|
@@ -9297,8 +9309,8 @@ const ea = ({
|
|
|
9297
9309
|
)
|
|
9298
9310
|
] }) })
|
|
9299
9311
|
] }) : null;
|
|
9300
|
-
},
|
|
9301
|
-
const { t: a } = Ie(), { overview: n, isLoading: l, isSubmitting: o, error: p, passOverview: u } =
|
|
9312
|
+
}, ra = ({ applicantId: e, onComplete: t, onBack: i }) => {
|
|
9313
|
+
const { t: a } = Ie(), { overview: n, isLoading: l, isSubmitting: o, error: p, passOverview: u } = Pi(e), d = async () => {
|
|
9302
9314
|
await u(), t == null || t();
|
|
9303
9315
|
};
|
|
9304
9316
|
return l ? /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ r(Ve, { className: "my-8" }) }) }) : p ? /* @__PURE__ */ r(re, { children: /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ s("p", { className: "text-danger-500", children: [
|
|
@@ -9342,7 +9354,7 @@ const ea = ({
|
|
|
9342
9354
|
] })
|
|
9343
9355
|
] }) : null;
|
|
9344
9356
|
};
|
|
9345
|
-
function
|
|
9357
|
+
function ia(e) {
|
|
9346
9358
|
const t = (e ?? "en").toLowerCase().replace("_", "-");
|
|
9347
9359
|
try {
|
|
9348
9360
|
return Intl.NumberFormat.supportedLocalesOf([t]), t;
|
|
@@ -9350,11 +9362,11 @@ function ra(e) {
|
|
|
9350
9362
|
return "en";
|
|
9351
9363
|
}
|
|
9352
9364
|
}
|
|
9353
|
-
function
|
|
9365
|
+
function aa(e) {
|
|
9354
9366
|
return e.valueDataType === Ge.Money && Array.isArray(e.defaultValues) && e.defaultValues.length > 0;
|
|
9355
9367
|
}
|
|
9356
|
-
function
|
|
9357
|
-
const i = new Intl.NumberFormat(
|
|
9368
|
+
function na(e, t) {
|
|
9369
|
+
const i = new Intl.NumberFormat(ia(t), {
|
|
9358
9370
|
minimumFractionDigits: 0,
|
|
9359
9371
|
maximumFractionDigits: 2
|
|
9360
9372
|
});
|
|
@@ -9363,7 +9375,7 @@ function aa(e, t) {
|
|
|
9363
9375
|
return isNaN(n) ? a : i.format(n);
|
|
9364
9376
|
});
|
|
9365
9377
|
}
|
|
9366
|
-
function
|
|
9378
|
+
function oa(e, t) {
|
|
9367
9379
|
const i = !t || t.length === 0 || t.every((a) => !a || !a.trim());
|
|
9368
9380
|
if (e.isRequired && i)
|
|
9369
9381
|
return e.errorMessage || `${e.displayName} is required`;
|
|
@@ -9393,27 +9405,27 @@ function na(e, t) {
|
|
|
9393
9405
|
}
|
|
9394
9406
|
return null;
|
|
9395
9407
|
}
|
|
9396
|
-
function
|
|
9408
|
+
function sa(e) {
|
|
9397
9409
|
const t = /* @__PURE__ */ new Map();
|
|
9398
9410
|
return e.forEach((i, a) => {
|
|
9399
9411
|
const n = i.pageNumber != null && i.pageNumber > 0 ? i.pageNumber : 1;
|
|
9400
9412
|
t.has(n) || t.set(n, []), t.get(n).push({ criterion: i, idx: a });
|
|
9401
9413
|
}), Array.from(t.entries()).sort(([i], [a]) => i - a).map(([, i]) => i);
|
|
9402
9414
|
}
|
|
9403
|
-
function
|
|
9415
|
+
function la(e) {
|
|
9404
9416
|
return e.builtInType === 1 ? "country" : !e.defaultValues || e.defaultValues.length === 0 ? "text" : e.multipleValue ? "checkbox" : "radio";
|
|
9405
9417
|
}
|
|
9406
|
-
const
|
|
9418
|
+
const ca = ({
|
|
9407
9419
|
applicantId: e,
|
|
9408
9420
|
onComplete: t,
|
|
9409
9421
|
onBack: i
|
|
9410
9422
|
}) => {
|
|
9411
|
-
const { t: a } = Ie(), { config: n } = Fe(), l = n.locale ?? "en", { criteria: o, initialAnswers: p, isLoading: u, isSubmitting: d, error: y, submit: v } =
|
|
9423
|
+
const { t: a } = Ie(), { config: n } = Fe(), l = n.locale ?? "en", { criteria: o, initialAnswers: p, isLoading: u, isSubmitting: d, error: y, submit: v } = ji(e), [T, I] = b({}), [x, q] = b({}), [S, L] = b(0), [B, F] = b(!1);
|
|
9412
9424
|
Se.useEffect(() => {
|
|
9413
9425
|
p && Object.keys(p).length > 0 && Object.keys(T).length === 0 && I(p);
|
|
9414
9426
|
}, [p]);
|
|
9415
9427
|
const U = Me(
|
|
9416
|
-
() => o && o.length > 0 ?
|
|
9428
|
+
() => o && o.length > 0 ? sa(o) : [],
|
|
9417
9429
|
[o]
|
|
9418
9430
|
), K = S === U.length - 1, J = U[S] ?? [];
|
|
9419
9431
|
Se.useEffect(() => {
|
|
@@ -9427,7 +9439,7 @@ const la = ({
|
|
|
9427
9439
|
}, []), w = te(() => {
|
|
9428
9440
|
const X = {};
|
|
9429
9441
|
for (const { criterion: W } of J) {
|
|
9430
|
-
const _ =
|
|
9442
|
+
const _ = oa(W, T[W.id] ?? []);
|
|
9431
9443
|
_ && (X[W.id] = _);
|
|
9432
9444
|
}
|
|
9433
9445
|
return q((W) => ({ ...W, ...X })), Object.keys(X).length === 0;
|
|
@@ -9478,7 +9490,7 @@ const la = ({
|
|
|
9478
9490
|
] })
|
|
9479
9491
|
] }),
|
|
9480
9492
|
/* @__PURE__ */ r(ie, { className: "space-y-6", children: J.map(({ criterion: X }) => /* @__PURE__ */ r(
|
|
9481
|
-
|
|
9493
|
+
da,
|
|
9482
9494
|
{
|
|
9483
9495
|
criterion: X,
|
|
9484
9496
|
value: T[X.id] ?? [],
|
|
@@ -9497,7 +9509,7 @@ const la = ({
|
|
|
9497
9509
|
onClick: V,
|
|
9498
9510
|
style: { display: "flex", alignItems: "center", gap: "4px" },
|
|
9499
9511
|
children: [
|
|
9500
|
-
/* @__PURE__ */ r(
|
|
9512
|
+
/* @__PURE__ */ r(nr, { size: 14 }),
|
|
9501
9513
|
S > 0 ? a("common.previous") : a("common.back")
|
|
9502
9514
|
]
|
|
9503
9515
|
}
|
|
@@ -9510,15 +9522,15 @@ const la = ({
|
|
|
9510
9522
|
style: { display: "flex", alignItems: "center", gap: "4px" },
|
|
9511
9523
|
children: [
|
|
9512
9524
|
a("common.next"),
|
|
9513
|
-
/* @__PURE__ */ r(
|
|
9525
|
+
/* @__PURE__ */ r(or, { size: 14 })
|
|
9514
9526
|
]
|
|
9515
9527
|
}
|
|
9516
9528
|
)
|
|
9517
9529
|
] }),
|
|
9518
9530
|
y && /* @__PURE__ */ r("div", { className: "mx-6 mb-4 p-3 bg-red-50 border border-red-200 rounded", children: /* @__PURE__ */ r("p", { className: "text-red-600 text-sm", children: y.message }) })
|
|
9519
9531
|
] }) : null;
|
|
9520
|
-
},
|
|
9521
|
-
const { t: l } = Ie(), o =
|
|
9532
|
+
}, da = ({ criterion: e, value: t, error: i, locale: a, onChange: n }) => {
|
|
9533
|
+
const { t: l } = Ie(), o = la(e), p = e.valueDataType === Ge.Integer || e.valueDataType === Ge.Money || e.valueDataType === Ge.DigitOnly, u = aa(e), d = (y) => u ? na(y, a) : y;
|
|
9522
9534
|
return /* @__PURE__ */ s("div", { className: "space-y-2", children: [
|
|
9523
9535
|
/* @__PURE__ */ s("label", { className: "block text-sm font-medium", style: { color: "var(--metakyc-text-primary, #111827)" }, children: [
|
|
9524
9536
|
e.displayName,
|
|
@@ -9619,7 +9631,7 @@ const la = ({
|
|
|
9619
9631
|
}
|
|
9620
9632
|
)
|
|
9621
9633
|
] });
|
|
9622
|
-
},
|
|
9634
|
+
}, ma = ({
|
|
9623
9635
|
applicantId: e,
|
|
9624
9636
|
onComplete: t,
|
|
9625
9637
|
onBack: i
|
|
@@ -9752,7 +9764,7 @@ const la = ({
|
|
|
9752
9764
|
] })
|
|
9753
9765
|
] }) });
|
|
9754
9766
|
};
|
|
9755
|
-
function
|
|
9767
|
+
function Kt(e) {
|
|
9756
9768
|
const t = e.split(":").map(Number);
|
|
9757
9769
|
return t.length === 3 ? t[0] * 3600 + t[1] * 60 + t[2] : 0;
|
|
9758
9770
|
}
|
|
@@ -9760,7 +9772,7 @@ function Ct(e) {
|
|
|
9760
9772
|
const t = Math.floor(e / 60), i = e % 60;
|
|
9761
9773
|
return `${t.toString().padStart(2, "0")}:${i.toString().padStart(2, "0")}`;
|
|
9762
9774
|
}
|
|
9763
|
-
const
|
|
9775
|
+
const ua = ({
|
|
9764
9776
|
applicantId: e,
|
|
9765
9777
|
onComplete: t,
|
|
9766
9778
|
onBack: i
|
|
@@ -9772,7 +9784,7 @@ const ma = ({
|
|
|
9772
9784
|
u(!0), T(null);
|
|
9773
9785
|
const A = await n.getAppropriatenessTest(e);
|
|
9774
9786
|
if (o(A), A.waitTimeSpanForNextTry && A.waitTimeSpanForNextTry !== "00:00:00") {
|
|
9775
|
-
const O =
|
|
9787
|
+
const O = Kt(A.waitTimeSpanForNextTry);
|
|
9776
9788
|
O > 0 && J(O);
|
|
9777
9789
|
}
|
|
9778
9790
|
} catch (A) {
|
|
@@ -9804,7 +9816,7 @@ const ma = ({
|
|
|
9804
9816
|
try {
|
|
9805
9817
|
const A = await n.getAppropriatenessTest(e);
|
|
9806
9818
|
if (o(A), A.waitTimeSpanForNextTry && A.waitTimeSpanForNextTry !== "00:00:00") {
|
|
9807
|
-
const O =
|
|
9819
|
+
const O = Kt(A.waitTimeSpanForNextTry);
|
|
9808
9820
|
O > 0 && J(O);
|
|
9809
9821
|
}
|
|
9810
9822
|
} catch {
|
|
@@ -10104,7 +10116,7 @@ const ma = ({
|
|
|
10104
10116
|
] }),
|
|
10105
10117
|
/* @__PURE__ */ s(ie, { children: [
|
|
10106
10118
|
ye && /* @__PURE__ */ r(
|
|
10107
|
-
|
|
10119
|
+
ga,
|
|
10108
10120
|
{
|
|
10109
10121
|
question: ye,
|
|
10110
10122
|
index: ae,
|
|
@@ -10204,7 +10216,7 @@ const ma = ({
|
|
|
10204
10216
|
] })
|
|
10205
10217
|
] }) })
|
|
10206
10218
|
] });
|
|
10207
|
-
},
|
|
10219
|
+
}, pa = {
|
|
10208
10220
|
questions: /* @__PURE__ */ s("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
10209
10221
|
/* @__PURE__ */ r("path", { d: "M9 11l3 3L22 4" }),
|
|
10210
10222
|
/* @__PURE__ */ r("path", { d: "M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11" })
|
|
@@ -10236,7 +10248,7 @@ const ma = ({
|
|
|
10236
10248
|
/* @__PURE__ */ r("div", { style: {
|
|
10237
10249
|
color: n ? "#f59e0b" : "var(--metakyc-primary, #2563eb)",
|
|
10238
10250
|
flexShrink: 0
|
|
10239
|
-
}, children:
|
|
10251
|
+
}, children: pa[e] }),
|
|
10240
10252
|
/* @__PURE__ */ s("div", { children: [
|
|
10241
10253
|
/* @__PURE__ */ r("p", { style: { fontSize: "12px", color: "var(--metakyc-text-muted, #9ca3af)", margin: 0 }, children: t }),
|
|
10242
10254
|
/* @__PURE__ */ r("p", { style: {
|
|
@@ -10248,7 +10260,7 @@ const ma = ({
|
|
|
10248
10260
|
}, children: i })
|
|
10249
10261
|
] })
|
|
10250
10262
|
] });
|
|
10251
|
-
},
|
|
10263
|
+
}, ga = ({ question: e, selectedAnswer: t, onSelect: i, disabled: a }) => /* @__PURE__ */ s("div", { children: [
|
|
10252
10264
|
/* @__PURE__ */ s("div", { style: { marginBottom: "16px" }, children: [
|
|
10253
10265
|
e.groupName && /* @__PURE__ */ r("span", { style: {
|
|
10254
10266
|
display: "inline-block",
|
|
@@ -10330,15 +10342,15 @@ const ma = ({
|
|
|
10330
10342
|
l
|
|
10331
10343
|
);
|
|
10332
10344
|
}) })
|
|
10333
|
-
] }),
|
|
10345
|
+
] }), ya = ({
|
|
10334
10346
|
applicantId: e,
|
|
10335
10347
|
onComplete: t,
|
|
10336
10348
|
onBack: i
|
|
10337
10349
|
}) => {
|
|
10338
10350
|
var rt, Ye, ct, Ze;
|
|
10339
|
-
const { t: a } = Ie(), { applicantService: n, baseInformationService: l, identityService: o, config: p, currentTheme: u } = Fe(), { identityData: d, provider: y, token: v, isLoading: T, error: I, requestIdentity: x, restartIdentity: q } =
|
|
10351
|
+
const { t: a } = Ie(), { applicantService: n, baseInformationService: l, identityService: o, config: p, currentTheme: u } = Fe(), { identityData: d, provider: y, token: v, isLoading: T, error: I, requestIdentity: x, restartIdentity: q } = Di(e), [S, L] = b(null), [B, F] = b(null), [U, K] = b([]), [J, ae] = b([]), [w, R] = b(!0), [V, Q] = b(!1), [X, W] = b(null), [_, oe] = b(!1), H = Se.useRef(!1), [je, ge] = b({}), [ye, be] = b({}), ue = u != null && u.reviewPageFields && u.reviewPageFields.length > 0 ? u.reviewPageFields[0] : null, P = !!(u != null && u.reviewPageDisabled), A = me(!1);
|
|
10340
10352
|
A.current = P;
|
|
10341
|
-
const O =
|
|
10353
|
+
const O = ur({
|
|
10342
10354
|
defaultValues: {
|
|
10343
10355
|
street: "",
|
|
10344
10356
|
streetNumber: "",
|
|
@@ -10754,7 +10766,7 @@ const ma = ({
|
|
|
10754
10766
|
children: "?"
|
|
10755
10767
|
}
|
|
10756
10768
|
),
|
|
10757
|
-
M &&
|
|
10769
|
+
M && mr.createPortal(
|
|
10758
10770
|
/* @__PURE__ */ r(
|
|
10759
10771
|
"div",
|
|
10760
10772
|
{
|
|
@@ -11052,7 +11064,7 @@ const ma = ({
|
|
|
11052
11064
|
/* @__PURE__ */ r(G, { type: "submit", isLoading: T, children: a("identity.confirmAndStart") })
|
|
11053
11065
|
] })
|
|
11054
11066
|
] }) });
|
|
11055
|
-
},
|
|
11067
|
+
}, Yt = ({
|
|
11056
11068
|
kycStatus: e,
|
|
11057
11069
|
reviewStatus: t,
|
|
11058
11070
|
workflowResult: i,
|
|
@@ -11142,7 +11154,7 @@ const ma = ({
|
|
|
11142
11154
|
) }),
|
|
11143
11155
|
/* @__PURE__ */ r("h2", { className: "text-3xl font-bold text-center mb-4", style: { color: "var(--metakyc-text-primary, #111827)" }, children: u.title }),
|
|
11144
11156
|
/* @__PURE__ */ r("div", { className: "flex justify-center mb-6", children: /* @__PURE__ */ r(
|
|
11145
|
-
|
|
11157
|
+
rr,
|
|
11146
11158
|
{
|
|
11147
11159
|
variant: u.type === "success" ? "success" : u.type === "error" ? "danger" : u.type === "pending" ? "warning" : "info",
|
|
11148
11160
|
children: e != null ? nt[e] : ot[t]
|
|
@@ -11220,7 +11232,7 @@ const ma = ({
|
|
|
11220
11232
|
u.type === "pending" && /* @__PURE__ */ r("div", { className: "text-center", children: /* @__PURE__ */ r("p", { className: "text-sm text-gray-500 dark:text-gray-400", children: o("status.checkBackLater") }) })
|
|
11221
11233
|
] })
|
|
11222
11234
|
] });
|
|
11223
|
-
},
|
|
11235
|
+
}, fa = ({ config: e, className: t = "" }) => {
|
|
11224
11236
|
const { t: i } = Ie();
|
|
11225
11237
|
return !(e != null && e.visible) || !(e != null && e.url) ? null : /* @__PURE__ */ r("div", { className: `metakyc-logo ${t}`, children: /* @__PURE__ */ r(
|
|
11226
11238
|
"img",
|
|
@@ -11251,7 +11263,7 @@ const ma = ({
|
|
|
11251
11263
|
className: "metakyc-header-title flex items-center text-xl font-bold",
|
|
11252
11264
|
style: { color: "var(--metakyc-text-primary, #111827)" },
|
|
11253
11265
|
children: [
|
|
11254
|
-
l && /* @__PURE__ */ r(
|
|
11266
|
+
l && /* @__PURE__ */ r(fa, { config: a.logo }),
|
|
11255
11267
|
l && o && /* @__PURE__ */ r(
|
|
11256
11268
|
"span",
|
|
11257
11269
|
{
|
|
@@ -11269,7 +11281,7 @@ const ma = ({
|
|
|
11269
11281
|
function mt(e) {
|
|
11270
11282
|
return e == null || e === "" || Array.isArray(e) && e.length === 0;
|
|
11271
11283
|
}
|
|
11272
|
-
const
|
|
11284
|
+
const ka = {
|
|
11273
11285
|
width: "16px",
|
|
11274
11286
|
height: "16px",
|
|
11275
11287
|
minWidth: "16px",
|
|
@@ -11281,7 +11293,7 @@ const fa = {
|
|
|
11281
11293
|
padding: 0,
|
|
11282
11294
|
display: "inline-block",
|
|
11283
11295
|
verticalAlign: "middle"
|
|
11284
|
-
},
|
|
11296
|
+
}, Ht = ({ helpText: e, children: t }) => {
|
|
11285
11297
|
const [i, a] = Se.useState(!1);
|
|
11286
11298
|
if (!e) return /* @__PURE__ */ r(ut, { children: t });
|
|
11287
11299
|
const n = i ? /* @__PURE__ */ r(
|
|
@@ -11402,14 +11414,14 @@ const fa = {
|
|
|
11402
11414
|
),
|
|
11403
11415
|
typeof document < "u" && n ? zt(n, document.body) : null
|
|
11404
11416
|
] });
|
|
11405
|
-
},
|
|
11417
|
+
}, Fa = ({
|
|
11406
11418
|
workflowKey: e,
|
|
11407
11419
|
externalRefId: t,
|
|
11408
11420
|
onSuccess: i,
|
|
11409
11421
|
onCancel: a
|
|
11410
11422
|
}) => {
|
|
11411
11423
|
var $, Y, ee, g, z, E, m;
|
|
11412
|
-
const { config: n, baseInformationService: l, currentTheme: o } = Fe(), { createApplicant: p, isLoading: u } =
|
|
11424
|
+
const { config: n, baseInformationService: l, currentTheme: o } = Fe(), { createApplicant: p, isLoading: u } = tr(), { t: d } = Ie(), y = e || (($ = n.applicantForm) == null ? void 0 : $.workflowKey);
|
|
11413
11425
|
if (!y)
|
|
11414
11426
|
throw new Error(
|
|
11415
11427
|
"workflowKey is required. Provide it either as a prop to CreateApplicantForm or set it in config.applicantForm.workflowKey"
|
|
@@ -11433,7 +11445,7 @@ const fa = {
|
|
|
11433
11445
|
return Array.from(N);
|
|
11434
11446
|
}
|
|
11435
11447
|
let c;
|
|
11436
|
-
(j = n.applicantForm) != null && j.visibleFields ? c = n.applicantForm.visibleFields : o != null && o.applicantFormVisibleFields && o.applicantFormVisibleFields.length > 0 ? c = o.applicantFormVisibleFields : c =
|
|
11448
|
+
(j = n.applicantForm) != null && j.visibleFields ? c = n.applicantForm.visibleFields : o != null && o.applicantFormVisibleFields && o.applicantFormVisibleFields.length > 0 ? c = o.applicantFormVisibleFields : c = Nr;
|
|
11437
11449
|
const k = new Set(c);
|
|
11438
11450
|
for (const h of vt) k.add(h);
|
|
11439
11451
|
return Array.from(k);
|
|
@@ -11665,7 +11677,7 @@ const fa = {
|
|
|
11665
11677
|
var Lt;
|
|
11666
11678
|
const C = st[c];
|
|
11667
11679
|
if (!C) return null;
|
|
11668
|
-
const pe = B.includes(c), le = A[c], xe = ve(j, d) || C.label, Oe = c in oe, ce = k ?? c, We = { required: pe }, He = N ? N !== "placeholder" : S, Je = He ? xe : void 0,
|
|
11680
|
+
const pe = B.includes(c), le = A[c], xe = ve(j, d) || C.label, Oe = c in oe, ce = k ?? c, We = { required: pe }, He = N ? N !== "placeholder" : S, Je = He ? xe : void 0, sr = He ? "..." : xe;
|
|
11669
11681
|
switch (C.type) {
|
|
11670
11682
|
case "select":
|
|
11671
11683
|
if (c === "country" || c === "nationality" || c === "taxCountry" || c === "countryOfBirth" || c === "mobileCountryCode") {
|
|
@@ -11677,7 +11689,7 @@ const fa = {
|
|
|
11677
11689
|
label: Je,
|
|
11678
11690
|
value: H[c] || "",
|
|
11679
11691
|
onChange: (it) => Z(c, it),
|
|
11680
|
-
options: [{ value: "", label: `Select ${
|
|
11692
|
+
options: [{ value: "", label: `Select ${sr.toLowerCase()}` }, ...Ae],
|
|
11681
11693
|
disabled: w,
|
|
11682
11694
|
readOnly: Oe,
|
|
11683
11695
|
error: le
|
|
@@ -11725,7 +11737,7 @@ const fa = {
|
|
|
11725
11737
|
if (c === "otherNationality") {
|
|
11726
11738
|
const Ae = X(c, h);
|
|
11727
11739
|
return /* @__PURE__ */ r(
|
|
11728
|
-
|
|
11740
|
+
Vi,
|
|
11729
11741
|
{
|
|
11730
11742
|
...We,
|
|
11731
11743
|
label: Je,
|
|
@@ -12009,7 +12021,7 @@ const fa = {
|
|
|
12009
12021
|
onChange: () => Te(c.paramName, C.value),
|
|
12010
12022
|
name: `radio-group-${c.paramName}-${k}`,
|
|
12011
12023
|
className: "metakyc-option-input",
|
|
12012
|
-
style:
|
|
12024
|
+
style: ka
|
|
12013
12025
|
}
|
|
12014
12026
|
),
|
|
12015
12027
|
/* @__PURE__ */ r(
|
|
@@ -12041,7 +12053,7 @@ const fa = {
|
|
|
12041
12053
|
}, M = (c, k) => {
|
|
12042
12054
|
const j = ze(c);
|
|
12043
12055
|
return /* @__PURE__ */ s("div", { className: "space-y-4", children: [
|
|
12044
|
-
c.conditionalOn && /* @__PURE__ */ r(
|
|
12056
|
+
c.conditionalOn && /* @__PURE__ */ r(Ht, { helpText: c.conditionalHelpText, children: /* @__PURE__ */ s(
|
|
12045
12057
|
"label",
|
|
12046
12058
|
{
|
|
12047
12059
|
className: "metakyc-option-label",
|
|
@@ -12067,7 +12079,7 @@ const fa = {
|
|
|
12067
12079
|
) }),
|
|
12068
12080
|
j && /* @__PURE__ */ r("div", { style: { display: "grid", gridTemplateColumns: "repeat(4, minmax(0, 1fr))", gap: "1rem" }, children: c.fields.map((h, N) => {
|
|
12069
12081
|
const C = Math.min(4, Math.max(1, Number(h.colSpan) || 4)), pe = h.isCustom ? `custom-${N}-${h.paramName}` : `builtin-${h.name}-${N}`;
|
|
12070
|
-
return /* @__PURE__ */ r("div", { style: { gridColumn: `span ${C} / span ${C}` }, children: /* @__PURE__ */ r(
|
|
12082
|
+
return /* @__PURE__ */ r("div", { style: { gridColumn: `span ${C} / span ${C}` }, children: /* @__PURE__ */ r(Ht, { helpText: h.helpText, children: h.isCustom ? f(h, N) : Ze(h.name, pe, h.displayText, h.countriesType, h.labelMode) }) }, pe);
|
|
12071
12083
|
}) })
|
|
12072
12084
|
] });
|
|
12073
12085
|
};
|
|
@@ -12179,18 +12191,18 @@ const fa = {
|
|
|
12179
12191
|
/* @__PURE__ */ r(G, { type: "submit", isLoading: D || u, children: d("createApplicant.createApplicant") })
|
|
12180
12192
|
] })
|
|
12181
12193
|
] }) }) });
|
|
12182
|
-
},
|
|
12194
|
+
}, $t = ["companyName", "email"];
|
|
12183
12195
|
function Nt(e) {
|
|
12184
12196
|
return e == null || e === "" || Array.isArray(e) && e.length === 0;
|
|
12185
12197
|
}
|
|
12186
|
-
const
|
|
12198
|
+
const Oa = ({
|
|
12187
12199
|
workflowKey: e,
|
|
12188
12200
|
externalRefId: t,
|
|
12189
12201
|
onSuccess: i,
|
|
12190
12202
|
onCancel: a
|
|
12191
12203
|
}) => {
|
|
12192
12204
|
var Ze, f, M, $, Y, ee;
|
|
12193
|
-
const { config: n, baseInformationService: l, currentTheme: o } = Fe(), { createCompanyApplicant: p, isLoading: u } =
|
|
12205
|
+
const { config: n, baseInformationService: l, currentTheme: o } = Fe(), { createCompanyApplicant: p, isLoading: u } = tr(), { t: d } = Ie(), y = e || ((Ze = n.applicantForm) == null ? void 0 : Ze.workflowKey);
|
|
12194
12206
|
if (!y)
|
|
12195
12207
|
throw new Error(
|
|
12196
12208
|
"workflowKey is required. Provide it either as a prop to CreateCompanyApplicantForm or set it in config.applicantForm.workflowKey"
|
|
@@ -12199,7 +12211,7 @@ const Fa = ({
|
|
|
12199
12211
|
() => o != null && o.companyFormPages && o.companyFormPages.length > 0 ? o.companyFormPages : null,
|
|
12200
12212
|
[o == null ? void 0 : o.companyFormPages]
|
|
12201
12213
|
), L = Me(() => {
|
|
12202
|
-
const g = new Set(
|
|
12214
|
+
const g = new Set($t), z = o == null ? void 0 : o.companyFormRequiredFields;
|
|
12203
12215
|
if (z) for (const E of z) g.add(E);
|
|
12204
12216
|
if (S)
|
|
12205
12217
|
for (const E of S)
|
|
@@ -12210,10 +12222,10 @@ const Fa = ({
|
|
|
12210
12222
|
var g;
|
|
12211
12223
|
if (S) {
|
|
12212
12224
|
const z = S.flatMap((m) => m.fields).filter((m) => !m.isCustom && m.name).map((m) => m.name), E = new Set(z);
|
|
12213
|
-
for (const m of
|
|
12225
|
+
for (const m of $t) E.add(m);
|
|
12214
12226
|
return Array.from(E);
|
|
12215
12227
|
}
|
|
12216
|
-
return (g = n.applicantForm) != null && g.visibleFields ? n.applicantForm.visibleFields : o != null && o.companyFormVisibleFields && o.companyFormVisibleFields.length > 0 ? o.companyFormVisibleFields :
|
|
12228
|
+
return (g = n.applicantForm) != null && g.visibleFields ? n.applicantForm.visibleFields : o != null && o.companyFormVisibleFields && o.companyFormVisibleFields.length > 0 ? o.companyFormVisibleFields : Cr;
|
|
12217
12229
|
}, [(ee = n.applicantForm) == null ? void 0 : ee.visibleFields, o == null ? void 0 : o.companyFormVisibleFields, S]), F = /* @__PURE__ */ new Set(["countryResidence", "addressCountry"]), U = Me(() => {
|
|
12218
12230
|
var z, E;
|
|
12219
12231
|
const g = /* @__PURE__ */ new Set();
|
|
@@ -12653,7 +12665,7 @@ const Fa = ({
|
|
|
12653
12665
|
/* @__PURE__ */ r(G, { type: "submit", isLoading: O || u, children: d("createCompany.registerCompany") })
|
|
12654
12666
|
] })
|
|
12655
12667
|
] }) }) });
|
|
12656
|
-
},
|
|
12668
|
+
}, Va = ({
|
|
12657
12669
|
applicantId: e,
|
|
12658
12670
|
onComplete: t,
|
|
12659
12671
|
onError: i,
|
|
@@ -12670,7 +12682,7 @@ const Fa = ({
|
|
|
12670
12682
|
error: T,
|
|
12671
12683
|
moveBack: I,
|
|
12672
12684
|
refreshProgress: x
|
|
12673
|
-
} =
|
|
12685
|
+
} = Ai(e), [q, S] = Se.useState(!1), L = Se.useRef(null);
|
|
12674
12686
|
if (Se.useEffect(() => {
|
|
12675
12687
|
T && i && i(T);
|
|
12676
12688
|
}, [T, i]), Se.useEffect(() => {
|
|
@@ -12718,7 +12730,7 @@ const Fa = ({
|
|
|
12718
12730
|
] }) }) }) });
|
|
12719
12731
|
if (l.status === qe.Finished || l.status === qe.OnHold)
|
|
12720
12732
|
return /* @__PURE__ */ r("div", { className: `metakyc-sdk ${a || ""}`, children: /* @__PURE__ */ r(
|
|
12721
|
-
|
|
12733
|
+
Yt,
|
|
12722
12734
|
{
|
|
12723
12735
|
kycStatus: l.kycStatus,
|
|
12724
12736
|
reviewStatus: l.reviewStatus,
|
|
@@ -12770,7 +12782,7 @@ const Fa = ({
|
|
|
12770
12782
|
}, children: [
|
|
12771
12783
|
/* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "flex-start", justifyContent: "space-between", marginBottom: "16px" }, children: [
|
|
12772
12784
|
/* @__PURE__ */ r(ft, {}),
|
|
12773
|
-
/* @__PURE__ */ r(
|
|
12785
|
+
/* @__PURE__ */ r(rr, { variant: l.status === 1 ? "info" : "success", children: n("common.stepXofY", { current: ae, total: w }) })
|
|
12774
12786
|
] }),
|
|
12775
12787
|
/* @__PURE__ */ s("div", { style: { position: "relative", height: "4px", borderRadius: "999px", overflow: "hidden", marginBottom: "16px" }, children: [
|
|
12776
12788
|
/* @__PURE__ */ r("div", { style: { position: "absolute", inset: 0, backgroundColor: "var(--metakyc-border, #e5e7eb)", opacity: 0.3 } }),
|
|
@@ -12786,7 +12798,7 @@ const Fa = ({
|
|
|
12786
12798
|
} })
|
|
12787
12799
|
] }),
|
|
12788
12800
|
/* @__PURE__ */ r(
|
|
12789
|
-
|
|
12801
|
+
ha,
|
|
12790
12802
|
{
|
|
12791
12803
|
ref: L,
|
|
12792
12804
|
visibleSteps: K,
|
|
@@ -12805,23 +12817,23 @@ const Fa = ({
|
|
|
12805
12817
|
};
|
|
12806
12818
|
switch (o.action) {
|
|
12807
12819
|
case de.Questionaries:
|
|
12808
|
-
return /* @__PURE__ */ r(
|
|
12820
|
+
return /* @__PURE__ */ r(Zi, { ...K });
|
|
12809
12821
|
case de.UploadDocument:
|
|
12810
|
-
return /* @__PURE__ */ r(ea, { ...K });
|
|
12811
|
-
case de.Overview:
|
|
12812
12822
|
return /* @__PURE__ */ r(ta, { ...K });
|
|
12823
|
+
case de.Overview:
|
|
12824
|
+
return /* @__PURE__ */ r(ra, { ...K });
|
|
12813
12825
|
case de.IdentitySdk:
|
|
12814
|
-
return /* @__PURE__ */ r(
|
|
12826
|
+
return /* @__PURE__ */ r(ya, { ...K });
|
|
12815
12827
|
case de.RiskScoring:
|
|
12816
|
-
return /* @__PURE__ */ r(
|
|
12828
|
+
return /* @__PURE__ */ r(ca, { ...K });
|
|
12817
12829
|
case de.AdditionalData:
|
|
12818
12830
|
case de.InvestorCategorization:
|
|
12819
|
-
return /* @__PURE__ */ r(da, { ...K });
|
|
12820
|
-
case de.AppropriatenessTest:
|
|
12821
12831
|
return /* @__PURE__ */ r(ma, { ...K });
|
|
12832
|
+
case de.AppropriatenessTest:
|
|
12833
|
+
return /* @__PURE__ */ r(ua, { ...K });
|
|
12822
12834
|
case de.ManualReview:
|
|
12823
12835
|
return /* @__PURE__ */ r(
|
|
12824
|
-
|
|
12836
|
+
Yt,
|
|
12825
12837
|
{
|
|
12826
12838
|
kycStatus: l.kycStatus,
|
|
12827
12839
|
reviewStatus: l.reviewStatus,
|
|
@@ -12849,7 +12861,7 @@ const Fa = ({
|
|
|
12849
12861
|
F(),
|
|
12850
12862
|
U()
|
|
12851
12863
|
] });
|
|
12852
|
-
},
|
|
12864
|
+
}, ha = Se.forwardRef(
|
|
12853
12865
|
({ visibleSteps: e, currentVisibleStepIndex: t, getStepFallbackName: i }, a) => {
|
|
12854
12866
|
const n = Se.useRef(null), l = Se.useRef(null);
|
|
12855
12867
|
return Se.useImperativeHandle(a, () => n.current), Se.useEffect(() => {
|
|
@@ -12935,12 +12947,12 @@ const Fa = ({
|
|
|
12935
12947
|
);
|
|
12936
12948
|
}
|
|
12937
12949
|
);
|
|
12938
|
-
function
|
|
12950
|
+
function Ba(e) {
|
|
12939
12951
|
return Xe.object({
|
|
12940
12952
|
questionResults: Xe.any()
|
|
12941
12953
|
}).passthrough();
|
|
12942
12954
|
}
|
|
12943
|
-
function
|
|
12955
|
+
function va(e) {
|
|
12944
12956
|
let t = Xe.array(Xe.instanceof(File));
|
|
12945
12957
|
if (e.isRequired ? t = t.min(
|
|
12946
12958
|
1,
|
|
@@ -12962,38 +12974,38 @@ function ha(e) {
|
|
|
12962
12974
|
}
|
|
12963
12975
|
return t;
|
|
12964
12976
|
}
|
|
12965
|
-
function
|
|
12977
|
+
function qa(e) {
|
|
12966
12978
|
const t = {};
|
|
12967
12979
|
return e.uploadDocumentFiles.forEach((i) => {
|
|
12968
12980
|
const a = `file_${i.id}`;
|
|
12969
|
-
t[a] =
|
|
12981
|
+
t[a] = va(i);
|
|
12970
12982
|
}), Xe.object(t);
|
|
12971
12983
|
}
|
|
12972
|
-
function
|
|
12984
|
+
function Ua(e) {
|
|
12973
12985
|
return Xe.any();
|
|
12974
12986
|
}
|
|
12975
|
-
function
|
|
12987
|
+
function ba(e) {
|
|
12976
12988
|
return Xe.string().min(1, "This question is required");
|
|
12977
12989
|
}
|
|
12978
|
-
function
|
|
12990
|
+
function Wa(e) {
|
|
12979
12991
|
const t = {};
|
|
12980
12992
|
return e.appropriatenessQuestions.forEach((i) => {
|
|
12981
12993
|
const a = `question_${i.id}`;
|
|
12982
|
-
t[a] =
|
|
12994
|
+
t[a] = ba();
|
|
12983
12995
|
}), Xe.object(t);
|
|
12984
12996
|
}
|
|
12985
|
-
const
|
|
12997
|
+
const Ka = Xe.any();
|
|
12986
12998
|
export {
|
|
12987
12999
|
Pt as ALLOWED_LANGUAGES,
|
|
12988
|
-
|
|
13000
|
+
pr as ApplicantProgressOnHoldReason,
|
|
12989
13001
|
qe as ApplicantProgressStatus,
|
|
12990
|
-
|
|
12991
|
-
|
|
12992
|
-
|
|
12993
|
-
|
|
12994
|
-
|
|
12995
|
-
|
|
12996
|
-
|
|
13002
|
+
zr as ApplicantService,
|
|
13003
|
+
yr as ApplicantStatus,
|
|
13004
|
+
br as AppropriatenessQuestionType,
|
|
13005
|
+
Er as AppropriatenessTestService,
|
|
13006
|
+
ua as AppropriatenessTestStep,
|
|
13007
|
+
rr as Badge,
|
|
13008
|
+
Mr as BaseInformationService,
|
|
12997
13009
|
G as Button,
|
|
12998
13010
|
dt as COMPANY_FIELD_METADATA,
|
|
12999
13011
|
re as Card,
|
|
@@ -13002,110 +13014,110 @@ export {
|
|
|
13002
13014
|
Ce as CardHeader,
|
|
13003
13015
|
Ue as Checkbox,
|
|
13004
13016
|
tt as CountriesType,
|
|
13005
|
-
|
|
13006
|
-
|
|
13007
|
-
|
|
13008
|
-
|
|
13009
|
-
|
|
13010
|
-
|
|
13011
|
-
|
|
13017
|
+
Fa as CreateApplicantForm,
|
|
13018
|
+
Oa as CreateCompanyApplicantForm,
|
|
13019
|
+
wr as CriteriaBuiltInType,
|
|
13020
|
+
Cr as DEFAULT_COMPANY_VISIBLE_FIELDS,
|
|
13021
|
+
Nr as DEFAULT_VISIBLE_FIELDS,
|
|
13022
|
+
vr as DocumentReviewStatus,
|
|
13023
|
+
Rr as EndpointBuilder,
|
|
13012
13024
|
gt as ErrorHandler,
|
|
13013
|
-
|
|
13025
|
+
Hr as EventEmitter,
|
|
13014
13026
|
st as FIELD_METADATA,
|
|
13015
|
-
|
|
13016
|
-
|
|
13027
|
+
hr as FileType,
|
|
13028
|
+
qi as FileUpload,
|
|
13017
13029
|
xt as GenderType,
|
|
13018
13030
|
ft as Header,
|
|
13019
|
-
|
|
13031
|
+
Ir as HttpClient,
|
|
13020
13032
|
et as IdentityProviderManager,
|
|
13021
|
-
|
|
13033
|
+
jr as IdentityService,
|
|
13022
13034
|
Be as IdentityVerificationProvider,
|
|
13023
|
-
|
|
13035
|
+
ya as IdentityVerificationStep,
|
|
13024
13036
|
we as Input,
|
|
13025
|
-
|
|
13026
|
-
|
|
13037
|
+
Fr as InvestorCategorizationService,
|
|
13038
|
+
ma as InvestorCategorizationStep,
|
|
13027
13039
|
Le as InvestorCategorizationType,
|
|
13028
|
-
|
|
13029
|
-
|
|
13040
|
+
Sr as InvestorCategoryType,
|
|
13041
|
+
fr as KycProcessStatus,
|
|
13030
13042
|
nt as KycStatus,
|
|
13031
|
-
|
|
13032
|
-
|
|
13033
|
-
|
|
13034
|
-
|
|
13043
|
+
Yt as KycStatusDisplay,
|
|
13044
|
+
Va as KycWorkflow,
|
|
13045
|
+
fa as Logo,
|
|
13046
|
+
er as MetaKYCContext,
|
|
13035
13047
|
_e as MetaKYCError,
|
|
13036
|
-
|
|
13037
|
-
|
|
13038
|
-
|
|
13039
|
-
|
|
13040
|
-
|
|
13041
|
-
|
|
13042
|
-
|
|
13043
|
-
|
|
13048
|
+
Aa as MetaKYCProvider,
|
|
13049
|
+
Vi as MultiSelect,
|
|
13050
|
+
Jr as OnfidoProvider,
|
|
13051
|
+
Pr as OverviewService,
|
|
13052
|
+
ra as OverviewStep,
|
|
13053
|
+
Ui as PhoneInput,
|
|
13054
|
+
Ar as QuestionnaireService,
|
|
13055
|
+
Zi as QuestionnaireStep,
|
|
13044
13056
|
ot as ReviewStatus,
|
|
13045
|
-
|
|
13046
|
-
|
|
13047
|
-
|
|
13048
|
-
|
|
13049
|
-
|
|
13050
|
-
|
|
13057
|
+
xr as RiskCriteriaType,
|
|
13058
|
+
gr as RiskLevel,
|
|
13059
|
+
Dr as RiskScoringService,
|
|
13060
|
+
ca as RiskScoringStep,
|
|
13061
|
+
Zt as SDK_VERSION,
|
|
13062
|
+
ei as SardinAIProvider,
|
|
13051
13063
|
Qe as SearchableSelect,
|
|
13052
13064
|
At as Select,
|
|
13053
13065
|
Ve as Spinner,
|
|
13054
|
-
|
|
13055
|
-
|
|
13056
|
-
|
|
13066
|
+
_r as StepRouter,
|
|
13067
|
+
Zr as SumsubProvider,
|
|
13068
|
+
ti as ThemeManager,
|
|
13057
13069
|
Pe as ThemePreset,
|
|
13058
|
-
|
|
13059
|
-
|
|
13060
|
-
|
|
13061
|
-
|
|
13062
|
-
|
|
13063
|
-
|
|
13070
|
+
Kr as ThemeService,
|
|
13071
|
+
xi as TranslationProvider,
|
|
13072
|
+
Yr as TranslationService,
|
|
13073
|
+
Lr as UploadDocumentService,
|
|
13074
|
+
ta as UploadDocumentStep,
|
|
13075
|
+
kr as UserType,
|
|
13064
13076
|
Ge as ValueDataType,
|
|
13065
|
-
|
|
13077
|
+
Gr as WorkflowOrchestrator,
|
|
13066
13078
|
bt as WorkflowResultType,
|
|
13067
|
-
|
|
13079
|
+
$r as WorkflowState,
|
|
13068
13080
|
de as WorkflowStepAction,
|
|
13069
|
-
|
|
13070
|
-
|
|
13071
|
-
|
|
13072
|
-
|
|
13081
|
+
Ka as appropriatenessTestSchema,
|
|
13082
|
+
ja as clearAllStorage,
|
|
13083
|
+
Ri as clearApplicantId,
|
|
13084
|
+
zi as clearWorkflowState,
|
|
13073
13085
|
De as cn,
|
|
13074
|
-
|
|
13075
|
-
|
|
13086
|
+
Or as corporateTheme,
|
|
13087
|
+
Tr as defaultConfig,
|
|
13076
13088
|
Ee as defaultTheme,
|
|
13077
|
-
|
|
13078
|
-
|
|
13089
|
+
Ci as fileToBase64,
|
|
13090
|
+
Vr as fintechTheme,
|
|
13079
13091
|
St as formatFileSize,
|
|
13080
|
-
|
|
13081
|
-
|
|
13082
|
-
|
|
13083
|
-
|
|
13084
|
-
|
|
13085
|
-
|
|
13092
|
+
Wa as generateAppropriatenessSchema,
|
|
13093
|
+
Ba as generateQuestionnaireSchema,
|
|
13094
|
+
Ua as generateRiskScoringSchema,
|
|
13095
|
+
qa as generateUploadDocumentSchema,
|
|
13096
|
+
Pa as getAcceptString,
|
|
13097
|
+
Ti as getApplicantId,
|
|
13086
13098
|
yt as getThemePreset,
|
|
13087
|
-
|
|
13088
|
-
|
|
13089
|
-
|
|
13090
|
-
|
|
13091
|
-
|
|
13092
|
-
|
|
13093
|
-
|
|
13099
|
+
Da as getWorkflowState,
|
|
13100
|
+
Br as healthcareTheme,
|
|
13101
|
+
Ia as isScriptLoaded,
|
|
13102
|
+
Qt as loadScript,
|
|
13103
|
+
Ur as minimalTheme,
|
|
13104
|
+
qr as modernTheme,
|
|
13105
|
+
za as removeScript,
|
|
13094
13106
|
ve as resolveDisplayText,
|
|
13095
|
-
|
|
13096
|
-
|
|
13097
|
-
|
|
13098
|
-
|
|
13099
|
-
|
|
13100
|
-
|
|
13101
|
-
|
|
13107
|
+
Ni as saveApplicantId,
|
|
13108
|
+
Ii as saveWorkflowState,
|
|
13109
|
+
Wr as themePresets,
|
|
13110
|
+
tr as useApplicant,
|
|
13111
|
+
Ma as useAppropriatenessTest,
|
|
13112
|
+
Di as useIdentityVerification,
|
|
13113
|
+
Ai as useKycWorkflow,
|
|
13102
13114
|
Fe as useMetaKYC,
|
|
13103
|
-
|
|
13104
|
-
|
|
13105
|
-
|
|
13115
|
+
Pi as useOverview,
|
|
13116
|
+
Li as useQuestionnaire,
|
|
13117
|
+
ji as useRiskScoring,
|
|
13106
13118
|
Ie as useTranslation,
|
|
13107
|
-
|
|
13108
|
-
|
|
13109
|
-
|
|
13119
|
+
Ei as useUploadDocument,
|
|
13120
|
+
La as validateFileSize,
|
|
13121
|
+
Ea as validateFileType
|
|
13110
13122
|
};
|
|
13111
13123
|
//# sourceMappingURL=index.js.map
|