@incodetech/core 2.4.0-rc.4 → 2.4.1-agentic

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 (230) hide show
  1. package/dist/{FaceDetectionProvider-CzQEFzP8.esm.js → FaceDetectionProvider-B83VmClw.esm.js} +29 -64
  2. package/dist/IBrowserEnvironmentCapability-D7JG7ML3.esm.js +16 -0
  3. package/dist/IGeolocationCapability-r49Qo7rR.d.ts +10 -0
  4. package/dist/{IWasmUtilCapability-GF2n7sfm.d.ts → IWasmUtilCapability-Cqiaxydi.d.ts} +31 -4
  5. package/dist/{PhoneValidationProvider-SZiOS0jB.esm.js → PhoneValidationProvider-Co4zk2en.esm.js} +7 -0
  6. package/dist/{StreamCanvasCapture-7JRf-2ck.d.ts → StreamCanvasCapture-C3xNfOsv.d.ts} +12 -3
  7. package/dist/{WasmUtilProvider-DtJuBdt-.esm.js → WasmUtilProvider-GTkoJyFY.esm.js} +75 -22
  8. package/dist/{addressSearch-DPjIKJrX.esm.js → addressSearch-41sMcnJk.esm.js} +72 -31
  9. package/dist/{advanceableErrors-q_pfU3Cn.esm.js → advanceableErrors-k-U-cL5m.esm.js} +1 -2
  10. package/dist/ae-signature.esm.js +1 -1
  11. package/dist/antifraud.esm.js +2 -2
  12. package/dist/{antifraudManager-CaweCYnY.esm.js → antifraudManager-CQ08atTC.esm.js} +2 -2
  13. package/dist/{antifraudStateMachine-DRl0UVyA.esm.js → antifraudStateMachine-BcsUTTIr.esm.js} +1 -1
  14. package/dist/{api-Cz90EHyu.esm.js → api-BO8JA7Pf.esm.js} +6 -5
  15. package/dist/{apiError-B_uY7RO6.esm.js → apiError-CfuIvnUy.esm.js} +1 -1
  16. package/dist/attemptCarry-BjTJ6bMQ.esm.js +45 -0
  17. package/dist/authentication.d.ts +3 -3
  18. package/dist/authentication.esm.js +2 -2
  19. package/dist/{authenticationManager-BIZC55Bi.d.ts → authenticationManager-C-cOki0Y.d.ts} +1 -1
  20. package/dist/{authenticationManager-CSHZQTlb.esm.js → authenticationManager-DvmklBTE.esm.js} +5 -5
  21. package/dist/{authenticationStateMachine-DrO14KyC.esm.js → authenticationStateMachine-BL2ptOA0.esm.js} +3 -3
  22. package/dist/{backCameraStream-CMvXj4X4.esm.js → backCameraStream-C5_NNfUN.esm.js} +3 -43
  23. package/dist/{browser-DlFgHpoC-DnyrCR8r.esm.js → browser-pQZA35G2-DtkAf6sn.esm.js} +161 -150
  24. package/dist/{camera-sIa9ceW2.esm.js → camera-E_Kcre4O.esm.js} +15 -23
  25. package/dist/camera.esm.js +1 -1
  26. package/dist/certificate-issuance.esm.js +2 -2
  27. package/dist/{certificateIssuanceManager-BfeMv2PU.esm.js → certificateIssuanceManager-CM0fuqDC.esm.js} +2 -2
  28. package/dist/{certificateIssuanceStateMachine-Frgjbjw8.esm.js → certificateIssuanceStateMachine-kksIUOPD.esm.js} +2 -2
  29. package/dist/cnpj-Co1ottYN.esm.js +77 -0
  30. package/dist/connectivity-HSl0diCx.esm.js +133 -0
  31. package/dist/consent.d.ts +1 -1
  32. package/dist/consent.esm.js +2 -2
  33. package/dist/{consentManager-CvEu8h_W.esm.js → consentManager-CBwFozhv.esm.js} +4 -3
  34. package/dist/{consentManager-Cv_0QKLD.d.ts → consentManager-_q9yJUku.d.ts} +14 -7
  35. package/dist/{consentStateMachine-DJTgN_-1.esm.js → consentStateMachine-CpmRAcr2.esm.js} +20 -7
  36. package/dist/cross-document-data-match.esm.js +1 -1
  37. package/dist/{crossDocumentDataMatchManager-Cu141CE8.esm.js → crossDocumentDataMatchManager-64O8t10a.esm.js} +2 -2
  38. package/dist/curp-validation.d.ts +1 -1
  39. package/dist/curp-validation.esm.js +2 -2
  40. package/dist/{curpValidationManager-B-z9q5V3.esm.js → curpValidationManager-CLgJQcx0.esm.js} +3 -2
  41. package/dist/{curpValidationManager-C9sqoh9n.d.ts → curpValidationManager-CXpFE-Mv.d.ts} +1 -1
  42. package/dist/{curpValidationStateMachine-vDEFLMPw.esm.js → curpValidationStateMachine-Bx9YhVkJ.esm.js} +28 -20
  43. package/dist/custom-fields.esm.js +1 -1
  44. package/dist/custom-watchlist.esm.js +2 -2
  45. package/dist/{customFieldsManager-D1ex2cFM.esm.js → customFieldsManager-DWt_0YtJ.esm.js} +2 -2
  46. package/dist/{customWatchlistManager-CTI-SGk0.esm.js → customWatchlistManager-D8o-2Nej.esm.js} +2 -2
  47. package/dist/{customWatchlistStateMachine-hmRd0f2I.esm.js → customWatchlistStateMachine-Sbi6DIcK.esm.js} +1 -1
  48. package/dist/{deepsightLoader-DkrG5zbN.esm.js → deepsightLoader-DMxtowCm.esm.js} +6 -28
  49. package/dist/{deepsightService-BrltL1DF.esm.js → deepsightService-twg3bXqY.esm.js} +20 -59
  50. package/dist/{createCameraCycleOwnership-Dj_LHUvN.esm.js → desktopCameraElection-kHY2IDJi.esm.js} +177 -40
  51. package/dist/device.esm.js +2 -2
  52. package/dist/document-capture.d.ts +2 -2
  53. package/dist/document-capture.esm.js +2 -2
  54. package/dist/{documentCaptureManager-DkyDtm3Y.d.ts → documentCaptureManager-6tnnDkMX.d.ts} +14 -2
  55. package/dist/{documentCaptureManager-DUJwpKC5.esm.js → documentCaptureManager-CMSC_Mhd.esm.js} +26 -19
  56. package/dist/{documentCaptureStateMachine-B8i7GnLh.esm.js → documentCaptureStateMachine-BCwD5Rto.esm.js} +43 -35
  57. package/dist/dynamic-forms.d.ts +2 -2
  58. package/dist/dynamic-forms.esm.js +2 -2
  59. package/dist/{dynamicFormsManager-C0dHs1ty.d.ts → dynamicFormsManager-9kwY8Bf5.d.ts} +1 -1
  60. package/dist/{dynamicFormsManager-D7Xnjm7B.esm.js → dynamicFormsManager-DU6W1e20.esm.js} +2 -2
  61. package/dist/{dynamicFormsStateMachine-Cgk0VPP4.esm.js → dynamicFormsStateMachine-C8Z7k3vo.esm.js} +2 -2
  62. package/dist/ekyb.d.ts +4 -4
  63. package/dist/ekyb.esm.js +3 -3
  64. package/dist/{ekybManager-BaZ_7CEu.d.ts → ekybManager-TB6ZG5lX.d.ts} +2 -2
  65. package/dist/{ekybManager-yj_Y36jM.esm.js → ekybManager-TGfqyjuu.esm.js} +2 -2
  66. package/dist/{ekybStateMachine-DIRBMkaD.esm.js → ekybStateMachine-DBgFuEPK.esm.js} +26 -44
  67. package/dist/ekyc.d.ts +3 -3
  68. package/dist/ekyc.esm.js +3 -3
  69. package/dist/{ekycManager-DW-ynodd.d.ts → ekycManager-BSQteIfC.d.ts} +1 -1
  70. package/dist/{ekycManager-BO-Lui3t.esm.js → ekycManager-C2cgG2Pl.esm.js} +2 -2
  71. package/dist/ekycStateMachine-CuNF7z4O.esm.js +7505 -0
  72. package/dist/ekycUtils-BFncpC4F.esm.js +1401 -0
  73. package/dist/electronic-signature.esm.js +1 -1
  74. package/dist/{electronicSignatureManager-Btsa7Prh.esm.js → electronicSignatureManager-C7pqXsRm.esm.js} +4 -4
  75. package/dist/email.esm.js +2 -2
  76. package/dist/{emailManager-ButFktRm.esm.js → emailManager-FH_CP0cT.esm.js} +2 -2
  77. package/dist/{emailStateMachine-BXtlC0NV.esm.js → emailStateMachine-Cx-uTaBV.esm.js} +32 -20
  78. package/dist/{events-Du2A4-Qr.esm.js → events-CQteqXfy.esm.js} +2 -2
  79. package/dist/events.esm.js +1 -1
  80. package/dist/extensibility.d.ts +35 -21
  81. package/dist/extensibility.esm.js +34 -34
  82. package/dist/{externalFetch-DrR9xshk.esm.js → externalFetch-CQY41QT1.esm.js} +4 -1
  83. package/dist/face-match.d.ts +1 -1
  84. package/dist/face-match.esm.js +2 -2
  85. package/dist/{faceCaptureManagerFactory-1hzeS_rB.d.ts → faceCaptureManagerFactory-C-xKdj-d.d.ts} +71 -66
  86. package/dist/{faceCaptureManagerFactory-CdDfnyyb.esm.js → faceCaptureManagerFactory-CBm05KnT.esm.js} +4 -4
  87. package/dist/{faceCaptureSetup-CCucWLdy.esm.js → faceCaptureSetup-BQjCbL51.esm.js} +82 -64
  88. package/dist/{faceMatchManager-DWFUQjMQ.esm.js → faceMatchManager-B2zp7yP4.esm.js} +2 -2
  89. package/dist/{faceMatchManager-DIgG-UFS.d.ts → faceMatchManager-Z4UDLwAv.d.ts} +16 -7
  90. package/dist/{faceMatchStateMachine-CUCvlydD.esm.js → faceMatchStateMachine-ByTMQCUC.esm.js} +40 -27
  91. package/dist/{feature-management-DCD0I_XZ.esm.js → feature-management-DjAG5lsJ.esm.js} +1 -1
  92. package/dist/feature-management.esm.js +1 -1
  93. package/dist/field-comparison.esm.js +1 -1
  94. package/dist/{fieldComparisonManager-v3knTYV_.esm.js → fieldComparisonManager-CC0vKmpf.esm.js} +2 -2
  95. package/dist/fiscal-qr.esm.js +1 -1
  96. package/dist/{fiscalQrManager-Dt9fHG7h.esm.js → fiscalQrManager-Be-r4oZj.esm.js} +4 -4
  97. package/dist/flow-events.d.ts +1 -1
  98. package/dist/flow.d.ts +10 -10
  99. package/dist/flow.esm.js +8 -11
  100. package/dist/{flowCompletionService-xFODSJEq.esm.js → flowCompletionService-ChMU2v79.esm.js} +2 -2
  101. package/dist/{flowServices-COMEf-WP.esm.js → flowServices-g2tVWsJl.esm.js} +8 -50
  102. package/dist/geolocation.d.ts +1 -1
  103. package/dist/geolocation.esm.js +2 -2
  104. package/dist/{geolocationManager-Dn24g1fl.d.ts → geolocationManager-6e1i9UIR.d.ts} +15 -17
  105. package/dist/{geolocationManager-B2C2yfrn.esm.js → geolocationManager-DLbvZwUB.esm.js} +6 -8
  106. package/dist/{geolocationStateMachine-Dbg9jw62.esm.js → geolocationStateMachine-CAJVongM.esm.js} +12 -8
  107. package/dist/{getDeviceClass-bsWdEDxP.esm.js → getDeviceClass-DoIWuKI8.esm.js} +1 -1
  108. package/dist/government-validation.esm.js +2 -2
  109. package/dist/{governmentValidationManager-BtXWHICu.esm.js → governmentValidationManager-CkX9TEkh.esm.js} +2 -2
  110. package/dist/{governmentValidationStateMachine-COL-Vs48.esm.js → governmentValidationStateMachine-PTPCP26N.esm.js} +1 -1
  111. package/dist/home.d.ts +1 -1
  112. package/dist/home.esm.js +1 -1
  113. package/dist/http.esm.js +1 -1
  114. package/dist/id-ocr.esm.js +2 -2
  115. package/dist/id-selfie-flow.d.ts +1 -1
  116. package/dist/id-selfie-flow.esm.js +9 -9
  117. package/dist/id-verification.esm.js +2 -2
  118. package/dist/id.d.ts +3 -16
  119. package/dist/id.esm.js +3 -3
  120. package/dist/{idCaptureDefaults-BGsG2OAs.esm.js → idCaptureDefaults-MSQoqScU.esm.js} +3 -3
  121. package/dist/{idCaptureManager-0M02hSuC.d.ts → idCaptureManager-DzTfQ1Am.d.ts} +66 -5
  122. package/dist/{idCaptureManager-DZtgScdd.esm.js → idCaptureManager-zZdTcpG1.esm.js} +63 -17
  123. package/dist/{idCaptureServices-mpibFz4U.esm.js → idCaptureServices-8OHinO0N.esm.js} +9 -9
  124. package/dist/{idCaptureStateMachine-DWJOHeGn.esm.js → idCaptureStateMachine-B3G6XoDG.esm.js} +914 -536
  125. package/dist/{idOcrManager-D3-HNMXP.esm.js → idOcrManager-B64-fjWg.esm.js} +2 -2
  126. package/dist/{idOcrStateMachine-DyENX6Ki.esm.js → idOcrStateMachine-B1aZnobs.esm.js} +2 -2
  127. package/dist/{idVerificationManager-iWz7Avkr.esm.js → idVerificationManager-_Kebv-Ue.esm.js} +2 -2
  128. package/dist/{idVerificationStateMachine-CL1kUdBe.esm.js → idVerificationStateMachine-DQn6c84z.esm.js} +1 -1
  129. package/dist/identity-reuse.d.ts +1 -1
  130. package/dist/identity-reuse.esm.js +2 -2
  131. package/dist/{identityReuseManager-CD1ucp1d.esm.js → identityReuseManager-DDXkNVZi.esm.js} +2 -2
  132. package/dist/{identityReuseManager-B1birg5X.d.ts → identityReuseManager-ooAbp6Kc.d.ts} +4 -4
  133. package/dist/{identityReuseStateMachine-DfV81wQC.esm.js → identityReuseStateMachine-Bcnkbjf8.esm.js} +1 -1
  134. package/dist/{index-BKOWUhxG.d.ts → index-DEfwds5y.d.ts} +55 -8
  135. package/dist/{index-CKQ9QBZP.d.ts → index-DMDAk85K.d.ts} +1 -1
  136. package/dist/index.d.ts +1 -1
  137. package/dist/index.esm.js +1 -1
  138. package/dist/{invokeOnCaptureCallback-DYrkOXO6.esm.js → invokeOnCaptureCallback-CXIBwBeE.esm.js} +1 -1
  139. package/dist/mandatory-consent.d.ts +2 -2
  140. package/dist/mandatory-consent.esm.js +2 -2
  141. package/dist/{mandatoryConsentManager-Cwqx1nK7.esm.js → mandatoryConsentManager-43W5d_8G.esm.js} +4 -3
  142. package/dist/{mandatoryConsentManager-okPILEru.d.ts → mandatoryConsentManager-xx3mY-xw.d.ts} +13 -6
  143. package/dist/{mandatoryConsentStateMachine-pXWqAHo_.esm.js → mandatoryConsentStateMachine-CVlgdlnt.esm.js} +20 -7
  144. package/dist/{multipartRecordingService-CLwrF5wD.esm.js → multipartRecordingService-DMBxHKS2.esm.js} +3 -13
  145. package/dist/nationalIds-B91f_RuB.esm.js +99 -0
  146. package/dist/{permissionGuards-gcy3U0SL.esm.js → permissionGuards-B3OPL8Si.esm.js} +1 -1
  147. package/dist/{permissionServices-Ca-tSNhT.esm.js → permissionServices-DnBAN_hW.esm.js} +4 -4
  148. package/dist/phone-number.d.ts +7 -1
  149. package/dist/phone-number.esm.js +15 -2
  150. package/dist/phone.d.ts +1 -1
  151. package/dist/phone.esm.js +2 -2
  152. package/dist/{phoneManager-BO-LTih5.d.ts → phoneManager-6nrJkvkG.d.ts} +5 -0
  153. package/dist/{phoneManager-KKUq-Vgo.esm.js → phoneManager-C6jut_pz.esm.js} +3 -3
  154. package/dist/{phoneStateMachine-D2QWS2cu.esm.js → phoneStateMachine-T1-drWfG.esm.js} +37 -25
  155. package/dist/{phoneValidation-DnBcNUNh.esm.js → phoneValidation-OggtfjRt.esm.js} +1 -2
  156. package/dist/{platform-DkcRc9JV.esm.js → platform-aPh7gTWh.esm.js} +15 -1
  157. package/dist/processFaceMatch-BWme3kVV.esm.js +21 -0
  158. package/dist/qe-signature.esm.js +1 -1
  159. package/dist/redirect-to-mobile.d.ts +2 -2
  160. package/dist/redirect-to-mobile.esm.js +2 -2
  161. package/dist/{redirectToMobileManager-uHW3dyuQ.esm.js → redirectToMobileManager-BJXC6Kx9.esm.js} +4 -3
  162. package/dist/{redirectToMobileManager-CVsvpVbQ.d.ts → redirectToMobileManager-Dm9ctRCC.d.ts} +3 -1
  163. package/dist/{redirectToMobileStateMachine-b-H-ipGM.esm.js → redirectToMobileStateMachine-BBMAc2Gb.esm.js} +27 -6
  164. package/dist/{runChildModule-C09a9ACV.esm.js → runChildModule-DPHTqSdF.esm.js} +3 -3
  165. package/dist/{sdkVersion-xE2xE2_9.esm.js → sdkVersion-C3_P-Qbq.esm.js} +1 -1
  166. package/dist/selfie.d.ts +4 -4
  167. package/dist/selfie.esm.js +10 -10
  168. package/dist/{selfieErrorUtils-CoXIxVCy.esm.js → selfieErrorUtils-BL0BLMnp.esm.js} +1 -1
  169. package/dist/{selfieManager-BJdNu_nd.d.ts → selfieManager-BMmpUii2.d.ts} +1 -1
  170. package/dist/{selfieManager-RcVUu1KJ.esm.js → selfieManager-Cbliomv7.esm.js} +5 -5
  171. package/dist/{selfieStateMachine-nWbIRIBD.esm.js → selfieStateMachine-B5m_Kn0O.esm.js} +3 -3
  172. package/dist/{session-Cr4IVgYu.esm.js → session-DAaAewMX.esm.js} +77 -9
  173. package/dist/session.d.ts +96 -10
  174. package/dist/session.esm.js +7 -6
  175. package/dist/{sessionInitializer-c3CChZts.esm.js → sessionInitializer-CWFT4dfw.esm.js} +402 -202
  176. package/dist/{setup-BvKrAlOo.esm.js → setup-CDAKwTr7.esm.js} +32 -19
  177. package/dist/{setup-YPKTUCY5.d.ts → setup-D9qt8YVU.d.ts} +2 -2
  178. package/dist/signature.esm.js +2 -2
  179. package/dist/{signatureManager-f_dPAGXn.esm.js → signatureManager-BeEVCcsC.esm.js} +2 -2
  180. package/dist/{signatureStateMachine-C-nUq_oq.esm.js → signatureStateMachine-_1c1vSid.esm.js} +1 -1
  181. package/dist/{stats-BEvexnKC.esm.js → stats-BpMz-hTP.esm.js} +1 -1
  182. package/dist/stats.esm.js +1 -1
  183. package/dist/{tri-xzRLIIMN.esm.js → tri-BajQnjbf.esm.js} +142 -8
  184. package/dist/tri.d.ts +1 -1
  185. package/dist/tri.esm-CzTNi5Q_.esm.js +3826 -0
  186. package/dist/tri.esm.js +1 -1
  187. package/dist/{trueSightService-BAvhAU7T.esm.js → trueSightService-BujtUIW6.esm.js} +19 -10
  188. package/dist/trust-graph.esm.js +1 -1
  189. package/dist/{types-yPH8lAH-.d.ts → types--3HDl2SF.d.ts} +2 -2
  190. package/dist/types-B2FK_wYb.d.ts +249 -0
  191. package/dist/types-B9C8W01q.d.ts +34 -0
  192. package/dist/{types-0L-eFDmr.d.ts → types-C397LhmN.d.ts} +1 -1
  193. package/dist/types-D9r3zRfY.d.ts +6 -0
  194. package/dist/{types-DPIDuhut.d.ts → types-DNVzoRvi.d.ts} +2 -1
  195. package/dist/{types-B6HsSzpk.d.ts → types-DuD8TRJU.d.ts} +3 -2
  196. package/dist/{types-Ckir_BEs.d.ts → types-PTZHRhGX.d.ts} +1 -1
  197. package/dist/{types-DUnFZ08M.d.ts → types-ZTZelfbM.d.ts} +2 -2
  198. package/dist/{types-CK8Jbjkp.d.ts → types-e8fCsvvk.d.ts} +1 -1
  199. package/dist/{types-BAxn7MpY.d.ts → types-xEEWCx1j.d.ts} +123 -48
  200. package/dist/{urlUtils-6jsE6rKp.esm.js → urlUtils-eYiyWjh0.esm.js} +4 -1
  201. package/dist/video-selfie.d.ts +8 -8
  202. package/dist/video-selfie.esm.js +95 -22
  203. package/dist/{videoSelfieCameraWarmer-LeE2vbAW.esm.js → videoSelfieCameraWarmer-DjkPpoj_.esm.js} +18 -21
  204. package/dist/{videoSelfieStepDetector-CGsTltqB.d.ts → videoSelfieStepDetector-RfSmlFFW.d.ts} +9 -4
  205. package/dist/{warmup-BElYWRh7.esm.js → warmup-BkfxQZsC.esm.js} +175 -11
  206. package/dist/wasm.d.ts +2 -2
  207. package/dist/wasm.esm.js +3 -3
  208. package/dist/{wasmDsFlagSync-CYj5LL9z.esm.js → wasmDsFlagSync-BhU5H2oR.esm.js} +1 -1
  209. package/dist/wasmMetadataVersionSync-U8EFUr1T.esm.js +27 -0
  210. package/dist/{wasmWebClient-BjZw_7OB.esm.js → wasmWebClient-DTj9auyA.esm.js} +43 -17
  211. package/dist/watchlist-for-business.d.ts +2 -1
  212. package/dist/watchlist-for-business.esm.js +2 -2
  213. package/dist/watchlist.esm.js +2 -2
  214. package/dist/{watchlistForBusinessManager-CZZOFkGl.esm.js → watchlistForBusinessManager-CVay6-9A.esm.js} +37 -7
  215. package/dist/{watchlistForBusinessManager-B3GDPZrr.d.ts → watchlistForBusinessManager-DX2AyM4Y.d.ts} +54 -18
  216. package/dist/watchlistForBusinessStateMachine-DA6K5na4.esm.js +166 -0
  217. package/dist/{watchlistManager-DXtX94SN.esm.js → watchlistManager-B8gQ_rw3.esm.js} +2 -2
  218. package/dist/{watchlistStateMachine-McALifag.esm.js → watchlistStateMachine-CSi_ZhtT.esm.js} +1 -1
  219. package/dist/workflow.d.ts +5 -2
  220. package/dist/workflow.esm.js +57 -47
  221. package/package.json +3 -2
  222. package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +0 -9
  223. package/dist/ekycStateMachine-CDnI_NRq.esm.js +0 -1443
  224. package/dist/ekycUtils-zY8CdKJL.esm.js +0 -300
  225. package/dist/thumbmark.esm-CRc0cYvz.esm.js +0 -1242
  226. package/dist/tri.esm-BIjHhBJ2.esm.js +0 -2620
  227. package/dist/types-BvLo3U4u.d.ts +0 -134
  228. package/dist/types-zOgZqMni.d.ts +0 -6
  229. package/dist/watchlistForBusinessStateMachine-B66E7jud.esm.js +0 -78
  230. /package/dist/{types-BSBzhHRH2.d.ts → types-BSBzhHRH.d.ts} +0 -0
@@ -1,7 +1,8 @@
1
- import { t as api, u as endpoints } from "./api-Cz90EHyu.esm.js";
1
+ import { t as api, u as endpoints } from "./api-BO8JA7Pf.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
- const usStateOptions = Object.values({
4
+ //#region src/shared/usStates.ts
5
+ const usStates = {
5
6
  AL: {
6
7
  code: "AL",
7
8
  name: "Alabama"
@@ -202,7 +203,8 @@ const usStateOptions = Object.values({
202
203
  code: "WY",
203
204
  name: "Wyoming"
204
205
  }
205
- }).map((state) => ({
206
+ };
207
+ const usStateOptions = Object.values(usStates).map((state) => ({
206
208
  value: state.code,
207
209
  label: state.name
208
210
  }));
@@ -271,36 +273,43 @@ const POSTAL_CODE_MAX_LENGTH_BY_COUNTRY = {
271
273
  UK: 8,
272
274
  AR: 8,
273
275
  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
276
+ NL: 6,
277
+ PT: 8
283
278
  };
284
279
  const FIXED_LENGTH_KEY = "verification.errors.invalidPostalCodeFixedLength";
280
+ /**
281
+ * Countries whose postal code is a fixed number of digits. It sets the
282
+ * check, the input's max length and the digits-only typing mask.
283
+ */
285
284
  const FIXED_DIGIT_POSTAL_CODE_LENGTH = {
285
+ BE: 4,
286
+ DK: 4,
287
+ NO: 4,
288
+ PH: 4,
286
289
  DE: 5,
287
290
  ES: 5,
291
+ FI: 5,
288
292
  FR: 5,
293
+ GR: 5,
289
294
  IT: 5,
290
295
  KE: 5,
291
296
  MX: 5,
292
297
  CN: 6,
298
+ IN: 6,
293
299
  NG: 6,
300
+ SG: 6,
294
301
  IL: 7
295
302
  };
296
303
  function getPostalCodeMaxLength(country) {
297
- return POSTAL_CODE_MAX_LENGTH_BY_COUNTRY[country] ?? 8;
304
+ return POSTAL_CODE_MAX_LENGTH_BY_COUNTRY[country] ?? FIXED_DIGIT_POSTAL_CODE_LENGTH[country] ?? 8;
298
305
  }
299
306
  function getPostalCodeErrorKey(country) {
300
307
  if (country in FIXED_DIGIT_POSTAL_CODE_LENGTH) return FIXED_LENGTH_KEY;
301
308
  if (country === "CA") return "verification.errors.CAPostalCodeInvalidFormat";
302
309
  if (country === "AR") return "verification.errors.ARPostalCodeInvalidFormat";
303
310
  if (country === "GB" || country === "UK") return "verification.errors.UKPostalCodeInvalidFormat";
311
+ if (country === "NL") return "verification.errors.NLPostalCodeInvalidFormat";
312
+ if (country === "PT") return "verification.errors.PTPostalCodeInvalidFormat";
304
313
  if (country === "US") return "verification.errors.zipCodeInvalidFormat";
305
314
  return "verification.errors.postalCodeInvalidFormat";
306
315
  }
@@ -309,15 +318,18 @@ const BR_POSTAL_CODE_REGEX = /^(?:\d{5}|\d{8}|\d{5}-\d{3})$/;
309
318
  const CA_POSTAL_CODE_REGEX = /^[A-Za-z]\d[A-Za-z] \d[A-Za-z]\d$/;
310
319
  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
320
  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}$/;
321
+ /** Four digits and two uppercase letters, such as 1016DV. */
322
+ const NL_POSTAL_CODE_REGEX = /^\d{4}[A-Z]{2}$/;
323
+ /** Seven digits, the first 1 to 9, with or without a hyphen: 4430-458. */
324
+ const PT_POSTAL_CODE_REGEX = /^[1-9]\d{3}-?\d{3}$/;
315
325
  /**
316
326
  * Validates a postal code by country.
317
327
  * Covers all countries used by eKYC and eKYB.
318
328
  */
319
329
  function validatePostalCode(postalCode, country) {
320
330
  if (!postalCode) return false;
331
+ const fixedDigits = FIXED_DIGIT_POSTAL_CODE_LENGTH[country];
332
+ if (fixedDigits !== void 0) return postalCode.length === fixedDigits && /^\d+$/.test(postalCode);
321
333
  switch (country) {
322
334
  case "US": return US_POSTAL_CODE_REGEX.test(postalCode);
323
335
  case "BR": return BR_POSTAL_CODE_REGEX.test(postalCode);
@@ -325,15 +337,8 @@ function validatePostalCode(postalCode, country) {
325
337
  case "GB":
326
338
  case "UK": return UK_POSTAL_CODE_REGEX.test(postalCode.toUpperCase());
327
339
  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);
340
+ case "NL": return NL_POSTAL_CODE_REGEX.test(postalCode);
341
+ case "PT": return PT_POSTAL_CODE_REGEX.test(postalCode);
337
342
  case "CM": return postalCode.length > 0;
338
343
  default: {
339
344
  const stripped = postalCode.replace(/\D/g, "");
@@ -346,6 +351,8 @@ function validatePostalCode(postalCode, country) {
346
351
  * Covers all countries used by eKYC and eKYB.
347
352
  */
348
353
  function formatPostalCode(value, country) {
354
+ const fixedDigits = FIXED_DIGIT_POSTAL_CODE_LENGTH[country];
355
+ if (fixedDigits !== void 0) return value.replace(/\D/g, "").slice(0, fixedDigits);
349
356
  if (country === "US" || country === "BR") {
350
357
  const maxDigits = country === "US" ? 9 : 8;
351
358
  const hasDash = value.includes("-");
@@ -357,7 +364,6 @@ function formatPostalCode(value, country) {
357
364
  if (hasDash) return `${digits.slice(0, 5)}-${digits.slice(5)}`;
358
365
  return digits;
359
366
  }
360
- if (country === "ES") return value.replace(/\D/g, "").slice(0, 5);
361
367
  if (country === "CA") {
362
368
  const normalized = value.replace(/[^A-Za-z0-9]/g, "").toUpperCase().slice(0, 6);
363
369
  if (normalized.length <= 3) return normalized;
@@ -369,9 +375,11 @@ function formatPostalCode(value, country) {
369
375
  return `${normalized.slice(0, -3)} ${normalized.slice(-3)}`;
370
376
  }
371
377
  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);
378
+ if (country === "PT") {
379
+ const digits = value.replace(/\D/g, "").slice(0, 7);
380
+ return digits.length <= 4 ? digits : `${digits.slice(0, 4)}-${digits.slice(4)}`;
381
+ }
382
+ if (country === "NL") return `${value.replace(/\D/g, "").slice(0, 4)}${value.replace(/[^A-Za-z]/g, "").slice(0, 2).toUpperCase()}`;
375
383
  return value.slice(0, 8);
376
384
  }
377
385
  //#endregion
@@ -429,6 +437,7 @@ function checkSupport(definition, ids) {
429
437
  });
430
438
  for (const key of keys) need("condition", ids.conditions, key, `${path}.requiredWhen[${i}]`);
431
439
  });
440
+ field.prefill?.forEach((id, i) => need("prefillSource", ids.prefillSources, id, `${path}.prefill[${i}]`));
432
441
  const lock = field.phone?.lockCountry;
433
442
  if (typeof lock === "string" && lock !== "whenPhoneRisk") problems.push({
434
443
  category: "phoneLock",
@@ -445,7 +454,17 @@ function checkSupport(definition, ids) {
445
454
  path: `groups.${policy.group}`
446
455
  });
447
456
  });
448
- definition.groupRules?.forEach((rule, i) => need("groupRule", ids.groupRules, rule.id, `groupRules[${i}]`));
457
+ definition.groupRules?.forEach((rule, i) => {
458
+ need("groupRule", ids.groupRules, rule.id, `groupRules[${i}]`);
459
+ const cases = rule.id === "rulesByOption" ? rule.params?.cases : void 0;
460
+ if (cases && typeof cases === "object" && !Array.isArray(cases)) for (const [value, rules] of Object.entries(cases)) {
461
+ if (!Array.isArray(rules)) continue;
462
+ rules.forEach((ref, j) => {
463
+ const id = ref?.id;
464
+ need("rule", ids.rules, typeof id === "string" ? id : "(missing)", `groupRules[${i}].params.cases.${value}[${j}]`);
465
+ });
466
+ }
467
+ });
449
468
  definition.collections?.forEach((collection) => {
450
469
  need("group", ids.groups, collection.group, `collections.${collection.id}`);
451
470
  collection.fields.forEach((field) => checkField(field, `collections.${collection.id}.fields.${field.name}`));
@@ -514,6 +533,28 @@ function resolveForm(definition, context) {
514
533
  };
515
534
  }
516
535
  //#endregion
536
+ //#region src/internal/formDefinitionsRollout/formDefinitionsRollout.ts
537
+ /**
538
+ * The rollout switch for form definitions (ENG-59781): one all-or-nothing
539
+ * answer to "do eKYC and eKYB build their forms from catalog definitions, or
540
+ * with today's builders?". Both module adapters ask it before selecting a
541
+ * definition (`selectEkycDefinition`, `selectEkybForm`); the forms kernel
542
+ * (`internal/forms`) knows nothing about it.
543
+ *
544
+ * Off by default, so every source and country keeps today's builder. A
545
+ * catalog-only eKYC source, one today's builder never knew, uses its
546
+ * definition either way, since it has no old path to fall back to.
547
+ *
548
+ * This is Incode's rollout decision, not the integrator's: it is not a
549
+ * `setup()` option. A later step reads a Statsig gate here instead of the
550
+ * constant.
551
+ */
552
+ const ENABLED_BY_DEFAULT = false;
553
+ /** Whether sources and countries with a form definition use it. */
554
+ function isFormDefinitionsEnabled() {
555
+ return ENABLED_BY_DEFAULT;
556
+ }
557
+ //#endregion
517
558
  //#region src/shared/addressSearch.ts
518
559
  /** Searches for address suggestions via the address autocomplete API. */
519
560
  async function searchAddress(query, signal) {
@@ -560,4 +601,4 @@ const debounceSearchActor = fromCallback(({ input, sendBack }) => {
560
601
  };
561
602
  });
562
603
  //#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 };
604
+ export { usStates as _, createBundledDefinitionSource as a, formatPostalCode as c, validatePostalCode as d, DYNAMIC_REQUIRED_KEY as f, usStateOptions as g, getStreetLevelErrorForSuggestion as h, resolveForm as i, getPostalCodeErrorKey as l, fillFromSuggestion as m, searchAddress as n, checkSupport as o, STREET_LEVEL_REQUIRED_ERROR as p, isFormDefinitionsEnabled as r, FIXED_DIGIT_POSTAL_CODE_LENGTH as s, debounceSearchActor as t, getPostalCodeMaxLength as u };
@@ -13,8 +13,7 @@ const VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED_CODE = "VIDEO_SELFIE_VALIDATION
13
13
  const ADVANCEABLE_ERROR_CODES = [
14
14
  "NONEXISTENT_CUSTOMER",
15
15
  "HINT_NOT_PROVIDED",
16
- "NO_MORE_ATTEMPTS",
17
- VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED_CODE
16
+ "NO_MORE_ATTEMPTS"
18
17
  ];
19
18
  /** True when the given code is a module terminal error the flow should advance past rather than fail on. */
20
19
  const isAdvanceableError = (moduleErrorCode) => moduleErrorCode !== void 0 && ADVANCEABLE_ERROR_CODES.includes(moduleErrorCode);
@@ -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-Btsa7Prh.esm.js";
1
+ import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-C7pqXsRm.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-DRl0UVyA.esm.js";
2
- import { n as createAntifraudManagerFromActor, t as createAntifraudManager } from "./antifraudManager-CaweCYnY.esm.js";
1
+ import { t as antifraudMachine } from "./antifraudStateMachine-BcsUTTIr.esm.js";
2
+ import { n as createAntifraudManagerFromActor, t as createAntifraudManager } from "./antifraudManager-CQ08atTC.esm.js";
3
3
  export { antifraudMachine, createAntifraudManager, createAntifraudManagerFromActor };
@@ -1,7 +1,7 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Du2A4-Qr.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CQteqXfy.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-DRl0UVyA.esm.js";
4
+ import { t as antifraudMachine } from "./antifraudStateMachine-BcsUTTIr.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-Cz90EHyu.esm.js";
1
+ import { t as api, u as endpoints } from "./api-BO8JA7Pf.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,7 +1,8 @@
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",
5
+ sessionContinue: "/omni/session/continue",
5
6
  flow: "/omni/onboarding/flow",
6
7
  events: "/omni/interview-events",
7
8
  selfie: "/omni/add/face",
@@ -270,10 +271,10 @@ async function withTiming(method, url, call) {
270
271
  * (later keys overwrite earlier ones in object spread).
271
272
  *
272
273
  * Existing call sites that already pass an explicit
273
- * `X-Incode-Hardware-Id` header (`recordingsRepository.uploadDeepsightVideo`,
274
- * `internal/virtualCameraCheck.logFrame`) now use the value they
275
- * passed in unconditionally — previously the auto-injection silently
276
- * clobbered them. Both call sites pass tokens that are already
274
+ * `X-Incode-Hardware-Id` header (`recordingsRepository.uploadDeepsightVideo`;
275
+ * the retired `internal/virtualCameraCheck.logFrame` did too) now use the
276
+ * value they passed in unconditionally — previously the auto-injection
277
+ * silently clobbered them. Those call sites pass tokens that are already
277
278
  * supposed to be the active session token, so behaviour is
278
279
  * unchanged in practice; the change unblocks personhood (which
279
280
  * needs to attach its own slot's token) without bypassing the
@@ -1,4 +1,4 @@
1
- import { d as categoryForEndpoint, u as trueSightLog } from "./trueSightService-BAvhAU7T.esm.js";
1
+ import { d as categoryForEndpoint, u as trueSightLog } from "./trueSightService-BujtUIW6.esm.js";
2
2
  //#region src/internal/http/apiError.ts
3
3
  /**
4
4
  * Incode API error.
@@ -0,0 +1,45 @@
1
+ import { r as getToken } from "./api-BO8JA7Pf.esm.js";
2
+ import { a as watchConnectivity } from "./connectivity-HSl0diCx.esm.js";
3
+ //#region src/internal/session/attemptCarry.ts
4
+ const carried = /* @__PURE__ */ new Map();
5
+ /**
6
+ * Keeps spent attempts across the remount after a connectivity loss: the
7
+ * session boundary stops the step while offline and mounts a new manager on
8
+ * recovery. Call once in the machine's `context` factory.
9
+ *
10
+ * `read` sees every snapshot until connectivity is lost, so an attempt whose
11
+ * outcome arrives after the loss is not charged. It returns the counters the
12
+ * next mount starts with; a step that reached its no-attempts outcome must
13
+ * return a value its start guard reads as spent. Only an actor that ends while
14
+ * connectivity is lost leaves a carry, and the next actor of the same machine
15
+ * in the session takes it once.
16
+ */
17
+ function carryAttempts(machineId, self, read) {
18
+ const token = getToken();
19
+ if (token === null) return {};
20
+ const key = `${token}:${machineId}`;
21
+ const restored = carried.get(key) ?? {};
22
+ carried.delete(key);
23
+ let carry = restored;
24
+ let lost = false;
25
+ const unwatch = watchConnectivity((next) => {
26
+ lost = next;
27
+ });
28
+ const end = () => {
29
+ unwatch();
30
+ if (lost) carried.set(key, carry);
31
+ };
32
+ self.subscribe({
33
+ next: (snapshot) => {
34
+ if (!lost) carry = read(snapshot, carry);
35
+ },
36
+ complete: end,
37
+ error: (err) => {
38
+ end();
39
+ throw err;
40
+ }
41
+ });
42
+ return restored;
43
+ }
44
+ //#endregion
45
+ export { carryAttempts as t };
@@ -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-C-xKdj-d.js";
2
+ import { t as AuthenticationConfig } from "./types-D9r3zRfY.js";
3
+ import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-C-cOki0Y.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-DrO14KyC.esm.js";
2
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-CSHZQTlb.esm.js";
1
+ import { t as authenticationMachine } from "./authenticationStateMachine-BL2ptOA0.esm.js";
2
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-DvmklBTE.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-C-xKdj-d.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-BvKrAlOo.esm.js";
2
- import { t as WasmUtilProvider } from "./WasmUtilProvider-DtJuBdt-.esm.js";
3
- import { n as eventModuleNames } from "./events-Du2A4-Qr.esm.js";
1
+ import { u as BrowserStorageProvider } from "./setup-CDAKwTr7.esm.js";
2
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-GTkoJyFY.esm.js";
3
+ import { n as eventModuleNames } from "./events-CQteqXfy.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-DSajW7CJ.esm.js";
5
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-CdDfnyyb.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-DrO14KyC.esm.js";
5
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-CBm05KnT.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-BL2ptOA0.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-CCucWLdy.esm.js";
4
- import { d as FACE_ERROR_CODES, f as isOnDeviceMode } from "./FaceDetectionProvider-CzQEFzP8.esm.js";
5
- import { o as PROTECTED_CAPTURE_TARGET } from "./createCameraCycleOwnership-Dj_LHUvN.esm.js";
3
+ import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-BQjCbL51.esm.js";
4
+ import { d as isOnDeviceMode, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-B83VmClw.esm.js";
5
+ import { s as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-kHY2IDJi.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,5 +1,5 @@
1
- import { a as isIOS, c as isIPhone14OrHigher, d as isSafari, i as isDesktop, t as isAndroid } from "./platform-DkcRc9JV.esm.js";
2
- import { i as requestCameraAccess, n as enumerateVideoDevices, o as stopCameraStream, t as applyTrackConstraints } from "./camera-sIa9ceW2.esm.js";
1
+ import { a as isIOS, c as isIPhone14OrHigher, d as isSafari, i as isDesktop, t as isAndroid } from "./platform-aPh7gTWh.esm.js";
2
+ import { a as stopCameraStream, n as enumerateVideoDevices, r as requestCameraAccess, t as applyTrackConstraints } from "./camera-E_Kcre4O.esm.js";
3
3
  import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
4
4
  import { t as getBrowser } from "./getBrowser-Cbe1C4Tn.esm.js";
5
5
  //#region src/internal/camera/backCameraStream.ts
@@ -396,9 +396,6 @@ async function getDesktopCameraStreamResult(options, fallbackLevel = 0) {
396
396
  return getDesktopCameraStreamResult(options, nextLevel);
397
397
  }
398
398
  }
399
- async function getDesktopCameraStream(options, fallbackLevel = 0) {
400
- return (await getDesktopCameraStreamResult(options, fallbackLevel)).stream;
401
- }
402
399
  /**
403
400
  * Pick the best back-facing device from a list already filtered by label.
404
401
  * Prefers the highest megapixel count when labels advertise it, else the first.
@@ -450,43 +447,6 @@ async function getDesktopBackCameraStream(deviceId) {
450
447
  return original;
451
448
  }
452
449
  }
453
- /**
454
- * Desktop front-camera (selfie) acquisition with verify-and-correct.
455
- *
456
- * Counterpart to {@link getDesktopBackCameraStream}. Requesting a front camera
457
- * uses an *advisory* `facingMode: 'user'` hint, which the browser may ignore —
458
- * notably on a Surface after the back camera was explicitly opened by deviceId
459
- * for ID capture, the browser remembers the rear camera as its preferred device
460
- * and hands it back for the selfie too.
461
- *
462
- * The caller supplies an `open(deviceId?)` callback so this stays agnostic to
463
- * the selfie resolution strategy. We then verify by LABEL only (never
464
- * facingMode):
465
- * 1. Open via the callback.
466
- * 2. If the opened track is NOT a back camera → trust it, return as-is.
467
- * 3. If it IS a back camera, enumerate and reopen the first non-back device.
468
- * 4. If there is no non-back device, or the reopen fails → keep the original.
469
- *
470
- * Note: "first non-back device" is intentionally simple — on machines that also
471
- * expose a Windows Hello IR sensor this could pick the IR camera. Accepted
472
- * tradeoff; revisit with a front-label allowlist if it proves a problem.
473
- */
474
- async function ensureFrontCameraStream(open) {
475
- const original = await open();
476
- const track = original.getVideoTracks()[0];
477
- if (!track || !isBackCameraLabel(track.label)) return original;
478
- const frontDevices = (await enumerateVideoDevices()).filter((d) => !isBackCameraLabel(d.label));
479
- if (frontDevices.length === 0) return original;
480
- const target = frontDevices[0];
481
- if (track.getSettings().deviceId === target.deviceId) return original;
482
- try {
483
- const corrected = await open(target.deviceId);
484
- stopCameraStream(original);
485
- return corrected;
486
- } catch {
487
- return original;
488
- }
489
- }
490
450
  async function getBackCameraStream(deviceId) {
491
451
  if (isIOS()) return getIOSCameraStream();
492
452
  if (isAndroid()) {
@@ -501,4 +461,4 @@ async function getBackCameraStream(deviceId) {
501
461
  };
502
462
  }
503
463
  //#endregion
504
- export { isBackCameraLabel as a, hasBackCamera as i, getBackCameraStream as n, isBackFacingTrack as o, getDesktopCameraStream as r, ensureFrontCameraStream as t };
464
+ export { selectBestBackDevice as a, isBackFacingTrack as i, hasBackCamera as n, isBackCameraLabel as r, getBackCameraStream as t };