@verdocs/web-sdk 6.12.1 → 6.13.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 (623) hide show
  1. package/dist/cjs/{Environment-C3P2cz0J.js → Environment-BNrHCUC8.js} +4 -2
  2. package/dist/{esm/Environment-b2u0_wDk.js.map → cjs/Environment-BNrHCUC8.js.map} +1 -1
  3. package/dist/cjs/ScrollFade-DKS1cHlq.js +21 -0
  4. package/dist/cjs/ScrollFade-DKS1cHlq.js.map +1 -0
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/verdocs-adopt-signature-dialog_7.cjs.entry.js +8 -8
  7. package/dist/cjs/verdocs-auth.cjs.entry.js +36 -16
  8. package/dist/cjs/verdocs-auth.cjs.entry.js.map +1 -1
  9. package/dist/cjs/verdocs-button-panel.cjs.entry.js +2 -2
  10. package/dist/cjs/verdocs-button_3.cjs.entry.js +6 -6
  11. package/dist/cjs/verdocs-checkbox_5.cjs.entry.js +4 -4
  12. package/dist/cjs/verdocs-contact-picker.cjs.entry.js +73 -46
  13. package/dist/cjs/verdocs-contact-picker.cjs.entry.js.map +1 -1
  14. package/dist/cjs/verdocs-date-input.cjs.entry.js +2 -2
  15. package/dist/cjs/verdocs-dialog.cjs.entry.js +1 -1
  16. package/dist/cjs/verdocs-download-dialog_4.cjs.entry.js +5 -5
  17. package/dist/cjs/verdocs-dropdown.cjs.entry.js +1 -1
  18. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +6 -6
  19. package/dist/cjs/verdocs-field-attachment_11.cjs.entry.js +1 -1
  20. package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +2 -2
  21. package/dist/cjs/verdocs-flag.cjs.entry.js +1 -1
  22. package/dist/cjs/verdocs-initial-dialog.cjs.entry.js +1 -1
  23. package/dist/cjs/verdocs-menu-panel_2.cjs.entry.js +8 -8
  24. package/dist/cjs/verdocs-multiselect.cjs.entry.js +1 -1
  25. package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
  26. package/dist/cjs/verdocs-organization-card_2.cjs.entry.js +2 -2
  27. package/dist/cjs/verdocs-pagination_2.cjs.entry.js +2 -2
  28. package/dist/cjs/verdocs-preview_6.cjs.entry.js +294 -31
  29. package/dist/cjs/verdocs-preview_6.cjs.entry.js.map +1 -1
  30. package/dist/cjs/verdocs-quick-functions.cjs.entry.js +1 -1
  31. package/dist/cjs/verdocs-radio-button.cjs.entry.js +1 -1
  32. package/dist/cjs/verdocs-search-box.cjs.entry.js +1 -1
  33. package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
  34. package/dist/cjs/verdocs-sign.cjs.entry.js +39 -7
  35. package/dist/cjs/verdocs-sign.cjs.entry.js.map +1 -1
  36. package/dist/cjs/verdocs-signature-dialog.cjs.entry.js +1 -1
  37. package/dist/cjs/verdocs-spinner.cjs.entry.js +1 -1
  38. package/dist/cjs/verdocs-status-indicator.cjs.entry.js +2 -2
  39. package/dist/cjs/verdocs-switch.cjs.entry.js +2 -2
  40. package/dist/cjs/verdocs-table.cjs.entry.js +2 -2
  41. package/dist/cjs/verdocs-tabs.cjs.entry.js +1 -1
  42. package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
  43. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +1 -1
  44. package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
  45. package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
  46. package/dist/cjs/verdocs-templates-list.cjs.entry.js +7 -7
  47. package/dist/cjs/verdocs-toggle-button.cjs.entry.js +1 -1
  48. package/dist/cjs/verdocs-toggle.cjs.entry.js +1 -1
  49. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  50. package/dist/collection/collection-manifest.json +1 -1
  51. package/dist/collection/components/controls/verdocs-button/verdocs-button.js +1 -1
  52. package/dist/collection/components/controls/verdocs-button-panel/verdocs-button-panel.js +2 -2
  53. package/dist/collection/components/controls/verdocs-checkbox/verdocs-checkbox.js +1 -1
  54. package/dist/collection/components/controls/verdocs-component-error/verdocs-component-error.js +1 -1
  55. package/dist/collection/components/controls/verdocs-date-input/verdocs-date-input.js +2 -2
  56. package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.js +1 -1
  57. package/dist/collection/components/controls/verdocs-file-chooser/verdocs-file-chooser.js +1 -1
  58. package/dist/collection/components/controls/verdocs-flag/verdocs-flag.js +1 -1
  59. package/dist/collection/components/controls/verdocs-help-icon/verdocs-help-icon.js +1 -1
  60. package/dist/collection/components/controls/verdocs-loader/verdocs-loader.js +1 -1
  61. package/dist/collection/components/controls/verdocs-menu-panel/verdocs-menu-panel.js +1 -1
  62. package/dist/collection/components/controls/verdocs-multiselect/verdocs-multiselect.js +1 -1
  63. package/dist/collection/components/controls/verdocs-organization-card/verdocs-organization-card.js +1 -1
  64. package/dist/collection/components/controls/verdocs-pagination/verdocs-pagination.js +1 -1
  65. package/dist/collection/components/controls/verdocs-portal/verdocs-portal.js +1 -1
  66. package/dist/collection/components/controls/verdocs-progress-bar/verdocs-progress-bar.js +1 -1
  67. package/dist/collection/components/controls/verdocs-quick-filter/verdocs-quick-filter.js +1 -1
  68. package/dist/collection/components/controls/verdocs-radio-button/verdocs-radio-button.js +1 -1
  69. package/dist/collection/components/controls/verdocs-select-input/verdocs-select-input.js +1 -1
  70. package/dist/collection/components/controls/verdocs-spinner/verdocs-spinner.js +1 -1
  71. package/dist/collection/components/controls/verdocs-switch/verdocs-switch.js +2 -2
  72. package/dist/collection/components/controls/verdocs-table/verdocs-table.js +2 -2
  73. package/dist/collection/components/controls/verdocs-tabs/verdocs-tabs.js +1 -1
  74. package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.js +4 -4
  75. package/dist/collection/components/controls/verdocs-toggle/verdocs-toggle.js +1 -1
  76. package/dist/collection/components/controls/verdocs-toggle-button/verdocs-toggle-button.js +1 -1
  77. package/dist/collection/components/controls/verdocs-toolbar-icon/verdocs-toolbar-icon.js +1 -1
  78. package/dist/collection/components/dialogs/verdocs-adopt-signature-dialog/verdocs-adopt-signature-dialog.js +3 -3
  79. package/dist/collection/components/dialogs/verdocs-delegate-dialog/verdocs-delegate-dialog.js +1 -1
  80. package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.js +1 -1
  81. package/dist/collection/components/dialogs/verdocs-disclosure-dialog/verdocs-disclosure-dialog.js +1 -1
  82. package/dist/collection/components/dialogs/verdocs-download-dialog/verdocs-download-dialog.js +2 -2
  83. package/dist/collection/components/dialogs/verdocs-initial-dialog/verdocs-initial-dialog.js +1 -1
  84. package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +1 -1
  85. package/dist/collection/components/dialogs/verdocs-otp-dialog/verdocs-otp-dialog.js +1 -1
  86. package/dist/collection/components/dialogs/verdocs-passcode-dialog/verdocs-passcode-dialog.js +1 -1
  87. package/dist/collection/components/dialogs/verdocs-question-dialog/verdocs-question-dialog.js +1 -1
  88. package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +1 -1
  89. package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.js +1 -1
  90. package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +1 -1
  91. package/dist/collection/components/elements/verdocs-search-box/verdocs-search-box.js +1 -1
  92. package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js +1 -1
  93. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +37 -16
  94. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js.map +1 -1
  95. package/dist/collection/components/embeds/verdocs-send/verdocs-send.css +502 -63
  96. package/dist/collection/components/embeds/verdocs-send/verdocs-send.js +335 -58
  97. package/dist/collection/components/embeds/verdocs-send/verdocs-send.js.map +1 -1
  98. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +39 -7
  99. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
  100. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.css +188 -99
  101. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js +102 -46
  102. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js.map +1 -1
  103. package/dist/collection/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.js +1 -1
  104. package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +6 -6
  105. package/dist/collection/components/envelopes/verdocs-sign-footer/verdocs-sign-footer.js +1 -1
  106. package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js +2 -2
  107. package/dist/collection/components/templates/verdocs-template-card/verdocs-template-card.js +1 -1
  108. package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +7 -7
  109. package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +1 -1
  110. package/dist/collection/components/templates/verdocs-template-tags/verdocs-template-tags.js +1 -1
  111. package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.js +7 -7
  112. package/dist/collection/utils/Environment.js +1 -0
  113. package/dist/collection/utils/Environment.js.map +1 -1
  114. package/dist/collection/utils/ScrollFade.js +15 -0
  115. package/dist/collection/utils/ScrollFade.js.map +1 -0
  116. package/dist/components/{p-DmxiVavg.js → p-1FjgijEi.js} +2 -2
  117. package/dist/components/p-5FU3bYQ3.js +2 -0
  118. package/dist/components/{p-Dc3BDcaU.js.map → p-5FU3bYQ3.js.map} +1 -1
  119. package/dist/components/p-7o544oi8.js +2 -0
  120. package/dist/components/{p-B1UVXqFA.js.map → p-7o544oi8.js.map} +1 -1
  121. package/dist/components/{p-aj0qlBQ1.js → p-8J_y0V9M.js} +2 -2
  122. package/dist/components/{p-CCr_gliS.js → p-9kEZy9MP.js} +2 -2
  123. package/dist/components/{p-DavVixMP.js → p-B-ul_Soj.js} +2 -2
  124. package/dist/components/{p-BXaR1BSS.js → p-B1AE2j97.js} +2 -2
  125. package/dist/components/{p-DubfX0n1.js → p-B4tpmyon.js} +2 -2
  126. package/dist/components/{p-CsF979IT.js → p-BBCy2Hy2.js} +2 -2
  127. package/dist/components/{p-D_FNSGtS.js → p-BKLlc2r0.js} +2 -2
  128. package/dist/components/{p-Dw7l6M37.js → p-BSUeI3vF.js} +2 -2
  129. package/dist/components/{p-hxWwaOcD.js → p-BSX4GfGg.js} +2 -2
  130. package/dist/components/{p-Cujbc8tg.js → p-BTrjJycH.js} +2 -2
  131. package/dist/components/{p-C0SHIuoK.js → p-Bb5V9TQx.js} +2 -2
  132. package/dist/components/{p-CtNpZzq1.js → p-BhG0HGg6.js} +2 -2
  133. package/dist/components/{p-u9H54zUE.js → p-Bodw4NVB.js} +2 -2
  134. package/dist/components/{p-BWrwPDuU.js → p-Bxvw_LqR.js} +2 -2
  135. package/dist/components/p-ByrpRZ3E.js +2 -0
  136. package/dist/components/p-ByrpRZ3E.js.map +1 -0
  137. package/dist/components/{p--jRXEN0c.js → p-C-v22G3g.js} +2 -2
  138. package/dist/components/{p-D9yawpPk.js → p-C8yiLtCJ.js} +2 -2
  139. package/dist/components/p-C90lxyUX.js +2 -0
  140. package/dist/components/{p-JGWMBIGy.js.map → p-C90lxyUX.js.map} +1 -1
  141. package/dist/components/{p-B8R4luxA.js → p-CEcG_ay-.js} +2 -2
  142. package/dist/components/p-CEkRxfcu.js +2 -0
  143. package/dist/components/{p-rasc67fl.js.map → p-CEkRxfcu.js.map} +1 -1
  144. package/dist/components/{p-CFau7OiC.js → p-CFacV7mg.js} +2 -2
  145. package/dist/components/{p-vcHtLpWY.js → p-CQzPkAVQ.js} +2 -2
  146. package/dist/components/{p-BMzxhyLu.js → p-CdnjpaJt.js} +2 -2
  147. package/dist/components/{p-DLo5dMNn.js → p-Cij_2Ym2.js} +2 -2
  148. package/dist/components/{p-CjUdD_Dm.js → p-Cly5sH3M.js} +2 -2
  149. package/dist/components/{p-nh9PxN8s.js → p-CnD-TaPJ.js} +3 -3
  150. package/dist/components/p-Cq60Emo_.js +2 -0
  151. package/dist/components/p-Cq60Emo_.js.map +1 -0
  152. package/dist/components/{p-DJMr11ue.js → p-CqBZmEjI.js} +2 -2
  153. package/dist/components/{p-CzKj8wD_.js → p-D-X-Zcsr.js} +2 -2
  154. package/dist/components/{p-Bp88Loqg.js → p-D0MFs2Dv.js} +2 -2
  155. package/dist/components/{p-D17kbVUt.js → p-D4wfy1ym.js} +2 -2
  156. package/dist/components/{p-CAxzfAvp.js → p-DFbeKrpm.js} +2 -2
  157. package/dist/components/{p-DVx4efoX.js → p-DGNIsXfr.js} +2 -2
  158. package/dist/components/{p-CxIhMndz.js → p-DHzSlpJw.js} +2 -2
  159. package/dist/components/{p-LYpUmpqf.js → p-DM3wePVp.js} +2 -2
  160. package/dist/components/{p-C7JN32A9.js → p-DRP4Xxiu.js} +2 -2
  161. package/dist/components/{p-CVjehb2X.js → p-DTG2X1A2.js} +2 -2
  162. package/dist/components/{p-ByJ9WBGR.js → p-DeAwyTxI.js} +2 -2
  163. package/dist/components/{p-CIgqf7hj.js → p-DhOuB4nS.js} +2 -2
  164. package/dist/components/{p-vimrvRye.js → p-DqzFuSNN.js} +2 -2
  165. package/dist/components/{p-CoeB7U-_.js → p-DreV6Npp.js} +2 -2
  166. package/dist/components/{p-B0HO2i65.js → p-DsSqGIBJ.js} +2 -2
  167. package/dist/components/{p-Dj-aIazM.js → p-DscL0SIM.js} +2 -2
  168. package/dist/components/{p-B7fdmef7.js → p-DslyN9XL.js} +2 -2
  169. package/dist/components/{p-CLtldaUs.js → p-E2hWLZ47.js} +2 -2
  170. package/dist/components/{p-BYLm9aol.js → p-Lo1dCgyv.js} +2 -2
  171. package/dist/components/p-PVw56Shw.js +2 -0
  172. package/dist/components/{p-DTE1GYJt.js.map → p-PVw56Shw.js.map} +1 -1
  173. package/dist/components/{p-BMGs9CCD.js → p-PfdIkMoz.js} +2 -2
  174. package/dist/components/{p-BD2vHbCJ.js → p-Q-li_kJ_.js} +2 -2
  175. package/dist/components/p-VqyGWtIp.js +2 -0
  176. package/dist/components/p-VqyGWtIp.js.map +1 -0
  177. package/dist/components/{p-BLo_-c7G.js → p-eg4Uf0xS.js} +2 -2
  178. package/dist/components/{p-DrNmI7Wz.js → p-ek0LNMtb.js} +2 -2
  179. package/dist/components/{p-C1iHkDUH.js → p-gPd3OG7X.js} +2 -2
  180. package/dist/components/{p-CVF-R2yg.js → p-kHTZa3Ev.js} +2 -2
  181. package/dist/components/{p-F1PgSiVa.js → p-nxPMK2PN.js} +2 -2
  182. package/dist/components/verdocs-adopt-signature-dialog.js +1 -1
  183. package/dist/components/verdocs-auth.js +1 -1
  184. package/dist/components/verdocs-auth.js.map +1 -1
  185. package/dist/components/verdocs-build.js +1 -1
  186. package/dist/components/verdocs-button-panel.js +1 -1
  187. package/dist/components/verdocs-button.js +1 -1
  188. package/dist/components/verdocs-checkbox.js +1 -1
  189. package/dist/components/verdocs-component-error.js +1 -1
  190. package/dist/components/verdocs-contact-picker.js +1 -1
  191. package/dist/components/verdocs-date-input.js +1 -1
  192. package/dist/components/verdocs-delegate-dialog.js +1 -1
  193. package/dist/components/verdocs-dialog.js +1 -1
  194. package/dist/components/verdocs-disclosure-dialog.js +1 -1
  195. package/dist/components/verdocs-download-dialog.js +1 -1
  196. package/dist/components/verdocs-dropdown.js +1 -1
  197. package/dist/components/verdocs-envelope-document-page.js +1 -1
  198. package/dist/components/verdocs-envelope-recipient-link.js +1 -1
  199. package/dist/components/verdocs-envelope-recipient-summary.js +1 -1
  200. package/dist/components/verdocs-envelope-sidebar.js +1 -1
  201. package/dist/components/verdocs-envelope-update-recipient.js +1 -1
  202. package/dist/components/verdocs-envelopes-list.js +1 -1
  203. package/dist/components/verdocs-field-attachment.js +1 -1
  204. package/dist/components/verdocs-field-checkbox.js +1 -1
  205. package/dist/components/verdocs-field-date.js +1 -1
  206. package/dist/components/verdocs-field-dropdown.js +1 -1
  207. package/dist/components/verdocs-field-initial.js +1 -1
  208. package/dist/components/verdocs-field-payment.js +1 -1
  209. package/dist/components/verdocs-field-radio.js +1 -1
  210. package/dist/components/verdocs-field-signature.js +1 -1
  211. package/dist/components/verdocs-field-textarea.js +1 -1
  212. package/dist/components/verdocs-field-textbox.js +1 -1
  213. package/dist/components/verdocs-field-timestamp.js +1 -1
  214. package/dist/components/verdocs-file-chooser.js +1 -1
  215. package/dist/components/verdocs-flag.js +1 -1
  216. package/dist/components/verdocs-help-icon.js +1 -1
  217. package/dist/components/verdocs-initial-dialog.js +1 -1
  218. package/dist/components/verdocs-kba-dialog.js +1 -1
  219. package/dist/components/verdocs-loader.js +1 -1
  220. package/dist/components/verdocs-menu-panel.js +1 -1
  221. package/dist/components/verdocs-multiselect.js +1 -1
  222. package/dist/components/verdocs-ok-dialog.js +1 -1
  223. package/dist/components/verdocs-organization-card.js +1 -1
  224. package/dist/components/verdocs-organization-card.js.map +1 -1
  225. package/dist/components/verdocs-otp-dialog.js +1 -1
  226. package/dist/components/verdocs-pagination.js +1 -1
  227. package/dist/components/verdocs-passcode-dialog.js +1 -1
  228. package/dist/components/verdocs-portal.js +1 -1
  229. package/dist/components/verdocs-preview.js +1 -1
  230. package/dist/components/verdocs-progress-bar.js +1 -1
  231. package/dist/components/verdocs-question-dialog.js +1 -1
  232. package/dist/components/verdocs-quick-filter.js +1 -1
  233. package/dist/components/verdocs-quick-functions.js +1 -1
  234. package/dist/components/verdocs-radio-button.js +1 -1
  235. package/dist/components/verdocs-search-box.js +1 -1
  236. package/dist/components/verdocs-search-tabs.js +1 -1
  237. package/dist/components/verdocs-select-input.js +1 -1
  238. package/dist/components/verdocs-send.js +1 -1
  239. package/dist/components/verdocs-sign-footer.js +1 -1
  240. package/dist/components/verdocs-sign.js +1 -1
  241. package/dist/components/verdocs-sign.js.map +1 -1
  242. package/dist/components/verdocs-signature-dialog.js +1 -1
  243. package/dist/components/verdocs-signing-progress.js +1 -1
  244. package/dist/components/verdocs-spinner.js +1 -1
  245. package/dist/components/verdocs-status-indicator.js +1 -1
  246. package/dist/components/verdocs-switch.js +1 -1
  247. package/dist/components/verdocs-table.js +1 -1
  248. package/dist/components/verdocs-tabs.js +1 -1
  249. package/dist/components/verdocs-template-attachments.js +1 -1
  250. package/dist/components/verdocs-template-build-tabs.js +1 -1
  251. package/dist/components/verdocs-template-card.js +1 -1
  252. package/dist/components/verdocs-template-create.js +1 -1
  253. package/dist/components/verdocs-template-document-page.js +1 -1
  254. package/dist/components/verdocs-template-field-properties.js +1 -1
  255. package/dist/components/verdocs-template-fields.js +1 -1
  256. package/dist/components/verdocs-template-role-properties.js +1 -1
  257. package/dist/components/verdocs-template-roles.js +1 -1
  258. package/dist/components/verdocs-template-settings.js +1 -1
  259. package/dist/components/verdocs-template-star.js +1 -1
  260. package/dist/components/verdocs-template-tags.js +1 -1
  261. package/dist/components/verdocs-templates-list.js +1 -1
  262. package/dist/components/verdocs-text-input.js +1 -1
  263. package/dist/components/verdocs-toggle-button.js +1 -1
  264. package/dist/components/verdocs-toggle.js +1 -1
  265. package/dist/components/verdocs-toolbar-icon.js +1 -1
  266. package/dist/components/verdocs-upload-dialog.js +1 -1
  267. package/dist/components/verdocs-view.js +1 -1
  268. package/dist/custom-elements.json +10 -1
  269. package/dist/esm/{Environment-b2u0_wDk.js → Environment-Cq60Emo_.js} +4 -3
  270. package/dist/{esm-es5/Environment-b2u0_wDk.js.map → esm/Environment-Cq60Emo_.js.map} +1 -1
  271. package/dist/esm/ScrollFade-7UEjZarN.js +19 -0
  272. package/dist/esm/ScrollFade-7UEjZarN.js.map +1 -0
  273. package/dist/esm/loader.js +1 -1
  274. package/dist/esm/verdocs-adopt-signature-dialog_7.entry.js +8 -8
  275. package/dist/esm/verdocs-auth.entry.js +36 -16
  276. package/dist/esm/verdocs-auth.entry.js.map +1 -1
  277. package/dist/esm/verdocs-button-panel.entry.js +2 -2
  278. package/dist/esm/verdocs-button_3.entry.js +6 -6
  279. package/dist/esm/verdocs-checkbox_5.entry.js +4 -4
  280. package/dist/esm/verdocs-contact-picker.entry.js +74 -47
  281. package/dist/esm/verdocs-contact-picker.entry.js.map +1 -1
  282. package/dist/esm/verdocs-date-input.entry.js +2 -2
  283. package/dist/esm/verdocs-dialog.entry.js +1 -1
  284. package/dist/esm/verdocs-download-dialog_4.entry.js +5 -5
  285. package/dist/esm/verdocs-dropdown.entry.js +1 -1
  286. package/dist/esm/verdocs-envelopes-list.entry.js +6 -6
  287. package/dist/esm/verdocs-field-attachment_11.entry.js +1 -1
  288. package/dist/esm/verdocs-file-chooser_2.entry.js +2 -2
  289. package/dist/esm/verdocs-flag.entry.js +1 -1
  290. package/dist/esm/verdocs-initial-dialog.entry.js +1 -1
  291. package/dist/esm/verdocs-menu-panel_2.entry.js +8 -8
  292. package/dist/esm/verdocs-multiselect.entry.js +1 -1
  293. package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
  294. package/dist/esm/verdocs-organization-card_2.entry.js +2 -2
  295. package/dist/esm/verdocs-pagination_2.entry.js +2 -2
  296. package/dist/esm/verdocs-preview_6.entry.js +295 -32
  297. package/dist/esm/verdocs-preview_6.entry.js.map +1 -1
  298. package/dist/esm/verdocs-quick-functions.entry.js +1 -1
  299. package/dist/esm/verdocs-radio-button.entry.js +1 -1
  300. package/dist/esm/verdocs-search-box.entry.js +1 -1
  301. package/dist/esm/verdocs-search-tabs.entry.js +1 -1
  302. package/dist/esm/verdocs-sign.entry.js +39 -7
  303. package/dist/esm/verdocs-sign.entry.js.map +1 -1
  304. package/dist/esm/verdocs-signature-dialog.entry.js +1 -1
  305. package/dist/esm/verdocs-spinner.entry.js +1 -1
  306. package/dist/esm/verdocs-status-indicator.entry.js +2 -2
  307. package/dist/esm/verdocs-switch.entry.js +2 -2
  308. package/dist/esm/verdocs-table.entry.js +2 -2
  309. package/dist/esm/verdocs-tabs.entry.js +1 -1
  310. package/dist/esm/verdocs-template-card.entry.js +1 -1
  311. package/dist/esm/verdocs-template-document-page_2.entry.js +1 -1
  312. package/dist/esm/verdocs-template-star.entry.js +1 -1
  313. package/dist/esm/verdocs-template-tags.entry.js +1 -1
  314. package/dist/esm/verdocs-templates-list.entry.js +7 -7
  315. package/dist/esm/verdocs-toggle-button.entry.js +1 -1
  316. package/dist/esm/verdocs-toggle.entry.js +1 -1
  317. package/dist/esm/verdocs-web-sdk.js +1 -1
  318. package/dist/esm-es5/Environment-Cq60Emo_.js +2 -0
  319. package/dist/{cjs/Environment-C3P2cz0J.js.map → esm-es5/Environment-Cq60Emo_.js.map} +1 -1
  320. package/dist/esm-es5/ScrollFade-7UEjZarN.js +2 -0
  321. package/dist/esm-es5/ScrollFade-7UEjZarN.js.map +1 -0
  322. package/dist/esm-es5/loader.js +1 -1
  323. package/dist/esm-es5/verdocs-adopt-signature-dialog_7.entry.js +1 -1
  324. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  325. package/dist/esm-es5/verdocs-auth.entry.js.map +1 -1
  326. package/dist/esm-es5/verdocs-button-panel.entry.js +1 -1
  327. package/dist/esm-es5/verdocs-button_3.entry.js +1 -1
  328. package/dist/esm-es5/verdocs-checkbox_5.entry.js +1 -1
  329. package/dist/esm-es5/verdocs-contact-picker.entry.js +1 -1
  330. package/dist/esm-es5/verdocs-contact-picker.entry.js.map +1 -1
  331. package/dist/esm-es5/verdocs-date-input.entry.js +1 -1
  332. package/dist/esm-es5/verdocs-dialog.entry.js +1 -1
  333. package/dist/esm-es5/verdocs-download-dialog_4.entry.js +1 -1
  334. package/dist/esm-es5/verdocs-dropdown.entry.js +1 -1
  335. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  336. package/dist/esm-es5/verdocs-field-attachment_11.entry.js +1 -1
  337. package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
  338. package/dist/esm-es5/verdocs-flag.entry.js +1 -1
  339. package/dist/esm-es5/verdocs-initial-dialog.entry.js +1 -1
  340. package/dist/esm-es5/verdocs-menu-panel_2.entry.js +1 -1
  341. package/dist/esm-es5/verdocs-multiselect.entry.js +1 -1
  342. package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
  343. package/dist/esm-es5/verdocs-organization-card_2.entry.js +1 -1
  344. package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
  345. package/dist/esm-es5/verdocs-preview_6.entry.js +2 -2
  346. package/dist/esm-es5/verdocs-preview_6.entry.js.map +1 -1
  347. package/dist/esm-es5/verdocs-quick-functions.entry.js +1 -1
  348. package/dist/esm-es5/verdocs-radio-button.entry.js +1 -1
  349. package/dist/esm-es5/verdocs-search-box.entry.js +1 -1
  350. package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
  351. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  352. package/dist/esm-es5/verdocs-sign.entry.js.map +1 -1
  353. package/dist/esm-es5/verdocs-signature-dialog.entry.js +1 -1
  354. package/dist/esm-es5/verdocs-spinner.entry.js +1 -1
  355. package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
  356. package/dist/esm-es5/verdocs-switch.entry.js +1 -1
  357. package/dist/esm-es5/verdocs-table.entry.js +1 -1
  358. package/dist/esm-es5/verdocs-tabs.entry.js +1 -1
  359. package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
  360. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  361. package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
  362. package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
  363. package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
  364. package/dist/esm-es5/verdocs-toggle-button.entry.js +1 -1
  365. package/dist/esm-es5/verdocs-toggle.entry.js +1 -1
  366. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  367. package/dist/types/components/embeds/verdocs-auth/verdocs-auth.d.ts +2 -0
  368. package/dist/types/components/embeds/verdocs-send/verdocs-send.d.ts +77 -17
  369. package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +1 -0
  370. package/dist/types/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.d.ts +17 -0
  371. package/dist/types/components.d.ts +31 -5
  372. package/dist/types/utils/Environment.d.ts +1 -0
  373. package/dist/types/utils/ScrollFade.d.ts +5 -0
  374. package/dist/verdocs-web-sdk/{p-006f051b.system.entry.js → p-0259b666.system.entry.js} +2 -2
  375. package/dist/verdocs-web-sdk/{p-66375e80.system.entry.js → p-053026c5.system.entry.js} +2 -2
  376. package/dist/verdocs-web-sdk/{p-1d100b90.system.entry.js → p-08dbefe5.system.entry.js} +2 -2
  377. package/dist/verdocs-web-sdk/{p-09f5670e.system.entry.js → p-122f8333.system.entry.js} +2 -2
  378. package/dist/verdocs-web-sdk/{p-e2acf751.system.entry.js → p-143428bc.system.entry.js} +2 -2
  379. package/dist/verdocs-web-sdk/{p-4ea0632f.entry.js → p-1a91a922.entry.js} +2 -2
  380. package/dist/verdocs-web-sdk/p-1fbed8c0.entry.js +2 -0
  381. package/dist/verdocs-web-sdk/{p-52f3ccb3.entry.js → p-208bbc49.entry.js} +2 -2
  382. package/dist/verdocs-web-sdk/{p-5aca9c76.system.entry.js → p-20bc8055.system.entry.js} +2 -2
  383. package/dist/verdocs-web-sdk/{p-66144da6.entry.js → p-2197fb39.entry.js} +2 -2
  384. package/dist/verdocs-web-sdk/{p-08de250b.system.entry.js → p-23f53034.system.entry.js} +2 -2
  385. package/dist/verdocs-web-sdk/{p-c72daca8.system.entry.js → p-27a47940.system.entry.js} +2 -2
  386. package/dist/verdocs-web-sdk/{p-67ccf629.entry.js → p-2da68853.entry.js} +2 -2
  387. package/dist/verdocs-web-sdk/{p-871792ab.entry.js → p-2e382167.entry.js} +2 -2
  388. package/dist/verdocs-web-sdk/p-301f0247.entry.js +2 -0
  389. package/dist/verdocs-web-sdk/p-301f0247.entry.js.map +1 -0
  390. package/dist/verdocs-web-sdk/{p-5f58b4cd.entry.js → p-375a7dea.entry.js} +2 -2
  391. package/dist/verdocs-web-sdk/p-38800961.system.entry.js +2 -0
  392. package/dist/verdocs-web-sdk/p-38800961.system.entry.js.map +1 -0
  393. package/dist/verdocs-web-sdk/{p-431ed4cf.entry.js → p-3a5d4aa0.entry.js} +2 -2
  394. package/dist/verdocs-web-sdk/{p-c5d0abe5.system.entry.js → p-3f9102c4.system.entry.js} +2 -2
  395. package/dist/verdocs-web-sdk/{p-5d532790.entry.js → p-418f3dd2.entry.js} +2 -2
  396. package/dist/verdocs-web-sdk/{p-51a3c97d.system.entry.js → p-4227fb1f.system.entry.js} +2 -2
  397. package/dist/verdocs-web-sdk/{p-b73405ad.system.entry.js → p-44ecadef.system.entry.js} +2 -2
  398. package/dist/verdocs-web-sdk/{p-d9e8be34.entry.js → p-46d6279e.entry.js} +2 -2
  399. package/dist/verdocs-web-sdk/{p-21b8567c.entry.js → p-478de2c9.entry.js} +2 -2
  400. package/dist/verdocs-web-sdk/{p-1bae66d5.system.entry.js → p-4c1f0f08.system.entry.js} +2 -2
  401. package/dist/verdocs-web-sdk/p-502ebdcc.system.entry.js +2 -0
  402. package/dist/verdocs-web-sdk/p-502ebdcc.system.entry.js.map +1 -0
  403. package/dist/verdocs-web-sdk/p-52621662.entry.js +2 -0
  404. package/dist/verdocs-web-sdk/{p-f32fde74.entry.js → p-5455e818.entry.js} +2 -2
  405. package/dist/verdocs-web-sdk/{p-79fdd519.entry.js → p-54ab818c.entry.js} +2 -2
  406. package/dist/verdocs-web-sdk/p-575b6f98.system.entry.js +8 -0
  407. package/dist/verdocs-web-sdk/p-575b6f98.system.entry.js.map +1 -0
  408. package/dist/verdocs-web-sdk/{p-4f5e39eb.system.entry.js → p-5870592f.system.entry.js} +2 -2
  409. package/dist/verdocs-web-sdk/{p-0b7c0d25.entry.js → p-590900d7.entry.js} +2 -2
  410. package/dist/verdocs-web-sdk/{p-fafc51b9.system.entry.js → p-5c27f03b.system.entry.js} +2 -2
  411. package/dist/verdocs-web-sdk/p-634a7187.entry.js +2 -0
  412. package/dist/verdocs-web-sdk/p-634a7187.entry.js.map +1 -0
  413. package/dist/verdocs-web-sdk/{p-9f65fa0d.system.entry.js → p-679511ac.system.entry.js} +2 -2
  414. package/dist/verdocs-web-sdk/{p-dd59aa9a.entry.js → p-6a3ca6bf.entry.js} +2 -2
  415. package/dist/verdocs-web-sdk/{p-a65e1762.system.entry.js → p-6fb7fd6d.system.entry.js} +2 -2
  416. package/dist/verdocs-web-sdk/{p-5b49bd49.entry.js → p-723d6bde.entry.js} +2 -2
  417. package/dist/verdocs-web-sdk/p-7UEjZarN.js +2 -0
  418. package/dist/verdocs-web-sdk/p-7UEjZarN.js.map +1 -0
  419. package/dist/verdocs-web-sdk/p-7cb69139.system.entry.js +2 -0
  420. package/dist/verdocs-web-sdk/{p-f12fcb84.entry.js → p-7d3955b7.entry.js} +2 -2
  421. package/dist/verdocs-web-sdk/{p-5f92320e.system.entry.js → p-7dd394be.system.entry.js} +2 -2
  422. package/dist/verdocs-web-sdk/{p-112ff1d7.system.entry.js → p-81785ed8.system.entry.js} +2 -2
  423. package/dist/verdocs-web-sdk/{p-629301d3.system.entry.js → p-82723d6c.system.entry.js} +2 -2
  424. package/dist/verdocs-web-sdk/{p-26b82394.entry.js → p-84275b8d.entry.js} +2 -2
  425. package/dist/verdocs-web-sdk/{p-df1262b2.entry.js → p-8ec770c3.entry.js} +2 -2
  426. package/dist/verdocs-web-sdk/{p-c45927e3.system.entry.js → p-9048f998.system.entry.js} +2 -2
  427. package/dist/verdocs-web-sdk/{p-61f66f45.entry.js → p-92f51592.entry.js} +2 -2
  428. package/dist/verdocs-web-sdk/{p-2edfa589.entry.js → p-9538ac0e.entry.js} +2 -2
  429. package/dist/verdocs-web-sdk/p-957e4cb0.entry.js +2 -0
  430. package/dist/verdocs-web-sdk/p-957e4cb0.entry.js.map +1 -0
  431. package/dist/verdocs-web-sdk/{p-9cae97dc.system.entry.js → p-97bd4ed2.system.entry.js} +2 -2
  432. package/dist/verdocs-web-sdk/{p-f0e794bc.entry.js → p-97fadf95.entry.js} +2 -2
  433. package/dist/verdocs-web-sdk/{p-ba0d4ff5.system.entry.js → p-99a6b317.system.entry.js} +2 -2
  434. package/dist/verdocs-web-sdk/{p-4a157584.entry.js → p-9bd55619.entry.js} +2 -2
  435. package/dist/verdocs-web-sdk/{p-147256a8.system.entry.js → p-9bd688f5.system.entry.js} +2 -2
  436. package/dist/verdocs-web-sdk/{p-349a2532.entry.js → p-9f3a2cef.entry.js} +2 -2
  437. package/dist/verdocs-web-sdk/p-BXtgiveQ.system.js +2 -0
  438. package/dist/verdocs-web-sdk/{p-COHG5J4h.system.js.map → p-BXtgiveQ.system.js.map} +1 -1
  439. package/dist/verdocs-web-sdk/p-BdZ5Ghsa.system.js +1 -1
  440. package/dist/verdocs-web-sdk/p-CE9CFlX9.system.js +2 -0
  441. package/dist/verdocs-web-sdk/p-CE9CFlX9.system.js.map +1 -0
  442. package/dist/verdocs-web-sdk/p-Cq60Emo_.js +2 -0
  443. package/dist/verdocs-web-sdk/{p-b2u0_wDk.js.map → p-Cq60Emo_.js.map} +1 -1
  444. package/dist/verdocs-web-sdk/{p-34ae1f00.system.entry.js → p-a1d9a507.system.entry.js} +2 -2
  445. package/dist/verdocs-web-sdk/{p-d26c81ec.entry.js → p-af133520.entry.js} +2 -2
  446. package/dist/verdocs-web-sdk/{p-e50ec253.entry.js → p-afd010d6.entry.js} +2 -2
  447. package/dist/verdocs-web-sdk/{p-b5572507.system.entry.js → p-b2113b3c.system.entry.js} +2 -2
  448. package/dist/verdocs-web-sdk/{p-9c9d49cd.entry.js → p-b5997615.entry.js} +2 -2
  449. package/dist/verdocs-web-sdk/{p-fe404347.entry.js → p-bf38aa98.entry.js} +2 -2
  450. package/dist/verdocs-web-sdk/{p-cfc2d31b.system.entry.js → p-c00eccde.system.entry.js} +2 -2
  451. package/dist/verdocs-web-sdk/{p-99f7a0fa.system.entry.js → p-c5f8125b.system.entry.js} +2 -2
  452. package/dist/verdocs-web-sdk/{p-34829b57.system.entry.js → p-c8b08801.system.entry.js} +2 -2
  453. package/dist/verdocs-web-sdk/{p-665748fe.entry.js → p-cd8ac44e.entry.js} +2 -2
  454. package/dist/verdocs-web-sdk/{p-0893bd27.entry.js → p-cdcef698.entry.js} +2 -2
  455. package/dist/verdocs-web-sdk/{p-83d23528.system.entry.js → p-ced860ec.system.entry.js} +2 -2
  456. package/dist/verdocs-web-sdk/{p-6379773e.system.entry.js → p-d0b56329.system.entry.js} +2 -2
  457. package/dist/verdocs-web-sdk/{p-97fcac5e.system.entry.js → p-d6e9c671.system.entry.js} +2 -2
  458. package/dist/verdocs-web-sdk/{p-f7b14409.system.entry.js → p-df921f12.system.entry.js} +2 -2
  459. package/dist/verdocs-web-sdk/{p-0e2505e5.entry.js → p-e9158fec.entry.js} +2 -2
  460. package/dist/verdocs-web-sdk/{p-a06772cc.system.entry.js → p-ea2c3707.system.entry.js} +2 -2
  461. package/dist/verdocs-web-sdk/{p-38bdedc5.system.entry.js → p-f20b49d6.system.entry.js} +2 -2
  462. package/dist/verdocs-web-sdk/p-f3924e9e.entry.js +8 -0
  463. package/dist/verdocs-web-sdk/p-f3924e9e.entry.js.map +1 -0
  464. package/dist/verdocs-web-sdk/p-f41af68e.system.entry.js +2 -0
  465. package/dist/verdocs-web-sdk/p-f41af68e.system.entry.js.map +1 -0
  466. package/dist/verdocs-web-sdk/{p-5cad2422.entry.js → p-f6ad24c5.entry.js} +2 -2
  467. package/dist/verdocs-web-sdk/{p-11d11e68.entry.js → p-f97233a8.entry.js} +2 -2
  468. package/dist/verdocs-web-sdk/{p-eccd653b.entry.js → p-fea6fe32.entry.js} +2 -2
  469. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  470. package/package.json +8 -2
  471. package/dist/components/p-6RWROB9R.js +0 -2
  472. package/dist/components/p-6RWROB9R.js.map +0 -1
  473. package/dist/components/p-B1UVXqFA.js +0 -2
  474. package/dist/components/p-Ck4pdoyc.js +0 -2
  475. package/dist/components/p-Ck4pdoyc.js.map +0 -1
  476. package/dist/components/p-DTE1GYJt.js +0 -2
  477. package/dist/components/p-Dc3BDcaU.js +0 -2
  478. package/dist/components/p-JGWMBIGy.js +0 -2
  479. package/dist/components/p-b2u0_wDk.js +0 -2
  480. package/dist/components/p-b2u0_wDk.js.map +0 -1
  481. package/dist/components/p-rasc67fl.js +0 -2
  482. package/dist/esm-es5/Environment-b2u0_wDk.js +0 -2
  483. package/dist/verdocs-web-sdk/p-0fb8e6e0.system.entry.js +0 -2
  484. package/dist/verdocs-web-sdk/p-0fb8e6e0.system.entry.js.map +0 -1
  485. package/dist/verdocs-web-sdk/p-298d799f.system.entry.js +0 -8
  486. package/dist/verdocs-web-sdk/p-298d799f.system.entry.js.map +0 -1
  487. package/dist/verdocs-web-sdk/p-2a6a3bc6.entry.js +0 -2
  488. package/dist/verdocs-web-sdk/p-2a6a3bc6.entry.js.map +0 -1
  489. package/dist/verdocs-web-sdk/p-35f1973a.entry.js +0 -2
  490. package/dist/verdocs-web-sdk/p-39c54b65.system.entry.js +0 -2
  491. package/dist/verdocs-web-sdk/p-39c54b65.system.entry.js.map +0 -1
  492. package/dist/verdocs-web-sdk/p-4e0788f9.entry.js +0 -2
  493. package/dist/verdocs-web-sdk/p-4e0788f9.entry.js.map +0 -1
  494. package/dist/verdocs-web-sdk/p-5404f6bf.system.entry.js +0 -2
  495. package/dist/verdocs-web-sdk/p-5404f6bf.system.entry.js.map +0 -1
  496. package/dist/verdocs-web-sdk/p-5608f245.entry.js +0 -2
  497. package/dist/verdocs-web-sdk/p-932e8b9b.entry.js +0 -8
  498. package/dist/verdocs-web-sdk/p-932e8b9b.entry.js.map +0 -1
  499. package/dist/verdocs-web-sdk/p-COHG5J4h.system.js +0 -2
  500. package/dist/verdocs-web-sdk/p-abe7c086.system.entry.js +0 -2
  501. package/dist/verdocs-web-sdk/p-b2u0_wDk.js +0 -2
  502. package/dist/verdocs-web-sdk/p-c3e9634c.entry.js +0 -2
  503. package/dist/verdocs-web-sdk/p-c3e9634c.entry.js.map +0 -1
  504. /package/dist/components/{p-DmxiVavg.js.map → p-1FjgijEi.js.map} +0 -0
  505. /package/dist/components/{p-aj0qlBQ1.js.map → p-8J_y0V9M.js.map} +0 -0
  506. /package/dist/components/{p-CCr_gliS.js.map → p-9kEZy9MP.js.map} +0 -0
  507. /package/dist/components/{p-DavVixMP.js.map → p-B-ul_Soj.js.map} +0 -0
  508. /package/dist/components/{p-BXaR1BSS.js.map → p-B1AE2j97.js.map} +0 -0
  509. /package/dist/components/{p-DubfX0n1.js.map → p-B4tpmyon.js.map} +0 -0
  510. /package/dist/components/{p-CsF979IT.js.map → p-BBCy2Hy2.js.map} +0 -0
  511. /package/dist/components/{p-D_FNSGtS.js.map → p-BKLlc2r0.js.map} +0 -0
  512. /package/dist/components/{p-Dw7l6M37.js.map → p-BSUeI3vF.js.map} +0 -0
  513. /package/dist/components/{p-hxWwaOcD.js.map → p-BSX4GfGg.js.map} +0 -0
  514. /package/dist/components/{p-Cujbc8tg.js.map → p-BTrjJycH.js.map} +0 -0
  515. /package/dist/components/{p-C0SHIuoK.js.map → p-Bb5V9TQx.js.map} +0 -0
  516. /package/dist/components/{p-CtNpZzq1.js.map → p-BhG0HGg6.js.map} +0 -0
  517. /package/dist/components/{p-u9H54zUE.js.map → p-Bodw4NVB.js.map} +0 -0
  518. /package/dist/components/{p-BWrwPDuU.js.map → p-Bxvw_LqR.js.map} +0 -0
  519. /package/dist/components/{p--jRXEN0c.js.map → p-C-v22G3g.js.map} +0 -0
  520. /package/dist/components/{p-D9yawpPk.js.map → p-C8yiLtCJ.js.map} +0 -0
  521. /package/dist/components/{p-B8R4luxA.js.map → p-CEcG_ay-.js.map} +0 -0
  522. /package/dist/components/{p-CFau7OiC.js.map → p-CFacV7mg.js.map} +0 -0
  523. /package/dist/components/{p-vcHtLpWY.js.map → p-CQzPkAVQ.js.map} +0 -0
  524. /package/dist/components/{p-BMzxhyLu.js.map → p-CdnjpaJt.js.map} +0 -0
  525. /package/dist/components/{p-DLo5dMNn.js.map → p-Cij_2Ym2.js.map} +0 -0
  526. /package/dist/components/{p-CjUdD_Dm.js.map → p-Cly5sH3M.js.map} +0 -0
  527. /package/dist/components/{p-nh9PxN8s.js.map → p-CnD-TaPJ.js.map} +0 -0
  528. /package/dist/components/{p-DJMr11ue.js.map → p-CqBZmEjI.js.map} +0 -0
  529. /package/dist/components/{p-CzKj8wD_.js.map → p-D-X-Zcsr.js.map} +0 -0
  530. /package/dist/components/{p-Bp88Loqg.js.map → p-D0MFs2Dv.js.map} +0 -0
  531. /package/dist/components/{p-D17kbVUt.js.map → p-D4wfy1ym.js.map} +0 -0
  532. /package/dist/components/{p-CAxzfAvp.js.map → p-DFbeKrpm.js.map} +0 -0
  533. /package/dist/components/{p-DVx4efoX.js.map → p-DGNIsXfr.js.map} +0 -0
  534. /package/dist/components/{p-CxIhMndz.js.map → p-DHzSlpJw.js.map} +0 -0
  535. /package/dist/components/{p-LYpUmpqf.js.map → p-DM3wePVp.js.map} +0 -0
  536. /package/dist/components/{p-C7JN32A9.js.map → p-DRP4Xxiu.js.map} +0 -0
  537. /package/dist/components/{p-CVjehb2X.js.map → p-DTG2X1A2.js.map} +0 -0
  538. /package/dist/components/{p-ByJ9WBGR.js.map → p-DeAwyTxI.js.map} +0 -0
  539. /package/dist/components/{p-CIgqf7hj.js.map → p-DhOuB4nS.js.map} +0 -0
  540. /package/dist/components/{p-vimrvRye.js.map → p-DqzFuSNN.js.map} +0 -0
  541. /package/dist/components/{p-CoeB7U-_.js.map → p-DreV6Npp.js.map} +0 -0
  542. /package/dist/components/{p-B0HO2i65.js.map → p-DsSqGIBJ.js.map} +0 -0
  543. /package/dist/components/{p-Dj-aIazM.js.map → p-DscL0SIM.js.map} +0 -0
  544. /package/dist/components/{p-B7fdmef7.js.map → p-DslyN9XL.js.map} +0 -0
  545. /package/dist/components/{p-CLtldaUs.js.map → p-E2hWLZ47.js.map} +0 -0
  546. /package/dist/components/{p-BYLm9aol.js.map → p-Lo1dCgyv.js.map} +0 -0
  547. /package/dist/components/{p-BMGs9CCD.js.map → p-PfdIkMoz.js.map} +0 -0
  548. /package/dist/components/{p-BD2vHbCJ.js.map → p-Q-li_kJ_.js.map} +0 -0
  549. /package/dist/components/{p-BLo_-c7G.js.map → p-eg4Uf0xS.js.map} +0 -0
  550. /package/dist/components/{p-DrNmI7Wz.js.map → p-ek0LNMtb.js.map} +0 -0
  551. /package/dist/components/{p-C1iHkDUH.js.map → p-gPd3OG7X.js.map} +0 -0
  552. /package/dist/components/{p-CVF-R2yg.js.map → p-kHTZa3Ev.js.map} +0 -0
  553. /package/dist/components/{p-F1PgSiVa.js.map → p-nxPMK2PN.js.map} +0 -0
  554. /package/dist/verdocs-web-sdk/{p-006f051b.system.entry.js.map → p-0259b666.system.entry.js.map} +0 -0
  555. /package/dist/verdocs-web-sdk/{p-66375e80.system.entry.js.map → p-053026c5.system.entry.js.map} +0 -0
  556. /package/dist/verdocs-web-sdk/{p-1d100b90.system.entry.js.map → p-08dbefe5.system.entry.js.map} +0 -0
  557. /package/dist/verdocs-web-sdk/{p-09f5670e.system.entry.js.map → p-122f8333.system.entry.js.map} +0 -0
  558. /package/dist/verdocs-web-sdk/{p-e2acf751.system.entry.js.map → p-143428bc.system.entry.js.map} +0 -0
  559. /package/dist/verdocs-web-sdk/{p-4ea0632f.entry.js.map → p-1a91a922.entry.js.map} +0 -0
  560. /package/dist/verdocs-web-sdk/{p-35f1973a.entry.js.map → p-1fbed8c0.entry.js.map} +0 -0
  561. /package/dist/verdocs-web-sdk/{p-52f3ccb3.entry.js.map → p-208bbc49.entry.js.map} +0 -0
  562. /package/dist/verdocs-web-sdk/{p-5aca9c76.system.entry.js.map → p-20bc8055.system.entry.js.map} +0 -0
  563. /package/dist/verdocs-web-sdk/{p-66144da6.entry.js.map → p-2197fb39.entry.js.map} +0 -0
  564. /package/dist/verdocs-web-sdk/{p-08de250b.system.entry.js.map → p-23f53034.system.entry.js.map} +0 -0
  565. /package/dist/verdocs-web-sdk/{p-c72daca8.system.entry.js.map → p-27a47940.system.entry.js.map} +0 -0
  566. /package/dist/verdocs-web-sdk/{p-67ccf629.entry.js.map → p-2da68853.entry.js.map} +0 -0
  567. /package/dist/verdocs-web-sdk/{p-871792ab.entry.js.map → p-2e382167.entry.js.map} +0 -0
  568. /package/dist/verdocs-web-sdk/{p-5f58b4cd.entry.js.map → p-375a7dea.entry.js.map} +0 -0
  569. /package/dist/verdocs-web-sdk/{p-431ed4cf.entry.js.map → p-3a5d4aa0.entry.js.map} +0 -0
  570. /package/dist/verdocs-web-sdk/{p-c5d0abe5.system.entry.js.map → p-3f9102c4.system.entry.js.map} +0 -0
  571. /package/dist/verdocs-web-sdk/{p-5d532790.entry.js.map → p-418f3dd2.entry.js.map} +0 -0
  572. /package/dist/verdocs-web-sdk/{p-51a3c97d.system.entry.js.map → p-4227fb1f.system.entry.js.map} +0 -0
  573. /package/dist/verdocs-web-sdk/{p-b73405ad.system.entry.js.map → p-44ecadef.system.entry.js.map} +0 -0
  574. /package/dist/verdocs-web-sdk/{p-d9e8be34.entry.js.map → p-46d6279e.entry.js.map} +0 -0
  575. /package/dist/verdocs-web-sdk/{p-21b8567c.entry.js.map → p-478de2c9.entry.js.map} +0 -0
  576. /package/dist/verdocs-web-sdk/{p-1bae66d5.system.entry.js.map → p-4c1f0f08.system.entry.js.map} +0 -0
  577. /package/dist/verdocs-web-sdk/{p-5608f245.entry.js.map → p-52621662.entry.js.map} +0 -0
  578. /package/dist/verdocs-web-sdk/{p-f32fde74.entry.js.map → p-5455e818.entry.js.map} +0 -0
  579. /package/dist/verdocs-web-sdk/{p-79fdd519.entry.js.map → p-54ab818c.entry.js.map} +0 -0
  580. /package/dist/verdocs-web-sdk/{p-4f5e39eb.system.entry.js.map → p-5870592f.system.entry.js.map} +0 -0
  581. /package/dist/verdocs-web-sdk/{p-0b7c0d25.entry.js.map → p-590900d7.entry.js.map} +0 -0
  582. /package/dist/verdocs-web-sdk/{p-fafc51b9.system.entry.js.map → p-5c27f03b.system.entry.js.map} +0 -0
  583. /package/dist/verdocs-web-sdk/{p-9f65fa0d.system.entry.js.map → p-679511ac.system.entry.js.map} +0 -0
  584. /package/dist/verdocs-web-sdk/{p-dd59aa9a.entry.js.map → p-6a3ca6bf.entry.js.map} +0 -0
  585. /package/dist/verdocs-web-sdk/{p-a65e1762.system.entry.js.map → p-6fb7fd6d.system.entry.js.map} +0 -0
  586. /package/dist/verdocs-web-sdk/{p-5b49bd49.entry.js.map → p-723d6bde.entry.js.map} +0 -0
  587. /package/dist/verdocs-web-sdk/{p-abe7c086.system.entry.js.map → p-7cb69139.system.entry.js.map} +0 -0
  588. /package/dist/verdocs-web-sdk/{p-f12fcb84.entry.js.map → p-7d3955b7.entry.js.map} +0 -0
  589. /package/dist/verdocs-web-sdk/{p-5f92320e.system.entry.js.map → p-7dd394be.system.entry.js.map} +0 -0
  590. /package/dist/verdocs-web-sdk/{p-112ff1d7.system.entry.js.map → p-81785ed8.system.entry.js.map} +0 -0
  591. /package/dist/verdocs-web-sdk/{p-629301d3.system.entry.js.map → p-82723d6c.system.entry.js.map} +0 -0
  592. /package/dist/verdocs-web-sdk/{p-26b82394.entry.js.map → p-84275b8d.entry.js.map} +0 -0
  593. /package/dist/verdocs-web-sdk/{p-df1262b2.entry.js.map → p-8ec770c3.entry.js.map} +0 -0
  594. /package/dist/verdocs-web-sdk/{p-c45927e3.system.entry.js.map → p-9048f998.system.entry.js.map} +0 -0
  595. /package/dist/verdocs-web-sdk/{p-61f66f45.entry.js.map → p-92f51592.entry.js.map} +0 -0
  596. /package/dist/verdocs-web-sdk/{p-2edfa589.entry.js.map → p-9538ac0e.entry.js.map} +0 -0
  597. /package/dist/verdocs-web-sdk/{p-9cae97dc.system.entry.js.map → p-97bd4ed2.system.entry.js.map} +0 -0
  598. /package/dist/verdocs-web-sdk/{p-f0e794bc.entry.js.map → p-97fadf95.entry.js.map} +0 -0
  599. /package/dist/verdocs-web-sdk/{p-ba0d4ff5.system.entry.js.map → p-99a6b317.system.entry.js.map} +0 -0
  600. /package/dist/verdocs-web-sdk/{p-4a157584.entry.js.map → p-9bd55619.entry.js.map} +0 -0
  601. /package/dist/verdocs-web-sdk/{p-147256a8.system.entry.js.map → p-9bd688f5.system.entry.js.map} +0 -0
  602. /package/dist/verdocs-web-sdk/{p-349a2532.entry.js.map → p-9f3a2cef.entry.js.map} +0 -0
  603. /package/dist/verdocs-web-sdk/{p-34ae1f00.system.entry.js.map → p-a1d9a507.system.entry.js.map} +0 -0
  604. /package/dist/verdocs-web-sdk/{p-d26c81ec.entry.js.map → p-af133520.entry.js.map} +0 -0
  605. /package/dist/verdocs-web-sdk/{p-e50ec253.entry.js.map → p-afd010d6.entry.js.map} +0 -0
  606. /package/dist/verdocs-web-sdk/{p-b5572507.system.entry.js.map → p-b2113b3c.system.entry.js.map} +0 -0
  607. /package/dist/verdocs-web-sdk/{p-9c9d49cd.entry.js.map → p-b5997615.entry.js.map} +0 -0
  608. /package/dist/verdocs-web-sdk/{p-fe404347.entry.js.map → p-bf38aa98.entry.js.map} +0 -0
  609. /package/dist/verdocs-web-sdk/{p-cfc2d31b.system.entry.js.map → p-c00eccde.system.entry.js.map} +0 -0
  610. /package/dist/verdocs-web-sdk/{p-99f7a0fa.system.entry.js.map → p-c5f8125b.system.entry.js.map} +0 -0
  611. /package/dist/verdocs-web-sdk/{p-34829b57.system.entry.js.map → p-c8b08801.system.entry.js.map} +0 -0
  612. /package/dist/verdocs-web-sdk/{p-665748fe.entry.js.map → p-cd8ac44e.entry.js.map} +0 -0
  613. /package/dist/verdocs-web-sdk/{p-0893bd27.entry.js.map → p-cdcef698.entry.js.map} +0 -0
  614. /package/dist/verdocs-web-sdk/{p-83d23528.system.entry.js.map → p-ced860ec.system.entry.js.map} +0 -0
  615. /package/dist/verdocs-web-sdk/{p-6379773e.system.entry.js.map → p-d0b56329.system.entry.js.map} +0 -0
  616. /package/dist/verdocs-web-sdk/{p-97fcac5e.system.entry.js.map → p-d6e9c671.system.entry.js.map} +0 -0
  617. /package/dist/verdocs-web-sdk/{p-f7b14409.system.entry.js.map → p-df921f12.system.entry.js.map} +0 -0
  618. /package/dist/verdocs-web-sdk/{p-0e2505e5.entry.js.map → p-e9158fec.entry.js.map} +0 -0
  619. /package/dist/verdocs-web-sdk/{p-a06772cc.system.entry.js.map → p-ea2c3707.system.entry.js.map} +0 -0
  620. /package/dist/verdocs-web-sdk/{p-38bdedc5.system.entry.js.map → p-f20b49d6.system.entry.js.map} +0 -0
  621. /package/dist/verdocs-web-sdk/{p-5cad2422.entry.js.map → p-f6ad24c5.entry.js.map} +0 -0
  622. /package/dist/verdocs-web-sdk/{p-11d11e68.entry.js.map → p-f97233a8.entry.js.map} +0 -0
  623. /package/dist/verdocs-web-sdk/{p-eccd653b.entry.js.map → p-fea6fe32.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{r as registerInstance,c as createEvent,h}from"./index-CjTHbolG.js";import{VerdocsEndpoint}from"@verdocs/js-sdk";var verdocsQuickFunctionsCss=function(){return'verdocs-quick-functions{font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif)}verdocs-quick-functions .container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:240px;background-color:#1e2031;text-transform:uppercase;padding:10px 10px 20px 10px;font-family:sans-serif;color:#ffffff}verdocs-quick-functions .title{font-size:22px;font-weight:700;line-height:30px;margin:1em 0 40px 0}verdocs-quick-functions button{width:140px;height:40px;border:none;display:-ms-flexbox;display:flex;color:#ffffff;cursor:pointer;font-size:14px;font-weight:700;line-height:25px;-ms-flex-align:center;align-items:center;margin-bottom:20px;border-radius:5px;text-transform:uppercase;-ms-flex-pack:space-evenly;justify-content:space-evenly;background-color:#55bc81}verdocs-quick-functions button svg{fill:#ffffff}'};var DocumentIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"/></svg>';var TemplateIcon='<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><g><rect fill="none" height="24" width="24"/><g><path d="M19,5v14H5V5H19 M19,3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2V5C21,3.9,20.1,3,19,3L19,3z"/></g><path d="M14,17H7v-2h7V17z M17,13H7v-2h10V13z M17,9H7V7h10V9z"/></g></svg>';var VerdocsQuickFunctions=function(){function e(e){registerInstance(this,e);this.createTemplate=createEvent(this,"createTemplate");this.createDocument=createEvent(this,"createDocument");this.endpoint=VerdocsEndpoint.getDefault()}e.prototype.handleCreateTemplate=function(){this.createTemplate.emit()};e.prototype.handleCreateDocument=function(){this.createDocument.emit()};e.prototype.render=function(){var e=this;return h("div",{key:"3105c1e030e871a1708399307fcc09e3d6682c8f",class:"container"},h("p",{key:"9fe8c5a5ff7be7c76ab02aa830d77ebd989d1a90",class:"title"},"Quick Create"),h("button",{key:"5beefc8b1c58bdc295f24653d215c11c1c647f5b",onClick:function(){return e.handleCreateTemplate()},innerHTML:TemplateIcon},"Template"),h("button",{key:"e7c8c4e2afb5eacb0baebb84554dcd3b3fc5458a",onClick:function(){return e.handleCreateDocument()},innerHTML:DocumentIcon},"Document"))};return e}();VerdocsQuickFunctions.style=verdocsQuickFunctionsCss();export{VerdocsQuickFunctions as verdocs_quick_functions};
1
+ import{r as registerInstance,c as createEvent,h}from"./index-CjTHbolG.js";import{VerdocsEndpoint}from"@verdocs/js-sdk";var verdocsQuickFunctionsCss=function(){return'verdocs-quick-functions{font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif)}verdocs-quick-functions .container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:240px;background-color:#1e2031;text-transform:uppercase;padding:10px 10px 20px 10px;font-family:sans-serif;color:#ffffff}verdocs-quick-functions .title{font-size:22px;font-weight:700;line-height:30px;margin:1em 0 40px 0}verdocs-quick-functions button{width:140px;height:40px;border:none;display:-ms-flexbox;display:flex;color:#ffffff;cursor:pointer;font-size:14px;font-weight:700;line-height:25px;-ms-flex-align:center;align-items:center;margin-bottom:20px;border-radius:5px;text-transform:uppercase;-ms-flex-pack:space-evenly;justify-content:space-evenly;background-color:#55bc81}verdocs-quick-functions button svg{fill:#ffffff}'};var DocumentIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"/></svg>';var TemplateIcon='<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><g><rect fill="none" height="24" width="24"/><g><path d="M19,5v14H5V5H19 M19,3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2V5C21,3.9,20.1,3,19,3L19,3z"/></g><path d="M14,17H7v-2h7V17z M17,13H7v-2h10V13z M17,9H7V7h10V9z"/></g></svg>';var VerdocsQuickFunctions=function(){function e(e){registerInstance(this,e);this.createTemplate=createEvent(this,"createTemplate");this.createDocument=createEvent(this,"createDocument");this.endpoint=VerdocsEndpoint.getDefault()}e.prototype.handleCreateTemplate=function(){this.createTemplate.emit()};e.prototype.handleCreateDocument=function(){this.createDocument.emit()};e.prototype.render=function(){var e=this;return h("div",{key:"c0fa15063ca7e42e3dfd3e206a34c9987679ea86",class:"container"},h("p",{key:"decc0d8eb8bcd5ef42f8c8ad66ebf80877d0c9c8",class:"title"},"Quick Create"),h("button",{key:"72c6b0f2eb3087dae54f6a3c74f7bbbe0dd4ed24",onClick:function(){return e.handleCreateTemplate()},innerHTML:TemplateIcon},"Template"),h("button",{key:"2462f36ecb933a8703e83e8b4621a2fd88897d80",onClick:function(){return e.handleCreateDocument()},innerHTML:DocumentIcon},"Document"))};return e}();VerdocsQuickFunctions.style=verdocsQuickFunctionsCss();export{VerdocsQuickFunctions as verdocs_quick_functions};
2
2
  //# sourceMappingURL=verdocs-quick-functions.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as registerInstance,h,H as Host}from"./index-CjTHbolG.js";var verdocsRadioButtonCss=function(){return'verdocs-radio-button{font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif);width:20px;height:20px;display:block;font-size:11px;position:relative;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left;border-radius:100%}verdocs-radio-button.disabled{opacity:0.5}verdocs-radio-button input[type=radio]{position:absolute;opacity:0}verdocs-radio-button input[type=radio]+label:before{content:"";background:#f5f5fa;border-radius:100%;border:1px solid rgba(0, 0, 0, 0.6);display:inline-block;width:16px;height:16px;position:absolute;left:1px;top:1px;cursor:pointer;text-align:center;-webkit-transition:all 250ms ease;transition:all 250ms ease}verdocs-radio-button input[type=radio]:checked+label:before{background-color:#55bc81;-webkit-box-shadow:inset 0 0 0 2px #f5f5fa;box-shadow:inset 0 0 0 2px #f5f5fa}verdocs-radio-button input[type=radio]:focus+label:before{outline:none;border-color:#55bc81}verdocs-radio-button input[type=radio]:disabled+label:before{-webkit-box-shadow:inset 0 0 0 4px #f5f5fa;box-shadow:inset 0 0 0 4px #f5f5fa;border-color:#f3f3fc;background:#f3f3fc}verdocs-radio-button input[type=radio]+label:empty:before{margin-right:0}verdocs-radio-button.required input[type=radio]+label:before{border:1px solid #cc0000}verdocs-radio-button.hide{display:none}verdocs-radio-button.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}'};var VerdocsRadioButton=function(){function o(o){registerInstance(this,o);this.checked=false;this.name="";this.value="";this.disabled=false}o.prototype.render=function(){return h(Host,{key:"7e9bbed16fe3a07d442f7bd7914a7c9fbeb482e2",class:{disabled:this.disabled}},h("input",{key:"52701d1a04f0fd6b6c06a348f72559b6b6319054",type:"radio",value:this.value,name:this.name,id:"verdocs-radio-button-".concat(this.name,"-").concat(this.value),checked:this.checked,disabled:this.disabled}),h("label",{key:"ba49de718c824b19fafd79b6a772b32c836a005c",htmlFor:"verdocs-radio-button-".concat(this.name,"-").concat(this.value)}))};return o}();VerdocsRadioButton.style=verdocsRadioButtonCss();export{VerdocsRadioButton as verdocs_radio_button};
1
+ import{r as registerInstance,h,H as Host}from"./index-CjTHbolG.js";var verdocsRadioButtonCss=function(){return'verdocs-radio-button{font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif);width:20px;height:20px;display:block;font-size:11px;position:relative;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left;border-radius:100%}verdocs-radio-button.disabled{opacity:0.5}verdocs-radio-button input[type=radio]{position:absolute;opacity:0}verdocs-radio-button input[type=radio]+label:before{content:"";background:#f5f5fa;border-radius:100%;border:1px solid rgba(0, 0, 0, 0.6);display:inline-block;width:16px;height:16px;position:absolute;left:1px;top:1px;cursor:pointer;text-align:center;-webkit-transition:all 250ms ease;transition:all 250ms ease}verdocs-radio-button input[type=radio]:checked+label:before{background-color:#55bc81;-webkit-box-shadow:inset 0 0 0 2px #f5f5fa;box-shadow:inset 0 0 0 2px #f5f5fa}verdocs-radio-button input[type=radio]:focus+label:before{outline:none;border-color:#55bc81}verdocs-radio-button input[type=radio]:disabled+label:before{-webkit-box-shadow:inset 0 0 0 4px #f5f5fa;box-shadow:inset 0 0 0 4px #f5f5fa;border-color:#f3f3fc;background:#f3f3fc}verdocs-radio-button input[type=radio]+label:empty:before{margin-right:0}verdocs-radio-button.required input[type=radio]+label:before{border:1px solid #cc0000}verdocs-radio-button.hide{display:none}verdocs-radio-button.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}'};var VerdocsRadioButton=function(){function o(o){registerInstance(this,o);this.checked=false;this.name="";this.value="";this.disabled=false}o.prototype.render=function(){return h(Host,{key:"6540c6df82964e146cc9fdff36fc2698fa469f40",class:{disabled:this.disabled}},h("input",{key:"53b790041955adb193ccd82adca9862f55a5bebf",type:"radio",value:this.value,name:this.name,id:"verdocs-radio-button-".concat(this.name,"-").concat(this.value),checked:this.checked,disabled:this.disabled}),h("label",{key:"b9bb26cb9c6181d7a63c091b0019bd0dd11f8810",htmlFor:"verdocs-radio-button-".concat(this.name,"-").concat(this.value)}))};return o}();VerdocsRadioButton.style=verdocsRadioButtonCss();export{VerdocsRadioButton as verdocs_radio_button};
2
2
  //# sourceMappingURL=verdocs-radio-button.entry.js.map
@@ -1,2 +1,2 @@
1
- var __awaiter=this&&this.__awaiter||function(e,r,t,n){function o(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,i){function c(e){try{a(n.next(e))}catch(e){i(e)}}function s(e){try{a(n["throw"](e))}catch(e){i(e)}}function a(e){e.done?t(e.value):o(e.value).then(c,s)}a((n=n.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,c=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return c.next=s(0),c["throw"]=s(1),c["return"]=s(2),typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function s(e){return function(r){return a([e,r])}}function a(s){if(n)throw new TypeError("Generator is already executing.");while(c&&(c=0,s[0]&&(t=0)),t)try{if(n=1,o&&(i=s[0]&2?o["return"]:s[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;if(o=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:t.label++;return{value:s[1],done:false};case 5:t.label++;o=s[1];s=[0];continue;case 7:s=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){t.label=s[1];break}if(s[0]===6&&t.label<i[1]){t.label=i[1];i=s;break}if(i&&t.label<i[2]){t.label=i[2];t.ops.push(s);break}if(i[2])t.ops.pop();t.trys.pop();continue}s=r.call(e,t)}catch(e){s=[6,e];o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h}from"./index-CjTHbolG.js";import{VerdocsEndpoint}from"@verdocs/js-sdk";var verdocsSearchBoxCss=function(){return'verdocs-search-box{font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif)}verdocs-search-box form{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:45px;-webkit-box-sizing:border-box;box-sizing:border-box;margin:5px 0 0;border-radius:5px;-ms-flex-align:center;align-items:center;background-color:#fff;padding:0 8px;border-width:1px;border-style:solid;border-color:#707ae5}verdocs-search-box form input{-webkit-box-sizing:border-box;box-sizing:border-box;height:43px;width:100%;font-size:18px;border:none}verdocs-search-box form input:focus{outline:none}verdocs-search-box form button.search{cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:4px;border:none;width:100px;height:28px;font-weight:700;font-size:10px;letter-spacing:1px;background-color:#55bc81;text-transform:uppercase;color:#fff}verdocs-search-box form .type{background-color:#707ae5;height:30px;display:-ms-inline-flexbox;display:inline-flex;padding:1px 0 2px 10px;font-size:13px;line-height:16px;border-radius:4px;-ms-flex-pack:center;justify-content:center;text-transform:uppercase;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;color:#fff;margin-right:10px}verdocs-search-box form .type button{border:none;color:#fff;margin:5px 0 0 8px;background:transparent}verdocs-search-box form svg{width:12px;height:12px;margin-right:6px}verdocs-search-box ::-webkit-input-placeholder{color:#aeb4bf}verdocs-search-box ::-moz-placeholder{color:#aeb4bf}verdocs-search-box :-ms-input-placeholder{color:#aeb4bf}verdocs-search-box ::-ms-input-placeholder{color:#aeb4bf}verdocs-search-box ::placeholder{color:#aeb4bf}'};var SearchIcon='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M23.4809 20.7176L17.9111 15.2536C19.0961 13.6368 19.727 11.6926 19.7128 9.70131C19.7201 7.53345 18.9846 5.42606 17.6244 3.71753C16.2642 2.009 14.3581 0.798456 12.2123 0.280282C10.0665 -0.237892 7.80552 -0.0336342 5.79227 0.86026C3.77902 1.75415 2.13038 3.28582 1.1111 5.20931C0.0918114 7.1328 -0.238985 9.33652 0.171813 11.4666C0.582612 13.5967 1.71117 15.5296 3.37628 16.9548C5.0414 18.3801 7.14646 19.2151 9.35344 19.3257C11.5604 19.4364 13.7413 18.8162 15.5458 17.5649L21.1372 23.05L21.1563 23.0663C21.4841 23.3487 21.9039 23.507 22.3401 23.5128C22.7823 23.5125 23.2063 23.3402 23.5191 23.0337V23.0337C23.6749 22.8812 23.7979 22.6995 23.8804 22.4993C23.963 22.2991 24.0036 22.0847 23.9997 21.8688C23.9959 21.6529 23.9477 21.44 23.858 21.2428C23.7683 21.0456 23.639 20.8682 23.4778 20.7212L23.4809 20.7176ZM14.5167 14.1975C13.4564 15.2349 12.0623 15.8797 10.5719 16.022C9.08145 16.1644 7.58681 15.7955 6.34249 14.9781C5.09816 14.1608 4.18109 12.9456 3.74751 11.5395C3.31393 10.1334 3.39064 8.6233 3.96455 7.26643C4.53846 5.90955 5.57409 4.7898 6.89507 4.09787C8.21606 3.40594 9.74071 3.18461 11.2093 3.4716C12.678 3.75858 13.9998 4.53612 14.9497 5.6718C15.8996 6.80748 16.4188 8.23105 16.4189 9.7001C16.4196 10.5357 16.2519 11.3632 15.9254 12.135C15.599 12.9069 15.1202 13.6078 14.5167 14.1975V14.1975Z" fill="white"/></svg>';var CloseIcon='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.0739 11.7565L19.7127 6.23228C20.0875 5.85692 20.0875 5.25309 19.7127 4.87773L19.0213 4.20046C18.6382 3.82511 18.0219 3.82511 17.6387 4.20046L12 9.72472L6.36127 4.20046C5.97814 3.82511 5.36179 3.82511 4.97866 4.20046L4.28735 4.87773C3.90422 5.25309 3.90422 5.85692 4.28735 6.23228L9.92608 11.7565L4.28735 17.2808C3.90422 17.6561 3.90422 18.26 4.28735 18.6353L4.97866 19.3126C5.36179 19.688 5.97814 19.688 6.36127 19.3126L12 13.7883L17.6387 19.3126C18.0219 19.688 18.6382 19.688 19.0213 19.3126L19.7127 18.6353C20.0958 18.26 20.0958 17.6561 19.7127 17.2808L14.0739 11.7565Z" fill="white"/></svg>';var VerdocsSearchBox=function(){function e(e){registerInstance(this,e);this.searchClicked=createEvent(this,"searchClicked");this.typeChanged=createEvent(this,"typeChanged");this.queryChanged=createEvent(this,"queryChanged");this.endpoint=VerdocsEndpoint.getDefault();this.placeholder="Search envelopes, templates, organizations...";this.type="all";this.query="";this.grabsFocus=false}e.prototype.focusField=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.inputEl.focus();return[2]}))}))};e.prototype.componentDidRender=function(){if(this.grabsFocus){this.inputEl.focus()}};e.prototype.handleSearch=function(e){this.searchClicked.emit({type:this.type,query:this.query});e.preventDefault();return false};e.prototype.handleChange=function(e){this.queryChanged.emit(e.target.value)};e.prototype.handleClearFilter=function(){this.typeChanged.emit("all")};e.prototype.handleKeyUp=function(e){if(e.key==="Enter"){this.searchClicked.emit({type:this.type,query:this.query})}};e.prototype.render=function(){var e=this;return h("form",{key:"04600c8f163a1ec9e3608335749cbc71e0fe26ab",onSubmit:function(r){return e.handleSearch(r)}},this.type!==undefined&&this.type!=="all"&&h("span",{key:"03d4d4228516d03ce1feb1ddd867b2f307c0dad2",class:"type"},this.type,"s ",h("button",{key:"400c49c953b2f3ee69ea62aa068511f5770a339c",class:"remove",innerHTML:CloseIcon,onClick:function(){return e.handleClearFilter()}})),h("input",{key:"91dbcc6f22beacf9859be1bbf0a68c06af1ca04a",type:"text",value:this.query,placeholder:this.placeholder,onInput:function(r){return e.handleChange(r)},onKeyUp:function(r){return e.handleKeyUp(r)},ref:function(r){return e.inputEl=r}}),h("button",{key:"439f248c2a76f57e72dc8fb56162fd8e22b5281c",onClick:function(r){return e.handleSearch(r)},class:"search"},h("span",{key:"646080b9faa9c7af5b14d0ed8d5f5f13ffeaa218",innerHTML:SearchIcon}),"Search"))};return e}();VerdocsSearchBox.style=verdocsSearchBoxCss();export{VerdocsSearchBox as verdocs_search_box};
1
+ var __awaiter=this&&this.__awaiter||function(e,r,t,n){function o(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,i){function c(e){try{a(n.next(e))}catch(e){i(e)}}function s(e){try{a(n["throw"](e))}catch(e){i(e)}}function a(e){e.done?t(e.value):o(e.value).then(c,s)}a((n=n.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,c=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return c.next=s(0),c["throw"]=s(1),c["return"]=s(2),typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function s(e){return function(r){return a([e,r])}}function a(s){if(n)throw new TypeError("Generator is already executing.");while(c&&(c=0,s[0]&&(t=0)),t)try{if(n=1,o&&(i=s[0]&2?o["return"]:s[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;if(o=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:t.label++;return{value:s[1],done:false};case 5:t.label++;o=s[1];s=[0];continue;case 7:s=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){t.label=s[1];break}if(s[0]===6&&t.label<i[1]){t.label=i[1];i=s;break}if(i&&t.label<i[2]){t.label=i[2];t.ops.push(s);break}if(i[2])t.ops.pop();t.trys.pop();continue}s=r.call(e,t)}catch(e){s=[6,e];o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h}from"./index-CjTHbolG.js";import{VerdocsEndpoint}from"@verdocs/js-sdk";var verdocsSearchBoxCss=function(){return'verdocs-search-box{font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif)}verdocs-search-box form{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:45px;-webkit-box-sizing:border-box;box-sizing:border-box;margin:5px 0 0;border-radius:5px;-ms-flex-align:center;align-items:center;background-color:#fff;padding:0 8px;border-width:1px;border-style:solid;border-color:#707ae5}verdocs-search-box form input{-webkit-box-sizing:border-box;box-sizing:border-box;height:43px;width:100%;font-size:18px;border:none}verdocs-search-box form input:focus{outline:none}verdocs-search-box form button.search{cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:4px;border:none;width:100px;height:28px;font-weight:700;font-size:10px;letter-spacing:1px;background-color:#55bc81;text-transform:uppercase;color:#fff}verdocs-search-box form .type{background-color:#707ae5;height:30px;display:-ms-inline-flexbox;display:inline-flex;padding:1px 0 2px 10px;font-size:13px;line-height:16px;border-radius:4px;-ms-flex-pack:center;justify-content:center;text-transform:uppercase;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;color:#fff;margin-right:10px}verdocs-search-box form .type button{border:none;color:#fff;margin:5px 0 0 8px;background:transparent}verdocs-search-box form svg{width:12px;height:12px;margin-right:6px}verdocs-search-box ::-webkit-input-placeholder{color:#aeb4bf}verdocs-search-box ::-moz-placeholder{color:#aeb4bf}verdocs-search-box :-ms-input-placeholder{color:#aeb4bf}verdocs-search-box ::-ms-input-placeholder{color:#aeb4bf}verdocs-search-box ::placeholder{color:#aeb4bf}'};var SearchIcon='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M23.4809 20.7176L17.9111 15.2536C19.0961 13.6368 19.727 11.6926 19.7128 9.70131C19.7201 7.53345 18.9846 5.42606 17.6244 3.71753C16.2642 2.009 14.3581 0.798456 12.2123 0.280282C10.0665 -0.237892 7.80552 -0.0336342 5.79227 0.86026C3.77902 1.75415 2.13038 3.28582 1.1111 5.20931C0.0918114 7.1328 -0.238985 9.33652 0.171813 11.4666C0.582612 13.5967 1.71117 15.5296 3.37628 16.9548C5.0414 18.3801 7.14646 19.2151 9.35344 19.3257C11.5604 19.4364 13.7413 18.8162 15.5458 17.5649L21.1372 23.05L21.1563 23.0663C21.4841 23.3487 21.9039 23.507 22.3401 23.5128C22.7823 23.5125 23.2063 23.3402 23.5191 23.0337V23.0337C23.6749 22.8812 23.7979 22.6995 23.8804 22.4993C23.963 22.2991 24.0036 22.0847 23.9997 21.8688C23.9959 21.6529 23.9477 21.44 23.858 21.2428C23.7683 21.0456 23.639 20.8682 23.4778 20.7212L23.4809 20.7176ZM14.5167 14.1975C13.4564 15.2349 12.0623 15.8797 10.5719 16.022C9.08145 16.1644 7.58681 15.7955 6.34249 14.9781C5.09816 14.1608 4.18109 12.9456 3.74751 11.5395C3.31393 10.1334 3.39064 8.6233 3.96455 7.26643C4.53846 5.90955 5.57409 4.7898 6.89507 4.09787C8.21606 3.40594 9.74071 3.18461 11.2093 3.4716C12.678 3.75858 13.9998 4.53612 14.9497 5.6718C15.8996 6.80748 16.4188 8.23105 16.4189 9.7001C16.4196 10.5357 16.2519 11.3632 15.9254 12.135C15.599 12.9069 15.1202 13.6078 14.5167 14.1975V14.1975Z" fill="white"/></svg>';var CloseIcon='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.0739 11.7565L19.7127 6.23228C20.0875 5.85692 20.0875 5.25309 19.7127 4.87773L19.0213 4.20046C18.6382 3.82511 18.0219 3.82511 17.6387 4.20046L12 9.72472L6.36127 4.20046C5.97814 3.82511 5.36179 3.82511 4.97866 4.20046L4.28735 4.87773C3.90422 5.25309 3.90422 5.85692 4.28735 6.23228L9.92608 11.7565L4.28735 17.2808C3.90422 17.6561 3.90422 18.26 4.28735 18.6353L4.97866 19.3126C5.36179 19.688 5.97814 19.688 6.36127 19.3126L12 13.7883L17.6387 19.3126C18.0219 19.688 18.6382 19.688 19.0213 19.3126L19.7127 18.6353C20.0958 18.26 20.0958 17.6561 19.7127 17.2808L14.0739 11.7565Z" fill="white"/></svg>';var VerdocsSearchBox=function(){function e(e){registerInstance(this,e);this.searchClicked=createEvent(this,"searchClicked");this.typeChanged=createEvent(this,"typeChanged");this.queryChanged=createEvent(this,"queryChanged");this.endpoint=VerdocsEndpoint.getDefault();this.placeholder="Search envelopes, templates, organizations...";this.type="all";this.query="";this.grabsFocus=false}e.prototype.focusField=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.inputEl.focus();return[2]}))}))};e.prototype.componentDidRender=function(){if(this.grabsFocus){this.inputEl.focus()}};e.prototype.handleSearch=function(e){this.searchClicked.emit({type:this.type,query:this.query});e.preventDefault();return false};e.prototype.handleChange=function(e){this.queryChanged.emit(e.target.value)};e.prototype.handleClearFilter=function(){this.typeChanged.emit("all")};e.prototype.handleKeyUp=function(e){if(e.key==="Enter"){this.searchClicked.emit({type:this.type,query:this.query})}};e.prototype.render=function(){var e=this;return h("form",{key:"67da35d4b9c83147f9568c92098f132e12654ab4",onSubmit:function(r){return e.handleSearch(r)}},this.type!==undefined&&this.type!=="all"&&h("span",{key:"70bd17abc4042f19ad518bce4e1d076a8d91f2f6",class:"type"},this.type,"s ",h("button",{key:"c7710ff13c8cfcf5b4db4861c57455c480306950",class:"remove",innerHTML:CloseIcon,onClick:function(){return e.handleClearFilter()}})),h("input",{key:"cc20f133b4ef1f8a0035dee4cc00f249d6720f29",type:"text",value:this.query,placeholder:this.placeholder,onInput:function(r){return e.handleChange(r)},onKeyUp:function(r){return e.handleKeyUp(r)},ref:function(r){return e.inputEl=r}}),h("button",{key:"f51ff08d3b476189442558e1df4b1dbd912519a2",onClick:function(r){return e.handleSearch(r)},class:"search"},h("span",{key:"4089a9ccf5b4b905384dac7b283cb5d0d5ed63fb",innerHTML:SearchIcon}),"Search"))};return e}();VerdocsSearchBox.style=verdocsSearchBoxCss();export{VerdocsSearchBox as verdocs_search_box};
2
2
  //# sourceMappingURL=verdocs-search-box.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as registerInstance,h}from"./index-CjTHbolG.js";var verdocsSearchTabsCss=function(){return'verdocs-search-tabs{font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif);display:block}'};var VerdocsSearchTabs=function(){function r(r){registerInstance(this,r);this.selected="all"}r.prototype.render=function(){return h("div",{key:"47559d52416a34751697d8813ace1471ff8fff29"}," ")};return r}();VerdocsSearchTabs.style=verdocsSearchTabsCss();export{VerdocsSearchTabs as verdocs_search_tabs};
1
+ import{r as registerInstance,h}from"./index-CjTHbolG.js";var verdocsSearchTabsCss=function(){return'verdocs-search-tabs{font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif);display:block}'};var VerdocsSearchTabs=function(){function r(r){registerInstance(this,r);this.selected="all"}r.prototype.render=function(){return h("div",{key:"161c0333749e7110ea2a7fc585dfd7194959795f"}," ")};return r}();VerdocsSearchTabs.style=verdocsSearchTabsCss();export{VerdocsSearchTabs as verdocs_search_tabs};
2
2
  //# sourceMappingURL=verdocs-search-tabs.entry.js.map
@@ -1,2 +1,2 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,n){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n["throw"](e))}catch(e){r(e)}}function l(e){e.done?i(e.value):o(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=a(0),s["throw"]=a(1),s["return"]=a(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return l([e,t])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(i=0)),i)try{if(n=1,o&&(r=a[0]&2?o["return"]:a[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;if(o=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;o=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){i.label=a[1];break}if(a[0]===6&&i.label<r[1]){i.label=r[1];r=a;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(a);break}if(r[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];o=0}finally{n=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,i){if(i||arguments.length===2)for(var n=0,o=t.length,r;n<o;n++){if(r||!(n in t)){if(!r)r=Array.prototype.slice.call(t,0,n);r[n]=t[n]}}return e.concat(r||Array.prototype.slice.call(t))};import{r as registerInstance,c as createEvent,h,H as Host,F as Fragment,g as getElement}from"./index-CjTHbolG.js";import{VerdocsEndpoint,DEFAULT_DISCLOSURES,startSigningSession,getEnvelope,envelopeRecipientAgree,updateEnvelopeField,createSignature,createInitials,sortFields,envelopeRecipientSubmit,isFieldValid,isFieldFilled,uploadEnvelopeFieldAttachment,deleteEnvelopeFieldAttachment,formatFullName,fullNameToInitials,verifySigner,getEnvelopesZip,getEnvelopeDocumentDownloadLink,getCombinedEnvelopeDocumentDownloadLink,delegateRecipient,envelopeRecipientDecline,integerSequence,askQuestion}from"@verdocs/js-sdk";import{u as updateDocumentFieldValue,g as getFieldId,r as renderDocumentFlag,a as renderDocumentField,d as defaultHeight}from"./utils-Bh3zb1Xs.js";import{D as DownloadAction}from"./Types-CIxfEdV7.js";import{D as DocumentPageIcon,C as CheckCircleIcon}from"./Icons-DobS6Y7w.js";import{V as VerdocsToast}from"./Toast-D97GxsI-.js";import{S as SDKError}from"./errors-C1sRVZWv.js";import{S as Store}from"./Datastore-C7hFgM52.js";import"./index-BglCURB-.js";var verdocsSignCss=function(){return'verdocs-sign{display:-ms-flexbox;display:flex;overflow:hidden;min-height:700px;position:relative;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#f5f5f5;font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif)}verdocs-sign div{display:block;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign input{vertical-align:top}verdocs-sign>.document{-ms-flex:1;flex:1;width:100%;height:100%;-ms-flex-item-align:center;align-self:center;display:-ms-flexbox;display:flex;padding:15px;padding-right:140px;row-gap:15px;max-width:1200px;min-height:200px;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-sign>.document .inner{width:100%;max-width:1028px}verdocs-sign>.document .document-separator{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:10px;padding:12px 20px;width:100%;max-width:1028px;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#33364b;color:white;border-radius:6px;font-size:16px;font-weight:500;margin-top:20px;-webkit-box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);box-shadow:0 2px 4px rgba(0, 0, 0, 0.1)}verdocs-sign>.document .document-separator svg{-ms-flex-negative:0;flex-shrink:0}verdocs-sign>.document .document-separator:first-child{margin-top:0}verdocs-sign .signed-document-container{width:64%;margin-left:260px;-webkit-transition:all 0.3s ease;transition:all 0.3s ease}verdocs-sign .signed-document-container.zoom-normal{width:64%;margin-left:260px}verdocs-sign .signed-document-container.zoom-zoom1{width:80%;margin-left:200px}verdocs-sign .signed-document-container.zoom-zoom2{width:100%;margin-left:150px}verdocs-sign .signed-document-container.zoom-zoom2 .verdocs-flag-instance{opacity:0;pointer-events:none}@media (max-width: 768px){verdocs-sign verdocs-sign-footer{padding:0 10px}verdocs-sign verdocs-sign-footer .buttons{gap:8px}verdocs-sign verdocs-sign-footer .buttons button{font-size:10px}verdocs-sign .signed-document-container{width:100%;margin-left:0}verdocs-sign .signed-document-container.zoom-normal,verdocs-sign .signed-document-container.zoom-zoom1,verdocs-sign .signed-document-container.zoom-zoom2{width:100%;margin-left:0}verdocs-sign>.document{padding-right:15px}verdocs-sign .verdocs-flag-instance{display:none !important}verdocs-sign .controls-toolbar .center-controls{display:none}verdocs-sign .controls-toolbar .right-controls .mobile-next-button{display:block;margin-right:10px}verdocs-sign .controls-toolbar .right-controls .minus,verdocs-sign .controls-toolbar .right-controls .plus{display:none}}verdocs-sign .cover{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:5000;position:absolute;padding-top:100px;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;background:rgba(0, 0, 0, 0.5)}verdocs-sign verdocs-ok-dialog .background-overlay{-ms-flex-align:start;align-items:flex-start;padding-top:100px}verdocs-sign .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-sign .fatal-error{position:absolute;z-index:100;top:0;left:0;right:0;bottom:0;background-color:#4a4a4a;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-sign .fatal-error .placeholder{position:absolute;opacity:0.1;z-index:-1;top:0;left:0;right:0;bottom:0;width:612px;height:792px;-webkit-box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294);box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294);margin-top:15px}verdocs-sign .fatal-error .message{max-width:360px;width:50%;font-size:16px;background:white;-webkit-box-shadow:3px 3px 9px -1px rgba(0, 0, 0, 0.2470588235);box-shadow:3px 3px 9px -1px rgba(0, 0, 0, 0.2470588235)}verdocs-sign .fatal-error .header{color:white;font-size:18px;font-weight:500;padding:5px 10px;margin:0 0 10px 0;background:#4c56cb}verdocs-sign .fatal-error p{margin:1rem;font-size:14px;font-weight:400;padding:0 10px}@media print{verdocs-sign .header,.controls-toolbar,.verdocs-flag-instance,verdocs-signing-progress{display:none !important}verdocs-sign{min-height:auto;background-color:white}verdocs-sign>.document{overflow:visible;height:auto;display:block;padding:0;margin:0}verdocs-sign>.document .document-separator{display:none}verdocs-sign .signed-document-container{width:100%;margin:0}}#verdocs-sign-header{color:#fff;width:100%;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 46px;flex:0 0 46px;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)}#verdocs-sign-header .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 12px;max-width:1200px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-column-gap:10px;-moz-column-gap:10px;column-gap:10px}#verdocs-sign-header .logo{width:80px;display:none;margin:-6px 0 0 0}#verdocs-sign-header .title{font-size:18px;font-weight:500;overflow:hidden;white-space:nowrap;padding:0 10px 0 0;text-overflow:ellipsis}@media (max-width: 670px){#verdocs-sign-header .title{font-size:14px}}#verdocs-sign-header .remaining-count{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;gap:8px;color:#ffffff;font-size:13px;font-weight:400;white-space:nowrap}#verdocs-sign-header .remaining-count .check-icon{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}#verdocs-sign-header .remaining-count .check-icon svg{width:16px;height:16px;fill:#55bc81}#verdocs-sign-header .remaining-count .separator{opacity:0.5;margin:0 2px}#verdocs-sign-header .remaining-count .review-optional{cursor:pointer;text-decoration:underline}#verdocs-sign-header .remaining-count .review-optional:hover{color:#54d68c}@media (max-width: 670px){#verdocs-sign-header .remaining-count .review-optional{display:none}}@media (max-width: 670px){#verdocs-sign-header .remaining-count{font-size:12px}}#verdocs-sign-header .icon-button{width:20px;height:32px;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:4px;-webkit-transition:background-color 0.2s;transition:background-color 0.2s}#verdocs-sign-header .icon-button svg path{fill:#ffffff}#verdocs-sign-header .icon-button:hover{background-color:rgba(255, 255, 255, 0.1)}#verdocs-sign-header .icon-button.disabled{opacity:0.35;pointer-events:none}#verdocs-sign-header .icon-button+.icon-button{margin-left:-6px}@media (max-width: 670px){#verdocs-sign-header .icon-button.magnify{display:none}}.spinner-overlay{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1000;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background:rgba(0, 0, 0, 0.4980392157);-ms-flex-pack:center;justify-content:center}.controls-toolbar{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;height:54px;padding:0 12px 0 24px;background-color:#ffffff;border-bottom:1px solid #e0e0e0;-webkit-box-shadow:none;box-shadow:none;font-family:"Inter", sans-serif;color:#424242;z-index:1000}.controls-toolbar .left-controls{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.controls-toolbar .left-controls .title{font-weight:500;font-size:16px;color:#242424;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.controls-toolbar .center-controls{-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;gap:10px;font-size:14px;display:none}.controls-toolbar .center-controls .label{color:#000000;font-weight:300}.controls-toolbar .center-controls .select-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.controls-toolbar .center-controls .select-wrapper verdocs-select-input{margin:0}.controls-toolbar .center-controls .select-wrapper verdocs-select-input .input-label{display:none}.controls-toolbar .center-controls .select-wrapper verdocs-select-input .input-element{background:transparent;border:1px solid #e0e0e0;height:32px;padding:2px 8px;min-width:60px;text-align:center;font-family:inherit;color:#424242}.controls-toolbar .center-controls .select-wrapper verdocs-select-input .input-element:focus{border-color:var(--verdocs-primary-color, #55bc81)}.controls-toolbar .center-controls .count{color:#000000;font-weight:300}.controls-toolbar .right-controls{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}.controls-toolbar .right-controls .mobile-next-button{display:none}.controls-toolbar .right-controls .icon-button{width:32px;height:32px;display:-ms-flexbox;display:flex;color:#424242;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-transition:background-color 0.2s;transition:background-color 0.2s}.controls-toolbar .right-controls .icon-button:hover{background-color:#f5f5f5}.controls-toolbar .right-controls .icon-button.disabled{opacity:0.3;pointer-events:none}.controls-toolbar .right-controls .icon-button svg{display:block;width:20px;height:20px}'};var ToolbarMinusIcon='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11ZM14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z" fill="#424242" /></svg>';var ToolbarPlusIcon='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5ZM8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z" fill="#424242" /></svg>';var ToolbarDownloadIcon='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.5 16.9988C15.7761 16.9988 16 17.2226 16 17.4988C16 17.7442 15.8231 17.9484 15.5899 17.9907L15.5 17.9988H4.5C4.22386 17.9988 4 17.7749 4 17.4988C4 17.2533 4.17688 17.0492 4.41012 17.0068L4.5 16.9988H15.5ZM10.0001 2.00098C10.2456 2.00098 10.4497 2.17798 10.492 2.41124L10.5 2.50112L10.496 14.295L14.1414 10.6466C14.3148 10.4729 14.5842 10.4534 14.7792 10.5882L14.8485 10.646C15.0222 10.8194 15.0418 11.0888 14.907 11.2838L14.8492 11.3531L10.3574 15.8531C10.285 15.9257 10.1957 15.9714 10.1021 15.9901L9.99608 15.9999C9.83511 15.9999 9.69192 15.9237 9.60051 15.8056L5.14386 11.3537C4.94846 11.1586 4.94823 10.842 5.14336 10.6466C5.3168 10.4729 5.58621 10.4534 5.78117 10.5883L5.85046 10.6461L9.496 14.287L9.5 2.50083C9.50008 2.22469 9.724 2.00098 10.0001 2.00098Z" fill="#424242"/></svg>';var ToolbarPrintIcon='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5 4.5C5 3.67157 5.67157 3 6.5 3H13.5C14.3284 3 15 3.67157 15 4.5V5H15.5C16.8807 5 18 6.11929 18 7.5V12.5C18 13.3284 17.3284 14 16.5 14H15V15.5C15 16.3284 14.3284 17 13.5 17H6.5C5.67157 17 5 16.3284 5 15.5V14H3.5C2.67157 14 2 13.3284 2 12.5V7.5C2 6.11929 3.11929 5 4.5 5H5V4.5ZM6 5H14V4.5C14 4.22386 13.7761 4 13.5 4H6.5C6.22386 4 6 4.22386 6 4.5V5ZM5 13V11.5C5 10.6716 5.67157 10 6.5 10H13.5C14.3284 10 15 10.6716 15 11.5V13H16.5C16.7761 13 17 12.7761 17 12.5V7.5C17 6.67157 16.3284 6 15.5 6H4.5C3.67157 6 3 6.67157 3 7.5V12.5C3 12.7761 3.22386 13 3.5 13H5ZM6.5 11C6.22386 11 6 11.2239 6 11.5V15.5C6 15.7761 6.22386 16 6.5 16H13.5C13.7761 16 14 15.7761 14 15.5V11.5C14 11.2239 13.7761 11 13.5 11H6.5Z" fill="#424242"/></svg>';var VerdocsSign=function(){function e(e){var t=this;registerInstance(this,e);this.sdkError=createEvent(this,"sdkError");this.envelopeLoaded=createEvent(this,"envelopeLoaded");this.envelopeUpdated=createEvent(this,"envelopeUpdated");this.endpoint=new VerdocsEndpoint({sessionType:"signing"});this.envelopeId=null;this.roleId=null;this.inviteCode=null;this.headerTargetId=null;this.toolbarStyle="menu";this.recipient=null;this.hasSignature=false;this.nextButtonLabel="Start";this.nextSubmits=false;this.fatalErrorHeader="";this.fatalErrorMessage="";this.focusedField="";this.disclosures=DEFAULT_DISCLOSURES;this.fieldUpdateCounter=0;this.submitting=false;this.submitted=false;this.isDone=false;this.showDone=false;this.adoptingSignature=false;this.showLoadError=false;this.finishLater=false;this.showFinishLater=false;this.agreed=false;this.signatureId=null;this.initialId=null;this.documentsSingularPlural="document";this.authStep=null;this.authMethodStates={};this.pageNumber=1;this.kbaQuestions=null;this.showSpinner=false;this.declining=false;this.delegating=false;this.delegated=false;this.kbaChoices=[];this.showDownloadDialog=false;this.loading=true;this.envelope=null;this.zoomLevel="normal";this.signingProgressMode="start";this.polling=true;this.renderedPages={};this.pollingInterval=null;this.handleDoneDialogDismiss=function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.showDone=false;if(!!this.isDone)return[3,2];this.prepareForViewTransition();return[4,new Promise((function(e){return requestAnimationFrame((function(){return e()}))}))];case 1:e.sent();this.isDone=true;e.label=2;case 2:return[2]}}))}))}}e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n,o,r,s;var a=this;return __generator(this,(function(l){switch(l.label){case 0:this.updateZoomFromWindow();window.addEventListener("resize",(function(){return a.updateZoomFromWindow()}));if(!this.envelopeId){(e=this.sdkError)===null||e===void 0?void 0:e.emit(new SDKError("[SIGN] Missing required envelopId",500,""));return[2]}if(!this.roleId){(t=this.sdkError)===null||t===void 0?void 0:t.emit(new SDKError("[SIGN] Missing required roleId",500,""));return[2]}if(!this.inviteCode){(i=this.sdkError)===null||i===void 0?void 0:i.emit(new SDKError("[SIGN] Missing required inviteCode",500,""));return[2]}l.label=1;case 1:l.trys.push([1,3,,4]);return[4,this.initSigningSession()];case 2:l.sent();return[3,4];case 3:s=l.sent();console.log("[SIGN] Error with signing session",s);(n=this.sdkError)===null||n===void 0?void 0:n.emit(new SDKError(s.message,(o=s.response)===null||o===void 0?void 0:o.status,(r=s.response)===null||r===void 0?void 0:r.data));this.showLoadError=true;return[3,4];case 4:return[2]}}))}))};e.prototype.initSigningSession=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:console.log("[SIGN] Processing invite code for ".concat(this.envelopeId," / ").concat(this.roleId));return[4,startSigningSession(this.endpoint,this.envelopeId,this.roleId,this.inviteCode)];case 1:e=t.sent();this.processAuthResponse(e);return[2]}}))}))};e.prototype.retrySigningSession=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n;return __generator(this,(function(o){switch(o.label){case 0:this.showLoadError=false;this.loading=true;o.label=1;case 1:o.trys.push([1,3,,4]);return[4,this.initSigningSession()];case 2:o.sent();return[3,4];case 3:n=o.sent();console.log("[SIGN] Error with signing session",n);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new SDKError(n.message,(t=n.response)===null||t===void 0?void 0:t.status,(i=n.response)===null||i===void 0?void 0:i.data));this.showLoadError=true;this.loading=false;return[3,4];case 4:return[2]}}))}))};e.prototype.prepareForViewTransition=function(){var e,t;this.stopPolling();(e=this.observer)===null||e===void 0?void 0:e.disconnect();this.observer=null;(t=document.getElementById("air-datepicker-global-container"))===null||t===void 0?void 0:t.remove()};e.prototype.handleSubmitSuccess=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n,o;var r=this;return __generator(this,(function(s){switch(s.label){case 0:this.submitting=false;this.submitted=true;this.nextSubmits=false;this.signingProgressMode="completed";s.label=1;case 1:s.trys.push([1,3,,4]);return[4,getEnvelope(this.endpoint,this.envelopeId)];case 2:i=s.sent();this.envelope=i;Store.updateEnvelope(this.envelopeId,i);n=(e=i.recipients)===null||e===void 0?void 0:e.find((function(e){var t;return e.role_name===((t=r.recipient)===null||t===void 0?void 0:t.role_name)}));if(n){this.recipient=n}(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:i,event:"submitted"});return[3,4];case 3:o=s.sent();console.warn("[SIGN] Error refreshing envelope after submit",o);return[3,4];case 4:this.showDone=true;return[2]}}))}))};e.prototype.componentDidRender=function(){var e=this.headerTargetId?document.getElementById(this.headerTargetId):null;var t=document.getElementById("verdocs-sign-header");if(e&&t){console.log("[SIGN] Moving header");t.remove();e.append(t)}this.setupIntersectionObserver()};e.prototype.disconnectedCallback=function(){var e=this;var t,i,n;this.stopPolling();(t=this.observer)===null||t===void 0?void 0:t.disconnect();window.removeEventListener("resize",(function(){return e.updateZoomFromWindow()}));(i=document.getElementById(this.getOrgStyleOverridesId()))===null||i===void 0?void 0:i.remove();(n=document.getElementById(this.getBrandStyleOverridesId()))===null||n===void 0?void 0:n.remove()};e.prototype.updateZoomFromWindow=function(){var e=window.innerWidth;if(e<768){if(this.zoomLevel!=="zoom2")this.zoomLevel="zoom2"}else if(e<1024){if(this.zoomLevel!=="zoom1")this.zoomLevel="zoom1"}else{if(this.zoomLevel!=="normal")this.zoomLevel="normal"}};e.prototype.setupIntersectionObserver=function(){var e=this;var t=this.el.querySelectorAll("verdocs-envelope-document-page");if(t.length===0)return;if(this.observer){this.observer.disconnect()}var i=this.el.querySelector(".signed-document-container");var n={root:i,rootMargin:"-40% 0px -40% 0px",threshold:0};this.observer=new IntersectionObserver((function(t){t.forEach((function(t){if(t.isIntersecting){var i=t.target.id;var n=parseInt(i.replace("page-",""),10);if(!isNaN(n)&&e.pageNumber!==n){e.pageNumber=n}}}))}),n);t.forEach((function(t){return e.observer.observe(t)}))};e.prototype.getOrgStyleOverridesId=function(){return"verdocs-org-style-overrides-".concat(this.envelopeId)};e.prototype.getBrandStyleOverridesId=function(){return"verdocs-brand-style-overrides-".concat(this.envelopeId)};e.prototype.applyOrgStyleOverrides=function(){var e,t;var i=this.getOrgStyleOverridesId();var n=document.getElementById(i);var o=(t=(e=this.envelope)===null||e===void 0?void 0:e.organization)===null||t===void 0?void 0:t.style_overrides;if(typeof o==="string"){var r=n||document.createElement("style");r.id=i;r.textContent=o;if(!n){document.head.appendChild(r)}}else if(n){n.remove()}};e.prototype.applyBrandStyleOverrides=function(e){var t=this.getBrandStyleOverridesId();var i=document.getElementById(t);var n=e===null||e===void 0?void 0:e.style_overrides;if(typeof n==="string"&&n.length>0){var o=i||document.createElement("style");o.id=t;o.textContent=n;if(!i){document.head.appendChild(o)}}else if(i){i.remove()}};e.prototype.processAuthResponse=function(e){var t,i,n,o;var r=e.envelope,s=e.recipient,a=e.brand;(t=r.documents)===null||t===void 0?void 0:t.sort((function(e,t){return e.order!==t.order?e.order-t.order:e.created_at.localeCompare(t.created_at)}));var l=s.auth_step;this.recipient=s;this.envelope=r;this.disclosures=((n=(i=this.envelope)===null||i===void 0?void 0:i.organization)===null||n===void 0?void 0:n.disclaimer)||DEFAULT_DISCLOSURES;this.applyOrgStyleOverrides();this.applyBrandStyleOverrides(a);this.authStep=l;this.delegated=!!s.delegated_to;this.agreed=s.agreed;this.signatureId=null;this.initialId=null;this.submitted=s.status==="submitted";this.loading=false;this.isDone=this.submitted;this.showDone=this.submitted;Store.updateEnvelope(this.envelopeId,r);if(this.envelope.documents.length>0){this.documentsSingularPlural="document(s)"}this.authMethodStates=s.auth_method_states||{};this.kbaQuestions=s.kba_questions;if(Object.values(this.authMethodStates).includes("failed")){this.fatalErrorHeader="Recipient Verification Failed";this.fatalErrorMessage="We were unable to verify your identity. The sender has been notified.";this.isDone=true}if(this.envelope.status==="canceled"){this.fatalErrorHeader="Unable to Start Signing Session";this.fatalErrorMessage="This envelope has been canceled. The sender has been notified."}else if(s.status==="declined"){this.fatalErrorHeader="Declined";this.fatalErrorMessage="You have declined to sign this request. The sender has been notified."}else if(this.agreed){this.nextButtonLabel="Next"}this.checkRecipientFields();(o=this.envelopeLoaded)===null||o===void 0?void 0:o.emit({endpoint:this.endpoint,envelope:this.envelope})};e.prototype.handleClickAgree=function(){var e=this;this.submitting=true;console.log("[SIGN] Accepting disclosures",this.disclosures);var t=Intl.DateTimeFormat().resolvedOptions();envelopeRecipientAgree(this.endpoint,this.envelopeId,this.roleId,this.disclosures,{locale:t.locale,timezone:t.timeZone}).then((function(){var t;e.nextButtonLabel="Next";e.recipient.agreed=true;e.submitting=false;e.agreed=true;(t=e.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:e.endpoint,envelope:e.envelope,event:"agreed"})})).catch((function(t){var i,n,o;console.log("[SIGN] Unable to accept disclosures",t);VerdocsToast("Unable to accept disclosures, please try again later",{style:"error"});(i=e.sdkError)===null||i===void 0?void 0:i.emit(new SDKError(t.message,(n=t.response)===null||n===void 0?void 0:n.status,(o=t.response)===null||o===void 0?void 0:o.data));e.submitting=false}))};e.prototype.handlePageSelect=function(e){var t=parseInt(e.target.value);if(!isNaN(t)){this.pageNumber=t;var i=this.el.querySelector(".signed-document-container");var n=this.el.querySelector("#page-".concat(t));if(i&&n){var o=n.offsetTop-20;i.scrollTo({top:o,behavior:"smooth"})}}};e.prototype.handleOptionSelected=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(n){switch(e.detail.id){case"later":this.finishLater=true;this.showFinishLater=true;(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:this.envelope,event:"later"});break;case"delegate":this.delegating=true;break;case"decline":this.declining=true;break;case"print":window.print();(i=this.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:this.envelope,event:"printed"});break;case"download":this.showDownloadDialog=true;this.startPolling();break}return[2]}))}))};e.prototype.startPolling=function(){var e=this;this.stopPolling();var t=function(){var t,i,n,o,r,s;var a=((t=e.envelope)===null||t===void 0?void 0:t.status)==="complete"||!!((i=e.envelope)===null||i===void 0?void 0:i.signed);var l=(o=(n=e.envelope)===null||n===void 0?void 0:n.documents)===null||o===void 0?void 0:o.some((function(e){return e.type==="certificate"}));var c=(s=(r=e.envelope)===null||r===void 0?void 0:r.recipients)===null||s===void 0?void 0:s.every((function(e){return e.status==="submitted"}));if(a&&l)return false;if(!c)return false;return true};if(!t()){return}this.polling=true;this.pollingInterval=setInterval((function(){return __awaiter(e,void 0,void 0,(function(){var e,i;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,getEnvelope(this.endpoint,this.envelopeId)];case 1:e=n.sent();this.envelope=e;Store.updateEnvelope(this.envelopeId,e);this.checkRecipientFields();if(!t()){this.stopPolling()}return[3,3];case 2:i=n.sent();console.error("[SIGN] Polling error",i);this.stopPolling();return[3,3];case 3:return[2]}}))}))}),5e3)};e.prototype.stopPolling=function(){if(this.pollingInterval){clearInterval(this.pollingInterval);this.pollingInterval=null}this.polling=false};e.prototype.handleZoomIn=function(){if(this.zoomLevel==="normal"){this.zoomLevel="zoom1"}else if(this.zoomLevel==="zoom1"){this.zoomLevel="zoom2"}};e.prototype.handleZoomOut=function(){if(this.zoomLevel==="zoom1"){this.zoomLevel="normal"}else if(this.zoomLevel==="zoom2"){this.zoomLevel="zoom1"}};e.prototype.updateRecipientFieldValue=function(e,t){var i=this;console.log("[SIGN] updateRecipientFieldValue",e,t);this.getRecipientFields().forEach((function(n){if(n.name===e){n.value=t.value;n.settings=t.settings;updateDocumentFieldValue(n);i.fieldUpdateCounter++;i.markEnvelopeStarted();i.checkRecipientFields()}}))};e.prototype.getStartedKey=function(){var e;return"".concat(this.envelopeId,":").concat(((e=this.recipient)===null||e===void 0?void 0:e.role_name)||"")};e.prototype.markEnvelopeStarted=function(){var e=JSON.parse(localStorage.getItem("startedEnvelopes")||"[]");var t=this.getStartedKey();if(!e.includes(t)){e.push(t);while(e.length>10){e.shift()}localStorage.setItem("startedEnvelopes",JSON.stringify(e))}};e.prototype.saveFieldChange=function(e,t,i){var n=this;var o=this.getRecipientFields().find((function(t){return t.name===e}));if(o===null||o===void 0?void 0:o.readonly){return}console.log("[SIGN] saveFieldChange",e,{value:t,prepared:i});updateEnvelopeField(this.endpoint,this.envelopeId,this.roleId,e,t,i).then((function(t){return n.updateRecipientFieldValue(e,t)})).catch((function(e){var t,i,o,r,s,a;if(((t=e.response)===null||t===void 0?void 0:t.status)===401&&((o=(i=e.response)===null||i===void 0?void 0:i.data)===null||o===void 0?void 0:o.error)==="jwt expired"){console.log("[SIGN] Signing session expired");n.fatalErrorHeader="Signing Session Expired";n.fatalErrorMessage="Please reload your browser to continue."}else{console.log("[SIGN] Server error",e);VerdocsToast("Unable to save change, please try again later",{style:"error"})}(r=n.sdkError)===null||r===void 0?void 0:r.emit(new SDKError(e.message,(s=e.response)===null||s===void 0?void 0:s.status,(a=e.response)===null||a===void 0?void 0:a.data))}))};e.prototype.handleFieldChange=function(e,t){return __awaiter(this,void 0,void 0,(function(){var i,n,o,r,s,s,s,a,s,s,s,l,c;var d=this;return __generator(this,(function(u){switch(u.label){case 0:if(!t.target){return[2]}i=t.target,n=i.value,o=i.checked;r=e.type;switch(r){case"textarea":return[3,1];case"textbox":return[3,1];case"checkbox":return[3,2];case"radio":return[3,3];case"dropdown":return[3,4];case"initial":return[3,5];case"signature":return[3,14];case"date":return[3,23];case"timestamp":return[3,24]}return[3,25];case 1:return[2,this.saveFieldChange(e.name,n,false)];case 2:{return[2,this.saveFieldChange(e.name,String(t.target.checked),false)]}u.label=3;case 3:{return[2,this.saveFieldChange(e.name,String(t.target.checked),false)]}u.label=4;case 4:console.log("Saving dropdown",e.name,t.detail);return[2,this.saveFieldChange(e.name,t.detail,false)];case 5:if(t.detail===undefined){return[2]}if(!(t.detail===null))return[3,7];console.log("[SIGN] Clearing initial");return[4,updateEnvelopeField(this.endpoint,this.envelopeId,this.roleId,e.name,null,false)];case 6:s=u.sent();return[2,this.updateRecipientFieldValue(e.name,s)];case 7:if(!this.initialId)return[3,9];console.log("[SIGN] Reusing initial",this.initialId);return[4,updateEnvelopeField(this.endpoint,this.envelopeId,this.roleId,e.name,this.initialId,false)];case 8:s=u.sent();return[2,this.updateRecipientFieldValue(e.name,s)];case 9:if(!(typeof t.detail==="string"&&/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t.detail)))return[3,11];console.log("[SIGN] Reusing initial",t.detail);return[4,updateEnvelopeField(this.endpoint,this.envelopeId,this.roleId,e.name,t.detail,false)];case 10:s=u.sent();this.initialId=t.detail;return[2,this.updateRecipientFieldValue(e.name,s)];case 11:this.showSpinner=true;return[4,fetch(t.detail)];case 12:return[4,u.sent().blob()];case 13:a=u.sent();return[2,createInitials(this.endpoint,"initial",a).then((function(t){return __awaiter(d,void 0,void 0,(function(){var i;return __generator(this,(function(n){switch(n.label){case 0:return[4,updateEnvelopeField(this.endpoint,this.envelopeId,this.roleId,e.name,t.id,false)];case 1:i=n.sent();this.updateRecipientFieldValue(e.name,i);this.initialId=t.id;this.showSpinner=false;return[2]}}))}))})).catch((function(e){console.log("Error updating initials",e);VerdocsToast("Unable to save initials, please try again later",{style:"error"});d.showSpinner=false}))];case 14:if(t.detail===undefined){return[2]}if(!(t.detail===null))return[3,16];console.log("[SIGN] Clearing signature");return[4,updateEnvelopeField(this.endpoint,this.envelopeId,this.roleId,e.name,null,false)];case 15:s=u.sent();return[2,this.updateRecipientFieldValue(e.name,s)];case 16:if(!this.signatureId)return[3,18];console.log("[SIGN] Reusing signature",this.signatureId);return[4,updateEnvelopeField(this.endpoint,this.envelopeId,this.roleId,e.name,this.signatureId,false)];case 17:s=u.sent();return[2,this.updateRecipientFieldValue(e.name,s)];case 18:if(!(typeof t.detail==="string"&&/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t.detail)))return[3,20];console.log("[SIGN] Reusing signature",t.detail);return[4,updateEnvelopeField(this.endpoint,this.envelopeId,this.roleId,e.name,t.detail,false)];case 19:s=u.sent();this.signatureId=t.detail;return[2,this.updateRecipientFieldValue(e.name,s)];case 20:this.showSpinner=true;return[4,fetch(t.detail)];case 21:return[4,u.sent().blob()];case 22:l=u.sent();console.log("[SIGN] Creating new signature");return[2,createSignature(this.endpoint,"signature",l).then((function(t){return __awaiter(d,void 0,void 0,(function(){var i;return __generator(this,(function(n){switch(n.label){case 0:console.log("Signature update result",t);return[4,updateEnvelopeField(this.endpoint,this.envelopeId,this.roleId,e.name,t.id,false)];case 1:i=n.sent();this.updateRecipientFieldValue(e.name,i);this.signatureId=t.id;this.showSpinner=false;return[2]}}))}))})).catch((function(e){console.warn("[SIGN] Error updating signature",e);VerdocsToast("Unable to save signature, please try again later",{style:"error"});d.showSpinner=false}))];case 23:c=t.detail.formattedDate;if(c){return[2,this.saveFieldChange(e.name,c,false)]}return[3,26];case 24:console.log("[SIGN] Updating timestamp",{value:n,ts:t.target.getAttribute("timestamp")});return[3,26];case 25:console.log("[SIGN] Unhandled field update",{value:n,checked:o},e);return[3,26];case 26:return[2]}}))}))};e.prototype.getSortedFillableFields=function(){var e=this.getRecipientFields().filter((function(e){return e.type!=="timestamp"&&!e.readonly}));sortFields(e);return e};e.prototype.getSortedDisplayableFields=function(){var e=this.getRecipientFields().filter((function(e){return e.type!=="timestamp"}));sortFields(e);return e};e.prototype.handleNext=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n,o,r,s,a;var l=this;return __generator(this,(function(c){switch(c.label){case 0:if(!this.nextSubmits)return[3,6];if(this.submitted){return[2]}c.label=1;case 1:c.trys.push([1,4,,5]);(e=document.getElementById("air-datepicker-global-container"))===null||e===void 0?void 0:e.remove();this.submitting=true;t=Intl.DateTimeFormat().resolvedOptions();return[4,envelopeRecipientSubmit(this.endpoint,this.envelopeId,this.roleId,{locale:t.locale,timezone:t.timeZone})];case 2:i=c.sent();console.log("[SIGN] Submitted successfully",i);return[4,this.handleSubmitSuccess()];case 3:c.sent();return[3,5];case 4:n=c.sent();console.log("[SIGN] Error submitting",n);this.submitting=false;VerdocsToast("Unable to submit document, please try again.",{style:"error"});return[3,5];case 5:return[2];case 6:o=this.getSortedFillableFields().filter((function(e){return!l.isFieldActuallyFilled(e)}));r=this.getNextFieldFromList(o);if(r){s=getFieldId(r);a=document.getElementById(s);a===null||a===void 0?void 0:a.scrollIntoView({behavior:"smooth",block:"center",inline:"center"});a===null||a===void 0?void 0:a.focusField();this.focusedField=r.name}return[2]}}))}))};e.prototype.handleNextOptional=function(){var e=this;var t=this.getSortedFillableFields().filter((function(t){return!t.required&&!e.isFieldActuallyFilled(t)}));var i=this.getNextFieldFromList(t);if(i){var n=getFieldId(i);var o=document.getElementById(n);o===null||o===void 0?void 0:o.scrollIntoView({behavior:"smooth",block:"center",inline:"center"});o===null||o===void 0?void 0:o.focusField();this.focusedField=i.name}};e.prototype.getRecipientFields=function(){var e=this;var t;return((t=this.envelope)===null||t===void 0?void 0:t.fields.filter((function(t){return t.role_name===e.recipient.role_name})))||[]};e.prototype.getRequiredTotalCount=function(){return this.getSortedFillableFields().filter((function(e){return e.required})).length};e.prototype.getRequiredFilledCount=function(){var e=this;return this.getSortedFillableFields().filter((function(t){return t.required&&e.isFieldActuallyFilled(t)})).length};e.prototype.getOptionalUnfilledCount=function(){var e=this;return this.getSortedFillableFields().filter((function(t){return!t.required&&!e.isFieldActuallyFilled(t)})).length};e.prototype.checkRecipientFields=function(){var e=this;if(this.submitted||this.isDone){return}var t=this.getRecipientFields().filter((function(t){return!isFieldValid(t,e.getRecipientFields())}));if(t.length<1){this.nextButtonLabel="Finish";if(!this.nextSubmits){this.nextSubmits=true}}else{this.nextButtonLabel="Next";this.nextSubmits=false}this.updateAllFlags();var i=JSON.parse(localStorage.getItem("startedEnvelopes")||"[]");var n=i.includes(this.getStartedKey());if(this.nextSubmits){this.signingProgressMode="completed"}else if(n){this.signingProgressMode="signing"}else{this.signingProgressMode="start"}};e.prototype.isFieldActuallyFilled=function(e){if(e.type==="radio"&&e.group){var t=this.getRecipientFields().some((function(t){return t.group===e.group&&t.value==="true"}));if(t){return true}}return isFieldFilled(e,this.getRecipientFields())&&(e.type!=="dropdown"||!!e.value)&&(e.type!=="radio"||e.value==="true")&&(e.type!=="checkbox"||e.value==="true")};e.prototype.getNextRequiredField=function(){var e=this;var t=this.getSortedFillableFields().filter((function(t){return t.required&&!e.isFieldActuallyFilled(t)}));sortFields(t);if(t.length===0){var i=this.getSortedFillableFields().filter((function(t){return!e.isFieldActuallyFilled(t)}));sortFields(i);if(i.length>0){return this.getNextFieldFromList(i)}return null}return this.getNextFieldFromList(t)};e.prototype.getNextFieldFromList=function(e){var t=this;var i=e.findIndex((function(e){return e.name===t.focusedField}));var n=i+1;if(n>=e.length){n=0}return e[n]};e.prototype.handlePrev=function(){var e=this;var t;var i=this.getSortedFillableFields();var n=i.findIndex((function(t){return t.name===e.focusedField}));if(n>0){var o=i[n-1];var r=getFieldId(o);var s=document.getElementById(r);s===null||s===void 0?void 0:s.scrollIntoView({behavior:"smooth",block:"center"});(t=s===null||s===void 0?void 0:s.focusField)===null||t===void 0?void 0:t.call(s);this.focusedField=o.name}};e.prototype.updateAllFlags=function(){var e=this;Object.values(this.renderedPages).forEach((function(t){e.updateFlagsForPage(t)}))};e.prototype.updateFlagsForPage=function(e){var t=this;if(!e)return;var i=document.getElementById(e.containerId+"-controls");if(!i)return;var n=i.querySelectorAll(".verdocs-flag-instance");n.forEach((function(e){return e.remove()}));var o=this.getNextRequiredField();var r=this.getRecipientFields().find((function(e){return e.name===t.focusedField}));if(r&&!isFieldFilled(r,this.getRecipientFields())){o=r}if(o&&o.page===e.pageNumber&&o.document_id===e.documentId){var s="fill";var a="FILL";var l=false;switch(o.type){case"signature":a="SIGN";break;case"initial":a="INITIAL";break;case"checkbox":a="CHECK";break;case"radio":a="SELECT";break;case"date":case"dropdown":a="SELECT";break;case"attachment":a="ATTACH";break;case"payment":a="PAY";break}if(!o.required){l=true}renderDocumentFlag(e,o.y,o.height||defaultHeight(o.type),{variant:s,label:a,showSkip:l,onSkip:function(){t.handleNext()},onClick:function(){var e;var t=getFieldId(o);var i=document.getElementById(t);i===null||i===void 0?void 0:i.scrollIntoView({behavior:"smooth",block:"center"});(e=i===null||i===void 0?void 0:i.focusField)===null||e===void 0?void 0:e.call(i)}})}};e.prototype.attachFieldAttributes=function(e,t,i){var n=this;if(i.getAttribute("attached")==="1"){return}i.setAttribute("attached","1");i.addEventListener("input",(function(e){if(e.target.type==="radio"||e.target.type==="checkbox"){n.handleFieldChange(t,e).finally((function(){return n.checkRecipientFields()}))}else{n.checkRecipientFields()}}));i.addEventListener("attached",(function(i){return __awaiter(n,void 0,void 0,(function(){var n,o,r;return __generator(this,(function(s){switch(s.label){case 0:console.log("[SIGN] onAttached",i.detail,i.target.value);this.showSpinner=true;s.label=1;case 1:s.trys.push([1,3,,4]);return[4,uploadEnvelopeFieldAttachment(this.endpoint,this.envelopeId,this.roleId,t.name,i.detail)];case 2:n=s.sent();this.updateRecipientFieldValue(t.name,n);this.checkRecipientFields();o=renderDocumentField("envelope",t,e,{disabled:false,editable:false,draggable:false,done:this.isDone});this.attachFieldAttributes(e,t,o);this.showSpinner=false;return[3,4];case 3:r=s.sent();console.log("Error uploading attachment",r);VerdocsToast("Unable to upload attachment, please try again later",{style:"error"});this.showSpinner=false;return[3,4];case 4:return[2]}}))}))}));i.addEventListener("deleted",(function(i){return __awaiter(n,void 0,void 0,(function(){var n,o,r;return __generator(this,(function(s){switch(s.label){case 0:console.log("[SIGN] onDeleted",i.detail,i.target.value);this.showSpinner=true;s.label=1;case 1:s.trys.push([1,3,,4]);return[4,deleteEnvelopeFieldAttachment(this.endpoint,this.envelopeId,this.roleId,t.name)];case 2:n=s.sent();console.log("[SIGN] Deleted attachment",n);this.updateRecipientFieldValue(t.name,n);this.checkRecipientFields();o=renderDocumentField("envelope",t,e,{disabled:false,editable:false,draggable:false,done:this.isDone});this.attachFieldAttributes(e,t,o);this.showSpinner=false;return[3,4];case 3:r=s.sent();console.log("Error uploading attachment",r);VerdocsToast("Unable to upload attachment, please try again later",{style:"error"});this.showSpinner=false;return[3,4];case 4:return[2]}}))}))}));i.addEventListener("focusout",(function(e){if(t.type!=="dropdown"&&t.type!=="attachment"&&t.type!=="signature"&&t.type!=="initial"&&t.type!=="checkbox"&&t.type!=="radio"){n.handleFieldChange(t,e).finally((function(){return n.checkRecipientFields()}))}}));i.addEventListener("fieldChange",(function(e){n.handleFieldChange(t,e).finally((function(){return n.checkRecipientFields()}))}));i.addEventListener("adopt",(function(){n.focusedField=t.name;n.adoptingSignature=true}));i.setAttribute("templateid",this.envelope.template_id);i.setAttribute("fieldname",t.name);i.setAttribute("page",e.pageNumber);i.setAttribute("xScale",e.xScale);i.setAttribute("yScale",e.yScale);var o=formatFullName(this.recipient);i.setAttribute("initials",fullNameToInitials(o));i.setAttribute("name",o);if(this.signatureId){i.setAttribute("signatureid",this.signatureId)}if(this.initialId){i.setAttribute("initialid",this.initialId)}};e.prototype.handlePageRendered=function(e){var t=this;var i=e.detail;this.renderedPages["".concat(i.documentId,":").concat(i.pageNumber)]=i;var n=this.getSortedDisplayableFields();n.filter((function(e){return e&&e.document_id===i.documentId&&e.page===i.pageNumber})).forEach((function(e,n){var o=renderDocumentField("envelope",e,i,{disabled:false,editable:false,draggable:false,done:t.isDone},n);if(!o){return}if(Array.isArray(o)){o.map((function(n){return t.attachFieldAttributes(i,e,n)}))}else{t.attachFieldAttributes(i,e,o)}}));this.envelope.recipients.filter((function(e){return e.role_name!==t.recipient.role_name&&(e.status==="invited"||e.status==="opened"||e.status==="pending")})).forEach((function(){t.getRecipientFields().filter((function(e){return e.document_id===i.documentId&&e.page===i.pageNumber})).forEach((function(e){var n=renderDocumentField("envelope",e,i,{disabled:true,editable:false,draggable:false,done:t.isDone});if(!n){return}if(Array.isArray(n)){n.map((function(n){return t.attachFieldAttributes(i,e,n)}))}else{t.attachFieldAttributes(i,e,n)}}))}));this.checkRecipientFields();this.updateFlagsForPage(i)};e.prototype.handleAuthenticateSigner=function(e){var t=this;console.log("[SIGN] Submitting authentication step",e);verifySigner(this.endpoint,e).then((function(e){console.log("[SIGN] Verification successful",e);t.processAuthResponse(e)})).catch((function(e){var i,n,o,r,s,a;console.log("[SIGN] Error submitting authentication step",e);console.log((i=e.response)===null||i===void 0?void 0:i.data);if((r=(o=(n=e.response)===null||n===void 0?void 0:n.data)===null||o===void 0?void 0:o.error)===null||r===void 0?void 0:r.includes("failed")){t.fatalErrorHeader="Recipient Verification Failed";t.fatalErrorMessage="We were unable to verify your identity. The sender has been notified.";t.isDone=true}else{VerdocsToast(((a=(s=e.response)===null||s===void 0?void 0:s.data)===null||a===void 0?void 0:a.error)||"Unable to verify your identity. Please try again.",{style:"error"})}}))};e.prototype.handleOnDownload=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,n,o,r,s,a,l,c,d,u,h,f,v,p,g;return __generator(this,(function(m){switch(m.label){case 0:n=e.detail,o=n.action,r=n.documentId;console.log("[SIGN] Download action selected:",o,r);m.label=1;case 1:m.trys.push([1,14,,15]);s=o;switch(s){case DownloadAction.certificate:return[3,2];case DownloadAction.combined:return[3,6];case DownloadAction.document:return[3,8];case DownloadAction.zip:return[3,11]}return[3,13];case 2:a=this.envelope.documents.find((function(e){return e.type==="certificate"}));if(!a)return[3,4];return[4,getEnvelopeDocumentDownloadLink(this.endpoint,a.id)];case 3:l=m.sent();window.open(l,"_blank");return[3,5];case 4:VerdocsToast("Certificate not yet available.",{style:"info"});m.label=5;case 5:return[3,13];case 6:c=r||((t=this.envelope.documents.find((function(e){return e.type==="certificate"})))===null||t===void 0?void 0:t.id);return[4,getCombinedEnvelopeDocumentDownloadLink(this.endpoint,c)];case 7:d=m.sent();window.open(d,"_blank");return[3,13];case 8:u=r||((i=this.envelope.documents.find((function(e){return e.type==="attachment"})))===null||i===void 0?void 0:i.id);if(!u)return[3,10];return[4,getEnvelopeDocumentDownloadLink(this.endpoint,u)];case 9:h=m.sent();window.open(h,"_blank");m.label=10;case 10:return[3,13];case 11:return[4,getEnvelopesZip(this.endpoint,[this.envelopeId])];case 12:f=m.sent();v=window.URL.createObjectURL(f.data);p=document.createElement("a");p.href=v;p.download="".concat(this.envelope.name,".zip");document.body.appendChild(p);p.click();p.remove();window.URL.revokeObjectURL(v);return[3,13];case 13:return[3,15];case 14:g=m.sent();console.error("Download error",g);VerdocsToast("Unable to complete download request.",{style:"error"});return[3,15];case 15:return[2]}}))}))};e.prototype.render=function(){var e=this;var t;if(this.showLoadError){return h(Host,null,h("verdocs-ok-dialog",{heading:"Unable to Start Signing",message:"Sorry, your invite code is invalid or has expired. Please check your email for an updated invitation, or contact the sender.",buttonLabel:"OK",onNext:function(){e.retrySigningSession()}}))}if(!this.envelope){return h(Host,null,h("verdocs-loader",null))}if(this.fatalErrorMessage){return h(Host,{class:{agreed:this.agreed}},h("div",{class:"fatal-error"},h("div",{class:"message"},h("div",{class:"header"},this.fatalErrorHeader),h("p",null,this.fatalErrorMessage))))}if(this.delegated){return h(Host,{class:{agreed:false}},h("div",{class:"fatal-error"},h("div",{class:"message"},h("div",{class:"header"},"Delegated Signing Request"),h("p",null,"You have delegated signing to another recipient. You will not be able to sign this request again."))))}if(this.isDone){return h(Host,{class:{agreed:this.agreed}},h("verdocs-view",{endpoint:this.endpoint,envelopeId:this.envelopeId,onSdkError:function(t){var i;return(i=e.sdkError)===null||i===void 0?void 0:i.emit(t.detail)}}),this.showDone&&h("verdocs-ok-dialog",{heading:"You're Done!",message:"You can access the ".concat(this.documentsSingularPlural," at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached."),onNext:function(t){t.preventDefault();t.stopPropagation();e.handleDoneDialogDismiss()},onExit:function(){return e.handleDoneDialogDismiss()}}),this.submitting&&h("div",{class:"loading-indicator"},h("verdocs-loader",null)))}if(this.delegating){return h(Host,{class:"agreed"},h("div",{class:"document",style:{paddingTop:"15px"}},h("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"})),h("verdocs-delegate-dialog",{endpoint:this.endpoint,envelope:this.envelope,onExit:function(){return e.delegating=false},onNext:function(t){delegateRecipient(e.endpoint,e.envelopeId,e.roleId,t.detail).then((function(t){VerdocsToast("Delegation request submitted.",{style:"success"});console.log("[SIGN] Delegated successfully",t);e.delegated=true;e.delegating=false})).catch((function(e){console.log("[SIGN] Error delegating request",e);VerdocsToast("Unable to process delegation request. Please try again later.",{style:"error"})}))}}))}if(this.declining){return h(Host,{class:"agreed"},h("div",{class:"document",style:{paddingTop:"15px"}},h("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"})),h("verdocs-ok-dialog",{heading:"Decline Signing Request",message:"If you decline to sign this request, you will not be able to sign again in the future. The envelope sender will be notified.",buttonLabel:"OK",showCancel:true,onExit:function(){return e.declining=false},onNext:function(){envelopeRecipientDecline(e.endpoint,e.envelopeId,e.roleId).then((function(t){console.log("[SIGN] Decline result",t);e.declining=false;e.fatalErrorHeader="Declined";e.fatalErrorMessage="You have declined to sign this request. The sender has been notified."})).catch((function(e){console.warn("[SIGN] Error declining signing session",e);VerdocsToast("Unable to decline, please try again later",{style:"error"})}))}}))}if(!this.agreed){return h(Host,{class:"agreed"},h("div",{class:"document",style:{paddingTop:"15px"}},h("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"})),h("verdocs-disclosure-dialog",{disclosures:this.disclosures,delegator:this.recipient.delegator,onDelegate:function(){return e.delegating=true},onDecline:function(){return e.declining=true},onAccept:function(){return e.handleClickAgree()}}))}if(this.authStep==="passcode"){return h("verdocs-passcode-dialog",{endpoint:this.endpoint,onNext:function(t){return e.processAuthResponse(t.detail.response)}})}if(this.authStep==="sms"){return h("verdocs-otp-dialog",{endpoint:this.endpoint,method:"sms",onNext:function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){this.processAuthResponse(t.detail.response);return[2]}))}))}})}if(this.authStep==="email"){return h("verdocs-otp-dialog",{endpoint:this.endpoint,method:"email",onNext:function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){this.processAuthResponse(t.detail.response);return[2]}))}))}})}if(this.authStep==="kba"&&!this.authMethodStates.kba){return h(Host,{class:"kba"},h("div",{id:"verdocs-sign-header"},h("div",{class:"inner"},h("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),h("div",{class:"title"},this.envelope.name))),h("div",{class:"document",style:{paddingTop:"15px"}},h("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"})),h("div",{class:"cover"},h("div",{class:"kba"},h("verdocs-kba-dialog",{mode:"identity",helptitle:"Document requires identity verification",helptext:"Please complete your contact details to proceed.",recipient:this.recipient,onNext:function(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(i){e=t.detail;this.handleAuthenticateSigner({auth_method:"kba",first_name:e.first_name,last_name:e.last_name,address:e.address,city:e.city,state:e.state,zip:e.zip,dob:e.dob});return[2]}))}))}}))))}if(this.authStep==="kba"&&this.authMethodStates.kba==="questions"){var i=this.kbaChoices.length;var n=this.kbaQuestions[i];return h(Host,{class:"kba"},h("div",{id:"verdocs-sign-header"},h("div",{class:"inner"},h("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),h("div",{class:"title"},this.envelope.name))),h("div",{class:"document",style:{paddingTop:"15px"}},h("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"})),h("div",{class:"cover"},h("div",{class:"kba"},this.kbaChoices.length>=this.kbaQuestions.length?h("verdocs-spinner",null):h("verdocs-kba-dialog",{mode:"choice",helptitle:"Your identity requires additional verification",helptext:(n===null||n===void 0?void 0:n.prompt)||"Please select one of the options below.",choices:(n===null||n===void 0?void 0:n.answer)||["Skip Question"],step:i+1,steps:this.kbaQuestions.length,onNext:function(t){return __awaiter(e,void 0,void 0,(function(){var e,i;var n=this;return __generator(this,(function(o){e=t.detail;this.kbaChoices=__spreadArray(__spreadArray([],this.kbaChoices,true),[e],false);if(this.kbaChoices.length>=this.kbaQuestions.length){i=this.kbaQuestions.map((function(e,t){return{type:e.type,answer:n.kbaChoices[t]}}));console.log("Submitting KBA responses",this.kbaChoices,i);this.handleAuthenticateSigner({auth_method:"kba",responses:i})}return[2]}))}))}}))))}var o=[{id:"later",label:"Finish Later"},{id:"decline",label:"Decline to Sign"},{id:"print",label:"Print Without Signing"},{id:"download",label:"Download"}];var r=[{id:"print",label:"Print"},{id:"download",label:"Download"}];if(this.recipient.delegator){o.unshift({id:"delegate",label:"Delegate"})}var s=this.getRecipientFields().filter((function(t){return!isFieldValid(t,e.getRecipientFields())}));s.length>0?console.log("[SIGN] Invalid fields remaining",s.map((function(e){return e.name}))):console.log("[SIGN] All field valid");var a=this.envelope.documents.reduce((function(e,t){return e+t.pages}),0);var l=integerSequence(1,a).map((function(e){return{label:e.toString(),value:e.toString()}}));var c=0;return h(Host,null,this.toolbarStyle==="menu"&&h("div",{id:"verdocs-sign-header"},h("div",{class:"inner"},h("div",{class:"title"},this.envelope.name),h("div",{style:{flex:"1"}}),!this.finishLater&&!this.submitted&&function(){var t=e.getRequiredTotalCount()-e.getRequiredFilledCount();var i=e.getOptionalUnfilledCount();if(t>0){return h("span",{class:"remaining-count"},t," required field",t===1?"":"s"," left")}return h("span",{class:"remaining-count"},h("span",{class:"check-icon",innerHTML:CheckCircleIcon}),"All required fields complete",i>0&&h("div",{class:"review-optional"},h("span",{class:"separator"},"| "),h("span",{onClick:function(){return e.handleNextOptional()}},"Review ",i," optional")))}(),!this.finishLater&&!this.submitted&&h("verdocs-button",{size:"xsmall",label:this.nextButtonLabel==="Next"?"Next Required":this.nextButtonLabel,disabled:!this.agreed||this.submitting||this.submitted,onClick:function(){return e.handleNext()}}),h("div",{class:{"icon-button":true,minus:true,disabled:this.zoomLevel==="normal",magnify:true},innerHTML:ToolbarMinusIcon,onClick:function(){return e.handleZoomOut()}}),h("div",{class:{"icon-button":true,plus:true,disabled:this.zoomLevel==="zoom2",magnify:true},innerHTML:ToolbarPlusIcon,onClick:function(){return e.handleZoomIn()}}),h("verdocs-dropdown",{options:!this.isDone&&!this.finishLater&&!this.submitted?o:r,onOptionSelected:function(t){return e.handleOptionSelected(t)}}))),this.toolbarStyle==="controls"&&h("div",{class:"controls-toolbar"},h("div",{class:"left-controls"},h("div",{class:"title"},this.envelope.name)),h("div",{class:"center-controls"},h("span",{class:"label"},"Page"),h("div",{class:"select-wrapper"},h("verdocs-select-input",{options:l,value:this.pageNumber.toString(),onInput:function(t){return e.handlePageSelect(t)}})),h("span",{class:"count"},"of ",a)),h("div",{class:"right-controls"},!this.submitted&&h("verdocs-button",{class:"mobile-next-button",label:this.nextButtonLabel,size:"xsmall",disabled:!this.agreed||this.submitting,onClick:function(){return e.handleNext()}}),h("div",{class:{"icon-button":true,minus:true,disabled:this.zoomLevel==="normal"},innerHTML:ToolbarMinusIcon,onClick:function(){return e.handleZoomOut()}}),h("div",{class:{"icon-button":true,plus:true,disabled:this.zoomLevel==="zoom2"},innerHTML:ToolbarPlusIcon,onClick:function(){return e.handleZoomIn()}}),h("div",{class:"icon-button download",innerHTML:ToolbarDownloadIcon,onClick:function(){return e.handleOptionSelected({detail:{id:"download"}})}}),h("div",{class:"icon-button print",innerHTML:ToolbarPrintIcon,onClick:function(){return e.handleOptionSelected({detail:{id:"print"}})}}))),h("div",{class:"document signed-document-container zoom-".concat(this.zoomLevel)},(this.envelope.documents||[]).map((function(t){var i=integerSequence(1,t.pages);return h(Fragment,null,e.envelope.documents.length>1&&h("div",{class:"document-separator"},h("div",{innerHTML:DocumentPageIcon}),h("span",null,t.name)),i.map((function(i){var n;var o=((n=t.page_sizes)===null||n===void 0?void 0:n[i])||{width:612,height:792};c++;return h("verdocs-envelope-document-page",{id:"page-".concat(c),envelopeId:e.envelopeId,documentId:t.id,endpoint:e.endpoint,virtualWidth:o.width,virtualHeight:o.height,pageNumber:i,onPageRendered:function(t){return e.handlePageRendered(t)},type:"filled",layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})})))}))),this.showFinishLater&&h("verdocs-ok-dialog",{heading:"You've saved your document to finish later.",message:"To complete the ".concat(this.documentsSingularPlural,", use the link in the original email notification inviting you to review and finish the document."),onNext:function(){e.isDone=true;e.showFinishLater=false}}),this.showDone&&h("verdocs-ok-dialog",{heading:"You're Done!",message:"You can access the ".concat(this.documentsSingularPlural," at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached."),onNext:function(){e.handleDoneDialogDismiss()},onExit:function(){return e.handleDoneDialogDismiss()}}),this.adoptingSignature&&h("verdocs-adopt-signature-dialog",{name:formatFullName(this.recipient),nameLocked:!!((t=this.recipient)===null||t===void 0?void 0:t.name_locked),onNext:function(t){return __awaiter(e,void 0,void 0,(function(){var e,i,n,o,r,s,a,l,c;var d=this;return __generator(this,(function(u){switch(u.label){case 0:console.log("[SIGN] Adopting signature/initials block",t.detail);this.showSpinner=true;return[4,fetch(t.detail.signature)];case 1:return[4,u.sent().blob()];case 2:e=u.sent();return[4,fetch(t.detail.initials)];case 3:return[4,u.sent().blob()];case 4:i=u.sent();return[4,createSignature(this.endpoint,"signature",e)];case 5:n=u.sent();console.log("[SIGN] Created signature",n);this.signatureId=n.id;return[4,createInitials(this.endpoint,"initial",i)];case 6:o=u.sent();console.log("[SIGN] Created initials",o);this.initialId=o.id;this.showSpinner=false;this.adoptingSignature=false;this.markEnvelopeStarted();if(!this.focusedField)return[3,9];r=this.getRecipientFields().find((function(e){return e.name===d.focusedField}));if(!r)return[3,8];s=r.type==="signature"?this.signatureId:r.type==="initial"?this.initialId:null;if(!s)return[3,8];return[4,updateEnvelopeField(this.endpoint,this.envelopeId,this.roleId,r.name,s,false)];case 7:a=u.sent();this.updateRecipientFieldValue(r.name,a);u.label=8;case 8:this.focusedField="";u.label=9;case 9:l=this.el.querySelectorAll("verdocs-field-signature");l.forEach((function(e){return e.setAttribute("signatureid",d.signatureId)}));c=this.el.querySelectorAll("verdocs-field-initial");c.forEach((function(e){return e.setAttribute("initialid",d.initialId)}));this.checkRecipientFields();return[2]}}))}))},onExit:function(){return e.adoptingSignature=false}}),(this.submitting||this.showSpinner)&&h("verdocs-portal",null,h("div",{class:"spinner-overlay"},h("verdocs-spinner",null))),this.showDownloadDialog&&h("verdocs-download-dialog",{signed:this.envelope.signed,polling:this.polling,documents:this.envelope.documents,onExit:function(){e.showDownloadDialog=false;e.stopPolling()},onDownload:function(t){return e.handleOnDownload(t)}}),!this.loading&&!this.isDone&&!this.submitted&&h("verdocs-sign-footer",{endpoint:this.endpoint,envelopeId:this.envelopeId,isDone:this.isDone,onAskQuestion:function(t){askQuestion(e.endpoint,e.envelopeId,e.roleId,{question:t.detail.question}).then((function(){return VerdocsToast("Your question has been sent.",{style:"success"})})).catch((function(e){console.log("Error asking question",e);VerdocsToast("Unable to send question, please try again later.",{style:"error"})}))},onDecline:function(){return e.declining=true},onFinishLater:function(){return e.showFinishLater=true}}))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();VerdocsSign.style=verdocsSignCss();export{VerdocsSign as verdocs_sign};
1
+ var __awaiter=this&&this.__awaiter||function(e,t,i,n){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n["throw"](e))}catch(e){r(e)}}function l(e){e.done?i(e.value):o(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=a(0),s["throw"]=a(1),s["return"]=a(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return l([e,t])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(i=0)),i)try{if(n=1,o&&(r=a[0]&2?o["return"]:a[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;if(o=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;o=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){i.label=a[1];break}if(a[0]===6&&i.label<r[1]){i.label=r[1];r=a;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(a);break}if(r[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];o=0}finally{n=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,i){if(i||arguments.length===2)for(var n=0,o=t.length,r;n<o;n++){if(r||!(n in t)){if(!r)r=Array.prototype.slice.call(t,0,n);r[n]=t[n]}}return e.concat(r||Array.prototype.slice.call(t))};import{r as registerInstance,c as createEvent,h,H as Host,F as Fragment,g as getElement}from"./index-CjTHbolG.js";import{VerdocsEndpoint,DEFAULT_DISCLOSURES,startSigningSession,getEnvelope,envelopeRecipientAgree,updateEnvelopeField,createSignature,createInitials,sortFields,envelopeRecipientSubmit,isFieldValid,isFieldFilled,uploadEnvelopeFieldAttachment,deleteEnvelopeFieldAttachment,formatFullName,fullNameToInitials,verifySigner,getEnvelopesZip,getEnvelopeDocumentDownloadLink,getCombinedEnvelopeDocumentDownloadLink,delegateRecipient,envelopeRecipientDecline,integerSequence,askQuestion}from"@verdocs/js-sdk";import{u as updateDocumentFieldValue,g as getFieldId,r as renderDocumentFlag,a as renderDocumentField,d as defaultHeight}from"./utils-Bh3zb1Xs.js";import{D as DownloadAction}from"./Types-CIxfEdV7.js";import{D as DocumentPageIcon,C as CheckCircleIcon}from"./Icons-DobS6Y7w.js";import{V as VerdocsToast}from"./Toast-D97GxsI-.js";import{S as SDKError}from"./errors-C1sRVZWv.js";import{S as Store}from"./Datastore-C7hFgM52.js";import"./index-BglCURB-.js";var verdocsSignCss=function(){return'verdocs-sign{display:-ms-flexbox;display:flex;overflow:hidden;min-height:700px;position:relative;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#f5f5f5;font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif)}verdocs-sign div{display:block;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign input{vertical-align:top}verdocs-sign>.document{-ms-flex:1;flex:1;width:100%;height:100%;-ms-flex-item-align:center;align-self:center;display:-ms-flexbox;display:flex;padding:15px;padding-right:140px;row-gap:15px;max-width:1200px;min-height:200px;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-sign>.document .inner{width:100%;max-width:1028px}verdocs-sign>.document .document-separator{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:10px;padding:12px 20px;width:100%;max-width:1028px;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#33364b;color:white;border-radius:6px;font-size:16px;font-weight:500;margin-top:20px;-webkit-box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);box-shadow:0 2px 4px rgba(0, 0, 0, 0.1)}verdocs-sign>.document .document-separator svg{-ms-flex-negative:0;flex-shrink:0}verdocs-sign>.document .document-separator:first-child{margin-top:0}verdocs-sign .signed-document-container{width:64%;margin-left:260px;-webkit-transition:all 0.3s ease;transition:all 0.3s ease}verdocs-sign .signed-document-container.zoom-normal{width:64%;margin-left:260px}verdocs-sign .signed-document-container.zoom-zoom1{width:80%;margin-left:200px}verdocs-sign .signed-document-container.zoom-zoom2{width:100%;margin-left:150px}verdocs-sign .signed-document-container.zoom-zoom2 .verdocs-flag-instance{opacity:0;pointer-events:none}@media (max-width: 768px){verdocs-sign verdocs-sign-footer{padding:0 10px}verdocs-sign verdocs-sign-footer .buttons{gap:8px}verdocs-sign verdocs-sign-footer .buttons button{font-size:10px}verdocs-sign .signed-document-container{width:100%;margin-left:0}verdocs-sign .signed-document-container.zoom-normal,verdocs-sign .signed-document-container.zoom-zoom1,verdocs-sign .signed-document-container.zoom-zoom2{width:100%;margin-left:0}verdocs-sign>.document{padding-right:15px}verdocs-sign .verdocs-flag-instance{display:none !important}verdocs-sign .controls-toolbar .center-controls{display:none}verdocs-sign .controls-toolbar .right-controls .mobile-next-button{display:block;margin-right:10px}verdocs-sign .controls-toolbar .right-controls .minus,verdocs-sign .controls-toolbar .right-controls .plus{display:none}}verdocs-sign .cover{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:5000;position:absolute;padding-top:100px;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;background:rgba(0, 0, 0, 0.5)}verdocs-sign verdocs-ok-dialog .background-overlay{-ms-flex-align:start;align-items:flex-start;padding-top:100px}verdocs-sign .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-sign .fatal-error{position:absolute;z-index:100;top:0;left:0;right:0;bottom:0;background-color:#4a4a4a;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-sign .fatal-error .placeholder{position:absolute;opacity:0.1;z-index:-1;top:0;left:0;right:0;bottom:0;width:612px;height:792px;-webkit-box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294);box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294);margin-top:15px}verdocs-sign .fatal-error .message{max-width:360px;width:50%;font-size:16px;background:white;-webkit-box-shadow:3px 3px 9px -1px rgba(0, 0, 0, 0.2470588235);box-shadow:3px 3px 9px -1px rgba(0, 0, 0, 0.2470588235)}verdocs-sign .fatal-error .header{color:white;font-size:18px;font-weight:500;padding:5px 10px;margin:0 0 10px 0;background:#4c56cb}verdocs-sign .fatal-error p{margin:1rem;font-size:14px;font-weight:400;padding:0 10px}@media print{verdocs-sign .header,.controls-toolbar,.verdocs-flag-instance,verdocs-signing-progress{display:none !important}verdocs-sign{min-height:auto;background-color:white}verdocs-sign>.document{overflow:visible;height:auto;display:block;padding:0;margin:0}verdocs-sign>.document .document-separator{display:none}verdocs-sign .signed-document-container{width:100%;margin:0}}#verdocs-sign-header{color:#fff;width:100%;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 46px;flex:0 0 46px;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)}#verdocs-sign-header .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 12px;max-width:1200px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-column-gap:10px;-moz-column-gap:10px;column-gap:10px}#verdocs-sign-header .logo{width:80px;display:none;margin:-6px 0 0 0}#verdocs-sign-header .title{font-size:18px;font-weight:500;overflow:hidden;white-space:nowrap;padding:0 10px 0 0;text-overflow:ellipsis}@media (max-width: 670px){#verdocs-sign-header .title{font-size:14px}}#verdocs-sign-header .remaining-count{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;gap:8px;color:#ffffff;font-size:13px;font-weight:400;white-space:nowrap}#verdocs-sign-header .remaining-count .check-icon{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}#verdocs-sign-header .remaining-count .check-icon svg{width:16px;height:16px;fill:#55bc81}#verdocs-sign-header .remaining-count .separator{opacity:0.5;margin:0 2px}#verdocs-sign-header .remaining-count .review-optional{cursor:pointer;text-decoration:underline}#verdocs-sign-header .remaining-count .review-optional:hover{color:#54d68c}@media (max-width: 670px){#verdocs-sign-header .remaining-count .review-optional{display:none}}@media (max-width: 670px){#verdocs-sign-header .remaining-count{font-size:12px}}#verdocs-sign-header .icon-button{width:20px;height:32px;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:4px;-webkit-transition:background-color 0.2s;transition:background-color 0.2s}#verdocs-sign-header .icon-button svg path{fill:#ffffff}#verdocs-sign-header .icon-button:hover{background-color:rgba(255, 255, 255, 0.1)}#verdocs-sign-header .icon-button.disabled{opacity:0.35;pointer-events:none}#verdocs-sign-header .icon-button+.icon-button{margin-left:-6px}@media (max-width: 670px){#verdocs-sign-header .icon-button.magnify{display:none}}.spinner-overlay{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1000;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background:rgba(0, 0, 0, 0.4980392157);-ms-flex-pack:center;justify-content:center}.controls-toolbar{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;height:54px;padding:0 12px 0 24px;background-color:#ffffff;border-bottom:1px solid #e0e0e0;-webkit-box-shadow:none;box-shadow:none;font-family:"Inter", sans-serif;color:#424242;z-index:1000}.controls-toolbar .left-controls{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.controls-toolbar .left-controls .title{font-weight:500;font-size:16px;color:#242424;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.controls-toolbar .center-controls{-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;gap:10px;font-size:14px;display:none}.controls-toolbar .center-controls .label{color:#000000;font-weight:300}.controls-toolbar .center-controls .select-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.controls-toolbar .center-controls .select-wrapper verdocs-select-input{margin:0}.controls-toolbar .center-controls .select-wrapper verdocs-select-input .input-label{display:none}.controls-toolbar .center-controls .select-wrapper verdocs-select-input .input-element{background:transparent;border:1px solid #e0e0e0;height:32px;padding:2px 8px;min-width:60px;text-align:center;font-family:inherit;color:#424242}.controls-toolbar .center-controls .select-wrapper verdocs-select-input .input-element:focus{border-color:var(--verdocs-primary-color, #55bc81)}.controls-toolbar .center-controls .count{color:#000000;font-weight:300}.controls-toolbar .right-controls{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}.controls-toolbar .right-controls .mobile-next-button{display:none}.controls-toolbar .right-controls .icon-button{width:32px;height:32px;display:-ms-flexbox;display:flex;color:#424242;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-transition:background-color 0.2s;transition:background-color 0.2s}.controls-toolbar .right-controls .icon-button:hover{background-color:#f5f5f5}.controls-toolbar .right-controls .icon-button.disabled{opacity:0.3;pointer-events:none}.controls-toolbar .right-controls .icon-button svg{display:block;width:20px;height:20px}'};var ToolbarMinusIcon='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11ZM14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z" fill="#424242" /></svg>';var ToolbarPlusIcon='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5ZM8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z" fill="#424242" /></svg>';var ToolbarDownloadIcon='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.5 16.9988C15.7761 16.9988 16 17.2226 16 17.4988C16 17.7442 15.8231 17.9484 15.5899 17.9907L15.5 17.9988H4.5C4.22386 17.9988 4 17.7749 4 17.4988C4 17.2533 4.17688 17.0492 4.41012 17.0068L4.5 16.9988H15.5ZM10.0001 2.00098C10.2456 2.00098 10.4497 2.17798 10.492 2.41124L10.5 2.50112L10.496 14.295L14.1414 10.6466C14.3148 10.4729 14.5842 10.4534 14.7792 10.5882L14.8485 10.646C15.0222 10.8194 15.0418 11.0888 14.907 11.2838L14.8492 11.3531L10.3574 15.8531C10.285 15.9257 10.1957 15.9714 10.1021 15.9901L9.99608 15.9999C9.83511 15.9999 9.69192 15.9237 9.60051 15.8056L5.14386 11.3537C4.94846 11.1586 4.94823 10.842 5.14336 10.6466C5.3168 10.4729 5.58621 10.4534 5.78117 10.5883L5.85046 10.6461L9.496 14.287L9.5 2.50083C9.50008 2.22469 9.724 2.00098 10.0001 2.00098Z" fill="#424242"/></svg>';var ToolbarPrintIcon='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5 4.5C5 3.67157 5.67157 3 6.5 3H13.5C14.3284 3 15 3.67157 15 4.5V5H15.5C16.8807 5 18 6.11929 18 7.5V12.5C18 13.3284 17.3284 14 16.5 14H15V15.5C15 16.3284 14.3284 17 13.5 17H6.5C5.67157 17 5 16.3284 5 15.5V14H3.5C2.67157 14 2 13.3284 2 12.5V7.5C2 6.11929 3.11929 5 4.5 5H5V4.5ZM6 5H14V4.5C14 4.22386 13.7761 4 13.5 4H6.5C6.22386 4 6 4.22386 6 4.5V5ZM5 13V11.5C5 10.6716 5.67157 10 6.5 10H13.5C14.3284 10 15 10.6716 15 11.5V13H16.5C16.7761 13 17 12.7761 17 12.5V7.5C17 6.67157 16.3284 6 15.5 6H4.5C3.67157 6 3 6.67157 3 7.5V12.5C3 12.7761 3.22386 13 3.5 13H5ZM6.5 11C6.22386 11 6 11.2239 6 11.5V15.5C6 15.7761 6.22386 16 6.5 16H13.5C13.7761 16 14 15.7761 14 15.5V11.5C14 11.2239 13.7761 11 13.5 11H6.5Z" fill="#424242"/></svg>';var VerdocsSign=function(){function e(e){var t=this;registerInstance(this,e);this.sdkError=createEvent(this,"sdkError");this.envelopeLoaded=createEvent(this,"envelopeLoaded");this.envelopeUpdated=createEvent(this,"envelopeUpdated");this.endpoint=new VerdocsEndpoint({sessionType:"signing"});this.envelopeId=null;this.roleId=null;this.inviteCode=null;this.headerTargetId=null;this.toolbarStyle="menu";this.recipient=null;this.hasSignature=false;this.nextButtonLabel="Start";this.nextSubmits=false;this.fatalErrorHeader="";this.fatalErrorMessage="";this.focusedField="";this.disclosures=DEFAULT_DISCLOSURES;this.fieldUpdateCounter=0;this.submitting=false;this.submitted=false;this.isDone=false;this.showDone=false;this.adoptingSignature=false;this.showLoadError=false;this.finishLater=false;this.showFinishLater=false;this.agreed=false;this.signatureId=null;this.initialId=null;this.documentsSingularPlural="document";this.authStep=null;this.authMethodStates={};this.pageNumber=1;this.kbaQuestions=null;this.showSpinner=false;this.declining=false;this.delegating=false;this.delegated=false;this.kbaChoices=[];this.showDownloadDialog=false;this.loading=true;this.envelope=null;this.zoomLevel="normal";this.signingProgressMode="start";this.polling=true;this.renderedPages={};this.pollingInterval=null;this.handleDoneDialogDismiss=function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.showDone=false;if(!!this.isDone)return[3,2];this.prepareForViewTransition();return[4,new Promise((function(e){return requestAnimationFrame((function(){return e()}))}))];case 1:e.sent();this.isDone=true;e.label=2;case 2:return[2]}}))}))}}e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n,o,r,s;var a=this;return __generator(this,(function(l){switch(l.label){case 0:this.updateZoomFromWindow();window.addEventListener("resize",(function(){return a.updateZoomFromWindow()}));if(!this.envelopeId){(e=this.sdkError)===null||e===void 0?void 0:e.emit(new SDKError("[SIGN] Missing required envelopId",500,""));return[2]}if(!this.roleId){(t=this.sdkError)===null||t===void 0?void 0:t.emit(new SDKError("[SIGN] Missing required roleId",500,""));return[2]}if(!this.inviteCode){(i=this.sdkError)===null||i===void 0?void 0:i.emit(new SDKError("[SIGN] Missing required inviteCode",500,""));return[2]}l.label=1;case 1:l.trys.push([1,3,,4]);return[4,this.initSigningSession()];case 2:l.sent();return[3,4];case 3:s=l.sent();console.log("[SIGN] Error with signing session",s);(n=this.sdkError)===null||n===void 0?void 0:n.emit(new SDKError(s.message,(o=s.response)===null||o===void 0?void 0:o.status,(r=s.response)===null||r===void 0?void 0:r.data));this.showLoadError=true;return[3,4];case 4:return[2]}}))}))};e.prototype.initSigningSession=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:console.log("[SIGN] Processing invite code for ".concat(this.envelopeId," / ").concat(this.roleId));return[4,startSigningSession(this.endpoint,this.envelopeId,this.roleId,this.inviteCode)];case 1:e=t.sent();this.processAuthResponse(e);return[2]}}))}))};e.prototype.retrySigningSession=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n;return __generator(this,(function(o){switch(o.label){case 0:this.showLoadError=false;this.loading=true;o.label=1;case 1:o.trys.push([1,3,,4]);return[4,this.initSigningSession()];case 2:o.sent();return[3,4];case 3:n=o.sent();console.log("[SIGN] Error with signing session",n);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new SDKError(n.message,(t=n.response)===null||t===void 0?void 0:t.status,(i=n.response)===null||i===void 0?void 0:i.data));this.showLoadError=true;this.loading=false;return[3,4];case 4:return[2]}}))}))};e.prototype.prepareForViewTransition=function(){var e,t;this.stopPolling();(e=this.observer)===null||e===void 0?void 0:e.disconnect();this.observer=null;(t=document.getElementById("air-datepicker-global-container"))===null||t===void 0?void 0:t.remove()};e.prototype.handleSubmitSuccess=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n,o;var r=this;return __generator(this,(function(s){switch(s.label){case 0:this.submitting=false;this.submitted=true;this.nextSubmits=false;this.signingProgressMode="completed";s.label=1;case 1:s.trys.push([1,3,,4]);return[4,getEnvelope(this.endpoint,this.envelopeId)];case 2:i=s.sent();this.envelope=i;Store.updateEnvelope(this.envelopeId,i);n=(e=i.recipients)===null||e===void 0?void 0:e.find((function(e){var t;return e.role_name===((t=r.recipient)===null||t===void 0?void 0:t.role_name)}));if(n){this.recipient=n}(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:i,event:"submitted"});return[3,4];case 3:o=s.sent();console.warn("[SIGN] Error refreshing envelope after submit",o);return[3,4];case 4:this.showDone=true;return[2]}}))}))};e.prototype.componentDidRender=function(){var e=this.headerTargetId?document.getElementById(this.headerTargetId):null;var t=document.getElementById("verdocs-sign-header");if(e&&t){console.log("[SIGN] Moving header");t.remove();e.append(t)}this.setupIntersectionObserver()};e.prototype.disconnectedCallback=function(){var e=this;var t,i,n;this.stopPolling();(t=this.observer)===null||t===void 0?void 0:t.disconnect();window.removeEventListener("resize",(function(){return e.updateZoomFromWindow()}));(i=document.getElementById(this.getOrgStyleOverridesId()))===null||i===void 0?void 0:i.remove();(n=document.getElementById(this.getBrandStyleOverridesId()))===null||n===void 0?void 0:n.remove()};e.prototype.updateZoomFromWindow=function(){var e=window.innerWidth;if(e<768){if(this.zoomLevel!=="zoom2")this.zoomLevel="zoom2"}else if(e<1024){if(this.zoomLevel!=="zoom1")this.zoomLevel="zoom1"}else{if(this.zoomLevel!=="normal")this.zoomLevel="normal"}};e.prototype.setupIntersectionObserver=function(){var e=this;var t=this.el.querySelectorAll("verdocs-envelope-document-page");if(t.length===0)return;if(this.observer){this.observer.disconnect()}var i=this.el.querySelector(".signed-document-container");var n={root:i,rootMargin:"-40% 0px -40% 0px",threshold:0};this.observer=new IntersectionObserver((function(t){t.forEach((function(t){if(t.isIntersecting){var i=t.target.id;var n=parseInt(i.replace("page-",""),10);if(!isNaN(n)&&e.pageNumber!==n){e.pageNumber=n}}}))}),n);t.forEach((function(t){return e.observer.observe(t)}))};e.prototype.getOrgStyleOverridesId=function(){return"verdocs-org-style-overrides-".concat(this.envelopeId)};e.prototype.getBrandStyleOverridesId=function(){return"verdocs-brand-style-overrides-".concat(this.envelopeId)};e.prototype.applyOrgStyleOverrides=function(){var e,t;var i=this.getOrgStyleOverridesId();var n=document.getElementById(i);var o=(t=(e=this.envelope)===null||e===void 0?void 0:e.organization)===null||t===void 0?void 0:t.style_overrides;if(typeof o==="string"){var r=n||document.createElement("style");r.id=i;r.textContent=o;if(!n){document.head.appendChild(r)}}else if(n){n.remove()}};e.prototype.synthesizeBrandCss=function(e){var t=typeof e.primary_color==="string"?e.primary_color.trim():"";if(!/^#[0-9a-f]{6}$/i.test(t)){return""}var i=function(e,t){var i=function(i){return Math.round(Math.max(0,Math.min(255,parseInt(e.slice(i,i+2),16)*(1+t))))};return"#".concat([1,3,5].map((function(e){return i(e).toString(16).padStart(2,"0")})).join(""))};var n=typeof e.secondary_color==="string"&&/^#[0-9a-f]{6}$/i.test(e.secondary_color.trim())?e.secondary_color.trim():t;return[":root, .verdocs-custom-theme {"," --verdocs-primary-color: ".concat(t,";")," --verdocs-primary-color-hover: ".concat(i(t,-.14),";")," --verdocs-link-color: ".concat(n,";")," --verdocs-checkbox-color: ".concat(t,";"),"}"].join("\n")};e.prototype.applyBrandStyleOverrides=function(e){var t=this.getBrandStyleOverridesId();var i=document.getElementById(t);var n=e?typeof e.style_overrides==="string"&&e.style_overrides.trim()?e.style_overrides:this.synthesizeBrandCss(e):"";if(typeof n==="string"&&n.length>0){var o=i||document.createElement("style");o.id=t;o.textContent=n;if(!i){document.head.appendChild(o)}}else if(i){i.remove()}};e.prototype.processAuthResponse=function(e){var t,i,n,o,r;var s=e.envelope,a=e.recipient,l=e.brand;(t=s.documents)===null||t===void 0?void 0:t.sort((function(e,t){return e.order!==t.order?e.order-t.order:e.created_at.localeCompare(t.created_at)}));var c=a.auth_step;this.recipient=a;this.envelope=s;this.disclosures=(l===null||l===void 0?void 0:l.disclaimer)||((n=(i=this.envelope)===null||i===void 0?void 0:i.organization)===null||n===void 0?void 0:n.disclaimer)||DEFAULT_DISCLOSURES;if(l){(o=document.getElementById(this.getOrgStyleOverridesId()))===null||o===void 0?void 0:o.remove();this.applyBrandStyleOverrides(l)}else{this.applyOrgStyleOverrides();this.applyBrandStyleOverrides(null)}this.authStep=c;this.delegated=!!a.delegated_to;this.agreed=a.agreed;this.signatureId=null;this.initialId=null;this.submitted=a.status==="submitted";this.loading=false;this.isDone=this.submitted;this.showDone=this.submitted;Store.updateEnvelope(this.envelopeId,s);if(this.envelope.documents.length>0){this.documentsSingularPlural="document(s)"}this.authMethodStates=a.auth_method_states||{};this.kbaQuestions=a.kba_questions;if(Object.values(this.authMethodStates).includes("failed")){this.fatalErrorHeader="Recipient Verification Failed";this.fatalErrorMessage="We were unable to verify your identity. The sender has been notified.";this.isDone=true}if(this.envelope.status==="canceled"){this.fatalErrorHeader="Unable to Start Signing Session";this.fatalErrorMessage="This envelope has been canceled. The sender has been notified."}else if(a.status==="declined"){this.fatalErrorHeader="Declined";this.fatalErrorMessage="You have declined to sign this request. The sender has been notified."}else if(this.agreed){this.nextButtonLabel="Next"}this.checkRecipientFields();(r=this.envelopeLoaded)===null||r===void 0?void 0:r.emit({endpoint:this.endpoint,envelope:this.envelope})};e.prototype.handleClickAgree=function(){var e=this;this.submitting=true;console.log("[SIGN] Accepting disclosures",this.disclosures);var t=Intl.DateTimeFormat().resolvedOptions();envelopeRecipientAgree(this.endpoint,this.envelopeId,this.roleId,this.disclosures,{locale:t.locale,timezone:t.timeZone}).then((function(){var t;e.nextButtonLabel="Next";e.recipient.agreed=true;e.submitting=false;e.agreed=true;(t=e.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:e.endpoint,envelope:e.envelope,event:"agreed"})})).catch((function(t){var i,n,o;console.log("[SIGN] Unable to accept disclosures",t);VerdocsToast("Unable to accept disclosures, please try again later",{style:"error"});(i=e.sdkError)===null||i===void 0?void 0:i.emit(new SDKError(t.message,(n=t.response)===null||n===void 0?void 0:n.status,(o=t.response)===null||o===void 0?void 0:o.data));e.submitting=false}))};e.prototype.handlePageSelect=function(e){var t=parseInt(e.target.value);if(!isNaN(t)){this.pageNumber=t;var i=this.el.querySelector(".signed-document-container");var n=this.el.querySelector("#page-".concat(t));if(i&&n){var o=n.offsetTop-20;i.scrollTo({top:o,behavior:"smooth"})}}};e.prototype.handleOptionSelected=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(n){switch(e.detail.id){case"later":this.finishLater=true;this.showFinishLater=true;(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:this.envelope,event:"later"});break;case"delegate":this.delegating=true;break;case"decline":this.declining=true;break;case"print":window.print();(i=this.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:this.envelope,event:"printed"});break;case"download":this.showDownloadDialog=true;this.startPolling();break}return[2]}))}))};e.prototype.startPolling=function(){var e=this;this.stopPolling();var t=function(){var t,i,n,o,r,s;var a=((t=e.envelope)===null||t===void 0?void 0:t.status)==="complete"||!!((i=e.envelope)===null||i===void 0?void 0:i.signed);var l=(o=(n=e.envelope)===null||n===void 0?void 0:n.documents)===null||o===void 0?void 0:o.some((function(e){return e.type==="certificate"}));var c=(s=(r=e.envelope)===null||r===void 0?void 0:r.recipients)===null||s===void 0?void 0:s.every((function(e){return e.status==="submitted"}));if(a&&l)return false;if(!c)return false;return true};if(!t()){return}this.polling=true;this.pollingInterval=setInterval((function(){return __awaiter(e,void 0,void 0,(function(){var e,i;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,getEnvelope(this.endpoint,this.envelopeId)];case 1:e=n.sent();this.envelope=e;Store.updateEnvelope(this.envelopeId,e);this.checkRecipientFields();if(!t()){this.stopPolling()}return[3,3];case 2:i=n.sent();console.error("[SIGN] Polling error",i);this.stopPolling();return[3,3];case 3:return[2]}}))}))}),5e3)};e.prototype.stopPolling=function(){if(this.pollingInterval){clearInterval(this.pollingInterval);this.pollingInterval=null}this.polling=false};e.prototype.handleZoomIn=function(){if(this.zoomLevel==="normal"){this.zoomLevel="zoom1"}else if(this.zoomLevel==="zoom1"){this.zoomLevel="zoom2"}};e.prototype.handleZoomOut=function(){if(this.zoomLevel==="zoom1"){this.zoomLevel="normal"}else if(this.zoomLevel==="zoom2"){this.zoomLevel="zoom1"}};e.prototype.updateRecipientFieldValue=function(e,t){var i=this;console.log("[SIGN] updateRecipientFieldValue",e,t);this.getRecipientFields().forEach((function(n){if(n.name===e){n.value=t.value;n.settings=t.settings;updateDocumentFieldValue(n);i.fieldUpdateCounter++;i.markEnvelopeStarted();i.checkRecipientFields()}}))};e.prototype.getStartedKey=function(){var e;return"".concat(this.envelopeId,":").concat(((e=this.recipient)===null||e===void 0?void 0:e.role_name)||"")};e.prototype.markEnvelopeStarted=function(){var e=JSON.parse(localStorage.getItem("startedEnvelopes")||"[]");var t=this.getStartedKey();if(!e.includes(t)){e.push(t);while(e.length>10){e.shift()}localStorage.setItem("startedEnvelopes",JSON.stringify(e))}};e.prototype.saveFieldChange=function(e,t,i){var n=this;var o=this.getRecipientFields().find((function(t){return t.name===e}));if(o===null||o===void 0?void 0:o.readonly){return}console.log("[SIGN] saveFieldChange",e,{value:t,prepared:i});updateEnvelopeField(this.endpoint,this.envelopeId,this.roleId,e,t,i).then((function(t){return n.updateRecipientFieldValue(e,t)})).catch((function(e){var t,i,o,r,s,a;if(((t=e.response)===null||t===void 0?void 0:t.status)===401&&((o=(i=e.response)===null||i===void 0?void 0:i.data)===null||o===void 0?void 0:o.error)==="jwt expired"){console.log("[SIGN] Signing session expired");n.fatalErrorHeader="Signing Session Expired";n.fatalErrorMessage="Please reload your browser to continue."}else{console.log("[SIGN] Server error",e);VerdocsToast("Unable to save change, please try again later",{style:"error"})}(r=n.sdkError)===null||r===void 0?void 0:r.emit(new SDKError(e.message,(s=e.response)===null||s===void 0?void 0:s.status,(a=e.response)===null||a===void 0?void 0:a.data))}))};e.prototype.handleFieldChange=function(e,t){return __awaiter(this,void 0,void 0,(function(){var i,n,o,r,s,s,s,a,s,s,s,l,c;var d=this;return __generator(this,(function(u){switch(u.label){case 0:if(!t.target){return[2]}i=t.target,n=i.value,o=i.checked;r=e.type;switch(r){case"textarea":return[3,1];case"textbox":return[3,1];case"checkbox":return[3,2];case"radio":return[3,3];case"dropdown":return[3,4];case"initial":return[3,5];case"signature":return[3,14];case"date":return[3,23];case"timestamp":return[3,24]}return[3,25];case 1:return[2,this.saveFieldChange(e.name,n,false)];case 2:{return[2,this.saveFieldChange(e.name,String(t.target.checked),false)]}u.label=3;case 3:{return[2,this.saveFieldChange(e.name,String(t.target.checked),false)]}u.label=4;case 4:console.log("Saving dropdown",e.name,t.detail);return[2,this.saveFieldChange(e.name,t.detail,false)];case 5:if(t.detail===undefined){return[2]}if(!(t.detail===null))return[3,7];console.log("[SIGN] Clearing initial");return[4,updateEnvelopeField(this.endpoint,this.envelopeId,this.roleId,e.name,null,false)];case 6:s=u.sent();return[2,this.updateRecipientFieldValue(e.name,s)];case 7:if(!this.initialId)return[3,9];console.log("[SIGN] Reusing initial",this.initialId);return[4,updateEnvelopeField(this.endpoint,this.envelopeId,this.roleId,e.name,this.initialId,false)];case 8:s=u.sent();return[2,this.updateRecipientFieldValue(e.name,s)];case 9:if(!(typeof t.detail==="string"&&/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t.detail)))return[3,11];console.log("[SIGN] Reusing initial",t.detail);return[4,updateEnvelopeField(this.endpoint,this.envelopeId,this.roleId,e.name,t.detail,false)];case 10:s=u.sent();this.initialId=t.detail;return[2,this.updateRecipientFieldValue(e.name,s)];case 11:this.showSpinner=true;return[4,fetch(t.detail)];case 12:return[4,u.sent().blob()];case 13:a=u.sent();return[2,createInitials(this.endpoint,"initial",a).then((function(t){return __awaiter(d,void 0,void 0,(function(){var i;return __generator(this,(function(n){switch(n.label){case 0:return[4,updateEnvelopeField(this.endpoint,this.envelopeId,this.roleId,e.name,t.id,false)];case 1:i=n.sent();this.updateRecipientFieldValue(e.name,i);this.initialId=t.id;this.showSpinner=false;return[2]}}))}))})).catch((function(e){console.log("Error updating initials",e);VerdocsToast("Unable to save initials, please try again later",{style:"error"});d.showSpinner=false}))];case 14:if(t.detail===undefined){return[2]}if(!(t.detail===null))return[3,16];console.log("[SIGN] Clearing signature");return[4,updateEnvelopeField(this.endpoint,this.envelopeId,this.roleId,e.name,null,false)];case 15:s=u.sent();return[2,this.updateRecipientFieldValue(e.name,s)];case 16:if(!this.signatureId)return[3,18];console.log("[SIGN] Reusing signature",this.signatureId);return[4,updateEnvelopeField(this.endpoint,this.envelopeId,this.roleId,e.name,this.signatureId,false)];case 17:s=u.sent();return[2,this.updateRecipientFieldValue(e.name,s)];case 18:if(!(typeof t.detail==="string"&&/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t.detail)))return[3,20];console.log("[SIGN] Reusing signature",t.detail);return[4,updateEnvelopeField(this.endpoint,this.envelopeId,this.roleId,e.name,t.detail,false)];case 19:s=u.sent();this.signatureId=t.detail;return[2,this.updateRecipientFieldValue(e.name,s)];case 20:this.showSpinner=true;return[4,fetch(t.detail)];case 21:return[4,u.sent().blob()];case 22:l=u.sent();console.log("[SIGN] Creating new signature");return[2,createSignature(this.endpoint,"signature",l).then((function(t){return __awaiter(d,void 0,void 0,(function(){var i;return __generator(this,(function(n){switch(n.label){case 0:console.log("Signature update result",t);return[4,updateEnvelopeField(this.endpoint,this.envelopeId,this.roleId,e.name,t.id,false)];case 1:i=n.sent();this.updateRecipientFieldValue(e.name,i);this.signatureId=t.id;this.showSpinner=false;return[2]}}))}))})).catch((function(e){console.warn("[SIGN] Error updating signature",e);VerdocsToast("Unable to save signature, please try again later",{style:"error"});d.showSpinner=false}))];case 23:c=t.detail.formattedDate;if(c){return[2,this.saveFieldChange(e.name,c,false)]}return[3,26];case 24:console.log("[SIGN] Updating timestamp",{value:n,ts:t.target.getAttribute("timestamp")});return[3,26];case 25:console.log("[SIGN] Unhandled field update",{value:n,checked:o},e);return[3,26];case 26:return[2]}}))}))};e.prototype.getSortedFillableFields=function(){var e=this.getRecipientFields().filter((function(e){return e.type!=="timestamp"&&!e.readonly}));sortFields(e);return e};e.prototype.getSortedDisplayableFields=function(){var e=this.getRecipientFields().filter((function(e){return e.type!=="timestamp"}));sortFields(e);return e};e.prototype.handleNext=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n,o,r,s,a;var l=this;return __generator(this,(function(c){switch(c.label){case 0:if(!this.nextSubmits)return[3,6];if(this.submitted){return[2]}c.label=1;case 1:c.trys.push([1,4,,5]);(e=document.getElementById("air-datepicker-global-container"))===null||e===void 0?void 0:e.remove();this.submitting=true;t=Intl.DateTimeFormat().resolvedOptions();return[4,envelopeRecipientSubmit(this.endpoint,this.envelopeId,this.roleId,{locale:t.locale,timezone:t.timeZone})];case 2:i=c.sent();console.log("[SIGN] Submitted successfully",i);return[4,this.handleSubmitSuccess()];case 3:c.sent();return[3,5];case 4:n=c.sent();console.log("[SIGN] Error submitting",n);this.submitting=false;VerdocsToast("Unable to submit document, please try again.",{style:"error"});return[3,5];case 5:return[2];case 6:o=this.getSortedFillableFields().filter((function(e){return!l.isFieldActuallyFilled(e)}));r=this.getNextFieldFromList(o);if(r){s=getFieldId(r);a=document.getElementById(s);a===null||a===void 0?void 0:a.scrollIntoView({behavior:"smooth",block:"center",inline:"center"});a===null||a===void 0?void 0:a.focusField();this.focusedField=r.name}return[2]}}))}))};e.prototype.handleNextOptional=function(){var e=this;var t=this.getSortedFillableFields().filter((function(t){return!t.required&&!e.isFieldActuallyFilled(t)}));var i=this.getNextFieldFromList(t);if(i){var n=getFieldId(i);var o=document.getElementById(n);o===null||o===void 0?void 0:o.scrollIntoView({behavior:"smooth",block:"center",inline:"center"});o===null||o===void 0?void 0:o.focusField();this.focusedField=i.name}};e.prototype.getRecipientFields=function(){var e=this;var t;return((t=this.envelope)===null||t===void 0?void 0:t.fields.filter((function(t){return t.role_name===e.recipient.role_name})))||[]};e.prototype.getRequiredTotalCount=function(){return this.getSortedFillableFields().filter((function(e){return e.required})).length};e.prototype.getRequiredFilledCount=function(){var e=this;return this.getSortedFillableFields().filter((function(t){return t.required&&e.isFieldActuallyFilled(t)})).length};e.prototype.getOptionalUnfilledCount=function(){var e=this;return this.getSortedFillableFields().filter((function(t){return!t.required&&!e.isFieldActuallyFilled(t)})).length};e.prototype.checkRecipientFields=function(){var e=this;if(this.submitted||this.isDone){return}var t=this.getRecipientFields().filter((function(t){return!isFieldValid(t,e.getRecipientFields())}));if(t.length<1){this.nextButtonLabel="Finish";if(!this.nextSubmits){this.nextSubmits=true}}else{this.nextButtonLabel="Next";this.nextSubmits=false}this.updateAllFlags();var i=JSON.parse(localStorage.getItem("startedEnvelopes")||"[]");var n=i.includes(this.getStartedKey());if(this.nextSubmits){this.signingProgressMode="completed"}else if(n){this.signingProgressMode="signing"}else{this.signingProgressMode="start"}};e.prototype.isFieldActuallyFilled=function(e){if(e.type==="radio"&&e.group){var t=this.getRecipientFields().some((function(t){return t.group===e.group&&t.value==="true"}));if(t){return true}}return isFieldFilled(e,this.getRecipientFields())&&(e.type!=="dropdown"||!!e.value)&&(e.type!=="radio"||e.value==="true")&&(e.type!=="checkbox"||e.value==="true")};e.prototype.getNextRequiredField=function(){var e=this;var t=this.getSortedFillableFields().filter((function(t){return t.required&&!e.isFieldActuallyFilled(t)}));sortFields(t);if(t.length===0){var i=this.getSortedFillableFields().filter((function(t){return!e.isFieldActuallyFilled(t)}));sortFields(i);if(i.length>0){return this.getNextFieldFromList(i)}return null}return this.getNextFieldFromList(t)};e.prototype.getNextFieldFromList=function(e){var t=this;var i=e.findIndex((function(e){return e.name===t.focusedField}));var n=i+1;if(n>=e.length){n=0}return e[n]};e.prototype.handlePrev=function(){var e=this;var t;var i=this.getSortedFillableFields();var n=i.findIndex((function(t){return t.name===e.focusedField}));if(n>0){var o=i[n-1];var r=getFieldId(o);var s=document.getElementById(r);s===null||s===void 0?void 0:s.scrollIntoView({behavior:"smooth",block:"center"});(t=s===null||s===void 0?void 0:s.focusField)===null||t===void 0?void 0:t.call(s);this.focusedField=o.name}};e.prototype.updateAllFlags=function(){var e=this;Object.values(this.renderedPages).forEach((function(t){e.updateFlagsForPage(t)}))};e.prototype.updateFlagsForPage=function(e){var t=this;if(!e)return;var i=document.getElementById(e.containerId+"-controls");if(!i)return;var n=i.querySelectorAll(".verdocs-flag-instance");n.forEach((function(e){return e.remove()}));var o=this.getNextRequiredField();var r=this.getRecipientFields().find((function(e){return e.name===t.focusedField}));if(r&&!isFieldFilled(r,this.getRecipientFields())){o=r}if(o&&o.page===e.pageNumber&&o.document_id===e.documentId){var s="fill";var a="FILL";var l=false;switch(o.type){case"signature":a="SIGN";break;case"initial":a="INITIAL";break;case"checkbox":a="CHECK";break;case"radio":a="SELECT";break;case"date":case"dropdown":a="SELECT";break;case"attachment":a="ATTACH";break;case"payment":a="PAY";break}if(!o.required){l=true}renderDocumentFlag(e,o.y,o.height||defaultHeight(o.type),{variant:s,label:a,showSkip:l,onSkip:function(){t.handleNext()},onClick:function(){var e;var t=getFieldId(o);var i=document.getElementById(t);i===null||i===void 0?void 0:i.scrollIntoView({behavior:"smooth",block:"center"});(e=i===null||i===void 0?void 0:i.focusField)===null||e===void 0?void 0:e.call(i)}})}};e.prototype.attachFieldAttributes=function(e,t,i){var n=this;if(i.getAttribute("attached")==="1"){return}i.setAttribute("attached","1");i.addEventListener("input",(function(e){if(e.target.type==="radio"||e.target.type==="checkbox"){n.handleFieldChange(t,e).finally((function(){return n.checkRecipientFields()}))}else{n.checkRecipientFields()}}));i.addEventListener("attached",(function(i){return __awaiter(n,void 0,void 0,(function(){var n,o,r;return __generator(this,(function(s){switch(s.label){case 0:console.log("[SIGN] onAttached",i.detail,i.target.value);this.showSpinner=true;s.label=1;case 1:s.trys.push([1,3,,4]);return[4,uploadEnvelopeFieldAttachment(this.endpoint,this.envelopeId,this.roleId,t.name,i.detail)];case 2:n=s.sent();this.updateRecipientFieldValue(t.name,n);this.checkRecipientFields();o=renderDocumentField("envelope",t,e,{disabled:false,editable:false,draggable:false,done:this.isDone});this.attachFieldAttributes(e,t,o);this.showSpinner=false;return[3,4];case 3:r=s.sent();console.log("Error uploading attachment",r);VerdocsToast("Unable to upload attachment, please try again later",{style:"error"});this.showSpinner=false;return[3,4];case 4:return[2]}}))}))}));i.addEventListener("deleted",(function(i){return __awaiter(n,void 0,void 0,(function(){var n,o,r;return __generator(this,(function(s){switch(s.label){case 0:console.log("[SIGN] onDeleted",i.detail,i.target.value);this.showSpinner=true;s.label=1;case 1:s.trys.push([1,3,,4]);return[4,deleteEnvelopeFieldAttachment(this.endpoint,this.envelopeId,this.roleId,t.name)];case 2:n=s.sent();console.log("[SIGN] Deleted attachment",n);this.updateRecipientFieldValue(t.name,n);this.checkRecipientFields();o=renderDocumentField("envelope",t,e,{disabled:false,editable:false,draggable:false,done:this.isDone});this.attachFieldAttributes(e,t,o);this.showSpinner=false;return[3,4];case 3:r=s.sent();console.log("Error uploading attachment",r);VerdocsToast("Unable to upload attachment, please try again later",{style:"error"});this.showSpinner=false;return[3,4];case 4:return[2]}}))}))}));i.addEventListener("focusout",(function(e){if(t.type!=="dropdown"&&t.type!=="attachment"&&t.type!=="signature"&&t.type!=="initial"&&t.type!=="checkbox"&&t.type!=="radio"){n.handleFieldChange(t,e).finally((function(){return n.checkRecipientFields()}))}}));i.addEventListener("fieldChange",(function(e){n.handleFieldChange(t,e).finally((function(){return n.checkRecipientFields()}))}));i.addEventListener("adopt",(function(){n.focusedField=t.name;n.adoptingSignature=true}));i.setAttribute("templateid",this.envelope.template_id);i.setAttribute("fieldname",t.name);i.setAttribute("page",e.pageNumber);i.setAttribute("xScale",e.xScale);i.setAttribute("yScale",e.yScale);var o=formatFullName(this.recipient);i.setAttribute("initials",fullNameToInitials(o));i.setAttribute("name",o);if(this.signatureId){i.setAttribute("signatureid",this.signatureId)}if(this.initialId){i.setAttribute("initialid",this.initialId)}};e.prototype.handlePageRendered=function(e){var t=this;var i=e.detail;this.renderedPages["".concat(i.documentId,":").concat(i.pageNumber)]=i;var n=this.getSortedDisplayableFields();n.filter((function(e){return e&&e.document_id===i.documentId&&e.page===i.pageNumber})).forEach((function(e,n){var o=renderDocumentField("envelope",e,i,{disabled:false,editable:false,draggable:false,done:t.isDone},n);if(!o){return}if(Array.isArray(o)){o.map((function(n){return t.attachFieldAttributes(i,e,n)}))}else{t.attachFieldAttributes(i,e,o)}}));this.envelope.recipients.filter((function(e){return e.role_name!==t.recipient.role_name&&(e.status==="invited"||e.status==="opened"||e.status==="pending")})).forEach((function(){t.getRecipientFields().filter((function(e){return e.document_id===i.documentId&&e.page===i.pageNumber})).forEach((function(e){var n=renderDocumentField("envelope",e,i,{disabled:true,editable:false,draggable:false,done:t.isDone});if(!n){return}if(Array.isArray(n)){n.map((function(n){return t.attachFieldAttributes(i,e,n)}))}else{t.attachFieldAttributes(i,e,n)}}))}));this.checkRecipientFields();this.updateFlagsForPage(i)};e.prototype.handleAuthenticateSigner=function(e){var t=this;console.log("[SIGN] Submitting authentication step",e);verifySigner(this.endpoint,e).then((function(e){console.log("[SIGN] Verification successful",e);t.processAuthResponse(e)})).catch((function(e){var i,n,o,r,s,a;console.log("[SIGN] Error submitting authentication step",e);console.log((i=e.response)===null||i===void 0?void 0:i.data);if((r=(o=(n=e.response)===null||n===void 0?void 0:n.data)===null||o===void 0?void 0:o.error)===null||r===void 0?void 0:r.includes("failed")){t.fatalErrorHeader="Recipient Verification Failed";t.fatalErrorMessage="We were unable to verify your identity. The sender has been notified.";t.isDone=true}else{VerdocsToast(((a=(s=e.response)===null||s===void 0?void 0:s.data)===null||a===void 0?void 0:a.error)||"Unable to verify your identity. Please try again.",{style:"error"})}}))};e.prototype.handleOnDownload=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,n,o,r,s,a,l,c,d,u,h,f,v,p,g;return __generator(this,(function(m){switch(m.label){case 0:n=e.detail,o=n.action,r=n.documentId;console.log("[SIGN] Download action selected:",o,r);m.label=1;case 1:m.trys.push([1,14,,15]);s=o;switch(s){case DownloadAction.certificate:return[3,2];case DownloadAction.combined:return[3,6];case DownloadAction.document:return[3,8];case DownloadAction.zip:return[3,11]}return[3,13];case 2:a=this.envelope.documents.find((function(e){return e.type==="certificate"}));if(!a)return[3,4];return[4,getEnvelopeDocumentDownloadLink(this.endpoint,a.id)];case 3:l=m.sent();window.open(l,"_blank");return[3,5];case 4:VerdocsToast("Certificate not yet available.",{style:"info"});m.label=5;case 5:return[3,13];case 6:c=r||((t=this.envelope.documents.find((function(e){return e.type==="certificate"})))===null||t===void 0?void 0:t.id);return[4,getCombinedEnvelopeDocumentDownloadLink(this.endpoint,c)];case 7:d=m.sent();window.open(d,"_blank");return[3,13];case 8:u=r||((i=this.envelope.documents.find((function(e){return e.type==="attachment"})))===null||i===void 0?void 0:i.id);if(!u)return[3,10];return[4,getEnvelopeDocumentDownloadLink(this.endpoint,u)];case 9:h=m.sent();window.open(h,"_blank");m.label=10;case 10:return[3,13];case 11:return[4,getEnvelopesZip(this.endpoint,[this.envelopeId])];case 12:f=m.sent();v=window.URL.createObjectURL(f.data);p=document.createElement("a");p.href=v;p.download="".concat(this.envelope.name,".zip");document.body.appendChild(p);p.click();p.remove();window.URL.revokeObjectURL(v);return[3,13];case 13:return[3,15];case 14:g=m.sent();console.error("Download error",g);VerdocsToast("Unable to complete download request.",{style:"error"});return[3,15];case 15:return[2]}}))}))};e.prototype.render=function(){var e=this;var t;if(this.showLoadError){return h(Host,null,h("verdocs-ok-dialog",{heading:"Unable to Start Signing",message:"Sorry, your invite code is invalid or has expired. Please check your email for an updated invitation, or contact the sender.",buttonLabel:"OK",onNext:function(){e.retrySigningSession()}}))}if(!this.envelope){return h(Host,null,h("verdocs-loader",null))}if(this.fatalErrorMessage){return h(Host,{class:{agreed:this.agreed}},h("div",{class:"fatal-error"},h("div",{class:"message"},h("div",{class:"header"},this.fatalErrorHeader),h("p",null,this.fatalErrorMessage))))}if(this.delegated){return h(Host,{class:{agreed:false}},h("div",{class:"fatal-error"},h("div",{class:"message"},h("div",{class:"header"},"Delegated Signing Request"),h("p",null,"You have delegated signing to another recipient. You will not be able to sign this request again."))))}if(this.isDone){return h(Host,{class:{agreed:this.agreed}},h("verdocs-view",{endpoint:this.endpoint,envelopeId:this.envelopeId,onSdkError:function(t){var i;return(i=e.sdkError)===null||i===void 0?void 0:i.emit(t.detail)}}),this.showDone&&h("verdocs-ok-dialog",{heading:"You're Done!",message:"You can access the ".concat(this.documentsSingularPlural," at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached."),onNext:function(t){t.preventDefault();t.stopPropagation();e.handleDoneDialogDismiss()},onExit:function(){return e.handleDoneDialogDismiss()}}),this.submitting&&h("div",{class:"loading-indicator"},h("verdocs-loader",null)))}if(this.delegating){return h(Host,{class:"agreed"},h("div",{class:"document",style:{paddingTop:"15px"}},h("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"})),h("verdocs-delegate-dialog",{endpoint:this.endpoint,envelope:this.envelope,onExit:function(){return e.delegating=false},onNext:function(t){delegateRecipient(e.endpoint,e.envelopeId,e.roleId,t.detail).then((function(t){VerdocsToast("Delegation request submitted.",{style:"success"});console.log("[SIGN] Delegated successfully",t);e.delegated=true;e.delegating=false})).catch((function(e){console.log("[SIGN] Error delegating request",e);VerdocsToast("Unable to process delegation request. Please try again later.",{style:"error"})}))}}))}if(this.declining){return h(Host,{class:"agreed"},h("div",{class:"document",style:{paddingTop:"15px"}},h("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"})),h("verdocs-ok-dialog",{heading:"Decline Signing Request",message:"If you decline to sign this request, you will not be able to sign again in the future. The envelope sender will be notified.",buttonLabel:"OK",showCancel:true,onExit:function(){return e.declining=false},onNext:function(){envelopeRecipientDecline(e.endpoint,e.envelopeId,e.roleId).then((function(t){console.log("[SIGN] Decline result",t);e.declining=false;e.fatalErrorHeader="Declined";e.fatalErrorMessage="You have declined to sign this request. The sender has been notified."})).catch((function(e){console.warn("[SIGN] Error declining signing session",e);VerdocsToast("Unable to decline, please try again later",{style:"error"})}))}}))}if(!this.agreed){return h(Host,{class:"agreed"},h("div",{class:"document",style:{paddingTop:"15px"}},h("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"})),h("verdocs-disclosure-dialog",{disclosures:this.disclosures,delegator:this.recipient.delegator,onDelegate:function(){return e.delegating=true},onDecline:function(){return e.declining=true},onAccept:function(){return e.handleClickAgree()}}))}if(this.authStep==="passcode"){return h("verdocs-passcode-dialog",{endpoint:this.endpoint,onNext:function(t){return e.processAuthResponse(t.detail.response)}})}if(this.authStep==="sms"){return h("verdocs-otp-dialog",{endpoint:this.endpoint,method:"sms",onNext:function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){this.processAuthResponse(t.detail.response);return[2]}))}))}})}if(this.authStep==="email"){return h("verdocs-otp-dialog",{endpoint:this.endpoint,method:"email",onNext:function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){this.processAuthResponse(t.detail.response);return[2]}))}))}})}if(this.authStep==="kba"&&!this.authMethodStates.kba){return h(Host,{class:"kba"},h("div",{id:"verdocs-sign-header"},h("div",{class:"inner"},h("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),h("div",{class:"title"},this.envelope.name))),h("div",{class:"document",style:{paddingTop:"15px"}},h("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"})),h("div",{class:"cover"},h("div",{class:"kba"},h("verdocs-kba-dialog",{mode:"identity",helptitle:"Document requires identity verification",helptext:"Please complete your contact details to proceed.",recipient:this.recipient,onNext:function(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(i){e=t.detail;this.handleAuthenticateSigner({auth_method:"kba",first_name:e.first_name,last_name:e.last_name,address:e.address,city:e.city,state:e.state,zip:e.zip,dob:e.dob});return[2]}))}))}}))))}if(this.authStep==="kba"&&this.authMethodStates.kba==="questions"){var i=this.kbaChoices.length;var n=this.kbaQuestions[i];return h(Host,{class:"kba"},h("div",{id:"verdocs-sign-header"},h("div",{class:"inner"},h("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),h("div",{class:"title"},this.envelope.name))),h("div",{class:"document",style:{paddingTop:"15px"}},h("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"})),h("div",{class:"cover"},h("div",{class:"kba"},this.kbaChoices.length>=this.kbaQuestions.length?h("verdocs-spinner",null):h("verdocs-kba-dialog",{mode:"choice",helptitle:"Your identity requires additional verification",helptext:(n===null||n===void 0?void 0:n.prompt)||"Please select one of the options below.",choices:(n===null||n===void 0?void 0:n.answer)||["Skip Question"],step:i+1,steps:this.kbaQuestions.length,onNext:function(t){return __awaiter(e,void 0,void 0,(function(){var e,i;var n=this;return __generator(this,(function(o){e=t.detail;this.kbaChoices=__spreadArray(__spreadArray([],this.kbaChoices,true),[e],false);if(this.kbaChoices.length>=this.kbaQuestions.length){i=this.kbaQuestions.map((function(e,t){return{type:e.type,answer:n.kbaChoices[t]}}));console.log("Submitting KBA responses",this.kbaChoices,i);this.handleAuthenticateSigner({auth_method:"kba",responses:i})}return[2]}))}))}}))))}var o=[{id:"later",label:"Finish Later"},{id:"decline",label:"Decline to Sign"},{id:"print",label:"Print Without Signing"},{id:"download",label:"Download"}];var r=[{id:"print",label:"Print"},{id:"download",label:"Download"}];if(this.recipient.delegator){o.unshift({id:"delegate",label:"Delegate"})}var s=this.getRecipientFields().filter((function(t){return!isFieldValid(t,e.getRecipientFields())}));s.length>0?console.log("[SIGN] Invalid fields remaining",s.map((function(e){return e.name}))):console.log("[SIGN] All field valid");var a=this.envelope.documents.reduce((function(e,t){return e+t.pages}),0);var l=integerSequence(1,a).map((function(e){return{label:e.toString(),value:e.toString()}}));var c=0;return h(Host,null,this.toolbarStyle==="menu"&&h("div",{id:"verdocs-sign-header"},h("div",{class:"inner"},h("div",{class:"title"},this.envelope.name),h("div",{style:{flex:"1"}}),!this.finishLater&&!this.submitted&&function(){var t=e.getRequiredTotalCount()-e.getRequiredFilledCount();var i=e.getOptionalUnfilledCount();if(t>0){return h("span",{class:"remaining-count"},t," required field",t===1?"":"s"," left")}return h("span",{class:"remaining-count"},h("span",{class:"check-icon",innerHTML:CheckCircleIcon}),"All required fields complete",i>0&&h("div",{class:"review-optional"},h("span",{class:"separator"},"| "),h("span",{onClick:function(){return e.handleNextOptional()}},"Review ",i," optional")))}(),!this.finishLater&&!this.submitted&&h("verdocs-button",{size:"xsmall",label:this.nextButtonLabel==="Next"?"Next Required":this.nextButtonLabel,disabled:!this.agreed||this.submitting||this.submitted,onClick:function(){return e.handleNext()}}),h("div",{class:{"icon-button":true,minus:true,disabled:this.zoomLevel==="normal",magnify:true},innerHTML:ToolbarMinusIcon,onClick:function(){return e.handleZoomOut()}}),h("div",{class:{"icon-button":true,plus:true,disabled:this.zoomLevel==="zoom2",magnify:true},innerHTML:ToolbarPlusIcon,onClick:function(){return e.handleZoomIn()}}),h("verdocs-dropdown",{options:!this.isDone&&!this.finishLater&&!this.submitted?o:r,onOptionSelected:function(t){return e.handleOptionSelected(t)}}))),this.toolbarStyle==="controls"&&h("div",{class:"controls-toolbar"},h("div",{class:"left-controls"},h("div",{class:"title"},this.envelope.name)),h("div",{class:"center-controls"},h("span",{class:"label"},"Page"),h("div",{class:"select-wrapper"},h("verdocs-select-input",{options:l,value:this.pageNumber.toString(),onInput:function(t){return e.handlePageSelect(t)}})),h("span",{class:"count"},"of ",a)),h("div",{class:"right-controls"},!this.submitted&&h("verdocs-button",{class:"mobile-next-button",label:this.nextButtonLabel,size:"xsmall",disabled:!this.agreed||this.submitting,onClick:function(){return e.handleNext()}}),h("div",{class:{"icon-button":true,minus:true,disabled:this.zoomLevel==="normal"},innerHTML:ToolbarMinusIcon,onClick:function(){return e.handleZoomOut()}}),h("div",{class:{"icon-button":true,plus:true,disabled:this.zoomLevel==="zoom2"},innerHTML:ToolbarPlusIcon,onClick:function(){return e.handleZoomIn()}}),h("div",{class:"icon-button download",innerHTML:ToolbarDownloadIcon,onClick:function(){return e.handleOptionSelected({detail:{id:"download"}})}}),h("div",{class:"icon-button print",innerHTML:ToolbarPrintIcon,onClick:function(){return e.handleOptionSelected({detail:{id:"print"}})}}))),h("div",{class:"document signed-document-container zoom-".concat(this.zoomLevel)},(this.envelope.documents||[]).map((function(t){var i=integerSequence(1,t.pages);return h(Fragment,null,e.envelope.documents.length>1&&h("div",{class:"document-separator"},h("div",{innerHTML:DocumentPageIcon}),h("span",null,t.name)),i.map((function(i){var n;var o=((n=t.page_sizes)===null||n===void 0?void 0:n[i])||{width:612,height:792};c++;return h("verdocs-envelope-document-page",{id:"page-".concat(c),envelopeId:e.envelopeId,documentId:t.id,endpoint:e.endpoint,virtualWidth:o.width,virtualHeight:o.height,pageNumber:i,onPageRendered:function(t){return e.handlePageRendered(t)},type:"filled",layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})})))}))),this.showFinishLater&&h("verdocs-ok-dialog",{heading:"You've saved your document to finish later.",message:"To complete the ".concat(this.documentsSingularPlural,", use the link in the original email notification inviting you to review and finish the document."),onNext:function(){e.isDone=true;e.showFinishLater=false}}),this.showDone&&h("verdocs-ok-dialog",{heading:"You're Done!",message:"You can access the ".concat(this.documentsSingularPlural," at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached."),onNext:function(){e.handleDoneDialogDismiss()},onExit:function(){return e.handleDoneDialogDismiss()}}),this.adoptingSignature&&h("verdocs-adopt-signature-dialog",{name:formatFullName(this.recipient),nameLocked:!!((t=this.recipient)===null||t===void 0?void 0:t.name_locked),onNext:function(t){return __awaiter(e,void 0,void 0,(function(){var e,i,n,o,r,s,a,l,c;var d=this;return __generator(this,(function(u){switch(u.label){case 0:console.log("[SIGN] Adopting signature/initials block",t.detail);this.showSpinner=true;return[4,fetch(t.detail.signature)];case 1:return[4,u.sent().blob()];case 2:e=u.sent();return[4,fetch(t.detail.initials)];case 3:return[4,u.sent().blob()];case 4:i=u.sent();return[4,createSignature(this.endpoint,"signature",e)];case 5:n=u.sent();console.log("[SIGN] Created signature",n);this.signatureId=n.id;return[4,createInitials(this.endpoint,"initial",i)];case 6:o=u.sent();console.log("[SIGN] Created initials",o);this.initialId=o.id;this.showSpinner=false;this.adoptingSignature=false;this.markEnvelopeStarted();if(!this.focusedField)return[3,9];r=this.getRecipientFields().find((function(e){return e.name===d.focusedField}));if(!r)return[3,8];s=r.type==="signature"?this.signatureId:r.type==="initial"?this.initialId:null;if(!s)return[3,8];return[4,updateEnvelopeField(this.endpoint,this.envelopeId,this.roleId,r.name,s,false)];case 7:a=u.sent();this.updateRecipientFieldValue(r.name,a);u.label=8;case 8:this.focusedField="";u.label=9;case 9:l=this.el.querySelectorAll("verdocs-field-signature");l.forEach((function(e){return e.setAttribute("signatureid",d.signatureId)}));c=this.el.querySelectorAll("verdocs-field-initial");c.forEach((function(e){return e.setAttribute("initialid",d.initialId)}));this.checkRecipientFields();return[2]}}))}))},onExit:function(){return e.adoptingSignature=false}}),(this.submitting||this.showSpinner)&&h("verdocs-portal",null,h("div",{class:"spinner-overlay"},h("verdocs-spinner",null))),this.showDownloadDialog&&h("verdocs-download-dialog",{signed:this.envelope.signed,polling:this.polling,documents:this.envelope.documents,onExit:function(){e.showDownloadDialog=false;e.stopPolling()},onDownload:function(t){return e.handleOnDownload(t)}}),!this.loading&&!this.isDone&&!this.submitted&&h("verdocs-sign-footer",{endpoint:this.endpoint,envelopeId:this.envelopeId,isDone:this.isDone,onAskQuestion:function(t){askQuestion(e.endpoint,e.envelopeId,e.roleId,{question:t.detail.question}).then((function(){return VerdocsToast("Your question has been sent.",{style:"success"})})).catch((function(e){console.log("Error asking question",e);VerdocsToast("Unable to send question, please try again later.",{style:"error"})}))},onDecline:function(){return e.declining=true},onFinishLater:function(){return e.showFinishLater=true}}))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();VerdocsSign.style=verdocsSignCss();export{VerdocsSign as verdocs_sign};
2
2
  //# sourceMappingURL=verdocs-sign.entry.js.map