@incodetech/web 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 (345) hide show
  1. package/THIRD_PARTY_NOTICES.txt +1 -4
  2. package/dist/{GeolocationPermissionDenied-NCe8TBk4.js → GeolocationPermissionDenied-ClGp0a23.js} +13 -8
  3. package/dist/ae-signature/ae-signature.es.js +4 -4
  4. package/dist/{af-ZA-BbU0OdlG.js → af-ZA-BKpmmWDe.js} +165 -869
  5. package/dist/{ageVerification-B5ownHdO.js → ageVerification-CtuJDuRV.js} +11 -8
  6. package/dist/{am-BuvQtV50.js → am-CW_ro5Ws.js} +165 -869
  7. package/dist/antifraud/antifraud.es.js +5 -4
  8. package/dist/applyStudioConfig-C6-Ak0q6.js +127 -0
  9. package/dist/{ar-AE-Bdk7NfI2.js → ar-AE-D9h8UMbm.js} +165 -869
  10. package/dist/{ar-Ba-wMBXP.js → ar-B5ToweVl.js} +166 -870
  11. package/dist/{ar-EG-C9FVwsEB.js → ar-EG-DQqE9B26.js} +165 -869
  12. package/dist/assertClassBrand-DJr5K93j.js +17 -0
  13. package/dist/asset-Ctwd_20H.js +355 -0
  14. package/dist/authentication/authentication.es.js +7 -5
  15. package/dist/{autoFocusTitle-BQltp_Nn.js → autoFocusTitle-CzaCWWW5.js} +2 -2
  16. package/dist/{az-DHRJfgCV.js → az-DAZq-CQj.js} +165 -869
  17. package/dist/{back-horizontal-hint-BztyPanp.js → back-horizontal-hint-qzSaNkEU.js} +1 -1
  18. package/dist/{back-vertical-hint-BSzA4QbJ.js → back-vertical-hint-DkYLOege.js} +1 -1
  19. package/dist/base.css +1 -1
  20. package/dist/{baseTutorial-CL2A9XLh.js → baseTutorial-CF6WiVYt.js} +10 -7
  21. package/dist/{bn-BfE2MHPG.js → bn-DRTyq2Y9.js} +165 -869
  22. package/dist/{bottomSheet-DU4SrMOH.js → bottomSheet-DylE2INk.js} +3 -3
  23. package/dist/{bs-Ck9dCVYh.js → bs-B8q0B86-.js} +164 -868
  24. package/dist/{ca-yJUG5zqw.js → ca-DvsHXRB-.js} +164 -868
  25. package/dist/cameraOverlay-DNf0PEF4.js +2 -0
  26. package/dist/{cameraOverlayHeader-Bp7NCrl9.js → cameraOverlayHeader-CuVGnyXI.js} +9 -8
  27. package/dist/{cameraView-CLlWARBI.js → cameraView-D9ZxLKtA.js} +13 -14
  28. package/dist/capture-0jMDSGCE.js +762 -0
  29. package/dist/{tutorial-Bwt7rxfr.js → capture-BlGlXoTx.js} +212 -51
  30. package/dist/capture-DKBA5j5A.js +3 -0
  31. package/dist/capture-D_Dwrj1F.js +2 -0
  32. package/dist/captureButtonIcon-A9kn2E_m.js +1 -0
  33. package/dist/captureFocusContext-9789qOe3.js +729 -0
  34. package/dist/captureFooter-B6WUFQCV.js +47 -0
  35. package/dist/{ceb-oov4R9JM.js → ceb-pvlomXHV.js} +165 -869
  36. package/dist/certificate-issuance/certificate-issuance.es.js +23 -13
  37. package/dist/{check-icon-BpjpKqhJ.js → check-icon-BdHltEK6.js} +1 -1
  38. package/dist/{checkbox-DbYUeTao.js → checkbox-BwUQ0Rs9.js} +4 -4
  39. package/dist/chooser-CmG71-lh.js +1589 -0
  40. package/dist/connectionError-DexRpKWs.js +90 -0
  41. package/dist/consent/consent.es.js +19 -14
  42. package/dist/consent/styles.css +1 -1
  43. package/dist/consent/styles.css.js +1 -1
  44. package/dist/{countryFlag-2Vj85OIZ.js → countryFlag-CQMfCnE9.js} +1 -1
  45. package/dist/{countrySelector-El6_zLMs.js → countrySelector-C0OEKMqL.js} +6 -5
  46. package/dist/cross-document-data-match/cross-document-data-match.es.js +5 -4
  47. package/dist/{cs-CZ-B9jWzmE_.js → cs-CZ-GgvnJLMj.js} +164 -868
  48. package/dist/{cs-ovOFxGB0.js → cs-DB5PLEdt.js} +164 -868
  49. package/dist/curp-validation/curp-validation.es.js +34 -19
  50. package/dist/curp-validation/styles.css +1 -1
  51. package/dist/curp-validation/styles.css.js +1 -1
  52. package/dist/{customFields-BlYfgYje.js → customFields-DQgRumW0.js} +17 -12
  53. package/dist/{customWatchlist-BsBTzCCN.js → customWatchlist-BbC0fA-6.js} +8 -7
  54. package/dist/{da-DK-C0l5MGWM.js → da-DK-ZhpcfE_F.js} +164 -868
  55. package/dist/{dashboardTheme-MVQerNVn.js → dashboardTheme-DtXsx9IK.js} +22 -23
  56. package/dist/{dateInputComposed-DXCc1HRe.js → dateInputComposed-1IcnucPq.js} +5 -5
  57. package/dist/dateInputComposed-BFlCk-sg.js +1 -0
  58. package/dist/{de-B0IRPjwJ.js → de-DEBjzaow.js} +164 -868
  59. package/dist/{denied-wXsbFjy_.js → denied-CwdVWAUw.js} +12 -9
  60. package/dist/devWarn-CW20j1Qd.js +9 -0
  61. package/dist/deviceWallet-CMjguFJO.js +37 -0
  62. package/dist/{digitalIdRedirect-CF7zG3wS.js → digitalIdRedirect-MNty16-5.js} +4 -4
  63. package/dist/{digitalIdUpload-CbPm090z.js → digitalIdUpload-CUzTaoaI.js} +39 -15
  64. package/dist/document-capture/document-capture.es.js +1 -1
  65. package/dist/document-capture/styles.css +1 -1
  66. package/dist/document-capture/styles.css.js +1 -1
  67. package/dist/{documentCapture-CgpHXm_8.js → documentCapture-BUMyJ8vw.js} +115 -44
  68. package/dist/documentCapture-rECLkwpi.js +2 -0
  69. package/dist/dropdownComposed-C9sLQE6i.js +1 -0
  70. package/dist/{dropdownComposed-qb9GgX5X.js → dropdownComposed-x3ewHxbT.js} +4 -4
  71. package/dist/dynamic-forms/dynamic-forms.es.js +20 -15
  72. package/dist/ekyb/ekyb.es.js +1 -1
  73. package/dist/ekyb/styles.css +1 -1
  74. package/dist/ekyb/styles.css.js +1 -1
  75. package/dist/ekybModule-B5IEiSyi.js +2 -0
  76. package/dist/{ekybModule-BgZIkVVl.js → ekybModule-C5hEBLMs.js} +27 -23
  77. package/dist/ekyc/ekyc.es.js +1 -1
  78. package/dist/ekyc/styles.css +1 -1
  79. package/dist/ekyc/styles.css.js +1 -1
  80. package/dist/ekycModule-B7OFnP3H.js +2 -0
  81. package/dist/{ekycModule-DEVrRrnH.js → ekycModule-TVKk0qdS.js} +71 -44
  82. package/dist/{el-Do7wYurZ.js → el-Dplr_D5N.js} +164 -868
  83. package/dist/{el-GR-BZEKLkvc.js → el-GR-IZ4reOR7.js} +164 -868
  84. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  85. package/dist/{electronic-signature-DE6FJfvu.js → electronic-signature-BMda_cf3.js} +49 -34
  86. package/dist/email/email.es.js +15 -11
  87. package/dist/{emailInput-Cp77LavN.js → emailInput-BI8gWC0D.js} +4 -4
  88. package/dist/{en-DG-Cvwm0nfj.js → en-DG-C6tsWvHi.js} +165 -869
  89. package/dist/{en-CJ6l68pH.js → en-Db1L_u7B.js} +165 -869
  90. package/dist/{errorContent-YeJNVb1U.js → errorContent-pPAgyy2i.js} +10 -7
  91. package/dist/es-419-DxKrJq7W.js +5 -0
  92. package/dist/{es-rayGAvsH.js → es-C5unKsaF.js} +164 -868
  93. package/dist/{es-ES-B8h3jMgN.js → es-ES-sHbsufzT.js} +164 -868
  94. package/dist/{es-MX-DA__jQOC.js → es-MX-Cd_DCR0A.js} +164 -868
  95. package/dist/{et-DvX7tm-R.js → et-BoGq2cx8.js} +165 -869
  96. package/dist/{expiredId-CsKNCK5M.js → expiredId-DWjw94rT.js} +12 -8
  97. package/dist/extensibility.es.js +100 -55
  98. package/dist/{fa-IR-DfrzWcH0.js → fa-IR-DuUxGXrf.js} +165 -869
  99. package/dist/face-match/face-match.es.js +1 -1
  100. package/dist/face-match/styles.css +1 -1
  101. package/dist/face-match/styles.css.js +1 -1
  102. package/dist/faceMatch-B2aMz3X2.js +2 -0
  103. package/dist/{faceMatch-Bqspq0cw.js → faceMatch-DV7NxYu_.js} +15 -20
  104. package/dist/{fi-FI-CcFDkeiE.js → fi-FI-DMOBNTjA.js} +164 -868
  105. package/dist/field-comparison/field-comparison.es.js +1 -1
  106. package/dist/fieldComparison-BY2XXsp3.js +2 -0
  107. package/dist/{fieldComparison-CmQN2MEj.js → fieldComparison-CFLU1h6n.js} +15 -11
  108. package/dist/{fieldLabelHint-CxjArYkQ.js → fieldLabelHint-CjrLxBaj.js} +3 -3
  109. package/dist/{finalSuccessScreen-1Ea3wZWM.js → finalSuccessScreen-C50L96j9.js} +20 -16
  110. package/dist/fiscal-qr/fiscal-qr.es.js +24 -18
  111. package/dist/flipAnimation-8x-qdtF_.js +33 -0
  112. package/dist/flipCapturedCardEligibility-DLr9F2g2.js +210 -0
  113. package/dist/flow/flow.es.js +209 -186
  114. package/dist/flow/shell/styles.css +1 -1
  115. package/dist/flow/shell/styles.css.js +1 -1
  116. package/dist/flow/styles.css +1 -1
  117. package/dist/{formField-DoXWcoL9.js → formField-CfQKYeGF.js} +19 -11
  118. package/dist/{fr-CA-CeL7RQc-.js → fr-CA-DZ8jlsp3.js} +164 -868
  119. package/dist/{fr-DtdqfaF8.js → fr-DSR-AP0e.js} +164 -868
  120. package/dist/{front-horizontal-hint-DEHmtcdg.js → front-horizontal-hint-DOphQZg2.js} +1 -1
  121. package/dist/{front-vertical-hint-Cb1NO-xT.js → front-vertical-hint-S6PcS9_m.js} +1 -1
  122. package/dist/geolocation/geolocation.es.js +15 -12
  123. package/dist/government-validation/government-validation.es.js +7 -6
  124. package/dist/{he-CPeNHo0I.js → he-N5dfJeyd.js} +165 -869
  125. package/dist/helpButtonConfig-CjbrBQaV.js +24 -0
  126. package/dist/{hi-DIbkmie6.js → hi-JR6K9zbd.js} +165 -869
  127. package/dist/{hmn-CscGik4W.js → hmn-j2YA7FxW.js} +165 -869
  128. package/dist/{homeScreen-C0j_8KKD.js → homeScreen-C3pPw52y.js} +24 -13
  129. package/dist/{incodeComponent-CMBg2gpq.js → hooks-BFP0WaJM.js} +192 -262
  130. package/dist/{hr-DWUsAZnf.js → hr-8cOdwB0t.js} +164 -868
  131. package/dist/{ht-DgaboG3c.js → ht-DDNL4C__.js} +165 -869
  132. package/dist/{hu-Lz2qVC3S.js → hu-CynQQUFQ.js} +166 -870
  133. package/dist/i18n-Dp014ljG.js +942 -0
  134. package/dist/{icons-OQDvn5r2.js → icons-c-hFaG4L.js} +153 -56
  135. package/dist/id/id.es.js +101 -197
  136. package/dist/id/styles.css +1 -1
  137. package/dist/id/styles.css.js +1 -1
  138. package/dist/{id-back-of-card-C7Au2tqk.js → id-back-of-card-Bk6ZQUE9.js} +1 -1
  139. package/dist/{id-back-of-card-vertical-CtQBFw8w.js → id-back-of-card-vertical-BZo00s50.js} +1 -1
  140. package/dist/{id-front-of-card-BmHL_keG.js → id-front-of-card-BJ96se7u.js} +1 -1
  141. package/dist/{id-front-of-card-vertical-DkNUn2Vx.js → id-front-of-card-vertical-DSfJB0lX.js} +1 -1
  142. package/dist/{id-C5eOEjgu.js → id-o_Yg0n8W.js} +165 -869
  143. package/dist/id-selfie-flow/id-selfie-flow.es.js +12 -11
  144. package/dist/id-selfie-flow/styles.css +1 -1
  145. package/dist/id-verification/id-verification.es.js +6 -5
  146. package/dist/idFlipTransition-DXdtXYza.js +158 -0
  147. package/dist/{idOcr-C-kHrU_d.js → idOcr-CjqfkRJ7.js} +18 -14
  148. package/dist/identity-reuse/identity-reuse.es.js +28 -18
  149. package/dist/incodeComponent-DtKh-UUm.js +237 -0
  150. package/dist/incodeModule-DCHXAeYU.js +41 -0
  151. package/dist/index.es.js +5 -3
  152. package/dist/{inputComposed-CR1IW-mQ.js → inputComposed-CmVsaHOa.js} +4 -4
  153. package/dist/inputComposed-DvGrso7g.js +1 -0
  154. package/dist/{it-CQGuLrxZ.js → it-BXevrtHn.js} +165 -869
  155. package/dist/{ja-CBD-jOkP.js → ja-DiTXnTx-.js} +165 -869
  156. package/dist/{ja-JP-Dgbzh2aL.js → ja-JP-D1IRWR-p.js} +166 -870
  157. package/dist/{jv-C-E67yDR.js → jv-Us70GzGp.js} +164 -868
  158. package/dist/{ka-CcCqDmzw.js → ka-BSsWQ4yU.js} +165 -869
  159. package/dist/{kk-B_5WgCfa.js → kk-D5R6r4H7.js} +164 -868
  160. package/dist/{km-CucJh4em.js → km-CCCb2Rnt.js} +171 -875
  161. package/dist/{ko-KP-BSjl3hdX.js → ko-KP-JF4khv1Y.js} +165 -869
  162. package/dist/{ko-BEd2Jz4C.js → ko-kQioCg2w.js} +165 -869
  163. package/dist/{ky-Bb9MfmYr.js → ky-CLOemVjC.js} +164 -868
  164. package/dist/kyb-checks/kyb-checks.es.js +2 -0
  165. package/dist/kyb-checks/styles.css +2 -0
  166. package/dist/kyb-checks/styles.css.js +1 -0
  167. package/dist/kybChecksModule-C6Y9Hxpr.js +329 -0
  168. package/dist/kybChecksModule-r3MIpFhS.js +2 -0
  169. package/dist/{lo-CD_Ehkf5.js → lo-tzHUt1CQ.js} +165 -869
  170. package/dist/{lt-DHkwvJ8e.js → lt-B2ZI-Cgu.js} +165 -869
  171. package/dist/{lv-CPuPO_jU.js → lv-BJnxtSYw.js} +165 -869
  172. package/dist/{mandatoryConsent-BHMWyBUp.js → mandatoryConsent-BiQuEZRu.js} +23 -16
  173. package/dist/{manualCaptureButton-D_tGP6tv.js → manualCaptureButton-BRSmPTeR.js} +8 -7
  174. package/dist/{manualCaptureButton-D5XP3Oaf.js → manualCaptureButton-Dw0MMSkc.js} +17 -12
  175. package/dist/{mk-DO85nJp4.js → mk-Cj7Iw2Q4.js} +165 -869
  176. package/dist/{mn-D5fhne6X.js → mn-CA_rNxtz.js} +164 -868
  177. package/dist/{ms-D_FFGDor.js → ms-BydA1Zjz.js} +164 -868
  178. package/dist/{my-D1JKF20F.js → my-gFKufKaG.js} +165 -869
  179. package/dist/{nb-NO-oEMuavpl.js → nb-NO-CDsGQbOZ.js} +164 -868
  180. package/dist/{ne-Ds3QEMQ4.js → ne-Cyfi0vFI.js} +165 -869
  181. package/dist/{nl-DGyLucC1.js → nl-e1gbmAFO.js} +165 -869
  182. package/dist/{numberedStep-CvbL3ht2.js → numberedStep-CeN77hnQ.js} +1 -1
  183. package/dist/{optionAccessibleLabel-SwDCMYKc.js → optionAccessibleLabel-BTUieMxH.js} +8 -7
  184. package/dist/{otpInput-DIUf37GR.js → otpInput-D3L3QhnR.js} +24 -17
  185. package/dist/{page-BGUJaLaG.js → page-U6jZ7BBI.js} +85 -58
  186. package/dist/{incode-logo-BBYHyycP.js → pageUiConfig-Qf6ItVv9.js} +28 -4
  187. package/dist/{passport-horizontal-hint-DgNc6F0-.js → passport-horizontal-hint-Ddsh6fUS.js} +1 -1
  188. package/dist/{passport-vertical-hint-B-toVsfT.js → passport-vertical-hint-Dukxq6-T.js} +1 -1
  189. package/dist/{passwordInputComposed-Cd-3kyua.js → passwordInputComposed-CW_1DcB8.js} +5 -5
  190. package/dist/{pdf-BKHLi5Ac.js → pdf-Bd5QplFS.js} +2 -17
  191. package/dist/{pdfViewer-EDgSzrdc.js → pdfViewer-BrqSEtbr.js} +11 -14
  192. package/dist/pdfViewer-rDnnHzmw.js +2 -0
  193. package/dist/{permissions-Vh-QG2Tj.js → permissions-KUDhffd9.js} +36 -23
  194. package/dist/phone/phone.es.js +16 -12
  195. package/dist/{phoneInputComposed-wZaDiedP.js → phoneInputComposed-DlJMTavK.js} +49 -12
  196. package/dist/{pl-nEtI_VZQ.js → pl-BSMcCWS-.js} +164 -868
  197. package/dist/preloadableLazy-C8_OYaTC.js +37 -0
  198. package/dist/{processing-SzW6Mfrg.js → processing-B5EH7yNg.js} +2 -2
  199. package/dist/{progressBar-KEnpi8uj.js → progressBar-CSpS29pV.js} +2 -2
  200. package/dist/{pt-EmaaUJGm.js → pt-BNFC2quK.js} +165 -869
  201. package/dist/{pt-BR-BkLAWIbx.js → pt-BR-bH8DC2gH.js} +165 -869
  202. package/dist/{pt-PT-Py_4_Z05.js → pt-PT-B8PXmgwU.js} +165 -869
  203. package/dist/qe-signature/qe-signature.es.js +4 -4
  204. package/dist/{radioGroupComposed-CRr_78He.js → radioGroupComposed-CW8ElYSR.js} +4 -4
  205. package/dist/radioGroupComposed-flIYNffL.js +1 -0
  206. package/dist/realtimeFeedbackConfig-tBX94SOm.js +16 -0
  207. package/dist/redirect-to-mobile/redirect-to-mobile.es.js +51 -50
  208. package/dist/redirect-to-mobile/styles.css +1 -1
  209. package/dist/redirect-to-mobile/styles.css.js +1 -1
  210. package/dist/{registerIncodeElement-D_cn4dSI.js → registerIncodeElement-oiLvm6xq.js} +1 -1
  211. package/dist/{reload-icon-elAFo9-k.js → reload-icon-FD2e9Wet.js} +1 -1
  212. package/dist/{resendTimer-EhLnxeID.js → resendTimer-D1H3gwkI.js} +2 -2
  213. package/dist/richText-sUdTiRDE.js +1761 -0
  214. package/dist/{ro-BKmZhZl1.js → ro-DnN8QNYa.js} +165 -869
  215. package/dist/{ru-BYQKvZtn.js → ru-DAwUFXHq.js} +165 -869
  216. package/dist/{ru-RU-BdhCs3uF.js → ru-RU-Coxt0VCU.js} +164 -868
  217. package/dist/{sanitizeSvg-BC-qLUgS.js → sanitizeSvg-OdNh1mqY.js} +1 -1
  218. package/dist/selfie/selfie.es.js +36 -14
  219. package/dist/selfie/styles.css +1 -1
  220. package/dist/selfie/styles.css.js +1 -1
  221. package/dist/signature/signature.es.js +18 -13
  222. package/dist/{sk-CZipa19k.js → sk-AB8sSlNw.js} +166 -870
  223. package/dist/{sl-_sx3gvEv.js → sl-6Dfzfi7s.js} +165 -869
  224. package/dist/{smsTabContent-DHuEgl3E.js → smsTabContent-CBEKgzFv.js} +32 -23
  225. package/dist/{so-D3T7YyfC.js → so-X5BdrDvV.js} +165 -869
  226. package/dist/spacer-Jaru_3sb.js +82 -0
  227. package/dist/spinner-51btbot0.js +407 -0
  228. package/dist/{sr-D0lglPAd.js → sr-JHjMcbGs.js} +164 -868
  229. package/dist/{sr-Latn-Dy2rgSEv.js → sr-Latn-DgT7eTG2.js} +171 -875
  230. package/dist/sr-YU-BBhB_G63.js +5 -0
  231. package/dist/{sv-SE-VsDd4VP5.js → sv-SE-CvX8mC8T.js} +164 -868
  232. package/dist/{sw-D2VfTj6a.js → sw-CN0TdnY4.js} +165 -869
  233. package/dist/{th-BzmKSnbD.js → th-BmFntKib.js} +165 -869
  234. package/dist/{th-TH-BU_NqN97.js → th-TH-CWr4z3JK.js} +165 -869
  235. package/dist/themes/dark.css +1 -1
  236. package/dist/themes/light.css +1 -1
  237. package/dist/{tl-PH-BJJNA9rs.js → tl-PH-BRIbtBRN.js} +165 -869
  238. package/dist/{tl-GXkKKnzb.js → tl-rzkk5P_n.js} +165 -869
  239. package/dist/{tr-C1MJnwIJ.js → tr-DKuVBwqW.js} +166 -870
  240. package/dist/{transitionSpinner-Bkjw-WAJ.js → transitionSpinner-Di0XBAix.js} +5 -4
  241. package/dist/tutorial-C9psDR2i.js +28 -0
  242. package/dist/types/ae-signature.d.ts +10 -1
  243. package/dist/types/antifraud.d.ts +10 -1
  244. package/dist/types/authentication.d.ts +10 -1
  245. package/dist/types/certificate-issuance.d.ts +10 -1
  246. package/dist/types/consent.d.ts +10 -1
  247. package/dist/types/cross-document-data-match.d.ts +10 -1
  248. package/dist/types/curp-validation.d.ts +10 -1
  249. package/dist/types/document-capture.d.ts +10 -1
  250. package/dist/types/dynamic-forms.d.ts +10 -1
  251. package/dist/types/ekyb.d.ts +10 -1
  252. package/dist/types/ekyc.d.ts +10 -1
  253. package/dist/types/electronic-signature.d.ts +10 -1
  254. package/dist/types/email.d.ts +10 -1
  255. package/dist/types/extensibility.d.ts +147 -21
  256. package/dist/types/face-match.d.ts +10 -1
  257. package/dist/types/field-comparison.d.ts +10 -1
  258. package/dist/types/fiscal-qr.d.ts +10 -1
  259. package/dist/types/flow.d.ts +22 -2
  260. package/dist/types/geolocation.d.ts +10 -1
  261. package/dist/types/government-validation.d.ts +10 -1
  262. package/dist/types/id-selfie-flow.d.ts +10 -1
  263. package/dist/types/id-verification.d.ts +10 -1
  264. package/dist/types/id.d.ts +10 -1
  265. package/dist/types/identity-reuse.d.ts +10 -1
  266. package/dist/types/index.d.ts +92 -10
  267. package/dist/types/kyb-checks.d.ts +209 -0
  268. package/dist/types/phone.d.ts +10 -1
  269. package/dist/types/qe-signature.d.ts +10 -1
  270. package/dist/types/redirect-to-mobile.d.ts +1 -1
  271. package/dist/types/selfie.d.ts +10 -1
  272. package/dist/types/signature.d.ts +10 -1
  273. package/dist/types/video-selfie.d.ts +1 -1
  274. package/dist/types/watchlist.d.ts +10 -1
  275. package/dist/types/workflow.d.ts +10 -1
  276. package/dist/{typography-DKXgPZsU.js → typography-CiGhKJGx.js} +2 -2
  277. package/dist/uiConfig-BJAuZQWc.js +77 -0
  278. package/dist/{uk-DFL26I5l.js → uk-CXjqq4lX.js} +164 -868
  279. package/dist/{uk-UA-3o9Xbam-.js → uk-UA-BIE9WByU.js} +165 -869
  280. package/dist/{ur-DXJAfyQA.js → ur-vNGesC3r.js} +165 -869
  281. package/dist/useCameraPreview-Bd7AYE9h.js +93 -0
  282. package/dist/useCaptureHelpButton-Dj-jESrS.js +43 -0
  283. package/dist/useIsDarkTheme-Bu9CvKxW.js +27 -0
  284. package/dist/{useModuleLoader-BdIp6TNQ.js → useModuleLoader-BBCNkJmc.js} +2 -2
  285. package/dist/{uz-BXvj8vlH.js → uz-Gmw1XRgv.js} +165 -869
  286. package/dist/{vendor-preact-C0jX1Cbq.js → vendor-preact-DHGqBGMH.js} +19 -1
  287. package/dist/{verificationResult-BVrKFRMf.js → verificationResult-Clxdxm_s.js} +18 -10
  288. package/dist/{vi-DRfsxu1a.js → vi-DTxxRUw0.js} +165 -869
  289. package/dist/video-selfie/styles.css +1 -1
  290. package/dist/video-selfie/styles.css.js +1 -1
  291. package/dist/video-selfie/video-selfie.es.js +103 -67
  292. package/dist/watchlist/watchlist.es.js +8 -7
  293. package/dist/{watchlistForBusiness-CyAmoIrv.js → watchlistForBusiness-CpFp2EYX.js} +44 -14
  294. package/dist/{withEndScreenTexts-MHocOODe.js → withEndScreenTexts-Bd3mof3s.js} +225 -45
  295. package/dist/workflow/styles.css +1 -1
  296. package/dist/workflow/workflow.es.js +32 -21
  297. package/dist/{zh-CN-DMfj1_Nh.js → zh-CN-aB48G_R1.js} +164 -868
  298. package/dist/{zh-Ct8GKGhw.js → zh-DjtyfO4e.js} +164 -868
  299. package/dist/{zh-HANT-NZFdeKuE.js → zh-HANT-8p8SH8C3.js} +165 -869
  300. package/dist/{zh-TW-8wkrOHM8.js → zh-TW-CCsz9gKq.js} +165 -869
  301. package/package.json +35 -10
  302. package/dist/browser-ponyfill-DT11p-Ob.js +0 -441
  303. package/dist/cameraOverlay-CBTjtbNP.js +0 -2
  304. package/dist/connectionError-DX3wd4vm.js +0 -45
  305. package/dist/dateInputComposed-BzW0cv1o.js +0 -1
  306. package/dist/deviceWallet-CImevqFB.js +0 -66
  307. package/dist/documentCapture-CmWd-wNL.js +0 -2
  308. package/dist/dropdownComposed-B76j7pz9.js +0 -1
  309. package/dist/ekybModule-Bshc_ANM.js +0 -2
  310. package/dist/ekycModule-MmJYwp1l.js +0 -2
  311. package/dist/es-419-DlCbbvcc.js +0 -3145
  312. package/dist/esm-15CISqPe.js +0 -430
  313. package/dist/faceMatch-BVSCpwmA.js +0 -2
  314. package/dist/fieldComparison-nFj9pSeZ.js +0 -2
  315. package/dist/flipAnimation-DY9K2zel.js +0 -3048
  316. package/dist/incodeModule-D6oey1Mb.js +0 -68
  317. package/dist/inputComposed-45HxIMO0.js +0 -1
  318. package/dist/pdfViewer-CFkuHOV4.js +0 -2
  319. package/dist/radioGroupComposed-DJ71F9KK.js +0 -1
  320. package/dist/richText-aCnLd3j2.js +0 -1549
  321. package/dist/spacer-BvrtrwSF.js +0 -741
  322. package/dist/spinner-CkN8sW0d.js +0 -88
  323. package/dist/sr-YU-UEhyvXZ-.js +0 -3149
  324. package/dist/statusPage-3zRxvkSE.js +0 -36
  325. package/dist/uiConfig-BA7U_zLr.js +0 -2589
  326. package/dist/useCaptureHelpButton-CSG3fO48.js +0 -86
  327. package/dist/useCoverMedia-VLw3OYN_.js +0 -149
  328. /package/dist/{aligndevicelottie-BARt-rhe.js → aligndevicelottie-BEKzL4SB.js} +0 -0
  329. /package/dist/{back-tutorial-CZrMmj1_.js → back-tutorial-B9W63fa-.js} +0 -0
  330. /package/dist/{backdevicelottie-CIM3ekd8.js → backdevicelottie-DsN8QBV3.js} +0 -0
  331. /package/dist/{blurdevicelottie-BRyXfLB6.js → blurdevicelottie-DkV7Kwo4.js} +0 -0
  332. /package/dist/{countryDefinitions-BO9OSKQO.js → countryDefinitions-RBVGM1D_.js} +0 -0
  333. /package/dist/{defineProperty-CjeJoXkx.js → defineProperty-E9wRIIo9.js} +0 -0
  334. /package/dist/{flip-animation-BU5LNKYx.js → flip-animation-DJVnWWL5.js} +0 -0
  335. /package/dist/{frontdevicelottie-arpyu_Fz.js → frontdevicelottie-DiW1Wmya.js} +0 -0
  336. /package/dist/{glaredevicelottie-TwTFxe7h.js → glaredevicelottie-CK-fnX_s.js} +0 -0
  337. /package/dist/{id-laser-h-Dr-hBxrq.js → id-laser-h-6Am_cjM8.js} +0 -0
  338. /package/dist/{id-laser-v-D_r0QNY8.js → id-laser-v-DXoF3flH.js} +0 -0
  339. /package/dist/{id-tutorial-DM9Pkfs-.js → id-tutorial-DkKH3eTE.js} +0 -0
  340. /package/dist/{lottie_light-aMg9Q9iO.js → lottie_light-B819EhaL.js} +0 -0
  341. /package/dist/{passport-tutorial-CKZZuDf_.js → passport-tutorial-D3Fpk-Tj.js} +0 -0
  342. /package/dist/{pdf.worker.min-BM1b2w9V.js → pdf.worker.min-DzBNMoKS.js} +0 -0
  343. /package/dist/{policyUrls-B3M8nLRh.js → policyUrls-Benduf-R.js} +0 -0
  344. /package/dist/{purify.es-0fCPkEV1.js → purify.es-CSPoFViI.js} +0 -0
  345. /package/dist/{selfieTutorial-Dz6lDFMn.js → selfieTutorial-DnsRD1Z9.js} +0 -0
@@ -1,10 +1,11 @@
1
- import { d as getLanguageEmoji, f as supportedLanguages, o as useTranslation, r as useUiConfig } from "./uiConfig-BA7U_zLr.js";
2
- import { _ as y, c as A, f as d, u as T, v as u } from "./vendor-preact-C0jX1Cbq.js";
3
- import { t as Spacer } from "./spacer-BvrtrwSF.js";
4
- import { x as Button } from "./icons-OQDvn5r2.js";
5
- import { n as Modal } from "./incode-logo-BBYHyycP.js";
6
- import { t as DropdownComposed } from "./dropdownComposed-qb9GgX5X.js";
7
- import "./dropdownComposed-B76j7pz9.js";
1
+ import { d as supportedLanguages, i as useTranslation, u as getLanguageEmoji } from "./i18n-Dp014ljG.js";
2
+ import { b as u, d as T, l as A, m as d, y } from "./vendor-preact-DHGqBGMH.js";
3
+ import { i as useUiConfig } from "./uiConfig-BJAuZQWc.js";
4
+ import { x as PrizmaButton } from "./icons-c-hFaG4L.js";
5
+ import { n as cn, t as Spacer } from "./spacer-Jaru_3sb.js";
6
+ import { n as incode_logo_default, r as Modal, t as usePageUiConfig } from "./pageUiConfig-Qf6ItVv9.js";
7
+ import { t as DropdownComposed } from "./dropdownComposed-x3ewHxbT.js";
8
+ import "./dropdownComposed-C9sLQE6i.js";
8
9
  //#region src/shared/homeScreen/language.ts
9
10
  function capitalizeLabel(text, locale) {
10
11
  const [firstCharacter, ...rest] = Array.from(text);
@@ -128,7 +129,10 @@ function Settings({ onClose }) {
128
129
  }),
129
130
  /* @__PURE__ */ u("div", {
130
131
  class: "IncodeHomeSettingsFooter",
131
- children: /* @__PURE__ */ u(Button, {
132
+ children: /* @__PURE__ */ u(PrizmaButton, {
133
+ variant: "primary",
134
+ size: "L",
135
+ className: "IncodeButton IncodeButtonPrimary IncodeButtonL",
132
136
  onClick: onClose,
133
137
  "data-testid": "home-settings-done-button",
134
138
  children: t("settings.done")
@@ -178,11 +182,16 @@ function SettingsIcon() {
178
182
  //#region src/shared/homeScreen/homeScreen.tsx
179
183
  function HomeScreen({ onContinue, isContinueLoading }) {
180
184
  const { t } = useTranslation();
181
- const { logoSrc, subtitle } = useUiConfig();
185
+ const { subtitle } = useUiConfig();
186
+ const { logoSrc: displayLogo } = usePageUiConfig({
187
+ hideHeader: void 0,
188
+ hideFooterBranding: void 0,
189
+ logo: void 0,
190
+ defaultLogoSrc: incode_logo_default
191
+ });
182
192
  const { selectedMainLanguageLabel, selectedMainLanguageEmoji } = useLanguage();
183
193
  const subtitleRef = A(null);
184
194
  const startButtonRef = A(null);
185
- const displayLogo = logoSrc || "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='76'%20height='20'%20fill='none'%20viewBox='0%200%2076%2020'%3e%3cpath%20fill='%23006aff'%20fill-rule='evenodd'%20d='M40.169%206.018c2.062%200%203.624.579%204.676%201.742q1.57%201.739%201.568%204.998.001%203.259-1.619%205.036c-1.084%201.188-2.621%201.78-4.6%201.78-2.046%200-3.597-.584-4.64-1.755l-.127-.149q-1.43-1.741-1.429-4.912c0-4.471%202.072-6.74%206.17-6.74m28.944%200c2.001%200%203.482.651%204.424%201.955q1.337%201.853%201.37%205.09l-.001.461h-8.791c.102%201.11.445%201.95%201.026%202.53.608.608%201.478.914%202.623.914q1.132%200%202.157-.282a8%208%200%200%200%201.814-.721l.246-.138v2.839l-.099.043q-1.982.865-4.544.864c-1.93%200-3.453-.587-4.561-1.764-1.107-1.174-1.659-2.837-1.659-4.976q-.002-3.283%201.568-5.048c1.05-1.179%202.53-1.767%204.427-1.767m-8.715-4.95v15.315c0%20.717-.298%201.326-.886%201.815q-.855.711-2.14%201.046-1.269.33-2.619.33c-1.823%200-3.33-.518-4.512-1.554-1.193-1.045-1.782-2.852-1.782-5.413q-.001-3.08%201.516-4.833c1.019-1.172%202.523-1.756%204.503-1.756q.695%200%201.596.176.762.152%201.39.429V1.067zM27.91%206.041q2.058%200%203.915.762l.103.042v2.712l-.23-.097q-1.873-.789-3.413-.788c-1.276%200-2.218.315-2.834.939-.615.623-.928%201.628-.928%203.021%200%201.463.306%202.52.907%203.176.598.653%201.571.983%202.93.983q1.665%200%203.355-.808l.237-.113v2.72l-.098.043a9.5%209.5%200%200%201-3.919.814q-2.581%200-4.35-1.42l-.174-.145-.132-.12c-1.128-1.056-1.689-2.704-1.689-4.93%200-2.377.595-4.11%201.794-5.186%201.19-1.07%202.702-1.605%204.526-1.605m-23.8.35L4.135%2019.2H1.153V6.393zm9.466-.35c1.788%200%203.118.377%203.987%201.142q1.308%201.156%201.307%203.55v8.464h-2.958v-8.114c0-1.655-.914-2.46-2.812-2.46q-1.188%200-2.288.336l-.273.089v10.15H7.581V7.405l.09-.046q1.146-.584%202.78-.952l.36-.077a14%2014%200%200%201%202.766-.289m26.592%202.506c-1.168%200-1.988.35-2.48%201.043q-.755%201.065-.757%203.167.002%202.102.782%203.192c.508.711%201.32%201.068%202.455%201.068%202.2%200%203.287-1.393%203.287-4.26%200-1.433-.267-2.495-.792-3.187-.517-.68-1.344-1.023-2.495-1.023m14.685.05c-2.27%200-3.388%201.33-3.388%204.06q.002%202.054.773%203.195c.499.742%201.38%201.115%202.665%201.115q1.128%200%201.884-.265c.428-.15.64-.325.672-.517l.005-.053V9.254l-.187-.098a5%205%200%200%200-1.027-.375%205.7%205.7%200%200%200-1.398-.183m14.184-.1c-.846%200-1.497.22-1.964.656q-.617.574-.864%201.896l-.033.192h5.701l-.03-.197q-.207-1.254-.802-1.859c-.45-.456-1.116-.687-2.008-.687M4.21%201.943v2.706H1.077V1.942z'%20clip-rule='evenodd'/%3e%3c/svg%3e";
186
195
  const [settingsOpen, setSettingsOpen] = d(false);
187
196
  y(() => {
188
197
  subtitleRef.current?.focus();
@@ -237,13 +246,15 @@ function HomeScreen({ onContinue, isContinueLoading }) {
237
246
  children: subtitle
238
247
  }) : null]
239
248
  }),
240
- /* @__PURE__ */ u(Button, {
249
+ /* @__PURE__ */ u(PrizmaButton, {
250
+ variant: "primary",
251
+ size: "L",
241
252
  ref: startButtonRef,
242
253
  onClick: () => {
243
254
  onContinue();
244
255
  },
245
- isLoading: isContinueLoading,
246
- class: "IncodeHomeStartButton",
256
+ loading: isContinueLoading,
257
+ className: cn("IncodeButton IncodeButtonPrimary IncodeButtonL IncodeHomeStartButton", isContinueLoading && "IncodeButtonLoading"),
247
258
  "data-testid": "home-start-button",
248
259
  children: t("home.start")
249
260
  })
@@ -1,36 +1,86 @@
1
- import { i as useTranslationWithFallback, o as useTranslation, r as useUiConfig } from "./uiConfig-BA7U_zLr.js";
2
- import { S as k, _ as y, b as Q, c as A, d as _, f as d, g as x, h as q, m as h, n as $, o as gn, r as C, u as T, v as u } from "./vendor-preact-C0jX1Cbq.js";
3
- import { a as getStandaloneSetupPolicy, n as preloadDashboardTheme, t as getDashboardTheme } from "./dashboardTheme-MVQerNVn.js";
4
- import { d as cn, t as Spacer, u as useInstanceOverrides } from "./spacer-BvrtrwSF.js";
5
- import { a as TypographyH5, i as TypographyH4 } from "./typography-DKXgPZsU.js";
6
- import { t as TransitionSpinner } from "./transitionSpinner-Bkjw-WAJ.js";
7
- import { b as ErrorIcon, r as SuccessIcon, x as Button } from "./icons-OQDvn5r2.js";
8
- import { t as Page } from "./page-BGUJaLaG.js";
9
- import { t as AutoFocusTitle } from "./autoFocusTitle-BQltp_Nn.js";
10
- import { onSessionExpired } from "@incodetech/core/session";
11
- import { ScreenOrientationProvider, createScreenOrientationObserver, getDeviceClass, isApplePlatform, isIPad, isSupportedBrowser } from "@incodetech/core/device";
12
- import { preloadDashboardFlow, resolveDashboardModuleConfig } from "@incodetech/core/flow";
1
+ import { i as useTranslation } from "./i18n-Dp014ljG.js";
2
+ import { S as Q, _ as q, b as u, d as T, f as _, g as h, l as A, m as d, r as C, s as gn, v as x, y } from "./vendor-preact-DHGqBGMH.js";
3
+ import { a as getStandaloneSetupPolicy, n as preloadDashboardTheme, t as getDashboardTheme } from "./dashboardTheme-DtXsx9IK.js";
4
+ import { u as ErrorIcon, x as PrizmaButton } from "./icons-c-hFaG4L.js";
5
+ import { a as ModuleCancelProvider, t as Page } from "./page-U6jZ7BBI.js";
6
+ import { t as ConnectionError } from "./connectionError-DexRpKWs.js";
7
+ import { t as TransitionSpinner } from "./transitionSpinner-Di0XBAix.js";
8
+ import { isConnectivityLost, onConnectivityChange, onSessionExpired } from "@incodetech/core/session";
9
+ import { ScreenOrientationProvider, createScreenOrientationObserver, getDeviceClass, isSupportedBrowser } from "@incodetech/core/device";
10
+ import { resolveDashboardModuleConfig } from "@incodetech/core/flow";
13
11
  import "@incodetech/core/events";
14
12
  import { getExperiment, getFeatureGate, getFeatureManagementVersion, getFeatureParameterStore, getIsFeatureManagementInitialized, getLayer, subscribeFeatureManagement, updateFeatureManagementUser } from "@incodetech/core/feature-management";
13
+ //#region src/shared/webComponent/useModuleCancel.ts
14
+ var USER_CANCELLED = "USER_CANCELLED";
15
+ /** The user closed the offline screen, or the step cannot resume after it. */
16
+ var NO_INTERNET_CONNECTION = "NO_INTERNET_CONNECTION";
17
+ /**
18
+ * Quit handling for a module root: stop rendering the module (its managers
19
+ * release the camera on unmount), then tell the host once.
20
+ */
21
+ function useModuleCancel(onError) {
22
+ const [cancelled, setCancelled] = d(false);
23
+ const mounted = A(false);
24
+ const onErrorRef = A(onError);
25
+ onErrorRef.current = onError;
26
+ _(() => {
27
+ mounted.current = true;
28
+ return () => {
29
+ mounted.current = false;
30
+ };
31
+ }, []);
32
+ _(() => {
33
+ if (!cancelled) return;
34
+ queueMicrotask(() => {
35
+ if (mounted.current) onErrorRef.current?.(void 0, void 0, USER_CANCELLED);
36
+ });
37
+ }, [cancelled]);
38
+ return {
39
+ cancelled,
40
+ requestCancel: q(() => setCancelled(true), [])
41
+ };
42
+ }
43
+ //#endregion
15
44
  //#region src/shared/session/withSessionExpiry.tsx
16
45
  var ExpiryOwner = Q(null);
46
+ /** True below a root that lost connectivity. */
47
+ var Offline = Q(false);
17
48
  function useSessionExpiryOwner() {
18
49
  return x(ExpiryOwner);
19
50
  }
20
- /** The outermost mounted SDK surface owns teardown and host notification. */
21
- function withSessionExpiry(Component) {
51
+ /**
52
+ * The outermost mounted SDK surface owns teardown, the offline screen, and
53
+ * host notification. While offline, the current step unmounts (its managers
54
+ * stop) and mounts again from its first screen on recovery.
55
+ * `keepMountedOffline` keeps the root's own child mounted but hidden, so an
56
+ * orchestrator such as `<incode-flow>` keeps its position; its terminal
57
+ * callback while offline is held and delivered on recovery.
58
+ */
59
+ function withSessionExpiry(Component, { keepMountedOffline = false } = {}) {
22
60
  return function SessionExpiryBoundary(props) {
23
61
  const parent = x(ExpiryOwner);
24
- const owner = A({ expired: false }).current;
62
+ const parentOffline = x(Offline);
63
+ const owner = A({
64
+ expired: false,
65
+ offline: false
66
+ }).current;
25
67
  const scope = parent ?? owner;
26
68
  const container = A(null);
27
69
  const mounted = A(false);
28
- const onError = A(props.onError);
29
- onError.current = props.onError;
70
+ const latest = A(props);
71
+ latest.current = props;
30
72
  const [error, setError] = d();
73
+ const [connection, setConnection] = d(() => {
74
+ if (parent || !isConnectivityLost()) return "online";
75
+ owner.offline = true;
76
+ return "offline";
77
+ });
78
+ const closed = connection === "closed";
79
+ const held = A();
31
80
  _(() => {
32
81
  mounted.current = true;
33
82
  let unsubscribe;
83
+ let unsubscribeConnectivity;
34
84
  const subscribe = () => {
35
85
  unsubscribe = onSessionExpired((expired) => {
36
86
  const root = container.current;
@@ -43,46 +93,120 @@ function withSessionExpiry(Component) {
43
93
  setError(expired);
44
94
  });
45
95
  };
46
- if (!parent) subscribe();
96
+ if (!parent && !closed) {
97
+ subscribe();
98
+ unsubscribeConnectivity = onConnectivityChange((lost) => {
99
+ if (owner.expired) return;
100
+ if (lost) {
101
+ owner.offline = true;
102
+ setConnection("offline");
103
+ return;
104
+ }
105
+ if (latest.current.manager !== void 0) {
106
+ setConnection("closed");
107
+ return;
108
+ }
109
+ owner.offline = false;
110
+ setConnection("online");
111
+ const deliver = held.current;
112
+ held.current = void 0;
113
+ if (deliver) queueMicrotask(() => {
114
+ if (mounted.current) deliver();
115
+ });
116
+ });
117
+ }
47
118
  return () => {
48
119
  mounted.current = false;
49
120
  unsubscribe?.();
121
+ unsubscribeConnectivity?.();
50
122
  };
51
- }, [owner, parent]);
123
+ }, [
124
+ owner,
125
+ parent,
126
+ closed
127
+ ]);
128
+ _(() => {
129
+ if (!closed) return;
130
+ queueMicrotask(() => {
131
+ if (mounted.current) latest.current.onError?.(void 0, void 0, NO_INTERNET_CONNECTION);
132
+ });
133
+ }, [closed]);
52
134
  _(() => {
53
135
  if (!error) return;
54
136
  queueMicrotask(() => {
55
137
  if (!mounted.current || !container.current?.isConnected) return;
56
138
  try {
57
- onError.current?.(error.message, error.statusCode, error.code, error);
139
+ latest.current.onError?.(error.message, error.statusCode, error.code, error);
58
140
  } catch {}
59
141
  });
60
142
  }, [error]);
61
- const child = error ? null : /* @__PURE__ */ u(Component, {
143
+ const hasError = props.onError !== void 0 || keepMountedOffline && !parent;
144
+ const hasFinish = props.onFinish !== void 0;
145
+ const hasContinue = props.onContinue !== void 0;
146
+ const callbacks = T(() => {
147
+ const open = () => mounted.current && !scope.expired && !scope.offline;
148
+ const kept = () => mounted.current && keepMountedOffline && !parent && owner.offline && !owner.expired;
149
+ return {
150
+ onError: hasError ? (...args) => {
151
+ if (open()) latest.current.onError?.(...args);
152
+ else if (kept()) held.current ??= () => latest.current.onError?.(...args);
153
+ } : void 0,
154
+ onFinish: hasFinish ? (...args) => {
155
+ if (open()) latest.current.onFinish?.(...args);
156
+ else if (kept()) held.current ??= () => latest.current.onFinish?.(...args);
157
+ } : void 0,
158
+ onContinue: hasContinue ? () => {
159
+ if (open()) latest.current.onContinue?.();
160
+ } : void 0
161
+ };
162
+ }, [
163
+ hasError,
164
+ hasFinish,
165
+ hasContinue,
166
+ scope,
167
+ owner,
168
+ parent
169
+ ]);
170
+ const offline = connection !== "online";
171
+ const child = error || offline && !keepMountedOffline ? null : /* @__PURE__ */ u(Component, {
62
172
  ...props,
63
- onError: props.onError ? (...args) => {
64
- if (mounted.current && !scope.expired) props.onError?.(...args);
65
- } : void 0,
66
- onFinish: props.onFinish ? (...args) => {
67
- if (mounted.current && !scope.expired) props.onFinish?.(...args);
68
- } : void 0,
69
- onContinue: props.onContinue ? () => {
70
- if (mounted.current && !scope.expired) props.onContinue?.();
71
- } : void 0
173
+ onError: callbacks.onError,
174
+ onFinish: callbacks.onFinish,
175
+ onContinue: callbacks.onContinue
72
176
  });
73
- if (parent) return child;
177
+ if (parent) return parentOffline ? null : child;
178
+ if (closed) return null;
74
179
  return /* @__PURE__ */ u(ExpiryOwner.Provider, {
75
180
  value: owner,
76
- children: /* @__PURE__ */ u("div", {
77
- class: "IncodeSessionBoundary",
78
- ref: container,
79
- children: child
80
- })
181
+ children: [/* @__PURE__ */ u(Offline.Provider, {
182
+ value: offline,
183
+ children: /* @__PURE__ */ u("div", {
184
+ class: offline ? "IncodeSessionBoundary IncodeSessionBoundary--offline" : "IncodeSessionBoundary",
185
+ ref: container,
186
+ children: child
187
+ })
188
+ }), offline && !error ? /* @__PURE__ */ u(ModuleCancelProvider, {
189
+ value: void 0,
190
+ children: /* @__PURE__ */ u("div", {
191
+ class: "IncodeComponent",
192
+ children: /* @__PURE__ */ u(ConnectionError, { onClose: () => setConnection("closed") })
193
+ })
194
+ }) : null]
81
195
  });
82
196
  };
83
197
  }
84
198
  //#endregion
85
199
  //#region src/hooks/useManager.ts
200
+ /** `getState()` maps a fresh object per call, so compare one level deep. */
201
+ function isShallowEqual(a, b) {
202
+ if (Object.is(a, b)) return true;
203
+ if (typeof a !== "object" || typeof b !== "object" || a === null || b === null) return false;
204
+ const aRecord = a;
205
+ const bRecord = b;
206
+ const aKeys = Object.keys(aRecord);
207
+ if (aKeys.length !== Object.keys(bRecord).length) return false;
208
+ return aKeys.every((key) => key in bRecord && Object.is(aRecord[key], bRecord[key]));
209
+ }
86
210
  /**
87
211
  * Hook for subscribing to manager state updates
88
212
  * @param factory - Factory function that creates the manager instance
@@ -96,10 +220,14 @@ function useManager(factory, options = {}) {
96
220
  const [state, setState] = d(() => manager.getState());
97
221
  y(() => {
98
222
  const unsubscribe = manager.subscribe(setState);
223
+ setState((previous) => {
224
+ const current = manager.getState();
225
+ return isShallowEqual(previous, current) ? previous : current;
226
+ });
99
227
  if (manageLifecycle && autoLoad && manager.load) manager.load();
100
228
  return () => {
101
229
  unsubscribe();
102
- if (manageLifecycle || expiryOwner?.expired) manager.stop?.();
230
+ if (manageLifecycle || expiryOwner?.expired || expiryOwner?.offline) manager.stop?.();
103
231
  };
104
232
  }, [
105
233
  manager,
@@ -513,6 +641,24 @@ function useFeatureManagement(kind, name, options) {
513
641
  };
514
642
  }
515
643
  //#endregion
644
+ //#region src/shared/terminalErrorPage/terminalErrorPageConstants.ts
645
+ var COMMON_UNEXPECTED_ERROR = "common.unexpectedError";
646
+ var TERMINAL_ERROR_TRANSLATION_KEYS = {
647
+ DEEPSIGHT_INITIALIZATION_FAILED: COMMON_UNEXPECTED_ERROR,
648
+ COMBINED_CONSENT_LOAD_FAILED: COMMON_UNEXPECTED_ERROR,
649
+ REGULATORY_CONSENT_LOAD_FAILED: COMMON_UNEXPECTED_ERROR,
650
+ VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED: "videoSelfie.error.maxVideoLengthReached"
651
+ };
652
+ //#endregion
653
+ //#region src/shared/terminalErrorPage/terminalErrorPageHelpers.ts
654
+ function hasTerminalErrorTranslation(code) {
655
+ return Object.prototype.hasOwnProperty.call(TERMINAL_ERROR_TRANSLATION_KEYS, code);
656
+ }
657
+ function getTerminalErrorMessage(t, message, moduleErrorCode) {
658
+ if (moduleErrorCode && hasTerminalErrorTranslation(moduleErrorCode)) return t(TERMINAL_ERROR_TRANSLATION_KEYS[moduleErrorCode]);
659
+ return message ?? t("common.unexpectedError");
660
+ }
661
+ //#endregion
516
662
  //#region src/shared/terminalErrorPage/terminalErrorPage.tsx
517
663
  /**
518
664
  * Terminal error screen shown by `<incode-flow>` / `<incode-workflow>` when
@@ -521,10 +667,8 @@ function useFeatureManagement(kind, name, options) {
521
667
  * and during the flow/workflow lifecycle (e.g. `/omni/workflow/process/node`,
522
668
  * `/omni/finish-status`, or a child module's terminal error).
523
669
  *
524
- * When the error carries a backend-provided `error`/`message` (surfaced via
525
- * `IncodeApiError.message` from core's service wrappers), it's rendered
526
- * verbatim as the subtitle. Generic transport failures fall back to a
527
- * translated default.
670
+ * Backend-provided messages are rendered verbatim. Known module errors use
671
+ * localized copy; generic transport failures fall back to a translated default.
528
672
  *
529
673
  * Layout: `Page` is used for the Incode logo + optional "Verified by Incode"
530
674
  * footer only — the title/subtitle/titleTopSlot slots are deliberately *not*
@@ -535,7 +679,7 @@ function useFeatureManagement(kind, name, options) {
535
679
  * which delegates to `onRetry`; non-retryable errors leave recovery to the
536
680
  * host.
537
681
  */
538
- var TerminalErrorPage = ({ message, onRetry, retryable = true }) => {
682
+ var TerminalErrorPage = ({ message, moduleErrorCode, onRetry, retryable = true }) => {
539
683
  const { t } = useTranslation();
540
684
  const titleRef = A(null);
541
685
  y(() => {
@@ -565,12 +709,15 @@ var TerminalErrorPage = ({ message, onRetry, retryable = true }) => {
565
709
  }),
566
710
  /* @__PURE__ */ u("p", {
567
711
  class: "IncodeTerminalErrorPageMessage",
568
- children: message ?? t("common.unexpectedError")
712
+ children: getTerminalErrorMessage(t, message, moduleErrorCode)
569
713
  })
570
714
  ]
571
715
  }), retryable ? /* @__PURE__ */ u("div", {
572
716
  class: "IncodeTerminalErrorPageFooter",
573
- children: /* @__PURE__ */ u(Button, {
717
+ children: /* @__PURE__ */ u(PrizmaButton, {
718
+ variant: "primary",
719
+ size: "L",
720
+ className: "IncodeButton IncodeButtonPrimary IncodeButtonL",
574
721
  onClick: handleRetry,
575
722
  children: t("common.tryAgain")
576
723
  })
@@ -682,221 +829,4 @@ function withStandaloneModuleBootstrap(Component, moduleKey, options = {}) {
682
829
  });
683
830
  }
684
831
  //#endregion
685
- //#region src/shared/snackbar/snackbar.tsx
686
- var Snackbar = ({ variant = "neutral", children, className, ariaLive = "polite" }) => {
687
- return /* @__PURE__ */ u("div", {
688
- role: "status",
689
- "aria-live": ariaLive,
690
- class: cn("IncodeSnackbar", `IncodeSnackbar--${variant}`, className),
691
- children: /* @__PURE__ */ u("span", {
692
- class: "IncodeSnackbarContent",
693
- children
694
- })
695
- });
696
- };
697
- //#endregion
698
- //#region src/shared/browserNotSupported/browser-not-supported.svg?react
699
- var SvgBrowserNotSupported = (props) => /* @__PURE__ */ u("svg", {
700
- xmlns: "http://www.w3.org/2000/svg",
701
- width: 32,
702
- height: 32,
703
- fill: "none",
704
- viewBox: "0 0 32 32",
705
- ...props,
706
- children: /* @__PURE__ */ u("path", {
707
- fill: "#e71111",
708
- fillRule: "evenodd",
709
- d: "M9.962 3.84c-2.04 0-3.746.726-4.94 2.007C3.833 7.122 3.2 8.896 3.2 10.914v.916h24.319v-.916c0-2.017-.63-3.791-1.817-5.067-1.193-1.28-2.9-2.007-4.944-2.007zM8.05 8.065a.96.96 0 0 0 0 1.92h.07a.96.96 0 0 0 0-1.92zm3.181 0a.96.96 0 1 0 0 1.92h.071a.96.96 0 1 0 0-1.92zm3.183 0a.96.96 0 0 0 0 1.92h.071a.96.96 0 0 0 0-1.92zM3.2 21.085V13.75h24.319v7.335c0 2.017-.63 3.791-1.817 5.067-1.193 1.28-2.9 2.007-4.945 2.007H9.962c-2.045 0-3.752-.726-4.944-2.007C3.83 24.876 3.2 23.102 3.2 21.085m15.365-3.398a.96.96 0 0 1 0 1.358l-1.845 1.844 1.844 1.844a.96.96 0 0 1-1.358 1.358l-1.844-1.844-1.847 1.847a.96.96 0 1 1-1.357-1.358l1.846-1.847-1.847-1.847a.96.96 0 0 1 1.357-1.358l1.848 1.848 1.845-1.845a.96.96 0 0 1 1.358 0",
710
- clipRule: "evenodd"
711
- })
712
- });
713
- //#endregion
714
- //#region src/shared/browserNotSupported/browserNotSupported.tsx
715
- var COPY_SNACKBAR_DURATION_MS = 3e3;
716
- /**
717
- * Full-screen block shown by `IncodeComponent` in place of every module when
718
- * the browser is not one the capture/WASM pipelines are known to work in.
719
- *
720
- * Renders before the translation bundle can be ready, so it uses
721
- * `useTranslationWithFallback` instead of `useTranslation`.
722
- */
723
- var BrowserNotSupported = ({ onContinue }) => {
724
- const { t } = useTranslationWithFallback();
725
- const copyToClipboard = useCopyToClipboard();
726
- const copiedSnackbarTimer = useTimeoutHandle();
727
- const [showCopiedSnackbar, setShowCopiedSnackbar] = d(false);
728
- const shouldSuggestSafari = isApplePlatform();
729
- const handleCopyLink = async () => {
730
- if (!await copyToClipboard(window.location.href)) return;
731
- setShowCopiedSnackbar(true);
732
- copiedSnackbarTimer.schedule(() => setShowCopiedSnackbar(false), COPY_SNACKBAR_DURATION_MS);
733
- };
734
- return /* @__PURE__ */ u(Page, {
735
- hideFooterBranding: true,
736
- hideHeader: true,
737
- className: "IncodeBrowserNotSupported",
738
- children: [showCopiedSnackbar && /* @__PURE__ */ u("div", {
739
- className: "IncodeBrowserNotSupportedSnackbar",
740
- children: /* @__PURE__ */ u(Snackbar, {
741
- variant: "positive",
742
- children: /* @__PURE__ */ u("span", {
743
- className: "IncodeBrowserNotSupportedSnackbarContent",
744
- children: [/* @__PURE__ */ u(SuccessIcon, { size: 32 }), /* @__PURE__ */ u("span", { children: t("unsupportedBrowser.linkCopied") })]
745
- })
746
- })
747
- }), /* @__PURE__ */ u("div", {
748
- className: "IncodeBrowserNotSupportedPageContent",
749
- children: [/* @__PURE__ */ u("div", {
750
- className: "IncodeBrowserNotSupportedPageBody",
751
- children: [
752
- /* @__PURE__ */ u(SvgBrowserNotSupported, {}),
753
- /* @__PURE__ */ u(Spacer, { size: 16 }),
754
- /* @__PURE__ */ u(AutoFocusTitle, { children: t("unsupportedBrowser.title") }),
755
- /* @__PURE__ */ u(Spacer, { size: 12 }),
756
- /* @__PURE__ */ u(TypographyH5, {
757
- className: "IncodeBrowserNotSupportedText",
758
- children: [
759
- t("unsupportedBrowser.betterExperience"),
760
- " ",
761
- shouldSuggestSafari && /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u("span", { children: "Safari" }), ` ${t("unsupportedBrowser.or")} `] }),
762
- /* @__PURE__ */ u("span", { children: "Chrome" })
763
- ]
764
- })
765
- ]
766
- }), /* @__PURE__ */ u("div", {
767
- className: "IncodeBrowserNotSupportedWrapper",
768
- children: [
769
- /* @__PURE__ */ u("div", {
770
- className: "IncodeBrowserNotSupportedLink",
771
- children: /* @__PURE__ */ u(TypographyH4, {
772
- className: "IncodeBrowserNotSupportedLinkText",
773
- children: window.location.href
774
- })
775
- }),
776
- /* @__PURE__ */ u(Button, {
777
- onClick: handleCopyLink,
778
- children: t("unsupportedBrowser.copyLink")
779
- }),
780
- /* @__PURE__ */ u(Button, {
781
- variant: "link",
782
- type: "button",
783
- onClick: onContinue,
784
- children: t("unsupportedBrowser.continueAnyways")
785
- })
786
- ]
787
- })]
788
- })]
789
- });
790
- };
791
- //#endregion
792
- //#region src/shared/icons/rotate-icon.svg
793
- var rotate_icon_default = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='90'%20height='90'%20viewBox='0%200%2090%2090'%3e%3cpath%20fill='%2320263d'%20d='m84.12%2027.54-2.58-2.58L65.036%208.456l-2.58-2.58c-3.127-3.127-8.58-2.764-12.157.81L6.69%2050.306c-3.574%203.574-3.938%209.027-.81%2012.158l21.66%2021.66c3.128%203.127%208.58%202.764%2012.157-.81l43.617-43.616c3.574-3.578%203.937-9.03.806-12.158m-5.524%208.617-42.439%2042.44c-1.3%201.3-3.28%201.432-4.42.296l-20.63-20.63c-1.14-1.14-1.008-3.12.297-4.42l42.438-42.44c1.302-1.3%203.282-1.432%204.422-.296l1.031%201.032c1.14%201.14%201.009%203.12-.296%204.421-1.302%201.301-1.433%203.281-.297%204.421L69.02%2031.297c1.14%201.14%203.12%201.01%204.421-.296%201.301-1.301%203.281-1.432%204.421-.296l1.031%201.031c1.137%201.14%201.005%203.12-.296%204.421zM51.885%2090a3.135%203.135%200%200%201-2.22-5.351l8.925-8.925a3.14%203.14%200%200%201%204.646.233l3.308%204.046c10.114-5.374%2017.081-15.994%2017.178-28.14a3.136%203.136%200%200%201%203.136-3.113h.026a3.14%203.14%200%200%201%203.112%203.161C89.835%2072.746%2072.746%2089.835%2051.911%2090zM38.115%200a3.135%203.135%200%200%201%202.22%205.351l-8.925%208.925a3.13%203.13%200%200%201-2.378.915%203.14%203.14%200%200%201-2.272-1.147l-3.308-4.046C13.34%2015.37%206.373%2025.99%206.274%2038.138a3.14%203.14%200%200%201-3.139%203.112h-.026a3.14%203.14%200%200%201-3.11-3.161C.166%2017.254%2017.255.165%2038.09%200h.026z'/%3e%3c/svg%3e";
794
- //#endregion
795
- //#region src/shared/landscapeBlocker/landscapeBlocker.tsx
796
- function usePortalContainer() {
797
- const [container, setContainer] = d(null);
798
- const containerRef = A(null);
799
- y(() => {
800
- const el = document.createElement("div");
801
- el.setAttribute("data-incode-landscape-portal", "");
802
- document.body.appendChild(el);
803
- containerRef.current = el;
804
- setContainer(el);
805
- return () => {
806
- el.remove();
807
- containerRef.current = null;
808
- };
809
- }, []);
810
- return container;
811
- }
812
- function LandscapeBlocker() {
813
- const { t } = useTranslation();
814
- const container = usePortalContainer();
815
- if (!container) return null;
816
- return $(/* @__PURE__ */ u("div", {
817
- class: "IncodeLandscapeBlocker",
818
- children: [
819
- /* @__PURE__ */ u("img", {
820
- class: "IncodeLandscapeBlocker-icon",
821
- src: rotate_icon_default,
822
- alt: "",
823
- "aria-hidden": true
824
- }),
825
- /* @__PURE__ */ u("p", {
826
- class: "IncodeLandscapeBlocker-text",
827
- children: t("common.landscape")
828
- }),
829
- /* @__PURE__ */ u("p", {
830
- class: "IncodeLandscapeBlocker-text",
831
- children: isIPad() ? t("common.rotateIpad") : t("common.rotate")
832
- })
833
- ]
834
- }), container);
835
- }
836
- //#endregion
837
- //#region src/shared/componentRoot/incodeComponent.tsx
838
- /** True below an `IncodeComponent`; only the outermost one checks. */
839
- var BrowserCheckOwnerContext = Q(false);
840
- /**
841
- * The session Flow's `disableUnsupportedBrowserScreen`. False when Flow-backed
842
- * configuration is off, there is no session, or the Flow fails to load, so the
843
- * screen stays on by default.
844
- */
845
- function readFlowDisablesScreen(signal) {
846
- if (!getStandaloneSetupPolicy().flow.enabled) return Promise.resolve(false);
847
- return Promise.resolve().then(() => preloadDashboardFlow(signal)).then((flow) => flow.disableUnsupportedBrowserScreen === true, () => false);
848
- }
849
- /**
850
- * Per-element `config.disableUnsupportedBrowserScreen` wins over
851
- * `setup({ uiConfig })`, which wins over the session Flow. The Flow is read
852
- * only on an unsupported browser with no host value.
853
- */
854
- function useBrowserGate(skip) {
855
- const { isSupported, continueAnyway } = useIsBrowserSupported();
856
- const instanceValue = useInstanceOverrides().disableUnsupportedBrowserScreen;
857
- const globalValue = useUiConfig().disableUnsupportedBrowserScreen;
858
- const hostValue = instanceValue ?? globalValue;
859
- const needsFlowValue = !skip && !isSupported && hostValue === void 0;
860
- const [flowValue, setFlowValue] = d();
861
- y(() => {
862
- if (!needsFlowValue) return;
863
- const controller = new AbortController();
864
- readFlowDisablesScreen(controller.signal).then((value) => {
865
- if (!controller.signal.aborted) setFlowValue(value);
866
- });
867
- return () => controller.abort();
868
- }, [needsFlowValue]);
869
- const disabled = hostValue ?? flowValue;
870
- let gate = "blocked";
871
- if (skip || isSupported || disabled === true) gate = "open";
872
- else if (disabled === void 0) gate = "checking";
873
- return {
874
- gate,
875
- continueAnyway
876
- };
877
- }
878
- /**
879
- * Wraps UI modules with the standard container. Blocks unsupported browsers
880
- * and shows a landscape blocker on rotated mobile (excluding iPad).
881
- */
882
- function IncodeComponent({ children, deferBrowserCheck = false }) {
883
- const { isLandscapeMobile } = useScreenOrientation();
884
- const { gate, continueAnyway } = useBrowserGate(x(BrowserCheckOwnerContext) || deferBrowserCheck);
885
- if (gate === "blocked") return /* @__PURE__ */ u("div", {
886
- class: "IncodeComponent",
887
- children: /* @__PURE__ */ u(BrowserNotSupported, { onContinue: continueAnyway })
888
- });
889
- if (gate === "checking") return /* @__PURE__ */ u("div", {
890
- class: "IncodeComponent",
891
- children: /* @__PURE__ */ u(TransitionSpinner, { renderMode: "spinnerOnly" })
892
- });
893
- return /* @__PURE__ */ u("div", {
894
- class: "IncodeComponent",
895
- children: [/* @__PURE__ */ u(BrowserCheckOwnerContext.Provider, {
896
- value: true,
897
- children
898
- }), isLandscapeMobile ? /* @__PURE__ */ u(LandscapeBlocker, {}) : null]
899
- });
900
- }
901
- //#endregion
902
- export { withSessionExpiry as S, useFormScrollable as _, withStandaloneModuleBootstrap as a, useScreenOrientation as b, TerminalErrorPage as c, useAnimationSignal as d, useTimeoutHandle as f, useIsBrowserSupported as g, useIsMobileDeviceWidth as h, Snackbar as i, useFeatureManagement as l, useEventListener as m, LandscapeBlocker as n, ResolvedConfigProvider as o, useResizeObserver as p, BrowserNotSupported as r, useHasResolvedConfig as s, IncodeComponent as t, usePresence as u, isTerminalModuleState as v, useManager as x, useModuleTerminalCallbacks as y };
832
+ export { useScreenOrientation as _, useFeatureManagement as a, useModuleCancel as b, useCopyToClipboard as c, useEventListener as d, useIsMobileDeviceWidth as f, useModuleTerminalCallbacks as g, isTerminalModuleState as h, TerminalErrorPage as i, useTimeoutHandle as l, useFormScrollable as m, ResolvedConfigProvider as n, usePresence as o, useIsBrowserSupported as p, useHasResolvedConfig as r, useAnimationSignal as s, withStandaloneModuleBootstrap as t, useResizeObserver as u, useManager as v, withSessionExpiry as y };