@incodetech/web 2.4.0 → 2.4.1-agentic.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (345) hide show
  1. package/THIRD_PARTY_NOTICES.txt +1 -4
  2. package/dist/{GeolocationPermissionDenied-NCe8TBk4.js → GeolocationPermissionDenied-ClGp0a23.js} +13 -8
  3. package/dist/ae-signature/ae-signature.es.js +4 -4
  4. package/dist/{af-ZA-BbU0OdlG.js → af-ZA-BKpmmWDe.js} +165 -869
  5. package/dist/{ageVerification-B5ownHdO.js → ageVerification-CtuJDuRV.js} +11 -8
  6. package/dist/{am-BuvQtV50.js → am-CW_ro5Ws.js} +165 -869
  7. package/dist/antifraud/antifraud.es.js +5 -4
  8. package/dist/applyStudioConfig-C6-Ak0q6.js +127 -0
  9. package/dist/{ar-AE-Bdk7NfI2.js → ar-AE-D9h8UMbm.js} +165 -869
  10. package/dist/{ar-Ba-wMBXP.js → ar-B5ToweVl.js} +166 -870
  11. package/dist/{ar-EG-C9FVwsEB.js → ar-EG-DQqE9B26.js} +165 -869
  12. package/dist/assertClassBrand-DJr5K93j.js +17 -0
  13. package/dist/asset-Ctwd_20H.js +355 -0
  14. package/dist/authentication/authentication.es.js +7 -5
  15. package/dist/{autoFocusTitle-BQltp_Nn.js → autoFocusTitle-CzaCWWW5.js} +2 -2
  16. package/dist/{az-DHRJfgCV.js → az-DAZq-CQj.js} +165 -869
  17. package/dist/{back-horizontal-hint-BztyPanp.js → back-horizontal-hint-qzSaNkEU.js} +1 -1
  18. package/dist/{back-vertical-hint-BSzA4QbJ.js → back-vertical-hint-DkYLOege.js} +1 -1
  19. package/dist/base.css +1 -1
  20. package/dist/{baseTutorial-CL2A9XLh.js → baseTutorial-CF6WiVYt.js} +10 -7
  21. package/dist/{bn-BfE2MHPG.js → bn-DRTyq2Y9.js} +165 -869
  22. package/dist/{bottomSheet-DU4SrMOH.js → bottomSheet-DylE2INk.js} +3 -3
  23. package/dist/{bs-Ck9dCVYh.js → bs-B8q0B86-.js} +164 -868
  24. package/dist/{ca-yJUG5zqw.js → ca-DvsHXRB-.js} +164 -868
  25. package/dist/cameraOverlay-DNf0PEF4.js +2 -0
  26. package/dist/{cameraOverlayHeader-Bp7NCrl9.js → cameraOverlayHeader-CuVGnyXI.js} +9 -8
  27. package/dist/{cameraView-CLlWARBI.js → cameraView-D9ZxLKtA.js} +13 -14
  28. package/dist/capture-0jMDSGCE.js +762 -0
  29. package/dist/{tutorial-Bwt7rxfr.js → capture-BlGlXoTx.js} +212 -51
  30. package/dist/capture-DKBA5j5A.js +3 -0
  31. package/dist/capture-D_Dwrj1F.js +2 -0
  32. package/dist/captureButtonIcon-A9kn2E_m.js +1 -0
  33. package/dist/captureFocusContext-9789qOe3.js +729 -0
  34. package/dist/captureFooter-B6WUFQCV.js +47 -0
  35. package/dist/{ceb-oov4R9JM.js → ceb-pvlomXHV.js} +165 -869
  36. package/dist/certificate-issuance/certificate-issuance.es.js +23 -13
  37. package/dist/{check-icon-BpjpKqhJ.js → check-icon-BdHltEK6.js} +1 -1
  38. package/dist/{checkbox-DbYUeTao.js → checkbox-BwUQ0Rs9.js} +4 -4
  39. package/dist/chooser-CmG71-lh.js +1589 -0
  40. package/dist/connectionError-DexRpKWs.js +90 -0
  41. package/dist/consent/consent.es.js +19 -14
  42. package/dist/consent/styles.css +1 -1
  43. package/dist/consent/styles.css.js +1 -1
  44. package/dist/{countryFlag-2Vj85OIZ.js → countryFlag-CQMfCnE9.js} +1 -1
  45. package/dist/{countrySelector-El6_zLMs.js → countrySelector-C0OEKMqL.js} +6 -5
  46. package/dist/cross-document-data-match/cross-document-data-match.es.js +5 -4
  47. package/dist/{cs-CZ-B9jWzmE_.js → cs-CZ-GgvnJLMj.js} +164 -868
  48. package/dist/{cs-ovOFxGB0.js → cs-DB5PLEdt.js} +164 -868
  49. package/dist/curp-validation/curp-validation.es.js +34 -19
  50. package/dist/curp-validation/styles.css +1 -1
  51. package/dist/curp-validation/styles.css.js +1 -1
  52. package/dist/{customFields-BlYfgYje.js → customFields-DQgRumW0.js} +17 -12
  53. package/dist/{customWatchlist-BsBTzCCN.js → customWatchlist-BbC0fA-6.js} +8 -7
  54. package/dist/{da-DK-C0l5MGWM.js → da-DK-ZhpcfE_F.js} +164 -868
  55. package/dist/{dashboardTheme-MVQerNVn.js → dashboardTheme-DtXsx9IK.js} +22 -23
  56. package/dist/{dateInputComposed-DXCc1HRe.js → dateInputComposed-1IcnucPq.js} +5 -5
  57. package/dist/dateInputComposed-BFlCk-sg.js +1 -0
  58. package/dist/{de-B0IRPjwJ.js → de-DEBjzaow.js} +164 -868
  59. package/dist/{denied-wXsbFjy_.js → denied-CwdVWAUw.js} +12 -9
  60. package/dist/devWarn-CW20j1Qd.js +9 -0
  61. package/dist/deviceWallet-CMjguFJO.js +37 -0
  62. package/dist/{digitalIdRedirect-CF7zG3wS.js → digitalIdRedirect-MNty16-5.js} +4 -4
  63. package/dist/{digitalIdUpload-CbPm090z.js → digitalIdUpload-CUzTaoaI.js} +39 -15
  64. package/dist/document-capture/document-capture.es.js +1 -1
  65. package/dist/document-capture/styles.css +1 -1
  66. package/dist/document-capture/styles.css.js +1 -1
  67. package/dist/{documentCapture-CgpHXm_8.js → documentCapture-BUMyJ8vw.js} +115 -44
  68. package/dist/documentCapture-rECLkwpi.js +2 -0
  69. package/dist/dropdownComposed-C9sLQE6i.js +1 -0
  70. package/dist/{dropdownComposed-qb9GgX5X.js → dropdownComposed-x3ewHxbT.js} +4 -4
  71. package/dist/dynamic-forms/dynamic-forms.es.js +20 -15
  72. package/dist/ekyb/ekyb.es.js +1 -1
  73. package/dist/ekyb/styles.css +1 -1
  74. package/dist/ekyb/styles.css.js +1 -1
  75. package/dist/ekybModule-B5IEiSyi.js +2 -0
  76. package/dist/{ekybModule-BgZIkVVl.js → ekybModule-C5hEBLMs.js} +27 -23
  77. package/dist/ekyc/ekyc.es.js +1 -1
  78. package/dist/ekyc/styles.css +1 -1
  79. package/dist/ekyc/styles.css.js +1 -1
  80. package/dist/ekycModule-B7OFnP3H.js +2 -0
  81. package/dist/{ekycModule-DEVrRrnH.js → ekycModule-TVKk0qdS.js} +71 -44
  82. package/dist/{el-Do7wYurZ.js → el-Dplr_D5N.js} +164 -868
  83. package/dist/{el-GR-BZEKLkvc.js → el-GR-IZ4reOR7.js} +164 -868
  84. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  85. package/dist/{electronic-signature-DE6FJfvu.js → electronic-signature-BMda_cf3.js} +49 -34
  86. package/dist/email/email.es.js +15 -11
  87. package/dist/{emailInput-Cp77LavN.js → emailInput-BI8gWC0D.js} +4 -4
  88. package/dist/{en-DG-Cvwm0nfj.js → en-DG-C6tsWvHi.js} +165 -869
  89. package/dist/{en-CJ6l68pH.js → en-Db1L_u7B.js} +165 -869
  90. package/dist/{errorContent-YeJNVb1U.js → errorContent-pPAgyy2i.js} +10 -7
  91. package/dist/es-419-DxKrJq7W.js +5 -0
  92. package/dist/{es-rayGAvsH.js → es-C5unKsaF.js} +164 -868
  93. package/dist/{es-ES-B8h3jMgN.js → es-ES-sHbsufzT.js} +164 -868
  94. package/dist/{es-MX-DA__jQOC.js → es-MX-Cd_DCR0A.js} +164 -868
  95. package/dist/{et-DvX7tm-R.js → et-BoGq2cx8.js} +165 -869
  96. package/dist/{expiredId-CsKNCK5M.js → expiredId-DWjw94rT.js} +12 -8
  97. package/dist/extensibility.es.js +100 -55
  98. package/dist/{fa-IR-DfrzWcH0.js → fa-IR-DuUxGXrf.js} +165 -869
  99. package/dist/face-match/face-match.es.js +1 -1
  100. package/dist/face-match/styles.css +1 -1
  101. package/dist/face-match/styles.css.js +1 -1
  102. package/dist/faceMatch-B2aMz3X2.js +2 -0
  103. package/dist/{faceMatch-Bqspq0cw.js → faceMatch-DV7NxYu_.js} +15 -20
  104. package/dist/{fi-FI-CcFDkeiE.js → fi-FI-DMOBNTjA.js} +164 -868
  105. package/dist/field-comparison/field-comparison.es.js +1 -1
  106. package/dist/fieldComparison-BY2XXsp3.js +2 -0
  107. package/dist/{fieldComparison-CmQN2MEj.js → fieldComparison-CFLU1h6n.js} +15 -11
  108. package/dist/{fieldLabelHint-CxjArYkQ.js → fieldLabelHint-CjrLxBaj.js} +3 -3
  109. package/dist/{finalSuccessScreen-1Ea3wZWM.js → finalSuccessScreen-C50L96j9.js} +20 -16
  110. package/dist/fiscal-qr/fiscal-qr.es.js +24 -18
  111. package/dist/flipAnimation-8x-qdtF_.js +33 -0
  112. package/dist/flipCapturedCardEligibility-DLr9F2g2.js +210 -0
  113. package/dist/flow/flow.es.js +209 -186
  114. package/dist/flow/shell/styles.css +1 -1
  115. package/dist/flow/shell/styles.css.js +1 -1
  116. package/dist/flow/styles.css +1 -1
  117. package/dist/{formField-DoXWcoL9.js → formField-CfQKYeGF.js} +19 -11
  118. package/dist/{fr-CA-CeL7RQc-.js → fr-CA-DZ8jlsp3.js} +164 -868
  119. package/dist/{fr-DtdqfaF8.js → fr-DSR-AP0e.js} +164 -868
  120. package/dist/{front-horizontal-hint-DEHmtcdg.js → front-horizontal-hint-DOphQZg2.js} +1 -1
  121. package/dist/{front-vertical-hint-Cb1NO-xT.js → front-vertical-hint-S6PcS9_m.js} +1 -1
  122. package/dist/geolocation/geolocation.es.js +15 -12
  123. package/dist/government-validation/government-validation.es.js +7 -6
  124. package/dist/{he-CPeNHo0I.js → he-N5dfJeyd.js} +165 -869
  125. package/dist/helpButtonConfig-CjbrBQaV.js +24 -0
  126. package/dist/{hi-DIbkmie6.js → hi-JR6K9zbd.js} +165 -869
  127. package/dist/{hmn-CscGik4W.js → hmn-j2YA7FxW.js} +165 -869
  128. package/dist/{homeScreen-C0j_8KKD.js → homeScreen-C3pPw52y.js} +24 -13
  129. package/dist/{incodeComponent-CMBg2gpq.js → hooks-BFP0WaJM.js} +192 -262
  130. package/dist/{hr-DWUsAZnf.js → hr-8cOdwB0t.js} +164 -868
  131. package/dist/{ht-DgaboG3c.js → ht-DDNL4C__.js} +165 -869
  132. package/dist/{hu-Lz2qVC3S.js → hu-CynQQUFQ.js} +166 -870
  133. package/dist/i18n-Dp014ljG.js +942 -0
  134. package/dist/{icons-OQDvn5r2.js → icons-c-hFaG4L.js} +153 -56
  135. package/dist/id/id.es.js +101 -197
  136. package/dist/id/styles.css +1 -1
  137. package/dist/id/styles.css.js +1 -1
  138. package/dist/{id-back-of-card-C7Au2tqk.js → id-back-of-card-Bk6ZQUE9.js} +1 -1
  139. package/dist/{id-back-of-card-vertical-CtQBFw8w.js → id-back-of-card-vertical-BZo00s50.js} +1 -1
  140. package/dist/{id-front-of-card-BmHL_keG.js → id-front-of-card-BJ96se7u.js} +1 -1
  141. package/dist/{id-front-of-card-vertical-DkNUn2Vx.js → id-front-of-card-vertical-DSfJB0lX.js} +1 -1
  142. package/dist/{id-C5eOEjgu.js → id-o_Yg0n8W.js} +165 -869
  143. package/dist/id-selfie-flow/id-selfie-flow.es.js +12 -11
  144. package/dist/id-selfie-flow/styles.css +1 -1
  145. package/dist/id-verification/id-verification.es.js +6 -5
  146. package/dist/idFlipTransition-DXdtXYza.js +158 -0
  147. package/dist/{idOcr-C-kHrU_d.js → idOcr-CjqfkRJ7.js} +18 -14
  148. package/dist/identity-reuse/identity-reuse.es.js +28 -18
  149. package/dist/incodeComponent-DtKh-UUm.js +237 -0
  150. package/dist/incodeModule-DCHXAeYU.js +41 -0
  151. package/dist/index.es.js +5 -3
  152. package/dist/{inputComposed-CR1IW-mQ.js → inputComposed-CmVsaHOa.js} +4 -4
  153. package/dist/inputComposed-DvGrso7g.js +1 -0
  154. package/dist/{it-CQGuLrxZ.js → it-BXevrtHn.js} +165 -869
  155. package/dist/{ja-CBD-jOkP.js → ja-DiTXnTx-.js} +165 -869
  156. package/dist/{ja-JP-Dgbzh2aL.js → ja-JP-D1IRWR-p.js} +166 -870
  157. package/dist/{jv-C-E67yDR.js → jv-Us70GzGp.js} +164 -868
  158. package/dist/{ka-CcCqDmzw.js → ka-BSsWQ4yU.js} +165 -869
  159. package/dist/{kk-B_5WgCfa.js → kk-D5R6r4H7.js} +164 -868
  160. package/dist/{km-CucJh4em.js → km-CCCb2Rnt.js} +171 -875
  161. package/dist/{ko-KP-BSjl3hdX.js → ko-KP-JF4khv1Y.js} +165 -869
  162. package/dist/{ko-BEd2Jz4C.js → ko-kQioCg2w.js} +165 -869
  163. package/dist/{ky-Bb9MfmYr.js → ky-CLOemVjC.js} +164 -868
  164. package/dist/kyb-checks/kyb-checks.es.js +2 -0
  165. package/dist/kyb-checks/styles.css +2 -0
  166. package/dist/kyb-checks/styles.css.js +1 -0
  167. package/dist/kybChecksModule-C6Y9Hxpr.js +329 -0
  168. package/dist/kybChecksModule-r3MIpFhS.js +2 -0
  169. package/dist/{lo-CD_Ehkf5.js → lo-tzHUt1CQ.js} +165 -869
  170. package/dist/{lt-DHkwvJ8e.js → lt-B2ZI-Cgu.js} +165 -869
  171. package/dist/{lv-CPuPO_jU.js → lv-BJnxtSYw.js} +165 -869
  172. package/dist/{mandatoryConsent-BHMWyBUp.js → mandatoryConsent-BiQuEZRu.js} +23 -16
  173. package/dist/{manualCaptureButton-D_tGP6tv.js → manualCaptureButton-BRSmPTeR.js} +8 -7
  174. package/dist/{manualCaptureButton-D5XP3Oaf.js → manualCaptureButton-Dw0MMSkc.js} +17 -12
  175. package/dist/{mk-DO85nJp4.js → mk-Cj7Iw2Q4.js} +165 -869
  176. package/dist/{mn-D5fhne6X.js → mn-CA_rNxtz.js} +164 -868
  177. package/dist/{ms-D_FFGDor.js → ms-BydA1Zjz.js} +164 -868
  178. package/dist/{my-D1JKF20F.js → my-gFKufKaG.js} +165 -869
  179. package/dist/{nb-NO-oEMuavpl.js → nb-NO-CDsGQbOZ.js} +164 -868
  180. package/dist/{ne-Ds3QEMQ4.js → ne-Cyfi0vFI.js} +165 -869
  181. package/dist/{nl-DGyLucC1.js → nl-e1gbmAFO.js} +165 -869
  182. package/dist/{numberedStep-CvbL3ht2.js → numberedStep-CeN77hnQ.js} +1 -1
  183. package/dist/{optionAccessibleLabel-SwDCMYKc.js → optionAccessibleLabel-BTUieMxH.js} +8 -7
  184. package/dist/{otpInput-DIUf37GR.js → otpInput-D3L3QhnR.js} +24 -17
  185. package/dist/{page-BGUJaLaG.js → page-U6jZ7BBI.js} +85 -58
  186. package/dist/{incode-logo-BBYHyycP.js → pageUiConfig-Qf6ItVv9.js} +28 -4
  187. package/dist/{passport-horizontal-hint-DgNc6F0-.js → passport-horizontal-hint-Ddsh6fUS.js} +1 -1
  188. package/dist/{passport-vertical-hint-B-toVsfT.js → passport-vertical-hint-Dukxq6-T.js} +1 -1
  189. package/dist/{passwordInputComposed-Cd-3kyua.js → passwordInputComposed-CW_1DcB8.js} +5 -5
  190. package/dist/{pdf-BKHLi5Ac.js → pdf-Bd5QplFS.js} +2 -17
  191. package/dist/{pdfViewer-EDgSzrdc.js → pdfViewer-BrqSEtbr.js} +11 -14
  192. package/dist/pdfViewer-rDnnHzmw.js +2 -0
  193. package/dist/{permissions-Vh-QG2Tj.js → permissions-KUDhffd9.js} +36 -23
  194. package/dist/phone/phone.es.js +16 -12
  195. package/dist/{phoneInputComposed-wZaDiedP.js → phoneInputComposed-DlJMTavK.js} +49 -12
  196. package/dist/{pl-nEtI_VZQ.js → pl-BSMcCWS-.js} +164 -868
  197. package/dist/preloadableLazy-C8_OYaTC.js +37 -0
  198. package/dist/{processing-SzW6Mfrg.js → processing-B5EH7yNg.js} +2 -2
  199. package/dist/{progressBar-KEnpi8uj.js → progressBar-CSpS29pV.js} +2 -2
  200. package/dist/{pt-EmaaUJGm.js → pt-BNFC2quK.js} +165 -869
  201. package/dist/{pt-BR-BkLAWIbx.js → pt-BR-bH8DC2gH.js} +165 -869
  202. package/dist/{pt-PT-Py_4_Z05.js → pt-PT-B8PXmgwU.js} +165 -869
  203. package/dist/qe-signature/qe-signature.es.js +4 -4
  204. package/dist/{radioGroupComposed-CRr_78He.js → radioGroupComposed-CW8ElYSR.js} +4 -4
  205. package/dist/radioGroupComposed-flIYNffL.js +1 -0
  206. package/dist/realtimeFeedbackConfig-tBX94SOm.js +16 -0
  207. package/dist/redirect-to-mobile/redirect-to-mobile.es.js +51 -50
  208. package/dist/redirect-to-mobile/styles.css +1 -1
  209. package/dist/redirect-to-mobile/styles.css.js +1 -1
  210. package/dist/{registerIncodeElement-D_cn4dSI.js → registerIncodeElement-oiLvm6xq.js} +1 -1
  211. package/dist/{reload-icon-elAFo9-k.js → reload-icon-FD2e9Wet.js} +1 -1
  212. package/dist/{resendTimer-EhLnxeID.js → resendTimer-D1H3gwkI.js} +2 -2
  213. package/dist/richText-sUdTiRDE.js +1761 -0
  214. package/dist/{ro-BKmZhZl1.js → ro-DnN8QNYa.js} +165 -869
  215. package/dist/{ru-BYQKvZtn.js → ru-DAwUFXHq.js} +165 -869
  216. package/dist/{ru-RU-BdhCs3uF.js → ru-RU-Coxt0VCU.js} +164 -868
  217. package/dist/{sanitizeSvg-BC-qLUgS.js → sanitizeSvg-OdNh1mqY.js} +1 -1
  218. package/dist/selfie/selfie.es.js +36 -14
  219. package/dist/selfie/styles.css +1 -1
  220. package/dist/selfie/styles.css.js +1 -1
  221. package/dist/signature/signature.es.js +18 -13
  222. package/dist/{sk-CZipa19k.js → sk-AB8sSlNw.js} +166 -870
  223. package/dist/{sl-_sx3gvEv.js → sl-6Dfzfi7s.js} +165 -869
  224. package/dist/{smsTabContent-DHuEgl3E.js → smsTabContent-CBEKgzFv.js} +32 -23
  225. package/dist/{so-D3T7YyfC.js → so-X5BdrDvV.js} +165 -869
  226. package/dist/spacer-Jaru_3sb.js +82 -0
  227. package/dist/spinner-51btbot0.js +407 -0
  228. package/dist/{sr-D0lglPAd.js → sr-JHjMcbGs.js} +164 -868
  229. package/dist/{sr-Latn-Dy2rgSEv.js → sr-Latn-DgT7eTG2.js} +171 -875
  230. package/dist/sr-YU-BBhB_G63.js +5 -0
  231. package/dist/{sv-SE-VsDd4VP5.js → sv-SE-CvX8mC8T.js} +164 -868
  232. package/dist/{sw-D2VfTj6a.js → sw-CN0TdnY4.js} +165 -869
  233. package/dist/{th-BzmKSnbD.js → th-BmFntKib.js} +165 -869
  234. package/dist/{th-TH-BU_NqN97.js → th-TH-CWr4z3JK.js} +165 -869
  235. package/dist/themes/dark.css +1 -1
  236. package/dist/themes/light.css +1 -1
  237. package/dist/{tl-PH-BJJNA9rs.js → tl-PH-BRIbtBRN.js} +165 -869
  238. package/dist/{tl-GXkKKnzb.js → tl-rzkk5P_n.js} +165 -869
  239. package/dist/{tr-C1MJnwIJ.js → tr-DKuVBwqW.js} +166 -870
  240. package/dist/{transitionSpinner-Bkjw-WAJ.js → transitionSpinner-Di0XBAix.js} +5 -4
  241. package/dist/tutorial-C9psDR2i.js +28 -0
  242. package/dist/types/ae-signature.d.ts +10 -1
  243. package/dist/types/antifraud.d.ts +10 -1
  244. package/dist/types/authentication.d.ts +10 -1
  245. package/dist/types/certificate-issuance.d.ts +10 -1
  246. package/dist/types/consent.d.ts +10 -1
  247. package/dist/types/cross-document-data-match.d.ts +10 -1
  248. package/dist/types/curp-validation.d.ts +10 -1
  249. package/dist/types/document-capture.d.ts +10 -1
  250. package/dist/types/dynamic-forms.d.ts +10 -1
  251. package/dist/types/ekyb.d.ts +10 -1
  252. package/dist/types/ekyc.d.ts +10 -1
  253. package/dist/types/electronic-signature.d.ts +10 -1
  254. package/dist/types/email.d.ts +10 -1
  255. package/dist/types/extensibility.d.ts +147 -21
  256. package/dist/types/face-match.d.ts +10 -1
  257. package/dist/types/field-comparison.d.ts +10 -1
  258. package/dist/types/fiscal-qr.d.ts +10 -1
  259. package/dist/types/flow.d.ts +22 -2
  260. package/dist/types/geolocation.d.ts +10 -1
  261. package/dist/types/government-validation.d.ts +10 -1
  262. package/dist/types/id-selfie-flow.d.ts +10 -1
  263. package/dist/types/id-verification.d.ts +10 -1
  264. package/dist/types/id.d.ts +10 -1
  265. package/dist/types/identity-reuse.d.ts +10 -1
  266. package/dist/types/index.d.ts +92 -10
  267. package/dist/types/kyb-checks.d.ts +209 -0
  268. package/dist/types/phone.d.ts +10 -1
  269. package/dist/types/qe-signature.d.ts +10 -1
  270. package/dist/types/redirect-to-mobile.d.ts +1 -1
  271. package/dist/types/selfie.d.ts +10 -1
  272. package/dist/types/signature.d.ts +10 -1
  273. package/dist/types/video-selfie.d.ts +1 -1
  274. package/dist/types/watchlist.d.ts +10 -1
  275. package/dist/types/workflow.d.ts +10 -1
  276. package/dist/{typography-DKXgPZsU.js → typography-CiGhKJGx.js} +2 -2
  277. package/dist/uiConfig-BJAuZQWc.js +77 -0
  278. package/dist/{uk-DFL26I5l.js → uk-CXjqq4lX.js} +164 -868
  279. package/dist/{uk-UA-3o9Xbam-.js → uk-UA-BIE9WByU.js} +165 -869
  280. package/dist/{ur-DXJAfyQA.js → ur-vNGesC3r.js} +165 -869
  281. package/dist/useCameraPreview-Bd7AYE9h.js +93 -0
  282. package/dist/useCaptureHelpButton-Dj-jESrS.js +43 -0
  283. package/dist/useIsDarkTheme-Bu9CvKxW.js +27 -0
  284. package/dist/{useModuleLoader-BdIp6TNQ.js → useModuleLoader-BBCNkJmc.js} +2 -2
  285. package/dist/{uz-BXvj8vlH.js → uz-Gmw1XRgv.js} +165 -869
  286. package/dist/{vendor-preact-C0jX1Cbq.js → vendor-preact-DHGqBGMH.js} +19 -1
  287. package/dist/{verificationResult-BVrKFRMf.js → verificationResult-Clxdxm_s.js} +18 -10
  288. package/dist/{vi-DRfsxu1a.js → vi-DTxxRUw0.js} +165 -869
  289. package/dist/video-selfie/styles.css +1 -1
  290. package/dist/video-selfie/styles.css.js +1 -1
  291. package/dist/video-selfie/video-selfie.es.js +103 -67
  292. package/dist/watchlist/watchlist.es.js +8 -7
  293. package/dist/{watchlistForBusiness-CyAmoIrv.js → watchlistForBusiness-CpFp2EYX.js} +44 -14
  294. package/dist/{withEndScreenTexts-MHocOODe.js → withEndScreenTexts-Bd3mof3s.js} +225 -45
  295. package/dist/workflow/styles.css +1 -1
  296. package/dist/workflow/workflow.es.js +32 -21
  297. package/dist/{zh-CN-DMfj1_Nh.js → zh-CN-aB48G_R1.js} +164 -868
  298. package/dist/{zh-Ct8GKGhw.js → zh-DjtyfO4e.js} +164 -868
  299. package/dist/{zh-HANT-NZFdeKuE.js → zh-HANT-8p8SH8C3.js} +165 -869
  300. package/dist/{zh-TW-8wkrOHM8.js → zh-TW-CCsz9gKq.js} +165 -869
  301. package/package.json +35 -10
  302. package/dist/browser-ponyfill-DT11p-Ob.js +0 -441
  303. package/dist/cameraOverlay-CBTjtbNP.js +0 -2
  304. package/dist/connectionError-DX3wd4vm.js +0 -45
  305. package/dist/dateInputComposed-BzW0cv1o.js +0 -1
  306. package/dist/deviceWallet-CImevqFB.js +0 -66
  307. package/dist/documentCapture-CmWd-wNL.js +0 -2
  308. package/dist/dropdownComposed-B76j7pz9.js +0 -1
  309. package/dist/ekybModule-Bshc_ANM.js +0 -2
  310. package/dist/ekycModule-MmJYwp1l.js +0 -2
  311. package/dist/es-419-DlCbbvcc.js +0 -3145
  312. package/dist/esm-15CISqPe.js +0 -430
  313. package/dist/faceMatch-BVSCpwmA.js +0 -2
  314. package/dist/fieldComparison-nFj9pSeZ.js +0 -2
  315. package/dist/flipAnimation-DY9K2zel.js +0 -3048
  316. package/dist/incodeModule-D6oey1Mb.js +0 -68
  317. package/dist/inputComposed-45HxIMO0.js +0 -1
  318. package/dist/pdfViewer-CFkuHOV4.js +0 -2
  319. package/dist/radioGroupComposed-DJ71F9KK.js +0 -1
  320. package/dist/richText-aCnLd3j2.js +0 -1549
  321. package/dist/spacer-BvrtrwSF.js +0 -741
  322. package/dist/spinner-CkN8sW0d.js +0 -88
  323. package/dist/sr-YU-UEhyvXZ-.js +0 -3149
  324. package/dist/statusPage-3zRxvkSE.js +0 -36
  325. package/dist/uiConfig-BA7U_zLr.js +0 -2589
  326. package/dist/useCaptureHelpButton-CSG3fO48.js +0 -86
  327. package/dist/useCoverMedia-VLw3OYN_.js +0 -149
  328. /package/dist/{aligndevicelottie-BARt-rhe.js → aligndevicelottie-BEKzL4SB.js} +0 -0
  329. /package/dist/{back-tutorial-CZrMmj1_.js → back-tutorial-B9W63fa-.js} +0 -0
  330. /package/dist/{backdevicelottie-CIM3ekd8.js → backdevicelottie-DsN8QBV3.js} +0 -0
  331. /package/dist/{blurdevicelottie-BRyXfLB6.js → blurdevicelottie-DkV7Kwo4.js} +0 -0
  332. /package/dist/{countryDefinitions-BO9OSKQO.js → countryDefinitions-RBVGM1D_.js} +0 -0
  333. /package/dist/{defineProperty-CjeJoXkx.js → defineProperty-E9wRIIo9.js} +0 -0
  334. /package/dist/{flip-animation-BU5LNKYx.js → flip-animation-DJVnWWL5.js} +0 -0
  335. /package/dist/{frontdevicelottie-arpyu_Fz.js → frontdevicelottie-DiW1Wmya.js} +0 -0
  336. /package/dist/{glaredevicelottie-TwTFxe7h.js → glaredevicelottie-CK-fnX_s.js} +0 -0
  337. /package/dist/{id-laser-h-Dr-hBxrq.js → id-laser-h-6Am_cjM8.js} +0 -0
  338. /package/dist/{id-laser-v-D_r0QNY8.js → id-laser-v-DXoF3flH.js} +0 -0
  339. /package/dist/{id-tutorial-DM9Pkfs-.js → id-tutorial-DkKH3eTE.js} +0 -0
  340. /package/dist/{lottie_light-aMg9Q9iO.js → lottie_light-B819EhaL.js} +0 -0
  341. /package/dist/{passport-tutorial-CKZZuDf_.js → passport-tutorial-D3Fpk-Tj.js} +0 -0
  342. /package/dist/{pdf.worker.min-BM1b2w9V.js → pdf.worker.min-DzBNMoKS.js} +0 -0
  343. /package/dist/{policyUrls-B3M8nLRh.js → policyUrls-Benduf-R.js} +0 -0
  344. /package/dist/{purify.es-0fCPkEV1.js → purify.es-CSPoFViI.js} +0 -0
  345. /package/dist/{selfieTutorial-Dz6lDFMn.js → selfieTutorial-DnsRD1Z9.js} +0 -0
@@ -0,0 +1,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 };