@incodetech/core 0.0.0-dev-20261104-4dbc3ea3 → 0.0.0-dev-20261104-49452fc0

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-Clp2STaL.esm.js → FaceDetectionProvider-YEIZbGDi.esm.js} +9 -9
  2. package/dist/{WasmUtilProvider-DZOGC2HE.esm.js → WasmUtilProvider-BP6-08Yn.esm.js} +2 -2
  3. package/dist/{addressSearch-41sMcnJk.esm.js → addressSearch-DzbE9Ogt.esm.js} +2 -352
  4. package/dist/ae-signature.esm.js +1 -1
  5. package/dist/antifraud.esm.js +2 -2
  6. package/dist/{antifraudManager-CQ08atTC.esm.js → antifraudManager-BObuHBjn.esm.js} +2 -2
  7. package/dist/{antifraudStateMachine-BcsUTTIr.esm.js → antifraudStateMachine-Dfrd2-26.esm.js} +1 -1
  8. package/dist/{api-BO8JA7Pf.esm.js → api-CpP4PS4S.esm.js} +2 -0
  9. package/dist/{apiError-BYiBD0Ua.esm.js → apiError-b2fuT-IQ.esm.js} +1 -1
  10. package/dist/{attemptCarry-C8NbkPlt.esm.js → attemptCarry-WOkfvFMw.esm.js} +1 -1
  11. package/dist/authentication.d.ts +3 -3
  12. package/dist/authentication.esm.js +2 -2
  13. package/dist/{authenticationManager--l6e_7Pr.d.ts → authenticationManager-CWmh7aSY.d.ts} +1 -1
  14. package/dist/{authenticationManager-D3MYWvA6.esm.js → authenticationManager-x8mqpHOE.esm.js} +5 -5
  15. package/dist/{authenticationStateMachine-BCTipd5K.esm.js → authenticationStateMachine-C5Jln1aT.esm.js} +3 -3
  16. package/dist/camera.d.ts +2 -2
  17. package/dist/camera.esm.js +1 -1
  18. package/dist/certificate-issuance.esm.js +2 -2
  19. package/dist/{certificateIssuanceManager-CM0fuqDC.esm.js → certificateIssuanceManager-C1nETQos.esm.js} +2 -2
  20. package/dist/{certificateIssuanceStateMachine-kksIUOPD.esm.js → certificateIssuanceStateMachine-DThXMDqr.esm.js} +1 -1
  21. package/dist/consent.d.ts +1 -1
  22. package/dist/consent.esm.js +2 -2
  23. package/dist/{consentManager-CBwFozhv.esm.js → consentManager-DMlSL6Ax.esm.js} +2 -2
  24. package/dist/{consentManager-D8rgr5Dv.d.ts → consentManager-ybzeu6sI.d.ts} +5 -5
  25. package/dist/{consentStateMachine-CpmRAcr2.esm.js → consentStateMachine-DIYSMxKQ.esm.js} +1 -1
  26. package/dist/cross-document-data-match.esm.js +1 -1
  27. package/dist/{crossDocumentDataMatchManager-64O8t10a.esm.js → crossDocumentDataMatchManager-BFTdiEDB.esm.js} +2 -2
  28. package/dist/curp-validation.d.ts +1 -1
  29. package/dist/curp-validation.esm.js +2 -2
  30. package/dist/{curpValidationManager-C7t3QLf-.esm.js → curpValidationManager-DNpC3wyf.esm.js} +2 -2
  31. package/dist/{curpValidationManager-B9LuZ0tj.d.ts → curpValidationManager-z8428oCM.d.ts} +1 -1
  32. package/dist/{curpValidationStateMachine-DAFndzpo.esm.js → curpValidationStateMachine-B3iVsDyt.esm.js} +2 -2
  33. package/dist/custom-fields.esm.js +1 -1
  34. package/dist/custom-watchlist.esm.js +2 -2
  35. package/dist/{customFieldsManager-DWt_0YtJ.esm.js → customFieldsManager-CvI-pDT3.esm.js} +2 -2
  36. package/dist/{customWatchlistManager-D8o-2Nej.esm.js → customWatchlistManager-BuHtUb0y.esm.js} +2 -2
  37. package/dist/{customWatchlistStateMachine-Sbi6DIcK.esm.js → customWatchlistStateMachine-CiVD9wyF.esm.js} +1 -1
  38. package/dist/{deepsightLoader-AYvov0JE.esm.js → deepsightLoader-DEaTmOtV.esm.js} +5 -5
  39. package/dist/{desktopCameraElection-CzF8HsJn.esm.js → desktopCameraElection-CvVbR9-p.esm.js} +4 -4
  40. package/dist/document-capture.esm.js +2 -2
  41. package/dist/{documentCaptureManager-BfXguEU3.esm.js → documentCaptureManager-CNF5LNmp.esm.js} +2 -2
  42. package/dist/{documentCaptureStateMachine-DJPyCwQu.esm.js → documentCaptureStateMachine-p8yovofp.esm.js} +4 -4
  43. package/dist/dynamic-forms.esm.js +2 -2
  44. package/dist/{dynamicFormsManager-Dt8hp7Xd.esm.js → dynamicFormsManager-f8riHilf.esm.js} +2 -2
  45. package/dist/{dynamicFormsStateMachine-DLAvflmE.esm.js → dynamicFormsStateMachine-Dt4_Fsxk.esm.js} +2 -2
  46. package/dist/ekyb.d.ts +4 -4
  47. package/dist/ekyb.esm.js +2 -2
  48. package/dist/{ekybManager-TB6ZG5lX.d.ts → ekybManager-BLOkwmWO.d.ts} +2 -2
  49. package/dist/{ekybManager-D2iEUBPj.esm.js → ekybManager-BwBdOOMz.esm.js} +2 -2
  50. package/dist/{ekybStateMachine-PH1hy6T0.esm.js → ekybStateMachine-Cr_wkUnH.esm.js} +4 -3
  51. package/dist/ekyc.d.ts +3 -2
  52. package/dist/ekyc.esm.js +3 -3
  53. package/dist/{ekycManager-Be6T7RJs.esm.js → ekycManager-CoWoHxtL.esm.js} +2 -2
  54. package/dist/{ekycManager-BSQteIfC.d.ts → ekycManager-DlGIn9wA.d.ts} +2 -1
  55. package/dist/{ekycStateMachine-DZbKVMgq.esm.js → ekycStateMachine-DOWVsq7o.esm.js} +5 -67
  56. package/dist/{ekycUtils-ChD5TcJH.esm.js → ekycUtils-as4sEjNz.esm.js} +59 -8
  57. package/dist/electronic-signature.esm.js +1 -1
  58. package/dist/{electronicSignatureManager-DDL-ylsJ.esm.js → electronicSignatureManager-DRPy_cGL.esm.js} +3 -3
  59. package/dist/email.esm.js +2 -2
  60. package/dist/{emailManager-CDhBis0c.esm.js → emailManager-CGoE3CUe.esm.js} +2 -2
  61. package/dist/{emailStateMachine-D6WedIVj.esm.js → emailStateMachine-KgHfDNvM.esm.js} +2 -2
  62. package/dist/{events-CQteqXfy.esm.js → events-ggpBBaZ8.esm.js} +1 -1
  63. package/dist/events.esm.js +1 -1
  64. package/dist/extensibility.d.ts +15 -14
  65. package/dist/extensibility.esm.js +36 -35
  66. package/dist/face-match.esm.js +2 -2
  67. package/dist/{faceCaptureManagerFactory-tFqvK5KO.esm.js → faceCaptureManagerFactory-Bl3wOB84.esm.js} +4 -4
  68. package/dist/{faceCaptureManagerFactory-BQtDMMuq.d.ts → faceCaptureManagerFactory-DV2ULUYS.d.ts} +3 -3
  69. package/dist/{faceCaptureSetup-B8W4cid6.esm.js → faceCaptureSetup-zI6zgq4z.esm.js} +11 -11
  70. package/dist/{faceMatchManager-B2zp7yP4.esm.js → faceMatchManager-D2xKPjjQ.esm.js} +2 -2
  71. package/dist/{faceMatchStateMachine-ByTMQCUC.esm.js → faceMatchStateMachine-CUvwiQi9.esm.js} +2 -2
  72. package/dist/{feature-management-C5QYxdqM.esm.js → feature-management-DQFwX8Hl.esm.js} +1 -1
  73. package/dist/feature-management.esm.js +1 -1
  74. package/dist/field-comparison.esm.js +1 -1
  75. package/dist/{fieldComparisonManager-CC0vKmpf.esm.js → fieldComparisonManager-DgDbEeFZ.esm.js} +2 -2
  76. package/dist/fiscal-qr.esm.js +1 -1
  77. package/dist/{fiscalQrManager-Bj2YnPFD.esm.js → fiscalQrManager-BZeklojR.esm.js} +2 -2
  78. package/dist/flow-events.d.ts +1 -1
  79. package/dist/flow.d.ts +7 -7
  80. package/dist/flow.esm.js +4 -4
  81. package/dist/{flowCompletionService-CHf7rcBO.esm.js → flowCompletionService-DHFje7x-.esm.js} +2 -2
  82. package/dist/{flowServices-BWnaP5s0.esm.js → flowServices-Cb0iHJVG.esm.js} +8 -8
  83. package/dist/geolocation.esm.js +2 -2
  84. package/dist/{geolocationManager-CbRv_K1Y.esm.js → geolocationManager-Cw8v5-5V.esm.js} +2 -2
  85. package/dist/{geolocationStateMachine-BdDTTyAI.esm.js → geolocationStateMachine-ma-iPEHx.esm.js} +3 -3
  86. package/dist/government-validation.esm.js +2 -2
  87. package/dist/{governmentValidationManager-CkX9TEkh.esm.js → governmentValidationManager-CjChjZ3C.esm.js} +2 -2
  88. package/dist/{governmentValidationStateMachine-PTPCP26N.esm.js → governmentValidationStateMachine-AEbn3Afi.esm.js} +1 -1
  89. package/dist/home.d.ts +1 -1
  90. package/dist/home.esm.js +1 -1
  91. package/dist/http.esm.js +1 -1
  92. package/dist/id-ocr.d.ts +1 -1
  93. package/dist/id-ocr.esm.js +2 -2
  94. package/dist/id-selfie-flow.d.ts +1 -1
  95. package/dist/id-selfie-flow.esm.js +8 -8
  96. package/dist/id-verification.esm.js +2 -2
  97. package/dist/id.d.ts +2 -2
  98. package/dist/id.esm.js +3 -3
  99. package/dist/{idCaptureDefaults-BOIM1God.esm.js → idCaptureDefaults-CnAGmc1o.esm.js} +3 -3
  100. package/dist/{idCaptureManager-BwnhLz9C.d.ts → idCaptureManager-CCA2D1Ah.d.ts} +2 -2
  101. package/dist/{idCaptureManager-CWlC3EJz.esm.js → idCaptureManager-DSTzKvSp.esm.js} +8 -8
  102. package/dist/{idCaptureServices-D9d-qtrS.esm.js → idCaptureServices-DrnyYM5Z.esm.js} +5 -5
  103. package/dist/{idCaptureStateMachine-zmw_aQU4.esm.js → idCaptureStateMachine-Cx8jXNgx.esm.js} +17 -17
  104. package/dist/{idOcrManager-DT3kPIB3.d.ts → idOcrManager-BTdHlJ9D.d.ts} +1 -1
  105. package/dist/{idOcrManager-B64-fjWg.esm.js → idOcrManager-xyEZNOBa.esm.js} +2 -2
  106. package/dist/{idOcrStateMachine-B1aZnobs.esm.js → idOcrStateMachine-DNKXh4Rn.esm.js} +1 -1
  107. package/dist/{idVerificationManager-_Kebv-Ue.esm.js → idVerificationManager-DdnvYfgN.esm.js} +2 -2
  108. package/dist/{idVerificationStateMachine-DQn6c84z.esm.js → idVerificationStateMachine-DtIBCa32.esm.js} +1 -1
  109. package/dist/identity-reuse.d.ts +1 -1
  110. package/dist/identity-reuse.esm.js +2 -2
  111. package/dist/{identityReuseManager-DDXkNVZi.esm.js → identityReuseManager-CcpovlfD.esm.js} +2 -2
  112. package/dist/{identityReuseManager-B1birg5X.d.ts → identityReuseManager-ooAbp6Kc.d.ts} +4 -4
  113. package/dist/{identityReuseStateMachine-Bcnkbjf8.esm.js → identityReuseStateMachine-DxZFWy47.esm.js} +1 -1
  114. package/dist/{index-D2xVKjpi.d.ts → index-DC0P2Vzw.d.ts} +1 -1
  115. package/dist/index.esm.js +1 -1
  116. package/dist/{invokeOnCaptureCallback-CXIBwBeE.esm.js → invokeOnCaptureCallback-BJ0GVHGr.esm.js} +1 -1
  117. package/dist/kyb-checks.d.ts +3 -0
  118. package/dist/kyb-checks.esm.js +3 -0
  119. package/dist/kybChecksManager-CblEL97E.d.ts +95 -0
  120. package/dist/kybChecksManager-DswTVAz4.esm.js +89 -0
  121. package/dist/kybChecksStateMachine-DI_5RyBk.esm.js +718 -0
  122. package/dist/mandatory-consent.d.ts +2 -2
  123. package/dist/mandatory-consent.esm.js +2 -2
  124. package/dist/{mandatoryConsentManager-BeVif8kS.d.ts → mandatoryConsentManager-6e3_CcJt.d.ts} +6 -6
  125. package/dist/{mandatoryConsentManager-43W5d_8G.esm.js → mandatoryConsentManager-B4vCYslr.esm.js} +2 -2
  126. package/dist/{mandatoryConsentStateMachine-CVlgdlnt.esm.js → mandatoryConsentStateMachine-DWslYPA3.esm.js} +1 -1
  127. package/dist/{multipartRecordingService-Cp2NhhmP.esm.js → multipartRecordingService-BTqkHGG9.esm.js} +1 -1
  128. package/dist/{permissionGuards-Dck-ZReK.esm.js → permissionGuards-s7Qm6q8W.esm.js} +1 -1
  129. package/dist/{permissionServices-CJSZshmj.esm.js → permissionServices-RawRSsLZ.esm.js} +8 -6
  130. package/dist/phone.esm.js +2 -2
  131. package/dist/phoneFormat-JJNaWthV.esm.js +75 -0
  132. package/dist/{phoneManager-DLFQqWDV.esm.js → phoneManager-Dy5tODCU.esm.js} +2 -2
  133. package/dist/{phoneServices-Cn4uBGpN.esm.js → phoneServices-DJgyOzU2.esm.js} +1 -1
  134. package/dist/{phoneStateMachine-BLFIfxPy.esm.js → phoneStateMachine-DnlPhnw7.esm.js} +19 -9
  135. package/dist/{processFaceMatch-BWme3kVV.esm.js → processFaceMatch-Bst83HaS.esm.js} +1 -1
  136. package/dist/qe-signature.esm.js +1 -1
  137. package/dist/{recordingService-zbt2C0w0.esm.js → recordingService-CTko6Cjn.esm.js} +2 -2
  138. package/dist/redirect-to-mobile.esm.js +2 -2
  139. package/dist/{redirectToMobileManager-BJXC6Kx9.esm.js → redirectToMobileManager-CgGaT2NP.esm.js} +3 -3
  140. package/dist/{redirectToMobileStateMachine-BBMAc2Gb.esm.js → redirectToMobileStateMachine-CbhN8uVN.esm.js} +39 -21
  141. package/dist/resolveForm-O7-r79VA.esm.js +351 -0
  142. package/dist/{runChildModule-DqeR4WUi.esm.js → runChildModule-qXpd7G2p.esm.js} +2 -2
  143. package/dist/{sdkVersion-DvR2zcLB.esm.js → sdkVersion-WYkWwTmz.esm.js} +1 -1
  144. package/dist/selfie.d.ts +3 -3
  145. package/dist/selfie.esm.js +10 -10
  146. package/dist/{selfieErrorUtils-DfQnVgaQ.esm.js → selfieErrorUtils-f3lQlFEy.esm.js} +1 -1
  147. package/dist/{selfieManager-BDStgLz_.esm.js → selfieManager-B8swkeIe.esm.js} +5 -5
  148. package/dist/{selfieManager-DMFBTmjl.d.ts → selfieManager-DmZFzs1-.d.ts} +1 -1
  149. package/dist/{selfieStateMachine-Bkwmpva6.esm.js → selfieStateMachine-CGMAbg6e.esm.js} +3 -3
  150. package/dist/{session-D8sTB7-6.esm.js → session-sPZ3TAsp.esm.js} +4 -4
  151. package/dist/session.d.ts +1 -1
  152. package/dist/session.esm.js +5 -5
  153. package/dist/{sessionInitializer-CdOpCvp3.esm.js → sessionInitializer-C2NbBy_s.esm.js} +13 -10
  154. package/dist/{setup-Cj8cl6ne.esm.js → setup-C86PfxZS.esm.js} +25 -22
  155. package/dist/signature.esm.js +2 -2
  156. package/dist/{signatureManager-BeEVCcsC.esm.js → signatureManager-CwqjcxPg.esm.js} +2 -2
  157. package/dist/{signatureStateMachine-_1c1vSid.esm.js → signatureStateMachine-DBVDd1Eu.esm.js} +1 -1
  158. package/dist/{stats-BpMz-hTP.esm.js → stats-CatA2dea.esm.js} +1 -1
  159. package/dist/stats.esm.js +1 -1
  160. package/dist/textRules-D4NRinKY.d.ts +41 -0
  161. package/dist/{trueSightService-h_nIpoO_.esm.js → trueSightService-JP7_wQle.esm.js} +4 -4
  162. package/dist/trust-graph.esm.js +1 -1
  163. package/dist/{types-CfGxl1G0.d.ts → types-BEVHQbbC.d.ts} +1 -1
  164. package/dist/{types-XwxtmhWC.d.ts → types-BPm1JSu7.d.ts} +1 -1
  165. package/dist/{types-C397LhmN.d.ts → types-BgRHw-dR.d.ts} +1 -1
  166. package/dist/{types-DPc-3Uo6.d.ts → types-CRaFu6wS.d.ts} +3 -1
  167. package/dist/types-CTaL0XJz.d.ts +80 -0
  168. package/dist/{types-bn0ZpYF1.d.ts → types-Cd0J0F9D.d.ts} +1 -1
  169. package/dist/{types-CAawq94W.d.ts → types-Csh8vzPo.d.ts} +1 -1
  170. package/dist/{types-B2FK_wYb.d.ts → types-CuMJ2M7D.d.ts} +2 -41
  171. package/dist/types-J6g6iKe_.d.ts +6 -0
  172. package/dist/video-selfie.d.ts +1 -1
  173. package/dist/video-selfie.esm.js +7 -7
  174. package/dist/{videoSelfieCameraWarmer-DqQPTyle.esm.js → videoSelfieCameraWarmer-gdlCA1VK.esm.js} +6 -6
  175. package/dist/{videoSelfieStepDetector-C8uL2RCz.d.ts → videoSelfieStepDetector-Dv3Mgws-.d.ts} +2 -2
  176. package/dist/{warmup-DPfXWeBq.esm.js → warmup-BUnab2eW.esm.js} +24 -17
  177. package/dist/wasm.esm.js +3 -3
  178. package/dist/{wasmDsFlagSync-Ck2Lt6OY.esm.js → wasmDsFlagSync-DhJXZ9el.esm.js} +1 -1
  179. package/dist/{wasmWebClient-DClKyqNR.esm.js → wasmWebClient-CowdFxEv.esm.js} +12 -9
  180. package/dist/watchlist-for-business.esm.js +2 -2
  181. package/dist/watchlist.esm.js +2 -2
  182. package/dist/{watchlistForBusinessManager-CVay6-9A.esm.js → watchlistForBusinessManager-DqUpAEj_.esm.js} +2 -2
  183. package/dist/{watchlistForBusinessStateMachine-DA6K5na4.esm.js → watchlistForBusinessStateMachine-DdaPl2PS.esm.js} +1 -1
  184. package/dist/{watchlistManager-B8gQ_rw3.esm.js → watchlistManager-CdpXzT4B.esm.js} +2 -2
  185. package/dist/{watchlistStateMachine-CSi_ZhtT.esm.js → watchlistStateMachine-ofHW_lPk.esm.js} +1 -1
  186. package/dist/workflow.d.ts +1 -1
  187. package/dist/workflow.esm.js +40 -40
  188. package/package.json +6 -1
  189. package/dist/types-BZ_Hjz-X.d.ts +0 -6
@@ -1,3 +1,3 @@
1
- import { r as MandatoryConsentConfig } from "./types-bn0ZpYF1.js";
2
- import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-BeVif8kS.js";
1
+ import { r as MandatoryConsentConfig } from "./types-Cd0J0F9D.js";
2
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-6e3_CcJt.js";
3
3
  export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
@@ -1,3 +1,3 @@
1
- import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-CVlgdlnt.esm.js";
2
- import { n as createMandatoryConsentManagerFromActor, t as createMandatoryConsentManager } from "./mandatoryConsentManager-43W5d_8G.esm.js";
1
+ import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-DWslYPA3.esm.js";
2
+ import { n as createMandatoryConsentManagerFromActor, t as createMandatoryConsentManager } from "./mandatoryConsentManager-B4vCYslr.esm.js";
3
3
  export { createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
@@ -1,7 +1,7 @@
1
1
  import { A as StateMachine, C as StateValue, D as PromiseActorLogic, a as ActorRefFromLogic, b as RequiredActorOptions, c as AnyEventObject, g as IsNotNever, h as InputFrom, i as ActorRefFrom, k as MachineSnapshot, m as GetConcreteByKey, o as AnyActorLogic, p as EventObject, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, v as MetaObject, w as Values, x as RequiredLogicInput, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
2
2
  import { t as Manager } from "./Manager-C9T5amUN.js";
3
3
  import "./Actor-DpTj5PFb.js";
4
- import { n as MandatoryConsent, r as MandatoryConsentConfig, t as FetchMandatoryConsentResponse } from "./types-bn0ZpYF1.js";
4
+ import { n as MandatoryConsent, r as MandatoryConsentConfig, t as FetchMandatoryConsentResponse } from "./types-Cd0J0F9D.js";
5
5
  //#region src/modules/mandatory-consent/mandatoryConsentStateMachine.d.ts
6
6
  type MandatoryConsentContext = {
7
7
  config: MandatoryConsentConfig;
@@ -57,14 +57,14 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
57
57
  type: "setError";
58
58
  params: NonReducibleUnknown;
59
59
  };
60
- clearError: {
61
- type: "clearError";
62
- params: NonReducibleUnknown;
63
- };
64
60
  setLoadError: {
65
61
  type: "setLoadError";
66
62
  params: NonReducibleUnknown;
67
63
  };
64
+ clearError: {
65
+ type: "clearError";
66
+ params: NonReducibleUnknown;
67
+ };
68
68
  resetContext: {
69
69
  type: "resetContext";
70
70
  params: NonReducibleUnknown;
@@ -76,7 +76,7 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
76
76
  }>, {
77
77
  type: "canSubmit";
78
78
  params: unknown;
79
- }, never, "error" | "idle" | "closed" | "finished" | "submitting" | "loading" | "display", string, MandatoryConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
79
+ }, never, "error" | "idle" | "closed" | "finished" | "loading" | "submitting" | "display", string, MandatoryConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
80
80
  readonly id: "mandatoryConsent";
81
81
  readonly initial: "idle";
82
82
  readonly context: ({ input }: {
@@ -1,6 +1,6 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CQteqXfy.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ggpBBaZ8.esm.js";
2
2
  import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
3
- import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-CVlgdlnt.esm.js";
3
+ import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-DWslYPA3.esm.js";
4
4
  //#region src/modules/mandatory-consent/mandatoryConsentActor.ts
5
5
  function createMandatoryConsentActor(options) {
6
6
  return createActor(mandatoryConsentMachine, { input: { config: options.config } }).start();
@@ -1,4 +1,4 @@
1
- import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
1
+ import { t as api, u as endpoints } from "./api-CpP4PS4S.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/mandatory-consent/mandatoryConsentServices.ts
@@ -1,5 +1,5 @@
1
1
  import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
2
- import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
2
+ import { t as api, u as endpoints } from "./api-CpP4PS4S.esm.js";
3
3
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
4
4
  import { t as BrowserNetworkStatusProvider } from "./BrowserNetworkStatusProvider-BrDXBEDd.esm.js";
5
5
  import { t as MultipartRecordingProvider } from "./MultipartRecordingProvider-D9mauUdS.esm.js";
@@ -1,4 +1,4 @@
1
- import { s as isWasmMotionPrimedForModule } from "./permissionServices-CJSZshmj.esm.js";
1
+ import { s as isWasmMotionPrimedForModule } from "./permissionServices-RawRSsLZ.esm.js";
2
2
  //#region src/internal/permissions/permissionGuards.ts
3
3
  function resolveStoredPermissionResult(fromEvent, fromContext) {
4
4
  if (fromEvent === "granted" || fromEvent === "denied" || fromEvent === "prompt" || fromEvent === "refresh") return fromEvent;
@@ -1,4 +1,4 @@
1
- import { t as WasmUtilProvider } from "./WasmUtilProvider-DZOGC2HE.esm.js";
1
+ import { t as WasmUtilProvider } from "./WasmUtilProvider-BP6-08Yn.esm.js";
2
2
  import { n as isAndroidWebView } from "./platform-aPh7gTWh.esm.js";
3
3
  import { t as MotionSensorProvider } from "./MotionSensorProvider-DYxh8TjR.esm.js";
4
4
  import { a as stopCameraStream, c as isCameraGrantedInDocument, o as clearCameraGrantedInDocument, r as requestCameraAccess } from "./camera-E_Kcre4O.esm.js";
@@ -136,20 +136,22 @@ async function requestMotionPermission() {
136
136
  /**
137
137
  * Requests camera permission by attempting to access the camera, then immediately
138
138
  * stops the obtained stream. When `requestMotion` is true (deepsight), requests
139
- * motion OS permission, primes WASM sensors, then camera — all in one user gesture
140
- * chain, matching SDK v1.
139
+ * motion OS permission first, then primes WASM sensors while it requests the
140
+ * camera — all in one user gesture chain, as in SDK v1.
141
141
  */
142
142
  async function requestPermission(options = {}) {
143
143
  try {
144
+ let motionPrimed;
144
145
  if (options.requestMotion) {
145
146
  const motionSensor = new MotionSensorProvider();
146
147
  if (await resolveMotionOsPermission(motionSensor) === "denied") return "denied";
147
- if (!isWasmMotionPrimedForModule()) await primeWasmMotionSensor(motionSensor);
148
+ if (!isWasmMotionPrimedForModule()) motionPrimed = primeWasmMotionSensor(motionSensor);
148
149
  }
149
- stopCameraStream(await requestCameraAccess({
150
+ const [stream] = await Promise.all([requestCameraAccess({
150
151
  video: true,
151
152
  audio: options.requestAudio ?? false
152
- }));
153
+ }), motionPrimed]);
154
+ stopCameraStream(stream);
153
155
  return "granted";
154
156
  } catch (error) {
155
157
  const name = error instanceof Error ? error.name : void 0;
package/dist/phone.esm.js CHANGED
@@ -1,3 +1,3 @@
1
- import { t as phoneMachine } from "./phoneStateMachine-BLFIfxPy.esm.js";
2
- import { t as createPhoneManager } from "./phoneManager-DLFQqWDV.esm.js";
1
+ import { t as phoneMachine } from "./phoneStateMachine-DnlPhnw7.esm.js";
2
+ import { t as createPhoneManager } from "./phoneManager-Dy5tODCU.esm.js";
3
3
  export { createPhoneManager, phoneMachine };
@@ -0,0 +1,75 @@
1
+ import { t as getPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
2
+ //#region src/shared/validators/textRules.ts
3
+ const CHARACTER_CLASSES = [
4
+ "letter",
5
+ "digit",
6
+ "space"
7
+ ];
8
+ const CLASS_PATTERNS = {
9
+ letter: "\\p{L}\\p{M}",
10
+ digit: "0-9",
11
+ space: " "
12
+ };
13
+ const escapeForClass = (chars) => chars.replace(/[\\\]^-]/g, "\\$&");
14
+ const escapeForPattern = (chars) => chars.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
15
+ const NAME_REGEX = /^[\p{L}\p{M} '’-]+$/u;
16
+ /** `nameCharacters`: letters from any script, spaces, hyphens and apostrophes. */
17
+ function hasNameCharacters(value) {
18
+ return NAME_REGEX.test(value);
19
+ }
20
+ /**
21
+ * `notFuture`: an ISO `YYYY-MM-DD` date on or before `today`, also ISO, in
22
+ * the user's calendar. A value that isn't an ISO date passes; the date input
23
+ * owns that.
24
+ */
25
+ function isNotFuture(value, today) {
26
+ if (!/^\d{4}-\d{2}-\d{2}$/.test(value)) return true;
27
+ return value <= today;
28
+ }
29
+ /** `digitCount`: only the digits 0-9, with a count in `lengths` or between `min` and `max`. */
30
+ function hasDigitCount(value, count) {
31
+ if (!/^[0-9]+$/.test(value)) return false;
32
+ const { length } = value;
33
+ if (count.lengths) return count.lengths.includes(length);
34
+ return (count.min === void 0 || length >= count.min) && (count.max === void 0 || length <= count.max);
35
+ }
36
+ /**
37
+ * `allowedCharacters`: only characters from `classes`, plus any in `extra`.
38
+ * With `ascii`, `letter` means A-Z in either case instead of any script.
39
+ */
40
+ function hasAllowedCharacters(value, classes, extra = "", ascii = false) {
41
+ const set = classes.map((c) => ascii && c === "letter" ? "A-Za-z" : CLASS_PATTERNS[c]).join("");
42
+ return new RegExp(`^[${set}${escapeForClass(extra)}]+$`, "u").test(value);
43
+ }
44
+ /**
45
+ * `charTemplate`: the whole value matches one template, where `9` is a digit,
46
+ * `A` an uppercase letter A-Z and any other character stands for itself.
47
+ * `ignoreCase` also accepts lowercase letters and literals in either case.
48
+ */
49
+ function matchesCharTemplate(value, templates, ignoreCase = false) {
50
+ return templates.some((template) => {
51
+ const pattern = [...template].map((char) => {
52
+ if (char === "9") return "[0-9]";
53
+ if (char === "A") return "[A-Z]";
54
+ return escapeForPattern(char);
55
+ }).join("");
56
+ return new RegExp(`^${pattern}$`, ignoreCase ? "iu" : "u").test(value);
57
+ });
58
+ }
59
+ /** `numericRange`: a whole number from `min` to `max`. */
60
+ function isInNumericRange(value, min, max) {
61
+ if (!/^-?[0-9]+$/.test(value)) return false;
62
+ const number = Number(value);
63
+ return number >= min && number <= max;
64
+ }
65
+ //#endregion
66
+ //#region src/shared/phoneFormat.ts
67
+ /**
68
+ * The phone in E.164, or the value as typed when the rules are not loaded
69
+ * (`loadPhoneValidation()`) or the number is not valid.
70
+ */
71
+ function formatPhoneE164(phone, country) {
72
+ return getPhoneValidation()?.formatE164(phone, country) ?? phone;
73
+ }
74
+ //#endregion
75
+ export { hasNameCharacters as a, matchesCharTemplate as c, hasDigitCount as i, CHARACTER_CLASSES as n, isInNumericRange as o, hasAllowedCharacters as r, isNotFuture as s, formatPhoneE164 as t };
@@ -1,8 +1,8 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CQteqXfy.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ggpBBaZ8.esm.js";
2
2
  import { n as loadPhoneValidation, t as getPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
3
3
  import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
4
4
  import { n as isOtpComplete } from "./otp-D2k3PeSL.esm.js";
5
- import { t as phoneMachine } from "./phoneStateMachine-BLFIfxPy.esm.js";
5
+ import { t as phoneMachine } from "./phoneStateMachine-DnlPhnw7.esm.js";
6
6
  //#region src/modules/phone/phoneActor.ts
7
7
  function createPhoneActor(options) {
8
8
  return createActor(phoneMachine, { input: { config: options.config } }).start();
@@ -1,4 +1,4 @@
1
- import { r as getToken, t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
1
+ import { r as getToken, t as api, u as endpoints } from "./api-CpP4PS4S.esm.js";
2
2
  //#region src/modules/phone/phoneServices.ts
3
3
  function getPhoneServerFailureReason(error, invalidStatus) {
4
4
  if (error.status === invalidStatus) return "invalidPhone";
@@ -1,9 +1,9 @@
1
1
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
2
2
  import { n as loadPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
3
- import { i as fetchStartInfo, n as addPhoneInstantVerify, o as sendOtp, r as fetchPhone, s as verifyOtp, t as addPhone } from "./phoneServices-Cn4uBGpN.esm.js";
3
+ import { i as fetchStartInfo, n as addPhoneInstantVerify, o as sendOtp, r as fetchPhone, s as verifyOtp, t as addPhone } from "./phoneServices-DJgyOzU2.esm.js";
4
4
  import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
5
5
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
6
- import { t as carryAttempts } from "./attemptCarry-C8NbkPlt.esm.js";
6
+ import { t as carryAttempts } from "./attemptCarry-WOkfvFMw.esm.js";
7
7
  import { n as isOtpComplete, t as computeOtpValidationErrors } from "./otp-D2k3PeSL.esm.js";
8
8
  //#region src/modules/phone/phoneStateMachine.ts
9
9
  const RESEND_TIMER_SECONDS = 30;
@@ -99,6 +99,7 @@ const phoneMachine = setup({
99
99
  setOptInGranted: assign(({ event }) => ({ optInGranted: event.granted })),
100
100
  setError: assign(({ event }) => ({ error: getErrorMessage(event.error) })),
101
101
  clearError: assign({ error: () => void 0 }),
102
+ settleLoad: assign({ pendingLoads: ({ context }) => context.pendingLoads - 1 }),
102
103
  clearPhoneError: assign({ phoneError: () => void 0 }),
103
104
  setOtpCode: assign(({ event }) => ({
104
105
  otpCode: event.code,
@@ -141,6 +142,7 @@ const phoneMachine = setup({
141
142
  prefilledPhone: void 0,
142
143
  optInGranted: false,
143
144
  startInfo: void 0,
145
+ pendingLoads: 0,
144
146
  error: void 0,
145
147
  otpCode: "",
146
148
  otpError: void 0,
@@ -152,6 +154,7 @@ const phoneMachine = setup({
152
154
  },
153
155
  guards: {
154
156
  hasPrefill: ({ context }) => context.config.prefill,
157
+ areLoadsSettled: ({ context }) => context.pendingLoads === 0,
155
158
  hasOtpVerification: ({ context }) => context.config.otpVerification,
156
159
  hasNoValidationErrors: ({ context }) => !context.validationErrors || Object.keys(context.validationErrors).length === 0,
157
160
  hasAttemptsRemaining: ({ context }) => context.attemptsRemaining > 1,
@@ -174,6 +177,7 @@ const phoneMachine = setup({
174
177
  prefilledPhone: void 0,
175
178
  optInGranted: false,
176
179
  startInfo: void 0,
180
+ pendingLoads: 0,
177
181
  error: void 0,
178
182
  otpCode: "",
179
183
  otpError: void 0,
@@ -197,15 +201,21 @@ const phoneMachine = setup({
197
201
  { target: "loadingStartInfo" }
198
202
  ] } },
199
203
  loadingPrefill: {
200
- entry: "startLoadingPhoneRules",
201
- invoke: {
204
+ entry: ["startLoadingPhoneRules", assign({ pendingLoads: () => 2 })],
205
+ invoke: [{
202
206
  id: "fetchPhone",
203
207
  src: "fetchPhone",
204
- onDone: {
205
- target: "loadingStartInfo",
206
- actions: "setPrefilledPhone"
207
- },
208
- onError: { target: "loadingStartInfo" }
208
+ onDone: { actions: ["setPrefilledPhone", "settleLoad"] },
209
+ onError: { actions: "settleLoad" }
210
+ }, {
211
+ id: "fetchStartInfo",
212
+ src: "fetchStartInfo",
213
+ onDone: { actions: ["setStartInfo", "settleLoad"] },
214
+ onError: { actions: "settleLoad" }
215
+ }],
216
+ always: {
217
+ target: "loadingPhoneRules",
218
+ guard: "areLoadsSettled"
209
219
  }
210
220
  },
211
221
  loadingStartInfo: {
@@ -1,4 +1,4 @@
1
- import { r as getToken } from "./api-BO8JA7Pf.esm.js";
1
+ import { r as getToken } from "./api-CpP4PS4S.esm.js";
2
2
  //#region src/internal/session/processFaceMatch.ts
3
3
  let saved = null;
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-DDL-ylsJ.esm.js";
1
+ import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-DRPy_cGL.esm.js";
2
2
  //#region src/modules/qe-signature/index.ts
3
3
  function createQeSignatureManager(options) {
4
4
  return createElectronicSignatureManager({ config: {
@@ -1,9 +1,9 @@
1
- import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
1
+ import { t as api, u as endpoints } from "./api-CpP4PS4S.esm.js";
2
2
  import { t as BrowserLazyImportProvider } from "./BrowserLazyImportProvider-BhoA957O.esm.js";
3
3
  import { r as createRecordingCompositor } from "./CameraCompositor-DN7NkJzV.esm.js";
4
4
  import { t as getAdaptiveMediaRecorderOptions } from "./mediaRecorderOptions-B9-IEVtV.esm.js";
5
5
  import { t as WorkerEncoderRecordingProvider } from "./WorkerEncoderRecordingProvider-B1ODYtgN.esm.js";
6
- import { t as MultipartRecordingService } from "./multipartRecordingService-Cp2NhhmP.esm.js";
6
+ import { t as MultipartRecordingService } from "./multipartRecordingService-BTqkHGG9.esm.js";
7
7
  //#region ../infra/src/media/VideoTrimmer.ts
8
8
  /** A trim that runs longer than this uploads the full recording instead. */
9
9
  const TRIM_TIMEOUT_MS = 1e4;
@@ -1,3 +1,3 @@
1
- import { n as redirectToMobileMachine, r as defaultRedirectToMobileServices } from "./redirectToMobileStateMachine-BBMAc2Gb.esm.js";
2
- import { n as createRedirectToMobileManagerFromActor, t as createRedirectToMobileManager } from "./redirectToMobileManager-BJXC6Kx9.esm.js";
1
+ import { n as redirectToMobileMachine, r as defaultRedirectToMobileServices } from "./redirectToMobileStateMachine-CbhN8uVN.esm.js";
2
+ import { n as createRedirectToMobileManagerFromActor, t as createRedirectToMobileManager } from "./redirectToMobileManager-CgGaT2NP.esm.js";
3
3
  export { createRedirectToMobileManager, createRedirectToMobileManagerFromActor, defaultRedirectToMobileServices, redirectToMobileMachine };
@@ -1,8 +1,8 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CQteqXfy.esm.js";
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ggpBBaZ8.esm.js";
2
2
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
3
3
  import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
4
4
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
5
- import { n as redirectToMobileMachine, r as defaultRedirectToMobileServices, t as canResendSmsFromContext } from "./redirectToMobileStateMachine-BBMAc2Gb.esm.js";
5
+ import { n as redirectToMobileMachine, r as defaultRedirectToMobileServices, t as canResendSmsFromContext } from "./redirectToMobileStateMachine-CbhN8uVN.esm.js";
6
6
  //#region src/modules/redirect-to-mobile/redirectToMobileActor.ts
7
7
  const POLL_INTERVAL_MS = 5e3;
8
8
  const QR_REFRESH_INTERVAL_MS = 5e3;
@@ -58,7 +58,7 @@ function mapState(snapshot) {
58
58
  const typedSnapshot = snapshot;
59
59
  const { context } = typedSnapshot;
60
60
  if (typedSnapshot.matches("idle")) return { status: "idle" };
61
- if (typedSnapshot.matches("generatingUrl") || typedSnapshot.matches("loadingStartInfo")) return { status: "loading" };
61
+ if (typedSnapshot.matches("generatingUrl")) return { status: "loading" };
62
62
  if (typedSnapshot.matches("showingQr")) return {
63
63
  status: "redirecting",
64
64
  redirectUrl: context.redirectUrl,
@@ -1,4 +1,4 @@
1
- import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
1
+ import { t as api, u as endpoints } from "./api-CpP4PS4S.esm.js";
2
2
  import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
3
3
  import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
4
4
  import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
@@ -210,27 +210,45 @@ const redirectToMobileMachine = setup({
210
210
  guard: "hasInvalidUrl",
211
211
  actions: "setInvalidUrlError"
212
212
  }, { target: "generatingUrl" }] } },
213
- generatingUrl: { invoke: {
214
- id: "fetchRedirectUrl",
215
- src: "fetchRedirectUrl",
216
- onDone: {
217
- target: "loadingStartInfo",
218
- actions: "setBaseUrl"
219
- },
220
- onError: {
221
- target: "error",
222
- actions: "setError"
223
- }
224
- } },
225
- loadingStartInfo: { invoke: {
226
- id: "fetchStartInfo",
227
- src: "fetchStartInfo",
228
- onDone: {
229
- target: "showingQr",
230
- actions: "setStartInfo"
213
+ generatingUrl: {
214
+ type: "parallel",
215
+ states: {
216
+ redirectUrl: {
217
+ initial: "loading",
218
+ states: {
219
+ loading: { invoke: {
220
+ id: "fetchRedirectUrl",
221
+ src: "fetchRedirectUrl",
222
+ onDone: {
223
+ target: "done",
224
+ actions: "setBaseUrl"
225
+ },
226
+ onError: {
227
+ target: "#redirectToMobile.error",
228
+ actions: "setError"
229
+ }
230
+ } },
231
+ done: { type: "final" }
232
+ }
233
+ },
234
+ startInfo: {
235
+ initial: "loading",
236
+ states: {
237
+ loading: { invoke: {
238
+ id: "fetchStartInfo",
239
+ src: "fetchStartInfo",
240
+ onDone: {
241
+ target: "done",
242
+ actions: "setStartInfo"
243
+ },
244
+ onError: { target: "done" }
245
+ } },
246
+ done: { type: "final" }
247
+ }
248
+ }
231
249
  },
232
- onError: { target: "showingQr" }
233
- } },
250
+ onDone: { target: "showingQr" }
251
+ },
234
252
  showingQr: {
235
253
  type: "parallel",
236
254
  states: {