@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
@@ -0,0 +1,762 @@
1
+ import { i as useTranslation } from "./i18n-Dp014ljG.js";
2
+ import { _ as q, b as u, c as z, d as T, f as _, i as D, l as A, m as d, o as P, w as k, y } from "./vendor-preact-DHGqBGMH.js";
3
+ import { x as PrizmaButton } from "./icons-c-hFaG4L.js";
4
+ import { n as cn } from "./spacer-Jaru_3sb.js";
5
+ import { t as Title } from "./typography-CiGhKJGx.js";
6
+ import { i as useCloseButton, t as Page } from "./page-U6jZ7BBI.js";
7
+ import { r as Modal } from "./pageUiConfig-Qf6ItVv9.js";
8
+ import { a as useFeatureManagement, d as useEventListener, o as usePresence, u as useResizeObserver } from "./hooks-BFP0WaJM.js";
9
+ import { t as TransitionSpinner } from "./transitionSpinner-Di0XBAix.js";
10
+ import { n as CameraFrame, t as CameraView } from "./cameraView-D9ZxLKtA.js";
11
+ import { n as CameraOverlay, t as CameraOverlayHeader } from "./cameraOverlayHeader-CuVGnyXI.js";
12
+ import { t as CaptureFooter } from "./captureFooter-B6WUFQCV.js";
13
+ import { a as resolveResultView, c as IdError, d as QuestionIcon, f as InfoNotReadableIcon, i as resolveLiveView, l as IdSuccess, m as BlurIcon, n as useCaptureAutoFocus, p as GlareIcon, u as IdAnalyzing } from "./captureFocusContext-9789qOe3.js";
14
+ import { c as EXPERIMENT_LIFECYCLE_STATUS, f as MANUAL_TOOLTIP, g as MANUAL_TOOLTIP_DISMISS_DELAY_MS, h as MANUAL_TOOLTIP_DEDUPE_RULE_PER_CAPTURE, i as ID_EXPERIMENTS, p as MANUAL_TOOLTIP_DEDUPE_RULE_ONCE, r as useIdExperiment } from "./flipCapturedCardEligibility-DLr9F2g2.js";
15
+ import { t as useCaptureHelpButton } from "./useCaptureHelpButton-Dj-jESrS.js";
16
+ import { i as usePreloadCaptureAnimations, n as CaptureNotification } from "./manualCaptureButton-Dw0MMSkc.js";
17
+ import { eventModuleNames, stateChanged } from "@incodetech/core/events";
18
+ import { ONBOARDING_WEB_SDK_PARAMETER_STORE } from "@incodetech/core/feature-management";
19
+ //#region src/modules/id/commonIssues.tsx
20
+ var CommonIssues = ({ open, onClose, onTakeManually, onTakeAutomatically, portalContainer }) => {
21
+ const { t } = useTranslation();
22
+ const titleRef = q((el) => {
23
+ el?.focus();
24
+ }, []);
25
+ const handleSwitchCaptureMode = () => {
26
+ (onTakeAutomatically ?? onTakeManually)();
27
+ onClose();
28
+ };
29
+ return /* @__PURE__ */ u(Modal.Root, {
30
+ open,
31
+ onOpenChange: (isOpen) => {
32
+ if (!isOpen) onClose();
33
+ },
34
+ class: "IncodeCommonIssuesFullScreen",
35
+ hasBackdrop: false,
36
+ portalContainer: portalContainer ?? void 0,
37
+ manageInitialFocus: false,
38
+ children: /* @__PURE__ */ u(Modal.Content, {
39
+ class: "IncodeCommonIssuesContent",
40
+ children: [
41
+ /* @__PURE__ */ u(Modal.Icon, {
42
+ class: "IncodeCommonIssuesQuestionIcon",
43
+ children: /* @__PURE__ */ u(QuestionIcon, {})
44
+ }),
45
+ /* @__PURE__ */ u(Modal.TitleSection, { children: /* @__PURE__ */ u(Title, {
46
+ id: "incode-modal-title",
47
+ ref: titleRef,
48
+ className: "IncodeCommonIssuesTitle",
49
+ tabIndex: -1,
50
+ children: t("commonIssues.commonIssues")
51
+ }) }),
52
+ /* @__PURE__ */ u("div", {
53
+ class: "IncodeCommonIssuesCards",
54
+ children: [
55
+ /* @__PURE__ */ u("div", {
56
+ class: "IncodeCommonIssuesCard",
57
+ children: [/* @__PURE__ */ u("div", {
58
+ class: "IncodeCommonIssuesCardIcon",
59
+ "aria-hidden": "true",
60
+ children: /* @__PURE__ */ u(GlareIcon, {})
61
+ }), /* @__PURE__ */ u("div", {
62
+ class: "IncodeCommonIssuesCardText",
63
+ children: [/* @__PURE__ */ u("h3", {
64
+ class: "IncodeCommonIssuesCardTitle",
65
+ children: t("commonIssues.glarePresent")
66
+ }), /* @__PURE__ */ u("p", {
67
+ class: "IncodeCommonIssuesCardBody",
68
+ children: t("commonIssues.glarePresentDescription")
69
+ })]
70
+ })]
71
+ }),
72
+ /* @__PURE__ */ u("div", {
73
+ class: "IncodeCommonIssuesCard",
74
+ children: [/* @__PURE__ */ u("div", {
75
+ class: "IncodeCommonIssuesCardIcon",
76
+ "aria-hidden": "true",
77
+ children: /* @__PURE__ */ u(BlurIcon, {})
78
+ }), /* @__PURE__ */ u("div", {
79
+ class: "IncodeCommonIssuesCardText",
80
+ children: [/* @__PURE__ */ u("h3", {
81
+ class: "IncodeCommonIssuesCardTitle",
82
+ children: t("commonIssues.blurPresent")
83
+ }), /* @__PURE__ */ u("p", {
84
+ class: "IncodeCommonIssuesCardBody",
85
+ children: t("commonIssues.blurPresentDescription")
86
+ })]
87
+ })]
88
+ }),
89
+ /* @__PURE__ */ u("div", {
90
+ class: "IncodeCommonIssuesCard",
91
+ children: [/* @__PURE__ */ u("div", {
92
+ class: "IncodeCommonIssuesCardIcon",
93
+ "aria-hidden": "true",
94
+ children: /* @__PURE__ */ u(InfoNotReadableIcon, {})
95
+ }), /* @__PURE__ */ u("div", {
96
+ class: "IncodeCommonIssuesCardText",
97
+ children: [/* @__PURE__ */ u("h3", {
98
+ class: "IncodeCommonIssuesCardTitle",
99
+ children: t("commonIssues.notReadable")
100
+ }), /* @__PURE__ */ u("p", {
101
+ class: "IncodeCommonIssuesCardBody",
102
+ children: t("commonIssues.notReadableDescription")
103
+ })]
104
+ })]
105
+ })
106
+ ]
107
+ }),
108
+ /* @__PURE__ */ u(Modal.Actions, {
109
+ class: "IncodeCommonIssuesButtons",
110
+ children: [/* @__PURE__ */ u(PrizmaButton, {
111
+ size: "L",
112
+ variant: "tertiary-link",
113
+ onClick: handleSwitchCaptureMode,
114
+ className: "IncodeButton IncodeButtonLink IncodeButtonL IncodeCommonIssuesTakeManually",
115
+ children: t(onTakeAutomatically ? "commonIssues.takeAutomatically" : "commonIssues.takeManually")
116
+ }), /* @__PURE__ */ u(PrizmaButton, {
117
+ variant: "primary",
118
+ size: "L",
119
+ onClick: onClose,
120
+ className: "IncodeButton IncodeButtonPrimary IncodeButtonL IncodeCommonIssuesTryAgain",
121
+ children: t("commonIssues.tryAgain")
122
+ })]
123
+ })
124
+ ]
125
+ })
126
+ });
127
+ };
128
+ //#endregion
129
+ //#region src/modules/id/experiments/useCaptureResultPreview.ts
130
+ var CROSSFADE_ANIMATION_NAME = "incodeIdCaptureResultCrossfadeOut";
131
+ var CROSSFADE_WATCHDOG_MS = 1e3;
132
+ /**
133
+ * IDC-05 rendering state.
134
+ *
135
+ * Core owns the phase on **both** paths — `detectingWithOptimization.optimizing`
136
+ * before the frame is committed (auto capture), `optimizingHold` after it
137
+ * (manual capture) — and reports both as `captureStatus: 'optimizing'`. So there
138
+ * is no dwell timer here, nothing to acknowledge, and no branch on which path
139
+ * produced it.
140
+ *
141
+ * What stays UI-owned is only the *tail*: keeping the frozen still (and the live
142
+ * camera layer beneath it) mounted for the length of the crossfade into the
143
+ * analyzing screen. `usePresence` starts that exit in the *same* render that
144
+ * stops reporting the phase — deriving it from an effect instead leaves one
145
+ * paintable frame with neither the still nor the fade, which resolves to the
146
+ * analyzing stage: the live `<video>` is destroyed, a bare `IdAnalyzing` flashes
147
+ * with no fade and an undecoded image, and the fade then remounts the element and
148
+ * re-attaches the MediaStream — a visible blink.
149
+ */
150
+ var useCaptureResultPreview = (state) => {
151
+ const enabled = state.captureFeedbackMode === "optimizing";
152
+ const isOptimizing = enabled && state.captureStatus === "optimizing";
153
+ /**
154
+ * The auto path's phase runs before the commit, so its still is the best
155
+ * frame *so far*; the manual path's runs after, so `previewImageUrl` is all
156
+ * there is. One expression covers both.
157
+ *
158
+ * At the commit, core clears `candidateImageUrl` in the same assign that
159
+ * sets `previewImageUrl` (`getStoreCapturedImageValues`), so this falls through
160
+ * to the committed frame for the crossfade — the better-rectified crop, and the
161
+ * same URL the analyzing layer beneath is already mounting, so the swap paints
162
+ * from that URL's cache entry rather than decoding cold. The fallthrough is
163
+ * also what lets core free the phase's blob at the commit instead of holding it
164
+ * to the next boundary.
165
+ */
166
+ const imageUrl = state.candidateImageUrl ?? state.previewImageUrl;
167
+ const { phase, isRendered, onAnimationEnd } = usePresence({
168
+ present: isOptimizing && Boolean(imageUrl),
169
+ animationName: CROSSFADE_ANIMATION_NAME,
170
+ timeoutMs: CROSSFADE_WATCHDOG_MS,
171
+ skipExit: !(state.previewImageUrl && state.captureStatus === "uploading")
172
+ });
173
+ return {
174
+ enabled,
175
+ phase,
176
+ isResultPreview: isRendered,
177
+ resultPreviewImageUrl: isRendered ? imageUrl : void 0,
178
+ isCrossfading: phase === "exiting",
179
+ onCrossfadeEnd: onAnimationEnd
180
+ };
181
+ };
182
+ //#endregion
183
+ //#region src/modules/id/capture/captureHelpers.ts
184
+ /**
185
+ * Which layer(s) the capture screen mounts.
186
+ *
187
+ * The crossfade wins outright while it runs: on the IDC-05 treatment the machine
188
+ * commits the frame on its own clock, so `uploading` arrives *before* the fade
189
+ * rather than after it, and letting `uploading` win would hard-cut the live
190
+ * layer away mid-animation.
191
+ *
192
+ * A `present` phase keeps the live layer mounted through the manual-capture
193
+ * result preview, where a committed `previewImageUrl` already exists but the frozen still
194
+ * is deliberately still on screen.
195
+ */
196
+ function getCaptureStageView(state, phase) {
197
+ const isCommitted = state.captureStatus === "capturing" || state.captureStatus === "uploading";
198
+ if (!state.previewImageUrl) return isCommitted ? "analyzing" : "live";
199
+ if (phase === "exiting") return "crossfade";
200
+ if (phase === "present") return "live";
201
+ return isCommitted ? "analyzing" : "live";
202
+ }
203
+ function getCaptureMode(state) {
204
+ return state.currentMode === "passport" ? "passport" : "id";
205
+ }
206
+ /**
207
+ * Whether the manual-capture button is on screen right now: either the
208
+ * genuine auto-capture-failed fallback (`detectionStatus === 'manualCapture'`)
209
+ * or the `showCaptureButtonInAuto` shortcut (autocapture still running, button
210
+ * offered as an optional shortcut). Shared by `Capture`'s render and
211
+ * `useManualTooltipExperiment`'s sticky latch so the two can't drift apart.
212
+ */
213
+ function isManualCaptureShown(state) {
214
+ return state.detectionStatus === "manualCapture" || state.showCaptureButtonInAuto && state.captureStatus === "detecting" && state.detectionStatus !== "capturing";
215
+ }
216
+ //#endregion
217
+ //#region src/modules/id/experiments/useManualTooltipExperiment.ts
218
+ /**
219
+ * IDC-08: resolves the manual-capture tooltip/title arm.
220
+ *
221
+ * A timing constraint the shared `useIdExperiment` hook doesn't cover on its
222
+ * own:
223
+ *
224
+ * **Expose at capture entry, report at treatment show (else at commit).**
225
+ * The arm is resolved (and Statsig-exposed) from the first render of
226
+ * `Capture` so the exposed population stays symmetric across arms, but the
227
+ * `experimentAssigned` interview-event lands at the first of two moments:
228
+ * the render where the manual-capture surface (the thing the arms actually
229
+ * change) becomes visible — so a session that sees the treatment and then
230
+ * abandons is still counted — or, for sessions that never show it, once a
231
+ * frame is committed. Reporting a never-shown session before commit would
232
+ * misdescribe it: `showedManualCapture: false` could still flip to `true`,
233
+ * but the first-wins dedupe would have already locked it in.
234
+ * `reportAssignment` gates the report without re-gating (and so
235
+ * re-exposing) the resolve.
236
+ *
237
+ * Reporting granularity is remote-selectable via
238
+ * `MANUAL_TOOLTIP_DEDUPE_RULE_PARAM` (ships ahead of the PM/mobile sync on
239
+ * the final rule, so it can be flipped without a code change): `'once'`
240
+ * (default) is one `experimentAssigned` per session — `Capture` unmounts
241
+ * between the front and back side, so whichever side reports first is the
242
+ * one the event describes, and the other side's report is a no-op.
243
+ * `'per-capture'` is one event per (ID-module allocation, side) instead — see
244
+ * `getManualTooltipDedupeKey`.
245
+ */
246
+ function useManualTooltipExperiment(manager, state) {
247
+ const { value: onboardingParameterStore } = useFeatureManagement("parameterStore", ONBOARDING_WEB_SDK_PARAMETER_STORE, { disableExposureLog: true });
248
+ const dedupeKey = getManualTooltipDedupeKey(onboardingParameterStore, manager, state);
249
+ const showedManualCaptureRef = A(false);
250
+ if (isManualCaptureShown(state)) showedManualCaptureRef.current = true;
251
+ const { params, status } = useIdExperiment({
252
+ key: "manualTooltip",
253
+ enabled: true,
254
+ reportAssignment: showedManualCaptureRef.current || state.captureStatus === "uploading" || state.captureStatus === "holdOn",
255
+ dedupeKey,
256
+ conditions: { showedManualCapture: showedManualCaptureRef.current }
257
+ });
258
+ let dismissDelayMs = MANUAL_TOOLTIP_DISMISS_DELAY_MS;
259
+ if (status === EXPERIMENT_LIFECYCLE_STATUS.PENDING) return {
260
+ variant: MANUAL_TOOLTIP.CONTROL,
261
+ dismissDelayMs
262
+ };
263
+ if (params.manualTooltipVariant === MANUAL_TOOLTIP.AUTO_DISMISS) dismissDelayMs = params.autoDismissIntervalMs;
264
+ return {
265
+ variant: params.manualTooltipVariant,
266
+ dismissDelayMs
267
+ };
268
+ }
269
+ var captureOccurrences = /* @__PURE__ */ new WeakMap();
270
+ var nextCaptureOccurrence = 1;
271
+ function getCaptureOccurrence(manager) {
272
+ let occurrence = captureOccurrences.get(manager);
273
+ if (occurrence === void 0) {
274
+ occurrence = nextCaptureOccurrence++;
275
+ captureOccurrences.set(manager, occurrence);
276
+ }
277
+ return occurrence;
278
+ }
279
+ function getManualTooltipDedupeKey(store, manager, state) {
280
+ const dedupeRule = store.get("idcExp08ManualTooltipDedupeRule", "once") === "per-capture" ? MANUAL_TOOLTIP_DEDUPE_RULE_PER_CAPTURE : MANUAL_TOOLTIP_DEDUPE_RULE_ONCE;
281
+ const captureInstance = getCaptureOccurrence(manager);
282
+ const base = ID_EXPERIMENTS.manualTooltip.storeParam;
283
+ if (dedupeRule === "once") return base;
284
+ return `${base}:${captureInstance}:${state.currentMode}:${state.attemptsRemaining}`;
285
+ }
286
+ //#endregion
287
+ //#region src/modules/id/capture/captureResultFlash.tsx
288
+ var FLASH_ANIMATION_NAME = "incodeCaptureResultFlash";
289
+ /**
290
+ * One-shot white "shutter" flash: on the `uxp_idc_exp05_show_result`
291
+ * treatment's result preview, and at the end of the countdown. Plays on mount
292
+ * (after `delayMs`) and reports `animationend` so its parent can remove and
293
+ * re-arm it for the next capture.
294
+ */
295
+ var CaptureResultFlash = ({ delayMs, onAnimationStart, onAnimationEnd }) => {
296
+ const hasStartedRef = A(false);
297
+ return /* @__PURE__ */ u("div", {
298
+ class: "IncodeCaptureResultFlash",
299
+ "aria-hidden": "true",
300
+ style: delayMs ? { "--capture-result-flash-delay": `${delayMs}ms` } : void 0,
301
+ onAnimationStart: (event) => {
302
+ if (event.animationName !== FLASH_ANIMATION_NAME || hasStartedRef.current) return;
303
+ hasStartedRef.current = true;
304
+ onAnimationStart?.();
305
+ },
306
+ onAnimationEnd: (event) => {
307
+ if (event.animationName !== FLASH_ANIMATION_NAME) return;
308
+ onAnimationEnd?.();
309
+ }
310
+ });
311
+ };
312
+ //#endregion
313
+ //#region src/modules/id/capture/idHint.tsx
314
+ var FrontHorizontalHintSvg = z(() => import("./front-horizontal-hint-DOphQZg2.js"));
315
+ var FrontVerticalHintSvg = z(() => import("./front-vertical-hint-S6PcS9_m.js"));
316
+ var BackHorizontalHintSvg = z(() => import("./back-horizontal-hint-qzSaNkEU.js"));
317
+ var BackVerticalHintSvg = z(() => import("./back-vertical-hint-DkYLOege.js"));
318
+ var PassportHorizontalHintSvg = z(() => import("./passport-horizontal-hint-Ddsh6fUS.js"));
319
+ var PassportVerticalHintSvg = z(() => import("./passport-vertical-hint-Dukxq6-T.js"));
320
+ var CARD_WIDTH_IN_SVG = {
321
+ "front-horizontal": 348,
322
+ "back-horizontal": 348,
323
+ "passport-horizontal": 342
324
+ };
325
+ var CARD_HEIGHT_IN_SVG = {
326
+ "front-vertical": 446,
327
+ "back-vertical": 446,
328
+ "passport-vertical": 342
329
+ };
330
+ function computeScale(mode, orientation, width, height) {
331
+ const key = `${mode}-${orientation}`;
332
+ const cardWidth = CARD_WIDTH_IN_SVG[key];
333
+ if (cardWidth) return width / cardWidth;
334
+ const cardHeight = CARD_HEIGHT_IN_SVG[key];
335
+ if (cardHeight) return height / cardHeight;
336
+ return 1;
337
+ }
338
+ var IdHint = ({ mode, orientation, onAnimationStart, onAnimationEnd }) => {
339
+ const containerRef = A(null);
340
+ const hasStartedRef = A(false);
341
+ const [scale, setScale] = d(1);
342
+ y(() => {
343
+ const el = containerRef.current;
344
+ if (!el) return;
345
+ const update = () => {
346
+ setScale(computeScale(mode, orientation, el.clientWidth, el.clientHeight));
347
+ };
348
+ update();
349
+ const observer = new ResizeObserver(update);
350
+ observer.observe(el);
351
+ return () => observer.disconnect();
352
+ }, [mode, orientation]);
353
+ const getSvgComponent = () => {
354
+ if (mode === "front") return orientation === "horizontal" ? /* @__PURE__ */ u(FrontHorizontalHintSvg, {}) : /* @__PURE__ */ u(FrontVerticalHintSvg, {});
355
+ if (mode === "back") return orientation === "horizontal" ? /* @__PURE__ */ u(BackHorizontalHintSvg, {}) : /* @__PURE__ */ u(BackVerticalHintSvg, {});
356
+ if (mode === "passport") return orientation === "horizontal" ? /* @__PURE__ */ u(PassportHorizontalHintSvg, {}) : /* @__PURE__ */ u(PassportVerticalHintSvg, {});
357
+ return null;
358
+ };
359
+ return /* @__PURE__ */ u("div", {
360
+ ref: containerRef,
361
+ class: "IncodeIdHint",
362
+ "aria-hidden": "true",
363
+ role: "presentation",
364
+ children: /* @__PURE__ */ u("div", {
365
+ class: "IncodeIdHintAnimated",
366
+ onAnimationStart: (event) => {
367
+ if (event.target !== event.currentTarget || event.animationName !== "slideUpAndDown" || hasStartedRef.current) return;
368
+ hasStartedRef.current = true;
369
+ onAnimationStart?.();
370
+ },
371
+ onAnimationEnd: (event) => {
372
+ if (event.target === event.currentTarget && event.animationName === "slideUpAndDown") onAnimationEnd?.();
373
+ },
374
+ children: /* @__PURE__ */ u(P, {
375
+ fallback: null,
376
+ children: /* @__PURE__ */ u("div", {
377
+ class: "IncodeIdHintSvg",
378
+ style: { transform: `scale(${scale})` },
379
+ children: getSvgComponent()
380
+ })
381
+ })
382
+ })
383
+ });
384
+ };
385
+ //#endregion
386
+ //#region src/modules/id/capture/captureLiveFrameContent.tsx
387
+ var CaptureLiveFrameContent = ({ countdownStart, countdownStepMs, showIdHint, mode, orientation, onIdHintAnimationStart, onIdHintAnimationEnd, onFlashAnimationStart }) => /* @__PURE__ */ u(k, { children: [countdownStart > 0 && /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u("div", {
388
+ class: "IncodeCaptureCounter",
389
+ "aria-hidden": "true",
390
+ style: { "--capture-countdown-step": `${countdownStepMs}ms` },
391
+ children: Array.from({ length: countdownStart }, (_, index) => /* @__PURE__ */ u("span", {
392
+ class: "IncodeCaptureCounterDigit",
393
+ style: { "--capture-countdown-index": index },
394
+ children: countdownStart - index
395
+ }, index))
396
+ }), /* @__PURE__ */ u(CaptureResultFlash, {
397
+ delayMs: countdownStart * countdownStepMs,
398
+ onAnimationStart: onFlashAnimationStart
399
+ })] }), showIdHint && /* @__PURE__ */ u(IdHint, {
400
+ mode,
401
+ orientation: orientation ?? "horizontal",
402
+ onAnimationStart: onIdHintAnimationStart,
403
+ onAnimationEnd: onIdHintAnimationEnd
404
+ })] });
405
+ //#endregion
406
+ //#region src/modules/id/capture/captureResultPreview.tsx
407
+ var CaptureResultPreview = ({ resultPreview, onFlashAnimationStart, onFlashAnimationEnd }) => {
408
+ const [hasFlashed, setHasFlashed] = d(false);
409
+ return /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u("img", {
410
+ src: resultPreview.imageUrl,
411
+ alt: "",
412
+ "aria-hidden": "true",
413
+ class: cn("IncodeCaptureResultImage", resultPreview.blurImage && "IncodeCaptureResultImageBlurred")
414
+ }), !hasFlashed && /* @__PURE__ */ u(CaptureResultFlash, {
415
+ onAnimationStart: onFlashAnimationStart,
416
+ onAnimationEnd: () => {
417
+ setHasFlashed(true);
418
+ onFlashAnimationEnd?.();
419
+ }
420
+ })] });
421
+ };
422
+ //#endregion
423
+ //#region src/modules/id/capture/captureOverlay.tsx
424
+ var MANUAL_CAPTURE_TOOLTIP_EXIT_ANIMATIONS = ["manualCaptureTooltipExit", "manualCaptureTooltipExitAutoDismiss"];
425
+ function reportAnimationState(mode, state) {
426
+ const screen = mode === "back" ? "idCapture.backCapture" : "idCapture.frontCapture";
427
+ stateChanged(eventModuleNames.idCapture, screen, { stateName: `${screen}.${state}` });
428
+ }
429
+ var CaptureOverlay = D(({ mode, orientation, detectionStatus, counterValue, countdownStart, countdownStepMs, isCapturing, showManualCapture, onCapture, onOpenHelp, helpButtonRef, captureButtonRef, hideFooterActions, captureDisabled, trackAnimationStates = true, resultPreview, manualTooltipUx }, ref) => {
430
+ const { t } = useTranslation();
431
+ const autoFocus = useCaptureAutoFocus();
432
+ usePreloadCaptureAnimations();
433
+ const helpButton = useCaptureHelpButton({
434
+ onOpenHelp,
435
+ ariaLabel: t("idv2.needHelp.open"),
436
+ buttonRef: helpButtonRef,
437
+ hidden: hideFooterActions
438
+ });
439
+ const closeButton = useCloseButton();
440
+ const isResultPreview = resultPreview !== void 0;
441
+ const isTooltipRemoved = manualTooltipUx.variant === MANUAL_TOOLTIP.REMOVE;
442
+ const hasShownIdHintRef = A(false);
443
+ const cameraOverlayHeaderTitleRef = A(null);
444
+ const [showIdHint, setShowIdHint] = d(false);
445
+ const hintStateModeRef = A();
446
+ const animationStateEnabledRef = A(false);
447
+ _(() => {
448
+ animationStateEnabledRef.current = trackAnimationStates;
449
+ if (hintStateModeRef.current === mode && trackAnimationStates && !isResultPreview && (detectionStatus === "detecting" || detectionStatus === "idle")) reportAnimationState(mode, "default");
450
+ if (!trackAnimationStates || hintStateModeRef.current !== mode || detectionStatus !== "idNotDetected" || isResultPreview) hintStateModeRef.current = void 0;
451
+ }, [
452
+ trackAnimationStates,
453
+ mode,
454
+ detectionStatus,
455
+ isResultPreview
456
+ ]);
457
+ _(() => () => {
458
+ animationStateEnabledRef.current = false;
459
+ hintStateModeRef.current = void 0;
460
+ }, []);
461
+ const trackAnimationState = (state) => {
462
+ if (!animationStateEnabledRef.current) return;
463
+ reportAnimationState(mode, state);
464
+ };
465
+ const handleIdHintAnimationStart = () => {
466
+ if (!animationStateEnabledRef.current || detectionStatus !== "idNotDetected" || isResultPreview) return;
467
+ hintStateModeRef.current = mode;
468
+ trackAnimationState("hint");
469
+ };
470
+ const handleIdHintAnimationEnd = () => {
471
+ if (hintStateModeRef.current === mode) {
472
+ hintStateModeRef.current = void 0;
473
+ trackAnimationState("default");
474
+ }
475
+ setShowIdHint(false);
476
+ };
477
+ const handleFlashAnimationStart = () => trackAnimationState("flash");
478
+ const [manualCaptureTooltipDismissed, setManualCaptureTooltipDismissed] = d(isTooltipRemoved);
479
+ y(() => {
480
+ if (detectionStatus === "idNotDetected") {
481
+ if (hasShownIdHintRef.current) return;
482
+ hasShownIdHintRef.current = true;
483
+ setShowIdHint(true);
484
+ return;
485
+ }
486
+ if (showIdHint) setShowIdHint(false);
487
+ }, [detectionStatus, showIdHint]);
488
+ y(() => {
489
+ if (!showManualCapture) setManualCaptureTooltipDismissed(isTooltipRemoved);
490
+ }, [showManualCapture, isTooltipRemoved]);
491
+ const handleManualCaptureTooltipAnimationEnd = (event) => {
492
+ if (!MANUAL_CAPTURE_TOOLTIP_EXIT_ANIMATIONS.includes(event.animationName)) return;
493
+ setManualCaptureTooltipDismissed(true);
494
+ };
495
+ y(() => {
496
+ if (!autoFocus || !showManualCapture || captureDisabled) return;
497
+ const button = captureButtonRef?.current;
498
+ if (!button || button.closest("[aria-hidden=\"true\"], [inert]")) return;
499
+ button.focus();
500
+ }, [
501
+ autoFocus,
502
+ showManualCapture,
503
+ captureDisabled,
504
+ captureButtonRef
505
+ ]);
506
+ _(() => {
507
+ if (!isResultPreview) return;
508
+ cameraOverlayHeaderTitleRef.current?.focus();
509
+ }, [isResultPreview]);
510
+ const { frameState, header } = T(() => isResultPreview ? resolveResultView(t) : resolveLiveView({
511
+ t,
512
+ mode,
513
+ detectionStatus,
514
+ isCapturing,
515
+ showManualCapture,
516
+ manualTooltipVariant: manualTooltipUx.variant
517
+ }), [
518
+ isResultPreview,
519
+ t,
520
+ mode,
521
+ detectionStatus,
522
+ isCapturing,
523
+ showManualCapture,
524
+ manualTooltipUx.variant
525
+ ]);
526
+ const isPassport = mode === "passport";
527
+ const frameOrientation = orientation !== "vertical" ? "horizontal" : "vertical";
528
+ const showManualCaptureNode = !isResultPreview && showManualCapture;
529
+ const showCounter = isCapturing && counterValue > 0;
530
+ const captureAriaLabel = header?.title ? `${header.title}. ${t("manualCapture.ariaLabel")}` : void 0;
531
+ const manualCaptureTooltip = /* @__PURE__ */ u("div", {
532
+ id: "manual-capture-tooltip",
533
+ class: "IncodeIdManualCaptureTooltip",
534
+ children: /* @__PURE__ */ u("ol", {
535
+ class: "IncodeIdManualCaptureTooltipList",
536
+ children: [/* @__PURE__ */ u("li", { children: t(isPassport ? "idv2.commonIssues.firstStepPassport" : "idv2.commonIssues.firstStep") }), /* @__PURE__ */ u("li", { children: t("idv2.commonIssues.secondStep") })]
537
+ })
538
+ });
539
+ return /* @__PURE__ */ u(CameraOverlay, {
540
+ className: "IncodeCaptureOverlayId IncodeCompactReflow",
541
+ floatingHelpButton: helpButton.floating,
542
+ floatingCloseButton: closeButton,
543
+ children: [
544
+ /* @__PURE__ */ u("div", {
545
+ class: "IncodeCaptureTopSection",
546
+ children: [!isResultPreview && /* @__PURE__ */ u(CaptureNotification, {
547
+ detectionStatus,
548
+ mode,
549
+ isCapturing
550
+ }), /* @__PURE__ */ u(CameraOverlayHeader, {
551
+ titleRef: cameraOverlayHeaderTitleRef,
552
+ title: header?.title ?? "",
553
+ subtitle: header?.subtitle,
554
+ visible: header !== null,
555
+ titleId: "id-capture-heading",
556
+ className: cn(isResultPreview && "IncodeCaptureResultHeaderReveal"),
557
+ autoFocusTitle: autoFocus
558
+ })]
559
+ }),
560
+ /* @__PURE__ */ u(CameraFrame, {
561
+ ref,
562
+ variant: "locked",
563
+ orientation: frameOrientation,
564
+ frameState,
565
+ className: cn(isPassport && "IncodeCaptureFramePassport"),
566
+ children: resultPreview ? /* @__PURE__ */ u(CaptureResultPreview, {
567
+ resultPreview,
568
+ onFlashAnimationStart: handleFlashAnimationStart
569
+ }) : /* @__PURE__ */ u(CaptureLiveFrameContent, {
570
+ countdownStart,
571
+ countdownStepMs,
572
+ showIdHint,
573
+ mode,
574
+ orientation,
575
+ onIdHintAnimationStart: handleIdHintAnimationStart,
576
+ onIdHintAnimationEnd: handleIdHintAnimationEnd,
577
+ onFlashAnimationStart: handleFlashAnimationStart
578
+ })
579
+ }),
580
+ /* @__PURE__ */ u("div", {
581
+ class: "IncodeSrOnly",
582
+ "aria-live": "polite",
583
+ "aria-atomic": "true",
584
+ children: showCounter ? counterValue : ""
585
+ }),
586
+ /* @__PURE__ */ u(CaptureFooter, {
587
+ onOpenHelp,
588
+ onCapture,
589
+ isManualCapture: showManualCapture,
590
+ captureAriaLabel,
591
+ helpButtonRef,
592
+ helpAriaLabel: helpButton.footer?.ariaLabel,
593
+ showHelpButton: Boolean(helpButton.footer),
594
+ captureButtonRef,
595
+ captureAriaDescribedBy: showManualCaptureNode ? "manual-capture-tooltip" : void 0,
596
+ hideActions: hideFooterActions,
597
+ captureDisabled,
598
+ children: showManualCaptureNode ? /* @__PURE__ */ u("div", {
599
+ class: cn("IncodeIdManualCaptureTooltipContainer", manualTooltipUx.variant === MANUAL_TOOLTIP.AUTO_DISMISS && "IncodeIdManualCaptureTooltipContainerAutoDismiss", manualCaptureTooltipDismissed && "IncodeIdManualCaptureTooltipContainerSrOnly"),
600
+ style: { "--manual-capture-tooltip-dismiss-delay": `${manualTooltipUx.dismissDelayMs}ms` },
601
+ onAnimationEnd: handleManualCaptureTooltipAnimationEnd,
602
+ children: manualCaptureTooltip
603
+ }) : null
604
+ })
605
+ ]
606
+ });
607
+ });
608
+ //#endregion
609
+ //#region src/modules/id/capture/capture.tsx
610
+ var Capture = ({ manager, state }) => {
611
+ const { enabled: resultPreviewEnabled, phase: resultPreviewPhase, isResultPreview, resultPreviewImageUrl, onCrossfadeEnd } = useCaptureResultPreview(state);
612
+ const manualTooltipUx = useManualTooltipExperiment(manager, state);
613
+ const stageView = getCaptureStageView(state, resultPreviewPhase);
614
+ const isCrossfadeStage = stageView === "crossfade";
615
+ const isLiveStage = stageView === "live";
616
+ const isCapturing = !isResultPreview && (state.captureStatus === "capturing" || state.detectionStatus === "capturing");
617
+ const countdownStartRef = A(0);
618
+ if (!isCapturing) countdownStartRef.current = 0;
619
+ else if (countdownStartRef.current === 0) countdownStartRef.current = state.counterValue;
620
+ const countdownStart = countdownStartRef.current;
621
+ const countdownEndMs = countdownStart * state.countdownStepMs;
622
+ if (state.captureStatus === "holdOn") return /* @__PURE__ */ u(TransitionSpinner, { subtitleKey: "idv2.capture.holdOn.subtitle" });
623
+ if (state.captureStatus === "success" && (state.previewImageUrl || state.barcodeFastPathCaptured)) return /* @__PURE__ */ u(IdSuccess, {
624
+ manager,
625
+ state,
626
+ blurImage: state.ageAssurance
627
+ });
628
+ if (state.captureStatus === "uploadError" && state.previewImageUrl) return /* @__PURE__ */ u(IdError, {
629
+ manager,
630
+ state,
631
+ blurImage: state.ageAssurance
632
+ });
633
+ const isAnalyzingPending = isLiveStage && countdownStart > 0;
634
+ const isAnalyzingHidden = isCrossfadeStage || isAnalyzingPending;
635
+ let idAnalyzingSlot = null;
636
+ if (!isLiveStage || isAnalyzingPending) idAnalyzingSlot = /* @__PURE__ */ u("div", {
637
+ class: cn("IncodeIdCaptureStageAnalyzing", isCrossfadeStage && "IncodeIdCaptureStageResultEntering", isAnalyzingPending && "IncodeIdCaptureStageAnalyzingPending"),
638
+ style: isAnalyzingPending ? { "--capture-countdown-end": `${countdownEndMs}ms` } : void 0,
639
+ "aria-hidden": isAnalyzingHidden || void 0,
640
+ inert: isAnalyzingHidden || void 0,
641
+ children: /* @__PURE__ */ u(IdAnalyzing, {
642
+ imageUrl: state.previewImageUrl,
643
+ progress: state.uploadProgress ?? 0,
644
+ orientation: state.orientation,
645
+ mode: getCaptureMode(state),
646
+ blurImage: state.ageAssurance,
647
+ autoFocusTitle: !isAnalyzingHidden,
648
+ simulatedProgressDelayMs: countdownEndMs,
649
+ resultPreviewEnabled
650
+ })
651
+ }, "analyzing");
652
+ let captureViewSlot = null;
653
+ if (stageView !== "analyzing") captureViewSlot = /* @__PURE__ */ u("div", {
654
+ class: cn("IncodeIdCaptureStageLive", isCrossfadeStage && "IncodeIdCaptureStageResultExiting"),
655
+ onAnimationEnd: onCrossfadeEnd,
656
+ children: /* @__PURE__ */ u(CaptureView, {
657
+ manager,
658
+ state,
659
+ isCapturing,
660
+ countdownStart,
661
+ isResultPreview,
662
+ resultPreviewImageUrl,
663
+ hideFooterActions: !isLiveStage || state.captureStatus === "optimizing",
664
+ manualTooltipUx
665
+ })
666
+ }, "live");
667
+ return /* @__PURE__ */ u("div", {
668
+ class: "IncodeIdCaptureStage",
669
+ children: [idAnalyzingSlot, captureViewSlot]
670
+ });
671
+ };
672
+ var CaptureView = ({ manager, state, isCapturing, countdownStart, isResultPreview, resultPreviewImageUrl, hideFooterActions, manualTooltipUx }) => {
673
+ const [previewPending, setPreviewPending] = d(true);
674
+ const frameRef = A(null);
675
+ const helpButtonRef = A(null);
676
+ const captureButtonRef = A(null);
677
+ const portalRef = A(null);
678
+ const [isHelpOpen, setIsHelpOpen] = d(false);
679
+ const reportFrame = q(() => {
680
+ const frameElement = frameRef.current;
681
+ if (!frameElement) return;
682
+ const rect = frameElement.getBoundingClientRect();
683
+ manager.updateDetectionArea({
684
+ x: rect.left,
685
+ y: rect.top,
686
+ width: rect.width,
687
+ height: rect.height
688
+ });
689
+ }, [manager]);
690
+ useEventListener("resize", reportFrame);
691
+ useResizeObserver(frameRef, reportFrame);
692
+ const showManualCapture = isManualCaptureShown(state);
693
+ const resultPreview = isResultPreview && resultPreviewImageUrl ? {
694
+ imageUrl: resultPreviewImageUrl,
695
+ blurImage: state.ageAssurance
696
+ } : void 0;
697
+ const handleOpenHelp = () => {
698
+ if (manager.openHelp()) setIsHelpOpen(true);
699
+ };
700
+ const handleCloseHelp = () => {
701
+ manager.closeHelp();
702
+ setIsHelpOpen(false);
703
+ requestAnimationFrame(() => {
704
+ if (captureButtonRef.current) captureButtonRef.current.focus();
705
+ else helpButtonRef.current?.focus();
706
+ });
707
+ };
708
+ const handleTakeManually = () => {
709
+ manager.switchToManualCapture();
710
+ };
711
+ const handleTakeAutomatically = () => {
712
+ manager.switchToAutoCapture();
713
+ };
714
+ const handleCapture = () => {
715
+ if (!previewPending) manager.capture();
716
+ };
717
+ const mirrored = !state.usingBackCamera;
718
+ return /* @__PURE__ */ u(Page, {
719
+ hideHeader: true,
720
+ hideFooterBranding: true,
721
+ className: "IncodeIdCapturePage",
722
+ children: [
723
+ /* @__PURE__ */ u(CameraView, {
724
+ stream: state.stream,
725
+ onPlaying: reportFrame,
726
+ onPreviewPendingChange: setPreviewPending,
727
+ mirrored,
728
+ "aria-hidden": isHelpOpen || void 0,
729
+ children: /* @__PURE__ */ u(CaptureOverlay, {
730
+ ref: frameRef,
731
+ mode: state.currentMode,
732
+ orientation: state.orientation,
733
+ detectionStatus: state.detectionStatus,
734
+ counterValue: state.counterValue,
735
+ countdownStart,
736
+ countdownStepMs: state.countdownStepMs,
737
+ isCapturing,
738
+ showManualCapture,
739
+ onCapture: handleCapture,
740
+ onOpenHelp: handleOpenHelp,
741
+ helpButtonRef,
742
+ captureButtonRef,
743
+ resultPreview,
744
+ hideFooterActions,
745
+ captureDisabled: previewPending,
746
+ manualTooltipUx,
747
+ trackAnimationStates: !isHelpOpen && (state.captureStatus === "detecting" || state.captureStatus === "optimizing")
748
+ })
749
+ }),
750
+ /* @__PURE__ */ u("div", { ref: portalRef }),
751
+ /* @__PURE__ */ u(CommonIssues, {
752
+ open: isHelpOpen,
753
+ onClose: handleCloseHelp,
754
+ onTakeManually: handleTakeManually,
755
+ onTakeAutomatically: state.detectionStatus === "manualCapture" ? handleTakeAutomatically : void 0,
756
+ portalContainer: portalRef.current
757
+ })
758
+ ]
759
+ });
760
+ };
761
+ //#endregion
762
+ export { CaptureOverlay as n, Capture as t };