@incodetech/core 0.0.0-dev-20261126-5f60e77d → 0.0.0-dev-20261126-193a666f
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-BwT54CZm.esm.js → FaceDetectionProvider-BdQAQMnM.esm.js} +4 -4
- package/dist/ae-signature.d.ts +1 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-JMKIXW8m.esm.js → apiError-tX50HcR2.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-C5t83q7I.esm.js → authenticationManager-By1-mFP1.esm.js} +3 -3
- package/dist/{authenticationManager-CkD0JR7Q.d.ts → authenticationManager-D_dz2zK4.d.ts} +1 -1
- package/dist/{authenticationStateMachine-DhZA6_KY.esm.js → authenticationStateMachine-CSIuAN2Q.esm.js} +3 -3
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-Duzd8paN.d.ts → consentManager-B0YKqYtZ.d.ts} +5 -5
- package/dist/curp-validation.d.ts +1 -1
- package/dist/{curpValidationManager-HOidAKvT.d.ts → curpValidationManager-tNhzv7vZ.d.ts} +1 -1
- package/dist/{deepsightCaptureConfig-DpA88-4b.esm.js → deepsightCaptureConfig-DMKLKIHK.esm.js} +2 -2
- package/dist/{deepsightLoader-By-DQyB8.esm.js → deepsightLoader-BlrD-IGK.esm.js} +4 -4
- package/dist/{desktopCameraElection-BUZJpogD.esm.js → desktopCameraElection-0SEooFiw.esm.js} +4 -4
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-signature.esm.js +1 -1
- package/dist/{documentCaptureManager-sJWgqtUy.d.ts → documentCaptureManager-DLWTqjUr.d.ts} +1 -1
- package/dist/{documentSignatureStateMachine-CL0q5Vrl.esm.js → documentSignatureStateMachine-BRilUq8_.esm.js} +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-Crn_MUft.esm.js → dynamicFormsManager-BlRl1hYC.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-cgHiMezM.esm.js → dynamicFormsStateMachine-aoLvbxKN.esm.js} +1 -1
- package/dist/ekyb.d.ts +1 -1
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-C6qmWfdP.esm.js → ekybManager-DCXIioQ_.esm.js} +1 -1
- package/dist/{ekybStateMachine-uzIokzsd.esm.js → ekybStateMachine-CKvrtdfG.esm.js} +1 -1
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/ekyc.d.ts +2 -2
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-D2K8AaMV.esm.js → ekycManager-SUIAHlrm.esm.js} +1 -1
- package/dist/{ekycManager-DusmB-4j.d.ts → ekycManager-mv2rWxc4.d.ts} +1 -1
- package/dist/{ekycPrefillManager-DuNJes4k.esm.js → ekycPrefillManager-CzbJ0lIz.esm.js} +1 -1
- package/dist/{ekycPrefillStateMachine-xvqFOyUx.esm.js → ekycPrefillStateMachine-B8iezirV.esm.js} +21 -4
- package/dist/{ekycStateMachine-6EKndBd7.esm.js → ekycStateMachine-Czn2CaTV.esm.js} +134 -3
- package/dist/{ekycUtils-C6HZB46m.esm.js → ekycUtils-BnTyeA-_.esm.js} +12 -0
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-CfNhoAdm.esm.js → electronicSignatureManager-C8KpOeZM.esm.js} +1 -1
- package/dist/{electronicSignatureManager-5tYz-a4o.d.ts → electronicSignatureManager-Dxg9hr1_.d.ts} +1 -1
- package/dist/extensibility.d.ts +14 -14
- package/dist/extensibility.esm.js +13 -13
- package/dist/{faceCaptureManagerFactory-D1EJw36F.d.ts → faceCaptureManagerFactory-B1WfKaGJ.d.ts} +3 -3
- package/dist/{faceCaptureManagerFactory-BHFcxQ_d.esm.js → faceCaptureManagerFactory-DSkHx3Hf.esm.js} +2 -2
- package/dist/{faceCaptureSetup-CZJbLBHU.esm.js → faceCaptureSetup-Whkxs5PY.esm.js} +7 -7
- package/dist/{feature-management-Cd6qhoMK.esm.js → feature-management-Hd0_3bhc.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +6 -6
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-Cq7lTTKc.esm.js → flowCompletionService-yfF5SEr8.esm.js} +1 -1
- package/dist/{flowServices-D_VxkJgR.esm.js → flowServices-DVZMe6NL.esm.js} +5 -5
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-CWV5jQbF.esm.js → geolocationManager-L-udbkCR.esm.js} +1 -1
- package/dist/{geolocationStateMachine-B2ZAmZT2.esm.js → geolocationStateMachine-g9x_MGqv.esm.js} +1 -1
- package/dist/home.d.ts +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-selfie-flow.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +6 -6
- package/dist/id.d.ts +2 -2
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-Ca36hcvm.esm.js → idCaptureManager-BekfYQAj.esm.js} +4 -4
- package/dist/{idCaptureManager-CNFBeYgV.d.ts → idCaptureManager-BoXML6pU.d.ts} +2 -2
- package/dist/{idCaptureServices-DFUTKhma.esm.js → idCaptureServices-BnbVA2ON.esm.js} +2 -2
- package/dist/{idCaptureStateMachine-rYmtk2zl.esm.js → idCaptureStateMachine-BBNwdZgN.esm.js} +11 -11
- package/dist/{idOcrManager-C0C7lFGd.d.ts → idOcrManager-DflRx-_u.d.ts} +1 -1
- package/dist/{index-BoGlwLGK.d.ts → index-BnKhmWhM.d.ts} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/kyb-checks.esm.js +2 -2
- package/dist/{kybChecksManager-DhPTctez.esm.js → kybChecksManager-C7jgRIkr.esm.js} +1 -1
- package/dist/{kybChecksStateMachine-Buo8loLS.esm.js → kybChecksStateMachine-Baiu_u3L.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/{mandatoryConsentManager-BlIRqcY-.d.ts → mandatoryConsentManager-CXKXH2IS.d.ts} +6 -6
- package/dist/qe-signature.d.ts +1 -1
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-CVQvDIPe.esm.js → recordingService-DO1piBw6.esm.js} +1 -1
- package/dist/{runChildModule-Cn2Dh6QW.esm.js → runChildModule-ChudBKRb.esm.js} +1 -1
- package/dist/{numericRange-2e1vw1W0.esm.js → scriptCharacters-D7swUycV.esm.js} +13 -1
- package/dist/{sdkVersion-27XcPx1I.esm.js → sdkVersion-CCA1K6OY.esm.js} +1 -1
- package/dist/selfie.d.ts +3 -3
- package/dist/selfie.esm.js +7 -7
- package/dist/{selfieErrorUtils-DLyE0OM-.esm.js → selfieErrorUtils-BkiwAyQz.esm.js} +1 -1
- package/dist/{selfieManager-CqDlUy6B.d.ts → selfieManager-B2j448t4.d.ts} +1 -1
- package/dist/{selfieManager-DYdNf7aj.esm.js → selfieManager-B4hXZ02t.esm.js} +3 -3
- package/dist/{selfieStateMachine-pwBQTuu1.esm.js → selfieStateMachine-D0CSJ5Qq.esm.js} +3 -3
- package/dist/{session-BWBeamQN.esm.js → session-BjEv-L55.esm.js} +4 -4
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-3UZDC6Ug.esm.js → sessionInitializer-BCu42gjB.esm.js} +4 -4
- package/dist/{setup-tXpO1KcW.esm.js → setup-CL9vBA25.esm.js} +5 -5
- package/dist/trueSight-CD_axGZ0.esm.js +1 -0
- package/dist/{trueSightService-DXFKchbx.esm.js → trueSightService-DzzpdGJl.esm.js} +1 -1
- package/dist/{types-BZsmNYom.d.ts → types-BFoC3IpR.d.ts} +2 -2
- package/dist/{types-D-FEM1rT.d.ts → types-BWyOI2mn.d.ts} +1 -1
- package/dist/{types-PnJXvTkV.d.ts → types-BkxI3PHf.d.ts} +1 -1
- package/dist/{types-HHgsFhZn.d.ts → types-CAzi8tyi.d.ts} +1 -1
- package/dist/types-CEdI4tfR.d.ts +6 -0
- package/dist/{types-tOSLpcSa.d.ts → types-CkzE2gPZ.d.ts} +5 -0
- package/dist/{types-LbccjQYX.d.ts → types-DuARPzVa.d.ts} +1 -1
- package/dist/video-selfie.d.ts +1 -1
- package/dist/video-selfie.esm.js +3 -3
- package/dist/{videoSelfieCameraWarmer-Cxi1BUAI.esm.js → videoSelfieCameraWarmer-CbF89K5Y.esm.js} +3 -3
- package/dist/{videoSelfieStepDetector-CxOc3kSI.d.ts → videoSelfieStepDetector-CrlbZ-rN.d.ts} +2 -2
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.d.ts +1 -1
- package/dist/workflow.esm.js +19 -19
- package/package.json +2 -2
- package/dist/trueSight-sXLKgrsk.esm.js +0 -1
- package/dist/types-BinnzVrL.d.ts +0 -6
package/dist/{FaceDetectionProvider-BwT54CZm.esm.js → FaceDetectionProvider-BdQAQMnM.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { l as wasmRuntime } from "./warmup-O3rAoe1-.esm.js";
|
|
2
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
2
|
+
import { t as ensureWasmPipelines } from "./setup-CL9vBA25.esm.js";
|
|
3
3
|
import { r as BaseWasmProvider } from "./WasmUtilProvider-unrmGEHD.esm.js";
|
|
4
4
|
import { t as api, u as endpoints } from "./api-B58edv6M.esm.js";
|
|
5
|
-
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
6
|
-
import "./trueSight-
|
|
5
|
+
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-DzzpdGJl.esm.js";
|
|
6
|
+
import "./trueSight-CD_axGZ0.esm.js";
|
|
7
7
|
import { t as addDeviceStats } from "./stats-DHu3li6G.esm.js";
|
|
8
8
|
import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
|
|
9
9
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
@@ -234,7 +234,7 @@ function startDetection(params) {
|
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
236
|
async function initializeDeepsightSession(options) {
|
|
237
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
237
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-BlrD-IGK.esm.js");
|
|
238
238
|
return loadDeepsightSession({
|
|
239
239
|
ds: options.ds,
|
|
240
240
|
storage: options.storage
|
package/dist/ae-signature.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
2
2
|
import { S as getDefaultConsentChecks, a as ElectronicSignatureConfig, b as areAllConsented, i as ConsentKey, r as ConsentChecks, s as ElectronicSignatureDocument, t as AE_CONSENT_KEYS } from "./types-D0gekt4U.js";
|
|
3
|
-
import { n as ElectronicSignatureState, o as electronicSignatureMachine } from "./electronicSignatureManager-
|
|
4
|
-
import "./electronic-signature.js";
|
|
3
|
+
import { n as ElectronicSignatureState, o as electronicSignatureMachine } from "./electronicSignatureManager-Dxg9hr1_.js";
|
|
5
4
|
//#region src/modules/ae-signature/index.d.ts
|
|
6
5
|
type AeSignatureConfig = Omit<ElectronicSignatureConfig, 'variant'>;
|
|
7
6
|
declare function createAeSignatureManager(options: {
|
package/dist/ae-signature.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-
|
|
1
|
+
import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-C8KpOeZM.esm.js";
|
|
2
2
|
//#region src/modules/ae-signature/index.ts
|
|
3
3
|
function createAeSignatureManager(options) {
|
|
4
4
|
return createElectronicSignatureManager({ config: {
|
package/dist/authentication.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-
|
|
2
|
-
import { t as AuthenticationConfig } from "./types-
|
|
3
|
-
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-
|
|
1
|
+
import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-B1WfKaGJ.js";
|
|
2
|
+
import { t as AuthenticationConfig } from "./types-CEdI4tfR.js";
|
|
3
|
+
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-D_dz2zK4.js";
|
|
4
4
|
export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
2
|
-
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-
|
|
1
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-CSIuAN2Q.esm.js";
|
|
2
|
+
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-By1-mFP1.esm.js";
|
|
3
3
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
package/dist/{authenticationManager-C5t83q7I.esm.js → authenticationManager-By1-mFP1.esm.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { u as BrowserStorageProvider } from "./setup-CL9vBA25.esm.js";
|
|
2
2
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-unrmGEHD.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./types-DLsivQsu.esm.js";
|
|
4
4
|
import "./events-PUWyizJn.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
7
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
6
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-DSkHx3Hf.esm.js";
|
|
7
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-CSIuAN2Q.esm.js";
|
|
8
8
|
//#region src/modules/authentication/authenticationActor.ts
|
|
9
9
|
function createAuthenticationActor(options) {
|
|
10
10
|
const dependencies = options.dependencies ?? {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
2
2
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
3
|
-
import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-
|
|
3
|
+
import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-B1WfKaGJ.js";
|
|
4
4
|
//#region src/modules/authentication/authenticationManager.d.ts
|
|
5
5
|
type AuthenticationState = FaceCaptureManagerState;
|
|
6
6
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as assign } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
2
2
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
3
|
-
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
-
import { d as isOnDeviceMode, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-
|
|
5
|
-
import { l as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-
|
|
3
|
+
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-Whkxs5PY.esm.js";
|
|
4
|
+
import { d as isOnDeviceMode, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-BdQAQMnM.esm.js";
|
|
5
|
+
import { l as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-0SEooFiw.esm.js";
|
|
6
6
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
7
7
|
const AUTH_ERROR_MAP = {
|
|
8
8
|
SPOOF_ATTEMPT_DETECTED: FACE_ERROR_CODES.SPOOF_ATTEMPT_DETECTED,
|
package/dist/consent.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-
|
|
1
|
+
import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-B0YKqYtZ.js";
|
|
2
2
|
export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
|
|
@@ -87,6 +87,10 @@ declare const consentMachine: StateMachine<ConsentContext, {
|
|
|
87
87
|
type: "setLoadError";
|
|
88
88
|
params: NonReducibleUnknown;
|
|
89
89
|
};
|
|
90
|
+
resetContext: {
|
|
91
|
+
type: "resetContext";
|
|
92
|
+
params: NonReducibleUnknown;
|
|
93
|
+
};
|
|
90
94
|
setConsentData: {
|
|
91
95
|
type: "setConsentData";
|
|
92
96
|
params: NonReducibleUnknown;
|
|
@@ -95,14 +99,10 @@ declare const consentMachine: StateMachine<ConsentContext, {
|
|
|
95
99
|
type: "toggleCheckbox";
|
|
96
100
|
params: NonReducibleUnknown;
|
|
97
101
|
};
|
|
98
|
-
resetContext: {
|
|
99
|
-
type: "resetContext";
|
|
100
|
-
params: NonReducibleUnknown;
|
|
101
|
-
};
|
|
102
102
|
}>, {
|
|
103
103
|
type: "canSubmit";
|
|
104
104
|
params: unknown;
|
|
105
|
-
}, never, "error" | "idle" | "finished" | "
|
|
105
|
+
}, never, "error" | "idle" | "finished" | "submitting" | "loading" | "display", string, ConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
106
106
|
readonly id: "consent";
|
|
107
107
|
readonly initial: "idle";
|
|
108
108
|
readonly context: ({ input }: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as CurpValidationActor, c as CurpValidationErrors, d as GenerateCurpFieldDef, f as GenerateCurpFieldType, i as createCurpValidationManagerFromActor, l as CurpValidationRule, n as CurpValidationState, o as curpValidationMachine, p as GenerateCurpForm, r as createCurpValidationManager, s as CurpValidationConfig, t as CurpValidationManager, u as EnterCurpFieldDef } from "./curpValidationManager-
|
|
1
|
+
import { a as CurpValidationActor, c as CurpValidationErrors, d as GenerateCurpFieldDef, f as GenerateCurpFieldType, i as createCurpValidationManagerFromActor, l as CurpValidationRule, n as CurpValidationState, o as curpValidationMachine, p as GenerateCurpForm, r as createCurpValidationManager, s as CurpValidationConfig, t as CurpValidationManager, u as EnterCurpFieldDef } from "./curpValidationManager-tNhzv7vZ.js";
|
|
2
2
|
//#region src/modules/curp-validation/curpValidationUtils.d.ts
|
|
3
3
|
type MexicanState = {
|
|
4
4
|
value: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as ActorRefFrom } from "./spawn-COZKetCS.js";
|
|
2
2
|
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
3
3
|
import "./Actor-DqjOqDfU.js";
|
|
4
|
-
import { i as FlowModuleConfig } from "./types-
|
|
4
|
+
import { i as FlowModuleConfig } from "./types-BFoC3IpR.js";
|
|
5
5
|
//#region src/modules/curp-validation/types.d.ts
|
|
6
6
|
type CurpValidationConfig = FlowModuleConfig['CURP_VALIDATION'] & {
|
|
7
7
|
/** Maximum validation retries before auto-advancing. @default 1 */
|
package/dist/{deepsightCaptureConfig-DpA88-4b.esm.js → deepsightCaptureConfig-DMKLKIHK.esm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as trueSightLog, w as utf8ByteLength } from "./trueSightService-
|
|
2
|
-
import "./trueSight-
|
|
1
|
+
import { u as trueSightLog, w as utf8ByteLength } from "./trueSightService-DzzpdGJl.esm.js";
|
|
2
|
+
import "./trueSight-CD_axGZ0.esm.js";
|
|
3
3
|
import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
|
|
4
4
|
//#region src/internal/deepsight/deepsightCaptureConfig.ts
|
|
5
5
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-unrmGEHD.esm.js";
|
|
2
|
-
import { u as trueSightLog } from "./trueSightService-
|
|
3
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
4
|
-
import "./trueSight-
|
|
5
|
-
import { C as fingerprintSignalsReporter, S as BrowserEnvironmentProvider, _ as isBrowserSimulation, n as getFingerprintEnabled, t as getDisableIpify, w as SDK_PLATFORM, x as IpifyProvider, y as getThumbmarkId } from "./sessionInitializer-
|
|
2
|
+
import { u as trueSightLog } from "./trueSightService-DzzpdGJl.esm.js";
|
|
3
|
+
import { t as SDK_VERSION } from "./sdkVersion-CCA1K6OY.esm.js";
|
|
4
|
+
import "./trueSight-CD_axGZ0.esm.js";
|
|
5
|
+
import { C as fingerprintSignalsReporter, S as BrowserEnvironmentProvider, _ as isBrowserSimulation, n as getFingerprintEnabled, t as getDisableIpify, w as SDK_PLATFORM, x as IpifyProvider, y as getThumbmarkId } from "./sessionInitializer-BCu42gjB.esm.js";
|
|
6
6
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
|
|
7
7
|
import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
|
|
8
8
|
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-0SxaYTcb.esm.js";
|
package/dist/{desktopCameraElection-BUZJpogD.esm.js → desktopCameraElection-0SEooFiw.esm.js}
RENAMED
|
@@ -3,14 +3,14 @@ import { d as CAMERA_CYCLE_OWNERSHIP_DOMAIN, f as getCameraCycleOwnershipDomain,
|
|
|
3
3
|
import { r as setWasmDeepsightConfigSync } from "./wasmDeepsightConfigSync-DukEcrU8.esm.js";
|
|
4
4
|
import { i as utilityWasmApi } from "./WasmUtilProvider-unrmGEHD.esm.js";
|
|
5
5
|
import { t as api, u as endpoints } from "./api-B58edv6M.esm.js";
|
|
6
|
-
import { u as trueSightLog } from "./trueSightService-
|
|
7
|
-
import "./trueSight-
|
|
8
|
-
import { m as getFeatureGate } from "./feature-management-
|
|
6
|
+
import { u as trueSightLog } from "./trueSightService-DzzpdGJl.esm.js";
|
|
7
|
+
import "./trueSight-CD_axGZ0.esm.js";
|
|
8
|
+
import { m as getFeatureGate } from "./feature-management-Hd0_3bhc.esm.js";
|
|
9
9
|
import { t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
10
10
|
import { c as isCameraDenialErrorName, n as enumerateVideoDevices, o as withAudioTracks, r as requestCameraAccess, s as clearCameraGrantedInDocument, u as markCameraGrantedInDocument } from "./camera-CJKApt0x.esm.js";
|
|
11
11
|
import { u as queryCameraPermission } from "./permissionServices-GQyOY1tb.esm.js";
|
|
12
12
|
import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
|
|
13
|
-
import { t as deepsightCaptureConfigText } from "./deepsightCaptureConfig-
|
|
13
|
+
import { t as deepsightCaptureConfigText } from "./deepsightCaptureConfig-DMKLKIHK.esm.js";
|
|
14
14
|
import { r as selectBestBackDevice, t as isBackCameraLabel } from "./backCameraLabel-yda5ugE4.esm.js";
|
|
15
15
|
//#region ../infra/src/capabilities/ICameraCycleCapability.ts
|
|
16
16
|
/**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as DocumentCaptureErrorCode, c as DocumentType, n as DOCUMENT_CAPTURE_ERROR_CODES, r as DocumentCaptureConfig, s as DocumentCaptureNextPageType, u as DocumentUploadStatus } from "./types-Cy6Lx3L6.js";
|
|
2
|
-
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-
|
|
2
|
+
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, o as documentCaptureMachine, r as createDocumentCaptureManager, t as DocumentCaptureManager } from "./documentCaptureManager-DLWTqjUr.js";
|
|
3
3
|
export { DOCUMENT_CAPTURE_ERROR_CODES, type DocumentCaptureActor, type DocumentCaptureConfig, type DocumentCaptureErrorCode, type DocumentCaptureManager, type DocumentCaptureNextPageType, type DocumentCaptureState, type DocumentType, type DocumentUploadStatus, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
|
|
@@ -2,7 +2,7 @@ import { n as eventModuleNames } from "./types-DLsivQsu.esm.js";
|
|
|
2
2
|
import { t as createManagerInstrumentation } from "./events-PUWyizJn.esm.js";
|
|
3
3
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
|
-
import { a as hasReadAll, i as hasDownloads, n as canSubmitSignature, r as documentSignatureMachine, t as canOpenSign } from "./documentSignatureStateMachine-
|
|
5
|
+
import { a as hasReadAll, i as hasDownloads, n as canSubmitSignature, r as documentSignatureMachine, t as canOpenSign } from "./documentSignatureStateMachine-BRilUq8_.esm.js";
|
|
6
6
|
//#region src/modules/document-signature/documentSignatureActor.ts
|
|
7
7
|
function createDocumentSignatureActor(options) {
|
|
8
8
|
return createActor(documentSignatureMachine, { input: { config: options.config } }).start();
|
|
@@ -263,7 +263,7 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
263
263
|
type: "fileSizeOkForNonGallery";
|
|
264
264
|
params: unknown;
|
|
265
265
|
};
|
|
266
|
-
}>, never, "uploading" | "closed" | "success" | "finished" | "
|
|
266
|
+
}>, never, "uploading" | "closed" | "success" | "finished" | "capturing" | "failure" | "initCamera" | "tutorial" | "preview" | "nextPage" | "finalizing" | {
|
|
267
267
|
permissions: "idle" | "denied" | "waitingForUser" | "requesting" | "learnMore";
|
|
268
268
|
}, string, DocumentCaptureInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
269
269
|
readonly id: "documentCapture";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as eventModuleNames, v as addEvent } from "./types-DLsivQsu.esm.js";
|
|
2
2
|
import { t as api, u as endpoints } from "./api-B58edv6M.esm.js";
|
|
3
3
|
import "./events-PUWyizJn.esm.js";
|
|
4
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
4
|
+
import { i as toIncodeApiError } from "./apiError-tX50HcR2.esm.js";
|
|
5
5
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
6
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
7
7
|
//#region src/modules/document-signature/documentSignatureServices.ts
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
2
|
-
import { t as createDynamicFormsManager } from "./dynamicFormsManager-
|
|
1
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-aoLvbxKN.esm.js";
|
|
2
|
+
import { t as createDynamicFormsManager } from "./dynamicFormsManager-BlRl1hYC.esm.js";
|
|
3
3
|
export { createDynamicFormsManager, dynamicFormsMachine };
|
|
@@ -3,7 +3,7 @@ import { t as createManagerInstrumentation } from "./events-PUWyizJn.esm.js";
|
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
6
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-aoLvbxKN.esm.js";
|
|
7
7
|
//#region src/modules/dynamic-forms/dynamicFormsActor.ts
|
|
8
8
|
function createDynamicFormsActor(options) {
|
|
9
9
|
return createActor(dynamicFormsMachine, { input: { config: options.config } }).start();
|
package/dist/{dynamicFormsStateMachine-cgHiMezM.esm.js → dynamicFormsStateMachine-aoLvbxKN.esm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api, u as endpoints } from "./api-B58edv6M.esm.js";
|
|
2
|
-
import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-
|
|
2
|
+
import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-tX50HcR2.esm.js";
|
|
3
3
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
5
5
|
import { n as calendarDateError } from "./calendarDate-D2zWfUlA.esm.js";
|
package/dist/ekyb.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./xstate.cjs-D6Ur0X1F.js";
|
|
2
2
|
import { t as AddressSuggestion } from "./types-D6Q1D1kx.js";
|
|
3
|
-
import { i as FlowModuleConfig } from "./types-
|
|
3
|
+
import { i as FlowModuleConfig } from "./types-BFoC3IpR.js";
|
|
4
4
|
import { a as EkybValidationError, n as EkybCountry, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-BwMpWCVG.js";
|
|
5
5
|
import { n as EkybState, o as ekybMachine, r as createEkybManager, t as EkybManager } from "./ekybManager-Cjk8pQX0.js";
|
|
6
6
|
//#region src/modules/ekyb/ekybServices.d.ts
|
package/dist/ekyb.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { g as isSupportedCountry, l as ALL_COUNTRIES, p as SUPPORTED_COUNTRIES, s as toEkybConfig, u as DEV_ONLY_COUNTRIES } from "./ekybUtils-Dl0MU-ib.esm.js";
|
|
2
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
3
|
-
import { t as createEkybManager } from "./ekybManager-
|
|
2
|
+
import { t as ekybMachine } from "./ekybStateMachine-CKvrtdfG.esm.js";
|
|
3
|
+
import { t as createEkybManager } from "./ekybManager-DCXIioQ_.esm.js";
|
|
4
4
|
export { ALL_COUNTRIES, DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager, ekybMachine, isSupportedCountry, toEkybConfig };
|
|
@@ -3,7 +3,7 @@ import { t as createManagerInstrumentation } from "./events-PUWyizJn.esm.js";
|
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
6
|
+
import { t as ekybMachine } from "./ekybStateMachine-CKvrtdfG.esm.js";
|
|
7
7
|
//#region src/modules/ekyb/ekybActor.ts
|
|
8
8
|
/**
|
|
9
9
|
* Creates and starts an eKYB actor.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api, u as endpoints } from "./api-B58edv6M.esm.js";
|
|
2
|
-
import { n as getFlow } from "./flowServices-
|
|
2
|
+
import { n as getFlow } from "./flowServices-DVZMe6NL.esm.js";
|
|
3
3
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
5
5
|
import { a as requiresAddressValidation, c as ADDRESS_FIELDS, d as FIELD_NAME_MAPPING, f as FIELD_ORDER, g as isSupportedCountry, h as UBO_FIELD_LABELS, i as isFormFieldEntry, l as ALL_COUNTRIES, m as TAX_ID_RULES_BY_COUNTRY, n as hasAtLeastOneAddressField, o as sortModulesByOrder, r as isFieldOptional, s as toEkybConfig } from "./ekybUtils-Dl0MU-ib.esm.js";
|
package/dist/ekyc-prefill.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { r as toEkycPrefillConfig, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-
|
|
2
|
-
import { t as createEkycPrefillManager } from "./ekycPrefillManager-
|
|
1
|
+
import { r as toEkycPrefillConfig, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-B8iezirV.esm.js";
|
|
2
|
+
import { t as createEkycPrefillManager } from "./ekycPrefillManager-CzbJ0lIz.esm.js";
|
|
3
3
|
export { createEkycPrefillManager, ekycPrefillMachine, toEkycPrefillConfig };
|
package/dist/ekyc.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as AddressSuggestion } from "./types-D6Q1D1kx.js";
|
|
2
|
-
import { c as EkycValidationErrors, i as EkycFieldDisplayMode, n as EkycDisplayModes, o as EkycModuleConfig, s as EkycValidationError, t as EkycConfig } from "./types-
|
|
3
|
-
import { a as EkycStep, n as EkycState, r as createEkycManager, s as ekycMachine, t as EkycManager } from "./ekycManager-
|
|
2
|
+
import { c as EkycValidationErrors, i as EkycFieldDisplayMode, n as EkycDisplayModes, o as EkycModuleConfig, s as EkycValidationError, t as EkycConfig } from "./types-CkzE2gPZ.js";
|
|
3
|
+
import { a as EkycStep, n as EkycState, r as createEkycManager, s as ekycMachine, t as EkycManager } from "./ekycManager-mv2rWxc4.js";
|
|
4
4
|
//#region src/modules/ekyc/ekycUtils.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Normalizes any supported eKYC config input into a manager-ready `EkycConfig`.
|
package/dist/ekyc.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as toEkycConfig } from "./ekycUtils-
|
|
2
|
-
import { t as ekycMachine } from "./ekycStateMachine-
|
|
3
|
-
import { t as createEkycManager } from "./ekycManager-
|
|
1
|
+
import { d as toEkycConfig } from "./ekycUtils-BnTyeA-_.esm.js";
|
|
2
|
+
import { t as ekycMachine } from "./ekycStateMachine-Czn2CaTV.esm.js";
|
|
3
|
+
import { t as createEkycManager } from "./ekycManager-SUIAHlrm.esm.js";
|
|
4
4
|
export { createEkycManager, ekycMachine, toEkycConfig };
|
|
@@ -3,7 +3,7 @@ import { t as createManagerInstrumentation } from "./events-PUWyizJn.esm.js";
|
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
-
import { i as isStepValid, n as buildEkycSteps, r as clampStepIndex, t as ekycMachine } from "./ekycStateMachine-
|
|
6
|
+
import { i as isStepValid, n as buildEkycSteps, r as clampStepIndex, t as ekycMachine } from "./ekycStateMachine-Czn2CaTV.esm.js";
|
|
7
7
|
//#region src/modules/ekyc/ekycActor.ts
|
|
8
8
|
/**
|
|
9
9
|
* Creates and starts an eKYC actor.
|
|
@@ -2,7 +2,7 @@ import { i as ActorRefFrom } from "./spawn-COZKetCS.js";
|
|
|
2
2
|
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
3
3
|
import "./Actor-DqjOqDfU.js";
|
|
4
4
|
import { t as AddressSuggestion } from "./types-D6Q1D1kx.js";
|
|
5
|
-
import { a as EkycFormValues, c as EkycValidationErrors, r as EkycFieldDef, t as EkycConfig } from "./types-
|
|
5
|
+
import { a as EkycFormValues, c as EkycValidationErrors, r as EkycFieldDef, t as EkycConfig } from "./types-CkzE2gPZ.js";
|
|
6
6
|
//#region src/modules/ekyc/ekycStateMachine.d.ts
|
|
7
7
|
declare const ekycMachine: any;
|
|
8
8
|
type EkycMachine = typeof ekycMachine;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
2
2
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
3
3
|
import { l as validateAllValues } from "./formErrors-lSfh7Y8J.esm.js";
|
|
4
|
-
import { n as ekycPrefillFormCheck, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-
|
|
4
|
+
import { n as ekycPrefillFormCheck, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-B8iezirV.esm.js";
|
|
5
5
|
//#region src/modules/ekyc-prefill/ekycPrefillActor.ts
|
|
6
6
|
/** Creates and starts an eKYC Pre-fill actor, idle until `LOAD`. */
|
|
7
7
|
function createEkycPrefillActor(options = {}) {
|
package/dist/{ekycPrefillStateMachine-xvqFOyUx.esm.js → ekycPrefillStateMachine-B8iezirV.esm.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as getLocalIsoDate } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
2
|
import { t as api, u as endpoints } from "./api-B58edv6M.esm.js";
|
|
3
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
3
|
+
import { i as toIncodeApiError } from "./apiError-tX50HcR2.esm.js";
|
|
4
4
|
import { n as loadPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
|
|
5
5
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
6
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
7
7
|
import { t as isValidCurp } from "./curp-DZGvefg3.esm.js";
|
|
8
|
-
import { a as
|
|
8
|
+
import { a as hasNameCharacters, c as isEmailFormat, d as resolvePrefill, f as isValidRut, h as isValidEsDni, i as isNotFuture, l as digitCountError, m as isValidFiPersonalIdentityCode, n as hasScriptCharacters, o as isWithinMaxAge, p as isValidInDrivingLicenseNumber, r as isInNumericRange, s as isPoBox, t as SCRIPT_PATTERNS, u as hasDigitCount } from "./scriptCharacters-D7swUycV.esm.js";
|
|
9
9
|
import { t as validateCNPJ } from "./cnpj-CVq3vL39.esm.js";
|
|
10
10
|
import { n as checkSupport, t as resolveForm } from "./resolveForm-DaaQSVWp.esm.js";
|
|
11
11
|
import { n as matchesCharTemplate, t as createBundledDefinitionSource } from "./definitionSource-B9WTvQb9.esm.js";
|
|
@@ -564,6 +564,21 @@ const rut = {
|
|
|
564
564
|
test: (value) => isValidRut(value)
|
|
565
565
|
};
|
|
566
566
|
//#endregion
|
|
567
|
+
//#region src/internal/forms/rules/scriptCharacters.ts
|
|
568
|
+
const isUnicodeScript = (value) => typeof value === "string" && Object.prototype.hasOwnProperty.call(SCRIPT_PATTERNS, value);
|
|
569
|
+
/**
|
|
570
|
+
* `scriptCharacters` (vocabulary 1.4), leading and trailing whitespace
|
|
571
|
+
* ignored as eKYC trims the value first. Without a non-empty list of known
|
|
572
|
+
* scripts, the rule passes.
|
|
573
|
+
*/
|
|
574
|
+
const scriptCharacters = {
|
|
575
|
+
id: "scriptCharacters",
|
|
576
|
+
test: (value, { scripts }) => {
|
|
577
|
+
if (!Array.isArray(scripts) || scripts.length === 0 || !scripts.every(isUnicodeScript)) return true;
|
|
578
|
+
return hasScriptCharacters(value.trim(), scripts);
|
|
579
|
+
}
|
|
580
|
+
};
|
|
581
|
+
//#endregion
|
|
567
582
|
//#region src/internal/forms/checks/ssnFormat.ts
|
|
568
583
|
/** Nine digits in 3-2-4 groups, each `-` between the groups optional. */
|
|
569
584
|
const SSN_PATTERN = /^[0-9]{3}-?[0-9]{2}-?[0-9]{4}$/;
|
|
@@ -630,7 +645,8 @@ const STANDARD_RULES = [
|
|
|
630
645
|
fiPersonalIdentityCode,
|
|
631
646
|
inDrivingLicenseNumber,
|
|
632
647
|
curp,
|
|
633
|
-
phoneDigits
|
|
648
|
+
phoneDigits,
|
|
649
|
+
scriptCharacters
|
|
634
650
|
];
|
|
635
651
|
/** Every vocabulary transform, in vocabulary order. */
|
|
636
652
|
const STANDARD_TRANSFORMS = [
|
|
@@ -672,7 +688,8 @@ const RULE_MESSAGES = {
|
|
|
672
688
|
fiPersonalIdentityCode: "verification.errors.invalidIdNumber",
|
|
673
689
|
inDrivingLicenseNumber: "verification.errors.invalidIdNumber",
|
|
674
690
|
curp: "verification.errors.invalidIdNumber",
|
|
675
|
-
phoneDigits: "verification.errors.phoneInvalid"
|
|
691
|
+
phoneDigits: "verification.errors.phoneInvalid",
|
|
692
|
+
scriptCharacters: "verification.errors.invalidCharacters"
|
|
676
693
|
};
|
|
677
694
|
//#endregion
|
|
678
695
|
//#region src/modules/ekyc-prefill/ekycPrefillDefinition.ts
|
|
@@ -4,13 +4,13 @@ import { n as loadPhoneValidation, t as getPhoneValidation } from "./phoneValida
|
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
6
6
|
import { t as isValidCurp } from "./curp-DZGvefg3.esm.js";
|
|
7
|
-
import { a as
|
|
7
|
+
import { a as hasNameCharacters, c as isEmailFormat, d as resolvePrefill, f as isValidRut, h as isValidEsDni, i as isNotFuture, l as digitCountError, m as isValidFiPersonalIdentityCode, n as hasScriptCharacters, o as isWithinMaxAge, p as isValidInDrivingLicenseNumber, r as isInNumericRange, s as isPoBox, u as hasDigitCount } from "./scriptCharacters-D7swUycV.esm.js";
|
|
8
8
|
import { n as calendarDateError } from "./calendarDate-D2zWfUlA.esm.js";
|
|
9
9
|
import { n as usStates, t as usStateOptions } from "./usStates-CwOQ2kAx.esm.js";
|
|
10
10
|
import { a as getPostalCodeErrorKey, c as validatePostalCode, d as getStreetLevelErrorForSuggestion, f as keepSuggestionInOptions, i as formatPostalCode, l as STREET_LEVEL_REQUIRED_ERROR, n as searchAddress, o as getPostalCodeErrorParams, r as isFormDefinitionsEnabled, s as getPostalCodeMaxLength, t as debounceSearchActor, u as fillFromSuggestion } from "./addressSearch-DBJeg_g3.esm.js";
|
|
11
11
|
import { n as checkSupport, r as DYNAMIC_REQUIRED_KEY, t as resolveForm } from "./resolveForm-DaaQSVWp.esm.js";
|
|
12
12
|
import { n as matchesCharTemplate, t as createBundledDefinitionSource } from "./definitionSource-B9WTvQb9.esm.js";
|
|
13
|
-
import { C as POSTAL_CODE_SOURCES, D as VOCABULARY, E as TAX_ID_SOURCES, S as ONE_OF_REQUIRED_GROUPS, T as STREET_SOURCES, _ as COUNTRY_SELECTOR_DISABLED_SOURCES, a as getEKYCFields, b as MIDDLE_NAME_SOURCES, c as isFieldOptional, d as toEkycConfig, f as withRiskAddonFields, g as COUNTRY_CODE_OMITTED_SOURCES, h as CITY_SOURCES, i as getEKYCDisplayModes, l as mapToEKYCvalue, m as APARTMENT_SOURCES, o as getEkycRiskAddons, p as ADDRESS_STATE_SOURCES, r as getEKYCCountry, s as getRiskAddonFields, t as EKYC_GROUP_KEYS, u as resolveEkycSource, v as EMAIL_SOURCES, w as STATE_CODE_HINTS, x as NAME_SOURCES, y as HOUSE_NO_SOURCES } from "./ekycUtils-
|
|
13
|
+
import { C as POSTAL_CODE_SOURCES, D as VOCABULARY, E as TAX_ID_SOURCES, S as ONE_OF_REQUIRED_GROUPS, T as STREET_SOURCES, _ as COUNTRY_SELECTOR_DISABLED_SOURCES, a as getEKYCFields, b as MIDDLE_NAME_SOURCES, c as isFieldOptional, d as toEkycConfig, f as withRiskAddonFields, g as COUNTRY_CODE_OMITTED_SOURCES, h as CITY_SOURCES, i as getEKYCDisplayModes, l as mapToEKYCvalue, m as APARTMENT_SOURCES, o as getEkycRiskAddons, p as ADDRESS_STATE_SOURCES, r as getEKYCCountry, s as getRiskAddonFields, t as EKYC_GROUP_KEYS, u as resolveEkycSource, v as EMAIL_SOURCES, w as STATE_CODE_HINTS, x as NAME_SOURCES, y as HOUSE_NO_SOURCES } from "./ekycUtils-BnTyeA-_.esm.js";
|
|
14
14
|
import { t as DateFormattingProvider } from "./DateFormattingProvider-DPq9zco-.esm.js";
|
|
15
15
|
import { t as validateCPF } from "./cpf-DDXMTLYr.esm.js";
|
|
16
16
|
import { n as hasAllowedCharacters } from "./allowedCharacters-Bnir--CN.esm.js";
|
|
@@ -134,6 +134,7 @@ const CHARACTER_CLASSES = [
|
|
|
134
134
|
"digit",
|
|
135
135
|
"space"
|
|
136
136
|
];
|
|
137
|
+
const UNICODE_SCRIPTS = ["Han"];
|
|
137
138
|
//#endregion
|
|
138
139
|
//#region src/shared/phoneFormat.ts
|
|
139
140
|
/**
|
|
@@ -300,6 +301,11 @@ const createValidators = () => {
|
|
|
300
301
|
}
|
|
301
302
|
};
|
|
302
303
|
},
|
|
304
|
+
scriptCharacters: (value, rule) => {
|
|
305
|
+
if (rule.type !== "scriptCharacters") return void 0;
|
|
306
|
+
if (value.trim().length === 0) return void 0;
|
|
307
|
+
return hasScriptCharacters(value.trim(), rule.scripts) ? void 0 : { key: "verification.errors.invalidCharacters" };
|
|
308
|
+
},
|
|
303
309
|
rut: idNumberValidator(isValidRut),
|
|
304
310
|
esDni: idNumberValidator(isValidEsDni),
|
|
305
311
|
fiPersonalIdentityCode: idNumberValidator(isValidFiPersonalIdentityCode),
|
|
@@ -2000,6 +2006,125 @@ const EKYC_DEFINITIONS = {
|
|
|
2000
2006
|
}
|
|
2001
2007
|
}
|
|
2002
2008
|
},
|
|
2009
|
+
"ekyc/CN/CN_NATIONAL_ID": {
|
|
2010
|
+
schemaVersion: 1,
|
|
2011
|
+
vocabulary: "1.4",
|
|
2012
|
+
id: "ekyc/CN/CN_NATIONAL_ID",
|
|
2013
|
+
module: "ekyc",
|
|
2014
|
+
country: "CN",
|
|
2015
|
+
source: "CN_NATIONAL_ID",
|
|
2016
|
+
fields: [
|
|
2017
|
+
{
|
|
2018
|
+
name: "firstName",
|
|
2019
|
+
kind: "text",
|
|
2020
|
+
group: "name",
|
|
2021
|
+
required: true,
|
|
2022
|
+
label: { key: "verification.labels.firstName" },
|
|
2023
|
+
placeholder: { key: "verification.placeholder.firstName" },
|
|
2024
|
+
input: {
|
|
2025
|
+
maxLength: 100,
|
|
2026
|
+
autofill: "givenName"
|
|
2027
|
+
},
|
|
2028
|
+
rules: [{
|
|
2029
|
+
id: "scriptCharacters",
|
|
2030
|
+
params: { scripts: ["Han"] },
|
|
2031
|
+
message: { key: "verification.errors.firstNameChineseCharacters" }
|
|
2032
|
+
}],
|
|
2033
|
+
prefill: ["document.firstName", "poa.firstName"]
|
|
2034
|
+
},
|
|
2035
|
+
{
|
|
2036
|
+
name: "surName",
|
|
2037
|
+
kind: "text",
|
|
2038
|
+
group: "name",
|
|
2039
|
+
required: true,
|
|
2040
|
+
label: { key: "verification.labels.surName" },
|
|
2041
|
+
placeholder: { key: "verification.placeholder.surname" },
|
|
2042
|
+
input: {
|
|
2043
|
+
maxLength: 100,
|
|
2044
|
+
autofill: "familyName"
|
|
2045
|
+
},
|
|
2046
|
+
rules: [{
|
|
2047
|
+
id: "scriptCharacters",
|
|
2048
|
+
params: { scripts: ["Han"] },
|
|
2049
|
+
message: { key: "verification.errors.lastNameChineseCharacters" }
|
|
2050
|
+
}],
|
|
2051
|
+
prefill: ["document.paternalLastName", "poa.lastName"]
|
|
2052
|
+
},
|
|
2053
|
+
{
|
|
2054
|
+
name: "dateOfBirth",
|
|
2055
|
+
kind: "date",
|
|
2056
|
+
group: "dateOfBirth",
|
|
2057
|
+
required: true,
|
|
2058
|
+
label: { key: "verification.labels.dateOfBirth" },
|
|
2059
|
+
input: { autofill: "birthday" },
|
|
2060
|
+
rules: [{
|
|
2061
|
+
id: "maxAge",
|
|
2062
|
+
params: { years: 120 }
|
|
2063
|
+
}, { id: "notFuture" }],
|
|
2064
|
+
prefill: ["document.birthDate"]
|
|
2065
|
+
},
|
|
2066
|
+
{
|
|
2067
|
+
name: "email",
|
|
2068
|
+
kind: "text",
|
|
2069
|
+
group: "email",
|
|
2070
|
+
required: true,
|
|
2071
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
2072
|
+
label: { key: "verification.labels.email" },
|
|
2073
|
+
placeholder: { key: "verification.placeholder.email" },
|
|
2074
|
+
input: {
|
|
2075
|
+
keyboard: "email",
|
|
2076
|
+
autofill: "email"
|
|
2077
|
+
},
|
|
2078
|
+
rules: [{ id: "emailFormat" }],
|
|
2079
|
+
prefill: ["emailModule.email"]
|
|
2080
|
+
},
|
|
2081
|
+
{
|
|
2082
|
+
name: "phone",
|
|
2083
|
+
kind: "phone",
|
|
2084
|
+
group: "phone",
|
|
2085
|
+
required: true,
|
|
2086
|
+
requiredWhen: [
|
|
2087
|
+
{ riskAddon: "phoneCheck" },
|
|
2088
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
2089
|
+
{ riskAddon: "phoneProfile" }
|
|
2090
|
+
],
|
|
2091
|
+
label: { key: "verification.labels.phone" },
|
|
2092
|
+
input: { autofill: "phone" },
|
|
2093
|
+
phone: { lockCountry: "whenPhoneRisk" },
|
|
2094
|
+
rules: [{ id: "phoneFormat" }],
|
|
2095
|
+
payload: { transforms: [{ id: "e164" }] },
|
|
2096
|
+
prefill: ["phoneModule.phone"]
|
|
2097
|
+
},
|
|
2098
|
+
{
|
|
2099
|
+
name: "idNum",
|
|
2100
|
+
kind: "text",
|
|
2101
|
+
group: "idNumber",
|
|
2102
|
+
required: true,
|
|
2103
|
+
label: { key: "verification.labels.idNum" },
|
|
2104
|
+
input: {
|
|
2105
|
+
maxLength: 18,
|
|
2106
|
+
format: [{ id: "uppercase" }]
|
|
2107
|
+
},
|
|
2108
|
+
rules: [{
|
|
2109
|
+
id: "charTemplate",
|
|
2110
|
+
params: {
|
|
2111
|
+
templates: ["999999999999999999", "99999999999999999X"],
|
|
2112
|
+
ignoreCase: true
|
|
2113
|
+
},
|
|
2114
|
+
message: { key: "verification.errors.invalidIdNumber" }
|
|
2115
|
+
}],
|
|
2116
|
+
payload: { key: "idNumber" },
|
|
2117
|
+
prefill: ["document.documentNumber"]
|
|
2118
|
+
}
|
|
2119
|
+
],
|
|
2120
|
+
submit: {
|
|
2121
|
+
static: { plugins: ["kyc"] },
|
|
2122
|
+
context: {
|
|
2123
|
+
source: "source",
|
|
2124
|
+
countryCode: "country"
|
|
2125
|
+
}
|
|
2126
|
+
}
|
|
2127
|
+
},
|
|
2003
2128
|
"ekyc/CO/CO_CIVIL_REGISTER_1": {
|
|
2004
2129
|
schemaVersion: 1,
|
|
2005
2130
|
vocabulary: "1.3",
|
|
@@ -7698,6 +7823,10 @@ const RULES = {
|
|
|
7698
7823
|
min: params.min,
|
|
7699
7824
|
max: params.max
|
|
7700
7825
|
}),
|
|
7826
|
+
scriptCharacters: ({ params }) => ({
|
|
7827
|
+
type: "scriptCharacters",
|
|
7828
|
+
scripts: [...params.scripts]
|
|
7829
|
+
}),
|
|
7701
7830
|
rut: () => ({ type: "rut" }),
|
|
7702
7831
|
esDni: () => ({ type: "esDni" }),
|
|
7703
7832
|
fiPersonalIdentityCode: () => ({ type: "fiPersonalIdentityCode" }),
|
|
@@ -7709,6 +7838,7 @@ const isInteger = (value) => typeof value === "number" && Number.isInteger(value
|
|
|
7709
7838
|
const isNonEmptyArrayOf = (value, item) => Array.isArray(value) && value.length > 0 && value.every(item);
|
|
7710
7839
|
const isString = (value) => typeof value === "string";
|
|
7711
7840
|
const isCharacterClass = (value) => CHARACTER_CLASSES.includes(value);
|
|
7841
|
+
const isUnicodeScript = (value) => UNICODE_SCRIPTS.includes(value);
|
|
7712
7842
|
/**
|
|
7713
7843
|
* Params a projected rule reads. The compiler checks params against the
|
|
7714
7844
|
* vocabulary too; this keeps a definition that skipped it, such as a served
|
|
@@ -7721,6 +7851,7 @@ const RULE_PARAMS = {
|
|
|
7721
7851
|
allowedCharacters: ({ classes, extra }) => isNonEmptyArrayOf(classes, isCharacterClass) && (extra === void 0 || isString(extra)),
|
|
7722
7852
|
charTemplate: ({ templates, ignoreCase }) => isNonEmptyArrayOf(templates, (t) => isString(t) && t !== "") && (ignoreCase === void 0 || typeof ignoreCase === "boolean"),
|
|
7723
7853
|
numericRange: ({ min, max }) => isInteger(min) && isInteger(max) && min <= max,
|
|
7854
|
+
scriptCharacters: ({ scripts }) => isNonEmptyArrayOf(scripts, isUnicodeScript),
|
|
7724
7855
|
maxAge: ({ years }) => isCount(years)
|
|
7725
7856
|
};
|
|
7726
7857
|
/**
|
|
@@ -7793,7 +7924,7 @@ const OPTION_LISTS = {
|
|
|
7793
7924
|
*/
|
|
7794
7925
|
const EKYC_SUPPORTED_IDS = {
|
|
7795
7926
|
schemaVersions: [1],
|
|
7796
|
-
vocabulary: "1.
|
|
7927
|
+
vocabulary: "1.4",
|
|
7797
7928
|
kinds: /* @__PURE__ */ new Set([
|
|
7798
7929
|
"text",
|
|
7799
7930
|
"date",
|