@incodetech/core 0.0.0-dev-20261116-c15e749f → 0.0.0-dev-20261116-da1386a6
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/{CameraCompositor-DN7NkJzV.esm.js → CameraCompositor-ppyMYVoY.esm.js} +1 -1
- package/dist/{FaceDetectionProvider-B99Nr-zl.esm.js → FaceDetectionProvider-D9gvhT97.esm.js} +4 -4
- package/dist/{MultipartRecordingProvider-BfQPSgSO.esm.js → MultipartRecordingProvider-CduV32Qa.esm.js} +1 -1
- package/dist/{WorkerEncoderRecordingProvider-CyCrQnZR.esm.js → WorkerEncoderRecordingProvider-CsDED9UU.esm.js} +1 -1
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-C3vTAT37.esm.js → apiError-DsxPekmg.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-2BpobEGh.esm.js → authenticationManager-BnQoPA29.esm.js} +3 -3
- package/dist/{authenticationManager-aZzFZo6V.d.ts → authenticationManager-DRaugLgH.d.ts} +1 -1
- package/dist/{authenticationStateMachine-BYgvkd0R.esm.js → authenticationStateMachine-BxUZGZSJ.esm.js} +2 -2
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-B0YKqYtZ.d.ts → consentManager-Duzd8paN.d.ts} +5 -5
- package/dist/curp-validation.d.ts +1 -1
- package/dist/{curpValidationManager-BfF2Qa5b.d.ts → curpValidationManager-Ci2iVuog.d.ts} +1 -1
- package/dist/{deepsightLoader-Cflwb0MF.esm.js → deepsightLoader-OVVi0rmr.esm.js} +3 -3
- package/dist/{definitionSource-BbeyVsUt.esm.js → definitionSource-Nw0YCbpe.esm.js} +26 -1
- package/dist/document-capture.d.ts +1 -1
- package/dist/{documentCaptureManager-BZBmcOKI.d.ts → documentCaptureManager-Dd3T6bcs.d.ts} +4 -4
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-D_R4BLGJ.esm.js → dynamicFormsManager-9KzyLMcp.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-CdgUw2lX.esm.js → dynamicFormsStateMachine-CiDW-0f-.esm.js} +1 -1
- package/dist/ekyb.d.ts +1 -1
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-DLebrUE1.esm.js → ekybManager-DUHIdZdG.esm.js} +1 -1
- package/dist/{ekybStateMachine-DQ9J-FmN.esm.js → ekybStateMachine-DyeaNQuh.esm.js} +4 -3
- package/dist/ekyc-prefill.d.ts +1 -1
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-fNTBP3jK.esm.js → ekycManager-nRT0rxei.esm.js} +1 -1
- package/dist/{ekycPrefillManager-CSuhSKU-.esm.js → ekycPrefillManager-0s2UqsQ3.esm.js} +1 -1
- package/dist/{ekycPrefillManager-BcLhkpp8.d.ts → ekycPrefillManager-C11D5yiF.d.ts} +1 -1
- package/dist/{ekycPrefillStateMachine-DWRgq-Xp.esm.js → ekycPrefillStateMachine-Da2zyGG-.esm.js} +3 -3
- package/dist/{ekycRules-BtKqNbSh.esm.js → ekycRules-DXP2hqVw.esm.js} +1 -1
- package/dist/{ekycStateMachine-B3AYpG8S.esm.js → ekycStateMachine-nwJRel2s.esm.js} +174 -4
- package/dist/{ekycUtils-Cp9M-bBI.esm.js → ekycUtils-FcqA6oU4.esm.js} +5 -0
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-Niq6kSWt.esm.js → electronicSignatureManager-BFrE0v5O.esm.js} +1 -1
- package/dist/extensibility.d.ts +13 -13
- package/dist/extensibility.esm.js +13 -13
- package/dist/{faceCaptureManagerFactory-XkMOX4z5.d.ts → faceCaptureManagerFactory-CRGajjZ4.d.ts} +3 -3
- package/dist/{faceCaptureManagerFactory-EuqrecIE.esm.js → faceCaptureManagerFactory-C_Cobifw.esm.js} +1 -1
- package/dist/{faceCaptureSetup-D4RwJrCr.esm.js → faceCaptureSetup-BI5iMFNH.esm.js} +5 -5
- package/dist/{feature-management-CFgXB6oY.esm.js → feature-management-L2dwr7Gh.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 +5 -5
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-BeGLm0d-.esm.js → flowCompletionService-AZeHgdUY.esm.js} +1 -1
- package/dist/{flowServices-C4u6lJ66.esm.js → flowServices-Ck0j24_6.esm.js} +5 -5
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-gcP92Zr3.esm.js → geolocationManager-BSJtdazU.esm.js} +1 -1
- package/dist/{geolocationManager-CENrvxpK.d.ts → geolocationManager-Del2ddmt.d.ts} +1 -1
- package/dist/{geolocationStateMachine-Cfs2ekAz.esm.js → geolocationStateMachine-DCB-1M0B.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 +7 -7
- package/dist/id.d.ts +2 -2
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-CwGC7a2t.esm.js → idCaptureManager-BTdFBMP2.esm.js} +3 -3
- package/dist/{idCaptureManager-BRYJflLy.d.ts → idCaptureManager-Cqx2y_fC.d.ts} +2 -2
- package/dist/{idCaptureServices-B7yT-52j.esm.js → idCaptureServices-D_0PcpQO.esm.js} +5 -5
- package/dist/{idCaptureStateMachine-CT4JGyJi.esm.js → idCaptureStateMachine-eKApXMZR.esm.js} +8 -8
- package/dist/{idOcrManager-DflRx-_u.d.ts → idOcrManager-C3BHGgSb.d.ts} +1 -1
- package/dist/{index-B52Rq3En.d.ts → index-DxYNO94y.d.ts} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/kyb-checks.esm.js +2 -2
- package/dist/{kybChecksManager-Dz57Bkd0.esm.js → kybChecksManager-CxrCr-tb.esm.js} +1 -1
- package/dist/{kybChecksStateMachine-DAgpsumL.esm.js → kybChecksStateMachine-DTM5TUiU.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/{mandatoryConsentManager-B8gtexL8.d.ts → mandatoryConsentManager-CCkV4Cm3.d.ts} +6 -6
- package/dist/{mediaRecorderOptions-B9-IEVtV.esm.js → mediaRecorderOptions-g1TwTlhd.esm.js} +20 -3
- package/dist/{multipartRecordingService-DNB2iD6-.esm.js → multipartRecordingService-WgK8ieRI.esm.js} +1 -1
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-CxBoYKTo.esm.js → recordingService-DxiwS8TV.esm.js} +4 -4
- package/dist/{runChildModule-CfGSfMV6.esm.js → runChildModule-Clgh4LyP.esm.js} +1 -1
- package/dist/{sdkVersion-DU6iPlYj.esm.js → sdkVersion-uVoihr6N.esm.js} +1 -1
- package/dist/selfie.d.ts +3 -3
- package/dist/selfie.esm.js +6 -6
- package/dist/{selfieErrorUtils-IPgudh5D.esm.js → selfieErrorUtils-CxPnp2It.esm.js} +1 -1
- package/dist/{selfieManager-N3JnYIIV.esm.js → selfieManager-DVVuKdjt.esm.js} +3 -3
- package/dist/{selfieManager-KLP66c1d.d.ts → selfieManager-DihwheJ6.d.ts} +1 -1
- package/dist/{selfieStateMachine-BIlkbR8a.esm.js → selfieStateMachine-BuM7FNtD.esm.js} +3 -3
- package/dist/{session-6KwyyUNG.esm.js → session-CVayAvfW.esm.js} +3 -3
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-BpyHjSLK.esm.js → sessionInitializer-C5Xe68H8.esm.js} +3 -3
- package/dist/{setup-BP245r33.esm.js → setup-Bi48aOoI.esm.js} +4 -4
- package/dist/{trueSightService-Rj3DMzb2.esm.js → trueSightService-ClUWnHWw.esm.js} +1 -1
- package/dist/{types-BsWmnAUf.d.ts → types-9wlf1-GE.d.ts} +1 -1
- package/dist/types-CE1jkHw3.d.ts +6 -0
- package/dist/{types-DS_RiYko.d.ts → types-Cpdum4vi.d.ts} +1 -1
- package/dist/{types-Xp1E3FVT.d.ts → types-DFP7eSle.d.ts} +1 -1
- package/dist/{types-B4VMIIgN.d.ts → types-DJPU3W2M.d.ts} +1 -1
- package/dist/{types-C1IvtlAM.d.ts → types-Ddc4Tr_f.d.ts} +1 -1
- package/dist/video-selfie.d.ts +1 -1
- package/dist/video-selfie.esm.js +6 -6
- package/dist/{videoSelfieCameraWarmer-BmUAww-g.esm.js → videoSelfieCameraWarmer-DtiA0MQ-.esm.js} +3 -3
- package/dist/{videoSelfieStepDetector-Ret6gbJg.d.ts → videoSelfieStepDetector-DRrh4P0A.d.ts} +2 -2
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.d.ts +1 -1
- package/dist/workflow.esm.js +17 -17
- package/package.json +3 -3
- package/dist/types-BBvW20-Z.d.ts +0 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
|
|
2
|
-
import { r as getWorkerRecordingProfile } from "./mediaRecorderOptions-
|
|
2
|
+
import { r as getWorkerRecordingProfile } from "./mediaRecorderOptions-g1TwTlhd.esm.js";
|
|
3
3
|
//#region ../infra/src/media/cameraCompositorWorker.ts
|
|
4
4
|
/**
|
|
5
5
|
* Whether the worker transport is available here. Every probe must hold;
|
package/dist/{FaceDetectionProvider-B99Nr-zl.esm.js → FaceDetectionProvider-D9gvhT97.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { l as wasmRuntime } from "./warmup-BZOMg303.esm.js";
|
|
2
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
2
|
+
import { t as ensureWasmPipelines } from "./setup-Bi48aOoI.esm.js";
|
|
3
3
|
import { r as BaseWasmProvider } from "./WasmUtilProvider-0xTxgP0R.esm.js";
|
|
4
4
|
import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
5
|
-
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
6
|
-
import "./sessionInitializer-
|
|
5
|
+
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-ClUWnHWw.esm.js";
|
|
6
|
+
import "./sessionInitializer-C5Xe68H8.esm.js";
|
|
7
7
|
import { t as addDeviceStats } from "./stats-DoByUnTa.esm.js";
|
|
8
8
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
9
9
|
import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
|
|
@@ -235,7 +235,7 @@ function startDetection(params) {
|
|
|
235
235
|
};
|
|
236
236
|
}
|
|
237
237
|
async function initializeDeepsightSession(options) {
|
|
238
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
238
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-OVVi0rmr.esm.js");
|
|
239
239
|
return loadDeepsightSession({
|
|
240
240
|
ds: options.ds,
|
|
241
241
|
storage: options.storage
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as getMultipartRecorderMimeType } from "./mediaRecorderOptions-
|
|
1
|
+
import { n as getMultipartRecorderMimeType } from "./mediaRecorderOptions-g1TwTlhd.esm.js";
|
|
2
2
|
//#region ../infra/src/providers/browser/MultipartRecordingProvider.ts
|
|
3
3
|
/**
|
|
4
4
|
* How often `MediaRecorder` hands us buffered data (incremental blobs).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
|
|
2
|
-
import { t as MultipartRecordingProvider } from "./MultipartRecordingProvider-
|
|
2
|
+
import { t as MultipartRecordingProvider } from "./MultipartRecordingProvider-CduV32Qa.esm.js";
|
|
3
3
|
//#region ../infra/src/providers/browser/WorkerEncoderRecordingProvider.ts
|
|
4
4
|
var WorkerEncoderRecordingProvider_exports = /* @__PURE__ */ __exportAll({ WorkerEncoderRecordingProvider: () => WorkerEncoderRecordingProvider });
|
|
5
5
|
/**
|
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-BFrE0v5O.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-CRGajjZ4.js";
|
|
2
|
+
import { t as AuthenticationConfig } from "./types-CE1jkHw3.js";
|
|
3
|
+
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-DRaugLgH.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-BxUZGZSJ.esm.js";
|
|
2
|
+
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-BnQoPA29.esm.js";
|
|
3
3
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
package/dist/{authenticationManager-2BpobEGh.esm.js → authenticationManager-BnQoPA29.esm.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { u as BrowserStorageProvider } from "./setup-Bi48aOoI.esm.js";
|
|
2
2
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-0xTxgP0R.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
|
|
4
4
|
import "./events-CP3yOzAl.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-C_Cobifw.esm.js";
|
|
7
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-BxUZGZSJ.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-CRGajjZ4.js";
|
|
4
4
|
//#region src/modules/authentication/authenticationManager.d.ts
|
|
5
5
|
type AuthenticationState = FaceCaptureManagerState;
|
|
6
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
3
|
+
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-BI5iMFNH.esm.js";
|
|
4
|
+
import { d as isOnDeviceMode, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-D9gvhT97.esm.js";
|
|
5
5
|
import { s as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-BKFjsQpO.esm.js";
|
|
6
6
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
7
7
|
const AUTH_ERROR_MAP = {
|
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-Duzd8paN.js";
|
|
2
2
|
export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
|
|
@@ -87,10 +87,6 @@ declare const consentMachine: StateMachine<ConsentContext, {
|
|
|
87
87
|
type: "setLoadError";
|
|
88
88
|
params: NonReducibleUnknown;
|
|
89
89
|
};
|
|
90
|
-
resetContext: {
|
|
91
|
-
type: "resetContext";
|
|
92
|
-
params: NonReducibleUnknown;
|
|
93
|
-
};
|
|
94
90
|
setConsentData: {
|
|
95
91
|
type: "setConsentData";
|
|
96
92
|
params: NonReducibleUnknown;
|
|
@@ -99,10 +95,14 @@ declare const consentMachine: StateMachine<ConsentContext, {
|
|
|
99
95
|
type: "toggleCheckbox";
|
|
100
96
|
params: NonReducibleUnknown;
|
|
101
97
|
};
|
|
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" | "loading" | "submitting" | "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-Ci2iVuog.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-Ddc4Tr_f.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 */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-0xTxgP0R.esm.js";
|
|
2
|
-
import { u as trueSightLog } from "./trueSightService-
|
|
3
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
4
|
-
import { C as BrowserEnvironmentProvider, S as IpifyProvider, T as SDK_PLATFORM, b as getThumbmarkId, n as getDisableIpify, r as getFingerprintEnabled, v as isBrowserSimulation, w as fingerprintSignalsReporter } from "./sessionInitializer-
|
|
2
|
+
import { u as trueSightLog } from "./trueSightService-ClUWnHWw.esm.js";
|
|
3
|
+
import { t as SDK_VERSION } from "./sdkVersion-uVoihr6N.esm.js";
|
|
4
|
+
import { C as BrowserEnvironmentProvider, S as IpifyProvider, T as SDK_PLATFORM, b as getThumbmarkId, n as getDisableIpify, r as getFingerprintEnabled, v as isBrowserSimulation, w as fingerprintSignalsReporter } from "./sessionInitializer-C5Xe68H8.esm.js";
|
|
5
5
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
|
|
6
6
|
import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
|
|
7
7
|
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-DPK7qGgo.esm.js";
|
|
@@ -52,6 +52,31 @@ function buildStreetValue(street, houseNumber, hasHouseNoField) {
|
|
|
52
52
|
if (houseNumber && street) return `${houseNumber} ${street}`;
|
|
53
53
|
return houseNumber ?? street ?? "";
|
|
54
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* Keeps an address suggestion's region inside the `state` dropdown. A region
|
|
57
|
+
* that matches an option's value or label, ignoring case, becomes that
|
|
58
|
+
* option's value. One that matches none is dropped, as if the suggestion had
|
|
59
|
+
* no region, so the previous `state` stays if it matches an option the same
|
|
60
|
+
* way, also as that option's value (a prefill can leave `KOWLOON`, or a value
|
|
61
|
+
* no option has). Without this, a code such as `HK` would pass `required` and
|
|
62
|
+
* be submitted though the dropdown can't show it. A free-text `state` takes
|
|
63
|
+
* the suggestion as it is. Shared between eKYC and eKYB address forms; run it
|
|
64
|
+
* on `fillFromSuggestion`'s values.
|
|
65
|
+
*/
|
|
66
|
+
function keepSuggestedStateInOptions(fields, previous, next) {
|
|
67
|
+
const options = fields.find((field) => field.name === "state")?.options;
|
|
68
|
+
const suggested = next.state;
|
|
69
|
+
if (!options || !suggested) return next;
|
|
70
|
+
const optionFor = (value) => {
|
|
71
|
+
const wanted = value?.trim().toUpperCase();
|
|
72
|
+
if (!wanted) return void 0;
|
|
73
|
+
return options.find((option) => option.value.toUpperCase() === wanted || option.label.toUpperCase() === wanted)?.value;
|
|
74
|
+
};
|
|
75
|
+
return {
|
|
76
|
+
...next,
|
|
77
|
+
state: optionFor(suggested) ?? optionFor(previous.state)
|
|
78
|
+
};
|
|
79
|
+
}
|
|
55
80
|
const POSTAL_CODE_MAX_LENGTH_BY_COUNTRY = {
|
|
56
81
|
US: 10,
|
|
57
82
|
BR: 9,
|
|
@@ -193,4 +218,4 @@ function createBundledDefinitionSource(definitions) {
|
|
|
193
218
|
return { select: (query) => byQuery.get(queryKey(query)) };
|
|
194
219
|
}
|
|
195
220
|
//#endregion
|
|
196
|
-
export { getPostalCodeMaxLength as a, fillFromSuggestion as c, getPostalCodeErrorParams as i, getStreetLevelErrorForSuggestion as l, formatPostalCode as n, validatePostalCode as o, getPostalCodeErrorKey as r, STREET_LEVEL_REQUIRED_ERROR as s, createBundledDefinitionSource as t };
|
|
221
|
+
export { getPostalCodeMaxLength as a, fillFromSuggestion as c, getPostalCodeErrorParams as i, getStreetLevelErrorForSuggestion as l, formatPostalCode as n, validatePostalCode as o, getPostalCodeErrorKey as r, STREET_LEVEL_REQUIRED_ERROR as s, createBundledDefinitionSource as t, keepSuggestedStateInOptions as u };
|
|
@@ -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-CyNndVAT.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-Dd3T6bcs.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 };
|
|
@@ -102,14 +102,14 @@ declare const documentCaptureMachine: StateMachine<DocumentCaptureContext, {
|
|
|
102
102
|
id: string | undefined;
|
|
103
103
|
};
|
|
104
104
|
}>, Values<{
|
|
105
|
-
decrementAttemptsRemaining: {
|
|
106
|
-
type: "decrementAttemptsRemaining";
|
|
107
|
-
params: NonReducibleUnknown;
|
|
108
|
-
};
|
|
109
105
|
clearError: {
|
|
110
106
|
type: "clearError";
|
|
111
107
|
params: NonReducibleUnknown;
|
|
112
108
|
};
|
|
109
|
+
decrementAttemptsRemaining: {
|
|
110
|
+
type: "decrementAttemptsRemaining";
|
|
111
|
+
params: NonReducibleUnknown;
|
|
112
|
+
};
|
|
113
113
|
setStream: {
|
|
114
114
|
type: "setStream";
|
|
115
115
|
params: NonReducibleUnknown;
|
|
@@ -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-CiDW-0f-.esm.js";
|
|
2
|
+
import { t as createDynamicFormsManager } from "./dynamicFormsManager-9KzyLMcp.esm.js";
|
|
3
3
|
export { createDynamicFormsManager, dynamicFormsMachine };
|
|
@@ -3,7 +3,7 @@ import { t as createManagerInstrumentation } from "./events-CP3yOzAl.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-CiDW-0f-.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-CdgUw2lX.esm.js → dynamicFormsStateMachine-CiDW-0f-.esm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api, u as endpoints } from "./api-CZpuJuZl.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-DsxPekmg.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 { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
|
package/dist/ekyb.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./xstate.cjs-D6Ur0X1F.js";
|
|
2
2
|
import { n as AddressSuggestion } from "./textRules-D4NRinKY.js";
|
|
3
|
-
import { i as FlowModuleConfig } from "./types-
|
|
3
|
+
import { i as FlowModuleConfig } from "./types-Ddc4Tr_f.js";
|
|
4
4
|
import { a as EkybValidationError, n as EkybCountry, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-BgRHw-dR.js";
|
|
5
5
|
import { n as EkybState, o as ekybMachine, r as createEkybManager, t as EkybManager } from "./ekybManager-BflWuTe4.js";
|
|
6
6
|
//#region src/modules/ekyb/ekybServices.d.ts
|
package/dist/ekyb.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { c as ALL_COUNTRIES, f as SUPPORTED_COUNTRIES, l as DEV_ONLY_COUNTRIES, m as isSupportedCountry, o as toEkybConfig } from "./ekybUtils-Cw8Ta9Qi.esm.js";
|
|
2
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
3
|
-
import { t as createEkybManager } from "./ekybManager-
|
|
2
|
+
import { t as ekybMachine } from "./ekybStateMachine-DyeaNQuh.esm.js";
|
|
3
|
+
import { t as createEkybManager } from "./ekybManager-DUHIdZdG.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-CP3yOzAl.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-DyeaNQuh.esm.js";
|
|
7
7
|
//#region src/modules/ekyb/ekybActor.ts
|
|
8
8
|
/**
|
|
9
9
|
* Creates and starts an eKYB actor.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
2
|
-
import { n as getFlow } from "./flowServices-
|
|
2
|
+
import { n as getFlow } from "./flowServices-Ck0j24_6.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 sortModulesByOrder, c as ALL_COUNTRIES, d as FIELD_ORDER, i as requiresAddressValidation, m as isSupportedCountry, n as hasAtLeastOneAddressField, o as toEkybConfig, p as UBO_FIELD_LABELS, r as isFieldOptional, s as ADDRESS_FIELDS, u as FIELD_NAME_MAPPING } from "./ekybUtils-Cw8Ta9Qi.esm.js";
|
|
6
6
|
import { t as usStateOptions } from "./usStates-CwOQ2kAx.esm.js";
|
|
7
7
|
import { n as requiresCnpjValidation, r as validateCNPJ } from "./cnpj-Bl_olpdX.esm.js";
|
|
8
|
-
import { a as getPostalCodeMaxLength, c as fillFromSuggestion, i as getPostalCodeErrorParams, l as getStreetLevelErrorForSuggestion, n as formatPostalCode, o as validatePostalCode, r as getPostalCodeErrorKey, s as STREET_LEVEL_REQUIRED_ERROR, t as createBundledDefinitionSource } from "./definitionSource-
|
|
8
|
+
import { a as getPostalCodeMaxLength, c as fillFromSuggestion, i as getPostalCodeErrorParams, l as getStreetLevelErrorForSuggestion, n as formatPostalCode, o as validatePostalCode, r as getPostalCodeErrorKey, s as STREET_LEVEL_REQUIRED_ERROR, t as createBundledDefinitionSource, u as keepSuggestedStateInOptions } from "./definitionSource-Nw0YCbpe.esm.js";
|
|
9
9
|
import { n as checkSupport, r as DYNAMIC_REQUIRED_KEY, t as resolveForm } from "./resolveForm-DaaQSVWp.esm.js";
|
|
10
10
|
import { r as isFormDefinitionsEnabled, t as debounceSearchActor } from "./addressSearch-Rxm1K67A.esm.js";
|
|
11
11
|
//#region src/modules/ekyb/ekybValidators.ts
|
|
@@ -754,7 +754,8 @@ const ekybMachine = setup({
|
|
|
754
754
|
fillAddressFields: assign(({ context, event }) => {
|
|
755
755
|
const { suggestion } = event;
|
|
756
756
|
const activeFields = new Set(context.fields.map((f) => f.name));
|
|
757
|
-
const { values:
|
|
757
|
+
const { values: filled } = fillFromSuggestion(context.values, {}, suggestion, activeFields);
|
|
758
|
+
const newValues = keepSuggestedStateInOptions(context.fields, context.values, filled);
|
|
758
759
|
const errs = context.validationErrors;
|
|
759
760
|
let newErrors = errs;
|
|
760
761
|
if (errs) {
|
package/dist/ekyc-prefill.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as EkycFormValues, c as EkycValidationErrors, s as EkycValidationError } from "./types-DEa3taWc.js";
|
|
2
2
|
import { a as EkycPrefillFieldDef, c as EkycPrefillModuleConfig, i as EkycPrefillErrorKind, l as EkycPrefillServedField, n as EkycPrefillConfigField, s as EkycPrefillInputFormat, t as EkycPrefillConfig } from "./types-B-PIc0en.js";
|
|
3
|
-
import { a as EkycPrefillFormState, c as EkycPrefillManager, d as EkycPrefillSubmittingState, f as createEkycPrefillManager, h as ekycPrefillMachine, i as EkycPrefillFinishedState, l as EkycPrefillMisconfiguredState, n as EkycPrefillClosedState, o as EkycPrefillIdleState, r as EkycPrefillErrorState, s as EkycPrefillLimitReachedState, t as EkycPrefillAnyOfState, u as EkycPrefillState } from "./ekycPrefillManager-
|
|
3
|
+
import { a as EkycPrefillFormState, c as EkycPrefillManager, d as EkycPrefillSubmittingState, f as createEkycPrefillManager, h as ekycPrefillMachine, i as EkycPrefillFinishedState, l as EkycPrefillMisconfiguredState, n as EkycPrefillClosedState, o as EkycPrefillIdleState, r as EkycPrefillErrorState, s as EkycPrefillLimitReachedState, t as EkycPrefillAnyOfState, u as EkycPrefillState } from "./ekycPrefillManager-C11D5yiF.js";
|
|
4
4
|
//#region src/modules/ekyc-prefill/ekycPrefillConfig.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Normalizes the served `EKYC_PREFILL` configuration. Idempotent, so a
|
package/dist/ekyc-prefill.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as toEkycPrefillConfig, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-
|
|
2
|
-
import { t as createEkycPrefillManager } from "./ekycPrefillManager-
|
|
1
|
+
import { i as toEkycPrefillConfig, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-Da2zyGG-.esm.js";
|
|
2
|
+
import { t as createEkycPrefillManager } from "./ekycPrefillManager-0s2UqsQ3.esm.js";
|
|
3
3
|
export { createEkycPrefillManager, ekycPrefillMachine, toEkycPrefillConfig };
|
package/dist/ekyc.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ekycMachine } from "./ekycStateMachine-
|
|
2
|
-
import { l as toEkycConfig } from "./ekycUtils-
|
|
3
|
-
import { t as createEkycManager } from "./ekycManager-
|
|
1
|
+
import { t as ekycMachine } from "./ekycStateMachine-nwJRel2s.esm.js";
|
|
2
|
+
import { l as toEkycConfig } from "./ekycUtils-FcqA6oU4.esm.js";
|
|
3
|
+
import { t as createEkycManager } from "./ekycManager-nRT0rxei.esm.js";
|
|
4
4
|
export { createEkycManager, ekycMachine, toEkycConfig };
|
|
@@ -3,7 +3,7 @@ import { t as createManagerInstrumentation } from "./events-CP3yOzAl.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-nwJRel2s.esm.js";
|
|
7
7
|
//#region src/modules/ekyc/ekycActor.ts
|
|
8
8
|
/**
|
|
9
9
|
* Creates and starts an eKYC actor.
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
import { n as isAnyOfMissing, r as validateForm, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-
|
|
3
|
+
import { n as isAnyOfMissing, r as validateForm, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-Da2zyGG-.esm.js";
|
|
4
4
|
//#region src/modules/ekyc-prefill/ekycPrefillActor.ts
|
|
5
5
|
/** Creates and starts an eKYC Pre-fill actor, idle until `LOAD`. */
|
|
6
6
|
function createEkycPrefillActor(options = {}) {
|
|
@@ -110,7 +110,7 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
|
110
110
|
type: "isLimitReached";
|
|
111
111
|
params: unknown;
|
|
112
112
|
};
|
|
113
|
-
}>, never, "error" | "idle" | "closed" | "finished" | "
|
|
113
|
+
}>, never, "error" | "idle" | "closed" | "finished" | "misconfigured" | "submitting" | "limitReached" | {
|
|
114
114
|
form: "inputting" | "validating";
|
|
115
115
|
}, string, EkycPrefillInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
116
116
|
readonly id: "ekycPrefill";
|
package/dist/{ekycPrefillStateMachine-DWRgq-Xp.esm.js → ekycPrefillStateMachine-Da2zyGG-.esm.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
2
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
2
|
+
import { i as toIncodeApiError } from "./apiError-DsxPekmg.esm.js";
|
|
3
3
|
import { n as loadPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
6
|
-
import { i as cleanName, l as validateEkycField, n as projectRules, o as formatSSN } from "./ekycRules-
|
|
7
|
-
import { t as createBundledDefinitionSource } from "./definitionSource-
|
|
6
|
+
import { i as cleanName, l as validateEkycField, n as projectRules, o as formatSSN } from "./ekycRules-DXP2hqVw.esm.js";
|
|
7
|
+
import { t as createBundledDefinitionSource } from "./definitionSource-Nw0YCbpe.esm.js";
|
|
8
8
|
import { n as checkSupport, t as resolveForm } from "./resolveForm-DaaQSVWp.esm.js";
|
|
9
9
|
import { t as formatPhoneE164 } from "./phoneFormat-C3q0Ukh4.esm.js";
|
|
10
10
|
import { t as formatCPF } from "./idOcrCpfUtils-D5Gwskxu.esm.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as getLocalIsoDate } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
2
|
import { n as loadPhoneValidation, t as getPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
|
|
3
3
|
import { t as isValidCurp } from "./curp-DZGvefg3.esm.js";
|
|
4
|
-
import { i as getPostalCodeErrorParams, o as validatePostalCode, r as getPostalCodeErrorKey, s as STREET_LEVEL_REQUIRED_ERROR } from "./definitionSource-
|
|
4
|
+
import { i as getPostalCodeErrorParams, o as validatePostalCode, r as getPostalCodeErrorKey, s as STREET_LEVEL_REQUIRED_ERROR } from "./definitionSource-Nw0YCbpe.esm.js";
|
|
5
5
|
import { r as DYNAMIC_REQUIRED_KEY } from "./resolveForm-DaaQSVWp.esm.js";
|
|
6
6
|
import { t as validateCPF } from "./cpf-DDXMTLYr.esm.js";
|
|
7
7
|
import { n as hasAllowedCharacters } from "./phoneFormat-C3q0Ukh4.esm.js";
|
|
@@ -2,12 +2,12 @@ import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
|
2
2
|
import { t as getPhoneValidation } from "./phoneValidation-OggtfjRt.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
|
-
import { a as formatPhoneNational, c as oneOfRequiredErrorKey, i as cleanName, l as validateEkycField, n as projectRules, o as formatSSN, s as loadPhoneValidator, t as RULES, u as validateEkycForm } from "./ekycRules-
|
|
5
|
+
import { a as formatPhoneNational, c as oneOfRequiredErrorKey, i as cleanName, l as validateEkycField, n as projectRules, o as formatSSN, s as loadPhoneValidator, t as RULES, u as validateEkycForm } from "./ekycRules-DXP2hqVw.esm.js";
|
|
6
6
|
import { n as usStates, t as usStateOptions } from "./usStates-CwOQ2kAx.esm.js";
|
|
7
|
-
import { a as getPostalCodeMaxLength, c as fillFromSuggestion, l as getStreetLevelErrorForSuggestion, n as formatPostalCode, t as createBundledDefinitionSource } from "./definitionSource-
|
|
7
|
+
import { a as getPostalCodeMaxLength, c as fillFromSuggestion, l as getStreetLevelErrorForSuggestion, n as formatPostalCode, t as createBundledDefinitionSource, u as keepSuggestedStateInOptions } from "./definitionSource-Nw0YCbpe.esm.js";
|
|
8
8
|
import { n as checkSupport, t as resolveForm } from "./resolveForm-DaaQSVWp.esm.js";
|
|
9
9
|
import { n as searchAddress, r as isFormDefinitionsEnabled, t as debounceSearchActor } from "./addressSearch-Rxm1K67A.esm.js";
|
|
10
|
-
import { C as TAX_ID_SOURCES, S as STREET_SOURCES, _ as MIDDLE_NAME_SOURCES, a as getEKYCFields, b as POSTAL_CODE_SOURCES, c as resolveEkycSource, d as APARTMENT_SOURCES, f as CITY_SOURCES, g as HOUSE_NO_SOURCES, h as EMAIL_SOURCES, i as getEKYCDisplayModes, l as toEkycConfig, m as COUNTRY_SELECTOR_DISABLED_SOURCES, o as isFieldOptional, p as COUNTRY_CODE_OMITTED_SOURCES, r as getEKYCCountry, s as mapToEKYCvalue, t as EKYC_GROUP_KEYS, u as ADDRESS_STATE_SOURCES, v as NAME_SOURCES, w as VOCABULARY, x as STATE_CODE_HINTS, y as ONE_OF_REQUIRED_GROUPS } from "./ekycUtils-
|
|
10
|
+
import { C as TAX_ID_SOURCES, S as STREET_SOURCES, _ as MIDDLE_NAME_SOURCES, a as getEKYCFields, b as POSTAL_CODE_SOURCES, c as resolveEkycSource, d as APARTMENT_SOURCES, f as CITY_SOURCES, g as HOUSE_NO_SOURCES, h as EMAIL_SOURCES, i as getEKYCDisplayModes, l as toEkycConfig, m as COUNTRY_SELECTOR_DISABLED_SOURCES, o as isFieldOptional, p as COUNTRY_CODE_OMITTED_SOURCES, r as getEKYCCountry, s as mapToEKYCvalue, t as EKYC_GROUP_KEYS, u as ADDRESS_STATE_SOURCES, v as NAME_SOURCES, w as VOCABULARY, x as STATE_CODE_HINTS, y as ONE_OF_REQUIRED_GROUPS } from "./ekycUtils-FcqA6oU4.esm.js";
|
|
11
11
|
import { t as DateFormattingProvider } from "./DateFormattingProvider-DPq9zco-.esm.js";
|
|
12
12
|
import { t as formatPhoneE164 } from "./phoneFormat-C3q0Ukh4.esm.js";
|
|
13
13
|
//#region src/internal/forms/resolvePrefill.ts
|
|
@@ -3199,6 +3199,175 @@ const EKYC_DEFINITIONS = {
|
|
|
3199
3199
|
}
|
|
3200
3200
|
}
|
|
3201
3201
|
},
|
|
3202
|
+
"ekyc/HK/HK_RESIDENT_REGISTER": {
|
|
3203
|
+
schemaVersion: 1,
|
|
3204
|
+
vocabulary: "1.3",
|
|
3205
|
+
id: "ekyc/HK/HK_RESIDENT_REGISTER",
|
|
3206
|
+
module: "ekyc",
|
|
3207
|
+
country: "HK",
|
|
3208
|
+
source: "HK_RESIDENT_REGISTER",
|
|
3209
|
+
sections: [{ id: "address" }],
|
|
3210
|
+
fields: [
|
|
3211
|
+
{
|
|
3212
|
+
name: "firstName",
|
|
3213
|
+
kind: "text",
|
|
3214
|
+
group: "name",
|
|
3215
|
+
required: true,
|
|
3216
|
+
label: { key: "verification.labels.firstName" },
|
|
3217
|
+
placeholder: { key: "verification.placeholder.firstName" },
|
|
3218
|
+
input: {
|
|
3219
|
+
maxLength: 100,
|
|
3220
|
+
autofill: "givenName"
|
|
3221
|
+
},
|
|
3222
|
+
rules: [{ id: "nameCharacters" }],
|
|
3223
|
+
prefill: ["document.firstName", "poa.firstName"]
|
|
3224
|
+
},
|
|
3225
|
+
{
|
|
3226
|
+
name: "surName",
|
|
3227
|
+
kind: "text",
|
|
3228
|
+
group: "name",
|
|
3229
|
+
required: true,
|
|
3230
|
+
label: { key: "verification.labels.surName" },
|
|
3231
|
+
placeholder: { key: "verification.placeholder.surname" },
|
|
3232
|
+
input: {
|
|
3233
|
+
maxLength: 100,
|
|
3234
|
+
autofill: "familyName"
|
|
3235
|
+
},
|
|
3236
|
+
rules: [{ id: "nameCharacters" }],
|
|
3237
|
+
prefill: ["document.paternalLastName", "poa.lastName"]
|
|
3238
|
+
},
|
|
3239
|
+
{
|
|
3240
|
+
name: "dateOfBirth",
|
|
3241
|
+
kind: "date",
|
|
3242
|
+
group: "dateOfBirth",
|
|
3243
|
+
label: { key: "verification.labels.dateOfBirth" },
|
|
3244
|
+
input: { autofill: "birthday" },
|
|
3245
|
+
rules: [{
|
|
3246
|
+
id: "maxAge",
|
|
3247
|
+
params: { years: 120 }
|
|
3248
|
+
}, { id: "notFuture" }],
|
|
3249
|
+
prefill: ["document.birthDate"]
|
|
3250
|
+
},
|
|
3251
|
+
{
|
|
3252
|
+
name: "gender",
|
|
3253
|
+
kind: "choice",
|
|
3254
|
+
group: "gender",
|
|
3255
|
+
widget: "radio",
|
|
3256
|
+
label: { key: "verification.labels.gender" },
|
|
3257
|
+
options: [{
|
|
3258
|
+
value: "F",
|
|
3259
|
+
label: { key: "common.female" }
|
|
3260
|
+
}, {
|
|
3261
|
+
value: "M",
|
|
3262
|
+
label: { key: "common.male" }
|
|
3263
|
+
}]
|
|
3264
|
+
},
|
|
3265
|
+
{
|
|
3266
|
+
name: "email",
|
|
3267
|
+
kind: "text",
|
|
3268
|
+
group: "email",
|
|
3269
|
+
required: true,
|
|
3270
|
+
label: { key: "verification.labels.email" },
|
|
3271
|
+
placeholder: { key: "verification.placeholder.email" },
|
|
3272
|
+
input: {
|
|
3273
|
+
keyboard: "email",
|
|
3274
|
+
autofill: "email"
|
|
3275
|
+
},
|
|
3276
|
+
rules: [{ id: "emailFormat" }],
|
|
3277
|
+
prefill: ["emailModule.email"]
|
|
3278
|
+
},
|
|
3279
|
+
{
|
|
3280
|
+
name: "phone",
|
|
3281
|
+
kind: "phone",
|
|
3282
|
+
group: "phone",
|
|
3283
|
+
required: true,
|
|
3284
|
+
label: { key: "verification.labels.phone" },
|
|
3285
|
+
input: { autofill: "phone" },
|
|
3286
|
+
phone: { lockCountry: "whenPhoneRisk" },
|
|
3287
|
+
rules: [{ id: "phoneFormat" }],
|
|
3288
|
+
payload: { transforms: [{ id: "e164" }] },
|
|
3289
|
+
prefill: ["phoneModule.phone"]
|
|
3290
|
+
},
|
|
3291
|
+
{
|
|
3292
|
+
name: "apartment",
|
|
3293
|
+
kind: "text",
|
|
3294
|
+
group: "address",
|
|
3295
|
+
section: "address",
|
|
3296
|
+
label: { key: "verification.labels.apartment" },
|
|
3297
|
+
placeholder: { key: "verification.placeholder.apartment" },
|
|
3298
|
+
input: { autofill: "addressLine2" }
|
|
3299
|
+
},
|
|
3300
|
+
{
|
|
3301
|
+
name: "buildingName",
|
|
3302
|
+
kind: "text",
|
|
3303
|
+
group: "address",
|
|
3304
|
+
section: "address",
|
|
3305
|
+
label: { key: "verification.labels.buildingName" }
|
|
3306
|
+
},
|
|
3307
|
+
{
|
|
3308
|
+
name: "houseNo",
|
|
3309
|
+
kind: "text",
|
|
3310
|
+
group: "address",
|
|
3311
|
+
section: "address",
|
|
3312
|
+
label: { key: "verification.labels.houseNo" },
|
|
3313
|
+
prefill: ["document.houseNumber", "poa.houseNumber"]
|
|
3314
|
+
},
|
|
3315
|
+
{
|
|
3316
|
+
name: "street",
|
|
3317
|
+
kind: "text",
|
|
3318
|
+
group: "address",
|
|
3319
|
+
section: "address",
|
|
3320
|
+
widget: "addressSearch",
|
|
3321
|
+
label: { key: "verification.labels.street" },
|
|
3322
|
+
input: { autofill: "addressLine1" },
|
|
3323
|
+
rules: [{ id: "noPoBox" }],
|
|
3324
|
+
prefill: ["document.street", "poa.street"]
|
|
3325
|
+
},
|
|
3326
|
+
{
|
|
3327
|
+
name: "city",
|
|
3328
|
+
kind: "text",
|
|
3329
|
+
group: "address",
|
|
3330
|
+
section: "address",
|
|
3331
|
+
label: { key: "verification.labels.area" },
|
|
3332
|
+
input: { autofill: "addressLevel2" },
|
|
3333
|
+
prefill: ["document.city", "poa.city"]
|
|
3334
|
+
},
|
|
3335
|
+
{
|
|
3336
|
+
name: "state",
|
|
3337
|
+
kind: "choice",
|
|
3338
|
+
group: "address",
|
|
3339
|
+
section: "address",
|
|
3340
|
+
required: true,
|
|
3341
|
+
widget: "select",
|
|
3342
|
+
label: { key: "verification.labels.chooseState" },
|
|
3343
|
+
placeholder: { key: "verification.placeholder.state" },
|
|
3344
|
+
input: { autofill: "addressLevel1" },
|
|
3345
|
+
options: [
|
|
3346
|
+
{
|
|
3347
|
+
value: "Hong Kong",
|
|
3348
|
+
label: { key: "Hong Kong" }
|
|
3349
|
+
},
|
|
3350
|
+
{
|
|
3351
|
+
value: "Kowloon",
|
|
3352
|
+
label: { key: "Kowloon" }
|
|
3353
|
+
},
|
|
3354
|
+
{
|
|
3355
|
+
value: "New Territories",
|
|
3356
|
+
label: { key: "New Territories" }
|
|
3357
|
+
}
|
|
3358
|
+
],
|
|
3359
|
+
payload: { transforms: [{ id: "uppercase" }] },
|
|
3360
|
+
prefill: ["document.state", "poa.state"]
|
|
3361
|
+
}
|
|
3362
|
+
],
|
|
3363
|
+
submit: {
|
|
3364
|
+
static: { plugins: ["kyc"] },
|
|
3365
|
+
context: {
|
|
3366
|
+
source: "source",
|
|
3367
|
+
countryCode: "country"
|
|
3368
|
+
}
|
|
3369
|
+
}
|
|
3370
|
+
},
|
|
3202
3371
|
"ekyc/IN/IN_DMV": {
|
|
3203
3372
|
schemaVersion: 1,
|
|
3204
3373
|
vocabulary: "1.3",
|
|
@@ -7461,7 +7630,8 @@ const ekycMachine = setup({
|
|
|
7461
7630
|
fillAddressFields: assign(({ context, event }) => {
|
|
7462
7631
|
const { suggestion } = event;
|
|
7463
7632
|
const activeFields = new Set(context.fields.filter((f) => !isLocked(f)).map((f) => f.name));
|
|
7464
|
-
const { values:
|
|
7633
|
+
const { values: filled } = fillFromSuggestion(context.values, {}, suggestion, activeFields);
|
|
7634
|
+
const newValues = keepSuggestedStateInOptions(context.fields, context.values, filled);
|
|
7465
7635
|
const clearedErrors = omitKeys(context.validationErrors, ADDRESS_AUTOCOMPLETE_KEYS);
|
|
7466
7636
|
const streetError = getStreetLevelErrorForSuggestion(suggestion, activeFields);
|
|
7467
7637
|
const validationErrors = {
|