@verdocs/web-sdk 6.10.7 → 6.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (636) 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/{Icons-TVvtZ5iL.js → Icons-Zdy_DFce.js} +16 -2
  4. package/dist/cjs/{Icons-TVvtZ5iL.js.map → Icons-Zdy_DFce.js.map} +1 -1
  5. package/dist/cjs/ScrollFade-DKS1cHlq.js +21 -0
  6. package/dist/cjs/ScrollFade-DKS1cHlq.js.map +1 -0
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/verdocs-adopt-signature-dialog_7.cjs.entry.js +9 -9
  9. package/dist/cjs/verdocs-auth.cjs.entry.js +291 -15
  10. package/dist/cjs/verdocs-auth.cjs.entry.js.map +1 -1
  11. package/dist/cjs/verdocs-button-panel.cjs.entry.js +2 -2
  12. package/dist/cjs/verdocs-button_3.cjs.entry.js +6 -6
  13. package/dist/cjs/verdocs-checkbox_5.cjs.entry.js +4 -4
  14. package/dist/cjs/verdocs-contact-picker.cjs.entry.js +73 -46
  15. package/dist/cjs/verdocs-contact-picker.cjs.entry.js.map +1 -1
  16. package/dist/cjs/verdocs-date-input.cjs.entry.js +2 -2
  17. package/dist/cjs/verdocs-dialog.cjs.entry.js +1 -1
  18. package/dist/cjs/verdocs-download-dialog_4.cjs.entry.js +5 -5
  19. package/dist/cjs/verdocs-dropdown.cjs.entry.js +1 -1
  20. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +6 -6
  21. package/dist/cjs/verdocs-field-attachment_11.cjs.entry.js +2 -2
  22. package/dist/cjs/verdocs-field-payment.cjs.entry.js +1 -1
  23. package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +3 -3
  24. package/dist/cjs/verdocs-flag.cjs.entry.js +1 -1
  25. package/dist/cjs/verdocs-initial-dialog.cjs.entry.js +1 -1
  26. package/dist/cjs/verdocs-menu-panel_2.cjs.entry.js +8 -8
  27. package/dist/cjs/verdocs-multiselect.cjs.entry.js +1 -1
  28. package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
  29. package/dist/cjs/verdocs-organization-card_2.cjs.entry.js +2 -2
  30. package/dist/cjs/verdocs-pagination_2.cjs.entry.js +2 -2
  31. package/dist/cjs/verdocs-preview_6.cjs.entry.js +254 -32
  32. package/dist/cjs/verdocs-preview_6.cjs.entry.js.map +1 -1
  33. package/dist/cjs/verdocs-quick-functions.cjs.entry.js +1 -1
  34. package/dist/cjs/verdocs-radio-button.cjs.entry.js +1 -1
  35. package/dist/cjs/verdocs-search-box.cjs.entry.js +1 -1
  36. package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
  37. package/dist/cjs/verdocs-sign.cjs.entry.js +1 -1
  38. package/dist/cjs/verdocs-signature-dialog.cjs.entry.js +1 -1
  39. package/dist/cjs/verdocs-spinner.cjs.entry.js +1 -1
  40. package/dist/cjs/verdocs-status-indicator.cjs.entry.js +2 -2
  41. package/dist/cjs/verdocs-switch.cjs.entry.js +2 -2
  42. package/dist/cjs/verdocs-table.cjs.entry.js +2 -2
  43. package/dist/cjs/verdocs-tabs.cjs.entry.js +1 -1
  44. package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
  45. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +1 -1
  46. package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
  47. package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
  48. package/dist/cjs/verdocs-templates-list.cjs.entry.js +7 -7
  49. package/dist/cjs/verdocs-toggle-button.cjs.entry.js +1 -1
  50. package/dist/cjs/verdocs-toggle.cjs.entry.js +1 -1
  51. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  52. package/dist/collection/collection-manifest.json +1 -1
  53. package/dist/collection/components/controls/verdocs-button/verdocs-button.js +1 -1
  54. package/dist/collection/components/controls/verdocs-button-panel/verdocs-button-panel.js +2 -2
  55. package/dist/collection/components/controls/verdocs-checkbox/verdocs-checkbox.js +1 -1
  56. package/dist/collection/components/controls/verdocs-component-error/verdocs-component-error.js +1 -1
  57. package/dist/collection/components/controls/verdocs-date-input/verdocs-date-input.js +2 -2
  58. package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.js +1 -1
  59. package/dist/collection/components/controls/verdocs-file-chooser/verdocs-file-chooser.js +1 -1
  60. package/dist/collection/components/controls/verdocs-flag/verdocs-flag.js +1 -1
  61. package/dist/collection/components/controls/verdocs-help-icon/verdocs-help-icon.js +1 -1
  62. package/dist/collection/components/controls/verdocs-loader/verdocs-loader.js +1 -1
  63. package/dist/collection/components/controls/verdocs-menu-panel/verdocs-menu-panel.js +1 -1
  64. package/dist/collection/components/controls/verdocs-multiselect/verdocs-multiselect.js +1 -1
  65. package/dist/collection/components/controls/verdocs-organization-card/verdocs-organization-card.js +1 -1
  66. package/dist/collection/components/controls/verdocs-pagination/verdocs-pagination.js +1 -1
  67. package/dist/collection/components/controls/verdocs-portal/verdocs-portal.js +1 -1
  68. package/dist/collection/components/controls/verdocs-progress-bar/verdocs-progress-bar.js +1 -1
  69. package/dist/collection/components/controls/verdocs-quick-filter/verdocs-quick-filter.js +1 -1
  70. package/dist/collection/components/controls/verdocs-radio-button/verdocs-radio-button.js +1 -1
  71. package/dist/collection/components/controls/verdocs-select-input/verdocs-select-input.js +1 -1
  72. package/dist/collection/components/controls/verdocs-spinner/verdocs-spinner.js +1 -1
  73. package/dist/collection/components/controls/verdocs-switch/verdocs-switch.js +2 -2
  74. package/dist/collection/components/controls/verdocs-table/verdocs-table.js +2 -2
  75. package/dist/collection/components/controls/verdocs-tabs/verdocs-tabs.js +1 -1
  76. package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.js +4 -4
  77. package/dist/collection/components/controls/verdocs-toggle/verdocs-toggle.js +1 -1
  78. package/dist/collection/components/controls/verdocs-toggle-button/verdocs-toggle-button.js +1 -1
  79. package/dist/collection/components/controls/verdocs-toolbar-icon/verdocs-toolbar-icon.js +1 -1
  80. package/dist/collection/components/dialogs/verdocs-adopt-signature-dialog/verdocs-adopt-signature-dialog.js +3 -3
  81. package/dist/collection/components/dialogs/verdocs-delegate-dialog/verdocs-delegate-dialog.js +1 -1
  82. package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.js +1 -1
  83. package/dist/collection/components/dialogs/verdocs-disclosure-dialog/verdocs-disclosure-dialog.js +1 -1
  84. package/dist/collection/components/dialogs/verdocs-download-dialog/verdocs-download-dialog.js +2 -2
  85. package/dist/collection/components/dialogs/verdocs-initial-dialog/verdocs-initial-dialog.js +1 -1
  86. package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +1 -1
  87. package/dist/collection/components/dialogs/verdocs-otp-dialog/verdocs-otp-dialog.js +1 -1
  88. package/dist/collection/components/dialogs/verdocs-passcode-dialog/verdocs-passcode-dialog.js +1 -1
  89. package/dist/collection/components/dialogs/verdocs-question-dialog/verdocs-question-dialog.js +1 -1
  90. package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +1 -1
  91. package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.js +1 -1
  92. package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +1 -1
  93. package/dist/collection/components/elements/verdocs-search-box/verdocs-search-box.js +1 -1
  94. package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js +1 -1
  95. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.css +45 -1
  96. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +323 -19
  97. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js.map +1 -1
  98. package/dist/collection/components/embeds/verdocs-send/verdocs-send.css +447 -63
  99. package/dist/collection/components/embeds/verdocs-send/verdocs-send.js +291 -58
  100. package/dist/collection/components/embeds/verdocs-send/verdocs-send.js.map +1 -1
  101. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.css +188 -99
  102. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js +102 -46
  103. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js.map +1 -1
  104. package/dist/collection/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.js +1 -1
  105. package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +6 -6
  106. package/dist/collection/components/envelopes/verdocs-sign-footer/verdocs-sign-footer.js +1 -1
  107. package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js +2 -2
  108. package/dist/collection/components/templates/verdocs-template-card/verdocs-template-card.js +1 -1
  109. package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +7 -7
  110. package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +1 -1
  111. package/dist/collection/components/templates/verdocs-template-tags/verdocs-template-tags.js +1 -1
  112. package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.js +7 -7
  113. package/dist/collection/utils/Environment.js +1 -0
  114. package/dist/collection/utils/Environment.js.map +1 -1
  115. package/dist/collection/utils/Icons.js +12 -0
  116. package/dist/collection/utils/Icons.js.map +1 -1
  117. package/dist/collection/utils/ScrollFade.js +15 -0
  118. package/dist/collection/utils/ScrollFade.js.map +1 -0
  119. package/dist/components/{p-K_PKw6bs.js → p-1FjgijEi.js} +2 -2
  120. package/dist/components/p-5FU3bYQ3.js +2 -0
  121. package/dist/components/{p-Dc3BDcaU.js.map → p-5FU3bYQ3.js.map} +1 -1
  122. package/dist/components/p-7o544oi8.js +2 -0
  123. package/dist/components/{p-B1UVXqFA.js.map → p-7o544oi8.js.map} +1 -1
  124. package/dist/components/{p-aj0qlBQ1.js → p-8J_y0V9M.js} +2 -2
  125. package/dist/components/{p-DKKsPZnz.js → p-9kEZy9MP.js} +2 -2
  126. package/dist/components/{p-DavVixMP.js → p-B-ul_Soj.js} +2 -2
  127. package/dist/components/{p-D-TexkaT.js → p-B1AE2j97.js} +2 -2
  128. package/dist/components/{p-DfIxVX8-.js → p-B4tpmyon.js} +2 -2
  129. package/dist/components/{p-CsF979IT.js → p-BBCy2Hy2.js} +2 -2
  130. package/dist/components/{p-D1cSgqut.js → p-BKLlc2r0.js} +2 -2
  131. package/dist/components/{p-Dw7l6M37.js → p-BSUeI3vF.js} +2 -2
  132. package/dist/components/{p-CAGp0qKc.js → p-BSX4GfGg.js} +2 -2
  133. package/dist/components/{p-Cujbc8tg.js → p-BTrjJycH.js} +2 -2
  134. package/dist/components/{p-C0SHIuoK.js → p-Bb5V9TQx.js} +2 -2
  135. package/dist/components/{p-CYvB5bYX.js → p-BhG0HGg6.js} +2 -2
  136. package/dist/components/{p-u9H54zUE.js → p-Bodw4NVB.js} +2 -2
  137. package/dist/components/{p-BWrwPDuU.js → p-Bxvw_LqR.js} +2 -2
  138. package/dist/components/p-ByrpRZ3E.js +2 -0
  139. package/dist/components/p-ByrpRZ3E.js.map +1 -0
  140. package/dist/components/{p--jRXEN0c.js → p-C-v22G3g.js} +2 -2
  141. package/dist/{verdocs-web-sdk/p-BU5rnXp2.js → components/p-C7k2AOsW.js} +2 -2
  142. package/dist/components/p-C7k2AOsW.js.map +1 -0
  143. package/dist/components/{p-D9yawpPk.js → p-C8yiLtCJ.js} +2 -2
  144. package/dist/components/p-C90lxyUX.js +2 -0
  145. package/dist/components/{p-JGWMBIGy.js.map → p-C90lxyUX.js.map} +1 -1
  146. package/dist/components/{p-bPe0_Dsn.js → p-CEcG_ay-.js} +2 -2
  147. package/dist/components/p-CEkRxfcu.js +2 -0
  148. package/dist/components/{p-rasc67fl.js.map → p-CEkRxfcu.js.map} +1 -1
  149. package/dist/components/{p-BELGzhZw.js → p-CFacV7mg.js} +2 -2
  150. package/dist/components/{p-BQUZjuoP.js → p-CQzPkAVQ.js} +2 -2
  151. package/dist/components/{p-BMzxhyLu.js → p-CdnjpaJt.js} +2 -2
  152. package/dist/components/{p-CZwyK_uo.js → p-Cij_2Ym2.js} +2 -2
  153. package/dist/components/{p-CjUdD_Dm.js → p-Cly5sH3M.js} +2 -2
  154. package/dist/components/{p-nh9PxN8s.js → p-CnD-TaPJ.js} +3 -3
  155. package/dist/components/p-CnUZ9w2T.js +2 -0
  156. package/dist/components/p-CnUZ9w2T.js.map +1 -0
  157. package/dist/components/p-Cq60Emo_.js +2 -0
  158. package/dist/components/p-Cq60Emo_.js.map +1 -0
  159. package/dist/components/{p-DJMr11ue.js → p-CqBZmEjI.js} +2 -2
  160. package/dist/components/{p-B6aUlIQe.js → p-D-X-Zcsr.js} +2 -2
  161. package/dist/components/{p-DiYuPnJJ.js → p-D0MFs2Dv.js} +2 -2
  162. package/dist/components/{p-D17kbVUt.js → p-D4wfy1ym.js} +2 -2
  163. package/dist/components/{p-CAxzfAvp.js → p-DFbeKrpm.js} +2 -2
  164. package/dist/components/{p-DVx4efoX.js → p-DGNIsXfr.js} +2 -2
  165. package/dist/components/{p-CxIhMndz.js → p-DHzSlpJw.js} +2 -2
  166. package/dist/components/{p-LYpUmpqf.js → p-DM3wePVp.js} +2 -2
  167. package/dist/components/{p-BYVQkYYg.js → p-DRP4Xxiu.js} +2 -2
  168. package/dist/components/{p-CVjehb2X.js → p-DTG2X1A2.js} +2 -2
  169. package/dist/components/{p-ByJ9WBGR.js → p-DeAwyTxI.js} +2 -2
  170. package/dist/components/{p-CIgqf7hj.js → p-DhOuB4nS.js} +2 -2
  171. package/dist/components/{p-vimrvRye.js → p-DqzFuSNN.js} +2 -2
  172. package/dist/components/{p-CoeB7U-_.js → p-DreV6Npp.js} +2 -2
  173. package/dist/components/{p-B0HO2i65.js → p-DsSqGIBJ.js} +2 -2
  174. package/dist/components/{p-Dj-aIazM.js → p-DscL0SIM.js} +2 -2
  175. package/dist/components/{p-B7fdmef7.js → p-DslyN9XL.js} +2 -2
  176. package/dist/components/{p-CLtldaUs.js → p-E2hWLZ47.js} +2 -2
  177. package/dist/components/{p-DL4-aTsZ.js → p-Lo1dCgyv.js} +2 -2
  178. package/dist/components/p-PVw56Shw.js +2 -0
  179. package/dist/components/{p-DTE1GYJt.js.map → p-PVw56Shw.js.map} +1 -1
  180. package/dist/components/{p-BMGs9CCD.js → p-PfdIkMoz.js} +2 -2
  181. package/dist/components/{p-BD2vHbCJ.js → p-Q-li_kJ_.js} +2 -2
  182. package/dist/components/{p-BLo_-c7G.js → p-eg4Uf0xS.js} +2 -2
  183. package/dist/components/{p-D7oMWhqM.js → p-ek0LNMtb.js} +2 -2
  184. package/dist/components/{p-C1iHkDUH.js → p-gPd3OG7X.js} +2 -2
  185. package/dist/components/{p-CVF-R2yg.js → p-kHTZa3Ev.js} +2 -2
  186. package/dist/components/{p-F1PgSiVa.js → p-nxPMK2PN.js} +2 -2
  187. package/dist/components/verdocs-adopt-signature-dialog.js +1 -1
  188. package/dist/components/verdocs-auth.js +1 -1
  189. package/dist/components/verdocs-auth.js.map +1 -1
  190. package/dist/components/verdocs-build.js +1 -1
  191. package/dist/components/verdocs-button-panel.js +1 -1
  192. package/dist/components/verdocs-button.js +1 -1
  193. package/dist/components/verdocs-checkbox.js +1 -1
  194. package/dist/components/verdocs-component-error.js +1 -1
  195. package/dist/components/verdocs-contact-picker.js +1 -1
  196. package/dist/components/verdocs-date-input.js +1 -1
  197. package/dist/components/verdocs-delegate-dialog.js +1 -1
  198. package/dist/components/verdocs-dialog.js +1 -1
  199. package/dist/components/verdocs-disclosure-dialog.js +1 -1
  200. package/dist/components/verdocs-download-dialog.js +1 -1
  201. package/dist/components/verdocs-dropdown.js +1 -1
  202. package/dist/components/verdocs-envelope-document-page.js +1 -1
  203. package/dist/components/verdocs-envelope-recipient-link.js +1 -1
  204. package/dist/components/verdocs-envelope-recipient-summary.js +1 -1
  205. package/dist/components/verdocs-envelope-sidebar.js +1 -1
  206. package/dist/components/verdocs-envelope-update-recipient.js +1 -1
  207. package/dist/components/verdocs-envelopes-list.js +1 -1
  208. package/dist/components/verdocs-field-attachment.js +1 -1
  209. package/dist/components/verdocs-field-checkbox.js +1 -1
  210. package/dist/components/verdocs-field-date.js +1 -1
  211. package/dist/components/verdocs-field-dropdown.js +1 -1
  212. package/dist/components/verdocs-field-initial.js +1 -1
  213. package/dist/components/verdocs-field-payment.js +1 -1
  214. package/dist/components/verdocs-field-radio.js +1 -1
  215. package/dist/components/verdocs-field-signature.js +1 -1
  216. package/dist/components/verdocs-field-textarea.js +1 -1
  217. package/dist/components/verdocs-field-textbox.js +1 -1
  218. package/dist/components/verdocs-field-timestamp.js +1 -1
  219. package/dist/components/verdocs-file-chooser.js +1 -1
  220. package/dist/components/verdocs-flag.js +1 -1
  221. package/dist/components/verdocs-help-icon.js +1 -1
  222. package/dist/components/verdocs-initial-dialog.js +1 -1
  223. package/dist/components/verdocs-kba-dialog.js +1 -1
  224. package/dist/components/verdocs-loader.js +1 -1
  225. package/dist/components/verdocs-menu-panel.js +1 -1
  226. package/dist/components/verdocs-multiselect.js +1 -1
  227. package/dist/components/verdocs-ok-dialog.js +1 -1
  228. package/dist/components/verdocs-organization-card.js +1 -1
  229. package/dist/components/verdocs-organization-card.js.map +1 -1
  230. package/dist/components/verdocs-otp-dialog.js +1 -1
  231. package/dist/components/verdocs-pagination.js +1 -1
  232. package/dist/components/verdocs-passcode-dialog.js +1 -1
  233. package/dist/components/verdocs-portal.js +1 -1
  234. package/dist/components/verdocs-preview.js +1 -1
  235. package/dist/components/verdocs-progress-bar.js +1 -1
  236. package/dist/components/verdocs-question-dialog.js +1 -1
  237. package/dist/components/verdocs-quick-filter.js +1 -1
  238. package/dist/components/verdocs-quick-functions.js +1 -1
  239. package/dist/components/verdocs-radio-button.js +1 -1
  240. package/dist/components/verdocs-search-box.js +1 -1
  241. package/dist/components/verdocs-search-tabs.js +1 -1
  242. package/dist/components/verdocs-select-input.js +1 -1
  243. package/dist/components/verdocs-send.js +1 -1
  244. package/dist/components/verdocs-sign-footer.js +1 -1
  245. package/dist/components/verdocs-sign.js +1 -1
  246. package/dist/components/verdocs-signature-dialog.js +1 -1
  247. package/dist/components/verdocs-signing-progress.js +1 -1
  248. package/dist/components/verdocs-spinner.js +1 -1
  249. package/dist/components/verdocs-status-indicator.js +1 -1
  250. package/dist/components/verdocs-switch.js +1 -1
  251. package/dist/components/verdocs-table.js +1 -1
  252. package/dist/components/verdocs-tabs.js +1 -1
  253. package/dist/components/verdocs-template-attachments.js +1 -1
  254. package/dist/components/verdocs-template-build-tabs.js +1 -1
  255. package/dist/components/verdocs-template-card.js +1 -1
  256. package/dist/components/verdocs-template-create.js +1 -1
  257. package/dist/components/verdocs-template-document-page.js +1 -1
  258. package/dist/components/verdocs-template-field-properties.js +1 -1
  259. package/dist/components/verdocs-template-fields.js +1 -1
  260. package/dist/components/verdocs-template-role-properties.js +1 -1
  261. package/dist/components/verdocs-template-roles.js +1 -1
  262. package/dist/components/verdocs-template-settings.js +1 -1
  263. package/dist/components/verdocs-template-star.js +1 -1
  264. package/dist/components/verdocs-template-tags.js +1 -1
  265. package/dist/components/verdocs-templates-list.js +1 -1
  266. package/dist/components/verdocs-text-input.js +1 -1
  267. package/dist/components/verdocs-toggle-button.js +1 -1
  268. package/dist/components/verdocs-toggle.js +1 -1
  269. package/dist/components/verdocs-toolbar-icon.js +1 -1
  270. package/dist/components/verdocs-upload-dialog.js +1 -1
  271. package/dist/components/verdocs-view.js +1 -1
  272. package/dist/custom-elements.json +2517 -0
  273. package/dist/esm/{Environment-b2u0_wDk.js → Environment-Cq60Emo_.js} +4 -3
  274. package/dist/{esm-es5/Environment-b2u0_wDk.js.map → esm/Environment-Cq60Emo_.js.map} +1 -1
  275. package/dist/esm/{Icons-BU5rnXp2.js → Icons-DobS6Y7w.js} +15 -3
  276. package/dist/{esm-es5/Icons-BU5rnXp2.js.map → esm/Icons-DobS6Y7w.js.map} +1 -1
  277. package/dist/esm/ScrollFade-7UEjZarN.js +19 -0
  278. package/dist/esm/ScrollFade-7UEjZarN.js.map +1 -0
  279. package/dist/esm/loader.js +1 -1
  280. package/dist/esm/verdocs-adopt-signature-dialog_7.entry.js +9 -9
  281. package/dist/esm/verdocs-auth.entry.js +293 -17
  282. package/dist/esm/verdocs-auth.entry.js.map +1 -1
  283. package/dist/esm/verdocs-button-panel.entry.js +2 -2
  284. package/dist/esm/verdocs-button_3.entry.js +6 -6
  285. package/dist/esm/verdocs-checkbox_5.entry.js +4 -4
  286. package/dist/esm/verdocs-contact-picker.entry.js +74 -47
  287. package/dist/esm/verdocs-contact-picker.entry.js.map +1 -1
  288. package/dist/esm/verdocs-date-input.entry.js +2 -2
  289. package/dist/esm/verdocs-dialog.entry.js +1 -1
  290. package/dist/esm/verdocs-download-dialog_4.entry.js +5 -5
  291. package/dist/esm/verdocs-dropdown.entry.js +1 -1
  292. package/dist/esm/verdocs-envelopes-list.entry.js +6 -6
  293. package/dist/esm/verdocs-field-attachment_11.entry.js +2 -2
  294. package/dist/esm/verdocs-field-payment.entry.js +1 -1
  295. package/dist/esm/verdocs-file-chooser_2.entry.js +3 -3
  296. package/dist/esm/verdocs-flag.entry.js +1 -1
  297. package/dist/esm/verdocs-initial-dialog.entry.js +1 -1
  298. package/dist/esm/verdocs-menu-panel_2.entry.js +8 -8
  299. package/dist/esm/verdocs-multiselect.entry.js +1 -1
  300. package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
  301. package/dist/esm/verdocs-organization-card_2.entry.js +2 -2
  302. package/dist/esm/verdocs-pagination_2.entry.js +2 -2
  303. package/dist/esm/verdocs-preview_6.entry.js +255 -33
  304. package/dist/esm/verdocs-preview_6.entry.js.map +1 -1
  305. package/dist/esm/verdocs-quick-functions.entry.js +1 -1
  306. package/dist/esm/verdocs-radio-button.entry.js +1 -1
  307. package/dist/esm/verdocs-search-box.entry.js +1 -1
  308. package/dist/esm/verdocs-search-tabs.entry.js +1 -1
  309. package/dist/esm/verdocs-sign.entry.js +1 -1
  310. package/dist/esm/verdocs-signature-dialog.entry.js +1 -1
  311. package/dist/esm/verdocs-spinner.entry.js +1 -1
  312. package/dist/esm/verdocs-status-indicator.entry.js +2 -2
  313. package/dist/esm/verdocs-switch.entry.js +2 -2
  314. package/dist/esm/verdocs-table.entry.js +2 -2
  315. package/dist/esm/verdocs-tabs.entry.js +1 -1
  316. package/dist/esm/verdocs-template-card.entry.js +1 -1
  317. package/dist/esm/verdocs-template-document-page_2.entry.js +1 -1
  318. package/dist/esm/verdocs-template-star.entry.js +1 -1
  319. package/dist/esm/verdocs-template-tags.entry.js +1 -1
  320. package/dist/esm/verdocs-templates-list.entry.js +7 -7
  321. package/dist/esm/verdocs-toggle-button.entry.js +1 -1
  322. package/dist/esm/verdocs-toggle.entry.js +1 -1
  323. package/dist/esm/verdocs-web-sdk.js +1 -1
  324. package/dist/esm-es5/Environment-Cq60Emo_.js +2 -0
  325. package/dist/{cjs/Environment-C3P2cz0J.js.map → esm-es5/Environment-Cq60Emo_.js.map} +1 -1
  326. package/dist/esm-es5/{Icons-BU5rnXp2.js → Icons-DobS6Y7w.js} +2 -2
  327. package/dist/{esm/Icons-BU5rnXp2.js.map → esm-es5/Icons-DobS6Y7w.js.map} +1 -1
  328. package/dist/esm-es5/ScrollFade-7UEjZarN.js +2 -0
  329. package/dist/esm-es5/ScrollFade-7UEjZarN.js.map +1 -0
  330. package/dist/esm-es5/loader.js +1 -1
  331. package/dist/esm-es5/verdocs-adopt-signature-dialog_7.entry.js +1 -1
  332. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  333. package/dist/esm-es5/verdocs-auth.entry.js.map +1 -1
  334. package/dist/esm-es5/verdocs-button-panel.entry.js +1 -1
  335. package/dist/esm-es5/verdocs-button_3.entry.js +1 -1
  336. package/dist/esm-es5/verdocs-checkbox_5.entry.js +1 -1
  337. package/dist/esm-es5/verdocs-contact-picker.entry.js +1 -1
  338. package/dist/esm-es5/verdocs-contact-picker.entry.js.map +1 -1
  339. package/dist/esm-es5/verdocs-date-input.entry.js +1 -1
  340. package/dist/esm-es5/verdocs-dialog.entry.js +1 -1
  341. package/dist/esm-es5/verdocs-download-dialog_4.entry.js +1 -1
  342. package/dist/esm-es5/verdocs-dropdown.entry.js +1 -1
  343. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  344. package/dist/esm-es5/verdocs-field-attachment_11.entry.js +1 -1
  345. package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
  346. package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
  347. package/dist/esm-es5/verdocs-flag.entry.js +1 -1
  348. package/dist/esm-es5/verdocs-initial-dialog.entry.js +1 -1
  349. package/dist/esm-es5/verdocs-menu-panel_2.entry.js +1 -1
  350. package/dist/esm-es5/verdocs-multiselect.entry.js +1 -1
  351. package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
  352. package/dist/esm-es5/verdocs-organization-card_2.entry.js +1 -1
  353. package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
  354. package/dist/esm-es5/verdocs-preview_6.entry.js +2 -2
  355. package/dist/esm-es5/verdocs-preview_6.entry.js.map +1 -1
  356. package/dist/esm-es5/verdocs-quick-functions.entry.js +1 -1
  357. package/dist/esm-es5/verdocs-radio-button.entry.js +1 -1
  358. package/dist/esm-es5/verdocs-search-box.entry.js +1 -1
  359. package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
  360. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  361. package/dist/esm-es5/verdocs-signature-dialog.entry.js +1 -1
  362. package/dist/esm-es5/verdocs-spinner.entry.js +1 -1
  363. package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
  364. package/dist/esm-es5/verdocs-switch.entry.js +1 -1
  365. package/dist/esm-es5/verdocs-table.entry.js +1 -1
  366. package/dist/esm-es5/verdocs-tabs.entry.js +1 -1
  367. package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
  368. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  369. package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
  370. package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
  371. package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
  372. package/dist/esm-es5/verdocs-toggle-button.entry.js +1 -1
  373. package/dist/esm-es5/verdocs-toggle.entry.js +1 -1
  374. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  375. package/dist/types/components/embeds/verdocs-auth/verdocs-auth.d.ts +33 -3
  376. package/dist/types/components/embeds/verdocs-send/verdocs-send.d.ts +64 -17
  377. package/dist/types/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.d.ts +17 -0
  378. package/dist/types/components.d.ts +49 -12
  379. package/dist/types/utils/Environment.d.ts +1 -0
  380. package/dist/types/utils/Icons.d.ts +2 -0
  381. package/dist/types/utils/ScrollFade.d.ts +5 -0
  382. package/dist/verdocs-web-sdk/{p-006f051b.system.entry.js → p-0259b666.system.entry.js} +2 -2
  383. package/dist/verdocs-web-sdk/{p-66375e80.system.entry.js → p-053026c5.system.entry.js} +2 -2
  384. package/dist/verdocs-web-sdk/{p-1d100b90.system.entry.js → p-08dbefe5.system.entry.js} +2 -2
  385. package/dist/verdocs-web-sdk/{p-869024e0.system.entry.js → p-122f8333.system.entry.js} +2 -2
  386. package/dist/verdocs-web-sdk/{p-e2acf751.system.entry.js → p-143428bc.system.entry.js} +2 -2
  387. package/dist/verdocs-web-sdk/{p-4ea0632f.entry.js → p-1a91a922.entry.js} +2 -2
  388. package/dist/verdocs-web-sdk/p-1fbed8c0.entry.js +2 -0
  389. package/dist/verdocs-web-sdk/{p-52f3ccb3.entry.js → p-208bbc49.entry.js} +2 -2
  390. package/dist/verdocs-web-sdk/{p-5aca9c76.system.entry.js → p-20bc8055.system.entry.js} +2 -2
  391. package/dist/verdocs-web-sdk/{p-66144da6.entry.js → p-2197fb39.entry.js} +2 -2
  392. package/dist/verdocs-web-sdk/{p-08de250b.system.entry.js → p-23f53034.system.entry.js} +2 -2
  393. package/dist/verdocs-web-sdk/{p-c72daca8.system.entry.js → p-27a47940.system.entry.js} +2 -2
  394. package/dist/verdocs-web-sdk/{p-734c8a8b.entry.js → p-2a6a3bc6.entry.js} +2 -2
  395. package/dist/verdocs-web-sdk/{p-67ccf629.entry.js → p-2da68853.entry.js} +2 -2
  396. package/dist/verdocs-web-sdk/{p-871792ab.entry.js → p-2e382167.entry.js} +2 -2
  397. package/dist/verdocs-web-sdk/p-301f0247.entry.js +2 -0
  398. package/dist/verdocs-web-sdk/p-301f0247.entry.js.map +1 -0
  399. package/dist/verdocs-web-sdk/{p-5f58b4cd.entry.js → p-375a7dea.entry.js} +2 -2
  400. package/dist/verdocs-web-sdk/p-38800961.system.entry.js +2 -0
  401. package/dist/verdocs-web-sdk/p-38800961.system.entry.js.map +1 -0
  402. package/dist/verdocs-web-sdk/{p-431ed4cf.entry.js → p-3a5d4aa0.entry.js} +2 -2
  403. package/dist/verdocs-web-sdk/{p-c5d0abe5.system.entry.js → p-3f9102c4.system.entry.js} +2 -2
  404. package/dist/verdocs-web-sdk/{p-5d532790.entry.js → p-418f3dd2.entry.js} +2 -2
  405. package/dist/verdocs-web-sdk/{p-51a3c97d.system.entry.js → p-4227fb1f.system.entry.js} +2 -2
  406. package/dist/verdocs-web-sdk/{p-62464041.system.entry.js → p-439d36b0.system.entry.js} +2 -2
  407. package/dist/verdocs-web-sdk/{p-b73405ad.system.entry.js → p-44ecadef.system.entry.js} +2 -2
  408. package/dist/verdocs-web-sdk/{p-d9e8be34.entry.js → p-46d6279e.entry.js} +2 -2
  409. package/dist/verdocs-web-sdk/{p-21b8567c.entry.js → p-478de2c9.entry.js} +2 -2
  410. package/dist/verdocs-web-sdk/{p-d95705c6.entry.js → p-4930b31d.entry.js} +2 -2
  411. package/dist/verdocs-web-sdk/{p-1bae66d5.system.entry.js → p-4c1f0f08.system.entry.js} +2 -2
  412. package/dist/verdocs-web-sdk/p-502ebdcc.system.entry.js +2 -0
  413. package/dist/verdocs-web-sdk/p-502ebdcc.system.entry.js.map +1 -0
  414. package/dist/verdocs-web-sdk/p-52621662.entry.js +2 -0
  415. package/dist/verdocs-web-sdk/{p-c86111fd.system.entry.js → p-5404f6bf.system.entry.js} +2 -2
  416. package/dist/verdocs-web-sdk/{p-f32fde74.entry.js → p-5455e818.entry.js} +2 -2
  417. package/dist/verdocs-web-sdk/{p-79fdd519.entry.js → p-54ab818c.entry.js} +2 -2
  418. package/dist/verdocs-web-sdk/{p-4f5e39eb.system.entry.js → p-5870592f.system.entry.js} +2 -2
  419. package/dist/verdocs-web-sdk/{p-0b7c0d25.entry.js → p-590900d7.entry.js} +2 -2
  420. package/dist/verdocs-web-sdk/{p-fafc51b9.system.entry.js → p-5c27f03b.system.entry.js} +2 -2
  421. package/dist/verdocs-web-sdk/p-634a7187.entry.js +2 -0
  422. package/dist/verdocs-web-sdk/p-634a7187.entry.js.map +1 -0
  423. package/dist/verdocs-web-sdk/{p-9f65fa0d.system.entry.js → p-679511ac.system.entry.js} +2 -2
  424. package/dist/verdocs-web-sdk/{p-7e1f895c.entry.js → p-6a3ca6bf.entry.js} +2 -2
  425. package/dist/verdocs-web-sdk/{p-a65e1762.system.entry.js → p-6fb7fd6d.system.entry.js} +2 -2
  426. package/dist/verdocs-web-sdk/{p-5b49bd49.entry.js → p-723d6bde.entry.js} +2 -2
  427. package/dist/verdocs-web-sdk/p-788c8d67.system.entry.js +8 -0
  428. package/dist/verdocs-web-sdk/p-788c8d67.system.entry.js.map +1 -0
  429. package/dist/verdocs-web-sdk/p-7UEjZarN.js +2 -0
  430. package/dist/verdocs-web-sdk/p-7UEjZarN.js.map +1 -0
  431. package/dist/verdocs-web-sdk/p-7cb69139.system.entry.js +2 -0
  432. package/dist/verdocs-web-sdk/{p-f12fcb84.entry.js → p-7d3955b7.entry.js} +2 -2
  433. package/dist/verdocs-web-sdk/{p-5f92320e.system.entry.js → p-7dd394be.system.entry.js} +2 -2
  434. package/dist/verdocs-web-sdk/{p-112ff1d7.system.entry.js → p-81785ed8.system.entry.js} +2 -2
  435. package/dist/verdocs-web-sdk/{p-629301d3.system.entry.js → p-82723d6c.system.entry.js} +2 -2
  436. package/dist/verdocs-web-sdk/{p-26b82394.entry.js → p-84275b8d.entry.js} +2 -2
  437. package/dist/verdocs-web-sdk/{p-df1262b2.entry.js → p-8ec770c3.entry.js} +2 -2
  438. package/dist/verdocs-web-sdk/{p-c45927e3.system.entry.js → p-9048f998.system.entry.js} +2 -2
  439. package/dist/verdocs-web-sdk/{p-61f66f45.entry.js → p-92f51592.entry.js} +2 -2
  440. package/dist/verdocs-web-sdk/{p-2edfa589.entry.js → p-9538ac0e.entry.js} +2 -2
  441. package/dist/verdocs-web-sdk/{p-9cae97dc.system.entry.js → p-97bd4ed2.system.entry.js} +2 -2
  442. package/dist/verdocs-web-sdk/{p-f0e794bc.entry.js → p-97fadf95.entry.js} +2 -2
  443. package/dist/verdocs-web-sdk/p-987d5653.entry.js +8 -0
  444. package/dist/verdocs-web-sdk/p-987d5653.entry.js.map +1 -0
  445. package/dist/verdocs-web-sdk/{p-ba0d4ff5.system.entry.js → p-99a6b317.system.entry.js} +2 -2
  446. package/dist/verdocs-web-sdk/{p-4a157584.entry.js → p-9bd55619.entry.js} +2 -2
  447. package/dist/verdocs-web-sdk/{p-147256a8.system.entry.js → p-9bd688f5.system.entry.js} +2 -2
  448. package/dist/verdocs-web-sdk/{p-349a2532.entry.js → p-9f3a2cef.entry.js} +2 -2
  449. package/dist/verdocs-web-sdk/{p-GqS1qR-V.system.js → p-BHF3ByWV.system.js} +2 -2
  450. package/dist/verdocs-web-sdk/{p-GqS1qR-V.system.js.map → p-BHF3ByWV.system.js.map} +1 -1
  451. package/dist/verdocs-web-sdk/p-BXtgiveQ.system.js +2 -0
  452. package/dist/verdocs-web-sdk/{p-COHG5J4h.system.js.map → p-BXtgiveQ.system.js.map} +1 -1
  453. package/dist/verdocs-web-sdk/p-BdZ5Ghsa.system.js +1 -1
  454. package/dist/verdocs-web-sdk/p-CE9CFlX9.system.js +2 -0
  455. package/dist/verdocs-web-sdk/p-CE9CFlX9.system.js.map +1 -0
  456. package/dist/verdocs-web-sdk/p-Cq60Emo_.js +2 -0
  457. package/dist/verdocs-web-sdk/{p-b2u0_wDk.js.map → p-Cq60Emo_.js.map} +1 -1
  458. package/dist/{components/p-BDv5kBUR.js → verdocs-web-sdk/p-DobS6Y7w.js} +2 -2
  459. package/dist/verdocs-web-sdk/{p-BU5rnXp2.js.map → p-DobS6Y7w.js.map} +1 -1
  460. package/dist/verdocs-web-sdk/{p-34ae1f00.system.entry.js → p-a1d9a507.system.entry.js} +2 -2
  461. package/dist/verdocs-web-sdk/{p-d26c81ec.entry.js → p-af133520.entry.js} +2 -2
  462. package/dist/verdocs-web-sdk/{p-e50ec253.entry.js → p-afd010d6.entry.js} +2 -2
  463. package/dist/verdocs-web-sdk/{p-b5572507.system.entry.js → p-b2113b3c.system.entry.js} +2 -2
  464. package/dist/verdocs-web-sdk/{p-9c9d49cd.entry.js → p-b5997615.entry.js} +2 -2
  465. package/dist/verdocs-web-sdk/{p-ee92c074.entry.js → p-bf38aa98.entry.js} +2 -2
  466. package/dist/verdocs-web-sdk/{p-cfc2d31b.system.entry.js → p-c00eccde.system.entry.js} +2 -2
  467. package/dist/verdocs-web-sdk/{p-6e8ce989.system.entry.js → p-c5f8125b.system.entry.js} +2 -2
  468. package/dist/verdocs-web-sdk/{p-34829b57.system.entry.js → p-c8b08801.system.entry.js} +2 -2
  469. package/dist/verdocs-web-sdk/{p-665748fe.entry.js → p-cd8ac44e.entry.js} +2 -2
  470. package/dist/verdocs-web-sdk/{p-0893bd27.entry.js → p-cdcef698.entry.js} +2 -2
  471. package/dist/verdocs-web-sdk/{p-83d23528.system.entry.js → p-ced860ec.system.entry.js} +2 -2
  472. package/dist/verdocs-web-sdk/{p-6379773e.system.entry.js → p-d0b56329.system.entry.js} +2 -2
  473. package/dist/verdocs-web-sdk/{p-97fcac5e.system.entry.js → p-d6e9c671.system.entry.js} +2 -2
  474. package/dist/verdocs-web-sdk/{p-ceda04bc.system.entry.js → p-df921f12.system.entry.js} +2 -2
  475. package/dist/verdocs-web-sdk/{p-0e2505e5.entry.js → p-e9158fec.entry.js} +2 -2
  476. package/dist/verdocs-web-sdk/{p-a06772cc.system.entry.js → p-ea2c3707.system.entry.js} +2 -2
  477. package/dist/verdocs-web-sdk/{p-38bdedc5.system.entry.js → p-f20b49d6.system.entry.js} +2 -2
  478. package/dist/verdocs-web-sdk/{p-10d47bbd.entry.js → p-f6ad24c5.entry.js} +2 -2
  479. package/dist/verdocs-web-sdk/{p-11d11e68.entry.js → p-f97233a8.entry.js} +2 -2
  480. package/dist/verdocs-web-sdk/{p-eccd653b.entry.js → p-fea6fe32.entry.js} +2 -2
  481. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  482. package/package.json +10 -4
  483. package/dist/components/p-6RWROB9R.js +0 -2
  484. package/dist/components/p-6RWROB9R.js.map +0 -1
  485. package/dist/components/p-B1UVXqFA.js +0 -2
  486. package/dist/components/p-BDv5kBUR.js.map +0 -1
  487. package/dist/components/p-Ck4pdoyc.js +0 -2
  488. package/dist/components/p-Ck4pdoyc.js.map +0 -1
  489. package/dist/components/p-DTE1GYJt.js +0 -2
  490. package/dist/components/p-Dc3BDcaU.js +0 -2
  491. package/dist/components/p-JGWMBIGy.js +0 -2
  492. package/dist/components/p-b2u0_wDk.js +0 -2
  493. package/dist/components/p-b2u0_wDk.js.map +0 -1
  494. package/dist/components/p-rasc67fl.js +0 -2
  495. package/dist/esm-es5/Environment-b2u0_wDk.js +0 -2
  496. package/dist/verdocs-web-sdk/p-16d655d4.system.entry.js +0 -2
  497. package/dist/verdocs-web-sdk/p-16d655d4.system.entry.js.map +0 -1
  498. package/dist/verdocs-web-sdk/p-35f1973a.entry.js +0 -2
  499. package/dist/verdocs-web-sdk/p-39c54b65.system.entry.js +0 -2
  500. package/dist/verdocs-web-sdk/p-39c54b65.system.entry.js.map +0 -1
  501. package/dist/verdocs-web-sdk/p-43ee0267.entry.js +0 -2
  502. package/dist/verdocs-web-sdk/p-43ee0267.entry.js.map +0 -1
  503. package/dist/verdocs-web-sdk/p-4e0788f9.entry.js +0 -2
  504. package/dist/verdocs-web-sdk/p-4e0788f9.entry.js.map +0 -1
  505. package/dist/verdocs-web-sdk/p-4e091415.entry.js +0 -8
  506. package/dist/verdocs-web-sdk/p-4e091415.entry.js.map +0 -1
  507. package/dist/verdocs-web-sdk/p-5608f245.entry.js +0 -2
  508. package/dist/verdocs-web-sdk/p-COHG5J4h.system.js +0 -2
  509. package/dist/verdocs-web-sdk/p-abe7c086.system.entry.js +0 -2
  510. package/dist/verdocs-web-sdk/p-b2u0_wDk.js +0 -2
  511. package/dist/verdocs-web-sdk/p-fad90cf9.system.entry.js +0 -8
  512. package/dist/verdocs-web-sdk/p-fad90cf9.system.entry.js.map +0 -1
  513. /package/dist/components/{p-K_PKw6bs.js.map → p-1FjgijEi.js.map} +0 -0
  514. /package/dist/components/{p-aj0qlBQ1.js.map → p-8J_y0V9M.js.map} +0 -0
  515. /package/dist/components/{p-DKKsPZnz.js.map → p-9kEZy9MP.js.map} +0 -0
  516. /package/dist/components/{p-DavVixMP.js.map → p-B-ul_Soj.js.map} +0 -0
  517. /package/dist/components/{p-D-TexkaT.js.map → p-B1AE2j97.js.map} +0 -0
  518. /package/dist/components/{p-DfIxVX8-.js.map → p-B4tpmyon.js.map} +0 -0
  519. /package/dist/components/{p-CsF979IT.js.map → p-BBCy2Hy2.js.map} +0 -0
  520. /package/dist/components/{p-D1cSgqut.js.map → p-BKLlc2r0.js.map} +0 -0
  521. /package/dist/components/{p-Dw7l6M37.js.map → p-BSUeI3vF.js.map} +0 -0
  522. /package/dist/components/{p-CAGp0qKc.js.map → p-BSX4GfGg.js.map} +0 -0
  523. /package/dist/components/{p-Cujbc8tg.js.map → p-BTrjJycH.js.map} +0 -0
  524. /package/dist/components/{p-C0SHIuoK.js.map → p-Bb5V9TQx.js.map} +0 -0
  525. /package/dist/components/{p-CYvB5bYX.js.map → p-BhG0HGg6.js.map} +0 -0
  526. /package/dist/components/{p-u9H54zUE.js.map → p-Bodw4NVB.js.map} +0 -0
  527. /package/dist/components/{p-BWrwPDuU.js.map → p-Bxvw_LqR.js.map} +0 -0
  528. /package/dist/components/{p--jRXEN0c.js.map → p-C-v22G3g.js.map} +0 -0
  529. /package/dist/components/{p-D9yawpPk.js.map → p-C8yiLtCJ.js.map} +0 -0
  530. /package/dist/components/{p-bPe0_Dsn.js.map → p-CEcG_ay-.js.map} +0 -0
  531. /package/dist/components/{p-BELGzhZw.js.map → p-CFacV7mg.js.map} +0 -0
  532. /package/dist/components/{p-BQUZjuoP.js.map → p-CQzPkAVQ.js.map} +0 -0
  533. /package/dist/components/{p-BMzxhyLu.js.map → p-CdnjpaJt.js.map} +0 -0
  534. /package/dist/components/{p-CZwyK_uo.js.map → p-Cij_2Ym2.js.map} +0 -0
  535. /package/dist/components/{p-CjUdD_Dm.js.map → p-Cly5sH3M.js.map} +0 -0
  536. /package/dist/components/{p-nh9PxN8s.js.map → p-CnD-TaPJ.js.map} +0 -0
  537. /package/dist/components/{p-DJMr11ue.js.map → p-CqBZmEjI.js.map} +0 -0
  538. /package/dist/components/{p-B6aUlIQe.js.map → p-D-X-Zcsr.js.map} +0 -0
  539. /package/dist/components/{p-DiYuPnJJ.js.map → p-D0MFs2Dv.js.map} +0 -0
  540. /package/dist/components/{p-D17kbVUt.js.map → p-D4wfy1ym.js.map} +0 -0
  541. /package/dist/components/{p-CAxzfAvp.js.map → p-DFbeKrpm.js.map} +0 -0
  542. /package/dist/components/{p-DVx4efoX.js.map → p-DGNIsXfr.js.map} +0 -0
  543. /package/dist/components/{p-CxIhMndz.js.map → p-DHzSlpJw.js.map} +0 -0
  544. /package/dist/components/{p-LYpUmpqf.js.map → p-DM3wePVp.js.map} +0 -0
  545. /package/dist/components/{p-BYVQkYYg.js.map → p-DRP4Xxiu.js.map} +0 -0
  546. /package/dist/components/{p-CVjehb2X.js.map → p-DTG2X1A2.js.map} +0 -0
  547. /package/dist/components/{p-ByJ9WBGR.js.map → p-DeAwyTxI.js.map} +0 -0
  548. /package/dist/components/{p-CIgqf7hj.js.map → p-DhOuB4nS.js.map} +0 -0
  549. /package/dist/components/{p-vimrvRye.js.map → p-DqzFuSNN.js.map} +0 -0
  550. /package/dist/components/{p-CoeB7U-_.js.map → p-DreV6Npp.js.map} +0 -0
  551. /package/dist/components/{p-B0HO2i65.js.map → p-DsSqGIBJ.js.map} +0 -0
  552. /package/dist/components/{p-Dj-aIazM.js.map → p-DscL0SIM.js.map} +0 -0
  553. /package/dist/components/{p-B7fdmef7.js.map → p-DslyN9XL.js.map} +0 -0
  554. /package/dist/components/{p-CLtldaUs.js.map → p-E2hWLZ47.js.map} +0 -0
  555. /package/dist/components/{p-DL4-aTsZ.js.map → p-Lo1dCgyv.js.map} +0 -0
  556. /package/dist/components/{p-BMGs9CCD.js.map → p-PfdIkMoz.js.map} +0 -0
  557. /package/dist/components/{p-BD2vHbCJ.js.map → p-Q-li_kJ_.js.map} +0 -0
  558. /package/dist/components/{p-BLo_-c7G.js.map → p-eg4Uf0xS.js.map} +0 -0
  559. /package/dist/components/{p-D7oMWhqM.js.map → p-ek0LNMtb.js.map} +0 -0
  560. /package/dist/components/{p-C1iHkDUH.js.map → p-gPd3OG7X.js.map} +0 -0
  561. /package/dist/components/{p-CVF-R2yg.js.map → p-kHTZa3Ev.js.map} +0 -0
  562. /package/dist/components/{p-F1PgSiVa.js.map → p-nxPMK2PN.js.map} +0 -0
  563. /package/dist/verdocs-web-sdk/{p-006f051b.system.entry.js.map → p-0259b666.system.entry.js.map} +0 -0
  564. /package/dist/verdocs-web-sdk/{p-66375e80.system.entry.js.map → p-053026c5.system.entry.js.map} +0 -0
  565. /package/dist/verdocs-web-sdk/{p-1d100b90.system.entry.js.map → p-08dbefe5.system.entry.js.map} +0 -0
  566. /package/dist/verdocs-web-sdk/{p-869024e0.system.entry.js.map → p-122f8333.system.entry.js.map} +0 -0
  567. /package/dist/verdocs-web-sdk/{p-e2acf751.system.entry.js.map → p-143428bc.system.entry.js.map} +0 -0
  568. /package/dist/verdocs-web-sdk/{p-4ea0632f.entry.js.map → p-1a91a922.entry.js.map} +0 -0
  569. /package/dist/verdocs-web-sdk/{p-35f1973a.entry.js.map → p-1fbed8c0.entry.js.map} +0 -0
  570. /package/dist/verdocs-web-sdk/{p-52f3ccb3.entry.js.map → p-208bbc49.entry.js.map} +0 -0
  571. /package/dist/verdocs-web-sdk/{p-5aca9c76.system.entry.js.map → p-20bc8055.system.entry.js.map} +0 -0
  572. /package/dist/verdocs-web-sdk/{p-66144da6.entry.js.map → p-2197fb39.entry.js.map} +0 -0
  573. /package/dist/verdocs-web-sdk/{p-08de250b.system.entry.js.map → p-23f53034.system.entry.js.map} +0 -0
  574. /package/dist/verdocs-web-sdk/{p-c72daca8.system.entry.js.map → p-27a47940.system.entry.js.map} +0 -0
  575. /package/dist/verdocs-web-sdk/{p-734c8a8b.entry.js.map → p-2a6a3bc6.entry.js.map} +0 -0
  576. /package/dist/verdocs-web-sdk/{p-67ccf629.entry.js.map → p-2da68853.entry.js.map} +0 -0
  577. /package/dist/verdocs-web-sdk/{p-871792ab.entry.js.map → p-2e382167.entry.js.map} +0 -0
  578. /package/dist/verdocs-web-sdk/{p-5f58b4cd.entry.js.map → p-375a7dea.entry.js.map} +0 -0
  579. /package/dist/verdocs-web-sdk/{p-431ed4cf.entry.js.map → p-3a5d4aa0.entry.js.map} +0 -0
  580. /package/dist/verdocs-web-sdk/{p-c5d0abe5.system.entry.js.map → p-3f9102c4.system.entry.js.map} +0 -0
  581. /package/dist/verdocs-web-sdk/{p-5d532790.entry.js.map → p-418f3dd2.entry.js.map} +0 -0
  582. /package/dist/verdocs-web-sdk/{p-51a3c97d.system.entry.js.map → p-4227fb1f.system.entry.js.map} +0 -0
  583. /package/dist/verdocs-web-sdk/{p-62464041.system.entry.js.map → p-439d36b0.system.entry.js.map} +0 -0
  584. /package/dist/verdocs-web-sdk/{p-b73405ad.system.entry.js.map → p-44ecadef.system.entry.js.map} +0 -0
  585. /package/dist/verdocs-web-sdk/{p-d9e8be34.entry.js.map → p-46d6279e.entry.js.map} +0 -0
  586. /package/dist/verdocs-web-sdk/{p-21b8567c.entry.js.map → p-478de2c9.entry.js.map} +0 -0
  587. /package/dist/verdocs-web-sdk/{p-d95705c6.entry.js.map → p-4930b31d.entry.js.map} +0 -0
  588. /package/dist/verdocs-web-sdk/{p-1bae66d5.system.entry.js.map → p-4c1f0f08.system.entry.js.map} +0 -0
  589. /package/dist/verdocs-web-sdk/{p-5608f245.entry.js.map → p-52621662.entry.js.map} +0 -0
  590. /package/dist/verdocs-web-sdk/{p-c86111fd.system.entry.js.map → p-5404f6bf.system.entry.js.map} +0 -0
  591. /package/dist/verdocs-web-sdk/{p-f32fde74.entry.js.map → p-5455e818.entry.js.map} +0 -0
  592. /package/dist/verdocs-web-sdk/{p-79fdd519.entry.js.map → p-54ab818c.entry.js.map} +0 -0
  593. /package/dist/verdocs-web-sdk/{p-4f5e39eb.system.entry.js.map → p-5870592f.system.entry.js.map} +0 -0
  594. /package/dist/verdocs-web-sdk/{p-0b7c0d25.entry.js.map → p-590900d7.entry.js.map} +0 -0
  595. /package/dist/verdocs-web-sdk/{p-fafc51b9.system.entry.js.map → p-5c27f03b.system.entry.js.map} +0 -0
  596. /package/dist/verdocs-web-sdk/{p-9f65fa0d.system.entry.js.map → p-679511ac.system.entry.js.map} +0 -0
  597. /package/dist/verdocs-web-sdk/{p-7e1f895c.entry.js.map → p-6a3ca6bf.entry.js.map} +0 -0
  598. /package/dist/verdocs-web-sdk/{p-a65e1762.system.entry.js.map → p-6fb7fd6d.system.entry.js.map} +0 -0
  599. /package/dist/verdocs-web-sdk/{p-5b49bd49.entry.js.map → p-723d6bde.entry.js.map} +0 -0
  600. /package/dist/verdocs-web-sdk/{p-abe7c086.system.entry.js.map → p-7cb69139.system.entry.js.map} +0 -0
  601. /package/dist/verdocs-web-sdk/{p-f12fcb84.entry.js.map → p-7d3955b7.entry.js.map} +0 -0
  602. /package/dist/verdocs-web-sdk/{p-5f92320e.system.entry.js.map → p-7dd394be.system.entry.js.map} +0 -0
  603. /package/dist/verdocs-web-sdk/{p-112ff1d7.system.entry.js.map → p-81785ed8.system.entry.js.map} +0 -0
  604. /package/dist/verdocs-web-sdk/{p-629301d3.system.entry.js.map → p-82723d6c.system.entry.js.map} +0 -0
  605. /package/dist/verdocs-web-sdk/{p-26b82394.entry.js.map → p-84275b8d.entry.js.map} +0 -0
  606. /package/dist/verdocs-web-sdk/{p-df1262b2.entry.js.map → p-8ec770c3.entry.js.map} +0 -0
  607. /package/dist/verdocs-web-sdk/{p-c45927e3.system.entry.js.map → p-9048f998.system.entry.js.map} +0 -0
  608. /package/dist/verdocs-web-sdk/{p-61f66f45.entry.js.map → p-92f51592.entry.js.map} +0 -0
  609. /package/dist/verdocs-web-sdk/{p-2edfa589.entry.js.map → p-9538ac0e.entry.js.map} +0 -0
  610. /package/dist/verdocs-web-sdk/{p-9cae97dc.system.entry.js.map → p-97bd4ed2.system.entry.js.map} +0 -0
  611. /package/dist/verdocs-web-sdk/{p-f0e794bc.entry.js.map → p-97fadf95.entry.js.map} +0 -0
  612. /package/dist/verdocs-web-sdk/{p-ba0d4ff5.system.entry.js.map → p-99a6b317.system.entry.js.map} +0 -0
  613. /package/dist/verdocs-web-sdk/{p-4a157584.entry.js.map → p-9bd55619.entry.js.map} +0 -0
  614. /package/dist/verdocs-web-sdk/{p-147256a8.system.entry.js.map → p-9bd688f5.system.entry.js.map} +0 -0
  615. /package/dist/verdocs-web-sdk/{p-349a2532.entry.js.map → p-9f3a2cef.entry.js.map} +0 -0
  616. /package/dist/verdocs-web-sdk/{p-34ae1f00.system.entry.js.map → p-a1d9a507.system.entry.js.map} +0 -0
  617. /package/dist/verdocs-web-sdk/{p-d26c81ec.entry.js.map → p-af133520.entry.js.map} +0 -0
  618. /package/dist/verdocs-web-sdk/{p-e50ec253.entry.js.map → p-afd010d6.entry.js.map} +0 -0
  619. /package/dist/verdocs-web-sdk/{p-b5572507.system.entry.js.map → p-b2113b3c.system.entry.js.map} +0 -0
  620. /package/dist/verdocs-web-sdk/{p-9c9d49cd.entry.js.map → p-b5997615.entry.js.map} +0 -0
  621. /package/dist/verdocs-web-sdk/{p-ee92c074.entry.js.map → p-bf38aa98.entry.js.map} +0 -0
  622. /package/dist/verdocs-web-sdk/{p-cfc2d31b.system.entry.js.map → p-c00eccde.system.entry.js.map} +0 -0
  623. /package/dist/verdocs-web-sdk/{p-6e8ce989.system.entry.js.map → p-c5f8125b.system.entry.js.map} +0 -0
  624. /package/dist/verdocs-web-sdk/{p-34829b57.system.entry.js.map → p-c8b08801.system.entry.js.map} +0 -0
  625. /package/dist/verdocs-web-sdk/{p-665748fe.entry.js.map → p-cd8ac44e.entry.js.map} +0 -0
  626. /package/dist/verdocs-web-sdk/{p-0893bd27.entry.js.map → p-cdcef698.entry.js.map} +0 -0
  627. /package/dist/verdocs-web-sdk/{p-83d23528.system.entry.js.map → p-ced860ec.system.entry.js.map} +0 -0
  628. /package/dist/verdocs-web-sdk/{p-6379773e.system.entry.js.map → p-d0b56329.system.entry.js.map} +0 -0
  629. /package/dist/verdocs-web-sdk/{p-97fcac5e.system.entry.js.map → p-d6e9c671.system.entry.js.map} +0 -0
  630. /package/dist/verdocs-web-sdk/{p-ceda04bc.system.entry.js.map → p-df921f12.system.entry.js.map} +0 -0
  631. /package/dist/verdocs-web-sdk/{p-0e2505e5.entry.js.map → p-e9158fec.entry.js.map} +0 -0
  632. /package/dist/verdocs-web-sdk/{p-a06772cc.system.entry.js.map → p-ea2c3707.system.entry.js.map} +0 -0
  633. /package/dist/verdocs-web-sdk/{p-38bdedc5.system.entry.js.map → p-f20b49d6.system.entry.js.map} +0 -0
  634. /package/dist/verdocs-web-sdk/{p-10d47bbd.entry.js.map → p-f6ad24c5.entry.js.map} +0 -0
  635. /package/dist/verdocs-web-sdk/{p-11d11e68.entry.js.map → p-f97233a8.entry.js.map} +0 -0
  636. /package/dist/verdocs-web-sdk/{p-eccd653b.entry.js.map → p-fea6fe32.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- System.register(["./p-De3fNE_u.system.js"],(function(i){"use strict";var t,e,n,a;return{setters:[function(i){t=i.r;e=i.c;n=i.h;a=i.H}],execute:function(){var o=function(){return'verdocs-initial-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;position:fixed;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:rgba(0, 0, 0, 0.4980392157)}verdocs-initial-dialog .dialog{width:100%;max-width:340px;border-radius:4px;overflow:hidden;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);background:#f9f9f9}verdocs-initial-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:20px 20px 0 20px;line-height:28px;font-size:20px;font-weight:500}verdocs-initial-dialog .content{font-size:14px;padding:20px}verdocs-initial-dialog .buttons{display:-ms-flexbox;display:flex;margin:20px 0 0 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center}verdocs-initial-dialog .buttons verdocs-button{margin-left:16px}verdocs-initial-dialog canvas{background:#fff;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 auto;width:300px;height:79px;max-width:100%;-webkit-box-shadow:0 0 6px 0 rgba(0, 0, 0, 0.1215686275);box-shadow:0 0 6px 0 rgba(0, 0, 0, 0.1215686275)}verdocs-initial-dialog .disclaimer{text-align:justify;padding:8px 0;font-size:11px;line-height:14px;color:rgba(0, 0, 0, 0.54)}verdocs-initial-dialog .as-shown{font-size:11px;margin:4px 0 20px 4px;color:rgba(0, 0, 0, 0.54)}verdocs-initial-dialog .tabs{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-initial-dialog .tabs .tab{padding:8px 15px;cursor:pointer}verdocs-initial-dialog .tabs .tab.active{border-bottom:2px solid #cccccc}verdocs-initial-dialog .tabs .tab:hover{color:#55bc81}'};var s=i("verdocs_initial_dialog",function(){function i(i){t(this,i);this.next=e(this,"next");this.exit=e(this,"exit");this.initials="";this.fontLoaded=false;this.enteredInitials="";this.mode="type"}i.prototype.componentWillLoad=function(){var i=this;this.enteredInitials=this.initials.toUpperCase();var t=new FontFace("Dancing Script","url(https://fonts.gstatic.com/s/dancingscript/v19/If2cXTr6YS-zF4S-kcSWSVi_sxjsohD9F50Ruu7BMSo3Sup6hNX6plRP.woff)");t.load().then((function(t){document.fonts.add(t);i.fontLoaded=true}))};i.prototype.componentDidLoad=function(){this.redrawSignature()};i.prototype.componentDidUpdate=function(){this.redrawSignature()};i.prototype.redrawSignature=function(){if(!this.canvasElement){return}var i=this.canvasElement.width;var t=this.canvasElement.getContext("2d");t.clearRect(0,0,this.canvasElement.width,this.canvasElement.height);var e=100;do{e-=2;t.font="".concat(e,"px Dancing Script")}while(t.measureText(this.enteredInitials).width>i-32);t.textAlign="center";t.textBaseline="middle";t.font="".concat(e,"px Dancing Script");t.fillText(this.enteredInitials,this.canvasElement.width/2,this.canvasElement.height/2)};i.prototype.handleNameChange=function(i){this.enteredInitials=i.target.value};i.prototype.handleCancel=function(i){i.stopPropagation();i.preventDefault();this.exit.emit()};i.prototype.handleAdopt=function(i){i.stopPropagation();i.preventDefault();var t=this.canvasElement.toDataURL("image/png");this.next.emit(t)};i.prototype.render=function(){var i=this;return n(a,{key:"992dade090d8617ad7ab47caf5a178cca0d3016d",onClick:function(t){return i.handleCancel(t)}},n("div",{key:"49c8c0a53cefd2c456eca43b20b2b03d1ad40e8b",class:"dialog"},n("div",{key:"ac343aab6885db77015a245b631612227db6af0a",class:"heading"},"Create Your Initial"),n("div",{key:"6c3bca252b629e80e3008f919e2f57d16cd367d3",class:"content"},n("verdocs-text-input",{key:"7cb94c059ecc36c03448def94ad047e72d61dd81",placeholder:"Initials...",label:"Initials",value:this.enteredInitials,onInput:function(t){return i.handleNameChange(t)},onClick:function(i){return i.stopPropagation()}}),n("div",{key:"9bfddbd953605fb972971db50758771c051fe20e",class:"as-shown"},"As shown on driver's license or govt. ID card."),this.fontLoaded?n("canvas",{ref:function(t){return i.canvasElement=t}}):n("div",{style:{display:"none"}}),n("div",{key:"716e844579235e6c76d9564b8f830e271416ac6f",class:"disclaimer"},"By clicking Adopt, I agree that the signature will be the electronic representation of my signature for all purposes when I (or my agent) use them on documents, including legally binding contracts — just the same as a pen-and-paper signature or initial."),n("div",{key:"31a94c70a7c909f269c18bc1c437f26f9a207bf1",class:"buttons"},n("verdocs-button",{key:"6e6fbc994a3dd71b41b64816358cd90348bba134",label:"CANCEL",size:"normal",variant:"outline",onClick:function(t){return i.handleCancel(t)}}),n("verdocs-button",{key:"7568e66bf4d8e5f0721bd9ffbf4c5adb85236fb4",label:"Adopt & Sign",size:"normal",onClick:function(t){return i.handleAdopt(t)}})))))};return i}());s.style=o()}}}));
2
- //# sourceMappingURL=p-c72daca8.system.entry.js.map
1
+ System.register(["./p-De3fNE_u.system.js"],(function(i){"use strict";var e,t,n,o;return{setters:[function(i){e=i.r;t=i.c;n=i.h;o=i.H}],execute:function(){var a=function(){return'verdocs-initial-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;position:fixed;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:rgba(0, 0, 0, 0.4980392157)}verdocs-initial-dialog .dialog{width:100%;max-width:340px;border-radius:4px;overflow:hidden;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);background:#f9f9f9}verdocs-initial-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:20px 20px 0 20px;line-height:28px;font-size:20px;font-weight:500}verdocs-initial-dialog .content{font-size:14px;padding:20px}verdocs-initial-dialog .buttons{display:-ms-flexbox;display:flex;margin:20px 0 0 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center}verdocs-initial-dialog .buttons verdocs-button{margin-left:16px}verdocs-initial-dialog canvas{background:#fff;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 auto;width:300px;height:79px;max-width:100%;-webkit-box-shadow:0 0 6px 0 rgba(0, 0, 0, 0.1215686275);box-shadow:0 0 6px 0 rgba(0, 0, 0, 0.1215686275)}verdocs-initial-dialog .disclaimer{text-align:justify;padding:8px 0;font-size:11px;line-height:14px;color:rgba(0, 0, 0, 0.54)}verdocs-initial-dialog .as-shown{font-size:11px;margin:4px 0 20px 4px;color:rgba(0, 0, 0, 0.54)}verdocs-initial-dialog .tabs{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-initial-dialog .tabs .tab{padding:8px 15px;cursor:pointer}verdocs-initial-dialog .tabs .tab.active{border-bottom:2px solid #cccccc}verdocs-initial-dialog .tabs .tab:hover{color:#55bc81}'};var s=i("verdocs_initial_dialog",function(){function i(i){e(this,i);this.next=t(this,"next");this.exit=t(this,"exit");this.initials="";this.fontLoaded=false;this.enteredInitials="";this.mode="type"}i.prototype.componentWillLoad=function(){var i=this;this.enteredInitials=this.initials.toUpperCase();var e=new FontFace("Dancing Script","url(https://fonts.gstatic.com/s/dancingscript/v19/If2cXTr6YS-zF4S-kcSWSVi_sxjsohD9F50Ruu7BMSo3Sup6hNX6plRP.woff)");e.load().then((function(e){document.fonts.add(e);i.fontLoaded=true}))};i.prototype.componentDidLoad=function(){this.redrawSignature()};i.prototype.componentDidUpdate=function(){this.redrawSignature()};i.prototype.redrawSignature=function(){if(!this.canvasElement){return}var i=this.canvasElement.width;var e=this.canvasElement.getContext("2d");e.clearRect(0,0,this.canvasElement.width,this.canvasElement.height);var t=100;do{t-=2;e.font="".concat(t,"px Dancing Script")}while(e.measureText(this.enteredInitials).width>i-32);e.textAlign="center";e.textBaseline="middle";e.font="".concat(t,"px Dancing Script");e.fillText(this.enteredInitials,this.canvasElement.width/2,this.canvasElement.height/2)};i.prototype.handleNameChange=function(i){this.enteredInitials=i.target.value};i.prototype.handleCancel=function(i){i.stopPropagation();i.preventDefault();this.exit.emit()};i.prototype.handleAdopt=function(i){i.stopPropagation();i.preventDefault();var e=this.canvasElement.toDataURL("image/png");this.next.emit(e)};i.prototype.render=function(){var i=this;return n(o,{key:"a20eb6fcbe3e06fb8f5f16b96fea64be466a3d29",onClick:function(e){return i.handleCancel(e)}},n("div",{key:"a9aaf18be13b1465618056c251365cfb2c29ad87",class:"dialog"},n("div",{key:"dbc0566c69461238f9570e44b84f155454232782",class:"heading"},"Create Your Initial"),n("div",{key:"8aabd3807cc07f03a332ef0df3e4c523366a9abe",class:"content"},n("verdocs-text-input",{key:"e4d5327ef8d5d7726c807efc59acb986215f033f",placeholder:"Initials...",label:"Initials",value:this.enteredInitials,onInput:function(e){return i.handleNameChange(e)},onClick:function(i){return i.stopPropagation()}}),n("div",{key:"a492b09e2606dbee54266675b6fc78667d13ce73",class:"as-shown"},"As shown on driver's license or govt. ID card."),this.fontLoaded?n("canvas",{ref:function(e){return i.canvasElement=e}}):n("div",{style:{display:"none"}}),n("div",{key:"b7b6c169f0e86733d3bd7fc7f30acbd4c61a1fb0",class:"disclaimer"},"By clicking Adopt, I agree that the signature will be the electronic representation of my signature for all purposes when I (or my agent) use them on documents, including legally binding contracts — just the same as a pen-and-paper signature or initial."),n("div",{key:"0cd594bb6f120734cc74399d05c969b6dec87435",class:"buttons"},n("verdocs-button",{key:"525e829d9e604cb37a4408d5cff01741c0007d1a",label:"CANCEL",size:"normal",variant:"outline",onClick:function(e){return i.handleCancel(e)}}),n("verdocs-button",{key:"19ee12ae826f5cc4a4959303d7b3c5f873235d27",label:"Adopt & Sign",size:"normal",onClick:function(e){return i.handleAdopt(e)}})))))};return i}());s.style=a()}}}));
2
+ //# sourceMappingURL=p-27a47940.system.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as e,c as t,h as i,H as s,F as o,g as n}from"./p-CjTHbolG.js";import{VerdocsEndpoint as l,DEFAULT_DISCLOSURES as a,startSigningSession as r,getEnvelope as d,envelopeRecipientAgree as c,updateEnvelopeField as h,createSignature as p,createInitials as u,sortFields as g,envelopeRecipientSubmit as v,isFieldValid as f,isFieldFilled as m,uploadEnvelopeFieldAttachment as x,deleteEnvelopeFieldAttachment as b,formatFullName as w,fullNameToInitials as y,verifySigner as k,getEnvelopesZip as C,getEnvelopeDocumentDownloadLink as S,getCombinedEnvelopeDocumentDownloadLink as N,delegateRecipient as I,envelopeRecipientDecline as z,integerSequence as G,askQuestion as L}from"@verdocs/js-sdk";import{u as H,g as T,r as D,a as E,d as F}from"./p-CGsVCy75.js";import{D as V}from"./p-CIxfEdV7.js";import{D as q,C as M}from"./p-BU5rnXp2.js";import{V as P}from"./p-D97GxsI-.js";import{S as A}from"./p-C1sRVZWv.js";import{S as R}from"./p-C7hFgM52.js";import"./p-BglCURB-.js";const j=()=>`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}`;const O=`<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>`;const U=`<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>`;const $=`<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>`;const Z=`<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>`;const Y=class{constructor(i){e(this,i);this.sdkError=t(this,"sdkError");this.envelopeLoaded=t(this,"envelopeLoaded");this.envelopeUpdated=t(this,"envelopeUpdated");this.endpoint=new l({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=a;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=async()=>{this.showDone=false;if(!this.isDone){this.prepareForViewTransition();await new Promise((e=>requestAnimationFrame((()=>e()))));this.isDone=true}}}async componentDidLoad(){var e,t,i,s,o,n;this.updateZoomFromWindow();window.addEventListener("resize",(()=>this.updateZoomFromWindow()));if(!this.envelopeId){(e=this.sdkError)===null||e===void 0?void 0:e.emit(new A("[SIGN] Missing required envelopId",500,""));return}if(!this.roleId){(t=this.sdkError)===null||t===void 0?void 0:t.emit(new A("[SIGN] Missing required roleId",500,""));return}if(!this.inviteCode){(i=this.sdkError)===null||i===void 0?void 0:i.emit(new A("[SIGN] Missing required inviteCode",500,""));return}try{await this.initSigningSession()}catch(e){console.log("[SIGN] Error with signing session",e);(s=this.sdkError)===null||s===void 0?void 0:s.emit(new A(e.message,(o=e.response)===null||o===void 0?void 0:o.status,(n=e.response)===null||n===void 0?void 0:n.data));this.showLoadError=true}}async initSigningSession(){console.log(`[SIGN] Processing invite code for ${this.envelopeId} / ${this.roleId}`);const e=await r(this.endpoint,this.envelopeId,this.roleId,this.inviteCode);this.processAuthResponse(e)}async retrySigningSession(){var e,t,i;this.showLoadError=false;this.loading=true;try{await this.initSigningSession()}catch(s){console.log("[SIGN] Error with signing session",s);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new A(s.message,(t=s.response)===null||t===void 0?void 0:t.status,(i=s.response)===null||i===void 0?void 0:i.data));this.showLoadError=true;this.loading=false}}prepareForViewTransition(){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()}async handleSubmitSuccess(){var e,t;this.submitting=false;this.submitted=true;this.nextSubmits=false;this.signingProgressMode="completed";try{const i=await d(this.endpoint,this.envelopeId);this.envelope=i;R.updateEnvelope(this.envelopeId,i);const s=(e=i.recipients)===null||e===void 0?void 0:e.find((e=>{var t;return e.role_name===((t=this.recipient)===null||t===void 0?void 0:t.role_name)}));if(s){this.recipient=s}(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:i,event:"submitted"})}catch(e){console.warn("[SIGN] Error refreshing envelope after submit",e)}this.showDone=true}componentDidRender(){const e=this.headerTargetId?document.getElementById(this.headerTargetId):null;const t=document.getElementById("verdocs-sign-header");if(e&&t){console.log("[SIGN] Moving header");t.remove();e.append(t)}this.setupIntersectionObserver()}disconnectedCallback(){var e,t,i;this.stopPolling();(e=this.observer)===null||e===void 0?void 0:e.disconnect();window.removeEventListener("resize",(()=>this.updateZoomFromWindow()));(t=document.getElementById(this.getOrgStyleOverridesId()))===null||t===void 0?void 0:t.remove();(i=document.getElementById(this.getBrandStyleOverridesId()))===null||i===void 0?void 0:i.remove()}updateZoomFromWindow(){const 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"}}setupIntersectionObserver(){const e=this.el.querySelectorAll("verdocs-envelope-document-page");if(e.length===0)return;if(this.observer){this.observer.disconnect()}const t=this.el.querySelector(".signed-document-container");const i={root:t,rootMargin:"-40% 0px -40% 0px",threshold:0};this.observer=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const t=e.target.id;const i=parseInt(t.replace("page-",""),10);if(!isNaN(i)&&this.pageNumber!==i){this.pageNumber=i}}}))}),i);e.forEach((e=>this.observer.observe(e)))}getOrgStyleOverridesId(){return`verdocs-org-style-overrides-${this.envelopeId}`}getBrandStyleOverridesId(){return`verdocs-brand-style-overrides-${this.envelopeId}`}applyOrgStyleOverrides(){var e,t;const i=this.getOrgStyleOverridesId();const s=document.getElementById(i);const 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"){const e=s||document.createElement("style");e.id=i;e.textContent=o;if(!s){document.head.appendChild(e)}}else if(s){s.remove()}}applyBrandStyleOverrides(e){const t=this.getBrandStyleOverridesId();const i=document.getElementById(t);const s=e===null||e===void 0?void 0:e.style_overrides;if(typeof s==="string"&&s.length>0){const e=i||document.createElement("style");e.id=t;e.textContent=s;if(!i){document.head.appendChild(e)}}else if(i){i.remove()}}processAuthResponse(e){var t,i,s,o;const{envelope:n,recipient:l,brand:r}=e;(t=n.documents)===null||t===void 0?void 0:t.sort(((e,t)=>e.order!==t.order?e.order-t.order:e.created_at.localeCompare(t.created_at)));const{auth_step:d}=l;this.recipient=l;this.envelope=n;this.disclosures=((s=(i=this.envelope)===null||i===void 0?void 0:i.organization)===null||s===void 0?void 0:s.disclaimer)||a;this.applyOrgStyleOverrides();this.applyBrandStyleOverrides(r);this.authStep=d;this.delegated=!!l.delegated_to;this.agreed=l.agreed;this.signatureId=null;this.initialId=null;this.submitted=l.status==="submitted";this.loading=false;this.isDone=this.submitted;this.showDone=this.submitted;R.updateEnvelope(this.envelopeId,n);if(this.envelope.documents.length>0){this.documentsSingularPlural="document(s)"}this.authMethodStates=l.auth_method_states||{};this.kbaQuestions=l.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(l.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})}handleClickAgree(){this.submitting=true;console.log("[SIGN] Accepting disclosures",this.disclosures);const e=Intl.DateTimeFormat().resolvedOptions();c(this.endpoint,this.envelopeId,this.roleId,this.disclosures,{locale:e.locale,timezone:e.timeZone}).then((()=>{var e;this.nextButtonLabel="Next";this.recipient.agreed=true;this.submitting=false;this.agreed=true;(e=this.envelopeUpdated)===null||e===void 0?void 0:e.emit({endpoint:this.endpoint,envelope:this.envelope,event:"agreed"})})).catch((e=>{var t,i,s;console.log("[SIGN] Unable to accept disclosures",e);P("Unable to accept disclosures, please try again later",{style:"error"});(t=this.sdkError)===null||t===void 0?void 0:t.emit(new A(e.message,(i=e.response)===null||i===void 0?void 0:i.status,(s=e.response)===null||s===void 0?void 0:s.data));this.submitting=false}))}handlePageSelect(e){const t=parseInt(e.target.value);if(!isNaN(t)){this.pageNumber=t;const e=this.el.querySelector(".signed-document-container");const i=this.el.querySelector(`#page-${t}`);if(e&&i){const t=i.offsetTop-20;e.scrollTo({top:t,behavior:"smooth"})}}}async handleOptionSelected(e){var t,i;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}}startPolling(){this.stopPolling();const e=()=>{var e,t,i,s,o,n;const l=((e=this.envelope)===null||e===void 0?void 0:e.status)==="complete"||!!((t=this.envelope)===null||t===void 0?void 0:t.signed);const a=(s=(i=this.envelope)===null||i===void 0?void 0:i.documents)===null||s===void 0?void 0:s.some((e=>e.type==="certificate"));const r=(n=(o=this.envelope)===null||o===void 0?void 0:o.recipients)===null||n===void 0?void 0:n.every((e=>e.status==="submitted"));if(l&&a)return false;if(!r)return false;return true};if(!e()){return}this.polling=true;this.pollingInterval=setInterval((async()=>{try{const t=await d(this.endpoint,this.envelopeId);this.envelope=t;R.updateEnvelope(this.envelopeId,t);this.checkRecipientFields();if(!e()){this.stopPolling()}}catch(e){console.error("[SIGN] Polling error",e);this.stopPolling()}}),5e3)}stopPolling(){if(this.pollingInterval){clearInterval(this.pollingInterval);this.pollingInterval=null}this.polling=false}handleZoomIn(){if(this.zoomLevel==="normal"){this.zoomLevel="zoom1"}else if(this.zoomLevel==="zoom1"){this.zoomLevel="zoom2"}}handleZoomOut(){if(this.zoomLevel==="zoom1"){this.zoomLevel="normal"}else if(this.zoomLevel==="zoom2"){this.zoomLevel="zoom1"}}updateRecipientFieldValue(e,t){console.log("[SIGN] updateRecipientFieldValue",e,t);this.getRecipientFields().forEach((i=>{if(i.name===e){i.value=t.value;i.settings=t.settings;H(i);this.fieldUpdateCounter++;this.markEnvelopeStarted();this.checkRecipientFields()}}))}getStartedKey(){var e;return`${this.envelopeId}:${((e=this.recipient)===null||e===void 0?void 0:e.role_name)||""}`}markEnvelopeStarted(){const e=JSON.parse(localStorage.getItem("startedEnvelopes")||"[]");const t=this.getStartedKey();if(!e.includes(t)){e.push(t);while(e.length>10){e.shift()}localStorage.setItem("startedEnvelopes",JSON.stringify(e))}}saveFieldChange(e,t,i){const s=this.getRecipientFields().find((t=>t.name===e));if(s===null||s===void 0?void 0:s.readonly){return}console.log("[SIGN] saveFieldChange",e,{value:t,prepared:i});h(this.endpoint,this.envelopeId,this.roleId,e,t,i).then((t=>this.updateRecipientFieldValue(e,t))).catch((e=>{var t,i,s,o,n,l;if(((t=e.response)===null||t===void 0?void 0:t.status)===401&&((s=(i=e.response)===null||i===void 0?void 0:i.data)===null||s===void 0?void 0:s.error)==="jwt expired"){console.log("[SIGN] Signing session expired");this.fatalErrorHeader="Signing Session Expired";this.fatalErrorMessage="Please reload your browser to continue."}else{console.log("[SIGN] Server error",e);P("Unable to save change, please try again later",{style:"error"})}(o=this.sdkError)===null||o===void 0?void 0:o.emit(new A(e.message,(n=e.response)===null||n===void 0?void 0:n.status,(l=e.response)===null||l===void 0?void 0:l.data))}))}async handleFieldChange(e,t){if(!t.target){return}const{value:i,checked:s}=t.target;switch(e.type){case"textarea":case"textbox":return this.saveFieldChange(e.name,i,false);case"checkbox":{return this.saveFieldChange(e.name,String(t.target.checked),false)}case"radio":{return this.saveFieldChange(e.name,String(t.target.checked),false)}case"dropdown":console.log("Saving dropdown",e.name,t.detail);return this.saveFieldChange(e.name,t.detail,false);case"initial":if(t.detail===undefined){return}if(t.detail===null){console.log("[SIGN] Clearing initial");const t=await h(this.endpoint,this.envelopeId,this.roleId,e.name,null,false);return this.updateRecipientFieldValue(e.name,t)}if(this.initialId){console.log("[SIGN] Reusing initial",this.initialId);const t=await h(this.endpoint,this.envelopeId,this.roleId,e.name,this.initialId,false);return this.updateRecipientFieldValue(e.name,t)}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)){console.log("[SIGN] Reusing initial",t.detail);const i=await h(this.endpoint,this.envelopeId,this.roleId,e.name,t.detail,false);this.initialId=t.detail;return this.updateRecipientFieldValue(e.name,i)}this.showSpinner=true;const o=await(await fetch(t.detail)).blob();return u(this.endpoint,"initial",o).then((async t=>{const i=await h(this.endpoint,this.envelopeId,this.roleId,e.name,t.id,false);this.updateRecipientFieldValue(e.name,i);this.initialId=t.id;this.showSpinner=false})).catch((e=>{console.log("Error updating initials",e);P("Unable to save initials, please try again later",{style:"error"});this.showSpinner=false}));case"signature":if(t.detail===undefined){return}if(t.detail===null){console.log("[SIGN] Clearing signature");const t=await h(this.endpoint,this.envelopeId,this.roleId,e.name,null,false);return this.updateRecipientFieldValue(e.name,t)}if(this.signatureId){console.log("[SIGN] Reusing signature",this.signatureId);const t=await h(this.endpoint,this.envelopeId,this.roleId,e.name,this.signatureId,false);return this.updateRecipientFieldValue(e.name,t)}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)){console.log("[SIGN] Reusing signature",t.detail);const i=await h(this.endpoint,this.envelopeId,this.roleId,e.name,t.detail,false);this.signatureId=t.detail;return this.updateRecipientFieldValue(e.name,i)}this.showSpinner=true;const n=await(await fetch(t.detail)).blob();console.log("[SIGN] Creating new signature");return p(this.endpoint,"signature",n).then((async t=>{console.log("Signature update result",t);const i=await h(this.endpoint,this.envelopeId,this.roleId,e.name,t.id,false);this.updateRecipientFieldValue(e.name,i);this.signatureId=t.id;this.showSpinner=false})).catch((e=>{console.warn("[SIGN] Error updating signature",e);P("Unable to save signature, please try again later",{style:"error"});this.showSpinner=false}));case"date":const{formattedDate:l}=t.detail;if(l){return this.saveFieldChange(e.name,l,false)}break;case"timestamp":console.log("[SIGN] Updating timestamp",{value:i,ts:t.target.getAttribute("timestamp")});break;default:console.log("[SIGN] Unhandled field update",{value:i,checked:s},e);break}}getSortedFillableFields(){const e=this.getRecipientFields().filter((e=>e.type!=="timestamp"&&!e.readonly));g(e);return e}getSortedDisplayableFields(){const e=this.getRecipientFields().filter((e=>e.type!=="timestamp"));g(e);return e}async handleNext(){var e;if(this.nextSubmits){if(this.submitted){return}try{(e=document.getElementById("air-datepicker-global-container"))===null||e===void 0?void 0:e.remove();this.submitting=true;const t=Intl.DateTimeFormat().resolvedOptions();const i=await v(this.endpoint,this.envelopeId,this.roleId,{locale:t.locale,timezone:t.timeZone});console.log("[SIGN] Submitted successfully",i);await this.handleSubmitSuccess()}catch(e){console.log("[SIGN] Error submitting",e);this.submitting=false;P("Unable to submit document, please try again.",{style:"error"})}return}const t=this.getSortedFillableFields().filter((e=>!this.isFieldActuallyFilled(e)));const i=this.getNextFieldFromList(t);if(i){const e=T(i);const t=document.getElementById(e);t===null||t===void 0?void 0:t.scrollIntoView({behavior:"smooth",block:"center",inline:"center"});t===null||t===void 0?void 0:t.focusField();this.focusedField=i.name}}handleNextOptional(){const e=this.getSortedFillableFields().filter((e=>!e.required&&!this.isFieldActuallyFilled(e)));const t=this.getNextFieldFromList(e);if(t){const e=T(t);const i=document.getElementById(e);i===null||i===void 0?void 0:i.scrollIntoView({behavior:"smooth",block:"center",inline:"center"});i===null||i===void 0?void 0:i.focusField();this.focusedField=t.name}}getRecipientFields(){var e;return((e=this.envelope)===null||e===void 0?void 0:e.fields.filter((e=>e.role_name===this.recipient.role_name)))||[]}getRequiredTotalCount(){return this.getSortedFillableFields().filter((e=>e.required)).length}getRequiredFilledCount(){return this.getSortedFillableFields().filter((e=>e.required&&this.isFieldActuallyFilled(e))).length}getOptionalUnfilledCount(){return this.getSortedFillableFields().filter((e=>!e.required&&!this.isFieldActuallyFilled(e))).length}checkRecipientFields(){if(this.submitted||this.isDone){return}const e=this.getRecipientFields().filter((e=>!f(e,this.getRecipientFields())));if(e.length<1){this.nextButtonLabel="Finish";if(!this.nextSubmits){this.nextSubmits=true}}else{this.nextButtonLabel="Next";this.nextSubmits=false}this.updateAllFlags();const t=JSON.parse(localStorage.getItem("startedEnvelopes")||"[]");const i=t.includes(this.getStartedKey());if(this.nextSubmits){this.signingProgressMode="completed"}else if(i){this.signingProgressMode="signing"}else{this.signingProgressMode="start"}}isFieldActuallyFilled(e){if(e.type==="radio"&&e.group){const t=this.getRecipientFields().some((t=>t.group===e.group&&t.value==="true"));if(t){return true}}return m(e,this.getRecipientFields())&&(e.type!=="dropdown"||!!e.value)&&(e.type!=="radio"||e.value==="true")&&(e.type!=="checkbox"||e.value==="true")}getNextRequiredField(){const e=this.getSortedFillableFields().filter((e=>e.required&&!this.isFieldActuallyFilled(e)));g(e);if(e.length===0){const e=this.getSortedFillableFields().filter((e=>!this.isFieldActuallyFilled(e)));g(e);if(e.length>0){return this.getNextFieldFromList(e)}return null}return this.getNextFieldFromList(e)}getNextFieldFromList(e){const t=e.findIndex((e=>e.name===this.focusedField));let i=t+1;if(i>=e.length){i=0}return e[i]}handlePrev(){var e;const t=this.getSortedFillableFields();const i=t.findIndex((e=>e.name===this.focusedField));if(i>0){const s=t[i-1];const o=T(s);const n=document.getElementById(o);n===null||n===void 0?void 0:n.scrollIntoView({behavior:"smooth",block:"center"});(e=n===null||n===void 0?void 0:n.focusField)===null||e===void 0?void 0:e.call(n);this.focusedField=s.name}}updateAllFlags(){Object.values(this.renderedPages).forEach((e=>{this.updateFlagsForPage(e)}))}updateFlagsForPage(e){if(!e)return;const t=document.getElementById(e.containerId+"-controls");if(!t)return;const i=t.querySelectorAll(".verdocs-flag-instance");i.forEach((e=>e.remove()));let s=this.getNextRequiredField();const o=this.getRecipientFields().find((e=>e.name===this.focusedField));if(o&&!m(o,this.getRecipientFields())){s=o}if(s&&s.page===e.pageNumber&&s.document_id===e.documentId){const t="fill";let i="FILL";let o=false;switch(s.type){case"signature":i="SIGN";break;case"initial":i="INITIAL";break;case"checkbox":i="CHECK";break;case"radio":i="SELECT";break;case"date":case"dropdown":i="SELECT";break;case"attachment":i="ATTACH";break;case"payment":i="PAY";break}if(!s.required){o=true}D(e,s.y,s.height||F(s.type),{variant:t,label:i,showSkip:o,onSkip:()=>{this.handleNext()},onClick:()=>{var e;const t=T(s);const 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)}})}}attachFieldAttributes(e,t,i){if(i.getAttribute("attached")==="1"){return}i.setAttribute("attached","1");i.addEventListener("input",(e=>{if(e.target.type==="radio"||e.target.type==="checkbox"){this.handleFieldChange(t,e).finally((()=>this.checkRecipientFields()))}else{this.checkRecipientFields()}}));i.addEventListener("attached",(async i=>{console.log("[SIGN] onAttached",i.detail,i.target.value);this.showSpinner=true;try{const s=await x(this.endpoint,this.envelopeId,this.roleId,t.name,i.detail);this.updateRecipientFieldValue(t.name,s);this.checkRecipientFields();const o=E("envelope",t,e,{disabled:false,editable:false,draggable:false,done:this.isDone});this.attachFieldAttributes(e,t,o);this.showSpinner=false}catch(i){console.log("Error uploading attachment",i);P("Unable to upload attachment, please try again later",{style:"error"});this.showSpinner=false}}));i.addEventListener("deleted",(async i=>{console.log("[SIGN] onDeleted",i.detail,i.target.value);this.showSpinner=true;try{const i=await b(this.endpoint,this.envelopeId,this.roleId,t.name);console.log("[SIGN] Deleted attachment",i);this.updateRecipientFieldValue(t.name,i);this.checkRecipientFields();const s=E("envelope",t,e,{disabled:false,editable:false,draggable:false,done:this.isDone});this.attachFieldAttributes(e,t,s);this.showSpinner=false}catch(i){console.log("Error uploading attachment",i);P("Unable to upload attachment, please try again later",{style:"error"});this.showSpinner=false}}));i.addEventListener("focusout",(e=>{if(t.type!=="dropdown"&&t.type!=="attachment"&&t.type!=="signature"&&t.type!=="initial"&&t.type!=="checkbox"&&t.type!=="radio"){this.handleFieldChange(t,e).finally((()=>this.checkRecipientFields()))}}));i.addEventListener("fieldChange",(e=>{this.handleFieldChange(t,e).finally((()=>this.checkRecipientFields()))}));i.addEventListener("adopt",(()=>{this.focusedField=t.name;this.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);const s=w(this.recipient);i.setAttribute("initials",y(s));i.setAttribute("name",s);if(this.signatureId){i.setAttribute("signatureid",this.signatureId)}if(this.initialId){i.setAttribute("initialid",this.initialId)}}handlePageRendered(e){const t=e.detail;this.renderedPages[`${t.documentId}:${t.pageNumber}`]=t;const i=this.getSortedDisplayableFields();i.filter((e=>e&&e.document_id===t.documentId&&e.page===t.pageNumber)).forEach(((e,i)=>{const s=E("envelope",e,t,{disabled:false,editable:false,draggable:false,done:this.isDone},i);if(!s){return}if(Array.isArray(s)){s.map((i=>this.attachFieldAttributes(t,e,i)))}else{this.attachFieldAttributes(t,e,s)}}));this.envelope.recipients.filter((e=>e.role_name!==this.recipient.role_name&&(e.status==="invited"||e.status==="opened"||e.status==="pending"))).forEach((()=>{this.getRecipientFields().filter((e=>e.document_id===t.documentId&&e.page===t.pageNumber)).forEach((e=>{const i=E("envelope",e,t,{disabled:true,editable:false,draggable:false,done:this.isDone});if(!i){return}if(Array.isArray(i)){i.map((i=>this.attachFieldAttributes(t,e,i)))}else{this.attachFieldAttributes(t,e,i)}}))}));this.checkRecipientFields();this.updateFlagsForPage(t)}handleAuthenticateSigner(e){console.log("[SIGN] Submitting authentication step",e);k(this.endpoint,e).then((e=>{console.log("[SIGN] Verification successful",e);this.processAuthResponse(e)})).catch((e=>{var t,i,s,o,n,l;console.log("[SIGN] Error submitting authentication step",e);console.log((t=e.response)===null||t===void 0?void 0:t.data);if((o=(s=(i=e.response)===null||i===void 0?void 0:i.data)===null||s===void 0?void 0:s.error)===null||o===void 0?void 0:o.includes("failed")){this.fatalErrorHeader="Recipient Verification Failed";this.fatalErrorMessage="We were unable to verify your identity. The sender has been notified.";this.isDone=true}else{P(((l=(n=e.response)===null||n===void 0?void 0:n.data)===null||l===void 0?void 0:l.error)||"Unable to verify your identity. Please try again.",{style:"error"})}}))}async handleOnDownload(e){var t,i;const{action:s,documentId:o}=e.detail;console.log("[SIGN] Download action selected:",s,o);try{switch(s){case V.certificate:const e=this.envelope.documents.find((e=>e.type==="certificate"));if(e){const t=await S(this.endpoint,e.id);window.open(t,"_blank")}else{P("Certificate not yet available.",{style:"info"})}break;case V.combined:const s=o||((t=this.envelope.documents.find((e=>e.type==="certificate")))===null||t===void 0?void 0:t.id);const n=await N(this.endpoint,s);window.open(n,"_blank");break;case V.document:const l=o||((i=this.envelope.documents.find((e=>e.type==="attachment")))===null||i===void 0?void 0:i.id);if(l){const e=await S(this.endpoint,l);window.open(e,"_blank")}break;case V.zip:const a=await C(this.endpoint,[this.envelopeId]);const r=window.URL.createObjectURL(a.data);const d=document.createElement("a");d.href=r;d.download=`${this.envelope.name}.zip`;document.body.appendChild(d);d.click();d.remove();window.URL.revokeObjectURL(r);break}}catch(e){console.error("Download error",e);P("Unable to complete download request.",{style:"error"})}}render(){var e;if(this.showLoadError){return i(s,null,i("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:()=>{this.retrySigningSession()}}))}if(!this.envelope){return i(s,null,i("verdocs-loader",null))}if(this.fatalErrorMessage){return i(s,{class:{agreed:this.agreed}},i("div",{class:"fatal-error"},i("div",{class:"message"},i("div",{class:"header"},this.fatalErrorHeader),i("p",null,this.fatalErrorMessage))))}if(this.delegated){return i(s,{class:{agreed:false}},i("div",{class:"fatal-error"},i("div",{class:"message"},i("div",{class:"header"},"Delegated Signing Request"),i("p",null,"You have delegated signing to another recipient. You will not be able to sign this request again."))))}if(this.isDone){return i(s,{class:{agreed:this.agreed}},i("verdocs-view",{endpoint:this.endpoint,envelopeId:this.envelopeId,onSdkError:e=>{var t;return(t=this.sdkError)===null||t===void 0?void 0:t.emit(e.detail)}}),this.showDone&&i("verdocs-ok-dialog",{heading:"You're Done!",message:`You can access the ${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:e=>{e.preventDefault();e.stopPropagation();this.handleDoneDialogDismiss()},onExit:()=>this.handleDoneDialogDismiss()}),this.submitting&&i("div",{class:"loading-indicator"},i("verdocs-loader",null)))}if(this.delegating){return i(s,{class:"agreed"},i("div",{class:"document",style:{paddingTop:"15px"}},i("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"})),i("verdocs-delegate-dialog",{endpoint:this.endpoint,envelope:this.envelope,onExit:()=>this.delegating=false,onNext:e=>{I(this.endpoint,this.envelopeId,this.roleId,e.detail).then((e=>{P("Delegation request submitted.",{style:"success"});console.log("[SIGN] Delegated successfully",e);this.delegated=true;this.delegating=false})).catch((e=>{console.log("[SIGN] Error delegating request",e);P("Unable to process delegation request. Please try again later.",{style:"error"})}))}}))}if(this.declining){return i(s,{class:"agreed"},i("div",{class:"document",style:{paddingTop:"15px"}},i("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"})),i("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:()=>this.declining=false,onNext:()=>{z(this.endpoint,this.envelopeId,this.roleId).then((e=>{console.log("[SIGN] Decline result",e);this.declining=false;this.fatalErrorHeader="Declined";this.fatalErrorMessage="You have declined to sign this request. The sender has been notified."})).catch((e=>{console.warn("[SIGN] Error declining signing session",e);P("Unable to decline, please try again later",{style:"error"})}))}}))}if(!this.agreed){return i(s,{class:"agreed"},i("div",{class:"document",style:{paddingTop:"15px"}},i("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"})),i("verdocs-disclosure-dialog",{disclosures:this.disclosures,delegator:this.recipient.delegator,onDelegate:()=>this.delegating=true,onDecline:()=>this.declining=true,onAccept:()=>this.handleClickAgree()}))}if(this.authStep==="passcode"){return i("verdocs-passcode-dialog",{endpoint:this.endpoint,onNext:e=>this.processAuthResponse(e.detail.response)})}if(this.authStep==="sms"){return i("verdocs-otp-dialog",{endpoint:this.endpoint,method:"sms",onNext:async e=>{this.processAuthResponse(e.detail.response)}})}if(this.authStep==="email"){return i("verdocs-otp-dialog",{endpoint:this.endpoint,method:"email",onNext:async e=>{this.processAuthResponse(e.detail.response)}})}if(this.authStep==="kba"&&!this.authMethodStates.kba){return i(s,{class:"kba"},i("div",{id:"verdocs-sign-header"},i("div",{class:"inner"},i("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),i("div",{class:"title"},this.envelope.name))),i("div",{class:"document",style:{paddingTop:"15px"}},i("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"})),i("div",{class:"cover"},i("div",{class:"kba"},i("verdocs-kba-dialog",{mode:"identity",helptitle:"Document requires identity verification",helptext:"Please complete your contact details to proceed.",recipient:this.recipient,onNext:async e=>{const t=e.detail;this.handleAuthenticateSigner({auth_method:"kba",first_name:t.first_name,last_name:t.last_name,address:t.address,city:t.city,state:t.state,zip:t.zip,dob:t.dob})}}))))}if(this.authStep==="kba"&&this.authMethodStates.kba==="questions"){const e=this.kbaChoices.length;const t=this.kbaQuestions[e];return i(s,{class:"kba"},i("div",{id:"verdocs-sign-header"},i("div",{class:"inner"},i("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),i("div",{class:"title"},this.envelope.name))),i("div",{class:"document",style:{paddingTop:"15px"}},i("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"})),i("div",{class:"cover"},i("div",{class:"kba"},this.kbaChoices.length>=this.kbaQuestions.length?i("verdocs-spinner",null):i("verdocs-kba-dialog",{mode:"choice",helptitle:"Your identity requires additional verification",helptext:(t===null||t===void 0?void 0:t.prompt)||"Please select one of the options below.",choices:(t===null||t===void 0?void 0:t.answer)||["Skip Question"],step:e+1,steps:this.kbaQuestions.length,onNext:async e=>{const t=e.detail;this.kbaChoices=[...this.kbaChoices,t];if(this.kbaChoices.length>=this.kbaQuestions.length){const e=this.kbaQuestions.map(((e,t)=>({type:e.type,answer:this.kbaChoices[t]})));console.log("Submitting KBA responses",this.kbaChoices,e);this.handleAuthenticateSigner({auth_method:"kba",responses:e})}}}))))}const t=[{id:"later",label:"Finish Later"},{id:"decline",label:"Decline to Sign"},{id:"print",label:"Print Without Signing"},{id:"download",label:"Download"}];const n=[{id:"print",label:"Print"},{id:"download",label:"Download"}];if(this.recipient.delegator){t.unshift({id:"delegate",label:"Delegate"})}const l=this.getRecipientFields().filter((e=>!f(e,this.getRecipientFields())));l.length>0?console.log("[SIGN] Invalid fields remaining",l.map((e=>e.name))):console.log("[SIGN] All field valid");const a=this.envelope.documents.reduce(((e,t)=>e+t.pages),0);const r=G(1,a).map((e=>({label:e.toString(),value:e.toString()})));let d=0;return i(s,null,this.toolbarStyle==="menu"&&i("div",{id:"verdocs-sign-header"},i("div",{class:"inner"},i("div",{class:"title"},this.envelope.name),i("div",{style:{flex:"1"}}),!this.finishLater&&!this.submitted&&(()=>{const e=this.getRequiredTotalCount()-this.getRequiredFilledCount();const t=this.getOptionalUnfilledCount();if(e>0){return i("span",{class:"remaining-count"},e," required field",e===1?"":"s"," left")}return i("span",{class:"remaining-count"},i("span",{class:"check-icon",innerHTML:M}),"All required fields complete",t>0&&i("div",{class:"review-optional"},i("span",{class:"separator"},"| "),i("span",{onClick:()=>this.handleNextOptional()},"Review ",t," optional")))})(),!this.finishLater&&!this.submitted&&i("verdocs-button",{size:"xsmall",label:this.nextButtonLabel==="Next"?"Next Required":this.nextButtonLabel,disabled:!this.agreed||this.submitting||this.submitted,onClick:()=>this.handleNext()}),i("div",{class:{"icon-button":true,minus:true,disabled:this.zoomLevel==="normal",magnify:true},innerHTML:O,onClick:()=>this.handleZoomOut()}),i("div",{class:{"icon-button":true,plus:true,disabled:this.zoomLevel==="zoom2",magnify:true},innerHTML:U,onClick:()=>this.handleZoomIn()}),i("verdocs-dropdown",{options:!this.isDone&&!this.finishLater&&!this.submitted?t:n,onOptionSelected:e=>this.handleOptionSelected(e)}))),this.toolbarStyle==="controls"&&i("div",{class:"controls-toolbar"},i("div",{class:"left-controls"},i("div",{class:"title"},this.envelope.name)),i("div",{class:"center-controls"},i("span",{class:"label"},"Page"),i("div",{class:"select-wrapper"},i("verdocs-select-input",{options:r,value:this.pageNumber.toString(),onInput:e=>this.handlePageSelect(e)})),i("span",{class:"count"},"of ",a)),i("div",{class:"right-controls"},!this.submitted&&i("verdocs-button",{class:"mobile-next-button",label:this.nextButtonLabel,size:"xsmall",disabled:!this.agreed||this.submitting,onClick:()=>this.handleNext()}),i("div",{class:{"icon-button":true,minus:true,disabled:this.zoomLevel==="normal"},innerHTML:O,onClick:()=>this.handleZoomOut()}),i("div",{class:{"icon-button":true,plus:true,disabled:this.zoomLevel==="zoom2"},innerHTML:U,onClick:()=>this.handleZoomIn()}),i("div",{class:"icon-button download",innerHTML:$,onClick:()=>this.handleOptionSelected({detail:{id:"download"}})}),i("div",{class:"icon-button print",innerHTML:Z,onClick:()=>this.handleOptionSelected({detail:{id:"print"}})}))),i("div",{class:`document signed-document-container zoom-${this.zoomLevel}`},(this.envelope.documents||[]).map((e=>{const t=G(1,e.pages);return i(o,null,this.envelope.documents.length>1&&i("div",{class:"document-separator"},i("div",{innerHTML:q}),i("span",null,e.name)),t.map((t=>{var s;const o=((s=e.page_sizes)===null||s===void 0?void 0:s[t])||{width:612,height:792};d++;return i("verdocs-envelope-document-page",{id:`page-${d}`,envelopeId:this.envelopeId,documentId:e.id,endpoint:this.endpoint,virtualWidth:o.width,virtualHeight:o.height,pageNumber:t,onPageRendered:e=>this.handlePageRendered(e),type:"filled",layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})})))}))),this.showFinishLater&&i("verdocs-ok-dialog",{heading:"You've saved your document to finish later.",message:`To complete the ${this.documentsSingularPlural}, use the link in the original email notification inviting you to review and finish the document.`,onNext:()=>{this.isDone=true;this.showFinishLater=false}}),this.showDone&&i("verdocs-ok-dialog",{heading:"You're Done!",message:`You can access the ${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:()=>{this.handleDoneDialogDismiss()},onExit:()=>this.handleDoneDialogDismiss()}),this.adoptingSignature&&i("verdocs-adopt-signature-dialog",{name:w(this.recipient),nameLocked:!!((e=this.recipient)===null||e===void 0?void 0:e.name_locked),onNext:async e=>{console.log("[SIGN] Adopting signature/initials block",e.detail);this.showSpinner=true;const t=await(await fetch(e.detail.signature)).blob();const i=await(await fetch(e.detail.initials)).blob();const s=await p(this.endpoint,"signature",t);console.log("[SIGN] Created signature",s);this.signatureId=s.id;const o=await u(this.endpoint,"initial",i);console.log("[SIGN] Created initials",o);this.initialId=o.id;this.showSpinner=false;this.adoptingSignature=false;this.markEnvelopeStarted();if(this.focusedField){const e=this.getRecipientFields().find((e=>e.name===this.focusedField));if(e){const t=e.type==="signature"?this.signatureId:e.type==="initial"?this.initialId:null;if(t){const i=await h(this.endpoint,this.envelopeId,this.roleId,e.name,t,false);this.updateRecipientFieldValue(e.name,i)}}this.focusedField=""}const n=this.el.querySelectorAll("verdocs-field-signature");n.forEach((e=>e.setAttribute("signatureid",this.signatureId)));const l=this.el.querySelectorAll("verdocs-field-initial");l.forEach((e=>e.setAttribute("initialid",this.initialId)));this.checkRecipientFields()},onExit:()=>this.adoptingSignature=false}),(this.submitting||this.showSpinner)&&i("verdocs-portal",null,i("div",{class:"spinner-overlay"},i("verdocs-spinner",null))),this.showDownloadDialog&&i("verdocs-download-dialog",{signed:this.envelope.signed,polling:this.polling,documents:this.envelope.documents,onExit:()=>{this.showDownloadDialog=false;this.stopPolling()},onDownload:e=>this.handleOnDownload(e)}),!this.loading&&!this.isDone&&!this.submitted&&i("verdocs-sign-footer",{endpoint:this.endpoint,envelopeId:this.envelopeId,isDone:this.isDone,onAskQuestion:e=>{L(this.endpoint,this.envelopeId,this.roleId,{question:e.detail.question}).then((()=>P("Your question has been sent.",{style:"success"}))).catch((e=>{console.log("Error asking question",e);P("Unable to send question, please try again later.",{style:"error"})}))},onDecline:()=>this.declining=true,onFinishLater:()=>this.showFinishLater=true}))}get el(){return n(this)}};Y.style=j();export{Y as verdocs_sign};
2
- //# sourceMappingURL=p-734c8a8b.entry.js.map
1
+ import{r as e,c as t,h as i,H as s,F as o,g as n}from"./p-CjTHbolG.js";import{VerdocsEndpoint as l,DEFAULT_DISCLOSURES as a,startSigningSession as r,getEnvelope as d,envelopeRecipientAgree as c,updateEnvelopeField as h,createSignature as p,createInitials as u,sortFields as g,envelopeRecipientSubmit as v,isFieldValid as f,isFieldFilled as m,uploadEnvelopeFieldAttachment as x,deleteEnvelopeFieldAttachment as b,formatFullName as w,fullNameToInitials as y,verifySigner as k,getEnvelopesZip as C,getEnvelopeDocumentDownloadLink as S,getCombinedEnvelopeDocumentDownloadLink as N,delegateRecipient as I,envelopeRecipientDecline as z,integerSequence as G,askQuestion as L}from"@verdocs/js-sdk";import{u as H,g as T,r as D,a as E,d as F}from"./p-CGsVCy75.js";import{D as V}from"./p-CIxfEdV7.js";import{D as q,C as M}from"./p-DobS6Y7w.js";import{V as P}from"./p-D97GxsI-.js";import{S as A}from"./p-C1sRVZWv.js";import{S as R}from"./p-C7hFgM52.js";import"./p-BglCURB-.js";const j=()=>`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}`;const O=`<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>`;const U=`<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>`;const $=`<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>`;const Z=`<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>`;const Y=class{constructor(i){e(this,i);this.sdkError=t(this,"sdkError");this.envelopeLoaded=t(this,"envelopeLoaded");this.envelopeUpdated=t(this,"envelopeUpdated");this.endpoint=new l({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=a;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=async()=>{this.showDone=false;if(!this.isDone){this.prepareForViewTransition();await new Promise((e=>requestAnimationFrame((()=>e()))));this.isDone=true}}}async componentDidLoad(){var e,t,i,s,o,n;this.updateZoomFromWindow();window.addEventListener("resize",(()=>this.updateZoomFromWindow()));if(!this.envelopeId){(e=this.sdkError)===null||e===void 0?void 0:e.emit(new A("[SIGN] Missing required envelopId",500,""));return}if(!this.roleId){(t=this.sdkError)===null||t===void 0?void 0:t.emit(new A("[SIGN] Missing required roleId",500,""));return}if(!this.inviteCode){(i=this.sdkError)===null||i===void 0?void 0:i.emit(new A("[SIGN] Missing required inviteCode",500,""));return}try{await this.initSigningSession()}catch(e){console.log("[SIGN] Error with signing session",e);(s=this.sdkError)===null||s===void 0?void 0:s.emit(new A(e.message,(o=e.response)===null||o===void 0?void 0:o.status,(n=e.response)===null||n===void 0?void 0:n.data));this.showLoadError=true}}async initSigningSession(){console.log(`[SIGN] Processing invite code for ${this.envelopeId} / ${this.roleId}`);const e=await r(this.endpoint,this.envelopeId,this.roleId,this.inviteCode);this.processAuthResponse(e)}async retrySigningSession(){var e,t,i;this.showLoadError=false;this.loading=true;try{await this.initSigningSession()}catch(s){console.log("[SIGN] Error with signing session",s);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new A(s.message,(t=s.response)===null||t===void 0?void 0:t.status,(i=s.response)===null||i===void 0?void 0:i.data));this.showLoadError=true;this.loading=false}}prepareForViewTransition(){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()}async handleSubmitSuccess(){var e,t;this.submitting=false;this.submitted=true;this.nextSubmits=false;this.signingProgressMode="completed";try{const i=await d(this.endpoint,this.envelopeId);this.envelope=i;R.updateEnvelope(this.envelopeId,i);const s=(e=i.recipients)===null||e===void 0?void 0:e.find((e=>{var t;return e.role_name===((t=this.recipient)===null||t===void 0?void 0:t.role_name)}));if(s){this.recipient=s}(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:i,event:"submitted"})}catch(e){console.warn("[SIGN] Error refreshing envelope after submit",e)}this.showDone=true}componentDidRender(){const e=this.headerTargetId?document.getElementById(this.headerTargetId):null;const t=document.getElementById("verdocs-sign-header");if(e&&t){console.log("[SIGN] Moving header");t.remove();e.append(t)}this.setupIntersectionObserver()}disconnectedCallback(){var e,t,i;this.stopPolling();(e=this.observer)===null||e===void 0?void 0:e.disconnect();window.removeEventListener("resize",(()=>this.updateZoomFromWindow()));(t=document.getElementById(this.getOrgStyleOverridesId()))===null||t===void 0?void 0:t.remove();(i=document.getElementById(this.getBrandStyleOverridesId()))===null||i===void 0?void 0:i.remove()}updateZoomFromWindow(){const 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"}}setupIntersectionObserver(){const e=this.el.querySelectorAll("verdocs-envelope-document-page");if(e.length===0)return;if(this.observer){this.observer.disconnect()}const t=this.el.querySelector(".signed-document-container");const i={root:t,rootMargin:"-40% 0px -40% 0px",threshold:0};this.observer=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const t=e.target.id;const i=parseInt(t.replace("page-",""),10);if(!isNaN(i)&&this.pageNumber!==i){this.pageNumber=i}}}))}),i);e.forEach((e=>this.observer.observe(e)))}getOrgStyleOverridesId(){return`verdocs-org-style-overrides-${this.envelopeId}`}getBrandStyleOverridesId(){return`verdocs-brand-style-overrides-${this.envelopeId}`}applyOrgStyleOverrides(){var e,t;const i=this.getOrgStyleOverridesId();const s=document.getElementById(i);const 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"){const e=s||document.createElement("style");e.id=i;e.textContent=o;if(!s){document.head.appendChild(e)}}else if(s){s.remove()}}applyBrandStyleOverrides(e){const t=this.getBrandStyleOverridesId();const i=document.getElementById(t);const s=e===null||e===void 0?void 0:e.style_overrides;if(typeof s==="string"&&s.length>0){const e=i||document.createElement("style");e.id=t;e.textContent=s;if(!i){document.head.appendChild(e)}}else if(i){i.remove()}}processAuthResponse(e){var t,i,s,o;const{envelope:n,recipient:l,brand:r}=e;(t=n.documents)===null||t===void 0?void 0:t.sort(((e,t)=>e.order!==t.order?e.order-t.order:e.created_at.localeCompare(t.created_at)));const{auth_step:d}=l;this.recipient=l;this.envelope=n;this.disclosures=((s=(i=this.envelope)===null||i===void 0?void 0:i.organization)===null||s===void 0?void 0:s.disclaimer)||a;this.applyOrgStyleOverrides();this.applyBrandStyleOverrides(r);this.authStep=d;this.delegated=!!l.delegated_to;this.agreed=l.agreed;this.signatureId=null;this.initialId=null;this.submitted=l.status==="submitted";this.loading=false;this.isDone=this.submitted;this.showDone=this.submitted;R.updateEnvelope(this.envelopeId,n);if(this.envelope.documents.length>0){this.documentsSingularPlural="document(s)"}this.authMethodStates=l.auth_method_states||{};this.kbaQuestions=l.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(l.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})}handleClickAgree(){this.submitting=true;console.log("[SIGN] Accepting disclosures",this.disclosures);const e=Intl.DateTimeFormat().resolvedOptions();c(this.endpoint,this.envelopeId,this.roleId,this.disclosures,{locale:e.locale,timezone:e.timeZone}).then((()=>{var e;this.nextButtonLabel="Next";this.recipient.agreed=true;this.submitting=false;this.agreed=true;(e=this.envelopeUpdated)===null||e===void 0?void 0:e.emit({endpoint:this.endpoint,envelope:this.envelope,event:"agreed"})})).catch((e=>{var t,i,s;console.log("[SIGN] Unable to accept disclosures",e);P("Unable to accept disclosures, please try again later",{style:"error"});(t=this.sdkError)===null||t===void 0?void 0:t.emit(new A(e.message,(i=e.response)===null||i===void 0?void 0:i.status,(s=e.response)===null||s===void 0?void 0:s.data));this.submitting=false}))}handlePageSelect(e){const t=parseInt(e.target.value);if(!isNaN(t)){this.pageNumber=t;const e=this.el.querySelector(".signed-document-container");const i=this.el.querySelector(`#page-${t}`);if(e&&i){const t=i.offsetTop-20;e.scrollTo({top:t,behavior:"smooth"})}}}async handleOptionSelected(e){var t,i;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}}startPolling(){this.stopPolling();const e=()=>{var e,t,i,s,o,n;const l=((e=this.envelope)===null||e===void 0?void 0:e.status)==="complete"||!!((t=this.envelope)===null||t===void 0?void 0:t.signed);const a=(s=(i=this.envelope)===null||i===void 0?void 0:i.documents)===null||s===void 0?void 0:s.some((e=>e.type==="certificate"));const r=(n=(o=this.envelope)===null||o===void 0?void 0:o.recipients)===null||n===void 0?void 0:n.every((e=>e.status==="submitted"));if(l&&a)return false;if(!r)return false;return true};if(!e()){return}this.polling=true;this.pollingInterval=setInterval((async()=>{try{const t=await d(this.endpoint,this.envelopeId);this.envelope=t;R.updateEnvelope(this.envelopeId,t);this.checkRecipientFields();if(!e()){this.stopPolling()}}catch(e){console.error("[SIGN] Polling error",e);this.stopPolling()}}),5e3)}stopPolling(){if(this.pollingInterval){clearInterval(this.pollingInterval);this.pollingInterval=null}this.polling=false}handleZoomIn(){if(this.zoomLevel==="normal"){this.zoomLevel="zoom1"}else if(this.zoomLevel==="zoom1"){this.zoomLevel="zoom2"}}handleZoomOut(){if(this.zoomLevel==="zoom1"){this.zoomLevel="normal"}else if(this.zoomLevel==="zoom2"){this.zoomLevel="zoom1"}}updateRecipientFieldValue(e,t){console.log("[SIGN] updateRecipientFieldValue",e,t);this.getRecipientFields().forEach((i=>{if(i.name===e){i.value=t.value;i.settings=t.settings;H(i);this.fieldUpdateCounter++;this.markEnvelopeStarted();this.checkRecipientFields()}}))}getStartedKey(){var e;return`${this.envelopeId}:${((e=this.recipient)===null||e===void 0?void 0:e.role_name)||""}`}markEnvelopeStarted(){const e=JSON.parse(localStorage.getItem("startedEnvelopes")||"[]");const t=this.getStartedKey();if(!e.includes(t)){e.push(t);while(e.length>10){e.shift()}localStorage.setItem("startedEnvelopes",JSON.stringify(e))}}saveFieldChange(e,t,i){const s=this.getRecipientFields().find((t=>t.name===e));if(s===null||s===void 0?void 0:s.readonly){return}console.log("[SIGN] saveFieldChange",e,{value:t,prepared:i});h(this.endpoint,this.envelopeId,this.roleId,e,t,i).then((t=>this.updateRecipientFieldValue(e,t))).catch((e=>{var t,i,s,o,n,l;if(((t=e.response)===null||t===void 0?void 0:t.status)===401&&((s=(i=e.response)===null||i===void 0?void 0:i.data)===null||s===void 0?void 0:s.error)==="jwt expired"){console.log("[SIGN] Signing session expired");this.fatalErrorHeader="Signing Session Expired";this.fatalErrorMessage="Please reload your browser to continue."}else{console.log("[SIGN] Server error",e);P("Unable to save change, please try again later",{style:"error"})}(o=this.sdkError)===null||o===void 0?void 0:o.emit(new A(e.message,(n=e.response)===null||n===void 0?void 0:n.status,(l=e.response)===null||l===void 0?void 0:l.data))}))}async handleFieldChange(e,t){if(!t.target){return}const{value:i,checked:s}=t.target;switch(e.type){case"textarea":case"textbox":return this.saveFieldChange(e.name,i,false);case"checkbox":{return this.saveFieldChange(e.name,String(t.target.checked),false)}case"radio":{return this.saveFieldChange(e.name,String(t.target.checked),false)}case"dropdown":console.log("Saving dropdown",e.name,t.detail);return this.saveFieldChange(e.name,t.detail,false);case"initial":if(t.detail===undefined){return}if(t.detail===null){console.log("[SIGN] Clearing initial");const t=await h(this.endpoint,this.envelopeId,this.roleId,e.name,null,false);return this.updateRecipientFieldValue(e.name,t)}if(this.initialId){console.log("[SIGN] Reusing initial",this.initialId);const t=await h(this.endpoint,this.envelopeId,this.roleId,e.name,this.initialId,false);return this.updateRecipientFieldValue(e.name,t)}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)){console.log("[SIGN] Reusing initial",t.detail);const i=await h(this.endpoint,this.envelopeId,this.roleId,e.name,t.detail,false);this.initialId=t.detail;return this.updateRecipientFieldValue(e.name,i)}this.showSpinner=true;const o=await(await fetch(t.detail)).blob();return u(this.endpoint,"initial",o).then((async t=>{const i=await h(this.endpoint,this.envelopeId,this.roleId,e.name,t.id,false);this.updateRecipientFieldValue(e.name,i);this.initialId=t.id;this.showSpinner=false})).catch((e=>{console.log("Error updating initials",e);P("Unable to save initials, please try again later",{style:"error"});this.showSpinner=false}));case"signature":if(t.detail===undefined){return}if(t.detail===null){console.log("[SIGN] Clearing signature");const t=await h(this.endpoint,this.envelopeId,this.roleId,e.name,null,false);return this.updateRecipientFieldValue(e.name,t)}if(this.signatureId){console.log("[SIGN] Reusing signature",this.signatureId);const t=await h(this.endpoint,this.envelopeId,this.roleId,e.name,this.signatureId,false);return this.updateRecipientFieldValue(e.name,t)}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)){console.log("[SIGN] Reusing signature",t.detail);const i=await h(this.endpoint,this.envelopeId,this.roleId,e.name,t.detail,false);this.signatureId=t.detail;return this.updateRecipientFieldValue(e.name,i)}this.showSpinner=true;const n=await(await fetch(t.detail)).blob();console.log("[SIGN] Creating new signature");return p(this.endpoint,"signature",n).then((async t=>{console.log("Signature update result",t);const i=await h(this.endpoint,this.envelopeId,this.roleId,e.name,t.id,false);this.updateRecipientFieldValue(e.name,i);this.signatureId=t.id;this.showSpinner=false})).catch((e=>{console.warn("[SIGN] Error updating signature",e);P("Unable to save signature, please try again later",{style:"error"});this.showSpinner=false}));case"date":const{formattedDate:l}=t.detail;if(l){return this.saveFieldChange(e.name,l,false)}break;case"timestamp":console.log("[SIGN] Updating timestamp",{value:i,ts:t.target.getAttribute("timestamp")});break;default:console.log("[SIGN] Unhandled field update",{value:i,checked:s},e);break}}getSortedFillableFields(){const e=this.getRecipientFields().filter((e=>e.type!=="timestamp"&&!e.readonly));g(e);return e}getSortedDisplayableFields(){const e=this.getRecipientFields().filter((e=>e.type!=="timestamp"));g(e);return e}async handleNext(){var e;if(this.nextSubmits){if(this.submitted){return}try{(e=document.getElementById("air-datepicker-global-container"))===null||e===void 0?void 0:e.remove();this.submitting=true;const t=Intl.DateTimeFormat().resolvedOptions();const i=await v(this.endpoint,this.envelopeId,this.roleId,{locale:t.locale,timezone:t.timeZone});console.log("[SIGN] Submitted successfully",i);await this.handleSubmitSuccess()}catch(e){console.log("[SIGN] Error submitting",e);this.submitting=false;P("Unable to submit document, please try again.",{style:"error"})}return}const t=this.getSortedFillableFields().filter((e=>!this.isFieldActuallyFilled(e)));const i=this.getNextFieldFromList(t);if(i){const e=T(i);const t=document.getElementById(e);t===null||t===void 0?void 0:t.scrollIntoView({behavior:"smooth",block:"center",inline:"center"});t===null||t===void 0?void 0:t.focusField();this.focusedField=i.name}}handleNextOptional(){const e=this.getSortedFillableFields().filter((e=>!e.required&&!this.isFieldActuallyFilled(e)));const t=this.getNextFieldFromList(e);if(t){const e=T(t);const i=document.getElementById(e);i===null||i===void 0?void 0:i.scrollIntoView({behavior:"smooth",block:"center",inline:"center"});i===null||i===void 0?void 0:i.focusField();this.focusedField=t.name}}getRecipientFields(){var e;return((e=this.envelope)===null||e===void 0?void 0:e.fields.filter((e=>e.role_name===this.recipient.role_name)))||[]}getRequiredTotalCount(){return this.getSortedFillableFields().filter((e=>e.required)).length}getRequiredFilledCount(){return this.getSortedFillableFields().filter((e=>e.required&&this.isFieldActuallyFilled(e))).length}getOptionalUnfilledCount(){return this.getSortedFillableFields().filter((e=>!e.required&&!this.isFieldActuallyFilled(e))).length}checkRecipientFields(){if(this.submitted||this.isDone){return}const e=this.getRecipientFields().filter((e=>!f(e,this.getRecipientFields())));if(e.length<1){this.nextButtonLabel="Finish";if(!this.nextSubmits){this.nextSubmits=true}}else{this.nextButtonLabel="Next";this.nextSubmits=false}this.updateAllFlags();const t=JSON.parse(localStorage.getItem("startedEnvelopes")||"[]");const i=t.includes(this.getStartedKey());if(this.nextSubmits){this.signingProgressMode="completed"}else if(i){this.signingProgressMode="signing"}else{this.signingProgressMode="start"}}isFieldActuallyFilled(e){if(e.type==="radio"&&e.group){const t=this.getRecipientFields().some((t=>t.group===e.group&&t.value==="true"));if(t){return true}}return m(e,this.getRecipientFields())&&(e.type!=="dropdown"||!!e.value)&&(e.type!=="radio"||e.value==="true")&&(e.type!=="checkbox"||e.value==="true")}getNextRequiredField(){const e=this.getSortedFillableFields().filter((e=>e.required&&!this.isFieldActuallyFilled(e)));g(e);if(e.length===0){const e=this.getSortedFillableFields().filter((e=>!this.isFieldActuallyFilled(e)));g(e);if(e.length>0){return this.getNextFieldFromList(e)}return null}return this.getNextFieldFromList(e)}getNextFieldFromList(e){const t=e.findIndex((e=>e.name===this.focusedField));let i=t+1;if(i>=e.length){i=0}return e[i]}handlePrev(){var e;const t=this.getSortedFillableFields();const i=t.findIndex((e=>e.name===this.focusedField));if(i>0){const s=t[i-1];const o=T(s);const n=document.getElementById(o);n===null||n===void 0?void 0:n.scrollIntoView({behavior:"smooth",block:"center"});(e=n===null||n===void 0?void 0:n.focusField)===null||e===void 0?void 0:e.call(n);this.focusedField=s.name}}updateAllFlags(){Object.values(this.renderedPages).forEach((e=>{this.updateFlagsForPage(e)}))}updateFlagsForPage(e){if(!e)return;const t=document.getElementById(e.containerId+"-controls");if(!t)return;const i=t.querySelectorAll(".verdocs-flag-instance");i.forEach((e=>e.remove()));let s=this.getNextRequiredField();const o=this.getRecipientFields().find((e=>e.name===this.focusedField));if(o&&!m(o,this.getRecipientFields())){s=o}if(s&&s.page===e.pageNumber&&s.document_id===e.documentId){const t="fill";let i="FILL";let o=false;switch(s.type){case"signature":i="SIGN";break;case"initial":i="INITIAL";break;case"checkbox":i="CHECK";break;case"radio":i="SELECT";break;case"date":case"dropdown":i="SELECT";break;case"attachment":i="ATTACH";break;case"payment":i="PAY";break}if(!s.required){o=true}D(e,s.y,s.height||F(s.type),{variant:t,label:i,showSkip:o,onSkip:()=>{this.handleNext()},onClick:()=>{var e;const t=T(s);const 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)}})}}attachFieldAttributes(e,t,i){if(i.getAttribute("attached")==="1"){return}i.setAttribute("attached","1");i.addEventListener("input",(e=>{if(e.target.type==="radio"||e.target.type==="checkbox"){this.handleFieldChange(t,e).finally((()=>this.checkRecipientFields()))}else{this.checkRecipientFields()}}));i.addEventListener("attached",(async i=>{console.log("[SIGN] onAttached",i.detail,i.target.value);this.showSpinner=true;try{const s=await x(this.endpoint,this.envelopeId,this.roleId,t.name,i.detail);this.updateRecipientFieldValue(t.name,s);this.checkRecipientFields();const o=E("envelope",t,e,{disabled:false,editable:false,draggable:false,done:this.isDone});this.attachFieldAttributes(e,t,o);this.showSpinner=false}catch(i){console.log("Error uploading attachment",i);P("Unable to upload attachment, please try again later",{style:"error"});this.showSpinner=false}}));i.addEventListener("deleted",(async i=>{console.log("[SIGN] onDeleted",i.detail,i.target.value);this.showSpinner=true;try{const i=await b(this.endpoint,this.envelopeId,this.roleId,t.name);console.log("[SIGN] Deleted attachment",i);this.updateRecipientFieldValue(t.name,i);this.checkRecipientFields();const s=E("envelope",t,e,{disabled:false,editable:false,draggable:false,done:this.isDone});this.attachFieldAttributes(e,t,s);this.showSpinner=false}catch(i){console.log("Error uploading attachment",i);P("Unable to upload attachment, please try again later",{style:"error"});this.showSpinner=false}}));i.addEventListener("focusout",(e=>{if(t.type!=="dropdown"&&t.type!=="attachment"&&t.type!=="signature"&&t.type!=="initial"&&t.type!=="checkbox"&&t.type!=="radio"){this.handleFieldChange(t,e).finally((()=>this.checkRecipientFields()))}}));i.addEventListener("fieldChange",(e=>{this.handleFieldChange(t,e).finally((()=>this.checkRecipientFields()))}));i.addEventListener("adopt",(()=>{this.focusedField=t.name;this.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);const s=w(this.recipient);i.setAttribute("initials",y(s));i.setAttribute("name",s);if(this.signatureId){i.setAttribute("signatureid",this.signatureId)}if(this.initialId){i.setAttribute("initialid",this.initialId)}}handlePageRendered(e){const t=e.detail;this.renderedPages[`${t.documentId}:${t.pageNumber}`]=t;const i=this.getSortedDisplayableFields();i.filter((e=>e&&e.document_id===t.documentId&&e.page===t.pageNumber)).forEach(((e,i)=>{const s=E("envelope",e,t,{disabled:false,editable:false,draggable:false,done:this.isDone},i);if(!s){return}if(Array.isArray(s)){s.map((i=>this.attachFieldAttributes(t,e,i)))}else{this.attachFieldAttributes(t,e,s)}}));this.envelope.recipients.filter((e=>e.role_name!==this.recipient.role_name&&(e.status==="invited"||e.status==="opened"||e.status==="pending"))).forEach((()=>{this.getRecipientFields().filter((e=>e.document_id===t.documentId&&e.page===t.pageNumber)).forEach((e=>{const i=E("envelope",e,t,{disabled:true,editable:false,draggable:false,done:this.isDone});if(!i){return}if(Array.isArray(i)){i.map((i=>this.attachFieldAttributes(t,e,i)))}else{this.attachFieldAttributes(t,e,i)}}))}));this.checkRecipientFields();this.updateFlagsForPage(t)}handleAuthenticateSigner(e){console.log("[SIGN] Submitting authentication step",e);k(this.endpoint,e).then((e=>{console.log("[SIGN] Verification successful",e);this.processAuthResponse(e)})).catch((e=>{var t,i,s,o,n,l;console.log("[SIGN] Error submitting authentication step",e);console.log((t=e.response)===null||t===void 0?void 0:t.data);if((o=(s=(i=e.response)===null||i===void 0?void 0:i.data)===null||s===void 0?void 0:s.error)===null||o===void 0?void 0:o.includes("failed")){this.fatalErrorHeader="Recipient Verification Failed";this.fatalErrorMessage="We were unable to verify your identity. The sender has been notified.";this.isDone=true}else{P(((l=(n=e.response)===null||n===void 0?void 0:n.data)===null||l===void 0?void 0:l.error)||"Unable to verify your identity. Please try again.",{style:"error"})}}))}async handleOnDownload(e){var t,i;const{action:s,documentId:o}=e.detail;console.log("[SIGN] Download action selected:",s,o);try{switch(s){case V.certificate:const e=this.envelope.documents.find((e=>e.type==="certificate"));if(e){const t=await S(this.endpoint,e.id);window.open(t,"_blank")}else{P("Certificate not yet available.",{style:"info"})}break;case V.combined:const s=o||((t=this.envelope.documents.find((e=>e.type==="certificate")))===null||t===void 0?void 0:t.id);const n=await N(this.endpoint,s);window.open(n,"_blank");break;case V.document:const l=o||((i=this.envelope.documents.find((e=>e.type==="attachment")))===null||i===void 0?void 0:i.id);if(l){const e=await S(this.endpoint,l);window.open(e,"_blank")}break;case V.zip:const a=await C(this.endpoint,[this.envelopeId]);const r=window.URL.createObjectURL(a.data);const d=document.createElement("a");d.href=r;d.download=`${this.envelope.name}.zip`;document.body.appendChild(d);d.click();d.remove();window.URL.revokeObjectURL(r);break}}catch(e){console.error("Download error",e);P("Unable to complete download request.",{style:"error"})}}render(){var e;if(this.showLoadError){return i(s,null,i("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:()=>{this.retrySigningSession()}}))}if(!this.envelope){return i(s,null,i("verdocs-loader",null))}if(this.fatalErrorMessage){return i(s,{class:{agreed:this.agreed}},i("div",{class:"fatal-error"},i("div",{class:"message"},i("div",{class:"header"},this.fatalErrorHeader),i("p",null,this.fatalErrorMessage))))}if(this.delegated){return i(s,{class:{agreed:false}},i("div",{class:"fatal-error"},i("div",{class:"message"},i("div",{class:"header"},"Delegated Signing Request"),i("p",null,"You have delegated signing to another recipient. You will not be able to sign this request again."))))}if(this.isDone){return i(s,{class:{agreed:this.agreed}},i("verdocs-view",{endpoint:this.endpoint,envelopeId:this.envelopeId,onSdkError:e=>{var t;return(t=this.sdkError)===null||t===void 0?void 0:t.emit(e.detail)}}),this.showDone&&i("verdocs-ok-dialog",{heading:"You're Done!",message:`You can access the ${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:e=>{e.preventDefault();e.stopPropagation();this.handleDoneDialogDismiss()},onExit:()=>this.handleDoneDialogDismiss()}),this.submitting&&i("div",{class:"loading-indicator"},i("verdocs-loader",null)))}if(this.delegating){return i(s,{class:"agreed"},i("div",{class:"document",style:{paddingTop:"15px"}},i("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"})),i("verdocs-delegate-dialog",{endpoint:this.endpoint,envelope:this.envelope,onExit:()=>this.delegating=false,onNext:e=>{I(this.endpoint,this.envelopeId,this.roleId,e.detail).then((e=>{P("Delegation request submitted.",{style:"success"});console.log("[SIGN] Delegated successfully",e);this.delegated=true;this.delegating=false})).catch((e=>{console.log("[SIGN] Error delegating request",e);P("Unable to process delegation request. Please try again later.",{style:"error"})}))}}))}if(this.declining){return i(s,{class:"agreed"},i("div",{class:"document",style:{paddingTop:"15px"}},i("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"})),i("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:()=>this.declining=false,onNext:()=>{z(this.endpoint,this.envelopeId,this.roleId).then((e=>{console.log("[SIGN] Decline result",e);this.declining=false;this.fatalErrorHeader="Declined";this.fatalErrorMessage="You have declined to sign this request. The sender has been notified."})).catch((e=>{console.warn("[SIGN] Error declining signing session",e);P("Unable to decline, please try again later",{style:"error"})}))}}))}if(!this.agreed){return i(s,{class:"agreed"},i("div",{class:"document",style:{paddingTop:"15px"}},i("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"})),i("verdocs-disclosure-dialog",{disclosures:this.disclosures,delegator:this.recipient.delegator,onDelegate:()=>this.delegating=true,onDecline:()=>this.declining=true,onAccept:()=>this.handleClickAgree()}))}if(this.authStep==="passcode"){return i("verdocs-passcode-dialog",{endpoint:this.endpoint,onNext:e=>this.processAuthResponse(e.detail.response)})}if(this.authStep==="sms"){return i("verdocs-otp-dialog",{endpoint:this.endpoint,method:"sms",onNext:async e=>{this.processAuthResponse(e.detail.response)}})}if(this.authStep==="email"){return i("verdocs-otp-dialog",{endpoint:this.endpoint,method:"email",onNext:async e=>{this.processAuthResponse(e.detail.response)}})}if(this.authStep==="kba"&&!this.authMethodStates.kba){return i(s,{class:"kba"},i("div",{id:"verdocs-sign-header"},i("div",{class:"inner"},i("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),i("div",{class:"title"},this.envelope.name))),i("div",{class:"document",style:{paddingTop:"15px"}},i("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"})),i("div",{class:"cover"},i("div",{class:"kba"},i("verdocs-kba-dialog",{mode:"identity",helptitle:"Document requires identity verification",helptext:"Please complete your contact details to proceed.",recipient:this.recipient,onNext:async e=>{const t=e.detail;this.handleAuthenticateSigner({auth_method:"kba",first_name:t.first_name,last_name:t.last_name,address:t.address,city:t.city,state:t.state,zip:t.zip,dob:t.dob})}}))))}if(this.authStep==="kba"&&this.authMethodStates.kba==="questions"){const e=this.kbaChoices.length;const t=this.kbaQuestions[e];return i(s,{class:"kba"},i("div",{id:"verdocs-sign-header"},i("div",{class:"inner"},i("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),i("div",{class:"title"},this.envelope.name))),i("div",{class:"document",style:{paddingTop:"15px"}},i("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"})),i("div",{class:"cover"},i("div",{class:"kba"},this.kbaChoices.length>=this.kbaQuestions.length?i("verdocs-spinner",null):i("verdocs-kba-dialog",{mode:"choice",helptitle:"Your identity requires additional verification",helptext:(t===null||t===void 0?void 0:t.prompt)||"Please select one of the options below.",choices:(t===null||t===void 0?void 0:t.answer)||["Skip Question"],step:e+1,steps:this.kbaQuestions.length,onNext:async e=>{const t=e.detail;this.kbaChoices=[...this.kbaChoices,t];if(this.kbaChoices.length>=this.kbaQuestions.length){const e=this.kbaQuestions.map(((e,t)=>({type:e.type,answer:this.kbaChoices[t]})));console.log("Submitting KBA responses",this.kbaChoices,e);this.handleAuthenticateSigner({auth_method:"kba",responses:e})}}}))))}const t=[{id:"later",label:"Finish Later"},{id:"decline",label:"Decline to Sign"},{id:"print",label:"Print Without Signing"},{id:"download",label:"Download"}];const n=[{id:"print",label:"Print"},{id:"download",label:"Download"}];if(this.recipient.delegator){t.unshift({id:"delegate",label:"Delegate"})}const l=this.getRecipientFields().filter((e=>!f(e,this.getRecipientFields())));l.length>0?console.log("[SIGN] Invalid fields remaining",l.map((e=>e.name))):console.log("[SIGN] All field valid");const a=this.envelope.documents.reduce(((e,t)=>e+t.pages),0);const r=G(1,a).map((e=>({label:e.toString(),value:e.toString()})));let d=0;return i(s,null,this.toolbarStyle==="menu"&&i("div",{id:"verdocs-sign-header"},i("div",{class:"inner"},i("div",{class:"title"},this.envelope.name),i("div",{style:{flex:"1"}}),!this.finishLater&&!this.submitted&&(()=>{const e=this.getRequiredTotalCount()-this.getRequiredFilledCount();const t=this.getOptionalUnfilledCount();if(e>0){return i("span",{class:"remaining-count"},e," required field",e===1?"":"s"," left")}return i("span",{class:"remaining-count"},i("span",{class:"check-icon",innerHTML:M}),"All required fields complete",t>0&&i("div",{class:"review-optional"},i("span",{class:"separator"},"| "),i("span",{onClick:()=>this.handleNextOptional()},"Review ",t," optional")))})(),!this.finishLater&&!this.submitted&&i("verdocs-button",{size:"xsmall",label:this.nextButtonLabel==="Next"?"Next Required":this.nextButtonLabel,disabled:!this.agreed||this.submitting||this.submitted,onClick:()=>this.handleNext()}),i("div",{class:{"icon-button":true,minus:true,disabled:this.zoomLevel==="normal",magnify:true},innerHTML:O,onClick:()=>this.handleZoomOut()}),i("div",{class:{"icon-button":true,plus:true,disabled:this.zoomLevel==="zoom2",magnify:true},innerHTML:U,onClick:()=>this.handleZoomIn()}),i("verdocs-dropdown",{options:!this.isDone&&!this.finishLater&&!this.submitted?t:n,onOptionSelected:e=>this.handleOptionSelected(e)}))),this.toolbarStyle==="controls"&&i("div",{class:"controls-toolbar"},i("div",{class:"left-controls"},i("div",{class:"title"},this.envelope.name)),i("div",{class:"center-controls"},i("span",{class:"label"},"Page"),i("div",{class:"select-wrapper"},i("verdocs-select-input",{options:r,value:this.pageNumber.toString(),onInput:e=>this.handlePageSelect(e)})),i("span",{class:"count"},"of ",a)),i("div",{class:"right-controls"},!this.submitted&&i("verdocs-button",{class:"mobile-next-button",label:this.nextButtonLabel,size:"xsmall",disabled:!this.agreed||this.submitting,onClick:()=>this.handleNext()}),i("div",{class:{"icon-button":true,minus:true,disabled:this.zoomLevel==="normal"},innerHTML:O,onClick:()=>this.handleZoomOut()}),i("div",{class:{"icon-button":true,plus:true,disabled:this.zoomLevel==="zoom2"},innerHTML:U,onClick:()=>this.handleZoomIn()}),i("div",{class:"icon-button download",innerHTML:$,onClick:()=>this.handleOptionSelected({detail:{id:"download"}})}),i("div",{class:"icon-button print",innerHTML:Z,onClick:()=>this.handleOptionSelected({detail:{id:"print"}})}))),i("div",{class:`document signed-document-container zoom-${this.zoomLevel}`},(this.envelope.documents||[]).map((e=>{const t=G(1,e.pages);return i(o,null,this.envelope.documents.length>1&&i("div",{class:"document-separator"},i("div",{innerHTML:q}),i("span",null,e.name)),t.map((t=>{var s;const o=((s=e.page_sizes)===null||s===void 0?void 0:s[t])||{width:612,height:792};d++;return i("verdocs-envelope-document-page",{id:`page-${d}`,envelopeId:this.envelopeId,documentId:e.id,endpoint:this.endpoint,virtualWidth:o.width,virtualHeight:o.height,pageNumber:t,onPageRendered:e=>this.handlePageRendered(e),type:"filled",layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})})))}))),this.showFinishLater&&i("verdocs-ok-dialog",{heading:"You've saved your document to finish later.",message:`To complete the ${this.documentsSingularPlural}, use the link in the original email notification inviting you to review and finish the document.`,onNext:()=>{this.isDone=true;this.showFinishLater=false}}),this.showDone&&i("verdocs-ok-dialog",{heading:"You're Done!",message:`You can access the ${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:()=>{this.handleDoneDialogDismiss()},onExit:()=>this.handleDoneDialogDismiss()}),this.adoptingSignature&&i("verdocs-adopt-signature-dialog",{name:w(this.recipient),nameLocked:!!((e=this.recipient)===null||e===void 0?void 0:e.name_locked),onNext:async e=>{console.log("[SIGN] Adopting signature/initials block",e.detail);this.showSpinner=true;const t=await(await fetch(e.detail.signature)).blob();const i=await(await fetch(e.detail.initials)).blob();const s=await p(this.endpoint,"signature",t);console.log("[SIGN] Created signature",s);this.signatureId=s.id;const o=await u(this.endpoint,"initial",i);console.log("[SIGN] Created initials",o);this.initialId=o.id;this.showSpinner=false;this.adoptingSignature=false;this.markEnvelopeStarted();if(this.focusedField){const e=this.getRecipientFields().find((e=>e.name===this.focusedField));if(e){const t=e.type==="signature"?this.signatureId:e.type==="initial"?this.initialId:null;if(t){const i=await h(this.endpoint,this.envelopeId,this.roleId,e.name,t,false);this.updateRecipientFieldValue(e.name,i)}}this.focusedField=""}const n=this.el.querySelectorAll("verdocs-field-signature");n.forEach((e=>e.setAttribute("signatureid",this.signatureId)));const l=this.el.querySelectorAll("verdocs-field-initial");l.forEach((e=>e.setAttribute("initialid",this.initialId)));this.checkRecipientFields()},onExit:()=>this.adoptingSignature=false}),(this.submitting||this.showSpinner)&&i("verdocs-portal",null,i("div",{class:"spinner-overlay"},i("verdocs-spinner",null))),this.showDownloadDialog&&i("verdocs-download-dialog",{signed:this.envelope.signed,polling:this.polling,documents:this.envelope.documents,onExit:()=>{this.showDownloadDialog=false;this.stopPolling()},onDownload:e=>this.handleOnDownload(e)}),!this.loading&&!this.isDone&&!this.submitted&&i("verdocs-sign-footer",{endpoint:this.endpoint,envelopeId:this.envelopeId,isDone:this.isDone,onAskQuestion:e=>{L(this.endpoint,this.envelopeId,this.roleId,{question:e.detail.question}).then((()=>P("Your question has been sent.",{style:"success"}))).catch((e=>{console.log("Error asking question",e);P("Unable to send question, please try again later.",{style:"error"})}))},onDecline:()=>this.declining=true,onFinishLater:()=>this.showFinishLater=true}))}get el(){return n(this)}};Y.style=j();export{Y as verdocs_sign};
2
+ //# sourceMappingURL=p-2a6a3bc6.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as o,h as e,H as t}from"./p-CjTHbolG.js";const i=()=>`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}`;const r=class{constructor(e){o(this,e);this.checked=false;this.name="";this.value="";this.disabled=false}render(){return e(t,{key:"7e9bbed16fe3a07d442f7bd7914a7c9fbeb482e2",class:{disabled:this.disabled}},e("input",{key:"52701d1a04f0fd6b6c06a348f72559b6b6319054",type:"radio",value:this.value,name:this.name,id:`verdocs-radio-button-${this.name}-${this.value}`,checked:this.checked,disabled:this.disabled}),e("label",{key:"ba49de718c824b19fafd79b6a772b32c836a005c",htmlFor:`verdocs-radio-button-${this.name}-${this.value}`}))}};r.style=i();export{r as verdocs_radio_button};
2
- //# sourceMappingURL=p-67ccf629.entry.js.map
1
+ import{r as o,h as t,H as e}from"./p-CjTHbolG.js";const i=()=>`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}`;const r=class{constructor(t){o(this,t);this.checked=false;this.name="";this.value="";this.disabled=false}render(){return t(e,{key:"6540c6df82964e146cc9fdff36fc2698fa469f40",class:{disabled:this.disabled}},t("input",{key:"53b790041955adb193ccd82adca9862f55a5bebf",type:"radio",value:this.value,name:this.name,id:`verdocs-radio-button-${this.name}-${this.value}`,checked:this.checked,disabled:this.disabled}),t("label",{key:"b9bb26cb9c6181d7a63c091b0019bd0dd11f8810",htmlFor:`verdocs-radio-button-${this.name}-${this.value}`}))}};r.style=i();export{r as verdocs_radio_button};
2
+ //# sourceMappingURL=p-2da68853.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as e,c as o,h as i,H as t,g as s}from"./p-CjTHbolG.js";import{D as n}from"./p-CIxfEdV7.js";import{VerdocsEndpoint as d,getEnvelopeDocumentPageDisplayUri as a,getEnvelope as r}from"@verdocs/js-sdk";import{t as l}from"./p-CGsVCy75.js";import{S as c}from"./p-C1sRVZWv.js";import{S as f}from"./p-C7hFgM52.js";import"./p-BglCURB-.js";const h=()=>`verdocs-download-dialog{-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", "Barlow", sans-serif}verdocs-download-dialog .heading-container{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center}verdocs-download-dialog .content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:15px;padding:0 24px 20px 24px}verdocs-download-dialog .download-option{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:12px 15px;border:1px solid #e5e7eb;border-radius:6px;cursor:pointer;-webkit-transition:all 0.2s ease;transition:all 0.2s ease;gap:15px;background:white}verdocs-download-dialog .download-option.disabled{opacity:0.5;cursor:not-allowed}verdocs-download-dialog .download-option.disabled:hover{background-color:white;border-color:#e5e7eb}verdocs-download-dialog .download-option:hover{border-color:#654dcb;background-color:#f9fafb}verdocs-download-dialog .icon-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:36px;height:36px;background-color:#f3f4f6;border-radius:50%;color:#4b5563;-ms-flex-negative:0;flex-shrink:0}verdocs-download-dialog .icon-container svg{width:18px;height:18px}verdocs-download-dialog .text-container{-ms-flex:1;flex:1}verdocs-download-dialog .text-container .label{font-weight:500;color:#111827;margin-bottom:2px}verdocs-download-dialog .text-container .description{font-size:13px;color:#6b7280}verdocs-download-dialog .status-indicator{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;gap:2px;font-size:11px;color:#9ca3af;min-width:50px}verdocs-download-dialog .status-indicator .signed{color:#10b981}verdocs-download-dialog .status-indicator .spinner-inline{display:-ms-flexbox;display:flex;color:#9ca3af;-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite}verdocs-download-dialog .status-indicator svg{width:16px;height:16px}verdocs-download-dialog .info-message{font-size:13px;color:#6b7280;font-style:italic;padding:0 4px}@-webkit-keyframes rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}`;const b=`<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V9L13 2Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M13 2V9H20" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;const p=`<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 15C15.866 15 19 11.866 19 8C19 4.13401 15.866 1 12 1C8.13401 1 5 4.13401 5 8C5 11.866 8.13401 15 12 15Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M8.21 13.89L7 23L12 20L17 23L15.79 13.88" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;const v=`<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 16V22H14V16" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M6 16H18" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M20 22H4" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 10L12 16" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M8 12L12 16L16 12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M4 16V4H20V16" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;const u=`<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 6L9 17L4 12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;const g=`<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M23 4V10H17" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M20.49 15A9 9 0 1 1 21.23 8" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;const x=class{constructor(i){e(this,i);this.download=o(this,"download");this.exit=o(this,"exit");this.signed=false;this.polling=false;this.documents=[];this.hasCertificate=false}handleOptionClick(e,o){const i=this.documents.some((e=>e.type==="certificate"))||this.hasCertificate;const t=this.signed&&i;const s=e===n.certificate&&!t;const d=e===n.zip&&(this.polling||!t);const a=e===n.combined&&(this.polling||!t||!o);if(s||d||a)return;this.download.emit({action:e,documentId:o})}render(){const e=this.documents.filter((e=>e.type==="attachment")).sort(((e,o)=>e.order!==o.order?e.order-o.order:e.created_at.localeCompare(o.created_at)));const o=this.documents.find((e=>e.type==="certificate"));const t=!!o||this.hasCertificate;const s=this.signed&&t;const d=!this.polling&&s;const a=d&&!!(o===null||o===void 0?void 0:o.id);const r=!this.signed;return i("verdocs-dialog",{key:"1952e8adf6f2aaefa179c3f0e5906b0afc072599",onExit:()=>this.exit.emit()},i("div",{key:"3a93ac39222d81bbc81df671a4ccc215e7f7518d",slot:"heading",class:"heading-container"},i("h3",{key:"ac1b12b0b361546ae9ac6fc14003de691a310d9a",style:{margin:"0",fontSize:"1.25rem",fontWeight:"600",padding:"16px 24px"}},"Download")),i("div",{key:"97277621bf0491b69592660e032bcdeb842fe284",slot:"content",class:"content"},e.length<=2&&e.map((e=>i("div",{class:"download-option",onClick:()=>this.handleOptionClick(n.document,e.id)},i("div",{class:"icon-container",innerHTML:b}),i("div",{class:"text-container"},i("div",{class:"label"},e.name),i("div",{class:"description"},"Download the document")),r?i("div",{class:"status-indicator"},i("div",{class:"spinner-inline",innerHTML:g})):i("div",{class:"status-indicator"},i("div",{class:"signed",innerHTML:u}),i("span",null,"Signed"))))),e.length>2&&i("div",{key:"dfb9c675a97b0c1aaf1a94b8f1fb9250fb130261",class:"info-message"},"Multiple documents attached. Please use the ZIP option below to download all files."),i("div",{key:"11054b7a0339bcb5dc8e1eeaad10247f1968dedc",class:{"download-option":true,disabled:!s},onClick:()=>this.handleOptionClick(n.certificate),title:!s?"Certificate not yet available":""},i("div",{key:"dfc913fc428eaea8c1f57ad46d81a049f86def99",class:"icon-container",innerHTML:p}),i("div",{key:"bd41bae1011b0983dab5f931e9ebc896df36c3c8",class:"text-container"},i("div",{key:"597257702259a7a1d8056b1eaaedd964ea55f036",class:"label"},"Certificate"),i("div",{key:"7568f095f1a1906852955d451ede9f8cc6856b33",class:"description"},"Download the certificate")),s?i("div",{class:"status-indicator"},i("div",{class:"signed",innerHTML:u}),i("span",null,"Ready")):i("div",{class:"status-indicator"},i("div",{class:"spinner-inline",innerHTML:g}))),i("div",{key:"64509a06d0937876aa048d8c3233c391fedc441f",class:{"download-option":true,disabled:!a},onClick:()=>this.handleOptionClick(n.combined,o===null||o===void 0?void 0:o.id),title:!a?"Waiting for all documents to be ready":""},i("div",{key:"64d59f0495451b84cfef5ba81be4916792c644fa",class:"icon-container",innerHTML:v}),i("div",{key:"4ab1a3e2978ed2e4ae0b9140850cb760682e7c38",class:"text-container"},i("div",{key:"bd7525c81b76c151848e0a7e4a405a3194159f18",class:"label"},"Combined"),i("div",{key:"c47fedf0d52fb79cb8b8d9b0d28c8fdacca4c747",class:"description"},"Merge envelopes & certificate into a single PDF")),a?i("div",{class:"status-indicator"},i("div",{class:"signed",innerHTML:u}),i("span",null,"Ready")):i("div",{class:"status-indicator"},i("div",{class:"spinner-inline",innerHTML:g}))),i("div",{key:"339c391d3f2c5173d4bed5a84d925b4e654a8fa7",class:{"download-option":true,disabled:!d},onClick:()=>this.handleOptionClick(n.zip),title:!d?"Waiting for all documents to be ready":""},i("div",{key:"d6c1380627984de8527a80ba8411e56f2c395d8b",class:"icon-container",innerHTML:v}),i("div",{key:"5eb7200cb95fa8bb9b6f306d8de67fdaa49f5325",class:"text-container"},i("div",{key:"99f3b98ef33901a83089869777302209194209c4",class:"label"},"All Files"),i("div",{key:"2977524b2fcbadd6e73ff7616d5305b4c35da75b",class:"description"},"Download everything as a ZIP file")),d?i("div",{class:"status-indicator"},i("div",{class:"signed",innerHTML:u}),i("span",null,"Ready")):i("div",{class:"status-indicator"},i("div",{class:"spinner-inline",innerHTML:g})))),i("div",{key:"ff7df2304f8a5a3b5c8018779d9e1cc4127c7d51",slot:"footer",style:{display:"none"}}))}};x.style=h();const k=()=>`verdocs-envelope-document-page{width:100%;position:relative}verdocs-envelope-document-page .verdocs-envelope-document-page-layer{position:absolute;top:0;left:0;right:0;bottom:0;-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)}verdocs-envelope-document-page .verdocs-envelope-document-page-layer.img{width:100%}`;const w=class{constructor(i){e(this,i);this.pageRendered=o(this,"pageRendered");this.endpoint=d.getDefault();this.envelopeId="";this.documentId="";this.pageNumber=1;this.virtualWidth=612;this.virtualHeight=792;this.layers=[{name:"page",type:"canvas"}];this.type="original";this.containerId=`verdocs-envelope-document-page-${Math.random().toString(36).substring(2,11)}`;this.renderedWidth=this.virtualWidth;this.renderedHeight=this.virtualHeight;this.naturalWidth=this.virtualWidth;this.naturalHeight=this.virtualHeight;this.aspectRatio=this.virtualWidth/this.virtualHeight;this.skipFirstNotification=true;this.pageDisplayUri="https://verdocs-public-assets.s3.amazonaws.com/page-loading-placeholder.png"}async componentWillLoad(){this.pageDisplayUri=await a(this.endpoint,this.documentId,this.pageNumber,this.type)}componentDidLoad(){this.resizeObserver=new ResizeObserver(l((e=>{for(const o of e){const e=o.contentRect.width;this.renderedWidth=e;this.renderedHeight=this.virtualHeight*(e/this.virtualWidth)}this.notifyRenderedSize()}),100));this.resizeObserver.observe(this.container)}disconnectedCallback(){var e;(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect()}notifyRenderedSize(){if(this.skipFirstNotification){this.skipFirstNotification=false;return}this.pageRendered.emit({containerId:this.containerId,documentId:this.documentId,pageNumber:this.pageNumber,virtualWidth:this.virtualWidth,virtualHeight:this.virtualHeight,renderedWidth:this.renderedWidth,renderedHeight:this.renderedHeight,naturalWidth:this.naturalWidth,naturalHeight:this.naturalHeight,aspectRatio:this.aspectRatio,xScale:this.renderedWidth/this.virtualWidth,yScale:this.renderedHeight/this.virtualHeight})}render(){const e=`${this.renderedHeight}px`;return i(t,{key:"e1ed1cbfa15b69eb5b8fcfd0ee949ef00507241a",id:`${this.containerId}`,style:{height:e,flex:`0 0 ${e}`}},this.layers.map((o=>o.type==="div"?i("div",{class:"verdocs-envelope-document-page-layer",id:`${this.containerId}-${o.name}`,style:{height:e}}):this.pageDisplayUri?i("img",{class:"verdocs-envelope-document-page-layer img",id:`${this.containerId}-${o.name}`,src:this.pageDisplayUri,alt:`Page ${this.pageNumber}`,"aria-hidden":true,loading:"lazy",onLoad:e=>{this.naturalWidth=e.target.naturalWidth;this.naturalHeight=e.target.naturalHeight;this.aspectRatio=this.naturalWidth/this.naturalHeight;this.virtualHeight=this.virtualWidth/this.aspectRatio;this.renderedHeight=e.target.offsetWidth/this.aspectRatio}}):i("div",null))))}get container(){return s(this)}};w.style=k();const m=()=>`verdocs-question-dialog{top:0;left:0;right:0;bottom:0;position:fixed;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", "Barlow", sans-serif}verdocs-question-dialog.closed{display:none}verdocs-question-dialog textarea{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:14px;padding:9px;outline:none}verdocs-question-dialog .heading .title{font-size:18px}verdocs-question-dialog .buttons{gap:20px;display:-ms-flexbox;display:flex;margin-top:24px;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-question-dialog .buttons button{-ms-flex:1;flex:1;border:0;height:38px;display:-ms-flexbox;display:flex;color:#ffffff;font-size:14px;cursor:pointer;border-radius:6px;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-question-dialog .buttons button.cancel{background-color:#654dcb}verdocs-question-dialog .buttons button.ok{background-color:#55bc81}verdocs-question-dialog .buttons button.ok.single{max-width:150px}verdocs-question-dialog .buttons button:disabled{background-color:#6c727f}`;const y=`<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.4809 13.8423H15.4C16.2962 13.8423 17 13.1288 17 12.2764V5.56582C17 4.71348 16.2962 4 15.4 4H4.6C3.70383 4 3 4.71348 3 5.56582V12.2764C3 13.1288 3.70383 13.8423 4.6 13.8423H6.19908L6.2 17L6.20346 16.9997L6.20502 16.9988L10.4809 13.8423ZM6.79895 17.8034C6.35668 18.1298 5.73 18.0406 5.39921 17.6042C5.26989 17.4335 5.2 17.2262 5.2 17.0133L5.19937 14.8423H4.6C3.16406 14.8423 2 13.6935 2 12.2764V5.56582C2 4.14876 3.16406 3 4.6 3H15.4C16.8359 3 18 4.14876 18 5.56582V12.2764C18 13.6935 16.8359 14.8423 15.4 14.8423H10.81L6.79895 17.8034Z" fill="#ffffff"/></svg>`;const C=class{constructor(i){e(this,i);this.next=o(this,"next");this.exit=o(this,"exit");this.question="";this.closed=false}handleOk(){this.next.emit({question:this.question})}handleCancel(){this.exit.emit()}handleDismiss(e){this.closed=true;if(e.target.className==="background-overlay"){e.preventDefault();this.exit.emit()}}render(){return i("verdocs-dialog",{key:"2c1b3c815f184f6ee9527f1f9dab16eca21c4ebd",onExit:e=>this.handleDismiss(e)},i("div",{key:"9fcabd034942bb8bf355cd7e004418593a132b10",slot:"heading",class:"heading"},i("div",{key:"6c46127f7faf9c52551e6c768577863149266fad",class:"icon",innerHTML:y}),i("div",{key:"d63a278314c7a93d06f0c68600dcefcb1a1e39da",class:"title"},"Ask the Sender a Question")),i("div",{key:"1b839d9bfbac96c58c56b3188939d2f5018e9b03",slot:"content",class:"content"},i("textarea",{key:"3b1af1af06d0577baf6936772c0fe65bbc28e32f",name:"question",rows:6,placeholder:"Enter your question...",onInput:e=>this.question=e.target.value},this.question)),i("div",{key:"6559352004d8d847bb1c86089aa6d094cd49b87e",class:"footer",slot:"footer"},i("div",{key:"a111d072ed7a39231ca4adb4e05ed3bf00b5d0b7",class:"buttons"},i("button",{key:"1ae6d7c9169acb2422aa4559c21d3a70fda4778e",class:"cancel",onClick:()=>this.handleCancel()},"Cancel"),i("button",{key:"facaad4ed10e2032a4f60c3f614856e6e82b3454",class:"ok",onClick:()=>this.handleOk()},"OK"))))}};C.style=m();const L=()=>`verdocs-sign-footer{left:0;right:0;bottom:0;height:48px;display:-ms-flexbox;display:flex;color:#616161;position:fixed;font-size:12px;padding:0 24px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;background:#ffffff;container-type:inline-size;border-top:1px solid #e0e0e0;-ms-flex-pack:justify;justify-content:space-between;font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif);-webkit-transition:0.5s cubic-bezier(0.35, 0, 0.25, 1);transition:0.5s cubic-bezier(0.35, 0, 0.25, 1)}verdocs-sign-footer a{color:#616161;cursor:pointer;text-decoration:none;border-bottom:1px dotted #616161}verdocs-sign-footer.loading{display:none}verdocs-sign-footer .powered-by{white-space:nowrap}verdocs-sign-footer .buttons{-ms-flex:0;flex:0;gap:16px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;white-space:nowrap;-ms-flex-align:center;align-items:center}verdocs-sign-footer .buttons button{gap:4px;border:none;display:-ms-flexbox;display:flex;outline:none;cursor:pointer;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;background:transparent}verdocs-sign-footer .buttons div{gap:4px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}verdocs-sign-footer .links{-ms-flex:0;flex:0;gap:8px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;white-space:nowrap}verdocs-sign-footer.just-buttons .buttons{-ms-flex:1;flex:1;-ms-flex-pack:center;justify-content:center}@container (max-width: 720px){verdocs-sign-footer.has-buttons .powered-by{display:none}}@container (max-width: 540px){verdocs-sign-footer.no-buttons .powered-by{display:none}verdocs-sign-footer.has-buttons .links{display:none}verdocs-sign-footer .buttons{-ms-flex:1;flex:1;-ms-flex-pack:center;justify-content:center}}`;const H=`<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.4809 13.8423H15.4C16.2962 13.8423 17 13.1288 17 12.2764V5.56582C17 4.71348 16.2962 4 15.4 4H4.6C3.70383 4 3 4.71348 3 5.56582V12.2764C3 13.1288 3.70383 13.8423 4.6 13.8423H6.19908L6.2 17L6.20346 16.9997L6.20502 16.9988L10.4809 13.8423ZM6.79895 17.8034C6.35668 18.1298 5.73 18.0406 5.39921 17.6042C5.26989 17.4335 5.2 17.2262 5.2 17.0133L5.19937 14.8423H4.6C3.16406 14.8423 2 13.6935 2 12.2764V5.56582C2 4.14876 3.16406 3 4.6 3H15.4C16.8359 3 18 4.14876 18 5.56582V12.2764C18 13.6935 16.8359 14.8423 15.4 14.8423H10.81L6.79895 17.8034Z" fill="#424242"/></svg>`;const M=`<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7.14645 7.14645C7.34171 6.95118 7.65829 6.95118 7.85355 7.14645L10 9.29289L12.1464 7.14645C12.3417 6.95118 12.6583 6.95118 12.8536 7.14645C13.0488 7.34171 13.0488 7.65829 12.8536 7.85355L10.7071 10L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L10 10.7071L7.85355 12.8536C7.65829 13.0488 7.34171 13.0488 7.14645 12.8536C6.95118 12.6583 6.95118 12.3417 7.14645 12.1464L9.29289 10L7.14645 7.85355C6.95118 7.65829 6.95118 7.34171 7.14645 7.14645ZM3 6C3 4.34315 4.34315 3 6 3H14C15.6569 3 17 4.34315 17 6V14C17 15.6569 15.6569 17 14 17H6C4.34315 17 3 15.6569 3 14V6ZM6 4C4.89543 4 4 4.89543 4 6V14C4 15.1046 4.89543 16 6 16H14C15.1046 16 16 15.1046 16 14V6C16 4.89543 15.1046 4 14 4H6Z" fill="#424242"/></svg>`;const j=`<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 5C3 3.89543 3.89543 3 5 3H13.3787C13.9091 3 14.4178 3.21071 14.7929 3.58579L16.4142 5.20711C16.7893 5.58218 17 6.09089 17 6.62132V15C17 16.1046 16.1046 17 15 17H5C3.89543 17 3 16.1046 3 15V5ZM5 4C4.44772 4 4 4.44772 4 5V15C4 15.5523 4.44772 16 5 16L5 11.5C5 10.6716 5.67157 10 6.5 10H13.5C14.3284 10 15 10.6716 15 11.5V16C15.5523 16 16 15.5523 16 15V6.62132C16 6.3561 15.8946 6.10175 15.7071 5.91421L14.0858 4.29289C13.8983 4.10536 13.6439 4 13.3787 4L13 4V6.5C13 7.32843 12.3284 8 11.5 8L7.5 8C6.67157 8 6 7.32843 6 6.5L6 4H5ZM7 4L7 6.5C7 6.77614 7.22386 7 7.5 7L11.5 7C11.7761 7 12 6.77614 12 6.5V4L7 4ZM14 16V11.5C14 11.2239 13.7761 11 13.5 11H6.5C6.22386 11 6 11.2239 6 11.5V16H14Z" fill="#424242"/></svg>`;const V=class{constructor(i){e(this,i);this.askQuestion=o(this,"askQuestion");this.decline=o(this,"decline");this.finishLater=o(this,"finishLater");this.sdkError=o(this,"sdkError");this.envelopeListenerId=null;this.endpoint=d.getDefault();this.envelopeId="";this.isDone=false;this.askingQuestion=false;this.declinine=false;this.envelope=null}async componentWillLoad(){var e,o,i;try{if(!this.envelopeId){console.log(`[FOOTER] Missing required envelope ID ${this.envelopeId}`);return}this.listenToEnvelope()}catch(t){console.log("[FOOTER] Error loading envelope",t);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new c(t.message,(o=t.response)===null||o===void 0?void 0:o.status,(i=t.response)===null||i===void 0?void 0:i.data))}}disconnectedCallback(){this.unlistenToEnvelope()}async listenToEnvelope(){console.log("[FOOTER] Loading envelope",this.envelopeId);this.unlistenToEnvelope();f.subscribe("envelopes",this.envelopeId,(()=>r(this.endpoint,this.envelopeId)),false,(e=>{this.envelope=e}))}unlistenToEnvelope(){if(this.envelopeListenerId){f.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}}render(){var e,o,s,n,d,a,r,l,c,f,h,b,p,v,u,g,x,k,w,m,y,C,L,V;const T=!!((o=(e=this.envelope)===null||e===void 0?void 0:e.organization)===null||o===void 0?void 0:o.powered_by_label);const z=!!((n=(s=this.envelope)===null||s===void 0?void 0:s.organization)===null||n===void 0?void 0:n.terms_use_url)||!!((a=(d=this.envelope)===null||d===void 0?void 0:d.organization)===null||a===void 0?void 0:a.privacy_policy_url);const q=!this.isDone;return i(t,{key:"392793877c562271deaad894a49594bcbd6b4f00",class:{"has-buttons":q,"no-buttons":!q,"has-powered-by":T,"has-links":z,"just-buttons":!T&&!z}},((l=(r=this.envelope)===null||r===void 0?void 0:r.organization)===null||l===void 0?void 0:l.powered_by_label)&&i("div",{key:"7a9eabdcdce3df6f720e9c208733b14e953d3476",class:"powered-by"},((f=(c=this.envelope)===null||c===void 0?void 0:c.organization)===null||f===void 0?void 0:f.powered_by_url)?i("a",{href:(b=(h=this.envelope)===null||h===void 0?void 0:h.organization)===null||b===void 0?void 0:b.powered_by_url,target:"_blank",rel:"noopener noreferrer"},i("span",null,(v=(p=this.envelope)===null||p===void 0?void 0:p.organization)===null||v===void 0?void 0:v.powered_by_label)):i("span",null,(g=(u=this.envelope)===null||u===void 0?void 0:u.organization)===null||g===void 0?void 0:g.powered_by_label)),!this.isDone&&i("div",{key:"441abbdabad0b9e572a482582c395cfa00ffd6a3",class:"buttons"},i("button",{key:"ff132a5c23e4b039dda1e227e4dbe965f44d15e4",onClick:()=>this.askingQuestion=true},i("span",{key:"d72c8d9fd302004177d1d453e916c69c477363f8",innerHTML:H}),"Ask Sender a Question"),i("button",{key:"0225fb65c44231a02fcd1feb59d8bcf7f2ba9746",onClick:()=>{var e;return(e=this.decline)===null||e===void 0?void 0:e.emit()}},i("span",{key:"1883128ba17421576e7d852883a59b5bb39e1ad8",innerHTML:M}),"Decline Signing"),i("button",{key:"4ea68ce82bfb6077b7457b8097a1e0cfda76b765",onClick:()=>{var e;return(e=this.finishLater)===null||e===void 0?void 0:e.emit()}},i("span",{key:"fc27d56c8eafd7889ef05ece863828be081a1c6f",innerHTML:j}),"Finish Later")),i("div",{key:"0071154605492997e432510fb64d5846c966374c",class:"links"},((k=(x=this.envelope)===null||x===void 0?void 0:x.organization)===null||k===void 0?void 0:k.terms_use_url)&&i("a",{key:"ff8a8dc5e86451040bb9fd157b9e6b660915fcd5",href:(m=(w=this.envelope)===null||w===void 0?void 0:w.organization)===null||m===void 0?void 0:m.terms_use_url,target:"_blank",rel:"noopener noreferrer"},i("span",{key:"7d28044ef7e27dab7b5c5c4234007c965bd1b493"},"Terms of Use")),((C=(y=this.envelope)===null||y===void 0?void 0:y.organization)===null||C===void 0?void 0:C.privacy_policy_url)&&i("a",{key:"1f85a77d8f3e06cb38c7ff853224ca1d7ece1d82",href:(V=(L=this.envelope)===null||L===void 0?void 0:L.organization)===null||V===void 0?void 0:V.privacy_policy_url,target:"_blank",rel:"noopener noreferrer"},i("span",{key:"9ffba93662229904a3a6dd5105a55aa5b07a2855"},"Privacy Policy"))),this.askingQuestion&&i("verdocs-question-dialog",{key:"40e3521535f656f162f7d3ae35eb1fb04ccd758b",onNext:e=>{var o;(o=this.askQuestion)===null||o===void 0?void 0:o.emit({question:e.detail.question});this.askingQuestion=false},onExit:()=>this.askingQuestion=false}))}};V.style=L();export{x as verdocs_download_dialog,w as verdocs_envelope_document_page,C as verdocs_question_dialog,V as verdocs_sign_footer};
2
- //# sourceMappingURL=p-871792ab.entry.js.map
1
+ import{r as e,c as o,h as i,H as t,g as s}from"./p-CjTHbolG.js";import{D as n}from"./p-CIxfEdV7.js";import{VerdocsEndpoint as d,getEnvelopeDocumentPageDisplayUri as a,getEnvelope as r}from"@verdocs/js-sdk";import{t as l}from"./p-CGsVCy75.js";import{S as c}from"./p-C1sRVZWv.js";import{S as f}from"./p-C7hFgM52.js";import"./p-BglCURB-.js";const h=()=>`verdocs-download-dialog{-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", "Barlow", sans-serif}verdocs-download-dialog .heading-container{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center}verdocs-download-dialog .content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:15px;padding:0 24px 20px 24px}verdocs-download-dialog .download-option{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:12px 15px;border:1px solid #e5e7eb;border-radius:6px;cursor:pointer;-webkit-transition:all 0.2s ease;transition:all 0.2s ease;gap:15px;background:white}verdocs-download-dialog .download-option.disabled{opacity:0.5;cursor:not-allowed}verdocs-download-dialog .download-option.disabled:hover{background-color:white;border-color:#e5e7eb}verdocs-download-dialog .download-option:hover{border-color:#654dcb;background-color:#f9fafb}verdocs-download-dialog .icon-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:36px;height:36px;background-color:#f3f4f6;border-radius:50%;color:#4b5563;-ms-flex-negative:0;flex-shrink:0}verdocs-download-dialog .icon-container svg{width:18px;height:18px}verdocs-download-dialog .text-container{-ms-flex:1;flex:1}verdocs-download-dialog .text-container .label{font-weight:500;color:#111827;margin-bottom:2px}verdocs-download-dialog .text-container .description{font-size:13px;color:#6b7280}verdocs-download-dialog .status-indicator{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;gap:2px;font-size:11px;color:#9ca3af;min-width:50px}verdocs-download-dialog .status-indicator .signed{color:#10b981}verdocs-download-dialog .status-indicator .spinner-inline{display:-ms-flexbox;display:flex;color:#9ca3af;-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite}verdocs-download-dialog .status-indicator svg{width:16px;height:16px}verdocs-download-dialog .info-message{font-size:13px;color:#6b7280;font-style:italic;padding:0 4px}@-webkit-keyframes rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}`;const b=`<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V9L13 2Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M13 2V9H20" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;const p=`<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 15C15.866 15 19 11.866 19 8C19 4.13401 15.866 1 12 1C8.13401 1 5 4.13401 5 8C5 11.866 8.13401 15 12 15Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M8.21 13.89L7 23L12 20L17 23L15.79 13.88" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;const v=`<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 16V22H14V16" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M6 16H18" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M20 22H4" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 10L12 16" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M8 12L12 16L16 12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M4 16V4H20V16" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;const u=`<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 6L9 17L4 12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;const g=`<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M23 4V10H17" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M20.49 15A9 9 0 1 1 21.23 8" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;const x=class{constructor(i){e(this,i);this.download=o(this,"download");this.exit=o(this,"exit");this.signed=false;this.polling=false;this.documents=[];this.hasCertificate=false}handleOptionClick(e,o){const i=this.documents.some((e=>e.type==="certificate"))||this.hasCertificate;const t=this.signed&&i;const s=e===n.certificate&&!t;const d=e===n.zip&&(this.polling||!t);const a=e===n.combined&&(this.polling||!t||!o);if(s||d||a)return;this.download.emit({action:e,documentId:o})}render(){const e=this.documents.filter((e=>e.type==="attachment")).sort(((e,o)=>e.order!==o.order?e.order-o.order:e.created_at.localeCompare(o.created_at)));const o=this.documents.find((e=>e.type==="certificate"));const t=!!o||this.hasCertificate;const s=this.signed&&t;const d=!this.polling&&s;const a=d&&!!(o===null||o===void 0?void 0:o.id);const r=!this.signed;return i("verdocs-dialog",{key:"e81c1d9afcfd7d0d562ed46b446ad58b7179e6e6",onExit:()=>this.exit.emit()},i("div",{key:"261deacdab44f0e1171368b88e7a8d302f944cb7",slot:"heading",class:"heading-container"},i("h3",{key:"820864e938baac9dd0c3d52c8cbac8fdb53d5df0",style:{margin:"0",fontSize:"1.25rem",fontWeight:"600",padding:"16px 24px"}},"Download")),i("div",{key:"80dd159ca7f87f2211b05e999d82835b888812f3",slot:"content",class:"content"},e.length<=2&&e.map((e=>i("div",{class:"download-option",onClick:()=>this.handleOptionClick(n.document,e.id)},i("div",{class:"icon-container",innerHTML:b}),i("div",{class:"text-container"},i("div",{class:"label"},e.name),i("div",{class:"description"},"Download the document")),r?i("div",{class:"status-indicator"},i("div",{class:"spinner-inline",innerHTML:g})):i("div",{class:"status-indicator"},i("div",{class:"signed",innerHTML:u}),i("span",null,"Signed"))))),e.length>2&&i("div",{key:"45858f7f05b76b709a4553adc4145e256aaa7f77",class:"info-message"},"Multiple documents attached. Please use the ZIP option below to download all files."),i("div",{key:"31de335c65785eb002e25aefc06215ab77ff5a15",class:{"download-option":true,disabled:!s},onClick:()=>this.handleOptionClick(n.certificate),title:!s?"Certificate not yet available":""},i("div",{key:"a8bf0227b447652e1d5689be0da2113180dcb0d5",class:"icon-container",innerHTML:p}),i("div",{key:"97479d13b9097ee075407f75e859cfcd6c9a8984",class:"text-container"},i("div",{key:"084d60ec1880909d47b4c7f465a247d8a0bf2cba",class:"label"},"Certificate"),i("div",{key:"89e9d255ef65cb30bbff1474e1412fae16f0b352",class:"description"},"Download the certificate")),s?i("div",{class:"status-indicator"},i("div",{class:"signed",innerHTML:u}),i("span",null,"Ready")):i("div",{class:"status-indicator"},i("div",{class:"spinner-inline",innerHTML:g}))),i("div",{key:"4d0f64c6149d8fdac06a871bbb23671c517a6cde",class:{"download-option":true,disabled:!a},onClick:()=>this.handleOptionClick(n.combined,o===null||o===void 0?void 0:o.id),title:!a?"Waiting for all documents to be ready":""},i("div",{key:"ce3091bebdcf99c55b0af1ad509f42f8a2ff5503",class:"icon-container",innerHTML:v}),i("div",{key:"42097a1e59fb74ee85515620b13ba5dd13a15dbd",class:"text-container"},i("div",{key:"b1198c4edb5fdf1139684d77a9e151d5dcb522e3",class:"label"},"Combined"),i("div",{key:"1017a16375215e825a8ee88d36c3033315fd155a",class:"description"},"Merge envelopes & certificate into a single PDF")),a?i("div",{class:"status-indicator"},i("div",{class:"signed",innerHTML:u}),i("span",null,"Ready")):i("div",{class:"status-indicator"},i("div",{class:"spinner-inline",innerHTML:g}))),i("div",{key:"e8b69ca68a7f061032cd59f4bd556e60f01e7d11",class:{"download-option":true,disabled:!d},onClick:()=>this.handleOptionClick(n.zip),title:!d?"Waiting for all documents to be ready":""},i("div",{key:"14b857365e6546ec8c8cee34849476010d3a73af",class:"icon-container",innerHTML:v}),i("div",{key:"e5167c1dacd9457baeed1034a4a2edf28645e78e",class:"text-container"},i("div",{key:"0e7329d541e4241e7dfafd8489f225dca5bbf067",class:"label"},"All Files"),i("div",{key:"ddbd16ecc68cb370d2a69ef11099269f03bbdba0",class:"description"},"Download everything as a ZIP file")),d?i("div",{class:"status-indicator"},i("div",{class:"signed",innerHTML:u}),i("span",null,"Ready")):i("div",{class:"status-indicator"},i("div",{class:"spinner-inline",innerHTML:g})))),i("div",{key:"164f6fbc5591d04c9f757deb46e06914509fe38b",slot:"footer",style:{display:"none"}}))}};x.style=h();const k=()=>`verdocs-envelope-document-page{width:100%;position:relative}verdocs-envelope-document-page .verdocs-envelope-document-page-layer{position:absolute;top:0;left:0;right:0;bottom:0;-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)}verdocs-envelope-document-page .verdocs-envelope-document-page-layer.img{width:100%}`;const w=class{constructor(i){e(this,i);this.pageRendered=o(this,"pageRendered");this.endpoint=d.getDefault();this.envelopeId="";this.documentId="";this.pageNumber=1;this.virtualWidth=612;this.virtualHeight=792;this.layers=[{name:"page",type:"canvas"}];this.type="original";this.containerId=`verdocs-envelope-document-page-${Math.random().toString(36).substring(2,11)}`;this.renderedWidth=this.virtualWidth;this.renderedHeight=this.virtualHeight;this.naturalWidth=this.virtualWidth;this.naturalHeight=this.virtualHeight;this.aspectRatio=this.virtualWidth/this.virtualHeight;this.skipFirstNotification=true;this.pageDisplayUri="https://verdocs-public-assets.s3.amazonaws.com/page-loading-placeholder.png"}async componentWillLoad(){this.pageDisplayUri=await a(this.endpoint,this.documentId,this.pageNumber,this.type)}componentDidLoad(){this.resizeObserver=new ResizeObserver(l((e=>{for(const o of e){const e=o.contentRect.width;this.renderedWidth=e;this.renderedHeight=this.virtualHeight*(e/this.virtualWidth)}this.notifyRenderedSize()}),100));this.resizeObserver.observe(this.container)}disconnectedCallback(){var e;(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect()}notifyRenderedSize(){if(this.skipFirstNotification){this.skipFirstNotification=false;return}this.pageRendered.emit({containerId:this.containerId,documentId:this.documentId,pageNumber:this.pageNumber,virtualWidth:this.virtualWidth,virtualHeight:this.virtualHeight,renderedWidth:this.renderedWidth,renderedHeight:this.renderedHeight,naturalWidth:this.naturalWidth,naturalHeight:this.naturalHeight,aspectRatio:this.aspectRatio,xScale:this.renderedWidth/this.virtualWidth,yScale:this.renderedHeight/this.virtualHeight})}render(){const e=`${this.renderedHeight}px`;return i(t,{key:"9f4eed5e187a1b37822c7e7d4ba69f4be519ad6d",id:`${this.containerId}`,style:{height:e,flex:`0 0 ${e}`}},this.layers.map((o=>o.type==="div"?i("div",{class:"verdocs-envelope-document-page-layer",id:`${this.containerId}-${o.name}`,style:{height:e}}):this.pageDisplayUri?i("img",{class:"verdocs-envelope-document-page-layer img",id:`${this.containerId}-${o.name}`,src:this.pageDisplayUri,alt:`Page ${this.pageNumber}`,"aria-hidden":true,loading:"lazy",onLoad:e=>{this.naturalWidth=e.target.naturalWidth;this.naturalHeight=e.target.naturalHeight;this.aspectRatio=this.naturalWidth/this.naturalHeight;this.virtualHeight=this.virtualWidth/this.aspectRatio;this.renderedHeight=e.target.offsetWidth/this.aspectRatio}}):i("div",null))))}get container(){return s(this)}};w.style=k();const m=()=>`verdocs-question-dialog{top:0;left:0;right:0;bottom:0;position:fixed;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", "Barlow", sans-serif}verdocs-question-dialog.closed{display:none}verdocs-question-dialog textarea{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:14px;padding:9px;outline:none}verdocs-question-dialog .heading .title{font-size:18px}verdocs-question-dialog .buttons{gap:20px;display:-ms-flexbox;display:flex;margin-top:24px;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-question-dialog .buttons button{-ms-flex:1;flex:1;border:0;height:38px;display:-ms-flexbox;display:flex;color:#ffffff;font-size:14px;cursor:pointer;border-radius:6px;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-question-dialog .buttons button.cancel{background-color:#654dcb}verdocs-question-dialog .buttons button.ok{background-color:#55bc81}verdocs-question-dialog .buttons button.ok.single{max-width:150px}verdocs-question-dialog .buttons button:disabled{background-color:#6c727f}`;const y=`<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.4809 13.8423H15.4C16.2962 13.8423 17 13.1288 17 12.2764V5.56582C17 4.71348 16.2962 4 15.4 4H4.6C3.70383 4 3 4.71348 3 5.56582V12.2764C3 13.1288 3.70383 13.8423 4.6 13.8423H6.19908L6.2 17L6.20346 16.9997L6.20502 16.9988L10.4809 13.8423ZM6.79895 17.8034C6.35668 18.1298 5.73 18.0406 5.39921 17.6042C5.26989 17.4335 5.2 17.2262 5.2 17.0133L5.19937 14.8423H4.6C3.16406 14.8423 2 13.6935 2 12.2764V5.56582C2 4.14876 3.16406 3 4.6 3H15.4C16.8359 3 18 4.14876 18 5.56582V12.2764C18 13.6935 16.8359 14.8423 15.4 14.8423H10.81L6.79895 17.8034Z" fill="#ffffff"/></svg>`;const C=class{constructor(i){e(this,i);this.next=o(this,"next");this.exit=o(this,"exit");this.question="";this.closed=false}handleOk(){this.next.emit({question:this.question})}handleCancel(){this.exit.emit()}handleDismiss(e){this.closed=true;if(e.target.className==="background-overlay"){e.preventDefault();this.exit.emit()}}render(){return i("verdocs-dialog",{key:"0414d528934d806570c21d2d2c977ff2fcf14fec",onExit:e=>this.handleDismiss(e)},i("div",{key:"39fc22581c93ae2b651f8e3fb7459c115f6170b2",slot:"heading",class:"heading"},i("div",{key:"2c0ef9e1125eb00355f22ce4a72faf36e02994e7",class:"icon",innerHTML:y}),i("div",{key:"56421198555e6827968ab37ef94b2a4526ac6626",class:"title"},"Ask the Sender a Question")),i("div",{key:"251815c6f9571e0abee3256ebc3c7bef9d0b1f8c",slot:"content",class:"content"},i("textarea",{key:"bac7bcc37c8c80d817ecf8a59f27e7129373509c",name:"question",rows:6,placeholder:"Enter your question...",onInput:e=>this.question=e.target.value},this.question)),i("div",{key:"1d2b0cbe22317f3fe77e4a783d0fec830313bddb",class:"footer",slot:"footer"},i("div",{key:"c8c7c1800fddfe38101a9189238bbac69be2a09a",class:"buttons"},i("button",{key:"a6223053635fa089f3052c897699276b64a73fb9",class:"cancel",onClick:()=>this.handleCancel()},"Cancel"),i("button",{key:"5897511c092259879316bfcda03d27b5ce0f1fd5",class:"ok",onClick:()=>this.handleOk()},"OK"))))}};C.style=m();const L=()=>`verdocs-sign-footer{left:0;right:0;bottom:0;height:48px;display:-ms-flexbox;display:flex;color:#616161;position:fixed;font-size:12px;padding:0 24px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;background:#ffffff;container-type:inline-size;border-top:1px solid #e0e0e0;-ms-flex-pack:justify;justify-content:space-between;font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif);-webkit-transition:0.5s cubic-bezier(0.35, 0, 0.25, 1);transition:0.5s cubic-bezier(0.35, 0, 0.25, 1)}verdocs-sign-footer a{color:#616161;cursor:pointer;text-decoration:none;border-bottom:1px dotted #616161}verdocs-sign-footer.loading{display:none}verdocs-sign-footer .powered-by{white-space:nowrap}verdocs-sign-footer .buttons{-ms-flex:0;flex:0;gap:16px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;white-space:nowrap;-ms-flex-align:center;align-items:center}verdocs-sign-footer .buttons button{gap:4px;border:none;display:-ms-flexbox;display:flex;outline:none;cursor:pointer;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;background:transparent}verdocs-sign-footer .buttons div{gap:4px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}verdocs-sign-footer .links{-ms-flex:0;flex:0;gap:8px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;white-space:nowrap}verdocs-sign-footer.just-buttons .buttons{-ms-flex:1;flex:1;-ms-flex-pack:center;justify-content:center}@container (max-width: 720px){verdocs-sign-footer.has-buttons .powered-by{display:none}}@container (max-width: 540px){verdocs-sign-footer.no-buttons .powered-by{display:none}verdocs-sign-footer.has-buttons .links{display:none}verdocs-sign-footer .buttons{-ms-flex:1;flex:1;-ms-flex-pack:center;justify-content:center}}`;const H=`<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.4809 13.8423H15.4C16.2962 13.8423 17 13.1288 17 12.2764V5.56582C17 4.71348 16.2962 4 15.4 4H4.6C3.70383 4 3 4.71348 3 5.56582V12.2764C3 13.1288 3.70383 13.8423 4.6 13.8423H6.19908L6.2 17L6.20346 16.9997L6.20502 16.9988L10.4809 13.8423ZM6.79895 17.8034C6.35668 18.1298 5.73 18.0406 5.39921 17.6042C5.26989 17.4335 5.2 17.2262 5.2 17.0133L5.19937 14.8423H4.6C3.16406 14.8423 2 13.6935 2 12.2764V5.56582C2 4.14876 3.16406 3 4.6 3H15.4C16.8359 3 18 4.14876 18 5.56582V12.2764C18 13.6935 16.8359 14.8423 15.4 14.8423H10.81L6.79895 17.8034Z" fill="#424242"/></svg>`;const M=`<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7.14645 7.14645C7.34171 6.95118 7.65829 6.95118 7.85355 7.14645L10 9.29289L12.1464 7.14645C12.3417 6.95118 12.6583 6.95118 12.8536 7.14645C13.0488 7.34171 13.0488 7.65829 12.8536 7.85355L10.7071 10L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L10 10.7071L7.85355 12.8536C7.65829 13.0488 7.34171 13.0488 7.14645 12.8536C6.95118 12.6583 6.95118 12.3417 7.14645 12.1464L9.29289 10L7.14645 7.85355C6.95118 7.65829 6.95118 7.34171 7.14645 7.14645ZM3 6C3 4.34315 4.34315 3 6 3H14C15.6569 3 17 4.34315 17 6V14C17 15.6569 15.6569 17 14 17H6C4.34315 17 3 15.6569 3 14V6ZM6 4C4.89543 4 4 4.89543 4 6V14C4 15.1046 4.89543 16 6 16H14C15.1046 16 16 15.1046 16 14V6C16 4.89543 15.1046 4 14 4H6Z" fill="#424242"/></svg>`;const j=`<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 5C3 3.89543 3.89543 3 5 3H13.3787C13.9091 3 14.4178 3.21071 14.7929 3.58579L16.4142 5.20711C16.7893 5.58218 17 6.09089 17 6.62132V15C17 16.1046 16.1046 17 15 17H5C3.89543 17 3 16.1046 3 15V5ZM5 4C4.44772 4 4 4.44772 4 5V15C4 15.5523 4.44772 16 5 16L5 11.5C5 10.6716 5.67157 10 6.5 10H13.5C14.3284 10 15 10.6716 15 11.5V16C15.5523 16 16 15.5523 16 15V6.62132C16 6.3561 15.8946 6.10175 15.7071 5.91421L14.0858 4.29289C13.8983 4.10536 13.6439 4 13.3787 4L13 4V6.5C13 7.32843 12.3284 8 11.5 8L7.5 8C6.67157 8 6 7.32843 6 6.5L6 4H5ZM7 4L7 6.5C7 6.77614 7.22386 7 7.5 7L11.5 7C11.7761 7 12 6.77614 12 6.5V4L7 4ZM14 16V11.5C14 11.2239 13.7761 11 13.5 11H6.5C6.22386 11 6 11.2239 6 11.5V16H14Z" fill="#424242"/></svg>`;const V=class{constructor(i){e(this,i);this.askQuestion=o(this,"askQuestion");this.decline=o(this,"decline");this.finishLater=o(this,"finishLater");this.sdkError=o(this,"sdkError");this.envelopeListenerId=null;this.endpoint=d.getDefault();this.envelopeId="";this.isDone=false;this.askingQuestion=false;this.declinine=false;this.envelope=null}async componentWillLoad(){var e,o,i;try{if(!this.envelopeId){console.log(`[FOOTER] Missing required envelope ID ${this.envelopeId}`);return}this.listenToEnvelope()}catch(t){console.log("[FOOTER] Error loading envelope",t);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new c(t.message,(o=t.response)===null||o===void 0?void 0:o.status,(i=t.response)===null||i===void 0?void 0:i.data))}}disconnectedCallback(){this.unlistenToEnvelope()}async listenToEnvelope(){console.log("[FOOTER] Loading envelope",this.envelopeId);this.unlistenToEnvelope();f.subscribe("envelopes",this.envelopeId,(()=>r(this.endpoint,this.envelopeId)),false,(e=>{this.envelope=e}))}unlistenToEnvelope(){if(this.envelopeListenerId){f.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}}render(){var e,o,s,n,d,a,r,l,c,f,h,b,p,v,u,g,x,k,w,m,y,C,L,V;const T=!!((o=(e=this.envelope)===null||e===void 0?void 0:e.organization)===null||o===void 0?void 0:o.powered_by_label);const z=!!((n=(s=this.envelope)===null||s===void 0?void 0:s.organization)===null||n===void 0?void 0:n.terms_use_url)||!!((a=(d=this.envelope)===null||d===void 0?void 0:d.organization)===null||a===void 0?void 0:a.privacy_policy_url);const q=!this.isDone;return i(t,{key:"25254ae03c8006c1c78a317a17ddac1e78d41eef",class:{"has-buttons":q,"no-buttons":!q,"has-powered-by":T,"has-links":z,"just-buttons":!T&&!z}},((l=(r=this.envelope)===null||r===void 0?void 0:r.organization)===null||l===void 0?void 0:l.powered_by_label)&&i("div",{key:"7a1687edb9c9c9f4cb055429d1fbe9d02acea2de",class:"powered-by"},((f=(c=this.envelope)===null||c===void 0?void 0:c.organization)===null||f===void 0?void 0:f.powered_by_url)?i("a",{href:(b=(h=this.envelope)===null||h===void 0?void 0:h.organization)===null||b===void 0?void 0:b.powered_by_url,target:"_blank",rel:"noopener noreferrer"},i("span",null,(v=(p=this.envelope)===null||p===void 0?void 0:p.organization)===null||v===void 0?void 0:v.powered_by_label)):i("span",null,(g=(u=this.envelope)===null||u===void 0?void 0:u.organization)===null||g===void 0?void 0:g.powered_by_label)),!this.isDone&&i("div",{key:"37d14a5b539fad2999ac7a9fd8377c3a3b37d929",class:"buttons"},i("button",{key:"0a49dedb4d514f2c172dd5c969d3e59f445bd293",onClick:()=>this.askingQuestion=true},i("span",{key:"ab1949843bcc1af9ebdb22451f82ef682a70def2",innerHTML:H}),"Ask Sender a Question"),i("button",{key:"e77ba7f5b720a1fcd2549d6d04cd313a81f5fe08",onClick:()=>{var e;return(e=this.decline)===null||e===void 0?void 0:e.emit()}},i("span",{key:"0041dcc1b0092e33c4c1cf5ca8bcf2a510c3c64e",innerHTML:M}),"Decline Signing"),i("button",{key:"c6c9ebd4480f810c14a301b879ec313a8eec340b",onClick:()=>{var e;return(e=this.finishLater)===null||e===void 0?void 0:e.emit()}},i("span",{key:"02fab42090a858fb2e7cc6d1f5535dd9efacbda4",innerHTML:j}),"Finish Later")),i("div",{key:"a9b765ad18b6b9521495e08a7e94727c3ef89163",class:"links"},((k=(x=this.envelope)===null||x===void 0?void 0:x.organization)===null||k===void 0?void 0:k.terms_use_url)&&i("a",{key:"29c7fda43eee3ac14b3f05d80c370ffe014a29a0",href:(m=(w=this.envelope)===null||w===void 0?void 0:w.organization)===null||m===void 0?void 0:m.terms_use_url,target:"_blank",rel:"noopener noreferrer"},i("span",{key:"182d6eb92ef630c241a41b096893427a6108ab10"},"Terms of Use")),((C=(y=this.envelope)===null||y===void 0?void 0:y.organization)===null||C===void 0?void 0:C.privacy_policy_url)&&i("a",{key:"078bb0c0505e61b64d6c8b570c1d0c6568db1155",href:(V=(L=this.envelope)===null||L===void 0?void 0:L.organization)===null||V===void 0?void 0:V.privacy_policy_url,target:"_blank",rel:"noopener noreferrer"},i("span",{key:"c234b147c7c35b6eaf74747bfcbad1efef298266"},"Privacy Policy"))),this.askingQuestion&&i("verdocs-question-dialog",{key:"6b50774f79849f481036dbdef04db7f9ee953f4b",onNext:e=>{var o;(o=this.askQuestion)===null||o===void 0?void 0:o.emit({question:e.detail.question});this.askingQuestion=false},onExit:()=>this.askingQuestion=false}))}};V.style=L();export{x as verdocs_download_dialog,w as verdocs_envelope_document_page,C as verdocs_question_dialog,V as verdocs_sign_footer};
2
+ //# sourceMappingURL=p-2e382167.entry.js.map
@@ -0,0 +1,2 @@
1
+ import{r as e,c as t,h as i,g as o}from"./p-CjTHbolG.js";import{VerdocsEndpoint as s,formatFullName as c,getActiveEntitlements as a,isValidEmail as r}from"@verdocs/js-sdk";import{u as l}from"./p-7UEjZarN.js";import{c as n}from"./p-CGsVCy75.js";import"./p-BglCURB-.js";import"./p-CIxfEdV7.js";const p=()=>`verdocs-contact-picker{--picker-ink:var(--verdocs-body-color, #111827);--picker-ink-2:#374151;--picker-muted:#6b7280;--picker-faint:#9ca3af;--picker-control-border:#d1d5db;--picker-accent:var(--verdocs-link-color, #4c56cb);--picker-accent-tint:#f4f5fc;--picker-accent-tint-2:#e6e7f8;display:block;font-size:14px;color:var(--picker-ink);font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif)}verdocs-contact-picker *{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-contact-picker form{-ms-flex:1;flex:1;min-height:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-contact-picker .form-body-wrap{position:relative;-ms-flex:1;flex:1;min-height:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-contact-picker .form-body{position:relative;-ms-flex:1;flex:1;min-height:0;overflow-y:auto}verdocs-contact-picker .scroll-fade{position:absolute;left:0;right:0;bottom:0;height:36px;opacity:0;pointer-events:none;-webkit-transition:opacity 150ms ease-out;transition:opacity 150ms ease-out;background:-webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0)), to(#ffffff));background:linear-gradient(rgba(255, 255, 255, 0), #ffffff)}verdocs-contact-picker .scrollable:not(.at-end)>.scroll-fade{opacity:1}verdocs-contact-picker .row.names{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;position:relative}verdocs-contact-picker .row.names .field{-ms-flex:1;flex:1;min-width:0}verdocs-contact-picker .field{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;row-gap:4px;margin:0 0 10px 0}verdocs-contact-picker .field label{font-size:12px;font-weight:500;color:var(--picker-ink-2)}verdocs-contact-picker .field label .optional{color:var(--picker-muted);font-weight:400}verdocs-contact-picker input,verdocs-contact-picker textarea{width:100%;font-size:13px;font-family:inherit;color:var(--picker-ink);background:#ffffff;border:1px solid var(--picker-control-border);border-radius:6px;outline:none}verdocs-contact-picker input:focus,verdocs-contact-picker textarea:focus{border-color:var(--picker-accent);-webkit-box-shadow:0 0 0 2px var(--picker-accent-tint-2);box-shadow:0 0 0 2px var(--picker-accent-tint-2)}verdocs-contact-picker input::-webkit-input-placeholder,verdocs-contact-picker textarea::-webkit-input-placeholder{color:var(--picker-faint);opacity:1}verdocs-contact-picker input::-moz-placeholder,verdocs-contact-picker textarea::-moz-placeholder{color:var(--picker-faint);opacity:1}verdocs-contact-picker input:-ms-input-placeholder,verdocs-contact-picker textarea:-ms-input-placeholder{color:var(--picker-faint);opacity:1}verdocs-contact-picker input::-ms-input-placeholder,verdocs-contact-picker textarea::-ms-input-placeholder{color:var(--picker-faint);opacity:1}verdocs-contact-picker input::placeholder,verdocs-contact-picker textarea::placeholder{color:var(--picker-faint);opacity:1}verdocs-contact-picker input{height:34px;padding:0 10px}verdocs-contact-picker textarea{height:56px;padding:8px 10px;resize:vertical}verdocs-contact-picker .group{margin:2px 0 12px 0}verdocs-contact-picker .group .group-label{font-size:12px;font-weight:500;color:var(--picker-ink-2);margin:0 0 6px 0}verdocs-contact-picker .pills{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:6px}verdocs-contact-picker .pill{all:unset;height:26px;padding:0 9px;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-webkit-column-gap:4px;-moz-column-gap:4px;column-gap:4px;cursor:pointer;font-size:12px;font-weight:500;font-family:inherit;white-space:nowrap;border-radius:999px;color:var(--picker-ink-2);border:1px solid var(--picker-control-border)}verdocs-contact-picker .pill:focus-visible{outline:2px solid var(--picker-accent);outline-offset:2px}verdocs-contact-picker .pill.selected{color:var(--picker-accent);border-color:var(--picker-accent);background:var(--picker-accent-tint)}verdocs-contact-picker .pill.locked{opacity:0.5;cursor:not-allowed}verdocs-contact-picker .pill .pill-icon,verdocs-contact-picker .pill .pill-icon svg{width:12px;height:12px;display:block}verdocs-contact-picker .passcode{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:8px}verdocs-contact-picker .passcode input{-ms-flex:0 0 120px;flex:0 0 120px;width:120px;height:30px}verdocs-contact-picker .passcode .passcode-hint{-ms-flex:1;flex:1;min-width:0;font-size:11px;line-height:1.35;color:var(--picker-muted);-ms-flex-item-align:center;align-self:center}verdocs-contact-picker .buttons{margin-top:10px;padding-top:12px;border-top:1px solid #e5e7eb;-ms-flex:none;flex:none;display:-ms-flexbox;display:flex;-webkit-column-gap:10px;-moz-column-gap:10px;column-gap:10px}verdocs-contact-picker .buttons verdocs-button:last-child{-ms-flex:1;flex:1}verdocs-contact-picker .buttons verdocs-button:last-child button{width:100%}verdocs-contact-picker .suggestions{position:absolute;top:0;left:0;right:0;z-index:20;max-height:225px;overflow-y:auto;background:#ffffff;border-radius:6px;border:1px solid #e5e7eb;-webkit-box-shadow:0 8px 24px rgba(17, 24, 39, 0.14);box-shadow:0 8px 24px rgba(17, 24, 39, 0.14)}verdocs-contact-picker .suggestions .suggestion{display:-ms-flexbox;display:flex;padding:6px 12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;cursor:pointer}verdocs-contact-picker .suggestions .suggestion svg{width:28px;height:28px}verdocs-contact-picker .suggestions .suggestion .avatar{width:28px;height:28px;-ms-flex:0 0 28px;flex:0 0 28px;margin-right:8px;border-radius:100%}verdocs-contact-picker .suggestions .suggestion .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-width:0}verdocs-contact-picker .suggestions .suggestion .name{font-size:13px;font-weight:500;color:var(--picker-ink)}verdocs-contact-picker .suggestions .suggestion .destination{font-size:12px;color:var(--picker-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}verdocs-contact-picker .suggestions .suggestion:hover{background:var(--picker-accent-tint)}verdocs-contact-picker [data-lastpass-icon-root]{display:none !important}`;const d=`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-user"><path d="M15 13a3 3 0 1 0-6 0"/><path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"/><circle cx="12" cy="8" r="2"/></svg>`;const h=`<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>`;const u=class{constructor(i){e(this,i);this.searchContacts=t(this,"searchContacts");this.exit=t(this,"exit");this.next=t(this,"next");this.endpoint=s.getDefault();this.templateRole=null;this.contactSuggestions=[];this.showCancel=true;this.showSuggestions=false;this.showMessage=false;this.delegator=false;this.name_locked=false;this.auth_methods=[];this.passcode="";this.firstNameFieldId=`verdocs-contact-picker-firstname-${Math.random().toString(36).substring(2,11)}`;this.lastNameFieldId=`verdocs-contact-picker-lastname-${Math.random().toString(36).substring(2,11)}`;this.emailFieldId=`verdocs-contact-picker-email-${Math.random().toString(36).substring(2,11)}`;this.phoneFieldId=`verdocs-contact-picker-phone-${Math.random().toString(36).substring(2,11)}`;this.activeEntitlements={};this.authMethodsLoading=true}async componentWillLoad(){this.endpoint.loadSession();if(this.templateRole){const e=c(this.templateRole);const t=e.split(" ");const i=this.templateRole.first_name||t.shift()||"";const o=this.templateRole.last_name||t.join(" ")||"";this.first_name=i;this.last_name=o;this.email=this.templateRole.email||"";this.phone=this.templateRole.phone||"";this.delegator=this.templateRole.delegator||false;this.name_locked=this.delegator?false:this.templateRole.name_locked||false;this.message=this.templateRole.message||"";this.showMessage=this.message!=="";this.auth_methods=this.templateRole.auth_methods||[];this.passcode=this.templateRole.passcode||""}this.activeEntitlements=await a(this.endpoint).catch((e=>{console.warn("[CONTACT PICKER] Unable to load entitlements, continuing with base auth methods only",e);return{}}));this.authMethodsLoading=false;console.log("[CONTACT PICKER] Loaded entitlements",this.activeEntitlements)}componentDidRender(){const e=this.el.querySelector(".form-body");l(e);if(this.suggestionsEl&&this.namesRowEl&&e){this.suggestionsEl.style.top=`${this.namesRowEl.offsetTop+this.namesRowEl.offsetHeight-e.scrollTop+4}px`}}handleDocumentClick(e){if(this.showSuggestions&&!this.el.contains(e.target)){this.showSuggestions=false}}handleFirstNameChange(e){var t;this.first_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.first_name})}handleLastNameChange(e){var t;this.last_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.last_name})}handleCancel(e){var t;e.stopPropagation();this.showSuggestions=false;(t=this.exit)===null||t===void 0?void 0:t.emit()}handleSubmit(e){var t;e.stopPropagation();this.showSuggestions=false;(t=this.next)===null||t===void 0?void 0:t.emit({first_name:this.first_name,last_name:this.last_name,email:this.email,phone:this.phone,message:this.message,delegator:this.delegator,name_locked:this.name_locked,auth_methods:this.auth_methods,passcode:this.passcode,address:this.address,zip:this.zip})}handleSelectSuggestion(e,t){e.stopPropagation();this.first_name=t.first_name;this.last_name=t.last_name;this.email=t.email;this.phone=t.phone;this.showSuggestions=false}toggleAuthMethod(e){if(this.auth_methods.includes(e)){this.auth_methods=this.auth_methods.filter((t=>t!==e))}else{this.auth_methods=[...this.auth_methods,e]}}setSigningOption(e){this.delegator=e==="delegator";this.name_locked=e==="name_locked"}renderPill(e,t,o,s={}){return i("button",{type:"button",class:{pill:true,selected:t,locked:!!s.locked},"aria-pressed":t?"true":"false",disabled:s.locked&&!t,title:s.title,onClick:o},s.locked&&i("span",{class:"pill-icon",innerHTML:h}),e)}render(){const e=this.first_name&&this.last_name&&r(this.email);const t=this.auth_methods.every((e=>{switch(e){case"passcode":return!!this.passcode;case"kba":return!!this.first_name&&!!this.last_name;case"email":return!!this.email;case"sms":return!!this.phone;default:return true}}));const o=e&&t;const s=!!this.activeEntitlements.sms_auth;const a=[{label:"Email OTP",value:"email"},{label:"Passcode",value:"passcode"},{label:"SMS OTP",value:"sms",locked:!s},{label:"KBA",value:"kba",locked:!this.activeEntitlements.kba_auth},{label:"ID check",value:"id",locked:!this.activeEntitlements.id_auth}];const p=this.delegator?"delegator":this.name_locked?"name_locked":"none";return i("form",{onSubmit:e=>e.preventDefault(),autocomplete:"off"},i("div",{class:"form-body-wrap"},i("div",{class:"form-body",onScroll:e=>{l(e.target);this.showSuggestions=false}},i("div",{class:"row names",ref:e=>this.namesRowEl=e},i("div",{class:"field"},i("label",{htmlFor:this.firstNameFieldId},"First name"),i("input",{id:this.firstNameFieldId,name:this.firstNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.first_name,onFocus:()=>{setTimeout((()=>{var e;this.showSuggestions=((e=this.contactSuggestions)===null||e===void 0?void 0:e.length)>0}),100)},onInput:e=>this.handleFirstNameChange(e)})),i("div",{class:"field"},i("label",{htmlFor:this.lastNameFieldId},"Last name"),i("input",{id:this.lastNameFieldId,name:this.lastNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.last_name,onFocus:()=>{setTimeout((()=>{var e;this.showSuggestions=((e=this.contactSuggestions)===null||e===void 0?void 0:e.length)>0}),100)},onInput:e=>this.handleLastNameChange(e)}))),i("div",{class:"field"},i("label",{htmlFor:this.emailFieldId},"Email"),i("input",{id:this.emailFieldId,name:this.emailFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.email,onFocus:()=>this.showSuggestions=false,onInput:e=>this.email=e.target.value})),s&&i("div",{class:"field"},i("label",{htmlFor:this.phoneFieldId},"Phone ",i("span",{class:"optional"},"(optional)")),i("input",{id:this.phoneFieldId,name:this.phoneFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.phone,placeholder:"+1 (555) 000-0000",onFocus:()=>this.showSuggestions=false,onInput:e=>{this.phone=n(e.target.value)}})),i("div",{class:"group"},i("div",{class:"group-label"},"Verification"),this.authMethodsLoading?i("verdocs-spinner",{size:10,mode:"dark"}):i("div",{class:"pills"},a.map((e=>this.renderPill(e.label,this.auth_methods.includes(e.value),(()=>this.toggleAuthMethod(e.value)),{locked:e.locked,title:e.locked?"Please contact sales@verdocs.com to enable this feature.":undefined})))),this.auth_methods.includes("passcode")&&i("div",{class:"passcode"},i("input",{id:"verdocs-passcode",name:"verdocs-passcode",type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none","aria-label":"Passcode",value:this.passcode,placeholder:"4-8 digits",onFocus:()=>this.showSuggestions=false,onInput:e=>this.passcode=e.target.value}),i("span",{class:"passcode-hint"},"PIN or passcode shared separately with the recipient ahead of time"))),i("div",{class:"group"},i("div",{class:"group-label"},"Signing options"),i("div",{class:"pills"},this.renderPill("None",p==="none",(()=>this.setSigningOption("none"))),this.renderPill("May delegate",p==="delegator",(()=>this.setSigningOption("delegator"))),this.renderPill("Name locked",p==="name_locked",(()=>this.setSigningOption("name_locked"))))),i("div",{class:"field"},i("label",{htmlFor:"verdocs-contact-picker-message"},"Message ",i("span",{class:"optional"},"(optional)")),i("textarea",{id:"verdocs-contact-picker-message",name:"verdocs-contact-picker-message","data-lpignore":"true",autocomplete:"blocked",placeholder:"Add a message to the invitation",onFocus:()=>this.showSuggestions=false,onInput:e=>this.message=e.target.value},this.message))),i("div",{class:"scroll-fade"}),this.showSuggestions&&i("div",{class:"suggestions",role:"listbox",ref:e=>this.suggestionsEl=e},this.contactSuggestions.filter((e=>{var t;return!this.first_name||((t=e.first_name)===null||t===void 0?void 0:t.toLowerCase().includes(this.first_name.toLowerCase()))})).map((e=>{var t;return i("div",{key:(t=e.id)!==null&&t!==void 0?t:e.email,class:"suggestion",onClick:t=>this.handleSelectSuggestion(t,e)},e.picture?i("img",{alt:"Avatar",class:"avatar",src:e.picture}):i("div",{class:"avatar",innerHTML:d}),i("div",{class:"details"},i("div",{class:"name"},c(e)),e.email&&i("div",{class:"destination"},e.email),e.phone&&i("div",{class:"destination"},e.phone)))})))),i("div",{class:"buttons"},this.showCancel&&i("verdocs-button",{label:"Cancel",variant:"text",size:"small",onClick:e=>this.handleCancel(e)}),i("verdocs-button",{label:"Done",size:"small",disabled:!o,onClick:!o?()=>{}:e=>this.handleSubmit(e)})))}get el(){return o(this)}};u.style=p();export{u as verdocs_contact_picker};
2
+ //# sourceMappingURL=p-301f0247.entry.js.map