@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.
Files changed (160) hide show
  1. package/dist/{OpenViduRecordingProvider-3SvbmWdi.esm.js → OpenViduRecordingProvider-7PqRexCU.esm.js} +1 -1
  2. package/dist/{WasmUtilProvider-DmbBSMl1.esm.js → WasmUtilProvider-3sS7TzsG.esm.js} +1 -1
  3. package/dist/{addressSearch-BvpzLWr4.esm.js → addressSearch-CMO_-Isa.esm.js} +4 -4
  4. package/dist/{ae-signature-21vUGDha.esm.js → ae-signature-C07fpdHw.esm.js} +1 -1
  5. package/dist/ae-signature.d.ts +3 -3
  6. package/dist/ae-signature.esm.js +5 -5
  7. package/dist/antifraud.d.ts +1 -1
  8. package/dist/antifraud.esm.js +4 -4
  9. package/dist/{antifraudStateMachine-CIa-IPvP.esm.js → antifraudStateMachine-BOUj16Hj.esm.js} +3 -3
  10. package/dist/authentication.d.ts +11 -11
  11. package/dist/authentication.esm.js +22 -22
  12. package/dist/{authenticationManager-Bv9qL5fe.d.ts → authenticationManager-CGn-1c-V.d.ts} +2 -2
  13. package/dist/{authenticationManager-WLXkr-r0.esm.js → authenticationManager-URLydvU9.esm.js} +6 -6
  14. package/dist/{authenticationStateMachine-BifJqMei.esm.js → authenticationStateMachine-D8N6ERZa.esm.js} +6 -6
  15. package/dist/{backCameraStream-DSwtYHuO.esm.js → backCameraStream-CrljCJ-Q.esm.js} +3 -3
  16. package/dist/camera.d.ts +1 -1
  17. package/dist/camera.esm.js +3 -3
  18. package/dist/consent.d.ts +55 -55
  19. package/dist/consent.esm.js +4 -4
  20. package/dist/{consentStateMachine-DqiR30gw.esm.js → consentStateMachine-Fa4KYzzn.esm.js} +3 -3
  21. package/dist/cpf-DEcHUluo.esm.js +38 -0
  22. package/dist/cross-document-data-match.d.ts +1 -1
  23. package/dist/cross-document-data-match.esm.js +4 -4
  24. package/dist/curp-validation.d.ts +5 -5
  25. package/dist/curp-validation.esm.js +4 -4
  26. package/dist/{curpValidationStateMachine-Bp-V13CB.esm.js → curpValidationStateMachine-oXdccErv.esm.js} +3 -3
  27. package/dist/custom-fields.d.ts +2 -2
  28. package/dist/custom-fields.esm.js +3 -3
  29. package/dist/custom-watchlist.d.ts +1 -1
  30. package/dist/custom-watchlist.esm.js +4 -4
  31. package/dist/{deepsightLoader-BTrehKGp.esm.js → deepsightLoader-QMFaZ2jE.esm.js} +10 -10
  32. package/dist/{deepsightService-BknZgccc.d.ts → deepsightService-BAbwxVdZ.d.ts} +2 -2
  33. package/dist/{deepsightService-B0Z-9gmQ.esm.js → deepsightService-BFLmC3ua.esm.js} +5 -5
  34. package/dist/device.esm.js +3 -3
  35. package/dist/document-capture.d.ts +70 -70
  36. package/dist/document-capture.esm.js +8 -8
  37. package/dist/document-upload.d.ts +44 -44
  38. package/dist/document-upload.esm.js +7 -7
  39. package/dist/{documentCaptureStateMachine-CtMhD27q.esm.js → documentCaptureStateMachine-B8bi2Kh4.esm.js} +5 -5
  40. package/dist/ekyb.d.ts +3 -3
  41. package/dist/ekyb.esm.js +10 -10
  42. package/dist/{ekybStateMachine-Bn-pLTcp.esm.js → ekybStateMachine-DruS8yRg.esm.js} +5 -5
  43. package/dist/ekyc.d.ts +3 -3
  44. package/dist/ekyc.esm.js +7 -6
  45. package/dist/{ekycStateMachine-Nmn0Alq9.esm.js → ekycStateMachine-U3ivS4-5.esm.js} +5 -38
  46. package/dist/electronic-signature.d.ts +3 -3
  47. package/dist/electronic-signature.esm.js +4 -4
  48. package/dist/{electronicSignatureManager-DAkg8MF6.esm.js → electronicSignatureManager-CWJyes3f.esm.js} +3 -3
  49. package/dist/email.d.ts +3 -3
  50. package/dist/email.esm.js +6 -6
  51. package/dist/{emailManager-q2qVoNbM.d.ts → emailManager-CCrXrAU3.d.ts} +2 -2
  52. package/dist/{emailManager-o6B6AYuE.esm.js → emailManager-y8HVFngo.esm.js} +3 -3
  53. package/dist/{emailStateMachine-B5M_HlVm.esm.js → emailStateMachine-bLpj4LRr.esm.js} +4 -4
  54. package/dist/{events-Deg_qfet.esm.js → events-BYuumPiB.esm.js} +6 -2
  55. package/dist/events.d.ts +1 -0
  56. package/dist/events.esm.js +2 -2
  57. package/dist/extensibility.d.ts +15 -15
  58. package/dist/extensibility.esm.js +33 -33
  59. package/dist/face-match.d.ts +1 -1
  60. package/dist/face-match.esm.js +4 -4
  61. package/dist/{faceCaptureManagerFactory-Bq_skXK4.esm.js → faceCaptureManagerFactory-0bTuXnNo.esm.js} +2 -2
  62. package/dist/{faceCaptureManagerFactory-DAQqd0EL.d.ts → faceCaptureManagerFactory-B9SCeUbN.d.ts} +8 -8
  63. package/dist/{faceCaptureSetup-C9RqcwR9.esm.js → faceCaptureSetup-BLsm9VU9.esm.js} +4 -4
  64. package/dist/{faceMatchStateMachine-DCh79GWp.esm.js → faceMatchStateMachine-CB5JYxiV.esm.js} +3 -3
  65. package/dist/flow.d.ts +8 -8
  66. package/dist/flow.esm.js +9 -9
  67. package/dist/{flowCompletionService-BnZC_DV0.esm.js → flowCompletionService-B0ua9_Oo.esm.js} +2 -2
  68. package/dist/{flowServices-s0CiH0WO.esm.js → flowServices-ngHx2Tal.esm.js} +3 -3
  69. package/dist/geolocation.d.ts +2 -2
  70. package/dist/geolocation.esm.js +5 -5
  71. package/dist/{geolocationStateMachine-CxQCX2NJ.esm.js → geolocationStateMachine-Cc2eFVZU.esm.js} +4 -4
  72. package/dist/{getDeviceClass-DStKSj3Q.esm.js → getDeviceClass-B_Y-Y-zj.esm.js} +1 -1
  73. package/dist/government-validation.d.ts +2 -2
  74. package/dist/government-validation.esm.js +5 -5
  75. package/dist/{governmentValidationStateMachine-L7nwlJPw.esm.js → governmentValidationStateMachine-wvZ5ysEM.esm.js} +4 -4
  76. package/dist/home.d.ts +14 -14
  77. package/dist/home.esm.js +3 -3
  78. package/dist/http.esm.js +1 -1
  79. package/dist/id-ocr.d.ts +627 -0
  80. package/dist/id-ocr.esm.js +459 -0
  81. package/dist/id.d.ts +10 -10
  82. package/dist/id.esm.js +22 -22
  83. package/dist/{idCaptureManager-C2L4R8rT.d.ts → idCaptureManager-B_dajBGr.d.ts} +7 -7
  84. package/dist/{idCaptureManager-Cuq1R8jW.esm.js → idCaptureManager-DvJEDPBW.esm.js} +4 -4
  85. package/dist/{idCaptureStateMachine-B1eBofuq.esm.js → idCaptureStateMachine-CgddydGJ.esm.js} +16 -16
  86. package/dist/identity-reuse.d.ts +49 -49
  87. package/dist/identity-reuse.esm.js +3 -3
  88. package/dist/{index-DMN6Upfk.d.ts → index-BbYUSiBn.d.ts} +120 -120
  89. package/dist/index.d.ts +2 -2
  90. package/dist/index.esm.js +8 -8
  91. package/dist/{lib-DP0jsq7O.esm.js → lib-Db1XxJuS.esm.js} +1 -1
  92. package/dist/mandatory-consent.d.ts +52 -52
  93. package/dist/mandatory-consent.esm.js +4 -4
  94. package/dist/{mandatoryConsentStateMachine-Bjqy6QyQ.esm.js → mandatoryConsentStateMachine-0bZm4vNr.esm.js} +3 -3
  95. package/dist/openviduLazy-ClEZ-Z5M.esm.js +3 -0
  96. package/dist/{openviduLazy-CYviBULf.esm.js → openviduLazy-sruV5sxi.esm.js} +2 -2
  97. package/dist/{permissionServices-BJJE4sgW.esm.js → permissionServices-BdE8_Evq.esm.js} +2 -2
  98. package/dist/phone.d.ts +3 -3
  99. package/dist/phone.esm.js +6 -6
  100. package/dist/{phoneManager-C4QrFxRg.esm.js → phoneManager-CfoEpjeM.esm.js} +3 -3
  101. package/dist/{phoneManager-DBwE-qB0.d.ts → phoneManager-Da8QkPv7.d.ts} +2 -2
  102. package/dist/{phoneStateMachine-CMbJx57_.esm.js → phoneStateMachine-u-A2hOxu.esm.js} +4 -4
  103. package/dist/{qe-signature-D7Ou3WtG.esm.js → qe-signature-DhBKlGUH.esm.js} +1 -1
  104. package/dist/qe-signature.d.ts +3 -3
  105. package/dist/qe-signature.esm.js +5 -5
  106. package/dist/{recordingService-CtcIvA3E.esm.js → recordingService-CpbeUNqo.esm.js} +13 -13
  107. package/dist/redirect-to-mobile.d.ts +2 -2
  108. package/dist/redirect-to-mobile.esm.js +5 -5
  109. package/dist/{redirectToMobileStateMachine-CtWjarUj.esm.js → redirectToMobileStateMachine-BMXJRSAC.esm.js} +4 -4
  110. package/dist/{runChildModule-DM84wxzE.esm.js → runChildModule-DHxT1RV0.esm.js} +1 -1
  111. package/dist/selfie.d.ts +11 -11
  112. package/dist/selfie.esm.js +22 -22
  113. package/dist/{selfieManager-CoyIn3Zl.esm.js → selfieManager-CkmC58-2.esm.js} +6 -6
  114. package/dist/{selfieManager-Cfp4MKMu.d.ts → selfieManager-dLehZvQm.d.ts} +2 -2
  115. package/dist/{selfieStateMachine-CsI9YnHz.esm.js → selfieStateMachine-BusOHMBN.esm.js} +3 -3
  116. package/dist/{session-CrOl1xma.esm.js → session-CEsW15cJ.esm.js} +4 -4
  117. package/dist/session.d.ts +1 -1
  118. package/dist/session.esm.js +6 -6
  119. package/dist/{setup-BFXhW7cP.esm.js → setup-BvlIJVhZ.esm.js} +5 -5
  120. package/dist/{setup-VJbRmBIU.d.ts → setup-v-TAsAN2.d.ts} +1 -1
  121. package/dist/signature.d.ts +2 -2
  122. package/dist/signature.esm.js +4 -4
  123. package/dist/{signatureStateMachine-yaoE2OEY.esm.js → signatureStateMachine-D6E5ZdHV.esm.js} +3 -3
  124. package/dist/{stats-BEwRvZG4.esm.js → stats-DE05K1o9.esm.js} +1 -1
  125. package/dist/stats.esm.js +2 -2
  126. package/dist/{types-CgZVig-j.d.ts → types-BelKmTqU.d.ts} +5 -1
  127. package/dist/{types-BINKuP3l.d.ts → types-BxjVn8Ry.d.ts} +1 -1
  128. package/dist/{types-BmHAVvm0.d.ts → types-DZ7Qw6Yc.d.ts} +1 -1
  129. package/dist/wasm.d.ts +2 -2
  130. package/dist/wasm.esm.js +8 -8
  131. package/dist/watchlist-for-business.d.ts +1 -1
  132. package/dist/watchlist-for-business.esm.js +3 -3
  133. package/dist/watchlist.d.ts +1 -1
  134. package/dist/watchlist.esm.js +4 -4
  135. package/dist/{watchlistServices-D2I0AZb-.esm.js → watchlistServices-BW1w845W.esm.js} +2 -2
  136. package/dist/workflow.d.ts +116 -116
  137. package/dist/workflow.esm.js +45 -44
  138. package/package.json +5 -1
  139. package/dist/openviduLazy-7pgMhjPB.esm.js +0 -3
  140. /package/dist/{Actor-B-9T-DlO.d.ts → Actor-gwS4PQSi.d.ts} +0 -0
  141. /package/dist/{BaseWasmProvider-Cf3MNlAN.esm.js → BaseWasmProvider-DsxKeFBt.esm.js} +0 -0
  142. /package/dist/{BrowserStorageProvider-Drw72wvG.esm.js → BrowserStorageProvider-D99-O_Kf.esm.js} +0 -0
  143. /package/dist/{BrowserTimerProvider-Dav3_fFy.esm.js → BrowserTimerProvider-Dl6dq0R8.esm.js} +0 -0
  144. /package/dist/{ITimerCapability-BriAkEyj.esm.js → ITimerCapability-DUFfKzTs.esm.js} +0 -0
  145. /package/dist/{IpifyProvider-j8lI27Fq.esm.js → IpifyProvider-BRMpdf22.esm.js} +0 -0
  146. /package/dist/{Manager-BCd4NBhe.d.ts → Manager-BmmucBrC.d.ts} +0 -0
  147. /package/dist/{MotionSensorProvider-DYYBm_bL.esm.js → MotionSensorProvider-Qfs1LN2o.esm.js} +0 -0
  148. /package/dist/{StateMachine-BNiyEj7J.d.ts → StateMachine-B1c7OspS.d.ts} +0 -0
  149. /package/dist/{api-CzVamIBG.esm.js → api-Bv7xXuMw.esm.js} +0 -0
  150. /package/dist/{browserSimulation-C4a2KVIY.esm.js → browserSimulation-CB1iKoSy.esm.js} +0 -0
  151. /package/dist/{camera-DaD3X_7m.esm.js → camera-BEKg9OFz.esm.js} +0 -0
  152. /package/dist/{camera-BZfRhPh2.d.ts → camera-CXfeCsaz.d.ts} +0 -0
  153. /package/dist/{chunk-DZf7laLq.esm.js → chunk-BPmmK_1R.esm.js} +0 -0
  154. /package/dist/{displayErrors-YTUUYe7G.d.ts → displayErrors-DT-jBLuo.d.ts} +0 -0
  155. /package/dist/{flowCompletionService-MFzwlktR.d.ts → flowCompletionService-BxOJeebo.d.ts} +0 -0
  156. /package/dist/{getBrowser-DxB_n8-W.esm.js → getBrowser-COVIk8a4.esm.js} +0 -0
  157. /package/dist/{platform-CTBj7PrA.esm.js → platform-bAk6j4kV.esm.js} +0 -0
  158. /package/dist/{types-CZwSG43_.d.ts → types-nURQ3pMv.d.ts} +0 -0
  159. /package/dist/{warmup-BR9x_9iz.d.ts → warmup-SnxLgQsT.d.ts} +0 -0
  160. /package/dist/{xstate.esm-BXNheqIe.esm.js → xstate.esm-DGcAhoQP.esm.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { t as loadOpenVidu } from "./openviduLazy-CYviBULf.esm.js";
1
+ import { t as loadOpenVidu } from "./openviduLazy-sruV5sxi.esm.js";
2
2
 
3
3
  //#region ../infra/src/providers/browser/OpenViduRecordingProvider.ts
4
4
  function createHiddenContainer() {
@@ -1,4 +1,4 @@
1
- import { r as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider-Cf3MNlAN.esm.js";
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-CzVamIBG.esm.js";
2
- import { _ as endpoints } from "./events-Deg_qfet.esm.js";
3
- import { r as fromCallback } from "./xstate.esm-BXNheqIe.esm.js";
4
- import { t as BrowserTimerProvider } from "./BrowserTimerProvider-Dav3_fFy.esm.js";
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-DAkg8MF6.esm.js";
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) {
@@ -1,6 +1,6 @@
1
- import { t as Manager } from "./Manager-BCd4NBhe.js";
2
- import "./Actor-B-9T-DlO.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-DMN6Upfk.js";
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
 
@@ -1,7 +1,7 @@
1
- import "./api-CzVamIBG.esm.js";
2
- import "./events-Deg_qfet.esm.js";
3
- import "./xstate.esm-BXNheqIe.esm.js";
4
- import { a as areAllConsented, n as electronicSignatureMachine, r as AE_CONSENT_KEYS, s as getDefaultConsentChecks } from "./electronicSignatureManager-DAkg8MF6.esm.js";
5
- import { t as createAeSignatureManager } from "./ae-signature-21vUGDha.esm.js";
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 };
@@ -1,4 +1,4 @@
1
- import { t as Manager } from "./Manager-BCd4NBhe.js";
1
+ import { t as Manager } from "./Manager-BmmucBrC.js";
2
2
 
3
3
  //#region src/modules/antifraud/antifraudManager.d.ts
4
4
  type AntifraudIdleState = {
@@ -1,7 +1,7 @@
1
- import "./api-CzVamIBG.esm.js";
2
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Deg_qfet.esm.js";
3
- import { a as createActor, o as createManager } from "./xstate.esm-BXNheqIe.esm.js";
4
- import { t as antifraudMachine } from "./antifraudStateMachine-CIa-IPvP.esm.js";
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() {
@@ -1,6 +1,6 @@
1
- import { t as api } from "./api-CzVamIBG.esm.js";
2
- import { _ as endpoints } from "./events-Deg_qfet.esm.js";
3
- import { i as fromPromise, t as setup } from "./xstate.esm-BXNheqIe.esm.js";
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) {
@@ -1,12 +1,12 @@
1
- import "./warmup-BR9x_9iz.js";
2
- import "./Manager-BCd4NBhe.js";
3
- import "./Actor-B-9T-DlO.js";
4
- import "./StateMachine-BNiyEj7J.js";
5
- import { _ as AuthenticationConfig, b as authenticationMachine, g as createAuthenticationActor, h as CreateAuthenticationActorOptions, m as AuthenticationActor } from "./faceCaptureManagerFactory-DAQqd0EL.js";
6
- import "./camera-BZfRhPh2.js";
7
- import "./types-BINKuP3l.js";
8
- import "./types-CgZVig-j.js";
9
- import "./deepsightService-BknZgccc.js";
10
- import "./types-CZwSG43_.js";
11
- import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-Bv9qL5fe.js";
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-Cf3MNlAN.esm.js";
2
- import "./WasmUtilProvider-DmbBSMl1.esm.js";
3
- import "./api-CzVamIBG.esm.js";
4
- import "./events-Deg_qfet.esm.js";
5
- import "./browserSimulation-C4a2KVIY.esm.js";
6
- import "./xstate.esm-BXNheqIe.esm.js";
7
- import "./faceCaptureManagerFactory-Bq_skXK4.esm.js";
8
- import "./BrowserStorageProvider-Drw72wvG.esm.js";
9
- import "./recordingService-CtcIvA3E.esm.js";
10
- import "./deepsightService-B0Z-9gmQ.esm.js";
11
- import "./permissionServices-BJJE4sgW.esm.js";
12
- import "./camera-DaD3X_7m.esm.js";
13
- import "./getBrowser-DxB_n8-W.esm.js";
14
- import "./stats-BEwRvZG4.esm.js";
15
- import "./MotionSensorProvider-DYYBm_bL.esm.js";
16
- import "./platform-CTBj7PrA.esm.js";
17
- import "./ITimerCapability-BriAkEyj.esm.js";
18
- import "./backCameraStream-DSwtYHuO.esm.js";
19
- import "./getDeviceClass-DStKSj3Q.esm.js";
20
- import "./faceCaptureSetup-C9RqcwR9.esm.js";
21
- import { t as authenticationMachine } from "./authenticationStateMachine-BifJqMei.esm.js";
22
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-WLXkr-r0.esm.js";
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-BCd4NBhe.js";
2
- import { h as CreateAuthenticationActorOptions, m as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager } from "./faceCaptureManagerFactory-DAQqd0EL.js";
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;
@@ -1,9 +1,9 @@
1
- import { t as WasmUtilProvider } from "./WasmUtilProvider-DmbBSMl1.esm.js";
2
- import { n as eventModuleNames } from "./events-Deg_qfet.esm.js";
3
- import { a as createActor } from "./xstate.esm-BXNheqIe.esm.js";
4
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-Bq_skXK4.esm.js";
5
- import { t as BrowserStorageProvider } from "./BrowserStorageProvider-Drw72wvG.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-BifJqMei.esm.js";
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-CzVamIBG.esm.js";
2
- import { _ as endpoints } from "./events-Deg_qfet.esm.js";
3
- import { i as fromPromise, n as assign } from "./xstate.esm-BXNheqIe.esm.js";
4
- import { v as FACE_ERROR_CODES } from "./recordingService-CtcIvA3E.esm.js";
5
- import { t as getDeviceClass } from "./getDeviceClass-DStKSj3Q.esm.js";
6
- import { t as faceCaptureMachine } from "./faceCaptureSetup-C9RqcwR9.esm.js";
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-DaD3X_7m.esm.js";
2
- import { a as isIPhone14OrHigher, o as isSafari, r as isIOS, t as isAndroid } from "./platform-CTBj7PrA.esm.js";
3
- import { t as sleep } from "./ITimerCapability-BriAkEyj.esm.js";
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
@@ -1,4 +1,4 @@
1
- import { n as PermissionStatus, t as PermissionResult } from "./types-CZwSG43_.js";
1
+ import { n as PermissionStatus, t as PermissionResult } from "./types-nURQ3pMv.js";
2
2
 
3
3
  //#region src/internal/permissions/permissionServices.d.ts
4
4
  type RequestPermissionOptions = {
@@ -1,5 +1,5 @@
1
- import { n as requestPermission, t as checkPermission } from "./permissionServices-BJJE4sgW.esm.js";
2
- import "./camera-DaD3X_7m.esm.js";
3
- import "./MotionSensorProvider-DYYBm_bL.esm.js";
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-BCd4NBhe.js";
2
- import "./Actor-B-9T-DlO.js";
3
- import * as xstate186 from "xstate";
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: xstate186.StateMachine<ConsentContext, {
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]: xstate186.ActorRefFromLogic<xstate186.PromiseActorLogic<FetchCombinedConsentResponse, {
51
+ [x: string]: xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
52
52
  consentId: string;
53
- }, xstate186.EventObject>> | xstate186.ActorRefFromLogic<xstate186.PromiseActorLogic<void, {
53
+ }, xstate0.EventObject>> | xstate0.ActorRefFromLogic<xstate0.PromiseActorLogic<void, {
54
54
  languageConsentId: string;
55
55
  checkboxes: ConsentCheckbox[];
56
- }, xstate186.EventObject>> | undefined;
57
- }, xstate186.Values<{
56
+ }, xstate0.EventObject>> | undefined;
57
+ }, xstate0.Values<{
58
58
  fetchConsent: {
59
59
  src: "fetchConsent";
60
- logic: xstate186.PromiseActorLogic<FetchCombinedConsentResponse, {
60
+ logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
61
61
  consentId: string;
62
- }, xstate186.EventObject>;
62
+ }, xstate0.EventObject>;
63
63
  id: string | undefined;
64
64
  };
65
65
  submitConsent: {
66
66
  src: "submitConsent";
67
- logic: xstate186.PromiseActorLogic<void, {
67
+ logic: xstate0.PromiseActorLogic<void, {
68
68
  languageConsentId: string;
69
69
  checkboxes: ConsentCheckbox[];
70
- }, xstate186.EventObject>;
70
+ }, xstate0.EventObject>;
71
71
  id: string | undefined;
72
72
  };
73
- }>, xstate186.Values<{
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: xstate186.NonReducibleUnknown;
76
+ params: xstate0.NonReducibleUnknown;
85
77
  };
86
78
  toggleCheckbox: {
87
79
  type: "toggleCheckbox";
88
- params: xstate186.NonReducibleUnknown;
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: xstate186.NonReducibleUnknown;
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, xstate186.NonReducibleUnknown, xstate186.EventObject, xstate186.MetaObject, {
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: xstate186.PromiseActorLogic<FetchCombinedConsentResponse, {
106
+ logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
107
107
  consentId: string;
108
- }, xstate186.EventObject>;
108
+ }, xstate0.EventObject>;
109
109
  id: string | undefined;
110
110
  } extends infer T ? T extends {
111
111
  src: "fetchConsent";
112
- logic: xstate186.PromiseActorLogic<FetchCombinedConsentResponse, {
112
+ logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
113
113
  consentId: string;
114
- }, xstate186.EventObject>;
114
+ }, xstate0.EventObject>;
115
115
  id: string | undefined;
116
116
  } ? T extends {
117
117
  src: TSrc;
118
- } ? xstate186.ConditionalRequired<[options?: ({
118
+ } ? xstate0.ConditionalRequired<[options?: ({
119
119
  id?: T["id"] | undefined;
120
120
  systemId?: string;
121
- input?: xstate186.InputFrom<T["logic"]> | undefined;
121
+ input?: xstate0.InputFrom<T["logic"]> | undefined;
122
122
  syncSnapshot?: boolean;
123
- } & { [K in xstate186.RequiredActorOptions<T>]: unknown }) | undefined], xstate186.IsNotNever<xstate186.RequiredActorOptions<T>>> : never : never : never) | ({
123
+ } & { [K in xstate0.RequiredActorOptions<T>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredActorOptions<T>>> : never : never : never) | ({
124
124
  src: "submitConsent";
125
- logic: xstate186.PromiseActorLogic<void, {
125
+ logic: xstate0.PromiseActorLogic<void, {
126
126
  languageConsentId: string;
127
127
  checkboxes: ConsentCheckbox[];
128
- }, xstate186.EventObject>;
128
+ }, xstate0.EventObject>;
129
129
  id: string | undefined;
130
130
  } extends infer T_1 ? T_1 extends {
131
131
  src: "submitConsent";
132
- logic: xstate186.PromiseActorLogic<void, {
132
+ logic: xstate0.PromiseActorLogic<void, {
133
133
  languageConsentId: string;
134
134
  checkboxes: ConsentCheckbox[];
135
- }, xstate186.EventObject>;
135
+ }, xstate0.EventObject>;
136
136
  id: string | undefined;
137
137
  } ? T_1 extends {
138
138
  src: TSrc;
139
- } ? xstate186.ConditionalRequired<[options?: ({
139
+ } ? xstate0.ConditionalRequired<[options?: ({
140
140
  id?: T_1["id"] | undefined;
141
141
  systemId?: string;
142
- input?: xstate186.InputFrom<T_1["logic"]> | undefined;
142
+ input?: xstate0.InputFrom<T_1["logic"]> | undefined;
143
143
  syncSnapshot?: boolean;
144
- } & { [K_1 in xstate186.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate186.IsNotNever<xstate186.RequiredActorOptions<T_1>>> : never : never : never)): xstate186.ActorRefFromLogic<xstate186.GetConcreteByKey<xstate186.Values<{
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: xstate186.PromiseActorLogic<FetchCombinedConsentResponse, {
147
+ logic: xstate0.PromiseActorLogic<FetchCombinedConsentResponse, {
148
148
  consentId: string;
149
- }, xstate186.EventObject>;
149
+ }, xstate0.EventObject>;
150
150
  id: string | undefined;
151
151
  };
152
152
  submitConsent: {
153
153
  src: "submitConsent";
154
- logic: xstate186.PromiseActorLogic<void, {
154
+ logic: xstate0.PromiseActorLogic<void, {
155
155
  languageConsentId: string;
156
156
  checkboxes: ConsentCheckbox[];
157
- }, xstate186.EventObject>;
157
+ }, xstate0.EventObject>;
158
158
  id: string | undefined;
159
159
  };
160
160
  }>, "src", TSrc>["logic"]>;
161
- <TLogic extends xstate186.AnyActorLogic>(src: TLogic, ...[options]: xstate186.ConditionalRequired<[options?: ({
161
+ <TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
162
162
  id?: never;
163
163
  systemId?: string;
164
- input?: xstate186.InputFrom<TLogic> | undefined;
164
+ input?: xstate0.InputFrom<TLogic> | undefined;
165
165
  syncSnapshot?: boolean;
166
- } & { [K in xstate186.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate186.IsNotNever<xstate186.RequiredLogicInput<TLogic>>>): xstate186.ActorRefFromLogic<TLogic>;
166
+ } & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
167
167
  };
168
168
  input: ConsentInput;
169
- self: xstate186.ActorRef<xstate186.MachineSnapshot<ConsentContext, {
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, xstate186.AnyActorRef | undefined>, xstate186.StateValue, string, unknown, any, any>, {
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
- }, xstate186.AnyEventObject>;
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: xstate186.ActorRef<xstate186.MachineSnapshot<ConsentContext, {
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, xstate186.AnyActorRef>, xstate186.StateValue, string, unknown, any, any>, {
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
- }, xstate186.AnyEventObject>;
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: xstate186.ActorRef<xstate186.MachineSnapshot<ConsentContext, {
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, xstate186.AnyActorRef>, xstate186.StateValue, string, unknown, any, any>, {
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
- }, xstate186.AnyEventObject>;
322
+ }, xstate0.AnyEventObject>;
323
323
  }) => {
324
324
  languageConsentId: string;
325
325
  checkboxes: ConsentCheckbox[];
@@ -1,7 +1,7 @@
1
- import "./api-CzVamIBG.esm.js";
2
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Deg_qfet.esm.js";
3
- import { a as createActor, o as createManager } from "./xstate.esm-BXNheqIe.esm.js";
4
- import { t as consentMachine } from "./consentStateMachine-DqiR30gw.esm.js";
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-CzVamIBG.esm.js";
2
- import { _ as endpoints } from "./events-Deg_qfet.esm.js";
3
- import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-BXNheqIe.esm.js";
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,4 +1,4 @@
1
- import { t as Manager } from "./Manager-BCd4NBhe.js";
1
+ import { t as Manager } from "./Manager-BmmucBrC.js";
2
2
 
3
3
  //#region src/modules/cross-document-data-match/crossDocumentDataMatchManager.d.ts
4
4
  type CrossDocumentDataMatchIdleState = {
@@ -1,7 +1,7 @@
1
- import { t as api } from "./api-CzVamIBG.esm.js";
2
- import { _ as endpoints, n as eventModuleNames, o as createManagerInstrumentation } from "./events-Deg_qfet.esm.js";
3
- import { a as createActor, i as fromPromise, o as createManager, t as setup } from "./xstate.esm-BXNheqIe.esm.js";
4
- import { t as sleep } from "./ITimerCapability-BriAkEyj.esm.js";
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-BCd4NBhe.js";
2
- import "./Actor-B-9T-DlO.js";
3
- import "./camera-BZfRhPh2.js";
4
- import "./types-BINKuP3l.js";
5
- import { i as FlowModuleConfig } from "./types-CgZVig-j.js";
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-CzVamIBG.esm.js";
2
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Deg_qfet.esm.js";
3
- import { a as createActor, o as createManager } from "./xstate.esm-BXNheqIe.esm.js";
4
- import { n as mexicanStates, t as curpValidationMachine } from "./curpValidationStateMachine-Bp-V13CB.esm.js";
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-CzVamIBG.esm.js";
2
- import { _ as endpoints } from "./events-Deg_qfet.esm.js";
3
- import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-BXNheqIe.esm.js";
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)$/;