@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,729 @@
1
+ import { i as useTranslation } from "./i18n-Dp014ljG.js";
2
+ import { S as Q, b as u, f as _, l as A, m as d, v as x, w as k, y } from "./vendor-preact-DHGqBGMH.js";
3
+ import { a as LockIcon, x as PrizmaButton } from "./icons-c-hFaG4L.js";
4
+ import { n as cn, t as Spacer } from "./spacer-Jaru_3sb.js";
5
+ import { o as TypographyP, r as TypographyH3, t as Title } from "./typography-CiGhKJGx.js";
6
+ import { t as Page } from "./page-U6jZ7BBI.js";
7
+ import { i as TerminalErrorPage, l as useTimeoutHandle } from "./hooks-BFP0WaJM.js";
8
+ import { r as AnimatedAsset } from "./spinner-51btbot0.js";
9
+ import { t as ProgressBar } from "./progressBar-CSpS29pV.js";
10
+ import { f as MANUAL_TOOLTIP, n as CaptureFrame, r as useIdExperiment, t as canFlipCapturedCard } from "./flipCapturedCardEligibility-DLr9F2g2.js";
11
+ import { n as RedStrikeIcon, t as ExpiredId } from "./expiredId-DWjw94rT.js";
12
+ import { n as getCountryDisplayName, t as countryFlagEmoji } from "./countryFlag-CQMfCnE9.js";
13
+ //#region src/modules/id/assets/blurIcon.tsx
14
+ var BlurIcon = ({ className }) => {
15
+ return /* @__PURE__ */ u("svg", {
16
+ width: "24",
17
+ height: "24",
18
+ viewBox: "0 0 24 24",
19
+ fill: "none",
20
+ xmlns: "http://www.w3.org/2000/svg",
21
+ class: className,
22
+ "aria-hidden": "true",
23
+ children: [
24
+ /* @__PURE__ */ u("path", {
25
+ d: "M12.26 4.156a9.08 9.08 0 0 1 5.66 2.076.75.75 0 0 1-.954 1.158 7.58 7.58 0 0 0-4.717-1.734 7.56 7.56 0 0 0-4.696 1.716 12.5 12.5 0 0 0-3.49 4.639 12.3 12.3 0 0 0 3.46 4.615.75.75 0 0 1-.958 1.156 13.8 13.8 0 0 1-4.012-5.492.75.75 0 0 1 .002-.562 14 14 0 0 1 4.044-5.514l.002-.001a9.06 9.06 0 0 1 5.64-2.057z",
26
+ fill: "currentColor"
27
+ }),
28
+ /* @__PURE__ */ u("path", {
29
+ d: "M19.396 3.806a.751.751 0 0 1 1.062 1.06l-15.35 15.35a.75.75 0 1 1-1.061-1.06z",
30
+ fill: "currentColor"
31
+ }),
32
+ /* @__PURE__ */ u("path", {
33
+ d: "M12.429 8.184A3.82 3.82 0 0 1 14.95 9.3a.75.75 0 0 1-1.06 1.06 2.32 2.32 0 0 0-1.648-.68h0a2.325 2.325 0 0 0-2.321 2.329v.004a2.28 2.28 0 0 0 .678 1.633.75.75 0 0 1-1.056 1.066 3.79 3.79 0 0 1-1.122-2.705 3.825 3.825 0 0 1 3.817-3.827z",
34
+ fill: "currentColor"
35
+ }),
36
+ /* @__PURE__ */ u("path", {
37
+ d: "M19.054 8.343a.75.75 0 0 1 1.048.156 15.7 15.7 0 0 1 1.84 3.214c.08.189.079.402-.003.59-1.989 4.608-5.588 7.557-9.69 7.557-.917 0-1.828-.15-2.697-.438a.75.75 0 1 1 .472-1.423c.719.239 1.47.361 2.226.361 3.231 0 6.324-2.28 8.18-6.355a14.2 14.2 0 0 0-1.533-2.614.75.75 0 0 1 .157-1.048Z",
38
+ fill: "currentColor"
39
+ }),
40
+ /* @__PURE__ */ u("path", {
41
+ d: "M14.535 12.42a.75.75 0 1 1 1.476.269 3.83 3.83 0 0 1-3.072 3.077.75.75 0 0 1-.271-1.475 2.33 2.33 0 0 0 1.867-1.872Z",
42
+ fill: "currentColor"
43
+ })
44
+ ]
45
+ });
46
+ };
47
+ //#endregion
48
+ //#region src/modules/id/assets/glareIcon.tsx
49
+ var GlareIcon = ({ className }) => {
50
+ return /* @__PURE__ */ u("svg", {
51
+ width: "24",
52
+ height: "24",
53
+ viewBox: "0 0 24 24",
54
+ fill: "none",
55
+ xmlns: "http://www.w3.org/2000/svg",
56
+ class: className,
57
+ "aria-hidden": "true",
58
+ children: [
59
+ /* @__PURE__ */ u("path", {
60
+ d: "M2.25 15.128V9.512c0-1.629.511-3.079 1.49-4.13.985-1.055 2.387-1.647 4.042-1.647h5.489l.077.004a.75.75 0 0 1 0 1.492l-.078.004H7.783c-1.283 0-2.272.45-2.944 1.17-.677.727-1.088 1.79-1.088 3.107v5.616c0 1.318.41 2.38 1.085 3.106.67.72 1.659 1.17 2.947 1.17h8.434c1.29 0 2.278-.45 2.949-1.17.676-.726 1.085-1.788 1.085-3.106v-2.67a.75.75 0 0 1 1.5 0v2.67c0 1.627-.509 3.078-1.487 4.129-.985 1.056-2.388 1.647-4.047 1.647H7.782c-1.66 0-3.062-.59-4.046-1.647-.978-1.05-1.486-2.502-1.486-4.13Z",
61
+ fill: "currentColor"
62
+ }),
63
+ /* @__PURE__ */ u("path", {
64
+ d: "M14.27 14.412a.75.75 0 0 1 0 1.5H7.042a.75.75 0 0 1 0-1.5zm-5.31-3.76a.75.75 0 0 1 0 1.5H7.042a.75.75 0 1 1 0-1.5z",
65
+ fill: "currentColor"
66
+ }),
67
+ /* @__PURE__ */ u("path", {
68
+ d: "M18.404 3.096a.75.75 0 0 1 .703.49l.102.273a3.01 3.01 0 0 0 1.778 1.782l.274.101a.75.75 0 0 1 0 1.406l-.274.102a3.01 3.01 0 0 0-1.717 1.629l-.061.152-.102.274a.75.75 0 0 1-1.406 0L17.6 9.03A3.01 3.01 0 0 0 15.82 7.25l-.273-.102a.75.75 0 0 1 0-1.406l.273-.101A3.01 3.01 0 0 0 17.6 3.859l.101-.273.048-.106a.75.75 0 0 1 .655-.384Zm0 2.398a4.5 4.5 0 0 1-.95.951c.362.268.683.588.95.95.268-.362.588-.682.95-.95a4.5 4.5 0 0 1-.95-.95Z",
69
+ fill: "currentColor"
70
+ }),
71
+ /* @__PURE__ */ u("path", {
72
+ d: "M13.902 8.295a.75.75 0 0 1 .718.532c.099.326.353.58.677.679a.75.75 0 0 1 0 1.434 1.02 1.02 0 0 0-.677.68.75.75 0 0 1-1.436 0 1.02 1.02 0 0 0-.678-.68.75.75 0 0 1 0-1.434 1.02 1.02 0 0 0 .678-.679.75.75 0 0 1 .718-.532Z",
73
+ fill: "currentColor"
74
+ })
75
+ ]
76
+ });
77
+ };
78
+ //#endregion
79
+ //#region src/modules/id/assets/infoNotReadableIcon.tsx
80
+ var InfoNotReadableIcon = ({ className }) => {
81
+ return /* @__PURE__ */ u("svg", {
82
+ width: "24",
83
+ height: "24",
84
+ viewBox: "0 0 24 24",
85
+ fill: "none",
86
+ xmlns: "http://www.w3.org/2000/svg",
87
+ class: className,
88
+ "aria-hidden": "true",
89
+ children: [
90
+ /* @__PURE__ */ u("path", {
91
+ fillRule: "evenodd",
92
+ clipRule: "evenodd",
93
+ d: "M3.52 5.07c.843-.904 2.04-1.406 3.445-1.406h10.07c1.407 0 2.605.502 3.448 1.407.837.898 1.267 2.134 1.267 3.51v2.923a.75.75 0 0 1-1.5 0V8.58c0-1.065-.33-1.913-.865-2.487-.529-.568-1.313-.929-2.35-.929H6.965c-1.033 0-1.818.36-2.348.93-.536.574-.867 1.421-.867 2.486v6.588c0 1.067.33 1.914.865 2.488.529.568 1.313.929 2.35.929h4.157a.75.75 0 0 1 0 1.5H6.965c-1.407 0-2.605-.502-3.448-1.407-.837-.898-1.267-2.134-1.267-3.51V8.58c0-1.376.432-2.611 1.27-3.51Z",
94
+ fill: "currentColor"
95
+ }),
96
+ /* @__PURE__ */ u("path", {
97
+ fillRule: "evenodd",
98
+ clipRule: "evenodd",
99
+ d: "M2.25 9.712a.75.75 0 0 1 .75-.75h18a.75.75 0 0 1 0 1.5H3a.75.75 0 0 1-.75-.75Z",
100
+ fill: "currentColor"
101
+ }),
102
+ /* @__PURE__ */ u("path", {
103
+ fillRule: "evenodd",
104
+ clipRule: "evenodd",
105
+ d: "M18.436 14.397a2.171 2.171 0 1 0-3.072 3.07 2.171 2.171 0 0 0 3.072-3.07Zm-4.132-1.06a3.672 3.672 0 1 1 5.193 5.191 3.672 3.672 0 0 1-5.193-5.192Z",
106
+ fill: "currentColor"
107
+ }),
108
+ /* @__PURE__ */ u("path", {
109
+ fillRule: "evenodd",
110
+ clipRule: "evenodd",
111
+ d: "M18.436 17.47a.75.75 0 0 1 1.06 0l1.584 1.584a.75.75 0 1 1-1.061 1.06l-1.583-1.583a.75.75 0 0 1 0-1.06Z",
112
+ fill: "currentColor"
113
+ })
114
+ ]
115
+ });
116
+ };
117
+ //#endregion
118
+ //#region src/modules/id/assets/questionIcon.tsx
119
+ var QuestionIcon = ({ className }) => {
120
+ return /* @__PURE__ */ u("svg", {
121
+ width: "64",
122
+ height: "64",
123
+ viewBox: "0 0 64 64",
124
+ fill: "none",
125
+ xmlns: "http://www.w3.org/2000/svg",
126
+ class: className,
127
+ "aria-hidden": "true",
128
+ children: [/* @__PURE__ */ u("circle", {
129
+ cx: "32",
130
+ cy: "32",
131
+ r: "32",
132
+ fill: "#14151A"
133
+ }), /* @__PURE__ */ u("path", {
134
+ d: "M32 41a2 2 0 1 1 0 4 2 2 0 0 1 0-4Zm0-22.5c4.69 0 8.167 3.558 8.167 8.06 0 2.276-.928 4.158-2.455 5.478-1.162 1.005-2.626 1.648-4.212 1.948V38h-3v-6.743l1.407-.087c1.607-.1 2.94-.62 3.843-1.401.874-.757 1.417-1.813 1.417-3.208 0-2.84-2.128-5.06-5.167-5.061-3.093 0-5.275 2.282-5.86 5.342l-2.947-.563C23.975 22.186 27.112 18.5 32 18.5Z",
135
+ fill: "white"
136
+ })]
137
+ });
138
+ };
139
+ //#endregion
140
+ //#region src/modules/id/processing/idProcessingLayout.tsx
141
+ var IdProcessingLayout = ({ imageUrl, orientation, mode, borderState, topContent, bottomContent, overlayContent, imagePending = false, blurImage }) => {
142
+ const { t } = useTranslation();
143
+ const frameMode = mode === "id" ? "front" : mode;
144
+ const hasFrame = Boolean(imageUrl) || imagePending;
145
+ return /* @__PURE__ */ u(Page, {
146
+ hideHeader: true,
147
+ hideFooterBranding: true,
148
+ className: "IncodeIdProcessingPage",
149
+ children: /* @__PURE__ */ u("div", {
150
+ class: cn("IncodeIdProcessingLayout", !hasFrame && "IncodeIdProcessingLayoutNoImage"),
151
+ children: /* @__PURE__ */ u("div", {
152
+ class: "IncodeIdProcessingLayoutContent",
153
+ children: [
154
+ topContent && /* @__PURE__ */ u("div", {
155
+ class: "IncodeIdProcessingTopArea",
156
+ children: topContent
157
+ }),
158
+ hasFrame && /* @__PURE__ */ u(CaptureFrame, {
159
+ orientation,
160
+ mode: frameMode,
161
+ state: borderState,
162
+ children: imageUrl ? /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u("img", {
163
+ src: imageUrl,
164
+ alt: "",
165
+ "aria-hidden": "true",
166
+ class: cn("IncodeIdProcessingImage", blurImage ? "IncodeIdProcessingImageBlurred" : void 0)
167
+ }), overlayContent && /* @__PURE__ */ u("div", {
168
+ class: "IncodeIdProcessingOverlay",
169
+ "aria-hidden": "true",
170
+ children: overlayContent
171
+ })] }) : /* @__PURE__ */ u("div", {
172
+ class: "IncodeIdProcessingPlaceholder",
173
+ "aria-hidden": "true"
174
+ })
175
+ }),
176
+ /* @__PURE__ */ u("div", {
177
+ class: "IncodeIdProcessingBottomArea",
178
+ children: [hasFrame && /* @__PURE__ */ u("div", {
179
+ class: "IncodeCaptureEncryptionLabel",
180
+ children: [/* @__PURE__ */ u(LockIcon, { className: "IncodeCaptureEncryptionIcon" }), /* @__PURE__ */ u("span", { children: t("idv2.capture.allDataIsEncrypted") })]
181
+ }), bottomContent]
182
+ })
183
+ ]
184
+ })
185
+ })
186
+ });
187
+ };
188
+ //#endregion
189
+ //#region src/modules/id/experiments/analyzingTitle.ts
190
+ /** Control arm: one static title for the whole upload. */
191
+ var ANALYZING_TITLE_KEY = "idv2.capture.processing.analyzing";
192
+ /** IDC-05 treatment arm, below `UPLOADING_TITLE_PROGRESS`. */
193
+ var PROCESSING_TITLE_KEY = "idv2.capture.processing.processing";
194
+ /** IDC-05 treatment arm, at or above `UPLOADING_TITLE_PROGRESS`. */
195
+ var UPLOADING_TITLE_KEY = "idv2.capture.processing.uploading";
196
+ /**
197
+ * IDC-05 treatment: the analyzing screen steps its title "Processing" →
198
+ * "Uploading" instead of resting on the control arm's single "Analyzing".
199
+ *
200
+ * Derived from `uploadProgress` rather than from a dwell timer, so the copy and
201
+ * the bar can never disagree about how far along the upload looks. That also
202
+ * makes it monotonic for free — the machine only ever raises `uploadProgress`
203
+ * within a single `uploading` visit (`Math.max` on the byte events, `Math.min`
204
+ * against the hold ceiling on the ticker) — so the title cannot walk backwards
205
+ * on a re-render or a stalled upload.
206
+ *
207
+ * Pure rather than a hook: no timers, no state, nothing to reset between
208
+ * attempts.
209
+ */
210
+ function getAnalyzingTitleKey(resultPreviewEnabled, progress) {
211
+ if (!resultPreviewEnabled) return ANALYZING_TITLE_KEY;
212
+ return progress >= 80 ? UPLOADING_TITLE_KEY : PROCESSING_TITLE_KEY;
213
+ }
214
+ //#endregion
215
+ //#region src/modules/id/processing/idAnalyzing.tsx
216
+ var IdAnalyzing = ({ imageUrl, progress, orientation, mode, blurImage, autoFocusTitle = true, resultPreviewEnabled = false, simulatedProgressDelayMs = 0 }) => {
217
+ const { t } = useTranslation();
218
+ const [simulatedDelayMs] = d(simulatedProgressDelayMs);
219
+ const titleRef = A(null);
220
+ const isHorizontal = orientation !== "vertical";
221
+ const titleKey = getAnalyzingTitleKey(resultPreviewEnabled, progress);
222
+ _(() => {
223
+ if (!autoFocusTitle) return;
224
+ titleRef.current?.focus();
225
+ }, [autoFocusTitle]);
226
+ return /* @__PURE__ */ u(IdProcessingLayout, {
227
+ imageUrl,
228
+ orientation,
229
+ mode,
230
+ borderState: "analyzing",
231
+ blurImage,
232
+ topContent: /* @__PURE__ */ u("div", {
233
+ class: "IncodeAnalyzingContent",
234
+ style: { "--progress-bar-simulated-delay": `${simulatedDelayMs}ms` },
235
+ children: [/* @__PURE__ */ u(ProgressBar, {
236
+ progress,
237
+ labelledById: "analyzing-title",
238
+ simulated: true
239
+ }), /* @__PURE__ */ u(Title, {
240
+ ref: titleRef,
241
+ id: "analyzing-title",
242
+ className: "IncodeAnalyzingTitle",
243
+ tabIndex: -1,
244
+ "aria-live": "polite",
245
+ children: /* @__PURE__ */ u("span", {
246
+ class: "IncodeAnalyzingTitleText",
247
+ children: t(titleKey)
248
+ }, titleKey)
249
+ })]
250
+ }),
251
+ overlayContent: /* @__PURE__ */ u(AnimatedAsset, {
252
+ name: "id.processing",
253
+ orientation: isHorizontal ? "horizontal" : "vertical",
254
+ loop: true,
255
+ autoStop: true,
256
+ class: "IncodeAnalyzingLottie"
257
+ }),
258
+ imagePending: !imageUrl
259
+ });
260
+ };
261
+ //#endregion
262
+ //#region src/modules/id/assets/greenCheckIcon.tsx
263
+ var GreenCheckIcon = ({ className, ...rest }) => /* @__PURE__ */ u("svg", {
264
+ class: className,
265
+ width: "32",
266
+ height: "32",
267
+ viewBox: "0 0 32 32",
268
+ fill: "none",
269
+ xmlns: "http://www.w3.org/2000/svg",
270
+ "aria-hidden": "true",
271
+ ...rest,
272
+ children: /* @__PURE__ */ u("path", {
273
+ d: "M16 0c8.836 0 16 7.164 16 16s-7.164 16-16 16S0 24.836 0 16 7.164 0 16 0Zm6.349 11.231a1.275 1.275 0 0 0-1.7-.092l-.008.007-.087.078-6.84 6.84-2.262-2.263a1.275 1.275 0 0 0-1.895 1.701l.006.008.079.088 3.17 3.17c.466.465 1.2.496 1.7.093l.008-.006.088-.079 7.74-7.74a1.275 1.275 0 0 0 0-1.805Z",
274
+ fill: "#189F60"
275
+ })
276
+ });
277
+ //#endregion
278
+ //#region src/modules/id/processing/idProcessingResult.tsx
279
+ var FADE_OUT_ANIMATION_NAME = "incodeIdProcessingResultFadeOut";
280
+ var EXIT_WATCHDOG_MS = 3500;
281
+ var IdProcessingResult = ({ variant, imageUrl, orientation, mode, title, subtitle, buttonText, onButtonClick, attemptsRemaining, blurImage, fadeOutOnClick, children }) => {
282
+ const { t } = useTranslation();
283
+ const titleRef = A(null);
284
+ const [isExiting, setIsExiting] = d(false);
285
+ const hasFiredButtonClickRef = A(false);
286
+ const { schedule: scheduleExitWatchdog, clear: clearExitWatchdog } = useTimeoutHandle();
287
+ y(() => {
288
+ titleRef.current?.focus();
289
+ }, []);
290
+ const fireButtonClick = () => {
291
+ if (hasFiredButtonClickRef.current) return;
292
+ hasFiredButtonClickRef.current = true;
293
+ onButtonClick();
294
+ };
295
+ const handleButtonClick = () => {
296
+ if (fadeOutOnClick) {
297
+ setIsExiting(true);
298
+ scheduleExitWatchdog(fireButtonClick, EXIT_WATCHDOG_MS);
299
+ return;
300
+ }
301
+ onButtonClick();
302
+ };
303
+ const handleExitAnimationEnd = (event) => {
304
+ if (event.animationName !== FADE_OUT_ANIMATION_NAME) return;
305
+ clearExitWatchdog();
306
+ fireButtonClick();
307
+ };
308
+ return /* @__PURE__ */ u(IdProcessingLayout, {
309
+ imageUrl,
310
+ orientation,
311
+ mode,
312
+ borderState: variant,
313
+ blurImage,
314
+ topContent: /* @__PURE__ */ u("div", {
315
+ class: cn("IncodeIdProcessingResultContent", isExiting && "IncodeIdProcessingResultContentExiting"),
316
+ onAnimationEnd: handleExitAnimationEnd,
317
+ children: [/* @__PURE__ */ u("div", {
318
+ class: "IncodeIdProcessingResultStatus",
319
+ role: "status",
320
+ children: [
321
+ variant === "success" ? /* @__PURE__ */ u(GreenCheckIcon, { className: "IncodeIdProcessingResultIcon" }) : /* @__PURE__ */ u(RedStrikeIcon, { className: "IncodeIdProcessingResultIcon" }),
322
+ /* @__PURE__ */ u(Spacer, { size: 16 }),
323
+ title && /* @__PURE__ */ u(Title, {
324
+ ref: titleRef,
325
+ className: "IncodeIdProcessingResultTitle",
326
+ tabIndex: -1,
327
+ children: title
328
+ }),
329
+ subtitle && /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(Spacer, { size: 12 }), /* @__PURE__ */ u("p", {
330
+ class: "IncodeIdProcessingResultSubtitle",
331
+ children: subtitle
332
+ })] })
333
+ ]
334
+ }), children]
335
+ }),
336
+ bottomContent: /* @__PURE__ */ u("div", {
337
+ class: cn("IncodeIdProcessingResultButtonContainer", isExiting && "IncodeIdProcessingResultButtonContainerExiting"),
338
+ onAnimationEnd: handleExitAnimationEnd,
339
+ children: [attemptsRemaining !== void 0 && /* @__PURE__ */ u("p", {
340
+ class: "IncodeIdProcessingResultAttempts",
341
+ children: attemptsRemaining === 0 ? t("idv2.capture.processing.noAttemptsRemaining") : t("v2.idError.attemptsLeft", { count: attemptsRemaining })
342
+ }), /* @__PURE__ */ u(PrizmaButton, {
343
+ variant: "primary",
344
+ size: "L",
345
+ className: "IncodeButton IncodeButtonPrimary IncodeButtonL",
346
+ onClick: handleButtonClick,
347
+ disabled: isExiting,
348
+ "data-testid": "retry-button",
349
+ children: buttonText
350
+ })]
351
+ })
352
+ });
353
+ };
354
+ //#endregion
355
+ //#region src/modules/id/processing/idSuccess.tsx
356
+ var IdSuccess = ({ manager, state, blurImage }) => {
357
+ const { t } = useTranslation();
358
+ const hasNextSide = state.needsBackCapture || state.needsFrontCapture;
359
+ const { params } = useIdExperiment({
360
+ key: "flipCapturedCard",
361
+ enabled: canFlipCapturedCard(state.currentMode, state.previewImageUrl) && hasNextSide
362
+ });
363
+ const shouldFlipCapturedCard = params.shouldFlipCapturedCard;
364
+ if (!state.previewImageUrl && !state.barcodeFastPathCaptured) return null;
365
+ const mode = state.currentMode === "passport" ? "passport" : "id";
366
+ const getSubtitle = () => {
367
+ if (state.needsBackCapture) return t("idv2.capture.processing.successFrontSubtitle");
368
+ if (state.needsFrontCapture) return t("idv2.capture.processing.successBackSubtitleScanFront");
369
+ return t("idv2.capture.processing.successBackSubtitle");
370
+ };
371
+ const getButtonText = () => {
372
+ if (state.needsBackCapture) return t("idv2.capture.processing.scanBack");
373
+ if (state.needsFrontCapture) return t("idv2.capture.processing.scanFront");
374
+ return t("idv2.capture.processing.continue");
375
+ };
376
+ return /* @__PURE__ */ u(IdProcessingResult, {
377
+ variant: "success",
378
+ imageUrl: state.previewImageUrl,
379
+ orientation: state.orientation,
380
+ mode,
381
+ title: t("idv2.capture.processing.successTitle"),
382
+ subtitle: getSubtitle(),
383
+ buttonText: getButtonText(),
384
+ onButtonClick: () => manager.nextStep(),
385
+ blurImage,
386
+ fadeOutOnClick: shouldFlipCapturedCard
387
+ });
388
+ };
389
+ //#endregion
390
+ //#region src/shared/acceptedDocumentCard/assets/driversLicenseIcon.tsx
391
+ var DriversLicenseIcon = ({ class: className }) => /* @__PURE__ */ u("svg", {
392
+ xmlns: "http://www.w3.org/2000/svg",
393
+ width: "20",
394
+ height: "20",
395
+ viewBox: "0 0 20 20",
396
+ fill: "none",
397
+ "aria-hidden": "true",
398
+ class: className,
399
+ children: /* @__PURE__ */ u("path", {
400
+ "fill-rule": "evenodd",
401
+ "clip-rule": "evenodd",
402
+ d: "m4.97 7.806.776-2.154a1.21 1.21 0 0 1 .94-.795 21.2 21.2 0 0 1 6.611 0 1.21 1.21 0 0 1 .953.801l.773 2.148c-3.344.32-6.709.32-10.053 0Zm8.738 4.708a.922.922 0 0 1 0-1.842.922.922 0 0 1 0 1.842Zm-7.423 0a.922.922 0 1 1 .92-.922.92.92 0 0 1-.92.922Zm11.82-4.452a.63.63 0 0 0-.708-.532c-.364.052-.73.092-1.095.136l-.001-.004-.874-2.422a2.46 2.46 0 0 0-1.933-1.618 22.5 22.5 0 0 0-7.008 0 2.46 2.46 0 0 0-1.919 1.613l-.871 2.42-.006.01c-.365-.043-.73-.083-1.094-.135a.625.625 0 0 0-.176 1.238c.31.044.62.077.932.115l-.408.561a3.36 3.36 0 0 0-.645 1.984v4.188c0 .57.464 1.035 1.035 1.035h1.667c.57 0 1.034-.464 1.034-1.035v-.384a.43.43 0 0 1 .123-.304.43.43 0 0 1 .301-.126h7.06a.43.43 0 0 1 .3.126q.06.06.092.138.03.08.03.167v.383c0 .57.464 1.035 1.035 1.035h1.683c.57 0 1.034-.464 1.034-1.035v-4.204c0-.723-.226-1.415-.656-2.002l-.392-.527c.31-.038.62-.07.928-.115a.625.625 0 0 0 .531-.706Z",
403
+ fill: "var(--icon-neutral-300)"
404
+ })
405
+ });
406
+ //#endregion
407
+ //#region src/shared/acceptedDocumentCard/assets/identificationCardIcon.tsx
408
+ var IdentificationCardIcon = ({ class: className }) => /* @__PURE__ */ u("svg", {
409
+ xmlns: "http://www.w3.org/2000/svg",
410
+ width: "20",
411
+ height: "20",
412
+ viewBox: "0 0 20 20",
413
+ fill: "none",
414
+ "aria-hidden": "true",
415
+ class: className,
416
+ children: /* @__PURE__ */ u("path", {
417
+ "fill-rule": "evenodd",
418
+ "clip-rule": "evenodd",
419
+ d: "M14.789 9.394h-2.923a.686.686 0 1 1 0-1.371h2.923a.685.685 0 0 1 0 1.37Zm0 3.09h-1.82a.685.685 0 0 1 0-1.37h1.82a.685.685 0 0 1 0 1.37Zm-4.395 1.196-5.333.007a.31.31 0 0 1-.22-.09.31.31 0 0 1-.09-.219c0-1.127.92-2.264 2.976-2.264s2.977 1.133 2.977 2.256a.31.31 0 0 1-.31.31ZM7.727 6.295c1.065 0 1.93.865 1.93 1.93a1.933 1.933 0 0 1-1.93 1.932 1.933 1.933 0 0 1-1.93-1.932c0-1.065.865-1.93 1.93-1.93Zm6.48-3.127H6.04c-2.25 0-3.833 1.667-3.833 4v5.667c0 2.333 1.583 4 3.833 4h8.167c2.25 0 3.833-1.667 3.833-4V7.168c0-2.333-1.583-4-3.833-4Z",
420
+ fill: "var(--icon-neutral-300)"
421
+ })
422
+ });
423
+ //#endregion
424
+ //#region src/shared/acceptedDocumentCard/assets/passportIcon.tsx
425
+ var PassportIcon = ({ class: className }) => /* @__PURE__ */ u("svg", {
426
+ xmlns: "http://www.w3.org/2000/svg",
427
+ width: "20",
428
+ height: "20",
429
+ viewBox: "0 0 20 20",
430
+ fill: "none",
431
+ "aria-hidden": "true",
432
+ class: className,
433
+ children: [/* @__PURE__ */ u("path", {
434
+ d: "M9.998 10.277c-.757 0-1.373.618-1.373 1.375 0 .753.615 1.367 1.373 1.367.757 0 1.372-.614 1.372-1.367 0-.757-.616-1.375-1.372-1.375Z",
435
+ fill: "var(--icon-neutral-300)"
436
+ }), /* @__PURE__ */ u("path", {
437
+ "fill-rule": "evenodd",
438
+ "clip-rule": "evenodd",
439
+ d: "M5.962 17.919h8.077a2.205 2.205 0 0 0 2.204-2.2V7.86a2.205 2.205 0 0 0-1.724-2.147.2.2 0 0 0-.051-.005H6.727a.417.417 0 0 1 0-.834h7.51a.25.25 0 0 0 .25-.25v-.747c0-.56-.253-1.076-.695-1.418a1.78 1.78 0 0 0-1.546-.32L4.97 4.023a1.606 1.606 0 0 0-1.211 1.562V15.72c0 1.212.989 2.2 2.204 2.2Zm1.415-6.267A2.626 2.626 0 0 1 10 9.027a2.626 2.626 0 0 1 2.622 2.625A2.62 2.62 0 0 1 10 14.269a2.62 2.62 0 0 1-2.623-2.617Z",
440
+ fill: "var(--icon-neutral-300)"
441
+ })]
442
+ });
443
+ //#endregion
444
+ //#region src/shared/acceptedDocumentCard/assets/residenceDocumentIcon.tsx
445
+ var ResidenceDocumentIcon = ({ class: className }) => /* @__PURE__ */ u("svg", {
446
+ xmlns: "http://www.w3.org/2000/svg",
447
+ width: "20",
448
+ height: "20",
449
+ viewBox: "0 0 20 20",
450
+ fill: "none",
451
+ "aria-hidden": "true",
452
+ class: className,
453
+ children: [/* @__PURE__ */ u("path", {
454
+ "fill-rule": "evenodd",
455
+ "clip-rule": "evenodd",
456
+ d: "M11.04 13.363c-.14-.068-.481-.068-.997-.068s-.857 0-.985.062a.6.6 0 0 0-.292.29c-.063.132-.063.473-.063.99v2.935c0 .139.112.25.25.25h2.18a.25.25 0 0 0 .25-.25v-2.935c0-.516 0-.857-.062-.988a.6.6 0 0 0-.28-.286Z",
457
+ fill: "var(--icon-neutral-300)"
458
+ }), /* @__PURE__ */ u("path", {
459
+ "fill-rule": "evenodd",
460
+ "clip-rule": "evenodd",
461
+ d: "m18.019 7.751-2.417-1.913V4.102a.833.833 0 1 0-1.667 0v.416l-2.19-1.735a2.81 2.81 0 0 0-3.489.002L1.984 7.75A.834.834 0 1 0 3.02 9.058l.105-.082v5.67a3.18 3.18 0 0 0 3.178 3.175h.905a.25.25 0 0 0 .25-.25v-2.935c0-.735 0-1.141.185-1.527a1.84 1.84 0 0 1 .887-.883c.374-.181.78-.181 1.518-.181s1.145 0 1.532.187c.372.171.687.485.874.878.184.384.184.79.184 1.526v2.936c0 .137.112.25.25.25h.814a3.18 3.18 0 0 0 3.178-3.175V8.976l.105.082a.834.834 0 1 0 1.034-1.307Z",
462
+ fill: "var(--icon-neutral-300)"
463
+ })]
464
+ });
465
+ //#endregion
466
+ //#region src/shared/acceptedDocumentCard/acceptedDocumentCard.constants.ts
467
+ /** Used for every document type without a dedicated icon in the design system. */
468
+ var DefaultDocumentIcon = IdentificationCardIcon;
469
+ var DOCUMENT_CONFIG = {
470
+ IdentificationCard: {
471
+ label: "idv2.unacceptedId.identificationCard",
472
+ Icon: IdentificationCardIcon
473
+ },
474
+ Passport: {
475
+ label: "idv2.unacceptedId.passport",
476
+ Icon: PassportIcon
477
+ },
478
+ DriversLicense: {
479
+ label: "idv2.unacceptedId.driversLicense",
480
+ Icon: DriversLicenseIcon
481
+ },
482
+ ResidenceDocument: {
483
+ label: "idv2.unacceptedId.residenceDocument",
484
+ Icon: ResidenceDocumentIcon
485
+ },
486
+ BirthCertificate: { label: "idv2.unacceptedId.birthCertificate" },
487
+ TravelDocument: { label: "idv2.unacceptedId.travelDocument" },
488
+ WeaponLicense: { label: "idv2.unacceptedId.weaponLicense" },
489
+ MedicalCard: { label: "idv2.unacceptedId.medicalCard" },
490
+ TribalIdentification: { label: "idv2.unacceptedId.tribalIdentification" },
491
+ Currency: { label: "idv2.unacceptedId.currency" },
492
+ VehicleRegistration: { label: "idv2.unacceptedId.vehicleRegistration" },
493
+ TaxIdentification: { label: "idv2.unacceptedId.taxIdentification" },
494
+ Visa: { label: "idv2.unacceptedId.visa" },
495
+ Permit: { label: "idv2.unacceptedId.permit" },
496
+ Military: { label: "idv2.unacceptedId.military" },
497
+ VoterIdentification: { label: "idv2.unacceptedId.voterIdentification" },
498
+ FederalID: { label: "idv2.unacceptedId.federalId" },
499
+ Unknown: { label: "idv2.unacceptedId.unknown" },
500
+ Other: { label: "idv2.unacceptedId.other" }
501
+ };
502
+ //#endregion
503
+ //#region src/shared/acceptedDocumentCard/acceptedDocumentCard.tsx
504
+ function resolveDocumentConfig(documentType) {
505
+ const config = DOCUMENT_CONFIG[documentType] ?? DOCUMENT_CONFIG.Other;
506
+ return {
507
+ label: config.label,
508
+ Icon: config.Icon ?? DefaultDocumentIcon
509
+ };
510
+ }
511
+ var AcceptedDocumentCard = ({ acceptedDocuments }) => {
512
+ const { t } = useTranslation();
513
+ const hasAcceptedDocuments = !!acceptedDocuments?.length;
514
+ return /* @__PURE__ */ u("div", {
515
+ class: "IncodeAcceptedDocumentCard",
516
+ children: /* @__PURE__ */ u("div", {
517
+ class: cn("IncodeAcceptedDocumentCardContainer", !hasAcceptedDocuments && "IncodeAcceptedDocumentCardContainerEmpty"),
518
+ children: hasAcceptedDocuments ? /* @__PURE__ */ u("ul", {
519
+ class: "IncodeAcceptedDocumentCardList",
520
+ children: [...new Set(acceptedDocuments)].map((documentType) => {
521
+ const { Icon, label } = resolveDocumentConfig(documentType);
522
+ return /* @__PURE__ */ u("li", {
523
+ class: "IncodeAcceptedDocumentCardItem",
524
+ children: [/* @__PURE__ */ u(Icon, {}), /* @__PURE__ */ u(TypographyP, {
525
+ className: "IncodeAcceptedDocumentCardItemLabel",
526
+ children: t(label)
527
+ })]
528
+ }, documentType);
529
+ })
530
+ }) : /* @__PURE__ */ u("div", {
531
+ class: "IncodeAcceptedDocumentCardEmptyState",
532
+ children: [/* @__PURE__ */ u(DefaultDocumentIcon, { class: "IncodeAcceptedDocumentCardEmptyStateIcon" }), /* @__PURE__ */ u(TypographyP, {
533
+ className: "IncodeAcceptedDocumentCardEmptyStateText",
534
+ children: t("idv2.unacceptedId.noDocuments")
535
+ })]
536
+ })
537
+ })
538
+ });
539
+ };
540
+ //#endregion
541
+ //#region src/modules/id/processing/unacceptedIdDocuments.tsx
542
+ var UnacceptedIdDocuments = ({ acceptedDocuments, countryCode }) => {
543
+ const { t, i18n } = useTranslation();
544
+ const locale = i18n.language || "en";
545
+ const flag = countryCode ? countryFlagEmoji(countryCode) : "";
546
+ return /* @__PURE__ */ u("div", {
547
+ class: "IncodeUnacceptedIdDocuments",
548
+ children: [countryCode && /* @__PURE__ */ u("div", {
549
+ class: "IncodeUnacceptedIdDocumentsCountry",
550
+ children: [/* @__PURE__ */ u(TypographyH3, {
551
+ className: "IncodeUnacceptedIdDocumentsCountryHeading",
552
+ children: t("idv2.unacceptedId.acceptedDocuments")
553
+ }), /* @__PURE__ */ u("span", {
554
+ class: "IncodeUnacceptedIdDocumentsCountryLabel",
555
+ children: [flag && /* @__PURE__ */ u("span", {
556
+ class: "IncodeUnacceptedIdDocumentsCountryFlag",
557
+ "aria-hidden": "true",
558
+ children: flag
559
+ }), /* @__PURE__ */ u("span", {
560
+ class: "IncodeUnacceptedIdDocumentsCountryName",
561
+ children: getCountryDisplayName(countryCode, locale)
562
+ })]
563
+ })]
564
+ }), /* @__PURE__ */ u(AcceptedDocumentCard, { acceptedDocuments })]
565
+ });
566
+ };
567
+ //#endregion
568
+ //#region src/modules/id/processing/idError.tsx
569
+ var IdError = ({ manager, state, blurImage, ..._rest }) => {
570
+ const { t } = useTranslation();
571
+ if (state.status === "error") return /* @__PURE__ */ u(TerminalErrorPage, {});
572
+ const mode = state.currentMode === "passport" ? "passport" : "id";
573
+ const unacceptableIdType = state.uploadError === "ID_TYPE_UNACCEPTABLE";
574
+ if (!unacceptableIdType && !state.previewImageUrl) return null;
575
+ let unacceptedIdDocumentsSlot = null;
576
+ let imageUrl = state.previewImageUrl;
577
+ if (unacceptableIdType) {
578
+ imageUrl = void 0;
579
+ unacceptedIdDocumentsSlot = /* @__PURE__ */ u(UnacceptedIdDocuments, {
580
+ acceptedDocuments: state.acceptedDocuments,
581
+ countryCode: state.countryCode
582
+ });
583
+ }
584
+ return /* @__PURE__ */ u(IdProcessingResult, {
585
+ variant: "error",
586
+ imageUrl,
587
+ orientation: state.orientation,
588
+ mode,
589
+ title: state.uploadErrorMessage ? t(state.uploadErrorMessage) : void 0,
590
+ subtitle: state.uploadErrorDescription ? t(state.uploadErrorDescription) : void 0,
591
+ buttonText: state.canRetry ? t("idv2.capture.processing.tryAgain") : t("idv2.capture.processing.continue"),
592
+ onButtonClick: () => manager.continueFromError(),
593
+ attemptsRemaining: state.attemptsRemaining,
594
+ blurImage,
595
+ children: unacceptedIdDocumentsSlot
596
+ });
597
+ };
598
+ //#endregion
599
+ //#region src/modules/id/processing/idExpired.tsx
600
+ /**
601
+ * Flow / SDK 1 UXv2 capture-side expired-document screen — thin wrapper that
602
+ * wires `idCaptureManager.retryCapture()` and forwards the
603
+ * `attemptsRemaining` counter into the shared `<ExpiredId>` primitive.
604
+ *
605
+ * `isBackSide` triggers the Figma `1-9-11-id-documenterror` subtitle
606
+ * ("Use a different ID from the accepted list") when the back side expired.
607
+ *
608
+ * Workflow's verify-side node uses its own wrapper in the `id-verification`
609
+ * module that passes only `onContinue` (no attempts concept), matching the
610
+ * legacy SDK 1 `Workflow.tsx → ProcessId.jsx → ExpiredId` one-shot Continue
611
+ * behavior.
612
+ */
613
+ var IdExpired = ({ manager, attemptsRemaining, isBackSide }) => /* @__PURE__ */ u(ExpiredId, {
614
+ onRetry: () => manager.retryCapture(),
615
+ attemptsRemaining,
616
+ isBackSide
617
+ });
618
+ //#endregion
619
+ //#region src/modules/id/processing/idNoAttempts.tsx
620
+ var IdNoAttempts = ({ manager }) => {
621
+ const { t } = useTranslation();
622
+ const titleRef = A(null);
623
+ y(() => {
624
+ titleRef.current?.focus();
625
+ }, []);
626
+ const handleContinue = () => {
627
+ manager.continueExhausted();
628
+ };
629
+ return /* @__PURE__ */ u(Page, {
630
+ hideHeader: true,
631
+ hideFooterBranding: true,
632
+ className: "IncodeIdNoAttemptsPage",
633
+ children: [/* @__PURE__ */ u("div", {
634
+ class: "IncodeIdNoAttemptsContent",
635
+ role: "alert",
636
+ children: [
637
+ /* @__PURE__ */ u(RedStrikeIcon, { className: "IncodeIdNoAttemptsIcon" }),
638
+ /* @__PURE__ */ u(Title, {
639
+ ref: titleRef,
640
+ tabIndex: -1,
641
+ className: "IncodeIdNoAttemptsTitle",
642
+ children: t("idv2.capture.notifications.idScanFailed")
643
+ }),
644
+ /* @__PURE__ */ u(Spacer, { size: 12 }),
645
+ /* @__PURE__ */ u("p", {
646
+ class: "IncodeIdNoAttemptsSubtitle",
647
+ children: t("idv2.capture.processing.noAttemptsRemaining")
648
+ }),
649
+ /* @__PURE__ */ u(Spacer, { size: 80 })
650
+ ]
651
+ }), /* @__PURE__ */ u("div", {
652
+ class: "IncodeIdNoAttemptsButtonContainer",
653
+ children: /* @__PURE__ */ u(PrizmaButton, {
654
+ size: "L",
655
+ className: "IncodeButton IncodeButtonPrimary IncodeButtonL",
656
+ variant: "primary",
657
+ onClick: handleContinue,
658
+ children: t("idv2.capture.processing.continue")
659
+ })
660
+ })]
661
+ });
662
+ };
663
+ //#endregion
664
+ //#region src/modules/id/capture/captureOverlayHelpers.ts
665
+ var resolveResultView = (t) => ({
666
+ frameState: "success",
667
+ header: {
668
+ title: t("idv2.capture.resultPreview.title"),
669
+ subtitle: t("idv2.capture.resultPreview.subtitle")
670
+ }
671
+ });
672
+ /** IDC-08 control/default copy — the title's shared idle vocabulary. */
673
+ function getCaptureFrameTitle(t, mode) {
674
+ if (mode === "passport") return t("idv2.capture.fillFramePassport");
675
+ else if (mode === "back") return t("idv2.capture.fillFrameBack");
676
+ return t("idv2.capture.fillFrameFront");
677
+ }
678
+ /** IDC-08 `remove`/`auto-dismiss` title — states the action instead of "fill the frame". */
679
+ function getManualCaptureTitle(t, mode) {
680
+ if (mode === "passport") return t("idv2.capture.manualCapture.capturePassport");
681
+ else if (mode === "back") return t("idv2.capture.manualCapture.captureBack");
682
+ return t("idv2.capture.manualCapture.captureFront");
683
+ }
684
+ var resolveLiveView = ({ t, mode, detectionStatus, isCapturing, showManualCapture, manualTooltipVariant }) => {
685
+ if (isCapturing || detectionStatus === "capturing") return {
686
+ frameState: "capturing",
687
+ header: {
688
+ title: t("idv2.capture.takingPhoto"),
689
+ subtitle: t("idv2.capture.dontMove")
690
+ }
691
+ };
692
+ const isManualCapture = detectionStatus === "manualCapture";
693
+ const hasDetectionError = detectionStatus === "blur" || detectionStatus === "glare" || detectionStatus === "wrongSide" || detectionStatus === "farAway";
694
+ if (!(detectionStatus === "detecting" || detectionStatus === "idNotDetected" || isManualCapture)) return {
695
+ frameState: hasDetectionError ? "error" : "idle",
696
+ header: null
697
+ };
698
+ const isManualTooltipTreatment = showManualCapture && manualTooltipVariant !== MANUAL_TOOLTIP.CONTROL;
699
+ const title = isManualTooltipTreatment ? getManualCaptureTitle(t, mode) : getCaptureFrameTitle(t, mode);
700
+ let subtitle = t("idv2.capture.autoCapture");
701
+ if (isManualTooltipTreatment && manualTooltipVariant === MANUAL_TOOLTIP.REMOVE) subtitle = t("idv2.capture.manualCapture.pressButton");
702
+ else if (isManualCapture) subtitle = "";
703
+ return {
704
+ frameState: "idle",
705
+ header: {
706
+ title,
707
+ subtitle
708
+ }
709
+ };
710
+ };
711
+ //#endregion
712
+ //#region src/modules/id/capture/captureFocusContext.tsx
713
+ var CaptureAutoFocusContext = Q(true);
714
+ /**
715
+ * Capture is part of the public extensibility surface, but layered transitions
716
+ * need to defer its focus without adding transition-only state to the public
717
+ * Capture props. This private context carries that presentation signal through
718
+ * Capture to CaptureOverlay while ordinary consumers retain autofocus by
719
+ * default.
720
+ */
721
+ var CaptureAutoFocusProvider = ({ enabled, children }) => /* @__PURE__ */ u(CaptureAutoFocusContext.Provider, {
722
+ value: enabled,
723
+ children
724
+ });
725
+ function useCaptureAutoFocus() {
726
+ return x(CaptureAutoFocusContext);
727
+ }
728
+ //#endregion
729
+ export { resolveResultView as a, IdError as c, QuestionIcon as d, InfoNotReadableIcon as f, resolveLiveView as i, IdSuccess as l, BlurIcon as m, useCaptureAutoFocus as n, IdNoAttempts as o, GlareIcon as p, getCaptureFrameTitle as r, IdExpired as s, CaptureAutoFocusProvider as t, IdAnalyzing as u };