@verdocs/web-sdk 6.3.2 → 6.5.0-beta.1

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 (347) hide show
  1. package/dist/cjs/index-CQ5bTnED.js +6 -6
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.cjs.js.map +1 -0
  4. package/dist/cjs/{verdocs-delegate-dialog_5.cjs.entry.js → verdocs-adopt-signature-dialog_6.cjs.entry.js} +443 -4
  5. package/dist/cjs/verdocs-button.verdocs-help-icon.verdocs-text-input.entry.cjs.js.map +1 -1
  6. package/dist/cjs/verdocs-button_3.cjs.entry.js +1 -1
  7. package/dist/cjs/verdocs-dialog.cjs.entry.js +1 -1
  8. package/dist/cjs/verdocs-dialog.entry.cjs.js.map +1 -1
  9. package/dist/cjs/verdocs-envelope-document-page_3.cjs.entry.js +3 -3
  10. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +6 -6
  11. package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +3 -3
  12. package/dist/cjs/verdocs-menu-panel_2.cjs.entry.js +7 -7
  13. package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
  14. package/dist/cjs/verdocs-quick-functions.cjs.entry.js +1 -1
  15. package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
  16. package/dist/cjs/verdocs-sign.cjs.entry.js +42 -4
  17. package/dist/cjs/verdocs-sign.entry.cjs.js.map +1 -1
  18. package/dist/cjs/verdocs-status-indicator.cjs.entry.js +2 -2
  19. package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
  20. package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
  21. package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
  22. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  23. package/dist/collection/collection-manifest.json +1 -0
  24. package/dist/collection/components/controls/verdocs-button/verdocs-button.css +2 -2
  25. package/dist/collection/components/dialogs/verdocs-adopt-signature-dialog/verdocs-adopt-signature-dialog.css +225 -0
  26. package/dist/collection/components/dialogs/verdocs-adopt-signature-dialog/verdocs-adopt-signature-dialog.js +515 -0
  27. package/dist/collection/components/dialogs/verdocs-adopt-signature-dialog/verdocs-adopt-signature-dialog.js.map +1 -0
  28. package/dist/collection/components/dialogs/verdocs-delegate-dialog/verdocs-delegate-dialog.js +1 -1
  29. package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.js +1 -1
  30. package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.js.map +1 -1
  31. package/dist/collection/components/dialogs/verdocs-disclosure-dialog/verdocs-disclosure-dialog.js +1 -1
  32. package/dist/collection/components/dialogs/verdocs-initial-dialog/verdocs-initial-dialog.js +1 -1
  33. package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +1 -1
  34. package/dist/collection/components/dialogs/verdocs-otp-dialog/verdocs-otp-dialog.js +1 -1
  35. package/dist/collection/components/dialogs/verdocs-question-dialog/verdocs-question-dialog.js +1 -1
  36. package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +1 -1
  37. package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.js +1 -1
  38. package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +1 -1
  39. package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js +1 -1
  40. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.css +11 -0
  41. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +43 -3
  42. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
  43. package/dist/collection/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.js +1 -1
  44. package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +6 -6
  45. package/dist/collection/components/envelopes/verdocs-sign-footer/verdocs-sign-footer.js +1 -1
  46. package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js +2 -2
  47. package/dist/collection/components/templates/verdocs-template-card/verdocs-template-card.js +1 -1
  48. package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +7 -7
  49. package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +1 -1
  50. package/dist/collection/components/templates/verdocs-template-tags/verdocs-template-tags.js +1 -1
  51. package/dist/components/index.js +2 -0
  52. package/dist/components/index.js.map +1 -1
  53. package/dist/components/p--22mTpQu.js +492 -0
  54. package/dist/components/p--22mTpQu.js.map +1 -0
  55. package/dist/components/{p-xtoLmSCb.js → p--MAFwnYi.js} +4 -4
  56. package/dist/components/{p-xtoLmSCb.js.map → p--MAFwnYi.js.map} +1 -1
  57. package/dist/components/{p-DQZV5DpX.js → p-03-0JktC.js} +6 -6
  58. package/dist/components/{p-DQZV5DpX.js.map → p-03-0JktC.js.map} +1 -1
  59. package/dist/components/{p-5Fek5Wy9.js → p-B-Dy5ZZg.js} +3 -3
  60. package/dist/components/{p-5Fek5Wy9.js.map → p-B-Dy5ZZg.js.map} +1 -1
  61. package/dist/components/{p-ShTRLp1e.js → p-B2kqp9s3.js} +3 -3
  62. package/dist/components/{p-ShTRLp1e.js.map → p-B2kqp9s3.js.map} +1 -1
  63. package/dist/components/{p-BBgYkz_p.js → p-B8ZrxzPu.js} +4 -4
  64. package/dist/components/{p-BBgYkz_p.js.map → p-B8ZrxzPu.js.map} +1 -1
  65. package/dist/components/{p-ewRI_6tO.js → p-B9UsTlmn.js} +4 -4
  66. package/dist/components/{p-ewRI_6tO.js.map → p-B9UsTlmn.js.map} +1 -1
  67. package/dist/components/{p-tXZcbV3w.js → p-BL-JaC6f.js} +4 -4
  68. package/dist/components/{p-tXZcbV3w.js.map → p-BL-JaC6f.js.map} +1 -1
  69. package/dist/components/{p-foP05GI4.js → p-BMuFgZcf.js} +20 -20
  70. package/dist/components/{p-foP05GI4.js.map → p-BMuFgZcf.js.map} +1 -1
  71. package/dist/components/{p-DQ5Kf869.js → p-BPl-hwhm.js} +5 -5
  72. package/dist/components/{p-DQ5Kf869.js.map → p-BPl-hwhm.js.map} +1 -1
  73. package/dist/components/{p-DzDB_SyD.js → p-BRnBGYE7.js} +4 -4
  74. package/dist/components/{p-DzDB_SyD.js.map → p-BRnBGYE7.js.map} +1 -1
  75. package/dist/components/{p-DYfrJ4GD.js → p-BeOs-_Hc.js} +4 -4
  76. package/dist/components/{p-DYfrJ4GD.js.map → p-BeOs-_Hc.js.map} +1 -1
  77. package/dist/components/{p-DLRzhboq.js → p-BgdorSdl.js} +4 -4
  78. package/dist/components/{p-DLRzhboq.js.map → p-BgdorSdl.js.map} +1 -1
  79. package/dist/components/{p-Cxr-iSrc.js → p-ByN2xw3g.js} +3 -3
  80. package/dist/components/{p-Cxr-iSrc.js.map → p-ByN2xw3g.js.map} +1 -1
  81. package/dist/components/{p-DHYsT4bg.js → p-CAAXnAJc.js} +19 -19
  82. package/dist/components/{p-DHYsT4bg.js.map → p-CAAXnAJc.js.map} +1 -1
  83. package/dist/components/{p-D90w1eGV.js → p-CAXnLTMU.js} +6 -6
  84. package/dist/components/{p-D90w1eGV.js.map → p-CAXnLTMU.js.map} +1 -1
  85. package/dist/components/{p-B1xA5_lE.js → p-CGEus5vb.js} +4 -4
  86. package/dist/components/{p-B1xA5_lE.js.map → p-CGEus5vb.js.map} +1 -1
  87. package/dist/components/{p-D9PE4xz7.js → p-CVw3uIMa.js} +3 -3
  88. package/dist/components/{p-D9PE4xz7.js.map → p-CVw3uIMa.js.map} +1 -1
  89. package/dist/components/{p-CSxSI_ON.js → p-CWyDvAhW.js} +20 -20
  90. package/dist/components/{p-CSxSI_ON.js.map → p-CWyDvAhW.js.map} +1 -1
  91. package/dist/components/{p-DaISePSz.js → p-Cb2BVlCf.js} +3 -3
  92. package/dist/components/p-Cb2BVlCf.js.map +1 -0
  93. package/dist/components/{p-C74Z96Hx.js → p-CfteiEu5.js} +3 -3
  94. package/dist/components/{p-C74Z96Hx.js.map → p-CfteiEu5.js.map} +1 -1
  95. package/dist/components/{p-_8VAlOYF.js → p-CmNkNw68.js} +4 -4
  96. package/dist/components/{p-_8VAlOYF.js.map → p-CmNkNw68.js.map} +1 -1
  97. package/dist/components/{p-D-o8QR0Y.js → p-Crvz6jDy.js} +3 -3
  98. package/dist/components/{p-D-o8QR0Y.js.map → p-Crvz6jDy.js.map} +1 -1
  99. package/dist/components/{p-MbNTNztz.js → p-CvzTGqMO.js} +4 -4
  100. package/dist/components/{p-MbNTNztz.js.map → p-CvzTGqMO.js.map} +1 -1
  101. package/dist/components/{p-s5aulRbG.js → p-CxLl7FNM.js} +4 -4
  102. package/dist/components/{p-s5aulRbG.js.map → p-CxLl7FNM.js.map} +1 -1
  103. package/dist/components/{p-DMN-w8Ma.js → p-D-H-9KY8.js} +4 -4
  104. package/dist/components/{p-DMN-w8Ma.js.map → p-D-H-9KY8.js.map} +1 -1
  105. package/dist/components/{p-Dj0PabuK.js → p-D7__Pp00.js} +6 -6
  106. package/dist/components/{p-Dj0PabuK.js.map → p-D7__Pp00.js.map} +1 -1
  107. package/dist/components/{p-CmOvVqbw.js → p-D7a2wzo5.js} +4 -4
  108. package/dist/components/{p-CmOvVqbw.js.map → p-D7a2wzo5.js.map} +1 -1
  109. package/dist/components/{p-BQVsyF2B.js → p-DBAtkaK6.js} +4 -4
  110. package/dist/components/{p-BQVsyF2B.js.map → p-DBAtkaK6.js.map} +1 -1
  111. package/dist/components/{p-CcVkCmQi.js → p-DE0Pffxj.js} +4 -4
  112. package/dist/components/{p-CcVkCmQi.js.map → p-DE0Pffxj.js.map} +1 -1
  113. package/dist/components/p-DNljqkuf.js +55 -0
  114. package/dist/components/p-DNljqkuf.js.map +1 -0
  115. package/dist/components/{p-Be40bZ4S.js → p-DR2UE0Os.js} +7 -7
  116. package/dist/components/{p-Be40bZ4S.js.map → p-DR2UE0Os.js.map} +1 -1
  117. package/dist/components/{p-zln1sHDr.js → p-DaIaz1c1.js} +4 -4
  118. package/dist/components/{p-zln1sHDr.js.map → p-DaIaz1c1.js.map} +1 -1
  119. package/dist/components/{p-qGaFgS8W.js → p-DdW2wHj_.js} +4 -4
  120. package/dist/components/{p-qGaFgS8W.js.map → p-DdW2wHj_.js.map} +1 -1
  121. package/dist/components/{p-5cFBOeAO.js → p-DkrVyv_Q.js} +3 -3
  122. package/dist/components/{p-5cFBOeAO.js.map → p-DkrVyv_Q.js.map} +1 -1
  123. package/dist/components/{p-DZonUNfY.js → p-DngKAB2o.js} +10 -10
  124. package/dist/components/{p-DZonUNfY.js.map → p-DngKAB2o.js.map} +1 -1
  125. package/dist/components/{p-BJmkJ4bg.js → p-DsYzavXP.js} +3 -3
  126. package/dist/components/{p-BJmkJ4bg.js.map → p-DsYzavXP.js.map} +1 -1
  127. package/dist/components/{p-BjnLxewv.js → p-GiBzmfuf.js} +4 -4
  128. package/dist/components/{p-BjnLxewv.js.map → p-GiBzmfuf.js.map} +1 -1
  129. package/dist/components/{p-8N-Q0mJE.js → p-LWshb-T0.js} +5 -5
  130. package/dist/components/{p-8N-Q0mJE.js.map → p-LWshb-T0.js.map} +1 -1
  131. package/dist/components/{p-BukckV1k.js → p-YdjsfZWX.js} +7 -7
  132. package/dist/components/{p-BukckV1k.js.map → p-YdjsfZWX.js.map} +1 -1
  133. package/dist/components/p-j_Tq7bTq.js +66 -0
  134. package/dist/components/p-j_Tq7bTq.js.map +1 -0
  135. package/dist/components/verdocs-adopt-signature-dialog.d.ts +11 -0
  136. package/dist/components/verdocs-adopt-signature-dialog.js +9 -0
  137. package/dist/components/verdocs-adopt-signature-dialog.js.map +1 -0
  138. package/dist/components/verdocs-auth.js +1 -1
  139. package/dist/components/verdocs-build.js +27 -27
  140. package/dist/components/verdocs-button.js +1 -1
  141. package/dist/components/verdocs-contact-picker.js +1 -1
  142. package/dist/components/verdocs-delegate-dialog.js +1 -1
  143. package/dist/components/verdocs-dialog.js +1 -1
  144. package/dist/components/verdocs-disclosure-dialog.js +1 -1
  145. package/dist/components/verdocs-envelope-document-page.js +1 -1
  146. package/dist/components/verdocs-envelope-recipient-link.js +1 -1
  147. package/dist/components/verdocs-envelope-recipient-summary.js +1 -1
  148. package/dist/components/verdocs-envelope-sidebar.js +5 -5
  149. package/dist/components/verdocs-envelope-update-recipient.js +1 -1
  150. package/dist/components/verdocs-envelopes-list.js +8 -8
  151. package/dist/components/verdocs-field-attachment.js +1 -1
  152. package/dist/components/verdocs-field-checkbox.js +1 -1
  153. package/dist/components/verdocs-field-date.js +1 -1
  154. package/dist/components/verdocs-field-dropdown.js +1 -1
  155. package/dist/components/verdocs-field-initial.js +1 -1
  156. package/dist/components/verdocs-field-payment.js +2 -2
  157. package/dist/components/verdocs-field-radio.js +1 -1
  158. package/dist/components/verdocs-field-signature.js +1 -1
  159. package/dist/components/verdocs-field-textarea.js +1 -1
  160. package/dist/components/verdocs-field-textbox.js +1 -1
  161. package/dist/components/verdocs-field-timestamp.js +1 -1
  162. package/dist/components/verdocs-file-chooser.js +1 -1
  163. package/dist/components/verdocs-initial-dialog.js +1 -1
  164. package/dist/components/verdocs-kba-dialog.js +1 -1
  165. package/dist/components/verdocs-ok-dialog.js +1 -1
  166. package/dist/components/verdocs-otp-dialog.js +1 -1
  167. package/dist/components/verdocs-preview.js +1 -1
  168. package/dist/components/verdocs-question-dialog.js +1 -1
  169. package/dist/components/verdocs-quick-functions.js +1 -1
  170. package/dist/components/verdocs-radio-button.js +1 -50
  171. package/dist/components/verdocs-radio-button.js.map +1 -1
  172. package/dist/components/verdocs-search-tabs.js +1 -1
  173. package/dist/components/verdocs-send.js +1 -1
  174. package/dist/components/verdocs-sign-footer.js +1 -1
  175. package/dist/components/verdocs-sign.js +86 -34
  176. package/dist/components/verdocs-sign.js.map +1 -1
  177. package/dist/components/verdocs-signature-dialog.js +1 -1
  178. package/dist/components/verdocs-status-indicator.js +1 -1
  179. package/dist/components/verdocs-template-attachments.js +1 -1
  180. package/dist/components/verdocs-template-card.js +1 -1
  181. package/dist/components/verdocs-template-create.js +1 -1
  182. package/dist/components/verdocs-template-document-page.js +1 -1
  183. package/dist/components/verdocs-template-field-properties.js +1 -1
  184. package/dist/components/verdocs-template-fields.js +1 -1
  185. package/dist/components/verdocs-template-role-properties.js +1 -1
  186. package/dist/components/verdocs-template-roles.js +1 -1
  187. package/dist/components/verdocs-template-settings.js +1 -1
  188. package/dist/components/verdocs-template-star.js +1 -1
  189. package/dist/components/verdocs-template-tags.js +1 -1
  190. package/dist/components/verdocs-templates-list.js +3 -3
  191. package/dist/components/verdocs-upload-dialog.js +1 -1
  192. package/dist/components/verdocs-view.js +1 -1
  193. package/dist/esm/index-BIRwgFLv.js +6 -6
  194. package/dist/esm/loader.js +1 -1
  195. package/dist/esm/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +1 -0
  196. package/dist/esm/{verdocs-delegate-dialog_5.entry.js → verdocs-adopt-signature-dialog_6.entry.js} +443 -5
  197. package/dist/esm/verdocs-button.verdocs-help-icon.verdocs-text-input.entry.js.map +1 -1
  198. package/dist/esm/verdocs-button_3.entry.js +1 -1
  199. package/dist/esm/verdocs-dialog.entry.js +1 -1
  200. package/dist/esm/verdocs-dialog.entry.js.map +1 -1
  201. package/dist/esm/verdocs-envelope-document-page_3.entry.js +3 -3
  202. package/dist/esm/verdocs-envelopes-list.entry.js +6 -6
  203. package/dist/esm/verdocs-field-attachment_13.entry.js +3 -3
  204. package/dist/esm/verdocs-menu-panel_2.entry.js +7 -7
  205. package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
  206. package/dist/esm/verdocs-quick-functions.entry.js +1 -1
  207. package/dist/esm/verdocs-search-tabs.entry.js +1 -1
  208. package/dist/esm/verdocs-sign.entry.js +42 -4
  209. package/dist/esm/verdocs-sign.entry.js.map +1 -1
  210. package/dist/esm/verdocs-status-indicator.entry.js +2 -2
  211. package/dist/esm/verdocs-template-card.entry.js +1 -1
  212. package/dist/esm/verdocs-template-star.entry.js +1 -1
  213. package/dist/esm/verdocs-template-tags.entry.js +1 -1
  214. package/dist/esm/verdocs-web-sdk.js +1 -1
  215. package/dist/esm-es5/index-BIRwgFLv.js +1 -1
  216. package/dist/esm-es5/loader.js +1 -1
  217. package/dist/esm-es5/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +1 -0
  218. package/dist/esm-es5/verdocs-adopt-signature-dialog_6.entry.js +2 -0
  219. package/dist/esm-es5/verdocs-adopt-signature-dialog_6.entry.js.map +1 -0
  220. package/dist/esm-es5/verdocs-button.verdocs-help-icon.verdocs-text-input.entry.js.map +1 -1
  221. package/dist/esm-es5/verdocs-button_3.entry.js +1 -1
  222. package/dist/esm-es5/verdocs-button_3.entry.js.map +1 -1
  223. package/dist/esm-es5/verdocs-dialog.entry.js +1 -1
  224. package/dist/esm-es5/verdocs-dialog.entry.js.map +1 -1
  225. package/dist/esm-es5/verdocs-envelope-document-page_3.entry.js +1 -1
  226. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  227. package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
  228. package/dist/esm-es5/verdocs-menu-panel_2.entry.js +1 -1
  229. package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
  230. package/dist/esm-es5/verdocs-quick-functions.entry.js +1 -1
  231. package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
  232. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  233. package/dist/esm-es5/verdocs-sign.entry.js.map +1 -1
  234. package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
  235. package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
  236. package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
  237. package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
  238. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  239. package/dist/types/components/dialogs/verdocs-adopt-signature-dialog/verdocs-adopt-signature-dialog.d.ts +72 -0
  240. package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +6 -0
  241. package/dist/types/components.d.ts +63 -0
  242. package/dist/verdocs-web-sdk/{p-314eebba.system.entry.js → p-00a4e7bb.system.entry.js} +2 -2
  243. package/dist/verdocs-web-sdk/{p-0c0bc455.system.entry.js → p-04d12736.system.entry.js} +2 -2
  244. package/dist/verdocs-web-sdk/{p-1deb700a.entry.js → p-08cc95f2.entry.js} +2 -2
  245. package/dist/verdocs-web-sdk/{p-a59be807.system.entry.js → p-119a435b.system.entry.js} +2 -2
  246. package/dist/verdocs-web-sdk/p-11b7417a.system.entry.js +2 -0
  247. package/dist/verdocs-web-sdk/p-11b7417a.system.entry.js.map +1 -0
  248. package/dist/verdocs-web-sdk/p-18f123b0.entry.js +2 -0
  249. package/dist/verdocs-web-sdk/p-18f123b0.entry.js.map +1 -0
  250. package/dist/verdocs-web-sdk/{p-f40ab4f5.entry.js → p-1a24cb02.entry.js} +2 -2
  251. package/dist/verdocs-web-sdk/{p-57a4694c.system.entry.js → p-1b6e12fd.system.entry.js} +2 -2
  252. package/dist/verdocs-web-sdk/{p-228e230f.entry.js → p-2b3b18d9.entry.js} +2 -2
  253. package/dist/verdocs-web-sdk/p-32fbbfa8.system.entry.js +2 -0
  254. package/dist/verdocs-web-sdk/p-33daf816.entry.js +2 -0
  255. package/dist/verdocs-web-sdk/p-33daf816.entry.js.map +1 -0
  256. package/dist/verdocs-web-sdk/{p-e4f0949d.system.entry.js → p-35bff3e8.system.entry.js} +2 -2
  257. package/dist/verdocs-web-sdk/{p-ac9343dd.system.entry.js → p-360b6fe2.system.entry.js} +2 -2
  258. package/dist/verdocs-web-sdk/{p-ac9343dd.system.entry.js.map → p-360b6fe2.system.entry.js.map} +1 -1
  259. package/dist/verdocs-web-sdk/{p-06063fe6.entry.js → p-40da805a.entry.js} +2 -2
  260. package/dist/verdocs-web-sdk/{p-b976781d.system.entry.js → p-4c34cce1.system.entry.js} +2 -2
  261. package/dist/verdocs-web-sdk/{p-no56iQU4.system.js.map → p-5QBnJPzZ.system.js.map} +1 -1
  262. package/dist/verdocs-web-sdk/{p-c061d0f7.system.entry.js → p-5b6a5423.system.entry.js} +2 -2
  263. package/dist/verdocs-web-sdk/{p-63ab6794.entry.js → p-5caf5e89.entry.js} +2 -2
  264. package/dist/verdocs-web-sdk/{p-ce3e9ace.entry.js → p-63a1cdc4.entry.js} +2 -2
  265. package/dist/verdocs-web-sdk/p-645ecdf2.system.entry.js +2 -0
  266. package/dist/verdocs-web-sdk/p-645ecdf2.system.entry.js.map +1 -0
  267. package/dist/verdocs-web-sdk/{p-ed353630.entry.js → p-67f9303c.entry.js} +2 -2
  268. package/dist/verdocs-web-sdk/{p-ed353630.entry.js.map → p-67f9303c.entry.js.map} +1 -1
  269. package/dist/verdocs-web-sdk/{p-59190e63.system.entry.js → p-76d415d8.system.entry.js} +2 -2
  270. package/dist/verdocs-web-sdk/p-7d0ad091.entry.js +2 -0
  271. package/dist/verdocs-web-sdk/{p-79dba586.entry.js.map → p-7d0ad091.entry.js.map} +1 -1
  272. package/dist/verdocs-web-sdk/{p-ea69720d.entry.js → p-8198f626.entry.js} +2 -2
  273. package/dist/verdocs-web-sdk/{p-ffb4ee7b.system.entry.js → p-89253f22.system.entry.js} +2 -2
  274. package/dist/verdocs-web-sdk/{p-6ac24714.entry.js → p-96c615c4.entry.js} +2 -2
  275. package/dist/verdocs-web-sdk/{p-f51c7617.system.entry.js → p-9c6794e2.system.entry.js} +2 -2
  276. package/dist/verdocs-web-sdk/p-B8zpaHu-.system.js +1 -1
  277. package/dist/verdocs-web-sdk/{p-BK1P8OnR.system.js.map → p-BPADFnIx.system.js.map} +1 -1
  278. package/dist/verdocs-web-sdk/p-BXWpJq0l.system.js.map +1 -0
  279. package/dist/verdocs-web-sdk/{p-DjEDnCUT.system.js.map → p-BzzCPrH6.system.js.map} +1 -1
  280. package/dist/verdocs-web-sdk/{p-FCFl6lCt.system.js.map → p-C3zDhjUw.system.js.map} +1 -1
  281. package/dist/verdocs-web-sdk/{p-CjbrW449.system.js.map → p-CIBNz0ch.system.js.map} +1 -1
  282. package/dist/verdocs-web-sdk/{p-RthJMgT5.system.js.map → p-CObV00Q6.system.js.map} +1 -1
  283. package/dist/verdocs-web-sdk/{p-0YtsUAM2.system.js.map → p-CxMoZjwF.system.js.map} +1 -1
  284. package/dist/verdocs-web-sdk/p-D-tqfMW2.system.js.map +1 -0
  285. package/dist/verdocs-web-sdk/{p-CzugWljc.system.js.map → p-DYzIpql-.system.js.map} +1 -1
  286. package/dist/verdocs-web-sdk/{p-BOIq74fd.system.js.map → p-Db51eGCN.system.js.map} +1 -1
  287. package/dist/verdocs-web-sdk/{p-6cRdX3ws.system.js.map → p-DbIrKAuV.system.js.map} +1 -1
  288. package/dist/verdocs-web-sdk/{p-CD1Gqdjg.system.js.map → p-Dm8o0wRd.system.js.map} +1 -1
  289. package/dist/verdocs-web-sdk/{p-CPejf19w.system.js.map → p-U8PkMVAC.system.js.map} +1 -1
  290. package/dist/verdocs-web-sdk/p-aadc0955.system.entry.js +2 -0
  291. package/dist/verdocs-web-sdk/{p-9fcc54f8.system.entry.js.map → p-aadc0955.system.entry.js.map} +1 -1
  292. package/dist/verdocs-web-sdk/{p-eee0e96c.entry.js → p-b6b216b2.entry.js} +2 -2
  293. package/dist/verdocs-web-sdk/{p-a8582158.entry.js → p-c0a10c67.entry.js} +2 -2
  294. package/dist/verdocs-web-sdk/{p-aa1f6673.entry.js → p-e4e3b8ce.entry.js} +2 -2
  295. package/dist/verdocs-web-sdk/p-ipStHMZx.system.js.map +1 -0
  296. package/dist/verdocs-web-sdk/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.esm.js.map +1 -0
  297. package/dist/verdocs-web-sdk/verdocs-button.verdocs-help-icon.verdocs-text-input.entry.esm.js.map +1 -1
  298. package/dist/verdocs-web-sdk/verdocs-dialog.entry.esm.js.map +1 -1
  299. package/dist/verdocs-web-sdk/verdocs-sign.entry.esm.js.map +1 -1
  300. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  301. package/package.json +4 -4
  302. package/dist/cjs/verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.cjs.js.map +0 -1
  303. package/dist/components/p-BLnFOrAj.js +0 -66
  304. package/dist/components/p-BLnFOrAj.js.map +0 -1
  305. package/dist/components/p-DaISePSz.js.map +0 -1
  306. package/dist/custom-elements.json +0 -2332
  307. package/dist/esm/verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +0 -1
  308. package/dist/esm-es5/verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +0 -1
  309. package/dist/esm-es5/verdocs-delegate-dialog_5.entry.js +0 -2
  310. package/dist/esm-es5/verdocs-delegate-dialog_5.entry.js.map +0 -1
  311. package/dist/verdocs-web-sdk/p-0c77bf48.entry.js +0 -2
  312. package/dist/verdocs-web-sdk/p-0c77bf48.entry.js.map +0 -1
  313. package/dist/verdocs-web-sdk/p-11efcb36.system.entry.js +0 -2
  314. package/dist/verdocs-web-sdk/p-11efcb36.system.entry.js.map +0 -1
  315. package/dist/verdocs-web-sdk/p-2xwvEc_F.system.js.map +0 -1
  316. package/dist/verdocs-web-sdk/p-49122faa.entry.js +0 -2
  317. package/dist/verdocs-web-sdk/p-49122faa.entry.js.map +0 -1
  318. package/dist/verdocs-web-sdk/p-4bd8b685.system.entry.js +0 -2
  319. package/dist/verdocs-web-sdk/p-79dba586.entry.js +0 -2
  320. package/dist/verdocs-web-sdk/p-7ab4a24b.system.entry.js +0 -2
  321. package/dist/verdocs-web-sdk/p-7ab4a24b.system.entry.js.map +0 -1
  322. package/dist/verdocs-web-sdk/p-9fcc54f8.system.entry.js +0 -2
  323. package/dist/verdocs-web-sdk/p-CTxgqZQn.system.js.map +0 -1
  324. package/dist/verdocs-web-sdk/p-D_YsBkfv.system.js.map +0 -1
  325. package/dist/verdocs-web-sdk/verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.esm.js.map +0 -1
  326. /package/dist/verdocs-web-sdk/{p-314eebba.system.entry.js.map → p-00a4e7bb.system.entry.js.map} +0 -0
  327. /package/dist/verdocs-web-sdk/{p-0c0bc455.system.entry.js.map → p-04d12736.system.entry.js.map} +0 -0
  328. /package/dist/verdocs-web-sdk/{p-1deb700a.entry.js.map → p-08cc95f2.entry.js.map} +0 -0
  329. /package/dist/verdocs-web-sdk/{p-a59be807.system.entry.js.map → p-119a435b.system.entry.js.map} +0 -0
  330. /package/dist/verdocs-web-sdk/{p-f40ab4f5.entry.js.map → p-1a24cb02.entry.js.map} +0 -0
  331. /package/dist/verdocs-web-sdk/{p-57a4694c.system.entry.js.map → p-1b6e12fd.system.entry.js.map} +0 -0
  332. /package/dist/verdocs-web-sdk/{p-228e230f.entry.js.map → p-2b3b18d9.entry.js.map} +0 -0
  333. /package/dist/verdocs-web-sdk/{p-4bd8b685.system.entry.js.map → p-32fbbfa8.system.entry.js.map} +0 -0
  334. /package/dist/verdocs-web-sdk/{p-e4f0949d.system.entry.js.map → p-35bff3e8.system.entry.js.map} +0 -0
  335. /package/dist/verdocs-web-sdk/{p-06063fe6.entry.js.map → p-40da805a.entry.js.map} +0 -0
  336. /package/dist/verdocs-web-sdk/{p-b976781d.system.entry.js.map → p-4c34cce1.system.entry.js.map} +0 -0
  337. /package/dist/verdocs-web-sdk/{p-c061d0f7.system.entry.js.map → p-5b6a5423.system.entry.js.map} +0 -0
  338. /package/dist/verdocs-web-sdk/{p-63ab6794.entry.js.map → p-5caf5e89.entry.js.map} +0 -0
  339. /package/dist/verdocs-web-sdk/{p-ce3e9ace.entry.js.map → p-63a1cdc4.entry.js.map} +0 -0
  340. /package/dist/verdocs-web-sdk/{p-59190e63.system.entry.js.map → p-76d415d8.system.entry.js.map} +0 -0
  341. /package/dist/verdocs-web-sdk/{p-ea69720d.entry.js.map → p-8198f626.entry.js.map} +0 -0
  342. /package/dist/verdocs-web-sdk/{p-ffb4ee7b.system.entry.js.map → p-89253f22.system.entry.js.map} +0 -0
  343. /package/dist/verdocs-web-sdk/{p-6ac24714.entry.js.map → p-96c615c4.entry.js.map} +0 -0
  344. /package/dist/verdocs-web-sdk/{p-f51c7617.system.entry.js.map → p-9c6794e2.system.entry.js.map} +0 -0
  345. /package/dist/verdocs-web-sdk/{p-eee0e96c.entry.js.map → p-b6b216b2.entry.js.map} +0 -0
  346. /package/dist/verdocs-web-sdk/{p-a8582158.entry.js.map → p-c0a10c67.entry.js.map} +0 -0
  347. /package/dist/verdocs-web-sdk/{p-aa1f6673.entry.js.map → p-e4e3b8ce.entry.js.map} +0 -0
@@ -0,0 +1,2 @@
1
+ import{r as t,c as i,h as e,F as s,H as o,g as r}from"./p-BIRwgFLv.js";import{D as n}from"./p-C_Xku1v2.js";import{verifySigner as a,VerdocsEndpoint as l,getEnvelope as h,getEnvelopesZip as u,getEnvelopeDocumentDownloadLink as d,cancelEnvelope as c,userCanCancelEnvelope as f,integerSequence as p}from"@verdocs/js-sdk";import{V as g}from"./p-CyvDgtoV.js";import{S as b}from"./p-C1sRVZWv.js";import{S as v}from"./p-DmsV595e.js";const x='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-adopt-signature-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-adopt-signature-dialog verdocs-dialog{border-radius:4px}verdocs-adopt-signature-dialog .heading{color:#201f1e;font-weight:400;padding-bottom:0;border-bottom:none}verdocs-adopt-signature-dialog .content{display:-ms-flexbox;display:flex;padding-top:12px;-ms-flex-direction:column;flex-direction:column}verdocs-adopt-signature-dialog verdocs-text-input .input-label{color:#242424;font-size:13px;font-weight:400}verdocs-adopt-signature-dialog verdocs-text-input .input-element{border:1px solid #e0e0e0}verdocs-adopt-signature-dialog verdocs-radio-button{-webkit-transform:scale(0.9);transform:scale(0.9)}verdocs-adopt-signature-dialog canvas{width:100%;height:79px;margin:10px 0;border-radius:4px;background:#fafafa;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #d1d1d1}verdocs-adopt-signature-dialog .disclaimer{padding:8px 0;font-size:11px;line-height:14px;text-align:justify;color:rgba(0, 0, 0, 0.54)}verdocs-adopt-signature-dialog .tabs{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;margin:-20px -20px 0 -20px;border-bottom:1px solid #eeeeee}verdocs-adopt-signature-dialog .tabs .tab{-ms-flex:1;flex:1;gap:4px;display:-ms-flexbox;display:flex;cursor:pointer;font-size:12px;font-weight:500;padding:6px 10px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-adopt-signature-dialog .tabs .tab.active{background:#f9f5fe;border-bottom:2px solid #707ae5}verdocs-adopt-signature-dialog .tabs .tab:hover{color:#55bc81}verdocs-adopt-signature-dialog .tabs .tab .icon{width:16px;height:16px}verdocs-adopt-signature-dialog .type{display:none;-ms-flex-direction:column;flex-direction:column}verdocs-adopt-signature-dialog .type.active{display:-ms-flexbox;display:flex}verdocs-adopt-signature-dialog .draw{height:100px;display:none;margin-top:20px;-ms-flex-direction:column;flex-direction:column}verdocs-adopt-signature-dialog .draw.active{display:-ms-flexbox;display:flex}verdocs-adopt-signature-dialog .draw .draw-instructions{font-size:13px;color:rgba(0, 0, 0, 0.6);margin-bottom:8px;text-align:center}verdocs-adopt-signature-dialog .draw canvas{cursor:crosshair;-ms-touch-action:none;touch-action:none}verdocs-adopt-signature-dialog .draw .draw-actions{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin-top:12px}verdocs-adopt-signature-dialog .draw .draw-actions .clear-button{border:1px solid #d0d0d0;background-color:#ffffff;color:#333333;padding:6px 16px;font-size:13px;cursor:pointer;border-radius:4px;-webkit-transition:all 0.2s ease;transition:all 0.2s ease}verdocs-adopt-signature-dialog .draw .draw-actions .clear-button:hover:not(:disabled){background-color:#f5f5f5;border-color:#b0b0b0}verdocs-adopt-signature-dialog .draw .draw-actions .clear-button:disabled{opacity:0.5;cursor:not-allowed}verdocs-adopt-signature-dialog .upload{height:100px;display:none;margin-top:20px;-ms-flex-direction:column;flex-direction:column}verdocs-adopt-signature-dialog .upload.active{display:-ms-flexbox;display:flex}verdocs-adopt-signature-dialog .upload .upload-instructions{font-size:13px;color:rgba(0, 0, 0, 0.6);margin-bottom:8px;text-align:center}verdocs-adopt-signature-dialog .upload .upload-actions{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;gap:12px;margin-top:8px}verdocs-adopt-signature-dialog .upload .upload-actions .upload-button{border:1px solid #55bc81;background-color:#55bc81;color:#ffffff;padding:8px 20px;font-size:13px;cursor:pointer;border-radius:4px;-webkit-transition:all 0.2s ease;transition:all 0.2s ease}verdocs-adopt-signature-dialog .upload .upload-actions .upload-button:hover{background-color:rgb(62.7594936709, 159.2405063291, 103.9746835443);border-color:rgb(62.7594936709, 159.2405063291, 103.9746835443)}verdocs-adopt-signature-dialog .upload .upload-actions .clear-button{border:1px solid #d0d0d0;background-color:#ffffff;color:#333333;padding:8px 16px;font-size:13px;cursor:pointer;border-radius:4px;-webkit-transition:all 0.2s ease;transition:all 0.2s ease}verdocs-adopt-signature-dialog .upload .upload-actions .clear-button:hover:not(:disabled){background-color:#f5f5f5;border-color:#b0b0b0}verdocs-adopt-signature-dialog .upload .upload-actions .clear-button:disabled{opacity:0.5;cursor:not-allowed}verdocs-adopt-signature-dialog .upload .upload-filename{font-size:12px;color:rgba(0, 0, 0, 0.6);text-align:center;margin-top:8px;font-style:italic}verdocs-adopt-signature-dialog{}verdocs-adopt-signature-dialog .buttons{gap:20px;display:-ms-flexbox;display:flex;margin-top:14px;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-adopt-signature-dialog .buttons button{-ms-flex:1;flex:1;border:0;height:38px;display:-ms-flexbox;display:flex;color:#ffffff;font-size:14px;cursor:pointer;-ms-flex-align:center;align-items:center;border-radius:6px;-ms-flex-pack:center;justify-content:center}verdocs-adopt-signature-dialog .buttons button.cancel{background-color:#654dcb}verdocs-adopt-signature-dialog .buttons button.proceed{background-color:#55bc81}verdocs-adopt-signature-dialog .buttons button:disabled{background-color:#6c727f}';const m=class{constructor(e){t(this,e);this.next=i(this,"next");this.exit=i(this,"exit");this.name="";this.fontLoaded=false;this.enteredName="";this.enteredInitials="";this.mode="type";this.isDrawing=false;this.hasDrawnSignature=false;this.currentSigStroke=[];this.allSigStrokes=[];this.lastSigPoint=null;this.currentInitialsStroke=[];this.allInitialsStrokes=[];this.lastInitialsPoint=null;this.handleSigPointerDown=t=>{t.preventDefault();if(!this.signatureElement||!this.sigDrawingContext){return}this.isDrawing=true;this.hasDrawnSignature=true;const i=this.getSigCanvasCoordinates(t);this.currentSigStroke=[i];this.lastSigPoint=i;this.sigDrawingContext.beginPath();this.sigDrawingContext.moveTo(i.x,i.y);this.signatureElement.setPointerCapture(t.pointerId)};this.handleSigPointerMove=t=>{t.preventDefault();if(!this.isDrawing||!this.sigDrawingContext||!this.lastSigPoint){return}const i=this.getSigCanvasCoordinates(t);this.currentSigStroke.push(i);const e={x:(this.lastSigPoint.x+i.x)/2,y:(this.lastSigPoint.y+i.y)/2};this.sigDrawingContext.quadraticCurveTo(this.lastSigPoint.x,this.lastSigPoint.y,e.x,e.y);this.sigDrawingContext.stroke();this.lastSigPoint=i};this.handleSigPointerUp=t=>{t.preventDefault();if(!this.isDrawing||!this.sigDrawingContext){return}if(this.lastSigPoint&&this.currentSigStroke.length>0){this.sigDrawingContext.lineTo(this.lastSigPoint.x,this.lastSigPoint.y);this.sigDrawingContext.stroke()}if(this.currentSigStroke.length>0){this.allSigStrokes.push([...this.currentSigStroke])}this.isDrawing=false;this.currentSigStroke=[];this.lastSigPoint=null;if(this.signatureElement){this.signatureElement.releasePointerCapture(t.pointerId)}};this.handleSigPointerCancel=t=>{this.isDrawing=false;this.currentSigStroke=[];this.lastSigPoint=null;if(this.signatureElement){this.signatureElement.releasePointerCapture(t.pointerId)}};this.handleInitialsPointerDown=t=>{t.preventDefault();if(!this.initialsElement||!this.initialsDrawingContext){return}this.isDrawing=true;this.hasDrawnSignature=true;const i=this.getInitialsCanvasCoordinates(t);this.currentInitialsStroke=[i];this.lastInitialsPoint=i;this.initialsDrawingContext.beginPath();this.initialsDrawingContext.moveTo(i.x,i.y);this.initialsElement.setPointerCapture(t.pointerId)};this.handleInitialsPointerMove=t=>{t.preventDefault();if(!this.isDrawing||!this.initialsDrawingContext||!this.lastInitialsPoint){return}const i=this.getInitialsCanvasCoordinates(t);this.currentInitialsStroke.push(i);const e={x:(this.lastInitialsPoint.x+i.x)/2,y:(this.lastInitialsPoint.y+i.y)/2};this.initialsDrawingContext.quadraticCurveTo(this.lastInitialsPoint.x,this.lastInitialsPoint.y,e.x,e.y);this.initialsDrawingContext.stroke();this.lastInitialsPoint=i};this.handleInitialsPointerUp=t=>{t.preventDefault();if(!this.isDrawing||!this.initialsDrawingContext){return}if(this.lastInitialsPoint&&this.currentInitialsStroke.length>0){this.initialsDrawingContext.lineTo(this.lastInitialsPoint.x,this.lastInitialsPoint.y);this.initialsDrawingContext.stroke()}if(this.currentInitialsStroke.length>0){this.allInitialsStrokes.push([...this.currentInitialsStroke])}this.isDrawing=false;this.currentInitialsStroke=[];this.lastInitialsPoint=null;if(this.initialsElement){this.initialsElement.releasePointerCapture(t.pointerId)}};this.handleInitialsPointerCancel=t=>{this.isDrawing=false;this.currentInitialsStroke=[];this.lastInitialsPoint=null;if(this.initialsElement){this.initialsElement.releasePointerCapture(t.pointerId)}}}componentWillLoad(){this.enteredName=this.name;this.enteredInitials=this.name.split(" ").map((t=>t.charAt(0).toUpperCase())).join("");const t=new FontFace("Dancing Script","url(https://fonts.gstatic.com/s/dancingscript/v19/If2cXTr6YS-zF4S-kcSWSVi_sxjsohD9F50Ruu7BMSo3Sup6hNX6plRP.woff)");t.load().then((t=>{document.fonts.add(t);this.fontLoaded=true}))}componentDidLoad(){this.drawSignatureText();this.drawInitialsText();this.setupSignatureCanvas();this.setupInitialsCanvas()}componentDidUpdate(){this.drawSignatureText();this.drawInitialsText();this.setupSignatureCanvas();this.setupInitialsCanvas();if(this.mode==="draw"&&this.allSigStrokes.length>0){this.redrawDrawnSignature()}if(this.mode==="draw"&&this.allInitialsStrokes.length>0){this.redrawDrawnInitials()}}drawSignatureText(){if(!this.signatureElement||this.mode!=="type"){return}const t=this.signatureElement.width;const i=this.signatureElement.height;const e=this.signatureElement.getContext("2d");e.clearRect(0,0,this.signatureElement.width,this.signatureElement.height);let s=100;let o=e.measureText(this.enteredName);do{s-=2;e.font=`${s}px Dancing Script`;o=e.measureText(this.enteredName)}while(o.width>t-32&&o.actualBoundingBoxAscent+o.actualBoundingBoxDescent>i-24);e.textAlign="center";e.textBaseline="middle";e.font=`${s}px Dancing Script`;e.fillText(this.enteredName,this.signatureElement.width/2,this.signatureElement.height/2)}drawInitialsText(){if(!this.initialsElement||this.mode!=="type"){return}const t=this.initialsElement.width;const i=this.initialsElement.height;const e=this.initialsElement.getContext("2d");e.clearRect(0,0,this.initialsElement.width,this.initialsElement.height);let s=100;let o=e.measureText(this.enteredInitials);do{s-=2;e.font=`${s}px Dancing Script`;o=e.measureText(this.enteredInitials)}while(o.width>t-32&&o.actualBoundingBoxAscent+o.actualBoundingBoxDescent>i-24);e.textAlign="center";e.textBaseline="middle";e.font=`${s}px Dancing Script`;e.fillText(this.enteredInitials,this.initialsElement.width/2,this.initialsElement.height/2)}redrawDrawnSignature(){if(!this.signatureElement||!this.sigDrawingContext||this.allSigStrokes.length===0){return}this.sigDrawingContext.clearRect(0,0,this.signatureElement.width,this.signatureElement.height);for(const t of this.allSigStrokes){if(t.length===0){continue}this.sigDrawingContext.beginPath();this.sigDrawingContext.moveTo(t[0].x,t[0].y);for(let i=1;i<t.length;i++){const e=t[i];const s=t[i-1];const o={x:(s.x+e.x)/2,y:(s.y+e.y)/2};this.sigDrawingContext.quadraticCurveTo(s.x,s.y,o.x,o.y)}if(t.length>1){const i=t[t.length-1];this.sigDrawingContext.lineTo(i.x,i.y)}this.sigDrawingContext.stroke()}}redrawDrawnInitials(){if(!this.initialsElement||!this.initialsDrawingContext||this.allInitialsStrokes.length===0){return}this.initialsDrawingContext.clearRect(0,0,this.initialsElement.width,this.initialsElement.height);for(const t of this.allInitialsStrokes){if(t.length===0){continue}this.initialsDrawingContext.beginPath();this.initialsDrawingContext.moveTo(t[0].x,t[0].y);for(let i=1;i<t.length;i++){const e=t[i];const s=t[i-1];const o={x:(s.x+e.x)/2,y:(s.y+e.y)/2};this.initialsDrawingContext.quadraticCurveTo(s.x,s.y,o.x,o.y)}if(t.length>1){const i=t[t.length-1];this.initialsDrawingContext.lineTo(i.x,i.y)}this.initialsDrawingContext.stroke()}}handleNameChange(t){this.enteredName=t.target.value;this.enteredInitials=t.target.value.split(" ").map((t=>t.charAt(0).toUpperCase())).join("")}handleCancel(t){t.stopPropagation();t.preventDefault();this.exit.emit()}handleAdopt(t){t.stopPropagation();t.preventDefault();const i=this.signatureElement.toDataURL("image/png");const e=this.initialsElement.toDataURL("image/png");this.next.emit({signature:i,initials:e})}isAdoptButtonDisabled(){switch(this.mode){case"type":return!this.enteredName||this.enteredName.trim().length===0;case"draw":return!this.hasDrawnSignature||this.allSigStrokes.length===0||this.allInitialsStrokes.length===0;default:return true}}setupSignatureCanvas(){if(!this.signatureElement){return}if(this.mode==="draw"){const t=this.signatureElement.getContext("2d");if(t&&t!==this.sigDrawingContext){this.sigDrawingContext=t;this.sigDrawingContext.strokeStyle="#000000";this.sigDrawingContext.lineWidth=2;this.sigDrawingContext.lineCap="round";this.sigDrawingContext.lineJoin="round";if(this.allSigStrokes.length===0){this.sigDrawingContext.clearRect(0,0,this.signatureElement.width,this.signatureElement.height)}}}if(this.mode!=="draw"&&this.sigDrawingContext){this.sigDrawingContext=null;this.currentSigStroke=[];this.lastSigPoint=null}}setupInitialsCanvas(){if(!this.initialsElement){return}if(this.mode==="draw"){const t=this.initialsElement.getContext("2d");if(t&&t!==this.initialsDrawingContext){this.initialsDrawingContext=t;this.initialsDrawingContext.strokeStyle="#000000";this.initialsDrawingContext.lineWidth=2;this.initialsDrawingContext.lineCap="round";this.initialsDrawingContext.lineJoin="round";if(this.allInitialsStrokes.length===0){this.initialsDrawingContext.clearRect(0,0,this.initialsElement.width,this.initialsElement.height)}}}if(this.mode!=="draw"&&this.initialsDrawingContext){this.initialsDrawingContext=null;this.currentInitialsStroke=[];this.lastInitialsPoint=null}}clearSignatureCanvas(){if(!this.signatureElement||!this.sigDrawingContext){return}this.sigDrawingContext.clearRect(0,0,this.signatureElement.width,this.signatureElement.height);this.currentSigStroke=[];this.allSigStrokes=[];this.lastSigPoint=null;this.hasDrawnSignature=false}clearInitialsCanvas(){if(!this.initialsElement||!this.initialsDrawingContext){return}this.initialsDrawingContext.clearRect(0,0,this.initialsElement.width,this.initialsElement.height);this.currentInitialsStroke=[];this.allInitialsStrokes=[];this.lastInitialsPoint=null;this.hasDrawnSignature=false}handleClearDrawing(t){t.stopPropagation();t.preventDefault();this.clearSignatureCanvas();this.clearInitialsCanvas()}getSigCanvasCoordinates(t){if(!this.signatureElement){return{x:0,y:0}}const i=this.signatureElement.getBoundingClientRect();const e=this.signatureElement.width/i.width;const s=this.signatureElement.height/i.height;return{x:(t.clientX-i.left)*e,y:(t.clientY-i.top)*s}}getInitialsCanvasCoordinates(t){if(!this.initialsElement){return{x:0,y:0}}const i=this.initialsElement.getBoundingClientRect();const e=this.initialsElement.width/i.width;const s=this.initialsElement.height/i.height;return{x:(t.clientX-i.left)*e,y:(t.clientY-i.top)*s}}render(){return e("verdocs-dialog",{key:"e0e6f91846971ced0a1110d70575d0328d1df7f2"},e("div",{key:"c43c511d79afa5fcdb8dc0e2f2c1b3c475dbb24c",slot:"heading",class:"heading"},"Adopt Your Signature"),e("div",{key:"4d41a510e27c7ecf47015c5c78f12e3ace24dfe0",slot:"content",class:"content"},e("div",{key:"cbb0bb88d87d07a84eeb0f3c5889aa9191d1db46",style:{fontWeight:"300",color:"#242424",fontSize:"13px"}},"Confirm your name, initials, and signature."),e("div",{key:"153019386dbce3681ca90a5878e8062d5ebd629f",class:{type:true,active:this.mode==="type"}},e("verdocs-text-input",{key:"21997a21554a74bf5f6664e18962e151b696977e",label:"Full Name",value:this.enteredName,onInput:t=>this.handleNameChange(t),onClick:t=>t.stopPropagation()})),e("div",{key:"74f5a84db5ae90e063f85a80e86d4b995e516a0c",style:{fontWeight:"400",color:"#242424",fontSize:"13px"}},"Select a signature style"),e("div",{key:"05a83923186b180cc32a7060ddcf30e8f78aaeae",style:{display:"flex",flexDirection:"row",gap:"10px",marginBottom:"6px",alignItems:"center",fontSize:"13px"}},e("verdocs-radio-button",{key:"2475dd5c213b45339996799282a1b650cd9f4416",checked:this.mode==="type",value:"type",name:"mode",onClick:()=>this.mode="type"}),e("label",{key:"84426bebb6184f146a82ca3df75afb377d57dc1e"},"Typed with a keyboard")),e("div",{key:"299feecf4b50ffaeb6bbac8349adc90872acb3d0",style:{display:"flex",flexDirection:"row",gap:"10px",marginBottom:"6px",alignItems:"center",fontSize:"13px"}},e("verdocs-radio-button",{key:"7fc2262551d100b509065e3e61cb2606c3ee3ce4",checked:this.mode==="draw",value:"draw",name:"mode",onClick:()=>this.mode="draw"}),e("label",{key:"6f6c89fedb6fdbef092dd0300945bc0ba723ecc9"},"Drawn with touch, mouse, or stylus")),e("div",{key:"d46dfe69a754bb9db55798af1918426ee1ed41d0",style:{fontSize:"13px",fontWeight:"400",marginTop:"8px"}},"Signature Preview"),e("canvas",{key:"b32ad9debae275905b188f50c747fb9100dc6915",ref:t=>this.signatureElement=t,width:"300",height:"79",onPointerDown:this.handleSigPointerDown,onPointerMove:this.handleSigPointerMove,onPointerUp:this.handleSigPointerUp,onPointerCancel:this.handleSigPointerCancel,style:{touchAction:"none",cursor:"crosshair"}}),e("div",{key:"f86ac5d3273319bc6dbd573e8fe203819c4b2f47",style:{fontSize:"13px",fontWeight:"400",marginTop:"8px"}},"Initials Preview"),e("canvas",{key:"e989b879e932fe17ef4263b887841fb57bbc2307",ref:t=>this.initialsElement=t,width:"300",height:"79",onPointerDown:this.handleInitialsPointerDown,onPointerMove:this.handleInitialsPointerMove,onPointerUp:this.handleInitialsPointerUp,onPointerCancel:this.handleInitialsPointerCancel,style:{touchAction:"none",cursor:"crosshair"}}),e("div",{key:"a5245a28f5d9c2b75e8a6033ae0f43935af3d8ab",class:"disclaimer"},"By clicking «Adopt Signature», I agree that the signature and initials above will be the electronic representation of my signature and initials for all purposes when I use them to sign documents. Applying them to a document is legally equivalent to signing with a pen on paper.")),e("div",{key:"ca0a22af2bcac343af88ccc2a1bac7785ee26213",class:"footer",slot:"footer"},e("div",{key:"4aa605c10723fff6cc5589f4a602d89e9ecd4ec6",class:"buttons"},e("button",{key:"18fff440c52c241cb6c17cb095ee7fdb805172a0",class:"cancel",onClick:t=>this.handleCancel(t)},"Cancel"),e("button",{key:"1375add10925435c0ad870e3eea330edc202fb24",class:"proceed",onClick:t=>this.handleAdopt(t),disabled:this.isAdoptButtonDisabled()},"Adopt & Sign"))))}};m.style=x;const C='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-delegate-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-delegate-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-delegate-dialog .input{gap:10px;margin:5px 0;display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;-ms-flex-direction:row;flex-direction:row}verdocs-delegate-dialog .input label{margin:8px 0 0 0;-ms-flex:0 0 100px;flex:0 0 100px;font-size:13px;font-weight:500;line-height:10px;white-space:nowrap}verdocs-delegate-dialog .input input{-ms-flex:1;flex:1;padding:5px 8px;border-radius:3px;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #cccccc}verdocs-delegate-dialog .input textarea{-ms-flex:1;flex:1;padding:5px 8px;border-radius:3px;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #cccccc;font-family:"Inter", "Barlow", sans-serif}verdocs-delegate-dialog .input.names input{width:80px}verdocs-delegate-dialog .field{gap:10px;margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;max-width:100%}verdocs-delegate-dialog .field .required{color:red;position:relative;top:-0.5em;font-size:80%}verdocs-delegate-dialog .field label{-ms-flex:0 0 120px;flex:0 0 120px;font-weight:500;line-height:10px;text-align:right;white-space:nowrap}verdocs-delegate-dialog .field verdocs-date-input{width:40%;-ms-flex-positive:1;flex-grow:1}verdocs-delegate-dialog .field verdocs-date-input input{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-delegate-dialog .field input{width:40%;-ms-flex-positive:1;flex-grow:1;padding:5px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-delegate-dialog{}verdocs-delegate-dialog .buttons{gap:20px;display:-ms-flexbox;display:flex;margin-top:14px;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-delegate-dialog .buttons button{-ms-flex:1;flex:1;border:0;height:38px;display:-ms-flexbox;display:flex;color:#ffffff;font-size:14px;cursor:pointer;-ms-flex-align:center;align-items:center;border-radius:6px;-ms-flex-pack:center;justify-content:center}verdocs-delegate-dialog .buttons button.cancel{background-color:#654dcb}verdocs-delegate-dialog .buttons button.proceed{background-color:#55bc81}verdocs-delegate-dialog .buttons button:disabled{background-color:#6c727f}';const w=class{constructor(e){t(this,e);this.exit=i(this,"exit");this.next=i(this,"next");this.endpoint=n;this.envelope=null;this.first_name="";this.last_name="";this.email="";this.phone="";this.message=""}handleCancel(){this.exit.emit()}handleDismiss(t){if(t.target.class==="background-overlay"){t.preventDefault();this.handleCancel()}}handleDelegate(){this.next.emit({first_name:this.first_name,last_name:this.last_name,email:this.email,phone:this.phone,message:this.message})}render(){return e("verdocs-dialog",{key:"3328c89a822e9da2717c024cbeb91b8342997975"},e("div",{key:"a5aa76bcc513d754d7ffed6367709926cb091d0d",slot:"heading",class:"heading"},e("div",{key:"72f3af2e0fddef24046b5ee982fef0476f90b999",class:"icon"},e("svg",{key:"7ec6730440063fb1e688af7d827d2118a4633a38",width:"22",height:"19",viewBox:"0 0 22 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("g",{key:"99f067a358fb9b320f7edc5243037ffb16ccb183","clip-path":"url(#clip0_34208_4881)"},e("path",{key:"79d97113c574b10a26b92b098246c9cdff08f5e9",d:"M3.125 0.75C1.88398 0.75 0.875 1.75898 0.875 3V16.5C0.875 17.741 1.88398 18.75 3.125 18.75H12.125C13.366 18.75 14.375 17.741 14.375 16.5V15.8215C14.2801 15.8602 14.1852 15.8918 14.0867 15.9164L11.9738 16.4437C11.8684 16.4684 11.7629 16.4859 11.6574 16.493C11.6258 16.4965 11.5941 16.5 11.5625 16.5H9.3125C9.09805 16.5 8.90469 16.3805 8.80977 16.1906L8.50039 15.5684C8.44062 15.4488 8.32109 15.375 8.19102 15.375C8.06094 15.375 7.93789 15.4488 7.88164 15.5684L7.57227 16.1906C7.47031 16.398 7.24883 16.5211 7.02031 16.5C6.7918 16.4789 6.59492 16.3207 6.53164 16.1027L5.9375 14.1445L5.59297 15.2977C5.37852 16.0113 4.72109 16.5 3.97578 16.5H3.6875C3.37812 16.5 3.125 16.2469 3.125 15.9375C3.125 15.6281 3.37812 15.375 3.6875 15.375H3.97578C4.22539 15.375 4.44336 15.2133 4.51367 14.9742L5.0375 13.234C5.15703 12.8367 5.52266 12.5625 5.9375 12.5625C6.35234 12.5625 6.71797 12.8367 6.8375 13.234L7.24531 14.591C7.50547 14.373 7.83594 14.25 8.1875 14.25C8.74648 14.25 9.25625 14.5664 9.50586 15.0656L9.66055 15.375H9.97344C9.86445 15.0656 9.84336 14.7281 9.92422 14.3977L10.4516 12.2848C10.55 11.8875 10.7539 11.5289 11.0422 11.2406L14.375 7.90781V6.375H9.875C9.25273 6.375 8.75 5.87227 8.75 5.25V0.75H3.125ZM9.875 0.75V5.25H14.375L9.875 0.75ZM20.2039 5.66133C19.6555 5.11289 18.766 5.11289 18.2141 5.66133L17.1805 6.69492L19.6766 9.19102L20.7102 8.15742C21.2586 7.60898 21.2586 6.71953 20.7102 6.16758L20.2039 5.66133ZM11.8402 12.0352C11.6961 12.1793 11.5941 12.3586 11.5449 12.559L11.0176 14.6719C10.9684 14.8652 11.0246 15.0656 11.1652 15.2063C11.3059 15.3469 11.5062 15.4031 11.6996 15.3539L13.8125 14.8266C14.0094 14.7773 14.1922 14.6754 14.3363 14.5312L18.8785 9.98555L16.3824 7.48945L11.8402 12.0352Z",fill:"white"})),e("defs",{key:"94509d6fa3844ec32dbd8b56f4ddf4a11afe4f63"},e("clipPath",{key:"5f743336778d38082fd115e74dcd9f5ea3cf71d8",id:"clip0_34208_4881"},e("path",{key:"970770328892624bde9e84575dafd82433e4ccff",d:"M0.875 0.75H21.125V18.75H0.875V0.75Z",fill:"white"}))))),e("div",{key:"e685e5c8f56fae78158731c506a7fcb0302ddad4",class:"title"},'Delegate "',this.envelope.name,'"')),e("div",{key:"43132cd8f62cac8d11661a93c82539006fcae4b3",slot:"content",class:"content"},e("div",{key:"4fee7e46e5c610b183d257314af95630f036293e",class:"input names"},e("label",{key:"1ee5d5a3225823b715ba93bc355d30370568733b",htmlFor:"verdocs-delegate-email"},"New Recipient:"),e("input",{key:"4c81a854693de1df96883d7f9645a67ffa4808f4",type:"text",id:"verdocs-delegate-first",name:"verdocs-delegate-first",autocomplete:"blocked",placeholder:"First name...",value:this.first_name,onInput:t=>this.first_name=t.target.value}),e("input",{key:"b54b7b799e83167a40ae7d11425f86cb42e2b079",type:"text",id:"verdocs-delegate-last",name:"verdocs-delegate-last",autocomplete:"blocked",placeholder:"Last name...",value:this.last_name,onInput:t=>this.last_name=t.target.value})),e("div",{key:"624732fa9a0644835db65588796ca624b0782e54",class:"input"},e("label",{key:"f43b8cb976c1401d88cf2e0280b18c60b0498f5e",htmlFor:"verdocs-delegate-email"},"Email Address:"),e("input",{key:"fa58d7704b3fc564c254647b01d45aa776f27c4a",type:"text",id:"verdocs-delegate-email",name:"verdocs-delegate-email",autocomplete:"blocked",placeholder:"New recipient email address...",value:this.email,onInput:t=>this.email=t.target.value})),e("div",{key:"e9671d105f1cc7e5ec1a883ccf3a88ca292479a4",class:"input"},e("label",{key:"58970725efa4b5343ad9e6cd69c2e31f154334d9",htmlFor:"verdocs-delegate-phone"},"Phone:"),e("input",{key:"45487a1386f79d326ae5498c2a03c63d3423e3f6",type:"text",id:"verdocs-delegate-phone",name:"verdocs-delegate-phone",autocomplete:"blocked",placeholder:"Optional phone number...",value:this.phone,onInput:t=>this.phone=t.target.value})),e("div",{key:"15d95458921e3044e553d6df4fdf79863fa97a57",class:"input"},e("label",{key:"b24618ddfabb8792201d44002dbd27d18086bb7b",htmlFor:"verdocs-delegate-email"},"Message:"),e("textarea",{key:"6f695d63955392c8e7af36c43b359b4ac26c6df8",id:"verdocs-delegate-message",name:"verdocs-delegate-message",rows:3,autocomplete:"blocked",placeholder:"Optional message to include in the invitation...",onInput:t=>this.message=t.target.value},this.message))),e("div",{key:"0de8db55b0c724b4827c400cb710f36c7233c635",class:"footer",slot:"footer"},e("div",{key:"8989a50706302829188145b7e0ce7bcfbb39b5ce",class:"buttons"},e("button",{key:"3501cc234ab27a243bdef1ff1fece6c70da7111e",class:"cancel",onClick:()=>this.handleCancel()},"Cancel"),e("button",{key:"1de686e768e9720050db90d10e7330458ffefbf6",class:"proceed",onClick:()=>this.handleDelegate(),disabled:!this.first_name||!this.last_name||!this.email},"Proceed"))))}};w.style=C;const k="@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-disclosure-dialog .footer .accept{margin:0 0 28px 28px;color:#374151}verdocs-disclosure-dialog a{color:#4c56cb}verdocs-disclosure-dialog verdocs-checkbox{font-size:14px;line-height:20px}verdocs-disclosure-dialog verdocs-checkbox label>input[type=checkbox]+*::before{width:16px;height:16px;line-height:16px;margin-left:-28px;vertical-align:middle}verdocs-disclosure-dialog{}verdocs-disclosure-dialog .buttons{gap:20px;display:-ms-flexbox;display:flex;margin-top:14px;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-disclosure-dialog .buttons button{-ms-flex:1;flex:1;border:0;height:38px;display:-ms-flexbox;display:flex;color:#ffffff;font-size:14px;cursor:pointer;-ms-flex-align:center;align-items:center;border-radius:6px;-ms-flex-pack:center;justify-content:center}verdocs-disclosure-dialog .buttons button.decline{background-color:#654dcb}verdocs-disclosure-dialog .buttons button.delegate{background-color:#55bc81}verdocs-disclosure-dialog .buttons button.proceed{background-color:#55bc81}verdocs-disclosure-dialog .buttons button:disabled{background-color:#6c727f}";const y=class{constructor(e){t(this,e);this.decline=i(this,"decline");this.delegate=i(this,"delegate");this.accept=i(this,"accept");this.disclosures=null;this.delegator=false;this.accepted=false}render(){return e("verdocs-dialog",{key:"af43a020b8246d10ecd5944f2848e68bf9e84e06"},e("div",{key:"f509453b4f27f0583c560ca2df87f04c653a7e9f",slot:"heading",class:"heading"},e("div",{key:"c63c8a05522b98c271e75bb4e362a3444bae1887",class:"icon"},e("svg",{key:"cb86999abfb375d48cec4a5e1d4a4aa81699e497",width:"22",height:"19",viewBox:"0 0 22 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("g",{key:"96cd5602e5b1ff45cbb480594361e74e3706c761","clip-path":"url(#clip0_34208_4881)"},e("path",{key:"33784fac655559c4e4e8db0b8dcae2f0a99278dc",d:"M3.125 0.75C1.88398 0.75 0.875 1.75898 0.875 3V16.5C0.875 17.741 1.88398 18.75 3.125 18.75H12.125C13.366 18.75 14.375 17.741 14.375 16.5V15.8215C14.2801 15.8602 14.1852 15.8918 14.0867 15.9164L11.9738 16.4437C11.8684 16.4684 11.7629 16.4859 11.6574 16.493C11.6258 16.4965 11.5941 16.5 11.5625 16.5H9.3125C9.09805 16.5 8.90469 16.3805 8.80977 16.1906L8.50039 15.5684C8.44062 15.4488 8.32109 15.375 8.19102 15.375C8.06094 15.375 7.93789 15.4488 7.88164 15.5684L7.57227 16.1906C7.47031 16.398 7.24883 16.5211 7.02031 16.5C6.7918 16.4789 6.59492 16.3207 6.53164 16.1027L5.9375 14.1445L5.59297 15.2977C5.37852 16.0113 4.72109 16.5 3.97578 16.5H3.6875C3.37812 16.5 3.125 16.2469 3.125 15.9375C3.125 15.6281 3.37812 15.375 3.6875 15.375H3.97578C4.22539 15.375 4.44336 15.2133 4.51367 14.9742L5.0375 13.234C5.15703 12.8367 5.52266 12.5625 5.9375 12.5625C6.35234 12.5625 6.71797 12.8367 6.8375 13.234L7.24531 14.591C7.50547 14.373 7.83594 14.25 8.1875 14.25C8.74648 14.25 9.25625 14.5664 9.50586 15.0656L9.66055 15.375H9.97344C9.86445 15.0656 9.84336 14.7281 9.92422 14.3977L10.4516 12.2848C10.55 11.8875 10.7539 11.5289 11.0422 11.2406L14.375 7.90781V6.375H9.875C9.25273 6.375 8.75 5.87227 8.75 5.25V0.75H3.125ZM9.875 0.75V5.25H14.375L9.875 0.75ZM20.2039 5.66133C19.6555 5.11289 18.766 5.11289 18.2141 5.66133L17.1805 6.69492L19.6766 9.19102L20.7102 8.15742C21.2586 7.60898 21.2586 6.71953 20.7102 6.16758L20.2039 5.66133ZM11.8402 12.0352C11.6961 12.1793 11.5941 12.3586 11.5449 12.559L11.0176 14.6719C10.9684 14.8652 11.0246 15.0656 11.1652 15.2063C11.3059 15.3469 11.5062 15.4031 11.6996 15.3539L13.8125 14.8266C14.0094 14.7773 14.1922 14.6754 14.3363 14.5312L18.8785 9.98555L16.3824 7.48945L11.8402 12.0352Z",fill:"white"})),e("defs",{key:"22c4ad5a2f86f6364b6358664a4e97e37e683205"},e("clipPath",{key:"c5209b3906de7a6944b50e8406ab3916d4910f59",id:"clip0_34208_4881"},e("path",{key:"05a17ff15281602f7072440bff534c14f35bc93f",d:"M0.875 0.75H21.125V18.75H0.875V0.75Z",fill:"white"}))))),e("div",{key:"9e038b9d665cf3af552852b3178cc00f36b86b26",class:"title"},"e-Signature Disclosures")),e("div",{key:"e3a7849b0c78958b9b29fcecec0fce271fe18ca4",slot:"content",class:"content",innerHTML:this.disclosures}),e("div",{key:"a29fafa1785d0e3d0da5e2925ae286cbe7abae50",class:"footer",slot:"footer"},e("div",{key:"855596d7f0e23a7ae9bd00a54e3b548a790690f0",class:"accept"},e("verdocs-checkbox",{key:"7587ccded4f1f3cd84f0a0555714c4dbaa8825ed",label:"I accept the electronic signature disclosures and agree to proceed with digital signing.",checked:this.accepted,onInput:()=>this.accepted=!this.accepted})),this.delegator?e(s,null,e("div",{class:"buttons"},e("button",{class:"proceed",onClick:()=>this.accept.emit(),disabled:!this.accepted},"Proceed")),e("div",{class:"buttons"},e("button",{class:"decline",onClick:()=>this.decline.emit()},"Decline"),e("button",{class:"delegate",onClick:()=>this.delegate.emit()},"Delegate"))):e(s,null,e("div",{class:"buttons"},e("button",{class:"decline",onClick:()=>this.decline.emit()},"Decline"),e("button",{class:"proceed",onClick:()=>this.accept.emit(),disabled:!this.accepted},"Proceed")))))}};y.style=k;function A(t){return typeof t==="string"||t instanceof String}function F(t){var i;return typeof t==="object"&&t!=null&&(t==null||(i=t.constructor)==null?void 0:i.name)==="Object"}function D(t,i){if(Array.isArray(i))return D(t,((t,e)=>i.includes(e)));return Object.entries(t).reduce(((t,e)=>{let[s,o]=e;if(i(o,s))t[s]=o;return t}),{})}const B={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function E(t){switch(t){case B.LEFT:return B.FORCE_LEFT;case B.RIGHT:return B.FORCE_RIGHT;default:return t}}function L(t){return t.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function _(t,i){if(i===t)return true;const e=Array.isArray(i),s=Array.isArray(t);let o;if(e&&s){if(i.length!=t.length)return false;for(o=0;o<i.length;o++)if(!_(i[o],t[o]))return false;return true}if(e!=s)return false;if(i&&t&&typeof i==="object"&&typeof t==="object"){const e=i instanceof Date,s=t instanceof Date;if(e&&s)return i.getTime()==t.getTime();if(e!=s)return false;const r=i instanceof RegExp,n=t instanceof RegExp;if(r&&n)return i.toString()==t.toString();if(r!=n)return false;const a=Object.keys(i);for(o=0;o<a.length;o++)if(!Object.prototype.hasOwnProperty.call(t,a[o]))return false;for(o=0;o<a.length;o++)if(!_(t[a[o]],i[a[o]]))return false;return true}else if(i&&t&&typeof i==="function"&&typeof t==="function"){return i.toString()===t.toString()}return false}class I{constructor(t){Object.assign(this,t);while(this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos)){--this.oldSelection.start}if(this.insertedCount){while(this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end)){if(this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end)++this.oldSelection.end;else++this.cursorPos}}}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){if(!this.removedCount||this.insertedCount)return B.NONE;return(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?B.RIGHT:B.LEFT}}function V(t,i){return new V.InputMask(t,i)}function S(t){if(t==null)throw new Error("mask property should be defined");if(t instanceof RegExp)return V.MaskedRegExp;if(A(t))return V.MaskedPattern;if(t===Date)return V.MaskedDate;if(t===Number)return V.MaskedNumber;if(Array.isArray(t)||t===Array)return V.MaskedDynamic;if(V.Masked&&t.prototype instanceof V.Masked)return t;if(V.Masked&&t instanceof V.Masked)return t.constructor;if(t instanceof Function)return V.MaskedFunction;console.warn("Mask not found for mask",t);return V.Masked}function M(t){if(!t)throw new Error("Options in not defined");if(V.Masked){if(t.prototype instanceof V.Masked)return{mask:t};const{mask:i=undefined,...e}=t instanceof V.Masked?{mask:t}:F(t)&&t.mask instanceof V.Masked?t:{};if(i){const t=i.mask;return{...D(i,((t,i)=>!i.startsWith("_"))),mask:i.constructor,_mask:t,...e}}}if(!F(t))return{mask:t};return{...t}}function z(t){if(V.Masked&&t instanceof V.Masked)return t;const i=M(t);const e=S(i.mask);if(!e)throw new Error("Masked class is not found for provided mask "+i.mask+", appropriate module needs to be imported manually before creating mask.");if(i.mask===e)delete i.mask;if(i._mask){i.mask=i._mask;delete i._mask}return new e(i)}V.createMask=z;class P{get selectionStart(){let t;try{t=this._unsafeSelectionStart}catch{}return t!=null?t:this.value.length}get selectionEnd(){let t;try{t=this._unsafeSelectionEnd}catch{}return t!=null?t:this.value.length}select(t,i){if(t==null||i==null||t===this.selectionStart&&i===this.selectionEnd)return;try{this._unsafeSelect(t,i)}catch{}}get isActive(){return false}}V.MaskElement=P;const H=90;const T=89;class R extends P{constructor(t){super();this.input=t;this._onKeydown=this._onKeydown.bind(this);this._onInput=this._onInput.bind(this);this._onBeforeinput=this._onBeforeinput.bind(this);this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var t,i,e;return(t=(i=(e=this.input).getRootNode)==null?void 0:i.call(e))!=null?t:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(t){this.input.addEventListener("keydown",this._onKeydown);this.input.addEventListener("input",this._onInput);this.input.addEventListener("beforeinput",this._onBeforeinput);this.input.addEventListener("compositionend",this._onCompositionEnd);this.input.addEventListener("drop",t.drop);this.input.addEventListener("click",t.click);this.input.addEventListener("focus",t.focus);this.input.addEventListener("blur",t.commit);this._handlers=t}_onKeydown(t){if(this._handlers.redo&&(t.keyCode===H&&t.shiftKey&&(t.metaKey||t.ctrlKey)||t.keyCode===T&&t.ctrlKey)){t.preventDefault();return this._handlers.redo(t)}if(this._handlers.undo&&t.keyCode===H&&(t.metaKey||t.ctrlKey)){t.preventDefault();return this._handlers.undo(t)}if(!t.isComposing)this._handlers.selectionChange(t)}_onBeforeinput(t){if(t.inputType==="historyUndo"&&this._handlers.undo){t.preventDefault();return this._handlers.undo(t)}if(t.inputType==="historyRedo"&&this._handlers.redo){t.preventDefault();return this._handlers.redo(t)}}_onCompositionEnd(t){this._handlers.input(t)}_onInput(t){if(!t.isComposing)this._handlers.input(t)}unbindEvents(){this.input.removeEventListener("keydown",this._onKeydown);this.input.removeEventListener("input",this._onInput);this.input.removeEventListener("beforeinput",this._onBeforeinput);this.input.removeEventListener("compositionend",this._onCompositionEnd);this.input.removeEventListener("drop",this._handlers.drop);this.input.removeEventListener("click",this._handlers.click);this.input.removeEventListener("focus",this._handlers.focus);this.input.removeEventListener("blur",this._handlers.commit);this._handlers={}}}V.HTMLMaskElement=R;class O extends R{constructor(t){super(t);this.input=t}get _unsafeSelectionStart(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(t,i){this.input.setSelectionRange(t,i)}get value(){return this.input.value}set value(t){this.input.value=t}}V.HTMLMaskElement=R;class N extends R{get _unsafeSelectionStart(){const t=this.rootElement;const i=t.getSelection&&t.getSelection();const e=i&&i.anchorOffset;const s=i&&i.focusOffset;if(s==null||e==null||e<s){return e}return s}get _unsafeSelectionEnd(){const t=this.rootElement;const i=t.getSelection&&t.getSelection();const e=i&&i.anchorOffset;const s=i&&i.focusOffset;if(s==null||e==null||e>s){return e}return s}_unsafeSelect(t,i){if(!this.rootElement.createRange)return;const e=this.rootElement.createRange();e.setStart(this.input.firstChild||this.input,t);e.setEnd(this.input.lastChild||this.input,i);const s=this.rootElement;const o=s.getSelection&&s.getSelection();if(o){o.removeAllRanges();o.addRange(e)}}get value(){return this.input.textContent||""}set value(t){this.input.textContent=t}}V.HTMLContenteditableMaskElement=N;class j{constructor(){this.states=[];this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return this.states.length===0}push(t){if(this.currentIndex<this.states.length-1)this.states.length=this.currentIndex+1;this.states.push(t);if(this.states.length>j.MAX_LENGTH)this.states.shift();this.currentIndex=this.states.length-1}go(t){this.currentIndex=Math.min(Math.max(this.currentIndex+t,0),this.states.length-1);return this.currentState}undo(){return this.go(-1)}redo(){return this.go(1)}clear(){this.states.length=0;this.currentIndex=0}}j.MAX_LENGTH=100;class Z{constructor(t,i){this.el=t instanceof P?t:t.isContentEditable&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"?new N(t):new O(t);this.masked=z(i);this._listeners={};this._value="";this._unmaskedValue="";this._rawInputValue="";this.history=new j;this._saveSelection=this._saveSelection.bind(this);this._onInput=this._onInput.bind(this);this._onChange=this._onChange.bind(this);this._onDrop=this._onDrop.bind(this);this._onFocus=this._onFocus.bind(this);this._onClick=this._onClick.bind(this);this._onUndo=this._onUndo.bind(this);this._onRedo=this._onRedo.bind(this);this.alignCursor=this.alignCursor.bind(this);this.alignCursorFriendly=this.alignCursorFriendly.bind(this);this._bindEvents();this.updateValue();this._onChange()}maskEquals(t){var i;return t==null||((i=this.masked)==null?void 0:i.maskEquals(t))}get mask(){return this.masked.mask}set mask(t){if(this.maskEquals(t))return;if(!(t instanceof V.Masked)&&this.masked.constructor===S(t)){this.masked.updateOptions({mask:t});return}const i=t instanceof V.Masked?t:z({mask:t});i.unmaskedValue=this.masked.unmaskedValue;this.masked=i}get value(){return this._value}set value(t){if(this.value===t)return;this.masked.value=t;this.updateControl("auto")}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(t){if(this.unmaskedValue===t)return;this.masked.unmaskedValue=t;this.updateControl("auto")}get rawInputValue(){return this._rawInputValue}set rawInputValue(t){if(this.rawInputValue===t)return;this.masked.rawInputValue=t;this.updateControl();this.alignCursor()}get typedValue(){return this.masked.typedValue}set typedValue(t){if(this.masked.typedValueEquals(t))return;this.masked.typedValue=t;this.updateControl("auto")}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){if(this.el)this.el.unbindEvents()}_fireEvent(t,i){const e=this._listeners[t];if(!e)return;e.forEach((t=>t(i)))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(t){if(!this.el||!this.el.isActive)return;this.el.select(t,t);this._saveSelection()}_saveSelection(){if(this.displayValue!==this.el.value){console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly.")}this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value;this._value=this.masked.value;this._unmaskedValue=this.masked.unmaskedValue;this._rawInputValue=this.masked.rawInputValue}updateControl(t){const i=this.masked.unmaskedValue;const e=this.masked.value;const s=this.masked.rawInputValue;const o=this.displayValue;const r=this.unmaskedValue!==i||this.value!==e||this._rawInputValue!==s;this._unmaskedValue=i;this._value=e;this._rawInputValue=s;if(this.el.value!==o)this.el.value=o;if(t==="auto")this.alignCursor();else if(t!=null)this.cursorPos=t;if(r)this._fireChangeEvents();if(!this._historyChanging&&(r||this.history.isEmpty))this.history.push({unmaskedValue:i,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(t){const{mask:i,...e}=t;const s=!this.maskEquals(i);const o=this.masked.optionsIsChanged(e);if(s)this.mask=i;if(o)this.masked.updateOptions(e);if(s||o)this.updateControl()}updateCursor(t){if(t==null)return;this.cursorPos=t;this._delayUpdateCursor(t)}_delayUpdateCursor(t){this._abortUpdateCursor();this._changingCursorPos=t;this._cursorChanging=setTimeout((()=>{if(!this.el)return;this.cursorPos=this._changingCursorPos;this._abortUpdateCursor()}),10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent);if(this.masked.isComplete)this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){if(this._cursorChanging){clearTimeout(this._cursorChanging);delete this._cursorChanging}}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,B.LEFT))}alignCursorFriendly(){if(this.selectionStart!==this.cursorPos)return;this.alignCursor()}on(t,i){if(!this._listeners[t])this._listeners[t]=[];this._listeners[t].push(i);return this}off(t,i){if(!this._listeners[t])return this;if(!i){delete this._listeners[t];return this}const e=this._listeners[t].indexOf(i);if(e>=0)this._listeners[t].splice(e,1);return this}_onInput(t){this._inputEvent=t;this._abortUpdateCursor();const i=new I({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection});const e=this.masked.rawInputValue;const s=this.masked.splice(i.startChangePos,i.removed.length,i.inserted,i.removeDirection,{input:true,raw:true}).offset;const o=e===this.masked.rawInputValue?i.removeDirection:B.NONE;let r=this.masked.nearestInputPos(i.startChangePos+s,o);if(o!==B.NONE)r=this.masked.nearestInputPos(r,B.NONE);this.updateControl(r);delete this._inputEvent}_onChange(){if(this.displayValue!==this.el.value)this.updateValue();this.masked.doCommit();this.updateControl();this._saveSelection()}_onDrop(t){t.preventDefault();t.stopPropagation()}_onFocus(t){this.alignCursorFriendly()}_onClick(t){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(t){if(!t)return;this._historyChanging=true;this.unmaskedValue=t.unmaskedValue;this.el.select(t.selection.start,t.selection.end);this._saveSelection();this._historyChanging=false}destroy(){this._unbindEvents();this._listeners.length=0;delete this.el}}V.InputMask=Z;class W{static normalize(t){return Array.isArray(t)?t:[t,new W]}constructor(t){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:false},t)}aggregate(t){this.inserted+=t.inserted;this.rawInserted+=t.rawInserted;this.tailShift+=t.tailShift;this.skip=this.skip||t.skip;return this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return Boolean(this.rawInserted)||this.skip}equals(t){return this.inserted===t.inserted&&this.tailShift===t.tailShift&&this.rawInserted===t.rawInserted&&this.skip===t.skip}}V.ChangeDetails=W;class q{constructor(t,i,e){if(t===void 0){t=""}if(i===void 0){i=0}this.value=t;this.from=i;this.stop=e}toString(){return this.value}extend(t){this.value+=String(t)}appendTo(t){return t.append(this.toString(),{tail:true}).aggregate(t._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(t){Object.assign(this,t)}unshift(t){if(!this.value.length||t!=null&&this.from>=t)return"";const i=this.value[0];this.value=this.value.slice(1);return i}shift(){if(!this.value.length)return"";const t=this.value[this.value.length-1];this.value=this.value.slice(0,-1);return t}}class U{constructor(t){this._value="";this._update({...U.DEFAULTS,...t});this._initialized=true}updateOptions(t){if(!this.optionsIsChanged(t))return;this.withValueRefresh(this._update.bind(this,t))}_update(t){Object.assign(this,t)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value}reset(){this._value=""}get value(){return this._value}set value(t){this.resolve(t,{input:true})}resolve(t,i){if(i===void 0){i={input:true}}this.reset();this.append(t,i,"");this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(t){this.resolve(t,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(t){if(this.format){this.value=this.format(t,this)}else{this.unmaskedValue=String(t)}}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:true})}set rawInputValue(t){this.resolve(t,{raw:true})}get displayValue(){return this.value}get isComplete(){return true}get isFilled(){return this.isComplete}nearestInputPos(t,i){return t}totalInputPositions(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}return Math.min(this.displayValue.length,i-t)}extractInput(t,i,e){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}return this.displayValue.slice(t,i)}extractTail(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}return new q(this.extractInput(t,i),t)}appendTail(t){if(A(t))t=new q(String(t));return t.appendTo(this)}_appendCharRaw(t,i){if(!t)return new W;this._value+=t;return new W({inserted:t,rawInserted:t})}_appendChar(t,i,e){if(i===void 0){i={}}const s=this.state;let o;[t,o]=this.doPrepareChar(t,i);if(t){o=o.aggregate(this._appendCharRaw(t,i));if(!o.rawInserted&&this.autofix==="pad"){const e=this.state;this.state=s;let r=this.pad(i);const n=this._appendCharRaw(t,i);r=r.aggregate(n);if(n.rawInserted||r.equals(o)){o=r}else{this.state=e}}}if(o.inserted){let t;let r=this.doValidate(i)!==false;if(r&&e!=null){const i=this.state;if(this.overwrite===true){t=e.state;for(let t=0;t<o.rawInserted.length;++t){e.unshift(this.displayValue.length-o.tailShift)}}let s=this.appendTail(e);r=s.rawInserted.length===e.toString().length;if(!(r&&s.inserted)&&this.overwrite==="shift"){this.state=i;t=e.state;for(let t=0;t<o.rawInserted.length;++t){e.shift()}s=this.appendTail(e);r=s.rawInserted.length===e.toString().length}if(r&&s.inserted)this.state=i}if(!r){o=new W;this.state=s;if(e&&t)e.state=t}}return o}_appendPlaceholder(){return new W}_appendEager(){return new W}append(t,i,e){if(!A(t))throw new Error("value should be string");const s=A(e)?new q(String(e)):e;if(i!=null&&i.tail)i._beforeTailState=this.state;let o;[t,o]=this.doPrepare(t,i);for(let e=0;e<t.length;++e){const r=this._appendChar(t[e],i,s);if(!r.rawInserted&&!this.doSkipInvalid(t[e],i,s))break;o.aggregate(r)}if((this.eager===true||this.eager==="append")&&i!=null&&i.input&&t){o.aggregate(this._appendEager())}if(s!=null){o.tailShift+=this.appendTail(s).tailShift}return o}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}this._value=this.displayValue.slice(0,t)+this.displayValue.slice(i);return new W}withValueRefresh(t){if(this._refreshing||!this._initialized)return t();this._refreshing=true;const i=this.rawInputValue;const e=this.value;const s=t();this.rawInputValue=i;if(this.value&&this.value!==e&&e.indexOf(this.value)===0){this.append(e.slice(this.displayValue.length),{},"");this.doCommit()}delete this._refreshing;return s}runIsolated(t){if(this._isolated||!this._initialized)return t(this);this._isolated=true;const i=this.state;const e=t(this);this.state=i;delete this._isolated;return e}doSkipInvalid(t,i,e){return Boolean(this.skipInvalid)}doPrepare(t,i){if(i===void 0){i={}}return W.normalize(this.prepare?this.prepare(t,this,i):t)}doPrepareChar(t,i){if(i===void 0){i={}}return W.normalize(this.prepareChar?this.prepareChar(t,this,i):t)}doValidate(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))}doCommit(){if(this.commit)this.commit(this.value,this)}splice(t,i,e,s,o){if(e===void 0){e=""}if(s===void 0){s=B.NONE}if(o===void 0){o={input:true}}const r=t+i;const n=this.extractTail(r);const a=this.eager===true||this.eager==="remove";let l;if(a){s=E(s);l=this.extractInput(0,r,{raw:true})}let h=t;const u=new W;if(s!==B.NONE){h=this.nearestInputPos(t,i>1&&t!==0&&!a?B.NONE:s);u.tailShift=h-t}u.aggregate(this.remove(h));if(a&&s!==B.NONE&&l===this.rawInputValue){if(s===B.FORCE_LEFT){let t;while(l===this.rawInputValue&&(t=this.displayValue.length)){u.aggregate(new W({tailShift:-1})).aggregate(this.remove(t-1))}}else if(s===B.FORCE_RIGHT){n.unshift()}}return u.aggregate(this.append(e,o,n))}maskEquals(t){return this.mask===t}optionsIsChanged(t){return!_(this,t)}typedValueEquals(t){const i=this.typedValue;return t===i||U.EMPTY_VALUES.includes(t)&&U.EMPTY_VALUES.includes(i)||(this.format?this.format(t,this)===this.format(this.typedValue,this):false)}pad(t){return new W}}U.DEFAULTS={skipInvalid:true};U.EMPTY_VALUES=[undefined,null,""];V.Masked=U;class Y{constructor(t,i){if(t===void 0){t=[]}if(i===void 0){i=0}this.chunks=t;this.from=i}toString(){return this.chunks.map(String).join("")}extend(t){if(!String(t))return;t=A(t)?new q(String(t)):t;const i=this.chunks[this.chunks.length-1];const e=i&&(i.stop===t.stop||t.stop==null)&&t.from===i.from+i.toString().length;if(t instanceof q){if(e){i.extend(t.toString())}else{this.chunks.push(t)}}else if(t instanceof Y){if(t.stop==null){let i;while(t.chunks.length&&t.chunks[0].stop==null){i=t.chunks.shift();i.from+=t.from;this.extend(i)}}if(t.toString()){t.stop=t.blockIndex;this.chunks.push(t)}}}appendTo(t){if(!(t instanceof V.MaskedPattern)){const i=new q(this.toString());return i.appendTo(t)}const i=new W;for(let e=0;e<this.chunks.length;++e){const s=this.chunks[e];const o=t._mapPosToBlock(t.displayValue.length);const r=s.stop;let n;if(r!=null&&(!o||o.index<=r)){if(s instanceof Y||t._stops.indexOf(r)>=0){i.aggregate(t._appendPlaceholder(r))}n=s instanceof Y&&t._blocks[r]}if(n){const e=n.appendTail(s);i.aggregate(e);const o=s.toString().slice(e.rawInserted.length);if(o)i.aggregate(t.append(o,{tail:true}))}else{i.aggregate(t.append(s.toString(),{tail:true}))}}return i}get state(){return{chunks:this.chunks.map((t=>t.state)),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(t){const{chunks:i,...e}=t;Object.assign(this,e);this.chunks=i.map((t=>{const i="chunks"in t?new Y:new q;i.state=t;return i}))}unshift(t){if(!this.chunks.length||t!=null&&this.from>=t)return"";const i=t!=null?t-this.from:t;let e=0;while(e<this.chunks.length){const t=this.chunks[e];const s=t.unshift(i);if(t.toString()){if(!s)break;++e}else{this.chunks.splice(e,1)}if(s)return s}return""}shift(){if(!this.chunks.length)return"";let t=this.chunks.length-1;while(0<=t){const i=this.chunks[t];const e=i.shift();if(i.toString()){if(!e)break;--t}else{this.chunks.splice(t,1)}if(e)return e}return""}}class ${constructor(t,i){this.masked=t;this._log=[];const{offset:e,index:s}=t._mapPosToBlock(i)||(i<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=e;this.index=s;this.ok=false}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(t){Object.assign(this,t)}pushState(){this._log.push(this.state)}popState(){const t=this._log.pop();if(t)this.state=t;return t}bindBlock(){if(this.block)return;if(this.index<0){this.index=0;this.offset=0}if(this.index>=this.masked._blocks.length){this.index=this.masked._blocks.length-1;this.offset=this.block.displayValue.length}}_pushLeft(t){this.pushState();for(this.bindBlock();0<=this.index;--this.index,this.offset=((i=this.block)==null?void 0:i.displayValue.length)||0){var i;if(t())return this.ok=true}return this.ok=false}_pushRight(t){this.pushState();for(this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0){if(t())return this.ok=true}return this.ok=false}pushLeftBeforeFilled(){return this._pushLeft((()=>{if(this.block.isFixed||!this.block.value)return;this.offset=this.block.nearestInputPos(this.offset,B.FORCE_LEFT);if(this.offset!==0)return true}))}pushLeftBeforeInput(){return this._pushLeft((()=>{if(this.block.isFixed)return;this.offset=this.block.nearestInputPos(this.offset,B.LEFT);return true}))}pushLeftBeforeRequired(){return this._pushLeft((()=>{if(this.block.isFixed||this.block.isOptional&&!this.block.value)return;this.offset=this.block.nearestInputPos(this.offset,B.LEFT);return true}))}pushRightBeforeFilled(){return this._pushRight((()=>{if(this.block.isFixed||!this.block.value)return;this.offset=this.block.nearestInputPos(this.offset,B.FORCE_RIGHT);if(this.offset!==this.block.value.length)return true}))}pushRightBeforeInput(){return this._pushRight((()=>{if(this.block.isFixed)return;this.offset=this.block.nearestInputPos(this.offset,B.NONE);return true}))}pushRightBeforeRequired(){return this._pushRight((()=>{if(this.block.isFixed||this.block.isOptional&&!this.block.value)return;this.offset=this.block.nearestInputPos(this.offset,B.NONE);return true}))}}class K{constructor(t){Object.assign(this,t);this._value="";this.isFixed=true}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=false;this._value=""}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this._value.length}this._value=this._value.slice(0,t)+this._value.slice(i);if(!this._value)this._isRawInput=false;return new W}nearestInputPos(t,i){if(i===void 0){i=B.NONE}const e=0;const s=this._value.length;switch(i){case B.LEFT:case B.FORCE_LEFT:return e;case B.NONE:case B.RIGHT:case B.FORCE_RIGHT:default:return s}}totalInputPositions(t,i){if(t===void 0){t=0}if(i===void 0){i=this._value.length}return this._isRawInput?i-t:0}extractInput(t,i,e){if(t===void 0){t=0}if(i===void 0){i=this._value.length}if(e===void 0){e={}}return e.raw&&this._isRawInput&&this._value.slice(t,i)||""}get isComplete(){return true}get isFilled(){return Boolean(this._value)}_appendChar(t,i){if(i===void 0){i={}}if(this.isFilled)return new W;const e=this.eager===true||this.eager==="append";const s=this.char===t;const o=s&&(this.isUnmasking||i.input||i.raw)&&(!i.raw||!e)&&!i.tail;const r=new W({inserted:this.char,rawInserted:o?this.char:""});this._value=this.char;this._isRawInput=o&&(i.raw||i.input);return r}_appendEager(){return this._appendChar(this.char,{tail:true})}_appendPlaceholder(){const t=new W;if(this.isFilled)return t;this._value=t.inserted=this.char;return t}extractTail(){return new q("")}appendTail(t){if(A(t))t=new q(String(t));return t.appendTo(this)}append(t,i,e){const s=this._appendChar(t[0],i);if(e!=null){s.tailShift+=this.appendTail(e).tailShift}return s}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(t){this._value=t._value;this._isRawInput=Boolean(t._rawInputValue)}pad(t){return this._appendPlaceholder()}}class G{constructor(t){const{parent:i,isOptional:e,placeholderChar:s,displayChar:o,lazy:r,eager:n,...a}=t;this.masked=z(a);Object.assign(this,{parent:i,isOptional:e,placeholderChar:s,displayChar:o,lazy:r,eager:n})}reset(){this.isFilled=false;this.masked.reset()}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.value.length}if(t===0&&i>=1){this.isFilled=false;return this.masked.remove(t,i)}return new W}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return Boolean(this.masked.value)||this.isOptional}_appendChar(t,i){if(i===void 0){i={}}if(this.isFilled)return new W;const e=this.masked.state;let s=this.masked._appendChar(t,this.currentMaskFlags(i));if(s.inserted&&this.doValidate(i)===false){s=new W;this.masked.state=e}if(!s.inserted&&!this.isOptional&&!this.lazy&&!i.input){s.inserted=this.placeholderChar}s.skip=!s.inserted&&!this.isOptional;this.isFilled=Boolean(s.inserted);return s}append(t,i,e){return this.masked.append(t,this.currentMaskFlags(i),e)}_appendPlaceholder(){if(this.isFilled||this.isOptional)return new W;this.isFilled=true;return new W({inserted:this.placeholderChar})}_appendEager(){return new W}extractTail(t,i){return this.masked.extractTail(t,i)}appendTail(t){return this.masked.appendTail(t)}extractInput(t,i,e){if(t===void 0){t=0}if(i===void 0){i=this.value.length}return this.masked.extractInput(t,i,e)}nearestInputPos(t,i){if(i===void 0){i=B.NONE}const e=0;const s=this.value.length;const o=Math.min(Math.max(t,e),s);switch(i){case B.LEFT:case B.FORCE_LEFT:return this.isComplete?o:e;case B.RIGHT:case B.FORCE_RIGHT:return this.isComplete?o:s;case B.NONE:default:return o}}totalInputPositions(t,i){if(t===void 0){t=0}if(i===void 0){i=this.value.length}return this.value.slice(t,i).length}doValidate(t){return this.masked.doValidate(this.currentMaskFlags(t))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(t)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(t){this.masked.state=t.masked;this.isFilled=t.isFilled}currentMaskFlags(t){var i;return{...t,_beforeTailState:(t==null||(i=t._beforeTailState)==null?void 0:i.masked)||(t==null?void 0:t._beforeTailState)}}pad(t){return new W}}G.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class X extends U{updateOptions(t){super.updateOptions(t)}_update(t){const i=t.mask;if(i)t.validate=t=>t.search(i)>=0;super._update(t)}}V.MaskedRegExp=X;class J extends U{constructor(t){super({...J.DEFAULTS,...t,definitions:Object.assign({},G.DEFAULT_DEFINITIONS,t==null?void 0:t.definitions)})}updateOptions(t){super.updateOptions(t)}_update(t){t.definitions=Object.assign({},this.definitions,t.definitions);super._update(t);this._rebuildMask()}_rebuildMask(){const t=this.definitions;this._blocks=[];this.exposeBlock=undefined;this._stops=[];this._maskedBlocks={};const i=this.mask;if(!i||!t)return;let e=false;let s=false;for(let o=0;o<i.length;++o){if(this.blocks){const t=i.slice(o);const e=Object.keys(this.blocks).filter((i=>t.indexOf(i)===0));e.sort(((t,i)=>i.length-t.length));const s=e[0];if(s){const{expose:t,repeat:i,...e}=M(this.blocks[s]);const r={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...e,repeat:i,parent:this};const n=i!=null?new V.RepeatBlock(r):z(r);if(n){this._blocks.push(n);if(t)this.exposeBlock=n;if(!this._maskedBlocks[s])this._maskedBlocks[s]=[];this._maskedBlocks[s].push(this._blocks.length-1)}o+=s.length-1;continue}}let r=i[o];let n=r in t;if(r===J.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(r==="{"||r==="}"){e=!e;continue}if(r==="["||r==="]"){s=!s;continue}if(r===J.ESCAPE_CHAR){++o;r=i[o];if(!r)break;n=false}const a=n?new G({isOptional:s,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...M(t[r]),parent:this}):new K({char:r,eager:this.eager,isUnmasking:e});this._blocks.push(a)}}get state(){return{...super.state,_blocks:this._blocks.map((t=>t.state))}}set state(t){if(!t){this.reset();return}const{_blocks:i,...e}=t;this._blocks.forEach(((t,e)=>t.state=i[e]));super.state=e}reset(){super.reset();this._blocks.forEach((t=>t.reset()))}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every((t=>t.isComplete))}get isFilled(){return this._blocks.every((t=>t.isFilled))}get isFixed(){return this._blocks.every((t=>t.isFixed))}get isOptional(){return this._blocks.every((t=>t.isOptional))}doCommit(){this._blocks.forEach((t=>t.doCommit()));super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce(((t,i)=>t+=i.unmaskedValue),"")}set unmaskedValue(t){if(this.exposeBlock){const i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=t;this.appendTail(i);this.doCommit()}else super.unmaskedValue=t}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce(((t,i)=>t+=i.value),"")}set value(t){if(this.exposeBlock){const i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=t;this.appendTail(i);this.doCommit()}else super.value=t}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(t){if(this.exposeBlock){const i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=t;this.appendTail(i);this.doCommit()}else super.typedValue=t}get displayValue(){return this._blocks.reduce(((t,i)=>t+=i.displayValue),"")}appendTail(t){return super.appendTail(t).aggregate(this._appendPlaceholder())}_appendEager(){var t;const i=new W;let e=(t=this._mapPosToBlock(this.displayValue.length))==null?void 0:t.index;if(e==null)return i;if(this._blocks[e].isFilled)++e;for(let t=e;t<this._blocks.length;++t){const e=this._blocks[t]._appendEager();if(!e.inserted)break;i.aggregate(e)}return i}_appendCharRaw(t,i){if(i===void 0){i={}}const e=this._mapPosToBlock(this.displayValue.length);const s=new W;if(!e)return s;for(let r=e.index,n;n=this._blocks[r];++r){var o;const e=n._appendChar(t,{...i,_beforeTailState:(o=i._beforeTailState)==null||(o=o._blocks)==null?void 0:o[r]});s.aggregate(e);if(e.consumed)break}return s}extractTail(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}const e=new Y;if(t===i)return e;this._forEachBlocksInRange(t,i,((t,i,s,o)=>{const r=t.extractTail(s,o);r.stop=this._findStopBefore(i);r.from=this._blockStartPos(i);if(r instanceof Y)r.blockIndex=i;e.extend(r)}));return e}extractInput(t,i,e){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}if(e===void 0){e={}}if(t===i)return"";let s="";this._forEachBlocksInRange(t,i,((t,i,o,r)=>{s+=t.extractInput(o,r,e)}));return s}_findStopBefore(t){let i;for(let e=0;e<this._stops.length;++e){const s=this._stops[e];if(s<=t)i=s;else break}return i}_appendPlaceholder(t){const i=new W;if(this.lazy&&t==null)return i;const e=this._mapPosToBlock(this.displayValue.length);if(!e)return i;const s=e.index;const o=t!=null?t:this._blocks.length;this._blocks.slice(s,o).forEach((e=>{if(!e.lazy||t!=null){var s;i.aggregate(e._appendPlaceholder((s=e._blocks)==null?void 0:s.length))}}));return i}_mapPosToBlock(t){let i="";for(let e=0;e<this._blocks.length;++e){const s=this._blocks[e];const o=i.length;i+=s.displayValue;if(t<=i.length){return{index:e,offset:t-o}}}}_blockStartPos(t){return this._blocks.slice(0,t).reduce(((t,i)=>t+=i.displayValue.length),0)}_forEachBlocksInRange(t,i,e){if(i===void 0){i=this.displayValue.length}const s=this._mapPosToBlock(t);if(s){const t=this._mapPosToBlock(i);const o=t&&s.index===t.index;const r=s.offset;const n=t&&o?t.offset:this._blocks[s.index].displayValue.length;e(this._blocks[s.index],s.index,r,n);if(t&&!o){for(let i=s.index+1;i<t.index;++i){e(this._blocks[i],i,0,this._blocks[i].displayValue.length)}e(this._blocks[t.index],t.index,0,t.offset)}}}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}const e=super.remove(t,i);this._forEachBlocksInRange(t,i,((t,i,s,o)=>{e.aggregate(t.remove(s,o))}));return e}nearestInputPos(t,i){if(i===void 0){i=B.NONE}if(!this._blocks.length)return 0;const e=new $(this,t);if(i===B.NONE){if(e.pushRightBeforeInput())return e.pos;e.popState();if(e.pushLeftBeforeInput())return e.pos;return this.displayValue.length}if(i===B.LEFT||i===B.FORCE_LEFT){if(i===B.LEFT){e.pushRightBeforeFilled();if(e.ok&&e.pos===t)return t;e.popState()}e.pushLeftBeforeInput();e.pushLeftBeforeRequired();e.pushLeftBeforeFilled();if(i===B.LEFT){e.pushRightBeforeInput();e.pushRightBeforeRequired();if(e.ok&&e.pos<=t)return e.pos;e.popState();if(e.ok&&e.pos<=t)return e.pos;e.popState()}if(e.ok)return e.pos;if(i===B.FORCE_LEFT)return 0;e.popState();if(e.ok)return e.pos;e.popState();if(e.ok)return e.pos;return 0}if(i===B.RIGHT||i===B.FORCE_RIGHT){e.pushRightBeforeInput();e.pushRightBeforeRequired();if(e.pushRightBeforeFilled())return e.pos;if(i===B.FORCE_RIGHT)return this.displayValue.length;e.popState();if(e.ok)return e.pos;e.popState();if(e.ok)return e.pos;return this.nearestInputPos(t,B.LEFT)}return t}totalInputPositions(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}let e=0;this._forEachBlocksInRange(t,i,((t,i,s,o)=>{e+=t.totalInputPositions(s,o)}));return e}maskedBlock(t){return this.maskedBlocks(t)[0]}maskedBlocks(t){const i=this._maskedBlocks[t];if(!i)return[];return i.map((t=>this._blocks[t]))}pad(t){const i=new W;this._forEachBlocksInRange(0,this.displayValue.length,(e=>i.aggregate(e.pad(t))));return i}}J.DEFAULTS={...U.DEFAULTS,lazy:true,placeholderChar:"_"};J.STOP_CHAR="`";J.ESCAPE_CHAR="\\";J.InputDefinition=G;J.FixedDefinition=K;V.MaskedPattern=J;class Q extends J{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){const{to:i=this.to||0,from:e=this.from||0,maxLength:s=this.maxLength||0,autofix:o=this.autofix,...r}=t;this.to=i;this.from=e;this.maxLength=Math.max(String(i).length,s);this.autofix=o;const n=String(this.from).padStart(this.maxLength,"0");const a=String(this.to).padStart(this.maxLength,"0");let l=0;while(l<a.length&&a[l]===n[l])++l;r.mask=a.slice(0,l).replace(/0/g,"\\0")+"0".repeat(this.maxLength-l);super._update(r)}get isComplete(){return super.isComplete&&Boolean(this.value)}boundaries(t){let i="";let e="";const[,s,o]=t.match(/^(\D*)(\d*)(\D*)/)||[];if(o){i="0".repeat(s.length)+o;e="9".repeat(s.length)+o}i=i.padEnd(this.maxLength,"0");e=e.padEnd(this.maxLength,"9");return[i,e]}doPrepareChar(t,i){if(i===void 0){i={}}let e;[t,e]=super.doPrepareChar(t.replace(/\D/g,""),i);if(!t)e.skip=!this.isComplete;return[t,e]}_appendCharRaw(t,i){if(i===void 0){i={}}if(!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(t,i);const e=String(this.from).padStart(this.maxLength,"0");const s=String(this.to).padStart(this.maxLength,"0");const[o,r]=this.boundaries(this.value+t);if(Number(r)<this.from)return super._appendCharRaw(e[this.value.length],i);if(Number(o)>this.to){if(!i.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength){return super._appendCharRaw(e[this.value.length],i).aggregate(this._appendCharRaw(t,i))}return super._appendCharRaw(s[this.value.length],i)}return super._appendCharRaw(t,i)}doValidate(t){const i=this.value;const e=i.search(/[^0]/);if(e===-1&&i.length<=this._matchFrom)return true;const[s,o]=this.boundaries(i);return this.from<=Number(o)&&Number(s)<=this.to&&super.doValidate(t)}pad(t){const i=new W;if(this.value.length===this.maxLength)return i;const e=this.value;const s=this.maxLength-this.value.length;if(s){this.reset();for(let e=0;e<s;++e){i.aggregate(super._appendCharRaw("0",t))}e.split("").forEach((t=>this._appendCharRaw(t)))}return i}}V.MaskedRange=Q;const tt="d{.}`m{.}`Y";class it extends J{static extractPatternOptions(t){const{mask:i,pattern:e,...s}=t;return{...s,mask:A(i)?i:e}}constructor(t){super(it.extractPatternOptions({...it.DEFAULTS,...t}))}updateOptions(t){super.updateOptions(t)}_update(t){const{mask:i,pattern:e,blocks:s,...o}={...it.DEFAULTS,...t};const r=Object.assign({},it.GET_DEFAULT_BLOCKS());if(t.min)r.Y.from=t.min.getFullYear();if(t.max)r.Y.to=t.max.getFullYear();if(t.min&&t.max&&r.Y.from===r.Y.to){r.m.from=t.min.getMonth()+1;r.m.to=t.max.getMonth()+1;if(r.m.from===r.m.to){r.d.from=t.min.getDate();r.d.to=t.max.getDate()}}Object.assign(r,this.blocks,s);super._update({...o,mask:A(i)?i:e,blocks:r})}doValidate(t){const i=this.date;return super.doValidate(t)&&(!this.isComplete||this.isDateExist(this.value)&&i!=null&&(this.min==null||this.min<=i)&&(this.max==null||i<=this.max))}isDateExist(t){return this.format(this.parse(t,this),this).indexOf(t)>=0}get date(){return this.typedValue}set date(t){this.typedValue=t}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(t){super.typedValue=t}maskEquals(t){return t===Date||super.maskEquals(t)}optionsIsChanged(t){return super.optionsIsChanged(it.extractPatternOptions(t))}}it.GET_DEFAULT_BLOCKS=()=>({d:{mask:Q,from:1,to:31,maxLength:2},m:{mask:Q,from:1,to:12,maxLength:2},Y:{mask:Q,from:1900,to:9999}});it.DEFAULTS={...J.DEFAULTS,mask:Date,pattern:tt,format:(t,i)=>{if(!t)return"";const e=String(t.getDate()).padStart(2,"0");const s=String(t.getMonth()+1).padStart(2,"0");const o=t.getFullYear();return[e,s,o].join(".")},parse:(t,i)=>{const[e,s,o]=t.split(".").map(Number);return new Date(o,s-1,e)}};V.MaskedDate=it;class et extends U{constructor(t){super({...et.DEFAULTS,...t});this.currentMask=undefined}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t);if("mask"in t){this.exposeMask=undefined;this.compiledMasks=Array.isArray(t.mask)?t.mask.map((t=>{const{expose:i,...e}=M(t);const s=z({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...e});if(i)this.exposeMask=s;return s})):[]}}_appendCharRaw(t,i){if(i===void 0){i={}}const e=this._applyDispatch(t,i);if(this.currentMask){e.aggregate(this.currentMask._appendChar(t,this.currentMaskFlags(i)))}return e}_applyDispatch(t,i,e){if(t===void 0){t=""}if(i===void 0){i={}}if(e===void 0){e=""}const s=i.tail&&i._beforeTailState!=null?i._beforeTailState._value:this.value;const o=this.rawInputValue;const r=i.tail&&i._beforeTailState!=null?i._beforeTailState._rawInputValue:o;const n=o.slice(r.length);const a=this.currentMask;const l=new W;const h=a==null?void 0:a.state;this.currentMask=this.doDispatch(t,{...i},e);if(this.currentMask){if(this.currentMask!==a){this.currentMask.reset();if(r){this.currentMask.append(r,{raw:true});l.tailShift=this.currentMask.value.length-s.length}if(n){l.tailShift+=this.currentMask.append(n,{raw:true,tail:true}).tailShift}}else if(h){this.currentMask.state=h}}return l}_appendPlaceholder(){const t=this._applyDispatch();if(this.currentMask){t.aggregate(this.currentMask._appendPlaceholder())}return t}_appendEager(){const t=this._applyDispatch();if(this.currentMask){t.aggregate(this.currentMask._appendEager())}return t}appendTail(t){const i=new W;if(t)i.aggregate(this._applyDispatch("",{},t));return i.aggregate(this.currentMask?this.currentMask.appendTail(t):super.appendTail(t))}currentMaskFlags(t){var i,e;return{...t,_beforeTailState:((i=t._beforeTailState)==null?void 0:i.currentMaskRef)===this.currentMask&&((e=t._beforeTailState)==null?void 0:e.currentMask)||t._beforeTailState}}doDispatch(t,i,e){if(i===void 0){i={}}if(e===void 0){e=""}return this.dispatch(t,this,i,e)}doValidate(t){return super.doValidate(t)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(t)))}doPrepare(t,i){if(i===void 0){i={}}let[e,s]=super.doPrepare(t,i);if(this.currentMask){let t;[e,t]=super.doPrepare(e,this.currentMaskFlags(i));s=s.aggregate(t)}return[e,s]}doPrepareChar(t,i){if(i===void 0){i={}}let[e,s]=super.doPrepareChar(t,i);if(this.currentMask){let t;[e,t]=super.doPrepareChar(e,this.currentMaskFlags(i));s=s.aggregate(t)}return[e,s]}reset(){var t;(t=this.currentMask)==null||t.reset();this.compiledMasks.forEach((t=>t.reset()))}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(t){if(this.exposeMask){this.exposeMask.value=t;this.currentMask=this.exposeMask;this._applyDispatch()}else super.value=t}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(t){if(this.exposeMask){this.exposeMask.unmaskedValue=t;this.currentMask=this.exposeMask;this._applyDispatch()}else super.unmaskedValue=t}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(t){if(this.exposeMask){this.exposeMask.typedValue=t;this.currentMask=this.exposeMask;this._applyDispatch();return}let i=String(t);if(this.currentMask){this.currentMask.typedValue=t;i=this.currentMask.unmaskedValue}this.unmaskedValue=i}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var t;return Boolean((t=this.currentMask)==null?void 0:t.isComplete)}get isFilled(){var t;return Boolean((t=this.currentMask)==null?void 0:t.isFilled)}remove(t,i){const e=new W;if(this.currentMask){e.aggregate(this.currentMask.remove(t,i)).aggregate(this._applyDispatch())}return e}get state(){var t;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map((t=>t.state)),currentMaskRef:this.currentMask,currentMask:(t=this.currentMask)==null?void 0:t.state}}set state(t){const{compiledMasks:i,currentMaskRef:e,currentMask:s,...o}=t;if(i)this.compiledMasks.forEach(((t,e)=>t.state=i[e]));if(e!=null){this.currentMask=e;this.currentMask.state=s}super.state=o}extractInput(t,i,e){return this.currentMask?this.currentMask.extractInput(t,i,e):""}extractTail(t,i){return this.currentMask?this.currentMask.extractTail(t,i):super.extractTail(t,i)}doCommit(){if(this.currentMask)this.currentMask.doCommit();super.doCommit()}nearestInputPos(t,i){return this.currentMask?this.currentMask.nearestInputPos(t,i):super.nearestInputPos(t,i)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(t){this._overwrite=t}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(t){this._eager=t}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(t){this._skipInvalid=t}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(t){this._autofix=t}maskEquals(t){return Array.isArray(t)?this.compiledMasks.every(((i,e)=>{if(!t[e])return;const{mask:s,...o}=t[e];return _(i,o)&&i.maskEquals(s)})):super.maskEquals(t)}typedValueEquals(t){var i;return Boolean((i=this.currentMask)==null?void 0:i.typedValueEquals(t))}}et.DEFAULTS={...U.DEFAULTS,dispatch:(t,i,e,s)=>{if(!i.compiledMasks.length)return;const o=i.rawInputValue;const r=i.compiledMasks.map(((r,n)=>{const a=i.currentMask===r;const l=a?r.displayValue.length:r.nearestInputPos(r.displayValue.length,B.FORCE_LEFT);if(r.rawInputValue!==o){r.reset();r.append(o,{raw:true})}else if(!a){r.remove(l)}r.append(t,i.currentMaskFlags(e));r.appendTail(s);return{index:n,weight:r.rawInputValue.length,totalInputPositions:r.totalInputPositions(0,Math.max(l,r.nearestInputPos(r.displayValue.length,B.FORCE_LEFT)))}}));r.sort(((t,i)=>i.weight-t.weight||i.totalInputPositions-t.totalInputPositions));return i.compiledMasks[r[0].index]}};V.MaskedDynamic=et;class st extends J{constructor(t){super({...st.DEFAULTS,...t})}updateOptions(t){super.updateOptions(t)}_update(t){const{enum:i,...e}=t;if(i){const t=i.map((t=>t.length));const s=Math.min(...t);const o=Math.max(...t)-s;e.mask="*".repeat(s);if(o)e.mask+="["+"*".repeat(o)+"]";this.enum=i}super._update(e)}_appendCharRaw(t,i){if(i===void 0){i={}}const e=Math.min(this.nearestInputPos(0,B.FORCE_RIGHT),this.value.length);const s=this.enum.filter((i=>this.matchValue(i,this.unmaskedValue+t,e)));if(s.length){if(s.length===1){this._forEachBlocksInRange(0,this.value.length,((t,e)=>{const o=s[0][e];if(e>=this.value.length||o===t.value)return;t.reset();t._appendChar(o,i)}))}const t=super._appendCharRaw(s[0][this.value.length],i);if(s.length===1){s[0].slice(this.unmaskedValue.length).split("").forEach((i=>t.aggregate(super._appendCharRaw(i))))}return t}return new W({skip:!this.isComplete})}extractTail(t,i){if(t===void 0){t=0}return new q("",t)}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}if(t===i)return new W;const e=Math.min(super.nearestInputPos(0,B.FORCE_RIGHT),this.value.length);let s;for(s=t;s>=0;--s){const t=this.enum.filter((t=>this.matchValue(t,this.value.slice(e,s),e)));if(t.length>1)break}const o=super.remove(s,i);o.tailShift+=s-t;return o}get isComplete(){return this.enum.indexOf(this.value)>=0}}st.DEFAULTS={...J.DEFAULTS,matchValue:(t,i,e)=>t.indexOf(i,e)===e};V.MaskedEnum=st;class ot extends U{updateOptions(t){super.updateOptions(t)}_update(t){super._update({...t,validate:t.mask})}}V.MaskedFunction=ot;var rt;class nt extends U{constructor(t){super({...nt.DEFAULTS,...t})}updateOptions(t){super.updateOptions(t)}_update(t){super._update(t);this._updateRegExps()}_updateRegExps(){const t="^"+(this.allowNegative?"[+|\\-]?":"");const i="\\d*";const e=(this.scale?"("+L(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(t+i+e);this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(L).join("")+"]","g");this._thousandsSeparatorRegExp=new RegExp(L(this.thousandsSeparator),"g")}_removeThousandsSeparators(t){return t.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(t){const i=t.split(this.radix);i[0]=i[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator);return i.join(this.radix)}doPrepareChar(t,i){if(i===void 0){i={}}const[e,s]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(i.input&&i.raw||!i.input&&!i.raw)?t.replace(this._mapToRadixRegExp,this.radix):t),i);if(t&&!e)s.skip=true;if(e&&!this.allowPositive&&!this.value&&e!=="-")s.aggregate(this._appendChar("-"));return[e,s]}_separatorsCount(t,i){if(i===void 0){i=false}let e=0;for(let s=0;s<t;++s){if(this._value.indexOf(this.thousandsSeparator,s)===s){++e;if(i)t+=this.thousandsSeparator.length}}return e}_separatorsCountFromSlice(t){if(t===void 0){t=this._value}return this._separatorsCount(this._removeThousandsSeparators(t).length,true)}extractInput(t,i,e){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}[t,i]=this._adjustRangeWithSeparators(t,i);return this._removeThousandsSeparators(super.extractInput(t,i,e))}_appendCharRaw(t,i){if(i===void 0){i={}}const e=i.tail&&i._beforeTailState?i._beforeTailState._value:this._value;const s=this._separatorsCountFromSlice(e);this._value=this._removeThousandsSeparators(this.value);const o=this._value;this._value+=t;const r=this.number;let n=!isNaN(r);let a=false;if(n){let t;if(this.min!=null&&this.min<0&&this.number<this.min)t=this.min;if(this.max!=null&&this.max>0&&this.number>this.max)t=this.max;if(t!=null){if(this.autofix){this._value=this.format(t,this).replace(nt.UNMASKED_RADIX,this.radix);a||(a=o===this._value&&!i.tail)}else{n=false}}n&&(n=Boolean(this._value.match(this._numberRegExp)))}let l;if(!n){this._value=o;l=new W}else{l=new W({inserted:this._value.slice(o.length),rawInserted:a?"":t,skip:a})}this._value=this._insertThousandsSeparators(this._value);const h=i.tail&&i._beforeTailState?i._beforeTailState._value:this._value;const u=this._separatorsCountFromSlice(h);l.tailShift+=(u-s)*this.thousandsSeparator.length;return l}_findSeparatorAround(t){if(this.thousandsSeparator){const i=t-this.thousandsSeparator.length+1;const e=this.value.indexOf(this.thousandsSeparator,i);if(e<=t)return e}return-1}_adjustRangeWithSeparators(t,i){const e=this._findSeparatorAround(t);if(e>=0)t=e;const s=this._findSeparatorAround(i);if(s>=0)i=s+this.thousandsSeparator.length;return[t,i]}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}[t,i]=this._adjustRangeWithSeparators(t,i);const e=this.value.slice(0,t);const s=this.value.slice(i);const o=this._separatorsCount(e.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(e+s));const r=this._separatorsCountFromSlice(e);return new W({tailShift:(r-o)*this.thousandsSeparator.length})}nearestInputPos(t,i){if(!this.thousandsSeparator)return t;switch(i){case B.NONE:case B.LEFT:case B.FORCE_LEFT:{const e=this._findSeparatorAround(t-1);if(e>=0){const s=e+this.thousandsSeparator.length;if(t<s||this.value.length<=s||i===B.FORCE_LEFT){return e}}break}case B.RIGHT:case B.FORCE_RIGHT:{const i=this._findSeparatorAround(t);if(i>=0){return i+this.thousandsSeparator.length}}}return t}doCommit(){if(this.value){const t=this.number;let i=t;if(this.min!=null)i=Math.max(i,this.min);if(this.max!=null)i=Math.min(i,this.max);if(i!==t)this.unmaskedValue=this.format(i,this);let e=this.value;if(this.normalizeZeros)e=this._normalizeZeros(e);if(this.padFractionalZeros&&this.scale>0)e=this._padFractionalZeros(e);this._value=e}super.doCommit()}_normalizeZeros(t){const i=this._removeThousandsSeparators(t).split(this.radix);i[0]=i[0].replace(/^(\D*)(0*)(\d*)/,((t,i,e,s)=>i+s));if(t.length&&!/\d$/.test(i[0]))i[0]=i[0]+"0";if(i.length>1){i[1]=i[1].replace(/0*$/,"");if(!i[1].length)i.length=1}return this._insertThousandsSeparators(i.join(this.radix))}_padFractionalZeros(t){if(!t)return t;const i=t.split(this.radix);if(i.length<2)i.push("");i[1]=i[1].padEnd(this.scale,"0");return i.join(this.radix)}doSkipInvalid(t,i,e){if(i===void 0){i={}}const s=this.scale===0&&t!==this.thousandsSeparator&&(t===this.radix||t===nt.UNMASKED_RADIX||this.mapToRadix.includes(t));return super.doSkipInvalid(t,i,e)&&!s}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,nt.UNMASKED_RADIX)}set unmaskedValue(t){super.unmaskedValue=t}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(t){this.rawInputValue=this.format(t,this).replace(nt.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(t){this.typedValue=t}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(t){return(super.typedValueEquals(t)||nt.EMPTY_VALUES.includes(t)&&nt.EMPTY_VALUES.includes(this.typedValue))&&!(t===0&&this.value==="")}}rt=nt;nt.UNMASKED_RADIX=".";nt.EMPTY_VALUES=[...U.EMPTY_VALUES,0];nt.DEFAULTS={...U.DEFAULTS,mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[rt.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:true,padFractionalZeros:false,parse:Number,format:t=>t.toLocaleString("en-US",{useGrouping:false,maximumFractionDigits:20})};V.MaskedNumber=nt;const at={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function lt(t,i,e){if(i===void 0){i=at.MASKED}if(e===void 0){e=at.MASKED}const s=z(t);return t=>s.runIsolated((s=>{s[i]=t;return s[e]}))}function ht(t,i,e,s){return lt(i,e,s)(t)}V.PIPE_TYPE=at;V.createPipe=lt;V.pipe=ht;class ut extends J{get repeatFrom(){var t;return(t=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===Infinity?0:this.repeat)!=null?t:0}get repeatTo(){var t;return(t=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)!=null?t:Infinity}constructor(t){super(t)}updateOptions(t){super.updateOptions(t)}_update(t){var i,e,s;const{repeat:o,...r}=M(t);this._blockOpts=Object.assign({},this._blockOpts,r);const n=z(this._blockOpts);this.repeat=(i=(e=o!=null?o:n.repeat)!=null?e:this.repeat)!=null?i:Infinity;super._update({mask:"m".repeat(Math.max(this.repeatTo===Infinity&&((s=this._blocks)==null?void 0:s.length)||0,this.repeatFrom)),blocks:{m:n},eager:n.eager,overwrite:n.overwrite,skipInvalid:n.skipInvalid,lazy:n.lazy,placeholderChar:n.placeholderChar,displayChar:n.displayChar})}_allocateBlock(t){if(t<this._blocks.length)return this._blocks[t];if(this.repeatTo===Infinity||this._blocks.length<this.repeatTo){this._blocks.push(z(this._blockOpts));this.mask+="m";return this._blocks[this._blocks.length-1]}}_appendCharRaw(t,i){if(i===void 0){i={}}const e=new W;for(let a=(s=(o=this._mapPosToBlock(this.displayValue.length))==null?void 0:o.index)!=null?s:Math.max(this._blocks.length-1,0),l,h;l=(r=this._blocks[a])!=null?r:h=!h&&this._allocateBlock(a);++a){var s,o,r,n;const u=l._appendChar(t,{...i,_beforeTailState:(n=i._beforeTailState)==null||(n=n._blocks)==null?void 0:n[a]});if(u.skip&&h){this._blocks.pop();this.mask=this.mask.slice(1);break}e.aggregate(u);if(u.consumed)break}return e}_trimEmptyTail(t,i){var e,s;if(t===void 0){t=0}const o=Math.max(((e=this._mapPosToBlock(t))==null?void 0:e.index)||0,this.repeatFrom,0);let r;if(i!=null)r=(s=this._mapPosToBlock(i))==null?void 0:s.index;if(r==null)r=this._blocks.length-1;let n=0;for(let t=r;o<=t;--t,++n){if(this._blocks[t].unmaskedValue)break}if(n){this._blocks.splice(r-n+1,n);this.mask=this.mask.slice(n)}}reset(){super.reset();this._trimEmptyTail()}remove(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}const e=super.remove(t,i);this._trimEmptyTail(t,i);return e}totalInputPositions(t,i){if(t===void 0){t=0}if(i==null&&this.repeatTo===Infinity)return Infinity;return super.totalInputPositions(t,i)}get state(){return super.state}set state(t){this._blocks.length=t._blocks.length;this.mask=this.mask.slice(0,this._blocks.length);super.state=t}}V.RepeatBlock=ut;try{globalThis.IMask=V}catch{}const dt='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-kba-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog .step{margin-left:6px;color:#666}verdocs-kba-dialog .help-box{background-color:#707ae5;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:14px;-ms-flex-align:center;align-items:center;color:white}verdocs-kba-dialog .help-details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:15px;font-size:14px}verdocs-kba-dialog .help-icon{width:40px;height:40px}verdocs-kba-dialog .help-title{font-weight:600;margin-bottom:4px}verdocs-kba-dialog .help-text{font-weight:400}verdocs-kba-dialog .input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:10px;-ms-flex-align:center;align-items:center;margin:16px 0 32px}verdocs-kba-dialog .input label{-ms-flex:0;flex:0;line-height:10px;font-weight:500;white-space:nowrap}verdocs-kba-dialog .input input{-ms-flex:1;flex:1;padding:5px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-kba-dialog .field{gap:10px;display:-ms-flexbox;display:flex;max-width:100%;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;margin:0 0 4px 0}verdocs-kba-dialog .field verdocs-text-input{width:100%;margin-bottom:0}verdocs-kba-dialog .field verdocs-select-input{width:100%;margin-bottom:0}verdocs-kba-dialog .field input.date-input{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:16px;height:34px;padding:0 9px;outline:none}verdocs-kba-dialog .field .required{color:red;position:relative;top:-0.5em;font-size:80%}verdocs-kba-dialog .field label{-ms-flex:0 0 120px;flex:0 0 120px;font-weight:500;line-height:10px;text-align:right;white-space:nowrap}verdocs-kba-dialog .field verdocs-date-input{width:40%;-ms-flex-positive:1;flex-grow:1}verdocs-kba-dialog .field verdocs-date-input input{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog .field.agree span{margin-top:8px;font-size:12px;line-height:14px;font-style:italic}verdocs-kba-dialog .choices{display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));margin:15px 0}verdocs-kba-dialog .choice{border:1px solid #707ae5;border-radius:5px;display:-ms-flexbox;display:flex;height:60px;font-size:14px;padding:0 5px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;color:#5c6575;cursor:pointer}verdocs-kba-dialog .choice.selected{background-color:#707ae5;color:#ffffff}verdocs-kba-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-kba-dialog .buttons verdocs-button{margin-left:16px}';const ct={AL:"Alabama",AK:"Alaska",AS:"American Samoa",AZ:"Arizona",AR:"Arkansas",CA:"California",CO:"Colorado",CT:"Connecticut",DE:"Delaware",DC:"District Of Columbia",FM:"Federated States Of Micronesia",FL:"Florida",GA:"Georgia",GU:"Guam",HI:"Hawaii",ID:"Idaho",IL:"Illinois",IN:"Indiana",IA:"Iowa",KS:"Kansas",KY:"Kentucky",LA:"Louisiana",ME:"Maine",MH:"Marshall Islands",MD:"Maryland",MA:"Massachusetts",MI:"Michigan",MN:"Minnesota",MS:"Mississippi",MO:"Missouri",MT:"Montana",NE:"Nebraska",NV:"Nevada",NH:"New Hampshire",NJ:"New Jersey",NM:"New Mexico",NY:"New York",NC:"North Carolina",ND:"North Dakota",MP:"Northern Mariana Islands",OH:"Ohio",OK:"Oklahoma",OR:"Oregon",PW:"Palau",PA:"Pennsylvania",PR:"Puerto Rico",RI:"Rhode Island",SC:"South Carolina",SD:"South Dakota",TN:"Tennessee",TX:"Texas",UT:"Utah",VT:"Vermont",VI:"Virgin Islands",VA:"Virginia",WA:"Washington",WV:"West Virginia",WI:"Wisconsin",WY:"Wyoming"};const ft=Object.entries(ct).map((([t,i])=>({value:t,label:i})));const pt=`<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><path d="M20 0C8.95313 0 0 8.95313 0 20C0 31.0469 8.95313 40 20 40C31.0469 40 40 31.0469 40 20C40 8.95313 31.0469 0 20 0ZM20 36.25C11.0391 36.25 3.75 28.9602 3.75 20C3.75 11.0398 11.0391 3.75 20 3.75C28.9609 3.75 36.25 11.0398 36.25 20C36.25 28.9602 28.9609 36.25 20 36.25Z" fill="white"/><path d="M20 26.25C18.5938 26.25 17.5 27.3438 17.5 28.75C17.5 30.1562 18.5234 31.25 20 31.25C21.3359 31.25 22.5 30.1562 22.5 28.75C22.5 27.3438 21.3359 26.25 20 26.25ZM22.5859 10H18.5938C15.5469 10 13.125 12.4219 13.125 15.4688C13.125 16.4844 13.9844 17.3438 15 17.3438C16.0156 17.3438 16.875 16.4844 16.875 15.4688C16.875 14.5312 17.5859 13.75 18.5234 13.75H22.5156C23.5234 13.75 24.375 14.5312 24.375 15.4688C24.375 16.0938 24.0625 16.5703 23.5156 16.8828L19.0625 19.6094C18.4375 20 18.125 20.625 18.125 21.25V22.5C18.125 23.5156 18.9844 24.375 20 24.375C21.0156 24.375 21.875 23.5156 21.875 22.5V22.3438L25.3984 20.1562C27.0391 19.1406 28.0547 17.3438 28.0547 15.4688C28.125 12.4219 25.7031 10 22.5859 10Z" fill="#E7E7E7"/></svg>`;const gt=class{constructor(e){t(this,e);this.exit=i(this,"exit");this.pinEntered=i(this,"pinEntered");this.next=i(this,"next");this.step=1;this.steps=3;this.helptitle="Previous Addresses";this.helptext="Please select the address below that you have most recently lived at.";this.mode="choice";this.label="PIN";this.placeholder="Enter your PIN...";this.recipient=null;this.choices=["553 Arbor Dr","18 Lacey Ln","23A Ball Ct","2375 Cavallo Blvd","23-1 RR-7","151 Boulder Rd"];this.agreed=false;this.response="";this.updatedRecipient=null;this.dobContainerId=`verdocs-date-input-${Math.random().toString(36).substring(2,11)}`}componentWillLoad(){this.updatedRecipient={...this.recipient||{}}}componentDidRender(){V(document.getElementById(this.dobContainerId),{mask:Date,min:new Date(1920,0,1),max:new Date(Date.now()-86400*18*365*1e3),lazy:false,pattern:"m/d/Y",format:function(t){var i=t.getDate();var e=t.getMonth()+1;var s=t.getFullYear();if(i<10)i="0"+i;if(e<10)e="0"+e;return[e,i,s].join("/")},parse:function(t){const i=t.split("/");return new Date(i[2],i[0]-1,i[1])}})}handleCancel(){this.exit.emit()}handleDismiss(t){if(t.target.class==="background-overlay"){t.preventDefault();this.handleCancel()}}handleDone(){this.next.emit(this.response);this.response=""}handleConfirmID(){console.log("Confirm ID",this.updatedRecipient);this.next.emit(this.updatedRecipient)}render(){var t,i,o,r,n,a,l,h,u,d,c,f,p,g;if(this.mode==="choice"){return e("verdocs-dialog",null,e("div",{slot:"heading",class:"heading"},e("div",{class:"icon"},e("svg",{width:"22",height:"19",viewBox:"0 0 22 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("g",{"clip-path":"url(#clip0_34208_4881)"},e("path",{d:"M3.125 0.75C1.88398 0.75 0.875 1.75898 0.875 3V16.5C0.875 17.741 1.88398 18.75 3.125 18.75H12.125C13.366 18.75 14.375 17.741 14.375 16.5V15.8215C14.2801 15.8602 14.1852 15.8918 14.0867 15.9164L11.9738 16.4437C11.8684 16.4684 11.7629 16.4859 11.6574 16.493C11.6258 16.4965 11.5941 16.5 11.5625 16.5H9.3125C9.09805 16.5 8.90469 16.3805 8.80977 16.1906L8.50039 15.5684C8.44062 15.4488 8.32109 15.375 8.19102 15.375C8.06094 15.375 7.93789 15.4488 7.88164 15.5684L7.57227 16.1906C7.47031 16.398 7.24883 16.5211 7.02031 16.5C6.7918 16.4789 6.59492 16.3207 6.53164 16.1027L5.9375 14.1445L5.59297 15.2977C5.37852 16.0113 4.72109 16.5 3.97578 16.5H3.6875C3.37812 16.5 3.125 16.2469 3.125 15.9375C3.125 15.6281 3.37812 15.375 3.6875 15.375H3.97578C4.22539 15.375 4.44336 15.2133 4.51367 14.9742L5.0375 13.234C5.15703 12.8367 5.52266 12.5625 5.9375 12.5625C6.35234 12.5625 6.71797 12.8367 6.8375 13.234L7.24531 14.591C7.50547 14.373 7.83594 14.25 8.1875 14.25C8.74648 14.25 9.25625 14.5664 9.50586 15.0656L9.66055 15.375H9.97344C9.86445 15.0656 9.84336 14.7281 9.92422 14.3977L10.4516 12.2848C10.55 11.8875 10.7539 11.5289 11.0422 11.2406L14.375 7.90781V6.375H9.875C9.25273 6.375 8.75 5.87227 8.75 5.25V0.75H3.125ZM9.875 0.75V5.25H14.375L9.875 0.75ZM20.2039 5.66133C19.6555 5.11289 18.766 5.11289 18.2141 5.66133L17.1805 6.69492L19.6766 9.19102L20.7102 8.15742C21.2586 7.60898 21.2586 6.71953 20.7102 6.16758L20.2039 5.66133ZM11.8402 12.0352C11.6961 12.1793 11.5941 12.3586 11.5449 12.559L11.0176 14.6719C10.9684 14.8652 11.0246 15.0656 11.1652 15.2063C11.3059 15.3469 11.5062 15.4031 11.6996 15.3539L13.8125 14.8266C14.0094 14.7773 14.1922 14.6754 14.3363 14.5312L18.8785 9.98555L16.3824 7.48945L11.8402 12.0352Z",fill:"white"})),e("defs",null,e("clipPath",{id:"clip0_34208_4881"},e("path",{d:"M0.875 0.75H21.125V18.75H0.875V0.75Z",fill:"white"}))))),e("div",{class:"title"},"Please Confirm Your Identity",this.steps>1?e("span",{class:"step"},"(",this.step,"/",this.steps,")"):e(s,null))),e("div",{slot:"content",class:"content"},!!this.helptitle&&e("div",{class:"help-box"},e("div",{class:"help-icon",innerHTML:pt}),e("div",{class:"help-details"},e("div",{class:"help-title"},this.helptitle),e("div",{class:"help-text"},this.helptext))),e("div",{class:"choices"},this.choices.map((t=>e("div",{class:`choice ${t===this.response?"selected":""}`,onClick:()=>{console.log("Selected",t);this.response=t}},t))))),e("div",{class:"footer",slot:"footer"},e("div",{class:"buttons"},e("verdocs-button",{label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),e("verdocs-button",{label:this.step<this.steps?"Next":"Submit",onClick:()=>this.handleDone(),disabled:!this.response}))))}if(this.mode==="identity"){return e("verdocs-dialog",null,e("div",{slot:"heading",class:"heading"},e("div",{class:"icon"},e("svg",{width:"22",height:"19",viewBox:"0 0 22 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("g",{"clip-path":"url(#clip0_34208_4881)"},e("path",{d:"M3.125 0.75C1.88398 0.75 0.875 1.75898 0.875 3V16.5C0.875 17.741 1.88398 18.75 3.125 18.75H12.125C13.366 18.75 14.375 17.741 14.375 16.5V15.8215C14.2801 15.8602 14.1852 15.8918 14.0867 15.9164L11.9738 16.4437C11.8684 16.4684 11.7629 16.4859 11.6574 16.493C11.6258 16.4965 11.5941 16.5 11.5625 16.5H9.3125C9.09805 16.5 8.90469 16.3805 8.80977 16.1906L8.50039 15.5684C8.44062 15.4488 8.32109 15.375 8.19102 15.375C8.06094 15.375 7.93789 15.4488 7.88164 15.5684L7.57227 16.1906C7.47031 16.398 7.24883 16.5211 7.02031 16.5C6.7918 16.4789 6.59492 16.3207 6.53164 16.1027L5.9375 14.1445L5.59297 15.2977C5.37852 16.0113 4.72109 16.5 3.97578 16.5H3.6875C3.37812 16.5 3.125 16.2469 3.125 15.9375C3.125 15.6281 3.37812 15.375 3.6875 15.375H3.97578C4.22539 15.375 4.44336 15.2133 4.51367 14.9742L5.0375 13.234C5.15703 12.8367 5.52266 12.5625 5.9375 12.5625C6.35234 12.5625 6.71797 12.8367 6.8375 13.234L7.24531 14.591C7.50547 14.373 7.83594 14.25 8.1875 14.25C8.74648 14.25 9.25625 14.5664 9.50586 15.0656L9.66055 15.375H9.97344C9.86445 15.0656 9.84336 14.7281 9.92422 14.3977L10.4516 12.2848C10.55 11.8875 10.7539 11.5289 11.0422 11.2406L14.375 7.90781V6.375H9.875C9.25273 6.375 8.75 5.87227 8.75 5.25V0.75H3.125ZM9.875 0.75V5.25H14.375L9.875 0.75ZM20.2039 5.66133C19.6555 5.11289 18.766 5.11289 18.2141 5.66133L17.1805 6.69492L19.6766 9.19102L20.7102 8.15742C21.2586 7.60898 21.2586 6.71953 20.7102 6.16758L20.2039 5.66133ZM11.8402 12.0352C11.6961 12.1793 11.5941 12.3586 11.5449 12.559L11.0176 14.6719C10.9684 14.8652 11.0246 15.0656 11.1652 15.2063C11.3059 15.3469 11.5062 15.4031 11.6996 15.3539L13.8125 14.8266C14.0094 14.7773 14.1922 14.6754 14.3363 14.5312L18.8785 9.98555L16.3824 7.48945L11.8402 12.0352Z",fill:"white"})),e("defs",null,e("clipPath",{id:"clip0_34208_4881"},e("path",{d:"M0.875 0.75H21.125V18.75H0.875V0.75Z",fill:"white"}))))),e("div",{class:"title"},"Please Confirm Your Identity",this.steps>1?e("span",{class:"step"},"(",this.step,"/",this.steps,")"):e(s,null))),e("div",{class:"heading"},"Please Confirm Your Identity",this.steps>1?e("span",{class:"step"},"(",this.step,"/",this.steps,")"):e(s,null)),e("div",{slot:"content",class:"content"},e("div",{class:"field"},e("label",{htmlFor:"verdocs-kba-first"},"Your Name:",e("span",{class:"required"},"*")),e("verdocs-text-input",{placeholder:"First name...",value:(t=this.updatedRecipient)===null||t===void 0?void 0:t.first_name,onInput:t=>this.updatedRecipient={...this.updatedRecipient,first_name:t.target.value},onClick:t=>t.stopPropagation()}),e("verdocs-text-input",{placeholder:"Last name...",value:(i=this.updatedRecipient)===null||i===void 0?void 0:i.last_name,onInput:t=>this.updatedRecipient={...this.updatedRecipient,last_name:t.target.value},onClick:t=>t.stopPropagation()})),e("div",{class:"field"},e("label",{htmlFor:"verdocs-kba-address"},"Address:",e("span",{class:"required"},"*")),e("verdocs-text-input",{placeholder:"Address...",value:(o=this.updatedRecipient)===null||o===void 0?void 0:o.address,onInput:t=>this.updatedRecipient={...this.updatedRecipient,address:t.target.value},onClick:t=>t.stopPropagation()})),e("div",{class:"field"},e("label",{htmlFor:"verdocs-kba-city"},"City:"),e("verdocs-text-input",{placeholder:"City...",value:(r=this.updatedRecipient)===null||r===void 0?void 0:r.city,onInput:t=>this.updatedRecipient={...this.updatedRecipient,city:t.target.value},onClick:t=>t.stopPropagation()})),e("div",{class:"field"},e("label",{htmlFor:"verdocs-kba-state"},"State:"),e("verdocs-select-input",{options:ft,value:(n=this.updatedRecipient)===null||n===void 0?void 0:n.state,onInput:t=>this.updatedRecipient={...this.updatedRecipient,state:t.target.value}})),e("div",{class:"field"},e("label",{htmlFor:"verdocs-kba-zip"},"Zip Code:",e("span",{class:"required"},"*")),e("verdocs-text-input",{required:true,placeholder:"Zip Code...",value:(a=this.updatedRecipient)===null||a===void 0?void 0:a.zip,onInput:t=>this.updatedRecipient={...this.updatedRecipient,zip:t.target.value},onClick:t=>t.stopPropagation()})),e("div",{class:"field"},e("label",{htmlFor:"verdocs-kba-ssn"},"SSN Last 4:",e("span",{class:"required"},"*")),e("verdocs-text-input",{placeholder:"Last 4 digits of your Social Security Number...",required:true,value:(l=this.updatedRecipient)===null||l===void 0?void 0:l.ssn_last_4,onInput:t=>this.updatedRecipient={...this.updatedRecipient,ssn_last_4:t.target.value},onClick:t=>t.stopPropagation()})),e("div",{class:"field"},e("label",{htmlFor:this.dobContainerId},"Date of Birth:",e("span",{class:"required"},"*")),e("input",{type:"text",class:"date-input",value:((h=this.updatedRecipient)===null||h===void 0?void 0:h.dob)||"",id:this.dobContainerId,placeholder:"DOB...",onInput:t=>{t.stopPropagation()},onBlur:t=>{this.updatedRecipient={...this.updatedRecipient,dob:t.target.value}}})),e("div",{class:"field agree"},e("label",null),e("verdocs-checkbox",{id:"verdocs-kba-agree",name:"verdocs-kba-agree",checked:this.agreed,onInput:t=>this.agreed=t.target.checked}),e("span",null,"I agree to provide my personal information in order to validate my identity."))),e("div",{class:"footer",slot:"footer"},e("div",{class:"buttons"},e("verdocs-button",{label:"Submit",onClick:()=>this.handleConfirmID(),disabled:!this.agreed||!((u=this.updatedRecipient)===null||u===void 0?void 0:u.first_name)||!((d=this.updatedRecipient)===null||d===void 0?void 0:d.last_name)||!((c=this.updatedRecipient)===null||c===void 0?void 0:c.address)||!((f=this.updatedRecipient)===null||f===void 0?void 0:f.zip)||!((p=this.updatedRecipient)===null||p===void 0?void 0:p.ssn_last_4)||!((g=this.updatedRecipient)===null||g===void 0?void 0:g.dob)}))))}return e("verdocs-dialog",null,e("div",{class:"background-overlay",onClick:t=>this.handleDismiss(t)},e("div",{slot:"heading",class:"heading"},e("div",{class:"icon"},e("svg",{width:"22",height:"19",viewBox:"0 0 22 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("g",{"clip-path":"url(#clip0_34208_4881)"},e("path",{d:"M3.125 0.75C1.88398 0.75 0.875 1.75898 0.875 3V16.5C0.875 17.741 1.88398 18.75 3.125 18.75H12.125C13.366 18.75 14.375 17.741 14.375 16.5V15.8215C14.2801 15.8602 14.1852 15.8918 14.0867 15.9164L11.9738 16.4437C11.8684 16.4684 11.7629 16.4859 11.6574 16.493C11.6258 16.4965 11.5941 16.5 11.5625 16.5H9.3125C9.09805 16.5 8.90469 16.3805 8.80977 16.1906L8.50039 15.5684C8.44062 15.4488 8.32109 15.375 8.19102 15.375C8.06094 15.375 7.93789 15.4488 7.88164 15.5684L7.57227 16.1906C7.47031 16.398 7.24883 16.5211 7.02031 16.5C6.7918 16.4789 6.59492 16.3207 6.53164 16.1027L5.9375 14.1445L5.59297 15.2977C5.37852 16.0113 4.72109 16.5 3.97578 16.5H3.6875C3.37812 16.5 3.125 16.2469 3.125 15.9375C3.125 15.6281 3.37812 15.375 3.6875 15.375H3.97578C4.22539 15.375 4.44336 15.2133 4.51367 14.9742L5.0375 13.234C5.15703 12.8367 5.52266 12.5625 5.9375 12.5625C6.35234 12.5625 6.71797 12.8367 6.8375 13.234L7.24531 14.591C7.50547 14.373 7.83594 14.25 8.1875 14.25C8.74648 14.25 9.25625 14.5664 9.50586 15.0656L9.66055 15.375H9.97344C9.86445 15.0656 9.84336 14.7281 9.92422 14.3977L10.4516 12.2848C10.55 11.8875 10.7539 11.5289 11.0422 11.2406L14.375 7.90781V6.375H9.875C9.25273 6.375 8.75 5.87227 8.75 5.25V0.75H3.125ZM9.875 0.75V5.25H14.375L9.875 0.75ZM20.2039 5.66133C19.6555 5.11289 18.766 5.11289 18.2141 5.66133L17.1805 6.69492L19.6766 9.19102L20.7102 8.15742C21.2586 7.60898 21.2586 6.71953 20.7102 6.16758L20.2039 5.66133ZM11.8402 12.0352C11.6961 12.1793 11.5941 12.3586 11.5449 12.559L11.0176 14.6719C10.9684 14.8652 11.0246 15.0656 11.1652 15.2063C11.3059 15.3469 11.5062 15.4031 11.6996 15.3539L13.8125 14.8266C14.0094 14.7773 14.1922 14.6754 14.3363 14.5312L18.8785 9.98555L16.3824 7.48945L11.8402 12.0352Z",fill:"white"})),e("defs",null,e("clipPath",{id:"clip0_34208_4881"},e("path",{d:"M0.875 0.75H21.125V18.75H0.875V0.75Z",fill:"white"}))))),e("div",{class:"title"},"Please Confirm Your Identity",this.steps>1?e("span",{class:"step"},"(",this.step,"/",this.steps,")"):e(s,null))),e("div",{class:"heading"},"Please Confirm Your Identity",this.steps>1?e("span",{class:"step"},"(",this.step,"/",this.steps,")"):e(s,null)),e("div",{slot:"content",class:"content"},!!this.helptitle&&e("div",{class:"help-box"},e("div",{class:"help-icon",innerHTML:pt}),e("div",{class:"help-details"},e("div",{class:"help-title"},this.helptitle),e("div",{class:"help-text"},this.helptext))),e("div",{class:"input"},e("label",{htmlFor:"verdocs-kba-input"},this.label),e("input",{type:"text",id:"verdocs-kba-input",name:"verdocs-kba-input",placeholder:this.placeholder,value:this.response,onInput:t=>this.response=t.target.value}))),e("div",{class:"footer",slot:"footer"},e("div",{class:"buttons"},e("verdocs-button",{label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),e("verdocs-button",{label:"Submit",onClick:()=>this.handleDone(),disabled:!this.response})))))}};gt.style=dt;const bt='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-otp-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-otp-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-otp-dialog .background-overlay{position:fixed;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:rgba(0, 0, 0, 0.4980392157)}verdocs-otp-dialog .dialog{width:440px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#fff;padding:16px;gap:10px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-otp-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-otp-dialog .step{margin-left:6px;color:#666}verdocs-otp-dialog .help-box{background-color:#707ae5;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:14px;-ms-flex-align:center;align-items:center;color:white}verdocs-otp-dialog .help-details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:15px;font-size:14px}verdocs-otp-dialog .help-icon{width:40px;height:40px}verdocs-otp-dialog .help-title{font-weight:600;margin-bottom:4px}verdocs-otp-dialog .help-text{font-weight:400}verdocs-otp-dialog .input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:10px;-ms-flex-align:center;align-items:center;margin:16px 0 32px}verdocs-otp-dialog .input label{-ms-flex:0;flex:0;line-height:10px;font-weight:500;white-space:nowrap}verdocs-otp-dialog .input input{-ms-flex:1;flex:1;padding:5px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-otp-dialog .field{gap:10px;margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;max-width:100%}verdocs-otp-dialog .field .required{color:red;position:relative;top:-0.5em;font-size:80%}verdocs-otp-dialog .field label{-ms-flex:0 0 120px;flex:0 0 120px;font-weight:500;line-height:10px;text-align:right;white-space:nowrap}verdocs-otp-dialog .field verdocs-date-input{width:40%;-ms-flex-positive:1;flex-grow:1}verdocs-otp-dialog .field verdocs-date-input input{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-otp-dialog .field input{width:40%;-ms-flex-positive:1;flex-grow:1;padding:5px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-otp-dialog .choices{display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));margin:0 0 15px 0}verdocs-otp-dialog .choice{border:1px solid #707ae5;border-radius:5px;display:-ms-flexbox;display:flex;height:60px;font-size:14px;padding:0 5px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;color:#5c6575;cursor:pointer}verdocs-otp-dialog .choice.selected{background-color:#707ae5;color:#ffffff}verdocs-otp-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-otp-dialog .buttons verdocs-button{margin-left:16px}';const vt=`<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 0C8.95313 0 0 8.95313 0 20C0 31.0469 8.95313 40 20 40C31.0469 40 40 31.0469 40 20C40 8.95313 31.0469 0 20 0ZM20 36.25C11.0391 36.25 3.75 28.9602 3.75 20C3.75 11.0398 11.0391 3.75 20 3.75C28.9609 3.75 36.25 11.0398 36.25 20C36.25 28.9602 28.9609 36.25 20 36.25Z" fill="white"/><path d="M20 26.25C18.5938 26.25 17.5 27.3438 17.5 28.75C17.5 30.1562 18.5234 31.25 20 31.25C21.3359 31.25 22.5 30.1562 22.5 28.75C22.5 27.3438 21.3359 26.25 20 26.25ZM22.5859 10H18.5938C15.5469 10 13.125 12.4219 13.125 15.4688C13.125 16.4844 13.9844 17.3438 15 17.3438C16.0156 17.3438 16.875 16.4844 16.875 15.4688C16.875 14.5312 17.5859 13.75 18.5234 13.75H22.5156C23.5234 13.75 24.375 14.5312 24.375 15.4688C24.375 16.0938 24.0625 16.5703 23.5156 16.8828L19.0625 19.6094C18.4375 20 18.125 20.625 18.125 21.25V22.5C18.125 23.5156 18.9844 24.375 20 24.375C21.0156 24.375 21.875 23.5156 21.875 22.5V22.3438L25.3984 20.1562C27.0391 19.1406 28.0547 17.3438 28.0547 15.4688C28.125 12.4219 25.7031 10 22.5859 10Z" fill="#E7E7E7"/></svg>`;const xt=class{constructor(e){t(this,e);this.exit=i(this,"exit");this.next=i(this,"next");this.resendTimeout=null;this.endpoint=n;this.method="email";this.recipient=null;this.resendDisabled=true;this.response=""}componentDidLoad(){this.startResendTimeout();setTimeout((()=>{a(this.endpoint,{auth_method:this.method,code:"",resend:true}).then((t=>{console.log("Resend result",t);this.response=""})).catch((t=>console.log("Error resending code",t)))}),1e3)}disconnectedCallback(){if(this.resendTimeout){clearTimeout(this.resendTimeout);this.resendTimeout=null}}handleCancel(){this.exit.emit()}handleDismiss(t){if(t.target.class==="background-overlay"){t.preventDefault();this.handleCancel()}}startResendTimeout(){this.resendDisabled=true;if(this.resendTimeout){clearTimeout(this.resendTimeout)}this.resendTimeout=setTimeout((()=>{this.resendDisabled=false}),3e4)}handleResend(){this.startResendTimeout();a(this.endpoint,{auth_method:this.method,code:"",resend:true}).then((t=>{console.log("Resend result",t);this.response="";g("A new code has been sent.")})).catch((t=>console.log("Error resending code",t)))}handleSubmit(){this.startResendTimeout();a(this.endpoint,{auth_method:this.method,code:this.response}).then((t=>{console.log("Verification completed",t);this.next.emit({response:t});g("Thank you. Your verification was successful.")})).catch((t=>{g("Invalid verification code. Please try again.");console.log("Invalid code",t)}));this.response=""}render(){return e(o,{key:"f9421b59cb1fc26c18aa055b94ebd7c675d7aa2b"},e("div",{key:"dab97546924e54b6dc62d69376bb661f720af655",class:"background-overlay",onClick:t=>this.handleDismiss(t)},e("div",{key:"8ef84a99336d1d16eede59b31bb48c8c403c9e0f",class:"dialog"},e("div",{key:"ad9843b29e8e61fdf33bc9432fa0d4f49934ac5b",class:"heading"},"Verification Required"),e("div",{key:"1cb96dbf386f284795e7114038e1b8c2fda3d27e",class:"help-box"},e("div",{key:"0b0a2d9ab2ca9c8c9a49edb246f6245441b97553",class:"help-icon",innerHTML:vt}),e("div",{key:"dd2715c92799fbb9f7606df54b065b9c6b12a09f",class:"help-details"},e("div",{key:"d72e75664ea3cfd0bbe6d37458a5fb9fa5e51068",class:"help-title"},"Please verify your email address"),e("div",{key:"d83063a9b5681a27a45d4314859cb228692ca4c6",class:"help-text"},"Check your email for a one-time code, and enter it below."))),e("div",{key:"cb5d76ef7bd943e9e45a7a94ac9265c4384c72f0",class:"input"},e("label",{key:"338439ae1bbd4edde1e41bc36986dff5b83e387a",htmlFor:"verdocs-otp-input"},"Code:"),e("input",{key:"fe27e3625e161649cd6c3fa55cf4c12c50815a5a",type:"text",id:"verdocs-otp-input",name:"verdocs-otp-input",placeholder:"Enter your one-time code...",value:this.response,onInput:t=>this.response=t.target.value})),e("div",{key:"fa99dcdcbf88fa815b183f872d4eb5270296964f",class:"buttons"},e("verdocs-button",{key:"fc5ac9ed4127d4cc4f4ab9395c382978f1d66c62",label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),e("verdocs-button",{key:"2f22320466cd3e78ed85e49f436203e781e2fbbb",label:"Resend",onClick:()=>this.handleResend(),disabled:this.resendDisabled}),e("verdocs-button",{key:"63dd12d6921952ef0160380702ef1951a905982d",label:"Submit",onClick:()=>this.handleSubmit(),disabled:!this.response})))))}};xt.style=bt;const mt='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-view{display:-ms-flexbox;display:flex;overflow:hidden;min-height:600px;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-view div,verdocs-view canvas{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-view .document{-ms-flex:1;flex:1;width:100%;height:100%;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;max-width:1200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-view .document .inner{width:100%;max-width:1028px}verdocs-view .loading-indicator{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.7)}#verdocs-view-header{width:100%;color:#fff;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 56px;flex:0 0 56px;padding:0 20px;font-size:12px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-transition:all 0.25s;transition:all 0.25s;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12)}@media all and (max-width: 500px){#verdocs-view-header{padding:0 10px}}#verdocs-view-header .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 20px;max-width:1200px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}@media all and (max-width: 500px){#verdocs-view-header .inner{padding:0 10px}}#verdocs-view-header .logo{width:80px;display:none;margin:-6px 0 0 0}#verdocs-view-header .title{font-size:18px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}';const Ct=class{constructor(e){t(this,e);this.sdkError=i(this,"sdkError");this.envelopeUpdated=i(this,"envelopeUpdated");this.another=i(this,"another");this.view=i(this,"view");this.next=i(this,"next");this.envelopeListenerId=null;this.endpoint=null;this.envelopeId="";this.headerTargetId=null;this.canceling=false;this.showCancelDone=false;this.showLoadError=false;this.loading=true;this.envelope=null}async componentWillLoad(){var t,i,e;if(!this.endpoint){this.endpoint=l.getDefault();this.endpoint.loadSession()}if(!this.envelopeId){console.error(`[VIEW] Missing required envelopeId`);return}await this.listenToEnvelope();if(!this.envelope){try{console.log("[VIEW] Loading envelope...");this.envelope=await h(this.endpoint,this.envelopeId);console.log("[VIEW] Loaded envelope",this.envelope)}catch(s){this.showLoadError=true;(t=this.sdkError)===null||t===void 0?void 0:t.emit(new b(s.message,(i=s.response)===null||i===void 0?void 0:i.status,(e=s.response)===null||e===void 0?void 0:e.data))}}}componentDidRender(){const t=this.headerTargetId?document.getElementById(this.headerTargetId):null;const i=document.getElementById("verdocs-view-header");if(t&&i){console.log("[VIEW] Moving header");i.remove();t.append(i)}}disconnectedCallback(){this.unlistenToEnvelope()}async listenToEnvelope(){console.log("[VIEW] Loading envelope",this.envelopeId);this.unlistenToEnvelope();v.subscribe("envelopes",this.envelopeId,(()=>h(this.endpoint,this.envelopeId)),true,(t=>{this.envelope=t;this.loading=false}))}unlistenToEnvelope(){if(this.envelopeListenerId){v.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}}handlePageRendered(t){}async handleOptionSelected(t){var i,e,s,o;switch(t.detail.id){case"cancel":if(confirm("Are you sure you wish to cancel this envelope? This action cannot be undone.")){this.canceling=true;c(this.endpoint,this.envelopeId).then((t=>{this.canceling=false;console.log("[VIEW] Envelope canceled",t);return h(this.endpoint,this.envelopeId)})).then((t=>{console.log("[VIEW] Loaded new envelope details",t);this.envelope=t})).catch((t=>{var i,e,s;this.canceling=false;console.log("[VIEW] Error canceling envelope",t);(i=this.sdkError)===null||i===void 0?void 0:i.emit(new b(t.message,(e=t.response)===null||e===void 0?void 0:e.status,(s=t.response)===null||s===void 0?void 0:s.data))}));this.showCancelDone=true;(i=this.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:this.envelope,event:"canceled"})}break;case"print":window.print();(e=this.envelopeUpdated)===null||e===void 0?void 0:e.emit({endpoint:this.endpoint,envelope:this.envelope,event:"printed"});break;case"download-attachments":try{const t=this.envelope.documents.find((t=>t.type==="attachment"));if(t){const i=await d(this.endpoint,t.id);window.open(i,"_blank")}}catch(t){console.log("Unable to download document",t);g(((o=(s=t.response)===null||s===void 0?void 0:s.data)===null||o===void 0?void 0:o.error)||"Unable to download document. Please try again later.",{style:"error"})}break;case"download-certificate":{const t=this.envelope.documents.find((t=>t.type==="certificate"));if(t){const i=await d(this.endpoint,t.id);window.open(i,"_blank")}}break;case"download-all":u(this.endpoint,[this.envelope.id]).then((()=>{var t;(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:this.envelope,event:"downloaded"})})).catch((t=>{console.log("Error downloading Zip",t)}));break}}render(){var t;if(this.loading){return e(o,null,e("verdocs-loader",null))}if(this.showLoadError){return e(o,null,e("verdocs-ok-dialog",{heading:"Unable to View Envelope",message:`Sorry, that envelope is not valid.`,buttonLabel:"OK",onNext:()=>{this.showLoadError=false}}))}if(!this.envelope){return e(o,null,e("img",{src:"https://public-assets.verdocs.com/loading-placeholder.png",style:{width:"612px",height:"792px",boxShadow:"0 0 10px 5px #0000000f",marginTop:"15px"},alt:"Placeholder page"}))}const i=[{id:"print",label:"Print"}];if(f(this.endpoint.profile,this.envelope)){i.push({id:"cancel",label:"Cancel"})}const r=f(this.endpoint.profile,this.envelope);const n=this.envelope.documents.length>0;const a=this.envelope.documents.filter((t=>t.type==="attachment")).length;const l=this.envelope.documents.find((t=>t.type==="certificate"))!==undefined;if(n||l){i.push({label:""});if(n){i.push({id:"download-attachments",label:a>1?"Download Documents":"Download Document"})}if(l){i.push({id:"download-certificate",label:"Download Certificate"})}if(n&&l){i.push({id:"download-all",label:"Download All Files"})}}return e(o,null,e("div",{id:"verdocs-view-header"},e("div",{class:"inner"},e("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),e("div",{class:"title"},this.envelope.name),e("div",{style:{flex:"1"}}),e("div",{style:{marginLeft:"10px"}}),e("verdocs-dropdown",{options:i,onOptionSelected:t=>this.handleOptionSelected(t)}))),e("div",{class:"document",style:{paddingTop:this.headerTargetId?"70px":"15px"}},(((t=this.envelope)===null||t===void 0?void 0:t.documents)||[]).filter((t=>t.type!=="certificate")).map((t=>{const i=p(1,t.pages);return e(s,null,i.map((i=>{var s;const o=((s=t.page_sizes)===null||s===void 0?void 0:s[i])||{width:612,height:792};return e("verdocs-envelope-document-page",{envelopeId:this.envelopeId,documentId:t.id,endpoint:this.endpoint,type:"filled",virtualWidth:o.width,virtualHeight:o.height,pageNumber:i,onPageRendered:t=>this.handlePageRendered(t),layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})})))}))),this.showCancelDone&&e("verdocs-ok-dialog",{heading:"Cancelled",message:`This envelope has been cancelled successfully.`,onNext:()=>{this.showCancelDone=false}}),this.canceling&&e("div",{class:"loading-indicator"},e("verdocs-loader",null)),!r&&e("verdocs-sign-footer",{endpoint:this.endpoint,envelopeId:this.envelopeId,isDone:true,onAskQuestion:()=>{},onDecline:()=>{},onFinishLater:()=>{}}))}get component(){return r(this)}};Ct.style=mt;export{m as verdocs_adopt_signature_dialog,w as verdocs_delegate_dialog,y as verdocs_disclosure_dialog,gt as verdocs_kba_dialog,xt as verdocs_otp_dialog,Ct as verdocs_view};
2
+ //# sourceMappingURL=p-33daf816.entry.js.map