@verdocs/web-sdk 2.2.25 → 2.2.26

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 (361) hide show
  1. package/dist/cjs/{EnvelopeStore-74bc60d0.js → EnvelopeStore-ac58a485.js} +2 -2
  2. package/dist/cjs/{Envelopes-49db8324.js → Envelopes-a06cab96.js} +11 -0
  3. package/dist/cjs/{TemplateStore-a5fa2b0c.js → TemplateStore-9026139c.js} +3 -4
  4. package/dist/cjs/{VerdocsEndpoint-45deeb6a.js → VerdocsEndpoint-a15d322b.js} +203 -35
  5. package/dist/cjs/{index-5463795e.js → index-39554143.js} +3 -0
  6. package/dist/cjs/{index-f712049c.js → index-7d1c0557.js} +1 -1
  7. package/dist/cjs/ipc-test.cjs.entry.js +4 -5
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/{utils-010a1697.js → utils-c5675274.js} +1 -1
  10. package/dist/cjs/verdocs-activity-box.cjs.entry.js +3 -3
  11. package/dist/cjs/verdocs-auth.cjs.entry.js +2 -2
  12. package/dist/cjs/verdocs-build.cjs.entry.js +4 -5
  13. package/dist/cjs/verdocs-button-panel_2.cjs.entry.js +4 -5
  14. package/dist/cjs/verdocs-button_3.cjs.entry.js +1 -1
  15. package/dist/cjs/verdocs-checkbox_3.cjs.entry.js +1 -1
  16. package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +4 -4
  17. package/dist/cjs/verdocs-dialog_2.cjs.entry.js +1 -1
  18. package/dist/cjs/verdocs-dropdown.cjs.entry.js +1 -1
  19. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +4 -4
  20. package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +5 -5
  21. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +5 -5
  22. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +4 -4
  23. package/dist/cjs/verdocs-field-attachment.cjs.entry.js +3 -3
  24. package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +3 -3
  25. package/dist/cjs/verdocs-field-date.cjs.entry.js +3 -3
  26. package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +3 -3
  27. package/dist/cjs/verdocs-field-initial.cjs.entry.js +3 -3
  28. package/dist/cjs/verdocs-field-payment.cjs.entry.js +3 -3
  29. package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +3 -3
  30. package/dist/cjs/verdocs-field-signature.cjs.entry.js +3 -3
  31. package/dist/cjs/verdocs-field-textarea.cjs.entry.js +4 -4
  32. package/dist/cjs/verdocs-field-textbox.cjs.entry.js +4 -4
  33. package/dist/cjs/verdocs-field-timestamp.cjs.entry.js +3 -3
  34. package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +2 -2
  35. package/dist/cjs/verdocs-floating-menu.cjs.entry.js +2 -2
  36. package/dist/cjs/verdocs-initial-dialog.cjs.entry.js +1 -1
  37. package/dist/cjs/verdocs-kba-dialog.cjs.entry.js +1 -1
  38. package/dist/cjs/verdocs-loader.cjs.entry.js +1 -1
  39. package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
  40. package/dist/cjs/verdocs-organization-card.cjs.entry.js +1 -1
  41. package/dist/cjs/verdocs-pagination_3.cjs.entry.js +3 -3
  42. package/dist/cjs/verdocs-preview_8.cjs.entry.js +9 -10
  43. package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +3 -4
  44. package/dist/cjs/verdocs-radio-button.cjs.entry.js +1 -1
  45. package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
  46. package/dist/cjs/verdocs-search.cjs.entry.js +2 -2
  47. package/dist/cjs/verdocs-settings-api-keys_4.cjs.entry.js +4 -4
  48. package/dist/cjs/verdocs-settings.cjs.entry.js +2 -2
  49. package/dist/cjs/verdocs-sign.cjs.entry.js +4 -4
  50. package/dist/cjs/verdocs-signature-dialog.cjs.entry.js +1 -1
  51. package/dist/cjs/verdocs-status-indicator.cjs.entry.js +1 -1
  52. package/dist/cjs/verdocs-tabs.cjs.entry.js +1 -1
  53. package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
  54. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +4 -4
  55. package/dist/cjs/verdocs-template-fields_4.cjs.entry.js +7 -8
  56. package/dist/cjs/verdocs-template-star.cjs.entry.js +2 -2
  57. package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
  58. package/dist/cjs/verdocs-templates-list.cjs.entry.js +4 -5
  59. package/dist/cjs/verdocs-toggle.cjs.entry.js +1 -1
  60. package/dist/cjs/verdocs-upload-dialog.cjs.entry.js +1 -1
  61. package/dist/cjs/verdocs-view.cjs.entry.js +6 -4
  62. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  63. package/dist/collection/components/embeds/verdocs-view/verdocs-view.js +3 -1
  64. package/dist/components/EnvelopeStore.js +1 -1
  65. package/dist/components/Envelopes.js +11 -1
  66. package/dist/components/TemplateStore.js +1 -2
  67. package/dist/components/VerdocsEndpoint.js +198 -36
  68. package/dist/components/utils.js +1 -1
  69. package/dist/components/verdocs-search-activity2.js +1 -2
  70. package/dist/components/verdocs-template-create2.js +1 -2
  71. package/dist/components/verdocs-template-name2.js +1 -2
  72. package/dist/components/verdocs-template-sender2.js +1 -2
  73. package/dist/components/verdocs-template-visibility2.js +1 -2
  74. package/dist/components/verdocs-templates-list.js +1 -2
  75. package/dist/components/verdocs-view2.js +3 -1
  76. package/dist/custom-elements.json +2059 -0
  77. package/dist/docs.json +1 -1
  78. package/dist/esm/{EnvelopeStore-3ede5a1d.js → EnvelopeStore-6476418d.js} +2 -2
  79. package/dist/esm/{Envelopes-9dcb88d1.js → Envelopes-2d89a065.js} +11 -1
  80. package/dist/esm/{TemplateStore-e8cf5a15.js → TemplateStore-4918792b.js} +2 -3
  81. package/dist/esm/{VerdocsEndpoint-d58d5544.js → VerdocsEndpoint-750b24e4.js} +198 -36
  82. package/dist/esm/{index-4439b0d1.js → index-1ce2872b.js} +1 -1
  83. package/dist/esm/{index-172625c5.js → index-d5ba09f3.js} +3 -1
  84. package/dist/esm/ipc-test.entry.js +4 -5
  85. package/dist/esm/loader.js +1 -1
  86. package/dist/esm/{utils-1a753ca5.js → utils-a0bb69d7.js} +1 -1
  87. package/dist/esm/verdocs-activity-box.entry.js +3 -3
  88. package/dist/esm/verdocs-auth.entry.js +2 -2
  89. package/dist/esm/verdocs-build.entry.js +4 -5
  90. package/dist/esm/verdocs-button-panel_2.entry.js +4 -5
  91. package/dist/esm/verdocs-button_3.entry.js +1 -1
  92. package/dist/esm/verdocs-checkbox_3.entry.js +1 -1
  93. package/dist/esm/verdocs-contact-picker_2.entry.js +4 -4
  94. package/dist/esm/verdocs-dialog_2.entry.js +1 -1
  95. package/dist/esm/verdocs-dropdown.entry.js +1 -1
  96. package/dist/esm/verdocs-envelope-document-page.entry.js +4 -4
  97. package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +5 -5
  98. package/dist/esm/verdocs-envelope-sidebar.entry.js +5 -5
  99. package/dist/esm/verdocs-envelopes-list.entry.js +4 -4
  100. package/dist/esm/verdocs-field-attachment.entry.js +3 -3
  101. package/dist/esm/verdocs-field-checkbox.entry.js +3 -3
  102. package/dist/esm/verdocs-field-date.entry.js +3 -3
  103. package/dist/esm/verdocs-field-dropdown.entry.js +3 -3
  104. package/dist/esm/verdocs-field-initial.entry.js +3 -3
  105. package/dist/esm/verdocs-field-payment.entry.js +3 -3
  106. package/dist/esm/verdocs-field-radio-button.entry.js +3 -3
  107. package/dist/esm/verdocs-field-signature.entry.js +3 -3
  108. package/dist/esm/verdocs-field-textarea.entry.js +4 -4
  109. package/dist/esm/verdocs-field-textbox.entry.js +4 -4
  110. package/dist/esm/verdocs-field-timestamp.entry.js +3 -3
  111. package/dist/esm/verdocs-file-chooser_2.entry.js +2 -2
  112. package/dist/esm/verdocs-floating-menu.entry.js +2 -2
  113. package/dist/esm/verdocs-initial-dialog.entry.js +1 -1
  114. package/dist/esm/verdocs-kba-dialog.entry.js +1 -1
  115. package/dist/esm/verdocs-loader.entry.js +1 -1
  116. package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
  117. package/dist/esm/verdocs-organization-card.entry.js +1 -1
  118. package/dist/esm/verdocs-pagination_3.entry.js +3 -3
  119. package/dist/esm/verdocs-preview_8.entry.js +6 -7
  120. package/dist/esm/verdocs-quick-functions_3.entry.js +2 -3
  121. package/dist/esm/verdocs-radio-button.entry.js +1 -1
  122. package/dist/esm/verdocs-search-tabs.entry.js +1 -1
  123. package/dist/esm/verdocs-search.entry.js +2 -2
  124. package/dist/esm/verdocs-settings-api-keys_4.entry.js +4 -4
  125. package/dist/esm/verdocs-settings.entry.js +2 -2
  126. package/dist/esm/verdocs-sign.entry.js +4 -4
  127. package/dist/esm/verdocs-signature-dialog.entry.js +1 -1
  128. package/dist/esm/verdocs-status-indicator.entry.js +1 -1
  129. package/dist/esm/verdocs-tabs.entry.js +1 -1
  130. package/dist/esm/verdocs-template-card.entry.js +1 -1
  131. package/dist/esm/verdocs-template-document-page_2.entry.js +4 -4
  132. package/dist/esm/verdocs-template-fields_4.entry.js +6 -7
  133. package/dist/esm/verdocs-template-star.entry.js +2 -2
  134. package/dist/esm/verdocs-template-tags.entry.js +1 -1
  135. package/dist/esm/verdocs-templates-list.entry.js +2 -3
  136. package/dist/esm/verdocs-toggle.entry.js +1 -1
  137. package/dist/esm/verdocs-upload-dialog.entry.js +1 -1
  138. package/dist/esm/verdocs-view.entry.js +6 -4
  139. package/dist/esm/verdocs-web-sdk.js +1 -1
  140. package/dist/esm-es5/{EnvelopeStore-3ede5a1d.js → EnvelopeStore-6476418d.js} +1 -1
  141. package/dist/esm-es5/Envelopes-2d89a065.js +1 -0
  142. package/dist/esm-es5/TemplateStore-4918792b.js +1 -0
  143. package/dist/esm-es5/VerdocsEndpoint-750b24e4.js +1 -0
  144. package/dist/esm-es5/{index-4439b0d1.js → index-1ce2872b.js} +1 -1
  145. package/dist/esm-es5/index-d5ba09f3.js +2 -0
  146. package/dist/esm-es5/ipc-test.entry.js +1 -1
  147. package/dist/esm-es5/loader.js +1 -1
  148. package/dist/esm-es5/{utils-1a753ca5.js → utils-a0bb69d7.js} +1 -1
  149. package/dist/esm-es5/verdocs-activity-box.entry.js +1 -1
  150. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  151. package/dist/esm-es5/verdocs-build.entry.js +1 -1
  152. package/dist/esm-es5/verdocs-button-panel_2.entry.js +1 -1
  153. package/dist/esm-es5/verdocs-button_3.entry.js +1 -1
  154. package/dist/esm-es5/verdocs-checkbox_3.entry.js +1 -1
  155. package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -1
  156. package/dist/esm-es5/verdocs-dialog_2.entry.js +1 -1
  157. package/dist/esm-es5/verdocs-dropdown.entry.js +1 -1
  158. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
  159. package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js +1 -1
  160. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  161. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  162. package/dist/esm-es5/verdocs-field-attachment.entry.js +1 -1
  163. package/dist/esm-es5/verdocs-field-checkbox.entry.js +1 -1
  164. package/dist/esm-es5/verdocs-field-date.entry.js +1 -1
  165. package/dist/esm-es5/verdocs-field-dropdown.entry.js +1 -1
  166. package/dist/esm-es5/verdocs-field-initial.entry.js +1 -1
  167. package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
  168. package/dist/esm-es5/verdocs-field-radio-button.entry.js +1 -1
  169. package/dist/esm-es5/verdocs-field-signature.entry.js +1 -1
  170. package/dist/esm-es5/verdocs-field-textarea.entry.js +1 -1
  171. package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -1
  172. package/dist/esm-es5/verdocs-field-timestamp.entry.js +1 -1
  173. package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
  174. package/dist/esm-es5/verdocs-floating-menu.entry.js +1 -1
  175. package/dist/esm-es5/verdocs-initial-dialog.entry.js +1 -1
  176. package/dist/esm-es5/verdocs-kba-dialog.entry.js +1 -1
  177. package/dist/esm-es5/verdocs-loader.entry.js +1 -1
  178. package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
  179. package/dist/esm-es5/verdocs-organization-card.entry.js +1 -1
  180. package/dist/esm-es5/verdocs-pagination_3.entry.js +1 -1
  181. package/dist/esm-es5/verdocs-preview_8.entry.js +1 -1
  182. package/dist/esm-es5/verdocs-quick-functions_3.entry.js +1 -1
  183. package/dist/esm-es5/verdocs-radio-button.entry.js +1 -1
  184. package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
  185. package/dist/esm-es5/verdocs-search.entry.js +1 -1
  186. package/dist/esm-es5/verdocs-settings-api-keys_4.entry.js +1 -1
  187. package/dist/esm-es5/verdocs-settings.entry.js +1 -1
  188. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  189. package/dist/esm-es5/verdocs-signature-dialog.entry.js +1 -1
  190. package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
  191. package/dist/esm-es5/verdocs-tabs.entry.js +1 -1
  192. package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
  193. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  194. package/dist/esm-es5/verdocs-template-fields_4.entry.js +1 -1
  195. package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
  196. package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
  197. package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
  198. package/dist/esm-es5/verdocs-toggle.entry.js +1 -1
  199. package/dist/esm-es5/verdocs-upload-dialog.entry.js +1 -1
  200. package/dist/esm-es5/verdocs-view.entry.js +1 -1
  201. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  202. package/dist/verdocs-web-sdk/{p-402c3762.js → p-044d38be.js} +1 -1
  203. package/dist/verdocs-web-sdk/p-047b4bd1.js +1 -0
  204. package/dist/verdocs-web-sdk/{p-af3a01d5.system.entry.js → p-0733c3e1.system.entry.js} +1 -1
  205. package/dist/verdocs-web-sdk/{p-99694a88.entry.js → p-09b05f65.entry.js} +1 -1
  206. package/dist/verdocs-web-sdk/{p-43231ac2.system.entry.js → p-0d6462e0.system.entry.js} +1 -1
  207. package/dist/verdocs-web-sdk/p-0de7f044.js +1 -0
  208. package/dist/verdocs-web-sdk/{p-38aa6656.entry.js → p-10f9133d.entry.js} +1 -1
  209. package/dist/verdocs-web-sdk/p-1184e653.entry.js +1 -0
  210. package/dist/verdocs-web-sdk/{p-7c7c56da.system.entry.js → p-16242585.system.entry.js} +1 -1
  211. package/dist/verdocs-web-sdk/p-1921f008.system.entry.js +1 -0
  212. package/dist/verdocs-web-sdk/p-19c3bb25.system.entry.js +1 -0
  213. package/dist/verdocs-web-sdk/{p-d9318890.entry.js → p-1b1f4fd2.entry.js} +1 -1
  214. package/dist/verdocs-web-sdk/{p-ba87f33c.system.entry.js → p-1fbd8615.system.entry.js} +1 -1
  215. package/dist/verdocs-web-sdk/{p-9569539d.system.entry.js → p-216bbc4c.system.entry.js} +1 -1
  216. package/dist/verdocs-web-sdk/p-2174e539.js +1 -0
  217. package/dist/verdocs-web-sdk/p-218a42f0.entry.js +1 -0
  218. package/dist/verdocs-web-sdk/p-22a86241.js +1 -0
  219. package/dist/verdocs-web-sdk/p-240d814a.system.js +1 -0
  220. package/dist/verdocs-web-sdk/{p-64d4ada6.system.entry.js → p-247325a5.system.entry.js} +1 -1
  221. package/dist/verdocs-web-sdk/p-24f0c391.system.js +1 -0
  222. package/dist/verdocs-web-sdk/{p-a5e3c8ee.entry.js → p-2568de0e.entry.js} +1 -1
  223. package/dist/verdocs-web-sdk/{p-ae971bb4.system.entry.js → p-2b8644a1.system.entry.js} +1 -1
  224. package/dist/verdocs-web-sdk/p-2cc908f8.system.entry.js +1 -0
  225. package/dist/verdocs-web-sdk/{p-7d5e91f5.entry.js → p-2d631b6f.entry.js} +1 -1
  226. package/dist/verdocs-web-sdk/{p-013d1556.system.entry.js → p-2d71c20a.system.entry.js} +1 -1
  227. package/dist/verdocs-web-sdk/{p-77ecee31.entry.js → p-2f3eacbb.entry.js} +1 -1
  228. package/dist/verdocs-web-sdk/p-330f7d43.entry.js +1 -0
  229. package/dist/verdocs-web-sdk/{p-20986706.entry.js → p-36458469.entry.js} +1 -1
  230. package/dist/verdocs-web-sdk/{p-143fc189.entry.js → p-390b7f97.entry.js} +1 -1
  231. package/dist/verdocs-web-sdk/{p-e092b25d.entry.js → p-39145cce.entry.js} +1 -1
  232. package/dist/verdocs-web-sdk/p-39e8600d.system.js +1 -0
  233. package/dist/verdocs-web-sdk/{p-7bab7252.entry.js → p-40db9709.entry.js} +1 -1
  234. package/dist/verdocs-web-sdk/{p-e2fe0aa5.system.entry.js → p-4157d80b.system.entry.js} +1 -1
  235. package/dist/verdocs-web-sdk/{p-24de06b4.system.entry.js → p-44209a2a.system.entry.js} +1 -1
  236. package/dist/verdocs-web-sdk/{p-ab889005.system.entry.js → p-4720767e.system.entry.js} +1 -1
  237. package/dist/verdocs-web-sdk/p-52f4ddf3.entry.js +1 -0
  238. package/dist/verdocs-web-sdk/{p-64411279.entry.js → p-56270b66.entry.js} +1 -1
  239. package/dist/verdocs-web-sdk/{p-eae47487.entry.js → p-584928fe.entry.js} +1 -1
  240. package/dist/verdocs-web-sdk/{p-a5f450a1.system.entry.js → p-58a4d8ad.system.entry.js} +1 -1
  241. package/dist/verdocs-web-sdk/{p-0edfbbb9.entry.js → p-5a0d4098.entry.js} +1 -1
  242. package/dist/verdocs-web-sdk/{p-2a0ed0ab.entry.js → p-5b789032.entry.js} +1 -1
  243. package/dist/verdocs-web-sdk/{p-a6048cc9.system.entry.js → p-5d16cfed.system.entry.js} +1 -1
  244. package/dist/verdocs-web-sdk/{p-f04bf956.system.js → p-5e203333.system.js} +1 -1
  245. package/dist/verdocs-web-sdk/{p-9bbf0bc5.system.entry.js → p-5f0afd02.system.entry.js} +1 -1
  246. package/dist/verdocs-web-sdk/{p-0b2102df.entry.js → p-636c6fdd.entry.js} +1 -1
  247. package/dist/verdocs-web-sdk/{p-bbbbddab.entry.js → p-665fd61c.entry.js} +1 -1
  248. package/dist/verdocs-web-sdk/{p-71eefe0e.entry.js → p-672fad08.entry.js} +1 -1
  249. package/dist/verdocs-web-sdk/{p-a28c7836.entry.js → p-6c75ea76.entry.js} +1 -1
  250. package/dist/verdocs-web-sdk/p-6d4d4760.system.entry.js +1 -0
  251. package/dist/verdocs-web-sdk/{p-4f8a7884.system.entry.js → p-6f70e215.system.entry.js} +1 -1
  252. package/dist/verdocs-web-sdk/{p-cb9f22d7.entry.js → p-734c32bc.entry.js} +1 -1
  253. package/dist/verdocs-web-sdk/{p-45bee3f6.system.entry.js → p-740d5a16.system.entry.js} +1 -1
  254. package/dist/verdocs-web-sdk/{p-7efaf5de.system.entry.js → p-741b2436.system.entry.js} +1 -1
  255. package/dist/verdocs-web-sdk/{p-b68d2dba.entry.js → p-741c0a94.entry.js} +1 -1
  256. package/dist/verdocs-web-sdk/{p-6896477a.system.entry.js → p-789c8c91.system.entry.js} +1 -1
  257. package/dist/verdocs-web-sdk/{p-5079bd15.system.entry.js → p-7b0874c1.system.entry.js} +1 -1
  258. package/dist/verdocs-web-sdk/{p-521a3fec.entry.js → p-7e5ee08a.entry.js} +1 -1
  259. package/dist/verdocs-web-sdk/{p-6ff8759f.entry.js → p-7fbcd534.entry.js} +1 -1
  260. package/dist/verdocs-web-sdk/{p-66d45c89.system.js → p-802bd493.system.js} +1 -1
  261. package/dist/verdocs-web-sdk/p-821c78c4.system.js +1 -0
  262. package/dist/verdocs-web-sdk/{p-5c01f483.system.entry.js → p-83c052a3.system.entry.js} +1 -1
  263. package/dist/verdocs-web-sdk/{p-2f3263a3.system.entry.js → p-853489f8.system.entry.js} +1 -1
  264. package/dist/verdocs-web-sdk/{p-7648c449.js → p-85d0e79d.js} +1 -1
  265. package/dist/verdocs-web-sdk/{p-14b44491.js → p-876d3ff3.js} +2 -2
  266. package/dist/verdocs-web-sdk/{p-ab917e6a.entry.js → p-88000f71.entry.js} +1 -1
  267. package/dist/verdocs-web-sdk/{p-4583338b.system.entry.js → p-897ccc19.system.entry.js} +1 -1
  268. package/dist/verdocs-web-sdk/{p-506754d5.system.entry.js → p-8b4633ae.system.entry.js} +1 -1
  269. package/dist/verdocs-web-sdk/{p-c230e3d1.entry.js → p-8c92254d.entry.js} +1 -1
  270. package/dist/verdocs-web-sdk/{p-1d0342e6.system.entry.js → p-8df64e0a.system.entry.js} +1 -1
  271. package/dist/verdocs-web-sdk/{p-49042f24.system.entry.js → p-8f7aca9f.system.entry.js} +1 -1
  272. package/dist/verdocs-web-sdk/p-930f2b08.entry.js +1 -0
  273. package/dist/verdocs-web-sdk/{p-c82b9978.entry.js → p-94ea5e96.entry.js} +1 -1
  274. package/dist/verdocs-web-sdk/{p-3c798272.entry.js → p-96f0ba19.entry.js} +1 -1
  275. package/dist/verdocs-web-sdk/{p-3ce7e733.system.entry.js → p-96f3cfd3.system.entry.js} +1 -1
  276. package/dist/verdocs-web-sdk/{p-272933c6.system.entry.js → p-972004c2.system.entry.js} +1 -1
  277. package/dist/verdocs-web-sdk/{p-d4857f9e.system.entry.js → p-9a5904a9.system.entry.js} +1 -1
  278. package/dist/verdocs-web-sdk/{p-f0f27520.entry.js → p-9cb5d470.entry.js} +1 -1
  279. package/dist/verdocs-web-sdk/{p-79b0c643.entry.js → p-9dec146d.entry.js} +1 -1
  280. package/dist/verdocs-web-sdk/p-9f4f2ad3.system.entry.js +1 -0
  281. package/dist/verdocs-web-sdk/{p-36ed1c79.entry.js → p-a051e533.entry.js} +1 -1
  282. package/dist/verdocs-web-sdk/p-a13a4ae6.system.entry.js +1 -0
  283. package/dist/verdocs-web-sdk/{p-e27ec758.entry.js → p-a57c46bd.entry.js} +1 -1
  284. package/dist/verdocs-web-sdk/{p-f9e89b56.system.entry.js → p-aa51dac9.system.entry.js} +1 -1
  285. package/dist/verdocs-web-sdk/{p-4f914da5.system.entry.js → p-aa8d725f.system.entry.js} +1 -1
  286. package/dist/verdocs-web-sdk/{p-248bbf52.entry.js → p-aab15290.entry.js} +1 -1
  287. package/dist/verdocs-web-sdk/{p-450a3908.entry.js → p-abf16c2b.entry.js} +1 -1
  288. package/dist/verdocs-web-sdk/{p-2b8493be.entry.js → p-aded66bf.entry.js} +1 -1
  289. package/dist/verdocs-web-sdk/{p-04580be0.entry.js → p-b136d75e.entry.js} +1 -1
  290. package/dist/verdocs-web-sdk/{p-48f74a4f.system.entry.js → p-b1ba251d.system.entry.js} +1 -1
  291. package/dist/verdocs-web-sdk/{p-27a3d731.entry.js → p-b2631a37.entry.js} +1 -1
  292. package/dist/verdocs-web-sdk/{p-5cb5d39c.system.entry.js → p-b3d43687.system.entry.js} +1 -1
  293. package/dist/verdocs-web-sdk/{p-c41a65a9.entry.js → p-b58505d4.entry.js} +1 -1
  294. package/dist/verdocs-web-sdk/{p-b2c72f5a.entry.js → p-b7789921.entry.js} +1 -1
  295. package/dist/verdocs-web-sdk/{p-6e62913f.entry.js → p-b7c4f1d8.entry.js} +1 -1
  296. package/dist/verdocs-web-sdk/{p-38891eeb.system.entry.js → p-ba610846.system.entry.js} +1 -1
  297. package/dist/verdocs-web-sdk/{p-e16816bf.entry.js → p-ba9e472b.entry.js} +1 -1
  298. package/dist/verdocs-web-sdk/{p-9ea2f211.system.entry.js → p-baf0f5b0.system.entry.js} +1 -1
  299. package/dist/verdocs-web-sdk/{p-37e647a4.system.entry.js → p-bf90e11b.system.entry.js} +1 -1
  300. package/dist/verdocs-web-sdk/{p-c3ff8afd.system.js → p-c027e0e1.system.js} +1 -1
  301. package/dist/verdocs-web-sdk/p-c2690e79.entry.js +1 -0
  302. package/dist/verdocs-web-sdk/{p-ceceebec.entry.js → p-c2a628e8.entry.js} +1 -1
  303. package/dist/verdocs-web-sdk/p-c2ae8a0b.system.entry.js +1 -0
  304. package/dist/verdocs-web-sdk/{p-7cb3209d.system.entry.js → p-c73ba4ca.system.entry.js} +1 -1
  305. package/dist/verdocs-web-sdk/{p-70685224.entry.js → p-c7b34331.entry.js} +1 -1
  306. package/dist/verdocs-web-sdk/p-c808a3de.entry.js +1 -0
  307. package/dist/verdocs-web-sdk/p-cb8b910c.system.entry.js +1 -0
  308. package/dist/verdocs-web-sdk/{p-fbb8023f.system.js → p-cd61fea7.system.js} +2 -2
  309. package/dist/verdocs-web-sdk/{p-6ba66b2c.system.entry.js → p-ce7c4eb0.system.entry.js} +1 -1
  310. package/dist/verdocs-web-sdk/{p-2284d430.system.entry.js → p-cfe6b8c9.system.entry.js} +1 -1
  311. package/dist/verdocs-web-sdk/{p-9009e136.entry.js → p-d3c4d7da.entry.js} +1 -1
  312. package/dist/verdocs-web-sdk/p-d5941fd4.entry.js +1 -0
  313. package/dist/verdocs-web-sdk/{p-3bf6619b.entry.js → p-dac44c07.entry.js} +1 -1
  314. package/dist/verdocs-web-sdk/{p-7516bd57.system.entry.js → p-dffa796e.system.entry.js} +1 -1
  315. package/dist/verdocs-web-sdk/{p-aad7ef50.system.entry.js → p-e2b6a8ae.system.entry.js} +1 -1
  316. package/dist/verdocs-web-sdk/{p-f5829c68.system.entry.js → p-e3bd1b4c.system.entry.js} +1 -1
  317. package/dist/verdocs-web-sdk/p-e8cf4ad9.system.entry.js +1 -0
  318. package/dist/verdocs-web-sdk/{p-84b2c661.entry.js → p-f61573a3.entry.js} +1 -1
  319. package/dist/verdocs-web-sdk/{p-45343cef.system.entry.js → p-f9f2b4c6.system.entry.js} +1 -1
  320. package/dist/verdocs-web-sdk/{p-ecfa94fb.system.entry.js → p-fb35b11f.system.entry.js} +1 -1
  321. package/dist/verdocs-web-sdk/{p-41cd34db.system.entry.js → p-fb65a186.system.entry.js} +1 -1
  322. package/dist/verdocs-web-sdk/p-fd174087.entry.js +1 -0
  323. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  324. package/dist/verdocs-web-sdk/verdocs-web-sdk.js +1 -1
  325. package/package.json +2 -2
  326. package/dist/cjs/Templates-f6e75719.js +0 -134
  327. package/dist/components/Templates.js +0 -127
  328. package/dist/esm/Templates-f90883f7.js +0 -127
  329. package/dist/esm-es5/Envelopes-9dcb88d1.js +0 -1
  330. package/dist/esm-es5/TemplateStore-e8cf5a15.js +0 -1
  331. package/dist/esm-es5/Templates-f90883f7.js +0 -1
  332. package/dist/esm-es5/VerdocsEndpoint-d58d5544.js +0 -1
  333. package/dist/esm-es5/index-172625c5.js +0 -2
  334. package/dist/verdocs-web-sdk/p-07f1748c.entry.js +0 -1
  335. package/dist/verdocs-web-sdk/p-15df3998.system.entry.js +0 -1
  336. package/dist/verdocs-web-sdk/p-1753f57b.system.js +0 -1
  337. package/dist/verdocs-web-sdk/p-1dda2d09.entry.js +0 -1
  338. package/dist/verdocs-web-sdk/p-2fdb7348.system.js +0 -1
  339. package/dist/verdocs-web-sdk/p-3af6b910.system.js +0 -1
  340. package/dist/verdocs-web-sdk/p-4017b53a.system.entry.js +0 -1
  341. package/dist/verdocs-web-sdk/p-41388344.system.entry.js +0 -1
  342. package/dist/verdocs-web-sdk/p-4422958b.system.js +0 -1
  343. package/dist/verdocs-web-sdk/p-4a500a3f.system.entry.js +0 -1
  344. package/dist/verdocs-web-sdk/p-51979353.entry.js +0 -1
  345. package/dist/verdocs-web-sdk/p-5ab837bf.entry.js +0 -1
  346. package/dist/verdocs-web-sdk/p-65c99d51.system.entry.js +0 -1
  347. package/dist/verdocs-web-sdk/p-79f99e83.system.entry.js +0 -1
  348. package/dist/verdocs-web-sdk/p-7b6c0cc5.entry.js +0 -1
  349. package/dist/verdocs-web-sdk/p-976ec9e8.js +0 -1
  350. package/dist/verdocs-web-sdk/p-9caf7709.system.entry.js +0 -1
  351. package/dist/verdocs-web-sdk/p-a881fe6b.js +0 -1
  352. package/dist/verdocs-web-sdk/p-a894761f.system.entry.js +0 -1
  353. package/dist/verdocs-web-sdk/p-af048fad.js +0 -1
  354. package/dist/verdocs-web-sdk/p-ba04698a.entry.js +0 -1
  355. package/dist/verdocs-web-sdk/p-be3e42bf.entry.js +0 -1
  356. package/dist/verdocs-web-sdk/p-ccb2c794.js +0 -1
  357. package/dist/verdocs-web-sdk/p-cd64b223.system.entry.js +0 -1
  358. package/dist/verdocs-web-sdk/p-d4d8858f.js +0 -1
  359. package/dist/verdocs-web-sdk/p-daebb9e6.system.js +0 -1
  360. package/dist/verdocs-web-sdk/p-f2deae25.entry.js +0 -1
  361. package/dist/verdocs-web-sdk/p-f520ee27.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as e,c as i,h as s,H as t}from"./p-14b44491.js";import{c as n}from"./p-ccb2c794.js";import{u as o}from"./p-29f64c27.js";import{r as l}from"./p-3cd894ff.js";import"./p-05788c2b.js";import{V as a}from"./p-af048fad.js";import{g as d}from"./p-a881fe6b.js";import{F as r}from"./p-de60d3a8.js";import{V as c}from"./p-ed416acf.js";import{S as v}from"./p-7a1b2643.js";import{f as p}from"./p-c220af42.js";import"./p-7648c449.js";const h={visibility:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M12 15a3 3 0 100-6 3 3 0 000 6z" /><path fill-rule="evenodd" d="M1.323 11.447C2.811 6.976 7.028 3.75 12.001 3.75c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113-1.487 4.471-5.705 7.697-10.677 7.697-4.97 0-9.186-3.223-10.675-7.69a1.762 1.762 0 010-1.113zM17.25 12a5.25 5.25 0 11-10.5 0 5.25 5.25 0 0110.5 0z" clip-rule="evenodd" /></svg>',pencil:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M21.731 2.269a2.625 2.625 0 00-3.712 0l-1.157 1.157 3.712 3.712 1.157-1.157a2.625 2.625 0 000-3.712zM19.513 8.199l-3.712-3.712-12.15 12.15a5.25 5.25 0 00-1.32 2.214l-.8 2.685a.75.75 0 00.933.933l2.685-.8a5.25 5.25 0 002.214-1.32L19.513 8.2z" /></svg>',mail:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>',done:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M19.916 4.626a.75.75 0 01.208 1.04l-9 13.5a.75.75 0 01-1.154.114l-6-6a.75.75 0 011.06-1.06l5.353 5.353 8.493-12.739a.75.75 0 011.04-.208z" clip-rule="evenodd" /></svg>',send:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/></svg>',gesture:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1H21v-2.5h-2.47c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3 5.12 3 3.97 4 3.72 4.25c-.36.36-.66.66-.88.93l1.75 1.71zm9.29 11.66c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z"/></svg>',clear:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',check_circle:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>',link:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/></svg>',cancel:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/></svg>',done_all:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"/></svg>',create:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>',perm_identity:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>',people:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>',contact_email:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M21 8V7l-3 2-3-2v1l3 2 3-2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1zm8-6h-8V6h8v6z"/></svg>',textsms:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/></svg>',verified_user:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M12.516 2.17a.75.75 0 00-1.032 0 11.209 11.209 0 01-7.877 3.08.75.75 0 00-.722.515A12.74 12.74 0 002.25 9.75c0 5.942 4.064 10.933 9.563 12.348a.749.749 0 00.374 0c5.499-1.415 9.563-6.406 9.563-12.348 0-1.39-.223-2.73-.635-3.985a.75.75 0 00-.722-.516l-.143.001c-2.996 0-5.717-1.17-7.734-3.08zm3.094 8.016a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z" clip-rule="evenodd" /></svg>',account_circle:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"/></svg>'},g=class{constructor(s){e(this,s),this.sdkError=i(this,"sdkError",7),this.envelopeUpdated=i(this,"envelopeUpdated",7),this.toggle=i(this,"toggle",7),this.another=i(this,"another",7),this.store=null,this.endpoint=a.getDefault(),this.envelopeId="",this.activeTab=1,this.panelOpen=!1,this.showManageDialog=!1,this.showRecipientDialog="",this.showCancelDialog=!1,this.loading=!0}async componentWillLoad(){var e,i,s;try{if(this.endpoint.loadSession(),!this.envelopeId)return void console.log(`[SIDEBAR] Missing required envelope ID ${this.envelopeId}`);if(!this.endpoint.session)return void console.log("[SIDEBAR] Unable to start session, must be authenticated");this.store=await d(this.endpoint,this.envelopeId,!0),this.sortEnvelopeRecipients(),this.loading=!1}catch(t){console.log("[SIDEBAR] Error loading envelope",t),null===(e=this.sdkError)||void 0===e||e.emit(new v(t.message,null===(i=t.response)||void 0===i?void 0:i.status,null===(s=t.response)||void 0===s?void 0:s.data))}}sortEnvelopeRecipients(){var e,i;null===(i=null===(e=this.store)||void 0===e?void 0:e.state)||void 0===i||i.recipients.sort(((e,i)=>e.sequence===i.sequence?e.order-i.order:e.sequence-i.sequence))}setTab(e){var i;this.panelOpen=e!==this.activeTab||!this.panelOpen,null===(i=this.toggle)||void 0===i||i.emit({open:this.panelOpen}),this.activeTab=e}canResendRecipient(e){var i,s;return!["pending","declined","submitted","canceled"].includes(e.status)&&!["complete","declined","canceled"].includes(null===(s=null===(i=this.store)||void 0===i?void 0:i.state)||void 0===s?void 0:s.status)}handleRecipientAction(e,i){var s,t;switch(console.log("[SIDEBAR] Recipient action",i,e),i){case"reminder":l(this.endpoint,this.envelopeId,e.role_name).then((()=>{c("Reminder Sent",{style:"success"})})).catch((e=>{console.log("[SIDEBAR] Error resending invitation",e),c("Error resending invitation: "+e.message,{style:"error"})}));break;case"inperson":this.showRecipientDialog=e.role_name;break;case"modify":case"details":c("This feature will be enabled in a future release. Please try again later.",{style:"info"})}null===(s=this.envelopeUpdated)||void 0===s||s.emit({endpoint:this.endpoint,envelope:null===(t=this.store)||void 0===t?void 0:t.state,event:i})}cancelEnvelope(){n(this.endpoint,this.envelopeId).then((async e=>{var i,s;console.log("[SIDEBAR] Envelope canceled",e),c("Envelope canceled",{style:"success"}),this.store=await d(this.endpoint,this.envelopeId,!0),this.sortEnvelopeRecipients(),null===(i=this.envelopeUpdated)||void 0===i||i.emit({endpoint:this.endpoint,envelope:null===(s=this.store)||void 0===s?void 0:s.state,event:"canceled"})})).catch((e=>{console.log("[SIDEBAR] Error canceling envelope",e),c("Error canceling envelope: "+e.message,{style:"error"})}))}prepareHistoryEntries(){var e,i,s,t,n,o,l,a,d,r,c,v;const p=[],h=(null===(i=null===(e=this.store)||void 0===e?void 0:e.state)||void 0===i?void 0:i.histories)||[];p.push({icon:"pencil",message:"Envelope created.",date:new Date(null===(t=null===(s=this.store)||void 0===s?void 0:s.state)||void 0===t?void 0:t.created_at)}),"complete"===(null===(o=null===(n=this.store)||void 0===n?void 0:n.state)||void 0===o?void 0:o.status)&&p.push({icon:"pencil",message:"Envelope completed.",date:new Date(null===(a=null===(l=this.store)||void 0===l?void 0:l.state)||void 0===a?void 0:a.updated_at)});const g=h.some((e=>"owner:canceled"===e.event));return"canceled"!==(null===(r=null===(d=this.store)||void 0===d?void 0:d.state)||void 0===r?void 0:r.status)||g||p.push({icon:"pencil",message:"Envelope Cancelled.",date:new Date(null===(v=null===(c=this.store)||void 0===c?void 0:c.state)||void 0===v?void 0:v.canceled_at)}),h.forEach((e=>{var i;const s=null===(i=this.store.state)||void 0===i?void 0:i.recipients.find((i=>i.role_name===e.role_name)),t=(null==s?void 0:s.full_name)||"";switch(e.event.toLowerCase()){case"recipient:signed":p.push({icon:"gesture",message:`Signed by ${t}.`,date:new Date(e.created_at)});break;case"recipient:declined":p.push({icon:"clear",message:`Declined by ${t}.`,date:new Date(e.created_at)});break;case"recipient:opened":switch(e.event_detail){case"email":case"mail":p.push({icon:"visibility",message:`Opened by ${t}, via email.`,date:new Date(e.created_at)});break;case"sms":p.push({icon:"visibility",message:`Opened by ${t}, via SMS.`,date:new Date(e.created_at)});break;case"in_person_link":p.push({icon:"visibility",message:`Opened by ${t}, via In-person link.`,date:new Date(e.created_at)});break;case"in_app":p.push({icon:"visibility",message:`Opened by ${t}, via dashboard.`,date:new Date(e.created_at)});break;default:p.push({icon:"visibility",message:`Opened by ${t}.`,date:new Date(e.created_at)})}break;case"recipient:submitted":switch(e.event_detail){case"approver":p.push({icon:"check_circle",message:`Approved by ${t}.`,date:new Date(e.created_at)});break;default:p.push({icon:"send",message:`Submitted by ${t}.`,date:new Date(e.created_at)})}break;case"recipient:prepared":p.push({icon:"send",message:`Prepared by ${t}.`,date:new Date(e.created_at)});break;case"recipient:claimed":"guest"===e.event_detail?p.push({icon:"account_circle",message:`${t} claimed the Verdoc as a guest.`,date:new Date(e.created_at)}):"profile"===e.event_detail&&p.push({icon:"verified_user",message:`${t} claimed the Verdoc as a verified user.`,date:new Date(e.created_at)});break;case"recipient:agreed":p.push({icon:"done",message:`${t} agreed to use electronic records and signatures.`,date:new Date(e.created_at)});break;case"recipient:invited":p.push("sms"===e.event_detail?{icon:"textsms",message:`${t} has been invited via SMS.`,date:new Date(e.created_at)}:{icon:"mail",message:`${t} has been invited via email.`,date:new Date(e.created_at)});break;case"invitation:resent":p.push({icon:"mail",message:`Invitation was resent to ${t} ${"reminder"===e.event_detail?" by reminder":""}.`,date:new Date(e.created_at)});break;case"envelope:cc":p.push({icon:"contact_mail",message:`A copy has been sent to ${t}.`,date:new Date(e.created_at)});break;case"recipient:delegated":p.push({icon:"people",message:e.event_detail,date:new Date(e.created_at)});break;case"recipient:updated_info":case"owner:updated_recipient_info":p.push({icon:"perm_identity",message:e.event_detail,date:new Date(e.created_at)});break;case"created":p.push({icon:"create",message:"Envelope was created.",date:new Date(e.created_at)});break;case"completed":p.push({icon:"done_all",message:"Envelope was completed.",date:new Date(e.created_at)});break;case"canceled":case"owner:canceled":p.push({icon:"cancel",message:"Envelope was canceled by the creator.",date:new Date(e.created_at)});break;case"owner:get_in_person_link":p.push({icon:"link",message:`Owner accessed the In-person link for ${s}.`,date:new Date(e.created_at)});break;default:console.log("[SIDEBAR] Unknown history type",e)}})),p.sort(((e,i)=>i.date.getTime()-e.date.getTime())),p}render(){var e,i,n,l,a,d,c,v,g,m,w,b,x,f,u,y,z,k,M,D,V,B,E,L,H;if(!this.store.state)return s(t,null);const S=this.endpoint.getSession(),_=o(S,this.store.state),$=this.prepareHistoryEntries(),I="pending"!==(null===(i=null===(e=this.store)||void 0===e?void 0:e.state)||void 0===i?void 0:i.status)&&"in progress"!==(null===(l=null===(n=this.store)||void 0===n?void 0:n.state)||void 0===l?void 0:l.status);return s(t,{class:this.panelOpen?"open":""},s("div",{class:"side-buttons"},s("button",{class:1===this.activeTab?"active":"",onClick:()=>this.setTab(1),innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z" /></svg>'}),s("button",{class:2===this.activeTab?"active":"",onClick:()=>this.setTab(2),innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z" /></svg>'}),s("button",{class:3===this.activeTab?"active":"",onClick:()=>this.setTab(3),innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z" /></svg>'})),1===this.activeTab&&s("div",{class:"content"},s("div",{class:"title"},"Details"),s("div",{class:"label"},"Envelope ID"),s("div",{class:"value"},null===(d=null===(a=this.store)||void 0===a?void 0:a.state)||void 0===d?void 0:d.id),s("div",{class:"label"},"Date Created"),s("div",{class:"value"},p(new Date(null===(v=null===(c=this.store)||void 0===c?void 0:c.state)||void 0===v?void 0:v.created_at),r)),s("div",{class:"label"},"Last Modified"),s("div",{class:"value"},p(new Date(null===(m=null===(g=this.store)||void 0===g?void 0:g.state)||void 0===m?void 0:m.updated_at),r)),s("div",{class:"label"},"Status"),s("div",{class:"value"},null===(b=null===(w=this.store)||void 0===w?void 0:w.state)||void 0===b?void 0:b.status),s("div",{class:"label"},"Verdoc Owner ID"),s("div",{class:"value"},null===(f=null===(x=this.store)||void 0===x?void 0:x.state)||void 0===f?void 0:f.profile_id),s("div",{class:"label"},"Verdoc Owner Name"),s("div",{class:"value"},null===(z=null===(y=null===(u=this.store)||void 0===u?void 0:u.state)||void 0===y?void 0:y.profile)||void 0===z?void 0:z.first_name," ",null===(D=null===(M=null===(k=this.store)||void 0===k?void 0:k.state)||void 0===M?void 0:M.profile)||void 0===D?void 0:D.last_name),s("div",{class:"label"},"Verdoc Owner Email"),s("div",{class:"value"},null===(E=null===(B=null===(V=this.store)||void 0===V?void 0:V.state)||void 0===B?void 0:B.profile)||void 0===E?void 0:E.email)),2===this.activeTab&&s("div",{class:"content"},s("div",{class:"title"},"Recipients"),null===(H=null===(L=this.store)||void 0===L?void 0:L.state)||void 0===H?void 0:H.recipients.map(((e,i)=>{const t="submitted"!==e.status&&"canceled"!==e.status&&"declined"!==e.status,n=this.canResendRecipient(e);return s("div",{class:"recipient-detail"},s("div",{class:"recipient-header"},s("div",{class:"recipient-number"},i+1),s("div",{class:"recipient-type"},e.role_name),s("div",{class:{"recipient-status":!0,[e.status]:!0}},e.status),_&&!I&&s("verdocs-dropdown",{onOptionSelected:i=>this.handleRecipientAction(e,i.detail.id),options:[{id:"reminder",label:"Send Reminder",disabled:!n},{id:"inperson",label:"Get In-Person Link",disabled:!t}]})),s("dic",{class:"recipient-content"},s("div",{class:"recipient-name"},e.full_name),s("div",{class:"recipient-name"},e.email),s("div",{class:"recipient-name"},e.phone)))})),_&&s("verdocs-button",{class:"manage-recipients-button",variant:"standard",label:"Turn On Reminders",onClick:()=>this.showManageDialog=!I,disabled:I}),_&&s("verdocs-button",{class:"manage-recipients-button",variant:"standard",label:"Cancel Verdoc",onClick:()=>this.showCancelDialog=!I,disabled:I})),3===this.activeTab&&s("div",{class:"content"},s("div",{class:"title"},"History"),$.map((e=>s("div",{class:"history-entry"},s("div",{class:"activity-icon",innerHTML:h[e.icon]||e.icon}),s("div",{class:"activity-details"},s("div",{class:"activity-text"},e.message),s("div",{class:"activity-date"},p(e.date,r))))))),this.showRecipientDialog&&s("verdocs-envelope-recipient-link",{envelopeId:this.envelopeId,roleName:this.showRecipientDialog,onNext:()=>this.showRecipientDialog=""}),this.showManageDialog&&s("verdocs-envelope-recipient-summary",{envelopeId:this.envelopeId,canView:!1,onAnother:()=>{var e;this.showManageDialog=!1,null===(e=this.another)||void 0===e||e.emit({envelope:this.store.state})},onNext:()=>this.showManageDialog=!1}),this.showCancelDialog&&s("verdocs-ok-dialog",{heading:"Cancel Envelope?",message:"Are you sure you want to cancel this Envelope? This action cannot be undone.",onNext:()=>{this.showCancelDialog=!1,this.cancelEnvelope()}}))}};g.style='verdocs-envelope-sidebar{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex;-ms-flex:0 0 56px;flex:0 0 56px;width:56px;min-height:400px;height:100%;background:#41435e;-webkit-transition:0.5s cubic-bezier(0.35, 0, 0.25, 1);transition:0.5s cubic-bezier(0.35, 0, 0.25, 1)}verdocs-envelope-sidebar.open{-ms-flex:0 0 400px;flex:0 0 400px;width:400px}verdocs-envelope-sidebar .side-buttons{-ms-flex-direction:column;flex-direction:column;-ms-flex:0 0 56px;flex:0 0 56px;display:-ms-flexbox;display:flex}verdocs-envelope-sidebar .side-buttons button{height:50px;outline:none;border:none;border-left:2px solid transparent;background:none;width:100%}verdocs-envelope-sidebar .side-buttons button.active{border-left:2px solid #50bd80}verdocs-envelope-sidebar .side-buttons button svg{color:white;width:24px;height:24px}verdocs-envelope-sidebar .content{-ms-flex:1;flex:1;display:none;color:white;-ms-flex-direction:column;flex-direction:column;padding:12px 16px 16px}verdocs-envelope-sidebar.open .content{display:-ms-flexbox;display:flex;overflow-y:scroll}verdocs-envelope-sidebar verdocs-ok-dialog .content{color:black}verdocs-envelope-sidebar .title{margin-bottom:12px;font-size:16px;line-height:24px;font-weight:400;-ms-flex:0;flex:0}verdocs-envelope-sidebar .label{font-size:12px;line-height:16px;color:rgba(255, 255, 255, 0.54);-ms-flex:0;flex:0}verdocs-envelope-sidebar .value{margin-bottom:14px;font-size:14px;font-weight:500;line-height:16px;color:#fff;-ms-flex:0;flex:0}verdocs-envelope-sidebar .manage-recipients-button{-ms-flex-item-align:center;align-self:center;white-space:nowrap;width:100%;margin:0 0 10px 0}verdocs-envelope-sidebar .manage-recipients-button .label{color:#ffffff;font-size:14px}verdocs-envelope-sidebar .manage-recipients-button button{width:100%}verdocs-envelope-sidebar .recipient-detail{-ms-flex:0;flex:0;padding:8px;position:relative;-ms-flex-direction:column;flex-direction:column;border:solid 1px #979797;margin-bottom:16px}verdocs-envelope-sidebar .recipient-header{-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;place-content:center space-between;-ms-flex-align:center;align-items:center;margin-bottom:4px}verdocs-envelope-sidebar .recipient-number{width:24px;height:24px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:24px;font-size:14px;font-weight:500;margin-right:10px;border:solid 1px #979797}verdocs-envelope-sidebar .recipient-type{-ms-flex:1 1 88px;flex:1 1 88px;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:88px;min-width:88px;text-transform:capitalize}verdocs-envelope-sidebar .recipient-status{-ms-flex:1 1 100px;flex:1 1 100px;border-radius:5px;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100px;min-width:100px;background-color:#616161;text-transform:capitalize;font-size:14px;padding:3px 0}verdocs-envelope-sidebar .recipient-status.invited{background-color:#ff8f00}verdocs-envelope-sidebar .recipient-status.opened{background-color:#616161}verdocs-envelope-sidebar .recipient-status.signed,verdocs-envelope-sidebar .recipient-status.submitted{background-color:#2e7d32}verdocs-envelope-sidebar .recipient-status.pending{background-color:#0277bd}verdocs-envelope-sidebar .recipient-status.canceled,verdocs-envelope-sidebar .recipient-status.declined{background-color:#c62828}verdocs-envelope-sidebar .recipient-content{-ms-flex-direction:column;flex-direction:column}verdocs-envelope-sidebar .history-entry{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;padding:8px 0 0;margin:8px 0 0;border-top:1px solid #dddddd}verdocs-envelope-sidebar .history-entry .activity-icon{margin-right:14px}verdocs-envelope-sidebar .history-entry .activity-icon svg{width:24px;height:24px;fill:#ffffff}verdocs-envelope-sidebar .history-entry .activity-text{font-size:14px;line-height:16px;margin-bottom:4px}verdocs-envelope-sidebar .history-entry .activity-date{font-size:12px;line-height:16px;color:rgba(255, 255, 255, 0.54)}verdocs-envelope-sidebar .content .history-entry:first-of-type{border-top:none}';export{g as verdocs_envelope_sidebar}
1
+ import{r as e,c as i,h as s,H as t}from"./p-876d3ff3.js";import{c as n}from"./p-0de7f044.js";import{u as o}from"./p-29f64c27.js";import{r as l}from"./p-3cd894ff.js";import"./p-05788c2b.js";import{V as a}from"./p-2174e539.js";import{g as d}from"./p-22a86241.js";import{F as r}from"./p-de60d3a8.js";import{V as c}from"./p-ed416acf.js";import{S as v}from"./p-7a1b2643.js";import{f as p}from"./p-c220af42.js";import"./p-85d0e79d.js";const h={visibility:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M12 15a3 3 0 100-6 3 3 0 000 6z" /><path fill-rule="evenodd" d="M1.323 11.447C2.811 6.976 7.028 3.75 12.001 3.75c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113-1.487 4.471-5.705 7.697-10.677 7.697-4.97 0-9.186-3.223-10.675-7.69a1.762 1.762 0 010-1.113zM17.25 12a5.25 5.25 0 11-10.5 0 5.25 5.25 0 0110.5 0z" clip-rule="evenodd" /></svg>',pencil:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M21.731 2.269a2.625 2.625 0 00-3.712 0l-1.157 1.157 3.712 3.712 1.157-1.157a2.625 2.625 0 000-3.712zM19.513 8.199l-3.712-3.712-12.15 12.15a5.25 5.25 0 00-1.32 2.214l-.8 2.685a.75.75 0 00.933.933l2.685-.8a5.25 5.25 0 002.214-1.32L19.513 8.2z" /></svg>',mail:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>',done:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M19.916 4.626a.75.75 0 01.208 1.04l-9 13.5a.75.75 0 01-1.154.114l-6-6a.75.75 0 011.06-1.06l5.353 5.353 8.493-12.739a.75.75 0 011.04-.208z" clip-rule="evenodd" /></svg>',send:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/></svg>',gesture:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1H21v-2.5h-2.47c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3 5.12 3 3.97 4 3.72 4.25c-.36.36-.66.66-.88.93l1.75 1.71zm9.29 11.66c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z"/></svg>',clear:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',check_circle:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>',link:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/></svg>',cancel:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/></svg>',done_all:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"/></svg>',create:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>',perm_identity:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>',people:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>',contact_email:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M21 8V7l-3 2-3-2v1l3 2 3-2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1zm8-6h-8V6h8v6z"/></svg>',textsms:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/></svg>',verified_user:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M12.516 2.17a.75.75 0 00-1.032 0 11.209 11.209 0 01-7.877 3.08.75.75 0 00-.722.515A12.74 12.74 0 002.25 9.75c0 5.942 4.064 10.933 9.563 12.348a.749.749 0 00.374 0c5.499-1.415 9.563-6.406 9.563-12.348 0-1.39-.223-2.73-.635-3.985a.75.75 0 00-.722-.516l-.143.001c-2.996 0-5.717-1.17-7.734-3.08zm3.094 8.016a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z" clip-rule="evenodd" /></svg>',account_circle:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"/></svg>'},g=class{constructor(s){e(this,s),this.sdkError=i(this,"sdkError",7),this.envelopeUpdated=i(this,"envelopeUpdated",7),this.toggle=i(this,"toggle",7),this.another=i(this,"another",7),this.store=null,this.endpoint=a.getDefault(),this.envelopeId="",this.activeTab=1,this.panelOpen=!1,this.showManageDialog=!1,this.showRecipientDialog="",this.showCancelDialog=!1,this.loading=!0}async componentWillLoad(){var e,i,s;try{if(this.endpoint.loadSession(),!this.envelopeId)return void console.log(`[SIDEBAR] Missing required envelope ID ${this.envelopeId}`);if(!this.endpoint.session)return void console.log("[SIDEBAR] Unable to start session, must be authenticated");this.store=await d(this.endpoint,this.envelopeId,!0),this.sortEnvelopeRecipients(),this.loading=!1}catch(t){console.log("[SIDEBAR] Error loading envelope",t),null===(e=this.sdkError)||void 0===e||e.emit(new v(t.message,null===(i=t.response)||void 0===i?void 0:i.status,null===(s=t.response)||void 0===s?void 0:s.data))}}sortEnvelopeRecipients(){var e,i;null===(i=null===(e=this.store)||void 0===e?void 0:e.state)||void 0===i||i.recipients.sort(((e,i)=>e.sequence===i.sequence?e.order-i.order:e.sequence-i.sequence))}setTab(e){var i;this.panelOpen=e!==this.activeTab||!this.panelOpen,null===(i=this.toggle)||void 0===i||i.emit({open:this.panelOpen}),this.activeTab=e}canResendRecipient(e){var i,s;return!["pending","declined","submitted","canceled"].includes(e.status)&&!["complete","declined","canceled"].includes(null===(s=null===(i=this.store)||void 0===i?void 0:i.state)||void 0===s?void 0:s.status)}handleRecipientAction(e,i){var s,t;switch(console.log("[SIDEBAR] Recipient action",i,e),i){case"reminder":l(this.endpoint,this.envelopeId,e.role_name).then((()=>{c("Reminder Sent",{style:"success"})})).catch((e=>{console.log("[SIDEBAR] Error resending invitation",e),c("Error resending invitation: "+e.message,{style:"error"})}));break;case"inperson":this.showRecipientDialog=e.role_name;break;case"modify":case"details":c("This feature will be enabled in a future release. Please try again later.",{style:"info"})}null===(s=this.envelopeUpdated)||void 0===s||s.emit({endpoint:this.endpoint,envelope:null===(t=this.store)||void 0===t?void 0:t.state,event:i})}cancelEnvelope(){n(this.endpoint,this.envelopeId).then((async e=>{var i,s;console.log("[SIDEBAR] Envelope canceled",e),c("Envelope canceled",{style:"success"}),this.store=await d(this.endpoint,this.envelopeId,!0),this.sortEnvelopeRecipients(),null===(i=this.envelopeUpdated)||void 0===i||i.emit({endpoint:this.endpoint,envelope:null===(s=this.store)||void 0===s?void 0:s.state,event:"canceled"})})).catch((e=>{console.log("[SIDEBAR] Error canceling envelope",e),c("Error canceling envelope: "+e.message,{style:"error"})}))}prepareHistoryEntries(){var e,i,s,t,n,o,l,a,d,r,c,v;const p=[],h=(null===(i=null===(e=this.store)||void 0===e?void 0:e.state)||void 0===i?void 0:i.histories)||[];p.push({icon:"pencil",message:"Envelope created.",date:new Date(null===(t=null===(s=this.store)||void 0===s?void 0:s.state)||void 0===t?void 0:t.created_at)}),"complete"===(null===(o=null===(n=this.store)||void 0===n?void 0:n.state)||void 0===o?void 0:o.status)&&p.push({icon:"pencil",message:"Envelope completed.",date:new Date(null===(a=null===(l=this.store)||void 0===l?void 0:l.state)||void 0===a?void 0:a.updated_at)});const g=h.some((e=>"owner:canceled"===e.event));return"canceled"!==(null===(r=null===(d=this.store)||void 0===d?void 0:d.state)||void 0===r?void 0:r.status)||g||p.push({icon:"pencil",message:"Envelope Cancelled.",date:new Date(null===(v=null===(c=this.store)||void 0===c?void 0:c.state)||void 0===v?void 0:v.canceled_at)}),h.forEach((e=>{var i;const s=null===(i=this.store.state)||void 0===i?void 0:i.recipients.find((i=>i.role_name===e.role_name)),t=(null==s?void 0:s.full_name)||"";switch(e.event.toLowerCase()){case"recipient:signed":p.push({icon:"gesture",message:`Signed by ${t}.`,date:new Date(e.created_at)});break;case"recipient:declined":p.push({icon:"clear",message:`Declined by ${t}.`,date:new Date(e.created_at)});break;case"recipient:opened":switch(e.event_detail){case"email":case"mail":p.push({icon:"visibility",message:`Opened by ${t}, via email.`,date:new Date(e.created_at)});break;case"sms":p.push({icon:"visibility",message:`Opened by ${t}, via SMS.`,date:new Date(e.created_at)});break;case"in_person_link":p.push({icon:"visibility",message:`Opened by ${t}, via In-person link.`,date:new Date(e.created_at)});break;case"in_app":p.push({icon:"visibility",message:`Opened by ${t}, via dashboard.`,date:new Date(e.created_at)});break;default:p.push({icon:"visibility",message:`Opened by ${t}.`,date:new Date(e.created_at)})}break;case"recipient:submitted":switch(e.event_detail){case"approver":p.push({icon:"check_circle",message:`Approved by ${t}.`,date:new Date(e.created_at)});break;default:p.push({icon:"send",message:`Submitted by ${t}.`,date:new Date(e.created_at)})}break;case"recipient:prepared":p.push({icon:"send",message:`Prepared by ${t}.`,date:new Date(e.created_at)});break;case"recipient:claimed":"guest"===e.event_detail?p.push({icon:"account_circle",message:`${t} claimed the Verdoc as a guest.`,date:new Date(e.created_at)}):"profile"===e.event_detail&&p.push({icon:"verified_user",message:`${t} claimed the Verdoc as a verified user.`,date:new Date(e.created_at)});break;case"recipient:agreed":p.push({icon:"done",message:`${t} agreed to use electronic records and signatures.`,date:new Date(e.created_at)});break;case"recipient:invited":p.push("sms"===e.event_detail?{icon:"textsms",message:`${t} has been invited via SMS.`,date:new Date(e.created_at)}:{icon:"mail",message:`${t} has been invited via email.`,date:new Date(e.created_at)});break;case"invitation:resent":p.push({icon:"mail",message:`Invitation was resent to ${t} ${"reminder"===e.event_detail?" by reminder":""}.`,date:new Date(e.created_at)});break;case"envelope:cc":p.push({icon:"contact_mail",message:`A copy has been sent to ${t}.`,date:new Date(e.created_at)});break;case"recipient:delegated":p.push({icon:"people",message:e.event_detail,date:new Date(e.created_at)});break;case"recipient:updated_info":case"owner:updated_recipient_info":p.push({icon:"perm_identity",message:e.event_detail,date:new Date(e.created_at)});break;case"created":p.push({icon:"create",message:"Envelope was created.",date:new Date(e.created_at)});break;case"completed":p.push({icon:"done_all",message:"Envelope was completed.",date:new Date(e.created_at)});break;case"canceled":case"owner:canceled":p.push({icon:"cancel",message:"Envelope was canceled by the creator.",date:new Date(e.created_at)});break;case"owner:get_in_person_link":p.push({icon:"link",message:`Owner accessed the In-person link for ${s}.`,date:new Date(e.created_at)});break;default:console.log("[SIDEBAR] Unknown history type",e)}})),p.sort(((e,i)=>i.date.getTime()-e.date.getTime())),p}render(){var e,i,n,l,a,d,c,v,g,m,w,b,x,f,u,y,z,k,M,D,V,B,E,L,H;if(!this.store.state)return s(t,null);const S=this.endpoint.getSession(),_=o(S,this.store.state),$=this.prepareHistoryEntries(),I="pending"!==(null===(i=null===(e=this.store)||void 0===e?void 0:e.state)||void 0===i?void 0:i.status)&&"in progress"!==(null===(l=null===(n=this.store)||void 0===n?void 0:n.state)||void 0===l?void 0:l.status);return s(t,{class:this.panelOpen?"open":""},s("div",{class:"side-buttons"},s("button",{class:1===this.activeTab?"active":"",onClick:()=>this.setTab(1),innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z" /></svg>'}),s("button",{class:2===this.activeTab?"active":"",onClick:()=>this.setTab(2),innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z" /></svg>'}),s("button",{class:3===this.activeTab?"active":"",onClick:()=>this.setTab(3),innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z" /></svg>'})),1===this.activeTab&&s("div",{class:"content"},s("div",{class:"title"},"Details"),s("div",{class:"label"},"Envelope ID"),s("div",{class:"value"},null===(d=null===(a=this.store)||void 0===a?void 0:a.state)||void 0===d?void 0:d.id),s("div",{class:"label"},"Date Created"),s("div",{class:"value"},p(new Date(null===(v=null===(c=this.store)||void 0===c?void 0:c.state)||void 0===v?void 0:v.created_at),r)),s("div",{class:"label"},"Last Modified"),s("div",{class:"value"},p(new Date(null===(m=null===(g=this.store)||void 0===g?void 0:g.state)||void 0===m?void 0:m.updated_at),r)),s("div",{class:"label"},"Status"),s("div",{class:"value"},null===(b=null===(w=this.store)||void 0===w?void 0:w.state)||void 0===b?void 0:b.status),s("div",{class:"label"},"Verdoc Owner ID"),s("div",{class:"value"},null===(f=null===(x=this.store)||void 0===x?void 0:x.state)||void 0===f?void 0:f.profile_id),s("div",{class:"label"},"Verdoc Owner Name"),s("div",{class:"value"},null===(z=null===(y=null===(u=this.store)||void 0===u?void 0:u.state)||void 0===y?void 0:y.profile)||void 0===z?void 0:z.first_name," ",null===(D=null===(M=null===(k=this.store)||void 0===k?void 0:k.state)||void 0===M?void 0:M.profile)||void 0===D?void 0:D.last_name),s("div",{class:"label"},"Verdoc Owner Email"),s("div",{class:"value"},null===(E=null===(B=null===(V=this.store)||void 0===V?void 0:V.state)||void 0===B?void 0:B.profile)||void 0===E?void 0:E.email)),2===this.activeTab&&s("div",{class:"content"},s("div",{class:"title"},"Recipients"),null===(H=null===(L=this.store)||void 0===L?void 0:L.state)||void 0===H?void 0:H.recipients.map(((e,i)=>{const t="submitted"!==e.status&&"canceled"!==e.status&&"declined"!==e.status,n=this.canResendRecipient(e);return s("div",{class:"recipient-detail"},s("div",{class:"recipient-header"},s("div",{class:"recipient-number"},i+1),s("div",{class:"recipient-type"},e.role_name),s("div",{class:{"recipient-status":!0,[e.status]:!0}},e.status),_&&!I&&s("verdocs-dropdown",{onOptionSelected:i=>this.handleRecipientAction(e,i.detail.id),options:[{id:"reminder",label:"Send Reminder",disabled:!n},{id:"inperson",label:"Get In-Person Link",disabled:!t}]})),s("dic",{class:"recipient-content"},s("div",{class:"recipient-name"},e.full_name),s("div",{class:"recipient-name"},e.email),s("div",{class:"recipient-name"},e.phone)))})),_&&s("verdocs-button",{class:"manage-recipients-button",variant:"standard",label:"Turn On Reminders",onClick:()=>this.showManageDialog=!I,disabled:I}),_&&s("verdocs-button",{class:"manage-recipients-button",variant:"standard",label:"Cancel Verdoc",onClick:()=>this.showCancelDialog=!I,disabled:I})),3===this.activeTab&&s("div",{class:"content"},s("div",{class:"title"},"History"),$.map((e=>s("div",{class:"history-entry"},s("div",{class:"activity-icon",innerHTML:h[e.icon]||e.icon}),s("div",{class:"activity-details"},s("div",{class:"activity-text"},e.message),s("div",{class:"activity-date"},p(e.date,r))))))),this.showRecipientDialog&&s("verdocs-envelope-recipient-link",{envelopeId:this.envelopeId,roleName:this.showRecipientDialog,onNext:()=>this.showRecipientDialog=""}),this.showManageDialog&&s("verdocs-envelope-recipient-summary",{envelopeId:this.envelopeId,canView:!1,onAnother:()=>{var e;this.showManageDialog=!1,null===(e=this.another)||void 0===e||e.emit({envelope:this.store.state})},onNext:()=>this.showManageDialog=!1}),this.showCancelDialog&&s("verdocs-ok-dialog",{heading:"Cancel Envelope?",message:"Are you sure you want to cancel this Envelope? This action cannot be undone.",onNext:()=>{this.showCancelDialog=!1,this.cancelEnvelope()}}))}};g.style='verdocs-envelope-sidebar{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex;-ms-flex:0 0 56px;flex:0 0 56px;width:56px;min-height:400px;height:100%;background:#41435e;-webkit-transition:0.5s cubic-bezier(0.35, 0, 0.25, 1);transition:0.5s cubic-bezier(0.35, 0, 0.25, 1)}verdocs-envelope-sidebar.open{-ms-flex:0 0 400px;flex:0 0 400px;width:400px}verdocs-envelope-sidebar .side-buttons{-ms-flex-direction:column;flex-direction:column;-ms-flex:0 0 56px;flex:0 0 56px;display:-ms-flexbox;display:flex}verdocs-envelope-sidebar .side-buttons button{height:50px;outline:none;border:none;border-left:2px solid transparent;background:none;width:100%}verdocs-envelope-sidebar .side-buttons button.active{border-left:2px solid #50bd80}verdocs-envelope-sidebar .side-buttons button svg{color:white;width:24px;height:24px}verdocs-envelope-sidebar .content{-ms-flex:1;flex:1;display:none;color:white;-ms-flex-direction:column;flex-direction:column;padding:12px 16px 16px}verdocs-envelope-sidebar.open .content{display:-ms-flexbox;display:flex;overflow-y:scroll}verdocs-envelope-sidebar verdocs-ok-dialog .content{color:black}verdocs-envelope-sidebar .title{margin-bottom:12px;font-size:16px;line-height:24px;font-weight:400;-ms-flex:0;flex:0}verdocs-envelope-sidebar .label{font-size:12px;line-height:16px;color:rgba(255, 255, 255, 0.54);-ms-flex:0;flex:0}verdocs-envelope-sidebar .value{margin-bottom:14px;font-size:14px;font-weight:500;line-height:16px;color:#fff;-ms-flex:0;flex:0}verdocs-envelope-sidebar .manage-recipients-button{-ms-flex-item-align:center;align-self:center;white-space:nowrap;width:100%;margin:0 0 10px 0}verdocs-envelope-sidebar .manage-recipients-button .label{color:#ffffff;font-size:14px}verdocs-envelope-sidebar .manage-recipients-button button{width:100%}verdocs-envelope-sidebar .recipient-detail{-ms-flex:0;flex:0;padding:8px;position:relative;-ms-flex-direction:column;flex-direction:column;border:solid 1px #979797;margin-bottom:16px}verdocs-envelope-sidebar .recipient-header{-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;place-content:center space-between;-ms-flex-align:center;align-items:center;margin-bottom:4px}verdocs-envelope-sidebar .recipient-number{width:24px;height:24px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:24px;font-size:14px;font-weight:500;margin-right:10px;border:solid 1px #979797}verdocs-envelope-sidebar .recipient-type{-ms-flex:1 1 88px;flex:1 1 88px;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:88px;min-width:88px;text-transform:capitalize}verdocs-envelope-sidebar .recipient-status{-ms-flex:1 1 100px;flex:1 1 100px;border-radius:5px;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100px;min-width:100px;background-color:#616161;text-transform:capitalize;font-size:14px;padding:3px 0}verdocs-envelope-sidebar .recipient-status.invited{background-color:#ff8f00}verdocs-envelope-sidebar .recipient-status.opened{background-color:#616161}verdocs-envelope-sidebar .recipient-status.signed,verdocs-envelope-sidebar .recipient-status.submitted{background-color:#2e7d32}verdocs-envelope-sidebar .recipient-status.pending{background-color:#0277bd}verdocs-envelope-sidebar .recipient-status.canceled,verdocs-envelope-sidebar .recipient-status.declined{background-color:#c62828}verdocs-envelope-sidebar .recipient-content{-ms-flex-direction:column;flex-direction:column}verdocs-envelope-sidebar .history-entry{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;padding:8px 0 0;margin:8px 0 0;border-top:1px solid #dddddd}verdocs-envelope-sidebar .history-entry .activity-icon{margin-right:14px}verdocs-envelope-sidebar .history-entry .activity-icon svg{width:24px;height:24px;fill:#ffffff}verdocs-envelope-sidebar .history-entry .activity-text{font-size:14px;line-height:16px;margin-bottom:4px}verdocs-envelope-sidebar .history-entry .activity-date{font-size:12px;line-height:16px;color:rgba(255, 255, 255, 0.54)}verdocs-envelope-sidebar .content .history-entry:first-of-type{border-top:none}';export{g as verdocs_envelope_sidebar}
@@ -1 +1 @@
1
- import{r as s,c as i,h as t,H as e}from"./p-14b44491.js";import"./p-05788c2b.js";import{V as o}from"./p-af048fad.js";import{S as r}from"./p-7a1b2643.js";const n=class{constructor(t){s(this,t),this.sdkError=i(this,"sdkError",7),this.endpoint=o.getDefault(),this.tab="profile"}async componentWillLoad(){var s,i,t;try{if(this.endpoint.loadSession(),!this.endpoint.session)return void console.log("[SETTINGS] Unable to start session, must be authenticated")}catch(e){console.log("[SETTINGS] Error with session",e),null===(s=this.sdkError)||void 0===s||s.emit(new r(e.message,null===(i=e.response)||void 0===i?void 0:i.status,null===(t=e.response)||void 0===t?void 0:t.data))}}render(){return console.log("sess",this.endpoint.session),this.endpoint.session?t(e,null,t("div",{class:"tabs"},t("div",{class:"tab "+("profile"===this.tab?"active":""),onClick:()=>this.tab="profile"},"Profile"),t("div",{class:"tab "+("organization"===this.tab?"active":""),onClick:()=>this.tab="organization"},"Organization"),t("div",{class:"tab "+("members"===this.tab?"active":""),onClick:()=>this.tab="members"},"Members"),t("div",{class:"tab "+("apikeys"===this.tab?"active":""),onClick:()=>this.tab="apikeys"},"API Keys")),"profile"===this.tab&&t("verdocs-settings-profile",{endpoint:this.endpoint}),"organization"===this.tab&&t("verdocs-settings-organization",{endpoint:this.endpoint}),"members"===this.tab&&t("verdocs-settings-members",{endpoint:this.endpoint}),"apikeys"===this.tab&&t("verdocs-settings-api-keys",{endpoint:this.endpoint})):t(e,null,t("verdocs-loader",null))}};n.style='verdocs-settings{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;position:relative;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-settings .tabs{gap:4px;width:100%;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-direction:row;flex-direction:row;border-bottom:1px solid #654dcb}verdocs-settings .tabs .tab{cursor:pointer;padding:5px 10px;color:#ffffff;background-color:#777777}verdocs-settings .tabs .tab.active{color:#ffffff;background-color:#654dcb}';export{n as verdocs_settings}
1
+ import{r as s,c as i,h as t,H as e}from"./p-876d3ff3.js";import"./p-05788c2b.js";import{V as o}from"./p-2174e539.js";import{S as r}from"./p-7a1b2643.js";const n=class{constructor(t){s(this,t),this.sdkError=i(this,"sdkError",7),this.endpoint=o.getDefault(),this.tab="profile"}async componentWillLoad(){var s,i,t;try{if(this.endpoint.loadSession(),!this.endpoint.session)return void console.log("[SETTINGS] Unable to start session, must be authenticated")}catch(e){console.log("[SETTINGS] Error with session",e),null===(s=this.sdkError)||void 0===s||s.emit(new r(e.message,null===(i=e.response)||void 0===i?void 0:i.status,null===(t=e.response)||void 0===t?void 0:t.data))}}render(){return console.log("sess",this.endpoint.session),this.endpoint.session?t(e,null,t("div",{class:"tabs"},t("div",{class:"tab "+("profile"===this.tab?"active":""),onClick:()=>this.tab="profile"},"Profile"),t("div",{class:"tab "+("organization"===this.tab?"active":""),onClick:()=>this.tab="organization"},"Organization"),t("div",{class:"tab "+("members"===this.tab?"active":""),onClick:()=>this.tab="members"},"Members"),t("div",{class:"tab "+("apikeys"===this.tab?"active":""),onClick:()=>this.tab="apikeys"},"API Keys")),"profile"===this.tab&&t("verdocs-settings-profile",{endpoint:this.endpoint}),"organization"===this.tab&&t("verdocs-settings-organization",{endpoint:this.endpoint}),"members"===this.tab&&t("verdocs-settings-members",{endpoint:this.endpoint}),"apikeys"===this.tab&&t("verdocs-settings-api-keys",{endpoint:this.endpoint})):t(e,null,t("verdocs-loader",null))}};n.style='verdocs-settings{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;position:relative;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-settings .tabs{gap:4px;width:100%;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-direction:row;flex-direction:row;border-bottom:1px solid #654dcb}verdocs-settings .tabs .tab{cursor:pointer;padding:5px 10px;color:#ffffff;background-color:#777777}verdocs-settings .tabs .tab.active{color:#ffffff;background-color:#654dcb}';export{n as verdocs_settings}
@@ -0,0 +1 @@
1
+ System.register(["./p-cd61fea7.system.js"],(function(n){"use strict";var e,t;return{setters:[function(n){e=n.g;t=n.f}],execute:function(){var r=function(n,e,t){var r=n.get(e);if(!r){n.set(e,[t])}else if(!r.includes(t)){r.push(t)}};var u=function(n,e){var t;return function(){var r=[];for(var u=0;u<arguments.length;u++){r[u]=arguments[u]}if(t){clearTimeout(t)}t=setTimeout((function(){t=0;n.apply(void 0,r)}),e)}};var i=function(n){return!("isConnected"in n)||n.isConnected};var o=u((function(n){for(var e=0,t=n.keys();e<t.length;e++){var r=t[e];n.set(r,n.get(r).filter(i))}}),2e3);var f=function(){if(typeof e!=="function"){return{}}var n=new Map;return{dispose:function(){return n.clear()},get:function(t){var u=e();if(u){r(n,t,u)}},set:function(e){var r=n.get(e);if(r){n.set(e,r.filter(t))}o(n)},reset:function(){n.forEach((function(n){return n.forEach(t)}));o(n)}}};var c=function(n){return typeof n==="function"?n():n};var s=function(n,e){if(e===void 0){e=function(n,e){return n!==e}}var t=c(n);var r=new Map(Object.entries(t!==null&&t!==void 0?t:{}));var u={dispose:[],get:[],set:[],reset:[]};var i=function(){var e;r=new Map(Object.entries((e=c(n))!==null&&e!==void 0?e:{}));u.reset.forEach((function(n){return n()}))};var o=function(){u.dispose.forEach((function(n){return n()}));i()};var f=function(n){u.get.forEach((function(e){return e(n)}));return r.get(n)};var s=function(n,t){var i=r.get(n);if(e(t,i,n)){r.set(n,t);u.set.forEach((function(e){return e(n,t,i)}))}};var v=typeof Proxy==="undefined"?{}:new Proxy(t,{get:function(n,e){return f(e)},ownKeys:function(n){return Array.from(r.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(n,e){return r.has(e)},set:function(n,e,t){s(e,t);return true}});var p=function(n,e){u[n].push(e);return function(){a(u[n],e)}};var g=function(e,t){var r=p("set",(function(n,r){if(n===e){t(r)}}));var u=p("reset",(function(){return t(c(n)[e])}));return function(){r();u()}};var h=function(){var n=[];for(var e=0;e<arguments.length;e++){n[e]=arguments[e]}var t=n.reduce((function(n,e){if(e.set){n.push(p("set",e.set))}if(e.get){n.push(p("get",e.get))}if(e.reset){n.push(p("reset",e.reset))}if(e.dispose){n.push(p("dispose",e.dispose))}return n}),[]);return function(){return t.forEach((function(n){return n()}))}};var d=function(n){var e=r.get(n);u.set.forEach((function(t){return t(n,e,e)}))};return{state:v,get:f,set:s,on:p,onChange:g,use:h,dispose:o,reset:i,forceUpdate:d}};var a=function(n,e){var t=n.indexOf(e);if(t>=0){n[t]=n[n.length-1];n.length--}};var v=n("c",(function(n,e){var t=s(n,e);t.use(f());return t}))}}}));
@@ -1 +1 @@
1
- import{r as o,h as t,H as e}from"./p-14b44491.js";const i=class{constructor(t){o(this,t),this.checked=!1,this.name="",this.value="",this.disabled=!1}render(){return t(e,{class:{disabled:this.disabled}},t("input",{type:"radio",value:this.value,name:this.name,id:`verdocs-radio-button-${this.name}-${this.value}`,checked:this.checked,disabled:this.disabled}),t("label",{htmlFor:`verdocs-radio-button-${this.name}-${this.value}`}))}};i.style='verdocs-radio-button{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;width:20px;height:20px;display:block;font-size:11px;position:relative;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left;border-radius:100%}verdocs-radio-button.disabled{opacity:0.5}verdocs-radio-button input[type=radio]{position:absolute;opacity:0}verdocs-radio-button input[type=radio]+label:before{content:"";background:#f5f5fa;border-radius:100%;border:1px solid rgba(0, 0, 0, 0.6);display:inline-block;width:16px;height:16px;position:absolute;left:1px;top:1px;cursor:pointer;text-align:center;-webkit-transition:all 250ms ease;transition:all 250ms ease}verdocs-radio-button input[type=radio]:checked+label:before{background-color:#55bc81;-webkit-box-shadow:inset 0 0 0 2px #f5f5fa;box-shadow:inset 0 0 0 2px #f5f5fa}verdocs-radio-button input[type=radio]:focus+label:before{outline:none;border-color:#55bc81}verdocs-radio-button input[type=radio]:disabled+label:before{-webkit-box-shadow:inset 0 0 0 4px #f5f5fa;box-shadow:inset 0 0 0 4px #f5f5fa;border-color:#a0a0d0;background:#a0a0d0}verdocs-radio-button input[type=radio]+label:empty:before{margin-right:0}verdocs-radio-button.required input[type=radio]+label:before{border:1px solid #cc0000}verdocs-radio-button.hide{display:none}verdocs-radio-button.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}';export{i as verdocs_radio_button}
1
+ import{r as o,h as t,H as e}from"./p-876d3ff3.js";const i=class{constructor(t){o(this,t),this.checked=!1,this.name="",this.value="",this.disabled=!1}render(){return t(e,{class:{disabled:this.disabled}},t("input",{type:"radio",value:this.value,name:this.name,id:`verdocs-radio-button-${this.name}-${this.value}`,checked:this.checked,disabled:this.disabled}),t("label",{htmlFor:`verdocs-radio-button-${this.name}-${this.value}`}))}};i.style='verdocs-radio-button{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;width:20px;height:20px;display:block;font-size:11px;position:relative;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left;border-radius:100%}verdocs-radio-button.disabled{opacity:0.5}verdocs-radio-button input[type=radio]{position:absolute;opacity:0}verdocs-radio-button input[type=radio]+label:before{content:"";background:#f5f5fa;border-radius:100%;border:1px solid rgba(0, 0, 0, 0.6);display:inline-block;width:16px;height:16px;position:absolute;left:1px;top:1px;cursor:pointer;text-align:center;-webkit-transition:all 250ms ease;transition:all 250ms ease}verdocs-radio-button input[type=radio]:checked+label:before{background-color:#55bc81;-webkit-box-shadow:inset 0 0 0 2px #f5f5fa;box-shadow:inset 0 0 0 2px #f5f5fa}verdocs-radio-button input[type=radio]:focus+label:before{outline:none;border-color:#55bc81}verdocs-radio-button input[type=radio]:disabled+label:before{-webkit-box-shadow:inset 0 0 0 4px #f5f5fa;box-shadow:inset 0 0 0 4px #f5f5fa;border-color:#a0a0d0;background:#a0a0d0}verdocs-radio-button input[type=radio]+label:empty:before{margin-right:0}verdocs-radio-button.required input[type=radio]+label:before{border:1px solid #cc0000}verdocs-radio-button.hide{display:none}verdocs-radio-button.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}';export{i as verdocs_radio_button}
@@ -1 +1 @@
1
- System.register(["./p-fbb8023f.system.js"],(function(e){"use strict";var t,s;return{setters:[function(e){t=e.r;s=e.h}],execute:function(){var r='verdocs-search-tabs{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:block}';var n=e("verdocs_search_tabs",function(){function e(e){t(this,e);this.selected="all"}e.prototype.render=function(){return s("div",null," ")};return e}());n.style=r}}}));
1
+ System.register(["./p-cd61fea7.system.js"],(function(e){"use strict";var t,s;return{setters:[function(e){t=e.r;s=e.h}],execute:function(){var r='verdocs-search-tabs{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:block}';var n=e("verdocs_search_tabs",function(){function e(e){t(this,e);this.selected="all"}e.prototype.render=function(){return s("div",null," ")};return e}());n.style=r}}}));
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,i,o){function n(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,r){function a(t){try{c(o.next(t))}catch(t){r(t)}}function s(t){try{c(o["throw"](t))}catch(t){r(t)}}function c(t){t.done?i(t.value):n(t.value).then(a,s)}c((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,n,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return c([t,e])}}function c(a){if(o)throw new TypeError("Generator is already executing.");while(i)try{if(o=1,n&&(r=a[0]&2?n["return"]:a[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;if(n=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;n=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){i.label=a[1];break}if(a[0]===6&&i.label<r[1]){i.label=r[1];r=a;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(a);break}if(r[2])i.ops.pop();i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t];n=0}finally{o=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-fbb8023f.system.js","./p-54498887.system.js","./p-4422958b.system.js","./p-6e9af353.system.js","./p-66d45c89.system.js","./p-9a5ff58c.system.js","./p-bbee73c8.system.js","./p-daebb9e6.system.js","./p-327858f0.system.js","./p-7fd7152d.system.js","./p-dc9c4361.system.js"],(function(t){"use strict";var e,i,o,n,r,a,s,c,p;return{setters:[function(t){e=t.r;i=t.c;o=t.h;n=t.H;r=t.a},function(){},function(t){a=t.V},function(t){s=t.g},function(t){c=t.t},function(t){p=t.c},function(){},function(){},function(){},function(){},function(){}],execute:function(){var l="verdocs-template-document-page{width:100%;position:relative}verdocs-template-document-page .verdocs-template-document-page-layer{position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-shadow:0 0 10px 5px #0000000f;box-shadow:0 0 10px 5px #0000000f}verdocs-template-document-page .verdocs-template-document-page-layer.img{width:100%}";var d=t("verdocs_template_document_page",function(){function t(t){e(this,t);this.pageRendered=i(this,"pageRendered",7);this.endpoint=a.getDefault();this.templateId="";this.documentId="";this.pageNumber=1;this.virtualWidth=612;this.virtualHeight=792;this.layers=[{name:"page",type:"canvas"}];this.containerId="verdocs-document-page-".concat(Math.random().toString(36).substring(2,11));this.renderedWidth=this.virtualWidth;this.renderedHeight=this.virtualHeight;this.naturalWidth=this.virtualWidth;this.naturalHeight=this.virtualHeight;this.aspectRatio=this.virtualWidth/this.virtualHeight;this.skipFirstNotification=true;this.pageDisplayUri=""}t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:t=this;return[4,s(this.endpoint,this.templateId,this.documentId,this.pageNumber)];case 1:t.pageDisplayUri=e.sent();return[2]}}))}))};t.prototype.componentDidLoad=function(){var t=this;this.resizeObserver=new ResizeObserver(c((function(e){for(var i=0,o=e;i<o.length;i++){var n=o[i];var r=n.contentRect.width;t.renderedWidth=r;t.renderedHeight=t.virtualHeight*(r/t.virtualWidth)}t.notifyRenderedSize()}),100));this.resizeObserver.observe(this.container)};t.prototype.disconnectedCallback=function(){var t;(t=this.resizeObserver)===null||t===void 0?void 0:t.disconnect()};t.prototype.notifyRenderedSize=function(){if(this.skipFirstNotification){this.skipFirstNotification=false;return}this.pageRendered.emit({containerId:this.containerId,documentId:this.documentId,pageNumber:this.pageNumber,virtualWidth:this.virtualWidth,virtualHeight:this.virtualHeight,renderedWidth:this.renderedWidth,renderedHeight:this.renderedHeight,naturalWidth:this.naturalWidth,naturalHeight:this.naturalHeight,aspectRatio:this.aspectRatio,xScale:this.renderedWidth/this.virtualWidth,yScale:this.renderedHeight/this.virtualHeight})};t.prototype.render=function(){var t=this;var e="".concat(this.renderedHeight,"px");return o(n,{id:"".concat(this.containerId),style:{height:e,flex:"0 0 ".concat(e)}},this.layers.map((function(i){return i.type==="div"?o("div",{class:"verdocs-template-document-page-layer",id:"".concat(t.containerId,"-").concat(i.name),style:{height:e}}):t.pageDisplayUri?o("img",{class:"verdocs-template-document-page-layer img",id:"".concat(t.containerId,"-").concat(i.name),src:t.pageDisplayUri,alt:"Page ".concat(t.pageNumber),"aria-hidden":true,loading:"lazy",onLoad:function(e){t.naturalWidth=e.target.naturalWidth;t.naturalHeight=e.target.naturalHeight;t.aspectRatio=t.naturalWidth/t.naturalHeight;t.virtualHeight=t.virtualWidth/t.aspectRatio;t.renderedHeight=e.target.offsetWidth/t.aspectRatio}}):o("div",null)})))};Object.defineProperty(t.prototype,"container",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());d.style=l;var h='verdocs-toolbar-icon{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:inline-block}verdocs-toolbar-icon .icon{display:inline-block;cursor:pointer}verdocs-toolbar-icon .icon svg{fill:#5c6575}verdocs-toolbar-icon .tooltip{display:none;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;background:#ffffff;color:#33364b;max-width:240px;font-weight:bold;padding:5px 10px;font-size:13px;position:relative;border-radius:4px;z-index:20000;white-space:nowrap}verdocs-toolbar-icon .tooltip .arrow,verdocs-toolbar-icon .tooltip .arrow::before{position:absolute;width:8px;height:8px;background:inherit}verdocs-toolbar-icon .tooltip .arrow{visibility:hidden;top:-4px}verdocs-toolbar-icon .tooltip .arrow::before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}verdocs-toolbar-icon .tooltip[data-show]{display:block}verdocs-toolbar-icon .tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]>.arrow{right:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=right]>.arrow{left:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]{padding:3px 10px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]>.arrow{right:-1px}';var u=t("verdocs_toolbar_icon",function(){function t(t){e(this,t);this.text="";this.icon="";this.placement="bottom";this.containerId="verdocs-toolbar-icon-".concat(Math.random().toString(36).substring(2,11))}t.prototype.componentDidLoad=function(){this.popperInstance=p(this.iconEl,this.tooltip,{placement:this.placement,modifiers:this.placement==="left"?[{name:"offset",options:{offset:[0,20]}}]:[]})};t.prototype.disconnectedCallback=function(){if(this.popperInstance){this.popperInstance.destroy();this.popperInstance=null}};t.prototype.show=function(){var t,e;(t=this.tooltip)===null||t===void 0?void 0:t.setAttribute("data-show","");(e=this.popperInstance)===null||e===void 0?void 0:e.update().catch((function(){}))};t.prototype.hide=function(){var t;(t=this.tooltip)===null||t===void 0?void 0:t.removeAttribute("data-show")};t.prototype.render=function(){var t=this;return o(n,{class:{}},o("div",{"aria-describedby":this.containerId,class:"icon",innerHTML:this.icon,onMouseEnter:function(){return t.show()},onFocus:function(){return t.show()},onMouseLeave:function(){return t.hide()},onBlur:function(){return t.hide()},ref:function(e){return t.iconEl=e}}),o("div",{id:this.containerId,role:"tooltip",class:"tooltip","data-popper-placement":this.placement,ref:function(e){return t.tooltip=e}},this.text,o("div",{"data-popper-arrow":"true",class:"arrow"})))};return t}());u.style=h}}}));
1
+ var __awaiter=this&&this.__awaiter||function(t,e,i,o){function n(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,r){function a(t){try{c(o.next(t))}catch(t){r(t)}}function s(t){try{c(o["throw"](t))}catch(t){r(t)}}function c(t){t.done?i(t.value):n(t.value).then(a,s)}c((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,n,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return c([t,e])}}function c(a){if(o)throw new TypeError("Generator is already executing.");while(i)try{if(o=1,n&&(r=a[0]&2?n["return"]:a[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;if(n=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;n=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){i.label=a[1];break}if(a[0]===6&&i.label<r[1]){i.label=r[1];r=a;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(a);break}if(r[2])i.ops.pop();i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t];n=0}finally{o=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-cd61fea7.system.js","./p-54498887.system.js","./p-24f0c391.system.js","./p-6e9af353.system.js","./p-802bd493.system.js","./p-9a5ff58c.system.js","./p-bbee73c8.system.js","./p-821c78c4.system.js","./p-327858f0.system.js","./p-7fd7152d.system.js","./p-dc9c4361.system.js"],(function(t){"use strict";var e,i,o,n,r,a,s,c,p;return{setters:[function(t){e=t.r;i=t.c;o=t.h;n=t.H;r=t.a},function(){},function(t){a=t.V},function(t){s=t.g},function(t){c=t.t},function(t){p=t.c},function(){},function(){},function(){},function(){},function(){}],execute:function(){var l="verdocs-template-document-page{width:100%;position:relative}verdocs-template-document-page .verdocs-template-document-page-layer{position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-shadow:0 0 10px 5px #0000000f;box-shadow:0 0 10px 5px #0000000f}verdocs-template-document-page .verdocs-template-document-page-layer.img{width:100%}";var d=t("verdocs_template_document_page",function(){function t(t){e(this,t);this.pageRendered=i(this,"pageRendered",7);this.endpoint=a.getDefault();this.templateId="";this.documentId="";this.pageNumber=1;this.virtualWidth=612;this.virtualHeight=792;this.layers=[{name:"page",type:"canvas"}];this.containerId="verdocs-document-page-".concat(Math.random().toString(36).substring(2,11));this.renderedWidth=this.virtualWidth;this.renderedHeight=this.virtualHeight;this.naturalWidth=this.virtualWidth;this.naturalHeight=this.virtualHeight;this.aspectRatio=this.virtualWidth/this.virtualHeight;this.skipFirstNotification=true;this.pageDisplayUri=""}t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:t=this;return[4,s(this.endpoint,this.templateId,this.documentId,this.pageNumber)];case 1:t.pageDisplayUri=e.sent();return[2]}}))}))};t.prototype.componentDidLoad=function(){var t=this;this.resizeObserver=new ResizeObserver(c((function(e){for(var i=0,o=e;i<o.length;i++){var n=o[i];var r=n.contentRect.width;t.renderedWidth=r;t.renderedHeight=t.virtualHeight*(r/t.virtualWidth)}t.notifyRenderedSize()}),100));this.resizeObserver.observe(this.container)};t.prototype.disconnectedCallback=function(){var t;(t=this.resizeObserver)===null||t===void 0?void 0:t.disconnect()};t.prototype.notifyRenderedSize=function(){if(this.skipFirstNotification){this.skipFirstNotification=false;return}this.pageRendered.emit({containerId:this.containerId,documentId:this.documentId,pageNumber:this.pageNumber,virtualWidth:this.virtualWidth,virtualHeight:this.virtualHeight,renderedWidth:this.renderedWidth,renderedHeight:this.renderedHeight,naturalWidth:this.naturalWidth,naturalHeight:this.naturalHeight,aspectRatio:this.aspectRatio,xScale:this.renderedWidth/this.virtualWidth,yScale:this.renderedHeight/this.virtualHeight})};t.prototype.render=function(){var t=this;var e="".concat(this.renderedHeight,"px");return o(n,{id:"".concat(this.containerId),style:{height:e,flex:"0 0 ".concat(e)}},this.layers.map((function(i){return i.type==="div"?o("div",{class:"verdocs-template-document-page-layer",id:"".concat(t.containerId,"-").concat(i.name),style:{height:e}}):t.pageDisplayUri?o("img",{class:"verdocs-template-document-page-layer img",id:"".concat(t.containerId,"-").concat(i.name),src:t.pageDisplayUri,alt:"Page ".concat(t.pageNumber),"aria-hidden":true,loading:"lazy",onLoad:function(e){t.naturalWidth=e.target.naturalWidth;t.naturalHeight=e.target.naturalHeight;t.aspectRatio=t.naturalWidth/t.naturalHeight;t.virtualHeight=t.virtualWidth/t.aspectRatio;t.renderedHeight=e.target.offsetWidth/t.aspectRatio}}):o("div",null)})))};Object.defineProperty(t.prototype,"container",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());d.style=l;var h='verdocs-toolbar-icon{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:inline-block}verdocs-toolbar-icon .icon{display:inline-block;cursor:pointer}verdocs-toolbar-icon .icon svg{fill:#5c6575}verdocs-toolbar-icon .tooltip{display:none;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;background:#ffffff;color:#33364b;max-width:240px;font-weight:bold;padding:5px 10px;font-size:13px;position:relative;border-radius:4px;z-index:20000;white-space:nowrap}verdocs-toolbar-icon .tooltip .arrow,verdocs-toolbar-icon .tooltip .arrow::before{position:absolute;width:8px;height:8px;background:inherit}verdocs-toolbar-icon .tooltip .arrow{visibility:hidden;top:-4px}verdocs-toolbar-icon .tooltip .arrow::before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}verdocs-toolbar-icon .tooltip[data-show]{display:block}verdocs-toolbar-icon .tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]>.arrow{right:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=right]>.arrow{left:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]{padding:3px 10px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]>.arrow{right:-1px}';var u=t("verdocs_toolbar_icon",function(){function t(t){e(this,t);this.text="";this.icon="";this.placement="bottom";this.containerId="verdocs-toolbar-icon-".concat(Math.random().toString(36).substring(2,11))}t.prototype.componentDidLoad=function(){this.popperInstance=p(this.iconEl,this.tooltip,{placement:this.placement,modifiers:this.placement==="left"?[{name:"offset",options:{offset:[0,20]}}]:[]})};t.prototype.disconnectedCallback=function(){if(this.popperInstance){this.popperInstance.destroy();this.popperInstance=null}};t.prototype.show=function(){var t,e;(t=this.tooltip)===null||t===void 0?void 0:t.setAttribute("data-show","");(e=this.popperInstance)===null||e===void 0?void 0:e.update().catch((function(){}))};t.prototype.hide=function(){var t;(t=this.tooltip)===null||t===void 0?void 0:t.removeAttribute("data-show")};t.prototype.render=function(){var t=this;return o(n,{class:{}},o("div",{"aria-describedby":this.containerId,class:"icon",innerHTML:this.icon,onMouseEnter:function(){return t.show()},onFocus:function(){return t.show()},onMouseLeave:function(){return t.hide()},onBlur:function(){return t.hide()},ref:function(e){return t.iconEl=e}}),o("div",{id:this.containerId,role:"tooltip",class:"tooltip","data-popper-placement":this.placement,ref:function(e){return t.tooltip=e}},this.text,o("div",{"data-popper-arrow":"true",class:"arrow"})))};return t}());u.style=h}}}));