@incodetech/web 0.0.0-dev-20260423-c594bef → 0.0.0-dev-20260423-9fae59d
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/{AsYouType-C9ozHT0m.js → AsYouType-B4o16RK-.js} +1 -1
- package/dist/{addressAutocomplete-BXaiCXoK.js → addressAutocomplete-CcRXQC3B.js} +5 -5
- package/dist/ae-signature/ae-signature.es.js +2 -2
- package/dist/antifraud/antifraud.es.js +3 -3
- package/dist/authentication/authentication.es.js +3 -3
- package/dist/{bottomSheet-CGGwLnNk.js → bottomSheet-D7Bcy6_9.js} +1 -1
- package/dist/{button-4-ToV5B_.js → button-i4SPU5G7.js} +1 -1
- package/dist/{checkbox-DbHg0n25.js → checkbox-U9Zb6MbF.js} +2 -2
- package/dist/consent/consent.es.js +9 -9
- package/dist/{countrySelector-CITUWfI7.js → countrySelector-BXTh4LLh.js} +2 -2
- package/dist/cross-document-data-match/cross-document-data-match.es.js +3 -3
- package/dist/curp-validation/curp-validation.es.js +15 -15
- package/dist/{customFields-ByZ0CUT5.js → customFields-CAL5OWfs.js} +12 -12
- package/dist/{customWatchlist-BSo5YDZA.js → customWatchlist-B1Qw2jt3.js} +6 -6
- package/dist/dateInputComposed-B0uPsoHC.js +1 -0
- package/dist/{dateInputComposed-DUP8vYwk.js → dateInputComposed-DVAMP-vG.js} +4 -4
- package/dist/{documentCapture-BqduvRtm.js → documentCapture-DkTg5Akh.js} +13 -13
- package/dist/dropdownComposed-C4zoRTo2.js +1 -0
- package/dist/{dropdownComposed-CjD4OMiN.js → dropdownComposed-mYhdUOGA.js} +3 -3
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekybModule-DhcMg0kt.js +2 -0
- package/dist/{ekybModule-CaOzd3Sf.js → ekybModule-DoyAP5zK.js} +13 -13
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekycModule-_ejFVI0K.js +2 -0
- package/dist/{ekycModule-DzOvujCd.js → ekycModule-m2j6dcJ1.js} +14 -14
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-bGxmSqp5.js → electronic-signature-2-BscFlG.js} +9 -9
- package/dist/email/email.es.js +9 -9
- package/dist/{extensibility-MwUYctOv.js → extensibility-Ccmjg9uF.js} +38 -38
- package/dist/extensibility.es.js +24 -24
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/{faceMatch-DIpmVwN7.js → faceMatch-Cnb0bWfn.js} +9 -9
- package/dist/faceMatch-CzhtPfJ-.js +2 -0
- package/dist/flow/flow.es.js +39 -38
- package/dist/{formField-B-_S6kou.js → formField-CJyEH-3m.js} +2 -2
- package/dist/geolocation/geolocation.es.js +7 -7
- package/dist/governmentValidation/governmentValidation.es.js +9 -9
- package/dist/{homeScreen-CkcAO4Ag.js → homeScreen-BU7Ww_R3.js} +7 -7
- package/dist/{i18n-BnVa5Y-_.js → i18n-D6pCC7RL.js} +1 -1
- package/dist/{icons-D3J-STBD.js → icons-CR0w16NT.js} +1 -1
- package/dist/id/id.es.js +17 -17
- package/dist/{idOcr-Ddb5MkER.js → idOcr-DUZhj5yX.js} +10 -10
- package/dist/identity-reuse/identity-reuse.es.js +6 -6
- package/dist/{incodeComponent-DEt7nOim.js → incodeComponent-DmPlyJO-.js} +1 -1
- package/dist/index.es.js +16 -4
- package/dist/{inputComposed-vU4G5kX-.js → inputComposed-snw2V0ak.js} +3 -3
- package/dist/inputComposed-t5grm0d4.js +1 -0
- package/dist/{mandatoryConsent-Cs8VVPyI.js → mandatoryConsent-DQ8eqWpP.js} +9 -9
- package/dist/{modal-NOWTFUIw.js → modal-DAphmB5P.js} +3 -3
- package/dist/{otpInput-B_ItrMcK.js → otpInput-96a2tuz5.js} +5 -5
- package/dist/{page-D5Mt-0zn.js → page-BB20C-zy.js} +3 -3
- package/dist/phone/phone.es.js +9 -9
- package/dist/{phoneInput-BvMryqbJ.js → phoneInput-BrAjth4_.js} +4 -4
- package/dist/{phoneInputComposed-CzxoNJ5b.js → phoneInputComposed-p1-AvgLf.js} +6 -6
- package/dist/{processing-CfA0-82J.js → processing-B4uYww40.js} +1 -1
- package/dist/qe-signature/qe-signature.es.js +2 -2
- package/dist/{radioButtonComposed-CPBFQBXi.js → radioButtonComposed-DB8PavEd.js} +2 -2
- package/dist/{redirectToMobile-CMdQhX3j.js → redirectToMobile-ol3TyFHX.js} +14 -14
- package/dist/{richText-DPdexfgN.js → richText-BNC8z_ah.js} +1 -1
- package/dist/selfie/selfie.es.js +6 -6
- package/dist/signature/signature.es.js +9 -9
- package/dist/spinner-CcWzwNeZ.js +1 -0
- package/dist/{spinner-DyRQfsz_.js → spinner-DLV8Z1TT.js} +3 -3
- package/dist/{statusPage-D7dFp1u5.js → statusPage-IRhwu69S.js} +3 -3
- package/dist/{tabs-Iu2gptzB.js → tabs-NxklvgNU.js} +1 -1
- package/dist/{transitionSpinner-DLUM_WN2.js → transitionSpinner-CU8-yMmE.js} +3 -3
- package/dist/{tutorial-CAfpDlUG.js → tutorial-BfhxBq_l.js} +14 -14
- package/dist/types/flow.d.ts +0 -1
- package/dist/types/workflow.d.ts +0 -1
- package/dist/{typography-B7nxauEL.js → typography-C-fmXMN1.js} +1 -1
- package/dist/{useModuleLoader-CNBI_JLP.js → useModuleLoader-uiNUAFk3.js} +146 -148
- package/dist/{verificationResult-Djajo4_j.js → verificationResult-DJOc6_hf.js} +7 -7
- package/dist/watchlist/watchlist.es.js +6 -6
- package/dist/{watchlistForBusiness-DxiEnt9E.js → watchlistForBusiness-B5Jz59eX.js} +10 -10
- package/dist/workflow/workflow.es.js +24 -27
- package/package.json +2 -2
- package/dist/dateInputComposed-CUhIwliW.js +0 -1
- package/dist/dropdownComposed-XAQ3NrFR.js +0 -1
- package/dist/ekybModule-C9wpmHp1.js +0 -2
- package/dist/ekycModule-Z2hOCcCU.js +0 -2
- package/dist/faceMatch-eE-4h0i2.js +0 -2
- package/dist/inputComposed-Cyw5Vf6f.js +0 -1
- package/dist/setup-CcB4rvjv.js +0 -15
- package/dist/spinner-BmFWJNHp.js +0 -1
- /package/dist/{aligndevicelottie-DyGJbfIE.js → aligndevicelottie-m1gBGZsQ.js} +0 -0
- /package/dist/{back-horizontal-hint-Dftn3Q4p.js → back-horizontal-hint-DUuojsev.js} +0 -0
- /package/dist/{back-tutorial-BUwYnbyp.js → back-tutorial-DMUliF5W.js} +0 -0
- /package/dist/{back-vertical-hint-Br7YQ62I.js → back-vertical-hint-CX_hCJhV.js} +0 -0
- /package/dist/{backdevicelottie-BJMD8fm6.js → backdevicelottie-WEvEwLBA.js} +0 -0
- /package/dist/{blurdevicelottie-B7h0sSvw.js → blurdevicelottie-BNBU2EIM.js} +0 -0
- /package/dist/{browser-ponyfill-Dxc09_1M.js → browser-ponyfill-Dqca0y49.js} +0 -0
- /package/dist/{countries-Bbn2lyxr.js → countries-BntFjJJG.js} +0 -0
- /package/dist/{defineProperty-xczUyn-m.js → defineProperty-DB5OmvER.js} +0 -0
- /package/dist/{flip-animation-CAoCCNZF.js → flip-animation-Tm2zxXjs.js} +0 -0
- /package/dist/{front-horizontal-hint-CR71MdeU.js → front-horizontal-hint-2RcQjgHE.js} +0 -0
- /package/dist/{front-vertical-hint-BGci40sf.js → front-vertical-hint-CRhiWbkP.js} +0 -0
- /package/dist/{frontdevicelottie-B8Qy4pSa.js → frontdevicelottie-BtbZEtwd.js} +0 -0
- /package/dist/{glaredevicelottie-DWxI3Pww.js → glaredevicelottie-CGQ0DCXc.js} +0 -0
- /package/dist/{id-laser-h-ld67NZgZ.js → id-laser-h-oGOFXEpO.js} +0 -0
- /package/dist/{id-laser-v-Buftc8XI.js → id-laser-v-DfWJik9l.js} +0 -0
- /package/dist/{id-tutorial-DCs88Nov.js → id-tutorial-BVIpezZ1.js} +0 -0
- /package/dist/{incode-logo-DX016usY.js → incode-logo-DhG3d-rP.js} +0 -0
- /package/dist/{incodeModule-DcwjDRyJ.js → incodeModule-BH9gV7jI.js} +0 -0
- /package/dist/{loadingIcon-wTrHZMGC.js → loadingIcon-C-Sq5v_K.js} +0 -0
- /package/dist/{modal.hooks-CBKrvoyb.js → modal.hooks-B9B0KVgR.js} +0 -0
- /package/dist/{numberedStep-PCuBJ6Se.js → numberedStep-CSQrc-lB.js} +0 -0
- /package/dist/{optionAccessibleLabel-BReW7dz0.js → optionAccessibleLabel-DFOGi_EW.js} +0 -0
- /package/dist/{passport-horizontal-hint-CVL4ijpt.js → passport-horizontal-hint-CAqrHNYZ.js} +0 -0
- /package/dist/{passport-tutorial-D8ghyCv5.js → passport-tutorial-DhEHJZeD.js} +0 -0
- /package/dist/{passport-vertical-hint-BP1gMsLD.js → passport-vertical-hint-BHH9yd1n.js} +0 -0
- /package/dist/{selfieTutorial-CmGGVE4q.js → selfieTutorial-D8I_4Oam.js} +0 -0
- /package/dist/{spacer-DCljE53A.js → spacer-CN9uvb__.js} +0 -0
- /package/dist/{successIcon-C4GI_9SU.js → successIcon-Dklx5JWI.js} +0 -0
- /package/dist/{verifiedByIncode-ChZBpqNy.js → verifiedByIncode-CiuBhYBD.js} +0 -0
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { initializeWasmUtil as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { i as e, r as t } from "./i18n-D6pCC7RL.js";
|
|
2
|
+
import { _ as n, l as r, p as i, v as a } from "./vendor-preact-D6SntenC.js";
|
|
3
|
+
import { t as o } from "./uiConfig-CwpQ-IM6.js";
|
|
4
|
+
import { t as s } from "./button-i4SPU5G7.js";
|
|
5
|
+
import { initializeWasmUtil as c, resolveWasmConfig as l, setWasmConfig as u, warmupWasm as d } from "@incodetech/core/wasm";
|
|
6
|
+
import { setup as f } from "@incodetech/core";
|
|
7
|
+
import { getDeviceClass as p } from "@incodetech/core/device";
|
|
8
|
+
import { createOrchestratedFlowManager as m, getFlow as h, getRequiredWasmPipelines as g } from "@incodetech/core/flow";
|
|
9
|
+
import { api as _ } from "@incodetech/core/http";
|
|
9
10
|
//#region src/styles/generatePalette.ts
|
|
10
|
-
function
|
|
11
|
+
function v(e) {
|
|
11
12
|
let t = e.replace("#", "");
|
|
12
13
|
t.length === 3 && (t = t.split("").map((e) => e + e).join(""));
|
|
13
14
|
let n = /^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
|
|
@@ -33,7 +34,7 @@ function g(e) {
|
|
|
33
34
|
l: u * 100
|
|
34
35
|
};
|
|
35
36
|
}
|
|
36
|
-
function
|
|
37
|
+
function y(e, t, n) {
|
|
37
38
|
let r = e / 360, i = t / 100, a = n / 100, o, s, c;
|
|
38
39
|
if (i === 0) o = s = c = a;
|
|
39
40
|
else {
|
|
@@ -46,24 +47,24 @@ function _(e, t, n) {
|
|
|
46
47
|
};
|
|
47
48
|
return `#${l(o)}${l(s)}${l(c)}`;
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
-
let t =
|
|
50
|
+
function b(e) {
|
|
51
|
+
let t = v(e);
|
|
51
52
|
if (!t) throw Error(`Invalid color format: ${e}`);
|
|
52
53
|
return {
|
|
53
|
-
50:
|
|
54
|
-
200:
|
|
55
|
-
300:
|
|
56
|
-
400:
|
|
54
|
+
50: y(t.h, t.s, 95),
|
|
55
|
+
200: y(t.h, t.s, 80),
|
|
56
|
+
300: y(t.h, t.s, 65),
|
|
57
|
+
400: y(t.h, t.s, Math.min(100, t.l + 10)),
|
|
57
58
|
500: e,
|
|
58
|
-
600:
|
|
59
|
-
900:
|
|
59
|
+
600: y(t.h, t.s, Math.max(0, t.l - 10)),
|
|
60
|
+
900: y(t.h, t.s, 20)
|
|
60
61
|
};
|
|
61
62
|
}
|
|
62
63
|
//#endregion
|
|
63
64
|
//#region src/styles/applyTheme.ts
|
|
64
|
-
function
|
|
65
|
+
function x(e, t) {
|
|
65
66
|
if (typeof document > "u") return;
|
|
66
|
-
let n =
|
|
67
|
+
let n = b(e), r = document.getElementById("incode-theme");
|
|
67
68
|
r || (r = document.createElement("style"), r.id = "incode-theme", document.head.appendChild(r));
|
|
68
69
|
let i = t || "#ffffff", a = `
|
|
69
70
|
:root,
|
|
@@ -82,43 +83,43 @@ function y(e, t) {
|
|
|
82
83
|
}
|
|
83
84
|
//#endregion
|
|
84
85
|
//#region src/styles/fetchTheme.ts
|
|
85
|
-
async function
|
|
86
|
-
return (await
|
|
86
|
+
async function S() {
|
|
87
|
+
return (await _.get("/omni/asset/fetch-all")).data;
|
|
87
88
|
}
|
|
88
|
-
var
|
|
89
|
-
async function
|
|
89
|
+
var C = /* @__PURE__ */ new Map();
|
|
90
|
+
async function w(e) {
|
|
90
91
|
if (e.startsWith("data:")) return e;
|
|
91
|
-
let t =
|
|
92
|
+
let t = C.get(e);
|
|
92
93
|
if (t) return t;
|
|
93
94
|
let n = await (await fetch(e)).blob(), r = await new Promise((e, t) => {
|
|
94
95
|
let r = new FileReader();
|
|
95
96
|
r.onloadend = () => e(r.result), r.onerror = t, r.readAsDataURL(n);
|
|
96
97
|
});
|
|
97
|
-
return
|
|
98
|
+
return C.set(e, r), r;
|
|
98
99
|
}
|
|
99
|
-
async function
|
|
100
|
-
let e = await
|
|
100
|
+
async function T() {
|
|
101
|
+
let e = await S();
|
|
101
102
|
if (!e.theme) throw Error("Theme URL not found in assets response");
|
|
102
103
|
let t = e.theme, n = t.startsWith("http://") || t.startsWith("https://"), r;
|
|
103
104
|
if (n) {
|
|
104
105
|
let e = await fetch(t);
|
|
105
106
|
if (!e.ok) throw Error(`Failed to fetch theme: ${e.statusText}`);
|
|
106
107
|
r = await e.json();
|
|
107
|
-
} else r = (await
|
|
108
|
+
} else r = (await _.get(t)).data;
|
|
108
109
|
let i = e["logo.png"] || e["logo.svg"] || e["logo.jpg"] || e["logo.jpeg"] || e["logo.webp"] || r.logo, a = i;
|
|
109
|
-
return i && (a = await
|
|
110
|
+
return i && (a = await w(i)), {
|
|
110
111
|
...r,
|
|
111
112
|
logo: a
|
|
112
113
|
};
|
|
113
114
|
}
|
|
114
|
-
async function
|
|
115
|
-
let e = await
|
|
116
|
-
return e.main &&
|
|
115
|
+
async function E() {
|
|
116
|
+
let e = await T();
|
|
117
|
+
return e.main && x(e.main, e.buttonColor), e;
|
|
117
118
|
}
|
|
118
119
|
//#endregion
|
|
119
120
|
//#region src/modules/flow/flowInit.ts
|
|
120
|
-
var
|
|
121
|
-
function
|
|
121
|
+
var D = () => import("./id/id.es.js").then((e) => e.Id), O = () => import("./homeScreen-BU7Ww_R3.js").then((e) => e.HomeScreen), k;
|
|
122
|
+
function A(e) {
|
|
122
123
|
if (e === "REDIRECT_TO_MOBILE") return () => import("@incodetech/core/redirect-to-mobile").then((e) => e.redirectToMobileMachine);
|
|
123
124
|
if (e === "PHONE") return () => import("@incodetech/core/phone").then((e) => e.phoneMachine);
|
|
124
125
|
if (e === "EMAIL") return () => import("@incodetech/core/email").then((e) => e.emailMachine);
|
|
@@ -144,102 +145,99 @@ function O(e) {
|
|
|
144
145
|
if (e === "AE_SIGNATURE") return () => import("@incodetech/core/ae-signature").then((e) => e.aeSignatureMachine);
|
|
145
146
|
if (e === "QE_SIGNATURE") return () => import("@incodetech/core/qe-signature").then((e) => e.qeSignatureMachine);
|
|
146
147
|
}
|
|
147
|
-
function
|
|
148
|
+
function j(e) {
|
|
148
149
|
let t = {};
|
|
149
150
|
for (let n of e) {
|
|
150
151
|
let e = n.key;
|
|
151
152
|
if (t[e]) continue;
|
|
152
|
-
let r =
|
|
153
|
+
let r = A(e);
|
|
153
154
|
r && (t[e] = r);
|
|
154
155
|
}
|
|
155
156
|
return t;
|
|
156
157
|
}
|
|
157
|
-
var
|
|
158
|
-
REDIRECT_TO_MOBILE: () => import("./redirectToMobile-
|
|
158
|
+
var M = {
|
|
159
|
+
REDIRECT_TO_MOBILE: () => import("./redirectToMobile-ol3TyFHX.js").then((e) => e.RedirectToMobile),
|
|
159
160
|
PHONE: () => import("./phone/phone.es.js").then((e) => e.Phone),
|
|
160
161
|
EMAIL: () => import("./email/email.es.js").then((e) => e.Email),
|
|
161
162
|
SELFIE: () => import("./selfie/selfie.es.js").then((e) => e.Selfie),
|
|
162
163
|
AUTHENTICATION: () => import("./authentication/authentication.es.js").then((e) => e.Authentication),
|
|
163
|
-
ID:
|
|
164
|
-
ID_CAPTURE:
|
|
165
|
-
TUTORIAL_ID:
|
|
166
|
-
SECOND_ID:
|
|
167
|
-
FACE_MATCH: () => import("./faceMatch-
|
|
164
|
+
ID: D,
|
|
165
|
+
ID_CAPTURE: D,
|
|
166
|
+
TUTORIAL_ID: D,
|
|
167
|
+
SECOND_ID: D,
|
|
168
|
+
FACE_MATCH: () => import("./faceMatch-CzhtPfJ-.js").then((e) => e.FaceMatch),
|
|
168
169
|
CURP_VALIDATION: () => import("./curp-validation/curp-validation.es.js").then((e) => e.CurpValidation),
|
|
169
170
|
GOVT_VALIDATION_PROVISIONING: () => import("./governmentValidation/governmentValidation.es.js").then((e) => e.GovernmentValidation),
|
|
170
171
|
GEOLOCATION: () => import("./geolocation/geolocation.es.js").then((e) => e.Geolocation),
|
|
171
|
-
EXTERNAL_VERIFICATION: () => import("./ekycModule-
|
|
172
|
-
EKYB: () => import("./ekybModule-
|
|
173
|
-
DOCUMENT_CAPTURE: () => import("./documentCapture-
|
|
174
|
-
ADDRESS: () => import("./documentCapture-
|
|
172
|
+
EXTERNAL_VERIFICATION: () => import("./ekycModule-_ejFVI0K.js").then((e) => e.EkycModule),
|
|
173
|
+
EKYB: () => import("./ekybModule-DhcMg0kt.js").then((e) => e.EkybModule),
|
|
174
|
+
DOCUMENT_CAPTURE: () => import("./documentCapture-DkTg5Akh.js").then((e) => e.DocumentCapture),
|
|
175
|
+
ADDRESS: () => import("./documentCapture-DkTg5Akh.js").then((e) => e.DocumentCapture),
|
|
175
176
|
COMBINED_CONSENT: () => import("./consent/consent.es.js").then((e) => e.Consent),
|
|
176
|
-
MANDATORY_CONSENT: () => import("./mandatoryConsent-
|
|
177
|
+
MANDATORY_CONSENT: () => import("./mandatoryConsent-DQ8eqWpP.js").then((e) => e.MandatoryConsent),
|
|
177
178
|
SIGNATURE: () => import("./signature/signature.es.js").then((e) => e.Signature),
|
|
178
|
-
ID_OCR: () => import("./idOcr-
|
|
179
|
+
ID_OCR: () => import("./idOcr-DUZhj5yX.js").then((e) => e.IdOcr),
|
|
179
180
|
ANTIFRAUD: () => import("./antifraud/antifraud.es.js").then((e) => e.Antifraud),
|
|
180
|
-
CUSTOM_FIELDS: () => import("./customFields-
|
|
181
|
+
CUSTOM_FIELDS: () => import("./customFields-CAL5OWfs.js").then((e) => e.CustomFields),
|
|
181
182
|
WATCHLIST: () => import("./watchlist/watchlist.es.js").then((e) => e.Watchlist),
|
|
182
|
-
WATCHLIST_BUSINESS: () => import("./watchlistForBusiness-
|
|
183
|
-
INCODE_WATCHLIST: () => import("./customWatchlist-
|
|
183
|
+
WATCHLIST_BUSINESS: () => import("./watchlistForBusiness-B5Jz59eX.js").then((e) => e.WatchlistForBusiness),
|
|
184
|
+
INCODE_WATCHLIST: () => import("./customWatchlist-B1Qw2jt3.js").then((e) => e.CustomWatchlist),
|
|
184
185
|
AE_SIGNATURE: () => import("./ae-signature/ae-signature.es.js").then((e) => e.AeSignature),
|
|
185
186
|
QE_SIGNATURE: () => import("./qe-signature/qe-signature.es.js").then((e) => e.QeSignature),
|
|
186
187
|
CROSS_DOCUMENT_DATA_MATCH: () => import("./cross-document-data-match/cross-document-data-match.es.js").then((e) => e.CrossDocumentDataMatch)
|
|
187
188
|
};
|
|
188
|
-
function
|
|
189
|
-
return
|
|
189
|
+
function N() {
|
|
190
|
+
return O();
|
|
190
191
|
}
|
|
191
|
-
function
|
|
192
|
-
|
|
193
|
-
|
|
192
|
+
function P() {
|
|
193
|
+
k || (k = N(), k.catch(() => {
|
|
194
|
+
k = void 0;
|
|
194
195
|
}));
|
|
195
196
|
}
|
|
196
|
-
var
|
|
197
|
-
function
|
|
198
|
-
if (
|
|
199
|
-
let e =
|
|
200
|
-
e && n.push(e()), t && n.push(t()),
|
|
201
|
-
|
|
197
|
+
var F;
|
|
198
|
+
function I() {
|
|
199
|
+
if (F) return;
|
|
200
|
+
let e = M.REDIRECT_TO_MOBILE, t = A("REDIRECT_TO_MOBILE"), n = [];
|
|
201
|
+
e && n.push(e()), t && n.push(t()), F = Promise.all(n), F.catch(() => {
|
|
202
|
+
F = void 0;
|
|
202
203
|
});
|
|
203
204
|
}
|
|
204
|
-
function
|
|
205
|
-
let t = {}, n = e.isDesktop ??
|
|
206
|
-
return
|
|
205
|
+
function L(e = {}) {
|
|
206
|
+
let t = {}, n = e.isDesktop ?? p() === "desktop", { enableHome: r, ...i } = e;
|
|
207
|
+
return m({
|
|
207
208
|
enableHome: r,
|
|
208
209
|
getFlow: async (e) => {
|
|
209
|
-
let r = await
|
|
210
|
+
let r = await h(e, {
|
|
210
211
|
...i,
|
|
211
212
|
isDesktop: n
|
|
212
|
-
}), a =
|
|
213
|
+
}), a = j(r.flowModules ?? []);
|
|
213
214
|
for (let e of Object.keys(t)) delete t[e];
|
|
214
215
|
return Object.assign(t, a), r;
|
|
215
216
|
},
|
|
216
217
|
lazyModules: t
|
|
217
218
|
});
|
|
218
219
|
}
|
|
219
|
-
async function
|
|
220
|
-
await
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
i18n: e.lang ? { lang: e.lang } : void 0
|
|
225
|
-
});
|
|
220
|
+
async function R(n) {
|
|
221
|
+
await f({
|
|
222
|
+
token: n.token,
|
|
223
|
+
wasm: !1
|
|
224
|
+
}), t(e(n.lang ? { lang: n.lang } : void 0));
|
|
226
225
|
}
|
|
227
|
-
async function
|
|
228
|
-
let {
|
|
229
|
-
await
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
}), i.load();
|
|
226
|
+
async function z(e) {
|
|
227
|
+
let { token: t, lang: n, flowManager: r } = e;
|
|
228
|
+
await R({
|
|
229
|
+
token: t,
|
|
230
|
+
lang: n
|
|
231
|
+
}), r.load();
|
|
234
232
|
}
|
|
235
|
-
async function
|
|
233
|
+
async function B() {
|
|
236
234
|
try {
|
|
237
|
-
let e = await
|
|
235
|
+
let e = await E(), t = {
|
|
238
236
|
logoSrc: e.logo,
|
|
239
237
|
subtitle: e.subtitle,
|
|
240
238
|
hideFooterBranding: e.hideFooterBranding
|
|
241
239
|
};
|
|
242
|
-
return
|
|
240
|
+
return o(t), {
|
|
243
241
|
theme: e,
|
|
244
242
|
uiConfig: t
|
|
245
243
|
};
|
|
@@ -247,42 +245,42 @@ async function R() {
|
|
|
247
245
|
return {};
|
|
248
246
|
}
|
|
249
247
|
}
|
|
250
|
-
function
|
|
248
|
+
function V(e, t) {
|
|
251
249
|
if (e.currentStep === "REDIRECT_TO_MOBILE") return;
|
|
252
|
-
let n =
|
|
250
|
+
let n = g(e.flow);
|
|
253
251
|
if (n.length > 0) {
|
|
254
|
-
let e =
|
|
252
|
+
let e = l({
|
|
255
253
|
...t ?? {},
|
|
256
254
|
pipelines: n
|
|
257
255
|
}), r = {
|
|
258
256
|
...e,
|
|
259
257
|
pipelines: e.pipelines ? [...e.pipelines] : void 0
|
|
260
258
|
};
|
|
261
|
-
|
|
259
|
+
u(r), d(e).then(() => c(r)).catch((e) => {
|
|
262
260
|
console.error("WASM warmup failed:", e);
|
|
263
261
|
});
|
|
264
262
|
}
|
|
265
263
|
}
|
|
266
|
-
function
|
|
264
|
+
function H(e) {
|
|
267
265
|
let t = e.currentStep;
|
|
268
266
|
if (t) {
|
|
269
|
-
let e =
|
|
267
|
+
let e = M[t];
|
|
270
268
|
e && e().catch(() => {});
|
|
271
269
|
}
|
|
272
270
|
}
|
|
273
271
|
//#endregion
|
|
274
272
|
//#region src/modules/flow/unsupportedModule.tsx
|
|
275
|
-
var
|
|
273
|
+
var U = ({ moduleKey: e, onNext: t }) => /* @__PURE__ */ a("section", {
|
|
276
274
|
class: "IncodeUnsupportedModule",
|
|
277
275
|
"aria-live": "polite",
|
|
278
|
-
children: /* @__PURE__ */
|
|
276
|
+
children: /* @__PURE__ */ a("div", {
|
|
279
277
|
class: "IncodeUnsupportedModuleContent",
|
|
280
278
|
children: [
|
|
281
|
-
/* @__PURE__ */
|
|
279
|
+
/* @__PURE__ */ a("h2", {
|
|
282
280
|
class: "IncodeUnsupportedModuleTitle",
|
|
283
281
|
children: "Module not available"
|
|
284
282
|
}),
|
|
285
|
-
/* @__PURE__ */
|
|
283
|
+
/* @__PURE__ */ a("p", {
|
|
286
284
|
class: "IncodeUnsupportedModuleMessage",
|
|
287
285
|
children: [
|
|
288
286
|
"The \"",
|
|
@@ -290,7 +288,7 @@ var V = ({ moduleKey: e, onNext: t }) => /* @__PURE__ */ r("section", {
|
|
|
290
288
|
"\" module is not yet supported in this version."
|
|
291
289
|
]
|
|
292
290
|
}),
|
|
293
|
-
/* @__PURE__ */
|
|
291
|
+
/* @__PURE__ */ a(s, {
|
|
294
292
|
onClick: t,
|
|
295
293
|
class: "IncodeUnsupportedModuleButton",
|
|
296
294
|
"data-testid": "unsupported-module-next-button",
|
|
@@ -301,58 +299,58 @@ var V = ({ moduleKey: e, onNext: t }) => /* @__PURE__ */ r("section", {
|
|
|
301
299
|
});
|
|
302
300
|
//#endregion
|
|
303
301
|
//#region src/modules/flow/useModuleLoader.ts
|
|
304
|
-
function
|
|
302
|
+
function W(e, t) {
|
|
305
303
|
return e instanceof Error ? e.message : t;
|
|
306
304
|
}
|
|
307
|
-
var
|
|
308
|
-
function
|
|
305
|
+
var G = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap();
|
|
306
|
+
function q(e) {
|
|
309
307
|
return e;
|
|
310
308
|
}
|
|
311
|
-
function
|
|
312
|
-
if (e) return
|
|
309
|
+
function J(e) {
|
|
310
|
+
if (e) return G.get(q(e));
|
|
313
311
|
}
|
|
314
|
-
function
|
|
315
|
-
let t =
|
|
312
|
+
function Y(e) {
|
|
313
|
+
let t = q(e), n = G.get(t);
|
|
316
314
|
if (n) return Promise.resolve(n);
|
|
317
|
-
let r =
|
|
315
|
+
let r = K.get(t);
|
|
318
316
|
if (r) return r;
|
|
319
|
-
let i = e().then((e) => (
|
|
320
|
-
throw
|
|
317
|
+
let i = e().then((e) => (G.set(t, e), K.delete(t), e)).catch((e) => {
|
|
318
|
+
throw K.delete(t), e;
|
|
321
319
|
});
|
|
322
|
-
return
|
|
320
|
+
return K.set(t, i), i;
|
|
323
321
|
}
|
|
324
|
-
function
|
|
322
|
+
function X(e) {
|
|
325
323
|
if (!e) return { status: "idle" };
|
|
326
|
-
let t =
|
|
324
|
+
let t = J(e);
|
|
327
325
|
return t ? {
|
|
328
326
|
status: "loaded",
|
|
329
327
|
Component: t
|
|
330
328
|
} : { status: "loading" };
|
|
331
329
|
}
|
|
332
|
-
function
|
|
333
|
-
let { loader:
|
|
334
|
-
return
|
|
330
|
+
function Z(e) {
|
|
331
|
+
let { loader: t, onLoading: a, onLoaded: o, onError: s } = e, [c, l] = i(() => X(t)), u = r(t), d = r(a), f = r(o), p = r(s);
|
|
332
|
+
return n(() => {
|
|
335
333
|
d.current = a, f.current = o, p.current = s;
|
|
336
334
|
}, [
|
|
337
335
|
a,
|
|
338
336
|
o,
|
|
339
337
|
s
|
|
340
|
-
]), u.current !==
|
|
341
|
-
if (!
|
|
342
|
-
if (
|
|
338
|
+
]), u.current !== t && (u.current = t, l(X(t))), n(() => {
|
|
339
|
+
if (!t) return;
|
|
340
|
+
if (J(t)) {
|
|
343
341
|
f.current?.();
|
|
344
342
|
return;
|
|
345
343
|
}
|
|
346
344
|
d.current?.();
|
|
347
345
|
let e = !1;
|
|
348
|
-
return
|
|
346
|
+
return Y(t).then((t) => {
|
|
349
347
|
e || (l({
|
|
350
348
|
status: "loaded",
|
|
351
349
|
Component: t
|
|
352
350
|
}), f.current?.());
|
|
353
351
|
}).catch((t) => {
|
|
354
352
|
if (!e) {
|
|
355
|
-
let e =
|
|
353
|
+
let e = W(t, "Failed to load component");
|
|
356
354
|
l({
|
|
357
355
|
status: "error",
|
|
358
356
|
error: e
|
|
@@ -361,67 +359,67 @@ function Y(r) {
|
|
|
361
359
|
}), () => {
|
|
362
360
|
e = !0;
|
|
363
361
|
};
|
|
364
|
-
}, [
|
|
362
|
+
}, [t]), c;
|
|
365
363
|
}
|
|
366
|
-
function
|
|
367
|
-
let { moduleKey:
|
|
364
|
+
function Q(e) {
|
|
365
|
+
let { moduleKey: t, modules: r, onModuleLoading: a, onModuleLoaded: o, onError: s } = e, [c, l] = i(void 0), u = t ? r[t] : void 0, d = Z({
|
|
368
366
|
loader: u,
|
|
369
|
-
onLoading:
|
|
370
|
-
onLoaded:
|
|
371
|
-
onError:
|
|
367
|
+
onLoading: t ? () => a?.(t) : void 0,
|
|
368
|
+
onLoaded: t ? () => o?.(t) : void 0,
|
|
369
|
+
onError: t ? (e) => s?.(`Failed to load ${t}: ${e}`) : void 0
|
|
372
370
|
});
|
|
373
|
-
return
|
|
374
|
-
if (!
|
|
371
|
+
return n(() => {
|
|
372
|
+
if (!t) {
|
|
375
373
|
l(void 0);
|
|
376
374
|
return;
|
|
377
375
|
}
|
|
378
|
-
l(u ? void 0 :
|
|
379
|
-
}, [u,
|
|
376
|
+
l(u ? void 0 : t);
|
|
377
|
+
}, [u, t]), t ? c ? {
|
|
380
378
|
status: "unsupported",
|
|
381
379
|
moduleKey: c
|
|
382
380
|
} : d.status === "idle" || d.status === "loading" ? {
|
|
383
381
|
status: "loading",
|
|
384
|
-
moduleKey:
|
|
382
|
+
moduleKey: t
|
|
385
383
|
} : d.status === "error" ? {
|
|
386
384
|
status: "error",
|
|
387
|
-
moduleKey:
|
|
385
|
+
moduleKey: t,
|
|
388
386
|
error: d.error
|
|
389
387
|
} : {
|
|
390
388
|
status: "loaded",
|
|
391
|
-
moduleKey:
|
|
389
|
+
moduleKey: t,
|
|
392
390
|
Component: d.Component
|
|
393
391
|
} : { status: "idle" };
|
|
394
392
|
}
|
|
395
|
-
function
|
|
396
|
-
let { moduleKey: t, modules: n } = e, r = t ? n[t] : void 0, i =
|
|
393
|
+
function $(e) {
|
|
394
|
+
let { moduleKey: t, modules: n } = e, r = t ? n[t] : void 0, i = Z({ loader: r });
|
|
397
395
|
return r != null && i.status === "loaded";
|
|
398
396
|
}
|
|
399
|
-
function
|
|
397
|
+
function ee(e) {
|
|
400
398
|
typeof requestIdleCallback < "u" ? requestIdleCallback(() => {
|
|
401
399
|
e();
|
|
402
400
|
}) : setTimeout(e, 0);
|
|
403
401
|
}
|
|
404
|
-
function
|
|
405
|
-
let o =
|
|
406
|
-
|
|
407
|
-
if (a &&
|
|
408
|
-
let
|
|
409
|
-
if (
|
|
410
|
-
o.current.add(
|
|
411
|
-
let
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
o.current.delete(
|
|
402
|
+
function te(e, t, i, a) {
|
|
403
|
+
let o = r(/* @__PURE__ */ new Set());
|
|
404
|
+
n(() => {
|
|
405
|
+
if (a && t < e.length - 1) {
|
|
406
|
+
let n = e[t + 1];
|
|
407
|
+
if (n && !o.current.has(n)) {
|
|
408
|
+
o.current.add(n);
|
|
409
|
+
let e = i[n];
|
|
410
|
+
e && ee(() => {
|
|
411
|
+
e().catch(() => {
|
|
412
|
+
o.current.delete(n);
|
|
415
413
|
});
|
|
416
414
|
});
|
|
417
415
|
}
|
|
418
416
|
}
|
|
419
417
|
}, [
|
|
420
|
-
|
|
421
|
-
|
|
418
|
+
e,
|
|
419
|
+
t,
|
|
422
420
|
i,
|
|
423
421
|
a
|
|
424
422
|
]);
|
|
425
423
|
}
|
|
426
424
|
//#endregion
|
|
427
|
-
export {
|
|
425
|
+
export { M as a, z as c, I as d, R as f, U as i, H as l, E as m, $ as n, L as o, V as p, te as r, B as s, Q as t, P as u };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as e } from "./i18n-
|
|
1
|
+
import { n as e } from "./i18n-D6pCC7RL.js";
|
|
2
2
|
import { _ as t, l as n, v as r } from "./vendor-preact-D6SntenC.js";
|
|
3
|
-
import { t as i } from "./page-
|
|
4
|
-
import { t as a } from "./typography-
|
|
5
|
-
import { t as o } from "./spinner-
|
|
6
|
-
import { t as s } from "./button-
|
|
7
|
-
import { h as c, m as l } from "./icons-
|
|
8
|
-
import { t as u } from "./successIcon-
|
|
3
|
+
import { t as i } from "./page-BB20C-zy.js";
|
|
4
|
+
import { t as a } from "./typography-C-fmXMN1.js";
|
|
5
|
+
import { t as o } from "./spinner-DLV8Z1TT.js";
|
|
6
|
+
import { t as s } from "./button-i4SPU5G7.js";
|
|
7
|
+
import { h as c, m as l } from "./icons-CR0w16NT.js";
|
|
8
|
+
import { t as u } from "./successIcon-Dklx5JWI.js";
|
|
9
9
|
//#region src/shared/verificationResult/verificationResult.tsx
|
|
10
10
|
var d = ({ status: d, submittingTitle: f, successTitle: p, failureTitle: m, warningTitle: h, onRetry: g, onSkip: _, retryLabel: v, skipLabel: y }) => {
|
|
11
11
|
let { t: b } = e(), x = n(null);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { n as e } from "../i18n-
|
|
1
|
+
import { n as e } from "../i18n-D6pCC7RL.js";
|
|
2
2
|
import { _ as t, l as n, v as r } from "../vendor-preact-D6SntenC.js";
|
|
3
|
-
import { o as i, t as a } from "../incodeComponent-
|
|
4
|
-
import { t as o } from "../loadingIcon-
|
|
5
|
-
import { t as s } from "../successIcon-
|
|
6
|
-
import { t as c } from "../incodeModule-
|
|
7
|
-
import { t as l } from "../statusPage-
|
|
3
|
+
import { o as i, t as a } from "../incodeComponent-DmPlyJO-.js";
|
|
4
|
+
import { t as o } from "../loadingIcon-C-Sq5v_K.js";
|
|
5
|
+
import { t as s } from "../successIcon-Dklx5JWI.js";
|
|
6
|
+
import { t as c } from "../incodeModule-BH9gV7jI.js";
|
|
7
|
+
import { t as l } from "../statusPage-IRhwu69S.js";
|
|
8
8
|
import { createWatchlistManager as u } from "@incodetech/core/watchlist";
|
|
9
9
|
//#region src/modules/watchlist/watchlist.tsx
|
|
10
10
|
var d = ({ onFinish: a }) => {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { n as e } from "./i18n-
|
|
1
|
+
import { n as e } from "./i18n-D6pCC7RL.js";
|
|
2
2
|
import { _ as t, l as n, v as r } from "./vendor-preact-D6SntenC.js";
|
|
3
|
-
import { o as i, t as a } from "./incodeComponent-
|
|
4
|
-
import { t as o } from "./page-
|
|
5
|
-
import { t as s } from "./loadingIcon-
|
|
6
|
-
import { t as c } from "./button-
|
|
7
|
-
import { t as l } from "./successIcon-
|
|
8
|
-
import { t as u } from "./inputComposed-
|
|
9
|
-
import { t as d } from "./incodeModule-
|
|
10
|
-
import { t as f } from "./countrySelector-
|
|
11
|
-
import { t as p } from "./statusPage-
|
|
3
|
+
import { o as i, t as a } from "./incodeComponent-DmPlyJO-.js";
|
|
4
|
+
import { t as o } from "./page-BB20C-zy.js";
|
|
5
|
+
import { t as s } from "./loadingIcon-C-Sq5v_K.js";
|
|
6
|
+
import { t as c } from "./button-i4SPU5G7.js";
|
|
7
|
+
import { t as l } from "./successIcon-Dklx5JWI.js";
|
|
8
|
+
import { t as u } from "./inputComposed-snw2V0ak.js";
|
|
9
|
+
import { t as d } from "./incodeModule-BH9gV7jI.js";
|
|
10
|
+
import { t as f } from "./countrySelector-BXTh4LLh.js";
|
|
11
|
+
import { t as p } from "./statusPage-IRhwu69S.js";
|
|
12
12
|
import { createWatchlistForBusinessManager as m } from "@incodetech/core/watchlist-for-business";
|
|
13
13
|
//#region src/modules/watchlist-for-business/watchlistForBusiness.tsx
|
|
14
14
|
var h = ({ onFinish: a }) => {
|