@incodetech/core 0.0.0-dev-20261130-0d7e6560 → 0.0.0-dev-20261130-5b13df85
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-kIXKvb6_.esm.js → FaceDetectionProvider-C-rF6T7Z.esm.js} +4 -4
- package/dist/{addressSearch-BURPB5hi.esm.js → addressSearch-BJ711RHG.esm.js} +5 -1
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-5L77_mxG.esm.js → apiError-DQ8gDmvG.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-D_dz2zK4.d.ts → authenticationManager-C_ttJLGU.d.ts} +1 -1
- package/dist/{authenticationManager-GPPQdprT.esm.js → authenticationManager-XPBsjyPj.esm.js} +3 -3
- package/dist/{authenticationStateMachine-ivqfCQoP.esm.js → authenticationStateMachine-BotYf-PE.esm.js} +3 -3
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-vI6QHkHU.d.ts → consentManager-B2F_VeAo.d.ts} +5 -5
- package/dist/curp-validation.d.ts +1 -1
- package/dist/{curpValidationManager-tNhzv7vZ.d.ts → curpValidationManager-BFPZiliY.d.ts} +1 -1
- package/dist/{deepsightCaptureConfig-0D4BXbz4.esm.js → deepsightCaptureConfig-D1WNC7ov.esm.js} +2 -2
- package/dist/{deepsightLoader-DHfbAPzM.esm.js → deepsightLoader-wXNd73NH.esm.js} +4 -4
- package/dist/{desktopCameraElection-B6zYrMwf.esm.js → desktopCameraElection-BNOR50hV.esm.js} +4 -4
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-signature.esm.js +1 -1
- package/dist/{documentCaptureManager-DLWTqjUr.d.ts → documentCaptureManager-sJWgqtUy.d.ts} +1 -1
- package/dist/{documentSignatureStateMachine-BGmJ_F05.esm.js → documentSignatureStateMachine-o9g3hUPs.esm.js} +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-_VczO9eY.esm.js → dynamicFormsManager-CaB8kw-z.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-CxEbUgA2.esm.js → dynamicFormsStateMachine-CJQeyWcQ.esm.js} +1 -1
- package/dist/ekyb.d.ts +3 -3
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-BTpXg5S5.esm.js → ekybManager-DPPLK340.esm.js} +1 -1
- package/dist/{ekybManager-DmqOVUfr.d.ts → ekybManager-XpAF7sBY.d.ts} +1 -1
- package/dist/{ekybStateMachine-C9vSWOfc.esm.js → ekybStateMachine-99Vi0LF2.esm.js} +87 -5
- package/dist/{ekybUtils-CQl--xHw.esm.js → ekybUtils-ru8kQWEQ.esm.js} +18 -9
- package/dist/ekyc-prefill.d.ts +1 -1
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +2 -2
- package/dist/{ekycManager-DHJEJKzi.esm.js → ekycManager-Bt0FZlZO.esm.js} +1 -1
- package/dist/{ekycManager-mv2rWxc4.d.ts → ekycManager-P1jYeS8s.d.ts} +1 -1
- package/dist/{ekycPrefillManager-Cpa4Ojo9.esm.js → ekycPrefillManager-BATHE-ky.esm.js} +1 -1
- package/dist/{ekycPrefillManager-BwmPXfhY.d.ts → ekycPrefillManager-Di6aMx68.d.ts} +4 -4
- package/dist/{ekycPrefillStateMachine-CG1IzJPT.esm.js → ekycPrefillStateMachine-CbAtTM0d.esm.js} +1 -1
- package/dist/{ekycStateMachine-DkGDTOh7.esm.js → ekycStateMachine-lo3GvfpV.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-QNDt89Hk.esm.js → electronicSignatureManager-psid-OPz.esm.js} +1 -1
- package/dist/extensibility.d.ts +14 -14
- package/dist/extensibility.esm.js +13 -13
- package/dist/{faceCaptureManagerFactory-B1WfKaGJ.d.ts → faceCaptureManagerFactory-D0y15MK_.d.ts} +3 -3
- package/dist/{faceCaptureManagerFactory-B2UrO7Dg.esm.js → faceCaptureManagerFactory-DjLxHT0i.esm.js} +2 -2
- package/dist/{faceCaptureSetup-ByUq2-ol.esm.js → faceCaptureSetup-DXJjOHbL.esm.js} +7 -7
- package/dist/{feature-management-BdI-A6iS.esm.js → feature-management-DZnh0MXp.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 +8 -8
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-CCbv5iIj.esm.js → flowCompletionService-CrdOUJl4.esm.js} +1 -1
- package/dist/{flowServices-CKCGj0j3.esm.js → flowServices-CmTOlv-a.esm.js} +5 -5
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-flbr1-EH.esm.js → geolocationManager-DHrxDoar.esm.js} +1 -1
- package/dist/{geolocationStateMachine-CbqeUSjR.esm.js → geolocationStateMachine-OcBPM2My.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-DXqvtLr9.d.ts → idCaptureManager-B72fNOKa.d.ts} +2 -2
- package/dist/{idCaptureManager-MHSoUxLc.esm.js → idCaptureManager-DfojS-jQ.esm.js} +4 -4
- package/dist/{idCaptureServices-PSh4YJTy.esm.js → idCaptureServices-fAot4s2h.esm.js} +2 -2
- package/dist/{idCaptureStateMachine-6g6Y9ZuQ.esm.js → idCaptureStateMachine-Cb6DaUGI.esm.js} +11 -11
- package/dist/{idOcrManager-DflRx-_u.d.ts → idOcrManager-C0C7lFGd.d.ts} +1 -1
- package/dist/{index-BnKhmWhM.d.ts → index-O5g5kKdI.d.ts} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/kyb-checks.esm.js +2 -2
- package/dist/{kybChecksManager-B2K0Ycxf.esm.js → kybChecksManager-CISz3fex.esm.js} +1 -1
- package/dist/{kybChecksStateMachine-LrgZ9KOB.esm.js → kybChecksStateMachine-De6amewQ.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/{mandatoryConsentManager-D4R02-0Y.d.ts → mandatoryConsentManager-CxMIA598.d.ts} +6 -6
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-BhfPOoPJ.esm.js → recordingService-BtRYSwKx.esm.js} +1 -1
- package/dist/{runChildModule-Di-o5lDC.esm.js → runChildModule-cKtSguun.esm.js} +1 -1
- package/dist/{sdkVersion-CMXVlc-r.esm.js → sdkVersion-B0ced_Us.esm.js} +1 -1
- package/dist/selfie.d.ts +3 -3
- package/dist/selfie.esm.js +7 -7
- package/dist/{selfieErrorUtils-DSNVyi8A.esm.js → selfieErrorUtils-1Owqe6JB.esm.js} +1 -1
- package/dist/{selfieManager-B2j448t4.d.ts → selfieManager-C44cA6cA.d.ts} +1 -1
- package/dist/{selfieManager-sYyEhIp8.esm.js → selfieManager-DR8lvAAh.esm.js} +3 -3
- package/dist/{selfieStateMachine-MNGnttvd.esm.js → selfieStateMachine-WbrJsA9-.esm.js} +3 -3
- package/dist/{session-EAp8VCs9.esm.js → session-CMea0PZ6.esm.js} +4 -4
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-BDD6tSZ6.esm.js → sessionInitializer-CZEZQYGA.esm.js} +4 -4
- package/dist/{setup-D4XGOnLK.esm.js → setup-CIXfBZfE.esm.js} +5 -5
- package/dist/trueSight-CsZ2oUmq.esm.js +1 -0
- package/dist/{trueSightService-G_3YEepc.esm.js → trueSightService-D-w3MTlu.esm.js} +1 -1
- package/dist/{types-CkzE2gPZ.d.ts → types-B8KMmCCy.d.ts} +23 -3
- package/dist/types-B_THBzAh.d.ts +6 -0
- package/dist/{types-BxJWsAHc.d.ts → types-ByNCQYE9.d.ts} +1 -1
- package/dist/{types-BkxI3PHf.d.ts → types-C57lH3a8.d.ts} +1 -1
- package/dist/{types-DuARPzVa.d.ts → types-CaQV2ksk.d.ts} +1 -1
- package/dist/{types-gXjHnLSS.d.ts → types-D4_C4-vg.d.ts} +1 -1
- package/dist/{types-CAzi8tyi.d.ts → types-DDmU-yVM.d.ts} +1 -1
- package/dist/{types-BFoC3IpR.d.ts → types-ujAUlvvI.d.ts} +2 -2
- package/dist/video-selfie.d.ts +1 -1
- package/dist/video-selfie.esm.js +3 -3
- package/dist/{videoSelfieCameraWarmer-B5qIvZhV.esm.js → videoSelfieCameraWarmer-DpiKsolm.esm.js} +3 -3
- package/dist/{videoSelfieStepDetector-CrlbZ-rN.d.ts → videoSelfieStepDetector-DAEJDeL3.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 +1 -1
- package/dist/trueSight-Cz4rLGzU.esm.js +0 -1
- package/dist/types-CEdI4tfR.d.ts +0 -6
package/dist/{FaceDetectionProvider-kIXKvb6_.esm.js → FaceDetectionProvider-C-rF6T7Z.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-CIXfBZfE.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-D-w3MTlu.esm.js";
|
|
6
|
+
import "./trueSight-CsZ2oUmq.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-wXNd73NH.esm.js");
|
|
238
238
|
return loadDeepsightSession({
|
|
239
239
|
ds: options.ds,
|
|
240
240
|
storage: options.storage
|
|
@@ -159,7 +159,11 @@ const US_POSTAL_CODE_REGEX = /^(?:\d{5}|\d{9}|\d{5}-\d{4})$/;
|
|
|
159
159
|
const BR_POSTAL_CODE_REGEX = /^(?:\d{5}|\d{8}|\d{5}-\d{3})$/;
|
|
160
160
|
const CA_POSTAL_CODE_REGEX = /^[A-Za-z]\d[A-Za-z] \d[A-Za-z]\d$/;
|
|
161
161
|
const UK_POSTAL_CODE_REGEX = /^(?:[A-Z]{2}\d|[A-Z]{2}\d{2}|[A-Z]\d|[A-Z]\d{2}|[A-Z]\d[A-Z]|[A-Z]{2}\d[A-Z]) \d[A-Z]{2}$/;
|
|
162
|
-
|
|
162
|
+
/**
|
|
163
|
+
* The 8-character CPA (C1425DFE), or the 4-digit code before it (1264), which
|
|
164
|
+
* company registries such as Creditsafe's still record.
|
|
165
|
+
*/
|
|
166
|
+
const AR_POSTAL_CODE_REGEX = /^(?:[A-Za-z]\d{4}[A-Za-z]{3}|\d{4})$/;
|
|
163
167
|
/** Four digits and two uppercase letters, such as 1016DV. */
|
|
164
168
|
const NL_POSTAL_CODE_REGEX = /^\d{4}[A-Z]{2}$/;
|
|
165
169
|
/** Seven digits, the first 1 to 9, with or without a hyphen: 4430-458. */
|
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-psid-OPz.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-D0y15MK_.js";
|
|
2
|
+
import { t as AuthenticationConfig } from "./types-B_THBzAh.js";
|
|
3
|
+
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-C_ttJLGU.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-BotYf-PE.esm.js";
|
|
2
|
+
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-XPBsjyPj.esm.js";
|
|
3
3
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
|
@@ -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-D0y15MK_.js";
|
|
4
4
|
//#region src/modules/authentication/authenticationManager.d.ts
|
|
5
5
|
type AuthenticationState = FaceCaptureManagerState;
|
|
6
6
|
/**
|
package/dist/{authenticationManager-GPPQdprT.esm.js → authenticationManager-XPBsjyPj.esm.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { u as BrowserStorageProvider } from "./setup-CIXfBZfE.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-DjLxHT0i.esm.js";
|
|
7
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-BotYf-PE.esm.js";
|
|
8
8
|
//#region src/modules/authentication/authenticationActor.ts
|
|
9
9
|
function createAuthenticationActor(options) {
|
|
10
10
|
const dependencies = options.dependencies ?? {
|
|
@@ -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-DXJjOHbL.esm.js";
|
|
4
|
+
import { d as isOnDeviceMode, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-C-rF6T7Z.esm.js";
|
|
5
|
+
import { l as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-BNOR50hV.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-B2F_VeAo.js";
|
|
2
2
|
export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
|
|
@@ -79,10 +79,6 @@ declare const consentMachine: StateMachine<ConsentContext, {
|
|
|
79
79
|
type: "setError";
|
|
80
80
|
params: NonReducibleUnknown;
|
|
81
81
|
};
|
|
82
|
-
clearError: {
|
|
83
|
-
type: "clearError";
|
|
84
|
-
params: NonReducibleUnknown;
|
|
85
|
-
};
|
|
86
82
|
setLoadError: {
|
|
87
83
|
type: "setLoadError";
|
|
88
84
|
params: NonReducibleUnknown;
|
|
@@ -95,6 +91,10 @@ declare const consentMachine: StateMachine<ConsentContext, {
|
|
|
95
91
|
type: "toggleCheckbox";
|
|
96
92
|
params: NonReducibleUnknown;
|
|
97
93
|
};
|
|
94
|
+
clearError: {
|
|
95
|
+
type: "clearError";
|
|
96
|
+
params: NonReducibleUnknown;
|
|
97
|
+
};
|
|
98
98
|
resetContext: {
|
|
99
99
|
type: "resetContext";
|
|
100
100
|
params: NonReducibleUnknown;
|
|
@@ -102,7 +102,7 @@ declare const consentMachine: StateMachine<ConsentContext, {
|
|
|
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-BFPZiliY.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-ujAUlvvI.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-0D4BXbz4.esm.js → deepsightCaptureConfig-D1WNC7ov.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-D-w3MTlu.esm.js";
|
|
2
|
+
import "./trueSight-CsZ2oUmq.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-D-w3MTlu.esm.js";
|
|
3
|
+
import { t as SDK_VERSION } from "./sdkVersion-B0ced_Us.esm.js";
|
|
4
|
+
import "./trueSight-CsZ2oUmq.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-CZEZQYGA.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-B6zYrMwf.esm.js → desktopCameraElection-BNOR50hV.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-D-w3MTlu.esm.js";
|
|
7
|
+
import "./trueSight-CsZ2oUmq.esm.js";
|
|
8
|
+
import { m as getFeatureGate } from "./feature-management-DZnh0MXp.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-D1WNC7ov.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-sJWgqtUy.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-o9g3hUPs.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" | "initCamera" | "tutorial" | "capturing" | "preview" | "failure" | "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-DQ8gDmvG.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-CJQeyWcQ.esm.js";
|
|
2
|
+
import { t as createDynamicFormsManager } from "./dynamicFormsManager-CaB8kw-z.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-CJQeyWcQ.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-CxEbUgA2.esm.js → dynamicFormsStateMachine-CJQeyWcQ.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-DQ8gDmvG.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,8 +1,8 @@
|
|
|
1
1
|
import "./xstate.cjs-D6Ur0X1F.js";
|
|
2
2
|
import { t as AddressSuggestion } from "./types-D6Q1D1kx.js";
|
|
3
|
-
import { i as FlowModuleConfig } from "./types-
|
|
4
|
-
import { a as EkybValidationError, n as EkybCountry, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-
|
|
5
|
-
import { n as EkybState, o as ekybMachine, r as createEkybManager, t as EkybManager } from "./ekybManager-
|
|
3
|
+
import { i as FlowModuleConfig } from "./types-ujAUlvvI.js";
|
|
4
|
+
import { a as EkybValidationError, n as EkybCountry, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-D4_C4-vg.js";
|
|
5
|
+
import { n as EkybState, o as ekybMachine, r as createEkybManager, t as EkybManager } from "./ekybManager-XpAF7sBY.js";
|
|
6
6
|
//#region src/modules/ekyb/ekybServices.d.ts
|
|
7
7
|
type EkybFlowConfig = FlowModuleConfig['EKYB'];
|
|
8
8
|
//#endregion
|
package/dist/ekyb.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as isSupportedCountry, l as ALL_COUNTRIES, p as SUPPORTED_COUNTRIES, s as toEkybConfig, u as DEV_ONLY_COUNTRIES } from "./ekybUtils-
|
|
2
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
3
|
-
import { t as createEkybManager } from "./ekybManager-
|
|
1
|
+
import { _ as isSupportedCountry, l as ALL_COUNTRIES, p as SUPPORTED_COUNTRIES, s as toEkybConfig, u as DEV_ONLY_COUNTRIES } from "./ekybUtils-ru8kQWEQ.esm.js";
|
|
2
|
+
import { t as ekybMachine } from "./ekybStateMachine-99Vi0LF2.esm.js";
|
|
3
|
+
import { t as createEkybManager } from "./ekybManager-DPPLK340.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-99Vi0LF2.esm.js";
|
|
7
7
|
//#region src/modules/ekyb/ekybActor.ts
|
|
8
8
|
/**
|
|
9
9
|
* Creates and starts an eKYB 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 { i as EkybFormValues, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-
|
|
5
|
+
import { i as EkybFormValues, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-D4_C4-vg.js";
|
|
6
6
|
//#region src/modules/ekyb/ekybStateMachine.d.ts
|
|
7
7
|
declare const ekybMachine: any;
|
|
8
8
|
type EkybMachine = typeof ekybMachine;
|
|
@@ -1,12 +1,12 @@
|
|
|
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-CmTOlv-a.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 { _ as isSupportedCountry, a as requiresAddressValidation, c as ADDRESS_FIELDS, d as FIELD_NAME_MAPPING, f as FIELD_ORDER, g as
|
|
5
|
+
import { _ as isSupportedCountry, a as requiresAddressValidation, c as ADDRESS_FIELDS, d as FIELD_NAME_MAPPING, f as FIELD_ORDER, g as collectsUbos, 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-ru8kQWEQ.esm.js";
|
|
6
6
|
import { t as usStateOptions } from "./usStates-CwOQ2kAx.esm.js";
|
|
7
7
|
import { t as validateCNPJ } from "./cnpj-CVq3vL39.esm.js";
|
|
8
8
|
import { n as requiresCnpjValidation } from "./cnpj-D5cxwIe-.esm.js";
|
|
9
|
-
import { a as getPostalCodeErrorKey, c as validatePostalCode, d as getStreetLevelErrorForSuggestion, f as keepSuggestionInOptions, i as formatPostalCode, l as STREET_LEVEL_REQUIRED_ERROR, o as getPostalCodeErrorParams, r as isFormDefinitionsEnabled, s as getPostalCodeMaxLength, t as debounceSearchActor, u as fillFromSuggestion } from "./addressSearch-
|
|
9
|
+
import { a as getPostalCodeErrorKey, c as validatePostalCode, d as getStreetLevelErrorForSuggestion, f as keepSuggestionInOptions, i as formatPostalCode, l as STREET_LEVEL_REQUIRED_ERROR, o as getPostalCodeErrorParams, r as isFormDefinitionsEnabled, s as getPostalCodeMaxLength, t as debounceSearchActor, u as fillFromSuggestion } from "./addressSearch-BJ711RHG.esm.js";
|
|
10
10
|
import { n as checkSupport, r as DYNAMIC_REQUIRED_KEY, t as resolveForm } from "./resolveForm-DaaQSVWp.esm.js";
|
|
11
11
|
import { n as matchesCharTemplate, t as createBundledDefinitionSource } from "./definitionSource-B9WTvQb9.esm.js";
|
|
12
12
|
//#region src/modules/ekyb/ekybValidators.ts
|
|
@@ -151,6 +151,89 @@ function validateEkybUboField(ubos, fieldKey) {
|
|
|
151
151
|
//#endregion
|
|
152
152
|
//#region ../form-definitions/generated/ekyb.ts
|
|
153
153
|
const EKYB_DEFINITIONS = {
|
|
154
|
+
"ekyb/AR": {
|
|
155
|
+
schemaVersion: 1,
|
|
156
|
+
vocabulary: "1.0",
|
|
157
|
+
id: "ekyb/AR",
|
|
158
|
+
module: "ekyb",
|
|
159
|
+
country: "AR",
|
|
160
|
+
fields: [
|
|
161
|
+
{
|
|
162
|
+
name: "businessName",
|
|
163
|
+
kind: "text",
|
|
164
|
+
group: "businessName",
|
|
165
|
+
required: true,
|
|
166
|
+
label: { key: "ekyb.businessName" },
|
|
167
|
+
input: { autofill: "organization" }
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
name: "taxId",
|
|
171
|
+
kind: "text",
|
|
172
|
+
group: "taxId",
|
|
173
|
+
required: true,
|
|
174
|
+
label: { key: "ekyb.taxId" },
|
|
175
|
+
rules: [{
|
|
176
|
+
id: "charTemplate",
|
|
177
|
+
params: { templates: ["99999999999", "99-99999999-9"] }
|
|
178
|
+
}]
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
name: "street",
|
|
182
|
+
kind: "text",
|
|
183
|
+
group: "address",
|
|
184
|
+
required: true,
|
|
185
|
+
widget: "addressSearch",
|
|
186
|
+
label: { key: "ekyb.street" },
|
|
187
|
+
input: { autofill: "addressLine1" }
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
name: "houseNo",
|
|
191
|
+
kind: "text",
|
|
192
|
+
group: "address",
|
|
193
|
+
required: true,
|
|
194
|
+
label: { key: "ekyb.houseNo" }
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: "addressLine2",
|
|
198
|
+
kind: "text",
|
|
199
|
+
group: "address",
|
|
200
|
+
label: { key: "ekyb.addressLine2" },
|
|
201
|
+
input: { autofill: "addressLine2" }
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
name: "city",
|
|
205
|
+
kind: "text",
|
|
206
|
+
group: "address",
|
|
207
|
+
required: true,
|
|
208
|
+
label: { key: "ekyb.city" },
|
|
209
|
+
input: { autofill: "addressLevel2" }
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
name: "state",
|
|
213
|
+
kind: "text",
|
|
214
|
+
group: "address",
|
|
215
|
+
required: true,
|
|
216
|
+
label: { key: "ekyb.state" },
|
|
217
|
+
input: { autofill: "addressLevel1" }
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
name: "postalCode",
|
|
221
|
+
kind: "text",
|
|
222
|
+
group: "address",
|
|
223
|
+
required: true,
|
|
224
|
+
label: { key: "ekyb.postalCode" },
|
|
225
|
+
input: {
|
|
226
|
+
maxLength: 8,
|
|
227
|
+
autofill: "postalCode"
|
|
228
|
+
},
|
|
229
|
+
rules: [{ id: "postalCodeFormat" }]
|
|
230
|
+
}
|
|
231
|
+
],
|
|
232
|
+
submit: {
|
|
233
|
+
static: { plugins: ["ekyb"] },
|
|
234
|
+
context: { country: "country" }
|
|
235
|
+
}
|
|
236
|
+
},
|
|
154
237
|
"ekyb/BR": {
|
|
155
238
|
schemaVersion: 1,
|
|
156
239
|
vocabulary: "1.0",
|
|
@@ -1431,7 +1514,6 @@ const EKYB_DEFINITIONS = {
|
|
|
1431
1514
|
id: "ekyb/PE",
|
|
1432
1515
|
module: "ekyb",
|
|
1433
1516
|
country: "PE",
|
|
1434
|
-
availableIn: ["development", "staging"],
|
|
1435
1517
|
fields: [
|
|
1436
1518
|
{
|
|
1437
1519
|
name: "businessName",
|
|
@@ -1809,7 +1891,7 @@ function buildEkybForm(config, verificationFields, country, useDefinitions) {
|
|
|
1809
1891
|
fields: projectEkybFields(form, country),
|
|
1810
1892
|
hasUbos: hasUboCollection(form)
|
|
1811
1893
|
};
|
|
1812
|
-
const hasUbos = config.checkUniqueBeneficialOwner !== false && verificationFields.includes("ubos-user_input") &&
|
|
1894
|
+
const hasUbos = config.checkUniqueBeneficialOwner !== false && verificationFields.includes("ubos-user_input") && collectsUbos(country);
|
|
1813
1895
|
return {
|
|
1814
1896
|
fields: buildEkybFields(verificationFields, country, hasUbos),
|
|
1815
1897
|
hasUbos
|
|
@@ -5,6 +5,7 @@ import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
|
|
|
5
5
|
* Sorted alphabetically by display name.
|
|
6
6
|
*/
|
|
7
7
|
const SUPPORTED_COUNTRIES = [
|
|
8
|
+
"AR",
|
|
8
9
|
"BR",
|
|
9
10
|
"CN",
|
|
10
11
|
"FR",
|
|
@@ -12,6 +13,7 @@ const SUPPORTED_COUNTRIES = [
|
|
|
12
13
|
"IL",
|
|
13
14
|
"IT",
|
|
14
15
|
"MX",
|
|
16
|
+
"PE",
|
|
15
17
|
"ES",
|
|
16
18
|
"GB",
|
|
17
19
|
"US"
|
|
@@ -23,8 +25,7 @@ const DEV_ONLY_COUNTRIES = [
|
|
|
23
25
|
"CM",
|
|
24
26
|
"CO",
|
|
25
27
|
"KE",
|
|
26
|
-
"NG"
|
|
27
|
-
"PE"
|
|
28
|
+
"NG"
|
|
28
29
|
];
|
|
29
30
|
/**
|
|
30
31
|
* Union of all recognized country codes (prod + dev).
|
|
@@ -78,17 +79,21 @@ const OPTIONAL_FIELDS_BY_COUNTRY = {
|
|
|
78
79
|
CO: ["postalCode"],
|
|
79
80
|
PE: ["postalCode"]
|
|
80
81
|
};
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
82
|
+
const UBO_UNSUPPORTED_COUNTRIES_SET = /* @__PURE__ */ new Set([
|
|
83
|
+
"MX",
|
|
84
|
+
"PE",
|
|
85
|
+
"AR"
|
|
86
|
+
]);
|
|
87
|
+
function collectsUbos(country) {
|
|
88
|
+
return !UBO_UNSUPPORTED_COUNTRIES_SET.has(country);
|
|
89
|
+
}
|
|
87
90
|
/**
|
|
88
91
|
* The format rules on a country's tax ID, beyond the CNPJ check on Brazil's.
|
|
89
92
|
* Colombia: the 9-digit NIT, with or without the dots, and with or without
|
|
90
93
|
* the check digit (DV). The backend reduces it to the 9 digits.
|
|
91
94
|
* Peru: the 11-digit RUC, such as 20100047218.
|
|
95
|
+
* Argentina: the 11-digit CUIT, with or without the hyphens
|
|
96
|
+
* (30703088534 or 30-70308853-4). The backend removes the hyphens.
|
|
92
97
|
*/
|
|
93
98
|
const TAX_ID_RULES_BY_COUNTRY = {
|
|
94
99
|
CO: [{
|
|
@@ -104,6 +109,10 @@ const TAX_ID_RULES_BY_COUNTRY = {
|
|
|
104
109
|
PE: [{
|
|
105
110
|
type: "charTemplate",
|
|
106
111
|
templates: ["99999999999"]
|
|
112
|
+
}],
|
|
113
|
+
AR: [{
|
|
114
|
+
type: "charTemplate",
|
|
115
|
+
templates: ["99999999999", "99-99999999-9"]
|
|
107
116
|
}]
|
|
108
117
|
};
|
|
109
118
|
const UBO_FIELD_LABELS = {
|
|
@@ -187,4 +196,4 @@ function requiresAddressValidation(countryCode) {
|
|
|
187
196
|
return !ADDRESS_FULLY_OPTIONAL_COUNTRIES.includes(countryCode);
|
|
188
197
|
}
|
|
189
198
|
//#endregion
|
|
190
|
-
export { isSupportedCountry as _, requiresAddressValidation as a, ADDRESS_FIELDS as c, FIELD_NAME_MAPPING as d, FIELD_ORDER as f,
|
|
199
|
+
export { isSupportedCountry as _, requiresAddressValidation as a, ADDRESS_FIELDS as c, FIELD_NAME_MAPPING as d, FIELD_ORDER as f, collectsUbos as g, UBO_FIELD_LABELS as h, isFormFieldEntry as i, ALL_COUNTRIES as l, TAX_ID_RULES_BY_COUNTRY as m, hasAtLeastOneAddressField as n, sortModulesByOrder as o, SUPPORTED_COUNTRIES as p, isFieldOptional as r, toEkybConfig as s, ekybUtils_exports as t, DEV_ONLY_COUNTRIES as u };
|
package/dist/ekyc-prefill.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as EkycPrefillFieldDef, f as EkycPrefillValues, i as EkycPrefillErrorKind, l as EkycPrefillModuleConfig, n as EkycPrefillConfigField, o as EkycPrefillFieldError, s as EkycPrefillFieldErrors, t as EkycPrefillConfig, u as EkycPrefillServedField } from "./types-g3NuVCT9.js";
|
|
2
|
-
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-
|
|
2
|
+
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-Di6aMx68.js";
|
|
3
3
|
//#region src/modules/ekyc-prefill/ekycPrefillConfig.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Normalizes the served `EKYC_PREFILL` configuration. Idempotent, so a
|
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-CbAtTM0d.esm.js";
|
|
2
|
+
import { t as createEkycPrefillManager } from "./ekycPrefillManager-BATHE-ky.esm.js";
|
|
3
3
|
export { createEkycPrefillManager, ekycPrefillMachine, toEkycPrefillConfig };
|
package/dist/ekyc.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { c as EkycValidationErrors, d as RetiredSource, i as EkycFieldDisplayMode, n as EkycDisplayModes, o as EkycModuleConfig, s as EkycValidationError, t as EkycConfig, u as KnownSource } from "./types-B8KMmCCy.js";
|
|
1
2
|
import { t as AddressSuggestion } from "./types-D6Q1D1kx.js";
|
|
2
|
-
import {
|
|
3
|
-
import { a as EkycStep, n as EkycState, r as createEkycManager, s as ekycMachine, t as EkycManager } from "./ekycManager-mv2rWxc4.js";
|
|
3
|
+
import { a as EkycStep, n as EkycState, r as createEkycManager, s as ekycMachine, t as EkycManager } from "./ekycManager-P1jYeS8s.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`.
|
|
@@ -19,4 +19,4 @@ import { a as EkycStep, n as EkycState, r as createEkycManager, s as ekycMachine
|
|
|
19
19
|
*/
|
|
20
20
|
declare function toEkycConfig(config: Partial<EkycModuleConfig> & Partial<EkycConfig>): EkycConfig;
|
|
21
21
|
//#endregion
|
|
22
|
-
export { type AddressSuggestion, type EkycConfig, type EkycDisplayModes, type EkycFieldDisplayMode, type EkycManager, type EkycModuleConfig, type EkycState, type EkycStep, type EkycValidationError, type EkycValidationErrors, createEkycManager, ekycMachine, toEkycConfig };
|
|
22
|
+
export { type AddressSuggestion, type EkycConfig, type EkycDisplayModes, type EkycFieldDisplayMode, type EkycManager, type EkycModuleConfig, type EkycState, type EkycStep, type EkycValidationError, type EkycValidationErrors, type KnownSource, type RetiredSource, createEkycManager, ekycMachine, toEkycConfig };
|
package/dist/ekyc.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { d as toEkycConfig } from "./ekycUtils-BnTyeA-_.esm.js";
|
|
2
|
-
import { t as ekycMachine } from "./ekycStateMachine-
|
|
3
|
-
import { t as createEkycManager } from "./ekycManager-
|
|
2
|
+
import { t as ekycMachine } from "./ekycStateMachine-lo3GvfpV.esm.js";
|
|
3
|
+
import { t as createEkycManager } from "./ekycManager-Bt0FZlZO.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-lo3GvfpV.esm.js";
|
|
7
7
|
//#region src/modules/ekyc/ekycActor.ts
|
|
8
8
|
/**
|
|
9
9
|
* Creates and starts an eKYC actor.
|
|
@@ -1,8 +1,8 @@
|
|
|
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 { a as EkycFormValues, c as EkycValidationErrors, r as EkycFieldDef, t as EkycConfig } from "./types-B8KMmCCy.js";
|
|
4
5
|
import { t as AddressSuggestion } from "./types-D6Q1D1kx.js";
|
|
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-CbAtTM0d.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 = {}) {
|
|
@@ -44,6 +44,10 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
|
44
44
|
id: string | undefined;
|
|
45
45
|
};
|
|
46
46
|
}>, Values<{
|
|
47
|
+
clearError: {
|
|
48
|
+
type: "clearError";
|
|
49
|
+
params: NonReducibleUnknown;
|
|
50
|
+
};
|
|
47
51
|
applyForm: {
|
|
48
52
|
type: "applyForm";
|
|
49
53
|
params: NonReducibleUnknown;
|
|
@@ -76,10 +80,6 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
|
76
80
|
type: "setSubmitError";
|
|
77
81
|
params: NonReducibleUnknown;
|
|
78
82
|
};
|
|
79
|
-
clearError: {
|
|
80
|
-
type: "clearError";
|
|
81
|
-
params: NonReducibleUnknown;
|
|
82
|
-
};
|
|
83
83
|
}>, Values<{
|
|
84
84
|
isValid: {
|
|
85
85
|
type: "isValid";
|
package/dist/{ekycPrefillStateMachine-CG1IzJPT.esm.js → ekycPrefillStateMachine-CbAtTM0d.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
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-DQ8gDmvG.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";
|