@incodetech/core 0.0.0-dev-20260813-c65eff54 → 0.0.0-dev-20260813-2991a679
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-BEU3LQrd.esm.js → BrowserDiagnosticsCryptoProvider-DmU3XcUT.esm.js} +1 -1
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-B2GL2Tqr.esm.js → apiError-C9ewfTXC.esm.js} +1 -1
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BC1PdEvT.esm.js → authenticationManager-SxqzvmHf.esm.js} +2 -2
- package/dist/{authenticationStateMachine-B61pxYbF.esm.js → authenticationStateMachine-BSia2svd.esm.js} +2 -2
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-3Pbtj-RV.d.ts → consentManager-uhDPdU6i.d.ts} +4 -4
- package/dist/{deepsightLoader-BUwe2wdM.esm.js → deepsightLoader-CxhndUYz.esm.js} +3 -3
- package/dist/document-capture.d.ts +1 -1
- package/dist/{documentCaptureManager-BykkLCQD.d.ts → documentCaptureManager-B3t0ydtg.d.ts} +1 -1
- package/dist/dynamic-forms.d.ts +2 -2
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-DyjyvuMd.esm.js → dynamicFormsManager-BmQJxHYZ.esm.js} +1 -1
- package/dist/{dynamicFormsManager-fhK0yINk.d.ts → dynamicFormsManager-DhveFHPS.d.ts} +1 -1
- package/dist/{dynamicFormsStateMachine-CmW--4wk.esm.js → dynamicFormsStateMachine-BgAfJJQH.esm.js} +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-Drca7lok.esm.js → ekybManager-CUXrRyZ2.esm.js} +1 -1
- package/dist/{ekybStateMachine-Dt_2E9Ng.esm.js → ekybStateMachine-DH3uM8DO.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-DSk0n0ls.esm.js → electronicSignatureManager-BV9xT0cc.esm.js} +1 -1
- package/dist/extensibility.d.ts +6 -5
- package/dist/extensibility.esm.js +11 -10
- package/dist/{faceCaptureManagerFactory-BuvPvQ0p.esm.js → faceCaptureManagerFactory-C8oK6tdq.esm.js} +1 -1
- package/dist/{faceCaptureSetup-D_DBaXp8.esm.js → faceCaptureSetup-C9-Fzm8d.esm.js} +2 -2
- package/dist/flow.d.ts +2 -2
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-DaDLcGR3.esm.js → flowCompletionService-B3suP9s_.esm.js} +1 -1
- package/dist/{flowServices-BusXh9Y_.esm.js → flowServices-j7UZkYFu.esm.js} +3 -3
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-QrhafoWh.esm.js → geolocationManager-D4AIjfeN.esm.js} +1 -1
- package/dist/{geolocationStateMachine-DcSRzE31.esm.js → geolocationStateMachine-BeEwZnQx.esm.js} +1 -1
- package/dist/government-validation.d.ts +2 -85
- package/dist/government-validation.esm.js +2 -119
- package/dist/governmentValidationManager-DUzWUMjT.d.ts +96 -0
- package/dist/governmentValidationManager-DeF0Wcf5.esm.js +123 -0
- package/dist/id-selfie-flow.esm.js +6 -6
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-C_L_HQIA.esm.js → idCaptureManager-CWmt6dp7.esm.js} +2 -2
- package/dist/{idCaptureServices-cVZgxNor.esm.js → idCaptureServices-wlaNQ3ib.esm.js} +2 -2
- package/dist/{idCaptureStateMachine-BVSn_TpQ.esm.js → idCaptureStateMachine-C6711mJz.esm.js} +7 -7
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-BbfpILqv.d.ts → mandatoryConsentManager-CVxw-noP.d.ts} +4 -4
- package/dist/{onDeviceFaceResults-Cun-5wgv.esm.js → onDeviceFaceResults-wU4uSbN-.esm.js} +3 -3
- package/dist/personhood.esm.js +3 -3
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-wr5gR-KC.esm.js → recordingService-CyT_8BPw.esm.js} +1 -1
- package/dist/{runChildModule-Bq14P9iI.esm.js → runChildModule-Cy8-2m9V.esm.js} +1 -1
- package/dist/selfie.esm.js +4 -4
- package/dist/{selfieManager-BO4WCips.esm.js → selfieManager-BcCcnW3q.esm.js} +2 -2
- package/dist/{selfieStateMachine-C9Y3KmdC.esm.js → selfieStateMachine-DOEFt4Bo.esm.js} +2 -2
- package/dist/{session-CETURITF.esm.js → session-qR0DAVjz.esm.js} +4 -4
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-CHQerRj-.esm.js → sessionInitializer-DAr2DSlY.esm.js} +2 -2
- package/dist/{setup-r19cxUoE.esm.js → setup-GQkY_66u.esm.js} +4 -4
- package/dist/trueSight-XzLKY-t_.esm.js +1 -0
- package/dist/{trueSightService-BPZPbOJ4.esm.js → trueSightService-Bf7-wYag.esm.js} +2 -2
- package/dist/video-selfie.esm.js +3 -3
- package/dist/{videoSelfieCameraWarmer-DMtSa_S8.esm.js → videoSelfieCameraWarmer-CVFHbQua.esm.js} +2 -2
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.d.ts +1 -1
- package/dist/workflow.esm.js +15 -15
- package/package.json +1 -1
- package/dist/trueSight-BWfKWHV-.esm.js +0 -1
- /package/dist/{types-BSBzhHRH.d.ts → types-BSBzhHRH2.d.ts} +0 -0
- /package/dist/{types-BfgmV7s72.d.ts → types-BfgmV7s7.d.ts} +0 -0
|
@@ -1,120 +1,3 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CxfNJVZW.esm.js";
|
|
2
|
-
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
-
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
1
|
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-BYKYUdza.esm.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return createActor(governmentValidationMachine, { input: { config: options.config } }).start();
|
|
8
|
-
}
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region src/modules/government-validation/governmentValidationManager.ts
|
|
11
|
-
/**
|
|
12
|
-
* Maps a Government Validation state-machine snapshot to the exact Figma
|
|
13
|
-
* "Tracked Events" screen name. Source: Government Record Verification
|
|
14
|
-
* Figma file (`https://www.figma.com/design/5J4kaLMl19s8cLyRMUMW32/Government-Record-Verification---Latest-Design?node-id=25911-4095`).
|
|
15
|
-
* Family is `GovernmentRecordValidation.*` (PascalCase verbatim from
|
|
16
|
-
* Figma); spans the background record-lookup flow only. The mapper returns
|
|
17
|
-
* Figma-verbatim spellings which the adapter emits as-is on `event.screen`
|
|
18
|
-
* (e.g. `GovernmentRecordValidation.analyzing.default`). See
|
|
19
|
-
* `docs/patterns/INSTRUMENTATION.md`.
|
|
20
|
-
*
|
|
21
|
-
* Figma sub-states the state machine does not surface as discrete states
|
|
22
|
-
* (intentionally not mapped here):
|
|
23
|
-
*
|
|
24
|
-
* - The OTP sub-flow (`awaitingOtp`, `verifyingOtp`) is the
|
|
25
|
-
* INE_VALIDATION variant. Figma does not define screens for it under
|
|
26
|
-
* this family; those states fall back to the generic
|
|
27
|
-
* `<module>.<state>` default.
|
|
28
|
-
* - `displayUnknown` reflects an unrecognised API status code. Figma does
|
|
29
|
-
* not define a tracked-event surface for it.
|
|
30
|
-
*
|
|
31
|
-
* `idle` and `finished` are intentionally unmapped — Figma does not
|
|
32
|
-
* define screens for them and `finished` collapses into `moduleClosed`.
|
|
33
|
-
*/
|
|
34
|
-
function getGovernmentValidationScreenName(snapshot) {
|
|
35
|
-
const stateName = topLevelStateName(snapshot.value);
|
|
36
|
-
if (stateName === void 0) return void 0;
|
|
37
|
-
switch (stateName) {
|
|
38
|
-
case "loading":
|
|
39
|
-
case "displayProcessing": return "GovernmentRecordValidation.analyzing.default";
|
|
40
|
-
case "displaySuccess": return "GovernmentRecordValidation.success.default";
|
|
41
|
-
case "displayError": return "GovernmentRecordValidation.error.usernotfound";
|
|
42
|
-
default: return;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
function mapState(snapshot) {
|
|
46
|
-
const typedSnapshot = snapshot;
|
|
47
|
-
const { context } = typedSnapshot;
|
|
48
|
-
if (typedSnapshot.matches("idle")) return { status: "idle" };
|
|
49
|
-
if (typedSnapshot.matches("loading")) return { status: "loading" };
|
|
50
|
-
if (typedSnapshot.matches("awaitingOtp")) return {
|
|
51
|
-
status: "awaitingOtp",
|
|
52
|
-
resendTimer: context.resendTimer,
|
|
53
|
-
canResend: !context.resendTimerActive,
|
|
54
|
-
attemptsRemaining: context.attemptsRemaining,
|
|
55
|
-
otpError: context.otpError,
|
|
56
|
-
otpCode: context.otpCode,
|
|
57
|
-
otpLength: 6,
|
|
58
|
-
otpValidationErrors: context.otpValidationErrors,
|
|
59
|
-
isOtpValid: Object.keys(context.otpValidationErrors ?? {}).length === 0
|
|
60
|
-
};
|
|
61
|
-
if (typedSnapshot.matches("verifyingOtp")) return {
|
|
62
|
-
status: "verifyingOtp",
|
|
63
|
-
otpCode: context.otpCode,
|
|
64
|
-
otpLength: 6
|
|
65
|
-
};
|
|
66
|
-
if (typedSnapshot.matches("displaySuccess")) return { status: "displaySuccess" };
|
|
67
|
-
if (typedSnapshot.matches("displayProcessing")) return { status: "processing" };
|
|
68
|
-
if (typedSnapshot.matches("finished")) return { status: "finished" };
|
|
69
|
-
if (typedSnapshot.matches("displayError")) return {
|
|
70
|
-
status: "error",
|
|
71
|
-
error: context.error ?? "An error occurred"
|
|
72
|
-
};
|
|
73
|
-
if (typedSnapshot.matches("displayUnknown")) return {
|
|
74
|
-
status: "unknown",
|
|
75
|
-
error: context.error ?? "Unknown validation status"
|
|
76
|
-
};
|
|
77
|
-
return { status: "idle" };
|
|
78
|
-
}
|
|
79
|
-
function createApi({ actor, trackElementClicked }) {
|
|
80
|
-
return {
|
|
81
|
-
load() {
|
|
82
|
-
actor.send({ type: "LOAD" });
|
|
83
|
-
},
|
|
84
|
-
setOtpCode(code) {
|
|
85
|
-
actor.send({
|
|
86
|
-
type: "OTP_CHANGED",
|
|
87
|
-
code
|
|
88
|
-
});
|
|
89
|
-
},
|
|
90
|
-
validateOtp() {
|
|
91
|
-
actor.send({ type: "VALIDATE_OTP" });
|
|
92
|
-
},
|
|
93
|
-
submitOtp(code) {
|
|
94
|
-
trackElementClicked?.("submitOtp");
|
|
95
|
-
actor.send({
|
|
96
|
-
type: "OTP_CHANGED",
|
|
97
|
-
code
|
|
98
|
-
});
|
|
99
|
-
actor.send({ type: "SUBMIT_OTP" });
|
|
100
|
-
},
|
|
101
|
-
resendOtp() {
|
|
102
|
-
trackElementClicked?.("resendOtp");
|
|
103
|
-
actor.send({ type: "RESEND_OTP" });
|
|
104
|
-
},
|
|
105
|
-
retry() {
|
|
106
|
-
trackElementClicked?.("retry");
|
|
107
|
-
actor.send({ type: "RETRY" });
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
function createGovernmentValidationManager(options) {
|
|
112
|
-
return createManager({
|
|
113
|
-
actor: createGovernmentValidationActor(options),
|
|
114
|
-
mapState,
|
|
115
|
-
createApi,
|
|
116
|
-
instrumentation: createManagerInstrumentation(eventModuleNames.governmentValidation, { getEventScreenName: getGovernmentValidationScreenName })
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
//#endregion
|
|
120
|
-
export { createGovernmentValidationManager, governmentValidationMachine };
|
|
2
|
+
import { n as createGovernmentValidationManagerFromActor, t as createGovernmentValidationManager } from "./governmentValidationManager-DeF0Wcf5.esm.js";
|
|
3
|
+
export { createGovernmentValidationManager, createGovernmentValidationManagerFromActor, governmentValidationMachine };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
|
|
2
|
+
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
3
|
+
import "./Actor-iTq7YY48.js";
|
|
4
|
+
import { t as OtpValidationErrors } from "./otp-CEWfTj9v.js";
|
|
5
|
+
//#region src/modules/government-validation/types.d.ts
|
|
6
|
+
type GovernmentValidationConfig = {
|
|
7
|
+
validationCountries?: string[];
|
|
8
|
+
faceAndDataValidation?: boolean;
|
|
9
|
+
addressValidation?: boolean;
|
|
10
|
+
faceMatchOverrideDataScore?: boolean;
|
|
11
|
+
useCroppedIdFacePhoto?: boolean;
|
|
12
|
+
alternativeFacialValidation?: boolean;
|
|
13
|
+
fallbackEnabled?: boolean;
|
|
14
|
+
scrapingMethod?: boolean;
|
|
15
|
+
scrapingV2?: boolean;
|
|
16
|
+
scrapingV3?: boolean;
|
|
17
|
+
failUnsupportedId?: boolean;
|
|
18
|
+
mockConnectionError?: boolean;
|
|
19
|
+
mockUserNotFoundError?: boolean;
|
|
20
|
+
mockOK?: boolean;
|
|
21
|
+
facialValidation: boolean;
|
|
22
|
+
dataValidation: boolean;
|
|
23
|
+
backgroundExecution: boolean;
|
|
24
|
+
maxOtpAttempts?: number;
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/modules/government-validation/governmentValidationStateMachine.d.ts
|
|
28
|
+
declare const governmentValidationMachine: any;
|
|
29
|
+
type GovernmentValidationMachine = typeof governmentValidationMachine;
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/modules/government-validation/governmentValidationActor.d.ts
|
|
32
|
+
type CreateGovernmentValidationActorOptions = {
|
|
33
|
+
config: GovernmentValidationConfig;
|
|
34
|
+
};
|
|
35
|
+
type GovernmentValidationActor = ActorRefFrom<GovernmentValidationMachine>;
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/modules/government-validation/governmentValidationManager.d.ts
|
|
38
|
+
type GovernmentValidationIdleState = {
|
|
39
|
+
status: 'idle';
|
|
40
|
+
};
|
|
41
|
+
type GovernmentValidationLoadingState = {
|
|
42
|
+
status: 'loading';
|
|
43
|
+
};
|
|
44
|
+
type GovernmentValidationProcessingState = {
|
|
45
|
+
status: 'processing';
|
|
46
|
+
};
|
|
47
|
+
type GovernmentValidationAwaitingOtpState = {
|
|
48
|
+
status: 'awaitingOtp';
|
|
49
|
+
resendTimer: number;
|
|
50
|
+
canResend: boolean;
|
|
51
|
+
attemptsRemaining: number;
|
|
52
|
+
otpError?: string;
|
|
53
|
+
otpCode: string;
|
|
54
|
+
otpLength: number;
|
|
55
|
+
otpValidationErrors?: OtpValidationErrors;
|
|
56
|
+
isOtpValid: boolean;
|
|
57
|
+
};
|
|
58
|
+
type GovernmentValidationVerifyingOtpState = {
|
|
59
|
+
status: 'verifyingOtp';
|
|
60
|
+
otpCode: string;
|
|
61
|
+
otpLength: number;
|
|
62
|
+
};
|
|
63
|
+
type GovernmentValidationFinishedState = {
|
|
64
|
+
status: 'finished';
|
|
65
|
+
};
|
|
66
|
+
type GovernmentValidationErrorState = {
|
|
67
|
+
status: 'error';
|
|
68
|
+
error: string;
|
|
69
|
+
};
|
|
70
|
+
type GovernmentValidationSuccessState = {
|
|
71
|
+
status: 'displaySuccess';
|
|
72
|
+
};
|
|
73
|
+
type GovernmentValidationUnknownState = {
|
|
74
|
+
status: 'unknown';
|
|
75
|
+
error: string;
|
|
76
|
+
};
|
|
77
|
+
type GovernmentValidationState = GovernmentValidationIdleState | GovernmentValidationLoadingState | GovernmentValidationProcessingState | GovernmentValidationAwaitingOtpState | GovernmentValidationVerifyingOtpState | GovernmentValidationFinishedState | GovernmentValidationErrorState | GovernmentValidationSuccessState | GovernmentValidationUnknownState;
|
|
78
|
+
declare function createGovernmentValidationManager(options: CreateGovernmentValidationActorOptions): Manager<GovernmentValidationState> & {
|
|
79
|
+
load(): void;
|
|
80
|
+
setOtpCode(code: string): void;
|
|
81
|
+
validateOtp(): void;
|
|
82
|
+
submitOtp(code: string): void;
|
|
83
|
+
resendOtp(): void;
|
|
84
|
+
retry(): void;
|
|
85
|
+
};
|
|
86
|
+
declare function createGovernmentValidationManagerFromActor(actor: GovernmentValidationActor): Manager<GovernmentValidationState> & {
|
|
87
|
+
load(): void;
|
|
88
|
+
setOtpCode(code: string): void;
|
|
89
|
+
validateOtp(): void;
|
|
90
|
+
submitOtp(code: string): void;
|
|
91
|
+
resendOtp(): void;
|
|
92
|
+
retry(): void;
|
|
93
|
+
};
|
|
94
|
+
type GovernmentValidationManager = ReturnType<typeof createGovernmentValidationManager>;
|
|
95
|
+
//#endregion
|
|
96
|
+
export { GovernmentValidationActor as a, createGovernmentValidationManagerFromActor as i, GovernmentValidationState as n, governmentValidationMachine as o, createGovernmentValidationManager as r, GovernmentValidationConfig as s, GovernmentValidationManager as t };
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CxfNJVZW.esm.js";
|
|
2
|
+
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
+
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
+
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-BYKYUdza.esm.js";
|
|
5
|
+
//#region src/modules/government-validation/governmentValidationActor.ts
|
|
6
|
+
function createGovernmentValidationActor(options) {
|
|
7
|
+
return createActor(governmentValidationMachine, { input: { config: options.config } }).start();
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/modules/government-validation/governmentValidationManager.ts
|
|
11
|
+
/**
|
|
12
|
+
* Maps a Government Validation state-machine snapshot to the exact Figma
|
|
13
|
+
* "Tracked Events" screen name. Source: Government Record Verification
|
|
14
|
+
* Figma file (`https://www.figma.com/design/5J4kaLMl19s8cLyRMUMW32/Government-Record-Verification---Latest-Design?node-id=25911-4095`).
|
|
15
|
+
* Family is `GovernmentRecordValidation.*` (PascalCase verbatim from
|
|
16
|
+
* Figma); spans the background record-lookup flow only. The mapper returns
|
|
17
|
+
* Figma-verbatim spellings which the adapter emits as-is on `event.screen`
|
|
18
|
+
* (e.g. `GovernmentRecordValidation.analyzing.default`). See
|
|
19
|
+
* `docs/patterns/INSTRUMENTATION.md`.
|
|
20
|
+
*
|
|
21
|
+
* Figma sub-states the state machine does not surface as discrete states
|
|
22
|
+
* (intentionally not mapped here):
|
|
23
|
+
*
|
|
24
|
+
* - The OTP sub-flow (`awaitingOtp`, `verifyingOtp`) is the
|
|
25
|
+
* INE_VALIDATION variant. Figma does not define screens for it under
|
|
26
|
+
* this family; those states fall back to the generic
|
|
27
|
+
* `<module>.<state>` default.
|
|
28
|
+
* - `displayUnknown` reflects an unrecognised API status code. Figma does
|
|
29
|
+
* not define a tracked-event surface for it.
|
|
30
|
+
*
|
|
31
|
+
* `idle` and `finished` are intentionally unmapped — Figma does not
|
|
32
|
+
* define screens for them and `finished` collapses into `moduleClosed`.
|
|
33
|
+
*/
|
|
34
|
+
function getGovernmentValidationScreenName(snapshot) {
|
|
35
|
+
const stateName = topLevelStateName(snapshot.value);
|
|
36
|
+
if (stateName === void 0) return void 0;
|
|
37
|
+
switch (stateName) {
|
|
38
|
+
case "loading":
|
|
39
|
+
case "displayProcessing": return "GovernmentRecordValidation.analyzing.default";
|
|
40
|
+
case "displaySuccess": return "GovernmentRecordValidation.success.default";
|
|
41
|
+
case "displayError": return "GovernmentRecordValidation.error.usernotfound";
|
|
42
|
+
default: return;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function mapState(snapshot) {
|
|
46
|
+
const typedSnapshot = snapshot;
|
|
47
|
+
const { context } = typedSnapshot;
|
|
48
|
+
if (typedSnapshot.matches("idle")) return { status: "idle" };
|
|
49
|
+
if (typedSnapshot.matches("loading")) return { status: "loading" };
|
|
50
|
+
if (typedSnapshot.matches("awaitingOtp")) return {
|
|
51
|
+
status: "awaitingOtp",
|
|
52
|
+
resendTimer: context.resendTimer,
|
|
53
|
+
canResend: !context.resendTimerActive,
|
|
54
|
+
attemptsRemaining: context.attemptsRemaining,
|
|
55
|
+
otpError: context.otpError,
|
|
56
|
+
otpCode: context.otpCode,
|
|
57
|
+
otpLength: 6,
|
|
58
|
+
otpValidationErrors: context.otpValidationErrors,
|
|
59
|
+
isOtpValid: Object.keys(context.otpValidationErrors ?? {}).length === 0
|
|
60
|
+
};
|
|
61
|
+
if (typedSnapshot.matches("verifyingOtp")) return {
|
|
62
|
+
status: "verifyingOtp",
|
|
63
|
+
otpCode: context.otpCode,
|
|
64
|
+
otpLength: 6
|
|
65
|
+
};
|
|
66
|
+
if (typedSnapshot.matches("displaySuccess")) return { status: "displaySuccess" };
|
|
67
|
+
if (typedSnapshot.matches("displayProcessing")) return { status: "processing" };
|
|
68
|
+
if (typedSnapshot.matches("finished")) return { status: "finished" };
|
|
69
|
+
if (typedSnapshot.matches("displayError")) return {
|
|
70
|
+
status: "error",
|
|
71
|
+
error: context.error ?? "An error occurred"
|
|
72
|
+
};
|
|
73
|
+
if (typedSnapshot.matches("displayUnknown")) return {
|
|
74
|
+
status: "unknown",
|
|
75
|
+
error: context.error ?? "Unknown validation status"
|
|
76
|
+
};
|
|
77
|
+
return { status: "idle" };
|
|
78
|
+
}
|
|
79
|
+
function createApi({ actor, trackElementClicked }) {
|
|
80
|
+
return {
|
|
81
|
+
load() {
|
|
82
|
+
actor.send({ type: "LOAD" });
|
|
83
|
+
},
|
|
84
|
+
setOtpCode(code) {
|
|
85
|
+
actor.send({
|
|
86
|
+
type: "OTP_CHANGED",
|
|
87
|
+
code
|
|
88
|
+
});
|
|
89
|
+
},
|
|
90
|
+
validateOtp() {
|
|
91
|
+
actor.send({ type: "VALIDATE_OTP" });
|
|
92
|
+
},
|
|
93
|
+
submitOtp(code) {
|
|
94
|
+
trackElementClicked?.("submitOtp");
|
|
95
|
+
actor.send({
|
|
96
|
+
type: "OTP_CHANGED",
|
|
97
|
+
code
|
|
98
|
+
});
|
|
99
|
+
actor.send({ type: "SUBMIT_OTP" });
|
|
100
|
+
},
|
|
101
|
+
resendOtp() {
|
|
102
|
+
trackElementClicked?.("resendOtp");
|
|
103
|
+
actor.send({ type: "RESEND_OTP" });
|
|
104
|
+
},
|
|
105
|
+
retry() {
|
|
106
|
+
trackElementClicked?.("retry");
|
|
107
|
+
actor.send({ type: "RETRY" });
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
function createGovernmentValidationManager(options) {
|
|
112
|
+
return createGovernmentValidationManagerFromActor(createGovernmentValidationActor(options));
|
|
113
|
+
}
|
|
114
|
+
function createGovernmentValidationManagerFromActor(actor) {
|
|
115
|
+
return createManager({
|
|
116
|
+
actor,
|
|
117
|
+
mapState,
|
|
118
|
+
createApi,
|
|
119
|
+
instrumentation: createManagerInstrumentation(eventModuleNames.governmentValidation, { getEventScreenName: getGovernmentValidationScreenName })
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
//#endregion
|
|
123
|
+
export { createGovernmentValidationManagerFromActor as n, createGovernmentValidationManager as t };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { r as WasmUtilProvider } from "./safeStorage-Ep56I-f_.esm.js";
|
|
2
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
2
|
+
import { t as ensureWasmPipelines } from "./setup-GQkY_66u.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
|
-
import { i as resolveDashboardModuleConfig, l as facingModeForStep } from "./flowServices-
|
|
4
|
+
import { i as resolveDashboardModuleConfig, l as facingModeForStep } from "./flowServices-j7UZkYFu.esm.js";
|
|
5
5
|
import { c as createManager, n as sendTo, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
6
6
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
7
|
-
import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-
|
|
7
|
+
import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-wU4uSbN-.esm.js";
|
|
8
8
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
9
9
|
import { a as uploadSelfie, r as processFace } from "./selfieErrorUtils-ArUCoICg.esm.js";
|
|
10
10
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
11
11
|
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-WeHbQM7W.esm.js";
|
|
12
|
-
import { a as processId, d as validateUploadResponse, f as ID_ERROR_CODES, l as uploadIdImage } from "./idCaptureServices-
|
|
13
|
-
import { n as getFinishStatus } from "./flowCompletionService-
|
|
14
|
-
import { a as delay, c as isWrongVideoSelfieIdSide, n as defaultAcquireCamera, r as CameraCompositor, s as isSelfieValidationError } from "./videoSelfieCameraWarmer-
|
|
12
|
+
import { a as processId, d as validateUploadResponse, f as ID_ERROR_CODES, l as uploadIdImage } from "./idCaptureServices-wlaNQ3ib.esm.js";
|
|
13
|
+
import { n as getFinishStatus } from "./flowCompletionService-B3suP9s_.esm.js";
|
|
14
|
+
import { a as delay, c as isWrongVideoSelfieIdSide, n as defaultAcquireCamera, r as CameraCompositor, s as isSelfieValidationError } from "./videoSelfieCameraWarmer-CVFHbQua.esm.js";
|
|
15
15
|
//#region src/modules/id-selfie-flow/idSelfieFlowStepDetector.ts
|
|
16
16
|
/** Default autocapture window for the selfie step. */
|
|
17
17
|
const SELFIE_AUTOCAPTURE_MS = 1e4;
|
package/dist/id.esm.js
CHANGED
|
@@ -2,9 +2,9 @@ import { t as BrowserStorageProvider } from "./BrowserStorageProvider-k-FDkC4W.e
|
|
|
2
2
|
import { n as eventModuleNames } from "./events-CxfNJVZW.esm.js";
|
|
3
3
|
import { o as createActor, r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
5
|
-
import { a as MANUAL_UPLOAD_MAX_RETRIES, i as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, r as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
6
|
-
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-
|
|
7
|
-
import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, i as preloadIdRecordingProvider, l as uploadIdImage, m as resolveIdCaptureThresholds, n as barcodeToBase64, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-
|
|
5
|
+
import { a as MANUAL_UPLOAD_MAX_RETRIES, i as MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES, r as MANUAL_UPLOAD_EXHAUSTION_FORWARD_MS, t as idCaptureMachine } from "./idCaptureStateMachine-C6711mJz.esm.js";
|
|
6
|
+
import { n as createIdCaptureActor, r as createIdCaptureManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-CWmt6dp7.esm.js";
|
|
7
|
+
import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, i as preloadIdRecordingProvider, l as uploadIdImage, m as resolveIdCaptureThresholds, n as barcodeToBase64, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-wlaNQ3ib.esm.js";
|
|
8
8
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-1m1VJ3Q4.esm.js";
|
|
9
9
|
//#region src/modules/id/idCaptureOnlyStateMachine.ts
|
|
10
10
|
function buildSubImage(canvas) {
|
|
@@ -5,8 +5,8 @@ import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.
|
|
|
5
5
|
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BqUCwLY8.esm.js";
|
|
6
6
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BX1BiLDK.esm.js";
|
|
7
7
|
import { o as resetWasmMotionPrimedForModule, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-B7sMtZ8f.esm.js";
|
|
8
|
-
import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
9
|
-
import { m as resolveIdCaptureThresholds, p as resolveCaptureResultPreviewTreatment } from "./idCaptureServices-
|
|
8
|
+
import { n as getManualUploadTabs, t as idCaptureMachine } from "./idCaptureStateMachine-C6711mJz.esm.js";
|
|
9
|
+
import { m as resolveIdCaptureThresholds, p as resolveCaptureResultPreviewTreatment } from "./idCaptureServices-wlaNQ3ib.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) {
|
|
@@ -2,10 +2,10 @@ import { i as numberParam, n as defineExperimentParams, t as booleanParam, u as
|
|
|
2
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
4
4
|
import { i as isDesktop } from "./platform-Q4r1nvWX.esm.js";
|
|
5
|
-
import { h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-
|
|
5
|
+
import { h as stopRecording$1, m as startRecording, p as createRecordingSession } from "./onDeviceFaceResults-wU4uSbN-.esm.js";
|
|
6
6
|
import { n as getBackCameraStream } from "./backCameraStream-BMGalshK.esm.js";
|
|
7
7
|
import { t as getDeviceClass } from "./getDeviceClass-Sh0zhEv7.esm.js";
|
|
8
|
-
import { n as preloadOpenViduProvider } from "./recordingService-
|
|
8
|
+
import { n as preloadOpenViduProvider } from "./recordingService-CyT_8BPw.esm.js";
|
|
9
9
|
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider } from "./idCaptureDefaults-WeHbQM7W.esm.js";
|
|
10
10
|
//#region src/modules/id/idCameraStream.ts
|
|
11
11
|
async function getIdCameraStream(deviceId) {
|
package/dist/{idCaptureStateMachine-BVSn_TpQ.esm.js → idCaptureStateMachine-C6711mJz.esm.js}
RENAMED
|
@@ -2,17 +2,17 @@ import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.j
|
|
|
2
2
|
import { s as exposeExperimentOnce } from "./feature-management-DS_Nj5Gg.esm.js";
|
|
3
3
|
import { n as revokeObjectURL } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
4
4
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
5
|
-
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
5
|
+
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-Bf7-wYag.esm.js";
|
|
6
6
|
import { n as eventModuleNames, s as recordExperimentAssignmentOnce } from "./events-CxfNJVZW.esm.js";
|
|
7
|
-
import { t as getDisableIpify } from "./sessionInitializer-
|
|
8
|
-
import "./trueSight-
|
|
7
|
+
import { t as getDisableIpify } from "./sessionInitializer-DAr2DSlY.esm.js";
|
|
8
|
+
import "./trueSight-XzLKY-t_.esm.js";
|
|
9
9
|
import { t as addDeviceStats } from "./stats-B0nFKawG.esm.js";
|
|
10
10
|
import { t as isAndroid } from "./platform-Q4r1nvWX.esm.js";
|
|
11
|
-
import "./session-
|
|
11
|
+
import "./session-qR0DAVjz.esm.js";
|
|
12
12
|
import { a as and, n as sendTo, r as assign, s as not, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
13
13
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
14
14
|
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-B7sMtZ8f.esm.js";
|
|
15
|
-
import { _ as StreamCanvasProcessingSession } from "./onDeviceFaceResults-
|
|
15
|
+
import { _ as StreamCanvasProcessingSession } from "./onDeviceFaceResults-wU4uSbN-.esm.js";
|
|
16
16
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
17
17
|
import { t as IncodeCanvas } from "./canvas-E1zGkel4.esm.js";
|
|
18
18
|
import { t as getBrowser } from "./getBrowser-DNrQeL4T.esm.js";
|
|
@@ -20,7 +20,7 @@ import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
|
20
20
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
21
21
|
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-D2OgV9XX.esm.js";
|
|
22
22
|
import { r as flagIdManualReview, t as imageFileToDataUrl } from "./imageFile-DutiOU7n.esm.js";
|
|
23
|
-
import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, g as getIdCameraStream, h as CAPTURE_RESULT_PREVIEW, i as preloadIdRecordingProvider, l as uploadIdImage, m as resolveIdCaptureThresholds, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-
|
|
23
|
+
import { a as processId, c as stopStream, d as validateUploadResponse, f as ID_ERROR_CODES, g as getIdCameraStream, h as CAPTURE_RESULT_PREVIEW, i as preloadIdRecordingProvider, l as uploadIdImage, m as resolveIdCaptureThresholds, o as startRecordingSession, r as initializeIdCapture, s as stopRecording, t as addBarcode, u as uploadManualIdFile } from "./idCaptureServices-wlaNQ3ib.esm.js";
|
|
24
24
|
//#region src/modules/id/digitalUpload/digitalUploadErrors.ts
|
|
25
25
|
const TERMINAL_FAIL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|
|
26
26
|
function isKnownFailReason(reason) {
|
|
@@ -1284,7 +1284,7 @@ const startRecordingActor = fromPromise(async ({ input }) => {
|
|
|
1284
1284
|
});
|
|
1285
1285
|
const initializeDeepsightSessionActor = fromPromise(async ({ input }) => {
|
|
1286
1286
|
if (!input.dependencies) return;
|
|
1287
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
1287
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-CxhndUYz.esm.js");
|
|
1288
1288
|
return loadDeepsightSession({
|
|
1289
1289
|
ds: input.ds,
|
|
1290
1290
|
storage: input.dependencies.storage,
|
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as reset, o as setup, r as isConfigured } from "./setup-
|
|
1
|
+
import { i as reset, o as setup, r as isConfigured } from "./setup-GQkY_66u.esm.js";
|
|
2
2
|
export { isConfigured, reset, setup };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { r as MandatoryConsentConfig } from "./types-8LPRL1Ni2.js";
|
|
2
|
-
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-
|
|
2
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-CVxw-noP.js";
|
|
3
3
|
export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
|
package/dist/{mandatoryConsentManager-BbfpILqv.d.ts → mandatoryConsentManager-CVxw-noP.d.ts}
RENAMED
|
@@ -61,14 +61,14 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
|
|
|
61
61
|
type: "clearError";
|
|
62
62
|
params: NonReducibleUnknown;
|
|
63
63
|
};
|
|
64
|
-
resetContext: {
|
|
65
|
-
type: "resetContext";
|
|
66
|
-
params: NonReducibleUnknown;
|
|
67
|
-
};
|
|
68
64
|
toggleSigned: {
|
|
69
65
|
type: "toggleSigned";
|
|
70
66
|
params: NonReducibleUnknown;
|
|
71
67
|
};
|
|
68
|
+
resetContext: {
|
|
69
|
+
type: "resetContext";
|
|
70
|
+
params: NonReducibleUnknown;
|
|
71
|
+
};
|
|
72
72
|
}>, {
|
|
73
73
|
type: "canSubmit";
|
|
74
74
|
params: unknown;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { c as mlWasmJSApi_default, i as BaseWasmProvider } from "./safeStorage-Ep56I-f_.esm.js";
|
|
2
2
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
3
|
+
import { c as trueSightHintTransition, l as trueSightLog, r as noteTrueSightCaptureActivity } from "./trueSightService-Bf7-wYag.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
5
|
-
import "./trueSight-
|
|
5
|
+
import "./trueSight-XzLKY-t_.esm.js";
|
|
6
6
|
import { t as addDeviceStats } from "./stats-B0nFKawG.esm.js";
|
|
7
7
|
import { i as isDesktop, s as isIPhone14OrHigher } from "./platform-Q4r1nvWX.esm.js";
|
|
8
8
|
import { a as stopCameraStream, r as requestCameraAccess } from "./camera-_2sXMXiF.esm.js";
|
|
@@ -523,7 +523,7 @@ async function stopRecording(session) {
|
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
525
|
async function initializeDeepsightSession(options) {
|
|
526
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
526
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-CxhndUYz.esm.js");
|
|
527
527
|
return loadDeepsightSession({
|
|
528
528
|
ds: options.ds,
|
|
529
529
|
storage: options.storage
|
package/dist/personhood.esm.js
CHANGED
|
@@ -2,15 +2,15 @@ import { r as WasmUtilProvider } from "./safeStorage-Ep56I-f_.esm.js";
|
|
|
2
2
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-k-FDkC4W.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
4
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
5
|
-
import { b as getStoredHttpConfig, w as createApi$1, y as randomUUID } from "./trueSightService-
|
|
5
|
+
import { b as getStoredHttpConfig, w as createApi$1, y as randomUUID } from "./trueSightService-Bf7-wYag.esm.js";
|
|
6
6
|
import { n as eventModuleNames } from "./events-CxfNJVZW.esm.js";
|
|
7
|
-
import { _ as getDeviceFingerprintInfo, g as getThumbmarkId, n as getFingerprintEnabled, p as isBrowserSimulation, v as BrowserEnvironmentProvider } from "./sessionInitializer-
|
|
7
|
+
import { _ as getDeviceFingerprintInfo, g as getThumbmarkId, n as getFingerprintEnabled, p as isBrowserSimulation, v as BrowserEnvironmentProvider } from "./sessionInitializer-DAr2DSlY.esm.js";
|
|
8
8
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
9
9
|
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
10
10
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
11
11
|
import { a as stopCameraStream, r as requestCameraAccess } from "./camera-_2sXMXiF.esm.js";
|
|
12
12
|
import { i as requestPermission, t as checkPermission } from "./permissionServices-B7sMtZ8f.esm.js";
|
|
13
|
-
import { f as stopStream, l as startDetection, s as initializeDeepsightSession, v as FaceDetectionProvider } from "./onDeviceFaceResults-
|
|
13
|
+
import { f as stopStream, l as startDetection, s as initializeDeepsightSession, v as FaceDetectionProvider } from "./onDeviceFaceResults-wU4uSbN-.esm.js";
|
|
14
14
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
15
15
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
16
16
|
//#region src/modules/personhood/personhoodServices.ts
|
package/dist/qe-signature.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as QE_CONSENT_KEYS, c as getDefaultConsentChecks, o as areAllConsented, r as electronicSignatureMachine, t as createElectronicSignatureManager } from "./electronicSignatureManager-
|
|
1
|
+
import { a as QE_CONSENT_KEYS, c as getDefaultConsentChecks, o as areAllConsented, r as electronicSignatureMachine, t as createElectronicSignatureManager } from "./electronicSignatureManager-BV9xT0cc.esm.js";
|
|
2
2
|
//#region src/modules/qe-signature/index.ts
|
|
3
3
|
function createQeSignatureManager(options) {
|
|
4
4
|
return createElectronicSignatureManager({ config: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as isAndroid } from "./platform-Q4r1nvWX.esm.js";
|
|
2
|
-
import { d as stopRecording, g as uploadDeepsightVideo, u as startRecordingSession } from "./onDeviceFaceResults-
|
|
2
|
+
import { d as stopRecording, g as uploadDeepsightVideo, u as startRecordingSession } from "./onDeviceFaceResults-wU4uSbN-.esm.js";
|
|
3
3
|
import { t as getAdaptiveMediaRecorderOptions } from "./mediaRecorderOptions-vXDI73LZ.esm.js";
|
|
4
4
|
//#region ../infra/src/media/VideoTrimmer.ts
|
|
5
5
|
async function getDurationBySeek(videoBlob) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
2
|
-
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-
|
|
2
|
+
import { a as notifyTrueSightManagerStopped, i as notifyTrueSightFlowEvent } from "./trueSightService-Bf7-wYag.esm.js";
|
|
3
3
|
import { C as createEventBus } from "./events-CxfNJVZW.esm.js";
|
|
4
4
|
import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
5
|
import { t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
package/dist/selfie.esm.js
CHANGED
|
@@ -3,11 +3,11 @@ import { t as BrowserStorageProvider } from "./BrowserStorageProvider-k-FDkC4W.e
|
|
|
3
3
|
import { n as eventModuleNames } from "./events-CxfNJVZW.esm.js";
|
|
4
4
|
import { o as createActor, r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
6
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
7
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
6
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-C9-Fzm8d.esm.js";
|
|
7
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-C8oK6tdq.esm.js";
|
|
8
8
|
import { r as processFace } from "./selfieErrorUtils-ArUCoICg.esm.js";
|
|
9
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
10
|
-
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-
|
|
9
|
+
import { t as selfieMachine } from "./selfieStateMachine-DOEFt4Bo.esm.js";
|
|
10
|
+
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-BcCcnW3q.esm.js";
|
|
11
11
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-1m1VJ3Q4.esm.js";
|
|
12
12
|
//#region src/modules/selfie/selfieCaptureOnlyStateMachine.ts
|
|
13
13
|
/**
|
|
@@ -2,8 +2,8 @@ import { r as WasmUtilProvider } from "./safeStorage-Ep56I-f_.esm.js";
|
|
|
2
2
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-k-FDkC4W.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./events-CxfNJVZW.esm.js";
|
|
4
4
|
import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
6
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
5
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-C8oK6tdq.esm.js";
|
|
6
|
+
import { t as selfieMachine } from "./selfieStateMachine-DOEFt4Bo.esm.js";
|
|
7
7
|
//#region src/modules/selfie/selfieActor.ts
|
|
8
8
|
function createSelfieActor(options) {
|
|
9
9
|
const dependencies = options.dependencies ?? {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
2
2
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
3
|
-
import { n as manualFaceUploadMachine, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
-
import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-
|
|
3
|
+
import { n as manualFaceUploadMachine, t as faceCaptureMachine } from "./faceCaptureSetup-C9-Fzm8d.esm.js";
|
|
4
|
+
import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-wU4uSbN-.esm.js";
|
|
5
5
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
6
6
|
import { a as uploadSelfie, i as uploadManualSelfie, n as validateUploadResponse, r as processFace } from "./selfieErrorUtils-ArUCoICg.esm.js";
|
|
7
7
|
//#region src/modules/selfie/selfieStateMachine.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as getApi } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { h as noteSessionCreated, l as trueSightLog } from "./trueSightService-
|
|
3
|
-
import "./sessionInitializer-
|
|
2
|
+
import { h as noteSessionCreated, l as trueSightLog } from "./trueSightService-Bf7-wYag.esm.js";
|
|
3
|
+
import "./sessionInitializer-DAr2DSlY.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
5
|
-
import "./trueSight-
|
|
6
|
-
import { r as toIncodeApiError } from "./apiError-
|
|
5
|
+
import "./trueSight-XzLKY-t_.esm.js";
|
|
6
|
+
import { r as toIncodeApiError } from "./apiError-C9ewfTXC.esm.js";
|
|
7
7
|
//#region src/internal/session/sessionService.ts
|
|
8
8
|
/**
|
|
9
9
|
* HTTP status codes the QR validation endpoint emits, keyed by their semantic
|
package/dist/session.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as initializeSession } from "./sessionInitializer-
|
|
2
|
-
import { t as IncodeApiError } from "./apiError-
|
|
3
|
-
import { a as refreshQrUrlUuid, i as createSession, n as QrValidationError, o as validateQrUuid, r as bootstrapSession, t as QR_VALIDATION_ERROR_CODES } from "./session-
|
|
4
|
-
import { n as getFinishStatus } from "./flowCompletionService-
|
|
1
|
+
import { i as initializeSession } from "./sessionInitializer-DAr2DSlY.esm.js";
|
|
2
|
+
import { t as IncodeApiError } from "./apiError-C9ewfTXC.esm.js";
|
|
3
|
+
import { a as refreshQrUrlUuid, i as createSession, n as QrValidationError, o as validateQrUuid, r as bootstrapSession, t as QR_VALIDATION_ERROR_CODES } from "./session-qR0DAVjz.esm.js";
|
|
4
|
+
import { n as getFinishStatus } from "./flowCompletionService-B3suP9s_.esm.js";
|
|
5
5
|
export { IncodeApiError, QR_VALIDATION_ERROR_CODES, QrValidationError, bootstrapSession, createSession, getFinishStatus, initializeSession, refreshQrUrlUuid, validateQrUuid };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { E as updateFeatureManagementUser } from "./feature-management-DS_Nj5Gg.esm.js";
|
|
2
2
|
import { c as setToken, r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { _ as noteTokenActivated, d as fetchFeatureConfig, f as isFeatureEnabled, l as trueSightLog, m as noteEnvironment, p as resetFeatureConfigCache, s as startTrueSightCollection, v as SDK_VERSION } from "./trueSightService-
|
|
3
|
+
import { _ as noteTokenActivated, d as fetchFeatureConfig, f as isFeatureEnabled, l as trueSightLog, m as noteEnvironment, p as resetFeatureConfigCache, s as startTrueSightCollection, v as SDK_VERSION } from "./trueSightService-Bf7-wYag.esm.js";
|
|
4
4
|
import { v as addEvent, y as getAnalyticsBatcher } from "./events-CxfNJVZW.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
6
|
-
import "./trueSight-
|
|
6
|
+
import "./trueSight-XzLKY-t_.esm.js";
|
|
7
7
|
import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue } from "./stats-B0nFKawG.esm.js";
|
|
8
8
|
import { n as UAParser, t as getParsedUserAgent } from "./getParsedUserAgent-pJjATANs.esm.js";
|
|
9
9
|
import { a as isIOS } from "./platform-Q4r1nvWX.esm.js";
|