@verdocs/web-sdk 2.2.8 → 2.2.10

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 (386) hide show
  1. package/dist/cjs/{EnvelopeStore-c2f0d4ca.js → EnvelopeStore-0abf204c.js} +1 -1
  2. package/dist/cjs/{TemplateStore-4041d8af.js → TemplateStore-a5fa2b0c.js} +1 -1
  3. package/dist/cjs/{index-1d5fc518.js → index-5463795e.js} +2 -0
  4. package/dist/cjs/{index-f664e4d0.js → index-f712049c.js} +1 -1
  5. package/dist/cjs/ipc-test.cjs.entry.js +3 -3
  6. package/dist/cjs/loader.cjs.js +2 -2
  7. package/dist/cjs/verdocs-activity-box.cjs.entry.js +1 -1
  8. package/dist/cjs/verdocs-auth.cjs.entry.js +1 -1
  9. package/dist/cjs/verdocs-build.cjs.entry.js +7 -9
  10. package/dist/cjs/verdocs-button-panel_2.cjs.entry.js +3 -3
  11. package/dist/cjs/verdocs-button_3.cjs.entry.js +1 -1
  12. package/dist/cjs/verdocs-checkbox_3.cjs.entry.js +1 -1
  13. package/dist/cjs/{verdocs-contact-picker.cjs.entry.js → verdocs-contact-picker_2.cjs.entry.js} +30 -1
  14. package/dist/cjs/verdocs-dialog_3.cjs.entry.js +5 -3
  15. package/dist/cjs/verdocs-dropdown.cjs.entry.js +60 -48
  16. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +1 -1
  17. package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +3 -3
  18. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +3 -3
  19. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +3 -3
  20. package/dist/cjs/verdocs-field-attachment.cjs.entry.js +1 -1
  21. package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +1 -1
  22. package/dist/cjs/verdocs-field-date.cjs.entry.js +1 -1
  23. package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +1 -1
  24. package/dist/cjs/verdocs-field-initial.cjs.entry.js +1 -1
  25. package/dist/cjs/verdocs-field-payment.cjs.entry.js +1 -1
  26. package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +1 -1
  27. package/dist/cjs/verdocs-field-signature.cjs.entry.js +1 -1
  28. package/dist/cjs/verdocs-field-textarea.cjs.entry.js +1 -1
  29. package/dist/cjs/verdocs-field-textbox.cjs.entry.js +1 -1
  30. package/dist/cjs/verdocs-field-timestamp.cjs.entry.js +1 -1
  31. package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +1 -1
  32. package/dist/cjs/verdocs-floating-menu.cjs.entry.js +1 -1
  33. package/dist/cjs/verdocs-initial-dialog.cjs.entry.js +1 -1
  34. package/dist/cjs/verdocs-kba-dialog.cjs.entry.js +1 -1
  35. package/dist/cjs/verdocs-loader.cjs.entry.js +1 -1
  36. package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
  37. package/dist/cjs/verdocs-organization-card.cjs.entry.js +1 -1
  38. package/dist/cjs/verdocs-pagination_3.cjs.entry.js +1 -1
  39. package/dist/cjs/verdocs-preview_6.cjs.entry.js +604 -0
  40. package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +1 -1
  41. package/dist/cjs/verdocs-radio-button.cjs.entry.js +1 -1
  42. package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
  43. package/dist/cjs/verdocs-search.cjs.entry.js +1 -1
  44. package/dist/cjs/verdocs-settings-api-keys_4.cjs.entry.js +1 -1
  45. package/dist/cjs/verdocs-settings.cjs.entry.js +1 -1
  46. package/dist/cjs/verdocs-sign.cjs.entry.js +1 -1
  47. package/dist/cjs/verdocs-signature-dialog.cjs.entry.js +1 -1
  48. package/dist/cjs/verdocs-status-indicator.cjs.entry.js +1 -1
  49. package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
  50. package/dist/cjs/verdocs-template-create.cjs.entry.js +99 -0
  51. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +1 -1
  52. package/dist/cjs/verdocs-template-fields_4.cjs.entry.js +4 -4
  53. package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
  54. package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
  55. package/dist/cjs/verdocs-templates-list.cjs.entry.js +2 -2
  56. package/dist/cjs/verdocs-toggle.cjs.entry.js +1 -1
  57. package/dist/cjs/verdocs-upload-dialog.cjs.entry.js +1 -1
  58. package/dist/cjs/verdocs-view.cjs.entry.js +1 -1
  59. package/dist/cjs/verdocs-web-sdk.cjs.js +2 -2
  60. package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.css +28 -27
  61. package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.js +67 -51
  62. package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.stories.js +1 -1
  63. package/dist/collection/components/controls/verdocs-table/verdocs-table.js +39 -2
  64. package/dist/collection/components/embeds/verdocs-build/verdocs-build.css +44 -0
  65. package/dist/collection/components/embeds/verdocs-build/verdocs-build.js +5 -7
  66. package/dist/collection/components/embeds/verdocs-build/verdocs-build.stories.js +5 -1
  67. package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.css +34 -6
  68. package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +1 -1
  69. package/dist/collection/components/templates/verdocs-template-roles/verdocs-template-roles.css +1 -1
  70. package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.css +38 -7
  71. package/dist/components/Validators.js +1 -1
  72. package/dist/components/utils.js +1 -1
  73. package/dist/components/verdocs-build.js +76 -42
  74. package/dist/components/verdocs-dropdown2.js +61 -50
  75. package/dist/components/verdocs-envelopes-list.js +2 -2
  76. package/dist/components/verdocs-preview.js +1 -92
  77. package/dist/{esm/verdocs-preview.entry.js → components/verdocs-preview2.js} +42 -19
  78. package/dist/components/verdocs-send.js +1 -163
  79. package/dist/{esm/verdocs-send.entry.js → components/verdocs-send2.js} +56 -21
  80. package/dist/components/verdocs-sign.js +2 -2
  81. package/dist/components/verdocs-table2.js +5 -3
  82. package/dist/components/verdocs-template-create.js +138 -1
  83. package/dist/components/verdocs-template-fields2.js +1 -1
  84. package/dist/components/verdocs-template-name.js +1 -126
  85. package/dist/{esm/verdocs-template-name.entry.js → components/verdocs-template-name2.js} +62 -13
  86. package/dist/components/verdocs-template-reminders.js +1 -194
  87. package/dist/{esm/verdocs-template-reminders.entry.js → components/verdocs-template-reminders2.js} +71 -14
  88. package/dist/components/verdocs-template-roles2.js +2 -2
  89. package/dist/components/verdocs-template-visibility.js +1 -120
  90. package/dist/{esm/verdocs-template-visibility.entry.js → components/verdocs-template-visibility2.js} +51 -13
  91. package/dist/components/verdocs-templates-list.js +1 -1
  92. package/dist/components/verdocs-view2.js +1 -1
  93. package/dist/docs.json +103 -29
  94. package/dist/esm/{EnvelopeStore-ca60f0ab.js → EnvelopeStore-7f484014.js} +1 -1
  95. package/dist/esm/{TemplateStore-01a9d18f.js → TemplateStore-e8cf5a15.js} +1 -1
  96. package/dist/esm/{Validators-f110bae2.js → Validators-16a2a43b.js} +1 -1
  97. package/dist/esm/{index-151c0874.js → index-172625c5.js} +2 -0
  98. package/dist/esm/{index-38d7bc0b.js → index-4439b0d1.js} +1 -1
  99. package/dist/esm/ipc-test.entry.js +3 -3
  100. package/dist/esm/loader.js +2 -2
  101. package/dist/esm/{utils-51d998e2.js → utils-c0cd0b91.js} +1 -1
  102. package/dist/esm/verdocs-activity-box.entry.js +1 -1
  103. package/dist/esm/verdocs-auth.entry.js +1 -1
  104. package/dist/esm/verdocs-build.entry.js +7 -9
  105. package/dist/esm/verdocs-button-panel_2.entry.js +3 -3
  106. package/dist/esm/verdocs-button_3.entry.js +1 -1
  107. package/dist/esm/verdocs-checkbox_3.entry.js +1 -1
  108. package/dist/esm/{verdocs-contact-picker.entry.js → verdocs-contact-picker_2.entry.js} +31 -3
  109. package/dist/esm/verdocs-dialog_3.entry.js +5 -3
  110. package/dist/esm/verdocs-dropdown.entry.js +60 -48
  111. package/dist/esm/verdocs-envelope-document-page.entry.js +2 -2
  112. package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +3 -3
  113. package/dist/esm/verdocs-envelope-sidebar.entry.js +3 -3
  114. package/dist/esm/verdocs-envelopes-list.entry.js +4 -4
  115. package/dist/esm/verdocs-field-attachment.entry.js +2 -2
  116. package/dist/esm/verdocs-field-checkbox.entry.js +2 -2
  117. package/dist/esm/verdocs-field-date.entry.js +2 -2
  118. package/dist/esm/verdocs-field-dropdown.entry.js +2 -2
  119. package/dist/esm/verdocs-field-initial.entry.js +2 -2
  120. package/dist/esm/verdocs-field-payment.entry.js +2 -2
  121. package/dist/esm/verdocs-field-radio-button.entry.js +2 -2
  122. package/dist/esm/verdocs-field-signature.entry.js +2 -2
  123. package/dist/esm/verdocs-field-textarea.entry.js +2 -2
  124. package/dist/esm/verdocs-field-textbox.entry.js +2 -2
  125. package/dist/esm/verdocs-field-timestamp.entry.js +2 -2
  126. package/dist/esm/verdocs-file-chooser_2.entry.js +1 -1
  127. package/dist/esm/verdocs-floating-menu.entry.js +1 -1
  128. package/dist/esm/verdocs-initial-dialog.entry.js +1 -1
  129. package/dist/esm/verdocs-kba-dialog.entry.js +1 -1
  130. package/dist/esm/verdocs-loader.entry.js +1 -1
  131. package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
  132. package/dist/esm/verdocs-organization-card.entry.js +1 -1
  133. package/dist/esm/verdocs-pagination_3.entry.js +2 -2
  134. package/dist/esm/verdocs-preview_6.entry.js +595 -0
  135. package/dist/esm/verdocs-quick-functions_3.entry.js +1 -1
  136. package/dist/esm/verdocs-radio-button.entry.js +1 -1
  137. package/dist/esm/verdocs-search-tabs.entry.js +1 -1
  138. package/dist/esm/verdocs-search.entry.js +1 -1
  139. package/dist/esm/verdocs-settings-api-keys_4.entry.js +2 -2
  140. package/dist/esm/verdocs-settings.entry.js +1 -1
  141. package/dist/esm/verdocs-sign.entry.js +3 -3
  142. package/dist/esm/verdocs-signature-dialog.entry.js +1 -1
  143. package/dist/esm/verdocs-status-indicator.entry.js +1 -1
  144. package/dist/esm/verdocs-template-card.entry.js +1 -1
  145. package/dist/{components/verdocs-template-create2.js → esm/verdocs-template-create.entry.js} +11 -56
  146. package/dist/esm/verdocs-template-document-page_2.entry.js +2 -2
  147. package/dist/esm/verdocs-template-fields_4.entry.js +5 -5
  148. package/dist/esm/verdocs-template-star.entry.js +1 -1
  149. package/dist/esm/verdocs-template-tags.entry.js +1 -1
  150. package/dist/esm/verdocs-templates-list.entry.js +2 -2
  151. package/dist/esm/verdocs-toggle.entry.js +1 -1
  152. package/dist/esm/verdocs-upload-dialog.entry.js +1 -1
  153. package/dist/esm/verdocs-view.entry.js +2 -2
  154. package/dist/esm/verdocs-web-sdk.js +2 -2
  155. package/dist/esm-es5/{EnvelopeStore-ca60f0ab.js → EnvelopeStore-7f484014.js} +1 -1
  156. package/dist/esm-es5/{TemplateStore-01a9d18f.js → TemplateStore-e8cf5a15.js} +1 -1
  157. package/dist/esm-es5/{Validators-f110bae2.js → Validators-16a2a43b.js} +1 -1
  158. package/dist/esm-es5/{index-151c0874.js → index-172625c5.js} +1 -1
  159. package/dist/esm-es5/{index-38d7bc0b.js → index-4439b0d1.js} +1 -1
  160. package/dist/esm-es5/ipc-test.entry.js +1 -1
  161. package/dist/esm-es5/loader.js +1 -1
  162. package/dist/esm-es5/{utils-51d998e2.js → utils-c0cd0b91.js} +1 -1
  163. package/dist/esm-es5/verdocs-activity-box.entry.js +1 -1
  164. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  165. package/dist/esm-es5/verdocs-build.entry.js +1 -1
  166. package/dist/esm-es5/verdocs-button-panel_2.entry.js +1 -1
  167. package/dist/esm-es5/verdocs-button_3.entry.js +1 -1
  168. package/dist/esm-es5/verdocs-checkbox_3.entry.js +1 -1
  169. package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -0
  170. package/dist/esm-es5/verdocs-dialog_3.entry.js +1 -1
  171. package/dist/esm-es5/verdocs-dropdown.entry.js +1 -1
  172. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
  173. package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js +1 -1
  174. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  175. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  176. package/dist/esm-es5/verdocs-field-attachment.entry.js +1 -1
  177. package/dist/esm-es5/verdocs-field-checkbox.entry.js +1 -1
  178. package/dist/esm-es5/verdocs-field-date.entry.js +1 -1
  179. package/dist/esm-es5/verdocs-field-dropdown.entry.js +1 -1
  180. package/dist/esm-es5/verdocs-field-initial.entry.js +1 -1
  181. package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
  182. package/dist/esm-es5/verdocs-field-radio-button.entry.js +1 -1
  183. package/dist/esm-es5/verdocs-field-signature.entry.js +1 -1
  184. package/dist/esm-es5/verdocs-field-textarea.entry.js +1 -1
  185. package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -1
  186. package/dist/esm-es5/verdocs-field-timestamp.entry.js +1 -1
  187. package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
  188. package/dist/esm-es5/verdocs-floating-menu.entry.js +1 -1
  189. package/dist/esm-es5/verdocs-initial-dialog.entry.js +1 -1
  190. package/dist/esm-es5/verdocs-kba-dialog.entry.js +1 -1
  191. package/dist/esm-es5/verdocs-loader.entry.js +1 -1
  192. package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
  193. package/dist/esm-es5/verdocs-organization-card.entry.js +1 -1
  194. package/dist/esm-es5/verdocs-pagination_3.entry.js +1 -1
  195. package/dist/esm-es5/verdocs-preview_6.entry.js +1 -0
  196. package/dist/esm-es5/verdocs-quick-functions_3.entry.js +1 -1
  197. package/dist/esm-es5/verdocs-radio-button.entry.js +1 -1
  198. package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
  199. package/dist/esm-es5/verdocs-search.entry.js +1 -1
  200. package/dist/esm-es5/verdocs-settings-api-keys_4.entry.js +1 -1
  201. package/dist/esm-es5/verdocs-settings.entry.js +1 -1
  202. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  203. package/dist/esm-es5/verdocs-signature-dialog.entry.js +1 -1
  204. package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
  205. package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
  206. package/dist/esm-es5/verdocs-template-create.entry.js +1 -0
  207. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  208. package/dist/esm-es5/verdocs-template-fields_4.entry.js +1 -1
  209. package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
  210. package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
  211. package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
  212. package/dist/esm-es5/verdocs-toggle.entry.js +1 -1
  213. package/dist/esm-es5/verdocs-upload-dialog.entry.js +1 -1
  214. package/dist/esm-es5/verdocs-view.entry.js +1 -1
  215. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  216. package/dist/types/components/controls/verdocs-dropdown/verdocs-dropdown.d.ts +3 -9
  217. package/dist/types/components/controls/verdocs-table/verdocs-table.d.ts +13 -0
  218. package/dist/types/components/embeds/verdocs-build/verdocs-build.d.ts +3 -3
  219. package/dist/types/components/embeds/verdocs-build/verdocs-build.stories.d.ts +4 -1
  220. package/dist/types/components.d.ts +14 -2
  221. package/dist/verdocs-web-sdk/{p-50adf449.system.entry.js → p-013d1556.system.entry.js} +1 -1
  222. package/dist/verdocs-web-sdk/p-02dc4501.system.entry.js +1 -0
  223. package/dist/verdocs-web-sdk/{p-b35f33a8.entry.js → p-04580be0.entry.js} +1 -1
  224. package/dist/verdocs-web-sdk/{p-ff2d4284.system.entry.js → p-07696831.system.entry.js} +1 -1
  225. package/dist/verdocs-web-sdk/{p-fb9b8d32.system.entry.js → p-07b5f356.system.entry.js} +1 -1
  226. package/dist/verdocs-web-sdk/{p-3dcf8e41.entry.js → p-0b2102df.entry.js} +1 -1
  227. package/dist/verdocs-web-sdk/{p-19860fa1.system.entry.js → p-0df9e6e1.system.entry.js} +1 -1
  228. package/dist/verdocs-web-sdk/{p-c3c0376a.entry.js → p-0edfbbb9.entry.js} +1 -1
  229. package/dist/verdocs-web-sdk/{p-6d3e0994.js → p-14b44491.js} +1 -1
  230. package/dist/verdocs-web-sdk/{p-6d2082b7.system.js → p-1753f57b.system.js} +1 -1
  231. package/dist/verdocs-web-sdk/{p-c7c021fe.system.entry.js → p-1d0342e6.system.entry.js} +1 -1
  232. package/dist/verdocs-web-sdk/{p-9d2b75ac.entry.js → p-20986706.entry.js} +1 -1
  233. package/dist/verdocs-web-sdk/{p-e0a212a1.system.entry.js → p-21e137f0.system.entry.js} +1 -1
  234. package/dist/verdocs-web-sdk/{p-400a996a.system.entry.js → p-2284d430.system.entry.js} +1 -1
  235. package/dist/verdocs-web-sdk/{p-fb71f28a.system.entry.js → p-2549a794.system.entry.js} +1 -1
  236. package/dist/verdocs-web-sdk/{p-b48a2f14.entry.js → p-27ea3260.entry.js} +1 -1
  237. package/dist/verdocs-web-sdk/{p-2ea70113.entry.js → p-2b6e4f2a.entry.js} +1 -1
  238. package/dist/verdocs-web-sdk/{p-01ec9d6d.system.entry.js → p-2f739b03.system.entry.js} +1 -1
  239. package/dist/verdocs-web-sdk/p-353c7ff6.system.entry.js +1 -0
  240. package/dist/verdocs-web-sdk/{p-aac295bd.entry.js → p-3a90098d.entry.js} +1 -1
  241. package/dist/verdocs-web-sdk/{p-2c95d99b.system.js → p-3af6b910.system.js} +1 -1
  242. package/dist/verdocs-web-sdk/{p-e2fa3015.entry.js → p-3c798272.entry.js} +1 -1
  243. package/dist/verdocs-web-sdk/{p-4b0a633d.entry.js → p-3da4fed1.entry.js} +1 -1
  244. package/dist/verdocs-web-sdk/{p-766f8b54.system.entry.js → p-4017b53a.system.entry.js} +1 -1
  245. package/dist/verdocs-web-sdk/{p-33d75280.system.entry.js → p-41cd34db.system.entry.js} +1 -1
  246. package/dist/verdocs-web-sdk/{p-449f38bb.js → p-425707d0.js} +1 -1
  247. package/dist/verdocs-web-sdk/{p-3a7d47ba.entry.js → p-428de4a5.entry.js} +1 -1
  248. package/dist/verdocs-web-sdk/{p-19a0fdf2.entry.js → p-42f27e8c.entry.js} +1 -1
  249. package/dist/verdocs-web-sdk/{p-a00ea81e.entry.js → p-43a8df52.entry.js} +1 -1
  250. package/dist/verdocs-web-sdk/{p-cfead4df.entry.js → p-450a3908.entry.js} +1 -1
  251. package/dist/verdocs-web-sdk/{p-2bed90fd.system.entry.js → p-4583338b.system.entry.js} +1 -1
  252. package/dist/verdocs-web-sdk/{p-ff850808.system.entry.js → p-45bee3f6.system.entry.js} +1 -1
  253. package/dist/verdocs-web-sdk/{p-b650d3c1.system.entry.js → p-45d5e035.system.entry.js} +1 -1
  254. package/dist/verdocs-web-sdk/{p-37c09dd4.system.entry.js → p-48c62137.system.entry.js} +1 -1
  255. package/dist/verdocs-web-sdk/p-49b06b42.entry.js +1 -0
  256. package/dist/verdocs-web-sdk/{p-afd6285f.system.entry.js → p-4a500a3f.system.entry.js} +1 -1
  257. package/dist/verdocs-web-sdk/{p-937cd171.system.entry.js → p-4f914da5.system.entry.js} +1 -1
  258. package/dist/verdocs-web-sdk/{p-205b6235.system.entry.js → p-4fd9a342.system.entry.js} +1 -1
  259. package/dist/verdocs-web-sdk/{p-2a969dc8.system.entry.js → p-506754d5.system.entry.js} +1 -1
  260. package/dist/verdocs-web-sdk/{p-1fea7a7e.entry.js → p-51979353.entry.js} +1 -1
  261. package/dist/verdocs-web-sdk/{p-5d6c7546.system.entry.js → p-519893b0.system.entry.js} +1 -1
  262. package/dist/verdocs-web-sdk/{p-c3f5b07e.entry.js → p-521a3fec.entry.js} +1 -1
  263. package/dist/verdocs-web-sdk/{p-02bbfba3.system.entry.js → p-55b5233b.system.entry.js} +1 -1
  264. package/dist/verdocs-web-sdk/{p-c556a377.system.entry.js → p-59cc4e99.system.entry.js} +1 -1
  265. package/dist/verdocs-web-sdk/p-5ab837bf.entry.js +1 -0
  266. package/dist/verdocs-web-sdk/{p-3fcfb333.system.entry.js → p-5c01f483.system.entry.js} +1 -1
  267. package/dist/verdocs-web-sdk/p-5d57357e.system.entry.js +1 -0
  268. package/dist/verdocs-web-sdk/{p-5cb78c1b.system.entry.js → p-64d4ec95.system.entry.js} +1 -1
  269. package/dist/verdocs-web-sdk/p-66cec042.system.entry.js +1 -0
  270. package/dist/verdocs-web-sdk/p-686bf682.entry.js +1 -0
  271. package/dist/verdocs-web-sdk/{p-3dac1048.js → p-6b9c285d.js} +1 -1
  272. package/dist/verdocs-web-sdk/{p-f7fecffd.entry.js → p-6ccb86b6.entry.js} +1 -1
  273. package/dist/verdocs-web-sdk/{p-7967b361.entry.js → p-6e39e5e9.entry.js} +1 -1
  274. package/dist/verdocs-web-sdk/{p-a8cf70dd.entry.js → p-6ff8759f.entry.js} +1 -1
  275. package/dist/verdocs-web-sdk/{p-5f57ec68.entry.js → p-71eefe0e.entry.js} +1 -1
  276. package/dist/verdocs-web-sdk/{p-21615f18.js → p-7648c449.js} +1 -1
  277. package/dist/verdocs-web-sdk/{p-a2b83969.entry.js → p-77ecee31.entry.js} +1 -1
  278. package/dist/verdocs-web-sdk/{p-cd92a456.entry.js → p-78c9bc84.entry.js} +1 -1
  279. package/dist/verdocs-web-sdk/{p-df90b36d.entry.js → p-78e4f430.entry.js} +1 -1
  280. package/dist/verdocs-web-sdk/{p-c98bb9f4.entry.js → p-79b0c643.entry.js} +1 -1
  281. package/dist/verdocs-web-sdk/{p-fea16530.entry.js → p-7bab7252.entry.js} +1 -1
  282. package/dist/verdocs-web-sdk/{p-6572cc71.system.entry.js → p-7bd5db75.system.entry.js} +1 -1
  283. package/dist/verdocs-web-sdk/{p-cef5dd3e.entry.js → p-7c7eee3b.entry.js} +1 -1
  284. package/dist/verdocs-web-sdk/{p-3a0c5966.system.entry.js → p-7cb3209d.system.entry.js} +1 -1
  285. package/dist/verdocs-web-sdk/{p-dbfa7aea.entry.js → p-7d5e91f5.entry.js} +1 -1
  286. package/dist/verdocs-web-sdk/{p-675c95e8.entry.js → p-7ec2b6c4.entry.js} +1 -1
  287. package/dist/verdocs-web-sdk/{p-670a2414.system.entry.js → p-7efaf5de.system.entry.js} +1 -1
  288. package/dist/verdocs-web-sdk/{p-06e445b1.system.entry.js → p-7f669bb1.system.entry.js} +1 -1
  289. package/dist/verdocs-web-sdk/{p-0e08012c.system.entry.js → p-83e80908.system.entry.js} +1 -1
  290. package/dist/verdocs-web-sdk/{p-4911d1f9.entry.js → p-84efd562.entry.js} +1 -1
  291. package/dist/verdocs-web-sdk/{p-7efdefa3.system.js → p-877c2b06.system.js} +1 -1
  292. package/dist/verdocs-web-sdk/{p-e248947e.system.entry.js → p-883d60e1.system.entry.js} +1 -1
  293. package/dist/verdocs-web-sdk/{p-7d6c3d5b.entry.js → p-8dd6bda5.entry.js} +1 -1
  294. package/dist/verdocs-web-sdk/{p-453bb85d.entry.js → p-9009e136.entry.js} +1 -1
  295. package/dist/verdocs-web-sdk/p-93eb4996.system.entry.js +1 -0
  296. package/dist/verdocs-web-sdk/{p-ed38d3d2.entry.js → p-955f0375.entry.js} +1 -1
  297. package/dist/verdocs-web-sdk/{p-fb609f37.entry.js → p-965b66a8.entry.js} +1 -1
  298. package/dist/verdocs-web-sdk/p-a0ad315e.system.entry.js +1 -0
  299. package/dist/verdocs-web-sdk/p-a167438a.entry.js +1 -0
  300. package/dist/verdocs-web-sdk/p-a1e82d5a.entry.js +1 -0
  301. package/dist/verdocs-web-sdk/{p-af8e5bc9.system.entry.js → p-a5f450a1.system.entry.js} +1 -1
  302. package/dist/verdocs-web-sdk/{p-c9fe8bad.system.entry.js → p-a6048cc9.system.entry.js} +1 -1
  303. package/dist/verdocs-web-sdk/{p-f05e18ba.system.entry.js → p-a6475e9e.system.entry.js} +1 -1
  304. package/dist/verdocs-web-sdk/p-a894761f.system.entry.js +1 -0
  305. package/dist/verdocs-web-sdk/{p-b64f9e64.system.entry.js → p-aad7ef50.system.entry.js} +1 -1
  306. package/dist/verdocs-web-sdk/{p-eddc727f.system.entry.js → p-ab889005.system.entry.js} +1 -1
  307. package/dist/verdocs-web-sdk/{p-6cd5db91.system.entry.js → p-aba05f25.system.entry.js} +1 -1
  308. package/dist/verdocs-web-sdk/{p-803924f3.entry.js → p-ad273610.entry.js} +1 -1
  309. package/dist/verdocs-web-sdk/{p-c23359af.system.entry.js → p-ae971bb4.system.entry.js} +1 -1
  310. package/dist/verdocs-web-sdk/{p-8e83ea1e.entry.js → p-aeeb0ee3.entry.js} +1 -1
  311. package/dist/verdocs-web-sdk/{p-70a1cb8d.entry.js → p-b68d2dba.entry.js} +1 -1
  312. package/dist/verdocs-web-sdk/{p-750b37cd.system.entry.js → p-b820b749.system.entry.js} +1 -1
  313. package/dist/verdocs-web-sdk/{p-169fa979.system.js → p-b8c356b3.system.js} +1 -1
  314. package/dist/verdocs-web-sdk/{p-bc943a21.entry.js → p-ba04698a.entry.js} +1 -1
  315. package/dist/verdocs-web-sdk/{p-000348a7.system.entry.js → p-ba87f33c.system.entry.js} +1 -1
  316. package/dist/verdocs-web-sdk/p-bbb2afd0.system.entry.js +1 -0
  317. package/dist/verdocs-web-sdk/p-bbd400a5.entry.js +1 -0
  318. package/dist/verdocs-web-sdk/{p-460b9fab.entry.js → p-c41a65a9.entry.js} +1 -1
  319. package/dist/verdocs-web-sdk/{p-3eacc51e.entry.js → p-cb9f22d7.entry.js} +1 -1
  320. package/dist/verdocs-web-sdk/{p-353d7e71.system.js → p-cd48750c.system.js} +1 -1
  321. package/dist/verdocs-web-sdk/{p-3aac3218.system.entry.js → p-cd64b223.system.entry.js} +1 -1
  322. package/dist/verdocs-web-sdk/{p-55af2ceb.js → p-d4d8858f.js} +1 -1
  323. package/dist/verdocs-web-sdk/{p-e2d0d0cc.entry.js → p-e122fb40.entry.js} +1 -1
  324. package/dist/verdocs-web-sdk/p-e1cad931.entry.js +1 -0
  325. package/dist/verdocs-web-sdk/{p-cb9985fe.entry.js → p-e27ec758.entry.js} +1 -1
  326. package/dist/verdocs-web-sdk/{p-e1942999.system.entry.js → p-e2fe0aa5.system.entry.js} +1 -1
  327. package/dist/verdocs-web-sdk/{p-607a2dfe.entry.js → p-e40dd4d1.entry.js} +1 -1
  328. package/dist/verdocs-web-sdk/{p-e662f81b.js → p-e8ce0b6f.js} +1 -1
  329. package/dist/verdocs-web-sdk/{p-4dc8cc71.system.entry.js → p-ecfa94fb.system.entry.js} +1 -1
  330. package/dist/verdocs-web-sdk/{p-96ca789b.system.entry.js → p-edabba6b.system.entry.js} +1 -1
  331. package/dist/verdocs-web-sdk/p-f04bf956.system.js +1 -0
  332. package/dist/verdocs-web-sdk/{p-42efc13c.entry.js → p-f08e52e4.entry.js} +1 -1
  333. package/dist/verdocs-web-sdk/p-f0e1d7a4.entry.js +1 -0
  334. package/dist/verdocs-web-sdk/{p-966f84ec.entry.js → p-f0f27520.entry.js} +1 -1
  335. package/dist/verdocs-web-sdk/{p-5080cdfc.entry.js → p-f2deae25.entry.js} +1 -1
  336. package/dist/verdocs-web-sdk/{p-511d7177.entry.js → p-f520ee27.entry.js} +1 -1
  337. package/dist/verdocs-web-sdk/{p-c125f51e.system.entry.js → p-f69ced2b.system.entry.js} +1 -1
  338. package/dist/verdocs-web-sdk/{p-fac26def.system.entry.js → p-f9e89b56.system.entry.js} +1 -1
  339. package/dist/verdocs-web-sdk/{p-2dbc05c6.system.js → p-fbb8023f.system.js} +1 -1
  340. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  341. package/dist/verdocs-web-sdk/verdocs-web-sdk.js +1 -1
  342. package/package.json +1 -1
  343. package/dist/cjs/verdocs-preview.cjs.entry.js +0 -75
  344. package/dist/cjs/verdocs-send.cjs.entry.js +0 -134
  345. package/dist/cjs/verdocs-template-attachments_2.cjs.entry.js +0 -236
  346. package/dist/cjs/verdocs-template-name.cjs.entry.js +0 -83
  347. package/dist/cjs/verdocs-template-reminders.cjs.entry.js +0 -143
  348. package/dist/cjs/verdocs-template-visibility.cjs.entry.js +0 -88
  349. package/dist/cjs/verdocs-toggle-button.cjs.entry.js +0 -35
  350. package/dist/esm/verdocs-template-attachments_2.entry.js +0 -231
  351. package/dist/esm/verdocs-toggle-button.entry.js +0 -31
  352. package/dist/esm-es5/verdocs-contact-picker.entry.js +0 -1
  353. package/dist/esm-es5/verdocs-preview.entry.js +0 -1
  354. package/dist/esm-es5/verdocs-send.entry.js +0 -1
  355. package/dist/esm-es5/verdocs-template-attachments_2.entry.js +0 -1
  356. package/dist/esm-es5/verdocs-template-name.entry.js +0 -1
  357. package/dist/esm-es5/verdocs-template-reminders.entry.js +0 -1
  358. package/dist/esm-es5/verdocs-template-visibility.entry.js +0 -1
  359. package/dist/esm-es5/verdocs-toggle-button.entry.js +0 -1
  360. package/dist/verdocs-web-sdk/p-0331a582.entry.js +0 -1
  361. package/dist/verdocs-web-sdk/p-0378a336.entry.js +0 -1
  362. package/dist/verdocs-web-sdk/p-0578c85b.system.entry.js +0 -1
  363. package/dist/verdocs-web-sdk/p-05b7ba5b.system.entry.js +0 -1
  364. package/dist/verdocs-web-sdk/p-07dac402.entry.js +0 -1
  365. package/dist/verdocs-web-sdk/p-17d27ba8.entry.js +0 -1
  366. package/dist/verdocs-web-sdk/p-2dc36f82.system.entry.js +0 -1
  367. package/dist/verdocs-web-sdk/p-4f8dbb97.entry.js +0 -1
  368. package/dist/verdocs-web-sdk/p-5314386f.system.entry.js +0 -1
  369. package/dist/verdocs-web-sdk/p-54e215c5.system.entry.js +0 -1
  370. package/dist/verdocs-web-sdk/p-5cae759a.system.entry.js +0 -1
  371. package/dist/verdocs-web-sdk/p-647cdb84.system.js +0 -1
  372. package/dist/verdocs-web-sdk/p-752fe35b.entry.js +0 -1
  373. package/dist/verdocs-web-sdk/p-7dd4ffcc.entry.js +0 -1
  374. package/dist/verdocs-web-sdk/p-8fdcf4a9.system.entry.js +0 -1
  375. package/dist/verdocs-web-sdk/p-a5ce9047.system.entry.js +0 -1
  376. package/dist/verdocs-web-sdk/p-b41338e5.system.entry.js +0 -1
  377. package/dist/verdocs-web-sdk/p-b49e1610.entry.js +0 -1
  378. package/dist/verdocs-web-sdk/p-bad42f2d.entry.js +0 -1
  379. package/dist/verdocs-web-sdk/p-c0e4c58b.system.entry.js +0 -1
  380. package/dist/verdocs-web-sdk/p-c2e3d476.system.entry.js +0 -1
  381. package/dist/verdocs-web-sdk/p-c9e66410.system.entry.js +0 -1
  382. package/dist/verdocs-web-sdk/p-cea9f0ba.system.entry.js +0 -1
  383. package/dist/verdocs-web-sdk/p-dc6e47a4.entry.js +0 -1
  384. package/dist/verdocs-web-sdk/p-ebe13a66.entry.js +0 -1
  385. package/dist/verdocs-web-sdk/p-f164307e.entry.js +0 -1
  386. package/dist/verdocs-web-sdk/p-fd059523.entry.js +0 -1
@@ -1 +0,0 @@
1
- import{r as o,c as i,h as s,H as r,a as t}from"./p-6d3e0994.js";import{c as d}from"./p-7c0dcd00.js";const e=class{constructor(s){o(this,s),this.optionSelected=i(this,"optionSelected",7),this.clickListenerSymbol=new AbortController,this.options=[],this.open=void 0}componentDidLoad(){this.popper=d(this.dropdownButton,this.dropdownMenu,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,6]}}]}),window.addEventListener("click",this.clickListener.bind(this),{signal:this.clickListenerSymbol.signal})}disconnectedCallback(){this.clickListenerSymbol.abort()}clickListener(o){o.target!=this.el&&!this.el.contains(o.target)&&this.hide()}handleSelectOption(o,i){o.stopPropagation(),this.optionSelected.emit(i),this.hide()}showDropdown(){var o,i;this.open=!0,this.dropdownMenu.setAttribute("data-show",""),this.dropdownMenu.removeAttribute("aria-hidden"),null===(o=this.popper)||void 0===o||o.setOptions((o=>({...o,modifiers:[...o.modifiers,{name:"eventListeners",enabled:!0}]}))).catch((()=>{})),null===(i=this.popper)||void 0===i||i.update().catch((()=>{}))}handleHideDropdown(o){var i,s;"button"===(null===(i=null==o?void 0:o.target)||void 0===i?void 0:i.localName)&&"arrow"===(null===(s=null==o?void 0:o.target)||void 0===s?void 0:s.className)||this.hide()}toggleDropdown(o){o.stopPropagation(),this.open?this.hide():this.showDropdown()}hide(){var o;this.open=!1,this.dropdownMenu.removeAttribute("data-show"),this.dropdownMenu.setAttribute("aria-hidden","true"),null===(o=this.popper)||void 0===o||o.setOptions((o=>({...o,modifiers:[...o.modifiers,{name:"eventListeners",enabled:!1}]}))).catch((()=>{}))}render(){var o;return s(r,{class:{open:!!this.open}},s("button",{class:"arrow",innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#50BE80"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M7 10l5 5 5-5H7z"/></svg>',"aria-label":"Open Menu",onClick:o=>this.toggleDropdown(o),onBlur:o=>this.handleHideDropdown(o),ref:o=>this.dropdownButton=o}),s("div",{class:"items","aria-hidden":!this.open,ref:o=>this.dropdownMenu=o},null===(o=this.options)||void 0===o?void 0:o.map((o=>o.label?s("button",{onClick:i=>this.handleSelectOption(i,o),class:"option",disabled:o.disabled},o.label):s("div",{class:"separator"})))))}get el(){return t(this)}};e.style='verdocs-dropdown{font-family:"Inter", "Barlow", sans-serif;display:block}verdocs-dropdown .arrow{width:32px;height:26px;background:#fff;cursor:pointer;border-radius:4px;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;border:1px solid #cccccc;-ms-flex-pack:center;justify-content:center}verdocs-dropdown .arrow svg{fill:#55bc81;-webkit-transition:0.3s;transition:0.3s}verdocs-dropdown .items{width:200px;display:none;z-index:10000;border-radius:5px;background:#33354c;border:1px solid #654dcb}verdocs-dropdown .items[data-show]{display:block}verdocs-dropdown .option{width:100%;color:#fff;border:none;display:block;text-align:left;background:none;padding:10px 20px}verdocs-dropdown .option:hover{cursor:pointer;background:#55bc81}verdocs-dropdown .option[disabled]{color:#aaaaaa}verdocs-dropdown .option[disabled]:hover{color:#aaaaaa;cursor:inherit;background:transparent}verdocs-dropdown .separator{border-top:1px solid #ffffff5f;height:1px;padding-top:5px;margin-top:5px}verdocs-dropdown.open .items{display:block}verdocs-dropdown.open .arrow{background:#4c56cb;border:1px solid #707ae5}verdocs-dropdown.open .arrow svg{-webkit-transform:scaleY(-1);transform:scaleY(-1);fill:#fff}';export{e as verdocs_dropdown}
@@ -1 +0,0 @@
1
- System.register(["./p-2dbc05c6.system.js"],(function(e){"use strict";var o,t,r,i;return{setters:[function(e){o=e.r;t=e.c;r=e.h;i=e.H}],execute:function(){var a='verdocs-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-dialog .background-overlay{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:absolute;-ms-flex-align:center;align-items:center;background:#0000007f;-ms-flex-pack:center;justify-content:center}verdocs-dialog .dialog{width:420px;display:-ms-flexbox;display:flex;max-width:100%;overflow:hidden;border-radius:4px;-ms-flex-direction:column;flex-direction:column;background:#ffffff;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-dialog .heading{display:-ms-flexbox;display:flex;font-size:16px;font-weight:500;padding:8px 16px;-ms-flex-direction:row;flex-direction:row;color:#ffffff;background:#46497d}verdocs-dialog .content{padding:16px}verdocs-dialog .content p{margin:0 0 1em 0}verdocs-dialog .buttons{gap:14px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}';var l=e("verdocs_dialog",function(){function e(e){o(this,e);this.exit=t(this,"exit",7)}e.prototype.handleDismiss=function(e){var o;if(e.target.className==="background-overlay"){e.preventDefault();(o=this.exit)===null||o===void 0?void 0:o.emit()}};e.prototype.render=function(){var e=this;return r(i,null,r("div",{class:"background-overlay",onClick:function(o){return e.handleDismiss(o)}},r("div",{class:"dialog"},r("slot",{name:"title"},r("div",{class:"heading"},"Please Confirm")),r("slot",null,r("div",{class:"content"})))))};return e}());l.style=a;var n='verdocs-table{width:100%;display:block;margin:0 0 10px 0;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", "Barlow", sans-serif}verdocs-table .table-wrapper{margin:10px 0;padding:0}verdocs-table .table{width:100%;border:none;border-collapse:collapse}verdocs-table .row.data-row{border:1px solid #d4d4d8;background-color:#ffffff}verdocs-table .header-col{color:#5c6575;font-weight:600;text-align:left;padding:8px 16px}verdocs-table .data-col{font-weight:400;padding:8px 16px}';var s=e("verdocs_table",function(){function e(e){o(this,e);this.columns=[];this.data=[]}e.prototype.render=function(){var e=this;return r(i,{class:"table-wrapper"},r("table",{class:"table"},r("thead",null,r("tr",{class:"row header-row"},this.columns.map((function(e,o){return r("th",{class:"col header-col col-".concat(o," col-").concat(e.id),innerHTML:e.renderHeader?e.renderHeader(e):e.header||e.id})})))),r("tbody",null,this.data.map((function(o){return r("tr",{class:"row data-row"},e.columns.map((function(e,t){var i;return r("td",{class:"col data-col col-".concat(t," col-").concat(e.id)},((i=e.renderCell)===null||i===void 0?void 0:i.call(e,e,o))||o[e.id])})))})))))};return e}());s.style=n;var d='verdocs-tabs{width:100%;height:50px;display:-ms-flexbox;display:flex;color:#72757d;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:0 0 10px 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:end;align-items:flex-end;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#e5e5e5;font-family:"Inter", "Barlow", sans-serif;-webkit-filter:drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.06));filter:drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.06))}verdocs-tabs .tab{height:50px;display:-ms-flexbox;display:flex;cursor:pointer;padding:0 40px;font-size:16px;font-weight:600;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:#e4e4e7}verdocs-tabs .tab.active{color:#707ae5;background-color:#ffffff}verdocs-tabs .tab.disabled{color:#d4d4d8;cursor:default}';var c=e("verdocs_tabs",function(){function e(e){o(this,e);this.selectTab=t(this,"selectTab",7);this.tabs=[];this.defaultTab=0;this.selectedTab=0}e.prototype.componentWillLoad=function(){this.selectedTab=this.defaultTab||0};e.prototype.handleSelectTab=function(e){var o;this.selectedTab=e;(o=this.selectTab)===null||o===void 0?void 0:o.emit({tab:this.tabs[e],index:e})};e.prototype.render=function(){var e=this;return r(i,null,this.tabs.map((function(o,t){return r("div",{class:"tab ".concat(t===e.selectedTab?"active":""," ").concat(o.disabled?"disabled":""),onClick:o.disabled?function(){}:function(){return e.handleSelectTab(t)}},o.label)})),r("div",{class:"flex flex-1"}),r("slot",null,r("div",null)))};return e}());c.style=d}}}));
@@ -1 +0,0 @@
1
- System.register(["./p-2dbc05c6.system.js"],(function(t){"use strict";var e,o,n,i;return{setters:[function(t){e=t.r;o=t.c;n=t.h;i=t.H}],execute:function(){var s='verdocs-toggle-button{font-family:"Inter", "Barlow", sans-serif}verdocs-toggle-button button{border:none;outline:none;cursor:pointer;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;background:#cccccc;color:#33364b}verdocs-toggle-button button svg{max-width:100%;max-height:100%;fill:#33364b}verdocs-toggle-button button.active{background:#55bc81;color:#f5f5fa}verdocs-toggle-button button.active svg{fill:#f5f5fa}verdocs-toggle-button button:focus{border:none;outline:none}verdocs-toggle-button.size-normal button{width:40px;height:40px;padding:6px;border-radius:4px}verdocs-toggle-button.size-small button{width:34px;height:34px;padding:4px;border-radius:2px}';var c=t("verdocs_toggle_button",function(){function t(t){e(this,t);this.toggle=o(this,"toggle",7);this.active=false;this.icon=null;this.label=null;this.size="normal";this._active=false}t.prototype.componentWillLoad=function(){this._active=this.active};t.prototype.handleToggle=function(t){var e;t.stopPropagation();var o=!this._active;this._active=o;(e=this.toggle)===null||e===void 0?void 0:e.emit({active:o})};t.prototype.render=function(){var t=this;return n(i,{class:"size-".concat(this.size)},this.icon?n("button",{innerHTML:this.icon,class:{active:this._active},onClick:function(e){return t.handleToggle(e)}}):n("button",{class:{active:this._active},onClick:function(e){return t.handleToggle(e)}},this.label))};return t}());c.style=s}}}));
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as i,H as s}from"./p-6d3e0994.js";import"./p-05788c2b.js";import{V as o}from"./p-af048fad.js";import{g as r}from"./p-55af2ceb.js";import{S as l}from"./p-7a1b2643.js";import{V as n}from"./p-ed416acf.js";import"./p-21615f18.js";import"./p-976ec9e8.js";const a=class{constructor(i){e(this,i),this.close=t(this,"close",7),this.sdkError=t(this,"sdkError",7),this.store=null,this.endpoint=o.getDefault(),this.templateId="",this.showPlanBlocker=!1,this.sendReminders=!1,this.firstReminderDays="1",this.reminderDays="1",this.dirty=!1}async componentWillLoad(){var e,t,i,s,o;try{if(this.endpoint.loadSession(),!this.templateId)return void console.log(`[ROLES] Missing required template ID ${this.templateId}`);if(!this.endpoint.session)return void console.log("[ROLES] Unable to start builder session, must be authenticated");this.store=await r(this.endpoint,this.templateId,!0),this.sendReminders=!!(null===(t=null===(e=this.store)||void 0===e?void 0:e.state)||void 0===t?void 0:t.reminder_id),this.dirty=!1}catch(e){console.log("[TEMPLATE REMINDERS] Error loading template",e),null===(i=this.sdkError)||void 0===i||i.emit(new l(e.message,null===(s=e.response)||void 0===s?void 0:s.status,null===(o=e.response)||void 0===o?void 0:o.data))}}handleCancel(e){var t,i,s;e.stopPropagation(),this.sendReminders=!!(null===(i=null===(t=this.store)||void 0===t?void 0:t.state)||void 0===i?void 0:i.reminder_id),this.dirty=!1,null===(s=this.close)||void 0===s||s.emit()}async handleSave(e){var t,i,s,o,a,d,m,c,p,h,u;e.stopPropagation();try{if(this.sendReminders){const e={setup_time:+this.firstReminderDays,interval_time:+this.reminderDays};(null===(i=null===(t=this.store)||void 0===t?void 0:t.state)||void 0===i?void 0:i.reminder_id)?(await function(e,t,i,s){return e.api.put("/templates/".concat(t,"/reminder/").concat(i),s).then((function(e){return e.data}))}(this.endpoint,this.templateId,null===(s=this.store)||void 0===s?void 0:s.state.reminder_id,e),this.store=await r(this.endpoint,this.templateId,!0)):(await function(e,t,i){return e.api.post("/templates/".concat(t,"/reminder/"),i).then((function(e){return e.data}))}(this.endpoint,this.templateId,e),this.store=await r(this.endpoint,this.templateId,!0))}else await(p=this.endpoint,h=this.templateId,u=null===(o=this.store)||void 0===o?void 0:o.state.reminder_id,p.api.delete("/templates/".concat(h,"/reminder/").concat(u)).then((function(e){return e.data}))),this.store=await r(this.endpoint,this.templateId,!0)}catch(e){console.log("[TEMPLATE REMINDERS] Unable to update reminders",e),n(e.message),null===(a=this.sdkError)||void 0===a||a.emit(new l(e.message,null===(d=e.response)||void 0===d?void 0:d.status,null===(m=e.response)||void 0===m?void 0:m.data))}this.dirty=!1,null===(c=this.close)||void 0===c||c.emit()}render(){var e,t;return this.endpoint.session?this.endpoint.session&&(null===(t=null===(e=this.store)||void 0===e?void 0:e.state)||void 0===t?void 0:t.isLoaded)?i(s,null,i("form",{onSubmit:e=>e.preventDefault(),onClick:e=>e.stopPropagation(),autocomplete:"off"},i("h5",null,"Reminders"),i("div",{class:"input-row"},i("label",{htmlFor:"verdocs-send-reminders"},"Send Automatic Reminders"),i("verdocs-checkbox",{id:"verdocs-send-reminders",name:"automatic-reminders",checked:this.sendReminders,value:"on",onInput:e=>{this.sendReminders=e.target.checked,this.dirty=!0}})),i("div",{class:"input-row"},i("label",{htmlFor:"verdocs-first-reminder-days"},"Days Before First Reminder"),i("verdocs-text-input",{id:"verdocs-first-reminder-days",type:"number",value:this.firstReminderDays,onInput:e=>{this.firstReminderDays=e.target.value,this.dirty=!0},disabled:!this.sendReminders})),i("div",{class:"input-row"},i("label",{htmlFor:"verdocs-days-between-reminders"},"Days Between Reminders"),i("verdocs-text-input",{id:"verdocs-days-between-reminders",type:"number",value:this.reminderDays,onInput:e=>{this.reminderDays=e.target.value,this.dirty=!0},disabled:!this.sendReminders})),i("div",{class:"buttons"},i("verdocs-button",{size:"small",variant:"outline",label:"Cancel",disabled:!this.dirty,onClick:e=>this.handleCancel(e)}),i("verdocs-button",{size:"small",label:"Save",disabled:!this.dirty,onClick:e=>this.handleSave(e)}))),this.showPlanBlocker&&i("verdocs-ok-dialog",{heading:"Upgrade to access this feature",message:"Please upgrade your plan to access this feature.",onNext:()=>this.showPlanBlocker=!1})):i(s,{class:"empty"}):i(s,null,i("verdocs-component-error",{message:"You must be authenticated to use this module."}))}};a.style='verdocs-template-reminders{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-template-reminders.loading{min-height:300px;position:relative;display:block}verdocs-template-reminders.empty{display:none}verdocs-template-reminders form{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-reminders form h5{font-size:16px;font-weight:bold;color:#4c56cb;margin:0 0 20px 0}verdocs-template-reminders form label{font-size:16px;font-weight:500;margin:0 0 6px 0;color:#33364b}verdocs-template-reminders form input{border:none;font-size:18px;padding:3px 6px 3px 0;background:transparent;border-bottom:1px solid #33364b}verdocs-template-reminders form input:focus{outline:none}verdocs-template-reminders form .input-row{display:-ms-flexbox;display:flex;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-reminders form .input-row label{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-reminders form .input-row verdocs-text-input{margin:0;display:-ms-flexbox;display:flex;-ms-flex:0 0 60px;flex:0 0 60px}verdocs-template-reminders form .input-row verdocs-text-input input{text-align:center}verdocs-template-reminders form .input-row verdocs-checkbox{display:-ms-flexbox;display:flex;-ms-flex:0 0 40px;flex:0 0 40px;-ms-flex-pack:center;justify-content:center}verdocs-template-reminders .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-direction:row;flex-direction:row}verdocs-template-reminders ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-reminders ::-moz-placeholder{color:#aaaaaa}verdocs-template-reminders :-ms-input-placeholder{color:#aaaaaa}verdocs-template-reminders ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-reminders ::placeholder{color:#aaaaaa}';export{a as verdocs_template_reminders}
@@ -1 +0,0 @@
1
- import{r as i,c as t,h as s,H as o}from"./p-6d3e0994.js";import"./p-05788c2b.js";import{V as l}from"./p-af048fad.js";import{u as e}from"./p-976ec9e8.js";import{g as a}from"./p-55af2ceb.js";import{S as n}from"./p-7a1b2643.js";import"./p-21615f18.js";const d=class{constructor(s){i(this,s),this.close=t(this,"close",7),this.sdkError=t(this,"sdkError",7),this.store=null,this.endpoint=l.getDefault(),this.templateId="",this.name="",this.dirty=!1}async componentWillLoad(){var i,t,s,o,l;try{if(this.endpoint.loadSession(),!this.templateId)return void console.log(`[ROLES] Missing required template ID ${this.templateId}`);if(!this.endpoint.session)return void console.log("[ROLES] Unable to start builder session, must be authenticated");this.store=await a(this.endpoint,this.templateId,!1),this.name=null===(t=null===(i=this.store)||void 0===i?void 0:i.state)||void 0===t?void 0:t.name,this.dirty=!1}catch(i){console.log("[TEMPLATE NAME] Error loading template",i),null===(s=this.sdkError)||void 0===s||s.emit(new n(i.message,null===(o=i.response)||void 0===o?void 0:o.status,null===(l=i.response)||void 0===l?void 0:l.data))}}handleCancel(i){var t,s,o;i.stopPropagation(),this.name=null===(s=null===(t=this.store)||void 0===t?void 0:t.state)||void 0===s?void 0:s.name,this.dirty=!1,console.log("Closing"),null===(o=this.close)||void 0===o||o.emit()}async handleSave(i){var t,s;i.stopPropagation(),await e(this.endpoint,this.templateId,{name:this.name}),(null===(t=this.store)||void 0===t?void 0:t.state)&&(this.store.state.name=this.name),this.dirty=!1,console.log("Closing"),null===(s=this.close)||void 0===s||s.emit()}render(){var i,t;return this.endpoint.session?(null===(t=null===(i=this.store)||void 0===i?void 0:i.state)||void 0===t?void 0:t.isLoading)?s(o,{class:"loading"},s("verdocs-loader",null)):s(o,null,s("form",{onSubmit:i=>i.preventDefault(),onClick:i=>i.stopPropagation(),autocomplete:"off"},s("label",{htmlFor:"verdocs-template-name"},"Template Name"),s("verdocs-text-input",{id:"verdocs-template-name",value:this.name,autocomplete:"off",placeholder:"Template Name...",onInput:i=>{var t,s;this.name=i.target.value,this.dirty=this.name!==(null===(s=null===(t=this.store)||void 0===t?void 0:t.state)||void 0===s?void 0:s.name)}}),s("div",{class:"buttons"},s("verdocs-button",{size:"small",variant:"outline",label:"Cancel",disabled:!this.dirty,onClick:i=>this.handleCancel(i)}),s("verdocs-button",{size:"small",label:"Save",disabled:!this.dirty,onClick:i=>this.handleSave(i)})))):s(o,null,s("verdocs-component-error",{message:"You must be authenticated to use this module."}))}};d.style="";export{d as verdocs_template_name}
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,n,o){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,s){function r(t){try{l(o.next(t))}catch(t){s(t)}}function a(t){try{l(o["throw"](t))}catch(t){s(t)}}function l(t){t.done?n(t.value):i(t.value).then(r,a)}l((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},o,i,s,r;return r={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(t){return function(e){return l([t,e])}}function l(r){if(o)throw new TypeError("Generator is already executing.");while(n)try{if(o=1,i&&(s=r[0]&2?i["return"]:r[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,r[1])).done)return s;if(i=0,s)r=[r[0]&2,s.value];switch(r[0]){case 0:case 1:s=r;break;case 4:n.label++;return{value:r[1],done:false};case 5:n.label++;i=r[1];r=[0];continue;case 7:r=n.ops.pop();n.trys.pop();continue;default:if(!(s=n.trys,s=s.length>0&&s[s.length-1])&&(r[0]===6||r[0]===2)){n=0;continue}if(r[0]===3&&(!s||r[1]>s[0]&&r[1]<s[3])){n.label=r[1];break}if(r[0]===6&&n.label<s[1]){n.label=s[1];s=r;break}if(s&&n.label<s[2]){n.label=s[2];n.ops.push(r);break}if(s[2])n.ops.pop();n.trys.pop();continue}r=e.call(t,n)}catch(t){r=[6,t];i=0}finally{o=s=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};System.register(["./p-2dbc05c6.system.js","./p-54498887.system.js","./p-4422958b.system.js","./p-2fdb7348.system.js","./p-6d2082b7.system.js","./p-187b20b7.system.js","./p-2c95d99b.system.js"],(function(t){"use strict";var e,n,o,i,s,r,a,l;return{setters:[function(t){e=t.r;n=t.c;o=t.h;i=t.H},function(){},function(t){s=t.V},function(t){r=t.u},function(t){a=t.g},function(t){l=t.S},function(){}],execute:function(){var u="";var c=t("verdocs_template_name",function(){function t(t){e(this,t);this.close=n(this,"close",7);this.sdkError=n(this,"sdkError",7);this.store=null;this.endpoint=s.getDefault();this.templateId="";this.name="";this.dirty=false}t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,n,o,i,s,r;return __generator(this,(function(u){switch(u.label){case 0:u.trys.push([0,2,,3]);this.endpoint.loadSession();if(!this.templateId){console.log("[ROLES] Missing required template ID ".concat(this.templateId));return[2]}if(!this.endpoint.session){console.log("[ROLES] Unable to start builder session, must be authenticated");return[2]}s=this;return[4,a(this.endpoint,this.templateId,false)];case 1:s.store=u.sent();this.name=(e=(t=this.store)===null||t===void 0?void 0:t.state)===null||e===void 0?void 0:e.name;this.dirty=false;return[3,3];case 2:r=u.sent();console.log("[TEMPLATE NAME] Error loading template",r);(n=this.sdkError)===null||n===void 0?void 0:n.emit(new l(r.message,(o=r.response)===null||o===void 0?void 0:o.status,(i=r.response)===null||i===void 0?void 0:i.data));return[3,3];case 3:return[2]}}))}))};t.prototype.handleCancel=function(t){var e,n,o;t.stopPropagation();this.name=(n=(e=this.store)===null||e===void 0?void 0:e.state)===null||n===void 0?void 0:n.name;this.dirty=false;console.log("Closing");(o=this.close)===null||o===void 0?void 0:o.emit()};t.prototype.handleSave=function(t){return __awaiter(this,void 0,void 0,(function(){var e,n;return __generator(this,(function(o){switch(o.label){case 0:t.stopPropagation();return[4,r(this.endpoint,this.templateId,{name:this.name})];case 1:o.sent();if((e=this.store)===null||e===void 0?void 0:e.state){this.store.state.name=this.name}this.dirty=false;console.log("Closing");(n=this.close)===null||n===void 0?void 0:n.emit();return[2]}}))}))};t.prototype.render=function(){var t=this;var e,n;if(!this.endpoint.session){return o(i,null,o("verdocs-component-error",{message:"You must be authenticated to use this module."}))}if((n=(e=this.store)===null||e===void 0?void 0:e.state)===null||n===void 0?void 0:n.isLoading){return o(i,{class:"loading"},o("verdocs-loader",null))}return o(i,null,o("form",{onSubmit:function(t){return t.preventDefault()},onClick:function(t){return t.stopPropagation()},autocomplete:"off"},o("label",{htmlFor:"verdocs-template-name"},"Template Name"),o("verdocs-text-input",{id:"verdocs-template-name",value:this.name,autocomplete:"off",placeholder:"Template Name...",onInput:function(e){var n,o;t.name=e.target.value;t.dirty=t.name!==((o=(n=t.store)===null||n===void 0?void 0:n.state)===null||o===void 0?void 0:o.name)}}),o("div",{class:"buttons"},o("verdocs-button",{size:"small",variant:"outline",label:"Cancel",disabled:!this.dirty,onClick:function(e){return t.handleCancel(e)}}),o("verdocs-button",{size:"small",label:"Save",disabled:!this.dirty,onClick:function(e){return t.handleSave(e)}}))))};return t}());c.style=u}}}));
@@ -1 +0,0 @@
1
- import{r as e,c as o,h as s,H as r}from"./p-6d3e0994.js";const i=class{constructor(s){e(this,s),this.exit=o(this,"exit",7)}handleDismiss(e){var o;"background-overlay"===e.target.className&&(e.preventDefault(),null===(o=this.exit)||void 0===o||o.emit())}render(){return s(r,null,s("div",{class:"background-overlay",onClick:e=>this.handleDismiss(e)},s("div",{class:"dialog"},s("slot",{name:"title"},s("div",{class:"heading"},"Please Confirm")),s("slot",null,s("div",{class:"content"})))))}};i.style='verdocs-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-dialog .background-overlay{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:absolute;-ms-flex-align:center;align-items:center;background:#0000007f;-ms-flex-pack:center;justify-content:center}verdocs-dialog .dialog{width:420px;display:-ms-flexbox;display:flex;max-width:100%;overflow:hidden;border-radius:4px;-ms-flex-direction:column;flex-direction:column;background:#ffffff;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-dialog .heading{display:-ms-flexbox;display:flex;font-size:16px;font-weight:500;padding:8px 16px;-ms-flex-direction:row;flex-direction:row;color:#ffffff;background:#46497d}verdocs-dialog .content{padding:16px}verdocs-dialog .content p{margin:0 0 1em 0}verdocs-dialog .buttons{gap:14px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}';const l=class{constructor(o){e(this,o),this.columns=[],this.data=[]}render(){return s(r,{class:"table-wrapper"},s("table",{class:"table"},s("thead",null,s("tr",{class:"row header-row"},this.columns.map(((e,o)=>s("th",{class:`col header-col col-${o} col-${e.id}`,innerHTML:e.renderHeader?e.renderHeader(e):e.header||e.id}))))),s("tbody",null,this.data.map((e=>s("tr",{class:"row data-row"},this.columns.map(((o,r)=>{var i;return s("td",{class:`col data-col col-${r} col-${o.id}`},(null===(i=o.renderCell)||void 0===i?void 0:i.call(o,o,e))||e[o.id])}))))))))}};l.style='verdocs-table{width:100%;display:block;margin:0 0 10px 0;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", "Barlow", sans-serif}verdocs-table .table-wrapper{margin:10px 0;padding:0}verdocs-table .table{width:100%;border:none;border-collapse:collapse}verdocs-table .row.data-row{border:1px solid #d4d4d8;background-color:#ffffff}verdocs-table .header-col{color:#5c6575;font-weight:600;text-align:left;padding:8px 16px}verdocs-table .data-col{font-weight:400;padding:8px 16px}';const a=class{constructor(s){e(this,s),this.selectTab=o(this,"selectTab",7),this.tabs=[],this.defaultTab=0,this.selectedTab=0}componentWillLoad(){this.selectedTab=this.defaultTab||0}handleSelectTab(e){var o;this.selectedTab=e,null===(o=this.selectTab)||void 0===o||o.emit({tab:this.tabs[e],index:e})}render(){return s(r,null,this.tabs.map(((e,o)=>s("div",{class:`tab ${o===this.selectedTab?"active":""} ${e.disabled?"disabled":""}`,onClick:e.disabled?()=>{}:()=>this.handleSelectTab(o)},e.label))),s("div",{class:"flex flex-1"}),s("slot",null,s("div",null)))}};a.style='verdocs-tabs{width:100%;height:50px;display:-ms-flexbox;display:flex;color:#72757d;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:0 0 10px 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:end;align-items:flex-end;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#e5e5e5;font-family:"Inter", "Barlow", sans-serif;-webkit-filter:drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.06));filter:drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.06))}verdocs-tabs .tab{height:50px;display:-ms-flexbox;display:flex;cursor:pointer;padding:0 40px;font-size:16px;font-weight:600;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:#e4e4e7}verdocs-tabs .tab.active{color:#707ae5;background-color:#ffffff}verdocs-tabs .tab.disabled{color:#d4d4d8;cursor:default}';export{i as verdocs_dialog,l as verdocs_table,a as verdocs_tabs}
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r["throw"](e))}catch(e){o(e)}}function l(e){e.done?n(e.value):i(e.value).then(s,a)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;i=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1];o=s;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(s);break}if(o[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++){if(o||!(r in t)){if(!o)o=Array.prototype.slice.call(t,0,r);o[r]=t[r]}}return e.concat(o||Array.prototype.slice.call(t))};System.register(["./p-2dbc05c6.system.js","./p-54498887.system.js","./p-4422958b.system.js","./p-169fa979.system.js","./p-6d2082b7.system.js","./p-187b20b7.system.js","./p-bbee73c8.system.js","./p-11e34f77.system.js","./p-327858f0.system.js","./p-7fd7152d.system.js","./p-dc9c4361.system.js","./p-2c95d99b.system.js","./p-2fdb7348.system.js"],(function(e){"use strict";var t,n,r,i,o,s,a,l,u,c;return{setters:[function(e){t=e.r;n=e.c;r=e.h;i=e.H},function(){},function(e){o=e.V},function(e){s=e.r;a=e.a},function(e){l=e.g;u=e.a},function(e){c=e.S},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var d='verdocs-preview{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-preview div,verdocs-preview canvas{-webkit-box-sizing:border-box;box-sizing:border-box}';var p=e("verdocs_preview",function(){function e(e){t(this,e);this.sdkError=n(this,"sdkError",7);this.store=null;this.endpoint=o.getDefault();this.templateId=null}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,r,i;return __generator(this,(function(o){switch(o.label){case 0:o.trys.push([0,2,,3]);this.endpoint.loadSession();if(!this.templateId){console.log("[PREVIEW] Missing required template ID ".concat(this.templateId));return[2]}if(!this.endpoint.session){console.log("[PREVIEW] Unable to start builder session, must be authenticated");return[2]}r=this;return[4,l(this.endpoint,this.templateId,true)];case 1:r.store=o.sent();console.log("[PREVIEW] Loading template ".concat(this.templateId),this.endpoint.session);return[3,3];case 2:i=o.sent();console.log("[PREVIEW] Error with preview session",i);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new c(i.message,(t=i.response)===null||t===void 0?void 0:t.status,(n=i.response)===null||n===void 0?void 0:n.data));return[3,3];case 3:return[2]}}))}))};e.prototype.handlePageRendered=function(e){var t=this;var n,r;var i=e.detail;var o=(r=(n=this.store)===null||n===void 0?void 0:n.state)===null||r===void 0?void 0:r.fields.filter((function(e){return e.page_sequence===i.pageNumber}));o.forEach((function(e){return s(e,i,a(u(t.store),e.role_name),{disabled:true,editable:false,draggable:false})}))};e.prototype.render=function(){var e=this;var t,n,o,s;if(!((n=(t=this.store)===null||t===void 0?void 0:t.state)===null||n===void 0?void 0:n.isLoaded)){return r(i,null,r("verdocs-loader",null))}var a=__spreadArray([],(s=(o=this.store)===null||o===void 0?void 0:o.state)===null||s===void 0?void 0:s.pages,true);a.sort((function(e,t){return e.sequence-t.sequence}));return r(i,null,a.map((function(t){return r("verdocs-template-document-page",{templateId:t.template_id,documentId:t.document_id,pageNumber:t.sequence,virtualWidth:612,virtualHeight:792,onPageRendered:function(t){return e.handlePageRendered(t)},layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})})))};return e}());p.style=d}}}));
@@ -1 +0,0 @@
1
- System.register(["./p-2dbc05c6.system.js","./p-54498887.system.js","./p-4422958b.system.js","./p-169fa979.system.js","./p-bbee73c8.system.js","./p-11e34f77.system.js","./p-327858f0.system.js","./p-7fd7152d.system.js","./p-dc9c4361.system.js"],(function(e){"use strict";var t,o,n,i,s;return{setters:[function(e){t=e.r;o=e.c;n=e.h},function(){},function(e){i=e.V},function(e){s=e.d},function(){},function(){},function(){},function(){},function(){}],execute:function(){var a='verdocs-contact-picker{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;background-color:#ffffff}verdocs-contact-picker form{background-color:#f5f5fa;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-contact-picker form .row{width:300px;display:-ms-flexbox;display:flex;position:relative;margin:0 0 20px 0;-ms-flex-direction:column;flex-direction:column}verdocs-contact-picker form label{display:block;font-size:14px;font-weight:500;margin:0 0 4px 0;color:#5c6575}verdocs-contact-picker form input{border:none;font-size:18px;padding:3px 6px 3px 0;background:transparent;border-bottom:1px solid #33364b}verdocs-contact-picker form input:focus{outline:none}verdocs-contact-picker form .dropdown{left:0;right:0;top:49px;z-index:1000000;position:absolute;background:#ffffff;-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}verdocs-contact-picker form .dropdown .suggestion{display:-ms-flexbox;display:flex;padding:6px 12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .dropdown .suggestion svg{fill:#666666}verdocs-contact-picker form .dropdown .suggestion .avatar{width:48px;height:48px;-ms-flex:0 0 48px;flex:0 0 48px;margin-right:8px;border-radius:100%}verdocs-contact-picker form .dropdown .suggestion .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-contact-picker form .dropdown .suggestion .name{font-size:16px;font-weight:500;margin-bottom:3px;color:#092c4c}verdocs-contact-picker form .dropdown .suggestion .destination{font-size:14px;margin-bottom:3px;color:#33364b}verdocs-contact-picker form .dropdown .suggestion:hover{background:#eee;cursor:pointer}verdocs-contact-picker .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-contact-picker ::-webkit-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-moz-placeholder{color:#aaaaaa}verdocs-contact-picker :-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::placeholder{color:#aaaaaa}verdocs-contact-picker [data-lastpass-icon-root]{display:none !important}';var c='<svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiBox-root css-1om0hkc" focusable="false" aria-hidden="true" viewBox="0 0 24 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-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"></path></svg>';var l='<svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiSvgIcon-root MuiSvgIcon-fontSizeLarge css-zjt8k" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="AssignmentIndIcon" tabindex="-1" title="AssignmentInd"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm0 4c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H6v-1.4c0-2 4-3.1 6-3.1s6 1.1 6 3.1V19z"></path></svg>';var r='<svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiSvgIcon-root MuiSvgIcon-fontSizeLarge css-zjt8k" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="AccountCircleIcon" tabindex="-1" title="AccountCircle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6zm0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20z"></path></svg>';var d=e("verdocs_contact_picker",function(){function e(e){t(this,e);this.searchContacts=o(this,"searchContacts",7);this.exit=o(this,"exit",7);this.next=o(this,"next",7);this.endpoint=i.getDefault();this.templateRole=null;this.contactSuggestions=[];this.name=undefined;this.email=undefined;this.phone=undefined;this.message=undefined;this.showSuggestions=false;this.showMessage=false;this.delegator=false;this.nameFieldId="verdocs-contact-picker-name-".concat(Math.random().toString(36).substring(2,11));this.emailFieldId="verdocs-contact-picker-email-".concat(Math.random().toString(36).substring(2,11));this.phoneFieldId="verdocs-contact-picker-phone-".concat(Math.random().toString(36).substring(2,11))}e.prototype.componentWillLoad=function(){if(this.templateRole){this.name=this.templateRole.full_name||"";this.email=this.templateRole.email||"";this.phone=this.templateRole.phone||"";this.delegator=this.templateRole.delegator||false;this.message=this.templateRole.message||"";this.showMessage=this.message!==""}};e.prototype.handleNameChange=function(e){var t;this.name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.name})};e.prototype.handleEmailChange=function(e){this.email=e.target.value};e.prototype.handlePhoneChange=function(e){this.phone=s(e.target.value)};e.prototype.handleMessageChange=function(e){this.message=e.target.value};e.prototype.handleCancel=function(e){var t;e.stopPropagation();this.showSuggestions=false;(t=this.exit)===null||t===void 0?void 0:t.emit()};e.prototype.handleSubmit=function(e){var t;e.stopPropagation();this.showSuggestions=false;(t=this.next)===null||t===void 0?void 0:t.emit({full_name:this.name,email:this.email,phone:this.phone,message:this.message,delegator:this.delegator})};e.prototype.handleSelectSuggestion=function(e,t){e.stopPropagation();this.name=t.name;this.email=t.email;this.phone=t.phone;this.showSuggestions=false};e.prototype.render=function(){var e=this;return n("form",{onSubmit:function(e){return e.preventDefault()},onClick:function(e){return e.stopPropagation()},autocomplete:"off"},n("div",{class:"row"},n("label",{htmlFor:this.nameFieldId},"Name:"),n("input",{id:this.nameFieldId,name:this.nameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked",value:this.name,placeholder:"Recipient Name...",onFocus:function(){var t;return e.showSuggestions=((t=e.contactSuggestions)===null||t===void 0?void 0:t.length)>0},onInput:function(t){return e.handleNameChange(t)}}),this.showSuggestions&&n("div",{class:"dropdown"},this.contactSuggestions.map((function(t){var o;return n("div",{key:(o=t.id)!==null&&o!==void 0?o:t.name,class:"suggestion",onClick:function(o){return e.handleSelectSuggestion(o,t)}},t.avatar?n("img",{alt:"Avatar",class:"avatar",src:t.avatar}):n("div",{class:"avatar",innerHTML:r}),n("div",{class:"details"},n("div",{class:"name"},t.name),t.email&&n("div",{class:"destination"},t.email),t.phone&&n("div",{class:"destination"},t.phone)))})))),n("div",{class:"row"},n("label",{htmlFor:this.emailFieldId},"Email:"),n("input",{id:this.emailFieldId,name:this.emailFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked",value:this.email,placeholder:"Email Address...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){return e.handleEmailChange(t)}})),n("div",{class:"row"},n("label",{htmlFor:this.phoneFieldId},"Phone:"),n("input",{id:this.phoneFieldId,name:this.phoneFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked",value:this.phone,placeholder:"Phone Number...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){return e.handlePhoneChange(t)}})),this.showMessage&&n("div",{class:"row"},n("label",{htmlFor:"verdocs-contact-picker-message"},"Message:"),n("input",{id:"verdocs-contact-picker-message",name:"verdocs-contact-picker-message",type:"text","data-lpignore":"true",autocomplete:"blocked",value:this.message,placeholder:"Invitation Message...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){return e.handleMessageChange(t)}})),n("div",{class:"buttons"},n("verdocs-toggle-button",{icon:c,size:"small",active:this.showMessage,onToggle:function(t){e.showMessage=t.detail.active;e.showSuggestions=false}}),n("verdocs-toggle-button",{icon:l,size:"small",active:this.delegator,onToggle:function(t){e.delegator=t.detail.active;e.showSuggestions=false}}),n("div",{class:"flex-fill"}),n("verdocs-button",{variant:"outline",label:"Cancel",size:"small",onClick:function(t){return e.handleCancel(t)}}),n("verdocs-button",{label:"OK",size:"small",onClick:function(t){return e.handleSubmit(t)}})))};return e}());d.style=a}}}));
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,o){function s(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,n){function r(e){try{a(o.next(e))}catch(e){n(e)}}function l(e){try{a(o["throw"](e))}catch(e){n(e)}}function a(e){e.done?i(e.value):s(e.value).then(r,l)}a((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},o,s,n,r;return r={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function l(e){return function(t){return a([e,t])}}function a(r){if(o)throw new TypeError("Generator is already executing.");while(i)try{if(o=1,s&&(n=r[0]&2?s["return"]:r[0]?s["throw"]||((n=s["return"])&&n.call(s),0):s.next)&&!(n=n.call(s,r[1])).done)return n;if(s=0,n)r=[r[0]&2,n.value];switch(r[0]){case 0:case 1:n=r;break;case 4:i.label++;return{value:r[1],done:false};case 5:i.label++;s=r[1];r=[0];continue;case 7:r=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(r[0]===6||r[0]===2)){i=0;continue}if(r[0]===3&&(!n||r[1]>n[0]&&r[1]<n[3])){i.label=r[1];break}if(r[0]===6&&i.label<n[1]){i.label=n[1];n=r;break}if(n&&i.label<n[2]){i.label=n[2];i.ops.push(r);break}if(n[2])i.ops.pop();i.trys.pop();continue}r=t.call(e,i)}catch(e){r=[6,e];s=0}finally{o=n=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};System.register(["./p-2dbc05c6.system.js","./p-54498887.system.js","./p-4422958b.system.js","./p-2fdb7348.system.js","./p-6d2082b7.system.js","./p-187b20b7.system.js","./p-2c95d99b.system.js"],(function(e){"use strict";var t,i,o,s,n,r,l,a;return{setters:[function(e){t=e.r;i=e.c;o=e.h;s=e.H},function(){},function(e){n=e.V},function(e){r=e.u},function(e){l=e.g},function(e){a=e.S},function(){}],execute:function(){var c='verdocs-template-visibility{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-template-visibility.loading{min-height:300px;position:relative;display:block}verdocs-template-visibility.empty{display:none}verdocs-template-visibility form{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-visibility form .description{font-size:14px;text-align:justify;color:#5c6575}verdocs-template-visibility form h5{font-size:16px;font-weight:bold;color:#4c56cb;margin:0}verdocs-template-visibility form label{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;font-size:16px;font-weight:500;margin:0 0 4px 0;color:#33364b}verdocs-template-visibility form input{border:none;font-size:18px;padding:3px 6px 3px 0;background:transparent;border-bottom:1px solid #33364b}verdocs-template-visibility form input:focus{outline:none}verdocs-template-visibility form .input-row{display:-ms-flexbox;display:flex;margin:20px 0 0 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-visibility form .input-row verdocs-text-input{margin:0;display:-ms-flexbox;display:flex;-ms-flex:0 0 40px;flex:0 0 40px}verdocs-template-visibility form .input-row verdocs-text-input input{text-align:center}verdocs-template-visibility form .input-row verdocs-checkbox{-ms-flex:0;flex:0;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}verdocs-template-visibility form .input-row verdocs-checkbox label>input[type=checkbox]+*::before{margin-right:0}verdocs-template-visibility .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:25px;-ms-flex-direction:row;flex-direction:row}verdocs-template-visibility ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-visibility ::-moz-placeholder{color:#aaaaaa}verdocs-template-visibility :-ms-input-placeholder{color:#aaaaaa}verdocs-template-visibility ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-visibility ::placeholder{color:#aaaaaa}';var u=e("verdocs_template_visibility",function(){function e(e){t(this,e);this.close=i(this,"close",7);this.sdkError=i(this,"sdkError",7);this.store=null;this.endpoint=n.getDefault();this.templateId="";this.dirty=false;this.personal=false;this.public=false}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,o,s,n,r,c,u;return __generator(this,(function(p){switch(p.label){case 0:p.trys.push([0,2,,3]);this.endpoint.loadSession();if(!this.templateId){console.log("[VISIBILITY] Missing required template ID ".concat(this.templateId));return[2]}if(!this.endpoint.session){console.log("[VISIBILITY] Unable to start builder session, must be authenticated");return[2]}c=this;return[4,l(this.endpoint,this.templateId,false)];case 1:c.store=p.sent();this.personal=((t=(e=this.store)===null||e===void 0?void 0:e.state)===null||t===void 0?void 0:t.is_personal)||true;this.public=((o=(i=this.store)===null||i===void 0?void 0:i.state)===null||o===void 0?void 0:o.is_public)||false;this.dirty=false;return[3,3];case 2:u=p.sent();console.log("[TEMPLATE VISIBILITY] Error loading template",u);(s=this.sdkError)===null||s===void 0?void 0:s.emit(new a(u.message,(n=u.response)===null||n===void 0?void 0:n.status,(r=u.response)===null||r===void 0?void 0:r.data));return[3,3];case 3:return[2]}}))}))};e.prototype.handleCancel=function(e){var t,i,o,s,n;e.stopPropagation();this.personal=(i=(t=this.store)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.is_personal;this.public=(s=(o=this.store)===null||o===void 0?void 0:o.state)===null||s===void 0?void 0:s.is_public;this.dirty=false;(n=this.close)===null||n===void 0?void 0:n.emit()};e.prototype.handleSave=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(o){switch(o.label){case 0:e.stopPropagation();return[4,r(this.endpoint,this.templateId,{is_personal:this.personal,is_public:this.public})];case 1:o.sent();if((t=this.store)===null||t===void 0?void 0:t.state){this.store.state.is_personal=this.personal;this.store.state.is_public=this.public}this.dirty=false;(i=this.close)===null||i===void 0?void 0:i.emit();return[2]}}))}))};e.prototype.render=function(){var e=this;var t,i;if(!this.endpoint.session){return o(s,null,o("verdocs-component-error",{message:"You must be authenticated to use this module."}))}if(!this.endpoint.session||!((i=(t=this.store)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.isLoaded)){return o(s,{class:"empty"})}return o(s,null,o("form",{onSubmit:function(e){return e.preventDefault()},onClick:function(e){return e.stopPropagation()},autocomplete:"off"},o("h5",null,"Visibility"),o("div",{class:"input-row"},o("label",{htmlFor:"verdocs-is-shared"},"Shared"),o("verdocs-checkbox",{id:"verdocs-is-shared",name:"is-shared",checked:!this.personal,value:"on",onInput:function(t){e.personal=!t.target.checked;e.dirty=true}})),o("div",{class:"description"},"Shared templates are visible to other members of your Organization (if any)."),o("div",{class:"input-row"},o("label",{htmlFor:"verdocs-is-public"},"Public"),o("verdocs-checkbox",{id:"verdocs-is-public",name:"is-public",checked:this.public,value:"on",onInput:function(t){e.public=t.target.checked;e.dirty=true}})),o("div",{class:"description"},"Public templates may appear in results when any other user searches for templates. Note that a template may be both Personal and Public, which may be useful if you want your template to be found via search but not otherwise displayed to other members of your Organization (if any)."),o("div",{class:"buttons"},o("verdocs-button",{size:"small",variant:"outline",label:"Cancel",disabled:!this.dirty,onClick:function(t){return e.handleCancel(t)}}),o("verdocs-button",{size:"small",label:"Save",disabled:!this.dirty,onClick:function(t){return e.handleSave(t)}}))))};return e}());u.style=c}}}));
@@ -1 +0,0 @@
1
- System.register(["./p-2dbc05c6.system.js"],(function(e,t){"use strict";var i,s;return{setters:[function(e){i=e.p;s=e.b}],execute:function(){var e=function(){var e=t.meta.url;var s={};if(e!==""){s.resourcesUrl=new URL(".",e).href}return i(s)};e().then((function(e){return s(JSON.parse('[["p-8fdcf4a9.system",[[0,"verdocs-build",{"endpoint":[16],"templateId":[1,"template-id"],"step":[513],"template":[32]}]]],["p-c23359af.system",[[0,"ipc-test",{"endpoint":[16],"templateId":[1,"template-id"]}]]],["p-e248947e.system",[[0,"verdocs-settings",{"endpoint":[16],"tab":[32]}]]],["p-c9e66410.system",[[0,"verdocs-envelopes-list",{"endpoint":[16],"view":[1537],"status":[1537],"sort":[1537],"match":[1537],"showPagination":[4,"show-pagination"],"rowsPerPage":[2,"rows-per-page"],"selectedPage":[2,"selected-page"],"count":[32],"initiallyLoaded":[32],"loading":[32],"selectedEnvelopes":[32],"envelopes":[32]}]]],["p-5d6c7546.system",[[0,"verdocs-field-attachment",{"templateid":[1],"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"xscale":[2],"yscale":[2],"rerender":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-06e445b1.system",[[0,"verdocs-field-initial",{"templateid":[1],"field":[16],"disabled":[4],"initials":[1],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"rerender":[2],"tempInitials":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-5cb78c1b.system",[[0,"verdocs-field-signature",{"templateid":[1],"field":[16],"name":[1],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"rerender":[2],"tempSignature":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-cea9f0ba.system",[[0,"verdocs-templates-list",{"endpoint":[16],"sharing":[1537],"starred":[1537],"sort":[1537],"name":[1537],"allowedActions":[1040],"showPagination":[4,"show-pagination"],"rowsPerPage":[2,"rows-per-page"],"selectedPage":[2,"selected-page"],"count":[32],"initiallyLoaded":[32],"loading":[32],"confirmDelete":[32],"templates":[32],"localNameFilter":[32]}]]],["p-750b37cd.system",[[0,"verdocs-field-checkbox",{"templateid":[1],"field":[16],"option":[2],"disabled":[4],"done":[4],"roleindex":[2],"editable":[4],"moveable":[4],"rerender":[2],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-205b6235.system",[[0,"verdocs-field-date",{"templateid":[1],"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"rerender":[2],"containerId":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-c125f51e.system",[[0,"verdocs-field-dropdown",{"templateid":[1],"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"rerender":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-f05e18ba.system",[[0,"verdocs-field-radio-button",{"templateid":[1],"field":[16],"option":[2],"disabled":[4],"done":[4],"roleindex":[2],"editable":[4],"moveable":[4],"rerender":[2],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-ff2d4284.system",[[0,"verdocs-field-textarea",{"endpoint":[16],"templateid":[1],"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"xscale":[2],"yscale":[2],"rerender":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-6cd5db91.system",[[0,"verdocs-field-textbox",{"endpoint":[16],"templateid":[1],"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"xscale":[2],"yscale":[2],"rerender":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-0e08012c.system",[[0,"verdocs-field-timestamp",{"templateid":[1],"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"rerender":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-e0a212a1.system",[[0,"verdocs-sign",{"envelopeId":[1,"envelope-id"],"roleId":[1,"role-id"],"inviteCode":[1,"invite-code"],"headerTargetId":[1,"header-target-id"],"envelope":[32],"roleNames":[32],"sortedRecipients":[32],"recipient":[32],"signerToken":[32],"hasSignature":[32],"nextButtonLabel":[32],"nextSubmits":[32],"errorMessage":[32],"focusedField":[32],"submitting":[32],"isDone":[32],"showDone":[32],"finishLater":[32],"showFinishLater":[32],"agreed":[32],"documentsSingularPlural":[32]}]]],["p-b41338e5.system",[[0,"verdocs-template-reminders",{"endpoint":[16],"templateId":[1,"template-id"],"showPlanBlocker":[32],"sendReminders":[32],"firstReminderDays":[32],"reminderDays":[32],"dirty":[32]}]]],["p-ff850808.system",[[0,"verdocs-auth",{"endpoint":[16],"visible":[4],"logo":[1],"isAuthenticated":[32],"displayMode":[32],"orgname":[32],"orgAvailable":[32],"first":[32],"last":[32],"username":[32],"phone":[32],"password":[32],"submitting":[32],"activeSession":[32],"accountType":[32],"howHear":[32],"industry":[32],"companySize":[32],"reason":[32],"signupStep":[32],"resendDisabled":[32],"checkingOrg":[32]}]]],["p-fb9b8d32.system",[[0,"verdocs-envelope-sidebar",{"endpoint":[16],"envelopeId":[1,"envelope-id"],"activeTab":[32],"panelOpen":[32],"showManageDialog":[32],"showRecipientDialog":[32],"showCancelDialog":[32],"loading":[32]}]]],["p-2dc36f82.system",[[0,"verdocs-template-name",{"endpoint":[16],"templateId":[1,"template-id"],"name":[32],"dirty":[32]}]]],["p-fac26def.system",[[0,"verdocs-search",{"endpoint":[16]}]]],["p-c2e3d476.system",[[0,"verdocs-send",{"endpoint":[16],"templateId":[1,"template-id"],"containerId":[32],"rolesAtLevel":[32],"showPickerForId":[32],"sessionContacts":[32],"rolesCompleted":[32],"reset":[64]}]]],["p-5cae759a.system",[[0,"verdocs-template-visibility",{"endpoint":[16],"templateId":[1,"template-id"],"dirty":[32],"personal":[32],"public":[32]}]]],["p-5314386f.system",[[0,"verdocs-preview",{"endpoint":[16],"templateId":[1,"template-id"]}]]],["p-fb71f28a.system",[[0,"verdocs-activity-box",{"endpoint":[16],"items":[2],"view":[1],"header":[1],"title":[32],"count":[32],"loading":[32],"entries":[32]}]]],["p-37c09dd4.system",[[0,"verdocs-template-document-page",{"endpoint":[16],"templateId":[1,"template-id"],"documentId":[1,"document-id"],"pageNumber":[2,"page-number"],"virtualWidth":[2,"virtual-width"],"virtualHeight":[1026,"virtual-height"],"layers":[16],"containerId":[32],"renderedWidth":[32],"renderedHeight":[32],"naturalWidth":[32],"naturalHeight":[32],"aspectRatio":[32],"skipFirstNotification":[32],"pageDisplayUri":[32]}],[0,"verdocs-toolbar-icon",{"text":[1],"icon":[1],"placement":[1],"containerId":[32]}]]],["p-afd6285f.system",[[0,"verdocs-floating-menu",{"options":[16]}]]],["p-2bed90fd.system",[[0,"verdocs-kba-dialog",{"step":[2],"steps":[2],"helptitle":[1],"helptext":[1],"mode":[1],"label":[1],"placeholder":[1],"choices":[16],"response":[32]}]]],["p-01ec9d6d.system",[[0,"verdocs-field-payment",{"templateid":[1],"field":[16],"disabled":[4],"fields":[16],"pageNum":[2,"page-num"],"roleName":[1,"role-name"],"fieldId":[1,"field-id"],"recipients":[8],"selectedRoleName":[1,"selected-role-name"],"pdfPages":[16],"currentSignature":[1,"current-signature"],"currentSignatureId":[1,"current-signature-id"],"currentInitial":[1,"current-initial"],"currentInitialId":[1,"current-initial-id"],"focused":[4],"signed":[4],"rerender":[2],"roleindex":[2],"preparedMessage":[32],"signatureUrl":[32],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-670a2414.system",[[0,"verdocs-organization-card",{"organization":[16]}]]],["p-e1942999.system",[[0,"verdocs-search-tabs",{"selected":[32]}]]],["p-c7c021fe.system",[[0,"verdocs-template-card",{"template":[16]}]]],["p-33d75280.system",[[0,"verdocs-template-tags",{"tags":[16]}]]],["p-3fcfb333.system",[[0,"verdocs-toggle",{"options":[16],"theme":[1],"selectedOption":[32]}]]],["p-b650d3c1.system",[[0,"verdocs-envelope-document-page",{"endpoint":[16],"envelopeId":[1,"envelope-id"],"documentId":[1,"document-id"],"pageNumber":[2,"page-number"],"virtualWidth":[2,"virtual-width"],"virtualHeight":[1026,"virtual-height"],"layers":[16],"type":[1],"containerId":[32],"renderedWidth":[32],"renderedHeight":[32],"naturalWidth":[32],"naturalHeight":[32],"aspectRatio":[32],"skipFirstNotification":[32],"pageDisplayUri":[32]}]]],["p-937cd171.system",[[0,"verdocs-text-input",{"value":[1537],"label":[1],"placeholder":[1],"autocomplete":[1],"helpText":[1,"help-text"],"clearable":[4],"copyable":[4],"type":[1],"disabled":[4],"required":[4]}],[0,"verdocs-help-icon",{"text":[1],"icon":[1],"containerId":[32]}],[0,"verdocs-button",{"label":[1],"startIcon":[1,"start-icon"],"endIcon":[1,"end-icon"],"size":[1],"type":[1],"variant":[1],"disabled":[4]}]]],["p-96ca789b.system",[[0,"verdocs-view",{"endpoint":[16],"envelopeId":[1,"envelope-id"],"headerTargetId":[1,"header-target-id"],"canceling":[32],"envelope":[32],"roleNames":[32],"showCancelDone":[32]}]]],["p-000348a7.system",[[0,"verdocs-initial-dialog",{"initials":[1],"fontLoaded":[32],"enteredInitials":[32],"mode":[32]}]]],["p-af8e5bc9.system",[[0,"verdocs-signature-dialog",{"name":[1],"fontLoaded":[32],"enteredName":[32],"mode":[32]}]]],["p-05b7ba5b.system",[[0,"verdocs-toggle-button",{"active":[4],"icon":[1],"label":[1],"size":[1],"_active":[32]}]]],["p-54e215c5.system",[[0,"verdocs-contact-picker",{"endpoint":[16],"templateRole":[16],"contactSuggestions":[16],"name":[32],"email":[32],"phone":[32],"message":[32],"showSuggestions":[32],"showMessage":[32],"delegator":[32],"nameFieldId":[32],"emailFieldId":[32],"phoneFieldId":[32]}]]],["p-c9fe8bad.system",[[0,"verdocs-upload-dialog",{"draggingOver":[32],"decodedFiles":[32]}]]],["p-eddc727f.system",[[0,"verdocs-status-indicator",{"size":[1],"theme":[1],"status":[1],"envelope":[16],"isOpen":[32],"containerId":[32]}]]],["p-400a996a.system",[[0,"verdocs-template-star",{"endpoint":[16],"template":[1040],"updating":[32]}]]],["p-a5ce9047.system",[[0,"verdocs-template-attachments",{"endpoint":[16],"templateId":[1,"template-id"],"uploading":[32],"progressLabel":[32],"progressPercent":[32],"showDeleteError":[32],"confirmDeleteDocument":[32],"store":[32]}],[0,"verdocs-template-create",{"endpoint":[16],"file":[32],"creating":[32],"progressLabel":[32],"progressPercent":[32]}]]],["p-19860fa1.system",[[0,"verdocs-envelope-recipient-link",{"endpoint":[16],"envelopeId":[1,"envelope-id"],"roleName":[1,"role-name"],"isOpen":[32],"loading":[32],"gettingLink":[32],"link":[32]}],[0,"verdocs-envelope-recipient-summary",{"endpoint":[16],"envelopeId":[1,"envelope-id"],"canSendAnother":[4,"can-send-another"],"canView":[4,"can-view"],"canDone":[4,"can-done"],"isOpen":[32],"loading":[32],"recipientStatusIcons":[32],"containerId":[32],"gettingLinks":[32],"links":[32]}]]],["p-3aac3218.system",[[0,"verdocs-quick-functions",{"endpoint":[16]}],[0,"verdocs-search-activity",{"endpoint":[16],"type":[1],"options":[8],"emptyMessage":[32],"authFailure":[32],"title":[32],"recent":[32],"saved":[32],"starred":[32]}],[0,"verdocs-search-box",{"endpoint":[16],"placeholder":[1],"type":[1],"query":[1],"grabsFocus":[4,"grabs-focus"],"focusField":[64]}]]],["p-c0e4c58b.system",[[0,"verdocs-dropdown",{"options":[16],"open":[32]}]]],["p-0578c85b.system",[[4,"verdocs-tabs",{"tabs":[16],"defaultTab":[2,"default-tab"],"selectedTab":[32]}],[4,"verdocs-dialog"],[0,"verdocs-table",{"columns":[16],"data":[16]}]]],["p-6572cc71.system",[[0,"verdocs-settings-members",{"endpoint":[16],"members":[32],"invited":[32],"roles":[32],"selectedTab":[32],"invitingMember":[32],"newEmailAddress":[32],"newRoleId":[32],"submitting":[32],"deletingInvitation":[32],"resendingInvitation":[32],"deletingMember":[32]}],[0,"verdocs-settings-api-keys",{"endpoint":[16],"keys":[32],"creatingKey":[32],"createdKey":[32],"deletingKey":[32],"rotatingKey":[32],"newApiKeyName":[32],"newApiKeyProfileId":[32],"members":[32]}],[0,"verdocs-settings-organization",{"endpoint":[16],"valid":[32],"dirty":[32],"submitting":[32],"name":[32],"business_name":[32],"contact_email":[32],"phone":[32],"address":[32],"address2":[32],"timezone":[32],"url":[32]}],[0,"verdocs-settings-profile",{"endpoint":[16],"valid":[32],"dirty":[32],"submitting":[32],"first_name":[32],"last_name":[32],"email":[32],"phone":[32]}]]],["p-4dc8cc71.system",[[0,"verdocs-radio-button",{"checked":[4],"name":[1],"value":[1],"disabled":[4]}]]],["p-2a969dc8.system",[[0,"verdocs-file-chooser",{"endpoint":[16],"file":[32]}],[0,"verdocs-progress-bar",{"label":[1],"showPercent":[4,"show-percent"],"percent":[2]}]]],["p-02bbfba3.system",[[0,"verdocs-pagination",{"selectedPage":[1538,"selected-page"],"itemCount":[2,"item-count"],"perPage":[2,"per-page"]}],[0,"verdocs-quick-filter",{"options":[16],"label":[1],"value":[1537],"placeholder":[1],"open":[32]}],[0,"verdocs-spinner",{"size":[2],"mode":[1]}]]],["p-50adf449.system",[[0,"verdocs-ok-dialog",{"heading":[1],"message":[1],"showCancel":[4,"show-cancel"],"closed":[32]}]]],["p-b64f9e64.system",[[0,"verdocs-loader"]]],["p-3a0c5966.system",[[0,"verdocs-checkbox",{"checked":[4],"name":[1],"label":[1],"value":[1],"theme":[1],"disabled":[4]}],[0,"verdocs-component-error",{"message":[1]}],[0,"verdocs-select-input",{"value":[1],"label":[1],"options":[16],"disabled":[4]}]]],["p-c556a377.system",[[0,"verdocs-template-roles",{"endpoint":[16],"templateId":[1,"template-id"],"showingRoleDialog":[32],"showingSenderDialog":[32],"sender":[32]}],[0,"verdocs-template-fields",{"endpoint":[16],"templateId":[1,"template-id"],"toolbarTargetId":[1,"toolbar-target-id"],"placing":[32],"showMustSelectRole":[32],"selectedRoleName":[32],"rerender":[32]},[[4,"keydown","handleKeyDown"]]],[0,"verdocs-template-role-properties",{"endpoint":[16],"templateId":[1,"template-id"],"roleName":[1,"role-name"],"sender":[1],"dirty":[32],"saving":[32],"name":[32],"type":[32],"fullName":[32],"email":[32],"phone":[32],"allowDelegation":[32]}],[0,"verdocs-template-sender",{"endpoint":[16],"templateId":[1,"template-id"],"sender":[1],"saving":[32]}]]],["p-766f8b54.system",[[0,"verdocs-template-field-properties",{"endpoint":[16],"templateId":[1,"template-id"],"fieldName":[1,"field-name"],"helpText":[1,"help-text"],"dirty":[32],"loading":[32],"type":[32],"setting":[32],"name":[32],"roleName":[32],"group":[32],"fieldType":[32],"required":[32],"options":[32],"placeholder":[32],"value":[32],"leading":[32],"showingHelp":[32]}],[4,"verdocs-button-panel",{"icon":[1],"showPanel":[64],"hidePanel":[64],"toggle":[64]}]]]]'),e)}))}}}));
@@ -1 +0,0 @@
1
- import{r as e,c as i,h as o,H as s}from"./p-6d3e0994.js";import"./p-05788c2b.js";import{V as t}from"./p-af048fad.js";import{r,a}from"./p-449f38bb.js";import{g as n,a as d}from"./p-55af2ceb.js";import{S as l}from"./p-7a1b2643.js";import"./p-eab67c09.js";import"./p-38d827d3.js";import"./p-aa124212.js";import"./p-de60d3a8.js";import"./p-c220af42.js";import"./p-21615f18.js";import"./p-976ec9e8.js";const p=class{constructor(o){e(this,o),this.sdkError=i(this,"sdkError",7),this.store=null,this.endpoint=t.getDefault(),this.templateId=null}async componentWillLoad(){var e,i,o;try{if(this.endpoint.loadSession(),!this.templateId)return void console.log(`[PREVIEW] Missing required template ID ${this.templateId}`);if(!this.endpoint.session)return void console.log("[PREVIEW] Unable to start builder session, must be authenticated");this.store=await n(this.endpoint,this.templateId,!0),console.log(`[PREVIEW] Loading template ${this.templateId}`,this.endpoint.session)}catch(s){console.log("[PREVIEW] Error with preview session",s),null===(e=this.sdkError)||void 0===e||e.emit(new l(s.message,null===(i=s.response)||void 0===i?void 0:i.status,null===(o=s.response)||void 0===o?void 0:o.data))}}handlePageRendered(e){var i,o;const s=e.detail;(null===(o=null===(i=this.store)||void 0===i?void 0:i.state)||void 0===o?void 0:o.fields.filter((e=>e.page_sequence===s.pageNumber))).forEach((e=>r(e,s,a(d(this.store),e.role_name),{disabled:!0,editable:!1,draggable:!1})))}render(){var e,i,t,r;if(!(null===(i=null===(e=this.store)||void 0===e?void 0:e.state)||void 0===i?void 0:i.isLoaded))return o(s,null,o("verdocs-loader",null));const a=[...null===(r=null===(t=this.store)||void 0===t?void 0:t.state)||void 0===r?void 0:r.pages];return a.sort(((e,i)=>e.sequence-i.sequence)),o(s,null,a.map((e=>o("verdocs-template-document-page",{templateId:e.template_id,documentId:e.document_id,pageNumber:e.sequence,virtualWidth:612,virtualHeight:792,onPageRendered:e=>this.handlePageRendered(e),layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]}))))}};p.style='verdocs-preview{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-preview div,verdocs-preview canvas{-webkit-box-sizing:border-box;box-sizing:border-box}';export{p as verdocs_preview}
@@ -1 +0,0 @@
1
- import{r as e,c as s,h as t,H as i}from"./p-6d3e0994.js";import{l,c as a}from"./p-38d827d3.js";import{g as o,a as n,b as r}from"./p-29f64c27.js";import"./p-05788c2b.js";import{V as d}from"./p-af048fad.js";import{i as p}from"./p-5e808a0b.js";import{s as c}from"./p-449f38bb.js";import{V as h}from"./p-ed416acf.js";import{S as v}from"./p-7a1b2643.js";import"./p-eab67c09.js";import"./p-aa124212.js";import"./p-de60d3a8.js";import"./p-c220af42.js";const u=[{value:"all",label:"All"},{value:"inbox",label:"Inbox"},{value:"sent",label:"Sent"},{value:"completed",label:"Completed"},{value:"action",label:"Action Required"},{value:"waiting",label:"Waiting on Others"}],x=[{value:"all",label:"All"},{value:"pending",label:"Pending"},{value:"in progress",label:"In Progress"},{value:"complete",label:"Completed"},{value:"declined",label:"Declined"},{value:"canceled",label:"Canceled"}],f=[{value:"created_at",label:"Created"},{value:"updated_at",label:"Updated"},{value:"canceled_at",label:"Canceled"},{value:"envelope_name",label:"Name"},{value:"envelope_status",label:"Status"}],m=class{constructor(t){e(this,t),this.changeView=s(this,"changeView",7),this.changeStatus=s(this,"changeStatus",7),this.changeSort=s(this,"changeSort",7),this.changeMatch=s(this,"changeMatch",7),this.sdkError=s(this,"sdkError",7),this.viewEnvelope=s(this,"viewEnvelope",7),this.finishEnvelope=s(this,"finishEnvelope",7),this.endpoint=d.getDefault(),this.view=void 0,this.status="all",this.sort="created_at",this.match="",this.showPagination=!0,this.rowsPerPage=10,this.selectedPage=0,this.count=0,this.initiallyLoaded=!1,this.loading=!0,this.selectedEnvelopes=[],this.envelopes=[]}handleViewUpdated(){return this.queryEnvelopes()}handleStatusUpdated(){return this.queryEnvelopes()}handleSortUpdated(){return this.queryEnvelopes()}handleMatchUpdated(){return this.queryEnvelopes()}handlePageUpdated(){return this.queryEnvelopes()}componentWillLoad(){this.endpoint.loadSession(),this.endpoint.session||console.log("[ENVELOPES] Must be authenticated")}async componentDidLoad(){await this.queryEnvelopes(),this.initiallyLoaded=!0}async queryEnvelopes(){var e,s,t;try{this.loading=!0;let e={page:this.selectedPage,sort:this.sort,rows:this.rowsPerPage};switch(this.view){case"all":e={...e,sort:this.sort,direction:"name"===this.sort?"asc":"desc",status:"all"===this.status?["pending","in progress","complete","declined","canceled"]:[this.status]};break;case"inbox":e={...e,is_recipient:!0,sort:"updated_at",recipient_status:["invited","declined","opened","signed","submitted","canceled"]};break;case"sent":e={...e,is_owner:!0,sort:"updated_at"};break;case"action":e={...e,sort:"updated_at",is_recipient:!0,status:["pending","in progress"],recipient_status:["invited","opened","signed"]};break;case"waiting":e={...e,is_owner:!0,sort:"updated_at",direction:"desc",status:["pending","in progress"]};break;case"completed":e={...e,sort:"updated_at",direction:"desc",status:["complete"]};break;default:e={...e,sort:"updated_at",direction:"desc",status:"all"===this.status?["pending","in progress","complete","declined","canceled"]:[this.status]}}"all"===this.view&&"all"!==this.status&&(e.status=[this.status]),"updated_at"!==this.sort&&(e.sort=this.sort,e.direction="name"===this.sort?"asc":"desc"),this.match.trim()&&(e.match=this.match.trim());const s=await l(this.endpoint,e);this.envelopes=s.records,this.count=s.total,this.loading=!1}catch(i){this.loading=!1,console.log("[ENVELOPES] Error listing envelopes",i),null===(e=this.sdkError)||void 0===e||e.emit(new v(i.message,null===(s=i.response)||void 0===s?void 0:s.status,null===(t=i.response)||void 0===t?void 0:t.data))}}handleDownload(){c(this.endpoint,this.selectedEnvelopes).then((()=>{this.selectedEnvelopes=[]})).catch((e=>{console.log("[ENVELOPES] Download error",e),h("Download error: "+e.message,{style:"error"})}))}downloadEnvelope(e){c(this.endpoint,[e]).catch((e=>{console.log("[ENVELOPES] Download error",e),h("Download error: "+e.message,{style:"error"})}))}render(){return t(i,null,t("div",{class:"header"},t("div",{class:"filter"},t("verdocs-text-input",{id:"verdocs-filter-name",value:this.match,clearable:!0,autocomplete:"off",placeholder:"Filter by Name, Recipient, or Field...",onFocusout:e=>{var s;this.match=e.target.value.trim(),null===(s=this.changeMatch)||void 0===s||s.emit(this.match)}})),t("verdocs-quick-filter",{label:"View",value:this.view,options:u,onOptionSelected:e=>{this.view=e.detail.value}}),"all"===this.view&&t("verdocs-quick-filter",{label:"Status",value:this.status,options:x,onOptionSelected:e=>{this.status=e.detail.value}}),"all"===this.view&&t("verdocs-quick-filter",{label:"Sort By",value:this.sort,options:f,onOptionSelected:e=>{this.sort=e.detail.value}}),this.loading&&t("verdocs-spinner",{mode:"dark",size:24}),t("div",{style:{display:"flex",flex:"1"}}),this.selectedEnvelopes.length>0&&t("verdocs-button",{label:`Download (${this.selectedEnvelopes.length})`,onClick:()=>this.handleDownload()})),this.envelopes.map((e=>{var s;const i=o(e),l=r(this.endpoint.session,e),d=[{label:"View Envelope",id:"view"},{label:"Finish Envelope",id:"finish",disabled:!(i.find((e=>{var s;return e.email===(null===(s=this.endpoint.session)||void 0===s?void 0:s.email)||""}))&&l&&n((null===(s=this.endpoint.session)||void 0===s?void 0:s.email)||"",i))},{label:"Download",id:"download"},{label:"Cancel",id:"cancel",disabled:!l}];return t("div",{class:"envelope",key:e.id,onClick:()=>{var s;return null===(s=this.viewEnvelope)||void 0===s?void 0:s.emit({endpoint:this.endpoint,envelope:e})}},t("div",{class:"inner"},t("verdocs-checkbox",{checked:-1!==this.selectedEnvelopes.findIndex((s=>s.id===e.id)),onClick:e=>e.stopPropagation(),onInput:s=>{this.selectedEnvelopes=s.target.checked?[...this.selectedEnvelopes,e]:this.selectedEnvelopes.filter((s=>s.id!==e.id))}}),t("div",{class:"vert-spacer"}),t("span",{innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="#000000" viewBox="0 0 24 24" stroke-width="1.5"><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>'}),t("div",{class:"envelope-name"},e.name,":  ",t("div",{class:"envelope-recipients"},e.recipients.map((e=>e.full_name)).join(", "))),t("div",{class:"vert-spacer"}),t("verdocs-status-indicator",{envelope:e,style:{width:"125px"}}),t("div",{class:"vert-spacer"}),t("div",{class:"last-modified"},new Date(e.updated_at).toLocaleString()),t("div",{class:"vert-spacer"}),t("verdocs-dropdown",{options:d,onOptionSelected:s=>{var t,i;switch(s.detail.id){case"view":null===(t=this.viewEnvelope)||void 0===t||t.emit({endpoint:this.endpoint,envelope:e});break;case"finish":null===(i=this.finishEnvelope)||void 0===i||i.emit({endpoint:this.endpoint,envelope:e});break;case"download":this.downloadEnvelope(e);break;case"cancel":window.confirm("Are you sure you want to cancel this envelope?")&&(a(this.endpoint,e.id).then((()=>h("Envelope canceled"))).catch((e=>h("Unable to cancel envelope: "+e.messabge,{style:"error"}))),this.queryEnvelopes().catch((()=>{})))}}})))})),!this.initiallyLoaded&&t("div",{style:{width:"100%"}},p(0,this.rowsPerPage).map((()=>t("div",{class:"envelope-placeholder"})))),this.initiallyLoaded&&!this.envelopes.length&&t("div",{class:"empty-text"},"No matching envelopes found. Please adjust your filters and try again."),this.initiallyLoaded&&this.envelopes.length&&this.showPagination?t("div",{style:{marginTop:"20px"}},t("verdocs-pagination",{selectedPage:this.selectedPage,perPage:this.rowsPerPage,itemCount:this.count,onSelectPage:e=>{this.selectedPage=e.detail.selectedPage}})):t("div",null))}static get watchers(){return{view:["handleViewUpdated"],status:["handleStatusUpdated"],sort:["handleSortUpdated"],match:["handleMatchUpdated"],selectedPage:["handlePageUpdated"]}}};m.style='verdocs-envelopes-list{display:-ms-flexbox;display:flex;padding:10px;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-direction:column;flex-direction:column;font-family:"Inter", "Barlow", sans-serif}verdocs-envelopes-list .envelope-placeholder{height:48px;-ms-flex:0 0 48px;flex:0 0 48px;margin:5px 0;border-radius:5px;background:#f5f5fa}verdocs-envelopes-list .header{width:100%;row-gap:4px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-column-gap:12px;-moz-column-gap:12px;column-gap:12px;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-envelopes-list .header .filter{width:300px}verdocs-envelopes-list .header verdocs-text-input{margin:0}verdocs-envelopes-list .header verdocs-text-input input{height:32px}verdocs-envelopes-list .filter{-ms-flex-align:center;align-items:center}verdocs-envelopes-list .envelope{width:100%;margin:3px 0;background:#ffffff}verdocs-envelopes-list .envelope:hover{cursor:pointer;background:#f5f5fa}verdocs-envelopes-list .envelope .inner{gap:14px;display:-ms-flexbox;display:flex;padding:8px 20px;border-radius:6px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}verdocs-envelopes-list .envelope .inner svg{width:24px;height:24px}verdocs-envelopes-list .vert-spacer{height:50px;display:-ms-flexbox;display:flex;-ms-flex:0 0 1px;flex:0 0 1px;border-right:1px solid #dad8dd}verdocs-envelopes-list .last-modified{color:#444;display:-ms-flexbox;display:flex;-ms-flex:0 0 180px;flex:0 0 180px;font-size:16px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;white-space:nowrap}verdocs-envelopes-list .envelope-name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;color:#000000;font-size:18px;line-height:28px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}verdocs-envelopes-list .envelope-recipients{color:#4b5563;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}verdocs-envelopes-list .empty-text{font-size:20px;text-align:center;margin:16px 0 0 0;padding:80px 80px;border:2px solid #ccc}verdocs-envelopes-list .containing{gap:12px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}';export{m as verdocs_envelopes_list}
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,s){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function o(e){try{a(s.next(e))}catch(e){i(e)}}function l(e){try{a(s["throw"](e))}catch(e){i(e)}}function a(e){e.done?n(e.value):r(e.value).then(o,l)}a((s=s.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},s,r,i,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(e){return function(t){return a([e,t])}}function a(o){if(s)throw new TypeError("Generator is already executing.");while(n)try{if(s=1,r&&(i=o[0]&2?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;if(r=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;r=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){n.label=o[1];break}if(o[0]===6&&n.label<i[1]){n.label=i[1];i=o;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(o);break}if(i[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];r=0}finally{s=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-2dbc05c6.system.js","./p-54498887.system.js","./p-4422958b.system.js","./p-6d2082b7.system.js","./p-187b20b7.system.js","./p-2c95d99b.system.js","./p-2fdb7348.system.js"],(function(e){"use strict";var t,n,s,r,i,o,l;return{setters:[function(e){t=e.r;n=e.c;s=e.h;r=e.H},function(){},function(e){i=e.V},function(e){o=e.g},function(e){l=e.S},function(){},function(){}],execute:function(){var a='verdocs-build{display:-ms-flexbox;display:flex;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}';var u=e("verdocs_build",function(){function e(e){t(this,e);this.sdkError=n(this,"sdkError",7);this.stepChanged=n(this,"stepChanged",7);this.store=null;this.endpoint=i.getDefault();this.templateId=null;this.step=null;this.template=null}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,s,r;return __generator(this,(function(i){switch(i.label){case 0:i.trys.push([0,2,,3]);this.endpoint.loadSession();if(!this.templateId){console.log("[BUILD] Missing required template ID ".concat(this.templateId));return[2]}if(!this.endpoint.session){console.log("[BUILD] Unable to start builder session, must be authenticated");return[2]}this.step="roles";s=this;return[4,o(this.endpoint,this.templateId,true)];case 1:s.store=i.sent();return[3,3];case 2:r=i.sent();console.log("[BUILD] Error loading template",r);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new l(r.message,(t=r.response)===null||t===void 0?void 0:t.status,(n=r.response)===null||n===void 0?void 0:n.data));return[3,3];case 3:return[2]}}))}))};e.prototype.handleCancel=function(e){var t;console.log("Cancel",e.detail);this.step="preview";(t=this.stepChanged)===null||t===void 0?void 0:t.emit("")};e.prototype.handleTemplateCreated=function(e){var t;console.log("Created",e.detail);this.step="roles";(t=this.stepChanged)===null||t===void 0?void 0:t.emit("roles")};e.prototype.handleRolesDone=function(e){var t;console.log("Roles",e.detail);this.step="fields";(t=this.stepChanged)===null||t===void 0?void 0:t.emit("fields")};e.prototype.render=function(){var e=this;if(!this.endpoint.session){return s(r,null,s("verdocs-component-error",{message:"You must be authenticated to use this module."}))}return s(r,null,this.step==="create"&&s("verdocs-template-create",{onExit:function(t){return e.handleCancel(t)},onNext:function(t){return e.handleTemplateCreated(t)}}),this.step==="attachments"&&s("verdocs-template-attachments",{templateId:this.templateId,onExit:function(t){return e.handleCancel(t)},onNext:function(t){return e.handleTemplateCreated(t)}}),this.step==="roles"&&s("verdocs-template-roles",{onExit:function(t){return e.handleCancel(t)},onNext:function(t){return e.handleTemplateCreated(t)}}),this.step==="settings"&&s("verdocs-template-settings",{templateId:this.templateId}),this.step==="fields"&&s("verdocs-template-fields",{templateId:this.templateId}),this.step==="preview"&&s("verdocs-template-preview",null))};return e}());u.style=a}}}));
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,o,n){function s(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,r){function a(e){try{l(n.next(e))}catch(e){r(e)}}function i(e){try{l(n["throw"](e))}catch(e){r(e)}}function l(e){e.done?o(e.value):s(e.value).then(a,i)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var o={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,s,r,a;return a={next:i(0),throw:i(1),return:i(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function i(e){return function(t){return l([e,t])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(o)try{if(n=1,s&&(r=a[0]&2?s["return"]:a[0]?s["throw"]||((r=s["return"])&&r.call(s),0):s.next)&&!(r=r.call(s,a[1])).done)return r;if(s=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:o.label++;return{value:a[1],done:false};case 5:o.label++;s=a[1];a=[0];continue;case 7:a=o.ops.pop();o.trys.pop();continue;default:if(!(r=o.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){o=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(a[0]===6&&o.label<r[1]){o.label=r[1];r=a;break}if(r&&o.label<r[2]){o.label=r[2];o.ops.push(a);break}if(r[2])o.ops.pop();o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e];s=0}finally{n=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-2dbc05c6.system.js","./p-54498887.system.js","./p-4422958b.system.js","./p-6e9af353.system.js","./p-455d16dc.system.js","./p-6d2082b7.system.js","./p-187b20b7.system.js","./p-2fdb7348.system.js","./p-2c95d99b.system.js"],(function(e){"use strict";var t,o,n,s,r,a,i,l,c,p,d,u,h,f,m,g,v;return{setters:[function(e){t=e.r;o=e.c;n=e.h;s=e.H},function(){},function(e){r=e.V},function(e){a=e.c;i=e.d},function(e){l=e.D;c=e.P;p=e.J;d=e.a;u=e.F;h=e.b;f=e.T},function(e){m=e.g},function(e){g=e.S},function(e){v=e.c},function(){}],execute:function(){var x='verdocs-template-attachments{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-template-attachments h5{font-size:16px;font-weight:bold;margin:0 0 10px 0;color:#46497d}verdocs-template-attachments .attachments{margin:0 0 40px 0}verdocs-template-attachments .attachment{display:-ms-flexbox;display:flex;padding:5px 0;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;color:#33364b}verdocs-template-attachments .attachment:hover .trash-icon{display:-ms-flexbox;display:flex}verdocs-template-attachments .attachment:hover .pages{display:none}verdocs-template-attachments svg{width:28px;height:28px;fill:#5c6575;margin:2px 0 0 0}verdocs-template-attachments .file-icon{-ms-flex:0;flex:0}verdocs-template-attachments .pages{width:24px;height:24px;-ms-flex:0 0 24px;flex:0 0 24px;padding-left:4px;position:relative;margin:-10px 0 0 0}verdocs-template-attachments .pages .pages-icon{top:0;left:0;width:24px;height:24px;position:absolute}verdocs-template-attachments .pages .count{top:11px;left:7px;z-index:1;width:18px;font-size:12px;font-weight:500;position:absolute;text-align:center;letter-spacing:-2px}verdocs-template-attachments .filename{-ms-flex:1;flex:1;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;border-bottom:1px dotted #cccccc}verdocs-template-attachments .trash-icon{-ms-flex:0;flex:0;display:none}verdocs-template-attachments .trash-icon:hover{cursor:pointer}verdocs-template-attachments verdocs-file-chooser{margin:10px 0;border:2px dashed #979797}verdocs-template-attachments .loader-wrapper{background-color:#ffffff;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;width:320px;height:320px;text-align:center;border:2px dashed #979797;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-attachments .progress-wrapper{padding:20px}verdocs-template-attachments .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-attachments .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-template-attachments ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-attachments ::-moz-placeholder{color:#aaaaaa}verdocs-template-attachments :-ms-input-placeholder{color:#aaaaaa}verdocs-template-attachments ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-attachments ::placeholder{color:#aaaaaa}';var b=e("verdocs_template_attachments",function(){function e(e){t(this,e);this.exit=o(this,"exit",7);this.next=o(this,"next",7);this.templateUpdate=o(this,"templateUpdate",7);this.sdkError=o(this,"sdkError",7);this.endpoint=r.getDefault();this.templateId="";this.uploading=false;this.progressLabel="Uploading...";this.progressPercent=0;this.showDeleteError=false;this.confirmDeleteDocument=null;this.store=null}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,o,n,s;return __generator(this,(function(r){switch(r.label){case 0:r.trys.push([0,2,,3]);this.endpoint.loadSession();if(!this.templateId){console.log("[ROLES] Missing required template ID ".concat(this.templateId));return[2]}if(!this.endpoint.session){console.log("[ROLES] Unable to start builder session, must be authenticated");return[2]}n=this;return[4,m(this.endpoint,this.templateId,false)];case 1:n.store=r.sent();return[3,3];case 2:s=r.sent();console.log("[TEMPLATE ATTACHMENTS] Error loading template",s);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new g(s.message,(t=s.response)===null||t===void 0?void 0:t.status,(o=s.response)===null||o===void 0?void 0:o.data));return[3,3];case 3:return[2]}}))}))};e.prototype.handleCancel=function(e){e.stopPropagation();this.exit.emit()};e.prototype.handleUploadProgress=function(e){if(e>=99){this.progressPercent=100;this.progressLabel="Processing..."}else{this.progressPercent=e}};e.prototype.handleUpload=function(e){return __awaiter(this,void 0,void 0,(function(){var t,o,n,s,r,i,l;return __generator(this,(function(c){switch(c.label){case 0:e.stopPropagation();s=e.detail.file;if(!s){return[2]}console.log("[ATTACHMENTS] Uploading...",s);this.uploading=true;this.progressLabel="Uploading...";c.label=1;case 1:c.trys.push([1,4,,5]);return[4,a(this.endpoint,this.templateId,s,this.handleUploadProgress.bind(this))];case 2:r=c.sent();console.log("[ATTACHMENTS] Created attachment",r);i=this;return[4,m(this.endpoint,this.templateId,true)];case 3:i.store=c.sent();console.log("[ATTACHMENTS] New template",this.store.state);this.uploading=false;this.progressLabel="";this.progressPercent=0;return[3,5];case 4:l=c.sent();console.log("[ATTACHMENTS] Error creating template",l);(t=this.sdkError)===null||t===void 0?void 0:t.emit(new g(l.message,(o=l.response)===null||o===void 0?void 0:o.status,(n=l.response)===null||n===void 0?void 0:n.data));this.uploading=false;return[3,5];case 5:return[2]}}))}))};e.prototype.handleNext=function(e){var t;e.stopPropagation();this.uploading=false;this.progressLabel="";this.progressPercent=0;(t=this.next)===null||t===void 0?void 0:t.emit({template:this.store.state})};e.prototype.confirmDelete=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,i(this.endpoint,this.templateId,this.confirmDeleteDocument.id)];case 1:t.sent();e=this;return[4,m(this.endpoint,this.templateId,true)];case 2:e.store=t.sent();console.log("[ATTACHMENTS] New template",this.store.state);this.confirmDeleteDocument=null;return[2]}}))}))};e.prototype.handleDelete=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(o){if(((t=this.store.state)===null||t===void 0?void 0:t.template_documents.length)>1){this.confirmDeleteDocument=e}else{this.showDeleteError=true}return[2]}))}))};e.prototype.getFileIcon=function(e){switch(e.mime){case"application/pdf":return d;case"image/jpeg":return p;case"image/png":return c;case"application/msword":case"application/vnd.openxmlformats-officedocument.wordprocessingml.document":return l}return u};e.prototype.render=function(){var e=this;var t,o,r;if(!this.endpoint.session){return n(s,null,n("verdocs-component-error",{message:"You must be authenticated to use this module."}))}var a=(t=this.store)===null||t===void 0?void 0:t.state;if(!a.isLoaded){return n(s,{class:"loading"},n("verdocs-loader",null))}if(!this.endpoint.session||!a.profile_id){return n(s,{class:"empty"})}return n(s,null,n("h5",null,"Existing Attachments"),n("div",{class:"attachments"},(o=this.store)===null||o===void 0?void 0:o.state.template_documents.map((function(t){return n("div",{class:"attachment"},n("div",{class:"file-icon",innerHTML:e.getFileIcon(t)}),n("div",{class:"filename",title:t.name},t.name),n("div",{class:"pages"},n("div",{class:"count"},t.page_numbers),n("div",{class:"pages-icon",innerHTML:h})),n("div",{class:"trash-icon",innerHTML:f,onClick:function(){return e.handleDelete(t)}}))}))),n("h5",null,"Attach a New Document"),this.uploading?n("div",{class:"loader-wrapper"},n("verdocs-loader",null),this.progressLabel&&n("div",{class:"progress-wrapper"},n("verdocs-progress-bar",{showPercent:true,percent:this.progressPercent,label:this.progressLabel}))):n("verdocs-file-chooser",{onFileSelected:function(t){return e.handleUpload(t)}}),n("div",{class:"buttons"},n("verdocs-button",{variant:"outline",label:"Cancel",size:"small",onClick:function(t){return e.handleCancel(t)},disabled:this.uploading}),n("verdocs-button",{label:"Next",size:"small",onClick:function(t){return e.handleNext(t)},disabled:!((r=this.store)===null||r===void 0?void 0:r.state.template_documents.length)||this.uploading})),this.showDeleteError&&n("verdocs-ok-dialog",{heading:"Unable to Delete Attachment",message:"Templates must contain at least one attachment.",onNext:function(){return e.showDeleteError=false}}),this.confirmDeleteDocument&&n("verdocs-ok-dialog",{heading:"Delete this Attachment?",message:"This operation cannot be undone. All fields placed<br />on the deleted attachment will also be removed.",onNext:function(){return e.confirmDelete()},showCancel:true,onExit:function(){e.confirmDeleteDocument=null}}))};return e}());b.style=x;var y='verdocs-template-create{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-template-create form{background-color:#ffffff;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-create form .upload-box{-webkit-box-sizing:border-box;box-sizing:border-box;width:320px;text-align:center;padding:44px 18px 66px;border:2px dashed #979797;color:rgba(0, 0, 0, 0.54)}verdocs-template-create form .upload-box.drag-over{border:2px solid #4c56cb}verdocs-template-create form .upload-box svg{width:64px;fill:#5c6575}verdocs-template-create .loader-wrapper{background-color:#ffffff;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;width:320px;height:320px;text-align:center;border:2px dashed #979797;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-create .progress-wrapper{padding:20px}verdocs-template-create .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-create .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-template-create ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-create ::-moz-placeholder{color:#aaaaaa}verdocs-template-create :-ms-input-placeholder{color:#aaaaaa}verdocs-template-create ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-create ::placeholder{color:#aaaaaa}';var w=" ";var k='<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24"><path d="M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"></path></svg>';var _=e("verdocs_template_create",function(){function e(e){t(this,e);this.exit=o(this,"exit",7);this.next=o(this,"next",7);this.sdkError=o(this,"sdkError",7);this.endpoint=r.getDefault();this.file=undefined;this.creating=false;this.progressLabel="Uploading...";this.progressPercent=0}e.prototype.componentWillLoad=function(){this.endpoint.setTimeout(3e4);this.endpoint.loadSession()};e.prototype.handleFileChanged=function(e){var t;this.file=((t=e.target.files)===null||t===void 0?void 0:t[0])||null;console.log("[CREATE] Selected file",this.file)};e.prototype.handleUpload=function(e){e.stopPropagation();var t=document.getElementById("verdocs-template-create-file");t.click()};e.prototype.handleCancel=function(e){e.stopPropagation();this.exit.emit()};e.prototype.handleSubmit=function(e){return __awaiter(this,void 0,void 0,(function(){var t,o,n,s,r,a;var i=this;return __generator(this,(function(l){switch(l.label){case 0:e.stopPropagation();console.log("Submitting");if(!this.file){return[2]}this.creating=true;this.progressLabel="Uploading...";l.label=1;case 1:l.trys.push([1,3,,4]);return[4,v(this.endpoint,{name:this.file.name,documents:[this.file]},(function(e){if(e>=99){i.progressLabel="Processing...";i.progressPercent=100}else{i.progressPercent=e}}))];case 2:r=l.sent();console.log("[CREATE] Created template",r);(t=this.next)===null||t===void 0?void 0:t.emit(r);this.creating=false;this.progressLabel="";this.progressPercent=0;return[3,4];case 3:a=l.sent();console.log("[CREATE] Error creating template",a);(o=this.sdkError)===null||o===void 0?void 0:o.emit(new g(a.message,(n=a.response)===null||n===void 0?void 0:n.status,(s=a.response)===null||s===void 0?void 0:s.data));this.creating=false;return[3,4];case 4:return[2]}}))}))};e.prototype.render=function(){var e=this;if(!this.endpoint.session){return n(s,null,n("verdocs-component-error",{message:"You must be authenticated to use this module."}))}return n(s,null,n("form",{onSubmit:function(e){return e.preventDefault()},onClick:function(e){return e.stopPropagation()},autocomplete:"off"},n("input",{type:"file",id:"verdocs-template-create-file",multiple:true,accept:"application/pdf",style:{display:"none"},onChange:function(t){return e.handleFileChanged(t)}}),this.creating?n("div",{class:"loader-wrapper"},n("verdocs-loader",null),this.progressLabel&&n("div",{class:"progress-wrapper"},n("verdocs-progress-bar",{showPercent:true,percent:this.progressPercent,label:this.progressLabel}))):n("div",{class:"upload-box",onDrop:function(t){t.preventDefault();t.target.classList.remove("drag-over");e.file=t.dataTransfer.files[0]},onDragOver:function(e){e.preventDefault();e.dataTransfer.dropEffect="copy"},onDragEnter:function(e){return e.target.classList.add("drag-over")},onDragLeave:function(e){return e.target.classList.remove("drag-over")}},n("div",null,n("span",{innerHTML:k})),n("div",{style:{marginTop:"20px",fontSize:"20px",fontWeight:"bold",overflowWrap:"anywhere"}},this.file?this.file.name:"Drag a file here"),n("div",{style:{marginTop:"20px",marginBottom:"20px",fontSize:"16px",height:"20px"}},this.file?w:"Or, if you prefer..."),n("verdocs-button",{label:this.file?"Select a different file":"Select a file from your computer",size:"small",onClick:function(t){return e.handleUpload(t)}})),n("div",{class:"buttons"},n("verdocs-button",{variant:"outline",label:"Cancel",size:"small",onClick:function(t){return e.handleCancel(t)},disabled:this.creating}),n("verdocs-button",{label:"Next",size:"small",onClick:function(t){return e.handleSubmit(t)},disabled:!this.file||this.creating}))))};return e}());_.style=y}}}));
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,r,n){function s(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function o(e){try{l(n.next(e))}catch(e){i(e)}}function a(e){try{l(n["throw"](e))}catch(e){i(e)}}function l(e){e.done?r(e.value):s(e.value).then(o,a)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,s&&(i=o[0]&2?s["return"]:o[0]?s["throw"]||((i=s["return"])&&i.call(s),0):s.next)&&!(i=i.call(s,o[1])).done)return i;if(s=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;s=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){r.label=o[1];break}if(o[0]===6&&r.label<i[1]){r.label=i[1];i=o;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(o);break}if(i[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];s=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-2dbc05c6.system.js","./p-54498887.system.js","./p-4422958b.system.js","./p-6d2082b7.system.js","./p-187b20b7.system.js","./p-ca13070e.system.js","./p-2c95d99b.system.js","./p-2fdb7348.system.js"],(function(e){"use strict";var t,r,n,s,i,o,a,l;return{setters:[function(e){t=e.r;r=e.c;n=e.h;s=e.H},function(){},function(e){i=e.V},function(e){o=e.g},function(e){a=e.S},function(e){l=e.V},function(){},function(){}],execute:function(){var d=function(e,t,r){return e.api.post("/templates/".concat(t,"/reminder/"),r).then((function(e){return e.data}))};var c=function(e,t,r,n){return e.api.put("/templates/".concat(t,"/reminder/").concat(r),n).then((function(e){return e.data}))};var u=function(e,t,r){return e.api.delete("/templates/".concat(t,"/reminder/").concat(r)).then((function(e){return e.data}))};var p='verdocs-template-reminders{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-template-reminders.loading{min-height:300px;position:relative;display:block}verdocs-template-reminders.empty{display:none}verdocs-template-reminders form{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-reminders form h5{font-size:16px;font-weight:bold;color:#4c56cb;margin:0 0 20px 0}verdocs-template-reminders form label{font-size:16px;font-weight:500;margin:0 0 6px 0;color:#33364b}verdocs-template-reminders form input{border:none;font-size:18px;padding:3px 6px 3px 0;background:transparent;border-bottom:1px solid #33364b}verdocs-template-reminders form input:focus{outline:none}verdocs-template-reminders form .input-row{display:-ms-flexbox;display:flex;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-reminders form .input-row label{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-reminders form .input-row verdocs-text-input{margin:0;display:-ms-flexbox;display:flex;-ms-flex:0 0 60px;flex:0 0 60px}verdocs-template-reminders form .input-row verdocs-text-input input{text-align:center}verdocs-template-reminders form .input-row verdocs-checkbox{display:-ms-flexbox;display:flex;-ms-flex:0 0 40px;flex:0 0 40px;-ms-flex-pack:center;justify-content:center}verdocs-template-reminders .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-direction:row;flex-direction:row}verdocs-template-reminders ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-reminders ::-moz-placeholder{color:#aaaaaa}verdocs-template-reminders :-ms-input-placeholder{color:#aaaaaa}verdocs-template-reminders ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-reminders ::placeholder{color:#aaaaaa}';var m=e("verdocs_template_reminders",function(){function e(e){t(this,e);this.close=r(this,"close",7);this.sdkError=r(this,"sdkError",7);this.store=null;this.endpoint=i.getDefault();this.templateId="";this.showPlanBlocker=false;this.sendReminders=false;this.firstReminderDays="1";this.reminderDays="1";this.dirty=false}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,r,n,s,i,l;return __generator(this,(function(d){switch(d.label){case 0:d.trys.push([0,2,,3]);this.endpoint.loadSession();if(!this.templateId){console.log("[ROLES] Missing required template ID ".concat(this.templateId));return[2]}if(!this.endpoint.session){console.log("[ROLES] Unable to start builder session, must be authenticated");return[2]}i=this;return[4,o(this.endpoint,this.templateId,true)];case 1:i.store=d.sent();this.sendReminders=!!((t=(e=this.store)===null||e===void 0?void 0:e.state)===null||t===void 0?void 0:t.reminder_id);this.dirty=false;return[3,3];case 2:l=d.sent();console.log("[TEMPLATE REMINDERS] Error loading template",l);(r=this.sdkError)===null||r===void 0?void 0:r.emit(new a(l.message,(n=l.response)===null||n===void 0?void 0:n.status,(s=l.response)===null||s===void 0?void 0:s.data));return[3,3];case 3:return[2]}}))}))};e.prototype.handleCancel=function(e){var t,r,n;e.stopPropagation();this.sendReminders=!!((r=(t=this.store)===null||t===void 0?void 0:t.state)===null||r===void 0?void 0:r.reminder_id);this.dirty=false;(n=this.close)===null||n===void 0?void 0:n.emit()};e.prototype.handleSave=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,s,i,p,m,f,h,v,y,b,x;return __generator(this,(function(g){switch(g.label){case 0:e.stopPropagation();g.label=1;case 1:g.trys.push([1,12,,13]);if(!this.sendReminders)return[3,8];h={setup_time:+this.firstReminderDays,interval_time:+this.reminderDays};if(!!((r=(t=this.store)===null||t===void 0?void 0:t.state)===null||r===void 0?void 0:r.reminder_id))return[3,4];return[4,d(this.endpoint,this.templateId,h)];case 2:g.sent();v=this;return[4,o(this.endpoint,this.templateId,true)];case 3:v.store=g.sent();return[3,7];case 4:return[4,c(this.endpoint,this.templateId,(n=this.store)===null||n===void 0?void 0:n.state.reminder_id,h)];case 5:g.sent();y=this;return[4,o(this.endpoint,this.templateId,true)];case 6:y.store=g.sent();g.label=7;case 7:return[3,11];case 8:return[4,u(this.endpoint,this.templateId,(s=this.store)===null||s===void 0?void 0:s.state.reminder_id)];case 9:g.sent();b=this;return[4,o(this.endpoint,this.templateId,true)];case 10:b.store=g.sent();g.label=11;case 11:return[3,13];case 12:x=g.sent();console.log("[TEMPLATE REMINDERS] Unable to update reminders",x);l(x.message);(i=this.sdkError)===null||i===void 0?void 0:i.emit(new a(x.message,(p=x.response)===null||p===void 0?void 0:p.status,(m=x.response)===null||m===void 0?void 0:m.data));return[3,13];case 13:this.dirty=false;(f=this.close)===null||f===void 0?void 0:f.emit();return[2]}}))}))};e.prototype.render=function(){var e=this;var t,r;if(!this.endpoint.session){return n(s,null,n("verdocs-component-error",{message:"You must be authenticated to use this module."}))}if(!this.endpoint.session||!((r=(t=this.store)===null||t===void 0?void 0:t.state)===null||r===void 0?void 0:r.isLoaded)){return n(s,{class:"empty"})}return n(s,null,n("form",{onSubmit:function(e){return e.preventDefault()},onClick:function(e){return e.stopPropagation()},autocomplete:"off"},n("h5",null,"Reminders"),n("div",{class:"input-row"},n("label",{htmlFor:"verdocs-send-reminders"},"Send Automatic Reminders"),n("verdocs-checkbox",{id:"verdocs-send-reminders",name:"automatic-reminders",checked:this.sendReminders,value:"on",onInput:function(t){e.sendReminders=t.target.checked;e.dirty=true}})),n("div",{class:"input-row"},n("label",{htmlFor:"verdocs-first-reminder-days"},"Days Before First Reminder"),n("verdocs-text-input",{id:"verdocs-first-reminder-days",type:"number",value:this.firstReminderDays,onInput:function(t){e.firstReminderDays=t.target.value;e.dirty=true},disabled:!this.sendReminders})),n("div",{class:"input-row"},n("label",{htmlFor:"verdocs-days-between-reminders"},"Days Between Reminders"),n("verdocs-text-input",{id:"verdocs-days-between-reminders",type:"number",value:this.reminderDays,onInput:function(t){e.reminderDays=t.target.value;e.dirty=true},disabled:!this.sendReminders})),n("div",{class:"buttons"},n("verdocs-button",{size:"small",variant:"outline",label:"Cancel",disabled:!this.dirty,onClick:function(t){return e.handleCancel(t)}}),n("verdocs-button",{size:"small",label:"Save",disabled:!this.dirty,onClick:function(t){return e.handleSave(t)}}))),this.showPlanBlocker&&n("verdocs-ok-dialog",{heading:"Upgrade to access this feature",message:"Please upgrade your plan to access this feature.",onNext:function(){return e.showPlanBlocker=false}}))};return e}());m.style=p}}}));
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as a,H as s}from"./p-6d3e0994.js";import"./p-05788c2b.js";import{V as o}from"./p-af048fad.js";import{c as i,d as l}from"./p-567a6e7c.js";import{D as r,P as n,J as c,a as d,F as p,b as h,T as m}from"./p-637fee9b.js";import{g as x}from"./p-55af2ceb.js";import{S as f}from"./p-7a1b2643.js";import{c as v}from"./p-976ec9e8.js";import"./p-21615f18.js";const u=class{constructor(a){e(this,a),this.exit=t(this,"exit",7),this.next=t(this,"next",7),this.templateUpdate=t(this,"templateUpdate",7),this.sdkError=t(this,"sdkError",7),this.endpoint=o.getDefault(),this.templateId="",this.uploading=!1,this.progressLabel="Uploading...",this.progressPercent=0,this.showDeleteError=!1,this.confirmDeleteDocument=null,this.store=null}async componentWillLoad(){var e,t,a;try{if(this.endpoint.loadSession(),!this.templateId)return void console.log(`[ROLES] Missing required template ID ${this.templateId}`);if(!this.endpoint.session)return void console.log("[ROLES] Unable to start builder session, must be authenticated");this.store=await x(this.endpoint,this.templateId,!1)}catch(s){console.log("[TEMPLATE ATTACHMENTS] Error loading template",s),null===(e=this.sdkError)||void 0===e||e.emit(new f(s.message,null===(t=s.response)||void 0===t?void 0:t.status,null===(a=s.response)||void 0===a?void 0:a.data))}}handleCancel(e){e.stopPropagation(),this.exit.emit()}handleUploadProgress(e){e>=99?(this.progressPercent=100,this.progressLabel="Processing..."):this.progressPercent=e}async handleUpload(e){var t,a,s;e.stopPropagation();const o=e.detail.file;if(o){console.log("[ATTACHMENTS] Uploading...",o),this.uploading=!0,this.progressLabel="Uploading...";try{const e=await i(this.endpoint,this.templateId,o,this.handleUploadProgress.bind(this));console.log("[ATTACHMENTS] Created attachment",e),this.store=await x(this.endpoint,this.templateId,!0),console.log("[ATTACHMENTS] New template",this.store.state),this.uploading=!1,this.progressLabel="",this.progressPercent=0}catch(e){console.log("[ATTACHMENTS] Error creating template",e),null===(t=this.sdkError)||void 0===t||t.emit(new f(e.message,null===(a=e.response)||void 0===a?void 0:a.status,null===(s=e.response)||void 0===s?void 0:s.data)),this.uploading=!1}}}handleNext(e){var t;e.stopPropagation(),this.uploading=!1,this.progressLabel="",this.progressPercent=0,null===(t=this.next)||void 0===t||t.emit({template:this.store.state})}async confirmDelete(){await l(this.endpoint,this.templateId,this.confirmDeleteDocument.id),this.store=await x(this.endpoint,this.templateId,!0),console.log("[ATTACHMENTS] New template",this.store.state),this.confirmDeleteDocument=null}async handleDelete(e){var t;(null===(t=this.store.state)||void 0===t?void 0:t.template_documents.length)>1?this.confirmDeleteDocument=e:this.showDeleteError=!0}getFileIcon(e){switch(e.mime){case"application/pdf":return d;case"image/jpeg":return c;case"image/png":return n;case"application/msword":case"application/vnd.openxmlformats-officedocument.wordprocessingml.document":return r}return p}render(){var e,t,o;if(!this.endpoint.session)return a(s,null,a("verdocs-component-error",{message:"You must be authenticated to use this module."}));const i=null===(e=this.store)||void 0===e?void 0:e.state;return i.isLoaded?this.endpoint.session&&i.profile_id?a(s,null,a("h5",null,"Existing Attachments"),a("div",{class:"attachments"},null===(t=this.store)||void 0===t?void 0:t.state.template_documents.map((e=>a("div",{class:"attachment"},a("div",{class:"file-icon",innerHTML:this.getFileIcon(e)}),a("div",{class:"filename",title:e.name},e.name),a("div",{class:"pages"},a("div",{class:"count"},e.page_numbers),a("div",{class:"pages-icon",innerHTML:h})),a("div",{class:"trash-icon",innerHTML:m,onClick:()=>this.handleDelete(e)}))))),a("h5",null,"Attach a New Document"),this.uploading?a("div",{class:"loader-wrapper"},a("verdocs-loader",null),this.progressLabel&&a("div",{class:"progress-wrapper"},a("verdocs-progress-bar",{showPercent:!0,percent:this.progressPercent,label:this.progressLabel}))):a("verdocs-file-chooser",{onFileSelected:e=>this.handleUpload(e)}),a("div",{class:"buttons"},a("verdocs-button",{variant:"outline",label:"Cancel",size:"small",onClick:e=>this.handleCancel(e),disabled:this.uploading}),a("verdocs-button",{label:"Next",size:"small",onClick:e=>this.handleNext(e),disabled:!(null===(o=this.store)||void 0===o?void 0:o.state.template_documents.length)||this.uploading})),this.showDeleteError&&a("verdocs-ok-dialog",{heading:"Unable to Delete Attachment",message:"Templates must contain at least one attachment.",onNext:()=>this.showDeleteError=!1}),this.confirmDeleteDocument&&a("verdocs-ok-dialog",{heading:"Delete this Attachment?",message:"This operation cannot be undone. All fields placed<br />on the deleted attachment will also be removed.",onNext:()=>this.confirmDelete(),showCancel:!0,onExit:()=>{this.confirmDeleteDocument=null}})):a(s,{class:"empty"}):a(s,{class:"loading"},a("verdocs-loader",null))}};u.style='verdocs-template-attachments{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-template-attachments h5{font-size:16px;font-weight:bold;margin:0 0 10px 0;color:#46497d}verdocs-template-attachments .attachments{margin:0 0 40px 0}verdocs-template-attachments .attachment{display:-ms-flexbox;display:flex;padding:5px 0;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;color:#33364b}verdocs-template-attachments .attachment:hover .trash-icon{display:-ms-flexbox;display:flex}verdocs-template-attachments .attachment:hover .pages{display:none}verdocs-template-attachments svg{width:28px;height:28px;fill:#5c6575;margin:2px 0 0 0}verdocs-template-attachments .file-icon{-ms-flex:0;flex:0}verdocs-template-attachments .pages{width:24px;height:24px;-ms-flex:0 0 24px;flex:0 0 24px;padding-left:4px;position:relative;margin:-10px 0 0 0}verdocs-template-attachments .pages .pages-icon{top:0;left:0;width:24px;height:24px;position:absolute}verdocs-template-attachments .pages .count{top:11px;left:7px;z-index:1;width:18px;font-size:12px;font-weight:500;position:absolute;text-align:center;letter-spacing:-2px}verdocs-template-attachments .filename{-ms-flex:1;flex:1;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;border-bottom:1px dotted #cccccc}verdocs-template-attachments .trash-icon{-ms-flex:0;flex:0;display:none}verdocs-template-attachments .trash-icon:hover{cursor:pointer}verdocs-template-attachments verdocs-file-chooser{margin:10px 0;border:2px dashed #979797}verdocs-template-attachments .loader-wrapper{background-color:#ffffff;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;width:320px;height:320px;text-align:center;border:2px dashed #979797;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-attachments .progress-wrapper{padding:20px}verdocs-template-attachments .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-attachments .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-template-attachments ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-attachments ::-moz-placeholder{color:#aaaaaa}verdocs-template-attachments :-ms-input-placeholder{color:#aaaaaa}verdocs-template-attachments ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-attachments ::placeholder{color:#aaaaaa}';const g=class{constructor(a){e(this,a),this.exit=t(this,"exit",7),this.next=t(this,"next",7),this.sdkError=t(this,"sdkError",7),this.endpoint=o.getDefault(),this.file=void 0,this.creating=!1,this.progressLabel="Uploading...",this.progressPercent=0}componentWillLoad(){this.endpoint.setTimeout(3e4),this.endpoint.loadSession()}handleFileChanged(e){var t;this.file=(null===(t=e.target.files)||void 0===t?void 0:t[0])||null,console.log("[CREATE] Selected file",this.file)}handleUpload(e){e.stopPropagation(),document.getElementById("verdocs-template-create-file").click()}handleCancel(e){e.stopPropagation(),this.exit.emit()}async handleSubmit(e){var t,a,s,o;if(e.stopPropagation(),console.log("Submitting"),this.file){this.creating=!0,this.progressLabel="Uploading...";try{const e=await v(this.endpoint,{name:this.file.name,documents:[this.file]},(e=>{e>=99?(this.progressLabel="Processing...",this.progressPercent=100):this.progressPercent=e}));console.log("[CREATE] Created template",e),null===(t=this.next)||void 0===t||t.emit(e),this.creating=!1,this.progressLabel="",this.progressPercent=0}catch(e){console.log("[CREATE] Error creating template",e),null===(a=this.sdkError)||void 0===a||a.emit(new f(e.message,null===(s=e.response)||void 0===s?void 0:s.status,null===(o=e.response)||void 0===o?void 0:o.data)),this.creating=!1}}}render(){return a(s,null,this.endpoint.session?a("form",{onSubmit:e=>e.preventDefault(),onClick:e=>e.stopPropagation(),autocomplete:"off"},a("input",{type:"file",id:"verdocs-template-create-file",multiple:!0,accept:"application/pdf",style:{display:"none"},onChange:e=>this.handleFileChanged(e)}),this.creating?a("div",{class:"loader-wrapper"},a("verdocs-loader",null),this.progressLabel&&a("div",{class:"progress-wrapper"},a("verdocs-progress-bar",{showPercent:!0,percent:this.progressPercent,label:this.progressLabel}))):a("div",{class:"upload-box",onDrop:e=>{e.preventDefault(),e.target.classList.remove("drag-over"),this.file=e.dataTransfer.files[0]},onDragOver:e=>{e.preventDefault(),e.dataTransfer.dropEffect="copy"},onDragEnter:e=>e.target.classList.add("drag-over"),onDragLeave:e=>e.target.classList.remove("drag-over")},a("div",null,a("span",{innerHTML:'<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24"><path d="M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"></path></svg>'})),a("div",{style:{marginTop:"20px",fontSize:"20px",fontWeight:"bold",overflowWrap:"anywhere"}},this.file?this.file.name:"Drag a file here"),a("div",{style:{marginTop:"20px",marginBottom:"20px",fontSize:"16px",height:"20px"}},this.file?" ":"Or, if you prefer..."),a("verdocs-button",{label:this.file?"Select a different file":"Select a file from your computer",size:"small",onClick:e=>this.handleUpload(e)})),a("div",{class:"buttons"},a("verdocs-button",{variant:"outline",label:"Cancel",size:"small",onClick:e=>this.handleCancel(e),disabled:this.creating}),a("verdocs-button",{label:"Next",size:"small",onClick:e=>this.handleSubmit(e),disabled:!this.file||this.creating}))):a("verdocs-component-error",{message:"You must be authenticated to use this module."}))}};g.style='verdocs-template-create{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-template-create form{background-color:#ffffff;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-create form .upload-box{-webkit-box-sizing:border-box;box-sizing:border-box;width:320px;text-align:center;padding:44px 18px 66px;border:2px dashed #979797;color:rgba(0, 0, 0, 0.54)}verdocs-template-create form .upload-box.drag-over{border:2px solid #4c56cb}verdocs-template-create form .upload-box svg{width:64px;fill:#5c6575}verdocs-template-create .loader-wrapper{background-color:#ffffff;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;width:320px;height:320px;text-align:center;border:2px dashed #979797;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-create .progress-wrapper{padding:20px}verdocs-template-create .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-create .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-template-create ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-create ::-moz-placeholder{color:#aaaaaa}verdocs-template-create :-ms-input-placeholder{color:#aaaaaa}verdocs-template-create ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-create ::placeholder{color:#aaaaaa}';export{u as verdocs_template_attachments,g as verdocs_template_create}
@@ -1 +0,0 @@
1
- import{r as t,c as o,h as e,H as s}from"./p-6d3e0994.js";const n=class{constructor(e){t(this,e),this.toggle=o(this,"toggle",7),this.active=!1,this.icon=null,this.label=null,this.size="normal",this._active=!1}componentWillLoad(){this._active=this.active}handleToggle(t){var o;t.stopPropagation();const e=!this._active;this._active=e,null===(o=this.toggle)||void 0===o||o.emit({active:e})}render(){return e(s,{class:`size-${this.size}`},this.icon?e("button",{innerHTML:this.icon,class:{active:this._active},onClick:t=>this.handleToggle(t)}):e("button",{class:{active:this._active},onClick:t=>this.handleToggle(t)},this.label))}};n.style='verdocs-toggle-button{font-family:"Inter", "Barlow", sans-serif}verdocs-toggle-button button{border:none;outline:none;cursor:pointer;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;background:#cccccc;color:#33364b}verdocs-toggle-button button svg{max-width:100%;max-height:100%;fill:#33364b}verdocs-toggle-button button.active{background:#55bc81;color:#f5f5fa}verdocs-toggle-button button.active svg{fill:#f5f5fa}verdocs-toggle-button button:focus{border:none;outline:none}verdocs-toggle-button.size-normal button{width:40px;height:40px;padding:6px;border-radius:4px}verdocs-toggle-button.size-small button{width:34px;height:34px;padding:4px;border-radius:2px}';export{n as verdocs_toggle_button}
@@ -1 +0,0 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(o){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))o[r]=t[r]}return o};return __assign.apply(this,arguments)};var __spreadArray=this&&this.__spreadArray||function(o,t,e){if(e||arguments.length===2)for(var n=0,r=t.length,i;n<r;n++){if(i||!(n in t)){if(!i)i=Array.prototype.slice.call(t,0,n);i[n]=t[n]}}return o.concat(i||Array.prototype.slice.call(t))};System.register(["./p-2dbc05c6.system.js","./p-9a5ff58c.system.js"],(function(o){"use strict";var t,e,n,r,i,s;return{setters:[function(o){t=o.r;e=o.c;n=o.h;r=o.H;i=o.a},function(o){s=o.c}],execute:function(){var d='verdocs-dropdown{font-family:"Inter", "Barlow", sans-serif;display:block}verdocs-dropdown .arrow{width:32px;height:26px;background:#fff;cursor:pointer;border-radius:4px;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;border:1px solid #cccccc;-ms-flex-pack:center;justify-content:center}verdocs-dropdown .arrow svg{fill:#55bc81;-webkit-transition:0.3s;transition:0.3s}verdocs-dropdown .items{width:200px;display:none;z-index:10000;border-radius:5px;background:#33354c;border:1px solid #654dcb}verdocs-dropdown .items[data-show]{display:block}verdocs-dropdown .option{width:100%;color:#fff;border:none;display:block;text-align:left;background:none;padding:10px 20px}verdocs-dropdown .option:hover{cursor:pointer;background:#55bc81}verdocs-dropdown .option[disabled]{color:#aaaaaa}verdocs-dropdown .option[disabled]:hover{color:#aaaaaa;cursor:inherit;background:transparent}verdocs-dropdown .separator{border-top:1px solid #ffffff5f;height:1px;padding-top:5px;margin-top:5px}verdocs-dropdown.open .items{display:block}verdocs-dropdown.open .arrow{background:#4c56cb;border:1px solid #707ae5}verdocs-dropdown.open .arrow svg{-webkit-transform:scaleY(-1);transform:scaleY(-1);fill:#fff}';var a='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#50BE80"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M7 10l5 5 5-5H7z"/></svg>';var p=o("verdocs_dropdown",function(){function o(o){t(this,o);this.optionSelected=e(this,"optionSelected",7);this.clickListenerSymbol=new AbortController;this.options=[];this.open=undefined}o.prototype.componentDidLoad=function(){this.popper=s(this.dropdownButton,this.dropdownMenu,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,6]}}]});window.addEventListener("click",this.clickListener.bind(this),{signal:this.clickListenerSymbol.signal})};o.prototype.disconnectedCallback=function(){this.clickListenerSymbol.abort()};o.prototype.clickListener=function(o){var t=!(o.target==this.el||this.el.contains(o.target));if(t){this.hide()}};o.prototype.handleSelectOption=function(o,t){o.stopPropagation();this.optionSelected.emit(t);this.hide()};o.prototype.showDropdown=function(){var o,t;this.open=true;this.dropdownMenu.setAttribute("data-show","");this.dropdownMenu.removeAttribute("aria-hidden");(o=this.popper)===null||o===void 0?void 0:o.setOptions((function(o){return __assign(__assign({},o),{modifiers:__spreadArray(__spreadArray([],o.modifiers,true),[{name:"eventListeners",enabled:true}],false)})})).catch((function(){}));(t=this.popper)===null||t===void 0?void 0:t.update().catch((function(){}))};o.prototype.handleHideDropdown=function(o){var t,e;if(((t=o===null||o===void 0?void 0:o.target)===null||t===void 0?void 0:t.localName)==="button"&&((e=o===null||o===void 0?void 0:o.target)===null||e===void 0?void 0:e.className)==="arrow"){return}this.hide()};o.prototype.toggleDropdown=function(o){o.stopPropagation();if(this.open){this.hide()}else{this.showDropdown()}};o.prototype.hide=function(){var o;this.open=false;this.dropdownMenu.removeAttribute("data-show");this.dropdownMenu.setAttribute("aria-hidden","true");(o=this.popper)===null||o===void 0?void 0:o.setOptions((function(o){return __assign(__assign({},o),{modifiers:__spreadArray(__spreadArray([],o.modifiers,true),[{name:"eventListeners",enabled:false}],false)})})).catch((function(){}))};o.prototype.render=function(){var o=this;var t;return n(r,{class:{open:!!this.open}},n("button",{class:"arrow",innerHTML:a,"aria-label":"Open Menu",onClick:function(t){return o.toggleDropdown(t)},onBlur:function(t){return o.handleHideDropdown(t)},ref:function(t){return o.dropdownButton=t}}),n("div",{class:"items","aria-hidden":!this.open,ref:function(t){return o.dropdownMenu=t}},(t=this.options)===null||t===void 0?void 0:t.map((function(t){return t.label?n("button",{onClick:function(e){return o.handleSelectOption(e,t)},class:"option",disabled:t.disabled},t.label):n("div",{class:"separator"})}))))};Object.defineProperty(o.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return o}());p.style=d}}}));
@@ -1 +0,0 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,s){function l(e){try{a(i.next(e))}catch(e){s(e)}}function r(e){try{a(i["throw"](e))}catch(e){s(e)}}function a(e){e.done?n(e.value):o(e.value).then(l,r)}a((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,o,s,l;return l={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function r(e){return function(t){return a([e,t])}}function a(l){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,o&&(s=l[0]&2?o["return"]:l[0]?o["throw"]||((s=o["return"])&&s.call(o),0):o.next)&&!(s=s.call(o,l[1])).done)return s;if(o=0,s)l=[l[0]&2,s.value];switch(l[0]){case 0:case 1:s=l;break;case 4:n.label++;return{value:l[1],done:false};case 5:n.label++;o=l[1];l=[0];continue;case 7:l=n.ops.pop();n.trys.pop();continue;default:if(!(s=n.trys,s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1];s=l;break}if(s&&n.label<s[2]){n.label=s[2];n.ops.push(l);break}if(s[2])n.ops.pop();n.trys.pop();continue}l=t.call(e,n)}catch(e){l=[6,e];o=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};System.register(["./p-2dbc05c6.system.js","./p-54498887.system.js","./p-4422958b.system.js","./p-7efdefa3.system.js","./p-05eb4fed.system.js","./p-6d2082b7.system.js","./p-169fa979.system.js","./p-187b20b7.system.js","./p-2c95d99b.system.js","./p-2fdb7348.system.js","./p-bbee73c8.system.js","./p-11e34f77.system.js","./p-327858f0.system.js","./p-7fd7152d.system.js","./p-dc9c4361.system.js"],(function(e){"use strict";var t,n,i,o,s,l,r,a,d,c,p;return{setters:[function(e){t=e.r;n=e.c;i=e.h;o=e.H},function(){},function(e){s=e.V},function(e){l=e.i;r=e.a},function(e){a=e.g},function(e){d=e.g},function(e){c=e.a},function(e){p=e.S},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var u='verdocs-send{padding:10px;position:relative;background:#ffffff;-ms-flex-direction:column;flex-direction:column;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:none}verdocs-send.sendable{display:-ms-flexbox;display:flex}verdocs-send .recipients{position:relative}verdocs-send .left-line{top:32px;left:20px;z-index:1;width:12px;bottom:30px;position:absolute;background:#ffffff;border-left:3px dotted #9b9b9b}verdocs-send .level{display:-ms-flexbox;display:flex;-webkit-column-gap:10px;-moz-column-gap:10px;column-gap:10px;margin-left:50px;position:relative;-ms-flex-direction:row;flex-direction:row;padding:8px 0 4px 0;border-bottom:1px solid #97979744}verdocs-send .level .level-icon{top:14px;z-index:2;left:-40px;width:24px;height:24px;position:absolute;background:#ffffff}verdocs-send .level .level-icon svg{fill:#00000089}verdocs-send .level .recipient{height:30px;display:-ms-flexbox;display:flex;-ms-flex:0 0 30px;flex:0 0 30px;color:#000000;cursor:pointer;font-size:14px;-ms-flex-align:center;align-items:center;border-radius:30px;-ms-flex-direction:row;flex-direction:row;background:#dddddd;white-space:nowrap;border:2px solid #dddddd;padding:2px 10px 2px 14px}verdocs-send .level .recipient .icon{width:22px;height:22px;-ms-flex:0 0 22px;flex:0 0 22px;margin:0 0 0 10px}verdocs-send .level .recipient .icon svg{width:22px;height:22px;fill:#333333;outline:none}verdocs-send .level .complete{-ms-flex:1;flex:1;height:30px;display:-ms-flexbox;display:flex;color:#000000;font-size:14px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;padding:3px 10px 3px 2px}verdocs-send .buttons{display:-ms-flexbox;display:flex;margin-top:10px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-direction:row;flex-direction:row}verdocs-send verdocs-contact-picker{left:0;top:41px;z-index:10;position:absolute;border:1px solid #dddddd;-webkit-box-shadow:0 0 6px 3px rgba(0, 0, 0, 0.1);box-shadow:0 0 6px 3px rgba(0, 0, 0, 0.1)}';var f='<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24" tabindex="-1"><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.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"></path></svg>';var v='<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24" tabindex="-1"><path d="M2 12C2 6.48 6.48 2 12 2s10 4.48 10 10-4.48 10-10 10S2 17.52 2 12zm10 6c3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6 2.69 6 6 6z"></path></svg>';var h='<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24" tabindex="-1"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"></path></svg>';var m='<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24" tabindex="-1"><path d="m18 7-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.41 6 19l1.41-1.41L1.83 12 .41 13.41z"></path></svg>';var x=e("verdocs_send",function(){function e(e){t(this,e);this.send=n(this,"send",7);this.exit=n(this,"exit",7);this.sdkError=n(this,"sdkError",7);this.searchContacts=n(this,"searchContacts",7);this.levels=[];this.store=null;this.endpoint=s.getDefault();this.templateId=null;this.containerId="verdocs-send-".concat(Math.random().toString(36).substring(2,11));this.rolesAtLevel={};this.showPickerForId="";this.sessionContacts=[];this.rolesCompleted={}}e.prototype.reset=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.rolesCompleted={};return[2]}))}))};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,i,o,s,l,r,a,c,u,f,v,h;return __generator(this,(function(m){switch(m.label){case 0:m.trys.push([0,2,,3]);u=this.endpoint.loadSession();if(!this.templateId){console.log("[SEND] Missing required template ID ".concat(this.templateId));return[2]}if(!this.endpoint.session){console.log("[SEND] Unable to start builder session, must be authenticated");return[2]}f=this;return[4,d(this.endpoint,this.templateId,true)];case 1:f.store=m.sent();if(!((t=(e=this.store)===null||e===void 0?void 0:e.state)===null||t===void 0?void 0:t.is_sendable)){console.warn("[SEND] Template is not sendable",this.templateId)}if((i=(n=this.store)===null||n===void 0?void 0:n.state)===null||i===void 0?void 0:i.roles){v={};this.rolesCompleted={};(s=(o=this.store)===null||o===void 0?void 0:o.state)===null||s===void 0?void 0:s.roles.forEach((function(e){var t=e.sequence-1;v[t]||(v[t]=[]);var n="r-".concat(t,"-").concat(v[t].length);v[t].push(__assign(__assign({},e),{id:n}))}));this.rolesAtLevel=v;this.levels=Object.keys(v).map((function(e){return+e}));this.levels.sort((function(e,t){return e-t}))}if((l=u===null||u===void 0?void 0:u.session)===null||l===void 0?void 0:l.profile){this.sessionContacts.push({id:u.session.profile.id,name:"".concat(u.session.profile.first_name," ").concat(u.session.profile.last_name),email:u.session.profile.email,phone:u.session.profile.phone})}return[3,3];case 2:h=m.sent();console.log("[SEND] Error with preview session",h);(r=this.sdkError)===null||r===void 0?void 0:r.emit(new p(h.message,(a=h.response)===null||a===void 0?void 0:a.status,(c=h.response)===null||c===void 0?void 0:c.data));return[3,3];case 3:return[2]}}))}))};e.prototype.getLevelIcon=function(e){if(e<0){return i("div",{class:"level-icon",innerHTML:v})}else if(e>=this.levels.length){return i("div",{class:"level-icon",innerHTML:m})}else{return i("div",{class:"level-icon",innerHTML:h})}};e.prototype.handleSelectContact=function(e,t){e.preventDefault();this.rolesCompleted[t.id]=__assign(__assign({},t),e.detail);this.showPickerForId=""};e.prototype.handleClickRole=function(e,t){e.stopPropagation();this.showPickerForId=t.id};e.prototype.handleSend=function(e){var t,n,i;e.stopPropagation();(t=this.send)===null||t===void 0?void 0:t.emit({roles:Object.values(this.rolesCompleted),name:(i=(n=this.store)===null||n===void 0?void 0:n.state)===null||i===void 0?void 0:i.name,template_id:this.templateId})};e.prototype.handleCancel=function(e){var t;e.stopPropagation();(t=this.exit)===null||t===void 0?void 0:t.emit()};e.prototype.render=function(){var e=this;var t,n,s,d;var p=(((n=(t=this.store)===null||t===void 0?void 0:t.state)===null||n===void 0?void 0:n.roles)||[]).map((function(e){return e.name}))||[];var u=Object.values(this.rolesCompleted).filter((function(e){return l(e.email)||r(e.phone)}));var v=u.length>=p.length;return i(o,{class:{sendable:(d=(s=this.store)===null||s===void 0?void 0:s.state)===null||d===void 0?void 0:d.is_sendable}},i("div",{class:"recipients"},i("div",{class:"left-line"}),i("div",{class:"level level-start"},this.getLevelIcon(-1),i("div",{class:"complete"},"Send Envelope")),this.levels.map((function(t){return i("div",{class:"level level-".concat(t)},e.getLevelIcon(t),e.rolesAtLevel[t].map((function(t){var n,o,s,l,r,d;var u=!t.email;return u?i("div",{class:"recipient",style:{backgroundColor:a(c(p,t.name))},onClick:function(n){return e.handleClickRole(n,t)}},(o=(n=e.rolesCompleted[t.id])===null||n===void 0?void 0:n.full_name)!==null&&o!==void 0?o:t.name,i("div",{class:"icon",innerHTML:f}),e.showPickerForId===t.id&&i("verdocs-contact-picker",{onExit:function(){return e.showPickerForId=""},onNext:function(n){return e.handleSelectContact(n,t)},contactSuggestions:e.sessionContacts,templateRole:(s=e.rolesCompleted[t.id])!==null&&s!==void 0?s:t,onSearchContacts:function(t){var n;return(n=e.searchContacts)===null||n===void 0?void 0:n.emit(t.detail)}})):i("div",{class:"recipient",style:{borderColor:a(c(p,t.name))},onClick:function(n){return e.handleClickRole(n,t)}},(r=(l=e.rolesCompleted[t.id])===null||l===void 0?void 0:l.full_name)!==null&&r!==void 0?r:t.full_name,i("div",{class:"icon",innerHTML:f}),e.showPickerForId===t.id&&i("verdocs-contact-picker",{onExit:function(){return e.showPickerForId=""},onNext:function(n){return e.handleSelectContact(n,t)},contactSuggestions:e.sessionContacts,templateRole:(d=e.rolesCompleted[t.id])!==null&&d!==void 0?d:t,onSearchContacts:function(t){var n;return(n=e.searchContacts)===null||n===void 0?void 0:n.emit(t.detail)}}))})))})),i("div",{class:"level level-done"},this.getLevelIcon(this.levels.length),i("div",{class:"complete"},"Signing Complete"))),i("div",{class:"buttons"},i("verdocs-button",{label:"Cancel",size:"small",variant:"outline",onClick:function(t){return e.handleCancel(t)}}),i("verdocs-button",{label:"Send",size:"small",disabled:!v,onClick:function(t){return e.handleSend(t)}})))};return e}());x.style=u}}}));
@@ -1 +0,0 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s))e[s]=t[s]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,n,i){function s(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{r(i.next(e))}catch(e){o(e)}}function l(e){try{r(i["throw"](e))}catch(e){o(e)}}function r(e){e.done?n(e.value):s(e.value).then(a,l)}r((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,s,o,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(e){return function(t){return r([e,t])}}function r(a){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,s&&(o=a[0]&2?s["return"]:a[0]?s["throw"]||((o=s["return"])&&o.call(s),0):s.next)&&!(o=o.call(s,a[1])).done)return o;if(s=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;s=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];s=0}finally{i=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var i=0,s=t.length,o;i<s;i++){if(o||!(i in t)){if(!o)o=Array.prototype.slice.call(t,0,i);o[i]=t[i]}}return e.concat(o||Array.prototype.slice.call(t))};System.register(["./p-2dbc05c6.system.js","./p-11e34f77.system.js","./p-1d60151a.system.js","./p-54498887.system.js","./p-4422958b.system.js","./p-3bcd86ea.system.js","./p-169fa979.system.js","./p-ca13070e.system.js","./p-187b20b7.system.js","./p-bbee73c8.system.js","./p-327858f0.system.js","./p-7fd7152d.system.js","./p-dc9c4361.system.js"],(function(e){"use strict";var t,n,i,s,o,a,l,r,c,d,p,u,v,h;return{setters:[function(e){t=e.r;n=e.c;i=e.h;s=e.H},function(e){o=e.l;a=e.c},function(e){l=e.g;r=e.a;c=e.b},function(){},function(e){d=e.V},function(e){p=e.i},function(e){u=e.s},function(e){v=e.V},function(e){h=e.S},function(){},function(){},function(){},function(){}],execute:function(){var f='verdocs-envelopes-list{display:-ms-flexbox;display:flex;padding:10px;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-direction:column;flex-direction:column;font-family:"Inter", "Barlow", sans-serif}verdocs-envelopes-list .envelope-placeholder{height:48px;-ms-flex:0 0 48px;flex:0 0 48px;margin:5px 0;border-radius:5px;background:#f5f5fa}verdocs-envelopes-list .header{width:100%;row-gap:4px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-column-gap:12px;-moz-column-gap:12px;column-gap:12px;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-envelopes-list .header .filter{width:300px}verdocs-envelopes-list .header verdocs-text-input{margin:0}verdocs-envelopes-list .header verdocs-text-input input{height:32px}verdocs-envelopes-list .filter{-ms-flex-align:center;align-items:center}verdocs-envelopes-list .envelope{width:100%;margin:3px 0;background:#ffffff}verdocs-envelopes-list .envelope:hover{cursor:pointer;background:#f5f5fa}verdocs-envelopes-list .envelope .inner{gap:14px;display:-ms-flexbox;display:flex;padding:8px 20px;border-radius:6px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}verdocs-envelopes-list .envelope .inner svg{width:24px;height:24px}verdocs-envelopes-list .vert-spacer{height:50px;display:-ms-flexbox;display:flex;-ms-flex:0 0 1px;flex:0 0 1px;border-right:1px solid #dad8dd}verdocs-envelopes-list .last-modified{color:#444;display:-ms-flexbox;display:flex;-ms-flex:0 0 180px;flex:0 0 180px;font-size:16px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;white-space:nowrap}verdocs-envelopes-list .envelope-name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;color:#000000;font-size:18px;line-height:28px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}verdocs-envelopes-list .envelope-recipients{color:#4b5563;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}verdocs-envelopes-list .empty-text{font-size:20px;text-align:center;margin:16px 0 0 0;padding:80px 80px;border:2px solid #ccc}verdocs-envelopes-list .containing{gap:12px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}';var g='<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="#000000" viewBox="0 0 24 24" stroke-width="1.5"><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>';var m=[{value:"all",label:"All"},{value:"inbox",label:"Inbox"},{value:"sent",label:"Sent"},{value:"completed",label:"Completed"},{value:"action",label:"Action Required"},{value:"waiting",label:"Waiting on Others"}];var w=[{value:"all",label:"All"},{value:"pending",label:"Pending"},{value:"in progress",label:"In Progress"},{value:"complete",label:"Completed"},{value:"declined",label:"Declined"},{value:"canceled",label:"Canceled"}];var x=[{value:"created_at",label:"Created"},{value:"updated_at",label:"Updated"},{value:"canceled_at",label:"Canceled"},{value:"envelope_name",label:"Name"},{value:"envelope_status",label:"Status"}];var y=e("verdocs_envelopes_list",function(){function e(e){t(this,e);this.changeView=n(this,"changeView",7);this.changeStatus=n(this,"changeStatus",7);this.changeSort=n(this,"changeSort",7);this.changeMatch=n(this,"changeMatch",7);this.sdkError=n(this,"sdkError",7);this.viewEnvelope=n(this,"viewEnvelope",7);this.finishEnvelope=n(this,"finishEnvelope",7);this.endpoint=d.getDefault();this.view=undefined;this.status="all";this.sort="created_at";this.match="";this.showPagination=true;this.rowsPerPage=10;this.selectedPage=0;this.count=0;this.initiallyLoaded=false;this.loading=true;this.selectedEnvelopes=[];this.envelopes=[]}e.prototype.handleViewUpdated=function(){return this.queryEnvelopes()};e.prototype.handleStatusUpdated=function(){return this.queryEnvelopes()};e.prototype.handleSortUpdated=function(){return this.queryEnvelopes()};e.prototype.handleMatchUpdated=function(){return this.queryEnvelopes()};e.prototype.handlePageUpdated=function(){return this.queryEnvelopes()};e.prototype.componentWillLoad=function(){this.endpoint.loadSession();if(!this.endpoint.session){console.log("[ENVELOPES] Must be authenticated");return}};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.queryEnvelopes()];case 1:e.sent();this.initiallyLoaded=true;return[2]}}))}))};e.prototype.queryEnvelopes=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,i,s,a;return __generator(this,(function(l){switch(l.label){case 0:l.trys.push([0,2,,3]);this.loading=true;i={page:this.selectedPage,sort:this.sort,rows:this.rowsPerPage};switch(this.view){case"all":i=__assign(__assign({},i),{sort:this.sort,direction:this.sort==="name"?"asc":"desc",status:this.status==="all"?["pending","in progress","complete","declined","canceled"]:[this.status]});break;case"inbox":i=__assign(__assign({},i),{is_recipient:true,sort:"updated_at",recipient_status:["invited","declined","opened","signed","submitted","canceled"]});break;case"sent":i=__assign(__assign({},i),{is_owner:true,sort:"updated_at"});break;case"action":i=__assign(__assign({},i),{sort:"updated_at",is_recipient:true,status:["pending","in progress"],recipient_status:["invited","opened","signed"]});break;case"waiting":i=__assign(__assign({},i),{is_owner:true,sort:"updated_at",direction:"desc",status:["pending","in progress"]});break;case"completed":i=__assign(__assign({},i),{sort:"updated_at",direction:"desc",status:["complete"]});break;default:i=__assign(__assign({},i),{sort:"updated_at",direction:"desc",status:this.status==="all"?["pending","in progress","complete","declined","canceled"]:[this.status]})}if(this.view==="all"){if(this.status!=="all"){i.status=[this.status]}}if(this.sort!=="updated_at"){i.sort=this.sort;i.direction=this.sort==="name"?"asc":"desc"}if(this.match.trim()){i.match=this.match.trim()}return[4,o(this.endpoint,i)];case 1:s=l.sent();this.envelopes=s.records;this.count=s.total;this.loading=false;return[3,3];case 2:a=l.sent();this.loading=false;console.log("[ENVELOPES] Error listing envelopes",a);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new h(a.message,(t=a.response)===null||t===void 0?void 0:t.status,(n=a.response)===null||n===void 0?void 0:n.data));return[3,3];case 3:return[2]}}))}))};e.prototype.handleDownload=function(){var e=this;u(this.endpoint,this.selectedEnvelopes).then((function(){e.selectedEnvelopes=[]})).catch((function(e){console.log("[ENVELOPES] Download error",e);v("Download error: "+e.message,{style:"error"})}))};e.prototype.downloadEnvelope=function(e){u(this.endpoint,[e]).catch((function(e){console.log("[ENVELOPES] Download error",e);v("Download error: "+e.message,{style:"error"})}))};e.prototype.render=function(){var e=this;return i(s,null,i("div",{class:"header"},i("div",{class:"filter"},i("verdocs-text-input",{id:"verdocs-filter-name",value:this.match,clearable:true,autocomplete:"off",placeholder:"Filter by Name, Recipient, or Field...",onFocusout:function(t){var n;e.match=t.target.value.trim();(n=e.changeMatch)===null||n===void 0?void 0:n.emit(e.match)}})),i("verdocs-quick-filter",{label:"View",value:this.view,options:m,onOptionSelected:function(t){e.view=t.detail.value}}),this.view==="all"&&i("verdocs-quick-filter",{label:"Status",value:this.status,options:w,onOptionSelected:function(t){e.status=t.detail.value}}),this.view==="all"&&i("verdocs-quick-filter",{label:"Sort By",value:this.sort,options:x,onOptionSelected:function(t){e.sort=t.detail.value}}),this.loading&&i("verdocs-spinner",{mode:"dark",size:24}),i("div",{style:{display:"flex",flex:"1"}}),this.selectedEnvelopes.length>0&&i("verdocs-button",{label:"Download (".concat(this.selectedEnvelopes.length,")"),onClick:function(){return e.handleDownload()}})),this.envelopes.map((function(t){var n;var s=l(t);var o=c(e.endpoint.session,t);var d=s.find((function(t){var n;return t.email===((n=e.endpoint.session)===null||n===void 0?void 0:n.email)||""}));var p=d&&o&&r(((n=e.endpoint.session)===null||n===void 0?void 0:n.email)||"",s);var u=[{label:"View Envelope",id:"view"},{label:"Finish Envelope",id:"finish",disabled:!p},{label:"Download",id:"download"},{label:"Cancel",id:"cancel",disabled:!o}];return i("div",{class:"envelope",key:t.id,onClick:function(){var n;return(n=e.viewEnvelope)===null||n===void 0?void 0:n.emit({endpoint:e.endpoint,envelope:t})}},i("div",{class:"inner"},i("verdocs-checkbox",{checked:e.selectedEnvelopes.findIndex((function(e){return e.id===t.id}))!==-1,onClick:function(e){return e.stopPropagation()},onInput:function(n){if(n.target.checked){e.selectedEnvelopes=__spreadArray(__spreadArray([],e.selectedEnvelopes,true),[t],false)}else{e.selectedEnvelopes=e.selectedEnvelopes.filter((function(e){return e.id!==t.id}))}}}),i("div",{class:"vert-spacer"}),i("span",{innerHTML:g}),i("div",{class:"envelope-name"},t.name,":  ",i("div",{class:"envelope-recipients"},t.recipients.map((function(e){return e.full_name})).join(", "))),i("div",{class:"vert-spacer"}),i("verdocs-status-indicator",{envelope:t,style:{width:"125px"}}),i("div",{class:"vert-spacer"}),i("div",{class:"last-modified"},new Date(t.updated_at).toLocaleString()),i("div",{class:"vert-spacer"}),i("verdocs-dropdown",{options:u,onOptionSelected:function(n){var i,s;switch(n.detail.id){case"view":(i=e.viewEnvelope)===null||i===void 0?void 0:i.emit({endpoint:e.endpoint,envelope:t});break;case"finish":(s=e.finishEnvelope)===null||s===void 0?void 0:s.emit({endpoint:e.endpoint,envelope:t});break;case"download":e.downloadEnvelope(t);break;case"cancel":if(window.confirm("Are you sure you want to cancel this envelope?")){a(e.endpoint,t.id).then((function(){return v("Envelope canceled")})).catch((function(e){return v("Unable to cancel envelope: "+e.messabge,{style:"error"})}));e.queryEnvelopes().catch((function(){}))}break}}})))})),!this.initiallyLoaded&&i("div",{style:{width:"100%"}},p(0,this.rowsPerPage).map((function(){return i("div",{class:"envelope-placeholder"})}))),this.initiallyLoaded&&!this.envelopes.length&&i("div",{class:"empty-text"},"No matching envelopes found. Please adjust your filters and try again."),this.initiallyLoaded&&this.envelopes.length&&this.showPagination?i("div",{style:{marginTop:"20px"}},i("verdocs-pagination",{selectedPage:this.selectedPage,perPage:this.rowsPerPage,itemCount:this.count,onSelectPage:function(t){e.selectedPage=t.detail.selectedPage}})):i("div",null))};Object.defineProperty(e,"watchers",{get:function(){return{view:["handleViewUpdated"],status:["handleStatusUpdated"],sort:["handleSortUpdated"],match:["handleMatchUpdated"],selectedPage:["handlePageUpdated"]}},enumerable:false,configurable:true});return e}());y.style=f}}}));
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,s,i){function l(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,a){function n(e){try{o(i.next(e))}catch(e){a(e)}}function r(e){try{o(i["throw"](e))}catch(e){a(e)}}function o(e){e.done?s(e.value):l(e.value).then(n,r)}o((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,l,a,n;return n={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function r(e){return function(t){return o([e,t])}}function o(n){if(i)throw new TypeError("Generator is already executing.");while(s)try{if(i=1,l&&(a=n[0]&2?l["return"]:n[0]?l["throw"]||((a=l["return"])&&a.call(l),0):l.next)&&!(a=a.call(l,n[1])).done)return a;if(l=0,a)n=[n[0]&2,a.value];switch(n[0]){case 0:case 1:a=n;break;case 4:s.label++;return{value:n[1],done:false};case 5:s.label++;l=n[1];n=[0];continue;case 7:n=s.ops.pop();s.trys.pop();continue;default:if(!(a=s.trys,a=a.length>0&&a[a.length-1])&&(n[0]===6||n[0]===2)){s=0;continue}if(n[0]===3&&(!a||n[1]>a[0]&&n[1]<a[3])){s.label=n[1];break}if(n[0]===6&&s.label<a[1]){s.label=a[1];a=n;break}if(a&&s.label<a[2]){s.label=a[2];s.ops.push(n);break}if(a[2])s.ops.pop();s.trys.pop();continue}n=t.call(e,s)}catch(e){n=[6,e];l=0}finally{i=a=0}if(n[0]&5)throw n[1];return{value:n[0]?n[1]:void 0,done:true}}};System.register(["./p-2dbc05c6.system.js","./p-54498887.system.js","./p-4422958b.system.js","./p-2fdb7348.system.js","./p-3bcd86ea.system.js","./p-187b20b7.system.js","./p-dc9c4361.system.js"],(function(e){"use strict";var t,s,i,l,a,n,r,o,c,d,p;return{setters:[function(e){t=e.r;s=e.c;i=e.h;l=e.H},function(){},function(e){a=e.V;n=e.a},function(e){r=e.l;o=e.d},function(e){c=e.i},function(e){d=e.S},function(e){p=e.f}],execute:function(){var h='verdocs-templates-list{display:-ms-flexbox;display:flex;padding:10px;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-direction:column;flex-direction:column;font-family:"Inter", "Barlow", sans-serif}verdocs-templates-list .header{width:100%;row-gap:4px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-column-gap:12px;-moz-column-gap:12px;column-gap:12px;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-templates-list .header .filter{width:150px}verdocs-templates-list .header verdocs-text-input{margin:0}verdocs-templates-list .header verdocs-text-input input{height:32px}verdocs-templates-list .filter{-ms-flex-align:center;align-items:center}verdocs-templates-list .template-placeholder{height:48px;-ms-flex:0 0 48px;flex:0 0 48px;margin:5px 0;border-radius:5px;background:#f5f5fa}verdocs-templates-list .template{width:100%;margin:3px 0;border:1px solid #ffffff;background:#ffffff}verdocs-templates-list .template:hover{cursor:pointer;background:#ededff;border:1px solid #a7a7f5}verdocs-templates-list .template .inner{gap:10px;display:-ms-flexbox;display:flex;padding:8px 14px;border-radius:5px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}verdocs-templates-list .template .inner svg{width:24px;height:24px}verdocs-templates-list .name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;color:black;font-size:16px;margin-left:10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}@media screen and (max-width: 1300px){verdocs-templates-list .name{font-size:16px}}verdocs-templates-list .spacer{margin:0;height:30px;-ms-flex:0 0 1px;flex:0 0 1px;display:-ms-flexbox;display:flex;border-right:1px solid #dad8dd}@media screen and (max-width: 800px){verdocs-templates-list .spacer{margin:12px 0;border-top:1px solid #dad8dd;border-right:none}}verdocs-templates-list .empty-text{font-size:20px;text-align:center;margin:16px 0 0 0;padding:80px 80px;border:2px solid #ccc}verdocs-templates-list .usage,verdocs-templates-list .ownership,verdocs-templates-list .last-used{gap:10px;color:#444;display:-ms-flexbox;display:flex;font-size:16px;margin:0 0 0 10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}verdocs-templates-list .usage span,verdocs-templates-list .usage svg,verdocs-templates-list .ownership span,verdocs-templates-list .ownership svg,verdocs-templates-list .last-used span,verdocs-templates-list .last-used svg{width:24px;height:24px}verdocs-templates-list .usage span,verdocs-templates-list .ownership span,verdocs-templates-list .last-used span{display:block}verdocs-templates-list .ownership{-ms-flex:0 0 100px;flex:0 0 100px}@media screen and (max-width: 600px){verdocs-templates-list .ownership{display:none}}verdocs-templates-list .last-used{-ms-flex:0 0 130px;flex:0 0 130px}verdocs-templates-list .usage{-ms-flex:0 0 60px;flex:0 0 60px}';var u='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M12 21a9.004 9.004 0 008.716-6.747M12 21a9.004 9.004 0 01-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 017.843 4.582M12 3a8.997 8.997 0 00-7.843 4.582m15.686 0A11.953 11.953 0 0112 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0121 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0112 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 013 12c0-1.605.42-3.113 1.157-4.418" /></svg>';var m='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z" /></svg>';var v='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21" /></svg>';var f='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M21.75 6.75v10.5a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25m19.5 0v.243a2.25 2.25 0 01-1.07 1.916l-7.5 4.615a2.25 2.25 0 01-2.36 0L3.32 8.91a2.25 2.25 0 01-1.07-1.916V6.75" /></svg>';var g='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.88 122.88"><g><path d="M81.61,4.73c0-2.61,2.58-4.73,5.77-4.73c3.19,0,5.77,2.12,5.77,4.73v20.72c0,2.61-2.58,4.73-5.77,4.73 c-3.19,0-5.77-2.12-5.77-4.73V4.73L81.61,4.73z M66.11,103.81c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2H81.9 c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H66.11L66.11,103.81z M15.85,67.09c-0.34,0-0.61-1.43-0.61-3.2 c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H15.85L15.85,67.09z M40.98,67.09 c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H40.98 L40.98,67.09z M66.11,67.09c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2H81.9c0.34,0,0.61,1.43,0.61,3.2 c0,1.77-0.27,3.2-0.61,3.2H66.11L66.11,67.09z M91.25,67.09c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79 c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H91.25L91.25,67.09z M15.85,85.45c-0.34,0-0.61-1.43-0.61-3.2 c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H15.85L15.85,85.45z M40.98,85.45 c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H40.98 L40.98,85.45z M66.11,85.45c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2H81.9c0.34,0,0.61,1.43,0.61,3.2 c0,1.77-0.27,3.2-0.61,3.2H66.11L66.11,85.45z M91.25,85.45c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79 c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H91.25L91.25,85.45z M15.85,103.81c-0.34,0-0.61-1.43-0.61-3.2 c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H15.85L15.85,103.81z M40.98,103.81 c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H40.98 L40.98,103.81z M29.61,4.73c0-2.61,2.58-4.73,5.77-4.73s5.77,2.12,5.77,4.73v20.72c0,2.61-2.58,4.73-5.77,4.73 s-5.77-2.12-5.77-4.73V4.73L29.61,4.73z M6.4,45.32h110.07V21.47c0-0.8-0.33-1.53-0.86-2.07c-0.53-0.53-1.26-0.86-2.07-0.86H103 c-1.77,0-3.2-1.43-3.2-3.2c0-1.77,1.43-3.2,3.2-3.2h10.55c2.57,0,4.9,1.05,6.59,2.74c1.69,1.69,2.74,4.02,2.74,6.59v27.06v65.03 c0,2.57-1.05,4.9-2.74,6.59c-1.69,1.69-4.02,2.74-6.59,2.74H9.33c-2.57,0-4.9-1.05-6.59-2.74C1.05,118.45,0,116.12,0,113.55V48.52 V21.47c0-2.57,1.05-4.9,2.74-6.59c1.69-1.69,4.02-2.74,6.59-2.74H20.6c1.77,0,3.2,1.43,3.2,3.2c0,1.77-1.43,3.2-3.2,3.2H9.33 c-0.8,0-1.53,0.33-2.07,0.86c-0.53,0.53-0.86,1.26-0.86,2.07V45.32L6.4,45.32z M116.48,51.73H6.4v61.82c0,0.8,0.33,1.53,0.86,2.07 c0.53,0.53,1.26,0.86,2.07,0.86h104.22c0.8,0,1.53-0.33,2.07-0.86c0.53-0.53,0.86-1.26,0.86-2.07V51.73L116.48,51.73z M50.43,18.54 c-1.77,0-3.2-1.43-3.2-3.2c0-1.77,1.43-3.2,3.2-3.2h21.49c1.77,0,3.2,1.43,3.2,3.2c0,1.77-1.43,3.2-3.2,3.2H50.43L50.43,18.54z"/></g></svg>';var w='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 410.2"><path d="M35.28 35.51h32.54v43.42c0 10.58 4.27 20.06 11.35 27.23 17.03 17.14 45.5 17.45 63.06.93 7.71-7.29 12.4-17.14 12.4-28.16V35.51h65.71v43.42c0 6.34 1.56 12.3 4.35 17.6 2.03 3.85 4.71 7.37 7.92 10.43l2.41 2.24c1.79 1.46 3.71 2.79 5.76 3.97l.31.18.07.04.25.13.16.1.15.08.27.14.05.03.32.17.05.03.27.13.15.08.17.09.26.12.07.04.32.16.03.01.31.15.12.06.2.09.24.11.1.05.33.14.34.16.1.04.23.1.21.09.13.05.31.13h.03l.34.14.08.04.27.1.18.07.16.06.3.11.05.02.34.12.06.02.3.11.16.05.19.07.26.09.09.03.35.12.02.01.34.1.13.04.22.07.25.07.11.03.36.11.36.1.11.03.25.07.22.06.14.04.34.09h.02l.37.1.08.02.29.06.19.05.17.03.32.08.05.01.37.08.06.01.31.06.17.04.21.03.28.06.09.02.37.07h.03l.35.06.14.03.23.03.27.04.11.02.38.06.38.05.12.01.26.04.23.03.15.01.35.05h.03l.39.04.08.01.3.02.21.02.17.02.34.02.05.01.39.03h.05l.34.02.18.01.21.01.3.02h.08l.39.01.03.01.36.01h.39l.28.01h.96l.33-.01h.39l.18-.01.2-.01.25-.01h.13l.32-.02h.07l.38-.02h.01l.37-.02.07-.01.32-.02.12-.01.26-.02.19-.02.19-.02.25-.02.13-.01.31-.04h.07l.37-.05h.01l.37-.04.06-.01.32-.04.12-.02.26-.03.18-.03.19-.03.24-.04.14-.02.3-.05.07-.01.36-.06h.01l.37-.07.05-.01.32-.06.12-.02.25-.05.18-.04.19-.04.23-.05.14-.03.29-.07.08-.01.35-.08.01-.01.36-.08.05-.02.31-.08.11-.02.25-.07.17-.04.2-.06.22-.05.14-.05.28-.08.07-.02.34-.09.02-.01.36-.11.03-.01.32-.1.1-.03.25-.08.16-.05.19-.07.22-.07.13-.04.28-.1.08-.03.32-.11.02-.01.35-.13.04-.01.3-.11.09-.04.26-.1.15-.06.19-.07.21-.09.13-.05.26-.11.08-.03.32-.13.02-.01.33-.14.04-.02.3-.13.09-.04.24-.11.14-.07.19-.08.19-.1.14-.06.25-.12.08-.03.3-.16h.03l.32-.17.03-.01.29-.16.09-.04.24-.12.13-.07.19-.1.18-.1.14-.07.23-.13.08-.05.29-.16.03-.01.31-.18c1.11-.64 2.17-1.31 3.2-2.03l2.71-1.95c4.36-3.56 7.92-7.88 10.43-12.76 2.73-5.26 4.25-11.19 4.25-17.5V35.51h33.97c9.68 0 18.5 3.98 24.91 10.38 6.4 6.37 10.38 15.2 10.38 24.9V192.9H365.1v-53.83H11.3v233.49c0 15.25 12.49 27.74 27.75 27.74h298.3c15.27 0 27.75-12.51 27.75-27.74V325.6h11.31v49.32c0 9.7-3.98 18.53-10.37 24.91-6.42 6.39-15.24 10.37-24.92 10.37H35.28c-9.68 0-18.49-3.97-24.89-10.37C3.97 393.41 0 384.59 0 374.92V70.79C0 61.12 3.97 52.3 10.36 45.9c6.43-6.42 15.25-10.39 24.92-10.39zm211.43-21.54c0-7.71 7.61-13.97 17.03-13.97 9.42 0 17.04 6.26 17.04 13.97v64.96c0 7.7-7.62 13.96-17.04 13.96-9.42 0-17.03-6.26-17.03-13.96V13.97zm-152.52 0C94.19 6.26 101.81 0 111.23 0c9.42 0 17.03 6.26 17.03 13.97v64.96c0 7.7-7.61 13.96-17.03 13.96-9.42 0-17.04-6.26-17.04-13.96V13.97zm311.37 327.72c1.48-14.79 2.69-32.45 3.59-46.5h-75.88v-71.88h77.43c-.39-14.06-1.17-31.75-2.35-46.58-.96-5.93 6.02-9.73 10.51-5.9l90.89 82.99c2.7 2.31 3.02 6.38.7 9.08l-.74.73-93.65 84.05c-4.6 3.89-11.47-.19-10.5-5.99zM63.51 286h50.56c3.53 0 6.43 2.91 6.43 6.44v42.06c0 3.52-2.91 6.44-6.43 6.44H63.51c-3.53 0-6.44-2.91-6.44-6.44v-42.06c0-3.54 2.9-6.44 6.44-6.44zm198.44-98.62h50.55c3.23 0 5.92 2.43 6.37 5.52h-16v49.42h-40.92c-3.53 0-6.45-2.9-6.45-6.45v-42.05c0-3.54 2.9-6.44 6.45-6.44zm0 98.62h40.92v39.6h16.07v8.9c0 3.52-2.92 6.44-6.44 6.44h-50.55c-3.53 0-6.45-2.91-6.45-6.44v-42.06c0-3.54 2.9-6.44 6.45-6.44zm-98.5-98.62h50.56c3.53 0 6.43 2.92 6.43 6.44v42.05c0 3.53-2.91 6.45-6.43 6.45h-50.56c-3.53 0-6.44-2.9-6.44-6.45v-42.05c0-3.54 2.9-6.44 6.44-6.44zm-99.94 0h50.56c3.53 0 6.43 2.92 6.43 6.44v42.05c0 3.53-2.91 6.45-6.43 6.45H63.51c-3.53 0-6.44-2.9-6.44-6.45v-42.05c0-3.54 2.9-6.44 6.44-6.44zM163.45 286h50.56c3.53 0 6.43 2.91 6.43 6.44v42.06c0 3.52-2.91 6.44-6.43 6.44h-50.56c-3.53 0-6.44-2.91-6.44-6.44v-42.06c0-3.54 2.9-6.44 6.44-6.44z"/></svg>';var x='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 506.49"><path fill-rule="nonzero" d="m371.06 415.61-43.25 11.52 6.23-46.41 37.02 34.89zm6.76-177.5c36.98 0 70.56 15.04 94.83 39.35C496.96 301.7 512 335.25 512 372.31c0 37.02-15.02 70.61-39.3 94.88l-.68.64c-24.23 23.88-57.5 38.66-94.2 38.66-37.06 0-70.61-15.04-94.88-39.31l-.64-.69c-23.9-24.24-38.68-57.53-38.68-94.18 0-37.06 15.04-70.61 39.32-94.89 24.27-24.27 57.85-39.31 94.88-39.31zm78.74 55.41c-20.09-20.11-47.96-32.58-78.74-32.58-30.75 0-58.61 12.47-78.75 32.62-20.15 20.14-32.62 48-32.62 78.75 0 30.5 12.25 58.14 32.02 78.19l.6.55c20.14 20.14 48 32.61 78.75 32.61 30.48 0 58.12-12.25 78.21-32.02l.54-.58c20.15-20.15 32.61-48 32.61-78.75s-12.48-58.61-32.62-78.79zM294.24 17.11C294.24 7.69 303.52 0 315.1 0c11.57 0 20.87 7.64 20.87 17.11v74.85c0 9.42-9.3 17.11-20.87 17.11-11.58 0-20.86-7.65-20.86-17.11V17.11zM56.8 242.28c-1.17 0-2.23-5.2-2.23-11.57 0-6.38.92-11.53 2.23-11.53h56.94c1.18 0 2.24 5.2 2.24 11.53 0 6.39-.92 11.57-2.24 11.57H56.8zm90.77 0c-1.17 0-2.23-5.2-2.23-11.57 0-6.38.92-11.53 2.23-11.53h56.94c1.18 0 2.24 5.2 2.24 11.53 0 6.39-.92 11.57-2.24 11.57h-56.94zm90.77 0c-1.16 0-2.22-5.2-2.22-11.57 0-6.38.92-11.53 2.22-11.53h56.94c1.19 0 2.25 5.15 2.25 11.49-5.7 3.55-11.2 7.44-16.43 11.61h-42.76zm-181.4 66.24c-1.18 0-2.24-5.2-2.24-11.57 0-6.38.93-11.58 2.24-11.58h56.94c1.18 0 2.22 5.2 2.22 11.58 0 6.37-.91 11.57-2.22 11.57H56.94zm90.77 0c-1.18 0-2.24-5.2-2.24-11.57 0-6.38.93-11.58 2.24-11.58h56.94c1.18 0 2.23 5.2 2.23 11.58 0 6.37-.92 11.57-2.23 11.57h-56.94zM57.06 374.8c-1.18 0-2.24-5.2-2.24-11.59 0-6.36.94-11.56 2.24-11.56H114c1.19 0 2.24 5.2 2.24 11.56 0 6.39-.93 11.59-2.24 11.59H57.06zm90.78 0c-1.19 0-2.25-5.2-2.25-11.59 0-6.36.94-11.56 2.25-11.56h56.94c1.18 0 2.24 5.2 2.24 11.56 0 6.39-.94 11.59-2.24 11.59h-56.94zM106.83 17.11C106.83 7.69 116.1 0 127.69 0c11.57 0 20.86 7.64 20.86 17.11v74.85c0 9.42-9.34 17.11-20.86 17.11-11.59 0-20.86-7.65-20.86-17.11V17.11zM22.97 163.64h397.39V77.46c0-2.94-1.19-5.53-3.09-7.43-1.9-1.9-4.59-3.08-7.42-3.08h-38.1c-6.39 0-11.59-5.2-11.59-11.57 0-6.38 5.2-11.58 11.59-11.58h38.1c9.32 0 17.7 3.77 23.82 9.88 6.12 6.14 9.88 14.5 9.88 23.83v136.81c-7.61-2.62-15.41-4.73-23.44-6.29v-21.38h.25H22.97v223.17c0 2.94 1.18 5.52 3.08 7.42 1.91 1.9 4.61 3.08 7.44 3.08h188.85c2.16 8.02 4.86 15.84 8.11 23.36H33.71c-9.3 0-17.7-3.75-23.84-9.89C3.75 427.72 0 419.36 0 410.02V77.55c0-9.29 3.75-17.7 9.87-23.82 6.14-6.13 14.5-9.89 23.84-9.89h40.67c6.38 0 11.57 5.2 11.57 11.57C85.95 61.8 80.76 67 74.38 67H33.71c-2.96 0-5.54 1.18-7.44 3.08-1.9 1.9-3.09 4.59-3.09 7.43v86.16h-.21v-.03zm158.95-96.69c-6.39 0-11.57-5.2-11.57-11.57 0-6.38 5.18-11.58 11.57-11.58h77.55c6.39 0 11.57 5.2 11.57 11.58 0 6.37-5.18 11.57-11.57 11.57h-77.55zm161.66 303.24 45.37-51.33c.72-.84 1.78-1.34 2.85-1.36.69-.01 1.37.13 1.98.45l32.94 29.96c.66.59 1.05 1.46 1.06 2.35.02 1-.39 1.98-1.16 2.66l-46.15 52.16-36.95-34.89h.06z"/></svg>';var b=[{value:"all",label:"All"},{value:"personal",label:"Personal"},{value:"shared",label:"Shared"},{value:"public",label:"Public"}];var y=[{value:"all",label:"All"},{value:"starred",label:"Starred"},{value:"unstarred",label:"Not Starred"}];var z=[{value:"name",label:"Name"},{value:"created_at",label:"Created"},{value:"updated_at",label:"Last Updated"},{value:"last_used_at",label:"Last Used"},{value:"counter",label:"Most Used"},{value:"star_counter",label:"Most Starred"}];var M=e("verdocs_templates_list",function(){function e(e){var i=this;t(this,e);this.sdkError=s(this,"sdkError",7);this.viewTemplate=s(this,"viewTemplate",7);this.signNow=s(this,"signNow",7);this.submittedData=s(this,"submittedData",7);this.editTemplate=s(this,"editTemplate",7);this.templateDeleted=s(this,"templateDeleted",7);this.changeSort=s(this,"changeSort",7);this.changeSharing=s(this,"changeSharing",7);this.changeStarred=s(this,"changeStarred",7);this.changeName=s(this,"changeName",7);this.handleOptionSelected=function(e,t){var s,l,a,n;if(e==="send"){(s=i.viewTemplate)===null||s===void 0?void 0:s.emit({endpoint:i.endpoint,template:t})}else if(e==="signnow"){(l=i.signNow)===null||l===void 0?void 0:l.emit({endpoint:i.endpoint,template:t})}else if(e==="submitted"){(a=i.submittedData)===null||a===void 0?void 0:a.emit({endpoint:i.endpoint,template:t})}else if(e==="edit"){(n=i.editTemplate)===null||n===void 0?void 0:n.emit({endpoint:i.endpoint,template:t})}else if(e==="delete"){i.confirmDelete=t}};this.endpoint=a.getDefault();this.sharing="all";this.starred="all";this.sort="updated_at";this.name="";this.allowedActions=["send","submitted","link","edit","delete"];this.showPagination=true;this.rowsPerPage=10;this.selectedPage=0;this.count=0;this.initiallyLoaded=false;this.loading=true;this.confirmDelete=null;this.templates=[];this.localNameFilter=""}e.prototype.handleSharingUpdated=function(){return this.queryTemplates()};e.prototype.handleStarredUpdated=function(){return this.queryTemplates()};e.prototype.handleSortUpdated=function(){return this.queryTemplates()};e.prototype.handleNameUpdated=function(){return this.queryTemplates()};e.prototype.handlePageUpdated=function(){return this.queryTemplates()};e.prototype.componentWillLoad=function(){this.endpoint.loadSession();if(!this.endpoint.session){console.log("[TEMPLATES] Must be authenticated");return}};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.queryTemplates()];case 1:e.sent();this.initiallyLoaded=true;return[2]}}))}))};e.prototype.queryTemplates=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,s,i,l,a;return __generator(this,(function(n){switch(n.label){case 0:console.log("[TEMPLATES] Querying templates");this.loading=true;n.label=1;case 1:n.trys.push([1,3,,4]);i={sharing:this.sharing,starred:this.starred,page:this.selectedPage,sort:this.sort,rows:this.rowsPerPage};if(this.name.trim()!==""){i.name=this.name.trim()}return[4,r(this.endpoint,i)];case 2:l=n.sent();this.templates=l.records;this.count=l.total;this.loading=false;return[3,4];case 3:a=n.sent();this.loading=false;console.log("[TEMPLATES] Error listing templates",a);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new d(a.message,(t=a.response)===null||t===void 0?void 0:t.status,(s=a.response)===null||s===void 0?void 0:s.data));return[3,4];case 4:return[2]}}))}))};e.prototype.deleteTemplate=function(e){var t=this;this.confirmDelete=null;o(this.endpoint,e.id).then((function(){var s;console.log("[TEMPLATES] Deleted template",e);(s=t.templateDeleted)===null||s===void 0?void 0:s.emit({endpoint:t.endpoint,template:e});return t.queryTemplates()})).catch((function(s){var i,l,a;console.log("[TEMPLATES] Error deleting template",e);(i=t.sdkError)===null||i===void 0?void 0:i.emit(new d(s.message,(l=s.response)===null||l===void 0?void 0:l.status,(a=s.response)===null||a===void 0?void 0:a.data))}))};e.prototype.render=function(){var e=this;var t=!this.localNameFilter?this.templates:this.templates.filter((function(t){return t.name.toLowerCase().includes(e.localNameFilter.toLowerCase())}));return i(l,null,i("div",{class:"header"},i("div",{class:"filter"},i("verdocs-text-input",{id:"verdocs-filter-name",value:this.name,clearable:true,autocomplete:"off",placeholder:"Filter by Name...",onInput:function(t){return e.localNameFilter=t.target.value.trim()},onFocusout:function(t){var s;e.name=t.target.value.trim();e.localNameFilter=t.target.value.trim();(s=e.changeName)===null||s===void 0?void 0:s.emit(e.name)}})),i("verdocs-quick-filter",{label:"Sharing",value:this.sharing,options:b,onOptionSelected:function(t){var s;e.sharing=t.detail.value;(s=e.changeSharing)===null||s===void 0?void 0:s.emit(e.sharing)}}),i("verdocs-quick-filter",{label:"Starred",value:this.starred,options:y,onOptionSelected:function(t){var s;e.starred=t.detail.value;(s=e.changeStarred)===null||s===void 0?void 0:s.emit(e.starred)}}),i("verdocs-quick-filter",{label:"Sort By",value:this.sort,options:z,onOptionSelected:function(t){var s;e.sort=t.detail.value;(s=e.changeSort)===null||s===void 0?void 0:s.emit(e.sort)}}),this.loading&&i("verdocs-spinner",{mode:"dark",size:24}),i("div",{style:{display:"flex",flex:"1"}})),t.map((function(t){var s=e.sort==="created_at"?"created_at":e.sort==="updated_at"?"updated_at":"last_used_at";var l=t[s];var a=[];if(t.allowed_operations.includes(n.READ)&&e.allowedActions.includes("send")){a.push({label:"Preview / Send",id:"send",disabled:!t.allowed_operations.includes(n.READ)})}if(t.allowed_operations.includes(n.CREATE_PERSONAL)&&e.allowedActions.includes("signnow")){a.push({label:"Sign Now",id:"signnow",disabled:true})}if(t.allowed_operations.includes(n.READ)&&e.allowedActions.includes("submitted")){a.push({label:""});a.push({label:"Submissions",id:"submitted"})}if(e.allowedActions.includes("link")||e.allowedActions.includes("edit")||e.allowedActions.includes("delete")){a.push({label:""});if(e.allowedActions.includes("link")||e.allowedActions.includes("edit")||e.allowedActions.includes("delete")){a.push({label:"Edit",id:"edit",disabled:!t.allowed_operations.includes(n.WRITE)})}if(e.allowedActions.includes("link")||e.allowedActions.includes("edit")||e.allowedActions.includes("delete")){a.push({label:"Delete",id:"delete",disabled:!t.allowed_operations.includes(n.DELETE)})}}return i("div",{class:"template",onClick:function(){var s;(s=e.viewTemplate)===null||s===void 0?void 0:s.emit({endpoint:e.endpoint,template:t})}},i("div",{class:"inner"},i("verdocs-template-star",{template:t,endpoint:e.endpoint}),i("div",{class:"spacer icon-spacer"}),i("div",{class:"name"},t.name),i("div",{class:"spacer usage-spacer"}),i("div",{class:"usage"},i("span",{innerHTML:f,title:"Usage Counter"}),t.counter||"--"),i("div",{class:"spacer last-used-spacer"}),i("div",{class:"last-used"},s==="created_at"&&i("span",{innerHTML:g,title:"Created"}),s==="updated_at"&&i("span",{innerHTML:x,title:"Last Updated"}),s==="last_used_at"&&i("span",{innerHTML:w,title:"Last Used"}),l?p(new Date(l),"P"):"Never"),i("div",{class:"spacer ownership-spacer"}),t.is_public&&i("div",{class:"ownership"},i("span",{innerHTML:u})," Public"),!t.is_public&&!t.is_personal&&i("div",{class:"ownership"},i("span",{innerHTML:m})," Private"),!t.is_public&&t.is_personal&&i("div",{class:"ownership"},i("span",{innerHTML:v})," Shared"),i("verdocs-dropdown",{options:a,onOptionSelected:function(s){return e.handleOptionSelected(s.detail.id,t)}})))})),!this.initiallyLoaded&&i("div",null,c(0,this.rowsPerPage).map((function(){return i("div",{class:"template-placeholder"})}))),this.initiallyLoaded&&!this.templates.length&&i("div",{class:"empty-text"},"No matching templates found. Please adjust your filters and try again."),this.initiallyLoaded&&this.templates.length&&this.showPagination?i("div",{style:{marginTop:"20px"}},i("verdocs-pagination",{selectedPage:this.selectedPage,perPage:this.rowsPerPage,itemCount:this.count,onSelectPage:function(t){e.selectedPage=t.detail.selectedPage}})):i("div",null),this.confirmDelete&&i("verdocs-ok-dialog",{heading:"Delete this Template?",message:"This operation cannot be undone.",onNext:function(){return e.deleteTemplate(e.confirmDelete)},onExit:function(){return e.confirmDelete=null},showCancel:true}))};Object.defineProperty(e,"watchers",{get:function(){return{sharing:["handleSharingUpdated"],starred:["handleStarredUpdated"],sort:["handleSortUpdated"],name:["handleNameUpdated"],selectedPage:["handlePageUpdated"]}},enumerable:false,configurable:true});return e}());M.style=h}}}));