@incodetech/core 0.0.0-dev-20260423-427a341 → 0.0.0-dev-20260423-672ea74
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/{OpenViduRecordingProvider-3SvbmWdi.esm.js → OpenViduRecordingProvider-7PqRexCU.esm.js} +1 -1
- package/dist/{WasmUtilProvider-DmbBSMl1.esm.js → WasmUtilProvider-3sS7TzsG.esm.js} +1 -1
- package/dist/{addressSearch-BvpzLWr4.esm.js → addressSearch-CMO_-Isa.esm.js} +4 -4
- package/dist/{ae-signature-21vUGDha.esm.js → ae-signature-C07fpdHw.esm.js} +1 -1
- package/dist/ae-signature.d.ts +3 -3
- package/dist/ae-signature.esm.js +5 -5
- package/dist/antifraud.d.ts +1 -1
- package/dist/antifraud.esm.js +4 -4
- package/dist/{antifraudStateMachine-CIa-IPvP.esm.js → antifraudStateMachine-BOUj16Hj.esm.js} +3 -3
- package/dist/authentication.d.ts +11 -11
- package/dist/authentication.esm.js +22 -22
- package/dist/{authenticationManager-Bv9qL5fe.d.ts → authenticationManager-CGn-1c-V.d.ts} +2 -2
- package/dist/{authenticationManager-WLXkr-r0.esm.js → authenticationManager-URLydvU9.esm.js} +6 -6
- package/dist/{authenticationStateMachine-BifJqMei.esm.js → authenticationStateMachine-D8N6ERZa.esm.js} +6 -6
- package/dist/{backCameraStream-DSwtYHuO.esm.js → backCameraStream-CrljCJ-Q.esm.js} +3 -3
- package/dist/camera.d.ts +1 -1
- package/dist/camera.esm.js +3 -3
- package/dist/consent.d.ts +55 -55
- package/dist/consent.esm.js +4 -4
- package/dist/{consentStateMachine-DqiR30gw.esm.js → consentStateMachine-Fa4KYzzn.esm.js} +3 -3
- package/dist/cpf-DEcHUluo.esm.js +38 -0
- package/dist/cross-document-data-match.d.ts +1 -1
- package/dist/cross-document-data-match.esm.js +4 -4
- package/dist/curp-validation.d.ts +5 -5
- package/dist/curp-validation.esm.js +4 -4
- package/dist/{curpValidationStateMachine-Bp-V13CB.esm.js → curpValidationStateMachine-oXdccErv.esm.js} +3 -3
- package/dist/custom-fields.d.ts +2 -2
- package/dist/custom-fields.esm.js +3 -3
- package/dist/custom-watchlist.d.ts +1 -1
- package/dist/custom-watchlist.esm.js +4 -4
- package/dist/{deepsightLoader-BTrehKGp.esm.js → deepsightLoader-QMFaZ2jE.esm.js} +10 -10
- package/dist/{deepsightService-BknZgccc.d.ts → deepsightService-BAbwxVdZ.d.ts} +2 -2
- package/dist/{deepsightService-B0Z-9gmQ.esm.js → deepsightService-BFLmC3ua.esm.js} +5 -5
- package/dist/device.esm.js +3 -3
- package/dist/document-capture.d.ts +70 -70
- package/dist/document-capture.esm.js +8 -8
- package/dist/document-upload.d.ts +44 -44
- package/dist/document-upload.esm.js +7 -7
- package/dist/{documentCaptureStateMachine-CtMhD27q.esm.js → documentCaptureStateMachine-B8bi2Kh4.esm.js} +5 -5
- package/dist/ekyb.d.ts +3 -3
- package/dist/ekyb.esm.js +10 -10
- package/dist/{ekybStateMachine-Bn-pLTcp.esm.js → ekybStateMachine-DruS8yRg.esm.js} +5 -5
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +7 -6
- package/dist/{ekycStateMachine-Nmn0Alq9.esm.js → ekycStateMachine-U3ivS4-5.esm.js} +5 -38
- package/dist/electronic-signature.d.ts +3 -3
- package/dist/electronic-signature.esm.js +4 -4
- package/dist/{electronicSignatureManager-DAkg8MF6.esm.js → electronicSignatureManager-CWJyes3f.esm.js} +3 -3
- package/dist/email.d.ts +3 -3
- package/dist/email.esm.js +6 -6
- package/dist/{emailManager-q2qVoNbM.d.ts → emailManager-CCrXrAU3.d.ts} +2 -2
- package/dist/{emailManager-o6B6AYuE.esm.js → emailManager-y8HVFngo.esm.js} +3 -3
- package/dist/{emailStateMachine-B5M_HlVm.esm.js → emailStateMachine-bLpj4LRr.esm.js} +4 -4
- package/dist/{events-Deg_qfet.esm.js → events-BYuumPiB.esm.js} +6 -2
- package/dist/events.d.ts +1 -0
- package/dist/events.esm.js +2 -2
- package/dist/extensibility.d.ts +15 -15
- package/dist/extensibility.esm.js +33 -33
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +4 -4
- package/dist/{faceCaptureManagerFactory-Bq_skXK4.esm.js → faceCaptureManagerFactory-0bTuXnNo.esm.js} +2 -2
- package/dist/{faceCaptureManagerFactory-DAQqd0EL.d.ts → faceCaptureManagerFactory-B9SCeUbN.d.ts} +8 -8
- package/dist/{faceCaptureSetup-C9RqcwR9.esm.js → faceCaptureSetup-BLsm9VU9.esm.js} +4 -4
- package/dist/{faceMatchStateMachine-DCh79GWp.esm.js → faceMatchStateMachine-CB5JYxiV.esm.js} +3 -3
- package/dist/flow.d.ts +8 -8
- package/dist/flow.esm.js +9 -9
- package/dist/{flowCompletionService-BnZC_DV0.esm.js → flowCompletionService-B0ua9_Oo.esm.js} +2 -2
- package/dist/{flowServices-s0CiH0WO.esm.js → flowServices-ngHx2Tal.esm.js} +3 -3
- package/dist/geolocation.d.ts +2 -2
- package/dist/geolocation.esm.js +5 -5
- package/dist/{geolocationStateMachine-CxQCX2NJ.esm.js → geolocationStateMachine-Cc2eFVZU.esm.js} +4 -4
- package/dist/{getDeviceClass-DStKSj3Q.esm.js → getDeviceClass-B_Y-Y-zj.esm.js} +1 -1
- package/dist/government-validation.d.ts +2 -2
- package/dist/government-validation.esm.js +5 -5
- package/dist/{governmentValidationStateMachine-L7nwlJPw.esm.js → governmentValidationStateMachine-wvZ5ysEM.esm.js} +4 -4
- package/dist/home.d.ts +14 -14
- package/dist/home.esm.js +3 -3
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.d.ts +627 -0
- package/dist/id-ocr.esm.js +459 -0
- package/dist/id.d.ts +10 -10
- package/dist/id.esm.js +22 -22
- package/dist/{idCaptureManager-C2L4R8rT.d.ts → idCaptureManager-B_dajBGr.d.ts} +7 -7
- package/dist/{idCaptureManager-Cuq1R8jW.esm.js → idCaptureManager-DvJEDPBW.esm.js} +4 -4
- package/dist/{idCaptureStateMachine-B1eBofuq.esm.js → idCaptureStateMachine-CgddydGJ.esm.js} +16 -16
- package/dist/identity-reuse.d.ts +49 -49
- package/dist/identity-reuse.esm.js +3 -3
- package/dist/{index-DMN6Upfk.d.ts → index-BbYUSiBn.d.ts} +120 -120
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +8 -8
- package/dist/{lib-DP0jsq7O.esm.js → lib-Db1XxJuS.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +52 -52
- package/dist/mandatory-consent.esm.js +4 -4
- package/dist/{mandatoryConsentStateMachine-Bjqy6QyQ.esm.js → mandatoryConsentStateMachine-0bZm4vNr.esm.js} +3 -3
- package/dist/openviduLazy-ClEZ-Z5M.esm.js +3 -0
- package/dist/{openviduLazy-CYviBULf.esm.js → openviduLazy-sruV5sxi.esm.js} +2 -2
- package/dist/{permissionServices-BJJE4sgW.esm.js → permissionServices-BdE8_Evq.esm.js} +2 -2
- package/dist/phone.d.ts +3 -3
- package/dist/phone.esm.js +6 -6
- package/dist/{phoneManager-C4QrFxRg.esm.js → phoneManager-CfoEpjeM.esm.js} +3 -3
- package/dist/{phoneManager-DBwE-qB0.d.ts → phoneManager-Da8QkPv7.d.ts} +2 -2
- package/dist/{phoneStateMachine-CMbJx57_.esm.js → phoneStateMachine-u-A2hOxu.esm.js} +4 -4
- package/dist/{qe-signature-D7Ou3WtG.esm.js → qe-signature-DhBKlGUH.esm.js} +1 -1
- package/dist/qe-signature.d.ts +3 -3
- package/dist/qe-signature.esm.js +5 -5
- package/dist/{recordingService-CtcIvA3E.esm.js → recordingService-CpbeUNqo.esm.js} +13 -13
- package/dist/redirect-to-mobile.d.ts +2 -2
- package/dist/redirect-to-mobile.esm.js +5 -5
- package/dist/{redirectToMobileStateMachine-CtWjarUj.esm.js → redirectToMobileStateMachine-BMXJRSAC.esm.js} +4 -4
- package/dist/{runChildModule-DM84wxzE.esm.js → runChildModule-DHxT1RV0.esm.js} +1 -1
- package/dist/selfie.d.ts +11 -11
- package/dist/selfie.esm.js +22 -22
- package/dist/{selfieManager-CoyIn3Zl.esm.js → selfieManager-CkmC58-2.esm.js} +6 -6
- package/dist/{selfieManager-Cfp4MKMu.d.ts → selfieManager-dLehZvQm.d.ts} +2 -2
- package/dist/{selfieStateMachine-CsI9YnHz.esm.js → selfieStateMachine-BusOHMBN.esm.js} +3 -3
- package/dist/{session-CrOl1xma.esm.js → session-CEsW15cJ.esm.js} +4 -4
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +6 -6
- package/dist/{setup-BFXhW7cP.esm.js → setup-BvlIJVhZ.esm.js} +5 -5
- package/dist/{setup-VJbRmBIU.d.ts → setup-v-TAsAN2.d.ts} +1 -1
- package/dist/signature.d.ts +2 -2
- package/dist/signature.esm.js +4 -4
- package/dist/{signatureStateMachine-yaoE2OEY.esm.js → signatureStateMachine-D6E5ZdHV.esm.js} +3 -3
- package/dist/{stats-BEwRvZG4.esm.js → stats-DE05K1o9.esm.js} +1 -1
- package/dist/stats.esm.js +2 -2
- package/dist/{types-CgZVig-j.d.ts → types-BelKmTqU.d.ts} +5 -1
- package/dist/{types-BINKuP3l.d.ts → types-BxjVn8Ry.d.ts} +1 -1
- package/dist/{types-BmHAVvm0.d.ts → types-DZ7Qw6Yc.d.ts} +1 -1
- package/dist/wasm.d.ts +2 -2
- package/dist/wasm.esm.js +8 -8
- package/dist/watchlist-for-business.d.ts +1 -1
- package/dist/watchlist-for-business.esm.js +3 -3
- package/dist/watchlist.d.ts +1 -1
- package/dist/watchlist.esm.js +4 -4
- package/dist/{watchlistServices-D2I0AZb-.esm.js → watchlistServices-BW1w845W.esm.js} +2 -2
- package/dist/workflow.d.ts +116 -116
- package/dist/workflow.esm.js +45 -44
- package/package.json +5 -1
- package/dist/openviduLazy-7pgMhjPB.esm.js +0 -3
- /package/dist/{Actor-B-9T-DlO.d.ts → Actor-gwS4PQSi.d.ts} +0 -0
- /package/dist/{BaseWasmProvider-Cf3MNlAN.esm.js → BaseWasmProvider-DsxKeFBt.esm.js} +0 -0
- /package/dist/{BrowserStorageProvider-Drw72wvG.esm.js → BrowserStorageProvider-D99-O_Kf.esm.js} +0 -0
- /package/dist/{BrowserTimerProvider-Dav3_fFy.esm.js → BrowserTimerProvider-Dl6dq0R8.esm.js} +0 -0
- /package/dist/{ITimerCapability-BriAkEyj.esm.js → ITimerCapability-DUFfKzTs.esm.js} +0 -0
- /package/dist/{IpifyProvider-j8lI27Fq.esm.js → IpifyProvider-BRMpdf22.esm.js} +0 -0
- /package/dist/{Manager-BCd4NBhe.d.ts → Manager-BmmucBrC.d.ts} +0 -0
- /package/dist/{MotionSensorProvider-DYYBm_bL.esm.js → MotionSensorProvider-Qfs1LN2o.esm.js} +0 -0
- /package/dist/{StateMachine-BNiyEj7J.d.ts → StateMachine-B1c7OspS.d.ts} +0 -0
- /package/dist/{api-CzVamIBG.esm.js → api-Bv7xXuMw.esm.js} +0 -0
- /package/dist/{browserSimulation-C4a2KVIY.esm.js → browserSimulation-CB1iKoSy.esm.js} +0 -0
- /package/dist/{camera-DaD3X_7m.esm.js → camera-BEKg9OFz.esm.js} +0 -0
- /package/dist/{camera-BZfRhPh2.d.ts → camera-CXfeCsaz.d.ts} +0 -0
- /package/dist/{chunk-DZf7laLq.esm.js → chunk-BPmmK_1R.esm.js} +0 -0
- /package/dist/{displayErrors-YTUUYe7G.d.ts → displayErrors-DT-jBLuo.d.ts} +0 -0
- /package/dist/{flowCompletionService-MFzwlktR.d.ts → flowCompletionService-BxOJeebo.d.ts} +0 -0
- /package/dist/{getBrowser-DxB_n8-W.esm.js → getBrowser-COVIk8a4.esm.js} +0 -0
- /package/dist/{platform-CTBj7PrA.esm.js → platform-bAk6j4kV.esm.js} +0 -0
- /package/dist/{types-CZwSG43_.d.ts → types-nURQ3pMv.d.ts} +0 -0
- /package/dist/{warmup-BR9x_9iz.d.ts → warmup-SnxLgQsT.d.ts} +0 -0
- /package/dist/{xstate.esm-BXNheqIe.esm.js → xstate.esm-DGcAhoQP.esm.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider-
|
|
1
|
+
import { r as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider-DsxKeFBt.esm.js";
|
|
2
2
|
|
|
3
3
|
//#region ../infra/src/providers/wasm/WasmUtilProvider.ts
|
|
4
4
|
var WasmUtilProvider = class WasmUtilProvider extends BaseWasmProvider {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { _ as endpoints } from "./events-
|
|
3
|
-
import { r as fromCallback } from "./xstate.esm-
|
|
4
|
-
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-
|
|
1
|
+
import { t as api } from "./api-Bv7xXuMw.esm.js";
|
|
2
|
+
import { _ as endpoints } from "./events-BYuumPiB.esm.js";
|
|
3
|
+
import { r as fromCallback } from "./xstate.esm-DGcAhoQP.esm.js";
|
|
4
|
+
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-Dl6dq0R8.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/shared/usStates.ts
|
|
7
7
|
const usStates = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createElectronicSignatureManager } from "./electronicSignatureManager-
|
|
1
|
+
import { t as createElectronicSignatureManager } from "./electronicSignatureManager-CWJyes3f.esm.js";
|
|
2
2
|
|
|
3
3
|
//#region src/modules/ae-signature/index.ts
|
|
4
4
|
function createAeSignatureManager(options) {
|
package/dist/ae-signature.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import "./Actor-
|
|
3
|
-
import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-
|
|
1
|
+
import { t as Manager } from "./Manager-BmmucBrC.js";
|
|
2
|
+
import "./Actor-gwS4PQSi.js";
|
|
3
|
+
import { a as AE_CONSENT_KEYS, c as ConsentKey, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-BbYUSiBn.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/ae-signature/index.d.ts
|
|
6
6
|
|
package/dist/ae-signature.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import "./events-
|
|
3
|
-
import "./xstate.esm-
|
|
4
|
-
import { a as areAllConsented, n as electronicSignatureMachine, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks } from "./electronicSignatureManager-
|
|
5
|
-
import { t as createAeSignatureManager } from "./ae-signature-
|
|
1
|
+
import "./api-Bv7xXuMw.esm.js";
|
|
2
|
+
import "./events-BYuumPiB.esm.js";
|
|
3
|
+
import "./xstate.esm-DGcAhoQP.esm.js";
|
|
4
|
+
import { a as areAllConsented, n as electronicSignatureMachine, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks } from "./electronicSignatureManager-CWJyes3f.esm.js";
|
|
5
|
+
import { t as createAeSignatureManager } from "./ae-signature-C07fpdHw.esm.js";
|
|
6
6
|
|
|
7
7
|
export { AE_CONSENT_KEYS, electronicSignatureMachine as aeSignatureMachine, areAllConsented, createAeSignatureManager, getDefaultConsentChecks };
|
package/dist/antifraud.d.ts
CHANGED
package/dist/antifraud.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
3
|
-
import { a as createActor, o as createManager } from "./xstate.esm-
|
|
4
|
-
import { t as antifraudMachine } from "./antifraudStateMachine-
|
|
1
|
+
import "./api-Bv7xXuMw.esm.js";
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-BYuumPiB.esm.js";
|
|
3
|
+
import { a as createActor, o as createManager } from "./xstate.esm-DGcAhoQP.esm.js";
|
|
4
|
+
import { t as antifraudMachine } from "./antifraudStateMachine-BOUj16Hj.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/antifraud/antifraudActor.ts
|
|
7
7
|
function createAntifraudActor() {
|
package/dist/{antifraudStateMachine-CIa-IPvP.esm.js → antifraudStateMachine-BOUj16Hj.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { _ as endpoints } from "./events-
|
|
3
|
-
import { i as fromPromise, t as setup } from "./xstate.esm-
|
|
1
|
+
import { t as api } from "./api-Bv7xXuMw.esm.js";
|
|
2
|
+
import { _ as endpoints } from "./events-BYuumPiB.esm.js";
|
|
3
|
+
import { i as fromPromise, t as setup } from "./xstate.esm-DGcAhoQP.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/antifraud/antifraudServices.ts
|
|
6
6
|
async function processAntifraud(signal) {
|
package/dist/authentication.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./warmup-
|
|
2
|
-
import "./Manager-
|
|
3
|
-
import "./Actor-
|
|
4
|
-
import "./StateMachine-
|
|
5
|
-
import { _ as AuthenticationConfig, b as authenticationMachine, g as createAuthenticationActor, h as CreateAuthenticationActorOptions, m as AuthenticationActor } from "./faceCaptureManagerFactory-
|
|
6
|
-
import "./camera-
|
|
7
|
-
import "./types-
|
|
8
|
-
import "./types-
|
|
9
|
-
import "./deepsightService-
|
|
10
|
-
import "./types-
|
|
11
|
-
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-
|
|
1
|
+
import "./warmup-SnxLgQsT.js";
|
|
2
|
+
import "./Manager-BmmucBrC.js";
|
|
3
|
+
import "./Actor-gwS4PQSi.js";
|
|
4
|
+
import "./StateMachine-B1c7OspS.js";
|
|
5
|
+
import { _ as AuthenticationConfig, b as authenticationMachine, g as createAuthenticationActor, h as CreateAuthenticationActorOptions, m as AuthenticationActor } from "./faceCaptureManagerFactory-B9SCeUbN.js";
|
|
6
|
+
import "./camera-CXfeCsaz.js";
|
|
7
|
+
import "./types-BxjVn8Ry.js";
|
|
8
|
+
import "./types-BelKmTqU.js";
|
|
9
|
+
import "./deepsightService-BAbwxVdZ.js";
|
|
10
|
+
import "./types-nURQ3pMv.js";
|
|
11
|
+
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-CGn-1c-V.js";
|
|
12
12
|
export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import "./BaseWasmProvider-
|
|
2
|
-
import "./WasmUtilProvider-
|
|
3
|
-
import "./api-
|
|
4
|
-
import "./events-
|
|
5
|
-
import "./browserSimulation-
|
|
6
|
-
import "./xstate.esm-
|
|
7
|
-
import "./faceCaptureManagerFactory-
|
|
8
|
-
import "./BrowserStorageProvider-
|
|
9
|
-
import "./recordingService-
|
|
10
|
-
import "./deepsightService-
|
|
11
|
-
import "./permissionServices-
|
|
12
|
-
import "./camera-
|
|
13
|
-
import "./getBrowser-
|
|
14
|
-
import "./stats-
|
|
15
|
-
import "./MotionSensorProvider-
|
|
16
|
-
import "./platform-
|
|
17
|
-
import "./ITimerCapability-
|
|
18
|
-
import "./backCameraStream-
|
|
19
|
-
import "./getDeviceClass-
|
|
20
|
-
import "./faceCaptureSetup-
|
|
21
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
22
|
-
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-
|
|
1
|
+
import "./BaseWasmProvider-DsxKeFBt.esm.js";
|
|
2
|
+
import "./WasmUtilProvider-3sS7TzsG.esm.js";
|
|
3
|
+
import "./api-Bv7xXuMw.esm.js";
|
|
4
|
+
import "./events-BYuumPiB.esm.js";
|
|
5
|
+
import "./browserSimulation-CB1iKoSy.esm.js";
|
|
6
|
+
import "./xstate.esm-DGcAhoQP.esm.js";
|
|
7
|
+
import "./faceCaptureManagerFactory-0bTuXnNo.esm.js";
|
|
8
|
+
import "./BrowserStorageProvider-D99-O_Kf.esm.js";
|
|
9
|
+
import "./recordingService-CpbeUNqo.esm.js";
|
|
10
|
+
import "./deepsightService-BFLmC3ua.esm.js";
|
|
11
|
+
import "./permissionServices-BdE8_Evq.esm.js";
|
|
12
|
+
import "./camera-BEKg9OFz.esm.js";
|
|
13
|
+
import "./getBrowser-COVIk8a4.esm.js";
|
|
14
|
+
import "./stats-DE05K1o9.esm.js";
|
|
15
|
+
import "./MotionSensorProvider-Qfs1LN2o.esm.js";
|
|
16
|
+
import "./platform-bAk6j4kV.esm.js";
|
|
17
|
+
import "./ITimerCapability-DUFfKzTs.esm.js";
|
|
18
|
+
import "./backCameraStream-CrljCJ-Q.esm.js";
|
|
19
|
+
import "./getDeviceClass-B_Y-Y-zj.esm.js";
|
|
20
|
+
import "./faceCaptureSetup-BLsm9VU9.esm.js";
|
|
21
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-D8N6ERZa.esm.js";
|
|
22
|
+
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-URLydvU9.esm.js";
|
|
23
23
|
|
|
24
24
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import { h as CreateAuthenticationActorOptions, m as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager } from "./faceCaptureManagerFactory-
|
|
1
|
+
import { t as Manager } from "./Manager-BmmucBrC.js";
|
|
2
|
+
import { h as CreateAuthenticationActorOptions, m as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager } from "./faceCaptureManagerFactory-B9SCeUbN.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/authentication/authenticationManager.d.ts
|
|
5
5
|
type AuthenticationState = FaceCaptureManagerState;
|
package/dist/{authenticationManager-WLXkr-r0.esm.js → authenticationManager-URLydvU9.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
2
|
-
import { n as eventModuleNames } from "./events-
|
|
3
|
-
import { a as createActor } from "./xstate.esm-
|
|
4
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
5
|
-
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-
|
|
6
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
1
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-3sS7TzsG.esm.js";
|
|
2
|
+
import { n as eventModuleNames } from "./events-BYuumPiB.esm.js";
|
|
3
|
+
import { a as createActor } from "./xstate.esm-DGcAhoQP.esm.js";
|
|
4
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-0bTuXnNo.esm.js";
|
|
5
|
+
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-D99-O_Kf.esm.js";
|
|
6
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-D8N6ERZa.esm.js";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/authentication/authenticationActor.ts
|
|
9
9
|
function createAuthenticationActor(options) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { _ as endpoints } from "./events-
|
|
3
|
-
import { i as fromPromise, n as assign } from "./xstate.esm-
|
|
4
|
-
import { v as FACE_ERROR_CODES } from "./recordingService-
|
|
5
|
-
import { t as getDeviceClass } from "./getDeviceClass-
|
|
6
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
1
|
+
import { t as api } from "./api-Bv7xXuMw.esm.js";
|
|
2
|
+
import { _ as endpoints } from "./events-BYuumPiB.esm.js";
|
|
3
|
+
import { i as fromPromise, n as assign } from "./xstate.esm-DGcAhoQP.esm.js";
|
|
4
|
+
import { v as FACE_ERROR_CODES } from "./recordingService-CpbeUNqo.esm.js";
|
|
5
|
+
import { t as getDeviceClass } from "./getDeviceClass-B_Y-Y-zj.esm.js";
|
|
6
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-BLsm9VU9.esm.js";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
9
9
|
const AUTH_ERROR_MAP = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as stopCameraStream, n as enumerateVideoDevices, r as requestCameraAccess, t as applyTrackConstraints } from "./camera-
|
|
2
|
-
import { a as isIPhone14OrHigher, o as isSafari, r as isIOS, t as isAndroid } from "./platform-
|
|
3
|
-
import { t as sleep } from "./ITimerCapability-
|
|
1
|
+
import { i as stopCameraStream, n as enumerateVideoDevices, r as requestCameraAccess, t as applyTrackConstraints } from "./camera-BEKg9OFz.esm.js";
|
|
2
|
+
import { a as isIPhone14OrHigher, o as isSafari, r as isIOS, t as isAndroid } from "./platform-bAk6j4kV.esm.js";
|
|
3
|
+
import { t as sleep } from "./ITimerCapability-DUFfKzTs.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/internal/camera/backCameraStream.ts
|
|
6
6
|
const BACK_CAMERA_KEYWORDS = [
|
package/dist/camera.d.ts
CHANGED
package/dist/camera.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as requestPermission, t as checkPermission } from "./permissionServices-
|
|
2
|
-
import "./camera-
|
|
3
|
-
import "./MotionSensorProvider-
|
|
1
|
+
import { n as requestPermission, t as checkPermission } from "./permissionServices-BdE8_Evq.esm.js";
|
|
2
|
+
import "./camera-BEKg9OFz.esm.js";
|
|
3
|
+
import "./MotionSensorProvider-Qfs1LN2o.esm.js";
|
|
4
4
|
|
|
5
5
|
export { checkPermission as checkCameraPermission, requestPermission as requestCameraPermission };
|
package/dist/consent.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import "./Actor-
|
|
3
|
-
import * as
|
|
1
|
+
import { t as Manager } from "./Manager-BmmucBrC.js";
|
|
2
|
+
import "./Actor-gwS4PQSi.js";
|
|
3
|
+
import * as xstate0 from "xstate";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/consent/types.d.ts
|
|
6
6
|
type ConsentConfig = {
|
|
@@ -36,7 +36,7 @@ type ConsentContext = {
|
|
|
36
36
|
type ConsentInput = {
|
|
37
37
|
config: ConsentConfig;
|
|
38
38
|
};
|
|
39
|
-
declare const consentMachine:
|
|
39
|
+
declare const consentMachine: xstate0.StateMachine<ConsentContext, {
|
|
40
40
|
type: "LOAD";
|
|
41
41
|
} | {
|
|
42
42
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -48,53 +48,53 @@ declare const consentMachine: xstate186.StateMachine<ConsentContext, {
|
|
|
48
48
|
} | {
|
|
49
49
|
type: "RESET";
|
|
50
50
|
}, {
|
|
51
|
-
[x: string]:
|
|
51
|
+
[x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
52
52
|
consentId: string;
|
|
53
|
-
},
|
|
53
|
+
}, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<void, {
|
|
54
54
|
languageConsentId: string;
|
|
55
55
|
checkboxes: ConsentCheckbox[];
|
|
56
|
-
},
|
|
57
|
-
},
|
|
56
|
+
}, xstate0.EventObject>> | undefined;
|
|
57
|
+
}, xstate0.Values<{
|
|
58
58
|
fetchConsent: {
|
|
59
59
|
src: "fetchConsent";
|
|
60
|
-
logic:
|
|
60
|
+
logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
61
61
|
consentId: string;
|
|
62
|
-
},
|
|
62
|
+
}, xstate0.EventObject>;
|
|
63
63
|
id: string | undefined;
|
|
64
64
|
};
|
|
65
65
|
submitConsent: {
|
|
66
66
|
src: "submitConsent";
|
|
67
|
-
logic:
|
|
67
|
+
logic: xstate0.PromiseActorLogic<void, {
|
|
68
68
|
languageConsentId: string;
|
|
69
69
|
checkboxes: ConsentCheckbox[];
|
|
70
|
-
},
|
|
70
|
+
}, xstate0.EventObject>;
|
|
71
71
|
id: string | undefined;
|
|
72
72
|
};
|
|
73
|
-
}>,
|
|
74
|
-
setError: {
|
|
75
|
-
type: "setError";
|
|
76
|
-
params: xstate186.NonReducibleUnknown;
|
|
77
|
-
};
|
|
78
|
-
clearError: {
|
|
79
|
-
type: "clearError";
|
|
80
|
-
params: xstate186.NonReducibleUnknown;
|
|
81
|
-
};
|
|
73
|
+
}>, xstate0.Values<{
|
|
82
74
|
setConsentData: {
|
|
83
75
|
type: "setConsentData";
|
|
84
|
-
params:
|
|
76
|
+
params: xstate0.NonReducibleUnknown;
|
|
85
77
|
};
|
|
86
78
|
toggleCheckbox: {
|
|
87
79
|
type: "toggleCheckbox";
|
|
88
|
-
params:
|
|
80
|
+
params: xstate0.NonReducibleUnknown;
|
|
81
|
+
};
|
|
82
|
+
setError: {
|
|
83
|
+
type: "setError";
|
|
84
|
+
params: xstate0.NonReducibleUnknown;
|
|
85
|
+
};
|
|
86
|
+
clearError: {
|
|
87
|
+
type: "clearError";
|
|
88
|
+
params: xstate0.NonReducibleUnknown;
|
|
89
89
|
};
|
|
90
90
|
resetContext: {
|
|
91
91
|
type: "resetContext";
|
|
92
|
-
params:
|
|
92
|
+
params: xstate0.NonReducibleUnknown;
|
|
93
93
|
};
|
|
94
94
|
}>, {
|
|
95
95
|
type: "canSubmit";
|
|
96
96
|
params: unknown;
|
|
97
|
-
}, never, "error" | "idle" | "finished" | "loading" | "display" | "submitting", string, ConsentInput,
|
|
97
|
+
}, never, "error" | "idle" | "finished" | "loading" | "display" | "submitting", string, ConsentInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
|
|
98
98
|
readonly id: "consent";
|
|
99
99
|
readonly initial: "idle";
|
|
100
100
|
readonly context: ({
|
|
@@ -103,70 +103,70 @@ declare const consentMachine: xstate186.StateMachine<ConsentContext, {
|
|
|
103
103
|
spawn: {
|
|
104
104
|
<TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
|
|
105
105
|
src: "fetchConsent";
|
|
106
|
-
logic:
|
|
106
|
+
logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
107
107
|
consentId: string;
|
|
108
|
-
},
|
|
108
|
+
}, xstate0.EventObject>;
|
|
109
109
|
id: string | undefined;
|
|
110
110
|
} extends infer T ? T extends {
|
|
111
111
|
src: "fetchConsent";
|
|
112
|
-
logic:
|
|
112
|
+
logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
113
113
|
consentId: string;
|
|
114
|
-
},
|
|
114
|
+
}, xstate0.EventObject>;
|
|
115
115
|
id: string | undefined;
|
|
116
116
|
} ? T extends {
|
|
117
117
|
src: TSrc;
|
|
118
|
-
} ?
|
|
118
|
+
} ? xstate0.ConditionalRequired<[options?: ({
|
|
119
119
|
id?: T["id"] | undefined;
|
|
120
120
|
systemId?: string;
|
|
121
|
-
input?:
|
|
121
|
+
input?: xstate0.InputFrom<T["logic"]> | undefined;
|
|
122
122
|
syncSnapshot?: boolean;
|
|
123
|
-
} & { [K in
|
|
123
|
+
} & { [K in xstate0.RequiredActorOptions<T>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
124
124
|
src: "submitConsent";
|
|
125
|
-
logic:
|
|
125
|
+
logic: xstate0.PromiseActorLogic<void, {
|
|
126
126
|
languageConsentId: string;
|
|
127
127
|
checkboxes: ConsentCheckbox[];
|
|
128
|
-
},
|
|
128
|
+
}, xstate0.EventObject>;
|
|
129
129
|
id: string | undefined;
|
|
130
130
|
} extends infer T_1 ? T_1 extends {
|
|
131
131
|
src: "submitConsent";
|
|
132
|
-
logic:
|
|
132
|
+
logic: xstate0.PromiseActorLogic<void, {
|
|
133
133
|
languageConsentId: string;
|
|
134
134
|
checkboxes: ConsentCheckbox[];
|
|
135
|
-
},
|
|
135
|
+
}, xstate0.EventObject>;
|
|
136
136
|
id: string | undefined;
|
|
137
137
|
} ? T_1 extends {
|
|
138
138
|
src: TSrc;
|
|
139
|
-
} ?
|
|
139
|
+
} ? xstate0.ConditionalRequired<[options?: ({
|
|
140
140
|
id?: T_1["id"] | undefined;
|
|
141
141
|
systemId?: string;
|
|
142
|
-
input?:
|
|
142
|
+
input?: xstate0.InputFrom<T_1["logic"]> | undefined;
|
|
143
143
|
syncSnapshot?: boolean;
|
|
144
|
-
} & { [K_1 in
|
|
144
|
+
} & { [K_1 in xstate0.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T_1>>> : never : never : never)): xstate0.ActorRefFromLogic<xstate0.GetConcreteByKey<xstate0.Values<{
|
|
145
145
|
fetchConsent: {
|
|
146
146
|
src: "fetchConsent";
|
|
147
|
-
logic:
|
|
147
|
+
logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
|
|
148
148
|
consentId: string;
|
|
149
|
-
},
|
|
149
|
+
}, xstate0.EventObject>;
|
|
150
150
|
id: string | undefined;
|
|
151
151
|
};
|
|
152
152
|
submitConsent: {
|
|
153
153
|
src: "submitConsent";
|
|
154
|
-
logic:
|
|
154
|
+
logic: xstate0.PromiseActorLogic<void, {
|
|
155
155
|
languageConsentId: string;
|
|
156
156
|
checkboxes: ConsentCheckbox[];
|
|
157
|
-
},
|
|
157
|
+
}, xstate0.EventObject>;
|
|
158
158
|
id: string | undefined;
|
|
159
159
|
};
|
|
160
160
|
}>, "src", TSrc>["logic"]>;
|
|
161
|
-
<TLogic extends
|
|
161
|
+
<TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
|
|
162
162
|
id?: never;
|
|
163
163
|
systemId?: string;
|
|
164
|
-
input?:
|
|
164
|
+
input?: xstate0.InputFrom<TLogic> | undefined;
|
|
165
165
|
syncSnapshot?: boolean;
|
|
166
|
-
} & { [K in
|
|
166
|
+
} & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
|
|
167
167
|
};
|
|
168
168
|
input: ConsentInput;
|
|
169
|
-
self:
|
|
169
|
+
self: xstate0.ActorRef<xstate0.MachineSnapshot<ConsentContext, {
|
|
170
170
|
type: "LOAD";
|
|
171
171
|
} | {
|
|
172
172
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -177,7 +177,7 @@ declare const consentMachine: xstate186.StateMachine<ConsentContext, {
|
|
|
177
177
|
type: "RETRY";
|
|
178
178
|
} | {
|
|
179
179
|
type: "RESET";
|
|
180
|
-
}, Record<string,
|
|
180
|
+
}, Record<string, xstate0.AnyActorRef | undefined>, xstate0.StateValue, string, unknown, any, any>, {
|
|
181
181
|
type: "LOAD";
|
|
182
182
|
} | {
|
|
183
183
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -188,7 +188,7 @@ declare const consentMachine: xstate186.StateMachine<ConsentContext, {
|
|
|
188
188
|
type: "RETRY";
|
|
189
189
|
} | {
|
|
190
190
|
type: "RESET";
|
|
191
|
-
},
|
|
191
|
+
}, xstate0.AnyEventObject>;
|
|
192
192
|
}) => {
|
|
193
193
|
config: ConsentConfig;
|
|
194
194
|
title: string;
|
|
@@ -226,7 +226,7 @@ declare const consentMachine: xstate186.StateMachine<ConsentContext, {
|
|
|
226
226
|
} | {
|
|
227
227
|
type: "RESET";
|
|
228
228
|
};
|
|
229
|
-
self:
|
|
229
|
+
self: xstate0.ActorRef<xstate0.MachineSnapshot<ConsentContext, {
|
|
230
230
|
type: "LOAD";
|
|
231
231
|
} | {
|
|
232
232
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -237,7 +237,7 @@ declare const consentMachine: xstate186.StateMachine<ConsentContext, {
|
|
|
237
237
|
type: "RETRY";
|
|
238
238
|
} | {
|
|
239
239
|
type: "RESET";
|
|
240
|
-
}, Record<string,
|
|
240
|
+
}, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
|
|
241
241
|
type: "LOAD";
|
|
242
242
|
} | {
|
|
243
243
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -248,7 +248,7 @@ declare const consentMachine: xstate186.StateMachine<ConsentContext, {
|
|
|
248
248
|
type: "RETRY";
|
|
249
249
|
} | {
|
|
250
250
|
type: "RESET";
|
|
251
|
-
},
|
|
251
|
+
}, xstate0.AnyEventObject>;
|
|
252
252
|
}) => {
|
|
253
253
|
consentId: string;
|
|
254
254
|
};
|
|
@@ -297,7 +297,7 @@ declare const consentMachine: xstate186.StateMachine<ConsentContext, {
|
|
|
297
297
|
} | {
|
|
298
298
|
type: "RESET";
|
|
299
299
|
};
|
|
300
|
-
self:
|
|
300
|
+
self: xstate0.ActorRef<xstate0.MachineSnapshot<ConsentContext, {
|
|
301
301
|
type: "LOAD";
|
|
302
302
|
} | {
|
|
303
303
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -308,7 +308,7 @@ declare const consentMachine: xstate186.StateMachine<ConsentContext, {
|
|
|
308
308
|
type: "RETRY";
|
|
309
309
|
} | {
|
|
310
310
|
type: "RESET";
|
|
311
|
-
}, Record<string,
|
|
311
|
+
}, Record<string, xstate0.AnyActorRef>, xstate0.StateValue, string, unknown, any, any>, {
|
|
312
312
|
type: "LOAD";
|
|
313
313
|
} | {
|
|
314
314
|
type: "TOGGLE_CHECKBOX";
|
|
@@ -319,7 +319,7 @@ declare const consentMachine: xstate186.StateMachine<ConsentContext, {
|
|
|
319
319
|
type: "RETRY";
|
|
320
320
|
} | {
|
|
321
321
|
type: "RESET";
|
|
322
|
-
},
|
|
322
|
+
}, xstate0.AnyEventObject>;
|
|
323
323
|
}) => {
|
|
324
324
|
languageConsentId: string;
|
|
325
325
|
checkboxes: ConsentCheckbox[];
|
package/dist/consent.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
3
|
-
import { a as createActor, o as createManager } from "./xstate.esm-
|
|
4
|
-
import { t as consentMachine } from "./consentStateMachine-
|
|
1
|
+
import "./api-Bv7xXuMw.esm.js";
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-BYuumPiB.esm.js";
|
|
3
|
+
import { a as createActor, o as createManager } from "./xstate.esm-DGcAhoQP.esm.js";
|
|
4
|
+
import { t as consentMachine } from "./consentStateMachine-Fa4KYzzn.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/consent/consentActor.ts
|
|
7
7
|
function createConsentActor(options) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { _ as endpoints } from "./events-
|
|
3
|
-
import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-
|
|
1
|
+
import { t as api } from "./api-Bv7xXuMw.esm.js";
|
|
2
|
+
import { _ as endpoints } from "./events-BYuumPiB.esm.js";
|
|
3
|
+
import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-DGcAhoQP.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/consent/consentServices.ts
|
|
6
6
|
async function fetchCombinedConsent(consentId, signal) {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
//#region src/shared/validators/cpf.ts
|
|
2
|
+
const INVALID_CPF_PATTERNS = [
|
|
3
|
+
"00000000000",
|
|
4
|
+
"11111111111",
|
|
5
|
+
"22222222222",
|
|
6
|
+
"33333333333",
|
|
7
|
+
"44444444444",
|
|
8
|
+
"55555555555",
|
|
9
|
+
"66666666666",
|
|
10
|
+
"77777777777",
|
|
11
|
+
"88888888888",
|
|
12
|
+
"99999999999"
|
|
13
|
+
];
|
|
14
|
+
/**
|
|
15
|
+
* Validates a Brazilian CPF number (11-digit checksum).
|
|
16
|
+
* Accepts formatted (000.000.000-00) or unformatted input.
|
|
17
|
+
*/
|
|
18
|
+
function validateCPF(cpfString) {
|
|
19
|
+
let cpf = cpfString;
|
|
20
|
+
if (cpf.length === 14) cpf = cpf.replace(/\./g, "").replace(/-/g, "");
|
|
21
|
+
if (cpf.length !== 11) return false;
|
|
22
|
+
if (!/^\d+$/.test(cpf)) return false;
|
|
23
|
+
if (INVALID_CPF_PATTERNS.includes(cpf)) return false;
|
|
24
|
+
let sum = 0;
|
|
25
|
+
for (let i = 0; i < 9; i++) sum += Number.parseInt(cpf.charAt(i), 10) * (10 - i);
|
|
26
|
+
let firstDigit = 11 - sum % 11;
|
|
27
|
+
if (firstDigit >= 10) firstDigit = 0;
|
|
28
|
+
if (cpf.charAt(9) !== firstDigit.toString()) return false;
|
|
29
|
+
sum = 0;
|
|
30
|
+
for (let i = 0; i < 10; i++) sum += Number.parseInt(cpf.charAt(i), 10) * (11 - i);
|
|
31
|
+
let secondDigit = 11 - sum % 11;
|
|
32
|
+
if (secondDigit >= 10) secondDigit = 0;
|
|
33
|
+
if (cpf.charAt(10) !== secondDigit.toString()) return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
export { validateCPF as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { _ as endpoints, n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
3
|
-
import { a as createActor, i as fromPromise, o as createManager, t as setup } from "./xstate.esm-
|
|
4
|
-
import { t as sleep } from "./ITimerCapability-
|
|
1
|
+
import { t as api } from "./api-Bv7xXuMw.esm.js";
|
|
2
|
+
import { _ as endpoints, n as eventModuleNames, o as createManagerInstrumentation } from "./events-BYuumPiB.esm.js";
|
|
3
|
+
import { a as createActor, i as fromPromise, o as createManager, t as setup } from "./xstate.esm-DGcAhoQP.esm.js";
|
|
4
|
+
import { t as sleep } from "./ITimerCapability-DUFfKzTs.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/cross-document-data-match/crossDocumentDataMatchServices.ts
|
|
7
7
|
/** Minimum spinner duration (ms), aligned with SDK v1 `ProcessCrossDocumentData`. */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import "./Actor-
|
|
3
|
-
import "./camera-
|
|
4
|
-
import "./types-
|
|
5
|
-
import { i as FlowModuleConfig } from "./types-
|
|
1
|
+
import { t as Manager } from "./Manager-BmmucBrC.js";
|
|
2
|
+
import "./Actor-gwS4PQSi.js";
|
|
3
|
+
import "./camera-CXfeCsaz.js";
|
|
4
|
+
import "./types-BxjVn8Ry.js";
|
|
5
|
+
import { i as FlowModuleConfig } from "./types-BelKmTqU.js";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/curp-validation/types.d.ts
|
|
8
8
|
type CurpValidationConfig = FlowModuleConfig['CURP_VALIDATION'] & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
3
|
-
import { a as createActor, o as createManager } from "./xstate.esm-
|
|
4
|
-
import { n as mexicanStates, t as curpValidationMachine } from "./curpValidationStateMachine-
|
|
1
|
+
import "./api-Bv7xXuMw.esm.js";
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-BYuumPiB.esm.js";
|
|
3
|
+
import { a as createActor, o as createManager } from "./xstate.esm-DGcAhoQP.esm.js";
|
|
4
|
+
import { n as mexicanStates, t as curpValidationMachine } from "./curpValidationStateMachine-oXdccErv.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/curp-validation/curpValidationActor.ts
|
|
7
7
|
function createCurpValidationActor(options) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { _ as endpoints } from "./events-
|
|
3
|
-
import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-
|
|
1
|
+
import { t as api } from "./api-Bv7xXuMw.esm.js";
|
|
2
|
+
import { _ as endpoints } from "./events-BYuumPiB.esm.js";
|
|
3
|
+
import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-DGcAhoQP.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/curp-validation/curpValidationUtils.ts
|
|
6
6
|
const CURP_PATTERN = /^([A-Z][AEIOUX][A-Z]{2}\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])[HMX](?:AS|B[CS]|C[CLMSH]|D[FG]|G[TR]|HG|JC|M[CNS]|N[ETL]|OC|PL|Q[TR]|S[PLR]|T[CSL]|VZ|YN|ZS)[B-DF-HJ-NP-TV-Z]{3}[A-Z\d])(\d)$/;
|