@incodetech/web 2.4.1 → 2.5.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 (365) hide show
  1. package/THIRD_PARTY_NOTICES.txt +1 -4
  2. package/dist/{GeolocationPermissionDenied-GbB9B3J0.js → GeolocationPermissionDenied-C7oh9rAr.js} +23 -8
  3. package/dist/Password-CV69m5l9.js +212 -0
  4. package/dist/RadioGroup-DmCpmlJN.js +123 -0
  5. package/dist/RequiredLegend-CLQ0HX7d.js +16 -0
  6. package/dist/RequiredMarker-CAqxArxr.js +16 -0
  7. package/dist/TextField-D41q5WTe.js +166 -0
  8. package/dist/ae-signature/ae-signature.es.js +4 -4
  9. package/dist/{af-ZA-Dm5i-KRC.js → af-ZA-Bp16S_5w.js} +135 -881
  10. package/dist/{ageVerification-n-1fouaD.js → ageVerification-BBnJYo9K.js} +10 -8
  11. package/dist/{am-UBTEdpJv.js → am-CWJUWWuF.js} +135 -881
  12. package/dist/antifraud/antifraud.es.js +5 -4
  13. package/dist/applyStudioConfig-20qjppIu.js +126 -0
  14. package/dist/{ar-AE--KjG2EAr.js → ar-AE-O12WV51F.js} +136 -882
  15. package/dist/{ar-RFuhholc.js → ar-DgUYRgR_.js} +135 -881
  16. package/dist/{ar-EG-y8SWJjy1.js → ar-EG-C7LOd56j.js} +135 -881
  17. package/dist/assertClassBrand-F6pL6aIr.js +17 -0
  18. package/dist/authentication/authentication.es.js +9 -6
  19. package/dist/autoFocusTitle-C2Ro8zdn.js +19 -0
  20. package/dist/{az-4Z0ZZq7T.js → az-DusLpWep.js} +135 -881
  21. package/dist/{back-horizontal-hint-BztyPanp.js → back-horizontal-hint-Bci98ivl.js} +1 -1
  22. package/dist/{back-vertical-hint-BSzA4QbJ.js → back-vertical-hint-DyPCItxn.js} +1 -1
  23. package/dist/base.css +1 -1
  24. package/dist/{baseTutorial-BixkM88z.js → baseTutorial-BBwEV7AE.js} +9 -7
  25. package/dist/{bn-CNhjOqja.js → bn-CX4BixDE.js} +135 -881
  26. package/dist/{bottomSheet-B4REej8W.js → bottomSheet-DRRJstLk.js} +3 -3
  27. package/dist/{bs-Culcuxab.js → bs-DTnRhENx.js} +134 -880
  28. package/dist/{ca-h1xwo6CW.js → ca-DBI3m_a_.js} +134 -880
  29. package/dist/cameraOverlay-Bz9UJCHp.js +2 -0
  30. package/dist/{cameraOverlayHeader-D4Bjr6Fw.js → cameraOverlayHeader-VCCUFLoy.js} +9 -8
  31. package/dist/{cameraView-BpdAdfIK.js → cameraView-CKWEmlho.js} +13 -14
  32. package/dist/capture-B6vGKsRf.js +3 -0
  33. package/dist/capture-B_WX2h2H.js +2 -0
  34. package/dist/{tutorial-HfSD-QZ3.js → capture-BszIVhdg.js} +226 -82
  35. package/dist/capture-wy0SZwxu.js +754 -0
  36. package/dist/captureButtonIcon-DhTUlcGq.js +1 -0
  37. package/dist/captureFocusContext-OuX65pCg.js +718 -0
  38. package/dist/captureFooter-5KiLmkNi.js +47 -0
  39. package/dist/{ceb-pTDH3h1x.js → ceb-fG0bt_zV.js} +135 -881
  40. package/dist/certificate-issuance/certificate-issuance.es.js +68 -41
  41. package/dist/certificate-issuance/styles.css +1 -1
  42. package/dist/certificate-issuance/styles.css.js +1 -1
  43. package/dist/{checkbox-CALR7EFM.js → checkbox-tpW2Q3Zi.js} +4 -4
  44. package/dist/chooser-CqCxdQx8.js +1517 -0
  45. package/dist/connectionError-D67rCsgf.js +100 -0
  46. package/dist/consent/consent.es.js +19 -14
  47. package/dist/consent/styles.css +1 -1
  48. package/dist/consent/styles.css.js +1 -1
  49. package/dist/{countryDefinitions-BO9OSKQO.js → countryDefinitions-UXJ0maPk.js} +6 -0
  50. package/dist/{countryFlag-2Vj85OIZ.js → countryFlag-CjuXF_8C.js} +1 -1
  51. package/dist/{countrySelector-DKvvYxP6.js → countrySelector-mjGgTZBA.js} +6 -5
  52. package/dist/cross-document-data-match/cross-document-data-match.es.js +5 -4
  53. package/dist/{cs-CZ-CiATe8nW.js → cs-CZ-DCggApzq.js} +134 -880
  54. package/dist/{cs-CrQuSSOI.js → cs-DsBY9V_4.js} +134 -880
  55. package/dist/curp-validation/curp-validation.es.js +97 -96
  56. package/dist/curp-validation/styles.css +1 -1
  57. package/dist/curp-validation/styles.css.js +1 -1
  58. package/dist/{customFields-DRwjotY-.js → customFields-COihEvWm.js} +33 -20
  59. package/dist/{customWatchlist-DmROVUfp.js → customWatchlist-CE5WPSMm.js} +11 -9
  60. package/dist/{da-DK-CgrU79mp.js → da-DK-B7LXeFYP.js} +134 -880
  61. package/dist/dashboardTheme-Cxl2WlSK.js +388 -0
  62. package/dist/{dateInputComposed-Bu7vM-M4.js → dateInputComposed-DqOzOxfP.js} +4 -5
  63. package/dist/dateInputComposed-kP5wiNvH.js +1 -0
  64. package/dist/{de-D0xnkswj.js → de-BhQ2hOut.js} +134 -880
  65. package/dist/denied-D4oFpTuV.js +272 -0
  66. package/dist/devWarn-SLn4Qexk.js +1034 -0
  67. package/dist/deviceWallet-CPP5AFbd.js +37 -0
  68. package/dist/{digitalIdRedirect-Dpv37Mbi.js → digitalIdRedirect-DqhYI_sj.js} +4 -4
  69. package/dist/{digitalIdUpload-DKXe-_GE.js → digitalIdUpload-p7Zcbeom.js} +37 -15
  70. package/dist/document-capture/document-capture.es.js +1 -1
  71. package/dist/document-capture/styles.css +1 -1
  72. package/dist/document-capture/styles.css.js +1 -1
  73. package/dist/{documentCapture-DlBMtLvL.js → documentCapture-DXG8TB9t.js} +136 -72
  74. package/dist/documentCapture-DczZSZ4A.js +2 -0
  75. package/dist/dropdownComposed-C3uN_APy.js +1 -0
  76. package/dist/{dropdownComposed-B-qTBcja.js → dropdownComposed-CUBU43V3.js} +8 -6
  77. package/dist/dynamic-forms/dynamic-forms.es.js +62 -35
  78. package/dist/ekyb/ekyb.es.js +1 -1
  79. package/dist/ekyb/styles.css +1 -1
  80. package/dist/ekyb/styles.css.js +1 -1
  81. package/dist/{ekybModule-qkUiNFdJ.js → ekybModule-mGfuTVTJ.js} +109 -89
  82. package/dist/ekybModule-xZtYttfn.js +2 -0
  83. package/dist/ekyc/ekyc.es.js +1 -1
  84. package/dist/ekyc/styles.css +1 -1
  85. package/dist/ekyc/styles.css.js +1 -1
  86. package/dist/ekyc-prefill/ekyc-prefill.es.js +2 -0
  87. package/dist/ekyc-prefill/styles.css +2 -0
  88. package/dist/ekyc-prefill/styles.css.js +1 -0
  89. package/dist/ekycModule-Cp-GdWbC.js +789 -0
  90. package/dist/ekycModule-DXy4cT0v.js +2 -0
  91. package/dist/ekycPrefillModule-BKbRJuek.js +233 -0
  92. package/dist/ekycPrefillModule-Cdu0zr52.js +2 -0
  93. package/dist/{el-B5gLXHxC.js → el-D-zg7VzS.js} +134 -880
  94. package/dist/{el-GR-DPUvlcvr.js → el-GR-D9eldyAW.js} +134 -880
  95. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  96. package/dist/{electronic-signature-Jx8qWrW-.js → electronic-signature-uWLkdb8_.js} +55 -36
  97. package/dist/email/email.es.js +21 -16
  98. package/dist/{emailInput-ClX3Lu8X.js → emailInput-Bd8XECrW.js} +23 -12
  99. package/dist/{en-DG-DOwBuCCl.js → en-DG-CKwP-05W.js} +135 -881
  100. package/dist/{en-DNuMvR7-.js → en-DY1lnV9V.js} +135 -881
  101. package/dist/{errorContent-B_pH1MX7.js → errorContent-CqXgrkbQ.js} +21 -20
  102. package/dist/errorParams-B7BZHaA4.js +37 -0
  103. package/dist/es-419-DCPTzJnF.js +5 -0
  104. package/dist/{es-DNl7ceDm.js → es-BKio8b3N.js} +135 -881
  105. package/dist/{es-ES-BF9vl0Um.js → es-ES-MZM-tZ4f.js} +134 -880
  106. package/dist/{es-MX-Brp4FXN8.js → es-MX-Bwa400AE.js} +134 -880
  107. package/dist/{et-D5pPP4r0.js → et-CxKV1DgL.js} +136 -882
  108. package/dist/expiredId-BGfpQzNG.js +67 -0
  109. package/dist/extensibility.es.js +382 -55
  110. package/dist/{fa-IR-BoyK-lax.js → fa-IR-C1bLFtOi.js} +135 -881
  111. package/dist/face-match/face-match.es.js +1 -1
  112. package/dist/face-match/styles.css +1 -1
  113. package/dist/face-match/styles.css.js +1 -1
  114. package/dist/faceMatch-ClTodgeI.js +2 -0
  115. package/dist/{faceMatch-Dp1AGBtg.js → faceMatch-DpccWhgb.js} +54 -71
  116. package/dist/{fi-FI-mYdAUbtG.js → fi-FI-BC_3lqbM.js} +134 -880
  117. package/dist/field-comparison/field-comparison.es.js +1 -1
  118. package/dist/fieldComparison-CXSUE89Z.js +2 -0
  119. package/dist/fieldComparison-D2c7jots.js +126 -0
  120. package/dist/{fieldLabelHint-CxjArYkQ.js → fieldLabelHint-yMZjXK6p.js} +3 -3
  121. package/dist/{finalSuccessScreen-BgPVGAr4.js → finalSuccessScreen-D1AeAOtK.js} +31 -22
  122. package/dist/fiscal-qr/fiscal-qr.es.js +32 -26
  123. package/dist/flipAnimation-DwvNk514.js +46 -0
  124. package/dist/flipCapturedCardEligibility-C8ppBgP9.js +210 -0
  125. package/dist/flow/flow.es.js +315 -287
  126. package/dist/flow/shell/styles.css +1 -1
  127. package/dist/flow/shell/styles.css.js +1 -1
  128. package/dist/flow/styles.css +1 -1
  129. package/dist/formField-Bum3oh1A.js +49 -0
  130. package/dist/{fr-B4R5fgnm.js → fr-BGr4ZZSw.js} +134 -880
  131. package/dist/{fr-CA-DJSwRuWt.js → fr-CA-COfhYgrk.js} +134 -880
  132. package/dist/{front-horizontal-hint-DEHmtcdg.js → front-horizontal-hint-LxyNVfjy.js} +1 -1
  133. package/dist/{front-vertical-hint-Cb1NO-xT.js → front-vertical-hint-BKEg_DRs.js} +1 -1
  134. package/dist/geolocation/geolocation.es.js +15 -12
  135. package/dist/government-validation/government-validation.es.js +7 -6
  136. package/dist/{he-D2RDlnbd.js → he-BGdP9Cfd.js} +135 -881
  137. package/dist/helpButtonConfig-BFragC_J.js +24 -0
  138. package/dist/{hi-DFXhGN9O.js → hi-B8upUDpu.js} +135 -881
  139. package/dist/{hmn-BlNbfL-D.js → hmn-DOK-cZdX.js} +135 -881
  140. package/dist/{homeScreen-DjzxBrYL.js → homeScreen-CPaZiLqi.js} +26 -14
  141. package/dist/{incodeComponent-B-lwJJCV.js → hooks-C6m_ILVe.js} +256 -280
  142. package/dist/{hr-DArr3n62.js → hr-BjtqyvXa.js} +134 -880
  143. package/dist/{ht-CAd-Hmi1.js → ht-CbbFp5XL.js} +135 -881
  144. package/dist/{hu-CulT8eq_.js → hu-BXk1xFve.js} +135 -881
  145. package/dist/{icons-C2LgNjXy.js → icons-DLZTxOV2.js} +153 -80
  146. package/dist/id/id.es.js +167 -197
  147. package/dist/id/styles.css +1 -1
  148. package/dist/id/styles.css.js +1 -1
  149. package/dist/{id-D2VZL6b-.js → id-BrJu1D4k.js} +134 -880
  150. package/dist/{id-back-of-card-C7Au2tqk.js → id-back-of-card-BhF5T4fC.js} +1 -1
  151. package/dist/{id-back-of-card-vertical-CtQBFw8w.js → id-back-of-card-vertical-BudLiGPR.js} +1 -1
  152. package/dist/{id-front-of-card-BmHL_keG.js → id-front-of-card-CiGcJhVW.js} +1 -1
  153. package/dist/{id-front-of-card-vertical-DkNUn2Vx.js → id-front-of-card-vertical-C_GyecLf.js} +1 -1
  154. package/dist/id-selfie-flow/id-selfie-flow.es.js +13 -11
  155. package/dist/id-selfie-flow/styles.css +1 -1
  156. package/dist/id-verification/id-verification.es.js +12 -6
  157. package/dist/idFlipTransition-DMAbw1_Y.js +154 -0
  158. package/dist/{idOcr-BWG3vj8j.js → idOcr-D9zxy2eU.js} +64 -37
  159. package/dist/identity-reuse/identity-reuse.es.js +38 -25
  160. package/dist/identity-reuse/styles.css.js +1 -0
  161. package/dist/incodeComponent-DPY-ikO3.js +235 -0
  162. package/dist/incodeModule-Dyy5PfM4.js +41 -0
  163. package/dist/index.es.js +4 -3
  164. package/dist/{inputComposed-B35soRFg.js → inputComposed-BG3XgpYE.js} +4 -4
  165. package/dist/{it-fs9OkGbv.js → it-DI-TPE-K.js} +135 -881
  166. package/dist/{ja-BvKVI6Oo.js → ja-3XIFqaXu.js} +135 -881
  167. package/dist/{ja-JP-C5-gDGuX.js → ja-JP-BAeRWiVk.js} +136 -882
  168. package/dist/{jv-CyId7aPo.js → jv-BhjQxxBl.js} +134 -880
  169. package/dist/{ka-pqIPc2el.js → ka-Bx4-RrZ_.js} +135 -881
  170. package/dist/{kk-DK7mWl6k.js → kk-Ct91ZRbP.js} +134 -880
  171. package/dist/{km-BaJYdDrm.js → km-BWQuuNXz.js} +142 -888
  172. package/dist/{ko-CdYIGTH_.js → ko-Cve9iLc7.js} +135 -881
  173. package/dist/{ko-KP-Q3GGdDp3.js → ko-KP-0iLztCuj.js} +135 -881
  174. package/dist/{ky-Bc7ZXIXy.js → ky-DGt4vj88.js} +134 -880
  175. package/dist/kyb-checks/kyb-checks.es.js +2 -0
  176. package/dist/kyb-checks/styles.css +2 -0
  177. package/dist/kyb-checks/styles.css.js +1 -0
  178. package/dist/kybChecksModule-BlLRwSFe.js +2 -0
  179. package/dist/kybChecksModule-DmjxRBhO.js +345 -0
  180. package/dist/{lo-0jgAavCe.js → lo-DPvsfR2F.js} +135 -881
  181. package/dist/{lt-DDEjR6RD.js → lt-BMI5NrHt.js} +134 -880
  182. package/dist/{lv-Ddzb_N3H.js → lv-Bpw5rGRP.js} +135 -881
  183. package/dist/{mandatoryConsent-C21a2d2-.js → mandatoryConsent-Blhxc0KK.js} +23 -16
  184. package/dist/{manualCaptureButton-1KC7N_B-.js → manualCaptureButton-B1hLcNl4.js} +8 -7
  185. package/dist/{manualCaptureButton-C5VMDamt.js → manualCaptureButton-Cr-FQ3-N.js} +16 -12
  186. package/dist/{mk-SJwou4aX.js → mk-C9Z-5xUg.js} +135 -881
  187. package/dist/{mn-7B86xjpb.js → mn-p0zBw-tm.js} +134 -880
  188. package/dist/{ms-Bb-SlQCF.js → ms-CF8aT_Qq.js} +134 -880
  189. package/dist/{my-3ci4RJZY.js → my-CqWwTa_5.js} +135 -881
  190. package/dist/{nb-NO-DpZAni0R.js → nb-NO-C7Hb8Ok5.js} +134 -880
  191. package/dist/{ne-Dncyvxqt.js → ne-B5InVJ21.js} +135 -881
  192. package/dist/{nl-C1mnzCBH.js → nl-aJiBBLFg.js} +134 -880
  193. package/dist/{optionAccessibleLabel-DG8Lks9f.js → optionAccessibleLabel-JFrEz0Ax.js} +27 -11
  194. package/dist/otpInput-Bn8PHFh7.js +245 -0
  195. package/dist/{page-DINsqGIw.js → page-b7Hx6klV.js} +102 -79
  196. package/dist/{incode-logo-B1bl2S0z.js → pageUiConfig-BlsOWl2d.js} +88 -14
  197. package/dist/{passport-horizontal-hint-DgNc6F0-.js → passport-horizontal-hint-Bn18pckF.js} +1 -1
  198. package/dist/{passport-vertical-hint-B-toVsfT.js → passport-vertical-hint-D_bvTNZY.js} +1 -1
  199. package/dist/passwordRequirements-13qw_WSJ.js +49 -0
  200. package/dist/{pdf-BKHLi5Ac.js → pdf-DO_HvE8T.js} +2 -17
  201. package/dist/pdfViewer-BT-O-Zj1.js +2 -0
  202. package/dist/{pdfViewer-C8xHykz1.js → pdfViewer-D_sXx3SF.js} +11 -14
  203. package/dist/permissionInstructionList-CGo9uSeQ.js +43 -0
  204. package/dist/{permissions-B7-lHrFm.js → permissions-CS58hLHp.js} +84 -53
  205. package/dist/phone/phone.es.js +16 -12
  206. package/dist/{phoneInputComposed-Di4acsc0.js → phoneInputComposed-Dc2lHg4Z.js} +49 -12
  207. package/dist/{pl-CWr2fVBg.js → pl-CDmSpQ_-.js} +134 -880
  208. package/dist/preloadableLazy-KWGuHoqn.js +43 -0
  209. package/dist/{processing-z5wuXrKw.js → processing-C5A54RCC.js} +2 -2
  210. package/dist/{progressBar-BcKFaXZR.js → progressBar-CmkJY5xT.js} +2 -2
  211. package/dist/{pt-AGz2XGAK.js → pt-0SO_cPU9.js} +135 -881
  212. package/dist/{pt-BR-CMvTsOqE.js → pt-BR-BEfs5M8G.js} +135 -881
  213. package/dist/{pt-PT-KzIM0vpf.js → pt-PT-ONBmg0BR.js} +135 -881
  214. package/dist/qe-signature/qe-signature.es.js +4 -4
  215. package/dist/realtimeFeedbackConfig-DeZksjlR.js +16 -0
  216. package/dist/redirect-to-mobile/redirect-to-mobile.es.js +66 -62
  217. package/dist/redirect-to-mobile/styles.css +1 -1
  218. package/dist/redirect-to-mobile/styles.css.js +1 -1
  219. package/dist/{registerIncodeElement-D_cn4dSI.js → registerIncodeElement-FoirFu19.js} +1 -1
  220. package/dist/{resendTimer-On_zrMLS.js → resendTimer-B7aR2zn3.js} +2 -2
  221. package/dist/richText-DlHC_sMB.js +1761 -0
  222. package/dist/{ro-DYdJJDKn.js → ro-ChyvDsu3.js} +135 -881
  223. package/dist/{ru-C1cguVi2.js → ru-B_vdxKv-.js} +134 -880
  224. package/dist/{ru-RU-18JeDfwz.js → ru-RU-CrvUlCJj.js} +134 -880
  225. package/dist/{sanitizeSvg-BC-qLUgS.js → sanitizeSvg-IfqLuP1N.js} +1 -1
  226. package/dist/selfie/selfie.es.js +37 -14
  227. package/dist/selfie/styles.css +1 -1
  228. package/dist/selfie/styles.css.js +1 -1
  229. package/dist/signature/signature.es.js +18 -13
  230. package/dist/{sk-CtIcnYOo.js → sk-ljMYKwHQ.js} +136 -882
  231. package/dist/{sl-DS_Gc0Wc.js → sl-BbVJSIEt.js} +135 -881
  232. package/dist/{smsTabContent-vE0WyKtg.js → smsTabContent-BOIszuLx.js} +40 -27
  233. package/dist/{so-dqMTkg5E.js → so-DTymvbrx.js} +135 -881
  234. package/dist/spacer-DQdgPJjU.js +1100 -0
  235. package/dist/spinner-DQf6JseL.js +69 -0
  236. package/dist/{sr-DgHGiiWM.js → sr-JVvblELi.js} +134 -880
  237. package/dist/{sr-Latn-Du7_x_Tr.js → sr-Latn-9I-jEoNt.js} +142 -888
  238. package/dist/sr-YU-AHJXObyx.js +5 -0
  239. package/dist/{sv-SE-Dw61hRjx.js → sv-SE-MhrEy6Di.js} +134 -880
  240. package/dist/{sw-De-Jo8XY.js → sw-2Mtjggv_.js} +135 -881
  241. package/dist/{th-BJixOgsM.js → th-CRCVvVIy.js} +135 -881
  242. package/dist/{th-TH-VyhljC5U.js → th-TH-BJP2vgt1.js} +135 -881
  243. package/dist/themes/dark.css +1 -1
  244. package/dist/themes/light.css +1 -1
  245. package/dist/{tl-DhjdqhA4.js → tl-CI98qs3U.js} +135 -881
  246. package/dist/{tl-PH-D2S2Irx7.js → tl-PH-Bwmbtl_j.js} +135 -881
  247. package/dist/{tr-BJAuvOwN.js → tr-Bjsibm46.js} +135 -881
  248. package/dist/{transitionSpinner-BZO916B1.js → transitionSpinner-BTr1yrwy.js} +7 -7
  249. package/dist/tutorial-DO3fs1fY.js +28 -0
  250. package/dist/types/ae-signature.d.ts +17 -4
  251. package/dist/types/antifraud.d.ts +17 -4
  252. package/dist/types/authentication.d.ts +17 -4
  253. package/dist/types/certificate-issuance.d.ts +17 -4
  254. package/dist/types/consent.d.ts +17 -4
  255. package/dist/types/cross-document-data-match.d.ts +17 -4
  256. package/dist/types/curp-validation.d.ts +17 -4
  257. package/dist/types/document-capture.d.ts +17 -4
  258. package/dist/types/dynamic-forms.d.ts +17 -4
  259. package/dist/types/ekyb.d.ts +17 -4
  260. package/dist/types/ekyc-prefill.d.ts +213 -0
  261. package/dist/types/ekyc.d.ts +17 -4
  262. package/dist/types/electronic-signature.d.ts +17 -4
  263. package/dist/types/email.d.ts +17 -4
  264. package/dist/types/extensibility.d.ts +204 -37
  265. package/dist/types/face-match.d.ts +17 -4
  266. package/dist/types/field-comparison.d.ts +17 -4
  267. package/dist/types/fiscal-qr.d.ts +17 -4
  268. package/dist/types/flow.d.ts +38 -5
  269. package/dist/types/geolocation.d.ts +17 -4
  270. package/dist/types/government-validation.d.ts +17 -4
  271. package/dist/types/id-selfie-flow.d.ts +17 -4
  272. package/dist/types/id-verification.d.ts +17 -4
  273. package/dist/types/id.d.ts +17 -4
  274. package/dist/types/identity-reuse.d.ts +18 -5
  275. package/dist/types/index.d.ts +92 -10
  276. package/dist/types/kyb-checks.d.ts +213 -0
  277. package/dist/types/phone.d.ts +17 -4
  278. package/dist/types/qe-signature.d.ts +17 -4
  279. package/dist/types/redirect-to-mobile.d.ts +1 -1
  280. package/dist/types/selfie.d.ts +17 -4
  281. package/dist/types/signature.d.ts +17 -4
  282. package/dist/types/video-selfie.d.ts +1 -1
  283. package/dist/types/watchlist.d.ts +17 -4
  284. package/dist/types/workflow.d.ts +17 -4
  285. package/dist/{typography-8iwtPQbj.js → typography-CyT20XIA.js} +3 -11
  286. package/dist/{uk-UA-BZR90qDZ.js → uk-UA-DmKAplUk.js} +135 -881
  287. package/dist/{uk-CcU91ee-.js → uk-fCdIfhh5.js} +134 -880
  288. package/dist/{ur-CIXtUYHK.js → ur-Dh9AF1hS.js} +135 -881
  289. package/dist/useCameraPreview-hNLhri73.js +93 -0
  290. package/dist/useCaptureHelpButton-CSuQmlEp.js +43 -0
  291. package/dist/useIsDarkTheme-DoOFy9TN.js +27 -0
  292. package/dist/{useModuleLoader-BdIp6TNQ.js → useModuleLoader-BCYS1xLP.js} +31 -18
  293. package/dist/{uz-CeLVgwAD.js → uz-DYarfGyT.js} +135 -881
  294. package/dist/{vendor-preact-C0jX1Cbq.js → vendor-preact-CjnloSla.js} +147 -5
  295. package/dist/{verificationResult-C2gxbmAo.js → verificationResult-C8jlwbOw.js} +30 -27
  296. package/dist/{vi-CgfGVVLY.js → vi-uK03Bfuc.js} +135 -881
  297. package/dist/video-selfie/styles.css +1 -1
  298. package/dist/video-selfie/styles.css.js +1 -1
  299. package/dist/video-selfie/video-selfie.es.js +120 -77
  300. package/dist/watchlist/watchlist.es.js +12 -9
  301. package/dist/{watchlistForBusiness-eOPtmu7z.js → watchlistForBusiness-DjSYKjVv.js} +63 -22
  302. package/dist/{withEndScreenTexts-aFUEeBgM.js → withEndScreenTexts-TlaaD6Qn.js} +253 -55
  303. package/dist/workflow/styles.css +1 -1
  304. package/dist/workflow/workflow.es.js +36 -28
  305. package/dist/{zh-CN-BOxod1_T.js → zh-CN-BkQoAg2R.js} +136 -882
  306. package/dist/{zh-HANT-zAahQ8nP.js → zh-HANT-DRh68ryN.js} +135 -881
  307. package/dist/{zh-B-kjeCig.js → zh-JlU3mjl9.js} +134 -880
  308. package/dist/{zh-TW-B0v7GYYG.js → zh-TW-ByGAHrvB.js} +135 -881
  309. package/package.json +48 -12
  310. package/dist/autoFocusTitle-Cy0J3lvr.js +0 -32
  311. package/dist/browser-ponyfill-DT11p-Ob.js +0 -441
  312. package/dist/cameraOverlay-DQEG24io.js +0 -2
  313. package/dist/check-icon-BpjpKqhJ.js +0 -48
  314. package/dist/connectionError-Cf6iGFyx.js +0 -45
  315. package/dist/dashboardTheme-CkyISqIs.js +0 -247
  316. package/dist/dateInputComposed-cgZGBSiu.js +0 -1
  317. package/dist/denied-ByGDWkTW.js +0 -1871
  318. package/dist/deviceWallet-C4UT05wN.js +0 -66
  319. package/dist/documentCapture-Dh1ftzGG.js +0 -2
  320. package/dist/dropdownComposed-DmT4s8VM.js +0 -1
  321. package/dist/ekybModule-BHInfPHS.js +0 -2
  322. package/dist/ekycModule-B2cfT3zi.js +0 -2
  323. package/dist/ekycModule-BQPl1KQT.js +0 -300
  324. package/dist/es-419-BU7r2Fvh.js +0 -3193
  325. package/dist/esm-15CISqPe.js +0 -430
  326. package/dist/expiredId-GIHjGAuY.js +0 -80
  327. package/dist/faceMatch-bXhejzhf.js +0 -2
  328. package/dist/fieldComparison-BirXQb7f.js +0 -2
  329. package/dist/fieldComparison-D8PL0eR1.js +0 -109
  330. package/dist/flipAnimation-BgMPQ8Ma.js +0 -3048
  331. package/dist/formField-0k8wVfXl.js +0 -60
  332. package/dist/incodeModule-DiVtqekm.js +0 -68
  333. package/dist/inputComposed-CKujYUSB.js +0 -1
  334. package/dist/numberedStep-CvbL3ht2.js +0 -13
  335. package/dist/otpInput-_B7xEZUU.js +0 -157
  336. package/dist/passwordInputComposed-B3WKjODU.js +0 -74
  337. package/dist/pdfViewer-DcB41xr7.js +0 -2
  338. package/dist/radioGroupComposed-CIbHjX4v.js +0 -160
  339. package/dist/radioGroupComposed-eXNWg1ez.js +0 -1
  340. package/dist/reload-icon-elAFo9-k.js +0 -70
  341. package/dist/richText-aCnLd3j2.js +0 -1549
  342. package/dist/spacer-lcnhSC-5.js +0 -741
  343. package/dist/spinner-B8BswhBb.js +0 -88
  344. package/dist/sr-YU-YuZu7wdb.js +0 -3197
  345. package/dist/statusPage-WIsGgf_m.js +0 -36
  346. package/dist/uiConfig-CwGL3QjP.js +0 -2589
  347. package/dist/useCaptureHelpButton-BTUZs3Ev.js +0 -86
  348. package/dist/useCoverMedia-VLw3OYN_.js +0 -149
  349. /package/dist/{aligndevicelottie-BARt-rhe.js → aligndevicelottie-BEKzL4SB.js} +0 -0
  350. /package/dist/{back-tutorial-CZrMmj1_.js → back-tutorial-B9W63fa-.js} +0 -0
  351. /package/dist/{backdevicelottie-CIM3ekd8.js → backdevicelottie-DsN8QBV3.js} +0 -0
  352. /package/dist/{blurdevicelottie-BRyXfLB6.js → blurdevicelottie-DkV7Kwo4.js} +0 -0
  353. /package/dist/{defineProperty-CjeJoXkx.js → defineProperty-B4FQTz14.js} +0 -0
  354. /package/dist/{flip-animation-BU5LNKYx.js → flip-animation-DJVnWWL5.js} +0 -0
  355. /package/dist/{frontdevicelottie-arpyu_Fz.js → frontdevicelottie-DiW1Wmya.js} +0 -0
  356. /package/dist/{glaredevicelottie-TwTFxe7h.js → glaredevicelottie-CK-fnX_s.js} +0 -0
  357. /package/dist/{id-laser-h-Dr-hBxrq.js → id-laser-h-6Am_cjM8.js} +0 -0
  358. /package/dist/{id-laser-v-D_r0QNY8.js → id-laser-v-DXoF3flH.js} +0 -0
  359. /package/dist/{id-tutorial-DM9Pkfs-.js → id-tutorial-DkKH3eTE.js} +0 -0
  360. /package/dist/{lottie_light-aMg9Q9iO.js → lottie_light-Bam05Bc9.js} +0 -0
  361. /package/dist/{passport-tutorial-CKZZuDf_.js → passport-tutorial-D3Fpk-Tj.js} +0 -0
  362. /package/dist/{pdf.worker.min-BM1b2w9V.js → pdf.worker.min-D0hm-8jN.js} +0 -0
  363. /package/dist/{policyUrls-B3M8nLRh.js → policyUrls-B3TEaluh.js} +0 -0
  364. /package/dist/{purify.es-0fCPkEV1.js → purify.es-DhY3JLdI.js} +0 -0
  365. /package/dist/{selfieTutorial-Dz6lDFMn.js → selfieTutorial-DnsRD1Z9.js} +0 -0
@@ -1,36 +1,87 @@
1
- import { i as useTranslationWithFallback, o as useTranslation, r as useUiConfig } from "./uiConfig-CwGL3QjP.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-CkyISqIs.js";
4
- import { d as cn, t as Spacer, u as useInstanceOverrides } from "./spacer-lcnhSC-5.js";
5
- import { a as TypographyH5, i as TypographyH4 } from "./typography-8iwtPQbj.js";
6
- import { t as TransitionSpinner } from "./transitionSpinner-BZO916B1.js";
7
- import { b as ErrorIcon, r as SuccessIcon, x as Button } from "./icons-C2LgNjXy.js";
8
- import { t as Page } from "./page-DINsqGIw.js";
9
- import { t as AutoFocusTitle } from "./autoFocusTitle-Cy0J3lvr.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 { u as useTranslation } from "./devWarn-SLn4Qexk.js";
2
+ import { C as Q, _ as h, b as y, c as gn, f as T, h as d, l as z, o as P, p as _, r as C, u as A, v as q, x as u, y as x } from "./vendor-preact-CjnloSla.js";
3
+ import { a as getStandaloneSetupPolicy, n as preloadDashboardTheme, t as getDashboardTheme } from "./dashboardTheme-Cxl2WlSK.js";
4
+ import { b as PrizmaButton } from "./icons-DLZTxOV2.js";
5
+ import { t as AutoFocusTitle } from "./autoFocusTitle-C2Ro8zdn.js";
6
+ import { a as ModuleCancelProvider, t as Page } from "./page-b7Hx6klV.js";
7
+ import { t as ConnectionError } from "./connectionError-D67rCsgf.js";
8
+ import { t as TransitionSpinner } from "./transitionSpinner-BTr1yrwy.js";
9
+ import { isConnectivityLost, onConnectivityChange, onSessionExpired } from "@incodetech/core/session";
10
+ import { ScreenOrientationProvider, createScreenOrientationObserver, getDeviceClass, isSupportedBrowser } from "@incodetech/core/device";
11
+ import { resolveDashboardModuleConfig } from "@incodetech/core/flow";
13
12
  import "@incodetech/core/events";
14
13
  import { getExperiment, getFeatureGate, getFeatureManagementVersion, getFeatureParameterStore, getIsFeatureManagementInitialized, getLayer, subscribeFeatureManagement, updateFeatureManagementUser } from "@incodetech/core/feature-management";
14
+ //#region src/shared/webComponent/useModuleCancel.ts
15
+ var USER_CANCELLED = "USER_CANCELLED";
16
+ /** The user closed the offline screen, or the step cannot resume after it. */
17
+ var NO_INTERNET_CONNECTION = "NO_INTERNET_CONNECTION";
18
+ /**
19
+ * Quit handling for a module root: stop rendering the module (its managers
20
+ * release the camera on unmount), then tell the host once.
21
+ */
22
+ function useModuleCancel(onError) {
23
+ const [cancelled, setCancelled] = d(false);
24
+ const mounted = A(false);
25
+ const onErrorRef = A(onError);
26
+ onErrorRef.current = onError;
27
+ _(() => {
28
+ mounted.current = true;
29
+ return () => {
30
+ mounted.current = false;
31
+ };
32
+ }, []);
33
+ _(() => {
34
+ if (!cancelled) return;
35
+ queueMicrotask(() => {
36
+ if (mounted.current) onErrorRef.current?.(void 0, void 0, USER_CANCELLED);
37
+ });
38
+ }, [cancelled]);
39
+ return {
40
+ cancelled,
41
+ requestCancel: q(() => setCancelled(true), [])
42
+ };
43
+ }
44
+ //#endregion
15
45
  //#region src/shared/session/withSessionExpiry.tsx
16
46
  var ExpiryOwner = Q(null);
47
+ /** True below a root that lost connectivity. */
48
+ var Offline = Q(false);
17
49
  function useSessionExpiryOwner() {
18
50
  return x(ExpiryOwner);
19
51
  }
20
- /** The outermost mounted SDK surface owns teardown and host notification. */
21
- function withSessionExpiry(Component) {
52
+ /**
53
+ * The outermost mounted SDK surface owns teardown, the offline screen, and
54
+ * host notification. While offline, the current step unmounts (its managers
55
+ * stop) and mounts again from its first screen on recovery.
56
+ * `keepMountedOffline` keeps the root's own child mounted but hidden, so an
57
+ * orchestrator such as `<incode-flow>` keeps its position; its terminal
58
+ * callback while offline is held and delivered on recovery.
59
+ */
60
+ function withSessionExpiry(Component, { keepMountedOffline = false } = {}) {
22
61
  return function SessionExpiryBoundary(props) {
23
62
  const parent = x(ExpiryOwner);
24
- const owner = A({ expired: false }).current;
63
+ const parentOffline = x(Offline);
64
+ const owner = A({
65
+ expired: false,
66
+ offline: false
67
+ }).current;
25
68
  const scope = parent ?? owner;
26
69
  const container = A(null);
27
70
  const mounted = A(false);
28
- const onError = A(props.onError);
29
- onError.current = props.onError;
71
+ const latest = A(props);
72
+ latest.current = props;
30
73
  const [error, setError] = d();
74
+ const [connection, setConnection] = d(() => {
75
+ if (parent || !isConnectivityLost()) return "online";
76
+ owner.offline = true;
77
+ return "offline";
78
+ });
79
+ const closed = connection === "closed";
80
+ const held = A();
31
81
  _(() => {
32
82
  mounted.current = true;
33
83
  let unsubscribe;
84
+ let unsubscribeConnectivity;
34
85
  const subscribe = () => {
35
86
  unsubscribe = onSessionExpired((expired) => {
36
87
  const root = container.current;
@@ -43,46 +94,120 @@ function withSessionExpiry(Component) {
43
94
  setError(expired);
44
95
  });
45
96
  };
46
- if (!parent) subscribe();
97
+ if (!parent && !closed) {
98
+ subscribe();
99
+ unsubscribeConnectivity = onConnectivityChange((lost) => {
100
+ if (owner.expired) return;
101
+ if (lost) {
102
+ owner.offline = true;
103
+ setConnection("offline");
104
+ return;
105
+ }
106
+ if (latest.current.manager !== void 0) {
107
+ setConnection("closed");
108
+ return;
109
+ }
110
+ owner.offline = false;
111
+ setConnection("online");
112
+ const deliver = held.current;
113
+ held.current = void 0;
114
+ if (deliver) queueMicrotask(() => {
115
+ if (mounted.current) deliver();
116
+ });
117
+ });
118
+ }
47
119
  return () => {
48
120
  mounted.current = false;
49
121
  unsubscribe?.();
122
+ unsubscribeConnectivity?.();
50
123
  };
51
- }, [owner, parent]);
124
+ }, [
125
+ owner,
126
+ parent,
127
+ closed
128
+ ]);
129
+ _(() => {
130
+ if (!closed) return;
131
+ queueMicrotask(() => {
132
+ if (mounted.current) latest.current.onError?.(void 0, void 0, NO_INTERNET_CONNECTION);
133
+ });
134
+ }, [closed]);
52
135
  _(() => {
53
136
  if (!error) return;
54
137
  queueMicrotask(() => {
55
138
  if (!mounted.current || !container.current?.isConnected) return;
56
139
  try {
57
- onError.current?.(error.message, error.statusCode, error.code, error);
140
+ latest.current.onError?.(error.message, error.statusCode, error.code, error);
58
141
  } catch {}
59
142
  });
60
143
  }, [error]);
61
- const child = error ? null : /* @__PURE__ */ u(Component, {
144
+ const hasError = props.onError !== void 0 || keepMountedOffline && !parent;
145
+ const hasFinish = props.onFinish !== void 0;
146
+ const hasContinue = props.onContinue !== void 0;
147
+ const callbacks = T(() => {
148
+ const open = () => mounted.current && !scope.expired && !scope.offline;
149
+ const kept = () => mounted.current && keepMountedOffline && !parent && owner.offline && !owner.expired;
150
+ return {
151
+ onError: hasError ? (...args) => {
152
+ if (open()) latest.current.onError?.(...args);
153
+ else if (kept()) held.current ??= () => latest.current.onError?.(...args);
154
+ } : void 0,
155
+ onFinish: hasFinish ? (...args) => {
156
+ if (open()) latest.current.onFinish?.(...args);
157
+ else if (kept()) held.current ??= () => latest.current.onFinish?.(...args);
158
+ } : void 0,
159
+ onContinue: hasContinue ? () => {
160
+ if (open()) latest.current.onContinue?.();
161
+ } : void 0
162
+ };
163
+ }, [
164
+ hasError,
165
+ hasFinish,
166
+ hasContinue,
167
+ scope,
168
+ owner,
169
+ parent
170
+ ]);
171
+ const offline = connection !== "online";
172
+ const child = error || offline && !keepMountedOffline ? null : /* @__PURE__ */ u(Component, {
62
173
  ...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
174
+ onError: callbacks.onError,
175
+ onFinish: callbacks.onFinish,
176
+ onContinue: callbacks.onContinue
72
177
  });
73
- if (parent) return child;
178
+ if (parent) return parentOffline ? null : child;
179
+ if (closed) return null;
74
180
  return /* @__PURE__ */ u(ExpiryOwner.Provider, {
75
181
  value: owner,
76
- children: /* @__PURE__ */ u("div", {
77
- class: "IncodeSessionBoundary",
78
- ref: container,
79
- children: child
80
- })
182
+ children: [/* @__PURE__ */ u(Offline.Provider, {
183
+ value: offline,
184
+ children: /* @__PURE__ */ u("div", {
185
+ class: offline ? "IncodeSessionBoundary IncodeSessionBoundary--offline" : "IncodeSessionBoundary",
186
+ ref: container,
187
+ children: child
188
+ })
189
+ }), offline && !error ? /* @__PURE__ */ u(ModuleCancelProvider, {
190
+ value: void 0,
191
+ children: /* @__PURE__ */ u("div", {
192
+ class: "IncodeComponent",
193
+ children: /* @__PURE__ */ u(ConnectionError, { onClose: () => setConnection("closed") })
194
+ })
195
+ }) : null]
81
196
  });
82
197
  };
83
198
  }
84
199
  //#endregion
85
200
  //#region src/hooks/useManager.ts
201
+ /** `getState()` maps a fresh object per call, so compare one level deep. */
202
+ function isShallowEqual(a, b) {
203
+ if (Object.is(a, b)) return true;
204
+ if (typeof a !== "object" || typeof b !== "object" || a === null || b === null) return false;
205
+ const aRecord = a;
206
+ const bRecord = b;
207
+ const aKeys = Object.keys(aRecord);
208
+ if (aKeys.length !== Object.keys(bRecord).length) return false;
209
+ return aKeys.every((key) => key in bRecord && Object.is(aRecord[key], bRecord[key]));
210
+ }
86
211
  /**
87
212
  * Hook for subscribing to manager state updates
88
213
  * @param factory - Factory function that creates the manager instance
@@ -96,10 +221,14 @@ function useManager(factory, options = {}) {
96
221
  const [state, setState] = d(() => manager.getState());
97
222
  y(() => {
98
223
  const unsubscribe = manager.subscribe(setState);
224
+ setState((previous) => {
225
+ const current = manager.getState();
226
+ return isShallowEqual(previous, current) ? previous : current;
227
+ });
99
228
  if (manageLifecycle && autoLoad && manager.load) manager.load();
100
229
  return () => {
101
230
  unsubscribe();
102
- if (manageLifecycle || expiryOwner?.expired) manager.stop?.();
231
+ if (manageLifecycle || expiryOwner?.expired || expiryOwner?.offline) manager.stop?.();
103
232
  };
104
233
  }, [
105
234
  manager,
@@ -133,16 +262,23 @@ function useScreenOrientation() {
133
262
  }
134
263
  //#endregion
135
264
  //#region src/hooks/useModuleTerminalCallbacks.ts
265
+ /** `moduleErrorCode` sent to `onError` when the browser blocks the camera. */
266
+ var CAMERA_PERMISSION_DENIED = "CAMERA_PERMISSION_DENIED";
136
267
  function isModuleTerminalStatus(status) {
137
268
  return status === "finished" || status === "error" || status === "closed" || status === "failed";
138
269
  }
139
270
  function isTerminalModuleState(state) {
140
271
  return isModuleTerminalStatus(state.status);
141
272
  }
142
- function useModuleTerminalCallbacks({ status, onFinish, output, onError, error, errorCode, moduleErrorCode, errorStatuses }) {
273
+ function useModuleTerminalCallbacks({ status, onFinish, output, onError, error, errorCode, moduleErrorCode, errorStatuses, cameraPermissionDenied }) {
143
274
  const terminalFiredRef = A(false);
144
275
  y(() => {
145
276
  if (terminalFiredRef.current) return;
277
+ if (cameraPermissionDenied) {
278
+ terminalFiredRef.current = true;
279
+ onError?.("Camera permission denied", void 0, CAMERA_PERMISSION_DENIED);
280
+ return;
281
+ }
146
282
  if (status === "finished") {
147
283
  terminalFiredRef.current = true;
148
284
  onFinish?.(output);
@@ -166,7 +302,8 @@ function useModuleTerminalCallbacks({ status, onFinish, output, onError, error,
166
302
  error,
167
303
  errorCode,
168
304
  moduleErrorCode,
169
- errorStatuses
305
+ errorStatuses,
306
+ cameraPermissionDenied
170
307
  ]);
171
308
  }
172
309
  //#endregion
@@ -266,6 +403,19 @@ function useResizeObserver(ref, onResize) {
266
403
  //#endregion
267
404
  //#region src/hooks/useTimeout.ts
268
405
  /**
406
+ * Runs `callback` once after `delayMs` when `delayMs` is not null. Clears the
407
+ * timer on unmount or when `delayMs` / `callback` changes.
408
+ */
409
+ function useTimeout(callback, delayMs) {
410
+ y(() => {
411
+ if (delayMs === null) return;
412
+ const timeoutId = window.setTimeout(callback, delayMs);
413
+ return () => {
414
+ window.clearTimeout(timeoutId);
415
+ };
416
+ }, [callback, delayMs]);
417
+ }
418
+ /**
269
419
  * Imperative one-shot timeout handle for user-triggered delays. Clears any
270
420
  * pending timer on unmount.
271
421
  */
@@ -513,7 +663,47 @@ function useFeatureManagement(kind, name, options) {
513
663
  };
514
664
  }
515
665
  //#endregion
666
+ //#region src/shared/terminalErrorPage/terminalErrorPageConstants.ts
667
+ var COMMON_UNEXPECTED_ERROR = "common.unexpectedError";
668
+ var TERMINAL_ERROR_TRANSLATION_KEYS = {
669
+ ...Object.fromEntries([
670
+ "SPOOF_ATTEMPT_DETECTED",
671
+ "FACE_OCCLUDED",
672
+ "FACE_TOO_DARK",
673
+ "TOO_DARK_ERROR",
674
+ "FACE_TOO_BLURRY",
675
+ "TOO_BLURRY_ERROR",
676
+ "FACE_TOO_SMALL",
677
+ "FACE_NOT_FOUND",
678
+ "FACE_CROPPING_FAILED",
679
+ "MULTIPLE_FACES",
680
+ "LENSES_DETECTED",
681
+ "FACE_MASK_DETECTED",
682
+ "CLOSED_EYES_DETECTED",
683
+ "HEAD_COVER_DETECTED",
684
+ "BAD_PHOTO_QUALITY",
685
+ "PROCESSING_ERROR",
686
+ "BAD_REQUEST",
687
+ "SERVER_ERROR"
688
+ ].map((code) => [code, COMMON_UNEXPECTED_ERROR])),
689
+ DEEPSIGHT_INITIALIZATION_FAILED: COMMON_UNEXPECTED_ERROR,
690
+ COMBINED_CONSENT_LOAD_FAILED: COMMON_UNEXPECTED_ERROR,
691
+ REGULATORY_CONSENT_LOAD_FAILED: COMMON_UNEXPECTED_ERROR,
692
+ IDENTITY_REUSE_FLOW_MISCONFIGURED: COMMON_UNEXPECTED_ERROR,
693
+ VIDEO_SELFIE_VALIDATION_ATTEMPTS_EXHAUSTED: "videoSelfie.error.maxVideoLengthReached"
694
+ };
695
+ //#endregion
696
+ //#region src/shared/terminalErrorPage/terminalErrorPageHelpers.ts
697
+ function hasTerminalErrorTranslation(code) {
698
+ return Object.prototype.hasOwnProperty.call(TERMINAL_ERROR_TRANSLATION_KEYS, code);
699
+ }
700
+ function getTerminalErrorMessage(t, message, moduleErrorCode) {
701
+ if (moduleErrorCode && hasTerminalErrorTranslation(moduleErrorCode)) return t(TERMINAL_ERROR_TRANSLATION_KEYS[moduleErrorCode]);
702
+ return message ?? t("common.unexpectedError");
703
+ }
704
+ //#endregion
516
705
  //#region src/shared/terminalErrorPage/terminalErrorPage.tsx
706
+ var Denied = z(() => import("./denied-D4oFpTuV.js").then((module) => ({ default: module.Denied })));
517
707
  /**
518
708
  * Terminal error screen shown by `<incode-flow>` / `<incode-workflow>` when
519
709
  * the SDK reaches an unrecoverable error state — both during initialization
@@ -521,10 +711,8 @@ function useFeatureManagement(kind, name, options) {
521
711
  * and during the flow/workflow lifecycle (e.g. `/omni/workflow/process/node`,
522
712
  * `/omni/finish-status`, or a child module's terminal error).
523
713
  *
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.
714
+ * Backend-provided messages are rendered verbatim. Known module errors use
715
+ * localized copy; generic transport failures fall back to a translated default.
528
716
  *
529
717
  * Layout: `Page` is used for the Incode logo + optional "Verified by Incode"
530
718
  * footer only — the title/subtitle/titleTopSlot slots are deliberately *not*
@@ -535,12 +723,8 @@ function useFeatureManagement(kind, name, options) {
535
723
  * which delegates to `onRetry`; non-retryable errors leave recovery to the
536
724
  * host.
537
725
  */
538
- var TerminalErrorPage = ({ message, onRetry, retryable = true }) => {
726
+ var TerminalErrorPage = ({ message, moduleErrorCode, onRetry, retryable = true }) => {
539
727
  const { t } = useTranslation();
540
- const titleRef = A(null);
541
- y(() => {
542
- titleRef.current?.focus();
543
- }, []);
544
728
  const handleRetry = () => {
545
729
  if (onRetry) {
546
730
  onRetry();
@@ -548,6 +732,14 @@ var TerminalErrorPage = ({ message, onRetry, retryable = true }) => {
548
732
  }
549
733
  if (typeof window !== "undefined") window.location.reload();
550
734
  };
735
+ if (moduleErrorCode === "CAMERA_PERMISSION_DENIED") return /* @__PURE__ */ u(P, {
736
+ fallback: null,
737
+ children: /* @__PURE__ */ u(Denied, {
738
+ onRefresh: handleRetry,
739
+ "data-testid": "permissions",
740
+ "data-permission-status": "denied"
741
+ })
742
+ });
551
743
  return /* @__PURE__ */ u(Page, {
552
744
  className: "IncodeTerminalErrorPage",
553
745
  "data-testid": "terminal-error-page",
@@ -555,22 +747,23 @@ var TerminalErrorPage = ({ message, onRetry, retryable = true }) => {
555
747
  class: "IncodeTerminalErrorPageBody",
556
748
  children: [/* @__PURE__ */ u("div", {
557
749
  class: "IncodeTerminalErrorPageStatus",
558
- children: [
559
- /* @__PURE__ */ u(ErrorIcon, { size: 64 }),
560
- /* @__PURE__ */ u("h2", {
561
- ref: titleRef,
562
- class: "IncodeTerminalErrorPageTitle",
563
- tabIndex: -1,
564
- children: t("common.somethingWrong")
565
- }),
566
- /* @__PURE__ */ u("p", {
567
- class: "IncodeTerminalErrorPageMessage",
568
- children: message ?? t("common.unexpectedError")
569
- })
570
- ]
750
+ children: /* @__PURE__ */ u(AutoFocusTitle, {
751
+ className: "IncodeTerminalErrorPageTitle",
752
+ showSubtitle: true,
753
+ subtitle: getTerminalErrorMessage(t, message, moduleErrorCode),
754
+ subtitleProps: { className: "IncodeTerminalErrorPageMessage" },
755
+ icon: {
756
+ type: "status",
757
+ status: "error"
758
+ },
759
+ children: t("common.somethingWrong")
760
+ })
571
761
  }), retryable ? /* @__PURE__ */ u("div", {
572
762
  class: "IncodeTerminalErrorPageFooter",
573
- children: /* @__PURE__ */ u(Button, {
763
+ children: /* @__PURE__ */ u(PrizmaButton, {
764
+ variant: "primary",
765
+ size: "L",
766
+ className: "IncodeButton IncodeButtonPrimary IncodeButtonL",
574
767
  onClick: handleRetry,
575
768
  children: t("common.tryAgain")
576
769
  })
@@ -682,221 +875,4 @@ function withStandaloneModuleBootstrap(Component, moduleKey, options = {}) {
682
875
  });
683
876
  }
684
877
  //#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 };
878
+ export { useModuleTerminalCallbacks as _, useFeatureManagement as a, withSessionExpiry as b, useCopyToClipboard as c, useResizeObserver as d, useEventListener as f, isTerminalModuleState as g, useFormScrollable as h, TerminalErrorPage as i, useTimeout as l, useIsBrowserSupported as m, ResolvedConfigProvider as n, usePresence as o, useIsMobileDeviceWidth as p, useHasResolvedConfig as r, useAnimationSignal as s, withStandaloneModuleBootstrap as t, useTimeoutHandle as u, useScreenOrientation as v, useModuleCancel as x, useManager as y };