@incodetech/web 0.0.0-dev-20260909-14ef44cf → 0.0.0-dev-20260910-30fb659a

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 (227) hide show
  1. package/dist/ae-signature/ae-signature.es.js +3 -3
  2. package/dist/antifraud/antifraud.es.js +3 -3
  3. package/dist/assets/dm-sans-latin-400-normal.woff2 +0 -0
  4. package/dist/assets/dm-sans-latin-500-normal.woff2 +0 -0
  5. package/dist/assets/dm-sans-latin-600-normal.woff2 +0 -0
  6. package/dist/assets/dm-sans-latin-700-normal.woff2 +0 -0
  7. package/dist/assets/rethink-sans-latin-800-normal.woff2 +0 -0
  8. package/dist/authentication/authentication.es.js +4 -2
  9. package/dist/base.css +5 -5
  10. package/dist/baseTutorial-DdU221rI.js +172 -0
  11. package/dist/bottomSheet-C3MHkEfL.js +101 -0
  12. package/dist/cameraOverlay-hVopsg3m.js +2 -0
  13. package/dist/cameraOverlayHeader-DFD85Ezb.js +43 -0
  14. package/dist/cameraView-CR2WH_wN.js +49 -0
  15. package/dist/captureFooter-BlAq3nsT.js +67 -0
  16. package/dist/certificate-issuance/certificate-issuance.es.js +7 -5
  17. package/dist/checkbox-CSTnDDdf.js +97 -0
  18. package/dist/connectionError-TamPptzl.js +45 -0
  19. package/dist/consent/consent.es.js +6 -5
  20. package/dist/countries-jgOG0hnw.js +8560 -0
  21. package/dist/{countrySelector-DKg5Ds1n.js → countrySelector-7TnHDtSs.js} +3 -3
  22. package/dist/cross-document-data-match/cross-document-data-match.es.js +3 -3
  23. package/dist/curp-validation/curp-validation.es.js +10 -5
  24. package/dist/{customFields-CNoRKnPl.js → customFields-CYz-FC0C.js} +9 -5
  25. package/dist/{customWatchlist-ThbdoH2_.js → customWatchlist-DokxUqHy.js} +6 -5
  26. package/dist/{dashboardTheme-CwGkC76p.js → dashboardTheme-DBTW5Y2p.js} +1 -1
  27. package/dist/dateInputComposed-B1RmMKnV.js +1 -0
  28. package/dist/dateInputComposed-DdB7BruV.js +69 -0
  29. package/dist/document-capture/document-capture.es.js +1 -1
  30. package/dist/documentCapture-BkeibTS3.js +2 -0
  31. package/dist/{documentCapture-DX5zyk3c.js → documentCapture-heFwS-vY.js} +14 -7
  32. package/dist/dropdownComposed-CnIoWdph.js +386 -0
  33. package/dist/dropdownComposed-DbKfnljI.js +1 -0
  34. package/dist/dynamic-forms/dynamic-forms.es.js +11 -5
  35. package/dist/ekyb/ekyb.es.js +1 -1
  36. package/dist/ekybModule-CZdKKqpT.js +2 -0
  37. package/dist/{ekybModule-CLORvLGs.js → ekybModule-DAuLI3ad.js} +12 -8
  38. package/dist/ekyc/ekyc.es.js +1 -1
  39. package/dist/ekycModule-BvBAH-p5.js +2 -0
  40. package/dist/{ekycModule-CabDUmu7.js → ekycModule-v9k32tXV.js} +12 -6
  41. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  42. package/dist/{electronic-signature-CZwV6Z7-.js → electronic-signature-2Uv08XOv.js} +7 -5
  43. package/dist/email/email.es.js +7 -6
  44. package/dist/{emailInput-CZmNT4xf.js → emailInput-D1LMc-aF.js} +3 -2
  45. package/dist/errorContent-Be-w9xjB.js +58 -0
  46. package/dist/expiredId-ziDNDwCS.js +80 -0
  47. package/dist/extensibility.es.js +699 -5
  48. package/dist/face-match/face-match.es.js +1 -1
  49. package/dist/faceMatch-CvrSgSTi.js +2 -0
  50. package/dist/{faceMatch-DXTrrC-m.js → faceMatch-D_6MaDry.js} +6 -6
  51. package/dist/field-comparison/field-comparison.es.js +1 -1
  52. package/dist/fieldComparison-CqjjCpNq.js +2 -0
  53. package/dist/{fieldComparison-BOROqbI9.js → fieldComparison-grzKEozd.js} +7 -5
  54. package/dist/fieldLabelHint-Cy5t7tNp.js +16 -0
  55. package/dist/{finalSuccessScreen-Drn9GVQR.js → finalSuccessScreen-CiSREy-O.js} +9 -5
  56. package/dist/fiscal-qr/fiscal-qr.es.js +9 -5
  57. package/dist/flipAnimation-Bp4vkj5T.js +2758 -0
  58. package/dist/flow/flow.es.js +25 -10
  59. package/dist/formField-DfTSFK4p.js +60 -0
  60. package/dist/geolocation/geolocation.es.js +8 -5
  61. package/dist/government-validation/government-validation.es.js +3 -3
  62. package/dist/{homeScreen-zaTBPYZP.js → homeScreen-DnSGezVj.js} +6 -3
  63. package/dist/{dropdownComposed-QhS8uwDE.js → icons-BTQAPX7h.js} +3 -732
  64. package/dist/id/id.es.js +28 -20
  65. package/dist/id-selfie-flow/id-selfie-flow.es.js +8 -5
  66. package/dist/id-verification/id-verification.es.js +4 -3
  67. package/dist/{idOcr-BuInTg8J.js → idOcr-CnNDvFs1.js} +11 -4
  68. package/dist/identity-reuse/identity-reuse.es.js +6 -5
  69. package/dist/incodeComponent-OpYmmHuG.js +1050 -0
  70. package/dist/{incodeModule-DNwi5PIv.js → incodeModule-DQfs4RF7.js} +2 -2
  71. package/dist/index.es.js +2 -2
  72. package/dist/inputComposed-9jDBJqse.js +1 -0
  73. package/dist/inputComposed-BP78Sou-.js +99 -0
  74. package/dist/{mandatoryConsent-Dh0qqIS8.js → mandatoryConsent-5hb2q0Nc.js} +6 -5
  75. package/dist/manualCaptureButton-BOXGfoAr.js +255 -0
  76. package/dist/manualCaptureButton-DnE00y7z.js +63 -0
  77. package/dist/modal-BKL_l4J2.js +140 -0
  78. package/dist/modal.hooks-BG9W0mhz.js +201 -0
  79. package/dist/numberedStep-BZchXwF2.js +13 -0
  80. package/dist/{optionAccessibleLabel-DFs_dU6k.js → optionAccessibleLabel-FCfVmVrz.js} +5 -2
  81. package/dist/otpInput-BcoACg71.js +157 -0
  82. package/dist/passwordInputComposed-CMtVpi08.js +74 -0
  83. package/dist/{pdf-DxaEyX9N.js → pdf-2Mzn83pW.js} +1 -1
  84. package/dist/{pdfViewer-BztufNDo.js → pdfViewer-BXfw3EF1.js} +3 -3
  85. package/dist/pdfViewer-D5NNOdPt.js +2 -0
  86. package/dist/permissions-CjX0aA3u.js +2248 -0
  87. package/dist/phone/phone.es.js +8 -5
  88. package/dist/phoneInputComposed-CsJ_yD0l.js +3751 -0
  89. package/dist/processing-DAhWY6sA.js +8 -0
  90. package/dist/qe-signature/qe-signature.es.js +3 -3
  91. package/dist/radioGroupComposed-DO3Ysp1j.js +1 -0
  92. package/dist/radioGroupComposed-DdiOBGH9.js +160 -0
  93. package/dist/redirect-to-mobile/redirect-to-mobile.es.js +9 -6
  94. package/dist/resendTimer-BF44I8m1.js +79 -0
  95. package/dist/{richText-CmgFuzHO.js → richText-C93h8B8I.js} +2 -2
  96. package/dist/selfie/selfie.es.js +9 -6
  97. package/dist/signature/signature.es.js +7 -6
  98. package/dist/{spacer-DI-GUPzr.js → spacer-CP6nfo3f.js} +9 -9
  99. package/dist/{spinner-79XGZYai.js → spinner-1GVajlEK.js} +1 -1
  100. package/dist/statusPage-BSf9rrbK.js +35 -0
  101. package/dist/{tabs-D593NLWd.js → tabs-OBRm19dX.js} +1 -1
  102. package/dist/tutorial-R4tGibYC.js +574 -0
  103. package/dist/{uiConfig-DG7HXVR0.js → uiConfig-Sd_A0KwB.js} +84 -84
  104. package/dist/useCoverMedia-DofxqCtg.js +149 -0
  105. package/dist/{useModuleLoader-CMxfEBdJ.js → useModuleLoader-BN3raWWz.js} +31 -23
  106. package/dist/verificationResult-C-TUwYRU.js +81 -0
  107. package/dist/video-selfie/video-selfie.es.js +10 -7
  108. package/dist/watchlist/watchlist.es.js +6 -5
  109. package/dist/{watchlistForBusiness-B3au4z_B.js → watchlistForBusiness-CAfxFTrq.js} +8 -6
  110. package/dist/workflow/workflow.es.js +6 -6
  111. package/package.json +2 -2
  112. package/dist/documentCapture-DgSmPfdz.js +0 -2
  113. package/dist/ekybModule-D5jakNDp.js +0 -2
  114. package/dist/ekycModule-CgLgN1XM.js +0 -2
  115. package/dist/extensibility-DwFhaxCo.js +0 -21459
  116. package/dist/faceMatch-BM-FVaiU.js +0 -2
  117. package/dist/fieldComparison-D7LH3ZoD.js +0 -2
  118. package/dist/pdfViewer-B41kWu8T.js +0 -2
  119. /package/dist/{af-ZA-BSsDSZUP.js → af-ZA-qhcjE8Ll.js} +0 -0
  120. /package/dist/{aligndevicelottie-DD49iAwf.js → aligndevicelottie-BecybMtU.js} +0 -0
  121. /package/dist/{am-CA3CGdPa.js → am-DVltCO9H.js} +0 -0
  122. /package/dist/{ar-AE-B7wxORmn.js → ar-AE-DTmHPD7L.js} +0 -0
  123. /package/dist/{ar-7gJlfDmG.js → ar-B8E9vjK8.js} +0 -0
  124. /package/dist/{ar-EG-CpCAzmnP.js → ar-EG-DjHcOH9m.js} +0 -0
  125. /package/dist/{az-B1eZnP21.js → az-BFwACmvz.js} +0 -0
  126. /package/dist/{back-horizontal-hint-DcL2aeXz.js → back-horizontal-hint-CgMvLs_S.js} +0 -0
  127. /package/dist/{back-tutorial-BggT_Ad7.js → back-tutorial-D07UcHc5.js} +0 -0
  128. /package/dist/{back-vertical-hint-IHJzvCUW.js → back-vertical-hint-jsA5tD5E.js} +0 -0
  129. /package/dist/{backdevicelottie-Dw7W6vlg.js → backdevicelottie-C6hCbM0B.js} +0 -0
  130. /package/dist/{blurdevicelottie-DPY8NMNI.js → blurdevicelottie-CtGLqNN2.js} +0 -0
  131. /package/dist/{bn-B_3z3OFc.js → bn-DbIWkXe9.js} +0 -0
  132. /package/dist/{browser-ponyfill-CL58t85F.js → browser-ponyfill-BdqoHrvJ.js} +0 -0
  133. /package/dist/{bs-DhIMdYZL.js → bs-z1Ps12rk.js} +0 -0
  134. /package/dist/{ca-DTgrHIgt.js → ca-DUElvSDc.js} +0 -0
  135. /package/dist/{ceb-D8Pa-wLn.js → ceb-jzHzP2FJ.js} +0 -0
  136. /package/dist/{cs-pR8MytaO.js → cs-BrqY3ZP3.js} +0 -0
  137. /package/dist/{cs-CZ-Dig-AJzP.js → cs-CZ-CZtZyop9.js} +0 -0
  138. /package/dist/{da-DK-Y9A9UyPq.js → da-DK-BQvE1_ak.js} +0 -0
  139. /package/dist/{de-DNBTQCf3.js → de-ChPY7o4H.js} +0 -0
  140. /package/dist/{defineProperty-BvSzJNzg.js → defineProperty-DXYyyct1.js} +0 -0
  141. /package/dist/{el-CrLx45jW.js → el-BD0wlCYW.js} +0 -0
  142. /package/dist/{el-GR-B22DulOT.js → el-GR-Dt5-c7bC.js} +0 -0
  143. /package/dist/{en-BiNeRav4.js → en-CyzAzqIc.js} +0 -0
  144. /package/dist/{en-DG-CxJxuefq.js → en-DG-or497Mnl.js} +0 -0
  145. /package/dist/{es-419-C4_DkQug.js → es-419-B3p3NYae.js} +0 -0
  146. /package/dist/{es-BzklSN-G.js → es-BHy4PuoW.js} +0 -0
  147. /package/dist/{es-ES-xGnTUx3f.js → es-ES-DlvpXGeg.js} +0 -0
  148. /package/dist/{es-MX-PwA3FVdN.js → es-MX-Cqi6vOtT.js} +0 -0
  149. /package/dist/{et-j_o0Kn1b.js → et-qYB56l1n.js} +0 -0
  150. /package/dist/{fa-IR-BOqqb1KG.js → fa-IR-DVTTM_tu.js} +0 -0
  151. /package/dist/{fi-FI-K7cTHxBg.js → fi-FI-CfTvDUdu.js} +0 -0
  152. /package/dist/{flip-animation-D3Zr5EgF.js → flip-animation-DqsJznNB.js} +0 -0
  153. /package/dist/{fr-CmfT3Fji.js → fr-BewHYECv.js} +0 -0
  154. /package/dist/{fr-CA-DSKQfUyV.js → fr-CA-BWmoTiX5.js} +0 -0
  155. /package/dist/{front-horizontal-hint-BplEh02R.js → front-horizontal-hint-B37YE8CS.js} +0 -0
  156. /package/dist/{front-vertical-hint-D_dkG5uT.js → front-vertical-hint-BGNYUm4v.js} +0 -0
  157. /package/dist/{frontdevicelottie-CgADJyDu.js → frontdevicelottie-6kC6cgo8.js} +0 -0
  158. /package/dist/{glaredevicelottie-ep0zWB24.js → glaredevicelottie-CSU5ZUYd.js} +0 -0
  159. /package/dist/{he-DxOu5qcv.js → he-DskmIhH1.js} +0 -0
  160. /package/dist/{hi-Bqm14Xbz.js → hi-Bwj78dXS.js} +0 -0
  161. /package/dist/{hmn-B30BDQex.js → hmn-BVc2cEgu.js} +0 -0
  162. /package/dist/{hr-B_SOZRj6.js → hr-4NNWn8Hc.js} +0 -0
  163. /package/dist/{ht-DEmRwvgU.js → ht-C2_a-KG0.js} +0 -0
  164. /package/dist/{hu-DsIWgPzB.js → hu--akRgpT5.js} +0 -0
  165. /package/dist/{id-MGtp66fo.js → id-D7RQjfvC.js} +0 -0
  166. /package/dist/{id-back-of-card-CP5QObX3.js → id-back-of-card-U-NxDg8D.js} +0 -0
  167. /package/dist/{id-back-of-card-vertical-DhMg1rYw.js → id-back-of-card-vertical-B_u3_MBo.js} +0 -0
  168. /package/dist/{id-front-of-card-DX83rakq.js → id-front-of-card-N_jDGmho.js} +0 -0
  169. /package/dist/{id-front-of-card-vertical-CNeXlgvh.js → id-front-of-card-vertical-rHe_Ym9p.js} +0 -0
  170. /package/dist/{id-laser-h-CbY0k-mZ.js → id-laser-h-8TMlUzO4.js} +0 -0
  171. /package/dist/{id-laser-v-BdjZEhnE.js → id-laser-v-DVMkqyIr.js} +0 -0
  172. /package/dist/{id-tutorial-kabKpVGr.js → id-tutorial-DtvAPllr.js} +0 -0
  173. /package/dist/{it-DHz80acm.js → it-40b_QJ49.js} +0 -0
  174. /package/dist/{ja-7DjoBn_g.js → ja-BmtuIzaT.js} +0 -0
  175. /package/dist/{ja-JP-Bjt5yyeN.js → ja-JP-CbKDwCr2.js} +0 -0
  176. /package/dist/{jv-BogujYN8.js → jv-V7T3CZCW.js} +0 -0
  177. /package/dist/{ka-SMCEpz2i.js → ka-DElVzAwl.js} +0 -0
  178. /package/dist/{kk-Bmi4Ibdp.js → kk-DGGqZzoC.js} +0 -0
  179. /package/dist/{km-CTosjBPA.js → km-CTydY36i.js} +0 -0
  180. /package/dist/{ko-BNgzff2c.js → ko-Bjxwt0To.js} +0 -0
  181. /package/dist/{ko-KP-LuZ9duqN.js → ko-KP-Cb8ITTNz.js} +0 -0
  182. /package/dist/{ky-BPsNSnoV.js → ky-Da-svfsh.js} +0 -0
  183. /package/dist/{lo-B98nj7CD.js → lo-BcBrBLSe.js} +0 -0
  184. /package/dist/{lottie_light-BN2vmgOg.js → lottie_light-CtKkb7ze.js} +0 -0
  185. /package/dist/{lt-CGYCKnKw.js → lt-CRUODUDK.js} +0 -0
  186. /package/dist/{lv-BVGESywl.js → lv-COEqtHv9.js} +0 -0
  187. /package/dist/{mk-DSz43gN7.js → mk-D6OWaZi9.js} +0 -0
  188. /package/dist/{mn-V7tBxJeq.js → mn-CHZsnJ9w.js} +0 -0
  189. /package/dist/{ms-gKXHhgRq.js → ms-DWzO2k9X.js} +0 -0
  190. /package/dist/{my-CF92BB6U.js → my-DAkvSk_W.js} +0 -0
  191. /package/dist/{nb-NO-CouM1951.js → nb-NO-d7OazihS.js} +0 -0
  192. /package/dist/{ne-D8y4O4-O.js → ne-BTRq-Yeo.js} +0 -0
  193. /package/dist/{nl-BM_bYA8-.js → nl-DB9dav30.js} +0 -0
  194. /package/dist/{passport-horizontal-hint-CFRGHRVa.js → passport-horizontal-hint-Dt6gI-ZI.js} +0 -0
  195. /package/dist/{passport-tutorial-KbO7bbXm.js → passport-tutorial--ne0dDhV.js} +0 -0
  196. /package/dist/{passport-vertical-hint-BPaLhlho.js → passport-vertical-hint-Boe1pkkz.js} +0 -0
  197. /package/dist/{pl-CKNZeqJV.js → pl-CCkxKrjg.js} +0 -0
  198. /package/dist/{pt-BR-D17Ov788.js → pt-BR-CZ_z8Olc.js} +0 -0
  199. /package/dist/{pt-DvCZWJo7.js → pt-FtGjaVNi.js} +0 -0
  200. /package/dist/{pt-PT-CmMpxZIz.js → pt-PT-RBrFLLkL.js} +0 -0
  201. /package/dist/{registerIncodeElement-BMz2FMUm.js → registerIncodeElement-B-SfWDa0.js} +0 -0
  202. /package/dist/{ro-D49YZb_H.js → ro-DysboDNv.js} +0 -0
  203. /package/dist/{ru-C7Do9bMI.js → ru-CID3CZfu.js} +0 -0
  204. /package/dist/{ru-RU-BJwv_g41.js → ru-RU-BHy7AaUd.js} +0 -0
  205. /package/dist/{selfieTutorial-B30HiUvv.js → selfieTutorial-BarIUFDH.js} +0 -0
  206. /package/dist/{sk-2xyFSXZw.js → sk-D7kS5PBd.js} +0 -0
  207. /package/dist/{sl-CDEQCPMS.js → sl-D9TEWuUe.js} +0 -0
  208. /package/dist/{so-BQlNWbjF.js → so-CfgWC0fM.js} +0 -0
  209. /package/dist/{sr-OvJ8EQ2w.js → sr--ms6iMWz.js} +0 -0
  210. /package/dist/{sr-Latn-DBPpu-WK.js → sr-Latn-BiWFn5aX.js} +0 -0
  211. /package/dist/{sr-YU-ANiGGXx1.js → sr-YU-BNAd049F.js} +0 -0
  212. /package/dist/{sv-SE-N4rDD4lE.js → sv-SE-CJjtaNDA.js} +0 -0
  213. /package/dist/{sw-Cnb_N7Mx.js → sw-6SDfYBIC.js} +0 -0
  214. /package/dist/{th-CqyxWXb5.js → th-BcNF0ama.js} +0 -0
  215. /package/dist/{th-TH-Dgv1Kucb.js → th-TH-DMKAHwNe.js} +0 -0
  216. /package/dist/{tl-PH-CBw224by.js → tl-PH-Bl0duIQB.js} +0 -0
  217. /package/dist/{tl-DRzqwC1-.js → tl-lLJU4U50.js} +0 -0
  218. /package/dist/{tr-hYr5_fPV.js → tr-i2Q79BRH.js} +0 -0
  219. /package/dist/{uk-CG8cA8Vh.js → uk-C6nph67y.js} +0 -0
  220. /package/dist/{uk-UA-fLrAqsX9.js → uk-UA-B8zIiiNG.js} +0 -0
  221. /package/dist/{ur-COEA7gAs.js → ur-Zbr32KyN.js} +0 -0
  222. /package/dist/{uz-DluVEF_a.js → uz-DeV1ZkHM.js} +0 -0
  223. /package/dist/{vi-Da8N9N4q.js → vi-CxGLHnnW.js} +0 -0
  224. /package/dist/{zh-CN-DYqvh3BJ.js → zh-CN-DvWvvJIf.js} +0 -0
  225. /package/dist/{zh-Bo6qs8Vi.js → zh-CU10i68v.js} +0 -0
  226. /package/dist/{zh-HANT-jjgTtifM.js → zh-HANT-CUbWZ_Ie.js} +0 -0
  227. /package/dist/{zh-TW-BklGQhpL.js → zh-TW-BZnhC9_5.js} +0 -0
@@ -1,6 +1,700 @@
1
- import { n as setUiConfig } from "./uiConfig-DG7HXVR0.js";
2
- import { A as BaseTutorial, B as TextAreaComposed, F as CameraOverlay, G as DateInputComposed, H as RadioGroupComposed, I as CameraFrame, K as PhoneInputComposed, L as BottomSheet, M as CaptureFooter, Mt as useScreenOrientation, N as CameraView, Nt as useManager, P as CameraOverlayHeader, Q as FormField, R as VerificationOptionCard, S as Capture$1, St as Page, U as RadioButtonComposed, V as TextArea, W as SegmentedDateInput, X as getCountryByCallingCode, Y as countries, Z as getCountryByCode, a as Capture, at as InputComposed, ct as ConnectionError, d as IdError, dt as ErrorContent, et as Checkbox, ft as Processing, ht as LandscapeBlocker, it as PasswordInputComposed, j as ManualCapture, l as IdExpired, mt as IncodeComponent, n as Chooser, ot as Input, pt as Overlay, r as Tutorial, st as ProgressBar, t as FlipAnimation, tt as OtpInput, ut as VerificationResult, w as Permissions, x as Tutorial$1, z as VerificationOptionCardList } from "./extensibility-DwFhaxCo.js";
3
- import { o as Lottie, t as Spacer } from "./spacer-DI-GUPzr.js";
4
- import { a as TypographyH4, i as TypographyH3, n as Title, o as TypographyH5, r as TypographyH1, s as TypographyP, t as Spinner } from "./spinner-79XGZYai.js";
5
- import { A as Button, C as CheckmarkCompactIcon, D as CalendarIcon, E as CameraIcon, S as ChevronDown, T as CaptureButtonIcon, _ as EyeIcon, b as ChevronRightIcon, d as SuccessIcon, f as SearchIcon, g as EyeOffIcon, h as FileIcon, k as ErrorIcon, l as SvgLightningIcon, m as HelpIcon, p as LockIcon, r as Modal, t as DropdownComposed, u as WarningIcon, v as EllipseIcon, w as CheckmarkIcon, x as ChevronLeftIcon, y as CloseIcon } from "./dropdownComposed-QhS8uwDE.js";
1
+ import { n as setUiConfig, o as useTranslation } from "./uiConfig-Sd_A0KwB.js";
2
+ import { S as k, _ as y, c as A, f as d, h as q, i as D, u as T, v as u } from "./vendor-preact-C0jX1Cbq.js";
3
+ import { C as useManager, S as useScreenOrientation, l as Page, n as LandscapeBlocker, t as IncodeComponent } from "./incodeComponent-OpYmmHuG.js";
4
+ import { d as cn, o as Lottie, t as Spacer } from "./spacer-CP6nfo3f.js";
5
+ import { a as TypographyH4, i as TypographyH3, n as Title, o as TypographyH5, r as TypographyH1, s as TypographyP, t as Spinner } from "./spinner-1GVajlEK.js";
6
+ import { S as Button, _ as CaptureButtonIcon, a as LockIcon, c as EyeOffIcon, d as CloseIcon, f as ChevronRightIcon, g as CheckmarkIcon, h as CheckmarkCompactIcon, i as SearchIcon, l as EyeIcon, m as ChevronDown, n as WarningIcon, o as HelpIcon, p as ChevronLeftIcon, r as SuccessIcon, s as FileIcon, t as SvgLightningIcon, u as EllipseIcon, v as CameraIcon, x as ErrorIcon, y as CalendarIcon } from "./icons-BTQAPX7h.js";
7
+ import { t as Processing } from "./processing-DAhWY6sA.js";
8
+ import { t as Modal } from "./modal-BKL_l4J2.js";
9
+ import { t as ErrorContent } from "./errorContent-Be-w9xjB.js";
10
+ import { t as VerificationResult } from "./verificationResult-C-TUwYRU.js";
11
+ import { t as ConnectionError } from "./connectionError-TamPptzl.js";
12
+ import { n as ProgressBar, t as CaptureFooter } from "./captureFooter-BlAq3nsT.js";
13
+ import { n as Input, t as InputComposed } from "./inputComposed-BP78Sou-.js";
14
+ import { t as FieldLabelHint } from "./fieldLabelHint-Cy5t7tNp.js";
15
+ import "./inputComposed-9jDBJqse.js";
16
+ import { t as PasswordInputComposed } from "./passwordInputComposed-CMtVpi08.js";
17
+ import { t as OtpInput } from "./otpInput-BcoACg71.js";
18
+ import { t as Checkbox } from "./checkbox-CSTnDDdf.js";
19
+ import { t as FormField } from "./formField-DfTSFK4p.js";
20
+ import { a as getCountryByCode, i as getCountryByCallingCode, r as countries } from "./countries-jgOG0hnw.js";
21
+ import { t as PhoneInputComposed } from "./phoneInputComposed-CsJ_yD0l.js";
22
+ import { t as DropdownComposed } from "./dropdownComposed-CnIoWdph.js";
23
+ import "./dropdownComposed-DbKfnljI.js";
24
+ import { t as DateInputComposed } from "./dateInputComposed-DdB7BruV.js";
25
+ import "./dateInputComposed-B1RmMKnV.js";
26
+ import { n as RadioButtonComposed, t as RadioGroupComposed } from "./radioGroupComposed-DdiOBGH9.js";
27
+ import "./radioGroupComposed-DO3Ysp1j.js";
28
+ import { _ as VerificationOptionCard, i as Capture, n as Chooser, o as IdExpired, r as Tutorial, s as IdError, t as FlipAnimation, v as VerificationOptionCardList } from "./flipAnimation-Bp4vkj5T.js";
29
+ import { t as BottomSheet } from "./bottomSheet-C3MHkEfL.js";
30
+ import { n as CameraFrame, t as CameraView } from "./cameraView-CR2WH_wN.js";
31
+ import { n as CameraOverlay, t as CameraOverlayHeader } from "./cameraOverlayHeader-DFD85Ezb.js";
32
+ import { t as useCoverMedia } from "./useCoverMedia-DofxqCtg.js";
33
+ import "./cameraOverlay-hVopsg3m.js";
34
+ import { t as BaseTutorial } from "./baseTutorial-DdU221rI.js";
35
+ import { t as Permissions } from "./permissions-CjX0aA3u.js";
36
+ import { n as Capture$1, t as Tutorial$1 } from "./tutorial-R4tGibYC.js";
37
+ //#region src/shared/overlay/overlay.tsx
38
+ var Overlay = ({ children, "aria-labelledby": ariaLabelledBy, class: className }) => {
39
+ return /* @__PURE__ */ u("div", {
40
+ class: `IncodeOverlay ${className ?? ""}`,
41
+ role: "dialog",
42
+ "aria-modal": "true",
43
+ "aria-labelledby": ariaLabelledBy,
44
+ children: /* @__PURE__ */ u("div", {
45
+ class: "IncodeOverlayContainer",
46
+ children: /* @__PURE__ */ u("div", {
47
+ class: "IncodeOverlayBody",
48
+ children
49
+ })
50
+ })
51
+ });
52
+ };
53
+ //#endregion
54
+ //#region src/shared/segmentedDateInput/segmentedDateInput.tsx
55
+ /**
56
+ * ⚠️ EXPERIMENTAL — DO NOT USE IN FORMS.
57
+ *
58
+ * This component is an in-progress alternative to `DateInputComposed` that
59
+ * renders mm/dd/yyyy as three independent segments. It is not production-ready
60
+ * and is intentionally not wired into any form module (curp-validation,
61
+ * custom-fields, dynamic-forms, ekyc, etc.). Those forms must continue to use
62
+ * `DateInputComposed` (native `<input type="date">`).
63
+ *
64
+ * Kept here for ongoing iteration and external preview only.
65
+ */
66
+ var ISO_DATE_RE = /^(\d{4})-(\d{2})-(\d{2})$/;
67
+ var US_DATE_RE = /^(\d{1,2})\/(\d{1,2})\/(\d{4})$/;
68
+ var EMPTY_SEGMENTS = {
69
+ mm: "",
70
+ dd: "",
71
+ yyyy: ""
72
+ };
73
+ var parseISO = (value) => {
74
+ if (!value) return EMPTY_SEGMENTS;
75
+ const m = ISO_DATE_RE.exec(value);
76
+ if (!m) return EMPTY_SEGMENTS;
77
+ return {
78
+ yyyy: m[1],
79
+ mm: m[2],
80
+ dd: m[3]
81
+ };
82
+ };
83
+ var isValidDate = (yyyy, mm, dd) => {
84
+ if (yyyy < 1 || mm < 1 || mm > 12 || dd < 1 || dd > 31) return false;
85
+ const date = new Date(yyyy, mm - 1, dd);
86
+ return date.getFullYear() === yyyy && date.getMonth() === mm - 1 && date.getDate() === dd;
87
+ };
88
+ /**
89
+ * Number of days in the (potentially partial) MM/YYYY combination. Falls back
90
+ * to a non-leap year (any year not divisible by 4) when the year is unknown
91
+ * or incomplete, so February can never accept 30 or 31 once the month is set.
92
+ */
93
+ var getDaysInMonth = (mm, yyyy) => {
94
+ const m = Number(mm);
95
+ if (!Number.isFinite(m) || m < 1 || m > 12) return 31;
96
+ const y = Number(yyyy);
97
+ const referenceYear = Number.isFinite(y) && y > 0 && yyyy.length === 4 ? y : 2001;
98
+ return new Date(referenceYear, m, 0).getDate();
99
+ };
100
+ var segmentsToISO = ({ mm, dd, yyyy }) => {
101
+ if (yyyy.length !== 4 || mm.length === 0 || dd.length === 0) return "";
102
+ const Y = Number(yyyy);
103
+ const M = Number(mm);
104
+ const D = Number(dd);
105
+ if (!isValidDate(Y, M, D)) return "";
106
+ return `${yyyy}-${String(M).padStart(2, "0")}-${String(D).padStart(2, "0")}`;
107
+ };
108
+ /**
109
+ * Compute the segment order for a given locale via Intl.DateTimeFormat —
110
+ * e.g. en-US → ['mm','dd','yyyy'], en-GB / de / es → ['dd','mm','yyyy'],
111
+ * ja / ko / zh / ISO → ['yyyy','mm','dd']. Always falls back to US ordering
112
+ * if the locale is unknown or Intl returns something unexpected.
113
+ */
114
+ var getSegmentOrder = (locale) => {
115
+ try {
116
+ const parts = new Intl.DateTimeFormat(locale || void 0).formatToParts(new Date(2e3, 0, 15));
117
+ const order = [];
118
+ for (const part of parts) if (part.type === "year") order.push("yyyy");
119
+ else if (part.type === "month") order.push("mm");
120
+ else if (part.type === "day") order.push("dd");
121
+ if (order.length === 3 && new Set(order).size === 3) return order;
122
+ } catch {}
123
+ return [
124
+ "mm",
125
+ "dd",
126
+ "yyyy"
127
+ ];
128
+ };
129
+ /** Build next/previous navigation maps from a concrete segment order. */
130
+ var buildNavMaps = (order) => {
131
+ const next = {
132
+ mm: null,
133
+ dd: null,
134
+ yyyy: null
135
+ };
136
+ const prev = {
137
+ mm: null,
138
+ dd: null,
139
+ yyyy: null
140
+ };
141
+ order.forEach((key, i) => {
142
+ next[key] = order[i + 1] ?? null;
143
+ prev[key] = order[i - 1] ?? null;
144
+ });
145
+ return {
146
+ next,
147
+ prev
148
+ };
149
+ };
150
+ var SEGMENT_RANGES = {
151
+ mm: {
152
+ min: 1,
153
+ max: 12,
154
+ pad: 2
155
+ },
156
+ dd: {
157
+ min: 1,
158
+ max: 31,
159
+ pad: 2
160
+ },
161
+ yyyy: {
162
+ min: 1,
163
+ max: 9999,
164
+ pad: 4
165
+ }
166
+ };
167
+ /**
168
+ * Largest digit that can still be the *first* of a valid two-digit value for
169
+ * each segment. Anything above this means the user typed a digit that can't
170
+ * start a valid 2-digit value (e.g. `3` in MM — there's no valid month from
171
+ * 30 to 39), so we commit it as a zero-padded single digit and auto-advance.
172
+ *
173
+ * mm: max 12 → first digit 0, 1 are still ambiguous; 2–9 commit immediately
174
+ * dd: max 31 → first digit 0, 1, 2, 3 are still ambiguous; 4–9 commit
175
+ * yyyy: any first digit is fine, never auto-commit early
176
+ */
177
+ var SEGMENT_MAX_AMBIGUOUS_FIRST_DIGIT = {
178
+ mm: 1,
179
+ dd: 3,
180
+ yyyy: 9
181
+ };
182
+ var padSegment = (key, n) => String(n).padStart(SEGMENT_RANGES[key].pad, "0");
183
+ /**
184
+ * Increment / decrement a segment value, wrapping at the segment's range.
185
+ * Empty segments default sensibly: ArrowUp on empty starts at the min value
186
+ * (or current year for `yyyy`); ArrowDown starts at the max.
187
+ *
188
+ * Mirrors the keyboard model of native <input type="date"> and React Aria's
189
+ * `DateField`, without the `role="spinbutton"` that would re-introduce the
190
+ * "9.1 percent" screen reader announcement on empty segments.
191
+ */
192
+ var stepSegment = (key, currentValue, direction) => {
193
+ const { min, max } = SEGMENT_RANGES[key];
194
+ if (currentValue === "") {
195
+ if (key === "yyyy") return padSegment(key, (/* @__PURE__ */ new Date()).getFullYear());
196
+ return padSegment(key, direction === 1 ? min : max);
197
+ }
198
+ const n = Number(currentValue);
199
+ if (Number.isNaN(n)) return padSegment(key, min);
200
+ let next = n + direction;
201
+ if (next > max) next = min;
202
+ if (next < min) next = max;
203
+ return padSegment(key, next);
204
+ };
205
+ /**
206
+ * ⚠️ Experimental — do not use in forms.
207
+ *
208
+ * Use `DateInputComposed` instead. See the file-level note at the top of this
209
+ * module for context.
210
+ *
211
+ * @experimental
212
+ */
213
+ var SegmentedDateInput = D(({ id, label, labelHint, "aria-label": ariaLabel, error, showErrorIcon, helper, showHelperIcon, required, suppressMessages = false, class: className, value, onInput, disabled, min, max, name, autocomplete: autocompleteAttr, autoComplete, ...restProps }, ref) => {
214
+ const { i18n } = useTranslation();
215
+ const segmentOrder = T(() => getSegmentOrder(i18n.language), [i18n.language]);
216
+ const navMaps = T(() => buildNavMaps(segmentOrder), [segmentOrder]);
217
+ const autocompleteValue = typeof autoComplete === "string" ? autoComplete : typeof autocompleteAttr === "string" ? autocompleteAttr : void 0;
218
+ /**
219
+ * Map the consumer-supplied autocomplete to per-segment + hidden-input
220
+ * tokens. The HTML spec defines `bday-day` / `bday-month` / `bday-year`
221
+ * for separate fields, paired with `bday` on a full-date input. Anything
222
+ * else passes through unchanged. Default is "off" so the browser doesn't
223
+ * suggest random history entries on individual numeric segments.
224
+ */
225
+ const getSegmentAutocomplete = (key) => {
226
+ if (!autocompleteValue) return "off";
227
+ if (autocompleteValue === "bday") return key === "mm" ? "bday-month" : key === "dd" ? "bday-day" : "bday-year";
228
+ return autocompleteValue;
229
+ };
230
+ const hiddenAutocomplete = autocompleteValue ?? void 0;
231
+ const hiddenRef = A(null);
232
+ const iconButtonRef = A(null);
233
+ const segmentRefs = {
234
+ mm: A(null),
235
+ dd: A(null),
236
+ yyyy: A(null)
237
+ };
238
+ const [segments, setSegments] = d(() => parseISO(value));
239
+ y(() => {
240
+ setSegments((curr) => {
241
+ if (segmentsToISO(curr) === (value ?? "")) return curr;
242
+ return parseISO(value);
243
+ });
244
+ }, [value]);
245
+ y(() => {
246
+ const hidden = hiddenRef.current;
247
+ if (!hidden) return;
248
+ const next = value ?? "";
249
+ if (hidden.value !== next) hidden.value = next;
250
+ }, [value]);
251
+ const setHiddenRef = (el) => {
252
+ hiddenRef.current = el;
253
+ if (typeof ref === "function") ref(el);
254
+ else if (ref) ref.current = el;
255
+ };
256
+ const labelId = `${id}-label`;
257
+ const helperId = `${id}-helper`;
258
+ const errorId = `${id}-error`;
259
+ const formatHintId = `${id}-format-hint`;
260
+ const formatHintText = T(() => {
261
+ const labels = {
262
+ mm: "month",
263
+ dd: "day",
264
+ yyyy: "year"
265
+ };
266
+ return `Date format: ${segmentOrder.map((k) => labels[k]).join(", ")}.`;
267
+ }, [segmentOrder]);
268
+ const describedByIds = [
269
+ formatHintId,
270
+ !suppressMessages && helper ? helperId : null,
271
+ !suppressMessages && error ? errorId : null
272
+ ].filter(Boolean).join(" ");
273
+ const fireOnInput = (next) => {
274
+ const iso = segmentsToISO(next);
275
+ const hidden = hiddenRef.current;
276
+ if (hidden) hidden.value = iso;
277
+ const event = new Event("input", { bubbles: true });
278
+ Object.defineProperty(event, "target", {
279
+ value: hidden,
280
+ enumerable: true,
281
+ configurable: true
282
+ });
283
+ onInput(event);
284
+ };
285
+ const writeSegment = (key, val) => {
286
+ let next = {
287
+ ...segments,
288
+ [key]: val
289
+ };
290
+ if (next.dd && next.mm) {
291
+ const days = getDaysInMonth(next.mm, next.yyyy);
292
+ const ddNum = Number(next.dd);
293
+ if (Number.isFinite(ddNum) && ddNum > days) next = {
294
+ ...next,
295
+ dd: padSegment("dd", days)
296
+ };
297
+ }
298
+ setSegments(next);
299
+ fireOnInput(next);
300
+ };
301
+ const focusSegment = (key) => {
302
+ if (!key) return;
303
+ const el = segmentRefs[key].current;
304
+ if (!el) return;
305
+ el.focus();
306
+ const len = el.value.length;
307
+ try {
308
+ el.setSelectionRange(len, len);
309
+ } catch {}
310
+ };
311
+ const handleSegmentInput = (key, maxLen) => (e) => {
312
+ const target = e.target;
313
+ let sanitized = target.value.replace(/\D/g, "").slice(0, maxLen);
314
+ let shouldAdvance = false;
315
+ if (sanitized.length === 1 && Number(sanitized) > SEGMENT_MAX_AMBIGUOUS_FIRST_DIGIT[key]) {
316
+ sanitized = padSegment(key, Number(sanitized));
317
+ shouldAdvance = true;
318
+ }
319
+ if (sanitized.length === maxLen) {
320
+ const n = Number(sanitized);
321
+ const { max } = SEGMENT_RANGES[key];
322
+ if (Number.isFinite(n) && n > max) sanitized = padSegment(key, max);
323
+ shouldAdvance = true;
324
+ }
325
+ if (sanitized !== target.value) target.value = sanitized;
326
+ writeSegment(key, sanitized);
327
+ if (shouldAdvance) focusSegment(navMaps.next[key]);
328
+ };
329
+ const handleSegmentKeyDown = (key) => (e) => {
330
+ const target = e.target;
331
+ const caret = target.selectionStart ?? 0;
332
+ if (e.key === "ArrowUp" || e.key === "ArrowDown") {
333
+ e.preventDefault();
334
+ const direction = e.key === "ArrowUp" ? 1 : -1;
335
+ const nextVal = stepSegment(key, target.value, direction);
336
+ target.value = nextVal;
337
+ writeSegment(key, nextVal);
338
+ try {
339
+ target.select();
340
+ } catch {}
341
+ } else if (e.key === "Backspace" && target.value === "" && caret === 0) {
342
+ e.preventDefault();
343
+ focusSegment(navMaps.prev[key]);
344
+ } else if (e.key === "ArrowLeft" && caret === 0) {
345
+ e.preventDefault();
346
+ focusSegment(navMaps.prev[key]);
347
+ } else if (e.key === "ArrowRight" && caret === target.value.length) {
348
+ e.preventDefault();
349
+ focusSegment(navMaps.next[key]);
350
+ } else if (e.key === "/" || e.key === "-" || e.key === " ") if (target.value.length > 0) {
351
+ e.preventDefault();
352
+ focusSegment(navMaps.next[key]);
353
+ } else e.preventDefault();
354
+ };
355
+ const handleSegmentBlur = (key, padTo) => (e) => {
356
+ const v = e.target.value;
357
+ if (!v) return;
358
+ let normalized = v.padStart(padTo, "0");
359
+ const n = Number(normalized);
360
+ const { min, max } = SEGMENT_RANGES[key];
361
+ if (Number.isFinite(n)) {
362
+ if (n < min) normalized = padSegment(key, min);
363
+ else if (n > max) normalized = padSegment(key, max);
364
+ }
365
+ if (normalized !== v) writeSegment(key, normalized);
366
+ };
367
+ const handleSegmentFocus = (e) => {
368
+ const target = e.target;
369
+ try {
370
+ target.select();
371
+ } catch {}
372
+ };
373
+ const handlePaste = (e) => {
374
+ const text = e.clipboardData?.getData("text")?.trim() ?? "";
375
+ if (!text) return;
376
+ const iso = ISO_DATE_RE.exec(text);
377
+ const us = US_DATE_RE.exec(text);
378
+ let next = null;
379
+ if (iso) next = {
380
+ yyyy: iso[1],
381
+ mm: iso[2],
382
+ dd: iso[3]
383
+ };
384
+ else if (us) next = {
385
+ mm: us[1].padStart(2, "0"),
386
+ dd: us[2].padStart(2, "0"),
387
+ yyyy: us[3]
388
+ };
389
+ if (next) {
390
+ e.preventDefault();
391
+ setSegments(next);
392
+ fireOnInput(next);
393
+ focusSegment("yyyy");
394
+ }
395
+ };
396
+ const handleHiddenChange = (e) => {
397
+ const target = e.target;
398
+ setSegments(parseISO(target.value));
399
+ onInput(e);
400
+ const iconBtn = iconButtonRef.current;
401
+ if (iconBtn && document.activeElement === target) try {
402
+ iconBtn.focus();
403
+ } catch {}
404
+ };
405
+ const handleIconClick = (e) => {
406
+ if (disabled) {
407
+ e.preventDefault();
408
+ return;
409
+ }
410
+ const hidden = hiddenRef.current;
411
+ if (!hidden) return;
412
+ try {
413
+ hidden.click();
414
+ } catch {}
415
+ try {
416
+ if (typeof hidden.showPicker === "function") hidden.showPicker();
417
+ } catch {}
418
+ };
419
+ const hasValue = !!segmentsToISO(segments);
420
+ const isInvalid = !!error;
421
+ const groupLabelProps = label ? { "aria-labelledby": labelId } : ariaLabel ? { "aria-label": ariaLabel } : {};
422
+ const SEGMENT_META = {
423
+ mm: {
424
+ maxLen: 2,
425
+ placeholder: "MM",
426
+ ariaLabel: "Month"
427
+ },
428
+ dd: {
429
+ maxLen: 2,
430
+ placeholder: "DD",
431
+ ariaLabel: "Day"
432
+ },
433
+ yyyy: {
434
+ maxLen: 4,
435
+ placeholder: "YYYY",
436
+ ariaLabel: "Year"
437
+ }
438
+ };
439
+ const renderSegment = (key) => {
440
+ const { maxLen, placeholder, ariaLabel: segAriaLabel } = SEGMENT_META[key];
441
+ return /* @__PURE__ */ u("input", {
442
+ ref: (el) => {
443
+ segmentRefs[key].current = el;
444
+ },
445
+ id: `${id}-${key}`,
446
+ class: cn("IncodeSegmentedDateInputSegment", `IncodeSegmentedDateInputSegment--${key}`),
447
+ type: "text",
448
+ inputMode: "numeric",
449
+ autoComplete: getSegmentAutocomplete(key),
450
+ autoCorrect: "off",
451
+ spellcheck: false,
452
+ maxLength: maxLen,
453
+ size: maxLen,
454
+ placeholder,
455
+ "aria-label": segAriaLabel,
456
+ "aria-required": required ? "true" : void 0,
457
+ "aria-invalid": isInvalid ? "true" : void 0,
458
+ value: segments[key],
459
+ disabled,
460
+ "data-testid": `${id}-${key}`,
461
+ onInput: handleSegmentInput(key, maxLen),
462
+ onKeyDown: handleSegmentKeyDown(key),
463
+ onBlur: handleSegmentBlur(key, maxLen),
464
+ onFocus: handleSegmentFocus,
465
+ onPaste: handlePaste
466
+ });
467
+ };
468
+ return /* @__PURE__ */ u("div", {
469
+ class: cn("IncodeInputComposed IncodeSegmentedDateInput", className),
470
+ children: [
471
+ label && /* @__PURE__ */ u("label", {
472
+ id: labelId,
473
+ class: "IncodeInputComposedLabel",
474
+ htmlFor: `${id}-${segmentOrder[0]}`,
475
+ "data-testid": `${id}-label`,
476
+ children: [label, /* @__PURE__ */ u(FieldLabelHint, {
477
+ className: "IncodeInputComposedLabelHint",
478
+ hint: labelHint,
479
+ required: required === true,
480
+ testId: `${id}-label-hint`
481
+ })]
482
+ }),
483
+ /* @__PURE__ */ u("div", {
484
+ class: "IncodeInputComposedWrapper",
485
+ children: [
486
+ /* @__PURE__ */ u("div", {
487
+ role: "group",
488
+ class: cn("IncodeSegmentedDateInputField", isInvalid && "IncodeSegmentedDateInputField--invalid", disabled && "IncodeSegmentedDateInputField--disabled"),
489
+ "data-has-value": hasValue ? "true" : void 0,
490
+ "data-disabled": disabled ? "true" : void 0,
491
+ "aria-invalid": isInvalid ? "true" : void 0,
492
+ "aria-describedby": describedByIds || void 0,
493
+ ...groupLabelProps,
494
+ children: segmentOrder.map((key, i) => /* @__PURE__ */ u(k, { children: [renderSegment(key), i < segmentOrder.length - 1 && /* @__PURE__ */ u("span", {
495
+ class: "IncodeSegmentedDateInputSeparator",
496
+ "aria-hidden": "true",
497
+ children: "/"
498
+ })] }, key))
499
+ }),
500
+ /* @__PURE__ */ u("span", {
501
+ id: formatHintId,
502
+ class: "IncodeSrOnly",
503
+ "data-testid": `${id}-format-hint`,
504
+ children: formatHintText
505
+ }),
506
+ /* @__PURE__ */ u("input", {
507
+ ref: setHiddenRef,
508
+ id,
509
+ type: "date",
510
+ name,
511
+ defaultValue: value,
512
+ min,
513
+ max,
514
+ disabled,
515
+ required,
516
+ "aria-required": required ? "true" : void 0,
517
+ autoComplete: hiddenAutocomplete,
518
+ class: "IncodeSegmentedDateInputHiddenNative",
519
+ tabIndex: -1,
520
+ "aria-hidden": "true",
521
+ "data-has-value": hasValue ? "true" : void 0,
522
+ "data-testid": `${id}-native`,
523
+ onInput: handleHiddenChange,
524
+ onChange: handleHiddenChange,
525
+ ...restProps
526
+ }),
527
+ /* @__PURE__ */ u("button", {
528
+ ref: iconButtonRef,
529
+ type: "button",
530
+ class: "IncodeSegmentedDateInputIconButton",
531
+ onClick: handleIconClick,
532
+ onTouchEnd: handleIconClick,
533
+ disabled,
534
+ "aria-label": "Open date picker",
535
+ "data-testid": `${id}-picker-trigger`,
536
+ children: /* @__PURE__ */ u("span", {
537
+ class: "IncodeSegmentedDateInputIcon",
538
+ children: /* @__PURE__ */ u(CalendarIcon, {})
539
+ })
540
+ })
541
+ ]
542
+ }),
543
+ !suppressMessages && error && /* @__PURE__ */ u("div", {
544
+ class: "IncodeInputComposedErrorWrapper",
545
+ role: "alert",
546
+ "data-testid": `${id}-error-wrapper`,
547
+ children: [showErrorIcon && /* @__PURE__ */ u("div", {
548
+ class: "IncodeInputComposedIconWrapper",
549
+ children: /* @__PURE__ */ u(ErrorIcon, { size: 16 })
550
+ }), /* @__PURE__ */ u("p", {
551
+ id: errorId,
552
+ class: "IncodeInputComposedError",
553
+ children: error
554
+ })]
555
+ }),
556
+ !suppressMessages && helper && !error && /* @__PURE__ */ u("div", {
557
+ class: "IncodeInputComposedHelperWrapper",
558
+ "data-testid": `${id}-helper-wrapper`,
559
+ children: [showHelperIcon && /* @__PURE__ */ u("div", {
560
+ class: "IncodeInputComposedIconWrapper",
561
+ children: /* @__PURE__ */ u(SuccessIcon, { size: 16 })
562
+ }), /* @__PURE__ */ u("p", {
563
+ id: helperId,
564
+ class: "IncodeInputComposedHelper",
565
+ children: helper
566
+ })]
567
+ })
568
+ ]
569
+ });
570
+ });
571
+ SegmentedDateInput.displayName = "SegmentedDateInput";
572
+ //#endregion
573
+ //#region src/shared/textArea/textArea.tsx
574
+ var TextArea = D((props, ref) => {
575
+ const { class: className, rows = 4, ...restProps } = props;
576
+ return /* @__PURE__ */ u("textarea", {
577
+ ...restProps,
578
+ ref,
579
+ rows,
580
+ class: cn("IncodeTextArea", className)
581
+ });
582
+ });
583
+ //#endregion
584
+ //#region src/shared/textAreaComposed/textAreaComposed.tsx
585
+ var TextAreaComposed = D(({ id, label, labelHint, "aria-label": ariaLabel, error, showErrorIcon, helper, showHelperIcon, required, rows = 4, class: className, ...restProps }, ref) => {
586
+ const helperId = `${id}-helper`;
587
+ const errorId = `${id}-error`;
588
+ const describedByIds = [helper ? helperId : null, error ? errorId : null].filter(Boolean).join(" ");
589
+ return /* @__PURE__ */ u("div", {
590
+ class: cn("IncodeTextAreaComposed", className),
591
+ children: [
592
+ label && /* @__PURE__ */ u("label", {
593
+ class: "IncodeTextAreaComposedLabel",
594
+ htmlFor: id,
595
+ "data-testid": `${id}-label`,
596
+ children: [label, /* @__PURE__ */ u(FieldLabelHint, {
597
+ className: "IncodeTextAreaComposedLabelHint",
598
+ hint: labelHint,
599
+ required: required === true,
600
+ testId: `${id}-label-hint`
601
+ })]
602
+ }),
603
+ /* @__PURE__ */ u("div", {
604
+ class: "IncodeTextAreaComposedWrapper",
605
+ children: /* @__PURE__ */ u(TextArea, {
606
+ id,
607
+ rows,
608
+ ...restProps,
609
+ ref,
610
+ required,
611
+ ...!label && ariaLabel ? { "aria-label": ariaLabel } : {},
612
+ "aria-describedby": describedByIds || void 0,
613
+ "aria-required": required ? "true" : void 0,
614
+ "aria-invalid": error ? "true" : void 0
615
+ })
616
+ }),
617
+ error && /* @__PURE__ */ u("div", {
618
+ class: "IncodeTextAreaComposedErrorWrapper",
619
+ role: "alert",
620
+ "data-testid": `${id}-error-wrapper`,
621
+ children: [showErrorIcon && /* @__PURE__ */ u("div", {
622
+ class: "IncodeTextAreaComposedIconWrapper",
623
+ children: /* @__PURE__ */ u(ErrorIcon, { size: 17 })
624
+ }), /* @__PURE__ */ u("p", {
625
+ id: errorId,
626
+ class: "IncodeTextAreaComposedError",
627
+ children: error
628
+ })]
629
+ }),
630
+ helper && !error && /* @__PURE__ */ u("div", {
631
+ class: "IncodeTextAreaComposedHelperWrapper",
632
+ "data-testid": `${id}-helper-wrapper`,
633
+ children: [showHelperIcon && /* @__PURE__ */ u("div", {
634
+ class: "IncodeTextAreaComposedIconWrapper",
635
+ children: /* @__PURE__ */ u(SuccessIcon, { size: 17 })
636
+ }), /* @__PURE__ */ u("p", {
637
+ id: helperId,
638
+ class: "IncodeTextAreaComposedHelper",
639
+ children: helper
640
+ })]
641
+ })
642
+ ]
643
+ });
644
+ });
645
+ TextAreaComposed.displayName = "TextAreaComposed";
646
+ //#endregion
647
+ //#region src/shared/manualCapture/manualCapture.tsx
648
+ function captureFrameFromVideo(video) {
649
+ if (video.readyState < 2 || video.videoWidth === 0 || video.videoHeight === 0) return null;
650
+ const canvas = document.createElement("canvas");
651
+ canvas.width = video.videoWidth;
652
+ canvas.height = video.videoHeight;
653
+ const ctx = canvas.getContext("2d");
654
+ if (!ctx) return null;
655
+ ctx.drawImage(video, 0, 0);
656
+ return canvas.toDataURL("image/jpeg", .92).split(",")[1] ?? null;
657
+ }
658
+ var ManualCapture = ({ stream, onCapture, disabled }) => {
659
+ const videoRef = A(null);
660
+ useCoverMedia(videoRef, stream);
661
+ y(() => {
662
+ if (videoRef.current && stream) {
663
+ videoRef.current.srcObject = stream;
664
+ videoRef.current.play().catch(() => {});
665
+ }
666
+ }, [stream]);
667
+ const handleCapture = q(() => {
668
+ const video = videoRef.current;
669
+ if (!video || disabled) return;
670
+ const base64 = captureFrameFromVideo(video);
671
+ if (base64) onCapture(base64);
672
+ }, [onCapture, disabled]);
673
+ return /* @__PURE__ */ u("div", {
674
+ class: "IncodeManualCapture",
675
+ children: [/* @__PURE__ */ u("div", {
676
+ class: "IncodeManualCaptureVideoContainer",
677
+ children: /* @__PURE__ */ u("video", {
678
+ ref: videoRef,
679
+ autoplay: true,
680
+ playsInline: true,
681
+ muted: true,
682
+ class: "IncodeManualCaptureVideo",
683
+ "aria-label": "Camera stream for document capture"
684
+ })
685
+ }), /* @__PURE__ */ u("div", {
686
+ class: "IncodeManualCaptureButtonContainer",
687
+ children: /* @__PURE__ */ u(Button, {
688
+ variant: "primary",
689
+ size: "L",
690
+ onClick: handleCapture,
691
+ disabled,
692
+ class: "IncodeManualCaptureButton",
693
+ "aria-label": "Capture document",
694
+ children: "Capture"
695
+ })
696
+ })]
697
+ });
698
+ };
699
+ //#endregion
6
700
  export { BaseTutorial, BottomSheet, Button, CalendarIcon, CameraFrame, CameraIcon, CameraOverlay, CameraOverlayHeader, CameraView, CaptureButtonIcon, CaptureFooter, Checkbox, CheckmarkCompactIcon, CheckmarkIcon, ChevronDown, ChevronLeftIcon, ChevronRightIcon, CloseIcon, ConnectionError, DateInputComposed, DropdownComposed, EllipseIcon, ErrorContent, ErrorIcon, EyeIcon, EyeOffIcon, FileIcon, FormField, HelpIcon, Capture as IdCapture, Chooser as IdChooser, IdError, IdExpired, FlipAnimation as IdFlipAnimation, Tutorial as IdTutorial, IncodeComponent, Input, InputComposed, LandscapeBlocker, SvgLightningIcon as LightningIcon, LockIcon, Lottie, ManualCapture, Modal, OtpInput, Overlay, Page, PasswordInputComposed, Permissions, PhoneInputComposed, Processing, ProgressBar, RadioButtonComposed, RadioGroupComposed, SearchIcon, SegmentedDateInput, Capture$1 as SelfieCapture, Tutorial$1 as SelfieTutorial, Spacer, Spinner, SuccessIcon, TextArea, TextAreaComposed, Title, TypographyH1, TypographyH3, TypographyH4, TypographyH5, TypographyP, VerificationOptionCard, VerificationOptionCardList, VerificationResult, WarningIcon, countries, getCountryByCallingCode, getCountryByCode, setUiConfig, useManager, useScreenOrientation };