@incodetech/web 2.5.0-rc.7 → 2.5.0-rc.9

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 (261) hide show
  1. package/dist/{GeolocationPermissionDenied-BR9l25e1.js → GeolocationPermissionDenied-0B33i_00.js} +3 -3
  2. package/dist/{Password-B73tO_0m.js → Password--d-xAEbm.js} +1 -1
  3. package/dist/{RadioGroup-C9GXroAz.js → RadioGroup-m1HQ9AD6.js} +1 -1
  4. package/dist/{ekycModule-jJmV2I_l.js → Stepper-C2mCtkSd.js} +3 -377
  5. package/dist/{TextField-RDQtWpyg.js → TextField-B5TOHuK-.js} +1 -1
  6. package/dist/ae-signature/ae-signature.es.js +3 -3
  7. package/dist/{af-ZA-DupE1aGM.js → af-ZA-CS0Zb4Qv.js} +24 -0
  8. package/dist/{ageVerification-CR92-Fuu.js → ageVerification-CJoxrUhR.js} +3 -3
  9. package/dist/{am-Cg4VmUon.js → am-D-kHjues.js} +24 -0
  10. package/dist/antifraud/antifraud.es.js +4 -4
  11. package/dist/{applyStudioConfig-UcjnCmtU.js → applyStudioConfig-z5E6aHvI.js} +1 -1
  12. package/dist/{ar-AE-JL9ul6zH.js → ar-AE-C7KTyA4-.js} +24 -0
  13. package/dist/{ar-AwS7bGhI.js → ar-DVNz1O5K.js} +24 -0
  14. package/dist/{ar-EG-bzdb06vP.js → ar-EG-lRASRFi1.js} +24 -0
  15. package/dist/assets/great-vibes-latin-400-normal.woff2 +0 -0
  16. package/dist/assets/great-vibes-latin-ext-400-normal.woff2 +0 -0
  17. package/dist/authentication/authentication.es.js +6 -6
  18. package/dist/{autoFocusTitle-D2jJIich.js → autoFocusTitle-n8wjEbiD.js} +1 -1
  19. package/dist/{az-AOaj2_CW.js → az-B4x-MAvN.js} +24 -0
  20. package/dist/{baseTutorial-uC1WwI5Q.js → baseTutorial-1rNtbN_W.js} +2 -2
  21. package/dist/{bn-BDaegzZY.js → bn-b7xChbLV.js} +24 -0
  22. package/dist/{bottomSheet-CUuHqiiw.js → bottomSheet-CpT03Ad0.js} +2 -2
  23. package/dist/{bs-Dj30t0JP.js → bs-DKCj1AKk.js} +24 -0
  24. package/dist/{ca-Cb1jkIer.js → ca-CngftxPi.js} +24 -0
  25. package/dist/cameraOverlay-Cbqv0zu8.js +2 -0
  26. package/dist/{cameraOverlayHeader-CLNKydJt.js → cameraOverlayHeader-BWil1uaf.js} +3 -3
  27. package/dist/{cameraView-qm_SI6CN.js → cameraView-Ci4vNmhR.js} +1 -1
  28. package/dist/{capture-DYwT0bcM.js → capture-7Q4HCfly.js} +19 -19
  29. package/dist/capture-BFq1DvnX.js +2 -0
  30. package/dist/{capture-DIvXYAHs.js → capture-CztXxcpZ.js} +8 -8
  31. package/dist/capture-IoV35tKv.js +3 -0
  32. package/dist/{captureFocusContext-Bo52JTWE.js → captureFocusContext-DrNf5C3a.js} +8 -8
  33. package/dist/{captureFooter-B-uIO01g.js → captureFooter-C9nDhlAl.js} +3 -3
  34. package/dist/{ceb-CO2DSlNK.js → ceb-CmBMQbQ7.js} +24 -0
  35. package/dist/certificate-issuance/certificate-issuance.es.js +9 -9
  36. package/dist/{checkbox-lnZNKnWO.js → checkbox-MV1niIg8.js} +1 -1
  37. package/dist/{chooser-BLBnFUEY.js → chooser-2Ho7jvM3.js} +7 -7
  38. package/dist/{connectionError-CAmQYZ59.js → connectionError-C3Im29Lf.js} +3 -3
  39. package/dist/consent/consent.es.js +8 -8
  40. package/dist/{countrySelector-CinKyZha.js → countrySelector-BPam1aCa.js} +2 -2
  41. package/dist/cross-document-data-match/cross-document-data-match.es.js +4 -4
  42. package/dist/{cs-iIw6mjtE.js → cs-BH68Q-C4.js} +24 -0
  43. package/dist/{cs-CZ-DG11Ji4H.js → cs-CZ-DPHCQf3g.js} +24 -0
  44. package/dist/curp-validation/curp-validation.es.js +13 -13
  45. package/dist/{customFields-DDfmSX_M.js → customFields-BB57PsXB.js} +10 -10
  46. package/dist/{customWatchlist-DaHTF-TB.js → customWatchlist-D8W87ICM.js} +5 -5
  47. package/dist/{da-DK-BoyBuy2Z.js → da-DK-DVRf10dC.js} +24 -0
  48. package/dist/{dashboardTheme-BY-C2h8X.js → dashboardTheme-CK5LxON_.js} +1 -1
  49. package/dist/dateInputComposed-DLGKTsq6.js +1 -0
  50. package/dist/{dateInputComposed-c892J-FV.js → dateInputComposed-nPFeRZL7.js} +2 -2
  51. package/dist/{de-kckDkigo.js → de-CA4BDw6j.js} +24 -0
  52. package/dist/{denied-uUGJn0Eq.js → denied-OO72DOVK.js} +5 -5
  53. package/dist/{devWarn-B9c1I9Zm.js → devWarn-B_ZWD1Ma.js} +83 -83
  54. package/dist/{deviceWallet-DrUZ4Ndm.js → deviceWallet-Byz9FZYs.js} +3 -3
  55. package/dist/{digitalIdRedirect-BeEgCG7E.js → digitalIdRedirect-9hGFBiRp.js} +3 -3
  56. package/dist/{digitalIdUpload-Cxny-RVx.js → digitalIdUpload-BguY09ZU.js} +5 -5
  57. package/dist/document-capture/document-capture.es.js +1 -1
  58. package/dist/document-signature/document-signature.es.js +379 -0
  59. package/dist/document-signature/styles.css +2 -0
  60. package/dist/document-signature/styles.css.js +1 -0
  61. package/dist/documentCapture-C6HQKm3D.js +2 -0
  62. package/dist/{documentCapture-D8qfqp75.js → documentCapture-CTKnnysp.js} +19 -19
  63. package/dist/dropdownComposed-BFGEdY4f.js +1 -0
  64. package/dist/{dropdownComposed-BwyWBg1k.js → dropdownComposed-ZTDeSLHH.js} +1 -1
  65. package/dist/dynamic-forms/dynamic-forms.es.js +12 -12
  66. package/dist/ekyb/ekyb.es.js +1 -1
  67. package/dist/ekybModule-AdDNz24H.js +2 -0
  68. package/dist/{ekybModule-DAt9UvXw.js → ekybModule-g08S4MuW.js} +14 -14
  69. package/dist/ekyc/ekyc.es.js +1 -1
  70. package/dist/ekyc-prefill/ekyc-prefill.es.js +1 -1
  71. package/dist/ekycModule-Cij-OySe.js +377 -0
  72. package/dist/ekycModule-GilMv1ly.js +2 -0
  73. package/dist/{ekycPrefillModule-BHmCffr0.js → ekycPrefillModule-B50IPYzp.js} +13 -13
  74. package/dist/ekycPrefillModule-D2frVzI_.js +2 -0
  75. package/dist/{el-CkJr7Obh.js → el-111JzbMt.js} +24 -0
  76. package/dist/{el-GR-Dzs9fZSN.js → el-GR-pT9GxEa1.js} +24 -0
  77. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  78. package/dist/{electronic-signature-DQkB1NtD.js → electronic-signature-CEf-Emo4.js} +9 -9
  79. package/dist/email/email.es.js +8 -8
  80. package/dist/{emailInput-a3OyvD5W.js → emailInput-Dev6Jzea.js} +2 -2
  81. package/dist/{en-DqcdFaz8.js → en-Cy2zS5na.js} +24 -0
  82. package/dist/{en-DG-CiRitH1A.js → en-DG-BHF6fSEW.js} +24 -0
  83. package/dist/{errorContent-Csk_9Pff.js → errorContent-BMLVzZSN.js} +4 -4
  84. package/dist/{errorParams-BbDif_k_.js → errorParams-naQThyJF.js} +1 -1
  85. package/dist/{es-419-BuYQCis7.js → es-419-CraZYl8o.js} +1 -1
  86. package/dist/{es-dIdngRez.js → es-CHpulHKM.js} +24 -0
  87. package/dist/{es-ES-gpMaqe2p.js → es-ES-CXmNgF5x.js} +24 -0
  88. package/dist/{es-MX-BrAACxHj.js → es-MX-CEqve3tw.js} +24 -0
  89. package/dist/{et-ByuThIf4.js → et-7qcTjUbL.js} +24 -0
  90. package/dist/{expiredId-CMYSAzlq.js → expiredId-paVBuz70.js} +4 -4
  91. package/dist/extensibility.es.js +37 -37
  92. package/dist/{fa-IR-BJVvKcix.js → fa-IR-CfyoYnJ9.js} +24 -0
  93. package/dist/face-match/face-match.es.js +1 -1
  94. package/dist/{faceMatch-v84fcaLY.js → faceMatch-ApsFPC0x.js} +8 -8
  95. package/dist/faceMatch-CheOW9qu.js +2 -0
  96. package/dist/{fi-FI-FtyRHSI6.js → fi-FI-DtX0jexB.js} +24 -0
  97. package/dist/field-comparison/field-comparison.es.js +1 -1
  98. package/dist/{fieldComparison-FogIuD5r.js → fieldComparison-But3-xNi.js} +8 -8
  99. package/dist/fieldComparison-Dasafjh4.js +2 -0
  100. package/dist/{finalSuccessScreen-DV9PDmT5.js → finalSuccessScreen-DaZYsyoX.js} +10 -10
  101. package/dist/fiscal-qr/fiscal-qr.es.js +13 -13
  102. package/dist/{flipAnimation-DVirQhbq.js → flipAnimation-FItprthY.js} +4 -4
  103. package/dist/{flipCapturedCardEligibility-BaGqTFjl.js → flipCapturedCardEligibility-CYqCU_WD.js} +2 -2
  104. package/dist/flow/flow.es.js +17 -9
  105. package/dist/{formField-B7DD5pmm.js → formField-4Pv6yV_q.js} +3 -3
  106. package/dist/{fr-CA-DT0vQlrH.js → fr-CA-C-Z0qxfu.js} +24 -0
  107. package/dist/{fr-Bo-VnkiD.js → fr-DTPtjk0I.js} +24 -0
  108. package/dist/geolocation/geolocation.es.js +8 -8
  109. package/dist/government-validation/government-validation.es.js +6 -6
  110. package/dist/{he-TvDZLsyc.js → he-DiG3j9Ob.js} +24 -0
  111. package/dist/{hi-QZGikpiL.js → hi-Dy95_PJb.js} +24 -0
  112. package/dist/{hmn-PdVyVT0f.js → hmn-C6UKmSTc.js} +24 -0
  113. package/dist/{homeScreen-ByipnVnx.js → homeScreen-BilaT9aI.js} +5 -5
  114. package/dist/{hooks-CyPq-s9e.js → hooks-DlfCJbTr.js} +7 -7
  115. package/dist/{hr-BurgtWoq.js → hr-B3OnWPfN.js} +24 -0
  116. package/dist/{ht-VO9Q2fix.js → ht-CMHZsZzN.js} +24 -0
  117. package/dist/{hu-DKS-af7K.js → hu-DryyPd4v.js} +24 -0
  118. package/dist/id/id.es.js +34 -34
  119. package/dist/{id-CGQEt1-a.js → id-bJn3eqUy.js} +24 -0
  120. package/dist/id-selfie-flow/id-selfie-flow.es.js +12 -12
  121. package/dist/id-verification/id-verification.es.js +6 -6
  122. package/dist/{idFlipTransition-Dlkn48Nb.js → idFlipTransition-7lHtNXVy.js} +11 -11
  123. package/dist/{idOcr-fwZ40HJF.js → idOcr-CAgo6ApN.js} +10 -10
  124. package/dist/identity-reuse/identity-reuse.es.js +8 -8
  125. package/dist/{incodeComponent-YnByg9cm.js → incodeComponent-DSAIOlbW.js} +8 -8
  126. package/dist/{incodeModule-BSzjiLkM.js → incodeModule-BWaY51qG.js} +3 -3
  127. package/dist/index.es.js +3 -3
  128. package/dist/{inputComposed-RvM4KW_a.js → inputComposed-DWJ30g-2.js} +1 -1
  129. package/dist/{it-D_OVibOT.js → it-C6ItwxQt.js} +24 -0
  130. package/dist/{ja-JP-CJCJqW1o.js → ja-JP-DthJvk-L.js} +24 -0
  131. package/dist/{ja-DDw9RITP.js → ja-XvwHWZkM.js} +24 -0
  132. package/dist/{jv-YuDBxsLr.js → jv-D4n3BhDn.js} +24 -0
  133. package/dist/{ka-Bj2c9Sgl.js → ka-Cu5x-4dx.js} +24 -0
  134. package/dist/{kk-BoQwwK_V.js → kk-Bxn4Z_4p.js} +24 -0
  135. package/dist/{km-DzF7hAZK.js → km-QITgMcRW.js} +24 -0
  136. package/dist/{ko-KP-CR5tUUO4.js → ko-KP-abLpviTn.js} +24 -0
  137. package/dist/{ko-BHHfWaci.js → ko-iy9Ngf62.js} +24 -0
  138. package/dist/{ky-DZd_tqQc.js → ky-BHociaSA.js} +24 -0
  139. package/dist/kyb-checks/kyb-checks.es.js +1 -1
  140. package/dist/kybChecksModule-ByDfaHVo.js +2 -0
  141. package/dist/{kybChecksModule-B5BhywXA.js → kybChecksModule-KQDcGQ8T.js} +11 -11
  142. package/dist/{lo-CtKOFRC2.js → lo-BxygikZI.js} +24 -0
  143. package/dist/{lt-B-CyiKZP.js → lt-BtALddH6.js} +24 -0
  144. package/dist/{lv-C1AItIYb.js → lv-N9JcOAS7.js} +24 -0
  145. package/dist/{mandatoryConsent-Dg0E1xso.js → mandatoryConsent-DFskgvGi.js} +8 -8
  146. package/dist/{manualCaptureButton-Cu_idsp0.js → manualCaptureButton-BIpoP7Pc.js} +7 -7
  147. package/dist/{manualCaptureButton-fdTaewzg.js → manualCaptureButton-CPD79EuM.js} +2 -2
  148. package/dist/{mk-BemSEVRu.js → mk-axqEPbS7.js} +24 -0
  149. package/dist/{mn-uXyyeUdd.js → mn-CdQ93vMD.js} +24 -0
  150. package/dist/{ms-BJTdbpsn.js → ms-BJkudjku.js} +24 -0
  151. package/dist/{my-CzYNpA6m.js → my-AJydYOQk.js} +24 -0
  152. package/dist/{nb-NO-DfJiYiqE.js → nb-NO-91w8VGUC.js} +24 -0
  153. package/dist/{ne-ExqznoeT.js → ne-23ADmqx_.js} +24 -0
  154. package/dist/{nl-eSFKanvW.js → nl-FkXiVT4m.js} +24 -0
  155. package/dist/{optionAccessibleLabel-BRZCxlud.js → optionAccessibleLabel-vmiX9wqO.js} +5 -5
  156. package/dist/{otpInput-Bf5kyVX7.js → otpInput-D_bPyxY2.js} +3 -3
  157. package/dist/{page-DD0xdMgJ.js → page-DeOufwmM.js} +4 -4
  158. package/dist/{pageUiConfig-Fj_rR1FV.js → pageUiConfig-NTnoPniP.js} +2 -2
  159. package/dist/pdfViewer-D1yjvnM7.js +2 -0
  160. package/dist/{pdfViewer-DeZO-53D.js → pdfViewer-DBFxz2dx.js} +10 -5
  161. package/dist/{permissionInstructionList-DFAaBDmy.js → permissionInstructionList-BcuVjfek.js} +2 -2
  162. package/dist/{permissions-nm0JJvg1.js → permissions-CKVNMc66.js} +11 -11
  163. package/dist/phone/phone.es.js +9 -9
  164. package/dist/{phoneInputComposed-BcM7ni2T.js → phoneInputComposed-B-PsDEla.js} +2 -2
  165. package/dist/{pl-CcgG8Zrz.js → pl-tywnFeBV.js} +24 -0
  166. package/dist/{processing-B6w2AjSt.js → processing-DmUp12i5.js} +1 -1
  167. package/dist/{progressBar-B9UgkVU9.js → progressBar-X1jFGaPB.js} +1 -1
  168. package/dist/{pt-BR-xidRFt0O.js → pt-BR-CGxXhWH_.js} +24 -0
  169. package/dist/{pt-CaJL-8Wm.js → pt-CGyPI34z.js} +24 -0
  170. package/dist/{pt-PT-BemfAxYZ.js → pt-PT-DARZiN6M.js} +24 -0
  171. package/dist/qe-signature/qe-signature.es.js +3 -3
  172. package/dist/redirect-to-mobile/redirect-to-mobile.es.js +12 -112
  173. package/dist/{resendTimer-BqAZX50z.js → resendTimer-MSn2YJbl.js} +1 -1
  174. package/dist/{ro-Cr3LiAFO.js → ro-DtCalmHV.js} +24 -0
  175. package/dist/{ru-BEU13oLx.js → ru-CF91STw1.js} +24 -0
  176. package/dist/{ru-RU-Cin3exPK.js → ru-RU-CKTgDGKe.js} +24 -0
  177. package/dist/selfie/selfie.es.js +10 -10
  178. package/dist/signature/signature.es.js +9 -796
  179. package/dist/signatureCanvas-DuTVoQGO.js +795 -0
  180. package/dist/{sk-Dl0ibSAG.js → sk-B-e5UV3q.js} +24 -0
  181. package/dist/{sl-C96CpnZb.js → sl-BNy-sE8j.js} +24 -0
  182. package/dist/{smsTabContent-JZ7LYXU3.js → smsTabContent-CpA3UYBu.js} +5 -5
  183. package/dist/{so-j2TBuRQD.js → so-Wto3POqd.js} +24 -0
  184. package/dist/{spacer-BEXZYoty.js → spacer-WwMLXxnI.js} +10 -10
  185. package/dist/{spinner-Xk8AR7YA.js → spinner-IWELgrEX.js} +2 -2
  186. package/dist/{sr-B3OUCOCo.js → sr-C5oUbY7s.js} +24 -0
  187. package/dist/{sr-Latn-e5NF-Van.js → sr-Latn-XXmlsawS.js} +24 -0
  188. package/dist/{sr-YU-w5Gor-7m.js → sr-YU-C7FY55q8.js} +1 -1
  189. package/dist/{sv-SE-CU6-Qw8J.js → sv-SE-BLHM2veu.js} +24 -0
  190. package/dist/{sw-Dhszzd3n.js → sw-C39tMZhw.js} +24 -0
  191. package/dist/tabs-B8HU0IkA.js +104 -0
  192. package/dist/{th-yLHzdsZd.js → th-DiJ-dPT9.js} +24 -0
  193. package/dist/{th-TH-CP5CCahm.js → th-TH-DZSul0cd.js} +24 -0
  194. package/dist/themes/dark.css +1 -1
  195. package/dist/themes/light.css +1 -1
  196. package/dist/{tl-TdHnXVoM.js → tl-CTp6fdxV.js} +24 -0
  197. package/dist/{tl-PH-B5T_D6oa.js → tl-PH-RttCsl1j.js} +24 -0
  198. package/dist/{tr-CFW1Mpi2.js → tr-B1I1C8xn.js} +24 -0
  199. package/dist/{transitionSpinner-DfTz8dcL.js → transitionSpinner-raxlgp6d.js} +3 -3
  200. package/dist/{tutorial-Sqb1pNuP.js → tutorial-BGiAF5ID.js} +3 -3
  201. package/dist/types/document-signature.d.ts +208 -0
  202. package/dist/types/extensibility.d.ts +2 -0
  203. package/dist/{typography-Bc4jn0tt.js → typography-BE4Zx-5N.js} +1 -1
  204. package/dist/{uk-UA-BupzVL5p.js → uk-UA-BVb70zbt.js} +24 -0
  205. package/dist/{uk-BLIa8JGG.js → uk-fPpYpKFA.js} +24 -0
  206. package/dist/{ur-A2rfBmGe.js → ur-BkNxPXbQ.js} +24 -0
  207. package/dist/{useCaptureHelpButton-DS-lwBJ1.js → useCaptureHelpButton-BeuxBAH7.js} +2 -2
  208. package/dist/{uz-BOsoKrKz.js → uz-12t82qTm.js} +24 -0
  209. package/dist/{verificationResult-B27O0BSD.js → verificationResult-DmtPphWu.js} +6 -6
  210. package/dist/{vi-CBkbsUs-.js → vi-CeahlFh-.js} +24 -0
  211. package/dist/video-selfie/video-selfie.es.js +13 -13
  212. package/dist/watchlist/watchlist.es.js +5 -5
  213. package/dist/{watchlistForBusiness-Cd5_Qzha.js → watchlistForBusiness-gh-6WzU-.js} +9 -9
  214. package/dist/{withEndScreenTexts-DdmMlcfU.js → withEndScreenTexts-CS-Uylyh.js} +24 -18
  215. package/dist/workflow/workflow.es.js +11 -11
  216. package/dist/{zh-CCSd1OOu.js → zh-BFJOW_5h.js} +24 -0
  217. package/dist/{zh-CN-k2hU3_So.js → zh-CN-DGhEZgOq.js} +24 -0
  218. package/dist/{zh-HANT-BFHPubkp.js → zh-HANT-CrZLPKCa.js} +24 -0
  219. package/dist/{zh-TW-BqLwlUJp.js → zh-TW-C7hOiwoz.js} +24 -0
  220. package/package.json +12 -2
  221. package/dist/cameraOverlay-AO5fA2qP.js +0 -2
  222. package/dist/capture-CNfK8cak.js +0 -3
  223. package/dist/capture-DHv5ZrXl.js +0 -2
  224. package/dist/dateInputComposed-DNd6YcC6.js +0 -1
  225. package/dist/documentCapture-NV_ts9tv.js +0 -2
  226. package/dist/dropdownComposed-KwFvkqwA.js +0 -1
  227. package/dist/ekybModule-De0VnW4B.js +0 -2
  228. package/dist/ekycModule-DoWmZF0-.js +0 -2
  229. package/dist/ekycPrefillModule-BCfFhdy0.js +0 -2
  230. package/dist/faceMatch-wwRfSYXj.js +0 -2
  231. package/dist/fieldComparison-DBholcy9.js +0 -2
  232. package/dist/kybChecksModule-DLqCh8NZ.js +0 -2
  233. package/dist/pdfViewer-BkctTJG1.js +0 -2
  234. /package/dist/{aligndevicelottie-BEKzL4SB.js → aligndevicelottie-CQ7jczFR.js} +0 -0
  235. /package/dist/{back-horizontal-hint-Bci98ivl.js → back-horizontal-hint-sTbEroZE.js} +0 -0
  236. /package/dist/{back-tutorial-B9W63fa-.js → back-tutorial-klX9mKON.js} +0 -0
  237. /package/dist/{back-vertical-hint-DyPCItxn.js → back-vertical-hint-CNxFKi6x.js} +0 -0
  238. /package/dist/{backdevicelottie-DsN8QBV3.js → backdevicelottie-jTCNDpTU.js} +0 -0
  239. /package/dist/{blurdevicelottie-DkV7Kwo4.js → blurdevicelottie-pqGiMagI.js} +0 -0
  240. /package/dist/{flip-animation-DJVnWWL5.js → flip-animation-DCohSeJJ.js} +0 -0
  241. /package/dist/{front-horizontal-hint-LxyNVfjy.js → front-horizontal-hint-oczk0B6v.js} +0 -0
  242. /package/dist/{front-vertical-hint-BKEg_DRs.js → front-vertical-hint-CcM_F5Wd.js} +0 -0
  243. /package/dist/{frontdevicelottie-DiW1Wmya.js → frontdevicelottie-SI0idj7B.js} +0 -0
  244. /package/dist/{glaredevicelottie-CK-fnX_s.js → glaredevicelottie-cY1ha5U2.js} +0 -0
  245. /package/dist/{id-back-of-card-BhF5T4fC.js → id-back-of-card-B2DMU4Nz.js} +0 -0
  246. /package/dist/{id-back-of-card-vertical-BudLiGPR.js → id-back-of-card-vertical-BMw6DqdE.js} +0 -0
  247. /package/dist/{id-front-of-card-CiGcJhVW.js → id-front-of-card-BsQK8yYD.js} +0 -0
  248. /package/dist/{id-front-of-card-vertical-C_GyecLf.js → id-front-of-card-vertical-CEUjhlxr.js} +0 -0
  249. /package/dist/{id-laser-h-6Am_cjM8.js → id-laser-h-GvNl18UF.js} +0 -0
  250. /package/dist/{id-laser-v-DXoF3flH.js → id-laser-v-BDzt9JV6.js} +0 -0
  251. /package/dist/{id-tutorial-DkKH3eTE.js → id-tutorial-CbBP4tC3.js} +0 -0
  252. /package/dist/{lottie_light-Bam05Bc9.js → lottie_light-pO5qdkhZ.js} +0 -0
  253. /package/dist/{passport-horizontal-hint-Bn18pckF.js → passport-horizontal-hint-DqEhjOSq.js} +0 -0
  254. /package/dist/{passport-tutorial-D3Fpk-Tj.js → passport-tutorial-Dox3YU6v.js} +0 -0
  255. /package/dist/{passport-vertical-hint-D_bvTNZY.js → passport-vertical-hint-DRTZvYwh.js} +0 -0
  256. /package/dist/{pdf-DO_HvE8T.js → pdf-ImBucwwV.js} +0 -0
  257. /package/dist/{pdf.worker.min-D0hm-8jN.js → pdf.worker.min-3yVqy4Ya.js} +0 -0
  258. /package/dist/{preloadableLazy-KWGuHoqn.js → preloadableLazy-CVPMpVvd.js} +0 -0
  259. /package/dist/{sanitizeSvg-IfqLuP1N.js → sanitizeSvg-A_Z9ciep.js} +0 -0
  260. /package/dist/{selfieTutorial-DnsRD1Z9.js → selfieTutorial-C5EJxWzc.js} +0 -0
  261. /package/dist/{useModuleLoader-BCYS1xLP.js → useModuleLoader-BK8YwQig.js} +0 -0
@@ -0,0 +1,795 @@
1
+ import { b as y, d as F, i as D, u as A, v as q, x as u } from "./vendor-preact-CjnloSla.js";
2
+ import { t as _defineProperty } from "./defineProperty-B4FQTz14.js";
3
+ //#region ../../node_modules/.pnpm/signature_pad@5.1.3/node_modules/signature_pad/dist/signature_pad.js
4
+ /*!
5
+ * Signature Pad v5.1.3 | https://github.com/szimek/signature_pad
6
+ * (c) 2025 Szymon Nowak | Released under the MIT license
7
+ */
8
+ var Point = class {
9
+ constructor(x, y, pressure, time) {
10
+ _defineProperty(this, "x", void 0);
11
+ _defineProperty(this, "y", void 0);
12
+ _defineProperty(this, "pressure", void 0);
13
+ _defineProperty(this, "time", void 0);
14
+ if (isNaN(x) || isNaN(y)) throw new Error(`Point is invalid: (${x}, ${y})`);
15
+ this.x = +x;
16
+ this.y = +y;
17
+ this.pressure = pressure || 0;
18
+ this.time = time || Date.now();
19
+ }
20
+ distanceTo(start) {
21
+ return Math.sqrt(Math.pow(this.x - start.x, 2) + Math.pow(this.y - start.y, 2));
22
+ }
23
+ equals(other) {
24
+ return this.x === other.x && this.y === other.y && this.pressure === other.pressure && this.time === other.time;
25
+ }
26
+ velocityFrom(start) {
27
+ return this.time !== start.time ? this.distanceTo(start) / (this.time - start.time) : 0;
28
+ }
29
+ };
30
+ var Bezier = class _Bezier {
31
+ constructor(startPoint, control2, control1, endPoint, startWidth, endWidth) {
32
+ this.startPoint = startPoint;
33
+ this.control2 = control2;
34
+ this.control1 = control1;
35
+ this.endPoint = endPoint;
36
+ this.startWidth = startWidth;
37
+ this.endWidth = endWidth;
38
+ }
39
+ static fromPoints(points, widths) {
40
+ const c2 = this.calculateControlPoints(points[0], points[1], points[2]).c2;
41
+ const c3 = this.calculateControlPoints(points[1], points[2], points[3]).c1;
42
+ return new _Bezier(points[1], c2, c3, points[2], widths.start, widths.end);
43
+ }
44
+ static calculateControlPoints(s1, s2, s3) {
45
+ const dx1 = s1.x - s2.x;
46
+ const dy1 = s1.y - s2.y;
47
+ const dx2 = s2.x - s3.x;
48
+ const dy2 = s2.y - s3.y;
49
+ const m1 = {
50
+ x: (s1.x + s2.x) / 2,
51
+ y: (s1.y + s2.y) / 2
52
+ };
53
+ const m2 = {
54
+ x: (s2.x + s3.x) / 2,
55
+ y: (s2.y + s3.y) / 2
56
+ };
57
+ const l1 = Math.sqrt(dx1 * dx1 + dy1 * dy1);
58
+ const l2 = Math.sqrt(dx2 * dx2 + dy2 * dy2);
59
+ const dxm = m1.x - m2.x;
60
+ const dym = m1.y - m2.y;
61
+ const k = l1 + l2 == 0 ? 0 : l2 / (l1 + l2);
62
+ const cm = {
63
+ x: m2.x + dxm * k,
64
+ y: m2.y + dym * k
65
+ };
66
+ const tx = s2.x - cm.x;
67
+ const ty = s2.y - cm.y;
68
+ return {
69
+ c1: new Point(m1.x + tx, m1.y + ty),
70
+ c2: new Point(m2.x + tx, m2.y + ty)
71
+ };
72
+ }
73
+ length() {
74
+ const steps = 10;
75
+ let length = 0;
76
+ let px;
77
+ let py;
78
+ for (let i = 0; i <= steps; i += 1) {
79
+ const t = i / steps;
80
+ const cx = this.point(t, this.startPoint.x, this.control1.x, this.control2.x, this.endPoint.x);
81
+ const cy = this.point(t, this.startPoint.y, this.control1.y, this.control2.y, this.endPoint.y);
82
+ if (i > 0) {
83
+ const xdiff = cx - px;
84
+ const ydiff = cy - py;
85
+ length += Math.sqrt(xdiff * xdiff + ydiff * ydiff);
86
+ }
87
+ px = cx;
88
+ py = cy;
89
+ }
90
+ return length;
91
+ }
92
+ point(t, start, c1, c2, end) {
93
+ 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;
94
+ }
95
+ };
96
+ var SignatureEventTarget = class {
97
+ constructor() {
98
+ _defineProperty(this, "_et", void 0);
99
+ try {
100
+ this._et = new EventTarget();
101
+ } catch {
102
+ this._et = document;
103
+ }
104
+ }
105
+ addEventListener(type, listener, options) {
106
+ this._et.addEventListener(type, listener, options);
107
+ }
108
+ dispatchEvent(event) {
109
+ return this._et.dispatchEvent(event);
110
+ }
111
+ removeEventListener(type, callback, options) {
112
+ this._et.removeEventListener(type, callback, options);
113
+ }
114
+ };
115
+ function throttle(fn, wait = 250) {
116
+ let previous = 0;
117
+ let timeout = null;
118
+ let result;
119
+ let storedContext;
120
+ let storedArgs;
121
+ const later = () => {
122
+ previous = Date.now();
123
+ timeout = null;
124
+ result = fn.apply(storedContext, storedArgs);
125
+ if (!timeout) {
126
+ storedContext = null;
127
+ storedArgs = [];
128
+ }
129
+ };
130
+ return function wrapper(...args) {
131
+ const now = Date.now();
132
+ const remaining = wait - (now - previous);
133
+ storedContext = this;
134
+ storedArgs = args;
135
+ if (remaining <= 0 || remaining > wait) {
136
+ if (timeout) {
137
+ clearTimeout(timeout);
138
+ timeout = null;
139
+ }
140
+ previous = now;
141
+ result = fn.apply(storedContext, storedArgs);
142
+ if (!timeout) {
143
+ storedContext = null;
144
+ storedArgs = [];
145
+ }
146
+ } else if (!timeout) timeout = window.setTimeout(later, remaining);
147
+ return result;
148
+ };
149
+ }
150
+ var SignaturePad = class _SignaturePad extends SignatureEventTarget {
151
+ constructor(canvas, options = {}) {
152
+ super();
153
+ _defineProperty(this, "dotSize", void 0);
154
+ _defineProperty(this, "minWidth", void 0);
155
+ _defineProperty(this, "maxWidth", void 0);
156
+ _defineProperty(this, "penColor", void 0);
157
+ _defineProperty(this, "minDistance", void 0);
158
+ _defineProperty(this, "velocityFilterWeight", void 0);
159
+ _defineProperty(this, "compositeOperation", void 0);
160
+ _defineProperty(this, "backgroundColor", void 0);
161
+ _defineProperty(this, "throttle", void 0);
162
+ _defineProperty(this, "canvasContextOptions", void 0);
163
+ _defineProperty(this, "_ctx", void 0);
164
+ _defineProperty(this, "_drawingStroke", false);
165
+ _defineProperty(this, "_isEmpty", true);
166
+ _defineProperty(this, "_dataUrl", void 0);
167
+ _defineProperty(this, "_dataUrlOptions", void 0);
168
+ _defineProperty(this, "_lastPoints", []);
169
+ _defineProperty(this, "_data", []);
170
+ _defineProperty(this, "_lastVelocity", 0);
171
+ _defineProperty(this, "_lastWidth", 0);
172
+ _defineProperty(this, "_strokeMoveUpdate", void 0);
173
+ _defineProperty(this, "_strokePointerId", void 0);
174
+ this.canvas = canvas;
175
+ this.velocityFilterWeight = options.velocityFilterWeight || .7;
176
+ this.minWidth = options.minWidth || .5;
177
+ this.maxWidth = options.maxWidth || 2.5;
178
+ this.throttle = options.throttle ?? 16;
179
+ this.minDistance = options.minDistance ?? 5;
180
+ this.dotSize = options.dotSize || 0;
181
+ this.penColor = options.penColor || "black";
182
+ this.backgroundColor = options.backgroundColor || "rgba(0,0,0,0)";
183
+ this.compositeOperation = options.compositeOperation || "source-over";
184
+ this.canvasContextOptions = options.canvasContextOptions ?? {};
185
+ this._strokeMoveUpdate = this.throttle ? throttle(_SignaturePad.prototype._strokeUpdate, this.throttle) : _SignaturePad.prototype._strokeUpdate;
186
+ this._handleMouseDown = this._handleMouseDown.bind(this);
187
+ this._handleMouseMove = this._handleMouseMove.bind(this);
188
+ this._handleMouseUp = this._handleMouseUp.bind(this);
189
+ this._handleTouchStart = this._handleTouchStart.bind(this);
190
+ this._handleTouchMove = this._handleTouchMove.bind(this);
191
+ this._handleTouchEnd = this._handleTouchEnd.bind(this);
192
+ this._handlePointerDown = this._handlePointerDown.bind(this);
193
+ this._handlePointerMove = this._handlePointerMove.bind(this);
194
+ this._handlePointerUp = this._handlePointerUp.bind(this);
195
+ this._handlePointerCancel = this._handlePointerCancel.bind(this);
196
+ this._handleTouchCancel = this._handleTouchCancel.bind(this);
197
+ this._ctx = canvas.getContext("2d", this.canvasContextOptions);
198
+ this.clear();
199
+ this.on();
200
+ }
201
+ clear() {
202
+ const { _ctx: ctx, canvas } = this;
203
+ ctx.fillStyle = this.backgroundColor;
204
+ ctx.clearRect(0, 0, canvas.width, canvas.height);
205
+ ctx.fillRect(0, 0, canvas.width, canvas.height);
206
+ this._data = [];
207
+ this._reset(this._getPointGroupOptions());
208
+ this._isEmpty = true;
209
+ this._dataUrl = void 0;
210
+ this._dataUrlOptions = void 0;
211
+ this._strokePointerId = void 0;
212
+ }
213
+ redraw() {
214
+ const data = this._data;
215
+ const dataUrl = this._dataUrl;
216
+ const dataUrlOptions = this._dataUrlOptions;
217
+ this.clear();
218
+ if (dataUrl) this.fromDataURL(dataUrl, dataUrlOptions);
219
+ this.fromData(data, { clear: false });
220
+ }
221
+ fromDataURL(dataUrl, options = {}) {
222
+ return new Promise((resolve, reject) => {
223
+ const image = new Image();
224
+ const ratio = options.ratio || window.devicePixelRatio || 1;
225
+ const width = options.width || this.canvas.width / ratio;
226
+ const height = options.height || this.canvas.height / ratio;
227
+ const xOffset = options.xOffset || 0;
228
+ const yOffset = options.yOffset || 0;
229
+ this._reset(this._getPointGroupOptions());
230
+ image.onload = () => {
231
+ this._ctx.drawImage(image, xOffset, yOffset, width, height);
232
+ resolve();
233
+ };
234
+ image.onerror = (error) => {
235
+ reject(error);
236
+ };
237
+ image.crossOrigin = "anonymous";
238
+ image.src = dataUrl;
239
+ this._isEmpty = false;
240
+ this._dataUrl = dataUrl;
241
+ this._dataUrlOptions = { ...options };
242
+ });
243
+ }
244
+ toDataURL(type = "image/png", encoderOptions) {
245
+ switch (type) {
246
+ case "image/svg+xml":
247
+ if (typeof encoderOptions !== "object") encoderOptions = void 0;
248
+ return `data:image/svg+xml;base64,${btoa(this.toSVG(encoderOptions))}`;
249
+ default:
250
+ if (typeof encoderOptions !== "number") encoderOptions = void 0;
251
+ return this.canvas.toDataURL(type, encoderOptions);
252
+ }
253
+ }
254
+ on() {
255
+ this.canvas.style.touchAction = "none";
256
+ this.canvas.style.msTouchAction = "none";
257
+ this.canvas.style.userSelect = "none";
258
+ this.canvas.style.webkitUserSelect = "none";
259
+ const isIOS = /Macintosh/.test(navigator.userAgent) && "ontouchstart" in document;
260
+ if (window.PointerEvent && !isIOS) this._handlePointerEvents();
261
+ else {
262
+ this._handleMouseEvents();
263
+ if ("ontouchstart" in window) this._handleTouchEvents();
264
+ }
265
+ }
266
+ off() {
267
+ this.canvas.style.touchAction = "auto";
268
+ this.canvas.style.msTouchAction = "auto";
269
+ this.canvas.style.userSelect = "auto";
270
+ this.canvas.style.webkitUserSelect = "auto";
271
+ this.canvas.removeEventListener("pointerdown", this._handlePointerDown);
272
+ this.canvas.removeEventListener("mousedown", this._handleMouseDown);
273
+ this.canvas.removeEventListener("touchstart", this._handleTouchStart);
274
+ this._removeMoveUpEventListeners();
275
+ }
276
+ _getListenerFunctions() {
277
+ const canvasWindow = window.document === this.canvas.ownerDocument ? window : this.canvas.ownerDocument.defaultView ?? this.canvas.ownerDocument;
278
+ return {
279
+ addEventListener: canvasWindow.addEventListener.bind(canvasWindow),
280
+ removeEventListener: canvasWindow.removeEventListener.bind(canvasWindow)
281
+ };
282
+ }
283
+ _removeMoveUpEventListeners() {
284
+ const { removeEventListener } = this._getListenerFunctions();
285
+ removeEventListener("pointermove", this._handlePointerMove);
286
+ removeEventListener("pointerup", this._handlePointerUp);
287
+ removeEventListener("pointercancel", this._handlePointerCancel);
288
+ removeEventListener("mousemove", this._handleMouseMove);
289
+ removeEventListener("mouseup", this._handleMouseUp);
290
+ removeEventListener("touchmove", this._handleTouchMove);
291
+ removeEventListener("touchend", this._handleTouchEnd);
292
+ removeEventListener("touchcancel", this._handleTouchCancel);
293
+ }
294
+ isEmpty() {
295
+ return this._isEmpty;
296
+ }
297
+ fromData(pointGroups, { clear = true } = {}) {
298
+ if (clear) this.clear();
299
+ this._fromData(pointGroups, this._drawCurve.bind(this), this._drawDot.bind(this));
300
+ this._data = this._data.concat(pointGroups);
301
+ }
302
+ toData() {
303
+ return this._data;
304
+ }
305
+ _isLeftButtonPressed(event, only) {
306
+ if (only) return event.buttons === 1;
307
+ return (event.buttons & 1) === 1;
308
+ }
309
+ _pointerEventToSignatureEvent(event) {
310
+ return {
311
+ event,
312
+ type: event.type,
313
+ x: event.clientX,
314
+ y: event.clientY,
315
+ pressure: "pressure" in event ? event.pressure : 0
316
+ };
317
+ }
318
+ _touchEventToSignatureEvent(event) {
319
+ const touch = event.changedTouches[0];
320
+ return {
321
+ event,
322
+ type: event.type,
323
+ x: touch.clientX,
324
+ y: touch.clientY,
325
+ pressure: touch.force
326
+ };
327
+ }
328
+ _handleMouseDown(event) {
329
+ if (!this._isLeftButtonPressed(event, true) || this._drawingStroke) return;
330
+ this._strokeBegin(this._pointerEventToSignatureEvent(event));
331
+ }
332
+ _handleMouseMove(event) {
333
+ if (!this._isLeftButtonPressed(event, true) || !this._drawingStroke) {
334
+ this._strokeEnd(this._pointerEventToSignatureEvent(event), false);
335
+ return;
336
+ }
337
+ this._strokeMoveUpdate(this._pointerEventToSignatureEvent(event));
338
+ }
339
+ _handleMouseUp(event) {
340
+ if (this._isLeftButtonPressed(event)) return;
341
+ this._strokeEnd(this._pointerEventToSignatureEvent(event));
342
+ }
343
+ _handleTouchStart(event) {
344
+ if (event.targetTouches.length !== 1 || this._drawingStroke) return;
345
+ if (event.cancelable) event.preventDefault();
346
+ this._strokeBegin(this._touchEventToSignatureEvent(event));
347
+ }
348
+ _handleTouchMove(event) {
349
+ if (event.targetTouches.length !== 1) return;
350
+ if (event.cancelable) event.preventDefault();
351
+ if (!this._drawingStroke) {
352
+ this._strokeEnd(this._touchEventToSignatureEvent(event), false);
353
+ return;
354
+ }
355
+ this._strokeMoveUpdate(this._touchEventToSignatureEvent(event));
356
+ }
357
+ _handleTouchEnd(event) {
358
+ if (event.targetTouches.length !== 0) return;
359
+ if (event.cancelable) event.preventDefault();
360
+ this._strokeEnd(this._touchEventToSignatureEvent(event));
361
+ }
362
+ _handlePointerCancel(event) {
363
+ if (!this._allowPointerId(event)) return;
364
+ event.preventDefault();
365
+ this._strokeEnd(this._pointerEventToSignatureEvent(event), false);
366
+ }
367
+ _handleTouchCancel(event) {
368
+ if (event.cancelable) event.preventDefault();
369
+ this._strokeEnd(this._touchEventToSignatureEvent(event), false);
370
+ }
371
+ _getPointerId(event) {
372
+ return event.persistentDeviceId || event.pointerId;
373
+ }
374
+ _allowPointerId(event, allowUndefined = false) {
375
+ if (typeof this._strokePointerId === "undefined") return allowUndefined;
376
+ return this._getPointerId(event) === this._strokePointerId;
377
+ }
378
+ _handlePointerDown(event) {
379
+ if (this._drawingStroke || !this._isLeftButtonPressed(event) || !this._allowPointerId(event, true)) return;
380
+ this._strokePointerId = this._getPointerId(event);
381
+ event.preventDefault();
382
+ this._strokeBegin(this._pointerEventToSignatureEvent(event));
383
+ }
384
+ _handlePointerMove(event) {
385
+ if (!this._allowPointerId(event)) return;
386
+ if (!this._isLeftButtonPressed(event, true) || !this._drawingStroke) {
387
+ this._strokeEnd(this._pointerEventToSignatureEvent(event), false);
388
+ return;
389
+ }
390
+ event.preventDefault();
391
+ this._strokeMoveUpdate(this._pointerEventToSignatureEvent(event));
392
+ }
393
+ _handlePointerUp(event) {
394
+ if (this._isLeftButtonPressed(event) || !this._allowPointerId(event)) return;
395
+ event.preventDefault();
396
+ this._strokeEnd(this._pointerEventToSignatureEvent(event));
397
+ }
398
+ _getPointGroupOptions(group) {
399
+ return {
400
+ penColor: group && "penColor" in group ? group.penColor : this.penColor,
401
+ dotSize: group && "dotSize" in group ? group.dotSize : this.dotSize,
402
+ minWidth: group && "minWidth" in group ? group.minWidth : this.minWidth,
403
+ maxWidth: group && "maxWidth" in group ? group.maxWidth : this.maxWidth,
404
+ velocityFilterWeight: group && "velocityFilterWeight" in group ? group.velocityFilterWeight : this.velocityFilterWeight,
405
+ compositeOperation: group && "compositeOperation" in group ? group.compositeOperation : this.compositeOperation
406
+ };
407
+ }
408
+ _strokeBegin(event) {
409
+ if (!this.dispatchEvent(new CustomEvent("beginStroke", {
410
+ detail: event,
411
+ cancelable: true
412
+ }))) return;
413
+ const { addEventListener } = this._getListenerFunctions();
414
+ switch (event.event.type) {
415
+ case "mousedown":
416
+ addEventListener("mousemove", this._handleMouseMove, { passive: false });
417
+ addEventListener("mouseup", this._handleMouseUp, { passive: false });
418
+ break;
419
+ case "touchstart":
420
+ addEventListener("touchmove", this._handleTouchMove, { passive: false });
421
+ addEventListener("touchend", this._handleTouchEnd, { passive: false });
422
+ addEventListener("touchcancel", this._handleTouchCancel, { passive: false });
423
+ break;
424
+ case "pointerdown":
425
+ addEventListener("pointermove", this._handlePointerMove, { passive: false });
426
+ addEventListener("pointerup", this._handlePointerUp, { passive: false });
427
+ addEventListener("pointercancel", this._handlePointerCancel, { passive: false });
428
+ break;
429
+ default:
430
+ }
431
+ this._drawingStroke = true;
432
+ const pointGroupOptions = this._getPointGroupOptions();
433
+ const newPointGroup = {
434
+ ...pointGroupOptions,
435
+ points: []
436
+ };
437
+ this._data.push(newPointGroup);
438
+ this._reset(pointGroupOptions);
439
+ this._strokeUpdate(event);
440
+ }
441
+ _strokeUpdate(event) {
442
+ if (!this._drawingStroke) return;
443
+ if (this._data.length === 0) {
444
+ this._strokeBegin(event);
445
+ return;
446
+ }
447
+ this.dispatchEvent(new CustomEvent("beforeUpdateStroke", { detail: event }));
448
+ const point = this._createPoint(event.x, event.y, event.pressure);
449
+ const lastPointGroup = this._data[this._data.length - 1];
450
+ const lastPoints = lastPointGroup.points;
451
+ const lastPoint = lastPoints.length > 0 && lastPoints[lastPoints.length - 1];
452
+ const isLastPointTooClose = lastPoint ? point.distanceTo(lastPoint) <= this.minDistance : false;
453
+ const pointGroupOptions = this._getPointGroupOptions(lastPointGroup);
454
+ if (!lastPoint || !(lastPoint && isLastPointTooClose)) {
455
+ const curve = this._addPoint(point, pointGroupOptions);
456
+ if (!lastPoint) this._drawDot(point, pointGroupOptions);
457
+ else if (curve) this._drawCurve(curve, pointGroupOptions);
458
+ lastPoints.push({
459
+ time: point.time,
460
+ x: point.x,
461
+ y: point.y,
462
+ pressure: point.pressure
463
+ });
464
+ }
465
+ this.dispatchEvent(new CustomEvent("afterUpdateStroke", { detail: event }));
466
+ }
467
+ _strokeEnd(event, shouldUpdate = true) {
468
+ this._removeMoveUpEventListeners();
469
+ if (!this._drawingStroke) return;
470
+ if (shouldUpdate) this._strokeUpdate(event);
471
+ this._drawingStroke = false;
472
+ this._strokePointerId = void 0;
473
+ this.dispatchEvent(new CustomEvent("endStroke", { detail: event }));
474
+ }
475
+ _handlePointerEvents() {
476
+ this._drawingStroke = false;
477
+ this.canvas.addEventListener("pointerdown", this._handlePointerDown, { passive: false });
478
+ }
479
+ _handleMouseEvents() {
480
+ this._drawingStroke = false;
481
+ this.canvas.addEventListener("mousedown", this._handleMouseDown, { passive: false });
482
+ }
483
+ _handleTouchEvents() {
484
+ this.canvas.addEventListener("touchstart", this._handleTouchStart, { passive: false });
485
+ }
486
+ _reset(options) {
487
+ this._lastPoints = [];
488
+ this._lastVelocity = 0;
489
+ this._lastWidth = (options.minWidth + options.maxWidth) / 2;
490
+ this._ctx.fillStyle = options.penColor;
491
+ this._ctx.globalCompositeOperation = options.compositeOperation;
492
+ }
493
+ _createPoint(x, y, pressure) {
494
+ const rect = this.canvas.getBoundingClientRect();
495
+ return new Point(x - rect.left, y - rect.top, pressure, (/* @__PURE__ */ new Date()).getTime());
496
+ }
497
+ _addPoint(point, options) {
498
+ const { _lastPoints } = this;
499
+ _lastPoints.push(point);
500
+ if (_lastPoints.length > 2) {
501
+ if (_lastPoints.length === 3) _lastPoints.unshift(_lastPoints[0]);
502
+ const widths = this._calculateCurveWidths(_lastPoints[1], _lastPoints[2], options);
503
+ const curve = Bezier.fromPoints(_lastPoints, widths);
504
+ _lastPoints.shift();
505
+ return curve;
506
+ }
507
+ return null;
508
+ }
509
+ _calculateCurveWidths(startPoint, endPoint, options) {
510
+ const velocity = options.velocityFilterWeight * endPoint.velocityFrom(startPoint) + (1 - options.velocityFilterWeight) * this._lastVelocity;
511
+ const newWidth = this._strokeWidth(velocity, options);
512
+ const widths = {
513
+ end: newWidth,
514
+ start: this._lastWidth
515
+ };
516
+ this._lastVelocity = velocity;
517
+ this._lastWidth = newWidth;
518
+ return widths;
519
+ }
520
+ _strokeWidth(velocity, options) {
521
+ return Math.max(options.maxWidth / (velocity + 1), options.minWidth);
522
+ }
523
+ _drawCurveSegment(x, y, width) {
524
+ const ctx = this._ctx;
525
+ ctx.moveTo(x, y);
526
+ ctx.arc(x, y, width, 0, 2 * Math.PI, false);
527
+ this._isEmpty = false;
528
+ }
529
+ _drawCurve(curve, options) {
530
+ const ctx = this._ctx;
531
+ const widthDelta = curve.endWidth - curve.startWidth;
532
+ const drawSteps = Math.ceil(curve.length()) * 2;
533
+ ctx.beginPath();
534
+ ctx.fillStyle = options.penColor;
535
+ for (let i = 0; i < drawSteps; i += 1) {
536
+ const t = i / drawSteps;
537
+ const tt = t * t;
538
+ const ttt = tt * t;
539
+ const u = 1 - t;
540
+ const uu = u * u;
541
+ const uuu = uu * u;
542
+ let x = uuu * curve.startPoint.x;
543
+ x += 3 * uu * t * curve.control1.x;
544
+ x += 3 * u * tt * curve.control2.x;
545
+ x += ttt * curve.endPoint.x;
546
+ let y = uuu * curve.startPoint.y;
547
+ y += 3 * uu * t * curve.control1.y;
548
+ y += 3 * u * tt * curve.control2.y;
549
+ y += ttt * curve.endPoint.y;
550
+ const width = Math.min(curve.startWidth + ttt * widthDelta, options.maxWidth);
551
+ this._drawCurveSegment(x, y, width);
552
+ }
553
+ ctx.closePath();
554
+ ctx.fill();
555
+ }
556
+ _drawDot(point, options) {
557
+ const ctx = this._ctx;
558
+ const width = options.dotSize > 0 ? options.dotSize : (options.minWidth + options.maxWidth) / 2;
559
+ ctx.beginPath();
560
+ this._drawCurveSegment(point.x, point.y, width);
561
+ ctx.closePath();
562
+ ctx.fillStyle = options.penColor;
563
+ ctx.fill();
564
+ }
565
+ _fromData(pointGroups, drawCurve, drawDot) {
566
+ for (const group of pointGroups) {
567
+ const { points } = group;
568
+ const pointGroupOptions = this._getPointGroupOptions(group);
569
+ if (points.length > 1) for (let j = 0; j < points.length; j += 1) {
570
+ const basicPoint = points[j];
571
+ const point = new Point(basicPoint.x, basicPoint.y, basicPoint.pressure, basicPoint.time);
572
+ if (j === 0) this._reset(pointGroupOptions);
573
+ const curve = this._addPoint(point, pointGroupOptions);
574
+ if (curve) drawCurve(curve, pointGroupOptions);
575
+ }
576
+ else {
577
+ this._reset(pointGroupOptions);
578
+ drawDot(points[0], pointGroupOptions);
579
+ }
580
+ }
581
+ }
582
+ toSVG({ includeBackgroundColor = false, includeDataUrl = false } = {}) {
583
+ const pointGroups = this._data;
584
+ const ratio = Math.max(window.devicePixelRatio || 1, 1);
585
+ const minX = 0;
586
+ const minY = 0;
587
+ const maxX = this.canvas.width / ratio;
588
+ const maxY = this.canvas.height / ratio;
589
+ const svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
590
+ svg.setAttribute("xmlns", "http://www.w3.org/2000/svg");
591
+ svg.setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink");
592
+ svg.setAttribute("viewBox", `${minX} ${minY} ${maxX} ${maxY}`);
593
+ svg.setAttribute("width", maxX.toString());
594
+ svg.setAttribute("height", maxY.toString());
595
+ if (includeBackgroundColor && this.backgroundColor) {
596
+ const rect = document.createElement("rect");
597
+ rect.setAttribute("width", "100%");
598
+ rect.setAttribute("height", "100%");
599
+ rect.setAttribute("fill", this.backgroundColor);
600
+ svg.appendChild(rect);
601
+ }
602
+ if (includeDataUrl && this._dataUrl) {
603
+ const ratio2 = this._dataUrlOptions?.ratio || window.devicePixelRatio || 1;
604
+ const width = this._dataUrlOptions?.width || this.canvas.width / ratio2;
605
+ const height = this._dataUrlOptions?.height || this.canvas.height / ratio2;
606
+ const xOffset = this._dataUrlOptions?.xOffset || 0;
607
+ const yOffset = this._dataUrlOptions?.yOffset || 0;
608
+ const image = document.createElement("image");
609
+ image.setAttribute("x", xOffset.toString());
610
+ image.setAttribute("y", yOffset.toString());
611
+ image.setAttribute("width", width.toString());
612
+ image.setAttribute("height", height.toString());
613
+ image.setAttribute("preserveAspectRatio", "none");
614
+ image.setAttribute("href", this._dataUrl);
615
+ svg.appendChild(image);
616
+ }
617
+ this._fromData(pointGroups, (curve, { penColor }) => {
618
+ const path = document.createElement("path");
619
+ if (!isNaN(curve.control1.x) && !isNaN(curve.control1.y) && !isNaN(curve.control2.x) && !isNaN(curve.control2.y)) {
620
+ 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)}`;
621
+ path.setAttribute("d", attr);
622
+ path.setAttribute("stroke-width", (curve.endWidth * 2.25).toFixed(3));
623
+ path.setAttribute("stroke", penColor);
624
+ path.setAttribute("fill", "none");
625
+ path.setAttribute("stroke-linecap", "round");
626
+ svg.appendChild(path);
627
+ }
628
+ }, (point, { penColor, dotSize, minWidth, maxWidth }) => {
629
+ const circle = document.createElement("circle");
630
+ const size = dotSize > 0 ? dotSize : (minWidth + maxWidth) / 2;
631
+ circle.setAttribute("r", size.toString());
632
+ circle.setAttribute("cx", point.x.toString());
633
+ circle.setAttribute("cy", point.y.toString());
634
+ circle.setAttribute("fill", penColor);
635
+ svg.appendChild(circle);
636
+ });
637
+ return svg.outerHTML;
638
+ }
639
+ };
640
+ //#endregion
641
+ //#region src/styles/resolveCssVariableToHex.ts
642
+ var resolveCssVariableToHex = (cssVar) => {
643
+ if (typeof document === "undefined") return null;
644
+ const tempEl = document.createElement("div");
645
+ tempEl.style.color = cssVar;
646
+ tempEl.style.position = "absolute";
647
+ tempEl.style.visibility = "hidden";
648
+ document.body.appendChild(tempEl);
649
+ const computedColor = getComputedStyle(tempEl).color;
650
+ document.body.removeChild(tempEl);
651
+ if (!computedColor || computedColor === "transparent") return null;
652
+ const rgbMatch = computedColor.match(/\d+/g);
653
+ if (rgbMatch && rgbMatch.length >= 3) {
654
+ const r = Number.parseInt(rgbMatch[0], 10);
655
+ const g = Number.parseInt(rgbMatch[1], 10);
656
+ const b = Number.parseInt(rgbMatch[2], 10);
657
+ const toHex = (n) => {
658
+ const hex = n.toString(16);
659
+ return hex.length === 1 ? `0${hex}` : hex;
660
+ };
661
+ return `#${toHex(r)}${toHex(g)}${toHex(b)}`;
662
+ }
663
+ return null;
664
+ };
665
+ //#endregion
666
+ //#region src/modules/signature/signatureCanvas.tsx
667
+ var SIGNATURE_PEN_COLOR = "var(--icon-neutral-800)";
668
+ /** Fixed white background for export (avoid transparency and theme dependency) */
669
+ var EXPORT_BACKGROUND_COLOR = "#ffffff";
670
+ var copyCanvasWithWhiteBackground = (source) => {
671
+ const target = document.createElement("canvas");
672
+ target.width = source.width;
673
+ target.height = source.height;
674
+ const ctx = target.getContext("2d");
675
+ if (!ctx) throw new Error("Canvas 2D context is not available");
676
+ ctx.fillStyle = EXPORT_BACKGROUND_COLOR;
677
+ ctx.fillRect(0, 0, target.width, target.height);
678
+ ctx.drawImage(source, 0, 0);
679
+ return target;
680
+ };
681
+ var canvasToBlob = (canvas, mimeType, quality) => {
682
+ return new Promise((resolve, reject) => {
683
+ canvas.toBlob((blob) => {
684
+ if (blob) resolve(blob);
685
+ else reject(/* @__PURE__ */ new Error("Canvas toBlob() returned null"));
686
+ }, mimeType, mimeType === "image/jpeg" || mimeType === "image/webp" ? quality : void 0);
687
+ });
688
+ };
689
+ var SignatureCanvas = D(({ onBeginStroke, onEndStroke, hasDrawing, placeholder, ariaLabel, customPenColor, customPenStrokeWidth, customBackgroundColor, customBorderColor }, ref) => {
690
+ const containerRef = A(null);
691
+ const canvasRef = A(null);
692
+ const signaturePadRef = A(null);
693
+ const onBeginStrokeRef = A(onBeginStroke);
694
+ onBeginStrokeRef.current = onBeginStroke;
695
+ const onEndStrokeRef = A(onEndStroke);
696
+ onEndStrokeRef.current = onEndStroke;
697
+ const resizeSignaturePad = q(() => {
698
+ const container = containerRef.current;
699
+ const canvas = canvasRef.current;
700
+ const pad = signaturePadRef.current;
701
+ if (!container || !canvas || !pad) return;
702
+ const ratio = Math.max(window.devicePixelRatio || 1, 1);
703
+ const context = canvas.getContext("2d");
704
+ const { width, height } = container.getBoundingClientRect();
705
+ if (width === 0 || height === 0 || !context) return;
706
+ const data = pad.isEmpty() ? null : pad.toData();
707
+ canvas.width = Math.floor(width * ratio);
708
+ canvas.height = Math.floor(height * ratio);
709
+ context.setTransform(ratio, 0, 0, ratio, 0, 0);
710
+ if (data) pad.fromData(data, { clear: true });
711
+ else pad.clear();
712
+ }, []);
713
+ F(ref, () => ({
714
+ clear: () => {
715
+ signaturePadRef.current?.clear();
716
+ },
717
+ isEmpty: () => signaturePadRef.current?.isEmpty() ?? true,
718
+ toDataURL: (type = "image/png", encoderOptions) => signaturePadRef.current?.toDataURL(type, encoderOptions) ?? "",
719
+ getCanvas: () => canvasRef.current,
720
+ getSignaturePad: () => signaturePadRef.current,
721
+ on: () => signaturePadRef.current?.on(),
722
+ off: () => signaturePadRef.current?.off(),
723
+ getSignatureWithWhiteBackground: () => {
724
+ const canvas = canvasRef.current;
725
+ if (!canvas) return null;
726
+ return copyCanvasWithWhiteBackground(canvas);
727
+ },
728
+ getBlob: (canvas = canvasRef.current ?? void 0, mimeType = "image/jpeg", quality = .92) => {
729
+ if (!canvas) return Promise.reject(/* @__PURE__ */ new Error("No canvas available for getBlob"));
730
+ return canvasToBlob(canvas, mimeType, quality);
731
+ }
732
+ }), []);
733
+ y(() => {
734
+ const container = containerRef.current;
735
+ const canvas = canvasRef.current;
736
+ if (!container || !canvas) return;
737
+ let resizeRafId = null;
738
+ const scheduleResizeSignaturePad = () => {
739
+ if (resizeRafId !== null) return;
740
+ resizeRafId = requestAnimationFrame(() => {
741
+ resizeRafId = null;
742
+ resizeSignaturePad();
743
+ });
744
+ };
745
+ const penColor = customPenColor ?? resolveCssVariableToHex(SIGNATURE_PEN_COLOR);
746
+ const signaturePad = new SignaturePad(canvas, {
747
+ ...penColor ? { penColor } : {},
748
+ ...customPenStrokeWidth ? { maxWidth: customPenStrokeWidth } : {}
749
+ });
750
+ signaturePadRef.current = signaturePad;
751
+ const onBegin = () => onBeginStrokeRef.current?.();
752
+ signaturePad.addEventListener("beginStroke", onBegin);
753
+ const onEnd = () => onEndStrokeRef.current?.(signaturePad);
754
+ signaturePad.addEventListener("endStroke", onEnd);
755
+ resizeSignaturePad();
756
+ const resizeObserver = new ResizeObserver(() => {
757
+ scheduleResizeSignaturePad();
758
+ });
759
+ resizeObserver.observe(container);
760
+ return () => {
761
+ if (resizeRafId !== null) cancelAnimationFrame(resizeRafId);
762
+ resizeObserver.disconnect();
763
+ signaturePad.removeEventListener("beginStroke", onBegin);
764
+ signaturePad.removeEventListener("endStroke", onEnd);
765
+ signaturePad.off();
766
+ signaturePadRef.current = null;
767
+ };
768
+ }, [
769
+ resizeSignaturePad,
770
+ customPenColor,
771
+ customPenStrokeWidth
772
+ ]);
773
+ return /* @__PURE__ */ u("div", {
774
+ class: "IncodeSignatureCanvasContainer",
775
+ style: customBackgroundColor || customBorderColor ? {
776
+ ...customBackgroundColor ? { backgroundColor: customBackgroundColor } : {},
777
+ ...customBorderColor ? { borderColor: customBorderColor } : {}
778
+ } : void 0,
779
+ ref: containerRef,
780
+ children: [/* @__PURE__ */ u("canvas", {
781
+ class: "IncodeSignatureCanvas",
782
+ ref: canvasRef,
783
+ role: "img",
784
+ "aria-label": ariaLabel ?? placeholder,
785
+ "data-testid": "signature-canvas"
786
+ }), !hasDrawing && /* @__PURE__ */ u("p", {
787
+ class: "IncodeSignatureCanvasPlaceholder",
788
+ "aria-hidden": "true",
789
+ children: placeholder
790
+ })]
791
+ });
792
+ });
793
+ SignatureCanvas.displayName = "SignatureCanvas";
794
+ //#endregion
795
+ export { SignatureCanvas as t };