@incodetech/core 2.2.0 → 2.3.0-rc.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 (258) hide show
  1. package/THIRD_PARTY_NOTICES.txt +281 -0
  2. package/dist/BaseWasmProvider-Dyi6dKp1.d.ts +65 -0
  3. package/dist/{BrowserDiagnosticsCryptoProvider-B8vorxN5.esm.js → BrowserDiagnosticsCryptoProvider-CU6kBvqv.esm.js} +1 -1
  4. package/dist/{BrowserVisibilityObserverProvider-BX1BiLDK.esm.js → BrowserVisibilityObserverProvider-BrJN1B8A.esm.js} +2 -0
  5. package/dist/FaceDetectionProvider-BfhWkK90.esm.js +431 -0
  6. package/dist/FaceDetectionProvider-LdZ47bWy.d.ts +36 -0
  7. package/dist/{IIdCaptureCapability-DHTT3FC2.d.ts → IIdCaptureCapability-RNiFhvXR.d.ts} +7 -33
  8. package/dist/IWasmUtilCapability-CNWRl7jr.d.ts +117 -0
  9. package/dist/{MotionSensorProvider-DGiV77J_.esm.js → MotionSensorProvider-BgTYwg9L.esm.js} +1 -1
  10. package/dist/{StreamCanvasCapture-D2XcXCZ4.esm.js → StreamCanvasCapture-C9jtgBdT.esm.js} +2 -2
  11. package/dist/{deepsightService-DLVQS_RH.d.ts → StreamCanvasCapture-_8gdW5Lk.d.ts} +54 -41
  12. package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +42 -0
  13. package/dist/{addressSearch-D1XpBdUS.esm.js → addressSearch-DyHGgeX8.esm.js} +1 -1
  14. package/dist/advanceableErrors-CpF2cBy6.esm.js +21 -0
  15. package/dist/ae-signature.d.ts +4 -2
  16. package/dist/ae-signature.esm.js +1 -1
  17. package/dist/antifraud.esm.js +2 -2
  18. package/dist/{antifraudManager-CQFNgSPt.esm.js → antifraudManager-DNkw66oW.esm.js} +2 -2
  19. package/dist/{antifraudStateMachine-Bf_JVNwn.esm.js → antifraudStateMachine-DBeq47D2.esm.js} +1 -1
  20. package/dist/{apiError-BA1d_au0.esm.js → apiError-Budb6m6w.esm.js} +14 -2
  21. package/dist/authentication.d.ts +3 -3
  22. package/dist/authentication.esm.js +2 -2
  23. package/dist/{authenticationManager-BBMGTcwW.d.ts → authenticationManager-CjXBjC-c.d.ts} +7 -1
  24. package/dist/{authenticationManager-zh9TC62P.esm.js → authenticationManager-cMXhG70r.esm.js} +5 -5
  25. package/dist/{authenticationStateMachine-xzi-vnvE.esm.js → authenticationStateMachine-MOYz4HCf.esm.js} +6 -62
  26. package/dist/avatar.d.ts +1 -2
  27. package/dist/avatar.esm.js +1 -1
  28. package/dist/{backCameraStream-CUeYm5eu.esm.js → backCameraStream-BOtyQowf.esm.js} +83 -22
  29. package/dist/{camera-_2sXMXiF.esm.js → camera-sIa9ceW2.esm.js} +19 -1
  30. package/dist/camera.esm.js +1 -1
  31. package/dist/{canvas-E1zGkel4.esm.js → canvas-BxFzWTt-.esm.js} +19 -0
  32. package/dist/certificate-issuance.d.ts +2 -302
  33. package/dist/certificate-issuance.esm.js +3 -66
  34. package/dist/certificateIssuanceManager-C3-CI0_s.esm.js +69 -0
  35. package/dist/certificateIssuanceManager-DCgEidHz.d.ts +312 -0
  36. package/dist/{certificateIssuanceStateMachine-D_R92TYu.esm.js → certificateIssuanceStateMachine-CxqS_nD-.esm.js} +1 -1
  37. package/dist/consent.d.ts +1 -1
  38. package/dist/consent.esm.js +2 -2
  39. package/dist/{consentManager-BxjpLZAG.esm.js → consentManager-B6E1XJDw.esm.js} +2 -2
  40. package/dist/{consentManager-3Pbtj-RV.d.ts → consentManager-BhYFeKiG.d.ts} +4 -4
  41. package/dist/{consentStateMachine-D9D4ON8Z.esm.js → consentStateMachine-DTSfdGiW.esm.js} +1 -1
  42. package/dist/createCameraCycleOwnership-CX3hJGKc.esm.js +826 -0
  43. package/dist/{createFaceAvatar-DQKaRise.esm.js → createFaceAvatar-BNHdeFj8.esm.js} +2 -2
  44. package/dist/createFaceAvatar-BlcTYgJv.d.ts +497 -0
  45. package/dist/cross-document-data-match.esm.js +1 -1
  46. package/dist/{crossDocumentDataMatchManager-CGT0V6RV.esm.js → crossDocumentDataMatchManager-9XhFVZ5S.esm.js} +2 -2
  47. package/dist/curp-validation.d.ts +1 -1
  48. package/dist/curp-validation.esm.js +2 -2
  49. package/dist/{curpValidationManager-6Nmkn5u1.esm.js → curpValidationManager-DbIMYFcJ.esm.js} +2 -2
  50. package/dist/{curpValidationManager-DVGr7Fq7.d.ts → curpValidationManager-SSKNrm5Z.d.ts} +1 -1
  51. package/dist/{curpValidationStateMachine-Ds7KMacK.esm.js → curpValidationStateMachine-g5kMfuLj.esm.js} +1 -1
  52. package/dist/custom-fields.d.ts +2 -114
  53. package/dist/custom-fields.esm.js +2 -232
  54. package/dist/custom-watchlist.d.ts +2 -51
  55. package/dist/custom-watchlist.esm.js +3 -70
  56. package/dist/customFieldsManager-8-W2KY4n.d.ts +141 -0
  57. package/dist/customFieldsManager-CzWZTkW-.esm.js +264 -0
  58. package/dist/customWatchlistManager-DWTED5Ur.esm.js +73 -0
  59. package/dist/customWatchlistManager-PBWHr_oM.d.ts +64 -0
  60. package/dist/{customWatchlistStateMachine-YWSgKLbF.esm.js → customWatchlistStateMachine-DOQou6TW.esm.js} +1 -1
  61. package/dist/{deepsightLoader--wMKWECS.esm.js → deepsightLoader-DDv3vhXU.esm.js} +27 -71
  62. package/dist/device.d.ts +25 -2
  63. package/dist/device.esm.js +69 -7
  64. package/dist/document-capture.d.ts +2 -2
  65. package/dist/document-capture.esm.js +2 -2
  66. package/dist/{documentCaptureManager-DsQQhWry.esm.js → documentCaptureManager-CwAiM9WY.esm.js} +2 -2
  67. package/dist/{documentCaptureManager-B3t0ydtg.d.ts → documentCaptureManager-DensIj5F.d.ts} +83 -83
  68. package/dist/{documentCaptureStateMachine-BM4Ex_5x.esm.js → documentCaptureStateMachine-DfGOBapD.esm.js} +5 -5
  69. package/dist/dynamic-forms.d.ts +1 -1
  70. package/dist/dynamic-forms.esm.js +2 -2
  71. package/dist/{dynamicFormsManager-fFVIRBNv.esm.js → dynamicFormsManager-BbS-XMFc.esm.js} +16 -5
  72. package/dist/{dynamicFormsManager-fhK0yINk.d.ts → dynamicFormsManager-D5R_uxLQ.d.ts} +25 -3
  73. package/dist/{dynamicFormsStateMachine-D6D7oEYk.esm.js → dynamicFormsStateMachine-D8zHBCh4.esm.js} +35 -3
  74. package/dist/ekyb.d.ts +1 -1
  75. package/dist/ekyb.esm.js +3 -3
  76. package/dist/{ekybManager-Y3MkoXpC.esm.js → ekybManager-5aiac8wL.esm.js} +2 -2
  77. package/dist/{ekybStateMachine-3nlnqdlr.esm.js → ekybStateMachine-Bn2IE9rx.esm.js} +3 -3
  78. package/dist/ekyc.esm.js +2 -2
  79. package/dist/{ekycManager-DgT48ky6.esm.js → ekycManager-BlQ-Qj4E.esm.js} +2 -2
  80. package/dist/{ekycStateMachine-CQwqiR-R.esm.js → ekycStateMachine-CshSNJhh.esm.js} +2 -2
  81. package/dist/electronic-signature.d.ts +3 -3
  82. package/dist/electronic-signature.esm.js +2 -2
  83. package/dist/{electronicSignatureManager-DGbAJ00W.esm.js → electronicSignatureManager-BJJH0Tvi.esm.js} +357 -51
  84. package/dist/electronicSignatureManager-Ds-KEVTq.d.ts +2786 -0
  85. package/dist/email.esm.js +2 -2
  86. package/dist/{emailManager-BY0jeYwR.esm.js → emailManager-bR1N5rV_.esm.js} +2 -2
  87. package/dist/{emailStateMachine-Crw8QVmc.esm.js → emailStateMachine-Bc_6oIYw.esm.js} +1 -1
  88. package/dist/{endpoints-CCzL3XD_.esm.js → endpoints-B-3Q-LUw.esm.js} +24 -10
  89. package/dist/{events-DYiyoSlx.esm.js → events-ijlbX_Wx.esm.js} +2 -2
  90. package/dist/events.d.ts +1 -1
  91. package/dist/events.esm.js +1 -1
  92. package/dist/extensibility.d.ts +24 -64
  93. package/dist/extensibility.esm.js +35 -29
  94. package/dist/face-match.esm.js +2 -2
  95. package/dist/{faceCaptureManagerFactory-CVnZ0fa5.esm.js → faceCaptureManagerFactory-B7Ms6pSs.esm.js} +68 -7
  96. package/dist/{faceCaptureManagerFactory-BxWPpxyd.d.ts → faceCaptureManagerFactory-BeUl8fl1.d.ts} +86 -54
  97. package/dist/faceCaptureSetup-bkAlr5d8.esm.js +2067 -0
  98. package/dist/{faceMatchManager-Ri4UbNz0.esm.js → faceMatchManager-Bmv0HzuY.esm.js} +2 -2
  99. package/dist/{faceMatchStateMachine-20DdZ3jg.esm.js → faceMatchStateMachine-mRIHQ3dA.esm.js} +1 -1
  100. package/dist/{feature-management-CPQ4qv3F.esm.js → feature-management-E0mq0pMs.esm.js} +32 -7
  101. package/dist/feature-management.d.ts +1 -1
  102. package/dist/feature-management.esm.js +1 -1
  103. package/dist/field-comparison.esm.js +1 -1
  104. package/dist/{fieldComparisonManager-Cg6kPQQx.esm.js → fieldComparisonManager-CC-klG0h.esm.js} +2 -2
  105. package/dist/fiscal-qr.d.ts +2 -56
  106. package/dist/fiscal-qr.esm.js +2 -308
  107. package/dist/fiscalQrManager-B1STmT6z.d.ts +71 -0
  108. package/dist/fiscalQrManager-BunLVFbd.esm.js +34143 -0
  109. package/dist/flow-events.d.ts +1 -1
  110. package/dist/flow.d.ts +212 -185
  111. package/dist/flow.esm.js +119 -30
  112. package/dist/{flowCompletionService-tfeoGre9.esm.js → flowCompletionService-DJp1odGN.esm.js} +2 -2
  113. package/dist/{flowServices-f5Ruz7R9.esm.js → flowServices-DjPFGs_D.esm.js} +91 -26
  114. package/dist/geolocation.esm.js +2 -2
  115. package/dist/{geolocationManager-CH6RfqFH.esm.js → geolocationManager-D5906YXx.esm.js} +2 -2
  116. package/dist/{geolocationStateMachine-DmbWFely.esm.js → geolocationStateMachine-BVOduc3y.esm.js} +3 -3
  117. package/dist/getBrowser-CBiibsL-.esm.js +19 -0
  118. package/dist/{getBrowser-DNrQeL4T.esm.js → getBrowser-Cbe1C4Tn.esm.js} +2 -1
  119. package/dist/{getDeviceClass-9y-kbVDw.esm.js → getDeviceClass-5NYZg9s6.esm.js} +2 -2
  120. package/dist/getParsedUserAgent-B2iFDql1.esm.js +1278 -0
  121. package/dist/government-validation.d.ts +2 -85
  122. package/dist/government-validation.esm.js +3 -120
  123. package/dist/governmentValidationManager-CacFOtKO.esm.js +79 -0
  124. package/dist/governmentValidationManager-D02vT4yY.d.ts +63 -0
  125. package/dist/governmentValidationStateMachine-CoaZOSTP.esm.js +54 -0
  126. package/dist/home.d.ts +1 -1
  127. package/dist/home.esm.js +1 -1
  128. package/dist/id-ocr.d.ts +2 -2
  129. package/dist/id-ocr.esm.js +2 -2
  130. package/dist/id-selfie-flow.d.ts +3 -2
  131. package/dist/id-selfie-flow.esm.js +11 -10
  132. package/dist/id-verification.esm.js +2 -2
  133. package/dist/id.d.ts +29 -5
  134. package/dist/id.esm.js +48 -46
  135. package/dist/idCaptureDefaults-CbPA-Auz.esm.js +727 -0
  136. package/dist/{idCaptureManager-CqrqSjJV.d.ts → idCaptureManager-DKESug0R.d.ts} +230 -43
  137. package/dist/{idCaptureManager-BYwTZ2H8.esm.js → idCaptureManager-rfV9dIXy.esm.js} +259 -46
  138. package/dist/{idCaptureServices-44kwQItl.esm.js → idCaptureServices-i1KxugN7.esm.js} +285 -72
  139. package/dist/idCaptureStateMachine-Ne_PXth_.esm.js +5333 -0
  140. package/dist/{idOcrManager-DXc_xRN7.d.ts → idOcrManager-BF_cXZq8.d.ts} +1 -1
  141. package/dist/{idOcrManager-BIQYQXXj.esm.js → idOcrManager-r46XfZGE.esm.js} +2 -2
  142. package/dist/{idOcrStateMachine-cSxzHpHt.esm.js → idOcrStateMachine-ClDEP-VI.esm.js} +1 -1
  143. package/dist/{idVerificationManager-JpV_SAsl.esm.js → idVerificationManager-DT42c77H.esm.js} +2 -2
  144. package/dist/{idVerificationStateMachine-nPeUNyFq.esm.js → idVerificationStateMachine-DbDVIh9t.esm.js} +1 -1
  145. package/dist/identity-reuse.esm.js +2 -2
  146. package/dist/{identityReuseManager-kNCg9AbD.esm.js → identityReuseManager-yG3acUrQ.esm.js} +2 -2
  147. package/dist/{identityReuseStateMachine-DyulxDjP.esm.js → identityReuseStateMachine-BhAkuIra.esm.js} +1 -1
  148. package/dist/{index-CLMF0QLQ.d.ts → index-DLcJT5YP.d.ts} +1 -1
  149. package/dist/index.d.ts +1 -1
  150. package/dist/index.esm.js +1 -1
  151. package/dist/{invokeOnCaptureCallback-GpvMuz9o.esm.js → invokeOnCaptureCallback-BjzPjJ_p.esm.js} +1 -1
  152. package/dist/mandatory-consent.d.ts +2 -2
  153. package/dist/mandatory-consent.esm.js +2 -2
  154. package/dist/{mandatoryConsentManager-B4Niyg_u.esm.js → mandatoryConsentManager-7dI0D08q.esm.js} +2 -2
  155. package/dist/{mandatoryConsentManager-DyPzUmsZ.d.ts → mandatoryConsentManager-vhv1co_n.d.ts} +1 -1
  156. package/dist/{mandatoryConsentStateMachine-B4-1u-L8.esm.js → mandatoryConsentStateMachine-DC5Mo6M1.esm.js} +1 -1
  157. package/dist/multipartRecordingService-OEgIRvqC.esm.js +605 -0
  158. package/dist/{permissionGuards-KINpmKtI.esm.js → permissionGuards-uYZYFu4J.esm.js} +1 -1
  159. package/dist/{permissionServices-UvUcOSRb.esm.js → permissionServices-Bj_fyWtv.esm.js} +5 -5
  160. package/dist/personhood.d.ts +6 -5
  161. package/dist/personhood.esm.js +10 -10
  162. package/dist/phone.esm.js +2 -2
  163. package/dist/{phoneManager-FsJ0W2Ei.esm.js → phoneManager-IjhSv5XS.esm.js} +2 -2
  164. package/dist/{phoneStateMachine-Ba0wKHyX.esm.js → phoneStateMachine-CXdXufKg.esm.js} +1 -1
  165. package/dist/{platform-BJrm5nzZ.esm.js → platform-DkcRc9JV.esm.js} +29 -1
  166. package/dist/qe-signature.d.ts +5 -3
  167. package/dist/qe-signature.esm.js +2 -2
  168. package/dist/redirect-to-mobile.esm.js +2 -2
  169. package/dist/{redirectToMobileManager-y4VQB11M.esm.js → redirectToMobileManager-FLEWJtv8.esm.js} +2 -2
  170. package/dist/{redirectToMobileStateMachine-Cyv2x0PP.esm.js → redirectToMobileStateMachine-CSWWgUTO.esm.js} +1 -1
  171. package/dist/{rolldown-runtime-FZ4Itg2g.esm.js → rolldown-runtime-FDOR9p9I.esm.js} +1 -19
  172. package/dist/{runChildModule-Dukuw23X.esm.js → runChildModule-CI1gGWN1.esm.js} +3 -21
  173. package/dist/safeStorage-B-trhxg6.esm.js +423 -0
  174. package/dist/{sdkVersion-D1Bm59g6.esm.js → sdkVersion-BZh6dj53.esm.js} +1 -1
  175. package/dist/selfie.d.ts +5 -5
  176. package/dist/selfie.esm.js +14 -76
  177. package/dist/{selfieErrorUtils-C2PYBVsp.esm.js → selfieErrorUtils-UiQ46EBa.esm.js} +30 -4
  178. package/dist/{selfieManager-DwlCppg0.d.ts → selfieManager-4RRLi21P.d.ts} +8 -11
  179. package/dist/{selfieManager-Bj6B2ZVy.esm.js → selfieManager-B-2c1n_x.esm.js} +5 -5
  180. package/dist/selfieStateMachine-Bzx41R8d.esm.js +69 -0
  181. package/dist/{session-BFdLgN4i.esm.js → session-3LmvAU4S.esm.js} +4 -5
  182. package/dist/session.d.ts +21 -11
  183. package/dist/session.esm.js +5 -5
  184. package/dist/{sessionInitializer-dlfDehHk.esm.js → sessionInitializer-BFk33E67.esm.js} +187 -68
  185. package/dist/{setup-BIAtLa8k.esm.js → setup-BWG-hivt.esm.js} +226 -100
  186. package/dist/{setup-BgoWtvIS.d.ts → setup-Cv-JM9QC.d.ts} +63 -69
  187. package/dist/signature.esm.js +2 -2
  188. package/dist/{signatureManager-Ca43yhwk.esm.js → signatureManager-B72np4ZO.esm.js} +2 -2
  189. package/dist/{signatureStateMachine-K1LMRrxG.esm.js → signatureStateMachine-ce_XMA3l.esm.js} +1 -1
  190. package/dist/{src-0Jurt29N.esm.js → src-35ekGRzK.esm.js} +1 -1
  191. package/dist/{stats-B0nFKawG.esm.js → stats-CZcy2J53.esm.js} +1 -1
  192. package/dist/stats.esm.js +1 -1
  193. package/dist/{trueSightService---iW2KKJ.esm.js → trueSightService-BN-Hzw82.esm.js} +7 -7
  194. package/dist/trust-graph.esm.js +1 -1
  195. package/dist/{types-BX_XkMsQ2.d.ts → types-9_esGTPj.d.ts} +1 -1
  196. package/dist/types-BT_Oalip.d.ts +1 -0
  197. package/dist/{types-DelMqZLe.d.ts → types-BjSly8cp.d.ts} +1 -1
  198. package/dist/{types-Hmd7U0JA.d.ts → types-Bnl58jUQ.d.ts} +6 -85
  199. package/dist/types-ChAowIxT.d.ts +6 -0
  200. package/dist/{types-DVmXIdzW.d.ts → types-D0gekt4U.d.ts} +38 -5
  201. package/dist/types-DgDvvzg0.d.ts +10 -0
  202. package/dist/{types-KPvmag_B.d.ts → types-Do5rEXij.d.ts} +7 -4
  203. package/dist/{types-Bdf8_LYB2.d.ts → types-byBHOzCG2.d.ts} +305 -25
  204. package/dist/video-selfie.d.ts +59 -35
  205. package/dist/video-selfie.esm.js +510 -601
  206. package/dist/{videoSelfieCameraWarmer-NEhFZvWx.esm.js → videoSelfieCameraWarmer-B8PcYqmz.esm.js} +14 -153
  207. package/dist/videoSelfieFlowModuleMachine-BUe2uACW.esm.js +32 -0
  208. package/dist/{videoSelfieStepDetector-D3oo2ofo.d.ts → videoSelfieStepDetector-Co0Gu2k2.d.ts} +59 -13
  209. package/dist/virtualCameraCheck-Cjab7FTI.esm.js +48 -0
  210. package/dist/warmup-CUUnwYxe.esm.js +714 -0
  211. package/dist/warmup-Cis2p6O0.d.ts +128 -0
  212. package/dist/wasm.d.ts +30 -6
  213. package/dist/wasm.esm.js +36 -4
  214. package/dist/{wasmDsFlagSync-BqUCwLY8.esm.js → wasmDsFlagSync-B2e8p268.esm.js} +2 -2
  215. package/dist/{wasmWebClient-DM8lkb0z.esm.js → wasmWebClient-B7baE-Wf.esm.js} +358 -28
  216. package/dist/watchlist-for-business.d.ts +2 -78
  217. package/dist/watchlist-for-business.esm.js +3 -102
  218. package/dist/watchlist.esm.js +2 -2
  219. package/dist/watchlistForBusinessManager-CIMkpEhu.esm.js +107 -0
  220. package/dist/watchlistForBusinessManager-CsnJnG-C.d.ts +99 -0
  221. package/dist/{watchlistForBusinessStateMachine-CxFnlshm.esm.js → watchlistForBusinessStateMachine-CJ-MvUre.esm.js} +13 -6
  222. package/dist/{watchlistManager-LoNZH9qm.esm.js → watchlistManager-CixcLNDT.esm.js} +2 -2
  223. package/dist/{watchlistStateMachine-DIKQDoUT.esm.js → watchlistStateMachine-CBqk2w-h.esm.js} +1 -1
  224. package/dist/workflow.d.ts +12 -8
  225. package/dist/workflow.esm.js +48 -39
  226. package/package.json +4 -10
  227. package/dist/BrowserStorageProvider-k-FDkC4W.esm.js +0 -67
  228. package/dist/FaceDetectionProvider-Mh6q3EbA.d.ts +0 -349
  229. package/dist/IFaceAvatarCapability-BrL19G0s.d.ts +0 -23
  230. package/dist/IStorageCapability-ORkQfK3F.d.ts +0 -242
  231. package/dist/OpenViduRecordingProvider-Du98qevC.esm.js +0 -85
  232. package/dist/createFaceAvatar-BEj18KXi.d.ts +0 -50
  233. package/dist/document-upload.d.ts +0 -325
  234. package/dist/document-upload.esm.js +0 -197
  235. package/dist/electronicSignatureManager-CcUXQZS7.d.ts +0 -1300
  236. package/dist/faceCaptureSetup-Cd-04W_X.esm.js +0 -863
  237. package/dist/getBrowser-Cb8Zgrgp.esm.js +0 -7
  238. package/dist/getParsedUserAgent-pJjATANs.esm.js +0 -1622
  239. package/dist/governmentValidationStateMachine-CK9DrZXX.esm.js +0 -226
  240. package/dist/idCaptureDefaults-WeHbQM7W.esm.js +0 -225
  241. package/dist/idCaptureStateMachine-kZ5OpdfM.esm.js +0 -3342
  242. package/dist/lib-DAyUtOTj.esm.js +0 -12420
  243. package/dist/manualReviewService-D4IkipnN.esm.js +0 -15
  244. package/dist/mediaRecorderOptions-dALSV8af.esm.js +0 -40
  245. package/dist/onDeviceFaceResults-CUHwyZT4.esm.js +0 -646
  246. package/dist/openviduLazy-CCDpFWg1.esm.js +0 -10
  247. package/dist/recordingService-3NSENVwp.esm.js +0 -329
  248. package/dist/safeStorage-Ep56I-f_.esm.js +0 -982
  249. package/dist/selfieStateMachine-CHV_WNst.esm.js +0 -55
  250. package/dist/trueSight-B_icM8r2.esm.js +0 -1
  251. package/dist/types-EELWyWpd.d.ts +0 -6
  252. package/dist/types-Vb4P9ovf.d.ts +0 -22
  253. package/dist/warmup-Dv2alr2-.d.ts +0 -82
  254. package/dist/wasmDefaults-DTUrftxR.esm.js +0 -125
  255. package/dist/{Face2DProvider-UUQt_vRC.esm.js → Face2DProvider-BF48sz5c.esm.js} +1 -1
  256. package/dist/{PrivacyLensProvider-D8PS7AJa.esm.js → PrivacyLensProvider-EwnC_C5n.esm.js} +1 -1
  257. /package/dist/{types-BfgmV7s72.d.ts → types-BfgmV7s7.d.ts} +0 -0
  258. /package/dist/{types-CJ7Yl9K-2.d.ts → types-CJ7Yl9K-.d.ts} +0 -0
@@ -1,16 +1,38 @@
1
1
  import { t as api } from "./api-Bx3gKW_y.esm.js";
2
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-DYiyoSlx.esm.js";
2
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
3
3
  import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
4
- import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
5
- import { r as toIncodeApiError } from "./apiError-BA1d_au0.esm.js";
4
+ import { t as endpoints } from "./endpoints-B-3Q-LUw.esm.js";
5
+ import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-Budb6m6w.esm.js";
6
6
  import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
7
7
  import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
8
8
  import { t as externalFetch } from "./externalFetch-BKBThAUC.esm.js";
9
9
  //#region src/modules/electronic-signature/electronicSignatureServices.ts
10
10
  async function fetchUnsignedDocuments(signal) {
11
- const res = await api.get(endpoints.aesUnsignedDocuments, { signal });
12
- if (!res.ok) throw new Error(`GET ${endpoints.aesUnsignedDocuments} failed: ${res.status} ${res.statusText}`);
13
- return res.data;
11
+ try {
12
+ const res = await api.get(endpoints.aesUnsignedDocuments, { signal });
13
+ if (!res.ok) throw res;
14
+ return res.data;
15
+ } catch (error) {
16
+ toIncodeApiError(endpoints.aesUnsignedDocuments, error);
17
+ }
18
+ }
19
+ async function fetchSignedDocuments(signal) {
20
+ try {
21
+ const res = await api.get(endpoints.esSignedDocuments, { signal });
22
+ if (!res.ok) throw res;
23
+ return res.data;
24
+ } catch (error) {
25
+ toIncodeApiError(endpoints.esSignedDocuments, error);
26
+ }
27
+ }
28
+ async function fetchQesTerms(languageCode, signal) {
29
+ try {
30
+ const res = await api.post(endpoints.qesTerms, { languageCode }, { signal });
31
+ if (!res.ok) throw res;
32
+ return res.data;
33
+ } catch (error) {
34
+ toIncodeApiError(endpoints.qesTerms, error);
35
+ }
14
36
  }
15
37
  function getSignEndpoint(variant) {
16
38
  return variant === "qe" ? endpoints.qesSignDocument : endpoints.aesSignDocument;
@@ -43,8 +65,13 @@ async function uploadDocumentFile(presignedUrl, data, signal) {
43
65
  //#endregion
44
66
  //#region src/modules/electronic-signature/electronicSignatureActors.ts
45
67
  const fetchUnsignedDocsActor = fromPromise(async ({ signal }) => fetchUnsignedDocuments(signal));
68
+ const fetchSignedDocsActor = fromPromise(async ({ signal }) => fetchSignedDocuments(signal));
69
+ const fetchQesTermsActor = fromPromise(async ({ input, signal }) => fetchQesTerms(input.languageCode, signal));
46
70
  const signDocumentsActor = fromPromise(async ({ input, signal }) => {
47
- return (await Promise.all(input.documents.map((doc) => signDocument(doc.documentRef, input.variant, signal)))).map((r) => ({
71
+ const results = [];
72
+ if (input.variant === "qe" && input.sequential) for (const signatureDocument of input.documents) results.push(await signDocument(signatureDocument.documentRef, input.variant, signal));
73
+ else results.push(...await Promise.all(input.documents.map((signatureDocument) => signDocument(signatureDocument.documentRef, input.variant, signal))));
74
+ return results.map((r) => ({
48
75
  signed: r.success === true || !!r.signedDocumentUrl,
49
76
  signedDocumentUrl: r.signedDocumentUrl
50
77
  }));
@@ -61,7 +88,45 @@ const uploadFileActor = fromPromise(async ({ input, signal }) => {
61
88
  await uploadDocumentFile(input.preSignedUrl, fileData, signal);
62
89
  });
63
90
  //#endregion
91
+ //#region src/modules/electronic-signature/electronicSignatureErrors.ts
92
+ const QES_ERROR_TYPES = [
93
+ "MISSING_REQUIRED_IDENTITY_DATA",
94
+ "MISSING_EXTERNAL_OTP_EVIDENCE",
95
+ "HOLDER_DATA_MISMATCH",
96
+ "CERTIFICATE_EXPIRED",
97
+ "PROVIDER_AUTHENTICATION_ERROR",
98
+ "PROVIDER_CONFIGURATION_ERROR",
99
+ "UNKNOWN_PROVIDER_ERROR"
100
+ ];
101
+ function isRecord(value) {
102
+ return typeof value === "object" && value !== null;
103
+ }
104
+ function qesErrorTypeFromCause(cause) {
105
+ if (!isRecord(cause) || !isRecord(cause.data)) return null;
106
+ const rawType = (isRecord(cause.data.details) ? cause.data.details : null)?.qesErrorType ?? cause.data.qesErrorType;
107
+ if (typeof rawType !== "string") return null;
108
+ return QES_ERROR_TYPES.includes(rawType) ? rawType : "UNKNOWN_PROVIDER_ERROR";
109
+ }
110
+ function hasSignatureFailedMessage(error) {
111
+ if (error.message.toLowerCase().includes("signature failed")) return true;
112
+ if (!isRecord(error.cause) || !isRecord(error.cause.data)) return false;
113
+ const { message, error: errorMessage } = error.cause.data;
114
+ return [message, errorMessage].some((value) => typeof value === "string" && value.toLowerCase().includes("signature failed"));
115
+ }
116
+ function getQesErrorType(error) {
117
+ return error instanceof IncodeApiError ? qesErrorTypeFromCause(error.cause) : null;
118
+ }
119
+ function isRetryableQesFailure(error) {
120
+ if (isConnectivityError(error) || error instanceof IncodeApiError && isConnectivityError(error.cause)) return true;
121
+ const qesErrorType = getQesErrorType(error);
122
+ if (qesErrorType !== null) return qesErrorType === "CERTIFICATE_EXPIRED" || qesErrorType === "MISSING_EXTERNAL_OTP_EVIDENCE" || qesErrorType === "MISSING_REQUIRED_IDENTITY_DATA";
123
+ if (!(error instanceof IncodeApiError)) return false;
124
+ if (error.httpStatus === 500 || error.httpStatus === 409) return true;
125
+ return error.httpStatus === 400 && hasSignatureFailedMessage(error);
126
+ }
127
+ //#endregion
64
128
  //#region src/modules/electronic-signature/types.ts
129
+ const NAMIRIAL_QES_PROVIDER_CODE = "QES_3";
65
130
  const AE_CONSENT_KEYS = [
66
131
  "terms",
67
132
  "signElectronically",
@@ -74,6 +139,7 @@ const QE_CONSENT_KEYS = [
74
139
  "termsAgreement",
75
140
  "documentsReviewed"
76
141
  ];
142
+ const NAMIRIAL_QES_CONSENT_KEYS = ["providerTerm0", "providerTerm1"];
77
143
  function getConsentKeys(variant) {
78
144
  return variant === "qe" ? QE_CONSENT_KEYS : AE_CONSENT_KEYS;
79
145
  }
@@ -81,9 +147,42 @@ function getDefaultConsentChecks(variant) {
81
147
  const keys = getConsentKeys(variant);
82
148
  return Object.fromEntries(keys.map((k) => [k, false]));
83
149
  }
150
+ function isNamirialQesConfig(config) {
151
+ return config.variant === "qe" && config.providerCode === "QES_3";
152
+ }
153
+ function getInitialConsentChecks(config) {
154
+ const keys = isNamirialQesConfig(config) ? NAMIRIAL_QES_CONSENT_KEYS : getConsentKeys(config.variant ?? "ae");
155
+ return Object.fromEntries(keys.map((key) => [key, false]));
156
+ }
84
157
  function areAllConsented(checks) {
85
158
  return Object.values(checks).every(Boolean);
86
159
  }
160
+ const SUPPORTED_QES_TERM_LANGUAGES = /* @__PURE__ */ new Set([
161
+ "en",
162
+ "it",
163
+ "de"
164
+ ]);
165
+ function resolveQesTermsLanguage(language) {
166
+ const baseLanguage = language?.split(/[-_]/u)[0]?.trim().toLowerCase();
167
+ return baseLanguage && SUPPORTED_QES_TERM_LANGUAGES.has(baseLanguage) ? baseLanguage : "en";
168
+ }
169
+ /**
170
+ * Converts both the temporary three-item backend response (intro + two
171
+ * controls) and the final two-item response into the exact two labels the UI
172
+ * must render. Labels and contract text are validated without modifying their
173
+ * provider-supplied content.
174
+ */
175
+ function normalizeNamirialQesTerms(response, fallbackLanguage) {
176
+ const labels = response.checkBoxes?.length === 3 ? response.checkBoxes.slice(1) : response.checkBoxes;
177
+ const [firstLabel, secondLabel] = labels ?? [];
178
+ const contractText = response.contractText;
179
+ if (labels?.length !== 2 || firstLabel === void 0 || secondLabel === void 0 || firstLabel.trim().length === 0 || secondLabel.trim().length === 0 || contractText === void 0 || contractText.trim().length === 0) return null;
180
+ return {
181
+ consentLabels: [firstLabel, secondLabel],
182
+ contractText,
183
+ languageCode: resolveQesTermsLanguage(response.languageCode ?? fallbackLanguage)
184
+ };
185
+ }
87
186
  //#endregion
88
187
  //#region src/modules/electronic-signature/electronicSignatureStateMachine.ts
89
188
  function resolveFileDataHolder(input) {
@@ -105,6 +204,8 @@ const electronicSignatureMachine = setup({
105
204
  input: {}
106
205
  },
107
206
  actors: {
207
+ fetchQesTerms: fetchQesTermsActor,
208
+ fetchSignedDocs: fetchSignedDocsActor,
108
209
  fetchUnsignedDocs: fetchUnsignedDocsActor,
109
210
  signDocuments: signDocumentsActor,
110
211
  generateUploadUrl: generateUploadUrlActor,
@@ -119,6 +220,18 @@ const electronicSignatureMachine = setup({
119
220
  const { output } = event;
120
221
  return { signedDocuments: output };
121
222
  }),
223
+ setSignedDocumentsFromResponse: assign(({ event }) => {
224
+ const { output } = event;
225
+ return { signedDocuments: output.documents.map((signatureDocument) => ({
226
+ signed: true,
227
+ signedDocumentUrl: signatureDocument.documentUrl
228
+ })) };
229
+ }),
230
+ setProviderTerms: assign(({ context, event }) => {
231
+ const { output } = event;
232
+ const providerTerms = normalizeNamirialQesTerms(output, context.config.language);
233
+ return providerTerms === null ? {} : { providerTerms };
234
+ }),
122
235
  setFile: assign(({ event }) => {
123
236
  const { fileName, fileSize, fileUrl } = event;
124
237
  return {
@@ -139,21 +252,50 @@ const electronicSignatureMachine = setup({
139
252
  } };
140
253
  }),
141
254
  setViewingDocument: assign(({ event }) => ({ viewingDocumentUrl: event.url })),
142
- clearViewingDocument: assign({ viewingDocumentUrl: () => null })
255
+ clearViewingDocument: assign({ viewingDocumentUrl: () => null }),
256
+ showApplicationForm: assign({ viewingApplicationForm: () => true }),
257
+ hideApplicationForm: assign({ viewingApplicationForm: () => false })
143
258
  },
144
259
  guards: {
145
260
  errorFromUpload: ({ context }) => context.errorSource === "upload",
261
+ errorFromTerms: ({ context }) => context.errorSource === "terms",
262
+ errorFromSigning: ({ context }) => context.errorSource === "signing",
263
+ errorFromSignedDocs: ({ context }) => context.errorSource === "signedDocs",
146
264
  shouldUpload: ({ context }) => context.config.uploadDocument === true,
265
+ shouldFetchProviderTerms: ({ context }) => isNamirialQesConfig(context.config),
266
+ hasProviderTerms: ({ context }) => context.providerTerms !== null,
147
267
  hasUploadUrl: ({ context }) => context.preSignedUrl !== null,
148
268
  allConsented: ({ context }) => areAllConsented(context.consentChecks),
149
269
  hasDocuments: ({ event }) => {
150
270
  const { output } = event;
151
271
  return (output.documents?.length ?? 0) > 0;
152
272
  },
273
+ hasSignedDocuments: ({ event }) => {
274
+ const { output } = event;
275
+ return (output.documents?.length ?? 0) > 0 && output.documents.every((signatureDocument) => signatureDocument.documentUrl.trim().length > 0);
276
+ },
277
+ hasSignedDocumentsAndDownload: ({ context, event }) => {
278
+ const { output } = event;
279
+ return context.config.downloadDocument === true && (output.documents?.length ?? 0) > 0 && output.documents.every((signatureDocument) => signatureDocument.documentUrl.trim().length > 0);
280
+ },
281
+ hasValidProviderTerms: ({ event }) => {
282
+ const { output } = event;
283
+ return normalizeNamirialQesTerms(output) !== null;
284
+ },
285
+ isProviderTermsFlow: ({ context }) => isNamirialQesConfig(context.config),
286
+ isRetryableProviderFailure: ({ context, event }) => {
287
+ if (!isNamirialQesConfig(context.config)) return false;
288
+ const { error } = event;
289
+ return isRetryableQesFailure(error);
290
+ },
153
291
  allSigned: ({ event }) => {
154
292
  const { output } = event;
155
293
  return output.every((d) => d.signed);
156
294
  },
295
+ allSignedAndProviderTerms: ({ context, event }) => {
296
+ const { output } = event;
297
+ return isNamirialQesConfig(context.config) && output.every((signatureDocument) => signatureDocument.signed);
298
+ },
157
299
  allSignedAndDownload: ({ context, event }) => {
158
300
  const { output } = event;
159
301
  return output.every((d) => d.signed && !!d.signedDocumentUrl) && context.config.downloadDocument === true;
@@ -171,16 +313,25 @@ const electronicSignatureMachine = setup({
171
313
  fileSize: null,
172
314
  fileUrl: null,
173
315
  preSignedUrl: null,
174
- consentChecks: getDefaultConsentChecks(input.config.variant ?? "ae"),
316
+ consentChecks: getInitialConsentChecks(input.config),
317
+ providerTerms: null,
175
318
  viewingDocumentUrl: null,
319
+ viewingApplicationForm: false,
176
320
  errorMessage: "",
177
321
  errorSource: null
178
322
  }),
179
323
  states: {
180
- idle: { on: { LOAD: [{
181
- target: "uploading",
182
- guard: "shouldUpload"
183
- }, { target: "fetchingDocs" }] } },
324
+ idle: { on: { LOAD: [
325
+ {
326
+ target: "uploading",
327
+ guard: "shouldUpload"
328
+ },
329
+ {
330
+ target: "fetchingTerms",
331
+ guard: "shouldFetchProviderTerms"
332
+ },
333
+ { target: "fetchingDocs" }
334
+ ] } },
184
335
  uploading: { on: {
185
336
  SELECT_FILE: {
186
337
  target: "reviewing",
@@ -225,7 +376,10 @@ const electronicSignatureMachine = setup({
225
376
  preSignedUrl: context.preSignedUrl,
226
377
  fileDataHolder: context.fileDataHolder
227
378
  }),
228
- onDone: { target: "fetchingDocs" },
379
+ onDone: [{
380
+ target: "fetchingTerms",
381
+ guard: "shouldFetchProviderTerms"
382
+ }, { target: "fetchingDocs" }],
229
383
  onError: {
230
384
  target: "error",
231
385
  actions: assign(({ event }) => ({
@@ -234,32 +388,96 @@ const electronicSignatureMachine = setup({
234
388
  }))
235
389
  }
236
390
  } },
237
- fetchingDocs: { invoke: {
238
- id: "fetchUnsignedDocs",
239
- src: "fetchUnsignedDocs",
391
+ fetchingTerms: { invoke: {
392
+ id: "fetchQesTerms",
393
+ src: "fetchQesTerms",
394
+ input: ({ context }) => ({ languageCode: resolveQesTermsLanguage(context.config.language) }),
240
395
  onDone: [{
241
- target: "signing",
242
- guard: "hasDocuments",
243
- actions: "setDocuments"
396
+ target: "fetchingDocs",
397
+ guard: "hasValidProviderTerms",
398
+ actions: "setProviderTerms"
244
399
  }, {
245
- target: "error",
400
+ target: "signError",
246
401
  actions: assign({
247
- errorMessage: () => "aes.noDocuments",
248
- errorSource: () => "fetchDocs"
402
+ errorMessage: () => "qes.invalidProviderTerms",
403
+ errorSource: () => "terms"
249
404
  })
250
405
  }],
251
- onError: {
406
+ onError: [{
252
407
  target: "error",
408
+ guard: "isRetryableProviderFailure",
253
409
  actions: assign(({ event }) => ({
254
410
  errorMessage: String(event.error ?? "aes.error"),
255
- errorSource: "fetchDocs"
411
+ errorSource: "terms"
256
412
  }))
257
- }
413
+ }, {
414
+ target: "signError",
415
+ actions: assign(({ event }) => ({
416
+ errorMessage: String(event.error ?? "aes.error"),
417
+ errorSource: "terms"
418
+ }))
419
+ }]
420
+ } },
421
+ fetchingDocs: { invoke: {
422
+ id: "fetchUnsignedDocs",
423
+ src: "fetchUnsignedDocs",
424
+ onDone: [
425
+ {
426
+ target: "signing",
427
+ guard: "hasDocuments",
428
+ actions: "setDocuments"
429
+ },
430
+ {
431
+ target: "signError",
432
+ guard: "isProviderTermsFlow",
433
+ actions: assign({
434
+ errorMessage: () => "aes.noDocuments",
435
+ errorSource: () => "fetchDocs"
436
+ })
437
+ },
438
+ {
439
+ target: "error",
440
+ actions: assign({
441
+ errorMessage: () => "aes.noDocuments",
442
+ errorSource: () => "fetchDocs"
443
+ })
444
+ }
445
+ ],
446
+ onError: [
447
+ {
448
+ target: "error",
449
+ guard: "isRetryableProviderFailure",
450
+ actions: assign(({ event }) => ({
451
+ errorMessage: String(event.error ?? "aes.error"),
452
+ errorSource: "fetchDocs"
453
+ }))
454
+ },
455
+ {
456
+ target: "signError",
457
+ guard: "isProviderTermsFlow",
458
+ actions: assign(({ event }) => ({
459
+ errorMessage: String(event.error ?? "aes.error"),
460
+ errorSource: "fetchDocs"
461
+ }))
462
+ },
463
+ {
464
+ target: "error",
465
+ actions: assign(({ event }) => ({
466
+ errorMessage: String(event.error ?? "aes.error"),
467
+ errorSource: "fetchDocs"
468
+ }))
469
+ }
470
+ ]
258
471
  } },
259
472
  signing: { on: {
260
473
  SET_CONSENT: { actions: "updateConsent" },
261
474
  VIEW_DOCUMENT: { actions: "setViewingDocument" },
262
475
  CLOSE_DOCUMENT_VIEW: { actions: "clearViewingDocument" },
476
+ VIEW_APPLICATION_FORM: {
477
+ guard: "hasProviderTerms",
478
+ actions: "showApplicationForm"
479
+ },
480
+ CLOSE_APPLICATION_FORM: { actions: "hideApplicationForm" },
263
481
  SIGN: {
264
482
  target: "processing",
265
483
  guard: "allConsented"
@@ -271,9 +489,14 @@ const electronicSignatureMachine = setup({
271
489
  src: "signDocuments",
272
490
  input: ({ context }) => ({
273
491
  documents: context.documents,
492
+ sequential: isNamirialQesConfig(context.config),
274
493
  variant: context.config.variant ?? "ae"
275
494
  }),
276
495
  onDone: [
496
+ {
497
+ target: "fetchingSignedDocs",
498
+ guard: "allSignedAndProviderTerms"
499
+ },
277
500
  {
278
501
  target: "successDownload",
279
502
  guard: "allSignedAndDownload",
@@ -292,13 +515,57 @@ const electronicSignatureMachine = setup({
292
515
  })
293
516
  }
294
517
  ],
295
- onError: {
518
+ onError: [{
519
+ target: "error",
520
+ guard: "isRetryableProviderFailure",
521
+ actions: assign(({ event }) => ({
522
+ errorMessage: String(event.error ?? "aes.error"),
523
+ errorSource: "signing"
524
+ }))
525
+ }, {
296
526
  target: "signError",
297
527
  actions: assign(({ event }) => ({
298
528
  errorMessage: String(event.error ?? "aes.error"),
299
529
  errorSource: "signing"
300
530
  }))
301
- }
531
+ }]
532
+ } },
533
+ fetchingSignedDocs: { invoke: {
534
+ id: "fetchSignedDocs",
535
+ src: "fetchSignedDocs",
536
+ onDone: [
537
+ {
538
+ target: "successDownload",
539
+ guard: "hasSignedDocumentsAndDownload",
540
+ actions: "setSignedDocumentsFromResponse"
541
+ },
542
+ {
543
+ target: "success",
544
+ guard: "hasSignedDocuments",
545
+ actions: "setSignedDocumentsFromResponse"
546
+ },
547
+ {
548
+ target: "signError",
549
+ actions: assign({
550
+ errorMessage: () => "aes.noDocuments",
551
+ errorSource: () => "signedDocs"
552
+ })
553
+ }
554
+ ],
555
+ onError: [{
556
+ target: "error",
557
+ guard: "isRetryableProviderFailure",
558
+ actions: assign(({ event }) => ({
559
+ errorMessage: String(event.error ?? "aes.error"),
560
+ errorSource: "signedDocs"
561
+ }))
562
+ }, {
563
+ target: "signError",
564
+ actions: assign(({ event }) => ({
565
+ errorMessage: String(event.error ?? "aes.error"),
566
+ errorSource: "signedDocs"
567
+ }))
568
+ }]
302
569
  } },
303
570
  success: { after: { 3e3: "finished" } },
304
571
  successDownload: { on: {
@@ -307,23 +574,50 @@ const electronicSignatureMachine = setup({
307
574
  } },
308
575
  signError: { after: { 3e3: "finished" } },
309
576
  error: { on: {
310
- RETRY: [{
311
- target: "uploading",
312
- guard: "errorFromUpload",
313
- actions: assign({
314
- errorMessage: () => "",
315
- errorSource: () => null,
316
- fileName: () => null,
317
- fileSize: () => null,
318
- fileUrl: () => null
319
- })
320
- }, {
321
- target: "fetchingDocs",
322
- actions: assign({
323
- errorMessage: () => "",
324
- errorSource: () => null
325
- })
326
- }],
577
+ RETRY: [
578
+ {
579
+ target: "uploading",
580
+ guard: "errorFromUpload",
581
+ actions: assign({
582
+ errorMessage: () => "",
583
+ errorSource: () => null,
584
+ fileName: () => null,
585
+ fileSize: () => null,
586
+ fileUrl: () => null
587
+ })
588
+ },
589
+ {
590
+ target: "fetchingTerms",
591
+ guard: "errorFromTerms",
592
+ actions: assign({
593
+ errorMessage: () => "",
594
+ errorSource: () => null
595
+ })
596
+ },
597
+ {
598
+ target: "processing",
599
+ guard: "errorFromSigning",
600
+ actions: assign({
601
+ errorMessage: () => "",
602
+ errorSource: () => null
603
+ })
604
+ },
605
+ {
606
+ target: "fetchingSignedDocs",
607
+ guard: "errorFromSignedDocs",
608
+ actions: assign({
609
+ errorMessage: () => "",
610
+ errorSource: () => null
611
+ })
612
+ },
613
+ {
614
+ target: "fetchingDocs",
615
+ actions: assign({
616
+ errorMessage: () => "",
617
+ errorSource: () => null
618
+ })
619
+ }
620
+ ],
327
621
  CLOSE: { target: "closed" }
328
622
  } },
329
623
  finished: { type: "final" },
@@ -372,9 +666,11 @@ function getAdSignatureScreenName(snapshot) {
372
666
  case "reviewing":
373
667
  case "generatingUploadUrl":
374
668
  case "uploadingFile": return "AdSign.reviewDoc.default";
669
+ case "fetchingTerms":
375
670
  case "fetchingDocs":
376
671
  case "signing": return "AdSign.AcceptSign.default";
377
- case "processing": return "AdSign.AcceptSign.processing";
672
+ case "processing":
673
+ case "fetchingSignedDocs": return "AdSign.AcceptSign.processing";
378
674
  case "success":
379
675
  case "successDownload":
380
676
  case "finished": return "AdSign.success";
@@ -415,9 +711,11 @@ function getQSignatureScreenName(snapshot) {
415
711
  case "reviewing":
416
712
  case "generatingUploadUrl":
417
713
  case "uploadingFile": return "QSign.review.default";
714
+ case "fetchingTerms":
418
715
  case "fetchingDocs":
419
716
  case "signing": return "QSign.AcceptSign.default";
420
- case "processing": return "QSign.AcceptSign.processing";
717
+ case "processing":
718
+ case "fetchingSignedDocs": return "QSign.AcceptSign.processing";
421
719
  case "success":
422
720
  case "successDownload":
423
721
  case "finished": return "QSign.success";
@@ -428,7 +726,7 @@ function getQSignatureScreenName(snapshot) {
428
726
  }
429
727
  function mapState(snapshot) {
430
728
  const { context } = snapshot;
431
- if (snapshot.matches("idle") || snapshot.matches("fetchingDocs") || snapshot.matches("generatingUploadUrl") || snapshot.matches("uploadingFile")) return { status: "loading" };
729
+ if (snapshot.matches("idle") || snapshot.matches("fetchingTerms") || snapshot.matches("fetchingDocs") || snapshot.matches("generatingUploadUrl") || snapshot.matches("uploadingFile")) return { status: "loading" };
432
730
  if (snapshot.matches("uploading")) return {
433
731
  status: "uploading",
434
732
  fileName: context.fileName
@@ -444,9 +742,11 @@ function mapState(snapshot) {
444
742
  documents: context.documents,
445
743
  consentChecks: context.consentChecks,
446
744
  allConsented: areAllConsented(context.consentChecks),
447
- viewingDocumentUrl: context.viewingDocumentUrl
745
+ providerTerms: context.providerTerms,
746
+ viewingDocumentUrl: context.viewingDocumentUrl,
747
+ viewingApplicationForm: context.viewingApplicationForm
448
748
  };
449
- if (snapshot.matches("processing")) return { status: "processing" };
749
+ if (snapshot.matches("processing") || snapshot.matches("fetchingSignedDocs")) return { status: "processing" };
450
750
  if (snapshot.matches("success") || snapshot.matches("successDownload")) return {
451
751
  status: "success",
452
752
  signedDocuments: context.signedDocuments,
@@ -502,6 +802,12 @@ function createApi({ actor, trackElementClicked, fileDataHolder }) {
502
802
  closeDocumentView() {
503
803
  actor.send({ type: "CLOSE_DOCUMENT_VIEW" });
504
804
  },
805
+ viewApplicationForm() {
806
+ actor.send({ type: "VIEW_APPLICATION_FORM" });
807
+ },
808
+ closeApplicationForm() {
809
+ actor.send({ type: "CLOSE_APPLICATION_FORM" });
810
+ },
505
811
  sign() {
506
812
  trackElementClicked?.("sign");
507
813
  actor.send({ type: "SIGN" });
@@ -549,4 +855,4 @@ function createElectronicSignatureManager(options) {
549
855
  }));
550
856
  }
551
857
  //#endregion
552
- export { QE_CONSENT_KEYS as a, getDefaultConsentChecks as c, AE_CONSENT_KEYS as i, createElectronicSignatureManagerFromActor as n, areAllConsented as o, electronicSignatureMachine as r, getConsentKeys as s, createElectronicSignatureManager as t };
858
+ export { NAMIRIAL_QES_CONSENT_KEYS as a, areAllConsented as c, AE_CONSENT_KEYS as i, getConsentKeys as l, createElectronicSignatureManagerFromActor as n, NAMIRIAL_QES_PROVIDER_CODE as o, electronicSignatureMachine as r, QE_CONSENT_KEYS as s, createElectronicSignatureManager as t, getDefaultConsentChecks as u };