@incodetech/web 0.0.0-dev-20260723-e73d5099 → 0.0.0-dev-20260723-397b76d8
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/ae-signature/ae-signature.es.js +5 -3
- package/dist/antifraud/antifraud.es.js +6 -5
- package/dist/authentication/authentication.es.js +7 -6
- package/dist/{autoFocusTitle-IN4TR7QN.js → autoFocusTitle-DIuy3fAL.js} +1 -1
- package/dist/{bottomSheet-DIxxFBUN.js → bottomSheet-DLa3gA9I.js} +1 -1
- package/dist/{captureNotification-DatgEL_T.js → captureNotification-CYNo5vI6.js} +8 -8
- package/dist/certificate-issuance/certificate-issuance.es.js +13 -13
- package/dist/{checkbox-BZ3Vuawq.js → checkbox-CWH3awlJ.js} +3 -3
- package/dist/{connectionError-BILGlQvh.js → connectionError-CkMyPEEa.js} +3 -3
- package/dist/consent/consent.es.js +10 -11
- package/dist/{countrySelector-DSCcBRMz.js → countrySelector-7r0JHTbz.js} +2 -2
- package/dist/cpf-ocr/cpf-ocr.es.js +1 -1
- package/dist/{cpfOcr-DCIXCw5X.js → cpfOcr-C7oATNXA.js} +9 -10
- package/dist/cpfOcr-O8X5O6z1.js +2 -0
- package/dist/cross-document-data-match/cross-document-data-match.es.js +6 -5
- package/dist/curp-validation/curp-validation.es.js +17 -19
- package/dist/{customFields-CFRWCs3I.js → customFields-BgFMUeIp.js} +13 -13
- package/dist/{customWatchlist-CAGzLeIU.js → customWatchlist-DMz7aerw.js} +9 -8
- package/dist/dashboardTheme-C6I2WQPK.js +223 -0
- package/dist/dateInputComposed-6wvZi6m1.js +1 -0
- package/dist/{dateInputComposed-Dy8s_pst.js → dateInputComposed-BBgQB4tl.js} +4 -4
- package/dist/document-capture/document-capture.es.js +1 -1
- package/dist/{documentCapture-Cdksl5DR.js → documentCapture-BC6DBpAG.js} +19 -19
- package/dist/documentCapture-diUvht9m.js +2 -0
- package/dist/{dropdownComposed-BHoaSeXB.js → dropdownComposed-C0IZ1uRF.js} +4 -4
- package/dist/dropdownComposed-DBnwuqE4.js +1 -0
- package/dist/{dynamicForms-CujcVUvG.js → dynamicForms-skhwHeCx.js} +14 -14
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/{ekybModule-CtJT7I0D.js → ekybModule-bGDvjIj7.js} +17 -17
- package/dist/ekybModule-bUgBSy9a.js +2 -0
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/ekycModule-D-ZKad8r.js +2 -0
- package/dist/{ekycModule-Clgu1ydz.js → ekycModule-DVVAasG2.js} +15 -15
- package/dist/electronic-signature/electronic-signature.es.js +1 -1
- package/dist/{electronic-signature-C-eiNR8V.js → electronic-signature-Dy0hN6lu.js} +11 -12
- package/dist/email/email.es.js +10 -10
- package/dist/{emailInput-BIXyslAC.js → emailInput-CGDc3flM.js} +3 -3
- package/dist/{expiredId-DE_SO8Iy.js → expiredId-CDxPLhiW.js} +5 -5
- package/dist/{extensibility-Dv0Z50OE.js → extensibility-DMroM1OU.js} +37 -42
- package/dist/extensibility.es.js +24 -28
- package/dist/face-match/face-match.es.js +1 -1
- package/dist/faceMatch-DxRtNWtc.js +2 -0
- package/dist/{faceMatch-DVkAPLup.js → faceMatch-si9UUQ3_.js} +10 -11
- package/dist/field-comparison/field-comparison.es.js +1 -1
- package/dist/{fieldComparison-BbgIcdF5.js → fieldComparison-CR15MASU.js} +11 -11
- package/dist/fieldComparison-MLm7cnmM.js +2 -0
- package/dist/fiscal-qr/fiscal-qr.es.js +12 -11
- package/dist/flow/flow.es.js +10 -13
- package/dist/geolocation/geolocation.es.js +11 -11
- package/dist/government-validation/government-validation.es.js +11 -11
- package/dist/{homeScreen-CqhuW7le.js → homeScreen-0T3uPq2I.js} +6 -8
- package/dist/{page-DidH_RkX.js → hooks-Bl4BccV8.js} +374 -5
- package/dist/{icons-w6luRFtW.js → icons-CqDMnQ1g.js} +2 -2
- package/dist/id/id.es.js +22 -25
- package/dist/id-verification/id-verification.es.js +5 -5
- package/dist/{idOcr-Y8dKRIN4.js → idOcr-C9Cj1ino.js} +13 -13
- package/dist/identity-reuse/identity-reuse.es.js +6 -7
- package/dist/{incode-logo-57XFniXU.js → incode-logo-DasIBJw8.js} +64 -1
- package/dist/{incodeComponent-BCd_bJev.js → incodeComponent-DHbfYA-r.js} +2 -2
- package/dist/{incodeModule-Bgg06vwW.js → incodeModule-BiwGYtcv.js} +1 -1
- package/dist/index.es.js +14 -5
- package/dist/{inputComposed-DzyxybSu.js → inputComposed-C1Z4OxHI.js} +4 -4
- package/dist/inputComposed-DL1YD59E.js +1 -0
- package/dist/{mandatoryConsent-DnoDgtOT.js → mandatoryConsent-DEGcSJhx.js} +9 -10
- package/dist/{modal-C-Q9km3s.js → modal-BgjeiOv5.js} +3 -3
- package/dist/{optionAccessibleLabel-RW68xECf.js → optionAccessibleLabel-DAvz9vdG.js} +5 -5
- package/dist/{otpInput-H_Y9R8B8.js → otpInput-DLnLXnJo.js} +5 -5
- package/dist/{pdf-BAb2ezmC.js → pdf-BYHLDKvG.js} +1 -1
- package/dist/{pdfViewer-XeOSCt-S.js → pdfViewer-BVnrfnFA.js} +3 -3
- package/dist/{permissions-J6qPq98P.js → permissions-Bcn-2yHb.js} +9 -11
- package/dist/phone/phone.es.js +11 -11
- package/dist/{phoneInputComposed-DaBNd-wY.js → phoneInputComposed-CJavLkBe.js} +5 -5
- package/dist/{processing-BN2Mgw0p.js → processing-DBuq4_4J.js} +1 -1
- package/dist/qe-signature/qe-signature.es.js +5 -3
- package/dist/{radioGroupComposed-D2qsp3Vx.js → radioGroupComposed-YO_U82bM.js} +5 -5
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +15 -17
- package/dist/{richText-D-G1XXAw.js → richText-Bbp3TPzi.js} +1 -1
- package/dist/selfie/selfie.es.js +9 -9
- package/dist/signature/signature.es.js +11 -11
- package/dist/{snackbar-BsV5S3Z7.js → snackbar-CSODaFW4.js} +1 -1
- package/dist/{loadingIcon-B0ysgiNq.js → spacer-I8ILMQiA.js} +68 -68
- package/dist/{spinner-BMeIEK1d.js → spinner-YXqSOUqg.js} +45 -4
- package/dist/{statusPage-DPNU-L3H.js → statusPage-DUejG583.js} +3 -3
- package/dist/{tabs-CYtIZmR0.js → tabs-CG7W9rbn.js} +1 -1
- package/dist/{tutorial-CTCp3mrv.js → tutorial-hXqxb0q5.js} +10 -12
- package/dist/types/ae-signature.d.ts +6 -3
- package/dist/types/antifraud.d.ts +6 -3
- package/dist/types/authentication.d.ts +6 -3
- package/dist/types/certificate-issuance.d.ts +6 -3
- package/dist/types/consent.d.ts +6 -3
- package/dist/types/cpf-ocr.d.ts +56 -5
- package/dist/types/cross-document-data-match.d.ts +6 -3
- package/dist/types/curp-validation.d.ts +6 -3
- package/dist/types/document-capture.d.ts +6 -3
- package/dist/types/ekyb.d.ts +6 -3
- package/dist/types/ekyc.d.ts +6 -3
- package/dist/types/electronic-signature.d.ts +2 -2
- package/dist/types/email.d.ts +6 -26
- package/dist/types/extensibility.d.ts +2 -2
- package/dist/types/face-match.d.ts +6 -25
- package/dist/types/field-comparison.d.ts +6 -3
- package/dist/types/fiscal-qr.d.ts +9 -5
- package/dist/types/flow.d.ts +2 -2
- package/dist/types/geolocation.d.ts +6 -3
- package/dist/types/government-validation.d.ts +6 -3
- package/dist/types/id-verification.d.ts +2 -2
- package/dist/types/id.d.ts +6 -3
- package/dist/types/identity-reuse.d.ts +2 -2
- package/dist/types/index.d.ts +23 -1
- package/dist/types/phone.d.ts +6 -27
- package/dist/types/qe-signature.d.ts +6 -3
- package/dist/types/redirect-to-mobile.d.ts +4 -1
- package/dist/types/selfie.d.ts +6 -3
- package/dist/types/signature.d.ts +6 -3
- package/dist/types/video-selfie.d.ts +6 -9
- package/dist/types/watchlist.d.ts +6 -3
- package/dist/types/workflow.d.ts +2 -2
- package/dist/{i18n-CushpmmJ.js → uiConfig-DSGyRMSC.js} +26 -3
- package/dist/{useModuleLoader-BTo4NZuV.js → useModuleLoader-V8kW4raN.js} +32 -180
- package/dist/{verificationResult-xubIOKNi.js → verificationResult-4X7V8KzA.js} +8 -9
- package/dist/video-selfie/video-selfie.es.js +16 -19
- package/dist/watchlist/watchlist.es.js +9 -8
- package/dist/{watchlistForBusiness-BWaVfgeV.js → watchlistForBusiness-DWg7G4IB.js} +12 -12
- package/dist/workflow/workflow.es.js +17 -14
- package/package.json +2 -2
- package/dist/button-Dz6AsbmF.js +0 -40
- package/dist/cpfOcr-BToIikZC.js +0 -2
- package/dist/dateInputComposed-DDtUFSrC.js +0 -1
- package/dist/documentCapture-CgBRyZHX.js +0 -2
- package/dist/dropdownComposed-4RQ6KcIz.js +0 -1
- package/dist/ekybModule-CIhe-NjG.js +0 -2
- package/dist/ekycModule-CYdRFXyJ.js +0 -2
- package/dist/errorIcon-BA4T6iy-.js +0 -26
- package/dist/faceMatch-BnDfDC5l.js +0 -2
- package/dist/fieldComparison-DeH3dh5a.js +0 -2
- package/dist/hooks-CxG4XS7P.js +0 -175
- package/dist/inputComposed-CrmMDnMp.js +0 -1
- package/dist/spinner-BCDCoi9C.js +0 -1
- package/dist/terminalErrorPage-DwH-JDg0.js +0 -71
- package/dist/transitionSpinner-B7mmwUrc.js +0 -30
- package/dist/typography-BZIpjo97.js +0 -45
- package/dist/uiConfig-D2_wawvr.js +0 -25
- /package/dist/{aligndevicelottie-C9Mrj6AB.js → aligndevicelottie-t8IVRvKe.js} +0 -0
- /package/dist/{back-horizontal-hint-B-EHEYFx.js → back-horizontal-hint-Dk3Qx2Jy.js} +0 -0
- /package/dist/{back-tutorial-Bkm8BMI-.js → back-tutorial-Sa9INxfJ.js} +0 -0
- /package/dist/{back-vertical-hint-Yo_1LFB2.js → back-vertical-hint-BSXiELAo.js} +0 -0
- /package/dist/{backdevicelottie-FrU5aQgi.js → backdevicelottie--JZVcmsk.js} +0 -0
- /package/dist/{blurdevicelottie-jfRWrBAA.js → blurdevicelottie-D8d1O-r6.js} +0 -0
- /package/dist/{browser-ponyfill-vwGrGxYJ.js → browser-ponyfill-R_VWu0FU.js} +0 -0
- /package/dist/{defineProperty-BZW5EcGC.js → defineProperty-BsIK7Gws.js} +0 -0
- /package/dist/{flip-animation-RSWxSh3p.js → flip-animation-CulASaCy.js} +0 -0
- /package/dist/{front-horizontal-hint-BxmjB6HQ.js → front-horizontal-hint-GlNgmYkY.js} +0 -0
- /package/dist/{front-vertical-hint-BS4R8Ge4.js → front-vertical-hint-Bn2FOrKQ.js} +0 -0
- /package/dist/{frontdevicelottie-CvMs7jnY.js → frontdevicelottie-DGU1DFsb.js} +0 -0
- /package/dist/{glaredevicelottie-B_g3-Xay.js → glaredevicelottie-Dqjzhp2v.js} +0 -0
- /package/dist/{id-laser-h-DS31CxU-.js → id-laser-h-BXX4SvZX.js} +0 -0
- /package/dist/{id-laser-v-Cb982xnA.js → id-laser-v-BXUywa3r.js} +0 -0
- /package/dist/{id-tutorial-D2hF8yoN.js → id-tutorial-Dss1CIkf.js} +0 -0
- /package/dist/{lottie_light-B0mE6Bs2.js → lottie_light-XgO-x03h.js} +0 -0
- /package/dist/{modal.hooks-ZrzmHAUa.js → modal.hooks-BbFC-AOq.js} +0 -0
- /package/dist/{numberedStep-BOfeDZfJ.js → numberedStep-DtIEG6uM.js} +0 -0
- /package/dist/{passport-horizontal-hint-B0YSV7zH.js → passport-horizontal-hint-C0gW3Rvi.js} +0 -0
- /package/dist/{passport-tutorial-DvynHyve.js → passport-tutorial-B6e9nM9w.js} +0 -0
- /package/dist/{passport-vertical-hint-g5QGlFT5.js → passport-vertical-hint-lrBhacG3.js} +0 -0
- /package/dist/{registerIncodeElement-ClG0mgIF.js → registerIncodeElement-C9y6CNCw.js} +0 -0
- /package/dist/{requiredLabelHint-DmD8ZCH-.js → requiredLabelHint-Dx0WS2cR.js} +0 -0
- /package/dist/{selfieTutorial-eySh67am.js → selfieTutorial-DfjgQ9w5.js} +0 -0
- /package/dist/{successIcon-B5mGvdx1.js → successIcon-BshEyvXA.js} +0 -0
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as useTranslation, l as getLanguageEmoji, n as useUiConfig, u as supportedLanguages } from "./uiConfig-DSGyRMSC.js";
|
|
2
2
|
import { _ as y, d as T, l as A, p as d, v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import {
|
|
4
|
-
import { r as
|
|
5
|
-
import "./
|
|
6
|
-
import { t as
|
|
7
|
-
import
|
|
8
|
-
import { t as DropdownComposed } from "./dropdownComposed-BHoaSeXB.js";
|
|
9
|
-
import "./dropdownComposed-4RQ6KcIz.js";
|
|
3
|
+
import { t as Spacer } from "./spacer-I8ILMQiA.js";
|
|
4
|
+
import { r as Button } from "./incode-logo-DasIBJw8.js";
|
|
5
|
+
import { t as Modal } from "./modal-BgjeiOv5.js";
|
|
6
|
+
import { t as DropdownComposed } from "./dropdownComposed-C0IZ1uRF.js";
|
|
7
|
+
import "./dropdownComposed-DBnwuqE4.js";
|
|
10
8
|
//#region src/shared/homeScreen/language.ts
|
|
11
9
|
function capitalizeLabel(text, locale) {
|
|
12
10
|
const [firstCharacter, ...rest] = Array.from(text);
|
|
@@ -1,7 +1,208 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
1
|
+
import { i as useTranslation, n as useUiConfig } from "./uiConfig-DSGyRMSC.js";
|
|
2
|
+
import { _ as y, b as Q, d as T, g as x, h as q, l as A, p as d, s as gn, v as u, x as k } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
|
+
import { a as getStandaloneSetupPolicy, n as preloadDashboardTheme, t as getDashboardTheme } from "./dashboardTheme-C6I2WQPK.js";
|
|
4
|
+
import { t as Spacer } from "./spacer-I8ILMQiA.js";
|
|
5
|
+
import { t as Spinner } from "./spinner-YXqSOUqg.js";
|
|
6
|
+
import { n as ErrorIcon, r as Button, t as incode_logo_default } from "./incode-logo-DasIBJw8.js";
|
|
7
|
+
import { ScreenOrientationProvider, createScreenOrientationObserver, getDeviceClass } from "@incodetech/core/device";
|
|
8
|
+
import "@incodetech/core/events";
|
|
9
|
+
import "@incodetech/core/feature-management";
|
|
10
|
+
import { resolveDashboardModuleConfig } from "@incodetech/core/flow";
|
|
11
|
+
//#region src/hooks/useManager.ts
|
|
12
|
+
/**
|
|
13
|
+
* Hook for subscribing to manager state updates
|
|
14
|
+
* @param factory - Factory function that creates the manager instance
|
|
15
|
+
* @param options - Configuration options
|
|
16
|
+
* @returns Tuple of [state, manager]
|
|
17
|
+
*/
|
|
18
|
+
function useManager(factory, options = {}) {
|
|
19
|
+
const { autoLoad = true, manageLifecycle = true } = options;
|
|
20
|
+
const [manager] = d(factory);
|
|
21
|
+
const [state, setState] = d(() => manager.getState());
|
|
22
|
+
y(() => {
|
|
23
|
+
const unsubscribe = manager.subscribe(setState);
|
|
24
|
+
if (manageLifecycle && autoLoad && manager.load) manager.load();
|
|
25
|
+
return () => {
|
|
26
|
+
unsubscribe();
|
|
27
|
+
if (manageLifecycle) manager.stop?.();
|
|
28
|
+
};
|
|
29
|
+
}, [
|
|
30
|
+
manager,
|
|
31
|
+
autoLoad,
|
|
32
|
+
manageLifecycle
|
|
33
|
+
]);
|
|
34
|
+
return [state, manager];
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/hooks/useScreenOrientation.ts
|
|
38
|
+
var observerInstance = null;
|
|
39
|
+
function getObserver() {
|
|
40
|
+
if (!observerInstance) observerInstance = createScreenOrientationObserver(new ScreenOrientationProvider(), getDeviceClass());
|
|
41
|
+
return observerInstance;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Hook that returns whether the device is in landscape mode on mobile (excluding iPad and desktop).
|
|
45
|
+
* Use this to show a landscape blocker overlay when true.
|
|
46
|
+
*/
|
|
47
|
+
function useScreenOrientation() {
|
|
48
|
+
const [isLandscapeMobile, setIsLandscapeMobile] = d(false);
|
|
49
|
+
y(() => {
|
|
50
|
+
const observer = getObserver();
|
|
51
|
+
setIsLandscapeMobile(observer.isLandscapeMobile);
|
|
52
|
+
return observer.subscribe((value) => {
|
|
53
|
+
gn(() => setIsLandscapeMobile(value));
|
|
54
|
+
});
|
|
55
|
+
}, []);
|
|
56
|
+
return { isLandscapeMobile };
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/hooks/useModuleTerminalCallbacks.ts
|
|
60
|
+
function isModuleTerminalStatus(status) {
|
|
61
|
+
return status === "finished" || status === "error" || status === "closed" || status === "failed";
|
|
62
|
+
}
|
|
63
|
+
function isTerminalModuleState(state) {
|
|
64
|
+
return isModuleTerminalStatus(state.status);
|
|
65
|
+
}
|
|
66
|
+
function useModuleTerminalCallbacks({ status, onFinish, output, onError, error, errorCode, moduleErrorCode, errorStatuses }) {
|
|
67
|
+
const terminalFiredRef = A(false);
|
|
68
|
+
y(() => {
|
|
69
|
+
if (terminalFiredRef.current) return;
|
|
70
|
+
if (status === "finished") {
|
|
71
|
+
terminalFiredRef.current = true;
|
|
72
|
+
onFinish?.(output);
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
if (status === "closed") {
|
|
76
|
+
terminalFiredRef.current = true;
|
|
77
|
+
onError?.(void 0);
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
if ((errorStatuses ?? ["error"]).includes(status)) {
|
|
81
|
+
terminalFiredRef.current = true;
|
|
82
|
+
if (moduleErrorCode !== void 0) onError?.(error, errorCode, moduleErrorCode);
|
|
83
|
+
else onError?.(error, errorCode);
|
|
84
|
+
}
|
|
85
|
+
}, [
|
|
86
|
+
status,
|
|
87
|
+
onFinish,
|
|
88
|
+
output,
|
|
89
|
+
onError,
|
|
90
|
+
error,
|
|
91
|
+
errorCode,
|
|
92
|
+
moduleErrorCode,
|
|
93
|
+
errorStatuses
|
|
94
|
+
]);
|
|
95
|
+
}
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region src/hooks/useFormScrollable.ts
|
|
98
|
+
/**
|
|
99
|
+
* Tracks whether an element's content overflows its visible area vertically.
|
|
100
|
+
* Re-evaluates on element resize and whenever `depCount` changes
|
|
101
|
+
* (e.g. number of form fields).
|
|
102
|
+
*/
|
|
103
|
+
function useFormScrollable(ref, depCount) {
|
|
104
|
+
const [isScrollable, setIsScrollable] = d(false);
|
|
105
|
+
y(() => {
|
|
106
|
+
const el = ref.current;
|
|
107
|
+
if (!el) return;
|
|
108
|
+
const check = () => setIsScrollable(el.scrollHeight > el.clientHeight);
|
|
109
|
+
check();
|
|
110
|
+
const ro = new ResizeObserver(check);
|
|
111
|
+
ro.observe(el);
|
|
112
|
+
return () => ro.disconnect();
|
|
113
|
+
}, [depCount, ref]);
|
|
114
|
+
return isScrollable;
|
|
115
|
+
}
|
|
116
|
+
//#endregion
|
|
117
|
+
//#region src/hooks/useMediaQuery.ts
|
|
118
|
+
var MOBILE_QUERY = "(max-width: 767px)";
|
|
119
|
+
function useMediaQuery(query) {
|
|
120
|
+
const [matches, setMatches] = d(() => typeof window !== "undefined" && window.matchMedia(query).matches);
|
|
121
|
+
y(() => {
|
|
122
|
+
if (typeof window === "undefined") return;
|
|
123
|
+
const mql = window.matchMedia(query);
|
|
124
|
+
const onChange = () => setMatches(mql.matches);
|
|
125
|
+
mql.addEventListener("change", onChange);
|
|
126
|
+
return () => mql.removeEventListener("change", onChange);
|
|
127
|
+
}, [query]);
|
|
128
|
+
return matches;
|
|
129
|
+
}
|
|
130
|
+
function useIsMobileDeviceWidth() {
|
|
131
|
+
return useMediaQuery(MOBILE_QUERY);
|
|
132
|
+
}
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region src/hooks/useEventListener.ts
|
|
135
|
+
function useEventListener(eventName, handler) {
|
|
136
|
+
y(() => {
|
|
137
|
+
window.addEventListener(eventName, handler);
|
|
138
|
+
return () => window.removeEventListener(eventName, handler);
|
|
139
|
+
}, [eventName, handler]);
|
|
140
|
+
}
|
|
141
|
+
//#endregion
|
|
142
|
+
//#region src/hooks/useResizeObserver.ts
|
|
143
|
+
function useResizeObserver(ref, onResize) {
|
|
144
|
+
y(() => {
|
|
145
|
+
const element = ref.current;
|
|
146
|
+
if (!element || typeof ResizeObserver === "undefined") {
|
|
147
|
+
onResize();
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
onResize();
|
|
151
|
+
const resizeObserver = new ResizeObserver(onResize);
|
|
152
|
+
resizeObserver.observe(element);
|
|
153
|
+
return () => resizeObserver.disconnect();
|
|
154
|
+
}, [ref, onResize]);
|
|
155
|
+
}
|
|
156
|
+
//#endregion
|
|
157
|
+
//#region src/hooks/useTimeout.ts
|
|
158
|
+
/**
|
|
159
|
+
* Imperative one-shot timeout handle for user-triggered delays. Clears any
|
|
160
|
+
* pending timer on unmount.
|
|
161
|
+
*/
|
|
162
|
+
function useTimeoutHandle() {
|
|
163
|
+
const timerRef = A();
|
|
164
|
+
const clear = q(() => {
|
|
165
|
+
if (timerRef.current !== void 0) {
|
|
166
|
+
window.clearTimeout(timerRef.current);
|
|
167
|
+
timerRef.current = void 0;
|
|
168
|
+
}
|
|
169
|
+
}, []);
|
|
170
|
+
const schedule = q((callback, delayMs) => {
|
|
171
|
+
clear();
|
|
172
|
+
timerRef.current = window.setTimeout(callback, delayMs);
|
|
173
|
+
}, [clear]);
|
|
174
|
+
y(() => clear, [clear]);
|
|
175
|
+
return T(() => ({
|
|
176
|
+
schedule,
|
|
177
|
+
clear
|
|
178
|
+
}), [schedule, clear]);
|
|
179
|
+
}
|
|
180
|
+
//#endregion
|
|
181
|
+
//#region src/shared/processing/transitionSpinner.tsx
|
|
182
|
+
/**
|
|
183
|
+
* Canonical "we're getting ready / processing" loader.
|
|
184
|
+
*
|
|
185
|
+
* Renders a container-filling `Spinner` with the unified `loadingCircle.holdOn`
|
|
186
|
+
* / `loadingCircle.validating` copy at `size="large"` so every cross-module
|
|
187
|
+
* transition looks identical to the user. Optional `spinnerConfig` overrides
|
|
188
|
+
* any of `title`, `subtitle`, or `size` for consumers that already exposed
|
|
189
|
+
* those. Pass `hideText` to render the spinner icon on its own.
|
|
190
|
+
*/
|
|
191
|
+
var TransitionSpinner = ({ spinnerConfig, className, hideText = false, presentational = false }) => {
|
|
192
|
+
const { t } = useTranslation();
|
|
193
|
+
const title = hideText ? void 0 : spinnerConfig?.title ?? t("loadingCircle.holdOn");
|
|
194
|
+
const subtitle = hideText ? void 0 : spinnerConfig?.subtitle ?? t("loadingCircle.validating");
|
|
195
|
+
return /* @__PURE__ */ u(Spinner, {
|
|
196
|
+
title,
|
|
197
|
+
subtitle,
|
|
198
|
+
ariaLabel: presentational ? void 0 : [title, subtitle].filter(Boolean).join(". ") || void 0,
|
|
199
|
+
size: spinnerConfig?.size ?? "large",
|
|
200
|
+
fullScreen: true,
|
|
201
|
+
className,
|
|
202
|
+
presentational
|
|
203
|
+
});
|
|
204
|
+
};
|
|
205
|
+
//#endregion
|
|
5
206
|
//#region src/shared/page/pageUiConfig.ts
|
|
6
207
|
function resolveFirst(values) {
|
|
7
208
|
for (const value of values) if (value !== void 0) return value;
|
|
@@ -168,4 +369,172 @@ var Page = ({ title, titleId, subtitle, titleTopSlot, className, logo, children,
|
|
|
168
369
|
});
|
|
169
370
|
};
|
|
170
371
|
//#endregion
|
|
171
|
-
|
|
372
|
+
//#region src/shared/terminalErrorPage/terminalErrorPage.tsx
|
|
373
|
+
/**
|
|
374
|
+
* Terminal error screen shown by `<incode-flow>` / `<incode-workflow>` when
|
|
375
|
+
* the SDK reaches an unrecoverable error state — both during initialization
|
|
376
|
+
* (e.g. `/omni/start` or `/omni/workflow/info` returns `4028` "not activated")
|
|
377
|
+
* and during the flow/workflow lifecycle (e.g. `/omni/workflow/process/node`,
|
|
378
|
+
* `/omni/finish-status`, or a child module's terminal error).
|
|
379
|
+
*
|
|
380
|
+
* When the error carries a backend-provided `error`/`message` (surfaced via
|
|
381
|
+
* `IncodeApiError.message` from core's service wrappers), it's rendered
|
|
382
|
+
* verbatim as the subtitle. Generic transport failures fall back to a
|
|
383
|
+
* translated default.
|
|
384
|
+
*
|
|
385
|
+
* Layout: `Page` is used for the Incode logo + optional "Verified by Incode"
|
|
386
|
+
* footer only — the title/subtitle/titleTopSlot slots are deliberately *not*
|
|
387
|
+
* used so we can vertically center the status block (icon + title + message)
|
|
388
|
+
* within the available height at every viewport size. The Try again button
|
|
389
|
+
* is anchored to the bottom of the content area. The screen intentionally
|
|
390
|
+
* has no close button — the only exit is "Try again", which delegates to
|
|
391
|
+
* `onRetry`.
|
|
392
|
+
*/
|
|
393
|
+
var TerminalErrorPage = ({ message, onRetry }) => {
|
|
394
|
+
const { t } = useTranslation();
|
|
395
|
+
const titleRef = A(null);
|
|
396
|
+
y(() => {
|
|
397
|
+
titleRef.current?.focus();
|
|
398
|
+
}, []);
|
|
399
|
+
const handleRetry = () => {
|
|
400
|
+
if (onRetry) {
|
|
401
|
+
onRetry();
|
|
402
|
+
return;
|
|
403
|
+
}
|
|
404
|
+
if (typeof window !== "undefined") window.location.reload();
|
|
405
|
+
};
|
|
406
|
+
return /* @__PURE__ */ u(Page, {
|
|
407
|
+
className: "IncodeTerminalErrorPage",
|
|
408
|
+
"data-testid": "terminal-error-page",
|
|
409
|
+
children: /* @__PURE__ */ u("div", {
|
|
410
|
+
class: "IncodeTerminalErrorPageBody",
|
|
411
|
+
children: [/* @__PURE__ */ u("div", {
|
|
412
|
+
class: "IncodeTerminalErrorPageStatus",
|
|
413
|
+
children: [
|
|
414
|
+
/* @__PURE__ */ u(ErrorIcon, { size: 64 }),
|
|
415
|
+
/* @__PURE__ */ u("h2", {
|
|
416
|
+
ref: titleRef,
|
|
417
|
+
class: "IncodeTerminalErrorPageTitle",
|
|
418
|
+
tabIndex: -1,
|
|
419
|
+
children: t("common.somethingWentWrong")
|
|
420
|
+
}),
|
|
421
|
+
/* @__PURE__ */ u("p", {
|
|
422
|
+
class: "IncodeTerminalErrorPageMessage",
|
|
423
|
+
children: message ?? t("common.unexpectedError")
|
|
424
|
+
})
|
|
425
|
+
]
|
|
426
|
+
}), /* @__PURE__ */ u("div", {
|
|
427
|
+
class: "IncodeTerminalErrorPageFooter",
|
|
428
|
+
children: /* @__PURE__ */ u(Button, {
|
|
429
|
+
onClick: handleRetry,
|
|
430
|
+
children: t("common.tryAgain")
|
|
431
|
+
})
|
|
432
|
+
})]
|
|
433
|
+
})
|
|
434
|
+
});
|
|
435
|
+
};
|
|
436
|
+
//#endregion
|
|
437
|
+
//#region src/shared/dashboard/resolvedConfigContext.tsx
|
|
438
|
+
var ResolvedConfigContext = Q(false);
|
|
439
|
+
var ResolvedConfigProvider = ({ children }) => /* @__PURE__ */ u(ResolvedConfigContext.Provider, {
|
|
440
|
+
value: true,
|
|
441
|
+
children
|
|
442
|
+
});
|
|
443
|
+
function useHasResolvedConfig() {
|
|
444
|
+
return x(ResolvedConfigContext);
|
|
445
|
+
}
|
|
446
|
+
//#endregion
|
|
447
|
+
//#region src/hooks/useStandaloneModuleBootstrap.tsx
|
|
448
|
+
function shouldLoadDashboardTheme(policy, config) {
|
|
449
|
+
return policy.theme.enabled && config === void 0;
|
|
450
|
+
}
|
|
451
|
+
function preloadOptionalDashboardTheme(policy, config) {
|
|
452
|
+
const token = policy.token;
|
|
453
|
+
if (!shouldLoadDashboardTheme(policy, config) || !token) return Promise.resolve();
|
|
454
|
+
return Promise.resolve().then(() => getDashboardTheme(token) ?? preloadDashboardTheme(token)).then(() => void 0).catch(() => void 0);
|
|
455
|
+
}
|
|
456
|
+
function createInitialState(config, skipConfigResolution, hasResolvedConfig, policy) {
|
|
457
|
+
if (skipConfigResolution || hasResolvedConfig) return {
|
|
458
|
+
status: "ready",
|
|
459
|
+
config
|
|
460
|
+
};
|
|
461
|
+
if (config !== void 0 && !policy.flow.mergeConfig) return {
|
|
462
|
+
status: "ready",
|
|
463
|
+
config
|
|
464
|
+
};
|
|
465
|
+
if (!policy.flow.enabled) return {
|
|
466
|
+
status: "error",
|
|
467
|
+
error: "Flow-backed module configuration is disabled; provide config or manager"
|
|
468
|
+
};
|
|
469
|
+
return { status: "loading" };
|
|
470
|
+
}
|
|
471
|
+
function useStandaloneModuleBootstrap(moduleKey, config, skipConfigResolution) {
|
|
472
|
+
const hasResolvedConfig = useHasResolvedConfig();
|
|
473
|
+
const policy = getStandaloneSetupPolicy();
|
|
474
|
+
const [state, setState] = d(() => createInitialState(config, skipConfigResolution, hasResolvedConfig, policy));
|
|
475
|
+
y(() => {
|
|
476
|
+
if (skipConfigResolution || hasResolvedConfig) {
|
|
477
|
+
setState({
|
|
478
|
+
status: "ready",
|
|
479
|
+
config
|
|
480
|
+
});
|
|
481
|
+
return;
|
|
482
|
+
}
|
|
483
|
+
if (config !== void 0 && !policy.flow.mergeConfig) {
|
|
484
|
+
setState({
|
|
485
|
+
status: "ready",
|
|
486
|
+
config
|
|
487
|
+
});
|
|
488
|
+
return;
|
|
489
|
+
}
|
|
490
|
+
if (!policy.flow.enabled) {
|
|
491
|
+
setState(createInitialState(config, false, false, policy));
|
|
492
|
+
return;
|
|
493
|
+
}
|
|
494
|
+
const abortController = new AbortController();
|
|
495
|
+
const themePromise = preloadOptionalDashboardTheme(policy, config);
|
|
496
|
+
setState({ status: "loading" });
|
|
497
|
+
Promise.all([resolveDashboardModuleConfig({
|
|
498
|
+
moduleKey,
|
|
499
|
+
config,
|
|
500
|
+
signal: abortController.signal
|
|
501
|
+
}), themePromise]).then(([resolvedConfig]) => {
|
|
502
|
+
if (abortController.signal.aborted) return;
|
|
503
|
+
setState({
|
|
504
|
+
status: "ready",
|
|
505
|
+
config: resolvedConfig
|
|
506
|
+
});
|
|
507
|
+
}).catch((error) => {
|
|
508
|
+
if (abortController.signal.aborted) return;
|
|
509
|
+
setState({
|
|
510
|
+
status: "error",
|
|
511
|
+
error: error instanceof Error ? error.message : String(error)
|
|
512
|
+
});
|
|
513
|
+
});
|
|
514
|
+
return () => abortController.abort();
|
|
515
|
+
}, [
|
|
516
|
+
config,
|
|
517
|
+
hasResolvedConfig,
|
|
518
|
+
moduleKey,
|
|
519
|
+
policy,
|
|
520
|
+
skipConfigResolution
|
|
521
|
+
]);
|
|
522
|
+
return state;
|
|
523
|
+
}
|
|
524
|
+
function withStandaloneModuleBootstrap(Component, moduleKey, options = {}) {
|
|
525
|
+
return function StandaloneModule(props) {
|
|
526
|
+
const { config, manager, onError } = props;
|
|
527
|
+
const bootstrap = useStandaloneModuleBootstrap(moduleKey, config, options.supportsExternalManager === true && manager !== void 0);
|
|
528
|
+
y(() => {
|
|
529
|
+
if (bootstrap.status === "error") onError?.(bootstrap.error);
|
|
530
|
+
}, [bootstrap, onError]);
|
|
531
|
+
if (bootstrap.status === "loading") return /* @__PURE__ */ u(TransitionSpinner, { hideText: true });
|
|
532
|
+
if (bootstrap.status === "error") return /* @__PURE__ */ u(TerminalErrorPage, { message: bootstrap.error });
|
|
533
|
+
return /* @__PURE__ */ u(Component, {
|
|
534
|
+
...props,
|
|
535
|
+
config: bootstrap.config
|
|
536
|
+
});
|
|
537
|
+
};
|
|
538
|
+
}
|
|
539
|
+
//#endregion
|
|
540
|
+
export { VerifiedByIncodeLogo as a, useTimeoutHandle as c, useIsMobileDeviceWidth as d, useFormScrollable as f, useManager as g, useScreenOrientation as h, Page as i, useResizeObserver as l, useModuleTerminalCallbacks as m, ResolvedConfigProvider as n, usePageUiConfig as o, isTerminalModuleState as p, TerminalErrorPage as r, TransitionSpinner as s, withStandaloneModuleBootstrap as t, useEventListener as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { m as g, v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
2
|
-
import "./
|
|
3
|
-
import "./successIcon-
|
|
2
|
+
import "./incode-logo-DasIBJw8.js";
|
|
3
|
+
import "./successIcon-BshEyvXA.js";
|
|
4
4
|
//#region src/shared/icons/warningIcon.tsx
|
|
5
5
|
var WarningIcon = ({ size = 32 }) => {
|
|
6
6
|
return /* @__PURE__ */ u("svg", {
|
package/dist/id/id.es.js
CHANGED
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as useTranslation } from "../uiConfig-DSGyRMSC.js";
|
|
2
2
|
import { _ as y, c as z, d as T, l as A, o as P, p as d, v as u, x as k } from "../vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import "../
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import {
|
|
13
|
-
import { t as
|
|
14
|
-
import {
|
|
15
|
-
import { t as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { t as PdfViewer } from "../pdfViewer-XeOSCt-S.js";
|
|
19
|
-
import { t as registerIncodeModuleElement } from "../incodeModule-Bgg06vwW.js";
|
|
20
|
-
import { t as id_laser_v_default } from "../id-laser-v-Cb982xnA.js";
|
|
21
|
-
import { t as Tabs } from "../tabs-CYtIZmR0.js";
|
|
3
|
+
import { g as useManager, i as Page, m as useModuleTerminalCallbacks, s as TransitionSpinner, t as withStandaloneModuleBootstrap } from "../hooks-Bl4BccV8.js";
|
|
4
|
+
import { r as cn } from "../spacer-I8ILMQiA.js";
|
|
5
|
+
import { t as Spinner } from "../spinner-YXqSOUqg.js";
|
|
6
|
+
import { n as ErrorIcon, r as Button } from "../incode-logo-DasIBJw8.js";
|
|
7
|
+
import { t as IncodeComponent } from "../incodeComponent-DHbfYA-r.js";
|
|
8
|
+
import { a as IdNoAttempts, i as Capture, n as Chooser, o as IdExpired, r as Tutorial, s as IdError, t as FlipAnimation, v as ProgressBar } from "../extensibility-DMroM1OU.js";
|
|
9
|
+
import { t as Processing } from "../processing-DBuq4_4J.js";
|
|
10
|
+
import { u as ChevronRightIcon } from "../icons-CqDMnQ1g.js";
|
|
11
|
+
import { t as SuccessIcon } from "../successIcon-BshEyvXA.js";
|
|
12
|
+
import { i as ErrorContent } from "../tutorial-hXqxb0q5.js";
|
|
13
|
+
import { n as Lottie, t as Permissions } from "../permissions-Bcn-2yHb.js";
|
|
14
|
+
import { t as PdfViewer } from "../pdfViewer-BVnrfnFA.js";
|
|
15
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-BiwGYtcv.js";
|
|
16
|
+
import { t as id_laser_v_default } from "../id-laser-v-BXUywa3r.js";
|
|
17
|
+
import { t as Tabs } from "../tabs-CG7W9rbn.js";
|
|
22
18
|
import { createIdCaptureManager } from "@incodetech/core/id";
|
|
23
19
|
//#region src/shared/fonts/preloadDisplayFont.ts
|
|
24
20
|
function preloadDisplayFont() {
|
|
@@ -933,13 +929,13 @@ var started = false;
|
|
|
933
929
|
function preloadIdTutorialAssets() {
|
|
934
930
|
if (started) return;
|
|
935
931
|
started = true;
|
|
936
|
-
import("../id-tutorial-
|
|
937
|
-
import("../back-tutorial-
|
|
938
|
-
import("../passport-tutorial-
|
|
932
|
+
import("../id-tutorial-Dss1CIkf.js");
|
|
933
|
+
import("../back-tutorial-Sa9INxfJ.js");
|
|
934
|
+
import("../passport-tutorial-B6e9nM9w.js");
|
|
939
935
|
}
|
|
940
936
|
//#endregion
|
|
941
937
|
//#region src/modules/id/id.tsx
|
|
942
|
-
var MandatoryConsent = z(() => import("../mandatoryConsent-
|
|
938
|
+
var MandatoryConsent = z(() => import("../mandatoryConsent-DEGcSJhx.js").then((module) => ({ default: module.MandatoryConsent })));
|
|
943
939
|
var IdContent = ({ config, manager: externalManager, onFinish, onError }) => {
|
|
944
940
|
usePreloadDisplayFont();
|
|
945
941
|
const { t } = useTranslation();
|
|
@@ -1019,7 +1015,7 @@ var IdContent = ({ config, manager: externalManager, onFinish, onError }) => {
|
|
|
1019
1015
|
});
|
|
1020
1016
|
return null;
|
|
1021
1017
|
};
|
|
1022
|
-
var
|
|
1018
|
+
var IdWithLocalConfig = ({ config, manager, onFinish, onError }) => {
|
|
1023
1019
|
return /* @__PURE__ */ u(IncodeComponent, { children: config || manager ? /* @__PURE__ */ u(IdContent, {
|
|
1024
1020
|
config,
|
|
1025
1021
|
manager,
|
|
@@ -1027,6 +1023,7 @@ var Id = ({ config, manager, onFinish, onError }) => {
|
|
|
1027
1023
|
onError
|
|
1028
1024
|
}) : null });
|
|
1029
1025
|
};
|
|
1026
|
+
var Id = withStandaloneModuleBootstrap(IdWithLocalConfig, "ID", { supportsExternalManager: true });
|
|
1030
1027
|
registerIncodeModuleElement(Id, "incode-id");
|
|
1031
1028
|
//#endregion
|
|
1032
1029
|
export { Id };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { v as u } from "../vendor-preact-DThS2ZQ_.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as ExpiredId } from "../expiredId-
|
|
6
|
-
import { t as registerIncodeModuleElement } from "../incodeModule-
|
|
2
|
+
import { g as useManager, m as useModuleTerminalCallbacks } from "../hooks-Bl4BccV8.js";
|
|
3
|
+
import { t as Spinner } from "../spinner-YXqSOUqg.js";
|
|
4
|
+
import { t as IncodeComponent } from "../incodeComponent-DHbfYA-r.js";
|
|
5
|
+
import { t as ExpiredId } from "../expiredId-CDxPLhiW.js";
|
|
6
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-BiwGYtcv.js";
|
|
7
7
|
import { createIdVerificationManager } from "@incodetech/core/id-verification";
|
|
8
8
|
//#region src/modules/id-verification/id-verification.tsx
|
|
9
9
|
var IdVerificationContent = ({ config, manager: externalManager, onFinish }) => {
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as useTranslation } from "./uiConfig-DSGyRMSC.js";
|
|
2
2
|
import { d as T, v as u } from "./vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import "./extensibility-
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { n as getRequiredHintMode, t as getFieldHint } from "./requiredLabelHint-DmD8ZCH-.js";
|
|
3
|
+
import { g as useManager, i as Page, m as useModuleTerminalCallbacks, t as withStandaloneModuleBootstrap } from "./hooks-Bl4BccV8.js";
|
|
4
|
+
import { r as Button } from "./incode-logo-DasIBJw8.js";
|
|
5
|
+
import { t as IncodeComponent } from "./incodeComponent-DHbfYA-r.js";
|
|
6
|
+
import "./extensibility-DMroM1OU.js";
|
|
7
|
+
import { t as VerificationResult } from "./verificationResult-4X7V8KzA.js";
|
|
8
|
+
import { t as InputComposed } from "./inputComposed-C1Z4OxHI.js";
|
|
9
|
+
import { t as RadioGroupComposed } from "./radioGroupComposed-YO_U82bM.js";
|
|
10
|
+
import { t as DateInputComposed } from "./dateInputComposed-BBgQB4tl.js";
|
|
11
|
+
import { t as registerIncodeModuleElement } from "./incodeModule-BiwGYtcv.js";
|
|
12
|
+
import { n as getRequiredHintMode, t as getFieldHint } from "./requiredLabelHint-Dx0WS2cR.js";
|
|
14
13
|
import { createIdOcrManager, getOcrFields } from "@incodetech/core/id-ocr";
|
|
15
14
|
//#region src/modules/id-ocr/idOcrForm.tsx
|
|
16
15
|
var TEXT_FIELD_COMPONENTS = {
|
|
@@ -131,11 +130,12 @@ var IdOcrContent = ({ config, manager: externalManager, onFinish }) => {
|
|
|
131
130
|
});
|
|
132
131
|
return null;
|
|
133
132
|
};
|
|
134
|
-
var
|
|
133
|
+
var IdOcrWithLocalConfig = ({ config, manager, onFinish }) => /* @__PURE__ */ u(IncodeComponent, { children: config ? /* @__PURE__ */ u(IdOcrContent, {
|
|
135
134
|
config,
|
|
136
135
|
manager,
|
|
137
136
|
onFinish
|
|
138
137
|
}) : null });
|
|
138
|
+
var IdOcr = withStandaloneModuleBootstrap(IdOcrWithLocalConfig, "ID_OCR", { supportsExternalManager: true });
|
|
139
139
|
registerIncodeModuleElement(IdOcr, "incode-id-ocr");
|
|
140
140
|
//#endregion
|
|
141
141
|
export { IdOcr };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as useTranslation } from "../uiConfig-DSGyRMSC.js";
|
|
2
2
|
import { _ as y, v as u } from "../vendor-preact-DThS2ZQ_.js";
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as registerIncodeModuleElement } from "../incodeModule-Bgg06vwW.js";
|
|
3
|
+
import { g as useManager, i as Page, m as useModuleTerminalCallbacks } from "../hooks-Bl4BccV8.js";
|
|
4
|
+
import { t as Spinner } from "../spinner-YXqSOUqg.js";
|
|
5
|
+
import { r as Button } from "../incode-logo-DasIBJw8.js";
|
|
6
|
+
import { t as IncodeComponent } from "../incodeComponent-DHbfYA-r.js";
|
|
7
|
+
import { t as registerIncodeModuleElement } from "../incodeModule-BiwGYtcv.js";
|
|
9
8
|
import { SCAN_NEW_DOCUMENT, createIdentityReuseManager } from "@incodetech/core/identity-reuse";
|
|
10
9
|
//#region src/modules/identity-reuse/identity-reuse.tsx
|
|
11
10
|
/**
|
|
@@ -1,4 +1,67 @@
|
|
|
1
|
+
import { a as D, v as u, x as k } from "./vendor-preact-DThS2ZQ_.js";
|
|
2
|
+
import { n as LoadingIcon, r as cn } from "./spacer-I8ILMQiA.js";
|
|
3
|
+
//#region src/shared/button/button.tsx
|
|
4
|
+
var LOADER_SIZE = 30;
|
|
5
|
+
var variantClass = {
|
|
6
|
+
primary: "IncodeButtonPrimary",
|
|
7
|
+
secondary: "IncodeButtonSecondary",
|
|
8
|
+
link: "IncodeButtonLink"
|
|
9
|
+
};
|
|
10
|
+
var sizeClass = {
|
|
11
|
+
L: "IncodeButtonL",
|
|
12
|
+
M: "IncodeButtonM",
|
|
13
|
+
S: "IncodeButtonS",
|
|
14
|
+
inline: "IncodeButtonInline"
|
|
15
|
+
};
|
|
16
|
+
var Button = D((props, ref) => {
|
|
17
|
+
const { isLoading = false, variant = "primary", size = "L", icon, class: className, type = "button", children, disabled, ...rest } = props;
|
|
18
|
+
const iconOnly = !children && !!icon;
|
|
19
|
+
const showLoader = isLoading && size === "L";
|
|
20
|
+
const renderContent = () => {
|
|
21
|
+
if (showLoader) return /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(LoadingIcon, { size: LOADER_SIZE }), children ? /* @__PURE__ */ u("span", {
|
|
22
|
+
class: "IncodeButtonLoadingLabel",
|
|
23
|
+
children
|
|
24
|
+
}) : null] });
|
|
25
|
+
if (iconOnly) return icon;
|
|
26
|
+
if (icon) return /* @__PURE__ */ u(k, { children: [children, icon] });
|
|
27
|
+
return children;
|
|
28
|
+
};
|
|
29
|
+
return /* @__PURE__ */ u("button", {
|
|
30
|
+
ref,
|
|
31
|
+
...rest,
|
|
32
|
+
class: cn("IncodeButton", variantClass[variant], sizeClass[size], showLoader ? "IncodeButtonLoading" : "", iconOnly ? "IncodeButtonIconOnly" : "", className),
|
|
33
|
+
disabled: disabled || showLoader,
|
|
34
|
+
"aria-busy": showLoader || void 0,
|
|
35
|
+
type,
|
|
36
|
+
children: renderContent()
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/shared/icons/errorIcon.tsx
|
|
41
|
+
var ErrorIcon = ({ size = 32 }) => {
|
|
42
|
+
return /* @__PURE__ */ u("svg", {
|
|
43
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
44
|
+
width: size,
|
|
45
|
+
height: size,
|
|
46
|
+
viewBox: "0 0 64 64",
|
|
47
|
+
fill: "none",
|
|
48
|
+
class: "IncodeErrorIcon",
|
|
49
|
+
"aria-hidden": "true",
|
|
50
|
+
children: [/* @__PURE__ */ u("path", {
|
|
51
|
+
"fill-rule": "evenodd",
|
|
52
|
+
"clip-rule": "evenodd",
|
|
53
|
+
d: "M32 6.66669C18.032 6.66669 6.66669 18.0294 6.66669 32C6.66669 45.968 18.032 57.3334 32 57.3334C45.968 57.3334 57.3334 45.968 57.3334 32C57.3334 18.0294 45.968 6.66669 32 6.66669Z",
|
|
54
|
+
fill: "var(--icon-status-negative)"
|
|
55
|
+
}), /* @__PURE__ */ u("path", {
|
|
56
|
+
"fill-rule": "evenodd",
|
|
57
|
+
"clip-rule": "evenodd",
|
|
58
|
+
d: "M39.6426 39.6368C39.2533 40.0261 38.7413 40.2235 38.2293 40.2235C37.7146 40.2235 37.2053 40.0261 36.8133 39.6368L31.9973 34.8181L27.1946 39.6208C26.4133 40.4021 25.1467 40.4021 24.3653 39.6208C23.5867 38.8395 23.5867 37.5755 24.3653 36.7941L29.168 31.9915L24.3627 27.1835C23.5813 26.4021 23.5813 25.1381 24.3627 24.3568C25.144 23.5755 26.408 23.5755 27.1893 24.3568L31.9946 29.1621L36.8 24.3595C37.5813 23.5781 38.8453 23.5781 39.6266 24.3595C40.408 25.1381 40.408 26.4048 39.6266 27.1861L34.824 31.9915L39.6426 36.8075C40.424 37.5888 40.424 38.8555 39.6426 39.6368Z",
|
|
59
|
+
fill: "var(--icon-neutral-0)"
|
|
60
|
+
})]
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
//#endregion
|
|
1
64
|
//#region src/shared/page/incode-logo.svg
|
|
2
65
|
var incode_logo_default = "data:image/svg+xml,%3csvg%20width='76'%20height='20'%20viewBox='0%200%2076%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M40.1687%206.01811C42.2312%206.01811%2043.7927%206.59655%2044.8446%207.76024C45.8919%208.91831%2046.4126%2010.5865%2046.4126%2012.7583C46.4126%2014.93%2045.8748%2016.6105%2044.794%2017.7944C43.7102%2018.9815%2042.1729%2019.5735%2040.1937%2019.5735C38.1479%2019.5735%2036.5973%2018.99%2035.5546%2017.8187L35.4273%2017.6701C34.4729%2016.5101%2033.9984%2014.871%2033.9984%2012.7583C33.9984%208.28671%2036.0703%206.01811%2040.1687%206.01811ZM69.1127%206.01781C71.1144%206.01781%2072.5953%206.66904%2073.5373%207.97333C74.4288%209.2077%2074.8837%2010.9053%2074.9066%2013.0629L74.9058%2013.5242H66.1149C66.2174%2014.6334%2066.5602%2015.4734%2067.141%2016.0538C67.7488%2016.662%2068.6195%2016.9679%2069.7639%2016.9679C70.5188%2016.9679%2071.2373%2016.8742%2071.921%2016.6862C72.6048%2016.4995%2073.2105%2016.2581%2073.735%2015.9646L73.9814%2015.8267V18.666L73.8821%2018.7093C72.5607%2019.286%2071.0464%2019.5732%2069.3379%2019.5732C67.4088%2019.5732%2065.8853%2018.986%2064.7769%2017.8093C63.6699%2016.6348%2063.1183%2014.9722%2063.1183%2012.833C63.1183%2010.6451%2063.6389%208.96055%2064.6862%207.78517C65.7359%206.60632%2067.2157%206.01781%2069.1127%206.01781ZM60.3976%201.06738V16.3832C60.3976%2017.0998%2060.0996%2017.7092%2059.5124%2018.198C58.9425%2018.6724%2058.2282%2019.0207%2057.3718%2019.2435C56.5257%2019.4635%2055.6531%2019.5731%2054.7534%2019.5731C52.9298%2019.5731%2051.4237%2019.056%2050.2406%2018.0202C49.0485%2016.9752%2048.4588%2015.1678%2048.4588%2012.6072C48.4588%2010.5545%2048.9627%208.9421%2049.9753%207.77411C50.9938%206.60175%2052.4982%206.01774%2054.4782%206.01774C54.9416%206.01774%2055.4735%206.07665%2056.0742%206.19449C56.582%206.296%2057.0453%206.43849%2057.4648%206.62252V1.06738H60.3976ZM27.911%206.04223C29.2828%206.04223%2030.5881%206.29619%2031.8264%206.80393L31.9291%206.84604V9.55797L31.6992%209.46109C30.4503%208.93473%2029.3127%208.67257%2028.2863%208.67257C27.0102%208.67257%2026.0684%208.98809%2025.4521%209.61162C24.8366%2010.2352%2024.5242%2011.2397%2024.5242%2012.6331C24.5242%2014.0959%2024.8298%2015.1535%2025.4314%2015.8092C26.029%2016.4619%2027.002%2016.7923%2028.3613%2016.7923C29.4706%2016.7923%2030.589%2016.5234%2031.7164%2015.9842L31.9534%2015.8708V18.5903L31.8552%2018.634C30.6349%2019.1773%2029.3283%2019.4483%2027.936%2019.4483C26.2154%2019.4483%2024.7637%2018.9753%2023.5868%2018.0285L23.4123%2017.8829L23.2796%2017.7636C22.1516%2016.7067%2021.5914%2015.0592%2021.5914%2012.8332C21.5914%2010.4557%2022.186%208.72379%2023.3849%207.64725C24.5757%206.57726%2026.0871%206.04223%2027.911%206.04223ZM4.11045%206.39262L4.13613%2019.1987H1.15293V6.39262H4.11045ZM13.5766%206.0423C15.365%206.0423%2016.6948%206.41948%2017.5636%207.18368C18.4372%207.95269%2018.8706%209.13902%2018.8706%2010.7331V19.1984H15.9127V11.0838C15.9127%209.42945%2014.9988%208.62337%2013.1013%208.62337C12.3086%208.62337%2011.5458%208.73548%2010.8133%208.95959L10.5401%209.04888V19.1984H7.58147V7.40579L7.67177%207.35974C8.43481%206.97061%209.36013%206.65415%2010.4506%206.40815L10.8116%206.33134C11.7692%206.13867%2012.6905%206.0423%2013.5766%206.0423ZM40.1687%208.5477C39.0014%208.5477%2038.1814%208.89722%2037.6896%209.59114C37.1869%2010.3012%2036.932%2011.3564%2036.932%2012.7583C36.932%2014.1602%2037.1948%2015.223%2037.7142%2015.9499C38.2224%2016.6613%2039.0345%2017.0182%2040.1687%2017.0182C42.3685%2017.0182%2043.4555%2015.6249%2043.4555%2012.7583C43.4555%2011.325%2043.1888%2010.2632%2042.6636%209.57056C42.1472%208.89036%2041.3203%208.5477%2040.1687%208.5477ZM54.8535%208.59807C52.5835%208.59807%2051.4659%209.9271%2051.4659%2012.6579C51.4659%2014.0276%2051.7253%2015.0917%2052.2391%2015.8527C52.7378%2016.5945%2053.6185%2016.9678%2054.9035%2016.9678C55.6556%2016.9678%2056.2834%2016.8792%2056.7876%2016.7028C57.2156%2016.553%2057.4279%2016.378%2057.4604%2016.186L57.4648%2016.1332V9.25404L57.2778%209.15611C56.9611%208.99923%2056.6189%208.87406%2056.2512%208.78123C55.7705%208.65917%2055.3045%208.59807%2054.8535%208.59807ZM69.0377%208.49888C68.192%208.49888%2067.5412%208.71795%2067.0743%209.15366C66.6631%209.5374%2066.3731%2010.1684%2066.2101%2011.0498L66.1771%2011.2425H71.8784L71.8489%2011.0453C71.7111%2010.208%2071.4421%209.58986%2071.0461%209.18626C70.5969%208.72981%2069.9303%208.49888%2069.0377%208.49888ZM4.21085%201.94156V4.64764H1.07715V1.94156H4.21085Z'%20fill='%23006AFF'/%3e%3c/svg%3e";
|
|
3
66
|
//#endregion
|
|
4
|
-
export { incode_logo_default as t };
|
|
67
|
+
export { ErrorIcon as n, Button as r, incode_logo_default as t };
|