@incodetech/core 0.0.0-dev-20260819-0bebbdc2 → 0.0.0-dev-20260819-1c04894b
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/{BrowserDiagnosticsCryptoProvider-6aqaVS6s.esm.js → BrowserDiagnosticsCryptoProvider-BzL_V7yb.esm.js} +1 -1
- package/dist/{IFeatureManagementCapability-DdEUp6tB.d.ts → IFeatureManagementCapability-De8wpbGh.d.ts} +2 -0
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +1 -1
- package/dist/{antifraudManager-B8Plzf7a.esm.js → antifraudManager-BMZvuxv0.esm.js} +1 -1
- package/dist/{apiError-C8O9Jo18.esm.js → apiError-jP0cswDJ.esm.js} +1 -1
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BDwG2MBg.esm.js → authenticationManager-CQsYqM6S.esm.js} +3 -3
- package/dist/{authenticationStateMachine-B_k1nxxF.esm.js → authenticationStateMachine-jNp2tJ6j.esm.js} +2 -2
- package/dist/certificate-issuance.esm.js +1 -1
- package/dist/{certificateIssuanceManager-Ci4symEA.esm.js → certificateIssuanceManager-buCaNcxx.esm.js} +1 -1
- package/dist/consent.esm.js +1 -1
- package/dist/{consentManager-BApTlfA0.esm.js → consentManager-DyBXdkFn.esm.js} +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-OmYvyung.esm.js → crossDocumentDataMatchManager-pNkutndd.esm.js} +1 -1
- package/dist/curp-validation.esm.js +1 -1
- package/dist/{curpValidationManager-UZxcrsrz.esm.js → curpValidationManager-DEesnLee.esm.js} +1 -1
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +1 -1
- package/dist/{customFieldsManager-6mtAzlY2.esm.js → customFieldsManager-Dgy3Hi0q.esm.js} +1 -1
- package/dist/{customWatchlistManager-BgS0M1gL.esm.js → customWatchlistManager-BlJTcPKK.esm.js} +1 -1
- package/dist/{deepsightLoader-DZOieIHK.esm.js → deepsightLoader-BDlGUqao.esm.js} +3 -3
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-capture.esm.js +1 -1
- package/dist/document-upload.d.ts +4 -4
- package/dist/document-upload.esm.js +1 -1
- package/dist/{documentCaptureManager-D7A4k-GE.esm.js → documentCaptureManager-2FoxNacZ.esm.js} +1 -1
- package/dist/{documentCaptureManager-B3t0ydtg.d.ts → documentCaptureManager-CIQSsmZe.d.ts} +4 -4
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-CA2tDe_k.esm.js → dynamicFormsManager-f7Y9kUiR.esm.js} +2 -2
- package/dist/{dynamicFormsStateMachine-B4vHfk-3.esm.js → dynamicFormsStateMachine-CDmy6eXI.esm.js} +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-DCQJu92m.esm.js → ekybManager-DQ_SfoWF.esm.js} +2 -2
- package/dist/{ekybStateMachine-DcNX5OXv.esm.js → ekybStateMachine-ZzqtUkd-.esm.js} +1 -1
- package/dist/ekyc.esm.js +1 -1
- package/dist/{ekycManager-oTstTJuL.esm.js → ekycManager-CasdX1Ou.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-C8pORqlF.esm.js → electronicSignatureManager-D633yGbz.esm.js} +2 -2
- package/dist/email.esm.js +1 -1
- package/dist/{emailManager-tE-YvNtS.esm.js → emailManager-NLzaP12q.esm.js} +1 -1
- package/dist/{events-CxfNJVZW.esm.js → events-DYiyoSlx.esm.js} +5 -6
- package/dist/events.d.ts +11 -9
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +3 -2
- package/dist/extensibility.esm.js +32 -31
- package/dist/face-match.esm.js +1 -1
- package/dist/{faceCaptureManagerFactory-DccAZCel.esm.js → faceCaptureManagerFactory-CPf4an47.esm.js} +2 -2
- package/dist/{faceCaptureSetup-eQ57H0LP.esm.js → faceCaptureSetup-XzhL3jrY.esm.js} +2 -2
- package/dist/{faceMatchManager-BXp2WUT-.esm.js → faceMatchManager-DEVhhdf4.esm.js} +1 -1
- package/dist/{feature-management-DS_Nj5Gg.esm.js → feature-management-CkGxQul1.esm.js} +31 -40
- package/dist/feature-management.d.ts +41 -33
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-DhnYdYZ2.esm.js → fieldComparisonManager-BRYsIi34.esm.js} +1 -1
- package/dist/fiscal-qr.d.ts +2 -56
- package/dist/fiscal-qr.esm.js +2 -308
- package/dist/fiscalQrManager-CHcBJwUM.d.ts +68 -0
- package/dist/fiscalQrManager-DEgB0YYR.esm.js +311 -0
- package/dist/flow.esm.js +4 -4
- package/dist/{flowCompletionService-C6llWAAo.esm.js → flowCompletionService-YG3VycUU.esm.js} +1 -1
- package/dist/{flowServices-BwFbhVDV.esm.js → flowServices-C_Z7Pjvd.esm.js} +4 -4
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-DIiUsJfx.esm.js → geolocationManager-AmYuocQ3.esm.js} +2 -2
- package/dist/{geolocationStateMachine-C0RXwD9o.esm.js → geolocationStateMachine-DSe6SL-7.esm.js} +1 -1
- package/dist/government-validation.esm.js +1 -1
- package/dist/{governmentValidationManager-DeF0Wcf5.esm.js → governmentValidationManager-Dheo7fh_.esm.js} +1 -1
- package/dist/home.esm.js +1 -1
- package/dist/id-ocr.esm.js +1 -1
- package/dist/id-selfie-flow.esm.js +6 -6
- package/dist/id-verification.esm.js +1 -1
- package/dist/id.esm.js +5 -5
- package/dist/{idCaptureManager-NBeR-cgG.esm.js → idCaptureManager-CykSLyn3.esm.js} +3 -3
- package/dist/{idCaptureServices-p3NtcUxw.esm.js → idCaptureServices-DoVKk86g.esm.js} +7 -7
- package/dist/{idCaptureStateMachine-BKbLET7m.esm.js → idCaptureStateMachine-D4UGjQNy.esm.js} +10 -10
- package/dist/{idOcrManager-CvJZhmBR.esm.js → idOcrManager-D_2k-6Vv.esm.js} +1 -1
- package/dist/{idVerificationManager-CduNXhWd.esm.js → idVerificationManager-DdlrWSSB.esm.js} +1 -1
- package/dist/identity-reuse.esm.js +1 -1
- package/dist/{identityReuseManager-D5vXknnJ.esm.js → identityReuseManager-CzLZNgdh.esm.js} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-1m1VJ3Q4.esm.js → invokeOnCaptureCallback-GpvMuz9o.esm.js} +1 -1
- package/dist/mandatory-consent.esm.js +1 -1
- package/dist/{mandatoryConsentManager-BeELm1zS.esm.js → mandatoryConsentManager-CEIkNukS.esm.js} +1 -1
- package/dist/{onDeviceFaceResults-DFirNde6.esm.js → onDeviceFaceResults-BYl2hbuy.esm.js} +3 -3
- package/dist/personhood.esm.js +4 -4
- package/dist/phone.esm.js +1 -1
- package/dist/{phoneManager-Cpiai2IM.esm.js → phoneManager-B_03mKyi.esm.js} +1 -1
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-Cs-zgcly.esm.js → recordingService-DxbuJNac.esm.js} +1 -1
- package/dist/redirect-to-mobile.esm.js +1 -1
- package/dist/{redirectToMobileManager-C0dfc7f6.esm.js → redirectToMobileManager-Bgo6eqri.esm.js} +1 -1
- package/dist/{runChildModule-CJBpdJ9L.esm.js → runChildModule-CkKzUrQR.esm.js} +2 -2
- package/dist/sdkVersion-_0-FMgKd.esm.js +4 -0
- package/dist/selfie.esm.js +6 -6
- package/dist/{selfieManager-C6nSxXbC.esm.js → selfieManager-DhPMKYxo.esm.js} +3 -3
- package/dist/{selfieStateMachine-CNBYEUhy.esm.js → selfieStateMachine-DkECDdim.esm.js} +2 -2
- package/dist/{session-BpBMD2qe.esm.js → session-BoCg9kCK.esm.js} +4 -4
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-CNBU6Zmm.esm.js → sessionInitializer-DtcaH34N.esm.js} +5 -4
- package/dist/{setup-BwA7zG5D.d.ts → setup-CUHgyXuN.d.ts} +13 -1
- package/dist/{setup-MP1cPm8J.esm.js → setup-Ccd6xV05.esm.js} +7 -6
- package/dist/signature.esm.js +1 -1
- package/dist/{signatureManager-DdPgcmou.esm.js → signatureManager-DoACIR02.esm.js} +1 -1
- package/dist/trueSight-Bl-iCeAC.esm.js +1 -0
- package/dist/{trueSightService-7S24UFNk.esm.js → trueSightService-CTZ8wqNF.esm.js} +4 -6
- package/dist/trust-graph.esm.js +1 -1
- package/dist/video-selfie.esm.js +3 -3
- package/dist/{videoSelfieCameraWarmer-BIRjIgms.esm.js → videoSelfieCameraWarmer-DxxDSvmQ.esm.js} +2 -2
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +1 -1
- package/dist/watchlist-for-business.esm.js +1 -1
- package/dist/watchlist.esm.js +1 -1
- package/dist/{watchlistManager-CjSMmbyq.esm.js → watchlistManager-CPBZnFYj.esm.js} +1 -1
- package/dist/workflow.d.ts +4 -4
- package/dist/workflow.esm.js +16 -16
- package/package.json +1 -1
- package/dist/trueSight-B42F3cH3.esm.js +0 -1
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
|
|
2
|
+
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
3
|
+
import "./Actor-iTq7YY48.js";
|
|
4
|
+
//#region src/modules/fiscal-qr/types.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Configuration options for the Fiscal QR module.
|
|
7
|
+
*
|
|
8
|
+
* The backend currently sends an empty module configuration for this step.
|
|
9
|
+
*/
|
|
10
|
+
type FiscalQrConfig = Record<string, never>;
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/modules/fiscal-qr/fiscalQrStateMachine.d.ts
|
|
13
|
+
declare const fiscalQrMachine: any;
|
|
14
|
+
type FiscalQrMachine = typeof fiscalQrMachine;
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/modules/fiscal-qr/fiscalQrActor.d.ts
|
|
17
|
+
type FiscalQrActor = ActorRefFrom<FiscalQrMachine>;
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/modules/fiscal-qr/fiscalQrManager.d.ts
|
|
20
|
+
type FiscalQrIdleState = {
|
|
21
|
+
status: 'idle';
|
|
22
|
+
};
|
|
23
|
+
type FiscalQrScanningState = {
|
|
24
|
+
status: 'scanning';
|
|
25
|
+
stream?: MediaStream;
|
|
26
|
+
error?: string;
|
|
27
|
+
};
|
|
28
|
+
type FiscalQrCapturingState = {
|
|
29
|
+
status: 'capturing';
|
|
30
|
+
stream?: MediaStream;
|
|
31
|
+
};
|
|
32
|
+
type FiscalQrSuccessState = {
|
|
33
|
+
status: 'success';
|
|
34
|
+
stream?: MediaStream;
|
|
35
|
+
};
|
|
36
|
+
type FiscalQrProcessingState = {
|
|
37
|
+
status: 'processing';
|
|
38
|
+
};
|
|
39
|
+
type FiscalQrErrorState = {
|
|
40
|
+
status: 'error';
|
|
41
|
+
error?: string;
|
|
42
|
+
attempts: number;
|
|
43
|
+
stream?: MediaStream;
|
|
44
|
+
};
|
|
45
|
+
type FiscalQrVerifiedState = {
|
|
46
|
+
status: 'verified';
|
|
47
|
+
};
|
|
48
|
+
type FiscalQrFinishedState = {
|
|
49
|
+
status: 'finished';
|
|
50
|
+
};
|
|
51
|
+
type FiscalQrState = FiscalQrIdleState | FiscalQrScanningState | FiscalQrCapturingState | FiscalQrSuccessState | FiscalQrProcessingState | FiscalQrErrorState | FiscalQrVerifiedState | FiscalQrFinishedState;
|
|
52
|
+
declare function createFiscalQrManager(options: {
|
|
53
|
+
config: FiscalQrConfig;
|
|
54
|
+
}): Manager<FiscalQrState> & {
|
|
55
|
+
load(): void;
|
|
56
|
+
continue(): void;
|
|
57
|
+
skip(): void;
|
|
58
|
+
reset(): void;
|
|
59
|
+
};
|
|
60
|
+
declare function createFiscalQrManagerFromActor(actor: FiscalQrActor): Manager<FiscalQrState> & {
|
|
61
|
+
load(): void;
|
|
62
|
+
continue(): void;
|
|
63
|
+
skip(): void;
|
|
64
|
+
reset(): void;
|
|
65
|
+
};
|
|
66
|
+
type FiscalQrManager = ReturnType<typeof createFiscalQrManager>;
|
|
67
|
+
//#endregion
|
|
68
|
+
export { FiscalQrActor as a, createFiscalQrManagerFromActor as i, FiscalQrState as n, fiscalQrMachine as o, createFiscalQrManager as r, FiscalQrConfig as s, FiscalQrManager as t };
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
|
+
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
+
import { n as eventModuleNames, o as createManagerInstrumentation, v as addEvent } from "./events-DYiyoSlx.esm.js";
|
|
4
|
+
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
5
|
+
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
6
|
+
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
7
|
+
import { a as stopCameraStream } from "./camera-_2sXMXiF.esm.js";
|
|
8
|
+
import { n as getBackCameraStream } from "./backCameraStream-BMGalshK.esm.js";
|
|
9
|
+
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
10
|
+
import { BrowserQRCodeReader } from "@zxing/browser";
|
|
11
|
+
//#region src/modules/fiscal-qr/fiscalQrConstants.ts
|
|
12
|
+
const SUCCESS_DISPLAY_MS = 1500;
|
|
13
|
+
const PROCESSING_DISPLAY_MS = 3e3;
|
|
14
|
+
const ERROR_DISPLAY_MS = 3e3;
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/modules/fiscal-qr/qrCodeDecoder.ts
|
|
17
|
+
function createQrCodeDecoder() {
|
|
18
|
+
const reader = new BrowserQRCodeReader();
|
|
19
|
+
return { decode(canvas) {
|
|
20
|
+
try {
|
|
21
|
+
const text = reader.decodeFromCanvas(canvas.canvas).getText().trim();
|
|
22
|
+
return text.length > 0 ? text : void 0;
|
|
23
|
+
} catch {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
} };
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region src/modules/fiscal-qr/fiscalQrUtils.ts
|
|
30
|
+
/**
|
|
31
|
+
* Continuously decodes QR codes from an existing frame capturer until the first
|
|
32
|
+
* hit.
|
|
33
|
+
*
|
|
34
|
+
* When `applyFocusDelay` is true, waits {@link INITIAL_FOCUS_DELAY_MS} (camera
|
|
35
|
+
* focus) before the first attempt; otherwise scans immediately. Either way it
|
|
36
|
+
* then retries every {@link SCAN_INTERVAL_MS}. `onDetected` fires at most once.
|
|
37
|
+
*
|
|
38
|
+
* Takes a shared {@link StreamCanvasCapture} rather than a stream on purpose:
|
|
39
|
+
* the capturer (and its hidden video) is created once for the camera session
|
|
40
|
+
* and reused across scan restarts, so re-entering scanning never spins up a new
|
|
41
|
+
* stream consumer — which would briefly disturb the visible camera feed.
|
|
42
|
+
*
|
|
43
|
+
* @returns a cleanup function that stops the scan loop. It does NOT dispose the
|
|
44
|
+
* capturer or stop the camera — the caller owns those lifecycles.
|
|
45
|
+
*/
|
|
46
|
+
function startQrScan(frameCapturer, onDetected, applyFocusDelay = true) {
|
|
47
|
+
const decoder = createQrCodeDecoder();
|
|
48
|
+
const timer = BrowserTimerProvider.getInstance();
|
|
49
|
+
let disposed = false;
|
|
50
|
+
let hasDetected = false;
|
|
51
|
+
let scanInterval;
|
|
52
|
+
let focusDelay;
|
|
53
|
+
const scan = () => {
|
|
54
|
+
if (disposed || hasDetected) return;
|
|
55
|
+
const canvas = frameCapturer.getLatestCanvas();
|
|
56
|
+
if (!canvas) return;
|
|
57
|
+
try {
|
|
58
|
+
const link = decoder.decode(canvas);
|
|
59
|
+
if (link && !disposed && !hasDetected) {
|
|
60
|
+
hasDetected = true;
|
|
61
|
+
onDetected(link);
|
|
62
|
+
}
|
|
63
|
+
} finally {
|
|
64
|
+
canvas.dispose();
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
const beginScanning = () => {
|
|
68
|
+
scan();
|
|
69
|
+
scanInterval = timer.setInterval(scan, 500);
|
|
70
|
+
};
|
|
71
|
+
if (applyFocusDelay) focusDelay = timer.setTimeout(beginScanning, 800);
|
|
72
|
+
else beginScanning();
|
|
73
|
+
return () => {
|
|
74
|
+
disposed = true;
|
|
75
|
+
if (focusDelay !== void 0) timer.clearTimeout(focusDelay);
|
|
76
|
+
if (scanInterval !== void 0) timer.clearInterval(scanInterval);
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region src/modules/fiscal-qr/fiscalQrServices.ts
|
|
81
|
+
/**
|
|
82
|
+
* Submits a scanned Fiscal QR link to the backend.
|
|
83
|
+
*
|
|
84
|
+
* Throws when the request fails OR when the backend rejects the link
|
|
85
|
+
* (`success === false`), so callers can retry/skip — matching the legacy SDK
|
|
86
|
+
* which only advanced when `postResp.success` was truthy.
|
|
87
|
+
*/
|
|
88
|
+
async function submitFiscalQrLink(params, signal) {
|
|
89
|
+
const res = await api.post(endpoints.addFiscalQrLink, params, { signal });
|
|
90
|
+
if (!res.ok) throw new Error(`POST failed: ${res.status}`);
|
|
91
|
+
if (res.data?.success !== true) throw new Error("Fiscal QR link was not accepted");
|
|
92
|
+
return res.data;
|
|
93
|
+
}
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region src/modules/fiscal-qr/fiscalQrStateMachine.ts
|
|
96
|
+
const fiscalQrMachine = setup({
|
|
97
|
+
types: {
|
|
98
|
+
context: {},
|
|
99
|
+
events: {},
|
|
100
|
+
input: {}
|
|
101
|
+
},
|
|
102
|
+
actors: {
|
|
103
|
+
initCamera: fromPromise(async () => {
|
|
104
|
+
const { stream } = await getBackCameraStream(void 0);
|
|
105
|
+
return {
|
|
106
|
+
stream,
|
|
107
|
+
frameCapturer: new StreamCanvasCapture(stream, { fps: 10 })
|
|
108
|
+
};
|
|
109
|
+
}),
|
|
110
|
+
submitFiscalQrLink: fromPromise(async ({ input, signal }) => {
|
|
111
|
+
await submitFiscalQrLink({ poaUrl: input.link }, signal);
|
|
112
|
+
}),
|
|
113
|
+
detectQrCode: fromCallback(({ input, sendBack }) => {
|
|
114
|
+
if (!input.frameCapturer) return () => {};
|
|
115
|
+
return startQrScan(input.frameCapturer, (link) => {
|
|
116
|
+
sendBack({
|
|
117
|
+
type: "QR_DETECTED",
|
|
118
|
+
link
|
|
119
|
+
});
|
|
120
|
+
}, input.applyFocusDelay);
|
|
121
|
+
})
|
|
122
|
+
},
|
|
123
|
+
actions: {
|
|
124
|
+
setLink: assign(({ event }) => {
|
|
125
|
+
if (event.type !== "QR_DETECTED") return {};
|
|
126
|
+
return {
|
|
127
|
+
link: event.link,
|
|
128
|
+
error: void 0
|
|
129
|
+
};
|
|
130
|
+
}),
|
|
131
|
+
setError: assign(({ event }) => ({ error: event.error?.message ?? "Submit failed" })),
|
|
132
|
+
setStream: assign(({ event }) => {
|
|
133
|
+
const { stream, frameCapturer } = event.output;
|
|
134
|
+
return {
|
|
135
|
+
stream,
|
|
136
|
+
frameCapturer,
|
|
137
|
+
error: void 0
|
|
138
|
+
};
|
|
139
|
+
}),
|
|
140
|
+
stopStream: assign(({ context }) => {
|
|
141
|
+
context.frameCapturer?.dispose();
|
|
142
|
+
if (context.stream) stopCameraStream(context.stream);
|
|
143
|
+
return {
|
|
144
|
+
stream: void 0,
|
|
145
|
+
frameCapturer: void 0
|
|
146
|
+
};
|
|
147
|
+
}),
|
|
148
|
+
incrementAttempts: assign(({ context }) => ({ attempts: context.attempts + 1 })),
|
|
149
|
+
resetSession: assign(() => ({
|
|
150
|
+
link: "",
|
|
151
|
+
error: void 0,
|
|
152
|
+
attempts: 0
|
|
153
|
+
})),
|
|
154
|
+
trackSuccess: () => addEvent({
|
|
155
|
+
code: "complete",
|
|
156
|
+
module: eventModuleNames.fiscalQr
|
|
157
|
+
})
|
|
158
|
+
},
|
|
159
|
+
guards: { isMaxAttemptsReached: ({ context }) => context.attempts + 1 >= 3 }
|
|
160
|
+
}).createMachine({
|
|
161
|
+
id: "fiscalQr",
|
|
162
|
+
initial: "idle",
|
|
163
|
+
context: ({ input }) => ({
|
|
164
|
+
config: input.config,
|
|
165
|
+
link: "",
|
|
166
|
+
stream: void 0,
|
|
167
|
+
error: void 0,
|
|
168
|
+
attempts: 0
|
|
169
|
+
}),
|
|
170
|
+
on: { SKIP: ".finished" },
|
|
171
|
+
states: {
|
|
172
|
+
idle: { on: {
|
|
173
|
+
LOAD: "idle",
|
|
174
|
+
CONTINUE: {
|
|
175
|
+
target: "initCamera",
|
|
176
|
+
actions: "resetSession"
|
|
177
|
+
}
|
|
178
|
+
} },
|
|
179
|
+
initCamera: { invoke: {
|
|
180
|
+
id: "initCamera",
|
|
181
|
+
src: "initCamera",
|
|
182
|
+
input: void 0,
|
|
183
|
+
onDone: {
|
|
184
|
+
target: "scanning",
|
|
185
|
+
actions: "setStream"
|
|
186
|
+
},
|
|
187
|
+
onError: {
|
|
188
|
+
target: "scanning",
|
|
189
|
+
actions: "setError"
|
|
190
|
+
}
|
|
191
|
+
} },
|
|
192
|
+
scanning: {
|
|
193
|
+
invoke: {
|
|
194
|
+
id: "detectQrCode",
|
|
195
|
+
src: "detectQrCode",
|
|
196
|
+
input: ({ context }) => ({
|
|
197
|
+
frameCapturer: context.frameCapturer,
|
|
198
|
+
applyFocusDelay: context.attempts === 0
|
|
199
|
+
})
|
|
200
|
+
},
|
|
201
|
+
on: {
|
|
202
|
+
QR_DETECTED: {
|
|
203
|
+
target: "submitting",
|
|
204
|
+
actions: "setLink"
|
|
205
|
+
},
|
|
206
|
+
RESET: {
|
|
207
|
+
target: "idle",
|
|
208
|
+
actions: "stopStream"
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
submitting: { invoke: {
|
|
213
|
+
id: "submitFiscalQrLink",
|
|
214
|
+
src: "submitFiscalQrLink",
|
|
215
|
+
input: ({ context }) => ({ link: context.link }),
|
|
216
|
+
onDone: {
|
|
217
|
+
target: "success",
|
|
218
|
+
actions: "trackSuccess"
|
|
219
|
+
},
|
|
220
|
+
onError: [{
|
|
221
|
+
target: "finished",
|
|
222
|
+
guard: "isMaxAttemptsReached",
|
|
223
|
+
actions: ["incrementAttempts", "setError"]
|
|
224
|
+
}, {
|
|
225
|
+
target: "error",
|
|
226
|
+
actions: ["incrementAttempts", "setError"]
|
|
227
|
+
}]
|
|
228
|
+
} },
|
|
229
|
+
success: { after: { [SUCCESS_DISPLAY_MS]: "processing" } },
|
|
230
|
+
processing: {
|
|
231
|
+
entry: "stopStream",
|
|
232
|
+
after: { [PROCESSING_DISPLAY_MS]: "verified" }
|
|
233
|
+
},
|
|
234
|
+
verified: { after: { [PROCESSING_DISPLAY_MS]: "finished" } },
|
|
235
|
+
error: { after: { [ERROR_DISPLAY_MS]: "scanning" } },
|
|
236
|
+
finished: {
|
|
237
|
+
type: "final",
|
|
238
|
+
entry: "stopStream"
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
//#endregion
|
|
243
|
+
//#region src/modules/fiscal-qr/fiscalQrActor.ts
|
|
244
|
+
/**
|
|
245
|
+
* Creates and starts a Fiscal QR actor.
|
|
246
|
+
* The actor begins in 'idle' state, ready to receive events.
|
|
247
|
+
*/
|
|
248
|
+
function createFiscalQrActor(options) {
|
|
249
|
+
return createActor(fiscalQrMachine, { input: { config: options.config } }).start();
|
|
250
|
+
}
|
|
251
|
+
//#endregion
|
|
252
|
+
//#region src/modules/fiscal-qr/fiscalQrManager.ts
|
|
253
|
+
function mapState(snapshot) {
|
|
254
|
+
const typedSnapshot = snapshot;
|
|
255
|
+
const { stream, error, attempts } = typedSnapshot.context;
|
|
256
|
+
if (typedSnapshot.matches("idle")) return { status: "idle" };
|
|
257
|
+
if (typedSnapshot.matches("initCamera") || typedSnapshot.matches("scanning")) return {
|
|
258
|
+
status: "scanning",
|
|
259
|
+
stream,
|
|
260
|
+
error
|
|
261
|
+
};
|
|
262
|
+
if (typedSnapshot.matches("submitting")) return {
|
|
263
|
+
status: "capturing",
|
|
264
|
+
stream
|
|
265
|
+
};
|
|
266
|
+
if (typedSnapshot.matches("success")) return {
|
|
267
|
+
status: "success",
|
|
268
|
+
stream
|
|
269
|
+
};
|
|
270
|
+
if (typedSnapshot.matches("processing")) return { status: "processing" };
|
|
271
|
+
if (typedSnapshot.matches("verified")) return { status: "verified" };
|
|
272
|
+
if (typedSnapshot.matches("error")) return {
|
|
273
|
+
status: "error",
|
|
274
|
+
error,
|
|
275
|
+
attempts,
|
|
276
|
+
stream
|
|
277
|
+
};
|
|
278
|
+
if (typedSnapshot.matches("finished")) return { status: "finished" };
|
|
279
|
+
return { status: "idle" };
|
|
280
|
+
}
|
|
281
|
+
function createApi({ actor, trackElementClicked }) {
|
|
282
|
+
return {
|
|
283
|
+
load() {
|
|
284
|
+
actor.send({ type: "LOAD" });
|
|
285
|
+
},
|
|
286
|
+
continue() {
|
|
287
|
+
trackElementClicked?.("continue");
|
|
288
|
+
actor.send({ type: "CONTINUE" });
|
|
289
|
+
},
|
|
290
|
+
skip() {
|
|
291
|
+
trackElementClicked?.("skip");
|
|
292
|
+
actor.send({ type: "SKIP" });
|
|
293
|
+
},
|
|
294
|
+
reset() {
|
|
295
|
+
actor.send({ type: "RESET" });
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
function createFiscalQrManager(options) {
|
|
300
|
+
return createFiscalQrManagerFromActor(createFiscalQrActor(options));
|
|
301
|
+
}
|
|
302
|
+
function createFiscalQrManagerFromActor(actor) {
|
|
303
|
+
return createManager({
|
|
304
|
+
actor,
|
|
305
|
+
mapState,
|
|
306
|
+
createApi,
|
|
307
|
+
instrumentation: createManagerInstrumentation(eventModuleNames.fiscalQr)
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
//#endregion
|
|
311
|
+
export { createFiscalQrManagerFromActor as n, fiscalQrMachine as r, createFiscalQrManager as t };
|
package/dist/flow.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { v as addEvent } from "./events-
|
|
2
|
-
import { a as enrichFlowModuleConfig, c as resolveFlowModuleConfig, i as resolveDashboardModuleConfig, k as mergeDashboardConfig, n as preloadDashboardFlow, o as getRequiredWasmPipelines, s as normalizeFlowModules, t as getFlow } from "./flowServices-
|
|
1
|
+
import { v as addEvent } from "./events-DYiyoSlx.esm.js";
|
|
2
|
+
import { a as enrichFlowModuleConfig, c as resolveFlowModuleConfig, i as resolveDashboardModuleConfig, k as mergeDashboardConfig, n as preloadDashboardFlow, o as getRequiredWasmPipelines, s as normalizeFlowModules, t as getFlow } from "./flowServices-C_Z7Pjvd.esm.js";
|
|
3
3
|
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
5
|
-
import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-
|
|
6
|
-
import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-
|
|
5
|
+
import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-YG3VycUU.esm.js";
|
|
6
|
+
import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-CkKzUrQR.esm.js";
|
|
7
7
|
//#region src/modules/flow/noOpFlowModuleMachine.ts
|
|
8
8
|
const noOpFlowModuleMachine = setup({}).createMachine({
|
|
9
9
|
id: "noOpFlowModule",
|
package/dist/{flowCompletionService-C6llWAAo.esm.js → flowCompletionService-YG3VycUU.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
3
|
-
import { r as toIncodeApiError } from "./apiError-
|
|
3
|
+
import { r as toIncodeApiError } from "./apiError-jP0cswDJ.esm.js";
|
|
4
4
|
//#region src/modules/flow/flowCompletionService.ts
|
|
5
5
|
const getFinishStatus = async (flowId, signal) => {
|
|
6
6
|
const url = `${endpoints.finishStatus}${flowId ? `?flowId=${flowId}` : ""}`;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { E as updateFeatureManagementUser } from "./feature-management-
|
|
1
|
+
import { E as updateFeatureManagementUser } from "./feature-management-CkGxQul1.esm.js";
|
|
2
2
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { c as getStandaloneFlowPolicy, i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-
|
|
3
|
+
import { c as getStandaloneFlowPolicy, i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-DtcaH34N.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
5
|
-
import { r as toIncodeApiError } from "./apiError-
|
|
6
|
-
import "./session-
|
|
5
|
+
import { r as toIncodeApiError } from "./apiError-jP0cswDJ.esm.js";
|
|
6
|
+
import "./session-BoCg9kCK.esm.js";
|
|
7
7
|
import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
|
|
8
8
|
//#region src/modules/flow/dashboardConfig.ts
|
|
9
9
|
function isPlainObject(value) {
|
package/dist/geolocation.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as createGeolocationManager } from "./geolocationManager-
|
|
2
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
1
|
+
import { t as createGeolocationManager } from "./geolocationManager-AmYuocQ3.esm.js";
|
|
2
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-DSe6SL-7.esm.js";
|
|
3
3
|
export { createGeolocationManager, geolocationMachine };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-DYiyoSlx.esm.js";
|
|
2
2
|
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
3
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
3
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-DSe6SL-7.esm.js";
|
|
4
4
|
//#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
|
|
5
5
|
var BrowserGeolocationProvider = class {
|
|
6
6
|
getCurrentPosition() {
|
package/dist/{geolocationStateMachine-C0RXwD9o.esm.js → geolocationStateMachine-DSe6SL-7.esm.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
3
3
|
import { a as isIOS, t as isAndroid } from "./platform-Q4r1nvWX.esm.js";
|
|
4
|
-
import { n as isConnectivityError } from "./apiError-
|
|
4
|
+
import { n as isConnectivityError } from "./apiError-jP0cswDJ.esm.js";
|
|
5
5
|
import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
6
6
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
7
7
|
//#region src/modules/geolocation/geolocationServices.ts
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-BYKYUdza.esm.js";
|
|
2
|
-
import { n as createGovernmentValidationManagerFromActor, t as createGovernmentValidationManager } from "./governmentValidationManager-
|
|
2
|
+
import { n as createGovernmentValidationManagerFromActor, t as createGovernmentValidationManager } from "./governmentValidationManager-Dheo7fh_.esm.js";
|
|
3
3
|
export { createGovernmentValidationManager, createGovernmentValidationManagerFromActor, governmentValidationMachine };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-DYiyoSlx.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
4
|
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-BYKYUdza.esm.js";
|
package/dist/home.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-DYiyoSlx.esm.js";
|
|
2
2
|
import { c as createManager, o as createActor, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
3
3
|
//#region src/modules/home/homeStateMachine.ts
|
|
4
4
|
const homeMachine = setup({ types: {
|
package/dist/id-ocr.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as validateCPF } from "./cpf-BIADjddF.esm.js";
|
|
2
2
|
import { a as MIN_AGE, i as CPFFlowIds, n as OCR_FIELDS, r as getOcrFields, t as idOcrStateMachine } from "./idOcrStateMachine-Bq_e3l4E.esm.js";
|
|
3
|
-
import { n as createIdOcrManagerFromActor, t as createIdOcrManager } from "./idOcrManager-
|
|
3
|
+
import { n as createIdOcrManagerFromActor, t as createIdOcrManager } from "./idOcrManager-D_2k-6Vv.esm.js";
|
|
4
4
|
//#region src/modules/id-ocr/idOcrCpfUtils.ts
|
|
5
5
|
function formatCPF(value) {
|
|
6
6
|
const digits = value.replace(/\D/g, "").slice(0, 11);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { r as WasmUtilProvider } from "./safeStorage-2nOSCCnG.esm.js";
|
|
2
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
2
|
+
import { t as ensureWasmPipelines } from "./setup-Ccd6xV05.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
|
-
import { i as resolveDashboardModuleConfig, l as facingModeForStep } from "./flowServices-
|
|
4
|
+
import { i as resolveDashboardModuleConfig, l as facingModeForStep } from "./flowServices-C_Z7Pjvd.esm.js";
|
|
5
5
|
import { c as createManager, n as sendTo, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
6
6
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
7
|
-
import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-
|
|
7
|
+
import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-BYl2hbuy.esm.js";
|
|
8
8
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
9
9
|
import { a as uploadSelfie, r as processFace } from "./selfieErrorUtils-ArUCoICg.esm.js";
|
|
10
10
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
11
11
|
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-Dowxd3J3.esm.js";
|
|
12
|
-
import { a as processId, d as validateUploadResponse, f as ID_ERROR_CODES, l as uploadIdImage } from "./idCaptureServices-
|
|
13
|
-
import { n as getFinishStatus } from "./flowCompletionService-
|
|
14
|
-
import { a as delay, c as isWrongVideoSelfieIdSide, n as defaultAcquireCamera, r as CameraCompositor, s as isSelfieValidationError } from "./videoSelfieCameraWarmer-
|
|
12
|
+
import { a as processId, d as validateUploadResponse, f as ID_ERROR_CODES, l as uploadIdImage } from "./idCaptureServices-DoVKk86g.esm.js";
|
|
13
|
+
import { n as getFinishStatus } from "./flowCompletionService-YG3VycUU.esm.js";
|
|
14
|
+
import { a as delay, c as isWrongVideoSelfieIdSide, n as defaultAcquireCamera, r as CameraCompositor, s as isSelfieValidationError } from "./videoSelfieCameraWarmer-DxxDSvmQ.esm.js";
|
|
15
15
|
//#region src/modules/id-selfie-flow/idSelfieFlowStepDetector.ts
|
|
16
16
|
/** Default autocapture window for the selfie step. */
|
|
17
17
|
const SELFIE_AUTOCAPTURE_MS = 1e4;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as idVerificationMachine } from "./idVerificationStateMachine-GEQWUPU2.esm.js";
|
|
2
|
-
import { n as createIdVerificationManagerFromActor, t as createIdVerificationManager } from "./idVerificationManager-
|
|
2
|
+
import { n as createIdVerificationManagerFromActor, t as createIdVerificationManager } from "./idVerificationManager-DdlrWSSB.esm.js";
|
|
3
3
|
export { createIdVerificationManager, createIdVerificationManagerFromActor, idVerificationMachine };
|
package/dist/id.esm.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-C8847M9W.esm.js";
|
|
2
|
-
import { n as eventModuleNames } from "./events-
|
|
2
|
+
import { n as eventModuleNames } from "./events-DYiyoSlx.esm.js";
|
|
3
3
|
import { o as createActor, r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
5
|
-
import { a as MANUAL_UPLOAD_MAX_RETRIES, i as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, r as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
6
|
-
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-
|
|
7
|
-
import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, i as preloadIdRecordingProvider, l as uploadIdImage, m as resolveIdCaptureThresholds, n as barcodeToBase64, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-
|
|
8
|
-
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-
|
|
5
|
+
import { a as MANUAL_UPLOAD_MAX_RETRIES, i as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, r as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, t as idCaptureMachine } from "./idCaptureStateMachine-D4UGjQNy.esm.js";
|
|
6
|
+
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-CykSLyn3.esm.js";
|
|
7
|
+
import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, i as preloadIdRecordingProvider, l as uploadIdImage, m as resolveIdCaptureThresholds, n as barcodeToBase64, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-DoVKk86g.esm.js";
|
|
8
|
+
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-GpvMuz9o.esm.js";
|
|
9
9
|
//#region src/modules/id/idCaptureOnlyStateMachine.ts
|
|
10
10
|
function buildSubImage(canvas) {
|
|
11
11
|
if (!canvas) return void 0;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-C8847M9W.esm.js";
|
|
2
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-DYiyoSlx.esm.js";
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
5
|
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-Dd7Yj25O.esm.js";
|
|
6
6
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BX1BiLDK.esm.js";
|
|
7
7
|
import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-BPUkbztJ.esm.js";
|
|
8
|
-
import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
9
|
-
import { m as resolveIdCaptureThresholds, p as resolveCaptureResultPreviewTreatment } from "./idCaptureServices-
|
|
8
|
+
import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-D4UGjQNy.esm.js";
|
|
9
|
+
import { m as resolveIdCaptureThresholds, p as resolveCaptureResultPreviewTreatment } from "./idCaptureServices-DoVKk86g.esm.js";
|
|
10
10
|
//#region src/modules/id/digitalUpload/instrumentation.ts
|
|
11
11
|
const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
12
12
|
function isHoldingState(value) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-
|
|
1
|
+
import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-CkGxQul1.esm.js";
|
|
2
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
4
4
|
import { i as isDesktop } from "./platform-Q4r1nvWX.esm.js";
|
|
5
|
-
import { h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-
|
|
5
|
+
import { h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-BYl2hbuy.esm.js";
|
|
6
6
|
import { n as getBackCameraStream } from "./backCameraStream-BMGalshK.esm.js";
|
|
7
7
|
import { t as getDeviceClass } from "./getDeviceClass-Sh0zhEv7.esm.js";
|
|
8
|
-
import { n as preloadOpenViduProvider } from "./recordingService-
|
|
8
|
+
import { n as preloadOpenViduProvider } from "./recordingService-DxbuJNac.esm.js";
|
|
9
9
|
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-Dowxd3J3.esm.js";
|
|
10
10
|
//#region src/modules/id/idCameraStream.ts
|
|
11
11
|
async function getIdCameraStream(deviceId) {
|
|
@@ -14,14 +14,14 @@ async function getIdCameraStream(deviceId) {
|
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region src/modules/id/idCaptureExperiments.ts
|
|
16
16
|
/**
|
|
17
|
-
* IDC-05 — resolved by core because `
|
|
17
|
+
* IDC-05 — resolved by core because `framesAggregationIntervalMs` feeds
|
|
18
18
|
* `setThresholds` before detection can run.
|
|
19
19
|
*/
|
|
20
20
|
const CAPTURE_RESULT_PREVIEW = {
|
|
21
|
-
storeParam: "
|
|
21
|
+
storeParam: "idcExp05ShowResult",
|
|
22
22
|
...defineExperimentParams({
|
|
23
23
|
showCaptureResultPreview: booleanParam(false),
|
|
24
|
-
|
|
24
|
+
framesAggregationIntervalMs: numberParam(DEFAULT_ID_CAPTURE_THRESHOLDS.framesAggregationInterval)
|
|
25
25
|
})
|
|
26
26
|
};
|
|
27
27
|
//#endregion
|
|
@@ -31,7 +31,7 @@ function resolveCaptureResultPreviewTreatment(config) {
|
|
|
31
31
|
const { params } = resolveExperimentOnce(CAPTURE_RESULT_PREVIEW);
|
|
32
32
|
return {
|
|
33
33
|
mode: params.showCaptureResultPreview ? "result-preview" : "countdown",
|
|
34
|
-
framesAggregationInterval: params.
|
|
34
|
+
framesAggregationInterval: params.framesAggregationIntervalMs
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
37
|
/**
|
package/dist/{idCaptureStateMachine-BKbLET7m.esm.js → idCaptureStateMachine-D4UGjQNy.esm.js}
RENAMED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
|
-
import { s as exposeExperimentOnce } from "./feature-management-
|
|
2
|
+
import { s as exposeExperimentOnce } from "./feature-management-CkGxQul1.esm.js";
|
|
3
3
|
import { n as revokeObjectURL } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
4
4
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
5
|
-
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
6
|
-
import { n as eventModuleNames, s as recordExperimentAssignmentOnce } from "./events-
|
|
7
|
-
import { t as getDisableIpify } from "./sessionInitializer-
|
|
8
|
-
import "./trueSight-
|
|
5
|
+
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-CTZ8wqNF.esm.js";
|
|
6
|
+
import { n as eventModuleNames, s as recordExperimentAssignmentOnce } from "./events-DYiyoSlx.esm.js";
|
|
7
|
+
import { t as getDisableIpify } from "./sessionInitializer-DtcaH34N.esm.js";
|
|
8
|
+
import "./trueSight-Bl-iCeAC.esm.js";
|
|
9
9
|
import { t as addDeviceStats } from "./stats-B0nFKawG.esm.js";
|
|
10
10
|
import { t as isAndroid } from "./platform-Q4r1nvWX.esm.js";
|
|
11
|
-
import "./session-
|
|
11
|
+
import "./session-BoCg9kCK.esm.js";
|
|
12
12
|
import { a as and, n as sendTo, r as assign, s as not, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
13
13
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
14
14
|
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-BPUkbztJ.esm.js";
|
|
15
|
-
import { _ as StreamCanvasProcessingSession } from "./onDeviceFaceResults-
|
|
15
|
+
import { _ as StreamCanvasProcessingSession } from "./onDeviceFaceResults-BYl2hbuy.esm.js";
|
|
16
16
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
17
17
|
import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
|
|
18
18
|
import { t as getBrowser } from "./getBrowser-DNrQeL4T.esm.js";
|
|
@@ -20,7 +20,7 @@ import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
|
20
20
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
21
21
|
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-BEgOUwwQ.esm.js";
|
|
22
22
|
import { r as flagIdManualReview, t as imageFileToDataUrl } from "./imageFile-DutiOU7n.esm.js";
|
|
23
|
-
import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, g as getIdCameraStream, h as CAPTURE_RESULT_PREVIEW, i as preloadIdRecordingProvider, l as uploadIdImage, m as resolveIdCaptureThresholds, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-
|
|
23
|
+
import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, g as getIdCameraStream, h as CAPTURE_RESULT_PREVIEW, i as preloadIdRecordingProvider, l as uploadIdImage, m as resolveIdCaptureThresholds, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-DoVKk86g.esm.js";
|
|
24
24
|
//#region src/modules/id/digitalUpload/digitalUploadErrors.ts
|
|
25
25
|
const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
26
26
|
function isKnownFailReason(reason) {
|
|
@@ -1284,7 +1284,7 @@ const startRecordingActor = fromPromise(async ({ input }) => {
|
|
|
1284
1284
|
});
|
|
1285
1285
|
const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
|
|
1286
1286
|
if (!input.dependencies) return;
|
|
1287
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
1287
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-BDlGUqao.esm.js");
|
|
1288
1288
|
return loadDeepsightSession({
|
|
1289
1289
|
ds: input.ds,
|
|
1290
1290
|
storage: input.dependencies.storage,
|
|
@@ -1326,7 +1326,7 @@ function performReportCaptureResultPreviewAssignment(context) {
|
|
|
1326
1326
|
if (context.config.supportsCaptureResultPreview !== true) return;
|
|
1327
1327
|
const assignment = exposeExperimentOnce(CAPTURE_RESULT_PREVIEW);
|
|
1328
1328
|
if (!assignment) return;
|
|
1329
|
-
recordExperimentAssignmentOnce(eventModuleNames.idCapture, assignment);
|
|
1329
|
+
recordExperimentAssignmentOnce(eventModuleNames.idCapture, CAPTURE_RESULT_PREVIEW.storeParam, assignment);
|
|
1330
1330
|
}
|
|
1331
1331
|
function performStopMediaRecording(context) {
|
|
1332
1332
|
if (context.recordingSession) stopRecording(context.recordingSession);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-DYiyoSlx.esm.js";
|
|
2
2
|
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
3
3
|
import { t as idOcrStateMachine } from "./idOcrStateMachine-Bq_e3l4E.esm.js";
|
|
4
4
|
//#region src/modules/id-ocr/idOcrActor.ts
|