@incodetech/core 0.0.0-dev-20261014-17c86ff6 → 0.0.0-dev-20261014-1670df29
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-C3TfpNoU.esm.js → FaceDetectionProvider-nnhjmMV8.esm.js} +6 -6
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-Crt05WQR.esm.js → apiError-BQGiCr9h.esm.js} +1 -1
- package/dist/attemptCarry-BCQgBZ7b.esm.js +45 -0
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BPCglvRl.esm.js → authenticationManager-BLRj_oL4.esm.js} +3 -3
- package/dist/{authenticationStateMachine-DuYePbDx.esm.js → authenticationStateMachine-O7C5PXyH.esm.js} +2 -2
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-CMg4SgL4.esm.js → certificateIssuanceManager-DpQlzzx5.esm.js} +1 -1
- package/dist/{certificateIssuanceStateMachine-Cs64QmYH.esm.js → certificateIssuanceStateMachine-CaOzoYfA.esm.js} +1 -1
- package/dist/connectivity-HSl0diCx.esm.js +133 -0
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-Cv_0QKLD.d.ts → consentManager-Ca8FHlC4.d.ts} +8 -8
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-DBNIn8BF.esm.js → curpValidationManager-DmfAsC6f.esm.js} +1 -1
- package/dist/{curpValidationStateMachine-DAxImy8p.esm.js → curpValidationStateMachine-B9sCPRaH.esm.js} +25 -14
- package/dist/{deepsightLoader-CvTg_kjm.esm.js → deepsightLoader-UXGc403Q.esm.js} +4 -4
- package/dist/{deepsightService-BYCHaPmd.esm.js → deepsightService-DI0uiE68.esm.js} +1 -1
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-DkyDtm3Y.d.ts → documentCaptureManager-DfoKYNcx.d.ts} +9 -1
- package/dist/{documentCaptureManager-C9XUnYU6.esm.js → documentCaptureManager-pkph2Ise.esm.js} +1 -1
- package/dist/{documentCaptureStateMachine-BHDsCfhL.esm.js → documentCaptureStateMachine-BTiH2YGb.esm.js} +38 -30
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-6iRjKrB0.esm.js → dynamicFormsManager-jXO_VdVI.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-CZoUwpKM.esm.js → dynamicFormsStateMachine-BxGrebr6.esm.js} +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-CT_JQdsu.esm.js → ekybManager-BsEC0z6j.esm.js} +1 -1
- package/dist/{ekybStateMachine-C7t6vXDy.esm.js → ekybStateMachine-782_EAbL.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-BkroUsg5.esm.js → electronicSignatureManager-BvKmLsO7.esm.js} +2 -2
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-CtlKRRaR.esm.js → emailManager-wsqyGXcv.esm.js} +1 -1
- package/dist/{emailStateMachine-5Neq3rE5.esm.js → emailStateMachine-g1zgI6-w.esm.js} +31 -19
- package/dist/extensibility.d.ts +4 -4
- package/dist/extensibility.esm.js +15 -15
- package/dist/{externalFetch-DrR9xshk.esm.js → externalFetch-mShctxq_.esm.js} +3 -0
- package/dist/{faceCaptureManagerFactory-DAHyC1O_.esm.js → faceCaptureManagerFactory-Bkq-Zyud.esm.js} +1 -1
- package/dist/{faceCaptureSetup-Du7zdL7Y.esm.js → faceCaptureSetup-DGbFv_lR.esm.js} +20 -6
- package/dist/{feature-management-B2JEpoCb.esm.js → feature-management-BxNNoDb_.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/flow.esm.js +6 -9
- package/dist/{flowCompletionService-DyhDnWkk.esm.js → flowCompletionService-DoOZsAkE.esm.js} +1 -1
- package/dist/{flowServices-CF3-ie-3.esm.js → flowServices-J5PML3Fw.esm.js} +4 -4
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-Dn24g1fl.d.ts → geolocationManager-CpIjrPEG.d.ts} +14 -8
- package/dist/{geolocationManager-D-DRi03N.esm.js → geolocationManager-CsEoGzz_.esm.js} +5 -7
- package/dist/{geolocationStateMachine-hsoBC3si.esm.js → geolocationStateMachine-BRd4yWfe.esm.js} +10 -6
- package/dist/id-selfie-flow.esm.js +8 -8
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-DBfhJEmA.esm.js → idCaptureDefaults-DADOO6VS.esm.js} +1 -1
- package/dist/{idCaptureManager-B1CqJDgK.esm.js → idCaptureManager-CTqOUIzb.esm.js} +3 -3
- package/dist/{idCaptureServices-E8iBP8O7.esm.js → idCaptureServices-Bq4RdayZ.esm.js} +4 -4
- package/dist/{idCaptureStateMachine-nldpCE5N.esm.js → idCaptureStateMachine-C_c-xD-u.esm.js} +52 -27
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-BkaLkcA2.d.ts → mandatoryConsentManager-ntGT3XBv.d.ts} +4 -4
- package/dist/{multipartRecordingService-DbeQpXdU.esm.js → multipartRecordingService-BUQfonSs.esm.js} +1 -11
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-BGBcpqsk.esm.js → phoneManager-DCkYa3x8.esm.js} +1 -1
- package/dist/{phoneStateMachine-CEm2y7yG.esm.js → phoneStateMachine-D1NKQ-zM.esm.js} +35 -23
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{runChildModule-Bk8iIlOY.esm.js → runChildModule-ibVgOupr.esm.js} +1 -1
- package/dist/{sdkVersion-CO8QI7Kw.esm.js → sdkVersion-DgSsq5kd.esm.js} +1 -1
- package/dist/selfie.esm.js +6 -6
- package/dist/{selfieErrorUtils--ujzZ8DE.esm.js → selfieErrorUtils-DaLNGKZY.esm.js} +1 -1
- package/dist/{selfieManager-B-GvEZyH.esm.js → selfieManager-CiGj1cvO.esm.js} +3 -3
- package/dist/{selfieStateMachine-CzoyDjAC.esm.js → selfieStateMachine-vA55Kf8-.esm.js} +3 -3
- package/dist/{session-BPn7B0C0.esm.js → session-CW9L_h0-.esm.js} +3 -3
- package/dist/session.d.ts +19 -1
- package/dist/session.esm.js +6 -5
- package/dist/{sessionInitializer-BGQRpBpf.esm.js → sessionInitializer-8oSHIE22.esm.js} +7 -6
- package/dist/{setup-DI95aSUq.esm.js → setup-slU1A4sr.esm.js} +4 -4
- package/dist/{trueSightService-Ddz01P53.esm.js → trueSightService-Bzjy3-tE.esm.js} +14 -5
- package/dist/video-selfie.esm.js +24 -11
- package/dist/{videoSelfieCameraWarmer-D3uPqG3d.esm.js → videoSelfieCameraWarmer-COsjS4Q1.esm.js} +5 -5
- package/dist/wasm.esm.js +2 -2
- package/dist/workflow.d.ts +3 -0
- package/dist/workflow.esm.js +34 -28
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, i as AE_CONSENT_KEYS, l as getConsentKeys, n as createElectronicSignatureManagerFromActor, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-
|
|
1
|
+
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, i as AE_CONSENT_KEYS, l as getConsentKeys, n as createElectronicSignatureManagerFromActor, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-BvKmLsO7.esm.js";
|
|
2
2
|
export { AE_CONSENT_KEYS, NAMIRIAL_QES_CONSENT_KEYS, NAMIRIAL_QES_PROVIDER_CODE, QE_CONSENT_KEYS, areAllConsented, createElectronicSignatureManager, createElectronicSignatureManagerFromActor, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
|
|
@@ -2,10 +2,10 @@ import { n as eventModuleNames, o as createManagerInstrumentation } from "./even
|
|
|
2
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
5
|
-
import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-
|
|
5
|
+
import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-BQGiCr9h.esm.js";
|
|
6
6
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
7
7
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
8
|
-
import { t as externalFetch } from "./externalFetch-
|
|
8
|
+
import { t as externalFetch } from "./externalFetch-mShctxq_.esm.js";
|
|
9
9
|
//#region src/modules/electronic-signature/electronicSignatureServices.ts
|
|
10
10
|
async function fetchUnsignedDocuments(signal) {
|
|
11
11
|
try {
|
package/dist/email.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as emailMachine } from "./emailStateMachine-
|
|
2
|
-
import { t as createEmailManager } from "./emailManager-
|
|
1
|
+
import { t as emailMachine } from "./emailStateMachine-g1zgI6-w.esm.js";
|
|
2
|
+
import { t as createEmailManager } from "./emailManager-wsqyGXcv.esm.js";
|
|
3
3
|
export { createEmailManager, emailMachine };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
|
|
2
2
|
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
|
-
import { t as emailMachine } from "./emailStateMachine-
|
|
3
|
+
import { t as emailMachine } from "./emailStateMachine-g1zgI6-w.esm.js";
|
|
4
4
|
import { n as isOtpComplete } from "./otp-D2k3PeSL.esm.js";
|
|
5
5
|
//#region src/modules/email/emailActor.ts
|
|
6
6
|
function createEmailActor(options) {
|
|
@@ -3,6 +3,7 @@ import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
5
5
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
6
|
+
import { t as carryAttempts } from "./attemptCarry-BCQgBZ7b.esm.js";
|
|
6
7
|
import { n as isOtpComplete, t as computeOtpValidationErrors } from "./otp-D2k3PeSL.esm.js";
|
|
7
8
|
//#region src/modules/email/emailServices.ts
|
|
8
9
|
function getEmailServerFailureReason(error, invalidStatus) {
|
|
@@ -163,26 +164,37 @@ const emailMachine = setup({
|
|
|
163
164
|
}).createMachine({
|
|
164
165
|
id: "email",
|
|
165
166
|
initial: "idle",
|
|
166
|
-
context: ({ input }) =>
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
167
|
+
context: ({ input, self }) => {
|
|
168
|
+
const carried = carryAttempts("email", self, (s) => ({ attemptsRemaining: s.matches("error") ? s.context.attemptsRemaining - 1 : s.context.attemptsRemaining }));
|
|
169
|
+
return {
|
|
170
|
+
config: input.config,
|
|
171
|
+
email: "",
|
|
172
|
+
isValid: false,
|
|
173
|
+
emailError: void 0,
|
|
174
|
+
validationErrors: void 0,
|
|
175
|
+
prefilledEmail: void 0,
|
|
176
|
+
error: void 0,
|
|
177
|
+
otpCode: "",
|
|
178
|
+
otpError: void 0,
|
|
179
|
+
otpValidationErrors: void 0,
|
|
180
|
+
attemptsRemaining: carried.attemptsRemaining ?? input.config.maxOtpAttempts ?? 3,
|
|
181
|
+
resendTimer: 0,
|
|
182
|
+
resendTimerActive: false
|
|
183
|
+
};
|
|
184
|
+
},
|
|
181
185
|
states: {
|
|
182
|
-
idle: { on: { LOAD: [
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
+
idle: { on: { LOAD: [
|
|
187
|
+
{
|
|
188
|
+
target: "error",
|
|
189
|
+
guard: ({ context }) => context.attemptsRemaining <= 0 && context.attemptsRemaining < (context.config.maxOtpAttempts ?? 3),
|
|
190
|
+
actions: assign({ error: () => "Maximum OTP attempts exceeded" })
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
target: "loadingPrefill",
|
|
194
|
+
guard: "hasPrefill"
|
|
195
|
+
},
|
|
196
|
+
{ target: "inputting" }
|
|
197
|
+
] } },
|
|
186
198
|
loadingPrefill: { invoke: {
|
|
187
199
|
id: "fetchEmail",
|
|
188
200
|
src: "fetchEmail",
|
package/dist/extensibility.d.ts
CHANGED
|
@@ -12,12 +12,12 @@ import "./StreamCanvasCapture-DVmzJux5.js";
|
|
|
12
12
|
import { G as WasmUtilProvider, i as createIdCaptureManagerFromActor, n as IdCaptureManager, r as IdCaptureState, v as IdCaptureActor } from "./idCaptureManager-BY97SRCV.js";
|
|
13
13
|
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-CANv5-W5.js";
|
|
14
14
|
import { a as CertificateIssuanceActor, i as createCertificateIssuanceManagerFromActor, n as CertificateIssuanceState, t as CertificateIssuanceManager } from "./certificateIssuanceManager-Dr8A4Lgr.js";
|
|
15
|
-
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-
|
|
15
|
+
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-Ca8FHlC4.js";
|
|
16
16
|
import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-yCWCOzcU.js";
|
|
17
17
|
import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-B-1EZbP_.js";
|
|
18
18
|
import { a as createCustomFieldsManagerFromActor, n as CustomFieldsState, o as CustomFieldsActor, t as CustomFieldsManager } from "./customFieldsManager-CF-cO8ap.js";
|
|
19
19
|
import { a as CustomWatchlistActor, i as createCustomWatchlistManagerFromActor, n as CustomWatchlistState, t as CustomWatchlistManager } from "./customWatchlistManager-DolUswyR.js";
|
|
20
|
-
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-
|
|
20
|
+
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-DfoKYNcx.js";
|
|
21
21
|
import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as DynamicFormsState, t as DynamicFormsManager } from "./dynamicFormsManager-C0dHs1ty.js";
|
|
22
22
|
import { a as EkybActor, i as createEkybManagerFromActor, n as EkybState, t as EkybManager } from "./ekybManager-BaZ_7CEu.js";
|
|
23
23
|
import { a as EkycActor, i as createEkycManagerFromActor, n as EkycState, t as EkycManager } from "./ekycManager-DW-ynodd.js";
|
|
@@ -29,11 +29,11 @@ import { a as WatchlistActor, i as createWatchlistManagerFromActor, n as Watchli
|
|
|
29
29
|
import { i as WatchlistForBusinessState, l as WatchlistForBusinessActor, o as createWatchlistForBusinessManagerFromActor, r as WatchlistForBusinessManager } from "./watchlistForBusinessManager-B3GDPZrr.js";
|
|
30
30
|
import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-ooAbp6Kc.js";
|
|
31
31
|
import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-CUX4gza2.js";
|
|
32
|
-
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-
|
|
32
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-ntGT3XBv.js";
|
|
33
33
|
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-DT3kPIB3.js";
|
|
34
34
|
import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-CVsvpVbQ.js";
|
|
35
35
|
import { a as createSignatureManagerFromActor, n as SignatureManager, o as SignatureActor, r as SignatureState } from "./signatureManager-BpVt_Jv7.js";
|
|
36
|
-
import { a as GeolocationActor, i as createGeolocationManagerFromActor, n as GeolocationState, t as GeolocationManager } from "./geolocationManager-
|
|
36
|
+
import { a as GeolocationActor, i as createGeolocationManagerFromActor, n as GeolocationState, t as GeolocationManager } from "./geolocationManager-CpIjrPEG.js";
|
|
37
37
|
import { a as GovernmentValidationActor, i as createGovernmentValidationManagerFromActor, n as GovernmentValidationState, t as GovernmentValidationManager } from "./governmentValidationManager-B82zOut8.js";
|
|
38
38
|
import { a as IdVerificationActor, i as createIdVerificationManagerFromActor, n as IdVerificationState, t as IdVerificationManager } from "./idVerificationManager-BJapZfpy.js";
|
|
39
39
|
import { a as FaceMatchActor, i as createFaceMatchManagerFromActor, n as FaceMatchState, t as FaceMatchManager } from "./faceMatchManager-DIgG-UFS.js";
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-CIdnE7Fx.esm.js";
|
|
2
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
3
|
-
import { g as getFingerprint, y as getDeviceFingerprintInfo } from "./sessionInitializer-
|
|
2
|
+
import { u as BrowserStorageProvider } from "./setup-slU1A4sr.esm.js";
|
|
3
|
+
import { g as getFingerprint, y as getDeviceFingerprintInfo } from "./sessionInitializer-8oSHIE22.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
5
5
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
6
|
-
import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-
|
|
6
|
+
import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-BvKmLsO7.esm.js";
|
|
7
7
|
import { n as createAntifraudManagerFromActor } from "./antifraudManager-HL08jeDX.esm.js";
|
|
8
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
9
|
-
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-
|
|
10
|
-
import { n as createCertificateIssuanceManagerFromActor } from "./certificateIssuanceManager-
|
|
8
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-DGbFv_lR.esm.js";
|
|
9
|
+
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-BLRj_oL4.esm.js";
|
|
10
|
+
import { n as createCertificateIssuanceManagerFromActor } from "./certificateIssuanceManager-DpQlzzx5.esm.js";
|
|
11
11
|
import { n as createConsentManagerFromActor } from "./consentManager-CjrxY737.esm.js";
|
|
12
12
|
import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-BHnGRsto.esm.js";
|
|
13
|
-
import { n as createCurpValidationManagerFromActor } from "./curpValidationManager-
|
|
13
|
+
import { n as createCurpValidationManagerFromActor } from "./curpValidationManager-DmfAsC6f.esm.js";
|
|
14
14
|
import { n as createCustomFieldsManagerFromActor } from "./customFieldsManager-BV6UyLFV.esm.js";
|
|
15
15
|
import { n as createCustomWatchlistManagerFromActor } from "./customWatchlistManager-DML0UPzf.esm.js";
|
|
16
|
-
import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-
|
|
17
|
-
import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-
|
|
18
|
-
import { n as createEkybManagerFromActor } from "./ekybManager-
|
|
16
|
+
import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-pkph2Ise.esm.js";
|
|
17
|
+
import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-jXO_VdVI.esm.js";
|
|
18
|
+
import { n as createEkybManagerFromActor } from "./ekybManager-BsEC0z6j.esm.js";
|
|
19
19
|
import { n as createEkycManagerFromActor } from "./ekycManager-BdJRUsz0.esm.js";
|
|
20
|
-
import { n as createEmailManagerFromActor } from "./emailManager-
|
|
21
|
-
import { n as createSelfieManagerFromActor } from "./selfieManager-
|
|
22
|
-
import { s as createIdCaptureManagerFromActor } from "./idCaptureManager-
|
|
23
|
-
import { n as createPhoneManagerFromActor } from "./phoneManager-
|
|
20
|
+
import { n as createEmailManagerFromActor } from "./emailManager-wsqyGXcv.esm.js";
|
|
21
|
+
import { n as createSelfieManagerFromActor } from "./selfieManager-CiGj1cvO.esm.js";
|
|
22
|
+
import { s as createIdCaptureManagerFromActor } from "./idCaptureManager-CTqOUIzb.esm.js";
|
|
23
|
+
import { n as createPhoneManagerFromActor } from "./phoneManager-DCkYa3x8.esm.js";
|
|
24
24
|
import { n as createWatchlistManagerFromActor } from "./watchlistManager-CNWEOYSq.esm.js";
|
|
25
25
|
import { n as createWatchlistForBusinessManagerFromActor } from "./watchlistForBusinessManager-BvF4jK3S.esm.js";
|
|
26
26
|
import { n as createIdentityReuseManagerFromActor } from "./identityReuseManager-BleUi6TK.esm.js";
|
|
@@ -29,7 +29,7 @@ import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentM
|
|
|
29
29
|
import { n as createIdOcrManagerFromActor } from "./idOcrManager-DxoCesYP.esm.js";
|
|
30
30
|
import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-B1yQHFLu.esm.js";
|
|
31
31
|
import { n as createSignatureManagerFromActor } from "./signatureManager-qqXyH93e.esm.js";
|
|
32
|
-
import { n as createGeolocationManagerFromActor } from "./geolocationManager-
|
|
32
|
+
import { n as createGeolocationManagerFromActor } from "./geolocationManager-CsEoGzz_.esm.js";
|
|
33
33
|
import { n as createGovernmentValidationManagerFromActor } from "./governmentValidationManager-CP0SiOOe.esm.js";
|
|
34
34
|
import { n as createIdVerificationManagerFromActor } from "./idVerificationManager-CDhRUU5n.esm.js";
|
|
35
35
|
import { n as createFaceMatchManagerFromActor } from "./faceMatchManager-9Nj9aPci.esm.js";
|
|
@@ -13,6 +13,9 @@ async function externalFetch(config) {
|
|
|
13
13
|
headers: config.headers,
|
|
14
14
|
body: config.body,
|
|
15
15
|
signal: config.signal
|
|
16
|
+
}).catch((error) => {
|
|
17
|
+
if (error instanceof TypeError) reportHttpError(new HttpRequestError(0, "Network Error", stripUrlQueryAndFragment(url), config.method, {}, null), config.headers);
|
|
18
|
+
throw error;
|
|
16
19
|
});
|
|
17
20
|
if (!res.ok) throw reportHttpError(new HttpRequestError(res.status, res.statusText, stripUrlQueryAndFragment(url), config.method, Object.fromEntries(res.headers), null), config.headers);
|
|
18
21
|
return res;
|
package/dist/{faceCaptureManagerFactory-DAHyC1O_.esm.js → faceCaptureManagerFactory-Bkq-Zyud.esm.js}
RENAMED
|
@@ -2,7 +2,7 @@ import { n as eventModuleNames, o as createManagerInstrumentation, r as eventScr
|
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
4
|
import { t as splitTrackedName } from "./splitTrackedName-3zJRd2RD.esm.js";
|
|
5
|
-
import { r as concealmentToAvatar } from "./faceCaptureSetup-
|
|
5
|
+
import { r as concealmentToAvatar } from "./faceCaptureSetup-DGbFv_lR.esm.js";
|
|
6
6
|
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BXCGqP48.esm.js";
|
|
7
7
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
8
8
|
import { r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-d2UW0r_L.esm.js";
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { l as trueSightLog, v as isTrueSightTesting } from "./trueSightService-
|
|
1
|
+
import { l as trueSightLog, v as isTrueSightTesting } from "./trueSightService-Bzjy3-tE.esm.js";
|
|
2
2
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
3
3
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
5
|
-
import "./sessionInitializer-
|
|
5
|
+
import "./sessionInitializer-8oSHIE22.esm.js";
|
|
6
6
|
import { t as addDeviceStats } from "./stats-DmG_tkGk.esm.js";
|
|
7
7
|
import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
|
|
8
8
|
import { i as assign, n as enqueueActions, r as sendTo, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
9
9
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
10
10
|
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-d2UW0r_L.esm.js";
|
|
11
|
-
import { a as sendLabelInspectionEvent, d as FACE_ERROR_CODES, i as initializeDeepsightSession, r as initializeCamera, s as stopStream, t as FaceDetectionProvider, u as getFaceUploadErrorCode } from "./FaceDetectionProvider-
|
|
11
|
+
import { a as sendLabelInspectionEvent, d as FACE_ERROR_CODES, i as initializeDeepsightSession, r as initializeCamera, s as stopStream, t as FaceDetectionProvider, u as getFaceUploadErrorCode } from "./FaceDetectionProvider-nnhjmMV8.esm.js";
|
|
12
12
|
import { i as flagFaceManualReview, n as runProtectedAttempt, o as PROTECTED_CAPTURE_TARGET, r as cameraCycleProvider, t as createCameraCycleOwnership } from "./createCameraCycleOwnership-kdlhkmmY.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
15
|
import { n as needsMotionPrimeOnlyFromPermission, r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-Bf4LbHjC.esm.js";
|
|
16
|
-
import {
|
|
16
|
+
import { t as carryAttempts } from "./attemptCarry-BCQgBZ7b.esm.js";
|
|
17
|
+
import { a as getAdaptiveMediaRecorderOptions, i as createRecordingCompositor, n as WorkerEncoderRecordingProvider, t as MultipartRecordingService } from "./multipartRecordingService-BUQfonSs.esm.js";
|
|
17
18
|
import { t as getDeviceClass } from "./getDeviceClass-bsWdEDxP.esm.js";
|
|
18
19
|
//#region src/internal/avatar/concealment.ts
|
|
19
20
|
/**
|
|
@@ -1481,6 +1482,7 @@ const faceCaptureMachine = setup({
|
|
|
1481
1482
|
hasStream: ({ context }) => context.stream !== void 0,
|
|
1482
1483
|
isCameraAndDeepsightReady: ({ context }) => context.stream !== void 0 && context.deepsightReady,
|
|
1483
1484
|
hasAttemptsRemaining: ({ context }) => context.attemptsRemaining > 0,
|
|
1485
|
+
isOutOfAttempts: ({ context }) => context.attemptsRemaining <= 0 && context.attemptsRemaining < getAttemptsFromConfig(context.config),
|
|
1484
1486
|
hasCapturedImage: ({ context }) => context.capturedImage !== void 0,
|
|
1485
1487
|
isAutoCaptureAllowed: ({ context }) => !context.retainManualMode,
|
|
1486
1488
|
canCommitProtectedManual: ({ context }) => context.manualCaptureTriggered && context.config.onDeviceFaceResultsSubmissionEnabled !== true,
|
|
@@ -1494,7 +1496,7 @@ const faceCaptureMachine = setup({
|
|
|
1494
1496
|
id: "faceCapture",
|
|
1495
1497
|
initial: "idle",
|
|
1496
1498
|
entry: "bindProtectedFaceController",
|
|
1497
|
-
context: ({ input }) => ({
|
|
1499
|
+
context: ({ input, self }) => ({
|
|
1498
1500
|
config: input.config,
|
|
1499
1501
|
dependencies: input.dependencies,
|
|
1500
1502
|
authHint: input.authHint,
|
|
@@ -1506,7 +1508,7 @@ const faceCaptureMachine = setup({
|
|
|
1506
1508
|
faceCoordinates: void 0,
|
|
1507
1509
|
uploadResponse: void 0,
|
|
1508
1510
|
processResponse: void 0,
|
|
1509
|
-
attemptsRemaining: getAttemptsFromConfig(input.config),
|
|
1511
|
+
attemptsRemaining: carryAttempts("faceCapture", self, (s) => ({ attemptsRemaining: s.context.attemptsRemaining })).attemptsRemaining ?? getAttemptsFromConfig(input.config),
|
|
1510
1512
|
uploadError: void 0,
|
|
1511
1513
|
permissionResult: void 0,
|
|
1512
1514
|
deepsightReady: false,
|
|
@@ -1531,6 +1533,10 @@ const faceCaptureMachine = setup({
|
|
|
1531
1533
|
},
|
|
1532
1534
|
states: {
|
|
1533
1535
|
idle: { on: { LOAD: [
|
|
1536
|
+
{
|
|
1537
|
+
target: "outOfAttempts",
|
|
1538
|
+
guard: "isOutOfAttempts"
|
|
1539
|
+
},
|
|
1534
1540
|
{
|
|
1535
1541
|
target: "tutorial",
|
|
1536
1542
|
guard: "hasShowTutorial"
|
|
@@ -1948,6 +1954,14 @@ const faceCaptureMachine = setup({
|
|
|
1948
1954
|
},
|
|
1949
1955
|
onError: { target: "finished" }
|
|
1950
1956
|
} },
|
|
1957
|
+
outOfAttempts: { always: [{
|
|
1958
|
+
target: "error",
|
|
1959
|
+
guard: "isNoAttemptsTerminal",
|
|
1960
|
+
actions: "setTerminalError"
|
|
1961
|
+
}, {
|
|
1962
|
+
target: "terminalProcessing",
|
|
1963
|
+
actions: "flagFaceManualReview"
|
|
1964
|
+
}] },
|
|
1951
1965
|
terminalProcessing: {
|
|
1952
1966
|
entry: ["completeProtectedRecording", "cleanup"],
|
|
1953
1967
|
invoke: {
|
|
@@ -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-DgSsq5kd.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-BxNNoDb_.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.esm.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { v as addEvent } from "./events-CAgFE-k3.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { i as retryAfterReconnect } from "./connectivity-HSl0diCx.esm.js";
|
|
3
|
+
import { a as resolveDashboardModuleConfig, c as getRequiredWasmPipelines, j as mergeDashboardConfig, l as normalizeFlowModules, n as getFlow, o as enrichFlowModuleConfig, r as preloadDashboardFlow, s as getNextRequiredWasmPipelines, t as completeDeferredActivation, u as resolveFlowModuleConfig } from "./flowServices-J5PML3Fw.esm.js";
|
|
3
4
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
5
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
5
|
-
import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-
|
|
6
|
-
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-
|
|
6
|
+
import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-DoOZsAkE.esm.js";
|
|
7
|
+
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-ibVgOupr.esm.js";
|
|
7
8
|
import { n as isAdvanceableError } from "./advanceableErrors-q_pfU3Cn.esm.js";
|
|
8
9
|
//#region src/modules/flow/noOpFlowModuleMachine.ts
|
|
9
10
|
const noOpFlowModuleMachine = /* @__PURE__ */ (() => setup({}).createMachine({
|
|
@@ -411,12 +412,8 @@ const orchestratedFlowMachine = /* @__PURE__ */ (() => setup({
|
|
|
411
412
|
input: {}
|
|
412
413
|
},
|
|
413
414
|
actors: {
|
|
414
|
-
fetchFlow: fromPromise(
|
|
415
|
-
|
|
416
|
-
}),
|
|
417
|
-
notifyBackend: fromPromise(async ({ input, signal }) => {
|
|
418
|
-
return await input.getFinishStatus(input.flowId, signal);
|
|
419
|
-
}),
|
|
415
|
+
fetchFlow: fromPromise(({ input, signal }) => retryAfterReconnect(() => input.getFlow(signal), signal)),
|
|
416
|
+
notifyBackend: fromPromise(({ input, signal }) => retryAfterReconnect(() => input.getFinishStatus(input.flowId, signal), signal)),
|
|
420
417
|
runChildModule,
|
|
421
418
|
resolveActivation: fromPromise(async ({ input, signal }) => {
|
|
422
419
|
if (!input.flow) throw new Error("No flow loaded");
|
package/dist/{flowCompletionService-DyhDnWkk.esm.js → flowCompletionService-DoOZsAkE.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
3
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
3
|
+
import { i as toIncodeApiError } from "./apiError-BQGiCr9h.esm.js";
|
|
4
4
|
//#region src/modules/flow/flowCompletionService.ts
|
|
5
5
|
const getFinishStatus = async (flowId, signal) => {
|
|
6
6
|
const url = `${endpoints.finishStatus}${flowId ? `?flowId=${flowId}` : ""}`;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as getWasmStatus } from "./warmup-DMtbyb2l.esm.js";
|
|
2
2
|
import { r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
4
|
-
import { i as initializeSession, l as whenSessionFingerprintSettled, r as getSessionFingerprintResult, u as getStandaloneFlowPolicy } from "./sessionInitializer-
|
|
5
|
-
import { E as updateFeatureManagementUser } from "./feature-management-
|
|
6
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
7
|
-
import "./session-
|
|
4
|
+
import { i as initializeSession, l as whenSessionFingerprintSettled, r as getSessionFingerprintResult, u as getStandaloneFlowPolicy } from "./sessionInitializer-8oSHIE22.esm.js";
|
|
5
|
+
import { E as updateFeatureManagementUser } from "./feature-management-BxNNoDb_.esm.js";
|
|
6
|
+
import { i as toIncodeApiError } from "./apiError-BQGiCr9h.esm.js";
|
|
7
|
+
import "./session-CW9L_h0-.esm.js";
|
|
8
8
|
import { a as toEkycConfig } from "./ekycUtils-zY8CdKJL.esm.js";
|
|
9
9
|
//#region src/modules/flow/dashboardConfig.ts
|
|
10
10
|
function isPlainObject(value) {
|
package/dist/geolocation.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as GeolocationState, o as geolocationMachine, r as createGeolocationManager, s as GeolocationConfig, t as GeolocationManager } from "./geolocationManager-
|
|
1
|
+
import { n as GeolocationState, o as geolocationMachine, r as createGeolocationManager, s as GeolocationConfig, t as GeolocationManager } from "./geolocationManager-CpIjrPEG.js";
|
|
2
2
|
export { type GeolocationConfig, type GeolocationManager, type GeolocationState, createGeolocationManager, geolocationMachine };
|
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-CsEoGzz_.esm.js";
|
|
2
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-BRd4yWfe.esm.js";
|
|
3
3
|
export { createGeolocationManager, geolocationMachine };
|
|
@@ -104,6 +104,10 @@ declare const geolocationMachine: StateMachine<GeolocationContext, {
|
|
|
104
104
|
params: NonReducibleUnknown;
|
|
105
105
|
};
|
|
106
106
|
}>, Values<{
|
|
107
|
+
isOutOfAttempts: {
|
|
108
|
+
type: "isOutOfAttempts";
|
|
109
|
+
params: unknown;
|
|
110
|
+
};
|
|
107
111
|
canSkip: {
|
|
108
112
|
type: "canSkip";
|
|
109
113
|
params: unknown;
|
|
@@ -120,10 +124,10 @@ declare const geolocationMachine: StateMachine<GeolocationContext, {
|
|
|
120
124
|
type: "isPermissionDenied";
|
|
121
125
|
params: unknown;
|
|
122
126
|
};
|
|
123
|
-
}>, never, "error" | "idle" | "closed" | "finished" | "requestingLocation" | "submitting" | "permissionDenied" | "locationAcquired"
|
|
127
|
+
}>, never, "error" | "idle" | "closed" | "finished" | "requestingLocation" | "submitting" | "permissionDenied" | "locationAcquired", string, GeolocationInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
124
128
|
readonly id: "geolocation";
|
|
125
129
|
readonly initial: "idle";
|
|
126
|
-
readonly context: ({ input }: {
|
|
130
|
+
readonly context: ({ input, self }: {
|
|
127
131
|
spawn: {
|
|
128
132
|
<TSrc extends "requestPosition" | "submitPosition">(logic: TSrc, ...[options]: ({
|
|
129
133
|
src: "requestPosition";
|
|
@@ -219,9 +223,12 @@ declare const geolocationMachine: StateMachine<GeolocationContext, {
|
|
|
219
223
|
readonly states: {
|
|
220
224
|
readonly idle: {
|
|
221
225
|
readonly on: {
|
|
222
|
-
readonly REQUEST: {
|
|
226
|
+
readonly REQUEST: readonly [{
|
|
227
|
+
readonly target: "error";
|
|
228
|
+
readonly guard: "isOutOfAttempts";
|
|
229
|
+
}, {
|
|
223
230
|
readonly target: "requestingLocation";
|
|
224
|
-
};
|
|
231
|
+
}];
|
|
225
232
|
};
|
|
226
233
|
};
|
|
227
234
|
readonly requestingLocation: {
|
|
@@ -326,7 +333,7 @@ declare const geolocationMachine: StateMachine<GeolocationContext, {
|
|
|
326
333
|
readonly actions: "setLocation";
|
|
327
334
|
};
|
|
328
335
|
readonly onError: readonly [{
|
|
329
|
-
readonly target: "
|
|
336
|
+
readonly target: "error";
|
|
330
337
|
readonly guard: "isNetworkError";
|
|
331
338
|
}, {
|
|
332
339
|
readonly target: "error";
|
|
@@ -334,7 +341,6 @@ declare const geolocationMachine: StateMachine<GeolocationContext, {
|
|
|
334
341
|
}];
|
|
335
342
|
};
|
|
336
343
|
};
|
|
337
|
-
readonly noNetwork: {};
|
|
338
344
|
readonly error: {
|
|
339
345
|
readonly on: {
|
|
340
346
|
readonly RETRY: {
|
|
@@ -409,8 +415,8 @@ type GeolocationErrorState = {
|
|
|
409
415
|
canSkip: boolean;
|
|
410
416
|
};
|
|
411
417
|
/**
|
|
412
|
-
*
|
|
413
|
-
*
|
|
418
|
+
* @deprecated Never emitted. A connectivity failure now goes to `error`
|
|
419
|
+
* without using an attempt, and the session boundary shows the offline screen.
|
|
414
420
|
*/
|
|
415
421
|
type GeolocationNoNetworkState = {
|
|
416
422
|
status: 'noNetwork';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
|
|
2
2
|
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
3
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-BRd4yWfe.esm.js";
|
|
4
4
|
//#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
|
|
5
5
|
var BrowserGeolocationProvider = class {
|
|
6
6
|
getCurrentPosition() {
|
|
@@ -38,10 +38,10 @@ function createGeolocationActor(options) {
|
|
|
38
38
|
* a transient failure (position unavailable / timeout, e.g. the browser's
|
|
39
39
|
* `kCLErrorLocationUnknown`) routes to the attempt-limited `error` state so the
|
|
40
40
|
* user can retry. A backend submit failure (`submitPosition` `onError`) splits
|
|
41
|
-
* by cause: a
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* surfaces have their own Figma screen names.
|
|
41
|
+
* by cause: a server-side rejection routes to the same attempt-limited
|
|
42
|
+
* location-unavailable screen, while a connectivity error routes there without
|
|
43
|
+
* using an attempt (the session boundary shows the offline screen). Both
|
|
44
|
+
* rendered error surfaces have their own Figma screen names.
|
|
45
45
|
*/
|
|
46
46
|
function getGeolocationScreenName(snapshot) {
|
|
47
47
|
const { value } = snapshot;
|
|
@@ -54,7 +54,6 @@ function getGeolocationScreenName(snapshot) {
|
|
|
54
54
|
case "finished": return "Geolocation.continue";
|
|
55
55
|
case "permissionDenied": return "Geolocation.allowLocation";
|
|
56
56
|
case "error": return "Geolocation.error.locationUnavailable";
|
|
57
|
-
case "noNetwork": return "Geolocation.error.noNetwork";
|
|
58
57
|
default: return;
|
|
59
58
|
}
|
|
60
59
|
}
|
|
@@ -78,7 +77,6 @@ function mapState(snapshot) {
|
|
|
78
77
|
attemptsRemaining: context.attemptsRemaining,
|
|
79
78
|
canSkip: context.config.allowUserToSkipGeolocation === true
|
|
80
79
|
};
|
|
81
|
-
if (typedSnapshot.matches("noNetwork")) return { status: "noNetwork" };
|
|
82
80
|
if (typedSnapshot.matches("finished")) return { status: "finished" };
|
|
83
81
|
if (typedSnapshot.matches("closed")) return { status: "closed" };
|
|
84
82
|
return { status: "idle" };
|
package/dist/{geolocationStateMachine-hsoBC3si.esm.js → geolocationStateMachine-BRd4yWfe.esm.js}
RENAMED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
3
3
|
import { a as isIOS, t as isAndroid } from "./platform-DkcRc9JV.esm.js";
|
|
4
|
-
import { n as isConnectivityError } from "./apiError-
|
|
4
|
+
import { n as isConnectivityError } from "./apiError-BQGiCr9h.esm.js";
|
|
5
5
|
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
6
6
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
7
|
+
import { t as carryAttempts } from "./attemptCarry-BCQgBZ7b.esm.js";
|
|
7
8
|
//#region src/modules/geolocation/geolocationServices.ts
|
|
8
9
|
async function addGeolocation(params, signal) {
|
|
9
10
|
const res = await api.post(endpoints.addGeolocation, {
|
|
@@ -51,6 +52,7 @@ const geolocationMachine = setup({
|
|
|
51
52
|
decrementAttemptsRemaining: assign(({ context }) => ({ attemptsRemaining: context.attemptsRemaining - 1 }))
|
|
52
53
|
},
|
|
53
54
|
guards: {
|
|
55
|
+
isOutOfAttempts: ({ context }) => context.attemptsRemaining <= 0 && context.attemptsRemaining < resolveMaxAttempts(context.config),
|
|
54
56
|
canSkip: ({ context }) => context.config.allowUserToSkipGeolocation === true,
|
|
55
57
|
hasAttemptsRemaining: ({ context }) => context.attemptsRemaining > 0,
|
|
56
58
|
isNetworkError: ({ event }) => isConnectivityError(event.error),
|
|
@@ -59,16 +61,19 @@ const geolocationMachine = setup({
|
|
|
59
61
|
}).createMachine({
|
|
60
62
|
id: "geolocation",
|
|
61
63
|
initial: "idle",
|
|
62
|
-
context: ({ input }) => ({
|
|
64
|
+
context: ({ input, self }) => ({
|
|
63
65
|
config: input.config,
|
|
64
66
|
geolocation: input.geolocation,
|
|
65
67
|
coords: void 0,
|
|
66
68
|
location: void 0,
|
|
67
69
|
deviceType: detectDeviceType(),
|
|
68
|
-
attemptsRemaining: resolveMaxAttempts(input.config)
|
|
70
|
+
attemptsRemaining: carryAttempts("geolocation", self, (s) => ({ attemptsRemaining: s.context.attemptsRemaining })).attemptsRemaining ?? resolveMaxAttempts(input.config)
|
|
69
71
|
}),
|
|
70
72
|
states: {
|
|
71
|
-
idle: { on: { REQUEST: {
|
|
73
|
+
idle: { on: { REQUEST: [{
|
|
74
|
+
target: "error",
|
|
75
|
+
guard: "isOutOfAttempts"
|
|
76
|
+
}, { target: "requestingLocation" }] } },
|
|
72
77
|
requestingLocation: { invoke: {
|
|
73
78
|
id: "requestPosition",
|
|
74
79
|
src: "requestPosition",
|
|
@@ -98,14 +103,13 @@ const geolocationMachine = setup({
|
|
|
98
103
|
actions: "setLocation"
|
|
99
104
|
},
|
|
100
105
|
onError: [{
|
|
101
|
-
target: "
|
|
106
|
+
target: "error",
|
|
102
107
|
guard: "isNetworkError"
|
|
103
108
|
}, {
|
|
104
109
|
target: "error",
|
|
105
110
|
actions: "decrementAttemptsRemaining"
|
|
106
111
|
}]
|
|
107
112
|
} },
|
|
108
|
-
noNetwork: {},
|
|
109
113
|
error: { on: {
|
|
110
114
|
RETRY: {
|
|
111
115
|
target: "idle",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-CIdnE7Fx.esm.js";
|
|
2
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
2
|
+
import { t as ensureWasmPipelines } from "./setup-slU1A4sr.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
|
-
import { a as resolveDashboardModuleConfig, d as facingModeForStep } from "./flowServices-
|
|
4
|
+
import { a as resolveDashboardModuleConfig, d as facingModeForStep } from "./flowServices-J5PML3Fw.esm.js";
|
|
5
5
|
import { i as assign, r as sendTo, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
6
6
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
7
|
-
import { c as processFace, l as uploadSelfie, n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-
|
|
8
|
-
import { o as StreamCanvasProcessingSession, r as CameraCompositor } from "./multipartRecordingService-
|
|
7
|
+
import { c as processFace, l as uploadSelfie, n as encryptSelfieImage, o as startDetection, t as FaceDetectionProvider } from "./FaceDetectionProvider-nnhjmMV8.esm.js";
|
|
8
|
+
import { o as StreamCanvasProcessingSession, r as CameraCompositor } from "./multipartRecordingService-BUQfonSs.esm.js";
|
|
9
9
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
10
|
-
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-
|
|
11
|
-
import { _ as ID_ERROR_CODES, g as validateUploadResponse, h as uploadIdImage, u as processId } from "./idCaptureServices-
|
|
10
|
+
import { n as DEFAULT_ID_CAPTURE_THRESHOLDS, r as IdCaptureProvider, t as DEFAULT_ID_CAPTURE_GEOMETRY } from "./idCaptureDefaults-DADOO6VS.esm.js";
|
|
11
|
+
import { _ as ID_ERROR_CODES, g as validateUploadResponse, h as uploadIdImage, u as processId } from "./idCaptureServices-Bq4RdayZ.esm.js";
|
|
12
12
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-C9jtgBdT.esm.js";
|
|
13
|
-
import { n as getFinishStatus } from "./flowCompletionService-
|
|
14
|
-
import { i as delay, n as defaultAcquireCamera, o as isSelfieValidationError, s as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-
|
|
13
|
+
import { n as getFinishStatus } from "./flowCompletionService-DoOZsAkE.esm.js";
|
|
14
|
+
import { i as delay, n as defaultAcquireCamera, o as isSelfieValidationError, s as isWrongVideoSelfieIdSide } from "./videoSelfieCameraWarmer-COsjS4Q1.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
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as isRedirectFlowType, h as createDeviceWalletManager, i as DIGITAL_ID_REGISTRY, m as renderWallet, o as resolveDigitalIdImplementation, r as DIGITAL_ID_DOCUMENT_TYPES, t as idCaptureMachine, 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 ID_ERROR_CODES, a as getRealQualityValue, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as validateUploadResponse, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, n as barcodeToBase64, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId } from "./idCaptureServices-
|
|
1
|
+
import { a as isRedirectFlowType, h as createDeviceWalletManager, i as DIGITAL_ID_REGISTRY, m as renderWallet, o as resolveDigitalIdImplementation, r as DIGITAL_ID_DOCUMENT_TYPES, t as idCaptureMachine, v as resolveWalletPlatform } from "./idCaptureStateMachine-C_c-xD-u.esm.js";
|
|
2
|
+
import { a as idCaptureOnlyMachine, i as createIdCaptureOnlyActor, n as createIdCaptureOnlyManager, o as createIdCaptureActor, r as createIdCaptureOnlyManagerFromActor, t as createIdCaptureManager } from "./idCaptureManager-CTqOUIzb.esm.js";
|
|
3
|
+
import { _ as ID_ERROR_CODES, a as getRealQualityValue, c as pauseRecordingForAttempt, d as resumeRecordingAfterPause, f as startRecordingSession, g as validateUploadResponse, h as uploadIdImage, i as finalizeRecordingSession, l as prepareRecordingForCameraRetry, m as stopStream, n as barcodeToBase64, o as initializeIdCapture, p as stopRecording, r as disposeRecordingSession, s as isSuspendableRecordingSession, t as addBarcode, u as processId } from "./idCaptureServices-Bq4RdayZ.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,5 +1,5 @@
|
|
|
1
1
|
import { b as resolveWasmSource, p as WASM_MODEL_FILES } from "./wasmWebClient-kbYZ2sxw.esm.js";
|
|
2
|
-
import { E as getBarcodeEnhanceModelUrl } from "./trueSightService-
|
|
2
|
+
import { E as getBarcodeEnhanceModelUrl } from "./trueSightService-Bzjy3-tE.esm.js";
|
|
3
3
|
import { s as wasmRuntime, t as getResolvedModelSource } from "./warmup-DMtbyb2l.esm.js";
|
|
4
4
|
import { r as BaseWasmProvider } from "./WasmUtilProvider-CIdnE7Fx.esm.js";
|
|
5
5
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
|
|
2
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
2
|
+
import { u as BrowserStorageProvider } from "./setup-slU1A4sr.esm.js";
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { i as assign, s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
@@ -8,8 +8,8 @@ import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-BXCGqP48.esm.js";
|
|
|
8
8
|
import { t as BrowserVisibilityObserverProvider } from "./BrowserVisibilityObserverProvider-BrJN1B8A.esm.js";
|
|
9
9
|
import { c as resetWasmMotionPrimedForModule, o as requiresMotionPermissionUserGesture, r as primeMotionFromUserGestureIfNeeded } from "./permissionServices-d2UW0r_L.esm.js";
|
|
10
10
|
import { t as getDeviceClass } from "./getDeviceClass-bsWdEDxP.esm.js";
|
|
11
|
-
import { _ as mapDeviceWalletScreenName, c as createIdCaptureOnlyDeliveryActor, d as captureOnlyNeedsBack, f as hasOnCaptureCallback, g as BrowserDigitalCredentialsProvider, l as createIdProtectedCaptureController, n as provideIdProtectedCaptureController, p as pickIdCaptureOnlyConfig, s as attachIdProtectedCaptureController, t as idCaptureMachine, u as findIdProtectedCaptureController } from "./idCaptureStateMachine-
|
|
12
|
-
import { _ as ID_ERROR_CODES, b as resolveIdCaptureThresholds, v as resolveCaptureOptimizingTreatment, y as resolveCountdownStepMs } from "./idCaptureServices-
|
|
11
|
+
import { _ as mapDeviceWalletScreenName, c as createIdCaptureOnlyDeliveryActor, d as captureOnlyNeedsBack, f as hasOnCaptureCallback, g as BrowserDigitalCredentialsProvider, l as createIdProtectedCaptureController, n as provideIdProtectedCaptureController, p as pickIdCaptureOnlyConfig, s as attachIdProtectedCaptureController, t as idCaptureMachine, u as findIdProtectedCaptureController } from "./idCaptureStateMachine-C_c-xD-u.esm.js";
|
|
12
|
+
import { _ as ID_ERROR_CODES, b as resolveIdCaptureThresholds, v as resolveCaptureOptimizingTreatment, y as resolveCountdownStepMs } from "./idCaptureServices-Bq4RdayZ.esm.js";
|
|
13
13
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-BW7V3vub.esm.js";
|
|
14
14
|
//#region src/modules/id/digitalUpload/instrumentation.ts
|
|
15
15
|
const TERMINAL_REASONS = /* @__PURE__ */ new Set(["DIGITAL_ID_REQUESTED_BUT_OTHER_PROVIDED", "ID_TYPE_UNACCEPTABLE"]);
|