@incodetech/core 0.0.0-dev-20260901-1ac66c0f → 0.0.0-dev-20260902-b423eb4c
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-B_LBCpjc.esm.js → BrowserDiagnosticsCryptoProvider-BNXzyiSM.esm.js} +1 -1
- package/dist/{addressSearch-DsE3V2Eu.esm.js → addressSearch-BRSu_aGA.esm.js} +1 -1
- package/dist/ae-signature.d.ts +4 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-BIAewhuy.esm.js → antifraudManager-Bg9ynGum.esm.js} +1 -1
- package/dist/{antifraudStateMachine-CloLO5Ac.esm.js → antifraudStateMachine-BHxehiJZ.esm.js} +1 -1
- package/dist/{apiError-BuWfo4qg.esm.js → apiError-qAEY_0UT.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-Dcc29kVh.d.ts → authenticationManager-B3-y3IRx.d.ts} +1 -1
- package/dist/{authenticationManager-C3eQYMUt.esm.js → authenticationManager-BkR1Wc8v.esm.js} +3 -3
- package/dist/{authenticationStateMachine-BC3cMMVn.esm.js → authenticationStateMachine-BESsBlPa.esm.js} +4 -4
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-Boxv4Ua1.esm.js → certificateIssuanceManager-Bfvkq7Cy.esm.js} +1 -1
- package/dist/{certificateIssuanceStateMachine-DPxboygj.esm.js → certificateIssuanceStateMachine-BBD5h8c4.esm.js} +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-DGUR1n_2.esm.js → consentManager-B5Vqdez-.esm.js} +1 -1
- package/dist/{consentStateMachine-NzTtgWFt.esm.js → consentStateMachine-DbUmqWgV.esm.js} +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-B-LnSOkM.esm.js → crossDocumentDataMatchManager-QMOGwHXR.esm.js} +1 -1
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-Br8nG43T.esm.js → curpValidationManager-D1ppROcF.esm.js} +1 -1
- package/dist/{curpValidationManager-B9kKccLg.d.ts → curpValidationManager-cSd2MrOQ.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-LUNoe6Qf.esm.js → curpValidationStateMachine-DvUPC_8S.esm.js} +1 -1
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-227MSvQB.esm.js → customFieldsManager-2j_PBq4U.esm.js} +1 -1
- package/dist/{customWatchlistManager-BAaSxZYb.esm.js → customWatchlistManager-DUVrEdw9.esm.js} +1 -1
- package/dist/{customWatchlistStateMachine-D5_1ttJm.esm.js → customWatchlistStateMachine-qZVgkKgP.esm.js} +1 -1
- package/dist/{deepsightLoader-DoDRaArm.esm.js → deepsightLoader-C60qnKDV.esm.js} +3 -3
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-BdB-QEqs.esm.js → documentCaptureManager-BqY_B0Ii.esm.js} +1 -1
- package/dist/{documentCaptureManager-DensIj5F.d.ts → documentCaptureManager-DD0qtFdE.d.ts} +1 -1
- package/dist/{documentCaptureStateMachine-Cf_K0PkY.esm.js → documentCaptureStateMachine-D_9dw5b1.esm.js} +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-C7I9ZmT2.esm.js → dynamicFormsManager-xLKsncJx.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-CmNJC6Kx.esm.js → dynamicFormsStateMachine-BBKyGlO9.esm.js} +2 -2
- package/dist/ekyb.d.ts +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-BnBCCIF9.esm.js → ekybManager-CQrfiwz2.esm.js} +1 -1
- package/dist/{ekybStateMachine-Cg-KZQmw.esm.js → ekybStateMachine-DyUoy_Nv.esm.js} +3 -3
- package/dist/ekyc.esm.js +2 -2
- package/dist/{ekycManager-w9og7p3B.esm.js → ekycManager-CmQBpeiI.esm.js} +1 -1
- package/dist/{ekycStateMachine-DI-cxTKR.esm.js → ekycStateMachine-CmdW2gVm.esm.js} +2 -2
- package/dist/electronic-signature.d.ts +3 -3
- package/dist/electronic-signature.esm.js +2 -2
- package/dist/{electronicSignatureManager-CqXcNjCy.esm.js → electronicSignatureManager-BnIFWhzF.esm.js} +356 -50
- package/dist/electronicSignatureManager-Ds-KEVTq.d.ts +2786 -0
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-XkoenO_I.esm.js → emailManager-B5ek_UfM.esm.js} +1 -1
- package/dist/{emailStateMachine-bE6BrcSV.esm.js → emailStateMachine-CyPFZ7dW.esm.js} +1 -1
- package/dist/{endpoints-CXZYMaDj.esm.js → endpoints-D3B9mUHh.esm.js} +2 -0
- package/dist/extensibility.d.ts +12 -12
- package/dist/extensibility.esm.js +33 -33
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-9IIYrmBa.d.ts → faceCaptureManagerFactory-BWChOW_5.d.ts} +3 -3
- package/dist/{faceCaptureManagerFactory-CnjLfX5b.esm.js → faceCaptureManagerFactory-D7HtcTGD.esm.js} +1 -1
- package/dist/{faceCaptureSetup-X4O3-AVx.esm.js → faceCaptureSetup-D9TLE1yJ.esm.js} +4 -4
- package/dist/{faceMatchManager-B7zieNzG.esm.js → faceMatchManager-Caal2zyV.esm.js} +1 -1
- package/dist/{faceMatchStateMachine-D-ji0pxU.esm.js → faceMatchStateMachine-BUc5FXYy.esm.js} +1 -1
- package/dist/{feature-management-D5GGbzqr.esm.js → feature-management-2KA4RUeu.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-e3mCrzVQ.esm.js → fieldComparisonManager-BIs6HPJG.esm.js} +1 -1
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-Q8dfZMRj.esm.js → fiscalQrManager-VkhU2SxS.esm.js} +1 -1
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +6 -6
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-BO1qquxW.esm.js → flowCompletionService-Vud0ynuS.esm.js} +2 -2
- package/dist/{flowServices-nwDcJ3vT.esm.js → flowServices-BrtcLOkt.esm.js} +7 -6
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager--6TeBRb3.esm.js → geolocationManager-4bHa-8xN.esm.js} +1 -1
- package/dist/{geolocationStateMachine-qP2Sf5Hb.esm.js → geolocationStateMachine-DBNY4kwN.esm.js} +2 -2
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-CxXc4qBe.esm.js → governmentValidationManager-TjC9iVjH.esm.js} +1 -1
- package/dist/{governmentValidationStateMachine-flYtmgoA.esm.js → governmentValidationStateMachine-D1ZnEqdd.esm.js} +1 -1
- package/dist/home.d.ts +1 -1
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +9 -9
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +2 -2
- package/dist/id.esm.js +4 -4
- package/dist/{idCaptureDefaults-BcxNxQ3f.esm.js → idCaptureDefaults-CR4bsS2u.esm.js} +1 -1
- package/dist/{idCaptureManager-KSDvIcIS.esm.js → idCaptureManager-BSaJdxCA.esm.js} +54 -23
- package/dist/{idCaptureManager-D9Kc4PAJ.d.ts → idCaptureManager-DFUR_tVA.d.ts} +61 -2
- package/dist/{idCaptureServices-C60FNW7T.esm.js → idCaptureServices-BMr-XvbO.esm.js} +6 -6
- package/dist/{idCaptureStateMachine-Cwu8xOkv.esm.js → idCaptureStateMachine-ZlXZAe9D.esm.js} +72 -26
- package/dist/{idOcrManager-BgZ19BTC.esm.js → idOcrManager-DHU22hVn.esm.js} +1 -1
- package/dist/{idOcrStateMachine-7XoaRHAP.esm.js → idOcrStateMachine-33UvRAHE.esm.js} +1 -1
- package/dist/{idVerificationManager-CcnzNq2Y.esm.js → idVerificationManager-CyaixD0D.esm.js} +1 -1
- package/dist/{idVerificationStateMachine-COvxom5O.esm.js → idVerificationStateMachine-BPGrQZEm.esm.js} +1 -1
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-D6pD4hcZ.d.ts → identityReuseManager-BXEBBI3N.d.ts} +4 -4
- package/dist/{identityReuseManager-DYBNjSsr.esm.js → identityReuseManager-CWaNHBO3.esm.js} +1 -1
- package/dist/{identityReuseStateMachine-BAhNyyC6.esm.js → identityReuseStateMachine-CQgnATo5.esm.js} +1 -1
- package/dist/{imageFile-DPRoXt59.esm.js → imageFile-CLaua6xO.esm.js} +1 -1
- package/dist/{index-B_-QIi8y.d.ts → index-1PoJuUJ-.d.ts} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-BiqhwVoc.esm.js → mandatoryConsentManager-Du-m-tZ_.esm.js} +1 -1
- package/dist/{mandatoryConsentManager-BBZcmNkW.d.ts → mandatoryConsentManager-eFC-htLS.d.ts} +5 -5
- package/dist/{mandatoryConsentStateMachine-DYDyl5f9.esm.js → mandatoryConsentStateMachine-DSDAk7WZ.esm.js} +1 -1
- package/dist/{multipartRecordingService-BLGAj7Yi.esm.js → multipartRecordingService-BMuxdyLL.esm.js} +1 -1
- package/dist/{onDeviceFaceResults-UCuKYr-G.esm.js → onDeviceFaceResults-QNTMlGpo.esm.js} +6 -6
- package/dist/personhood.d.ts +1 -1
- package/dist/personhood.esm.js +5 -5
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-Bo6xxcMW.esm.js → phoneManager-N1-sbrY4.esm.js} +1 -1
- package/dist/{phoneStateMachine--38hob0F.esm.js → phoneStateMachine-jl8LJKCo.esm.js} +1 -1
- package/dist/qe-signature.d.ts +5 -3
- package/dist/qe-signature.esm.js +2 -2
- package/dist/{recordingsRepository-BF82zFip.esm.js → recordingsRepository-CCWy13M-.esm.js} +1 -1
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-CYgl8NQf.esm.js → redirectToMobileManager-DsFzdTwA.esm.js} +1 -1
- package/dist/{redirectToMobileStateMachine-DaIHD4sd.esm.js → redirectToMobileStateMachine-v3otpT-L.esm.js} +1 -1
- package/dist/{runChildModule-B4nfVVlW.esm.js → runChildModule-BzUUi6cN.esm.js} +1 -1
- package/dist/{sdkVersion-BwFGSYaM.esm.js → sdkVersion-D2Jf7StH.esm.js} +1 -1
- package/dist/selfie.d.ts +3 -3
- package/dist/selfie.esm.js +6 -6
- package/dist/{selfieErrorUtils-YPP_eGhX.esm.js → selfieErrorUtils-C3lAFggs.esm.js} +2 -2
- package/dist/{selfieManager-BIZ4oz5a.d.ts → selfieManager-D0IU0qx7.d.ts} +1 -1
- package/dist/{selfieManager-B3a3fEsL.esm.js → selfieManager-Dq6pbT7r.esm.js} +3 -3
- package/dist/{selfieStateMachine-D3L1qBMW.esm.js → selfieStateMachine-h6BMiler.esm.js} +3 -3
- package/dist/{session-DCJvyfsH.esm.js → session-ZZe8ZRQJ.esm.js} +4 -4
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-DHTjd_Ac.esm.js → sessionInitializer--S-S_NBR.esm.js} +5 -5
- package/dist/{setup-BoIv87kQ.esm.js → setup-B7wLQFL-.esm.js} +6 -6
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-CxlTDSPF.esm.js → signatureManager-ChsB-nMD.esm.js} +1 -1
- package/dist/{signatureStateMachine-PME6kYsi.esm.js → signatureStateMachine-BHPwkJZS.esm.js} +1 -1
- package/dist/{stats-CI6TkL3K.esm.js → stats-DkK-f8JT.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/{trueSightService-DEUB9qOm.esm.js → trueSightService-Dc_CQnmv.esm.js} +3 -3
- package/dist/{types-DVmXIdzW.d.ts → types-D0gekt4U.d.ts} +38 -5
- package/dist/{types-R1jpOcvl.d.ts → types-DJ2OM9rw.d.ts} +1 -1
- package/dist/{types-C2AjieoA2.d.ts → types-DdbdcjPc2.d.ts} +1 -1
- package/dist/{types-CkrawdOy.d.ts → types-DzmqFoCH.d.ts} +1 -0
- package/dist/{types-BaDB52_j.d.ts → types-_pWNFY1F.d.ts} +1 -1
- package/dist/{types-CIeHNyxB.d.ts → types-hSqUyXyw.d.ts} +1 -1
- package/dist/types-m4t_cT5J.d.ts +6 -0
- package/dist/video-selfie.d.ts +1 -1
- package/dist/video-selfie.esm.js +5 -5
- package/dist/{videoSelfieCameraWarmer-B2VJFq_-.esm.js → videoSelfieCameraWarmer-BJpZ3Hj0.esm.js} +6 -6
- package/dist/{videoSelfieStepDetector-DGjBb3mw.d.ts → videoSelfieStepDetector-B8TvFDNK.d.ts} +2 -2
- package/dist/wasm.esm.js +1 -1
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-B4OQWJzu.esm.js → watchlistForBusinessManager-CpuuB1J2.esm.js} +1 -1
- package/dist/{watchlistForBusinessStateMachine-LwE1Hwug.esm.js → watchlistForBusinessStateMachine-DEzgjz7C.esm.js} +1 -1
- package/dist/{watchlistManager-COcrhkNj.esm.js → watchlistManager-CI8BHFob.esm.js} +1 -1
- package/dist/{watchlistStateMachine-CvQkLMAm.esm.js → watchlistStateMachine-DvOby3a-.esm.js} +1 -1
- package/dist/workflow.d.ts +1 -1
- package/dist/workflow.esm.js +34 -34
- package/package.json +3 -3
- package/dist/electronicSignatureManager-CcUXQZS7.d.ts +0 -1300
- package/dist/types-C1N4esyF.d.ts +0 -6
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { l as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { l as BrowserStorageProvider } from "./setup-B7wLQFL-.esm.js";
|
|
2
2
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
5
|
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-CyCdsfox.esm.js";
|
|
6
6
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
7
7
|
import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-J5S1dEIf.esm.js";
|
|
8
|
-
import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
9
|
-
import { m as resolveIdCaptureThresholds, p as resolveCaptureOptimizingTreatment } from "./idCaptureServices-
|
|
8
|
+
import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-ZlXZAe9D.esm.js";
|
|
9
|
+
import { m as resolveIdCaptureThresholds, p as resolveCaptureOptimizingTreatment } from "./idCaptureServices-BMr-XvbO.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) {
|
|
@@ -285,8 +285,44 @@ function mapCaptureState(snapshot, context) {
|
|
|
285
285
|
canRetry: context.attemptsRemaining > 0
|
|
286
286
|
};
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
return
|
|
288
|
+
function mapPermissionsState(snapshot, context) {
|
|
289
|
+
return {
|
|
290
|
+
status: "permissions",
|
|
291
|
+
permissionStatus: getPermissionStatus(snapshot) ?? "idle",
|
|
292
|
+
selectedDocumentType: context.selectedDocumentType,
|
|
293
|
+
currentMode: context.currentMode,
|
|
294
|
+
tutorialEnabled: context.config.showTutorial === true
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
function getLoadingPhase(snapshot) {
|
|
298
|
+
if (snapshot.matches({ capture: "checkingStream" })) return "checkingStream";
|
|
299
|
+
if (snapshot.matches({ capture: "initializingDeepsight" })) return "initializingDeepsight";
|
|
300
|
+
if (snapshot.matches({ capture: "initializing" })) return "initializingCamera";
|
|
301
|
+
if (snapshot.matches({ permissions: "idle" })) return "permissionsIdle";
|
|
302
|
+
}
|
|
303
|
+
function mapLoadingState(snapshot, phase) {
|
|
304
|
+
return {
|
|
305
|
+
status: "loading",
|
|
306
|
+
phase,
|
|
307
|
+
tutorialEnabled: snapshot.context.config.showTutorial === true,
|
|
308
|
+
selectedDocumentType: snapshot.context.selectedDocumentType,
|
|
309
|
+
currentMode: snapshot.context.currentMode
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
function getTutorialPhase(snapshot) {
|
|
313
|
+
if (snapshot.matches({ tutorial: "checkingPermission" })) return "checkingPermission";
|
|
314
|
+
if (snapshot.matches({ tutorial: "waitingForPermission" })) return "waitingForPermission";
|
|
315
|
+
if (snapshot.matches({ tutorial: { initializingCamera: { userIntent: "clicked" } } })) return "waitingForCamera";
|
|
316
|
+
if (snapshot.matches({ tutorial: "initializingCamera" })) return "initializingCamera";
|
|
317
|
+
return "ready";
|
|
318
|
+
}
|
|
319
|
+
function mapTutorialState(snapshot, context) {
|
|
320
|
+
return {
|
|
321
|
+
status: "tutorial",
|
|
322
|
+
phase: getTutorialPhase(snapshot),
|
|
323
|
+
selectedDocumentType: context.selectedDocumentType,
|
|
324
|
+
currentMode: context.currentMode
|
|
325
|
+
};
|
|
290
326
|
}
|
|
291
327
|
function mapManualUploadState(snapshot) {
|
|
292
328
|
const { config } = snapshot.context;
|
|
@@ -397,30 +433,17 @@ function mapDeviceWalletState(snapshot) {
|
|
|
397
433
|
function mapState(snapshot) {
|
|
398
434
|
const { context } = snapshot;
|
|
399
435
|
if (snapshot.matches("idle")) return { status: "idle" };
|
|
400
|
-
|
|
436
|
+
const loadingPhase = getLoadingPhase(snapshot);
|
|
437
|
+
if (loadingPhase) return mapLoadingState(snapshot, loadingPhase);
|
|
401
438
|
if (snapshot.matches("chooser")) return {
|
|
402
439
|
status: "chooser",
|
|
403
440
|
availableDocumentTypes: context.availableDocumentTypes
|
|
404
441
|
};
|
|
405
|
-
if (snapshot.matches("loading")) return
|
|
406
|
-
if (snapshot.matches("tutorial")) return
|
|
407
|
-
status: "tutorial",
|
|
408
|
-
selectedDocumentType: context.selectedDocumentType,
|
|
409
|
-
currentMode: context.currentMode
|
|
410
|
-
};
|
|
442
|
+
if (snapshot.matches("loading")) return mapLoadingState(snapshot, "bootstrapping");
|
|
443
|
+
if (snapshot.matches("tutorial")) return mapTutorialState(snapshot, context);
|
|
411
444
|
if (snapshot.matches("ageVerification")) return { status: "ageVerification" };
|
|
412
445
|
if (snapshot.matches("closed")) return { status: "closed" };
|
|
413
|
-
if (snapshot.matches("permissions"))
|
|
414
|
-
const permissionStatus = getPermissionStatus(snapshot);
|
|
415
|
-
if (permissionStatus === void 0) return {
|
|
416
|
-
status: "permissions",
|
|
417
|
-
permissionStatus: "idle"
|
|
418
|
-
};
|
|
419
|
-
return {
|
|
420
|
-
status: "permissions",
|
|
421
|
-
permissionStatus
|
|
422
|
-
};
|
|
423
|
-
}
|
|
446
|
+
if (snapshot.matches("permissions")) return mapPermissionsState(snapshot, context);
|
|
424
447
|
if (snapshot.matches("capture")) return mapCaptureState(snapshot, context);
|
|
425
448
|
if (snapshot.matches("mandatoryConsent")) return {
|
|
426
449
|
status: "mandatoryConsent",
|
|
@@ -492,6 +515,14 @@ function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished })
|
|
|
492
515
|
}
|
|
493
516
|
actor.send({ type: "NEXT_STEP" });
|
|
494
517
|
},
|
|
518
|
+
/**
|
|
519
|
+
* Requests camera (and, when deepsight is enabled, motion) permission.
|
|
520
|
+
* Effective in `permissions.idle`, `permissions.waitingForUser`,
|
|
521
|
+
* `permissions.motionOnly`, `permissions.learnMore`, `tutorial.ready`,
|
|
522
|
+
* `tutorial.checkingPermission`, and `tutorial.initializingCamera` (while
|
|
523
|
+
* the camera pre-warms it records the user's intent to continue, so the
|
|
524
|
+
* tutorial advances to capture as soon as the warm-up finishes).
|
|
525
|
+
*/
|
|
495
526
|
requestPermission() {
|
|
496
527
|
trackElementClicked?.("requestPermission");
|
|
497
528
|
actor.send({ type: "REQUEST_PERMISSION" });
|
|
@@ -4,12 +4,12 @@ import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
|
4
4
|
import "./Actor-iTq7YY48.js";
|
|
5
5
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
6
6
|
import "./index-B8weJxmL.js";
|
|
7
|
-
import { a as RegulationTypes } from "./types-
|
|
7
|
+
import { a as RegulationTypes } from "./types-DzmqFoCH.js";
|
|
8
8
|
import { n as PermissionStatus } from "./types-BEwVKkLJ.js";
|
|
9
9
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
10
10
|
import { t as DeepsightService } from "./deepsightService-MZOpj7Vp.js";
|
|
11
11
|
import { i as Pdf417DecodeResult, n as IIdCaptureCapability, t as DetectionOrientation } from "./IIdCaptureCapability-DDWlQzhi.js";
|
|
12
|
-
import { B as DeviceWalletPlatform, C as IdDocumentType, D as RecordingSession, F as ManualUploadTab, O as UploadIdResponse, P as ManualUploadSide, R as DeviceWalletFailReason, T as IdErrorCode, X as DigitalIdProviderId, Z as FailureReason, _ as IdCaptureInput, b as IdCaptureOutput, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, h as IdCaptureEvent, i as CaptureIdResponse, k as IAnalyticsCapability, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureMode, y as IdCaptureOnlyConfig } from "./types-
|
|
12
|
+
import { B as DeviceWalletPlatform, C as IdDocumentType, D as RecordingSession, F as ManualUploadTab, O as UploadIdResponse, P as ManualUploadSide, R as DeviceWalletFailReason, T as IdErrorCode, X as DigitalIdProviderId, Z as FailureReason, _ as IdCaptureInput, b as IdCaptureOutput, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, h as IdCaptureEvent, i as CaptureIdResponse, k as IAnalyticsCapability, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureMode, y as IdCaptureOnlyConfig } from "./types-DdbdcjPc2.js";
|
|
13
13
|
//#region src/modules/id/idCaptureStateMachine.d.ts
|
|
14
14
|
declare const idCaptureMachine: AnyStateMachine;
|
|
15
15
|
type IdCaptureMachine = StateMachine<IdCaptureContext, IdCaptureEvent, any, any, any, any, any, any, any, IdCaptureInput, any, any, any, any>;
|
|
@@ -181,11 +181,58 @@ type IdCaptureChooserState = {
|
|
|
181
181
|
status: 'chooser';
|
|
182
182
|
availableDocumentTypes: IdDocumentType[];
|
|
183
183
|
};
|
|
184
|
+
/**
|
|
185
|
+
* Which UI-less machine phase the collapsed `loading` status stands for. The
|
|
186
|
+
* status itself is intentionally coarse (one spinner for several phases), but
|
|
187
|
+
* some surfaces need the underlying phase — e.g. IDC-01 suppresses the spinner
|
|
188
|
+
* during `permissionsIdle` so the permission sheet does not flash a full-screen
|
|
189
|
+
* loader on its way in. Mirrors `getLoadingPhase`.
|
|
190
|
+
*/
|
|
191
|
+
type IdCaptureLoadingPhase =
|
|
192
|
+
/** Top-level `loading`: permission check + Deepsight init in parallel. */
|
|
193
|
+
'bootstrapping' |
|
|
194
|
+
/** `permissions.idle` — silently re-checking permission before the dialog. */
|
|
195
|
+
'permissionsIdle' |
|
|
196
|
+
/** `capture.checkingStream` */
|
|
197
|
+
'checkingStream' |
|
|
198
|
+
/** `capture.initializingDeepsight` */
|
|
199
|
+
'initializingDeepsight' |
|
|
200
|
+
/** `capture.initializing` — opening the camera. */
|
|
201
|
+
'initializingCamera';
|
|
184
202
|
type IdCaptureLoadingState = {
|
|
185
203
|
status: 'loading';
|
|
204
|
+
phase: IdCaptureLoadingPhase;
|
|
205
|
+
/** `config.showTutorial` — mirrors the `permissions` state's field. */
|
|
206
|
+
tutorialEnabled: boolean;
|
|
207
|
+
/**
|
|
208
|
+
* Mirrors `tutorial`/`permissions` — lets a tutorial-backed UI keep
|
|
209
|
+
* rendering the right document/side across the `permissionsIdle` blip
|
|
210
|
+
* instead of caching the last known values.
|
|
211
|
+
*/
|
|
212
|
+
selectedDocumentType: IdDocumentType | undefined;
|
|
213
|
+
currentMode: IdCaptureMode;
|
|
186
214
|
};
|
|
215
|
+
/**
|
|
216
|
+
* Which `tutorial` substate the collapsed `status: 'tutorial'` stands for.
|
|
217
|
+
* Mirrors `IdCaptureLoadingPhase` — a UI-facing discriminant for phases the
|
|
218
|
+
* coarse status collapses, not a UI concept itself. `waitingForPermission`
|
|
219
|
+
* and `waitingForCamera` are the symmetric pair: the user has continued and
|
|
220
|
+
* the tutorial is blocked on permission vs. blocked on the camera warm-up.
|
|
221
|
+
*/
|
|
222
|
+
type IdCaptureTutorialPhase =
|
|
223
|
+
/** `tutorial.checkingPermission` — resolving permission on arrival. */
|
|
224
|
+
'checkingPermission' |
|
|
225
|
+
/** `tutorial.ready` — idle, waiting for the user. */
|
|
226
|
+
'ready' |
|
|
227
|
+
/** `tutorial.initializingCamera` — warming the camera behind the tutorial; the user has not continued. */
|
|
228
|
+
'initializingCamera' |
|
|
229
|
+
/** `tutorial.waitingForPermission` — the user continued; resolving permission. */
|
|
230
|
+
'waitingForPermission' |
|
|
231
|
+
/** `tutorial.initializingCamera` with the user's Continue recorded; blocked on the warm-up. */
|
|
232
|
+
'waitingForCamera';
|
|
187
233
|
type IdCaptureTutorialState = {
|
|
188
234
|
status: 'tutorial';
|
|
235
|
+
phase: IdCaptureTutorialPhase;
|
|
189
236
|
selectedDocumentType: IdDocumentType | undefined;
|
|
190
237
|
currentMode: IdCaptureMode;
|
|
191
238
|
};
|
|
@@ -195,6 +242,10 @@ type IdCaptureAgeVerificationState = {
|
|
|
195
242
|
type IdCapturePermissionsState = {
|
|
196
243
|
status: 'permissions';
|
|
197
244
|
permissionStatus: PermissionStatus;
|
|
245
|
+
selectedDocumentType: IdDocumentType | undefined;
|
|
246
|
+
currentMode: IdCaptureMode;
|
|
247
|
+
/** `config.showTutorial` — whether a tutorial screen precedes this one. */
|
|
248
|
+
tutorialEnabled: boolean;
|
|
198
249
|
};
|
|
199
250
|
type IdCaptureCaptureState = {
|
|
200
251
|
status: 'capture';
|
|
@@ -395,6 +446,14 @@ declare function createIdCaptureManagerFromActor(actor: AnyIdCaptureActor, visib
|
|
|
395
446
|
load(): void;
|
|
396
447
|
selectDocument(documentType: IdDocumentType): void;
|
|
397
448
|
nextStep(): Promise<void>;
|
|
449
|
+
/**
|
|
450
|
+
* Requests camera (and, when deepsight is enabled, motion) permission.
|
|
451
|
+
* Effective in `permissions.idle`, `permissions.waitingForUser`,
|
|
452
|
+
* `permissions.motionOnly`, `permissions.learnMore`, `tutorial.ready`,
|
|
453
|
+
* `tutorial.checkingPermission`, and `tutorial.initializingCamera` (while
|
|
454
|
+
* the camera pre-warms it records the user's intent to continue, so the
|
|
455
|
+
* tutorial advances to capture as soon as the warm-up finishes).
|
|
456
|
+
*/
|
|
398
457
|
requestPermission(): void;
|
|
399
458
|
goToLearnMore(): void;
|
|
400
459
|
back(): void;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
2
|
-
import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-
|
|
1
|
+
import { t as ensureWasmPipelines } from "./setup-B7wLQFL-.esm.js";
|
|
2
|
+
import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-2KA4RUeu.esm.js";
|
|
3
3
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
4
|
-
import { t as endpoints } from "./endpoints-
|
|
4
|
+
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
5
5
|
import { i as isDesktop } from "./platform-DkcRc9JV.esm.js";
|
|
6
6
|
import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
7
7
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
8
8
|
import { s as queryCameraPermission } from "./permissionServices-J5S1dEIf.esm.js";
|
|
9
|
-
import { n as startRecording, r as stopRecording$1, t as createRecordingSession } from "./recordingsRepository-
|
|
9
|
+
import { n as startRecording, r as stopRecording$1, t as createRecordingSession } from "./recordingsRepository-CCWy13M-.esm.js";
|
|
10
10
|
import { a as isBackFacingTrack, n as getBackCameraStream } from "./backCameraStream-DE_5qY04.esm.js";
|
|
11
11
|
import { t as getDeviceClass } from "./getDeviceClass-q9LxdYDh.esm.js";
|
|
12
|
-
import { t as MultipartRecordingService } from "./multipartRecordingService-
|
|
13
|
-
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-
|
|
12
|
+
import { t as MultipartRecordingService } from "./multipartRecordingService-BMuxdyLL.esm.js";
|
|
13
|
+
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-CR4bsS2u.esm.js";
|
|
14
14
|
//#region src/internal/camera/cameraServices.ts
|
|
15
15
|
function createCameraServices(camera) {
|
|
16
16
|
return {
|
package/dist/{idCaptureStateMachine-Cwu8xOkv.esm.js → idCaptureStateMachine-ZlXZAe9D.esm.js}
RENAMED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { l as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { l as BrowserStorageProvider } from "./setup-B7wLQFL-.esm.js";
|
|
2
2
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
3
|
-
import { s as exposeExperimentOnce } from "./feature-management-
|
|
3
|
+
import { s as exposeExperimentOnce } from "./feature-management-2KA4RUeu.esm.js";
|
|
4
4
|
import { n as revokeObjectURL } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
5
5
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
6
|
-
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
6
|
+
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-Dc_CQnmv.esm.js";
|
|
7
7
|
import { n as eventModuleNames, s as recordExperimentAssignmentOnce } from "./events-ijlbX_Wx.esm.js";
|
|
8
|
-
import { t as getDisableIpify } from "./sessionInitializer-
|
|
9
|
-
import { t as endpoints } from "./endpoints-
|
|
10
|
-
import { t as addDeviceStats } from "./stats-
|
|
8
|
+
import { t as getDisableIpify } from "./sessionInitializer--S-S_NBR.esm.js";
|
|
9
|
+
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
10
|
+
import { t as addDeviceStats } from "./stats-DkK-f8JT.esm.js";
|
|
11
11
|
import { a as isIOS, s as isIPad, t as isAndroid, u as isMacOsSafari } from "./platform-DkcRc9JV.esm.js";
|
|
12
|
-
import "./session-
|
|
12
|
+
import "./session-ZZe8ZRQJ.esm.js";
|
|
13
13
|
import { c as not, i as assign, l as raise, n as enqueueActions, o as and, r as sendTo, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
14
14
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
15
15
|
import { n as getUrlSearchParam, t as buildUrlWithSearchParams } from "./urlUtils-D6phjq1-.esm.js";
|
|
16
16
|
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-J5S1dEIf.esm.js";
|
|
17
17
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
18
18
|
import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
|
|
19
|
-
import { a as StreamCanvasProcessingSession } from "./recordingsRepository-
|
|
19
|
+
import { a as StreamCanvasProcessingSession } from "./recordingsRepository-CCWy13M-.esm.js";
|
|
20
20
|
import { t as getBrowser } from "./getBrowser-Cbe1C4Tn.esm.js";
|
|
21
21
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
22
22
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
23
23
|
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-BHw_SD3h.esm.js";
|
|
24
|
-
import { r as flagIdManualReview, t as imageFileToDataUrl } from "./imageFile-
|
|
25
|
-
import { _ as getIdCameraStream, a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, g as OPTIMIZING_WATCHDOG_MARGIN_MS, h as CAPTURE_OPTIMIZING, l as uploadIdImage, m as resolveIdCaptureThresholds, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-
|
|
24
|
+
import { r as flagIdManualReview, t as imageFileToDataUrl } from "./imageFile-CLaua6xO.esm.js";
|
|
25
|
+
import { _ as getIdCameraStream, a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, g as OPTIMIZING_WATCHDOG_MARGIN_MS, h as CAPTURE_OPTIMIZING, l as uploadIdImage, m as resolveIdCaptureThresholds, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-BMr-XvbO.esm.js";
|
|
26
26
|
//#region src/modules/id/digitalUpload/digitalUploadErrors.ts
|
|
27
27
|
const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
28
28
|
function isKnownFailReason(reason) {
|
|
@@ -949,6 +949,7 @@ const isPermissionDeniedErrorGuard = ({ event }) => {
|
|
|
949
949
|
}
|
|
950
950
|
return false;
|
|
951
951
|
};
|
|
952
|
+
const isPermissionBlockedGuard = ({ context }) => context.permissionResult === "denied" || context.permissionResult === "refresh";
|
|
952
953
|
const hasStreamGuard = ({ context }) => context.stream !== void 0;
|
|
953
954
|
const hasInitializedCameraGuard = ({ context }) => context.stream !== void 0 && context.provider !== void 0;
|
|
954
955
|
const hasAttemptsRemainingGuard = ({ context }) => context.attemptsRemaining > 0;
|
|
@@ -2122,7 +2123,7 @@ const startRecordingActor = fromPromise(async ({ input }) => {
|
|
|
2122
2123
|
});
|
|
2123
2124
|
const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
|
|
2124
2125
|
if (!input.dependencies) return;
|
|
2125
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
2126
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-C60qnKDV.esm.js");
|
|
2126
2127
|
return loadDeepsightSession({
|
|
2127
2128
|
ds: input.ds,
|
|
2128
2129
|
storage: input.dependencies.storage,
|
|
@@ -2909,6 +2910,7 @@ const idCaptureMachine = setup({
|
|
|
2909
2910
|
isReadyForCapture: isReadyForCaptureGuard,
|
|
2910
2911
|
needsMotionPrimeOnly: needsMotionPrimeOnlyGuard,
|
|
2911
2912
|
isPermissionDeniedError: isPermissionDeniedErrorGuard,
|
|
2913
|
+
isPermissionBlocked: isPermissionBlockedGuard,
|
|
2912
2914
|
hasStream: hasStreamGuard,
|
|
2913
2915
|
hasInitializedCamera: hasInitializedCameraGuard,
|
|
2914
2916
|
hasAttemptsRemaining: hasAttemptsRemainingGuard,
|
|
@@ -3199,10 +3201,16 @@ const idCaptureMachine = setup({
|
|
|
3199
3201
|
actions: assign({ permissionResult: ({ event }) => event.output })
|
|
3200
3202
|
}]
|
|
3201
3203
|
},
|
|
3202
|
-
on: {
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3204
|
+
on: {
|
|
3205
|
+
NEXT_STEP: {
|
|
3206
|
+
target: "#idCapture.capture",
|
|
3207
|
+
actions: "trackContinue"
|
|
3208
|
+
},
|
|
3209
|
+
REQUEST_PERMISSION: {
|
|
3210
|
+
target: "#idCapture.permissions.requesting",
|
|
3211
|
+
actions: "trackContinue"
|
|
3212
|
+
}
|
|
3213
|
+
}
|
|
3206
3214
|
},
|
|
3207
3215
|
initializingCamera: {
|
|
3208
3216
|
type: "parallel",
|
|
@@ -3258,20 +3266,44 @@ const idCaptureMachine = setup({
|
|
|
3258
3266
|
userIntent: {
|
|
3259
3267
|
initial: "booting",
|
|
3260
3268
|
states: {
|
|
3261
|
-
booting: { on: {
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3269
|
+
booting: { on: {
|
|
3270
|
+
NEXT_STEP: {
|
|
3271
|
+
target: "clicked",
|
|
3272
|
+
actions: "trackContinue"
|
|
3273
|
+
},
|
|
3274
|
+
REQUEST_PERMISSION: {
|
|
3275
|
+
target: "clicked",
|
|
3276
|
+
actions: "trackContinue"
|
|
3277
|
+
}
|
|
3278
|
+
} },
|
|
3265
3279
|
clicked: { type: "final" }
|
|
3266
3280
|
}
|
|
3267
3281
|
}
|
|
3268
3282
|
},
|
|
3269
3283
|
onDone: { target: "#idCapture.capture" }
|
|
3270
3284
|
},
|
|
3271
|
-
ready: { on: {
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3285
|
+
ready: { on: {
|
|
3286
|
+
NEXT_STEP: {
|
|
3287
|
+
target: "waitingForPermission",
|
|
3288
|
+
actions: "trackContinue"
|
|
3289
|
+
},
|
|
3290
|
+
REQUEST_PERMISSION: [
|
|
3291
|
+
{
|
|
3292
|
+
target: "waitingForPermission",
|
|
3293
|
+
guard: "isReadyForCapture",
|
|
3294
|
+
actions: "trackContinue"
|
|
3295
|
+
},
|
|
3296
|
+
{
|
|
3297
|
+
target: "#idCapture.permissions",
|
|
3298
|
+
guard: "isPermissionBlocked",
|
|
3299
|
+
actions: "trackContinue"
|
|
3300
|
+
},
|
|
3301
|
+
{
|
|
3302
|
+
target: "#idCapture.permissions.requesting",
|
|
3303
|
+
actions: "trackContinue"
|
|
3304
|
+
}
|
|
3305
|
+
]
|
|
3306
|
+
} },
|
|
3275
3307
|
waitingForPermission: { invoke: {
|
|
3276
3308
|
id: "checkPermissionWaiting",
|
|
3277
3309
|
src: "checkPermission",
|
|
@@ -3330,14 +3362,28 @@ const idCaptureMachine = setup({
|
|
|
3330
3362
|
},
|
|
3331
3363
|
on: {
|
|
3332
3364
|
REQUEST_PERMISSION: "requesting",
|
|
3333
|
-
GO_TO_LEARN_MORE: "learnMore"
|
|
3365
|
+
GO_TO_LEARN_MORE: "learnMore",
|
|
3366
|
+
BACK: {
|
|
3367
|
+
target: "#idCapture.tutorial.ready",
|
|
3368
|
+
guard: "hasShowTutorial"
|
|
3369
|
+
}
|
|
3334
3370
|
}
|
|
3335
3371
|
},
|
|
3336
3372
|
waitingForUser: { on: {
|
|
3337
3373
|
REQUEST_PERMISSION: "requesting",
|
|
3338
|
-
GO_TO_LEARN_MORE: "learnMore"
|
|
3374
|
+
GO_TO_LEARN_MORE: "learnMore",
|
|
3375
|
+
BACK: {
|
|
3376
|
+
target: "#idCapture.tutorial.ready",
|
|
3377
|
+
guard: "hasShowTutorial"
|
|
3378
|
+
}
|
|
3379
|
+
} },
|
|
3380
|
+
motionOnly: { on: {
|
|
3381
|
+
REQUEST_PERMISSION: "requesting",
|
|
3382
|
+
BACK: {
|
|
3383
|
+
target: "#idCapture.tutorial.ready",
|
|
3384
|
+
guard: "hasShowTutorial"
|
|
3385
|
+
}
|
|
3339
3386
|
} },
|
|
3340
|
-
motionOnly: { on: { REQUEST_PERMISSION: "requesting" } },
|
|
3341
3387
|
learnMore: { on: {
|
|
3342
3388
|
BACK: "idle",
|
|
3343
3389
|
REQUEST_PERMISSION: "requesting"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
|
|
2
2
|
import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
3
|
-
import { t as idOcrStateMachine } from "./idOcrStateMachine-
|
|
3
|
+
import { t as idOcrStateMachine } from "./idOcrStateMachine-33UvRAHE.esm.js";
|
|
4
4
|
//#region src/modules/id-ocr/idOcrActor.ts
|
|
5
5
|
function createIdOcrActor(options) {
|
|
6
6
|
return createActor(idOcrStateMachine, { input: { config: options.config } }).start();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
2
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
+
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
6
6
|
import { t as validateCPF } from "./cpf-BIADjddF.esm.js";
|
package/dist/{idVerificationManager-CcnzNq2Y.esm.js → idVerificationManager-CyaixD0D.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
|
|
2
2
|
import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
3
|
-
import { t as idVerificationMachine } from "./idVerificationStateMachine-
|
|
3
|
+
import { t as idVerificationMachine } from "./idVerificationStateMachine-BPGrQZEm.esm.js";
|
|
4
4
|
//#region src/modules/id-verification/idVerificationActor.ts
|
|
5
5
|
function createIdVerificationActor(options) {
|
|
6
6
|
return createActor(idVerificationMachine, { input: { config: options.config } }).start();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
2
|
+
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
3
3
|
import { t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
5
5
|
//#region src/modules/id-verification/idVerificationServices.ts
|
package/dist/identity-reuse.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as identityReuseMachine, d as ReusableDocument, f as SubmitResponse, i as createIdentityReuseManagerFromActor, l as FetchDocumentsResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as IdentityReuseConfig } from "./identityReuseManager-
|
|
1
|
+
import { c as identityReuseMachine, d as ReusableDocument, f as SubmitResponse, i as createIdentityReuseManagerFromActor, l as FetchDocumentsResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as IdentityReuseConfig } from "./identityReuseManager-BXEBBI3N.js";
|
|
2
2
|
export { type FetchDocumentsResponse, type IdentityReuseConfig, type IdentityReuseManager, type IdentityReuseState, type ReusableDocument, SCAN_NEW_DOCUMENT, type SelectedDocumentId, type SubmitResponse, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as identityReuseMachine, t as SCAN_NEW_DOCUMENT } from "./identityReuseStateMachine-
|
|
2
|
-
import { n as createIdentityReuseManagerFromActor, t as createIdentityReuseManager } from "./identityReuseManager-
|
|
1
|
+
import { n as identityReuseMachine, t as SCAN_NEW_DOCUMENT } from "./identityReuseStateMachine-CQgnATo5.esm.js";
|
|
2
|
+
import { n as createIdentityReuseManagerFromActor, t as createIdentityReuseManager } from "./identityReuseManager-CWaNHBO3.esm.js";
|
|
3
3
|
export { SCAN_NEW_DOCUMENT, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
|
|
@@ -108,14 +108,14 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
|
|
|
108
108
|
type: "setError";
|
|
109
109
|
params: NonReducibleUnknown;
|
|
110
110
|
};
|
|
111
|
-
clearError: {
|
|
112
|
-
type: "clearError";
|
|
113
|
-
params: NonReducibleUnknown;
|
|
114
|
-
};
|
|
115
111
|
setSelectedDocument: {
|
|
116
112
|
type: "setSelectedDocument";
|
|
117
113
|
params: NonReducibleUnknown;
|
|
118
114
|
};
|
|
115
|
+
clearError: {
|
|
116
|
+
type: "clearError";
|
|
117
|
+
params: NonReducibleUnknown;
|
|
118
|
+
};
|
|
119
119
|
}>, Values<{
|
|
120
120
|
hasDocuments: {
|
|
121
121
|
type: "hasDocuments";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
|
|
2
2
|
import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
3
|
-
import { n as identityReuseMachine } from "./identityReuseStateMachine-
|
|
3
|
+
import { n as identityReuseMachine } from "./identityReuseStateMachine-CQgnATo5.esm.js";
|
|
4
4
|
//#region src/modules/identity-reuse/identityReuseActor.ts
|
|
5
5
|
/**
|
|
6
6
|
* Creates and starts an IdentityReuse actor.
|
package/dist/{identityReuseStateMachine-BAhNyyC6.esm.js → identityReuseStateMachine-CQgnATo5.esm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
2
|
+
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
3
3
|
import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
5
5
|
//#region src/modules/identity-reuse/identityReuseServices.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
2
|
+
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
3
3
|
//#region src/internal/manualReview/manualReviewService.ts
|
|
4
4
|
async function flagFaceManualReview() {
|
|
5
5
|
try {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./Manager-CQQ99QOI.js";
|
|
2
|
-
import { n as Flow } from "./types-
|
|
2
|
+
import { n as Flow } from "./types-DzmqFoCH.js";
|
|
3
3
|
import { n as FinishStatus } from "./flowCompletionService-BlAHsKyv.js";
|
|
4
4
|
//#region src/internal/flow-events/flowEvents.d.ts
|
|
5
5
|
type FlowStartedEvent = {
|
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as reset, r as isConfigured, s as setup } from "./setup-
|
|
1
|
+
import { i as reset, r as isConfigured, s as setup } from "./setup-B7wLQFL-.esm.js";
|
|
2
2
|
export { isConfigured, reset, setup };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { r as MandatoryConsentConfig } from "./types-
|
|
2
|
-
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-
|
|
1
|
+
import { r as MandatoryConsentConfig } from "./types-DJ2OM9rw.js";
|
|
2
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-eFC-htLS.js";
|
|
3
3
|
export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-
|
|
2
|
-
import { n as createMandatoryConsentManagerFromActor, t as createMandatoryConsentManager } from "./mandatoryConsentManager-
|
|
1
|
+
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-DSDAk7WZ.esm.js";
|
|
2
|
+
import { n as createMandatoryConsentManagerFromActor, t as createMandatoryConsentManager } from "./mandatoryConsentManager-Du-m-tZ_.esm.js";
|
|
3
3
|
export { createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
|
package/dist/{mandatoryConsentManager-BiqhwVoc.esm.js → mandatoryConsentManager-Du-m-tZ_.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
|
|
2
2
|
import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
3
|
-
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-
|
|
3
|
+
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-DSDAk7WZ.esm.js";
|
|
4
4
|
//#region src/modules/mandatory-consent/mandatoryConsentActor.ts
|
|
5
5
|
function createMandatoryConsentActor(options) {
|
|
6
6
|
return createActor(mandatoryConsentMachine, { input: { config: options.config } }).start();
|
package/dist/{mandatoryConsentManager-BBZcmNkW.d.ts → mandatoryConsentManager-eFC-htLS.d.ts}
RENAMED
|
@@ -2,7 +2,7 @@ import { A as StateMachine, C as StateValue, D as PromiseActorLogic, a as ActorR
|
|
|
2
2
|
import "./StateMachine-EDpYWy0i.js";
|
|
3
3
|
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
4
4
|
import "./Actor-iTq7YY48.js";
|
|
5
|
-
import { n as MandatoryConsent, r as MandatoryConsentConfig, t as FetchMandatoryConsentResponse } from "./types-
|
|
5
|
+
import { n as MandatoryConsent, r as MandatoryConsentConfig, t as FetchMandatoryConsentResponse } from "./types-DJ2OM9rw.js";
|
|
6
6
|
//#region src/modules/mandatory-consent/mandatoryConsentStateMachine.d.ts
|
|
7
7
|
type MandatoryConsentContext = {
|
|
8
8
|
config: MandatoryConsentConfig;
|
|
@@ -57,14 +57,14 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
|
|
|
57
57
|
type: "setError";
|
|
58
58
|
params: NonReducibleUnknown;
|
|
59
59
|
};
|
|
60
|
-
toggleSigned: {
|
|
61
|
-
type: "toggleSigned";
|
|
62
|
-
params: NonReducibleUnknown;
|
|
63
|
-
};
|
|
64
60
|
clearError: {
|
|
65
61
|
type: "clearError";
|
|
66
62
|
params: NonReducibleUnknown;
|
|
67
63
|
};
|
|
64
|
+
toggleSigned: {
|
|
65
|
+
type: "toggleSigned";
|
|
66
|
+
params: NonReducibleUnknown;
|
|
67
|
+
};
|
|
68
68
|
resetContext: {
|
|
69
69
|
type: "resetContext";
|
|
70
70
|
params: NonReducibleUnknown;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
2
|
+
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
3
3
|
import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
5
5
|
//#region src/modules/mandatory-consent/mandatoryConsentServices.ts
|
package/dist/{multipartRecordingService-BLGAj7Yi.esm.js → multipartRecordingService-BMuxdyLL.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
+
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
4
4
|
import { a as isIOS } from "./platform-DkcRc9JV.esm.js";
|
|
5
5
|
//#region ../infra/src/media/mediaRecorderOptions.ts
|
|
6
6
|
/**
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
1
|
+
import { t as ensureWasmPipelines } from "./setup-B7wLQFL-.esm.js";
|
|
2
2
|
import { i as BaseWasmProvider, l as wasmRuntime } from "./safeStorage-0bZuUtSP.esm.js";
|
|
3
3
|
import { r as getToken } from "./api-Bx3gKW_y.esm.js";
|
|
4
|
-
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
5
|
-
import "./sessionInitializer-
|
|
6
|
-
import { t as addDeviceStats } from "./stats-
|
|
4
|
+
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-Dc_CQnmv.esm.js";
|
|
5
|
+
import "./sessionInitializer--S-S_NBR.esm.js";
|
|
6
|
+
import { t as addDeviceStats } from "./stats-DkK-f8JT.esm.js";
|
|
7
7
|
import { c as isIPhone14OrHigher, i as isDesktop } from "./platform-DkcRc9JV.esm.js";
|
|
8
8
|
import { a as stopCameraStream, r as requestCameraAccess } from "./camera-_2sXMXiF.esm.js";
|
|
9
9
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
10
10
|
import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
|
|
11
|
-
import { a as StreamCanvasProcessingSession, n as startRecording, r as stopRecording$1, t as createRecordingSession } from "./recordingsRepository-
|
|
11
|
+
import { a as StreamCanvasProcessingSession, n as startRecording, r as stopRecording$1, t as createRecordingSession } from "./recordingsRepository-CCWy13M-.esm.js";
|
|
12
12
|
import { i as hasBackCamera, n as getBackCameraStream, r as getDesktopCameraStream, t as ensureFrontCameraStream } from "./backCameraStream-DE_5qY04.esm.js";
|
|
13
13
|
//#region ../infra/src/scheduling/yieldUntilNextPaint.ts
|
|
14
14
|
/**
|
|
@@ -516,7 +516,7 @@ async function stopRecording(session) {
|
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
518
|
async function initializeDeepsightSession(options) {
|
|
519
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
519
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-C60qnKDV.esm.js");
|
|
520
520
|
return loadDeepsightSession({
|
|
521
521
|
ds: options.ds,
|
|
522
522
|
storage: options.storage
|
package/dist/personhood.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import "./Actor-iTq7YY48.js";
|
|
|
5
5
|
import { y as IncodeCanvas } from "./createFaceAvatar-pUEkdk4X.js";
|
|
6
6
|
import { i as IStorageCapability, t as IWasmUtilCapability } from "./IWasmUtilCapability-SNPhmIwB.js";
|
|
7
7
|
import { n as PermissionStatus, t as PermissionResult } from "./types-BEwVKkLJ.js";
|
|
8
|
-
import { n as DetectionStatus } from "./types-
|
|
8
|
+
import { n as DetectionStatus } from "./types-hSqUyXyw.js";
|
|
9
9
|
import { t as FaceDetectionProvider } from "./FaceDetectionProvider-Cn1wS-sA.js";
|
|
10
10
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
11
11
|
import { n as StreamCanvasCapture, t as DeepsightService } from "./deepsightService-MZOpj7Vp.js";
|