@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
@@ -1,11 +1,12 @@
1
- import { o as useTranslation } from "./uiConfig-CwGL3QjP.js";
2
- import { _ as y, c as A, f as d, h as q, v as u } from "./vendor-preact-C0jX1Cbq.js";
3
- import { h as useIsMobileDeviceWidth } from "./incodeComponent-B-lwJJCV.js";
4
- import { t as InputComposed } from "./inputComposed-B35soRFg.js";
5
- import { n as translateError } from "./formField-0k8wVfXl.js";
6
- import { t as BottomSheet } from "./bottomSheet-B4REej8W.js";
1
+ import { u as useTranslation } from "./devWarn-CXWsIkak.js";
2
+ import { b as y, h as d, u as A, v as q, x as u } from "./vendor-preact-CjnloSla.js";
3
+ import { t as PrizmaTextField } from "./TextField-MsdsbAbT.js";
4
+ import { p as useIsMobileDeviceWidth } from "./hooks-nmwpawA2.js";
5
+ import { t as FieldLabelHint } from "./fieldLabelHint-yMZjXK6p.js";
6
+ import { n as translateError } from "./errorParams-B68-Euu2.js";
7
+ import { t as BottomSheet } from "./bottomSheet-CzU1QNua.js";
7
8
  //#region src/shared/addressAutocomplete/addressAutocomplete.tsx
8
- var AddressAutocomplete = ({ label, value, error, errorParams, suggestions, readonly, required, labelHint, onChange, onSearch, onSelect, onBlur }) => {
9
+ var AddressAutocomplete = ({ label, value, error, errorParams, suggestions, readonly, disabled, required, labelHint, onChange, onSearch, onSelect, onBlur }) => {
9
10
  const { t } = useTranslation();
10
11
  const [showSuggestions, setShowSuggestions] = d(false);
11
12
  const [isModalOpen, setIsModalOpen] = d(false);
@@ -20,6 +21,7 @@ var AddressAutocomplete = ({ label, value, error, errorParams, suggestions, read
20
21
  const mobileTitleId = "ekyc-address-modal-title";
21
22
  const isMobile = useIsMobileDeviceWidth();
22
23
  const translatedLabel = t(label);
24
+ const errorText = translateError(t, error, errorParams);
23
25
  y(() => {
24
26
  function handleClickOutside(e) {
25
27
  if (containerRef.current && !containerRef.current.contains(e.target)) setShowSuggestions(false);
@@ -90,15 +92,29 @@ var AddressAutocomplete = ({ label, value, error, errorParams, suggestions, read
90
92
  className: "IncodeAddressAutocomplete",
91
93
  ref: containerRef,
92
94
  children: [
93
- /* @__PURE__ */ u(InputComposed, {
95
+ labelHint && /* @__PURE__ */ u("label", {
96
+ class: "IncodeInputComposedLabel",
97
+ htmlFor: "ekyc-street",
98
+ children: [translatedLabel, /* @__PURE__ */ u(FieldLabelHint, {
99
+ className: "IncodeInputComposedLabelHint",
100
+ hint: labelHint,
101
+ required,
102
+ testId: "ekyc-street-label-hint"
103
+ })]
104
+ }),
105
+ /* @__PURE__ */ u(PrizmaTextField, {
106
+ className: "IncodeInputComposed",
107
+ inputClassName: "IncodeInput",
108
+ clearable: false,
94
109
  id: "ekyc-street",
95
- label: translatedLabel,
96
- labelHint,
110
+ label: labelHint ? void 0 : translatedLabel,
97
111
  name: "street",
98
112
  value,
99
113
  readOnly: readonly,
114
+ disabled,
100
115
  required,
101
- error: translateError(t, error, errorParams),
116
+ error: !!errorText,
117
+ errorText,
102
118
  onInput: (e) => handleInput(e.target.value),
103
119
  onKeyDown: handleKeyDown,
104
120
  onBlur,
@@ -0,0 +1,245 @@
1
+ import { u as useTranslation } from "./devWarn-CXWsIkak.js";
2
+ import { b as y, g, h as d, i as D, u as A, v as q, x as u } from "./vendor-preact-CjnloSla.js";
3
+ import { b as PrizmaButton } from "./icons-DLZTxOV2.js";
4
+ import { _ as PrizmaLoadingSpinner, g as mergeAriaIds, h as cn, t as Spacer } from "./spacer-D5j2phXI.js";
5
+ import { n as useResendTimerAnnouncements, t as formatResendTimer } from "./resendTimer-DHgQUcAi.js";
6
+ //#region ../../node_modules/.pnpm/@incodetech+prizma-core-web@0.20.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@incodetech/prizma-core-web/dist/Otp.js
7
+ var IconFailCircle = () => u("svg", {
8
+ viewBox: "0 0 16 16",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ "aria-hidden": "true",
11
+ children: [u("path", {
12
+ className: "prizma-input-otp__err-circle",
13
+ fillRule: "evenodd",
14
+ clipRule: "evenodd",
15
+ d: "M8 1.66667C4.508 1.66667 1.66667 4.508 1.66667 8C1.66667 11.4927 4.508 14.3333 8 14.3333C11.492 14.3333 14.3333 11.4927 14.3333 8C14.3333 4.508 11.492 1.66667 8 1.66667Z"
16
+ }), u("path", {
17
+ className: "prizma-input-otp__err-x",
18
+ fillRule: "evenodd",
19
+ clipRule: "evenodd",
20
+ d: "M6.0931 6.0898 C6.2884 5.8946 6.605 5.8946 6.8002 6.0898 L8.002 7.2916 L9.2028 6.0908 C9.398 5.8955 9.7146 5.8955 9.9098 6.0908 C10.1051 6.2861 10.1051 6.6026 9.9098 6.7979 L8.7091 7.9986 L9.9138 9.2034 C10.109 9.3986 10.109 9.7152 9.9138 9.9104 C9.7185 10.1057 9.4019 10.1057 9.2067 9.9104 L8.002 8.7058 L6.8015 9.9062 C6.6063 10.1015 6.2897 10.1015 6.0944 9.9062 C5.8992 9.711 5.8992 9.3944 6.0944 9.1991 L7.2949 7.9986 L6.0931 6.797 C5.8979 6.6017 5.8979 6.2851 6.0931 6.0898 Z"
21
+ })]
22
+ });
23
+ var PrizmaOtp = D((props, ref) => {
24
+ const { errorText, disabled = false, readOnly = false, loading = false, error = false, length = 6, pattern = "[A-Za-z0-9]*", inputMode = "numeric", autoComplete = "one-time-code", onValueChange, onComplete, id, value: controlledValue, defaultValue = "", className, inputClassName, style, onChange, ...inputRest } = props;
25
+ const reactId = g();
26
+ const inputId = id ?? `otp-${reactId}`;
27
+ const messageId = `${inputId}-msg`;
28
+ const isControlled = controlledValue !== void 0;
29
+ const [internalValue, setInternalValue] = d(String(defaultValue ?? ""));
30
+ const value = isControlled ? controlledValue : internalValue;
31
+ const hasValue = value !== "" && value !== void 0;
32
+ const showError = error && !!errorText;
33
+ const handleChange = (e) => {
34
+ const next = e.target.value;
35
+ if (!isControlled) setInternalValue(next);
36
+ onChange?.(e);
37
+ onValueChange?.(next);
38
+ if (next.length === length) onComplete?.(next);
39
+ };
40
+ return u("div", {
41
+ className: [
42
+ "prizma-input-otp",
43
+ hasValue ? "prizma-input-otp--filled" : "",
44
+ error ? "prizma-input-otp--error" : "",
45
+ disabled ? "prizma-input-otp--disabled" : "",
46
+ readOnly ? "prizma-input-otp--readonly" : "",
47
+ loading ? "prizma-input-otp--loading" : "",
48
+ className ?? ""
49
+ ].filter(Boolean).join(" "),
50
+ style,
51
+ "aria-disabled": disabled ? "true" : void 0,
52
+ "aria-busy": loading ? "true" : void 0,
53
+ children: [u("div", {
54
+ className: "prizma-input-otp__field",
55
+ children: loading ? u(PrizmaLoadingSpinner, {}) : u("input", {
56
+ ...inputRest,
57
+ ref,
58
+ id: inputId,
59
+ type: "text",
60
+ inputMode,
61
+ autoComplete,
62
+ pattern,
63
+ maxLength: length,
64
+ className: ["prizma-input-otp__input", inputClassName].filter(Boolean).join(" "),
65
+ value,
66
+ disabled,
67
+ readOnly,
68
+ "aria-invalid": inputRest["aria-invalid"] ?? (error ? "true" : void 0),
69
+ "aria-describedby": mergeAriaIds(inputRest["aria-describedby"], showError ? messageId : void 0),
70
+ onChange: handleChange
71
+ })
72
+ }), showError && u("div", {
73
+ className: "prizma-input-otp__error",
74
+ id: messageId,
75
+ role: "alert",
76
+ children: [u("span", {
77
+ className: "prizma-input-otp__error-icon",
78
+ children: u(IconFailCircle, {})
79
+ }), u("span", {
80
+ className: "prizma-input-otp__error-text",
81
+ children: errorText
82
+ })]
83
+ })]
84
+ });
85
+ });
86
+ PrizmaOtp.displayName = "PrizmaOtp";
87
+ //#endregion
88
+ //#region src/shared/otpInput/otpInput.tsx
89
+ var normalizeOtp = (value, maxLength) => {
90
+ return value.replace(/[^a-zA-Z0-9]/g, "").toUpperCase().slice(0, maxLength);
91
+ };
92
+ var OtpInput = ({ value, otpLength, resendTimer, canResend, error, validationError, isValid = true, onSubmit, onChange, onValidate, onResend, onBack, backLinkText = "otp.changePhoneNumber", disabled = false, isLoading = false }) => {
93
+ const { t } = useTranslation();
94
+ const inputRef = A(null);
95
+ const prevCodeLengthRef = A(value.length);
96
+ const lastSubmittedCodeRef = A(null);
97
+ const liveRef = useResendTimerAnnouncements({
98
+ canResend,
99
+ resendTimer
100
+ });
101
+ y(() => {
102
+ if (error) {
103
+ lastSubmittedCodeRef.current = null;
104
+ setTimeout(() => {
105
+ inputRef.current?.focus();
106
+ }, 0);
107
+ }
108
+ }, [error]);
109
+ const submitCode = q((rawCode) => {
110
+ const normalized = normalizeOtp(rawCode, otpLength);
111
+ if (normalized.length !== otpLength || isLoading) return;
112
+ if (lastSubmittedCodeRef.current === normalized) return;
113
+ lastSubmittedCodeRef.current = normalized;
114
+ onSubmit(normalized);
115
+ }, [
116
+ isLoading,
117
+ onSubmit,
118
+ otpLength
119
+ ]);
120
+ y(() => {
121
+ const reachedMax = value.length === otpLength && prevCodeLengthRef.current < otpLength;
122
+ prevCodeLengthRef.current = value.length;
123
+ if (reachedMax) submitCode(value);
124
+ }, [
125
+ value,
126
+ otpLength,
127
+ submitCode
128
+ ]);
129
+ const handleChange = (e) => {
130
+ const target = e.target;
131
+ onChange(normalizeOtp(target.value, otpLength));
132
+ };
133
+ const handlePaste = (e) => {
134
+ e.preventDefault();
135
+ const normalized = normalizeOtp(e.clipboardData?.getData("text") || "", otpLength);
136
+ if (normalized) onChange(normalized);
137
+ };
138
+ const handleSubmitClick = () => {
139
+ if (value.length < otpLength) {
140
+ onValidate?.();
141
+ inputRef.current?.focus();
142
+ return;
143
+ }
144
+ submitCode(value);
145
+ };
146
+ const displayedError = error ?? validationError;
147
+ const renderActions = () => {
148
+ if (!canResend && resendTimer > 0) return /* @__PURE__ */ u("div", {
149
+ class: "IncodeOtpInputActions",
150
+ "data-testid": "otp-timer",
151
+ children: /* @__PURE__ */ u(PrizmaButton, {
152
+ size: "L",
153
+ className: "IncodeButton IncodeButtonLink IncodeButtonL",
154
+ variant: "tertiary-link",
155
+ disabled: true,
156
+ children: t("otp.resendCountdown", { time: formatResendTimer(resendTimer) })
157
+ })
158
+ });
159
+ const handleResend = () => {
160
+ lastSubmittedCodeRef.current = null;
161
+ onChange("");
162
+ onResend();
163
+ };
164
+ const handleBack = () => {
165
+ lastSubmittedCodeRef.current = null;
166
+ onChange("");
167
+ onBack();
168
+ };
169
+ return /* @__PURE__ */ u("div", {
170
+ class: "IncodeOtpInputActions",
171
+ children: /* @__PURE__ */ u("p", {
172
+ class: `IncodeOtpInputResendText ${disabled ? "IncodeOtpInputResendTextDisabled" : ""}`,
173
+ "data-testid": "otp-resend-section",
174
+ children: [
175
+ t("otp.didYouNotGetIt"),
176
+ /* @__PURE__ */ u(PrizmaButton, {
177
+ variant: "tertiary-link",
178
+ size: "L",
179
+ onClick: handleResend,
180
+ disabled: disabled || !canResend,
181
+ "data-testid": "otp-resend",
182
+ className: "IncodeButton IncodeButtonLink IncodeButtonInline",
183
+ children: t("otp.resendCode")
184
+ }),
185
+ ` ${t("otp.or")} `,
186
+ /* @__PURE__ */ u(PrizmaButton, {
187
+ variant: "tertiary-link",
188
+ size: "L",
189
+ onClick: handleBack,
190
+ disabled,
191
+ "data-testid": "otp-back",
192
+ className: "IncodeButton IncodeButtonLink IncodeButtonInline",
193
+ children: t(backLinkText)
194
+ })
195
+ ]
196
+ })
197
+ });
198
+ };
199
+ return /* @__PURE__ */ u("div", {
200
+ class: `IncodeOtpInput IncodeOtpInputComposed`,
201
+ children: [
202
+ /* @__PURE__ */ u("div", {
203
+ ref: liveRef,
204
+ class: "IncodeSrOnly",
205
+ "aria-live": "polite",
206
+ "aria-atomic": "true"
207
+ }),
208
+ /* @__PURE__ */ u(PrizmaOtp, {
209
+ className: "IncodeInputComposed IncodeOtpSingleInput",
210
+ inputClassName: "IncodeInput",
211
+ id: "otp-code",
212
+ inputMode: "text",
213
+ ref: inputRef,
214
+ length: otpLength,
215
+ value,
216
+ error: !!displayedError,
217
+ errorText: displayedError,
218
+ onInput: handleChange,
219
+ onBlur: onValidate,
220
+ onPaste: handlePaste,
221
+ disabled: disabled || isLoading,
222
+ required: true,
223
+ "aria-required": "true",
224
+ autoComplete: "one-time-code",
225
+ "data-testid": "otp-input-0",
226
+ "aria-label": t("otp.verificationCode")
227
+ }),
228
+ /* @__PURE__ */ u(Spacer, {}),
229
+ /* @__PURE__ */ u(PrizmaButton, {
230
+ variant: "primary",
231
+ size: "L",
232
+ className: cn("IncodeButton IncodeButtonPrimary IncodeButtonL", isLoading && "IncodeButtonLoading"),
233
+ onClick: handleSubmitClick,
234
+ disabled: disabled || isLoading || !isValid,
235
+ loading: isLoading,
236
+ "data-testid": "otp-submit",
237
+ children: t("common.continue")
238
+ }),
239
+ /* @__PURE__ */ u(Spacer, { size: 12 }),
240
+ renderActions()
241
+ ]
242
+ });
243
+ };
244
+ //#endregion
245
+ export { OtpInput as t };
@@ -1,20 +1,27 @@
1
- import { o as useTranslation, r as useUiConfig } from "./uiConfig-CwGL3QjP.js";
2
- import { S as k, _ as y, b as Q, c as A, f as d, g as x, i as D, v as u } from "./vendor-preact-C0jX1Cbq.js";
3
- import { d as cn, t as Spacer } from "./spacer-lcnhSC-5.js";
4
- import { d as CloseIcon, x as Button } from "./icons-C2LgNjXy.js";
5
- import { n as Modal, t as incode_logo_default } from "./incode-logo-B1bl2S0z.js";
1
+ import { o as useUiConfig, u as useTranslation } from "./devWarn-CXWsIkak.js";
2
+ import { C as Q, T as k, _ as h, a as M, h as d, i as D, u as A, x as u, y as x } from "./vendor-preact-CjnloSla.js";
3
+ import { t as DEFAULT_HELP_BUTTON_POSITION } from "./helpButtonConfig-BFragC_J.js";
4
+ import { b as PrizmaButton, d as CloseIcon } from "./icons-DLZTxOV2.js";
5
+ import { h as cn, t as Spacer } from "./spacer-D5j2phXI.js";
6
+ import { t as AutoFocusTitle } from "./autoFocusTitle-D_vDhPqZ.js";
7
+ import { n as IncodeLogo, r as Modal, t as usePageUiConfig } from "./pageUiConfig-mKn_YhhU.js";
6
8
  //#region src/shared/closeButton/closeButton.tsx
7
9
  /** The "X" button that cancels the current module. Purely presentational. */
8
10
  var CloseButton = D(({ onClick, ariaLabel, class: className, size = "S", iconSize = 24, color = "var(--icon-neutral-500)", "data-testid": dataTestId }, ref) => {
9
- return /* @__PURE__ */ u(Button, {
11
+ return /* @__PURE__ */ u(PrizmaButton, {
12
+ ...size === "L" || size === "inline" ? {
13
+ variant: "tertiary-link",
14
+ size: "L"
15
+ } : {
16
+ variant: "icon",
17
+ size
18
+ },
10
19
  ref,
11
- size,
12
- variant: "link",
13
20
  onClick,
14
21
  "aria-label": ariaLabel,
15
- class: cn("IncodeCloseButton", className),
22
+ className: cn("IncodeButton IncodeButtonLink IncodeButtonIconOnly IncodeCloseButton", size === "inline" ? "IncodeButtonInline" : `IncodeButton${size}`, className),
16
23
  "data-testid": dataTestId,
17
- icon: /* @__PURE__ */ u(CloseIcon, {
24
+ children: /* @__PURE__ */ u(CloseIcon, {
18
25
  width: iconSize,
19
26
  height: iconSize,
20
27
  fillColor: color
@@ -35,12 +42,16 @@ function QuitConfirmDialog({ open, onOpenChange, onConfirm, returnFocusRef }) {
35
42
  onOpenChange,
36
43
  returnFocusRef,
37
44
  "data-testid": "quit-confirm-dialog",
38
- children: /* @__PURE__ */ u(Modal.Content, { children: [/* @__PURE__ */ u(Modal.TitleSection, { children: /* @__PURE__ */ u(Modal.Title, { children: t("page.close.confirmQuit") }) }), /* @__PURE__ */ u(Modal.Actions, { children: [/* @__PURE__ */ u(Button, {
45
+ children: /* @__PURE__ */ u(Modal.Content, { children: [/* @__PURE__ */ u(Modal.Header, { title: t("page.close.confirmQuit") }), /* @__PURE__ */ u(Modal.Actions, { children: [/* @__PURE__ */ u(PrizmaButton, {
46
+ size: "L",
47
+ className: "IncodeButton IncodeButtonSecondary IncodeButtonL",
39
48
  variant: "secondary",
40
49
  onClick: () => onOpenChange(false),
41
50
  "data-testid": "quit-confirm-cancel",
42
51
  children: t("page.close.cancel")
43
- }), /* @__PURE__ */ u(Button, {
52
+ }), /* @__PURE__ */ u(PrizmaButton, {
53
+ size: "L",
54
+ className: "IncodeButton IncodeButtonPrimary IncodeButtonL",
44
55
  variant: "primary",
45
56
  onClick: onConfirm,
46
57
  "data-testid": "quit-confirm-confirm",
@@ -69,16 +80,18 @@ function CloseButtonWithConfirm({ onConfirm, ...buttonProps }) {
69
80
  })] });
70
81
  }
71
82
  //#endregion
72
- //#region src/shared/helpButton/helpButtonConfig.ts
73
- var DEFAULT_HELP_BUTTON_POSITION = "bottomRight";
74
- //#endregion
75
83
  //#region src/shared/uiConfig/resolveCornerControls.ts
76
84
  var lastWarnedCollision = null;
77
- /** Resolves help/close button corners together; on collision, help yields (keeps the host's explicit close position). */
78
- function resolveCornerControls(uiConfig) {
79
- const { helpButtonPosition, closeButtonPosition, showCloseButton } = uiConfig;
85
+ /**
86
+ * Resolves help/close button corners together; on collision, help yields
87
+ * (keeps the host's explicit close position). `closeEnabled` is whether the
88
+ * module allows the user to cancel (`allowUserToCancel`): without it there is
89
+ * no close button, so its position is ignored and nothing can collide.
90
+ */
91
+ function resolveCornerControls(uiConfig, closeEnabled = false) {
92
+ const { helpButtonPosition, closeButtonPosition } = uiConfig;
80
93
  const help = helpButtonPosition ?? "bottomRight";
81
- const close = showCloseButton ? closeButtonPosition ?? "topRight" : void 0;
94
+ const close = closeEnabled ? closeButtonPosition ?? "topRight" : void 0;
82
95
  if (close && close === help) {
83
96
  const collision = `${help}|${close}`;
84
97
  if (lastWarnedCollision !== collision) {
@@ -109,12 +122,15 @@ function useModuleCancelContext() {
109
122
  * Resolves the close button: where it sits and what it cancels. Shared by
110
123
  * `Page`'s header and the capture screens' floating overlay control.
111
124
  *
112
- * Undefined (hidden) unless `showCloseButton` is set AND a cancel action is
113
- * reachable (inside a registered module — see `moduleCancelContext`).
125
+ * Undefined (hidden) unless the module allows cancelling: the module root
126
+ * (`withInstanceOverrides`) publishes a cancel action only when its `config`
127
+ * sets `allowUserToCancel` — see `moduleCancelContext`. The corner comes from
128
+ * `uiConfig.closeButtonPosition`.
114
129
  */
115
130
  function useCloseButton() {
116
- const { close } = resolveCornerControls(useUiConfig());
131
+ const uiConfig = useUiConfig();
117
132
  const moduleCancel = useModuleCancelContext();
133
+ const { close } = resolveCornerControls(uiConfig, moduleCancel !== void 0);
118
134
  const { t } = useTranslation();
119
135
  if (!close || !moduleCancel) return;
120
136
  return {
@@ -124,35 +140,53 @@ function useCloseButton() {
124
140
  };
125
141
  }
126
142
  //#endregion
127
- //#region src/shared/page/pageUiConfig.ts
128
- function resolveFirst(values) {
129
- for (const value of values) if (value !== void 0) return value;
130
- }
131
- function parseLogoHeight(height) {
132
- if (!height) return void 0;
133
- if (/^\d+$/.test(height)) return Number(height);
134
- const px = height.match(/^(\d+)px$/);
135
- if (px) return Number(px[1]);
136
- }
137
- function resolvePageUiConfig(args) {
138
- const logoHeight = resolveFirst([args.logo?.height, args.uiConfig.logoHeight]);
143
+ //#region src/shared/page/logoQuality.ts
144
+ /** An SVG never blurs, so it may fill its box. Any other URL counts as raster. */
145
+ var isVectorLogo = (src) => /^data:image\/svg\+xml|\.svg([?#]|$)/i.test(src);
146
+ //#endregion
147
+ //#region src/shared/page/useLogoShape.ts
148
+ /** Narrower than 1.5:1 is squarish (mark, badge, stacked lockup). */
149
+ var SQUARISH_MAX_RATIO = 1.5;
150
+ /** Shape per logo URL, so later screens get the right box straight away. */
151
+ var squarishBySrc = /* @__PURE__ */ new Map();
152
+ /** Whether a logo is squarish, read from its natural size once it loads. */
153
+ function useLogoShape(src) {
154
+ const [, rerender] = h((n) => n + 1, 0);
155
+ const onLoad = (event) => {
156
+ const { naturalWidth, naturalHeight } = event.currentTarget;
157
+ if (!naturalWidth || !naturalHeight) return;
158
+ if (!squarishBySrc.has(src)) {
159
+ const isSquarish = naturalWidth / naturalHeight < SQUARISH_MAX_RATIO;
160
+ squarishBySrc.set(src, isSquarish);
161
+ }
162
+ if (squarishBySrc.get(src)) rerender(0);
163
+ };
139
164
  return {
140
- hideHeader: resolveFirst([args.hideHeader, args.uiConfig.hideHeader]) ?? false,
141
- hideFooterBranding: Boolean(args.hideFooterBranding || args.uiConfig.hideFooterBranding),
142
- logoSrc: resolveFirst([args.logo?.src, args.uiConfig.logoSrc]) ?? args.defaultLogoSrc,
143
- logoHeightPx: parseLogoHeight(logoHeight) ?? 80
165
+ isSquarish: squarishBySrc.get(src) === true,
166
+ onLoad
144
167
  };
145
168
  }
146
- function usePageUiConfig(args) {
147
- const uiConfig = useUiConfig();
148
- return resolvePageUiConfig({
149
- ...args,
150
- uiConfig
169
+ //#endregion
170
+ //#region src/shared/page/logo.tsx
171
+ /** Customer logo, sized by shape (see `logo.css`). */
172
+ var CustomLogo = ({ src, class: className }) => {
173
+ const { isSquarish, onLoad } = useLogoShape(src);
174
+ return /* @__PURE__ */ u("img", {
175
+ src,
176
+ class: cn("IncodePageLogo", "IncodePageLogoCustom", isSquarish && "IncodePageLogoSquarish", isVectorLogo(src) && "IncodePageLogoVector", className),
177
+ onLoad,
178
+ "aria-hidden": "true",
179
+ alt: ""
151
180
  });
152
- }
181
+ };
182
+ /** Header logo: the customer's if there is one, otherwise Incode's. */
183
+ var Logo = ({ src, class: className }) => src ? /* @__PURE__ */ u(CustomLogo, {
184
+ src,
185
+ class: className
186
+ }) : /* @__PURE__ */ u(IncodeLogo, { class: cn("IncodePageLogo", className) });
153
187
  //#endregion
154
188
  //#region src/shared/page/verifiedByIncode.tsx
155
- var VerifiedByIncodeLogo = () => {
189
+ var VerifiedByIncodeLogo = M(function VerifiedByIncodeLogo() {
156
190
  return /* @__PURE__ */ u("svg", {
157
191
  width: "121",
158
192
  height: "15",
@@ -164,7 +198,7 @@ var VerifiedByIncodeLogo = () => {
164
198
  /* @__PURE__ */ u("title", { children: "Verified by Incode" }),
165
199
  /* @__PURE__ */ u("path", {
166
200
  d: "M14.044 7.258c0-.978-.518-1.854-1.301-2.335a2.74 2.74 0 0 0-.754-2.57c-.71-.7-1.685-.934-2.602-.744A2.8 2.8 0 0 0 7.022.324c-.99 0-1.878.511-2.365 1.285a2.82 2.82 0 0 0-2.602.744c-.71.701-.946 1.665-.754 2.57A2.77 2.77 0 0 0 0 7.258c0 .979.517 1.854 1.3 2.336-.206.89.045 1.869.755 2.57s1.685.949 2.602.744a2.82 2.82 0 0 0 2.365 1.285c.99 0 1.862-.511 2.365-1.285a2.82 2.82 0 0 0 2.602-.744c.71-.701.96-1.665.754-2.57a2.75 2.75 0 0 0 1.3-2.336ZM5.558 9.55 4.124 8.134a.647.647 0 0 1 0-.934.666.666 0 0 1 .947 0l.975.949 2.942-2.905a.666.666 0 0 1 .946 0 .646.646 0 0 1 0 .934L6.504 9.55a.666.666 0 0 1-.946 0Z",
167
- fill: "#006AFF"
201
+ fill: "var(--icon-brand-500-static)"
168
202
  }),
169
203
  /* @__PURE__ */ u("g", {
170
204
  clipPath: "url(#clip0_3596_4926)",
@@ -172,7 +206,7 @@ var VerifiedByIncodeLogo = () => {
172
206
  fillRule: "evenodd",
173
207
  clipRule: "evenodd",
174
208
  d: "M99.562 4.776q1.784 0 2.694.991.904.99.903 2.845.001 1.854-.932 2.865-.94 1.014-2.651 1.013-1.77 0-2.673-.999l-.074-.085q-.824-.99-.823-2.794c0-2.545 1.194-3.836 3.555-3.836Zm16.678 0c1.153 0 2.006.37 2.549 1.113q.77 1.053.789 2.896v.262h-5.066q.089.947.592 1.44.524.52 1.511.52.652 0 1.243-.16a4.7 4.7 0 0 0 1.045-.411l.142-.078v1.615l-.057.025q-1.141.491-2.619.491-1.668 0-2.628-1.003-.956-1.005-.955-2.832 0-1.869.903-2.872.91-1.006 2.551-1.006Zm-5.022-2.817v8.715c0 .408-.172.755-.51 1.033q-.493.405-1.234.595-.73.187-1.508.187-1.577 0-2.601-.883-1.029-.893-1.027-3.08 0-1.754.874-2.75.882-1.001 2.595-1 .4 0 .92.1.438.087.801.244V1.959zm-18.72 2.83q1.186 0 2.256.434l.06.024V6.79l-.133-.055q-1.08-.449-1.966-.448-1.102.002-1.633.534-.534.53-.535 1.72.001 1.247.523 1.807.515.558 1.688.559.959 0 1.933-.46l.137-.064v1.547l-.057.025a5.55 5.55 0 0 1-2.258.463q-1.489 0-2.506-.807l-.1-.083-.077-.068c-.65-.602-.973-1.54-.973-2.806q-.001-2.03 1.033-2.95 1.03-.914 2.608-.914Zm-13.714.2.015 7.287h-1.72V4.99zm5.455-.2q1.545 0 2.297.65.754.658.753 2.02v4.817h-1.704V7.66c0-.942-.527-1.4-1.62-1.4q-.686 0-1.319.19l-.157.052v5.775h-1.705v-6.71l.052-.026q.66-.333 1.601-.542l.208-.044a8 8 0 0 1 1.594-.164ZM99.56 6.217c-.672 0-1.145.198-1.428.593q-.436.606-.436 1.803 0 1.195.45 1.816c.293.404.761.607 1.414.607 1.268 0 1.894-.792 1.894-2.423q0-1.223-.456-1.814-.444-.581-1.437-.582Zm8.462.028c-1.308 0-1.952.756-1.952 2.31q.001 1.17.446 1.818c.287.422.795.635 1.535.635q.65 0 1.086-.15c.246-.086.369-.186.387-.295l.003-.03V6.617l-.108-.055a3.312 3.312 0 0 0-1.397-.318Zm8.173-.056q-.729 0-1.131.372-.356.328-.498 1.08l-.019.109h3.285l-.017-.112q-.12-.714-.462-1.058-.387-.39-1.158-.391ZM78.842 2.456v1.54h-1.806v-1.54z",
175
- fill: "#006AFF"
209
+ fill: "var(--icon-brand-500-static)"
176
210
  })
177
211
  }),
178
212
  /* @__PURE__ */ u("path", {
@@ -222,24 +256,21 @@ var VerifiedByIncodeLogo = () => {
222
256
  }) })
223
257
  ]
224
258
  });
225
- };
259
+ });
226
260
  //#endregion
227
261
  //#region src/shared/page/page.tsx
228
- var Page = ({ title, titleId, subtitle, titleTopSlot, className, logo, children, hideHeader, hideFooterBranding, footerBrandingSlot, "data-testid": dataTestId, "data-permission-status": dataPermissionStatus }) => {
229
- const titleRef = A(null);
262
+ var Page = ({ title, titleId, subtitle, titleTopSlot, className, logo, children, hideHeader, hideFooterBranding, footerBrandingSlot, theme, "data-testid": dataTestId, "data-permission-status": dataPermissionStatus }) => {
230
263
  const closeButton = useCloseButton();
231
- y(() => {
232
- titleRef.current?.focus();
233
- }, []);
234
264
  const uiConfig = usePageUiConfig({
235
265
  hideHeader,
236
266
  hideFooterBranding,
237
267
  logo,
238
- defaultLogoSrc: incode_logo_default
268
+ theme
239
269
  });
240
270
  const shouldShowHeader = title || subtitle || titleTopSlot;
241
271
  return /* @__PURE__ */ u("div", {
242
272
  class: `IncodePageContainer ${className ?? ""}`,
273
+ "data-incode-theme": theme,
243
274
  "data-testid": dataTestId,
244
275
  "data-permission-status": dataPermissionStatus,
245
276
  children: /* @__PURE__ */ u("main", {
@@ -247,13 +278,7 @@ var Page = ({ title, titleId, subtitle, titleTopSlot, className, logo, children,
247
278
  children: [
248
279
  !uiConfig.hideHeader && /* @__PURE__ */ u("header", {
249
280
  class: "IncodePageHeader",
250
- children: [/* @__PURE__ */ u("img", {
251
- src: uiConfig.logoSrc,
252
- height: uiConfig.logoHeightPx,
253
- class: "IncodePageLogo",
254
- "aria-hidden": "true",
255
- alt: ""
256
- }), closeButton ? /* @__PURE__ */ u(CloseButtonWithConfirm, {
281
+ children: [/* @__PURE__ */ u(Logo, { src: uiConfig.logoSrc }), closeButton ? /* @__PURE__ */ u(CloseButtonWithConfirm, {
257
282
  onConfirm: closeButton.onQuit,
258
283
  ariaLabel: closeButton.ariaLabel,
259
284
  "data-testid": "page-close-button",
@@ -262,23 +287,21 @@ var Page = ({ title, titleId, subtitle, titleTopSlot, className, logo, children,
262
287
  }),
263
288
  shouldShowHeader ? /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(Spacer, { size: uiConfig.hideHeader ? 40 : 24 }), /* @__PURE__ */ u("div", {
264
289
  class: "IncodePageTitleContainer",
265
- children: [
266
- titleTopSlot ? /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u("div", {
267
- class: "IncodePageTitleTopSlot",
268
- children: titleTopSlot
269
- }), /* @__PURE__ */ u(Spacer, { size: 12 })] }) : null,
270
- title ? /* @__PURE__ */ u("h2", {
271
- ref: titleRef,
272
- id: titleId,
273
- class: "IncodePageTitle",
274
- tabIndex: -1,
275
- children: title
276
- }) : null,
277
- subtitle ? /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(Spacer, { size: 12 }), /* @__PURE__ */ u("p", {
278
- class: "IncodePageSubtitle",
279
- children: subtitle
280
- })] }) : null
281
- ]
290
+ children: [titleTopSlot ? /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u("div", {
291
+ class: "IncodePageTitleTopSlot",
292
+ children: titleTopSlot
293
+ }), /* @__PURE__ */ u(Spacer, { size: 12 })] }) : null, title ? /* @__PURE__ */ u(AutoFocusTitle, {
294
+ id: titleId,
295
+ className: "IncodePageTitle",
296
+ tabIndex: -1,
297
+ showSubtitle: Boolean(subtitle),
298
+ subtitle,
299
+ subtitleProps: { className: "IncodePageSubtitle" },
300
+ children: title
301
+ }) : subtitle ? /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(Spacer, { size: 12 }), /* @__PURE__ */ u("p", {
302
+ class: "IncodePageSubtitle",
303
+ children: subtitle
304
+ })] }) : null]
282
305
  })] }) : null,
283
306
  /* @__PURE__ */ u("div", {
284
307
  class: "IncodePageContent",
@@ -296,4 +319,4 @@ var Page = ({ title, titleId, subtitle, titleTopSlot, className, logo, children,
296
319
  });
297
320
  };
298
321
  //#endregion
299
- export { ModuleCancelProvider as a, CloseButtonWithConfirm as c, useCloseButton as i, VerifiedByIncodeLogo as n, resolveCornerControls as o, usePageUiConfig as r, DEFAULT_HELP_BUTTON_POSITION as s, Page as t };
322
+ export { ModuleCancelProvider as a, CloseButtonWithConfirm as c, useCloseButton as i, VerifiedByIncodeLogo as n, useModuleCancelContext as o, Logo as r, resolveCornerControls as s, Page as t };