@incodetech/core 0.0.0-dev-20261028-fb6ee010 → 0.0.0-dev-20261028-92e97968

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 (189) hide show
  1. package/dist/{FaceDetectionProvider-Dn3_Fe7w.esm.js → FaceDetectionProvider-DB-l4l7w.esm.js} +10 -10
  2. package/dist/IBrowserEnvironmentCapability-D7JG7ML3.esm.js +16 -0
  3. package/dist/{PhoneValidationProvider-SZiOS0jB.esm.js → PhoneValidationProvider-Co4zk2en.esm.js} +7 -0
  4. package/dist/{WasmUtilProvider-DtJuBdt-.esm.js → WasmUtilProvider-BmtXHqwK.esm.js} +2 -2
  5. package/dist/{addressSearch-DU_A-KRF.esm.js → addressSearch-CBw55d_y.esm.js} +67 -29
  6. package/dist/ae-signature.esm.js +1 -1
  7. package/dist/antifraud.esm.js +2 -2
  8. package/dist/{antifraudManager-BwcrZg0n.esm.js → antifraudManager-Bcv2EsSL.esm.js} +2 -2
  9. package/dist/{antifraudStateMachine-D8_nlJ1M.esm.js → antifraudStateMachine-C0Fvysdf.esm.js} +1 -1
  10. package/dist/{api-DibA_Spu.esm.js → api-BG98lkot.esm.js} +1 -1
  11. package/dist/{apiError-1EwPqLc5.esm.js → apiError-BCX-7B84.esm.js} +1 -1
  12. package/dist/{attemptCarry-D8p84a3b.esm.js → attemptCarry-DpuNCHQS.esm.js} +1 -1
  13. package/dist/authentication.d.ts +3 -3
  14. package/dist/authentication.esm.js +2 -2
  15. package/dist/{authenticationManager-BIZC55Bi.d.ts → authenticationManager-CC67pNoL.d.ts} +1 -1
  16. package/dist/{authenticationManager-Da1r0Qu2.esm.js → authenticationManager-QR2pMTpQ.esm.js} +5 -5
  17. package/dist/{authenticationStateMachine-CNwJwOfc.esm.js → authenticationStateMachine-BM-KI6oI.esm.js} +3 -3
  18. package/dist/camera.esm.js +1 -1
  19. package/dist/certificate-issuance.esm.js +2 -2
  20. package/dist/{certificateIssuanceManager-Cqxlxd2J.esm.js → certificateIssuanceManager-BQP6WIJ9.esm.js} +2 -2
  21. package/dist/{certificateIssuanceStateMachine-DCUb94gC.esm.js → certificateIssuanceStateMachine-CWRTfSXx.esm.js} +1 -1
  22. package/dist/consent.d.ts +1 -1
  23. package/dist/consent.esm.js +2 -2
  24. package/dist/{consentManager-P-KfaJUT.esm.js → consentManager-D8TzUU2I.esm.js} +2 -2
  25. package/dist/{consentManager-DXetSxcx.d.ts → consentManager-_q9yJUku.d.ts} +9 -9
  26. package/dist/{consentStateMachine-QyV_al8N.esm.js → consentStateMachine-fujN6qEM.esm.js} +1 -1
  27. package/dist/{createCameraCycleOwnership-DeOVMWUZ.esm.js → createCameraCycleOwnership-EMOiqj48.esm.js} +3 -3
  28. package/dist/cross-document-data-match.esm.js +1 -1
  29. package/dist/{crossDocumentDataMatchManager-DsMEIE6e.esm.js → crossDocumentDataMatchManager-BN35sW3g.esm.js} +2 -2
  30. package/dist/curp-validation.d.ts +1 -1
  31. package/dist/curp-validation.esm.js +2 -2
  32. package/dist/{curpValidationManager-CFNdKD46.esm.js → curpValidationManager-HRRI_djy.esm.js} +3 -2
  33. package/dist/{curpValidationManager-C9sqoh9n.d.ts → curpValidationManager-HRSYsugw.d.ts} +1 -1
  34. package/dist/{curpValidationStateMachine-Cv974Od7.esm.js → curpValidationStateMachine-CFmEkT4f.esm.js} +4 -7
  35. package/dist/custom-fields.esm.js +1 -1
  36. package/dist/custom-watchlist.esm.js +2 -2
  37. package/dist/{customFieldsManager-BQwd7ePG.esm.js → customFieldsManager-BJlPFi1I.esm.js} +2 -2
  38. package/dist/{customWatchlistManager-CqmaXZ3M.esm.js → customWatchlistManager-Dqzf_LJ3.esm.js} +2 -2
  39. package/dist/{customWatchlistStateMachine-CmSNuU2y.esm.js → customWatchlistStateMachine-BOaxa3XO.esm.js} +1 -1
  40. package/dist/{deepsightLoader-BZpcVUwY.esm.js → deepsightLoader-CRdTMYfw.esm.js} +6 -6
  41. package/dist/{deepsightService-BVmNK8z5.esm.js → deepsightService-CxXJYLyh.esm.js} +3 -3
  42. package/dist/document-capture.d.ts +1 -1
  43. package/dist/document-capture.esm.js +2 -2
  44. package/dist/{documentCaptureManager-B5Yv_b7F.d.ts → documentCaptureManager-6tnnDkMX.d.ts} +1 -1
  45. package/dist/{documentCaptureManager-vY0yCoxj.esm.js → documentCaptureManager-B4E3Pgl9.esm.js} +2 -2
  46. package/dist/{documentCaptureStateMachine-DMxJXs3Z.esm.js → documentCaptureStateMachine-M_jFgj_c.esm.js} +4 -4
  47. package/dist/dynamic-forms.esm.js +2 -2
  48. package/dist/{dynamicFormsManager-CIO2PzqI.esm.js → dynamicFormsManager-BxT76ilX.esm.js} +2 -2
  49. package/dist/{dynamicFormsStateMachine-0At-M0lQ.esm.js → dynamicFormsStateMachine-Bmd3vb00.esm.js} +2 -2
  50. package/dist/ekyb.d.ts +4 -4
  51. package/dist/ekyb.esm.js +3 -3
  52. package/dist/{ekybManager-CIsz_4w6.esm.js → ekybManager-Cj2AbFwW.esm.js} +2 -2
  53. package/dist/{ekybManager-BaZ_7CEu.d.ts → ekybManager-lZOHO33y.d.ts} +2 -2
  54. package/dist/{ekybStateMachine-DF-Z5YA8.esm.js → ekybStateMachine-qzvdNZgY.esm.js} +23 -14
  55. package/dist/ekyc.d.ts +2 -2
  56. package/dist/ekyc.esm.js +3 -3
  57. package/dist/{ekycManager-DW-ynodd.d.ts → ekycManager-Ci7zQBP1.d.ts} +1 -1
  58. package/dist/{ekycManager-BY3ufkgU.esm.js → ekycManager-DbF76iGU.esm.js} +2 -2
  59. package/dist/ekycStateMachine-16xp3B1E.esm.js +6821 -0
  60. package/dist/{ekycUtils-zY8CdKJL.esm.js → ekycUtils-tST1hG2_.esm.js} +187 -9
  61. package/dist/electronic-signature.esm.js +1 -1
  62. package/dist/{electronicSignatureManager-BD0n65se.esm.js → electronicSignatureManager-a9Tt2VFy.esm.js} +3 -3
  63. package/dist/email.esm.js +2 -2
  64. package/dist/{emailManager-BvhLvbtd.esm.js → emailManager-Csi-HAvd.esm.js} +2 -2
  65. package/dist/{emailStateMachine-eeQ8dRbM.esm.js → emailStateMachine-c7tzsD7w.esm.js} +2 -2
  66. package/dist/{events-D98twgMK.esm.js → events-Dh1gMk0J.esm.js} +2 -2
  67. package/dist/events.esm.js +1 -1
  68. package/dist/extensibility.d.ts +15 -15
  69. package/dist/extensibility.esm.js +34 -34
  70. package/dist/face-match.esm.js +2 -2
  71. package/dist/{faceCaptureManagerFactory-JqxokvT2.esm.js → faceCaptureManagerFactory-DOhPvAnT.esm.js} +4 -4
  72. package/dist/{faceCaptureManagerFactory-1hzeS_rB.d.ts → faceCaptureManagerFactory-vchnR2CA.d.ts} +3 -3
  73. package/dist/{faceCaptureSetup-DZRH3gqE.esm.js → faceCaptureSetup-CjPy0vAj.esm.js} +11 -11
  74. package/dist/{faceMatchManager-CUWKh2pf.esm.js → faceMatchManager-4Hh6X-G6.esm.js} +2 -2
  75. package/dist/{faceMatchStateMachine-BUcjsIb1.esm.js → faceMatchStateMachine-CosVB4iL.esm.js} +1 -1
  76. package/dist/{feature-management-8aDiR5Vk.esm.js → feature-management-YPk5mycc.esm.js} +1 -1
  77. package/dist/feature-management.esm.js +1 -1
  78. package/dist/field-comparison.esm.js +1 -1
  79. package/dist/{fieldComparisonManager-8Gcne7cb.esm.js → fieldComparisonManager--56VbIeN.esm.js} +2 -2
  80. package/dist/fiscal-qr.esm.js +1 -1
  81. package/dist/{fiscalQrManager-B_5Lj4dm.esm.js → fiscalQrManager-C7PppK9Z.esm.js} +2 -2
  82. package/dist/flow-events.d.ts +1 -1
  83. package/dist/flow.d.ts +7 -7
  84. package/dist/flow.esm.js +4 -4
  85. package/dist/{flowCompletionService-47F-HvJh.esm.js → flowCompletionService-CzsMexhn.esm.js} +2 -2
  86. package/dist/{flowServices-BEjHZa8z.esm.js → flowServices-CaEcelaJ.esm.js} +7 -7
  87. package/dist/geolocation.esm.js +2 -2
  88. package/dist/{geolocationManager-4XtQ21XD.esm.js → geolocationManager-C2syZgDc.esm.js} +2 -2
  89. package/dist/{geolocationStateMachine-RFJUOjDi.esm.js → geolocationStateMachine-BS0pyySr.esm.js} +3 -3
  90. package/dist/government-validation.esm.js +2 -2
  91. package/dist/{governmentValidationManager-DLptXxxu.esm.js → governmentValidationManager-BF5jvOkb.esm.js} +2 -2
  92. package/dist/{governmentValidationStateMachine-DfdpoCJG.esm.js → governmentValidationStateMachine-Bq75J8Ts.esm.js} +1 -1
  93. package/dist/home.d.ts +1 -1
  94. package/dist/home.esm.js +1 -1
  95. package/dist/http.esm.js +1 -1
  96. package/dist/id-ocr.d.ts +1 -1
  97. package/dist/id-ocr.esm.js +2 -2
  98. package/dist/id-selfie-flow.d.ts +1 -1
  99. package/dist/id-selfie-flow.esm.js +9 -9
  100. package/dist/id-verification.esm.js +2 -2
  101. package/dist/id.d.ts +2 -2
  102. package/dist/id.esm.js +3 -3
  103. package/dist/{idCaptureDefaults-BGsG2OAs.esm.js → idCaptureDefaults-DP06AgjJ.esm.js} +3 -3
  104. package/dist/{idCaptureManager-0M02hSuC.d.ts → idCaptureManager-7n59S4Fc.d.ts} +2 -2
  105. package/dist/{idCaptureManager-DpSPcdkX.esm.js → idCaptureManager-CDBbCzAr.esm.js} +7 -7
  106. package/dist/{idCaptureServices-BNbvjhhA.esm.js → idCaptureServices-BNgjtsRB.esm.js} +6 -6
  107. package/dist/{idCaptureStateMachine-D3cAyBfC.esm.js → idCaptureStateMachine-sGFbt62t.esm.js} +20 -20
  108. package/dist/{idOcrManager-C_jlAnBS.esm.js → idOcrManager-D80xAPDt.esm.js} +2 -2
  109. package/dist/{idOcrManager-BTdHlJ9D.d.ts → idOcrManager-DT3kPIB3.d.ts} +1 -1
  110. package/dist/{idOcrStateMachine-DY8ZB5GG.esm.js → idOcrStateMachine-BCapxb9c.esm.js} +2 -2
  111. package/dist/{idVerificationManager-BgQ1clLr.esm.js → idVerificationManager-C82KSWQl.esm.js} +2 -2
  112. package/dist/{idVerificationStateMachine-Etb91dYy.esm.js → idVerificationStateMachine-ex6gNfKa.esm.js} +1 -1
  113. package/dist/identity-reuse.d.ts +1 -1
  114. package/dist/identity-reuse.esm.js +2 -2
  115. package/dist/{identityReuseManager-YGTaaYtd.esm.js → identityReuseManager-MQMMPAs3.esm.js} +2 -2
  116. package/dist/{identityReuseManager-B1birg5X.d.ts → identityReuseManager-ooAbp6Kc.d.ts} +4 -4
  117. package/dist/{identityReuseStateMachine-B4e6VCrG.esm.js → identityReuseStateMachine-HnlJq2ed.esm.js} +1 -1
  118. package/dist/{index-CKQ9QBZP.d.ts → index-tLPVy1zj.d.ts} +1 -1
  119. package/dist/index.esm.js +1 -1
  120. package/dist/{invokeOnCaptureCallback-DraeGfc2.esm.js → invokeOnCaptureCallback-DzdtCRnn.esm.js} +1 -1
  121. package/dist/mandatory-consent.d.ts +2 -2
  122. package/dist/mandatory-consent.esm.js +2 -2
  123. package/dist/{mandatoryConsentManager-tZG-vHn9.d.ts → mandatoryConsentManager-5fqBIVQL.d.ts} +8 -8
  124. package/dist/{mandatoryConsentManager-BgOSWCz0.esm.js → mandatoryConsentManager-BRlzM19u.esm.js} +2 -2
  125. package/dist/{mandatoryConsentStateMachine-dO4CCdXY.esm.js → mandatoryConsentStateMachine-CN-7xivA.esm.js} +1 -1
  126. package/dist/{multipartRecordingService-CtTauPSp.esm.js → multipartRecordingService-YhlbyjI4.esm.js} +1 -1
  127. package/dist/nationalIds-B91f_RuB.esm.js +99 -0
  128. package/dist/{permissionGuards-gcy3U0SL.esm.js → permissionGuards-DJkhXYNj.esm.js} +1 -1
  129. package/dist/{permissionServices-Ca-tSNhT.esm.js → permissionServices-DXlzBQ7G.esm.js} +1 -1
  130. package/dist/phone-number.d.ts +7 -1
  131. package/dist/phone-number.esm.js +15 -2
  132. package/dist/phone.d.ts +1 -1
  133. package/dist/phone.esm.js +2 -2
  134. package/dist/{phoneManager-BO-LTih5.d.ts → phoneManager-6nrJkvkG.d.ts} +5 -0
  135. package/dist/{phoneManager-CQBXuOex.esm.js → phoneManager-Dcj-iewA.esm.js} +3 -3
  136. package/dist/{phoneStateMachine-gXJD8NRW.esm.js → phoneStateMachine-9F2yAf0d.esm.js} +3 -3
  137. package/dist/{phoneValidation-DnBcNUNh.esm.js → phoneValidation-DCqyINbL.esm.js} +1 -1
  138. package/dist/qe-signature.esm.js +1 -1
  139. package/dist/redirect-to-mobile.esm.js +2 -2
  140. package/dist/{redirectToMobileManager-BSSkqtEE.esm.js → redirectToMobileManager-DQsYcUcF.esm.js} +2 -2
  141. package/dist/{redirectToMobileStateMachine-BpetRK9-.esm.js → redirectToMobileStateMachine-BzIdw6Os.esm.js} +1 -1
  142. package/dist/{runChildModule-DqT0jY1z.esm.js → runChildModule-BKJsyA11.esm.js} +3 -3
  143. package/dist/{sdkVersion-CN3-O_qV.esm.js → sdkVersion-BvY41HAd.esm.js} +1 -1
  144. package/dist/selfie.d.ts +3 -3
  145. package/dist/selfie.esm.js +10 -10
  146. package/dist/{selfieErrorUtils-C41NY3lM.esm.js → selfieErrorUtils-DLbQZAVX.esm.js} +1 -1
  147. package/dist/{selfieManager-DA4vR-07.esm.js → selfieManager-BekAMFtG.esm.js} +5 -5
  148. package/dist/{selfieManager-BJdNu_nd.d.ts → selfieManager-ClCgI2fn.d.ts} +1 -1
  149. package/dist/{selfieStateMachine-BEuPOVqa.esm.js → selfieStateMachine-QRqI3oIR.esm.js} +3 -3
  150. package/dist/{session-DcTjPBM7.esm.js → session-B6ktXGuw.esm.js} +4 -4
  151. package/dist/session.d.ts +1 -1
  152. package/dist/session.esm.js +5 -5
  153. package/dist/{sessionInitializer-knFtzukE.esm.js → sessionInitializer-D1lusXsG.esm.js} +7 -7
  154. package/dist/{setup-YOVZRt-9.esm.js → setup-Bdvivqmb.esm.js} +10 -10
  155. package/dist/signature.esm.js +2 -2
  156. package/dist/{signatureManager-N-SHTwT-.esm.js → signatureManager-DWOZ-uMN.esm.js} +2 -2
  157. package/dist/{signatureStateMachine-D4-juDs9.esm.js → signatureStateMachine-BTRIXJGb.esm.js} +1 -1
  158. package/dist/{stats-BJO0RcTZ.esm.js → stats-D3Cxg6PL.esm.js} +1 -1
  159. package/dist/stats.esm.js +1 -1
  160. package/dist/{trueSightService-Dl6YUCJh.esm.js → trueSightService-DMEWFeEv.esm.js} +5 -5
  161. package/dist/trust-graph.esm.js +1 -1
  162. package/dist/{types-0L-eFDmr.d.ts → types-CjUSw9yM.d.ts} +1 -1
  163. package/dist/{types-yPH8lAH-.d.ts → types-ClQspDyT.d.ts} +1 -1
  164. package/dist/types-Cp_84WIM.d.ts +6 -0
  165. package/dist/{types-BvLo3U4u.d.ts → types-D-cdiQD8.d.ts} +79 -3
  166. package/dist/{types-Ckir_BEs.d.ts → types-DJBn6wVV.d.ts} +1 -1
  167. package/dist/{types-BAxn7MpY.d.ts → types-DPGYNu5C.d.ts} +1 -1
  168. package/dist/{types-CK8Jbjkp.d.ts → types-GbGmnFsh.d.ts} +1 -1
  169. package/dist/{types-B6HsSzpk.d.ts → types-tsXa6u2J.d.ts} +1 -1
  170. package/dist/video-selfie.d.ts +1 -1
  171. package/dist/video-selfie.esm.js +7 -7
  172. package/dist/{videoSelfieCameraWarmer-Blh4b2qQ.esm.js → videoSelfieCameraWarmer-2vOhbikT.esm.js} +7 -7
  173. package/dist/{videoSelfieStepDetector-CGsTltqB.d.ts → videoSelfieStepDetector-BIHz1l_H.d.ts} +2 -2
  174. package/dist/{warmup-BElYWRh7.esm.js → warmup-CH_bd9h8.esm.js} +2 -2
  175. package/dist/wasm.esm.js +3 -3
  176. package/dist/{wasmDsFlagSync-CYj5LL9z.esm.js → wasmDsFlagSync-Co_fMpyM.esm.js} +1 -1
  177. package/dist/{wasmWebClient-BjZw_7OB.esm.js → wasmWebClient-DpRiJOHd.esm.js} +1 -1
  178. package/dist/watchlist-for-business.esm.js +2 -2
  179. package/dist/watchlist.esm.js +2 -2
  180. package/dist/{watchlistForBusinessManager-BYtjD7SO.esm.js → watchlistForBusinessManager-UD1i94xo.esm.js} +2 -2
  181. package/dist/{watchlistForBusinessStateMachine-MVAywRD_.esm.js → watchlistForBusinessStateMachine-CQXOjGhS.esm.js} +1 -1
  182. package/dist/{watchlistManager-C4FrX43N.esm.js → watchlistManager-G9pWQPfr.esm.js} +2 -2
  183. package/dist/{watchlistStateMachine-By4V_fk4.esm.js → watchlistStateMachine-DH_Mm5h-.esm.js} +1 -1
  184. package/dist/workflow.d.ts +1 -1
  185. package/dist/workflow.esm.js +36 -36
  186. package/package.json +1 -1
  187. package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +0 -9
  188. package/dist/ekycStateMachine-TQRh3i_I.esm.js +0 -1443
  189. package/dist/types-zOgZqMni.d.ts +0 -6
@@ -1,16 +1,16 @@
1
- import { c as wasmRuntime } from "./warmup-BElYWRh7.esm.js";
2
- import { t as ensureWasmPipelines } from "./setup-YOVZRt-9.esm.js";
3
- import { r as BaseWasmProvider } from "./WasmUtilProvider-DtJuBdt-.esm.js";
4
- import { t as api, u as endpoints } from "./api-DibA_Spu.esm.js";
5
- import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-Dl6YUCJh.esm.js";
6
- import "./sessionInitializer-knFtzukE.esm.js";
7
- import { t as addDeviceStats } from "./stats-BJO0RcTZ.esm.js";
1
+ import { c as wasmRuntime } from "./warmup-CH_bd9h8.esm.js";
2
+ import { t as ensureWasmPipelines } from "./setup-Bdvivqmb.esm.js";
3
+ import { r as BaseWasmProvider } from "./WasmUtilProvider-BmtXHqwK.esm.js";
4
+ import { t as api, u as endpoints } from "./api-BG98lkot.esm.js";
5
+ import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-DMEWFeEv.esm.js";
6
+ import "./sessionInitializer-D1lusXsG.esm.js";
7
+ import { t as addDeviceStats } from "./stats-D3Cxg6PL.esm.js";
8
8
  import { c as isIPhone14OrHigher, i as isDesktop } from "./platform-DkcRc9JV.esm.js";
9
9
  import { i as requestCameraAccess, o as stopCameraStream, r as getCameraReacquisitionConstraints } from "./camera-sIa9ceW2.esm.js";
10
10
  import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
11
- import { o as StreamCanvasProcessingSession } from "./multipartRecordingService-CtTauPSp.esm.js";
11
+ import { o as StreamCanvasProcessingSession } from "./multipartRecordingService-YhlbyjI4.esm.js";
12
12
  import { i as hasBackCamera, n as getBackCameraStream, r as getDesktopCameraStream, t as ensureFrontCameraStream } from "./backCameraStream-CMvXj4X4.esm.js";
13
- import "./deepsightService-BVmNK8z5.esm.js";
13
+ import "./deepsightService-CxXJYLyh.esm.js";
14
14
  import { t as getDeviceClass } from "./getDeviceClass-bsWdEDxP.esm.js";
15
15
  //#region src/internal/faceCapture/onDeviceFaceResults.ts
16
16
  /**
@@ -271,7 +271,7 @@ function startDetection(params) {
271
271
  };
272
272
  }
273
273
  async function initializeDeepsightSession(options) {
274
- const { loadDeepsightSession } = await import("./deepsightLoader-BZpcVUwY.esm.js");
274
+ const { loadDeepsightSession } = await import("./deepsightLoader-CRdTMYfw.esm.js");
275
275
  return loadDeepsightSession({
276
276
  ds: options.ds,
277
277
  storage: options.storage
@@ -0,0 +1,16 @@
1
+ //#region ../infra/src/capabilities/IBrowserEnvironmentCapability.ts
2
+ function getTimestamp() {
3
+ return Date.now();
4
+ }
5
+ /** Today in the user's calendar, as an ISO `YYYY-MM-DD` date. */
6
+ function getLocalIsoDate() {
7
+ const now = /* @__PURE__ */ new Date();
8
+ const month = String(now.getMonth() + 1).padStart(2, "0");
9
+ const day = String(now.getDate()).padStart(2, "0");
10
+ return `${now.getFullYear()}-${month}-${day}`;
11
+ }
12
+ function revokeObjectURL(url) {
13
+ URL.revokeObjectURL(url);
14
+ }
15
+ //#endregion
16
+ export { getTimestamp as n, revokeObjectURL as r, getLocalIsoDate as t };
@@ -9859,6 +9859,13 @@ var PhoneValidationProvider = class {
9859
9859
  } catch {}
9860
9860
  return null;
9861
9861
  }
9862
+ nationalNumber(phone, country) {
9863
+ try {
9864
+ return parsePhoneNumber(phone, country)?.nationalNumber ?? null;
9865
+ } catch {
9866
+ return null;
9867
+ }
9868
+ }
9862
9869
  };
9863
9870
  //#endregion
9864
9871
  export { metadata_min_json_default as C, withMetadataArgument as S, VALID_PUNCTUATION as _, PhoneNumber as a, getCountryCallingCode as b, applyInternationalSeparatorStyle as c, getCountryByCallingCode as d, getCountryByNationalNumber as f, VALID_DIGITS as g, PLUS_CHARS as h, parseDigits as i, extractCountryCallingCode as l, stripIddPrefix as m, PhoneValidationProvider_exports as n, FIRST_GROUP_PATTERN as o, extractNationalNumberFromPossiblyIncompleteNumber as p, parsePhoneNumber as r, formatNationalNumberUsingFormat as s, PhoneValidationProvider as t, extractCountryCallingCodeFromInternationalNumberWithoutPlusSign as u, checkNumberLength as v, isObject as x, Metadata as y };
@@ -1,6 +1,6 @@
1
1
  import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
2
- import { c as wasmCallWrapper, d as noteUnlockedCallStart, s as ML_CALL_MAX_POLLS, u as noteUnlockedCallEnd } from "./wasmWebClient-BjZw_7OB.esm.js";
3
- import { c as wasmRuntime, i as isWasmReady, o as waitForWasm, r as getWasmStatus, s as warmupWasm } from "./warmup-BElYWRh7.esm.js";
2
+ import { c as wasmCallWrapper, d as noteUnlockedCallStart, s as ML_CALL_MAX_POLLS, u as noteUnlockedCallEnd } from "./wasmWebClient-DpRiJOHd.esm.js";
3
+ import { c as wasmRuntime, i as isWasmReady, o as waitForWasm, r as getWasmStatus, s as warmupWasm } from "./warmup-CH_bd9h8.esm.js";
4
4
  //#region ../infra/src/wasm/utilityWasmApi.ts
5
5
  /**
6
6
  * Utility / metadata domain facade over {@link WasmRuntime}.
@@ -1,4 +1,4 @@
1
- import { t as api, u as endpoints } from "./api-DibA_Spu.esm.js";
1
+ import { t as api, u as endpoints } from "./api-BG98lkot.esm.js";
2
2
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
3
3
  import { t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
4
4
  const usStateOptions = Object.values({
@@ -271,36 +271,43 @@ const POSTAL_CODE_MAX_LENGTH_BY_COUNTRY = {
271
271
  UK: 8,
272
272
  AR: 8,
273
273
  CA: 7,
274
- IL: 7,
275
- CN: 6,
276
- NG: 6,
277
- DE: 5,
278
- ES: 5,
279
- FR: 5,
280
- IT: 5,
281
- KE: 5,
282
- MX: 5
274
+ NL: 6,
275
+ PT: 8
283
276
  };
284
277
  const FIXED_LENGTH_KEY = "verification.errors.invalidPostalCodeFixedLength";
278
+ /**
279
+ * Countries whose postal code is a fixed number of digits. It sets the
280
+ * check, the input's max length and the digits-only typing mask.
281
+ */
285
282
  const FIXED_DIGIT_POSTAL_CODE_LENGTH = {
283
+ BE: 4,
284
+ DK: 4,
285
+ NO: 4,
286
+ PH: 4,
286
287
  DE: 5,
287
288
  ES: 5,
289
+ FI: 5,
288
290
  FR: 5,
291
+ GR: 5,
289
292
  IT: 5,
290
293
  KE: 5,
291
294
  MX: 5,
292
295
  CN: 6,
296
+ IN: 6,
293
297
  NG: 6,
298
+ SG: 6,
294
299
  IL: 7
295
300
  };
296
301
  function getPostalCodeMaxLength(country) {
297
- return POSTAL_CODE_MAX_LENGTH_BY_COUNTRY[country] ?? 8;
302
+ return POSTAL_CODE_MAX_LENGTH_BY_COUNTRY[country] ?? FIXED_DIGIT_POSTAL_CODE_LENGTH[country] ?? 8;
298
303
  }
299
304
  function getPostalCodeErrorKey(country) {
300
305
  if (country in FIXED_DIGIT_POSTAL_CODE_LENGTH) return FIXED_LENGTH_KEY;
301
306
  if (country === "CA") return "verification.errors.CAPostalCodeInvalidFormat";
302
307
  if (country === "AR") return "verification.errors.ARPostalCodeInvalidFormat";
303
308
  if (country === "GB" || country === "UK") return "verification.errors.UKPostalCodeInvalidFormat";
309
+ if (country === "NL") return "verification.errors.NLPostalCodeInvalidFormat";
310
+ if (country === "PT") return "verification.errors.PTPostalCodeInvalidFormat";
304
311
  if (country === "US") return "verification.errors.zipCodeInvalidFormat";
305
312
  return "verification.errors.postalCodeInvalidFormat";
306
313
  }
@@ -309,15 +316,18 @@ const BR_POSTAL_CODE_REGEX = /^(?:\d{5}|\d{8}|\d{5}-\d{3})$/;
309
316
  const CA_POSTAL_CODE_REGEX = /^[A-Za-z]\d[A-Za-z] \d[A-Za-z]\d$/;
310
317
  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}$/;
311
318
  const AR_POSTAL_CODE_REGEX = /^[A-Za-z]\d{4}[A-Za-z]{3}$/;
312
- const FIVE_DIGIT_REGEX = /^\d{5}$/;
313
- const SIX_DIGIT_REGEX = /^\d{6}$/;
314
- const IL_POSTAL_CODE_REGEX = /^\d{7}$/;
319
+ /** Four digits and two uppercase letters, such as 1016DV. */
320
+ const NL_POSTAL_CODE_REGEX = /^\d{4}[A-Z]{2}$/;
321
+ /** Seven digits, the first 1 to 9, with or without a hyphen: 4430-458. */
322
+ const PT_POSTAL_CODE_REGEX = /^[1-9]\d{3}-?\d{3}$/;
315
323
  /**
316
324
  * Validates a postal code by country.
317
325
  * Covers all countries used by eKYC and eKYB.
318
326
  */
319
327
  function validatePostalCode(postalCode, country) {
320
328
  if (!postalCode) return false;
329
+ const fixedDigits = FIXED_DIGIT_POSTAL_CODE_LENGTH[country];
330
+ if (fixedDigits !== void 0) return postalCode.length === fixedDigits && /^\d+$/.test(postalCode);
321
331
  switch (country) {
322
332
  case "US": return US_POSTAL_CODE_REGEX.test(postalCode);
323
333
  case "BR": return BR_POSTAL_CODE_REGEX.test(postalCode);
@@ -325,15 +335,8 @@ function validatePostalCode(postalCode, country) {
325
335
  case "GB":
326
336
  case "UK": return UK_POSTAL_CODE_REGEX.test(postalCode.toUpperCase());
327
337
  case "AR": return AR_POSTAL_CODE_REGEX.test(postalCode.replace(/\s/g, "").toUpperCase());
328
- case "IL": return IL_POSTAL_CODE_REGEX.test(postalCode);
329
- case "CN":
330
- case "NG": return SIX_DIGIT_REGEX.test(postalCode);
331
- case "DE":
332
- case "FR":
333
- case "IT":
334
- case "ES":
335
- case "MX":
336
- case "KE": return FIVE_DIGIT_REGEX.test(postalCode);
338
+ case "NL": return NL_POSTAL_CODE_REGEX.test(postalCode);
339
+ case "PT": return PT_POSTAL_CODE_REGEX.test(postalCode);
337
340
  case "CM": return postalCode.length > 0;
338
341
  default: {
339
342
  const stripped = postalCode.replace(/\D/g, "");
@@ -346,6 +349,8 @@ function validatePostalCode(postalCode, country) {
346
349
  * Covers all countries used by eKYC and eKYB.
347
350
  */
348
351
  function formatPostalCode(value, country) {
352
+ const fixedDigits = FIXED_DIGIT_POSTAL_CODE_LENGTH[country];
353
+ if (fixedDigits !== void 0) return value.replace(/\D/g, "").slice(0, fixedDigits);
349
354
  if (country === "US" || country === "BR") {
350
355
  const maxDigits = country === "US" ? 9 : 8;
351
356
  const hasDash = value.includes("-");
@@ -357,7 +362,6 @@ function formatPostalCode(value, country) {
357
362
  if (hasDash) return `${digits.slice(0, 5)}-${digits.slice(5)}`;
358
363
  return digits;
359
364
  }
360
- if (country === "ES") return value.replace(/\D/g, "").slice(0, 5);
361
365
  if (country === "CA") {
362
366
  const normalized = value.replace(/[^A-Za-z0-9]/g, "").toUpperCase().slice(0, 6);
363
367
  if (normalized.length <= 3) return normalized;
@@ -369,9 +373,11 @@ function formatPostalCode(value, country) {
369
373
  return `${normalized.slice(0, -3)} ${normalized.slice(-3)}`;
370
374
  }
371
375
  if (country === "AR") return value.replace(/[^A-Za-z0-9]/g, "").toUpperCase().slice(0, 8);
372
- if (country === "IL") return value.replace(/\D/g, "").slice(0, 7);
373
- if (country === "CN" || country === "NG") return value.replace(/\D/g, "").slice(0, 6);
374
- if (country === "DE" || country === "FR" || country === "IT" || country === "MX" || country === "KE") return value.replace(/\D/g, "").slice(0, 5);
376
+ if (country === "PT") {
377
+ const digits = value.replace(/\D/g, "").slice(0, 7);
378
+ return digits.length <= 4 ? digits : `${digits.slice(0, 4)}-${digits.slice(4)}`;
379
+ }
380
+ if (country === "NL") return `${value.replace(/\D/g, "").slice(0, 4)}${value.replace(/[^A-Za-z]/g, "").slice(0, 2).toUpperCase()}`;
375
381
  return value.slice(0, 8);
376
382
  }
377
383
  //#endregion
@@ -445,7 +451,17 @@ function checkSupport(definition, ids) {
445
451
  path: `groups.${policy.group}`
446
452
  });
447
453
  });
448
- definition.groupRules?.forEach((rule, i) => need("groupRule", ids.groupRules, rule.id, `groupRules[${i}]`));
454
+ definition.groupRules?.forEach((rule, i) => {
455
+ need("groupRule", ids.groupRules, rule.id, `groupRules[${i}]`);
456
+ const cases = rule.id === "rulesByOption" ? rule.params?.cases : void 0;
457
+ if (cases && typeof cases === "object" && !Array.isArray(cases)) for (const [value, rules] of Object.entries(cases)) {
458
+ if (!Array.isArray(rules)) continue;
459
+ rules.forEach((ref, j) => {
460
+ const id = ref?.id;
461
+ need("rule", ids.rules, typeof id === "string" ? id : "(missing)", `groupRules[${i}].params.cases.${value}[${j}]`);
462
+ });
463
+ }
464
+ });
449
465
  definition.collections?.forEach((collection) => {
450
466
  need("group", ids.groups, collection.group, `collections.${collection.id}`);
451
467
  collection.fields.forEach((field) => checkField(field, `collections.${collection.id}.fields.${field.name}`));
@@ -514,6 +530,28 @@ function resolveForm(definition, context) {
514
530
  };
515
531
  }
516
532
  //#endregion
533
+ //#region src/internal/formDefinitionsRollout/formDefinitionsRollout.ts
534
+ /**
535
+ * The rollout switch for form definitions (ENG-59781): one all-or-nothing
536
+ * answer to "do eKYC and eKYB build their forms from catalog definitions, or
537
+ * with today's builders?". Both module adapters ask it before selecting a
538
+ * definition (`selectEkycDefinition`, `selectEkybForm`); the forms kernel
539
+ * (`internal/forms`) knows nothing about it.
540
+ *
541
+ * Off by default, so every source and country keeps today's builder. A
542
+ * catalog-only eKYC source, one today's builder never knew, uses its
543
+ * definition either way, since it has no old path to fall back to.
544
+ *
545
+ * This is Incode's rollout decision, not the integrator's: it is not a
546
+ * `setup()` option. A later step reads a Statsig gate here instead of the
547
+ * constant.
548
+ */
549
+ const ENABLED_BY_DEFAULT = false;
550
+ /** Whether sources and countries with a form definition use it. */
551
+ function isFormDefinitionsEnabled() {
552
+ return ENABLED_BY_DEFAULT;
553
+ }
554
+ //#endregion
517
555
  //#region src/shared/addressSearch.ts
518
556
  /** Searches for address suggestions via the address autocomplete API. */
519
557
  async function searchAddress(query, signal) {
@@ -560,4 +598,4 @@ const debounceSearchActor = fromCallback(({ input, sendBack }) => {
560
598
  };
561
599
  });
562
600
  //#endregion
563
- export { FIXED_DIGIT_POSTAL_CODE_LENGTH as a, getPostalCodeMaxLength as c, STREET_LEVEL_REQUIRED_ERROR as d, fillFromSuggestion as f, checkSupport as i, validatePostalCode as l, usStateOptions as m, resolveForm as n, formatPostalCode as o, getStreetLevelErrorForSuggestion as p, createBundledDefinitionSource as r, getPostalCodeErrorKey as s, debounceSearchActor as t, DYNAMIC_REQUIRED_KEY as u };
601
+ export { checkSupport as a, getPostalCodeErrorKey as c, DYNAMIC_REQUIRED_KEY as d, STREET_LEVEL_REQUIRED_ERROR as f, usStateOptions as h, createBundledDefinitionSource as i, getPostalCodeMaxLength as l, getStreetLevelErrorForSuggestion as m, isFormDefinitionsEnabled as n, FIXED_DIGIT_POSTAL_CODE_LENGTH as o, fillFromSuggestion as p, resolveForm as r, formatPostalCode as s, debounceSearchActor as t, validatePostalCode as u };
@@ -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-BD0n65se.esm.js";
1
+ import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-a9Tt2VFy.esm.js";
2
2
  //#region src/modules/ae-signature/index.ts
3
3
  function createAeSignatureManager(options) {
4
4
  return createElectronicSignatureManager({ config: {
@@ -1,3 +1,3 @@
1
- import { t as antifraudMachine } from "./antifraudStateMachine-D8_nlJ1M.esm.js";
2
- import { n as createAntifraudManagerFromActor, t as createAntifraudManager } from "./antifraudManager-BwcrZg0n.esm.js";
1
+ import { t as antifraudMachine } from "./antifraudStateMachine-C0Fvysdf.esm.js";
2
+ import { n as createAntifraudManagerFromActor, t as createAntifraudManager } from "./antifraudManager-Bcv2EsSL.esm.js";
3
3
  export { antifraudMachine, createAntifraudManager, createAntifraudManagerFromActor };
@@ -1,7 +1,7 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-D98twgMK.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dh1gMk0J.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
4
- import { t as antifraudMachine } from "./antifraudStateMachine-D8_nlJ1M.esm.js";
4
+ import { t as antifraudMachine } from "./antifraudStateMachine-C0Fvysdf.esm.js";
5
5
  //#region src/modules/antifraud/antifraudActor.ts
6
6
  function createAntifraudActor() {
7
7
  return createActor(antifraudMachine).start();
@@ -1,4 +1,4 @@
1
- import { t as api, u as endpoints } from "./api-DibA_Spu.esm.js";
1
+ import { t as api, u as endpoints } from "./api-BG98lkot.esm.js";
2
2
  import { t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
3
3
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
4
4
  //#region src/modules/antifraud/antifraudServices.ts
@@ -1,4 +1,4 @@
1
- import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
1
+ import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
2
2
  //#region src/internal/http/endpoints.ts
3
3
  const endpoints = {
4
4
  createSession: "/omni/start",
@@ -1,4 +1,4 @@
1
- import { d as categoryForEndpoint, u as trueSightLog } from "./trueSightService-Dl6YUCJh.esm.js";
1
+ import { d as categoryForEndpoint, u as trueSightLog } from "./trueSightService-DMEWFeEv.esm.js";
2
2
  //#region src/internal/http/apiError.ts
3
3
  /**
4
4
  * Incode API error.
@@ -1,4 +1,4 @@
1
- import { r as getToken } from "./api-DibA_Spu.esm.js";
1
+ import { r as getToken } from "./api-BG98lkot.esm.js";
2
2
  import { a as watchConnectivity } from "./connectivity-HSl0diCx.esm.js";
3
3
  //#region src/internal/session/attemptCarry.ts
4
4
  const carried = /* @__PURE__ */ new Map();
@@ -1,4 +1,4 @@
1
- import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-1hzeS_rB.js";
2
- import { t as AuthenticationConfig } from "./types-zOgZqMni.js";
3
- import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-BIZC55Bi.js";
1
+ import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-vchnR2CA.js";
2
+ import { t as AuthenticationConfig } from "./types-Cp_84WIM.js";
3
+ import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-CC67pNoL.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-CNwJwOfc.esm.js";
2
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-Da1r0Qu2.esm.js";
1
+ import { t as authenticationMachine } from "./authenticationStateMachine-BM-KI6oI.esm.js";
2
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-QR2pMTpQ.esm.js";
3
3
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-C9T5amUN.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-1hzeS_rB.js";
3
+ import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-vchnR2CA.js";
4
4
  //#region src/modules/authentication/authenticationManager.d.ts
5
5
  type AuthenticationState = FaceCaptureManagerState;
6
6
  /**
@@ -1,9 +1,9 @@
1
- import { u as BrowserStorageProvider } from "./setup-YOVZRt-9.esm.js";
2
- import { t as WasmUtilProvider } from "./WasmUtilProvider-DtJuBdt-.esm.js";
3
- import { n as eventModuleNames } from "./events-D98twgMK.esm.js";
1
+ import { u as BrowserStorageProvider } from "./setup-Bdvivqmb.esm.js";
2
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-BmtXHqwK.esm.js";
3
+ import { n as eventModuleNames } from "./events-Dh1gMk0J.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-DSajW7CJ.esm.js";
5
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-JqxokvT2.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-CNwJwOfc.esm.js";
5
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-DOhPvAnT.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-BM-KI6oI.esm.js";
7
7
  //#region src/modules/authentication/authenticationActor.ts
8
8
  function createAuthenticationActor(options) {
9
9
  const dependencies = options.dependencies ?? {
@@ -1,8 +1,8 @@
1
1
  import { i as assign } from "./xstate.esm-DSajW7CJ.esm.js";
2
2
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
3
- import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-DZRH3gqE.esm.js";
4
- import { d as FACE_ERROR_CODES, f as isOnDeviceMode } from "./FaceDetectionProvider-Dn3_Fe7w.esm.js";
5
- import { o as PROTECTED_CAPTURE_TARGET } from "./createCameraCycleOwnership-DeOVMWUZ.esm.js";
3
+ import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-CjPy0vAj.esm.js";
4
+ import { d as FACE_ERROR_CODES, f as isOnDeviceMode } from "./FaceDetectionProvider-DB-l4l7w.esm.js";
5
+ import { o as PROTECTED_CAPTURE_TARGET } from "./createCameraCycleOwnership-EMOiqj48.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,
@@ -1,2 +1,2 @@
1
- import { a as requestPermission, t as checkPermission } from "./permissionServices-Ca-tSNhT.esm.js";
1
+ import { a as requestPermission, t as checkPermission } from "./permissionServices-DXlzBQ7G.esm.js";
2
2
  export { checkPermission as checkCameraPermission, requestPermission as requestCameraPermission };
@@ -1,3 +1,3 @@
1
- import { a as MIN_PASSWORD_LENGTH, i as validatePassword, n as emptyPasswordValidations, o as PASSWORD_VALIDATION_KEYS, r as isPasswordValid, s as REQUIREMENT_I18N_KEYS, t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-DCUb94gC.esm.js";
2
- import { n as createCertificateIssuanceManagerFromActor, t as createCertificateIssuanceManager } from "./certificateIssuanceManager-Cqxlxd2J.esm.js";
1
+ import { a as MIN_PASSWORD_LENGTH, i as validatePassword, n as emptyPasswordValidations, o as PASSWORD_VALIDATION_KEYS, r as isPasswordValid, s as REQUIREMENT_I18N_KEYS, t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-CWRTfSXx.esm.js";
2
+ import { n as createCertificateIssuanceManagerFromActor, t as createCertificateIssuanceManager } from "./certificateIssuanceManager-BQP6WIJ9.esm.js";
3
3
  export { MIN_PASSWORD_LENGTH, PASSWORD_VALIDATION_KEYS, REQUIREMENT_I18N_KEYS, certificateIssuanceMachine, createCertificateIssuanceManager, createCertificateIssuanceManagerFromActor, emptyPasswordValidations, isPasswordValid, validatePassword };
@@ -1,6 +1,6 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-D98twgMK.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dh1gMk0J.esm.js";
2
2
  import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
3
- import { r as isPasswordValid, t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-DCUb94gC.esm.js";
3
+ import { r as isPasswordValid, t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-CWRTfSXx.esm.js";
4
4
  //#region src/modules/certificate-issuance/certificateIssuanceActor.ts
5
5
  /**
6
6
  * Creates and starts a certificate issuance actor.
@@ -1,4 +1,4 @@
1
- import { n as getApi, r as getToken, u as endpoints } from "./api-DibA_Spu.esm.js";
1
+ import { n as getApi, r as getToken, u as endpoints } from "./api-BG98lkot.esm.js";
2
2
  import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
3
3
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
4
4
  import { t as externalFetch } from "./externalFetch-CQY41QT1.esm.js";
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-DXetSxcx.js";
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-_q9yJUku.js";
2
2
  export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
@@ -1,3 +1,3 @@
1
- import { t as consentMachine } from "./consentStateMachine-QyV_al8N.esm.js";
2
- import { n as createConsentManagerFromActor, t as createConsentManager } from "./consentManager-P-KfaJUT.esm.js";
1
+ import { t as consentMachine } from "./consentStateMachine-fujN6qEM.esm.js";
2
+ import { n as createConsentManagerFromActor, t as createConsentManager } from "./consentManager-D8TzUU2I.esm.js";
3
3
  export { consentMachine, createConsentManager, createConsentManagerFromActor };
@@ -1,7 +1,7 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-D98twgMK.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dh1gMk0J.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
4
- import { t as consentMachine } from "./consentStateMachine-QyV_al8N.esm.js";
4
+ import { t as consentMachine } from "./consentStateMachine-fujN6qEM.esm.js";
5
5
  //#region src/modules/consent/consentActor.ts
6
6
  function createConsentActor(options) {
7
7
  return createActor(consentMachine, { input: { config: options.config } }).start();
@@ -78,18 +78,10 @@ declare const consentMachine: StateMachine<ConsentContext, {
78
78
  type: "setError";
79
79
  params: NonReducibleUnknown;
80
80
  };
81
- clearError: {
82
- type: "clearError";
83
- params: NonReducibleUnknown;
84
- };
85
81
  setLoadError: {
86
82
  type: "setLoadError";
87
83
  params: NonReducibleUnknown;
88
84
  };
89
- resetContext: {
90
- type: "resetContext";
91
- params: NonReducibleUnknown;
92
- };
93
85
  setConsentData: {
94
86
  type: "setConsentData";
95
87
  params: NonReducibleUnknown;
@@ -98,10 +90,18 @@ declare const consentMachine: StateMachine<ConsentContext, {
98
90
  type: "toggleCheckbox";
99
91
  params: NonReducibleUnknown;
100
92
  };
93
+ clearError: {
94
+ type: "clearError";
95
+ params: NonReducibleUnknown;
96
+ };
97
+ resetContext: {
98
+ type: "resetContext";
99
+ params: NonReducibleUnknown;
100
+ };
101
101
  }>, {
102
102
  type: "canSubmit";
103
103
  params: unknown;
104
- }, never, "error" | "idle" | "finished" | "loading" | "submitting" | "display", string, ConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
104
+ }, never, "error" | "idle" | "finished" | "submitting" | "loading" | "display", string, ConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
105
105
  readonly id: "consent";
106
106
  readonly initial: "idle";
107
107
  readonly context: ({ input }: {
@@ -1,4 +1,4 @@
1
- import { t as api, u as endpoints } from "./api-DibA_Spu.esm.js";
1
+ import { t as api, u as endpoints } from "./api-BG98lkot.esm.js";
2
2
  import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
3
3
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
4
4
  //#region src/modules/consent/consentServices.ts
@@ -1,6 +1,6 @@
1
- import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
2
- import { c as wasmRuntime, l as CAMERA_CYCLE_OWNERSHIP_DOMAIN, u as getCameraCycleOwnershipDomain } from "./warmup-BElYWRh7.esm.js";
3
- import { t as api, u as endpoints } from "./api-DibA_Spu.esm.js";
1
+ import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
2
+ import { c as wasmRuntime, l as CAMERA_CYCLE_OWNERSHIP_DOMAIN, u as getCameraCycleOwnershipDomain } from "./warmup-CH_bd9h8.esm.js";
3
+ import { t as api, u as endpoints } from "./api-BG98lkot.esm.js";
4
4
  import { t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
5
5
  //#region ../infra/src/capabilities/ICameraCycleCapability.ts
6
6
  /**
@@ -1,2 +1,2 @@
1
- import { n as createCrossDocumentDataMatchManagerFromActor, r as crossDocumentDataMatchMachine, t as createCrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-DsMEIE6e.esm.js";
1
+ import { n as createCrossDocumentDataMatchManagerFromActor, r as crossDocumentDataMatchMachine, t as createCrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-BN35sW3g.esm.js";
2
2
  export { createCrossDocumentDataMatchManager, createCrossDocumentDataMatchManagerFromActor, crossDocumentDataMatchMachine };
@@ -1,5 +1,5 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-D98twgMK.esm.js";
2
- import { t as api, u as endpoints } from "./api-DibA_Spu.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dh1gMk0J.esm.js";
2
+ import { t as api, u as endpoints } from "./api-BG98lkot.esm.js";
3
3
  import { s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
5
5
  import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
@@ -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-C9sqoh9n.js";
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-HRSYsugw.js";
2
2
  //#region src/modules/curp-validation/curpValidationUtils.d.ts
3
3
  type MexicanState = {
4
4
  value: string;
@@ -1,3 +1,3 @@
1
- import { a as mexicanStates, n as ENTER_CURP_FIELD, r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-Cv974Od7.esm.js";
2
- import { n as createCurpValidationManagerFromActor, t as createCurpValidationManager } from "./curpValidationManager-CFNdKD46.esm.js";
1
+ import { i as mexicanStates, n as ENTER_CURP_FIELD, r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-CFmEkT4f.esm.js";
2
+ import { n as createCurpValidationManagerFromActor, t as createCurpValidationManager } from "./curpValidationManager-HRRI_djy.esm.js";
3
3
  export { ENTER_CURP_FIELD, GENERATE_CURP_FIELDS, createCurpValidationManager, createCurpValidationManagerFromActor, curpValidationMachine, mexicanStates };
@@ -1,7 +1,8 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-D98twgMK.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dh1gMk0J.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
4
- import { i as isValidCurp, r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-Cv974Od7.esm.js";
4
+ import { t as isValidCurp } from "./nationalIds-B91f_RuB.esm.js";
5
+ import { r as GENERATE_CURP_FIELDS, t as curpValidationMachine } from "./curpValidationStateMachine-CFmEkT4f.esm.js";
5
6
  //#region src/modules/curp-validation/curpValidationActor.ts
6
7
  function createCurpValidationActor(options) {
7
8
  return createActor(curpValidationMachine, { input: { config: options.config } }).start();
@@ -1,7 +1,7 @@
1
1
  import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
2
2
  import { t as Manager } from "./Manager-C9T5amUN.js";
3
3
  import "./Actor-DpTj5PFb.js";
4
- import { i as FlowModuleConfig } from "./types-B6HsSzpk.js";
4
+ import { i as FlowModuleConfig } from "./types-tsXa6u2J.js";
5
5
  //#region src/modules/curp-validation/types.d.ts
6
6
  type CurpValidationConfig = FlowModuleConfig['CURP_VALIDATION'] & {
7
7
  /** Maximum validation retries before auto-advancing. @default 1 */
@@ -1,12 +1,9 @@
1
- import { t as api, u as endpoints } from "./api-DibA_Spu.esm.js";
1
+ import { t as api, u as endpoints } from "./api-BG98lkot.esm.js";
2
2
  import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
3
3
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
4
- import { t as carryAttempts } from "./attemptCarry-D8p84a3b.esm.js";
4
+ import { t as carryAttempts } from "./attemptCarry-DpuNCHQS.esm.js";
5
+ import { t as isValidCurp } from "./nationalIds-B91f_RuB.esm.js";
5
6
  //#region src/modules/curp-validation/curpValidationUtils.ts
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)$/;
7
- function isValidCurp(curp) {
8
- return typeof curp === "string" && curp.length === 18 && CURP_PATTERN.test(curp.toUpperCase());
9
- }
10
7
  /** Convert YYYY-MM-DD to DD/MM/YYYY for the API */
11
8
  function formatDateForApi(date) {
12
9
  const [year, month, day] = date.split("-");
@@ -617,4 +614,4 @@ const curpValidationMachine = setup({
617
614
  }
618
615
  });
619
616
  //#endregion
620
- export { mexicanStates as a, isValidCurp as i, ENTER_CURP_FIELD as n, GENERATE_CURP_FIELDS as r, curpValidationMachine as t };
617
+ export { mexicanStates as i, ENTER_CURP_FIELD as n, GENERATE_CURP_FIELDS as r, curpValidationMachine as t };
@@ -1,2 +1,2 @@
1
- import { n as createCustomFieldsManagerFromActor, r as customFieldsMachine, t as createCustomFieldsManager } from "./customFieldsManager-BQwd7ePG.esm.js";
1
+ import { n as createCustomFieldsManagerFromActor, r as customFieldsMachine, t as createCustomFieldsManager } from "./customFieldsManager-BJlPFi1I.esm.js";
2
2
  export { createCustomFieldsManager, createCustomFieldsManagerFromActor, customFieldsMachine };
@@ -1,3 +1,3 @@
1
- import { t as customWatchlistMachine } from "./customWatchlistStateMachine-CmSNuU2y.esm.js";
2
- import { n as createCustomWatchlistManagerFromActor, t as createCustomWatchlistManager } from "./customWatchlistManager-CqmaXZ3M.esm.js";
1
+ import { t as customWatchlistMachine } from "./customWatchlistStateMachine-BOaxa3XO.esm.js";
2
+ import { n as createCustomWatchlistManagerFromActor, t as createCustomWatchlistManager } from "./customWatchlistManager-Dqzf_LJ3.esm.js";
3
3
  export { createCustomWatchlistManager, createCustomWatchlistManagerFromActor, customWatchlistMachine };
@@ -1,5 +1,5 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-D98twgMK.esm.js";
2
- import { t as api, u as endpoints } from "./api-DibA_Spu.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dh1gMk0J.esm.js";
2
+ import { t as api, u as endpoints } from "./api-BG98lkot.esm.js";
3
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
4
  import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
@@ -1,7 +1,7 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-D98twgMK.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dh1gMk0J.esm.js";
2
2
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
3
3
  import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
4
- import { t as customWatchlistMachine } from "./customWatchlistStateMachine-CmSNuU2y.esm.js";
4
+ import { t as customWatchlistMachine } from "./customWatchlistStateMachine-BOaxa3XO.esm.js";
5
5
  //#region src/modules/custom-watchlist/customWatchlistActor.ts
6
6
  function createCustomWatchlistActor() {
7
7
  return createActor(customWatchlistMachine).start();
@@ -1,4 +1,4 @@
1
- import { t as api, u as endpoints } from "./api-DibA_Spu.esm.js";
1
+ import { t as api, u as endpoints } from "./api-BG98lkot.esm.js";
2
2
  import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
3
3
  import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
4
4
  //#region src/modules/custom-watchlist/customWatchlistServices.ts