@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,430 +0,0 @@
1
- import { r as __toESM } from "./rolldown-runtime--E5BIlTp.js";
2
- //#region ../../node_modules/.pnpm/i18next-http-backend@3.0.2/node_modules/i18next-http-backend/esm/utils.js
3
- function _typeof$2(o) {
4
- "@babel/helpers - typeof";
5
- return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
6
- return typeof o;
7
- } : function(o) {
8
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
9
- }, _typeof$2(o);
10
- }
11
- var arr = [];
12
- arr.forEach;
13
- arr.slice;
14
- function hasXMLHttpRequest() {
15
- return typeof XMLHttpRequest === "function" || (typeof XMLHttpRequest === "undefined" ? "undefined" : _typeof$2(XMLHttpRequest)) === "object";
16
- }
17
- function isPromise(maybePromise) {
18
- return !!maybePromise && typeof maybePromise.then === "function";
19
- }
20
- function makePromise(maybePromise) {
21
- if (isPromise(maybePromise)) return maybePromise;
22
- return Promise.resolve(maybePromise);
23
- }
24
- //#endregion
25
- //#region ../../node_modules/.pnpm/i18next-http-backend@3.0.2/node_modules/i18next-http-backend/esm/request.js
26
- function ownKeys$1(e, r) {
27
- var t = Object.keys(e);
28
- if (Object.getOwnPropertySymbols) {
29
- var o = Object.getOwnPropertySymbols(e);
30
- r && (o = o.filter(function(r) {
31
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
32
- })), t.push.apply(t, o);
33
- }
34
- return t;
35
- }
36
- function _objectSpread$1(e) {
37
- for (var r = 1; r < arguments.length; r++) {
38
- var t = null != arguments[r] ? arguments[r] : {};
39
- r % 2 ? ownKeys$1(Object(t), !0).forEach(function(r) {
40
- _defineProperty$1(e, r, t[r]);
41
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function(r) {
42
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
43
- });
44
- }
45
- return e;
46
- }
47
- function _defineProperty$1(e, r, t) {
48
- return (r = _toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, {
49
- value: t,
50
- enumerable: !0,
51
- configurable: !0,
52
- writable: !0
53
- }) : e[r] = t, e;
54
- }
55
- function _toPropertyKey$1(t) {
56
- var i = _toPrimitive$1(t, "string");
57
- return "symbol" == _typeof$1(i) ? i : i + "";
58
- }
59
- function _toPrimitive$1(t, r) {
60
- if ("object" != _typeof$1(t) || !t) return t;
61
- var e = t[Symbol.toPrimitive];
62
- if (void 0 !== e) {
63
- var i = e.call(t, r || "default");
64
- if ("object" != _typeof$1(i)) return i;
65
- throw new TypeError("@@toPrimitive must return a primitive value.");
66
- }
67
- return ("string" === r ? String : Number)(t);
68
- }
69
- function _typeof$1(o) {
70
- "@babel/helpers - typeof";
71
- return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
72
- return typeof o;
73
- } : function(o) {
74
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
75
- }, _typeof$1(o);
76
- }
77
- var fetchApi = typeof fetch === "function" ? fetch : void 0;
78
- if (typeof global !== "undefined" && global.fetch) fetchApi = global.fetch;
79
- else if (typeof window !== "undefined" && window.fetch) fetchApi = window.fetch;
80
- var XmlHttpRequestApi;
81
- if (hasXMLHttpRequest()) {
82
- if (typeof global !== "undefined" && global.XMLHttpRequest) XmlHttpRequestApi = global.XMLHttpRequest;
83
- else if (typeof window !== "undefined" && window.XMLHttpRequest) XmlHttpRequestApi = window.XMLHttpRequest;
84
- }
85
- var ActiveXObjectApi;
86
- if (typeof ActiveXObject === "function") {
87
- if (typeof global !== "undefined" && global.ActiveXObject) ActiveXObjectApi = global.ActiveXObject;
88
- else if (typeof window !== "undefined" && window.ActiveXObject) ActiveXObjectApi = window.ActiveXObject;
89
- }
90
- if (typeof fetchApi !== "function") fetchApi = void 0;
91
- if (!fetchApi && !XmlHttpRequestApi && !ActiveXObjectApi) try {
92
- import("./browser-ponyfill-DT11p-Ob.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1)).then(function(mod) {
93
- fetchApi = mod.default;
94
- }).catch(function() {});
95
- } catch (e) {}
96
- var addQueryString = function addQueryString(url, params) {
97
- if (params && _typeof$1(params) === "object") {
98
- var queryString = "";
99
- for (var paramName in params) queryString += "&" + encodeURIComponent(paramName) + "=" + encodeURIComponent(params[paramName]);
100
- if (!queryString) return url;
101
- url = url + (url.indexOf("?") !== -1 ? "&" : "?") + queryString.slice(1);
102
- }
103
- return url;
104
- };
105
- var fetchIt = function fetchIt(url, fetchOptions, callback, altFetch) {
106
- var resolver = function resolver(response) {
107
- if (!response.ok) return callback(response.statusText || "Error", { status: response.status });
108
- response.text().then(function(data) {
109
- callback(null, {
110
- status: response.status,
111
- data
112
- });
113
- }).catch(callback);
114
- };
115
- if (altFetch) {
116
- var altResponse = altFetch(url, fetchOptions);
117
- if (altResponse instanceof Promise) {
118
- altResponse.then(resolver).catch(callback);
119
- return;
120
- }
121
- }
122
- if (typeof fetch === "function") fetch(url, fetchOptions).then(resolver).catch(callback);
123
- else fetchApi(url, fetchOptions).then(resolver).catch(callback);
124
- };
125
- var omitFetchOptions = false;
126
- var requestWithFetch = function requestWithFetch(options, url, payload, callback) {
127
- if (options.queryStringParams) url = addQueryString(url, options.queryStringParams);
128
- var headers = _objectSpread$1({}, typeof options.customHeaders === "function" ? options.customHeaders() : options.customHeaders);
129
- if (typeof window === "undefined" && typeof global !== "undefined" && typeof global.process !== "undefined" && global.process.versions && global.process.versions.node) headers["User-Agent"] = "i18next-http-backend (node/".concat(global.process.version, "; ").concat(global.process.platform, " ").concat(global.process.arch, ")");
130
- if (payload) headers["Content-Type"] = "application/json";
131
- var reqOptions = typeof options.requestOptions === "function" ? options.requestOptions(payload) : options.requestOptions;
132
- var fetchOptions = _objectSpread$1({
133
- method: payload ? "POST" : "GET",
134
- body: payload ? options.stringify(payload) : void 0,
135
- headers
136
- }, omitFetchOptions ? {} : reqOptions);
137
- var altFetch = typeof options.alternateFetch === "function" && options.alternateFetch.length >= 1 ? options.alternateFetch : void 0;
138
- try {
139
- fetchIt(url, fetchOptions, callback, altFetch);
140
- } catch (e) {
141
- if (!reqOptions || Object.keys(reqOptions).length === 0 || !e.message || e.message.indexOf("not implemented") < 0) return callback(e);
142
- try {
143
- Object.keys(reqOptions).forEach(function(opt) {
144
- delete fetchOptions[opt];
145
- });
146
- fetchIt(url, fetchOptions, callback, altFetch);
147
- omitFetchOptions = true;
148
- } catch (err) {
149
- callback(err);
150
- }
151
- }
152
- };
153
- var requestWithXmlHttpRequest = function requestWithXmlHttpRequest(options, url, payload, callback) {
154
- if (payload && _typeof$1(payload) === "object") payload = addQueryString("", payload).slice(1);
155
- if (options.queryStringParams) url = addQueryString(url, options.queryStringParams);
156
- try {
157
- var x = XmlHttpRequestApi ? new XmlHttpRequestApi() : new ActiveXObjectApi("MSXML2.XMLHTTP.3.0");
158
- x.open(payload ? "POST" : "GET", url, 1);
159
- if (!options.crossDomain) x.setRequestHeader("X-Requested-With", "XMLHttpRequest");
160
- x.withCredentials = !!options.withCredentials;
161
- if (payload) x.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
162
- if (x.overrideMimeType) x.overrideMimeType("application/json");
163
- var h = options.customHeaders;
164
- h = typeof h === "function" ? h() : h;
165
- if (h) for (var i in h) x.setRequestHeader(i, h[i]);
166
- x.onreadystatechange = function() {
167
- x.readyState > 3 && callback(x.status >= 400 ? x.statusText : null, {
168
- status: x.status,
169
- data: x.responseText
170
- });
171
- };
172
- x.send(payload);
173
- } catch (e) {
174
- console && console.log(e);
175
- }
176
- };
177
- var request = function request(options, url, payload, callback) {
178
- if (typeof payload === "function") {
179
- callback = payload;
180
- payload = void 0;
181
- }
182
- callback = callback || function() {};
183
- if (fetchApi && url.indexOf("file:") !== 0) return requestWithFetch(options, url, payload, callback);
184
- if (hasXMLHttpRequest() || typeof ActiveXObject === "function") return requestWithXmlHttpRequest(options, url, payload, callback);
185
- callback(/* @__PURE__ */ new Error("No fetch and no xhr implementation found!"));
186
- };
187
- //#endregion
188
- //#region ../../node_modules/.pnpm/i18next-http-backend@3.0.2/node_modules/i18next-http-backend/esm/index.js
189
- function _typeof(o) {
190
- "@babel/helpers - typeof";
191
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
192
- return typeof o;
193
- } : function(o) {
194
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
195
- }, _typeof(o);
196
- }
197
- function ownKeys(e, r) {
198
- var t = Object.keys(e);
199
- if (Object.getOwnPropertySymbols) {
200
- var o = Object.getOwnPropertySymbols(e);
201
- r && (o = o.filter(function(r) {
202
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
203
- })), t.push.apply(t, o);
204
- }
205
- return t;
206
- }
207
- function _objectSpread(e) {
208
- for (var r = 1; r < arguments.length; r++) {
209
- var t = null != arguments[r] ? arguments[r] : {};
210
- r % 2 ? ownKeys(Object(t), !0).forEach(function(r) {
211
- _defineProperty(e, r, t[r]);
212
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
213
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
214
- });
215
- }
216
- return e;
217
- }
218
- function _classCallCheck(a, n) {
219
- if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
220
- }
221
- function _defineProperties(e, r) {
222
- for (var t = 0; t < r.length; t++) {
223
- var o = r[t];
224
- o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
225
- }
226
- }
227
- function _createClass(e, r, t) {
228
- return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
229
- }
230
- function _defineProperty(e, r, t) {
231
- return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
232
- value: t,
233
- enumerable: !0,
234
- configurable: !0,
235
- writable: !0
236
- }) : e[r] = t, e;
237
- }
238
- function _toPropertyKey(t) {
239
- var i = _toPrimitive(t, "string");
240
- return "symbol" == _typeof(i) ? i : i + "";
241
- }
242
- function _toPrimitive(t, r) {
243
- if ("object" != _typeof(t) || !t) return t;
244
- var e = t[Symbol.toPrimitive];
245
- if (void 0 !== e) {
246
- var i = e.call(t, r || "default");
247
- if ("object" != _typeof(i)) return i;
248
- throw new TypeError("@@toPrimitive must return a primitive value.");
249
- }
250
- return ("string" === r ? String : Number)(t);
251
- }
252
- var getDefaults = function getDefaults() {
253
- return {
254
- loadPath: "/locales/{{lng}}/{{ns}}.json",
255
- addPath: "/locales/add/{{lng}}/{{ns}}",
256
- parse: function parse(data) {
257
- return JSON.parse(data);
258
- },
259
- stringify: JSON.stringify,
260
- parsePayload: function parsePayload(namespace, key, fallbackValue) {
261
- return _defineProperty({}, key, fallbackValue || "");
262
- },
263
- parseLoadPayload: function parseLoadPayload(languages, namespaces) {},
264
- request,
265
- reloadInterval: typeof window !== "undefined" ? false : 3600 * 1e3,
266
- customHeaders: {},
267
- queryStringParams: {},
268
- crossDomain: false,
269
- withCredentials: false,
270
- overrideMimeType: false,
271
- requestOptions: {
272
- mode: "cors",
273
- credentials: "same-origin",
274
- cache: "default"
275
- }
276
- };
277
- };
278
- var Backend = function() {
279
- function Backend(services) {
280
- var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
281
- var allOptions = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
282
- _classCallCheck(this, Backend);
283
- this.services = services;
284
- this.options = options;
285
- this.allOptions = allOptions;
286
- this.type = "backend";
287
- this.init(services, options, allOptions);
288
- }
289
- return _createClass(Backend, [
290
- {
291
- key: "init",
292
- value: function init(services) {
293
- var _this = this;
294
- var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
295
- var allOptions = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
296
- this.services = services;
297
- this.options = _objectSpread(_objectSpread(_objectSpread({}, getDefaults()), this.options || {}), options);
298
- this.allOptions = allOptions;
299
- if (this.services && this.options.reloadInterval) {
300
- var timer = setInterval(function() {
301
- return _this.reload();
302
- }, this.options.reloadInterval);
303
- if (_typeof(timer) === "object" && typeof timer.unref === "function") timer.unref();
304
- }
305
- }
306
- },
307
- {
308
- key: "readMulti",
309
- value: function readMulti(languages, namespaces, callback) {
310
- this._readAny(languages, languages, namespaces, namespaces, callback);
311
- }
312
- },
313
- {
314
- key: "read",
315
- value: function read(language, namespace, callback) {
316
- this._readAny([language], language, [namespace], namespace, callback);
317
- }
318
- },
319
- {
320
- key: "_readAny",
321
- value: function _readAny(languages, loadUrlLanguages, namespaces, loadUrlNamespaces, callback) {
322
- var _this2 = this;
323
- var loadPath = this.options.loadPath;
324
- if (typeof this.options.loadPath === "function") loadPath = this.options.loadPath(languages, namespaces);
325
- loadPath = makePromise(loadPath);
326
- loadPath.then(function(resolvedLoadPath) {
327
- if (!resolvedLoadPath) return callback(null, {});
328
- var url = _this2.services.interpolator.interpolate(resolvedLoadPath, {
329
- lng: languages.join("+"),
330
- ns: namespaces.join("+")
331
- });
332
- _this2.loadUrl(url, callback, loadUrlLanguages, loadUrlNamespaces);
333
- });
334
- }
335
- },
336
- {
337
- key: "loadUrl",
338
- value: function loadUrl(url, callback, languages, namespaces) {
339
- var _this3 = this;
340
- var lng = typeof languages === "string" ? [languages] : languages;
341
- var ns = typeof namespaces === "string" ? [namespaces] : namespaces;
342
- var payload = this.options.parseLoadPayload(lng, ns);
343
- this.options.request(this.options, url, payload, function(err, res) {
344
- if (res && (res.status >= 500 && res.status < 600 || !res.status)) return callback("failed loading " + url + "; status code: " + res.status, true);
345
- if (res && res.status >= 400 && res.status < 500) return callback("failed loading " + url + "; status code: " + res.status, false);
346
- if (!res && err && err.message) {
347
- var errorMessage = err.message.toLowerCase();
348
- if ([
349
- "failed",
350
- "fetch",
351
- "network",
352
- "load"
353
- ].find(function(term) {
354
- return errorMessage.indexOf(term) > -1;
355
- })) return callback("failed loading " + url + ": " + err.message, true);
356
- }
357
- if (err) return callback(err, false);
358
- var ret, parseErr;
359
- try {
360
- if (typeof res.data === "string") ret = _this3.options.parse(res.data, languages, namespaces);
361
- else ret = res.data;
362
- } catch (e) {
363
- parseErr = "failed parsing " + url + " to json";
364
- }
365
- if (parseErr) return callback(parseErr, false);
366
- callback(null, ret);
367
- });
368
- }
369
- },
370
- {
371
- key: "create",
372
- value: function create(languages, namespace, key, fallbackValue, callback) {
373
- var _this4 = this;
374
- if (!this.options.addPath) return;
375
- if (typeof languages === "string") languages = [languages];
376
- var payload = this.options.parsePayload(namespace, key, fallbackValue);
377
- var finished = 0;
378
- var dataArray = [];
379
- var resArray = [];
380
- languages.forEach(function(lng) {
381
- var addPath = _this4.options.addPath;
382
- if (typeof _this4.options.addPath === "function") addPath = _this4.options.addPath(lng, namespace);
383
- var url = _this4.services.interpolator.interpolate(addPath, {
384
- lng,
385
- ns: namespace
386
- });
387
- _this4.options.request(_this4.options, url, payload, function(data, res) {
388
- finished += 1;
389
- dataArray.push(data);
390
- resArray.push(res);
391
- if (finished === languages.length) {
392
- if (typeof callback === "function") callback(dataArray, resArray);
393
- }
394
- });
395
- });
396
- }
397
- },
398
- {
399
- key: "reload",
400
- value: function reload() {
401
- var _this5 = this;
402
- var _this$services = this.services, backendConnector = _this$services.backendConnector, languageUtils = _this$services.languageUtils, logger = _this$services.logger;
403
- var currentLanguage = backendConnector.language;
404
- if (currentLanguage && currentLanguage.toLowerCase() === "cimode") return;
405
- var toLoad = [];
406
- var append = function append(lng) {
407
- languageUtils.toResolveHierarchy(lng).forEach(function(l) {
408
- if (toLoad.indexOf(l) < 0) toLoad.push(l);
409
- });
410
- };
411
- append(currentLanguage);
412
- if (this.allOptions.preload) this.allOptions.preload.forEach(function(l) {
413
- return append(l);
414
- });
415
- toLoad.forEach(function(lng) {
416
- _this5.allOptions.ns.forEach(function(ns) {
417
- backendConnector.read(lng, ns, "read", null, null, function(err, data) {
418
- if (err) logger.warn("loading namespace ".concat(ns, " for language ").concat(lng, " failed"), err);
419
- if (!err && data) logger.log("loaded namespace ".concat(ns, " for language ").concat(lng), data);
420
- backendConnector.loaded("".concat(lng, "|").concat(ns), err, data);
421
- });
422
- });
423
- });
424
- }
425
- }
426
- ]);
427
- }();
428
- Backend.type = "backend";
429
- //#endregion
430
- export { Backend as default };
@@ -1,80 +0,0 @@
1
- import { o as useTranslation } from "./uiConfig-CwGL3QjP.js";
2
- import { _ as y, c as A, v as u } from "./vendor-preact-C0jX1Cbq.js";
3
- import { t as Spacer } from "./spacer-lcnhSC-5.js";
4
- import { t as Title } from "./typography-8iwtPQbj.js";
5
- import { x as Button } from "./icons-C2LgNjXy.js";
6
- import { t as Page } from "./page-DINsqGIw.js";
7
- //#region src/shared/icons/redStrikeIcon.tsx
8
- var RedStrikeIcon = ({ className, ...rest }) => /* @__PURE__ */ u("svg", {
9
- class: className,
10
- width: "33",
11
- height: "32",
12
- viewBox: "0 0 33 32",
13
- fill: "none",
14
- xmlns: "http://www.w3.org/2000/svg",
15
- "aria-hidden": "true",
16
- ...rest,
17
- children: /* @__PURE__ */ u("path", {
18
- d: "M16.5 0c8.822 0 16 7.176 16 16 0 8.822-7.178 16-16 16S.5 24.822.5 16c0-8.824 7.178-16 16-16Zm-2.845 11.37a1.262 1.262 0 1 0-1.785 1.785l3.035 3.037-3.033 3.034a1.264 1.264 0 0 0 1.787 1.785l3.033-3.033 3.041 3.042a1.265 1.265 0 0 0 1.787 0 1.264 1.264 0 0 0 0-1.787l-3.043-3.04 3.034-3.036a1.262 1.262 0 1 0-1.785-1.785l-3.036 3.033z",
19
- fill: "#E71111"
20
- })
21
- });
22
- //#endregion
23
- //#region src/shared/expiredId/expiredId.tsx
24
- /**
25
- * Shown when the backend reports `isDocumentExpired: true`. Exactly one of
26
- * `onRetry` / `onContinue` should be provided; if both are passed, retry
27
- * takes precedence.
28
- *
29
- * Visual contract mirrors the SDK 1 UXv2 Expired ID screen (red strike icon,
30
- * centered title + subtitle, full-width primary button anchored near the
31
- * bottom). The optional attempts counter (added by core PR #439 / SDK 1
32
- * `IdError` parity) renders only when `attemptsRemaining` is supplied.
33
- */
34
- var ExpiredId = ({ onRetry, onContinue, attemptsRemaining, isBackSide }) => {
35
- const { t } = useTranslation();
36
- const titleRef = A(null);
37
- y(() => {
38
- titleRef.current?.focus();
39
- }, []);
40
- return /* @__PURE__ */ u(Page, {
41
- hideHeader: true,
42
- hideFooterBranding: true,
43
- className: "IncodeIdExpiredPage",
44
- "data-testid": "expired-id",
45
- children: [/* @__PURE__ */ u("div", {
46
- class: "IncodeIdExpiredContent",
47
- role: "alert",
48
- children: [
49
- /* @__PURE__ */ u(RedStrikeIcon, { className: "IncodeIdExpiredIcon" }),
50
- /* @__PURE__ */ u(Title, {
51
- ref: titleRef,
52
- tabIndex: -1,
53
- className: "IncodeIdExpiredTitle",
54
- children: t("idv2.capture.notifications.expiredId")
55
- }),
56
- /* @__PURE__ */ u(Spacer, { size: 12 }),
57
- /* @__PURE__ */ u("p", {
58
- class: "IncodeIdExpiredSubtitle",
59
- children: isBackSide ? t("idv2.digitalIdUpload.wrongDocumentTypeScreen.errorSubtitle") : t("idv2.capture.expiredId.pleaseTryWithADifferentId")
60
- })
61
- ]
62
- }), /* @__PURE__ */ u("div", { children: [attemptsRemaining !== void 0 ? /* @__PURE__ */ u("p", {
63
- class: "IncodeIdExpiredAttemptsCounter",
64
- "data-testid": "expired-id-attempts-counter",
65
- children: `${attemptsRemaining} ${t("idv2.capture.processing.attemptsRemainingLabel")}`
66
- }) : null, onRetry ? /* @__PURE__ */ u(Button, {
67
- variant: "primary",
68
- onClick: onRetry,
69
- "data-testid": "expired-id-retry",
70
- children: t("idv2.capture.processing.tryAgain")
71
- }) : onContinue ? /* @__PURE__ */ u(Button, {
72
- variant: "primary",
73
- onClick: onContinue,
74
- "data-testid": "expired-id-continue",
75
- children: t("idv2.capture.processing.continue")
76
- }) : null] })]
77
- });
78
- };
79
- //#endregion
80
- export { RedStrikeIcon as n, ExpiredId as t };
@@ -1,2 +0,0 @@
1
- import { t as FaceMatch } from "./faceMatch-Dp1AGBtg.js";
2
- export { FaceMatch };
@@ -1,2 +0,0 @@
1
- import { t as FieldComparison } from "./fieldComparison-D8PL0eR1.js";
2
- export { FieldComparison };
@@ -1,109 +0,0 @@
1
- import { o as useTranslation } from "./uiConfig-CwGL3QjP.js";
2
- import { v as u } from "./vendor-preact-C0jX1Cbq.js";
3
- import { a as withStandaloneModuleBootstrap, t as IncodeComponent, x as useManager, y as useModuleTerminalCallbacks } from "./incodeComponent-B-lwJJCV.js";
4
- import { t as Spacer } from "./spacer-lcnhSC-5.js";
5
- import { x as Button } from "./icons-C2LgNjXy.js";
6
- import { t as Page } from "./page-DINsqGIw.js";
7
- import { t as VerificationResult } from "./verificationResult-C2gxbmAo.js";
8
- import { t as InputComposed } from "./inputComposed-B35soRFg.js";
9
- import { t as registerIncodeModuleElement } from "./incodeModule-DiVtqekm.js";
10
- import { createFieldComparisonManager } from "@incodetech/core/field-comparison";
11
- //#region src/modules/field-comparison/fieldComparison.tsx
12
- var FieldComparisonContent = ({ config, manager: externalManager, onFinish }) => {
13
- const { t } = useTranslation();
14
- const [state, manager] = useManager(() => externalManager ?? createFieldComparisonManager({ config }), {
15
- manageLifecycle: !externalManager,
16
- autoLoad: true
17
- });
18
- useModuleTerminalCallbacks({
19
- status: state.status === "finished" ? "finished" : "loading",
20
- onFinish
21
- });
22
- const handleSubmit = (e) => {
23
- e.preventDefault();
24
- manager.submit();
25
- };
26
- if (state.status === "finished") return null;
27
- if (state.status === "error") return /* @__PURE__ */ u(VerificationResult, {
28
- status: "failure",
29
- onRetry: manager.retry,
30
- onSkip: manager.skip
31
- });
32
- if (state.status === "success") return /* @__PURE__ */ u(VerificationResult, {
33
- status: "success",
34
- successTitle: t("customFields.completed")
35
- });
36
- if (state.status === "submitting" || state.status === "inputting") {
37
- const isDisabled = state.status === "submitting";
38
- const canSubmit = state.status === "inputting" && state.canSubmit;
39
- const validationErrors = state.status === "inputting" ? state.validationErrors : void 0;
40
- return /* @__PURE__ */ u(Page, {
41
- className: "IncodeFieldComparisonPage",
42
- title: t("fieldComparison.title"),
43
- subtitle: t("forms.subtitle"),
44
- hideFooterBranding: true,
45
- "data-testid": "field-comparison-page",
46
- children: [isDisabled ? /* @__PURE__ */ u("div", {
47
- class: "IncodeSrOnly",
48
- role: "status",
49
- "aria-live": "polite",
50
- "data-testid": "field-comparison-status",
51
- children: t("common.processing")
52
- }) : null, /* @__PURE__ */ u("div", {
53
- class: "IncodeFieldComparisonForm",
54
- "data-testid": "field-comparison-fields",
55
- children: [
56
- /* @__PURE__ */ u(InputComposed, {
57
- id: "field-comparison-first-name",
58
- name: "firstName",
59
- label: t("verification.labels.firstName"),
60
- "data-testid": "field-comparison-first-name",
61
- autoComplete: "given-name",
62
- required: true,
63
- disabled: isDisabled,
64
- value: state.fields.firstName,
65
- error: validationErrors?.firstName ? t(validationErrors.firstName) : void 0,
66
- showErrorIcon: !!validationErrors?.firstName,
67
- onInput: (e) => {
68
- manager.setField("firstName", e.target.value);
69
- }
70
- }),
71
- /* @__PURE__ */ u(InputComposed, {
72
- id: "field-comparison-last-name",
73
- name: "lastName",
74
- label: t("verification.labels.lastName"),
75
- "data-testid": "field-comparison-last-name",
76
- autoComplete: "family-name",
77
- required: true,
78
- disabled: isDisabled,
79
- value: state.fields.lastName,
80
- error: validationErrors?.lastName ? t(validationErrors.lastName) : void 0,
81
- showErrorIcon: !!validationErrors?.lastName,
82
- onInput: (e) => {
83
- manager.setField("lastName", e.target.value);
84
- }
85
- }),
86
- /* @__PURE__ */ u(Spacer, {}),
87
- /* @__PURE__ */ u(Button, {
88
- type: "submit",
89
- "data-testid": "field-comparison-submit",
90
- disabled: !canSubmit || isDisabled,
91
- isLoading: isDisabled,
92
- onClick: handleSubmit,
93
- children: t("common.continue")
94
- })
95
- ]
96
- })]
97
- });
98
- }
99
- return null;
100
- };
101
- var FieldComparisonWithLocalConfig = ({ config = {}, manager, onFinish }) => /* @__PURE__ */ u(IncodeComponent, { children: /* @__PURE__ */ u(FieldComparisonContent, {
102
- config,
103
- manager,
104
- onFinish
105
- }) });
106
- var FieldComparison = withStandaloneModuleBootstrap(FieldComparisonWithLocalConfig, "FIELD_COMPARISON", { supportsExternalManager: true });
107
- registerIncodeModuleElement(FieldComparison, "incode-field-comparison");
108
- //#endregion
109
- export { FieldComparison as t };