@verdocs/web-sdk 6.9.10 → 6.9.13

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 (272) hide show
  1. package/dist/cjs/verdocs-adopt-signature-dialog_7.cjs.entry.js +3 -3
  2. package/dist/cjs/verdocs-adopt-signature-dialog_7.cjs.entry.js.map +1 -1
  3. package/dist/cjs/verdocs-auth.cjs.entry.js +4 -0
  4. package/dist/cjs/verdocs-auth.cjs.entry.js.map +1 -1
  5. package/dist/cjs/verdocs-contact-picker.cjs.entry.js +121 -15
  6. package/dist/cjs/verdocs-contact-picker.cjs.entry.js.map +1 -1
  7. package/dist/cjs/verdocs-download-dialog_4.cjs.entry.js +9 -8
  8. package/dist/cjs/verdocs-download-dialog_4.cjs.entry.js.map +1 -1
  9. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +6 -6
  10. package/dist/cjs/verdocs-field-attachment_11.cjs.entry.js +1 -1
  11. package/dist/cjs/verdocs-initial-dialog.cjs.entry.js +1 -1
  12. package/dist/cjs/verdocs-menu-panel_2.cjs.entry.js +7 -7
  13. package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
  14. package/dist/cjs/verdocs-preview_6.cjs.entry.js +4 -0
  15. package/dist/cjs/verdocs-preview_6.cjs.entry.js.map +1 -1
  16. package/dist/cjs/verdocs-quick-functions.cjs.entry.js +1 -1
  17. package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
  18. package/dist/cjs/verdocs-sign.cjs.entry.js +7 -3
  19. package/dist/cjs/verdocs-sign.cjs.entry.js.map +1 -1
  20. package/dist/cjs/verdocs-signature-dialog.cjs.entry.js +1 -1
  21. package/dist/cjs/verdocs-status-indicator.cjs.entry.js +2 -2
  22. package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
  23. package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
  24. package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
  25. package/dist/collection/components/dialogs/verdocs-download-dialog/verdocs-download-dialog.js +6 -5
  26. package/dist/collection/components/dialogs/verdocs-download-dialog/verdocs-download-dialog.js.map +1 -1
  27. package/dist/collection/components/dialogs/verdocs-initial-dialog/verdocs-initial-dialog.js +1 -1
  28. package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +1 -1
  29. package/dist/collection/components/dialogs/verdocs-otp-dialog/verdocs-otp-dialog.js +1 -1
  30. package/dist/collection/components/dialogs/verdocs-passcode-dialog/verdocs-passcode-dialog.js +1 -1
  31. package/dist/collection/components/dialogs/verdocs-question-dialog/verdocs-question-dialog.js +1 -1
  32. package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +1 -1
  33. package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.js +1 -1
  34. package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +1 -1
  35. package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js +1 -1
  36. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +4 -0
  37. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js.map +1 -1
  38. package/dist/collection/components/embeds/verdocs-send/verdocs-send.js +4 -0
  39. package/dist/collection/components/embeds/verdocs-send/verdocs-send.js.map +1 -1
  40. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +7 -3
  41. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
  42. package/dist/collection/components/embeds/verdocs-view/verdocs-view.js +1 -1
  43. package/dist/collection/components/embeds/verdocs-view/verdocs-view.js.map +1 -1
  44. package/dist/collection/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.js +1 -1
  45. package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +6 -6
  46. package/dist/collection/components/envelopes/verdocs-sign-footer/verdocs-sign-footer.js +1 -1
  47. package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js +2 -2
  48. package/dist/collection/components/templates/verdocs-template-card/verdocs-template-card.js +1 -1
  49. package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +7 -7
  50. package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +1 -1
  51. package/dist/collection/components/templates/verdocs-template-tags/verdocs-template-tags.js +1 -1
  52. package/dist/components/{p-BxOEoXie.js → p-BIc5CIpg.js} +2 -2
  53. package/dist/components/{p-DjOTs59Z.js → p-BcQsqsDy.js} +2 -2
  54. package/dist/components/{p-Dtndevf4.js → p-BfKv6ivN.js} +2 -2
  55. package/dist/components/{p-Ce29XBfJ.js → p-Bkae9I4G.js} +2 -2
  56. package/dist/components/{p-Ce29XBfJ.js.map → p-Bkae9I4G.js.map} +1 -1
  57. package/dist/components/{p-D3qUITiS.js → p-BwUTiBud.js} +2 -2
  58. package/dist/components/{p-BVhOFpVZ.js → p-C8r3qDBh.js} +2 -2
  59. package/dist/components/p-C8r3qDBh.js.map +1 -0
  60. package/dist/components/{p-DsEO0-XR.js → p-CGWVITS0.js} +2 -2
  61. package/dist/components/{p-BvtSJusb.js → p-CGt7KiUu.js} +2 -2
  62. package/dist/components/{p-u16vefxk.js → p-CQUV5gMT.js} +2 -2
  63. package/dist/components/{p-Dmw-lE3L.js → p-CSIVZcVx.js} +2 -2
  64. package/dist/components/{p-C-V6jrel.js → p-DClinO5r.js} +2 -2
  65. package/dist/components/{p-D_8TNtkM.js → p-DGws2Zgt.js} +2 -2
  66. package/dist/components/p-DGws2Zgt.js.map +1 -0
  67. package/dist/components/{p-DVGumEtx.js → p-DRgoGiAA.js} +2 -2
  68. package/dist/components/{p-BT8wzCXz.js → p-DSK9z7EN.js} +2 -2
  69. package/dist/components/{p-tub_01MP.js → p-DXbBz25U.js} +2 -2
  70. package/dist/components/p-DeQsR41s.js +3 -0
  71. package/dist/components/p-DeQsR41s.js.map +1 -0
  72. package/dist/components/{p-DIOVejyL.js → p-DyhyfLyV.js} +2 -2
  73. package/dist/components/{p-Yxa93LOl.js → p-db6IAGB0.js} +2 -2
  74. package/dist/components/{p-CDMCVJys.js → p-qDQgyl7L.js} +2 -2
  75. package/dist/components/{p-CFEw4Xbi.js → p-sPseFic3.js} +2 -2
  76. package/dist/components/verdocs-auth.js +1 -1
  77. package/dist/components/verdocs-auth.js.map +1 -1
  78. package/dist/components/verdocs-build.js +1 -1
  79. package/dist/components/verdocs-contact-picker.js +1 -1
  80. package/dist/components/verdocs-download-dialog.js +1 -1
  81. package/dist/components/verdocs-envelope-document-page.js +1 -1
  82. package/dist/components/verdocs-envelope-sidebar.js +1 -1
  83. package/dist/components/verdocs-envelopes-list.js +1 -1
  84. package/dist/components/verdocs-field-attachment.js +1 -1
  85. package/dist/components/verdocs-initial-dialog.js +1 -1
  86. package/dist/components/verdocs-ok-dialog.js +1 -1
  87. package/dist/components/verdocs-otp-dialog.js +1 -1
  88. package/dist/components/verdocs-passcode-dialog.js +1 -1
  89. package/dist/components/verdocs-preview.js +1 -1
  90. package/dist/components/verdocs-question-dialog.js +1 -1
  91. package/dist/components/verdocs-quick-functions.js +1 -1
  92. package/dist/components/verdocs-search-tabs.js +1 -1
  93. package/dist/components/verdocs-send.js +1 -1
  94. package/dist/components/verdocs-sign-footer.js +1 -1
  95. package/dist/components/verdocs-sign.js +1 -1
  96. package/dist/components/verdocs-sign.js.map +1 -1
  97. package/dist/components/verdocs-signature-dialog.js +1 -1
  98. package/dist/components/verdocs-status-indicator.js +1 -1
  99. package/dist/components/verdocs-template-attachments.js +1 -1
  100. package/dist/components/verdocs-template-card.js +1 -1
  101. package/dist/components/verdocs-template-document-page.js +1 -1
  102. package/dist/components/verdocs-template-fields.js +1 -1
  103. package/dist/components/verdocs-template-role-properties.js +1 -1
  104. package/dist/components/verdocs-template-roles.js +1 -1
  105. package/dist/components/verdocs-template-star.js +1 -1
  106. package/dist/components/verdocs-template-tags.js +1 -1
  107. package/dist/components/verdocs-templates-list.js +1 -1
  108. package/dist/components/verdocs-upload-dialog.js +1 -1
  109. package/dist/components/verdocs-view.js +1 -1
  110. package/dist/esm/verdocs-adopt-signature-dialog_7.entry.js +3 -3
  111. package/dist/esm/verdocs-adopt-signature-dialog_7.entry.js.map +1 -1
  112. package/dist/esm/verdocs-auth.entry.js +4 -0
  113. package/dist/esm/verdocs-auth.entry.js.map +1 -1
  114. package/dist/esm/verdocs-contact-picker.entry.js +121 -15
  115. package/dist/esm/verdocs-contact-picker.entry.js.map +1 -1
  116. package/dist/esm/verdocs-download-dialog_4.entry.js +9 -8
  117. package/dist/esm/verdocs-download-dialog_4.entry.js.map +1 -1
  118. package/dist/esm/verdocs-envelopes-list.entry.js +6 -6
  119. package/dist/esm/verdocs-field-attachment_11.entry.js +1 -1
  120. package/dist/esm/verdocs-initial-dialog.entry.js +1 -1
  121. package/dist/esm/verdocs-menu-panel_2.entry.js +7 -7
  122. package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
  123. package/dist/esm/verdocs-preview_6.entry.js +4 -0
  124. package/dist/esm/verdocs-preview_6.entry.js.map +1 -1
  125. package/dist/esm/verdocs-quick-functions.entry.js +1 -1
  126. package/dist/esm/verdocs-search-tabs.entry.js +1 -1
  127. package/dist/esm/verdocs-sign.entry.js +7 -3
  128. package/dist/esm/verdocs-sign.entry.js.map +1 -1
  129. package/dist/esm/verdocs-signature-dialog.entry.js +1 -1
  130. package/dist/esm/verdocs-status-indicator.entry.js +2 -2
  131. package/dist/esm/verdocs-template-card.entry.js +1 -1
  132. package/dist/esm/verdocs-template-star.entry.js +1 -1
  133. package/dist/esm/verdocs-template-tags.entry.js +1 -1
  134. package/dist/esm-es5/verdocs-adopt-signature-dialog_7.entry.js +1 -1
  135. package/dist/esm-es5/verdocs-adopt-signature-dialog_7.entry.js.map +1 -1
  136. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  137. package/dist/esm-es5/verdocs-auth.entry.js.map +1 -1
  138. package/dist/esm-es5/verdocs-contact-picker.entry.js +2 -2
  139. package/dist/esm-es5/verdocs-contact-picker.entry.js.map +1 -1
  140. package/dist/esm-es5/verdocs-download-dialog_4.entry.js +1 -1
  141. package/dist/esm-es5/verdocs-download-dialog_4.entry.js.map +1 -1
  142. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  143. package/dist/esm-es5/verdocs-field-attachment_11.entry.js +1 -1
  144. package/dist/esm-es5/verdocs-initial-dialog.entry.js +1 -1
  145. package/dist/esm-es5/verdocs-menu-panel_2.entry.js +1 -1
  146. package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
  147. package/dist/esm-es5/verdocs-preview_6.entry.js +1 -1
  148. package/dist/esm-es5/verdocs-preview_6.entry.js.map +1 -1
  149. package/dist/esm-es5/verdocs-quick-functions.entry.js +1 -1
  150. package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
  151. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  152. package/dist/esm-es5/verdocs-sign.entry.js.map +1 -1
  153. package/dist/esm-es5/verdocs-signature-dialog.entry.js +1 -1
  154. package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
  155. package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
  156. package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
  157. package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
  158. package/dist/verdocs-web-sdk/{p-2f96e7c9.system.entry.js → p-0625e073.system.entry.js} +2 -2
  159. package/dist/verdocs-web-sdk/{p-40f5ecf3.system.entry.js → p-07a07c6b.system.entry.js} +2 -2
  160. package/dist/verdocs-web-sdk/p-15a1b8b5.system.entry.js +2 -0
  161. package/dist/verdocs-web-sdk/p-15a1b8b5.system.entry.js.map +1 -0
  162. package/dist/verdocs-web-sdk/{p-6abf8f8f.entry.js → p-1f898c53.entry.js} +2 -2
  163. package/dist/verdocs-web-sdk/{p-6abf8f8f.entry.js.map → p-1f898c53.entry.js.map} +1 -1
  164. package/dist/verdocs-web-sdk/p-2fa4010a.system.entry.js +2 -0
  165. package/dist/verdocs-web-sdk/p-2fa4010a.system.entry.js.map +1 -0
  166. package/dist/verdocs-web-sdk/{p-4798c2a5.system.entry.js → p-36aa8081.system.entry.js} +2 -2
  167. package/dist/verdocs-web-sdk/p-3a542ed0.system.entry.js +4 -0
  168. package/dist/verdocs-web-sdk/p-3a542ed0.system.entry.js.map +1 -0
  169. package/dist/verdocs-web-sdk/{p-c5b70927.system.entry.js → p-3c9a2290.system.entry.js} +2 -2
  170. package/dist/verdocs-web-sdk/p-48e2baa9.entry.js +2 -0
  171. package/dist/verdocs-web-sdk/p-48e2baa9.entry.js.map +1 -0
  172. package/dist/verdocs-web-sdk/{p-d09a4bb9.entry.js → p-4934f908.entry.js} +2 -2
  173. package/dist/verdocs-web-sdk/{p-6754dfcf.system.entry.js → p-4d8bf603.system.entry.js} +2 -2
  174. package/dist/verdocs-web-sdk/p-4fe507ee.entry.js +2 -0
  175. package/dist/verdocs-web-sdk/{p-810e09ca.entry.js → p-5678acd8.entry.js} +2 -2
  176. package/dist/verdocs-web-sdk/{p-cfb275c5.entry.js → p-609527c7.entry.js} +2 -2
  177. package/dist/verdocs-web-sdk/{p-1f1fc6d7.entry.js → p-82d0e009.entry.js} +2 -2
  178. package/dist/verdocs-web-sdk/p-90400330.entry.js +2 -0
  179. package/dist/verdocs-web-sdk/{p-d4f72da9.entry.js → p-98adcb3a.entry.js} +2 -2
  180. package/dist/verdocs-web-sdk/{p-ed953cca.entry.js → p-996cc1f6.entry.js} +2 -2
  181. package/dist/verdocs-web-sdk/p-BdZ5Ghsa.system.js +1 -1
  182. package/dist/verdocs-web-sdk/p-ae4290c6.entry.js +3 -0
  183. package/dist/verdocs-web-sdk/p-ae4290c6.entry.js.map +1 -0
  184. package/dist/verdocs-web-sdk/{p-9756028f.entry.js → p-ae92881f.entry.js} +2 -2
  185. package/dist/verdocs-web-sdk/p-ae92881f.entry.js.map +1 -0
  186. package/dist/verdocs-web-sdk/{p-04d2fa80.system.entry.js → p-b1146326.system.entry.js} +2 -2
  187. package/dist/verdocs-web-sdk/{p-1929a794.system.entry.js → p-b2aa0637.system.entry.js} +2 -2
  188. package/dist/verdocs-web-sdk/{p-64034b55.system.entry.js → p-b35a1ea8.system.entry.js} +2 -2
  189. package/dist/verdocs-web-sdk/{p-64034b55.system.entry.js.map → p-b35a1ea8.system.entry.js.map} +1 -1
  190. package/dist/verdocs-web-sdk/{p-1827477d.system.entry.js → p-b6390a11.system.entry.js} +2 -2
  191. package/dist/verdocs-web-sdk/p-b81c87ee.system.entry.js +2 -0
  192. package/dist/verdocs-web-sdk/p-b81c87ee.system.entry.js.map +1 -0
  193. package/dist/verdocs-web-sdk/{p-d3d177d0.system.entry.js → p-ba39a8ce.system.entry.js} +2 -2
  194. package/dist/verdocs-web-sdk/{p-495ed75e.system.entry.js → p-bd17bff7.system.entry.js} +2 -2
  195. package/dist/verdocs-web-sdk/{p-e632e92c.entry.js → p-c2b70cb9.entry.js} +2 -2
  196. package/dist/verdocs-web-sdk/{p-ca03555a.system.entry.js → p-c3660cce.system.entry.js} +2 -2
  197. package/dist/verdocs-web-sdk/{p-421c231a.entry.js → p-cbfc895c.entry.js} +2 -2
  198. package/dist/verdocs-web-sdk/{p-f85f8560.system.entry.js → p-d5cfbdac.system.entry.js} +2 -2
  199. package/dist/verdocs-web-sdk/p-d5cfbdac.system.entry.js.map +1 -0
  200. package/dist/verdocs-web-sdk/{p-842c345c.entry.js → p-e207c469.entry.js} +2 -2
  201. package/dist/verdocs-web-sdk/p-e679a32a.entry.js +2 -0
  202. package/dist/verdocs-web-sdk/p-e679a32a.entry.js.map +1 -0
  203. package/dist/verdocs-web-sdk/{p-d3b798ae.system.entry.js → p-e991121e.system.entry.js} +2 -2
  204. package/dist/verdocs-web-sdk/p-ed5c3f2d.entry.js +2 -0
  205. package/dist/verdocs-web-sdk/p-ed5c3f2d.entry.js.map +1 -0
  206. package/dist/verdocs-web-sdk/{p-f97ca49e.entry.js → p-fff5d042.entry.js} +2 -2
  207. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  208. package/package.json +2 -2
  209. package/dist/components/p-BVhOFpVZ.js.map +0 -1
  210. package/dist/components/p-CT0DHyPw.js +0 -3
  211. package/dist/components/p-CT0DHyPw.js.map +0 -1
  212. package/dist/components/p-D_8TNtkM.js.map +0 -1
  213. package/dist/verdocs-web-sdk/p-0240a6e1.system.entry.js +0 -2
  214. package/dist/verdocs-web-sdk/p-0240a6e1.system.entry.js.map +0 -1
  215. package/dist/verdocs-web-sdk/p-12676649.entry.js +0 -2
  216. package/dist/verdocs-web-sdk/p-12676649.entry.js.map +0 -1
  217. package/dist/verdocs-web-sdk/p-1a6869c9.system.entry.js +0 -2
  218. package/dist/verdocs-web-sdk/p-1a6869c9.system.entry.js.map +0 -1
  219. package/dist/verdocs-web-sdk/p-1e8f1ce4.system.entry.js +0 -4
  220. package/dist/verdocs-web-sdk/p-1e8f1ce4.system.entry.js.map +0 -1
  221. package/dist/verdocs-web-sdk/p-3f5ad836.system.entry.js +0 -2
  222. package/dist/verdocs-web-sdk/p-3f5ad836.system.entry.js.map +0 -1
  223. package/dist/verdocs-web-sdk/p-62b6402f.entry.js +0 -2
  224. package/dist/verdocs-web-sdk/p-682c5a5c.entry.js +0 -2
  225. package/dist/verdocs-web-sdk/p-9756028f.entry.js.map +0 -1
  226. package/dist/verdocs-web-sdk/p-9c6cca6e.entry.js +0 -2
  227. package/dist/verdocs-web-sdk/p-9c6cca6e.entry.js.map +0 -1
  228. package/dist/verdocs-web-sdk/p-b464b598.entry.js +0 -3
  229. package/dist/verdocs-web-sdk/p-b464b598.entry.js.map +0 -1
  230. package/dist/verdocs-web-sdk/p-c89d74b2.entry.js +0 -2
  231. package/dist/verdocs-web-sdk/p-c89d74b2.entry.js.map +0 -1
  232. package/dist/verdocs-web-sdk/p-f85f8560.system.entry.js.map +0 -1
  233. /package/dist/components/{p-BxOEoXie.js.map → p-BIc5CIpg.js.map} +0 -0
  234. /package/dist/components/{p-DjOTs59Z.js.map → p-BcQsqsDy.js.map} +0 -0
  235. /package/dist/components/{p-Dtndevf4.js.map → p-BfKv6ivN.js.map} +0 -0
  236. /package/dist/components/{p-D3qUITiS.js.map → p-BwUTiBud.js.map} +0 -0
  237. /package/dist/components/{p-DsEO0-XR.js.map → p-CGWVITS0.js.map} +0 -0
  238. /package/dist/components/{p-BvtSJusb.js.map → p-CGt7KiUu.js.map} +0 -0
  239. /package/dist/components/{p-u16vefxk.js.map → p-CQUV5gMT.js.map} +0 -0
  240. /package/dist/components/{p-Dmw-lE3L.js.map → p-CSIVZcVx.js.map} +0 -0
  241. /package/dist/components/{p-C-V6jrel.js.map → p-DClinO5r.js.map} +0 -0
  242. /package/dist/components/{p-DVGumEtx.js.map → p-DRgoGiAA.js.map} +0 -0
  243. /package/dist/components/{p-BT8wzCXz.js.map → p-DSK9z7EN.js.map} +0 -0
  244. /package/dist/components/{p-tub_01MP.js.map → p-DXbBz25U.js.map} +0 -0
  245. /package/dist/components/{p-DIOVejyL.js.map → p-DyhyfLyV.js.map} +0 -0
  246. /package/dist/components/{p-Yxa93LOl.js.map → p-db6IAGB0.js.map} +0 -0
  247. /package/dist/components/{p-CDMCVJys.js.map → p-qDQgyl7L.js.map} +0 -0
  248. /package/dist/components/{p-CFEw4Xbi.js.map → p-sPseFic3.js.map} +0 -0
  249. /package/dist/verdocs-web-sdk/{p-2f96e7c9.system.entry.js.map → p-0625e073.system.entry.js.map} +0 -0
  250. /package/dist/verdocs-web-sdk/{p-40f5ecf3.system.entry.js.map → p-07a07c6b.system.entry.js.map} +0 -0
  251. /package/dist/verdocs-web-sdk/{p-4798c2a5.system.entry.js.map → p-36aa8081.system.entry.js.map} +0 -0
  252. /package/dist/verdocs-web-sdk/{p-c5b70927.system.entry.js.map → p-3c9a2290.system.entry.js.map} +0 -0
  253. /package/dist/verdocs-web-sdk/{p-d09a4bb9.entry.js.map → p-4934f908.entry.js.map} +0 -0
  254. /package/dist/verdocs-web-sdk/{p-6754dfcf.system.entry.js.map → p-4d8bf603.system.entry.js.map} +0 -0
  255. /package/dist/verdocs-web-sdk/{p-62b6402f.entry.js.map → p-4fe507ee.entry.js.map} +0 -0
  256. /package/dist/verdocs-web-sdk/{p-810e09ca.entry.js.map → p-5678acd8.entry.js.map} +0 -0
  257. /package/dist/verdocs-web-sdk/{p-cfb275c5.entry.js.map → p-609527c7.entry.js.map} +0 -0
  258. /package/dist/verdocs-web-sdk/{p-1f1fc6d7.entry.js.map → p-82d0e009.entry.js.map} +0 -0
  259. /package/dist/verdocs-web-sdk/{p-682c5a5c.entry.js.map → p-90400330.entry.js.map} +0 -0
  260. /package/dist/verdocs-web-sdk/{p-d4f72da9.entry.js.map → p-98adcb3a.entry.js.map} +0 -0
  261. /package/dist/verdocs-web-sdk/{p-ed953cca.entry.js.map → p-996cc1f6.entry.js.map} +0 -0
  262. /package/dist/verdocs-web-sdk/{p-04d2fa80.system.entry.js.map → p-b1146326.system.entry.js.map} +0 -0
  263. /package/dist/verdocs-web-sdk/{p-1929a794.system.entry.js.map → p-b2aa0637.system.entry.js.map} +0 -0
  264. /package/dist/verdocs-web-sdk/{p-1827477d.system.entry.js.map → p-b6390a11.system.entry.js.map} +0 -0
  265. /package/dist/verdocs-web-sdk/{p-d3d177d0.system.entry.js.map → p-ba39a8ce.system.entry.js.map} +0 -0
  266. /package/dist/verdocs-web-sdk/{p-495ed75e.system.entry.js.map → p-bd17bff7.system.entry.js.map} +0 -0
  267. /package/dist/verdocs-web-sdk/{p-e632e92c.entry.js.map → p-c2b70cb9.entry.js.map} +0 -0
  268. /package/dist/verdocs-web-sdk/{p-ca03555a.system.entry.js.map → p-c3660cce.system.entry.js.map} +0 -0
  269. /package/dist/verdocs-web-sdk/{p-421c231a.entry.js.map → p-cbfc895c.entry.js.map} +0 -0
  270. /package/dist/verdocs-web-sdk/{p-842c345c.entry.js.map → p-e207c469.entry.js.map} +0 -0
  271. /package/dist/verdocs-web-sdk/{p-d3b798ae.system.entry.js.map → p-e991121e.system.entry.js.map} +0 -0
  272. /package/dist/verdocs-web-sdk/{p-f97ca49e.entry.js.map → p-fff5d042.entry.js.map} +0 -0
@@ -42,20 +42,21 @@ const VerdocsDownloadDialog = class {
42
42
  const isCertReady = this.signed && hasCert;
43
43
  const isCertificateDisabled = action === Types.DownloadAction.certificate && !isCertReady;
44
44
  const isZipDisabled = action === Types.DownloadAction.zip && (this.polling || !isCertReady);
45
- const isCombinedDisabled = action === Types.DownloadAction.combined && !isCertReady;
45
+ const isCombinedDisabled = action === Types.DownloadAction.combined && (this.polling || !isCertReady || !documentId);
46
46
  if (isCertificateDisabled || isZipDisabled || isCombinedDisabled)
47
47
  return;
48
48
  this.download.emit({ action, documentId });
49
49
  }
50
50
  render() {
51
51
  const attachments = this.documents.filter(d => d.type === 'attachment').sort((a, b) => (a.order !== b.order ? a.order - b.order : a.created_at.localeCompare(b.created_at)));
52
- const hasCertificateDoc = this.documents.some(d => d.type === 'certificate') || this.hasCertificate;
52
+ const certificateDocument = this.documents.find(d => d.type === 'certificate');
53
+ const hasCertificateDoc = !!certificateDocument || this.hasCertificate;
53
54
  const certReady = this.signed && hasCertificateDoc;
54
- const isCombinedReady = this.signed && hasCertificateDoc;
55
55
  const allDone = !this.polling && certReady;
56
+ // const isCombinedReady = allDone && !!certificateDocument?.id;
56
57
  const attachmentBusy = !this.signed;
57
- return (index.h("verdocs-dialog", { key: 'a877948153b6b0ee7eda1f2e19d4df7f061f72d5', onExit: () => this.exit.emit() }, index.h("div", { key: '51da52f3f20473ae1901ce60e5edafd144521478', slot: "heading", class: "heading-container" }, index.h("h3", { key: 'a68c34c0de3959409e1939aed35879402cba2b09', style: { margin: '0', fontSize: '1.25rem', fontWeight: '600', padding: '16px 24px' } }, "Download")), index.h("div", { key: '66ccef7e477d5862f8d941ec558310aaffd9e266', slot: "content", class: "content" }, attachments.length <= 2 &&
58
- attachments.map(doc => (index.h("div", { class: "download-option", onClick: () => this.handleOptionClick(Types.DownloadAction.document, doc.id) }, index.h("div", { class: "icon-container", innerHTML: DocumentIcon }), index.h("div", { class: "text-container" }, index.h("div", { class: "label" }, doc.name), index.h("div", { class: "description" }, "Download the document")), attachmentBusy ? (index.h("div", { class: "status-indicator" }, index.h("div", { class: "spinner-inline", innerHTML: RefreshIcon }))) : (index.h("div", { class: "status-indicator" }, index.h("div", { class: "signed", innerHTML: CheckIcon }), index.h("span", null, "Signed")))))), attachments.length > 2 && index.h("div", { key: '6eda124edbc14116b63bb1a508d5f6ca2c4ee81d', class: "info-message" }, "Multiple documents attached. Please use the ZIP option below to download all files."), index.h("div", { key: 'c7adc5310b532cb7ca3ce64d90547c0648675af9', class: { 'download-option': true, 'disabled': !certReady }, onClick: () => this.handleOptionClick(Types.DownloadAction.certificate), title: !certReady ? 'Certificate not yet available' : '' }, index.h("div", { key: '099cece3ea7a1927a8b7d9632ffa8cc3e6220868', class: "icon-container", innerHTML: CertificateIcon }), index.h("div", { key: '0e09d9749a9967291fdde0a35a30287d31bedec7', class: "text-container" }, index.h("div", { key: '3f76cc900207bf06c5207d79d68b1219c066bde8', class: "label" }, "Certificate"), index.h("div", { key: '34fe2b37c150b66173f61f76cc5d8d77c74e61e8', class: "description" }, "Download the certificate")), certReady ? (index.h("div", { class: "status-indicator" }, index.h("div", { class: "signed", innerHTML: CheckIcon }), index.h("span", null, "Ready"))) : (index.h("div", { class: "status-indicator" }, index.h("div", { class: "spinner-inline", innerHTML: RefreshIcon })))), index.h("div", { key: '2e1d48989564753b19f7431db7b231f1858542ce', class: { 'download-option': true, 'disabled': !isCombinedReady }, onClick: () => this.handleOptionClick(Types.DownloadAction.combined), title: !isCombinedReady ? 'Waiting for all documents to be ready' : '' }, index.h("div", { key: 'de52875477a5f583624357061ee21ab65fbbf53a', class: "icon-container", innerHTML: ZipIcon }), index.h("div", { key: 'c7ce9b867f7e6f5eec060a65d4487e3f33814025', class: "text-container" }, index.h("div", { key: '63ffd99d31428740c9b19ea44281a4b966c4dab8', class: "label" }, "Combined"), index.h("div", { key: '5ff20fcacc17c4dbee9034181158a5202a3391b5', class: "description" }, "Merge envelopes & certificate into a single PDF")), isCombinedReady ? (index.h("div", { class: "status-indicator" }, index.h("div", { class: "signed", innerHTML: CheckIcon }), index.h("span", null, "Ready"))) : (index.h("div", { class: "status-indicator" }, index.h("div", { class: "spinner-inline", innerHTML: RefreshIcon })))), index.h("div", { key: 'feb5a60d1538f3367b082f5c8f2b41fde4c44997', class: { 'download-option': true, 'disabled': !allDone }, onClick: () => this.handleOptionClick(Types.DownloadAction.zip), title: !allDone ? 'Waiting for all documents to be ready' : '' }, index.h("div", { key: 'dcad103a22173198f247005ba7cd611986865f89', class: "icon-container", innerHTML: ZipIcon }), index.h("div", { key: 'eccfb0e7f4a7aca6b180089a0b2392ec51e8a21d', class: "text-container" }, index.h("div", { key: '94586ca4646cab77493d98e85e3f0a1bcf7cc911', class: "label" }, "All Files"), index.h("div", { key: '2d42fa14e73f9df2e39fcd8ff8f9cb107ffd2246', class: "description" }, "Download everything as a ZIP file")), allDone ? (index.h("div", { class: "status-indicator" }, index.h("div", { class: "signed", innerHTML: CheckIcon }), index.h("span", null, "Ready"))) : (index.h("div", { class: "status-indicator" }, index.h("div", { class: "spinner-inline", innerHTML: RefreshIcon }))))), index.h("div", { key: 'a087605743e0b7e7f3de01aa20dc5be28b8723d5', slot: "footer", style: { display: 'none' } })));
58
+ return (index.h("verdocs-dialog", { key: '405e032ca618062443c88e0db2e9b70338a444a8', onExit: () => this.exit.emit() }, index.h("div", { key: '0ab713570eac0cdaa6a5d98c1a7e2f39ab1d083e', slot: "heading", class: "heading-container" }, index.h("h3", { key: '378c9d306016928a622bf1d667992579a4cae921', style: { margin: '0', fontSize: '1.25rem', fontWeight: '600', padding: '16px 24px' } }, "Download")), index.h("div", { key: '9975e4c90d18731d5a8c767f33ad3177b9294a4c', slot: "content", class: "content" }, attachments.length <= 2 &&
59
+ attachments.map(doc => (index.h("div", { class: "download-option", onClick: () => this.handleOptionClick(Types.DownloadAction.document, doc.id) }, index.h("div", { class: "icon-container", innerHTML: DocumentIcon }), index.h("div", { class: "text-container" }, index.h("div", { class: "label" }, doc.name), index.h("div", { class: "description" }, "Download the document")), attachmentBusy ? (index.h("div", { class: "status-indicator" }, index.h("div", { class: "spinner-inline", innerHTML: RefreshIcon }))) : (index.h("div", { class: "status-indicator" }, index.h("div", { class: "signed", innerHTML: CheckIcon }), index.h("span", null, "Signed")))))), attachments.length > 2 && index.h("div", { key: 'ea5c3111ed51eef05476486cec8a67af0c2229ca', class: "info-message" }, "Multiple documents attached. Please use the ZIP option below to download all files."), index.h("div", { key: 'dc2190ccb9e4dec1d4225853a05026fe92680d37', class: { 'download-option': true, 'disabled': !certReady }, onClick: () => this.handleOptionClick(Types.DownloadAction.certificate), title: !certReady ? 'Certificate not yet available' : '' }, index.h("div", { key: 'ba2fdb42bf0649782431f9a69bc38fccac86beaf', class: "icon-container", innerHTML: CertificateIcon }), index.h("div", { key: '160e2e96b0e60b266b2cd04077e5bda8d6389b46', class: "text-container" }, index.h("div", { key: '907d74964a44dcfedcbda025a3464301a482addc', class: "label" }, "Certificate"), index.h("div", { key: '4f9b3b720147747653c4b78aadd46dbd587255b6', class: "description" }, "Download the certificate")), certReady ? (index.h("div", { class: "status-indicator" }, index.h("div", { class: "signed", innerHTML: CheckIcon }), index.h("span", null, "Ready"))) : (index.h("div", { class: "status-indicator" }, index.h("div", { class: "spinner-inline", innerHTML: RefreshIcon })))), index.h("div", { key: 'b59976bf8e3025b518e2a8d46862923ec93fdc7e', class: { 'download-option': true, 'disabled': !allDone }, onClick: () => this.handleOptionClick(Types.DownloadAction.zip), title: !allDone ? 'Waiting for all documents to be ready' : '' }, index.h("div", { key: '83321a57cefcdd9cf8a2f852f19b722d1b879e06', class: "icon-container", innerHTML: ZipIcon }), index.h("div", { key: '8c6c423f1f5f523129ba3d88328b7bc4a2b982a7', class: "text-container" }, index.h("div", { key: '6642e4855832ae7993300801a0fa5e60bb37c34b', class: "label" }, "All Files"), index.h("div", { key: '39f07505e48d46627f4629c90ea456d3ebb2e95b', class: "description" }, "Download everything as a ZIP file")), allDone ? (index.h("div", { class: "status-indicator" }, index.h("div", { class: "signed", innerHTML: CheckIcon }), index.h("span", null, "Ready"))) : (index.h("div", { class: "status-indicator" }, index.h("div", { class: "spinner-inline", innerHTML: RefreshIcon }))))), index.h("div", { key: '4aa0a7712e33f6dac00a13b9f225c3bd125005e1', slot: "footer", style: { display: 'none' } })));
59
60
  }
60
61
  };
61
62
  VerdocsDownloadDialog.style = verdocsDownloadDialogCss();
@@ -163,7 +164,7 @@ const VerdocsEnvelopeDocumentPage = class {
163
164
  }
164
165
  render() {
165
166
  const height = `${this.renderedHeight}px`;
166
- return (index.h(index.Host, { key: '7ed2187dfb4ef248411d777ad2837ba18a85ec45', id: `${this.containerId}`, style: { height, flex: `0 0 ${height}` } }, this.layers.map(layer => layer.type === 'div' ? (index.h("div", { class: "verdocs-envelope-document-page-layer", id: `${this.containerId}-${layer.name}`, style: { height } })) : this.pageDisplayUri ? (index.h("img", { class: "verdocs-envelope-document-page-layer img", id: `${this.containerId}-${layer.name}`, src: this.pageDisplayUri, alt: `Page ${this.pageNumber}`, "aria-hidden": true, loading: "lazy", onLoad: (e) => {
167
+ return (index.h(index.Host, { key: '633b71e22df815319ad854618b74b035a6e43603', id: `${this.containerId}`, style: { height, flex: `0 0 ${height}` } }, this.layers.map(layer => layer.type === 'div' ? (index.h("div", { class: "verdocs-envelope-document-page-layer", id: `${this.containerId}-${layer.name}`, style: { height } })) : this.pageDisplayUri ? (index.h("img", { class: "verdocs-envelope-document-page-layer img", id: `${this.containerId}-${layer.name}`, src: this.pageDisplayUri, alt: `Page ${this.pageNumber}`, "aria-hidden": true, loading: "lazy", onLoad: (e) => {
167
168
  // Note that all we really care about is the aspect ratio. We track the natural Width and Height but they aren't really that
168
169
  // useful as individual values. The image will already have been scaled down to fit a DIV for display (100%, auto height).
169
170
  // Builder places fields offset into the rendered display area, not the original document's dimensions. So its X/Y values
@@ -208,7 +209,7 @@ const VerdocsQuestionDialog = class {
208
209
  }
209
210
  }
210
211
  render() {
211
- return (index.h("verdocs-dialog", { key: '2697b58a7c65243705c15993e5a967894b725196', onExit: e => this.handleDismiss(e) }, index.h("div", { key: '0c6d340d05717b4580e001e8cff4d544f3dac072', slot: "heading", class: "heading" }, index.h("div", { key: 'e5e3c323b48a90431f2593a062715d316608dc71', class: "icon", innerHTML: QuestionIcon$1 }), index.h("div", { key: '8ebc86de76b84cf255efbf6bc8db8876142e858d', class: "title" }, "Ask the Sender a Question")), index.h("div", { key: 'c3f96587257dbd2e0ce98eba44a8ef7c3bba7c88', slot: "content", class: "content" }, index.h("textarea", { key: '22c2c8dd80e41e77e0bed92f0b48a81f85466532', name: "question", rows: 6, placeholder: "Enter your question...", onInput: (e) => (this.question = e.target.value) }, this.question)), index.h("div", { key: '11a32d726ead166b7b9bfa994a31de4c4998fdec', class: "footer", slot: "footer" }, index.h("div", { key: '3fa336237b33537b9154c1eb7dfcd6b929a28e1e', class: "buttons" }, index.h("button", { key: 'aedcec8fc3948515d93adce69f15eb048bdd824e', class: "cancel", onClick: () => this.handleCancel() }, "Cancel"), index.h("button", { key: '2bd012fe2e6866922edde4a4abadb943c78f44ef', class: 'ok', onClick: () => this.handleOk() }, "OK")))));
212
+ return (index.h("verdocs-dialog", { key: 'd0e85744fa9901d1be794cd59f4c9b87922e6e91', onExit: e => this.handleDismiss(e) }, index.h("div", { key: '6d7ead703cdf217588ac98d2ac93a35644838b78', slot: "heading", class: "heading" }, index.h("div", { key: 'd07c6155fc98f51204a51add33d82afec7592c4b', class: "icon", innerHTML: QuestionIcon$1 }), index.h("div", { key: 'e9698d0aa4b24db343afd149adee95d9c3c0a52a', class: "title" }, "Ask the Sender a Question")), index.h("div", { key: 'cdef7a2b00c4c66e1748733e3c614e39ad456192', slot: "content", class: "content" }, index.h("textarea", { key: '81c88e1d61be54e7ba80c9101fb71bf903df8d1c', name: "question", rows: 6, placeholder: "Enter your question...", onInput: (e) => (this.question = e.target.value) }, this.question)), index.h("div", { key: 'a7d5a31362337e6c80c0ac5b2c6471efbacb9a23', class: "footer", slot: "footer" }, index.h("div", { key: '71ae8344f053cfd94dc6befed76933fe67f490d1', class: "buttons" }, index.h("button", { key: '04aec379b7b4f21885f72ed2016b10ac26730476', class: "cancel", onClick: () => this.handleCancel() }, "Cancel"), index.h("button", { key: '6e6e8bb27367c9a1167a49519da299d9ce9ee983', class: 'ok', onClick: () => this.handleOk() }, "OK")))));
212
213
  }
213
214
  };
214
215
  VerdocsQuestionDialog.style = verdocsQuestionDialogCss();
@@ -354,7 +355,7 @@ const VerdocsSignFooter = class {
354
355
  const hasPoweredBy = !!((_b = (_a = this.envelope) === null || _a === void 0 ? void 0 : _a.organization) === null || _b === void 0 ? void 0 : _b.powered_by_label);
355
356
  const hasLinks = !!((_d = (_c = this.envelope) === null || _c === void 0 ? void 0 : _c.organization) === null || _d === void 0 ? void 0 : _d.terms_use_url) || !!((_f = (_e = this.envelope) === null || _e === void 0 ? void 0 : _e.organization) === null || _f === void 0 ? void 0 : _f.privacy_policy_url);
356
357
  const hasButtons = !this.isDone;
357
- return (index.h(index.Host, { key: '2016c55a9196cb3ec96678038df0db7daa21b64d', class: { 'has-buttons': hasButtons, 'no-buttons': !hasButtons, 'has-powered-by': hasPoweredBy, 'has-links': hasLinks, 'just-buttons': !hasPoweredBy && !hasLinks } }, ((_h = (_g = this.envelope) === null || _g === void 0 ? void 0 : _g.organization) === null || _h === void 0 ? void 0 : _h.powered_by_label) && (index.h("div", { key: '47d03008c756feb7d7d4ba55d3f7ebd14c46634f', class: "powered-by" }, ((_k = (_j = this.envelope) === null || _j === void 0 ? void 0 : _j.organization) === null || _k === void 0 ? void 0 : _k.powered_by_url) ? (index.h("a", { href: (_m = (_l = this.envelope) === null || _l === void 0 ? void 0 : _l.organization) === null || _m === void 0 ? void 0 : _m.powered_by_url, target: "_blank", rel: "noopener noreferrer" }, index.h("span", null, (_p = (_o = this.envelope) === null || _o === void 0 ? void 0 : _o.organization) === null || _p === void 0 ? void 0 : _p.powered_by_label))) : (index.h("span", null, (_r = (_q = this.envelope) === null || _q === void 0 ? void 0 : _q.organization) === null || _r === void 0 ? void 0 : _r.powered_by_label)))), !this.isDone && (index.h("div", { key: 'ec4243adcc09cd5ec12a91d0eb5164a05e1a15d0', class: "buttons" }, index.h("button", { key: '6783fd9a0a9c9b36d476291f2e7f8dd63c8fa66b', onClick: () => (this.askingQuestion = true) }, index.h("span", { key: '28d3a5b206498f12c4e18f64f00f7a75963172f7', innerHTML: QuestionIcon }), "Ask Sender a Question"), index.h("button", { key: '69509c288e80a550705880b66abb01bbc12b7a61', onClick: () => { var _a; return (_a = this.decline) === null || _a === void 0 ? void 0 : _a.emit(); } }, index.h("span", { key: '7bad75a4ff16fd23168045626cb579e78db9851d', innerHTML: DeclineIcon }), "Decline Signing"), index.h("button", { key: 'd5a61e976c924b04905f90117a3ffcb61a750a68', onClick: () => { var _a; return (_a = this.finishLater) === null || _a === void 0 ? void 0 : _a.emit(); } }, index.h("span", { key: '7ba6413299135e1731048ae3368df0ff5640a750', innerHTML: SaveIcon }), "Finish Later"))), index.h("div", { key: '1e77fd76a189e1dfdc60ef8d60b79fba5905ae22', class: "links" }, ((_t = (_s = this.envelope) === null || _s === void 0 ? void 0 : _s.organization) === null || _t === void 0 ? void 0 : _t.terms_use_url) && (index.h("a", { key: '57f9055f96d0a4bc6d0b2881a035156d1a3e1df2', href: (_v = (_u = this.envelope) === null || _u === void 0 ? void 0 : _u.organization) === null || _v === void 0 ? void 0 : _v.terms_use_url, target: "_blank", rel: "noopener noreferrer" }, index.h("span", { key: '8f07d35eff0a44bf56a3557c269830fe789573ec' }, "Terms of Use"))), ((_x = (_w = this.envelope) === null || _w === void 0 ? void 0 : _w.organization) === null || _x === void 0 ? void 0 : _x.privacy_policy_url) && (index.h("a", { key: '89c5bbbc7d7a0c16cbe1b2116842696e357afaa0', href: (_z = (_y = this.envelope) === null || _y === void 0 ? void 0 : _y.organization) === null || _z === void 0 ? void 0 : _z.privacy_policy_url, target: "_blank", rel: "noopener noreferrer" }, index.h("span", { key: 'bdf20919570db98342527b912aca3508f952c3d0' }, "Privacy Policy")))), this.askingQuestion && (index.h("verdocs-question-dialog", { key: '925d2470a33d987ec5ede9b6ab39125a00115309', onNext: e => {
358
+ return (index.h(index.Host, { key: '1fc747454660d14e69a4a65cbf71cd81f010d9c3', class: { 'has-buttons': hasButtons, 'no-buttons': !hasButtons, 'has-powered-by': hasPoweredBy, 'has-links': hasLinks, 'just-buttons': !hasPoweredBy && !hasLinks } }, ((_h = (_g = this.envelope) === null || _g === void 0 ? void 0 : _g.organization) === null || _h === void 0 ? void 0 : _h.powered_by_label) && (index.h("div", { key: 'f8cae910df0d2c759af9ee2200aef58b80bb3f37', class: "powered-by" }, ((_k = (_j = this.envelope) === null || _j === void 0 ? void 0 : _j.organization) === null || _k === void 0 ? void 0 : _k.powered_by_url) ? (index.h("a", { href: (_m = (_l = this.envelope) === null || _l === void 0 ? void 0 : _l.organization) === null || _m === void 0 ? void 0 : _m.powered_by_url, target: "_blank", rel: "noopener noreferrer" }, index.h("span", null, (_p = (_o = this.envelope) === null || _o === void 0 ? void 0 : _o.organization) === null || _p === void 0 ? void 0 : _p.powered_by_label))) : (index.h("span", null, (_r = (_q = this.envelope) === null || _q === void 0 ? void 0 : _q.organization) === null || _r === void 0 ? void 0 : _r.powered_by_label)))), !this.isDone && (index.h("div", { key: '06bd0f346de34e567cfa2e2e5ae8bf06a8b6a1d9', class: "buttons" }, index.h("button", { key: 'bee3e5c2aad8cc60c9b291b14bba2e5eb1ee9c32', onClick: () => (this.askingQuestion = true) }, index.h("span", { key: 'f42932689a3330a72b61e853d389eac39b2362a3', innerHTML: QuestionIcon }), "Ask Sender a Question"), index.h("button", { key: '7012513a564bfc6d5a416467843d1056ad5427c8', onClick: () => { var _a; return (_a = this.decline) === null || _a === void 0 ? void 0 : _a.emit(); } }, index.h("span", { key: '7e0506798239ec5935d2c98e577e482744e3aa1f', innerHTML: DeclineIcon }), "Decline Signing"), index.h("button", { key: '3b3765e04da3d7f0749f2cbc24d84f2a3b6edb47', onClick: () => { var _a; return (_a = this.finishLater) === null || _a === void 0 ? void 0 : _a.emit(); } }, index.h("span", { key: '0511b44dc272d16fdd2d2d6098f603f651c9bc50', innerHTML: SaveIcon }), "Finish Later"))), index.h("div", { key: 'cbea53ab6d84e268e1750bb0fec9f846040bd4ad', class: "links" }, ((_t = (_s = this.envelope) === null || _s === void 0 ? void 0 : _s.organization) === null || _t === void 0 ? void 0 : _t.terms_use_url) && (index.h("a", { key: '45628f09eaf2105226ab8b906e20e787de1e28ff', href: (_v = (_u = this.envelope) === null || _u === void 0 ? void 0 : _u.organization) === null || _v === void 0 ? void 0 : _v.terms_use_url, target: "_blank", rel: "noopener noreferrer" }, index.h("span", { key: '08dc74860f84fb34c64a21c5409571998e5ce217' }, "Terms of Use"))), ((_x = (_w = this.envelope) === null || _w === void 0 ? void 0 : _w.organization) === null || _x === void 0 ? void 0 : _x.privacy_policy_url) && (index.h("a", { key: 'c3cc1fb07f7de02108762611c5b69206218e4b59', href: (_z = (_y = this.envelope) === null || _y === void 0 ? void 0 : _y.organization) === null || _z === void 0 ? void 0 : _z.privacy_policy_url, target: "_blank", rel: "noopener noreferrer" }, index.h("span", { key: 'c4bc436c7f7213bc0af61859ef27d8c41e331884' }, "Privacy Policy")))), this.askingQuestion && (index.h("verdocs-question-dialog", { key: '93380ca89c21673f72c53e4d4f941b7d35c0079e', onNext: e => {
358
359
  var _a;
359
360
  (_a = this.askQuestion) === null || _a === void 0 ? void 0 : _a.emit({ question: e.detail.question });
360
361
  this.askingQuestion = false;
@@ -1 +1 @@
1
- {"file":"verdocs-download-dialog_4.cjs.entry.js","mappings":";;;;;;;;;;AAAA,MAAM,wBAAwB,GAAG,MAAM,CAAC,66EAA66E,CAAC;;ACGt9E,MAAM,YAAY,GAAG,CAAA,+gBAAA,CAAihB;AACtiB,MAAM,eAAe,GAAG,CAAA,qaAAA,CAAua;AAC/b,MAAM,OAAO,GAA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E,kBAAkB,EAAE,MAAM,EAAC,QAAQ,EAAC,GAAG,EAAC,qBAAqB,EAAA,EACjGA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EAAA,gBAAA,CAA2B,CACzB,CACL,CACG,EAEL,IAAI,CAAC,cAAc,KAClBA,sFACE,MAAM,EAAE,CAAC,IAAG;;AACV,gBAAA,CAAA,EAAA,GAAA,IAAI,CAAC,WAAW,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,IAAI,CAAC,EAAC,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAC,CAAC;AACrD,gBAAA,IAAI,CAAC,cAAc,GAAG,KAAK;AAC7B,aAAC,EACD,MAAM,EAAE,OAAO,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,GAC3C,CACH,CACI;;;;;;;;;;","names":["DownloadAction","h","VerdocsEndpoint","getEnvelopeDocumentPageDisplayUri","throttle","Host","QuestionIcon","SDKError","Store","getEnvelope"],"sources":["src/components/dialogs/verdocs-download-dialog/verdocs-download-dialog.scss?tag=verdocs-download-dialog","src/components/dialogs/verdocs-download-dialog/verdocs-download-dialog.tsx","src/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.scss?tag=verdocs-envelope-document-page","src/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.tsx","src/components/dialogs/verdocs-question-dialog/verdocs-question-dialog.scss?tag=verdocs-question-dialog","src/components/dialogs/verdocs-question-dialog/verdocs-question-dialog.tsx","src/components/envelopes/verdocs-sign-footer/verdocs-sign-footer.scss?tag=verdocs-sign-footer","src/components/envelopes/verdocs-sign-footer/verdocs-sign-footer.tsx"],"sourcesContent":["@import '../../../theme.scss';\n\nverdocs-download-dialog {\n box-sizing: border-box;\n font-family: $primary-font;\n\n .heading-container {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .content {\n display: flex;\n flex-direction: column;\n gap: 15px;\n padding: 0 24px 20px 24px;\n }\n\n .download-option {\n display: flex;\n align-items: center;\n padding: 12px 15px;\n border: 1px solid #e5e7eb;\n border-radius: 6px;\n cursor: pointer;\n transition: all 0.2s ease;\n gap: 15px;\n background: white;\n\n &.disabled {\n opacity: 0.5;\n cursor: not-allowed;\n\n &:hover {\n background-color: white;\n border-color: #e5e7eb;\n }\n }\n\n &:hover {\n border-color: $verdocs-primary-color;\n background-color: #f9fafb;\n }\n }\n\n .icon-container {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 36px;\n height: 36px;\n background-color: #f3f4f6;\n border-radius: 50%;\n color: #4b5563;\n flex-shrink: 0;\n\n svg {\n width: 18px;\n height: 18px;\n }\n }\n\n .text-container {\n flex: 1;\n\n .label {\n font-weight: 500;\n color: #111827;\n margin-bottom: 2px;\n }\n\n .description {\n font-size: 13px;\n color: #6b7280;\n }\n }\n\n .status-indicator {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 2px;\n font-size: 11px;\n color: #9ca3af;\n min-width: 50px;\n\n .signed {\n color: #10b981;\n }\n\n .spinner-inline {\n display: flex;\n color: #9ca3af;\n animation: rotate 2s linear infinite;\n }\n\n svg {\n width: 16px;\n height: 16px;\n }\n }\n\n .info-message {\n font-size: 13px;\n color: #6b7280;\n font-style: italic;\n padding: 0 4px;\n }\n}\n\n@keyframes rotate {\n from {\n transform: rotate(0deg);\n }\n\n to {\n transform: rotate(360deg);\n }\n}\n","import {Component, h, Event, EventEmitter, Prop} from '@stencil/core';\nimport {DownloadAction} from '../../../utils/Types';\n\nconst DocumentIcon = `<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>`;\nconst CertificateIcon = `<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>`;\nconst ZipIcon = `<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>`;\nconst CheckIcon = `<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>`;\nconst RefreshIcon = `<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>`;\n\n@Component({\n tag: 'verdocs-download-dialog',\n styleUrl: 'verdocs-download-dialog.scss',\n shadow: false,\n})\nexport class VerdocsDownloadDialog {\n /**\n * Event fired when an option is selected.\n */\n /**\n * Event fired when an option is selected.\n */\n @Event({composed: true}) download: EventEmitter<{action: DownloadAction; documentId?: string}>;\n\n /**\n * Event fired when Cancel is pressed or background is clicked.\n */\n @Event({composed: true}) exit: EventEmitter;\n\n /**\n * If true, the envelope is considered signed.\n */\n @Prop() signed = false;\n\n /**\n * If true, we are currently polling the server for updates.\n */\n @Prop() polling = false;\n\n /**\n * The list of documents in the envelope.\n */\n @Prop() documents: any[] = [];\n\n /**\n * If true, the envelope has a certificate available for download.\n */\n @Prop() hasCertificate = false;\n\n handleOptionClick(action: DownloadAction, documentId?: string) {\n const hasCert = this.documents.some(d => d.type === 'certificate') || this.hasCertificate;\n const isCertReady = this.signed && hasCert;\n const isCertificateDisabled = action === DownloadAction.certificate && !isCertReady;\n const isZipDisabled = action === DownloadAction.zip && (this.polling || !isCertReady);\n const isCombinedDisabled = action === DownloadAction.combined && !isCertReady;\n\n if (isCertificateDisabled || isZipDisabled || isCombinedDisabled) return;\n this.download.emit({action, documentId});\n }\n\n render() {\n const attachments = this.documents.filter(d => d.type === 'attachment').sort((a, b) => (a.order !== b.order ? a.order - b.order : a.created_at.localeCompare(b.created_at)));\n const hasCertificateDoc = this.documents.some(d => d.type === 'certificate') || this.hasCertificate;\n const certReady = this.signed && hasCertificateDoc;\n const isCombinedReady = this.signed && hasCertificateDoc;\n const allDone = !this.polling && certReady;\n const attachmentBusy = !this.signed;\n\n return (\n <verdocs-dialog onExit={() => this.exit.emit()}>\n <div slot=\"heading\" class=\"heading-container\">\n <h3 style={{margin: '0', fontSize: '1.25rem', fontWeight: '600', padding: '16px 24px'}}>Download</h3>\n </div>\n\n <div slot=\"content\" class=\"content\">\n {attachments.length <= 2 &&\n attachments.map(doc => (\n <div class=\"download-option\" onClick={() => this.handleOptionClick(DownloadAction.document, doc.id)}>\n <div class=\"icon-container\" innerHTML={DocumentIcon}></div>\n <div class=\"text-container\">\n <div class=\"label\">{doc.name}</div>\n <div class=\"description\">Download the document</div>\n </div>\n {attachmentBusy ? (\n <div class=\"status-indicator\">\n <div class=\"spinner-inline\" innerHTML={RefreshIcon}></div>\n </div>\n ) : (\n <div class=\"status-indicator\">\n <div class=\"signed\" innerHTML={CheckIcon}></div>\n <span>Signed</span>\n </div>\n )}\n </div>\n ))}\n\n {attachments.length > 2 && <div class=\"info-message\">Multiple documents attached. Please use the ZIP option below to download all files.</div>}\n\n <div\n class={{'download-option': true, 'disabled': !certReady}}\n onClick={() => this.handleOptionClick(DownloadAction.certificate)}\n title={!certReady ? 'Certificate not yet available' : ''}\n >\n <div class=\"icon-container\" innerHTML={CertificateIcon}></div>\n <div class=\"text-container\">\n <div class=\"label\">Certificate</div>\n <div class=\"description\">Download the certificate</div>\n </div>\n {certReady ? (\n <div class=\"status-indicator\">\n <div class=\"signed\" innerHTML={CheckIcon}></div>\n <span>Ready</span>\n </div>\n ) : (\n <div class=\"status-indicator\">\n <div class=\"spinner-inline\" innerHTML={RefreshIcon}></div>\n </div>\n )}\n </div>\n\n <div\n class={{'download-option': true, 'disabled': !isCombinedReady}}\n onClick={() => this.handleOptionClick(DownloadAction.combined)}\n title={!isCombinedReady ? 'Waiting for all documents to be ready' : ''}\n >\n <div class=\"icon-container\" innerHTML={ZipIcon}></div>\n <div class=\"text-container\">\n <div class=\"label\">Combined</div>\n <div class=\"description\">Merge envelopes & certificate into a single PDF</div>\n </div>\n {isCombinedReady ? (\n <div class=\"status-indicator\">\n <div class=\"signed\" innerHTML={CheckIcon}></div>\n <span>Ready</span>\n </div>\n ) : (\n <div class=\"status-indicator\">\n <div class=\"spinner-inline\" innerHTML={RefreshIcon}></div>\n </div>\n )}\n </div>\n\n <div\n class={{'download-option': true, 'disabled': !allDone}}\n onClick={() => this.handleOptionClick(DownloadAction.zip)}\n title={!allDone ? 'Waiting for all documents to be ready' : ''}\n >\n <div class=\"icon-container\" innerHTML={ZipIcon}></div>\n <div class=\"text-container\">\n <div class=\"label\">All Files</div>\n <div class=\"description\">Download everything as a ZIP file</div>\n </div>\n {allDone ? (\n <div class=\"status-indicator\">\n <div class=\"signed\" innerHTML={CheckIcon}></div>\n <span>Ready</span>\n </div>\n ) : (\n <div class=\"status-indicator\">\n <div class=\"spinner-inline\" innerHTML={RefreshIcon}></div>\n </div>\n )}\n </div>\n </div>\n\n <div slot=\"footer\" style={{display: 'none'}} />\n </verdocs-dialog>\n );\n }\n}\n","@import '../../../theme.scss';\n\nverdocs-envelope-document-page {\n width: 100%;\n position: relative;\n\n .verdocs-envelope-document-page-layer {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n box-shadow: 0 0 10px 5px #0000000f;\n\n &.img {\n width: 100%;\n }\n }\n}\n","// NOTE: This component does not have a story because it's not intended for external use.\n\nimport {getEnvelopeDocumentPageDisplayUri, VerdocsEndpoint} from '@verdocs/js-sdk';\nimport {Component, h, Host, Prop, Event, EventEmitter, State, Element} from '@stencil/core';\nimport {IDocumentPageInfo, IPageLayer} from '../../../utils/Types';\nimport {throttle} from '../../../utils/utils';\n\n/**\n * Represents one document page. This is primarily a layout container used to coordinate positions of\n * page-related layers such as the page itself, signature fields, etc. It is not intended to be used\n * on its own as an individual component.\n */\n@Component({\n tag: 'verdocs-envelope-document-page',\n styleUrl: 'verdocs-envelope-document-page.scss',\n shadow: false,\n})\nexport class VerdocsEnvelopeDocumentPage {\n @Element() container: HTMLElement;\n private resizeObserver: ResizeObserver;\n\n /**\n * The endpoint to load from.\n */\n @Prop() endpoint: VerdocsEndpoint = VerdocsEndpoint.getDefault();\n\n /**\n * The ID of the envelope the document is for.\n */\n @Prop() envelopeId: string = '';\n\n /**\n * The ID of the document to display.\n */\n @Prop() documentId: string = '';\n\n /**\n * The page number being rendered. (Reminder: page numbers are 1-based.)\n */\n @Prop() pageNumber: number = 1;\n\n /**\n * The \"virtual\" width of the page canvas. Defaults to 612 which at 72dpi is 8.5\" wide. This is used to compute\n * the aspect ratio of the final rendered element when scaling up/down.\n */\n @Prop() virtualWidth: number = 612;\n\n /**\n * The \"virtual\" height of the page canvas. Defaults to 792 which at 72dpi is 11\" tall. This is used to compute\n * the aspect ratio of the final rendered element when scaling up/down.\n */\n @Prop({mutable: true}) virtualHeight: number = 792;\n\n /**\n * The layers that will be rendered. The DOM structure will be a DIV container with one child DIV for each layer.\n * The parent DIV will have a unique ID, and each child DIV will have that ID with the layer name appended, e.g.\n * if `pages` was ['page', 'fields'] the structure will be:\n *\n * ```\n * <div id=\"verdocs-envelope-document-page-ker2fr1p9\">\n * <div id=\"verdocs-envelope-document-page-ker2fr1p9-page\"></div>\n * <div id=\"verdocs-envelope-document-page-ker2fr1p9-fields\"></div>\n * </div>\n * ```\n */\n @Prop() layers: IPageLayer[] = [{name: 'page', type: 'canvas'}];\n\n @Prop() type: 'original' | 'filled' | 'certificate' = 'original';\n\n /**\n * Fired when a page has been rendered. This is also fired when the page is resized.\n */\n @Event() pageRendered: EventEmitter<IDocumentPageInfo>;\n\n @State() containerId = `verdocs-envelope-document-page-${Math.random().toString(36).substring(2, 11)}`;\n\n @State() renderedWidth: number = this.virtualWidth;\n @State() renderedHeight: number = this.virtualHeight;\n @State() naturalWidth: number = this.virtualWidth;\n @State() naturalHeight: number = this.virtualHeight;\n @State() aspectRatio: number = this.virtualWidth / this.virtualHeight;\n\n @State() skipFirstNotification = true;\n\n @State() pageDisplayUri = 'https://verdocs-public-assets.s3.amazonaws.com/page-loading-placeholder.png';\n\n async componentWillLoad() {\n this.pageDisplayUri = await getEnvelopeDocumentPageDisplayUri(this.endpoint, this.documentId, this.pageNumber, this.type);\n }\n\n componentDidLoad() {\n this.resizeObserver = new ResizeObserver(\n throttle(entries => {\n for (const entry of entries) {\n const renderedWidth = entry.contentRect.width;\n this.renderedWidth = renderedWidth;\n this.renderedHeight = this.virtualHeight * (renderedWidth / this.virtualWidth);\n }\n\n this.notifyRenderedSize();\n }, 100),\n );\n\n this.resizeObserver.observe(this.container);\n }\n\n disconnectedCallback() {\n this.resizeObserver?.disconnect();\n }\n\n // Left here for documentation purposes in case we find an edge case where this isn't true. But we apparently don't need this.\n // When we add the resize observer it will always be triggered at least once so notifying here as well is just a dupe.\n // componentDidRender() {\n // this.notifyRenderedSize();\n // }\n\n notifyRenderedSize() {\n // We skip one notification because by default we will always get at least two, one when rendering the initial size\n // and a second once we're able to compute the scale size, when the resizeObserver sets renderedWidth/renderedHeight.\n if (this.skipFirstNotification) {\n this.skipFirstNotification = false;\n return;\n }\n\n this.pageRendered.emit({\n // container: this.container,\n containerId: this.containerId,\n documentId: this.documentId,\n pageNumber: this.pageNumber,\n virtualWidth: this.virtualWidth,\n virtualHeight: this.virtualHeight,\n renderedWidth: this.renderedWidth,\n renderedHeight: this.renderedHeight,\n naturalWidth: this.naturalWidth,\n naturalHeight: this.naturalHeight,\n aspectRatio: this.aspectRatio,\n xScale: this.renderedWidth / this.virtualWidth,\n yScale: this.renderedHeight / this.virtualHeight,\n });\n }\n\n render() {\n const height = `${this.renderedHeight}px`;\n\n return (\n <Host id={`${this.containerId}`} style={{height, flex: `0 0 ${height}`}}>\n {this.layers.map(layer =>\n layer.type === 'div' ? (\n <div class=\"verdocs-envelope-document-page-layer\" id={`${this.containerId}-${layer.name}`} style={{height}} />\n ) : this.pageDisplayUri ? (\n <img\n class=\"verdocs-envelope-document-page-layer img\"\n id={`${this.containerId}-${layer.name}`}\n src={this.pageDisplayUri}\n alt={`Page ${this.pageNumber}`}\n aria-hidden={true}\n loading=\"lazy\"\n onLoad={(e: any) => {\n // Note that all we really care about is the aspect ratio. We track the natural Width and Height but they aren't really that\n // useful as individual values. The image will already have been scaled down to fit a DIV for display (100%, auto height).\n // Builder places fields offset into the rendered display area, not the original document's dimensions. So its X/Y values\n // for a field are based on the responsive Web view the Template editor was seeing. The IMG was scaled down there in the\n // exact same way, so we just honor it. We capture the natural width and height here more as information. Then we use the\n // aspect ratio to adjust the \"virtual\" height in case the page is not 8.5\"x11\".\n // TODO: Store this in the DB with each page.\n this.naturalWidth = e.target.naturalWidth;\n this.naturalHeight = e.target.naturalHeight;\n this.aspectRatio = this.naturalWidth / this.naturalHeight;\n this.virtualHeight = this.virtualWidth / this.aspectRatio;\n this.renderedHeight = e.target.offsetWidth / this.aspectRatio;\n }}\n />\n ) : (\n <div></div>\n ),\n )}\n </Host>\n );\n }\n}\n","@import '../../../theme.scss';\n\nverdocs-question-dialog {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n position: fixed;\n box-sizing: border-box;\n font-family: $primary-font;\n\n &.closed {\n display: none;\n }\n\n textarea {\n box-sizing: border-box;\n border: 1px solid $border-color;\n border-radius: 4px;\n background: $verdocs-grey-4;\n color: #000;\n width: 100%;\n font-size: 14px;\n padding: 9px;\n outline: none;\n }\n\n .heading .title {\n font-size: 18px;\n }\n\n .buttons {\n gap: 20px;\n display: flex;\n margin-top: 24px;\n flex-direction: row;\n justify-content: center;\n\n button {\n flex: 1;\n border: 0;\n height: 38px;\n display: flex;\n color: #ffffff;\n font-size: 14px;\n cursor: pointer;\n border-radius: 6px;\n align-items: center;\n justify-content: center;\n\n &.cancel {\n background-color: $verdocs-button-purple;\n }\n\n &.ok {\n background-color: $verdocs-button-green;\n\n &.single {\n max-width: 150px;\n }\n }\n\n &:disabled {\n background-color: $verdocs-button-disabled;\n }\n }\n }\n}\n","import {Component, h, Event, EventEmitter, State, Prop} from '@stencil/core';\n\nconst QuestionIcon = `<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>`;\n\n/**\n * Display a simple text dialog box with an Ok button. This adds a partially-transparent overlay and screen-centered dialog\n * box with a message and optional header/title. An OK button is shown that will dismiss the message.\n * It can also be dismissed by clicking the background overlay.\n */\n@Component({\n tag: 'verdocs-question-dialog',\n styleUrl: 'verdocs-question-dialog.scss',\n})\nexport class VerdocsQuestionDialog {\n @Prop({mutable: true}) question: string = '';\n\n /**\n * Event fired when the user clicks the OK button.\n */\n @Event({composed: true}) next: EventEmitter<{question: string}>;\n\n /**\n * Event fired when Cancel is pressed. This is called exit to avoid conflicts with the JS-reserved \"cancel\" event name.\n */\n @Event({composed: true}) exit: EventEmitter;\n\n @State() closed = false;\n\n handleOk() {\n this.next.emit({question: this.question});\n }\n\n handleCancel() {\n this.exit.emit();\n }\n\n // We need a separate event handler for clicking the background because it can receive events \"through\" other child components\n handleDismiss(e: any) {\n this.closed = true;\n if (e.target.className === 'background-overlay') {\n e.preventDefault();\n this.exit.emit();\n }\n }\n\n render() {\n return (\n <verdocs-dialog onExit={e => this.handleDismiss(e)}>\n <div slot=\"heading\" class=\"heading\">\n <div class=\"icon\" innerHTML={QuestionIcon} />\n\n <div class=\"title\">Ask the Sender a Question</div>\n </div>\n\n <div slot=\"content\" class=\"content\">\n <textarea name=\"question\" rows={6} placeholder=\"Enter your question...\" onInput={(e: any) => (this.question = e.target.value)}>\n {this.question}\n </textarea>\n </div>\n\n <div class=\"footer\" slot=\"footer\">\n <div class=\"buttons\">\n <button class=\"cancel\" onClick={() => this.handleCancel()}>\n Cancel\n </button>\n <button class={'ok'} onClick={() => this.handleOk()}>\n OK\n </button>\n </div>\n </div>\n </verdocs-dialog>\n );\n }\n}\n","@import '../../../theme.scss';\n\nverdocs-sign-footer {\n left: 0;\n right: 0;\n bottom: 0;\n height: 48px;\n display: flex;\n color: #616161;\n position: fixed;\n font-size: 12px;\n padding: 0 24px;\n align-items: center;\n flex-direction: row;\n background: #ffffff;\n container-type: inline-size;\n border-top: 1px solid #e0e0e0;\n justify-content: space-between;\n font-family: $verdocs-primary-font;\n transition: 0.5s cubic-bezier(0.35, 0, 0.25, 1);\n\n a {\n color: #616161;\n cursor: pointer;\n text-decoration: none;\n border-bottom: 1px dotted #616161;\n }\n\n &.loading {\n display: none;\n }\n\n .powered-by {\n white-space: nowrap;\n }\n\n .buttons {\n flex: 0;\n gap: 16px;\n display: flex;\n flex-direction: row;\n white-space: nowrap;\n align-items: center;\n\n button {\n gap: 4px;\n border: none;\n display: flex;\n outline: none;\n cursor: pointer;\n flex-direction: row;\n align-items: center;\n background: transparent;\n }\n\n div {\n gap: 4px;\n display: flex;\n flex-direction: row;\n align-items: center;\n }\n }\n\n .links {\n flex: 0;\n gap: 8px;\n display: flex;\n flex-direction: row;\n white-space: nowrap;\n }\n\n &.just-buttons {\n .buttons {\n flex: 1;\n justify-content: center;\n }\n }\n\n @container (max-width: 720px) {\n &.has-buttons .powered-by {\n display: none;\n }\n }\n\n @container (max-width: 540px) {\n &.no-buttons .powered-by {\n display: none;\n }\n\n &.has-buttons .links {\n display: none;\n }\n\n .buttons {\n flex: 1;\n justify-content: center;\n }\n }\n}\n","import {IEnvelope} from '@verdocs/js-sdk';\nimport {Component, h, Event, EventEmitter, Host, Prop, State} from '@stencil/core';\nimport {getEnvelope, VerdocsEndpoint} from '@verdocs/js-sdk';\nimport {SDKError} from '../../../utils/errors';\nimport {Store} from '../../../utils/Datastore';\n\nconst QuestionIcon = `<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>`;\nconst DeclineIcon = `<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>`;\nconst SaveIcon = `<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>`;\n\n/**\n * Typically presented by the `verdocs-sign` component. Displays a footer toolbar\n * with a few convenience functions for the envelope recipient to use.\n */\n@Component({\n tag: 'verdocs-sign-footer',\n styleUrl: 'verdocs-sign-footer.scss',\n shadow: false,\n})\nexport class VerdocsSignFooter {\n private envelopeListenerId = null;\n\n /**\n * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.\n */\n @Prop() endpoint: VerdocsEndpoint = VerdocsEndpoint.getDefault();\n\n /**\n * The envelope ID to render. Set ONE OF templateId or envelopeId. If both are set, envelopeId will be ignored.\n */\n @Prop() envelopeId: string = '';\n\n /**\n * If the recipient is \"done,\" some buttons will be hidden.\n */\n @Prop() isDone = false;\n\n /**\n * Event fired if the user asks the sender a question. The parent component is responsible for handling this.\n */\n @Event({composed: true}) askQuestion: EventEmitter<{question: string}>;\n\n /**\n * Event fired if the user asks the sender a question. The parent component is responsible for handling this.\n */\n @Event({composed: true}) decline: EventEmitter;\n\n /**\n * Event fired if the user asks the sender a question. The parent component is responsible for handling this.\n */\n @Event({composed: true}) finishLater: EventEmitter;\n\n /**\n * Event fired if an error occurs. The event details will contain information about the error. Most errors will\n * terminate the process, and the calling application should correct the condition and re-render the component.\n */\n @Event({composed: true}) sdkError: EventEmitter<SDKError>;\n\n /**\n * Event fired when the envelope is updated in any way. May be used for tasks such as cache invalidation or reporting to other systems.\n */\n // @Event({composed: true}) envelopeUpdated: EventEmitter<{endpoint: VerdocsEndpoint; envelope: IEnvelope; event: string}>;\n\n @State() askingQuestion = false;\n @State() declinine = false;\n @State() envelope: IEnvelope | null = null;\n\n async componentWillLoad() {\n try {\n // NOTE: The caller must have a signing session already active and shared to us via\n // the endpoint property.\n if (!this.envelopeId) {\n console.log(`[FOOTER] Missing required envelope ID ${this.envelopeId}`);\n return;\n }\n\n this.listenToEnvelope();\n } catch (e) {\n console.log('[FOOTER] Error loading envelope', e);\n this.sdkError?.emit(new SDKError(e.message, e.response?.status, e.response?.data));\n }\n }\n\n disconnectedCallback() {\n this.unlistenToEnvelope();\n }\n\n async listenToEnvelope() {\n console.log('[FOOTER] Loading envelope', this.envelopeId);\n this.unlistenToEnvelope();\n Store.subscribe(\n 'envelopes',\n this.envelopeId,\n () => getEnvelope(this.endpoint, this.envelopeId),\n false,\n (envelope: IEnvelope) => {\n this.envelope = envelope;\n },\n );\n }\n\n unlistenToEnvelope() {\n if (this.envelopeListenerId) {\n Store.store.delListener(this.envelopeListenerId);\n this.envelopeListenerId = null;\n }\n }\n\n // handleRecipientAction(recipient: IRecipient, id: string) {\n // console.log('[SIDEBAR] Recipient action', id, recipient);\n // switch (id) {\n // case 'update':\n // this.showUpdateDialog = recipient.role_name;\n // break;\n //\n // case 'reminder':\n // remindRecipient(this.endpoint, this.envelopeId, recipient.role_name)\n // .then(() => {\n // VerdocsToast('Reminder Sent', {style: 'success'});\n // })\n // .catch(e => {\n // console.log('[SIDEBAR] Error resending invitation', e);\n // VerdocsToast('Error resending invitation: ' + e.message, {style: 'error'});\n // });\n // break;\n //\n // case 'reinvite':\n // this.showReinviteDialog = recipient.role_name;\n // break;\n //\n // case 'inperson':\n // this.showRecipientDialog = recipient.role_name;\n // break;\n //\n // case 'modify':\n // VerdocsToast('This feature will be enabled in a future release. Please try again later.', {style: 'info'});\n // break;\n //\n // case 'details':\n // VerdocsToast('This feature will be enabled in a future release. Please try again later.', {style: 'info'});\n // break;\n // }\n // }\n\n // handleUpdateRecipient(originalRecipient: IRecipient, updatedRecipient: IRecipient) {\n // console.log('Updating recipient', originalRecipient, updatedRecipient);\n // const fields: any = {};\n // if (updatedRecipient.email !== originalRecipient.email) {\n // fields.email = updatedRecipient.email;\n // }\n // if (updatedRecipient.phone !== originalRecipient.phone) {\n // fields.phone = updatedRecipient.phone;\n // }\n // if (updatedRecipient.message !== originalRecipient.message) {\n // fields.message = updatedRecipient.message;\n // }\n // if (updatedRecipient.first_name !== originalRecipient.first_name) {\n // fields.first_name = updatedRecipient.first_name;\n // }\n // if (updatedRecipient.last_name !== originalRecipient.last_name) {\n // fields.last_name = updatedRecipient.last_name;\n // }\n //\n // if (Object.keys(fields).length > 0) {\n // updateRecipient(this.endpoint, this.envelopeId, originalRecipient.role_name, fields)\n // .then(r => {\n // // TODO: Reload the envelope?\n // VerdocsToast('Recipient updated', {style: 'success'});\n // console.log('[SIDEBAR] Updated recipient', r);\n // Store.getEnvelope(this.endpoint, this.envelopeId, true);\n // this.showUpdateDialog = '';\n // })\n // .catch(e => {\n // VerdocsToast(e.response.data.error, {style: 'error'});\n // this.showUpdateDialog = '';\n // });\n // } else {\n // this.showUpdateDialog = '';\n // }\n // }\n\n render() {\n const hasPoweredBy = !!this.envelope?.organization?.powered_by_label;\n const hasLinks = !!this.envelope?.organization?.terms_use_url || !!this.envelope?.organization?.privacy_policy_url;\n const hasButtons = !this.isDone;\n\n return (\n <Host class={{'has-buttons': hasButtons, 'no-buttons': !hasButtons, 'has-powered-by': hasPoweredBy, 'has-links': hasLinks, 'just-buttons': !hasPoweredBy && !hasLinks}}>\n {this.envelope?.organization?.powered_by_label && (\n <div class=\"powered-by\">\n {this.envelope?.organization?.powered_by_url ? (\n <a href={this.envelope?.organization?.powered_by_url} target=\"_blank\" rel=\"noopener noreferrer\">\n <span>{this.envelope?.organization?.powered_by_label}</span>\n </a>\n ) : (\n <span>{this.envelope?.organization?.powered_by_label}</span>\n )}\n </div>\n )}\n\n {!this.isDone && (\n <div class=\"buttons\">\n <button onClick={() => (this.askingQuestion = true)}>\n <span innerHTML={QuestionIcon} />\n Ask Sender a Question\n </button>\n <button onClick={() => this.decline?.emit()}>\n <span innerHTML={DeclineIcon} />\n Decline Signing\n </button>\n <button onClick={() => this.finishLater?.emit()}>\n <span innerHTML={SaveIcon} />\n Finish Later\n </button>\n </div>\n )}\n\n <div class=\"links\">\n {this.envelope?.organization?.terms_use_url && (\n <a href={this.envelope?.organization?.terms_use_url} target=\"_blank\" rel=\"noopener noreferrer\">\n <span>Terms of Use</span>\n </a>\n )}\n {this.envelope?.organization?.privacy_policy_url && (\n <a href={this.envelope?.organization?.privacy_policy_url} target=\"_blank\" rel=\"noopener noreferrer\">\n <span>Privacy Policy</span>\n </a>\n )}\n </div>\n\n {this.askingQuestion && (\n <verdocs-question-dialog\n onNext={e => {\n this.askQuestion?.emit({question: e.detail.question});\n this.askingQuestion = false;\n }}\n onExit={() => (this.askingQuestion = false)}\n />\n )}\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"verdocs-download-dialog_4.cjs.entry.js","mappings":";;;;;;;;;;AAAA,MAAM,wBAAwB,GAAG,MAAM,CAAC,66EAA66E,CAAC;;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AA,EAAA,CAAE,kBAAkB,MAC9CA,OAAA,CAAA,GAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAG,IAAI,EAAE,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,IAAI,CAAC,QAAQ,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,YAAY,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,kBAAkB,EAAE,MAAM,EAAC,QAAQ,EAAC,GAAG,EAAC,qBAAqB,EAAA,EACjGA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EAAA,gBAAA,CAA2B,CACzB,CACL,CACG,EAEL,IAAI,CAAC,cAAc,KAClBA,sFACE,MAAM,EAAE,CAAC,IAAG;;AACV,gBAAA,CAAA,EAAA,GAAA,IAAI,CAAC,WAAW,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,IAAI,CAAC,EAAC,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAC,CAAC;AACrD,gBAAA,IAAI,CAAC,cAAc,GAAG,KAAK;AAC7B,aAAC,EACD,MAAM,EAAE,OAAO,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,GAC3C,CACH,CACI;;;;;;;;;;","names":["DownloadAction","h","VerdocsEndpoint","getEnvelopeDocumentPageDisplayUri","throttle","Host","QuestionIcon","SDKError","Store","getEnvelope"],"sources":["src/components/dialogs/verdocs-download-dialog/verdocs-download-dialog.scss?tag=verdocs-download-dialog","src/components/dialogs/verdocs-download-dialog/verdocs-download-dialog.tsx","src/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.scss?tag=verdocs-envelope-document-page","src/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.tsx","src/components/dialogs/verdocs-question-dialog/verdocs-question-dialog.scss?tag=verdocs-question-dialog","src/components/dialogs/verdocs-question-dialog/verdocs-question-dialog.tsx","src/components/envelopes/verdocs-sign-footer/verdocs-sign-footer.scss?tag=verdocs-sign-footer","src/components/envelopes/verdocs-sign-footer/verdocs-sign-footer.tsx"],"sourcesContent":["@import '../../../theme.scss';\n\nverdocs-download-dialog {\n box-sizing: border-box;\n font-family: $primary-font;\n\n .heading-container {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .content {\n display: flex;\n flex-direction: column;\n gap: 15px;\n padding: 0 24px 20px 24px;\n }\n\n .download-option {\n display: flex;\n align-items: center;\n padding: 12px 15px;\n border: 1px solid #e5e7eb;\n border-radius: 6px;\n cursor: pointer;\n transition: all 0.2s ease;\n gap: 15px;\n background: white;\n\n &.disabled {\n opacity: 0.5;\n cursor: not-allowed;\n\n &:hover {\n background-color: white;\n border-color: #e5e7eb;\n }\n }\n\n &:hover {\n border-color: $verdocs-primary-color;\n background-color: #f9fafb;\n }\n }\n\n .icon-container {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 36px;\n height: 36px;\n background-color: #f3f4f6;\n border-radius: 50%;\n color: #4b5563;\n flex-shrink: 0;\n\n svg {\n width: 18px;\n height: 18px;\n }\n }\n\n .text-container {\n flex: 1;\n\n .label {\n font-weight: 500;\n color: #111827;\n margin-bottom: 2px;\n }\n\n .description {\n font-size: 13px;\n color: #6b7280;\n }\n }\n\n .status-indicator {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 2px;\n font-size: 11px;\n color: #9ca3af;\n min-width: 50px;\n\n .signed {\n color: #10b981;\n }\n\n .spinner-inline {\n display: flex;\n color: #9ca3af;\n animation: rotate 2s linear infinite;\n }\n\n svg {\n width: 16px;\n height: 16px;\n }\n }\n\n .info-message {\n font-size: 13px;\n color: #6b7280;\n font-style: italic;\n padding: 0 4px;\n }\n}\n\n@keyframes rotate {\n from {\n transform: rotate(0deg);\n }\n\n to {\n transform: rotate(360deg);\n }\n}\n","import {Component, h, Event, EventEmitter, Prop} from '@stencil/core';\nimport {DownloadAction} from '../../../utils/Types';\n\nconst DocumentIcon = `<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>`;\nconst CertificateIcon = `<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>`;\nconst ZipIcon = `<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>`;\nconst CheckIcon = `<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>`;\nconst RefreshIcon = `<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>`;\n\n@Component({\n tag: 'verdocs-download-dialog',\n styleUrl: 'verdocs-download-dialog.scss',\n shadow: false,\n})\nexport class VerdocsDownloadDialog {\n /**\n * Event fired when an option is selected.\n */\n /**\n * Event fired when an option is selected.\n */\n @Event({composed: true}) download: EventEmitter<{action: DownloadAction; documentId?: string}>;\n\n /**\n * Event fired when Cancel is pressed or background is clicked.\n */\n @Event({composed: true}) exit: EventEmitter;\n\n /**\n * If true, the envelope is considered signed.\n */\n @Prop() signed = false;\n\n /**\n * If true, we are currently polling the server for updates.\n */\n @Prop() polling = false;\n\n /**\n * The list of documents in the envelope.\n */\n @Prop() documents: any[] = [];\n\n /**\n * If true, the envelope has a certificate available for download.\n */\n @Prop() hasCertificate = false;\n\n handleOptionClick(action: DownloadAction, documentId?: string) {\n const hasCert = this.documents.some(d => d.type === 'certificate') || this.hasCertificate;\n const isCertReady = this.signed && hasCert;\n const isCertificateDisabled = action === DownloadAction.certificate && !isCertReady;\n const isZipDisabled = action === DownloadAction.zip && (this.polling || !isCertReady);\n const isCombinedDisabled = action === DownloadAction.combined && (this.polling || !isCertReady || !documentId);\n\n if (isCertificateDisabled || isZipDisabled || isCombinedDisabled) return;\n this.download.emit({action, documentId});\n }\n\n render() {\n const attachments = this.documents.filter(d => d.type === 'attachment').sort((a, b) => (a.order !== b.order ? a.order - b.order : a.created_at.localeCompare(b.created_at)));\n const certificateDocument = this.documents.find(d => d.type === 'certificate');\n const hasCertificateDoc = !!certificateDocument || this.hasCertificate;\n const certReady = this.signed && hasCertificateDoc;\n const allDone = !this.polling && certReady;\n // const isCombinedReady = allDone && !!certificateDocument?.id;\n const attachmentBusy = !this.signed;\n\n return (\n <verdocs-dialog onExit={() => this.exit.emit()}>\n <div slot=\"heading\" class=\"heading-container\">\n <h3 style={{margin: '0', fontSize: '1.25rem', fontWeight: '600', padding: '16px 24px'}}>Download</h3>\n </div>\n\n <div slot=\"content\" class=\"content\">\n {attachments.length <= 2 &&\n attachments.map(doc => (\n <div class=\"download-option\" onClick={() => this.handleOptionClick(DownloadAction.document, doc.id)}>\n <div class=\"icon-container\" innerHTML={DocumentIcon}></div>\n <div class=\"text-container\">\n <div class=\"label\">{doc.name}</div>\n <div class=\"description\">Download the document</div>\n </div>\n {attachmentBusy ? (\n <div class=\"status-indicator\">\n <div class=\"spinner-inline\" innerHTML={RefreshIcon}></div>\n </div>\n ) : (\n <div class=\"status-indicator\">\n <div class=\"signed\" innerHTML={CheckIcon}></div>\n <span>Signed</span>\n </div>\n )}\n </div>\n ))}\n\n {attachments.length > 2 && <div class=\"info-message\">Multiple documents attached. Please use the ZIP option below to download all files.</div>}\n\n <div\n class={{'download-option': true, 'disabled': !certReady}}\n onClick={() => this.handleOptionClick(DownloadAction.certificate)}\n title={!certReady ? 'Certificate not yet available' : ''}\n >\n <div class=\"icon-container\" innerHTML={CertificateIcon}></div>\n <div class=\"text-container\">\n <div class=\"label\">Certificate</div>\n <div class=\"description\">Download the certificate</div>\n </div>\n {certReady ? (\n <div class=\"status-indicator\">\n <div class=\"signed\" innerHTML={CheckIcon}></div>\n <span>Ready</span>\n </div>\n ) : (\n <div class=\"status-indicator\">\n <div class=\"spinner-inline\" innerHTML={RefreshIcon}></div>\n </div>\n )}\n </div>\n\n {/* <div\n class={{'download-option': true, 'disabled': !isCombinedReady}}\n onClick={() => this.handleOptionClick(DownloadAction.combined, certificateDocument?.id)}\n title={!isCombinedReady ? 'Waiting for all documents to be ready' : ''}\n >\n <div class=\"icon-container\" innerHTML={ZipIcon}></div>\n <div class=\"text-container\">\n <div class=\"label\">Combined</div>\n <div class=\"description\">Merge envelopes & certificate into a single PDF</div>\n </div>\n {isCombinedReady ? (\n <div class=\"status-indicator\">\n <div class=\"signed\" innerHTML={CheckIcon}></div>\n <span>Ready</span>\n </div>\n ) : (\n <div class=\"status-indicator\">\n <div class=\"spinner-inline\" innerHTML={RefreshIcon}></div>\n </div>\n )}\n </div> */}\n\n <div\n class={{'download-option': true, 'disabled': !allDone}}\n onClick={() => this.handleOptionClick(DownloadAction.zip)}\n title={!allDone ? 'Waiting for all documents to be ready' : ''}\n >\n <div class=\"icon-container\" innerHTML={ZipIcon}></div>\n <div class=\"text-container\">\n <div class=\"label\">All Files</div>\n <div class=\"description\">Download everything as a ZIP file</div>\n </div>\n {allDone ? (\n <div class=\"status-indicator\">\n <div class=\"signed\" innerHTML={CheckIcon}></div>\n <span>Ready</span>\n </div>\n ) : (\n <div class=\"status-indicator\">\n <div class=\"spinner-inline\" innerHTML={RefreshIcon}></div>\n </div>\n )}\n </div>\n </div>\n\n <div slot=\"footer\" style={{display: 'none'}} />\n </verdocs-dialog>\n );\n }\n}\n","@import '../../../theme.scss';\n\nverdocs-envelope-document-page {\n width: 100%;\n position: relative;\n\n .verdocs-envelope-document-page-layer {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n box-shadow: 0 0 10px 5px #0000000f;\n\n &.img {\n width: 100%;\n }\n }\n}\n","// NOTE: This component does not have a story because it's not intended for external use.\n\nimport {getEnvelopeDocumentPageDisplayUri, VerdocsEndpoint} from '@verdocs/js-sdk';\nimport {Component, h, Host, Prop, Event, EventEmitter, State, Element} from '@stencil/core';\nimport {IDocumentPageInfo, IPageLayer} from '../../../utils/Types';\nimport {throttle} from '../../../utils/utils';\n\n/**\n * Represents one document page. This is primarily a layout container used to coordinate positions of\n * page-related layers such as the page itself, signature fields, etc. It is not intended to be used\n * on its own as an individual component.\n */\n@Component({\n tag: 'verdocs-envelope-document-page',\n styleUrl: 'verdocs-envelope-document-page.scss',\n shadow: false,\n})\nexport class VerdocsEnvelopeDocumentPage {\n @Element() container: HTMLElement;\n private resizeObserver: ResizeObserver;\n\n /**\n * The endpoint to load from.\n */\n @Prop() endpoint: VerdocsEndpoint = VerdocsEndpoint.getDefault();\n\n /**\n * The ID of the envelope the document is for.\n */\n @Prop() envelopeId: string = '';\n\n /**\n * The ID of the document to display.\n */\n @Prop() documentId: string = '';\n\n /**\n * The page number being rendered. (Reminder: page numbers are 1-based.)\n */\n @Prop() pageNumber: number = 1;\n\n /**\n * The \"virtual\" width of the page canvas. Defaults to 612 which at 72dpi is 8.5\" wide. This is used to compute\n * the aspect ratio of the final rendered element when scaling up/down.\n */\n @Prop() virtualWidth: number = 612;\n\n /**\n * The \"virtual\" height of the page canvas. Defaults to 792 which at 72dpi is 11\" tall. This is used to compute\n * the aspect ratio of the final rendered element when scaling up/down.\n */\n @Prop({mutable: true}) virtualHeight: number = 792;\n\n /**\n * The layers that will be rendered. The DOM structure will be a DIV container with one child DIV for each layer.\n * The parent DIV will have a unique ID, and each child DIV will have that ID with the layer name appended, e.g.\n * if `pages` was ['page', 'fields'] the structure will be:\n *\n * ```\n * <div id=\"verdocs-envelope-document-page-ker2fr1p9\">\n * <div id=\"verdocs-envelope-document-page-ker2fr1p9-page\"></div>\n * <div id=\"verdocs-envelope-document-page-ker2fr1p9-fields\"></div>\n * </div>\n * ```\n */\n @Prop() layers: IPageLayer[] = [{name: 'page', type: 'canvas'}];\n\n @Prop() type: 'original' | 'filled' | 'certificate' = 'original';\n\n /**\n * Fired when a page has been rendered. This is also fired when the page is resized.\n */\n @Event() pageRendered: EventEmitter<IDocumentPageInfo>;\n\n @State() containerId = `verdocs-envelope-document-page-${Math.random().toString(36).substring(2, 11)}`;\n\n @State() renderedWidth: number = this.virtualWidth;\n @State() renderedHeight: number = this.virtualHeight;\n @State() naturalWidth: number = this.virtualWidth;\n @State() naturalHeight: number = this.virtualHeight;\n @State() aspectRatio: number = this.virtualWidth / this.virtualHeight;\n\n @State() skipFirstNotification = true;\n\n @State() pageDisplayUri = 'https://verdocs-public-assets.s3.amazonaws.com/page-loading-placeholder.png';\n\n async componentWillLoad() {\n this.pageDisplayUri = await getEnvelopeDocumentPageDisplayUri(this.endpoint, this.documentId, this.pageNumber, this.type);\n }\n\n componentDidLoad() {\n this.resizeObserver = new ResizeObserver(\n throttle(entries => {\n for (const entry of entries) {\n const renderedWidth = entry.contentRect.width;\n this.renderedWidth = renderedWidth;\n this.renderedHeight = this.virtualHeight * (renderedWidth / this.virtualWidth);\n }\n\n this.notifyRenderedSize();\n }, 100),\n );\n\n this.resizeObserver.observe(this.container);\n }\n\n disconnectedCallback() {\n this.resizeObserver?.disconnect();\n }\n\n // Left here for documentation purposes in case we find an edge case where this isn't true. But we apparently don't need this.\n // When we add the resize observer it will always be triggered at least once so notifying here as well is just a dupe.\n // componentDidRender() {\n // this.notifyRenderedSize();\n // }\n\n notifyRenderedSize() {\n // We skip one notification because by default we will always get at least two, one when rendering the initial size\n // and a second once we're able to compute the scale size, when the resizeObserver sets renderedWidth/renderedHeight.\n if (this.skipFirstNotification) {\n this.skipFirstNotification = false;\n return;\n }\n\n this.pageRendered.emit({\n // container: this.container,\n containerId: this.containerId,\n documentId: this.documentId,\n pageNumber: this.pageNumber,\n virtualWidth: this.virtualWidth,\n virtualHeight: this.virtualHeight,\n renderedWidth: this.renderedWidth,\n renderedHeight: this.renderedHeight,\n naturalWidth: this.naturalWidth,\n naturalHeight: this.naturalHeight,\n aspectRatio: this.aspectRatio,\n xScale: this.renderedWidth / this.virtualWidth,\n yScale: this.renderedHeight / this.virtualHeight,\n });\n }\n\n render() {\n const height = `${this.renderedHeight}px`;\n\n return (\n <Host id={`${this.containerId}`} style={{height, flex: `0 0 ${height}`}}>\n {this.layers.map(layer =>\n layer.type === 'div' ? (\n <div class=\"verdocs-envelope-document-page-layer\" id={`${this.containerId}-${layer.name}`} style={{height}} />\n ) : this.pageDisplayUri ? (\n <img\n class=\"verdocs-envelope-document-page-layer img\"\n id={`${this.containerId}-${layer.name}`}\n src={this.pageDisplayUri}\n alt={`Page ${this.pageNumber}`}\n aria-hidden={true}\n loading=\"lazy\"\n onLoad={(e: any) => {\n // Note that all we really care about is the aspect ratio. We track the natural Width and Height but they aren't really that\n // useful as individual values. The image will already have been scaled down to fit a DIV for display (100%, auto height).\n // Builder places fields offset into the rendered display area, not the original document's dimensions. So its X/Y values\n // for a field are based on the responsive Web view the Template editor was seeing. The IMG was scaled down there in the\n // exact same way, so we just honor it. We capture the natural width and height here more as information. Then we use the\n // aspect ratio to adjust the \"virtual\" height in case the page is not 8.5\"x11\".\n // TODO: Store this in the DB with each page.\n this.naturalWidth = e.target.naturalWidth;\n this.naturalHeight = e.target.naturalHeight;\n this.aspectRatio = this.naturalWidth / this.naturalHeight;\n this.virtualHeight = this.virtualWidth / this.aspectRatio;\n this.renderedHeight = e.target.offsetWidth / this.aspectRatio;\n }}\n />\n ) : (\n <div></div>\n ),\n )}\n </Host>\n );\n }\n}\n","@import '../../../theme.scss';\n\nverdocs-question-dialog {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n position: fixed;\n box-sizing: border-box;\n font-family: $primary-font;\n\n &.closed {\n display: none;\n }\n\n textarea {\n box-sizing: border-box;\n border: 1px solid $border-color;\n border-radius: 4px;\n background: $verdocs-grey-4;\n color: #000;\n width: 100%;\n font-size: 14px;\n padding: 9px;\n outline: none;\n }\n\n .heading .title {\n font-size: 18px;\n }\n\n .buttons {\n gap: 20px;\n display: flex;\n margin-top: 24px;\n flex-direction: row;\n justify-content: center;\n\n button {\n flex: 1;\n border: 0;\n height: 38px;\n display: flex;\n color: #ffffff;\n font-size: 14px;\n cursor: pointer;\n border-radius: 6px;\n align-items: center;\n justify-content: center;\n\n &.cancel {\n background-color: $verdocs-button-purple;\n }\n\n &.ok {\n background-color: $verdocs-button-green;\n\n &.single {\n max-width: 150px;\n }\n }\n\n &:disabled {\n background-color: $verdocs-button-disabled;\n }\n }\n }\n}\n","import {Component, h, Event, EventEmitter, State, Prop} from '@stencil/core';\n\nconst QuestionIcon = `<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>`;\n\n/**\n * Display a simple text dialog box with an Ok button. This adds a partially-transparent overlay and screen-centered dialog\n * box with a message and optional header/title. An OK button is shown that will dismiss the message.\n * It can also be dismissed by clicking the background overlay.\n */\n@Component({\n tag: 'verdocs-question-dialog',\n styleUrl: 'verdocs-question-dialog.scss',\n})\nexport class VerdocsQuestionDialog {\n @Prop({mutable: true}) question: string = '';\n\n /**\n * Event fired when the user clicks the OK button.\n */\n @Event({composed: true}) next: EventEmitter<{question: string}>;\n\n /**\n * Event fired when Cancel is pressed. This is called exit to avoid conflicts with the JS-reserved \"cancel\" event name.\n */\n @Event({composed: true}) exit: EventEmitter;\n\n @State() closed = false;\n\n handleOk() {\n this.next.emit({question: this.question});\n }\n\n handleCancel() {\n this.exit.emit();\n }\n\n // We need a separate event handler for clicking the background because it can receive events \"through\" other child components\n handleDismiss(e: any) {\n this.closed = true;\n if (e.target.className === 'background-overlay') {\n e.preventDefault();\n this.exit.emit();\n }\n }\n\n render() {\n return (\n <verdocs-dialog onExit={e => this.handleDismiss(e)}>\n <div slot=\"heading\" class=\"heading\">\n <div class=\"icon\" innerHTML={QuestionIcon} />\n\n <div class=\"title\">Ask the Sender a Question</div>\n </div>\n\n <div slot=\"content\" class=\"content\">\n <textarea name=\"question\" rows={6} placeholder=\"Enter your question...\" onInput={(e: any) => (this.question = e.target.value)}>\n {this.question}\n </textarea>\n </div>\n\n <div class=\"footer\" slot=\"footer\">\n <div class=\"buttons\">\n <button class=\"cancel\" onClick={() => this.handleCancel()}>\n Cancel\n </button>\n <button class={'ok'} onClick={() => this.handleOk()}>\n OK\n </button>\n </div>\n </div>\n </verdocs-dialog>\n );\n }\n}\n","@import '../../../theme.scss';\n\nverdocs-sign-footer {\n left: 0;\n right: 0;\n bottom: 0;\n height: 48px;\n display: flex;\n color: #616161;\n position: fixed;\n font-size: 12px;\n padding: 0 24px;\n align-items: center;\n flex-direction: row;\n background: #ffffff;\n container-type: inline-size;\n border-top: 1px solid #e0e0e0;\n justify-content: space-between;\n font-family: $verdocs-primary-font;\n transition: 0.5s cubic-bezier(0.35, 0, 0.25, 1);\n\n a {\n color: #616161;\n cursor: pointer;\n text-decoration: none;\n border-bottom: 1px dotted #616161;\n }\n\n &.loading {\n display: none;\n }\n\n .powered-by {\n white-space: nowrap;\n }\n\n .buttons {\n flex: 0;\n gap: 16px;\n display: flex;\n flex-direction: row;\n white-space: nowrap;\n align-items: center;\n\n button {\n gap: 4px;\n border: none;\n display: flex;\n outline: none;\n cursor: pointer;\n flex-direction: row;\n align-items: center;\n background: transparent;\n }\n\n div {\n gap: 4px;\n display: flex;\n flex-direction: row;\n align-items: center;\n }\n }\n\n .links {\n flex: 0;\n gap: 8px;\n display: flex;\n flex-direction: row;\n white-space: nowrap;\n }\n\n &.just-buttons {\n .buttons {\n flex: 1;\n justify-content: center;\n }\n }\n\n @container (max-width: 720px) {\n &.has-buttons .powered-by {\n display: none;\n }\n }\n\n @container (max-width: 540px) {\n &.no-buttons .powered-by {\n display: none;\n }\n\n &.has-buttons .links {\n display: none;\n }\n\n .buttons {\n flex: 1;\n justify-content: center;\n }\n }\n}\n","import {IEnvelope} from '@verdocs/js-sdk';\nimport {Component, h, Event, EventEmitter, Host, Prop, State} from '@stencil/core';\nimport {getEnvelope, VerdocsEndpoint} from '@verdocs/js-sdk';\nimport {SDKError} from '../../../utils/errors';\nimport {Store} from '../../../utils/Datastore';\n\nconst QuestionIcon = `<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>`;\nconst DeclineIcon = `<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>`;\nconst SaveIcon = `<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>`;\n\n/**\n * Typically presented by the `verdocs-sign` component. Displays a footer toolbar\n * with a few convenience functions for the envelope recipient to use.\n */\n@Component({\n tag: 'verdocs-sign-footer',\n styleUrl: 'verdocs-sign-footer.scss',\n shadow: false,\n})\nexport class VerdocsSignFooter {\n private envelopeListenerId = null;\n\n /**\n * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.\n */\n @Prop() endpoint: VerdocsEndpoint = VerdocsEndpoint.getDefault();\n\n /**\n * The envelope ID to render. Set ONE OF templateId or envelopeId. If both are set, envelopeId will be ignored.\n */\n @Prop() envelopeId: string = '';\n\n /**\n * If the recipient is \"done,\" some buttons will be hidden.\n */\n @Prop() isDone = false;\n\n /**\n * Event fired if the user asks the sender a question. The parent component is responsible for handling this.\n */\n @Event({composed: true}) askQuestion: EventEmitter<{question: string}>;\n\n /**\n * Event fired if the user asks the sender a question. The parent component is responsible for handling this.\n */\n @Event({composed: true}) decline: EventEmitter;\n\n /**\n * Event fired if the user asks the sender a question. The parent component is responsible for handling this.\n */\n @Event({composed: true}) finishLater: EventEmitter;\n\n /**\n * Event fired if an error occurs. The event details will contain information about the error. Most errors will\n * terminate the process, and the calling application should correct the condition and re-render the component.\n */\n @Event({composed: true}) sdkError: EventEmitter<SDKError>;\n\n /**\n * Event fired when the envelope is updated in any way. May be used for tasks such as cache invalidation or reporting to other systems.\n */\n // @Event({composed: true}) envelopeUpdated: EventEmitter<{endpoint: VerdocsEndpoint; envelope: IEnvelope; event: string}>;\n\n @State() askingQuestion = false;\n @State() declinine = false;\n @State() envelope: IEnvelope | null = null;\n\n async componentWillLoad() {\n try {\n // NOTE: The caller must have a signing session already active and shared to us via\n // the endpoint property.\n if (!this.envelopeId) {\n console.log(`[FOOTER] Missing required envelope ID ${this.envelopeId}`);\n return;\n }\n\n this.listenToEnvelope();\n } catch (e) {\n console.log('[FOOTER] Error loading envelope', e);\n this.sdkError?.emit(new SDKError(e.message, e.response?.status, e.response?.data));\n }\n }\n\n disconnectedCallback() {\n this.unlistenToEnvelope();\n }\n\n async listenToEnvelope() {\n console.log('[FOOTER] Loading envelope', this.envelopeId);\n this.unlistenToEnvelope();\n Store.subscribe(\n 'envelopes',\n this.envelopeId,\n () => getEnvelope(this.endpoint, this.envelopeId),\n false,\n (envelope: IEnvelope) => {\n this.envelope = envelope;\n },\n );\n }\n\n unlistenToEnvelope() {\n if (this.envelopeListenerId) {\n Store.store.delListener(this.envelopeListenerId);\n this.envelopeListenerId = null;\n }\n }\n\n // handleRecipientAction(recipient: IRecipient, id: string) {\n // console.log('[SIDEBAR] Recipient action', id, recipient);\n // switch (id) {\n // case 'update':\n // this.showUpdateDialog = recipient.role_name;\n // break;\n //\n // case 'reminder':\n // remindRecipient(this.endpoint, this.envelopeId, recipient.role_name)\n // .then(() => {\n // VerdocsToast('Reminder Sent', {style: 'success'});\n // })\n // .catch(e => {\n // console.log('[SIDEBAR] Error resending invitation', e);\n // VerdocsToast('Error resending invitation: ' + e.message, {style: 'error'});\n // });\n // break;\n //\n // case 'reinvite':\n // this.showReinviteDialog = recipient.role_name;\n // break;\n //\n // case 'inperson':\n // this.showRecipientDialog = recipient.role_name;\n // break;\n //\n // case 'modify':\n // VerdocsToast('This feature will be enabled in a future release. Please try again later.', {style: 'info'});\n // break;\n //\n // case 'details':\n // VerdocsToast('This feature will be enabled in a future release. Please try again later.', {style: 'info'});\n // break;\n // }\n // }\n\n // handleUpdateRecipient(originalRecipient: IRecipient, updatedRecipient: IRecipient) {\n // console.log('Updating recipient', originalRecipient, updatedRecipient);\n // const fields: any = {};\n // if (updatedRecipient.email !== originalRecipient.email) {\n // fields.email = updatedRecipient.email;\n // }\n // if (updatedRecipient.phone !== originalRecipient.phone) {\n // fields.phone = updatedRecipient.phone;\n // }\n // if (updatedRecipient.message !== originalRecipient.message) {\n // fields.message = updatedRecipient.message;\n // }\n // if (updatedRecipient.first_name !== originalRecipient.first_name) {\n // fields.first_name = updatedRecipient.first_name;\n // }\n // if (updatedRecipient.last_name !== originalRecipient.last_name) {\n // fields.last_name = updatedRecipient.last_name;\n // }\n //\n // if (Object.keys(fields).length > 0) {\n // updateRecipient(this.endpoint, this.envelopeId, originalRecipient.role_name, fields)\n // .then(r => {\n // // TODO: Reload the envelope?\n // VerdocsToast('Recipient updated', {style: 'success'});\n // console.log('[SIDEBAR] Updated recipient', r);\n // Store.getEnvelope(this.endpoint, this.envelopeId, true);\n // this.showUpdateDialog = '';\n // })\n // .catch(e => {\n // VerdocsToast(e.response.data.error, {style: 'error'});\n // this.showUpdateDialog = '';\n // });\n // } else {\n // this.showUpdateDialog = '';\n // }\n // }\n\n render() {\n const hasPoweredBy = !!this.envelope?.organization?.powered_by_label;\n const hasLinks = !!this.envelope?.organization?.terms_use_url || !!this.envelope?.organization?.privacy_policy_url;\n const hasButtons = !this.isDone;\n\n return (\n <Host class={{'has-buttons': hasButtons, 'no-buttons': !hasButtons, 'has-powered-by': hasPoweredBy, 'has-links': hasLinks, 'just-buttons': !hasPoweredBy && !hasLinks}}>\n {this.envelope?.organization?.powered_by_label && (\n <div class=\"powered-by\">\n {this.envelope?.organization?.powered_by_url ? (\n <a href={this.envelope?.organization?.powered_by_url} target=\"_blank\" rel=\"noopener noreferrer\">\n <span>{this.envelope?.organization?.powered_by_label}</span>\n </a>\n ) : (\n <span>{this.envelope?.organization?.powered_by_label}</span>\n )}\n </div>\n )}\n\n {!this.isDone && (\n <div class=\"buttons\">\n <button onClick={() => (this.askingQuestion = true)}>\n <span innerHTML={QuestionIcon} />\n Ask Sender a Question\n </button>\n <button onClick={() => this.decline?.emit()}>\n <span innerHTML={DeclineIcon} />\n Decline Signing\n </button>\n <button onClick={() => this.finishLater?.emit()}>\n <span innerHTML={SaveIcon} />\n Finish Later\n </button>\n </div>\n )}\n\n <div class=\"links\">\n {this.envelope?.organization?.terms_use_url && (\n <a href={this.envelope?.organization?.terms_use_url} target=\"_blank\" rel=\"noopener noreferrer\">\n <span>Terms of Use</span>\n </a>\n )}\n {this.envelope?.organization?.privacy_policy_url && (\n <a href={this.envelope?.organization?.privacy_policy_url} target=\"_blank\" rel=\"noopener noreferrer\">\n <span>Privacy Policy</span>\n </a>\n )}\n </div>\n\n {this.askingQuestion && (\n <verdocs-question-dialog\n onNext={e => {\n this.askQuestion?.emit({question: e.detail.question});\n this.askingQuestion = false;\n }}\n onExit={() => (this.askingQuestion = false)}\n />\n )}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -227,18 +227,18 @@ const VerdocsEnvelopesList = class {
227
227
  });
228
228
  }
229
229
  render() {
230
- return (index.h(index.Host, { key: '670d91a559776494b57004fc08016e789469a1c7' }, index.h("div", { key: 'be4836499937e06836195f6101a3583cd9f197c0', class: "header" }, index.h("div", { key: '35e6eda21ffd20a5201577dd16150881e4564902', class: "filter" }, index.h("verdocs-text-input", { key: '0720e5c8c93c45ca309d3d0bc30863bde154c60f', id: "verdocs-filter-name", value: this.match, clearable: true, autocomplete: "off", placeholder: "Filter by Name, Recipient, or Field...", onFocusout: (e) => {
230
+ return (index.h(index.Host, { key: '611433a9feffcaca1874a94fce731f4d2898401f' }, index.h("div", { key: 'eb108133035825176f5b6013737ad80d54d7c8f3', class: "header" }, index.h("div", { key: '49162b67701c65cb8fadd468110b9feacc92f9d8', class: "filter" }, index.h("verdocs-text-input", { key: '2e24ffdd068714d876f4df52db13c79ecf94bc91', id: "verdocs-filter-name", value: this.match, clearable: true, autocomplete: "off", placeholder: "Filter by Name, Recipient, or Field...", onFocusout: (e) => {
231
231
  var _a;
232
232
  // We don't locally filter envelopes because there are too many fields to match against efficiently.
233
233
  this.match = e.target.value.trim();
234
234
  (_a = this.changeMatch) === null || _a === void 0 ? void 0 : _a.emit(this.match);
235
- } })), index.h("verdocs-quick-filter", { key: '365c5b3a488525b76164521da851a9113e36bb40', label: "View", value: this.view, options: ViewFilters, onOptionSelected: e => {
235
+ } })), index.h("verdocs-quick-filter", { key: '901a8fa8232ae5b916ab89ae3e6858282e8ecb66', label: "View", value: this.view, options: ViewFilters, onOptionSelected: e => {
236
236
  this.view = e.detail.value;
237
- } }), this.view === 'all' && (index.h("verdocs-quick-filter", { key: '9823ac419c1e7229e51323628c77e9ef9c7d78db', label: "Status", value: this.status, options: StatusFilters, onOptionSelected: e => {
237
+ } }), this.view === 'all' && (index.h("verdocs-quick-filter", { key: 'a096a0f1cb7e5e670d222e37beaa2c7f88c75bea', label: "Status", value: this.status, options: StatusFilters, onOptionSelected: e => {
238
238
  this.status = e.detail.value;
239
- } })), this.view === 'all' && (index.h("verdocs-quick-filter", { key: 'f49ba86610fc8812d458c5c86479956dea52e03c', label: "Sort By", value: this.sort, options: SortFilters, onOptionSelected: e => {
239
+ } })), this.view === 'all' && (index.h("verdocs-quick-filter", { key: '0d9ea48f80aa50db5e0cf01dbafcd8165a69aed6', label: "Sort By", value: this.sort, options: SortFilters, onOptionSelected: e => {
240
240
  this.sort = e.detail.value;
241
- } })), this.loading && index.h("verdocs-spinner", { key: 'a88edd64d6927db773914471f4efebd349218bcd', mode: "dark", size: 24 }), index.h("div", { key: 'fb72473467e8e81aa79ce5dd9b4144d1ea52f230', style: { display: 'flex', flex: '1' } }), this.selectedEnvelopes.length > 0 && index.h("verdocs-button", { key: '49beca7f63347b970fe41552886856e47c1c8cb0', label: `Download (${this.selectedEnvelopes.length})`, onClick: () => this.handleDownload() })), this.envelopes.map(envelope => {
241
+ } })), this.loading && index.h("verdocs-spinner", { key: 'd1ae1ff162a87e65203b34b58aef048d4b4dedd3', mode: "dark", size: 24 }), index.h("div", { key: 'f5130409e9986a6f9b064712be38f710e9ce20ec', style: { display: 'flex', flex: '1' } }), this.selectedEnvelopes.length > 0 && index.h("verdocs-button", { key: 'f6be39ddf8ce0cfdb2f545df8c099b25068c1218', label: `Download (${this.selectedEnvelopes.length})`, onClick: () => this.handleDownload() })), this.envelopes.map(envelope => {
242
242
  var _a;
243
243
  const recipientsWithActions = jsSdk.getRecipientsWithActions(envelope);
244
244
  const userCanCancel = jsSdk.userCanCancelEnvelope(this.endpoint.profile, envelope);
@@ -279,7 +279,7 @@ const VerdocsEnvelopesList = class {
279
279
  break;
280
280
  }
281
281
  } }))));
282
- }), !this.initiallyLoaded && (index.h("div", { key: '6f6c42bf8500f88e062bce7f43b241523d2e9cfe', style: { width: '100%' } }, jsSdk.integerSequence(0, this.rowsPerPage).map(() => (index.h("div", { class: "envelope-placeholder" }))))), this.initiallyLoaded && !this.envelopes.length && index.h("div", { key: 'eea9bc23011bb03621c74dba0fc7c8794c176012', class: "empty-text" }, "No matching envelopes found. Please adjust your filters and try again."), this.initiallyLoaded && this.envelopes.length && this.showPagination ? (index.h("div", { style: { marginTop: '20px' } }, index.h("verdocs-pagination", { selectedPage: this.selectedPage, perPage: this.rowsPerPage, itemCount: this.count, onSelectPage: e => {
282
+ }), !this.initiallyLoaded && (index.h("div", { key: '7a33fbdb5c41a07c341cda66c2b4a4468814f8b6', style: { width: '100%' } }, jsSdk.integerSequence(0, this.rowsPerPage).map(() => (index.h("div", { class: "envelope-placeholder" }))))), this.initiallyLoaded && !this.envelopes.length && index.h("div", { key: '4413485f67724c33e109b625cb24e8d820a2926c', class: "empty-text" }, "No matching envelopes found. Please adjust your filters and try again."), this.initiallyLoaded && this.envelopes.length && this.showPagination ? (index.h("div", { style: { marginTop: '20px' } }, index.h("verdocs-pagination", { selectedPage: this.selectedPage, perPage: this.rowsPerPage, itemCount: this.count, onSelectPage: e => {
283
283
  this.selectedPage = e.detail.selectedPage;
284
284
  } }))) : (index.h("div", null))));
285
285
  }
@@ -1831,7 +1831,7 @@ const VerdocsUploadDialog = class {
1831
1831
  render() {
1832
1832
  var _a;
1833
1833
  const existingFile = ((_a = this.existingFile) === null || _a === void 0 ? void 0 : _a.name) ? this.existingFile : null;
1834
- return (index.h(index.Host, { key: 'afb8059122df5f070ae3ded2cbc5fd402ddf4c30' }, index.h("div", { key: '0acdbe273ac24e4026e1d21637eedc45b04096ff', class: "background-overlay", onClick: e => this.handleDismiss(e) }, index.h("div", { key: '8714ae9328f8acfc08b1cfddacaf160ff1ba27f4', class: "upload-dialog-content" }, index.h("div", { key: 'c26e45a11d45f80517ea5862af39e0cafb534523', class: "heading" }, "Upload attachment"), this.selectedFiles.length < 1 && existingFile && (index.h(index.Fragment, { key: '34eccf225b38f37cb542d6bea63a792a61e5c2e4' }, index.h("div", { key: '19bc692a2a352a60448481f5fab214a9a733d560', class: "current-label" }, "Current Attachment"), index.h("div", { key: '18ec31779f257a11303dca40508eb6af155e94ae', class: "attachments", style: { marginTop: '0' } }, index.h("div", { key: 'f282e58bac16e5cf2ddcecd5969ce314c5747e92', class: "attachment" }, index.h("div", { key: '9dcafcd10b951a0b2ed7756feb5b1d60dd7ccc97', class: "icon", innerHTML: PaperclipIcon }), index.h("div", { key: '95e6448c10b17130eef74cb3f88236764e4ff94d', class: "name" }, existingFile.name), index.h("div", { key: '70b3fa880b75d0ec311e29660ee482b47427f41e', class: "icon trash", innerHTML: TrashIcon, onClick: () => (this.confirmDelete = true) }))))), this.selectedFiles.length < 1 && !existingFile && (index.h("div", { key: '53ba2d4e6a992c69996001137e36db16f527868b', class: { 'drop-target': true, 'dragging-over': this.draggingOver }, onDragOver: e => this.handleDragOver(e), onDragLeave: e => this.handleDragLeave(e), onDrop: e => this.handleDrop(e) }, index.h("p", { key: '1a2326c8f41cf429ea8d206531118762f68eb37b' }, "Drag and drop your files here"), index.h("p", { key: 'bf4153d3624e0cca52ce3499c5d6a8009d0eb909', class: "subscript" }, "Supported files: PDF, Word, JPG, PNG"), index.h("verdocs-button", { key: '411c2e054887771ebfb1ebcd192247d51a011d65', label: !!existingFile ? 'Replace files' : 'Select files', onClick: () => this.handleSelectFile() }), index.h("input", { key: 'ff57cbb18b9c9852bb09b7e82303768d52690caa', type: "file", ref: el => (this.fileInput = el), style: { display: 'none' }, accept: ".pdf,application/pdf,.doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,image/*", onChange: () => this.handleFileChange() }))), this.selectedFiles.length > 0 && (index.h("div", { key: '4560c6fbd51be1e385081d0e5da1b5f028a2fe4c', class: "attachments" }, this.selectedFiles.map((file, index$1) => (index.h("div", { class: "attachment" }, index.h("div", { class: "icon", innerHTML: PaperclipIcon }), index.h("div", { class: "name" }, file.name), index.h("div", { class: "icon trash", innerHTML: TrashIcon, onClick: () => this.handleRemoveAttachment(index$1) })))))), !!this.errorMessage && index.h("div", { key: '496b1953cce011c1be512ae704b86a99b672ef32', class: "error" }, this.errorMessage), index.h("div", { key: '1fe1a4d1879c7d97e2cb0613aed65eb4f6134319', class: "buttons" }, index.h("verdocs-button", { key: '3d5b3360099b341ffa3873a723523b237b5fd99c', label: "Cancel", variant: "outline", onClick: () => this.handleCancel() }), index.h("verdocs-button", { key: 'aa176cfae4504f73adb79eb55b6cebe369f0e509', label: "Upload", onClick: () => this.handleDone(), disabled: !!this.errorMessage || this.selectedFiles.length < 1 })))), this.confirmDelete && (index.h("verdocs-ok-dialog", { key: '7e05ca66affc86277df7e10efda054121a8f5787', heading: "Delete Attachment?", message: "Are you sure you wish to delete this attachment? This action cannot be undone.", showCancel: true, onExit: e => {
1834
+ return (index.h(index.Host, { key: '306f146d583be66036d5b7d770f7d82c9c84226a' }, index.h("div", { key: 'd1cf6865c79f5e30ad695562092d48e5c28257b8', class: "background-overlay", onClick: e => this.handleDismiss(e) }, index.h("div", { key: 'cdc21a795cc92991362567d41ea053244b4dc87b', class: "upload-dialog-content" }, index.h("div", { key: 'abbc222d421f853e5fcc8614bd4d16248fb22fd1', class: "heading" }, "Upload attachment"), this.selectedFiles.length < 1 && existingFile && (index.h(index.Fragment, { key: '54718ac9d46bc13f96c022a52f527c3454383ee3' }, index.h("div", { key: '81387ab1ceb1962a94ba5475a2a24316203bae35', class: "current-label" }, "Current Attachment"), index.h("div", { key: '54053e1a34ab2559fecc51534eec3130606287b5', class: "attachments", style: { marginTop: '0' } }, index.h("div", { key: '2d5d390d96a0f52196ac54270380969e01b54c52', class: "attachment" }, index.h("div", { key: 'cc3e5021e989c0b17e07d8c7440aa478f3563212', class: "icon", innerHTML: PaperclipIcon }), index.h("div", { key: '0c32341f9e25013740b526cff1bd7ae4b2a6c2da', class: "name" }, existingFile.name), index.h("div", { key: '678acb7ec4a54ff404f0ce956daf1dc9eb16fbf5', class: "icon trash", innerHTML: TrashIcon, onClick: () => (this.confirmDelete = true) }))))), this.selectedFiles.length < 1 && !existingFile && (index.h("div", { key: '43feb03a1b3be8c09d57865ef5233c16d707f520', class: { 'drop-target': true, 'dragging-over': this.draggingOver }, onDragOver: e => this.handleDragOver(e), onDragLeave: e => this.handleDragLeave(e), onDrop: e => this.handleDrop(e) }, index.h("p", { key: '967aa5e1431e83a1a6477af3ecdac6545cf9106e' }, "Drag and drop your files here"), index.h("p", { key: 'f6fdc2a5c2ef9d8c3394c86608fff9012f6521d0', class: "subscript" }, "Supported files: PDF, Word, JPG, PNG"), index.h("verdocs-button", { key: '3e0d7b45fe0d43d4d082fc16871d69002125b389', label: !!existingFile ? 'Replace files' : 'Select files', onClick: () => this.handleSelectFile() }), index.h("input", { key: '90b754371e05c563272fcc667cde5c75cf23b212', type: "file", ref: el => (this.fileInput = el), style: { display: 'none' }, accept: ".pdf,application/pdf,.doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,image/*", onChange: () => this.handleFileChange() }))), this.selectedFiles.length > 0 && (index.h("div", { key: '6f95392345e0c0ba776ca45427a3eeb24e86ea4c', class: "attachments" }, this.selectedFiles.map((file, index$1) => (index.h("div", { class: "attachment" }, index.h("div", { class: "icon", innerHTML: PaperclipIcon }), index.h("div", { class: "name" }, file.name), index.h("div", { class: "icon trash", innerHTML: TrashIcon, onClick: () => this.handleRemoveAttachment(index$1) })))))), !!this.errorMessage && index.h("div", { key: 'c302c11758e79265b6624ca64b803a49b05ecdc2', class: "error" }, this.errorMessage), index.h("div", { key: '70ef293b37d2f59d4a194f103e199f7c3e5aa7bf', class: "buttons" }, index.h("verdocs-button", { key: '3aca912689dbeac16288acdf97ede66b2fda50cd', label: "Cancel", variant: "outline", onClick: () => this.handleCancel() }), index.h("verdocs-button", { key: 'f96fa3dc4131af6fd49b31115727bb853d3ff7e8', label: "Upload", onClick: () => this.handleDone(), disabled: !!this.errorMessage || this.selectedFiles.length < 1 })))), this.confirmDelete && (index.h("verdocs-ok-dialog", { key: '103761442ef22bd730c505115c4cbe69fcbf36dd', heading: "Delete Attachment?", message: "Are you sure you wish to delete this attachment? This action cannot be undone.", showCancel: true, onExit: e => {
1835
1835
  // So we don't close the upload dialog
1836
1836
  e.preventDefault();
1837
1837
  e.stopPropagation();
@@ -220,7 +220,7 @@ const VerdocsInitialDialog = class {
220
220
  }
221
221
  */
222
222
  render() {
223
- return (index.h(index.Host, { key: '0b6dd491d0af99d1abe6292f4a6d012a71cd62c7', onClick: e => this.handleCancel(e) }, index.h("div", { key: '3d2d6486887d049ba2c5f60197aa5f476b922fde', class: "dialog" }, index.h("div", { key: '186ef3be7f6026cad0bfaa244cd98d8c7183c169', class: "heading" }, "Create Your Initial"), index.h("div", { key: 'c5e37a3ddbdcac2db94cd56d41db0ecdf58df624', class: "content" }, index.h("verdocs-text-input", { key: 'ed1c4cc75029610ba03931449e37b7fc3aa437ad', placeholder: "Initials...", label: "Initials", value: this.enteredInitials, onInput: e => this.handleNameChange(e), onClick: e => e.stopPropagation() }), index.h("div", { key: '1597920974326992c60180a83c63b9ae54280113', class: "as-shown" }, "As shown on driver's license or govt. ID card."), this.fontLoaded ? index.h("canvas", { ref: el => (this.canvasElement = el) }) : index.h("div", { style: { display: 'none' } }), index.h("div", { key: 'd388ed076550e566c711e15a832bd954dd80ba17', 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 \u2014 just the same as a pen-and-paper signature or initial."), index.h("div", { key: '1bab8f70eaa8b7bb7eabfd5a64b837ada9879733', class: "buttons" }, index.h("verdocs-button", { key: '37864544ac1d1b57c67e316cfe1bf524286d5aae', label: "CANCEL", size: "normal", variant: "outline", onClick: e => this.handleCancel(e) }), index.h("verdocs-button", { key: '586ce5016c2b9b0eaee12c0bfe1757fbffad564f', label: "Adopt & Sign", size: "normal", onClick: e => this.handleAdopt(e) }))))));
223
+ return (index.h(index.Host, { key: 'ae9dcf54059a7234ded4498b3965ad8a85e0051f', onClick: e => this.handleCancel(e) }, index.h("div", { key: '74d0274fcf4f9a4c4fff63df263215906d091019', class: "dialog" }, index.h("div", { key: 'd7d9b3d881e9985c1856cbb48f36c13c22c96d51', class: "heading" }, "Create Your Initial"), index.h("div", { key: '77891434cf3c6dfb72583a366c73fbe718f3df55', class: "content" }, index.h("verdocs-text-input", { key: 'b563cd6c996cab38ed00b763a94ba15966a0dd46', placeholder: "Initials...", label: "Initials", value: this.enteredInitials, onInput: e => this.handleNameChange(e), onClick: e => e.stopPropagation() }), index.h("div", { key: 'b8b94dbd7da516dc16647857535234fc4bc09490', class: "as-shown" }, "As shown on driver's license or govt. ID card."), this.fontLoaded ? index.h("canvas", { ref: el => (this.canvasElement = el) }) : index.h("div", { style: { display: 'none' } }), index.h("div", { key: '9305001c42ef179fd2e9200457b2d5e39dbb861e', 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 \u2014 just the same as a pen-and-paper signature or initial."), index.h("div", { key: 'df368934a000f369217d02dfce8fea68aba87a99', class: "buttons" }, index.h("verdocs-button", { key: '6312e5608fa0cee507364aad8259ab52ba89f543', label: "CANCEL", size: "normal", variant: "outline", onClick: e => this.handleCancel(e) }), index.h("verdocs-button", { key: '9e7f1cf8e2f855e761560353b363d1790f15ba09', label: "Adopt & Sign", size: "normal", onClick: e => this.handleAdopt(e) }))))));
224
224
  }
225
225
  };
226
226
  VerdocsInitialDialog.style = verdocsInitialDialogCss();
@@ -223,31 +223,31 @@ const VerdocsTemplateRoleProperties = class {
223
223
  const hasFields = (((_a = this.template) === null || _a === void 0 ? void 0 : _a.fields) || []).some(field => field.role_name === this.roleName);
224
224
  // Either all three should be empty, or all three need to be filled
225
225
  const isValid = (!this.email && !this.first_name && !this.last_name) || (jsSdk.isValidEmail(this.email) && !!this.first_name && !!this.last_name);
226
- return (index.h(index.Host, { key: 'ffbdcf7c23ed14bf001bf85dd969fee3e4018abf' }, index.h("form", { key: '10ee145cbd8b2d1035cbafe86a88c5e4e93b211f', onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, index.h("div", { key: '476268ed74137b49dc4a22159e7df0991e9644a8' }, index.h("verdocs-text-input", { key: 'dfacfb292a4bc93422f1d28166a8853d30736a71', id: "verdocs-role-name", label: "Role Name (Must be unique)", value: this.name, autocomplete: "off", disabled: hasFields, placeholder: "Role Name...", onInput: (e) => {
226
+ return (index.h(index.Host, { key: '14d2d9bb4253201a9cb659c6637960194dc7d134' }, index.h("form", { key: '09d0a10f48c8f4ca3f6b679d09c3c71ea0c0cdb9', onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, index.h("div", { key: 'b65e74e82bb7689d706ba0e56521d04fe01ae057' }, index.h("verdocs-text-input", { key: 'c7e3da4d57b096f71a4c5e49948ee0a4e0594e0c', id: "verdocs-role-name", label: "Role Name (Must be unique)", value: this.name, autocomplete: "off", disabled: hasFields, placeholder: "Role Name...", onInput: (e) => {
227
227
  this.name = e.target.value;
228
228
  this.dirty = true;
229
- } }), hasFields && index.h("div", { key: 'bcc8c63bb93ce9b81dd9b8282db9b8cd28f764b6', class: "instructions" }, "This role has fields assigned and can no longer be renamed.")), index.h("div", { key: 'edd762e1f0b0c50bb9752da44195a8fd37ad46b8' }, index.h("div", { key: 'f7cbb564016a693ed8d59da0e3b06d3f2e3013a3', class: "input-label" }, "Type:"), index.h("verdocs-select-input", { key: 'eca486e7960b077234e5a8867f972511c4a429b6', value: this.type, options: [
229
+ } }), hasFields && index.h("div", { key: '9a80102f0a04118069c2865c9295e5da3914b381', class: "instructions" }, "This role has fields assigned and can no longer be renamed.")), index.h("div", { key: '93ca24cfbc2b1f8e729c30a0726b14091695ba92' }, index.h("div", { key: '0b5eeeab4aad7e1659581eb8c17e14012d79b5e6', class: "input-label" }, "Type:"), index.h("verdocs-select-input", { key: '883b1456bad033a17023559a210f61efc17cb1ab', value: this.type, options: [
230
230
  { label: 'Signer', value: 'signer' },
231
231
  { label: 'CC', value: 'cc' },
232
232
  { label: 'Approver', value: 'approver' },
233
233
  ], onInput: (e) => {
234
234
  this.type = e.target.value;
235
235
  this.dirty = true;
236
- } })), index.h("div", { key: 'd45d4354a061453e85e993be8e6b57da104c0ad5' }, index.h("div", { key: '7b1afb527741ca786eb546bec5071078d1504433', class: "input-label" }, "Default Contact Info:"), index.h("div", { key: '6de4c8b89c7b11ea5f8ae89ff69212472375e4ac', class: "first-last" }, index.h("verdocs-text-input", { key: '8a591cc37cf7d9c2e5a211640a36a876a794590f', id: "verdocs-recipient-first", value: this.first_name, autocomplete: "off", placeholder: "First...", onInput: (e) => {
236
+ } })), index.h("div", { key: 'fec29a6add9ab2a60e4deb29ee77c851973e0517' }, index.h("div", { key: 'a18a7d1edfb673e382d76d04d833f3daf28ca26f', class: "input-label" }, "Default Contact Info:"), index.h("div", { key: '1206cab495d52ab12428dbc346126df3a2aa9c1a', class: "first-last" }, index.h("verdocs-text-input", { key: 'aa4433e84dee223043c49235c8e9feb7569707e9', id: "verdocs-recipient-first", value: this.first_name, autocomplete: "off", placeholder: "First...", onInput: (e) => {
237
237
  this.first_name = e.target.value;
238
238
  this.dirty = true;
239
- } }), index.h("verdocs-text-input", { key: 'de8ee6a8802ff5443f93d1a017609bbabb745f13', id: "verdocs-recipient-first", value: this.last_name, autocomplete: "off", placeholder: "Last...", onInput: (e) => {
239
+ } }), index.h("verdocs-text-input", { key: 'b8c1069666a4674faff0c1b72bc988cf3ed3ca9b', id: "verdocs-recipient-first", value: this.last_name, autocomplete: "off", placeholder: "Last...", onInput: (e) => {
240
240
  this.last_name = e.target.value;
241
241
  this.dirty = true;
242
- } }))), index.h("div", { key: '1a7ac3d8fab0e28d031d4bafe892fadc1ab76ac4' }, index.h("verdocs-text-input", { key: 'e11e543134ad024362e4f39f026c132e90c4ad9a', id: "verdocs-recipient-email", value: this.email, autocomplete: "off", placeholder: "Email Address...", onInput: (e) => {
242
+ } }))), index.h("div", { key: '5ea9ada6f0dac2a52b78946275603e2c99887666' }, index.h("verdocs-text-input", { key: '767135ec9d13ae00e6c1d259a6d53fbf85caeedd', id: "verdocs-recipient-email", value: this.email, autocomplete: "off", placeholder: "Email Address...", onInput: (e) => {
243
243
  this.email = e.target.value;
244
244
  this.dirty = true;
245
- } }), index.h("div", { key: '04a394d1e1f9d377da12ea565119a0d5cd68a627', style: { height: '15px' } }), index.h("div", { key: '1ff2ead2361795d3ec3e6361715d30e779fae4b8' }, index.h("verdocs-text-input", { key: '3c0d4de18bb9fd6da3ba02d70a66dfcd2306af7f', id: "verdocs-recipient-phone", value: this.phone, autocomplete: "off",
245
+ } }), index.h("div", { key: '0c4ffc5553a054ae331bcbf48a7b702d0fd5a81e', style: { height: '15px' } }), index.h("div", { key: '17815735c29adc551f65a7f29d1a791c9260edfc' }, index.h("verdocs-text-input", { key: '0d41ae8e9cda72d881791df7d63f89f25d08da5e', id: "verdocs-recipient-phone", value: this.phone, autocomplete: "off",
246
246
  // helpText="The recipient's phone number, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template."
247
247
  placeholder: "Phone Number...", onInput: (e) => {
248
248
  this.phone = e.target.value;
249
249
  this.dirty = true;
250
- } }))), index.h("div", { key: 'a6c73356acbe10339d53f24a956205b914f386aa', class: "buttons" }, index.h("button", { key: '034614017ee9e5b0acdafa1a2950c3cd44328517', class: "delete-button", disabled: this.dirty, onClick: e => this.handleDelete(e), innerHTML: TrashIcon }), index.h("div", { key: '5febc5c4fbbe44afbe1f6a1fe23586efdd5bf3df', style: { flex: '1' } }), index.h("verdocs-button", { key: '895635dd85f706e87bc14dde3224894f11af9029', size: "small", label: "Save", disabled: !this.dirty || !isValid, onClick: e => this.handleSave(e) })))));
250
+ } }))), index.h("div", { key: 'be29c3c856e62cab357391146485230461e6c5c9', class: "buttons" }, index.h("button", { key: 'a714765b9f8f524a0c6573653b6ba6a59661b4d2', class: "delete-button", disabled: this.dirty, onClick: e => this.handleDelete(e), innerHTML: TrashIcon }), index.h("div", { key: 'aae4bf7f4fa5fc685ace057a2312461a7cf993f3', style: { flex: '1' } }), index.h("verdocs-button", { key: '027aa0723fc32b4713e7a9cb33e6a1b7d4b5ab18', size: "small", label: "Save", disabled: !this.dirty || !isValid, onClick: e => this.handleSave(e) })))));
251
251
  }
252
252
  };
253
253
  VerdocsTemplateRoleProperties.style = verdocsTemplateRolePropertiesCss();
@@ -43,7 +43,7 @@ const VerdocsOkDialog = class {
43
43
  }
44
44
  }
45
45
  render() {
46
- return (index.h("verdocs-dialog", { key: '52d54a8b4aab2a5aea4d8d23d120c56e321f6a6a', onExit: e => this.handleDismiss(e) }, index.h("div", { key: 'd8f199c5b67778bb75c443b9ac479a874ef441a8', slot: "heading", class: "heading" }, index.h("div", { key: '0c1d47e80319595dab3be44df92d35c187205a93', class: "icon" }, index.h("svg", { key: '0a09d7fd4758db5083b4b08139f80ceffde3ea7e', width: "22", height: "19", viewBox: "0 0 22 19", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("g", { key: 'edba4957787067d3776d8eeb563e9e30b231fddb', "clip-path": "url(#clip0_34208_4881)" }, index.h("path", { key: '5afcfa6fe4b39a553c210931b3cbea6a3d0d0cee', d: "M3.125 0.75C1.88398 0.75 0.875 1.75898 0.875 3V16.5C0.875 17.741 1.88398 18.75 3.125 18.75H12.125C13.366 18.75 14.375 17.741 14.375 16.5V15.8215C14.2801 15.8602 14.1852 15.8918 14.0867 15.9164L11.9738 16.4437C11.8684 16.4684 11.7629 16.4859 11.6574 16.493C11.6258 16.4965 11.5941 16.5 11.5625 16.5H9.3125C9.09805 16.5 8.90469 16.3805 8.80977 16.1906L8.50039 15.5684C8.44062 15.4488 8.32109 15.375 8.19102 15.375C8.06094 15.375 7.93789 15.4488 7.88164 15.5684L7.57227 16.1906C7.47031 16.398 7.24883 16.5211 7.02031 16.5C6.7918 16.4789 6.59492 16.3207 6.53164 16.1027L5.9375 14.1445L5.59297 15.2977C5.37852 16.0113 4.72109 16.5 3.97578 16.5H3.6875C3.37812 16.5 3.125 16.2469 3.125 15.9375C3.125 15.6281 3.37812 15.375 3.6875 15.375H3.97578C4.22539 15.375 4.44336 15.2133 4.51367 14.9742L5.0375 13.234C5.15703 12.8367 5.52266 12.5625 5.9375 12.5625C6.35234 12.5625 6.71797 12.8367 6.8375 13.234L7.24531 14.591C7.50547 14.373 7.83594 14.25 8.1875 14.25C8.74648 14.25 9.25625 14.5664 9.50586 15.0656L9.66055 15.375H9.97344C9.86445 15.0656 9.84336 14.7281 9.92422 14.3977L10.4516 12.2848C10.55 11.8875 10.7539 11.5289 11.0422 11.2406L14.375 7.90781V6.375H9.875C9.25273 6.375 8.75 5.87227 8.75 5.25V0.75H3.125ZM9.875 0.75V5.25H14.375L9.875 0.75ZM20.2039 5.66133C19.6555 5.11289 18.766 5.11289 18.2141 5.66133L17.1805 6.69492L19.6766 9.19102L20.7102 8.15742C21.2586 7.60898 21.2586 6.71953 20.7102 6.16758L20.2039 5.66133ZM11.8402 12.0352C11.6961 12.1793 11.5941 12.3586 11.5449 12.559L11.0176 14.6719C10.9684 14.8652 11.0246 15.0656 11.1652 15.2063C11.3059 15.3469 11.5062 15.4031 11.6996 15.3539L13.8125 14.8266C14.0094 14.7773 14.1922 14.6754 14.3363 14.5312L18.8785 9.98555L16.3824 7.48945L11.8402 12.0352Z", fill: "white" })), index.h("defs", { key: 'c29cda7d2f7a162a77e30fa522e26475124044d8' }, index.h("clipPath", { key: 'b9ac256bf4e3066c8eeeb7978244ee402cf57bf9', id: "clip0_34208_4881" }, index.h("path", { key: '8667df36852d878425aa718daad47314be8b7879', d: "M0.875 0.75H21.125V18.75H0.875V0.75Z", fill: "white" }))))), index.h("div", { key: '452081aa3d26f586ca33837ff2091cc75798b003', class: "title" }, " ", this.heading)), index.h("div", { key: 'd0e86791df8ef3f60896956c18308136890092f9', slot: "content", class: "content", innerHTML: this.message }), index.h("div", { key: '4de420a8d24123545b136725da294612bb2291bb', class: "footer", slot: "footer" }, index.h("div", { key: '10667da2ea1b8660be353b50ff5cb131f73abaa4', class: "buttons" }, this.showCancel && (index.h("button", { key: 'b1404f986abc21aadf3214188741b08578cbf47c', class: "cancel", onClick: () => this.handleCancel() }, "Cancel")), index.h("button", { key: 'bd9426471a8729eb4d1a8580badfed86850fbf0e', class: !this.showCancel ? 'ok single' : 'ok', onClick: () => this.handleOk() }, "OK")))));
46
+ return (index.h("verdocs-dialog", { key: '71f5ccb53d253e815c7071919eb667adcba7cbf6', onExit: e => this.handleDismiss(e) }, index.h("div", { key: '8a9818924124a1355b2fb9b5fa0c3db2d2e85f24', slot: "heading", class: "heading" }, index.h("div", { key: '5fc6b98d0c1cd975c106616708721115bd54ee12', class: "icon" }, index.h("svg", { key: '836f0a6c196c173f5de0839f69b073afb0ab1bae', width: "22", height: "19", viewBox: "0 0 22 19", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("g", { key: '8943629b994d18a59b077a785dcbe0958005f395', "clip-path": "url(#clip0_34208_4881)" }, index.h("path", { key: '657bc1542a8ed6a02830f63e51ad5a9e04a721a6', d: "M3.125 0.75C1.88398 0.75 0.875 1.75898 0.875 3V16.5C0.875 17.741 1.88398 18.75 3.125 18.75H12.125C13.366 18.75 14.375 17.741 14.375 16.5V15.8215C14.2801 15.8602 14.1852 15.8918 14.0867 15.9164L11.9738 16.4437C11.8684 16.4684 11.7629 16.4859 11.6574 16.493C11.6258 16.4965 11.5941 16.5 11.5625 16.5H9.3125C9.09805 16.5 8.90469 16.3805 8.80977 16.1906L8.50039 15.5684C8.44062 15.4488 8.32109 15.375 8.19102 15.375C8.06094 15.375 7.93789 15.4488 7.88164 15.5684L7.57227 16.1906C7.47031 16.398 7.24883 16.5211 7.02031 16.5C6.7918 16.4789 6.59492 16.3207 6.53164 16.1027L5.9375 14.1445L5.59297 15.2977C5.37852 16.0113 4.72109 16.5 3.97578 16.5H3.6875C3.37812 16.5 3.125 16.2469 3.125 15.9375C3.125 15.6281 3.37812 15.375 3.6875 15.375H3.97578C4.22539 15.375 4.44336 15.2133 4.51367 14.9742L5.0375 13.234C5.15703 12.8367 5.52266 12.5625 5.9375 12.5625C6.35234 12.5625 6.71797 12.8367 6.8375 13.234L7.24531 14.591C7.50547 14.373 7.83594 14.25 8.1875 14.25C8.74648 14.25 9.25625 14.5664 9.50586 15.0656L9.66055 15.375H9.97344C9.86445 15.0656 9.84336 14.7281 9.92422 14.3977L10.4516 12.2848C10.55 11.8875 10.7539 11.5289 11.0422 11.2406L14.375 7.90781V6.375H9.875C9.25273 6.375 8.75 5.87227 8.75 5.25V0.75H3.125ZM9.875 0.75V5.25H14.375L9.875 0.75ZM20.2039 5.66133C19.6555 5.11289 18.766 5.11289 18.2141 5.66133L17.1805 6.69492L19.6766 9.19102L20.7102 8.15742C21.2586 7.60898 21.2586 6.71953 20.7102 6.16758L20.2039 5.66133ZM11.8402 12.0352C11.6961 12.1793 11.5941 12.3586 11.5449 12.559L11.0176 14.6719C10.9684 14.8652 11.0246 15.0656 11.1652 15.2063C11.3059 15.3469 11.5062 15.4031 11.6996 15.3539L13.8125 14.8266C14.0094 14.7773 14.1922 14.6754 14.3363 14.5312L18.8785 9.98555L16.3824 7.48945L11.8402 12.0352Z", fill: "white" })), index.h("defs", { key: '8c89805faaf706a352a09cdb9e4366d3b2c697b3' }, index.h("clipPath", { key: 'e76eabac419a70b4fc8be4973f70509712b2ba12', id: "clip0_34208_4881" }, index.h("path", { key: '7820f18f95934053693bc282d451e40bbdbac518', d: "M0.875 0.75H21.125V18.75H0.875V0.75Z", fill: "white" }))))), index.h("div", { key: '79e11a044511904b7c07c655ef67deebe299915c', class: "title" }, " ", this.heading)), index.h("div", { key: '84ad2b3657ac06ef807557d68b24156964adef00', slot: "content", class: "content", innerHTML: this.message }), index.h("div", { key: 'b18ad4282201a68caa040f5400fbdd0103eac20a', class: "footer", slot: "footer" }, index.h("div", { key: '4add506ce666b657c3a23a0ed960ea305fc3904b', class: "buttons" }, this.showCancel && (index.h("button", { key: '1d2fc583027ed4994a90babdec18e3828d403fd7', class: "cancel", onClick: () => this.handleCancel() }, "Cancel")), index.h("button", { key: 'd1331922dc64b8af4b19aef0dd0684406d17c58a', class: !this.showCancel ? 'ok single' : 'ok', onClick: () => this.handleOk() }, "OK")))));
47
47
  }
48
48
  };
49
49
  VerdocsOkDialog.style = verdocsOkDialogCss();
@@ -309,6 +309,7 @@ const VerdocsSend = class {
309
309
  e.preventDefault();
310
310
  e.stopPropagation();
311
311
  this.sending = true;
312
+ const localeData = Intl.DateTimeFormat().resolvedOptions();
312
313
  const details = {
313
314
  template_id: this.templateId,
314
315
  name: ((_a = this.template) === null || _a === void 0 ? void 0 : _a.name) || 'New Envelope',
@@ -316,6 +317,9 @@ const VerdocsSend = class {
316
317
  initial_reminder: 0,
317
318
  followup_reminders: 0,
318
319
  recipients: Object.values(this.rolesCompleted),
320
+ // @ts-expect-error - v6.9.13
321
+ timezone: localeData.timeZone,
322
+ locale: localeData.locale,
319
323
  };
320
324
  const beforeSendResult = this.beforeSend.emit({ ...details, name: details.name, template: this.template });
321
325
  if (beforeSendResult.defaultPrevented) {