@incodetech/web 2.4.1-agentic → 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 (299) hide show
  1. package/THIRD_PARTY_NOTICES.txt +1 -4
  2. package/dist/{GeolocationPermissionDenied-CUt-uebQ.js → GeolocationPermissionDenied-ClGp0a23.js} +13 -8
  3. package/dist/ae-signature/ae-signature.es.js +4 -4
  4. package/dist/{af-ZA-BWKMRc6V.js → af-ZA-BKpmmWDe.js} +75 -865
  5. package/dist/{ageVerification-CMIp0I--.js → ageVerification-CtuJDuRV.js} +11 -8
  6. package/dist/{am-DPyjIvQV.js → am-CW_ro5Ws.js} +75 -865
  7. package/dist/antifraud/antifraud.es.js +5 -4
  8. package/dist/{applyStudioConfig-DxtP9221.js → applyStudioConfig-C6-Ak0q6.js} +5 -4
  9. package/dist/{ar-AE-CxCvbyoW.js → ar-AE-D9h8UMbm.js} +75 -865
  10. package/dist/{ar-10SoqF1i.js → ar-B5ToweVl.js} +75 -865
  11. package/dist/{ar-EG-B1hHB55j.js → ar-EG-DQqE9B26.js} +75 -865
  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-BxsSeMSB.js → autoFocusTitle-CzaCWWW5.js} +2 -2
  16. package/dist/{az-cmuBNn_5.js → az-DAZq-CQj.js} +75 -865
  17. package/dist/{back-horizontal-hint-Dl2C4J4u.js → back-horizontal-hint-qzSaNkEU.js} +1 -1
  18. package/dist/{back-vertical-hint-CM4_HjWk.js → back-vertical-hint-DkYLOege.js} +1 -1
  19. package/dist/base.css +1 -1
  20. package/dist/{baseTutorial-BGU2Gcly.js → baseTutorial-CF6WiVYt.js} +10 -7
  21. package/dist/{bn-CuGYlngZ.js → bn-DRTyq2Y9.js} +75 -865
  22. package/dist/{bottomSheet-x20yd6eP.js → bottomSheet-DylE2INk.js} +3 -3
  23. package/dist/{bs-vwpJzaHm.js → bs-B8q0B86-.js} +75 -865
  24. package/dist/{ca-DXZs5vtr.js → ca-DvsHXRB-.js} +75 -865
  25. package/dist/cameraOverlay-DNf0PEF4.js +2 -0
  26. package/dist/{cameraOverlayHeader-BxutAKy-.js → cameraOverlayHeader-CuVGnyXI.js} +9 -8
  27. package/dist/{cameraView-DVzaEGW8.js → cameraView-D9ZxLKtA.js} +3 -3
  28. package/dist/capture-0jMDSGCE.js +762 -0
  29. package/dist/{tutorial-BKPHj5To.js → capture-BlGlXoTx.js} +13 -36
  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-CmhS_VOs.js → ceb-pvlomXHV.js} +75 -865
  36. package/dist/certificate-issuance/certificate-issuance.es.js +23 -13
  37. package/dist/{check-icon-BWTjhSuA.js → check-icon-BdHltEK6.js} +1 -1
  38. package/dist/{checkbox-BC26Qbxh.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 +16 -12
  42. package/dist/{countryFlag-DXSVHiby.js → countryFlag-CQMfCnE9.js} +1 -1
  43. package/dist/{countrySelector-0PDDFsZF.js → countrySelector-C0OEKMqL.js} +4 -4
  44. package/dist/cross-document-data-match/cross-document-data-match.es.js +5 -4
  45. package/dist/{cs-CZ-Dg5O-Vom.js → cs-CZ-GgvnJLMj.js} +75 -865
  46. package/dist/{cs-CoJlE7De.js → cs-DB5PLEdt.js} +75 -865
  47. package/dist/curp-validation/curp-validation.es.js +34 -19
  48. package/dist/curp-validation/styles.css +1 -1
  49. package/dist/curp-validation/styles.css.js +1 -1
  50. package/dist/{customFields-COYGTuuK.js → customFields-DQgRumW0.js} +17 -11
  51. package/dist/{customWatchlist-B0wY6Rwb.js → customWatchlist-BbC0fA-6.js} +8 -6
  52. package/dist/{da-DK-C_JAndM-.js → da-DK-ZhpcfE_F.js} +75 -865
  53. package/dist/{dashboardTheme-COBidrbH.js → dashboardTheme-DtXsx9IK.js} +1 -1
  54. package/dist/{dateInputComposed-QkmLGLHg.js → dateInputComposed-1IcnucPq.js} +5 -5
  55. package/dist/dateInputComposed-BFlCk-sg.js +1 -0
  56. package/dist/{de-11hHLedu.js → de-DEBjzaow.js} +75 -865
  57. package/dist/{denied-Btt81vUD.js → denied-CwdVWAUw.js} +12 -9
  58. package/dist/devWarn-CW20j1Qd.js +9 -0
  59. package/dist/{deviceWallet-BeTpokSL.js → deviceWallet-CMjguFJO.js} +4 -4
  60. package/dist/{digitalIdRedirect-BnljwZV3.js → digitalIdRedirect-MNty16-5.js} +4 -4
  61. package/dist/{digitalIdUpload-DNhqqMHT.js → digitalIdUpload-CUzTaoaI.js} +39 -15
  62. package/dist/document-capture/document-capture.es.js +1 -1
  63. package/dist/document-capture/styles.css +1 -1
  64. package/dist/document-capture/styles.css.js +1 -1
  65. package/dist/{documentCapture-uAKPK1U-.js → documentCapture-BUMyJ8vw.js} +94 -32
  66. package/dist/documentCapture-rECLkwpi.js +2 -0
  67. package/dist/dropdownComposed-C9sLQE6i.js +1 -0
  68. package/dist/{dropdownComposed-D_RQd0Z9.js → dropdownComposed-x3ewHxbT.js} +4 -4
  69. package/dist/dynamic-forms/dynamic-forms.es.js +20 -15
  70. package/dist/ekyb/ekyb.es.js +1 -1
  71. package/dist/ekybModule-B5IEiSyi.js +2 -0
  72. package/dist/{ekybModule-Bsqag_MS.js → ekybModule-C5hEBLMs.js} +27 -23
  73. package/dist/ekyc/ekyc.es.js +1 -1
  74. package/dist/ekycModule-B7OFnP3H.js +2 -0
  75. package/dist/{ekycModule-WlhVn8AO.js → ekycModule-TVKk0qdS.js} +26 -20
  76. package/dist/{el-CRGmVrep.js → el-Dplr_D5N.js} +75 -865
  77. package/dist/{el-GR-CjtJiRTo.js → el-GR-IZ4reOR7.js} +75 -865
  78. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  79. package/dist/{electronic-signature-Cm2BEiQu.js → electronic-signature-BMda_cf3.js} +49 -34
  80. package/dist/email/email.es.js +15 -11
  81. package/dist/{emailInput-JmK2JIFS.js → emailInput-BI8gWC0D.js} +4 -4
  82. package/dist/{en-DG-Cruu6Woh.js → en-DG-C6tsWvHi.js} +75 -865
  83. package/dist/{en-CSjoG3e4.js → en-Db1L_u7B.js} +75 -865
  84. package/dist/{errorContent-zY4jb6uY.js → errorContent-pPAgyy2i.js} +10 -7
  85. package/dist/es-419-DxKrJq7W.js +5 -0
  86. package/dist/{es-C_LAY-Yu.js → es-C5unKsaF.js} +75 -865
  87. package/dist/{es-ES-D7O0P5Mg.js → es-ES-sHbsufzT.js} +75 -865
  88. package/dist/{es-MX-DVzFaANh.js → es-MX-Cd_DCR0A.js} +75 -865
  89. package/dist/{et-DdSwjU5d.js → et-BoGq2cx8.js} +76 -866
  90. package/dist/{expiredId-DpbWqSzB.js → expiredId-DWjw94rT.js} +12 -8
  91. package/dist/extensibility.es.js +85 -41
  92. package/dist/{fa-IR-CdK8XLkS.js → fa-IR-DuUxGXrf.js} +75 -865
  93. package/dist/face-match/face-match.es.js +1 -1
  94. package/dist/faceMatch-B2aMz3X2.js +2 -0
  95. package/dist/{faceMatch-B0IzR9_u.js → faceMatch-DV7NxYu_.js} +15 -10
  96. package/dist/{fi-FI-CYlEPu44.js → fi-FI-DMOBNTjA.js} +75 -865
  97. package/dist/field-comparison/field-comparison.es.js +1 -1
  98. package/dist/fieldComparison-BY2XXsp3.js +2 -0
  99. package/dist/{fieldComparison-OwGIeOM5.js → fieldComparison-CFLU1h6n.js} +15 -11
  100. package/dist/{fieldLabelHint-gdoE5nLQ.js → fieldLabelHint-CjrLxBaj.js} +3 -3
  101. package/dist/{finalSuccessScreen-BM9oeJDH.js → finalSuccessScreen-C50L96j9.js} +20 -16
  102. package/dist/fiscal-qr/fiscal-qr.es.js +24 -18
  103. package/dist/flipAnimation-8x-qdtF_.js +33 -0
  104. package/dist/flipCapturedCardEligibility-DLr9F2g2.js +210 -0
  105. package/dist/flow/flow.es.js +183 -167
  106. package/dist/flow/shell/styles.css +1 -1
  107. package/dist/flow/shell/styles.css.js +1 -1
  108. package/dist/flow/styles.css +1 -1
  109. package/dist/{formField-C3MNhFKI.js → formField-CfQKYeGF.js} +3 -3
  110. package/dist/{fr-CA-DD_s9NuV.js → fr-CA-DZ8jlsp3.js} +75 -865
  111. package/dist/{fr-C4cP8ZNE.js → fr-DSR-AP0e.js} +75 -865
  112. package/dist/{front-horizontal-hint-Dol0Lpc6.js → front-horizontal-hint-DOphQZg2.js} +1 -1
  113. package/dist/{front-vertical-hint-CAhAzw92.js → front-vertical-hint-S6PcS9_m.js} +1 -1
  114. package/dist/geolocation/geolocation.es.js +15 -10
  115. package/dist/government-validation/government-validation.es.js +7 -6
  116. package/dist/{he-D3fvMZAl.js → he-N5dfJeyd.js} +75 -865
  117. package/dist/{hi-DLf6_opn.js → hi-JR6K9zbd.js} +75 -865
  118. package/dist/{hmn-DzoODzbN.js → hmn-j2YA7FxW.js} +75 -865
  119. package/dist/{homeScreen-D1Xd93In.js → homeScreen-C3pPw52y.js} +17 -11
  120. package/dist/{incodeComponent-C1Bz5Qou.js → hooks-BFP0WaJM.js} +14 -308
  121. package/dist/{hr-C-jP0DrB.js → hr-8cOdwB0t.js} +75 -865
  122. package/dist/{ht-CVt9koJf.js → ht-DDNL4C__.js} +75 -865
  123. package/dist/{hu-9fSzIeAd.js → hu-CynQQUFQ.js} +75 -865
  124. package/dist/i18n-Dp014ljG.js +942 -0
  125. package/dist/{icons-BdiCuWFP.js → icons-c-hFaG4L.js} +129 -32
  126. package/dist/id/id.es.js +101 -197
  127. package/dist/id/styles.css +1 -1
  128. package/dist/id/styles.css.js +1 -1
  129. package/dist/{id-back-of-card-CHFxXTEq.js → id-back-of-card-Bk6ZQUE9.js} +1 -1
  130. package/dist/{id-back-of-card-vertical-CUBdKGbw.js → id-back-of-card-vertical-BZo00s50.js} +1 -1
  131. package/dist/{id-front-of-card-DplNJr13.js → id-front-of-card-BJ96se7u.js} +1 -1
  132. package/dist/{id-front-of-card-vertical-D1duHEsV.js → id-front-of-card-vertical-DSfJB0lX.js} +1 -1
  133. package/dist/{id-Dgi5uGHK.js → id-o_Yg0n8W.js} +75 -865
  134. package/dist/id-selfie-flow/id-selfie-flow.es.js +12 -11
  135. package/dist/id-selfie-flow/styles.css +1 -1
  136. package/dist/id-verification/id-verification.es.js +6 -5
  137. package/dist/idFlipTransition-DXdtXYza.js +158 -0
  138. package/dist/{idOcr-sknZwQNF.js → idOcr-CjqfkRJ7.js} +18 -14
  139. package/dist/identity-reuse/identity-reuse.es.js +28 -18
  140. package/dist/incodeComponent-DtKh-UUm.js +237 -0
  141. package/dist/{incodeModule-DJToJb00.js → incodeModule-DCHXAeYU.js} +5 -5
  142. package/dist/index.es.js +4 -3
  143. package/dist/{inputComposed-BuE0iZlw.js → inputComposed-CmVsaHOa.js} +4 -4
  144. package/dist/inputComposed-DvGrso7g.js +1 -0
  145. package/dist/{it-CEFstYFG.js → it-BXevrtHn.js} +75 -865
  146. package/dist/{ja-BNdVd9B6.js → ja-DiTXnTx-.js} +75 -865
  147. package/dist/{ja-JP-B5TPMV1q.js → ja-JP-D1IRWR-p.js} +75 -865
  148. package/dist/{jv-CMxkkXUk.js → jv-Us70GzGp.js} +75 -865
  149. package/dist/{ka-C70bUmEK.js → ka-BSsWQ4yU.js} +75 -865
  150. package/dist/{kk-C_55EmWt.js → kk-D5R6r4H7.js} +75 -865
  151. package/dist/{km-D4Ig0NhN.js → km-CCCb2Rnt.js} +79 -869
  152. package/dist/{ko-KP-BwBB8ahu.js → ko-KP-JF4khv1Y.js} +75 -865
  153. package/dist/{ko-DfUa3dzQ.js → ko-kQioCg2w.js} +75 -865
  154. package/dist/{ky-CnJichOm.js → ky-CLOemVjC.js} +75 -865
  155. package/dist/kyb-checks/kyb-checks.es.js +2 -0
  156. package/dist/kyb-checks/styles.css +2 -0
  157. package/dist/kyb-checks/styles.css.js +1 -0
  158. package/dist/kybChecksModule-C6Y9Hxpr.js +329 -0
  159. package/dist/kybChecksModule-r3MIpFhS.js +2 -0
  160. package/dist/{lo-ww1DXVAP.js → lo-tzHUt1CQ.js} +75 -865
  161. package/dist/{lt-IJ8qpluI.js → lt-B2ZI-Cgu.js} +76 -866
  162. package/dist/{lv-DMfsmqyK.js → lv-BJnxtSYw.js} +76 -866
  163. package/dist/{mandatoryConsent-Bp8sQoiu.js → mandatoryConsent-BiQuEZRu.js} +20 -14
  164. package/dist/{manualCaptureButton-Cd-FY05-.js → manualCaptureButton-BRSmPTeR.js} +8 -7
  165. package/dist/{manualCaptureButton-BXOTp2PS.js → manualCaptureButton-Dw0MMSkc.js} +17 -13
  166. package/dist/{mk-ByafmFak.js → mk-Cj7Iw2Q4.js} +75 -865
  167. package/dist/{mn-DjO9p3xN.js → mn-CA_rNxtz.js} +75 -865
  168. package/dist/{ms-3Vf1QpHl.js → ms-BydA1Zjz.js} +75 -865
  169. package/dist/{my-C5hpE5P1.js → my-gFKufKaG.js} +75 -865
  170. package/dist/{nb-NO-DGCWCOul.js → nb-NO-CDsGQbOZ.js} +75 -865
  171. package/dist/{ne-CpJxcVhV.js → ne-Cyfi0vFI.js} +75 -865
  172. package/dist/{nl-R2RykJHB.js → nl-e1gbmAFO.js} +75 -865
  173. package/dist/{numberedStep-CqgNwc_a.js → numberedStep-CeN77hnQ.js} +1 -1
  174. package/dist/{optionAccessibleLabel-BQl8HooZ.js → optionAccessibleLabel-BTUieMxH.js} +6 -6
  175. package/dist/{otpInput-B_iLvmIn.js → otpInput-D3L3QhnR.js} +24 -17
  176. package/dist/{page-utEpSa9Z.js → page-U6jZ7BBI.js} +69 -23
  177. package/dist/{pageUiConfig-rOL18JSI.js → pageUiConfig-Qf6ItVv9.js} +6 -14
  178. package/dist/{passport-horizontal-hint-BfTXA2LB.js → passport-horizontal-hint-Ddsh6fUS.js} +1 -1
  179. package/dist/{passport-vertical-hint-C7dzd2ks.js → passport-vertical-hint-Dukxq6-T.js} +1 -1
  180. package/dist/{passwordInputComposed-NtiseM85.js → passwordInputComposed-CW_1DcB8.js} +5 -5
  181. package/dist/{pdf-BnPw8ZaT.js → pdf-Bd5QplFS.js} +2 -17
  182. package/dist/{pdfViewer-DNMZsDFD.js → pdfViewer-BrqSEtbr.js} +11 -14
  183. package/dist/pdfViewer-rDnnHzmw.js +2 -0
  184. package/dist/{permissions-CCEc9lKM.js → permissions-KUDhffd9.js} +36 -23
  185. package/dist/phone/phone.es.js +16 -12
  186. package/dist/{phoneInputComposed-ByiK_6Hu.js → phoneInputComposed-DlJMTavK.js} +6 -6
  187. package/dist/{pl-B1LgnPj1.js → pl-BSMcCWS-.js} +75 -865
  188. package/dist/preloadableLazy-C8_OYaTC.js +37 -0
  189. package/dist/{processing-Ci_Kl-Rh.js → processing-B5EH7yNg.js} +2 -2
  190. package/dist/{progressBar-Caj-Vu1e.js → progressBar-CSpS29pV.js} +2 -2
  191. package/dist/{pt-CPVeH0hD.js → pt-BNFC2quK.js} +75 -865
  192. package/dist/{pt-BR-DSJDHb-K.js → pt-BR-bH8DC2gH.js} +75 -865
  193. package/dist/{pt-PT-BWJTVPZY.js → pt-PT-B8PXmgwU.js} +75 -865
  194. package/dist/qe-signature/qe-signature.es.js +4 -4
  195. package/dist/{radioGroupComposed-CocqpoKe.js → radioGroupComposed-CW8ElYSR.js} +4 -4
  196. package/dist/radioGroupComposed-flIYNffL.js +1 -0
  197. package/dist/redirect-to-mobile/redirect-to-mobile.es.js +19 -21
  198. package/dist/redirect-to-mobile/styles.css +1 -1
  199. package/dist/redirect-to-mobile/styles.css.js +1 -1
  200. package/dist/{registerIncodeElement-Dtw9dM3O.js → registerIncodeElement-oiLvm6xq.js} +1 -1
  201. package/dist/{reload-icon-BR1POqkD.js → reload-icon-FD2e9Wet.js} +1 -1
  202. package/dist/{resendTimer-ODOCcKyh.js → resendTimer-D1H3gwkI.js} +2 -2
  203. package/dist/richText-sUdTiRDE.js +1761 -0
  204. package/dist/{ro-8gGEWeHO.js → ro-DnN8QNYa.js} +75 -865
  205. package/dist/{ru-C4EVku5S.js → ru-DAwUFXHq.js} +75 -865
  206. package/dist/{ru-RU-Dr0NOGjg.js → ru-RU-Coxt0VCU.js} +75 -865
  207. package/dist/{sanitizeSvg-ilJ8VQmH.js → sanitizeSvg-OdNh1mqY.js} +1 -1
  208. package/dist/selfie/selfie.es.js +30 -14
  209. package/dist/selfie/styles.css +1 -1
  210. package/dist/selfie/styles.css.js +1 -1
  211. package/dist/signature/signature.es.js +18 -13
  212. package/dist/{sk-BSTzMa__.js → sk-AB8sSlNw.js} +77 -867
  213. package/dist/{sl-_HvO-HVX.js → sl-6Dfzfi7s.js} +75 -865
  214. package/dist/{smsTabContent-CWBrtP4u.js → smsTabContent-CBEKgzFv.js} +32 -23
  215. package/dist/{so-pyCaqonl.js → so-X5BdrDvV.js} +75 -865
  216. package/dist/spacer-Jaru_3sb.js +82 -0
  217. package/dist/spinner-51btbot0.js +407 -0
  218. package/dist/{sr-Bpxtt0kk.js → sr-JHjMcbGs.js} +75 -865
  219. package/dist/{sr-Latn-BjueCJSI.js → sr-Latn-DgT7eTG2.js} +80 -870
  220. package/dist/sr-YU-BBhB_G63.js +5 -0
  221. package/dist/{sv-SE-sv5v6ZWe.js → sv-SE-CvX8mC8T.js} +75 -865
  222. package/dist/{sw-BseJSmdR.js → sw-CN0TdnY4.js} +75 -865
  223. package/dist/{th-C2G8Ur12.js → th-BmFntKib.js} +75 -865
  224. package/dist/{th-TH-D0WNW-3l.js → th-TH-CWr4z3JK.js} +75 -865
  225. package/dist/themes/dark.css +1 -1
  226. package/dist/themes/light.css +1 -1
  227. package/dist/{tl-PH-CwafDrED.js → tl-PH-BRIbtBRN.js} +75 -865
  228. package/dist/{tl-CBOmxz5r.js → tl-rzkk5P_n.js} +75 -865
  229. package/dist/{tr-C4iH8UJx.js → tr-DKuVBwqW.js} +76 -866
  230. package/dist/{transitionSpinner-DbrWrpRU.js → transitionSpinner-Di0XBAix.js} +5 -4
  231. package/dist/tutorial-C9psDR2i.js +28 -0
  232. package/dist/types/extensibility.d.ts +6 -1
  233. package/dist/types/index.d.ts +4 -0
  234. package/dist/types/kyb-checks.d.ts +209 -0
  235. package/dist/{typography-BF9d8wEc.js → typography-CiGhKJGx.js} +2 -2
  236. package/dist/uiConfig-BJAuZQWc.js +77 -0
  237. package/dist/{uk-BGYlvKb_.js → uk-CXjqq4lX.js} +75 -865
  238. package/dist/{uk-UA-CbxzkCL_.js → uk-UA-BIE9WByU.js} +75 -865
  239. package/dist/{ur-BQgtsAfv.js → ur-vNGesC3r.js} +75 -865
  240. package/dist/{useCameraPreview-BmkAmzAs.js → useCameraPreview-Bd7AYE9h.js} +1 -1
  241. package/dist/useCaptureHelpButton-Dj-jESrS.js +43 -0
  242. package/dist/{useIsDarkTheme-COJZngNK.js → useIsDarkTheme-Bu9CvKxW.js} +1 -1
  243. package/dist/{useModuleLoader-CceEKjsh.js → useModuleLoader-BBCNkJmc.js} +2 -2
  244. package/dist/{uz-DqOg1Fdv.js → uz-Gmw1XRgv.js} +75 -865
  245. package/dist/{vendor-preact-C0jX1Cbq.js → vendor-preact-DHGqBGMH.js} +19 -1
  246. package/dist/{verificationResult-m99Ragq6.js → verificationResult-Clxdxm_s.js} +18 -10
  247. package/dist/{vi-COxdKkHn.js → vi-DTxxRUw0.js} +75 -865
  248. package/dist/video-selfie/video-selfie.es.js +50 -33
  249. package/dist/watchlist/watchlist.es.js +8 -6
  250. package/dist/{watchlistForBusiness-C2zxbavl.js → watchlistForBusiness-CpFp2EYX.js} +16 -11
  251. package/dist/{withEndScreenTexts-BwNU-8-X.js → withEndScreenTexts-Bd3mof3s.js} +204 -41
  252. package/dist/workflow/styles.css +1 -1
  253. package/dist/workflow/workflow.es.js +19 -15
  254. package/dist/{zh-CN-DfvYQGdE.js → zh-CN-aB48G_R1.js} +76 -866
  255. package/dist/{zh-CPQoDPxf.js → zh-DjtyfO4e.js} +75 -865
  256. package/dist/{zh-HANT-B4LzHH2y.js → zh-HANT-8p8SH8C3.js} +75 -865
  257. package/dist/{zh-TW-DtvvhBYL.js → zh-TW-CCsz9gKq.js} +75 -865
  258. package/package.json +22 -10
  259. package/dist/browser-ponyfill-CHlXHPpU.js +0 -441
  260. package/dist/cameraOverlay-Be1PFI8S.js +0 -2
  261. package/dist/dateInputComposed-CONPVayx.js +0 -1
  262. package/dist/devWarn-Cr7MglXv.js +0 -2628
  263. package/dist/documentCapture-DGCraCO3.js +0 -2
  264. package/dist/dropdownComposed-DyZXfcTf.js +0 -1
  265. package/dist/ekybModule-D-czIusz.js +0 -2
  266. package/dist/ekycModule-CkBRa6h2.js +0 -2
  267. package/dist/es-419-CTB15v-l.js +0 -3231
  268. package/dist/esm-BTUEHyry.js +0 -430
  269. package/dist/faceMatch-CRbIcwK2.js +0 -2
  270. package/dist/fieldComparison-DKQNK0-r.js +0 -2
  271. package/dist/flipAnimation-D-5tokFC.js +0 -3275
  272. package/dist/inputComposed-5mLbxAZJ.js +0 -1
  273. package/dist/pdfViewer-7FzYV8l3.js +0 -2
  274. package/dist/radioGroupComposed-DlQ-fNrF.js +0 -1
  275. package/dist/richText-CRWB2afV.js +0 -1549
  276. package/dist/spacer-CwyNauIk.js +0 -733
  277. package/dist/spinner-DEZJxLSc.js +0 -88
  278. package/dist/sr-YU-xCb5qxap.js +0 -3235
  279. package/dist/useCaptureHelpButton-D40hYyD7.js +0 -88
  280. /package/dist/{aligndevicelottie-BHWuptBk.js → aligndevicelottie-BEKzL4SB.js} +0 -0
  281. /package/dist/{back-tutorial-BYZr11eV.js → back-tutorial-B9W63fa-.js} +0 -0
  282. /package/dist/{backdevicelottie-JflQKxT_.js → backdevicelottie-DsN8QBV3.js} +0 -0
  283. /package/dist/{blurdevicelottie-CWuMQEHL.js → blurdevicelottie-DkV7Kwo4.js} +0 -0
  284. /package/dist/{countryDefinitions-6FOOLcB2.js → countryDefinitions-RBVGM1D_.js} +0 -0
  285. /package/dist/{defineProperty-CUC2zCmh.js → defineProperty-E9wRIIo9.js} +0 -0
  286. /package/dist/{flip-animation-BqTKEBcW.js → flip-animation-DJVnWWL5.js} +0 -0
  287. /package/dist/{frontdevicelottie-BWD-NCfG.js → frontdevicelottie-DiW1Wmya.js} +0 -0
  288. /package/dist/{glaredevicelottie-Cjy50jGc.js → glaredevicelottie-CK-fnX_s.js} +0 -0
  289. /package/dist/{helpButtonConfig-BFragC_J.js → helpButtonConfig-CjbrBQaV.js} +0 -0
  290. /package/dist/{id-laser-h-By7lMim8.js → id-laser-h-6Am_cjM8.js} +0 -0
  291. /package/dist/{id-laser-v-BCPAN2x5.js → id-laser-v-DXoF3flH.js} +0 -0
  292. /package/dist/{id-tutorial-B9cUQuf0.js → id-tutorial-DkKH3eTE.js} +0 -0
  293. /package/dist/{lottie_light-DywVSPMT.js → lottie_light-B819EhaL.js} +0 -0
  294. /package/dist/{passport-tutorial-TSZzEGqb.js → passport-tutorial-D3Fpk-Tj.js} +0 -0
  295. /package/dist/{pdf.worker.min-D7ZNTVBZ.js → pdf.worker.min-DzBNMoKS.js} +0 -0
  296. /package/dist/{policyUrls-Bpacx_pp.js → policyUrls-Benduf-R.js} +0 -0
  297. /package/dist/{purify.es-DZazHwBu.js → purify.es-CSPoFViI.js} +0 -0
  298. /package/dist/{realtimeFeedbackConfig-DeZksjlR.js → realtimeFeedbackConfig-tBX94SOm.js} +0 -0
  299. /package/dist/{selfieTutorial-CLJAEuXG.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 };