@incodetech/web 2.4.1 → 2.5.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (365) hide show
  1. package/THIRD_PARTY_NOTICES.txt +1 -4
  2. package/dist/{GeolocationPermissionDenied-GbB9B3J0.js → GeolocationPermissionDenied-DRRBxdLP.js} +23 -8
  3. package/dist/Password-CY3Tv_5W.js +212 -0
  4. package/dist/RadioGroup-CnxMGtas.js +123 -0
  5. package/dist/RequiredLegend-CLQ0HX7d.js +16 -0
  6. package/dist/RequiredMarker-CAqxArxr.js +16 -0
  7. package/dist/TextField-MsdsbAbT.js +166 -0
  8. package/dist/ae-signature/ae-signature.es.js +4 -4
  9. package/dist/{af-ZA-Dm5i-KRC.js → af-ZA-CtJyXRHO.js} +129 -881
  10. package/dist/{ageVerification-n-1fouaD.js → ageVerification-C6fgHkhK.js} +10 -8
  11. package/dist/{am-UBTEdpJv.js → am-BvQDMy8e.js} +129 -881
  12. package/dist/antifraud/antifraud.es.js +5 -4
  13. package/dist/applyStudioConfig-DO18I6Cf.js +126 -0
  14. package/dist/{ar-AE--KjG2EAr.js → ar-AE-CmS-eCPq.js} +129 -881
  15. package/dist/{ar-RFuhholc.js → ar-Bpe0wGYL.js} +129 -881
  16. package/dist/{ar-EG-y8SWJjy1.js → ar-EG-DaxpzWwx.js} +129 -881
  17. package/dist/assertClassBrand-F6pL6aIr.js +17 -0
  18. package/dist/authentication/authentication.es.js +9 -6
  19. package/dist/autoFocusTitle-D_vDhPqZ.js +19 -0
  20. package/dist/{az-4Z0ZZq7T.js → az-zSRFEU_F.js} +129 -881
  21. package/dist/{back-horizontal-hint-BztyPanp.js → back-horizontal-hint-Bci98ivl.js} +1 -1
  22. package/dist/{back-vertical-hint-BSzA4QbJ.js → back-vertical-hint-DyPCItxn.js} +1 -1
  23. package/dist/base.css +1 -1
  24. package/dist/{baseTutorial-BixkM88z.js → baseTutorial-Bktx_Yrr.js} +9 -7
  25. package/dist/{bn-CNhjOqja.js → bn-BrITyCOh.js} +129 -881
  26. package/dist/{bottomSheet-B4REej8W.js → bottomSheet-CzU1QNua.js} +3 -3
  27. package/dist/{bs-Culcuxab.js → bs-rdaEnpNo.js} +128 -880
  28. package/dist/{ca-h1xwo6CW.js → ca-BEtpN_ag.js} +128 -880
  29. package/dist/cameraOverlay-D6NPWfIT.js +2 -0
  30. package/dist/{cameraOverlayHeader-D4Bjr6Fw.js → cameraOverlayHeader-DZHCfN1x.js} +9 -8
  31. package/dist/{cameraView-BpdAdfIK.js → cameraView-CYd-_y_r.js} +13 -14
  32. package/dist/capture-BBQJgktJ.js +2 -0
  33. package/dist/{tutorial-HfSD-QZ3.js → capture-BstPDTgL.js} +226 -82
  34. package/dist/capture-CkvbPbJK.js +754 -0
  35. package/dist/capture-DiJGnu9z.js +3 -0
  36. package/dist/captureButtonIcon-DhTUlcGq.js +1 -0
  37. package/dist/captureFocusContext-FsGun4Yd.js +718 -0
  38. package/dist/captureFooter-BLJ1Qvov.js +47 -0
  39. package/dist/{ceb-pTDH3h1x.js → ceb-D5rPC9mY.js} +129 -881
  40. package/dist/certificate-issuance/certificate-issuance.es.js +68 -41
  41. package/dist/certificate-issuance/styles.css +1 -1
  42. package/dist/certificate-issuance/styles.css.js +1 -1
  43. package/dist/{checkbox-CALR7EFM.js → checkbox-HfnbGBMk.js} +4 -4
  44. package/dist/chooser-Dm0wohHb.js +1517 -0
  45. package/dist/connectionError-BFVvBEMq.js +100 -0
  46. package/dist/consent/consent.es.js +19 -14
  47. package/dist/consent/styles.css +1 -1
  48. package/dist/consent/styles.css.js +1 -1
  49. package/dist/{countryDefinitions-BO9OSKQO.js → countryDefinitions-UXJ0maPk.js} +6 -0
  50. package/dist/{countryFlag-2Vj85OIZ.js → countryFlag-CjuXF_8C.js} +1 -1
  51. package/dist/{countrySelector-DKvvYxP6.js → countrySelector-CEJAgeRY.js} +6 -5
  52. package/dist/cross-document-data-match/cross-document-data-match.es.js +5 -4
  53. package/dist/{cs-CZ-CiATe8nW.js → cs-CZ-BEprNqLt.js} +128 -880
  54. package/dist/{cs-CrQuSSOI.js → cs-D_U436l9.js} +128 -880
  55. package/dist/curp-validation/curp-validation.es.js +97 -96
  56. package/dist/curp-validation/styles.css +1 -1
  57. package/dist/curp-validation/styles.css.js +1 -1
  58. package/dist/{customFields-DRwjotY-.js → customFields-DqebmaL5.js} +33 -20
  59. package/dist/{customWatchlist-DmROVUfp.js → customWatchlist-DVSMbzw5.js} +11 -9
  60. package/dist/{da-DK-CgrU79mp.js → da-DK-dMikXCNn.js} +128 -880
  61. package/dist/dashboardTheme-CB91NoiD.js +388 -0
  62. package/dist/{dateInputComposed-Bu7vM-M4.js → dateInputComposed-CVJ4LSep.js} +4 -5
  63. package/dist/dateInputComposed-DF0Dx86l.js +1 -0
  64. package/dist/{de-D0xnkswj.js → de-C3c7Bo-M.js} +128 -880
  65. package/dist/denied-BR9pZqKi.js +272 -0
  66. package/dist/devWarn-CXWsIkak.js +1034 -0
  67. package/dist/deviceWallet-DDHk7jBw.js +37 -0
  68. package/dist/{digitalIdRedirect-Dpv37Mbi.js → digitalIdRedirect-DKJgITR_.js} +4 -4
  69. package/dist/{digitalIdUpload-DKXe-_GE.js → digitalIdUpload-BgG6svjJ.js} +37 -15
  70. package/dist/document-capture/document-capture.es.js +1 -1
  71. package/dist/document-capture/styles.css +1 -1
  72. package/dist/document-capture/styles.css.js +1 -1
  73. package/dist/{documentCapture-DlBMtLvL.js → documentCapture-Cu3F_ka7.js} +136 -72
  74. package/dist/documentCapture-owKpu8oI.js +2 -0
  75. package/dist/{dropdownComposed-B-qTBcja.js → dropdownComposed-BJCNWDGU.js} +8 -6
  76. package/dist/dropdownComposed-zidm_XVK.js +1 -0
  77. package/dist/dynamic-forms/dynamic-forms.es.js +62 -35
  78. package/dist/ekyb/ekyb.es.js +1 -1
  79. package/dist/ekyb/styles.css +1 -1
  80. package/dist/ekyb/styles.css.js +1 -1
  81. package/dist/ekybModule-Qc_5cB3W.js +2 -0
  82. package/dist/{ekybModule-qkUiNFdJ.js → ekybModule-tV6tUWe_.js} +109 -89
  83. package/dist/ekyc/ekyc.es.js +1 -1
  84. package/dist/ekyc/styles.css +1 -1
  85. package/dist/ekyc/styles.css.js +1 -1
  86. package/dist/ekyc-prefill/ekyc-prefill.es.js +2 -0
  87. package/dist/ekyc-prefill/styles.css +2 -0
  88. package/dist/ekyc-prefill/styles.css.js +1 -0
  89. package/dist/ekycModule-BgB_xu54.js +789 -0
  90. package/dist/ekycModule-DZ7yboJO.js +2 -0
  91. package/dist/ekycPrefillModule-B0cJJiuu.js +2 -0
  92. package/dist/ekycPrefillModule-B1xn0veW.js +233 -0
  93. package/dist/{el-GR-DPUvlcvr.js → el-GR-eG5AImZr.js} +128 -880
  94. package/dist/{el-B5gLXHxC.js → el-LOaoXfUU.js} +129 -881
  95. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  96. package/dist/{electronic-signature-Jx8qWrW-.js → electronic-signature-BleJ65-Y.js} +55 -36
  97. package/dist/email/email.es.js +21 -16
  98. package/dist/{emailInput-ClX3Lu8X.js → emailInput-BVx96bJy.js} +23 -12
  99. package/dist/{en-DNuMvR7-.js → en-B_-7--AN.js} +129 -881
  100. package/dist/{en-DG-DOwBuCCl.js → en-DG-BDnlBAUl.js} +129 -881
  101. package/dist/{errorContent-B_pH1MX7.js → errorContent-x8IajOaE.js} +21 -20
  102. package/dist/errorParams-B68-Euu2.js +37 -0
  103. package/dist/es-419-DS4mN2d_.js +5 -0
  104. package/dist/{es-ES-BF9vl0Um.js → es-ES-BMafdM90.js} +128 -880
  105. package/dist/{es-MX-Brp4FXN8.js → es-MX-DqhG7Zy7.js} +128 -880
  106. package/dist/{es-DNl7ceDm.js → es-T4K5G5zB.js} +129 -881
  107. package/dist/{et-D5pPP4r0.js → et-fBoHBc5h.js} +129 -881
  108. package/dist/expiredId-Q5ITzZU-.js +67 -0
  109. package/dist/extensibility.es.js +382 -55
  110. package/dist/{fa-IR-BoyK-lax.js → fa-IR--PnMtKvC.js} +129 -881
  111. package/dist/face-match/face-match.es.js +1 -1
  112. package/dist/face-match/styles.css +1 -1
  113. package/dist/face-match/styles.css.js +1 -1
  114. package/dist/{faceMatch-Dp1AGBtg.js → faceMatch-D-ehWIdN.js} +54 -71
  115. package/dist/faceMatch-RxP2VPBm.js +2 -0
  116. package/dist/{fi-FI-mYdAUbtG.js → fi-FI-D-T9bf67.js} +128 -880
  117. package/dist/field-comparison/field-comparison.es.js +1 -1
  118. package/dist/fieldComparison-BhYiGx0t.js +2 -0
  119. package/dist/fieldComparison-c3xT3K4C.js +126 -0
  120. package/dist/{fieldLabelHint-CxjArYkQ.js → fieldLabelHint-yMZjXK6p.js} +3 -3
  121. package/dist/{finalSuccessScreen-BgPVGAr4.js → finalSuccessScreen-CDr8bsI6.js} +31 -22
  122. package/dist/fiscal-qr/fiscal-qr.es.js +32 -26
  123. package/dist/flipAnimation-C95PZFAJ.js +46 -0
  124. package/dist/flipCapturedCardEligibility-CcB0uVfH.js +210 -0
  125. package/dist/flow/flow.es.js +315 -287
  126. package/dist/flow/shell/styles.css +1 -1
  127. package/dist/flow/shell/styles.css.js +1 -1
  128. package/dist/flow/styles.css +1 -1
  129. package/dist/formField-Ba8BQ_l8.js +49 -0
  130. package/dist/{fr-B4R5fgnm.js → fr-BlNTqS4_.js} +128 -880
  131. package/dist/{fr-CA-DJSwRuWt.js → fr-CA-DBO_1sfd.js} +128 -880
  132. package/dist/{front-horizontal-hint-DEHmtcdg.js → front-horizontal-hint-LxyNVfjy.js} +1 -1
  133. package/dist/{front-vertical-hint-Cb1NO-xT.js → front-vertical-hint-BKEg_DRs.js} +1 -1
  134. package/dist/geolocation/geolocation.es.js +15 -12
  135. package/dist/government-validation/government-validation.es.js +7 -6
  136. package/dist/{he-D2RDlnbd.js → he-C-PnifVg.js} +129 -881
  137. package/dist/helpButtonConfig-BFragC_J.js +24 -0
  138. package/dist/{hi-DFXhGN9O.js → hi-mETIwcDe.js} +129 -881
  139. package/dist/{hmn-BlNbfL-D.js → hmn-BZabGetu.js} +129 -881
  140. package/dist/{homeScreen-DjzxBrYL.js → homeScreen-CcRzcWya.js} +26 -14
  141. package/dist/{incodeComponent-B-lwJJCV.js → hooks-nmwpawA2.js} +256 -280
  142. package/dist/{hr-DArr3n62.js → hr-DzkTH3cj.js} +128 -880
  143. package/dist/{ht-CAd-Hmi1.js → ht-D5zV7ROu.js} +129 -881
  144. package/dist/{hu-CulT8eq_.js → hu-CeHrYR4q.js} +130 -882
  145. package/dist/{icons-C2LgNjXy.js → icons-DLZTxOV2.js} +153 -80
  146. package/dist/id/id.es.js +167 -197
  147. package/dist/id/styles.css +1 -1
  148. package/dist/id/styles.css.js +1 -1
  149. package/dist/{id-D2VZL6b-.js → id-B_qFrh_W.js} +129 -881
  150. package/dist/{id-back-of-card-C7Au2tqk.js → id-back-of-card-BhF5T4fC.js} +1 -1
  151. package/dist/{id-back-of-card-vertical-CtQBFw8w.js → id-back-of-card-vertical-BudLiGPR.js} +1 -1
  152. package/dist/{id-front-of-card-BmHL_keG.js → id-front-of-card-CiGcJhVW.js} +1 -1
  153. package/dist/{id-front-of-card-vertical-DkNUn2Vx.js → id-front-of-card-vertical-C_GyecLf.js} +1 -1
  154. package/dist/id-selfie-flow/id-selfie-flow.es.js +13 -11
  155. package/dist/id-selfie-flow/styles.css +1 -1
  156. package/dist/id-verification/id-verification.es.js +12 -6
  157. package/dist/idFlipTransition-DuwSIp-D.js +154 -0
  158. package/dist/{idOcr-BWG3vj8j.js → idOcr-DatcQrFh.js} +64 -37
  159. package/dist/identity-reuse/identity-reuse.es.js +38 -25
  160. package/dist/identity-reuse/styles.css.js +1 -0
  161. package/dist/incodeComponent-DFue7FgD.js +235 -0
  162. package/dist/incodeModule-BWSWx6zz.js +41 -0
  163. package/dist/index.es.js +4 -3
  164. package/dist/{inputComposed-B35soRFg.js → inputComposed-6M3lOVUo.js} +4 -4
  165. package/dist/{it-fs9OkGbv.js → it-CwzQoTtJ.js} +130 -882
  166. package/dist/{ja-JP-C5-gDGuX.js → ja-JP-Cg6pV7OS.js} +130 -882
  167. package/dist/{ja-BvKVI6Oo.js → ja-eNtdzeB5.js} +129 -881
  168. package/dist/{jv-CyId7aPo.js → jv-BANHtRb4.js} +128 -880
  169. package/dist/{ka-pqIPc2el.js → ka-DWhlum5Q.js} +129 -881
  170. package/dist/{kk-DK7mWl6k.js → kk-CAsKyYR9.js} +128 -880
  171. package/dist/{km-BaJYdDrm.js → km-DJHdr0lO.js} +137 -889
  172. package/dist/{ko-CdYIGTH_.js → ko-BAPbgx_r.js} +129 -881
  173. package/dist/{ko-KP-Q3GGdDp3.js → ko-KP-BRD8crfV.js} +129 -881
  174. package/dist/{ky-Bc7ZXIXy.js → ky-0IKHwWw_.js} +128 -880
  175. package/dist/kyb-checks/kyb-checks.es.js +2 -0
  176. package/dist/kyb-checks/styles.css +2 -0
  177. package/dist/kyb-checks/styles.css.js +1 -0
  178. package/dist/kybChecksModule-CWFpU32e.js +345 -0
  179. package/dist/kybChecksModule-D3u3hdUP.js +2 -0
  180. package/dist/{lo-0jgAavCe.js → lo-DkBffqOP.js} +129 -881
  181. package/dist/{lt-DDEjR6RD.js → lt-Btf5JQPU.js} +129 -881
  182. package/dist/{lv-Ddzb_N3H.js → lv-DMnPY0bZ.js} +129 -881
  183. package/dist/{mandatoryConsent-C21a2d2-.js → mandatoryConsent-Ci6fJR2F.js} +23 -16
  184. package/dist/{manualCaptureButton-1KC7N_B-.js → manualCaptureButton-DrdeVhq8.js} +8 -7
  185. package/dist/{manualCaptureButton-C5VMDamt.js → manualCaptureButton-ZxWHf5Sa.js} +16 -12
  186. package/dist/{mk-SJwou4aX.js → mk-CQIDbtM2.js} +129 -881
  187. package/dist/{mn-7B86xjpb.js → mn-Cc1HnwyR.js} +128 -880
  188. package/dist/{ms-Bb-SlQCF.js → ms-CORA9eaw.js} +128 -880
  189. package/dist/{my-3ci4RJZY.js → my-CNDvlF-Z.js} +129 -881
  190. package/dist/{nb-NO-DpZAni0R.js → nb-NO-BwZ27fuH.js} +128 -880
  191. package/dist/{ne-Dncyvxqt.js → ne-D7rkhft1.js} +129 -881
  192. package/dist/{nl-C1mnzCBH.js → nl-DsxNMb79.js} +129 -881
  193. package/dist/{optionAccessibleLabel-DG8Lks9f.js → optionAccessibleLabel-Cz2x8Q7x.js} +27 -11
  194. package/dist/otpInput-B2fLiJsF.js +245 -0
  195. package/dist/{page-DINsqGIw.js → page-B0CjRMtF.js} +102 -79
  196. package/dist/{incode-logo-B1bl2S0z.js → pageUiConfig-mKn_YhhU.js} +88 -14
  197. package/dist/{passport-horizontal-hint-DgNc6F0-.js → passport-horizontal-hint-Bn18pckF.js} +1 -1
  198. package/dist/{passport-vertical-hint-B-toVsfT.js → passport-vertical-hint-D_bvTNZY.js} +1 -1
  199. package/dist/passwordRequirements-13qw_WSJ.js +49 -0
  200. package/dist/{pdf-BKHLi5Ac.js → pdf-DO_HvE8T.js} +2 -17
  201. package/dist/pdfViewer-CCHNUl5h.js +2 -0
  202. package/dist/{pdfViewer-C8xHykz1.js → pdfViewer-pgBIY_Q7.js} +11 -14
  203. package/dist/permissionInstructionList-DPDqNKFJ.js +43 -0
  204. package/dist/{permissions-B7-lHrFm.js → permissions-CKjgrM7q.js} +84 -53
  205. package/dist/phone/phone.es.js +16 -12
  206. package/dist/{phoneInputComposed-Di4acsc0.js → phoneInputComposed-BbZuW8Q8.js} +49 -12
  207. package/dist/{pl-CWr2fVBg.js → pl-DOgi6huc.js} +128 -880
  208. package/dist/preloadableLazy-KWGuHoqn.js +43 -0
  209. package/dist/{processing-z5wuXrKw.js → processing-v4EkL9-U.js} +2 -2
  210. package/dist/{progressBar-BcKFaXZR.js → progressBar-D-kfX8X1.js} +2 -2
  211. package/dist/{pt-BR-CMvTsOqE.js → pt-BR-x__xGSN_.js} +129 -881
  212. package/dist/{pt-AGz2XGAK.js → pt-CX0ngiGh.js} +129 -881
  213. package/dist/{pt-PT-KzIM0vpf.js → pt-PT-BKwyOX-W.js} +129 -881
  214. package/dist/qe-signature/qe-signature.es.js +4 -4
  215. package/dist/realtimeFeedbackConfig-DeZksjlR.js +16 -0
  216. package/dist/redirect-to-mobile/redirect-to-mobile.es.js +66 -62
  217. package/dist/redirect-to-mobile/styles.css +1 -1
  218. package/dist/redirect-to-mobile/styles.css.js +1 -1
  219. package/dist/{registerIncodeElement-D_cn4dSI.js → registerIncodeElement-FoirFu19.js} +1 -1
  220. package/dist/{resendTimer-On_zrMLS.js → resendTimer-DHgQUcAi.js} +2 -2
  221. package/dist/richText-DlHC_sMB.js +1761 -0
  222. package/dist/{ro-DYdJJDKn.js → ro-DGB5aI9B.js} +129 -881
  223. package/dist/{ru-C1cguVi2.js → ru-Dnl6YnE6.js} +129 -881
  224. package/dist/{ru-RU-18JeDfwz.js → ru-RU-BM5Leyxp.js} +128 -880
  225. package/dist/{sanitizeSvg-BC-qLUgS.js → sanitizeSvg-IfqLuP1N.js} +1 -1
  226. package/dist/selfie/selfie.es.js +37 -14
  227. package/dist/selfie/styles.css +1 -1
  228. package/dist/selfie/styles.css.js +1 -1
  229. package/dist/signature/signature.es.js +18 -13
  230. package/dist/{sk-CtIcnYOo.js → sk-B4HQZzV6.js} +131 -883
  231. package/dist/{sl-DS_Gc0Wc.js → sl-ClgVmZ1h.js} +129 -881
  232. package/dist/{smsTabContent-vE0WyKtg.js → smsTabContent-D9Eb005G.js} +40 -27
  233. package/dist/{so-dqMTkg5E.js → so-BLFIV5-m.js} +129 -881
  234. package/dist/spacer-D5j2phXI.js +1100 -0
  235. package/dist/spinner-BeYdZjPC.js +69 -0
  236. package/dist/{sr-DgHGiiWM.js → sr-CkSmwRiY.js} +128 -880
  237. package/dist/{sr-Latn-Du7_x_Tr.js → sr-Latn-BdLB-I3Z.js} +136 -888
  238. package/dist/sr-YU-DJ3geBJs.js +5 -0
  239. package/dist/{sv-SE-Dw61hRjx.js → sv-SE-DEfqYDzZ.js} +128 -880
  240. package/dist/{sw-De-Jo8XY.js → sw-16U52YpC.js} +129 -881
  241. package/dist/{th-BJixOgsM.js → th-Cg0hYujg.js} +129 -881
  242. package/dist/{th-TH-VyhljC5U.js → th-TH-BBPg926O.js} +129 -881
  243. package/dist/themes/dark.css +1 -1
  244. package/dist/themes/light.css +1 -1
  245. package/dist/{tl-PH-D2S2Irx7.js → tl-PH-DSHq83jb.js} +129 -881
  246. package/dist/{tl-DhjdqhA4.js → tl-SL2bqb6j.js} +129 -881
  247. package/dist/{tr-BJAuvOwN.js → tr-DclJKp5i.js} +130 -882
  248. package/dist/{transitionSpinner-BZO916B1.js → transitionSpinner-b8SMrhfd.js} +7 -7
  249. package/dist/tutorial-0IhGg6rb.js +28 -0
  250. package/dist/types/ae-signature.d.ts +17 -4
  251. package/dist/types/antifraud.d.ts +17 -4
  252. package/dist/types/authentication.d.ts +17 -4
  253. package/dist/types/certificate-issuance.d.ts +17 -4
  254. package/dist/types/consent.d.ts +17 -4
  255. package/dist/types/cross-document-data-match.d.ts +17 -4
  256. package/dist/types/curp-validation.d.ts +17 -4
  257. package/dist/types/document-capture.d.ts +17 -4
  258. package/dist/types/dynamic-forms.d.ts +17 -4
  259. package/dist/types/ekyb.d.ts +17 -4
  260. package/dist/types/ekyc-prefill.d.ts +213 -0
  261. package/dist/types/ekyc.d.ts +17 -4
  262. package/dist/types/electronic-signature.d.ts +17 -4
  263. package/dist/types/email.d.ts +17 -4
  264. package/dist/types/extensibility.d.ts +204 -37
  265. package/dist/types/face-match.d.ts +17 -4
  266. package/dist/types/field-comparison.d.ts +17 -4
  267. package/dist/types/fiscal-qr.d.ts +17 -4
  268. package/dist/types/flow.d.ts +38 -5
  269. package/dist/types/geolocation.d.ts +17 -4
  270. package/dist/types/government-validation.d.ts +17 -4
  271. package/dist/types/id-selfie-flow.d.ts +17 -4
  272. package/dist/types/id-verification.d.ts +17 -4
  273. package/dist/types/id.d.ts +17 -4
  274. package/dist/types/identity-reuse.d.ts +18 -5
  275. package/dist/types/index.d.ts +92 -10
  276. package/dist/types/kyb-checks.d.ts +213 -0
  277. package/dist/types/phone.d.ts +17 -4
  278. package/dist/types/qe-signature.d.ts +17 -4
  279. package/dist/types/redirect-to-mobile.d.ts +1 -1
  280. package/dist/types/selfie.d.ts +17 -4
  281. package/dist/types/signature.d.ts +17 -4
  282. package/dist/types/video-selfie.d.ts +1 -1
  283. package/dist/types/watchlist.d.ts +17 -4
  284. package/dist/types/workflow.d.ts +17 -4
  285. package/dist/{typography-8iwtPQbj.js → typography-D3swFCxZ.js} +3 -11
  286. package/dist/{uk-CcU91ee-.js → uk-CfFK_Tnk.js} +128 -880
  287. package/dist/{uk-UA-BZR90qDZ.js → uk-UA-vkh8X4bX.js} +129 -881
  288. package/dist/{ur-CIXtUYHK.js → ur-32a-9tt8.js} +129 -881
  289. package/dist/useCameraPreview-hNLhri73.js +93 -0
  290. package/dist/useCaptureHelpButton-BJQvSkuJ.js +43 -0
  291. package/dist/useIsDarkTheme-DoOFy9TN.js +27 -0
  292. package/dist/{useModuleLoader-BdIp6TNQ.js → useModuleLoader-BCYS1xLP.js} +31 -18
  293. package/dist/{uz-CeLVgwAD.js → uz-BEx-De8I.js} +129 -881
  294. package/dist/{vendor-preact-C0jX1Cbq.js → vendor-preact-CjnloSla.js} +147 -5
  295. package/dist/{verificationResult-C2gxbmAo.js → verificationResult-tHoFvrGZ.js} +30 -27
  296. package/dist/{vi-CgfGVVLY.js → vi-CMQXfqfw.js} +129 -881
  297. package/dist/video-selfie/styles.css +1 -1
  298. package/dist/video-selfie/styles.css.js +1 -1
  299. package/dist/video-selfie/video-selfie.es.js +120 -77
  300. package/dist/watchlist/watchlist.es.js +12 -9
  301. package/dist/{watchlistForBusiness-eOPtmu7z.js → watchlistForBusiness-CbRaBYoJ.js} +63 -22
  302. package/dist/{withEndScreenTexts-aFUEeBgM.js → withEndScreenTexts-10ck20tq.js} +253 -55
  303. package/dist/workflow/styles.css +1 -1
  304. package/dist/workflow/workflow.es.js +36 -28
  305. package/dist/{zh-CN-BOxod1_T.js → zh-CN-BelxA_Rf.js} +128 -880
  306. package/dist/{zh-HANT-zAahQ8nP.js → zh-HANT-DsztptZA.js} +129 -881
  307. package/dist/{zh-TW-B0v7GYYG.js → zh-TW-DKQC3FXd.js} +129 -881
  308. package/dist/{zh-B-kjeCig.js → zh-v3x4XYal.js} +128 -880
  309. package/package.json +48 -12
  310. package/dist/autoFocusTitle-Cy0J3lvr.js +0 -32
  311. package/dist/browser-ponyfill-DT11p-Ob.js +0 -441
  312. package/dist/cameraOverlay-DQEG24io.js +0 -2
  313. package/dist/check-icon-BpjpKqhJ.js +0 -48
  314. package/dist/connectionError-Cf6iGFyx.js +0 -45
  315. package/dist/dashboardTheme-CkyISqIs.js +0 -247
  316. package/dist/dateInputComposed-cgZGBSiu.js +0 -1
  317. package/dist/denied-ByGDWkTW.js +0 -1871
  318. package/dist/deviceWallet-C4UT05wN.js +0 -66
  319. package/dist/documentCapture-Dh1ftzGG.js +0 -2
  320. package/dist/dropdownComposed-DmT4s8VM.js +0 -1
  321. package/dist/ekybModule-BHInfPHS.js +0 -2
  322. package/dist/ekycModule-B2cfT3zi.js +0 -2
  323. package/dist/ekycModule-BQPl1KQT.js +0 -300
  324. package/dist/es-419-BU7r2Fvh.js +0 -3193
  325. package/dist/esm-15CISqPe.js +0 -430
  326. package/dist/expiredId-GIHjGAuY.js +0 -80
  327. package/dist/faceMatch-bXhejzhf.js +0 -2
  328. package/dist/fieldComparison-BirXQb7f.js +0 -2
  329. package/dist/fieldComparison-D8PL0eR1.js +0 -109
  330. package/dist/flipAnimation-BgMPQ8Ma.js +0 -3048
  331. package/dist/formField-0k8wVfXl.js +0 -60
  332. package/dist/incodeModule-DiVtqekm.js +0 -68
  333. package/dist/inputComposed-CKujYUSB.js +0 -1
  334. package/dist/numberedStep-CvbL3ht2.js +0 -13
  335. package/dist/otpInput-_B7xEZUU.js +0 -157
  336. package/dist/passwordInputComposed-B3WKjODU.js +0 -74
  337. package/dist/pdfViewer-DcB41xr7.js +0 -2
  338. package/dist/radioGroupComposed-CIbHjX4v.js +0 -160
  339. package/dist/radioGroupComposed-eXNWg1ez.js +0 -1
  340. package/dist/reload-icon-elAFo9-k.js +0 -70
  341. package/dist/richText-aCnLd3j2.js +0 -1549
  342. package/dist/spacer-lcnhSC-5.js +0 -741
  343. package/dist/spinner-B8BswhBb.js +0 -88
  344. package/dist/sr-YU-YuZu7wdb.js +0 -3197
  345. package/dist/statusPage-WIsGgf_m.js +0 -36
  346. package/dist/uiConfig-CwGL3QjP.js +0 -2589
  347. package/dist/useCaptureHelpButton-BTUZs3Ev.js +0 -86
  348. package/dist/useCoverMedia-VLw3OYN_.js +0 -149
  349. /package/dist/{aligndevicelottie-BARt-rhe.js → aligndevicelottie-BEKzL4SB.js} +0 -0
  350. /package/dist/{back-tutorial-CZrMmj1_.js → back-tutorial-B9W63fa-.js} +0 -0
  351. /package/dist/{backdevicelottie-CIM3ekd8.js → backdevicelottie-DsN8QBV3.js} +0 -0
  352. /package/dist/{blurdevicelottie-BRyXfLB6.js → blurdevicelottie-DkV7Kwo4.js} +0 -0
  353. /package/dist/{defineProperty-CjeJoXkx.js → defineProperty-B4FQTz14.js} +0 -0
  354. /package/dist/{flip-animation-BU5LNKYx.js → flip-animation-DJVnWWL5.js} +0 -0
  355. /package/dist/{frontdevicelottie-arpyu_Fz.js → frontdevicelottie-DiW1Wmya.js} +0 -0
  356. /package/dist/{glaredevicelottie-TwTFxe7h.js → glaredevicelottie-CK-fnX_s.js} +0 -0
  357. /package/dist/{id-laser-h-Dr-hBxrq.js → id-laser-h-6Am_cjM8.js} +0 -0
  358. /package/dist/{id-laser-v-D_r0QNY8.js → id-laser-v-DXoF3flH.js} +0 -0
  359. /package/dist/{id-tutorial-DM9Pkfs-.js → id-tutorial-DkKH3eTE.js} +0 -0
  360. /package/dist/{lottie_light-aMg9Q9iO.js → lottie_light-Bam05Bc9.js} +0 -0
  361. /package/dist/{passport-tutorial-CKZZuDf_.js → passport-tutorial-D3Fpk-Tj.js} +0 -0
  362. /package/dist/{pdf.worker.min-BM1b2w9V.js → pdf.worker.min-D0hm-8jN.js} +0 -0
  363. /package/dist/{policyUrls-B3M8nLRh.js → policyUrls-B3TEaluh.js} +0 -0
  364. /package/dist/{purify.es-0fCPkEV1.js → purify.es-DhY3JLdI.js} +0 -0
  365. /package/dist/{selfieTutorial-Dz6lDFMn.js → selfieTutorial-DnsRD1Z9.js} +0 -0
@@ -0,0 +1,718 @@
1
+ import { u as useTranslation } from "./devWarn-CXWsIkak.js";
2
+ import { C as Q, T as k, b as y, h as d, p as _, u as A, x as u, y as x } from "./vendor-preact-CjnloSla.js";
3
+ import { b as PrizmaButton, i as LockIcon } from "./icons-DLZTxOV2.js";
4
+ import { a as AnimatedAsset, h as cn, n as Title, t as Spacer, v as IconCross, y as IconCheck } from "./spacer-D5j2phXI.js";
5
+ import { t as Page } from "./page-B0CjRMtF.js";
6
+ import { i as TerminalErrorPage, u as useTimeoutHandle } from "./hooks-nmwpawA2.js";
7
+ import { a as TypographyP, n as TypographyH3 } from "./typography-D3swFCxZ.js";
8
+ import { t as ProgressBar } from "./progressBar-D-kfX8X1.js";
9
+ import { f as MANUAL_TOOLTIP, n as CaptureFrame, r as useIdExperiment, t as canFlipCapturedCard } from "./flipCapturedCardEligibility-CcB0uVfH.js";
10
+ import { n as getCountryDisplayName, t as countryFlagEmoji } from "./countryFlag-CjuXF_8C.js";
11
+ import { t as ExpiredId } from "./expiredId-Q5ITzZU-.js";
12
+ //#region src/modules/id/assets/blurIcon.tsx
13
+ var BlurIcon = ({ className }) => {
14
+ return /* @__PURE__ */ u("svg", {
15
+ width: "24",
16
+ height: "24",
17
+ viewBox: "0 0 24 24",
18
+ fill: "none",
19
+ xmlns: "http://www.w3.org/2000/svg",
20
+ class: className,
21
+ "aria-hidden": "true",
22
+ children: [
23
+ /* @__PURE__ */ u("path", {
24
+ 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",
25
+ fill: "currentColor"
26
+ }),
27
+ /* @__PURE__ */ u("path", {
28
+ 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",
29
+ fill: "currentColor"
30
+ }),
31
+ /* @__PURE__ */ u("path", {
32
+ 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",
33
+ fill: "currentColor"
34
+ }),
35
+ /* @__PURE__ */ u("path", {
36
+ 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",
37
+ fill: "currentColor"
38
+ }),
39
+ /* @__PURE__ */ u("path", {
40
+ 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",
41
+ fill: "currentColor"
42
+ })
43
+ ]
44
+ });
45
+ };
46
+ //#endregion
47
+ //#region src/modules/id/assets/glareIcon.tsx
48
+ var GlareIcon = ({ className }) => {
49
+ return /* @__PURE__ */ u("svg", {
50
+ width: "24",
51
+ height: "24",
52
+ viewBox: "0 0 24 24",
53
+ fill: "none",
54
+ xmlns: "http://www.w3.org/2000/svg",
55
+ class: className,
56
+ "aria-hidden": "true",
57
+ children: [
58
+ /* @__PURE__ */ u("path", {
59
+ 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",
60
+ fill: "currentColor"
61
+ }),
62
+ /* @__PURE__ */ u("path", {
63
+ 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",
64
+ fill: "currentColor"
65
+ }),
66
+ /* @__PURE__ */ u("path", {
67
+ 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",
68
+ fill: "currentColor"
69
+ }),
70
+ /* @__PURE__ */ u("path", {
71
+ 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",
72
+ fill: "currentColor"
73
+ })
74
+ ]
75
+ });
76
+ };
77
+ //#endregion
78
+ //#region src/modules/id/assets/infoNotReadableIcon.tsx
79
+ var InfoNotReadableIcon = ({ className }) => {
80
+ return /* @__PURE__ */ u("svg", {
81
+ width: "24",
82
+ height: "24",
83
+ viewBox: "0 0 24 24",
84
+ fill: "none",
85
+ xmlns: "http://www.w3.org/2000/svg",
86
+ class: className,
87
+ "aria-hidden": "true",
88
+ children: [
89
+ /* @__PURE__ */ u("path", {
90
+ fillRule: "evenodd",
91
+ clipRule: "evenodd",
92
+ 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",
93
+ fill: "currentColor"
94
+ }),
95
+ /* @__PURE__ */ u("path", {
96
+ fillRule: "evenodd",
97
+ clipRule: "evenodd",
98
+ 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",
99
+ fill: "currentColor"
100
+ }),
101
+ /* @__PURE__ */ u("path", {
102
+ fillRule: "evenodd",
103
+ clipRule: "evenodd",
104
+ 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",
105
+ fill: "currentColor"
106
+ }),
107
+ /* @__PURE__ */ u("path", {
108
+ fillRule: "evenodd",
109
+ clipRule: "evenodd",
110
+ 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",
111
+ fill: "currentColor"
112
+ })
113
+ ]
114
+ });
115
+ };
116
+ //#endregion
117
+ //#region src/modules/id/assets/questionIcon.tsx
118
+ var QuestionIcon = ({ className }) => {
119
+ return /* @__PURE__ */ u("svg", {
120
+ width: "64",
121
+ height: "64",
122
+ viewBox: "0 0 64 64",
123
+ fill: "none",
124
+ xmlns: "http://www.w3.org/2000/svg",
125
+ class: className,
126
+ "aria-hidden": "true",
127
+ children: [/* @__PURE__ */ u("circle", {
128
+ cx: "32",
129
+ cy: "32",
130
+ r: "32",
131
+ fill: "#14151A"
132
+ }), /* @__PURE__ */ u("path", {
133
+ 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",
134
+ fill: "white"
135
+ })]
136
+ });
137
+ };
138
+ //#endregion
139
+ //#region src/modules/id/processing/idProcessingLayout.tsx
140
+ var IdProcessingLayout = ({ imageUrl, orientation, mode, borderState, topContent, bottomContent, overlayContent, imagePending = false, blurImage }) => {
141
+ const { t } = useTranslation();
142
+ const frameMode = mode === "id" ? "front" : mode;
143
+ const hasFrame = Boolean(imageUrl) || imagePending;
144
+ return /* @__PURE__ */ u(Page, {
145
+ hideHeader: true,
146
+ hideFooterBranding: true,
147
+ className: "IncodeIdProcessingPage",
148
+ children: /* @__PURE__ */ u("div", {
149
+ class: cn("IncodeIdProcessingLayout", !hasFrame && "IncodeIdProcessingLayoutNoImage"),
150
+ children: /* @__PURE__ */ u("div", {
151
+ class: "IncodeIdProcessingLayoutContent",
152
+ children: [
153
+ topContent && /* @__PURE__ */ u("div", {
154
+ class: "IncodeIdProcessingTopArea",
155
+ children: topContent
156
+ }),
157
+ hasFrame && /* @__PURE__ */ u(CaptureFrame, {
158
+ orientation,
159
+ mode: frameMode,
160
+ state: borderState,
161
+ children: imageUrl ? /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u("img", {
162
+ src: imageUrl,
163
+ alt: "",
164
+ "aria-hidden": "true",
165
+ class: cn("IncodeIdProcessingImage", blurImage ? "IncodeIdProcessingImageBlurred" : void 0)
166
+ }), overlayContent && /* @__PURE__ */ u("div", {
167
+ class: "IncodeIdProcessingOverlay",
168
+ "aria-hidden": "true",
169
+ children: overlayContent
170
+ })] }) : /* @__PURE__ */ u("div", {
171
+ class: "IncodeIdProcessingPlaceholder",
172
+ "aria-hidden": "true"
173
+ })
174
+ }),
175
+ /* @__PURE__ */ u("div", {
176
+ class: "IncodeIdProcessingBottomArea",
177
+ children: [hasFrame && /* @__PURE__ */ u("div", {
178
+ class: "IncodeCaptureEncryptionLabel",
179
+ children: [/* @__PURE__ */ u(LockIcon, { className: "IncodeCaptureEncryptionIcon" }), /* @__PURE__ */ u("span", { children: t("idv2.capture.allDataIsEncrypted") })]
180
+ }), bottomContent]
181
+ })
182
+ ]
183
+ })
184
+ })
185
+ });
186
+ };
187
+ //#endregion
188
+ //#region src/modules/id/experiments/analyzingTitle.ts
189
+ /** Control arm: one static title for the whole upload. */
190
+ var ANALYZING_TITLE_KEY = "idv2.capture.processing.analyzing";
191
+ /** IDC-05 treatment arm, below `UPLOADING_TITLE_PROGRESS`. */
192
+ var PROCESSING_TITLE_KEY = "idv2.capture.processing.processing";
193
+ /** IDC-05 treatment arm, at or above `UPLOADING_TITLE_PROGRESS`. */
194
+ var UPLOADING_TITLE_KEY = "idv2.capture.processing.uploading";
195
+ /**
196
+ * IDC-05 treatment: the analyzing screen steps its title "Processing" →
197
+ * "Uploading" instead of resting on the control arm's single "Analyzing".
198
+ *
199
+ * Derived from `uploadProgress` rather than from a dwell timer, so the copy and
200
+ * the bar can never disagree about how far along the upload looks. That also
201
+ * makes it monotonic for free — the machine only ever raises `uploadProgress`
202
+ * within a single `uploading` visit (`Math.max` on the byte events, `Math.min`
203
+ * against the hold ceiling on the ticker) — so the title cannot walk backwards
204
+ * on a re-render or a stalled upload.
205
+ *
206
+ * Pure rather than a hook: no timers, no state, nothing to reset between
207
+ * attempts.
208
+ */
209
+ function getAnalyzingTitleKey(resultPreviewEnabled, progress) {
210
+ if (!resultPreviewEnabled) return ANALYZING_TITLE_KEY;
211
+ return progress >= 80 ? UPLOADING_TITLE_KEY : PROCESSING_TITLE_KEY;
212
+ }
213
+ //#endregion
214
+ //#region src/modules/id/processing/idAnalyzing.tsx
215
+ var IdAnalyzing = ({ imageUrl, progress, orientation, mode, blurImage, autoFocusTitle = true, resultPreviewEnabled = false, simulatedProgressDelayMs = 0 }) => {
216
+ const { t } = useTranslation();
217
+ const [simulatedDelayMs] = d(simulatedProgressDelayMs);
218
+ const titleRef = A(null);
219
+ const isHorizontal = orientation !== "vertical";
220
+ const titleKey = getAnalyzingTitleKey(resultPreviewEnabled, progress);
221
+ _(() => {
222
+ for (const animation of titleRef.current?.getAnimations?.() ?? []) {
223
+ animation.cancel();
224
+ animation.play();
225
+ }
226
+ }, [titleKey]);
227
+ _(() => {
228
+ if (autoFocusTitle) titleRef.current?.focus();
229
+ }, [autoFocusTitle]);
230
+ return /* @__PURE__ */ u(IdProcessingLayout, {
231
+ imageUrl,
232
+ orientation,
233
+ mode,
234
+ borderState: "analyzing",
235
+ blurImage,
236
+ topContent: /* @__PURE__ */ u("div", {
237
+ class: "IncodeAnalyzingContent",
238
+ style: { "--progress-bar-simulated-delay": `${simulatedDelayMs}ms` },
239
+ children: [/* @__PURE__ */ u(ProgressBar, {
240
+ progress,
241
+ labelledById: "analyzing-title",
242
+ simulated: true
243
+ }), /* @__PURE__ */ u(Title, {
244
+ ref: titleRef,
245
+ id: "analyzing-title",
246
+ className: "IncodeAnalyzingTitle IncodeAnalyzingTitleText",
247
+ tabIndex: -1,
248
+ "aria-live": "polite",
249
+ children: t(titleKey)
250
+ })]
251
+ }),
252
+ overlayContent: /* @__PURE__ */ u(AnimatedAsset, {
253
+ name: "id.processing",
254
+ orientation: isHorizontal ? "horizontal" : "vertical",
255
+ loop: true,
256
+ autoStop: true,
257
+ class: "IncodeAnalyzingLottie"
258
+ }),
259
+ imagePending: !imageUrl
260
+ });
261
+ };
262
+ //#endregion
263
+ //#region src/modules/id/processing/idProcessingResult.tsx
264
+ var FADE_OUT_ANIMATION_NAME = "incodeIdProcessingResultFadeOut";
265
+ var EXIT_WATCHDOG_MS = 3500;
266
+ var IdProcessingResult = ({ variant, imageUrl, orientation, mode, title, subtitle, buttonText, onButtonClick, attemptsRemaining, blurImage, fadeOutOnClick, children }) => {
267
+ const { t } = useTranslation();
268
+ const StatusIcon = variant === "success" ? IconCheck : IconCross;
269
+ const titleRef = A(null);
270
+ const [isExiting, setIsExiting] = d(false);
271
+ const hasFiredButtonClickRef = A(false);
272
+ const { schedule: scheduleExitWatchdog, clear: clearExitWatchdog } = useTimeoutHandle();
273
+ y(() => {
274
+ titleRef.current?.focus();
275
+ }, []);
276
+ const fireButtonClick = () => {
277
+ if (hasFiredButtonClickRef.current) return;
278
+ hasFiredButtonClickRef.current = true;
279
+ onButtonClick();
280
+ };
281
+ const handleButtonClick = () => {
282
+ if (fadeOutOnClick) {
283
+ setIsExiting(true);
284
+ scheduleExitWatchdog(fireButtonClick, EXIT_WATCHDOG_MS);
285
+ return;
286
+ }
287
+ onButtonClick();
288
+ };
289
+ const handleExitAnimationEnd = (event) => {
290
+ if (event.animationName !== FADE_OUT_ANIMATION_NAME) return;
291
+ clearExitWatchdog();
292
+ fireButtonClick();
293
+ };
294
+ return /* @__PURE__ */ u(IdProcessingLayout, {
295
+ imageUrl,
296
+ orientation,
297
+ mode,
298
+ borderState: variant,
299
+ blurImage,
300
+ topContent: /* @__PURE__ */ u("div", {
301
+ class: cn("IncodeIdProcessingResultContent", isExiting && "IncodeIdProcessingResultContentExiting"),
302
+ onAnimationEnd: handleExitAnimationEnd,
303
+ children: [/* @__PURE__ */ u("div", {
304
+ class: "IncodeIdProcessingResultStatus",
305
+ role: "status",
306
+ children: [title && /* @__PURE__ */ u(Title, {
307
+ ref: titleRef,
308
+ className: "IncodeIdProcessingResultTitle",
309
+ tabIndex: -1,
310
+ showSubtitle: Boolean(subtitle),
311
+ subtitle,
312
+ subtitleProps: { className: "IncodeIdProcessingResultSubtitle" },
313
+ icon: {
314
+ type: "status",
315
+ status: variant
316
+ },
317
+ children: title
318
+ }), !title && /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(StatusIcon, {
319
+ size: "xl",
320
+ className: cn("IncodeIdProcessingResultStatusIcon", variant === "success" ? "IncodeIdProcessingResultStatusIconSuccess" : "IncodeIdProcessingResultStatusIconError")
321
+ }), subtitle && /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(Spacer, { size: 12 }), /* @__PURE__ */ u("p", {
322
+ class: "IncodeIdProcessingResultSubtitle",
323
+ children: subtitle
324
+ })] })] })]
325
+ }), children]
326
+ }),
327
+ bottomContent: /* @__PURE__ */ u("div", {
328
+ class: cn("IncodeIdProcessingResultButtonContainer", isExiting && "IncodeIdProcessingResultButtonContainerExiting"),
329
+ onAnimationEnd: handleExitAnimationEnd,
330
+ children: [attemptsRemaining !== void 0 && /* @__PURE__ */ u("p", {
331
+ class: "IncodeIdProcessingResultAttempts",
332
+ children: attemptsRemaining === 0 ? t("idv2.capture.processing.noAttemptsRemaining") : t("v2.idError.attemptsLeft", { count: attemptsRemaining })
333
+ }), /* @__PURE__ */ u(PrizmaButton, {
334
+ variant: "primary",
335
+ size: "L",
336
+ className: "IncodeButton IncodeButtonPrimary IncodeButtonL",
337
+ onClick: handleButtonClick,
338
+ disabled: isExiting,
339
+ "data-testid": "retry-button",
340
+ children: buttonText
341
+ })]
342
+ })
343
+ });
344
+ };
345
+ //#endregion
346
+ //#region src/modules/id/processing/idSuccess.tsx
347
+ var IdSuccess = ({ manager, state, blurImage }) => {
348
+ const { t } = useTranslation();
349
+ const hasNextSide = state.needsBackCapture || state.needsFrontCapture;
350
+ const { params } = useIdExperiment({
351
+ key: "flipCapturedCard",
352
+ enabled: canFlipCapturedCard(state.currentMode, state.previewImageUrl) && hasNextSide
353
+ });
354
+ const shouldFlipCapturedCard = params.shouldFlipCapturedCard;
355
+ if (!state.previewImageUrl && !state.barcodeFastPathCaptured) return null;
356
+ const mode = state.currentMode === "passport" ? "passport" : "id";
357
+ const getSubtitle = () => {
358
+ if (state.needsBackCapture) return t("idv2.capture.processing.successFrontSubtitle");
359
+ if (state.needsFrontCapture) return t("idv2.capture.processing.successBackSubtitleScanFront");
360
+ return t("idv2.capture.processing.successBackSubtitle");
361
+ };
362
+ const getButtonText = () => {
363
+ if (state.needsBackCapture) return t("idv2.capture.processing.scanBack");
364
+ if (state.needsFrontCapture) return t("idv2.capture.processing.scanFront");
365
+ return t("idv2.capture.processing.continue");
366
+ };
367
+ return /* @__PURE__ */ u(IdProcessingResult, {
368
+ variant: "success",
369
+ imageUrl: state.previewImageUrl,
370
+ orientation: state.orientation,
371
+ mode,
372
+ title: t("idv2.capture.processing.successTitle"),
373
+ subtitle: getSubtitle(),
374
+ buttonText: getButtonText(),
375
+ onButtonClick: () => manager.nextStep(),
376
+ blurImage,
377
+ fadeOutOnClick: shouldFlipCapturedCard
378
+ });
379
+ };
380
+ //#endregion
381
+ //#region src/shared/acceptedDocumentCard/assets/driversLicenseIcon.tsx
382
+ var DriversLicenseIcon = ({ class: className }) => /* @__PURE__ */ u("svg", {
383
+ xmlns: "http://www.w3.org/2000/svg",
384
+ width: "20",
385
+ height: "20",
386
+ viewBox: "0 0 20 20",
387
+ fill: "none",
388
+ "aria-hidden": "true",
389
+ class: className,
390
+ children: /* @__PURE__ */ u("path", {
391
+ "fill-rule": "evenodd",
392
+ "clip-rule": "evenodd",
393
+ 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",
394
+ fill: "var(--icon-neutral-300)"
395
+ })
396
+ });
397
+ //#endregion
398
+ //#region src/shared/acceptedDocumentCard/assets/identificationCardIcon.tsx
399
+ var IdentificationCardIcon = ({ class: className }) => /* @__PURE__ */ u("svg", {
400
+ xmlns: "http://www.w3.org/2000/svg",
401
+ width: "20",
402
+ height: "20",
403
+ viewBox: "0 0 20 20",
404
+ fill: "none",
405
+ "aria-hidden": "true",
406
+ class: className,
407
+ children: /* @__PURE__ */ u("path", {
408
+ "fill-rule": "evenodd",
409
+ "clip-rule": "evenodd",
410
+ 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",
411
+ fill: "var(--icon-neutral-300)"
412
+ })
413
+ });
414
+ //#endregion
415
+ //#region src/shared/acceptedDocumentCard/assets/passportIcon.tsx
416
+ var PassportIcon = ({ class: className }) => /* @__PURE__ */ u("svg", {
417
+ xmlns: "http://www.w3.org/2000/svg",
418
+ width: "20",
419
+ height: "20",
420
+ viewBox: "0 0 20 20",
421
+ fill: "none",
422
+ "aria-hidden": "true",
423
+ class: className,
424
+ children: [/* @__PURE__ */ u("path", {
425
+ 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",
426
+ fill: "var(--icon-neutral-300)"
427
+ }), /* @__PURE__ */ u("path", {
428
+ "fill-rule": "evenodd",
429
+ "clip-rule": "evenodd",
430
+ 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",
431
+ fill: "var(--icon-neutral-300)"
432
+ })]
433
+ });
434
+ //#endregion
435
+ //#region src/shared/acceptedDocumentCard/assets/residenceDocumentIcon.tsx
436
+ var ResidenceDocumentIcon = ({ class: className }) => /* @__PURE__ */ u("svg", {
437
+ xmlns: "http://www.w3.org/2000/svg",
438
+ width: "20",
439
+ height: "20",
440
+ viewBox: "0 0 20 20",
441
+ fill: "none",
442
+ "aria-hidden": "true",
443
+ class: className,
444
+ children: [/* @__PURE__ */ u("path", {
445
+ "fill-rule": "evenodd",
446
+ "clip-rule": "evenodd",
447
+ 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",
448
+ fill: "var(--icon-neutral-300)"
449
+ }), /* @__PURE__ */ u("path", {
450
+ "fill-rule": "evenodd",
451
+ "clip-rule": "evenodd",
452
+ 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",
453
+ fill: "var(--icon-neutral-300)"
454
+ })]
455
+ });
456
+ //#endregion
457
+ //#region src/shared/acceptedDocumentCard/acceptedDocumentCard.constants.ts
458
+ /** Used for every document type without a dedicated icon in the design system. */
459
+ var DefaultDocumentIcon = IdentificationCardIcon;
460
+ var DOCUMENT_CONFIG = {
461
+ IdentificationCard: {
462
+ label: "idv2.unacceptedId.identificationCard",
463
+ Icon: IdentificationCardIcon
464
+ },
465
+ Passport: {
466
+ label: "idv2.unacceptedId.passport",
467
+ Icon: PassportIcon
468
+ },
469
+ DriversLicense: {
470
+ label: "idv2.unacceptedId.driversLicense",
471
+ Icon: DriversLicenseIcon
472
+ },
473
+ ResidenceDocument: {
474
+ label: "idv2.unacceptedId.residenceDocument",
475
+ Icon: ResidenceDocumentIcon
476
+ },
477
+ BirthCertificate: { label: "idv2.unacceptedId.birthCertificate" },
478
+ TravelDocument: { label: "idv2.unacceptedId.travelDocument" },
479
+ WeaponLicense: { label: "idv2.unacceptedId.weaponLicense" },
480
+ MedicalCard: { label: "idv2.unacceptedId.medicalCard" },
481
+ TribalIdentification: { label: "idv2.unacceptedId.tribalIdentification" },
482
+ Currency: { label: "idv2.unacceptedId.currency" },
483
+ VehicleRegistration: { label: "idv2.unacceptedId.vehicleRegistration" },
484
+ TaxIdentification: { label: "idv2.unacceptedId.taxIdentification" },
485
+ Visa: { label: "idv2.unacceptedId.visa" },
486
+ Permit: { label: "idv2.unacceptedId.permit" },
487
+ Military: { label: "idv2.unacceptedId.military" },
488
+ VoterIdentification: { label: "idv2.unacceptedId.voterIdentification" },
489
+ FederalID: { label: "idv2.unacceptedId.federalId" },
490
+ Unknown: { label: "idv2.unacceptedId.unknown" },
491
+ Other: { label: "idv2.unacceptedId.other" }
492
+ };
493
+ //#endregion
494
+ //#region src/shared/acceptedDocumentCard/acceptedDocumentCard.tsx
495
+ function resolveDocumentConfig(documentType) {
496
+ const config = DOCUMENT_CONFIG[documentType] ?? DOCUMENT_CONFIG.Other;
497
+ return {
498
+ label: config.label,
499
+ Icon: config.Icon ?? DefaultDocumentIcon
500
+ };
501
+ }
502
+ var AcceptedDocumentCard = ({ acceptedDocuments }) => {
503
+ const { t } = useTranslation();
504
+ const hasAcceptedDocuments = !!acceptedDocuments?.length;
505
+ return /* @__PURE__ */ u("div", {
506
+ class: "IncodeAcceptedDocumentCard",
507
+ children: /* @__PURE__ */ u("div", {
508
+ class: cn("IncodeAcceptedDocumentCardContainer", !hasAcceptedDocuments && "IncodeAcceptedDocumentCardContainerEmpty"),
509
+ children: hasAcceptedDocuments ? /* @__PURE__ */ u("ul", {
510
+ class: "IncodeAcceptedDocumentCardList",
511
+ children: [...new Set(acceptedDocuments)].map((documentType) => {
512
+ const { Icon, label } = resolveDocumentConfig(documentType);
513
+ return /* @__PURE__ */ u("li", {
514
+ class: "IncodeAcceptedDocumentCardItem",
515
+ children: [/* @__PURE__ */ u(Icon, {}), /* @__PURE__ */ u(TypographyP, {
516
+ className: "IncodeAcceptedDocumentCardItemLabel",
517
+ children: t(label)
518
+ })]
519
+ }, documentType);
520
+ })
521
+ }) : /* @__PURE__ */ u("div", {
522
+ class: "IncodeAcceptedDocumentCardEmptyState",
523
+ children: [/* @__PURE__ */ u(DefaultDocumentIcon, { class: "IncodeAcceptedDocumentCardEmptyStateIcon" }), /* @__PURE__ */ u(TypographyP, {
524
+ className: "IncodeAcceptedDocumentCardEmptyStateText",
525
+ children: t("idv2.unacceptedId.noDocuments")
526
+ })]
527
+ })
528
+ })
529
+ });
530
+ };
531
+ //#endregion
532
+ //#region src/modules/id/processing/unacceptedIdDocuments.tsx
533
+ var UnacceptedIdDocuments = ({ acceptedDocuments, countryCode }) => {
534
+ const { t, i18n } = useTranslation();
535
+ const locale = i18n.language || "en";
536
+ const flag = countryCode ? countryFlagEmoji(countryCode) : "";
537
+ return /* @__PURE__ */ u("div", {
538
+ class: "IncodeUnacceptedIdDocuments",
539
+ children: [countryCode && /* @__PURE__ */ u("div", {
540
+ class: "IncodeUnacceptedIdDocumentsCountry",
541
+ children: [/* @__PURE__ */ u(TypographyH3, {
542
+ className: "IncodeUnacceptedIdDocumentsCountryHeading",
543
+ children: t("idv2.unacceptedId.acceptedDocuments")
544
+ }), /* @__PURE__ */ u("span", {
545
+ class: "IncodeUnacceptedIdDocumentsCountryLabel",
546
+ children: [flag && /* @__PURE__ */ u("span", {
547
+ class: "IncodeUnacceptedIdDocumentsCountryFlag",
548
+ "aria-hidden": "true",
549
+ children: flag
550
+ }), /* @__PURE__ */ u("span", {
551
+ class: "IncodeUnacceptedIdDocumentsCountryName",
552
+ children: getCountryDisplayName(countryCode, locale)
553
+ })]
554
+ })]
555
+ }), /* @__PURE__ */ u(AcceptedDocumentCard, { acceptedDocuments })]
556
+ });
557
+ };
558
+ //#endregion
559
+ //#region src/modules/id/processing/idError.tsx
560
+ var IdError = ({ manager, state, blurImage, ..._rest }) => {
561
+ const { t } = useTranslation();
562
+ if (state.status === "error") return /* @__PURE__ */ u(TerminalErrorPage, {});
563
+ const mode = state.currentMode === "passport" ? "passport" : "id";
564
+ const unacceptableIdType = state.uploadError === "ID_TYPE_UNACCEPTABLE";
565
+ if (!unacceptableIdType && !state.previewImageUrl) return null;
566
+ let unacceptedIdDocumentsSlot = null;
567
+ let imageUrl = state.previewImageUrl;
568
+ if (unacceptableIdType) {
569
+ imageUrl = void 0;
570
+ unacceptedIdDocumentsSlot = /* @__PURE__ */ u(UnacceptedIdDocuments, {
571
+ acceptedDocuments: state.acceptedDocuments,
572
+ countryCode: state.countryCode
573
+ });
574
+ }
575
+ return /* @__PURE__ */ u(IdProcessingResult, {
576
+ variant: "error",
577
+ imageUrl,
578
+ orientation: state.orientation,
579
+ mode,
580
+ title: state.uploadErrorMessage ? t(state.uploadErrorMessage) : void 0,
581
+ subtitle: state.uploadErrorDescription ? t(state.uploadErrorDescription) : void 0,
582
+ buttonText: state.canRetry ? t("idv2.capture.processing.tryAgain") : t("idv2.capture.processing.continue"),
583
+ onButtonClick: () => manager.continueFromError(),
584
+ attemptsRemaining: state.attemptsRemaining,
585
+ blurImage,
586
+ children: unacceptedIdDocumentsSlot
587
+ });
588
+ };
589
+ //#endregion
590
+ //#region src/modules/id/processing/idExpired.tsx
591
+ /**
592
+ * Flow / SDK 1 UXv2 capture-side expired-document screen — thin wrapper that
593
+ * wires `idCaptureManager.retryCapture()` and forwards the
594
+ * `attemptsRemaining` counter into the shared `<ExpiredId>` primitive.
595
+ *
596
+ * `isBackSide` triggers the Figma `1-9-11-id-documenterror` subtitle
597
+ * ("Use a different ID from the accepted list") when the back side expired.
598
+ *
599
+ * Workflow's verify-side node uses its own wrapper in the `id-verification`
600
+ * module that passes only `onContinue` (no attempts concept), matching the
601
+ * legacy SDK 1 `Workflow.tsx → ProcessId.jsx → ExpiredId` one-shot Continue
602
+ * behavior.
603
+ */
604
+ var IdExpired = ({ manager, attemptsRemaining, isBackSide }) => /* @__PURE__ */ u(ExpiredId, {
605
+ onRetry: () => manager.retryCapture(),
606
+ attemptsRemaining,
607
+ isBackSide
608
+ });
609
+ //#endregion
610
+ //#region src/modules/id/processing/idNoAttempts.tsx
611
+ var IdNoAttempts = ({ manager }) => {
612
+ const { t } = useTranslation();
613
+ const titleRef = A(null);
614
+ y(() => {
615
+ titleRef.current?.focus();
616
+ }, []);
617
+ const handleContinue = () => {
618
+ manager.continueExhausted();
619
+ };
620
+ return /* @__PURE__ */ u(Page, {
621
+ hideHeader: true,
622
+ hideFooterBranding: true,
623
+ className: "IncodeIdNoAttemptsPage",
624
+ children: [/* @__PURE__ */ u("div", {
625
+ class: "IncodeIdNoAttemptsContent",
626
+ role: "alert",
627
+ children: [/* @__PURE__ */ u(Title, {
628
+ ref: titleRef,
629
+ tabIndex: -1,
630
+ className: "IncodeIdNoAttemptsTitle",
631
+ showSubtitle: true,
632
+ subtitle: t("idv2.capture.processing.noAttemptsRemaining"),
633
+ subtitleProps: { className: "IncodeIdNoAttemptsSubtitle" },
634
+ icon: {
635
+ type: "status",
636
+ status: "error"
637
+ },
638
+ children: t("idv2.capture.notifications.idScanFailed")
639
+ }), /* @__PURE__ */ u(Spacer, { size: 80 })]
640
+ }), /* @__PURE__ */ u("div", {
641
+ class: "IncodeIdNoAttemptsButtonContainer",
642
+ children: /* @__PURE__ */ u(PrizmaButton, {
643
+ size: "L",
644
+ className: "IncodeButton IncodeButtonPrimary IncodeButtonL",
645
+ variant: "primary",
646
+ onClick: handleContinue,
647
+ children: t("idv2.capture.processing.continue")
648
+ })
649
+ })]
650
+ });
651
+ };
652
+ //#endregion
653
+ //#region src/modules/id/capture/captureOverlayHelpers.ts
654
+ var resolveResultView = (t) => ({
655
+ frameState: "success",
656
+ header: {
657
+ title: t("idv2.capture.resultPreview.title"),
658
+ subtitle: t("idv2.capture.resultPreview.subtitle")
659
+ }
660
+ });
661
+ /** IDC-08 control/default copy — the title's shared idle vocabulary. */
662
+ function getCaptureFrameTitle(t, mode) {
663
+ if (mode === "passport") return t("idv2.capture.fillFramePassport");
664
+ else if (mode === "back") return t("idv2.capture.fillFrameBack");
665
+ return t("idv2.capture.fillFrameFront");
666
+ }
667
+ /** IDC-08 `remove`/`auto-dismiss` title — states the action instead of "fill the frame". */
668
+ function getManualCaptureTitle(t, mode) {
669
+ if (mode === "passport") return t("idv2.capture.manualCapture.capturePassport");
670
+ else if (mode === "back") return t("idv2.capture.manualCapture.captureBack");
671
+ return t("idv2.capture.manualCapture.captureFront");
672
+ }
673
+ var resolveLiveView = ({ t, mode, detectionStatus, isCapturing, showManualCapture, manualTooltipVariant }) => {
674
+ if (isCapturing || detectionStatus === "capturing") return {
675
+ frameState: "capturing",
676
+ header: {
677
+ title: t("idv2.capture.takingPhoto"),
678
+ subtitle: t("idv2.capture.dontMove")
679
+ }
680
+ };
681
+ const isManualCapture = detectionStatus === "manualCapture";
682
+ const hasDetectionError = detectionStatus === "blur" || detectionStatus === "glare" || detectionStatus === "wrongSide" || detectionStatus === "farAway";
683
+ if (!(detectionStatus === "detecting" || detectionStatus === "idNotDetected" || isManualCapture)) return {
684
+ frameState: hasDetectionError ? "error" : "idle",
685
+ header: null
686
+ };
687
+ const isManualTooltipTreatment = showManualCapture && manualTooltipVariant !== MANUAL_TOOLTIP.CONTROL;
688
+ const title = isManualTooltipTreatment ? getManualCaptureTitle(t, mode) : getCaptureFrameTitle(t, mode);
689
+ let subtitle = t("idv2.capture.autoCapture");
690
+ if (isManualTooltipTreatment && manualTooltipVariant === MANUAL_TOOLTIP.REMOVE) subtitle = t("idv2.capture.manualCapture.pressButton");
691
+ else if (isManualCapture) subtitle = "";
692
+ return {
693
+ frameState: "idle",
694
+ header: {
695
+ title,
696
+ subtitle
697
+ }
698
+ };
699
+ };
700
+ //#endregion
701
+ //#region src/modules/id/capture/captureFocusContext.tsx
702
+ var CaptureAutoFocusContext = Q(true);
703
+ /**
704
+ * Capture is part of the public extensibility surface, but layered transitions
705
+ * need to defer its focus without adding transition-only state to the public
706
+ * Capture props. This private context carries that presentation signal through
707
+ * Capture to CaptureOverlay while ordinary consumers retain autofocus by
708
+ * default.
709
+ */
710
+ var CaptureAutoFocusProvider = ({ enabled, children }) => /* @__PURE__ */ u(CaptureAutoFocusContext.Provider, {
711
+ value: enabled,
712
+ children
713
+ });
714
+ function useCaptureAutoFocus() {
715
+ return x(CaptureAutoFocusContext);
716
+ }
717
+ //#endregion
718
+ 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 };