@incodetech/web 2.4.1-agentic → 2.4.1-agentic.10

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 (352) hide show
  1. package/THIRD_PARTY_NOTICES.txt +1 -4
  2. package/dist/{GeolocationPermissionDenied-CUt-uebQ.js → GeolocationPermissionDenied-Dag9fchQ.js} +23 -8
  3. package/dist/Password-4ht2vsqv.js +212 -0
  4. package/dist/RadioGroup-Cf6xDIm5.js +123 -0
  5. package/dist/RequiredLegend-DwaAzhid.js +16 -0
  6. package/dist/RequiredMarker-CGQR8lsb.js +16 -0
  7. package/dist/TextField-o3qwE7KD.js +166 -0
  8. package/dist/ae-signature/ae-signature.es.js +4 -4
  9. package/dist/{af-ZA-BWKMRc6V.js → af-ZA-CdJRBJEg.js} +107 -881
  10. package/dist/{ageVerification-CMIp0I--.js → ageVerification-u2zo-WUl.js} +10 -8
  11. package/dist/{am-DPyjIvQV.js → am-Df9uoE6e.js} +107 -881
  12. package/dist/antifraud/antifraud.es.js +5 -4
  13. package/dist/{applyStudioConfig-DxtP9221.js → applyStudioConfig-Deh55YNW.js} +2 -2
  14. package/dist/{ar-AE-CxCvbyoW.js → ar-AE-CAoWsgnA.js} +107 -881
  15. package/dist/{ar-EG-B1hHB55j.js → ar-EG-CXi0p-DV.js} +107 -881
  16. package/dist/{ar-10SoqF1i.js → ar-hyEIwsq9.js} +108 -882
  17. package/dist/assertClassBrand-CuHX5JcR.js +17 -0
  18. package/dist/authentication/authentication.es.js +7 -5
  19. package/dist/autoFocusTitle-CNeT8ydU.js +19 -0
  20. package/dist/{az-cmuBNn_5.js → az-CUehzrK3.js} +107 -881
  21. package/dist/{back-horizontal-hint-Dl2C4J4u.js → back-horizontal-hint-D5xvRtEe.js} +1 -1
  22. package/dist/{back-vertical-hint-CM4_HjWk.js → back-vertical-hint-DoKJSQhY.js} +1 -1
  23. package/dist/base.css +1 -1
  24. package/dist/{baseTutorial-BGU2Gcly.js → baseTutorial-xDkp34JC.js} +9 -7
  25. package/dist/{bn-CuGYlngZ.js → bn-DStUscj0.js} +107 -881
  26. package/dist/{bottomSheet-x20yd6eP.js → bottomSheet-COrgITc6.js} +3 -3
  27. package/dist/{bs-vwpJzaHm.js → bs-Lq1FPKJj.js} +107 -881
  28. package/dist/{ca-DXZs5vtr.js → ca-K83Ys4Fe.js} +107 -881
  29. package/dist/cameraOverlay-Bciqav_0.js +2 -0
  30. package/dist/{cameraOverlayHeader-BxutAKy-.js → cameraOverlayHeader-C7Pi5eIm.js} +9 -8
  31. package/dist/{cameraView-DVzaEGW8.js → cameraView-B7l40Opf.js} +3 -3
  32. package/dist/capture-D7HVD1ht.js +754 -0
  33. package/dist/capture-Do7z-u0d.js +3 -0
  34. package/dist/{tutorial-BKPHj5To.js → capture-I1enj-0M.js} +28 -68
  35. package/dist/capture-WaSNv1Wn.js +2 -0
  36. package/dist/captureButtonIcon-DVbAZ8TK.js +1 -0
  37. package/dist/captureFocusContext-CNtkY3Lk.js +718 -0
  38. package/dist/captureFooter-CucCxqz-.js +47 -0
  39. package/dist/{ceb-CmhS_VOs.js → ceb-NR8sWgTh.js} +107 -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-BC26Qbxh.js → checkbox-C5k2pepr.js} +4 -4
  44. package/dist/chooser-CNm0MKQl.js +1517 -0
  45. package/dist/connectionError-Bs3TO2RP.js +100 -0
  46. package/dist/consent/consent.es.js +16 -12
  47. package/dist/{countryFlag-DXSVHiby.js → countryFlag-CZUyZ06G.js} +1 -1
  48. package/dist/{countrySelector-0PDDFsZF.js → countrySelector-CPgaMT7n.js} +4 -4
  49. package/dist/cross-document-data-match/cross-document-data-match.es.js +5 -4
  50. package/dist/{cs-CZ-Dg5O-Vom.js → cs-CZ-KpSXcWZT.js} +107 -881
  51. package/dist/{cs-CoJlE7De.js → cs-UYoUjOrG.js} +107 -881
  52. package/dist/curp-validation/curp-validation.es.js +97 -96
  53. package/dist/curp-validation/styles.css +1 -1
  54. package/dist/curp-validation/styles.css.js +1 -1
  55. package/dist/{customFields-COYGTuuK.js → customFields-BcubL9au.js} +33 -19
  56. package/dist/{customWatchlist-B0wY6Rwb.js → customWatchlist-D4RK0ow6.js} +11 -8
  57. package/dist/{da-DK-C_JAndM-.js → da-DK-Bds8n-Rj.js} +107 -881
  58. package/dist/dashboardTheme-DQaxmEq3.js +383 -0
  59. package/dist/dateInputComposed-BrpUtswb.js +1 -0
  60. package/dist/{dateInputComposed-QkmLGLHg.js → dateInputComposed-BzCDzTM3.js} +4 -5
  61. package/dist/{de-11hHLedu.js → de-CZlvE1Xz.js} +107 -881
  62. package/dist/denied-BeVKpBem.js +272 -0
  63. package/dist/devWarn-B4kGEiva.js +1056 -0
  64. package/dist/{deviceWallet-BeTpokSL.js → deviceWallet-7b1VpcGm.js} +4 -4
  65. package/dist/{digitalIdRedirect-BnljwZV3.js → digitalIdRedirect-CG9jzrQh.js} +4 -4
  66. package/dist/{digitalIdUpload-DNhqqMHT.js → digitalIdUpload-BUJcgYY5.js} +37 -15
  67. package/dist/document-capture/document-capture.es.js +1 -1
  68. package/dist/document-capture/styles.css +1 -1
  69. package/dist/document-capture/styles.css.js +1 -1
  70. package/dist/documentCapture-BdEStEoH.js +2 -0
  71. package/dist/{documentCapture-uAKPK1U-.js → documentCapture-JcxukEgT.js} +113 -59
  72. package/dist/dropdownComposed-C36c9ZOm.js +1 -0
  73. package/dist/{dropdownComposed-D_RQd0Z9.js → dropdownComposed-yNmLuHxU.js} +8 -6
  74. package/dist/dynamic-forms/dynamic-forms.es.js +62 -35
  75. package/dist/ekyb/ekyb.es.js +1 -1
  76. package/dist/{ekybModule-Bsqag_MS.js → ekybModule-Cp-7fs23.js} +109 -89
  77. package/dist/ekybModule-ccZRVb7E.js +2 -0
  78. package/dist/ekyc/ekyc.es.js +1 -1
  79. package/dist/ekyc-prefill/ekyc-prefill.es.js +2 -0
  80. package/dist/ekyc-prefill/styles.css +2 -0
  81. package/dist/ekyc-prefill/styles.css.js +1 -0
  82. package/dist/ekycModule-CcZTIgGK.js +2 -0
  83. package/dist/ekycModule-DKUZp3Ww.js +358 -0
  84. package/dist/ekycPrefillModule-Bou_Ig42.js +2 -0
  85. package/dist/ekycPrefillModule-DJoeviHP.js +233 -0
  86. package/dist/{el-CRGmVrep.js → el-C6tFl9i9.js} +107 -881
  87. package/dist/{el-GR-CjtJiRTo.js → el-GR-BLkQ_dbO.js} +107 -881
  88. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  89. package/dist/{electronic-signature-Cm2BEiQu.js → electronic-signature-D-4uTJdE.js} +55 -36
  90. package/dist/email/email.es.js +21 -16
  91. package/dist/{emailInput-JmK2JIFS.js → emailInput-C5VHG66O.js} +23 -12
  92. package/dist/{en-DG-Cruu6Woh.js → en-DG-BEuiDKtl.js} +107 -881
  93. package/dist/{en-CSjoG3e4.js → en-DNBypQuu.js} +107 -881
  94. package/dist/{errorContent-zY4jb6uY.js → errorContent-BC8mDFld.js} +21 -20
  95. package/dist/{formField-C3MNhFKI.js → errorParams-W7NX72mI.js} +2 -33
  96. package/dist/es-419-BCIRYhZK.js +5 -0
  97. package/dist/{es-C_LAY-Yu.js → es-DjQEM4f9.js} +108 -882
  98. package/dist/{es-ES-D7O0P5Mg.js → es-ES-Q6nMptUM.js} +107 -881
  99. package/dist/{es-MX-DVzFaANh.js → es-MX-Df5g3bAX.js} +107 -881
  100. package/dist/{et-DdSwjU5d.js → et-BYRhgB8X.js} +108 -882
  101. package/dist/expiredId-BVa13c9u.js +67 -0
  102. package/dist/extensibility.es.js +368 -42
  103. package/dist/{fa-IR-CdK8XLkS.js → fa-IR-DP-FPc-r.js} +107 -881
  104. package/dist/face-match/face-match.es.js +1 -1
  105. package/dist/face-match/styles.css +1 -1
  106. package/dist/face-match/styles.css.js +1 -1
  107. package/dist/faceMatch-B2n0FPIm.js +2 -0
  108. package/dist/{faceMatch-B0IzR9_u.js → faceMatch-C5QmR3Vt.js} +44 -53
  109. package/dist/{fi-FI-CYlEPu44.js → fi-FI-rnIjEC7X.js} +107 -881
  110. package/dist/field-comparison/field-comparison.es.js +1 -1
  111. package/dist/fieldComparison-CDGiqzsu.js +126 -0
  112. package/dist/fieldComparison-D-LmR1LR.js +2 -0
  113. package/dist/{fieldLabelHint-gdoE5nLQ.js → fieldLabelHint-eF42wLDJ.js} +3 -3
  114. package/dist/{finalSuccessScreen-BM9oeJDH.js → finalSuccessScreen-vOR061dK.js} +31 -22
  115. package/dist/fiscal-qr/fiscal-qr.es.js +25 -22
  116. package/dist/flipAnimation-CGP9Fu9J.js +46 -0
  117. package/dist/flipCapturedCardEligibility-C8wQ0_No.js +210 -0
  118. package/dist/flow/flow.es.js +216 -191
  119. package/dist/flow/shell/styles.css +1 -1
  120. package/dist/flow/shell/styles.css.js +1 -1
  121. package/dist/flow/styles.css +1 -1
  122. package/dist/formField-DrSwXufE.js +49 -0
  123. package/dist/{fr-CA-DD_s9NuV.js → fr-CA-vPsubqTC.js} +107 -881
  124. package/dist/{fr-C4cP8ZNE.js → fr-P8YbBMxT.js} +107 -881
  125. package/dist/{front-horizontal-hint-Dol0Lpc6.js → front-horizontal-hint-CDHj9LQF.js} +1 -1
  126. package/dist/{front-vertical-hint-CAhAzw92.js → front-vertical-hint-B_pU27Iv.js} +1 -1
  127. package/dist/geolocation/geolocation.es.js +15 -10
  128. package/dist/government-validation/government-validation.es.js +7 -6
  129. package/dist/{he-D3fvMZAl.js → he-DfptjOXC.js} +107 -881
  130. package/dist/{hi-DLf6_opn.js → hi-C7tSzMcB.js} +107 -881
  131. package/dist/{hmn-DzoODzbN.js → hmn-jKsUYgaq.js} +107 -881
  132. package/dist/{homeScreen-D1Xd93In.js → homeScreen-C1b8yg4y.js} +21 -14
  133. package/dist/{incodeComponent-C1Bz5Qou.js → hooks-COiwxC3h.js} +39 -325
  134. package/dist/{hr-C-jP0DrB.js → hr-ehtrddz3.js} +107 -881
  135. package/dist/{ht-CVt9koJf.js → ht-CA5NNkri.js} +107 -881
  136. package/dist/{hu-9fSzIeAd.js → hu-DYgOdNXH.js} +107 -881
  137. package/dist/{icons-BdiCuWFP.js → icons-CLoob8B-.js} +129 -56
  138. package/dist/id/id.es.js +166 -197
  139. package/dist/id/styles.css +1 -1
  140. package/dist/id/styles.css.js +1 -1
  141. package/dist/{id-Dgi5uGHK.js → id-CMBxWcTV.js} +107 -881
  142. package/dist/{id-back-of-card-CHFxXTEq.js → id-back-of-card-BEAthtU0.js} +1 -1
  143. package/dist/{id-back-of-card-vertical-CUBdKGbw.js → id-back-of-card-vertical-Ce0d7tp5.js} +1 -1
  144. package/dist/{id-front-of-card-DplNJr13.js → id-front-of-card-DS0lS9jP.js} +1 -1
  145. package/dist/{id-front-of-card-vertical-D1duHEsV.js → id-front-of-card-vertical-BLWn85NX.js} +1 -1
  146. package/dist/id-selfie-flow/id-selfie-flow.es.js +13 -11
  147. package/dist/id-selfie-flow/styles.css +1 -1
  148. package/dist/id-verification/id-verification.es.js +6 -5
  149. package/dist/idFlipTransition-3z8Lqcab.js +154 -0
  150. package/dist/{idOcr-sknZwQNF.js → idOcr-qPEZSG5D.js} +64 -37
  151. package/dist/identity-reuse/identity-reuse.es.js +36 -24
  152. package/dist/incodeComponent-CxWTvgqz.js +235 -0
  153. package/dist/{incodeModule-DJToJb00.js → incodeModule-BQVPjhJE.js} +5 -5
  154. package/dist/index.es.js +3 -3
  155. package/dist/{inputComposed-BuE0iZlw.js → inputComposed-oWeKvdES.js} +4 -4
  156. package/dist/{it-CEFstYFG.js → it-DNcyH3GL.js} +107 -881
  157. package/dist/{ja-BNdVd9B6.js → ja-BkVsn7yw.js} +107 -881
  158. package/dist/{ja-JP-B5TPMV1q.js → ja-JP-BI4iShf-.js} +108 -882
  159. package/dist/{jv-CMxkkXUk.js → jv-Bpp0lYl-.js} +107 -881
  160. package/dist/{ka-C70bUmEK.js → ka-__y8BNrb.js} +107 -881
  161. package/dist/{kk-C_55EmWt.js → kk-C8RZv7Y9.js} +107 -881
  162. package/dist/{km-D4Ig0NhN.js → km-CdNpEVlv.js} +114 -888
  163. package/dist/{ko-DfUa3dzQ.js → ko-Db8jh_Pq.js} +107 -881
  164. package/dist/{ko-KP-BwBB8ahu.js → ko-KP-Cn4RuF_b.js} +107 -881
  165. package/dist/{ky-CnJichOm.js → ky-DljlRCIf.js} +107 -881
  166. package/dist/kyb-checks/kyb-checks.es.js +2 -0
  167. package/dist/kyb-checks/styles.css +2 -0
  168. package/dist/kyb-checks/styles.css.js +1 -0
  169. package/dist/kybChecksModule-B2nSWMuy.js +2 -0
  170. package/dist/kybChecksModule-DGXAS1Sc.js +345 -0
  171. package/dist/{lo-ww1DXVAP.js → lo-DXJI47k7.js} +107 -881
  172. package/dist/{lt-IJ8qpluI.js → lt-CUHwdgrq.js} +107 -881
  173. package/dist/{lv-DMfsmqyK.js → lv-BFrYWmGH.js} +107 -881
  174. package/dist/{mandatoryConsent-Bp8sQoiu.js → mandatoryConsent-Dc0PQou0.js} +20 -14
  175. package/dist/{manualCaptureButton-Cd-FY05-.js → manualCaptureButton-DIlebb4i.js} +8 -7
  176. package/dist/{manualCaptureButton-BXOTp2PS.js → manualCaptureButton-t0b_hCKH.js} +15 -12
  177. package/dist/{mk-ByafmFak.js → mk-BRpnPevj.js} +107 -881
  178. package/dist/{mn-DjO9p3xN.js → mn-tly7Lz7o.js} +107 -881
  179. package/dist/{ms-3Vf1QpHl.js → ms-DFpRACK3.js} +107 -881
  180. package/dist/{my-C5hpE5P1.js → my-G2jJl4tA.js} +107 -881
  181. package/dist/{nb-NO-DGCWCOul.js → nb-NO-CaDPgzxb.js} +107 -881
  182. package/dist/{ne-CpJxcVhV.js → ne-BaCq8Imv.js} +107 -881
  183. package/dist/{nl-R2RykJHB.js → nl-BK-jT4yQ.js} +107 -881
  184. package/dist/{optionAccessibleLabel-BQl8HooZ.js → optionAccessibleLabel-CDKKh7c3.js} +25 -10
  185. package/dist/otpInput-B4mH5be-.js +245 -0
  186. package/dist/{page-utEpSa9Z.js → page-5CklyQnq.js} +86 -44
  187. package/dist/{pageUiConfig-rOL18JSI.js → pageUiConfig-DZQHreIo.js} +67 -25
  188. package/dist/{passport-horizontal-hint-BfTXA2LB.js → passport-horizontal-hint-JdWoLKa5.js} +1 -1
  189. package/dist/{passport-vertical-hint-C7dzd2ks.js → passport-vertical-hint-BgtJXbvC.js} +1 -1
  190. package/dist/passwordRequirements-bbbHZACR.js +49 -0
  191. package/dist/{pdf-BnPw8ZaT.js → pdf-CLcY9ugT.js} +2 -17
  192. package/dist/pdfViewer-2NTW2bZn.js +2 -0
  193. package/dist/{pdfViewer-DNMZsDFD.js → pdfViewer-D4xu2J13.js} +11 -14
  194. package/dist/permissionInstructionList-Dmy2y4cX.js +43 -0
  195. package/dist/{permissions-CCEc9lKM.js → permissions-BPh2QNoI.js} +84 -53
  196. package/dist/phone/phone.es.js +16 -12
  197. package/dist/{phoneInputComposed-ByiK_6Hu.js → phoneInputComposed-Dzt9xdrF.js} +6 -6
  198. package/dist/{pl-B1LgnPj1.js → pl-CoWZGdbr.js} +107 -881
  199. package/dist/preloadableLazy-2hqV2Q8z.js +43 -0
  200. package/dist/{processing-Ci_Kl-Rh.js → processing-DStiN9XK.js} +2 -2
  201. package/dist/{progressBar-Caj-Vu1e.js → progressBar-CJqJXzAh.js} +2 -2
  202. package/dist/{pt-CPVeH0hD.js → pt-BDByRgpr.js} +107 -881
  203. package/dist/{pt-BR-DSJDHb-K.js → pt-BR-BRMyrqIN.js} +107 -881
  204. package/dist/{pt-PT-BWJTVPZY.js → pt-PT-CfwlYo6V.js} +107 -881
  205. package/dist/qe-signature/qe-signature.es.js +4 -4
  206. package/dist/redirect-to-mobile/redirect-to-mobile.es.js +34 -33
  207. package/dist/redirect-to-mobile/styles.css +1 -1
  208. package/dist/redirect-to-mobile/styles.css.js +1 -1
  209. package/dist/{registerIncodeElement-Dtw9dM3O.js → registerIncodeElement-B5W7SqS3.js} +1 -1
  210. package/dist/{resendTimer-ODOCcKyh.js → resendTimer-COMRdeDC.js} +2 -2
  211. package/dist/richText-BMvr5dhl.js +1761 -0
  212. package/dist/{ro-8gGEWeHO.js → ro-ju058j4P.js} +107 -881
  213. package/dist/{ru-C4EVku5S.js → ru-DYwhf4Hw.js} +107 -881
  214. package/dist/{ru-RU-Dr0NOGjg.js → ru-RU-BAvJW-vp.js} +107 -881
  215. package/dist/{sanitizeSvg-ilJ8VQmH.js → sanitizeSvg-BZoCoRr0.js} +1 -1
  216. package/dist/selfie/selfie.es.js +30 -14
  217. package/dist/selfie/styles.css +1 -1
  218. package/dist/selfie/styles.css.js +1 -1
  219. package/dist/signature/signature.es.js +18 -13
  220. package/dist/{sk-BSTzMa__.js → sk-Cl6F-Kaz.js} +108 -882
  221. package/dist/{sl-_HvO-HVX.js → sl-BxsNneWx.js} +107 -881
  222. package/dist/{smsTabContent-CWBrtP4u.js → smsTabContent-BLJM1Hbk.js} +40 -27
  223. package/dist/{so-pyCaqonl.js → so-D8izvKPD.js} +107 -881
  224. package/dist/spacer-NanHQwzu.js +1100 -0
  225. package/dist/spinner-bRH4yw9e.js +69 -0
  226. package/dist/{sr-Bpxtt0kk.js → sr-BtsYxFKz.js} +107 -881
  227. package/dist/{sr-Latn-BjueCJSI.js → sr-Latn-BTn5o62j.js} +112 -886
  228. package/dist/sr-YU-BNViLYA5.js +5 -0
  229. package/dist/step-up/step-up.es.js +483 -0
  230. package/dist/step-up/styles.css +2 -0
  231. package/dist/{sv-SE-sv5v6ZWe.js → sv-SE-f5R8i8ue.js} +107 -881
  232. package/dist/{sw-BseJSmdR.js → sw-BgHNoEGs.js} +107 -881
  233. package/dist/{th-TH-D0WNW-3l.js → th-TH-DmfU-a6A.js} +107 -881
  234. package/dist/{th-C2G8Ur12.js → th-aFkhFNxp.js} +107 -881
  235. package/dist/themes/dark.css +1 -1
  236. package/dist/themes/light.css +1 -1
  237. package/dist/{tl-CBOmxz5r.js → tl-CA42NVfv.js} +107 -881
  238. package/dist/{tl-PH-CwafDrED.js → tl-PH-DMCUe7pP.js} +107 -881
  239. package/dist/{tr-C4iH8UJx.js → tr-BVjID0jl.js} +108 -882
  240. package/dist/{transitionSpinner-DbrWrpRU.js → transitionSpinner-MclJtdHE.js} +5 -5
  241. package/dist/tutorial-fC2iei2v.js +28 -0
  242. package/dist/types/ae-signature.d.ts +7 -3
  243. package/dist/types/antifraud.d.ts +7 -3
  244. package/dist/types/authentication.d.ts +7 -3
  245. package/dist/types/certificate-issuance.d.ts +7 -3
  246. package/dist/types/consent.d.ts +7 -3
  247. package/dist/types/cross-document-data-match.d.ts +7 -3
  248. package/dist/types/curp-validation.d.ts +7 -3
  249. package/dist/types/document-capture.d.ts +7 -3
  250. package/dist/types/dynamic-forms.d.ts +7 -3
  251. package/dist/types/ekyb.d.ts +7 -3
  252. package/dist/types/ekyc-prefill.d.ts +213 -0
  253. package/dist/types/ekyc.d.ts +7 -3
  254. package/dist/types/electronic-signature.d.ts +7 -3
  255. package/dist/types/email.d.ts +7 -3
  256. package/dist/types/extensibility.d.ts +63 -17
  257. package/dist/types/face-match.d.ts +7 -3
  258. package/dist/types/field-comparison.d.ts +7 -3
  259. package/dist/types/fiscal-qr.d.ts +7 -3
  260. package/dist/types/flow.d.ts +16 -3
  261. package/dist/types/geolocation.d.ts +7 -3
  262. package/dist/types/government-validation.d.ts +7 -3
  263. package/dist/types/id-selfie-flow.d.ts +7 -3
  264. package/dist/types/id-verification.d.ts +7 -3
  265. package/dist/types/id.d.ts +7 -3
  266. package/dist/types/identity-reuse.d.ts +7 -3
  267. package/dist/types/index.d.ts +4 -0
  268. package/dist/types/kyb-checks.d.ts +213 -0
  269. package/dist/types/phone.d.ts +7 -3
  270. package/dist/types/qe-signature.d.ts +7 -3
  271. package/dist/types/selfie.d.ts +7 -3
  272. package/dist/types/signature.d.ts +7 -3
  273. package/dist/types/step-up.d.ts +85 -0
  274. package/dist/types/watchlist.d.ts +7 -3
  275. package/dist/types/workflow.d.ts +7 -3
  276. package/dist/{typography-BF9d8wEc.js → typography-Dncyo-3D.js} +3 -11
  277. package/dist/{uk-BGYlvKb_.js → uk-HjZTXCOA.js} +107 -881
  278. package/dist/{uk-UA-CbxzkCL_.js → uk-UA-ChpoWDcU.js} +108 -882
  279. package/dist/{ur-BQgtsAfv.js → ur-CZkQHBM4.js} +107 -881
  280. package/dist/{useCameraPreview-BmkAmzAs.js → useCameraPreview-DrteOjaq.js} +1 -1
  281. package/dist/useCaptureHelpButton-B5zEGcaB.js +43 -0
  282. package/dist/{useIsDarkTheme-COJZngNK.js → useIsDarkTheme-DAs5RhsW.js} +1 -1
  283. package/dist/{useModuleLoader-CceEKjsh.js → useModuleLoader-C2fbLotc.js} +8 -3
  284. package/dist/{uz-DqOg1Fdv.js → uz-BCp_m_Om.js} +107 -881
  285. package/dist/{vendor-preact-C0jX1Cbq.js → vendor-preact-HIccnts1.js} +19 -1
  286. package/dist/{verificationResult-m99Ragq6.js → verificationResult-sh4xut0K.js} +30 -27
  287. package/dist/{vi-COxdKkHn.js → vi-BvxcvDgc.js} +107 -881
  288. package/dist/video-selfie/styles.css +1 -1
  289. package/dist/video-selfie/styles.css.js +1 -1
  290. package/dist/video-selfie/video-selfie.es.js +64 -42
  291. package/dist/watchlist/watchlist.es.js +12 -8
  292. package/dist/{watchlistForBusiness-C2zxbavl.js → watchlistForBusiness-DnS1r-Ml.js} +38 -22
  293. package/dist/{withEndScreenTexts-BwNU-8-X.js → withEndScreenTexts-CHWofhk5.js} +212 -46
  294. package/dist/workflow/styles.css +1 -1
  295. package/dist/workflow/workflow.es.js +1 -530
  296. package/dist/workflow-DBS9eyu4.js +533 -0
  297. package/dist/{zh-CN-DfvYQGdE.js → zh-CN-DZRia1ir.js} +108 -882
  298. package/dist/{zh-CPQoDPxf.js → zh-DN_kUZaR.js} +107 -881
  299. package/dist/{zh-HANT-B4LzHH2y.js → zh-HANT-DisU_Tal.js} +107 -881
  300. package/dist/{zh-TW-DtvvhBYL.js → zh-TW-BJzCsdPP.js} +107 -881
  301. package/package.json +44 -12
  302. package/dist/autoFocusTitle-BxsSeMSB.js +0 -32
  303. package/dist/browser-ponyfill-CHlXHPpU.js +0 -441
  304. package/dist/cameraOverlay-Be1PFI8S.js +0 -2
  305. package/dist/check-icon-BWTjhSuA.js +0 -48
  306. package/dist/dashboardTheme-COBidrbH.js +0 -246
  307. package/dist/dateInputComposed-CONPVayx.js +0 -1
  308. package/dist/denied-Btt81vUD.js +0 -1871
  309. package/dist/devWarn-Cr7MglXv.js +0 -2628
  310. package/dist/documentCapture-DGCraCO3.js +0 -2
  311. package/dist/dropdownComposed-DyZXfcTf.js +0 -1
  312. package/dist/ekybModule-D-czIusz.js +0 -2
  313. package/dist/ekycModule-CkBRa6h2.js +0 -2
  314. package/dist/ekycModule-WlhVn8AO.js +0 -321
  315. package/dist/es-419-CTB15v-l.js +0 -3231
  316. package/dist/esm-BTUEHyry.js +0 -430
  317. package/dist/expiredId-DpbWqSzB.js +0 -80
  318. package/dist/faceMatch-CRbIcwK2.js +0 -2
  319. package/dist/fieldComparison-DKQNK0-r.js +0 -2
  320. package/dist/fieldComparison-OwGIeOM5.js +0 -109
  321. package/dist/flipAnimation-D-5tokFC.js +0 -3275
  322. package/dist/inputComposed-5mLbxAZJ.js +0 -1
  323. package/dist/numberedStep-CqgNwc_a.js +0 -13
  324. package/dist/otpInput-B_iLvmIn.js +0 -157
  325. package/dist/passwordInputComposed-NtiseM85.js +0 -74
  326. package/dist/pdfViewer-7FzYV8l3.js +0 -2
  327. package/dist/radioGroupComposed-CocqpoKe.js +0 -160
  328. package/dist/radioGroupComposed-DlQ-fNrF.js +0 -1
  329. package/dist/reload-icon-BR1POqkD.js +0 -70
  330. package/dist/richText-CRWB2afV.js +0 -1549
  331. package/dist/spacer-CwyNauIk.js +0 -733
  332. package/dist/spinner-DEZJxLSc.js +0 -88
  333. package/dist/sr-YU-xCb5qxap.js +0 -3235
  334. package/dist/useCaptureHelpButton-D40hYyD7.js +0 -88
  335. /package/dist/{aligndevicelottie-BHWuptBk.js → aligndevicelottie-DroBRtbt.js} +0 -0
  336. /package/dist/{back-tutorial-BYZr11eV.js → back-tutorial-ydxRtY-Y.js} +0 -0
  337. /package/dist/{backdevicelottie-JflQKxT_.js → backdevicelottie-hv8vbwYH.js} +0 -0
  338. /package/dist/{blurdevicelottie-CWuMQEHL.js → blurdevicelottie-Cgu4hKn7.js} +0 -0
  339. /package/dist/{countryDefinitions-6FOOLcB2.js → countryDefinitions-DlsV3Tf8.js} +0 -0
  340. /package/dist/{defineProperty-CUC2zCmh.js → defineProperty-CRYuXE79.js} +0 -0
  341. /package/dist/{flip-animation-BqTKEBcW.js → flip-animation-CJhh7l_J.js} +0 -0
  342. /package/dist/{frontdevicelottie-BWD-NCfG.js → frontdevicelottie-vyO3BJJe.js} +0 -0
  343. /package/dist/{glaredevicelottie-Cjy50jGc.js → glaredevicelottie-DrgkRjFh.js} +0 -0
  344. /package/dist/{id-laser-h-By7lMim8.js → id-laser-h-CUz29uFc.js} +0 -0
  345. /package/dist/{id-laser-v-BCPAN2x5.js → id-laser-v-Bnf10QJp.js} +0 -0
  346. /package/dist/{id-tutorial-B9cUQuf0.js → id-tutorial-DGwvKAMs.js} +0 -0
  347. /package/dist/{lottie_light-DywVSPMT.js → lottie_light-BXXuEKyZ.js} +0 -0
  348. /package/dist/{passport-tutorial-TSZzEGqb.js → passport-tutorial-DoqqyBXo.js} +0 -0
  349. /package/dist/{pdf.worker.min-D7ZNTVBZ.js → pdf.worker.min-Cm2oniEB.js} +0 -0
  350. /package/dist/{policyUrls-Bpacx_pp.js → policyUrls-Hvb4jPfF.js} +0 -0
  351. /package/dist/{purify.es-DZazHwBu.js → purify.es-DIIgrZ-E.js} +0 -0
  352. /package/dist/{selfieTutorial-CLJAEuXG.js → selfieTutorial-BTewRjM5.js} +0 -0
@@ -0,0 +1,754 @@
1
+ import { d as useTranslation } from "./devWarn-B4kGEiva.js";
2
+ import { T as k, _ 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, y } from "./vendor-preact-HIccnts1.js";
3
+ import { b as PrizmaButton } from "./icons-CLoob8B-.js";
4
+ import { h as cn } from "./spacer-NanHQwzu.js";
5
+ import { i as useCloseButton, t as Page } from "./page-5CklyQnq.js";
6
+ import { r as Modal } from "./pageUiConfig-DZQHreIo.js";
7
+ import { f as useResizeObserver, o as useFeatureManagement, p as useEventListener, s as usePresence } from "./hooks-COiwxC3h.js";
8
+ import { t as TransitionSpinner } from "./transitionSpinner-MclJtdHE.js";
9
+ import { n as CameraFrame, t as CameraView } from "./cameraView-B7l40Opf.js";
10
+ import { n as CameraOverlay, t as CameraOverlayHeader } from "./cameraOverlayHeader-C7Pi5eIm.js";
11
+ import { t as CaptureFooter } from "./captureFooter-CucCxqz-.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-CNtkY3Lk.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-C8wQ0_No.js";
14
+ import { t as useCaptureHelpButton } from "./useCaptureHelpButton-B5zEGcaB.js";
15
+ import { i as usePreloadCaptureAnimations, n as CaptureNotification } from "./manualCaptureButton-t0b_hCKH.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-CDHj9LQF.js"));
307
+ var FrontVerticalHintSvg = z(() => import("./front-vertical-hint-B_pU27Iv.js"));
308
+ var BackHorizontalHintSvg = z(() => import("./back-horizontal-hint-D5xvRtEe.js"));
309
+ var BackVerticalHintSvg = z(() => import("./back-vertical-hint-DoKJSQhY.js"));
310
+ var PassportHorizontalHintSvg = z(() => import("./passport-horizontal-hint-JdWoLKa5.js"));
311
+ var PassportVerticalHintSvg = z(() => import("./passport-vertical-hint-BgtJXbvC.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 };