@incodetech/web 2.4.1 → 2.5.0-rc.0

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-DRRBxdLP.js} +23 -8
  3. package/dist/Password-CY3Tv_5W.js +212 -0
  4. package/dist/RadioGroup-CnxMGtas.js +123 -0
  5. package/dist/RequiredLegend-CLQ0HX7d.js +16 -0
  6. package/dist/RequiredMarker-CAqxArxr.js +16 -0
  7. package/dist/TextField-MsdsbAbT.js +166 -0
  8. package/dist/ae-signature/ae-signature.es.js +4 -4
  9. package/dist/{af-ZA-Dm5i-KRC.js → af-ZA-CtJyXRHO.js} +129 -881
  10. package/dist/{ageVerification-n-1fouaD.js → ageVerification-C6fgHkhK.js} +10 -8
  11. package/dist/{am-UBTEdpJv.js → am-BvQDMy8e.js} +129 -881
  12. package/dist/antifraud/antifraud.es.js +5 -4
  13. package/dist/applyStudioConfig-DO18I6Cf.js +126 -0
  14. package/dist/{ar-AE--KjG2EAr.js → ar-AE-CmS-eCPq.js} +129 -881
  15. package/dist/{ar-RFuhholc.js → ar-Bpe0wGYL.js} +129 -881
  16. package/dist/{ar-EG-y8SWJjy1.js → ar-EG-DaxpzWwx.js} +129 -881
  17. package/dist/assertClassBrand-F6pL6aIr.js +17 -0
  18. package/dist/authentication/authentication.es.js +9 -6
  19. package/dist/autoFocusTitle-D_vDhPqZ.js +19 -0
  20. package/dist/{az-4Z0ZZq7T.js → az-zSRFEU_F.js} +129 -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-Bktx_Yrr.js} +9 -7
  25. package/dist/{bn-CNhjOqja.js → bn-BrITyCOh.js} +129 -881
  26. package/dist/{bottomSheet-B4REej8W.js → bottomSheet-CzU1QNua.js} +3 -3
  27. package/dist/{bs-Culcuxab.js → bs-rdaEnpNo.js} +128 -880
  28. package/dist/{ca-h1xwo6CW.js → ca-BEtpN_ag.js} +128 -880
  29. package/dist/cameraOverlay-D6NPWfIT.js +2 -0
  30. package/dist/{cameraOverlayHeader-D4Bjr6Fw.js → cameraOverlayHeader-DZHCfN1x.js} +9 -8
  31. package/dist/{cameraView-BpdAdfIK.js → cameraView-CYd-_y_r.js} +13 -14
  32. package/dist/capture-BBQJgktJ.js +2 -0
  33. package/dist/{tutorial-HfSD-QZ3.js → capture-BstPDTgL.js} +226 -82
  34. package/dist/capture-CkvbPbJK.js +754 -0
  35. package/dist/capture-DiJGnu9z.js +3 -0
  36. package/dist/captureButtonIcon-DhTUlcGq.js +1 -0
  37. package/dist/captureFocusContext-FsGun4Yd.js +718 -0
  38. package/dist/captureFooter-BLJ1Qvov.js +47 -0
  39. package/dist/{ceb-pTDH3h1x.js → ceb-D5rPC9mY.js} +129 -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-HfnbGBMk.js} +4 -4
  44. package/dist/chooser-Dm0wohHb.js +1517 -0
  45. package/dist/connectionError-BFVvBEMq.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-CEJAgeRY.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-BEprNqLt.js} +128 -880
  54. package/dist/{cs-CrQuSSOI.js → cs-D_U436l9.js} +128 -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-DqebmaL5.js} +33 -20
  59. package/dist/{customWatchlist-DmROVUfp.js → customWatchlist-DVSMbzw5.js} +11 -9
  60. package/dist/{da-DK-CgrU79mp.js → da-DK-dMikXCNn.js} +128 -880
  61. package/dist/dashboardTheme-CB91NoiD.js +388 -0
  62. package/dist/{dateInputComposed-Bu7vM-M4.js → dateInputComposed-CVJ4LSep.js} +4 -5
  63. package/dist/dateInputComposed-DF0Dx86l.js +1 -0
  64. package/dist/{de-D0xnkswj.js → de-C3c7Bo-M.js} +128 -880
  65. package/dist/denied-BR9pZqKi.js +272 -0
  66. package/dist/devWarn-CXWsIkak.js +1034 -0
  67. package/dist/deviceWallet-DDHk7jBw.js +37 -0
  68. package/dist/{digitalIdRedirect-Dpv37Mbi.js → digitalIdRedirect-DKJgITR_.js} +4 -4
  69. package/dist/{digitalIdUpload-DKXe-_GE.js → digitalIdUpload-BgG6svjJ.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-Cu3F_ka7.js} +136 -72
  74. package/dist/documentCapture-owKpu8oI.js +2 -0
  75. package/dist/{dropdownComposed-B-qTBcja.js → dropdownComposed-BJCNWDGU.js} +8 -6
  76. package/dist/dropdownComposed-zidm_XVK.js +1 -0
  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-Qc_5cB3W.js +2 -0
  82. package/dist/{ekybModule-qkUiNFdJ.js → ekybModule-tV6tUWe_.js} +109 -89
  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-BgB_xu54.js +789 -0
  90. package/dist/ekycModule-DZ7yboJO.js +2 -0
  91. package/dist/ekycPrefillModule-B0cJJiuu.js +2 -0
  92. package/dist/ekycPrefillModule-B1xn0veW.js +233 -0
  93. package/dist/{el-GR-DPUvlcvr.js → el-GR-eG5AImZr.js} +128 -880
  94. package/dist/{el-B5gLXHxC.js → el-LOaoXfUU.js} +129 -881
  95. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  96. package/dist/{electronic-signature-Jx8qWrW-.js → electronic-signature-BleJ65-Y.js} +55 -36
  97. package/dist/email/email.es.js +21 -16
  98. package/dist/{emailInput-ClX3Lu8X.js → emailInput-BVx96bJy.js} +23 -12
  99. package/dist/{en-DNuMvR7-.js → en-B_-7--AN.js} +129 -881
  100. package/dist/{en-DG-DOwBuCCl.js → en-DG-BDnlBAUl.js} +129 -881
  101. package/dist/{errorContent-B_pH1MX7.js → errorContent-x8IajOaE.js} +21 -20
  102. package/dist/errorParams-B68-Euu2.js +37 -0
  103. package/dist/es-419-DS4mN2d_.js +5 -0
  104. package/dist/{es-ES-BF9vl0Um.js → es-ES-BMafdM90.js} +128 -880
  105. package/dist/{es-MX-Brp4FXN8.js → es-MX-DqhG7Zy7.js} +128 -880
  106. package/dist/{es-DNl7ceDm.js → es-T4K5G5zB.js} +129 -881
  107. package/dist/{et-D5pPP4r0.js → et-fBoHBc5h.js} +129 -881
  108. package/dist/expiredId-Q5ITzZU-.js +67 -0
  109. package/dist/extensibility.es.js +382 -55
  110. package/dist/{fa-IR-BoyK-lax.js → fa-IR--PnMtKvC.js} +129 -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-Dp1AGBtg.js → faceMatch-D-ehWIdN.js} +54 -71
  115. package/dist/faceMatch-RxP2VPBm.js +2 -0
  116. package/dist/{fi-FI-mYdAUbtG.js → fi-FI-D-T9bf67.js} +128 -880
  117. package/dist/field-comparison/field-comparison.es.js +1 -1
  118. package/dist/fieldComparison-BhYiGx0t.js +2 -0
  119. package/dist/fieldComparison-c3xT3K4C.js +126 -0
  120. package/dist/{fieldLabelHint-CxjArYkQ.js → fieldLabelHint-yMZjXK6p.js} +3 -3
  121. package/dist/{finalSuccessScreen-BgPVGAr4.js → finalSuccessScreen-CDr8bsI6.js} +31 -22
  122. package/dist/fiscal-qr/fiscal-qr.es.js +32 -26
  123. package/dist/flipAnimation-C95PZFAJ.js +46 -0
  124. package/dist/flipCapturedCardEligibility-CcB0uVfH.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-Ba8BQ_l8.js +49 -0
  130. package/dist/{fr-B4R5fgnm.js → fr-BlNTqS4_.js} +128 -880
  131. package/dist/{fr-CA-DJSwRuWt.js → fr-CA-DBO_1sfd.js} +128 -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-C-PnifVg.js} +129 -881
  137. package/dist/helpButtonConfig-BFragC_J.js +24 -0
  138. package/dist/{hi-DFXhGN9O.js → hi-mETIwcDe.js} +129 -881
  139. package/dist/{hmn-BlNbfL-D.js → hmn-BZabGetu.js} +129 -881
  140. package/dist/{homeScreen-DjzxBrYL.js → homeScreen-CcRzcWya.js} +26 -14
  141. package/dist/{incodeComponent-B-lwJJCV.js → hooks-nmwpawA2.js} +256 -280
  142. package/dist/{hr-DArr3n62.js → hr-DzkTH3cj.js} +128 -880
  143. package/dist/{ht-CAd-Hmi1.js → ht-D5zV7ROu.js} +129 -881
  144. package/dist/{hu-CulT8eq_.js → hu-CeHrYR4q.js} +130 -882
  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-B_qFrh_W.js} +129 -881
  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-DuwSIp-D.js +154 -0
  158. package/dist/{idOcr-BWG3vj8j.js → idOcr-DatcQrFh.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-DFue7FgD.js +235 -0
  162. package/dist/incodeModule-BWSWx6zz.js +41 -0
  163. package/dist/index.es.js +4 -3
  164. package/dist/{inputComposed-B35soRFg.js → inputComposed-6M3lOVUo.js} +4 -4
  165. package/dist/{it-fs9OkGbv.js → it-CwzQoTtJ.js} +130 -882
  166. package/dist/{ja-JP-C5-gDGuX.js → ja-JP-Cg6pV7OS.js} +130 -882
  167. package/dist/{ja-BvKVI6Oo.js → ja-eNtdzeB5.js} +129 -881
  168. package/dist/{jv-CyId7aPo.js → jv-BANHtRb4.js} +128 -880
  169. package/dist/{ka-pqIPc2el.js → ka-DWhlum5Q.js} +129 -881
  170. package/dist/{kk-DK7mWl6k.js → kk-CAsKyYR9.js} +128 -880
  171. package/dist/{km-BaJYdDrm.js → km-DJHdr0lO.js} +137 -889
  172. package/dist/{ko-CdYIGTH_.js → ko-BAPbgx_r.js} +129 -881
  173. package/dist/{ko-KP-Q3GGdDp3.js → ko-KP-BRD8crfV.js} +129 -881
  174. package/dist/{ky-Bc7ZXIXy.js → ky-0IKHwWw_.js} +128 -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-CWFpU32e.js +345 -0
  179. package/dist/kybChecksModule-D3u3hdUP.js +2 -0
  180. package/dist/{lo-0jgAavCe.js → lo-DkBffqOP.js} +129 -881
  181. package/dist/{lt-DDEjR6RD.js → lt-Btf5JQPU.js} +129 -881
  182. package/dist/{lv-Ddzb_N3H.js → lv-DMnPY0bZ.js} +129 -881
  183. package/dist/{mandatoryConsent-C21a2d2-.js → mandatoryConsent-Ci6fJR2F.js} +23 -16
  184. package/dist/{manualCaptureButton-1KC7N_B-.js → manualCaptureButton-DrdeVhq8.js} +8 -7
  185. package/dist/{manualCaptureButton-C5VMDamt.js → manualCaptureButton-ZxWHf5Sa.js} +16 -12
  186. package/dist/{mk-SJwou4aX.js → mk-CQIDbtM2.js} +129 -881
  187. package/dist/{mn-7B86xjpb.js → mn-Cc1HnwyR.js} +128 -880
  188. package/dist/{ms-Bb-SlQCF.js → ms-CORA9eaw.js} +128 -880
  189. package/dist/{my-3ci4RJZY.js → my-CNDvlF-Z.js} +129 -881
  190. package/dist/{nb-NO-DpZAni0R.js → nb-NO-BwZ27fuH.js} +128 -880
  191. package/dist/{ne-Dncyvxqt.js → ne-D7rkhft1.js} +129 -881
  192. package/dist/{nl-C1mnzCBH.js → nl-DsxNMb79.js} +129 -881
  193. package/dist/{optionAccessibleLabel-DG8Lks9f.js → optionAccessibleLabel-Cz2x8Q7x.js} +27 -11
  194. package/dist/otpInput-B2fLiJsF.js +245 -0
  195. package/dist/{page-DINsqGIw.js → page-B0CjRMtF.js} +102 -79
  196. package/dist/{incode-logo-B1bl2S0z.js → pageUiConfig-mKn_YhhU.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-CCHNUl5h.js +2 -0
  202. package/dist/{pdfViewer-C8xHykz1.js → pdfViewer-pgBIY_Q7.js} +11 -14
  203. package/dist/permissionInstructionList-DPDqNKFJ.js +43 -0
  204. package/dist/{permissions-B7-lHrFm.js → permissions-CKjgrM7q.js} +84 -53
  205. package/dist/phone/phone.es.js +16 -12
  206. package/dist/{phoneInputComposed-Di4acsc0.js → phoneInputComposed-BbZuW8Q8.js} +49 -12
  207. package/dist/{pl-CWr2fVBg.js → pl-DOgi6huc.js} +128 -880
  208. package/dist/preloadableLazy-KWGuHoqn.js +43 -0
  209. package/dist/{processing-z5wuXrKw.js → processing-v4EkL9-U.js} +2 -2
  210. package/dist/{progressBar-BcKFaXZR.js → progressBar-D-kfX8X1.js} +2 -2
  211. package/dist/{pt-BR-CMvTsOqE.js → pt-BR-x__xGSN_.js} +129 -881
  212. package/dist/{pt-AGz2XGAK.js → pt-CX0ngiGh.js} +129 -881
  213. package/dist/{pt-PT-KzIM0vpf.js → pt-PT-BKwyOX-W.js} +129 -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-DHgQUcAi.js} +2 -2
  221. package/dist/richText-DlHC_sMB.js +1761 -0
  222. package/dist/{ro-DYdJJDKn.js → ro-DGB5aI9B.js} +129 -881
  223. package/dist/{ru-C1cguVi2.js → ru-Dnl6YnE6.js} +129 -881
  224. package/dist/{ru-RU-18JeDfwz.js → ru-RU-BM5Leyxp.js} +128 -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-B4HQZzV6.js} +131 -883
  231. package/dist/{sl-DS_Gc0Wc.js → sl-ClgVmZ1h.js} +129 -881
  232. package/dist/{smsTabContent-vE0WyKtg.js → smsTabContent-D9Eb005G.js} +40 -27
  233. package/dist/{so-dqMTkg5E.js → so-BLFIV5-m.js} +129 -881
  234. package/dist/spacer-D5j2phXI.js +1100 -0
  235. package/dist/spinner-BeYdZjPC.js +69 -0
  236. package/dist/{sr-DgHGiiWM.js → sr-CkSmwRiY.js} +128 -880
  237. package/dist/{sr-Latn-Du7_x_Tr.js → sr-Latn-BdLB-I3Z.js} +136 -888
  238. package/dist/sr-YU-DJ3geBJs.js +5 -0
  239. package/dist/{sv-SE-Dw61hRjx.js → sv-SE-DEfqYDzZ.js} +128 -880
  240. package/dist/{sw-De-Jo8XY.js → sw-16U52YpC.js} +129 -881
  241. package/dist/{th-BJixOgsM.js → th-Cg0hYujg.js} +129 -881
  242. package/dist/{th-TH-VyhljC5U.js → th-TH-BBPg926O.js} +129 -881
  243. package/dist/themes/dark.css +1 -1
  244. package/dist/themes/light.css +1 -1
  245. package/dist/{tl-PH-D2S2Irx7.js → tl-PH-DSHq83jb.js} +129 -881
  246. package/dist/{tl-DhjdqhA4.js → tl-SL2bqb6j.js} +129 -881
  247. package/dist/{tr-BJAuvOwN.js → tr-DclJKp5i.js} +130 -882
  248. package/dist/{transitionSpinner-BZO916B1.js → transitionSpinner-b8SMrhfd.js} +7 -7
  249. package/dist/tutorial-0IhGg6rb.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-D3swFCxZ.js} +3 -11
  286. package/dist/{uk-CcU91ee-.js → uk-CfFK_Tnk.js} +128 -880
  287. package/dist/{uk-UA-BZR90qDZ.js → uk-UA-vkh8X4bX.js} +129 -881
  288. package/dist/{ur-CIXtUYHK.js → ur-32a-9tt8.js} +129 -881
  289. package/dist/useCameraPreview-hNLhri73.js +93 -0
  290. package/dist/useCaptureHelpButton-BJQvSkuJ.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-BEx-De8I.js} +129 -881
  294. package/dist/{vendor-preact-C0jX1Cbq.js → vendor-preact-CjnloSla.js} +147 -5
  295. package/dist/{verificationResult-C2gxbmAo.js → verificationResult-tHoFvrGZ.js} +30 -27
  296. package/dist/{vi-CgfGVVLY.js → vi-CMQXfqfw.js} +129 -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-CbRaBYoJ.js} +63 -22
  302. package/dist/{withEndScreenTexts-aFUEeBgM.js → withEndScreenTexts-10ck20tq.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-BelxA_Rf.js} +128 -880
  306. package/dist/{zh-HANT-zAahQ8nP.js → zh-HANT-DsztptZA.js} +129 -881
  307. package/dist/{zh-TW-B0v7GYYG.js → zh-TW-DKQC3FXd.js} +129 -881
  308. package/dist/{zh-B-kjeCig.js → zh-v3x4XYal.js} +128 -880
  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
@@ -0,0 +1,754 @@
1
+ import { u as useTranslation } from "./devWarn-CXWsIkak.js";
2
+ import { T as k, b as y, f as T, h as d, i as D, l as z, o as P, p as _, u as A, v as q, x as u } from "./vendor-preact-CjnloSla.js";
3
+ import { b as PrizmaButton } from "./icons-DLZTxOV2.js";
4
+ import { h as cn } from "./spacer-D5j2phXI.js";
5
+ import { i as useCloseButton, t as Page } from "./page-B0CjRMtF.js";
6
+ import { r as Modal } from "./pageUiConfig-mKn_YhhU.js";
7
+ import { a as useFeatureManagement, d as useResizeObserver, f as useEventListener, o as usePresence } from "./hooks-nmwpawA2.js";
8
+ import { t as TransitionSpinner } from "./transitionSpinner-b8SMrhfd.js";
9
+ import { n as CameraFrame, t as CameraView } from "./cameraView-CYd-_y_r.js";
10
+ import { n as CameraOverlay, t as CameraOverlayHeader } from "./cameraOverlayHeader-DZHCfN1x.js";
11
+ import { t as CaptureFooter } from "./captureFooter-BLJ1Qvov.js";
12
+ 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-FsGun4Yd.js";
13
+ 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-CcB0uVfH.js";
14
+ import { t as useCaptureHelpButton } from "./useCaptureHelpButton-BJQvSkuJ.js";
15
+ import { i as usePreloadCaptureAnimations, n as CaptureNotification } from "./manualCaptureButton-ZxWHf5Sa.js";
16
+ import { eventModuleNames, stateChanged } from "@incodetech/core/events";
17
+ import { ONBOARDING_WEB_SDK_PARAMETER_STORE } from "@incodetech/core/feature-management";
18
+ //#region src/modules/id/commonIssues.tsx
19
+ var CommonIssues = ({ open, onClose, onTakeManually, onTakeAutomatically, portalContainer }) => {
20
+ const { t } = useTranslation();
21
+ const handleSwitchCaptureMode = () => {
22
+ (onTakeAutomatically ?? onTakeManually)();
23
+ onClose();
24
+ };
25
+ return /* @__PURE__ */ u(Modal.Root, {
26
+ open,
27
+ onOpenChange: (isOpen) => {
28
+ if (!isOpen) onClose();
29
+ },
30
+ class: "IncodeCommonIssuesFullScreen",
31
+ hasBackdrop: false,
32
+ portalContainer: portalContainer ?? void 0,
33
+ children: /* @__PURE__ */ u(Modal.Content, {
34
+ class: "IncodeCommonIssuesContent",
35
+ children: [
36
+ /* @__PURE__ */ u(Modal.Icon, {
37
+ class: "IncodeCommonIssuesQuestionIcon",
38
+ children: /* @__PURE__ */ u(QuestionIcon, {})
39
+ }),
40
+ /* @__PURE__ */ u(Modal.Header, {
41
+ title: t("commonIssues.commonIssues"),
42
+ headingProps: { className: "IncodeCommonIssuesTitle" }
43
+ }),
44
+ /* @__PURE__ */ u("div", {
45
+ class: "IncodeCommonIssuesCards",
46
+ children: [
47
+ /* @__PURE__ */ u("div", {
48
+ class: "IncodeCommonIssuesCard",
49
+ children: [/* @__PURE__ */ u("div", {
50
+ class: "IncodeCommonIssuesCardIcon",
51
+ "aria-hidden": "true",
52
+ children: /* @__PURE__ */ u(GlareIcon, {})
53
+ }), /* @__PURE__ */ u("div", {
54
+ class: "IncodeCommonIssuesCardText",
55
+ children: [/* @__PURE__ */ u("h3", {
56
+ class: "IncodeCommonIssuesCardTitle",
57
+ children: t("commonIssues.glarePresent")
58
+ }), /* @__PURE__ */ u("p", {
59
+ class: "IncodeCommonIssuesCardBody",
60
+ children: t("commonIssues.glarePresentDescription")
61
+ })]
62
+ })]
63
+ }),
64
+ /* @__PURE__ */ u("div", {
65
+ class: "IncodeCommonIssuesCard",
66
+ children: [/* @__PURE__ */ u("div", {
67
+ class: "IncodeCommonIssuesCardIcon",
68
+ "aria-hidden": "true",
69
+ children: /* @__PURE__ */ u(BlurIcon, {})
70
+ }), /* @__PURE__ */ u("div", {
71
+ class: "IncodeCommonIssuesCardText",
72
+ children: [/* @__PURE__ */ u("h3", {
73
+ class: "IncodeCommonIssuesCardTitle",
74
+ children: t("commonIssues.blurPresent")
75
+ }), /* @__PURE__ */ u("p", {
76
+ class: "IncodeCommonIssuesCardBody",
77
+ children: t("commonIssues.blurPresentDescription")
78
+ })]
79
+ })]
80
+ }),
81
+ /* @__PURE__ */ u("div", {
82
+ class: "IncodeCommonIssuesCard",
83
+ children: [/* @__PURE__ */ u("div", {
84
+ class: "IncodeCommonIssuesCardIcon",
85
+ "aria-hidden": "true",
86
+ children: /* @__PURE__ */ u(InfoNotReadableIcon, {})
87
+ }), /* @__PURE__ */ u("div", {
88
+ class: "IncodeCommonIssuesCardText",
89
+ children: [/* @__PURE__ */ u("h3", {
90
+ class: "IncodeCommonIssuesCardTitle",
91
+ children: t("commonIssues.notReadable")
92
+ }), /* @__PURE__ */ u("p", {
93
+ class: "IncodeCommonIssuesCardBody",
94
+ children: t("commonIssues.notReadableDescription")
95
+ })]
96
+ })]
97
+ })
98
+ ]
99
+ }),
100
+ /* @__PURE__ */ u(Modal.Actions, {
101
+ class: "IncodeCommonIssuesButtons",
102
+ children: [/* @__PURE__ */ u(PrizmaButton, {
103
+ size: "L",
104
+ variant: "tertiary-link",
105
+ onClick: handleSwitchCaptureMode,
106
+ className: "IncodeButton IncodeButtonLink IncodeButtonL IncodeCommonIssuesTakeManually",
107
+ children: t(onTakeAutomatically ? "commonIssues.takeAutomatically" : "commonIssues.takeManually")
108
+ }), /* @__PURE__ */ u(PrizmaButton, {
109
+ variant: "primary",
110
+ size: "L",
111
+ onClick: onClose,
112
+ className: "IncodeButton IncodeButtonPrimary IncodeButtonL IncodeCommonIssuesTryAgain",
113
+ children: t("commonIssues.tryAgain")
114
+ })]
115
+ })
116
+ ]
117
+ })
118
+ });
119
+ };
120
+ //#endregion
121
+ //#region src/modules/id/experiments/useCaptureResultPreview.ts
122
+ var CROSSFADE_ANIMATION_NAME = "incodeIdCaptureResultCrossfadeOut";
123
+ var CROSSFADE_WATCHDOG_MS = 1e3;
124
+ /**
125
+ * IDC-05 rendering state.
126
+ *
127
+ * Core owns the phase on **both** paths — `detectingWithOptimization.optimizing`
128
+ * before the frame is committed (auto capture), `optimizingHold` after it
129
+ * (manual capture) — and reports both as `captureStatus: 'optimizing'`. So there
130
+ * is no dwell timer here, nothing to acknowledge, and no branch on which path
131
+ * produced it.
132
+ *
133
+ * What stays UI-owned is only the *tail*: keeping the frozen still (and the live
134
+ * camera layer beneath it) mounted for the length of the crossfade into the
135
+ * analyzing screen. `usePresence` starts that exit in the *same* render that
136
+ * stops reporting the phase — deriving it from an effect instead leaves one
137
+ * paintable frame with neither the still nor the fade, which resolves to the
138
+ * analyzing stage: the live `<video>` is destroyed, a bare `IdAnalyzing` flashes
139
+ * with no fade and an undecoded image, and the fade then remounts the element and
140
+ * re-attaches the MediaStream — a visible blink.
141
+ */
142
+ var useCaptureResultPreview = (state) => {
143
+ const enabled = state.captureFeedbackMode === "optimizing";
144
+ const isOptimizing = enabled && state.captureStatus === "optimizing";
145
+ /**
146
+ * The auto path's phase runs before the commit, so its still is the best
147
+ * frame *so far*; the manual path's runs after, so `previewImageUrl` is all
148
+ * there is. One expression covers both.
149
+ *
150
+ * At the commit, core clears `candidateImageUrl` in the same assign that
151
+ * sets `previewImageUrl` (`getStoreCapturedImageValues`), so this falls through
152
+ * to the committed frame for the crossfade — the better-rectified crop, and the
153
+ * same URL the analyzing layer beneath is already mounting, so the swap paints
154
+ * from that URL's cache entry rather than decoding cold. The fallthrough is
155
+ * also what lets core free the phase's blob at the commit instead of holding it
156
+ * to the next boundary.
157
+ */
158
+ const imageUrl = state.candidateImageUrl ?? state.previewImageUrl;
159
+ const { phase, isRendered, onAnimationEnd } = usePresence({
160
+ present: isOptimizing && Boolean(imageUrl),
161
+ animationName: CROSSFADE_ANIMATION_NAME,
162
+ timeoutMs: CROSSFADE_WATCHDOG_MS,
163
+ skipExit: !(state.previewImageUrl && state.captureStatus === "uploading")
164
+ });
165
+ return {
166
+ enabled,
167
+ phase,
168
+ isResultPreview: isRendered,
169
+ resultPreviewImageUrl: isRendered ? imageUrl : void 0,
170
+ isCrossfading: phase === "exiting",
171
+ onCrossfadeEnd: onAnimationEnd
172
+ };
173
+ };
174
+ //#endregion
175
+ //#region src/modules/id/capture/captureHelpers.ts
176
+ /**
177
+ * Which layer(s) the capture screen mounts.
178
+ *
179
+ * The crossfade wins outright while it runs: on the IDC-05 treatment the machine
180
+ * commits the frame on its own clock, so `uploading` arrives *before* the fade
181
+ * rather than after it, and letting `uploading` win would hard-cut the live
182
+ * layer away mid-animation.
183
+ *
184
+ * A `present` phase keeps the live layer mounted through the manual-capture
185
+ * result preview, where a committed `previewImageUrl` already exists but the frozen still
186
+ * is deliberately still on screen.
187
+ */
188
+ function getCaptureStageView(state, phase) {
189
+ const isCommitted = state.captureStatus === "capturing" || state.captureStatus === "uploading";
190
+ if (!state.previewImageUrl) return isCommitted ? "analyzing" : "live";
191
+ if (phase === "exiting") return "crossfade";
192
+ if (phase === "present") return "live";
193
+ return isCommitted ? "analyzing" : "live";
194
+ }
195
+ function getCaptureMode(state) {
196
+ return state.currentMode === "passport" ? "passport" : "id";
197
+ }
198
+ /**
199
+ * Whether the manual-capture button is on screen right now: either the
200
+ * genuine auto-capture-failed fallback (`detectionStatus === 'manualCapture'`)
201
+ * or the `showCaptureButtonInAuto` shortcut (autocapture still running, button
202
+ * offered as an optional shortcut). Shared by `Capture`'s render and
203
+ * `useManualTooltipExperiment`'s sticky latch so the two can't drift apart.
204
+ */
205
+ function isManualCaptureShown(state) {
206
+ return state.detectionStatus === "manualCapture" || state.showCaptureButtonInAuto && state.captureStatus === "detecting" && state.detectionStatus !== "capturing";
207
+ }
208
+ //#endregion
209
+ //#region src/modules/id/experiments/useManualTooltipExperiment.ts
210
+ /**
211
+ * IDC-08: resolves the manual-capture tooltip/title arm.
212
+ *
213
+ * A timing constraint the shared `useIdExperiment` hook doesn't cover on its
214
+ * own:
215
+ *
216
+ * **Expose at capture entry, report at treatment show (else at commit).**
217
+ * The arm is resolved (and Statsig-exposed) from the first render of
218
+ * `Capture` so the exposed population stays symmetric across arms, but the
219
+ * `experimentAssigned` interview-event lands at the first of two moments:
220
+ * the render where the manual-capture surface (the thing the arms actually
221
+ * change) becomes visible — so a session that sees the treatment and then
222
+ * abandons is still counted — or, for sessions that never show it, once a
223
+ * frame is committed. Reporting a never-shown session before commit would
224
+ * misdescribe it: `showedManualCapture: false` could still flip to `true`,
225
+ * but the first-wins dedupe would have already locked it in.
226
+ * `reportAssignment` gates the report without re-gating (and so
227
+ * re-exposing) the resolve.
228
+ *
229
+ * Reporting granularity is remote-selectable via
230
+ * `MANUAL_TOOLTIP_DEDUPE_RULE_PARAM` (ships ahead of the PM/mobile sync on
231
+ * the final rule, so it can be flipped without a code change): `'once'`
232
+ * (default) is one `experimentAssigned` per session — `Capture` unmounts
233
+ * between the front and back side, so whichever side reports first is the
234
+ * one the event describes, and the other side's report is a no-op.
235
+ * `'per-capture'` is one event per (ID-module allocation, side) instead — see
236
+ * `getManualTooltipDedupeKey`.
237
+ */
238
+ function useManualTooltipExperiment(manager, state) {
239
+ const { value: onboardingParameterStore } = useFeatureManagement("parameterStore", ONBOARDING_WEB_SDK_PARAMETER_STORE, { disableExposureLog: true });
240
+ const dedupeKey = getManualTooltipDedupeKey(onboardingParameterStore, manager, state);
241
+ const showedManualCaptureRef = A(false);
242
+ if (isManualCaptureShown(state)) showedManualCaptureRef.current = true;
243
+ const { params, status } = useIdExperiment({
244
+ key: "manualTooltip",
245
+ enabled: true,
246
+ reportAssignment: showedManualCaptureRef.current || state.captureStatus === "uploading" || state.captureStatus === "holdOn",
247
+ dedupeKey,
248
+ conditions: { showedManualCapture: showedManualCaptureRef.current }
249
+ });
250
+ let dismissDelayMs = MANUAL_TOOLTIP_DISMISS_DELAY_MS;
251
+ if (status === EXPERIMENT_LIFECYCLE_STATUS.PENDING) return {
252
+ variant: MANUAL_TOOLTIP.CONTROL,
253
+ dismissDelayMs
254
+ };
255
+ if (params.manualTooltipVariant === MANUAL_TOOLTIP.AUTO_DISMISS) dismissDelayMs = params.autoDismissIntervalMs;
256
+ return {
257
+ variant: params.manualTooltipVariant,
258
+ dismissDelayMs
259
+ };
260
+ }
261
+ var captureOccurrences = /* @__PURE__ */ new WeakMap();
262
+ var nextCaptureOccurrence = 1;
263
+ function getCaptureOccurrence(manager) {
264
+ let occurrence = captureOccurrences.get(manager);
265
+ if (occurrence === void 0) {
266
+ occurrence = nextCaptureOccurrence++;
267
+ captureOccurrences.set(manager, occurrence);
268
+ }
269
+ return occurrence;
270
+ }
271
+ function getManualTooltipDedupeKey(store, manager, state) {
272
+ const dedupeRule = store.get("idcExp08ManualTooltipDedupeRule", "once") === "per-capture" ? MANUAL_TOOLTIP_DEDUPE_RULE_PER_CAPTURE : MANUAL_TOOLTIP_DEDUPE_RULE_ONCE;
273
+ const captureInstance = getCaptureOccurrence(manager);
274
+ const base = ID_EXPERIMENTS.manualTooltip.storeParam;
275
+ if (dedupeRule === "once") return base;
276
+ return `${base}:${captureInstance}:${state.currentMode}:${state.attemptsRemaining}`;
277
+ }
278
+ //#endregion
279
+ //#region src/modules/id/capture/captureResultFlash.tsx
280
+ var FLASH_ANIMATION_NAME = "incodeCaptureResultFlash";
281
+ /**
282
+ * One-shot white "shutter" flash: on the `uxp_idc_exp05_show_result`
283
+ * treatment's result preview, and at the end of the countdown. Plays on mount
284
+ * (after `delayMs`) and reports `animationend` so its parent can remove and
285
+ * re-arm it for the next capture.
286
+ */
287
+ var CaptureResultFlash = ({ delayMs, onAnimationStart, onAnimationEnd }) => {
288
+ const hasStartedRef = A(false);
289
+ return /* @__PURE__ */ u("div", {
290
+ class: "IncodeCaptureResultFlash",
291
+ "aria-hidden": "true",
292
+ style: delayMs ? { "--capture-result-flash-delay": `${delayMs}ms` } : void 0,
293
+ onAnimationStart: (event) => {
294
+ if (event.animationName !== FLASH_ANIMATION_NAME || hasStartedRef.current) return;
295
+ hasStartedRef.current = true;
296
+ onAnimationStart?.();
297
+ },
298
+ onAnimationEnd: (event) => {
299
+ if (event.animationName !== FLASH_ANIMATION_NAME) return;
300
+ onAnimationEnd?.();
301
+ }
302
+ });
303
+ };
304
+ //#endregion
305
+ //#region src/modules/id/capture/idHint.tsx
306
+ var FrontHorizontalHintSvg = z(() => import("./front-horizontal-hint-LxyNVfjy.js"));
307
+ var FrontVerticalHintSvg = z(() => import("./front-vertical-hint-BKEg_DRs.js"));
308
+ var BackHorizontalHintSvg = z(() => import("./back-horizontal-hint-Bci98ivl.js"));
309
+ var BackVerticalHintSvg = z(() => import("./back-vertical-hint-DyPCItxn.js"));
310
+ var PassportHorizontalHintSvg = z(() => import("./passport-horizontal-hint-Bn18pckF.js"));
311
+ var PassportVerticalHintSvg = z(() => import("./passport-vertical-hint-D_bvTNZY.js"));
312
+ var CARD_WIDTH_IN_SVG = {
313
+ "front-horizontal": 348,
314
+ "back-horizontal": 348,
315
+ "passport-horizontal": 342
316
+ };
317
+ var CARD_HEIGHT_IN_SVG = {
318
+ "front-vertical": 446,
319
+ "back-vertical": 446,
320
+ "passport-vertical": 342
321
+ };
322
+ function computeScale(mode, orientation, width, height) {
323
+ const key = `${mode}-${orientation}`;
324
+ const cardWidth = CARD_WIDTH_IN_SVG[key];
325
+ if (cardWidth) return width / cardWidth;
326
+ const cardHeight = CARD_HEIGHT_IN_SVG[key];
327
+ if (cardHeight) return height / cardHeight;
328
+ return 1;
329
+ }
330
+ var IdHint = ({ mode, orientation, onAnimationStart, onAnimationEnd }) => {
331
+ const containerRef = A(null);
332
+ const hasStartedRef = A(false);
333
+ const [scale, setScale] = d(1);
334
+ y(() => {
335
+ const el = containerRef.current;
336
+ if (!el) return;
337
+ const update = () => {
338
+ setScale(computeScale(mode, orientation, el.clientWidth, el.clientHeight));
339
+ };
340
+ update();
341
+ const observer = new ResizeObserver(update);
342
+ observer.observe(el);
343
+ return () => observer.disconnect();
344
+ }, [mode, orientation]);
345
+ const getSvgComponent = () => {
346
+ if (mode === "front") return orientation === "horizontal" ? /* @__PURE__ */ u(FrontHorizontalHintSvg, {}) : /* @__PURE__ */ u(FrontVerticalHintSvg, {});
347
+ if (mode === "back") return orientation === "horizontal" ? /* @__PURE__ */ u(BackHorizontalHintSvg, {}) : /* @__PURE__ */ u(BackVerticalHintSvg, {});
348
+ if (mode === "passport") return orientation === "horizontal" ? /* @__PURE__ */ u(PassportHorizontalHintSvg, {}) : /* @__PURE__ */ u(PassportVerticalHintSvg, {});
349
+ return null;
350
+ };
351
+ return /* @__PURE__ */ u("div", {
352
+ ref: containerRef,
353
+ class: "IncodeIdHint",
354
+ "aria-hidden": "true",
355
+ role: "presentation",
356
+ children: /* @__PURE__ */ u("div", {
357
+ class: "IncodeIdHintAnimated",
358
+ onAnimationStart: (event) => {
359
+ if (event.target !== event.currentTarget || event.animationName !== "slideUpAndDown" || hasStartedRef.current) return;
360
+ hasStartedRef.current = true;
361
+ onAnimationStart?.();
362
+ },
363
+ onAnimationEnd: (event) => {
364
+ if (event.target === event.currentTarget && event.animationName === "slideUpAndDown") onAnimationEnd?.();
365
+ },
366
+ children: /* @__PURE__ */ u(P, {
367
+ fallback: null,
368
+ children: /* @__PURE__ */ u("div", {
369
+ class: "IncodeIdHintSvg",
370
+ style: { transform: `scale(${scale})` },
371
+ children: getSvgComponent()
372
+ })
373
+ })
374
+ })
375
+ });
376
+ };
377
+ //#endregion
378
+ //#region src/modules/id/capture/captureLiveFrameContent.tsx
379
+ var CaptureLiveFrameContent = ({ countdownStart, countdownStepMs, showIdHint, mode, orientation, onIdHintAnimationStart, onIdHintAnimationEnd, onFlashAnimationStart }) => /* @__PURE__ */ u(k, { children: [countdownStart > 0 && /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u("div", {
380
+ class: "IncodeCaptureCounter",
381
+ "aria-hidden": "true",
382
+ style: { "--capture-countdown-step": `${countdownStepMs}ms` },
383
+ children: Array.from({ length: countdownStart }, (_, index) => /* @__PURE__ */ u("span", {
384
+ class: "IncodeCaptureCounterDigit",
385
+ style: { "--capture-countdown-index": index },
386
+ children: countdownStart - index
387
+ }, index))
388
+ }), /* @__PURE__ */ u(CaptureResultFlash, {
389
+ delayMs: countdownStart * countdownStepMs,
390
+ onAnimationStart: onFlashAnimationStart
391
+ })] }), showIdHint && /* @__PURE__ */ u(IdHint, {
392
+ mode,
393
+ orientation: orientation ?? "horizontal",
394
+ onAnimationStart: onIdHintAnimationStart,
395
+ onAnimationEnd: onIdHintAnimationEnd
396
+ })] });
397
+ //#endregion
398
+ //#region src/modules/id/capture/captureResultPreview.tsx
399
+ var CaptureResultPreview = ({ resultPreview, onFlashAnimationStart, onFlashAnimationEnd }) => {
400
+ const [hasFlashed, setHasFlashed] = d(false);
401
+ return /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u("img", {
402
+ src: resultPreview.imageUrl,
403
+ alt: "",
404
+ "aria-hidden": "true",
405
+ class: cn("IncodeCaptureResultImage", resultPreview.blurImage && "IncodeCaptureResultImageBlurred")
406
+ }), !hasFlashed && /* @__PURE__ */ u(CaptureResultFlash, {
407
+ onAnimationStart: onFlashAnimationStart,
408
+ onAnimationEnd: () => {
409
+ setHasFlashed(true);
410
+ onFlashAnimationEnd?.();
411
+ }
412
+ })] });
413
+ };
414
+ //#endregion
415
+ //#region src/modules/id/capture/captureOverlay.tsx
416
+ var MANUAL_CAPTURE_TOOLTIP_EXIT_ANIMATIONS = ["manualCaptureTooltipExit", "manualCaptureTooltipExitAutoDismiss"];
417
+ function reportAnimationState(mode, state) {
418
+ const screen = mode === "back" ? "idCapture.backCapture" : "idCapture.frontCapture";
419
+ stateChanged(eventModuleNames.idCapture, screen, { stateName: `${screen}.${state}` });
420
+ }
421
+ var CaptureOverlay = D(({ mode, orientation, detectionStatus, counterValue, countdownStart, countdownStepMs, isCapturing, showManualCapture, onCapture, onOpenHelp, helpButtonRef, captureButtonRef, hideFooterActions, captureDisabled, trackAnimationStates = true, resultPreview, manualTooltipUx }, ref) => {
422
+ const { t } = useTranslation();
423
+ const autoFocus = useCaptureAutoFocus();
424
+ usePreloadCaptureAnimations();
425
+ const helpButton = useCaptureHelpButton({
426
+ onOpenHelp,
427
+ ariaLabel: t("idv2.needHelp.open"),
428
+ buttonRef: helpButtonRef,
429
+ hidden: hideFooterActions
430
+ });
431
+ const closeButton = useCloseButton();
432
+ const isResultPreview = resultPreview !== void 0;
433
+ const isTooltipRemoved = manualTooltipUx.variant === MANUAL_TOOLTIP.REMOVE;
434
+ const hasShownIdHintRef = A(false);
435
+ const cameraOverlayHeaderTitleRef = A(null);
436
+ const [showIdHint, setShowIdHint] = d(false);
437
+ const hintStateModeRef = A();
438
+ const animationStateEnabledRef = A(false);
439
+ _(() => {
440
+ animationStateEnabledRef.current = trackAnimationStates;
441
+ if (hintStateModeRef.current === mode && trackAnimationStates && !isResultPreview && (detectionStatus === "detecting" || detectionStatus === "idle")) reportAnimationState(mode, "default");
442
+ if (!trackAnimationStates || hintStateModeRef.current !== mode || detectionStatus !== "idNotDetected" || isResultPreview) hintStateModeRef.current = void 0;
443
+ }, [
444
+ trackAnimationStates,
445
+ mode,
446
+ detectionStatus,
447
+ isResultPreview
448
+ ]);
449
+ _(() => () => {
450
+ animationStateEnabledRef.current = false;
451
+ hintStateModeRef.current = void 0;
452
+ }, []);
453
+ const trackAnimationState = (state) => {
454
+ if (!animationStateEnabledRef.current) return;
455
+ reportAnimationState(mode, state);
456
+ };
457
+ const handleIdHintAnimationStart = () => {
458
+ if (!animationStateEnabledRef.current || detectionStatus !== "idNotDetected" || isResultPreview) return;
459
+ hintStateModeRef.current = mode;
460
+ trackAnimationState("hint");
461
+ };
462
+ const handleIdHintAnimationEnd = () => {
463
+ if (hintStateModeRef.current === mode) {
464
+ hintStateModeRef.current = void 0;
465
+ trackAnimationState("default");
466
+ }
467
+ setShowIdHint(false);
468
+ };
469
+ const handleFlashAnimationStart = () => trackAnimationState("flash");
470
+ const [manualCaptureTooltipDismissed, setManualCaptureTooltipDismissed] = d(isTooltipRemoved);
471
+ y(() => {
472
+ if (detectionStatus === "idNotDetected") {
473
+ if (hasShownIdHintRef.current) return;
474
+ hasShownIdHintRef.current = true;
475
+ setShowIdHint(true);
476
+ return;
477
+ }
478
+ if (showIdHint) setShowIdHint(false);
479
+ }, [detectionStatus, showIdHint]);
480
+ y(() => {
481
+ if (!showManualCapture) setManualCaptureTooltipDismissed(isTooltipRemoved);
482
+ }, [showManualCapture, isTooltipRemoved]);
483
+ const handleManualCaptureTooltipAnimationEnd = (event) => {
484
+ if (!MANUAL_CAPTURE_TOOLTIP_EXIT_ANIMATIONS.includes(event.animationName)) return;
485
+ setManualCaptureTooltipDismissed(true);
486
+ };
487
+ y(() => {
488
+ if (!autoFocus || !showManualCapture || captureDisabled) return;
489
+ const button = captureButtonRef?.current;
490
+ if (!button || button.closest("[aria-hidden=\"true\"], [inert]")) return;
491
+ button.focus();
492
+ }, [
493
+ autoFocus,
494
+ showManualCapture,
495
+ captureDisabled,
496
+ captureButtonRef
497
+ ]);
498
+ _(() => {
499
+ if (!isResultPreview) return;
500
+ cameraOverlayHeaderTitleRef.current?.focus();
501
+ }, [isResultPreview]);
502
+ const { frameState, header } = T(() => isResultPreview ? resolveResultView(t) : resolveLiveView({
503
+ t,
504
+ mode,
505
+ detectionStatus,
506
+ isCapturing,
507
+ showManualCapture,
508
+ manualTooltipVariant: manualTooltipUx.variant
509
+ }), [
510
+ isResultPreview,
511
+ t,
512
+ mode,
513
+ detectionStatus,
514
+ isCapturing,
515
+ showManualCapture,
516
+ manualTooltipUx.variant
517
+ ]);
518
+ const isPassport = mode === "passport";
519
+ const frameOrientation = orientation !== "vertical" ? "horizontal" : "vertical";
520
+ const showManualCaptureNode = !isResultPreview && showManualCapture;
521
+ const showCounter = isCapturing && counterValue > 0;
522
+ const captureAriaLabel = header?.title ? `${header.title}. ${t("manualCapture.ariaLabel")}` : void 0;
523
+ const manualCaptureTooltip = /* @__PURE__ */ u("div", {
524
+ id: "manual-capture-tooltip",
525
+ class: "IncodeIdManualCaptureTooltip",
526
+ children: /* @__PURE__ */ u("ol", {
527
+ class: "IncodeIdManualCaptureTooltipList",
528
+ children: [/* @__PURE__ */ u("li", { children: t(isPassport ? "idv2.commonIssues.firstStepPassport" : "idv2.commonIssues.firstStep") }), /* @__PURE__ */ u("li", { children: t("idv2.commonIssues.secondStep") })]
529
+ })
530
+ });
531
+ return /* @__PURE__ */ u(CameraOverlay, {
532
+ className: "IncodeCaptureOverlayId IncodeCompactReflow",
533
+ floatingHelpButton: helpButton.floating,
534
+ floatingCloseButton: closeButton,
535
+ children: [
536
+ /* @__PURE__ */ u("div", {
537
+ class: "IncodeCaptureTopSection",
538
+ children: [!isResultPreview && /* @__PURE__ */ u(CaptureNotification, {
539
+ detectionStatus,
540
+ mode,
541
+ isCapturing
542
+ }), /* @__PURE__ */ u(CameraOverlayHeader, {
543
+ titleRef: cameraOverlayHeaderTitleRef,
544
+ title: header?.title ?? "",
545
+ subtitle: header?.subtitle,
546
+ visible: header !== null,
547
+ titleId: "id-capture-heading",
548
+ className: cn(isResultPreview && "IncodeCaptureResultHeaderReveal"),
549
+ autoFocusTitle: autoFocus
550
+ })]
551
+ }),
552
+ /* @__PURE__ */ u(CameraFrame, {
553
+ ref,
554
+ variant: "locked",
555
+ orientation: frameOrientation,
556
+ frameState,
557
+ className: cn(isPassport && "IncodeCaptureFramePassport"),
558
+ children: resultPreview ? /* @__PURE__ */ u(CaptureResultPreview, {
559
+ resultPreview,
560
+ onFlashAnimationStart: handleFlashAnimationStart
561
+ }) : /* @__PURE__ */ u(CaptureLiveFrameContent, {
562
+ countdownStart,
563
+ countdownStepMs,
564
+ showIdHint,
565
+ mode,
566
+ orientation,
567
+ onIdHintAnimationStart: handleIdHintAnimationStart,
568
+ onIdHintAnimationEnd: handleIdHintAnimationEnd,
569
+ onFlashAnimationStart: handleFlashAnimationStart
570
+ })
571
+ }),
572
+ /* @__PURE__ */ u("div", {
573
+ class: "IncodeSrOnly",
574
+ "aria-live": "polite",
575
+ "aria-atomic": "true",
576
+ children: showCounter ? counterValue : ""
577
+ }),
578
+ /* @__PURE__ */ u(CaptureFooter, {
579
+ onOpenHelp,
580
+ onCapture,
581
+ isManualCapture: showManualCapture,
582
+ captureAriaLabel,
583
+ helpButtonRef,
584
+ helpAriaLabel: helpButton.footer?.ariaLabel,
585
+ showHelpButton: Boolean(helpButton.footer),
586
+ captureButtonRef,
587
+ captureAriaDescribedBy: showManualCaptureNode ? "manual-capture-tooltip" : void 0,
588
+ hideActions: hideFooterActions,
589
+ captureDisabled,
590
+ children: showManualCaptureNode ? /* @__PURE__ */ u("div", {
591
+ class: cn("IncodeIdManualCaptureTooltipContainer", manualTooltipUx.variant === MANUAL_TOOLTIP.AUTO_DISMISS && "IncodeIdManualCaptureTooltipContainerAutoDismiss", manualCaptureTooltipDismissed && "IncodeIdManualCaptureTooltipContainerSrOnly"),
592
+ style: { "--manual-capture-tooltip-dismiss-delay": `${manualTooltipUx.dismissDelayMs}ms` },
593
+ onAnimationEnd: handleManualCaptureTooltipAnimationEnd,
594
+ children: manualCaptureTooltip
595
+ }) : null
596
+ })
597
+ ]
598
+ });
599
+ });
600
+ //#endregion
601
+ //#region src/modules/id/capture/capture.tsx
602
+ var Capture = ({ manager, state }) => {
603
+ const { enabled: resultPreviewEnabled, phase: resultPreviewPhase, isResultPreview, resultPreviewImageUrl, onCrossfadeEnd } = useCaptureResultPreview(state);
604
+ const manualTooltipUx = useManualTooltipExperiment(manager, state);
605
+ const stageView = getCaptureStageView(state, resultPreviewPhase);
606
+ const isCrossfadeStage = stageView === "crossfade";
607
+ const isLiveStage = stageView === "live";
608
+ const isCapturing = !isResultPreview && (state.captureStatus === "capturing" || state.detectionStatus === "capturing");
609
+ const countdownStartRef = A(0);
610
+ if (!isCapturing) countdownStartRef.current = 0;
611
+ else if (countdownStartRef.current === 0) countdownStartRef.current = state.counterValue;
612
+ const countdownStart = countdownStartRef.current;
613
+ const countdownEndMs = countdownStart * state.countdownStepMs;
614
+ if (state.captureStatus === "holdOn") return /* @__PURE__ */ u(TransitionSpinner, { subtitleKey: "idv2.capture.holdOn.subtitle" });
615
+ if (state.captureStatus === "success" && (state.previewImageUrl || state.barcodeFastPathCaptured)) return /* @__PURE__ */ u(IdSuccess, {
616
+ manager,
617
+ state,
618
+ blurImage: state.ageAssurance
619
+ });
620
+ if (state.captureStatus === "uploadError" && state.previewImageUrl) return /* @__PURE__ */ u(IdError, {
621
+ manager,
622
+ state,
623
+ blurImage: state.ageAssurance
624
+ });
625
+ const isAnalyzingPending = isLiveStage && countdownStart > 0;
626
+ const isAnalyzingHidden = isCrossfadeStage || isAnalyzingPending;
627
+ let idAnalyzingSlot = null;
628
+ if (!isLiveStage || isAnalyzingPending) idAnalyzingSlot = /* @__PURE__ */ u("div", {
629
+ class: cn("IncodeIdCaptureStageAnalyzing", isCrossfadeStage && "IncodeIdCaptureStageResultEntering", isAnalyzingPending && "IncodeIdCaptureStageAnalyzingPending"),
630
+ style: isAnalyzingPending ? { "--capture-countdown-end": `${countdownEndMs}ms` } : void 0,
631
+ "aria-hidden": isAnalyzingHidden || void 0,
632
+ inert: isAnalyzingHidden || void 0,
633
+ children: /* @__PURE__ */ u(IdAnalyzing, {
634
+ imageUrl: state.previewImageUrl,
635
+ progress: state.uploadProgress ?? 0,
636
+ orientation: state.orientation,
637
+ mode: getCaptureMode(state),
638
+ blurImage: state.ageAssurance,
639
+ autoFocusTitle: !isAnalyzingHidden,
640
+ simulatedProgressDelayMs: countdownEndMs,
641
+ resultPreviewEnabled
642
+ })
643
+ }, "analyzing");
644
+ let captureViewSlot = null;
645
+ if (stageView !== "analyzing") captureViewSlot = /* @__PURE__ */ u("div", {
646
+ class: cn("IncodeIdCaptureStageLive", isCrossfadeStage && "IncodeIdCaptureStageResultExiting"),
647
+ onAnimationEnd: onCrossfadeEnd,
648
+ children: /* @__PURE__ */ u(CaptureView, {
649
+ manager,
650
+ state,
651
+ isCapturing,
652
+ countdownStart,
653
+ isResultPreview,
654
+ resultPreviewImageUrl,
655
+ hideFooterActions: !isLiveStage || state.captureStatus === "optimizing",
656
+ manualTooltipUx
657
+ })
658
+ }, "live");
659
+ return /* @__PURE__ */ u("div", {
660
+ class: "IncodeIdCaptureStage",
661
+ children: [idAnalyzingSlot, captureViewSlot]
662
+ });
663
+ };
664
+ var CaptureView = ({ manager, state, isCapturing, countdownStart, isResultPreview, resultPreviewImageUrl, hideFooterActions, manualTooltipUx }) => {
665
+ const [previewPending, setPreviewPending] = d(true);
666
+ const frameRef = A(null);
667
+ const helpButtonRef = A(null);
668
+ const captureButtonRef = A(null);
669
+ const portalRef = A(null);
670
+ const [isHelpOpen, setIsHelpOpen] = d(false);
671
+ const reportFrame = q(() => {
672
+ const frameElement = frameRef.current;
673
+ if (!frameElement) return;
674
+ const rect = frameElement.getBoundingClientRect();
675
+ manager.updateDetectionArea({
676
+ x: rect.left,
677
+ y: rect.top,
678
+ width: rect.width,
679
+ height: rect.height
680
+ });
681
+ }, [manager]);
682
+ useEventListener("resize", reportFrame);
683
+ useResizeObserver(frameRef, reportFrame);
684
+ const showManualCapture = isManualCaptureShown(state);
685
+ const resultPreview = isResultPreview && resultPreviewImageUrl ? {
686
+ imageUrl: resultPreviewImageUrl,
687
+ blurImage: state.ageAssurance
688
+ } : void 0;
689
+ const handleOpenHelp = () => {
690
+ if (manager.openHelp()) setIsHelpOpen(true);
691
+ };
692
+ const handleCloseHelp = () => {
693
+ manager.closeHelp();
694
+ setIsHelpOpen(false);
695
+ requestAnimationFrame(() => {
696
+ if (captureButtonRef.current) captureButtonRef.current.focus();
697
+ else helpButtonRef.current?.focus();
698
+ });
699
+ };
700
+ const handleTakeManually = () => {
701
+ manager.switchToManualCapture();
702
+ };
703
+ const handleTakeAutomatically = () => {
704
+ manager.switchToAutoCapture();
705
+ };
706
+ const handleCapture = () => {
707
+ if (!previewPending) manager.capture();
708
+ };
709
+ const mirrored = !state.usingBackCamera;
710
+ return /* @__PURE__ */ u(Page, {
711
+ hideHeader: true,
712
+ hideFooterBranding: true,
713
+ className: "IncodeIdCapturePage",
714
+ children: [
715
+ /* @__PURE__ */ u(CameraView, {
716
+ stream: state.stream,
717
+ onPlaying: reportFrame,
718
+ onPreviewPendingChange: setPreviewPending,
719
+ mirrored,
720
+ "aria-hidden": isHelpOpen || void 0,
721
+ children: /* @__PURE__ */ u(CaptureOverlay, {
722
+ ref: frameRef,
723
+ mode: state.currentMode,
724
+ orientation: state.orientation,
725
+ detectionStatus: state.detectionStatus,
726
+ counterValue: state.counterValue,
727
+ countdownStart,
728
+ countdownStepMs: state.countdownStepMs,
729
+ isCapturing,
730
+ showManualCapture,
731
+ onCapture: handleCapture,
732
+ onOpenHelp: handleOpenHelp,
733
+ helpButtonRef,
734
+ captureButtonRef,
735
+ resultPreview,
736
+ hideFooterActions,
737
+ captureDisabled: previewPending,
738
+ manualTooltipUx,
739
+ trackAnimationStates: !isHelpOpen && (state.captureStatus === "detecting" || state.captureStatus === "optimizing")
740
+ })
741
+ }),
742
+ /* @__PURE__ */ u("div", { ref: portalRef }),
743
+ /* @__PURE__ */ u(CommonIssues, {
744
+ open: isHelpOpen,
745
+ onClose: handleCloseHelp,
746
+ onTakeManually: handleTakeManually,
747
+ onTakeAutomatically: state.detectionStatus === "manualCapture" ? handleTakeAutomatically : void 0,
748
+ portalContainer: portalRef.current
749
+ })
750
+ ]
751
+ });
752
+ };
753
+ //#endregion
754
+ export { CaptureOverlay as n, Capture as t };