@incodetech/core 0.0.0-dev-20261118-4e70dc73 → 0.0.0-dev-20261118-66fa6112
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/{FaceDetectionProvider-B8VjYLtX.esm.js → FaceDetectionProvider-zrA7zBZC.esm.js} +4 -4
- package/dist/{MotionSensorProvider-DYxh8TjR.esm.js → MotionSensorProvider-X4_2eBGd.esm.js} +15 -0
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-Bx2a1X-l.esm.js → apiError-BXkJBsb4.esm.js} +1 -1
- package/dist/authentication.d.ts +2 -2
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-eYcurNiS.d.ts → authenticationManager-DeN8mraQ.d.ts} +1 -1
- package/dist/{authenticationManager-BeN9d9et.esm.js → authenticationManager-DquTcvNe.esm.js} +3 -3
- package/dist/{authenticationStateMachine-D591MWdP.esm.js → authenticationStateMachine-DevxFE2x.esm.js} +3 -3
- package/dist/camera.d.ts +5 -1
- package/dist/camera.esm.js +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-DlvhoJYc.d.ts → consentManager-B0YKqYtZ.d.ts} +1 -1
- package/dist/{deepsightLoader-BNRWpi5D.esm.js → deepsightLoader-D6BxqlAr.esm.js} +4 -4
- package/dist/{desktopCameraElection-Bu2QTynu.esm.js → desktopCameraElection-DGq3YDWU.esm.js} +1 -1
- package/dist/document-capture.d.ts +2 -2
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-signature.esm.js +1 -1
- package/dist/{documentCaptureManager-Bt3-8L6d.esm.js → documentCaptureManager-D9LE-4ey.esm.js} +1 -1
- package/dist/{documentCaptureManager-BhGmZFF7.d.ts → documentCaptureManager-sJWgqtUy.d.ts} +3 -3
- package/dist/{documentCaptureStateMachine-BUy1LJ4r.esm.js → documentCaptureStateMachine-SXXKqpZz.esm.js} +4 -3
- package/dist/{documentSignatureStateMachine-3n12_IiO.esm.js → documentSignatureStateMachine-BygBeIL6.esm.js} +3 -2
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-BoSFVRj1.esm.js → dynamicFormsManager-b6YWjGf3.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-Q1Ryntc3.esm.js → dynamicFormsStateMachine-D47eOxTM.esm.js} +1 -1
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-BS46AGjk.esm.js → ekybManager-B3hf3Z1_.esm.js} +1 -1
- package/dist/{ekybStateMachine-X2Mvy5mZ.esm.js → ekybStateMachine-C6GYGhI6.esm.js} +1 -1
- package/dist/ekyc-prefill.d.ts +1 -1
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/{ekycPrefillManager-BcLhkpp8.d.ts → ekycPrefillManager-BF6YIJ_s.d.ts} +4 -4
- package/dist/{ekycPrefillManager-BNQXkYf5.esm.js → ekycPrefillManager-DyArkUxd.esm.js} +1 -1
- package/dist/{ekycPrefillStateMachine-HwtoiZkX.esm.js → ekycPrefillStateMachine-BNmxyk0x.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-BaF5Hzmu.esm.js → electronicSignatureManager-CCAIiOUH.esm.js} +1 -1
- package/dist/extensibility.d.ts +10 -10
- package/dist/extensibility.esm.js +13 -13
- package/dist/{faceCaptureManagerFactory-DhDPxxp-.d.ts → faceCaptureManagerFactory-D0pyWORs.d.ts} +10 -4
- package/dist/{faceCaptureManagerFactory-Da6Tfbo8.esm.js → faceCaptureManagerFactory-D_QZ7_GZ.esm.js} +12 -7
- package/dist/{faceCaptureSetup-t20PYion.esm.js → faceCaptureSetup-DVg-3jvJ.esm.js} +48 -34
- package/dist/{feature-management-C_-xbYLN.esm.js → feature-management-bb7e3xH1.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/flow.d.ts +2 -2
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-Dn9nzX6q.esm.js → flowCompletionService-FoZHmtuh.esm.js} +1 -1
- package/dist/{flowServices-BASJH6dk.esm.js → flowServices-Cb1yOyP7.esm.js} +4 -4
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-MrZjrAYb.esm.js → geolocationManager-CNXg1Dpy.esm.js} +1 -1
- package/dist/{geolocationStateMachine-wAE4tuGY.esm.js → geolocationStateMachine-CRauJfO2.esm.js} +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +6 -6
- package/dist/id.d.ts +3 -3
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-CaRxd7_4.esm.js → idCaptureManager-B_kW_Tht.esm.js} +12 -6
- package/dist/{idCaptureManager-DzAMWmRO.d.ts → idCaptureManager-kmR_AuiW.d.ts} +5 -2
- package/dist/{idCaptureServices-CfXKITWC.esm.js → idCaptureServices-B8RCTuG1.esm.js} +2 -2
- package/dist/{idCaptureStateMachine-BNxournC.esm.js → idCaptureStateMachine-BXYgFrOu.esm.js} +57 -40
- package/dist/{idOcrManager-C0C7lFGd.d.ts → idOcrManager-DflRx-_u.d.ts} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/kyb-checks.esm.js +2 -2
- package/dist/{kybChecksManager-VRf3BMre.esm.js → kybChecksManager-C0k2jWm-.esm.js} +1 -1
- package/dist/{kybChecksStateMachine--xKRJ5aM.esm.js → kybChecksStateMachine-gHbk5JIy.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-BGGbTEwN.d.ts → mandatoryConsentManager-D6tBmPDy.d.ts} +1 -1
- package/dist/{permissionGuards-Dkz3FWte.esm.js → permissionGuards-BN_Tyjgt.esm.js} +1 -1
- package/dist/{permissionServices-IayHAnIi.esm.js → permissionServices-DB7ckY8v.esm.js} +16 -5
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{runChildModule-OzZ_AsrW.esm.js → runChildModule-S2BDlsUp.esm.js} +1 -1
- package/dist/{sdkVersion-bwyLIRlS.esm.js → sdkVersion-DTQNNiYw.esm.js} +1 -1
- package/dist/selfie.d.ts +3 -3
- package/dist/selfie.esm.js +7 -7
- package/dist/{selfieErrorUtils-DWaArwL1.esm.js → selfieErrorUtils-Bnh773CF.esm.js} +1 -1
- package/dist/{selfieManager-BjntOr-o.esm.js → selfieManager-C8O3PFap.esm.js} +3 -3
- package/dist/{selfieManager-C5a6Fw6W.d.ts → selfieManager-CAaZRbem.d.ts} +1 -1
- package/dist/{selfieStateMachine-CZS_oXhL.esm.js → selfieStateMachine-CiKtze3D.esm.js} +3 -3
- package/dist/{session-C1uJNFOS.esm.js → session-DILqiVPa.esm.js} +3 -3
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-Dj9Psc_3.esm.js → sessionInitializer-TUeHes3r.esm.js} +3 -3
- package/dist/{setup-DtedaNiv.esm.js → setup-Cgs2VvA2.esm.js} +4 -4
- package/dist/{trueSightService-BoJpFzW9.esm.js → trueSightService-BZemVMb-.esm.js} +1 -1
- package/dist/{types-BBHnkH6S.d.ts → types-Bybof0yq.d.ts} +8 -1
- package/dist/{types-BEwVKkLJ.d.ts → types-CeEcakO7.d.ts} +7 -1
- package/dist/{types-CaVUb1DL.d.ts → types-Cy6Lx3L6.d.ts} +1 -1
- package/dist/video-selfie.esm.js +3 -3
- package/dist/{videoSelfieCameraWarmer-3D3LKUAj.esm.js → videoSelfieCameraWarmer-mMnOON5_.esm.js} +4 -4
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.esm.js +17 -17
- package/package.json +3 -3
package/dist/{faceCaptureManagerFactory-Da6Tfbo8.esm.js → faceCaptureManagerFactory-D_QZ7_GZ.esm.js}
RENAMED
|
@@ -3,10 +3,10 @@ import { t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
|
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
5
|
import { t as splitTrackedName } from "./splitTrackedName-3zJRd2RD.esm.js";
|
|
6
|
-
import { r as concealmentToAvatar } from "./faceCaptureSetup-
|
|
6
|
+
import { r as concealmentToAvatar } from "./faceCaptureSetup-DVg-3jvJ.esm.js";
|
|
7
7
|
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BHm1d2gA.esm.js";
|
|
8
8
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
9
|
-
import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-
|
|
9
|
+
import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-DB7ckY8v.esm.js";
|
|
10
10
|
//#region src/internal/faceCapture/faceCaptureManagerFactory.ts
|
|
11
11
|
function getPermissionStatus(snapshot) {
|
|
12
12
|
if (!snapshot.matches("permissions")) return;
|
|
@@ -15,6 +15,7 @@ function getPermissionStatus(snapshot) {
|
|
|
15
15
|
if (snapshot.matches({ permissions: "learnMore" })) return "learnMore";
|
|
16
16
|
if (snapshot.matches({ permissions: "requesting" })) return "requesting";
|
|
17
17
|
if (snapshot.matches({ permissions: "denied" })) return "denied";
|
|
18
|
+
if (snapshot.matches({ permissions: "motionDenied" })) return "motionDenied";
|
|
18
19
|
if (snapshot.matches({ permissions: "motionOnly" })) return "motionOnly";
|
|
19
20
|
}
|
|
20
21
|
function getCaptureStatus(snapshot) {
|
|
@@ -221,7 +222,7 @@ function getFaceCaptureTrackedName(snapshot, moduleName) {
|
|
|
221
222
|
case "idle": return "faceCapture.loading.processing";
|
|
222
223
|
case "loading": return "faceCapture.loading.processing";
|
|
223
224
|
case "tutorial": return getFaceCaptureTutorialScreen(snapshot);
|
|
224
|
-
case "permissions": return "faceCapture.tutorial.default";
|
|
225
|
+
case "permissions": return value.permissions === "motionDenied" ? "faceCapture.tutorial.motionPermissionDenied" : "faceCapture.tutorial.default";
|
|
225
226
|
case "capture": return getCaptureSubstateScreen(snapshot);
|
|
226
227
|
case "processing":
|
|
227
228
|
case "terminalProcessing": return "faceCapture.loading.processing";
|
|
@@ -241,6 +242,7 @@ function getFaceCaptureStateName(snapshot, moduleName) {
|
|
|
241
242
|
function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished }) {
|
|
242
243
|
const snapshot = actor.getSnapshot();
|
|
243
244
|
snapshot.context.dependencies.trackCaptureAttemptFinished = trackCaptureAttemptFinished;
|
|
245
|
+
const isMotionDenied = () => actor.getSnapshot().matches({ permissions: "motionDenied" });
|
|
244
246
|
return {
|
|
245
247
|
/**
|
|
246
248
|
* Starts the face capture flow.
|
|
@@ -270,11 +272,14 @@ function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished })
|
|
|
270
272
|
actor.send({ type: "NEXT_STEP" });
|
|
271
273
|
},
|
|
272
274
|
/**
|
|
273
|
-
* Requests camera permission via getUserMedia.
|
|
274
|
-
*
|
|
275
|
+
* Requests camera permission via getUserMedia (and, with deepsight, motion).
|
|
276
|
+
* Effective in `permissions.waitingForUser`, `permissions.motionOnly` and
|
|
277
|
+
* `permissions.learnMore`. In `permissions.motionDenied` it asks iOS for
|
|
278
|
+
* Motion & Orientation again; call it straight from a user tap, since iOS
|
|
279
|
+
* only shows its prompt during one.
|
|
275
280
|
*/
|
|
276
281
|
requestPermission() {
|
|
277
|
-
trackElementClicked?.("requestPermission");
|
|
282
|
+
trackElementClicked?.(isMotionDenied() ? "primaryCTA.allowPermission" : "requestPermission");
|
|
278
283
|
actor.send({ type: "REQUEST_PERMISSION" });
|
|
279
284
|
},
|
|
280
285
|
/**
|
|
@@ -298,7 +303,7 @@ function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished })
|
|
|
298
303
|
* Can be called from any state.
|
|
299
304
|
*/
|
|
300
305
|
close() {
|
|
301
|
-
trackElementClicked?.("close");
|
|
306
|
+
trackElementClicked?.(isMotionDenied() ? "secondaryCTA.quitProcess" : "close");
|
|
302
307
|
actor.send({ type: "QUIT" });
|
|
303
308
|
},
|
|
304
309
|
/**
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
2
|
import { r as getToken } from "./api-DSZSaaWr.esm.js";
|
|
3
|
-
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity, u as trueSightLog, y as isTrueSightTesting } from "./trueSightService-
|
|
4
|
-
import "./sessionInitializer-
|
|
3
|
+
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity, u as trueSightLog, y as isTrueSightTesting } from "./trueSightService-BZemVMb-.esm.js";
|
|
4
|
+
import "./sessionInitializer-TUeHes3r.esm.js";
|
|
5
5
|
import { t as addDeviceStats } from "./stats-VqHbD5rn.esm.js";
|
|
6
6
|
import { s as isIPhone14OrHigher } from "./platform-GIg4uPWe.esm.js";
|
|
7
7
|
import { i as assign, n as enqueueActions, r as sendTo, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
8
8
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
9
9
|
import { c as isCameraDenialErrorName } from "./camera-CJKApt0x.esm.js";
|
|
10
|
-
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-
|
|
11
|
-
import { a as sendLabelInspectionEvent, i as probeFaceCamera, l as getFaceUploadErrorCode, r as initializeDeepsightSession, t as FaceDetectionProvider, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-
|
|
12
|
-
import { a as flagFaceManualReview, i as cameraCycleProvider, n as createCameraCycleOwnership, r as runProtectedAttempt, s as PROTECTED_CAPTURE_TARGET, t as electDesktopCameraDevice } from "./desktopCameraElection-
|
|
10
|
+
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-DB7ckY8v.esm.js";
|
|
11
|
+
import { a as sendLabelInspectionEvent, i as probeFaceCamera, l as getFaceUploadErrorCode, r as initializeDeepsightSession, t as FaceDetectionProvider, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-zrA7zBZC.esm.js";
|
|
12
|
+
import { a as flagFaceManualReview, i as cameraCycleProvider, n as createCameraCycleOwnership, r as runProtectedAttempt, s as PROTECTED_CAPTURE_TARGET, t as electDesktopCameraDevice } from "./desktopCameraElection-DGq3YDWU.esm.js";
|
|
13
13
|
import { n as releaseFaceAvatarWarmup, r as warmFaceAvatar, t as createFaceAvatar } from "./createFaceAvatar-BNHdeFj8.esm.js";
|
|
14
14
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
15
|
-
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-
|
|
15
|
+
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-BN_Tyjgt.esm.js";
|
|
16
16
|
import { t as carryAttempts } from "./attemptCarry-QFQkA3na.esm.js";
|
|
17
17
|
import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
|
|
18
18
|
//#region src/internal/avatar/concealment.ts
|
|
@@ -925,6 +925,7 @@ const faceCaptureMachine = setup({
|
|
|
925
925
|
uploadError: void 0,
|
|
926
926
|
userNotRecognized: void 0,
|
|
927
927
|
permissionResult: void 0,
|
|
928
|
+
retryDeniedMotionPermission: false,
|
|
928
929
|
deepsightReady: false,
|
|
929
930
|
manualCaptureTriggered: false,
|
|
930
931
|
retainManualMode: false,
|
|
@@ -948,7 +949,7 @@ const faceCaptureMachine = setup({
|
|
|
948
949
|
setUploadErrorFromUploadValidation: assign({ uploadError: () => FACE_ERROR_CODES.SERVER }),
|
|
949
950
|
setTerminalError: assign({ error: () => "Authentication failed" }),
|
|
950
951
|
cleanup: () => void 0,
|
|
951
|
-
setPermissionResultFromEvent: assign({ permissionResult: ({ event }) => event.output }),
|
|
952
|
+
setPermissionResultFromEvent: assign({ permissionResult: ({ context, event }) => resolveStoredPermissionResult(event.output, context.permissionResult) }),
|
|
952
953
|
setPermissionDenied: assign({ permissionResult: () => "denied" }),
|
|
953
954
|
setPermissionPrompt: assign({ permissionResult: () => "prompt" }),
|
|
954
955
|
setPermissionRefresh: assign({ permissionResult: () => "refresh" }),
|
|
@@ -1136,6 +1137,7 @@ const faceCaptureMachine = setup({
|
|
|
1136
1137
|
uploadError: void 0,
|
|
1137
1138
|
userNotRecognized: carried.userNotRecognized,
|
|
1138
1139
|
permissionResult: void 0,
|
|
1140
|
+
retryDeniedMotionPermission: false,
|
|
1139
1141
|
deepsightReady: false,
|
|
1140
1142
|
encryptedBase64Image: void 0,
|
|
1141
1143
|
uploadRecordingId: void 0,
|
|
@@ -1383,33 +1385,45 @@ const faceCaptureMachine = setup({
|
|
|
1383
1385
|
BACK: "idle",
|
|
1384
1386
|
REQUEST_PERMISSION: "requesting"
|
|
1385
1387
|
} },
|
|
1386
|
-
requesting: {
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1388
|
+
requesting: {
|
|
1389
|
+
exit: assign({ retryDeniedMotionPermission: false }),
|
|
1390
|
+
invoke: {
|
|
1391
|
+
id: "requestPermission",
|
|
1392
|
+
src: "requestPermission",
|
|
1393
|
+
input: ({ context }) => ({
|
|
1394
|
+
permissionResult: context.permissionResult === "refresh" ? void 0 : context.permissionResult,
|
|
1395
|
+
requestMotionPermission: context.config.ds === true,
|
|
1396
|
+
retryDeniedMotionPermission: context.retryDeniedMotionPermission,
|
|
1397
|
+
requestAudio: requestsFaceSessionAudio(context.config)
|
|
1398
|
+
}),
|
|
1399
|
+
onDone: [
|
|
1400
|
+
{
|
|
1401
|
+
target: "motionDenied",
|
|
1402
|
+
guard: ({ event }) => event.output === "motionDenied"
|
|
1403
|
+
},
|
|
1404
|
+
{
|
|
1405
|
+
target: "#faceCapture.capture",
|
|
1406
|
+
guard: "isReadyForCapture",
|
|
1407
|
+
actions: "setPermissionResultFromEvent"
|
|
1408
|
+
},
|
|
1409
|
+
{
|
|
1410
|
+
target: "denied",
|
|
1411
|
+
guard: ({ event }) => event.output === "denied",
|
|
1412
|
+
actions: "setPermissionResultFromEvent"
|
|
1413
|
+
},
|
|
1414
|
+
{
|
|
1415
|
+
target: "waitingForUser",
|
|
1416
|
+
actions: "setPermissionResultFromEvent"
|
|
1417
|
+
}
|
|
1418
|
+
],
|
|
1419
|
+
onError: { target: "denied" }
|
|
1420
|
+
}
|
|
1421
|
+
},
|
|
1422
|
+
denied: { entry: "setPermissionRefresh" },
|
|
1423
|
+
motionDenied: { on: { REQUEST_PERMISSION: {
|
|
1424
|
+
target: "requesting",
|
|
1425
|
+
actions: assign({ retryDeniedMotionPermission: true })
|
|
1426
|
+
} } }
|
|
1413
1427
|
}
|
|
1414
1428
|
},
|
|
1415
1429
|
capture: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as __toESM } from "./rolldown-runtime-B-1-B7_t.esm.js";
|
|
2
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
2
|
+
import { t as SDK_VERSION } from "./sdkVersion-DTQNNiYw.esm.js";
|
|
3
3
|
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
4
4
|
let currentEnvironment;
|
|
5
5
|
/** Effective tier: the explicitly-set value, else the default (see note above). */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { E as updateFeatureManagementUser, T as subscribeFeatureManagement, _ as getIsFeatureManagementInitialized, a as stringParam, d as ONBOARDING_WEB_SDK_PARAMETER_STORE, f as getExperiment, g as getFeatureParameterStore, h as getFeatureManagementVersion, i as numberParam, l as resolveExperiment, m as getFeatureGate, n as defineExperimentParams, o as EXPERIMENT_UNAVAILABLE_SENTINEL, p as getFeatureDynamicConfig, r as enumParam, s as exposeExperimentOnce, t as booleanParam, u as resolveExperimentOnce, x as logEvent, y as getLayer } from "./feature-management-
|
|
1
|
+
import { E as updateFeatureManagementUser, T as subscribeFeatureManagement, _ as getIsFeatureManagementInitialized, a as stringParam, d as ONBOARDING_WEB_SDK_PARAMETER_STORE, f as getExperiment, g as getFeatureParameterStore, h as getFeatureManagementVersion, i as numberParam, l as resolveExperiment, m as getFeatureGate, n as defineExperimentParams, o as EXPERIMENT_UNAVAILABLE_SENTINEL, p as getFeatureDynamicConfig, r as enumParam, s as exposeExperimentOnce, t as booleanParam, u as resolveExperimentOnce, x as logEvent, y as getLayer } from "./feature-management-bb7e3xH1.esm.js";
|
|
2
2
|
export { EXPERIMENT_UNAVAILABLE_SENTINEL, ONBOARDING_WEB_SDK_PARAMETER_STORE, booleanParam, defineExperimentParams, enumParam, exposeExperimentOnce, getExperiment, getFeatureDynamicConfig, getFeatureGate, getFeatureManagementVersion, getFeatureParameterStore, getIsFeatureManagementInitialized, getLayer, logEvent, numberParam, resolveExperiment, resolveExperimentOnce, stringParam, subscribeFeatureManagement, updateFeatureManagementUser };
|
package/dist/flow.d.ts
CHANGED
|
@@ -6,10 +6,10 @@ import { a as ElectronicSignatureConfig } from "./types-D0gekt4U.js";
|
|
|
6
6
|
import { t as EkycConfig } from "./types-DEa3taWc.js";
|
|
7
7
|
import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-B2DGXHe6.js";
|
|
8
8
|
import { t as AuthenticationConfig } from "./types-C2uJrJrS.js";
|
|
9
|
-
import { r as DocumentCaptureConfig } from "./types-
|
|
9
|
+
import { r as DocumentCaptureConfig } from "./types-Cy6Lx3L6.js";
|
|
10
10
|
import { t as DynamicFormsConfig } from "./types-BSBzhHRH.js";
|
|
11
11
|
import { t as EkybConfig } from "./types-BgRHw-dR.js";
|
|
12
|
-
import { u as IdCaptureConfig } from "./types-
|
|
12
|
+
import { u as IdCaptureConfig } from "./types-Bybof0yq.js";
|
|
13
13
|
import { r as MandatoryConsentConfig } from "./types-BkWUNheX.js";
|
|
14
14
|
import { t as IdOcrConfig } from "./types-Bpo97EOh.js";
|
|
15
15
|
import { t as RedirectToMobileConfig } from "./types-DNVzoRvi.js";
|
package/dist/flow.esm.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { g as screenOpened, m as screenClosed, v as addEvent } from "./types-CBQN04Rh.esm.js";
|
|
2
2
|
import "./events-CsPmTidH.esm.js";
|
|
3
3
|
import { i as retryAfterReconnect } from "./connectivity-BCuEoQ-n.esm.js";
|
|
4
|
-
import { S as mergeDashboardConfig, _ as resolveFlowModuleConfig, a as resolveDashboardModuleConfig, c as decideFlowPresets, d as stepsThatMayRunNext, f as enrichFlowModuleConfig, g as normalizeFlowModules, h as loadFlowConfigConverters, l as flowPresetAnalyticsModule, m as getRequiredWasmPipelines, n as getFlow, o as applyFlowPresets, p as getNextRequiredWasmPipelines, r as preloadDashboardFlow, s as armFlowPresets, t as completeDeferredActivation, u as getFirstFlowModuleKey, x as applyModulesConfig } from "./flowServices-
|
|
4
|
+
import { S as mergeDashboardConfig, _ as resolveFlowModuleConfig, a as resolveDashboardModuleConfig, c as decideFlowPresets, d as stepsThatMayRunNext, f as enrichFlowModuleConfig, g as normalizeFlowModules, h as loadFlowConfigConverters, l as flowPresetAnalyticsModule, m as getRequiredWasmPipelines, n as getFlow, o as applyFlowPresets, p as getNextRequiredWasmPipelines, r as preloadDashboardFlow, s as armFlowPresets, t as completeDeferredActivation, u as getFirstFlowModuleKey, x as applyModulesConfig } from "./flowServices-Cb1yOyP7.esm.js";
|
|
5
5
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
6
6
|
import { i as assign, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
7
7
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
8
|
-
import { a as getTotalScoreStatus, i as getHandoffFinishStatus, n as classifyScoreStatus, r as getFinishStatus, t as HANDOFF_COMPLETION_TIMEOUT_MS } from "./flowCompletionService-
|
|
9
|
-
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-
|
|
8
|
+
import { a as getTotalScoreStatus, i as getHandoffFinishStatus, n as classifyScoreStatus, r as getFinishStatus, t as HANDOFF_COMPLETION_TIMEOUT_MS } from "./flowCompletionService-FoZHmtuh.esm.js";
|
|
9
|
+
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-S2BDlsUp.esm.js";
|
|
10
10
|
import { n as isAdvanceableError } from "./advanceableErrors-CxZyPRyh.esm.js";
|
|
11
11
|
//#region src/modules/flow/noOpFlowModuleMachine.ts
|
|
12
12
|
const noOpFlowModuleMachine = /* @__PURE__ */ (() => setup({}).createMachine({
|
package/dist/{flowCompletionService-Dn9nzX6q.esm.js → flowCompletionService-FoZHmtuh.esm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
2
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
2
|
+
import { i as toIncodeApiError } from "./apiError-BXkJBsb4.esm.js";
|
|
3
3
|
//#region src/modules/flow/flowCompletionService.ts
|
|
4
4
|
const getFinishStatus = async (flowId, signal) => {
|
|
5
5
|
const url = `${endpoints.finishStatus}${flowId ? `?flowId=${flowId}` : ""}`;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as getWasmStatus } from "./warmup-BZOMg303.esm.js";
|
|
2
2
|
import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
3
3
|
import { r as getToken, t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
4
|
-
import { a as initializeSession, f as whenSessionFingerprintSettled, i as getSessionFingerprintResult, p as getStandaloneFlowPolicy, t as endDeviceHashWait } from "./sessionInitializer-
|
|
5
|
-
import { E as updateFeatureManagementUser } from "./feature-management-
|
|
6
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
7
|
-
import "./session-
|
|
4
|
+
import { a as initializeSession, f as whenSessionFingerprintSettled, i as getSessionFingerprintResult, p as getStandaloneFlowPolicy, t as endDeviceHashWait } from "./sessionInitializer-TUeHes3r.esm.js";
|
|
5
|
+
import { E as updateFeatureManagementUser } from "./feature-management-bb7e3xH1.esm.js";
|
|
6
|
+
import { i as toIncodeApiError } from "./apiError-BXkJBsb4.esm.js";
|
|
7
|
+
import "./session-DILqiVPa.esm.js";
|
|
8
8
|
import { n as loadPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
|
|
9
9
|
import { a as prefetchStartInfo } from "./phoneServices-C9lFIuCM.esm.js";
|
|
10
10
|
//#region src/modules/flow/dashboardConfig.ts
|
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-CNXg1Dpy.esm.js";
|
|
2
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-CRauJfO2.esm.js";
|
|
3
3
|
export { createGeolocationManager, geolocationMachine };
|
|
@@ -2,7 +2,7 @@ import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
|
2
2
|
import { t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
|
|
3
3
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
5
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-CRauJfO2.esm.js";
|
|
6
6
|
//#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
|
|
7
7
|
var BrowserGeolocationProvider = class {
|
|
8
8
|
getCurrentPosition() {
|
package/dist/{geolocationStateMachine-wAE4tuGY.esm.js → geolocationStateMachine-CRauJfO2.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
2
2
|
import { i as isIOS, t as isAndroid } from "./platform-GIg4uPWe.esm.js";
|
|
3
|
-
import { n as isConnectivityError } from "./apiError-
|
|
3
|
+
import { n as isConnectivityError } from "./apiError-BXkJBsb4.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
6
6
|
import { t as carryAttempts } from "./attemptCarry-QFQkA3na.esm.js";
|
package/dist/id-ocr.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as UpdateOcrDataParams, n as OcrData, o as ValidationRule, r as OcrFieldConfig, t as IdOcrConfig } from "./types-Bpo97EOh.js";
|
|
2
|
-
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager } from "./idOcrManager-
|
|
2
|
+
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, o as IdOcrOcrDocument, r as createIdOcrManager, s as idOcrStateMachine, t as IdOcrManager } from "./idOcrManager-DflRx-_u.js";
|
|
3
3
|
//#region src/modules/id-ocr/idOcrFields.d.ts
|
|
4
4
|
declare const OCR_FIELDS: OcrFieldConfig[];
|
|
5
5
|
declare const getOcrFields: (config: Pick<IdOcrConfig, "cpfOnly" | "flowId">) => OcrFieldConfig[];
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
1
|
+
import { t as ensureWasmPipelines } from "./setup-Cgs2VvA2.esm.js";
|
|
2
2
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-BW_4YKrg.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
|
-
import { a as resolveDashboardModuleConfig, v as facingModeForStep } from "./flowServices-
|
|
4
|
+
import { a as resolveDashboardModuleConfig, v as facingModeForStep } from "./flowServices-Cb1yOyP7.esm.js";
|
|
5
5
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
6
6
|
import { i as assign, r as sendTo, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
7
7
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
8
|
-
import { c as uploadSelfie, n as encryptSelfieImage, o as startDetection, s as processFace, t as FaceDetectionProvider } from "./FaceDetectionProvider-
|
|
8
|
+
import { c as uploadSelfie, n as encryptSelfieImage, o as startDetection, s as processFace, t as FaceDetectionProvider } from "./FaceDetectionProvider-zrA7zBZC.esm.js";
|
|
9
9
|
import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
|
|
10
10
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
11
11
|
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-CRn9jT4K.esm.js";
|
|
12
|
-
import { _ as validateUploadResponse, d as processId, g as uploadIdImage, v as ID_ERROR_CODES } from "./idCaptureServices-
|
|
12
|
+
import { _ as validateUploadResponse, d as processId, g as uploadIdImage, v as ID_ERROR_CODES } from "./idCaptureServices-B8RCTuG1.esm.js";
|
|
13
13
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-CXd87trH.esm.js";
|
|
14
|
-
import { r as getFinishStatus } from "./flowCompletionService-
|
|
15
|
-
import { a as isSelfieValidationError, i as delay, n as defaultAcquireCamera, o as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-
|
|
14
|
+
import { r as getFinishStatus } from "./flowCompletionService-FoZHmtuh.esm.js";
|
|
15
|
+
import { a as isSelfieValidationError, i as delay, n as defaultAcquireCamera, o as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-mMnOON5_.esm.js";
|
|
16
16
|
import { t as CameraCompositor } from "./CameraCompositor-C7N1N61V.esm.js";
|
|
17
17
|
//#region src/modules/id-selfie-flow/idSelfieFlowStepDetector.ts
|
|
18
18
|
/** Default autocapture window for the selfie step. */
|
package/dist/id.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
2
|
-
import { n as PermissionStatus, t as PermissionResult } from "./types-
|
|
3
|
-
import { A as ValidationError, B as processId, C as AddBarcodeParams, D as InitializeIdCaptureParams, E as IdCaptureInitResult, F as getRealQualityValue, G as uploadIdImage, H as startRecordingSession, I as initializeIdCapture, K as validateUploadResponse, L as isSuspendableRecordingSession, M as barcodeToBase64, N as disposeRecordingSession, O as StartRecordingParams, P as finalizeRecordingSession, R as pauseRecordingForAttempt, S as idCaptureMachine, T as ID_QUALITY_BACKEND_VALIDATION_GATE, U as stopRecording, V as resumeRecordingAfterPause, W as stopStream, _ as idCaptureOnlyMachine, a as RenderWalletError, b as createIdCaptureActor, c as DeviceWalletManager, d as CreateDeviceWalletActorOptions, f as resolveWalletPlatform, g as IdCaptureOnlyMachine, h as createIdCaptureOnlyActor, j as addBarcode, k as UploadIdImageParams, l as DeviceWalletState, m as IdCaptureOnlyActor, n as IdCaptureManager, o as RenderWalletParams, p as CreateIdCaptureOnlyActorOptions, r as IdCaptureState, s as renderWallet, t as createIdCaptureManager, u as createDeviceWalletManager, v as CreateIdCaptureActorOptions, w as FinalizedIdRecording, x as IdCaptureMachine, y as IdCaptureActor, z as prepareRecordingForCameraRetry } from "./idCaptureManager-
|
|
2
|
+
import { n as PermissionStatus, t as PermissionResult } from "./types-CeEcakO7.js";
|
|
3
|
+
import { A as ValidationError, B as processId, C as AddBarcodeParams, D as InitializeIdCaptureParams, E as IdCaptureInitResult, F as getRealQualityValue, G as uploadIdImage, H as startRecordingSession, I as initializeIdCapture, K as validateUploadResponse, L as isSuspendableRecordingSession, M as barcodeToBase64, N as disposeRecordingSession, O as StartRecordingParams, P as finalizeRecordingSession, R as pauseRecordingForAttempt, S as idCaptureMachine, T as ID_QUALITY_BACKEND_VALIDATION_GATE, U as stopRecording, V as resumeRecordingAfterPause, W as stopStream, _ as idCaptureOnlyMachine, a as RenderWalletError, b as createIdCaptureActor, c as DeviceWalletManager, d as CreateDeviceWalletActorOptions, f as resolveWalletPlatform, g as IdCaptureOnlyMachine, h as createIdCaptureOnlyActor, j as addBarcode, k as UploadIdImageParams, l as DeviceWalletState, m as IdCaptureOnlyActor, n as IdCaptureManager, o as RenderWalletParams, p as CreateIdCaptureOnlyActorOptions, r as IdCaptureState, s as renderWallet, t as createIdCaptureManager, u as createDeviceWalletManager, v as CreateIdCaptureActorOptions, w as FinalizedIdRecording, x as IdCaptureMachine, y as IdCaptureActor, z as prepareRecordingForCameraRetry } from "./idCaptureManager-kmR_AuiW.js";
|
|
4
4
|
import { t as CameraStream } from "./camera-9yYDUOsO.js";
|
|
5
5
|
import { r as IdCaptureSettings, t as DetectionOrientation } from "./IIdCaptureCapability-C-5M8pP1.js";
|
|
6
|
-
import { A as DigitalIdCountryDetectionDependencies, B as DeviceWalletDecryptResponse, C as IdCapturedImageData, D as IdFlowStep, E as IdErrorCode, F as DigitalIdPlatformSupport, H as DeviceWalletOutput, I as ResolvedDigitalIdRoute, J as RedirectReturnParams, K as DigitalIdProviderId, L as isRedirectFlowType, M as DIGITAL_ID_REGISTRY, N as DigitalIdDocumentType, O as UploadIdResponse, P as DigitalIdFunnelEntry, R as resolveDigitalIdImplementation, S as IdCaptureThresholds, T as IdError, U as DeviceWalletPlatform, V as DeviceWalletFailReason, W as DeviceWalletProvider, _ as IdCaptureGeometry, a as CaptureOnlyResponse, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, j as DIGITAL_ID_DOCUMENT_TYPES, l as ID_ERROR_CODES, m as IdCaptureDigitalIdMethod, n as AcceptedDocumentType, o as CapturedImage, p as IdCaptureDigitalIdFlowType, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode, z as DeviceWalletDecision } from "./types-
|
|
6
|
+
import { A as DigitalIdCountryDetectionDependencies, B as DeviceWalletDecryptResponse, C as IdCapturedImageData, D as IdFlowStep, E as IdErrorCode, F as DigitalIdPlatformSupport, H as DeviceWalletOutput, I as ResolvedDigitalIdRoute, J as RedirectReturnParams, K as DigitalIdProviderId, L as isRedirectFlowType, M as DIGITAL_ID_REGISTRY, N as DigitalIdDocumentType, O as UploadIdResponse, P as DigitalIdFunnelEntry, R as resolveDigitalIdImplementation, S as IdCaptureThresholds, T as IdError, U as DeviceWalletPlatform, V as DeviceWalletFailReason, W as DeviceWalletProvider, _ as IdCaptureGeometry, a as CaptureOnlyResponse, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, j as DIGITAL_ID_DOCUMENT_TYPES, l as ID_ERROR_CODES, m as IdCaptureDigitalIdMethod, n as AcceptedDocumentType, o as CapturedImage, p as IdCaptureDigitalIdFlowType, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode, z as DeviceWalletDecision } from "./types-Bybof0yq.js";
|
|
7
7
|
//#region src/modules/id/deviceWallet/deviceWalletErrors.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* Fail reason → i18n key for the device-wallet error screen (same shape as
|
package/dist/id.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d as DIGITAL_ID_REGISTRY, f as isRedirectFlowType, h as createDeviceWalletManager, m as renderWallet, p as resolveDigitalIdImplementation, t as idCaptureMachine, u as DIGITAL_ID_DOCUMENT_TYPES, v as resolveWalletPlatform } from "./idCaptureStateMachine-
|
|
2
|
-
import { a as idCaptureOnlyMachine, i as createIdCaptureOnlyActor, n as createIdCaptureOnlyManager, o as createIdCaptureActor, r as createIdCaptureOnlyManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-
|
|
3
|
-
import { _ as validateUploadResponse, a as finalizeRecordingSession, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, r as barcodeToBase64, s as initializeIdCapture, t as ID_QUALITY_BACKEND_VALIDATION_GATE, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES } from "./idCaptureServices-
|
|
1
|
+
import { d as DIGITAL_ID_REGISTRY, f as isRedirectFlowType, h as createDeviceWalletManager, m as renderWallet, p as resolveDigitalIdImplementation, t as idCaptureMachine, u as DIGITAL_ID_DOCUMENT_TYPES, v as resolveWalletPlatform } from "./idCaptureStateMachine-BXYgFrOu.esm.js";
|
|
2
|
+
import { a as idCaptureOnlyMachine, i as createIdCaptureOnlyActor, n as createIdCaptureOnlyManager, o as createIdCaptureActor, r as createIdCaptureOnlyManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-B_kW_Tht.esm.js";
|
|
3
|
+
import { _ as validateUploadResponse, a as finalizeRecordingSession, c as isSuspendableRecordingSession, d as processId, f as resumeRecordingAfterPause, g as uploadIdImage, h as stopStream, i as disposeRecordingSession, l as pauseRecordingForAttempt, m as stopRecording, n as addBarcode, o as getRealQualityValue, p as startRecordingSession, r as barcodeToBase64, s as initializeIdCapture, t as ID_QUALITY_BACKEND_VALIDATION_GATE, u as prepareRecordingForCameraRetry, v as ID_ERROR_CODES } from "./idCaptureServices-B8RCTuG1.esm.js";
|
|
4
4
|
//#region src/modules/id/deviceWallet/deviceWalletErrors.ts
|
|
5
5
|
/**
|
|
6
6
|
* Fail reason → i18n key for the device-wallet error screen (same shape as
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { u as BrowserStorageProvider } from "./setup-Cgs2VvA2.esm.js";
|
|
2
2
|
import { n as eventModuleNames } from "./types-CBQN04Rh.esm.js";
|
|
3
3
|
import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
4
4
|
import { t as createManagerInstrumentation } from "./events-CsPmTidH.esm.js";
|
|
@@ -9,10 +9,10 @@ import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
|
9
9
|
import { t as splitTrackedName } from "./splitTrackedName-3zJRd2RD.esm.js";
|
|
10
10
|
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BHm1d2gA.esm.js";
|
|
11
11
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
12
|
-
import { c as resetWasmMotionPrimedForModule, o as requiresMotionPermissionUserGesture, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-
|
|
12
|
+
import { c as resetWasmMotionPrimedForModule, o as requiresMotionPermissionUserGesture, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-DB7ckY8v.esm.js";
|
|
13
13
|
import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
|
|
14
|
-
import { _ as mapDeviceWalletScreenName, a as createIdProtectedCaptureController, c as hasOnCaptureCallback, g as BrowserDigitalCredentialsProvider, i as createIdCaptureOnlyDeliveryActor, l as pickIdCaptureOnlyConfig, n as provideIdProtectedCaptureController, o as findIdProtectedCaptureController, r as attachIdProtectedCaptureController, s as captureOnlyNeedsBack, t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
15
|
-
import { b as resolveCountdownStepMs, v as ID_ERROR_CODES, x as resolveIdCaptureThresholds, y as resolveCaptureOptimizingTreatment } from "./idCaptureServices-
|
|
14
|
+
import { _ as mapDeviceWalletScreenName, a as createIdProtectedCaptureController, c as hasOnCaptureCallback, g as BrowserDigitalCredentialsProvider, i as createIdCaptureOnlyDeliveryActor, l as pickIdCaptureOnlyConfig, n as provideIdProtectedCaptureController, o as findIdProtectedCaptureController, r as attachIdProtectedCaptureController, s as captureOnlyNeedsBack, t as idCaptureMachine } from "./idCaptureStateMachine-BXYgFrOu.esm.js";
|
|
15
|
+
import { b as resolveCountdownStepMs, v as ID_ERROR_CODES, x as resolveIdCaptureThresholds, y as resolveCaptureOptimizingTreatment } from "./idCaptureServices-B8RCTuG1.esm.js";
|
|
16
16
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-DNQX9k5e.esm.js";
|
|
17
17
|
//#region src/modules/id/digitalUpload/instrumentation.ts
|
|
18
18
|
const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
@@ -84,6 +84,7 @@ function getPermissionStatus(snapshot) {
|
|
|
84
84
|
if (snapshot.matches({ permissions: "learnMore" })) return "learnMore";
|
|
85
85
|
if (snapshot.matches({ permissions: "requesting" })) return "requesting";
|
|
86
86
|
if (snapshot.matches({ permissions: "denied" })) return "denied";
|
|
87
|
+
if (snapshot.matches({ permissions: "motionDenied" })) return "motionDenied";
|
|
87
88
|
if (snapshot.matches({ permissions: "motionOnly" })) return "motionOnly";
|
|
88
89
|
}
|
|
89
90
|
function getCaptureStatus(snapshot) {
|
|
@@ -406,6 +407,7 @@ function mapState(snapshot, presentationStream) {
|
|
|
406
407
|
function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished }) {
|
|
407
408
|
const snapshot = actor.getSnapshot();
|
|
408
409
|
if (snapshot.context.dependencies) snapshot.context.dependencies.trackCaptureAttemptFinished = trackCaptureAttemptFinished;
|
|
410
|
+
const isMotionDenied = () => actor.getSnapshot().matches({ permissions: "motionDenied" });
|
|
409
411
|
return {
|
|
410
412
|
load() {
|
|
411
413
|
const { config } = actor.getSnapshot().context;
|
|
@@ -468,9 +470,12 @@ function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished })
|
|
|
468
470
|
* `tutorial.checkingPermission`, and `tutorial.initializingCamera` (while
|
|
469
471
|
* the camera pre-warms it records the user's intent to continue, so the
|
|
470
472
|
* tutorial advances to capture as soon as the warm-up finishes).
|
|
473
|
+
*
|
|
474
|
+
* In `permissions.motionDenied` it asks iOS for Motion & Orientation again.
|
|
475
|
+
* Call it straight from a user tap: iOS only shows its prompt during one.
|
|
471
476
|
*/
|
|
472
477
|
requestPermission(options) {
|
|
473
|
-
if (options?.trigger !== "automatic") trackElementClicked?.("requestPermission");
|
|
478
|
+
if (options?.trigger !== "automatic") trackElementClicked?.(isMotionDenied() ? "primaryCTA.allowPermission" : "requestPermission");
|
|
474
479
|
actor.send({ type: "REQUEST_PERMISSION" });
|
|
475
480
|
},
|
|
476
481
|
goToLearnMore() {
|
|
@@ -482,7 +487,7 @@ function createApi({ actor, trackElementClicked, trackCaptureAttemptFinished })
|
|
|
482
487
|
actor.send({ type: "BACK" });
|
|
483
488
|
},
|
|
484
489
|
close() {
|
|
485
|
-
trackElementClicked?.("close");
|
|
490
|
+
trackElementClicked?.(isMotionDenied() ? "secondaryCTA.quitProcess" : "close");
|
|
486
491
|
actor.send({ type: "QUIT" });
|
|
487
492
|
},
|
|
488
493
|
reset() {
|
|
@@ -711,6 +716,7 @@ function getPermissionScreen(value) {
|
|
|
711
716
|
case "idle":
|
|
712
717
|
case "requesting": return "idCapture.permissions";
|
|
713
718
|
case "denied": return "idCapture.permissions.requiredWeb";
|
|
719
|
+
case "motionDenied": return "idCapture.permissions.motionPermissionDenied";
|
|
714
720
|
case "learnMore": return "idCapture.permissions.required";
|
|
715
721
|
default: return "idCapture.permissions.default";
|
|
716
722
|
}
|
|
@@ -7,12 +7,12 @@ import "./index-DHuAkTe0.js";
|
|
|
7
7
|
import "./createFaceAvatar-BimBTONm.js";
|
|
8
8
|
import { a as RegulationTypes } from "./types-B2DGXHe6.js";
|
|
9
9
|
import { i as WasmUtilConfig, n as IWasmUtilCapability, r as VirtualCameraCheckOutput, t as FingerprintSignalType } from "./IWasmUtilCapability-XcOtT1TP.js";
|
|
10
|
-
import { n as PermissionStatus } from "./types-
|
|
10
|
+
import { n as PermissionStatus } from "./types-CeEcakO7.js";
|
|
11
11
|
import { t as BaseWasmProvider } from "./BaseWasmProvider-bBNquvYn.js";
|
|
12
12
|
import { n as DeepsightService } from "./StreamCanvasCapture-BnBfA6fb.js";
|
|
13
13
|
import { t as CameraStream } from "./camera-9yYDUOsO.js";
|
|
14
14
|
import { i as Pdf417DecodeResult, n as IIdCaptureCapability, t as DetectionOrientation } from "./IIdCaptureCapability-C-5M8pP1.js";
|
|
15
|
-
import { B as DeviceWalletDecryptResponse, E as IdErrorCode, G as DeviceWalletServices, K as DigitalIdProviderId, O as UploadIdResponse, U as DeviceWalletPlatform, V as DeviceWalletFailReason, W as DeviceWalletProvider, Y as IDigitalCredentialsCapability, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, k as IAnalyticsCapability, q as FailureReason, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode, z as DeviceWalletDecision } from "./types-
|
|
15
|
+
import { B as DeviceWalletDecryptResponse, E as IdErrorCode, G as DeviceWalletServices, K as DigitalIdProviderId, O as UploadIdResponse, U as DeviceWalletPlatform, V as DeviceWalletFailReason, W as DeviceWalletProvider, Y as IDigitalCredentialsCapability, b as IdCaptureOnlyConfig, c as DetectionStatus, d as IdCaptureContext, f as IdCaptureDependencies, g as IdCaptureEvent, h as IdCaptureDigitalIdRedirectOption, i as CaptureIdResponse, k as IAnalyticsCapability, q as FailureReason, r as AddBarcodeV3Response, s as DetectionArea, t as AcceptedDocument, u as IdCaptureConfig, v as IdCaptureInput, w as IdDocumentType, x as IdCaptureOutput, y as IdCaptureMode, z as DeviceWalletDecision } from "./types-Bybof0yq.js";
|
|
16
16
|
//#region src/internal/http/endpoints.d.ts
|
|
17
17
|
/**
|
|
18
18
|
* Backend `CaptureType` for the `captureType` query param on `add/front-id`,
|
|
@@ -748,6 +748,9 @@ declare function createIdCaptureManagerFromActor(actor: AnyIdCaptureActor, visib
|
|
|
748
748
|
* `tutorial.checkingPermission`, and `tutorial.initializingCamera` (while
|
|
749
749
|
* the camera pre-warms it records the user's intent to continue, so the
|
|
750
750
|
* tutorial advances to capture as soon as the warm-up finishes).
|
|
751
|
+
*
|
|
752
|
+
* In `permissions.motionDenied` it asks iOS for Motion & Orientation again.
|
|
753
|
+
* Call it straight from a user tap: iOS only shows its prompt during one.
|
|
751
754
|
*/
|
|
752
755
|
requestPermission(options?: {
|
|
753
756
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
1
|
+
import { t as ensureWasmPipelines } from "./setup-Cgs2VvA2.esm.js";
|
|
2
2
|
import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
|
|
3
|
-
import { i as numberParam, m as getFeatureGate, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-
|
|
3
|
+
import { i as numberParam, m as getFeatureGate, n as defineExperimentParams, t as booleanParam, u as resolveExperimentOnce } from "./feature-management-bb7e3xH1.esm.js";
|
|
4
4
|
import { r as isDesktop } from "./platform-GIg4uPWe.esm.js";
|
|
5
5
|
import { n as isBackFacingTrack } from "./backCameraLabel-yda5ugE4.esm.js";
|
|
6
6
|
import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
|