@vpdev2/metakyc 1.0.27 → 1.0.28
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/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 +364 -357
- package/dist/index.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var fe = (e, t, i) =>
|
|
4
|
-
import
|
|
1
|
+
var sr = Object.defineProperty;
|
|
2
|
+
var lr = (e, t, i) => t in e ? sr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
|
|
3
|
+
var fe = (e, t, i) => lr(e, typeof t != "symbol" ? t + "" : t, i);
|
|
4
|
+
import cr 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 dr, { createPortal as zt } from "react-dom";
|
|
9
|
+
import { useForm as mr, 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 || {}), ur = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.RepresentativeKYC = 1] = "RepresentativeKYC", e[e.ManualRiskCriteria = 2] = "ManualRiskCriteria", e[e.UploadDocumentReview = 3] = "UploadDocumentReview", e[e.AdminReview = 4] = "AdminReview", e))(ur || {}), pr = /* @__PURE__ */ ((e) => (e[e.LowRisk = 0] = "LowRisk", e[e.MediumRisk = 1] = "MediumRisk", e[e.HighRisk = 2] = "HighRisk", e[e.Alert = 3] = "Alert", e))(pr || {}), nt = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Pending = 1] = "Pending", e[e.Approved = 2] = "Approved", e[e.Rejected = 3] = "Rejected", e[e.ResendRequested = 4] = "ResendRequested", e[e.Unknown = 5] = "Unknown", e[e.InProgress = 6] = "InProgress", e))(nt || {}), ot = /* @__PURE__ */ ((e) => (e[e.Approved = 0] = "Approved", e[e.Reject = 1] = "Reject", e[e.UnderReview = 2] = "UnderReview", e[e.Closed = 3] = "Closed", e[e.AdminReview = 4] = "AdminReview", e[e.New = 5] = "New", e[e.InProgress = 6] = "InProgress", e))(ot || {}), gr = /* @__PURE__ */ ((e) => (e[e.ProviderResultPending = 0] = "ProviderResultPending", e[e.ProviderResultReceived = 1] = "ProviderResultReceived", e[e.Canceled = 2] = "Canceled", e[e.ExtendedToNewApplicant = 3] = "ExtendedToNewApplicant", e))(gr || {}), yr = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.ProviderResultPending = 1] = "ProviderResultPending", e[e.ProviderResultReceived = 2] = "ProviderResultReceived", e[e.Canceled = 3] = "Canceled", e))(yr || {}), Be = /* @__PURE__ */ ((e) => (e[e.Onfido = 0] = "Onfido", e[e.Sumsub = 2] = "Sumsub", e[e.SardinAI = 3] = "SardinAI", e))(Be || {}), fr = /* @__PURE__ */ ((e) => (e[e.Individual = 0] = "Individual", e[e.Company = 1] = "Company", e))(fr || {}), xt = /* @__PURE__ */ ((e) => (e[e.Male = 0] = "Male", e[e.Female = 1] = "Female", e[e.Other = 2] = "Other", e))(xt || {}), kr = /* @__PURE__ */ ((e) => (e[e.Image = 0] = "Image", e[e.Video = 1] = "Video", e[e.PDF = 2] = "PDF", e[e.OfficePDF = 3] = "OfficePDF", e[e.Custom = 4] = "Custom", e))(kr || {}), hr = /* @__PURE__ */ ((e) => (e[e.Pending = 0] = "Pending", e[e.Approved = 1] = "Approved", e[e.Rejected = 2] = "Rejected", e[e.RequiresRevision = 3] = "RequiresRevision", e))(hr || {}), vr = /* @__PURE__ */ ((e) => (e[e.SingleChoice = 0] = "SingleChoice", e[e.MultipleChoice = 1] = "MultipleChoice", e[e.Text = 2] = "Text", e))(vr || {}), 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 || {}), br = /* @__PURE__ */ ((e) => (e[e.Text = 0] = "Text", e[e.Radio = 1] = "Radio", e[e.Checkbox = 2] = "Checkbox", e[e.Dropdown = 3] = "Dropdown", e[e.Country = 4] = "Country", e))(br || {}), xr = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Country = 1] = "Country", e))(xr || {}), 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 || {}), wr = /* @__PURE__ */ ((e) => (e[e.Retail = 0] = "Retail", e[e.Professional = 1] = "Professional", e[e.EligibleCounterparty = 2] = "EligibleCounterparty", e))(wr || {});
|
|
12
12
|
const tt = {
|
|
13
13
|
Nationality: 10,
|
|
14
14
|
Address: 20,
|
|
@@ -58,12 +58,12 @@ const tt = {
|
|
|
58
58
|
postalCode: { label: "Postal Code", type: "text" },
|
|
59
59
|
addressCountry: { label: "Address Country", type: "select", countriesType: tt.Address },
|
|
60
60
|
lei: { label: "LEI", type: "text" }
|
|
61
|
-
},
|
|
61
|
+
}, Sr = [
|
|
62
62
|
"companyName",
|
|
63
63
|
"email",
|
|
64
64
|
"phone",
|
|
65
65
|
"registrationNumber"
|
|
66
|
-
],
|
|
66
|
+
], Cr = [
|
|
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 Nr = {
|
|
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 Tr {
|
|
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 Rr {
|
|
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 = { ...Nr, ...t }, this.endpointBuilder = new Tr(this.config.endpoints), this.axiosInstance = cr.create({
|
|
203
203
|
baseURL: this.config.baseUrl,
|
|
204
204
|
timeout: this.config.timeout,
|
|
205
205
|
headers: {
|
|
@@ -295,7 +295,7 @@ class Tr {
|
|
|
295
295
|
return this.axiosInstance;
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
|
-
class
|
|
298
|
+
class Ir {
|
|
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 zr {
|
|
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 Ar {
|
|
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 Lr {
|
|
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 Er {
|
|
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 Pr {
|
|
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 Dr {
|
|
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 jr {
|
|
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 Mr {
|
|
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
|
+
}, Fr = {
|
|
745
745
|
name: "Corporate",
|
|
746
746
|
logo: {
|
|
747
747
|
url: "",
|
|
@@ -774,7 +774,7 @@ const Ee = {
|
|
|
774
774
|
cardPadding: "1.5rem",
|
|
775
775
|
inputHeight: "2.5rem"
|
|
776
776
|
}
|
|
777
|
-
},
|
|
777
|
+
}, Or = {
|
|
778
778
|
name: "Fintech",
|
|
779
779
|
logo: {
|
|
780
780
|
url: "",
|
|
@@ -807,7 +807,7 @@ const Ee = {
|
|
|
807
807
|
cardPadding: "2rem",
|
|
808
808
|
inputHeight: "3rem"
|
|
809
809
|
}
|
|
810
|
-
},
|
|
810
|
+
}, Vr = {
|
|
811
811
|
name: "Healthcare",
|
|
812
812
|
logo: {
|
|
813
813
|
url: "",
|
|
@@ -849,7 +849,7 @@ const Ee = {
|
|
|
849
849
|
textSecondary: "#CBD5E1"
|
|
850
850
|
}
|
|
851
851
|
}
|
|
852
|
-
},
|
|
852
|
+
}, Br = {
|
|
853
853
|
name: "Modern",
|
|
854
854
|
logo: {
|
|
855
855
|
url: "",
|
|
@@ -882,7 +882,7 @@ const Ee = {
|
|
|
882
882
|
cardPadding: "2rem",
|
|
883
883
|
inputHeight: "3rem"
|
|
884
884
|
}
|
|
885
|
-
},
|
|
885
|
+
}, qr = {
|
|
886
886
|
name: "Minimal",
|
|
887
887
|
logo: {
|
|
888
888
|
url: "",
|
|
@@ -915,18 +915,18 @@ const Ee = {
|
|
|
915
915
|
cardPadding: "1.25rem",
|
|
916
916
|
inputHeight: "2.25rem"
|
|
917
917
|
}
|
|
918
|
-
},
|
|
918
|
+
}, Ur = {
|
|
919
919
|
[Pe.Default]: Ee,
|
|
920
|
-
[Pe.Corporate]:
|
|
921
|
-
[Pe.Fintech]:
|
|
922
|
-
[Pe.Healthcare]:
|
|
923
|
-
[Pe.Modern]:
|
|
924
|
-
[Pe.Minimal]:
|
|
920
|
+
[Pe.Corporate]: Fr,
|
|
921
|
+
[Pe.Fintech]: Or,
|
|
922
|
+
[Pe.Healthcare]: Vr,
|
|
923
|
+
[Pe.Modern]: Br,
|
|
924
|
+
[Pe.Minimal]: qr
|
|
925
925
|
};
|
|
926
926
|
function yt(e) {
|
|
927
|
-
return
|
|
927
|
+
return Ur[e] || Ee;
|
|
928
928
|
}
|
|
929
|
-
class
|
|
929
|
+
class Wr {
|
|
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 Kr {
|
|
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 Yr {
|
|
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 Hr {
|
|
1095
1095
|
constructor() {
|
|
1096
|
-
fe(this, "events", new
|
|
1096
|
+
fe(this, "events", new Yr());
|
|
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 _r {
|
|
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 Hr(), 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 Gr = "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 Qr() {
|
|
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 Xr {
|
|
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(Gr, "sumsub-websdk"), !window.snsWebSdk))
|
|
1482
1482
|
throw new Error("Sumsub Web SDK failed to load from CDN");
|
|
1483
1483
|
}
|
|
1484
1484
|
async initialize(t) {
|
|
@@ -1488,7 +1488,7 @@ class 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 = Qr()), 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 Zr {
|
|
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 Jr {
|
|
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 Qr(i);
|
|
1747
|
-
case Be.Onfido:
|
|
1748
1746
|
return new Xr(i);
|
|
1749
|
-
case Be.
|
|
1747
|
+
case Be.Onfido:
|
|
1750
1748
|
return new Zr(i);
|
|
1749
|
+
case Be.SardinAI:
|
|
1750
|
+
return new Jr(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 ei {
|
|
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 ti = {
|
|
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
|
+
}, ri = {
|
|
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
|
+
}, ii = {
|
|
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
|
+
}, ai = {
|
|
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
|
+
}, ni = {
|
|
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
|
+
}, oi = {
|
|
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
|
+
}, si = {
|
|
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
|
+
}, li = {
|
|
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
|
+
}, ci = {
|
|
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
|
+
}, di = {
|
|
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
|
+
}, mi = {
|
|
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
|
+
}, ui = {
|
|
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
|
+
}, pi = {
|
|
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
|
+
}, gi = {
|
|
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
|
+
}, yi = {
|
|
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
|
+
}, fi = {
|
|
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
|
+
}, ki = {
|
|
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: ti,
|
|
6674
|
+
de: ri,
|
|
6675
|
+
fr: ii,
|
|
6676
|
+
es: ai,
|
|
6677
|
+
it: ni,
|
|
6678
|
+
pt: oi,
|
|
6679
|
+
nl: si,
|
|
6680
|
+
pl: li,
|
|
6681
|
+
ru: ci,
|
|
6682
|
+
zh: di,
|
|
6683
|
+
ja: mi,
|
|
6684
|
+
ar: ui,
|
|
6685
|
+
tr: pi,
|
|
6686
|
+
sv: gi,
|
|
6687
|
+
da: yi,
|
|
6688
|
+
fi,
|
|
6689
|
+
no: ki
|
|
6690
6690
|
};
|
|
6691
6691
|
function Dt(e, t) {
|
|
6692
6692
|
const i = t.split(".");
|
|
@@ -6697,7 +6697,7 @@ function Dt(e, t) {
|
|
|
6697
6697
|
}
|
|
6698
6698
|
return typeof a == "string" ? a : void 0;
|
|
6699
6699
|
}
|
|
6700
|
-
function
|
|
6700
|
+
function hi(e, t) {
|
|
6701
6701
|
return t ? e.replace(/\{\{(\w+)\}\}/g, (i, a) => {
|
|
6702
6702
|
const n = t[a];
|
|
6703
6703
|
return n != null ? String(n) : `{{${a}}}`;
|
|
@@ -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 hi(l, a);
|
|
6723
6730
|
};
|
|
6724
6731
|
}
|
|
6725
|
-
const
|
|
6732
|
+
const vi = /^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 = vi.exec(i);
|
|
6732
6739
|
return a ? t(a[1]) : e;
|
|
6733
6740
|
}
|
|
6734
|
-
const
|
|
6741
|
+
const Zt = _t(null), Ot = "metakyc-translations-", bi = ({
|
|
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
|
}
|
|
@@ -6754,7 +6761,7 @@ const Xt = $t(null), Ft = "metakyc-translations-", vi = ({
|
|
|
6754
6761
|
const y = It(a), v = jt(y, d);
|
|
6755
6762
|
o(v);
|
|
6756
6763
|
try {
|
|
6757
|
-
localStorage.setItem(
|
|
6764
|
+
localStorage.setItem(Ot + a, JSON.stringify(d));
|
|
6758
6765
|
} catch {
|
|
6759
6766
|
}
|
|
6760
6767
|
}).catch((d) => {
|
|
@@ -6764,41 +6771,41 @@ const Xt = $t(null), Ft = "metakyc-translations-", vi = ({
|
|
|
6764
6771
|
};
|
|
6765
6772
|
}, [a, t]);
|
|
6766
6773
|
const p = Me(() => ({
|
|
6767
|
-
t:
|
|
6774
|
+
t: Xt(l),
|
|
6768
6775
|
locale: a,
|
|
6769
6776
|
dictionary: l
|
|
6770
6777
|
}), [l, a]);
|
|
6771
|
-
return /* @__PURE__ */ r(
|
|
6778
|
+
return /* @__PURE__ */ r(Zt.Provider, { value: p, children: i });
|
|
6772
6779
|
};
|
|
6773
6780
|
function Ie() {
|
|
6774
|
-
const e =
|
|
6781
|
+
const e = Gt(Zt);
|
|
6775
6782
|
if (!e) {
|
|
6776
6783
|
const t = It("en");
|
|
6777
|
-
return { t:
|
|
6784
|
+
return { t: Xt(t), locale: "en", dictionary: t };
|
|
6778
6785
|
}
|
|
6779
6786
|
return e;
|
|
6780
6787
|
}
|
|
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";
|
|
6788
|
+
const Jt = _t(null), xi = "1.0.28", 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
6789
|
let wt = !1;
|
|
6783
|
-
function
|
|
6790
|
+
function Si() {
|
|
6784
6791
|
if (wt || typeof document > "u") return;
|
|
6785
|
-
if (document.getElementById(
|
|
6792
|
+
if (document.getElementById(Vt)) {
|
|
6786
6793
|
wt = !0;
|
|
6787
6794
|
return;
|
|
6788
6795
|
}
|
|
6789
6796
|
const e = document.createElement("style");
|
|
6790
|
-
e.id =
|
|
6797
|
+
e.id = Vt, e.textContent = wi, document.head.appendChild(e), wt = !0;
|
|
6791
6798
|
}
|
|
6792
|
-
const
|
|
6793
|
-
|
|
6799
|
+
const Bt = "metakyc-theme-cache", Aa = ({ config: e, children: t }) => {
|
|
6800
|
+
Si();
|
|
6794
6801
|
const [i, a] = b(null), n = Se.useRef(!1), l = Se.useRef(!1), o = Me(() => {
|
|
6795
|
-
const d = new
|
|
6802
|
+
const d = new Rr(e), y = new Ir(d), v = new zr(d), T = new Ar(d), I = new Lr(d), x = new Er(d), q = new Pr(d), S = new Dr(d), L = new jr(d), B = new Mr(d), F = new Wr(d), U = new Kr(d), K = new ei();
|
|
6796
6803
|
if (typeof document < "u")
|
|
6797
6804
|
if (e.theme)
|
|
6798
6805
|
K.applyTheme(e.theme);
|
|
6799
6806
|
else
|
|
6800
6807
|
try {
|
|
6801
|
-
const J = localStorage.getItem(
|
|
6808
|
+
const J = localStorage.getItem(Bt);
|
|
6802
6809
|
K.applyTheme(J ? JSON.parse(J) : Ee);
|
|
6803
6810
|
} catch {
|
|
6804
6811
|
K.applyTheme(Ee);
|
|
@@ -6822,7 +6829,7 @@ const Vt = "metakyc-theme-cache", za = ({ config: e, children: t }) => {
|
|
|
6822
6829
|
config: e,
|
|
6823
6830
|
...o,
|
|
6824
6831
|
currentTheme: i,
|
|
6825
|
-
createOrchestrator: () => new
|
|
6832
|
+
createOrchestrator: () => new _r(
|
|
6826
6833
|
o.applicantService,
|
|
6827
6834
|
o.questionnaireService,
|
|
6828
6835
|
o.uploadDocumentService,
|
|
@@ -6848,7 +6855,7 @@ const Vt = "metakyc-theme-cache", za = ({ config: e, children: t }) => {
|
|
|
6848
6855
|
const y = await o.themeService.getThemeConfiguration();
|
|
6849
6856
|
o.themeManager.applyTheme(y), a(o.themeManager.getCurrentTheme()), l.current = !0;
|
|
6850
6857
|
try {
|
|
6851
|
-
localStorage.setItem(
|
|
6858
|
+
localStorage.setItem(Bt, JSON.stringify(y));
|
|
6852
6859
|
} catch {
|
|
6853
6860
|
}
|
|
6854
6861
|
console.log("[MetaKYC] Theme loaded and applied", y);
|
|
@@ -6864,8 +6871,8 @@ const Vt = "metakyc-theme-cache", za = ({ config: e, children: t }) => {
|
|
|
6864
6871
|
(d) => o.translationService.getTranslations(d),
|
|
6865
6872
|
[o.translationService]
|
|
6866
6873
|
);
|
|
6867
|
-
return /* @__PURE__ */ r(
|
|
6868
|
-
|
|
6874
|
+
return /* @__PURE__ */ r(Jt.Provider, { value: p, children: /* @__PURE__ */ s(
|
|
6875
|
+
bi,
|
|
6869
6876
|
{
|
|
6870
6877
|
locale: e.locale || "en",
|
|
6871
6878
|
fetchTranslations: u,
|
|
@@ -6886,7 +6893,7 @@ const Vt = "metakyc-theme-cache", za = ({ config: e, children: t }) => {
|
|
|
6886
6893
|
},
|
|
6887
6894
|
children: [
|
|
6888
6895
|
"SDK v",
|
|
6889
|
-
|
|
6896
|
+
xi
|
|
6890
6897
|
]
|
|
6891
6898
|
}
|
|
6892
6899
|
),
|
|
@@ -6896,12 +6903,12 @@ const Vt = "metakyc-theme-cache", za = ({ config: e, children: t }) => {
|
|
|
6896
6903
|
) });
|
|
6897
6904
|
};
|
|
6898
6905
|
function Fe() {
|
|
6899
|
-
const e =
|
|
6906
|
+
const e = Gt(Jt);
|
|
6900
6907
|
if (!e)
|
|
6901
6908
|
throw new Error("useMetaKYC must be used within a MetaKYCProvider");
|
|
6902
6909
|
return e;
|
|
6903
6910
|
}
|
|
6904
|
-
async function
|
|
6911
|
+
async function Ci(e) {
|
|
6905
6912
|
return new Promise((t, i) => {
|
|
6906
6913
|
const a = new FileReader();
|
|
6907
6914
|
a.readAsDataURL(e), a.onload = () => {
|
|
@@ -6910,10 +6917,10 @@ async function Si(e) {
|
|
|
6910
6917
|
}, a.onerror = (n) => i(n);
|
|
6911
6918
|
});
|
|
6912
6919
|
}
|
|
6913
|
-
function
|
|
6920
|
+
function La(e, t) {
|
|
6914
6921
|
return e.size <= t;
|
|
6915
6922
|
}
|
|
6916
|
-
function
|
|
6923
|
+
function Ea(e, t) {
|
|
6917
6924
|
return t.split(",").map((a) => a.trim()).some((a) => {
|
|
6918
6925
|
if (a.endsWith("/*")) {
|
|
6919
6926
|
const n = a.slice(0, -2);
|
|
@@ -6927,7 +6934,7 @@ function St(e) {
|
|
|
6927
6934
|
const t = 1024, i = ["Bytes", "KB", "MB", "GB"], a = Math.floor(Math.log(e) / Math.log(t));
|
|
6928
6935
|
return Math.round(e / Math.pow(t, a) * 100) / 100 + " " + i[a];
|
|
6929
6936
|
}
|
|
6930
|
-
function
|
|
6937
|
+
function Pa(e) {
|
|
6931
6938
|
return e;
|
|
6932
6939
|
}
|
|
6933
6940
|
function De(...e) {
|
|
@@ -6937,14 +6944,14 @@ const pt = {
|
|
|
6937
6944
|
APPLICANT_ID: "metakyc_applicant_id",
|
|
6938
6945
|
WORKFLOW_STATE: "metakyc_workflow_state"
|
|
6939
6946
|
};
|
|
6940
|
-
function
|
|
6947
|
+
function Ni(e) {
|
|
6941
6948
|
try {
|
|
6942
6949
|
localStorage.setItem(pt.APPLICANT_ID, e.toString());
|
|
6943
6950
|
} catch (t) {
|
|
6944
6951
|
console.warn("Failed to save applicant ID to storage:", t);
|
|
6945
6952
|
}
|
|
6946
6953
|
}
|
|
6947
|
-
function
|
|
6954
|
+
function Ti() {
|
|
6948
6955
|
try {
|
|
6949
6956
|
const e = localStorage.getItem(pt.APPLICANT_ID);
|
|
6950
6957
|
return e ? parseInt(e, 10) : null;
|
|
@@ -6952,21 +6959,21 @@ function Ni() {
|
|
|
6952
6959
|
return console.warn("Failed to retrieve applicant ID from storage:", e), null;
|
|
6953
6960
|
}
|
|
6954
6961
|
}
|
|
6955
|
-
function
|
|
6962
|
+
function Ri() {
|
|
6956
6963
|
try {
|
|
6957
6964
|
localStorage.removeItem(pt.APPLICANT_ID);
|
|
6958
6965
|
} catch (e) {
|
|
6959
6966
|
console.warn("Failed to clear applicant ID from storage:", e);
|
|
6960
6967
|
}
|
|
6961
6968
|
}
|
|
6962
|
-
function
|
|
6969
|
+
function Ii(e) {
|
|
6963
6970
|
try {
|
|
6964
6971
|
localStorage.setItem(pt.WORKFLOW_STATE, JSON.stringify(e));
|
|
6965
6972
|
} catch (t) {
|
|
6966
6973
|
console.warn("Failed to save workflow state to storage:", t);
|
|
6967
6974
|
}
|
|
6968
6975
|
}
|
|
6969
|
-
function
|
|
6976
|
+
function Da() {
|
|
6970
6977
|
try {
|
|
6971
6978
|
const e = localStorage.getItem(pt.WORKFLOW_STATE);
|
|
6972
6979
|
return e ? JSON.parse(e) : null;
|
|
@@ -6974,23 +6981,23 @@ function Pa() {
|
|
|
6974
6981
|
return console.warn("Failed to retrieve workflow state from storage:", e), null;
|
|
6975
6982
|
}
|
|
6976
6983
|
}
|
|
6977
|
-
function
|
|
6984
|
+
function zi() {
|
|
6978
6985
|
try {
|
|
6979
6986
|
localStorage.removeItem(pt.WORKFLOW_STATE);
|
|
6980
6987
|
} catch (e) {
|
|
6981
6988
|
console.warn("Failed to clear workflow state from storage:", e);
|
|
6982
6989
|
}
|
|
6983
6990
|
}
|
|
6984
|
-
function
|
|
6985
|
-
|
|
6991
|
+
function ja() {
|
|
6992
|
+
Ri(), zi();
|
|
6986
6993
|
}
|
|
6987
|
-
function
|
|
6988
|
-
const { createOrchestrator: t } = Fe(), [i, a] = b(null), [n, l] = b(!1), [o, p] = b(null), u = me(null), d = e ||
|
|
6994
|
+
function Ai(e) {
|
|
6995
|
+
const { createOrchestrator: t } = Fe(), [i, a] = b(null), [n, l] = b(!1), [o, p] = b(null), u = me(null), d = e || Ti();
|
|
6989
6996
|
ke(() => {
|
|
6990
6997
|
u.current || (u.current = t());
|
|
6991
6998
|
}, [t]), ke(() => {
|
|
6992
6999
|
var F;
|
|
6993
|
-
i && d && (
|
|
7000
|
+
i && d && (Ni(d), Ii({
|
|
6994
7001
|
applicantId: d,
|
|
6995
7002
|
currentStepOrder: (F = i.currentStep) == null ? void 0 : F.order,
|
|
6996
7003
|
status: i.status,
|
|
@@ -7094,7 +7101,7 @@ function zi(e) {
|
|
|
7094
7101
|
orchestrator: u.current
|
|
7095
7102
|
};
|
|
7096
7103
|
}
|
|
7097
|
-
function
|
|
7104
|
+
function Li(e) {
|
|
7098
7105
|
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
7106
|
var L, B;
|
|
7100
7107
|
if (e) {
|
|
@@ -7153,7 +7160,7 @@ function Ai(e) {
|
|
|
7153
7160
|
submit: S
|
|
7154
7161
|
};
|
|
7155
7162
|
}
|
|
7156
|
-
function
|
|
7163
|
+
function Ei(e) {
|
|
7157
7164
|
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
7165
|
if (e) {
|
|
7159
7166
|
if (T.current) {
|
|
@@ -7197,7 +7204,7 @@ function Li(e) {
|
|
|
7197
7204
|
submit: q
|
|
7198
7205
|
};
|
|
7199
7206
|
}
|
|
7200
|
-
function
|
|
7207
|
+
function Ma(e) {
|
|
7201
7208
|
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
7209
|
if (e) {
|
|
7203
7210
|
if (T.current) {
|
|
@@ -7242,7 +7249,7 @@ function ja(e) {
|
|
|
7242
7249
|
submit: q
|
|
7243
7250
|
};
|
|
7244
7251
|
}
|
|
7245
|
-
function
|
|
7252
|
+
function Pi(e) {
|
|
7246
7253
|
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
7254
|
if (e) {
|
|
7248
7255
|
if (y.current) {
|
|
@@ -7284,7 +7291,7 @@ function Ei(e) {
|
|
|
7284
7291
|
passOverview: I
|
|
7285
7292
|
};
|
|
7286
7293
|
}
|
|
7287
|
-
function
|
|
7294
|
+
function Di(e) {
|
|
7288
7295
|
const { identityService: t } = Fe(), [i, a] = b(
|
|
7289
7296
|
null
|
|
7290
7297
|
), [n, l] = b(!1), [o, p] = b(null), u = me(!1), d = te(
|
|
@@ -7370,7 +7377,7 @@ function Pi(e) {
|
|
|
7370
7377
|
restartIdentity: v
|
|
7371
7378
|
};
|
|
7372
7379
|
}
|
|
7373
|
-
function
|
|
7380
|
+
function ji(e) {
|
|
7374
7381
|
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
7382
|
var F;
|
|
7376
7383
|
if (e) {
|
|
@@ -7431,7 +7438,7 @@ function Di(e) {
|
|
|
7431
7438
|
submit: B
|
|
7432
7439
|
};
|
|
7433
7440
|
}
|
|
7434
|
-
function
|
|
7441
|
+
function er() {
|
|
7435
7442
|
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
7443
|
const x = Math.random() * 16 | 0;
|
|
7437
7444
|
return (I === "x" ? x : x & 3 | 8).toString(16);
|
|
@@ -7505,7 +7512,7 @@ function Jt() {
|
|
|
7505
7512
|
stopProgress: T
|
|
7506
7513
|
};
|
|
7507
7514
|
}
|
|
7508
|
-
const
|
|
7515
|
+
const Mi = {
|
|
7509
7516
|
primary: {
|
|
7510
7517
|
backgroundColor: "var(--metakyc-primary, #2563eb)",
|
|
7511
7518
|
color: "#ffffff",
|
|
@@ -7566,7 +7573,7 @@ const ji = {
|
|
|
7566
7573
|
opacity: n || a ? 0.5 : 1,
|
|
7567
7574
|
lineHeight: "1.25rem",
|
|
7568
7575
|
...y[i],
|
|
7569
|
-
...
|
|
7576
|
+
...Mi[t],
|
|
7570
7577
|
...o
|
|
7571
7578
|
},
|
|
7572
7579
|
disabled: n || a,
|
|
@@ -7703,7 +7710,7 @@ const re = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
|
|
|
7703
7710
|
...a,
|
|
7704
7711
|
children: e
|
|
7705
7712
|
}
|
|
7706
|
-
),
|
|
7713
|
+
), Fi = {
|
|
7707
7714
|
display: "inline-flex",
|
|
7708
7715
|
alignItems: "center",
|
|
7709
7716
|
justifyContent: "center",
|
|
@@ -7737,7 +7744,7 @@ const re = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
|
|
|
7737
7744
|
(p.key === " " || p.key === "Enter") && (p.preventDefault(), i || t(!e));
|
|
7738
7745
|
},
|
|
7739
7746
|
style: {
|
|
7740
|
-
...
|
|
7747
|
+
...Fi,
|
|
7741
7748
|
backgroundColor: e ? o : l,
|
|
7742
7749
|
borderColor: e ? o : n,
|
|
7743
7750
|
opacity: i ? 0.5 : 1,
|
|
@@ -7766,7 +7773,7 @@ const re = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
|
|
|
7766
7773
|
)
|
|
7767
7774
|
}
|
|
7768
7775
|
);
|
|
7769
|
-
},
|
|
7776
|
+
}, Oi = {
|
|
7770
7777
|
default: {
|
|
7771
7778
|
backgroundColor: "var(--metakyc-surface, #f3f4f6)",
|
|
7772
7779
|
color: "var(--metakyc-text-secondary, #6b7280)"
|
|
@@ -7790,14 +7797,14 @@ const re = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
|
|
|
7790
7797
|
backgroundColor: "#fef3c7",
|
|
7791
7798
|
color: "#92400e"
|
|
7792
7799
|
}
|
|
7793
|
-
},
|
|
7800
|
+
}, tr = ({ children: e, variant: t = "default", className: i, style: a, ...n }) => /* @__PURE__ */ r(
|
|
7794
7801
|
"span",
|
|
7795
7802
|
{
|
|
7796
7803
|
className: De(
|
|
7797
7804
|
"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",
|
|
7798
7805
|
i
|
|
7799
7806
|
),
|
|
7800
|
-
style: { ...
|
|
7807
|
+
style: { ...Oi[t], ...a },
|
|
7801
7808
|
...n,
|
|
7802
7809
|
children: e
|
|
7803
7810
|
}
|
|
@@ -7904,7 +7911,7 @@ const re = ({ children: e, className: t, style: i, ...a }) => /* @__PURE__ */ r(
|
|
|
7904
7911
|
] })
|
|
7905
7912
|
);
|
|
7906
7913
|
At.displayName = "Select";
|
|
7907
|
-
const
|
|
7914
|
+
const qt = 280, Vi = ({
|
|
7908
7915
|
label: e,
|
|
7909
7916
|
value: t,
|
|
7910
7917
|
onChange: i,
|
|
@@ -7924,7 +7931,7 @@ const Bt = 280, Oi = ({
|
|
|
7924
7931
|
hoverBg: "#f9fafb"
|
|
7925
7932
|
}), F = me(null), U = me(null), K = me(null), J = te(() => {
|
|
7926
7933
|
if (!U.current) return null;
|
|
7927
|
-
const P = U.current.getBoundingClientRect(), O = window.innerHeight - P.bottom <
|
|
7934
|
+
const P = U.current.getBoundingClientRect(), O = window.innerHeight - P.bottom < qt && P.top > qt;
|
|
7928
7935
|
return { top: O ? P.top : P.bottom + 4, left: P.left, width: P.width, openUp: O };
|
|
7929
7936
|
}, []), ae = te(() => {
|
|
7930
7937
|
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 +8179,7 @@ const Bt = 280, Oi = ({
|
|
|
8172
8179
|
),
|
|
8173
8180
|
typeof document < "u" && ue ? zt(ue, document.body) : null
|
|
8174
8181
|
] });
|
|
8175
|
-
},
|
|
8182
|
+
}, Ut = 260, Qe = ({
|
|
8176
8183
|
label: e,
|
|
8177
8184
|
error: t,
|
|
8178
8185
|
helperText: i,
|
|
@@ -8207,7 +8214,7 @@ const Bt = 280, Oi = ({
|
|
|
8207
8214
|
});
|
|
8208
8215
|
}, []), ae = me(null), w = me(null), R = me(null), V = me(null), Q = te(() => {
|
|
8209
8216
|
if (!w.current) return null;
|
|
8210
|
-
const D = w.current.getBoundingClientRect(), Z = window.innerHeight - D.bottom <
|
|
8217
|
+
const D = w.current.getBoundingClientRect(), Z = window.innerHeight - D.bottom < Ut && D.top > Ut;
|
|
8211
8218
|
return {
|
|
8212
8219
|
top: Z ? D.top : D.bottom + 4,
|
|
8213
8220
|
left: D.left,
|
|
@@ -8404,11 +8411,11 @@ const Bt = 280, Oi = ({
|
|
|
8404
8411
|
);
|
|
8405
8412
|
};
|
|
8406
8413
|
Qe.displayName = "SearchableSelect";
|
|
8407
|
-
function
|
|
8414
|
+
function Bi(e) {
|
|
8408
8415
|
const t = e.type;
|
|
8409
8416
|
return t.startsWith("image/") ? "image" : t === "application/pdf" ? "pdf" : "file";
|
|
8410
8417
|
}
|
|
8411
|
-
const
|
|
8418
|
+
const qi = ({
|
|
8412
8419
|
label: e,
|
|
8413
8420
|
subtitle: t,
|
|
8414
8421
|
error: i,
|
|
@@ -8545,7 +8552,7 @@ const Bi = ({
|
|
|
8545
8552
|
}
|
|
8546
8553
|
),
|
|
8547
8554
|
ae && /* @__PURE__ */ r("div", { style: { marginTop: "12px", display: "flex", flexDirection: "column", gap: "8px" }, children: u.map((w, R) => {
|
|
8548
|
-
const V =
|
|
8555
|
+
const V = Bi(w), Q = V === "image", X = Q ? URL.createObjectURL(w) : null;
|
|
8549
8556
|
return /* @__PURE__ */ s(
|
|
8550
8557
|
"div",
|
|
8551
8558
|
{
|
|
@@ -8647,7 +8654,7 @@ const Bi = ({
|
|
|
8647
8654
|
}) }),
|
|
8648
8655
|
J && /* @__PURE__ */ r("p", { style: { fontSize: "13px", color: "var(--metakyc-danger, #ef4444)", marginTop: "6px" }, children: J })
|
|
8649
8656
|
] });
|
|
8650
|
-
},
|
|
8657
|
+
}, Ui = kt(
|
|
8651
8658
|
({ countryCode: e = "+1", onCountryCodeChange: t, className: i, ...a }, n) => /* @__PURE__ */ s("div", { className: "w-full", children: [
|
|
8652
8659
|
a.label && /* @__PURE__ */ s(
|
|
8653
8660
|
"label",
|
|
@@ -8694,28 +8701,28 @@ const Bi = ({
|
|
|
8694
8701
|
a.error && /* @__PURE__ */ r("p", { className: "mt-1 text-sm text-danger-500", children: a.error })
|
|
8695
8702
|
] })
|
|
8696
8703
|
);
|
|
8697
|
-
|
|
8704
|
+
Ui.displayName = "PhoneInput";
|
|
8698
8705
|
/**
|
|
8699
8706
|
* @license lucide-react v0.574.0 - ISC
|
|
8700
8707
|
*
|
|
8701
8708
|
* This source code is licensed under the ISC license.
|
|
8702
8709
|
* See the LICENSE file in the root directory of this source tree.
|
|
8703
8710
|
*/
|
|
8704
|
-
const
|
|
8711
|
+
const rr = (...e) => e.filter((t, i, a) => !!t && t.trim() !== "" && a.indexOf(t) === i).join(" ").trim();
|
|
8705
8712
|
/**
|
|
8706
8713
|
* @license lucide-react v0.574.0 - ISC
|
|
8707
8714
|
*
|
|
8708
8715
|
* This source code is licensed under the ISC license.
|
|
8709
8716
|
* See the LICENSE file in the root directory of this source tree.
|
|
8710
8717
|
*/
|
|
8711
|
-
const
|
|
8718
|
+
const Wi = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
8712
8719
|
/**
|
|
8713
8720
|
* @license lucide-react v0.574.0 - ISC
|
|
8714
8721
|
*
|
|
8715
8722
|
* This source code is licensed under the ISC license.
|
|
8716
8723
|
* See the LICENSE file in the root directory of this source tree.
|
|
8717
8724
|
*/
|
|
8718
|
-
const
|
|
8725
|
+
const Ki = (e) => e.replace(
|
|
8719
8726
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
8720
8727
|
(t, i, a) => a ? a.toUpperCase() : i.toLowerCase()
|
|
8721
8728
|
);
|
|
@@ -8725,8 +8732,8 @@ const Wi = (e) => e.replace(
|
|
|
8725
8732
|
* This source code is licensed under the ISC license.
|
|
8726
8733
|
* See the LICENSE file in the root directory of this source tree.
|
|
8727
8734
|
*/
|
|
8728
|
-
const
|
|
8729
|
-
const t =
|
|
8735
|
+
const Wt = (e) => {
|
|
8736
|
+
const t = Ki(e);
|
|
8730
8737
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
8731
8738
|
};
|
|
8732
8739
|
/**
|
|
@@ -8735,7 +8742,7 @@ const Ut = (e) => {
|
|
|
8735
8742
|
* This source code is licensed under the ISC license.
|
|
8736
8743
|
* See the LICENSE file in the root directory of this source tree.
|
|
8737
8744
|
*/
|
|
8738
|
-
var
|
|
8745
|
+
var Yi = {
|
|
8739
8746
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8740
8747
|
width: 24,
|
|
8741
8748
|
height: 24,
|
|
@@ -8752,7 +8759,7 @@ var Ki = {
|
|
|
8752
8759
|
* This source code is licensed under the ISC license.
|
|
8753
8760
|
* See the LICENSE file in the root directory of this source tree.
|
|
8754
8761
|
*/
|
|
8755
|
-
const
|
|
8762
|
+
const Hi = (e) => {
|
|
8756
8763
|
for (const t in e)
|
|
8757
8764
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
8758
8765
|
return !0;
|
|
@@ -8764,7 +8771,7 @@ const Yi = (e) => {
|
|
|
8764
8771
|
* This source code is licensed under the ISC license.
|
|
8765
8772
|
* See the LICENSE file in the root directory of this source tree.
|
|
8766
8773
|
*/
|
|
8767
|
-
const
|
|
8774
|
+
const $i = kt(
|
|
8768
8775
|
({
|
|
8769
8776
|
color: e = "currentColor",
|
|
8770
8777
|
size: t = 24,
|
|
@@ -8778,13 +8785,13 @@ const Hi = kt(
|
|
|
8778
8785
|
"svg",
|
|
8779
8786
|
{
|
|
8780
8787
|
ref: u,
|
|
8781
|
-
...
|
|
8788
|
+
...Yi,
|
|
8782
8789
|
width: t,
|
|
8783
8790
|
height: t,
|
|
8784
8791
|
stroke: e,
|
|
8785
8792
|
strokeWidth: a ? Number(i) * 24 / Number(t) : i,
|
|
8786
|
-
className:
|
|
8787
|
-
...!l && !
|
|
8793
|
+
className: rr("lucide", n),
|
|
8794
|
+
...!l && !Hi(p) && { "aria-hidden": "true" },
|
|
8788
8795
|
...p
|
|
8789
8796
|
},
|
|
8790
8797
|
[
|
|
@@ -8799,20 +8806,20 @@ const Hi = kt(
|
|
|
8799
8806
|
* This source code is licensed under the ISC license.
|
|
8800
8807
|
* See the LICENSE file in the root directory of this source tree.
|
|
8801
8808
|
*/
|
|
8802
|
-
const
|
|
8809
|
+
const ir = (e, t) => {
|
|
8803
8810
|
const i = kt(
|
|
8804
|
-
({ className: a, ...n }, l) => Tt(
|
|
8811
|
+
({ className: a, ...n }, l) => Tt($i, {
|
|
8805
8812
|
ref: l,
|
|
8806
8813
|
iconNode: t,
|
|
8807
|
-
className:
|
|
8808
|
-
`lucide-${
|
|
8814
|
+
className: rr(
|
|
8815
|
+
`lucide-${Wi(Wt(e))}`,
|
|
8809
8816
|
`lucide-${e}`,
|
|
8810
8817
|
a
|
|
8811
8818
|
),
|
|
8812
8819
|
...n
|
|
8813
8820
|
})
|
|
8814
8821
|
);
|
|
8815
|
-
return i.displayName =
|
|
8822
|
+
return i.displayName = Wt(e), i;
|
|
8816
8823
|
};
|
|
8817
8824
|
/**
|
|
8818
8825
|
* @license lucide-react v0.574.0 - ISC
|
|
@@ -8820,15 +8827,15 @@ const rr = (e, t) => {
|
|
|
8820
8827
|
* This source code is licensed under the ISC license.
|
|
8821
8828
|
* See the LICENSE file in the root directory of this source tree.
|
|
8822
8829
|
*/
|
|
8823
|
-
const
|
|
8830
|
+
const _i = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], ar = ir("chevron-left", _i);
|
|
8824
8831
|
/**
|
|
8825
8832
|
* @license lucide-react v0.574.0 - ISC
|
|
8826
8833
|
*
|
|
8827
8834
|
* This source code is licensed under the ISC license.
|
|
8828
8835
|
* See the LICENSE file in the root directory of this source tree.
|
|
8829
8836
|
*/
|
|
8830
|
-
const
|
|
8831
|
-
function
|
|
8837
|
+
const Gi = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], nr = ir("chevron-right", Gi);
|
|
8838
|
+
function Qi(e, t) {
|
|
8832
8839
|
const i = !t || t.length === 0 || t.every((a) => !a || !a.trim());
|
|
8833
8840
|
if (e.isRequired && i)
|
|
8834
8841
|
return e.errorMessage || "This field is required";
|
|
@@ -8857,7 +8864,7 @@ function Gi(e, t) {
|
|
|
8857
8864
|
}
|
|
8858
8865
|
return null;
|
|
8859
8866
|
}
|
|
8860
|
-
function
|
|
8867
|
+
function Xi(e) {
|
|
8861
8868
|
const t = e.flatMap(
|
|
8862
8869
|
(a, n) => (a.questions ?? []).map((l, o) => ({ question: l, groupIndex: n, qIdx: o }))
|
|
8863
8870
|
), i = /* @__PURE__ */ new Map();
|
|
@@ -8867,17 +8874,17 @@ function Qi(e) {
|
|
|
8867
8874
|
}
|
|
8868
8875
|
return Array.from(i.entries()).sort(([a], [n]) => a - n).map(([, a]) => a);
|
|
8869
8876
|
}
|
|
8870
|
-
const
|
|
8877
|
+
const Zi = ({
|
|
8871
8878
|
applicantId: e,
|
|
8872
8879
|
onComplete: t,
|
|
8873
8880
|
onBack: i
|
|
8874
8881
|
}) => {
|
|
8875
|
-
const { t: a } = Ie(), { questionnaire: n, initialAnswers: l, isLoading: o, isSubmitting: p, error: u, submit: d } =
|
|
8882
|
+
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
8883
|
Se.useEffect(() => {
|
|
8877
8884
|
l && Object.keys(l).length > 0 && Object.keys(y).length === 0 && v(l);
|
|
8878
8885
|
}, [l]);
|
|
8879
8886
|
const S = Me(
|
|
8880
|
-
() => n ?
|
|
8887
|
+
() => n ? Xi(n.questionGroups) : [],
|
|
8881
8888
|
[n]
|
|
8882
8889
|
), L = x === S.length - 1, B = S[x] ?? [], F = te((w, R) => {
|
|
8883
8890
|
v((V) => ({ ...V, [w]: R })), I((V) => {
|
|
@@ -8887,7 +8894,7 @@ const Xi = ({
|
|
|
8887
8894
|
}, []), U = te(() => {
|
|
8888
8895
|
const w = {};
|
|
8889
8896
|
for (const { question: R } of B) {
|
|
8890
|
-
const V =
|
|
8897
|
+
const V = Qi(R, y[R.id] ?? []);
|
|
8891
8898
|
V && (w[R.id] = V);
|
|
8892
8899
|
}
|
|
8893
8900
|
return I((R) => ({ ...R, ...w })), Object.keys(w).length === 0;
|
|
@@ -8938,7 +8945,7 @@ const Xi = ({
|
|
|
8938
8945
|
] })
|
|
8939
8946
|
] }),
|
|
8940
8947
|
/* @__PURE__ */ r(ie, { className: "space-y-6", children: B.map(({ question: w }) => /* @__PURE__ */ r(
|
|
8941
|
-
|
|
8948
|
+
Ji,
|
|
8942
8949
|
{
|
|
8943
8950
|
question: w,
|
|
8944
8951
|
value: y[w.id] ?? [],
|
|
@@ -8956,7 +8963,7 @@ const Xi = ({
|
|
|
8956
8963
|
onClick: J,
|
|
8957
8964
|
style: { display: "flex", alignItems: "center", gap: "4px" },
|
|
8958
8965
|
children: [
|
|
8959
|
-
/* @__PURE__ */ r(
|
|
8966
|
+
/* @__PURE__ */ r(ar, { size: 14 }),
|
|
8960
8967
|
x > 0 ? a("common.previous") : a("common.back")
|
|
8961
8968
|
]
|
|
8962
8969
|
}
|
|
@@ -8977,14 +8984,14 @@ const Xi = ({
|
|
|
8977
8984
|
style: { display: "flex", alignItems: "center", gap: "4px" },
|
|
8978
8985
|
children: [
|
|
8979
8986
|
a("common.next"),
|
|
8980
|
-
/* @__PURE__ */ r(
|
|
8987
|
+
/* @__PURE__ */ r(nr, { size: 14 })
|
|
8981
8988
|
]
|
|
8982
8989
|
}
|
|
8983
8990
|
)
|
|
8984
8991
|
] }),
|
|
8985
8992
|
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
8993
|
] }) : null;
|
|
8987
|
-
},
|
|
8994
|
+
}, Ji = ({ question: e, value: t, error: i, onChange: a }) => {
|
|
8988
8995
|
var p;
|
|
8989
8996
|
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
8997
|
return /* @__PURE__ */ s("div", { className: "space-y-2", children: [
|
|
@@ -9077,7 +9084,7 @@ const Xi = ({
|
|
|
9077
9084
|
i && o === "text" && null
|
|
9078
9085
|
] });
|
|
9079
9086
|
};
|
|
9080
|
-
function
|
|
9087
|
+
function ea(e) {
|
|
9081
9088
|
const t = /* @__PURE__ */ new Map();
|
|
9082
9089
|
for (const i of e) {
|
|
9083
9090
|
const a = i.pageNumber != null && i.pageNumber > 0 ? i.pageNumber : 1;
|
|
@@ -9085,13 +9092,13 @@ function Ji(e) {
|
|
|
9085
9092
|
}
|
|
9086
9093
|
return Array.from(t.entries()).sort(([i], [a]) => i - a).map(([, i]) => i);
|
|
9087
9094
|
}
|
|
9088
|
-
const
|
|
9095
|
+
const ta = ({
|
|
9089
9096
|
applicantId: e,
|
|
9090
9097
|
onComplete: t,
|
|
9091
9098
|
onBack: i
|
|
9092
9099
|
}) => {
|
|
9093
|
-
const { t: a } = Ie(), { uploadDocument: n, isLoading: l, isSubmitting: o, error: p, submit: u } =
|
|
9094
|
-
() => n ?
|
|
9100
|
+
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(
|
|
9101
|
+
() => n ? ea(n.uploadDocumentFiles) : [],
|
|
9095
9102
|
[n]
|
|
9096
9103
|
), B = L[I] ?? [], F = I === L.length - 1, U = L.length, K = te(() => {
|
|
9097
9104
|
const R = {};
|
|
@@ -9111,7 +9118,7 @@ const ea = ({
|
|
|
9111
9118
|
const X = d[Q.id] || [], W = await Promise.all(
|
|
9112
9119
|
X.map(async (_) => ({
|
|
9113
9120
|
fileName: _.name,
|
|
9114
|
-
fileData: await
|
|
9121
|
+
fileData: await Ci(_)
|
|
9115
9122
|
}))
|
|
9116
9123
|
);
|
|
9117
9124
|
return {
|
|
@@ -9228,7 +9235,7 @@ const ea = ({
|
|
|
9228
9235
|
}, children: n.description })
|
|
9229
9236
|
] }),
|
|
9230
9237
|
/* @__PURE__ */ r(ie, { children: /* @__PURE__ */ r("div", { style: { display: "flex", flexDirection: "column", gap: "24px" }, children: B.map((R) => /* @__PURE__ */ r(
|
|
9231
|
-
|
|
9238
|
+
qi,
|
|
9232
9239
|
{
|
|
9233
9240
|
label: R.displayName,
|
|
9234
9241
|
subtitle: R.subtitle,
|
|
@@ -9297,8 +9304,8 @@ const ea = ({
|
|
|
9297
9304
|
)
|
|
9298
9305
|
] }) })
|
|
9299
9306
|
] }) : null;
|
|
9300
|
-
},
|
|
9301
|
-
const { t: a } = Ie(), { overview: n, isLoading: l, isSubmitting: o, error: p, passOverview: u } =
|
|
9307
|
+
}, ra = ({ applicantId: e, onComplete: t, onBack: i }) => {
|
|
9308
|
+
const { t: a } = Ie(), { overview: n, isLoading: l, isSubmitting: o, error: p, passOverview: u } = Pi(e), d = async () => {
|
|
9302
9309
|
await u(), t == null || t();
|
|
9303
9310
|
};
|
|
9304
9311
|
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 +9349,7 @@ const ea = ({
|
|
|
9342
9349
|
] })
|
|
9343
9350
|
] }) : null;
|
|
9344
9351
|
};
|
|
9345
|
-
function
|
|
9352
|
+
function ia(e) {
|
|
9346
9353
|
const t = (e ?? "en").toLowerCase().replace("_", "-");
|
|
9347
9354
|
try {
|
|
9348
9355
|
return Intl.NumberFormat.supportedLocalesOf([t]), t;
|
|
@@ -9350,11 +9357,11 @@ function ra(e) {
|
|
|
9350
9357
|
return "en";
|
|
9351
9358
|
}
|
|
9352
9359
|
}
|
|
9353
|
-
function
|
|
9360
|
+
function aa(e) {
|
|
9354
9361
|
return e.valueDataType === Ge.Money && Array.isArray(e.defaultValues) && e.defaultValues.length > 0;
|
|
9355
9362
|
}
|
|
9356
|
-
function
|
|
9357
|
-
const i = new Intl.NumberFormat(
|
|
9363
|
+
function na(e, t) {
|
|
9364
|
+
const i = new Intl.NumberFormat(ia(t), {
|
|
9358
9365
|
minimumFractionDigits: 0,
|
|
9359
9366
|
maximumFractionDigits: 2
|
|
9360
9367
|
});
|
|
@@ -9363,7 +9370,7 @@ function aa(e, t) {
|
|
|
9363
9370
|
return isNaN(n) ? a : i.format(n);
|
|
9364
9371
|
});
|
|
9365
9372
|
}
|
|
9366
|
-
function
|
|
9373
|
+
function oa(e, t) {
|
|
9367
9374
|
const i = !t || t.length === 0 || t.every((a) => !a || !a.trim());
|
|
9368
9375
|
if (e.isRequired && i)
|
|
9369
9376
|
return e.errorMessage || `${e.displayName} is required`;
|
|
@@ -9393,27 +9400,27 @@ function na(e, t) {
|
|
|
9393
9400
|
}
|
|
9394
9401
|
return null;
|
|
9395
9402
|
}
|
|
9396
|
-
function
|
|
9403
|
+
function sa(e) {
|
|
9397
9404
|
const t = /* @__PURE__ */ new Map();
|
|
9398
9405
|
return e.forEach((i, a) => {
|
|
9399
9406
|
const n = i.pageNumber != null && i.pageNumber > 0 ? i.pageNumber : 1;
|
|
9400
9407
|
t.has(n) || t.set(n, []), t.get(n).push({ criterion: i, idx: a });
|
|
9401
9408
|
}), Array.from(t.entries()).sort(([i], [a]) => i - a).map(([, i]) => i);
|
|
9402
9409
|
}
|
|
9403
|
-
function
|
|
9410
|
+
function la(e) {
|
|
9404
9411
|
return e.builtInType === 1 ? "country" : !e.defaultValues || e.defaultValues.length === 0 ? "text" : e.multipleValue ? "checkbox" : "radio";
|
|
9405
9412
|
}
|
|
9406
|
-
const
|
|
9413
|
+
const ca = ({
|
|
9407
9414
|
applicantId: e,
|
|
9408
9415
|
onComplete: t,
|
|
9409
9416
|
onBack: i
|
|
9410
9417
|
}) => {
|
|
9411
|
-
const { t: a } = Ie(), { config: n } = Fe(), l = n.locale ?? "en", { criteria: o, initialAnswers: p, isLoading: u, isSubmitting: d, error: y, submit: v } =
|
|
9418
|
+
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
9419
|
Se.useEffect(() => {
|
|
9413
9420
|
p && Object.keys(p).length > 0 && Object.keys(T).length === 0 && I(p);
|
|
9414
9421
|
}, [p]);
|
|
9415
9422
|
const U = Me(
|
|
9416
|
-
() => o && o.length > 0 ?
|
|
9423
|
+
() => o && o.length > 0 ? sa(o) : [],
|
|
9417
9424
|
[o]
|
|
9418
9425
|
), K = S === U.length - 1, J = U[S] ?? [];
|
|
9419
9426
|
Se.useEffect(() => {
|
|
@@ -9427,7 +9434,7 @@ const la = ({
|
|
|
9427
9434
|
}, []), w = te(() => {
|
|
9428
9435
|
const X = {};
|
|
9429
9436
|
for (const { criterion: W } of J) {
|
|
9430
|
-
const _ =
|
|
9437
|
+
const _ = oa(W, T[W.id] ?? []);
|
|
9431
9438
|
_ && (X[W.id] = _);
|
|
9432
9439
|
}
|
|
9433
9440
|
return q((W) => ({ ...W, ...X })), Object.keys(X).length === 0;
|
|
@@ -9478,7 +9485,7 @@ const la = ({
|
|
|
9478
9485
|
] })
|
|
9479
9486
|
] }),
|
|
9480
9487
|
/* @__PURE__ */ r(ie, { className: "space-y-6", children: J.map(({ criterion: X }) => /* @__PURE__ */ r(
|
|
9481
|
-
|
|
9488
|
+
da,
|
|
9482
9489
|
{
|
|
9483
9490
|
criterion: X,
|
|
9484
9491
|
value: T[X.id] ?? [],
|
|
@@ -9497,7 +9504,7 @@ const la = ({
|
|
|
9497
9504
|
onClick: V,
|
|
9498
9505
|
style: { display: "flex", alignItems: "center", gap: "4px" },
|
|
9499
9506
|
children: [
|
|
9500
|
-
/* @__PURE__ */ r(
|
|
9507
|
+
/* @__PURE__ */ r(ar, { size: 14 }),
|
|
9501
9508
|
S > 0 ? a("common.previous") : a("common.back")
|
|
9502
9509
|
]
|
|
9503
9510
|
}
|
|
@@ -9510,15 +9517,15 @@ const la = ({
|
|
|
9510
9517
|
style: { display: "flex", alignItems: "center", gap: "4px" },
|
|
9511
9518
|
children: [
|
|
9512
9519
|
a("common.next"),
|
|
9513
|
-
/* @__PURE__ */ r(
|
|
9520
|
+
/* @__PURE__ */ r(nr, { size: 14 })
|
|
9514
9521
|
]
|
|
9515
9522
|
}
|
|
9516
9523
|
)
|
|
9517
9524
|
] }),
|
|
9518
9525
|
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
9526
|
] }) : null;
|
|
9520
|
-
},
|
|
9521
|
-
const { t: l } = Ie(), o =
|
|
9527
|
+
}, da = ({ criterion: e, value: t, error: i, locale: a, onChange: n }) => {
|
|
9528
|
+
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
9529
|
return /* @__PURE__ */ s("div", { className: "space-y-2", children: [
|
|
9523
9530
|
/* @__PURE__ */ s("label", { className: "block text-sm font-medium", style: { color: "var(--metakyc-text-primary, #111827)" }, children: [
|
|
9524
9531
|
e.displayName,
|
|
@@ -9619,7 +9626,7 @@ const la = ({
|
|
|
9619
9626
|
}
|
|
9620
9627
|
)
|
|
9621
9628
|
] });
|
|
9622
|
-
},
|
|
9629
|
+
}, ma = ({
|
|
9623
9630
|
applicantId: e,
|
|
9624
9631
|
onComplete: t,
|
|
9625
9632
|
onBack: i
|
|
@@ -9752,7 +9759,7 @@ const la = ({
|
|
|
9752
9759
|
] })
|
|
9753
9760
|
] }) });
|
|
9754
9761
|
};
|
|
9755
|
-
function
|
|
9762
|
+
function Kt(e) {
|
|
9756
9763
|
const t = e.split(":").map(Number);
|
|
9757
9764
|
return t.length === 3 ? t[0] * 3600 + t[1] * 60 + t[2] : 0;
|
|
9758
9765
|
}
|
|
@@ -9760,7 +9767,7 @@ function Ct(e) {
|
|
|
9760
9767
|
const t = Math.floor(e / 60), i = e % 60;
|
|
9761
9768
|
return `${t.toString().padStart(2, "0")}:${i.toString().padStart(2, "0")}`;
|
|
9762
9769
|
}
|
|
9763
|
-
const
|
|
9770
|
+
const ua = ({
|
|
9764
9771
|
applicantId: e,
|
|
9765
9772
|
onComplete: t,
|
|
9766
9773
|
onBack: i
|
|
@@ -9772,7 +9779,7 @@ const ma = ({
|
|
|
9772
9779
|
u(!0), T(null);
|
|
9773
9780
|
const A = await n.getAppropriatenessTest(e);
|
|
9774
9781
|
if (o(A), A.waitTimeSpanForNextTry && A.waitTimeSpanForNextTry !== "00:00:00") {
|
|
9775
|
-
const O =
|
|
9782
|
+
const O = Kt(A.waitTimeSpanForNextTry);
|
|
9776
9783
|
O > 0 && J(O);
|
|
9777
9784
|
}
|
|
9778
9785
|
} catch (A) {
|
|
@@ -9804,7 +9811,7 @@ const ma = ({
|
|
|
9804
9811
|
try {
|
|
9805
9812
|
const A = await n.getAppropriatenessTest(e);
|
|
9806
9813
|
if (o(A), A.waitTimeSpanForNextTry && A.waitTimeSpanForNextTry !== "00:00:00") {
|
|
9807
|
-
const O =
|
|
9814
|
+
const O = Kt(A.waitTimeSpanForNextTry);
|
|
9808
9815
|
O > 0 && J(O);
|
|
9809
9816
|
}
|
|
9810
9817
|
} catch {
|
|
@@ -10104,7 +10111,7 @@ const ma = ({
|
|
|
10104
10111
|
] }),
|
|
10105
10112
|
/* @__PURE__ */ s(ie, { children: [
|
|
10106
10113
|
ye && /* @__PURE__ */ r(
|
|
10107
|
-
|
|
10114
|
+
ga,
|
|
10108
10115
|
{
|
|
10109
10116
|
question: ye,
|
|
10110
10117
|
index: ae,
|
|
@@ -10204,7 +10211,7 @@ const ma = ({
|
|
|
10204
10211
|
] })
|
|
10205
10212
|
] }) })
|
|
10206
10213
|
] });
|
|
10207
|
-
},
|
|
10214
|
+
}, pa = {
|
|
10208
10215
|
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
10216
|
/* @__PURE__ */ r("path", { d: "M9 11l3 3L22 4" }),
|
|
10210
10217
|
/* @__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 +10243,7 @@ const ma = ({
|
|
|
10236
10243
|
/* @__PURE__ */ r("div", { style: {
|
|
10237
10244
|
color: n ? "#f59e0b" : "var(--metakyc-primary, #2563eb)",
|
|
10238
10245
|
flexShrink: 0
|
|
10239
|
-
}, children:
|
|
10246
|
+
}, children: pa[e] }),
|
|
10240
10247
|
/* @__PURE__ */ s("div", { children: [
|
|
10241
10248
|
/* @__PURE__ */ r("p", { style: { fontSize: "12px", color: "var(--metakyc-text-muted, #9ca3af)", margin: 0 }, children: t }),
|
|
10242
10249
|
/* @__PURE__ */ r("p", { style: {
|
|
@@ -10248,7 +10255,7 @@ const ma = ({
|
|
|
10248
10255
|
}, children: i })
|
|
10249
10256
|
] })
|
|
10250
10257
|
] });
|
|
10251
|
-
},
|
|
10258
|
+
}, ga = ({ question: e, selectedAnswer: t, onSelect: i, disabled: a }) => /* @__PURE__ */ s("div", { children: [
|
|
10252
10259
|
/* @__PURE__ */ s("div", { style: { marginBottom: "16px" }, children: [
|
|
10253
10260
|
e.groupName && /* @__PURE__ */ r("span", { style: {
|
|
10254
10261
|
display: "inline-block",
|
|
@@ -10330,15 +10337,15 @@ const ma = ({
|
|
|
10330
10337
|
l
|
|
10331
10338
|
);
|
|
10332
10339
|
}) })
|
|
10333
|
-
] }),
|
|
10340
|
+
] }), ya = ({
|
|
10334
10341
|
applicantId: e,
|
|
10335
10342
|
onComplete: t,
|
|
10336
10343
|
onBack: i
|
|
10337
10344
|
}) => {
|
|
10338
10345
|
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 } =
|
|
10346
|
+
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
10347
|
A.current = P;
|
|
10341
|
-
const O =
|
|
10348
|
+
const O = mr({
|
|
10342
10349
|
defaultValues: {
|
|
10343
10350
|
street: "",
|
|
10344
10351
|
streetNumber: "",
|
|
@@ -10754,7 +10761,7 @@ const ma = ({
|
|
|
10754
10761
|
children: "?"
|
|
10755
10762
|
}
|
|
10756
10763
|
),
|
|
10757
|
-
M &&
|
|
10764
|
+
M && dr.createPortal(
|
|
10758
10765
|
/* @__PURE__ */ r(
|
|
10759
10766
|
"div",
|
|
10760
10767
|
{
|
|
@@ -11052,7 +11059,7 @@ const ma = ({
|
|
|
11052
11059
|
/* @__PURE__ */ r(G, { type: "submit", isLoading: T, children: a("identity.confirmAndStart") })
|
|
11053
11060
|
] })
|
|
11054
11061
|
] }) });
|
|
11055
|
-
},
|
|
11062
|
+
}, Yt = ({
|
|
11056
11063
|
kycStatus: e,
|
|
11057
11064
|
reviewStatus: t,
|
|
11058
11065
|
workflowResult: i,
|
|
@@ -11142,7 +11149,7 @@ const ma = ({
|
|
|
11142
11149
|
) }),
|
|
11143
11150
|
/* @__PURE__ */ r("h2", { className: "text-3xl font-bold text-center mb-4", style: { color: "var(--metakyc-text-primary, #111827)" }, children: u.title }),
|
|
11144
11151
|
/* @__PURE__ */ r("div", { className: "flex justify-center mb-6", children: /* @__PURE__ */ r(
|
|
11145
|
-
|
|
11152
|
+
tr,
|
|
11146
11153
|
{
|
|
11147
11154
|
variant: u.type === "success" ? "success" : u.type === "error" ? "danger" : u.type === "pending" ? "warning" : "info",
|
|
11148
11155
|
children: e != null ? nt[e] : ot[t]
|
|
@@ -11220,7 +11227,7 @@ const ma = ({
|
|
|
11220
11227
|
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
11228
|
] })
|
|
11222
11229
|
] });
|
|
11223
|
-
},
|
|
11230
|
+
}, fa = ({ config: e, className: t = "" }) => {
|
|
11224
11231
|
const { t: i } = Ie();
|
|
11225
11232
|
return !(e != null && e.visible) || !(e != null && e.url) ? null : /* @__PURE__ */ r("div", { className: `metakyc-logo ${t}`, children: /* @__PURE__ */ r(
|
|
11226
11233
|
"img",
|
|
@@ -11251,7 +11258,7 @@ const ma = ({
|
|
|
11251
11258
|
className: "metakyc-header-title flex items-center text-xl font-bold",
|
|
11252
11259
|
style: { color: "var(--metakyc-text-primary, #111827)" },
|
|
11253
11260
|
children: [
|
|
11254
|
-
l && /* @__PURE__ */ r(
|
|
11261
|
+
l && /* @__PURE__ */ r(fa, { config: a.logo }),
|
|
11255
11262
|
l && o && /* @__PURE__ */ r(
|
|
11256
11263
|
"span",
|
|
11257
11264
|
{
|
|
@@ -11269,7 +11276,7 @@ const ma = ({
|
|
|
11269
11276
|
function mt(e) {
|
|
11270
11277
|
return e == null || e === "" || Array.isArray(e) && e.length === 0;
|
|
11271
11278
|
}
|
|
11272
|
-
const
|
|
11279
|
+
const ka = {
|
|
11273
11280
|
width: "16px",
|
|
11274
11281
|
height: "16px",
|
|
11275
11282
|
minWidth: "16px",
|
|
@@ -11281,7 +11288,7 @@ const fa = {
|
|
|
11281
11288
|
padding: 0,
|
|
11282
11289
|
display: "inline-block",
|
|
11283
11290
|
verticalAlign: "middle"
|
|
11284
|
-
},
|
|
11291
|
+
}, Ht = ({ helpText: e, children: t }) => {
|
|
11285
11292
|
const [i, a] = Se.useState(!1);
|
|
11286
11293
|
if (!e) return /* @__PURE__ */ r(ut, { children: t });
|
|
11287
11294
|
const n = i ? /* @__PURE__ */ r(
|
|
@@ -11402,14 +11409,14 @@ const fa = {
|
|
|
11402
11409
|
),
|
|
11403
11410
|
typeof document < "u" && n ? zt(n, document.body) : null
|
|
11404
11411
|
] });
|
|
11405
|
-
},
|
|
11412
|
+
}, Fa = ({
|
|
11406
11413
|
workflowKey: e,
|
|
11407
11414
|
externalRefId: t,
|
|
11408
11415
|
onSuccess: i,
|
|
11409
11416
|
onCancel: a
|
|
11410
11417
|
}) => {
|
|
11411
11418
|
var $, Y, ee, g, z, E, m;
|
|
11412
|
-
const { config: n, baseInformationService: l, currentTheme: o } = Fe(), { createApplicant: p, isLoading: u } =
|
|
11419
|
+
const { config: n, baseInformationService: l, currentTheme: o } = Fe(), { createApplicant: p, isLoading: u } = er(), { t: d } = Ie(), y = e || (($ = n.applicantForm) == null ? void 0 : $.workflowKey);
|
|
11413
11420
|
if (!y)
|
|
11414
11421
|
throw new Error(
|
|
11415
11422
|
"workflowKey is required. Provide it either as a prop to CreateApplicantForm or set it in config.applicantForm.workflowKey"
|
|
@@ -11433,7 +11440,7 @@ const fa = {
|
|
|
11433
11440
|
return Array.from(N);
|
|
11434
11441
|
}
|
|
11435
11442
|
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 =
|
|
11443
|
+
(j = n.applicantForm) != null && j.visibleFields ? c = n.applicantForm.visibleFields : o != null && o.applicantFormVisibleFields && o.applicantFormVisibleFields.length > 0 ? c = o.applicantFormVisibleFields : c = Cr;
|
|
11437
11444
|
const k = new Set(c);
|
|
11438
11445
|
for (const h of vt) k.add(h);
|
|
11439
11446
|
return Array.from(k);
|
|
@@ -11665,7 +11672,7 @@ const fa = {
|
|
|
11665
11672
|
var Lt;
|
|
11666
11673
|
const C = st[c];
|
|
11667
11674
|
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,
|
|
11675
|
+
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, or = He ? "..." : xe;
|
|
11669
11676
|
switch (C.type) {
|
|
11670
11677
|
case "select":
|
|
11671
11678
|
if (c === "country" || c === "nationality" || c === "taxCountry" || c === "countryOfBirth" || c === "mobileCountryCode") {
|
|
@@ -11677,7 +11684,7 @@ const fa = {
|
|
|
11677
11684
|
label: Je,
|
|
11678
11685
|
value: H[c] || "",
|
|
11679
11686
|
onChange: (it) => Z(c, it),
|
|
11680
|
-
options: [{ value: "", label: `Select ${
|
|
11687
|
+
options: [{ value: "", label: `Select ${or.toLowerCase()}` }, ...Ae],
|
|
11681
11688
|
disabled: w,
|
|
11682
11689
|
readOnly: Oe,
|
|
11683
11690
|
error: le
|
|
@@ -11725,7 +11732,7 @@ const fa = {
|
|
|
11725
11732
|
if (c === "otherNationality") {
|
|
11726
11733
|
const Ae = X(c, h);
|
|
11727
11734
|
return /* @__PURE__ */ r(
|
|
11728
|
-
|
|
11735
|
+
Vi,
|
|
11729
11736
|
{
|
|
11730
11737
|
...We,
|
|
11731
11738
|
label: Je,
|
|
@@ -12009,7 +12016,7 @@ const fa = {
|
|
|
12009
12016
|
onChange: () => Te(c.paramName, C.value),
|
|
12010
12017
|
name: `radio-group-${c.paramName}-${k}`,
|
|
12011
12018
|
className: "metakyc-option-input",
|
|
12012
|
-
style:
|
|
12019
|
+
style: ka
|
|
12013
12020
|
}
|
|
12014
12021
|
),
|
|
12015
12022
|
/* @__PURE__ */ r(
|
|
@@ -12041,7 +12048,7 @@ const fa = {
|
|
|
12041
12048
|
}, M = (c, k) => {
|
|
12042
12049
|
const j = ze(c);
|
|
12043
12050
|
return /* @__PURE__ */ s("div", { className: "space-y-4", children: [
|
|
12044
|
-
c.conditionalOn && /* @__PURE__ */ r(
|
|
12051
|
+
c.conditionalOn && /* @__PURE__ */ r(Ht, { helpText: c.conditionalHelpText, children: /* @__PURE__ */ s(
|
|
12045
12052
|
"label",
|
|
12046
12053
|
{
|
|
12047
12054
|
className: "metakyc-option-label",
|
|
@@ -12067,7 +12074,7 @@ const fa = {
|
|
|
12067
12074
|
) }),
|
|
12068
12075
|
j && /* @__PURE__ */ r("div", { style: { display: "grid", gridTemplateColumns: "repeat(4, minmax(0, 1fr))", gap: "1rem" }, children: c.fields.map((h, N) => {
|
|
12069
12076
|
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(
|
|
12077
|
+
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
12078
|
}) })
|
|
12072
12079
|
] });
|
|
12073
12080
|
};
|
|
@@ -12179,18 +12186,18 @@ const fa = {
|
|
|
12179
12186
|
/* @__PURE__ */ r(G, { type: "submit", isLoading: D || u, children: d("createApplicant.createApplicant") })
|
|
12180
12187
|
] })
|
|
12181
12188
|
] }) }) });
|
|
12182
|
-
},
|
|
12189
|
+
}, $t = ["companyName", "email"];
|
|
12183
12190
|
function Nt(e) {
|
|
12184
12191
|
return e == null || e === "" || Array.isArray(e) && e.length === 0;
|
|
12185
12192
|
}
|
|
12186
|
-
const
|
|
12193
|
+
const Oa = ({
|
|
12187
12194
|
workflowKey: e,
|
|
12188
12195
|
externalRefId: t,
|
|
12189
12196
|
onSuccess: i,
|
|
12190
12197
|
onCancel: a
|
|
12191
12198
|
}) => {
|
|
12192
12199
|
var Ze, f, M, $, Y, ee;
|
|
12193
|
-
const { config: n, baseInformationService: l, currentTheme: o } = Fe(), { createCompanyApplicant: p, isLoading: u } =
|
|
12200
|
+
const { config: n, baseInformationService: l, currentTheme: o } = Fe(), { createCompanyApplicant: p, isLoading: u } = er(), { t: d } = Ie(), y = e || ((Ze = n.applicantForm) == null ? void 0 : Ze.workflowKey);
|
|
12194
12201
|
if (!y)
|
|
12195
12202
|
throw new Error(
|
|
12196
12203
|
"workflowKey is required. Provide it either as a prop to CreateCompanyApplicantForm or set it in config.applicantForm.workflowKey"
|
|
@@ -12199,7 +12206,7 @@ const Fa = ({
|
|
|
12199
12206
|
() => o != null && o.companyFormPages && o.companyFormPages.length > 0 ? o.companyFormPages : null,
|
|
12200
12207
|
[o == null ? void 0 : o.companyFormPages]
|
|
12201
12208
|
), L = Me(() => {
|
|
12202
|
-
const g = new Set(
|
|
12209
|
+
const g = new Set($t), z = o == null ? void 0 : o.companyFormRequiredFields;
|
|
12203
12210
|
if (z) for (const E of z) g.add(E);
|
|
12204
12211
|
if (S)
|
|
12205
12212
|
for (const E of S)
|
|
@@ -12210,10 +12217,10 @@ const Fa = ({
|
|
|
12210
12217
|
var g;
|
|
12211
12218
|
if (S) {
|
|
12212
12219
|
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
|
|
12220
|
+
for (const m of $t) E.add(m);
|
|
12214
12221
|
return Array.from(E);
|
|
12215
12222
|
}
|
|
12216
|
-
return (g = n.applicantForm) != null && g.visibleFields ? n.applicantForm.visibleFields : o != null && o.companyFormVisibleFields && o.companyFormVisibleFields.length > 0 ? o.companyFormVisibleFields :
|
|
12223
|
+
return (g = n.applicantForm) != null && g.visibleFields ? n.applicantForm.visibleFields : o != null && o.companyFormVisibleFields && o.companyFormVisibleFields.length > 0 ? o.companyFormVisibleFields : Sr;
|
|
12217
12224
|
}, [(ee = n.applicantForm) == null ? void 0 : ee.visibleFields, o == null ? void 0 : o.companyFormVisibleFields, S]), F = /* @__PURE__ */ new Set(["countryResidence", "addressCountry"]), U = Me(() => {
|
|
12218
12225
|
var z, E;
|
|
12219
12226
|
const g = /* @__PURE__ */ new Set();
|
|
@@ -12653,7 +12660,7 @@ const Fa = ({
|
|
|
12653
12660
|
/* @__PURE__ */ r(G, { type: "submit", isLoading: O || u, children: d("createCompany.registerCompany") })
|
|
12654
12661
|
] })
|
|
12655
12662
|
] }) }) });
|
|
12656
|
-
},
|
|
12663
|
+
}, Va = ({
|
|
12657
12664
|
applicantId: e,
|
|
12658
12665
|
onComplete: t,
|
|
12659
12666
|
onError: i,
|
|
@@ -12670,7 +12677,7 @@ const Fa = ({
|
|
|
12670
12677
|
error: T,
|
|
12671
12678
|
moveBack: I,
|
|
12672
12679
|
refreshProgress: x
|
|
12673
|
-
} =
|
|
12680
|
+
} = Ai(e), [q, S] = Se.useState(!1), L = Se.useRef(null);
|
|
12674
12681
|
if (Se.useEffect(() => {
|
|
12675
12682
|
T && i && i(T);
|
|
12676
12683
|
}, [T, i]), Se.useEffect(() => {
|
|
@@ -12718,7 +12725,7 @@ const Fa = ({
|
|
|
12718
12725
|
] }) }) }) });
|
|
12719
12726
|
if (l.status === qe.Finished || l.status === qe.OnHold)
|
|
12720
12727
|
return /* @__PURE__ */ r("div", { className: `metakyc-sdk ${a || ""}`, children: /* @__PURE__ */ r(
|
|
12721
|
-
|
|
12728
|
+
Yt,
|
|
12722
12729
|
{
|
|
12723
12730
|
kycStatus: l.kycStatus,
|
|
12724
12731
|
reviewStatus: l.reviewStatus,
|
|
@@ -12770,7 +12777,7 @@ const Fa = ({
|
|
|
12770
12777
|
}, children: [
|
|
12771
12778
|
/* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "flex-start", justifyContent: "space-between", marginBottom: "16px" }, children: [
|
|
12772
12779
|
/* @__PURE__ */ r(ft, {}),
|
|
12773
|
-
/* @__PURE__ */ r(
|
|
12780
|
+
/* @__PURE__ */ r(tr, { variant: l.status === 1 ? "info" : "success", children: n("common.stepXofY", { current: ae, total: w }) })
|
|
12774
12781
|
] }),
|
|
12775
12782
|
/* @__PURE__ */ s("div", { style: { position: "relative", height: "4px", borderRadius: "999px", overflow: "hidden", marginBottom: "16px" }, children: [
|
|
12776
12783
|
/* @__PURE__ */ r("div", { style: { position: "absolute", inset: 0, backgroundColor: "var(--metakyc-border, #e5e7eb)", opacity: 0.3 } }),
|
|
@@ -12786,7 +12793,7 @@ const Fa = ({
|
|
|
12786
12793
|
} })
|
|
12787
12794
|
] }),
|
|
12788
12795
|
/* @__PURE__ */ r(
|
|
12789
|
-
|
|
12796
|
+
ha,
|
|
12790
12797
|
{
|
|
12791
12798
|
ref: L,
|
|
12792
12799
|
visibleSteps: K,
|
|
@@ -12805,23 +12812,23 @@ const Fa = ({
|
|
|
12805
12812
|
};
|
|
12806
12813
|
switch (o.action) {
|
|
12807
12814
|
case de.Questionaries:
|
|
12808
|
-
return /* @__PURE__ */ r(
|
|
12815
|
+
return /* @__PURE__ */ r(Zi, { ...K });
|
|
12809
12816
|
case de.UploadDocument:
|
|
12810
|
-
return /* @__PURE__ */ r(ea, { ...K });
|
|
12811
|
-
case de.Overview:
|
|
12812
12817
|
return /* @__PURE__ */ r(ta, { ...K });
|
|
12818
|
+
case de.Overview:
|
|
12819
|
+
return /* @__PURE__ */ r(ra, { ...K });
|
|
12813
12820
|
case de.IdentitySdk:
|
|
12814
|
-
return /* @__PURE__ */ r(
|
|
12821
|
+
return /* @__PURE__ */ r(ya, { ...K });
|
|
12815
12822
|
case de.RiskScoring:
|
|
12816
|
-
return /* @__PURE__ */ r(
|
|
12823
|
+
return /* @__PURE__ */ r(ca, { ...K });
|
|
12817
12824
|
case de.AdditionalData:
|
|
12818
12825
|
case de.InvestorCategorization:
|
|
12819
|
-
return /* @__PURE__ */ r(da, { ...K });
|
|
12820
|
-
case de.AppropriatenessTest:
|
|
12821
12826
|
return /* @__PURE__ */ r(ma, { ...K });
|
|
12827
|
+
case de.AppropriatenessTest:
|
|
12828
|
+
return /* @__PURE__ */ r(ua, { ...K });
|
|
12822
12829
|
case de.ManualReview:
|
|
12823
12830
|
return /* @__PURE__ */ r(
|
|
12824
|
-
|
|
12831
|
+
Yt,
|
|
12825
12832
|
{
|
|
12826
12833
|
kycStatus: l.kycStatus,
|
|
12827
12834
|
reviewStatus: l.reviewStatus,
|
|
@@ -12849,7 +12856,7 @@ const Fa = ({
|
|
|
12849
12856
|
F(),
|
|
12850
12857
|
U()
|
|
12851
12858
|
] });
|
|
12852
|
-
},
|
|
12859
|
+
}, ha = Se.forwardRef(
|
|
12853
12860
|
({ visibleSteps: e, currentVisibleStepIndex: t, getStepFallbackName: i }, a) => {
|
|
12854
12861
|
const n = Se.useRef(null), l = Se.useRef(null);
|
|
12855
12862
|
return Se.useImperativeHandle(a, () => n.current), Se.useEffect(() => {
|
|
@@ -12935,12 +12942,12 @@ const Fa = ({
|
|
|
12935
12942
|
);
|
|
12936
12943
|
}
|
|
12937
12944
|
);
|
|
12938
|
-
function
|
|
12945
|
+
function Ba(e) {
|
|
12939
12946
|
return Xe.object({
|
|
12940
12947
|
questionResults: Xe.any()
|
|
12941
12948
|
}).passthrough();
|
|
12942
12949
|
}
|
|
12943
|
-
function
|
|
12950
|
+
function va(e) {
|
|
12944
12951
|
let t = Xe.array(Xe.instanceof(File));
|
|
12945
12952
|
if (e.isRequired ? t = t.min(
|
|
12946
12953
|
1,
|
|
@@ -12962,38 +12969,38 @@ function ha(e) {
|
|
|
12962
12969
|
}
|
|
12963
12970
|
return t;
|
|
12964
12971
|
}
|
|
12965
|
-
function
|
|
12972
|
+
function qa(e) {
|
|
12966
12973
|
const t = {};
|
|
12967
12974
|
return e.uploadDocumentFiles.forEach((i) => {
|
|
12968
12975
|
const a = `file_${i.id}`;
|
|
12969
|
-
t[a] =
|
|
12976
|
+
t[a] = va(i);
|
|
12970
12977
|
}), Xe.object(t);
|
|
12971
12978
|
}
|
|
12972
|
-
function
|
|
12979
|
+
function Ua(e) {
|
|
12973
12980
|
return Xe.any();
|
|
12974
12981
|
}
|
|
12975
|
-
function
|
|
12982
|
+
function ba(e) {
|
|
12976
12983
|
return Xe.string().min(1, "This question is required");
|
|
12977
12984
|
}
|
|
12978
|
-
function
|
|
12985
|
+
function Wa(e) {
|
|
12979
12986
|
const t = {};
|
|
12980
12987
|
return e.appropriatenessQuestions.forEach((i) => {
|
|
12981
12988
|
const a = `question_${i.id}`;
|
|
12982
|
-
t[a] =
|
|
12989
|
+
t[a] = ba();
|
|
12983
12990
|
}), Xe.object(t);
|
|
12984
12991
|
}
|
|
12985
|
-
const
|
|
12992
|
+
const Ka = Xe.any();
|
|
12986
12993
|
export {
|
|
12987
12994
|
Pt as ALLOWED_LANGUAGES,
|
|
12988
|
-
|
|
12995
|
+
ur as ApplicantProgressOnHoldReason,
|
|
12989
12996
|
qe as ApplicantProgressStatus,
|
|
12990
|
-
|
|
12991
|
-
|
|
12992
|
-
|
|
12993
|
-
|
|
12994
|
-
|
|
12995
|
-
|
|
12996
|
-
|
|
12997
|
+
Ir as ApplicantService,
|
|
12998
|
+
gr as ApplicantStatus,
|
|
12999
|
+
vr as AppropriatenessQuestionType,
|
|
13000
|
+
Lr as AppropriatenessTestService,
|
|
13001
|
+
ua as AppropriatenessTestStep,
|
|
13002
|
+
tr as Badge,
|
|
13003
|
+
jr as BaseInformationService,
|
|
12997
13004
|
G as Button,
|
|
12998
13005
|
dt as COMPANY_FIELD_METADATA,
|
|
12999
13006
|
re as Card,
|
|
@@ -13002,110 +13009,110 @@ export {
|
|
|
13002
13009
|
Ce as CardHeader,
|
|
13003
13010
|
Ue as Checkbox,
|
|
13004
13011
|
tt as CountriesType,
|
|
13005
|
-
|
|
13006
|
-
|
|
13007
|
-
|
|
13008
|
-
|
|
13009
|
-
|
|
13010
|
-
|
|
13011
|
-
|
|
13012
|
+
Fa as CreateApplicantForm,
|
|
13013
|
+
Oa as CreateCompanyApplicantForm,
|
|
13014
|
+
xr as CriteriaBuiltInType,
|
|
13015
|
+
Sr as DEFAULT_COMPANY_VISIBLE_FIELDS,
|
|
13016
|
+
Cr as DEFAULT_VISIBLE_FIELDS,
|
|
13017
|
+
hr as DocumentReviewStatus,
|
|
13018
|
+
Tr as EndpointBuilder,
|
|
13012
13019
|
gt as ErrorHandler,
|
|
13013
|
-
|
|
13020
|
+
Yr as EventEmitter,
|
|
13014
13021
|
st as FIELD_METADATA,
|
|
13015
|
-
|
|
13016
|
-
|
|
13022
|
+
kr as FileType,
|
|
13023
|
+
qi as FileUpload,
|
|
13017
13024
|
xt as GenderType,
|
|
13018
13025
|
ft as Header,
|
|
13019
|
-
|
|
13026
|
+
Rr as HttpClient,
|
|
13020
13027
|
et as IdentityProviderManager,
|
|
13021
|
-
|
|
13028
|
+
Dr as IdentityService,
|
|
13022
13029
|
Be as IdentityVerificationProvider,
|
|
13023
|
-
|
|
13030
|
+
ya as IdentityVerificationStep,
|
|
13024
13031
|
we as Input,
|
|
13025
|
-
|
|
13026
|
-
|
|
13032
|
+
Mr as InvestorCategorizationService,
|
|
13033
|
+
ma as InvestorCategorizationStep,
|
|
13027
13034
|
Le as InvestorCategorizationType,
|
|
13028
|
-
|
|
13029
|
-
|
|
13035
|
+
wr as InvestorCategoryType,
|
|
13036
|
+
yr as KycProcessStatus,
|
|
13030
13037
|
nt as KycStatus,
|
|
13031
|
-
|
|
13032
|
-
|
|
13033
|
-
|
|
13034
|
-
|
|
13038
|
+
Yt as KycStatusDisplay,
|
|
13039
|
+
Va as KycWorkflow,
|
|
13040
|
+
fa as Logo,
|
|
13041
|
+
Jt as MetaKYCContext,
|
|
13035
13042
|
_e as MetaKYCError,
|
|
13036
|
-
|
|
13037
|
-
|
|
13038
|
-
|
|
13039
|
-
|
|
13040
|
-
|
|
13041
|
-
|
|
13042
|
-
|
|
13043
|
-
|
|
13043
|
+
Aa as MetaKYCProvider,
|
|
13044
|
+
Vi as MultiSelect,
|
|
13045
|
+
Zr as OnfidoProvider,
|
|
13046
|
+
Er as OverviewService,
|
|
13047
|
+
ra as OverviewStep,
|
|
13048
|
+
Ui as PhoneInput,
|
|
13049
|
+
zr as QuestionnaireService,
|
|
13050
|
+
Zi as QuestionnaireStep,
|
|
13044
13051
|
ot as ReviewStatus,
|
|
13045
|
-
|
|
13046
|
-
|
|
13047
|
-
|
|
13048
|
-
|
|
13049
|
-
|
|
13050
|
-
|
|
13052
|
+
br as RiskCriteriaType,
|
|
13053
|
+
pr as RiskLevel,
|
|
13054
|
+
Pr as RiskScoringService,
|
|
13055
|
+
ca as RiskScoringStep,
|
|
13056
|
+
xi as SDK_VERSION,
|
|
13057
|
+
Jr as SardinAIProvider,
|
|
13051
13058
|
Qe as SearchableSelect,
|
|
13052
13059
|
At as Select,
|
|
13053
13060
|
Ve as Spinner,
|
|
13054
|
-
|
|
13055
|
-
|
|
13056
|
-
|
|
13061
|
+
$r as StepRouter,
|
|
13062
|
+
Xr as SumsubProvider,
|
|
13063
|
+
ei as ThemeManager,
|
|
13057
13064
|
Pe as ThemePreset,
|
|
13058
|
-
|
|
13059
|
-
|
|
13060
|
-
|
|
13061
|
-
|
|
13062
|
-
|
|
13063
|
-
|
|
13065
|
+
Wr as ThemeService,
|
|
13066
|
+
bi as TranslationProvider,
|
|
13067
|
+
Kr as TranslationService,
|
|
13068
|
+
Ar as UploadDocumentService,
|
|
13069
|
+
ta as UploadDocumentStep,
|
|
13070
|
+
fr as UserType,
|
|
13064
13071
|
Ge as ValueDataType,
|
|
13065
|
-
|
|
13072
|
+
_r as WorkflowOrchestrator,
|
|
13066
13073
|
bt as WorkflowResultType,
|
|
13067
|
-
|
|
13074
|
+
Hr as WorkflowState,
|
|
13068
13075
|
de as WorkflowStepAction,
|
|
13069
|
-
|
|
13070
|
-
|
|
13071
|
-
|
|
13072
|
-
|
|
13076
|
+
Ka as appropriatenessTestSchema,
|
|
13077
|
+
ja as clearAllStorage,
|
|
13078
|
+
Ri as clearApplicantId,
|
|
13079
|
+
zi as clearWorkflowState,
|
|
13073
13080
|
De as cn,
|
|
13074
|
-
|
|
13075
|
-
|
|
13081
|
+
Fr as corporateTheme,
|
|
13082
|
+
Nr as defaultConfig,
|
|
13076
13083
|
Ee as defaultTheme,
|
|
13077
|
-
|
|
13078
|
-
|
|
13084
|
+
Ci as fileToBase64,
|
|
13085
|
+
Or as fintechTheme,
|
|
13079
13086
|
St as formatFileSize,
|
|
13080
|
-
|
|
13081
|
-
|
|
13082
|
-
|
|
13083
|
-
|
|
13084
|
-
|
|
13085
|
-
|
|
13087
|
+
Wa as generateAppropriatenessSchema,
|
|
13088
|
+
Ba as generateQuestionnaireSchema,
|
|
13089
|
+
Ua as generateRiskScoringSchema,
|
|
13090
|
+
qa as generateUploadDocumentSchema,
|
|
13091
|
+
Pa as getAcceptString,
|
|
13092
|
+
Ti as getApplicantId,
|
|
13086
13093
|
yt as getThemePreset,
|
|
13087
|
-
|
|
13088
|
-
|
|
13089
|
-
|
|
13090
|
-
|
|
13091
|
-
|
|
13092
|
-
|
|
13093
|
-
|
|
13094
|
+
Da as getWorkflowState,
|
|
13095
|
+
Vr as healthcareTheme,
|
|
13096
|
+
Ia as isScriptLoaded,
|
|
13097
|
+
Qt as loadScript,
|
|
13098
|
+
qr as minimalTheme,
|
|
13099
|
+
Br as modernTheme,
|
|
13100
|
+
za as removeScript,
|
|
13094
13101
|
ve as resolveDisplayText,
|
|
13095
|
-
|
|
13096
|
-
|
|
13097
|
-
|
|
13098
|
-
|
|
13099
|
-
|
|
13100
|
-
|
|
13101
|
-
|
|
13102
|
+
Ni as saveApplicantId,
|
|
13103
|
+
Ii as saveWorkflowState,
|
|
13104
|
+
Ur as themePresets,
|
|
13105
|
+
er as useApplicant,
|
|
13106
|
+
Ma as useAppropriatenessTest,
|
|
13107
|
+
Di as useIdentityVerification,
|
|
13108
|
+
Ai as useKycWorkflow,
|
|
13102
13109
|
Fe as useMetaKYC,
|
|
13103
|
-
|
|
13104
|
-
|
|
13105
|
-
|
|
13110
|
+
Pi as useOverview,
|
|
13111
|
+
Li as useQuestionnaire,
|
|
13112
|
+
ji as useRiskScoring,
|
|
13106
13113
|
Ie as useTranslation,
|
|
13107
|
-
|
|
13108
|
-
|
|
13109
|
-
|
|
13114
|
+
Ei as useUploadDocument,
|
|
13115
|
+
La as validateFileSize,
|
|
13116
|
+
Ea as validateFileType
|
|
13110
13117
|
};
|
|
13111
13118
|
//# sourceMappingURL=index.js.map
|