@incodetech/web 2.4.1-agentic.10 → 2.4.1-agentic.12

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 (300) hide show
  1. package/dist/Checkbox-DiUv5uz_.js +152 -0
  2. package/dist/{GeolocationPermissionDenied-Dag9fchQ.js → GeolocationPermissionDenied-BgR-wfhk.js} +5 -5
  3. package/dist/{Password-4ht2vsqv.js → Password-Bm6m9Odt.js} +4 -4
  4. package/dist/{RadioGroup-Cf6xDIm5.js → RadioGroup-B51k7HFw.js} +4 -4
  5. package/dist/{RequiredLegend-DwaAzhid.js → RequiredLegend-DBqkV44u.js} +2 -2
  6. package/dist/{RequiredMarker-CGQR8lsb.js → RequiredMarker-euhY-M-q.js} +2 -2
  7. package/dist/Stepper-Bsi6OUY0.js +426 -0
  8. package/dist/{TextField-o3qwE7KD.js → TextField-DvBQu9WE.js} +4 -4
  9. package/dist/ae-signature/ae-signature.es.js +4 -4
  10. package/dist/{af-ZA-CdJRBJEg.js → af-ZA-R3dt5u2_.js} +41 -0
  11. package/dist/{ageVerification-u2zo-WUl.js → ageVerification-D2lxCZfL.js} +5 -5
  12. package/dist/{am-Df9uoE6e.js → am-BHu7GOhs.js} +41 -0
  13. package/dist/antifraud/antifraud.es.js +5 -5
  14. package/dist/{applyStudioConfig-Deh55YNW.js → applyStudioConfig-Bi7ubgUr.js} +2 -2
  15. package/dist/{ar-AE-CAoWsgnA.js → ar-AE-7pR7a7Rk.js} +41 -0
  16. package/dist/{ar-hyEIwsq9.js → ar-DM3z6uYS.js} +41 -0
  17. package/dist/{ar-EG-CXi0p-DV.js → ar-EG-LYsd6BEE.js} +41 -0
  18. package/dist/assets/great-vibes-latin-400-normal.woff2 +0 -0
  19. package/dist/assets/great-vibes-latin-ext-400-normal.woff2 +0 -0
  20. package/dist/authentication/authentication.es.js +9 -8
  21. package/dist/{autoFocusTitle-CNeT8ydU.js → autoFocusTitle-Dpou-oRt.js} +2 -2
  22. package/dist/{az-CUehzrK3.js → az-2KdCi6qX.js} +41 -0
  23. package/dist/{back-horizontal-hint-D5xvRtEe.js → back-horizontal-hint-DVmAanm-.js} +1 -1
  24. package/dist/{back-vertical-hint-DoKJSQhY.js → back-vertical-hint-CHtKdVeQ.js} +1 -1
  25. package/dist/base.css +1 -1
  26. package/dist/{baseTutorial-xDkp34JC.js → baseTutorial-BTDnyihW.js} +4 -4
  27. package/dist/{bn-DStUscj0.js → bn-BmlWLOS3.js} +41 -0
  28. package/dist/{bottomSheet-COrgITc6.js → bottomSheet-B_gvcGYk.js} +3 -3
  29. package/dist/{bs-Lq1FPKJj.js → bs-sjiT2AGH.js} +41 -0
  30. package/dist/{ca-K83Ys4Fe.js → ca-ClW9d7vi.js} +41 -0
  31. package/dist/cameraOverlay-tevNm9mf.js +2 -0
  32. package/dist/{cameraOverlayHeader-C7Pi5eIm.js → cameraOverlayHeader-DXrM_mWF.js} +5 -5
  33. package/dist/{cameraView-B7l40Opf.js → cameraView-DvBalXtW.js} +3 -3
  34. package/dist/{capture-D7HVD1ht.js → capture-BE61DSsu.js} +21 -21
  35. package/dist/capture-D64TN_Jk.js +2 -0
  36. package/dist/capture-D9mFM1bm.js +3 -0
  37. package/dist/{capture-I1enj-0M.js → capture-DfN4A_fO.js} +10 -10
  38. package/dist/captureButtonIcon-BluEeg4P.js +1 -0
  39. package/dist/{captureFocusContext-CNtkY3Lk.js → captureFocusContext-l8PLoc6Z.js} +11 -11
  40. package/dist/{captureFooter-CucCxqz-.js → captureFooter-Cb78Ph85.js} +5 -5
  41. package/dist/{ceb-NR8sWgTh.js → ceb-4P7W-PzT.js} +41 -0
  42. package/dist/certificate-issuance/certificate-issuance.es.js +12 -12
  43. package/dist/{checkbox-C5k2pepr.js → checkbox-BHmWr1C6.js} +4 -4
  44. package/dist/{chooser-CNm0MKQl.js → chooser-Bw4Ride9.js} +12 -12
  45. package/dist/{connectionError-Bs3TO2RP.js → connectionError-D6UQdyHT.js} +5 -5
  46. package/dist/consent/consent.es.js +23 -32
  47. package/dist/consent/styles.css +1 -1
  48. package/dist/consent/styles.css.js +1 -1
  49. package/dist/{countryDefinitions-DlsV3Tf8.js → countryDefinitions-UXJ0maPk.js} +6 -0
  50. package/dist/{countryFlag-CZUyZ06G.js → countryFlag-D2eCGWCr.js} +1 -1
  51. package/dist/{countrySelector-CPgaMT7n.js → countrySelector-mTwAk_wo.js} +4 -4
  52. package/dist/cross-document-data-match/cross-document-data-match.es.js +5 -5
  53. package/dist/{cs-CZ-KpSXcWZT.js → cs-CZ-DHfTm0QA.js} +41 -0
  54. package/dist/{cs-UYoUjOrG.js → cs-qiukbXDQ.js} +41 -0
  55. package/dist/curp-validation/curp-validation.es.js +17 -19
  56. package/dist/custom-fields/styles.css +1 -1
  57. package/dist/custom-fields/styles.css.js +1 -1
  58. package/dist/{customFields-BcubL9au.js → customFields-Wh1wCbgV.js} +23 -22
  59. package/dist/{customWatchlist-D4RK0ow6.js → customWatchlist-BVOMDxpw.js} +6 -6
  60. package/dist/{da-DK-Bds8n-Rj.js → da-DK-BJ0kx3IU.js} +41 -0
  61. package/dist/{dashboardTheme-DQaxmEq3.js → dashboardTheme-DGCGdRPG.js} +16 -2
  62. package/dist/dateField-uSn1Tfxh.js +315 -0
  63. package/dist/{de-CZlvE1Xz.js → de-AwoDSQnT.js} +42 -1
  64. package/dist/{denied-BeVKpBem.js → denied-C5_YIBd5.js} +7 -7
  65. package/dist/{devWarn-B4kGEiva.js → devWarn-Ipda56ZX.js} +84 -84
  66. package/dist/{deviceWallet-7b1VpcGm.js → deviceWallet-DbWiknsf.js} +4 -4
  67. package/dist/{digitalIdRedirect-CG9jzrQh.js → digitalIdRedirect-CWjKjOpe.js} +4 -4
  68. package/dist/{digitalIdUpload-BUJcgYY5.js → digitalIdUpload-CBxlskZX.js} +7 -7
  69. package/dist/document-capture/document-capture.es.js +1 -1
  70. package/dist/document-signature/document-signature.es.js +379 -0
  71. package/dist/document-signature/styles.css +2 -0
  72. package/dist/document-signature/styles.css.js +1 -0
  73. package/dist/{documentCapture-JcxukEgT.js → documentCapture-CClYtlSL.js} +23 -22
  74. package/dist/documentCapture-DddzJ7nO.js +2 -0
  75. package/dist/dropdownComposed-DElId5J9.js +1 -0
  76. package/dist/{dropdownComposed-yNmLuHxU.js → dropdownComposed-DMbbp8GV.js} +4 -4
  77. package/dist/dynamic-forms/dynamic-forms.es.js +26 -23
  78. package/dist/ekyb/ekyb.es.js +1 -1
  79. package/dist/{ekybModule-Cp-7fs23.js → ekybModule-ByGPRHWw.js} +17 -17
  80. package/dist/ekybModule-DPuCLgZ9.js +2 -0
  81. package/dist/ekyc/ekyc.es.js +1 -1
  82. package/dist/ekyc/styles.css +1 -1
  83. package/dist/ekyc/styles.css.js +1 -1
  84. package/dist/ekyc-prefill/ekyc-prefill.es.js +1 -1
  85. package/dist/{ekycModule-DKUZp3Ww.js → ekycModule-C8DT_5SP.js} +79 -63
  86. package/dist/ekycModule-DNK6vMOr.js +2 -0
  87. package/dist/ekycPrefillModule-7Qy3GaZH.js +2 -0
  88. package/dist/{ekycPrefillModule-DJoeviHP.js → ekycPrefillModule-BlEnF4qc.js} +29 -31
  89. package/dist/{el-C6tFl9i9.js → el-CqJyvKNt.js} +42 -1
  90. package/dist/{el-GR-BLkQ_dbO.js → el-GR-DSIPYZOW.js} +41 -0
  91. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  92. package/dist/electronic-signature/styles.css +1 -1
  93. package/dist/electronic-signature/styles.css.js +1 -1
  94. package/dist/{electronic-signature-D-4uTJdE.js → electronic-signature-DeBi05qe.js} +59 -51
  95. package/dist/email/email.es.js +10 -10
  96. package/dist/{emailInput-C5VHG66O.js → emailInput-CABItmP4.js} +4 -4
  97. package/dist/{en-DNBypQuu.js → en-BHavlQyz.js} +41 -0
  98. package/dist/{en-DG-BEuiDKtl.js → en-DG-C-msGafh.js} +41 -0
  99. package/dist/{errorContent-BC8mDFld.js → errorContent-DYhK9FMd.js} +6 -6
  100. package/dist/{errorParams-W7NX72mI.js → errorParams-pIAQtp7y.js} +1 -1
  101. package/dist/{es-419-BCIRYhZK.js → es-419-Dib58nCl.js} +1 -1
  102. package/dist/{es-DjQEM4f9.js → es-CzlFuE_6.js} +42 -1
  103. package/dist/{es-ES-Q6nMptUM.js → es-ES-BQpbPw03.js} +41 -0
  104. package/dist/{es-MX-Df5g3bAX.js → es-MX-DqZO_tod.js} +42 -1
  105. package/dist/{et-BYRhgB8X.js → et-D_7tbD3q.js} +41 -0
  106. package/dist/{expiredId-BVa13c9u.js → expiredId-DoMyxXAJ.js} +6 -6
  107. package/dist/extensibility.es.js +102 -42
  108. package/dist/{fa-IR-DP-FPc-r.js → fa-IR-DraDR5e6.js} +41 -0
  109. package/dist/face-match/face-match.es.js +1 -1
  110. package/dist/{faceMatch-C5QmR3Vt.js → faceMatch-8Y_U5K6T.js} +30 -28
  111. package/dist/faceMatch-C9gEayyD.js +2 -0
  112. package/dist/{fi-FI-rnIjEC7X.js → fi-FI-O8Sv4NbM.js} +41 -0
  113. package/dist/field-comparison/field-comparison.es.js +1 -1
  114. package/dist/fieldComparison-B_77hL0v.js +2 -0
  115. package/dist/{fieldComparison-CDGiqzsu.js → fieldComparison-DtQPggFs.js} +11 -11
  116. package/dist/{fieldLabelHint-eF42wLDJ.js → fieldLabelHint-XHNEEyMn.js} +1 -1
  117. package/dist/{finalSuccessScreen-vOR061dK.js → finalSuccessScreen-Co1SgXRD.js} +12 -12
  118. package/dist/fiscal-qr/fiscal-qr.es.js +22 -19
  119. package/dist/{flipAnimation-CGP9Fu9J.js → flipAnimation-Cv52EKtR.js} +5 -5
  120. package/dist/{flipCapturedCardEligibility-C8wQ0_No.js → flipCapturedCardEligibility-C0j114lS.js} +4 -4
  121. package/dist/flow/flow.es.js +102 -98
  122. package/dist/flow/styles.css +1 -1
  123. package/dist/{formField-DrSwXufE.js → formField-DugBNP7u.js} +5 -5
  124. package/dist/{fr-CA-vPsubqTC.js → fr-CA-DdyVunG0.js} +41 -0
  125. package/dist/{fr-P8YbBMxT.js → fr-CKhhqumg.js} +41 -0
  126. package/dist/{front-horizontal-hint-CDHj9LQF.js → front-horizontal-hint-DKL87QSZ.js} +1 -1
  127. package/dist/{front-vertical-hint-B_pU27Iv.js → front-vertical-hint-OhyP3VgZ.js} +1 -1
  128. package/dist/geolocation/geolocation.es.js +10 -10
  129. package/dist/government-validation/government-validation.es.js +7 -7
  130. package/dist/{he-DfptjOXC.js → he-CSe75YbO.js} +41 -0
  131. package/dist/{hi-C7tSzMcB.js → hi-DufbjF3u.js} +41 -0
  132. package/dist/{hmn-jKsUYgaq.js → hmn-CU-cNH29.js} +41 -0
  133. package/dist/{homeScreen-C1b8yg4y.js → homeScreen-B5abxQw8.js} +7 -7
  134. package/dist/{hooks-COiwxC3h.js → hooks-CURroqRe.js} +71 -11
  135. package/dist/{hr-ehtrddz3.js → hr-DH_mQhx3.js} +41 -0
  136. package/dist/{ht-CA5NNkri.js → ht-WUj810Lu.js} +41 -0
  137. package/dist/{hu-DYgOdNXH.js → hu-5eRJpCha.js} +42 -1
  138. package/dist/{icons-CLoob8B-.js → icons-ITXoYbiU.js} +2 -2
  139. package/dist/id/id.es.js +38 -37
  140. package/dist/id/styles.css +1 -1
  141. package/dist/id/styles.css.js +1 -1
  142. package/dist/{id-CMBxWcTV.js → id-TTXcsdiH.js} +42 -1
  143. package/dist/{id-back-of-card-BEAthtU0.js → id-back-of-card-DKYIVSmD.js} +1 -1
  144. package/dist/{id-back-of-card-vertical-Ce0d7tp5.js → id-back-of-card-vertical-BIe20rpj.js} +1 -1
  145. package/dist/{id-front-of-card-DS0lS9jP.js → id-front-of-card-DuSINoc3.js} +1 -1
  146. package/dist/{id-front-of-card-vertical-BLWn85NX.js → id-front-of-card-vertical-BiVBFC1a.js} +1 -1
  147. package/dist/id-ocr/styles.css +1 -1
  148. package/dist/id-ocr/styles.css.js +1 -1
  149. package/dist/id-selfie-flow/id-selfie-flow.es.js +13 -13
  150. package/dist/id-verification/id-verification.es.js +12 -7
  151. package/dist/{idFlipTransition-3z8Lqcab.js → idFlipTransition-DkkvK9uz.js} +13 -13
  152. package/dist/{idOcr-qPEZSG5D.js → idOcr-uP22wjZK.js} +18 -17
  153. package/dist/identity-reuse/identity-reuse.es.js +13 -12
  154. package/dist/identity-reuse/styles.css.js +1 -0
  155. package/dist/{incodeComponent-CxWTvgqz.js → incodeComponent-BcmOnlJA.js} +17 -29
  156. package/dist/{incodeModule-BQVPjhJE.js → incodeModule-DwyFqiFJ.js} +5 -5
  157. package/dist/index.es.js +3 -3
  158. package/dist/{it-DNcyH3GL.js → it-BCq9eMt-.js} +42 -1
  159. package/dist/{ja-BkVsn7yw.js → ja-BNauL2rS.js} +41 -0
  160. package/dist/{ja-JP-BI4iShf-.js → ja-JP-tA-OY0PX.js} +41 -0
  161. package/dist/{jv-Bpp0lYl-.js → jv-kUPY2Chu.js} +41 -0
  162. package/dist/{ka-__y8BNrb.js → ka-21B6qMG8.js} +41 -0
  163. package/dist/{kk-C8RZv7Y9.js → kk-CWDQml11.js} +41 -0
  164. package/dist/{km-CdNpEVlv.js → km-C0dV4RKH.js} +49 -8
  165. package/dist/{ko-Db8jh_Pq.js → ko-BZLrzvz5.js} +41 -0
  166. package/dist/{ko-KP-Cn4RuF_b.js → ko-KP-5W-jc8mZ.js} +41 -0
  167. package/dist/{ky-DljlRCIf.js → ky-CBGd9_yS.js} +41 -0
  168. package/dist/kyb-checks/kyb-checks.es.js +1 -1
  169. package/dist/kybChecksModule-B_Pruz4V.js +2 -0
  170. package/dist/{kybChecksModule-DGXAS1Sc.js → kybChecksModule-BoZXK1fj.js} +14 -14
  171. package/dist/{lo-DXJI47k7.js → lo-lOKwTA3u.js} +41 -0
  172. package/dist/{lt-CUHwdgrq.js → lt-Fo2QKh5F.js} +42 -1
  173. package/dist/{lv-BFrYWmGH.js → lv-BerNOcJ-.js} +41 -0
  174. package/dist/{mandatoryConsent-Dc0PQou0.js → mandatoryConsent-BNXbt0y6.js} +22 -30
  175. package/dist/{manualCaptureButton-DIlebb4i.js → manualCaptureButton-CWKYTNIL.js} +4 -4
  176. package/dist/{manualCaptureButton-t0b_hCKH.js → manualCaptureButton-peTYxITd.js} +10 -10
  177. package/dist/{mk-BRpnPevj.js → mk-DZHU5tnQ.js} +41 -0
  178. package/dist/{mn-tly7Lz7o.js → mn-CKd0cKM5.js} +41 -0
  179. package/dist/{ms-DFpRACK3.js → ms-C752xkBN.js} +41 -0
  180. package/dist/{my-G2jJl4tA.js → my-BOKFvVNu.js} +41 -0
  181. package/dist/{nb-NO-CaDPgzxb.js → nb-NO-BIFZBDSt.js} +41 -0
  182. package/dist/{ne-BaCq8Imv.js → ne-BiZ-Wkzy.js} +41 -0
  183. package/dist/{nl-BK-jT4yQ.js → nl-DZdJxK59.js} +42 -1
  184. package/dist/{optionAccessibleLabel-CDKKh7c3.js → optionAccessibleLabel-AuhITmx8.js} +7 -7
  185. package/dist/{otpInput-B4mH5be-.js → otpInput-DGUmkR-2.js} +6 -6
  186. package/dist/{page-5CklyQnq.js → page-xenWrHR6.js} +6 -6
  187. package/dist/{pageUiConfig-DZQHreIo.js → pageUiConfig-Es7xbC8U.js} +5 -5
  188. package/dist/{passport-horizontal-hint-JdWoLKa5.js → passport-horizontal-hint-DIKR-5je.js} +1 -1
  189. package/dist/{passport-vertical-hint-BgtJXbvC.js → passport-vertical-hint-BF_uLQ4Q.js} +1 -1
  190. package/dist/{passwordRequirements-bbbHZACR.js → passwordRequirements-D_ET0ptE.js} +2 -2
  191. package/dist/pdfViewer-Dcmf3PSp.js +2 -0
  192. package/dist/{pdfViewer-D4xu2J13.js → pdfViewer-e8ALUns_.js} +11 -6
  193. package/dist/{permissionInstructionList-Dmy2y4cX.js → permissionInstructionList-BUZ24MO2.js} +3 -3
  194. package/dist/{permissions-BPh2QNoI.js → permissions-DOpq5J68.js} +13 -13
  195. package/dist/phone/phone.es.js +15 -14
  196. package/dist/{phoneInputComposed-Dzt9xdrF.js → phoneInputComposed-KFw_1x_C.js} +101 -7
  197. package/dist/{pl-CoWZGdbr.js → pl-DbqvkT90.js} +41 -0
  198. package/dist/{preloadableLazy-2hqV2Q8z.js → preloadableLazy-DUgEtM_1.js} +1 -1
  199. package/dist/{processing-DStiN9XK.js → processing-ZeXhRIjd.js} +2 -2
  200. package/dist/{progressBar-CJqJXzAh.js → progressBar-rMzmizL2.js} +2 -2
  201. package/dist/{pt-BR-BRMyrqIN.js → pt-BR-BDUVqHgY.js} +42 -1
  202. package/dist/{pt-PT-CfwlYo6V.js → pt-PT-BICMgpFC.js} +41 -0
  203. package/dist/{pt-BDByRgpr.js → pt-cjI0RkJk.js} +42 -1
  204. package/dist/qe-signature/qe-signature.es.js +4 -4
  205. package/dist/redirect-to-mobile/redirect-to-mobile.es.js +14 -114
  206. package/dist/redirect-to-mobile/styles.css +1 -1
  207. package/dist/redirect-to-mobile/styles.css.js +1 -1
  208. package/dist/{registerIncodeElement-B5W7SqS3.js → registerIncodeElement-cSBlqcIo.js} +1 -1
  209. package/dist/{resendTimer-COMRdeDC.js → resendTimer-3QDHwxZI.js} +2 -2
  210. package/dist/{richText-BMvr5dhl.js → richText-N1OBgZ6y.js} +2 -2
  211. package/dist/richTextSegments-fTZp4nbH.js +69 -0
  212. package/dist/{ro-ju058j4P.js → ro-CQi3v92k.js} +41 -0
  213. package/dist/{ru-DYwhf4Hw.js → ru-D7liiYmK.js} +42 -1
  214. package/dist/{ru-RU-BAvJW-vp.js → ru-RU-hdx_ywjZ.js} +41 -0
  215. package/dist/selfie/selfie.es.js +13 -12
  216. package/dist/signature/signature.es.js +10 -797
  217. package/dist/signatureCanvas-C8H4ULgt.js +795 -0
  218. package/dist/{sk-Cl6F-Kaz.js → sk-BVu5NSkN.js} +43 -2
  219. package/dist/{sl-BxsNneWx.js → sl-CXdwhOlY.js} +41 -0
  220. package/dist/{smsTabContent-BLJM1Hbk.js → smsTabContent-DK-hG84A.js} +7 -7
  221. package/dist/{so-D8izvKPD.js → so-CzF0F0n4.js} +41 -0
  222. package/dist/{spacer-NanHQwzu.js → spacer-DodsS7Qo.js} +15 -15
  223. package/dist/{spinner-bRH4yw9e.js → spinner-_5giArqM.js} +3 -3
  224. package/dist/{sr-Latn-BTn5o62j.js → sr-Latn-_wIvvu69.js} +50 -9
  225. package/dist/{sr-YU-BNViLYA5.js → sr-YU-DuLCl_pC.js} +1 -1
  226. package/dist/{sr-BtsYxFKz.js → sr-p3K5p0q5.js} +41 -0
  227. package/dist/step-up/step-up.es.js +12 -12
  228. package/dist/step-up/styles.css +1 -1
  229. package/dist/{sv-SE-f5R8i8ue.js → sv-SE-CBOleWRj.js} +41 -0
  230. package/dist/{sw-BgHNoEGs.js → sw-CzVbqidu.js} +41 -0
  231. package/dist/tabs-fevCgpP_.js +104 -0
  232. package/dist/{th-aFkhFNxp.js → th-DIt4DNgZ.js} +41 -0
  233. package/dist/{th-TH-DmfU-a6A.js → th-TH-DeSsVCOR.js} +41 -0
  234. package/dist/themes/dark.css +1 -1
  235. package/dist/themes/light.css +1 -1
  236. package/dist/{tl-CA42NVfv.js → tl-CdRiPZeW.js} +41 -0
  237. package/dist/{tl-PH-DMCUe7pP.js → tl-PH-Dkoiua0V.js} +41 -0
  238. package/dist/{tr-BVjID0jl.js → tr-DjLZ63E7.js} +41 -0
  239. package/dist/{transitionSpinner-MclJtdHE.js → transitionSpinner-2gDSNi9L.js} +6 -6
  240. package/dist/{tutorial-fC2iei2v.js → tutorial-pd-jcY6T.js} +4 -4
  241. package/dist/types/document-signature.d.ts +212 -0
  242. package/dist/types/extensibility.d.ts +2 -0
  243. package/dist/types/identity-reuse.d.ts +1 -1
  244. package/dist/types/video-selfie.d.ts +1 -1
  245. package/dist/{typography-Dncyo-3D.js → typography-ByaPFg_r.js} +2 -2
  246. package/dist/{uk-HjZTXCOA.js → uk-DvMsFwYg.js} +41 -0
  247. package/dist/{uk-UA-ChpoWDcU.js → uk-UA-BaDnbZ4V.js} +41 -0
  248. package/dist/{ur-CZkQHBM4.js → ur-CZ_SUeWd.js} +41 -0
  249. package/dist/{useCameraPreview-DrteOjaq.js → useCameraPreview-JvLO-xAZ.js} +1 -1
  250. package/dist/{useCaptureHelpButton-B5zEGcaB.js → useCaptureHelpButton-B4OqTpGQ.js} +2 -2
  251. package/dist/{useIsDarkTheme-DAs5RhsW.js → useIsDarkTheme-DQk4EE9W.js} +1 -1
  252. package/dist/{useModuleLoader-C2fbLotc.js → useModuleLoader-BzjVLtMj.js} +25 -17
  253. package/dist/{uz-BCp_m_Om.js → uz-FklWYAYJ.js} +41 -0
  254. package/dist/{vendor-preact-HIccnts1.js → vendor-preact-D-eB0kEm.js} +129 -5
  255. package/dist/{verificationResult-sh4xut0K.js → verificationResult-DVH0lg9s.js} +8 -8
  256. package/dist/{vi-BvxcvDgc.js → vi-CuZ5UmSU.js} +41 -0
  257. package/dist/video-selfie/video-selfie.es.js +18 -16
  258. package/dist/watchlist/watchlist.es.js +6 -6
  259. package/dist/{watchlistForBusiness-DnS1r-Ml.js → watchlistForBusiness-DTjrlwVW.js} +17 -18
  260. package/dist/{withEndScreenTexts-CHWofhk5.js → withEndScreenTexts-o0-d3vPQ.js} +49 -28
  261. package/dist/workflow/styles.css +1 -1
  262. package/dist/workflow/workflow.es.js +1 -1
  263. package/dist/{workflow-DBS9eyu4.js → workflow-BCxpSFal.js} +16 -15
  264. package/dist/{zh-CN-DZRia1ir.js → zh-CN-BDrR44Mj.js} +42 -1
  265. package/dist/{zh-DN_kUZaR.js → zh-D7PsouEQ.js} +41 -0
  266. package/dist/{zh-HANT-DisU_Tal.js → zh-HANT-B82nGR9w.js} +41 -0
  267. package/dist/{zh-TW-BJzCsdPP.js → zh-TW-CE9n7tgc.js} +41 -0
  268. package/package.json +15 -5
  269. package/dist/cameraOverlay-Bciqav_0.js +0 -2
  270. package/dist/capture-Do7z-u0d.js +0 -3
  271. package/dist/capture-WaSNv1Wn.js +0 -2
  272. package/dist/captureButtonIcon-DVbAZ8TK.js +0 -1
  273. package/dist/dateInputComposed-BrpUtswb.js +0 -1
  274. package/dist/dateInputComposed-BzCDzTM3.js +0 -68
  275. package/dist/documentCapture-BdEStEoH.js +0 -2
  276. package/dist/dropdownComposed-C36c9ZOm.js +0 -1
  277. package/dist/ekybModule-ccZRVb7E.js +0 -2
  278. package/dist/ekycModule-CcZTIgGK.js +0 -2
  279. package/dist/ekycPrefillModule-Bou_Ig42.js +0 -2
  280. package/dist/faceMatch-B2n0FPIm.js +0 -2
  281. package/dist/fieldComparison-D-LmR1LR.js +0 -2
  282. package/dist/inputComposed-oWeKvdES.js +0 -99
  283. package/dist/kybChecksModule-B2nSWMuy.js +0 -2
  284. package/dist/pdfViewer-2NTW2bZn.js +0 -2
  285. /package/dist/{aligndevicelottie-DroBRtbt.js → aligndevicelottie-C5Nr_FF0.js} +0 -0
  286. /package/dist/{back-tutorial-ydxRtY-Y.js → back-tutorial-CsLjEe1h.js} +0 -0
  287. /package/dist/{backdevicelottie-hv8vbwYH.js → backdevicelottie-B-yh2vaH.js} +0 -0
  288. /package/dist/{blurdevicelottie-Cgu4hKn7.js → blurdevicelottie-B-MnEJJ9.js} +0 -0
  289. /package/dist/{flip-animation-CJhh7l_J.js → flip-animation-2ApKMmiz.js} +0 -0
  290. /package/dist/{frontdevicelottie-vyO3BJJe.js → frontdevicelottie-D5U9tg8-.js} +0 -0
  291. /package/dist/{glaredevicelottie-DrgkRjFh.js → glaredevicelottie-exDO2WQS.js} +0 -0
  292. /package/dist/{id-laser-h-CUz29uFc.js → id-laser-h-C1VNfV0z.js} +0 -0
  293. /package/dist/{id-laser-v-Bnf10QJp.js → id-laser-v-CwYRuzKJ.js} +0 -0
  294. /package/dist/{id-tutorial-DGwvKAMs.js → id-tutorial-Cp4YGXxy.js} +0 -0
  295. /package/dist/{lottie_light-BXXuEKyZ.js → lottie_light-eUA_bm5D.js} +0 -0
  296. /package/dist/{passport-tutorial-DoqqyBXo.js → passport-tutorial-CTGbQDlK.js} +0 -0
  297. /package/dist/{pdf-CLcY9ugT.js → pdf-BJqJc2y6.js} +0 -0
  298. /package/dist/{pdf.worker.min-Cm2oniEB.js → pdf.worker.min-CfLap51B.js} +0 -0
  299. /package/dist/{sanitizeSvg-BZoCoRr0.js → sanitizeSvg-BgtEnuqz.js} +0 -0
  300. /package/dist/{selfieTutorial-BTewRjM5.js → selfieTutorial-T41XPQa8.js} +0 -0
@@ -1,801 +1,14 @@
1
- import { d as useTranslation } from "../devWarn-B4kGEiva.js";
2
- import { _ as q, b as u, i as D, l as A, m as d, u as F, y } from "../vendor-preact-HIccnts1.js";
3
- import { b as PrizmaButton } from "../icons-CLoob8B-.js";
4
- import { h as cn, t as Spacer } from "../spacer-NanHQwzu.js";
5
- import { t as Page } from "../page-5CklyQnq.js";
6
- import { b as useManager, n as withStandaloneModuleBootstrap, v as useModuleTerminalCallbacks } from "../hooks-COiwxC3h.js";
7
- import { t as IncodeComponent } from "../incodeComponent-CxWTvgqz.js";
8
- import { t as VerificationResult } from "../verificationResult-sh4xut0K.js";
9
- import { t as registerIncodeModuleElement } from "../incodeModule-BQVPjhJE.js";
10
- import { t as _defineProperty } from "../defineProperty-CRYuXE79.js";
1
+ import { d as useTranslation } from "../devWarn-Ipda56ZX.js";
2
+ import { b as y, h as d, u as A, v as q, x as u } from "../vendor-preact-D-eB0kEm.js";
3
+ import { b as PrizmaButton } from "../icons-ITXoYbiU.js";
4
+ import { h as cn, t as Spacer } from "../spacer-DodsS7Qo.js";
5
+ import { t as Page } from "../page-xenWrHR6.js";
6
+ import { n as withStandaloneModuleBootstrap, x as useManager, y as useModuleTerminalCallbacks } from "../hooks-CURroqRe.js";
7
+ import { t as IncodeComponent } from "../incodeComponent-BcmOnlJA.js";
8
+ import { t as VerificationResult } from "../verificationResult-DVH0lg9s.js";
9
+ import { t as registerIncodeModuleElement } from "../incodeModule-DwyFqiFJ.js";
10
+ import { t as SignatureCanvas } from "../signatureCanvas-C8H4ULgt.js";
11
11
  import { createSignatureManager } from "@incodetech/core/signature";
12
- //#region ../../node_modules/.pnpm/signature_pad@5.1.3/node_modules/signature_pad/dist/signature_pad.js
13
- /*!
14
- * Signature Pad v5.1.3 | https://github.com/szimek/signature_pad
15
- * (c) 2025 Szymon Nowak | Released under the MIT license
16
- */
17
- var Point = class {
18
- constructor(x, y, pressure, time) {
19
- _defineProperty(this, "x", void 0);
20
- _defineProperty(this, "y", void 0);
21
- _defineProperty(this, "pressure", void 0);
22
- _defineProperty(this, "time", void 0);
23
- if (isNaN(x) || isNaN(y)) throw new Error(`Point is invalid: (${x}, ${y})`);
24
- this.x = +x;
25
- this.y = +y;
26
- this.pressure = pressure || 0;
27
- this.time = time || Date.now();
28
- }
29
- distanceTo(start) {
30
- return Math.sqrt(Math.pow(this.x - start.x, 2) + Math.pow(this.y - start.y, 2));
31
- }
32
- equals(other) {
33
- return this.x === other.x && this.y === other.y && this.pressure === other.pressure && this.time === other.time;
34
- }
35
- velocityFrom(start) {
36
- return this.time !== start.time ? this.distanceTo(start) / (this.time - start.time) : 0;
37
- }
38
- };
39
- var Bezier = class _Bezier {
40
- constructor(startPoint, control2, control1, endPoint, startWidth, endWidth) {
41
- this.startPoint = startPoint;
42
- this.control2 = control2;
43
- this.control1 = control1;
44
- this.endPoint = endPoint;
45
- this.startWidth = startWidth;
46
- this.endWidth = endWidth;
47
- }
48
- static fromPoints(points, widths) {
49
- const c2 = this.calculateControlPoints(points[0], points[1], points[2]).c2;
50
- const c3 = this.calculateControlPoints(points[1], points[2], points[3]).c1;
51
- return new _Bezier(points[1], c2, c3, points[2], widths.start, widths.end);
52
- }
53
- static calculateControlPoints(s1, s2, s3) {
54
- const dx1 = s1.x - s2.x;
55
- const dy1 = s1.y - s2.y;
56
- const dx2 = s2.x - s3.x;
57
- const dy2 = s2.y - s3.y;
58
- const m1 = {
59
- x: (s1.x + s2.x) / 2,
60
- y: (s1.y + s2.y) / 2
61
- };
62
- const m2 = {
63
- x: (s2.x + s3.x) / 2,
64
- y: (s2.y + s3.y) / 2
65
- };
66
- const l1 = Math.sqrt(dx1 * dx1 + dy1 * dy1);
67
- const l2 = Math.sqrt(dx2 * dx2 + dy2 * dy2);
68
- const dxm = m1.x - m2.x;
69
- const dym = m1.y - m2.y;
70
- const k = l1 + l2 == 0 ? 0 : l2 / (l1 + l2);
71
- const cm = {
72
- x: m2.x + dxm * k,
73
- y: m2.y + dym * k
74
- };
75
- const tx = s2.x - cm.x;
76
- const ty = s2.y - cm.y;
77
- return {
78
- c1: new Point(m1.x + tx, m1.y + ty),
79
- c2: new Point(m2.x + tx, m2.y + ty)
80
- };
81
- }
82
- length() {
83
- const steps = 10;
84
- let length = 0;
85
- let px;
86
- let py;
87
- for (let i = 0; i <= steps; i += 1) {
88
- const t = i / steps;
89
- const cx = this.point(t, this.startPoint.x, this.control1.x, this.control2.x, this.endPoint.x);
90
- const cy = this.point(t, this.startPoint.y, this.control1.y, this.control2.y, this.endPoint.y);
91
- if (i > 0) {
92
- const xdiff = cx - px;
93
- const ydiff = cy - py;
94
- length += Math.sqrt(xdiff * xdiff + ydiff * ydiff);
95
- }
96
- px = cx;
97
- py = cy;
98
- }
99
- return length;
100
- }
101
- point(t, start, c1, c2, end) {
102
- return start * (1 - t) * (1 - t) * (1 - t) + 3 * c1 * (1 - t) * (1 - t) * t + 3 * c2 * (1 - t) * t * t + end * t * t * t;
103
- }
104
- };
105
- var SignatureEventTarget = class {
106
- constructor() {
107
- _defineProperty(this, "_et", void 0);
108
- try {
109
- this._et = new EventTarget();
110
- } catch {
111
- this._et = document;
112
- }
113
- }
114
- addEventListener(type, listener, options) {
115
- this._et.addEventListener(type, listener, options);
116
- }
117
- dispatchEvent(event) {
118
- return this._et.dispatchEvent(event);
119
- }
120
- removeEventListener(type, callback, options) {
121
- this._et.removeEventListener(type, callback, options);
122
- }
123
- };
124
- function throttle(fn, wait = 250) {
125
- let previous = 0;
126
- let timeout = null;
127
- let result;
128
- let storedContext;
129
- let storedArgs;
130
- const later = () => {
131
- previous = Date.now();
132
- timeout = null;
133
- result = fn.apply(storedContext, storedArgs);
134
- if (!timeout) {
135
- storedContext = null;
136
- storedArgs = [];
137
- }
138
- };
139
- return function wrapper(...args) {
140
- const now = Date.now();
141
- const remaining = wait - (now - previous);
142
- storedContext = this;
143
- storedArgs = args;
144
- if (remaining <= 0 || remaining > wait) {
145
- if (timeout) {
146
- clearTimeout(timeout);
147
- timeout = null;
148
- }
149
- previous = now;
150
- result = fn.apply(storedContext, storedArgs);
151
- if (!timeout) {
152
- storedContext = null;
153
- storedArgs = [];
154
- }
155
- } else if (!timeout) timeout = window.setTimeout(later, remaining);
156
- return result;
157
- };
158
- }
159
- var SignaturePad = class _SignaturePad extends SignatureEventTarget {
160
- constructor(canvas, options = {}) {
161
- super();
162
- _defineProperty(this, "dotSize", void 0);
163
- _defineProperty(this, "minWidth", void 0);
164
- _defineProperty(this, "maxWidth", void 0);
165
- _defineProperty(this, "penColor", void 0);
166
- _defineProperty(this, "minDistance", void 0);
167
- _defineProperty(this, "velocityFilterWeight", void 0);
168
- _defineProperty(this, "compositeOperation", void 0);
169
- _defineProperty(this, "backgroundColor", void 0);
170
- _defineProperty(this, "throttle", void 0);
171
- _defineProperty(this, "canvasContextOptions", void 0);
172
- _defineProperty(this, "_ctx", void 0);
173
- _defineProperty(this, "_drawingStroke", false);
174
- _defineProperty(this, "_isEmpty", true);
175
- _defineProperty(this, "_dataUrl", void 0);
176
- _defineProperty(this, "_dataUrlOptions", void 0);
177
- _defineProperty(this, "_lastPoints", []);
178
- _defineProperty(this, "_data", []);
179
- _defineProperty(this, "_lastVelocity", 0);
180
- _defineProperty(this, "_lastWidth", 0);
181
- _defineProperty(this, "_strokeMoveUpdate", void 0);
182
- _defineProperty(this, "_strokePointerId", void 0);
183
- this.canvas = canvas;
184
- this.velocityFilterWeight = options.velocityFilterWeight || .7;
185
- this.minWidth = options.minWidth || .5;
186
- this.maxWidth = options.maxWidth || 2.5;
187
- this.throttle = options.throttle ?? 16;
188
- this.minDistance = options.minDistance ?? 5;
189
- this.dotSize = options.dotSize || 0;
190
- this.penColor = options.penColor || "black";
191
- this.backgroundColor = options.backgroundColor || "rgba(0,0,0,0)";
192
- this.compositeOperation = options.compositeOperation || "source-over";
193
- this.canvasContextOptions = options.canvasContextOptions ?? {};
194
- this._strokeMoveUpdate = this.throttle ? throttle(_SignaturePad.prototype._strokeUpdate, this.throttle) : _SignaturePad.prototype._strokeUpdate;
195
- this._handleMouseDown = this._handleMouseDown.bind(this);
196
- this._handleMouseMove = this._handleMouseMove.bind(this);
197
- this._handleMouseUp = this._handleMouseUp.bind(this);
198
- this._handleTouchStart = this._handleTouchStart.bind(this);
199
- this._handleTouchMove = this._handleTouchMove.bind(this);
200
- this._handleTouchEnd = this._handleTouchEnd.bind(this);
201
- this._handlePointerDown = this._handlePointerDown.bind(this);
202
- this._handlePointerMove = this._handlePointerMove.bind(this);
203
- this._handlePointerUp = this._handlePointerUp.bind(this);
204
- this._handlePointerCancel = this._handlePointerCancel.bind(this);
205
- this._handleTouchCancel = this._handleTouchCancel.bind(this);
206
- this._ctx = canvas.getContext("2d", this.canvasContextOptions);
207
- this.clear();
208
- this.on();
209
- }
210
- clear() {
211
- const { _ctx: ctx, canvas } = this;
212
- ctx.fillStyle = this.backgroundColor;
213
- ctx.clearRect(0, 0, canvas.width, canvas.height);
214
- ctx.fillRect(0, 0, canvas.width, canvas.height);
215
- this._data = [];
216
- this._reset(this._getPointGroupOptions());
217
- this._isEmpty = true;
218
- this._dataUrl = void 0;
219
- this._dataUrlOptions = void 0;
220
- this._strokePointerId = void 0;
221
- }
222
- redraw() {
223
- const data = this._data;
224
- const dataUrl = this._dataUrl;
225
- const dataUrlOptions = this._dataUrlOptions;
226
- this.clear();
227
- if (dataUrl) this.fromDataURL(dataUrl, dataUrlOptions);
228
- this.fromData(data, { clear: false });
229
- }
230
- fromDataURL(dataUrl, options = {}) {
231
- return new Promise((resolve, reject) => {
232
- const image = new Image();
233
- const ratio = options.ratio || window.devicePixelRatio || 1;
234
- const width = options.width || this.canvas.width / ratio;
235
- const height = options.height || this.canvas.height / ratio;
236
- const xOffset = options.xOffset || 0;
237
- const yOffset = options.yOffset || 0;
238
- this._reset(this._getPointGroupOptions());
239
- image.onload = () => {
240
- this._ctx.drawImage(image, xOffset, yOffset, width, height);
241
- resolve();
242
- };
243
- image.onerror = (error) => {
244
- reject(error);
245
- };
246
- image.crossOrigin = "anonymous";
247
- image.src = dataUrl;
248
- this._isEmpty = false;
249
- this._dataUrl = dataUrl;
250
- this._dataUrlOptions = { ...options };
251
- });
252
- }
253
- toDataURL(type = "image/png", encoderOptions) {
254
- switch (type) {
255
- case "image/svg+xml":
256
- if (typeof encoderOptions !== "object") encoderOptions = void 0;
257
- return `data:image/svg+xml;base64,${btoa(this.toSVG(encoderOptions))}`;
258
- default:
259
- if (typeof encoderOptions !== "number") encoderOptions = void 0;
260
- return this.canvas.toDataURL(type, encoderOptions);
261
- }
262
- }
263
- on() {
264
- this.canvas.style.touchAction = "none";
265
- this.canvas.style.msTouchAction = "none";
266
- this.canvas.style.userSelect = "none";
267
- this.canvas.style.webkitUserSelect = "none";
268
- const isIOS = /Macintosh/.test(navigator.userAgent) && "ontouchstart" in document;
269
- if (window.PointerEvent && !isIOS) this._handlePointerEvents();
270
- else {
271
- this._handleMouseEvents();
272
- if ("ontouchstart" in window) this._handleTouchEvents();
273
- }
274
- }
275
- off() {
276
- this.canvas.style.touchAction = "auto";
277
- this.canvas.style.msTouchAction = "auto";
278
- this.canvas.style.userSelect = "auto";
279
- this.canvas.style.webkitUserSelect = "auto";
280
- this.canvas.removeEventListener("pointerdown", this._handlePointerDown);
281
- this.canvas.removeEventListener("mousedown", this._handleMouseDown);
282
- this.canvas.removeEventListener("touchstart", this._handleTouchStart);
283
- this._removeMoveUpEventListeners();
284
- }
285
- _getListenerFunctions() {
286
- const canvasWindow = window.document === this.canvas.ownerDocument ? window : this.canvas.ownerDocument.defaultView ?? this.canvas.ownerDocument;
287
- return {
288
- addEventListener: canvasWindow.addEventListener.bind(canvasWindow),
289
- removeEventListener: canvasWindow.removeEventListener.bind(canvasWindow)
290
- };
291
- }
292
- _removeMoveUpEventListeners() {
293
- const { removeEventListener } = this._getListenerFunctions();
294
- removeEventListener("pointermove", this._handlePointerMove);
295
- removeEventListener("pointerup", this._handlePointerUp);
296
- removeEventListener("pointercancel", this._handlePointerCancel);
297
- removeEventListener("mousemove", this._handleMouseMove);
298
- removeEventListener("mouseup", this._handleMouseUp);
299
- removeEventListener("touchmove", this._handleTouchMove);
300
- removeEventListener("touchend", this._handleTouchEnd);
301
- removeEventListener("touchcancel", this._handleTouchCancel);
302
- }
303
- isEmpty() {
304
- return this._isEmpty;
305
- }
306
- fromData(pointGroups, { clear = true } = {}) {
307
- if (clear) this.clear();
308
- this._fromData(pointGroups, this._drawCurve.bind(this), this._drawDot.bind(this));
309
- this._data = this._data.concat(pointGroups);
310
- }
311
- toData() {
312
- return this._data;
313
- }
314
- _isLeftButtonPressed(event, only) {
315
- if (only) return event.buttons === 1;
316
- return (event.buttons & 1) === 1;
317
- }
318
- _pointerEventToSignatureEvent(event) {
319
- return {
320
- event,
321
- type: event.type,
322
- x: event.clientX,
323
- y: event.clientY,
324
- pressure: "pressure" in event ? event.pressure : 0
325
- };
326
- }
327
- _touchEventToSignatureEvent(event) {
328
- const touch = event.changedTouches[0];
329
- return {
330
- event,
331
- type: event.type,
332
- x: touch.clientX,
333
- y: touch.clientY,
334
- pressure: touch.force
335
- };
336
- }
337
- _handleMouseDown(event) {
338
- if (!this._isLeftButtonPressed(event, true) || this._drawingStroke) return;
339
- this._strokeBegin(this._pointerEventToSignatureEvent(event));
340
- }
341
- _handleMouseMove(event) {
342
- if (!this._isLeftButtonPressed(event, true) || !this._drawingStroke) {
343
- this._strokeEnd(this._pointerEventToSignatureEvent(event), false);
344
- return;
345
- }
346
- this._strokeMoveUpdate(this._pointerEventToSignatureEvent(event));
347
- }
348
- _handleMouseUp(event) {
349
- if (this._isLeftButtonPressed(event)) return;
350
- this._strokeEnd(this._pointerEventToSignatureEvent(event));
351
- }
352
- _handleTouchStart(event) {
353
- if (event.targetTouches.length !== 1 || this._drawingStroke) return;
354
- if (event.cancelable) event.preventDefault();
355
- this._strokeBegin(this._touchEventToSignatureEvent(event));
356
- }
357
- _handleTouchMove(event) {
358
- if (event.targetTouches.length !== 1) return;
359
- if (event.cancelable) event.preventDefault();
360
- if (!this._drawingStroke) {
361
- this._strokeEnd(this._touchEventToSignatureEvent(event), false);
362
- return;
363
- }
364
- this._strokeMoveUpdate(this._touchEventToSignatureEvent(event));
365
- }
366
- _handleTouchEnd(event) {
367
- if (event.targetTouches.length !== 0) return;
368
- if (event.cancelable) event.preventDefault();
369
- this._strokeEnd(this._touchEventToSignatureEvent(event));
370
- }
371
- _handlePointerCancel(event) {
372
- if (!this._allowPointerId(event)) return;
373
- event.preventDefault();
374
- this._strokeEnd(this._pointerEventToSignatureEvent(event), false);
375
- }
376
- _handleTouchCancel(event) {
377
- if (event.cancelable) event.preventDefault();
378
- this._strokeEnd(this._touchEventToSignatureEvent(event), false);
379
- }
380
- _getPointerId(event) {
381
- return event.persistentDeviceId || event.pointerId;
382
- }
383
- _allowPointerId(event, allowUndefined = false) {
384
- if (typeof this._strokePointerId === "undefined") return allowUndefined;
385
- return this._getPointerId(event) === this._strokePointerId;
386
- }
387
- _handlePointerDown(event) {
388
- if (this._drawingStroke || !this._isLeftButtonPressed(event) || !this._allowPointerId(event, true)) return;
389
- this._strokePointerId = this._getPointerId(event);
390
- event.preventDefault();
391
- this._strokeBegin(this._pointerEventToSignatureEvent(event));
392
- }
393
- _handlePointerMove(event) {
394
- if (!this._allowPointerId(event)) return;
395
- if (!this._isLeftButtonPressed(event, true) || !this._drawingStroke) {
396
- this._strokeEnd(this._pointerEventToSignatureEvent(event), false);
397
- return;
398
- }
399
- event.preventDefault();
400
- this._strokeMoveUpdate(this._pointerEventToSignatureEvent(event));
401
- }
402
- _handlePointerUp(event) {
403
- if (this._isLeftButtonPressed(event) || !this._allowPointerId(event)) return;
404
- event.preventDefault();
405
- this._strokeEnd(this._pointerEventToSignatureEvent(event));
406
- }
407
- _getPointGroupOptions(group) {
408
- return {
409
- penColor: group && "penColor" in group ? group.penColor : this.penColor,
410
- dotSize: group && "dotSize" in group ? group.dotSize : this.dotSize,
411
- minWidth: group && "minWidth" in group ? group.minWidth : this.minWidth,
412
- maxWidth: group && "maxWidth" in group ? group.maxWidth : this.maxWidth,
413
- velocityFilterWeight: group && "velocityFilterWeight" in group ? group.velocityFilterWeight : this.velocityFilterWeight,
414
- compositeOperation: group && "compositeOperation" in group ? group.compositeOperation : this.compositeOperation
415
- };
416
- }
417
- _strokeBegin(event) {
418
- if (!this.dispatchEvent(new CustomEvent("beginStroke", {
419
- detail: event,
420
- cancelable: true
421
- }))) return;
422
- const { addEventListener } = this._getListenerFunctions();
423
- switch (event.event.type) {
424
- case "mousedown":
425
- addEventListener("mousemove", this._handleMouseMove, { passive: false });
426
- addEventListener("mouseup", this._handleMouseUp, { passive: false });
427
- break;
428
- case "touchstart":
429
- addEventListener("touchmove", this._handleTouchMove, { passive: false });
430
- addEventListener("touchend", this._handleTouchEnd, { passive: false });
431
- addEventListener("touchcancel", this._handleTouchCancel, { passive: false });
432
- break;
433
- case "pointerdown":
434
- addEventListener("pointermove", this._handlePointerMove, { passive: false });
435
- addEventListener("pointerup", this._handlePointerUp, { passive: false });
436
- addEventListener("pointercancel", this._handlePointerCancel, { passive: false });
437
- break;
438
- default:
439
- }
440
- this._drawingStroke = true;
441
- const pointGroupOptions = this._getPointGroupOptions();
442
- const newPointGroup = {
443
- ...pointGroupOptions,
444
- points: []
445
- };
446
- this._data.push(newPointGroup);
447
- this._reset(pointGroupOptions);
448
- this._strokeUpdate(event);
449
- }
450
- _strokeUpdate(event) {
451
- if (!this._drawingStroke) return;
452
- if (this._data.length === 0) {
453
- this._strokeBegin(event);
454
- return;
455
- }
456
- this.dispatchEvent(new CustomEvent("beforeUpdateStroke", { detail: event }));
457
- const point = this._createPoint(event.x, event.y, event.pressure);
458
- const lastPointGroup = this._data[this._data.length - 1];
459
- const lastPoints = lastPointGroup.points;
460
- const lastPoint = lastPoints.length > 0 && lastPoints[lastPoints.length - 1];
461
- const isLastPointTooClose = lastPoint ? point.distanceTo(lastPoint) <= this.minDistance : false;
462
- const pointGroupOptions = this._getPointGroupOptions(lastPointGroup);
463
- if (!lastPoint || !(lastPoint && isLastPointTooClose)) {
464
- const curve = this._addPoint(point, pointGroupOptions);
465
- if (!lastPoint) this._drawDot(point, pointGroupOptions);
466
- else if (curve) this._drawCurve(curve, pointGroupOptions);
467
- lastPoints.push({
468
- time: point.time,
469
- x: point.x,
470
- y: point.y,
471
- pressure: point.pressure
472
- });
473
- }
474
- this.dispatchEvent(new CustomEvent("afterUpdateStroke", { detail: event }));
475
- }
476
- _strokeEnd(event, shouldUpdate = true) {
477
- this._removeMoveUpEventListeners();
478
- if (!this._drawingStroke) return;
479
- if (shouldUpdate) this._strokeUpdate(event);
480
- this._drawingStroke = false;
481
- this._strokePointerId = void 0;
482
- this.dispatchEvent(new CustomEvent("endStroke", { detail: event }));
483
- }
484
- _handlePointerEvents() {
485
- this._drawingStroke = false;
486
- this.canvas.addEventListener("pointerdown", this._handlePointerDown, { passive: false });
487
- }
488
- _handleMouseEvents() {
489
- this._drawingStroke = false;
490
- this.canvas.addEventListener("mousedown", this._handleMouseDown, { passive: false });
491
- }
492
- _handleTouchEvents() {
493
- this.canvas.addEventListener("touchstart", this._handleTouchStart, { passive: false });
494
- }
495
- _reset(options) {
496
- this._lastPoints = [];
497
- this._lastVelocity = 0;
498
- this._lastWidth = (options.minWidth + options.maxWidth) / 2;
499
- this._ctx.fillStyle = options.penColor;
500
- this._ctx.globalCompositeOperation = options.compositeOperation;
501
- }
502
- _createPoint(x, y, pressure) {
503
- const rect = this.canvas.getBoundingClientRect();
504
- return new Point(x - rect.left, y - rect.top, pressure, (/* @__PURE__ */ new Date()).getTime());
505
- }
506
- _addPoint(point, options) {
507
- const { _lastPoints } = this;
508
- _lastPoints.push(point);
509
- if (_lastPoints.length > 2) {
510
- if (_lastPoints.length === 3) _lastPoints.unshift(_lastPoints[0]);
511
- const widths = this._calculateCurveWidths(_lastPoints[1], _lastPoints[2], options);
512
- const curve = Bezier.fromPoints(_lastPoints, widths);
513
- _lastPoints.shift();
514
- return curve;
515
- }
516
- return null;
517
- }
518
- _calculateCurveWidths(startPoint, endPoint, options) {
519
- const velocity = options.velocityFilterWeight * endPoint.velocityFrom(startPoint) + (1 - options.velocityFilterWeight) * this._lastVelocity;
520
- const newWidth = this._strokeWidth(velocity, options);
521
- const widths = {
522
- end: newWidth,
523
- start: this._lastWidth
524
- };
525
- this._lastVelocity = velocity;
526
- this._lastWidth = newWidth;
527
- return widths;
528
- }
529
- _strokeWidth(velocity, options) {
530
- return Math.max(options.maxWidth / (velocity + 1), options.minWidth);
531
- }
532
- _drawCurveSegment(x, y, width) {
533
- const ctx = this._ctx;
534
- ctx.moveTo(x, y);
535
- ctx.arc(x, y, width, 0, 2 * Math.PI, false);
536
- this._isEmpty = false;
537
- }
538
- _drawCurve(curve, options) {
539
- const ctx = this._ctx;
540
- const widthDelta = curve.endWidth - curve.startWidth;
541
- const drawSteps = Math.ceil(curve.length()) * 2;
542
- ctx.beginPath();
543
- ctx.fillStyle = options.penColor;
544
- for (let i = 0; i < drawSteps; i += 1) {
545
- const t = i / drawSteps;
546
- const tt = t * t;
547
- const ttt = tt * t;
548
- const u = 1 - t;
549
- const uu = u * u;
550
- const uuu = uu * u;
551
- let x = uuu * curve.startPoint.x;
552
- x += 3 * uu * t * curve.control1.x;
553
- x += 3 * u * tt * curve.control2.x;
554
- x += ttt * curve.endPoint.x;
555
- let y = uuu * curve.startPoint.y;
556
- y += 3 * uu * t * curve.control1.y;
557
- y += 3 * u * tt * curve.control2.y;
558
- y += ttt * curve.endPoint.y;
559
- const width = Math.min(curve.startWidth + ttt * widthDelta, options.maxWidth);
560
- this._drawCurveSegment(x, y, width);
561
- }
562
- ctx.closePath();
563
- ctx.fill();
564
- }
565
- _drawDot(point, options) {
566
- const ctx = this._ctx;
567
- const width = options.dotSize > 0 ? options.dotSize : (options.minWidth + options.maxWidth) / 2;
568
- ctx.beginPath();
569
- this._drawCurveSegment(point.x, point.y, width);
570
- ctx.closePath();
571
- ctx.fillStyle = options.penColor;
572
- ctx.fill();
573
- }
574
- _fromData(pointGroups, drawCurve, drawDot) {
575
- for (const group of pointGroups) {
576
- const { points } = group;
577
- const pointGroupOptions = this._getPointGroupOptions(group);
578
- if (points.length > 1) for (let j = 0; j < points.length; j += 1) {
579
- const basicPoint = points[j];
580
- const point = new Point(basicPoint.x, basicPoint.y, basicPoint.pressure, basicPoint.time);
581
- if (j === 0) this._reset(pointGroupOptions);
582
- const curve = this._addPoint(point, pointGroupOptions);
583
- if (curve) drawCurve(curve, pointGroupOptions);
584
- }
585
- else {
586
- this._reset(pointGroupOptions);
587
- drawDot(points[0], pointGroupOptions);
588
- }
589
- }
590
- }
591
- toSVG({ includeBackgroundColor = false, includeDataUrl = false } = {}) {
592
- const pointGroups = this._data;
593
- const ratio = Math.max(window.devicePixelRatio || 1, 1);
594
- const minX = 0;
595
- const minY = 0;
596
- const maxX = this.canvas.width / ratio;
597
- const maxY = this.canvas.height / ratio;
598
- const svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
599
- svg.setAttribute("xmlns", "http://www.w3.org/2000/svg");
600
- svg.setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink");
601
- svg.setAttribute("viewBox", `${minX} ${minY} ${maxX} ${maxY}`);
602
- svg.setAttribute("width", maxX.toString());
603
- svg.setAttribute("height", maxY.toString());
604
- if (includeBackgroundColor && this.backgroundColor) {
605
- const rect = document.createElement("rect");
606
- rect.setAttribute("width", "100%");
607
- rect.setAttribute("height", "100%");
608
- rect.setAttribute("fill", this.backgroundColor);
609
- svg.appendChild(rect);
610
- }
611
- if (includeDataUrl && this._dataUrl) {
612
- const ratio2 = this._dataUrlOptions?.ratio || window.devicePixelRatio || 1;
613
- const width = this._dataUrlOptions?.width || this.canvas.width / ratio2;
614
- const height = this._dataUrlOptions?.height || this.canvas.height / ratio2;
615
- const xOffset = this._dataUrlOptions?.xOffset || 0;
616
- const yOffset = this._dataUrlOptions?.yOffset || 0;
617
- const image = document.createElement("image");
618
- image.setAttribute("x", xOffset.toString());
619
- image.setAttribute("y", yOffset.toString());
620
- image.setAttribute("width", width.toString());
621
- image.setAttribute("height", height.toString());
622
- image.setAttribute("preserveAspectRatio", "none");
623
- image.setAttribute("href", this._dataUrl);
624
- svg.appendChild(image);
625
- }
626
- this._fromData(pointGroups, (curve, { penColor }) => {
627
- const path = document.createElement("path");
628
- if (!isNaN(curve.control1.x) && !isNaN(curve.control1.y) && !isNaN(curve.control2.x) && !isNaN(curve.control2.y)) {
629
- const attr = `M ${curve.startPoint.x.toFixed(3)},${curve.startPoint.y.toFixed(3)} C ${curve.control1.x.toFixed(3)},${curve.control1.y.toFixed(3)} ${curve.control2.x.toFixed(3)},${curve.control2.y.toFixed(3)} ${curve.endPoint.x.toFixed(3)},${curve.endPoint.y.toFixed(3)}`;
630
- path.setAttribute("d", attr);
631
- path.setAttribute("stroke-width", (curve.endWidth * 2.25).toFixed(3));
632
- path.setAttribute("stroke", penColor);
633
- path.setAttribute("fill", "none");
634
- path.setAttribute("stroke-linecap", "round");
635
- svg.appendChild(path);
636
- }
637
- }, (point, { penColor, dotSize, minWidth, maxWidth }) => {
638
- const circle = document.createElement("circle");
639
- const size = dotSize > 0 ? dotSize : (minWidth + maxWidth) / 2;
640
- circle.setAttribute("r", size.toString());
641
- circle.setAttribute("cx", point.x.toString());
642
- circle.setAttribute("cy", point.y.toString());
643
- circle.setAttribute("fill", penColor);
644
- svg.appendChild(circle);
645
- });
646
- return svg.outerHTML;
647
- }
648
- };
649
- //#endregion
650
- //#region src/styles/resolveCssVariableToHex.ts
651
- var resolveCssVariableToHex = (cssVar) => {
652
- if (typeof document === "undefined") return null;
653
- const tempEl = document.createElement("div");
654
- tempEl.style.color = cssVar;
655
- tempEl.style.position = "absolute";
656
- tempEl.style.visibility = "hidden";
657
- document.body.appendChild(tempEl);
658
- const computedColor = getComputedStyle(tempEl).color;
659
- document.body.removeChild(tempEl);
660
- if (!computedColor || computedColor === "transparent") return null;
661
- const rgbMatch = computedColor.match(/\d+/g);
662
- if (rgbMatch && rgbMatch.length >= 3) {
663
- const r = Number.parseInt(rgbMatch[0], 10);
664
- const g = Number.parseInt(rgbMatch[1], 10);
665
- const b = Number.parseInt(rgbMatch[2], 10);
666
- const toHex = (n) => {
667
- const hex = n.toString(16);
668
- return hex.length === 1 ? `0${hex}` : hex;
669
- };
670
- return `#${toHex(r)}${toHex(g)}${toHex(b)}`;
671
- }
672
- return null;
673
- };
674
- //#endregion
675
- //#region src/modules/signature/signatureCanvas.tsx
676
- var SIGNATURE_PEN_COLOR = "var(--icon-neutral-800)";
677
- /** Fixed white background for export (avoid transparency and theme dependency) */
678
- var EXPORT_BACKGROUND_COLOR = "#ffffff";
679
- var copyCanvasWithWhiteBackground = (source) => {
680
- const target = document.createElement("canvas");
681
- target.width = source.width;
682
- target.height = source.height;
683
- const ctx = target.getContext("2d");
684
- if (!ctx) throw new Error("Canvas 2D context is not available");
685
- ctx.fillStyle = EXPORT_BACKGROUND_COLOR;
686
- ctx.fillRect(0, 0, target.width, target.height);
687
- ctx.drawImage(source, 0, 0);
688
- return target;
689
- };
690
- var canvasToBlob = (canvas, mimeType, quality) => {
691
- return new Promise((resolve, reject) => {
692
- canvas.toBlob((blob) => {
693
- if (blob) resolve(blob);
694
- else reject(/* @__PURE__ */ new Error("Canvas toBlob() returned null"));
695
- }, mimeType, mimeType === "image/jpeg" || mimeType === "image/webp" ? quality : void 0);
696
- });
697
- };
698
- var SignatureCanvas = D(({ onBeginStroke, hasDrawing, placeholder, ariaLabel, customPenColor, customPenStrokeWidth, customBackgroundColor, customBorderColor }, ref) => {
699
- const containerRef = A(null);
700
- const canvasRef = A(null);
701
- const signaturePadRef = A(null);
702
- const onBeginStrokeRef = A(onBeginStroke);
703
- onBeginStrokeRef.current = onBeginStroke;
704
- const resizeSignaturePad = q(() => {
705
- const container = containerRef.current;
706
- const canvas = canvasRef.current;
707
- const pad = signaturePadRef.current;
708
- if (!container || !canvas || !pad) return;
709
- const ratio = Math.max(window.devicePixelRatio || 1, 1);
710
- const context = canvas.getContext("2d");
711
- const { width, height } = container.getBoundingClientRect();
712
- if (width === 0 || height === 0 || !context) return;
713
- const data = pad.isEmpty() ? null : pad.toData();
714
- canvas.width = Math.floor(width * ratio);
715
- canvas.height = Math.floor(height * ratio);
716
- context.setTransform(ratio, 0, 0, ratio, 0, 0);
717
- if (data) pad.fromData(data, { clear: true });
718
- else pad.clear();
719
- }, []);
720
- F(ref, () => ({
721
- clear: () => {
722
- signaturePadRef.current?.clear();
723
- },
724
- isEmpty: () => signaturePadRef.current?.isEmpty() ?? true,
725
- toDataURL: (type = "image/png", encoderOptions) => signaturePadRef.current?.toDataURL(type, encoderOptions) ?? "",
726
- getCanvas: () => canvasRef.current,
727
- getSignaturePad: () => signaturePadRef.current,
728
- on: () => signaturePadRef.current?.on(),
729
- off: () => signaturePadRef.current?.off(),
730
- getSignatureWithWhiteBackground: () => {
731
- const canvas = canvasRef.current;
732
- if (!canvas) return null;
733
- return copyCanvasWithWhiteBackground(canvas);
734
- },
735
- getBlob: (canvas = canvasRef.current ?? void 0, mimeType = "image/jpeg", quality = .92) => {
736
- if (!canvas) return Promise.reject(/* @__PURE__ */ new Error("No canvas available for getBlob"));
737
- return canvasToBlob(canvas, mimeType, quality);
738
- }
739
- }), []);
740
- y(() => {
741
- const container = containerRef.current;
742
- const canvas = canvasRef.current;
743
- if (!container || !canvas) return;
744
- let resizeRafId = null;
745
- const scheduleResizeSignaturePad = () => {
746
- if (resizeRafId !== null) return;
747
- resizeRafId = requestAnimationFrame(() => {
748
- resizeRafId = null;
749
- resizeSignaturePad();
750
- });
751
- };
752
- const penColor = customPenColor ?? resolveCssVariableToHex(SIGNATURE_PEN_COLOR);
753
- const signaturePad = new SignaturePad(canvas, {
754
- ...penColor ? { penColor } : {},
755
- ...customPenStrokeWidth ? { maxWidth: customPenStrokeWidth } : {}
756
- });
757
- signaturePadRef.current = signaturePad;
758
- const onBegin = () => onBeginStrokeRef.current?.();
759
- signaturePad.addEventListener("beginStroke", onBegin);
760
- resizeSignaturePad();
761
- const resizeObserver = new ResizeObserver(() => {
762
- scheduleResizeSignaturePad();
763
- });
764
- resizeObserver.observe(container);
765
- return () => {
766
- if (resizeRafId !== null) cancelAnimationFrame(resizeRafId);
767
- resizeObserver.disconnect();
768
- signaturePad.removeEventListener("beginStroke", onBegin);
769
- signaturePad.off();
770
- signaturePadRef.current = null;
771
- };
772
- }, [
773
- resizeSignaturePad,
774
- customPenColor,
775
- customPenStrokeWidth
776
- ]);
777
- return /* @__PURE__ */ u("div", {
778
- class: "IncodeSignatureCanvasContainer",
779
- style: customBackgroundColor || customBorderColor ? {
780
- ...customBackgroundColor ? { backgroundColor: customBackgroundColor } : {},
781
- ...customBorderColor ? { borderColor: customBorderColor } : {}
782
- } : void 0,
783
- ref: containerRef,
784
- children: [/* @__PURE__ */ u("canvas", {
785
- class: "IncodeSignatureCanvas",
786
- ref: canvasRef,
787
- role: "img",
788
- "aria-label": ariaLabel ?? placeholder,
789
- "data-testid": "signature-canvas"
790
- }), !hasDrawing && /* @__PURE__ */ u("p", {
791
- class: "IncodeSignatureCanvasPlaceholder",
792
- "aria-hidden": "true",
793
- children: placeholder
794
- })]
795
- });
796
- });
797
- SignatureCanvas.displayName = "SignatureCanvas";
798
- //#endregion
799
12
  //#region src/modules/signature/signature.tsx
800
13
  var SignatureContent = ({ config, manager: externalManager, onFinish, onError }) => {
801
14
  const { t } = useTranslation();