@incodetech/core 2.4.0 → 2.4.1-agentic.1

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 (252) hide show
  1. package/dist/BrowserNetworkStatusProvider-BrDXBEDd.esm.js +21 -0
  2. package/dist/{multipartRecordingService-CLwrF5wD.esm.js → CameraCompositor-DN7NkJzV.esm.js} +7 -744
  3. package/dist/{FaceDetectionProvider-DcPOC2gS.esm.js → FaceDetectionProvider-CAY43vSI.esm.js} +28 -64
  4. package/dist/IBrowserEnvironmentCapability-D7JG7ML3.esm.js +16 -0
  5. package/dist/IGeolocationCapability-r49Qo7rR.d.ts +10 -0
  6. package/dist/{IWasmUtilCapability-GF2n7sfm.d.ts → IWasmUtilCapability-Cqiaxydi.d.ts} +31 -4
  7. package/dist/MultipartRecordingProvider-D9mauUdS.esm.js +146 -0
  8. package/dist/{PhoneValidationProvider-SZiOS0jB.esm.js → PhoneValidationProvider-Co4zk2en.esm.js} +7 -0
  9. package/dist/{StreamCanvasCapture-7JRf-2ck.d.ts → StreamCanvasCapture-C3xNfOsv.d.ts} +12 -3
  10. package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +42 -0
  11. package/dist/{WasmUtilProvider-DtJuBdt-.esm.js → WasmUtilProvider-Dp2V-Uct.esm.js} +75 -22
  12. package/dist/WorkerEncoderRecordingProvider-B1ODYtgN.esm.js +80 -0
  13. package/dist/addressSearch-DzbE9Ogt.esm.js +254 -0
  14. package/dist/{advanceableErrors-q_pfU3Cn.esm.js → advanceableErrors-k-U-cL5m.esm.js} +1 -2
  15. package/dist/ae-signature.esm.js +1 -1
  16. package/dist/antifraud.esm.js +2 -2
  17. package/dist/{antifraudManager-CaweCYnY.esm.js → antifraudManager-BObuHBjn.esm.js} +2 -2
  18. package/dist/{antifraudStateMachine-DRl0UVyA.esm.js → antifraudStateMachine-Dfrd2-26.esm.js} +1 -1
  19. package/dist/{api-Cz90EHyu.esm.js → api-CpP4PS4S.esm.js} +8 -5
  20. package/dist/{apiError-DPwFas2f.esm.js → apiError-DH-CH4Nz.esm.js} +1 -1
  21. package/dist/attemptCarry-WOkfvFMw.esm.js +45 -0
  22. package/dist/authentication.d.ts +3 -3
  23. package/dist/authentication.esm.js +2 -2
  24. package/dist/{authenticationManager-BIZC55Bi.d.ts → authenticationManager-CWmh7aSY.d.ts} +1 -1
  25. package/dist/{authenticationManager-2Lr5V_7p.esm.js → authenticationManager-DjX0XDyH.esm.js} +5 -5
  26. package/dist/{authenticationStateMachine-C99B0GFP.esm.js → authenticationStateMachine-BMbZL8wm.esm.js} +3 -3
  27. package/dist/backCameraLabel-yda5ugE4.esm.js +67 -0
  28. package/dist/{backCameraStream-CMvXj4X4.esm.js → backCameraStream-DS1oDiUq.esm.js} +12 -107
  29. package/dist/{browser-DlFgHpoC-DnyrCR8r.esm.js → browser-pQZA35G2-DtkAf6sn.esm.js} +161 -150
  30. package/dist/{camera-sIa9ceW2.esm.js → camera-E_Kcre4O.esm.js} +15 -23
  31. package/dist/camera.d.ts +2 -2
  32. package/dist/camera.esm.js +1 -1
  33. package/dist/certificate-issuance.esm.js +2 -2
  34. package/dist/{certificateIssuanceManager-BfeMv2PU.esm.js → certificateIssuanceManager-C1nETQos.esm.js} +2 -2
  35. package/dist/{certificateIssuanceStateMachine-Frgjbjw8.esm.js → certificateIssuanceStateMachine-DThXMDqr.esm.js} +2 -2
  36. package/dist/cnpj-Co1ottYN.esm.js +77 -0
  37. package/dist/connectivity-BCuEoQ-n.esm.js +114 -0
  38. package/dist/consent.d.ts +1 -1
  39. package/dist/consent.esm.js +2 -2
  40. package/dist/{consentManager-CvEu8h_W.esm.js → consentManager-DMlSL6Ax.esm.js} +4 -3
  41. package/dist/{consentManager-Cv_0QKLD.d.ts → consentManager-bjfVXO7p.d.ts} +9 -2
  42. package/dist/{consentStateMachine-DJTgN_-1.esm.js → consentStateMachine-DIYSMxKQ.esm.js} +20 -7
  43. package/dist/cross-document-data-match.esm.js +1 -1
  44. package/dist/{crossDocumentDataMatchManager-Cu141CE8.esm.js → crossDocumentDataMatchManager-BFTdiEDB.esm.js} +2 -2
  45. package/dist/curp-validation.d.ts +1 -1
  46. package/dist/curp-validation.esm.js +2 -2
  47. package/dist/{curpValidationManager-B-z9q5V3.esm.js → curpValidationManager-DNpC3wyf.esm.js} +3 -2
  48. package/dist/{curpValidationManager-C9sqoh9n.d.ts → curpValidationManager-z8428oCM.d.ts} +1 -1
  49. package/dist/{curpValidationStateMachine-vDEFLMPw.esm.js → curpValidationStateMachine-B3iVsDyt.esm.js} +28 -20
  50. package/dist/custom-fields.esm.js +1 -1
  51. package/dist/custom-watchlist.esm.js +2 -2
  52. package/dist/{customFieldsManager-D1ex2cFM.esm.js → customFieldsManager-CvI-pDT3.esm.js} +2 -2
  53. package/dist/{customWatchlistManager-CTI-SGk0.esm.js → customWatchlistManager-BuHtUb0y.esm.js} +2 -2
  54. package/dist/{customWatchlistStateMachine-hmRd0f2I.esm.js → customWatchlistStateMachine-CiVD9wyF.esm.js} +1 -1
  55. package/dist/{deepsightService-CKTYDIXD.esm.js → deepsightLoader-B7DEYoyY.esm.js} +40 -74
  56. package/dist/{createCameraCycleOwnership-Dj_LHUvN.esm.js → desktopCameraElection-BGMtYwk3.esm.js} +177 -40
  57. package/dist/device.esm.js +2 -2
  58. package/dist/document-capture.d.ts +3 -3
  59. package/dist/document-capture.esm.js +2 -2
  60. package/dist/{documentCaptureManager-DkyDtm3Y.d.ts → documentCaptureManager-CD5iQiUI.d.ts} +37 -4
  61. package/dist/{documentCaptureManager-DUJwpKC5.esm.js → documentCaptureManager-DLPqruXJ.esm.js} +27 -19
  62. package/dist/{documentCaptureStateMachine-B8i7GnLh.esm.js → documentCaptureStateMachine-DCvWQhFG.esm.js} +105 -56
  63. package/dist/dynamic-forms.d.ts +2 -2
  64. package/dist/dynamic-forms.esm.js +2 -2
  65. package/dist/{dynamicFormsManager-C0dHs1ty.d.ts → dynamicFormsManager-9kwY8Bf5.d.ts} +1 -1
  66. package/dist/{dynamicFormsManager-DiKYjcF3.esm.js → dynamicFormsManager-DfqCEPg9.esm.js} +2 -2
  67. package/dist/{dynamicFormsStateMachine-DEI45xYW.esm.js → dynamicFormsStateMachine-USQMB-uV.esm.js} +2 -2
  68. package/dist/ekyb.d.ts +4 -4
  69. package/dist/ekyb.esm.js +3 -3
  70. package/dist/{ekybManager-BaZ_7CEu.d.ts → ekybManager-BLOkwmWO.d.ts} +2 -2
  71. package/dist/{ekybManager-8WLkNcqg.esm.js → ekybManager-CR8YSYux.esm.js} +2 -2
  72. package/dist/{ekybStateMachine-BLRT45Ex.esm.js → ekybStateMachine-kHwdz6hm.esm.js} +28 -44
  73. package/dist/ekybUtils-Cw8Ta9Qi.esm.js +140 -0
  74. package/dist/ekyc.d.ts +4 -3
  75. package/dist/ekyc.esm.js +3 -3
  76. package/dist/{ekycManager-DW-ynodd.d.ts → ekycManager-DlGIn9wA.d.ts} +2 -1
  77. package/dist/{ekycManager-BO-Lui3t.esm.js → ekycManager-DymCvmVB.esm.js} +2 -2
  78. package/dist/ekycStateMachine-CoFCUJ2z.esm.js +7578 -0
  79. package/dist/ekycUtils-GRuMELYr.esm.js +1472 -0
  80. package/dist/electronic-signature.esm.js +1 -1
  81. package/dist/{electronicSignatureManager-CcIMOb_Y.esm.js → electronicSignatureManager-BCE3uA3z.esm.js} +4 -4
  82. package/dist/email.esm.js +2 -2
  83. package/dist/{emailManager-ButFktRm.esm.js → emailManager-CGoE3CUe.esm.js} +2 -2
  84. package/dist/{emailStateMachine-BXtlC0NV.esm.js → emailStateMachine-KgHfDNvM.esm.js} +32 -20
  85. package/dist/{events-Du2A4-Qr.esm.js → events-ggpBBaZ8.esm.js} +2 -2
  86. package/dist/events.esm.js +1 -1
  87. package/dist/extensibility.d.ts +37 -22
  88. package/dist/extensibility.esm.js +36 -35
  89. package/dist/{externalFetch-DrR9xshk.esm.js → externalFetch-CQY41QT1.esm.js} +4 -1
  90. package/dist/face-match.d.ts +1 -1
  91. package/dist/face-match.esm.js +2 -2
  92. package/dist/{faceCaptureManagerFactory-1hzeS_rB.d.ts → faceCaptureManagerFactory-DV2ULUYS.d.ts} +71 -66
  93. package/dist/{faceCaptureManagerFactory-BlGvXzXA.esm.js → faceCaptureManagerFactory-Dp90bedH.esm.js} +4 -4
  94. package/dist/{faceCaptureSetup-TY8RXc2N.esm.js → faceCaptureSetup-ZfiWg0fo.esm.js} +84 -457
  95. package/dist/{faceMatchManager-DWFUQjMQ.esm.js → faceMatchManager-D2xKPjjQ.esm.js} +2 -2
  96. package/dist/{faceMatchManager-DIgG-UFS.d.ts → faceMatchManager-Z4UDLwAv.d.ts} +16 -7
  97. package/dist/{faceMatchStateMachine-CUCvlydD.esm.js → faceMatchStateMachine-CUvwiQi9.esm.js} +40 -27
  98. package/dist/{feature-management-B5rR10uS.esm.js → feature-management-BbCIA4og.esm.js} +35 -21
  99. package/dist/feature-management.esm.js +1 -1
  100. package/dist/field-comparison.esm.js +1 -1
  101. package/dist/{fieldComparisonManager-v3knTYV_.esm.js → fieldComparisonManager-DgDbEeFZ.esm.js} +2 -2
  102. package/dist/fiscal-qr.esm.js +1 -1
  103. package/dist/{fiscalQrManager-Dt9fHG7h.esm.js → fiscalQrManager-BZeklojR.esm.js} +4 -4
  104. package/dist/flow-events.d.ts +1 -1
  105. package/dist/flow.d.ts +10 -10
  106. package/dist/flow.esm.js +10 -9
  107. package/dist/{flowCompletionService-BDI5QpfR.esm.js → flowCompletionService-CcCnPs_T.esm.js} +2 -2
  108. package/dist/{flowServices-roD0oIQL.esm.js → flowServices-Dmnc8Rye.esm.js} +69 -185
  109. package/dist/geolocation.d.ts +1 -1
  110. package/dist/geolocation.esm.js +2 -2
  111. package/dist/{geolocationManager-Dn24g1fl.d.ts → geolocationManager-6e1i9UIR.d.ts} +15 -17
  112. package/dist/{geolocationManager-DnONzWL5.esm.js → geolocationManager-BJJ3m_I8.esm.js} +6 -8
  113. package/dist/{geolocationStateMachine-eWy_G4Os.esm.js → geolocationStateMachine-CTI3m4Ie.esm.js} +12 -8
  114. package/dist/{getDeviceClass-bsWdEDxP.esm.js → getDeviceClass-DoIWuKI8.esm.js} +1 -1
  115. package/dist/government-validation.esm.js +2 -2
  116. package/dist/{governmentValidationManager-BtXWHICu.esm.js → governmentValidationManager-CjChjZ3C.esm.js} +2 -2
  117. package/dist/{governmentValidationStateMachine-COL-Vs48.esm.js → governmentValidationStateMachine-AEbn3Afi.esm.js} +1 -1
  118. package/dist/home.d.ts +1 -1
  119. package/dist/home.esm.js +1 -1
  120. package/dist/http.esm.js +1 -1
  121. package/dist/id-ocr.d.ts +1 -1
  122. package/dist/id-ocr.esm.js +2 -2
  123. package/dist/id-selfie-flow.d.ts +1 -1
  124. package/dist/id-selfie-flow.esm.js +10 -9
  125. package/dist/id-verification.esm.js +2 -2
  126. package/dist/id.d.ts +3 -16
  127. package/dist/id.esm.js +4 -4
  128. package/dist/{idCaptureDefaults-BGsG2OAs.esm.js → idCaptureDefaults-Dszuq9ng.esm.js} +3 -3
  129. package/dist/{idCaptureManager-BrfYjCm_.esm.js → idCaptureManager-B3oR4RnA.esm.js} +64 -17
  130. package/dist/{idCaptureManager-0M02hSuC.d.ts → idCaptureManager-CCA2D1Ah.d.ts} +68 -5
  131. package/dist/{idCaptureServices-BSj6EH2l.esm.js → idCaptureServices-DK0QboqT.esm.js} +29 -198
  132. package/dist/{idCaptureStateMachine-dXKBYHQp.esm.js → idCaptureStateMachine-zzar9MPy.esm.js} +914 -536
  133. package/dist/{idOcrManager-DT3kPIB3.d.ts → idOcrManager-BTdHlJ9D.d.ts} +1 -1
  134. package/dist/{idOcrManager-D3-HNMXP.esm.js → idOcrManager-xyEZNOBa.esm.js} +2 -2
  135. package/dist/{idOcrStateMachine-DyENX6Ki.esm.js → idOcrStateMachine-DNKXh4Rn.esm.js} +2 -2
  136. package/dist/{idVerificationManager-iWz7Avkr.esm.js → idVerificationManager-DdnvYfgN.esm.js} +2 -2
  137. package/dist/{idVerificationStateMachine-CL1kUdBe.esm.js → idVerificationStateMachine-DtIBCa32.esm.js} +1 -1
  138. package/dist/identity-reuse.esm.js +2 -2
  139. package/dist/{identityReuseManager-CD1ucp1d.esm.js → identityReuseManager-CcpovlfD.esm.js} +2 -2
  140. package/dist/{identityReuseStateMachine-DfV81wQC.esm.js → identityReuseStateMachine-DxZFWy47.esm.js} +1 -1
  141. package/dist/{index-CKQ9QBZP.d.ts → index-DC0P2Vzw.d.ts} +1 -1
  142. package/dist/{index-BKOWUhxG.d.ts → index-DEfwds5y.d.ts} +55 -8
  143. package/dist/index.d.ts +1 -1
  144. package/dist/index.esm.js +1 -1
  145. package/dist/{invokeOnCaptureCallback-DYrkOXO6.esm.js → invokeOnCaptureCallback-BJ0GVHGr.esm.js} +1 -1
  146. package/dist/kyb-checks.d.ts +3 -0
  147. package/dist/kyb-checks.esm.js +3 -0
  148. package/dist/kybChecksManager-CblEL97E.d.ts +95 -0
  149. package/dist/kybChecksManager-DpGOp4Su.esm.js +89 -0
  150. package/dist/kybChecksStateMachine-B43NAnv7.esm.js +718 -0
  151. package/dist/mandatory-consent.d.ts +2 -2
  152. package/dist/mandatory-consent.esm.js +2 -2
  153. package/dist/{mandatoryConsentManager-Cwqx1nK7.esm.js → mandatoryConsentManager-B4vCYslr.esm.js} +4 -3
  154. package/dist/{mandatoryConsentManager-BQ43yndC.d.ts → mandatoryConsentManager-B88Sm5nd.d.ts} +10 -3
  155. package/dist/{mandatoryConsentStateMachine-pXWqAHo_.esm.js → mandatoryConsentStateMachine-DWslYPA3.esm.js} +20 -7
  156. package/dist/mediaRecorderOptions-B9-IEVtV.esm.js +70 -0
  157. package/dist/multipartRecordingService-BTqkHGG9.esm.js +407 -0
  158. package/dist/nationalIds-B91f_RuB.esm.js +99 -0
  159. package/dist/{permissionGuards-gcy3U0SL.esm.js → permissionGuards-DFV-Ws0a.esm.js} +1 -1
  160. package/dist/{permissionServices-Ca-tSNhT.esm.js → permissionServices-D190ATGD.esm.js} +11 -9
  161. package/dist/phone-number.d.ts +7 -1
  162. package/dist/phone-number.esm.js +15 -2
  163. package/dist/phone.d.ts +1 -1
  164. package/dist/phone.esm.js +2 -2
  165. package/dist/phoneFormat-JJNaWthV.esm.js +75 -0
  166. package/dist/{phoneManager-BO-LTih5.d.ts → phoneManager-6nrJkvkG.d.ts} +5 -0
  167. package/dist/{phoneManager-KKUq-Vgo.esm.js → phoneManager-Dy5tODCU.esm.js} +3 -3
  168. package/dist/phoneServices-DJgyOzU2.esm.js +77 -0
  169. package/dist/{phoneStateMachine-D2QWS2cu.esm.js → phoneStateMachine-DnlPhnw7.esm.js} +54 -82
  170. package/dist/{phoneValidation-DnBcNUNh.esm.js → phoneValidation-OggtfjRt.esm.js} +1 -2
  171. package/dist/{platform-DkcRc9JV.esm.js → platform-aPh7gTWh.esm.js} +15 -1
  172. package/dist/processFaceMatch-Bst83HaS.esm.js +21 -0
  173. package/dist/qe-signature.esm.js +1 -1
  174. package/dist/recordingService-CTko6Cjn.esm.js +397 -0
  175. package/dist/redirect-to-mobile.d.ts +2 -2
  176. package/dist/redirect-to-mobile.esm.js +2 -2
  177. package/dist/{redirectToMobileManager-uHW3dyuQ.esm.js → redirectToMobileManager-CgGaT2NP.esm.js} +5 -4
  178. package/dist/{redirectToMobileManager-CVsvpVbQ.d.ts → redirectToMobileManager-Dm9ctRCC.d.ts} +3 -1
  179. package/dist/{redirectToMobileStateMachine-b-H-ipGM.esm.js → redirectToMobileStateMachine-CbhN8uVN.esm.js} +65 -26
  180. package/dist/resolveForm-O7-r79VA.esm.js +351 -0
  181. package/dist/{runChildModule-BF_atgNx.esm.js → runChildModule-BffFArwl.esm.js} +3 -3
  182. package/dist/{sdkVersion-CsIbltJF.esm.js → sdkVersion-CDd_gaR7.esm.js} +1 -1
  183. package/dist/selfie.d.ts +4 -4
  184. package/dist/selfie.esm.js +10 -10
  185. package/dist/{selfieErrorUtils-BY0-YbPW.esm.js → selfieErrorUtils-f4MgAG2A.esm.js} +1 -1
  186. package/dist/{selfieManager-BJdNu_nd.d.ts → selfieManager-DmZFzs1-.d.ts} +1 -1
  187. package/dist/{selfieManager-vAAwzsHk.esm.js → selfieManager-hopelYEk.esm.js} +5 -5
  188. package/dist/{selfieStateMachine-BFVp3ElQ.esm.js → selfieStateMachine-DaZIVv3Q.esm.js} +3 -3
  189. package/dist/{session-CpwfoVdH.esm.js → session-CdSX4wsZ.esm.js} +77 -9
  190. package/dist/session.d.ts +96 -10
  191. package/dist/session.esm.js +7 -6
  192. package/dist/{sessionInitializer-BTjYgE-V.esm.js → sessionInitializer-DsL7X2j9.esm.js} +465 -206
  193. package/dist/{setup-YPKTUCY5.d.ts → setup-D9qt8YVU.d.ts} +2 -2
  194. package/dist/{setup-BInNAvQw.esm.js → setup-DDahygZs.esm.js} +44 -30
  195. package/dist/signature.esm.js +2 -2
  196. package/dist/{signatureManager-f_dPAGXn.esm.js → signatureManager-CwqjcxPg.esm.js} +2 -2
  197. package/dist/{signatureStateMachine-C-nUq_oq.esm.js → signatureStateMachine-DBVDd1Eu.esm.js} +1 -1
  198. package/dist/{stats-BEvexnKC.esm.js → stats-CatA2dea.esm.js} +1 -1
  199. package/dist/stats.esm.js +1 -1
  200. package/dist/textRules-D4NRinKY.d.ts +41 -0
  201. package/dist/{tri-xzRLIIMN.esm.js → tri-DG6priFa.esm.js} +142 -8
  202. package/dist/tri.d.ts +1 -1
  203. package/dist/tri.esm-CzTNi5Q_.esm.js +3826 -0
  204. package/dist/tri.esm.js +1 -1
  205. package/dist/{trueSightService-BMT-TubT.esm.js → trueSightService-GuLthUVK.esm.js} +19 -10
  206. package/dist/trust-graph.esm.js +1 -1
  207. package/dist/types-B9C8W01q.d.ts +34 -0
  208. package/dist/{types-yPH8lAH-.d.ts → types-BEVHQbbC.d.ts} +2 -2
  209. package/dist/{types-BAxn7MpY.d.ts → types-BPm1JSu7.d.ts} +123 -48
  210. package/dist/{types-0L-eFDmr.d.ts → types-BgRHw-dR.d.ts} +1 -1
  211. package/dist/{types-B6HsSzpk.d.ts → types-CRaFu6wS.d.ts} +6 -3
  212. package/dist/types-CTaL0XJz.d.ts +80 -0
  213. package/dist/{types-Ckir_BEs.d.ts → types-Cd0J0F9D.d.ts} +1 -1
  214. package/dist/{types-CK8Jbjkp.d.ts → types-Csh8vzPo.d.ts} +1 -1
  215. package/dist/types-CuMJ2M7D.d.ts +210 -0
  216. package/dist/{types-DUnFZ08M.d.ts → types-CyNndVAT.d.ts} +16 -8
  217. package/dist/{types-DPIDuhut.d.ts → types-DNVzoRvi.d.ts} +2 -1
  218. package/dist/types-J6g6iKe_.d.ts +6 -0
  219. package/dist/{urlUtils-6jsE6rKp.esm.js → urlUtils-eYiyWjh0.esm.js} +4 -1
  220. package/dist/video-selfie.d.ts +8 -8
  221. package/dist/video-selfie.esm.js +97 -22
  222. package/dist/{videoSelfieCameraWarmer-D1xA0u8y.esm.js → videoSelfieCameraWarmer-e3irGfcO.esm.js} +18 -21
  223. package/dist/{videoSelfieStepDetector-CGsTltqB.d.ts → videoSelfieStepDetector-Dv3Mgws-.d.ts} +9 -4
  224. package/dist/virtualCameraCheck-eFOm2C9q.esm.js +27 -0
  225. package/dist/{warmup-BElYWRh7.esm.js → warmup-DtB0DJpl.esm.js} +198 -27
  226. package/dist/wasm.d.ts +2 -2
  227. package/dist/wasm.esm.js +3 -3
  228. package/dist/{wasmDsFlagSync-CYj5LL9z.esm.js → wasmDsFlagSync-BtiR5pig.esm.js} +1 -1
  229. package/dist/wasmMetadataVersionSync-U8EFUr1T.esm.js +27 -0
  230. package/dist/{wasmWebClient-BjZw_7OB.esm.js → wasmWebClient-BDrax6Eu.esm.js} +55 -26
  231. package/dist/watchlist-for-business.d.ts +2 -1
  232. package/dist/watchlist-for-business.esm.js +2 -2
  233. package/dist/watchlist.esm.js +2 -2
  234. package/dist/{watchlistForBusinessManager-B3GDPZrr.d.ts → watchlistForBusinessManager-DX2AyM4Y.d.ts} +54 -18
  235. package/dist/{watchlistForBusinessManager-CZZOFkGl.esm.js → watchlistForBusinessManager-DqUpAEj_.esm.js} +37 -7
  236. package/dist/watchlistForBusinessStateMachine-DdaPl2PS.esm.js +166 -0
  237. package/dist/{watchlistManager-DXtX94SN.esm.js → watchlistManager-CdpXzT4B.esm.js} +2 -2
  238. package/dist/{watchlistStateMachine-McALifag.esm.js → watchlistStateMachine-ofHW_lPk.esm.js} +1 -1
  239. package/dist/workflow.d.ts +5 -2
  240. package/dist/workflow.esm.js +60 -50
  241. package/package.json +12 -5
  242. package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +0 -9
  243. package/dist/addressSearch-DPjIKJrX.esm.js +0 -563
  244. package/dist/deepsightLoader-DeNvGU3c.esm.js +0 -55
  245. package/dist/ekycStateMachine-CDnI_NRq.esm.js +0 -1443
  246. package/dist/ekycUtils-zY8CdKJL.esm.js +0 -300
  247. package/dist/thumbmark.esm-CRc0cYvz.esm.js +0 -1242
  248. package/dist/tri.esm-BIjHhBJ2.esm.js +0 -2620
  249. package/dist/types-BvLo3U4u.d.ts +0 -134
  250. package/dist/types-zOgZqMni.d.ts +0 -6
  251. package/dist/watchlistForBusinessStateMachine-B66E7jud.esm.js +0 -78
  252. /package/dist/{types-BSBzhHRH2.d.ts → types-BSBzhHRH.d.ts} +0 -0
@@ -0,0 +1,80 @@
1
+ import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
2
+ import { t as MultipartRecordingProvider } from "./MultipartRecordingProvider-D9mauUdS.esm.js";
3
+ //#region ../infra/src/providers/browser/WorkerEncoderRecordingProvider.ts
4
+ var WorkerEncoderRecordingProvider_exports = /* @__PURE__ */ __exportAll({ WorkerEncoderRecordingProvider: () => WorkerEncoderRecordingProvider });
5
+ /**
6
+ * Multipart recorder for a `CameraCompositor` that encodes inside its worker
7
+ * (ENG-55397): emits the worker's WebM clusters as parts, in order. When the
8
+ * compositor could not start in-worker encoding (no insertable streams or
9
+ * WebCodecs, strict CSP), it records the composite stream with
10
+ * `MediaRecorder` instead, so callers wire it unconditionally.
11
+ *
12
+ * Why not always `MediaRecorder`: Chrome hands every recorded frame through
13
+ * the page main thread and drops frames while it is blocked. On a Galaxy A01
14
+ * Core the ID flow blocks it for 3–5 s (WASM + 1080p readbacks); a
15
+ * `MediaRecorder` fed by the worker kept 74 of 149 frames under 1.5 s
16
+ * freezes, the in-worker encoder 150 of 151.
17
+ */
18
+ var WorkerEncoderRecordingProvider = class {
19
+ constructor(compositor) {
20
+ this.compositor = compositor;
21
+ this._isRecording = false;
22
+ this._error = null;
23
+ this.partNumber = 0;
24
+ this.fallback = null;
25
+ }
26
+ get isRecording() {
27
+ return this.fallback ? this.fallback.isRecording : this._isRecording;
28
+ }
29
+ get hasError() {
30
+ return this.error !== null;
31
+ }
32
+ get error() {
33
+ if (this.fallback) return this.fallback.error;
34
+ return this._error ?? this.compositor.workerRecordingErrorMessage;
35
+ }
36
+ startRecording(stream, onPart) {
37
+ this.reset();
38
+ if (!this.compositor.encodesInWorker) {
39
+ this.fallback = new MultipartRecordingProvider();
40
+ this.fallback.startRecording(stream, onPart);
41
+ return;
42
+ }
43
+ this.partNumber = 0;
44
+ const started = this.compositor.startWorkerRecording((chunk) => {
45
+ this.partNumber += 1;
46
+ onPart({
47
+ chunk,
48
+ partNumber: this.partNumber
49
+ });
50
+ });
51
+ this._isRecording = started;
52
+ this._error = started ? null : "Failed to start recording: no encoder";
53
+ }
54
+ pauseRecording() {
55
+ if (this.fallback) return this.fallback.pauseRecording();
56
+ return this._isRecording && this.compositor.pauseWorkerRecording();
57
+ }
58
+ resumeRecording() {
59
+ if (this.fallback) return this.fallback.resumeRecording();
60
+ return this._isRecording && this.compositor.resumeWorkerRecording();
61
+ }
62
+ async stopRecording() {
63
+ if (this.fallback) {
64
+ await this.fallback.stopRecording();
65
+ return;
66
+ }
67
+ if (!this._isRecording) return;
68
+ this._isRecording = false;
69
+ await this.compositor.stopWorkerRecording();
70
+ }
71
+ reset() {
72
+ this.fallback?.reset();
73
+ this.fallback = null;
74
+ this.compositor.cancelWorkerRecording();
75
+ this._isRecording = false;
76
+ this._error = null;
77
+ }
78
+ };
79
+ //#endregion
80
+ export { WorkerEncoderRecordingProvider_exports as n, WorkerEncoderRecordingProvider as t };
@@ -0,0 +1,254 @@
1
+ import { t as api, u as endpoints } from "./api-CpP4PS4S.esm.js";
2
+ import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
3
+ import { t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
4
+ //#region src/shared/addressSuggestion.ts
5
+ /** Shown when an autocomplete suggestion has no street (city/region-level result). */
6
+ const STREET_LEVEL_REQUIRED_ERROR = { key: "verification.errors.streetLevelRequired" };
7
+ function isStreetMissingFromSuggestion(suggestion) {
8
+ return !suggestion.street?.trim();
9
+ }
10
+ /**
11
+ * Validation error for `street` after selecting a suggestion without `street`,
12
+ * or `undefined` when the suggestion is street-level or street is not active.
13
+ */
14
+ function getStreetLevelErrorForSuggestion(suggestion, activeFields) {
15
+ if (!activeFields.has("street")) return void 0;
16
+ return isStreetMissingFromSuggestion(suggestion) ? STREET_LEVEL_REQUIRED_ERROR : void 0;
17
+ }
18
+ /**
19
+ * Fills form values from an address autocomplete suggestion.
20
+ * Shared between eKYC and eKYB address forms.
21
+ */
22
+ function fillFromSuggestion(values, touched, suggestion, activeFields) {
23
+ const newValues = { ...values };
24
+ const newTouched = { ...touched };
25
+ const hasHouseNoField = !activeFields || activeFields.has("houseNo");
26
+ const hasStreetField = !activeFields || activeFields.has("street");
27
+ const streetValue = buildStreetValue(suggestion.street, suggestion.houseNumber, hasHouseNoField);
28
+ if (hasStreetField) {
29
+ newValues.street = streetValue;
30
+ newTouched.street = true;
31
+ }
32
+ if (suggestion.city) {
33
+ newValues.city = suggestion.city;
34
+ newTouched.city = true;
35
+ }
36
+ if (suggestion.stateCode) {
37
+ newValues.state = suggestion.stateCode;
38
+ newTouched.state = true;
39
+ }
40
+ if (suggestion.postalCode) {
41
+ newValues.postalCode = suggestion.postalCode;
42
+ newTouched.postalCode = true;
43
+ }
44
+ if (suggestion.houseNumber && hasHouseNoField) {
45
+ newValues.houseNo = suggestion.houseNumber;
46
+ newTouched.houseNo = true;
47
+ }
48
+ return {
49
+ values: newValues,
50
+ touched: newTouched
51
+ };
52
+ }
53
+ function buildStreetValue(street, houseNumber, hasHouseNoField) {
54
+ if (hasHouseNoField) return street ?? "";
55
+ if (houseNumber && street) return `${houseNumber} ${street}`;
56
+ return houseNumber ?? street ?? "";
57
+ }
58
+ const POSTAL_CODE_MAX_LENGTH_BY_COUNTRY = {
59
+ US: 10,
60
+ BR: 9,
61
+ GB: 8,
62
+ UK: 8,
63
+ AR: 8,
64
+ CA: 7,
65
+ NL: 6,
66
+ PT: 8
67
+ };
68
+ const FIXED_LENGTH_KEY = "verification.errors.invalidPostalCodeFixedLength";
69
+ /**
70
+ * Countries whose postal code is a fixed number of digits. It sets the
71
+ * check, the input's max length and the digits-only typing mask.
72
+ */
73
+ const FIXED_DIGIT_POSTAL_CODE_LENGTH = {
74
+ BE: 4,
75
+ DK: 4,
76
+ NO: 4,
77
+ PH: 4,
78
+ DE: 5,
79
+ ES: 5,
80
+ FI: 5,
81
+ FR: 5,
82
+ GR: 5,
83
+ IT: 5,
84
+ KE: 5,
85
+ MX: 5,
86
+ CN: 6,
87
+ IN: 6,
88
+ NG: 6,
89
+ SG: 6,
90
+ IL: 7
91
+ };
92
+ function getPostalCodeMaxLength(country) {
93
+ return POSTAL_CODE_MAX_LENGTH_BY_COUNTRY[country] ?? FIXED_DIGIT_POSTAL_CODE_LENGTH[country] ?? 8;
94
+ }
95
+ function getPostalCodeErrorKey(country) {
96
+ if (country in FIXED_DIGIT_POSTAL_CODE_LENGTH) return FIXED_LENGTH_KEY;
97
+ if (country === "CA") return "verification.errors.CAPostalCodeInvalidFormat";
98
+ if (country === "AR") return "verification.errors.ARPostalCodeInvalidFormat";
99
+ if (country === "GB" || country === "UK") return "verification.errors.UKPostalCodeInvalidFormat";
100
+ if (country === "NL") return "verification.errors.NLPostalCodeInvalidFormat";
101
+ if (country === "PT") return "verification.errors.PTPostalCodeInvalidFormat";
102
+ if (country === "US") return "verification.errors.zipCodeInvalidFormat";
103
+ return "verification.errors.postalCodeInvalidFormat";
104
+ }
105
+ const US_POSTAL_CODE_REGEX = /^(?:\d{5}|\d{9}|\d{5}-\d{4})$/;
106
+ const BR_POSTAL_CODE_REGEX = /^(?:\d{5}|\d{8}|\d{5}-\d{3})$/;
107
+ const CA_POSTAL_CODE_REGEX = /^[A-Za-z]\d[A-Za-z] \d[A-Za-z]\d$/;
108
+ 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}$/;
109
+ const AR_POSTAL_CODE_REGEX = /^[A-Za-z]\d{4}[A-Za-z]{3}$/;
110
+ /** Four digits and two uppercase letters, such as 1016DV. */
111
+ const NL_POSTAL_CODE_REGEX = /^\d{4}[A-Z]{2}$/;
112
+ /** Seven digits, the first 1 to 9, with or without a hyphen: 4430-458. */
113
+ const PT_POSTAL_CODE_REGEX = /^[1-9]\d{3}-?\d{3}$/;
114
+ /**
115
+ * Validates a postal code by country.
116
+ * Covers all countries used by eKYC and eKYB.
117
+ */
118
+ function validatePostalCode(postalCode, country) {
119
+ if (!postalCode) return false;
120
+ const fixedDigits = FIXED_DIGIT_POSTAL_CODE_LENGTH[country];
121
+ if (fixedDigits !== void 0) return postalCode.length === fixedDigits && /^\d+$/.test(postalCode);
122
+ switch (country) {
123
+ case "US": return US_POSTAL_CODE_REGEX.test(postalCode);
124
+ case "BR": return BR_POSTAL_CODE_REGEX.test(postalCode);
125
+ case "CA": return CA_POSTAL_CODE_REGEX.test(postalCode);
126
+ case "GB":
127
+ case "UK": return UK_POSTAL_CODE_REGEX.test(postalCode.toUpperCase());
128
+ case "AR": return AR_POSTAL_CODE_REGEX.test(postalCode.replace(/\s/g, "").toUpperCase());
129
+ case "NL": return NL_POSTAL_CODE_REGEX.test(postalCode);
130
+ case "PT": return PT_POSTAL_CODE_REGEX.test(postalCode);
131
+ case "CM": return postalCode.length > 0;
132
+ default: {
133
+ const stripped = postalCode.replace(/\D/g, "");
134
+ return /^\d+$/.test(stripped) && [5, 8].includes(stripped.length);
135
+ }
136
+ }
137
+ }
138
+ /**
139
+ * Progressively formats postal code input by country.
140
+ * Covers all countries used by eKYC and eKYB.
141
+ */
142
+ function formatPostalCode(value, country) {
143
+ const fixedDigits = FIXED_DIGIT_POSTAL_CODE_LENGTH[country];
144
+ if (fixedDigits !== void 0) return value.replace(/\D/g, "").slice(0, fixedDigits);
145
+ if (country === "US" || country === "BR") {
146
+ const maxDigits = country === "US" ? 9 : 8;
147
+ const hasDash = value.includes("-");
148
+ const digits = value.replace(/\D/g, "").slice(0, maxDigits);
149
+ if (digits.length <= 5) {
150
+ if (hasDash && digits.length === 5) return `${digits}-`;
151
+ return digits;
152
+ }
153
+ if (hasDash) return `${digits.slice(0, 5)}-${digits.slice(5)}`;
154
+ return digits;
155
+ }
156
+ if (country === "CA") {
157
+ const normalized = value.replace(/[^A-Za-z0-9]/g, "").toUpperCase().slice(0, 6);
158
+ if (normalized.length <= 3) return normalized;
159
+ return `${normalized.slice(0, 3)} ${normalized.slice(3)}`;
160
+ }
161
+ if (country === "GB" || country === "UK") {
162
+ const normalized = value.replace(/[^A-Za-z0-9]/g, "").toUpperCase().slice(0, 7);
163
+ if (normalized.length <= 3) return normalized;
164
+ return `${normalized.slice(0, -3)} ${normalized.slice(-3)}`;
165
+ }
166
+ if (country === "AR") return value.replace(/[^A-Za-z0-9]/g, "").toUpperCase().slice(0, 8);
167
+ if (country === "PT") {
168
+ const digits = value.replace(/\D/g, "").slice(0, 7);
169
+ return digits.length <= 4 ? digits : `${digits.slice(0, 4)}-${digits.slice(4)}`;
170
+ }
171
+ if (country === "NL") return `${value.replace(/\D/g, "").slice(0, 4)}${value.replace(/[^A-Za-z]/g, "").slice(0, 2).toUpperCase()}`;
172
+ return value.slice(0, 8);
173
+ }
174
+ //#endregion
175
+ //#region src/internal/forms/definitionSource.ts
176
+ const queryKey = ({ module, source, country }) => `${module}|${source ?? ""}|${country ?? ""}`;
177
+ /**
178
+ * The definitions bundled with this build. Matches module, source and country
179
+ * exactly, so a pair without its own definition keeps the current builder.
180
+ */
181
+ function createBundledDefinitionSource(definitions) {
182
+ const byQuery = new Map(Object.values(definitions).map((definition) => [queryKey(definition), definition]));
183
+ return { select: (query) => byQuery.get(queryKey(query)) };
184
+ }
185
+ //#endregion
186
+ //#region src/internal/formDefinitionsRollout/formDefinitionsRollout.ts
187
+ /**
188
+ * The rollout switch for form definitions (ENG-59781): one all-or-nothing
189
+ * answer to "do eKYC and eKYB build their forms from catalog definitions, or
190
+ * with today's builders?". Both module adapters ask it before selecting a
191
+ * definition (`selectEkycDefinition`, `selectEkybForm`); the forms kernel
192
+ * (`internal/forms`) knows nothing about it.
193
+ *
194
+ * Off by default, so every source and country keeps today's builder. A
195
+ * catalog-only eKYC source, one today's builder never knew, uses its
196
+ * definition either way, since it has no old path to fall back to.
197
+ *
198
+ * This is Incode's rollout decision, not the integrator's: it is not a
199
+ * `setup()` option. A later step reads a Statsig gate here instead of the
200
+ * constant.
201
+ */
202
+ const ENABLED_BY_DEFAULT = false;
203
+ /** Whether sources and countries with a form definition use it. */
204
+ function isFormDefinitionsEnabled() {
205
+ return ENABLED_BY_DEFAULT;
206
+ }
207
+ //#endregion
208
+ //#region src/shared/addressSearch.ts
209
+ /** Searches for address suggestions via the address autocomplete API. */
210
+ async function searchAddress(query, signal) {
211
+ const res = await api.post(endpoints.addressAutocomplete, { search: query }, { signal });
212
+ if (!res.ok) throw new Error(`POST ${endpoints.addressAutocomplete} failed: ${res.status} ${res.statusText}`);
213
+ return { apiResponse: { items: (res.data.apiResponse?.items ?? []).map((item, i) => {
214
+ const addr = item.address ?? item;
215
+ return {
216
+ id: item.id ?? i,
217
+ label: addr.label ?? item.title ?? "",
218
+ street: addr.street,
219
+ city: addr.city,
220
+ stateCode: addr.stateCode ?? addr.state,
221
+ postalCode: addr.postalCode,
222
+ houseNumber: addr.houseNumber,
223
+ countryCode: addr.countryCode
224
+ };
225
+ }) } };
226
+ }
227
+ const DEBOUNCE_MS = 300;
228
+ /**
229
+ * XState callback actor that debounces address search requests.
230
+ * Cancels in-flight HTTP requests when the actor is stopped.
231
+ */
232
+ const debounceSearchActor = fromCallback(({ input, sendBack }) => {
233
+ const timerProvider = BrowserTimerProvider.getInstance();
234
+ const controller = new AbortController();
235
+ const handle = timerProvider.setTimeout(async () => {
236
+ try {
237
+ sendBack({
238
+ type: "RESULTS",
239
+ suggestions: (await searchAddress(input.query, controller.signal)).apiResponse?.items ?? []
240
+ });
241
+ } catch {
242
+ if (!controller.signal.aborted) sendBack({
243
+ type: "RESULTS",
244
+ suggestions: []
245
+ });
246
+ }
247
+ }, DEBOUNCE_MS);
248
+ return () => {
249
+ timerProvider.clearTimeout(handle);
250
+ controller.abort();
251
+ };
252
+ });
253
+ //#endregion
254
+ export { FIXED_DIGIT_POSTAL_CODE_LENGTH as a, getPostalCodeMaxLength as c, fillFromSuggestion as d, getStreetLevelErrorForSuggestion as f, createBundledDefinitionSource as i, validatePostalCode as l, searchAddress as n, formatPostalCode as o, isFormDefinitionsEnabled as r, getPostalCodeErrorKey as s, debounceSearchActor as t, STREET_LEVEL_REQUIRED_ERROR 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-CcIMOb_Y.esm.js";
1
+ import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-BCE3uA3z.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-Dfrd2-26.esm.js";
2
+ import { n as createAntifraudManagerFromActor, t as createAntifraudManager } from "./antifraudManager-BObuHBjn.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-ggpBBaZ8.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-Dfrd2-26.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-CpP4PS4S.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",
@@ -63,6 +64,8 @@ const endpoints = {
63
64
  addGeolocation: "/omni/add/geolocation",
64
65
  ekycSubmit: "/omni/externalVerification/ekyc",
65
66
  ekybSubmit: "/omni/externalVerification/ekyb",
67
+ kybForm: "/omni/kyb/form",
68
+ kybSubmit: "/omni/kyb",
66
69
  getCombinedConsent: "/omni/get/combined-consent",
67
70
  signCombinedConsent: "/omni/sign-combined-consent",
68
71
  getConsents: "/omni/consents",
@@ -270,10 +273,10 @@ async function withTiming(method, url, call) {
270
273
  * (later keys overwrite earlier ones in object spread).
271
274
  *
272
275
  * 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
276
+ * `X-Incode-Hardware-Id` header (`recordingsRepository.uploadDeepsightVideo`;
277
+ * the retired `internal/virtualCameraCheck.logFrame` did too) now use the
278
+ * value they passed in unconditionally — previously the auto-injection
279
+ * silently clobbered them. Those call sites pass tokens that are already
277
280
  * supposed to be the active session token, so behaviour is
278
281
  * unchanged in practice; the change unblocks personhood (which
279
282
  * 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-BMT-TubT.esm.js";
1
+ import { d as categoryForEndpoint, u as trueSightLog } from "./trueSightService-GuLthUVK.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-CpP4PS4S.esm.js";
2
+ import { a as watchConnectivity } from "./connectivity-BCuEoQ-n.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-DV2ULUYS.js";
2
+ import { t as AuthenticationConfig } from "./types-J6g6iKe_.js";
3
+ import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-CWmh7aSY.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-C99B0GFP.esm.js";
2
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-2Lr5V_7p.esm.js";
1
+ import { t as authenticationMachine } from "./authenticationStateMachine-BMbZL8wm.esm.js";
2
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-DjX0XDyH.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-DV2ULUYS.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-BInNAvQw.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-DDahygZs.esm.js";
2
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-Dp2V-Uct.esm.js";
3
+ import { n as eventModuleNames } from "./events-ggpBBaZ8.esm.js";
4
4
  import { s as createActor } from "./xstate.esm-DSajW7CJ.esm.js";
5
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-BlGvXzXA.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-C99B0GFP.esm.js";
5
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-Dp90bedH.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-BMbZL8wm.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-TY8RXc2N.esm.js";
4
- import { d as FACE_ERROR_CODES, f as isOnDeviceMode } from "./FaceDetectionProvider-DcPOC2gS.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-ZfiWg0fo.esm.js";
4
+ import { d as isOnDeviceMode, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-CAY43vSI.esm.js";
5
+ import { s as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-BGMtYwk3.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,
@@ -0,0 +1,67 @@
1
+ //#region src/internal/camera/backCameraLabel.ts
2
+ const BACK_CAMERA_KEYWORDS = [
3
+ "rear",
4
+ "back",
5
+ "rück",
6
+ "arrière",
7
+ "trasera",
8
+ "trás",
9
+ "traseira",
10
+ "posteriore",
11
+ "后面",
12
+ "後面",
13
+ "背面",
14
+ "后置",
15
+ "後置",
16
+ "背置",
17
+ "задней",
18
+ "الخلفية",
19
+ "후",
20
+ "arka",
21
+ "achterzijde",
22
+ "หลัง",
23
+ "baksidan",
24
+ "bagside",
25
+ "sau",
26
+ "bak",
27
+ "tylny",
28
+ "takakamera",
29
+ "belakang",
30
+ "אחורית",
31
+ "πίσω",
32
+ "spate",
33
+ "hátsó",
34
+ "zadní",
35
+ "darrere",
36
+ "zadná",
37
+ "задня",
38
+ "stražnja",
39
+ "बैक"
40
+ ];
41
+ function isBackCameraLabel(label) {
42
+ const lowercaseLabel = label.toLowerCase();
43
+ return BACK_CAMERA_KEYWORDS.some((keyword) => lowercaseLabel.includes(keyword));
44
+ }
45
+ function isBackFacingTrack(track) {
46
+ const settings = track.getSettings();
47
+ return isBackCameraLabel(track.label) || settings.facingMode === "environment";
48
+ }
49
+ /**
50
+ * Pick the best back-facing device from a list already filtered by label.
51
+ * Prefers the highest megapixel count when labels advertise it, else the first.
52
+ */
53
+ function selectBestBackDevice(devices) {
54
+ if (devices.length === 1) return devices[0];
55
+ const withMp = devices.map((d) => {
56
+ const match = d.label.match(/\b([0-9]+)\s*MP?\b/i);
57
+ return {
58
+ device: d,
59
+ mp: match ? parseInt(match[1], 10) : 0
60
+ };
61
+ });
62
+ const maxMp = Math.max(...withMp.map((w) => w.mp));
63
+ const best = withMp.find((w) => w.mp === maxMp);
64
+ return best ? best.device : devices[0];
65
+ }
66
+ //#endregion
67
+ export { isBackFacingTrack as n, selectBestBackDevice as r, isBackCameraLabel as t };